@zyzgroup/core-vue 0.0.21 → 0.0.22
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.
- package/ce/style.css +1 -1
- package/ce/yz_custom_element.iife.js +134 -107
- package/ce/yz_custom_element.iife.js.map +1 -1
- package/ce/yz_custom_element.js +11414 -10519
- package/ce/yz_custom_element.js.map +1 -1
- package/ce/yz_custom_element.umd.cjs +134 -107
- package/ce/yz_custom_element.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/zyzgroup_core_vue.iife.js +47 -38
- package/dist/zyzgroup_core_vue.iife.js.map +1 -1
- package/dist/zyzgroup_core_vue.js +5970 -5177
- package/dist/zyzgroup_core_vue.js.map +1 -1
- package/dist/zyzgroup_core_vue.umd.cjs +49 -40
- package/dist/zyzgroup_core_vue.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/types/components/Accordion.ce.vue.d.ts +5 -5
- package/types/components/Accordion.vue.d.ts +5 -5
- package/types/components/Container.ce.vue.d.ts +78 -0
- package/types/components/Container.vue.d.ts +78 -0
- package/types/components/chat/ClockFlipper.ce.vue.d.ts +69 -0
- package/types/components/chat/ClockFlipper.vue.d.ts +69 -0
- package/types/components/chat/RingText.ce.vue.d.ts +49 -0
- package/types/components/chat/RingText.vue.d.ts +49 -0
- package/types/components/effect/CSSAnimation.ce.vue.d.ts +92 -0
- package/types/components/effect/CSSAnimation.vue.d.ts +92 -0
- package/types/components/effect/Circle.ce.vue.d.ts +62 -0
- package/types/components/effect/Circle.vue.d.ts +62 -0
- package/types/components/effect/Float.ce.vue.d.ts +72 -0
- package/types/components/effect/Float.vue.d.ts +72 -0
- package/types/components/effect/LineDouble.ce.vue.d.ts +77 -0
- package/types/components/effect/LineDouble.vue.d.ts +77 -0
- package/types/components/effect/LineSingle.ce.vue.d.ts +77 -0
- package/types/components/effect/LineSingle.vue.d.ts +77 -0
- package/types/components/effect/Slide.ce.vue.d.ts +67 -0
- package/types/components/effect/Slide.vue.d.ts +67 -0
- package/types/components/effect/SlideCorner.ce.vue.d.ts +67 -0
- package/types/components/effect/SlideCorner.vue.d.ts +67 -0
- package/types/components/effect/TextBackgroundClip.ce.vue.d.ts +34 -0
- package/types/components/effect/TextBackgroundClip.vue.d.ts +34 -0
- package/types/lib.d.ts +11 -2
- package/types/types.d.ts +3 -0
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
var ZYZGroupCoreVue=function(
|
|
1
|
+
var ZYZGroupCoreVue=function(lt){"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
|
|
5
|
+
**//*! #__NO_SIDE_EFFECTS__ */function En(s,t){const e=new Set(s.split(","));return t?n=>e.has(n.toLowerCase()):n=>e.has(n)}const Ut={}.NODE_ENV!=="production"?Object.freeze({}):{},Tn={}.NODE_ENV!=="production"?Object.freeze([]):[],he=()=>{},Nh=()=>!1,Yn=s=>s.charCodeAt(0)===111&&s.charCodeAt(1)===110&&(s.charCodeAt(2)>122||s.charCodeAt(2)<97),Ri=s=>s.startsWith("onUpdate:"),se=Object.assign,Zr=(s,t)=>{const e=s.indexOf(t);e>-1&&s.splice(e,1)},Ah=Object.prototype.hasOwnProperty,At=(s,t)=>Ah.call(s,t),mt=Array.isArray,en=s=>$i(s)==="[object Map]",al=s=>$i(s)==="[object Set]",St=s=>typeof s=="function",de=s=>typeof s=="string",sn=s=>typeof s=="symbol",Yt=s=>s!==null&&typeof s=="object",Kr=s=>(Yt(s)||St(s))&&St(s.then)&&St(s.catch),ll=Object.prototype.toString,$i=s=>ll.call(s),Qr=s=>$i(s).slice(8,-1),cl=s=>$i(s)==="[object Object]",Jr=s=>de(s)&&s!=="NaN"&&s[0]!=="-"&&""+parseInt(s,10)===s,Hn=En(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Rh=En("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Li=s=>{const t=Object.create(null);return e=>t[e]||(t[e]=s(e))},$h=/-(\w)/g,us=Li(s=>s.replace($h,(t,e)=>e?e.toUpperCase():"")),Lh=/\B([A-Z])/g,Ls=Li(s=>s.replace(Lh,"-$1").toLowerCase()),nn=Li(s=>s.charAt(0).toUpperCase()+s.slice(1)),rn=Li(s=>s?`on${nn(s)}`:""),Vs=(s,t)=>!Object.is(s,t),Xn=(s,t)=>{for(let e=0;e<s.length;e++)s[e](t)},ul=(s,t,e)=>{Object.defineProperty(s,t,{configurable:!0,enumerable:!1,value:e})},Vh=s=>{const t=parseFloat(s);return isNaN(t)?s:t};let hl;const to=()=>hl||(hl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function z(s){if(mt(s)){const t={};for(let e=0;e<s.length;e++){const n=s[e],i=de(n)?Bh(n):z(n);if(i)for(const r in i)t[r]=i[r]}return t}else if(de(s)||Yt(s))return s}const Fh=/;(?![^(]*\))/g,Gh=/:([^]+)/,zh=/\/\*[^]*?\*\//g;function Bh(s){const t={};return s.replace(zh,"").split(Fh).forEach(e=>{if(e){const n=e.split(Gh);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function le(s){let t="";if(de(s))t=s;else if(mt(s))for(let e=0;e<s.length;e++){const n=le(s[e]);n&&(t+=n+" ")}else if(Yt(s))for(const e in s)s[e]&&(t+=e+" ");return t.trim()}const jh=En("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function dl(s){return!!s||s===""}const Et=s=>de(s)?s:s==null?"":mt(s)||Yt(s)&&(s.toString===ll||!St(s.toString))?JSON.stringify(s,fl,2):String(s),fl=(s,t)=>t&&t.__v_isRef?fl(s,t.value):en(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[n,i],r)=>(e[eo(n,r)+" =>"]=i,e),{})}:al(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>eo(e))}:sn(t)?eo(t):Yt(t)&&!mt(t)&&!cl(t)?String(t):t,eo=(s,t="")=>{var e;return sn(s)?`Symbol(${(e=s.description)!=null?e:t})`:s};/**
|
|
6
6
|
* @vue/reactivity v3.4.25
|
|
7
7
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
8
|
* @license MIT
|
|
9
|
-
**/function Ls(s,...t){console.warn(`[Vue warn] ${s}`,...t)}let es;class Fh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=es,!t&&es&&(this.index=(es.scopes||(es.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const e=es;try{return es=this,t()}finally{es=e}}else({}).NODE_ENV!=="production"&&Ls("cannot run an inactive effect scope.")}on(){es=this}off(){es=this.parent}stop(t){if(this._active){let e,n;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].stop();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){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 Gh(s,t=es){t&&t.active&&t.effects.push(s)}function zh(){return es}let on;class Jr{constructor(t,e,n,i){this.fn=t,this.trigger=e,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Gh(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,bs();for(let t=0;t<this._depsLength;t++){const e=this.deps[t];if(e.computed&&(jh(e.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),xs()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Fs,e=on;try{return Fs=!0,on=this,this._runnings++,cl(this),this.fn()}finally{ul(this),this._runnings--,on=e,Fs=t}}stop(){var t;this.active&&(cl(this),ul(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function jh(s){return s.value}function cl(s){s._trackId++,s._depsLength=0}function ul(s){if(s.deps.length>s._depsLength){for(let t=s._depsLength;t<s.deps.length;t++)hl(s.deps[t],s);s.deps.length=s._depsLength}}function hl(s,t){const e=s.get(t);e!==void 0&&t._trackId!==e&&(s.delete(t),s.size===0&&s.cleanup())}let Fs=!0,to=0;const dl=[];function bs(){dl.push(Fs),Fs=!1}function xs(){const s=dl.pop();Fs=s===void 0?!0:s}function eo(){to++}function so(){for(to--;!to&&no.length;)no.shift()()}function fl(s,t,e){var n;if(t.get(s)!==s._trackId){t.set(s,s._trackId);const i=s.deps[s._depsLength];i!==t?(i&&hl(i,s),s.deps[s._depsLength++]=t):s._depsLength++,{}.NODE_ENV!=="production"&&((n=s.onTrack)==null||n.call(s,te({effect:s},e)))}}const no=[];function pl(s,t,e){var n;eo();for(const i of s.keys()){let r;i._dirtyLevel<t&&(r??(r=s.get(i)===i._trackId))&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=t),i._shouldSchedule&&(r??(r=s.get(i)===i._trackId))&&({}.NODE_ENV!=="production"&&((n=i.onTrigger)==null||n.call(i,te({effect:i},e))),i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&no.push(i.scheduler)))}so()}const ml=(s,t)=>{const e=new Map;return e.cleanup=s,e.computed=t,e},io=new WeakMap,an=Symbol({}.NODE_ENV!=="production"?"iterate":""),ro=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function we(s,t,e){if(Fs&&on){let n=io.get(s);n||io.set(s,n=new Map);let i=n.get(e);i||n.set(e,i=ml(()=>n.delete(e))),fl(on,i,{}.NODE_ENV!=="production"?{target:s,type:t,key:e}:void 0)}}function us(s,t,e,n,i,r){const o=io.get(s);if(!o)return;let a=[];if(t==="clear")a=[...o.values()];else if(e==="length"&&mt(s)){const l=Number(n);o.forEach((c,u)=>{(u==="length"||!sn(u)&&u>=l)&&a.push(c)})}else switch(e!==void 0&&a.push(o.get(e)),t){case"add":mt(s)?Zr(e)&&a.push(o.get("length")):(a.push(o.get(an)),en(s)&&a.push(o.get(ro)));break;case"delete":mt(s)||(a.push(o.get(an)),en(s)&&a.push(o.get(ro)));break;case"set":en(s)&&a.push(o.get(an));break}eo();for(const l of a)l&&pl(l,4,{}.NODE_ENV!=="production"?{target:s,type:t,key:e,newValue:n,oldValue:i,oldTarget:r}:void 0);so()}const Bh=Sn("__proto__,__v_isRef,__isVue"),gl=new Set(Object.getOwnPropertyNames(Symbol).filter(s=>s!=="arguments"&&s!=="caller").map(s=>Symbol[s]).filter(sn)),yl=Yh();function Yh(){const s={};return["includes","indexOf","lastIndexOf"].forEach(t=>{s[t]=function(...e){const n=Pt(this);for(let r=0,o=this.length;r<o;r++)we(n,"get",r+"");const i=n[t](...e);return i===-1||i===!1?n[t](...e.map(Pt)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{s[t]=function(...e){bs(),eo();const n=Pt(this)[t].apply(this,e);return so(),xs(),n}}),s}function Xh(s){sn(s)||(s=String(s));const t=Pt(this);return we(t,"has",s),t.hasOwnProperty(s)}class vl{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,n){const i=this._isReadonly,r=this._isShallow;if(e==="__v_isReactive")return!i;if(e==="__v_isReadonly")return i;if(e==="__v_isShallow")return r;if(e==="__v_raw")return n===(i?r?Pl:Ol:r?Tl:kl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=mt(t);if(!i){if(o&&Mt(yl,e))return Reflect.get(yl,e,n);if(e==="hasOwnProperty")return Xh}const a=Reflect.get(t,e,n);return(sn(e)?gl.has(e):Bh(e))||(i||we(t,"get",e),r)?a:Se(a)?o&&Zr(e)?a:a.value:Bt(a)?i?Dl(a):Pe(a):a}}class _l extends vl{constructor(t=!1){super(!1,t)}set(t,e,n,i){let r=t[e];if(!this._isShallow){const l=ln(r);if(!cn(n)&&!ln(n)&&(r=Pt(r),n=Pt(n)),!mt(t)&&Se(r)&&!Se(n))return l?!1:(r.value=n,!0)}const o=mt(t)&&Zr(e)?Number(e)<t.length:Mt(t,e),a=Reflect.set(t,e,n,i);return t===Pt(i)&&(o?Vs(n,r)&&us(t,"set",e,n,r):us(t,"add",e,n)),a}deleteProperty(t,e){const n=Mt(t,e),i=t[e],r=Reflect.deleteProperty(t,e);return r&&n&&us(t,"delete",e,void 0,i),r}has(t,e){const n=Reflect.has(t,e);return(!sn(e)||!gl.has(e))&&we(t,"has",e),n}ownKeys(t){return we(t,"iterate",mt(t)?"length":an),Reflect.ownKeys(t)}}class bl extends vl{constructor(t=!1){super(!0,t)}set(t,e){return{}.NODE_ENV!=="production"&&Ls(`Set operation on key "${String(e)}" failed: target is readonly.`,t),!0}deleteProperty(t,e){return{}.NODE_ENV!=="production"&&Ls(`Delete operation on key "${String(e)}" failed: target is readonly.`,t),!0}}const Hh=new _l,Uh=new bl,Wh=new _l(!0),qh=new bl(!0),oo=s=>s,Ri=s=>Reflect.getPrototypeOf(s);function $i(s,t,e=!1,n=!1){s=s.__v_raw;const i=Pt(s),r=Pt(t);e||(Vs(t,r)&&we(i,"get",t),we(i,"get",r));const{has:o}=Ri(i),a=n?oo:e?lo:Xn;if(o.call(i,t))return a(s.get(t));if(o.call(i,r))return a(s.get(r));s!==i&&s.get(t)}function Vi(s,t=!1){const e=this.__v_raw,n=Pt(e),i=Pt(s);return t||(Vs(s,i)&&we(n,"has",s),we(n,"has",i)),s===i?e.has(s):e.has(s)||e.has(i)}function Li(s,t=!1){return s=s.__v_raw,!t&&we(Pt(s),"iterate",an),Reflect.get(s,"size",s)}function xl(s){s=Pt(s);const t=Pt(this);return Ri(t).has.call(t,s)||(t.add(s),us(t,"add",s,s)),this}function wl(s,t){t=Pt(t);const e=Pt(this),{has:n,get:i}=Ri(e);let r=n.call(e,s);r?{}.NODE_ENV!=="production"&&El(e,n,s):(s=Pt(s),r=n.call(e,s));const o=i.call(e,s);return e.set(s,t),r?Vs(t,o)&&us(e,"set",s,t,o):us(e,"add",s,t),this}function Sl(s){const t=Pt(this),{has:e,get:n}=Ri(t);let i=e.call(t,s);i?{}.NODE_ENV!=="production"&&El(t,e,s):(s=Pt(s),i=e.call(t,s));const r=n?n.call(t,s):void 0,o=t.delete(s);return i&&us(t,"delete",s,void 0,r),o}function Cl(){const s=Pt(this),t=s.size!==0,e={}.NODE_ENV!=="production"?en(s)?new Map(s):new Set(s):void 0,n=s.clear();return t&&us(s,"clear",void 0,void 0,e),n}function Fi(s,t){return function(n,i){const r=this,o=r.__v_raw,a=Pt(o),l=t?oo:s?lo:Xn;return!s&&we(a,"iterate",an),o.forEach((c,u)=>n.call(i,l(c),l(u),r))}}function Gi(s,t,e){return function(...n){const i=this.__v_raw,r=Pt(i),o=en(r),a=s==="entries"||s===Symbol.iterator&&o,l=s==="keys"&&o,c=i[s](...n),u=e?oo:t?lo:Xn;return!t&&we(r,"iterate",l?ro:an),{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 Gs(s){return function(...t){if({}.NODE_ENV!=="production"){const e=t[0]?`on key "${t[0]}" `:"";Ls(`${nn(s)} operation ${e}failed: target is readonly.`,Pt(this))}return s==="delete"?!1:s==="clear"?void 0:this}}function Zh(){const s={get(r){return $i(this,r)},get size(){return Li(this)},has:Vi,add:xl,set:wl,delete:Sl,clear:Cl,forEach:Fi(!1,!1)},t={get(r){return $i(this,r,!1,!0)},get size(){return Li(this)},has:Vi,add:xl,set:wl,delete:Sl,clear:Cl,forEach:Fi(!1,!0)},e={get(r){return $i(this,r,!0)},get size(){return Li(this,!0)},has(r){return Vi.call(this,r,!0)},add:Gs("add"),set:Gs("set"),delete:Gs("delete"),clear:Gs("clear"),forEach:Fi(!0,!1)},n={get(r){return $i(this,r,!0,!0)},get size(){return Li(this,!0)},has(r){return Vi.call(this,r,!0)},add:Gs("add"),set:Gs("set"),delete:Gs("delete"),clear:Gs("clear"),forEach:Fi(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=Gi(r,!1,!1),e[r]=Gi(r,!0,!1),t[r]=Gi(r,!1,!0),n[r]=Gi(r,!0,!0)}),[s,e,t,n]}const[Kh,Qh,Jh,td]=Zh();function zi(s,t){const e=t?s?td:Jh:s?Qh:Kh;return(n,i,r)=>i==="__v_isReactive"?!s:i==="__v_isReadonly"?s:i==="__v_raw"?n:Reflect.get(Mt(e,i)&&i in n?e:n,i,r)}const ed={get:zi(!1,!1)},sd={get:zi(!1,!0)},nd={get:zi(!0,!1)},id={get:zi(!0,!0)};function El(s,t,e){const n=Pt(e);if(n!==e&&t.call(s,n)){const i=qr(s);Ls(`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 kl=new WeakMap,Tl=new WeakMap,Ol=new WeakMap,Pl=new WeakMap;function rd(s){switch(s){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function od(s){return s.__v_skip||!Object.isExtensible(s)?0:rd(qr(s))}function Pe(s){return ln(s)?s:ji(s,!1,Hh,ed,kl)}function ad(s){return ji(s,!1,Wh,sd,Tl)}function Dl(s){return ji(s,!0,Uh,nd,Ol)}function ws(s){return ji(s,!0,qh,id,Pl)}function ji(s,t,e,n,i){if(!Bt(s))return{}.NODE_ENV!=="production"&&Ls(`value cannot be made reactive: ${String(s)}`),s;if(s.__v_raw&&!(t&&s.__v_isReactive))return s;const r=i.get(s);if(r)return r;const o=od(s);if(o===0)return s;const a=new Proxy(s,o===2?n:e);return i.set(s,a),a}function En(s){return ln(s)?En(s.__v_raw):!!(s&&s.__v_isReactive)}function ln(s){return!!(s&&s.__v_isReadonly)}function cn(s){return!!(s&&s.__v_isShallow)}function ao(s){return s?!!s.__v_raw:!1}function Pt(s){const t=s&&s.__v_raw;return t?Pt(t):s}function ld(s){return Object.isExtensible(s)&&rl(s,"__v_skip",!0),s}const Xn=s=>Bt(s)?Pe(s):s,lo=s=>Bt(s)?Dl(s):s,cd="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 Il{constructor(t,e,n,i){this.getter=t,this._setter=e,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Jr(()=>t(this._value),()=>Bi(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const t=Pt(this);return(!t._cacheable||t.effect.dirty)&&Vs(t._value,t._value=t.effect.run())&&Bi(t,4),Nl(t),t.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&Ls(cd,`
|
|
9
|
+
**/function Fs(s,...t){console.warn(`[Vue warn] ${s}`,...t)}let ss;class Yh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ss,!t&&ss&&(this.index=(ss.scopes||(ss.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const e=ss;try{return ss=this,t()}finally{ss=e}}else({}).NODE_ENV!=="production"&&Fs("cannot run an inactive effect scope.")}on(){ss=this}off(){ss=this.parent}stop(t){if(this._active){let e,n;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].stop();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){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 Hh(s,t=ss){t&&t.active&&t.effects.push(s)}function Xh(){return ss}let on;class so{constructor(t,e,n,i){this.fn=t,this.trigger=e,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Hh(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,xs();for(let t=0;t<this._depsLength;t++){const e=this.deps[t];if(e.computed&&(Uh(e.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),ws()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Gs,e=on;try{return Gs=!0,on=this,this._runnings++,pl(this),this.fn()}finally{ml(this),this._runnings--,on=e,Gs=t}}stop(){var t;this.active&&(pl(this),ml(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Uh(s){return s.value}function pl(s){s._trackId++,s._depsLength=0}function ml(s){if(s.deps.length>s._depsLength){for(let t=s._depsLength;t<s.deps.length;t++)gl(s.deps[t],s);s.deps.length=s._depsLength}}function gl(s,t){const e=s.get(t);e!==void 0&&t._trackId!==e&&(s.delete(t),s.size===0&&s.cleanup())}let Gs=!0,no=0;const yl=[];function xs(){yl.push(Gs),Gs=!1}function ws(){const s=yl.pop();Gs=s===void 0?!0:s}function io(){no++}function ro(){for(no--;!no&&oo.length;)oo.shift()()}function vl(s,t,e){var n;if(t.get(s)!==s._trackId){t.set(s,s._trackId);const i=s.deps[s._depsLength];i!==t?(i&&gl(i,s),s.deps[s._depsLength++]=t):s._depsLength++,{}.NODE_ENV!=="production"&&((n=s.onTrack)==null||n.call(s,se({effect:s},e)))}}const oo=[];function _l(s,t,e){var n;io();for(const i of s.keys()){let r;i._dirtyLevel<t&&(r??(r=s.get(i)===i._trackId))&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=t),i._shouldSchedule&&(r??(r=s.get(i)===i._trackId))&&({}.NODE_ENV!=="production"&&((n=i.onTrigger)==null||n.call(i,se({effect:i},e))),i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&oo.push(i.scheduler)))}ro()}const bl=(s,t)=>{const e=new Map;return e.cleanup=s,e.computed=t,e},ao=new WeakMap,an=Symbol({}.NODE_ENV!=="production"?"iterate":""),lo=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function Ee(s,t,e){if(Gs&&on){let n=ao.get(s);n||ao.set(s,n=new Map);let i=n.get(e);i||n.set(e,i=bl(()=>n.delete(e))),vl(on,i,{}.NODE_ENV!=="production"?{target:s,type:t,key:e}:void 0)}}function hs(s,t,e,n,i,r){const o=ao.get(s);if(!o)return;let a=[];if(t==="clear")a=[...o.values()];else if(e==="length"&&mt(s)){const l=Number(n);o.forEach((c,u)=>{(u==="length"||!sn(u)&&u>=l)&&a.push(c)})}else switch(e!==void 0&&a.push(o.get(e)),t){case"add":mt(s)?Jr(e)&&a.push(o.get("length")):(a.push(o.get(an)),en(s)&&a.push(o.get(lo)));break;case"delete":mt(s)||(a.push(o.get(an)),en(s)&&a.push(o.get(lo)));break;case"set":en(s)&&a.push(o.get(an));break}io();for(const l of a)l&&_l(l,4,{}.NODE_ENV!=="production"?{target:s,type:t,key:e,newValue:n,oldValue:i,oldTarget:r}:void 0);ro()}const Wh=En("__proto__,__v_isRef,__isVue"),xl=new Set(Object.getOwnPropertyNames(Symbol).filter(s=>s!=="arguments"&&s!=="caller").map(s=>Symbol[s]).filter(sn)),wl=qh();function qh(){const s={};return["includes","indexOf","lastIndexOf"].forEach(t=>{s[t]=function(...e){const n=Pt(this);for(let r=0,o=this.length;r<o;r++)Ee(n,"get",r+"");const i=n[t](...e);return i===-1||i===!1?n[t](...e.map(Pt)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{s[t]=function(...e){xs(),io();const n=Pt(this)[t].apply(this,e);return ro(),ws(),n}}),s}function Zh(s){sn(s)||(s=String(s));const t=Pt(this);return Ee(t,"has",s),t.hasOwnProperty(s)}class Sl{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,n){const i=this._isReadonly,r=this._isShallow;if(e==="__v_isReactive")return!i;if(e==="__v_isReadonly")return i;if(e==="__v_isShallow")return r;if(e==="__v_raw")return n===(i?r?Al:Nl:r?Ml:Dl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=mt(t);if(!i){if(o&&At(wl,e))return Reflect.get(wl,e,n);if(e==="hasOwnProperty")return Zh}const a=Reflect.get(t,e,n);return(sn(e)?xl.has(e):Wh(e))||(i||Ee(t,"get",e),r)?a:Te(a)?o&&Jr(e)?a:a.value:Yt(a)?i?Rl(a):ne(a):a}}class Cl extends Sl{constructor(t=!1){super(!1,t)}set(t,e,n,i){let r=t[e];if(!this._isShallow){const l=ln(r);if(!cn(n)&&!ln(n)&&(r=Pt(r),n=Pt(n)),!mt(t)&&Te(r)&&!Te(n))return l?!1:(r.value=n,!0)}const o=mt(t)&&Jr(e)?Number(e)<t.length:At(t,e),a=Reflect.set(t,e,n,i);return t===Pt(i)&&(o?Vs(n,r)&&hs(t,"set",e,n,r):hs(t,"add",e,n)),a}deleteProperty(t,e){const n=At(t,e),i=t[e],r=Reflect.deleteProperty(t,e);return r&&n&&hs(t,"delete",e,void 0,i),r}has(t,e){const n=Reflect.has(t,e);return(!sn(e)||!xl.has(e))&&Ee(t,"has",e),n}ownKeys(t){return Ee(t,"iterate",mt(t)?"length":an),Reflect.ownKeys(t)}}class kl extends Sl{constructor(t=!1){super(!0,t)}set(t,e){return{}.NODE_ENV!=="production"&&Fs(`Set operation on key "${String(e)}" failed: target is readonly.`,t),!0}deleteProperty(t,e){return{}.NODE_ENV!=="production"&&Fs(`Delete operation on key "${String(e)}" failed: target is readonly.`,t),!0}}const Kh=new Cl,Qh=new kl,Jh=new Cl(!0),td=new kl(!0),co=s=>s,Vi=s=>Reflect.getPrototypeOf(s);function Fi(s,t,e=!1,n=!1){s=s.__v_raw;const i=Pt(s),r=Pt(t);e||(Vs(t,r)&&Ee(i,"get",t),Ee(i,"get",r));const{has:o}=Vi(i),a=n?co:e?ho:Un;if(o.call(i,t))return a(s.get(t));if(o.call(i,r))return a(s.get(r));s!==i&&s.get(t)}function Gi(s,t=!1){const e=this.__v_raw,n=Pt(e),i=Pt(s);return t||(Vs(s,i)&&Ee(n,"has",s),Ee(n,"has",i)),s===i?e.has(s):e.has(s)||e.has(i)}function zi(s,t=!1){return s=s.__v_raw,!t&&Ee(Pt(s),"iterate",an),Reflect.get(s,"size",s)}function El(s){s=Pt(s);const t=Pt(this);return Vi(t).has.call(t,s)||(t.add(s),hs(t,"add",s,s)),this}function Tl(s,t){t=Pt(t);const e=Pt(this),{has:n,get:i}=Vi(e);let r=n.call(e,s);r?{}.NODE_ENV!=="production"&&Il(e,n,s):(s=Pt(s),r=n.call(e,s));const o=i.call(e,s);return e.set(s,t),r?Vs(t,o)&&hs(e,"set",s,t,o):hs(e,"add",s,t),this}function Ol(s){const t=Pt(this),{has:e,get:n}=Vi(t);let i=e.call(t,s);i?{}.NODE_ENV!=="production"&&Il(t,e,s):(s=Pt(s),i=e.call(t,s));const r=n?n.call(t,s):void 0,o=t.delete(s);return i&&hs(t,"delete",s,void 0,r),o}function Pl(){const s=Pt(this),t=s.size!==0,e={}.NODE_ENV!=="production"?en(s)?new Map(s):new Set(s):void 0,n=s.clear();return t&&hs(s,"clear",void 0,void 0,e),n}function Bi(s,t){return function(n,i){const r=this,o=r.__v_raw,a=Pt(o),l=t?co:s?ho:Un;return!s&&Ee(a,"iterate",an),o.forEach((c,u)=>n.call(i,l(c),l(u),r))}}function ji(s,t,e){return function(...n){const i=this.__v_raw,r=Pt(i),o=en(r),a=s==="entries"||s===Symbol.iterator&&o,l=s==="keys"&&o,c=i[s](...n),u=e?co:t?ho:Un;return!t&&Ee(r,"iterate",l?lo:an),{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 zs(s){return function(...t){if({}.NODE_ENV!=="production"){const e=t[0]?`on key "${t[0]}" `:"";Fs(`${nn(s)} operation ${e}failed: target is readonly.`,Pt(this))}return s==="delete"?!1:s==="clear"?void 0:this}}function ed(){const s={get(r){return Fi(this,r)},get size(){return zi(this)},has:Gi,add:El,set:Tl,delete:Ol,clear:Pl,forEach:Bi(!1,!1)},t={get(r){return Fi(this,r,!1,!0)},get size(){return zi(this)},has:Gi,add:El,set:Tl,delete:Ol,clear:Pl,forEach:Bi(!1,!0)},e={get(r){return Fi(this,r,!0)},get size(){return zi(this,!0)},has(r){return Gi.call(this,r,!0)},add:zs("add"),set:zs("set"),delete:zs("delete"),clear:zs("clear"),forEach:Bi(!0,!1)},n={get(r){return Fi(this,r,!0,!0)},get size(){return zi(this,!0)},has(r){return Gi.call(this,r,!0)},add:zs("add"),set:zs("set"),delete:zs("delete"),clear:zs("clear"),forEach:Bi(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=ji(r,!1,!1),e[r]=ji(r,!0,!1),t[r]=ji(r,!1,!0),n[r]=ji(r,!0,!0)}),[s,e,t,n]}const[sd,nd,id,rd]=ed();function Yi(s,t){const e=t?s?rd:id:s?nd:sd;return(n,i,r)=>i==="__v_isReactive"?!s:i==="__v_isReadonly"?s:i==="__v_raw"?n:Reflect.get(At(e,i)&&i in n?e:n,i,r)}const od={get:Yi(!1,!1)},ad={get:Yi(!1,!0)},ld={get:Yi(!0,!1)},cd={get:Yi(!0,!0)};function Il(s,t,e){const n=Pt(e);if(n!==e&&t.call(s,n)){const i=Qr(s);Fs(`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 Dl=new WeakMap,Ml=new WeakMap,Nl=new WeakMap,Al=new WeakMap;function ud(s){switch(s){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function hd(s){return s.__v_skip||!Object.isExtensible(s)?0:ud(Qr(s))}function ne(s){return ln(s)?s:Hi(s,!1,Kh,od,Dl)}function dd(s){return Hi(s,!1,Jh,ad,Ml)}function Rl(s){return Hi(s,!0,Qh,ld,Nl)}function Ss(s){return Hi(s,!0,td,cd,Al)}function Hi(s,t,e,n,i){if(!Yt(s))return{}.NODE_ENV!=="production"&&Fs(`value cannot be made reactive: ${String(s)}`),s;if(s.__v_raw&&!(t&&s.__v_isReactive))return s;const r=i.get(s);if(r)return r;const o=hd(s);if(o===0)return s;const a=new Proxy(s,o===2?n:e);return i.set(s,a),a}function On(s){return ln(s)?On(s.__v_raw):!!(s&&s.__v_isReactive)}function ln(s){return!!(s&&s.__v_isReadonly)}function cn(s){return!!(s&&s.__v_isShallow)}function uo(s){return s?!!s.__v_raw:!1}function Pt(s){const t=s&&s.__v_raw;return t?Pt(t):s}function fd(s){return Object.isExtensible(s)&&ul(s,"__v_skip",!0),s}const Un=s=>Yt(s)?ne(s):s,ho=s=>Yt(s)?Rl(s):s,pd="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 $l{constructor(t,e,n,i){this.getter=t,this._setter=e,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new so(()=>t(this._value),()=>Xi(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const t=Pt(this);return(!t._cacheable||t.effect.dirty)&&Vs(t._value,t._value=t.effect.run())&&Xi(t,4),Ll(t),t.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&Fs(pd,`
|
|
10
10
|
|
|
11
|
-
getter: `,this.getter),
|
|
11
|
+
getter: `,this.getter),Xi(t,2)),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function md(s,t,e=!1){let n,i;const r=St(s);r?(n=s,i={}.NODE_ENV!=="production"?()=>{Fs("Write operation failed: computed value is readonly")}:he):(n=s.get,i=s.set);const o=new $l(n,i,r||!i,e);return{}.NODE_ENV!=="production"&&t&&!e&&(o.effect.onTrack=t.onTrack,o.effect.onTrigger=t.onTrigger),o}function Ll(s){var t;Gs&&on&&(s=Pt(s),vl(on,(t=s.dep)!=null?t:s.dep=bl(()=>s.dep=void 0,s instanceof $l?s:void 0),{}.NODE_ENV!=="production"?{target:s,type:"get",key:"value"}:void 0))}function Xi(s,t=4,e){s=Pt(s);const n=s.dep;n&&_l(n,t,{}.NODE_ENV!=="production"?{target:s,type:"set",key:"value",newValue:e}:void 0)}function Te(s){return!!(s&&s.__v_isRef===!0)}function R(s){return gd(s,!1)}function gd(s,t){return Te(s)?s:new yd(s,t)}class yd{constructor(t,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:Pt(t),this._value=e?t:Un(t)}get value(){return Ll(this),this._value}set value(t){const e=this.__v_isShallow||cn(t)||ln(t);t=e?t:Pt(t),Vs(t,this._rawValue)&&(this._rawValue=t,this._value=e?t:Un(t),Xi(this,4,t))}}function Lt(s){return Te(s)?s.value:s}const vd={get:(s,t,e)=>Lt(Reflect.get(s,t,e)),set:(s,t,e,n)=>{const i=s[t];return Te(i)&&!Te(e)?(i.value=e,!0):Reflect.set(s,t,e,n)}};function Vl(s){return On(s)?s:new Proxy(s,vd)}/**
|
|
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 un=[];function
|
|
15
|
+
**/const un=[];function Ui(s){un.push(s)}function Wi(){un.pop()}function st(s,...t){xs();const e=un.length?un[un.length-1].component:null,n=e&&e.appContext.config.warnHandler,i=_d();if(n)Cs(n,e,11,[s+t.map(r=>{var o,a;return(a=(o=r.toString)==null?void 0:o.call(r))!=null?a:JSON.stringify(r)}).join(""),e&&e.proxy,i.map(({vnode:r})=>`at <${hr(e,r.type)}>`).join(`
|
|
16
16
|
`),i]);else{const r=[`[Vue warn]: ${s}`,...t];i.length&&r.push(`
|
|
17
|
-
`,...
|
|
18
|
-
`],...gd(e))}),t}function gd({vnode:s,recurseCount:t}){const e=t>0?`... (${t} recursive calls)`:"",n=s.component?s.component.parent==null:!1,i=` at <${lr(s.component,s.type,n)}`,r=">"+e;return s.props?[i,...yd(s.props),r]:[i+r]}function yd(s){const t=[],e=Object.keys(s);return e.slice(0,3).forEach(n=>{t.push(...Al(n,s[n]))}),e.length>3&&t.push(" ..."),t}function Al(s,t,e){return le(t)?(t=JSON.stringify(t),e?t:[`${s}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?e?t:[`${s}=${t}`]:Se(t)?(t=Al(s,Pt(t.value),!0),e?t:[`${s}=Ref<`,t,">"]):St(t)?[`${s}=fn${t.name?`<${t.name}>`:""}`]:(t=Pt(t),e?t:[`${s}=`,t])}const co={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 Ss(s,t,e,n){try{return n?s(...n):s()}catch(i){Hn(i,t,e)}}function ss(s,t,e,n){if(St(s)){const i=Ss(s,t,e,n);return i&&Wr(i)&&i.catch(r=>{Hn(r,t,e)}),i}if(mt(s)){const i=[];for(let r=0;r<s.length;r++)i.push(ss(s[r],t,e,n));return i}else({}).NODE_ENV!=="production"&&st(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof s}`)}function Hn(s,t,e,n=!0){const i=t?t.vnode:null;if(t){let r=t.parent;const o=t.proxy,a={}.NODE_ENV!=="production"?co[e]:`https://vuejs.org/error-reference/#runtime-${e}`;for(;r;){const c=r.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](s,o,a)===!1)return}r=r.parent}const l=t.appContext.config.errorHandler;if(l){bs(),Ss(l,null,10,[s,o,a]),xs();return}}vd(s,e,i,n)}function vd(s,t,e,n=!0){if({}.NODE_ENV!=="production"){const i=co[t];if(e&&Yi(e),st(`Unhandled error${i?` during execution of ${i}`:""}`),e&&Xi(),n)throw s;console.error(s)}else console.error(s)}let Un=!1,uo=!1;const Oe=[];let hs=0;const kn=[];let Cs=null,zs=0;const Rl=Promise.resolve();let ho=null;const _d=100;function $l(s){const t=ho||Rl;return s?t.then(this?s.bind(this):s):t}function bd(s){let t=hs+1,e=Oe.length;for(;t<e;){const n=t+e>>>1,i=Oe[n],r=Wn(i);r<s||r===s&&i.pre?t=n+1:e=n}return t}function Hi(s){(!Oe.length||!Oe.includes(s,Un&&s.allowRecurse?hs+1:hs))&&(s.id==null?Oe.push(s):Oe.splice(bd(s.id),0,s),Vl())}function Vl(){!Un&&!uo&&(uo=!0,ho=Rl.then(zl))}function xd(s){const t=Oe.indexOf(s);t>hs&&Oe.splice(t,1)}function Ll(s){mt(s)?kn.push(...s):(!Cs||!Cs.includes(s,s.allowRecurse?zs+1:zs))&&kn.push(s),Vl()}function Fl(s,t,e=Un?hs+1:0){for({}.NODE_ENV!=="production"&&(t=t||new Map);e<Oe.length;e++){const n=Oe[e];if(n&&n.pre){if(s&&n.id!==s.uid||{}.NODE_ENV!=="production"&&fo(t,n))continue;Oe.splice(e,1),e--,n()}}}function Gl(s){if(kn.length){const t=[...new Set(kn)].sort((e,n)=>Wn(e)-Wn(n));if(kn.length=0,Cs){Cs.push(...t);return}for(Cs=t,{}.NODE_ENV!=="production"&&(s=s||new Map),zs=0;zs<Cs.length;zs++)({}).NODE_ENV!=="production"&&fo(s,Cs[zs])||Cs[zs]();Cs=null,zs=0}}const Wn=s=>s.id==null?1/0:s.id,wd=(s,t)=>{const e=Wn(s)-Wn(t);if(e===0){if(s.pre&&!t.pre)return-1;if(t.pre&&!s.pre)return 1}return e};function zl(s){uo=!1,Un=!0,{}.NODE_ENV!=="production"&&(s=s||new Map),Oe.sort(wd);const t={}.NODE_ENV!=="production"?e=>fo(s,e):ae;try{for(hs=0;hs<Oe.length;hs++){const e=Oe[hs];if(e&&e.active!==!1){if({}.NODE_ENV!=="production"&&t(e))continue;Ss(e,null,14)}}}finally{hs=0,Oe.length=0,Gl(s),Un=!1,ho=null,(Oe.length||kn.length)&&zl(s)}}function fo(s,t){if(!s.has(t))s.set(t,1);else{const e=s.get(t);if(e>_d){const n=t.ownerInstance,i=n&&Fo(n.type);return Hn(`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 s.set(t,e+1)}}let hn=!1;const Tn=new Set;({}).NODE_ENV!=="production"&&(Kr().__VUE_HMR_RUNTIME__={createRecord:po(jl),rerender:po(Ed),reload:po(kd)});const dn=new Map;function Sd(s){const t=s.type.__hmrId;let e=dn.get(t);e||(jl(t,s.type),e=dn.get(t)),e.instances.add(s)}function Cd(s){dn.get(s.type.__hmrId).instances.delete(s)}function jl(s,t){return dn.has(s)?!1:(dn.set(s,{initialDef:qn(t),instances:new Set}),!0)}function qn(s){return Vc(s)?s.__vccOpts:s}function Ed(s,t){const e=dn.get(s);e&&(e.initialDef.render=t,[...e.instances].forEach(n=>{t&&(n.render=t,qn(n.type).render=t),n.renderCache=[],hn=!0,n.effect.dirty=!0,n.update(),hn=!1}))}function kd(s,t){const e=dn.get(s);if(!e)return;t=qn(t),Bl(e.initialDef,t);const n=[...e.instances];for(const i of n){const r=qn(i.type);Tn.has(r)||(r!==e.initialDef&&Bl(r,t),Tn.add(r)),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(Tn.add(r),i.ceReload(t.styles),Tn.delete(r)):i.parent?(i.parent.effect.dirty=!0,Hi(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.")}Ll(()=>{for(const i of n)Tn.delete(qn(i.type))})}function Bl(s,t){te(s,t);for(const e in s)e!=="__file"&&!(e in t)&&delete s[e]}function po(s){return(t,e)=>{try{return s(t,e)}catch(n){console.error(n),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let ds,Zn=[],mo=!1;function Kn(s,...t){ds?ds.emit(s,...t):mo||Zn.push({event:s,args:t})}function Yl(s,t){var e,n;ds=s,ds?(ds.enabled=!0,Zn.forEach(({event:i,args:r})=>ds.emit(i,...r)),Zn=[]):typeof window<"u"&&window.HTMLElement&&!((n=(e=window.navigator)==null?void 0:e.userAgent)!=null&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{Yl(r,t)}),setTimeout(()=>{ds||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,mo=!0,Zn=[])},3e3)):(mo=!0,Zn=[])}function Td(s,t){Kn("app:init",s,t,{Fragment:zt,Text:si,Comment:Fe,Static:nr})}function Od(s){Kn("app:unmount",s)}const Pd=go("component:added"),Xl=go("component:updated"),Dd=go("component:removed"),Id=s=>{ds&&typeof ds.cleanupBuffer=="function"&&!ds.cleanupBuffer(s)&&Dd(s)};/*! #__NO_SIDE_EFFECTS__ */function go(s){return t=>{Kn(s,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const Nd=Hl("perf:start"),Md=Hl("perf:end");function Hl(s){return(t,e,n)=>{Kn(s,t.appContext.app,t.uid,t,e,n)}}function Ad(s,t,e){Kn("component:emit",s.appContext.app,s,t,e)}function Rd(s,t,...e){if(s.isUnmounted)return;const n=s.vnode.props||Ht;if({}.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[h]}=s;if(u)if(!(t in u))(!h||!(rn(t)in h))&&st(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${rn(t)}" prop.`);else{const f=u[t];St(f)&&(f(...e)||st(`Invalid event arguments: event validation failed for event "${t}".`))}}let i=e;const r=t.startsWith("update:"),o=r&&t.slice(7);if(o&&o in n){const u=`${o==="modelValue"?"model":o}Modifiers`,{number:h,trim:f}=n[u]||Ht;f&&(i=e.map(d=>le(d)?d.trim():d)),h&&(i=e.map(Mh))}if({}.NODE_ENV!=="production"&&Ad(s,t,i),{}.NODE_ENV!=="production"){const u=t.toLowerCase();u!==t&&n[rn(u)]&&st(`Event "${u}" is emitted in component ${lr(s,s.type)} but the handler is registered for "${t}". 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 "${$s(t)}" instead of "${t}".`)}let a,l=n[a=rn(t)]||n[a=rn(cs(t))];!l&&r&&(l=n[a=rn($s(t))]),l&&ss(l,s,6,i);const c=n[a+"Once"];if(c){if(!s.emitted)s.emitted={};else if(s.emitted[a])return;s.emitted[a]=!0,ss(c,s,6,i)}}function Ul(s,t,e=!1){const n=t.emitsCache,i=n.get(s);if(i!==void 0)return i;const r=s.emits;let o={},a=!1;if(!St(s)){const l=c=>{const u=Ul(c,t,!0);u&&(a=!0,te(o,u))};!e&&t.mixins.length&&t.mixins.forEach(l),s.extends&&l(s.extends),s.mixins&&s.mixins.forEach(l)}return!r&&!a?(Bt(s)&&n.set(s,null),null):(mt(r)?r.forEach(l=>o[l]=null):te(o,r),Bt(s)&&n.set(s,o),o)}function Ui(s,t){return!s||!jn(t)?!1:(t=t.slice(2).replace(/Once$/,""),Mt(s,t[0].toLowerCase()+t.slice(1))||Mt(s,$s(t))||Mt(s,t))}let ce=null,Wi=null;function qi(s){const t=ce;return ce=s,Wi=s&&s.type.__scopeId||null,t}function On(s){Wi=s}function Pn(){Wi=null}function he(s,t=ce,e){if(!t||s._n)return s;const n=(...i)=>{n._d&&Ec(-1);const r=qi(t);let o;try{o=s(...i)}finally{qi(r),n._d&&Ec(1)}return{}.NODE_ENV!=="production"&&Xl(t),o};return n._n=!0,n._c=!0,n._d=!0,n}let yo=!1;function Zi(){yo=!0}function vo(s){const{type:t,vnode:e,proxy:n,withProxy:i,propsOptions:[r],slots:o,attrs:a,emit:l,render:c,renderCache:u,props:h,data:f,setupState:d,ctx:m,inheritAttrs:v}=s,_=qi(s);let E,D;({}).NODE_ENV!=="production"&&(yo=!1);try{if(e.shapeFlag&4){const tt=i||n,R={}.NODE_ENV!=="production"&&d.__isScriptSetup?new Proxy(tt,{get(U,vt,bt){return st(`Property '${String(vt)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(U,vt,bt)}}):tt;E=is(c.call(R,tt,u,{}.NODE_ENV!=="production"?ws(h):h,d,f,m)),D=a}else{const tt=t;({}).NODE_ENV!=="production"&&a===h&&Zi(),E=is(tt.length>1?tt({}.NODE_ENV!=="production"?ws(h):h,{}.NODE_ENV!=="production"?{get attrs(){return Zi(),a},slots:o,emit:l}:{attrs:a,slots:o,emit:l}):tt({}.NODE_ENV!=="production"?ws(h):h,null)),D=t.props?a:$d(a)}}catch(tt){ni.length=0,Hn(tt,s,1),E=pt(Fe)}let N=E,k;if({}.NODE_ENV!=="production"&&E.patchFlag>0&&E.patchFlag&2048&&([N,k]=Wl(E)),D&&v!==!1){const tt=Object.keys(D),{shapeFlag:R}=N;if(tt.length){if(R&7)r&&tt.some(Ni)&&(D=Vd(D,r)),N=Ys(N,D);else if({}.NODE_ENV!=="production"&&!yo&&N.type!==Fe){const U=Object.keys(a),vt=[],bt=[];for(let Ct=0,Rt=U.length;Ct<Rt;Ct++){const $t=U[Ct];jn($t)?Ni($t)||vt.push($t[2].toLowerCase()+$t.slice(3)):bt.push($t)}bt.length&&st(`Extraneous non-props attributes (${bt.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),vt.length&&st(`Extraneous non-emits event listeners (${vt.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 e.dirs&&({}.NODE_ENV!=="production"&&!ql(N)&&st("Runtime directive used on component with non-element root node. The directives will not function as intended."),N=Ys(N),N.dirs=N.dirs?N.dirs.concat(e.dirs):e.dirs),e.transition&&({}.NODE_ENV!=="production"&&!ql(N)&&st("Component inside <Transition> renders non-element root node that cannot be animated."),N.transition=e.transition),{}.NODE_ENV!=="production"&&k?k(N):E=N,qi(_),E}const Wl=s=>{const t=s.children,e=s.dynamicChildren,n=_o(t,!1);if(n){if({}.NODE_ENV!=="production"&&n.patchFlag>0&&n.patchFlag&2048)return Wl(n)}else return[s,void 0];const i=t.indexOf(n),r=e?e.indexOf(n):-1,o=a=>{t[i]=a,e&&(r>-1?e[r]=a:a.patchFlag>0&&(s.dynamicChildren=[...e,a]))};return[is(n),o]};function _o(s,t=!0){let e;for(let n=0;n<s.length;n++){const i=s[n];if(Dn(i)){if(i.type!==Fe||i.children==="v-if"){if(e)return;if(e=i,{}.NODE_ENV!=="production"&&t&&e.patchFlag>0&&e.patchFlag&2048)return _o(e.children)}}else return}return e}const $d=s=>{let t;for(const e in s)(e==="class"||e==="style"||jn(e))&&((t||(t={}))[e]=s[e]);return t},Vd=(s,t)=>{const e={};for(const n in s)(!Ni(n)||!(n.slice(9)in t))&&(e[n]=s[n]);return e},ql=s=>s.shapeFlag&7||s.type===Fe;function Ld(s,t,e){const{props:n,children:i,component:r}=s,{props:o,children:a,patchFlag:l}=t,c=r.emitsOptions;if({}.NODE_ENV!=="production"&&(i||a)&&hn||t.dirs||t.transition)return!0;if(e&&l>=0){if(l&1024)return!0;if(l&16)return n?Zl(n,o,c):!!o;if(l&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const f=u[h];if(o[f]!==n[f]&&!Ui(c,f))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:n===o?!1:n?o?Zl(n,o,c):!0:!!o;return!1}function Zl(s,t,e){const n=Object.keys(t);if(n.length!==Object.keys(s).length)return!0;for(let i=0;i<n.length;i++){const r=n[i];if(t[r]!==s[r]&&!Ui(e,r))return!0}return!1}function Fd({vnode:s,parent:t},e){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===s&&(n.el=s.el),n===s)(s=t.vnode).el=e,t=t.parent;else break}}const bo="components";function Gd(s,t){return jd(bo,s,!0,t)||s}const zd=Symbol.for("v-ndc");function jd(s,t,e=!0,n=!1){const i=ce||pe;if(i){const r=i.type;if(s===bo){const a=Fo(r,!1);if(a&&(a===t||a===cs(t)||a===nn(cs(t))))return r}const o=Kl(i[s]||r[s],t)||Kl(i.appContext[s],t);if(!o&&n)return r;if({}.NODE_ENV!=="production"&&e&&!o){const a=s===bo?`
|
|
19
|
-
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";st(`Failed to resolve ${s.slice(0,-1)}: ${t}${a}`)}return o}else({}).NODE_ENV!=="production"&&st(`resolve${nn(s.slice(0,-1))} can only be used in render() or setup().`)}function Kl(s,t){return s&&(s[t]||s[cs(t)]||s[nn(cs(t))])}const Bd=s=>s.__isSuspense;function Yd(s,t){t&&t.pendingBranch?mt(s)?t.effects.push(...s):t.effects.push(s):Ll(s)}const Xd=Symbol.for("v-scx"),Hd=()=>{{const s=tr(Xd);return s||{}.NODE_ENV!=="production"&&st("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),s}};function Ql(s,t){return xo(s,null,t)}const Ki={};function Dt(s,t,e){return{}.NODE_ENV!=="production"&&!St(t)&&st("`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."),xo(s,t,e)}function xo(s,t,{immediate:e,deep:n,flush:i,once:r,onTrack:o,onTrigger:a}=Ht){if(t&&r){const U=t;t=(...vt)=>{U(...vt),R()}}({}).NODE_ENV!=="production"&&n!==void 0&&typeof n=="number"&&st('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"&&!t&&(e!==void 0&&st('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),n!==void 0&&st('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&st('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=U=>{st("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=pe,u=U=>n===!0?U:fn(U,n===!1?1:void 0);let h,f=!1,d=!1;if(Se(s)?(h=()=>s.value,f=cn(s)):En(s)?(h=()=>u(s),f=!0):mt(s)?(d=!0,f=s.some(U=>En(U)||cn(U)),h=()=>s.map(U=>{if(Se(U))return U.value;if(En(U))return u(U);if(St(U))return Ss(U,c,2);({}).NODE_ENV!=="production"&&l(U)})):St(s)?t?h=()=>Ss(s,c,2):h=()=>(m&&m(),ss(s,c,3,[v])):(h=ae,{}.NODE_ENV!=="production"&&l(s)),t&&n){const U=h;h=()=>fn(U())}let m,v=U=>{m=k.onStop=()=>{Ss(U,c,4),m=k.onStop=void 0}},_;if(or)if(v=ae,t?e&&ss(t,c,3,[h(),d?[]:void 0,v]):h(),i==="sync"){const U=Hd();_=U.__watcherHandles||(U.__watcherHandles=[])}else return ae;let E=d?new Array(s.length).fill(Ki):Ki;const D=()=>{if(!(!k.active||!k.dirty))if(t){const U=k.run();(n||f||(d?U.some((vt,bt)=>Vs(vt,E[bt])):Vs(U,E)))&&(m&&m(),ss(t,c,3,[U,E===Ki?void 0:d&&E[0]===Ki?[]:E,v]),E=U)}else k.run()};D.allowRecurse=!!t;let N;i==="sync"?N=D:i==="post"?N=()=>Le(D,c&&c.suspense):(D.pre=!0,c&&(D.id=c.uid),N=()=>Hi(D));const k=new Jr(h,ae,N),tt=zh(),R=()=>{k.stop(),tt&&Ur(tt.effects,k)};return{}.NODE_ENV!=="production"&&(k.onTrack=o,k.onTrigger=a),t?e?D():E=k.run():i==="post"?Le(k.run.bind(k),c&&c.suspense):k.run(),_&&_.push(R),R}function Ud(s,t,e){const n=this.proxy,i=le(s)?s.includes(".")?Jl(n,s):()=>n[s]:s.bind(n,n);let r;St(t)?r=t:(r=t.handler,e=t);const o=oi(this),a=xo(i,r.bind(n),e);return o(),a}function Jl(s,t){const e=t.split(".");return()=>{let n=s;for(let i=0;i<e.length&&n;i++)n=n[e[i]];return n}}function fn(s,t,e=0,n){if(!Bt(s)||s.__v_skip)return s;if(t&&t>0){if(e>=t)return s;e++}if(n=n||new Set,n.has(s))return s;if(n.add(s),Se(s))fn(s.value,t,e,n);else if(mt(s))for(let i=0;i<s.length;i++)fn(s[i],t,e,n);else if(sl(s)||en(s))s.forEach(i=>{fn(i,t,e,n)});else if(il(s))for(const i in s)fn(s[i],t,e,n);return s}function tc(s){Dh(s)&&st("Do not use built-in directive ids as custom directive id: "+s)}function Es(s,t){if(ce===null)return{}.NODE_ENV!=="production"&&st("withDirectives can only be used inside render functions."),s;const e=ar(ce)||ce.proxy,n=s.dirs||(s.dirs=[]);for(let i=0;i<t.length;i++){let[r,o,a,l=Ht]=t[i];r&&(St(r)&&(r={mounted:r,updated:r}),r.deep&&fn(o),n.push({dir:r,instance:e,value:o,oldValue:void 0,arg:a,modifiers:l}))}return s}function pn(s,t,e,n){const i=s.dirs,r=t&&t.dirs;for(let o=0;o<i.length;o++){const a=i[o];r&&(a.oldValue=r[o].value);let l=a.dir[n];l&&(bs(),ss(l,e,8,[s.el,a,s,t]),xs())}}/*! #__NO_SIDE_EFFECTS__ */function lt(s,t){return St(s)?(()=>te({name:s.name},t,{setup:s}))():s}const Qn=s=>!!s.type.__asyncLoader,wo=s=>s.type.__isKeepAlive;function Wd(s,t){ec(s,"a",t)}function qd(s,t){ec(s,"da",t)}function ec(s,t,e=pe){const n=s.__wdc||(s.__wdc=()=>{let i=e;for(;i;){if(i.isDeactivated)return;i=i.parent}return s()});if(Qi(t,n,e),e){let i=e.parent;for(;i&&i.parent;)wo(i.parent.vnode)&&Zd(n,t,e,i),i=i.parent}}function Zd(s,t,e,n){const i=Qi(t,s,n,!0);re(()=>{Ur(n[t],i)},e)}function Qi(s,t,e=pe,n=!1){if(e){const i=e[s]||(e[s]=[]),r=t.__weh||(t.__weh=(...o)=>{if(e.isUnmounted)return;bs();const a=oi(e),l=ss(t,e,s,o);return a(),xs(),l});return n?i.unshift(r):i.push(r),r}else if({}.NODE_ENV!=="production"){const i=rn(co[s].replace(/ hook$/,""));st(`${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 ks=s=>(t,e=pe)=>(!or||s==="sp")&&Qi(s,(...n)=>t(...n),e),Kd=ks("bm"),js=ks("m"),Qd=ks("bu"),Jd=ks("u"),tf=ks("bum"),re=ks("um"),ef=ks("sp"),sf=ks("rtg"),nf=ks("rtc");function rf(s,t=pe){Qi("ec",s,t)}function Ce(s,t,e,n){let i;const r=e&&e[n];if(mt(s)||le(s)){i=new Array(s.length);for(let o=0,a=s.length;o<a;o++)i[o]=t(s[o],o,void 0,r&&r[o])}else if(typeof s=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(s)&&st(`The v-for range expect an integer value but got ${s}.`),i=new Array(s);for(let o=0;o<s;o++)i[o]=t(o+1,o,void 0,r&&r[o])}else if(Bt(s))if(s[Symbol.iterator])i=Array.from(s,(o,a)=>t(o,a,void 0,r&&r[a]));else{const o=Object.keys(s);i=new Array(o.length);for(let a=0,l=o.length;a<l;a++){const c=o[a];i[a]=t(s[c],c,a,r&&r[a])}}else i=[];return e&&(e[n]=i),i}function Gt(s,t,e={},n,i){if(ce.isCE||ce.parent&&Qn(ce.parent)&&ce.parent.isCE)return t!=="default"&&(e.name=t),pt("slot",e,n&&n());let r=s[t];({}).NODE_ENV!=="production"&&r&&r.length>1&&(st("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),F();const o=r&&sc(r(e)),a=Ie(zt,{key:e.key||o&&o.key||`_${t}`},o||(n?n():[]),o&&s._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function sc(s){return s.some(t=>Dn(t)?!(t.type===Fe||t.type===zt&&!sc(t.children)):!0)?s:null}const So=s=>s?Nc(s)?ar(s)||s.proxy:So(s.parent):null,mn=te(Object.create(null),{$:s=>s,$el:s=>s.vnode.el,$data:s=>s.data,$props:s=>({}).NODE_ENV!=="production"?ws(s.props):s.props,$attrs:s=>({}).NODE_ENV!=="production"?ws(s.attrs):s.attrs,$slots:s=>({}).NODE_ENV!=="production"?ws(s.slots):s.slots,$refs:s=>({}).NODE_ENV!=="production"?ws(s.refs):s.refs,$parent:s=>So(s.parent),$root:s=>So(s.root),$emit:s=>s.emit,$options:s=>To(s),$forceUpdate:s=>s.f||(s.f=()=>{s.effect.dirty=!0,Hi(s.update)}),$nextTick:s=>s.n||(s.n=$l.bind(s.proxy)),$watch:s=>Ud.bind(s)}),Co=s=>s==="_"||s==="$",Eo=(s,t)=>s!==Ht&&!s.__isScriptSetup&&Mt(s,t),nc={get({_:s},t){if(t==="__v_skip")return!0;const{ctx:e,setupState:n,data:i,props:r,accessCache:o,type:a,appContext:l}=s;if({}.NODE_ENV!=="production"&&t==="__isVue")return!0;let c;if(t[0]!=="$"){const d=o[t];if(d!==void 0)switch(d){case 1:return n[t];case 2:return i[t];case 4:return e[t];case 3:return r[t]}else{if(Eo(n,t))return o[t]=1,n[t];if(i!==Ht&&Mt(i,t))return o[t]=2,i[t];if((c=s.propsOptions[0])&&Mt(c,t))return o[t]=3,r[t];if(e!==Ht&&Mt(e,t))return o[t]=4,e[t];ko&&(o[t]=0)}}const u=mn[t];let h,f;if(u)return t==="$attrs"?(we(s.attrs,"get",""),{}.NODE_ENV!=="production"&&Zi()):{}.NODE_ENV!=="production"&&t==="$slots"&&we(s,"get",t),u(s);if((h=a.__cssModules)&&(h=h[t]))return h;if(e!==Ht&&Mt(e,t))return o[t]=4,e[t];if(f=l.config.globalProperties,Mt(f,t))return f[t];({}).NODE_ENV!=="production"&&ce&&(!le(t)||t.indexOf("__v")!==0)&&(i!==Ht&&Co(t[0])&&Mt(i,t)?st(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):s===ce&&st(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:s},t,e){const{data:n,setupState:i,ctx:r}=s;return Eo(i,t)?(i[t]=e,!0):{}.NODE_ENV!=="production"&&i.__isScriptSetup&&Mt(i,t)?(st(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):n!==Ht&&Mt(n,t)?(n[t]=e,!0):Mt(s.props,t)?({}.NODE_ENV!=="production"&&st(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in s?({}.NODE_ENV!=="production"&&st(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):({}.NODE_ENV!=="production"&&t in s.appContext.config.globalProperties?Object.defineProperty(r,t,{enumerable:!0,configurable:!0,value:e}):r[t]=e,!0)},has({_:{data:s,setupState:t,accessCache:e,ctx:n,appContext:i,propsOptions:r}},o){let a;return!!e[o]||s!==Ht&&Mt(s,o)||Eo(t,o)||(a=r[0])&&Mt(a,o)||Mt(n,o)||Mt(mn,o)||Mt(i.config.globalProperties,o)},defineProperty(s,t,e){return e.get!=null?s._.accessCache[t]=0:Mt(e,"value")&&this.set(s,t,e.value,null),Reflect.defineProperty(s,t,e)}};({}).NODE_ENV!=="production"&&(nc.ownKeys=s=>(st("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(s)));function of(s){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>s}),Object.keys(mn).forEach(e=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,get:()=>mn[e](s),set:ae})}),t}function af(s){const{ctx:t,propsOptions:[e]}=s;e&&Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.props[n],set:ae})})}function lf(s){const{ctx:t,setupState:e}=s;Object.keys(Pt(e)).forEach(n=>{if(!e.__isScriptSetup){if(Co(n[0])){st(`setup() return property ${JSON.stringify(n)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e[n],set:ae})}})}function cf(){return uf().slots}function uf(){const s=Dc();return{}.NODE_ENV!=="production"&&!s&&st("useContext() called without active instance."),s.setupContext||(s.setupContext=$c(s))}function ic(s){return mt(s)?s.reduce((t,e)=>(t[e]=null,t),{}):s}function hf(){const s=Object.create(null);return(t,e)=>{s[e]?st(`${t} property "${e}" is already defined in ${s[e]}.`):s[e]=t}}let ko=!0;function df(s){const t=To(s),e=s.proxy,n=s.ctx;ko=!1,t.beforeCreate&&rc(t.beforeCreate,s,"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:_,beforeDestroy:E,beforeUnmount:D,destroyed:N,unmounted:k,render:tt,renderTracked:R,renderTriggered:U,errorCaptured:vt,serverPrefetch:bt,expose:Ct,inheritAttrs:Rt,components:$t,directives:se,filters:ne}=t,ue={}.NODE_ENV!=="production"?hf():null;if({}.NODE_ENV!=="production"){const[xt]=s.propsOptions;if(xt)for(const wt in xt)ue("Props",wt)}if(c&&ff(c,n,ue),o)for(const xt in o){const wt=o[xt];St(wt)?({}.NODE_ENV!=="production"?Object.defineProperty(n,xt,{value:wt.bind(e),configurable:!0,enumerable:!0,writable:!0}):n[xt]=wt.bind(e),{}.NODE_ENV!=="production"&&ue("Methods",xt)):{}.NODE_ENV!=="production"&&st(`Method "${xt}" has type "${typeof wt}" in the component definition. Did you reference the function correctly?`)}if(i){({}).NODE_ENV!=="production"&&!St(i)&&st("The data option must be a function. Plain object usage is no longer supported.");const xt=i.call(e,e);if({}.NODE_ENV!=="production"&&Wr(xt)&&st("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Bt(xt))({}).NODE_ENV!=="production"&&st("data() should return an object.");else if(s.data=Pe(xt),{}.NODE_ENV!=="production")for(const wt in xt)ue("Data",wt),Co(wt[0])||Object.defineProperty(n,wt,{configurable:!0,enumerable:!0,get:()=>xt[wt],set:ae})}if(ko=!0,r)for(const xt in r){const wt=r[xt],it=St(wt)?wt.bind(e,e):St(wt.get)?wt.get.bind(e,e):ae;({}).NODE_ENV!=="production"&&it===ae&&st(`Computed property "${xt}" has no getter.`);const q=!St(wt)&&St(wt.set)?wt.set.bind(e):{}.NODE_ENV!=="production"?()=>{st(`Write operation failed: computed property "${xt}" is readonly.`)}:ae,Et=Zf({get:it,set:q});Object.defineProperty(n,xt,{enumerable:!0,configurable:!0,get:()=>Et.value,set:$=>Et.value=$}),{}.NODE_ENV!=="production"&&ue("Computed",xt)}if(a)for(const xt in a)oc(a[xt],n,e,xt);if(l){const xt=St(l)?l.call(e):l;Reflect.ownKeys(xt).forEach(wt=>{_f(wt,xt[wt])})}u&&rc(u,s,"c");function Yt(xt,wt){mt(wt)?wt.forEach(it=>xt(it.bind(e))):wt&&xt(wt.bind(e))}if(Yt(Kd,h),Yt(js,f),Yt(Qd,d),Yt(Jd,m),Yt(Wd,v),Yt(qd,_),Yt(rf,vt),Yt(nf,R),Yt(sf,U),Yt(tf,D),Yt(re,k),Yt(ef,bt),mt(Ct))if(Ct.length){const xt=s.exposed||(s.exposed={});Ct.forEach(wt=>{Object.defineProperty(xt,wt,{get:()=>e[wt],set:it=>e[wt]=it})})}else s.exposed||(s.exposed={});tt&&s.render===ae&&(s.render=tt),Rt!=null&&(s.inheritAttrs=Rt),$t&&(s.components=$t),se&&(s.directives=se)}function ff(s,t,e=ae){mt(s)&&(s=Oo(s));for(const n in s){const i=s[n];let r;Bt(i)?"default"in i?r=tr(i.from||n,i.default,!0):r=tr(i.from||n):r=tr(i),Se(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):t[n]=r,{}.NODE_ENV!=="production"&&e("Inject",n)}}function rc(s,t,e){ss(mt(s)?s.map(n=>n.bind(t.proxy)):s.bind(t.proxy),t,e)}function oc(s,t,e,n){const i=n.includes(".")?Jl(e,n):()=>e[n];if(le(s)){const r=t[s];St(r)?Dt(i,r):{}.NODE_ENV!=="production"&&st(`Invalid watch handler specified by key "${s}"`,r)}else if(St(s))Dt(i,s.bind(e));else if(Bt(s))if(mt(s))s.forEach(r=>oc(r,t,e,n));else{const r=St(s.handler)?s.handler.bind(e):t[s.handler];St(r)?Dt(i,r,s):{}.NODE_ENV!=="production"&&st(`Invalid watch handler specified by key "${s.handler}"`,r)}else({}).NODE_ENV!=="production"&&st(`Invalid watch option: "${n}"`,s)}function To(s){const t=s.type,{mixins:e,extends:n}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=s.appContext,a=r.get(t);let l;return a?l=a:!i.length&&!e&&!n?l=t:(l={},i.length&&i.forEach(c=>Ji(l,c,o,!0)),Ji(l,t,o)),Bt(t)&&r.set(t,l),l}function Ji(s,t,e,n=!1){const{mixins:i,extends:r}=t;r&&Ji(s,r,e,!0),i&&i.forEach(o=>Ji(s,o,e,!0));for(const o in t)if(n&&o==="expose")({}).NODE_ENV!=="production"&&st('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=pf[o]||e&&e[o];s[o]=a?a(s[o],t[o]):t[o]}return s}const pf={data:ac,props:lc,emits:lc,methods:Jn,computed:Jn,beforeCreate:De,created:De,beforeMount:De,mounted:De,beforeUpdate:De,updated:De,beforeDestroy:De,beforeUnmount:De,destroyed:De,unmounted:De,activated:De,deactivated:De,errorCaptured:De,serverPrefetch:De,components:Jn,directives:Jn,watch:gf,provide:ac,inject:mf};function ac(s,t){return t?s?function(){return te(St(s)?s.call(this,this):s,St(t)?t.call(this,this):t)}:t:s}function mf(s,t){return Jn(Oo(s),Oo(t))}function Oo(s){if(mt(s)){const t={};for(let e=0;e<s.length;e++)t[s[e]]=s[e];return t}return s}function De(s,t){return s?[...new Set([].concat(s,t))]:t}function Jn(s,t){return s?te(Object.create(null),s,t):t}function lc(s,t){return s?mt(s)&&mt(t)?[...new Set([...s,...t])]:te(Object.create(null),ic(s),ic(t??{})):t}function gf(s,t){if(!s)return t;if(!t)return s;const e=te(Object.create(null),s);for(const n in t)e[n]=De(s[n],t[n]);return e}function cc(){return{app:null,config:{isNativeTag:Oh,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 yf=0;function vf(s,t){return function(n,i=null){St(n)||(n=te({},n)),i!=null&&!Bt(i)&&({}.NODE_ENV!=="production"&&st("root props passed to app.mount() must be an object."),i=null);const r=cc(),o=new WeakSet;let a=!1;const l=r.app={_uid:yf++,_component:n,_props:i,_container:null,_context:r,_instance:null,version:Lc,get config(){return r.config},set config(c){({}).NODE_ENV!=="production"&&st("app.config cannot be replaced. Modify individual options instead.")},use(c,...u){return o.has(c)?{}.NODE_ENV!=="production"&&st("Plugin has already been applied to target app."):c&&St(c.install)?(o.add(c),c.install(l,...u)):St(c)?(o.add(c),c(l,...u)):{}.NODE_ENV!=="production"&&st('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"&&st("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):r.mixins.push(c),l},component(c,u){return{}.NODE_ENV!=="production"&&Vo(c,r.config),u?({}.NODE_ENV!=="production"&&r.components[c]&&st(`Component "${c}" has already been registered in target app.`),r.components[c]=u,l):r.components[c]},directive(c,u){return{}.NODE_ENV!=="production"&&tc(c),u?({}.NODE_ENV!=="production"&&r.directives[c]&&st(`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"&&st("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__&&st("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=pt(n,i);return f.appContext=r,h===!0?h="svg":h===!1&&(h=void 0),{}.NODE_ENV!=="production"&&(r.reload=()=>{s(Ys(f),c,h)}),u&&t?t(f,c):s(f,c,h),a=!0,l._container=c,c.__vue_app__=l,{}.NODE_ENV!=="production"&&(l._instance=f.component,Td(l,Lc)),ar(f.component)||f.component.proxy}},unmount(){a?(s(null,l._container),{}.NODE_ENV!=="production"&&(l._instance=null,Od(l)),delete l._container.__vue_app__):{}.NODE_ENV!=="production"&&st("Cannot unmount an app that is not mounted.")},provide(c,u){return{}.NODE_ENV!=="production"&&c in r.provides&&st(`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=ti;ti=l;try{return c()}finally{ti=u}}};return l}}let ti=null;function _f(s,t){if(!pe)({}).NODE_ENV!=="production"&&st("provide() can only be used inside setup().");else{let e=pe.provides;const n=pe.parent&&pe.parent.provides;n===e&&(e=pe.provides=Object.create(n)),e[s]=t}}function tr(s,t,e=!1){const n=pe||ce;if(n||ti){const i=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:ti._context.provides;if(i&&s in i)return i[s];if(arguments.length>1)return e&&St(t)?t.call(n&&n.proxy):t;({}).NODE_ENV!=="production"&&st(`injection "${String(s)}" not found.`)}else({}).NODE_ENV!=="production"&&st("inject() can only be used inside setup() or functional components.")}const uc={},hc=()=>Object.create(uc),dc=s=>Object.getPrototypeOf(s)===uc;function bf(s,t,e,n=!1){const i={},r=hc();s.propsDefaults=Object.create(null),fc(s,t,i,r);for(const o in s.propsOptions[0])o in i||(i[o]=void 0);({}).NODE_ENV!=="production"&&vc(t||{},i,s),e?s.props=n?i:ad(i):s.type.props?s.props=i:s.props=r,s.attrs=r}function xf(s){for(;s;){if(s.type.__hmrId)return!0;s=s.parent}}function wf(s,t,e,n){const{props:i,attrs:r,vnode:{patchFlag:o}}=s,a=Pt(i),[l]=s.propsOptions;let c=!1;if(!({}.NODE_ENV!=="production"&&xf(s))&&(n||o>0)&&!(o&16)){if(o&8){const u=s.vnode.dynamicProps;for(let h=0;h<u.length;h++){let f=u[h];if(Ui(s.emitsOptions,f))continue;const d=t[f];if(l)if(Mt(r,f))d!==r[f]&&(r[f]=d,c=!0);else{const m=cs(f);i[m]=Po(l,a,m,d,s,!1)}else d!==r[f]&&(r[f]=d,c=!0)}}}else{fc(s,t,i,r)&&(c=!0);let u;for(const h in a)(!t||!Mt(t,h)&&((u=$s(h))===h||!Mt(t,u)))&&(l?e&&(e[h]!==void 0||e[u]!==void 0)&&(i[h]=Po(l,a,h,void 0,s,!0)):delete i[h]);if(r!==a)for(const h in r)(!t||!Mt(t,h))&&(delete r[h],c=!0)}c&&us(s.attrs,"set",""),{}.NODE_ENV!=="production"&&vc(t||{},i,s)}function fc(s,t,e,n){const[i,r]=s.propsOptions;let o=!1,a;if(t)for(let l in t){if(Bn(l))continue;const c=t[l];let u;i&&Mt(i,u=cs(l))?!r||!r.includes(u)?e[u]=c:(a||(a={}))[u]=c:Ui(s.emitsOptions,l)||(!(l in n)||c!==n[l])&&(n[l]=c,o=!0)}if(r){const l=Pt(e),c=a||Ht;for(let u=0;u<r.length;u++){const h=r[u];e[h]=Po(i,l,h,c[h],s,!Mt(c,h))}}return o}function Po(s,t,e,n,i,r){const o=s[e];if(o!=null){const a=Mt(o,"default");if(a&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&St(l)){const{propsDefaults:c}=i;if(e in c)n=c[e];else{const u=oi(i);n=c[e]=l.call(null,t),u()}}else n=l}o[0]&&(r&&!a?n=!1:o[1]&&(n===""||n===$s(e))&&(n=!0))}return n}function pc(s,t,e=!1){const n=t.propsCache,i=n.get(s);if(i)return i;const r=s.props,o={},a=[];let l=!1;if(!St(s)){const u=h=>{l=!0;const[f,d]=pc(h,t,!0);te(o,f),d&&a.push(...d)};!e&&t.mixins.length&&t.mixins.forEach(u),s.extends&&u(s.extends),s.mixins&&s.mixins.forEach(u)}if(!r&&!l)return Bt(s)&&n.set(s,Cn),Cn;if(mt(r))for(let u=0;u<r.length;u++){({}).NODE_ENV!=="production"&&!le(r[u])&&st("props must be strings when using array syntax.",r[u]);const h=cs(r[u]);mc(h)&&(o[h]=Ht)}else if(r){({}).NODE_ENV!=="production"&&!Bt(r)&&st("invalid props options",r);for(const u in r){const h=cs(u);if(mc(h)){const f=r[u],d=o[h]=mt(f)||St(f)?{type:f}:te({},f);if(d){const m=yc(Boolean,d.type),v=yc(String,d.type);d[0]=m>-1,d[1]=v<0||m<v,(m>-1||Mt(d,"default"))&&a.push(h)}}}}const c=[o,a];return Bt(s)&&n.set(s,c),c}function mc(s){return s[0]!=="$"&&!Bn(s)?!0:({}.NODE_ENV!=="production"&&st(`Invalid prop name: "${s}" is a reserved property.`),!1)}function Do(s){return s===null?"null":typeof s=="function"?s.name||"":typeof s=="object"&&s.constructor&&s.constructor.name||""}function gc(s,t){return Do(s)===Do(t)}function yc(s,t){return mt(t)?t.findIndex(e=>gc(e,s)):St(t)&&gc(t,s)?0:-1}function vc(s,t,e){const n=Pt(t),i=e.propsOptions[0];for(const r in i){let o=i[r];o!=null&&Sf(r,n[r],o,{}.NODE_ENV!=="production"?ws(n):n,!Mt(s,r)&&!Mt(s,$s(r)))}}function Sf(s,t,e,n,i){const{type:r,required:o,validator:a,skipCheck:l}=e;if(o&&i){st('Missing required prop: "'+s+'"');return}if(!(t==null&&!o)){if(r!=null&&r!==!0&&!l){let c=!1;const u=mt(r)?r:[r],h=[];for(let f=0;f<u.length&&!c;f++){const{valid:d,expectedType:m}=Ef(t,u[f]);h.push(m||""),c=d}if(!c){st(kf(s,t,h));return}}a&&!a(t,n)&&st('Invalid prop: custom validator check failed for prop "'+s+'".')}}const Cf=Sn("String,Number,Boolean,Function,Symbol,BigInt");function Ef(s,t){let e;const n=Do(t);if(Cf(n)){const i=typeof s;e=i===n.toLowerCase(),!e&&i==="object"&&(e=s instanceof t)}else n==="Object"?e=Bt(s):n==="Array"?e=mt(s):n==="null"?e=s===null:e=s instanceof t;return{valid:e,expectedType:n}}function kf(s,t,e){if(e.length===0)return`Prop type [] for prop "${s}" won't match anything. Did you mean to use type Array instead?`;let n=`Invalid prop: type check failed for prop "${s}". Expected ${e.map(nn).join(" | ")}`;const i=e[0],r=qr(t),o=_c(t,i),a=_c(t,r);return e.length===1&&bc(i)&&!Tf(i,r)&&(n+=` with value ${o}`),n+=`, got ${r} `,bc(r)&&(n+=`with value ${a}.`),n}function _c(s,t){return t==="String"?`"${s}"`:t==="Number"?`${Number(s)}`:`${s}`}function bc(s){return["string","number","boolean"].some(e=>s.toLowerCase()===e)}function Tf(...s){return s.some(t=>t.toLowerCase()==="boolean")}const xc=s=>s[0]==="_"||s==="$stable",Io=s=>mt(s)?s.map(is):[is(s)],Of=(s,t,e)=>{if(t._n)return t;const n=he((...i)=>({}.NODE_ENV!=="production"&&pe&&(!e||e.root===pe.root)&&st(`Slot "${s}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),Io(t(...i))),e);return n._c=!1,n},wc=(s,t,e)=>{const n=s._ctx;for(const i in s){if(xc(i))continue;const r=s[i];if(St(r))t[i]=Of(i,r,n);else if(r!=null){({}).NODE_ENV!=="production"&&st(`Non-function value encountered for slot "${i}". Prefer function slots for better performance.`);const o=Io(r);t[i]=()=>o}}},Sc=(s,t)=>{({}).NODE_ENV!=="production"&&!wo(s.vnode)&&st("Non-function value encountered for default slot. Prefer function slots for better performance.");const e=Io(t);s.slots.default=()=>e},Pf=(s,t)=>{const e=s.slots=hc();if(s.vnode.shapeFlag&32){const n=t._;n?(te(e,t),rl(e,"_",n)):wc(t,e)}else t&&Sc(s,t)},Df=(s,t,e)=>{const{vnode:n,slots:i}=s;let r=!0,o=Ht;if(n.shapeFlag&32){const a=t._;a?{}.NODE_ENV!=="production"&&hn?(te(i,t),us(s,"set","$slots")):e&&a===1?r=!1:(te(i,t),!e&&a===1&&delete i._):(r=!t.$stable,wc(t,i)),o=t}else t&&(Sc(s,t),o={default:1});if(r)for(const a in i)!xc(a)&&o[a]==null&&delete i[a]};function No(s,t,e,n,i=!1){if(mt(s)){s.forEach((f,d)=>No(f,t&&(mt(t)?t[d]:t),e,n,i));return}if(Qn(n)&&!i)return;const r=n.shapeFlag&4?ar(n.component)||n.component.proxy:n.el,o=i?null:r,{i:a,r:l}=s;if({}.NODE_ENV!=="production"&&!a){st("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=t&&t.r,u=a.refs===Ht?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==l&&(le(c)?(u[c]=null,Mt(h,c)&&(h[c]=null)):Se(c)&&(c.value=null)),St(l))Ss(l,a,12,[o,u]);else{const f=le(l),d=Se(l);if(f||d){const m=()=>{if(s.f){const v=f?Mt(h,l)?h[l]:u[l]:l.value;i?mt(v)&&Ur(v,r):mt(v)?v.includes(r)||v.push(r):f?(u[l]=[r],Mt(h,l)&&(h[l]=u[l])):(l.value=[r],s.k&&(u[s.k]=l.value))}else f?(u[l]=o,Mt(h,l)&&(h[l]=o)):d?(l.value=o,s.k&&(u[s.k]=o)):{}.NODE_ENV!=="production"&&st("Invalid template ref type:",l,`(${typeof l})`)};o?(m.id=-1,Le(m,e)):m()}else({}).NODE_ENV!=="production"&&st("Invalid template ref type:",l,`(${typeof l})`)}}let ei,Bs;function Ts(s,t){s.appContext.config.performance&&er()&&Bs.mark(`vue-${t}-${s.uid}`),{}.NODE_ENV!=="production"&&Nd(s,t,er()?Bs.now():Date.now())}function Os(s,t){if(s.appContext.config.performance&&er()){const e=`vue-${t}-${s.uid}`,n=e+":end";Bs.mark(n),Bs.measure(`<${lr(s,s.type)}> ${t}`,e,n),Bs.clearMarks(e),Bs.clearMarks(n)}({}).NODE_ENV!=="production"&&Md(s,t,er()?Bs.now():Date.now())}function er(){return ei!==void 0||(typeof window<"u"&&window.performance?(ei=!0,Bs=window.performance):ei=!1),ei}function If(){const s=[];if({}.NODE_ENV!=="production"&&s.length){const t=s.length>1;console.warn(`Feature flag${t?"s":""} ${s.join(", ")} ${t?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
|
|
17
|
+
`,...bd(i)),console.warn(...r)}ws()}function _d(){let s=un[un.length-1];if(!s)return[];const t=[];for(;s;){const e=t[0];e&&e.vnode===s?e.recurseCount++:t.push({vnode:s,recurseCount:0});const n=s.component&&s.component.parent;s=n&&n.vnode}return t}function bd(s){const t=[];return s.forEach((e,n)=>{t.push(...n===0?[]:[`
|
|
18
|
+
`],...xd(e))}),t}function xd({vnode:s,recurseCount:t}){const e=t>0?`... (${t} recursive calls)`:"",n=s.component?s.component.parent==null:!1,i=` at <${hr(s.component,s.type,n)}`,r=">"+e;return s.props?[i,...wd(s.props),r]:[i+r]}function wd(s){const t=[],e=Object.keys(s);return e.slice(0,3).forEach(n=>{t.push(...Fl(n,s[n]))}),e.length>3&&t.push(" ..."),t}function Fl(s,t,e){return de(t)?(t=JSON.stringify(t),e?t:[`${s}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?e?t:[`${s}=${t}`]:Te(t)?(t=Fl(s,Pt(t.value),!0),e?t:[`${s}=Ref<`,t,">"]):St(t)?[`${s}=fn${t.name?`<${t.name}>`:""}`]:(t=Pt(t),e?t:[`${s}=`,t])}const fo={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 Cs(s,t,e,n){try{return n?s(...n):s()}catch(i){Wn(i,t,e)}}function ns(s,t,e,n){if(St(s)){const i=Cs(s,t,e,n);return i&&Kr(i)&&i.catch(r=>{Wn(r,t,e)}),i}if(mt(s)){const i=[];for(let r=0;r<s.length;r++)i.push(ns(s[r],t,e,n));return i}else({}).NODE_ENV!=="production"&&st(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof s}`)}function Wn(s,t,e,n=!0){const i=t?t.vnode:null;if(t){let r=t.parent;const o=t.proxy,a={}.NODE_ENV!=="production"?fo[e]:`https://vuejs.org/error-reference/#runtime-${e}`;for(;r;){const c=r.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](s,o,a)===!1)return}r=r.parent}const l=t.appContext.config.errorHandler;if(l){xs(),Cs(l,null,10,[s,o,a]),ws();return}}Sd(s,e,i,n)}function Sd(s,t,e,n=!0){if({}.NODE_ENV!=="production"){const i=fo[t];if(e&&Ui(e),st(`Unhandled error${i?` during execution of ${i}`:""}`),e&&Wi(),n)throw s;console.error(s)}else console.error(s)}let qn=!1,po=!1;const De=[];let ds=0;const Pn=[];let ks=null,Bs=0;const Gl=Promise.resolve();let mo=null;const Cd=100;function zl(s){const t=mo||Gl;return s?t.then(this?s.bind(this):s):t}function kd(s){let t=ds+1,e=De.length;for(;t<e;){const n=t+e>>>1,i=De[n],r=Zn(i);r<s||r===s&&i.pre?t=n+1:e=n}return t}function qi(s){(!De.length||!De.includes(s,qn&&s.allowRecurse?ds+1:ds))&&(s.id==null?De.push(s):De.splice(kd(s.id),0,s),Bl())}function Bl(){!qn&&!po&&(po=!0,mo=Gl.then(Xl))}function Ed(s){const t=De.indexOf(s);t>ds&&De.splice(t,1)}function jl(s){mt(s)?Pn.push(...s):(!ks||!ks.includes(s,s.allowRecurse?Bs+1:Bs))&&Pn.push(s),Bl()}function Yl(s,t,e=qn?ds+1:0){for({}.NODE_ENV!=="production"&&(t=t||new Map);e<De.length;e++){const n=De[e];if(n&&n.pre){if(s&&n.id!==s.uid||{}.NODE_ENV!=="production"&&go(t,n))continue;De.splice(e,1),e--,n()}}}function Hl(s){if(Pn.length){const t=[...new Set(Pn)].sort((e,n)=>Zn(e)-Zn(n));if(Pn.length=0,ks){ks.push(...t);return}for(ks=t,{}.NODE_ENV!=="production"&&(s=s||new Map),Bs=0;Bs<ks.length;Bs++)({}).NODE_ENV!=="production"&&go(s,ks[Bs])||ks[Bs]();ks=null,Bs=0}}const Zn=s=>s.id==null?1/0:s.id,Td=(s,t)=>{const e=Zn(s)-Zn(t);if(e===0){if(s.pre&&!t.pre)return-1;if(t.pre&&!s.pre)return 1}return e};function Xl(s){po=!1,qn=!0,{}.NODE_ENV!=="production"&&(s=s||new Map),De.sort(Td);const t={}.NODE_ENV!=="production"?e=>go(s,e):he;try{for(ds=0;ds<De.length;ds++){const e=De[ds];if(e&&e.active!==!1){if({}.NODE_ENV!=="production"&&t(e))continue;Cs(e,null,14)}}}finally{ds=0,De.length=0,Hl(s),qn=!1,mo=null,(De.length||Pn.length)&&Xl(s)}}function go(s,t){if(!s.has(t))s.set(t,1);else{const e=s.get(t);if(e>Cd){const n=t.ownerInstance,i=n&&Bo(n.type);return Wn(`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 s.set(t,e+1)}}let hn=!1;const In=new Set;({}).NODE_ENV!=="production"&&(to().__VUE_HMR_RUNTIME__={createRecord:yo(Ul),rerender:yo(Id),reload:yo(Dd)});const dn=new Map;function Od(s){const t=s.type.__hmrId;let e=dn.get(t);e||(Ul(t,s.type),e=dn.get(t)),e.instances.add(s)}function Pd(s){dn.get(s.type.__hmrId).instances.delete(s)}function Ul(s,t){return dn.has(s)?!1:(dn.set(s,{initialDef:Kn(t),instances:new Set}),!0)}function Kn(s){return Bc(s)?s.__vccOpts:s}function Id(s,t){const e=dn.get(s);e&&(e.initialDef.render=t,[...e.instances].forEach(n=>{t&&(n.render=t,Kn(n.type).render=t),n.renderCache=[],hn=!0,n.effect.dirty=!0,n.update(),hn=!1}))}function Dd(s,t){const e=dn.get(s);if(!e)return;t=Kn(t),Wl(e.initialDef,t);const n=[...e.instances];for(const i of n){const r=Kn(i.type);In.has(r)||(r!==e.initialDef&&Wl(r,t),In.add(r)),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(In.add(r),i.ceReload(t.styles),In.delete(r)):i.parent?(i.parent.effect.dirty=!0,qi(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.")}jl(()=>{for(const i of n)In.delete(Kn(i.type))})}function Wl(s,t){se(s,t);for(const e in s)e!=="__file"&&!(e in t)&&delete s[e]}function yo(s){return(t,e)=>{try{return s(t,e)}catch(n){console.error(n),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let fs,Qn=[],vo=!1;function Jn(s,...t){fs?fs.emit(s,...t):vo||Qn.push({event:s,args:t})}function ql(s,t){var e,n;fs=s,fs?(fs.enabled=!0,Qn.forEach(({event:i,args:r})=>fs.emit(i,...r)),Qn=[]):typeof window<"u"&&window.HTMLElement&&!((n=(e=window.navigator)==null?void 0:e.userAgent)!=null&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{ql(r,t)}),setTimeout(()=>{fs||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,vo=!0,Qn=[])},3e3)):(vo=!0,Qn=[])}function Md(s,t){Jn("app:init",s,t,{Fragment:Gt,Text:ii,Comment:Ge,Static:or})}function Nd(s){Jn("app:unmount",s)}const Ad=_o("component:added"),Zl=_o("component:updated"),Rd=_o("component:removed"),$d=s=>{fs&&typeof fs.cleanupBuffer=="function"&&!fs.cleanupBuffer(s)&&Rd(s)};/*! #__NO_SIDE_EFFECTS__ */function _o(s){return t=>{Jn(s,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const Ld=Kl("perf:start"),Vd=Kl("perf:end");function Kl(s){return(t,e,n)=>{Jn(s,t.appContext.app,t.uid,t,e,n)}}function Fd(s,t,e){Jn("component:emit",s.appContext.app,s,t,e)}function Gd(s,t,...e){if(s.isUnmounted)return;const n=s.vnode.props||Ut;if({}.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[h]}=s;if(u)if(!(t in u))(!h||!(rn(t)in h))&&st(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${rn(t)}" prop.`);else{const f=u[t];St(f)&&(f(...e)||st(`Invalid event arguments: event validation failed for event "${t}".`))}}let i=e;const r=t.startsWith("update:"),o=r&&t.slice(7);if(o&&o in n){const u=`${o==="modelValue"?"model":o}Modifiers`,{number:h,trim:f}=n[u]||Ut;f&&(i=e.map(d=>de(d)?d.trim():d)),h&&(i=e.map(Vh))}if({}.NODE_ENV!=="production"&&Fd(s,t,i),{}.NODE_ENV!=="production"){const u=t.toLowerCase();u!==t&&n[rn(u)]&&st(`Event "${u}" is emitted in component ${hr(s,s.type)} but the handler is registered for "${t}". 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 "${Ls(t)}" instead of "${t}".`)}let a,l=n[a=rn(t)]||n[a=rn(us(t))];!l&&r&&(l=n[a=rn(Ls(t))]),l&&ns(l,s,6,i);const c=n[a+"Once"];if(c){if(!s.emitted)s.emitted={};else if(s.emitted[a])return;s.emitted[a]=!0,ns(c,s,6,i)}}function Ql(s,t,e=!1){const n=t.emitsCache,i=n.get(s);if(i!==void 0)return i;const r=s.emits;let o={},a=!1;if(!St(s)){const l=c=>{const u=Ql(c,t,!0);u&&(a=!0,se(o,u))};!e&&t.mixins.length&&t.mixins.forEach(l),s.extends&&l(s.extends),s.mixins&&s.mixins.forEach(l)}return!r&&!a?(Yt(s)&&n.set(s,null),null):(mt(r)?r.forEach(l=>o[l]=null):se(o,r),Yt(s)&&n.set(s,o),o)}function Zi(s,t){return!s||!Yn(t)?!1:(t=t.slice(2).replace(/Once$/,""),At(s,t[0].toLowerCase()+t.slice(1))||At(s,Ls(t))||At(s,t))}let fe=null,Ki=null;function Qi(s){const t=fe;return fe=s,Ki=s&&s.type.__scopeId||null,t}function fn(s){Ki=s}function pn(){Ki=null}function Bt(s,t=fe,e){if(!t||s._n)return s;const n=(...i)=>{n._d&&Ic(-1);const r=Qi(t);let o;try{o=s(...i)}finally{Qi(r),n._d&&Ic(1)}return{}.NODE_ENV!=="production"&&Zl(t),o};return n._n=!0,n._c=!0,n._d=!0,n}let bo=!1;function Ji(){bo=!0}function xo(s){const{type:t,vnode:e,proxy:n,withProxy:i,propsOptions:[r],slots:o,attrs:a,emit:l,render:c,renderCache:u,props:h,data:f,setupState:d,ctx:m,inheritAttrs:y}=s,_=Qi(s);let k,I;({}).NODE_ENV!=="production"&&(bo=!1);try{if(e.shapeFlag&4){const tt=i||n,L={}.NODE_ENV!=="production"&&d.__isScriptSetup?new Proxy(tt,{get(W,vt,bt){return st(`Property '${String(vt)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(W,vt,bt)}}):tt;k=rs(c.call(L,tt,u,{}.NODE_ENV!=="production"?Ss(h):h,d,f,m)),I=a}else{const tt=t;({}).NODE_ENV!=="production"&&a===h&&Ji(),k=rs(tt.length>1?tt({}.NODE_ENV!=="production"?Ss(h):h,{}.NODE_ENV!=="production"?{get attrs(){return Ji(),a},slots:o,emit:l}:{attrs:a,slots:o,emit:l}):tt({}.NODE_ENV!=="production"?Ss(h):h,null)),I=t.props?a:zd(a)}}catch(tt){ri.length=0,Wn(tt,s,1),k=pt(Ge)}let M=k,E;if({}.NODE_ENV!=="production"&&k.patchFlag>0&&k.patchFlag&2048&&([M,E]=Jl(k)),I&&y!==!1){const tt=Object.keys(I),{shapeFlag:L}=M;if(tt.length){if(L&7)r&&tt.some(Ri)&&(I=Bd(I,r)),M=Hs(M,I);else if({}.NODE_ENV!=="production"&&!bo&&M.type!==Ge){const W=Object.keys(a),vt=[],bt=[];for(let Ct=0,$t=W.length;Ct<$t;Ct++){const Vt=W[Ct];Yn(Vt)?Ri(Vt)||vt.push(Vt[2].toLowerCase()+Vt.slice(3)):bt.push(Vt)}bt.length&&st(`Extraneous non-props attributes (${bt.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),vt.length&&st(`Extraneous non-emits event listeners (${vt.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 e.dirs&&({}.NODE_ENV!=="production"&&!tc(M)&&st("Runtime directive used on component with non-element root node. The directives will not function as intended."),M=Hs(M),M.dirs=M.dirs?M.dirs.concat(e.dirs):e.dirs),e.transition&&({}.NODE_ENV!=="production"&&!tc(M)&&st("Component inside <Transition> renders non-element root node that cannot be animated."),M.transition=e.transition),{}.NODE_ENV!=="production"&&E?E(M):k=M,Qi(_),k}const Jl=s=>{const t=s.children,e=s.dynamicChildren,n=wo(t,!1);if(n){if({}.NODE_ENV!=="production"&&n.patchFlag>0&&n.patchFlag&2048)return Jl(n)}else return[s,void 0];const i=t.indexOf(n),r=e?e.indexOf(n):-1,o=a=>{t[i]=a,e&&(r>-1?e[r]=a:a.patchFlag>0&&(s.dynamicChildren=[...e,a]))};return[rs(n),o]};function wo(s,t=!0){let e;for(let n=0;n<s.length;n++){const i=s[n];if(Dn(i)){if(i.type!==Ge||i.children==="v-if"){if(e)return;if(e=i,{}.NODE_ENV!=="production"&&t&&e.patchFlag>0&&e.patchFlag&2048)return wo(e.children)}}else return}return e}const zd=s=>{let t;for(const e in s)(e==="class"||e==="style"||Yn(e))&&((t||(t={}))[e]=s[e]);return t},Bd=(s,t)=>{const e={};for(const n in s)(!Ri(n)||!(n.slice(9)in t))&&(e[n]=s[n]);return e},tc=s=>s.shapeFlag&7||s.type===Ge;function jd(s,t,e){const{props:n,children:i,component:r}=s,{props:o,children:a,patchFlag:l}=t,c=r.emitsOptions;if({}.NODE_ENV!=="production"&&(i||a)&&hn||t.dirs||t.transition)return!0;if(e&&l>=0){if(l&1024)return!0;if(l&16)return n?ec(n,o,c):!!o;if(l&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const f=u[h];if(o[f]!==n[f]&&!Zi(c,f))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:n===o?!1:n?o?ec(n,o,c):!0:!!o;return!1}function ec(s,t,e){const n=Object.keys(t);if(n.length!==Object.keys(s).length)return!0;for(let i=0;i<n.length;i++){const r=n[i];if(t[r]!==s[r]&&!Zi(e,r))return!0}return!1}function Yd({vnode:s,parent:t},e){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===s&&(n.el=s.el),n===s)(s=t.vnode).el=e,t=t.parent;else break}}const So="components";function Hd(s,t){return Ud(So,s,!0,t)||s}const Xd=Symbol.for("v-ndc");function Ud(s,t,e=!0,n=!1){const i=fe||ve;if(i){const r=i.type;if(s===So){const a=Bo(r,!1);if(a&&(a===t||a===us(t)||a===nn(us(t))))return r}const o=sc(i[s]||r[s],t)||sc(i.appContext[s],t);if(!o&&n)return r;if({}.NODE_ENV!=="production"&&e&&!o){const a=s===So?`
|
|
19
|
+
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";st(`Failed to resolve ${s.slice(0,-1)}: ${t}${a}`)}return o}else({}).NODE_ENV!=="production"&&st(`resolve${nn(s.slice(0,-1))} can only be used in render() or setup().`)}function sc(s,t){return s&&(s[t]||s[us(t)]||s[nn(us(t))])}const Wd=s=>s.__isSuspense;function qd(s,t){t&&t.pendingBranch?mt(s)?t.effects.push(...s):t.effects.push(s):jl(s)}const Zd=Symbol.for("v-scx"),Kd=()=>{{const s=nr(Zd);return s||{}.NODE_ENV!=="production"&&st("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),s}};function nc(s,t){return Co(s,null,t)}const tr={};function It(s,t,e){return{}.NODE_ENV!=="production"&&!St(t)&&st("`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."),Co(s,t,e)}function Co(s,t,{immediate:e,deep:n,flush:i,once:r,onTrack:o,onTrigger:a}=Ut){if(t&&r){const W=t;t=(...vt)=>{W(...vt),L()}}({}).NODE_ENV!=="production"&&n!==void 0&&typeof n=="number"&&st('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"&&!t&&(e!==void 0&&st('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),n!==void 0&&st('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&st('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=W=>{st("Invalid watch source: ",W,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=ve,u=W=>n===!0?W:mn(W,n===!1?1:void 0);let h,f=!1,d=!1;if(Te(s)?(h=()=>s.value,f=cn(s)):On(s)?(h=()=>u(s),f=!0):mt(s)?(d=!0,f=s.some(W=>On(W)||cn(W)),h=()=>s.map(W=>{if(Te(W))return W.value;if(On(W))return u(W);if(St(W))return Cs(W,c,2);({}).NODE_ENV!=="production"&&l(W)})):St(s)?t?h=()=>Cs(s,c,2):h=()=>(m&&m(),ns(s,c,3,[y])):(h=he,{}.NODE_ENV!=="production"&&l(s)),t&&n){const W=h;h=()=>mn(W())}let m,y=W=>{m=E.onStop=()=>{Cs(W,c,4),m=E.onStop=void 0}},_;if(cr)if(y=he,t?e&&ns(t,c,3,[h(),d?[]:void 0,y]):h(),i==="sync"){const W=Kd();_=W.__watcherHandles||(W.__watcherHandles=[])}else return he;let k=d?new Array(s.length).fill(tr):tr;const I=()=>{if(!(!E.active||!E.dirty))if(t){const W=E.run();(n||f||(d?W.some((vt,bt)=>Vs(vt,k[bt])):Vs(W,k)))&&(m&&m(),ns(t,c,3,[W,k===tr?void 0:d&&k[0]===tr?[]:k,y]),k=W)}else E.run()};I.allowRecurse=!!t;let M;i==="sync"?M=I:i==="post"?M=()=>Fe(I,c&&c.suspense):(I.pre=!0,c&&(I.id=c.uid),M=()=>qi(I));const E=new so(h,he,M),tt=Xh(),L=()=>{E.stop(),tt&&Zr(tt.effects,E)};return{}.NODE_ENV!=="production"&&(E.onTrack=o,E.onTrigger=a),t?e?I():k=E.run():i==="post"?Fe(E.run.bind(E),c&&c.suspense):E.run(),_&&_.push(L),L}function Qd(s,t,e){const n=this.proxy,i=de(s)?s.includes(".")?ic(n,s):()=>n[s]:s.bind(n,n);let r;St(t)?r=t:(r=t.handler,e=t);const o=li(this),a=Co(i,r.bind(n),e);return o(),a}function ic(s,t){const e=t.split(".");return()=>{let n=s;for(let i=0;i<e.length&&n;i++)n=n[e[i]];return n}}function mn(s,t,e=0,n){if(!Yt(s)||s.__v_skip)return s;if(t&&t>0){if(e>=t)return s;e++}if(n=n||new Set,n.has(s))return s;if(n.add(s),Te(s))mn(s.value,t,e,n);else if(mt(s))for(let i=0;i<s.length;i++)mn(s[i],t,e,n);else if(al(s)||en(s))s.forEach(i=>{mn(i,t,e,n)});else if(cl(s))for(const i in s)mn(s[i],t,e,n);return s}function rc(s){Rh(s)&&st("Do not use built-in directive ids as custom directive id: "+s)}function Es(s,t){if(fe===null)return{}.NODE_ENV!=="production"&&st("withDirectives can only be used inside render functions."),s;const e=ur(fe)||fe.proxy,n=s.dirs||(s.dirs=[]);for(let i=0;i<t.length;i++){let[r,o,a,l=Ut]=t[i];r&&(St(r)&&(r={mounted:r,updated:r}),r.deep&&mn(o),n.push({dir:r,instance:e,value:o,oldValue:void 0,arg:a,modifiers:l}))}return s}function gn(s,t,e,n){const i=s.dirs,r=t&&t.dirs;for(let o=0;o<i.length;o++){const a=i[o];r&&(a.oldValue=r[o].value);let l=a.dir[n];l&&(xs(),ns(l,e,8,[s.el,a,s,t]),ws())}}/*! #__NO_SIDE_EFFECTS__ */function at(s,t){return St(s)?(()=>se({name:s.name},t,{setup:s}))():s}const ti=s=>!!s.type.__asyncLoader,ko=s=>s.type.__isKeepAlive;function Jd(s,t){oc(s,"a",t)}function tf(s,t){oc(s,"da",t)}function oc(s,t,e=ve){const n=s.__wdc||(s.__wdc=()=>{let i=e;for(;i;){if(i.isDeactivated)return;i=i.parent}return s()});if(er(t,n,e),e){let i=e.parent;for(;i&&i.parent;)ko(i.parent.vnode)&&ef(n,t,e,i),i=i.parent}}function ef(s,t,e,n){const i=er(t,s,n,!0);pe(()=>{Zr(n[t],i)},e)}function er(s,t,e=ve,n=!1){if(e){const i=e[s]||(e[s]=[]),r=t.__weh||(t.__weh=(...o)=>{if(e.isUnmounted)return;xs();const a=li(e),l=ns(t,e,s,o);return a(),ws(),l});return n?i.unshift(r):i.push(r),r}else if({}.NODE_ENV!=="production"){const i=rn(fo[s].replace(/ hook$/,""));st(`${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 Ts=s=>(t,e=ve)=>(!cr||s==="sp")&&er(s,(...n)=>t(...n),e),sf=Ts("bm"),js=Ts("m"),nf=Ts("bu"),rf=Ts("u"),of=Ts("bum"),pe=Ts("um"),af=Ts("sp"),lf=Ts("rtg"),cf=Ts("rtc");function uf(s,t=ve){er("ec",s,t)}function be(s,t,e,n){let i;const r=e&&e[n];if(mt(s)||de(s)){i=new Array(s.length);for(let o=0,a=s.length;o<a;o++)i[o]=t(s[o],o,void 0,r&&r[o])}else if(typeof s=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(s)&&st(`The v-for range expect an integer value but got ${s}.`),i=new Array(s);for(let o=0;o<s;o++)i[o]=t(o+1,o,void 0,r&&r[o])}else if(Yt(s))if(s[Symbol.iterator])i=Array.from(s,(o,a)=>t(o,a,void 0,r&&r[a]));else{const o=Object.keys(s);i=new Array(o.length);for(let a=0,l=o.length;a<l;a++){const c=o[a];i[a]=t(s[c],c,a,r&&r[a])}}else i=[];return e&&(e[n]=i),i}function Nt(s,t,e={},n,i){if(fe.isCE||fe.parent&&ti(fe.parent)&&fe.parent.isCE)return t!=="default"&&(e.name=t),pt("slot",e,n&&n());let r=s[t];({}).NODE_ENV!=="production"&&r&&r.length>1&&(st("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),N();const o=r&&ac(r(e)),a=Zt(Gt,{key:e.key||o&&o.key||`_${t}`},o||(n?n():[]),o&&s._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function ac(s){return s.some(t=>Dn(t)?!(t.type===Ge||t.type===Gt&&!ac(t.children)):!0)?s:null}const Eo=s=>s?Lc(s)?ur(s)||s.proxy:Eo(s.parent):null,yn=se(Object.create(null),{$:s=>s,$el:s=>s.vnode.el,$data:s=>s.data,$props:s=>({}).NODE_ENV!=="production"?Ss(s.props):s.props,$attrs:s=>({}).NODE_ENV!=="production"?Ss(s.attrs):s.attrs,$slots:s=>({}).NODE_ENV!=="production"?Ss(s.slots):s.slots,$refs:s=>({}).NODE_ENV!=="production"?Ss(s.refs):s.refs,$parent:s=>Eo(s.parent),$root:s=>Eo(s.root),$emit:s=>s.emit,$options:s=>Io(s),$forceUpdate:s=>s.f||(s.f=()=>{s.effect.dirty=!0,qi(s.update)}),$nextTick:s=>s.n||(s.n=zl.bind(s.proxy)),$watch:s=>Qd.bind(s)}),To=s=>s==="_"||s==="$",Oo=(s,t)=>s!==Ut&&!s.__isScriptSetup&&At(s,t),lc={get({_:s},t){if(t==="__v_skip")return!0;const{ctx:e,setupState:n,data:i,props:r,accessCache:o,type:a,appContext:l}=s;if({}.NODE_ENV!=="production"&&t==="__isVue")return!0;let c;if(t[0]!=="$"){const d=o[t];if(d!==void 0)switch(d){case 1:return n[t];case 2:return i[t];case 4:return e[t];case 3:return r[t]}else{if(Oo(n,t))return o[t]=1,n[t];if(i!==Ut&&At(i,t))return o[t]=2,i[t];if((c=s.propsOptions[0])&&At(c,t))return o[t]=3,r[t];if(e!==Ut&&At(e,t))return o[t]=4,e[t];Po&&(o[t]=0)}}const u=yn[t];let h,f;if(u)return t==="$attrs"?(Ee(s.attrs,"get",""),{}.NODE_ENV!=="production"&&Ji()):{}.NODE_ENV!=="production"&&t==="$slots"&&Ee(s,"get",t),u(s);if((h=a.__cssModules)&&(h=h[t]))return h;if(e!==Ut&&At(e,t))return o[t]=4,e[t];if(f=l.config.globalProperties,At(f,t))return f[t];({}).NODE_ENV!=="production"&&fe&&(!de(t)||t.indexOf("__v")!==0)&&(i!==Ut&&To(t[0])&&At(i,t)?st(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):s===fe&&st(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:s},t,e){const{data:n,setupState:i,ctx:r}=s;return Oo(i,t)?(i[t]=e,!0):{}.NODE_ENV!=="production"&&i.__isScriptSetup&&At(i,t)?(st(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):n!==Ut&&At(n,t)?(n[t]=e,!0):At(s.props,t)?({}.NODE_ENV!=="production"&&st(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in s?({}.NODE_ENV!=="production"&&st(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):({}.NODE_ENV!=="production"&&t in s.appContext.config.globalProperties?Object.defineProperty(r,t,{enumerable:!0,configurable:!0,value:e}):r[t]=e,!0)},has({_:{data:s,setupState:t,accessCache:e,ctx:n,appContext:i,propsOptions:r}},o){let a;return!!e[o]||s!==Ut&&At(s,o)||Oo(t,o)||(a=r[0])&&At(a,o)||At(n,o)||At(yn,o)||At(i.config.globalProperties,o)},defineProperty(s,t,e){return e.get!=null?s._.accessCache[t]=0:At(e,"value")&&this.set(s,t,e.value,null),Reflect.defineProperty(s,t,e)}};({}).NODE_ENV!=="production"&&(lc.ownKeys=s=>(st("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(s)));function hf(s){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>s}),Object.keys(yn).forEach(e=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,get:()=>yn[e](s),set:he})}),t}function df(s){const{ctx:t,propsOptions:[e]}=s;e&&Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.props[n],set:he})})}function ff(s){const{ctx:t,setupState:e}=s;Object.keys(Pt(e)).forEach(n=>{if(!e.__isScriptSetup){if(To(n[0])){st(`setup() return property ${JSON.stringify(n)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e[n],set:he})}})}function pf(){return mf().slots}function mf(){const s=Rc();return{}.NODE_ENV!=="production"&&!s&&st("useContext() called without active instance."),s.setupContext||(s.setupContext=zc(s))}function cc(s){return mt(s)?s.reduce((t,e)=>(t[e]=null,t),{}):s}function gf(){const s=Object.create(null);return(t,e)=>{s[e]?st(`${t} property "${e}" is already defined in ${s[e]}.`):s[e]=t}}let Po=!0;function yf(s){const t=Io(s),e=s.proxy,n=s.ctx;Po=!1,t.beforeCreate&&uc(t.beforeCreate,s,"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:y,deactivated:_,beforeDestroy:k,beforeUnmount:I,destroyed:M,unmounted:E,render:tt,renderTracked:L,renderTriggered:W,errorCaptured:vt,serverPrefetch:bt,expose:Ct,inheritAttrs:$t,components:Vt,directives:re,filters:oe}=t,me={}.NODE_ENV!=="production"?gf():null;if({}.NODE_ENV!=="production"){const[xt]=s.propsOptions;if(xt)for(const wt in xt)me("Props",wt)}if(c&&vf(c,n,me),o)for(const xt in o){const wt=o[xt];St(wt)?({}.NODE_ENV!=="production"?Object.defineProperty(n,xt,{value:wt.bind(e),configurable:!0,enumerable:!0,writable:!0}):n[xt]=wt.bind(e),{}.NODE_ENV!=="production"&&me("Methods",xt)):{}.NODE_ENV!=="production"&&st(`Method "${xt}" has type "${typeof wt}" in the component definition. Did you reference the function correctly?`)}if(i){({}).NODE_ENV!=="production"&&!St(i)&&st("The data option must be a function. Plain object usage is no longer supported.");const xt=i.call(e,e);if({}.NODE_ENV!=="production"&&Kr(xt)&&st("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Yt(xt))({}).NODE_ENV!=="production"&&st("data() should return an object.");else if(s.data=ne(xt),{}.NODE_ENV!=="production")for(const wt in xt)me("Data",wt),To(wt[0])||Object.defineProperty(n,wt,{configurable:!0,enumerable:!0,get:()=>xt[wt],set:he})}if(Po=!0,r)for(const xt in r){const wt=r[xt],it=St(wt)?wt.bind(e,e):St(wt.get)?wt.get.bind(e,e):he;({}).NODE_ENV!=="production"&&it===he&&st(`Computed property "${xt}" has no getter.`);const q=!St(wt)&&St(wt.set)?wt.set.bind(e):{}.NODE_ENV!=="production"?()=>{st(`Write operation failed: computed property "${xt}" is readonly.`)}:he,kt=ep({get:it,set:q});Object.defineProperty(n,xt,{enumerable:!0,configurable:!0,get:()=>kt.value,set:V=>kt.value=V}),{}.NODE_ENV!=="production"&&me("Computed",xt)}if(a)for(const xt in a)hc(a[xt],n,e,xt);if(l){const xt=St(l)?l.call(e):l;Reflect.ownKeys(xt).forEach(wt=>{Cf(wt,xt[wt])})}u&&uc(u,s,"c");function Ht(xt,wt){mt(wt)?wt.forEach(it=>xt(it.bind(e))):wt&&xt(wt.bind(e))}if(Ht(sf,h),Ht(js,f),Ht(nf,d),Ht(rf,m),Ht(Jd,y),Ht(tf,_),Ht(uf,vt),Ht(cf,L),Ht(lf,W),Ht(of,I),Ht(pe,E),Ht(af,bt),mt(Ct))if(Ct.length){const xt=s.exposed||(s.exposed={});Ct.forEach(wt=>{Object.defineProperty(xt,wt,{get:()=>e[wt],set:it=>e[wt]=it})})}else s.exposed||(s.exposed={});tt&&s.render===he&&(s.render=tt),$t!=null&&(s.inheritAttrs=$t),Vt&&(s.components=Vt),re&&(s.directives=re)}function vf(s,t,e=he){mt(s)&&(s=Do(s));for(const n in s){const i=s[n];let r;Yt(i)?"default"in i?r=nr(i.from||n,i.default,!0):r=nr(i.from||n):r=nr(i),Te(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):t[n]=r,{}.NODE_ENV!=="production"&&e("Inject",n)}}function uc(s,t,e){ns(mt(s)?s.map(n=>n.bind(t.proxy)):s.bind(t.proxy),t,e)}function hc(s,t,e,n){const i=n.includes(".")?ic(e,n):()=>e[n];if(de(s)){const r=t[s];St(r)?It(i,r):{}.NODE_ENV!=="production"&&st(`Invalid watch handler specified by key "${s}"`,r)}else if(St(s))It(i,s.bind(e));else if(Yt(s))if(mt(s))s.forEach(r=>hc(r,t,e,n));else{const r=St(s.handler)?s.handler.bind(e):t[s.handler];St(r)?It(i,r,s):{}.NODE_ENV!=="production"&&st(`Invalid watch handler specified by key "${s.handler}"`,r)}else({}).NODE_ENV!=="production"&&st(`Invalid watch option: "${n}"`,s)}function Io(s){const t=s.type,{mixins:e,extends:n}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=s.appContext,a=r.get(t);let l;return a?l=a:!i.length&&!e&&!n?l=t:(l={},i.length&&i.forEach(c=>sr(l,c,o,!0)),sr(l,t,o)),Yt(t)&&r.set(t,l),l}function sr(s,t,e,n=!1){const{mixins:i,extends:r}=t;r&&sr(s,r,e,!0),i&&i.forEach(o=>sr(s,o,e,!0));for(const o in t)if(n&&o==="expose")({}).NODE_ENV!=="production"&&st('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=_f[o]||e&&e[o];s[o]=a?a(s[o],t[o]):t[o]}return s}const _f={data:dc,props:fc,emits:fc,methods:ei,computed:ei,beforeCreate:Me,created:Me,beforeMount:Me,mounted:Me,beforeUpdate:Me,updated:Me,beforeDestroy:Me,beforeUnmount:Me,destroyed:Me,unmounted:Me,activated:Me,deactivated:Me,errorCaptured:Me,serverPrefetch:Me,components:ei,directives:ei,watch:xf,provide:dc,inject:bf};function dc(s,t){return t?s?function(){return se(St(s)?s.call(this,this):s,St(t)?t.call(this,this):t)}:t:s}function bf(s,t){return ei(Do(s),Do(t))}function Do(s){if(mt(s)){const t={};for(let e=0;e<s.length;e++)t[s[e]]=s[e];return t}return s}function Me(s,t){return s?[...new Set([].concat(s,t))]:t}function ei(s,t){return s?se(Object.create(null),s,t):t}function fc(s,t){return s?mt(s)&&mt(t)?[...new Set([...s,...t])]:se(Object.create(null),cc(s),cc(t??{})):t}function xf(s,t){if(!s)return t;if(!t)return s;const e=se(Object.create(null),s);for(const n in t)e[n]=Me(s[n],t[n]);return e}function pc(){return{app:null,config:{isNativeTag:Nh,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 Sf(s,t){return function(n,i=null){St(n)||(n=se({},n)),i!=null&&!Yt(i)&&({}.NODE_ENV!=="production"&&st("root props passed to app.mount() must be an object."),i=null);const r=pc(),o=new WeakSet;let a=!1;const l=r.app={_uid:wf++,_component:n,_props:i,_container:null,_context:r,_instance:null,version:jc,get config(){return r.config},set config(c){({}).NODE_ENV!=="production"&&st("app.config cannot be replaced. Modify individual options instead.")},use(c,...u){return o.has(c)?{}.NODE_ENV!=="production"&&st("Plugin has already been applied to target app."):c&&St(c.install)?(o.add(c),c.install(l,...u)):St(c)?(o.add(c),c(l,...u)):{}.NODE_ENV!=="production"&&st('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"&&st("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):r.mixins.push(c),l},component(c,u){return{}.NODE_ENV!=="production"&&Go(c,r.config),u?({}.NODE_ENV!=="production"&&r.components[c]&&st(`Component "${c}" has already been registered in target app.`),r.components[c]=u,l):r.components[c]},directive(c,u){return{}.NODE_ENV!=="production"&&rc(c),u?({}.NODE_ENV!=="production"&&r.directives[c]&&st(`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"&&st("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__&&st("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=pt(n,i);return f.appContext=r,h===!0?h="svg":h===!1&&(h=void 0),{}.NODE_ENV!=="production"&&(r.reload=()=>{s(Hs(f),c,h)}),u&&t?t(f,c):s(f,c,h),a=!0,l._container=c,c.__vue_app__=l,{}.NODE_ENV!=="production"&&(l._instance=f.component,Md(l,jc)),ur(f.component)||f.component.proxy}},unmount(){a?(s(null,l._container),{}.NODE_ENV!=="production"&&(l._instance=null,Nd(l)),delete l._container.__vue_app__):{}.NODE_ENV!=="production"&&st("Cannot unmount an app that is not mounted.")},provide(c,u){return{}.NODE_ENV!=="production"&&c in r.provides&&st(`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=si;si=l;try{return c()}finally{si=u}}};return l}}let si=null;function Cf(s,t){if(!ve)({}).NODE_ENV!=="production"&&st("provide() can only be used inside setup().");else{let e=ve.provides;const n=ve.parent&&ve.parent.provides;n===e&&(e=ve.provides=Object.create(n)),e[s]=t}}function nr(s,t,e=!1){const n=ve||fe;if(n||si){const i=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:si._context.provides;if(i&&s in i)return i[s];if(arguments.length>1)return e&&St(t)?t.call(n&&n.proxy):t;({}).NODE_ENV!=="production"&&st(`injection "${String(s)}" not found.`)}else({}).NODE_ENV!=="production"&&st("inject() can only be used inside setup() or functional components.")}const mc={},gc=()=>Object.create(mc),yc=s=>Object.getPrototypeOf(s)===mc;function kf(s,t,e,n=!1){const i={},r=gc();s.propsDefaults=Object.create(null),vc(s,t,i,r);for(const o in s.propsOptions[0])o in i||(i[o]=void 0);({}).NODE_ENV!=="production"&&Sc(t||{},i,s),e?s.props=n?i:dd(i):s.type.props?s.props=i:s.props=r,s.attrs=r}function Ef(s){for(;s;){if(s.type.__hmrId)return!0;s=s.parent}}function Tf(s,t,e,n){const{props:i,attrs:r,vnode:{patchFlag:o}}=s,a=Pt(i),[l]=s.propsOptions;let c=!1;if(!({}.NODE_ENV!=="production"&&Ef(s))&&(n||o>0)&&!(o&16)){if(o&8){const u=s.vnode.dynamicProps;for(let h=0;h<u.length;h++){let f=u[h];if(Zi(s.emitsOptions,f))continue;const d=t[f];if(l)if(At(r,f))d!==r[f]&&(r[f]=d,c=!0);else{const m=us(f);i[m]=Mo(l,a,m,d,s,!1)}else d!==r[f]&&(r[f]=d,c=!0)}}}else{vc(s,t,i,r)&&(c=!0);let u;for(const h in a)(!t||!At(t,h)&&((u=Ls(h))===h||!At(t,u)))&&(l?e&&(e[h]!==void 0||e[u]!==void 0)&&(i[h]=Mo(l,a,h,void 0,s,!0)):delete i[h]);if(r!==a)for(const h in r)(!t||!At(t,h))&&(delete r[h],c=!0)}c&&hs(s.attrs,"set",""),{}.NODE_ENV!=="production"&&Sc(t||{},i,s)}function vc(s,t,e,n){const[i,r]=s.propsOptions;let o=!1,a;if(t)for(let l in t){if(Hn(l))continue;const c=t[l];let u;i&&At(i,u=us(l))?!r||!r.includes(u)?e[u]=c:(a||(a={}))[u]=c:Zi(s.emitsOptions,l)||(!(l in n)||c!==n[l])&&(n[l]=c,o=!0)}if(r){const l=Pt(e),c=a||Ut;for(let u=0;u<r.length;u++){const h=r[u];e[h]=Mo(i,l,h,c[h],s,!At(c,h))}}return o}function Mo(s,t,e,n,i,r){const o=s[e];if(o!=null){const a=At(o,"default");if(a&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&St(l)){const{propsDefaults:c}=i;if(e in c)n=c[e];else{const u=li(i);n=c[e]=l.call(null,t),u()}}else n=l}o[0]&&(r&&!a?n=!1:o[1]&&(n===""||n===Ls(e))&&(n=!0))}return n}function _c(s,t,e=!1){const n=t.propsCache,i=n.get(s);if(i)return i;const r=s.props,o={},a=[];let l=!1;if(!St(s)){const u=h=>{l=!0;const[f,d]=_c(h,t,!0);se(o,f),d&&a.push(...d)};!e&&t.mixins.length&&t.mixins.forEach(u),s.extends&&u(s.extends),s.mixins&&s.mixins.forEach(u)}if(!r&&!l)return Yt(s)&&n.set(s,Tn),Tn;if(mt(r))for(let u=0;u<r.length;u++){({}).NODE_ENV!=="production"&&!de(r[u])&&st("props must be strings when using array syntax.",r[u]);const h=us(r[u]);bc(h)&&(o[h]=Ut)}else if(r){({}).NODE_ENV!=="production"&&!Yt(r)&&st("invalid props options",r);for(const u in r){const h=us(u);if(bc(h)){const f=r[u],d=o[h]=mt(f)||St(f)?{type:f}:se({},f);if(d){const m=wc(Boolean,d.type),y=wc(String,d.type);d[0]=m>-1,d[1]=y<0||m<y,(m>-1||At(d,"default"))&&a.push(h)}}}}const c=[o,a];return Yt(s)&&n.set(s,c),c}function bc(s){return s[0]!=="$"&&!Hn(s)?!0:({}.NODE_ENV!=="production"&&st(`Invalid prop name: "${s}" is a reserved property.`),!1)}function No(s){return s===null?"null":typeof s=="function"?s.name||"":typeof s=="object"&&s.constructor&&s.constructor.name||""}function xc(s,t){return No(s)===No(t)}function wc(s,t){return mt(t)?t.findIndex(e=>xc(e,s)):St(t)&&xc(t,s)?0:-1}function Sc(s,t,e){const n=Pt(t),i=e.propsOptions[0];for(const r in i){let o=i[r];o!=null&&Of(r,n[r],o,{}.NODE_ENV!=="production"?Ss(n):n,!At(s,r)&&!At(s,Ls(r)))}}function Of(s,t,e,n,i){const{type:r,required:o,validator:a,skipCheck:l}=e;if(o&&i){st('Missing required prop: "'+s+'"');return}if(!(t==null&&!o)){if(r!=null&&r!==!0&&!l){let c=!1;const u=mt(r)?r:[r],h=[];for(let f=0;f<u.length&&!c;f++){const{valid:d,expectedType:m}=If(t,u[f]);h.push(m||""),c=d}if(!c){st(Df(s,t,h));return}}a&&!a(t,n)&&st('Invalid prop: custom validator check failed for prop "'+s+'".')}}const Pf=En("String,Number,Boolean,Function,Symbol,BigInt");function If(s,t){let e;const n=No(t);if(Pf(n)){const i=typeof s;e=i===n.toLowerCase(),!e&&i==="object"&&(e=s instanceof t)}else n==="Object"?e=Yt(s):n==="Array"?e=mt(s):n==="null"?e=s===null:e=s instanceof t;return{valid:e,expectedType:n}}function Df(s,t,e){if(e.length===0)return`Prop type [] for prop "${s}" won't match anything. Did you mean to use type Array instead?`;let n=`Invalid prop: type check failed for prop "${s}". Expected ${e.map(nn).join(" | ")}`;const i=e[0],r=Qr(t),o=Cc(t,i),a=Cc(t,r);return e.length===1&&kc(i)&&!Mf(i,r)&&(n+=` with value ${o}`),n+=`, got ${r} `,kc(r)&&(n+=`with value ${a}.`),n}function Cc(s,t){return t==="String"?`"${s}"`:t==="Number"?`${Number(s)}`:`${s}`}function kc(s){return["string","number","boolean"].some(e=>s.toLowerCase()===e)}function Mf(...s){return s.some(t=>t.toLowerCase()==="boolean")}const Ec=s=>s[0]==="_"||s==="$stable",Ao=s=>mt(s)?s.map(rs):[rs(s)],Nf=(s,t,e)=>{if(t._n)return t;const n=Bt((...i)=>({}.NODE_ENV!=="production"&&ve&&(!e||e.root===ve.root)&&st(`Slot "${s}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),Ao(t(...i))),e);return n._c=!1,n},Tc=(s,t,e)=>{const n=s._ctx;for(const i in s){if(Ec(i))continue;const r=s[i];if(St(r))t[i]=Nf(i,r,n);else if(r!=null){({}).NODE_ENV!=="production"&&st(`Non-function value encountered for slot "${i}". Prefer function slots for better performance.`);const o=Ao(r);t[i]=()=>o}}},Oc=(s,t)=>{({}).NODE_ENV!=="production"&&!ko(s.vnode)&&st("Non-function value encountered for default slot. Prefer function slots for better performance.");const e=Ao(t);s.slots.default=()=>e},Af=(s,t)=>{const e=s.slots=gc();if(s.vnode.shapeFlag&32){const n=t._;n?(se(e,t),ul(e,"_",n)):Tc(t,e)}else t&&Oc(s,t)},Rf=(s,t,e)=>{const{vnode:n,slots:i}=s;let r=!0,o=Ut;if(n.shapeFlag&32){const a=t._;a?{}.NODE_ENV!=="production"&&hn?(se(i,t),hs(s,"set","$slots")):e&&a===1?r=!1:(se(i,t),!e&&a===1&&delete i._):(r=!t.$stable,Tc(t,i)),o=t}else t&&(Oc(s,t),o={default:1});if(r)for(const a in i)!Ec(a)&&o[a]==null&&delete i[a]};function Ro(s,t,e,n,i=!1){if(mt(s)){s.forEach((f,d)=>Ro(f,t&&(mt(t)?t[d]:t),e,n,i));return}if(ti(n)&&!i)return;const r=n.shapeFlag&4?ur(n.component)||n.component.proxy:n.el,o=i?null:r,{i:a,r:l}=s;if({}.NODE_ENV!=="production"&&!a){st("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=t&&t.r,u=a.refs===Ut?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==l&&(de(c)?(u[c]=null,At(h,c)&&(h[c]=null)):Te(c)&&(c.value=null)),St(l))Cs(l,a,12,[o,u]);else{const f=de(l),d=Te(l);if(f||d){const m=()=>{if(s.f){const y=f?At(h,l)?h[l]:u[l]:l.value;i?mt(y)&&Zr(y,r):mt(y)?y.includes(r)||y.push(r):f?(u[l]=[r],At(h,l)&&(h[l]=u[l])):(l.value=[r],s.k&&(u[s.k]=l.value))}else f?(u[l]=o,At(h,l)&&(h[l]=o)):d?(l.value=o,s.k&&(u[s.k]=o)):{}.NODE_ENV!=="production"&&st("Invalid template ref type:",l,`(${typeof l})`)};o?(m.id=-1,Fe(m,e)):m()}else({}).NODE_ENV!=="production"&&st("Invalid template ref type:",l,`(${typeof l})`)}}let ni,Ys;function Os(s,t){s.appContext.config.performance&&ir()&&Ys.mark(`vue-${t}-${s.uid}`),{}.NODE_ENV!=="production"&&Ld(s,t,ir()?Ys.now():Date.now())}function Ps(s,t){if(s.appContext.config.performance&&ir()){const e=`vue-${t}-${s.uid}`,n=e+":end";Ys.mark(n),Ys.measure(`<${hr(s,s.type)}> ${t}`,e,n),Ys.clearMarks(e),Ys.clearMarks(n)}({}).NODE_ENV!=="production"&&Vd(s,t,ir()?Ys.now():Date.now())}function ir(){return ni!==void 0||(typeof window<"u"&&window.performance?(ni=!0,Ys=window.performance):ni=!1),ni}function $f(){const s=[];if({}.NODE_ENV!=="production"&&s.length){const t=s.length>1;console.warn(`Feature flag${t?"s":""} ${s.join(", ")} ${t?"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 Le=Yd;function Nf(s){return Mf(s)}function Mf(s,t){If();const e=Kr();e.__VUE__=!0,{}.NODE_ENV!=="production"&&Yl(e.__VUE_DEVTOOLS_GLOBAL_HOOK__,e);const{insert:n,remove:i,patchProp:r,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:f,setScopeId:d=ae,insertStaticContent:m}=s,v=(y,x,I,A=null,L=null,J=null,K=void 0,z=null,Q={}.NODE_ENV!=="production"&&hn?!1:!!x.dynamicChildren)=>{if(y===x)return;y&&!ri(y,x)&&(A=$e(y),Ut(y,L,J,!0),y=null),x.patchFlag===-2&&(Q=!1,x.dynamicChildren=null);const{type:Y,ref:rt,shapeFlag:ft}=x;switch(Y){case si:_(y,x,I,A);break;case Fe:E(y,x,I,A);break;case nr:y==null?D(x,I,A,K):{}.NODE_ENV!=="production"&&N(y,x,I,K);break;case zt:se(y,x,I,A,L,J,K,z,Q);break;default:ft&1?R(y,x,I,A,L,J,K,z,Q):ft&6?ne(y,x,I,A,L,J,K,z,Q):ft&64||ft&128?Y.process(y,x,I,A,L,J,K,z,Q,Ue):{}.NODE_ENV!=="production"&&st("Invalid VNode type:",Y,`(${typeof Y})`)}rt!=null&&L&&No(rt,y&&y.ref,J,x||y,!x)},_=(y,x,I,A)=>{if(y==null)n(x.el=a(x.children),I,A);else{const L=x.el=y.el;x.children!==y.children&&c(L,x.children)}},E=(y,x,I,A)=>{y==null?n(x.el=l(x.children||""),I,A):x.el=y.el},D=(y,x,I,A)=>{[y.el,y.anchor]=m(y.children,x,I,A,y.el,y.anchor)},N=(y,x,I,A)=>{if(x.children!==y.children){const L=f(y.anchor);tt(y),[x.el,x.anchor]=m(x.children,I,L,A)}else x.el=y.el,x.anchor=y.anchor},k=({el:y,anchor:x},I,A)=>{let L;for(;y&&y!==x;)L=f(y),n(y,I,A),y=L;n(x,I,A)},tt=({el:y,anchor:x})=>{let I;for(;y&&y!==x;)I=f(y),i(y),y=I;i(x)},R=(y,x,I,A,L,J,K,z,Q)=>{x.type==="svg"?K="svg":x.type==="math"&&(K="mathml"),y==null?U(x,I,A,L,J,K,z,Q):Ct(y,x,L,J,K,z,Q)},U=(y,x,I,A,L,J,K,z)=>{let Q,Y;const{props:rt,shapeFlag:ft,transition:ht,dirs:_t}=y;if(Q=y.el=o(y.type,J,rt&&rt.is,rt),ft&8?u(Q,y.children):ft&16&&bt(y.children,Q,null,A,L,Mo(y,J),K,z),_t&&pn(y,null,A,"created"),vt(Q,y,y.scopeId,K,A),rt){for(const Vt in rt)Vt!=="value"&&!Bn(Vt)&&r(Q,Vt,null,rt[Vt],J,y.children,A,L,Nt);"value"in rt&&r(Q,"value",null,rt.value,J),(Y=rt.onVnodeBeforeMount)&&fs(Y,A,y)}({}).NODE_ENV!=="production"&&(Object.defineProperty(Q,"__vnode",{value:y,enumerable:!1}),Object.defineProperty(Q,"__vueParentComponent",{value:A,enumerable:!1})),_t&&pn(y,null,A,"beforeMount");const Ot=Af(L,ht);Ot&&ht.beforeEnter(Q),n(Q,x,I),((Y=rt&&rt.onVnodeMounted)||Ot||_t)&&Le(()=>{Y&&fs(Y,A,y),Ot&&ht.enter(Q),_t&&pn(y,null,A,"mounted")},L)},vt=(y,x,I,A,L)=>{if(I&&d(y,I),A)for(let J=0;J<A.length;J++)d(y,A[J]);if(L){let J=L.subTree;if({}.NODE_ENV!=="production"&&J.patchFlag>0&&J.patchFlag&2048&&(J=_o(J.children)||J),x===J){const K=L.vnode;vt(y,K,K.scopeId,K.slotScopeIds,L.parent)}}},bt=(y,x,I,A,L,J,K,z,Q=0)=>{for(let Y=Q;Y<y.length;Y++){const rt=y[Y]=z?Xs(y[Y]):is(y[Y]);v(null,rt,x,I,A,L,J,K,z)}},Ct=(y,x,I,A,L,J,K)=>{const z=x.el=y.el;let{patchFlag:Q,dynamicChildren:Y,dirs:rt}=x;Q|=y.patchFlag&16;const ft=y.props||Ht,ht=x.props||Ht;let _t;if(I&&gn(I,!1),(_t=ht.onVnodeBeforeUpdate)&&fs(_t,I,x,y),rt&&pn(x,y,I,"beforeUpdate"),I&&gn(I,!0),{}.NODE_ENV!=="production"&&hn&&(Q=0,K=!1,Y=null),Y?(Rt(y.dynamicChildren,Y,z,I,A,Mo(x,L),J),{}.NODE_ENV!=="production"&&sr(y,x)):K||it(y,x,z,null,I,A,Mo(x,L),J,!1),Q>0){if(Q&16)$t(z,x,ft,ht,I,A,L);else if(Q&2&&ft.class!==ht.class&&r(z,"class",null,ht.class,L),Q&4&&r(z,"style",ft.style,ht.style,L),Q&8){const Ot=x.dynamicProps;for(let Vt=0;Vt<Ot.length;Vt++){const Xt=Ot[Vt],O=ft[Xt],C=ht[Xt];(C!==O||Xt==="value")&&r(z,Xt,O,C,L,y.children,I,A,Nt)}}Q&1&&y.children!==x.children&&u(z,x.children)}else!K&&Y==null&&$t(z,x,ft,ht,I,A,L);((_t=ht.onVnodeUpdated)||rt)&&Le(()=>{_t&&fs(_t,I,x,y),rt&&pn(x,y,I,"updated")},A)},Rt=(y,x,I,A,L,J,K)=>{for(let z=0;z<x.length;z++){const Q=y[z],Y=x[z],rt=Q.el&&(Q.type===zt||!ri(Q,Y)||Q.shapeFlag&70)?h(Q.el):I;v(Q,Y,rt,null,A,L,J,K,!0)}},$t=(y,x,I,A,L,J,K)=>{if(I!==A){if(I!==Ht)for(const z in I)!Bn(z)&&!(z in A)&&r(y,z,I[z],null,K,x.children,L,J,Nt);for(const z in A){if(Bn(z))continue;const Q=A[z],Y=I[z];Q!==Y&&z!=="value"&&r(y,z,Y,Q,K,x.children,L,J,Nt)}"value"in A&&r(y,"value",I.value,A.value,K)}},se=(y,x,I,A,L,J,K,z,Q)=>{const Y=x.el=y?y.el:a(""),rt=x.anchor=y?y.anchor:a("");let{patchFlag:ft,dynamicChildren:ht,slotScopeIds:_t}=x;({}).NODE_ENV!=="production"&&(hn||ft&2048)&&(ft=0,Q=!1,ht=null),_t&&(z=z?z.concat(_t):_t),y==null?(n(Y,I,A),n(rt,I,A),bt(x.children||[],I,rt,L,J,K,z,Q)):ft>0&&ft&64&&ht&&y.dynamicChildren?(Rt(y.dynamicChildren,ht,I,L,J,K,z),{}.NODE_ENV!=="production"?sr(y,x):(x.key!=null||L&&x===L.subTree)&&sr(y,x,!0)):it(y,x,I,rt,L,J,K,z,Q)},ne=(y,x,I,A,L,J,K,z,Q)=>{x.slotScopeIds=z,y==null?x.shapeFlag&512?L.ctx.activate(x,I,A,K,Q):ue(x,I,A,L,J,K,Q):Yt(y,x,Q)},ue=(y,x,I,A,L,J,K)=>{const z=y.component=jf(y,A,L);if({}.NODE_ENV!=="production"&&z.type.__hmrId&&Sd(z),{}.NODE_ENV!=="production"&&(Yi(y),Ts(z,"mount")),wo(y)&&(z.ctx.renderer=Ue),{}.NODE_ENV!=="production"&&Ts(z,"init"),Yf(z),{}.NODE_ENV!=="production"&&Os(z,"init"),z.asyncDep){if(L&&L.registerDep(z,xt),!y.el){const Q=z.subTree=pt(Fe);E(null,Q,x,I)}}else xt(z,y,x,I,L,J,K);({}).NODE_ENV!=="production"&&(Xi(),Os(z,"mount"))},Yt=(y,x,I)=>{const A=x.component=y.component;if(Ld(y,x,I))if(A.asyncDep&&!A.asyncResolved){({}).NODE_ENV!=="production"&&Yi(x),wt(A,x,I),{}.NODE_ENV!=="production"&&Xi();return}else A.next=x,xd(A.update),A.effect.dirty=!0,A.update();else x.el=y.el,A.vnode=x},xt=(y,x,I,A,L,J,K)=>{const z=()=>{if(y.isMounted){let{next:rt,bu:ft,u:ht,parent:_t,vnode:Ot}=y;{const w=Cc(y);if(w){rt&&(rt.el=Ot.el,wt(y,rt,K)),w.asyncDep.then(()=>{y.isUnmounted||z()});return}}let Vt=rt,Xt;({}).NODE_ENV!=="production"&&Yi(rt||y.vnode),gn(y,!1),rt?(rt.el=Ot.el,wt(y,rt,K)):rt=Ot,ft&&Yn(ft),(Xt=rt.props&&rt.props.onVnodeBeforeUpdate)&&fs(Xt,_t,rt,Ot),gn(y,!0),{}.NODE_ENV!=="production"&&Ts(y,"render");const O=vo(y);({}).NODE_ENV!=="production"&&Os(y,"render");const C=y.subTree;y.subTree=O,{}.NODE_ENV!=="production"&&Ts(y,"patch"),v(C,O,h(C.el),$e(C),y,L,J),{}.NODE_ENV!=="production"&&Os(y,"patch"),rt.el=O.el,Vt===null&&Fd(y,O.el),ht&&Le(ht,L),(Xt=rt.props&&rt.props.onVnodeUpdated)&&Le(()=>fs(Xt,_t,rt,Ot),L),{}.NODE_ENV!=="production"&&Xl(y),{}.NODE_ENV!=="production"&&Xi()}else{let rt;const{el:ft,props:ht}=x,{bm:_t,m:Ot,parent:Vt}=y,Xt=Qn(x);if(gn(y,!1),_t&&Yn(_t),!Xt&&(rt=ht&&ht.onVnodeBeforeMount)&&fs(rt,Vt,x),gn(y,!0),ft&&as){const O=()=>{({}).NODE_ENV!=="production"&&Ts(y,"render"),y.subTree=vo(y),{}.NODE_ENV!=="production"&&Os(y,"render"),{}.NODE_ENV!=="production"&&Ts(y,"hydrate"),as(ft,y.subTree,y,L,null),{}.NODE_ENV!=="production"&&Os(y,"hydrate")};Xt?x.type.__asyncLoader().then(()=>!y.isUnmounted&&O()):O()}else{({}).NODE_ENV!=="production"&&Ts(y,"render");const O=y.subTree=vo(y);({}).NODE_ENV!=="production"&&Os(y,"render"),{}.NODE_ENV!=="production"&&Ts(y,"patch"),v(null,O,I,A,y,L,J),{}.NODE_ENV!=="production"&&Os(y,"patch"),x.el=O.el}if(Ot&&Le(Ot,L),!Xt&&(rt=ht&&ht.onVnodeMounted)){const O=x;Le(()=>fs(rt,Vt,O),L)}(x.shapeFlag&256||Vt&&Qn(Vt.vnode)&&Vt.vnode.shapeFlag&256)&&y.a&&Le(y.a,L),y.isMounted=!0,{}.NODE_ENV!=="production"&&Pd(y),x=I=A=null}},Q=y.effect=new Jr(z,ae,()=>Hi(Y),y.scope),Y=y.update=()=>{Q.dirty&&Q.run()};Y.id=y.uid,gn(y,!0),{}.NODE_ENV!=="production"&&(Q.onTrack=y.rtc?rt=>Yn(y.rtc,rt):void 0,Q.onTrigger=y.rtg?rt=>Yn(y.rtg,rt):void 0,Y.ownerInstance=y),Y()},wt=(y,x,I)=>{x.component=y;const A=y.vnode.props;y.vnode=x,y.next=null,wf(y,x.props,A,I),Df(y,x.children,I),bs(),Fl(y),xs()},it=(y,x,I,A,L,J,K,z,Q=!1)=>{const Y=y&&y.children,rt=y?y.shapeFlag:0,ft=x.children,{patchFlag:ht,shapeFlag:_t}=x;if(ht>0){if(ht&128){Et(Y,ft,I,A,L,J,K,z,Q);return}else if(ht&256){q(Y,ft,I,A,L,J,K,z,Q);return}}_t&8?(rt&16&&Nt(Y,L,J),ft!==Y&&u(I,ft)):rt&16?_t&16?Et(Y,ft,I,A,L,J,K,z,Q):Nt(Y,L,J,!0):(rt&8&&u(I,""),_t&16&&bt(ft,I,A,L,J,K,z,Q))},q=(y,x,I,A,L,J,K,z,Q)=>{y=y||Cn,x=x||Cn;const Y=y.length,rt=x.length,ft=Math.min(Y,rt);let ht;for(ht=0;ht<ft;ht++){const _t=x[ht]=Q?Xs(x[ht]):is(x[ht]);v(y[ht],_t,I,null,L,J,K,z,Q)}Y>rt?Nt(y,L,J,!0,!1,ft):bt(x,I,A,L,J,K,z,Q,ft)},Et=(y,x,I,A,L,J,K,z,Q)=>{let Y=0;const rt=x.length;let ft=y.length-1,ht=rt-1;for(;Y<=ft&&Y<=ht;){const _t=y[Y],Ot=x[Y]=Q?Xs(x[Y]):is(x[Y]);if(ri(_t,Ot))v(_t,Ot,I,null,L,J,K,z,Q);else break;Y++}for(;Y<=ft&&Y<=ht;){const _t=y[ft],Ot=x[ht]=Q?Xs(x[ht]):is(x[ht]);if(ri(_t,Ot))v(_t,Ot,I,null,L,J,K,z,Q);else break;ft--,ht--}if(Y>ft){if(Y<=ht){const _t=ht+1,Ot=_t<rt?x[_t].el:A;for(;Y<=ht;)v(null,x[Y]=Q?Xs(x[Y]):is(x[Y]),I,Ot,L,J,K,z,Q),Y++}}else if(Y>ht)for(;Y<=ft;)Ut(y[Y],L,J,!0),Y++;else{const _t=Y,Ot=Y,Vt=new Map;for(Y=Ot;Y<=ht;Y++){const nt=x[Y]=Q?Xs(x[Y]):is(x[Y]);nt.key!=null&&({}.NODE_ENV!=="production"&&Vt.has(nt.key)&&st("Duplicate keys found during update:",JSON.stringify(nt.key),"Make sure keys are unique."),Vt.set(nt.key,Y))}let Xt,O=0;const C=ht-Ot+1;let w=!1,G=0;const M=new Array(C);for(Y=0;Y<C;Y++)M[Y]=0;for(Y=_t;Y<=ft;Y++){const nt=y[Y];if(O>=C){Ut(nt,L,J,!0);continue}let j;if(nt.key!=null)j=Vt.get(nt.key);else for(Xt=Ot;Xt<=ht;Xt++)if(M[Xt-Ot]===0&&ri(nt,x[Xt])){j=Xt;break}j===void 0?Ut(nt,L,J,!0):(M[j-Ot]=Y+1,j>=G?G=j:w=!0,v(nt,x[j],I,null,L,J,K,z,Q),O++)}const B=w?Rf(M):Cn;for(Xt=B.length-1,Y=C-1;Y>=0;Y--){const nt=Ot+Y,j=x[nt],et=nt+1<rt?x[nt+1].el:A;M[Y]===0?v(null,j,I,et,L,J,K,z,Q):w&&(Xt<0||Y!==B[Xt]?$(j,I,et,2):Xt--)}}},$=(y,x,I,A,L=null)=>{const{el:J,type:K,transition:z,children:Q,shapeFlag:Y}=y;if(Y&6){$(y.component.subTree,x,I,A);return}if(Y&128){y.suspense.move(x,I,A);return}if(Y&64){K.move(y,x,I,Ue);return}if(K===zt){n(J,x,I);for(let ft=0;ft<Q.length;ft++)$(Q[ft],x,I,A);n(y.anchor,x,I);return}if(K===nr){k(y,x,I);return}if(A!==2&&Y&1&&z)if(A===0)z.beforeEnter(J),n(J,x,I),Le(()=>z.enter(J),L);else{const{leave:ft,delayLeave:ht,afterLeave:_t}=z,Ot=()=>n(J,x,I),Vt=()=>{ft(J,()=>{Ot(),_t&&_t()})};ht?ht(J,Ot,Vt):Vt()}else n(J,x,I)},Ut=(y,x,I,A=!1,L=!1)=>{const{type:J,props:K,ref:z,children:Q,dynamicChildren:Y,shapeFlag:rt,patchFlag:ft,dirs:ht}=y;if(z!=null&&No(z,null,I,y,!0),rt&256){x.ctx.deactivate(y);return}const _t=rt&1&&ht,Ot=!Qn(y);let Vt;if(Ot&&(Vt=K&&K.onVnodeBeforeUnmount)&&fs(Vt,x,y),rt&6)Re(y.component,I,A);else{if(rt&128){y.suspense.unmount(I,A);return}_t&&pn(y,null,x,"beforeUnmount"),rt&64?y.type.remove(y,x,I,L,Ue,A):Y&&(J!==zt||ft>0&&ft&64)?Nt(Y,x,I,!1,!0):(J===zt&&ft&384||!L&&rt&16)&&Nt(Q,x,I),A&&ge(y)}(Ot&&(Vt=K&&K.onVnodeUnmounted)||_t)&&Le(()=>{Vt&&fs(Vt,x,y),_t&&pn(y,null,x,"unmounted")},I)},ge=y=>{const{type:x,el:I,anchor:A,transition:L}=y;if(x===zt){({}).NODE_ENV!=="production"&&y.patchFlag>0&&y.patchFlag&2048&&L&&!L.persisted?y.children.forEach(K=>{K.type===Fe?i(K.el):ge(K)}):Ae(I,A);return}if(x===nr){tt(y);return}const J=()=>{i(I),L&&!L.persisted&&L.afterLeave&&L.afterLeave()};if(y.shapeFlag&1&&L&&!L.persisted){const{leave:K,delayLeave:z}=L,Q=()=>K(I,J);z?z(y.el,J,Q):Q()}else J()},Ae=(y,x)=>{let I;for(;y!==x;)I=f(y),i(y),y=I;i(x)},Re=(y,x,I)=>{({}).NODE_ENV!=="production"&&y.type.__hmrId&&Cd(y);const{bum:A,scope:L,update:J,subTree:K,um:z}=y;A&&Yn(A),L.stop(),J&&(J.active=!1,Ut(K,y,x,I)),z&&Le(z,x),Le(()=>{y.isUnmounted=!0},x),x&&x.pendingBranch&&!x.isUnmounted&&y.asyncDep&&!y.asyncResolved&&y.suspenseId===x.pendingId&&(x.deps--,x.deps===0&&x.resolve()),{}.NODE_ENV!=="production"&&Id(y)},Nt=(y,x,I,A=!1,L=!1,J=0)=>{for(let K=J;K<y.length;K++)Ut(y[K],x,I,A,L)},$e=y=>y.shapeFlag&6?$e(y.component.subTree):y.shapeFlag&128?y.suspense.next():f(y.anchor||y.el);let Lt=!1;const ie=(y,x,I)=>{y==null?x._vnode&&Ut(x._vnode,null,null,!0):v(x._vnode||null,y,x,null,null,null,I),Lt||(Lt=!0,Fl(),Gl(),Lt=!1),x._vnode=y},Ue={p:v,um:Ut,m:$,r:ge,mt:ue,mc:bt,pc:it,pbc:Rt,n:$e,o:s};let os,as;return t&&([os,as]=t(Ue)),{render:ie,hydrate:os,createApp:vf(ie,os)}}function Mo({type:s,props:t},e){return e==="svg"&&s==="foreignObject"||e==="mathml"&&s==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:e}function gn({effect:s,update:t},e){s.allowRecurse=t.allowRecurse=e}function Af(s,t){return(!s||s&&!s.pendingBranch)&&t&&!t.persisted}function sr(s,t,e=!1){const n=s.children,i=t.children;if(mt(n)&&mt(i))for(let r=0;r<n.length;r++){const o=n[r];let a=i[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[r]=Xs(i[r]),a.el=o.el),e||sr(o,a)),a.type===si&&(a.el=o.el),{}.NODE_ENV!=="production"&&a.type===Fe&&!a.el&&(a.el=o.el)}}function Rf(s){const t=s.slice(),e=[0];let n,i,r,o,a;const l=s.length;for(n=0;n<l;n++){const c=s[n];if(c!==0){if(i=e[e.length-1],s[i]<c){t[n]=i,e.push(n);continue}for(r=0,o=e.length-1;r<o;)a=r+o>>1,s[e[a]]<c?r=a+1:o=a;c<s[e[r]]&&(r>0&&(t[n]=e[r-1]),e[r]=n)}}for(r=e.length,o=e[r-1];r-- >0;)e[r]=o,o=t[o];return e}function Cc(s){const t=s.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Cc(t)}const $f=s=>s.__isTeleport,zt=Symbol.for("v-fgt"),si=Symbol.for("v-txt"),Fe=Symbol.for("v-cmt"),nr=Symbol.for("v-stc"),ni=[];let ns=null;function F(s=!1){ni.push(ns=s?null:[])}function Vf(){ni.pop(),ns=ni[ni.length-1]||null}let ii=1;function Ec(s){ii+=s}function kc(s){return s.dynamicChildren=ii>0?ns||Cn:null,Vf(),ii>0&&ns&&ns.push(s),s}function X(s,t,e,n,i,r){return kc(S(s,t,e,n,i,r,!0))}function Ie(s,t,e,n,i){return kc(pt(s,t,e,n,i,!0))}function Dn(s){return s?s.__v_isVNode===!0:!1}function ri(s,t){return{}.NODE_ENV!=="production"&&t.shapeFlag&6&&Tn.has(t.type)?(s.shapeFlag&=-257,t.shapeFlag&=-513,!1):s.type===t.type&&s.key===t.key}const Lf=(...s)=>Oc(...s),Tc=({key:s})=>s??null,ir=({ref:s,ref_key:t,ref_for:e})=>(typeof s=="number"&&(s=""+s),s!=null?le(s)||Se(s)||St(s)?{i:ce,r:s,k:t,f:!!e}:s:null);function S(s,t=null,e=null,n=0,i=null,r=s===zt?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:s,props:t,key:t&&Tc(t),ref:t&&ir(t),scopeId:Wi,slotScopeIds:null,children:e,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:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ce};return a?(Ao(l,e),r&128&&s.normalize(l)):e&&(l.shapeFlag|=le(e)?8:16),{}.NODE_ENV!=="production"&&l.key!==l.key&&st("VNode created with invalid key (NaN). VNode type:",l.type),ii>0&&!o&&ns&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&ns.push(l),l}const pt={}.NODE_ENV!=="production"?Lf:Oc;function Oc(s,t=null,e=null,n=0,i=null,r=!1){if((!s||s===zd)&&({}.NODE_ENV!=="production"&&!s&&st(`Invalid vnode type when creating vnode: ${s}.`),s=Fe),Dn(s)){const a=Ys(s,t,!0);return e&&Ao(a,e),ii>0&&!r&&ns&&(a.shapeFlag&6?ns[ns.indexOf(s)]=a:ns.push(a)),a.patchFlag|=-2,a}if(Vc(s)&&(s=s.__vccOpts),t){t=Ff(t);let{class:a,style:l}=t;a&&!le(a)&&(t.class=ye(a)),Bt(l)&&(ao(l)&&!mt(l)&&(l=te({},l)),t.style=W(l))}const o=le(s)?1:Bd(s)?128:$f(s)?64:Bt(s)?4:St(s)?2:0;return{}.NODE_ENV!=="production"&&o&4&&ao(s)&&(s=Pt(s),st("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: `,s)),
|
|
21
|
+
For more details, see https://link.vuejs.org/feature-flags.`)}}const Fe=qd;function Lf(s){return Vf(s)}function Vf(s,t){$f();const e=to();e.__VUE__=!0,{}.NODE_ENV!=="production"&&ql(e.__VUE_DEVTOOLS_GLOBAL_HOOK__,e);const{insert:n,remove:i,patchProp:r,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:f,setScopeId:d=he,insertStaticContent:m}=s,y=(v,w,D,$=null,F=null,J=null,K=void 0,B=null,Q={}.NODE_ENV!=="production"&&hn?!1:!!w.dynamicChildren)=>{if(v===w)return;v&&!ai(v,w)&&($=Le(v),qt(v,F,J,!0),v=null),w.patchFlag===-2&&(Q=!1,w.dynamicChildren=null);const{type:X,ref:rt,shapeFlag:ft}=w;switch(X){case ii:_(v,w,D,$);break;case Ge:k(v,w,D,$);break;case or:v==null?I(w,D,$,K):{}.NODE_ENV!=="production"&&M(v,w,D,K);break;case Gt:re(v,w,D,$,F,J,K,B,Q);break;default:ft&1?L(v,w,D,$,F,J,K,B,Q):ft&6?oe(v,w,D,$,F,J,K,B,Q):ft&64||ft&128?X.process(v,w,D,$,F,J,K,B,Q,We):{}.NODE_ENV!=="production"&&st("Invalid VNode type:",X,`(${typeof X})`)}rt!=null&&F&&Ro(rt,v&&v.ref,J,w||v,!w)},_=(v,w,D,$)=>{if(v==null)n(w.el=a(w.children),D,$);else{const F=w.el=v.el;w.children!==v.children&&c(F,w.children)}},k=(v,w,D,$)=>{v==null?n(w.el=l(w.children||""),D,$):w.el=v.el},I=(v,w,D,$)=>{[v.el,v.anchor]=m(v.children,w,D,$,v.el,v.anchor)},M=(v,w,D,$)=>{if(w.children!==v.children){const F=f(v.anchor);tt(v),[w.el,w.anchor]=m(w.children,D,F,$)}else w.el=v.el,w.anchor=v.anchor},E=({el:v,anchor:w},D,$)=>{let F;for(;v&&v!==w;)F=f(v),n(v,D,$),v=F;n(w,D,$)},tt=({el:v,anchor:w})=>{let D;for(;v&&v!==w;)D=f(v),i(v),v=D;i(w)},L=(v,w,D,$,F,J,K,B,Q)=>{w.type==="svg"?K="svg":w.type==="math"&&(K="mathml"),v==null?W(w,D,$,F,J,K,B,Q):Ct(v,w,F,J,K,B,Q)},W=(v,w,D,$,F,J,K,B)=>{let Q,X;const{props:rt,shapeFlag:ft,transition:ht,dirs:_t}=v;if(Q=v.el=o(v.type,J,rt&&rt.is,rt),ft&8?u(Q,v.children):ft&16&&bt(v.children,Q,null,$,F,$o(v,J),K,B),_t&&gn(v,null,$,"created"),vt(Q,v,v.scopeId,K,$),rt){for(const Ft in rt)Ft!=="value"&&!Hn(Ft)&&r(Q,Ft,null,rt[Ft],J,v.children,$,F,Mt);"value"in rt&&r(Q,"value",null,rt.value,J),(X=rt.onVnodeBeforeMount)&&ps(X,$,v)}({}).NODE_ENV!=="production"&&(Object.defineProperty(Q,"__vnode",{value:v,enumerable:!1}),Object.defineProperty(Q,"__vueParentComponent",{value:$,enumerable:!1})),_t&&gn(v,null,$,"beforeMount");const Ot=Ff(F,ht);Ot&&ht.beforeEnter(Q),n(Q,w,D),((X=rt&&rt.onVnodeMounted)||Ot||_t)&&Fe(()=>{X&&ps(X,$,v),Ot&&ht.enter(Q),_t&&gn(v,null,$,"mounted")},F)},vt=(v,w,D,$,F)=>{if(D&&d(v,D),$)for(let J=0;J<$.length;J++)d(v,$[J]);if(F){let J=F.subTree;if({}.NODE_ENV!=="production"&&J.patchFlag>0&&J.patchFlag&2048&&(J=wo(J.children)||J),w===J){const K=F.vnode;vt(v,K,K.scopeId,K.slotScopeIds,F.parent)}}},bt=(v,w,D,$,F,J,K,B,Q=0)=>{for(let X=Q;X<v.length;X++){const rt=v[X]=B?Xs(v[X]):rs(v[X]);y(null,rt,w,D,$,F,J,K,B)}},Ct=(v,w,D,$,F,J,K)=>{const B=w.el=v.el;let{patchFlag:Q,dynamicChildren:X,dirs:rt}=w;Q|=v.patchFlag&16;const ft=v.props||Ut,ht=w.props||Ut;let _t;if(D&&vn(D,!1),(_t=ht.onVnodeBeforeUpdate)&&ps(_t,D,w,v),rt&&gn(w,v,D,"beforeUpdate"),D&&vn(D,!0),{}.NODE_ENV!=="production"&&hn&&(Q=0,K=!1,X=null),X?($t(v.dynamicChildren,X,B,D,$,$o(w,F),J),{}.NODE_ENV!=="production"&&rr(v,w)):K||it(v,w,B,null,D,$,$o(w,F),J,!1),Q>0){if(Q&16)Vt(B,w,ft,ht,D,$,F);else if(Q&2&&ft.class!==ht.class&&r(B,"class",null,ht.class,F),Q&4&&r(B,"style",ft.style,ht.style,F),Q&8){const Ot=w.dynamicProps;for(let Ft=0;Ft<Ot.length;Ft++){const Xt=Ot[Ft],O=ft[Xt],C=ht[Xt];(C!==O||Xt==="value")&&r(B,Xt,O,C,F,v.children,D,$,Mt)}}Q&1&&v.children!==w.children&&u(B,w.children)}else!K&&X==null&&Vt(B,w,ft,ht,D,$,F);((_t=ht.onVnodeUpdated)||rt)&&Fe(()=>{_t&&ps(_t,D,w,v),rt&&gn(w,v,D,"updated")},$)},$t=(v,w,D,$,F,J,K)=>{for(let B=0;B<w.length;B++){const Q=v[B],X=w[B],rt=Q.el&&(Q.type===Gt||!ai(Q,X)||Q.shapeFlag&70)?h(Q.el):D;y(Q,X,rt,null,$,F,J,K,!0)}},Vt=(v,w,D,$,F,J,K)=>{if(D!==$){if(D!==Ut)for(const B in D)!Hn(B)&&!(B in $)&&r(v,B,D[B],null,K,w.children,F,J,Mt);for(const B in $){if(Hn(B))continue;const Q=$[B],X=D[B];Q!==X&&B!=="value"&&r(v,B,X,Q,K,w.children,F,J,Mt)}"value"in $&&r(v,"value",D.value,$.value,K)}},re=(v,w,D,$,F,J,K,B,Q)=>{const X=w.el=v?v.el:a(""),rt=w.anchor=v?v.anchor:a("");let{patchFlag:ft,dynamicChildren:ht,slotScopeIds:_t}=w;({}).NODE_ENV!=="production"&&(hn||ft&2048)&&(ft=0,Q=!1,ht=null),_t&&(B=B?B.concat(_t):_t),v==null?(n(X,D,$),n(rt,D,$),bt(w.children||[],D,rt,F,J,K,B,Q)):ft>0&&ft&64&&ht&&v.dynamicChildren?($t(v.dynamicChildren,ht,D,F,J,K,B),{}.NODE_ENV!=="production"?rr(v,w):(w.key!=null||F&&w===F.subTree)&&rr(v,w,!0)):it(v,w,D,rt,F,J,K,B,Q)},oe=(v,w,D,$,F,J,K,B,Q)=>{w.slotScopeIds=B,v==null?w.shapeFlag&512?F.ctx.activate(w,D,$,K,Q):me(w,D,$,F,J,K,Q):Ht(v,w,Q)},me=(v,w,D,$,F,J,K)=>{const B=v.component=Uf(v,$,F);if({}.NODE_ENV!=="production"&&B.type.__hmrId&&Od(B),{}.NODE_ENV!=="production"&&(Ui(v),Os(B,"mount")),ko(v)&&(B.ctx.renderer=We),{}.NODE_ENV!=="production"&&Os(B,"init"),qf(B),{}.NODE_ENV!=="production"&&Ps(B,"init"),B.asyncDep){if(F&&F.registerDep(B,xt),!v.el){const Q=B.subTree=pt(Ge);k(null,Q,w,D)}}else xt(B,v,w,D,F,J,K);({}).NODE_ENV!=="production"&&(Wi(),Ps(B,"mount"))},Ht=(v,w,D)=>{const $=w.component=v.component;if(jd(v,w,D))if($.asyncDep&&!$.asyncResolved){({}).NODE_ENV!=="production"&&Ui(w),wt($,w,D),{}.NODE_ENV!=="production"&&Wi();return}else $.next=w,Ed($.update),$.effect.dirty=!0,$.update();else w.el=v.el,$.vnode=w},xt=(v,w,D,$,F,J,K)=>{const B=()=>{if(v.isMounted){let{next:rt,bu:ft,u:ht,parent:_t,vnode:Ot}=v;{const S=Pc(v);if(S){rt&&(rt.el=Ot.el,wt(v,rt,K)),S.asyncDep.then(()=>{v.isUnmounted||B()});return}}let Ft=rt,Xt;({}).NODE_ENV!=="production"&&Ui(rt||v.vnode),vn(v,!1),rt?(rt.el=Ot.el,wt(v,rt,K)):rt=Ot,ft&&Xn(ft),(Xt=rt.props&&rt.props.onVnodeBeforeUpdate)&&ps(Xt,_t,rt,Ot),vn(v,!0),{}.NODE_ENV!=="production"&&Os(v,"render");const O=xo(v);({}).NODE_ENV!=="production"&&Ps(v,"render");const C=v.subTree;v.subTree=O,{}.NODE_ENV!=="production"&&Os(v,"patch"),y(C,O,h(C.el),Le(C),v,F,J),{}.NODE_ENV!=="production"&&Ps(v,"patch"),rt.el=O.el,Ft===null&&Yd(v,O.el),ht&&Fe(ht,F),(Xt=rt.props&&rt.props.onVnodeUpdated)&&Fe(()=>ps(Xt,_t,rt,Ot),F),{}.NODE_ENV!=="production"&&Zl(v),{}.NODE_ENV!=="production"&&Wi()}else{let rt;const{el:ft,props:ht}=w,{bm:_t,m:Ot,parent:Ft}=v,Xt=ti(w);if(vn(v,!1),_t&&Xn(_t),!Xt&&(rt=ht&&ht.onVnodeBeforeMount)&&ps(rt,Ft,w),vn(v,!0),ft&&ls){const O=()=>{({}).NODE_ENV!=="production"&&Os(v,"render"),v.subTree=xo(v),{}.NODE_ENV!=="production"&&Ps(v,"render"),{}.NODE_ENV!=="production"&&Os(v,"hydrate"),ls(ft,v.subTree,v,F,null),{}.NODE_ENV!=="production"&&Ps(v,"hydrate")};Xt?w.type.__asyncLoader().then(()=>!v.isUnmounted&&O()):O()}else{({}).NODE_ENV!=="production"&&Os(v,"render");const O=v.subTree=xo(v);({}).NODE_ENV!=="production"&&Ps(v,"render"),{}.NODE_ENV!=="production"&&Os(v,"patch"),y(null,O,D,$,v,F,J),{}.NODE_ENV!=="production"&&Ps(v,"patch"),w.el=O.el}if(Ot&&Fe(Ot,F),!Xt&&(rt=ht&&ht.onVnodeMounted)){const O=w;Fe(()=>ps(rt,Ft,O),F)}(w.shapeFlag&256||Ft&&ti(Ft.vnode)&&Ft.vnode.shapeFlag&256)&&v.a&&Fe(v.a,F),v.isMounted=!0,{}.NODE_ENV!=="production"&&Ad(v),w=D=$=null}},Q=v.effect=new so(B,he,()=>qi(X),v.scope),X=v.update=()=>{Q.dirty&&Q.run()};X.id=v.uid,vn(v,!0),{}.NODE_ENV!=="production"&&(Q.onTrack=v.rtc?rt=>Xn(v.rtc,rt):void 0,Q.onTrigger=v.rtg?rt=>Xn(v.rtg,rt):void 0,X.ownerInstance=v),X()},wt=(v,w,D)=>{w.component=v;const $=v.vnode.props;v.vnode=w,v.next=null,Tf(v,w.props,$,D),Rf(v,w.children,D),xs(),Yl(v),ws()},it=(v,w,D,$,F,J,K,B,Q=!1)=>{const X=v&&v.children,rt=v?v.shapeFlag:0,ft=w.children,{patchFlag:ht,shapeFlag:_t}=w;if(ht>0){if(ht&128){kt(X,ft,D,$,F,J,K,B,Q);return}else if(ht&256){q(X,ft,D,$,F,J,K,B,Q);return}}_t&8?(rt&16&&Mt(X,F,J),ft!==X&&u(D,ft)):rt&16?_t&16?kt(X,ft,D,$,F,J,K,B,Q):Mt(X,F,J,!0):(rt&8&&u(D,""),_t&16&&bt(ft,D,$,F,J,K,B,Q))},q=(v,w,D,$,F,J,K,B,Q)=>{v=v||Tn,w=w||Tn;const X=v.length,rt=w.length,ft=Math.min(X,rt);let ht;for(ht=0;ht<ft;ht++){const _t=w[ht]=Q?Xs(w[ht]):rs(w[ht]);y(v[ht],_t,D,null,F,J,K,B,Q)}X>rt?Mt(v,F,J,!0,!1,ft):bt(w,D,$,F,J,K,B,Q,ft)},kt=(v,w,D,$,F,J,K,B,Q)=>{let X=0;const rt=w.length;let ft=v.length-1,ht=rt-1;for(;X<=ft&&X<=ht;){const _t=v[X],Ot=w[X]=Q?Xs(w[X]):rs(w[X]);if(ai(_t,Ot))y(_t,Ot,D,null,F,J,K,B,Q);else break;X++}for(;X<=ft&&X<=ht;){const _t=v[ft],Ot=w[ht]=Q?Xs(w[ht]):rs(w[ht]);if(ai(_t,Ot))y(_t,Ot,D,null,F,J,K,B,Q);else break;ft--,ht--}if(X>ft){if(X<=ht){const _t=ht+1,Ot=_t<rt?w[_t].el:$;for(;X<=ht;)y(null,w[X]=Q?Xs(w[X]):rs(w[X]),D,Ot,F,J,K,B,Q),X++}}else if(X>ht)for(;X<=ft;)qt(v[X],F,J,!0),X++;else{const _t=X,Ot=X,Ft=new Map;for(X=Ot;X<=ht;X++){const nt=w[X]=Q?Xs(w[X]):rs(w[X]);nt.key!=null&&({}.NODE_ENV!=="production"&&Ft.has(nt.key)&&st("Duplicate keys found during update:",JSON.stringify(nt.key),"Make sure keys are unique."),Ft.set(nt.key,X))}let Xt,O=0;const C=ht-Ot+1;let S=!1,G=0;const A=new Array(C);for(X=0;X<C;X++)A[X]=0;for(X=_t;X<=ft;X++){const nt=v[X];if(O>=C){qt(nt,F,J,!0);continue}let Y;if(nt.key!=null)Y=Ft.get(nt.key);else for(Xt=Ot;Xt<=ht;Xt++)if(A[Xt-Ot]===0&&ai(nt,w[Xt])){Y=Xt;break}Y===void 0?qt(nt,F,J,!0):(A[Y-Ot]=X+1,Y>=G?G=Y:S=!0,y(nt,w[Y],D,null,F,J,K,B,Q),O++)}const H=S?Gf(A):Tn;for(Xt=H.length-1,X=C-1;X>=0;X--){const nt=Ot+X,Y=w[nt],et=nt+1<rt?w[nt+1].el:$;A[X]===0?y(null,Y,D,et,F,J,K,B,Q):S&&(Xt<0||X!==H[Xt]?V(Y,D,et,2):Xt--)}}},V=(v,w,D,$,F=null)=>{const{el:J,type:K,transition:B,children:Q,shapeFlag:X}=v;if(X&6){V(v.component.subTree,w,D,$);return}if(X&128){v.suspense.move(w,D,$);return}if(X&64){K.move(v,w,D,We);return}if(K===Gt){n(J,w,D);for(let ft=0;ft<Q.length;ft++)V(Q[ft],w,D,$);n(v.anchor,w,D);return}if(K===or){E(v,w,D);return}if($!==2&&X&1&&B)if($===0)B.beforeEnter(J),n(J,w,D),Fe(()=>B.enter(J),F);else{const{leave:ft,delayLeave:ht,afterLeave:_t}=B,Ot=()=>n(J,w,D),Ft=()=>{ft(J,()=>{Ot(),_t&&_t()})};ht?ht(J,Ot,Ft):Ft()}else n(J,w,D)},qt=(v,w,D,$=!1,F=!1)=>{const{type:J,props:K,ref:B,children:Q,dynamicChildren:X,shapeFlag:rt,patchFlag:ft,dirs:ht}=v;if(B!=null&&Ro(B,null,D,v,!0),rt&256){w.ctx.deactivate(v);return}const _t=rt&1&&ht,Ot=!ti(v);let Ft;if(Ot&&(Ft=K&&K.onVnodeBeforeUnmount)&&ps(Ft,w,v),rt&6)$e(v.component,D,$);else{if(rt&128){v.suspense.unmount(D,$);return}_t&&gn(v,null,w,"beforeUnmount"),rt&64?v.type.remove(v,w,D,F,We,$):X&&(J!==Gt||ft>0&&ft&64)?Mt(X,w,D,!1,!0):(J===Gt&&ft&384||!F&&rt&16)&&Mt(Q,w,D),$&&_e(v)}(Ot&&(Ft=K&&K.onVnodeUnmounted)||_t)&&Fe(()=>{Ft&&ps(Ft,w,v),_t&&gn(v,null,w,"unmounted")},D)},_e=v=>{const{type:w,el:D,anchor:$,transition:F}=v;if(w===Gt){({}).NODE_ENV!=="production"&&v.patchFlag>0&&v.patchFlag&2048&&F&&!F.persisted?v.children.forEach(K=>{K.type===Ge?i(K.el):_e(K)}):Re(D,$);return}if(w===or){tt(v);return}const J=()=>{i(D),F&&!F.persisted&&F.afterLeave&&F.afterLeave()};if(v.shapeFlag&1&&F&&!F.persisted){const{leave:K,delayLeave:B}=F,Q=()=>K(D,J);B?B(v.el,J,Q):Q()}else J()},Re=(v,w)=>{let D;for(;v!==w;)D=f(v),i(v),v=D;i(w)},$e=(v,w,D)=>{({}).NODE_ENV!=="production"&&v.type.__hmrId&&Pd(v);const{bum:$,scope:F,update:J,subTree:K,um:B}=v;$&&Xn($),F.stop(),J&&(J.active=!1,qt(K,v,w,D)),B&&Fe(B,w),Fe(()=>{v.isUnmounted=!0},w),w&&w.pendingBranch&&!w.isUnmounted&&v.asyncDep&&!v.asyncResolved&&v.suspenseId===w.pendingId&&(w.deps--,w.deps===0&&w.resolve()),{}.NODE_ENV!=="production"&&$d(v)},Mt=(v,w,D,$=!1,F=!1,J=0)=>{for(let K=J;K<v.length;K++)qt(v[K],w,D,$,F)},Le=v=>v.shapeFlag&6?Le(v.component.subTree):v.shapeFlag&128?v.suspense.next():f(v.anchor||v.el);let zt=!1;const ae=(v,w,D)=>{v==null?w._vnode&&qt(w._vnode,null,null,!0):y(w._vnode||null,v,w,null,null,null,D),zt||(zt=!0,Yl(),Hl(),zt=!1),w._vnode=v},We={p:y,um:qt,m:V,r:_e,mt:me,mc:bt,pc:it,pbc:$t,n:Le,o:s};let as,ls;return t&&([as,ls]=t(We)),{render:ae,hydrate:as,createApp:Sf(ae,as)}}function $o({type:s,props:t},e){return e==="svg"&&s==="foreignObject"||e==="mathml"&&s==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:e}function vn({effect:s,update:t},e){s.allowRecurse=t.allowRecurse=e}function Ff(s,t){return(!s||s&&!s.pendingBranch)&&t&&!t.persisted}function rr(s,t,e=!1){const n=s.children,i=t.children;if(mt(n)&&mt(i))for(let r=0;r<n.length;r++){const o=n[r];let a=i[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[r]=Xs(i[r]),a.el=o.el),e||rr(o,a)),a.type===ii&&(a.el=o.el),{}.NODE_ENV!=="production"&&a.type===Ge&&!a.el&&(a.el=o.el)}}function Gf(s){const t=s.slice(),e=[0];let n,i,r,o,a;const l=s.length;for(n=0;n<l;n++){const c=s[n];if(c!==0){if(i=e[e.length-1],s[i]<c){t[n]=i,e.push(n);continue}for(r=0,o=e.length-1;r<o;)a=r+o>>1,s[e[a]]<c?r=a+1:o=a;c<s[e[r]]&&(r>0&&(t[n]=e[r-1]),e[r]=n)}}for(r=e.length,o=e[r-1];r-- >0;)e[r]=o,o=t[o];return e}function Pc(s){const t=s.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Pc(t)}const zf=s=>s.__isTeleport,Gt=Symbol.for("v-fgt"),ii=Symbol.for("v-txt"),Ge=Symbol.for("v-cmt"),or=Symbol.for("v-stc"),ri=[];let is=null;function N(s=!1){ri.push(is=s?null:[])}function Bf(){ri.pop(),is=ri[ri.length-1]||null}let oi=1;function Ic(s){oi+=s}function Dc(s){return s.dynamicChildren=oi>0?is||Tn:null,Bf(),oi>0&&is&&is.push(s),s}function j(s,t,e,n,i,r){return Dc(x(s,t,e,n,i,r,!0))}function Zt(s,t,e,n,i){return Dc(pt(s,t,e,n,i,!0))}function Dn(s){return s?s.__v_isVNode===!0:!1}function ai(s,t){return{}.NODE_ENV!=="production"&&t.shapeFlag&6&&In.has(t.type)?(s.shapeFlag&=-257,t.shapeFlag&=-513,!1):s.type===t.type&&s.key===t.key}const jf=(...s)=>Nc(...s),Mc=({key:s})=>s??null,ar=({ref:s,ref_key:t,ref_for:e})=>(typeof s=="number"&&(s=""+s),s!=null?de(s)||Te(s)||St(s)?{i:fe,r:s,k:t,f:!!e}:s:null);function x(s,t=null,e=null,n=0,i=null,r=s===Gt?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:s,props:t,key:t&&Mc(t),ref:t&&ar(t),scopeId:Ki,slotScopeIds:null,children:e,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:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:fe};return a?(Lo(l,e),r&128&&s.normalize(l)):e&&(l.shapeFlag|=de(e)?8:16),{}.NODE_ENV!=="production"&&l.key!==l.key&&st("VNode created with invalid key (NaN). VNode type:",l.type),oi>0&&!o&&is&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&is.push(l),l}const pt={}.NODE_ENV!=="production"?jf:Nc;function Nc(s,t=null,e=null,n=0,i=null,r=!1){if((!s||s===Xd)&&({}.NODE_ENV!=="production"&&!s&&st(`Invalid vnode type when creating vnode: ${s}.`),s=Ge),Dn(s)){const a=Hs(s,t,!0);return e&&Lo(a,e),oi>0&&!r&&is&&(a.shapeFlag&6?is[is.indexOf(s)]=a:is.push(a)),a.patchFlag|=-2,a}if(Bc(s)&&(s=s.__vccOpts),t){t=Yf(t);let{class:a,style:l}=t;a&&!de(a)&&(t.class=le(a)),Yt(l)&&(uo(l)&&!mt(l)&&(l=se({},l)),t.style=z(l))}const o=de(s)?1:Wd(s)?128:zf(s)?64:Yt(s)?4:St(s)?2:0;return{}.NODE_ENV!=="production"&&o&4&&uo(s)&&(s=Pt(s),st("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: `,s)),x(s,t,e,n,i,o,r,!0)}function Yf(s){return s?uo(s)||yc(s)?se({},s):s:null}function Hs(s,t,e=!1){const{props:n,ref:i,patchFlag:r,children:o}=s,a=t?Vo(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:s.type,props:a,key:a&&Mc(a),ref:t&&t.ref?e&&i?mt(i)?i.concat(ar(t)):[i,ar(t)]:ar(t):i,scopeId:s.scopeId,slotScopeIds:s.slotScopeIds,children:{}.NODE_ENV!=="production"&&r===-1&&mt(o)?o.map(Ac):o,target:s.target,targetAnchor:s.targetAnchor,staticCount:s.staticCount,shapeFlag:s.shapeFlag,patchFlag:t&&s.type!==Gt?r===-1?16:r|16:r,dynamicProps:s.dynamicProps,dynamicChildren:s.dynamicChildren,appContext:s.appContext,dirs:s.dirs,transition:s.transition,component:s.component,suspense:s.suspense,ssContent:s.ssContent&&Hs(s.ssContent),ssFallback:s.ssFallback&&Hs(s.ssFallback),el:s.el,anchor:s.anchor,ctx:s.ctx,ce:s.ce}}function Ac(s){const t=Hs(s);return mt(s.children)&&(t.children=s.children.map(Ac)),t}function Jt(s=" ",t=0){return pt(ii,null,s,t)}function Wt(s="",t=!1){return t?(N(),Zt(Ge,null,s)):pt(Ge,null,s)}function rs(s){return s==null||typeof s=="boolean"?pt(Ge):mt(s)?pt(Gt,null,s.slice()):typeof s=="object"?Xs(s):pt(ii,null,String(s))}function Xs(s){return s.el===null&&s.patchFlag!==-1||s.memo?s:Hs(s)}function Lo(s,t){let e=0;const{shapeFlag:n}=s;if(t==null)t=null;else if(mt(t))e=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),Lo(s,i()),i._c&&(i._d=!0));return}else{e=32;const i=t._;!i&&!yc(t)?t._ctx=fe:i===3&&fe&&(fe.slots._===1?t._=1:(t._=2,s.patchFlag|=1024))}else St(t)?(t={default:t,_ctx:fe},e=32):(t=String(t),n&64?(e=16,t=[Jt(t)]):e=8);s.children=t,s.shapeFlag|=e}function Vo(...s){const t={};for(let e=0;e<s.length;e++){const n=s[e];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=le([t.class,n.class]));else if(i==="style")t.style=z([t.style,n.style]);else if(Yn(i)){const r=t[i],o=n[i];o&&r!==o&&!(mt(r)&&r.includes(o))&&(t[i]=r?[].concat(r,o):o)}else i!==""&&(t[i]=n[i])}return t}function ps(s,t,e,n=null){ns(s,t,7,[e,n])}const Hf=pc();let Xf=0;function Uf(s,t,e){const n=s.type,i=(t?t.appContext:s.appContext)||Hf,r={uid:Xf++,vnode:s,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Yh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:_c(n,i),emitsOptions:Ql(n,i),emit:null,emitted:null,propsDefaults:Ut,inheritAttrs:n.inheritAttrs,ctx:Ut,data:Ut,props:Ut,attrs:Ut,slots:Ut,refs:Ut,setupState:Ut,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:e,suspenseId:e?e.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=t?t.root:r,r.emit=Gd.bind(null,r),s.ce&&s.ce(r),r}let ve=null;const Rc=()=>ve||fe;let lr,Fo;{const s=to(),t=(e,n)=>{let i;return(i=s[e])||(i=s[e]=[]),i.push(n),r=>{i.length>1?i.forEach(o=>o(r)):i[0](r)}};lr=t("__VUE_INSTANCE_SETTERS__",e=>ve=e),Fo=t("__VUE_SSR_SETTERS__",e=>cr=e)}const li=s=>{const t=ve;return lr(s),s.scope.on(),()=>{s.scope.off(),lr(t)}},$c=()=>{ve&&ve.scope.off(),lr(null)},Wf=En("slot,component");function Go(s,{isNativeTag:t}){(Wf(s)||t(s))&&st("Do not use built-in or reserved HTML elements as component id: "+s)}function Lc(s){return s.vnode.shapeFlag&4}let cr=!1;function qf(s,t=!1){t&&Fo(t);const{props:e,children:n}=s.vnode,i=Lc(s);kf(s,e,i,t),Af(s,n);const r=i?Zf(s,t):void 0;return t&&Fo(!1),r}function Zf(s,t){var e;const n=s.type;if({}.NODE_ENV!=="production"){if(n.name&&Go(n.name,s.appContext.config),n.components){const r=Object.keys(n.components);for(let o=0;o<r.length;o++)Go(r[o],s.appContext.config)}if(n.directives){const r=Object.keys(n.directives);for(let o=0;o<r.length;o++)rc(r[o])}n.compilerOptions&&Kf()&&st('"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.')}s.accessCache=Object.create(null),s.proxy=new Proxy(s.ctx,lc),{}.NODE_ENV!=="production"&&df(s);const{setup:i}=n;if(i){const r=s.setupContext=i.length>1?zc(s):null,o=li(s);xs();const a=Cs(i,s,0,[{}.NODE_ENV!=="production"?Ss(s.props):s.props,r]);if(ws(),o(),Kr(a)){if(a.then($c,$c),t)return a.then(l=>{Vc(s,l,t)}).catch(l=>{Wn(l,s,0)});if(s.asyncDep=a,{}.NODE_ENV!=="production"&&!s.suspense){const l=(e=n.name)!=null?e:"Anonymous";st(`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 Vc(s,a,t)}else Fc(s,t)}function Vc(s,t,e){St(t)?s.type.__ssrInlineRender?s.ssrRender=t:s.render=t:Yt(t)?({}.NODE_ENV!=="production"&&Dn(t)&&st("setup() should not return VNodes directly - return a render function instead."),{}.NODE_ENV!=="production"&&(s.devtoolsRawSetupState=t),s.setupState=Vl(t),{}.NODE_ENV!=="production"&&ff(s)):{}.NODE_ENV!=="production"&&t!==void 0&&st(`setup() should return an object. Received: ${t===null?"null":typeof t}`),Fc(s,e)}let zo;const Kf=()=>!zo;function Fc(s,t,e){const n=s.type;if(!s.render){if(!t&&zo&&!n.render){const i=n.template||Io(s).template;if(i){({}).NODE_ENV!=="production"&&Os(s,"compile");const{isCustomElement:r,compilerOptions:o}=s.appContext.config,{delimiters:a,compilerOptions:l}=n,c=se(se({isCustomElement:r,delimiters:a},o),l);n.render=zo(i,c),{}.NODE_ENV!=="production"&&Ps(s,"compile")}}s.render=n.render||he}{const i=li(s);xs();try{yf(s)}finally{ws(),i()}}({}).NODE_ENV!=="production"&&!n.render&&s.render===he&&!t&&(n.template?st('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".'):st("Component is missing template or render function."))}const Gc={}.NODE_ENV!=="production"?{get(s,t){return Ji(),Ee(s,"get",""),s[t]},set(){return st("setupContext.attrs is readonly."),!1},deleteProperty(){return st("setupContext.attrs is readonly."),!1}}:{get(s,t){return Ee(s,"get",""),s[t]}};function Qf(s){return s.slotsProxy||(s.slotsProxy=new Proxy(s.slots,{get(t,e){return Ee(s,"get","$slots"),t[e]}}))}function zc(s){const t=e=>{if({}.NODE_ENV!=="production"&&(s.exposed&&st("expose() should be called only once per setup()."),e!=null)){let n=typeof e;n==="object"&&(mt(e)?n="array":Te(e)&&(n="ref")),n!=="object"&&st(`expose() should be passed a plain object, received ${n}.`)}s.exposed=e||{}};if({}.NODE_ENV!=="production"){let e;return Object.freeze({get attrs(){return e||(e=new Proxy(s.attrs,Gc))},get slots(){return Qf(s)},get emit(){return(n,...i)=>s.emit(n,...i)},expose:t})}else return{attrs:new Proxy(s.attrs,Gc),slots:s.slots,emit:s.emit,expose:t}}function ur(s){if(s.exposed)return s.exposeProxy||(s.exposeProxy=new Proxy(Vl(fd(s.exposed)),{get(t,e){if(e in t)return t[e];if(e in yn)return yn[e](s)},has(t,e){return e in t||e in yn}}))}const Jf=/(?:^|[-_])(\w)/g,tp=s=>s.replace(Jf,t=>t.toUpperCase()).replace(/[-_]/g,"");function Bo(s,t=!0){return St(s)?s.displayName||s.name:s.name||t&&s.__name}function hr(s,t,e=!1){let n=Bo(t);if(!n&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(n=i[1])}if(!n&&s&&s.parent){const i=r=>{for(const o in r)if(r[o]===t)return o};n=i(s.components||s.parent.type.components)||i(s.appContext.components)}return n?tp(n):e?"App":"Anonymous"}function Bc(s){return St(s)&&"__vccOpts"in s}const ep=(s,t)=>{const e=md(s,t,cr);if({}.NODE_ENV!=="production"){const n=Rc();n&&n.appContext.config.warnRecursiveComputed&&(e._warnRecursive=!0)}return e};function ze(s,t,e){const n=arguments.length;return n===2?Yt(t)&&!mt(t)?Dn(t)?pt(s,null,[t]):pt(s,t):pt(s,null,t):(n>3?e=Array.prototype.slice.call(arguments,2):n===3&&Dn(e)&&(e=[e]),pt(s,t,e))}function sp(){if({}.NODE_ENV==="production"||typeof window>"u")return;const s={style:"color:#3ba776"},t={style:"color:#1677ff"},e={style:"color:#f5222d"},n={style:"color:#eb2f96"},i={header(h){return Yt(h)?h.__isVue?["div",s,"VueInstance"]:Te(h)?["div",{},["span",s,u(h)],"<",a(h.value),">"]:On(h)?["div",{},["span",s,cn(h)?"ShallowReactive":"Reactive"],"<",a(h),`>${ln(h)?" (readonly)":""}`]:ln(h)?["div",{},["span",s,cn(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",Pt(h.props))),h.setupState!==Ut&&f.push(o("setup",h.setupState)),h.data!==Ut&&f.push(o("data",Pt(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:n.style+";opacity:0.66"},"$ (internal): "],["object",{object:h}]]),f}function o(h,f){return f=se({},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",n,d+": "],a(f[d],!1)])]]:["span",{}]}function a(h,f=!0){return typeof h=="number"?["span",t,h]:typeof h=="string"?["span",e,JSON.stringify(h)]:typeof h=="boolean"?["span",n,h]:Yt(h)?["object",{object:f?Pt(h):h}]:["span",e,String(h)]}function l(h,f){const d=h.type;if(St(d))return;const m={};for(const y in h.ctx)c(d,y,f)&&(m[y]=h.ctx[y]);return m}function c(h,f,d){const m=h[d];if(mt(m)&&m.includes(f)||Yt(m)&&f in m||h.extends&&c(h.extends,f,d)||h.mixins&&h.mixins.some(y=>c(y,f,d)))return!0}function u(h){return cn(h)?"ShallowRef":h.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(i):window.devtoolsFormatters=[i]}const jc="3.4.25",jo={}.NODE_ENV!=="production"?st:he;/**
|
|
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
|
|
27
|
-
Expected function or array of functions, received type ${typeof s}.`),
|
|
26
|
+
**/const np="http://www.w3.org/2000/svg",ip="http://www.w3.org/1998/Math/MathML",Us=typeof document<"u"?document:null,Yc=Us&&Us.createElement("template"),rp={insert:(s,t,e)=>{t.insertBefore(s,e||null)},remove:s=>{const t=s.parentNode;t&&t.removeChild(s)},createElement:(s,t,e,n)=>{const i=t==="svg"?Us.createElementNS(np,s):t==="mathml"?Us.createElementNS(ip,s):Us.createElement(s,e?{is:e}:void 0);return s==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:s=>Us.createTextNode(s),createComment:s=>Us.createComment(s),setText:(s,t)=>{s.nodeValue=t},setElementText:(s,t)=>{s.textContent=t},parentNode:s=>s.parentNode,nextSibling:s=>s.nextSibling,querySelector:s=>Us.querySelector(s),setScopeId(s,t){s.setAttribute(t,"")},insertStaticContent(s,t,e,n,i,r){const o=e?e.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),e),!(i===r||!(i=i.nextSibling)););else{Yc.innerHTML=n==="svg"?`<svg>${s}</svg>`:n==="mathml"?`<math>${s}</math>`:s;const a=Yc.content;if(n==="svg"||n==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,e)}return[o?o.nextSibling:t.firstChild,e?e.previousSibling:t.lastChild]}},op=Symbol("_vtc");function ap(s,t,e){const n=s[op];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?s.removeAttribute("class"):e?s.setAttribute("class",t):s.className=t}const dr=Symbol("_vod"),Hc=Symbol("_vsh"),ms={beforeMount(s,{value:t},{transition:e}){s[dr]=s.style.display==="none"?"":s.style.display,e&&t?e.beforeEnter(s):ci(s,t)},mounted(s,{value:t},{transition:e}){e&&t&&e.enter(s)},updated(s,{value:t,oldValue:e},{transition:n}){!t!=!e&&(n?t?(n.beforeEnter(s),ci(s,!0),n.enter(s)):n.leave(s,()=>{ci(s,!1)}):ci(s,t))},beforeUnmount(s,{value:t}){ci(s,t)}};({}).NODE_ENV!=="production"&&(ms.name="show");function ci(s,t){s.style.display=t?s[dr]:"none",s[Hc]=!t}const lp=Symbol({}.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),cp=/(^|;)\s*display\s*:/;function up(s,t,e){const n=s.style,i=de(e);let r=!1;if(e&&!i){if(t)if(de(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();e[a]==null&&fr(n,a,"")}else for(const o in t)e[o]==null&&fr(n,o,"");for(const o in e)o==="display"&&(r=!0),fr(n,o,e[o])}else if(i){if(t!==e){const o=n[lp];o&&(e+=";"+o),n.cssText=e,r=cp.test(e)}}else t&&s.removeAttribute("style");dr in s&&(s[dr]=r?n.display:"",s[Hc]&&(n.display="none"))}const hp=/[^\\];\s*$/,Xc=/\s*!important$/;function fr(s,t,e){if(mt(e))e.forEach(n=>fr(s,t,n));else if(e==null&&(e=""),{}.NODE_ENV!=="production"&&hp.test(e)&&jo(`Unexpected semicolon at the end of '${t}' style value: '${e}'`),t.startsWith("--"))s.setProperty(t,e);else{const n=dp(s,t);Xc.test(e)?s.setProperty(Ls(n),e.replace(Xc,""),"important"):s[n]=e}}const Uc=["Webkit","Moz","ms"],Yo={};function dp(s,t){const e=Yo[t];if(e)return e;let n=us(t);if(n!=="filter"&&n in s)return Yo[t]=n;n=nn(n);for(let i=0;i<Uc.length;i++){const r=Uc[i]+n;if(r in s)return Yo[t]=r}return t}const Wc="http://www.w3.org/1999/xlink";function fp(s,t,e,n,i){if(n&&t.startsWith("xlink:"))e==null?s.removeAttributeNS(Wc,t.slice(6,t.length)):s.setAttributeNS(Wc,t,e);else{const r=jh(t);e==null||r&&!dl(e)?s.removeAttribute(t):s.setAttribute(t,r?"":e)}}function pp(s,t,e,n,i,r,o){if(t==="innerHTML"||t==="textContent"){n&&o(n,i,r),s[t]=e??"";return}const a=s.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const c=a==="OPTION"?s.getAttribute("value")||"":s.value,u=e??"";(c!==u||!("_value"in s))&&(s.value=u),e==null&&s.removeAttribute(t),s._value=e;return}let l=!1;if(e===""||e==null){const c=typeof s[t];c==="boolean"?e=dl(e):e==null&&c==="string"?(e="",l=!0):c==="number"&&(e=0,l=!0)}try{s[t]=e}catch(c){({}).NODE_ENV!=="production"&&!l&&jo(`Failed setting prop "${t}" on <${a.toLowerCase()}>: value ${e} is invalid.`,c)}l&&s.removeAttribute(t)}function mp(s,t,e,n){s.addEventListener(t,e,n)}function gp(s,t,e,n){s.removeEventListener(t,e,n)}const qc=Symbol("_vei");function yp(s,t,e,n,i=null){const r=s[qc]||(s[qc]={}),o=r[t];if(n&&o)o.value={}.NODE_ENV!=="production"?Kc(n,t):n;else{const[a,l]=vp(t);if(n){const c=r[t]=xp({}.NODE_ENV!=="production"?Kc(n,t):n,i);mp(s,a,c,l)}else o&&(gp(s,a,o,l),r[t]=void 0)}}const Zc=/(?:Once|Passive|Capture)$/;function vp(s){let t;if(Zc.test(s)){t={};let n;for(;n=s.match(Zc);)s=s.slice(0,s.length-n[0].length),t[n[0].toLowerCase()]=!0}return[s[2]===":"?s.slice(3):Ls(s.slice(2)),t]}let Ho=0;const _p=Promise.resolve(),bp=()=>Ho||(_p.then(()=>Ho=0),Ho=Date.now());function xp(s,t){const e=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=e.attached)return;ns(wp(n,e.value),t,5,[n])};return e.value=s,e.attached=bp(),e}function Kc(s,t){return St(s)||mt(s)?s:(jo(`Wrong type passed as event handler to ${t} - did you forget @ or : in front of your prop?
|
|
27
|
+
Expected function or array of functions, received type ${typeof s}.`),he)}function wp(s,t){if(mt(t)){const e=s.stopImmediatePropagation;return s.stopImmediatePropagation=()=>{e.call(s),s._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const Qc=s=>s.charCodeAt(0)===111&&s.charCodeAt(1)===110&&s.charCodeAt(2)>96&&s.charCodeAt(2)<123,Sp=(s,t,e,n,i,r,o,a,l)=>{const c=i==="svg";t==="class"?ap(s,n,c):t==="style"?up(s,e,n):Yn(t)?Ri(t)||yp(s,t,e,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Cp(s,t,n,c))?pp(s,t,n,r,o,a,l):(t==="true-value"?s._trueValue=n:t==="false-value"&&(s._falseValue=n),fp(s,t,n,c))};function Cp(s,t,e,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in s&&Qc(t)&&St(e));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&s.tagName==="INPUT"||t==="type"&&s.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=s.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Qc(t)&&de(e)?!1:t in s}const kp=se({patchProp:Sp},rp);let Jc;function Ep(){return Jc||(Jc=Lf(kp))}const pr=(...s)=>{Ep().render(...s)};/**
|
|
28
28
|
* vue v3.4.25
|
|
29
29
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
30
30
|
* @license MIT
|
|
31
|
-
**/function wp(){Kf()}({}).NODE_ENV!=="production"&&wp();const li=/^[a-z0-9]+(-[a-z0-9]+)*$/,dr=(s,t,e,n="")=>{const i=s.split(":");if(s.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;n=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]:n,prefix:l,name:a};return t&&!fr(c)?null:c}const r=i[0],o=r.split("-");if(o.length>1){const a={provider:n,prefix:o.shift(),name:o.join("-")};return t&&!fr(a)?null:a}if(e&&n===""){const a={provider:n,prefix:"",name:r};return t&&!fr(a,e)?null:a}return null},fr=(s,t)=>s?!!((s.provider===""||s.provider.match(li))&&(t&&s.prefix===""||s.prefix.match(li))&&s.name.match(li)):!1,qc=Object.freeze({left:0,top:0,width:16,height:16}),pr=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),mr=Object.freeze({...qc,...pr}),Bo=Object.freeze({...mr,body:"",hidden:!1});function Sp(s,t){const e={};!s.hFlip!=!t.hFlip&&(e.hFlip=!0),!s.vFlip!=!t.vFlip&&(e.vFlip=!0);const n=((s.rotate||0)+(t.rotate||0))%4;return n&&(e.rotate=n),e}function Zc(s,t){const e=Sp(s,t);for(const n in Bo)n in pr?n in s&&!(n in e)&&(e[n]=pr[n]):n in t?e[n]=t[n]:n in s&&(e[n]=s[n]);return e}function Cp(s,t){const e=s.icons,n=s.aliases||Object.create(null),i=Object.create(null);function r(o){if(e[o])return i[o]=[];if(!(o in i)){i[o]=null;const a=n[o]&&n[o].parent,l=a&&r(a);l&&(i[o]=[a].concat(l))}return i[o]}return(t||Object.keys(e).concat(Object.keys(n))).forEach(r),i}function Ep(s,t,e){const n=s.icons,i=s.aliases||Object.create(null);let r={};function o(a){r=Zc(n[a]||i[a],r)}return o(t),e.forEach(o),Zc(s,r)}function Kc(s,t){const e=[];if(typeof s!="object"||typeof s.icons!="object")return e;s.not_found instanceof Array&&s.not_found.forEach(i=>{t(i,null),e.push(i)});const n=Cp(s);for(const i in n){const r=n[i];r&&(t(i,Ep(s,i,r)),e.push(i))}return e}const kp={provider:"",aliases:{},not_found:{},...qc};function Yo(s,t){for(const e in t)if(e in s&&typeof s[e]!=typeof t[e])return!1;return!0}function Qc(s){if(typeof s!="object"||s===null)return null;const t=s;if(typeof t.prefix!="string"||!s.icons||typeof s.icons!="object"||!Yo(s,kp))return null;const e=t.icons;for(const i in e){const r=e[i];if(!i.match(li)||typeof r.body!="string"||!Yo(r,Bo))return null}const n=t.aliases||Object.create(null);for(const i in n){const r=n[i],o=r.parent;if(!i.match(li)||typeof o!="string"||!e[o]&&!n[o]||!Yo(r,Bo))return null}return t}const Jc=Object.create(null);function Tp(s,t){return{provider:s,prefix:t,icons:Object.create(null),missing:new Set}}function yn(s,t){const e=Jc[s]||(Jc[s]=Object.create(null));return e[t]||(e[t]=Tp(s,t))}function Xo(s,t){return Qc(t)?Kc(t,(e,n)=>{n?s.icons[e]=n:s.missing.add(e)}):[]}function Op(s,t,e){try{if(typeof e.body=="string")return s.icons[t]={...e},!0}catch{}return!1}let ci=!1;function tu(s){return typeof s=="boolean"&&(ci=s),ci}function Pp(s){const t=typeof s=="string"?dr(s,!0,ci):s;if(t){const e=yn(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}function Dp(s,t){const e=dr(s,!0,ci);if(!e)return!1;const n=yn(e.provider,e.prefix);return Op(n,e.name,t)}function Ip(s,t){if(typeof s!="object")return!1;if(typeof t!="string"&&(t=s.provider||""),ci&&!t&&!s.prefix){let i=!1;return Qc(s)&&(s.prefix="",Kc(s,(r,o)=>{o&&Dp(r,o)&&(i=!0)})),i}const e=s.prefix;if(!fr({provider:t,prefix:e,name:"a"}))return!1;const n=yn(t,e);return!!Xo(n,s)}const eu=Object.freeze({width:null,height:null}),su=Object.freeze({...eu,...pr}),Np=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Mp=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function nu(s,t,e){if(t===1)return s;if(e=e||100,typeof s=="number")return Math.ceil(s*t*e)/e;if(typeof s!="string")return s;const n=s.split(Np);if(n===null||!n.length)return s;const i=[];let r=n.shift(),o=Mp.test(r);for(;;){if(o){const a=parseFloat(r);isNaN(a)?i.push(r):i.push(Math.ceil(a*t*e)/e)}else i.push(r);if(r=n.shift(),r===void 0)return i.join("");o=!o}}function Ap(s,t="defs"){let e="";const n=s.indexOf("<"+t);for(;n>=0;){const i=s.indexOf(">",n),r=s.indexOf("</"+t);if(i===-1||r===-1)break;const o=s.indexOf(">",r);if(o===-1)break;e+=s.slice(i+1,r).trim(),s=s.slice(0,n).trim()+s.slice(o+1)}return{defs:e,content:s}}function Rp(s,t){return s?"<defs>"+s+"</defs>"+t:t}function $p(s,t,e){const n=Ap(s);return Rp(n.defs,t+n.content+e)}const Vp=s=>s==="unset"||s==="undefined"||s==="none";function Lp(s,t){const e={...mr,...s},n={...su,...t},i={left:e.left,top:e.top,width:e.width,height:e.height};let r=e.body;[e,n].forEach(v=>{const _=[],E=v.hFlip,D=v.vFlip;let N=v.rotate;E?D?N+=2:(_.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),_.push("scale(-1 1)"),i.top=i.left=0):D&&(_.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),_.push("scale(1 -1)"),i.top=i.left=0);let k;switch(N<0&&(N-=Math.floor(N/4)*4),N=N%4,N){case 1:k=i.height/2+i.top,_.unshift("rotate(90 "+k.toString()+" "+k.toString()+")");break;case 2:_.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:k=i.width/2+i.left,_.unshift("rotate(-90 "+k.toString()+" "+k.toString()+")");break}N%2===1&&(i.left!==i.top&&(k=i.left,i.left=i.top,i.top=k),i.width!==i.height&&(k=i.width,i.width=i.height,i.height=k)),_.length&&(r=$p(r,'<g transform="'+_.join(" ")+'">',"</g>"))});const o=n.width,a=n.height,l=i.width,c=i.height;let u,h;o===null?(h=a===null?"1em":a==="auto"?c:a,u=nu(h,l/c)):(u=o==="auto"?l:o,h=a===null?nu(u,c/l):a==="auto"?c:a);const f={},d=(v,_)=>{Vp(_)||(f[v]=_.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 Fp=/\sid="(\S+)"/g,Gp="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let zp=0;function jp(s,t=Gp){const e=[];let n;for(;n=Fp.exec(s);)e.push(n[1]);if(!e.length)return s;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach(r=>{const o=typeof t=="function"?t(r):t+(zp++).toString(),a=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");s=s.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+o+i+"$3")}),s=s.replace(new RegExp(i,"g"),""),s}const Ho=Object.create(null);function Bp(s,t){Ho[s]=t}function Uo(s){return Ho[s]||Ho[""]}function Wo(s){let t;if(typeof s.resources=="string")t=[s.resources];else if(t=s.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:s.path||"/",maxURL:s.maxURL||500,rotate:s.rotate||750,timeout:s.timeout||5e3,random:s.random===!0,index:s.index||0,dataAfterTimeout:s.dataAfterTimeout!==!1}}const qo=Object.create(null),ui=["https://api.simplesvg.com","https://api.unisvg.com"],gr=[];for(;ui.length>0;)ui.length===1||Math.random()>.5?gr.push(ui.shift()):gr.push(ui.pop());qo[""]=Wo({resources:["https://api.iconify.design"].concat(gr)});function Yp(s,t){const e=Wo(t);return e===null?!1:(qo[s]=e,!0)}function Zo(s){return qo[s]}let iu=(()=>{let s;try{if(s=fetch,typeof s=="function")return s}catch{}})();function Xp(s,t){const e=Zo(s);if(!e)return 0;let n;if(!e.maxURL)n=0;else{let i=0;e.resources.forEach(o=>{i=Math.max(i,o.length)});const r=t+".json?icons=";n=e.maxURL-i-e.path.length-r.length}return n}function Hp(s){return s===404}const Up=(s,t,e)=>{const n=[],i=Xp(s,t),r="icons";let o={type:r,provider:s,prefix:t,icons:[]},a=0;return e.forEach((l,c)=>{a+=l.length+1,a>=i&&c>0&&(n.push(o),o={type:r,provider:s,prefix:t,icons:[]},a=l.length),o.icons.push(l)}),n.push(o),n};function Wp(s){if(typeof s=="string"){const t=Zo(s);if(t)return t.path}return"/"}const qp={prepare:Up,send:(s,t,e)=>{if(!iu){e("abort",424);return}let n=Wp(t.provider);switch(t.type){case"icons":{const r=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});n+=r+".json?"+l.toString();break}case"custom":{const r=t.uri;n+=r.slice(0,1)==="/"?r.slice(1):r;break}default:e("abort",400);return}let i=503;iu(s+n).then(r=>{const o=r.status;if(o!==200){setTimeout(()=>{e(Hp(o)?"abort":"next",o)});return}return i=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?e("abort",r):e("next",i)});return}setTimeout(()=>{e("success",r)})}).catch(()=>{e("next",i)})}};function Zp(s){const t={loaded:[],missing:[],pending:[]},e=Object.create(null);s.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 n={provider:"",prefix:"",name:""};return s.forEach(i=>{if(n.name===i.name&&n.prefix===i.prefix&&n.provider===i.provider)return;n=i;const r=i.provider,o=i.prefix,a=i.name,l=e[r]||(e[r]=Object.create(null)),c=l[o]||(l[o]=yn(r,o));let u;a in c.icons?u=t.loaded:o===""||c.missing.has(a)?u=t.missing:u=t.pending;const h={provider:r,prefix:o,name:a};u.push(h)}),t}function ru(s,t){s.forEach(e=>{const n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter(i=>i.id!==t))})}function Kp(s){s.pendingCallbacksFlag||(s.pendingCallbacksFlag=!0,setTimeout(()=>{s.pendingCallbacksFlag=!1;const t=s.loaderCallbacks?s.loaderCallbacks.slice(0):[];if(!t.length)return;let e=!1;const n=s.provider,i=s.prefix;t.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(s.icons[c])o.loaded.push({provider:n,prefix:i,name:c});else if(s.missing.has(c))o.missing.push({provider:n,prefix:i,name:c});else return e=!0,!0;return!1}),o.pending.length!==a&&(e||ru([s],r.id),r.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),r.abort))})}))}let Qp=0;function Jp(s,t,e){const n=Qp++,i=ru.bind(null,e,n);if(!t.pending.length)return i;const r={id:n,icons:t,callback:s,abort:i};return e.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(r)}),i}function tm(s,t=!0,e=!1){const n=[];return s.forEach(i=>{const r=typeof i=="string"?dr(i,t,e):i;r&&n.push(r)}),n}var em={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sm(s,t,e,n){const i=s.resources.length,r=s.random?Math.floor(Math.random()*i):s.index;let o;if(s.random){let R=s.resources.slice(0);for(o=[];R.length>1;){const U=Math.floor(Math.random()*R.length);o.push(R[U]),R=R.slice(0,U).concat(R.slice(U+1))}o=o.concat(R)}else o=s.resources.slice(r).concat(s.resources.slice(0,r));const a=Date.now();let l="pending",c=0,u,h=null,f=[],d=[];typeof n=="function"&&d.push(n);function m(){h&&(clearTimeout(h),h=null)}function v(){l==="pending"&&(l="aborted"),m(),f.forEach(R=>{R.status==="pending"&&(R.status="aborted")}),f=[]}function _(R,U){U&&(d=[]),typeof R=="function"&&d.push(R)}function E(){return{startTime:a,payload:t,status:l,queriesSent:c,queriesPending:f.length,subscribe:_,abort:v}}function D(){l="failed",d.forEach(R=>{R(void 0,u)})}function N(){f.forEach(R=>{R.status==="pending"&&(R.status="aborted")}),f=[]}function k(R,U,vt){const bt=U!=="success";switch(f=f.filter(Ct=>Ct!==R),l){case"pending":break;case"failed":if(bt||!s.dataAfterTimeout)return;break;default:return}if(U==="abort"){u=vt,D();return}if(bt){u=vt,f.length||(o.length?tt():D());return}if(m(),N(),!s.random){const Ct=s.resources.indexOf(R.resource);Ct!==-1&&Ct!==s.index&&(s.index=Ct)}l="completed",d.forEach(Ct=>{Ct(vt)})}function tt(){if(l!=="pending")return;m();const R=o.shift();if(R===void 0){if(f.length){h=setTimeout(()=>{m(),l==="pending"&&(N(),D())},s.timeout);return}D();return}const U={status:"pending",resource:R,callback:(vt,bt)=>{k(U,vt,bt)}};f.push(U),c++,h=setTimeout(tt,s.rotate),e(R,t,U.callback)}return setTimeout(tt),E}function ou(s){const t={...em,...s};let e=[];function n(){e=e.filter(a=>a().status==="pending")}function i(a,l,c){const u=sm(t,a,l,(h,f)=>{n(),c&&c(h,f)});return e.push(u),u}function r(a){return e.find(l=>a(l))||null}return{query:i,find:r,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:n}}function au(){}const Ko=Object.create(null);function nm(s){if(!Ko[s]){const t=Zo(s);if(!t)return;const e=ou(t),n={config:t,redundancy:e};Ko[s]=n}return Ko[s]}function im(s,t,e){let n,i;if(typeof s=="string"){const r=Uo(s);if(!r)return e(void 0,424),au;i=r.send;const o=nm(s);o&&(n=o.redundancy)}else{const r=Wo(s);if(r){n=ou(r);const o=s.resources?s.resources[0]:"",a=Uo(o);a&&(i=a.send)}}return!n||!i?(e(void 0,424),au):n.query(t,i,e)().abort}const lu="iconify2",hi="iconify",cu=hi+"-count",uu=hi+"-version",hu=36e5,rm=168,om=50;function Qo(s,t){try{return s.getItem(t)}catch{}}function Jo(s,t,e){try{return s.setItem(t,e),!0}catch{}}function du(s,t){try{s.removeItem(t)}catch{}}function ta(s,t){return Jo(s,cu,t.toString())}function ea(s){return parseInt(Qo(s,cu))||0}const yr={local:!0,session:!0},fu={local:new Set,session:new Set};let sa=!1;function am(s){sa=s}let vr=typeof window>"u"?{}:window;function pu(s){const t=s+"Storage";try{if(vr&&vr[t]&&typeof vr[t].length=="number")return vr[t]}catch{}yr[s]=!1}function mu(s,t){const e=pu(s);if(!e)return;const n=Qo(e,uu);if(n!==lu){if(n){const a=ea(e);for(let l=0;l<a;l++)du(e,hi+l.toString())}Jo(e,uu,lu),ta(e,0);return}const i=Math.floor(Date.now()/hu)-rm,r=a=>{const l=hi+a.toString(),c=Qo(e,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"&&t(u,a))return!0}catch{}du(e,l)}};let o=ea(e);for(let a=o-1;a>=0;a--)r(a)||(a===o-1?(o--,ta(e,o)):fu[s].add(a))}function gu(){if(!sa){am(!0);for(const s in yr)mu(s,t=>{const e=t.data,n=t.provider,i=e.prefix,r=yn(n,i);if(!Xo(r,e).length)return!1;const o=e.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,o):o,!0})}}function lm(s,t){const e=s.lastModifiedCached;if(e&&e>=t)return e===t;if(s.lastModifiedCached=t,e)for(const n in yr)mu(n,i=>{const r=i.data;return i.provider!==s.provider||r.prefix!==s.prefix||r.lastModified===t});return!0}function cm(s,t){sa||gu();function e(n){let i;if(!yr[n]||!(i=pu(n)))return;const r=fu[n];let o;if(r.size)r.delete(o=Array.from(r).shift());else if(o=ea(i),o>=om||!ta(i,o+1))return;const a={cached:Math.floor(Date.now()/hu),provider:s.provider,data:t};return Jo(i,hi+o.toString(),JSON.stringify(a))}t.lastModified&&!lm(s,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),e("local")||e("session"))}function yu(){}function um(s){s.iconsLoaderFlag||(s.iconsLoaderFlag=!0,setTimeout(()=>{s.iconsLoaderFlag=!1,Kp(s)}))}function hm(s,t){s.iconsToLoad?s.iconsToLoad=s.iconsToLoad.concat(t).sort():s.iconsToLoad=t,s.iconsQueueFlag||(s.iconsQueueFlag=!0,setTimeout(()=>{s.iconsQueueFlag=!1;const{provider:e,prefix:n}=s,i=s.iconsToLoad;delete s.iconsToLoad;let r;if(!i||!(r=Uo(e)))return;r.prepare(e,n,i).forEach(a=>{im(e,a,l=>{if(typeof l!="object")a.icons.forEach(c=>{s.missing.add(c)});else try{const c=Xo(s,l);if(!c.length)return;const u=s.pendingIcons;u&&c.forEach(h=>{u.delete(h)}),cm(s,l)}catch(c){console.error(c)}um(s)})})}))}const dm=(s,t)=>{const e=tm(s,!0,tu()),n=Zp(e);if(!n.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(n.loaded,n.missing,n.pending,yu)}),()=>{l=!1}}const i=Object.create(null),r=[];let o,a;return n.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===a&&c===o)return;o=c,a=u,r.push(yn(c,u));const h=i[c]||(i[c]=Object.create(null));h[u]||(h[u]=[])}),n.pending.forEach(l=>{const{provider:c,prefix:u,name:h}=l,f=yn(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&&hm(l,i[c][u])}),t?Jp(t,n,r):yu};function fm(s,t){const e={...s};for(const n in t){const i=t[n],r=typeof i;n in eu?(i===null||i&&(r==="string"||r==="number"))&&(e[n]=i):r===typeof e[n]&&(e[n]=n==="rotate"?i%4:i)}return e}const pm=/[\s,]+/;function mm(s,t){t.split(pm).forEach(e=>{switch(e.trim()){case"horizontal":s.hFlip=!0;break;case"vertical":s.vFlip=!0;break}})}function gm(s,t=0){const e=s.replace(/^-?[0-9.]*/,"");function n(i){for(;i<0;)i+=4;return i%4}if(e===""){const i=parseInt(s);return isNaN(i)?0:n(i)}else if(e!==s){let i=0;switch(e){case"%":i=25;break;case"deg":i=90}if(i){let r=parseFloat(s.slice(0,s.length-e.length));return isNaN(r)?0:(r=r/i,r%1===0?n(r):0)}}return t}function ym(s,t){let e=s.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)e+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+e+">"+s+"</svg>"}function vm(s){return s.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function _m(s){return"data:image/svg+xml,"+vm(s)}function bm(s){return'url("'+_m(s)+'")'}const vu={...su,inline:!1},xm={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},wm={display:"inline-block"},na={backgroundColor:"currentColor"},_u={backgroundColor:"transparent"},bu={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},xu={webkitMask:na,mask:na,background:_u};for(const s in xu){const t=xu[s];for(const e in bu)t[s+e]=bu[e]}const _r={};["horizontal","vertical"].forEach(s=>{const t=s.slice(0,1)+"Flip";_r[s+"-flip"]=t,_r[s.slice(0,1)+"-flip"]=t,_r[s+"Flip"]=t});function wu(s){return s+(s.match(/^[-0-9.]+$/)?"px":"")}const Su=(s,t)=>{const e=fm(vu,t),n={...xm},i=t.mode||"svg",r={},o=t.style,a=typeof o=="object"&&!(o instanceof Array)?o:{};for(let v in t){const _=t[v];if(_!==void 0)switch(v){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":e[v]=_===!0||_==="true"||_===1;break;case"flip":typeof _=="string"&&mm(e,_);break;case"color":r.color=_;break;case"rotate":typeof _=="string"?e[v]=gm(_):typeof _=="number"&&(e[v]=_);break;case"ariaHidden":case"aria-hidden":_!==!0&&_!=="true"&&delete n["aria-hidden"];break;default:{const E=_r[v];E?(_===!0||_==="true"||_===1)&&(e[E]=!0):vu[v]===void 0&&(n[v]=_)}}}const l=Lp(s,e),c=l.attributes;if(e.inline&&(r.verticalAlign="-0.125em"),i==="svg"){n.style={...r,...a},Object.assign(n,c);let v=0,_=t.id;return typeof _=="string"&&(_=_.replace(/-/g,"_")),n.innerHTML=jp(l.body,_?()=>_+"ID"+v++:"iconifyVue"),Ge("svg",n)}const{body:u,width:h,height:f}=s,d=i==="mask"||(i==="bg"?!1:u.indexOf("currentColor")!==-1),m=ym(u,{...c,width:h+"",height:f+""});return n.style={...r,"--svg":bm(m),width:wu(c.width),height:wu(c.height),...wm,...d?na:_u,...a},Ge("span",n)};if(tu(!0),Bp("",qp),typeof document<"u"&&typeof window<"u"){gu();const s=window;if(s.IconifyPreload!==void 0){const t=s.IconifyPreload,e="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!Ip(n))&&console.error(e)}catch{console.error(e)}})}if(s.IconifyProviders!==void 0){const t=s.IconifyProviders;if(typeof t=="object"&&t!==null)for(let e in t){const n="IconifyProviders["+e+"] is invalid.";try{const i=t[e];if(typeof i!="object"||!i||i.resources===void 0)continue;Yp(e,i)||console.error(n)}catch{console.error(n)}}}}const Sm={...mr,body:""},Cm=lt({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(s,t){if(typeof s=="object"&&s!==null&&typeof s.body=="string")return this._name="",this.abortLoading(),{data:s};let e;if(typeof s!="string"||(e=dr(s,!1,!0))===null)return this.abortLoading(),null;const n=Pp(e);if(!n)return(!this._loadingIcon||this._loadingIcon.name!==s)&&(this.abortLoading(),this._name="",n!==null&&(this._loadingIcon={name:s,abort:dm([e],()=>{this.counter++})})),null;this.abortLoading(),this._name!==s&&(this._name=s,t&&t(s));const i=["iconify"];return e.prefix!==""&&i.push("iconify--"+e.prefix),e.provider!==""&&i.push("iconify--"+e.provider),{data:n,classes:i}}},render(){this.counter;const s=this.$attrs,t=this.iconMounted||s.ssr?this.getIcon(s.icon,s.onLoad):null;if(!t)return Su(Sm,s);let e=s;return t.classes&&(e={...s,class:(typeof s.class=="string"?s.class+" ":"")+t.classes.join(" ")}),Su({...mr,...t.data},e)}});function Cu(){return typeof window<"u"?window:typeof global<"u"?global:this||{}}typeof process<"u"&&process.versions!=null&&process.versions.node!=null;function Eu(s){this.message=s}Eu.prototype=new Error,Eu.prototype.name="InvalidCharacterError";class ia{maps=new Map;mapsAddedDuringUpdate=new Map;constructor(){}entries(){return Array.from(this.maps.entries())}keys(){return Array.from(this.maps.keys())}values(){return Array.from(this.maps.values())}get length(){return this.entries().length}set(t,e){this.maps.set(t,e),this.mapsAddedDuringUpdate.set(t,e)}get(t){return this.maps.get(t)}shift(){const t=this.entries();if(t.length){const[e,n]=t[0];return this.delete(e),n}}delete(t){return this.mapsAddedDuringUpdate.delete(t),this.maps.delete(t)}deleteAll(){this.maps=new Map,this.mapsAddedDuringUpdate=new Map}filter(t){let e=this.entries();for(;e.length>0;){this.mapsAddedDuringUpdate=new Map;for(let n=0,i=e.length;n<i;n++){const[r,o]=e[n];t(r,o)===!1&&this.delete(r)}e=Array.from(this.mapsAddedDuringUpdate.entries())}}}const In=new ia,ra=s=>{let t=null;switch(s){case"any-character":t=/[^]/;break;case"bin":t=/^(0b)?[0-1]+$/;break;case"oct":t=/^(0o)?[0-7]+$/i;break;case"hex":t=/^(0x)?[0-9a-fA-F]+$/i;break;case"ascii":t=/^[\x00-\xFF]+$/i;break;case"int":t=/^[-+]?[0-9]+$/;break;case"number":t=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;break;case"number-single":t=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/i;break;case"split":t=/\s*,\s*/gi;break;case"svg-segment":t=/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi;break;case"mobile-china":t=/^\+[1-9]{1}[0-9]{10}$/g;break;case"phone-number":t=/^[+]?[(]?[0-9]{3}[)]?[-\s.]?[0-9]{3}[-\s.]?[0-9]{4,6}$/gi;break;case"email":t=/^[A-Za-z0-9_!#$%&'*+/=?`{|}~^.-]+@[A-Za-z0-9._-]+$/gm;break;case"ip":t=/^((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"url":t=/^http[s]?:\/\/([\w-]+\.)+[\w-]+([\w-./?%&=]*)?$/;break;case"date":t=/^\d{4}(\-|\/|\.)(\d{1,2})(\-|\/|\.)(\d{1,2})$/;break;case"whitespace":t=/[\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":t=/[\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":t=/^\s+|\s+$/g;break;case"base64-data":t=/^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([a-z0-9!$&',()*+;=\-._~:@/?%\s]*?)\s*$/i;break;case"var-name":t=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/;break;case"element-url":t=/^url\(['"]?(.+?)['"]?\)$/i;break;case"hex-color":t=/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;break;case"color":t=/^\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":t=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/;break;case"chinese-name":t=/^(?:[\u4e00-\u9fa5·]{2,16})$/;break;case"chinese":t=new RegExp(String.raw`
|
|
31
|
+
**/function Tp(){sp()}({}).NODE_ENV!=="production"&&Tp();const ui=/^[a-z0-9]+(-[a-z0-9]+)*$/,mr=(s,t,e,n="")=>{const i=s.split(":");if(s.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;n=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]:n,prefix:l,name:a};return t&&!gr(c)?null:c}const r=i[0],o=r.split("-");if(o.length>1){const a={provider:n,prefix:o.shift(),name:o.join("-")};return t&&!gr(a)?null:a}if(e&&n===""){const a={provider:n,prefix:"",name:r};return t&&!gr(a,e)?null:a}return null},gr=(s,t)=>s?!!((s.provider===""||s.provider.match(ui))&&(t&&s.prefix===""||s.prefix.match(ui))&&s.name.match(ui)):!1,tu=Object.freeze({left:0,top:0,width:16,height:16}),yr=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),vr=Object.freeze({...tu,...yr}),Xo=Object.freeze({...vr,body:"",hidden:!1});function Op(s,t){const e={};!s.hFlip!=!t.hFlip&&(e.hFlip=!0),!s.vFlip!=!t.vFlip&&(e.vFlip=!0);const n=((s.rotate||0)+(t.rotate||0))%4;return n&&(e.rotate=n),e}function eu(s,t){const e=Op(s,t);for(const n in Xo)n in yr?n in s&&!(n in e)&&(e[n]=yr[n]):n in t?e[n]=t[n]:n in s&&(e[n]=s[n]);return e}function Pp(s,t){const e=s.icons,n=s.aliases||Object.create(null),i=Object.create(null);function r(o){if(e[o])return i[o]=[];if(!(o in i)){i[o]=null;const a=n[o]&&n[o].parent,l=a&&r(a);l&&(i[o]=[a].concat(l))}return i[o]}return(t||Object.keys(e).concat(Object.keys(n))).forEach(r),i}function Ip(s,t,e){const n=s.icons,i=s.aliases||Object.create(null);let r={};function o(a){r=eu(n[a]||i[a],r)}return o(t),e.forEach(o),eu(s,r)}function su(s,t){const e=[];if(typeof s!="object"||typeof s.icons!="object")return e;s.not_found instanceof Array&&s.not_found.forEach(i=>{t(i,null),e.push(i)});const n=Pp(s);for(const i in n){const r=n[i];r&&(t(i,Ip(s,i,r)),e.push(i))}return e}const Dp={provider:"",aliases:{},not_found:{},...tu};function Uo(s,t){for(const e in t)if(e in s&&typeof s[e]!=typeof t[e])return!1;return!0}function nu(s){if(typeof s!="object"||s===null)return null;const t=s;if(typeof t.prefix!="string"||!s.icons||typeof s.icons!="object"||!Uo(s,Dp))return null;const e=t.icons;for(const i in e){const r=e[i];if(!i.match(ui)||typeof r.body!="string"||!Uo(r,Xo))return null}const n=t.aliases||Object.create(null);for(const i in n){const r=n[i],o=r.parent;if(!i.match(ui)||typeof o!="string"||!e[o]&&!n[o]||!Uo(r,Xo))return null}return t}const iu=Object.create(null);function Mp(s,t){return{provider:s,prefix:t,icons:Object.create(null),missing:new Set}}function _n(s,t){const e=iu[s]||(iu[s]=Object.create(null));return e[t]||(e[t]=Mp(s,t))}function Wo(s,t){return nu(t)?su(t,(e,n)=>{n?s.icons[e]=n:s.missing.add(e)}):[]}function Np(s,t,e){try{if(typeof e.body=="string")return s.icons[t]={...e},!0}catch{}return!1}let hi=!1;function ru(s){return typeof s=="boolean"&&(hi=s),hi}function Ap(s){const t=typeof s=="string"?mr(s,!0,hi):s;if(t){const e=_n(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}function Rp(s,t){const e=mr(s,!0,hi);if(!e)return!1;const n=_n(e.provider,e.prefix);return Np(n,e.name,t)}function $p(s,t){if(typeof s!="object")return!1;if(typeof t!="string"&&(t=s.provider||""),hi&&!t&&!s.prefix){let i=!1;return nu(s)&&(s.prefix="",su(s,(r,o)=>{o&&Rp(r,o)&&(i=!0)})),i}const e=s.prefix;if(!gr({provider:t,prefix:e,name:"a"}))return!1;const n=_n(t,e);return!!Wo(n,s)}const ou=Object.freeze({width:null,height:null}),au=Object.freeze({...ou,...yr}),Lp=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Vp=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function lu(s,t,e){if(t===1)return s;if(e=e||100,typeof s=="number")return Math.ceil(s*t*e)/e;if(typeof s!="string")return s;const n=s.split(Lp);if(n===null||!n.length)return s;const i=[];let r=n.shift(),o=Vp.test(r);for(;;){if(o){const a=parseFloat(r);isNaN(a)?i.push(r):i.push(Math.ceil(a*t*e)/e)}else i.push(r);if(r=n.shift(),r===void 0)return i.join("");o=!o}}function Fp(s,t="defs"){let e="";const n=s.indexOf("<"+t);for(;n>=0;){const i=s.indexOf(">",n),r=s.indexOf("</"+t);if(i===-1||r===-1)break;const o=s.indexOf(">",r);if(o===-1)break;e+=s.slice(i+1,r).trim(),s=s.slice(0,n).trim()+s.slice(o+1)}return{defs:e,content:s}}function Gp(s,t){return s?"<defs>"+s+"</defs>"+t:t}function zp(s,t,e){const n=Fp(s);return Gp(n.defs,t+n.content+e)}const Bp=s=>s==="unset"||s==="undefined"||s==="none";function jp(s,t){const e={...vr,...s},n={...au,...t},i={left:e.left,top:e.top,width:e.width,height:e.height};let r=e.body;[e,n].forEach(y=>{const _=[],k=y.hFlip,I=y.vFlip;let M=y.rotate;k?I?M+=2:(_.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),_.push("scale(-1 1)"),i.top=i.left=0):I&&(_.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),_.push("scale(1 -1)"),i.top=i.left=0);let E;switch(M<0&&(M-=Math.floor(M/4)*4),M=M%4,M){case 1:E=i.height/2+i.top,_.unshift("rotate(90 "+E.toString()+" "+E.toString()+")");break;case 2:_.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:E=i.width/2+i.left,_.unshift("rotate(-90 "+E.toString()+" "+E.toString()+")");break}M%2===1&&(i.left!==i.top&&(E=i.left,i.left=i.top,i.top=E),i.width!==i.height&&(E=i.width,i.width=i.height,i.height=E)),_.length&&(r=zp(r,'<g transform="'+_.join(" ")+'">',"</g>"))});const o=n.width,a=n.height,l=i.width,c=i.height;let u,h;o===null?(h=a===null?"1em":a==="auto"?c:a,u=lu(h,l/c)):(u=o==="auto"?l:o,h=a===null?lu(u,c/l):a==="auto"?c:a);const f={},d=(y,_)=>{Bp(_)||(f[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 Yp=/\sid="(\S+)"/g,Hp="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Xp=0;function Up(s,t=Hp){const e=[];let n;for(;n=Yp.exec(s);)e.push(n[1]);if(!e.length)return s;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach(r=>{const o=typeof t=="function"?t(r):t+(Xp++).toString(),a=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");s=s.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+o+i+"$3")}),s=s.replace(new RegExp(i,"g"),""),s}const qo=Object.create(null);function Wp(s,t){qo[s]=t}function Zo(s){return qo[s]||qo[""]}function Ko(s){let t;if(typeof s.resources=="string")t=[s.resources];else if(t=s.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:s.path||"/",maxURL:s.maxURL||500,rotate:s.rotate||750,timeout:s.timeout||5e3,random:s.random===!0,index:s.index||0,dataAfterTimeout:s.dataAfterTimeout!==!1}}const Qo=Object.create(null),di=["https://api.simplesvg.com","https://api.unisvg.com"],_r=[];for(;di.length>0;)di.length===1||Math.random()>.5?_r.push(di.shift()):_r.push(di.pop());Qo[""]=Ko({resources:["https://api.iconify.design"].concat(_r)});function qp(s,t){const e=Ko(t);return e===null?!1:(Qo[s]=e,!0)}function Jo(s){return Qo[s]}let cu=(()=>{let s;try{if(s=fetch,typeof s=="function")return s}catch{}})();function Zp(s,t){const e=Jo(s);if(!e)return 0;let n;if(!e.maxURL)n=0;else{let i=0;e.resources.forEach(o=>{i=Math.max(i,o.length)});const r=t+".json?icons=";n=e.maxURL-i-e.path.length-r.length}return n}function Kp(s){return s===404}const Qp=(s,t,e)=>{const n=[],i=Zp(s,t),r="icons";let o={type:r,provider:s,prefix:t,icons:[]},a=0;return e.forEach((l,c)=>{a+=l.length+1,a>=i&&c>0&&(n.push(o),o={type:r,provider:s,prefix:t,icons:[]},a=l.length),o.icons.push(l)}),n.push(o),n};function Jp(s){if(typeof s=="string"){const t=Jo(s);if(t)return t.path}return"/"}const tm={prepare:Qp,send:(s,t,e)=>{if(!cu){e("abort",424);return}let n=Jp(t.provider);switch(t.type){case"icons":{const r=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});n+=r+".json?"+l.toString();break}case"custom":{const r=t.uri;n+=r.slice(0,1)==="/"?r.slice(1):r;break}default:e("abort",400);return}let i=503;cu(s+n).then(r=>{const o=r.status;if(o!==200){setTimeout(()=>{e(Kp(o)?"abort":"next",o)});return}return i=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?e("abort",r):e("next",i)});return}setTimeout(()=>{e("success",r)})}).catch(()=>{e("next",i)})}};function em(s){const t={loaded:[],missing:[],pending:[]},e=Object.create(null);s.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 n={provider:"",prefix:"",name:""};return s.forEach(i=>{if(n.name===i.name&&n.prefix===i.prefix&&n.provider===i.provider)return;n=i;const r=i.provider,o=i.prefix,a=i.name,l=e[r]||(e[r]=Object.create(null)),c=l[o]||(l[o]=_n(r,o));let u;a in c.icons?u=t.loaded:o===""||c.missing.has(a)?u=t.missing:u=t.pending;const h={provider:r,prefix:o,name:a};u.push(h)}),t}function uu(s,t){s.forEach(e=>{const n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter(i=>i.id!==t))})}function sm(s){s.pendingCallbacksFlag||(s.pendingCallbacksFlag=!0,setTimeout(()=>{s.pendingCallbacksFlag=!1;const t=s.loaderCallbacks?s.loaderCallbacks.slice(0):[];if(!t.length)return;let e=!1;const n=s.provider,i=s.prefix;t.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(s.icons[c])o.loaded.push({provider:n,prefix:i,name:c});else if(s.missing.has(c))o.missing.push({provider:n,prefix:i,name:c});else return e=!0,!0;return!1}),o.pending.length!==a&&(e||uu([s],r.id),r.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),r.abort))})}))}let nm=0;function im(s,t,e){const n=nm++,i=uu.bind(null,e,n);if(!t.pending.length)return i;const r={id:n,icons:t,callback:s,abort:i};return e.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(r)}),i}function rm(s,t=!0,e=!1){const n=[];return s.forEach(i=>{const r=typeof i=="string"?mr(i,t,e):i;r&&n.push(r)}),n}var om={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function am(s,t,e,n){const i=s.resources.length,r=s.random?Math.floor(Math.random()*i):s.index;let o;if(s.random){let L=s.resources.slice(0);for(o=[];L.length>1;){const W=Math.floor(Math.random()*L.length);o.push(L[W]),L=L.slice(0,W).concat(L.slice(W+1))}o=o.concat(L)}else o=s.resources.slice(r).concat(s.resources.slice(0,r));const a=Date.now();let l="pending",c=0,u,h=null,f=[],d=[];typeof n=="function"&&d.push(n);function m(){h&&(clearTimeout(h),h=null)}function y(){l==="pending"&&(l="aborted"),m(),f.forEach(L=>{L.status==="pending"&&(L.status="aborted")}),f=[]}function _(L,W){W&&(d=[]),typeof L=="function"&&d.push(L)}function k(){return{startTime:a,payload:t,status:l,queriesSent:c,queriesPending:f.length,subscribe:_,abort:y}}function I(){l="failed",d.forEach(L=>{L(void 0,u)})}function M(){f.forEach(L=>{L.status==="pending"&&(L.status="aborted")}),f=[]}function E(L,W,vt){const bt=W!=="success";switch(f=f.filter(Ct=>Ct!==L),l){case"pending":break;case"failed":if(bt||!s.dataAfterTimeout)return;break;default:return}if(W==="abort"){u=vt,I();return}if(bt){u=vt,f.length||(o.length?tt():I());return}if(m(),M(),!s.random){const Ct=s.resources.indexOf(L.resource);Ct!==-1&&Ct!==s.index&&(s.index=Ct)}l="completed",d.forEach(Ct=>{Ct(vt)})}function tt(){if(l!=="pending")return;m();const L=o.shift();if(L===void 0){if(f.length){h=setTimeout(()=>{m(),l==="pending"&&(M(),I())},s.timeout);return}I();return}const W={status:"pending",resource:L,callback:(vt,bt)=>{E(W,vt,bt)}};f.push(W),c++,h=setTimeout(tt,s.rotate),e(L,t,W.callback)}return setTimeout(tt),k}function hu(s){const t={...om,...s};let e=[];function n(){e=e.filter(a=>a().status==="pending")}function i(a,l,c){const u=am(t,a,l,(h,f)=>{n(),c&&c(h,f)});return e.push(u),u}function r(a){return e.find(l=>a(l))||null}return{query:i,find:r,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:n}}function du(){}const ta=Object.create(null);function lm(s){if(!ta[s]){const t=Jo(s);if(!t)return;const e=hu(t),n={config:t,redundancy:e};ta[s]=n}return ta[s]}function cm(s,t,e){let n,i;if(typeof s=="string"){const r=Zo(s);if(!r)return e(void 0,424),du;i=r.send;const o=lm(s);o&&(n=o.redundancy)}else{const r=Ko(s);if(r){n=hu(r);const o=s.resources?s.resources[0]:"",a=Zo(o);a&&(i=a.send)}}return!n||!i?(e(void 0,424),du):n.query(t,i,e)().abort}const fu="iconify2",fi="iconify",pu=fi+"-count",mu=fi+"-version",gu=36e5,um=168,hm=50;function ea(s,t){try{return s.getItem(t)}catch{}}function sa(s,t,e){try{return s.setItem(t,e),!0}catch{}}function yu(s,t){try{s.removeItem(t)}catch{}}function na(s,t){return sa(s,pu,t.toString())}function ia(s){return parseInt(ea(s,pu))||0}const br={local:!0,session:!0},vu={local:new Set,session:new Set};let ra=!1;function dm(s){ra=s}let xr=typeof window>"u"?{}:window;function _u(s){const t=s+"Storage";try{if(xr&&xr[t]&&typeof xr[t].length=="number")return xr[t]}catch{}br[s]=!1}function bu(s,t){const e=_u(s);if(!e)return;const n=ea(e,mu);if(n!==fu){if(n){const a=ia(e);for(let l=0;l<a;l++)yu(e,fi+l.toString())}sa(e,mu,fu),na(e,0);return}const i=Math.floor(Date.now()/gu)-um,r=a=>{const l=fi+a.toString(),c=ea(e,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"&&t(u,a))return!0}catch{}yu(e,l)}};let o=ia(e);for(let a=o-1;a>=0;a--)r(a)||(a===o-1?(o--,na(e,o)):vu[s].add(a))}function xu(){if(!ra){dm(!0);for(const s in br)bu(s,t=>{const e=t.data,n=t.provider,i=e.prefix,r=_n(n,i);if(!Wo(r,e).length)return!1;const o=e.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,o):o,!0})}}function fm(s,t){const e=s.lastModifiedCached;if(e&&e>=t)return e===t;if(s.lastModifiedCached=t,e)for(const n in br)bu(n,i=>{const r=i.data;return i.provider!==s.provider||r.prefix!==s.prefix||r.lastModified===t});return!0}function pm(s,t){ra||xu();function e(n){let i;if(!br[n]||!(i=_u(n)))return;const r=vu[n];let o;if(r.size)r.delete(o=Array.from(r).shift());else if(o=ia(i),o>=hm||!na(i,o+1))return;const a={cached:Math.floor(Date.now()/gu),provider:s.provider,data:t};return sa(i,fi+o.toString(),JSON.stringify(a))}t.lastModified&&!fm(s,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),e("local")||e("session"))}function wu(){}function mm(s){s.iconsLoaderFlag||(s.iconsLoaderFlag=!0,setTimeout(()=>{s.iconsLoaderFlag=!1,sm(s)}))}function gm(s,t){s.iconsToLoad?s.iconsToLoad=s.iconsToLoad.concat(t).sort():s.iconsToLoad=t,s.iconsQueueFlag||(s.iconsQueueFlag=!0,setTimeout(()=>{s.iconsQueueFlag=!1;const{provider:e,prefix:n}=s,i=s.iconsToLoad;delete s.iconsToLoad;let r;if(!i||!(r=Zo(e)))return;r.prepare(e,n,i).forEach(a=>{cm(e,a,l=>{if(typeof l!="object")a.icons.forEach(c=>{s.missing.add(c)});else try{const c=Wo(s,l);if(!c.length)return;const u=s.pendingIcons;u&&c.forEach(h=>{u.delete(h)}),pm(s,l)}catch(c){console.error(c)}mm(s)})})}))}const ym=(s,t)=>{const e=rm(s,!0,ru()),n=em(e);if(!n.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(n.loaded,n.missing,n.pending,wu)}),()=>{l=!1}}const i=Object.create(null),r=[];let o,a;return n.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===a&&c===o)return;o=c,a=u,r.push(_n(c,u));const h=i[c]||(i[c]=Object.create(null));h[u]||(h[u]=[])}),n.pending.forEach(l=>{const{provider:c,prefix:u,name:h}=l,f=_n(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&&gm(l,i[c][u])}),t?im(t,n,r):wu};function vm(s,t){const e={...s};for(const n in t){const i=t[n],r=typeof i;n in ou?(i===null||i&&(r==="string"||r==="number"))&&(e[n]=i):r===typeof e[n]&&(e[n]=n==="rotate"?i%4:i)}return e}const _m=/[\s,]+/;function bm(s,t){t.split(_m).forEach(e=>{switch(e.trim()){case"horizontal":s.hFlip=!0;break;case"vertical":s.vFlip=!0;break}})}function xm(s,t=0){const e=s.replace(/^-?[0-9.]*/,"");function n(i){for(;i<0;)i+=4;return i%4}if(e===""){const i=parseInt(s);return isNaN(i)?0:n(i)}else if(e!==s){let i=0;switch(e){case"%":i=25;break;case"deg":i=90}if(i){let r=parseFloat(s.slice(0,s.length-e.length));return isNaN(r)?0:(r=r/i,r%1===0?n(r):0)}}return t}function wm(s,t){let e=s.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)e+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+e+">"+s+"</svg>"}function Sm(s){return s.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Cm(s){return"data:image/svg+xml,"+Sm(s)}function km(s){return'url("'+Cm(s)+'")'}const Su={...au,inline:!1},Em={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Tm={display:"inline-block"},oa={backgroundColor:"currentColor"},Cu={backgroundColor:"transparent"},ku={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Eu={webkitMask:oa,mask:oa,background:Cu};for(const s in Eu){const t=Eu[s];for(const e in ku)t[s+e]=ku[e]}const wr={};["horizontal","vertical"].forEach(s=>{const t=s.slice(0,1)+"Flip";wr[s+"-flip"]=t,wr[s.slice(0,1)+"-flip"]=t,wr[s+"Flip"]=t});function Tu(s){return s+(s.match(/^[-0-9.]+$/)?"px":"")}const Ou=(s,t)=>{const e=vm(Su,t),n={...Em},i=t.mode||"svg",r={},o=t.style,a=typeof o=="object"&&!(o instanceof Array)?o:{};for(let y in t){const _=t[y];if(_!==void 0)switch(y){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":e[y]=_===!0||_==="true"||_===1;break;case"flip":typeof _=="string"&&bm(e,_);break;case"color":r.color=_;break;case"rotate":typeof _=="string"?e[y]=xm(_):typeof _=="number"&&(e[y]=_);break;case"ariaHidden":case"aria-hidden":_!==!0&&_!=="true"&&delete n["aria-hidden"];break;default:{const k=wr[y];k?(_===!0||_==="true"||_===1)&&(e[k]=!0):Su[y]===void 0&&(n[y]=_)}}}const l=jp(s,e),c=l.attributes;if(e.inline&&(r.verticalAlign="-0.125em"),i==="svg"){n.style={...r,...a},Object.assign(n,c);let y=0,_=t.id;return typeof _=="string"&&(_=_.replace(/-/g,"_")),n.innerHTML=Up(l.body,_?()=>_+"ID"+y++:"iconifyVue"),ze("svg",n)}const{body:u,width:h,height:f}=s,d=i==="mask"||(i==="bg"?!1:u.indexOf("currentColor")!==-1),m=wm(u,{...c,width:h+"",height:f+""});return n.style={...r,"--svg":km(m),width:Tu(c.width),height:Tu(c.height),...Tm,...d?oa:Cu,...a},ze("span",n)};if(ru(!0),Wp("",tm),typeof document<"u"&&typeof window<"u"){xu();const s=window;if(s.IconifyPreload!==void 0){const t=s.IconifyPreload,e="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!$p(n))&&console.error(e)}catch{console.error(e)}})}if(s.IconifyProviders!==void 0){const t=s.IconifyProviders;if(typeof t=="object"&&t!==null)for(let e in t){const n="IconifyProviders["+e+"] is invalid.";try{const i=t[e];if(typeof i!="object"||!i||i.resources===void 0)continue;qp(e,i)||console.error(n)}catch{console.error(n)}}}}const Om={...vr,body:""},Pm=at({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(s,t){if(typeof s=="object"&&s!==null&&typeof s.body=="string")return this._name="",this.abortLoading(),{data:s};let e;if(typeof s!="string"||(e=mr(s,!1,!0))===null)return this.abortLoading(),null;const n=Ap(e);if(!n)return(!this._loadingIcon||this._loadingIcon.name!==s)&&(this.abortLoading(),this._name="",n!==null&&(this._loadingIcon={name:s,abort:ym([e],()=>{this.counter++})})),null;this.abortLoading(),this._name!==s&&(this._name=s,t&&t(s));const i=["iconify"];return e.prefix!==""&&i.push("iconify--"+e.prefix),e.provider!==""&&i.push("iconify--"+e.provider),{data:n,classes:i}}},render(){this.counter;const s=this.$attrs,t=this.iconMounted||s.ssr?this.getIcon(s.icon,s.onLoad):null;if(!t)return Ou(Om,s);let e=s;return t.classes&&(e={...s,class:(typeof s.class=="string"?s.class+" ":"")+t.classes.join(" ")}),Ou({...vr,...t.data},e)}});function Pu(){return typeof window<"u"?window:typeof global<"u"?global:this||{}}typeof process<"u"&&process.versions!=null&&process.versions.node!=null;function Iu(s){this.message=s}Iu.prototype=new Error,Iu.prototype.name="InvalidCharacterError";class aa{maps=new Map;mapsAddedDuringUpdate=new Map;constructor(){}entries(){return Array.from(this.maps.entries())}keys(){return Array.from(this.maps.keys())}values(){return Array.from(this.maps.values())}get length(){return this.entries().length}set(t,e){this.maps.set(t,e),this.mapsAddedDuringUpdate.set(t,e)}get(t){return this.maps.get(t)}shift(){const t=this.entries();if(t.length){const[e,n]=t[0];return this.delete(e),n}}delete(t){return this.mapsAddedDuringUpdate.delete(t),this.maps.delete(t)}deleteAll(){this.maps=new Map,this.mapsAddedDuringUpdate=new Map}filter(t){let e=this.entries();for(;e.length>0;){this.mapsAddedDuringUpdate=new Map;for(let n=0,i=e.length;n<i;n++){const[r,o]=e[n];t(r,o)===!1&&this.delete(r)}e=Array.from(this.mapsAddedDuringUpdate.entries())}}}const Mn=new aa,la=s=>{let t=null;switch(s){case"any-character":t=/[^]/;break;case"bin":t=/^(0b)?[0-1]+$/;break;case"oct":t=/^(0o)?[0-7]+$/i;break;case"hex":t=/^(0x)?[0-9a-fA-F]+$/i;break;case"ascii":t=/^[\x00-\xFF]+$/i;break;case"int":t=/^[-+]?[0-9]+$/;break;case"number":t=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;break;case"number-single":t=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/i;break;case"split":t=/\s*,\s*/gi;break;case"svg-segment":t=/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi;break;case"mobile-china":t=/^\+[1-9]{1}[0-9]{10}$/g;break;case"phone-number":t=/^[+]?[(]?[0-9]{3}[)]?[-\s.]?[0-9]{3}[-\s.]?[0-9]{4,6}$/gi;break;case"email":t=/^[A-Za-z0-9_!#$%&'*+/=?`{|}~^.-]+@[A-Za-z0-9._-]+$/gm;break;case"ip":t=/^((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"url":t=/^http[s]?:\/\/([\w-]+\.)+[\w-]+([\w-./?%&=]*)?$/;break;case"date":t=/^\d{4}(\-|\/|\.)(\d{1,2})(\-|\/|\.)(\d{1,2})$/;break;case"whitespace":t=/[\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":t=/[\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":t=/^\s+|\s+$/g;break;case"base64-data":t=/^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([a-z0-9!$&',()*+;=\-._~:@/?%\s]*?)\s*$/i;break;case"var-name":t=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/;break;case"element-url":t=/^url\(['"]?(.+?)['"]?\)$/i;break;case"hex-color":t=/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;break;case"color":t=/^\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":t=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/;break;case"chinese-name":t=/^(?:[\u4e00-\u9fa5·]{2,16})$/;break;case"chinese":t=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,33 +37,33 @@ Expected function or array of functions, received type ${typeof s}.`),ae)}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":t=/^image\//;break;case"mime-video":t=/^video\//;break;case"mime-audio":t=/^audio\//;break;case"mime-document-word":t=/^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":t=/^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":t=/^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":t=/^application\/json$/;break;case"mime-document-xml":t=/^(?:application|text)\/(?:xml|xhtml\+xml)$/;break}return t},
|
|
41
|
-
`);n=~Et?it.length-Et:n+it.length}function r(){var it={line:e,column:n};return function(q){return q.position=new o(it),m(),q}}function o(it){this.start=it,this.end={line:e,column:n},this.source=t.source}o.prototype.content=s;var a=[];function l(it){var q=new Error(t.source+":"+e+":"+n+": "+it);if(q.reason=it,q.filename=t.source,q.line=e,q.column=n,q.source=s,t.silent)a.push(q);else throw q}function c(){var it=f();return{type:"stylesheet",stylesheet:{source:t.source,rules:it,parsingErrors:a}}}function u(){return d(/^{\s*/)}function h(){return d(/^}/)}function f(){var it,q=[];for(m(),v(q);s.length&&s.charAt(0)!="}"&&(it=xt()||wt());)it!==!1&&(q.push(it),v(q));return q}function d(it){var q=it.exec(s);if(q){var Et=q[0];return i(Et),s=s.slice(Et.length),q}}function m(){d(/^\s*/)}function v(it){var q;for(it=it||[];q=_();)q!==!1&&it.push(q);return it}function _(){var it=r();if(!(s.charAt(0)!="/"||s.charAt(1)!="*")){for(var q=2;s.charAt(q)!=""&&(s.charAt(q)!="*"||s.charAt(q+1)!="/");)++q;if(q+=2,s.charAt(q-1)==="")return l("End of comment missing");var Et=s.slice(2,q-2);return n+=2,i(Et),s=s.slice(q),n+=2,it({type:"comment",comment:Et})}}function E(){var it=d(/^([^{]+)/);if(it)return Ds(it[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(q){return q.replace(/,/g,"")}).split(/\s*(?![^(]*\)),\s*/).map(function(q){return q.replace(/\u200C/g,",")})}function D(){var it=r(),q=d(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(q){if(q=Ds(q[0]),!d(/^:\s*/))return l("property missing ':'");var Et=d(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),$=it({type:"declaration",property:q.replace(Ru,""),value:Et?Ds(Et[0]).replace(Ru,""):""});return d(/^[;\s]*/),$}}function N(){var it=[];if(!u())return l("missing '{'");v(it);for(var q;q=D();)q!==!1&&(it.push(q),v(it));return h()?it:l("missing '}'")}function k(){for(var it,q=[],Et=r();it=d(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)q.push(it[1]),d(/^,\s*/);if(q.length)return Et({type:"keyframe",values:q,declarations:N()})}function tt(){var it=r(),q=d(/^@([-\w]+)?keyframes\s*/);if(q){var Et=q[1];if(q=d(/^([-\w]+)\s*/),!q)return l("@keyframes missing name");var $=q[1];if(!u())return l("@keyframes missing '{'");for(var Ut,ge=v();Ut=k();)ge.push(Ut),ge=ge.concat(v());return h()?it({type:"keyframes",name:$,vendor:Et,keyframes:ge}):l("@keyframes missing '}'")}}function R(){var it=r(),q=d(/^@supports *([^{]+)/);if(q){var Et=Ds(q[1]);if(!u())return l("@supports missing '{'");var $=v().concat(f());return h()?it({type:"supports",supports:Et,rules:$}):l("@supports missing '}'")}}function U(){var it=r(),q=d(/^@host\s*/);if(q){if(!u())return l("@host missing '{'");var Et=v().concat(f());return h()?it({type:"host",rules:Et}):l("@host missing '}'")}}function vt(){var it=r(),q=d(/^@media *([^{]+)/);if(q){var Et=Ds(q[1]);if(!u())return l("@media missing '{'");var $=v().concat(f());return h()?it({type:"media",media:Et,rules:$}):l("@media missing '}'")}}function bt(){var it=r(),q=d(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(q)return it({type:"custom-media",name:Ds(q[1]),media:Ds(q[2])})}function Ct(){var it=r(),q=d(/^@page */);if(q){var Et=E()||[];if(!u())return l("@page missing '{'");for(var $=v(),Ut;Ut=D();)$.push(Ut),$=$.concat(v());return h()?it({type:"page",selectors:Et,declarations:$}):l("@page missing '}'")}}function Rt(){var it=r(),q=d(/^@([-\w]+)?document *([^{]+)/);if(q){var Et=Ds(q[1]),$=Ds(q[2]);if(!u())return l("@document missing '{'");var Ut=v().concat(f());return h()?it({type:"document",document:$,vendor:Et,rules:Ut}):l("@document missing '}'")}}function $t(){var it=r(),q=d(/^@font-face\s*/);if(q){if(!u())return l("@font-face missing '{'");for(var Et=v(),$;$=D();)Et.push($),Et=Et.concat(v());return h()?it({type:"font-face",declarations:Et}):l("@font-face missing '}'")}}var se=Yt("import"),ne=Yt("charset"),ue=Yt("namespace");function Yt(it){var q=new RegExp("^@"+it+"\\s*([^;]+);");return function(){var Et=r(),$=d(q);if($){var Ut={type:it};return Ut[it]=$[1].trim(),Et(Ut)}}}function xt(){if(s[0]=="@")return tt()||vt()||bt()||R()||se()||ne()||ue()||Rt()||Ct()||U()||$t()}function wt(){var it=r(),q=E();return q?(v(),it({type:"rule",selectors:q,declarations:N()})):l("selector missing")}return la(c())}function Ds(s){return s?s.replace(/^\s+|\s+$/g,""):""}function la(s,t){var e=s&&typeof s.type=="string",n=e?s:t;for(var i in s){var r=s[i];Array.isArray(r)?r.forEach(function(o){la(o,n)}):r&&typeof r=="object"&&la(r,n)}return e&&Object.defineProperty(s,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),s}const $u=(s,t="image/svg+xml",e="utf-8")=>e==="base64"?new Blob([s],{type:`${t};${e}`}):new Blob([s],{type:`${t};charset=${e}`}),Vu=s=>new XMLSerializer().serializeToString(s),Lm=(s,t="image/svg+xml",e="utf-8")=>$u(Vu(s),t,e),Lu=(s,t)=>new Promise(e=>{const n=document.createElement("a");n.style.visibility="hidden",document.body.appendChild(n),n.download=t,typeof s=="string"?n.href=s:n.href=window.URL.createObjectURL(s),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(n.href),e()});function Fm(s=["*"],t){return new Promise((e,n)=>{if(!globalThis.document||!(globalThis.document instanceof Document))return n(new Error("This is not a browser environment"));const i=globalThis.document.createElement("input");i.setAttribute("type","file"),i.setAttribute("visibility","hidden"),Array.isArray(s)&&s.length>0&&i.setAttribute("accept",s.join(",")),t&&i.setAttribute("multiple","true"),globalThis.addEventListener("focus",()=>{setTimeout(()=>{(!i.files||i.files?.length===0)&&n(new Error("Cancel select"))},1e3)},{once:!0});const r=()=>{if(i.removeEventListener("change",r),!i.files||i.files?.length===0)n(new Error("Cancel select"));else{const o=Array.from(i.files);!s.includes("*")&&o.some(a=>!s.includes(`.${zm(a)}`))&&n(new Error(`Please select files in ${s} format`)),i.remove(),e(o)}};i.addEventListener("change",r),i.click()})}function Gm(s,t="text",e){return new Promise((n,i)=>{const r=new FileReader;switch(r.addEventListener("progress",o=>{e?.(o.loaded,o.total)}),r.addEventListener("load",o=>{n(o.target?.result)}),r.addEventListener("error",o=>{i(o)}),t){case"dataURL":r.readAsDataURL(s);break;case"binaryString":r.readAsBinaryString(s);break;case"arrayBuffer":r.readAsArrayBuffer(s);break;case"text":default:r.readAsText(s)}})}const zm=s=>{let t;return s instanceof File?t=s.name:t=s,t.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i)?.[1]??""};function wr(){const s=document.documentElement;return{clientX:s.getBoundingClientRect().x,clientY:s.getBoundingClientRect().y,clientWidth:s.clientWidth,clientHeight:s.clientHeight,clientTop:s.clientTop,clientLeft:s.clientLeft,scrollWidth:s.scrollWidth,scrollHeight:s.scrollHeight,scrollTop:s.scrollTop,scrollLeft:s.scrollLeft,offsetWidth:s.offsetWidth,offsetHeight:s.offsetHeight,offsetTop:s.offsetTop,offsetLeft:s.offsetLeft,offsetParent:s.offsetParent}}function Fu(){const{clientWidth:s,clientHeight:t}=wr();return{width:s||window.innerWidth,height:t||window.innerHeight}}function jm(s){const{top:t,left:e,width:n,height:i}=s.getBoundingClientRect(),{scrollLeft:r,scrollTop:o}=wr();return{x:e+r,y:t+o,width:n,height:i}}function Bm(){const{clientHeight:s,scrollTop:t,scrollHeight:e}=wr(),n=e-s;return n<=0?0:t/n*100}function Ym(s){if("center"in s)return s.center;if(s.pageX&&s.pageY)return{x:s.pageX,y:s.pageY};const{scrollLeft:t,scrollTop:e}=wr();return{x:s.clientX+t,y:s.clientY+e}}function Xm(s,t){const e=Ym(t),n=jm(s);return{x:e.x-n.x,y:e.y-n.y}}const Hm=()=>{const s=navigator.userAgent.toLowerCase();let t="Unknown";return/mac/i.test(s)?t="macOS":/win/i.test(s)?t="Windows":/android/i.test(s)?t="Android":/iphone|ipad|ipod/i.test(s)?t="iOS":/linux/i.test(s)?t="Linux":/bsd/i.test(s)&&(t="BSD"),t.toLowerCase()};function Um(){return Hm()==="macos"}function Wm(){const s=window.navigator.userAgent,t=s.indexOf("MSIE ");if(t>0)return parseInt(s.substring(t+5,s.indexOf(".",t)),10);if(s.indexOf("Trident/")>0){const i=s.indexOf("rv:");return parseInt(s.substring(i+3,s.indexOf(".",i)),10)}const n=s.indexOf("Edge/");return n>0?parseInt(s.substring(n+5,s.indexOf(".",n)),10):-1}const ca=Wm()!==-1;(()=>{const s=Cu();return!!(s.Worker&&s.Blob&&s.Promise&&s.OffscreenCanvas&&s.OffscreenCanvasRenderingContext2D&&s.HTMLCanvasElement&&s.HTMLCanvasElement.prototype.transferControlToOffscreen&&s.URL&&s.URL.createObjectURL)})(),function(){if(!Cu().OffscreenCanvas)return!1;const t=new OffscreenCanvas(1,1),e=t.getContext("2d");e.fillRect(0,0,1,1);const n=t.transferToImageBitmap();try{e.createPattern(n,"no-repeat")}catch{return!1}return!0}();function qm(s){const t=document.documentElement,e=window.top===window.self?window.devicePixelRatio:1;t.dataset.dpr=e;let n=100;const i=function(){const r=Math.min(t.clientWidth,s);t.dataset.width=r,t.dataset.rem=n=Math.round(100*(r/s)),t.style.fontSize=n+"px"};i(),window.rem2px=function(r){return r=parseFloat(r),r*n},window.px2rem=function(r){return r=parseFloat(r),r/n},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",i,!1)}function It(s){return s*Math.PI/180}function ze(s){return s*180/Math.PI}function ua(s,t,e=0){return Math.sqrt(s*s+t*t+e*e)}function ha(s,t,e,n){const i=s-e,r=t-n;return ua(i,r)}function da(s,t,e,n){const i=s-e,r=t-n;return i*i+r*r}function Nn(s,t,e,n){const i=e-s,r=n-t;let o=Math.atan2(r,i);return o<0&&(o+=Math.PI*2),o}function Is(s,t){return{dx:Math.cos(s)*t,dy:Math.sin(s)*t}}const mi=Math.PI*2;function Gu(s,t,e,n){const i=s*n-t*e<0?-1:1;let r=s*e+t*n;return r>1&&(r=1),r<-1&&(r=-1),i*Math.acos(r)}function Zm(s,t,e,n,i,r,o,a,l,c){const u=c*(s-e)/2+l*(t-n)/2,h=-l*(s-e)/2+c*(t-n)/2,f=o*o,d=a*a,m=u*u,v=h*h;let _=f*d-f*v-d*m;_<0&&(_=0),_/=f*v+d*m,_=Math.sqrt(_)*(i===r?-1:1);const E=_*o/a*h,D=_*-a/o*u,N=c*E-l*D+(s+e)/2,k=l*E+c*D+(t+n)/2,tt=(u-E)/o,R=(h-D)/a,U=(-u-E)/o,vt=(-h-D)/a,bt=Gu(1,0,tt,R);let Ct=Gu(tt,R,U,vt);return r===0&&Ct>0&&(Ct-=mi),r===1&&Ct<0&&(Ct+=mi),[N,k,bt,Ct]}function Km(s,t){const e=1.3333333333333333*Math.tan(t/4),n=Math.cos(s),i=Math.sin(s),r=Math.cos(s+t),o=Math.sin(s+t);return[n,i,n-i*e,i+n*e,r+o*e,o-r*e,r,o]}function zu(s,t,e,n,i,r,o,a,l){const c=Math.sin(l*mi/360),u=Math.cos(l*mi/360),h=u*(s-e)/2+c*(t-n)/2,f=-c*(s-e)/2+u*(t-n)/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=Zm(s,t,e,n,i,r,o,a,c,u),v=[];let _=m[2],E=m[3];const D=Math.max(Math.ceil(Math.abs(E)/(mi/4)),1);E/=D;for(let N=0;N<D;N++)v.push(Km(_,E)),_+=E;return v.map(N=>{for(let k=0;k<N.length;k+=2){let tt=N[k+0],R=N[k+1];tt*=o,R*=a;const U=u*tt-c*R,vt=c*tt+u*R;N[k+0]=U+m[0],N[k+1]=vt+m[1]}return N})}function fa(s,t,e,n,i,r){return[s/3+.6666666666666666*e,t/3+.6666666666666666*n,i/3+.6666666666666666*e,r/3+.6666666666666666*n,i,r]}function gi(s,t,e,n){return[s,t,e,n,e,n]}const Sr={a:7,c:6,s:4,q:4,t:2,m:2,l:2,h:1,v:1,z:0};class vn{static createSVGElement(t="path",e){const n=document.createElementNS.call(document,"http://www.w3.org/2000/svg",t);return e&&H.attribute(n,e),n}static createSvgPath(t){return this.createSVGElement("path",{d:t})}static downloadFromSVGElement(t,e="shape"){return Lu(Lm(t),`${e}.svg`)}static downloadFromSVGString(t,e="shape"){return Lu($u(t),`${e}.svg`)}static getSVGRawStringFromElement(t){return Vu(t)}static isSVGPath(t){return typeof t!="string"?!1:(t=t.trim(),/^[mlhvzaqtcs]\s*[-+.0-9][^mlhvzaqtcs]+/i.test(t)&&/[\dz]$/i.test(t))}static SVGPathDataToD(t){return t.map(e=>{if(!e[0])return"";switch(e[0].toLowerCase()){case"a":return`${e[0]} ${e[1]},${e[2]} ${e[3]} ${e[4]},${e[5]} ${e[6]},${e[7]}`;case"c":return`${e[0]} ${e[1]},${e[2]} ${e[3]},${e[4]} ${e[5]},${e[6]}`;case"s":case"q":return`${e[0]} ${e[1]},${e[2]} ${e[3]},${e[4]}`;default:return e[0]+" "+e.slice(1).join(",")}}).join(" ")}static parseSVGPath(t){const e=[];return t.replace(/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi,(n,i,r)=>{let o=i.toLowerCase();const a=Mu(r);for(o=="m"&&a.length>Sr[o]&&(e.push([i,...a.splice(0,Sr[o])]),o="l",i=i=="m"?"l":"L");a.length;){if(a.length<Sr[o])throw new Error(`parseSVGPath substring:{ ${n} } command:{ ${i} } args:{ ${a} }`);e.push([i,...a.splice(0,Sr[o])])}return o=="z"&&e.push([i]),""}),e}static absolutizeSVGPath(t){let e=0,n=0,i=0,r=0;return t.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=e,r=n;break;case"H":i=o[1];break;case"V":r=o[1];break;case"M":i=e=o[1],r=n=o[2];break;default:i=o[o.length-2],r=o[o.length-1]}return o})}static relativeSVGPath(t){let e=0,n=0,i=0,r=0;return t.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=e,r=n;break;case"h":i+=o[1];break;case"v":r+=o[1];break;case"m":i+=o[1],r+=o[2],e+=o[1],n+=o[2];break;default:i+=o[o.length-2],r+=o[o.length-1]}return o})}static normalizeSVGPath(t){let e=[],n=0,i=0,r=0,o=0,a=0,l=0,c=0,u=0,h;for(let f=0,d=t.length;f<d;f++){let m=t[f];const v=m[0];switch(v){case"M":n=m[1],i=m[2];break;case"A":const _=zu(r,o,m[6],m[7],m[4],m[5],m[1],m[2],m[3]);if(!_.length)continue;_.forEach((N,k)=>{const[tt,R,U,vt,bt,Ct,Rt,$t]=N;m=["C",U,vt,bt,Ct,Rt,$t],k<_.length-1&&e.push(m)});break;case"S":let E=r,D=o;(h=="C"||h=="S")&&(E+=E-c,D+=D-u),m=["C",E,D,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",...fa(r,o,a,l,m[1],m[2])];break;case"Q":a=m[1],l=m[2],m=["C",...fa(r,o,m[1],m[2],m[3],m[4])];break;case"L":m=["C",...gi(r,o,m[1],m[2])];break;case"H":m=["C",...gi(r,o,m[1],o)];break;case"V":m=["C",...gi(r,o,r,m[1])];break;case"Z":m=["C",...gi(r,o,n,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),e.push(m)}return e}static catmullRom2bezier(t){let e=[];for(let n=0,i=t.length;i-2>n;n+=2){let r;n==0?r=[{x:t[n],y:t[n+1]},{x:t[n],y:t[n+1]},{x:t[n+2],y:t[n+3]},{x:t[n+4],y:t[n+5]}]:i-4==n?r=[{x:t[n-2],y:t[n-1]},{x:t[n],y:t[n+1]},{x:t[n+2],y:t[n+3]},{x:t[n+2],y:t[n+3]}]:r=[{x:t[n-2],y:t[n-1]},{x:t[n],y:t[n+1]},{x:t[n+2],y:t[n+3]},{x:t[n+4],y:t[n+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}];e.push(["C",o[1].x,o[1].y,o[2].x,o[2].y,o[3].x,o[3].y])}return e}static zvhToLSVGPath(t){let e=[],n=["L",0,0],i;for(let r=0,o=t.length;r<o;r++){let a=t[r];switch(a[0]){case"M":n=["L",a[1],a[2]],e.push(a);break;case"Z":e.push(n);break;case"H":i=e[e.length-1]||["L",0,0],e.push(["L",a[1],i[i.length-1]]);break;case"V":i=e[e.length-1]||["L",0,0],e.push(["L",i[i.length-2],a[1]]);break;default:e.push(a)}}return e}static longhandSVGPath(t){const e={S:{to:"C",x:3},T:{to:"Q",x:1}};let n,i=0,r=0;for(let o=0,a=t.length;o<a;o++){const l=t[o],c=e[l[0]];c&&(l[0]=c.to,n&&(n[0]===c.to?(i=2*Number(n[c.x+2])-Number(n[c.x]),r=2*Number(n[c.x+3])-Number(n[c.x+1])):(i=Number(n[n.length-2]),r=Number(n[n.length-1]))),l.splice(1,0,i,r)),n=l}return t}static curveDim(t,e,n,i,r,o,a,l){const c=[],u=[[],[]];let h,f,d,m,v,_,E,D;for(let R=0;R<2;++R){if(R===0?(f=6*t-12*n+6*r,h=-3*t+9*n-9*r+3*a,d=3*n-3*t):(f=6*e-12*i+6*o,h=-3*e+9*i-9*o+3*l,d=3*i-3*e),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,D=Math.sqrt(E),!(E<0)&&(v=(-f+D)/(2*h),v>0&&v<1&&c.push(v),_=(-f-D)/(2*h),_>0&&_<1&&c.push(_))}let N=c.length,k;const tt=N;for(;N--;)m=c[N],k=1-m,u[0][N]=k*k*k*t+3*k*k*m*n+3*k*m*m*r+m*m*m*a,u[1][N]=k*k*k*e+3*k*k*m*i+3*k*m*m*o+m*m*m*l;return u[0][tt]=t,u[1][tt]=e,u[0][tt+1]=a,u[1][tt+1]=l,u[0].length=u[1].length=tt+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(t,e,n,i,r){const o=-3*e+9*n-9*i+3*r,a=t*o+6*e-12*n+6*i;return t*a-3*e+3*n}static bezlen(t,e,n,i,r,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],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472];let m=0;for(let v=0;v<h;v++){const _=u*f[v]+u,E=this.base3(_,t,n,r,a),D=this.base3(_,e,i,o,l),N=E*E+D*D;m+=d[v]*Math.sqrt(N)}return u*m}}const Qt=vn;class ju extends xr{shapes=[];removes=[];x;y;constructor(t){super(),this.x=t?.x||0,this.y=t?.y||0}register(...t){this.shapes.push(...t);const e=n=>(i,r)=>{this.shapes.forEach(o=>{o.id!==n.id&&o.enableDrag&&(o.x+=i,o.y+=r)}),this.x+=i,this.y+=r};t.forEach(n=>{const i=e(n);n.on("moving",i),this.removes.push(()=>{n.off("moving",i)})})}destroy(){this.removes.forEach(t=>t())}}class Jt extends xr{id;cX;cY;x;prevX;y;prevY;degree;prevDegree;scalexOnOrigin;scaleyOnOrigin;prevScalexOnOrigin;prevScaleyOnOrigin;skewxDegreeOnOrigin;skewyDegreeOnOrigin;prevSkewxDegreeOnOrigin;prevSkewyDegreeOnOrigin;transformBaseOnSelfInRenderGroup;vx;vy;ax;ay;mass;attrs;enableDrag;alongPath;isDragging=!1;isMouseIn=!1;mouseX=0;mouseY=0;targetToAfterDragFree;followMouse;isShow=!0;now=new Date().getTime();frameRate=60;strokeArmyAnts;strokeArmyAntsOffset=0;history=[];path2d=new Path2D;el;pathd;renderGroup;shapeGroup;autoRender;constructor(t){super(),this.id=Em(),this.cX=t?.cX||0,this.cY=t?.cY||0,this.prevX=this.x=t?.x||0,this.prevY=this.y=t?.y||0,this.prevDegree=this.degree=t?.degree||0,this.prevScalexOnOrigin=this.scalexOnOrigin=1,this.prevScaleyOnOrigin=this.scaleyOnOrigin=1,t?.scaleOnOrigin!==void 0&&(this.prevScalexOnOrigin=this.scalexOnOrigin=t.scaleOnOrigin,this.prevScaleyOnOrigin=this.scaleyOnOrigin=t.scaleOnOrigin),t?.scalexOnOrigin!==void 0&&(this.prevScalexOnOrigin=this.scalexOnOrigin=t.scalexOnOrigin),t?.scaleyOnOrigin!==void 0&&(this.prevScaleyOnOrigin=this.scaleyOnOrigin=t.scaleyOnOrigin),this.prevSkewxDegreeOnOrigin=this.skewxDegreeOnOrigin=t?.skewxDegreeOnOrigin||0,this.prevSkewyDegreeOnOrigin=this.skewyDegreeOnOrigin=t?.skewyDegreeOnOrigin||0,this.transformBaseOnSelfInRenderGroup=typeof t?.transformBaseOnSelfInRenderGroup=="boolean"?t.transformBaseOnSelfInRenderGroup:!1,this.vx=t?.vx||0,this.vy=t?.vy||0,this.ax=t?.ax||0,this.ay=t?.ay||0,this.mass=t?.mass||1,this.attrs=Object.assign({paintOrder:"stroke",stroke:"none",fill:"none"},Object.fromEntries(Object.entries(t?.attrs||{}).map(([e,n])=>[Ye(e),n]))),this.enableDrag=t?.enableDrag||!1,this.alongPath=t?.alongPath,this.targetToAfterDragFree=t?.targetToAfterDragFree,this.followMouse=t?.followMouse||!1,this.isShow=typeof t?.isShow=="boolean"?t?.isShow:!0,this.strokeArmyAnts=t?.strokeArmyAnts||!1,this.renderGroup=t?.renderGroup,this.shapeGroup=t?.shapeGroup,this.autoRender=typeof t?.autoRender=="boolean"?t?.autoRender:!1}save(){this.history.push(Iu(this))}restore(){const t=this.history.pop();t&&Dm(this,t)}group(...t){this.renderGroup||(this.renderGroup=new ju({x:this.x,y:this.y}),this.renderGroup.register(this)),t.forEach(e=>{e.renderGroup=this.renderGroup,this.renderGroup?.register(e)})}ungroup(){this.renderGroup&&(this.renderGroup.shapes.forEach(t=>delete t.renderGroup),this.renderGroup.destroy(),this.renderGroup=void 0)}setAttr(t,e){br(t)?Object.assign(this.attrs,Object.fromEntries(Object.entries(t).map(([n,i])=>[Ye(n),i]))):typeof t=="string"&&e&&(this.attrs[Ye(t)]=e)}getAttr(t,e){return this.attrs[Ye(t)]||e}hasAttr(t){return!!this.attrs[Ye(t)]}get centerX(){const t=this.getBoundingClientRect();return t?t.x+t.width/2:this.x}get centerY(){const t=this.getBoundingClientRect();return t?t.y+t.height/2:this.y}get centerDiff(){return{dx:this.centerX-this.x,dy:this.centerY-this.y}}getBoundingClientRect(){return null}frameUpdate(){const t=new Date().getTime();if(!(t-this.now<1e3/this.frameRate)&&(this.now=t,this.strokeArmyAnts&&!this.isMouseIn)){const e=this.getAttr("stroke-dasharray","4 4");if(typeof e=="string"){this.setAttr("stroke-dasharray",e);const n=Mu(e);this.setAttr("stroke-dashoffset",String(this.strokeArmyAntsOffset++)),this.strokeArmyAntsOffset>n.reduce((i,r)=>i+r,0)&&(this.strokeArmyAntsOffset=0)}}}toSVGPathD(t=!1){let e=[];const n=this.toSVGPathData();return n[0]&&Array.isArray(n[0])?e.push(...n):e.push(n),t&&(e=Qt.relativeSVGPath(e)),Qt.SVGPathDataToD(e)}distance(t){return ha(this.x,this.y,t.x,t.y)}rotateTo(t){this.degree=ze(Nn(this.x,this.y,t.x,t.y))}followTo(t,e=3){this.rotateTo(t);const{dx:n,dy:i}=Is(It(this.degree),e);this.vx=n,this.vy=i,this.nextFrame()}followAccelerationTo(t,e=.05){this.rotateTo(t);const{dx:n,dy:i}=Is(It(this.degree),e);this.ax=n,this.ay=i,this.nextFrame()}checkCollision(t){}gravitate(t){const e=t.x-this.x,n=t.y-this.y,i=e*e+n*n,r=Math.sqrt(i),o=this.mass*t.mass/i,a=o*e/r,l=o*n/r;this.vx+=a/this.mass,this.vy+=l/this.mass,t.vx-=a/t.mass,t.vy-=l/t.mass}static comboGravitate(t){const e=t.length;t.forEach((n,i)=>{n.nextFrame();for(let r=i+1;r<e;r++)n.checkCollision(t[r]),n.gravitate(t[r])})}nextFrame(t){this.vx+=this.ax,this.vy+=this.ay;const e=t?.gravity??0;this.vy+=e;const n=t?.friction??1;this.vx*=n,this.vy*=n,this.x+=this.vx,this.y+=this.vy}nextFrameEaseTo(t,e){const n=e?.easing??.05,{dx:i,dy:r}=this.centerDiff,o=t.x-i-this.x,a=t.y-r-this.y;this.vx=o*n,this.vy=a*n,this.nextFrame(e)}nextFrameSpringTo(t,e){const n=e?.spring??.03,{dx:i,dy:r}=this.centerDiff;(Array.isArray(t)?t:[t]).forEach(o=>{const a=o.x-i-this.x,l=o.y-r-this.y,c=a*n,u=l*n;this.vx+=c,this.vy+=u}),this.nextFrame({friction:.9,...e})}static comboSpringChain(t,e){t.forEach((n,i)=>{i>0&&n.nextFrameSpringTo(t[i-1],e)})}static comboSpringConnect(t,e){const n=e?.springLength??100;t.forEach(i=>{i.isDragging||t.filter(r=>r.id!==i.id).forEach(r=>{const o=Nn(i.x,i.y,r.x,r.y);i.nextFrameSpringTo({x:r.x-Math.cos(o)*n,y:r.y-Math.sin(o)*n},e)})})}spring(t,e){const n=e?.springLength??100,i=e?.spring??1e-4;let r=[0,0,0,0,0];const o=t.x-this.x,a=t.y-this.y,l=Math.sqrt(o*o+a*a);if(l<n){r=[this.x,this.y,t.x,t.y,1-l/n];const c=o*i,u=a*i;this.vx+=c/this.mass,this.vy+=u/this.mass,t.vx-=c/t.mass,t.vy-=u/t.mass}return r}static comboSpringMass(t,e,n){const i=[];return t.forEach((r,o)=>{r.nextFrame(n),r.x>e.x+e.width?r.x=e.x:r.x<e.x&&(r.x=e.x+e.width),r.y>e.y+e.height?r.y=e.y:r.y<e.y&&(r.y=e.y+e.height);for(let a=o+1,l=t.length;a<l;a++)i.push(r.spring(t[a],n))}),i}}class pa extends Jt{x;y;z;fl;vpX;vpY;cX;cY;cZ;radius;constructor(t){super(t),this.x=t?.x||0,this.y=t?.y||0,this.z=t?.z||0,this.fl=t?.fl||250,this.vpX=t?.vpX||0,this.vpY=t?.vpY||0,this.cX=t?.cX||0,this.cY=t?.cY||0,this.cZ=t?.cZ||0,this.radius=t?.radius||0}getBoundingClientRect(){return null}toSVGPathData(){return this.radius?[["M",this.getScreenX(),this.getScreenY()-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.getScreenX(),this.getScreenY()]}toCanvasContext(t){t.beginPath(),t.arc(0,0,this.radius,0,Math.PI*2,!0),t.closePath()}setVanishingPoint(t,e){this.vpX=t,this.vpY=e}setCenter(t,e,n){this.cX=t,this.cY=e,this.cZ=n}rotateX(t){({x:this.y,y:this.z}=ms(It(t),this.y,this.z))}rotateY(t){({x:this.x,y:this.z}=ms(It(t),this.x,this.z))}rotateZ(t){({x:this.x,y:this.y}=ms(It(t),this.x,this.y))}getScreenX(){const t=this.fl/(this.fl+this.z+this.cZ);return this.vpX+(this.cX+this.x)*t}getScreenY(){const t=this.fl/(this.fl+this.z+this.cZ);return this.vpY+(this.cY+this.y)*t}eq(t){return this.x===t.x&&this.y===t.y&&this.z===t.z&&this.radius===t.radius&&this.mass===t.mass}length(){return ua(this.x,this.y,this.z)}distance(t){const e=t.x-this.x,n=t.y-this.y,i=t.z-this.z;return Math.sqrt(e*e+n*n+i*i)}scalar(t){return this.x*=t,this.y*=t,this.z*=t,this}normalize(t=1){const e=this.length();if(e){const n=t/e;this.scalar(n)}return this}clamp(t){const e=this.length();return e&&e>t&&this.scalar(t/e),this}cross(t){const e=this.x,n=this.y,i=this.z;return{x:n*t.z-i*t.y,y:i*t.x-e*t.z,z:e*t.y-n*t.x}}multiply(t){return{x:this.x*t.x,y:this.y*t.y,z:this.z*t.z}}div(t){return{x:this.x/t.x,y:this.y/t.y,z:this.z/t.z}}add(t){return{x:this.x+t.x,y:this.y+t.y,z:this.z+t.z}}sub(t){return{x:this.x-t.x,y:this.y-t.y,z:this.z-t.z}}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}reflect(t){const e=this.dot(t);return{x:this.x-2*e*t.x,y:this.y-2*e*t.y,z:this.z-2*e*t.z}}clone(t){return new pa({x:t.x,y:t.y,z:t.z,radius:t.radius,mass:t.mass})}}const Cr=pa;class de extends Jt{width;height;borderRadius;constructor(t){super(t),this.width=t.width,this.height=t.height,this.borderRadius=t.borderRadius||0}static fromBezier(t,e,n,i,r,o,a,l){const c=vn.curveDim(t,e,n,i,r,o,a,l);return new de({x:c.min.x,y:c.min.y,width:c.max.x-c.min.x,height:c.max.y-c.min.y})}getBoundingClientRect(){return new de({x:this.x,y:this.y,width:this.width,height:this.height})}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(t){t.beginPath(),this.borderRadius<=0?t.rect(0,0,this.width,this.height):(t.moveTo(0,this.borderRadius),t.lineTo(0,this.height-this.borderRadius),t.quadraticCurveTo(0,this.height,this.borderRadius,this.height),t.lineTo(this.width-this.borderRadius,this.height),t.quadraticCurveTo(this.width,this.height,this.width,this.height-this.borderRadius),t.lineTo(this.width,this.borderRadius),t.quadraticCurveTo(this.width,0,this.width-this.borderRadius,0),t.lineTo(this.borderRadius,0),t.quadraticCurveTo(0,0,0,this.borderRadius)),t.closePath()}eq(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height&&this.borderRadius===t.borderRadius}isIntersectRect(t){return!(this.x+this.width<t.x||t.x+t.width<this.x||this.y+this.height<t.y||t.y+t.height<this.y)}isContainPoint(t,e){return t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height}clone(t){return new de({x:t.x,y:t.y,width:t.width,height:t.height,borderRadius:t.borderRadius})}toArray(){return[this.x,this.y,this.width,this.height,this.borderRadius]}}const yi=de,Bu=[1,0,0,1,0,0],Yu=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class je{value;m13_value=0;m23_value=0;m33_value=1;matrix3d;constructor(t=Bu){this.value=Array.from(t),this.m13=0,this.m23=0,this.m33=1,this.matrix3d=this.toMatrix3D()}get m11(){return this.value[0]}get m12(){return this.value[1]}get m13(){return this.m13_value}get m21(){return this.value[2]}get m22(){return this.value[3]}get m23(){return this.m23_value}get m31(){return this.value[4]}get m32(){return this.value[5]}get m33(){return this.m33_value}set m11(t){this.value[0]=t}set m12(t){this.value[1]=t}set m13(t){this.m13_value=t}set m21(t){this.value[2]=t}set m22(t){this.value[3]=t}set m23(t){this.m23_value=t}set m31(t){this.value[4]=t}set m32(t){this.value[5]=t}set m33(t){this.m33_value=t}toMatrix3D(t=this.matrix3d){const e=[this.m11,this.m12,0,this.m13,this.m21,this.m22,0,this.m23,0,0,1,0,this.m31,this.m32,0,this.m33];return t?(t.value=e,t):new Ws(e)}identity(){return this.value=Array.from(Bu),this.m13=0,this.m23=0,this.m33=1,this.matrix3d=this.toMatrix3D(),this}isIdentity(){return this.m11==1&&this.m12==0&&this.m13==0&&this.m21==0&&this.m22==1&&this.m23==0&&this.m31==0&&this.m32==0&&this.m33==1}scalar(t){return this.m11*=t,this.m12*=t,this.m13*=t,this.m21*=t,this.m22*=t,this.m23*=t,this.m31*=t,this.m32*=t,this.m33*=t,this}normalize(){const t=this.m33||1e-4;return this.scalar(1/t)}applyToPoint(t,e,n=0,i=0){const r=t-n,o=e-i;return t=this.m11*r+this.m21*o+this.m31,e=this.m12*r+this.m22*o+this.m32,{x:t+n,y:e+i}}fromString(t){const e=Tu("number",t);return e.length===6?(e.forEach((n,i)=>{n.fullMatch&&(this.value[i]=parseFloat(n.fullMatch))}),this.m13=0,this.m23=0,this.m33=1):this.identity(),this}clone(){const t=new je;return t.m11=this.m11,t.m12=this.m12,t.m13=this.m13,t.m21=this.m21,t.m22=this.m22,t.m23=this.m23,t.m31=this.m31,t.m32=this.m32,t.m33=this.m33,t}multiply(t){const e=this.clone();let n;return t instanceof je?n=t:n=new je(t),this.m11=n.m11*e.m11+n.m12*e.m21+n.m13*e.m31,this.m12=n.m11*e.m12+n.m12*e.m22+n.m13*e.m32,this.m13=n.m11*e.m13+n.m12*e.m23+n.m13*e.m33,this.m21=n.m21*e.m11+n.m22*e.m21+n.m23*e.m31,this.m22=n.m21*e.m12+n.m22*e.m22+n.m23*e.m32,this.m23=n.m21*e.m13+n.m22*e.m23+n.m23*e.m33,this.m31=n.m31*e.m11+n.m32*e.m21+n.m33*e.m31,this.m32=n.m31*e.m12+n.m32*e.m22+n.m33*e.m32,this.m33=n.m31*e.m13+n.m32*e.m23+n.m33*e.m33,this}append(t){return this.multiply(t)}prepend(t){return t.multiply(this),this}inverse(){const t=this.m11,e=this.m12,n=this.m21,i=this.m22,r=this.m31,o=this.m32,a=t*i-e*n;return this.m11=i/a,this.m12=-e/a,this.m21=-n/a,this.m22=t/a,this.m31=(n*o-i*r)/a,this.m32=-(t*o-e*r)/a,this.m13=0,this.m23=0,this.m33=1,this}adjugate(){const t=new je;return t.m11=this.m22*this.m33-this.m32*this.m23,t.m12=this.m32*this.m13-this.m12*this.m33,t.m13=this.m12*this.m23-this.m22*this.m13,t.m21=this.m31*this.m23-this.m21*this.m33,t.m22=this.m11*this.m33-this.m31*this.m13,t.m23=this.m21*this.m13-this.m11*this.m23,t.m31=this.m21*this.m32-this.m31*this.m22,t.m32=this.m31*this.m12-this.m11*this.m32,t.m33=this.m11*this.m22-this.m21*this.m12,t}split(){let t=ze(Math.atan2(this.m12,this.m11));return this.m11<0&&this.m22>=0&&(t+=180),{x:this.m31,y:this.m32,rotate:t,scaleX:Math.sqrt(this.m11*this.m11+this.m12*this.m12),scaleY:Math.sqrt(this.m21*this.m21+this.m22*this.m22),skewX:ze(Math.atan2(-this.m21,this.m22)),skewY:ze(Math.atan2(this.m12,this.m11))}}getGroupCoords(t){const e=this.value[0],n=this.value[1],i=this.value[2],r=this.value[3],o=this.value[4],a=this.value[5],l=t.value[0],c=t.value[1],u=t.value[2],h=t.value[3],f=t.value[4],d=t.value[5],m=l*h,v=c*u,_=(u*n-e*h)/(v-m),E=(l*n-e*c)/(m-v),D=(u*r-i*h)/(v-m),N=(l*r-i*c)/(m-v),k=(u*(a-d)+h*(f-o))/(v-m),tt=(l*(a-d)+c*(f-o))/(m-v),R=[_,E,D,N,k,tt];return new je(R)}toString(t=6){return this.matrix3d.is2D()?`matrix(${this.value.map(e=>qe(e,t)).join(",")})`:this.matrix3d.toString()}translate(t,e){return this.multiply([1,0,0,1,t,e]),this.toMatrix3D(),this}translateTo(t,e){return this.translate(t-this.m31,e-this.m32)}translateX(t){return this.translate(t,0)}translateXTo(t){return this.translateTo(t,this.m32)}translateY(t){return this.translate(0,t)}translateYTo(t){return this.translateTo(this.m31,t)}translateZ(t){return this.matrix3d.translate(0,0,t),this.matrix3d.toMatrix(this),this}translateZTo(t){return this.translateZ(t-this.matrix3d.m43),this}translate3d(t,e,n){return this.matrix3d.translate(t,e,n),this.matrix3d.toMatrix(this),this}translate3dTo(t,e,n){return this.translate3d(t-this.matrix3d.m41,e-this.matrix3d.m42,n-this.matrix3d.m43),this}rotate(t,e=0,n=0){const i=It(t),r=Math.cos(i),o=Math.sin(i);return this.multiply([r,o,-o,r,e,n]),this.translate(-e,-n),this.toMatrix3D(),this}rotateTo(t,e=0,n=0){const{rotate:i}=this.split();return this.rotate(t-i,e,n),this}rotateX(t){return this.matrix3d.rotate(t,0,0),this.matrix3d.toMatrix(this),this}rotateXTo(t){const{rotateX:e}=this.matrix3d.split();return this.rotateX(t-e),this}rotateY(t){return this.matrix3d.rotate(0,t,0),this.matrix3d.toMatrix(this),this}rotateYTo(t){const{rotateY:e}=this.matrix3d.split();return this.rotateY(t-e),this}rotateZ(t){return this.matrix3d.rotate(0,0,t),this.matrix3d.toMatrix(this),this}rotateZTo(t){const{rotateZ:e}=this.matrix3d.split();return this.rotateZ(t-e),this}rotate3d(t,e,n){return this.matrix3d.rotate(t,e,n),this.matrix3d.toMatrix(this),this}rotate3dTo(t,e,n){const{rotateX:i,rotateY:r,rotateZ:o}=this.matrix3d.split();return this.rotate3d(t-i,e-r,n-o),this}scale(t,e=t,n=0,i=0){return this.multiply([t,0,0,e,n,i]),this.translate(-n,-i),this.toMatrix3D(),this}scaleTo(t,e=t,n=0,i=0){return this.scale(t/this.m11,e/this.m22,n,i)}scaleX(t){return this.scale(t,1)}scaleXTo(t){return this.scale(t/this.m11,1)}scaleY(t){return this.scale(1,t)}scaleYTo(t){return this.scale(1,t/this.m22)}scaleZ(t){return this.matrix3d.scale(1,1,t),this.matrix3d.toMatrix(this),this}scaleZTo(t){const{scaleZ:e}=this.matrix3d.split();return this.scaleZ(t/e),this}scale3d(t,e=t,n=t){return this.matrix3d.scale(t,e,n),this.matrix3d.toMatrix(this),this}scale3dTo(t,e=t,n=t){const{scaleX:i,scaleY:r,scaleZ:o}=this.matrix3d.split();return this.scale3d(t/i,e/r,n/o),this}skew(t,e=t){return this.multiply([Math.cos(It(e)),Math.sin(It(e)),-Math.sin(It(t)),Math.cos(It(t)),0,0]),this.toMatrix3D(),this}skewTo(t,e=t){const{skewX:n,skewY:i}=this.split();return this.skew(t-n,e-i)}skewX(t){const{skewY:e}=this.split();return this.skew(t,e)}skewXTo(t){const{skewY:e}=this.split();return this.skewTo(t,e)}skewY(t){const{skewX:e}=this.split();return this.skew(e,t)}skewYTo(t){const{skewX:e}=this.split();return this.skewTo(e,t)}skewZ(t){return this}skewZTo(t){return this}skew3d(t,e,n){return this}skew3dTo(t,e,n){return this}perspective(t){return this.matrix3d.perspective(t),this.matrix3d.toMatrix(this),this}}class Ws{value;is3dSpecial=!1;constructor(t=Yu){this.value=Array.from(t)}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]}set m11(t){this.value[0]=t}set m12(t){this.value[1]=t}set m13(t){this.value[2]=t}set m14(t){this.value[3]=t}set m21(t){this.value[4]=t}set m22(t){this.value[5]=t}set m23(t){this.value[6]=t}set m24(t){this.value[7]=t}set m31(t){this.value[8]=t}set m32(t){this.value[9]=t}set m33(t){this.value[10]=t}set m34(t){this.value[11]=t}set m41(t){this.value[12]=t}set m42(t){this.value[13]=t}set m43(t){this.value[14]=t}set m44(t){this.value[15]=t}is2D(){return!this.is3dSpecial&&this.m31==0&&this.m32==0&&this.m33==1&&this.m34==0&&this.m43==0&&this.m44==1}is3D(){return!this.is2D()}identity(){return this.value=Array.from(Yu),this}isIdentity(){return this.m11==1&&this.m12==0&&this.m13==0&&this.m14==0&&this.m21==0&&this.m22==1&&this.m23==0&&this.m24==0&&this.m31==0&&this.m32==0&&this.m33==1&&this.m34==0&&this.m41==0&&this.m42==0&&this.m43==0&&this.m44==1}clone(){const t=new Ws;return t.m11=this.m11,t.m12=this.m12,t.m13=this.m13,t.m14=this.m14,t.m21=this.m21,t.m22=this.m22,t.m23=this.m23,t.m24=this.m24,t.m31=this.m31,t.m32=this.m32,t.m33=this.m33,t.m34=this.m34,t.m41=this.m41,t.m42=this.m42,t.m43=this.m43,t.m44=this.m44,t}scalar(t){return this.m11*=t,this.m12*=t,this.m13*=t,this.m14*=t,this.m21*=t,this.m22*=t,this.m23*=t,this.m24*=t,this.m31*=t,this.m32*=t,this.m33*=t,this.m34*=t,this.m41*=t,this.m42*=t,this.m43*=t,this.m44*=t,this}normalize(){return this.scalar(1/(this.m44||1e-4))}applyToPoint(t){const e=t.x*this.m11+t.y*this.m21+t.z*this.m31+t.mass*this.m41,n=t.x*this.m12+t.y*this.m22+t.z*this.m32+t.mass*this.m42,i=t.x*this.m13+t.y*this.m23+t.z*this.m33+t.mass*this.m43,r=t.x*this.m14+t.y*this.m24+t.z*this.m34+t.mass*this.m44;t.x=e,t.y=n,t.z=i,t.mass=r}fromString(t){const e=Tu("number",t);return e.length===16?e.forEach((n,i)=>{n.fullMatch&&(this.value[i]=parseFloat(n.fullMatch))}):this.identity(),this}toMatrix(t){const{scaleX:e,scaleY:n,skewX:i,skewY:r,x:o,y:a}=this.split(),l=[e,r,i,n,o,a];return t?(t.value=l,t):new je(l)}flatten(){return this.m31=0,this.m32=0,this.m33=1,this.m34=0,this.m14=0,this.m24=0,this.m43=0,this.m44=1,this}toString(t=6){return`matrix3d(${this.value.map(e=>qe(e,t)).join(",")})`}split(){const t=Math.sqrt(this.m11*this.m11+this.m12*this.m12+this.m13*this.m13),e=Math.sqrt(this.m21*this.m21+this.m22*this.m22+this.m23*this.m23),n=Math.sqrt(this.m31*this.m31+this.m32*this.m32+this.m33*this.m33);let i=ze(Xe(Math.asin(-this.m13),-1,1)),r=ze(Math.atan2(this.m23,this.m33));Math.cos(It(i))===0&&(r=ze(Math.atan2(-this.m31,this.m22)));let o=ze(Math.atan2(this.m12,this.m11));return this.m11<0&&this.m22>=0&&(o+=180),{x:this.m41,y:this.m42,z:this.m43,scaleX:t,scaleY:e,scaleZ:n,rotateX:r,rotateY:i,rotateZ:o,skewX:ze(this.m14),skewY:ze(this.m24),skewZ:ze(this.m34),skewW:this.m44,perspective:this.m34?-(1/this.m34):0}}inverse(){const t=[],e=this.m11,n=this.m12,i=this.m13,r=this.m14,o=this.m21,a=this.m22,l=this.m23,c=this.m24,u=this.m31,h=this.m32,f=this.m33,d=this.m34,m=this.m41,v=this.m42,_=this.m43,E=this.m44;t[0]=l*d*v-c*f*v+c*h*_-a*d*_-l*h*E+a*f*E,t[1]=r*f*v-i*d*v-r*h*_+n*d*_+i*h*E-n*f*E,t[2]=i*c*v-r*l*v+r*a*_-n*c*_-i*a*E+n*l*E,t[3]=r*l*h-i*c*h-r*a*f+n*c*f+i*a*d-n*l*d;const D=e*t[0]+o*t[1]+u*t[2]+m*t[3];if(D==0)return console.warn("Can't invert matrix, determinant is 0");t[4]=c*f*m-l*d*m-c*u*_+o*d*_+l*u*E-o*f*E,t[5]=i*d*m-r*f*m+r*u*_-e*d*_-i*u*E+e*f*E,t[6]=r*l*m-i*c*m-r*o*_+e*c*_+i*o*E-e*l*E,t[7]=i*c*u-r*l*u+r*o*f-e*c*f-i*o*d+e*l*d,t[8]=a*d*m-c*h*m+c*u*v-o*d*v-a*u*E+o*h*E,t[9]=r*h*m-n*d*m-r*u*v+e*d*v+n*u*E-e*h*E,t[10]=n*c*m-r*a*m+r*o*v-e*c*v-n*o*E+e*a*E,t[11]=r*a*u-n*c*u-r*o*h+e*c*h+n*o*d-e*a*d,t[12]=l*h*m-a*f*m-l*u*v+o*f*v+a*u*_-o*h*_,t[13]=n*f*m-i*h*m+i*u*v-e*f*v-n*u*_+e*h*_,t[14]=i*a*m-n*l*m-i*o*v+e*l*v+n*o*_-e*a*_,t[15]=n*l*u-i*a*u+i*o*h-e*l*h-n*o*f+e*a*f,this.value=t,this.scalar(1/D)}multiply(t){const e=this.clone(),n=t.m11*e.m11+t.m12*e.m21+t.m13*e.m31+t.m14*e.m41,i=t.m11*e.m12+t.m12*e.m22+t.m13*e.m32+t.m14*e.m42,r=t.m11*e.m13+t.m12*e.m23+t.m13*e.m33+t.m14*e.m43,o=t.m11*e.m14+t.m12*e.m24+t.m13*e.m34+t.m14*e.m44,a=t.m21*e.m11+t.m22*e.m21+t.m23*e.m31+t.m24*e.m41,l=t.m21*e.m12+t.m22*e.m22+t.m23*e.m32+t.m24*e.m42,c=t.m21*e.m13+t.m22*e.m23+t.m23*e.m33+t.m24*e.m43,u=t.m21*e.m14+t.m22*e.m24+t.m23*e.m34+t.m24*e.m44,h=t.m31*e.m11+t.m32*e.m21+t.m33*e.m31+t.m34*e.m41,f=t.m31*e.m12+t.m32*e.m22+t.m33*e.m32+t.m34*e.m42,d=t.m31*e.m13+t.m32*e.m23+t.m33*e.m33+t.m34*e.m43,m=t.m31*e.m14+t.m32*e.m24+t.m33*e.m34+t.m34*e.m44,v=t.m41*e.m11+t.m42*e.m21+t.m43*e.m31+t.m44*e.m41,_=t.m41*e.m12+t.m42*e.m22+t.m43*e.m32+t.m44*e.m42,E=t.m41*e.m13+t.m42*e.m23+t.m43*e.m33+t.m44*e.m43,D=t.m41*e.m14+t.m42*e.m24+t.m43*e.m34+t.m44*e.m44;return this.m11=n,this.m12=i,this.m13=r,this.m14=o,this.m21=a,this.m22=l,this.m23=c,this.m24=u,this.m31=h,this.m32=f,this.m33=d,this.m34=m,this.m41=v,this.m42=_,this.m43=E,this.m44=D,this}translate(t=0,e=0,n=0){return this.multiply(new Ws([1,0,0,0,0,1,0,0,0,0,1,0,t,e,n,1]))}scale(t=1,e=1,n=1){return this.multiply(new Ws([t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1]))}skew(t=0,e=0,n=0){return this.multiply(new Ws([1,0,0,It(t),0,1,0,It(e),0,0,1,It(n),0,0,0,1]))}rotate(t=0,e=0,n=0){n&&(this.is3dSpecial=!0);const i=It(t),r=It(e),o=It(n),a=Math.cos(i),l=Math.sin(i),c=Math.cos(r),u=Math.sin(r),h=Math.cos(o),f=Math.sin(o),d=a*h,m=a*f,v=l*h,_=l*f;return this.m11=c*h,this.m21=-c*f,this.m31=u,this.m12=m+v*u,this.m22=d-_*u,this.m32=-l*c,this.m13=_-d*u,this.m23=v+m*u,this.m33=a*c,this}perspective(t){return this.multiply(new Ws([1,0,0,0,0,1,0,0,0,0,1,t?-(1/t):0,0,0,0,1]))}unproject(t){let e=t.x*this.m11+t.y*this.m21+this.m41,n=t.x*this.m12+t.y*this.m22+this.m42,i=t.x*this.m13+t.y*this.m23+this.m43,r=t.x*this.m14+t.y*this.m24+this.m44,o=e+this.m31,a=n+this.m32,l=i+this.m33,c=r+this.m34;r==0&&(r=1e-4),e/=r,n/=r,i/=r,c==0&&(c=1e-4),o/=c,a/=c,l/=c;const u=l-i;if(u==0)return{x:e,y:n,z:i,mass:r};const h=-i/u;return e+=h*(o-e),n+=h*(a-n),{x:e,y:n,z:i,mass:r}}project(t){let e=t.z,n=t.x*this.m11+t.y*this.m21+e*this.m31+this.m41,i=t.x*this.m12+t.y*this.m22+e*this.m32+this.m42,r=t.x*this.m14+t.y*this.m24+e*this.m34+this.m44;return r==0&&(r=1e-4),n/=r,i/=r,r<0&&(n-=this.m41,i-=this.m42,n*=1/r,i*=1/r,n+=this.m41,i+=this.m42),{x:n,y:i,z:e,mass:r}}bounds(t,e,n,i){const r=new Cr({x:t,y:e}),o=new Cr({x:t+n,y:e}),a=new Cr({x:t+n,y:e+i}),l=new Cr({x:t,y:e+i});({x:r.x,y:r.y,z:r.z,mass:r.mass}=this.project(r)),{x:o.x,y:o.y,z:o.z,mass:o.mass}=this.project(o),{x:a.x,y:a.y,z:a.z,mass:a.mass}=this.project(a),{x:l.x,y:l.y,z:l.z,mass:l.mass}=this.project(l);const c=Math.min(r.x,o.x,a.x,l.x),u=Math.min(r.y,o.y,a.y,l.y),h=Math.max(r.x,o.x,a.x,l.x)-c,f=Math.max(r.y,o.y,a.y,l.y)-u;return new yi({x:c,y:u,width:h,height:f})}}function Xu(s){const t=new je;return s.replace(/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,function(e,n,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(n.toLowerCase()){case"t":case"translate":t.translate(r[0],r[1]);break;case"translatex":t.translateX(r[0]);break;case"translatey":t.translateY(r[0]);break;case"translatez":t.translateZ(r[0]);break;case"translate3d":t.translate3d(r[0],r[1],r[2]);break;case"r":case"rotate":t.rotate(r[0],r[1]??0,r[2]??0);break;case"rotatex":t.rotateX(r[0]);break;case"rotatey":t.rotateY(r[0]);break;case"rotatez":t.rotateZ(r[0]);break;case"rotate3d":t.rotate3d(r[0],r[1],r[2]);break;case"s":case"scale":t.scale(r[0],r[1]??r[0]);break;case"scalex":t.scaleX(r[0]);break;case"scaley":t.scaleY(r[0]);break;case"scalez":t.scaleZ(r[0]);break;case"scale3d":t.scale3d(r[0],r[1],r[2]);break;case"skew":t.skew(r[0],r[1]??0);break;case"skewx":t.skewX(r[0]);break;case"skewy":t.skewY(r[0]);break;case"skewz":t.skewZ(r[0]);break;case"skew3d":t.skew3d(r[0],r[1],r[2]);break;case"m":case"matrix":t.multiply([r[0],r[1],r[2],r[3],r[4],r[5]]),t.toMatrix3D();break;case"matrix3d":t.matrix3d.multiply(new Ws(r)),t.matrix3d.toMatrix(t);break}return""}),t}function ms(s,t,e,n=0,i=0){const r=new je;return r.rotate(ze(s),n,i),r.applyToPoint(t,e,n,i)}function Qm(s){const{tx:t,ty:e,scaleX:n,scaleY:i,degree:r}=aa(s||{},{tx:0,ty:0,scaleX:1,scaleY:1,degree:0}),o=new DOMMatrix([Math.cos(It(r))*n,Math.sin(It(r))*n,-Math.sin(It(r))*i,Math.cos(It(r))*i,t,e]);return o.multiplySelf(new DOMMatrix(s?.originMatrix)),o}class H{static onDocumentReady(t){let e=!1;function n(){document.readyState==="loading"||e||(e=!0,t(),document.removeEventListener("DOMContentLoaded",n))}typeof document<"u"&&(document.addEventListener("DOMContentLoaded",n),n())}static onBeforeUnload(t){function e(){t(),document.removeEventListener("beforeunload",e)}typeof document<"u"&&document.addEventListener("beforeunload",e)}static getCSSVar(t){return getComputedStyle(document.documentElement).getPropertyValue(t)}static setCSSVar(t,e){document.documentElement.style.setProperty(t,e)}static add3DSupport(t,e="1000px"){if(t.parentElement){const n=H.getStyle(t.parentElement,"position");H.setStyle(t.parentElement,{position:n=="static"?"relative":n,perspective:e})}H.setStyle(t,{"transform-style":"preserve-3d"})}static convertAttrs(t,e,n={}){n.hasOwnProperty("transform")||Object.assign(n,{transform:H.getStyle(t,"transform")||""});const i=Xu(n.transform),r={};for(let o in e){const a=e[o];switch(o){case"transform":break;case"translate":i.translate(a[0]||0,a[1]||0);break;case"translateTo":i.translateTo(a[0]||0,a[1]||0);break;case"translateX":i.translateX(a||0);break;case"translateXTo":i.translateXTo(a||0);break;case"translateY":i.translateY(a||0);break;case"translateYTo":i.translateYTo(a||0);break;case"translateZ":i.translateZ(a||0);break;case"translateZTo":i.translateZTo(a||0);break;case"translate3d":i.translate3d(a[0]||0,a[1]||0,a[2]||0);break;case"translate3dTo":i.translate3dTo(a[0]||0,a[1]||0,a[2]||0);break;case"rotate":typeof a=="number"?i.rotate(a||0):i.rotate(a[0]||0,a[1]||0,a[2]||0);break;case"rotateTo":typeof a=="number"?i.rotateTo(a||0):i.rotateTo(a[0]||0,a[1]||0,a[2]||0);break;case"rotateX":i.rotateX(a||0);break;case"rotateXTo":i.rotateXTo(a||0);break;case"rotateY":i.rotateY(a||0);break;case"rotateYTo":i.rotateYTo(a||0);break;case"rotateZ":i.rotateZ(a||0);break;case"rotateZTo":i.rotateZTo(a||0);break;case"rotate3d":i.rotate3d(a[0]||0,a[1]||0,a[2]||0);break;case"rotate3dTo":i.rotate3dTo(a[0]||0,a[1]||0,a[2]||0);break;case"scale":typeof a=="number"?i.scale(a||1):i.scale(a[0]||1,a[1]||1,a[2]||0,a[3]||0);break;case"scaleTo":typeof a=="number"?i.scaleTo(a||1):i.scaleTo(a[0]||1,a[1]||1,a[2]||0,a[3]||0);break;case"scaleX":i.scaleX(a||1);break;case"scaleXTo":i.scaleXTo(a||1);break;case"scaleY":i.scaleY(a||1);break;case"scaleYTo":i.scaleYTo(a||1);break;case"scaleZ":i.scaleZ(a||1);break;case"scaleZTo":i.scaleZTo(a||1);break;case"scale3d":typeof a=="number"?i.scale3d(a||1):i.scale3d(a[0]||1,a[1]||1,a[2]||1);break;case"scale3dTo":typeof a=="number"?i.scale3dTo(a||1):i.scale3dTo(a[0]||1,a[1]||1,a[2]||1);break;case"skew":typeof a=="number"?i.skew(a||0):i.skew(a[0]||0,a[1]||0);break;case"skewTo":typeof a=="number"?i.skewTo(a||0):i.skewTo(a[0]||0,a[1]||0);break;case"skewX":i.skewX(a||0);break;case"skewXTo":i.skewXTo(a||0);break;case"skewY":i.skewY(a||0);break;case"skewYTo":i.skewYTo(a||0);break;case"skewZ":break;case"skewZTo":break;case"skew3d":break;case"skew3dTo":break;case"perspective":i.perspective(a||0);break;default:n.hasOwnProperty(o)||(n[o]=H.getStyle(t,o)),Object.assign(r,{[o]:`${a}`});break}}return Object.assign(r,{transform:i.toString()}),r}static attrsToCanvas(t,e){for(const n in e){const i=e[n];switch(Ye(n)){case"fill":i!=="none"&&(t.fillStyle=i);break;case"stroke":i!=="none"&&(t.strokeStyle=i);break;case"stroke-width":t.lineWidth=Number(i);break;case"stroke-linecap":t.lineCap=i;break;case"stroke-linejoin":switch(i){case"round":case"bevel":case"miter":t.lineJoin=i;break;default:t.lineJoin="miter";break}break;case"stroke-miterlimit":t.miterLimit=Number(i);break;case"stroke-opacity":break;case"stroke-dashoffset":t.lineDashOffset=Number(i);break;case"stroke-dasharray":typeof i=="string"&&t.setLineDash(i.split(/\s+/).map(r=>Number(r)));break;case"cursor":break;case"font":typeof i=="string"&&(t.font=i);break;case"font-size":t.font+=` ${i}`;break;case"font-family":t.font+=` ${i}`;break;case"font-weight":break;case"font-style":break;case"text-anchor":switch(i){case"middle":t.textAlign="center";break;case"end":t.textAlign="end";break;case"start":t.textAlign="start";break}break;case"alignment-baseline":switch(i){case"middle":case"bottom":case"top":case"alphabetic":case"hanging":case"ideographic":t.textBaseline=i;break;default:t.textBaseline="alphabetic";break}break}}}static getStyle(t,e,n){const i=t;if(getComputedStyle)if(e){e=Ye(e);const r=getComputedStyle(i,n).getPropertyPriority(e);return getComputedStyle(i,n).getPropertyValue(e).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(t.currentStyle){if(e)return e=Du(e),t.currentStyle[e];{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(t,e,n){if(typeof e=="string"&&n){const i=String(n).toLowerCase().includes("!important")?"important":"";t.style.setProperty(Ye(e),n.replace(/!important/i,""),i)}else e instanceof Object&&Object.keys(e).forEach(i=>{const r=String(e[i]).toLowerCase().includes("!important")?"important":"";t.style.setProperty(Ye(i),String(e[i]).replace(/!important/i,""),r)})}static setStyleSheet(t,e){let n;if(typeof e=="string"){const r=document.querySelector(e)?.shadowRoot;r?n=r:n=document.querySelector(e)}else n=e;const i=document.createElement("style");if(i.innerHTML=t,n)return n.appendChild(i),()=>{(n instanceof HTMLElement||n instanceof ShadowRoot)&&n.removeChild(i)};{const r=document.styleSheets[0].insertRule(t);return()=>{document.styleSheets[0].deleteRule(r)}}}static toggleClass(t,e,n="toggle"){e.split(/[,\s]+/).forEach(i=>{i.trim()!==""&&t.classList[n](i.trim())})}static addClass(t,e){this.toggleClass(t,e,"add")}static removeClass(t,e){this.toggleClass(t,e,"remove")}static hasClass(t,e){return e.split(/[,\s]+/).every(n=>n.trim()!==""?Array.from(t.classList||[]).includes(n.trim()):!0)}static toggleDisplay(t,e){this.getStyle(t,"display")=="none"&&e===void 0||e===!0?t.style.setProperty("display",t instanceof HTMLTableRowElement?"table-row":t instanceof HTMLTableCellElement?"table-cell":"block"):t.style.setProperty("display","none")}static show(t){t.style.setProperty("display",t instanceof HTMLTableRowElement?"table-row":t instanceof HTMLTableCellElement?"table-cell":"block")}static hide(t){t.style.setProperty("display","none")}static origins=new ia;static updates=new ia;static attribute(t,e,n){let i={};if(e===void 0&&n===void 0){for(let r=0,o=t.attributes,a=o.length;r<a;r++){const l=o[r];l.nodeName&&l.nodeValue&&(i[l.nodeName]=l.nodeValue)}return i}if(typeof e=="string"&&n===void 0)return t.getAttribute(Ye(e));typeof e=="object"?i=e:typeof e=="string"&&n!==void 0&&(i[e]=n),Object.entries(i).forEach(([r,o])=>{t.setAttribute(Ye(r),o)})}static removeAttribute(t,e){e.split(/[,\s]+/).forEach(n=>{n.trim()!=""&&t.removeAttribute(n.trim())})}static fixProp(t){const e={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 e[t]?e[t]:t}static prop(t,e,n){if(n===void 0&&typeof e=="string")return t[e];{let i={};typeof e=="object"?i=e:typeof e=="string"&&n!==void 0&&(i[e]=n),Object.entries(i).forEach(([r,o])=>{const a=this.fixProp(r);t[a]=o,a=="innerHTML"&&this.scriptConvert(t)})}}static removeProp(t,e){e.split(/[,\s]+/).forEach(n=>{n.trim()!=""&&delete t[this.fixProp(n.trim())]})}static data(t,e,n){if(typeof e=="string"&&(e=Du(e)),(typeof e=="string"||e===void 0)&&n===void 0){const i=Object.assign({},t.dataset);return Object.keys(i).forEach(r=>{if(i[r]?.startsWith("[")||i[r]?.startsWith("{"))try{i[r]=JSON.parse(i[r]||"")}catch{}}),typeof e=="string"?i[e]:i}else{let i={};typeof e=="object"?i=e:typeof e=="string"&&(i[e]=n),Object.entries(i).forEach(([r,o])=>{o!=null?t.dataset[r]=o instanceof Object?JSON.stringify(o):o:delete t.dataset[r]})}}static removeData(t,e){e.split(/[,\s]+/).forEach(n=>{n.trim()!=""&&delete t.dataset[n.trim()]})}static empty(t){this.html(t,"")}static html(t,e){e instanceof HTMLElement||e instanceof SVGElement?this.insert(t,e,"replaceWith"):this.prop(t,"innerHTML",e)}static text(t,e){return this.prop(t,"textContent",e)}static value(t,e){return this.prop(t,"value",e)}static dispatchEvent(t,e,n){let i;const r=["click","dblclick","mousedown","mouseup","mousemove"],o=["keydown","keyup","keypress"];typeof e=="string"?r.includes(e)?i=new MouseEvent(e,n):o.includes(e)?i=new KeyboardEvent(e,n):i=new Event(e,n):i=e,t.dispatchEvent(i)}static scriptConvert(t){const e=n=>{const r=n.ownerDocument.createElement("script");r.text=n.text;const o=n.attributes;for(let a=0;a<o.length;a++)r.setAttribute(o[a].name,o[a].value);return r};return t.tagName=="SCRIPT"&&(t=e(t)),t.querySelectorAll&&t.querySelectorAll("script").forEach(n=>{n.parentNode?.replaceChild(e(n),n)}),t}static insert(t,e,n="append"){return typeof e=="string"?t[n](this.fragment(e)):(e instanceof HTMLElement||e instanceof SVGElement)&&t[n](e),this}static createElement(t){return document.createElement.call(document,t)}static createTextNode(t){return document.createTextNode.call(document,t)}static createDocumentFragment(){return document.createDocumentFragment.call(document)}static fragment(t){const e=document.createElement("template");return e.innerHTML=t,e.content.childNodes.forEach(n=>{const i=this.scriptConvert(n);i!=n&&e.content.replaceChild(i,n)}),e.content}static remove(t){return t.remove()}static siblings=t=>Array.prototype.slice.call(t.parentElement?.children).filter(e=>e!==t);static nextElementSibling(t){return t.nextElementSibling}static previousElementSibling(t){return t.previousElementSibling}static closest(t,e){return t.closest(e)}static shadowRoot(t){return t.shadowRoot}static parentElement=t=>t.parentElement;static changeSelectSelected(t,e){if(t instanceof HTMLSelectElement){const n=t.options;for(let i=0,r=n.length;i<r;i++)n[i].value==e?n[i].selected=!0:n[i].selected=!1}}static changeRadioChecked(t,e){t instanceof HTMLInputElement&&(t.value==e?t.checked=!0:t.checked=!1)}static entity2text(t){const e={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 n;return t.charAt(0)=="#"?t.charAt(1).toLowerCase()=="x"?n=parseInt(t.substring(2),16):n=parseInt(t.substring(1),10):n=e[t],n?String.fromCharCode(n):"&"+t}static waitForStyleSheetsLoaded=()=>new Promise(t=>{const e=Array.from(document.querySelectorAll("link[rel=stylesheet]"));let n=document.styleSheets.length||0;const i=()=>n>=e.length?(t(),!0):!1;i()||e.forEach(r=>{r.onload=()=>{n+=1,i()}})});static loadScript(t,e=()=>{},n=(i,r,o,a,l)=>{}){const i=document.createElement("script");i.type="text/javascript",i.src=t,i.async=!1,i.onload=e,i.onerror=n,document.body.appendChild(i)}static runInSafe(t){const e=new Proxy(window,{get(n,i,r){if(typeof i=="string"&&["open","location","document"].includes(i))throw new Error(`禁止访问 key: ${i}`);return i==="window"?e:Reflect.get(n,i,r)},set(n,i,r,o){return Reflect.set(n,i,r,o)}});new Function("window",`with(window) { ${t} }`)(e,null)}static dom=new Proxy({},{get(t,e){return function(n={},...i){const r=document.createElement(e);for(const o of Object.keys(n))r.setAttribute(o,n[o]);for(const o of i)typeof o=="string"?r.appendChild(document.createTextNode(o)):r.appendChild(o);return r}}});static compileTemplate(t){return t=t.replace(/<%=(.+?)%>/g,"`); \n echo( $1 ); \n echo(`").replace(/<%([\s\S]+?)%>/g,"`); \n $1 \n echo(`"),t="echo(`"+t+"`);",`(function parse(data){
|
|
40
|
+
`.replace(/\s+/g,""),"u");break;case"mime-image":t=/^image\//;break;case"mime-video":t=/^video\//;break;case"mime-audio":t=/^audio\//;break;case"mime-document-word":t=/^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":t=/^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":t=/^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":t=/^application\/json$/;break;case"mime-document-xml":t=/^(?:application|text)\/(?:xml|xhtml\+xml)$/;break}return t},Is=(s,t)=>(typeof s=="string"&&(s=la(s)||new RegExp(s)),s.test(t)),Du=(s,t)=>{if(typeof s=="string"&&(s=la(s)||new RegExp(s)),!t)return null;const e=t.match(s);return e?s.flags.toLowerCase().indexOf("g")>=0?e.map(n=>({matchIndex:-1,fullMatch:n,groupMatchs:[]})):{matchIndex:typeof e.index=="number"?e.index:-1,fullMatch:e[0],groupMatchs:e.slice(1)}:null},Mu=(s,t)=>{typeof s=="string"&&(s=la(s)||new RegExp(s));const e=[],n=t.matchAll(s);for(const i of n)e.push({matchIndex:typeof i.index=="number"?i.index:-1,fullMatch:i[0],groupMatchs:i.slice(1)});return e};function Nu(s){const t=s.match(/[\s\S]/gu);return t?t.length:0}function Au(s,t){const e=s.codePointAt(t);return e?String.fromCodePoint(e):void 0}function Im(s=12){const t="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghijklmnopqrstuvwxyz0123456789",e=t.length;let n="";for(let i=0;i<s;i++)n+=t[Math.floor(Math.random()*e)];return n}function Dm(s){const t=Mn.get(s);if(t)return t;const e=s.replace(/(^\w)/g,function(n){return n.toLowerCase()});return Mn.set(s,e),e}const He=(s,t="-")=>{const e=Mn.get(s);if(e)return e;let n=s.replace(new RegExp(`${t}?([A-Z])`,"g"),t+"$1").toLowerCase();return n=n.replace(new RegExp(`^${t}`),""),Mn.set(s,n),n};function ca(s){const t=Mn.get(s);if(t)return t;const e=s.replace(/(^\w|[_-]\w)/g,function(n){return n.slice(-1).toUpperCase()});return Mn.set(s,e),e}function Ru(s){return Dm(ca(s))}function Mm(s,t,e="0",n="left"){const i=Nu(s);if(t>i){const r=t-i;switch(n){case"left":s=Array(r+1).join(e)+s;break;case"right":s=s+Array(r+1).join(e);break;default:const o=Math.ceil(r/2),a=r-o;s=Array(a+1).join(e)+s+Array(o+1).join(e);break}}return s}function Nm(s){const t=typeof s;return t!=="object"?t:Object.prototype.toString.call(s).replace(/^\[object (\S+)\]$/,"$1").toLowerCase()}function Am(s){return s!=null}function Sr(s){return Nm(s)==="object"}function Rm(s,t){for(const e of Reflect.ownKeys(t))if(e!=="constructor"&&e!=="prototype"&&e!=="name"&&e!=="displayName"){const n=Object.getOwnPropertyDescriptor(t,e);n&&Object.defineProperty(s,e,n)}}function $u(s,t=new WeakMap){if(s==null)return s;if(s.constructor===Date)return new Date(s);if(s.constructor===RegExp)return new RegExp(s);if(typeof s!="object")return s;if(t.has(s))return t.get(s);const e=Object.create(Object.getPrototypeOf(s),Object.getOwnPropertyDescriptors(s));for(const n of Reflect.ownKeys(s))e[n]=Sr(s[n])?$u(s[n],t):s[n];return t.set(s,e),e}function ua(s,t){for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(Sr(t[e])?(typeof s[e]>"u"&&(s[e]={}),ua(s[e],t[e])):typeof s[e]>"u"&&(s[e]=t[e]));return s}function Lu(s,t){for(const e in s)Object.prototype.hasOwnProperty.call(s,e)&&!t(e,s[e])&&delete s[e];return s}function pi(s){for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&delete s[t];return s}function mi(s,t){const e=s.length,n=t.length;for(let r=0;r<n;r++)s[r]=t[r];let i=Math.max(0,e-n);for(;i>0;)s.pop(),i--}function $m(s,t){if(s=parseFloat(s),isNaN(s)){if(typeof t=="number")return t;throw new Error(`parseNumber(${s}) isNaN!`)}return s}function gi(s,t,e=Number.EPSILON*Math.pow(2,2)){return Math.abs(s-t)<e}const Xe=(s,t,e)=>s<t?t:s>e?e:s,Lm=(s,t,e)=>n=>{const i=Math.min(Math.max(s,n),t);return t-i<e?t:Math.round(i/e)*e};function Vm(s,t=12){return $m(s).toFixed(t)}function Ze(s,t=12){return+Vm(s,t)}function Ws(s,t){const e=Du("number-single",String(s));return{hasNumber:!!e,number:e&&!Array.isArray(e)&&e.fullMatch?parseFloat(e.fullMatch):Am(t)?t:NaN,prefix:e&&!Array.isArray(e)&&e.fullMatch?s.substring(0,e.matchIndex):"",suffix:e&&!Array.isArray(e)&&e.fullMatch?s.substring(e.matchIndex+e.fullMatch.length):""}}function ha(s){const t=Du("number",s);return t?Array.isArray(t)?t.map(e=>Number(e.fullMatch)):[Number(t.fullMatch)]:[]}function Fm(s=0,t=100){return Math.random()*(t-s)+s}function ie(s=0,t=100){return Math.floor(Fm(s,t))}function Gm(s){const t=[0,0,0,0,0,0],e=ha(s);for(let n=0,i=Math.min(e.length,3);n<i;n++){const r=Math.floor(Math.abs(e[n]));t[2*n+1]=r%10,t[2*n]=Math.floor(r/10)}return da(t)}function da(s){let t=0;for(let r=5;r>=0;r=r-2)r==5?t+=s[r-1]*10+s[r]:r==3?t+=(s[r-1]*10+s[r])*60:r==1&&(t+=(s[r-1]*10+s[r])*60*60);t=Math.floor(Math.max(0,t));const e=t%60;s[5]=e%10,s[4]=Math.floor(e/10),t=Math.floor(t/60);const n=t%60;s[3]=n%10,s[2]=Math.floor(n/10),t=Math.floor(t/60);const i=t%60%24;return s[1]=i%10,s[0]=Math.floor(i/10),s}function zm(s){return s[5]++,da(s)}function Bm(s){return s[5]--,da(s)}function jm(s,t){let e=!0;return function(...n){e&&(e=!1,s.apply(this,n),setTimeout(()=>{e=!0},t))}}function Ym(s,t){let e;return function(...n){clearTimeout(e),e=setTimeout(()=>{s.apply(this,n)},t)}}class Vu{queue=[];results=[];rs;controller;concurrency;activeTaskCount=0;constructor(t=1){this.concurrency=t,this.rs=new ReadableStream({start:async e=>{this.controller=e}})}get readableStream(){return this.rs}addTask(t){Array.isArray(t)?this.queue.push(...t):this.queue.push(t),this.activeTaskCount<this.concurrency&&this.queue.length>0&&this.runTasks()}async runTasks(){for(;this.activeTaskCount<this.concurrency&&this.queue.length>0;){const t=this.queue.splice(0,this.concurrency-this.activeTaskCount);this.activeTaskCount+=t.length;const e=await Promise.allSettled(t.map(n=>n()));this.results.push(...e),e.forEach(n=>{n.status=="fulfilled"?this.controller?.enqueue(n.value):n.status=="rejected"&&this.controller?.enqueue(new Error(n.reason))}),this.activeTaskCount-=e.length}}}class Cr{events;constructor(){this.events={}}on(t,e){return this.events[t]||(this.events[t]=[]),this.events[t].push(e),this}addListener(t,e){return this.on(t,e),this}prependListener(t,e){return this.events[t]||(this.events[t]=[]),this.events[t].unshift(e),this}removeListener(t,e){if(this.events[t])return this.events[t]=this.events[t].filter(n=>n!==e),this}off(t,e){return this.removeListener(t,e),this}removeAllListeners(t){return t?this.events[t]=[]:this.events={},this}emit(t,...e){return this.events[t]&&this.events[t].forEach(n=>{Reflect.apply(n,this,e)}),this}once(t,e){const i=(()=>{let r=!1;return(...o)=>{r||(r=!0,Reflect.apply(e,this,o),this.off(t,i))}})();return this.on(t,i),this}}var Fu=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function Hm(s,t={}){var e=1,n=1;function i(it){var q=it.match(/\n/g);q&&(e+=q.length);var kt=it.lastIndexOf(`
|
|
41
|
+
`);n=~kt?it.length-kt:n+it.length}function r(){var it={line:e,column:n};return function(q){return q.position=new o(it),m(),q}}function o(it){this.start=it,this.end={line:e,column:n},this.source=t.source}o.prototype.content=s;var a=[];function l(it){var q=new Error(t.source+":"+e+":"+n+": "+it);if(q.reason=it,q.filename=t.source,q.line=e,q.column=n,q.source=s,t.silent)a.push(q);else throw q}function c(){var it=f();return{type:"stylesheet",stylesheet:{source:t.source,rules:it,parsingErrors:a}}}function u(){return d(/^{\s*/)}function h(){return d(/^}/)}function f(){var it,q=[];for(m(),y(q);s.length&&s.charAt(0)!="}"&&(it=xt()||wt());)it!==!1&&(q.push(it),y(q));return q}function d(it){var q=it.exec(s);if(q){var kt=q[0];return i(kt),s=s.slice(kt.length),q}}function m(){d(/^\s*/)}function y(it){var q;for(it=it||[];q=_();)q!==!1&&it.push(q);return it}function _(){var it=r();if(!(s.charAt(0)!="/"||s.charAt(1)!="*")){for(var q=2;s.charAt(q)!=""&&(s.charAt(q)!="*"||s.charAt(q+1)!="/");)++q;if(q+=2,s.charAt(q-1)==="")return l("End of comment missing");var kt=s.slice(2,q-2);return n+=2,i(kt),s=s.slice(q),n+=2,it({type:"comment",comment:kt})}}function k(){var it=d(/^([^{]+)/);if(it)return Ds(it[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(q){return q.replace(/,/g,"")}).split(/\s*(?![^(]*\)),\s*/).map(function(q){return q.replace(/\u200C/g,",")})}function I(){var it=r(),q=d(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(q){if(q=Ds(q[0]),!d(/^:\s*/))return l("property missing ':'");var kt=d(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),V=it({type:"declaration",property:q.replace(Fu,""),value:kt?Ds(kt[0]).replace(Fu,""):""});return d(/^[;\s]*/),V}}function M(){var it=[];if(!u())return l("missing '{'");y(it);for(var q;q=I();)q!==!1&&(it.push(q),y(it));return h()?it:l("missing '}'")}function E(){for(var it,q=[],kt=r();it=d(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)q.push(it[1]),d(/^,\s*/);if(q.length)return kt({type:"keyframe",values:q,declarations:M()})}function tt(){var it=r(),q=d(/^@([-\w]+)?keyframes\s*/);if(q){var kt=q[1];if(q=d(/^([-\w]+)\s*/),!q)return l("@keyframes missing name");var V=q[1];if(!u())return l("@keyframes missing '{'");for(var qt,_e=y();qt=E();)_e.push(qt),_e=_e.concat(y());return h()?it({type:"keyframes",name:V,vendor:kt,keyframes:_e}):l("@keyframes missing '}'")}}function L(){var it=r(),q=d(/^@supports *([^{]+)/);if(q){var kt=Ds(q[1]);if(!u())return l("@supports missing '{'");var V=y().concat(f());return h()?it({type:"supports",supports:kt,rules:V}):l("@supports missing '}'")}}function W(){var it=r(),q=d(/^@host\s*/);if(q){if(!u())return l("@host missing '{'");var kt=y().concat(f());return h()?it({type:"host",rules:kt}):l("@host missing '}'")}}function vt(){var it=r(),q=d(/^@media *([^{]+)/);if(q){var kt=Ds(q[1]);if(!u())return l("@media missing '{'");var V=y().concat(f());return h()?it({type:"media",media:kt,rules:V}):l("@media missing '}'")}}function bt(){var it=r(),q=d(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(q)return it({type:"custom-media",name:Ds(q[1]),media:Ds(q[2])})}function Ct(){var it=r(),q=d(/^@page */);if(q){var kt=k()||[];if(!u())return l("@page missing '{'");for(var V=y(),qt;qt=I();)V.push(qt),V=V.concat(y());return h()?it({type:"page",selectors:kt,declarations:V}):l("@page missing '}'")}}function $t(){var it=r(),q=d(/^@([-\w]+)?document *([^{]+)/);if(q){var kt=Ds(q[1]),V=Ds(q[2]);if(!u())return l("@document missing '{'");var qt=y().concat(f());return h()?it({type:"document",document:V,vendor:kt,rules:qt}):l("@document missing '}'")}}function Vt(){var it=r(),q=d(/^@font-face\s*/);if(q){if(!u())return l("@font-face missing '{'");for(var kt=y(),V;V=I();)kt.push(V),kt=kt.concat(y());return h()?it({type:"font-face",declarations:kt}):l("@font-face missing '}'")}}var re=Ht("import"),oe=Ht("charset"),me=Ht("namespace");function Ht(it){var q=new RegExp("^@"+it+"\\s*([^;]+);");return function(){var kt=r(),V=d(q);if(V){var qt={type:it};return qt[it]=V[1].trim(),kt(qt)}}}function xt(){if(s[0]=="@")return tt()||vt()||bt()||L()||re()||oe()||me()||$t()||Ct()||W()||Vt()}function wt(){var it=r(),q=k();return q?(y(),it({type:"rule",selectors:q,declarations:M()})):l("selector missing")}return fa(c())}function Ds(s){return s?s.replace(/^\s+|\s+$/g,""):""}function fa(s,t){var e=s&&typeof s.type=="string",n=e?s:t;for(var i in s){var r=s[i];Array.isArray(r)?r.forEach(function(o){fa(o,n)}):r&&typeof r=="object"&&fa(r,n)}return e&&Object.defineProperty(s,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),s}const Gu=(s,t="image/svg+xml",e="utf-8")=>e==="base64"?new Blob([s],{type:`${t};${e}`}):new Blob([s],{type:`${t};charset=${e}`}),zu=s=>new XMLSerializer().serializeToString(s),Xm=(s,t="image/svg+xml",e="utf-8")=>Gu(zu(s),t,e),Bu=(s,t)=>new Promise(e=>{const n=document.createElement("a");n.style.visibility="hidden",document.body.appendChild(n),n.download=t,typeof s=="string"?n.href=s:n.href=window.URL.createObjectURL(s),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(n.href),e()});function Um(s=["*"],t){return new Promise((e,n)=>{if(!globalThis.document||!(globalThis.document instanceof Document))return n(new Error("This is not a browser environment"));const i=globalThis.document.createElement("input");i.setAttribute("type","file"),i.setAttribute("visibility","hidden"),Array.isArray(s)&&s.length>0&&i.setAttribute("accept",s.join(",")),t&&i.setAttribute("multiple","true"),globalThis.addEventListener("focus",()=>{setTimeout(()=>{(!i.files||i.files?.length===0)&&n(new Error("Cancel select"))},1e3)},{once:!0});const r=()=>{if(i.removeEventListener("change",r),!i.files||i.files?.length===0)n(new Error("Cancel select"));else{const o=Array.from(i.files);!s.includes("*")&&o.some(a=>!s.includes(`.${qm(a)}`))&&n(new Error(`Please select files in ${s} format`)),i.remove(),e(o)}};i.addEventListener("change",r),i.click()})}function Wm(s,t="text",e){return new Promise((n,i)=>{const r=new FileReader;switch(r.addEventListener("progress",o=>{e?.(o.loaded,o.total)}),r.addEventListener("load",o=>{n(o.target?.result)}),r.addEventListener("error",o=>{i(o)}),t){case"dataURL":r.readAsDataURL(s);break;case"binaryString":r.readAsBinaryString(s);break;case"arrayBuffer":r.readAsArrayBuffer(s);break;case"text":default:r.readAsText(s)}})}const qm=s=>{let t;return s instanceof File?t=s.name:t=s,t.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i)?.[1]??""};function kr(){const s=document.documentElement;return{clientX:s.getBoundingClientRect().x,clientY:s.getBoundingClientRect().y,clientWidth:s.clientWidth,clientHeight:s.clientHeight,clientTop:s.clientTop,clientLeft:s.clientLeft,scrollWidth:s.scrollWidth,scrollHeight:s.scrollHeight,scrollTop:s.scrollTop,scrollLeft:s.scrollLeft,offsetWidth:s.offsetWidth,offsetHeight:s.offsetHeight,offsetTop:s.offsetTop,offsetLeft:s.offsetLeft,offsetParent:s.offsetParent}}function ju(){const{clientWidth:s,clientHeight:t}=kr();return{width:s||window.innerWidth,height:t||window.innerHeight}}function Zm(s){const{top:t,left:e,width:n,height:i}=s.getBoundingClientRect(),{scrollLeft:r,scrollTop:o}=kr();return{x:e+r,y:t+o,width:n,height:i}}function Km(){const{clientHeight:s,scrollTop:t,scrollHeight:e}=kr(),n=e-s;return n<=0?0:t/n*100}function Qm(s){if("center"in s)return s.center;if(s.pageX&&s.pageY)return{x:s.pageX,y:s.pageY};const{scrollLeft:t,scrollTop:e}=kr();return{x:s.clientX+t,y:s.clientY+e}}function Jm(s,t){const e=Qm(t),n=Zm(s);return{x:e.x-n.x,y:e.y-n.y}}const tg=()=>{const s=navigator.userAgent.toLowerCase();let t="Unknown";return/mac/i.test(s)?t="macOS":/win/i.test(s)?t="Windows":/android/i.test(s)?t="Android":/iphone|ipad|ipod/i.test(s)?t="iOS":/linux/i.test(s)?t="Linux":/bsd/i.test(s)&&(t="BSD"),t.toLowerCase()};function eg(){return tg()==="macos"}function sg(){const s=window.navigator.userAgent,t=s.indexOf("MSIE ");if(t>0)return parseInt(s.substring(t+5,s.indexOf(".",t)),10);if(s.indexOf("Trident/")>0){const i=s.indexOf("rv:");return parseInt(s.substring(i+3,s.indexOf(".",i)),10)}const n=s.indexOf("Edge/");return n>0?parseInt(s.substring(n+5,s.indexOf(".",n)),10):-1}const pa=sg()!==-1;(()=>{const s=Pu();return!!(s.Worker&&s.Blob&&s.Promise&&s.OffscreenCanvas&&s.OffscreenCanvasRenderingContext2D&&s.HTMLCanvasElement&&s.HTMLCanvasElement.prototype.transferControlToOffscreen&&s.URL&&s.URL.createObjectURL)})(),function(){if(!Pu().OffscreenCanvas)return!1;const t=new OffscreenCanvas(1,1),e=t.getContext("2d");e.fillRect(0,0,1,1);const n=t.transferToImageBitmap();try{e.createPattern(n,"no-repeat")}catch{return!1}return!0}();function ng(s){const t=document.documentElement,e=window.top===window.self?window.devicePixelRatio:1;t.dataset.dpr=e;let n=100;const i=function(){const r=Math.min(t.clientWidth,s);t.dataset.width=r,t.dataset.rem=n=Math.round(100*(r/s)),t.style.fontSize=n+"px"};i(),window.rem2px=function(r){return r=parseFloat(r),r*n},window.px2rem=function(r){return r=parseFloat(r),r/n},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",i,!1)}function Dt(s){return s*Math.PI/180}function Be(s){return s*180/Math.PI}function ma(s,t,e=0){return Math.sqrt(s*s+t*t+e*e)}function ga(s,t,e,n){const i=s-e,r=t-n;return ma(i,r)}function ya(s,t,e,n){const i=s-e,r=t-n;return i*i+r*r}function Nn(s,t,e,n){const i=e-s,r=n-t;let o=Math.atan2(r,i);return o<0&&(o+=Math.PI*2),o}function Ms(s,t){return{dx:Math.cos(s)*t,dy:Math.sin(s)*t}}const yi=Math.PI*2;function Yu(s,t,e,n){const i=s*n-t*e<0?-1:1;let r=s*e+t*n;return r>1&&(r=1),r<-1&&(r=-1),i*Math.acos(r)}function ig(s,t,e,n,i,r,o,a,l,c){const u=c*(s-e)/2+l*(t-n)/2,h=-l*(s-e)/2+c*(t-n)/2,f=o*o,d=a*a,m=u*u,y=h*h;let _=f*d-f*y-d*m;_<0&&(_=0),_/=f*y+d*m,_=Math.sqrt(_)*(i===r?-1:1);const k=_*o/a*h,I=_*-a/o*u,M=c*k-l*I+(s+e)/2,E=l*k+c*I+(t+n)/2,tt=(u-k)/o,L=(h-I)/a,W=(-u-k)/o,vt=(-h-I)/a,bt=Yu(1,0,tt,L);let Ct=Yu(tt,L,W,vt);return r===0&&Ct>0&&(Ct-=yi),r===1&&Ct<0&&(Ct+=yi),[M,E,bt,Ct]}function rg(s,t){const e=1.3333333333333333*Math.tan(t/4),n=Math.cos(s),i=Math.sin(s),r=Math.cos(s+t),o=Math.sin(s+t);return[n,i,n-i*e,i+n*e,r+o*e,o-r*e,r,o]}function Hu(s,t,e,n,i,r,o,a,l){const c=Math.sin(l*yi/360),u=Math.cos(l*yi/360),h=u*(s-e)/2+c*(t-n)/2,f=-c*(s-e)/2+u*(t-n)/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=ig(s,t,e,n,i,r,o,a,c,u),y=[];let _=m[2],k=m[3];const I=Math.max(Math.ceil(Math.abs(k)/(yi/4)),1);k/=I;for(let M=0;M<I;M++)y.push(rg(_,k)),_+=k;return y.map(M=>{for(let E=0;E<M.length;E+=2){let tt=M[E+0],L=M[E+1];tt*=o,L*=a;const W=u*tt-c*L,vt=c*tt+u*L;M[E+0]=W+m[0],M[E+1]=vt+m[1]}return M})}function va(s,t,e,n,i,r){return[s/3+.6666666666666666*e,t/3+.6666666666666666*n,i/3+.6666666666666666*e,r/3+.6666666666666666*n,i,r]}function vi(s,t,e,n){return[s,t,e,n,e,n]}const Er={a:7,c:6,s:4,q:4,t:2,m:2,l:2,h:1,v:1,z:0};class bn{static createSVGElement(t="path",e){const n=document.createElementNS.call(document,"http://www.w3.org/2000/svg",t);return e&&U.attribute(n,e),n}static createSvgPath(t){return this.createSVGElement("path",{d:t})}static downloadFromSVGElement(t,e="shape"){return Bu(Xm(t),`${e}.svg`)}static downloadFromSVGString(t,e="shape"){return Bu(Gu(t),`${e}.svg`)}static getSVGRawStringFromElement(t){return zu(t)}static isSVGPath(t){return typeof t!="string"?!1:(t=t.trim(),/^[mlhvzaqtcs]\s*[-+.0-9][^mlhvzaqtcs]+/i.test(t)&&/[\dz]$/i.test(t))}static SVGPathDataToD(t){return t.map(e=>{if(!e[0])return"";switch(e[0].toLowerCase()){case"a":return`${e[0]} ${e[1]},${e[2]} ${e[3]} ${e[4]},${e[5]} ${e[6]},${e[7]}`;case"c":return`${e[0]} ${e[1]},${e[2]} ${e[3]},${e[4]} ${e[5]},${e[6]}`;case"s":case"q":return`${e[0]} ${e[1]},${e[2]} ${e[3]},${e[4]}`;default:return e[0]+" "+e.slice(1).join(",")}}).join(" ")}static parseSVGPath(t){const e=[];return t.replace(/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi,(n,i,r)=>{let o=i.toLowerCase();const a=ha(r);for(o=="m"&&a.length>Er[o]&&(e.push([i,...a.splice(0,Er[o])]),o="l",i=i=="m"?"l":"L");a.length;){if(a.length<Er[o])throw new Error(`parseSVGPath substring:{ ${n} } command:{ ${i} } args:{ ${a} }`);e.push([i,...a.splice(0,Er[o])])}return o=="z"&&e.push([i]),""}),e}static absolutizeSVGPath(t){let e=0,n=0,i=0,r=0;return t.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=e,r=n;break;case"H":i=o[1];break;case"V":r=o[1];break;case"M":i=e=o[1],r=n=o[2];break;default:i=o[o.length-2],r=o[o.length-1]}return o})}static relativeSVGPath(t){let e=0,n=0,i=0,r=0;return t.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=e,r=n;break;case"h":i+=o[1];break;case"v":r+=o[1];break;case"m":i+=o[1],r+=o[2],e+=o[1],n+=o[2];break;default:i+=o[o.length-2],r+=o[o.length-1]}return o})}static normalizeSVGPath(t){let e=[],n=0,i=0,r=0,o=0,a=0,l=0,c=0,u=0,h;for(let f=0,d=t.length;f<d;f++){let m=t[f];const y=m[0];switch(y){case"M":n=m[1],i=m[2];break;case"A":const _=Hu(r,o,m[6],m[7],m[4],m[5],m[1],m[2],m[3]);if(!_.length)continue;_.forEach((M,E)=>{const[tt,L,W,vt,bt,Ct,$t,Vt]=M;m=["C",W,vt,bt,Ct,$t,Vt],E<_.length-1&&e.push(m)});break;case"S":let k=r,I=o;(h=="C"||h=="S")&&(k+=k-c,I+=I-u),m=["C",k,I,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",...va(r,o,a,l,m[1],m[2])];break;case"Q":a=m[1],l=m[2],m=["C",...va(r,o,m[1],m[2],m[3],m[4])];break;case"L":m=["C",...vi(r,o,m[1],m[2])];break;case"H":m=["C",...vi(r,o,m[1],o)];break;case"V":m=["C",...vi(r,o,r,m[1])];break;case"Z":m=["C",...vi(r,o,n,i)];break}h=y,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),e.push(m)}return e}static catmullRom2bezier(t){let e=[];for(let n=0,i=t.length;i-2>n;n+=2){let r;n==0?r=[{x:t[n],y:t[n+1]},{x:t[n],y:t[n+1]},{x:t[n+2],y:t[n+3]},{x:t[n+4],y:t[n+5]}]:i-4==n?r=[{x:t[n-2],y:t[n-1]},{x:t[n],y:t[n+1]},{x:t[n+2],y:t[n+3]},{x:t[n+2],y:t[n+3]}]:r=[{x:t[n-2],y:t[n-1]},{x:t[n],y:t[n+1]},{x:t[n+2],y:t[n+3]},{x:t[n+4],y:t[n+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}];e.push(["C",o[1].x,o[1].y,o[2].x,o[2].y,o[3].x,o[3].y])}return e}static zvhToLSVGPath(t){let e=[],n=["L",0,0],i;for(let r=0,o=t.length;r<o;r++){let a=t[r];switch(a[0]){case"M":n=["L",a[1],a[2]],e.push(a);break;case"Z":e.push(n);break;case"H":i=e[e.length-1]||["L",0,0],e.push(["L",a[1],i[i.length-1]]);break;case"V":i=e[e.length-1]||["L",0,0],e.push(["L",i[i.length-2],a[1]]);break;default:e.push(a)}}return e}static longhandSVGPath(t){const e={S:{to:"C",x:3},T:{to:"Q",x:1}};let n,i=0,r=0;for(let o=0,a=t.length;o<a;o++){const l=t[o],c=e[l[0]];c&&(l[0]=c.to,n&&(n[0]===c.to?(i=2*Number(n[c.x+2])-Number(n[c.x]),r=2*Number(n[c.x+3])-Number(n[c.x+1])):(i=Number(n[n.length-2]),r=Number(n[n.length-1]))),l.splice(1,0,i,r)),n=l}return t}static curveDim(t,e,n,i,r,o,a,l){const c=[],u=[[],[]];let h,f,d,m,y,_,k,I;for(let L=0;L<2;++L){if(L===0?(f=6*t-12*n+6*r,h=-3*t+9*n-9*r+3*a,d=3*n-3*t):(f=6*e-12*i+6*o,h=-3*e+9*i-9*o+3*l,d=3*i-3*e),Math.abs(h)<1e-12){if(Math.abs(f)<1e-12)continue;m=-d/f,m>0&&m<1&&c.push(m);continue}k=f*f-4*d*h,I=Math.sqrt(k),!(k<0)&&(y=(-f+I)/(2*h),y>0&&y<1&&c.push(y),_=(-f-I)/(2*h),_>0&&_<1&&c.push(_))}let M=c.length,E;const tt=M;for(;M--;)m=c[M],E=1-m,u[0][M]=E*E*E*t+3*E*E*m*n+3*E*m*m*r+m*m*m*a,u[1][M]=E*E*E*e+3*E*E*m*i+3*E*m*m*o+m*m*m*l;return u[0][tt]=t,u[1][tt]=e,u[0][tt+1]=a,u[1][tt+1]=l,u[0].length=u[1].length=tt+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(t,e,n,i,r){const o=-3*e+9*n-9*i+3*r,a=t*o+6*e-12*n+6*i;return t*a-3*e+3*n}static bezlen(t,e,n,i,r,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],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472];let m=0;for(let y=0;y<h;y++){const _=u*f[y]+u,k=this.base3(_,t,n,r,a),I=this.base3(_,e,i,o,l),M=k*k+I*I;m+=d[y]*Math.sqrt(M)}return u*m}}const te=bn;class Xu extends Cr{shapes=[];removes=[];x;y;constructor(t){super(),this.x=t?.x||0,this.y=t?.y||0}register(...t){this.shapes.push(...t);const e=n=>(i,r)=>{this.shapes.forEach(o=>{o.id!==n.id&&o.enableDrag&&(o.x+=i,o.y+=r)}),this.x+=i,this.y+=r};t.forEach(n=>{const i=e(n);n.on("moving",i),this.removes.push(()=>{n.off("moving",i)})})}destroy(){this.removes.forEach(t=>t())}}class ee extends Cr{id;cX;cY;x;prevX;y;prevY;degree;prevDegree;scalexOnOrigin;scaleyOnOrigin;prevScalexOnOrigin;prevScaleyOnOrigin;skewxDegreeOnOrigin;skewyDegreeOnOrigin;prevSkewxDegreeOnOrigin;prevSkewyDegreeOnOrigin;transformBaseOnSelfInRenderGroup;vx;vy;ax;ay;mass;attrs;enableDrag;alongPath;isDragging=!1;isMouseIn=!1;mouseX=0;mouseY=0;targetToAfterDragFree;followMouse;isShow=!0;now=new Date().getTime();frameRate=60;strokeArmyAnts;strokeArmyAntsOffset=0;history=[];path2d=new Path2D;el;pathd;renderGroup;shapeGroup;autoRender;constructor(t){super(),this.id=Im(),this.cX=t?.cX||0,this.cY=t?.cY||0,this.prevX=this.x=t?.x||0,this.prevY=this.y=t?.y||0,this.prevDegree=this.degree=t?.degree||0,this.prevScalexOnOrigin=this.scalexOnOrigin=1,this.prevScaleyOnOrigin=this.scaleyOnOrigin=1,t?.scaleOnOrigin!==void 0&&(this.prevScalexOnOrigin=this.scalexOnOrigin=t.scaleOnOrigin,this.prevScaleyOnOrigin=this.scaleyOnOrigin=t.scaleOnOrigin),t?.scalexOnOrigin!==void 0&&(this.prevScalexOnOrigin=this.scalexOnOrigin=t.scalexOnOrigin),t?.scaleyOnOrigin!==void 0&&(this.prevScaleyOnOrigin=this.scaleyOnOrigin=t.scaleyOnOrigin),this.prevSkewxDegreeOnOrigin=this.skewxDegreeOnOrigin=t?.skewxDegreeOnOrigin||0,this.prevSkewyDegreeOnOrigin=this.skewyDegreeOnOrigin=t?.skewyDegreeOnOrigin||0,this.transformBaseOnSelfInRenderGroup=typeof t?.transformBaseOnSelfInRenderGroup=="boolean"?t.transformBaseOnSelfInRenderGroup:!1,this.vx=t?.vx||0,this.vy=t?.vy||0,this.ax=t?.ax||0,this.ay=t?.ay||0,this.mass=t?.mass||1,this.attrs=Object.assign({paintOrder:"stroke",stroke:"none",fill:"none"},Object.fromEntries(Object.entries(t?.attrs||{}).map(([e,n])=>[He(e),n]))),this.enableDrag=t?.enableDrag||!1,this.alongPath=t?.alongPath,this.targetToAfterDragFree=t?.targetToAfterDragFree,this.followMouse=t?.followMouse||!1,this.isShow=typeof t?.isShow=="boolean"?t?.isShow:!0,this.strokeArmyAnts=t?.strokeArmyAnts||!1,this.renderGroup=t?.renderGroup,this.shapeGroup=t?.shapeGroup,this.autoRender=typeof t?.autoRender=="boolean"?t?.autoRender:!1}save(){this.history.push($u(this))}restore(){const t=this.history.pop();t&&Rm(this,t)}group(...t){this.renderGroup||(this.renderGroup=new Xu({x:this.x,y:this.y}),this.renderGroup.register(this)),t.forEach(e=>{e.renderGroup=this.renderGroup,this.renderGroup?.register(e)})}ungroup(){this.renderGroup&&(this.renderGroup.shapes.forEach(t=>delete t.renderGroup),this.renderGroup.destroy(),this.renderGroup=void 0)}setAttr(t,e){Sr(t)?Object.assign(this.attrs,Object.fromEntries(Object.entries(t).map(([n,i])=>[He(n),i]))):typeof t=="string"&&e&&(this.attrs[He(t)]=e)}getAttr(t,e){return this.attrs[He(t)]||e}hasAttr(t){return!!this.attrs[He(t)]}get centerX(){const t=this.getBoundingClientRect();return t?t.x+t.width/2:this.x}get centerY(){const t=this.getBoundingClientRect();return t?t.y+t.height/2:this.y}get centerDiff(){return{dx:this.centerX-this.x,dy:this.centerY-this.y}}getBoundingClientRect(){return null}frameUpdate(){const t=new Date().getTime();if(!(t-this.now<1e3/this.frameRate)&&(this.now=t,this.strokeArmyAnts&&!this.isMouseIn)){const e=this.getAttr("stroke-dasharray","4 4");if(typeof e=="string"){this.setAttr("stroke-dasharray",e);const n=ha(e);this.setAttr("stroke-dashoffset",String(this.strokeArmyAntsOffset++)),this.strokeArmyAntsOffset>n.reduce((i,r)=>i+r,0)&&(this.strokeArmyAntsOffset=0)}}}toSVGPathD(t=!1){let e=[];const n=this.toSVGPathData();return n[0]&&Array.isArray(n[0])?e.push(...n):e.push(n),t&&(e=te.relativeSVGPath(e)),te.SVGPathDataToD(e)}distance(t){return ga(this.x,this.y,t.x,t.y)}rotateTo(t){this.degree=Be(Nn(this.x,this.y,t.x,t.y))}followTo(t,e=3){this.rotateTo(t);const{dx:n,dy:i}=Ms(Dt(this.degree),e);this.vx=n,this.vy=i,this.nextFrame()}followAccelerationTo(t,e=.05){this.rotateTo(t);const{dx:n,dy:i}=Ms(Dt(this.degree),e);this.ax=n,this.ay=i,this.nextFrame()}checkCollision(t){}gravitate(t){const e=t.x-this.x,n=t.y-this.y,i=e*e+n*n,r=Math.sqrt(i),o=this.mass*t.mass/i,a=o*e/r,l=o*n/r;this.vx+=a/this.mass,this.vy+=l/this.mass,t.vx-=a/t.mass,t.vy-=l/t.mass}static comboGravitate(t){const e=t.length;t.forEach((n,i)=>{n.nextFrame();for(let r=i+1;r<e;r++)n.checkCollision(t[r]),n.gravitate(t[r])})}nextFrame(t){this.vx+=this.ax,this.vy+=this.ay;const e=t?.gravity??0;this.vy+=e;const n=t?.friction??1;this.vx*=n,this.vy*=n,this.x+=this.vx,this.y+=this.vy}nextFrameEaseTo(t,e){const n=e?.easing??.05,{dx:i,dy:r}=this.centerDiff,o=t.x-i-this.x,a=t.y-r-this.y;this.vx=o*n,this.vy=a*n,this.nextFrame(e)}nextFrameSpringTo(t,e){const n=e?.spring??.03,{dx:i,dy:r}=this.centerDiff;(Array.isArray(t)?t:[t]).forEach(o=>{const a=o.x-i-this.x,l=o.y-r-this.y,c=a*n,u=l*n;this.vx+=c,this.vy+=u}),this.nextFrame({friction:.9,...e})}static comboSpringChain(t,e){t.forEach((n,i)=>{i>0&&n.nextFrameSpringTo(t[i-1],e)})}static comboSpringConnect(t,e){const n=e?.springLength??100;t.forEach(i=>{i.isDragging||t.filter(r=>r.id!==i.id).forEach(r=>{const o=Nn(i.x,i.y,r.x,r.y);i.nextFrameSpringTo({x:r.x-Math.cos(o)*n,y:r.y-Math.sin(o)*n},e)})})}spring(t,e){const n=e?.springLength??100,i=e?.spring??1e-4;let r=[0,0,0,0,0];const o=t.x-this.x,a=t.y-this.y,l=Math.sqrt(o*o+a*a);if(l<n){r=[this.x,this.y,t.x,t.y,1-l/n];const c=o*i,u=a*i;this.vx+=c/this.mass,this.vy+=u/this.mass,t.vx-=c/t.mass,t.vy-=u/t.mass}return r}static comboSpringMass(t,e,n){const i=[];return t.forEach((r,o)=>{r.nextFrame(n),r.x>e.x+e.width?r.x=e.x:r.x<e.x&&(r.x=e.x+e.width),r.y>e.y+e.height?r.y=e.y:r.y<e.y&&(r.y=e.y+e.height);for(let a=o+1,l=t.length;a<l;a++)i.push(r.spring(t[a],n))}),i}}class _a extends ee{x;y;z;fl;vpX;vpY;cX;cY;cZ;radius;constructor(t){super(t),this.x=t?.x||0,this.y=t?.y||0,this.z=t?.z||0,this.fl=t?.fl||250,this.vpX=t?.vpX||0,this.vpY=t?.vpY||0,this.cX=t?.cX||0,this.cY=t?.cY||0,this.cZ=t?.cZ||0,this.radius=t?.radius||0}getBoundingClientRect(){return null}toSVGPathData(){return this.radius?[["M",this.getScreenX(),this.getScreenY()-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.getScreenX(),this.getScreenY()]}toCanvasContext(t){t.beginPath(),t.arc(0,0,this.radius,0,Math.PI*2,!0),t.closePath()}setVanishingPoint(t,e){this.vpX=t,this.vpY=e}setCenter(t,e,n){this.cX=t,this.cY=e,this.cZ=n}rotateX(t){({x:this.y,y:this.z}=gs(Dt(t),this.y,this.z))}rotateY(t){({x:this.x,y:this.z}=gs(Dt(t),this.x,this.z))}rotateZ(t){({x:this.x,y:this.y}=gs(Dt(t),this.x,this.y))}getScreenX(){const t=this.fl/(this.fl+this.z+this.cZ);return this.vpX+(this.cX+this.x)*t}getScreenY(){const t=this.fl/(this.fl+this.z+this.cZ);return this.vpY+(this.cY+this.y)*t}eq(t){return this.x===t.x&&this.y===t.y&&this.z===t.z&&this.radius===t.radius&&this.mass===t.mass}length(){return ma(this.x,this.y,this.z)}distance(t){const e=t.x-this.x,n=t.y-this.y,i=t.z-this.z;return Math.sqrt(e*e+n*n+i*i)}scalar(t){return this.x*=t,this.y*=t,this.z*=t,this}normalize(t=1){const e=this.length();if(e){const n=t/e;this.scalar(n)}return this}clamp(t){const e=this.length();return e&&e>t&&this.scalar(t/e),this}cross(t){const e=this.x,n=this.y,i=this.z;return{x:n*t.z-i*t.y,y:i*t.x-e*t.z,z:e*t.y-n*t.x}}multiply(t){return{x:this.x*t.x,y:this.y*t.y,z:this.z*t.z}}div(t){return{x:this.x/t.x,y:this.y/t.y,z:this.z/t.z}}add(t){return{x:this.x+t.x,y:this.y+t.y,z:this.z+t.z}}sub(t){return{x:this.x-t.x,y:this.y-t.y,z:this.z-t.z}}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}reflect(t){const e=this.dot(t);return{x:this.x-2*e*t.x,y:this.y-2*e*t.y,z:this.z-2*e*t.z}}clone(t){return new _a({x:t.x,y:t.y,z:t.z,radius:t.radius,mass:t.mass})}}const Tr=_a;class ge extends ee{width;height;borderRadius;constructor(t){super(t),this.width=t.width,this.height=t.height,this.borderRadius=t.borderRadius||0}static fromBezier(t,e,n,i,r,o,a,l){const c=bn.curveDim(t,e,n,i,r,o,a,l);return new ge({x:c.min.x,y:c.min.y,width:c.max.x-c.min.x,height:c.max.y-c.min.y})}getBoundingClientRect(){return new ge({x:this.x,y:this.y,width:this.width,height:this.height})}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(t){t.beginPath(),this.borderRadius<=0?t.rect(0,0,this.width,this.height):(t.moveTo(0,this.borderRadius),t.lineTo(0,this.height-this.borderRadius),t.quadraticCurveTo(0,this.height,this.borderRadius,this.height),t.lineTo(this.width-this.borderRadius,this.height),t.quadraticCurveTo(this.width,this.height,this.width,this.height-this.borderRadius),t.lineTo(this.width,this.borderRadius),t.quadraticCurveTo(this.width,0,this.width-this.borderRadius,0),t.lineTo(this.borderRadius,0),t.quadraticCurveTo(0,0,0,this.borderRadius)),t.closePath()}eq(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height&&this.borderRadius===t.borderRadius}isIntersectRect(t){return!(this.x+this.width<t.x||t.x+t.width<this.x||this.y+this.height<t.y||t.y+t.height<this.y)}isContainPoint(t,e){return t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height}clone(t){return new ge({x:t.x,y:t.y,width:t.width,height:t.height,borderRadius:t.borderRadius})}toArray(){return[this.x,this.y,this.width,this.height,this.borderRadius]}}const _i=ge,Uu=[1,0,0,1,0,0],Wu=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class je{value;m13_value=0;m23_value=0;m33_value=1;matrix3d;constructor(t=Uu){this.value=Array.from(t),this.m13=0,this.m23=0,this.m33=1,this.matrix3d=this.toMatrix3D()}get m11(){return this.value[0]}get m12(){return this.value[1]}get m13(){return this.m13_value}get m21(){return this.value[2]}get m22(){return this.value[3]}get m23(){return this.m23_value}get m31(){return this.value[4]}get m32(){return this.value[5]}get m33(){return this.m33_value}set m11(t){this.value[0]=t}set m12(t){this.value[1]=t}set m13(t){this.m13_value=t}set m21(t){this.value[2]=t}set m22(t){this.value[3]=t}set m23(t){this.m23_value=t}set m31(t){this.value[4]=t}set m32(t){this.value[5]=t}set m33(t){this.m33_value=t}toMatrix3D(t=this.matrix3d){const e=[this.m11,this.m12,0,this.m13,this.m21,this.m22,0,this.m23,0,0,1,0,this.m31,this.m32,0,this.m33];return t?(t.value=e,t):new qs(e)}identity(){return this.value=Array.from(Uu),this.m13=0,this.m23=0,this.m33=1,this.matrix3d=this.toMatrix3D(),this}isIdentity(){return this.m11==1&&this.m12==0&&this.m13==0&&this.m21==0&&this.m22==1&&this.m23==0&&this.m31==0&&this.m32==0&&this.m33==1}scalar(t){return this.m11*=t,this.m12*=t,this.m13*=t,this.m21*=t,this.m22*=t,this.m23*=t,this.m31*=t,this.m32*=t,this.m33*=t,this}normalize(){const t=this.m33||1e-4;return this.scalar(1/t)}applyToPoint(t,e,n=0,i=0){const r=t-n,o=e-i;return t=this.m11*r+this.m21*o+this.m31,e=this.m12*r+this.m22*o+this.m32,{x:t+n,y:e+i}}fromString(t){const e=Mu("number",t);return e.length===6?(e.forEach((n,i)=>{n.fullMatch&&(this.value[i]=parseFloat(n.fullMatch))}),this.m13=0,this.m23=0,this.m33=1):this.identity(),this}clone(){const t=new je;return t.m11=this.m11,t.m12=this.m12,t.m13=this.m13,t.m21=this.m21,t.m22=this.m22,t.m23=this.m23,t.m31=this.m31,t.m32=this.m32,t.m33=this.m33,t}multiply(t){const e=this.clone();let n;return t instanceof je?n=t:n=new je(t),this.m11=n.m11*e.m11+n.m12*e.m21+n.m13*e.m31,this.m12=n.m11*e.m12+n.m12*e.m22+n.m13*e.m32,this.m13=n.m11*e.m13+n.m12*e.m23+n.m13*e.m33,this.m21=n.m21*e.m11+n.m22*e.m21+n.m23*e.m31,this.m22=n.m21*e.m12+n.m22*e.m22+n.m23*e.m32,this.m23=n.m21*e.m13+n.m22*e.m23+n.m23*e.m33,this.m31=n.m31*e.m11+n.m32*e.m21+n.m33*e.m31,this.m32=n.m31*e.m12+n.m32*e.m22+n.m33*e.m32,this.m33=n.m31*e.m13+n.m32*e.m23+n.m33*e.m33,this}append(t){return this.multiply(t)}prepend(t){return t.multiply(this),this}inverse(){const t=this.m11,e=this.m12,n=this.m21,i=this.m22,r=this.m31,o=this.m32,a=t*i-e*n;return this.m11=i/a,this.m12=-e/a,this.m21=-n/a,this.m22=t/a,this.m31=(n*o-i*r)/a,this.m32=-(t*o-e*r)/a,this.m13=0,this.m23=0,this.m33=1,this}adjugate(){const t=new je;return t.m11=this.m22*this.m33-this.m32*this.m23,t.m12=this.m32*this.m13-this.m12*this.m33,t.m13=this.m12*this.m23-this.m22*this.m13,t.m21=this.m31*this.m23-this.m21*this.m33,t.m22=this.m11*this.m33-this.m31*this.m13,t.m23=this.m21*this.m13-this.m11*this.m23,t.m31=this.m21*this.m32-this.m31*this.m22,t.m32=this.m31*this.m12-this.m11*this.m32,t.m33=this.m11*this.m22-this.m21*this.m12,t}split(){let t=Be(Math.atan2(this.m12,this.m11));return this.m11<0&&this.m22>=0&&(t+=180),{x:this.m31,y:this.m32,rotate:t,scaleX:Math.sqrt(this.m11*this.m11+this.m12*this.m12),scaleY:Math.sqrt(this.m21*this.m21+this.m22*this.m22),skewX:Be(Math.atan2(-this.m21,this.m22)),skewY:Be(Math.atan2(this.m12,this.m11))}}getGroupCoords(t){const e=this.value[0],n=this.value[1],i=this.value[2],r=this.value[3],o=this.value[4],a=this.value[5],l=t.value[0],c=t.value[1],u=t.value[2],h=t.value[3],f=t.value[4],d=t.value[5],m=l*h,y=c*u,_=(u*n-e*h)/(y-m),k=(l*n-e*c)/(m-y),I=(u*r-i*h)/(y-m),M=(l*r-i*c)/(m-y),E=(u*(a-d)+h*(f-o))/(y-m),tt=(l*(a-d)+c*(f-o))/(m-y),L=[_,k,I,M,E,tt];return new je(L)}toString(t=6){return this.matrix3d.is2D()?`matrix(${this.value.map(e=>Ze(e,t)).join(",")})`:this.matrix3d.toString()}translate(t,e){return this.multiply([1,0,0,1,t,e]),this.toMatrix3D(),this}translateTo(t,e){return this.translate(t-this.m31,e-this.m32)}translateX(t){return this.translate(t,0)}translateXTo(t){return this.translateTo(t,this.m32)}translateY(t){return this.translate(0,t)}translateYTo(t){return this.translateTo(this.m31,t)}translateZ(t){return this.matrix3d.translate(0,0,t),this.matrix3d.toMatrix(this),this}translateZTo(t){return this.translateZ(t-this.matrix3d.m43),this}translate3d(t,e,n){return this.matrix3d.translate(t,e,n),this.matrix3d.toMatrix(this),this}translate3dTo(t,e,n){return this.translate3d(t-this.matrix3d.m41,e-this.matrix3d.m42,n-this.matrix3d.m43),this}rotate(t,e=0,n=0){const i=Dt(t),r=Math.cos(i),o=Math.sin(i);return this.multiply([r,o,-o,r,e,n]),this.translate(-e,-n),this.toMatrix3D(),this}rotateTo(t,e=0,n=0){const{rotate:i}=this.split();return this.rotate(t-i,e,n),this}rotateX(t){return this.matrix3d.rotate(t,0,0),this.matrix3d.toMatrix(this),this}rotateXTo(t){const{rotateX:e}=this.matrix3d.split();return this.rotateX(t-e),this}rotateY(t){return this.matrix3d.rotate(0,t,0),this.matrix3d.toMatrix(this),this}rotateYTo(t){const{rotateY:e}=this.matrix3d.split();return this.rotateY(t-e),this}rotateZ(t){return this.matrix3d.rotate(0,0,t),this.matrix3d.toMatrix(this),this}rotateZTo(t){const{rotateZ:e}=this.matrix3d.split();return this.rotateZ(t-e),this}rotate3d(t,e,n){return this.matrix3d.rotate(t,e,n),this.matrix3d.toMatrix(this),this}rotate3dTo(t,e,n){const{rotateX:i,rotateY:r,rotateZ:o}=this.matrix3d.split();return this.rotate3d(t-i,e-r,n-o),this}scale(t,e=t,n=0,i=0){return this.multiply([t,0,0,e,n,i]),this.translate(-n,-i),this.toMatrix3D(),this}scaleTo(t,e=t,n=0,i=0){return this.scale(t/this.m11,e/this.m22,n,i)}scaleX(t){return this.scale(t,1)}scaleXTo(t){return this.scale(t/this.m11,1)}scaleY(t){return this.scale(1,t)}scaleYTo(t){return this.scale(1,t/this.m22)}scaleZ(t){return this.matrix3d.scale(1,1,t),this.matrix3d.toMatrix(this),this}scaleZTo(t){const{scaleZ:e}=this.matrix3d.split();return this.scaleZ(t/e),this}scale3d(t,e=t,n=t){return this.matrix3d.scale(t,e,n),this.matrix3d.toMatrix(this),this}scale3dTo(t,e=t,n=t){const{scaleX:i,scaleY:r,scaleZ:o}=this.matrix3d.split();return this.scale3d(t/i,e/r,n/o),this}skew(t,e=t){return this.multiply([Math.cos(Dt(e)),Math.sin(Dt(e)),-Math.sin(Dt(t)),Math.cos(Dt(t)),0,0]),this.toMatrix3D(),this}skewTo(t,e=t){const{skewX:n,skewY:i}=this.split();return this.skew(t-n,e-i)}skewX(t){const{skewY:e}=this.split();return this.skew(t,e)}skewXTo(t){const{skewY:e}=this.split();return this.skewTo(t,e)}skewY(t){const{skewX:e}=this.split();return this.skew(e,t)}skewYTo(t){const{skewX:e}=this.split();return this.skewTo(e,t)}skewZ(t){return this}skewZTo(t){return this}skew3d(t,e,n){return this}skew3dTo(t,e,n){return this}perspective(t){return this.matrix3d.perspective(t),this.matrix3d.toMatrix(this),this}}class qs{value;is3dSpecial=!1;constructor(t=Wu){this.value=Array.from(t)}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]}set m11(t){this.value[0]=t}set m12(t){this.value[1]=t}set m13(t){this.value[2]=t}set m14(t){this.value[3]=t}set m21(t){this.value[4]=t}set m22(t){this.value[5]=t}set m23(t){this.value[6]=t}set m24(t){this.value[7]=t}set m31(t){this.value[8]=t}set m32(t){this.value[9]=t}set m33(t){this.value[10]=t}set m34(t){this.value[11]=t}set m41(t){this.value[12]=t}set m42(t){this.value[13]=t}set m43(t){this.value[14]=t}set m44(t){this.value[15]=t}is2D(){return!this.is3dSpecial&&this.m31==0&&this.m32==0&&this.m33==1&&this.m34==0&&this.m43==0&&this.m44==1}is3D(){return!this.is2D()}identity(){return this.value=Array.from(Wu),this}isIdentity(){return this.m11==1&&this.m12==0&&this.m13==0&&this.m14==0&&this.m21==0&&this.m22==1&&this.m23==0&&this.m24==0&&this.m31==0&&this.m32==0&&this.m33==1&&this.m34==0&&this.m41==0&&this.m42==0&&this.m43==0&&this.m44==1}clone(){const t=new qs;return t.m11=this.m11,t.m12=this.m12,t.m13=this.m13,t.m14=this.m14,t.m21=this.m21,t.m22=this.m22,t.m23=this.m23,t.m24=this.m24,t.m31=this.m31,t.m32=this.m32,t.m33=this.m33,t.m34=this.m34,t.m41=this.m41,t.m42=this.m42,t.m43=this.m43,t.m44=this.m44,t}scalar(t){return this.m11*=t,this.m12*=t,this.m13*=t,this.m14*=t,this.m21*=t,this.m22*=t,this.m23*=t,this.m24*=t,this.m31*=t,this.m32*=t,this.m33*=t,this.m34*=t,this.m41*=t,this.m42*=t,this.m43*=t,this.m44*=t,this}normalize(){return this.scalar(1/(this.m44||1e-4))}applyToPoint(t){const e=t.x*this.m11+t.y*this.m21+t.z*this.m31+t.mass*this.m41,n=t.x*this.m12+t.y*this.m22+t.z*this.m32+t.mass*this.m42,i=t.x*this.m13+t.y*this.m23+t.z*this.m33+t.mass*this.m43,r=t.x*this.m14+t.y*this.m24+t.z*this.m34+t.mass*this.m44;t.x=e,t.y=n,t.z=i,t.mass=r}fromString(t){const e=Mu("number",t);return e.length===16?e.forEach((n,i)=>{n.fullMatch&&(this.value[i]=parseFloat(n.fullMatch))}):this.identity(),this}toMatrix(t){const{scaleX:e,scaleY:n,skewX:i,skewY:r,x:o,y:a}=this.split(),l=[e,r,i,n,o,a];return t?(t.value=l,t):new je(l)}flatten(){return this.m31=0,this.m32=0,this.m33=1,this.m34=0,this.m14=0,this.m24=0,this.m43=0,this.m44=1,this}toString(t=6){return`matrix3d(${this.value.map(e=>Ze(e,t)).join(",")})`}split(){const t=Math.sqrt(this.m11*this.m11+this.m12*this.m12+this.m13*this.m13),e=Math.sqrt(this.m21*this.m21+this.m22*this.m22+this.m23*this.m23),n=Math.sqrt(this.m31*this.m31+this.m32*this.m32+this.m33*this.m33);let i=Be(Xe(Math.asin(-this.m13),-1,1)),r=Be(Math.atan2(this.m23,this.m33));Math.cos(Dt(i))===0&&(r=Be(Math.atan2(-this.m31,this.m22)));let o=Be(Math.atan2(this.m12,this.m11));return this.m11<0&&this.m22>=0&&(o+=180),{x:this.m41,y:this.m42,z:this.m43,scaleX:t,scaleY:e,scaleZ:n,rotateX:r,rotateY:i,rotateZ:o,skewX:Be(this.m14),skewY:Be(this.m24),skewZ:Be(this.m34),skewW:this.m44,perspective:this.m34?-(1/this.m34):0}}inverse(){const t=[],e=this.m11,n=this.m12,i=this.m13,r=this.m14,o=this.m21,a=this.m22,l=this.m23,c=this.m24,u=this.m31,h=this.m32,f=this.m33,d=this.m34,m=this.m41,y=this.m42,_=this.m43,k=this.m44;t[0]=l*d*y-c*f*y+c*h*_-a*d*_-l*h*k+a*f*k,t[1]=r*f*y-i*d*y-r*h*_+n*d*_+i*h*k-n*f*k,t[2]=i*c*y-r*l*y+r*a*_-n*c*_-i*a*k+n*l*k,t[3]=r*l*h-i*c*h-r*a*f+n*c*f+i*a*d-n*l*d;const I=e*t[0]+o*t[1]+u*t[2]+m*t[3];if(I==0)return console.warn("Can't invert matrix, determinant is 0");t[4]=c*f*m-l*d*m-c*u*_+o*d*_+l*u*k-o*f*k,t[5]=i*d*m-r*f*m+r*u*_-e*d*_-i*u*k+e*f*k,t[6]=r*l*m-i*c*m-r*o*_+e*c*_+i*o*k-e*l*k,t[7]=i*c*u-r*l*u+r*o*f-e*c*f-i*o*d+e*l*d,t[8]=a*d*m-c*h*m+c*u*y-o*d*y-a*u*k+o*h*k,t[9]=r*h*m-n*d*m-r*u*y+e*d*y+n*u*k-e*h*k,t[10]=n*c*m-r*a*m+r*o*y-e*c*y-n*o*k+e*a*k,t[11]=r*a*u-n*c*u-r*o*h+e*c*h+n*o*d-e*a*d,t[12]=l*h*m-a*f*m-l*u*y+o*f*y+a*u*_-o*h*_,t[13]=n*f*m-i*h*m+i*u*y-e*f*y-n*u*_+e*h*_,t[14]=i*a*m-n*l*m-i*o*y+e*l*y+n*o*_-e*a*_,t[15]=n*l*u-i*a*u+i*o*h-e*l*h-n*o*f+e*a*f,this.value=t,this.scalar(1/I)}multiply(t){const e=this.clone(),n=t.m11*e.m11+t.m12*e.m21+t.m13*e.m31+t.m14*e.m41,i=t.m11*e.m12+t.m12*e.m22+t.m13*e.m32+t.m14*e.m42,r=t.m11*e.m13+t.m12*e.m23+t.m13*e.m33+t.m14*e.m43,o=t.m11*e.m14+t.m12*e.m24+t.m13*e.m34+t.m14*e.m44,a=t.m21*e.m11+t.m22*e.m21+t.m23*e.m31+t.m24*e.m41,l=t.m21*e.m12+t.m22*e.m22+t.m23*e.m32+t.m24*e.m42,c=t.m21*e.m13+t.m22*e.m23+t.m23*e.m33+t.m24*e.m43,u=t.m21*e.m14+t.m22*e.m24+t.m23*e.m34+t.m24*e.m44,h=t.m31*e.m11+t.m32*e.m21+t.m33*e.m31+t.m34*e.m41,f=t.m31*e.m12+t.m32*e.m22+t.m33*e.m32+t.m34*e.m42,d=t.m31*e.m13+t.m32*e.m23+t.m33*e.m33+t.m34*e.m43,m=t.m31*e.m14+t.m32*e.m24+t.m33*e.m34+t.m34*e.m44,y=t.m41*e.m11+t.m42*e.m21+t.m43*e.m31+t.m44*e.m41,_=t.m41*e.m12+t.m42*e.m22+t.m43*e.m32+t.m44*e.m42,k=t.m41*e.m13+t.m42*e.m23+t.m43*e.m33+t.m44*e.m43,I=t.m41*e.m14+t.m42*e.m24+t.m43*e.m34+t.m44*e.m44;return this.m11=n,this.m12=i,this.m13=r,this.m14=o,this.m21=a,this.m22=l,this.m23=c,this.m24=u,this.m31=h,this.m32=f,this.m33=d,this.m34=m,this.m41=y,this.m42=_,this.m43=k,this.m44=I,this}translate(t=0,e=0,n=0){return this.multiply(new qs([1,0,0,0,0,1,0,0,0,0,1,0,t,e,n,1]))}scale(t=1,e=1,n=1){return this.multiply(new qs([t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1]))}skew(t=0,e=0,n=0){return this.multiply(new qs([1,0,0,Dt(t),0,1,0,Dt(e),0,0,1,Dt(n),0,0,0,1]))}rotate(t=0,e=0,n=0){n&&(this.is3dSpecial=!0);const i=Dt(t),r=Dt(e),o=Dt(n),a=Math.cos(i),l=Math.sin(i),c=Math.cos(r),u=Math.sin(r),h=Math.cos(o),f=Math.sin(o),d=a*h,m=a*f,y=l*h,_=l*f;return this.m11=c*h,this.m21=-c*f,this.m31=u,this.m12=m+y*u,this.m22=d-_*u,this.m32=-l*c,this.m13=_-d*u,this.m23=y+m*u,this.m33=a*c,this}perspective(t){return this.multiply(new qs([1,0,0,0,0,1,0,0,0,0,1,t?-(1/t):0,0,0,0,1]))}unproject(t){let e=t.x*this.m11+t.y*this.m21+this.m41,n=t.x*this.m12+t.y*this.m22+this.m42,i=t.x*this.m13+t.y*this.m23+this.m43,r=t.x*this.m14+t.y*this.m24+this.m44,o=e+this.m31,a=n+this.m32,l=i+this.m33,c=r+this.m34;r==0&&(r=1e-4),e/=r,n/=r,i/=r,c==0&&(c=1e-4),o/=c,a/=c,l/=c;const u=l-i;if(u==0)return{x:e,y:n,z:i,mass:r};const h=-i/u;return e+=h*(o-e),n+=h*(a-n),{x:e,y:n,z:i,mass:r}}project(t){let e=t.z,n=t.x*this.m11+t.y*this.m21+e*this.m31+this.m41,i=t.x*this.m12+t.y*this.m22+e*this.m32+this.m42,r=t.x*this.m14+t.y*this.m24+e*this.m34+this.m44;return r==0&&(r=1e-4),n/=r,i/=r,r<0&&(n-=this.m41,i-=this.m42,n*=1/r,i*=1/r,n+=this.m41,i+=this.m42),{x:n,y:i,z:e,mass:r}}bounds(t,e,n,i){const r=new Tr({x:t,y:e}),o=new Tr({x:t+n,y:e}),a=new Tr({x:t+n,y:e+i}),l=new Tr({x:t,y:e+i});({x:r.x,y:r.y,z:r.z,mass:r.mass}=this.project(r)),{x:o.x,y:o.y,z:o.z,mass:o.mass}=this.project(o),{x:a.x,y:a.y,z:a.z,mass:a.mass}=this.project(a),{x:l.x,y:l.y,z:l.z,mass:l.mass}=this.project(l);const c=Math.min(r.x,o.x,a.x,l.x),u=Math.min(r.y,o.y,a.y,l.y),h=Math.max(r.x,o.x,a.x,l.x)-c,f=Math.max(r.y,o.y,a.y,l.y)-u;return new _i({x:c,y:u,width:h,height:f})}}function qu(s){const t=new je;return s.replace(/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,function(e,n,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(n.toLowerCase()){case"t":case"translate":t.translate(r[0],r[1]);break;case"translatex":t.translateX(r[0]);break;case"translatey":t.translateY(r[0]);break;case"translatez":t.translateZ(r[0]);break;case"translate3d":t.translate3d(r[0],r[1],r[2]);break;case"r":case"rotate":t.rotate(r[0],r[1]??0,r[2]??0);break;case"rotatex":t.rotateX(r[0]);break;case"rotatey":t.rotateY(r[0]);break;case"rotatez":t.rotateZ(r[0]);break;case"rotate3d":t.rotate3d(r[0],r[1],r[2]);break;case"s":case"scale":t.scale(r[0],r[1]??r[0]);break;case"scalex":t.scaleX(r[0]);break;case"scaley":t.scaleY(r[0]);break;case"scalez":t.scaleZ(r[0]);break;case"scale3d":t.scale3d(r[0],r[1],r[2]);break;case"skew":t.skew(r[0],r[1]??0);break;case"skewx":t.skewX(r[0]);break;case"skewy":t.skewY(r[0]);break;case"skewz":t.skewZ(r[0]);break;case"skew3d":t.skew3d(r[0],r[1],r[2]);break;case"m":case"matrix":t.multiply([r[0],r[1],r[2],r[3],r[4],r[5]]),t.toMatrix3D();break;case"matrix3d":t.matrix3d.multiply(new qs(r)),t.matrix3d.toMatrix(t);break}return""}),t}function gs(s,t,e,n=0,i=0){const r=new je;return r.rotate(Be(s),n,i),r.applyToPoint(t,e,n,i)}function og(s){const{tx:t,ty:e,scaleX:n,scaleY:i,degree:r}=ua(s||{},{tx:0,ty:0,scaleX:1,scaleY:1,degree:0}),o=new DOMMatrix([Math.cos(Dt(r))*n,Math.sin(Dt(r))*n,-Math.sin(Dt(r))*i,Math.cos(Dt(r))*i,t,e]);return o.multiplySelf(new DOMMatrix(s?.originMatrix)),o}class U{static onDocumentReady(t){let e=!1;function n(){document.readyState==="loading"||e||(e=!0,t(),document.removeEventListener("DOMContentLoaded",n))}typeof document<"u"&&(document.addEventListener("DOMContentLoaded",n),n())}static onBeforeUnload(t){function e(){t(),document.removeEventListener("beforeunload",e)}typeof document<"u"&&document.addEventListener("beforeunload",e)}static getCSSVar(t){return getComputedStyle(document.documentElement).getPropertyValue(t)}static setCSSVar(t,e){document.documentElement.style.setProperty(t,e)}static add3DSupport(t,e="1000px"){if(t.parentElement){const n=U.getStyle(t.parentElement,"position");U.setStyle(t.parentElement,{position:n=="static"?"relative":n,perspective:e})}U.setStyle(t,{"transform-style":"preserve-3d"})}static convertAttrs(t,e,n={}){n.hasOwnProperty("transform")||Object.assign(n,{transform:U.getStyle(t,"transform")||""});const i=qu(n.transform),r={};for(let o in e){const a=e[o];switch(o){case"transform":break;case"translate":i.translate(a[0]||0,a[1]||0);break;case"translateTo":i.translateTo(a[0]||0,a[1]||0);break;case"translateX":i.translateX(a||0);break;case"translateXTo":i.translateXTo(a||0);break;case"translateY":i.translateY(a||0);break;case"translateYTo":i.translateYTo(a||0);break;case"translateZ":i.translateZ(a||0);break;case"translateZTo":i.translateZTo(a||0);break;case"translate3d":i.translate3d(a[0]||0,a[1]||0,a[2]||0);break;case"translate3dTo":i.translate3dTo(a[0]||0,a[1]||0,a[2]||0);break;case"rotate":typeof a=="number"?i.rotate(a||0):i.rotate(a[0]||0,a[1]||0,a[2]||0);break;case"rotateTo":typeof a=="number"?i.rotateTo(a||0):i.rotateTo(a[0]||0,a[1]||0,a[2]||0);break;case"rotateX":i.rotateX(a||0);break;case"rotateXTo":i.rotateXTo(a||0);break;case"rotateY":i.rotateY(a||0);break;case"rotateYTo":i.rotateYTo(a||0);break;case"rotateZ":i.rotateZ(a||0);break;case"rotateZTo":i.rotateZTo(a||0);break;case"rotate3d":i.rotate3d(a[0]||0,a[1]||0,a[2]||0);break;case"rotate3dTo":i.rotate3dTo(a[0]||0,a[1]||0,a[2]||0);break;case"scale":typeof a=="number"?i.scale(a||1):i.scale(a[0]||1,a[1]||1,a[2]||0,a[3]||0);break;case"scaleTo":typeof a=="number"?i.scaleTo(a||1):i.scaleTo(a[0]||1,a[1]||1,a[2]||0,a[3]||0);break;case"scaleX":i.scaleX(a||1);break;case"scaleXTo":i.scaleXTo(a||1);break;case"scaleY":i.scaleY(a||1);break;case"scaleYTo":i.scaleYTo(a||1);break;case"scaleZ":i.scaleZ(a||1);break;case"scaleZTo":i.scaleZTo(a||1);break;case"scale3d":typeof a=="number"?i.scale3d(a||1):i.scale3d(a[0]||1,a[1]||1,a[2]||1);break;case"scale3dTo":typeof a=="number"?i.scale3dTo(a||1):i.scale3dTo(a[0]||1,a[1]||1,a[2]||1);break;case"skew":typeof a=="number"?i.skew(a||0):i.skew(a[0]||0,a[1]||0);break;case"skewTo":typeof a=="number"?i.skewTo(a||0):i.skewTo(a[0]||0,a[1]||0);break;case"skewX":i.skewX(a||0);break;case"skewXTo":i.skewXTo(a||0);break;case"skewY":i.skewY(a||0);break;case"skewYTo":i.skewYTo(a||0);break;case"skewZ":break;case"skewZTo":break;case"skew3d":break;case"skew3dTo":break;case"perspective":i.perspective(a||0);break;default:n.hasOwnProperty(o)||(n[o]=U.getStyle(t,o)),Object.assign(r,{[o]:`${a}`});break}}return Object.assign(r,{transform:i.toString()}),r}static attrsToCanvas(t,e){for(const n in e){const i=e[n];switch(He(n)){case"fill":i!=="none"&&(t.fillStyle=i);break;case"stroke":i!=="none"&&(t.strokeStyle=i);break;case"stroke-width":t.lineWidth=Number(i);break;case"stroke-linecap":t.lineCap=i;break;case"stroke-linejoin":switch(i){case"round":case"bevel":case"miter":t.lineJoin=i;break;default:t.lineJoin="miter";break}break;case"stroke-miterlimit":t.miterLimit=Number(i);break;case"stroke-opacity":break;case"stroke-dashoffset":t.lineDashOffset=Number(i);break;case"stroke-dasharray":typeof i=="string"&&t.setLineDash(i.split(/\s+/).map(r=>Number(r)));break;case"cursor":break;case"font":typeof i=="string"&&(t.font=i);break;case"font-size":t.font+=` ${i}`;break;case"font-family":t.font+=` ${i}`;break;case"font-weight":break;case"font-style":break;case"text-anchor":switch(i){case"middle":t.textAlign="center";break;case"end":t.textAlign="end";break;case"start":t.textAlign="start";break}break;case"alignment-baseline":switch(i){case"middle":case"bottom":case"top":case"alphabetic":case"hanging":case"ideographic":t.textBaseline=i;break;default:t.textBaseline="alphabetic";break}break}}}static getStyle(t,e,n){const i=t;if(getComputedStyle)if(e){e=He(e);const r=getComputedStyle(i,n).getPropertyPriority(e);return getComputedStyle(i,n).getPropertyValue(e).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(t.currentStyle){if(e)return e=Ru(e),t.currentStyle[e];{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(t,e,n){if(typeof e=="string"&&n){const i=String(n).toLowerCase().includes("!important")?"important":"";t.style.setProperty(He(e),n.replace(/!important/i,""),i)}else e instanceof Object&&Object.keys(e).forEach(i=>{const r=String(e[i]).toLowerCase().includes("!important")?"important":"";t.style.setProperty(He(i),String(e[i]).replace(/!important/i,""),r)})}static setStyleSheet(t,e){let n;if(typeof e=="string"){const r=document.querySelector(e)?.shadowRoot;r?n=r:n=document.querySelector(e)}else n=e;const i=document.createElement("style");if(i.innerHTML=t,n)return n.appendChild(i),()=>{(n instanceof HTMLElement||n instanceof ShadowRoot)&&n.removeChild(i)};{const r=document.styleSheets[0].insertRule(t);return()=>{document.styleSheets[0].deleteRule(r)}}}static toggleClass(t,e,n="toggle"){e.split(/[,\s]+/).forEach(i=>{i.trim()!==""&&t.classList[n](i.trim())})}static addClass(t,e){this.toggleClass(t,e,"add")}static removeClass(t,e){this.toggleClass(t,e,"remove")}static hasClass(t,e){return e.split(/[,\s]+/).every(n=>n.trim()!==""?Array.from(t.classList||[]).includes(n.trim()):!0)}static toggleDisplay(t,e){this.getStyle(t,"display")=="none"&&e===void 0||e===!0?t.style.setProperty("display",t instanceof HTMLTableRowElement?"table-row":t instanceof HTMLTableCellElement?"table-cell":"block"):t.style.setProperty("display","none")}static show(t){t.style.setProperty("display",t instanceof HTMLTableRowElement?"table-row":t instanceof HTMLTableCellElement?"table-cell":"block")}static hide(t){t.style.setProperty("display","none")}static origins=new aa;static updates=new aa;static attribute(t,e,n){let i={};if(e===void 0&&n===void 0){for(let r=0,o=t.attributes,a=o.length;r<a;r++){const l=o[r];l.nodeName&&l.nodeValue&&(i[l.nodeName]=l.nodeValue)}return i}if(typeof e=="string"&&n===void 0)return t.getAttribute(He(e));typeof e=="object"?i=e:typeof e=="string"&&n!==void 0&&(i[e]=n),Object.entries(i).forEach(([r,o])=>{t.setAttribute(He(r),o)})}static removeAttribute(t,e){e.split(/[,\s]+/).forEach(n=>{n.trim()!=""&&t.removeAttribute(n.trim())})}static fixProp(t){const e={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 e[t]?e[t]:t}static prop(t,e,n){if(n===void 0&&typeof e=="string")return t[e];{let i={};typeof e=="object"?i=e:typeof e=="string"&&n!==void 0&&(i[e]=n),Object.entries(i).forEach(([r,o])=>{const a=this.fixProp(r);t[a]=o,a=="innerHTML"&&this.scriptConvert(t)})}}static removeProp(t,e){e.split(/[,\s]+/).forEach(n=>{n.trim()!=""&&delete t[this.fixProp(n.trim())]})}static data(t,e,n){if(typeof e=="string"&&(e=Ru(e)),(typeof e=="string"||e===void 0)&&n===void 0){const i=Object.assign({},t.dataset);return Object.keys(i).forEach(r=>{if(i[r]?.startsWith("[")||i[r]?.startsWith("{"))try{i[r]=JSON.parse(i[r]||"")}catch{}}),typeof e=="string"?i[e]:i}else{let i={};typeof e=="object"?i=e:typeof e=="string"&&(i[e]=n),Object.entries(i).forEach(([r,o])=>{o!=null?t.dataset[r]=o instanceof Object?JSON.stringify(o):o:delete t.dataset[r]})}}static removeData(t,e){e.split(/[,\s]+/).forEach(n=>{n.trim()!=""&&delete t.dataset[n.trim()]})}static empty(t){this.html(t,"")}static html(t,e){e instanceof HTMLElement||e instanceof SVGElement?this.insert(t,e,"replaceWith"):this.prop(t,"innerHTML",e)}static text(t,e){return this.prop(t,"textContent",e)}static value(t,e){return this.prop(t,"value",e)}static dispatchEvent(t,e,n){let i;const r=["click","dblclick","mousedown","mouseup","mousemove"],o=["keydown","keyup","keypress"];typeof e=="string"?r.includes(e)?i=new MouseEvent(e,n):o.includes(e)?i=new KeyboardEvent(e,n):i=new Event(e,n):i=e,t.dispatchEvent(i)}static scriptConvert(t){const e=n=>{const r=n.ownerDocument.createElement("script");r.text=n.text;const o=n.attributes;for(let a=0;a<o.length;a++)r.setAttribute(o[a].name,o[a].value);return r};return t.tagName=="SCRIPT"&&(t=e(t)),t.querySelectorAll&&t.querySelectorAll("script").forEach(n=>{n.parentNode?.replaceChild(e(n),n)}),t}static insert(t,e,n="append"){return typeof e=="string"?t[n](this.fragment(e)):(e instanceof HTMLElement||e instanceof SVGElement)&&t[n](e),this}static createElement(t){return document.createElement.call(document,t)}static createTextNode(t){return document.createTextNode.call(document,t)}static createDocumentFragment(){return document.createDocumentFragment.call(document)}static fragment(t){const e=document.createElement("template");return e.innerHTML=t,e.content.childNodes.forEach(n=>{const i=this.scriptConvert(n);i!=n&&e.content.replaceChild(i,n)}),e.content}static remove(t){return t.remove()}static siblings=t=>Array.prototype.slice.call(t.parentElement?.children).filter(e=>e!==t);static nextElementSibling(t){return t.nextElementSibling}static previousElementSibling(t){return t.previousElementSibling}static closest(t,e){return t.closest(e)}static shadowRoot(t){return t.shadowRoot}static parentElement=t=>t.parentElement;static changeSelectSelected(t,e){if(t instanceof HTMLSelectElement){const n=t.options;for(let i=0,r=n.length;i<r;i++)n[i].value==e?n[i].selected=!0:n[i].selected=!1}}static changeRadioChecked(t,e){t instanceof HTMLInputElement&&(t.value==e?t.checked=!0:t.checked=!1)}static entity2text(t){const e={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 n;return t.charAt(0)=="#"?t.charAt(1).toLowerCase()=="x"?n=parseInt(t.substring(2),16):n=parseInt(t.substring(1),10):n=e[t],n?String.fromCharCode(n):"&"+t}static waitForStyleSheetsLoaded=()=>new Promise(t=>{const e=Array.from(document.querySelectorAll("link[rel=stylesheet]"));let n=document.styleSheets.length||0;const i=()=>n>=e.length?(t(),!0):!1;i()||e.forEach(r=>{r.onload=()=>{n+=1,i()}})});static loadScript(t,e=()=>{},n=(i,r,o,a,l)=>{}){const i=document.createElement("script");i.type="text/javascript",i.src=t,i.async=!1,i.onload=e,i.onerror=n,document.body.appendChild(i)}static runInSafe(t){const e=new Proxy(window,{get(n,i,r){if(typeof i=="string"&&["open","location","document"].includes(i))throw new Error(`禁止访问 key: ${i}`);return i==="window"?e:Reflect.get(n,i,r)},set(n,i,r,o){return Reflect.set(n,i,r,o)}});new Function("window",`with(window) { ${t} }`)(e,null)}static dom=new Proxy({},{get(t,e){return function(n={},...i){const r=document.createElement(e);for(const o of Object.keys(n))r.setAttribute(o,n[o]);for(const o of i)typeof o=="string"?r.appendChild(document.createTextNode(o)):r.appendChild(o);return r}}});static compileTemplate(t){return t=t.replace(/<%=(.+?)%>/g,"`); \n echo( $1 ); \n echo(`").replace(/<%([\s\S]+?)%>/g,"`); \n $1 \n echo(`"),t="echo(`"+t+"`);",`(function parse(data){
|
|
42
42
|
let output = "";
|
|
43
43
|
function echo(html){
|
|
44
44
|
output += html;
|
|
45
45
|
}
|
|
46
46
|
${t}
|
|
47
47
|
return output;
|
|
48
|
-
})`}static escape(t,e="encode"){const n={"&":"&","<":"<",">":">",'"':""","'":"'"};for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t=t.replace(new RegExp(e=="encode"?i:n[i],"g"),e=="encode"?n[i]:i));return t}static getInnerText=t=>{let e=t.innerText;if(!e){const n=t.querySelector("slot")?.assignedNodes()||[];let i=0;for(;!e&&i<=n.length-1;)"innerText"in n[i]&&(e=n[i].innerText),i++}return e};static copyToClipboard=t=>new Promise((e,n)=>{if(navigator.clipboard)navigator.clipboard.writeText(t).then(e).catch(n);else{const i=document.createElement("textarea");i.value=t,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")?e():n()}catch(r){n(r)}document.body.removeChild(i)}});static scrollTo=(t,e)=>window.scrollTo(t,e);static setScrollRestoration(t){try{window.history.scrollRestoration=t}catch{}}static getLocation(){return new Promise((t,e)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(n=>{t(n.coords)}):e("Geolocation is not supported by this browser")})}static vibrate(t=200){"vibrate"in navigator?window.navigator.vibrate(t):console.error("Your device is not support vibrate on this browser.")}static getSelectedText=()=>window.getSelection()?.toString();static isElementFocus=t=>t===document.activeElement;static isTabInView=()=>!document.hidden;static navigateBack=()=>history.back();static navigateBack2=()=>history.go(-1);static iframePostMessage(t,e="http://test.com/localstorage.html"){const n=document.createElement("iframe");n.src=e,document.body.append(n),setTimeout(function(){n.contentWindow?.postMessage(t,e)},4e3),setTimeout(function(){n.remove()},6e3)}static measureText=(t,e=12,n=400)=>{const i=document.createElement("span");i.style.visibility="hidden",i.style.margin="0",i.style.padding="0",i.style.inset="0",i.style.whiteSpace="nowrap",i.style.overflow="visible",i.style.fontSize=e+"px",i.style.fontWeight=n.toString(),i.innerText=t,document.body.appendChild(i);const r=i.offsetWidth,o=i.offsetHeight;return document.body.removeChild(i),{width:r,height:o}};static getFixedWidthText=(t,e,n=12,i=400,r=!0)=>{let o="";if(!t||e<n)return o;const a=t.split(""),l="...";let c=r?
|
|
48
|
+
})`}static escape(t,e="encode"){const n={"&":"&","<":"<",">":">",'"':""","'":"'"};for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t=t.replace(new RegExp(e=="encode"?i:n[i],"g"),e=="encode"?n[i]:i));return t}static getInnerText=t=>{let e=t.innerText;if(!e){const n=t.querySelector("slot")?.assignedNodes()||[];let i=0;for(;!e&&i<=n.length-1;)"innerText"in n[i]&&(e=n[i].innerText),i++}return e};static copyToClipboard=t=>new Promise((e,n)=>{if(navigator.clipboard)navigator.clipboard.writeText(t).then(e).catch(n);else{const i=document.createElement("textarea");i.value=t,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")?e():n()}catch(r){n(r)}document.body.removeChild(i)}});static scrollTo=(t,e)=>window.scrollTo(t,e);static setScrollRestoration(t){try{window.history.scrollRestoration=t}catch{}}static getLocation(){return new Promise((t,e)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(n=>{t(n.coords)}):e("Geolocation is not supported by this browser")})}static vibrate(t=200){"vibrate"in navigator?window.navigator.vibrate(t):console.error("Your device is not support vibrate on this browser.")}static getSelectedText=()=>window.getSelection()?.toString();static isElementFocus=t=>t===document.activeElement;static isTabInView=()=>!document.hidden;static navigateBack=()=>history.back();static navigateBack2=()=>history.go(-1);static iframePostMessage(t,e="http://test.com/localstorage.html"){const n=document.createElement("iframe");n.src=e,document.body.append(n),setTimeout(function(){n.contentWindow?.postMessage(t,e)},4e3),setTimeout(function(){n.remove()},6e3)}static measureText=(t,e=12,n=400)=>{const i=document.createElement("span");i.style.visibility="hidden",i.style.margin="0",i.style.padding="0",i.style.inset="0",i.style.whiteSpace="nowrap",i.style.overflow="visible",i.style.fontSize=e+"px",i.style.fontWeight=n.toString(),i.innerText=t,document.body.appendChild(i);const r=i.offsetWidth,o=i.offsetHeight;return document.body.removeChild(i),{width:r,height:o}};static getFixedWidthText=(t,e,n=12,i=400,r=!0)=>{let o="";if(!t||e<n)return o;const a=t.split(""),l="...";let c=r?U.measureText(l,n,i).width:0;for(let u=0,h=a.length;u<h;u++)if(c+=U.measureText(a[u],n,i).width,c>e){r&&(o+=l);break}else o+=a[u];return o}}function ag(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Zu={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(s){(function(t,e,n,i){var r=["","webkit","Moz","MS","ms","o"],o=e.createElement("div"),a="function",l=Math.round,c=Math.abs,u=Date.now;function h(p,g,b){return setTimeout(
|
|
52
|
+
* Licensed under the MIT license */(function(s){(function(t,e,n,i){var r=["","webkit","Moz","MS","ms","o"],o=e.createElement("div"),a="function",l=Math.round,c=Math.abs,u=Date.now;function h(p,g,b){return setTimeout(M(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 P;if(p)if(p.forEach)p.forEach(g,b);else if(p.length!==i)for(P=0;P<p.length;)g.call(b,p[P],P,p),P++;else for(P in p)p.hasOwnProperty(P)&&g.call(b,p[P],P,p)}function m(p,g,b){var P="DEPRECATED METHOD: "+g+`
|
|
53
53
|
`+b+` AT
|
|
54
|
-
`;return function(){var Z=new Error("get-stack-trace"),at=Z&&Z.stack?Z.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",At=t.console&&(t.console.warn||t.console.log);return At&&At.call(t.console,P,at),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),P=1;P<arguments.length;P++){var Z=arguments[P];if(Z!==i&&Z!==null)for(var at in Z)Z.hasOwnProperty(at)&&(b[at]=Z[at])}return b}:v=Object.assign;var _=m(function(g,b,P){for(var Z=Object.keys(b),at=0;at<Z.length;)(!P||P&&g[Z[at]]===i)&&(g[Z[at]]=b[Z[at]]),at++;return g},"extend","Use `assign`."),E=m(function(g,b){return _(g,b,!0)},"merge","Use `assign`.");function D(p,g,b){var P=g.prototype,Z;Z=p.prototype=Object.create(P),Z.constructor=p,Z._super=P,b&&v(Z,b)}function N(p,g){return function(){return p.apply(g,arguments)}}function k(p,g){return typeof p==a?p.apply(g&&g[0]||i,g):p}function tt(p,g){return p===i?g:p}function R(p,g,b){d(Ct(g),function(P){p.addEventListener(P,b,!1)})}function U(p,g,b){d(Ct(g),function(P){p.removeEventListener(P,b,!1)})}function vt(p,g){for(;p;){if(p==g)return!0;p=p.parentNode}return!1}function bt(p,g){return p.indexOf(g)>-1}function Ct(p){return p.trim().split(/\s+/g)}function Rt(p,g,b){if(p.indexOf&&!b)return p.indexOf(g);for(var P=0;P<p.length;){if(b&&p[P][b]==g||!b&&p[P]===g)return P;P++}return-1}function $t(p){return Array.prototype.slice.call(p,0)}function se(p,g,b){for(var P=[],Z=[],at=0;at<p.length;){var At=g?p[at][g]:p[at];Rt(Z,At)<0&&P.push(p[at]),Z[at]=At,at++}return b&&(g?P=P.sort(function(Te,Ve){return Te[g]>Ve[g]}):P=P.sort()),P}function ne(p,g){for(var b,P,Z=g[0].toUpperCase()+g.slice(1),at=0;at<r.length;){if(b=r[at],P=b?b+Z:g,P in p)return P;at++}return i}var ue=1;function Yt(){return ue++}function xt(p){var g=p.ownerDocument||p;return g.defaultView||g.parentWindow||t}var wt=/mobile|tablet|ip(ad|hone|od)|android/i,it="ontouchstart"in t,q=ne(t,"PointerEvent")!==i,Et=it&&wt.test(navigator.userAgent),$="touch",Ut="pen",ge="mouse",Ae="kinect",Re=25,Nt=1,$e=2,Lt=4,ie=8,Ue=1,os=2,as=4,y=8,x=16,I=os|as,A=y|x,L=I|A,J=["x","y"],K=["clientX","clientY"];function z(p,g){var b=this;this.manager=p,this.callback=g,this.element=p.element,this.target=p.options.inputTarget,this.domHandler=function(P){k(p.options.enable,[p])&&b.handler(P)},this.init()}z.prototype={handler:function(){},init:function(){this.evEl&&R(this.element,this.evEl,this.domHandler),this.evTarget&&R(this.target,this.evTarget,this.domHandler),this.evWin&&R(xt(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(xt(this.element),this.evWin,this.domHandler)}};function Q(p){var g,b=p.options.inputClass;return b?g=b:q?g=Be:Et?g=ys:it?g=Wa:g=j,new g(p,Y)}function Y(p,g,b){var P=b.pointers.length,Z=b.changedPointers.length,at=g&Nt&&P-Z===0,At=g&(Lt|ie)&&P-Z===0;b.isFirst=!!at,b.isFinal=!!At,at&&(p.session={}),b.eventType=g,rt(p,b),p.emit("hammer.input",b),p.recognize(b),p.session.prevInput=b}function rt(p,g){var b=p.session,P=g.pointers,Z=P.length;b.firstInput||(b.firstInput=_t(g)),Z>1&&!b.firstMultiple?b.firstMultiple=_t(g):Z===1&&(b.firstMultiple=!1);var at=b.firstInput,At=b.firstMultiple,xe=At?At.center:at.center,Te=g.center=Ot(P);g.timeStamp=u(),g.deltaTime=g.timeStamp-at.timeStamp,g.angle=C(xe,Te),g.distance=O(xe,Te),ft(b,g),g.offsetDirection=Xt(g.deltaX,g.deltaY);var Ve=Vt(g.deltaTime,g.deltaX,g.deltaY);g.overallVelocityX=Ve.x,g.overallVelocityY=Ve.y,g.overallVelocity=c(Ve.x)>c(Ve.y)?Ve.x:Ve.y,g.scale=At?G(At.pointers,P):1,g.rotation=At?w(At.pointers,P):0,g.maxPointers=b.prevInput?g.pointers.length>b.prevInput.maxPointers?g.pointers.length:b.prevInput.maxPointers:g.pointers.length,ht(b,g);var _s=p.element;vt(g.srcEvent.target,_s)&&(_s=g.srcEvent.target),g.target=_s}function ft(p,g){var b=g.center,P=p.offsetDelta||{},Z=p.prevDelta||{},at=p.prevInput||{};(g.eventType===Nt||at.eventType===Lt)&&(Z=p.prevDelta={x:at.deltaX||0,y:at.deltaY||0},P=p.offsetDelta={x:b.x,y:b.y}),g.deltaX=Z.x+(b.x-P.x),g.deltaY=Z.y+(b.y-P.y)}function ht(p,g){var b=p.lastInterval||g,P=g.timeStamp-b.timeStamp,Z,at,At,xe;if(g.eventType!=ie&&(P>Re||b.velocity===i)){var Te=g.deltaX-b.deltaX,Ve=g.deltaY-b.deltaY,_s=Vt(P,Te,Ve);at=_s.x,At=_s.y,Z=c(_s.x)>c(_s.y)?_s.x:_s.y,xe=Xt(Te,Ve),p.lastInterval=g}else Z=b.velocity,at=b.velocityX,At=b.velocityY,xe=b.direction;g.velocity=Z,g.velocityX=at,g.velocityY=At,g.direction=xe}function _t(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:Ot(g),deltaX:p.deltaX,deltaY:p.deltaY}}function Ot(p){var g=p.length;if(g===1)return{x:l(p[0].clientX),y:l(p[0].clientY)};for(var b=0,P=0,Z=0;Z<g;)b+=p[Z].clientX,P+=p[Z].clientY,Z++;return{x:l(b/g),y:l(P/g)}}function Vt(p,g,b){return{x:g/p||0,y:b/p||0}}function Xt(p,g){return p===g?Ue:c(p)>=c(g)?p<0?os:as:g<0?y:x}function O(p,g,b){b||(b=J);var P=g[b[0]]-p[b[0]],Z=g[b[1]]-p[b[1]];return Math.sqrt(P*P+Z*Z)}function C(p,g,b){b||(b=J);var P=g[b[0]]-p[b[0]],Z=g[b[1]]-p[b[1]];return Math.atan2(Z,P)*180/Math.PI}function w(p,g){return C(g[1],g[0],K)+C(p[1],p[0],K)}function G(p,g){return O(g[0],g[1],K)/O(p[0],p[1],K)}var M={mousedown:Nt,mousemove:$e,mouseup:Lt},B="mousedown",nt="mousemove mouseup";function j(){this.evEl=B,this.evWin=nt,this.pressed=!1,z.apply(this,arguments)}D(j,z,{handler:function(g){var b=M[g.type];b&Nt&&g.button===0&&(this.pressed=!0),b&$e&&g.which!==1&&(b=Lt),this.pressed&&(b&Lt&&(this.pressed=!1),this.callback(this.manager,b,{pointers:[g],changedPointers:[g],pointerType:ge,srcEvent:g}))}});var et={pointerdown:Nt,pointermove:$e,pointerup:Lt,pointercancel:ie,pointerout:ie},yt={2:$,3:Ut,4:ge,5:Ae},Tt="pointerdown",oe="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(Tt="MSPointerDown",oe="MSPointerMove MSPointerUp MSPointerCancel");function Be(){this.evEl=Tt,this.evWin=oe,z.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}D(Be,z,{handler:function(g){var b=this.store,P=!1,Z=g.type.toLowerCase().replace("ms",""),at=et[Z],At=yt[g.pointerType]||g.pointerType,xe=At==$,Te=Rt(b,g.pointerId,"pointerId");at&Nt&&(g.button===0||xe)?Te<0&&(b.push(g),Te=b.length-1):at&(Lt|ie)&&(P=!0),!(Te<0)&&(b[Te]=g,this.callback(this.manager,at,{pointers:b,changedPointers:[g],pointerType:At,srcEvent:g}),P&&b.splice(Te,1))}});var Wt={touchstart:Nt,touchmove:$e,touchend:Lt,touchcancel:ie},Je="touchstart",Zt="touchstart touchmove touchend touchcancel";function be(){this.evTarget=Je,this.evWin=Zt,this.started=!1,z.apply(this,arguments)}D(be,z,{handler:function(g){var b=Wt[g.type];if(b===Nt&&(this.started=!0),!!this.started){var P=We.call(this,g,b);b&(Lt|ie)&&P[0].length-P[1].length===0&&(this.started=!1),this.callback(this.manager,b,{pointers:P[0],changedPointers:P[1],pointerType:$,srcEvent:g})}}});function We(p,g){var b=$t(p.touches),P=$t(p.changedTouches);return g&(Lt|ie)&&(b=se(b.concat(P),"identifier",!0)),[b,P]}var xn={touchstart:Nt,touchmove:$e,touchend:Lt,touchcancel:ie},Oi="touchstart touchmove touchend touchcancel";function ys(){this.evTarget=Oi,this.targetIds={},z.apply(this,arguments)}D(ys,z,{handler:function(g){var b=xn[g.type],P=Gn.call(this,g,b);P&&this.callback(this.manager,b,{pointers:P[0],changedPointers:P[1],pointerType:$,srcEvent:g})}});function Gn(p,g){var b=$t(p.touches),P=this.targetIds;if(g&(Nt|$e)&&b.length===1)return P[b[0].identifier]=!0,[b,b];var Z,at,At=$t(p.changedTouches),xe=[],Te=this.target;if(at=b.filter(function(Ve){return vt(Ve.target,Te)}),g===Nt)for(Z=0;Z<at.length;)P[at[Z].identifier]=!0,Z++;for(Z=0;Z<At.length;)P[At[Z].identifier]&&xe.push(At[Z]),g&(Lt|ie)&&delete P[At[Z].identifier],Z++;if(xe.length)return[se(at.concat(xe),"identifier",!0),xe]}var zr=2500,vh=25;function Wa(){z.apply(this,arguments);var p=N(this.handler,this);this.touch=new ys(this.manager,p),this.mouse=new j(this.manager,p),this.primaryTouch=null,this.lastTouches=[]}D(Wa,z,{handler:function(g,b,P){var Z=P.pointerType==$,at=P.pointerType==ge;if(!(at&&P.sourceCapabilities&&P.sourceCapabilities.firesTouchEvents)){if(Z)g_.call(this,b,P);else if(at&&y_.call(this,P))return;this.callback(g,b,P)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function g_(p,g){p&Nt?(this.primaryTouch=g.changedPointers[0].identifier,_h.call(this,g)):p&(Lt|ie)&&_h.call(this,g)}function _h(p){var g=p.changedPointers[0];if(g.identifier===this.primaryTouch){var b={x:g.clientX,y:g.clientY};this.lastTouches.push(b);var P=this.lastTouches,Z=function(){var at=P.indexOf(b);at>-1&&P.splice(at,1)};setTimeout(Z,zr)}}function y_(p){for(var g=p.srcEvent.clientX,b=p.srcEvent.clientY,P=0;P<this.lastTouches.length;P++){var Z=this.lastTouches[P],at=Math.abs(g-Z.x),At=Math.abs(b-Z.y);if(at<=vh&&At<=vh)return!0}return!1}var bh=ne(o.style,"touchAction"),xh=bh!==i,wh="compute",Sh="auto",qa="manipulation",wn="none",Pi="pan-x",Di="pan-y",jr=__();function Za(p,g){this.manager=p,this.set(g)}Za.prototype={set:function(p){p==wh&&(p=this.compute()),xh&&this.manager.element.style&&jr[p]&&(this.manager.element.style[bh]=p),this.actions=p.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var p=[];return d(this.manager.recognizers,function(g){k(g.options.enable,[g])&&(p=p.concat(g.getTouchAction()))}),v_(p.join(" "))},preventDefaults:function(p){var g=p.srcEvent,b=p.offsetDirection;if(this.manager.session.prevented){g.preventDefault();return}var P=this.actions,Z=bt(P,wn)&&!jr[wn],at=bt(P,Di)&&!jr[Di],At=bt(P,Pi)&&!jr[Pi];if(Z){var xe=p.pointers.length===1,Te=p.distance<2,Ve=p.deltaTime<250;if(xe&&Te&&Ve)return}if(!(At&&at)&&(Z||at&&b&I||At&&b&A))return this.preventSrc(g)},preventSrc:function(p){this.manager.session.prevented=!0,p.preventDefault()}};function v_(p){if(bt(p,wn))return wn;var g=bt(p,Pi),b=bt(p,Di);return g&&b?wn:g||b?g?Pi:Di:bt(p,qa)?qa:Sh}function __(){if(!xh)return!1;var p={},g=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(b){p[b]=g?t.CSS.supports("touch-action",b):!0}),p}var Br=1,ts=2,zn=4,tn=8,Ms=tn,Ii=16,vs=32;function As(p){this.options=v({},this.defaults,p||{}),this.id=Yt(),this.manager=null,this.options.enable=tt(this.options.enable,!0),this.state=Br,this.simultaneous={},this.requireFail=[]}As.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=Yr(p,this),g[p.id]||(g[p.id]=p,p.recognizeWith(this)),this},dropRecognizeWith:function(p){return f(p,"dropRecognizeWith",this)?this:(p=Yr(p,this),delete this.simultaneous[p.id],this)},requireFailure:function(p){if(f(p,"requireFailure",this))return this;var g=this.requireFail;return p=Yr(p,this),Rt(g,p)===-1&&(g.push(p),p.requireFailure(this)),this},dropRequireFailure:function(p){if(f(p,"dropRequireFailure",this))return this;p=Yr(p,this);var g=Rt(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 P(Z){g.manager.emit(Z,p)}b<tn&&P(g.options.event+Ch(b)),P(g.options.event),p.additionalEvent&&P(p.additionalEvent),b>=tn&&P(g.options.event+Ch(b))},tryEmit:function(p){if(this.canEmit())return this.emit(p);this.state=vs},canEmit:function(){for(var p=0;p<this.requireFail.length;){if(!(this.requireFail[p].state&(vs|Br)))return!1;p++}return!0},recognize:function(p){var g=v({},p);if(!k(this.options.enable,[this,g])){this.reset(),this.state=vs;return}this.state&(Ms|Ii|vs)&&(this.state=Br),this.state=this.process(g),this.state&(ts|zn|tn|Ii)&&this.tryEmit(g)},process:function(p){},getTouchAction:function(){},reset:function(){}};function Ch(p){return p&Ii?"cancel":p&tn?"end":p&zn?"move":p&ts?"start":""}function Eh(p){return p==x?"down":p==y?"up":p==os?"left":p==as?"right":""}function Yr(p,g){var b=g.manager;return b?b.get(p):p}function ls(){As.apply(this,arguments)}D(ls,As,{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,P=g&(ts|zn),Z=this.attrTest(p);return P&&(b&ie||!Z)?g|Ii:P||Z?b&Lt?g|tn:g&ts?g|zn:ts:vs}});function Xr(){ls.apply(this,arguments),this.pX=null,this.pY=null}D(Xr,ls,{defaults:{event:"pan",threshold:10,pointers:1,direction:L},getTouchAction:function(){var p=this.options.direction,g=[];return p&I&&g.push(Di),p&A&&g.push(Pi),g},directionTest:function(p){var g=this.options,b=!0,P=p.distance,Z=p.direction,at=p.deltaX,At=p.deltaY;return Z&g.direction||(g.direction&I?(Z=at===0?Ue:at<0?os:as,b=at!=this.pX,P=Math.abs(p.deltaX)):(Z=At===0?Ue:At<0?y:x,b=At!=this.pY,P=Math.abs(p.deltaY))),p.direction=Z,b&&P>g.threshold&&Z&g.direction},attrTest:function(p){return ls.prototype.attrTest.call(this,p)&&(this.state&ts||!(this.state&ts)&&this.directionTest(p))},emit:function(p){this.pX=p.deltaX,this.pY=p.deltaY;var g=Eh(p.direction);g&&(p.additionalEvent=this.options.event+g),this._super.emit.call(this,p)}});function Ka(){ls.apply(this,arguments)}D(Ka,ls,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[wn]},attrTest:function(p){return this._super.attrTest.call(this,p)&&(Math.abs(p.scale-1)>this.options.threshold||this.state&ts)},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 Qa(){As.apply(this,arguments),this._timer=null,this._input=null}D(Qa,As,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Sh]},process:function(p){var g=this.options,b=p.pointers.length===g.pointers,P=p.distance<g.threshold,Z=p.deltaTime>g.time;if(this._input=p,!P||!b||p.eventType&(Lt|ie)&&!Z)this.reset();else if(p.eventType&Nt)this.reset(),this._timer=h(function(){this.state=Ms,this.tryEmit()},g.time,this);else if(p.eventType&Lt)return Ms;return vs},reset:function(){clearTimeout(this._timer)},emit:function(p){this.state===Ms&&(p&&p.eventType&Lt?this.manager.emit(this.options.event+"up",p):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function Ja(){ls.apply(this,arguments)}D(Ja,ls,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[wn]},attrTest:function(p){return this._super.attrTest.call(this,p)&&(Math.abs(p.rotation)>this.options.threshold||this.state&ts)}});function tl(){ls.apply(this,arguments)}D(tl,ls,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:I|A,pointers:1},getTouchAction:function(){return Xr.prototype.getTouchAction.call(this)},attrTest:function(p){var g=this.options.direction,b;return g&(I|A)?b=p.overallVelocity:g&I?b=p.overallVelocityX:g&A&&(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&Lt},emit:function(p){var g=Eh(p.offsetDirection);g&&this.manager.emit(this.options.event+g,p),this.manager.emit(this.options.event,p)}});function Hr(){As.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}D(Hr,As,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[qa]},process:function(p){var g=this.options,b=p.pointers.length===g.pointers,P=p.distance<g.threshold,Z=p.deltaTime<g.time;if(this.reset(),p.eventType&Nt&&this.count===0)return this.failTimeout();if(P&&Z&&b){if(p.eventType!=Lt)return this.failTimeout();var at=this.pTime?p.timeStamp-this.pTime<g.interval:!0,At=!this.pCenter||O(this.pCenter,p.center)<g.posThreshold;this.pTime=p.timeStamp,this.pCenter=p.center,!At||!at?this.count=1:this.count+=1,this._input=p;var xe=this.count%g.taps;if(xe===0)return this.hasRequireFailures()?(this._timer=h(function(){this.state=Ms,this.tryEmit()},g.interval,this),ts):Ms}return vs},failTimeout:function(){return this._timer=h(function(){this.state=vs},this.options.interval,this),vs},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Ms&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function Rs(p,g){return g=g||{},g.recognizers=tt(g.recognizers,Rs.defaults.preset),new el(p,g)}Rs.VERSION="2.0.7",Rs.defaults={domEvents:!1,touchAction:wh,enable:!0,inputTarget:null,inputClass:null,preset:[[Ja,{enable:!1}],[Ka,{enable:!1},["rotate"]],[tl,{direction:I}],[Xr,{direction:I},["swipe"]],[Hr],[Hr,{event:"doubletap",taps:2},["tap"]],[Qa]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var b_=1,kh=2;function el(p,g){this.options=v({},Rs.defaults,g||{}),this.options.inputTarget=this.options.inputTarget||p,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=p,this.input=Q(this),this.touchAction=new Za(this,this.options.touchAction),Th(this,!0),d(this.options.recognizers,function(b){var P=this.add(new b[0](b[1]));b[2]&&P.recognizeWith(b[2]),b[3]&&P.requireFailure(b[3])},this)}el.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?kh:b_},recognize:function(p){var g=this.session;if(!g.stopped){this.touchAction.preventDefaults(p);var b,P=this.recognizers,Z=g.curRecognizer;(!Z||Z&&Z.state&Ms)&&(Z=g.curRecognizer=null);for(var at=0;at<P.length;)b=P[at],g.stopped!==kh&&(!Z||b==Z||b.canRecognizeWith(Z))?b.recognize(p):b.reset(),!Z&&b.state&(ts|zn|tn)&&(Z=g.curRecognizer=b),at++}},get:function(p){if(p instanceof As)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=Rt(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(Ct(p),function(P){b[P]=b[P]||[],b[P].push(g)}),this}},off:function(p,g){if(p!==i){var b=this.handlers;return d(Ct(p),function(P){g?b[P]&&b[P].splice(Rt(b[P],g),1):delete b[P]}),this}},emit:function(p,g){this.options.domEvents&&x_(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 P=0;P<b.length;)b[P](g),P++}},destroy:function(){this.element&&Th(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function Th(p,g){var b=p.element;if(b.style){var P;d(p.options.cssProps,function(Z,at){P=ne(b.style,at),g?(p.oldCssProps[P]=b.style[P],b.style[P]=Z):b.style[P]=p.oldCssProps[P]||""}),g||(p.oldCssProps={})}}function x_(p,g){var b=e.createEvent("Event");b.initEvent(p,!0,!0),b.gesture=g,g.target.dispatchEvent(b)}v(Rs,{INPUT_START:Nt,INPUT_MOVE:$e,INPUT_END:Lt,INPUT_CANCEL:ie,STATE_POSSIBLE:Br,STATE_BEGAN:ts,STATE_CHANGED:zn,STATE_ENDED:tn,STATE_RECOGNIZED:Ms,STATE_CANCELLED:Ii,STATE_FAILED:vs,DIRECTION_NONE:Ue,DIRECTION_LEFT:os,DIRECTION_RIGHT:as,DIRECTION_UP:y,DIRECTION_DOWN:x,DIRECTION_HORIZONTAL:I,DIRECTION_VERTICAL:A,DIRECTION_ALL:L,Manager:el,Input:z,TouchAction:Za,TouchInput:ys,MouseInput:j,PointerEventInput:Be,TouchMouseInput:Wa,SingleTouchInput:be,Recognizer:As,AttrRecognizer:ls,Tap:Hr,Pan:Xr,Swipe:tl,Pinch:Ka,Rotate:Ja,Press:Qa,on:R,off:U,each:d,merge:E,extend:_,assign:v,inherit:D,bindFn:N,prefixed:ne});var w_=typeof t<"u"?t:typeof self<"u"?self:{};w_.Hammer=Rs,typeof i=="function"&&i.amd?i(function(){return Rs}):s.exports?s.exports=Rs:t[n]=Rs})(window,document,"Hammer")})(Hu);var tg=Hu.exports;const eg=Jm(tg);class Ee extends Jt{radius;constructor(t){super(t),this.radius=t?.radius||0}getBoundingClientRect(){return new de({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(t){t.beginPath(),t.arc(0,0,this.radius,0,Math.PI*2,!0),t.closePath()}eq(t){return this.x===t.x&&this.y===t.y&&this.radius===t.radius&&this.mass===t.mass}midPointBtw(t){return{x:this.x+(t.x-this.x)/2,y:this.y+(t.y-this.y)/2}}length(){return ua(this.x,this.y)}scalar(t){return this.x*=t,this.y*=t,this}normalize(t=1){const e=this.length();if(e){const n=t/e;this.scalar(n)}return this}clamp(t){const e=this.length();return e&&e>t&&this.scalar(t/e),this}cross(t){const e=this.x,n=this.y;return{x:n*t.x-e*t.y,y:e*t.y-n*t.x}}multiply(t){return{x:this.x*t.x,y:this.y*t.y}}div(t){return{x:this.x/t.x,y:this.y/t.y}}add(t){return{x:this.x+t.x,y:this.y+t.y}}sub(t){return{x:this.x-t.x,y:this.y-t.y}}dot(t){return this.x*t.x+this.y*t.y}reflect(t){const e=this.dot(t);return{x:this.x-2*e*t.x,y:this.y-2*e*t.y}}clone(t){return new Ee({x:t.x,y:t.y,radius:t.radius,mass:t.mass})}checkCollision(t){const e=t.x-this.x,n=t.y-this.y;if(Math.sqrt(e*e+n*n)<this.radius+t.radius){const r=Math.atan2(n,e),o={x:0,y:0},a=ms(-r,e,n),l=ms(-r,this.vx,this.vy),c=ms(-r,t.vx,t.vy),u=l.x-c.x;l.x=((this.mass-t.mass)*l.x+2*t.mass*c.x)/(this.mass+t.mass),c.x=u+l.x;const h=Math.abs(l.x)+Math.abs(c.x),f=this.radius+t.radius-Math.abs(o.x-a.x);o.x+=l.x/h*f,a.x+=c.x/h*f;const d=ms(r,o.x,o.y),m=ms(r,a.x,a.y);t.x=this.x+m.x,t.y=this.y+m.y,this.x=this.x+d.x,this.y=this.y+d.y;const v=ms(r,l.x,l.y),_=ms(r,c.x,c.y);this.vx=v.x,this.vy=v.y,t.vx=_.x,t.vy=_.y}}checkWalls(t,e){const n=e?.bounce??-1,i=t.x,r=t.y,o=t.x+t.width,a=t.y+t.height;this.x+this.radius>o?(this.x=o-this.radius,this.vx*=n):this.x-this.radius<i&&(this.x=i+this.radius,this.vx*=n),this.y+this.radius>a?(this.y=a-this.radius,this.vy*=n):this.y-this.radius<r&&(this.y=r+this.radius,this.vy*=n)}static comboMove(t,e,n){t.forEach(r=>{r.nextFrame(),e&&r.checkWalls(e,n)});const i=t.length;for(let r=0,o=i-1;r<o;r++){const a=t[r];for(let l,c=r+1;c<i;c++)l=t[c],a.checkCollision(l)}}}class sg{constructor(){}static getFormatKeyNames(t){const e=Um(),n=[];return t.ctrl&&n.push(e?"Cmd":"Ctrl"),t.shift&&n.push("Shift"),t.alt&&n.push("Alt"),typeof t.key=="string"?n.push(oa(t.key)):Array.isArray(t.key)&&(t.key.map(i=>oa(i)),n.push(...t.key)),n}static matchKeyScheme(t,e){const n=t.ctrl??!1,i=t.shift??!1,r=t.alt??!1;if(t.exact)return(n===e.metaKey||n===e.ctrlKey)&&i===e.shiftKey&&r===e.altKey;const o=[];return n&&o.push(n===e.metaKey||n===e.ctrlKey),i&&o.push(i===e.shiftKey),r&&o.push(r===e.altKey),o.every(a=>a)}static on(t,e){if(t?.key===void 0||t?.key===null)return e;const n=t?.target??window;let i=!1;const r=this.getFormatKeyNames(t),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(t,a)){a.preventDefault();const l=e(a);if(typeof l!="function")return;const c=u=>{u.preventDefault(),l(u),n.removeEventListener("keyup",c)};n.addEventListener("keyup",c)}};return e.title=t?.title??"",e.formatedKeyNames=r,e.pause=()=>i=!0,e.restart=()=>i=!1,e.removeListener=()=>n.removeEventListener("keydown",o),n.addEventListener("keydown",o),e}}let Ze;const Mn=[];class me extends xr{container;width;height;mousePoint;hammer;domEventBusRemoves=[];constructor(t=document.documentElement,e=!0){super(),this.container=t,this.width=this.container.offsetWidth,this.height=this.container.offsetHeight;const n=H.getStyle(this.container,"position");H.setStyle(this.container,{position:n=="static"?"relative":n}),this.hammer=new eg(this.container),this.mousePoint=new Ee({x:0,y:0}),e&&this.start()}emitDebounce=$m((t,...e)=>super.emit(t,...e),50);emit(t,...e){switch(t){case"panLeft":case"panRight":this.emitDebounce(t,...e);break;default:super.emit(t,...e);break}return this}static get page(){if(Ze)return Ze;Ze=new me,window.addEventListener("hashchange",()=>{Ze.emit("hashchange",location.hash)}),window.addEventListener("popstate",()=>{Ze.emit("popstate")}),Ze.registerKeyDown({title:"打开",key:"o",ctrl:!0,exact:!0},()=>{Fm().then(e=>Gm(e[0])).then(e=>{Ze.emit("openFile",e)}).catch(e=>{Ze.emit("openFileError",e)})}),Ze.registerMatchMediaChange("(prefers-color-scheme: dark)");const t=()=>Mn.forEach(e=>e());return Ze.registerGlobalScrollChange=e=>{Mn.push(e),Mn.length==1&&document.addEventListener("scroll",t)},Ze.removeGlobalScrollChange=e=>{const n=Mn.findIndex(i=>i==e);n>=0&&(Mn.splice(n,1),Mn.length==0&&document.removeEventListener("scroll",t))},Ze}start(){this.registerMouseEventListeners(),this.registerInputEventListeners(),this.registerTransitionEventListeners(),this.on("pointerMove",this.setMousePoint),this.addDOMEventBusRemoves(()=>{this.off("pointerMove",this.setMousePoint)}),this.registerResizeObserver(),this.registerElementDisplayInParent()}restart(){this.destroy(),this.start()}destroy(){this.domEventBusRemoves.forEach(t=>t()),this.domEventBusRemoves=[],this.removeAllListeners()}addDOMEventBusRemoves(t){this.domEventBusRemoves.push(t)}setMousePoint(t){const e=Xm(this.container,t);return this.mousePoint.x=e.x,this.mousePoint.y=e.y,e}registerMouseEventListeners(){const t=$=>{this.emit("mouseDown",$)},e=$=>{this.emit("mouseUp",$)},n=$=>{this.emit("mouseMove",$)},i=$=>{this.emit("mouseOver",$)},r=$=>{this.emit("mouseOut",$)},o=$=>{this.emit("mouseClick",$)},a=$=>{this.emit("mouseDoubleClick",$)},l=$=>{this.emit("mouseWheel",$)},c=$=>{this.emit("mouseContextMenu",$)},u=$=>{this.emit("touchStart",$)},h=$=>{this.emit("touchEnd",$)},f=$=>{this.emit("touchCancel",$)},d=$=>{this.emit("touchMove",$)},m=$=>{this.emit("pointerDown",$)},v=$=>{this.emit("pointerUp",$)},_=$=>{this.emit("pointerCancel",$)},E=$=>{this.emit("pointerMove",$)},D=$=>{this.emit("pan",$)},N=$=>{this.emit("panStart",$)},k=$=>{this.emit("panMove",$)},tt=$=>{this.emit("panEnd",$)},R=$=>{this.emit("panCancel",$)},U=$=>{this.emit("panLeft",$)},vt=$=>{this.emit("panRight",$)},bt=$=>{this.emit("panUp",$)},Ct=$=>{this.emit("panDown",$)},Rt=$=>{this.emit("pinch",$)},$t=$=>{this.emit("press",$)},se=$=>{this.emit("rotate",$)},ne=$=>{this.emit("swipe",$)},ue=$=>{this.emit("swipeLeft",$)},Yt=$=>{this.emit("swipeRight",$)},xt=$=>{this.emit("swipeUp",$)},wt=$=>{this.emit("swipeDown",$)},it=$=>{this.emit("tap",$)},q=$=>{!$.target||this.container==$.target||this.container.contains($.target)||this.emit("tapOutSide",$)};this.container.addEventListener("mousedown",t),this.container.addEventListener("mouseup",e),this.container.addEventListener("mousemove",n),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",_),this.container.addEventListener("pointermove",E),this.hammer.on("pan",D),this.hammer.on("panstart",N),this.hammer.on("panmove",k),this.hammer.on("panend",tt),this.hammer.on("pancancel",R),this.hammer.on("panleft",U),this.hammer.on("panright",vt),this.hammer.on("panup",bt),this.hammer.on("pandown",Ct),this.hammer.on("pinch",Rt),this.hammer.on("press",$t),this.hammer.on("rotate",se),this.hammer.on("swipe",ne),this.hammer.on("swipeleft",ue),this.hammer.on("swiperight",Yt),this.hammer.on("swipeup",xt),this.hammer.on("swipedown",wt),this.hammer.on("tap",it),document.addEventListener("pointerdown",q,!1);const Et=()=>{this.container.removeEventListener("mousedown",t),this.container.removeEventListener("mouseup",e),this.container.removeEventListener("mousemove",n),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",_),this.container.removeEventListener("pointermove",E),this.hammer.off("pan",D),this.hammer.off("panstart",N),this.hammer.off("panmove",k),this.hammer.off("panend",tt),this.hammer.off("pancancel",R),this.hammer.off("panleft",U),this.hammer.off("panright",vt),this.hammer.off("panup",bt),this.hammer.off("pandown",Ct),this.hammer.off("pinch",Rt),this.hammer.off("press",$t),this.hammer.off("rotate",se),this.hammer.off("swipe",ne),this.hammer.off("swipeleft",ue),this.hammer.off("swiperight",Yt),this.hammer.off("swipeup",xt),this.hammer.off("swipedown",wt),this.hammer.off("tap",it),document.removeEventListener("pointerdown",q,!1),document.removeEventListener("touchstart",q,!1),document.removeEventListener("mousedown",q,!1)};return this.addDOMEventBusRemoves(Et),Et}registerInputEventListeners(){const t=l=>{this.emit("inputChange",l,this.container.files)},e=l=>{this.emit("dragstart",l)},n=l=>{l.stopPropagation(),l.preventDefault(),l.dataTransfer&&(l.dataTransfer.dropEffect="copy"),this.emit("dragover",l)},i=l=>{this.emit("dragenter",l)},r=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",t,!1),this.container.addEventListener("dragstart",e,!1),this.container.addEventListener("dragover",n,!1),this.container.addEventListener("dragenter",i,!1),this.container.addEventListener("dragend",r,!1),this.container.addEventListener("drop",o,!1);const a=()=>{this.container instanceof HTMLInputElement&&this.container.removeEventListener("change",t,!1),this.container.removeEventListener("dragstart",e,!1),this.container.removeEventListener("dragover",n,!1),this.container.removeEventListener("dragenter",i,!1),this.container.removeEventListener("dragend",r,!1),this.container.removeEventListener("drop",o,!1)};return this.addDOMEventBusRemoves(a),a}registerTransitionEventListeners(){const t=n=>{this.emit("transitionend",n)};this.container.addEventListener("transitionend",t);const e=()=>{this.container.removeEventListener("transitionend",t)};return this.addDOMEventBusRemoves(e),e}registerKeyDown(t,e,n){const i=sg.on(t,o=>(e(o,i.formatedKeyNames,i.pause,i.restart),n)),r=()=>{i.removeListener?.()};return this.addDOMEventBusRemoves(r),r}registerResizeObserver(){const t=new ResizeObserver(n=>{const{width:i,height:r}=n[0].contentRect;this.width=i,this.height=r,this.emit("resize",i,r)});t.observe(this.container);const e=()=>{t.unobserve(this.container)};return this.addDOMEventBusRemoves(e),e}registerMatchMediaChange(t){let e="";switch(t){case"(prefers-color-scheme: dark)":e="matchMediaChangePrefersColorSchemeDark";break;default:e=t;break}const n=r=>{this.emit(e,r.matches)};window.matchMedia(t).addEventListener("change",n);const i=()=>{window.matchMedia(t).removeEventListener("change",n)};return this.addDOMEventBusRemoves(i),i}registerElementDisplayInParent(t){const e={threshold:t?.threshold||.5,root:t?.parentElement},n=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>=e.threshold?this.emit("showInParent"):this.emit("showOffParent")},e);n.observe(this.container);const i=()=>{n.unobserve(this.container)};return this.addDOMEventBusRemoves(i),i}registerPullDownRefresh(t){const e=t?.distance||50;let n=0,i=0;return this.captureMove({start:r=>{n=this.setMousePoint(r).y},move:()=>{i=this.mousePoint.y-n,i>0&&i<e&&this.emit("pullDownIng",i)},end:()=>{i>=e&&this.emit("pullDown")}})}registerPullUpLoading(t){const e=t?.distance||50;let n=0,i=0;return this.captureMove({start:r=>{n=this.setMousePoint(r).y},move:()=>{i=n-this.mousePoint.y,i>0&&i<e&&this.emit("pullUpIng",i)},end:()=>{i>=e&&this.emit("pullUp")}})}static isTouchEnabled(){return"ontouchstart"in window||navigator.maxTouchPoints>0}captureMove(t){return this.captureMoveUsePointer(t)}captureMoveUsePointer(t){const e=o=>{this.container.setPointerCapture(o.pointerId),t?.start?.(o)},n=o=>{t?.end?.(o)},i=o=>{t?.move?.(o)};this.on("pointerDown",e),this.on("pointerUp",n),this.on("pointerCancel",n),this.on("pointerMove",i);const r=()=>{this.off("pointerDown",e),this.off("pointerUp",n),this.off("pointerCancel",n),this.off("pointerMove",i)};return this.addDOMEventBusRemoves(r),r}captureMoveUseMouse(t){const e=o=>{document.addEventListener("mousemove",i,!1),document.addEventListener("mouseup",n,!1),t?.start?.(o)},n=o=>{document.removeEventListener("mousemove",i,!1),document.removeEventListener("mouseup",n,!1),t?.end?.(o)},i=o=>{t?.move?.(o)};this.on("mouseDown",e);const r=()=>{this.off("mouseDown",e)};return this.addDOMEventBusRemoves(r),r}captureMoveUseTouch(t){const e=o=>{o.preventDefault(),t?.start?.(o)},n=o=>{t?.end?.(o)},i=o=>{t?.move?.(o)};this.on("touchStart",e),this.on("touchEnd",n),this.on("touchCancel",n),this.on("touchMove",i);const r=()=>{this.off("touchStart",e),this.off("touchEnd",n),this.off("touchCancel",n),this.off("touchMove",i)};return this.addDOMEventBusRemoves(r),r}static getMouseButton(t){if(document.implementation.hasFeature("MouseEvents","2.0"))return t.button;switch(t.button){case 0:case 1:case 3:case 5:case 7:return 0;case 2:case 6:return 2;case 4:return 1}}}class ma{video;constructor(t){this.video=t}setSrcObject(t){this.video.addEventListener("loadedmetadata",e=>{e.target}),this.video.srcObject=t}captureWebCamera(){navigator.mediaDevices.getUserMedia({video:!0}).then(t=>{this.setSrcObject(t)})}static async videoMediaChangeSupport(){return new Promise(t=>{const e=document.createElement("iframe"),n=document.createElement("video"),i=document.createElement("source"),r=new MediaSource;r.addEventListener("sourceopen",()=>t(!0)),i.src=URL.createObjectURL(r),i.media="(min-width:10px)",n.append(i),e.width="5",e.style.cssText="position: absolute; visibility: hidden;",document.documentElement.append(e),e.contentDocument?.body.append(n),setTimeout(()=>{e.width="15"}),setTimeout(()=>{e.remove(),t(!1)},1e3)})}static tryAutoPlayOrAutoPlayAfterClick(t){return new Promise(e=>{t.play().then(()=>{t.autoplay=!0,e(!0)}).catch(()=>{ma.setAutoPlayWhenClick(t),e(!1)})})}static setAutoPlayWhenClick(t){function e(){t.autoplay=!0,t.play(),document.removeEventListener("click",e),document.removeEventListener("touchend",e)}document.addEventListener("click",e),document.addEventListener("touchend",e)}}class ng extends xr{source;raw="";mode="text";tagname="";nodename="";textchunk="";entity="";quote="";attrs={};constructor(t){super(),this.source=t}parse(){const t=Ou(this.source);if(t===0){this.emit("finish");return}let e,n,i=Pu(this.source,0);for(let r=1;r<t;r++)e=n,n=i,i=Pu(this.source,r),this.raw+=n,n&&this.step(n,i,e);i&&this.step(i,void 0,n),this.emit("finish")}step(t,e,n){t==`
|
|
55
|
-
`&&this.emit("newline"),this.act(t,e,n)}act(t,e,n){switch(this.mode){case"text":switch(t){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+=t,this.textchunk="";break;case"&":this.mode="entity",this.entity="";break;default:this.textchunk+=t;break}break;case"entity":Ps("whitespace",t)?(this.textchunk+=H.entity2text(this.entity),this.mode="text"):t==";"?(this.textchunk+=H.entity2text(this.entity+t),this.mode="text"):this.entity+=t;break;case"special":if(n=="!"&&t=="-"&&e=="-"){this.mode="comment start";break}if(this.textchunk=="[CDATA"&&t=="["){this.mode="cdata",this.textchunk="";break}if(t==">"||t=="eof"){this.emit("special",this.textchunk),this.mode="text",this.textchunk="";break}this.textchunk+=t;break;case"cdata":if(n=="]"&&t=="]"&&e==">"){this.mode="cdata end",this.textchunk=this.textchunk.slice(0,-1);break}t=="eof"&&(this.mode="cdata end",this.act(t,e,n)),this.textchunk+=t;break;case"cdata end":this.emit("cdata",this.textchunk),this.textchunk="",this.mode="text";break;case"comment start":e==">"||t=="eof"?(this.emit("comment",""),this.mode="skip"):this.mode="comment";break;case"skip":this.mode="text";break;case"comment":t=="-"&&n=="-"&&e==">"?(this.mode="comment end",this.textchunk=this.textchunk.slice(0,-1)):t=="eof"?this.emit("comment",this.textchunk):this.textchunk+=t;break;case"comment end":this.emit("comment",this.textchunk),this.textchunk="",this.mode="text";break;case"declaration":if(t=="?"&&e==">"){this.mode="declaration end";break}t=="eof"&&this.emit("comment",this.textchunk),this.textchunk+=t;break;case"declaration end":this.emit("comment",this.textchunk),this.textchunk="",this.mode="text";break;case"tag name start":if(t=="eof"){this.emit("text","<");break}if(!Ps("whitespace",t)){if(this.mode="tag name",t=="/"){this.mode="close tag name start";break}else if(t=="!"){this.mode="special",this.textchunk="";break}else if(t=="?"){this.mode="declaration";break}this.act(t,e,n)}break;case"close tag name start":Ps("whitespace",t)||(this.mode="close tag name",this.tagname="",this.nodename="",this.act(t,e,n));break;case"close tag name":if(Ps("whitespace",t))this.tagname=this.nodename;else switch(t){case">":this.emit("/tag",this.tagname||this.nodename,this.attrs),this.mode="text";break;default:!this.tagname&&(this.nodename+=t);break}break;case"tag name":if(Ps("whitespace",t))this.tagname=this.nodename,this.nodename="",this.mode="attr start";else switch(t){case">":this.emit("tag",this.nodename,this.attrs),this.mode="text";break;case"/":this.raw+=e,this.emit("tag",this.nodename,this.attrs),this.emit("/tag",this.nodename,this.attrs),this.mode="skip";break;default:this.nodename+=t;break}break;case"attr start":Ps("whitespace",t)||(this.mode="attr",this.nodename="",this.act(t,e,n));break;case"attr":if(Ps("whitespace",t)||t=="=")this.attrs[this.nodename]="",this.mode="attr value start";else switch(t){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+=t;break}break;case"attr value start":if(!Ps("whitespace",t)){if(this.mode="attr value",this.quote="",t=="'"||t=='"'){this.quote=t;return}this.act(t,e,n)}break;case"attr value":if(Ps("whitespace",t)&&!this.quote)this.mode="attr start";else if(t==">"&&!this.quote)this.emit("tag",this.tagname,this.attrs),this.mode="text";else switch(t){case'"':case"'":this.quote==t&&n!="\\"&&(this.mode="attr start");break;default:this.attrs[this.nodename]+=t;break}break}}}function Uu(s,t,e){if(typeof t<"u")window.localStorage.setItem(s,JSON.stringify({value:t,expires:typeof e=="number"?e:-1}));else{const n=window.localStorage.getItem(s);try{const i=JSON.parse(n||"");return"expires"in i&&parseInt(i.expires)>=0&&new Date().getTime()>parseInt(i.expires)?void 0:i.value||void 0}catch{return n||void 0}}}me.page.on("matchMediaChangePrefersColorSchemeDark",s=>{ga(s?"dark":"light")}),ig();function ga(s){Uu("colorScheme",s),document.documentElement.classList.toggle("dark",s=="dark")}function ig(){const s=Uu("colorScheme");if(s=="dark"||s=="light")return ga(s),s;{const t=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return ga(t),t}}const ot={safeAreaTop:H.getCSSVar("--safe-area-inset-top"),safeAreaRight:H.getCSSVar("--safe-area-inset-right"),safeAreaBottom:H.getCSSVar("--safe-area-inset-bottom"),safeAreaLeft:H.getCSSVar("--safe-area-inset-left"),colorPrimary:H.getCSSVar("--color-primary")||"#5078f0",colorRed:H.getCSSVar("--color-red")||"#ff5050",colorOrange:H.getCSSVar("--color-orange")||"#fa8c00",colorYellow:H.getCSSVar("--color-yellow")||"#fadc32",colorGreen:H.getCSSVar("--color-green")||"#00c878",colorBlue:H.getCSSVar("--color-blue")||"#00b4fa",colorPurple:H.getCSSVar("--color-purple")||"#6464fa",colorBlack:H.getCSSVar("--color-black")||"#001428",colorGray00:H.getCSSVar("--color-gray-00")||"#000000",colorGray33:H.getCSSVar("--color-gray-33")||"#333333",colorGray66:H.getCSSVar("--color-gray-66")||"#666666",colorGray99:H.getCSSVar("--color-gray-99")||"#999999",colorGrayCC:H.getCSSVar("--color-gray-cc")||"#cccccc",colorGrayDD:H.getCSSVar("--color-gray-dd")||"#dddddd",colorGrayE6:H.getCSSVar("--color-gray-e6")||"#e6e6e6",colorGrayEE:H.getCSSVar("--color-gray-ee")||"#eeeeee",colorGrayEF:H.getCSSVar("--color-gray-ef")||"#efefef",colorGrayF5:H.getCSSVar("--color-gray-f5")||"#f5f5f5",colorGrayFF:H.getCSSVar("--color-gray-ff")||"#ffffff",fontLineHeight:H.getCSSVar("--font-line-height")||"1,4",fontSize32:H.getCSSVar("--font-size-32")||"32px",fontSize24:H.getCSSVar("--font-size-24")||"24px",fontSize20:H.getCSSVar("--font-size-20")||"20px",fontSize18:H.getCSSVar("--font-size-18")||"18px",fontSize16:H.getCSSVar("--font-size-16")||"16px",fontSize14:H.getCSSVar("--font-size-14")||"14px",fontSize12:H.getCSSVar("--font-size-12")||"12px",fontSize11:H.getCSSVar("--font-size-11")||"11px",gap4:H.getCSSVar("--gap-4")||"4px",gap8:H.getCSSVar("--gap-8")||"8px",gap12:H.getCSSVar("--gap-12")||"12px",gap16:H.getCSSVar("--gap-16")||"16px",gap20:H.getCSSVar("--gap-20")||"20px",gap40:H.getCSSVar("--gap-40")||"40px",height44:H.getCSSVar("--height-44")||"44px",height32:H.getCSSVar("--height-32")||"32px",borderRadius:H.getCSSVar("--border-radius")||"4px"},rg=["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff","#dc4916","#6871b1","#d1b935","#1bbc9b","#FF7F50","#4BBFC3","#ff9900"];function qs(s,t){if(s.hasOwnProperty("r")&&s.hasOwnProperty("g")&&s.hasOwnProperty("b"))return s.r=Math.round(Xe(s.r,0,255)),s.g=Math.round(Xe(s.g,0,255)),s.b=Math.round(Xe(s.b,0,255)),s.hasOwnProperty("a")?s.a=typeof t=="number"?t:s.a:s.a=typeof t=="number"?t:1,s.a=Xe(s.a,0,1),s;const e={r:0,g:0,b:0,a:1};let n=-1;if(typeof s=="number")n=s;else if(typeof s=="string")if(s[0].toLowerCase()==="r"){const i=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,?\s*(\d?\.?\d*)?\s*\)/gi.exec(s);i&&(n=(parseInt(i[1])<<16)+(parseInt(i[2])<<8)+parseInt(i[3]),i[4]&&(e.a=qe(parseFloat(i[4]),2)))}else if(s[0]==="#")n=parseInt(s.slice(1,7),16),s.length>7&&(e.a=qe(parseInt(s.slice(7,9),16)/255,2));else throw new Error("getColor 不支持的颜色解析:"+s);return n>=0&&(e.r=n>>16&255,e.g=n>>8&255,e.b=n&255),typeof t=="number"&&(e.a=t),e.a=Xe(e.a,0,1),e}function og(s,t=!1){let e=qs(s);return t?e=qs(e.r*.299+e.g*.587+e.b*.114>186?"#000000":"#FFFFFF"):(e.r=255-e.r,e.g=255-e.g,e.b=255-e.b),e}function Er(s,t){const e=qs(s,t);return e.a===1?`rgb(${e.r},${e.g},${e.b})`:`rgba(${e.r},${e.g},${e.b},${e.a})`}function kr(s){return Tm(s.toString(16),2,"0","left")}function Zs(s,t){const e=qs(s,t);let n=`#${kr(e.r)}${kr(e.g)}${kr(e.b)}`;return e.a===1?n:n+`${kr(Math.ceil(e.a*255))}`}function ag(s,t=!1){return Zs(og(s,t))}const lg=()=>Math.random()*16777215,Ne=()=>Zs(lg());function vi(s,t){const e=qs(s);return e.r==0&&(e.r=32),e.g==0&&(e.g=32),e.b==0&&(e.b=32),e.r=e.r*(100+t)/100,e.g=e.g*(100+t)/100,e.b=e.b*(100+t)/100,e.r=Math.round(Xe(e.r,0,255)),e.g=Math.round(Xe(e.g,0,255)),e.b=Math.round(Xe(e.b,0,255)),Zs(e)}function Wu(s,t,e){try{const n=qs(s),i=qs(t);return Zs({r:(i.r-n.r)*e+n.r,g:(i.g-n.g)*e+n.g,b:(i.b-n.b)*e+n.b,a:(i.a-n.a)*e+n.a})}catch{return t}}function An(){return typeof performance=="object"&&typeof performance.now=="function"?performance.now():Date.now()}(function(){let s=An();window.requestAnimationFrame||(window.requestAnimationFrame=function(t){const e=An(),n=Math.max(0,16-(e-s)),i=window.setTimeout(function(){t(e+n)},n);return s=e+n,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})})();const cg=s=>{let t=!1;return window.requestAnimationFrame(function e(n){s(n),t||window.requestAnimationFrame(e)}),()=>{t=!0}};class ug{id=0;cbs={};cancelAnimateCycle;constructor(){}get length(){return Object.keys(this.cbs).length}run(t){this.cbs[this.id++]=t,!this.cancelAnimateCycle&&(this.cancelAnimateCycle=cg(e=>{const n=[];for(let i in this.cbs)this.cbs[i](e)===!1&&n.push(parseInt(i));for(let i of n)delete this.cbs[i];!this.length&&this.cancelAnimateCycle&&(this.cancelAnimateCycle(),this.cancelAnimateCycle=void 0)}))}runAccurateSetTimeout(t,e=0){let n=!1,i=An();return this.run(r=>n?!1:r-i>=e?(t(),!1):!0),()=>{n=!0}}}const jt=new ug,Tr=new Map;async function hg(s){return new Promise((t,e)=>{dg(s,(n,i)=>n?e(n):t({width:i.width,height:i.height,aspectRatio:i.width/i.height}))})}const dg=(s,t)=>{if(Tr.has(s))return t(null,Tr.get(s));const e=new Image;e.onload=function(){Tr.set(s,{width:e.naturalWidth||e.width,height:e.naturalHeight||e.height,element:e}),t(null,Tr.get(s))},e.onerror=function(n){t(n,null)},e.src=s};class rs extends Jt{shapes=[];renderGroup;constructor(t){super(t),this.renderGroup=new ju({x:this.x,y:this.y})}setAttrs(t,e){this.shapes.forEach(n=>{br(t)?n.setAttr(t):typeof t=="string"&&e&&n.setAttr(t,e)})}addShape(t){this.shapes.push(...(Array.isArray(t)?t:[t]).map(e=>(e.shapeGroup=this,e.renderGroup=this.renderGroup,this.renderGroup.register(e),e)))}toSVGPathData(){return this.shapes.reduce((t,e,n)=>{const i=e.toSVGPathData();return Array.isArray(i[0])?t.push(...i):t.push(i),t},[])}toCanvasContext(t){}frameUpdate(){super.frameUpdate()}groupTranslate(t,e){this.x+=t,this.y+=e,this.renderGroup.x=this.x,this.renderGroup.y=this.y,this.shapes.forEach(n=>{n.x+=t,n.y+=e})}groupTranslateTo(t,e){this.groupTranslate(t-this.x,e-this.y)}groupRotate(t){this.degree+=t,this.shapes.forEach(e=>{e.degree+=t})}groupRotateTo(t){this.groupRotate(t-this.degree)}groupScaleTo(t){this.scalexOnOrigin=t,this.scaleyOnOrigin=t,this.shapes.forEach(e=>{e.scalexOnOrigin=t,e.scaleyOnOrigin=t})}}const fg=rs;let _i;typeof self>"u"&&typeof process<"u"&&process.hrtime?_i=function(){const s=process.hrtime();return s[0]*1e3+s[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?_i=self.performance.now.bind(self.performance):Date.now!==void 0?_i=Date.now:_i=function(){return new Date().getTime()};const Rn=_i;class bi{static _nextId=0;static nextId(){return bi._nextId++}}const Or={Linear:{None:function(s){return s}},Ease:{In:function(s){return Math.pow(s,1.7)}},Quadratic:{In:function(s){return s*s},Out:function(s){return s*(2-s)},InOut:function(s){return(s*=2)<1?.5*s*s:-.5*(--s*(s-2)-1)}},Cubic:{In:function(s){return s*s*s},Out:function(s){return--s*s*s+1},InOut:function(s){return(s*=2)<1?.5*s*s*s:.5*((s-=2)*s*s+2)}},Quartic:{In:function(s){return s*s*s*s},Out:function(s){return 1- --s*s*s*s},InOut:function(s){return(s*=2)<1?.5*s*s*s*s:-.5*((s-=2)*s*s*s-2)}},Quintic:{In:function(s){return s*s*s*s*s},Out:function(s){return--s*s*s*s*s+1},InOut:function(s){return(s*=2)<1?.5*s*s*s*s*s:.5*((s-=2)*s*s*s*s+2)}},Sinusoidal:{In:function(s){return 1-Math.sin((1-s)*Math.PI/2)},Out:function(s){return Math.sin(s*Math.PI/2)},InOut:function(s){return .5*(1-Math.sin(Math.PI*(.5-s)))}},Exponential:{In:function(s){return s===0?0:Math.pow(1024,s-1)},Out:function(s){return s===1?1:1-Math.pow(2,-10*s)},InOut:function(s){return s===0?0:s===1?1:(s*=2)<1?.5*Math.pow(1024,s-1):.5*(-Math.pow(2,-10*(s-1))+2)}},Circular:{In:function(s){return 1-Math.sqrt(1-s*s)},Out:function(s){return Math.sqrt(1- --s*s)},InOut:function(s){return(s*=2)<1?-.5*(Math.sqrt(1-s*s)-1):.5*(Math.sqrt(1-(s-=2)*s)+1)}},Elastic:{In:function(s){return s===0?0:s===1?1:-Math.pow(2,10*(s-1))*Math.sin((s-1.1)*5*Math.PI)},Out:function(s){return s===0?0:s===1?1:Math.pow(2,-10*s)*Math.sin((s-.1)*5*Math.PI)+1},InOut:function(s){return s===0?0:s===1?1:(s*=2,s<1?-.5*Math.pow(2,10*(s-1))*Math.sin((s-1.1)*5*Math.PI):.5*Math.pow(2,-10*(s-1))*Math.sin((s-1.1)*5*Math.PI)+1)}},Back:{In:function(s){return s===1?1:s*s*((1.70158+1)*s-1.70158)},Out:function(s){return s===0?0:--s*s*((1.70158+1)*s+1.70158)+1},InOut:function(s){const t=2.5949095;return(s*=2)<1?.5*(s*s*((t+1)*s-t)):.5*((s-=2)*s*((t+1)*s+t)+2)}},Bounce:{In:function(s){return 1-Or.Bounce.Out(1-s)},Out:function(s){return s<1/2.75?7.5625*s*s:s<2/2.75?7.5625*(s-=1.5/2.75)*s+.75:s<2.5/2.75?7.5625*(s-=2.25/2.75)*s+.9375:7.5625*(s-=2.625/2.75)*s+.984375},InOut:function(s){return s<.5?Or.Bounce.In(s*2)*.5:Or.Bounce.Out(s*2-1)*.5+.5}},generatePow:function(s=4){return s=s<Number.EPSILON?Number.EPSILON:s,s=s>1e4?1e4:s,{In:function(t){return t**s},Out:function(t){return 1-(1-t)**s},InOut:function(t){return t<.5?(t*2)**s/2:(1-(2-t*2)**s)/2+.5}}},random:function(s){return Math.random()},createStep:function(s){return function(t){return Math.floor(t*s)/s}},createNoisyEasing:function(s,t=.1){const e=1-t;return function(n){return t*Math.random()+e*s(n)}},swing:function(s){return s+Math.sin(s*Math.PI*2)/2},causeSeizures:function(s){return s+.2*Math.random()-.1}},ya=Or,xi={Utils:{Linear:function(s,t,e){return(t-s)*e+s},Factorial:function(){const s=[1];return function(t){let e=1;if(s[t])return s[t];for(let n=t;n>1;n--)e*=n;return s[t]=e,e}}(),Bernstein:function(s,t){const e=xi.Utils.Factorial;return e(s)/e(t)/e(s-t)},CatmullRom:function(s,t,e,n,i){const r=(e-s)*.5,o=(n-t)*.5,a=i*i,l=i*a;return(2*t-2*e+r+o)*l+(-3*t+3*e-2*r-o)*a+r*i+t}},Linear:function(s,t){const e=s.length-1,n=e*t,i=Math.floor(n),r=xi.Utils.Linear;return t<0?r(s[0],s[1],n):t>1?r(s[e],s[e-1],e-n):r(s[i],s[i+1>e?e:i+1],n-i)},Bezier:function(s,t){let e=0;const n=s.length-1,i=Math.pow,r=xi.Utils.Bernstein;for(let o=0;o<=n;o++)e+=i(1-t,n-o)*i(t,o)*s[o]*r(n,o);return e},CatmullRom:function(s,t){const e=s.length-1;let n=e*t,i=Math.floor(n);const r=xi.Utils.CatmullRom;return s[0]===s[e]?(t<0&&(i=Math.floor(n=e*(1+t))),r(s[(i-1+e)%e],s[i],s[(i+1)%e],s[(i+2)%e],n-i)):t<0?s[0]-(r(s[0],s[0],s[1],s[1],-n)-s[0]):t>1?s[e]-(r(s[e],s[e],s[e-1],s[e-1],n-e)-s[e]):r(s[i?i-1:0],s[i],s[e<i+1?e:i+1],s[e<i+2?e:i+2],n-i)}},va=xi;class qu{_tweens={};_tweensAddedDuringUpdate={};getAll(){return Object.keys(this._tweens).map(t=>this._tweens[t])}removeAll(){this._tweens={}}add(t){this._tweens[t.getId()]=t,this._tweensAddedDuringUpdate[t.getId()]=t}remove(t){delete this._tweens[t.getId()],delete this._tweensAddedDuringUpdate[t.getId()]}update(t=Rn(),e=!1){let n=Object.keys(this._tweens);for(let i=0;i<n.length;i++){const r=this._tweens[n[i]],o=!e;r&&r.update(t,o)===!1&&!e&&delete this._tweens[n[i]]}return!!Object.keys(this._tweens).length}}const Ke=new qu;class Zu{constructor(t,e=Ke){this._object=t,this._group=e}_id=bi.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=ya.Linear.None;_interpolationFunction=va.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(t,e){return this._valuesEnd=Object.create(t),e!==void 0&&(this._durationTime=e),this}duration(t=1e3){return this._durationTime=t,this}start(t=Rn()){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(const e in this._valuesStartRepeat)this._swapEndStartRepeatValues(e),this._valuesStart[e]=this._valuesStartRepeat[e]}return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=t,this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this}_setupProperties(t,e,n,i){for(const r in n){const o=t[r],a=Array.isArray(o),l=a?"array":typeof o,c=!a&&Array.isArray(n[r]);if(!(l==="undefined"||l==="function")){if(c){let u=n[r];if(u.length===0)continue;u=u.map(this._handleRelativeValue.bind(this,o)),n[r]=[o].concat(u)}if((l==="object"||a)&&o&&!c){e[r]=a?[]:{};for(const u in o)e[r][u]=o[u];i[r]=a?[]:{},this._setupProperties(o,e[r],n[r],i[r])}else typeof e[r]>"u"&&(e[r]=o),a||(e[r]*=1),c?i[r]=n[r].slice().reverse():i[r]=e[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(t=Rn()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=t,this._group&&this._group.remove(this),this)}resume(t=Rn()){return!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=t-this._pauseStartTime,this._pauseStartTime=0,this._group&&this._group.add(this),this)}stopChainedTweens(){for(let t=0,e=this._chainedTweens.length;t<e;t++)this._chainedTweens[t].stop();return this}group(t=Ke){return this._group=t,this}delay(t=0){return this._delayTime=t,this}repeat(t=0){return this._initialRepeat=t,this._repeat=t,this}repeatDelay(t){return this._repeatDelayTime=t,this}yoyo(t=!1){return this._yoyo=t,this}easing(t=ya.Linear.None){return this._easingFunction=t,this}interpolation(t=va.Linear){return this._interpolationFunction=t,this}chain(...t){return this._chainedTweens=t,this}onStart(t){return this._onStartCallback=t,this}onEveryStart(t){return this._onEveryStartCallback=t,this}onUpdate(t){return this._onUpdateCallback=t,this}onRepeat(t){return this._onRepeatCallback=t,this}onComplete(t){return this._onCompleteCallback=t,this}onStop(t){return this._onStopCallback=t,this}update(t=Rn(),e=!0){if(this._isPaused)return!0;let n,i;const r=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(t>r)return!1;e&&this.start(t)}if(this._goToEnd=!1,t<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=(t-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(n in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[n]=="string"&&(this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(this._valuesEnd[n])),this._yoyo&&this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=t+this._repeatDelayTime:this._startTime=t+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(t,e,n,i){for(const r in n){if(e[r]===void 0)continue;const o=e[r]||0;let a=n[r];const l=Array.isArray(t[r]),c=Array.isArray(a);!l&&c?t[r]=this._interpolationFunction(a,i):typeof a=="object"&&a?this._updateProperties(t[r],o,a,i):(a=this._handleRelativeValue(o,a),typeof a=="number"&&(t[r]=o+(a-o)*i))}}_handleRelativeValue(t,e){return typeof e!="string"?e:e.charAt(0)==="+"||e.charAt(0)==="-"?t+parseFloat(e):parseFloat(e)}_swapEndStartRepeatValues(t){const e=this._valuesStartRepeat[t],n=this._valuesEnd[t];typeof n=="string"?this._valuesStartRepeat[t]=this._valuesStartRepeat[t]+parseFloat(n):this._valuesStartRepeat[t]=n,this._valuesEnd[t]=e}}const pg=Zu,mg=bi.nextId,gg=Ke.getAll.bind(Ke),yg=Ke.removeAll.bind(Ke),vg=Ke.add.bind(Ke),_g=Ke.remove.bind(Ke),bg=Ke.update.bind(Ke),dt={now:Rn,Sequence:bi,Easing:ya,Interpolation:va,Group:qu,Tween:pg,nextId:mg,getAll:gg,removeAll:yg,add:vg,remove:_g,update:bg};function xg(s){switch(s){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 wg={attributeName:["display"],values:[["block","block"]],immediate:!1},He={easeName:"linear",begin:0,dur:300,repeatCount:1,direction:"normal",fill:"freeze",keyTimes:[0,1]};class fe{objects=[];animateObjects=[];currentAnimateName;constructor(){}fromDOM(t){return this.objects.forEach(e=>{e.app.destroy()}),this.objects=[],(Array.isArray(t)?t:[t]).forEach(e=>{this.objects.push({el:e,app:new me(e),originAttrs:{}})}),this}static toTween(t,e,n){const i=n?.onStart||(()=>{}),r=n?.onUpdate||(()=>{}),o=n?.onComplete||(()=>{}),a=n?.duration||1e3,l=n?.delay||0,c=n?.easeFunction||dt.Easing.Linear.None,u=n?.repeat||0,h=n?.yoyo||!1,f=new dt.Tween(t).to(e,a).delay(l).easing(c).repeat(u).yoyo(h).onStart(i).onUpdate((d,m)=>{r(d,m)}).onComplete(o);return n?.interpolationFunction&&f.interpolation(n.interpolationFunction),{tween:f,startAuto:d=>{f.start(d?.()),jt.run(()=>{const m=f.update(d?.());if(n?.precision){let v=!0;for(let _ in t)pi(t[_],e[_],n.precision)||(v=!1);return v?!1:m}return m})}}}static toTweenGroup(t,e){if(t instanceof Zu)return n=>{t.start(),e?.onGroupStart?.(),jt.run(()=>{const i=dt.update(n?.());return i?e?.onGroupUpdate?.():e?.onGroupComplete?.(),i})};{const n=new dt.Group;return t.forEach(i=>{n.add(i)}),i=>{t.forEach(r=>r.start()),e?.onGroupStart?.(),jt.run(()=>{const r=n.update(i?.());return r?e?.onGroupUpdate?.():e?.onGroupComplete?.(),r})}}}static toTweenCSS(t,e,n,i){H.add3DSupport(t);const r=i?.onUpdate||(()=>{});return fe.toTween(e,n,Object.assign(i||{},{onUpdate:(o,a)=>{const l=H.convertAttrs(t,o);H.setStyle(t,l),r(o,a)}}))}addAnimateObject(t=wg,e=He,n=0,i=!1){const r=e.easeName||"linear",o=e.dur||300,a=e.keyTimes||[0,1],l=[];a.forEach((u,h)=>{h>0&&l.push(xg(r))});const c=this.objects[n];return this.animateObjects=i?[]:this.animateObjects,this.animateObjects.push({el:c.el,app:c.app,originAttrs:c.originAttrs,attributeName:t.attributeName,values:t.values,immediate:t.immediate||!1,easeName:r,begin:e.begin||0,dur:o,repeatCount:e.repeatCount||1,direction:e.direction||"normal",fill:e.fill||"freeze",keyTimes:a,realKeyTimes:a.map(u=>o*u),keySplines:l,calcMode:e.calcMode||"linear",onComplete:e.onComplete||(()=>{})}),this}resetAnimateObjects(t,e,n,i,r=He,o=this.objects.length-1){let a=!0,l=!1,c=!1,u=!1;const h=this.objects.length-1;o=Xe(o,0,h);let f=o-1;f=Xe(f,0,h);let d=o+1;d=Xe(d,0,h);const m=this.objects[o],v=this.objects[f],_=this.objects[d];if(v&&f!==o){const E=t(v);E&&(this.addAnimateObject(E,r,f,a),a=!1,l=!0)}if(m){const E=e(m);E&&(this.addAnimateObject(E,r,o,a),a=!1,c=!0)}if(_&&d!==o){const E=n(_);E&&(this.addAnimateObject(E,r,d,a),a=!1,u=!0)}this.objects.forEach((E,D)=>{if(!(D==f&&l||D==o&&c||D==d&&u)){const N=i(E);N&&(this.addAnimateObject(N,r,D,a),a=!1)}})}toCSS(t,...e){if(this.objects.length==0)return;this.currentAnimateName=t,this[t](...e),H.add3DSupport(this.objects[0].el),this.objects.forEach((r,o)=>{H.setStyle(r.el,{position:"absolute","z-index":String(2e3+o),"transform-style":"preserve-3d","backface-visibility":"hidden"})});let n=0;const i=()=>{this.animateObjects.forEach((r,o)=>{let a=[],l=[];Array.isArray(r.attributeName)?(a=r.attributeName,l=r.values):r.attributeName&&(a=[r.attributeName],l=[r.values]);const c=r.keyTimes.length;let u=r.begin;r.keyTimes.forEach((h,f)=>{const d={};a.forEach((v,_)=>{const E=l[_][r.direction=="reverse"?c-1-f:f];d[v]=E});const m=H.convertAttrs(r.el,d,r.originAttrs);f==0||r.immediate?H.setStyle(r.el,Object.assign(m,{transition:"none"})):(jt.runAccurateSetTimeout(()=>{H.setStyle(r.el,Object.assign(m,{transition:`all ${r.realKeyTimes[f]}ms cubic-bezier(${r.keySplines[f-1].join(",")})`}))},u),u+=r.realKeyTimes[f])}),jt.runAccurateSetTimeout(()=>{r.fill==="remove"&&H.setStyle(r.el,r.originAttrs||{}),o==this.animateObjects.length-1&&(r.onComplete?.(),this.currentAnimateName==t&&(r.repeatCount=="infinite"||typeof r.repeatCount=="number"&&++n<r.repeatCount)&&i())},r.begin+r.dur)})};i()}slideLeft(t=He,e=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[-n.app.width,0]]]}),n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[n.app.width,0],[0,0]]]}),n=>{},n=>({attributeName:["opacity","translateTo"],values:[[0,0],[[n.app.width,0],[n.app.width,0]]],immediate:!0}),t,e)}slideRight(t=He,e=this.objects.length-1){this.resetAnimateObjects(n=>{},n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[-n.app.width,0],[0,0]]]}),n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[n.app.width,0]]]}),n=>({attributeName:["opacity","translateTo"],values:[[0,0],[[-n.app.width,0],[-n.app.width,0]]],immediate:!0}),t,e)}slideDown(t=He,e=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[0,n.app.height]]]}),n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,-n.app.height],[0,0]]]}),n=>{},n=>({attributeName:["opacity","translateTo"],values:[[0,0],[[0,-n.app.height],[0,-n.app.height]]],immediate:!0}),t,e)}slideUp(t=He,e=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[0,-n.app.height]]]}),n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,n.app.height],[0,0]]]}),n=>{},n=>({attributeName:["opacity","translateTo"],values:[[0,0],[[0,n.app.height],[0,n.app.height]]],immediate:!0}),t,e)}flipLeft(t=He,e=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,180]]}),n=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[-180,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),t,e)}flipRight(t=He,e=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,-180]]}),n=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[180,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),t,e)}flipDown(t=He,e=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,-180]]}),n=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[180,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),t,e)}flipUp(t=He,e=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,180]]}),n=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[-180,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),t,e)}popIn(t=He,e=this.objects.length-1){this.resetAnimateObjects(n=>{},n=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[.8,1],[0,1]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),t,e)}popOut(t=He,e=this.objects.length-1){this.resetAnimateObjects(n=>{},n=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[1,1.2],[1,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),t,e)}rotate(t=He,e=this.objects.length-1){Object.assign(t,{keyTimes:[0,1]});const n=t.degree||360;this.resetAnimateObjects(i=>{},i=>({attributeName:["opacity","rotate"],values:[[1,1],[0,n]]}),i=>{},i=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),t,e)}}class Sg extends ng{currentItem={};items=[];groups=[];globalStyles={};grad={};idtops={};text="";constructor(t){super(t),this.on("tag",(e,n)=>{switch(this.text="",this.currentItem={type:e},e){case"g":this.groups.push(this.currentItem);break}this.processAttrs(e,n)}),this.on("text",e=>{if(this.currentItem.type=="style"){try{const n=Vm(e);for(let i of n.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: "+e)}return}this.text+=e}),this.on("/tag",(e,n)=>{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),ba(this.currentItem.style,this.currentItem,xa)}switch(this.processAttrs(e,n),e){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(t,e){let n=[],i;switch(t){case"svg":let r="",o="";if(e.width&&e.height)r=e.width,o=e.height;else if(e.viewBox){const a=e.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 e.x1=="number"&&typeof e.y1=="number"&&typeof e.x2=="number"&&typeof e.y2=="number"&&(this.currentItem.path="M"+[e.x1,e.y1,e.x2,e.y2]);break;case"stop":i={},e.style&&ba(e.style,i),i.offset=i.offset||e.offset,i.color=i["stop-color"]||e["stop-color"],i.opacity=i["stop-opacity"]||e["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+_a(parseFloat(e.x1),parseFloat(e.y1),parseFloat(e.x2),parseFloat(e.y2),parseFloat(e.x1)+100,parseFloat(e.y1))).toFixed(2),n=[this.grad.angle];for(let a=0,l=this.grad.stops.length;a<l;a++)i=this.grad.stops[a],a&&a!=l-1?n.push(i.color+":"+i.offset):n.push(i.color);this.idtops[this.grad.id]=n.join("-"),this.items.forEach(a=>{a.fillid==this.grad.id&&(a.fill=this.idtops[this.grad.id])});break;case"radialGradient":n=[];for(let a=0,l=this.grad.stops.length;a<l;a++)i=this.grad.stops[a],a&&a!=l-1?n.push(i.color+":"+i.offset):n.push(i.color);this.idtops[this.grad.id]=n.join("-"),this.items.forEach(a=>{a.fillid==this.grad.id&&(a.fill=this.idtops[this.grad.id])});break}for(let r in e){const o=e[r];if(xa.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"&&ba(o,this.currentItem,xa),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 _a(s,t,e,n,i,r){if(typeof i>"u"||typeof r>"u"){const o=s-e,a=t-n;return!o&&!a?0:(180+Math.atan2(-a,-o)*180/Math.PI+360)%360}else return _a(s,t,i,r)-_a(e,n,i,r)}function ba(s,t,e){const n=(s+"").split(";"),i=/^\s+|\s+$/g;for(let r=0,o=n.length;r<o;r++){let a=n[r].split(":"),l=a[0].replace(i,"").replace(/[A-Z]/g,function(c){return"-"+c.toLowerCase()});(!e||e.includes(l))&&(t[l]=a[1].replace(i,""))}}const xa=["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 Cg{app;rootEl;shapes=[];isMouseDown=!1;currentMouseInShapeID="";currentEnableDragMouseInShapeID="";constructor(t,e,n){this.app=t,this.rootEl=Qt.createSVGElement("svg"),H.empty(this.app.container),H.insert(this.app.container,this.rootEl),e&&n?this.setSize(e,n):(this.setSize(this.app.width,this.app.height),this.app.on("resize",()=>{this.setSize(this.app.width,this.app.height)})),this.app.captureMove({start:()=>{this.isMouseDown=!0,this.setCursor()},end:()=>{this.isMouseDown=!1,this.setCursor()},move:()=>{if(this.isMouseDown&&this.currentEnableDragMouseInShapeID){this.setCursor();return}this.currentMouseInShapeID="";const i=this.shapes.length;let r=0;for(;r<i;r++){const o=this.shapes[r];if(!(o instanceof gt)&&!o.pathd){o.isMouseIn=!1,o.mouseX=0,o.mouseY=0;continue}const a=o instanceof gt&&(o.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||o.isPointInStroke(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl))||o.pathd instanceof gt&&(o.pathd.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||o.pathd.isPointInStroke(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl))||!1;if(o.isMouseIn=a,o.mouseX=this.app.mousePoint.x,o.mouseY=this.app.mousePoint.y,a&&(this.currentMouseInShapeID=o.id,o.enableDrag)){this.currentEnableDragMouseInShapeID=o.id,this.shapes.filter(l=>l.id!==o.id).forEach(l=>{l instanceof Jt&&(l.isMouseIn=!1,l.mouseX=0,l.mouseY=0)});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.shapes.forEach(t=>{t.autoRender&&this.path(t.shapeGroup||t)}))):this.currentMouseInShapeID?this.app.container.style.cursor="default":this.app.container.style.cursor="default"}setSize(t,e){return H.attribute(this.rootEl,{viewBox:`0 0 ${t} ${e}`,width:`${t}`,height:`${e}`}),this}download(){return Qt.downloadFromSVGElement(this.rootEl)}path(t){[...Array.isArray(t)?t:[t]].forEach(e=>{if(e instanceof rs){e.frameUpdate(),e.shapes.forEach(n=>this.path(n));return}if(!e.el){if(e instanceof Ir)e.el=this.text(e.text,e.x,e.y,Nu(e.attrs,(n,i)=>typeof i=="string"));else if(e instanceof ke)e.el=Qt.createSvgPath(`M ${e.fromX} ${e.fromY} `+e.toSVGPathD()),H.insert(this.rootEl,e.el);else if(e instanceof gt)e.el=Qt.createSvgPath(e.toSVGPathD()),H.insert(this.rootEl,e.el);else if(e instanceof Jt){const n=gt.fromShape(e)||e;e.el=n.el=Qt.createSvgPath(n.toSVGPathD()),H.insert(this.rootEl,e.el),n instanceof gt&&(e.pathd=n)}}this.shapes.find(n=>n.id==e.id)||this.shapes.push(e),this.update(e)})}update(t){[...Array.isArray(t)?t:[t]].forEach(e=>{const n=[];e instanceof rs?(e.frameUpdate(),n.push(...e.shapes)):n.push(e),n.forEach(i=>{if(i.followMouse&&(!pi(i.x,this.app.mousePoint.x,5)||!pi(i.y,this.app.mousePoint.y,5))&&(i.rotateTo(this.app.mousePoint),i.followTo(this.app.mousePoint)),i.targetToAfterDragFree&&(this.isMouseDown||i.nextFrameEaseTo({x:i.targetToAfterDragFree.targetX,y:i.targetToAfterDragFree.targetY},{easing:i.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableDragMouseInShapeID==i.id){const{dx:r,dy:o}=i.centerDiff,a=i.x,l=i.y;if(i.x=this.app.mousePoint.x-r,i.y=this.app.mousePoint.y-o,i.alongPath){const c=i.alongPath.closestPoint(i.x,i.y);i.x=c.point.x,i.y=c.point.y}i.isDragging=!0,i.emit("moving",i.x-a,i.y-l)}else i instanceof Jt&&(i.isDragging=!1);(i instanceof ke||i instanceof gt||i.pathd instanceof gt)&&this.attr(i,"d",i instanceof ke?`M ${i.fromX} ${i.fromY} `+i.toSVGPathD():i.pathd instanceof gt?i.pathd.toSVGPathD():i.toSVGPathD()),i instanceof Ir&&(i.setAttr("x",String(i.x)),i.setAttr("y",String(i.y))),this.attr(i,Nu(i.attrs,(r,o)=>typeof o=="string")),i.frameUpdate(),i instanceof gt?i.updateTransform():i.pathd&&i.pathd.updateFromShape(i),i.el&&(i.isShow?H.show(i.el):H.hide(i.el))})})}click(t){const e=()=>{this.shapes.forEach(n=>{(n instanceof gt&&(n.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||n.isPointInStroke(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl))||n.pathd instanceof gt&&(n.pathd.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||n.pathd.isPointInStroke(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)))&&t(n)})};return this.app.on("tap",e),()=>{this.app.off("tap",e)}}delete(t){[...t instanceof rs?t.shapes:[t]].forEach(e=>{e.el&&H.remove(e.el),e.pathd?.el&&H.remove(e.pathd?.el),delete e.el,delete e.pathd,this.shapes=this.shapes.filter(n=>n.id!==e.id)})}clear(){this.shapes.forEach(t=>{t.el&&H.remove(t.el),t.pathd?.el&&H.remove(t.pathd?.el),delete t.el,delete t.pathd}),H.empty(this.rootEl),this.shapes=[]}attr(t,e,n){const i=t.el||t;return i instanceof SVGElement?e===void 0&&n===void 0?H.attribute(i):typeof e=="string"&&n===void 0?H.attribute(i,Ye(e))||"":(typeof e=="object"?H.attribute(i,e):typeof e=="string"&&n!==void 0&&H.attribute(i,Ye(e),n),this):this}circle(t,e,n){return this.path(new Ee({x:t,y:e,radius:n}))}circleEl(t,e,n){const i=Qt.createSVGElement("circle",{cx:String(t),cy:String(e),r:String(n)});return H.insert(this.rootEl,i),i}ellipse(t,e,n,i){return this.path(new Pg({x:t,y:e,rx:n,ry:i}))}ellipseEl(t,e,n,i){const r=Qt.createSVGElement("ellipse",{cx:String(t),cy:String(e),rx:String(n),ry:String(i)});return H.insert(this.rootEl,r),r}rect(t,e,n,i){return this.path(new de({x:t,y:e,width:n,height:i}))}rectEl(t,e,n,i){const r=Qt.createSVGElement("rect",{x:String(t),y:String(e),width:String(n),height:String(i)});return H.insert(this.rootEl,r),r}image(t,e,n,i,r){}text(t,e,n,i){const r=Qt.createSVGElement("text",{x:String(e),y:String(n)});return H.html(r,t),this.attr(r,Object.assign({"alignment-baseline":"middle"},i)),H.insert(this.rootEl,r),r}textWithTspan(t,e,n,i){const r=i?.["line-height"]||"1.2em",o=Qt.createSVGElement("text",{x:String(e),y:String(n)});return t.split(`
|
|
56
|
-
`).forEach((a,l)=>{if(a.trim()){const c=Qt.createSVGElement("tspan",{x:String(e),dy:l>0?r:"0"});H.html(c,a),H.insert(o,c),this.attr(c,Object.assign({"alignment-baseline":"middle"},i))}}),H.insert(this.rootEl,o),o}}const Ku=Eg("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 Eg(s,t=10){const e={},n=s.split(",");for(let i=0;i<n.length;i+=2){const r="&"+n[i+1]+";",o=parseInt(n[i],t);e[r]="&#"+o+";"}return e["\\xa0"]=" ",e}function Me(s,t){const e=Object.keys(t);for(let n=0;n<e.length;n++)s=s.replace(new RegExp("{"+e[n]+"}","gi"),""+t[e[n]]);return s}function Pr(s){let t,e;if(!s)throw new Error("cannot create a random attribute name for an undefined object");const n="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";t="";do for(t="",e=0;e<12;e++)t+=n[Math.floor(Math.random()*n.length)];while(s[t]);return t}function kg(s){const t={left:"start",right:"end",center:"middle",start:"start",end:"end"};return t[s]||t.start}function Tg(s){const t={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return t[s]||t.alphabetic}const wi={strokeStyle:{svgAttr:"stroke",canvas:"#000000",svg:"none",apply:"stroke"},fillStyle:{svgAttr:"fill",canvas:"#000000",svg:null,apply:"fill"},lineCap:{svgAttr:"stroke-linecap",canvas:"butt",svg:"butt",apply:"stroke"},lineJoin:{svgAttr:"stroke-linejoin",canvas:"miter",svg:"miter",apply:"stroke"},miterLimit:{svgAttr:"stroke-miterlimit",canvas:10,svg:4,apply:"stroke"},lineWidth:{svgAttr:"stroke-width",canvas:1,svg:1,apply:"stroke"},globalAlpha:{svgAttr:"opacity",canvas:1,svg:1,apply:"fill stroke"},font:{canvas:"10px sans-serif"},shadowColor:{canvas:"#000000"},shadowOffsetX:{canvas:0},shadowOffsetY:{canvas:0},shadowBlur:{canvas:0},textAlign:{canvas:"start"},textBaseline:{canvas:"alphabetic"},lineDash:{svgAttr:"stroke-dasharray",canvas:[],svg:null,apply:"stroke"},lineDashOffset:{svgAttr:"stroke-dashoffset",canvas:0,svg:0,apply:"stroke"}};class wa{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}addColorStop(t,e){const n=this.__ctx.__createElement("stop");if(n.setAttribute("offset",""+t),e.indexOf("rgba")!==-1){const r=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(e);r&&(n.setAttribute("stop-color",Me("rgb({r},{g},{b})",{r:r[1],g:r[2],b:r[3]})),n.setAttribute("stop-opacity",r[4]))}else n.setAttribute("stop-color",e);this.__root.appendChild(n)}}class Qu{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}}class Dr{__document=document;__canvas;__ctx;width;height;__styleStack;__groupStack;__rootSVG;__ids;__SVGdefs;__currentElement;__currentElementsToStyle=null;constructor({canvas:t,width:e=500,height:n=500}){t?(this.__canvas=t,this.__ctx=t.getContext("2d"),this.width=t.width,this.height=t.height):(this.__canvas=this.__document.createElement("canvas"),this.__ctx=this.__canvas.getContext("2d"),this.width=e,this.height=n),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 t=Object.keys(wi);for(let e=0,n=t.length;e<n;e++){const i=t[e];this[i]=wi[i].canvas}}__getStyleState(){const t={},e=Object.keys(wi);for(let n=0,i=e.length;n<i;n++){const r=e[n];t[r]=this[r]}return t}__applyStyleState(t){const e=Object.keys(t);for(let n=0,i=e.length;n<i;n++){const r=e[n];this[r]=t[r]}}__createElement(t,e={},n=!1){const i=this.__document.createElementNS("http://www.w3.org/2000/svg",t),r=Object.keys(e);n&&(i.setAttribute("fill","none"),i.setAttribute("stroke","none"));for(let o=0;o<r.length;o++){const a=r[o];i.setAttribute(a,e[a])}return i}__applyStyleToCurrentElement(t){let e=this.__currentElement;const n=this.__currentElementsToStyle;n&&(e.setAttribute(t,""),e=n.element,n.children.forEach(r=>{r.setAttribute(t,"")}));const i=Object.keys(wi);for(let r=0;r<i.length;r++){const o=wi[i[r]],a=this[i[r]];if(o.apply){if(a instanceof Qu){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])}e.setAttribute(o.apply,Me("url(#{id})",{id:a.__root.getAttribute("id")}))}else if(a instanceof wa)e.setAttribute(o.apply,Me("url(#{id})",{id:a.__root.getAttribute("id")}));else if(o.apply.indexOf(t)!==-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);if(c){e.setAttribute(o.svgAttr,Me("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),e.setAttribute(o.svgAttr+"-opacity",""+u)}}else{let l=o.svgAttr;if(i[r]==="globalAlpha"&&(l=t+"-"+o.svgAttr,e.getAttribute(l)))continue;l&&e.setAttribute(l,a)}}}}__closestGroupOrSvg(t){return t=t||this.__currentElement,t.nodeName==="g"||t.nodeName==="svg"?t:this.__closestGroupOrSvg(t.parentNode)}getSerializedSvg(t){let e=new XMLSerializer().serializeToString(this.__rootSVG);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(e)&&(e=e.replace('xmlns="http://www.w3.org/2000/svg','xmlns:xlink="http://www.w3.org/1999/xlink')),t){const i=Object.keys(Ku);for(let r=0,o=i.length;r<o;r++){const a=i[r],l=Ku[a],c=new RegExp(a,"gi");c.test(e)&&(e=e.replace(c,l))}}return e}getSvg(){return this.__rootSVG}save(){const t=this.__createElement("g"),e=this.__closestGroupOrSvg();this.__groupStack.push(e),e.appendChild(t),this.__currentElement=t,this.__styleStack.push(this.__getStyleState())}restore(){this.__currentElementsToStyle=null;const t=this.__groupStack.pop();t?this.__currentElement=t:this.__currentElement=this.__rootSVG.childNodes[1];const e=this.__styleStack.pop();e&&this.__applyStyleState(e)}__addTransform(t){const e=this.__closestGroupOrSvg();if(e.childNodes.length>0){this.__currentElement.nodeName==="path"&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:e,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());const i=this.__createElement("g");e.appendChild(i),this.__currentElement=i}let n=this.__currentElement.getAttribute("transform");n?n+=" ":n="",n+=t,this.__currentElement.setAttribute("transform",n)}scale(t,e){e===void 0&&(e=t),this.__addTransform(Me("scale({x},{y})",{x:t,y:e}))}rotate(t){const e=t*180/Math.PI;this.__addTransform(Me("rotate({angle},{cx},{cy})",{angle:e,cx:0,cy:0}))}translate(t,e){this.__addTransform(Me("translate({x},{y})",{x:t,y:e}))}transform(t,e,n,i,r,o){this.__addTransform(Me("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:e,c:n,d:i,e:r,f:o}))}beginPath(){this.__currentDefaultPath="",this.__currentPosition={};const t=this.__createElement("path",{},!0);this.__closestGroupOrSvg().appendChild(t),this.__currentElement=t}__applyCurrentDefaultPath(){const t=this.__currentElement;t.nodeName==="path"&&t.setAttribute("d",this.__currentDefaultPath)}__addPathCommand(t){this.__currentDefaultPath+=" ",this.__currentDefaultPath+=t}moveTo(t,e){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.__currentPosition={x:t,y:e},this.__addPathCommand(Me("M {x} {y}",this.__currentPosition))}closePath(){this.__currentDefaultPath&&this.__addPathCommand("Z")}lineTo(t,e){this.__currentPosition={x:t,y:e},this.__currentDefaultPath.indexOf("M")>-1?this.__addPathCommand(Me("L {x} {y}",this.__currentPosition)):this.__addPathCommand(Me("M {x} {y}",this.__currentPosition))}bezierCurveTo(t,e,n,i,r,o){this.__currentPosition={x:r,y:o},this.__addPathCommand(Me("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:e,cp2x:n,cp2y:i,x:r,y:o}))}quadraticCurveTo(t,e,n,i){this.__currentPosition={x:n,y:i},this.__addPathCommand(Me("Q {cpx} {cpy} {x} {y}",{cpx:t,cpy:e,x:n,y:i}))}normalize(t){const e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]}arcTo(t,e,n,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===t&&a===e||t===n&&e===i||r===0){this.lineTo(t,e);return}const l=this.normalize([o-t,a-e]),c=this.normalize([n-t,i-e]);if(l[0]*c[1]===l[1]*c[0]){this.lineTo(t,e);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=t+d*f[0],v=e+d*f[1],_=[-l[1],l[0]],E=[c[1],-c[0]],D=function(tt){const R=tt[0];return tt[1]>=0?Math.acos(R):-Math.acos(R)},N=D(_),k=D(E);this.lineTo(m+_[0]*r,v+_[1]*r),this.arc(m,v,r,N,k)}stroke(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","fill stroke markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("stroke")}fill(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","stroke fill markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("fill")}rect(t,e,n,i){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+i),this.lineTo(t,e+i),this.lineTo(t,e),this.closePath()}fillRect(t,e,n,i){const r=this.__createElement("rect",{x:t,y:e,width:n,height:i},!0);this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement("fill")}strokeRect(t,e,n,i){const r=this.__createElement("rect",{x:t,y:e,width:n,height:i},!0);this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const e=this.__closestGroupOrSvg().getAttribute("transform"),n=this.__rootSVG.childNodes[1],i=n.childNodes;for(let r=i.length-1;r>=0;r--)i[r]&&n.removeChild(i[r]);this.__currentElement=n,this.__groupStack=[],e&&this.__addTransform(e)}clearRect(t,e,n,i){if(t===0&&e===0&&n===this.width&&i===this.height){this.__clearCanvas();return}const r=this.__closestGroupOrSvg(),o=this.__createElement("rect",{x:t,y:e,width:n,height:i,fill:"#FFFFFF"},!0);r.appendChild(o)}createLinearGradient(t,e,n,i){const r=this.__createElement("linearGradient",{id:Pr(this.__ids),x1:t+"px",x2:n+"px",y1:e+"px",y2:i+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(r),new wa(r,this)}createRadialGradient(t,e,n,i,r,o){const a=this.__createElement("radialGradient",{id:Pr(this.__ids),cx:i+"px",cy:r+"px",r:o+"px",fx:t+"px",fy:e+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(a),new wa(a,this)}__parseFont(){const e=/^\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),n={style:e[1]||"normal",size:e[4]||"10px",family:e[6]||"sans-serif",weight:e[3]||"normal",decoration:e[2]||"normal",href:null};return this.__fontUnderline==="underline"&&(n.decoration="underline"),this.__fontHref&&(n.href=this.__fontHref),n}__wrapTextLink(t,e){if(t.href){const n=this.__createElement("a");return n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.href),n.appendChild(e),n}return e}__applyText(t,e,n,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:e,y:n,"text-anchor":kg(this.textAlign),"dominant-baseline":Tg(this.textBaseline)},!0);a.appendChild(this.__document.createTextNode(t)),this.__currentElement=a,this.__applyStyleToCurrentElement(i),o.appendChild(this.__wrapTextLink(r,a))}fillText(t,e,n){this.__applyText(t,e,n,"fill")}strokeText(t,e,n){this.__applyText(t,e,n,"stroke")}measureText(t){return this.__ctx.font=this.font,this.__ctx.measureText(t)}arc(t,e,n,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=t+n*Math.cos(r),l=e+n*Math.sin(r),c=t+n*Math.cos(i),u=e+n*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(Me("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:n,ry:n,xAxisRotation:0,largeArcFlag:f,sweepFlag:h,endX:a,endY:l})),this.__currentPosition={x:a,y:l}}clip(){const t=this.__closestGroupOrSvg(),e=this.__createElement("clipPath"),n=Pr(this.__ids),i=this.__createElement("g");this.__applyCurrentDefaultPath(),t.removeChild(this.__currentElement),e.setAttribute("id",n),e.appendChild(this.__currentElement),this.__SVGdefs.appendChild(e),t.setAttribute("clip-path",Me("url(#{id})",{id:n})),t.appendChild(i),this.__currentElement=i}drawImage(...t){let e=t[0],n,i,r,o,a=0,l=0,c,u,h,f,d,m,v,_;if(t.length===3)n=t[1],i=t[2],c=e.width,u=e.height,r=c,o=u;else if(t.length===5)n=t[1],i=t[2],r=t[3],o=t[4],c=e.width,u=e.height;else if(t.length===9)a=t[1],l=t[2],c=t[3],u=t[4],n=t[5],i=t[6],r=t[7],o=t[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const E=this.__closestGroupOrSvg();this.__currentElement;const D="translate("+n+", "+i+")";if(e instanceof Dr){if(h=e.getSvg().cloneNode(!0),h.childNodes&&h.childNodes.length>1){for(f=h.childNodes[0];f.childNodes.length;)_=f.childNodes[0].getAttribute("id"),this.__ids[_]=_,this.__SVGdefs.appendChild(f.childNodes[0]);if(d=h.childNodes[1],d){const N=d.getAttribute("transform");let k;N?k=N+" "+D:k=D,d.setAttribute("transform",k),E.appendChild(d)}}}else(e.nodeName==="CANVAS"||e.nodeName==="IMG")&&(m=this.__createElement("image"),m.setAttribute("width",r),m.setAttribute("height",o),m.setAttribute("preserveAspectRatio","none"),(a||l||c!==e.width||u!==e.height)&&(v=this.__document.createElement("canvas"),v.width=r,v.height=o,v.getContext("2d")?.drawImage(e,a,l,c,u,0,0,r,o),e=v),m.setAttribute("transform",D),m.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.nodeName==="CANVAS"?e.toDataURL():e.getAttribute("src")),E.appendChild(m))}createPattern(t,e){const n=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),i=Pr(this.__ids);let r;return n.setAttribute("id",i),t.nodeName==="CANVAS"||t.nodeName==="IMG"?(r=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.nodeName==="CANVAS"?t.toDataURL():t.getAttribute("src")),n.appendChild(r),this.__SVGdefs.appendChild(n)):t instanceof Dr&&(n.setAttribute("width",""+t.width),n.setAttribute("height",""+t.height),n.appendChild(t.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(n)),new Qu(n,this)}setLineDash(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}class Sa{canvas;context;customContext;currentPath2D=new Path2D;path2Ds=[];currentMatrix=new DOMMatrix;hasSetCustomStrokeStyle=!1;hasSetCustomFillStyle=!1;constructor(t,e,n,i=!1){this.canvas=t,this.context=t.getContext("2d",{willReadFrequently:!0}),i&&(this.customContext=new Dr({canvas:this.canvas,width:e||this.canvas.width,height:n||this.canvas.height}))}set lineWidth(t){this.hasSetCustomStrokeStyle=!0,this.context.lineWidth=t,this.customContext&&(this.customContext.lineWidth=t)}get lineWidth(){return this.context.lineWidth}set lineCap(t){this.hasSetCustomStrokeStyle=!0,this.context.lineCap=t,this.customContext&&(this.customContext.lineCap=t)}get lineCap(){return this.context.lineCap}set lineJoin(t){this.hasSetCustomStrokeStyle=!0,this.context.lineJoin=t,this.customContext&&(this.customContext.lineCap=t)}get lineJoin(){return this.context.lineJoin}set lineDashOffset(t){this.hasSetCustomStrokeStyle=!0,this.context.lineDashOffset=t,this.customContext&&(this.customContext.lineDashOffset=t)}get lineDashOffset(){return this.context.lineDashOffset}set miterLimit(t){this.hasSetCustomStrokeStyle=!0,this.context.miterLimit=t,this.customContext&&(this.customContext.miterLimit=t)}get miterLimit(){return this.context.miterLimit}set globalAlpha(t){this.context.globalAlpha=t,this.customContext&&(this.customContext.globalAlpha=t)}get globalAlpha(){return this.context.globalAlpha}set fillStyle(t){this.hasSetCustomFillStyle=!0,typeof t=="string"||t instanceof CanvasGradient||t instanceof CanvasPattern?(this.context.fillStyle=t,this.customContext&&(this.customContext.fillStyle=t)):(this.context.fillStyle=t.gradient,this.customContext&&(this.customContext.fillStyle=t.gradientCustom))}get fillStyle(){return this.context.fillStyle}set strokeStyle(t){this.hasSetCustomStrokeStyle=!0,typeof t=="string"||t instanceof CanvasGradient||t instanceof CanvasPattern?(this.context.strokeStyle=t,this.customContext&&(this.customContext.strokeStyle=t)):(this.context.strokeStyle=t.gradient,this.customContext&&(this.customContext.strokeStyle=t.gradientCustom))}get strokeStyle(){return this.context.strokeStyle}set font(t){this.context.font=t,this.customContext&&(this.customContext.font=t)}get font(){return this.context.font}set textBaseline(t){this.context.textBaseline=t,this.customContext&&(this.customContext.textBaseline=t)}get textBaseline(){return this.context.textBaseline}set textAlign(t){this.context.textAlign=t,this.customContext&&(this.customContext.textAlign=t)}get textAlign(){return this.context.textAlign}fill(t){return t?this.context.fill(t):(this.context.fill(),this.customContext&&this.customContext.fill()),this}fillRect(t,e,n,i){return this.context.fillRect(t,e,n,i),this.customContext&&this.customContext.fillRect(t,e,n,i),this}fillText(t,e,n,i){return this.hasSetCustomFillStyle=!1,this.context.fillText(t,e,n,i),this.customContext&&this.customContext.fillText(t,e,n),this}setLineDash(t){return this.context.setLineDash(t),this.customContext&&this.customContext.setLineDash(t),this}stroke(t){return t?this.context.stroke(t):(this.context.stroke(),this.customContext&&this.customContext.stroke()),this}strokeText(t,e,n,i){return this.context.strokeText(t,e,n,i),this.customContext&&this.customContext.strokeText(t,e,n),this}strokeRect(t,e,n,i){return this.context.strokeRect(t,e,n,i),this.customContext&&this.customContext.strokeRect(t,e,n,i),this}measureText(t){return this.context.measureText(t)}clearRect(t=0,e=0,n=this.canvas.width,i=this.canvas.height){return this.context.clearRect(t,e,n,i),this.customContext&&this.customContext.clearRect(t,e,n,i),this}save(){return this.context.save(),this.customContext&&this.customContext.save(),this.currentMatrix=new DOMMatrix,this.path2Ds.push(this.currentPath2D),this.currentPath2D=new Path2D,this}restore(){return this.context.restore(),this.customContext&&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&&this.customContext.beginPath(),this}closePath(){return this.context.closePath(),this.customContext&&this.customContext.closePath(),this.currentPath2D.closePath(),this}changePath2D(t=this.currentPath2D,e=this.currentMatrix){const n=new Path2D;n.addPath(t,e),this.currentPath2D=n}isPointInStroke(...t){return t[0]instanceof Path2D?this.context.isPointInStroke(t[0],t[1],t[2]):this.context.isPointInStroke(t[0],t[1])}isPointInPath(...t){return t[0]instanceof Path2D?this.context.isPointInPath(t[0],t[1],t[2]):this.context.isPointInPath(t[0],t[1])}translate(t,e){return this.context.translate(t,e),this.customContext&&this.customContext.translate(t,e),this.currentMatrix.translate(t,e),this.changePath2D(),this}rotate(t,e=0,n=0){return this.translate(e,n),this.context.rotate(t),this.customContext&&this.customContext.rotate(t),this.currentMatrix.rotate(t),this.translate(-e,-n),this.changePath2D(),this}scale(t,e=t,n=0,i=0){return this.translate(n,i),this.context.scale(t,e),this.customContext&&this.customContext.scale(t,e),this.currentMatrix.scale(t,e),this.translate(-n,-i),this.changePath2D(),this}moveTo(t,e){return this.context.moveTo(t,e),this.customContext&&this.customContext.moveTo(t,e),this.currentPath2D.moveTo(t,e),this}lineTo(t,e){return this.context.lineTo(t,e),this.customContext&&this.customContext.lineTo(t,e),this.currentPath2D.lineTo(t,e),this}arc(t,e,n,i,r,o){return this.context.arc(t,e,n,i,r,o),this.customContext&&this.customContext.arc(t,e,n,i,r,o?-1:1),this.currentPath2D.arc(t,e,n,i,r,o),this}arcTo(t,e,n,i,r){return this.context.arcTo(t,e,n,i,r),this.customContext&&this.customContext.arcTo(t,e,n,i,r),this.currentPath2D.arcTo(t,e,n,i,r),this}ellipse(t,e,n,i,r,o,a,l){return this.context.ellipse(t,e,n,i,r,o,a,l),this.currentPath2D.ellipse(t,e,n,i,r,o,a,l),this}quadraticCurveTo(t,e,n,i){return this.context.quadraticCurveTo(t,e,n,i),this.customContext&&this.customContext.quadraticCurveTo(t,e,n,i),this.currentPath2D.quadraticCurveTo(t,e,n,i),this}bezierCurveTo(t,e,n,i,r,o){return this.context.bezierCurveTo(t,e,n,i,r,o),this.customContext&&this.customContext.bezierCurveTo(t,e,n,i,r,o),this.currentPath2D.bezierCurveTo(t,e,n,i,r,o),this}rect(t,e,n,i){return this.context.rect(t,e,n,i),this.customContext&&this.customContext.rect(t,e,n,i),this.currentPath2D.rect(t,e,n,i),this}createLinearGradient(t,e,n,i,r){const o=this.context.createLinearGradient(t,e,n,i);return r&&Object.entries(r).forEach(([a,l])=>{o.addColorStop(parseFloat(a),l)}),o}createRadialGradient(t,e,n,i,r,o,a){const l=this.context.createRadialGradient(t,e,n,i,r,o);return a&&Object.entries(a).forEach(([c,u])=>{l.addColorStop(parseFloat(c),u)}),l}drawImage(t,...e){if(e.length===0)this.context.drawImage(t,0,0);else if(e.length===2){const n=e[0],i=e[1];this.context.drawImage(t,n,i)}else if(e.length===4){const n=e[0],i=e[1],r=e[2],o=e[3];this.context.drawImage(t,n,i,r,o)}else if(e.length===8){const n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],l=e[5],c=e[6],u=e[7];this.context.drawImage(t,n,i,r,o,a,l,c,u)}else throw new Error("Invalid number of arguments passed to drawImage: "+e.length);return this.customContext&&this.customContext.drawImage(t,...e),this}getImageData(t=0,e=0,n=this.canvas.width,i=this.canvas.height,r){return this.context.getImageData(t,e,n,i,r)}putImageData(t,e=0,n=0){return this.context.putImageData(t,e,n)}createPattern(t,e){return this.context.createPattern(t,e)}toRawSVG(){if(this.customContext){const t=this.customContext.getSerializedSvg(!0),e=this.customContext.getSvg();return{raw:t,element:e}}else return{raw:"",element:null}}}class ke extends Jt{fromX;fromY;constructor(t){super(t),this.fromX=t?.fromX||0,this.fromY=t?.fromY||0}static fromSVGPathData(t,e){if(t.length<3)throw new Error("Line 参数个数错误");if(t[0].toUpperCase()!=="L")throw new Error("Line command 错误");return new ke({x:t[1],y:t[2],fromX:e?.x,fromY:e?.y})}toSVGPathData(){return["L",this.x,this.y]}toCanvasContext(t){t.beginPath(),t.moveTo(this.fromX,this.fromY),t.lineTo(this.x,this.y)}getBoundingClientRect(){const t=Nn(this.fromX,this.fromY,this.x,this.y);if(t===0){const e=Math.min(this.x,this.fromX),n=Math.min(this.y,this.fromY),i=Math.max(this.x,this.fromX),r=Math.max(this.y,this.fromY);return new yi({x:e,y:n,width:i-e,height:r-n})}else{const e=Math.sin(t),n=Math.cos(t),i=n*this.fromX-e*this.fromY,r=n*this.x-e*this.y,o=n*this.fromY+e*this.fromX,a=n*this.y+e*this.x;return new yi({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)})}}interpolate(t){return{x:this.fromX+t*(this.x-this.fromX),y:this.fromY+t*(this.y-this.fromY)}}intersection(t){const e=this.fromX,n=this.fromY,i=t.x,r=t.y,o=this.x-e,a=t.fromX-i;if(!o&&!a)return null;const l=(this.y-n)/o,c=(t.fromY-r)/a;if(o){if(!a)return{x:i,y:l*(i-e)+n}}else return{x:e,y:c*(e-i)+r};const u=(-c*i+r+l*e-n)/(l-c),h=l*(u-e)+n;return isNaN(u)||isNaN(h)?null:{x:u,y:h}}}class Ca extends ke{c1x;c1y;c2x;c2y;constructor(t){super(t),this.c1x=t.c1x,this.c1y=t.c1y,this.c2x=t.c2x,this.c2y=t.c2y}static fromSVGPathData(t,e){if(t.length<7)throw new Error("CubicBezier 参数个数错误");if(t[0].toUpperCase()!=="C")throw new Error("CubicBezier command 错误");return new Ca({c1x:t[1],c1y:t[2],c2x:t[3],c2y:t[4],x:t[5],y:t[6],fromX:e?.x,fromY:e?.y})}toSVGPathData(){return["C",this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y]}toCanvasContext(t){t.beginPath(),t.moveTo(this.fromX,this.fromY),t.bezierCurveTo(this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y)}getBoundingClientRect(){const t=Qt.curveDim(this.fromX,this.fromY,this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y);return new yi({x:t.min.x,y:t.min.y,width:t.max.x-t.min.x,height:t.max.y-t.min.y})}interpolate(t){return{x:Math.pow(1-t,3)*this.fromX+3*Math.pow(1-t,2)*t*this.c1x+3*Math.pow(1-t,1)*Math.pow(t,2)*this.c2x+Math.pow(t,3)*this.x,y:Math.pow(1-t,3)*this.fromY+3*Math.pow(1-t,2)*t*this.c1y+3*Math.pow(1-t,1)*Math.pow(t,2)*this.c2y+Math.pow(t,3)*this.y}}length(t=1){return Qt.bezlen(this.fromX,this.fromY,this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y,t)}getTatLen(t){const e=this.fromX,n=this.fromY,i=this.c1x,r=this.c1y,o=this.c2x,a=this.c2y,l=this.x,c=this.y;if(t<0||Qt.bezlen(e,n,i,r,o,a,l,c)<t)return 0;let u=1,h=u/2,f=u-h,d,m=.01;for(d=Qt.bezlen(e,n,i,r,o,a,l,c,f);Math.abs(d-t)>m;)h/=2,f+=(d<t?1:-1)*h,d=Qt.bezlen(e,n,i,r,o,a,l,c,f);return f}getPointAtSegmentLength(t){const e=this.getTatLen(t),n=this.fromX,i=this.fromY,r=this.c1x,o=this.c1y,a=this.c2x,l=this.c2y,c=this.x,u=this.y;let h=1-e,f=Math.pow(h,3),d=Math.pow(h,2),m=e*e,v=m*e,_=f*n+d*3*e*r+h*3*e*e*a+v*c,E=f*i+d*3*e*o+h*3*e*e*l+v*u,D=n+2*e*(r-n)+m*(a-2*r+n),N=i+2*e*(o-i)+m*(l-2*o+i),k=r+2*e*(a-r)+m*(c-2*a+r),tt=o+2*e*(l-o)+m*(u-2*l+o),R=h*n+e*r,U=h*i+e*o,vt=h*a+e*c,bt=h*l+e*u,Ct=90-Math.atan2(D-k,N-tt)*180/Math.PI;return{x:_,y:E,m:{x:D,y:N},n:{x:k,y:tt},start:{x:R,y:U},end:{x:vt,y:bt},alpha:Ct}}}const Ks=Ca;class _n extends ke{cx;cy;isLineThrough;constructor(t){super(t),this.cx=t.cx,this.cy=t.cy,this.isLineThrough=typeof t.isLineThrough=="boolean"?t.isLineThrough:!0}static fromSVGPathData(t,e){if(t.length<5)throw new Error("QuadraticBezier 参数个数错误");if(t[0].toUpperCase()!=="Q")throw new Error("QuadraticBezier command 错误");return new _n({cx:t[1],cy:t[2],x:t[3],y:t[4],fromX:e?.x,fromY:e?.y})}toSVGPathData(){if(this.isLineThrough){const t=this.cx*2-(this.fromX+this.x)/2,e=this.cy*2-(this.fromY+this.y)/2;return["Q",t,e,this.x,this.y]}else return["Q",this.cx,this.cy,this.x,this.y]}toCanvasContext(t){if(t.beginPath(),t.moveTo(this.fromX,this.fromY),this.isLineThrough){const e=this.cx*2-(this.fromX+this.x)/2,n=this.cy*2-(this.fromY+this.y)/2;t.quadraticCurveTo(e,n,this.x,this.y)}else t.quadraticCurveTo(this.cx,this.cy,this.x,this.y)}interpolate(t){return{x:(1-t)*(1-t)*this.fromX+2*(1-t)*t*this.cx+t*t*this.x,y:(1-t)*(1-t)*this.fromY+2*(1-t)*t*this.cy+t*t*this.y}}}const Og=_n;class Ea extends ke{rx;ry;xAxisRotate;largeArcFlag;sweepFlag;constructor(t){super(t),this.rx=t.rx,this.ry=t.ry,this.xAxisRotate=t?.xAxisRotate??0,this.largeArcFlag=t?.largeArcFlag??1,this.sweepFlag=t?.sweepFlag??1}static fromSVGPathData(t,e){if(t.length<8)throw new Error("Arc 参数个数错误");if(t[0].toUpperCase()!=="A")throw new Error("Arc command 错误");return new Ea({rx:t[1],ry:t[2],xAxisRotate:t[3],largeArcFlag:t[4],sweepFlag:t[5],x:t[6],y:t[7],fromX:e?.x,fromY:e?.y})}toSVGPathData(){return["A",this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag,this.x,this.y]}toCanvasContext(t){t.beginPath();const[e,n,i,r,o,a,l]=this.convertSVGToCanvas(this.fromX,this.fromY,this.x,this.y,this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag);t.ellipse(e-this.x,n-this.y,i,r,o,a,l,!this.sweepFlag)}convertSVGToCanvas(t,e,n,i,r,o,a,l,c){const u=a/180*Math.PI,h=(t-n)/2,f=(e-i)/2,d=Math.cos(u)*h+Math.sin(u)*f,m=-Math.sin(u)*h+Math.cos(u)*f,v=d*d/(r*r)+m*m/(o*o);if(v>1){const Rt=Math.sqrt(v);throw r=Rt*r,o=Rt*o,new Error(`Radii are too small to build an arc. Correcting them to ${r}/${o}.`)}const _=Math.sqrt((r*r*o*o-r*r*m*m-o*o*d*d)/(r*r*m*m+o*o*d*d)),E=l!=c?1:-1,D=E*_*r*m/o,N=E*_*-o*d/r,k=(t+n)/2,tt=(e+i)/2,R=Math.cos(u)*D-Math.sin(u)*N+k,U=Math.sin(u)*D+Math.cos(u)*N+tt,vt=(Rt,$t,se,ne)=>(Rt*ne>=$t*se?1:-1)*Math.acos((Rt*se+$t*ne)/(Math.sqrt(Rt*Rt+$t*$t)*Math.sqrt(se*se+ne*ne))),bt=vt(1,0,t-R,e-U)-u,Ct=vt(t-R,e-U,n-R,i-U);return[R,U,r,o,u,bt,bt+Ct]}}const ka=Ea;class gt extends Jt{startPathX=0;startPathY=0;prevPathX=0;prevPathY=0;normalizedLines=[];constructor(t){super(t),this.prevPathX=this.startPathX=this.x,this.prevPathY=this.startPathY=this.y}appendLine(t){if(t instanceof ka){zu(this.prevPathX,this.prevPathY,t.x,t.y,t.largeArcFlag,t.sweepFlag,t.rx,t.ry,t.xAxisRotate).forEach(c=>{const[u,h,f,d,m,v,_,E]=c;this.normalizedLines.push(new Ks({c1x:f,c1y:d,c2x:m,c2y:v,x:_,y:E,fromX:this.prevPathX,fromY:this.prevPathY})),this.prevPathX=_,this.prevPathY=E});return}let e,n,i,r,o,a;t instanceof Ks?(e=t.c1x,n=t.c1y,i=t.c2x,r=t.c2y,o=t.x,a=t.y):t instanceof Og?[e,n,i,r,o,a]=fa(this.prevPathX,this.prevPathY,t.cx,t.cy,t.x,t.y):[e,n,i,r,o,a]=gi(this.prevPathX,this.prevPathY,t.x,t.y),this.normalizedLines.push(new Ks({c1x:e,c1y:n,c2x:i,c2y:r,x:o,y:a,fromX:this.prevPathX,fromY:this.prevPathY})),this.prevPathX=o,this.prevPathY=a}static fromSVGPathD(t="M0,0",e){const n=new gt(e);return n.updateFromSVGPathD(t),n}static fromSVGPathData(t,e){const n=new gt(e);return n.updateFromSVGPathData(t),n}static fromShape(t,e){const n=new gt(Object.assign({attrs:{...t.attrs}},e));return n.updateFromShape(t),n}updateFromShape(t){this.degree=t.degree,this.scalexOnOrigin=t.scalexOnOrigin,this.scaleyOnOrigin=t.scaleyOnOrigin,this.skewxDegreeOnOrigin=t.skewxDegreeOnOrigin,this.skewyDegreeOnOrigin=t.skewyDegreeOnOrigin,this.updateFromSVGPathD(t.toSVGPathD())}updateFromSVGPathD(t){Qt.isSVGPath(t)&&this.updateFromSVGPathData(Qt.parseSVGPath(t))}updateFromSVGPathData(t){this.normalizedLines=[];const e=Qt.normalizeSVGPath(Qt.absolutizeSVGPath(t));for(let n=0,i=e.length;n<i;n++){const r=e[n];if(r[0]=="M"){this.prevPathX=this.startPathX=r[1],this.prevPathY=this.startPathY=r[2];continue}this.appendLine(new Ks({c1x:r[1],c1y:r[2],c2x:r[3],c2y:r[4],x:r[5],y:r[6]}))}this.prevDegree=0,this.prevScalexOnOrigin=1,this.prevScaleyOnOrigin=1,this.prevSkewxDegreeOnOrigin=0,this.prevSkewyDegreeOnOrigin=0,this.updateTransform()}toSVGPathData(t=!1){let e=[];e.push(["M",this.startPathX,this.startPathY]);for(let n=0,i=this.normalizedLines.length;n<i;n++)e.push(this.normalizedLines[n].toSVGPathData());return t&&(e=Qt.relativeSVGPath(e)),e}toCanvasContext(t){t.beginPath(),t.moveTo(this.startPathX,this.startPathY),this.normalizedLines.forEach(e=>{const[n,...i]=e.toSVGPathData();t.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5])})}static toCanvasContextUsePath2D(t,e,n,i){t.beginPath();const r=new Path2D(e),o=new Path2D;o.addPath(r,new DOMMatrix(n));const a=new Path2D;return a.addPath(o,Qm(i)),t.fill(a),a}updateTransform(){if((this.x!=this.prevX||this.y!=this.prevY)&&this.translate(this.x-this.prevX,this.y-this.prevY),this.scalexOnOrigin!=this.prevScalexOnOrigin||this.scaleyOnOrigin!=this.prevScaleyOnOrigin){const t=this.getBoundingClientRect();this.scale(this.scalexOnOrigin/this.prevScalexOnOrigin,this.scaleyOnOrigin/this.prevScaleyOnOrigin,this.renderGroup&&!this.transformBaseOnSelfInRenderGroup?this.renderGroup.x:t.x+t.width/2,this.renderGroup&&!this.transformBaseOnSelfInRenderGroup?this.renderGroup.y:t.y+t.height/2)}if(this.degree!=this.prevDegree){const t=this.getBoundingClientRect();this.rotate(this.degree-this.prevDegree,this.renderGroup&&!this.transformBaseOnSelfInRenderGroup?this.renderGroup.x:t.x+t.width/2,this.renderGroup&&!this.transformBaseOnSelfInRenderGroup?this.renderGroup.y:t.y+t.height/2)}this.skewxDegreeOnOrigin!=this.prevSkewxDegreeOnOrigin&&this.skewx(this.skewxDegreeOnOrigin-this.prevSkewxDegreeOnOrigin),this.skewyDegreeOnOrigin!=this.prevSkewyDegreeOnOrigin&&this.skewy(this.skewyDegreeOnOrigin-this.prevSkewyDegreeOnOrigin)}transform(t){return{x:this.startPathX,y:this.startPathY}=t.applyToPoint(this.startPathX,this.startPathY),{x:this.prevPathX,y:this.prevPathY}=t.applyToPoint(this.prevPathX,this.prevPathY),this.normalizedLines.forEach(e=>{({x:e.fromX,y:e.fromY}=t.applyToPoint(e.fromX,e.fromY)),{x:e.c1x,y:e.c1y}=t.applyToPoint(e.c1x,e.c1y),{x:e.c2x,y:e.c2y}=t.applyToPoint(e.c2x,e.c2y),{x:e.x,y:e.y}=t.applyToPoint(e.x,e.y)}),this}translate(t,e){const n=new je().translate(t,e);return this.transform(n),this.prevX=this.x,this.prevY=this.y,this}rotate(t,e=0,n=0){const i=new je().rotate(t,e,n);return this.transform(i),this.prevDegree=this.degree,this}scale(t,e=t,n=0,i=0){const r=new je().scale(t,e,n,i);return this.transform(r),this.prevScalexOnOrigin=this.scalexOnOrigin,this.prevScaleyOnOrigin=this.scaleyOnOrigin,this}skewx(t){const e=new je().skew(t,0);return this.transform(e),this.prevSkewxDegreeOnOrigin=this.skewxDegreeOnOrigin,this}skewy(t){const e=new je().skew(0,t);return this.transform(e),this.prevSkewyDegreeOnOrigin=this.skewyDegreeOnOrigin,this}trim(){const t=this.getBoundingClientRect();return this.translate(-t.x,-t.y),this}getBoundingClientRect(){let t=0,e=0,n=[],i=[];t=this.startPathX,e=this.startPathY,n.push(t),i.push(e),this.normalizedLines.forEach(c=>{const u=Qt.curveDim(t,e,c.c1x,c.c1y,c.c2x,c.c2y,c.x,c.y);n=n.concat(u.min.x,u.max.x),i=i.concat(u.min.y,u.max.y),t=c.x,e=c.y});const r=Math.min.apply(0,n),o=Math.min.apply(0,i),a=Math.max.apply(0,n),l=Math.max.apply(0,i);return new yi({x:r,y:o,width:a-r,height:l-o})}getTotalLength(){return this.normalizedLines.reduce((t,e)=>t+=e.length(),0)}getPointAtLength(t){let e=0;const n=this.normalizedLines.length;for(let i=0;i<n;i++){const r=this.normalizedLines[i],o=r.length();if(e+o>=t)return r.getPointAtSegmentLength(t-e);e+=o}return this.normalizedLines[n-1].getPointAtSegmentLength(1)}interpolate(t){if(this.normalizedLines.length===0)return{x:this.startPathX,y:this.startPathX};if(this.normalizedLines.length===1)return this.normalizedLines[0].interpolate(t);{let e=t*this.normalizedLines.length,n=this.normalizedLines[0];if(e--,e>1)for(let i=1,r=this.normalizedLines.length;i<r&&(n=this.normalizedLines[i],e>1);i++)e-=1;return n.interpolate(e)}}getSubpathsAtLength(t,e,n){let i=null,r=0;const o=new gt;o.prevPathX=o.startPathX=t.x,o.prevPathY=o.startPathY=t.y;for(let a=0,l=t.normalizedLines.length;a<l;a++){const c=t.normalizedLines[a],u=c.length();if(r+u>e&&!i){const h=c.getPointAtSegmentLength(e-r);if(o.appendLine(new Ks({c1x:h.start.x,c1y:h.start.y,c2x:h.m.x,c2y:h.m.y,x:h.x,y:h.y})),n)return o;i=o,o.prevPathX=h.x,o.prevPathY=h.y,o.appendLine(new Ks({c1x:h.n.x,c1y:h.n.y,c2x:h.end.x,c2y:h.end.y,x:c.x,y:c.y})),r+=u;continue}r+=u,o.appendLine(c)}return o}getSubpath(t,e){if(this.getTotalLength()-e<1e-6)return this.getSubpathsAtLength(this,t);{const n=this.getSubpathsAtLength(this,e,1);return t?this.getSubpathsAtLength(n,t):n}}trailPath(t,e=0){const n=this.getTotalLength();return t.updateFromSVGPathD(this.getSubpath(0,e*n).toSVGPathD()),this.getPointAtLength(e*n)}closestPoint(t,e){const n=this.getTotalLength();let i={x:t,y:e},r=0,o=1/0,a=8;for(let c=0;c<=n;c+=a){let u=this.getPointAtLength(c),h=da(u.x,u.y,t,e);h<o&&(i=u,r=c,o=h)}for(a/=2;a>.5;){let c=r-a,u=this.getPointAtLength(c),h=da(u.x,u.y,t,e),f=r+a,d=this.getPointAtLength(f),m=da(d.x,d.y,t,e);c>=0&&h<o?(i=u,r=c,o=h):f<=n&&m<o?(i=d,r=f,o=m):a/=2}const l=this.getPointAtLength(r+(r===n?-.1:.1));return{point:i,rotation:r>=n?Nn(l.x,l.y,i.x,i.y):Nn(i.x,i.y,l.x,l.y),distance:Math.sqrt(o)}}isPointInPath(t,e,n){if(n instanceof Sa)return n.isPointInPath(new Path2D(this.toSVGPathD()),t,e);let i;try{i=new SVGPoint(t,e)}catch{i=n.createSVGPoint(),i.x=t,i.y=e}return this.el instanceof SVGGeometryElement?this.el.isPointInFill(i):!1}isPointInStroke(t,e,n){if(n instanceof Sa)return n.isPointInStroke(new Path2D(this.toSVGPathD()),t,e);let i;try{i=new SVGPoint(t,e)}catch{i=n.createSVGPoint(),i.x=t,i.y=e}return this.el instanceof SVGGeometryElement?this.el.isPointInStroke(i):!1}strokeDashToTween(t){const e=+this.getTotalLength().toFixed(0);this.setAttr({strokeDasharray:`${e} ${e}`,strokeDashoffset:`${e}`});const n=t?.onUpdate;return fe.toTween({offset:e},{offset:0},Object.assign(t||{},{onUpdate:(i,r)=>{this.setAttr("strokeDashoffset",""+qe(i.offset,2)),n?.(i,r)}}))}get polymorphPoints(){return[this.startPathX,this.startPathY].concat(this.normalizedLines.reduce((t,e)=>t.concat([e.c1x,e.c1y,e.c2x,e.c2y,e.x,e.y]),[]))}static fromPolymorphPoints(t){const e=new gt({x:t[0],y:t[1]});for(let n=2;n+5<t.length;n+=6)e.appendLine(new Ks({c1x:t[n],c1y:t[n+1],c2x:t[n+2],c2y:t[n+3],x:t[n+4],y:t[n+5]}));return e}perimeterPoints(){const t=this.polymorphPoints,e=t.length;let n=t[e-2],i=t[e-1],r=0;for(let o=0;o<e;o+=6)r+=ha(t[o],t[o+1],n,i),n=t[o],i=t[o+1];return Math.floor(r)}fillPathD(t){const e=this.polymorphPoints,n=e.length;let i=t-n;const r=Math.ceil(t/n),o=[];o.push(["M",e[0],e[1]]);let a=2;for(;a+5<=n-1;){const l=e[a++],c=e[a++],u=e[a++],h=e[a++],f=e[a++],d=e[a++];o.push(["C",l,c,u,h,f,d]);let m=0;for(;m<r&&i>0;)o.push(["C",f,d,f,d,f,d]),i-=6,m++}return gt.fromSVGPathData(o)}static mixPoints(t,e,n){const i=t.length,r=new Array(i);for(let o=0;o<i;o++)r[o]=qe(t[o]+(e[o]-t[o])*n,6);return r}static getPathInterpolator(t,e){return n=>Math.abs(n-0)<Number.EPSILON?t.toSVGPathD():Math.abs(n-1)<Number.EPSILON?e.toSVGPathD():gt.fromPolymorphPoints(this.mixPoints(t.polymorphPoints,e.polymorphPoints,n)).toSVGPathD()}static polymorph(t){if(!t.length)throw new Error("paths 为空!");const e=t.length-1,n=new Array(e);for(let r=0;r<e;r++){const o=Math.max(t[r].polymorphPoints.length,t[r+1].polymorphPoints.length);n[r]=this.getPathInterpolator(t[r].fillPathD(o),t[r+1].fillPathD(o))}const i=gt.fromSVGPathD(n[0](0));return r=>{const o=qe(e*r,6),a=Math.min(Math.floor(o),e-1),l=qe(o-a,6);i.updateFromSVGPathD(n[a](l));const c=t[a].getAttr("fill","none"),u=t[a+1].getAttr("fill","none");typeof c=="string"&&typeof u=="string"&&i.setAttr("fill",Wu(c,u,l));const h=t[a].getAttr("stroke","none"),f=t[a+1].getAttr("stroke","none");return typeof h=="string"&&typeof f=="string"&&i.setAttr("stroke",Wu(h,f,l)),i}}static generateRosetta(t,e,n,i,r){if(r==0)throw new Error("no dividing by zero, please");const o=new gt({x:t,y:e}),a=360/r;for(let l=0;l<r;l+=1){const c=a*l*Math.PI/180,u=t+2*n*Math.cos(c),h=e+2*n*Math.sin(c);o.appendLine(new ka({x:u,y:h,rx:n,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1})),o.appendLine(new ka({x:t,y:e,rx:n,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1}))}return o}}class gs extends fg{svgWidth=0;svgHeight=0;width=0;height=0;shapes=[];constructor(t){if(super(t),!t?.svg)return;const e=new Sg(t.svg).parse();for(let n=0,i=e.length;n<i;n++){const r=e[n];if(r.type=="viewbox"&&r.width&&r.height){if(this.svgWidth=parseFloat(r.width),this.svgHeight=parseFloat(r.height),t.width){const u=this.svgWidth/this.svgHeight;this.width=t.width,this.height=this.width/u}else this.width=this.svgWidth,this.height=this.svgHeight;continue}if(r.type!="path"||!vn.isSVGPath(r.path))continue;const o={};for(const u in r)u==="type"||u==="path"||u==="transform"||(o[u]=r[u]);const a=vn.absolutizeSVGPath(vn.parseSVGPath(r.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=gt.fromSVGPathData(u,t),f=Xu(r.transform??"");h.transform(f),h.attrs={...h.attrs,...o,...t.attrs},this.width&&this.svgWidth&&h.scale(this.width/this.svgWidth),this.addShape(h)})}}addShape(t,e){(Array.isArray(t)?t:[t]).forEach(n=>{if(n instanceof gt)super.addShape(n);else{const i=gt.fromShape(n,{...e});i&&super.addShape(i)}})}static fromShape(t,e){const n=new gs;return n.addShape(t,e),n}strokeDashToTween(t){const e=t?.type||"parallel",n=this.shapes.map(i=>i.strokeDashToTween({...t}).tween);switch(e){case"sequence":return n.forEach((i,r)=>{r>0&&n[r-1].chain(i)}),{startAuto:fe.toTweenGroup(n[0],t)};case"parallel":default:return{startAuto:fe.toTweenGroup(n,t)}}}sortPathD(){this.shapes=this.shapes.map(t=>({path:t,perimeter:t.perimeterPoints()})).sort((t,e)=>e.perimeter-t.perimeter).map(t=>t.path)}fillPathDGroup(t){const e=t.shapes.length,n=this.shapes.length;if(e<n)return t.fillPathDGroup(this);for(let i=n;i<e;i++){const r=t.shapes[i].polymorphPoints,o=r[0],a=r[1],l=new gt({x:o,y:a,attrs:{...t.shapes[i].attrs}});for(let c=2;c+5<r.length;c+=6)l.appendLine(new Ks({c1x:o,c1y:a,c2x:o,c2y:a,x:o,y:a}));this.addShape(l)}}static polymorph(t){if(!t.length)throw new Error("groups 为空!");let e=-1,n=0;t.forEach((a,l)=>{a.sortPathD(),n<a.shapes.length&&(n=a.shapes.length,e=l)}),t.forEach(a=>a.fillPathDGroup(t[e]));const i=[];t.forEach((a,l)=>{a.shapes.forEach((c,u)=>{i[u]=i[u]||[],i[u][l]=c})});const r=[];i.forEach(a=>r.push(gt.polymorph(a)));const o=new gs;return r.forEach(a=>{o.addShape(a(0))}),a=>(r.forEach(l=>{l(a)}),o)}}class Pg extends Jt{rx;ry;constructor(t){super(t),this.rx=t?.rx||0,this.ry=t?.ry||0}getBoundingClientRect(){return new de({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(t){t.beginPath(),t.ellipse(0,0,this.rx,this.ry,0,0,2*Math.PI,!0),t.closePath()}}class $n extends Jt{points;constructor(t=[]){if(!t.length)throw new Error("points can't be null");super(t[0]),this.points=t}toSVGPathData(){const t=this.points.length;if(t<3)throw new Error("points length must >= 3");const e=[];e.push(["M",this.points[0].x,this.points[0].y]);for(let n=0;n<=t-1;n++)e.push(["L",this.points[n].x,this.points[n].y]);return e.push(["L",this.points[0].x,this.points[0].y]),e}toCanvasContext(t){const e=this.points.length;if(e<3)throw new Error("points length must >= 3");t.beginPath(),t.moveTo(0,0);for(let n=0;n<=e-1;n++)t.lineTo(this.points[n].x-this.points[0].x,this.points[n].y-this.points[0].y);t.lineTo(0,0)}get length(){return this.points.length}addPoint(t){this.points.push(t)}getPoint(t){return this.points[t]}isContainPoint(t,e){const n=this.length;let i=!1;const r=2e-10;for(let o=0,a=n-1;o<n;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===t&&c===e||u===t&&h===e||e===c&&e===h)return!0;if(e>=c&&e<h||e<c&&e>=h){const f=(u-l)/(h-c),d=l+f*(e-c);if(d===t||Math.abs(d-t)<r)return!0;d>t&&(i=!i)}}return i}[Symbol.iterator](){let t=0;return{next:()=>({value:t>=this.length-1?this.points[++t]:void 0,done:t>=this.length})}}static generatePoints(t,e,n,i){const r=[];for(let o=0;o<i;o++){const a=o/i*2*Math.PI,{dx:l,dy:c}=Is(a,n);r.push(new Ee({x:t+l,y:e+c}))}return new $n(r)}}class Ir extends Jt{text;width=0;height=0;constructor(t){super(t),this.text=t.text,this.setAttr({fontSize:"10px",fontFamily:'system-ui, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif',emojiFontFamily:'"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif',fill:"#666666",stroke:"none","alignment-baseline":"middle",textAnchor:"start",...this.attrs});const e=Us(this.getAttr("fontSize"),10).number,n=Us(this.getAttr("fontWeight"),400).number,i=H.measureText(this.text,e,n);this.width=i.width,this.height=i.height,this.frameUpdate()}frameUpdate(){super.frameUpdate()}getBoundingClientRect(){return null}toSVGPathData(){return[]}toCanvasContext(t){t.fillText(this.text,0,0)}}class Nr extends Jt{constructor(t){super(t)}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(t){t.beginPath(),t.moveTo(-50,-25),t.lineTo(0,-25),t.lineTo(0,-50),t.lineTo(50,0),t.lineTo(0,50),t.lineTo(0,25),t.lineTo(-50,25),t.lineTo(-50,-25),t.closePath()}}class Ta extends Jt{constructor(t){super(t)}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(t){t.beginPath(),t.moveTo(4,24),t.lineTo(8,16),t.lineTo(14,10),t.lineTo(15,0),t.lineTo(9,-10),t.lineTo(2,0),t.lineTo(-2,0),t.lineTo(-9,-10),t.lineTo(-15,0),t.lineTo(-14,10),t.lineTo(-8,16),t.lineTo(-4,24),t.closePath()}}class Dg extends gt{constructor(t){super(t),this.rx=t?.rx??10,this.ry=t?.ry??10,this.updateFromSVGPathData([["M",this.x,this.y],["l",this.rx*2.4,-this.ry*3.14],["a",this.rx/2,this.ry/2,0,0,0,-this.rx*2.4,-this.ry*1.5],["a",this.rx/2,this.ry/2,0,0,0,-this.rx*2.4,this.ry*1.5],["l",this.rx*2.4,this.ry*3.14],["z"]])}}class Ig extends gt{constructor(t){super(t),this.rx=t?.rx??50,this.ry=t?.ry??50,this.updateFromSVGPathData([["M",this.x,this.y+this.ry*.3],["C",this.x,this.y,this.x-this.rx/2,this.y,this.x-this.rx/2,this.y+this.ry*.3],["C",this.x-this.rx/2,this.y+(this.ry+this.ry*.3)/2,this.x,this.y+(this.ry+this.ry*.3)/1.4,this.x,this.y+this.ry],["C",this.x,this.y+(this.ry+this.ry*.3)/1.8,this.x+this.rx/2,this.y+(this.ry+this.ry*.3)/2,this.x+this.rx/2,this.y+this.ry*.3],["C",this.x+this.rx/2,this.y,this.x,this.y,this.x,this.y+this.ry*.3],["z"]])}}class Ju extends gt{constructor(t){super(t),this.r=t?.r??20;let e="M"+this.x+","+(this.y-this.r);for(let n=0;n<6;n+=1){const i=270+n*144,r=this.x+this.r*Math.cos(It(i)),o=this.y+this.r*Math.sin(It(i));e+="L"+r+","+o}this.updateFromSVGPathD(e)}}class Ng extends gt{constructor(t){super(t),this.updateFromSVGPathData([["M",this.x,this.y],["C",this.x+15,this.y,this.x+15,this.y-40,this.x+5,this.y+-30],["L",this.x,this.y],["C",this.x-15,this.y,this.x-15,this.y-40,this.x-5,this.y-30],["L",this.x,this.y],["a",15,15,0,1,1,0,30],["a",15,15,0,1,1,0,-30]])}}class Mg extends gt{constructor(t){super(t),this.updateFromSVGPathD(`M${this.x} ${this.y}m5.068 9.267-3.08-.77a.512.512 0 0 1 0-.994l3.08-.77a2.289 2.289 0 0 0 1.665-1.665l.77-3.08a.512.512 0 0 1 .994 0l.77 3.08c.205.82.845 1.46 1.665 1.665l3.08.77a.512.512 0 0 1 0 .994l-3.08.77a2.29 2.29 0 0 0-1.665 1.665l-.77 3.08a.512.512 0 0 1-.994 0l-.77-3.08a2.289 2.289 0 0 0-1.665-1.665Z`)}}class Ag extends gs{constructor(t){super(t),this.addShape(gt.fromSVGPathData([["M",this.x,this.y],["L",this.x,this.y-140-Math.random()*20]],{renderGroup:this.renderGroup,...t})),this.addShape(gt.fromSVGPathData([["M",this.x,this.y-30-Math.random()*30],["L",this.x+Math.random()*80-40,this.y-100-Math.random()*40]],{renderGroup:this.renderGroup,...t})),this.addShape(gt.fromSVGPathData([["M",this.x,this.y-60-Math.random()*40],["L",this.x+Math.random()*60-30,this.y-110-Math.random()*20]],{renderGroup:this.renderGroup,...t}))}}class Rg extends rs{width=0;height=0;bg;padding;offset;constructor(t){super(t),this.text=t.text,this.bg=t.bg||"rgba(0,0,0,0.5)",this.padding=t.padding||4,this.offset=t.offset||20,this.textShape=new Ir({...t,x:this.x+this.offset,y:this.y+this.offset,text:this.text,attrs:{...this.attrs,fill:ag(this.bg,!0),textAnchor:"start"}}),this.bgShape=new de({...t,x:this.textShape.x-this.padding,y:this.textShape.y-this.textShape.height/2-this.padding,width:this.textShape.width+this.padding*2,height:this.textShape.height+this.padding*2,attrs:{...this.attrs,fill:this.bg}}),this.addShape([this.bgShape,this.textShape])}frameUpdate(){super.frameUpdate(),this.textShape.x=this.x+this.offset,this.textShape.y=this.y+this.offset,this.textShape.isShow=this.isShow,this.bgShape.x=this.textShape.x-this.padding,this.bgShape.y=this.textShape.y-this.textShape.height/2-this.padding,this.bgShape.isShow=this.isShow}getBoundingClientRect(){return null}toSVGPathData(){return[]}toCanvasContext(t){}}class $g extends rs{radius;expandRaidus;startDegree;endDegree;text="";defaultShowText;tip="";p1=new Ee;p1Offset=10;p2=new Ee;p2Offset=40;p3=new Ee;p3Offset=10;p4=new Ee;p4Offset=10;direction=1;constructor(t){super(t),this.radius=t.radius,this.expandRaidus=t.expandRaidus??20,this.startDegree=t.startDegree,this.endDegree=t.endDegree,this.text=t.text||"",this.defaultShowText=typeof t?.defaultShowText=="boolean"?t.defaultShowText:!!this.text,this.tip=t.tip||"";const e=Object.assign({...this.attrs},{fill:"none"});this.line12=new ke({fromX:this.p1.x,fromY:this.p1.y,x:this.p2.x,y:this.p2.y,attrs:{...e},isShow:this.defaultShowText}),this.line23=new ke({fromX:this.p2.x,fromY:this.p2.y,x:this.p3.x,y:this.p3.y,attrs:{...e},isShow:this.defaultShowText}),this.textShape=new Ir({x:this.p4.x,y:this.p4.y,text:this.text,attrs:{stroke:e.stroke,textAnchor:this.direction==1?"start":"end"},isShow:this.defaultShowText}),this.tipShape=new Rg({x:0,y:0,text:this.tip,isShow:!1}),this.sector=new Vg({x:this.x,y:this.y,radius:this.radius,expandRaidus:this.expandRaidus,startDegree:this.startDegree,endDegree:this.endDegree,attrs:Object.assign({...this.attrs},{strokeWidth:"0"})}),this.addShape(this.sector),this.text&&(this.addShape(this.line12),this.addShape(this.line23),this.addShape(this.textShape)),this.tip&&this.addShape(this.tipShape),this.frameUpdate()}frameUpdate(){this.text&&!this.defaultShowText&&(this.line12.isShow=this.sector.isMouseIn,this.line23.isShow=this.sector.isMouseIn,this.textShape.isShow=this.sector.isMouseIn);const t=this.startDegree+(this.endDegree-this.startDegree)/2,{dx:e,dy:n}=Is(It(t),this.sector.radius+this.p1Offset);this.p1.x=this.x+e,this.p1.y=this.y+n;const{dx:i,dy:r}=Is(It(t),this.sector.radius+this.p1Offset+this.p2Offset);this.p2.x=this.x+i,this.p2.y=this.y+r,this.line12.fromX=this.p1.x,this.line12.fromY=this.p1.y,this.line12.x=this.p2.x,this.line12.y=this.p2.y,this.direction=this.p1.x>this.x?1:-1,this.p3.x=this.p2.x+this.direction*this.p3Offset,this.p3.y=this.p2.y,this.p4.x=this.p3.x+this.direction*this.p4Offset,this.p4.y=this.p3.y,this.line23.fromX=this.p2.x,this.line23.fromY=this.p2.y,this.line23.x=this.p3.x,this.line23.y=this.p3.y,this.textShape.x=this.p4.x,this.textShape.y=this.p4.y,this.textShape.setAttr("textAnchor",this.direction==1?"start":"end"),this.sector.isMouseIn?(this.tipShape.isShow=!0,this.tipShape.x=this.sector.mouseX,this.tipShape.y=this.sector.mouseY):(this.tipShape.isShow=!1,this.tipShape.x=this.sector.mouseX,this.tipShape.y=this.sector.mouseY)}}class Vg extends Jt{radius;realRadius;expandRaidus;startDegree;endDegree;vr;ar;bounce;dur;status;constructor(t){super(t),this.radius=0,this.realRadius=t.radius,this.expandRaidus=t.expandRaidus??20,this.startDegree=t.startDegree,this.endDegree=t.endDegree,this.vr=0,this.ar=.03,this.bounce=.6,this.dur=8.333333333333334,this.status=0}frameUpdate(){this.status==0&&this.radius<this.realRadius?(this.expand(this.realRadius),this.radius>=this.realRadius&&(this.status=1)):this.isMouseIn?this.expand(this.realRadius+this.expandRaidus):this.shrink(this.realRadius)}expand(t){this.vr+=this.ar,this.radius+=this.vr*this.dur,this.radius>t&&(this.radius=t,this.vr*=-this.bounce)}shrink(t){this.vr-=this.ar,this.radius+=this.vr*this.dur,this.radius<t&&(this.radius=t,this.vr*=-this.bounce)}toSVGPathData(){const{dx:t,dy:e}=Is(It(this.startDegree),this.radius),{dx:n,dy:i}=Is(It(this.endDegree),this.radius);return[["M",this.x,this.y],["l",t,e],["A",this.radius,this.radius,0,Math.abs(this.endDegree-this.startDegree)>=180?1:0,1,this.x+n,this.y+i],["z"]]}toCanvasContext(t){t.beginPath(),t.moveTo(0,0),t.arc(0,0,this.radius,It(this.startDegree),It(this.endDegree),!1),t.closePath()}containPoint(t,e){const n=ha(this.x,this.y,t,e),i=ze(Nn(this.x,this.y,t,e));return n<this.radius&&i>this.startDegree&&i<this.endDegree}}class Lg extends rs{showFlame;constructor(t){super(t),this.showFlame=typeof t?.showFlame=="boolean"?t.showFlame:!1,this.ship=gt.fromSVGPathData([["M",this.x+10,this.y],["L",this.x-10,this.y+10],["L",this.x-5,this.y],["L",this.x-10,this.y-10],["L",this.x+10,this.y],["Z"]],{renderGroup:this.renderGroup,...t}),this.flame=gt.fromSVGPathData([["M",this.x-7.5,this.y-5],["L",this.x-15,this.y],["L",this.x-7.5,this.y+5],["Z"]],{renderGroup:this.renderGroup,...t,isShow:this.showFlame}),this.addShape(this.ship),this.addShape(this.flame),this.frameUpdate()}frameUpdate(){this.flame.isShow=this.showFlame}}let th=class extends rs{min;max;step;value;percent;barWidth;barHeight;barColor;handleSize;handleColor;realBarWidth;constructor(t){super(t),this.min=t?.min||0,this.max=t?.max||100,this.step=t?.step||1,this.stepNumber=Nm(this.min,this.max,this.step),this.value=this.stepNumber(t?.defaultValue||this.min),this.percent=this.value/(this.max-this.min),this.barColor=t?.barColor||ot.colorGrayF5,this.handleColor=t?.handleColor||ot.colorPrimary,this.barWidth=t?.barWidth||100,this.barHeight=t?.barHeight||4,this.handleSize=t?.handleSize||20,this.realBarWidth=this.barWidth-this.handleSize,this.fullRect=new de({x:this.x,y:this.y-this.barHeight*.5,width:this.handleSize*.5+this.realBarWidth*this.percent,height:this.barHeight,borderRadius:this.barHeight*.5,attrs:{fill:this.handleColor}}),this.addShape(this.fullRect),this.emptyRect=new de({x:this.x+this.handleSize*.5+this.realBarWidth*this.percent,y:this.y-this.barHeight*.5,width:this.handleSize*.5+this.realBarWidth*(1-this.percent),height:this.barHeight,borderRadius:this.barHeight*.5,attrs:{fill:this.barColor}}),this.addShape(this.emptyRect),this.alongPath=gt.fromSVGPathData([["M",this.x+this.handleSize*.5,this.y],["l",this.realBarWidth,0]]),this.handle=new Ee({x:this.x+this.handleSize*.5+this.realBarWidth*this.percent,y:this.y,radius:this.handleSize*.5,enableDrag:!0,autoRender:t?.autoRender,alongPath:this.alongPath,attrs:{fill:this.handleColor}}),this.addShape(this.handle),this.frameUpdate()}frameUpdate(){const t=this.handle.x-this.x-this.handleSize*.5;this.realBarWidth=this.barWidth-this.handleSize,this.percent=t/this.realBarWidth,this.fullRect.width=t+this.handleSize*.5,this.emptyRect.x=this.handle.x,this.emptyRect.width=this.barWidth-this.fullRect.width;const e=this.stepNumber(this.percent*(this.max-this.min)+this.min);e!=this.value&&(this.value=e,this.emit("change",this.value))}};class Si extends gs{constructor(t){super(t),this.width=t.width,this.height=t.height,this.cornerRadius=this.height/2,this.addShape([gt.fromShape(new de({...t,x:this.x-this.cornerRadius,y:this.y-this.cornerRadius,width:this.width+this.cornerRadius*2,height:this.height,borderRadius:this.cornerRadius}),{renderGroup:this.renderGroup,...t}),gt.fromShape(new Ee({...t,x:this.x,y:this.y,radius:2}),{renderGroup:this.renderGroup,...t}),gt.fromShape(new Ee({...t,x:this.x+this.width,y:this.y,radius:2}),{renderGroup:this.renderGroup,...t})])}frameUpdate(){super.frameUpdate()}getPin(){return{x:this.x+Math.cos(It(this.degree))*this.width,y:this.y+Math.sin(It(this.degree))*this.width}}}class Oa extends Jt{constructor(t){super(t),this.update(t)}update(t){this.extendDegree=t?.extendDegree||0,this.x=(t.x||0)+t.width/2;const e=Math.min(t.width/2,t.height)-t.lineWidth*1.5;this.radius=e-e*Math.abs(Math.sin(It(this.extendDegree))),this.y=(t.y||0)+t.height-t.lineWidth-this.radius*Math.abs(Math.sin(It(this.extendDegree))),this.startDegree=180+t.startDegree,this.endDegree=180+t.endDegree,this.setAttr({"stroke-linecap":"round","stroke-width":String(t.lineWidth),stroke:t.colorGradient||t.color||"none"})}frameUpdate(){}toSVGPathData(){const{dx:t,dy:e}=Is(It(this.startDegree),this.radius),{dx:n,dy:i}=Is(It(this.endDegree),this.radius);return[["M",this.x+t,this.y+e],["A",this.radius,this.radius,0,Math.abs(this.endDegree-this.startDegree)>=180?1:0,1,this.x+n,this.y+i]]}toCanvasContext(t){t.beginPath(),t.arc(0,0,this.radius,It(this.startDegree),It(this.endDegree),!1)}}class Fg extends rs{fettis=[];constructor(t,e,n){super();const{shape:i,x:r,y:o,particleCount:a,angle:l,spread:c,startVelocity:u,decay:h,gravity:f,drift:d,ticks:m,colors:v,scalar:_,flat:E}=aa(n||{},{shape:Ju,x:.5,y:.6,particleCount:100,angle:90,spread:70,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,colors:rg,scalar:1,flat:!1}),D=t*r,N=e*o,k=It(l),tt=It(c);let R=a;for(;R--;){const U=new i({x:D,y:N,transformBaseOnSelfInRenderGroup:!0,scaleOnOrigin:_,attrs:{fill:v[R%v.length]}});this.addShape(U),this.fettis.push({shape:U,x:D,y:N,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:u*.5+Math.random()*u,angle2D:-k+(.5*tt-Math.random()*tt),tiltAngle:(Math.random()*.5+.25)*Math.PI,tick:0,totalTicks:m,decay:h,drift:d,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:f*3,scalar:_,flat:E})}}frameUpdate(){super.frameUpdate(),this.fettis.length&&(this.fettis=this.fettis.filter(t=>this.updateFetti(t)))}updateFetti(t){t.x+=Math.cos(t.angle2D)*t.velocity+t.drift,t.shape.x=t.x,t.y+=Math.sin(t.angle2D)*t.velocity+t.gravity,t.shape.y=t.y,t.velocity*=t.decay,t.flat?(t.wobble=0,t.wobbleX=t.x+10*t.scalar,t.wobbleY=t.y+10*t.scalar,t.tiltSin=0,t.tiltCos=0,t.random=1):(t.wobble+=t.wobbleSpeed,t.wobbleX=t.x+10*t.scalar*Math.cos(t.wobble),t.wobbleY=t.y+10*t.scalar*Math.sin(t.wobble),t.tiltAngle+=.1,t.tiltSin=Math.sin(t.tiltAngle),t.tiltCos=Math.cos(t.tiltAngle),t.random=Math.random()+2);const e=t.tick++/t.totalTicks,n=t.x+t.random*t.tiltCos,i=t.y+t.random*t.tiltSin,r=t.wobbleX+t.random*t.tiltCos,o=t.wobbleY+t.random*t.tiltSin;return t.shape.setAttr("fill",Er(t.shape.getAttr("fill"),1-e)),t.shape.scalexOnOrigin=Math.abs(r-n)*.1*t.shape.prevScalexOnOrigin,t.shape.scaleyOnOrigin=Math.abs(o-i)*.1*t.shape.prevScalexOnOrigin,t.shape.degree=ze(Math.PI/10*t.wobble),t.shape.x=t.x,t.shape.y=t.y,t.tick<t.totalTicks}}class eh{app;ctx;shapes=[];isMouseDown=!1;currentMouseInShapeID="";currentEnableDragMouseInShapeID="";constructor(t,e=!1){if(this.app=t,!(this.app.container instanceof HTMLCanvasElement))throw new Error("app.container 应该为 HTMLCanvasElement!");this.ctx=new Sa(this.app.container,this.app.width,this.app.height,e),this.app.captureMove({start:()=>{this.isMouseDown=!0,this.setCursor()},end:()=>{this.isMouseDown=!1,this.setCursor()},move:()=>{if(this.isMouseDown&&this.currentEnableDragMouseInShapeID){this.setCursor();return}this.currentMouseInShapeID="";const n=this.shapes.length;let i=0;for(;i<n;i++){const r=this.shapes[i];this.ctx.save(),this.transformCtxBaseOnShape(r);const o=this.ctx.isPointInPath(r.path2d,this.app.mousePoint.x,this.app.mousePoint.y)||this.ctx.isPointInStroke(r.path2d,this.app.mousePoint.x,this.app.mousePoint.y)||!1;if(this.ctx.restore(),r.isMouseIn=o,r.mouseX=this.app.mousePoint.x,r.mouseY=this.app.mousePoint.y,o&&(this.currentMouseInShapeID=r.id,r.enableDrag)){this.currentEnableDragMouseInShapeID=r.id,this.shapes.filter(a=>a.id!==r.id).forEach(a=>{a instanceof Jt&&(a.isMouseIn=!1,a.mouseX=this.app.mousePoint.x,a.mouseY=this.app.mousePoint.y)});break}}i>=n&&(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="default":this.app.container.style.cursor="default"}transformCtxBaseOnShape(t){t instanceof gt||(t instanceof ke||this.ctx.translate(t.x,t.y),this.ctx.rotate(It(t.degree),t.cX,t.cY),this.ctx.scale(t.scalexOnOrigin,t.scaleyOnOrigin,t.cX,t.cY))}_addShape(t){t instanceof rs?(t.frameUpdate(),t.shapes.forEach(e=>{e instanceof rs?this._addShape(e):this.shapes.push(e)})):this.shapes.push(t)}draw(t=[]){this.shapes=[],(Array.isArray(t)?t:[t]).forEach(e=>{this._addShape(e)});for(let e of this.shapes)if(e.isShow){if(this.ctx.save(),H.attrsToCanvas(this.ctx,e.attrs),e.followMouse&&(!pi(e.x,this.app.mousePoint.x,5)||!pi(e.y,this.app.mousePoint.y,5))&&(e.rotateTo(this.app.mousePoint),e.followTo(this.app.mousePoint)),e.targetToAfterDragFree&&(this.isMouseDown||e.nextFrameEaseTo({x:e.targetToAfterDragFree.targetX,y:e.targetToAfterDragFree.targetY},{easing:e.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableDragMouseInShapeID==e.id){const{dx:n,dy:i}=e.centerDiff,r=e.x,o=e.y;if(e.x=this.app.mousePoint.x-n,e.y=this.app.mousePoint.y-i,e.alongPath){const a=e.alongPath.closestPoint(e.x,e.y);e.x=a.point.x,e.y=a.point.y}e.isDragging=!0,e.emit("moving",e.x-r,e.y-o)}else e.isDragging=!1;e.frameUpdate(),this.transformCtxBaseOnShape(e),e.toCanvasContext(this.ctx),this.ctx.hasSetCustomStrokeStyle&&this.ctx.stroke(),this.ctx.hasSetCustomFillStyle&&this.ctx.fill(),e.path2d=this.ctx.currentPath2D,this.ctx.restore()}return this}click(t){const e=()=>{this.shapes.forEach(n=>{(n instanceof gt&&(n.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.ctx)||n.isPointInStroke(this.app.mousePoint.x,this.app.mousePoint.y,this.ctx))||this.currentMouseInShapeID==n.id)&&t(n)})};return this.app.on("tap",e),()=>{this.app.off("tap",e)}}drawMouseMoveLine(t="line",e){switch(t){case"brush":const n=e?.brushSize??10,i=e?.brushDensity??50,r=e?.brushColor??"#000000",o=this.ctx.getImageData(0,0,this.ctx.canvas.width,this.ctx.canvas.height),a=o.data,l=qs(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()*n,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.r,a[m+1]=l.g,a[m+2]=l.b,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 Gg{map;constructor(t,e=120.619585,n=31.299379,i=18){this.map=new T.Map(t),this.map.centerAndZoom(new T.LngLat(e,n),i)}}const zg=lt({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),X("span",{class:"icon",style:W(["color: "+e.color])},[pt(Ft(Cm),{icon:t.icon,color:e.color},null,8,["icon","color"])],4))}}),k_="",ut=(s,t)=>{const e=s.__vccOpts||s;for(const[n,i]of t)e[n]=i;return e},bn=ut(zg,[["__scopeId","data-v-8789b4ce"]]),jg={class:"loading-11",ref:"loading11"},Bg={class:"container container-1"},Yg={class:"container container-2"},Xg={class:"container container-3"},Hg=lt({__name:"Loading11",props:{color:{default:ot.colorPrimary},width:{default:"0.8em"}},setup(s){const t=s;return(e,n)=>(F(),X("div",jg,[S("div",{class:"loading-11-inner",style:W({width:t.width,height:t.width})},[S("div",Bg,[S("div",{class:"dot dot-1",style:W({backgroundColor:t.color})},null,4),S("div",{class:"dot dot-2",style:W({backgroundColor:t.color})},null,4),S("div",{class:"dot dot-3",style:W({backgroundColor:t.color})},null,4),S("div",{class:"dot dot-4",style:W({backgroundColor:t.color})},null,4)]),S("div",Yg,[S("div",{class:"dot dot-1",style:W({backgroundColor:t.color})},null,4),S("div",{class:"dot dot-2",style:W({backgroundColor:t.color})},null,4),S("div",{class:"dot dot-3",style:W({backgroundColor:t.color})},null,4),S("div",{class:"dot dot-4",style:W({backgroundColor:t.color})},null,4)]),S("div",Xg,[S("div",{class:"dot dot-1",style:W({backgroundColor:t.color})},null,4),S("div",{class:"dot dot-2",style:W({backgroundColor:t.color})},null,4),S("div",{class:"dot dot-3",style:W({backgroundColor:t.color})},null,4),S("div",{class:"dot dot-4",style:W({backgroundColor:t.color})},null,4)])],4)],512))}}),T_="",Pa=ut(Hg,[["__scopeId","data-v-f95fac77"]]),Ug={key:0,class:"loading"},Wg=lt({customOptions:{Loading11:Pa},inheritAttrs:!0,__name:"Button",props:{label:{},icon:{},iconPosition:{default:"left"},isDisabled:{type:Boolean,default:!1},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"14px"},borderRadius:{default:"4px"},stylePattern:{default:"fullfilled"},borderColor:{},bgColor:{},fontColor:{},asyncClick:{}},emits:["ceClick","click"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=V(),o=V(n.borderColor),a=V(n.bgColor),l=V(n.fontColor),c=V(n.borderColor),u=V(n.bgColor);function h(k){switch(k){case"outline":o.value=n.borderColor??ot.colorPrimary,a.value=n.bgColor??ot.colorGrayFF,l.value=n.fontColor??ot.colorPrimary,c.value=o.value,u.value=a.value;break;case"fullfilled":default:o.value=n.borderColor??ot.colorPrimary,a.value=n.bgColor??ot.colorPrimary,l.value=n.fontColor??ot.colorGrayFF,c.value=o.value,u.value=a.value;break}}Dt(()=>n.stylePattern,()=>{h(n.stylePattern)},{immediate:!0});const f=V(n.isDisabled?"0.6":"1"),d=V(n.isDisabled?"not-allowed":"pointer");let m=!1;const v=()=>{n.isDisabled||(m=!0,o.value=vi(c.value,10),a.value=vi(u.value,10))},_=()=>{n.isDisabled||(m=!1,o.value=c.value,a.value=u.value)},E=V(!1),N=Rm(()=>{n.isDisabled||E.value||(o.value=vi(c.value,-10),a.value=vi(u.value,-10),setTimeout(()=>{m?v():_()},150),i("ceClick"),i("click"),n.asyncClick&&(E.value=!0,n.asyncClick().then(()=>{E.value=!1}).catch(()=>{E.value=!1})))},500);return t({el:r}),(k,tt)=>(F(),X("div",{ref_key:"el",ref:r,class:"button",style:W([`opacity: ${f.value}`,`border: 1px solid ${o.value}`,`background-color: ${a.value}`,`color: ${l.value}`,`border-radius: ${n.borderRadius}`,`height: ${n.height}`,`line-height: ${n.height}`,`font-size: ${n.fontSize}`,`cursor: ${d.value}`,"user-select: none"]),onMouseover:v,onMouseleave:_,onClick:tt[0]||(tt[0]=(...R)=>Ft(N)&&Ft(N)(...R))},[S("label",{class:"label truncate",style:W({padding:"0 "+k.padding,cursor:d.value})},[E.value?(F(),X("div",Ug,[pt(Pa,{color:l.value},null,8,["color"])])):qt("",!0),Gt(k.$slots,"default",{},()=>[k.icon&&k.iconPosition==="left"?(F(),Ie(bn,{key:0,icon:k.icon,color:l.value,style:W({marginRight:Ft(ot).gap4,cursor:d.value})},null,8,["icon","color","style"])):qt("",!0),S("span",{style:W({cursor:d.value})},kt(k.label),5),k.icon&&k.iconPosition==="right"?(F(),Ie(bn,{key:1,icon:k.icon,color:l.value,style:W({marginLeft:Ft(ot).gap4,cursor:d.value})},null,8,["icon","color","style"])):qt("",!0)],!0)],4)],36))}}),O_="",ve=ut(Wg,[["__scopeId","data-v-ea027c50"]]),qg=["onClick","value"],Zg={class:"option-inner"},Kg=lt({customOptions:{Icon:bn,Button:ve},__name:"Select",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;js(()=>{H.setStyleSheet(`
|
|
54
|
+
`;return function(){var Z=new Error("get-stack-trace"),ut=Z&&Z.stack?Z.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Rt=t.console&&(t.console.warn||t.console.log);return Rt&&Rt.call(t.console,P,ut),p.apply(this,arguments)}}var y;typeof Object.assign!="function"?y=function(g){if(g===i||g===null)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(g),P=1;P<arguments.length;P++){var Z=arguments[P];if(Z!==i&&Z!==null)for(var ut in Z)Z.hasOwnProperty(ut)&&(b[ut]=Z[ut])}return b}:y=Object.assign;var _=m(function(g,b,P){for(var Z=Object.keys(b),ut=0;ut<Z.length;)(!P||P&&g[Z[ut]]===i)&&(g[Z[ut]]=b[Z[ut]]),ut++;return g},"extend","Use `assign`."),k=m(function(g,b){return _(g,b,!0)},"merge","Use `assign`.");function I(p,g,b){var P=g.prototype,Z;Z=p.prototype=Object.create(P),Z.constructor=p,Z._super=P,b&&y(Z,b)}function M(p,g){return function(){return p.apply(g,arguments)}}function E(p,g){return typeof p==a?p.apply(g&&g[0]||i,g):p}function tt(p,g){return p===i?g:p}function L(p,g,b){d(Ct(g),function(P){p.addEventListener(P,b,!1)})}function W(p,g,b){d(Ct(g),function(P){p.removeEventListener(P,b,!1)})}function vt(p,g){for(;p;){if(p==g)return!0;p=p.parentNode}return!1}function bt(p,g){return p.indexOf(g)>-1}function Ct(p){return p.trim().split(/\s+/g)}function $t(p,g,b){if(p.indexOf&&!b)return p.indexOf(g);for(var P=0;P<p.length;){if(b&&p[P][b]==g||!b&&p[P]===g)return P;P++}return-1}function Vt(p){return Array.prototype.slice.call(p,0)}function re(p,g,b){for(var P=[],Z=[],ut=0;ut<p.length;){var Rt=g?p[ut][g]:p[ut];$t(Z,Rt)<0&&P.push(p[ut]),Z[ut]=Rt,ut++}return b&&(g?P=P.sort(function(Ie,Ve){return Ie[g]>Ve[g]}):P=P.sort()),P}function oe(p,g){for(var b,P,Z=g[0].toUpperCase()+g.slice(1),ut=0;ut<r.length;){if(b=r[ut],P=b?b+Z:g,P in p)return P;ut++}return i}var me=1;function Ht(){return me++}function xt(p){var g=p.ownerDocument||p;return g.defaultView||g.parentWindow||t}var wt=/mobile|tablet|ip(ad|hone|od)|android/i,it="ontouchstart"in t,q=oe(t,"PointerEvent")!==i,kt=it&&wt.test(navigator.userAgent),V="touch",qt="pen",_e="mouse",Re="kinect",$e=25,Mt=1,Le=2,zt=4,ae=8,We=1,as=2,ls=4,v=8,w=16,D=as|ls,$=v|w,F=D|$,J=["x","y"],K=["clientX","clientY"];function B(p,g){var b=this;this.manager=p,this.callback=g,this.element=p.element,this.target=p.options.inputTarget,this.domHandler=function(P){E(p.options.enable,[p])&&b.handler(P)},this.init()}B.prototype={handler:function(){},init:function(){this.evEl&&L(this.element,this.evEl,this.domHandler),this.evTarget&&L(this.target,this.evTarget,this.domHandler),this.evWin&&L(xt(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&W(this.element,this.evEl,this.domHandler),this.evTarget&&W(this.target,this.evTarget,this.domHandler),this.evWin&&W(xt(this.element),this.evWin,this.domHandler)}};function Q(p){var g,b=p.options.inputClass;return b?g=b:q?g=Ye:kt?g=vs:it?g=Ja:g=Y,new g(p,X)}function X(p,g,b){var P=b.pointers.length,Z=b.changedPointers.length,ut=g&Mt&&P-Z===0,Rt=g&(zt|ae)&&P-Z===0;b.isFirst=!!ut,b.isFinal=!!Rt,ut&&(p.session={}),b.eventType=g,rt(p,b),p.emit("hammer.input",b),p.recognize(b),p.session.prevInput=b}function rt(p,g){var b=p.session,P=g.pointers,Z=P.length;b.firstInput||(b.firstInput=_t(g)),Z>1&&!b.firstMultiple?b.firstMultiple=_t(g):Z===1&&(b.firstMultiple=!1);var ut=b.firstInput,Rt=b.firstMultiple,ke=Rt?Rt.center:ut.center,Ie=g.center=Ot(P);g.timeStamp=u(),g.deltaTime=g.timeStamp-ut.timeStamp,g.angle=C(ke,Ie),g.distance=O(ke,Ie),ft(b,g),g.offsetDirection=Xt(g.deltaX,g.deltaY);var Ve=Ft(g.deltaTime,g.deltaX,g.deltaY);g.overallVelocityX=Ve.x,g.overallVelocityY=Ve.y,g.overallVelocity=c(Ve.x)>c(Ve.y)?Ve.x:Ve.y,g.scale=Rt?G(Rt.pointers,P):1,g.rotation=Rt?S(Rt.pointers,P):0,g.maxPointers=b.prevInput?g.pointers.length>b.prevInput.maxPointers?g.pointers.length:b.prevInput.maxPointers:g.pointers.length,ht(b,g);var bs=p.element;vt(g.srcEvent.target,bs)&&(bs=g.srcEvent.target),g.target=bs}function ft(p,g){var b=g.center,P=p.offsetDelta||{},Z=p.prevDelta||{},ut=p.prevInput||{};(g.eventType===Mt||ut.eventType===zt)&&(Z=p.prevDelta={x:ut.deltaX||0,y:ut.deltaY||0},P=p.offsetDelta={x:b.x,y:b.y}),g.deltaX=Z.x+(b.x-P.x),g.deltaY=Z.y+(b.y-P.y)}function ht(p,g){var b=p.lastInterval||g,P=g.timeStamp-b.timeStamp,Z,ut,Rt,ke;if(g.eventType!=ae&&(P>$e||b.velocity===i)){var Ie=g.deltaX-b.deltaX,Ve=g.deltaY-b.deltaY,bs=Ft(P,Ie,Ve);ut=bs.x,Rt=bs.y,Z=c(bs.x)>c(bs.y)?bs.x:bs.y,ke=Xt(Ie,Ve),p.lastInterval=g}else Z=b.velocity,ut=b.velocityX,Rt=b.velocityY,ke=b.direction;g.velocity=Z,g.velocityX=ut,g.velocityY=Rt,g.direction=ke}function _t(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:Ot(g),deltaX:p.deltaX,deltaY:p.deltaY}}function Ot(p){var g=p.length;if(g===1)return{x:l(p[0].clientX),y:l(p[0].clientY)};for(var b=0,P=0,Z=0;Z<g;)b+=p[Z].clientX,P+=p[Z].clientY,Z++;return{x:l(b/g),y:l(P/g)}}function Ft(p,g,b){return{x:g/p||0,y:b/p||0}}function Xt(p,g){return p===g?We:c(p)>=c(g)?p<0?as:ls:g<0?v:w}function O(p,g,b){b||(b=J);var P=g[b[0]]-p[b[0]],Z=g[b[1]]-p[b[1]];return Math.sqrt(P*P+Z*Z)}function C(p,g,b){b||(b=J);var P=g[b[0]]-p[b[0]],Z=g[b[1]]-p[b[1]];return Math.atan2(Z,P)*180/Math.PI}function S(p,g){return C(g[1],g[0],K)+C(p[1],p[0],K)}function G(p,g){return O(g[0],g[1],K)/O(p[0],p[1],K)}var A={mousedown:Mt,mousemove:Le,mouseup:zt},H="mousedown",nt="mousemove mouseup";function Y(){this.evEl=H,this.evWin=nt,this.pressed=!1,B.apply(this,arguments)}I(Y,B,{handler:function(g){var b=A[g.type];b&Mt&&g.button===0&&(this.pressed=!0),b&Le&&g.which!==1&&(b=zt),this.pressed&&(b&zt&&(this.pressed=!1),this.callback(this.manager,b,{pointers:[g],changedPointers:[g],pointerType:_e,srcEvent:g}))}});var et={pointerdown:Mt,pointermove:Le,pointerup:zt,pointercancel:ae,pointerout:ae},yt={2:V,3:qt,4:_e,5:Re},Tt="pointerdown",ue="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(Tt="MSPointerDown",ue="MSPointerMove MSPointerUp MSPointerCancel");function Ye(){this.evEl=Tt,this.evWin=ue,B.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}I(Ye,B,{handler:function(g){var b=this.store,P=!1,Z=g.type.toLowerCase().replace("ms",""),ut=et[Z],Rt=yt[g.pointerType]||g.pointerType,ke=Rt==V,Ie=$t(b,g.pointerId,"pointerId");ut&Mt&&(g.button===0||ke)?Ie<0&&(b.push(g),Ie=b.length-1):ut&(zt|ae)&&(P=!0),!(Ie<0)&&(b[Ie]=g,this.callback(this.manager,ut,{pointers:b,changedPointers:[g],pointerType:Rt,srcEvent:g}),P&&b.splice(Ie,1))}});var Kt={touchstart:Mt,touchmove:Le,touchend:zt,touchcancel:ae},ts="touchstart",Qt="touchstart touchmove touchend touchcancel";function Ce(){this.evTarget=ts,this.evWin=Qt,this.started=!1,B.apply(this,arguments)}I(Ce,B,{handler:function(g){var b=Kt[g.type];if(b===Mt&&(this.started=!0),!!this.started){var P=qe.call(this,g,b);b&(zt|ae)&&P[0].length-P[1].length===0&&(this.started=!1),this.callback(this.manager,b,{pointers:P[0],changedPointers:P[1],pointerType:V,srcEvent:g})}}});function qe(p,g){var b=Vt(p.touches),P=Vt(p.changedTouches);return g&(zt|ae)&&(b=re(b.concat(P),"identifier",!0)),[b,P]}var Cn={touchstart:Mt,touchmove:Le,touchend:zt,touchcancel:ae},Di="touchstart touchmove touchend touchcancel";function vs(){this.evTarget=Di,this.targetIds={},B.apply(this,arguments)}I(vs,B,{handler:function(g){var b=Cn[g.type],P=Bn.call(this,g,b);P&&this.callback(this.manager,b,{pointers:P[0],changedPointers:P[1],pointerType:V,srcEvent:g})}});function Bn(p,g){var b=Vt(p.touches),P=this.targetIds;if(g&(Mt|Le)&&b.length===1)return P[b[0].identifier]=!0,[b,b];var Z,ut,Rt=Vt(p.changedTouches),ke=[],Ie=this.target;if(ut=b.filter(function(Ve){return vt(Ve.target,Ie)}),g===Mt)for(Z=0;Z<ut.length;)P[ut[Z].identifier]=!0,Z++;for(Z=0;Z<Rt.length;)P[Rt[Z].identifier]&&ke.push(Rt[Z]),g&(zt|ae)&&delete P[Rt[Z].identifier],Z++;if(ke.length)return[re(ut.concat(ke),"identifier",!0),ke]}var Yr=2500,Sh=25;function Ja(){B.apply(this,arguments);var p=M(this.handler,this);this.touch=new vs(this.manager,p),this.mouse=new Y(this.manager,p),this.primaryTouch=null,this.lastTouches=[]}I(Ja,B,{handler:function(g,b,P){var Z=P.pointerType==V,ut=P.pointerType==_e;if(!(ut&&P.sourceCapabilities&&P.sourceCapabilities.firesTouchEvents)){if(Z)q_.call(this,b,P);else if(ut&&Z_.call(this,P))return;this.callback(g,b,P)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function q_(p,g){p&Mt?(this.primaryTouch=g.changedPointers[0].identifier,Ch.call(this,g)):p&(zt|ae)&&Ch.call(this,g)}function Ch(p){var g=p.changedPointers[0];if(g.identifier===this.primaryTouch){var b={x:g.clientX,y:g.clientY};this.lastTouches.push(b);var P=this.lastTouches,Z=function(){var ut=P.indexOf(b);ut>-1&&P.splice(ut,1)};setTimeout(Z,Yr)}}function Z_(p){for(var g=p.srcEvent.clientX,b=p.srcEvent.clientY,P=0;P<this.lastTouches.length;P++){var Z=this.lastTouches[P],ut=Math.abs(g-Z.x),Rt=Math.abs(b-Z.y);if(ut<=Sh&&Rt<=Sh)return!0}return!1}var kh=oe(o.style,"touchAction"),Eh=kh!==i,Th="compute",Oh="auto",tl="manipulation",kn="none",Mi="pan-x",Ni="pan-y",Hr=Q_();function el(p,g){this.manager=p,this.set(g)}el.prototype={set:function(p){p==Th&&(p=this.compute()),Eh&&this.manager.element.style&&Hr[p]&&(this.manager.element.style[kh]=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){E(g.options.enable,[g])&&(p=p.concat(g.getTouchAction()))}),K_(p.join(" "))},preventDefaults:function(p){var g=p.srcEvent,b=p.offsetDirection;if(this.manager.session.prevented){g.preventDefault();return}var P=this.actions,Z=bt(P,kn)&&!Hr[kn],ut=bt(P,Ni)&&!Hr[Ni],Rt=bt(P,Mi)&&!Hr[Mi];if(Z){var ke=p.pointers.length===1,Ie=p.distance<2,Ve=p.deltaTime<250;if(ke&&Ie&&Ve)return}if(!(Rt&&ut)&&(Z||ut&&b&D||Rt&&b&$))return this.preventSrc(g)},preventSrc:function(p){this.manager.session.prevented=!0,p.preventDefault()}};function K_(p){if(bt(p,kn))return kn;var g=bt(p,Mi),b=bt(p,Ni);return g&&b?kn:g||b?g?Mi:Ni:bt(p,tl)?tl:Oh}function Q_(){if(!Eh)return!1;var p={},g=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(b){p[b]=g?t.CSS.supports("touch-action",b):!0}),p}var Xr=1,es=2,jn=4,tn=8,As=tn,Ai=16,_s=32;function Rs(p){this.options=y({},this.defaults,p||{}),this.id=Ht(),this.manager=null,this.options.enable=tt(this.options.enable,!0),this.state=Xr,this.simultaneous={},this.requireFail=[]}Rs.prototype={defaults:{},set:function(p){return y(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=Ur(p,this),g[p.id]||(g[p.id]=p,p.recognizeWith(this)),this},dropRecognizeWith:function(p){return f(p,"dropRecognizeWith",this)?this:(p=Ur(p,this),delete this.simultaneous[p.id],this)},requireFailure:function(p){if(f(p,"requireFailure",this))return this;var g=this.requireFail;return p=Ur(p,this),$t(g,p)===-1&&(g.push(p),p.requireFailure(this)),this},dropRequireFailure:function(p){if(f(p,"dropRequireFailure",this))return this;p=Ur(p,this);var g=$t(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 P(Z){g.manager.emit(Z,p)}b<tn&&P(g.options.event+Ph(b)),P(g.options.event),p.additionalEvent&&P(p.additionalEvent),b>=tn&&P(g.options.event+Ph(b))},tryEmit:function(p){if(this.canEmit())return this.emit(p);this.state=_s},canEmit:function(){for(var p=0;p<this.requireFail.length;){if(!(this.requireFail[p].state&(_s|Xr)))return!1;p++}return!0},recognize:function(p){var g=y({},p);if(!E(this.options.enable,[this,g])){this.reset(),this.state=_s;return}this.state&(As|Ai|_s)&&(this.state=Xr),this.state=this.process(g),this.state&(es|jn|tn|Ai)&&this.tryEmit(g)},process:function(p){},getTouchAction:function(){},reset:function(){}};function Ph(p){return p&Ai?"cancel":p&tn?"end":p&jn?"move":p&es?"start":""}function Ih(p){return p==w?"down":p==v?"up":p==as?"left":p==ls?"right":""}function Ur(p,g){var b=g.manager;return b?b.get(p):p}function cs(){Rs.apply(this,arguments)}I(cs,Rs,{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,P=g&(es|jn),Z=this.attrTest(p);return P&&(b&ae||!Z)?g|Ai:P||Z?b&zt?g|tn:g&es?g|jn:es:_s}});function Wr(){cs.apply(this,arguments),this.pX=null,this.pY=null}I(Wr,cs,{defaults:{event:"pan",threshold:10,pointers:1,direction:F},getTouchAction:function(){var p=this.options.direction,g=[];return p&D&&g.push(Ni),p&$&&g.push(Mi),g},directionTest:function(p){var g=this.options,b=!0,P=p.distance,Z=p.direction,ut=p.deltaX,Rt=p.deltaY;return Z&g.direction||(g.direction&D?(Z=ut===0?We:ut<0?as:ls,b=ut!=this.pX,P=Math.abs(p.deltaX)):(Z=Rt===0?We:Rt<0?v:w,b=Rt!=this.pY,P=Math.abs(p.deltaY))),p.direction=Z,b&&P>g.threshold&&Z&g.direction},attrTest:function(p){return cs.prototype.attrTest.call(this,p)&&(this.state&es||!(this.state&es)&&this.directionTest(p))},emit:function(p){this.pX=p.deltaX,this.pY=p.deltaY;var g=Ih(p.direction);g&&(p.additionalEvent=this.options.event+g),this._super.emit.call(this,p)}});function sl(){cs.apply(this,arguments)}I(sl,cs,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[kn]},attrTest:function(p){return this._super.attrTest.call(this,p)&&(Math.abs(p.scale-1)>this.options.threshold||this.state&es)},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 nl(){Rs.apply(this,arguments),this._timer=null,this._input=null}I(nl,Rs,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Oh]},process:function(p){var g=this.options,b=p.pointers.length===g.pointers,P=p.distance<g.threshold,Z=p.deltaTime>g.time;if(this._input=p,!P||!b||p.eventType&(zt|ae)&&!Z)this.reset();else if(p.eventType&Mt)this.reset(),this._timer=h(function(){this.state=As,this.tryEmit()},g.time,this);else if(p.eventType&zt)return As;return _s},reset:function(){clearTimeout(this._timer)},emit:function(p){this.state===As&&(p&&p.eventType&zt?this.manager.emit(this.options.event+"up",p):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function il(){cs.apply(this,arguments)}I(il,cs,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[kn]},attrTest:function(p){return this._super.attrTest.call(this,p)&&(Math.abs(p.rotation)>this.options.threshold||this.state&es)}});function rl(){cs.apply(this,arguments)}I(rl,cs,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:D|$,pointers:1},getTouchAction:function(){return Wr.prototype.getTouchAction.call(this)},attrTest:function(p){var g=this.options.direction,b;return g&(D|$)?b=p.overallVelocity:g&D?b=p.overallVelocityX:g&$&&(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&zt},emit:function(p){var g=Ih(p.offsetDirection);g&&this.manager.emit(this.options.event+g,p),this.manager.emit(this.options.event,p)}});function qr(){Rs.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}I(qr,Rs,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[tl]},process:function(p){var g=this.options,b=p.pointers.length===g.pointers,P=p.distance<g.threshold,Z=p.deltaTime<g.time;if(this.reset(),p.eventType&Mt&&this.count===0)return this.failTimeout();if(P&&Z&&b){if(p.eventType!=zt)return this.failTimeout();var ut=this.pTime?p.timeStamp-this.pTime<g.interval:!0,Rt=!this.pCenter||O(this.pCenter,p.center)<g.posThreshold;this.pTime=p.timeStamp,this.pCenter=p.center,!Rt||!ut?this.count=1:this.count+=1,this._input=p;var ke=this.count%g.taps;if(ke===0)return this.hasRequireFailures()?(this._timer=h(function(){this.state=As,this.tryEmit()},g.interval,this),es):As}return _s},failTimeout:function(){return this._timer=h(function(){this.state=_s},this.options.interval,this),_s},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==As&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function $s(p,g){return g=g||{},g.recognizers=tt(g.recognizers,$s.defaults.preset),new ol(p,g)}$s.VERSION="2.0.7",$s.defaults={domEvents:!1,touchAction:Th,enable:!0,inputTarget:null,inputClass:null,preset:[[il,{enable:!1}],[sl,{enable:!1},["rotate"]],[rl,{direction:D}],[Wr,{direction:D},["swipe"]],[qr],[qr,{event:"doubletap",taps:2},["tap"]],[nl]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var J_=1,Dh=2;function ol(p,g){this.options=y({},$s.defaults,g||{}),this.options.inputTarget=this.options.inputTarget||p,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=p,this.input=Q(this),this.touchAction=new el(this,this.options.touchAction),Mh(this,!0),d(this.options.recognizers,function(b){var P=this.add(new b[0](b[1]));b[2]&&P.recognizeWith(b[2]),b[3]&&P.requireFailure(b[3])},this)}ol.prototype={set:function(p){return y(this.options,p),p.touchAction&&this.touchAction.update(),p.inputTarget&&(this.input.destroy(),this.input.target=p.inputTarget,this.input.init()),this},stop:function(p){this.session.stopped=p?Dh:J_},recognize:function(p){var g=this.session;if(!g.stopped){this.touchAction.preventDefaults(p);var b,P=this.recognizers,Z=g.curRecognizer;(!Z||Z&&Z.state&As)&&(Z=g.curRecognizer=null);for(var ut=0;ut<P.length;)b=P[ut],g.stopped!==Dh&&(!Z||b==Z||b.canRecognizeWith(Z))?b.recognize(p):b.reset(),!Z&&b.state&(es|jn|tn)&&(Z=g.curRecognizer=b),ut++}},get:function(p){if(p instanceof Rs)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=$t(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(Ct(p),function(P){b[P]=b[P]||[],b[P].push(g)}),this}},off:function(p,g){if(p!==i){var b=this.handlers;return d(Ct(p),function(P){g?b[P]&&b[P].splice($t(b[P],g),1):delete b[P]}),this}},emit:function(p,g){this.options.domEvents&&tb(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 P=0;P<b.length;)b[P](g),P++}},destroy:function(){this.element&&Mh(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function Mh(p,g){var b=p.element;if(b.style){var P;d(p.options.cssProps,function(Z,ut){P=oe(b.style,ut),g?(p.oldCssProps[P]=b.style[P],b.style[P]=Z):b.style[P]=p.oldCssProps[P]||""}),g||(p.oldCssProps={})}}function tb(p,g){var b=e.createEvent("Event");b.initEvent(p,!0,!0),b.gesture=g,g.target.dispatchEvent(b)}y($s,{INPUT_START:Mt,INPUT_MOVE:Le,INPUT_END:zt,INPUT_CANCEL:ae,STATE_POSSIBLE:Xr,STATE_BEGAN:es,STATE_CHANGED:jn,STATE_ENDED:tn,STATE_RECOGNIZED:As,STATE_CANCELLED:Ai,STATE_FAILED:_s,DIRECTION_NONE:We,DIRECTION_LEFT:as,DIRECTION_RIGHT:ls,DIRECTION_UP:v,DIRECTION_DOWN:w,DIRECTION_HORIZONTAL:D,DIRECTION_VERTICAL:$,DIRECTION_ALL:F,Manager:ol,Input:B,TouchAction:el,TouchInput:vs,MouseInput:Y,PointerEventInput:Ye,TouchMouseInput:Ja,SingleTouchInput:Ce,Recognizer:Rs,AttrRecognizer:cs,Tap:qr,Pan:Wr,Swipe:rl,Pinch:sl,Rotate:il,Press:nl,on:L,off:W,each:d,merge:k,extend:_,assign:y,inherit:I,bindFn:M,prefixed:oe});var eb=typeof t<"u"?t:typeof self<"u"?self:{};eb.Hammer=$s,typeof i=="function"&&i.amd?i(function(){return $s}):s.exports?s.exports=$s:t[n]=$s})(window,document,"Hammer")})(Zu);var lg=Zu.exports;const cg=ag(lg);class Oe extends ee{radius;constructor(t){super(t),this.radius=t?.radius||0}getBoundingClientRect(){return new ge({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(t){t.beginPath(),t.arc(0,0,this.radius,0,Math.PI*2,!0),t.closePath()}eq(t){return this.x===t.x&&this.y===t.y&&this.radius===t.radius&&this.mass===t.mass}midPointBtw(t){return{x:this.x+(t.x-this.x)/2,y:this.y+(t.y-this.y)/2}}length(){return ma(this.x,this.y)}scalar(t){return this.x*=t,this.y*=t,this}normalize(t=1){const e=this.length();if(e){const n=t/e;this.scalar(n)}return this}clamp(t){const e=this.length();return e&&e>t&&this.scalar(t/e),this}cross(t){const e=this.x,n=this.y;return{x:n*t.x-e*t.y,y:e*t.y-n*t.x}}multiply(t){return{x:this.x*t.x,y:this.y*t.y}}div(t){return{x:this.x/t.x,y:this.y/t.y}}add(t){return{x:this.x+t.x,y:this.y+t.y}}sub(t){return{x:this.x-t.x,y:this.y-t.y}}dot(t){return this.x*t.x+this.y*t.y}reflect(t){const e=this.dot(t);return{x:this.x-2*e*t.x,y:this.y-2*e*t.y}}clone(t){return new Oe({x:t.x,y:t.y,radius:t.radius,mass:t.mass})}checkCollision(t){const e=t.x-this.x,n=t.y-this.y;if(Math.sqrt(e*e+n*n)<this.radius+t.radius){const r=Math.atan2(n,e),o={x:0,y:0},a=gs(-r,e,n),l=gs(-r,this.vx,this.vy),c=gs(-r,t.vx,t.vy),u=l.x-c.x;l.x=((this.mass-t.mass)*l.x+2*t.mass*c.x)/(this.mass+t.mass),c.x=u+l.x;const h=Math.abs(l.x)+Math.abs(c.x),f=this.radius+t.radius-Math.abs(o.x-a.x);o.x+=l.x/h*f,a.x+=c.x/h*f;const d=gs(r,o.x,o.y),m=gs(r,a.x,a.y);t.x=this.x+m.x,t.y=this.y+m.y,this.x=this.x+d.x,this.y=this.y+d.y;const y=gs(r,l.x,l.y),_=gs(r,c.x,c.y);this.vx=y.x,this.vy=y.y,t.vx=_.x,t.vy=_.y}}checkWalls(t,e){const n=e?.bounce??-1,i=t.x,r=t.y,o=t.x+t.width,a=t.y+t.height;this.x+this.radius>o?(this.x=o-this.radius,this.vx*=n):this.x-this.radius<i&&(this.x=i+this.radius,this.vx*=n),this.y+this.radius>a?(this.y=a-this.radius,this.vy*=n):this.y-this.radius<r&&(this.y=r+this.radius,this.vy*=n)}static comboMove(t,e,n){t.forEach(r=>{r.nextFrame(),e&&r.checkWalls(e,n)});const i=t.length;for(let r=0,o=i-1;r<o;r++){const a=t[r];for(let l,c=r+1;c<i;c++)l=t[c],a.checkCollision(l)}}}class ug{constructor(){}static getFormatKeyNames(t){const e=eg(),n=[];return t.ctrl&&n.push(e?"Cmd":"Ctrl"),t.shift&&n.push("Shift"),t.alt&&n.push("Alt"),typeof t.key=="string"?n.push(ca(t.key)):Array.isArray(t.key)&&(t.key.map(i=>ca(i)),n.push(...t.key)),n}static matchKeyScheme(t,e){const n=t.ctrl??!1,i=t.shift??!1,r=t.alt??!1;if(t.exact)return(n===e.metaKey||n===e.ctrlKey)&&i===e.shiftKey&&r===e.altKey;const o=[];return n&&o.push(n===e.metaKey||n===e.ctrlKey),i&&o.push(i===e.shiftKey),r&&o.push(r===e.altKey),o.every(a=>a)}static on(t,e){if(t?.key===void 0||t?.key===null)return e;const n=t?.target??window;let i=!1;const r=this.getFormatKeyNames(t),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(t,a)){a.preventDefault();const l=e(a);if(typeof l!="function")return;const c=u=>{u.preventDefault(),l(u),n.removeEventListener("keyup",c)};n.addEventListener("keyup",c)}};return e.title=t?.title??"",e.formatedKeyNames=r,e.pause=()=>i=!0,e.restart=()=>i=!1,e.removeListener=()=>n.removeEventListener("keydown",o),n.addEventListener("keydown",o),e}}let Ke;const An=[];class xe extends Cr{container;width;height;mousePoint;hammer;domEventBusRemoves=[];constructor(t=document.documentElement,e=!0){super(),this.container=t,this.width=this.container.offsetWidth,this.height=this.container.offsetHeight;const n=U.getStyle(this.container,"position");U.setStyle(this.container,{position:n=="static"?"relative":n}),this.hammer=new cg(this.container),this.mousePoint=new Oe({x:0,y:0}),e&&this.start()}emitDebounce=Ym((t,...e)=>super.emit(t,...e),50);emit(t,...e){switch(t){case"panLeft":case"panRight":this.emitDebounce(t,...e);break;default:super.emit(t,...e);break}return this}static get page(){if(Ke)return Ke;Ke=new xe,window.addEventListener("hashchange",()=>{Ke.emit("hashchange",location.hash)}),window.addEventListener("popstate",()=>{Ke.emit("popstate")}),Ke.registerKeyDown({title:"打开",key:"o",ctrl:!0,exact:!0},()=>{Um().then(e=>Wm(e[0])).then(e=>{Ke.emit("openFile",e)}).catch(e=>{Ke.emit("openFileError",e)})}),Ke.registerMatchMediaChange("(prefers-color-scheme: dark)");const t=()=>An.forEach(e=>e());return Ke.registerGlobalScrollChange=e=>{An.push(e),An.length==1&&document.addEventListener("scroll",t)},Ke.removeGlobalScrollChange=e=>{const n=An.findIndex(i=>i==e);n>=0&&(An.splice(n,1),An.length==0&&document.removeEventListener("scroll",t))},Ke}start(){this.registerMouseEventListeners(),this.registerInputEventListeners(),this.registerTransitionEventListeners(),this.on("pointerMove",this.setMousePoint),this.addDOMEventBusRemoves(()=>{this.off("pointerMove",this.setMousePoint)}),this.registerResizeObserver(),this.registerElementDisplayInParent()}restart(){this.destroy(),this.start()}destroy(){this.domEventBusRemoves.forEach(t=>t()),this.domEventBusRemoves=[],this.removeAllListeners()}addDOMEventBusRemoves(t){this.domEventBusRemoves.push(t)}setMousePoint(t){const e=Jm(this.container,t);return this.mousePoint.x=e.x,this.mousePoint.y=e.y,e}registerMouseEventListeners(){const t=V=>{this.emit("mouseDown",V)},e=V=>{this.emit("mouseUp",V)},n=V=>{this.emit("mouseMove",V)},i=V=>{this.emit("mouseOver",V)},r=V=>{this.emit("mouseOut",V)},o=V=>{this.emit("mouseClick",V)},a=V=>{this.emit("mouseDoubleClick",V)},l=V=>{this.emit("mouseWheel",V)},c=V=>{this.emit("mouseContextMenu",V)},u=V=>{this.emit("touchStart",V)},h=V=>{this.emit("touchEnd",V)},f=V=>{this.emit("touchCancel",V)},d=V=>{this.emit("touchMove",V)},m=V=>{this.emit("pointerDown",V)},y=V=>{this.emit("pointerUp",V)},_=V=>{this.emit("pointerCancel",V)},k=V=>{this.emit("pointerMove",V)},I=V=>{this.emit("pan",V)},M=V=>{this.emit("panStart",V)},E=V=>{this.emit("panMove",V)},tt=V=>{this.emit("panEnd",V)},L=V=>{this.emit("panCancel",V)},W=V=>{this.emit("panLeft",V)},vt=V=>{this.emit("panRight",V)},bt=V=>{this.emit("panUp",V)},Ct=V=>{this.emit("panDown",V)},$t=V=>{this.emit("pinch",V)},Vt=V=>{this.emit("press",V)},re=V=>{this.emit("rotate",V)},oe=V=>{this.emit("swipe",V)},me=V=>{this.emit("swipeLeft",V)},Ht=V=>{this.emit("swipeRight",V)},xt=V=>{this.emit("swipeUp",V)},wt=V=>{this.emit("swipeDown",V)},it=V=>{this.emit("tap",V)},q=V=>{!V.target||this.container==V.target||this.container.contains(V.target)||this.emit("tapOutSide",V)};this.container.addEventListener("mousedown",t),this.container.addEventListener("mouseup",e),this.container.addEventListener("mousemove",n),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",y),this.container.addEventListener("pointercancel",_),this.container.addEventListener("pointermove",k),this.hammer.on("pan",I),this.hammer.on("panstart",M),this.hammer.on("panmove",E),this.hammer.on("panend",tt),this.hammer.on("pancancel",L),this.hammer.on("panleft",W),this.hammer.on("panright",vt),this.hammer.on("panup",bt),this.hammer.on("pandown",Ct),this.hammer.on("pinch",$t),this.hammer.on("press",Vt),this.hammer.on("rotate",re),this.hammer.on("swipe",oe),this.hammer.on("swipeleft",me),this.hammer.on("swiperight",Ht),this.hammer.on("swipeup",xt),this.hammer.on("swipedown",wt),this.hammer.on("tap",it),document.addEventListener("pointerdown",q,!1);const kt=()=>{this.container.removeEventListener("mousedown",t),this.container.removeEventListener("mouseup",e),this.container.removeEventListener("mousemove",n),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",y),this.container.removeEventListener("pointercancel",_),this.container.removeEventListener("pointermove",k),this.hammer.off("pan",I),this.hammer.off("panstart",M),this.hammer.off("panmove",E),this.hammer.off("panend",tt),this.hammer.off("pancancel",L),this.hammer.off("panleft",W),this.hammer.off("panright",vt),this.hammer.off("panup",bt),this.hammer.off("pandown",Ct),this.hammer.off("pinch",$t),this.hammer.off("press",Vt),this.hammer.off("rotate",re),this.hammer.off("swipe",oe),this.hammer.off("swipeleft",me),this.hammer.off("swiperight",Ht),this.hammer.off("swipeup",xt),this.hammer.off("swipedown",wt),this.hammer.off("tap",it),document.removeEventListener("pointerdown",q,!1),document.removeEventListener("touchstart",q,!1),document.removeEventListener("mousedown",q,!1)};return this.addDOMEventBusRemoves(kt),kt}registerInputEventListeners(){const t=l=>{this.emit("inputChange",l,this.container.files)},e=l=>{this.emit("dragstart",l)},n=l=>{l.stopPropagation(),l.preventDefault(),l.dataTransfer&&(l.dataTransfer.dropEffect="copy"),this.emit("dragover",l)},i=l=>{this.emit("dragenter",l)},r=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",t,!1),this.container.addEventListener("dragstart",e,!1),this.container.addEventListener("dragover",n,!1),this.container.addEventListener("dragenter",i,!1),this.container.addEventListener("dragend",r,!1),this.container.addEventListener("drop",o,!1);const a=()=>{this.container instanceof HTMLInputElement&&this.container.removeEventListener("change",t,!1),this.container.removeEventListener("dragstart",e,!1),this.container.removeEventListener("dragover",n,!1),this.container.removeEventListener("dragenter",i,!1),this.container.removeEventListener("dragend",r,!1),this.container.removeEventListener("drop",o,!1)};return this.addDOMEventBusRemoves(a),a}registerTransitionEventListeners(){const t=n=>{this.emit("transitionend",n)};this.container.addEventListener("transitionend",t);const e=()=>{this.container.removeEventListener("transitionend",t)};return this.addDOMEventBusRemoves(e),e}registerKeyDown(t,e,n){const i=ug.on(t,o=>(e(o,i.formatedKeyNames,i.pause,i.restart),n)),r=()=>{i.removeListener?.()};return this.addDOMEventBusRemoves(r),r}registerResizeObserver(){const t=new ResizeObserver(n=>{const{width:i,height:r}=n[0].contentRect;this.width=i,this.height=r,this.emit("resize",i,r)});t.observe(this.container);const e=()=>{t.unobserve(this.container)};return this.addDOMEventBusRemoves(e),e}registerMatchMediaChange(t){let e="";switch(t){case"(prefers-color-scheme: dark)":e="matchMediaChangePrefersColorSchemeDark";break;default:e=t;break}const n=r=>{this.emit(e,r.matches)};window.matchMedia(t).addEventListener("change",n);const i=()=>{window.matchMedia(t).removeEventListener("change",n)};return this.addDOMEventBusRemoves(i),i}registerElementDisplayInParent(t){const e={threshold:t?.threshold||.5,root:t?.parentElement},n=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>=e.threshold?this.emit("showInParent"):this.emit("showOffParent")},e);n.observe(this.container);const i=()=>{n.unobserve(this.container)};return this.addDOMEventBusRemoves(i),i}registerPullDownRefresh(t){const e=t?.distance||50;let n=0,i=0;return this.captureMove({start:r=>{n=this.setMousePoint(r).y},move:()=>{i=this.mousePoint.y-n,i>0&&i<e&&this.emit("pullDownIng",i)},end:()=>{i>=e&&this.emit("pullDown")}})}registerPullUpLoading(t){const e=t?.distance||50;let n=0,i=0;return this.captureMove({start:r=>{n=this.setMousePoint(r).y},move:()=>{i=n-this.mousePoint.y,i>0&&i<e&&this.emit("pullUpIng",i)},end:()=>{i>=e&&this.emit("pullUp")}})}static isTouchEnabled(){return"ontouchstart"in window||navigator.maxTouchPoints>0}captureMove(t){return this.captureMoveUsePointer(t)}captureMoveUsePointer(t){const e=o=>{this.container.setPointerCapture(o.pointerId),t?.start?.(o)},n=o=>{t?.end?.(o)},i=o=>{t?.move?.(o)};this.on("pointerDown",e),this.on("pointerUp",n),this.on("pointerCancel",n),this.on("pointerMove",i);const r=()=>{this.off("pointerDown",e),this.off("pointerUp",n),this.off("pointerCancel",n),this.off("pointerMove",i)};return this.addDOMEventBusRemoves(r),r}captureMoveUseMouse(t){const e=o=>{document.addEventListener("mousemove",i,!1),document.addEventListener("mouseup",n,!1),t?.start?.(o)},n=o=>{document.removeEventListener("mousemove",i,!1),document.removeEventListener("mouseup",n,!1),t?.end?.(o)},i=o=>{t?.move?.(o)};this.on("mouseDown",e);const r=()=>{this.off("mouseDown",e)};return this.addDOMEventBusRemoves(r),r}captureMoveUseTouch(t){const e=o=>{o.preventDefault(),t?.start?.(o)},n=o=>{t?.end?.(o)},i=o=>{t?.move?.(o)};this.on("touchStart",e),this.on("touchEnd",n),this.on("touchCancel",n),this.on("touchMove",i);const r=()=>{this.off("touchStart",e),this.off("touchEnd",n),this.off("touchCancel",n),this.off("touchMove",i)};return this.addDOMEventBusRemoves(r),r}static getMouseButton(t){if(document.implementation.hasFeature("MouseEvents","2.0"))return t.button;switch(t.button){case 0:case 1:case 3:case 5:case 7:return 0;case 2:case 6:return 2;case 4:return 1}}}class ba{video;constructor(t){this.video=t}setSrcObject(t){this.video.addEventListener("loadedmetadata",e=>{e.target}),this.video.srcObject=t}captureWebCamera(){navigator.mediaDevices.getUserMedia({video:!0}).then(t=>{this.setSrcObject(t)})}static async videoMediaChangeSupport(){return new Promise(t=>{const e=document.createElement("iframe"),n=document.createElement("video"),i=document.createElement("source"),r=new MediaSource;r.addEventListener("sourceopen",()=>t(!0)),i.src=URL.createObjectURL(r),i.media="(min-width:10px)",n.append(i),e.width="5",e.style.cssText="position: absolute; visibility: hidden;",document.documentElement.append(e),e.contentDocument?.body.append(n),setTimeout(()=>{e.width="15"}),setTimeout(()=>{e.remove(),t(!1)},1e3)})}static tryAutoPlayOrAutoPlayAfterClick(t){return new Promise(e=>{t.play().then(()=>{t.autoplay=!0,e(!0)}).catch(()=>{ba.setAutoPlayWhenClick(t),e(!1)})})}static setAutoPlayWhenClick(t){function e(){t.autoplay=!0,t.play(),document.removeEventListener("click",e),document.removeEventListener("touchend",e)}document.addEventListener("click",e),document.addEventListener("touchend",e)}}class hg extends Cr{source;raw="";mode="text";tagname="";nodename="";textchunk="";entity="";quote="";attrs={};constructor(t){super(),this.source=t}parse(){const t=Nu(this.source);if(t===0){this.emit("finish");return}let e,n,i=Au(this.source,0);for(let r=1;r<t;r++)e=n,n=i,i=Au(this.source,r),this.raw+=n,n&&this.step(n,i,e);i&&this.step(i,void 0,n),this.emit("finish")}step(t,e,n){t==`
|
|
55
|
+
`&&this.emit("newline"),this.act(t,e,n)}act(t,e,n){switch(this.mode){case"text":switch(t){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+=t,this.textchunk="";break;case"&":this.mode="entity",this.entity="";break;default:this.textchunk+=t;break}break;case"entity":Is("whitespace",t)?(this.textchunk+=U.entity2text(this.entity),this.mode="text"):t==";"?(this.textchunk+=U.entity2text(this.entity+t),this.mode="text"):this.entity+=t;break;case"special":if(n=="!"&&t=="-"&&e=="-"){this.mode="comment start";break}if(this.textchunk=="[CDATA"&&t=="["){this.mode="cdata",this.textchunk="";break}if(t==">"||t=="eof"){this.emit("special",this.textchunk),this.mode="text",this.textchunk="";break}this.textchunk+=t;break;case"cdata":if(n=="]"&&t=="]"&&e==">"){this.mode="cdata end",this.textchunk=this.textchunk.slice(0,-1);break}t=="eof"&&(this.mode="cdata end",this.act(t,e,n)),this.textchunk+=t;break;case"cdata end":this.emit("cdata",this.textchunk),this.textchunk="",this.mode="text";break;case"comment start":e==">"||t=="eof"?(this.emit("comment",""),this.mode="skip"):this.mode="comment";break;case"skip":this.mode="text";break;case"comment":t=="-"&&n=="-"&&e==">"?(this.mode="comment end",this.textchunk=this.textchunk.slice(0,-1)):t=="eof"?this.emit("comment",this.textchunk):this.textchunk+=t;break;case"comment end":this.emit("comment",this.textchunk),this.textchunk="",this.mode="text";break;case"declaration":if(t=="?"&&e==">"){this.mode="declaration end";break}t=="eof"&&this.emit("comment",this.textchunk),this.textchunk+=t;break;case"declaration end":this.emit("comment",this.textchunk),this.textchunk="",this.mode="text";break;case"tag name start":if(t=="eof"){this.emit("text","<");break}if(!Is("whitespace",t)){if(this.mode="tag name",t=="/"){this.mode="close tag name start";break}else if(t=="!"){this.mode="special",this.textchunk="";break}else if(t=="?"){this.mode="declaration";break}this.act(t,e,n)}break;case"close tag name start":Is("whitespace",t)||(this.mode="close tag name",this.tagname="",this.nodename="",this.act(t,e,n));break;case"close tag name":if(Is("whitespace",t))this.tagname=this.nodename;else switch(t){case">":this.emit("/tag",this.tagname||this.nodename,this.attrs),this.mode="text";break;default:!this.tagname&&(this.nodename+=t);break}break;case"tag name":if(Is("whitespace",t))this.tagname=this.nodename,this.nodename="",this.mode="attr start";else switch(t){case">":this.emit("tag",this.nodename,this.attrs),this.mode="text";break;case"/":this.raw+=e,this.emit("tag",this.nodename,this.attrs),this.emit("/tag",this.nodename,this.attrs),this.mode="skip";break;default:this.nodename+=t;break}break;case"attr start":Is("whitespace",t)||(this.mode="attr",this.nodename="",this.act(t,e,n));break;case"attr":if(Is("whitespace",t)||t=="=")this.attrs[this.nodename]="",this.mode="attr value start";else switch(t){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+=t;break}break;case"attr value start":if(!Is("whitespace",t)){if(this.mode="attr value",this.quote="",t=="'"||t=='"'){this.quote=t;return}this.act(t,e,n)}break;case"attr value":if(Is("whitespace",t)&&!this.quote)this.mode="attr start";else if(t==">"&&!this.quote)this.emit("tag",this.tagname,this.attrs),this.mode="text";else switch(t){case'"':case"'":this.quote==t&&n!="\\"&&(this.mode="attr start");break;default:this.attrs[this.nodename]+=t;break}break}}}function Ku(s,t,e){if(typeof t<"u")window.localStorage.setItem(s,JSON.stringify({value:t,expires:typeof e=="number"?e:-1}));else{const n=window.localStorage.getItem(s);try{const i=JSON.parse(n||"");return"expires"in i&&parseInt(i.expires)>=0&&new Date().getTime()>parseInt(i.expires)?void 0:i.value||void 0}catch{return n||void 0}}}xe.page.on("matchMediaChangePrefersColorSchemeDark",s=>{xa(s?"dark":"light")}),dg();function xa(s){Ku("colorScheme",s),document.documentElement.classList.toggle("dark",s=="dark")}function dg(){const s=Ku("colorScheme");if(s=="dark"||s=="light")return xa(s),s;{const t=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return xa(t),t}}const ot={safeAreaTop:U.getCSSVar("--safe-area-inset-top"),safeAreaRight:U.getCSSVar("--safe-area-inset-right"),safeAreaBottom:U.getCSSVar("--safe-area-inset-bottom"),safeAreaLeft:U.getCSSVar("--safe-area-inset-left"),colorPrimary:U.getCSSVar("--color-primary")||"#5078f0",colorRed:U.getCSSVar("--color-red")||"#ff5050",colorOrange:U.getCSSVar("--color-orange")||"#fa8c00",colorYellow:U.getCSSVar("--color-yellow")||"#fadc32",colorGreen:U.getCSSVar("--color-green")||"#00c878",colorBlue:U.getCSSVar("--color-blue")||"#00b4fa",colorPurple:U.getCSSVar("--color-purple")||"#6464fa",colorBlack:U.getCSSVar("--color-black")||"#001428",colorGray00:U.getCSSVar("--color-gray-00")||"#000000",colorGray33:U.getCSSVar("--color-gray-33")||"#333333",colorGray66:U.getCSSVar("--color-gray-66")||"#666666",colorGray99:U.getCSSVar("--color-gray-99")||"#999999",colorGrayCC:U.getCSSVar("--color-gray-cc")||"#cccccc",colorGrayDD:U.getCSSVar("--color-gray-dd")||"#dddddd",colorGrayE6:U.getCSSVar("--color-gray-e6")||"#e6e6e6",colorGrayEE:U.getCSSVar("--color-gray-ee")||"#eeeeee",colorGrayEF:U.getCSSVar("--color-gray-ef")||"#efefef",colorGrayF5:U.getCSSVar("--color-gray-f5")||"#f5f5f5",colorGrayFF:U.getCSSVar("--color-gray-ff")||"#ffffff",fontLineHeight:U.getCSSVar("--font-line-height")||"1,4",fontSize32:U.getCSSVar("--font-size-32")||"32px",fontSize24:U.getCSSVar("--font-size-24")||"24px",fontSize20:U.getCSSVar("--font-size-20")||"20px",fontSize18:U.getCSSVar("--font-size-18")||"18px",fontSize16:U.getCSSVar("--font-size-16")||"16px",fontSize14:U.getCSSVar("--font-size-14")||"14px",fontSize12:U.getCSSVar("--font-size-12")||"12px",fontSize11:U.getCSSVar("--font-size-11")||"11px",gap4:U.getCSSVar("--gap-4")||"4px",gap8:U.getCSSVar("--gap-8")||"8px",gap12:U.getCSSVar("--gap-12")||"12px",gap16:U.getCSSVar("--gap-16")||"16px",gap20:U.getCSSVar("--gap-20")||"20px",gap40:U.getCSSVar("--gap-40")||"40px",height44:U.getCSSVar("--height-44")||"44px",height32:U.getCSSVar("--height-32")||"32px",borderRadius:U.getCSSVar("--border-radius")||"4px"},fg=["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff","#dc4916","#6871b1","#d1b935","#1bbc9b","#FF7F50","#4BBFC3","#ff9900"];function Zs(s,t){if(s.hasOwnProperty("r")&&s.hasOwnProperty("g")&&s.hasOwnProperty("b"))return s.r=Math.round(Xe(s.r,0,255)),s.g=Math.round(Xe(s.g,0,255)),s.b=Math.round(Xe(s.b,0,255)),s.hasOwnProperty("a")?s.a=typeof t=="number"?t:s.a:s.a=typeof t=="number"?t:1,s.a=Xe(s.a,0,1),s;const e={r:0,g:0,b:0,a:1};let n=-1;if(typeof s=="number")n=s;else if(typeof s=="string")if(s[0].toLowerCase()==="r"){const i=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,?\s*(\d?\.?\d*)?\s*\)/gi.exec(s);i&&(n=(parseInt(i[1])<<16)+(parseInt(i[2])<<8)+parseInt(i[3]),i[4]&&(e.a=Ze(parseFloat(i[4]),2)))}else if(s[0]==="#")n=parseInt(s.slice(1,7),16),s.length>7&&(e.a=Ze(parseInt(s.slice(7,9),16)/255,2));else throw new Error("getColor 不支持的颜色解析:"+s);return n>=0&&(e.r=n>>16&255,e.g=n>>8&255,e.b=n&255),typeof t=="number"&&(e.a=t),e.a=Xe(e.a,0,1),e}function pg(s,t=!1){let e=Zs(s);return t?e=Zs(e.r*.299+e.g*.587+e.b*.114>186?"#000000":"#FFFFFF"):(e.r=255-e.r,e.g=255-e.g,e.b=255-e.b),e}function Or(s,t){const e=Zs(s,t);return e.a===1?`rgb(${e.r},${e.g},${e.b})`:`rgba(${e.r},${e.g},${e.b},${e.a})`}function Pr(s){return Mm(s.toString(16),2,"0","left")}function bi(s,t){const e=Zs(s,t);let n=`#${Pr(e.r)}${Pr(e.g)}${Pr(e.b)}`;return e.a===1?n:n+`${Pr(Math.ceil(e.a*255))}`}function mg(s,t=!1){return bi(pg(s,t))}const gg=()=>Math.random()*16777215,Ne=()=>bi(gg());function xi(s,t){const e=Zs(s);return e.r==0&&(e.r=32),e.g==0&&(e.g=32),e.b==0&&(e.b=32),e.r=e.r*(100+t)/100,e.g=e.g*(100+t)/100,e.b=e.b*(100+t)/100,e.r=Math.round(Xe(e.r,0,255)),e.g=Math.round(Xe(e.g,0,255)),e.b=Math.round(Xe(e.b,0,255)),bi(e)}function Qu(s,t,e){try{const n=Zs(s),i=Zs(t);return bi({r:(i.r-n.r)*e+n.r,g:(i.g-n.g)*e+n.g,b:(i.b-n.b)*e+n.b,a:(i.a-n.a)*e+n.a})}catch{return t}}function Rn(){return typeof performance=="object"&&typeof performance.now=="function"?performance.now():Date.now()}(function(){let s=Rn();window.requestAnimationFrame||(window.requestAnimationFrame=function(t){const e=Rn(),n=Math.max(0,16-(e-s)),i=window.setTimeout(function(){t(e+n)},n);return s=e+n,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})})();const yg=s=>{let t=!1;return window.requestAnimationFrame(function e(n){s(n),t||window.requestAnimationFrame(e)}),()=>{t=!0}};class vg{id=0;cbs={};cancelAnimateCycle;constructor(){}get length(){return Object.keys(this.cbs).length}run(t){this.cbs[this.id++]=t,!this.cancelAnimateCycle&&(this.cancelAnimateCycle=yg(e=>{const n=[];for(let i in this.cbs)this.cbs[i](e)===!1&&n.push(parseInt(i));for(let i of n)delete this.cbs[i];!this.length&&this.cancelAnimateCycle&&(this.cancelAnimateCycle(),this.cancelAnimateCycle=void 0)}))}runAccurateSetTimeout(t,e=0){let n=!1,i=Rn();return this.run(r=>n?!1:r-i>=e?(t(),!1):!0),()=>{n=!0}}}const jt=new vg,Ir=new Map;async function _g(s){return new Promise((t,e)=>{bg(s,(n,i)=>n?e(n):t({width:i.width,height:i.height,aspectRatio:i.width/i.height}))})}const bg=(s,t)=>{if(Ir.has(s))return t(null,Ir.get(s));const e=new Image;e.onload=function(){Ir.set(s,{width:e.naturalWidth||e.width,height:e.naturalHeight||e.height,element:e}),t(null,Ir.get(s))},e.onerror=function(n){t(n,null)},e.src=s};class os extends ee{shapes=[];renderGroup;constructor(t){super(t),this.renderGroup=new Xu({x:this.x,y:this.y})}setAttrs(t,e){this.shapes.forEach(n=>{Sr(t)?n.setAttr(t):typeof t=="string"&&e&&n.setAttr(t,e)})}addShape(t){this.shapes.push(...(Array.isArray(t)?t:[t]).map(e=>(e.shapeGroup=this,e.renderGroup=this.renderGroup,this.renderGroup.register(e),e)))}toSVGPathData(){return this.shapes.reduce((t,e,n)=>{const i=e.toSVGPathData();return Array.isArray(i[0])?t.push(...i):t.push(i),t},[])}toCanvasContext(t){}frameUpdate(){super.frameUpdate()}groupTranslate(t,e){this.x+=t,this.y+=e,this.renderGroup.x=this.x,this.renderGroup.y=this.y,this.shapes.forEach(n=>{n.x+=t,n.y+=e})}groupTranslateTo(t,e){this.groupTranslate(t-this.x,e-this.y)}groupRotate(t){this.degree+=t,this.shapes.forEach(e=>{e.degree+=t})}groupRotateTo(t){this.groupRotate(t-this.degree)}groupScaleTo(t){this.scalexOnOrigin=t,this.scaleyOnOrigin=t,this.shapes.forEach(e=>{e.scalexOnOrigin=t,e.scaleyOnOrigin=t})}}const xg=os;let wi;typeof self>"u"&&typeof process<"u"&&process.hrtime?wi=function(){const s=process.hrtime();return s[0]*1e3+s[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?wi=self.performance.now.bind(self.performance):Date.now!==void 0?wi=Date.now:wi=function(){return new Date().getTime()};const $n=wi;class Si{static _nextId=0;static nextId(){return Si._nextId++}}const Dr={Linear:{None:function(s){return s}},Ease:{In:function(s){return Math.pow(s,1.7)}},Quadratic:{In:function(s){return s*s},Out:function(s){return s*(2-s)},InOut:function(s){return(s*=2)<1?.5*s*s:-.5*(--s*(s-2)-1)}},Cubic:{In:function(s){return s*s*s},Out:function(s){return--s*s*s+1},InOut:function(s){return(s*=2)<1?.5*s*s*s:.5*((s-=2)*s*s+2)}},Quartic:{In:function(s){return s*s*s*s},Out:function(s){return 1- --s*s*s*s},InOut:function(s){return(s*=2)<1?.5*s*s*s*s:-.5*((s-=2)*s*s*s-2)}},Quintic:{In:function(s){return s*s*s*s*s},Out:function(s){return--s*s*s*s*s+1},InOut:function(s){return(s*=2)<1?.5*s*s*s*s*s:.5*((s-=2)*s*s*s*s+2)}},Sinusoidal:{In:function(s){return 1-Math.sin((1-s)*Math.PI/2)},Out:function(s){return Math.sin(s*Math.PI/2)},InOut:function(s){return .5*(1-Math.sin(Math.PI*(.5-s)))}},Exponential:{In:function(s){return s===0?0:Math.pow(1024,s-1)},Out:function(s){return s===1?1:1-Math.pow(2,-10*s)},InOut:function(s){return s===0?0:s===1?1:(s*=2)<1?.5*Math.pow(1024,s-1):.5*(-Math.pow(2,-10*(s-1))+2)}},Circular:{In:function(s){return 1-Math.sqrt(1-s*s)},Out:function(s){return Math.sqrt(1- --s*s)},InOut:function(s){return(s*=2)<1?-.5*(Math.sqrt(1-s*s)-1):.5*(Math.sqrt(1-(s-=2)*s)+1)}},Elastic:{In:function(s){return s===0?0:s===1?1:-Math.pow(2,10*(s-1))*Math.sin((s-1.1)*5*Math.PI)},Out:function(s){return s===0?0:s===1?1:Math.pow(2,-10*s)*Math.sin((s-.1)*5*Math.PI)+1},InOut:function(s){return s===0?0:s===1?1:(s*=2,s<1?-.5*Math.pow(2,10*(s-1))*Math.sin((s-1.1)*5*Math.PI):.5*Math.pow(2,-10*(s-1))*Math.sin((s-1.1)*5*Math.PI)+1)}},Back:{In:function(s){return s===1?1:s*s*((1.70158+1)*s-1.70158)},Out:function(s){return s===0?0:--s*s*((1.70158+1)*s+1.70158)+1},InOut:function(s){const t=2.5949095;return(s*=2)<1?.5*(s*s*((t+1)*s-t)):.5*((s-=2)*s*((t+1)*s+t)+2)}},Bounce:{In:function(s){return 1-Dr.Bounce.Out(1-s)},Out:function(s){return s<1/2.75?7.5625*s*s:s<2/2.75?7.5625*(s-=1.5/2.75)*s+.75:s<2.5/2.75?7.5625*(s-=2.25/2.75)*s+.9375:7.5625*(s-=2.625/2.75)*s+.984375},InOut:function(s){return s<.5?Dr.Bounce.In(s*2)*.5:Dr.Bounce.Out(s*2-1)*.5+.5}},generatePow:function(s=4){return s=s<Number.EPSILON?Number.EPSILON:s,s=s>1e4?1e4:s,{In:function(t){return t**s},Out:function(t){return 1-(1-t)**s},InOut:function(t){return t<.5?(t*2)**s/2:(1-(2-t*2)**s)/2+.5}}},random:function(s){return Math.random()},createStep:function(s){return function(t){return Math.floor(t*s)/s}},createNoisyEasing:function(s,t=.1){const e=1-t;return function(n){return t*Math.random()+e*s(n)}},swing:function(s){return s+Math.sin(s*Math.PI*2)/2},causeSeizures:function(s){return s+.2*Math.random()-.1}},wa=Dr,Ci={Utils:{Linear:function(s,t,e){return(t-s)*e+s},Factorial:function(){const s=[1];return function(t){let e=1;if(s[t])return s[t];for(let n=t;n>1;n--)e*=n;return s[t]=e,e}}(),Bernstein:function(s,t){const e=Ci.Utils.Factorial;return e(s)/e(t)/e(s-t)},CatmullRom:function(s,t,e,n,i){const r=(e-s)*.5,o=(n-t)*.5,a=i*i,l=i*a;return(2*t-2*e+r+o)*l+(-3*t+3*e-2*r-o)*a+r*i+t}},Linear:function(s,t){const e=s.length-1,n=e*t,i=Math.floor(n),r=Ci.Utils.Linear;return t<0?r(s[0],s[1],n):t>1?r(s[e],s[e-1],e-n):r(s[i],s[i+1>e?e:i+1],n-i)},Bezier:function(s,t){let e=0;const n=s.length-1,i=Math.pow,r=Ci.Utils.Bernstein;for(let o=0;o<=n;o++)e+=i(1-t,n-o)*i(t,o)*s[o]*r(n,o);return e},CatmullRom:function(s,t){const e=s.length-1;let n=e*t,i=Math.floor(n);const r=Ci.Utils.CatmullRom;return s[0]===s[e]?(t<0&&(i=Math.floor(n=e*(1+t))),r(s[(i-1+e)%e],s[i],s[(i+1)%e],s[(i+2)%e],n-i)):t<0?s[0]-(r(s[0],s[0],s[1],s[1],-n)-s[0]):t>1?s[e]-(r(s[e],s[e],s[e-1],s[e-1],n-e)-s[e]):r(s[i?i-1:0],s[i],s[e<i+1?e:i+1],s[e<i+2?e:i+2],n-i)}},Sa=Ci;class Ju{_tweens={};_tweensAddedDuringUpdate={};getAll(){return Object.keys(this._tweens).map(t=>this._tweens[t])}removeAll(){this._tweens={}}add(t){this._tweens[t.getId()]=t,this._tweensAddedDuringUpdate[t.getId()]=t}remove(t){delete this._tweens[t.getId()],delete this._tweensAddedDuringUpdate[t.getId()]}update(t=$n(),e=!1){let n=Object.keys(this._tweens);for(let i=0;i<n.length;i++){const r=this._tweens[n[i]],o=!e;r&&r.update(t,o)===!1&&!e&&delete this._tweens[n[i]]}return!!Object.keys(this._tweens).length}}const Qe=new Ju;class th{constructor(t,e=Qe){this._object=t,this._group=e}_id=Si.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=wa.Linear.None;_interpolationFunction=Sa.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(t,e){return this._valuesEnd=Object.create(t),e!==void 0&&(this._durationTime=e),this}duration(t=1e3){return this._durationTime=t,this}start(t=$n()){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(const e in this._valuesStartRepeat)this._swapEndStartRepeatValues(e),this._valuesStart[e]=this._valuesStartRepeat[e]}return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=t,this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this}_setupProperties(t,e,n,i){for(const r in n){const o=t[r],a=Array.isArray(o),l=a?"array":typeof o,c=!a&&Array.isArray(n[r]);if(!(l==="undefined"||l==="function")){if(c){let u=n[r];if(u.length===0)continue;u=u.map(this._handleRelativeValue.bind(this,o)),n[r]=[o].concat(u)}if((l==="object"||a)&&o&&!c){e[r]=a?[]:{};for(const u in o)e[r][u]=o[u];i[r]=a?[]:{},this._setupProperties(o,e[r],n[r],i[r])}else typeof e[r]>"u"&&(e[r]=o),a||(e[r]*=1),c?i[r]=n[r].slice().reverse():i[r]=e[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(t=$n()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=t,this._group&&this._group.remove(this),this)}resume(t=$n()){return!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=t-this._pauseStartTime,this._pauseStartTime=0,this._group&&this._group.add(this),this)}stopChainedTweens(){for(let t=0,e=this._chainedTweens.length;t<e;t++)this._chainedTweens[t].stop();return this}group(t=Qe){return this._group=t,this}delay(t=0){return this._delayTime=t,this}repeat(t=0){return this._initialRepeat=t,this._repeat=t,this}repeatDelay(t){return this._repeatDelayTime=t,this}yoyo(t=!1){return this._yoyo=t,this}easing(t=wa.Linear.None){return this._easingFunction=t,this}interpolation(t=Sa.Linear){return this._interpolationFunction=t,this}chain(...t){return this._chainedTweens=t,this}onStart(t){return this._onStartCallback=t,this}onEveryStart(t){return this._onEveryStartCallback=t,this}onUpdate(t){return this._onUpdateCallback=t,this}onRepeat(t){return this._onRepeatCallback=t,this}onComplete(t){return this._onCompleteCallback=t,this}onStop(t){return this._onStopCallback=t,this}update(t=$n(),e=!0){if(this._isPaused)return!0;let n,i;const r=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(t>r)return!1;e&&this.start(t)}if(this._goToEnd=!1,t<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=(t-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(n in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[n]=="string"&&(this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(this._valuesEnd[n])),this._yoyo&&this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=t+this._repeatDelayTime:this._startTime=t+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(t,e,n,i){for(const r in n){if(e[r]===void 0)continue;const o=e[r]||0;let a=n[r];const l=Array.isArray(t[r]),c=Array.isArray(a);!l&&c?t[r]=this._interpolationFunction(a,i):typeof a=="object"&&a?this._updateProperties(t[r],o,a,i):(a=this._handleRelativeValue(o,a),typeof a=="number"&&(t[r]=o+(a-o)*i))}}_handleRelativeValue(t,e){return typeof e!="string"?e:e.charAt(0)==="+"||e.charAt(0)==="-"?t+parseFloat(e):parseFloat(e)}_swapEndStartRepeatValues(t){const e=this._valuesStartRepeat[t],n=this._valuesEnd[t];typeof n=="string"?this._valuesStartRepeat[t]=this._valuesStartRepeat[t]+parseFloat(n):this._valuesStartRepeat[t]=n,this._valuesEnd[t]=e}}const wg=th,Sg=Si.nextId,Cg=Qe.getAll.bind(Qe),kg=Qe.removeAll.bind(Qe),Eg=Qe.add.bind(Qe),Tg=Qe.remove.bind(Qe),Og=Qe.update.bind(Qe),dt={now:$n,Sequence:Si,Easing:wa,Interpolation:Sa,Group:Ju,Tween:wg,nextId:Sg,getAll:Cg,removeAll:kg,add:Eg,remove:Tg,update:Og};function Pg(s){switch(s){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-in-out":return[.42,0,.58,1];case"ease-out":return[0,0,.58,1]}}const Ig={attributeName:["display"],values:[["block","block"]],immediate:!1},Ue={easeName:"linear",begin:0,dur:300,repeatCount:1,direction:"normal",fill:"freeze",keyTimes:[0,1]};class ye{objects=[];animateObjects=[];currentAnimateName;constructor(){}fromDOM(t){return this.objects.forEach(e=>{e.app.destroy()}),this.objects=[],(Array.isArray(t)?t:[t]).forEach(e=>{this.objects.push({el:e,app:new xe(e),originAttrs:{}})}),this}static toTween(t,e,n){const i=n?.onStart||(()=>{}),r=n?.onUpdate||(()=>{}),o=n?.onComplete||(()=>{}),a=n?.duration||1e3,l=n?.delay||0,c=n?.easeFunction||dt.Easing.Linear.None,u=n?.repeat||0,h=n?.yoyo||!1,f=new dt.Tween(t).to(e,a).delay(l).easing(c).repeat(u).yoyo(h).onStart(i).onUpdate((d,m)=>{r(d,m)}).onComplete(o);return n?.interpolationFunction&&f.interpolation(n.interpolationFunction),{tween:f,startAuto:d=>{f.start(d?.()),jt.run(()=>{const m=f.update(d?.());if(n?.precision){let y=!0;for(let _ in t)gi(t[_],e[_],n.precision)||(y=!1);return y?!1:m}return m})}}}static toTweenGroup(t,e){if(t instanceof th)return n=>{t.start(),e?.onGroupStart?.(),jt.run(()=>{const i=dt.update(n?.());return i?e?.onGroupUpdate?.():e?.onGroupComplete?.(),i})};{const n=new dt.Group;return t.forEach(i=>{n.add(i)}),i=>{t.forEach(r=>r.start()),e?.onGroupStart?.(),jt.run(()=>{const r=n.update(i?.());return r?e?.onGroupUpdate?.():e?.onGroupComplete?.(),r})}}}static toTweenCSS(t,e,n,i){U.add3DSupport(t);const r=i?.onUpdate||(()=>{});return ye.toTween(e,n,Object.assign(i||{},{onUpdate:(o,a)=>{const l=U.convertAttrs(t,o);U.setStyle(t,l),r(o,a)}}))}addAnimateObject(t=Ig,e=Ue,n=0,i=!1){const r=e.easeName||"linear",o=e.dur||300,a=e.keyTimes||[0,1],l=[];a.forEach((u,h)=>{h>0&&l.push(Pg(r))});const c=this.objects[n];return this.animateObjects=i?[]:this.animateObjects,this.animateObjects.push({el:c.el,app:c.app,originAttrs:c.originAttrs,attributeName:t.attributeName,values:t.values,immediate:t.immediate||!1,easeName:r,begin:e.begin||0,dur:o,repeatCount:e.repeatCount||1,direction:e.direction||"normal",fill:e.fill||"freeze",keyTimes:a,realKeyTimes:a.map(u=>o*u),keySplines:l,calcMode:e.calcMode||"linear",onComplete:e.onComplete||(()=>{})}),this}resetAnimateObjects(t,e,n,i,r=Ue,o=this.objects.length-1){let a=!0,l=!1,c=!1,u=!1;const h=this.objects.length-1;o=Xe(o,0,h);let f=o-1;f=Xe(f,0,h);let d=o+1;d=Xe(d,0,h);const m=this.objects[o],y=this.objects[f],_=this.objects[d];if(y&&f!==o){const k=t(y);k&&(this.addAnimateObject(k,r,f,a),a=!1,l=!0)}if(m){const k=e(m);k&&(this.addAnimateObject(k,r,o,a),a=!1,c=!0)}if(_&&d!==o){const k=n(_);k&&(this.addAnimateObject(k,r,d,a),a=!1,u=!0)}this.objects.forEach((k,I)=>{if(!(I==f&&l||I==o&&c||I==d&&u)){const M=i(k);M&&(this.addAnimateObject(M,r,I,a),a=!1)}})}toCSS(t,...e){if(this.objects.length==0)return;this.currentAnimateName=t,this[t](...e),U.add3DSupport(this.objects[0].el),this.objects.forEach((r,o)=>{U.setStyle(r.el,{position:"absolute","z-index":String(2e3+o),"transform-style":"preserve-3d","backface-visibility":"hidden"})});let n=0;const i=()=>{this.animateObjects.forEach((r,o)=>{let a=[],l=[];Array.isArray(r.attributeName)?(a=r.attributeName,l=r.values):r.attributeName&&(a=[r.attributeName],l=[r.values]);const c=r.keyTimes.length;let u=r.begin;r.keyTimes.forEach((h,f)=>{const d={};a.forEach((y,_)=>{const k=l[_][r.direction=="reverse"?c-1-f:f];d[y]=k});const m=U.convertAttrs(r.el,d,r.originAttrs);f==0||r.immediate?U.setStyle(r.el,Object.assign(m,{transition:"none"})):(jt.runAccurateSetTimeout(()=>{U.setStyle(r.el,Object.assign(m,{transition:`all ${r.realKeyTimes[f]}ms cubic-bezier(${r.keySplines[f-1].join(",")})`}))},u),u+=r.realKeyTimes[f])}),jt.runAccurateSetTimeout(()=>{r.fill==="remove"&&U.setStyle(r.el,r.originAttrs||{}),o==this.animateObjects.length-1&&(r.onComplete?.(),this.currentAnimateName==t&&(r.repeatCount=="infinite"||typeof r.repeatCount=="number"&&++n<r.repeatCount)&&i())},r.begin+r.dur)})};i()}slideLeft(t=Ue,e=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[-n.app.width,0]]]}),n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[n.app.width,0],[0,0]]]}),n=>{},n=>({attributeName:["opacity","translateTo"],values:[[0,0],[[n.app.width,0],[n.app.width,0]]],immediate:!0}),t,e)}slideRight(t=Ue,e=this.objects.length-1){this.resetAnimateObjects(n=>{},n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[-n.app.width,0],[0,0]]]}),n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[n.app.width,0]]]}),n=>({attributeName:["opacity","translateTo"],values:[[0,0],[[-n.app.width,0],[-n.app.width,0]]],immediate:!0}),t,e)}slideDown(t=Ue,e=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[0,n.app.height]]]}),n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,-n.app.height],[0,0]]]}),n=>{},n=>({attributeName:["opacity","translateTo"],values:[[0,0],[[0,-n.app.height],[0,-n.app.height]]],immediate:!0}),t,e)}slideUp(t=Ue,e=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[0,-n.app.height]]]}),n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,n.app.height],[0,0]]]}),n=>{},n=>({attributeName:["opacity","translateTo"],values:[[0,0],[[0,n.app.height],[0,n.app.height]]],immediate:!0}),t,e)}flipLeft(t=Ue,e=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,180]]}),n=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[-180,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),t,e)}flipRight(t=Ue,e=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,-180]]}),n=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[180,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),t,e)}flipDown(t=Ue,e=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,-180]]}),n=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[180,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),t,e)}flipUp(t=Ue,e=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,180]]}),n=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[-180,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),t,e)}popIn(t=Ue,e=this.objects.length-1){this.resetAnimateObjects(n=>{},n=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[.8,1],[0,1]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),t,e)}popOut(t=Ue,e=this.objects.length-1){this.resetAnimateObjects(n=>{},n=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[1,1.2],[1,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),t,e)}rotate(t=Ue,e=this.objects.length-1){Object.assign(t,{keyTimes:[0,1]});const n=t.degree||360;this.resetAnimateObjects(i=>{},i=>({attributeName:["opacity","rotate"],values:[[1,1],[0,n]]}),i=>{},i=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),t,e)}}class Dg extends hg{currentItem={};items=[];groups=[];globalStyles={};grad={};idtops={};text="";constructor(t){super(t),this.on("tag",(e,n)=>{switch(this.text="",this.currentItem={type:e},e){case"g":this.groups.push(this.currentItem);break}this.processAttrs(e,n)}),this.on("text",e=>{if(this.currentItem.type=="style"){try{const n=Hm(e);for(let i of n.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: "+e)}return}this.text+=e}),this.on("/tag",(e,n)=>{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),ka(this.currentItem.style,this.currentItem,Ea)}switch(this.processAttrs(e,n),e){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(t,e){let n=[],i;switch(t){case"svg":let r="",o="";if(e.width&&e.height)r=e.width,o=e.height;else if(e.viewBox){const a=e.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 e.x1=="number"&&typeof e.y1=="number"&&typeof e.x2=="number"&&typeof e.y2=="number"&&(this.currentItem.path="M"+[e.x1,e.y1,e.x2,e.y2]);break;case"stop":i={},e.style&&ka(e.style,i),i.offset=i.offset||e.offset,i.color=i["stop-color"]||e["stop-color"],i.opacity=i["stop-opacity"]||e["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+Ca(parseFloat(e.x1),parseFloat(e.y1),parseFloat(e.x2),parseFloat(e.y2),parseFloat(e.x1)+100,parseFloat(e.y1))).toFixed(2),n=[this.grad.angle];for(let a=0,l=this.grad.stops.length;a<l;a++)i=this.grad.stops[a],a&&a!=l-1?n.push(i.color+":"+i.offset):n.push(i.color);this.idtops[this.grad.id]=n.join("-"),this.items.forEach(a=>{a.fillid==this.grad.id&&(a.fill=this.idtops[this.grad.id])});break;case"radialGradient":n=[];for(let a=0,l=this.grad.stops.length;a<l;a++)i=this.grad.stops[a],a&&a!=l-1?n.push(i.color+":"+i.offset):n.push(i.color);this.idtops[this.grad.id]=n.join("-"),this.items.forEach(a=>{a.fillid==this.grad.id&&(a.fill=this.idtops[this.grad.id])});break}for(let r in e){const o=e[r];if(Ea.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"&&ka(o,this.currentItem,Ea),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 Ca(s,t,e,n,i,r){if(typeof i>"u"||typeof r>"u"){const o=s-e,a=t-n;return!o&&!a?0:(180+Math.atan2(-a,-o)*180/Math.PI+360)%360}else return Ca(s,t,i,r)-Ca(e,n,i,r)}function ka(s,t,e){const n=(s+"").split(";"),i=/^\s+|\s+$/g;for(let r=0,o=n.length;r<o;r++){let a=n[r].split(":"),l=a[0].replace(i,"").replace(/[A-Z]/g,function(c){return"-"+c.toLowerCase()});(!e||e.includes(l))&&(t[l]=a[1].replace(i,""))}}const Ea=["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 Mg{app;rootEl;shapes=[];isMouseDown=!1;currentMouseInShapeID="";currentEnableDragMouseInShapeID="";constructor(t,e,n){this.app=t,this.rootEl=te.createSVGElement("svg"),U.empty(this.app.container),U.insert(this.app.container,this.rootEl),e&&n?this.setSize(e,n):(this.setSize(this.app.width,this.app.height),this.app.on("resize",()=>{this.setSize(this.app.width,this.app.height)})),this.app.captureMove({start:()=>{this.isMouseDown=!0,this.setCursor()},end:()=>{this.isMouseDown=!1,this.setCursor()},move:()=>{if(this.isMouseDown&&this.currentEnableDragMouseInShapeID){this.setCursor();return}this.currentMouseInShapeID="";const i=this.shapes.length;let r=0;for(;r<i;r++){const o=this.shapes[r];if(!(o instanceof gt)&&!o.pathd){o.isMouseIn=!1,o.mouseX=0,o.mouseY=0;continue}const a=o instanceof gt&&(o.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||o.isPointInStroke(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl))||o.pathd instanceof gt&&(o.pathd.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||o.pathd.isPointInStroke(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl))||!1;if(o.isMouseIn=a,o.mouseX=this.app.mousePoint.x,o.mouseY=this.app.mousePoint.y,a&&(this.currentMouseInShapeID=o.id,o.enableDrag)){this.currentEnableDragMouseInShapeID=o.id,this.shapes.filter(l=>l.id!==o.id).forEach(l=>{l instanceof ee&&(l.isMouseIn=!1,l.mouseX=0,l.mouseY=0)});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.shapes.forEach(t=>{t.autoRender&&this.path(t.shapeGroup||t)}))):this.currentMouseInShapeID?this.app.container.style.cursor="default":this.app.container.style.cursor="default"}setSize(t,e){return U.attribute(this.rootEl,{viewBox:`0 0 ${t} ${e}`,width:`${t}`,height:`${e}`}),this}download(){return te.downloadFromSVGElement(this.rootEl)}path(t){[...Array.isArray(t)?t:[t]].forEach(e=>{if(e instanceof os){e.frameUpdate(),e.shapes.forEach(n=>this.path(n));return}if(!e.el){if(e instanceof Ar)e.el=this.text(e.text,e.x,e.y,Lu(e.attrs,(n,i)=>typeof i=="string"));else if(e instanceof Pe)e.el=te.createSvgPath(`M ${e.fromX} ${e.fromY} `+e.toSVGPathD()),U.insert(this.rootEl,e.el);else if(e instanceof gt)e.el=te.createSvgPath(e.toSVGPathD()),U.insert(this.rootEl,e.el);else if(e instanceof ee){const n=gt.fromShape(e)||e;e.el=n.el=te.createSvgPath(n.toSVGPathD()),U.insert(this.rootEl,e.el),n instanceof gt&&(e.pathd=n)}}this.shapes.find(n=>n.id==e.id)||this.shapes.push(e),this.update(e)})}update(t){[...Array.isArray(t)?t:[t]].forEach(e=>{const n=[];e instanceof os?(e.frameUpdate(),n.push(...e.shapes)):n.push(e),n.forEach(i=>{if(i.followMouse&&(!gi(i.x,this.app.mousePoint.x,5)||!gi(i.y,this.app.mousePoint.y,5))&&(i.rotateTo(this.app.mousePoint),i.followTo(this.app.mousePoint)),i.targetToAfterDragFree&&(this.isMouseDown||i.nextFrameEaseTo({x:i.targetToAfterDragFree.targetX,y:i.targetToAfterDragFree.targetY},{easing:i.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableDragMouseInShapeID==i.id){const{dx:r,dy:o}=i.centerDiff,a=i.x,l=i.y;if(i.x=this.app.mousePoint.x-r,i.y=this.app.mousePoint.y-o,i.alongPath){const c=i.alongPath.closestPoint(i.x,i.y);i.x=c.point.x,i.y=c.point.y}i.isDragging=!0,i.emit("moving",i.x-a,i.y-l)}else i instanceof ee&&(i.isDragging=!1);(i instanceof Pe||i instanceof gt||i.pathd instanceof gt)&&this.attr(i,"d",i instanceof Pe?`M ${i.fromX} ${i.fromY} `+i.toSVGPathD():i.pathd instanceof gt?i.pathd.toSVGPathD():i.toSVGPathD()),i instanceof Ar&&(i.setAttr("x",String(i.x)),i.setAttr("y",String(i.y))),this.attr(i,Lu(i.attrs,(r,o)=>typeof o=="string")),i.frameUpdate(),i instanceof gt?i.updateTransform():i.pathd&&i.pathd.updateFromShape(i),i.el&&(i.isShow?U.show(i.el):U.hide(i.el))})})}click(t){const e=()=>{this.shapes.forEach(n=>{(n instanceof gt&&(n.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||n.isPointInStroke(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl))||n.pathd instanceof gt&&(n.pathd.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||n.pathd.isPointInStroke(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)))&&t(n)})};return this.app.on("tap",e),()=>{this.app.off("tap",e)}}delete(t){[...t instanceof os?t.shapes:[t]].forEach(e=>{e.el&&U.remove(e.el),e.pathd?.el&&U.remove(e.pathd?.el),delete e.el,delete e.pathd,this.shapes=this.shapes.filter(n=>n.id!==e.id)})}clear(){this.shapes.forEach(t=>{t.el&&U.remove(t.el),t.pathd?.el&&U.remove(t.pathd?.el),delete t.el,delete t.pathd}),U.empty(this.rootEl),this.shapes=[]}attr(t,e,n){const i=t.el||t;return i instanceof SVGElement?e===void 0&&n===void 0?U.attribute(i):typeof e=="string"&&n===void 0?U.attribute(i,He(e))||"":(typeof e=="object"?U.attribute(i,e):typeof e=="string"&&n!==void 0&&U.attribute(i,He(e),n),this):this}circle(t,e,n){return this.path(new Oe({x:t,y:e,radius:n}))}circleEl(t,e,n){const i=te.createSVGElement("circle",{cx:String(t),cy:String(e),r:String(n)});return U.insert(this.rootEl,i),i}ellipse(t,e,n,i){return this.path(new Lg({x:t,y:e,rx:n,ry:i}))}ellipseEl(t,e,n,i){const r=te.createSVGElement("ellipse",{cx:String(t),cy:String(e),rx:String(n),ry:String(i)});return U.insert(this.rootEl,r),r}rect(t,e,n,i){return this.path(new ge({x:t,y:e,width:n,height:i}))}rectEl(t,e,n,i){const r=te.createSVGElement("rect",{x:String(t),y:String(e),width:String(n),height:String(i)});return U.insert(this.rootEl,r),r}image(t,e,n,i,r){}text(t,e,n,i){const r=te.createSVGElement("text",{x:String(e),y:String(n)});return U.html(r,t),this.attr(r,Object.assign({"alignment-baseline":"middle"},i)),U.insert(this.rootEl,r),r}textWithTspan(t,e,n,i){const r=i?.["line-height"]||"1.2em",o=te.createSVGElement("text",{x:String(e),y:String(n)});return t.split(`
|
|
56
|
+
`).forEach((a,l)=>{if(a.trim()){const c=te.createSVGElement("tspan",{x:String(e),dy:l>0?r:"0"});U.html(c,a),U.insert(o,c),this.attr(c,Object.assign({"alignment-baseline":"middle"},i))}}),U.insert(this.rootEl,o),o}}const eh=Ng("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 Ng(s,t=10){const e={},n=s.split(",");for(let i=0;i<n.length;i+=2){const r="&"+n[i+1]+";",o=parseInt(n[i],t);e[r]="&#"+o+";"}return e["\\xa0"]=" ",e}function Ae(s,t){const e=Object.keys(t);for(let n=0;n<e.length;n++)s=s.replace(new RegExp("{"+e[n]+"}","gi"),""+t[e[n]]);return s}function Mr(s){let t,e;if(!s)throw new Error("cannot create a random attribute name for an undefined object");const n="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";t="";do for(t="",e=0;e<12;e++)t+=n[Math.floor(Math.random()*n.length)];while(s[t]);return t}function Ag(s){const t={left:"start",right:"end",center:"middle",start:"start",end:"end"};return t[s]||t.start}function Rg(s){const t={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return t[s]||t.alphabetic}const ki={strokeStyle:{svgAttr:"stroke",canvas:"#000000",svg:"none",apply:"stroke"},fillStyle:{svgAttr:"fill",canvas:"#000000",svg:null,apply:"fill"},lineCap:{svgAttr:"stroke-linecap",canvas:"butt",svg:"butt",apply:"stroke"},lineJoin:{svgAttr:"stroke-linejoin",canvas:"miter",svg:"miter",apply:"stroke"},miterLimit:{svgAttr:"stroke-miterlimit",canvas:10,svg:4,apply:"stroke"},lineWidth:{svgAttr:"stroke-width",canvas:1,svg:1,apply:"stroke"},globalAlpha:{svgAttr:"opacity",canvas:1,svg:1,apply:"fill stroke"},font:{canvas:"10px sans-serif"},shadowColor:{canvas:"#000000"},shadowOffsetX:{canvas:0},shadowOffsetY:{canvas:0},shadowBlur:{canvas:0},textAlign:{canvas:"start"},textBaseline:{canvas:"alphabetic"},lineDash:{svgAttr:"stroke-dasharray",canvas:[],svg:null,apply:"stroke"},lineDashOffset:{svgAttr:"stroke-dashoffset",canvas:0,svg:0,apply:"stroke"}};class Ta{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}addColorStop(t,e){const n=this.__ctx.__createElement("stop");if(n.setAttribute("offset",""+t),e.indexOf("rgba")!==-1){const r=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(e);r&&(n.setAttribute("stop-color",Ae("rgb({r},{g},{b})",{r:r[1],g:r[2],b:r[3]})),n.setAttribute("stop-opacity",r[4]))}else n.setAttribute("stop-color",e);this.__root.appendChild(n)}}class sh{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}}class Nr{__document=document;__canvas;__ctx;width;height;__styleStack;__groupStack;__rootSVG;__ids;__SVGdefs;__currentElement;__currentElementsToStyle=null;constructor({canvas:t,width:e=500,height:n=500}){t?(this.__canvas=t,this.__ctx=t.getContext("2d"),this.width=t.width,this.height=t.height):(this.__canvas=this.__document.createElement("canvas"),this.__ctx=this.__canvas.getContext("2d"),this.width=e,this.height=n),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 t=Object.keys(ki);for(let e=0,n=t.length;e<n;e++){const i=t[e];this[i]=ki[i].canvas}}__getStyleState(){const t={},e=Object.keys(ki);for(let n=0,i=e.length;n<i;n++){const r=e[n];t[r]=this[r]}return t}__applyStyleState(t){const e=Object.keys(t);for(let n=0,i=e.length;n<i;n++){const r=e[n];this[r]=t[r]}}__createElement(t,e={},n=!1){const i=this.__document.createElementNS("http://www.w3.org/2000/svg",t),r=Object.keys(e);n&&(i.setAttribute("fill","none"),i.setAttribute("stroke","none"));for(let o=0;o<r.length;o++){const a=r[o];i.setAttribute(a,e[a])}return i}__applyStyleToCurrentElement(t){let e=this.__currentElement;const n=this.__currentElementsToStyle;n&&(e.setAttribute(t,""),e=n.element,n.children.forEach(r=>{r.setAttribute(t,"")}));const i=Object.keys(ki);for(let r=0;r<i.length;r++){const o=ki[i[r]],a=this[i[r]];if(o.apply){if(a instanceof sh){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])}e.setAttribute(o.apply,Ae("url(#{id})",{id:a.__root.getAttribute("id")}))}else if(a instanceof Ta)e.setAttribute(o.apply,Ae("url(#{id})",{id:a.__root.getAttribute("id")}));else if(o.apply.indexOf(t)!==-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);if(c){e.setAttribute(o.svgAttr,Ae("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),e.setAttribute(o.svgAttr+"-opacity",""+u)}}else{let l=o.svgAttr;if(i[r]==="globalAlpha"&&(l=t+"-"+o.svgAttr,e.getAttribute(l)))continue;l&&e.setAttribute(l,a)}}}}__closestGroupOrSvg(t){return t=t||this.__currentElement,t.nodeName==="g"||t.nodeName==="svg"?t:this.__closestGroupOrSvg(t.parentNode)}getSerializedSvg(t){let e=new XMLSerializer().serializeToString(this.__rootSVG);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(e)&&(e=e.replace('xmlns="http://www.w3.org/2000/svg','xmlns:xlink="http://www.w3.org/1999/xlink')),t){const i=Object.keys(eh);for(let r=0,o=i.length;r<o;r++){const a=i[r],l=eh[a],c=new RegExp(a,"gi");c.test(e)&&(e=e.replace(c,l))}}return e}getSvg(){return this.__rootSVG}save(){const t=this.__createElement("g"),e=this.__closestGroupOrSvg();this.__groupStack.push(e),e.appendChild(t),this.__currentElement=t,this.__styleStack.push(this.__getStyleState())}restore(){this.__currentElementsToStyle=null;const t=this.__groupStack.pop();t?this.__currentElement=t:this.__currentElement=this.__rootSVG.childNodes[1];const e=this.__styleStack.pop();e&&this.__applyStyleState(e)}__addTransform(t){const e=this.__closestGroupOrSvg();if(e.childNodes.length>0){this.__currentElement.nodeName==="path"&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:e,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());const i=this.__createElement("g");e.appendChild(i),this.__currentElement=i}let n=this.__currentElement.getAttribute("transform");n?n+=" ":n="",n+=t,this.__currentElement.setAttribute("transform",n)}scale(t,e){e===void 0&&(e=t),this.__addTransform(Ae("scale({x},{y})",{x:t,y:e}))}rotate(t){const e=t*180/Math.PI;this.__addTransform(Ae("rotate({angle},{cx},{cy})",{angle:e,cx:0,cy:0}))}translate(t,e){this.__addTransform(Ae("translate({x},{y})",{x:t,y:e}))}transform(t,e,n,i,r,o){this.__addTransform(Ae("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:e,c:n,d:i,e:r,f:o}))}beginPath(){this.__currentDefaultPath="",this.__currentPosition={};const t=this.__createElement("path",{},!0);this.__closestGroupOrSvg().appendChild(t),this.__currentElement=t}__applyCurrentDefaultPath(){const t=this.__currentElement;t.nodeName==="path"&&t.setAttribute("d",this.__currentDefaultPath)}__addPathCommand(t){this.__currentDefaultPath+=" ",this.__currentDefaultPath+=t}moveTo(t,e){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.__currentPosition={x:t,y:e},this.__addPathCommand(Ae("M {x} {y}",this.__currentPosition))}closePath(){this.__currentDefaultPath&&this.__addPathCommand("Z")}lineTo(t,e){this.__currentPosition={x:t,y:e},this.__currentDefaultPath.indexOf("M")>-1?this.__addPathCommand(Ae("L {x} {y}",this.__currentPosition)):this.__addPathCommand(Ae("M {x} {y}",this.__currentPosition))}bezierCurveTo(t,e,n,i,r,o){this.__currentPosition={x:r,y:o},this.__addPathCommand(Ae("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:e,cp2x:n,cp2y:i,x:r,y:o}))}quadraticCurveTo(t,e,n,i){this.__currentPosition={x:n,y:i},this.__addPathCommand(Ae("Q {cpx} {cpy} {x} {y}",{cpx:t,cpy:e,x:n,y:i}))}normalize(t){const e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]}arcTo(t,e,n,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===t&&a===e||t===n&&e===i||r===0){this.lineTo(t,e);return}const l=this.normalize([o-t,a-e]),c=this.normalize([n-t,i-e]);if(l[0]*c[1]===l[1]*c[0]){this.lineTo(t,e);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=t+d*f[0],y=e+d*f[1],_=[-l[1],l[0]],k=[c[1],-c[0]],I=function(tt){const L=tt[0];return tt[1]>=0?Math.acos(L):-Math.acos(L)},M=I(_),E=I(k);this.lineTo(m+_[0]*r,y+_[1]*r),this.arc(m,y,r,M,E)}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(t,e,n,i){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+i),this.lineTo(t,e+i),this.lineTo(t,e),this.closePath()}fillRect(t,e,n,i){const r=this.__createElement("rect",{x:t,y:e,width:n,height:i},!0);this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement("fill")}strokeRect(t,e,n,i){const r=this.__createElement("rect",{x:t,y:e,width:n,height:i},!0);this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const e=this.__closestGroupOrSvg().getAttribute("transform"),n=this.__rootSVG.childNodes[1],i=n.childNodes;for(let r=i.length-1;r>=0;r--)i[r]&&n.removeChild(i[r]);this.__currentElement=n,this.__groupStack=[],e&&this.__addTransform(e)}clearRect(t,e,n,i){if(t===0&&e===0&&n===this.width&&i===this.height){this.__clearCanvas();return}const r=this.__closestGroupOrSvg(),o=this.__createElement("rect",{x:t,y:e,width:n,height:i,fill:"#FFFFFF"},!0);r.appendChild(o)}createLinearGradient(t,e,n,i){const r=this.__createElement("linearGradient",{id:Mr(this.__ids),x1:t+"px",x2:n+"px",y1:e+"px",y2:i+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(r),new Ta(r,this)}createRadialGradient(t,e,n,i,r,o){const a=this.__createElement("radialGradient",{id:Mr(this.__ids),cx:i+"px",cy:r+"px",r:o+"px",fx:t+"px",fy:e+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(a),new Ta(a,this)}__parseFont(){const e=/^\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),n={style:e[1]||"normal",size:e[4]||"10px",family:e[6]||"sans-serif",weight:e[3]||"normal",decoration:e[2]||"normal",href:null};return this.__fontUnderline==="underline"&&(n.decoration="underline"),this.__fontHref&&(n.href=this.__fontHref),n}__wrapTextLink(t,e){if(t.href){const n=this.__createElement("a");return n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.href),n.appendChild(e),n}return e}__applyText(t,e,n,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:e,y:n,"text-anchor":Ag(this.textAlign),"dominant-baseline":Rg(this.textBaseline)},!0);a.appendChild(this.__document.createTextNode(t)),this.__currentElement=a,this.__applyStyleToCurrentElement(i),o.appendChild(this.__wrapTextLink(r,a))}fillText(t,e,n){this.__applyText(t,e,n,"fill")}strokeText(t,e,n){this.__applyText(t,e,n,"stroke")}measureText(t){return this.__ctx.font=this.font,this.__ctx.measureText(t)}arc(t,e,n,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=t+n*Math.cos(r),l=e+n*Math.sin(r),c=t+n*Math.cos(i),u=e+n*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(Ae("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:n,ry:n,xAxisRotation:0,largeArcFlag:f,sweepFlag:h,endX:a,endY:l})),this.__currentPosition={x:a,y:l}}clip(){const t=this.__closestGroupOrSvg(),e=this.__createElement("clipPath"),n=Mr(this.__ids),i=this.__createElement("g");this.__applyCurrentDefaultPath(),t.removeChild(this.__currentElement),e.setAttribute("id",n),e.appendChild(this.__currentElement),this.__SVGdefs.appendChild(e),t.setAttribute("clip-path",Ae("url(#{id})",{id:n})),t.appendChild(i),this.__currentElement=i}drawImage(...t){let e=t[0],n,i,r,o,a=0,l=0,c,u,h,f,d,m,y,_;if(t.length===3)n=t[1],i=t[2],c=e.width,u=e.height,r=c,o=u;else if(t.length===5)n=t[1],i=t[2],r=t[3],o=t[4],c=e.width,u=e.height;else if(t.length===9)a=t[1],l=t[2],c=t[3],u=t[4],n=t[5],i=t[6],r=t[7],o=t[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const k=this.__closestGroupOrSvg();this.__currentElement;const I="translate("+n+", "+i+")";if(e instanceof Nr){if(h=e.getSvg().cloneNode(!0),h.childNodes&&h.childNodes.length>1){for(f=h.childNodes[0];f.childNodes.length;)_=f.childNodes[0].getAttribute("id"),this.__ids[_]=_,this.__SVGdefs.appendChild(f.childNodes[0]);if(d=h.childNodes[1],d){const M=d.getAttribute("transform");let E;M?E=M+" "+I:E=I,d.setAttribute("transform",E),k.appendChild(d)}}}else(e.nodeName==="CANVAS"||e.nodeName==="IMG")&&(m=this.__createElement("image"),m.setAttribute("width",r),m.setAttribute("height",o),m.setAttribute("preserveAspectRatio","none"),(a||l||c!==e.width||u!==e.height)&&(y=this.__document.createElement("canvas"),y.width=r,y.height=o,y.getContext("2d")?.drawImage(e,a,l,c,u,0,0,r,o),e=y),m.setAttribute("transform",I),m.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.nodeName==="CANVAS"?e.toDataURL():e.getAttribute("src")),k.appendChild(m))}createPattern(t,e){const n=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),i=Mr(this.__ids);let r;return n.setAttribute("id",i),t.nodeName==="CANVAS"||t.nodeName==="IMG"?(r=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.nodeName==="CANVAS"?t.toDataURL():t.getAttribute("src")),n.appendChild(r),this.__SVGdefs.appendChild(n)):t instanceof Nr&&(n.setAttribute("width",""+t.width),n.setAttribute("height",""+t.height),n.appendChild(t.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(n)),new sh(n,this)}setLineDash(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}class Oa{canvas;context;customContext;currentPath2D=new Path2D;path2Ds=[];currentMatrix=new DOMMatrix;hasSetCustomStrokeStyle=!1;hasSetCustomFillStyle=!1;constructor(t,e,n,i=!1){this.canvas=t,this.context=t.getContext("2d",{willReadFrequently:!0}),i&&(this.customContext=new Nr({canvas:this.canvas,width:e||this.canvas.width,height:n||this.canvas.height}))}set lineWidth(t){this.hasSetCustomStrokeStyle=!0,this.context.lineWidth=t,this.customContext&&(this.customContext.lineWidth=t)}get lineWidth(){return this.context.lineWidth}set lineCap(t){this.hasSetCustomStrokeStyle=!0,this.context.lineCap=t,this.customContext&&(this.customContext.lineCap=t)}get lineCap(){return this.context.lineCap}set lineJoin(t){this.hasSetCustomStrokeStyle=!0,this.context.lineJoin=t,this.customContext&&(this.customContext.lineCap=t)}get lineJoin(){return this.context.lineJoin}set lineDashOffset(t){this.hasSetCustomStrokeStyle=!0,this.context.lineDashOffset=t,this.customContext&&(this.customContext.lineDashOffset=t)}get lineDashOffset(){return this.context.lineDashOffset}set miterLimit(t){this.hasSetCustomStrokeStyle=!0,this.context.miterLimit=t,this.customContext&&(this.customContext.miterLimit=t)}get miterLimit(){return this.context.miterLimit}set globalAlpha(t){this.context.globalAlpha=t,this.customContext&&(this.customContext.globalAlpha=t)}get globalAlpha(){return this.context.globalAlpha}set fillStyle(t){this.hasSetCustomFillStyle=!0,typeof t=="string"||t instanceof CanvasGradient||t instanceof CanvasPattern?(this.context.fillStyle=t,this.customContext&&(this.customContext.fillStyle=t)):(this.context.fillStyle=t.gradient,this.customContext&&(this.customContext.fillStyle=t.gradientCustom))}get fillStyle(){return this.context.fillStyle}set strokeStyle(t){this.hasSetCustomStrokeStyle=!0,typeof t=="string"||t instanceof CanvasGradient||t instanceof CanvasPattern?(this.context.strokeStyle=t,this.customContext&&(this.customContext.strokeStyle=t)):(this.context.strokeStyle=t.gradient,this.customContext&&(this.customContext.strokeStyle=t.gradientCustom))}get strokeStyle(){return this.context.strokeStyle}set font(t){this.context.font=t,this.customContext&&(this.customContext.font=t)}get font(){return this.context.font}set textBaseline(t){this.context.textBaseline=t,this.customContext&&(this.customContext.textBaseline=t)}get textBaseline(){return this.context.textBaseline}set textAlign(t){this.context.textAlign=t,this.customContext&&(this.customContext.textAlign=t)}get textAlign(){return this.context.textAlign}fill(t){return t?this.context.fill(t):(this.context.fill(),this.customContext&&this.customContext.fill()),this}fillRect(t,e,n,i){return this.context.fillRect(t,e,n,i),this.customContext&&this.customContext.fillRect(t,e,n,i),this}fillText(t,e,n,i){return this.hasSetCustomFillStyle=!1,this.context.fillText(t,e,n,i),this.customContext&&this.customContext.fillText(t,e,n),this}setLineDash(t){return this.context.setLineDash(t),this.customContext&&this.customContext.setLineDash(t),this}stroke(t){return t?this.context.stroke(t):(this.context.stroke(),this.customContext&&this.customContext.stroke()),this}strokeText(t,e,n,i){return this.context.strokeText(t,e,n,i),this.customContext&&this.customContext.strokeText(t,e,n),this}strokeRect(t,e,n,i){return this.context.strokeRect(t,e,n,i),this.customContext&&this.customContext.strokeRect(t,e,n,i),this}measureText(t){return this.context.measureText(t)}clearRect(t=0,e=0,n=this.canvas.width,i=this.canvas.height){return this.context.clearRect(t,e,n,i),this.customContext&&this.customContext.clearRect(t,e,n,i),this}save(){return this.context.save(),this.customContext&&this.customContext.save(),this.currentMatrix=new DOMMatrix,this.path2Ds.push(this.currentPath2D),this.currentPath2D=new Path2D,this}restore(){return this.context.restore(),this.customContext&&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&&this.customContext.beginPath(),this}closePath(){return this.context.closePath(),this.customContext&&this.customContext.closePath(),this.currentPath2D.closePath(),this}changePath2D(t=this.currentPath2D,e=this.currentMatrix){const n=new Path2D;n.addPath(t,e),this.currentPath2D=n}isPointInStroke(...t){return t[0]instanceof Path2D?this.context.isPointInStroke(t[0],t[1],t[2]):this.context.isPointInStroke(t[0],t[1])}isPointInPath(...t){return t[0]instanceof Path2D?this.context.isPointInPath(t[0],t[1],t[2]):this.context.isPointInPath(t[0],t[1])}translate(t,e){return this.context.translate(t,e),this.customContext&&this.customContext.translate(t,e),this.currentMatrix.translate(t,e),this.changePath2D(),this}rotate(t,e=0,n=0){return this.translate(e,n),this.context.rotate(t),this.customContext&&this.customContext.rotate(t),this.currentMatrix.rotate(t),this.translate(-e,-n),this.changePath2D(),this}scale(t,e=t,n=0,i=0){return this.translate(n,i),this.context.scale(t,e),this.customContext&&this.customContext.scale(t,e),this.currentMatrix.scale(t,e),this.translate(-n,-i),this.changePath2D(),this}moveTo(t,e){return this.context.moveTo(t,e),this.customContext&&this.customContext.moveTo(t,e),this.currentPath2D.moveTo(t,e),this}lineTo(t,e){return this.context.lineTo(t,e),this.customContext&&this.customContext.lineTo(t,e),this.currentPath2D.lineTo(t,e),this}arc(t,e,n,i,r,o){return this.context.arc(t,e,n,i,r,o),this.customContext&&this.customContext.arc(t,e,n,i,r,o?-1:1),this.currentPath2D.arc(t,e,n,i,r,o),this}arcTo(t,e,n,i,r){return this.context.arcTo(t,e,n,i,r),this.customContext&&this.customContext.arcTo(t,e,n,i,r),this.currentPath2D.arcTo(t,e,n,i,r),this}ellipse(t,e,n,i,r,o,a,l){return this.context.ellipse(t,e,n,i,r,o,a,l),this.currentPath2D.ellipse(t,e,n,i,r,o,a,l),this}quadraticCurveTo(t,e,n,i){return this.context.quadraticCurveTo(t,e,n,i),this.customContext&&this.customContext.quadraticCurveTo(t,e,n,i),this.currentPath2D.quadraticCurveTo(t,e,n,i),this}bezierCurveTo(t,e,n,i,r,o){return this.context.bezierCurveTo(t,e,n,i,r,o),this.customContext&&this.customContext.bezierCurveTo(t,e,n,i,r,o),this.currentPath2D.bezierCurveTo(t,e,n,i,r,o),this}rect(t,e,n,i){return this.context.rect(t,e,n,i),this.customContext&&this.customContext.rect(t,e,n,i),this.currentPath2D.rect(t,e,n,i),this}createLinearGradient(t,e,n,i,r){const o=this.context.createLinearGradient(t,e,n,i);return r&&Object.entries(r).forEach(([a,l])=>{o.addColorStop(parseFloat(a),l)}),o}createRadialGradient(t,e,n,i,r,o,a){const l=this.context.createRadialGradient(t,e,n,i,r,o);return a&&Object.entries(a).forEach(([c,u])=>{l.addColorStop(parseFloat(c),u)}),l}drawImage(t,...e){if(e.length===0)this.context.drawImage(t,0,0);else if(e.length===2){const n=e[0],i=e[1];this.context.drawImage(t,n,i)}else if(e.length===4){const n=e[0],i=e[1],r=e[2],o=e[3];this.context.drawImage(t,n,i,r,o)}else if(e.length===8){const n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],l=e[5],c=e[6],u=e[7];this.context.drawImage(t,n,i,r,o,a,l,c,u)}else throw new Error("Invalid number of arguments passed to drawImage: "+e.length);return this.customContext&&this.customContext.drawImage(t,...e),this}getImageData(t=0,e=0,n=this.canvas.width,i=this.canvas.height,r){return this.context.getImageData(t,e,n,i,r)}putImageData(t,e=0,n=0){return this.context.putImageData(t,e,n)}createPattern(t,e){return this.context.createPattern(t,e)}toRawSVG(){if(this.customContext){const t=this.customContext.getSerializedSvg(!0),e=this.customContext.getSvg();return{raw:t,element:e}}else return{raw:"",element:null}}}class Pe extends ee{fromX;fromY;constructor(t){super(t),this.fromX=t?.fromX||0,this.fromY=t?.fromY||0}static fromSVGPathData(t,e){if(t.length<3)throw new Error("Line 参数个数错误");if(t[0].toUpperCase()!=="L")throw new Error("Line command 错误");return new Pe({x:t[1],y:t[2],fromX:e?.x,fromY:e?.y})}toSVGPathData(){return["L",this.x,this.y]}toCanvasContext(t){t.beginPath(),t.moveTo(this.fromX,this.fromY),t.lineTo(this.x,this.y)}getBoundingClientRect(){const t=Nn(this.fromX,this.fromY,this.x,this.y);if(t===0){const e=Math.min(this.x,this.fromX),n=Math.min(this.y,this.fromY),i=Math.max(this.x,this.fromX),r=Math.max(this.y,this.fromY);return new _i({x:e,y:n,width:i-e,height:r-n})}else{const e=Math.sin(t),n=Math.cos(t),i=n*this.fromX-e*this.fromY,r=n*this.x-e*this.y,o=n*this.fromY+e*this.fromX,a=n*this.y+e*this.x;return new _i({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)})}}interpolate(t){return{x:this.fromX+t*(this.x-this.fromX),y:this.fromY+t*(this.y-this.fromY)}}intersection(t){const e=this.fromX,n=this.fromY,i=t.x,r=t.y,o=this.x-e,a=t.fromX-i;if(!o&&!a)return null;const l=(this.y-n)/o,c=(t.fromY-r)/a;if(o){if(!a)return{x:i,y:l*(i-e)+n}}else return{x:e,y:c*(e-i)+r};const u=(-c*i+r+l*e-n)/(l-c),h=l*(u-e)+n;return isNaN(u)||isNaN(h)?null:{x:u,y:h}}}class Pa extends Pe{c1x;c1y;c2x;c2y;constructor(t){super(t),this.c1x=t.c1x,this.c1y=t.c1y,this.c2x=t.c2x,this.c2y=t.c2y}static fromSVGPathData(t,e){if(t.length<7)throw new Error("CubicBezier 参数个数错误");if(t[0].toUpperCase()!=="C")throw new Error("CubicBezier command 错误");return new Pa({c1x:t[1],c1y:t[2],c2x:t[3],c2y:t[4],x:t[5],y:t[6],fromX:e?.x,fromY:e?.y})}toSVGPathData(){return["C",this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y]}toCanvasContext(t){t.beginPath(),t.moveTo(this.fromX,this.fromY),t.bezierCurveTo(this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y)}getBoundingClientRect(){const t=te.curveDim(this.fromX,this.fromY,this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y);return new _i({x:t.min.x,y:t.min.y,width:t.max.x-t.min.x,height:t.max.y-t.min.y})}interpolate(t){return{x:Math.pow(1-t,3)*this.fromX+3*Math.pow(1-t,2)*t*this.c1x+3*Math.pow(1-t,1)*Math.pow(t,2)*this.c2x+Math.pow(t,3)*this.x,y:Math.pow(1-t,3)*this.fromY+3*Math.pow(1-t,2)*t*this.c1y+3*Math.pow(1-t,1)*Math.pow(t,2)*this.c2y+Math.pow(t,3)*this.y}}length(t=1){return te.bezlen(this.fromX,this.fromY,this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y,t)}getTatLen(t){const e=this.fromX,n=this.fromY,i=this.c1x,r=this.c1y,o=this.c2x,a=this.c2y,l=this.x,c=this.y;if(t<0||te.bezlen(e,n,i,r,o,a,l,c)<t)return 0;let u=1,h=u/2,f=u-h,d,m=.01;for(d=te.bezlen(e,n,i,r,o,a,l,c,f);Math.abs(d-t)>m;)h/=2,f+=(d<t?1:-1)*h,d=te.bezlen(e,n,i,r,o,a,l,c,f);return f}getPointAtSegmentLength(t){const e=this.getTatLen(t),n=this.fromX,i=this.fromY,r=this.c1x,o=this.c1y,a=this.c2x,l=this.c2y,c=this.x,u=this.y;let h=1-e,f=Math.pow(h,3),d=Math.pow(h,2),m=e*e,y=m*e,_=f*n+d*3*e*r+h*3*e*e*a+y*c,k=f*i+d*3*e*o+h*3*e*e*l+y*u,I=n+2*e*(r-n)+m*(a-2*r+n),M=i+2*e*(o-i)+m*(l-2*o+i),E=r+2*e*(a-r)+m*(c-2*a+r),tt=o+2*e*(l-o)+m*(u-2*l+o),L=h*n+e*r,W=h*i+e*o,vt=h*a+e*c,bt=h*l+e*u,Ct=90-Math.atan2(I-E,M-tt)*180/Math.PI;return{x:_,y:k,m:{x:I,y:M},n:{x:E,y:tt},start:{x:L,y:W},end:{x:vt,y:bt},alpha:Ct}}}const Ks=Pa;class xn extends Pe{cx;cy;isLineThrough;constructor(t){super(t),this.cx=t.cx,this.cy=t.cy,this.isLineThrough=typeof t.isLineThrough=="boolean"?t.isLineThrough:!0}static fromSVGPathData(t,e){if(t.length<5)throw new Error("QuadraticBezier 参数个数错误");if(t[0].toUpperCase()!=="Q")throw new Error("QuadraticBezier command 错误");return new xn({cx:t[1],cy:t[2],x:t[3],y:t[4],fromX:e?.x,fromY:e?.y})}toSVGPathData(){if(this.isLineThrough){const t=this.cx*2-(this.fromX+this.x)/2,e=this.cy*2-(this.fromY+this.y)/2;return["Q",t,e,this.x,this.y]}else return["Q",this.cx,this.cy,this.x,this.y]}toCanvasContext(t){if(t.beginPath(),t.moveTo(this.fromX,this.fromY),this.isLineThrough){const e=this.cx*2-(this.fromX+this.x)/2,n=this.cy*2-(this.fromY+this.y)/2;t.quadraticCurveTo(e,n,this.x,this.y)}else t.quadraticCurveTo(this.cx,this.cy,this.x,this.y)}interpolate(t){return{x:(1-t)*(1-t)*this.fromX+2*(1-t)*t*this.cx+t*t*this.x,y:(1-t)*(1-t)*this.fromY+2*(1-t)*t*this.cy+t*t*this.y}}}const $g=xn;class Ia extends Pe{rx;ry;xAxisRotate;largeArcFlag;sweepFlag;constructor(t){super(t),this.rx=t.rx,this.ry=t.ry,this.xAxisRotate=t?.xAxisRotate??0,this.largeArcFlag=t?.largeArcFlag??1,this.sweepFlag=t?.sweepFlag??1}static fromSVGPathData(t,e){if(t.length<8)throw new Error("Arc 参数个数错误");if(t[0].toUpperCase()!=="A")throw new Error("Arc command 错误");return new Ia({rx:t[1],ry:t[2],xAxisRotate:t[3],largeArcFlag:t[4],sweepFlag:t[5],x:t[6],y:t[7],fromX:e?.x,fromY:e?.y})}toSVGPathData(){return["A",this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag,this.x,this.y]}toCanvasContext(t){t.beginPath();const[e,n,i,r,o,a,l]=this.convertSVGToCanvas(this.fromX,this.fromY,this.x,this.y,this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag);t.ellipse(e-this.x,n-this.y,i,r,o,a,l,!this.sweepFlag)}convertSVGToCanvas(t,e,n,i,r,o,a,l,c){const u=a/180*Math.PI,h=(t-n)/2,f=(e-i)/2,d=Math.cos(u)*h+Math.sin(u)*f,m=-Math.sin(u)*h+Math.cos(u)*f,y=d*d/(r*r)+m*m/(o*o);if(y>1){const $t=Math.sqrt(y);throw r=$t*r,o=$t*o,new Error(`Radii are too small to build an arc. Correcting them to ${r}/${o}.`)}const _=Math.sqrt((r*r*o*o-r*r*m*m-o*o*d*d)/(r*r*m*m+o*o*d*d)),k=l!=c?1:-1,I=k*_*r*m/o,M=k*_*-o*d/r,E=(t+n)/2,tt=(e+i)/2,L=Math.cos(u)*I-Math.sin(u)*M+E,W=Math.sin(u)*I+Math.cos(u)*M+tt,vt=($t,Vt,re,oe)=>($t*oe>=Vt*re?1:-1)*Math.acos(($t*re+Vt*oe)/(Math.sqrt($t*$t+Vt*Vt)*Math.sqrt(re*re+oe*oe))),bt=vt(1,0,t-L,e-W)-u,Ct=vt(t-L,e-W,n-L,i-W);return[L,W,r,o,u,bt,bt+Ct]}}const Da=Ia;class gt extends ee{startPathX=0;startPathY=0;prevPathX=0;prevPathY=0;normalizedLines=[];constructor(t){super(t),this.prevPathX=this.startPathX=this.x,this.prevPathY=this.startPathY=this.y}appendLine(t){if(t instanceof Da){Hu(this.prevPathX,this.prevPathY,t.x,t.y,t.largeArcFlag,t.sweepFlag,t.rx,t.ry,t.xAxisRotate).forEach(c=>{const[u,h,f,d,m,y,_,k]=c;this.normalizedLines.push(new Ks({c1x:f,c1y:d,c2x:m,c2y:y,x:_,y:k,fromX:this.prevPathX,fromY:this.prevPathY})),this.prevPathX=_,this.prevPathY=k});return}let e,n,i,r,o,a;t instanceof Ks?(e=t.c1x,n=t.c1y,i=t.c2x,r=t.c2y,o=t.x,a=t.y):t instanceof $g?[e,n,i,r,o,a]=va(this.prevPathX,this.prevPathY,t.cx,t.cy,t.x,t.y):[e,n,i,r,o,a]=vi(this.prevPathX,this.prevPathY,t.x,t.y),this.normalizedLines.push(new Ks({c1x:e,c1y:n,c2x:i,c2y:r,x:o,y:a,fromX:this.prevPathX,fromY:this.prevPathY})),this.prevPathX=o,this.prevPathY=a}static fromSVGPathD(t="M0,0",e){const n=new gt(e);return n.updateFromSVGPathD(t),n}static fromSVGPathData(t,e){const n=new gt(e);return n.updateFromSVGPathData(t),n}static fromShape(t,e){const n=new gt(Object.assign({attrs:{...t.attrs}},e));return n.updateFromShape(t),n}updateFromShape(t){this.degree=t.degree,this.scalexOnOrigin=t.scalexOnOrigin,this.scaleyOnOrigin=t.scaleyOnOrigin,this.skewxDegreeOnOrigin=t.skewxDegreeOnOrigin,this.skewyDegreeOnOrigin=t.skewyDegreeOnOrigin,this.updateFromSVGPathD(t.toSVGPathD())}updateFromSVGPathD(t){te.isSVGPath(t)&&this.updateFromSVGPathData(te.parseSVGPath(t))}updateFromSVGPathData(t){this.normalizedLines=[];const e=te.normalizeSVGPath(te.absolutizeSVGPath(t));for(let n=0,i=e.length;n<i;n++){const r=e[n];if(r[0]=="M"){this.prevPathX=this.startPathX=r[1],this.prevPathY=this.startPathY=r[2];continue}this.appendLine(new Ks({c1x:r[1],c1y:r[2],c2x:r[3],c2y:r[4],x:r[5],y:r[6]}))}this.prevDegree=0,this.prevScalexOnOrigin=1,this.prevScaleyOnOrigin=1,this.prevSkewxDegreeOnOrigin=0,this.prevSkewyDegreeOnOrigin=0,this.updateTransform()}toSVGPathData(t=!1){let e=[];e.push(["M",this.startPathX,this.startPathY]);for(let n=0,i=this.normalizedLines.length;n<i;n++)e.push(this.normalizedLines[n].toSVGPathData());return t&&(e=te.relativeSVGPath(e)),e}toCanvasContext(t){t.beginPath(),t.moveTo(this.startPathX,this.startPathY),this.normalizedLines.forEach(e=>{const[n,...i]=e.toSVGPathData();t.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5])})}static toCanvasContextUsePath2D(t,e,n,i){t.beginPath();const r=new Path2D(e),o=new Path2D;o.addPath(r,new DOMMatrix(n));const a=new Path2D;return a.addPath(o,og(i)),t.fill(a),a}updateTransform(){if((this.x!=this.prevX||this.y!=this.prevY)&&this.translate(this.x-this.prevX,this.y-this.prevY),this.scalexOnOrigin!=this.prevScalexOnOrigin||this.scaleyOnOrigin!=this.prevScaleyOnOrigin){const t=this.getBoundingClientRect();this.scale(this.scalexOnOrigin/this.prevScalexOnOrigin,this.scaleyOnOrigin/this.prevScaleyOnOrigin,this.renderGroup&&!this.transformBaseOnSelfInRenderGroup?this.renderGroup.x:t.x+t.width/2,this.renderGroup&&!this.transformBaseOnSelfInRenderGroup?this.renderGroup.y:t.y+t.height/2)}if(this.degree!=this.prevDegree){const t=this.getBoundingClientRect();this.rotate(this.degree-this.prevDegree,this.renderGroup&&!this.transformBaseOnSelfInRenderGroup?this.renderGroup.x:t.x+t.width/2,this.renderGroup&&!this.transformBaseOnSelfInRenderGroup?this.renderGroup.y:t.y+t.height/2)}this.skewxDegreeOnOrigin!=this.prevSkewxDegreeOnOrigin&&this.skewx(this.skewxDegreeOnOrigin-this.prevSkewxDegreeOnOrigin),this.skewyDegreeOnOrigin!=this.prevSkewyDegreeOnOrigin&&this.skewy(this.skewyDegreeOnOrigin-this.prevSkewyDegreeOnOrigin)}transform(t){return{x:this.startPathX,y:this.startPathY}=t.applyToPoint(this.startPathX,this.startPathY),{x:this.prevPathX,y:this.prevPathY}=t.applyToPoint(this.prevPathX,this.prevPathY),this.normalizedLines.forEach(e=>{({x:e.fromX,y:e.fromY}=t.applyToPoint(e.fromX,e.fromY)),{x:e.c1x,y:e.c1y}=t.applyToPoint(e.c1x,e.c1y),{x:e.c2x,y:e.c2y}=t.applyToPoint(e.c2x,e.c2y),{x:e.x,y:e.y}=t.applyToPoint(e.x,e.y)}),this}translate(t,e){const n=new je().translate(t,e);return this.transform(n),this.prevX=this.x,this.prevY=this.y,this}rotate(t,e=0,n=0){const i=new je().rotate(t,e,n);return this.transform(i),this.prevDegree=this.degree,this}scale(t,e=t,n=0,i=0){const r=new je().scale(t,e,n,i);return this.transform(r),this.prevScalexOnOrigin=this.scalexOnOrigin,this.prevScaleyOnOrigin=this.scaleyOnOrigin,this}skewx(t){const e=new je().skew(t,0);return this.transform(e),this.prevSkewxDegreeOnOrigin=this.skewxDegreeOnOrigin,this}skewy(t){const e=new je().skew(0,t);return this.transform(e),this.prevSkewyDegreeOnOrigin=this.skewyDegreeOnOrigin,this}trim(){const t=this.getBoundingClientRect();return this.translate(-t.x,-t.y),this}getBoundingClientRect(){let t=0,e=0,n=[],i=[];t=this.startPathX,e=this.startPathY,n.push(t),i.push(e),this.normalizedLines.forEach(c=>{const u=te.curveDim(t,e,c.c1x,c.c1y,c.c2x,c.c2y,c.x,c.y);n=n.concat(u.min.x,u.max.x),i=i.concat(u.min.y,u.max.y),t=c.x,e=c.y});const r=Math.min.apply(0,n),o=Math.min.apply(0,i),a=Math.max.apply(0,n),l=Math.max.apply(0,i);return new _i({x:r,y:o,width:a-r,height:l-o})}getTotalLength(){return this.normalizedLines.reduce((t,e)=>t+=e.length(),0)}getPointAtLength(t){let e=0;const n=this.normalizedLines.length;for(let i=0;i<n;i++){const r=this.normalizedLines[i],o=r.length();if(e+o>=t)return r.getPointAtSegmentLength(t-e);e+=o}return this.normalizedLines[n-1].getPointAtSegmentLength(1)}interpolate(t){if(this.normalizedLines.length===0)return{x:this.startPathX,y:this.startPathX};if(this.normalizedLines.length===1)return this.normalizedLines[0].interpolate(t);{let e=t*this.normalizedLines.length,n=this.normalizedLines[0];if(e--,e>1)for(let i=1,r=this.normalizedLines.length;i<r&&(n=this.normalizedLines[i],e>1);i++)e-=1;return n.interpolate(e)}}getSubpathsAtLength(t,e,n){let i=null,r=0;const o=new gt;o.prevPathX=o.startPathX=t.x,o.prevPathY=o.startPathY=t.y;for(let a=0,l=t.normalizedLines.length;a<l;a++){const c=t.normalizedLines[a],u=c.length();if(r+u>e&&!i){const h=c.getPointAtSegmentLength(e-r);if(o.appendLine(new Ks({c1x:h.start.x,c1y:h.start.y,c2x:h.m.x,c2y:h.m.y,x:h.x,y:h.y})),n)return o;i=o,o.prevPathX=h.x,o.prevPathY=h.y,o.appendLine(new Ks({c1x:h.n.x,c1y:h.n.y,c2x:h.end.x,c2y:h.end.y,x:c.x,y:c.y})),r+=u;continue}r+=u,o.appendLine(c)}return o}getSubpath(t,e){if(this.getTotalLength()-e<1e-6)return this.getSubpathsAtLength(this,t);{const n=this.getSubpathsAtLength(this,e,1);return t?this.getSubpathsAtLength(n,t):n}}trailPath(t,e=0){const n=this.getTotalLength();return t.updateFromSVGPathD(this.getSubpath(0,e*n).toSVGPathD()),this.getPointAtLength(e*n)}closestPoint(t,e){const n=this.getTotalLength();let i={x:t,y:e},r=0,o=1/0,a=8;for(let c=0;c<=n;c+=a){let u=this.getPointAtLength(c),h=ya(u.x,u.y,t,e);h<o&&(i=u,r=c,o=h)}for(a/=2;a>.5;){let c=r-a,u=this.getPointAtLength(c),h=ya(u.x,u.y,t,e),f=r+a,d=this.getPointAtLength(f),m=ya(d.x,d.y,t,e);c>=0&&h<o?(i=u,r=c,o=h):f<=n&&m<o?(i=d,r=f,o=m):a/=2}const l=this.getPointAtLength(r+(r===n?-.1:.1));return{point:i,rotation:r>=n?Nn(l.x,l.y,i.x,i.y):Nn(i.x,i.y,l.x,l.y),distance:Math.sqrt(o)}}isPointInPath(t,e,n){if(n instanceof Oa)return n.isPointInPath(new Path2D(this.toSVGPathD()),t,e);let i;try{i=new SVGPoint(t,e)}catch{i=n.createSVGPoint(),i.x=t,i.y=e}return this.el instanceof SVGGeometryElement?this.el.isPointInFill(i):!1}isPointInStroke(t,e,n){if(n instanceof Oa)return n.isPointInStroke(new Path2D(this.toSVGPathD()),t,e);let i;try{i=new SVGPoint(t,e)}catch{i=n.createSVGPoint(),i.x=t,i.y=e}return this.el instanceof SVGGeometryElement?this.el.isPointInStroke(i):!1}strokeDashToTween(t){const e=+this.getTotalLength().toFixed(0);this.setAttr({strokeDasharray:`${e} ${e}`,strokeDashoffset:`${e}`});const n=t?.onUpdate;return ye.toTween({offset:e},{offset:0},Object.assign(t||{},{onUpdate:(i,r)=>{this.setAttr("strokeDashoffset",""+Ze(i.offset,2)),n?.(i,r)}}))}get polymorphPoints(){return[this.startPathX,this.startPathY].concat(this.normalizedLines.reduce((t,e)=>t.concat([e.c1x,e.c1y,e.c2x,e.c2y,e.x,e.y]),[]))}static fromPolymorphPoints(t){const e=new gt({x:t[0],y:t[1]});for(let n=2;n+5<t.length;n+=6)e.appendLine(new Ks({c1x:t[n],c1y:t[n+1],c2x:t[n+2],c2y:t[n+3],x:t[n+4],y:t[n+5]}));return e}perimeterPoints(){const t=this.polymorphPoints,e=t.length;let n=t[e-2],i=t[e-1],r=0;for(let o=0;o<e;o+=6)r+=ga(t[o],t[o+1],n,i),n=t[o],i=t[o+1];return Math.floor(r)}fillPathD(t){const e=this.polymorphPoints,n=e.length;let i=t-n;const r=Math.ceil(t/n),o=[];o.push(["M",e[0],e[1]]);let a=2;for(;a+5<=n-1;){const l=e[a++],c=e[a++],u=e[a++],h=e[a++],f=e[a++],d=e[a++];o.push(["C",l,c,u,h,f,d]);let m=0;for(;m<r&&i>0;)o.push(["C",f,d,f,d,f,d]),i-=6,m++}return gt.fromSVGPathData(o)}static mixPoints(t,e,n){const i=t.length,r=new Array(i);for(let o=0;o<i;o++)r[o]=Ze(t[o]+(e[o]-t[o])*n,6);return r}static getPathInterpolator(t,e){return n=>Math.abs(n-0)<Number.EPSILON?t.toSVGPathD():Math.abs(n-1)<Number.EPSILON?e.toSVGPathD():gt.fromPolymorphPoints(this.mixPoints(t.polymorphPoints,e.polymorphPoints,n)).toSVGPathD()}static polymorph(t){if(!t.length)throw new Error("paths 为空!");const e=t.length-1,n=new Array(e);for(let r=0;r<e;r++){const o=Math.max(t[r].polymorphPoints.length,t[r+1].polymorphPoints.length);n[r]=this.getPathInterpolator(t[r].fillPathD(o),t[r+1].fillPathD(o))}const i=gt.fromSVGPathD(n[0](0));return r=>{const o=Ze(e*r,6),a=Math.min(Math.floor(o),e-1),l=Ze(o-a,6);i.updateFromSVGPathD(n[a](l));const c=t[a].getAttr("fill","none"),u=t[a+1].getAttr("fill","none");typeof c=="string"&&typeof u=="string"&&i.setAttr("fill",Qu(c,u,l));const h=t[a].getAttr("stroke","none"),f=t[a+1].getAttr("stroke","none");return typeof h=="string"&&typeof f=="string"&&i.setAttr("stroke",Qu(h,f,l)),i}}static generateRosetta(t,e,n,i,r){if(r==0)throw new Error("no dividing by zero, please");const o=new gt({x:t,y:e}),a=360/r;for(let l=0;l<r;l+=1){const c=a*l*Math.PI/180,u=t+2*n*Math.cos(c),h=e+2*n*Math.sin(c);o.appendLine(new Da({x:u,y:h,rx:n,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1})),o.appendLine(new Da({x:t,y:e,rx:n,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1}))}return o}}class ys extends xg{svgWidth=0;svgHeight=0;width=0;height=0;shapes=[];constructor(t){if(super(t),!t?.svg)return;const e=new Dg(t.svg).parse();for(let n=0,i=e.length;n<i;n++){const r=e[n];if(r.type=="viewbox"&&r.width&&r.height){if(this.svgWidth=parseFloat(r.width),this.svgHeight=parseFloat(r.height),t.width){const u=this.svgWidth/this.svgHeight;this.width=t.width,this.height=this.width/u}else this.width=this.svgWidth,this.height=this.svgHeight;continue}if(r.type!="path"||!bn.isSVGPath(r.path))continue;const o={};for(const u in r)u==="type"||u==="path"||u==="transform"||(o[u]=r[u]);const a=bn.absolutizeSVGPath(bn.parseSVGPath(r.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=gt.fromSVGPathData(u,t),f=qu(r.transform??"");h.transform(f),h.attrs={...h.attrs,...o,...t.attrs},this.width&&this.svgWidth&&h.scale(this.width/this.svgWidth),this.addShape(h)})}}addShape(t,e){(Array.isArray(t)?t:[t]).forEach(n=>{if(n instanceof gt)super.addShape(n);else{const i=gt.fromShape(n,{...e});i&&super.addShape(i)}})}static fromShape(t,e){const n=new ys;return n.addShape(t,e),n}strokeDashToTween(t){const e=t?.type||"parallel",n=this.shapes.map(i=>i.strokeDashToTween({...t}).tween);switch(e){case"sequence":return n.forEach((i,r)=>{r>0&&n[r-1].chain(i)}),{startAuto:ye.toTweenGroup(n[0],t)};case"parallel":default:return{startAuto:ye.toTweenGroup(n,t)}}}sortPathD(){this.shapes=this.shapes.map(t=>({path:t,perimeter:t.perimeterPoints()})).sort((t,e)=>e.perimeter-t.perimeter).map(t=>t.path)}fillPathDGroup(t){const e=t.shapes.length,n=this.shapes.length;if(e<n)return t.fillPathDGroup(this);for(let i=n;i<e;i++){const r=t.shapes[i].polymorphPoints,o=r[0],a=r[1],l=new gt({x:o,y:a,attrs:{...t.shapes[i].attrs}});for(let c=2;c+5<r.length;c+=6)l.appendLine(new Ks({c1x:o,c1y:a,c2x:o,c2y:a,x:o,y:a}));this.addShape(l)}}static polymorph(t){if(!t.length)throw new Error("groups 为空!");let e=-1,n=0;t.forEach((a,l)=>{a.sortPathD(),n<a.shapes.length&&(n=a.shapes.length,e=l)}),t.forEach(a=>a.fillPathDGroup(t[e]));const i=[];t.forEach((a,l)=>{a.shapes.forEach((c,u)=>{i[u]=i[u]||[],i[u][l]=c})});const r=[];i.forEach(a=>r.push(gt.polymorph(a)));const o=new ys;return r.forEach(a=>{o.addShape(a(0))}),a=>(r.forEach(l=>{l(a)}),o)}}class Lg extends ee{rx;ry;constructor(t){super(t),this.rx=t?.rx||0,this.ry=t?.ry||0}getBoundingClientRect(){return new ge({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(t){t.beginPath(),t.ellipse(0,0,this.rx,this.ry,0,0,2*Math.PI,!0),t.closePath()}}class Ln extends ee{points;constructor(t=[]){if(!t.length)throw new Error("points can't be null");super(t[0]),this.points=t}toSVGPathData(){const t=this.points.length;if(t<3)throw new Error("points length must >= 3");const e=[];e.push(["M",this.points[0].x,this.points[0].y]);for(let n=0;n<=t-1;n++)e.push(["L",this.points[n].x,this.points[n].y]);return e.push(["L",this.points[0].x,this.points[0].y]),e}toCanvasContext(t){const e=this.points.length;if(e<3)throw new Error("points length must >= 3");t.beginPath(),t.moveTo(0,0);for(let n=0;n<=e-1;n++)t.lineTo(this.points[n].x-this.points[0].x,this.points[n].y-this.points[0].y);t.lineTo(0,0)}get length(){return this.points.length}addPoint(t){this.points.push(t)}getPoint(t){return this.points[t]}isContainPoint(t,e){const n=this.length;let i=!1;const r=2e-10;for(let o=0,a=n-1;o<n;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===t&&c===e||u===t&&h===e||e===c&&e===h)return!0;if(e>=c&&e<h||e<c&&e>=h){const f=(u-l)/(h-c),d=l+f*(e-c);if(d===t||Math.abs(d-t)<r)return!0;d>t&&(i=!i)}}return i}[Symbol.iterator](){let t=0;return{next:()=>({value:t>=this.length-1?this.points[++t]:void 0,done:t>=this.length})}}static generatePoints(t,e,n,i){const r=[];for(let o=0;o<i;o++){const a=o/i*2*Math.PI,{dx:l,dy:c}=Ms(a,n);r.push(new Oe({x:t+l,y:e+c}))}return new Ln(r)}}class Ar extends ee{text;width=0;height=0;constructor(t){super(t),this.text=t.text,this.setAttr({fontSize:"10px",fontFamily:'system-ui, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif',emojiFontFamily:'"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif',fill:"#666666",stroke:"none","alignment-baseline":"middle",textAnchor:"start",...this.attrs});const e=Ws(this.getAttr("fontSize"),10).number,n=Ws(this.getAttr("fontWeight"),400).number,i=U.measureText(this.text,e,n);this.width=i.width,this.height=i.height,this.frameUpdate()}frameUpdate(){super.frameUpdate()}getBoundingClientRect(){return null}toSVGPathData(){return[]}toCanvasContext(t){t.fillText(this.text,0,0)}}class Rr extends ee{constructor(t){super(t)}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(t){t.beginPath(),t.moveTo(-50,-25),t.lineTo(0,-25),t.lineTo(0,-50),t.lineTo(50,0),t.lineTo(0,50),t.lineTo(0,25),t.lineTo(-50,25),t.lineTo(-50,-25),t.closePath()}}class Ma extends ee{constructor(t){super(t)}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(t){t.beginPath(),t.moveTo(4,24),t.lineTo(8,16),t.lineTo(14,10),t.lineTo(15,0),t.lineTo(9,-10),t.lineTo(2,0),t.lineTo(-2,0),t.lineTo(-9,-10),t.lineTo(-15,0),t.lineTo(-14,10),t.lineTo(-8,16),t.lineTo(-4,24),t.closePath()}}class Vg extends gt{constructor(t){super(t),this.rx=t?.rx??10,this.ry=t?.ry??10,this.updateFromSVGPathData([["M",this.x,this.y],["l",this.rx*2.4,-this.ry*3.14],["a",this.rx/2,this.ry/2,0,0,0,-this.rx*2.4,-this.ry*1.5],["a",this.rx/2,this.ry/2,0,0,0,-this.rx*2.4,this.ry*1.5],["l",this.rx*2.4,this.ry*3.14],["z"]])}}class Fg extends gt{constructor(t){super(t),this.rx=t?.rx??50,this.ry=t?.ry??50,this.updateFromSVGPathData([["M",this.x,this.y+this.ry*.3],["C",this.x,this.y,this.x-this.rx/2,this.y,this.x-this.rx/2,this.y+this.ry*.3],["C",this.x-this.rx/2,this.y+(this.ry+this.ry*.3)/2,this.x,this.y+(this.ry+this.ry*.3)/1.4,this.x,this.y+this.ry],["C",this.x,this.y+(this.ry+this.ry*.3)/1.8,this.x+this.rx/2,this.y+(this.ry+this.ry*.3)/2,this.x+this.rx/2,this.y+this.ry*.3],["C",this.x+this.rx/2,this.y,this.x,this.y,this.x,this.y+this.ry*.3],["z"]])}}class nh extends gt{constructor(t){super(t),this.r=t?.r??20;let e="M"+this.x+","+(this.y-this.r);for(let n=0;n<6;n+=1){const i=270+n*144,r=this.x+this.r*Math.cos(Dt(i)),o=this.y+this.r*Math.sin(Dt(i));e+="L"+r+","+o}this.updateFromSVGPathD(e)}}class Gg extends gt{constructor(t){super(t),this.updateFromSVGPathData([["M",this.x,this.y],["C",this.x+15,this.y,this.x+15,this.y-40,this.x+5,this.y+-30],["L",this.x,this.y],["C",this.x-15,this.y,this.x-15,this.y-40,this.x-5,this.y-30],["L",this.x,this.y],["a",15,15,0,1,1,0,30],["a",15,15,0,1,1,0,-30]])}}class zg extends gt{constructor(t){super(t),this.updateFromSVGPathD(`M${this.x} ${this.y}m5.068 9.267-3.08-.77a.512.512 0 0 1 0-.994l3.08-.77a2.289 2.289 0 0 0 1.665-1.665l.77-3.08a.512.512 0 0 1 .994 0l.77 3.08c.205.82.845 1.46 1.665 1.665l3.08.77a.512.512 0 0 1 0 .994l-3.08.77a2.29 2.29 0 0 0-1.665 1.665l-.77 3.08a.512.512 0 0 1-.994 0l-.77-3.08a2.289 2.289 0 0 0-1.665-1.665Z`)}}class Bg extends ys{constructor(t){super(t),this.addShape(gt.fromSVGPathData([["M",this.x,this.y],["L",this.x,this.y-140-Math.random()*20]],{renderGroup:this.renderGroup,...t})),this.addShape(gt.fromSVGPathData([["M",this.x,this.y-30-Math.random()*30],["L",this.x+Math.random()*80-40,this.y-100-Math.random()*40]],{renderGroup:this.renderGroup,...t})),this.addShape(gt.fromSVGPathData([["M",this.x,this.y-60-Math.random()*40],["L",this.x+Math.random()*60-30,this.y-110-Math.random()*20]],{renderGroup:this.renderGroup,...t}))}}class jg extends os{width=0;height=0;bg;padding;offset;constructor(t){super(t),this.text=t.text,this.bg=t.bg||"rgba(0,0,0,0.5)",this.padding=t.padding||4,this.offset=t.offset||20,this.textShape=new Ar({...t,x:this.x+this.offset,y:this.y+this.offset,text:this.text,attrs:{...this.attrs,fill:mg(this.bg,!0),textAnchor:"start"}}),this.bgShape=new ge({...t,x:this.textShape.x-this.padding,y:this.textShape.y-this.textShape.height/2-this.padding,width:this.textShape.width+this.padding*2,height:this.textShape.height+this.padding*2,attrs:{...this.attrs,fill:this.bg}}),this.addShape([this.bgShape,this.textShape])}frameUpdate(){super.frameUpdate(),this.textShape.x=this.x+this.offset,this.textShape.y=this.y+this.offset,this.textShape.isShow=this.isShow,this.bgShape.x=this.textShape.x-this.padding,this.bgShape.y=this.textShape.y-this.textShape.height/2-this.padding,this.bgShape.isShow=this.isShow}getBoundingClientRect(){return null}toSVGPathData(){return[]}toCanvasContext(t){}}class Yg extends os{radius;expandRaidus;startDegree;endDegree;text="";defaultShowText;tip="";p1=new Oe;p1Offset=10;p2=new Oe;p2Offset=40;p3=new Oe;p3Offset=10;p4=new Oe;p4Offset=10;direction=1;constructor(t){super(t),this.radius=t.radius,this.expandRaidus=t.expandRaidus??20,this.startDegree=t.startDegree,this.endDegree=t.endDegree,this.text=t.text||"",this.defaultShowText=typeof t?.defaultShowText=="boolean"?t.defaultShowText:!!this.text,this.tip=t.tip||"";const e=Object.assign({...this.attrs},{fill:"none"});this.line12=new Pe({fromX:this.p1.x,fromY:this.p1.y,x:this.p2.x,y:this.p2.y,attrs:{...e},isShow:this.defaultShowText}),this.line23=new Pe({fromX:this.p2.x,fromY:this.p2.y,x:this.p3.x,y:this.p3.y,attrs:{...e},isShow:this.defaultShowText}),this.textShape=new Ar({x:this.p4.x,y:this.p4.y,text:this.text,attrs:{stroke:e.stroke,textAnchor:this.direction==1?"start":"end"},isShow:this.defaultShowText}),this.tipShape=new jg({x:0,y:0,text:this.tip,isShow:!1}),this.sector=new Hg({x:this.x,y:this.y,radius:this.radius,expandRaidus:this.expandRaidus,startDegree:this.startDegree,endDegree:this.endDegree,attrs:Object.assign({...this.attrs},{strokeWidth:"0"})}),this.addShape(this.sector),this.text&&(this.addShape(this.line12),this.addShape(this.line23),this.addShape(this.textShape)),this.tip&&this.addShape(this.tipShape),this.frameUpdate()}frameUpdate(){this.text&&!this.defaultShowText&&(this.line12.isShow=this.sector.isMouseIn,this.line23.isShow=this.sector.isMouseIn,this.textShape.isShow=this.sector.isMouseIn);const t=this.startDegree+(this.endDegree-this.startDegree)/2,{dx:e,dy:n}=Ms(Dt(t),this.sector.radius+this.p1Offset);this.p1.x=this.x+e,this.p1.y=this.y+n;const{dx:i,dy:r}=Ms(Dt(t),this.sector.radius+this.p1Offset+this.p2Offset);this.p2.x=this.x+i,this.p2.y=this.y+r,this.line12.fromX=this.p1.x,this.line12.fromY=this.p1.y,this.line12.x=this.p2.x,this.line12.y=this.p2.y,this.direction=this.p1.x>this.x?1:-1,this.p3.x=this.p2.x+this.direction*this.p3Offset,this.p3.y=this.p2.y,this.p4.x=this.p3.x+this.direction*this.p4Offset,this.p4.y=this.p3.y,this.line23.fromX=this.p2.x,this.line23.fromY=this.p2.y,this.line23.x=this.p3.x,this.line23.y=this.p3.y,this.textShape.x=this.p4.x,this.textShape.y=this.p4.y,this.textShape.setAttr("textAnchor",this.direction==1?"start":"end"),this.sector.isMouseIn?(this.tipShape.isShow=!0,this.tipShape.x=this.sector.mouseX,this.tipShape.y=this.sector.mouseY):(this.tipShape.isShow=!1,this.tipShape.x=this.sector.mouseX,this.tipShape.y=this.sector.mouseY)}}class Hg extends ee{radius;realRadius;expandRaidus;startDegree;endDegree;vr;ar;bounce;dur;status;constructor(t){super(t),this.radius=0,this.realRadius=t.radius,this.expandRaidus=t.expandRaidus??20,this.startDegree=t.startDegree,this.endDegree=t.endDegree,this.vr=0,this.ar=.03,this.bounce=.6,this.dur=8.333333333333334,this.status=0}frameUpdate(){this.status==0&&this.radius<this.realRadius?(this.expand(this.realRadius),this.radius>=this.realRadius&&(this.status=1)):this.isMouseIn?this.expand(this.realRadius+this.expandRaidus):this.shrink(this.realRadius)}expand(t){this.vr+=this.ar,this.radius+=this.vr*this.dur,this.radius>t&&(this.radius=t,this.vr*=-this.bounce)}shrink(t){this.vr-=this.ar,this.radius+=this.vr*this.dur,this.radius<t&&(this.radius=t,this.vr*=-this.bounce)}toSVGPathData(){const{dx:t,dy:e}=Ms(Dt(this.startDegree),this.radius),{dx:n,dy:i}=Ms(Dt(this.endDegree),this.radius);return[["M",this.x,this.y],["l",t,e],["A",this.radius,this.radius,0,Math.abs(this.endDegree-this.startDegree)>=180?1:0,1,this.x+n,this.y+i],["z"]]}toCanvasContext(t){t.beginPath(),t.moveTo(0,0),t.arc(0,0,this.radius,Dt(this.startDegree),Dt(this.endDegree),!1),t.closePath()}containPoint(t,e){const n=ga(this.x,this.y,t,e),i=Be(Nn(this.x,this.y,t,e));return n<this.radius&&i>this.startDegree&&i<this.endDegree}}class Xg extends os{showFlame;constructor(t){super(t),this.showFlame=typeof t?.showFlame=="boolean"?t.showFlame:!1,this.ship=gt.fromSVGPathData([["M",this.x+10,this.y],["L",this.x-10,this.y+10],["L",this.x-5,this.y],["L",this.x-10,this.y-10],["L",this.x+10,this.y],["Z"]],{renderGroup:this.renderGroup,...t}),this.flame=gt.fromSVGPathData([["M",this.x-7.5,this.y-5],["L",this.x-15,this.y],["L",this.x-7.5,this.y+5],["Z"]],{renderGroup:this.renderGroup,...t,isShow:this.showFlame}),this.addShape(this.ship),this.addShape(this.flame),this.frameUpdate()}frameUpdate(){this.flame.isShow=this.showFlame}}let ih=class extends os{min;max;step;value;percent;barWidth;barHeight;barColor;handleSize;handleColor;realBarWidth;constructor(t){super(t),this.min=t?.min||0,this.max=t?.max||100,this.step=t?.step||1,this.stepNumber=Lm(this.min,this.max,this.step),this.value=this.stepNumber(t?.defaultValue||this.min),this.percent=this.value/(this.max-this.min),this.barColor=t?.barColor||ot.colorGrayF5,this.handleColor=t?.handleColor||ot.colorPrimary,this.barWidth=t?.barWidth||100,this.barHeight=t?.barHeight||4,this.handleSize=t?.handleSize||20,this.realBarWidth=this.barWidth-this.handleSize,this.fullRect=new ge({x:this.x,y:this.y-this.barHeight*.5,width:this.handleSize*.5+this.realBarWidth*this.percent,height:this.barHeight,borderRadius:this.barHeight*.5,attrs:{fill:this.handleColor}}),this.addShape(this.fullRect),this.emptyRect=new ge({x:this.x+this.handleSize*.5+this.realBarWidth*this.percent,y:this.y-this.barHeight*.5,width:this.handleSize*.5+this.realBarWidth*(1-this.percent),height:this.barHeight,borderRadius:this.barHeight*.5,attrs:{fill:this.barColor}}),this.addShape(this.emptyRect),this.alongPath=gt.fromSVGPathData([["M",this.x+this.handleSize*.5,this.y],["l",this.realBarWidth,0]]),this.handle=new Oe({x:this.x+this.handleSize*.5+this.realBarWidth*this.percent,y:this.y,radius:this.handleSize*.5,enableDrag:!0,autoRender:t?.autoRender,alongPath:this.alongPath,attrs:{fill:this.handleColor}}),this.addShape(this.handle),this.frameUpdate()}frameUpdate(){const t=this.handle.x-this.x-this.handleSize*.5;this.realBarWidth=this.barWidth-this.handleSize,this.percent=t/this.realBarWidth,this.fullRect.width=t+this.handleSize*.5,this.emptyRect.x=this.handle.x,this.emptyRect.width=this.barWidth-this.fullRect.width;const e=this.stepNumber(this.percent*(this.max-this.min)+this.min);e!=this.value&&(this.value=e,this.emit("change",this.value))}};class Ei extends ys{constructor(t){super(t),this.width=t.width,this.height=t.height,this.cornerRadius=this.height/2,this.addShape([gt.fromShape(new ge({...t,x:this.x-this.cornerRadius,y:this.y-this.cornerRadius,width:this.width+this.cornerRadius*2,height:this.height,borderRadius:this.cornerRadius}),{renderGroup:this.renderGroup,...t}),gt.fromShape(new Oe({...t,x:this.x,y:this.y,radius:2}),{renderGroup:this.renderGroup,...t}),gt.fromShape(new Oe({...t,x:this.x+this.width,y:this.y,radius:2}),{renderGroup:this.renderGroup,...t})])}frameUpdate(){super.frameUpdate()}getPin(){return{x:this.x+Math.cos(Dt(this.degree))*this.width,y:this.y+Math.sin(Dt(this.degree))*this.width}}}class Na extends ee{constructor(t){super(t),this.update(t)}update(t){this.extendDegree=t?.extendDegree||0,this.x=(t.x||0)+t.width/2;const e=Math.min(t.width/2,t.height)-t.lineWidth*1.5;this.radius=e-e*Math.abs(Math.sin(Dt(this.extendDegree))),this.y=(t.y||0)+t.height-t.lineWidth-this.radius*Math.abs(Math.sin(Dt(this.extendDegree))),this.startDegree=180+t.startDegree,this.endDegree=180+t.endDegree,this.setAttr({"stroke-linecap":"round","stroke-width":String(t.lineWidth),stroke:t.colorGradient||t.color||"none"})}frameUpdate(){}toSVGPathData(){const{dx:t,dy:e}=Ms(Dt(this.startDegree),this.radius),{dx:n,dy:i}=Ms(Dt(this.endDegree),this.radius);return[["M",this.x+t,this.y+e],["A",this.radius,this.radius,0,Math.abs(this.endDegree-this.startDegree)>=180?1:0,1,this.x+n,this.y+i]]}toCanvasContext(t){t.beginPath(),t.arc(0,0,this.radius,Dt(this.startDegree),Dt(this.endDegree),!1)}}class Ug extends os{fettis=[];constructor(t,e,n){super();const{shape:i,x:r,y:o,particleCount:a,angle:l,spread:c,startVelocity:u,decay:h,gravity:f,drift:d,ticks:m,colors:y,scalar:_,flat:k}=ua(n||{},{shape:nh,x:.5,y:.6,particleCount:100,angle:90,spread:70,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,colors:fg,scalar:1,flat:!1}),I=t*r,M=e*o,E=Dt(l),tt=Dt(c);let L=a;for(;L--;){const W=new i({x:I,y:M,transformBaseOnSelfInRenderGroup:!0,scaleOnOrigin:_,attrs:{fill:y[L%y.length]}});this.addShape(W),this.fettis.push({shape:W,x:I,y:M,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:u*.5+Math.random()*u,angle2D:-E+(.5*tt-Math.random()*tt),tiltAngle:(Math.random()*.5+.25)*Math.PI,tick:0,totalTicks:m,decay:h,drift:d,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:f*3,scalar:_,flat:k})}}frameUpdate(){super.frameUpdate(),this.fettis.length&&(this.fettis=this.fettis.filter(t=>this.updateFetti(t)))}updateFetti(t){t.x+=Math.cos(t.angle2D)*t.velocity+t.drift,t.shape.x=t.x,t.y+=Math.sin(t.angle2D)*t.velocity+t.gravity,t.shape.y=t.y,t.velocity*=t.decay,t.flat?(t.wobble=0,t.wobbleX=t.x+10*t.scalar,t.wobbleY=t.y+10*t.scalar,t.tiltSin=0,t.tiltCos=0,t.random=1):(t.wobble+=t.wobbleSpeed,t.wobbleX=t.x+10*t.scalar*Math.cos(t.wobble),t.wobbleY=t.y+10*t.scalar*Math.sin(t.wobble),t.tiltAngle+=.1,t.tiltSin=Math.sin(t.tiltAngle),t.tiltCos=Math.cos(t.tiltAngle),t.random=Math.random()+2);const e=t.tick++/t.totalTicks,n=t.x+t.random*t.tiltCos,i=t.y+t.random*t.tiltSin,r=t.wobbleX+t.random*t.tiltCos,o=t.wobbleY+t.random*t.tiltSin;return t.shape.setAttr("fill",Or(t.shape.getAttr("fill"),1-e)),t.shape.scalexOnOrigin=Math.abs(r-n)*.1*t.shape.prevScalexOnOrigin,t.shape.scaleyOnOrigin=Math.abs(o-i)*.1*t.shape.prevScalexOnOrigin,t.shape.degree=Be(Math.PI/10*t.wobble),t.shape.x=t.x,t.shape.y=t.y,t.tick<t.totalTicks}}class rh{app;ctx;shapes=[];isMouseDown=!1;currentMouseInShapeID="";currentEnableDragMouseInShapeID="";constructor(t,e=!1){if(this.app=t,!(this.app.container instanceof HTMLCanvasElement))throw new Error("app.container 应该为 HTMLCanvasElement!");this.ctx=new Oa(this.app.container,this.app.width,this.app.height,e),this.app.captureMove({start:()=>{this.isMouseDown=!0,this.setCursor()},end:()=>{this.isMouseDown=!1,this.setCursor()},move:()=>{if(this.isMouseDown&&this.currentEnableDragMouseInShapeID){this.setCursor();return}this.currentMouseInShapeID="";const n=this.shapes.length;let i=0;for(;i<n;i++){const r=this.shapes[i];this.ctx.save(),this.transformCtxBaseOnShape(r);const o=this.ctx.isPointInPath(r.path2d,this.app.mousePoint.x,this.app.mousePoint.y)||this.ctx.isPointInStroke(r.path2d,this.app.mousePoint.x,this.app.mousePoint.y)||!1;if(this.ctx.restore(),r.isMouseIn=o,r.mouseX=this.app.mousePoint.x,r.mouseY=this.app.mousePoint.y,o&&(this.currentMouseInShapeID=r.id,r.enableDrag)){this.currentEnableDragMouseInShapeID=r.id,this.shapes.filter(a=>a.id!==r.id).forEach(a=>{a instanceof ee&&(a.isMouseIn=!1,a.mouseX=this.app.mousePoint.x,a.mouseY=this.app.mousePoint.y)});break}}i>=n&&(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="default":this.app.container.style.cursor="default"}transformCtxBaseOnShape(t){t instanceof gt||(t instanceof Pe||this.ctx.translate(t.x,t.y),this.ctx.rotate(Dt(t.degree),t.cX,t.cY),this.ctx.scale(t.scalexOnOrigin,t.scaleyOnOrigin,t.cX,t.cY))}_addShape(t){t instanceof os?(t.frameUpdate(),t.shapes.forEach(e=>{e instanceof os?this._addShape(e):this.shapes.push(e)})):this.shapes.push(t)}draw(t=[]){this.shapes=[],(Array.isArray(t)?t:[t]).forEach(e=>{this._addShape(e)});for(let e of this.shapes)if(e.isShow){if(this.ctx.save(),U.attrsToCanvas(this.ctx,e.attrs),e.followMouse&&(!gi(e.x,this.app.mousePoint.x,5)||!gi(e.y,this.app.mousePoint.y,5))&&(e.rotateTo(this.app.mousePoint),e.followTo(this.app.mousePoint)),e.targetToAfterDragFree&&(this.isMouseDown||e.nextFrameEaseTo({x:e.targetToAfterDragFree.targetX,y:e.targetToAfterDragFree.targetY},{easing:e.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableDragMouseInShapeID==e.id){const{dx:n,dy:i}=e.centerDiff,r=e.x,o=e.y;if(e.x=this.app.mousePoint.x-n,e.y=this.app.mousePoint.y-i,e.alongPath){const a=e.alongPath.closestPoint(e.x,e.y);e.x=a.point.x,e.y=a.point.y}e.isDragging=!0,e.emit("moving",e.x-r,e.y-o)}else e.isDragging=!1;e.frameUpdate(),this.transformCtxBaseOnShape(e),e.toCanvasContext(this.ctx),this.ctx.hasSetCustomStrokeStyle&&this.ctx.stroke(),this.ctx.hasSetCustomFillStyle&&this.ctx.fill(),e.path2d=this.ctx.currentPath2D,this.ctx.restore()}return this}click(t){const e=()=>{this.shapes.forEach(n=>{(n instanceof gt&&(n.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.ctx)||n.isPointInStroke(this.app.mousePoint.x,this.app.mousePoint.y,this.ctx))||this.currentMouseInShapeID==n.id)&&t(n)})};return this.app.on("tap",e),()=>{this.app.off("tap",e)}}drawMouseMoveLine(t="line",e){switch(t){case"brush":const n=e?.brushSize??10,i=e?.brushDensity??50,r=e?.brushColor??"#000000",o=this.ctx.getImageData(0,0,this.ctx.canvas.width,this.ctx.canvas.height),a=o.data,l=Zs(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()*n,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.r,a[m+1]=l.g,a[m+2]=l.b,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 Wg{map;constructor(t,e=120.619585,n=31.299379,i=18){this.map=new T.Map(t),this.map.centerAndZoom(new T.LngLat(e,n),i)}}const qg=at({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(N(),j("span",{class:"icon",style:z(["color: "+e.color])},[pt(Lt(Pm),{icon:t.icon,color:e.color},null,8,["icon","color"])],4))}}),rb="",ct=(s,t)=>{const e=s.__vccOpts||s;for(const[n,i]of t)e[n]=i;return e},wn=ct(qg,[["__scopeId","data-v-8789b4ce"]]),Zg={class:"loading-11",ref:"loading11"},Kg={class:"container container-1"},Qg={class:"container container-2"},Jg={class:"container container-3"},t0=at({__name:"Loading11",props:{color:{default:ot.colorPrimary},width:{default:"0.8em"}},setup(s){const t=s;return(e,n)=>(N(),j("div",Zg,[x("div",{class:"loading-11-inner",style:z({width:t.width,height:t.width})},[x("div",Kg,[x("div",{class:"dot dot-1",style:z({backgroundColor:t.color})},null,4),x("div",{class:"dot dot-2",style:z({backgroundColor:t.color})},null,4),x("div",{class:"dot dot-3",style:z({backgroundColor:t.color})},null,4),x("div",{class:"dot dot-4",style:z({backgroundColor:t.color})},null,4)]),x("div",Qg,[x("div",{class:"dot dot-1",style:z({backgroundColor:t.color})},null,4),x("div",{class:"dot dot-2",style:z({backgroundColor:t.color})},null,4),x("div",{class:"dot dot-3",style:z({backgroundColor:t.color})},null,4),x("div",{class:"dot dot-4",style:z({backgroundColor:t.color})},null,4)]),x("div",Jg,[x("div",{class:"dot dot-1",style:z({backgroundColor:t.color})},null,4),x("div",{class:"dot dot-2",style:z({backgroundColor:t.color})},null,4),x("div",{class:"dot dot-3",style:z({backgroundColor:t.color})},null,4),x("div",{class:"dot dot-4",style:z({backgroundColor:t.color})},null,4)])],4)],512))}}),ob="",Aa=ct(t0,[["__scopeId","data-v-f95fac77"]]),e0={key:0,class:"loading"},s0=at({customOptions:{Loading11:Aa},inheritAttrs:!0,__name:"Button",props:{label:{},icon:{},iconPosition:{default:"left"},isDisabled:{type:Boolean,default:!1},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"14px"},borderRadius:{default:"4px"},stylePattern:{default:"fullfilled"},borderColor:{},bgColor:{},fontColor:{},asyncClick:{}},emits:["ceClick","click"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=R(),o=R(n.borderColor),a=R(n.bgColor),l=R(n.fontColor),c=R(n.borderColor),u=R(n.bgColor);function h(E){switch(E){case"outline":o.value=n.borderColor??ot.colorPrimary,a.value=n.bgColor??ot.colorGrayFF,l.value=n.fontColor??ot.colorPrimary,c.value=o.value,u.value=a.value;break;case"fullfilled":default:o.value=n.borderColor??ot.colorPrimary,a.value=n.bgColor??ot.colorPrimary,l.value=n.fontColor??ot.colorGrayFF,c.value=o.value,u.value=a.value;break}}It(()=>n.stylePattern,()=>{h(n.stylePattern)},{immediate:!0});const f=R(n.isDisabled?"0.6":"1"),d=R(n.isDisabled?"not-allowed":"pointer");let m=!1;const y=()=>{n.isDisabled||(m=!0,o.value=xi(c.value,10),a.value=xi(u.value,10))},_=()=>{n.isDisabled||(m=!1,o.value=c.value,a.value=u.value)},k=R(!1),M=jm(()=>{n.isDisabled||k.value||(o.value=xi(c.value,-10),a.value=xi(u.value,-10),setTimeout(()=>{m?y():_()},150),i("ceClick"),i("click"),n.asyncClick&&(k.value=!0,n.asyncClick().then(()=>{k.value=!1}).catch(()=>{k.value=!1})))},500);return t({el:r}),(E,tt)=>(N(),j("div",{ref_key:"el",ref:r,class:"button",style:z([`opacity: ${f.value}`,`border: 1px solid ${o.value}`,`background-color: ${a.value}`,`color: ${l.value}`,`border-radius: ${n.borderRadius}`,`height: ${n.height}`,`line-height: ${n.height}`,`font-size: ${n.fontSize}`,`cursor: ${d.value}`,"user-select: none"]),onMouseover:y,onMouseleave:_,onClick:tt[0]||(tt[0]=(...L)=>Lt(M)&&Lt(M)(...L))},[x("label",{class:"label truncate",style:z({padding:"0 "+E.padding,cursor:d.value})},[k.value?(N(),j("div",e0,[pt(Aa,{color:l.value},null,8,["color"])])):Wt("",!0),Nt(E.$slots,"default",{},()=>[E.icon&&E.iconPosition==="left"?(N(),Zt(wn,{key:0,icon:E.icon,color:l.value,style:z({marginRight:Lt(ot).gap4,cursor:d.value})},null,8,["icon","color","style"])):Wt("",!0),x("span",{style:z({cursor:d.value})},Et(E.label),5),E.icon&&E.iconPosition==="right"?(N(),Zt(wn,{key:1,icon:E.icon,color:l.value,style:z({marginLeft:Lt(ot).gap4,cursor:d.value})},null,8,["icon","color","style"])):Wt("",!0)],!0)],4)],36))}}),ab="",we=ct(s0,[["__scopeId","data-v-ea027c50"]]),n0=["onClick","value"],i0={class:"option-inner"},r0=at({customOptions:{Icon:wn,Button:we},__name:"Select",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;js(()=>{U.setStyleSheet(`
|
|
57
57
|
:root {
|
|
58
58
|
--select-option-bg-color: ${ot.colorGrayFF};
|
|
59
59
|
--select-option-bg-color-hover: ${ot.colorGrayF5};
|
|
60
60
|
}
|
|
61
|
-
`)});const i=
|
|
61
|
+
`)});const i=R(!1),r=R(e.initIndex);It(r,function(){n("change",r.value,e.options[r.value])});function o(){i.value=!i.value}function a(l){r.value=l,i.value=!1}return(l,c)=>(N(),j("div",{class:"select",style:z(["font-size:"+l.fontSize])},[x("div",{onClick:o},[Nt(l.$slots,"button",{selectedIndex:r.value},()=>[pt(we,{icon:"carbon:chevron-sort",iconPosition:"right",label:l.options[r.value],style:{width:"100%"}},null,8,["label"])],!0)]),Es(x("div",{class:"options",style:z({border:"1px solid "+Lt(ot).colorGrayCC})},[(N(!0),j(Gt,null,be(l.options,(u,h)=>(N(),j("div",{onClick:f=>a(h),class:"option",key:h,value:h,style:z({borderTop:(h==0?"0":"1px")+" solid "+Lt(ot).colorGrayCC})},[x("div",i0,[Nt(l.$slots,"default",{item:u,index:h},()=>[x("span",null,Et(u),1),h==r.value?(N(),Zt(wn,{key:0,icon:"mingcute:check-fill",class:"icon"})):Wt("",!0)],!0)])],12,n0))),128))],4),[[ms,i.value]])],4))}}),lb="",o0=ct(r0,[["__scopeId","data-v-8bb25be3"]]),a0=["width","height"],l0=["fill"],c0=at({__name:"SVGDown",props:{width:{default:"1em"},height:{},color:{default:ot.colorGrayCC}},setup(s){const t=s;return(e,n)=>(N(),j("svg",{viewBox:"0 0 20 20",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[x("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:t.color},null,8,l0)],8,a0))}}),cb="",Ti=ct(c0,[["__scopeId","data-v-b1f2ae20"]]),u0={class:"button-default"},h0={class:"truncate"},d0=["onClick","value"],f0=at({customOptions:{SVGDown:Ti},__name:"SelectAbsolute",props:{options:{},initIndex:{default:0},fontSize:{default:"16px"},bgColor:{default:ot.colorGrayFF},hoverColor:{default:ot.colorGrayF5},selectedColor:{default:ot.colorPrimary},fontColor:{default:ot.colorGray33},duration:{default:300}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;js(()=>{U.setStyleSheet(`
|
|
62
62
|
:root {
|
|
63
63
|
--select-option-bg-color: ${e.bgColor};
|
|
64
64
|
--select-option-bg-color-hover: ${e.hoverColor};
|
|
65
65
|
}
|
|
66
|
-
`)});const i=V(!1),r=V(e.initIndex);Dt(r,function(){n("change",r.value,e.options[r.value])});function o(){i.value=!i.value}function a(c){r.value=c,i.value=!1}const l=V("rotate(-180deg)");return Ql(()=>{l.value=i.value?"rotate(0deg)":"rotate(-90deg)"}),(c,u)=>(F(),X("div",{class:"select-absolute",style:W({fontSize:e.fontSize,backgroundColor:e.bgColor})},[S("div",{class:"select-absolute-button",onClick:o},[Gt(c.$slots,"button",{selectedIndex:r.value},()=>[S("div",s0,[S("div",n0,kt(c.options[r.value]),1),pt(Ci,{class:"icon-down",width:"20px",style:W({transition:`transform ${e.duration}ms ease-in-out`,transform:l.value})},null,8,["style"])])],!0)]),S("div",{class:"options",style:W({maxHeight:i.value?"200px":0,transition:`all ${e.duration}ms ease-in-out`,borderTop:`${i.value?1:0}px solid #e6e6e6`})},[(F(!0),X(zt,null,Ce(c.options,(h,f)=>(F(),X("div",{onClick:d=>a(f),class:"option",key:f,value:f},[Gt(c.$slots,"default",{item:h,index:f},()=>[S("div",{class:"option-default",style:W({color:r.value==f?e.selectedColor:e.fontColor})},kt(h),5)],!0)],8,i0))),128))],4)],4))}}),I_="",o0=ut(r0,[["__scopeId","data-v-5096cb20"]]),a0=lt({__name:"Switch",props:{init:{type:Boolean,default:!1},width:{default:"52px"},height:{default:"32px"},padding:{default:"4px"},colorPrimary:{default:ot.colorPrimary},colorBgOn:{default:ot.colorGrayEF},colorBgOff:{default:ot.colorGrayF5}},emits:["change"],setup(s,{emit:t}){const e=s,n=Us(e.width),i=Us(e.height),r=Us(e.padding),o=i.number-r.number*2+i.suffix,a=e.padding,l=n.number-Us(a).number-Us(o).number+n.suffix,c=t,u=V(e.init);Dt(u,function(){c("change",u.value)});function h(){u.value=!u.value}return(f,d)=>(F(),X("div",{class:"switch",onClick:h,style:W(["width: "+e.width,"height: "+e.height,"background-color: "+(u.value?e.colorBgOn:e.colorBgOff)])},[S("span",{class:"round",style:W(["width: "+o,"height: "+o,"background-color: "+(u.value?e.colorPrimary:Ft(vi)(e.colorPrimary,30)),"transform: translate("+(u.value?l:Ft(a))+", 0)"])},null,4)],4))}}),N_="",l0=ut(a0,[["__scopeId","data-v-45b7e06e"]]),c0=["onClick"],u0=["stroke","fill"],h0=["stroke","fill"],d0=["stroke"],f0=lt({customOptions:{},__name:"RadioGroup",props:{options:{},disabledIndexs:{},initIndex:{},isRounded:{type:Boolean,default:!0},colorBg:{default:ot.colorGrayFF},colorBgSelected:{default:ot.colorPrimary},colorBgDisabled:{default:ot.colorGrayCC},colorBorder:{default:ot.colorGrayCC},colorBorderSelected:{default:ot.colorPrimary},colorBorderDisabled:{default:ot.colorGrayCC},colorPath:{default:ot.colorGrayFF},colorPathDisabled:{default:ot.colorGrayFF},fontSize:{default:ot.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;let i=V(e.initIndex??0);Dt(i,function(){n("change",e.options[i.value])});const r=function(o){e.disabledIndexs&&e.disabledIndexs.findIndex(a=>a==o)>=0||(i.value=o)};return(o,a)=>(F(!0),X(zt,null,Ce(o.options,(l,c)=>(F(),X("div",{class:ye(["radio",o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?"disabled":""]),key:c,onClick:u=>r(c),style:W(["margin-left:"+(c>0?e.itemPadding:0)])},[Gt(o.$slots,"default",{label:l,index:c},()=>[(F(),X("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:W(["margin-right:"+e.labelPadding,"width:"+e.itemWidth])},[e.isRounded?qt("",!0):(F(),X("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:Ft(i)==c?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:Ft(i)==c?o.colorBgSelected:o.colorBg},null,8,u0)),e.isRounded?(F(),X("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:Ft(i)==c?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:Ft(i)==c?o.colorBgSelected:o.colorBg},null,8,h0)):qt("",!0),Ft(i)==c?(F(),X("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,d0)):qt("",!0)],4)),S("span",{style:W(["font-size:"+e.fontSize])},kt(l),5)],!0)],14,c0))),128))}}),M_="",Da=ut(f0,[["__scopeId","data-v-15ba52e8"]]),p0=["onClick"],m0=["stroke","fill"],g0=["stroke","fill"],y0=["stroke"],v0=lt({customOptions:{},__name:"CheckboxGroup",props:{options:{},disabledIndexs:{},initIndexs:{},isRounded:{type:Boolean,default:!1},colorBg:{default:ot.colorGrayFF},colorBgSelected:{default:ot.colorPrimary},colorBgDisabled:{default:ot.colorGrayCC},colorBorder:{default:ot.colorGrayCC},colorBorderSelected:{default:ot.colorPrimary},colorBorderDisabled:{default:ot.colorGrayCC},colorPath:{default:ot.colorGrayFF},colorPathDisabled:{default:ot.colorGrayFF},fontSize:{default:ot.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;let i=Pe(e.initIndexs??[]);Dt(i,function(){n("change",i.map(o=>e.options[o]))});const r=function(o){if(e.disabledIndexs&&e.disabledIndexs.findIndex(l=>l==o)>=0)return;const a=i.findIndex(l=>l===o);a>=0?i.splice(a,1):i.push(o)};return(o,a)=>(F(!0),X(zt,null,Ce(o.options,(l,c)=>(F(),X("div",{class:ye(["checkbox",o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?"disabled":""]),key:c,onClick:u=>r(c),style:W(["margin-left:"+(c>0?e.itemPadding:0)])},[Gt(o.$slots,"default",{label:l,index:c},()=>[(F(),X("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:W(["margin-right:"+e.labelPadding,"width:"+e.itemWidth])},[e.isRounded?qt("",!0):(F(),X("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:Ft(i).findIndex(u=>u===c)>=0?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:Ft(i).findIndex(u=>u===c)>=0?o.colorBgSelected:o.colorBg},null,8,m0)),e.isRounded?(F(),X("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:Ft(i).findIndex(u=>u===c)>=0?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:Ft(i).findIndex(u=>u===c)>=0?o.colorBgSelected:o.colorBg},null,8,g0)):qt("",!0),Ft(i).findIndex(u=>u===c)>=0?(F(),X("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,y0)):qt("",!0)],4)),S("span",{style:W(["font-size:"+e.fontSize])},kt(l),5)],!0)],14,p0))),128))}}),A_="",Mr=ut(v0,[["__scopeId","data-v-96939a11"]]),_0=["width","height"],b0=["fill"],x0=["fill"],w0=["fill"],S0=lt({__name:"SVGPrompt",props:{width:{default:"1.5em"},height:{},color:{default:ot.colorRed}},setup(s){const t=s;return(e,n)=>(F(),X("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[S("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:t.color},null,8,b0),S("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:t.color},null,8,x0),S("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:t.color},null,8,w0)],8,_0))}}),R_="",sh=ut(S0,[["__scopeId","data-v-41294f60"]]),C0={class:"wrap"},E0=["type","required"],k0={class:"ellipsis"},T0={key:1,style:{}},O0=lt({customOptions:{SVGPrompt:sh},inheritAttrs:!0,__name:"Input",props:{placeholder:{},placeholderJump:{type:Boolean,default:!1},height:{default:"44px"},type:{default:"text"},required:{type:Boolean,default:!1},focusColor:{default:ot.colorPrimary},errorColor:{default:ot.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(s,{expose:t,emit:e}){const n=s,i=e,r=n.placeholder.split(""),o=n.duration/r.length,a=V(!1),l=V(""),c=V("");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&&n.validator){const m=n.validator(c.value);if(!m.isValidated){l.value=m.msg;return}}l.value="",c.value&&(i("input",c.value),i("ceInput",c.value))}return re(()=>{}),t({}),(m,v)=>(F(),X("div",C0,[S("input",{type:n.type,required:n.required,autocomplete:"off",style:W({height:n.height,lineHeight:n.height,borderRadius:n.borderRadius,color:n.fontColor,borderColor:l.value?n.errorColor:a.value?n.focusColor:c.value?n.bgColor:"transparent",transition:n.duration+"ms"}),class:ye([a.value||c.value?"focus":"blur","input"]),onFocus:u,onBlur:h,onInput:f,onChange:f},null,46,E0),S("div",{class:"placeholder",style:W({lineHeight:a.value||c.value?1.3:n.height,color:n.placeholderColor,transition:n.placeholderJump?"":n.duration+"ms",transform:n.placeholderJump?"":a.value||c.value?"translateY(-100%)":"none"})},[l.value?(F(),X("div",{key:0,style:W({color:n.errorColor,transform:n.placeholderJump?"translateY(-100%)":""})},[pt(sh,{class:"icon"}),S("div",k0,kt(l.value),1)],4)):qt("",!0),!l.value&&!n.placeholderJump?(F(),X("div",T0,kt(n.placeholder),1)):qt("",!0),!l.value&&n.placeholderJump?(F(!0),X(zt,{key:2},Ce(Ft(r),(_,E)=>(F(),X("span",{key:E,style:W({transition:n.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"},kt(_),5))),128)):qt("",!0)],4),S("div",{class:"bg",style:W({transition:n.duration+"ms",backgroundColor:a.value||c.value?"transparent":n.bgColor,height:a.value||c.value?n.height:"2px",borderRadius:n.borderRadius})},null,4)]))}}),$_="",P0=ut(O0,[["__scopeId","data-v-e02afc20"]]),D0=["max","min","step","value","autofocus"],I0={key:0,class:"label"},N0=lt({customOptions:{},inheritAttrs:!0,__name:"InputRange",props:{min:{default:0},max:{default:100},step:{default:1},defaultValue:{default:0},unit:{default:""},showValue:{type:Boolean,default:!0},autofocus:{type:Boolean,default:!1},color:{default:ot.colorPrimary},barColor:{default:ot.colorGrayF5},handleSize:{default:"20px"},barHeight:{default:"4px"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=V(n.defaultValue),o=V(qe((n.defaultValue-n.min)/(n.max-n.min),4)*100);function a(u){r.value=qe(u.target.value,2),o.value=qe((r.value-n.min)/(n.max-n.min),4)*100,i("change",r.value)}const l=`
|
|
66
|
+
`)});const i=R(!1),r=R(e.initIndex);It(r,function(){n("change",r.value,e.options[r.value])});function o(){i.value=!i.value}function a(c){r.value=c,i.value=!1}const l=R("rotate(-180deg)");return nc(()=>{l.value=i.value?"rotate(0deg)":"rotate(-90deg)"}),(c,u)=>(N(),j("div",{class:"select-absolute",style:z({fontSize:e.fontSize,backgroundColor:e.bgColor})},[x("div",{class:"select-absolute-button",onClick:o},[Nt(c.$slots,"button",{selectedIndex:r.value},()=>[x("div",u0,[x("div",h0,Et(c.options[r.value]),1),pt(Ti,{class:"icon-down",width:"20px",style:z({transition:`transform ${e.duration}ms ease-in-out`,transform:l.value})},null,8,["style"])])],!0)]),x("div",{class:"options",style:z({maxHeight:i.value?"200px":0,transition:`all ${e.duration}ms ease-in-out`,borderTop:`${i.value?1:0}px solid #e6e6e6`})},[(N(!0),j(Gt,null,be(c.options,(h,f)=>(N(),j("div",{onClick:d=>a(f),class:"option",key:f,value:f},[Nt(c.$slots,"default",{item:h,index:f},()=>[x("div",{class:"option-default",style:z({color:r.value==f?e.selectedColor:e.fontColor})},Et(h),5)],!0)],8,d0))),128))],4)],4))}}),ub="",p0=ct(f0,[["__scopeId","data-v-5096cb20"]]),m0=at({__name:"Switch",props:{init:{type:Boolean,default:!1},width:{default:"52px"},height:{default:"32px"},padding:{default:"4px"},colorPrimary:{default:ot.colorPrimary},colorBgOn:{default:ot.colorGrayEF},colorBgOff:{default:ot.colorGrayF5}},emits:["change"],setup(s,{emit:t}){const e=s,n=Ws(e.width),i=Ws(e.height),r=Ws(e.padding),o=i.number-r.number*2+i.suffix,a=e.padding,l=n.number-Ws(a).number-Ws(o).number+n.suffix,c=t,u=R(e.init);It(u,function(){c("change",u.value)});function h(){u.value=!u.value}return(f,d)=>(N(),j("div",{class:"switch",onClick:h,style:z(["width: "+e.width,"height: "+e.height,"background-color: "+(u.value?e.colorBgOn:e.colorBgOff)])},[x("span",{class:"round",style:z(["width: "+o,"height: "+o,"background-color: "+(u.value?e.colorPrimary:Lt(xi)(e.colorPrimary,30)),"transform: translate("+(u.value?l:Lt(a))+", 0)"])},null,4)],4))}}),hb="",g0=ct(m0,[["__scopeId","data-v-45b7e06e"]]),y0=["onClick"],v0=["stroke","fill"],_0=["stroke","fill"],b0=["stroke"],x0=at({customOptions:{},__name:"RadioGroup",props:{options:{},disabledIndexs:{},initIndex:{},isRounded:{type:Boolean,default:!0},colorBg:{default:ot.colorGrayFF},colorBgSelected:{default:ot.colorPrimary},colorBgDisabled:{default:ot.colorGrayCC},colorBorder:{default:ot.colorGrayCC},colorBorderSelected:{default:ot.colorPrimary},colorBorderDisabled:{default:ot.colorGrayCC},colorPath:{default:ot.colorGrayFF},colorPathDisabled:{default:ot.colorGrayFF},fontSize:{default:ot.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;let i=R(e.initIndex??0);It(i,function(){n("change",e.options[i.value])});const r=function(o){e.disabledIndexs&&e.disabledIndexs.findIndex(a=>a==o)>=0||(i.value=o)};return(o,a)=>(N(!0),j(Gt,null,be(o.options,(l,c)=>(N(),j("div",{class:le(["radio",o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?"disabled":""]),key:c,onClick:u=>r(c),style:z(["margin-left:"+(c>0?e.itemPadding:0)])},[Nt(o.$slots,"default",{label:l,index:c},()=>[(N(),j("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:z(["margin-right:"+e.labelPadding,"width:"+e.itemWidth])},[e.isRounded?Wt("",!0):(N(),j("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:Lt(i)==c?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:Lt(i)==c?o.colorBgSelected:o.colorBg},null,8,v0)),e.isRounded?(N(),j("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:Lt(i)==c?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:Lt(i)==c?o.colorBgSelected:o.colorBg},null,8,_0)):Wt("",!0),Lt(i)==c?(N(),j("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,b0)):Wt("",!0)],4)),x("span",{style:z(["font-size:"+e.fontSize])},Et(l),5)],!0)],14,y0))),128))}}),db="",Ra=ct(x0,[["__scopeId","data-v-15ba52e8"]]),w0=["onClick"],S0=["stroke","fill"],C0=["stroke","fill"],k0=["stroke"],E0=at({customOptions:{},__name:"CheckboxGroup",props:{options:{},disabledIndexs:{},initIndexs:{},isRounded:{type:Boolean,default:!1},colorBg:{default:ot.colorGrayFF},colorBgSelected:{default:ot.colorPrimary},colorBgDisabled:{default:ot.colorGrayCC},colorBorder:{default:ot.colorGrayCC},colorBorderSelected:{default:ot.colorPrimary},colorBorderDisabled:{default:ot.colorGrayCC},colorPath:{default:ot.colorGrayFF},colorPathDisabled:{default:ot.colorGrayFF},fontSize:{default:ot.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;let i=ne(e.initIndexs??[]);It(i,function(){n("change",i.map(o=>e.options[o]))});const r=function(o){if(e.disabledIndexs&&e.disabledIndexs.findIndex(l=>l==o)>=0)return;const a=i.findIndex(l=>l===o);a>=0?i.splice(a,1):i.push(o)};return(o,a)=>(N(!0),j(Gt,null,be(o.options,(l,c)=>(N(),j("div",{class:le(["checkbox",o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?"disabled":""]),key:c,onClick:u=>r(c),style:z(["margin-left:"+(c>0?e.itemPadding:0)])},[Nt(o.$slots,"default",{label:l,index:c},()=>[(N(),j("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:z(["margin-right:"+e.labelPadding,"width:"+e.itemWidth])},[e.isRounded?Wt("",!0):(N(),j("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:Lt(i).findIndex(u=>u===c)>=0?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:Lt(i).findIndex(u=>u===c)>=0?o.colorBgSelected:o.colorBg},null,8,S0)),e.isRounded?(N(),j("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:Lt(i).findIndex(u=>u===c)>=0?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:Lt(i).findIndex(u=>u===c)>=0?o.colorBgSelected:o.colorBg},null,8,C0)):Wt("",!0),Lt(i).findIndex(u=>u===c)>=0?(N(),j("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,k0)):Wt("",!0)],4)),x("span",{style:z(["font-size:"+e.fontSize])},Et(l),5)],!0)],14,w0))),128))}}),fb="",$r=ct(E0,[["__scopeId","data-v-96939a11"]]),T0=["width","height"],O0=["fill"],P0=["fill"],I0=["fill"],D0=at({__name:"SVGPrompt",props:{width:{default:"1.5em"},height:{},color:{default:ot.colorRed}},setup(s){const t=s;return(e,n)=>(N(),j("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[x("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:t.color},null,8,O0),x("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:t.color},null,8,P0),x("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:t.color},null,8,I0)],8,T0))}}),pb="",oh=ct(D0,[["__scopeId","data-v-41294f60"]]),M0={class:"wrap"},N0=["type","required"],A0={class:"ellipsis"},R0={key:1,style:{}},$0=at({customOptions:{SVGPrompt:oh},inheritAttrs:!0,__name:"Input",props:{placeholder:{},placeholderJump:{type:Boolean,default:!1},height:{default:"44px"},type:{default:"text"},required:{type:Boolean,default:!1},focusColor:{default:ot.colorPrimary},errorColor:{default:ot.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(s,{expose:t,emit:e}){const n=s,i=e,r=n.placeholder.split(""),o=n.duration/r.length,a=R(!1),l=R(""),c=R("");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&&n.validator){const m=n.validator(c.value);if(!m.isValidated){l.value=m.msg;return}}l.value="",c.value&&(i("input",c.value),i("ceInput",c.value))}return pe(()=>{}),t({}),(m,y)=>(N(),j("div",M0,[x("input",{type:n.type,required:n.required,autocomplete:"off",style:z({height:n.height,lineHeight:n.height,borderRadius:n.borderRadius,color:n.fontColor,borderColor:l.value?n.errorColor:a.value?n.focusColor:c.value?n.bgColor:"transparent",transition:n.duration+"ms"}),class:le([a.value||c.value?"focus":"blur","input"]),onFocus:u,onBlur:h,onInput:f,onChange:f},null,46,N0),x("div",{class:"placeholder",style:z({lineHeight:a.value||c.value?1.3:n.height,color:n.placeholderColor,transition:n.placeholderJump?"":n.duration+"ms",transform:n.placeholderJump?"":a.value||c.value?"translateY(-100%)":"none"})},[l.value?(N(),j("div",{key:0,style:z({color:n.errorColor,transform:n.placeholderJump?"translateY(-100%)":""})},[pt(oh,{class:"icon"}),x("div",A0,Et(l.value),1)],4)):Wt("",!0),!l.value&&!n.placeholderJump?(N(),j("div",R0,Et(n.placeholder),1)):Wt("",!0),!l.value&&n.placeholderJump?(N(!0),j(Gt,{key:2},be(Lt(r),(_,k)=>(N(),j("span",{key:k,style:z({transition:n.duration+"ms cubic-bezier(0.68, -0.55, 0.265, 1.55)",transitionDelay:`${o*k}ms`,transform:a.value||c.value?`translateX(${100*k}%) translateY(-100%)`:`translateX(${100*k}%)`}),class:"single"},Et(_),5))),128)):Wt("",!0)],4),x("div",{class:"bg",style:z({transition:n.duration+"ms",backgroundColor:a.value||c.value?"transparent":n.bgColor,height:a.value||c.value?n.height:"2px",borderRadius:n.borderRadius})},null,4)]))}}),mb="",L0=ct($0,[["__scopeId","data-v-e02afc20"]]),V0=["max","min","step","value","autofocus"],F0={key:0,class:"label"},G0=at({customOptions:{},inheritAttrs:!0,__name:"InputRange",props:{min:{default:0},max:{default:100},step:{default:1},defaultValue:{default:0},unit:{default:""},showValue:{type:Boolean,default:!0},autofocus:{type:Boolean,default:!1},color:{default:ot.colorPrimary},barColor:{default:ot.colorGrayF5},handleSize:{default:"20px"},barHeight:{default:"4px"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=R(n.defaultValue),o=R(Ze((n.defaultValue-n.min)/(n.max-n.min),4)*100);function a(u){r.value=Ze(u.target.value,2),o.value=Ze((r.value-n.min)/(n.max-n.min),4)*100,i("change",r.value)}const l=`
|
|
67
67
|
:root {
|
|
68
68
|
--input-range-color: ${n.color};
|
|
69
69
|
--input-range-thumb-size: ${n.handleSize};
|
|
@@ -74,24 +74,23 @@ Expected function or array of functions, received type ${typeof s}.`),ae)}functi
|
|
|
74
74
|
--input-range-thumb-size: ${n.handleSize};
|
|
75
75
|
--input-range-track-size: ${n.barHeight};
|
|
76
76
|
}
|
|
77
|
-
`,c=V();return Dt(c,()=>{c.value&&H.setStyleSheet(l,c.value)}),re(()=>{}),t({}),(u,h)=>(F(),X("div",{class:"input-range",ref_key:"inputRangeContainer",ref:c},[S("input",{type:"range",max:n.max,min:n.min,step:n.step,value:r.value,autofocus:n.autofocus,onInput:a,style:W({background:`linear-gradient(to right, ${n.color} 0%, ${n.color} ${o.value}%, ${n.barColor} ${o.value}%, ${n.barColor})`})},null,44,D0),u.showValue?(F(),X("label",I0,kt(r.value)+kt(n.unit),1)):qt("",!0)],512))}}),V_="",Qs=ut(N0,[["__scopeId","data-v-75b06946"]]),M0=lt({__name:"SVG",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["resize"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=V();Dt(r,()=>{r.value&&c()});let o,a,l;function c(){o||!r.value||(o=new me(r.value,!1),o.on("resize",(h,f)=>{i("resize",h,f)}),a=new Cg(o),l?.(a),o.start())}function u(){return new Promise(h=>{if(a&&o.width&&o.height)return h(a);l=h})}return re(()=>{o?.destroy()}),t({getSVGElement:()=>r.value,getSVG:u}),(h,f)=>(F(),X("div",{ref_key:"svgRef",ref:r,class:"svg",style:W({backgroundColor:n.bgColor})},null,4))}}),L_="",Ar=ut(M0,[["__scopeId","data-v-933ab3a5"]]),A0={class:"input-range-svg"},R0={key:0,class:"label"},$0=lt({customOptions:{SVG:Ar},inheritAttrs:!0,__name:"InputRangeSvg",props:{min:{default:0},max:{default:100},step:{default:1},defaultValue:{default:0},unit:{default:""},showValue:{type:Boolean,default:!0},color:{default:ot.colorPrimary},barColor:{default:ot.colorGrayF5},handleSize:{default:"20px"},barHeight:{default:"4px"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=V(n.defaultValue),o=f=>{r.value=f,i("change",f)},a=Us(n.handleSize,20).number;let l;const c=()=>{l=new th({x:0,y:a*.5,min:n.min,max:n.max,step:n.step,defaultValue:r.value,barWidth:u,handleSize:a,autoRender:!0}),l.on("change",o)};let u=0;const h=V();return Dt(h,()=>{h.value&&h.value.getSVG().then(f=>{u=f.app.width,f.clear(),c(),f.path(l),f.app.on("resize",d=>{u=d,f.clear(),c(),f.path(l)})})}),re(()=>{}),t({}),(f,d)=>(F(),X("div",A0,[S("div",{class:"input",style:W({height:n.handleSize})},[pt(Ar,{ref_key:"svgRef",ref:h},null,512)],4),f.showValue?(F(),X("div",R0,kt(r.value)+kt(n.unit),1)):qt("",!0)]))}}),F_="",V0=ut($0,[["__scopeId","data-v-1360472b"]]),L0=["width","height"],F0=["fill"],G0=lt({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),X("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,xmlns:"http://www.w3.org/2000/svg"},[S("path",{fill:t.color,d:"M7 21q-.825 0-1.412-.587T5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .825-.587 1.413T17 21zM17 6H7v13h10zM9 17h2V8H9zm4 0h2V8h-2zM7 6v13z"},null,8,F0)],8,L0))}}),G_="",Ia=ut(G0,[["__scopeId","data-v-4747d4a7"]]),z0=lt({customOptions:{SVGDelete:Ia},inheritAttrs:!0,__name:"SlideLeftItem",props:{bgColor:{default:ot.colorGrayFF},deleteColor:{default:ot.colorRed},fontColor:{default:ot.colorGrayFF},borderRadius:{default:"4px"},deleteWidth:{default:"44px"},transtionDuration:{default:"150ms"}},emits:["delete"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=V(!1),o=()=>{i("delete"),r.value=!1};let a;const l=V();return Dt(l,()=>{l.value&&(a=new me(l.value),a.on("panLeft",()=>{r.value=!0}),a.on("panRight",()=>{r.value=!1}),a.on("tapOutSide",()=>{r.value=!1}))}),re(()=>{a?.destroy()}),t({}),(c,u)=>(F(),X("div",{class:"parent",ref_key:"item",ref:l,style:W({backgroundColor:n.bgColor,borderRadius:n.borderRadius})},[S("div",{class:"content",style:W({transition:"all ease-in "+n.transtionDuration,transform:r.value?"translate(-"+n.deleteWidth+", 0)":"translate(0, 0)"})},[Gt(c.$slots,"default",{},void 0,!0)],4),S("div",{class:"delete",onClick:o,style:W({backgroundColor:n.deleteColor,width:n.deleteWidth,transition:"all ease-in "+n.transtionDuration,transform:r.value?"translate(0, 0)":"translate("+n.deleteWidth+", 0)"})},[pt(Ia,{color:n.fontColor},null,8,["color"])],4)],4))}}),z_="",j0=ut(z0,[["__scopeId","data-v-244215c2"]]),B0=s=>{const t={};for(const e of s.attributes)t[e.name]=e.value;return t},Y0={class:"overlay-content",style:W(["position: relative","z-index: 6001","inset: 0","overflow-y: auto","width: 100% ","height: 100%"])},X0=lt({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean},bgColor:{default:Er(ot.colorGray00,.25)},isGlobal:{type:Boolean,default:!0}},setup(s,{expose:t,emit:e}){const n=s,i=V();function r(o){n.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 Dt(()=>n.visible,()=>{r(n.visible)},{immediate:!0}),t({}),(o,a)=>n.visible?(F(),X("div",{key:0,ref_key:"overlayRef",ref:i,class:"overlay",style:W([`position: ${n.isGlobal?"fixed":"absolute"}`,"z-index: 6000 ","inset: 0",`background-color: ${n.bgColor};`])},[S("div",Y0,[Gt(o.$slots,"default",{},void 0,!0)])],4)):qt("",!0)}}),j_="",Vn=ut(X0,[["__scopeId","data-v-fbdcceee"]]),H0=(s=>(On("data-v-0dd2379f"),s=s(),Pn(),s))(()=>S("div",null,null,-1)),U0=lt({customOptions:{Overlay:Vn},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(s,{expose:t,emit:e}){const n=s,i=e,r=V();let o;const a=Pe({}),l=Pe({});function c(){switch(di(a),di(l),n.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}}Dt(()=>n.directionFrom,()=>{c()},{immediate:!0});const u=new fe,h=(E=!0)=>{!o||!r.value||(E?(u.fromDOM(r.value),u.toCSS(o,{easeName:"ease",dur:n.openDurTime,onComplete:()=>{i("open")}})):u.toCSS(o,{easeName:"ease",dur:n.closeDurTime,direction:"reverse",onComplete:()=>{v()}}))};Dt(r,()=>{r.value&&h(!0)},{});const f=V(!1);function d(){f.value=!0}function m(){n.directionFrom=="absolute"?v():h(!1)}function v(){f.value=!1,i("close")}function _(E){n.directionFrom=="absolute"?r.value&&r.value.children[0]&&!r.value.children[0].contains(E.target)&&n.closeWhenClickOverlay&&v():r.value&&!r.value.contains(E.target)&&n.closeWhenClickOverlay&&m()}return t({open:d,close:m}),(E,D)=>(F(),Ie(Vn,{visible:f.value,isGlobal:n.isGlobal,bgColor:n.overlayBgColor},{default:he(()=>[S("div",{class:"pop-parent",style:W([{position:"relative",width:"100%",height:"100%",overflow:"hidden"},a]),onClick:_},[S("div",{ref_key:"pop",ref:r,class:"pop",style:W([{position:"absolute","z-index":"3000"},l])},[Gt(E.$slots,"default",{},()=>[H0],!0)],4)],4)]),_:3},8,["visible","isGlobal","bgColor"]))}}),Y_="",Qe=ut(U0,[["__scopeId","data-v-0dd2379f"]]),W0={class:"dialog-parent"},q0={key:0,class:"title"},Z0={key:0,class:"title-inner truncate"},K0={class:"custom-content"},Q0={class:"custom-content-default"},J0={key:1,class:"btns"},ty=lt({customOptions:{Overlay:Vn,Pop:Qe,Icon:bn,Button:ve},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(s,{expose:t,emit:e}){const n=s,i=e,r=V(),o=V(""),a=V(""),l=V(!1),c=V(""),u=V("");let h,f,d;function m(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||"",r.value.open(),h=D?.onClose,f=D?.onCancel,d=D?.onConfirm,i("open")}function v(){r.value.close(),h?.(),i("close")}function _(){v(),f?.(),i("cancel")}function E(){v(),d?.(),i("confirm")}return t({open:m,close:v}),(D,N)=>(F(),Ie(Qe,{ref_key:"popRef",ref:r,directionFrom:"center",closeWhenClickOverlay:n.closeWhenClickOverlay,openDurTime:n.openDurTime,closeDurTime:n.closeDurTime,overlayBgColor:n.overlayBgColor},{default:he(()=>[S("div",W0,[S("div",{class:"dialog",style:W({minWidth:n.minWidth,maxWidth:n.maxWidth})},[o.value||l.value?(F(),X("div",q0,[o.value?(F(),X("div",Z0,kt(o.value),1)):qt("",!0),l.value?(F(),X("div",{key:1,class:"close",onClick:v},[pt(bn,{icon:"ic:baseline-close",color:Ft(ot).colorGrayCC},null,8,["color"])])):qt("",!0)])):qt("",!0),S("div",K0,[Gt(D.$slots,"default",{},()=>[S("div",Q0,kt(a.value),1)],!0)]),c.value||u.value?(F(),X("div",J0,[c.value?(F(),Ie(ve,{key:0,onClick:_,class:"btn",bgColor:Ft(ot).colorGrayE6,borderColor:Ft(ot).colorGrayE6,fontColor:Ft(ot).colorGray33,borderRadius:"0"},{default:he(()=>[Kt(kt(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):qt("",!0),u.value?(F(),Ie(ve,{key:1,onClick:E,class:"btn",borderRadius:"0"},{default:he(()=>[Kt(kt(u.value),1)]),_:1})):qt("",!0)])):qt("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime","overlayBgColor"]))}}),X_="",Ei=ut(ty,[["__scopeId","data-v-6bd255c9"]]),ey={class:"toast"},sy={class:"content"},ny=lt({customOptions:{Overlay:Vn,Pop:Qe,Dialog:Ei},inheritAttrs:!0,__name:"DialogToast",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=V(),o=V("");function a(c,u=1500){o.value=c,r.value.open(),i("open"),setTimeout(()=>{l()},u)}function l(){r.value.close(),i("close")}return t({open:a,close:l}),(c,u)=>(F(),Ie(Ei,{ref_key:"dialogRef",ref:r,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:n.closeWhenClickOverlay,openDurTime:n.openDurTime,closeDurTime:n.closeDurTime,overlayBgColor:"transparent",minWidth:"10em"},{default:he(()=>[S("div",ey,[S("div",sy,kt(o.value),1)])]),_:1},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),H_="",nh=ut(ny,[["__scopeId","data-v-50ed852e"]]),iy={class:"loading-8"},ry={viewBox:"25 25 50 50"},oy=lt({__name:"Loading8",props:{color:{default:ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),X("div",iy,[(F(),X("svg",ry,[S("circle",{cx:"50",cy:"50",r:"20",style:W(["stroke: "+t.color])},null,4)]))]))}}),U_="",Na=ut(oy,[["__scopeId","data-v-e5e3cf4c"]]),ay={class:"loading"},ly={class:"icon"},cy={style:{width:"8em"}},uy={key:0,class:"content"},hy=lt({customOptions:{Overlay:Vn,Pop:Qe,Dialog:Ei,Loading8:Na},inheritAttrs:!0,__name:"DialogLoading",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=V(),o=V("");function a(c){o.value=c||"",r.value.open(),i("open")}function l(){r.value.close(),i("close")}return t({open:a,close:l}),(c,u)=>(F(),Ie(Ei,{ref_key:"dialogRef",ref:r,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:n.closeWhenClickOverlay,openDurTime:n.openDurTime,closeDurTime:n.closeDurTime},{default:he(()=>[S("div",ay,[S("div",ly,[Gt(c.$slots,"default",{},()=>[S("div",cy,[pt(Na)])],!0)]),o.value?(F(),X("div",uy,kt(o.value),1)):qt("",!0)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),W_="",dy=ut(hy,[["__scopeId","data-v-cb469a6c"]]),Ma=s=>(On("data-v-85491020"),s=s(),Pn(),s),fy=[Ma(()=>S("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)),Ma(()=>S("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)),Ma(()=>S("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))],py=lt({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),X("svg",{style:W(["width: "+t.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},fy,4))}}),Q_="",Rr=ut(py,[["__scopeId","data-v-85491020"]]),my=["data-number"],gy=["data-number","data-unactive"],yy=["data-number"],vy=["data-number","data-unactive"],_y=lt({customOptions:{Pop:Qe,SVGCleanUp:Rr},__name:"PlateKeyboard",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=V(),o=V(0),a=Pe([]);function l(){a.length==0?o.value=0:a.length==1?o.value=1:o.value=2,a.length>=n.completePlateLength&&u()}Dt(()=>[...n.initPlates],()=>{fi(a,n.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 N=E.target.dataset.number;N&&(a.push(N),l(),i("plates",a))};t({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"],_=["港","澳","学","警","使","领","挂","应","急"];return(E,D)=>(F(),Ie(Qe,{ref_key:"popRef",ref:r,directionFrom:"bottom",isGlobal:!0,closeWhenClickOverlay:!1},{default:he(()=>[S("div",{class:"popup-plate",style:W({paddingBottom:Ft(ot).safeAreaBottom})},[S("div",null,[S("div",{onClick:u},"关闭")]),S("div",{class:ye(["step",o.value==0?"":"hide"])},[(F(),X(zt,null,Ce(d,N=>S("div",{key:N,class:"popitem",onClick:f,"data-number":N},kt(N),9,my)),64)),S("div",{class:"popitem popitem-clear",onClick:h},[pt(Rr,{width:"16px"})])],2),S("div",{class:ye(["step",o.value!=0?"":"hide"])},[(F(),X(zt,null,Ce(m,N=>S("div",{key:N,class:ye(["popitem",o.value!=2?"unactive":""]),onClick:f,"data-number":N,"data-unactive":o.value!=2?"unactive":""},kt(N),11,gy)),64)),(F(),X(zt,null,Ce(v,N=>S("div",{key:N,class:"popitem",onClick:f,"data-number":N},kt(N),9,yy)),64)),(F(),X(zt,null,Ce(_,N=>S("div",{key:N,class:ye(["popitem",o.value!=2?"unactive":""]),onClick:f,"data-number":N,"data-unactive":o.value!=2?"unactive":""},kt(N),11,vy)),64)),S("div",{class:"popitem popitem-clear",onClick:h},[pt(Rr,{width:"16px"})])],2)],4)]),_:1},512))}}),J_="",ih=ut(_y,[["__scopeId","data-v-bade3529"]]),rh=document.getElementById("teleport")||document.documentElement;function oh(s,t){{const e=Ge(nh,{});hr(e,rh),e.component?.exposed?.open(s,t)}}function by(s,t="bottom"){let e;s instanceof HTMLElement?e=Ge(Qe,{directionFrom:t},()=>Ge("div",{...B0(s),innerHTML:s.innerHTML})):e=Ge(Qe,{directionFrom:t},()=>s),hr(e,document.getElementById("teleport")||document.documentElement),e.component?.exposed?.open();const n=()=>{e.component?.exposed?.close()};return n.vnode=e,n}function xy(s){return by(s,"absolute")}function wy(s){{const t=Ge(ih,s);return hr(t,rh),t.component?.exposed?.open(),()=>{t.component?.exposed?.close()}}}const Sy={class:"content"},Cy=lt({customOptions:{},inheritAttrs:!0,__name:"MouseOver",props:{coverColor:{default:"#fc2f70"},timeGap:{default:200},coverDirection:{default:"bottomLeft"}},emits:["mouseOver","mouseOut"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=V(),o=V(!1),a=Pe({});let l=Pe({}),c=Pe({}),u=1,h;Dt(r,()=>{!r.value||h||(d(),h=new me(r.value,!1),h.on("resize",(m,v)=>{u=Math.max(m,v)/Math.min(m,v);const _=Math.min(m,v);c.width=l.width=_+"px",c.height=l.height=_+"px",d()}),h.on("mouseOver",()=>{i("mouseOver"),o.value=!0,d()}),h.on("mouseOut",()=>{i("mouseOut"),o.value=!1,d()}),h.start())});function f(){H.copyToClipboard(H.getInnerText(r.value)).then(()=>{oh("复制成功")}).catch(m=>{oh(m.toString())})}function d(){switch(n.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 ${n.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 ${n.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 ${n.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 ${n.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 ${n.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 ${n.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 ${n.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 ${n.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 ${n.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 ${n.timeGap}ms ease,box-shadow ${n.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 ${n.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 ${n.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 ${n.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 ${n.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 ${n.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 ${n.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 ${n.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 ${n.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 ${n.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 ${n.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 ${n.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 ${n.timeGap*u}ms ease`,c={...l},c.bottom="0";break;case"circle":l.zIndex="2",l.backgroundColor="rgba(255,255,255,0)",l.borderRadius="100%",l.boxShadow=o.value?`
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
inset 0 -${l.width} 0 ${Zs(n.coverColor,.2)}`,l.transition="box-shadow 0.75s";break}}return re(()=>{h?.destroy()}),t({}),(m,v)=>(F(),X("div",{ref_key:"mouseOverContainer",ref:r,class:"mouse-over",style:W(a),onClick:f},[S("div",{class:"before",style:W({backgroundColor:n.coverColor,...Ft(l)})},null,4),S("div",Sy,[Gt(m.$slots,"default",{},void 0,!0)]),S("div",{class:"after",style:W({backgroundColor:n.coverColor,...Ft(c)})},null,4)],4))}}),tb="",eb="",Ey=ut(Cy,[["__scopeId","data-v-fe4ebfe5"]]),ky=lt({customOptions:{SVGDown:Ci},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(s,{expose:t,emit:e}){const n=s,i=e,r=V(Number.MAX_SAFE_INTEGER+"px"),o=V(),a=V(!0);let l;Dt(o,()=>{o.value&&(r.value=o.value.getBoundingClientRect().height+"px",l=new me(o.value),l.on("resize",(h,f)=>{i("resize",h,f)}),a.value=n.initOpen)});function c(){a.value=!a.value,a.value?i("open"):i("close")}const u=V("rotate(0deg)");return Ql(()=>{u.value=a.value?"rotate(0deg)":"rotate(-90deg)"}),re(()=>{l?.destroy()}),t({}),(h,f)=>(F(),X("div",{class:"wrap",style:W({background:n.bgColor,color:n.fontColor,borderRadius:n.borderRadius})},[S("div",{class:"title",onClick:c,style:W({height:n.height,lineHeight:n.height,margin:`0 ${n.padding}`,transitionDelay:`${a.value?0:n.duration}ms`,borderBottom:`${a.value?1:0}px solid ${n.borderColor}`})},[Gt(h.$slots,"title",{},()=>[Kt("title")],!0),pt(Ci,{class:"arrow",style:W({transition:`transform ${n.duration}ms ease-in-out`,transform:u.value})},null,8,["style"])],4),S("div",{ref_key:"content",ref:o,class:"content",style:W({margin:`0 ${n.padding}`,transition:`max-height ${n.duration}ms ease-in-out`,maxHeight:a.value?r.value:"0"})},[Gt(h.$slots,"content",{},void 0,!0)],4)],4))}}),sb="",Ty=ut(ky,[["__scopeId","data-v-9ced806f"]]),Oy=lt({__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(s,{expose:t,emit:e}){const n=s,i=e,r=V(0);function o(){r.value=0}function a(l){const c=r.value,u=Math.min(Math.max(0,l),100);fe.toTween({width:c},{width:u},{duration:Math.abs(u-c)*n.duringTimeGap,onStart:()=>{},onUpdate:h=>{r.value=h.width},onComplete:()=>{i("complete",r.value)}}).startAuto()}return t({start:o,goto:a}),(l,c)=>(F(),X("div",{class:"wrap",style:W({width:n.width,height:n.height,border:`1px solid ${n.borderColor}`,borderRadius:n.borderRadius,backgroundColor:n.bgColor})},[S("div",{class:"bar",style:W({width:r.value+"%",backgroundColor:n.progressColor})},kt(n.showText?r.value+"%":""),5)],4))}}),nb="",ki=ut(Oy,[["__scopeId","data-v-77dcb1dd"]]),Py=["width","height"],Dy=["src","type"],Iy={class:"bar-wrap"},Ny=lt({customOptions:{ProgressBar:ki},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(s,{expose:t,emit:e}){const n=s;function i(){fe.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=V(),o=V();Dt(r,()=>{r.value&&(r.value.addEventListener("play",i),n.autoplay&&ma.tryAutoPlayOrAutoPlayAfterClick(r.value))}),re(()=>{r.value?.removeEventListener(i)});function a(){r.value?.play()}return t({play:a}),(l,c)=>(F(),X("div",{class:"wrap",style:W({width:n.width,height:n.height}),onClick:a},[S("video",{ref_key:"video",ref:r,width:n.width,height:n.height,preload:"metadata"},[S("source",{src:n.src,type:n.type},null,8,Dy)],8,Py),S("div",Iy,[pt(ki,{ref_key:"bar",ref:o,width:n.width,height:"6px",bgColor:"#ffffff"},null,8,["width"])])],4))}}),ib="",My=ut(Ny,[["__scopeId","data-v-2bcf5d2e"]]),Ay=lt({...{},name:"Image",customOptions:{},inheritAttrs:!0,__name:"Image",props:{src:{},mode:{default:"scaleToFill"},bgColor:{default:"transparent"},openImageViewWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=V(),o=V(),a=V(0),l=V(0),c=V(0),u=V(0),h=V(1),f=V(0),d=V(0);hg(n.src).then(tt=>{c.value=tt.width,u.value=tt.height,h.value=tt.aspectRatio,D()});let m;Dt(r,()=>{r.value&&(m=new me(r.value,!1),m.on("resize",(tt,R)=>{a.value=tt,l.value=R,D()}),m.start())});let v=!1;const _={x:0,y:0,width:0,height:0};let E;function D(){if(!(!a.value||!l.value||!c.value||!u.value)){switch(n.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}$l(()=>{const tt=o.value.getBoundingClientRect();i("settled",tt.x,tt.y,f.value,d.value),v&&E(_.x,_.y,_.width,_.height)})}}function N(tt,R,U,vt){const bt=($t,se,ne,ue,Yt,xt,wt,it,q)=>{if(!Yt||!xt||!wt||!it){const $=Rt.vnode.el.getBoundingClientRect(),Ut=$.width,ge=$.height;let Ae=0,Re=0;h.value>=1?(Ae=Ut,Re=Ae/h.value,Re>ge&&(Re=ge,Ae=Re*h.value)):(Re=ge,Ae=Re*h.value,Ae>Ut.value&&(Ae=Ut.value,Re=Ae/h.value)),Yt=(Ut-Ae)/2,xt=(ge-Re)/2,wt=Ae,it=Re}const Et=200;fe.toTween({left:$t,top:se,width:ne,height:ue},{left:Yt,top:xt,width:wt,height:it},{duration:Et,onStart(){},onUpdate($){Ct.el.style.left=$.left+"px",Ct.el.style.top=$.top+"px",Ct.el.style.width=$.width+"px",Ct.el.style.height=$.height+"px"},onComplete($){_.x=$.left,_.y=$.top,_.width=$.width,_.height=$.height,q?.()}}).startAuto()},Ct=Ge("div",{style:`
|
|
77
|
+
`,c=R();return It(c,()=>{c.value&&U.setStyleSheet(l,c.value)}),pe(()=>{}),t({}),(u,h)=>(N(),j("div",{class:"input-range",ref_key:"inputRangeContainer",ref:c},[x("input",{type:"range",max:n.max,min:n.min,step:n.step,value:r.value,autofocus:n.autofocus,onInput:a,style:z({background:`linear-gradient(to right, ${n.color} 0%, ${n.color} ${o.value}%, ${n.barColor} ${o.value}%, ${n.barColor})`})},null,44,V0),u.showValue?(N(),j("label",F0,Et(r.value)+Et(n.unit),1)):Wt("",!0)],512))}}),gb="",Qs=ct(G0,[["__scopeId","data-v-75b06946"]]),z0=at({__name:"SVG",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["resize"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=R();It(r,()=>{r.value&&c()});let o,a,l;function c(){o||!r.value||(o=new xe(r.value,!1),o.on("resize",(h,f)=>{i("resize",h,f)}),a=new Mg(o),l?.(a),o.start())}function u(){return new Promise(h=>{if(a&&o.width&&o.height)return h(a);l=h})}return pe(()=>{o?.destroy()}),t({getSVGElement:()=>r.value,getSVG:u}),(h,f)=>(N(),j("div",{ref_key:"svgRef",ref:r,class:"svg",style:z({backgroundColor:n.bgColor})},null,4))}}),yb="",Lr=ct(z0,[["__scopeId","data-v-933ab3a5"]]),B0={class:"input-range-svg"},j0={key:0,class:"label"},Y0=at({customOptions:{SVG:Lr},inheritAttrs:!0,__name:"InputRangeSvg",props:{min:{default:0},max:{default:100},step:{default:1},defaultValue:{default:0},unit:{default:""},showValue:{type:Boolean,default:!0},color:{default:ot.colorPrimary},barColor:{default:ot.colorGrayF5},handleSize:{default:"20px"},barHeight:{default:"4px"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=R(n.defaultValue),o=f=>{r.value=f,i("change",f)},a=Ws(n.handleSize,20).number;let l;const c=()=>{l=new ih({x:0,y:a*.5,min:n.min,max:n.max,step:n.step,defaultValue:r.value,barWidth:u,handleSize:a,autoRender:!0}),l.on("change",o)};let u=0;const h=R();return It(h,()=>{h.value&&h.value.getSVG().then(f=>{u=f.app.width,f.clear(),c(),f.path(l),f.app.on("resize",d=>{u=d,f.clear(),c(),f.path(l)})})}),pe(()=>{}),t({}),(f,d)=>(N(),j("div",B0,[x("div",{class:"input",style:z({height:n.handleSize})},[pt(Lr,{ref_key:"svgRef",ref:h},null,512)],4),f.showValue?(N(),j("div",j0,Et(r.value)+Et(n.unit),1)):Wt("",!0)]))}}),vb="",H0=ct(Y0,[["__scopeId","data-v-1360472b"]]),X0=["width","height"],U0=["fill"],W0=at({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(N(),j("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,xmlns:"http://www.w3.org/2000/svg"},[x("path",{fill:t.color,d:"M7 21q-.825 0-1.412-.587T5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .825-.587 1.413T17 21zM17 6H7v13h10zM9 17h2V8H9zm4 0h2V8h-2zM7 6v13z"},null,8,U0)],8,X0))}}),_b="",$a=ct(W0,[["__scopeId","data-v-4747d4a7"]]),q0=at({customOptions:{SVGDelete:$a},inheritAttrs:!0,__name:"SlideLeftItem",props:{bgColor:{default:ot.colorGrayFF},deleteColor:{default:ot.colorRed},fontColor:{default:ot.colorGrayFF},borderRadius:{default:"4px"},deleteWidth:{default:"44px"},transtionDuration:{default:"150ms"}},emits:["delete"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=R(!1),o=()=>{i("delete"),r.value=!1};let a;const l=R();return It(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}))}),pe(()=>{a?.destroy()}),t({}),(c,u)=>(N(),j("div",{class:"parent",ref_key:"item",ref:l,style:z({backgroundColor:n.bgColor,borderRadius:n.borderRadius})},[x("div",{class:"content",style:z({transition:"all ease-in "+n.transtionDuration,transform:r.value?"translate(-"+n.deleteWidth+", 0)":"translate(0, 0)"})},[Nt(c.$slots,"default",{},void 0,!0)],4),x("div",{class:"delete",onClick:o,style:z({backgroundColor:n.deleteColor,width:n.deleteWidth,transition:"all ease-in "+n.transtionDuration,transform:r.value?"translate(0, 0)":"translate("+n.deleteWidth+", 0)"})},[pt($a,{color:n.fontColor},null,8,["color"])],4)],4))}}),bb="",Z0=ct(q0,[["__scopeId","data-v-244215c2"]]),K0=s=>{const t={};for(const e of s.attributes)t[e.name]=e.value;return t},Q0={class:"overlay-content",style:z(["position: relative","z-index: 6001","inset: 0","overflow-y: auto","width: 100% ","height: 100%"])},J0=at({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean},bgColor:{default:Or(ot.colorGray00,.25)},isGlobal:{type:Boolean,default:!0}},setup(s,{expose:t,emit:e}){const n=s,i=R();function r(o){n.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 It(()=>n.visible,()=>{r(n.visible)},{immediate:!0}),t({}),(o,a)=>n.visible?(N(),j("div",{key:0,ref_key:"overlayRef",ref:i,class:"overlay",style:z([`position: ${n.isGlobal?"fixed":"absolute"}`,"z-index: 6000 ","inset: 0",`background-color: ${n.bgColor};`])},[x("div",Q0,[Nt(o.$slots,"default",{},void 0,!0)])],4)):Wt("",!0)}}),xb="",Vn=ct(J0,[["__scopeId","data-v-fbdcceee"]]),ty=(s=>(fn("data-v-0dd2379f"),s=s(),pn(),s))(()=>x("div",null,null,-1)),ey=at({customOptions:{Overlay:Vn},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(s,{expose:t,emit:e}){const n=s,i=e,r=R();let o;const a=ne({}),l=ne({});function c(){switch(pi(a),pi(l),n.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}}It(()=>n.directionFrom,()=>{c()},{immediate:!0});const u=new ye,h=(k=!0)=>{!o||!r.value||(k?(u.fromDOM(r.value),u.toCSS(o,{easeName:"ease",dur:n.openDurTime,onComplete:()=>{i("open")}})):u.toCSS(o,{easeName:"ease",dur:n.closeDurTime,direction:"reverse",onComplete:()=>{y()}}))};It(r,()=>{r.value&&h(!0)},{});const f=R(!1);function d(){f.value=!0}function m(){n.directionFrom=="absolute"?y():h(!1)}function y(){f.value=!1,i("close")}function _(k){n.directionFrom=="absolute"?r.value&&r.value.children[0]&&!r.value.children[0].contains(k.target)&&n.closeWhenClickOverlay&&y():r.value&&!r.value.contains(k.target)&&n.closeWhenClickOverlay&&m()}return t({open:d,close:m}),(k,I)=>(N(),Zt(Vn,{visible:f.value,isGlobal:n.isGlobal,bgColor:n.overlayBgColor},{default:Bt(()=>[x("div",{class:"pop-parent",style:z([{position:"relative",width:"100%",height:"100%",overflow:"hidden"},a]),onClick:_},[x("div",{ref_key:"pop",ref:r,class:"pop",style:z([{position:"absolute","z-index":"3000"},l])},[Nt(k.$slots,"default",{},()=>[ty],!0)],4)],4)]),_:3},8,["visible","isGlobal","bgColor"]))}}),Sb="",Je=ct(ey,[["__scopeId","data-v-0dd2379f"]]),sy={class:"dialog-parent"},ny={key:0,class:"title"},iy={key:0,class:"title-inner truncate"},ry={class:"custom-content"},oy={class:"custom-content-default"},ay={key:1,class:"btns"},ly=at({customOptions:{Overlay:Vn,Pop:Je,Icon:wn,Button:we},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(s,{expose:t,emit:e}){const n=s,i=e,r=R(),o=R(""),a=R(""),l=R(!1),c=R(""),u=R("");let h,f,d;function m(I){o.value=I?.title||"",a.value=I?.content||"",l.value=typeof I?.showClose=="boolean"?I?.showClose:!1,c.value=I?.cancelText||"",u.value=I?.confirmText||"",r.value.open(),h=I?.onClose,f=I?.onCancel,d=I?.onConfirm,i("open")}function y(){r.value.close(),h?.(),i("close")}function _(){y(),f?.(),i("cancel")}function k(){y(),d?.(),i("confirm")}return t({open:m,close:y}),(I,M)=>(N(),Zt(Je,{ref_key:"popRef",ref:r,directionFrom:"center",closeWhenClickOverlay:n.closeWhenClickOverlay,openDurTime:n.openDurTime,closeDurTime:n.closeDurTime,overlayBgColor:n.overlayBgColor},{default:Bt(()=>[x("div",sy,[x("div",{class:"dialog",style:z({minWidth:n.minWidth,maxWidth:n.maxWidth})},[o.value||l.value?(N(),j("div",ny,[o.value?(N(),j("div",iy,Et(o.value),1)):Wt("",!0),l.value?(N(),j("div",{key:1,class:"close",onClick:y},[pt(wn,{icon:"ic:baseline-close",color:Lt(ot).colorGrayCC},null,8,["color"])])):Wt("",!0)])):Wt("",!0),x("div",ry,[Nt(I.$slots,"default",{},()=>[x("div",oy,Et(a.value),1)],!0)]),c.value||u.value?(N(),j("div",ay,[c.value?(N(),Zt(we,{key:0,onClick:_,class:"btn",bgColor:Lt(ot).colorGrayE6,borderColor:Lt(ot).colorGrayE6,fontColor:Lt(ot).colorGray33,borderRadius:"0"},{default:Bt(()=>[Jt(Et(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):Wt("",!0),u.value?(N(),Zt(we,{key:1,onClick:k,class:"btn",borderRadius:"0"},{default:Bt(()=>[Jt(Et(u.value),1)]),_:1})):Wt("",!0)])):Wt("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime","overlayBgColor"]))}}),Cb="",Oi=ct(ly,[["__scopeId","data-v-6bd255c9"]]),cy={class:"toast"},uy={class:"content"},hy=at({customOptions:{Overlay:Vn,Pop:Je,Dialog:Oi},inheritAttrs:!0,__name:"DialogToast",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=R(),o=R("");function a(c,u=1500){o.value=c,r.value.open(),i("open"),setTimeout(()=>{l()},u)}function l(){r.value.close(),i("close")}return t({open:a,close:l}),(c,u)=>(N(),Zt(Oi,{ref_key:"dialogRef",ref:r,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:n.closeWhenClickOverlay,openDurTime:n.openDurTime,closeDurTime:n.closeDurTime,overlayBgColor:"transparent",minWidth:"10em"},{default:Bt(()=>[x("div",cy,[x("div",uy,Et(o.value),1)])]),_:1},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),kb="",ah=ct(hy,[["__scopeId","data-v-50ed852e"]]),dy={class:"loading-8"},fy={viewBox:"25 25 50 50"},py=at({__name:"Loading8",props:{color:{default:ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(N(),j("div",dy,[(N(),j("svg",fy,[x("circle",{cx:"50",cy:"50",r:"20",style:z(["stroke: "+t.color])},null,4)]))]))}}),Eb="",La=ct(py,[["__scopeId","data-v-e5e3cf4c"]]),my={class:"loading"},gy={class:"icon"},yy={style:{width:"8em"}},vy={key:0,class:"content"},_y=at({customOptions:{Overlay:Vn,Pop:Je,Dialog:Oi,Loading8:La},inheritAttrs:!0,__name:"DialogLoading",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=R(),o=R("");function a(c){o.value=c||"",r.value.open(),i("open")}function l(){r.value.close(),i("close")}return t({open:a,close:l}),(c,u)=>(N(),Zt(Oi,{ref_key:"dialogRef",ref:r,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:n.closeWhenClickOverlay,openDurTime:n.openDurTime,closeDurTime:n.closeDurTime},{default:Bt(()=>[x("div",my,[x("div",gy,[Nt(c.$slots,"default",{},()=>[x("div",yy,[pt(La)])],!0)]),o.value?(N(),j("div",vy,Et(o.value),1)):Wt("",!0)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),Tb="",by=ct(_y,[["__scopeId","data-v-cb469a6c"]]),Va=s=>(fn("data-v-85491020"),s=s(),pn(),s),xy=[Va(()=>x("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)),Va(()=>x("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)),Va(()=>x("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))],wy=at({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(N(),j("svg",{style:z(["width: "+t.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},xy,4))}}),Db="",Vr=ct(wy,[["__scopeId","data-v-85491020"]]),Sy=["data-number"],Cy=["data-number","data-unactive"],ky=["data-number"],Ey=["data-number","data-unactive"],Ty=at({customOptions:{Pop:Je,SVGCleanUp:Vr},__name:"PlateKeyboard",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=R(),o=R(0),a=ne([]);function l(){a.length==0?o.value=0:a.length==1?o.value=1:o.value=2,a.length>=n.completePlateLength&&u()}It(()=>[...n.initPlates],()=>{mi(a,n.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=k=>{if(k.target.dataset.unactive||"")return;let M=k.target.dataset.number;M&&(a.push(M),l(),i("plates",a))};t({open:c,close:u});const d=["京","沪","津","渝","黑","吉","辽","蒙","冀","新","甘","青","陕","宁","豫","鲁","晋","皖","鄂","湘","苏","川","云","桂","藏","浙","赣","粤","闽","琼","贵"],m=["1","2","3","4","5","6","7","8","9","0"],y=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","Q","R","S","T","U","V","W","X","Y","Z"],_=["港","澳","学","警","使","领","挂","应","急"];return(k,I)=>(N(),Zt(Je,{ref_key:"popRef",ref:r,directionFrom:"bottom",isGlobal:!0,closeWhenClickOverlay:!1},{default:Bt(()=>[x("div",{class:"popup-plate",style:z({paddingBottom:Lt(ot).safeAreaBottom})},[x("div",null,[x("div",{onClick:u},"关闭")]),x("div",{class:le(["step",o.value==0?"":"hide"])},[(N(),j(Gt,null,be(d,M=>x("div",{key:M,class:"popitem",onClick:f,"data-number":M},Et(M),9,Sy)),64)),x("div",{class:"popitem popitem-clear",onClick:h},[pt(Vr,{width:"16px"})])],2),x("div",{class:le(["step",o.value!=0?"":"hide"])},[(N(),j(Gt,null,be(m,M=>x("div",{key:M,class:le(["popitem",o.value!=2?"unactive":""]),onClick:f,"data-number":M,"data-unactive":o.value!=2?"unactive":""},Et(M),11,Cy)),64)),(N(),j(Gt,null,be(y,M=>x("div",{key:M,class:"popitem",onClick:f,"data-number":M},Et(M),9,ky)),64)),(N(),j(Gt,null,be(_,M=>x("div",{key:M,class:le(["popitem",o.value!=2?"unactive":""]),onClick:f,"data-number":M,"data-unactive":o.value!=2?"unactive":""},Et(M),11,Ey)),64)),x("div",{class:"popitem popitem-clear",onClick:h},[pt(Vr,{width:"16px"})])],2)],4)]),_:1},512))}}),Mb="",lh=ct(Ty,[["__scopeId","data-v-bade3529"]]),ch=document.getElementById("teleport")||document.documentElement;function uh(s,t){{const e=ze(ah,{});pr(e,ch),e.component?.exposed?.open(s,t)}}function Oy(s,t="bottom"){let e;s instanceof HTMLElement?e=ze(Je,{directionFrom:t},()=>ze("div",{...K0(s),innerHTML:s.innerHTML})):e=ze(Je,{directionFrom:t},()=>s),pr(e,document.getElementById("teleport")||document.documentElement),e.component?.exposed?.open();const n=()=>{e.component?.exposed?.close()};return n.vnode=e,n}function Py(s){return Oy(s,"absolute")}function Iy(s){{const t=ze(lh,s);return pr(t,ch),t.component?.exposed?.open(),()=>{t.component?.exposed?.close()}}}const Dy=at({__name:"Container",props:{overflow:{default:"hidden"},type:{default:"block"},supportCopyText:{type:Boolean,default:!1},effectInit:{default:"leave"},effectTriggerTiming:{default:"none"},enter:{},leave:{},styleSheets:{}},emits:["ready","resize","mouseOver","mouseOut"],setup(s,{expose:t,emit:e}){const n=s,i=e;let r="leave";const o=()=>{r="enter",n.enter?.()},a=()=>{r="leave",n.leave?.()},l=()=>{r=="enter"?a():o()},c=()=>{r=="enter"?o():a()},u=R();let h,f;It(u,()=>{if(!(!u.value||h)){if(n.styleSheets){let y="";for(let _ in n.styleSheets)y+=`${_}: ${n.styleSheets[_]};`;U.setStyleSheet(`
|
|
78
|
+
:root {
|
|
79
|
+
${y}
|
|
80
|
+
}
|
|
81
|
+
:host {
|
|
82
|
+
${y}
|
|
83
|
+
}
|
|
84
|
+
`,u.value)}switch(h=new xe(u.value,!1),h.on("resize",(y,_)=>{i("resize",y,_),i("ready",y,_),f?.(h)}),h.on("mouseOver",()=>{i("mouseOver"),n.effectTriggerTiming=="mouseMove"&&l()}),h.on("mouseOut",()=>{i("mouseOut"),n.effectTriggerTiming=="mouseMove"&&l()}),h.start(),n.effectInit){case"enter":o();break;case"leave":a();break}}});function d(){n.effectTriggerTiming=="click"&&l(),n.supportCopyText&&U.copyToClipboard(U.getInnerText(u.value)).then(()=>{uh("复制成功")}).catch(y=>{uh(y.toString())})}pe(()=>{h?.destroy()});function m(){return new Promise(y=>{if(h)return y(h);f=y})}return t({getApp:m,reEffect:c}),(y,_)=>(N(),j("div",{ref_key:"containerRef",ref:u,class:le(["container",[n.type]]),style:z({overflow:n.overflow}),onClick:d},[Nt(y.$slots,"default",{},void 0,!0)],6))}}),Nb="",ce=ct(Dy,[["__scopeId","data-v-f8cbfaff"]]),My=at({customOptions:{Container:ce,SVGDown:Ti},inheritAttrs:!0,__name:"Accordion",props:{initOpen:{type:Boolean,default:!1},titleHeight:{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(s,{expose:t,emit:e}){const n=s,i=e,r=(h,f)=>{i("resize",h,f)},o=R(Number.MAX_SAFE_INTEGER+"px"),a=R(),l=R(!0);It(a,()=>{a.value&&(o.value=a.value.getBoundingClientRect().height+"px",l.value=n.initOpen)});function c(){l.value=!l.value,l.value?i("open"):i("close")}const u=R(0);return nc(()=>{u.value=l.value?0:-90}),t({}),(h,f)=>(N(),Zt(ce,{onResize:r},{default:Bt(()=>[x("div",{class:"accordion",style:z({background:n.bgColor,color:n.fontColor,borderRadius:n.borderRadius})},[x("div",{class:"accordion-title",onClick:c,style:z({height:n.titleHeight,lineHeight:n.titleHeight,margin:`0 ${n.padding}`,transitionDelay:`${l.value?0:n.duration}ms`,borderBottom:`${l.value?1:0}px solid ${n.borderColor}`})},[Nt(h.$slots,"title",{},()=>[Jt("title")],!0),pt(Ti,{class:"arrow",style:z({transition:`transform ${n.duration}ms ease-in-out`,transform:`rotate(${u.value}deg)`})},null,8,["style"])],4),x("div",{ref_key:"content",ref:a,class:"accordion-content",style:z({margin:`0 ${n.padding}`,transition:`max-height ${n.duration}ms ease-in-out`,maxHeight:l.value?o.value:"0"})},[Nt(h.$slots,"content",{},void 0,!0)],4)],4)]),_:3}))}}),Ab="",Ny=ct(My,[["__scopeId","data-v-ffd579ee"]]),Ay=at({__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(s,{expose:t,emit:e}){const n=s,i=e,r=R(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)*n.duringTimeGap,onStart:()=>{},onUpdate:h=>{r.value=h.width},onComplete:()=>{i("complete",r.value)}}).startAuto()}return t({start:o,goto:a}),(l,c)=>(N(),j("div",{class:"wrap",style:z({width:n.width,height:n.height,border:`1px solid ${n.borderColor}`,borderRadius:n.borderRadius,backgroundColor:n.bgColor})},[x("div",{class:"bar",style:z({width:r.value+"%",backgroundColor:n.progressColor})},Et(n.showText?r.value+"%":""),5)],4))}}),Rb="",Pi=ct(Ay,[["__scopeId","data-v-77dcb1dd"]]),Ry=["width","height"],$y=["src","type"],Ly={class:"bar-wrap"},Vy=at({customOptions:{ProgressBar:Pi},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(s,{expose:t,emit:e}){const n=s;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=R(),o=R();It(r,()=>{r.value&&(r.value.addEventListener("play",i),n.autoplay&&ba.tryAutoPlayOrAutoPlayAfterClick(r.value))}),pe(()=>{r.value?.removeEventListener(i)});function a(){r.value?.play()}return t({play:a}),(l,c)=>(N(),j("div",{class:"wrap",style:z({width:n.width,height:n.height}),onClick:a},[x("video",{ref_key:"video",ref:r,width:n.width,height:n.height,preload:"metadata"},[x("source",{src:n.src,type:n.type},null,8,$y)],8,Ry),x("div",Ly,[pt(Pi,{ref_key:"bar",ref:o,width:n.width,height:"6px",bgColor:"#ffffff"},null,8,["width"])])],4))}}),$b="",Fy=ct(Vy,[["__scopeId","data-v-2bcf5d2e"]]),Gy=at({...{},name:"Image",customOptions:{},inheritAttrs:!0,__name:"Image",props:{src:{},mode:{default:"scaleToFill"},bgColor:{default:"transparent"},openImageViewWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=R(),o=R(),a=R(0),l=R(0),c=R(0),u=R(0),h=R(1),f=R(0),d=R(0);_g(n.src).then(tt=>{c.value=tt.width,u.value=tt.height,h.value=tt.aspectRatio,I()});let m;It(r,()=>{r.value&&(m=new xe(r.value,!1),m.on("resize",(tt,L)=>{a.value=tt,l.value=L,I()}),m.start())});let y=!1;const _={x:0,y:0,width:0,height:0};let k;function I(){if(!(!a.value||!l.value||!c.value||!u.value)){switch(n.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}zl(()=>{const tt=o.value.getBoundingClientRect();i("settled",tt.x,tt.y,f.value,d.value),y&&k(_.x,_.y,_.width,_.height)})}}function M(tt,L,W,vt){const bt=(Vt,re,oe,me,Ht,xt,wt,it,q)=>{if(!Ht||!xt||!wt||!it){const V=$t.vnode.el.getBoundingClientRect(),qt=V.width,_e=V.height;let Re=0,$e=0;h.value>=1?(Re=qt,$e=Re/h.value,$e>_e&&($e=_e,Re=$e*h.value)):($e=_e,Re=$e*h.value,Re>qt.value&&(Re=qt.value,$e=Re/h.value)),Ht=(qt-Re)/2,xt=(_e-$e)/2,wt=Re,it=$e}const kt=200;ye.toTween({left:Vt,top:re,width:oe,height:me},{left:Ht,top:xt,width:wt,height:it},{duration:kt,onStart(){},onUpdate(V){Ct.el.style.left=V.left+"px",Ct.el.style.top=V.top+"px",Ct.el.style.width=V.width+"px",Ct.el.style.height=V.height+"px"},onComplete(V){_.x=V.left,_.y=V.top,_.width=V.width,_.height=V.height,q?.()}}).startAuto()},Ct=ze("div",{style:`
|
|
86
85
|
position:absolute;
|
|
87
86
|
left:${tt}px;
|
|
88
|
-
top:${
|
|
89
|
-
width: ${
|
|
87
|
+
top:${L}px;
|
|
88
|
+
width: ${W}px;
|
|
90
89
|
height: ${vt}px;
|
|
91
90
|
background-image: url(${n.src});
|
|
92
91
|
background-repeat: no-repeat;
|
|
93
92
|
background-position: center center;
|
|
94
|
-
background-size: 100% 100%`,onVnodeMounted:()=>{bt(tt,
|
|
93
|
+
background-size: 100% 100%`,onVnodeMounted:()=>{bt(tt,L,W,vt)}}),$t=Py(ze("div",{style:`
|
|
95
94
|
position:absolute;
|
|
96
95
|
width: 100%;
|
|
97
96
|
height: 100%;
|
|
@@ -99,7 +98,7 @@ Expected function or array of functions, received type ${typeof s}.`),ae)}functi
|
|
|
99
98
|
display: flex;
|
|
100
99
|
justify-content: center;
|
|
101
100
|
align-items: center;
|
|
102
|
-
`,onClick:()=>{const{x:$t,y:se,width:ne,height:ue}=o.value.getBoundingClientRect();bt(_.x,_.y,_.width,_.height,$t,se,ne,ue,()=>{Rt(),v=!1})}},Ct));return bt}function k(){if(!r.value||!n.openImageViewWhenClick)return;v=!0;const{x:tt,y:R,width:U,height:vt}=o.value.getBoundingClientRect();E=N(tt,R,U,vt)}return re(()=>{m?.destroy()}),t({}),(tt,R)=>(F(),X("div",{ref_key:"imageOutterRef",ref:r,class:"image",style:W({backgroundColor:n.bgColor}),onClick:k},[S("div",{ref_key:"imageInnerRef",ref:o,class:"image-inner",style:W({width:f.value+"px",height:d.value+"px",backgroundImage:`url(${n.src})`,backgroundSize:`${f.value}px ${d.value}px`})},null,4)],4))}}),ob="",Aa=ut(Ay,[["__scopeId","data-v-34d166d5"]]),Ry=lt({customOptions:{},inheritAttrs:!0,__name:"Routes",props:{direction:{default:"rightToLeft"},duration:{default:300},easeName:{default:"ease-in-out"}},emits:["finish"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=V();let o=[],a;const l=new fe;let c=0,u=!1;const h={};function f(){switch(di(h),n.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&&(hr(Ge("div",{class:"routes-inner-wrap",style:"height: 100%;"},o.map(R=>Ge("div",{class:"route-page",style:"display: block; position: relative; width: 100%; min-height: 100%;"},Ge(R.component,{...R.attributes,style:{...R.attributes.style||{},...h}})))),r.value),l?.fromDOM([...r.value.children[0].children]))}const m=R=>{if(!(!a||u||!o.length)){if(u=!0,R.push&&(c=o.length-1),R.pop){if(!o.length){u=!1;return}c=o.length-1}if(R.reset&&(c=0),R.forward){if(c>=o.length-1){u=!1;return}c++}if(R.back&&c<=0){u=!1;return}l.toCSS(a,{easeName:n.easeName,dur:R?.dur??n.duration,direction:R.back||R.pop?"reverse":"normal",onComplete:()=>{(R.back||R.pop)&&c--,R.pop&&(o.pop(),d()),i("finish",c),u=!1,R?.onComplete?.()}},c)}};function v(R=[],U){o=[],R.forEach(vt=>o.push({component:vt.component,attributes:vt.attributes??{}})),d(),m({reset:!0,onComplete:U})}function _(R,U={}){o.push({component:R,attributes:U}),d(),m({push:!0})}function E(){m({pop:!0})}function D(){m({forward:!0})}function N(){m({back:!0})}function k(R,U){R>o.length-1||R<0||R==c||(U||(U=n.duration/Math.abs(R-c)),c<R?m({forward:!0,dur:U,onComplete:()=>{setTimeout(()=>{k(R,U)})}}):m({back:!0,dur:U,onComplete:()=>{setTimeout(()=>{k(R,U)})}}))}function tt(){d(),m({resize:!0})}return js(()=>{me.page.on("resize",tt)}),re(()=>{me.page.off("resize",tt)}),t({reset:v,push:_,pop:E,forward:D,back:N,goto:k}),(R,U)=>(F(),X("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))}}),ab="",ah=ut(Ry,[["__scopeId","data-v-e9c68065"]]),$y={style:{position:"absolute",width:"100%",height:"100%"}},Vy={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},Ly=lt({customOptions:{Image:Aa},inheritAttrs:!0,__name:"ImageView",props:{urls:{default:()=>[]}},setup(s,{expose:t,emit:e}){const n=s,i=V(),r=V(),o=V(),a=V(0);let l;function c(m){a.value=m}function u(){o.value?.forward()}function h(){o.value?.back()}Dt(r,()=>{r.value&&(l?.destroy(),l=new me(r.value),l.on("panLeft",u),l.on("panRight",h),l.on("tap",d))}),Dt(o,()=>{o.value&&o.value.reset(n.urls.map(m=>({component:Ge("div",{style:"position:absolute;width:100%;height:100%"},Ge(Aa,{mode:"aspectFit",src:m,openImageViewWhenClick:!1}))})))});function f(){i.value?.open()}function d(){i.value?.close()}return re(()=>{l?.destroy()}),t({open:f,close:d}),(m,v)=>(F(),Ie(Qe,{ref_key:"popRef",ref:i,directionFrom:"absolute"},{default:he(()=>[S("div",$y,[n.urls.length>1?(F(),X("div",Vy,kt(a.value+1)+" / "+kt(n.urls.length),1)):qt("",!0),S("div",{ref_key:"pageRef",ref:r,style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"}},[pt(ah,{ref_key:"routesRef",ref:o,direction:n.urls.length>1?"rightToLeft":"none",duration:600,onFinish:c},null,8,["direction"])],512)])]),_:1},512))}}),lb="",Fy=ut(Ly,[["__scopeId","data-v-be51d205"]]),cb="",Gy={class:"page"},zy={class:"header"},jy={class:"main"},By={class:"main-scroll"},Yy={class:"footer"},Xy=lt({customOptions:{},inheritAttrs:!0,__name:"LayoutMobile",props:{designWidth:{default:750}},setup(s,{expose:t,emit:e}){return qm(s.designWidth),t({}),(i,r)=>(F(),X("div",Gy,[S("header",zy,[Gt(i.$slots,"header",{},void 0,!0)]),S("div",jy,[S("div",By,[Gt(i.$slots,"main",{},void 0,!0)])]),S("footer",Yy,[Gt(i.$slots,"footer",{},void 0,!0)])]))}}),ub="",Hy=ut(Xy,[["__scopeId","data-v-3904d6b5"]]),Uy=lt({customOptions:{},inheritAttrs:!0,__name:"LayoutCenter",props:{type:{default:"grid"}},setup(s,{expose:t,emit:e}){const n=s,i=Pe({}),r=Pe({});function o(){switch(di(i),di(r),n.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(),re(()=>{}),t({}),(a,l)=>(F(),X("div",{class:"layout-center",style:W(i)},[S("div",{style:W(r)},[Gt(a.$slots,"default",{},void 0,!0)],4)],4))}}),hb="",Wy=ut(Uy,[["__scopeId","data-v-a768b36f"]]),qy=(s=>(On("data-v-d02782ac"),s=s(),Pn(),s))(()=>S("div",{style:{"background-color":"#ffffff"}},"popover-default-panel",-1)),Zy=lt({customOptions:{Pop:Qe,Button:ve},inheritAttrs:!0,__name:"Popover",props:{gap:{default:10},isGlobal:{type:Boolean,default:!0}},setup(s){const t=s,e=V(),n=V(),i=V(),r=Pe({left:"0",top:"0"});Dt(n,()=>{o()}),Dt(i,()=>{o()});function o(){if(!n.value||!i.value)return;const l=Fu(),c=n.value.getBoundingClientRect(),u=i.value.getBoundingClientRect(),h=u.width,f=u.height;let d=c.x+c.width+t.gap,m=c.y;d=Math.max(t.gap,Math.min(d,l.width-h-t.gap)),m=Math.max(t.gap,Math.min(m,l.height-f-t.gap)),r.left=`${d}px`,r.top=`${m}px`}function a(){e.value.open()}return(l,c)=>(F(),X(zt,null,[S("div",{ref_key:"popoverButtonRef",ref:n,style:{display:"inline-block"},onClick:a},[Gt(l.$slots,"button",{},()=>[pt(ve,null,{default:he(()=>[Kt("popover-default-button")]),_:1})],!0)],512),pt(Qe,{ref_key:"popRef",ref:e,"direction-from":"absolute",isGlobal:t.isGlobal},{default:he(()=>[S("div",{ref_key:"popoverPanelRef",ref:i,style:W([{display:"inline-block",position:"absolute"},r])},[Gt(l.$slots,"panel",{},()=>[qy],!0)],4)]),_:3},8,["isGlobal"])],64))}}),fb="",Ra=ut(Zy,[["__scopeId","data-v-d02782ac"]]),Ky={class:"tab"},Qy=lt({name:"Tab",customOptions:{},inheritAttrs:!0,__name:"Tab",props:{label:{}},setup(s,{expose:t}){return t({}),(e,n)=>(F(),X("div",Ky,[Gt(e.$slots,"default",{},void 0,!0)]))}}),pb="",Jy=ut(Qy,[["__scopeId","data-v-6589e7fa"]]),tv={class:"tabs"},ev=["onClick"],sv={class:"content"},nv=lt({customOptions:{},inheritAttrs:!0,__name:"Tabs",props:{labels:{},pages:{},initIndex:{default:0}},emits:["changedIndex"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=V(n.initIndex),o=Pe([]),a=V(),l=V(0),c=V(0),u=V(0),h=V([]),f=[],d=cf(),m=d.default&&d.default();m&&(fi(o,m),E(r.value));const v=(N,k)=>{if(N){if(f.push({index:k,el:N}),f.length<o.length)return;h.value=f}};Dt([a,h],()=>{_()});function _(){if(a.value&&h.value.length){const N=a.value.getBoundingClientRect(),k=h.value[r.value].el.getBoundingClientRect();l.value=k.x-N.x,c.value=k.y-N.y+k.height-2,u.value=k.width}}function E(N){r.value=N,i("changedIndex",N),_(),D.value.goto(N)}const D=V();return Dt(D,()=>{D.value&&D.value.reset(n.pages,()=>{D.value.goto(n.initIndex)})}),t({}),(N,k)=>(F(),X("div",tv,[S("div",{class:"header",ref_key:"headerRef",ref:a},[(F(!0),X(zt,null,Ce(n.labels,(tt,R)=>(F(),X("div",{key:tt,class:ye(R==r.value?"active":""),onClick:U=>E(R)},[S("div",{ref_for:!0,ref:U=>v(U,R)},kt(tt),513)],10,ev))),128)),S("div",{class:"indicator",style:W({top:c.value+"px",left:l.value+"px",width:u.value+"px",height:"2px"})},null,4)],512),S("div",sv,[pt(ah,{ref_key:"routesRef",ref:D,direction:"rightToLeft",duration:200},null,512)])]))}}),mb="",iv=ut(nv,[["__scopeId","data-v-e74e266d"]]),rv=["width","height"],ov=lt({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(s,{expose:t,emit:e}){const n=s;let i=()=>{};const r=V();return Dt(r,()=>{if(!r.value)return;const o=new me(r.value),a=new eh(o,!0);a.ctx.strokeStyle=n.brushColor,a.ctx.lineWidth=n.brushSize,a.drawMouseMoveLine("line"),i=()=>{vn.downloadFromSVGString(a.ctx.toRawSVG().raw,n.downloadFileName)}}),t({download:()=>i()}),(o,a)=>(F(),X("canvas",{ref_key:"panelRef",ref:r,width:n.canvasWidth,height:n.canvasHeight,style:W([`border: 1px solid ${o.borderColor}`])},null,12,rv))}}),av={class:"wrap",style:{}},lv=lt({customOptions:{ProgressBar:ki},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(s,{expose:t,emit:e}){const n=s,i=e,r=V(),o=()=>{const a=Bm();i("progress",a),r.value?.goto(a)};return me.page.registerGlobalScrollChange(o),re(()=>{me.page.removeGlobalScrollChange(o)}),t({}),(a,l)=>(F(),X("div",av,[pt(ki,{ref_key:"bar",ref:r,width:"100%",height:"100%",bgColor:n.bgColor,progressColor:n.progressColor,borderColor:n.borderColor,borderRadius:n.borderRadius,duringTimeGap:n.duringTimeGap,showText:n.showText},null,8,["bgColor","progressColor","borderColor","borderRadius","duringTimeGap","showText"])]))}}),gb="",cv=ut(lv,[["__scopeId","data-v-2e31cfe2"]]),uv=["fill"],hv=["fill"],dv=lt({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),X("svg",{style:W(["width: "+t.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[S("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:t.color},null,8,uv),S("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:t.color},null,8,hv)],4))}}),yb="",$a=ut(dv,[["__scopeId","data-v-987aed3d"]]),$r=s=>(On("data-v-5f064292"),s=s(),Pn(),s),fv=$r(()=>S("div",{class:"title"},"车牌颜色",-1)),pv={class:"plate-types"},mv=["onClick"],gv=$r(()=>S("div",{class:"title"},"车牌号码",-1)),yv={class:"plate-numbers"},vv=$r(()=>S("div",{class:"dot"},"·",-1)),_v=["onClick"],bv=$r(()=>S("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1)),xv=lt({customOptions:{SVGCheck:$a},__name:"PlateMobile",props:{maxWidth:{default:"750px"}},emits:["clear","complete"],setup(s,{expose:t,emit:e}){const n=s,i=e,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=V(0),a=Pe([]),l=V(-1);function c(){wy({initPlates:a,completePlateLength:r[o.value].completePlateLength,onPlates:f=>{fi(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")):fi(a,a.slice(0,r[f].completePlateLength)),r[f].completePlateLength===a.length&&i("complete",r[o.value].name,a.join(""))},h=f=>{fi(a,a.slice(0,f)),l.value=Math.min(Math.max(0,l.value),f),c(),i("clear")};return t({}),(f,d)=>(F(),X("div",Ro(f.$attrs,{class:"plate-mobile",style:{maxWidth:n.maxWidth}}),[fv,S("div",pv,[(F(),X(zt,null,Ce(r,(m,v)=>S("div",{key:v,class:ye(v==o.value?"checked":""),onClick:_=>u(v)},[S("div",{style:W(m.style)},null,4),S("div",null,kt(m.name),1),S("div",null,[pt($a,{color:"#ffffff",width:"0.14rem"})])],10,mv)),64))]),gv,S("div",yv,[S("div",{onClick:d[0]||(d[0]=m=>h(0)),class:ye(l.value==0?"current":"")},kt(a[0]),3),S("div",{onClick:d[1]||(d[1]=m=>h(1)),class:ye(l.value==1?"current":"")},kt(a[1]),3),vv,(F(!0),X(zt,null,Ce(r[o.value].completePlateLength-2,m=>(F(),X("div",{key:m,class:ye(m+1==l.value?"current":""),onClick:v=>h(m+1)},kt(a[m+1]),11,_v))),128))]),bv],16))}}),vb="",wv=ut(xv,[["__scopeId","data-v-5f064292"]]),Sv={class:"parent"},Cv=lt({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay",props:{plate:{},plateType:{},displayType:{default:"chinese"},fontColor:{},fontSize:{}},setup(s,{expose:t,emit:e}){const n=s,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(n.plate),l=V(o(n.plateType));let c=n.fontColor,u=n.fontSize;switch(n.displayType){case"dot":c=c??"#999999",u=u??"14px";break;case"chinese":c=c??"#333333",u=u??"20px";break}return t({}),(h,f)=>(F(),X("div",Sv,[S("div",{class:ye(["leading",n.displayType]),style:W(l.value.style)},kt(l.value.name),7),S("div",{class:"text",style:W({color:Ft(c),"font-size":Ft(u)})},kt(Ft(a)),5)]))}}),_b="",Ev=ut(Cv,[["__scopeId","data-v-11a104c3"]]),Ln=(s,t=0,e=1)=>s>e?e:s<t?t:s,_e=(s,t=0,e=Math.pow(10,t))=>Math.round(e*s)/e,kv=s=>Dv(Va(s)),Va=s=>(s[0]==="#"&&(s=s.substring(1)),s.length<6?{r:parseInt(s[0]+s[0],16),g:parseInt(s[1]+s[1],16),b:parseInt(s[2]+s[2],16),a:s.length===4?_e(parseInt(s[3]+s[3],16)/255,2):1}:{r:parseInt(s.substring(0,2),16),g:parseInt(s.substring(2,4),16),b:parseInt(s.substring(4,6),16),a:s.length===8?_e(parseInt(s.substring(6,8),16)/255,2):1}),Tv=s=>Pv(Ov(s)),lh=({h:s,s:t,v:e,a:n})=>{const i=(200-t)*e/100;return{h:_e(s),s:_e(i>0&&i<200?t*e/100/(i<=100?i:200-i)*100:0),l:_e(i/2),a:_e(n,2)}},La=s=>{const{h:t,s:e,l:n}=lh(s);return`hsl(${t}, ${e}%, ${n}%)`},Fa=s=>{const{h:t,s:e,l:n,a:i}=lh(s);return`hsla(${t}, ${e}%, ${n}%, ${i})`},Ov=({h:s,s:t,v:e,a:n})=>{s=s/360*6,t=t/100,e=e/100;const i=Math.floor(s),r=e*(1-t),o=e*(1-(s-i)*t),a=e*(1-(1-s+i)*t),l=i%6;return{r:_e([e,o,r,r,a,e][l]*255),g:_e([a,e,e,o,r,r][l]*255),b:_e([r,r,a,e,e,o][l]*255),a:_e(n,2)}},Vr=s=>{const t=s.toString(16);return t.length<2?"0"+t:t},Pv=({r:s,g:t,b:e,a:n})=>{const i=n<1?Vr(_e(n*255)):"";return"#"+Vr(s)+Vr(t)+Vr(e)+i},Dv=({r:s,g:t,b:e,a:n})=>{const i=Math.max(s,t,e),r=i-Math.min(s,t,e),o=r?i===s?(t-e)/r:i===t?2+(e-s)/r:4+(s-t)/r:0;return{h:_e(60*(o<0?o+6:o)),s:_e(i?r/i*100:0),v:_e(i/255*100),a:n}},ch=(s,t)=>{if(s===t)return!0;for(const e in s)if(s[e]!==t[e])return!1;return!0},Iv=(s,t)=>s.toLowerCase()===t.toLowerCase()?!0:ch(Va(s),Va(t)),uh={},hh=s=>{let t=uh[s];return t||(t=document.createElement("template"),t.innerHTML=s,uh[s]=t),t},Ga=(s,t,e)=>{s.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:e}))};let Fn=!1;const za=s=>"touches"in s,Nv=s=>Fn&&!za(s)?!1:(Fn||(Fn=za(s)),!0),dh=(s,t)=>{const e=za(t)?t.touches[0]:t,n=s.el.getBoundingClientRect();Ga(s.el,"move",s.getMove({x:Ln((e.pageX-(n.left+window.pageXOffset))/n.width),y:Ln((e.pageY-(n.top+window.pageYOffset))/n.height)}))},Mv=(s,t)=>{const e=t.keyCode;e>40||s.xy&&e<37||e<33||(t.preventDefault(),Ga(s.el,"move",s.getMove({x:e===39?.01:e===37?-.01:e===34?.05:e===33?-.05:e===35?1:e===36?-1:0,y:e===40?.01:e===38?-.01:0},!0)))};class ja{constructor(t,e,n,i){const r=hh(`<div role="slider" tabindex="0" part="${e}" ${n}><div part="${e}-pointer"></div></div>`);t.appendChild(r.content.cloneNode(!0));const o=t.querySelector(`[part=${e}]`);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(t){const e=t?document.addEventListener:document.removeEventListener;e(Fn?"touchmove":"mousemove",this),e(Fn?"touchend":"mouseup",this)}handleEvent(t){switch(t.type){case"mousedown":case"touchstart":if(t.preventDefault(),!Nv(t)||!Fn&&t.button!=0)return;this.el.focus(),dh(this,t),this.dragging=!0;break;case"mousemove":case"touchmove":t.preventDefault(),dh(this,t);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":Mv(this,t);break}}style(t){t.forEach((e,n)=>{for(const i in e)this.nodes[n].style.setProperty(i,e[i])})}}class Av extends ja{constructor(t){super(t,"hue",'aria-label="Hue" aria-valuemin="0" aria-valuemax="360"',!1)}update({h:t}){this.h=t,this.style([{left:`${t/360*100}%`,color:La({h:t,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${_e(t)}`)}getMove(t,e){return{h:e?Ln(this.h+t.x*360,0,360):360*t.x}}}class Rv extends ja{constructor(t){super(t,"saturation",'aria-label="Color"',!0)}update(t){this.hsva=t,this.style([{top:`${100-t.v}%`,left:`${t.s}%`,color:La(t)},{"background-color":La({h:t.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${_e(t.s)}%, Brightness ${_e(t.v)}%`)}getMove(t,e){return{s:e?Ln(this.hsva.s+t.x*100,0,100):t.x*100,v:e?Ln(this.hsva.v-t.y*100,0,100):Math.round(100-t.y*100)}}}const $v=':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)}',Vv="[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}",Lv="[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}",Lr=Symbol("same"),Ba=Symbol("color"),fh=Symbol("hsva"),Ya=Symbol("update"),ph=Symbol("parts"),Fr=Symbol("css"),Gr=Symbol("sliders");let Fv=class extends HTMLElement{static get observedAttributes(){return["color"]}get[Fr](){return[$v,Vv,Lv]}get[Gr](){return[Rv,Av]}get color(){return this[Ba]}set color(t){if(!this[Lr](t)){const e=this.colorModel.toHsva(t);this[Ya](e),this[Ba]=t}}constructor(){super();const t=hh(`<style>${this[Fr].join("")}</style>`),e=this.attachShadow({mode:"open"});e.appendChild(t.content.cloneNode(!0)),e.addEventListener("move",this),this[ph]=this[Gr].map(n=>new n(e))}connectedCallback(){if(this.hasOwnProperty("color")){const t=this.color;delete this.color,this.color=t}else this.color||(this.color=this.colorModel.defaultColor)}attributeChangedCallback(t,e,n){const i=this.colorModel.fromAttr(n);this[Lr](i)||(this.color=i)}handleEvent(t){const e=this[fh],n={...e,...t.detail};this[Ya](n);let i;!ch(n,e)&&!this[Lr](i=this.colorModel.fromHsva(n))&&(this[Ba]=i,Ga(this,"color-changed",{value:i}))}[Lr](t){return this.color&&this.colorModel.equal(t,this.color)}[Ya](t){this[fh]=t,this[ph].forEach(e=>e.update(t))}};class Gv extends ja{constructor(t){super(t,"alpha",'aria-label="Alpha" aria-valuemin="0" aria-valuemax="1"',!1)}update(t){this.hsva=t;const e=Fa({...t,a:0}),n=Fa({...t,a:1}),i=t.a*100;this.style([{left:`${i}%`,color:Fa(t)},{"--gradient":`linear-gradient(90deg, ${e}, ${n}`}]);const r=_e(i);this.el.setAttribute("aria-valuenow",`${r}`),this.el.setAttribute("aria-valuetext",`${r}%`)}getMove(t,e){return{a:e?Ln(this.hsva.a+t.x):t.x}}}const zv=`[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 jv extends Fv{get[Fr](){return[...super[Fr],zv]}get[Gr](){return[...super[Gr],Gv]}}const Bv={defaultColor:"#0001",toHsva:kv,fromHsva:Tv,equal:Iv,fromAttr:s=>s};class Yv extends jv{get colorModel(){return Bv}}class Xv extends Yv{}customElements.define("hex-alpha-color-picker",Xv);const Hv=lt({customOptions:{Popover:Ra},__name:"ColorPicker",props:{color:{default:ot.colorPrimary}},emits:["change"],setup(s,{emit:t}){const e=s,n=t,i=V(e.color);Dt(i,(a,l)=>{a!==l&&n("change",a)});const r=V(),o=a=>{i.value=a.detail.value};return Dt(r,()=>{r.value&&(r.value.removeEventListener("color-changed",o),r.value.addEventListener("color-changed",o))}),(a,l)=>{const c=Gd("hex-alpha-color-picker");return F(),Ie(Ra,null,{button:he(()=>[Gt(a.$slots,"default",{},()=>[S("span",{class:"button",style:W({backgroundColor:i.value})},null,4)],!0)]),panel:he(()=>[pt(c,{ref_key:"colorPickerRef",ref:r,color:i.value},null,8,["color"])]),_:3})}}}),bb="",Uv=ut(Hv,[["__scopeId","data-v-ac12603f"]]),xb="",Wv={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 s=document.createElement("object");this._resizeObject=s,s.setAttribute("aria-hidden","true"),s.setAttribute("tabindex",-1),s.onload=this.addResizeHandlers,s.type="text/html",ca&&this.$el.appendChild(s),s.data="about:blank",ca||this.$el.appendChild(s)},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&&(!ca&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},qv={class:"resize-observer",tabindex:"-1"};function Zv(s,t,e,n,i,r){return F(),X("div",qv)}const Kv=ut(Wv,[["render",Zv],["__scopeId","data-v-d5987ae1"]]),Qv=lt({__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(s,{expose:t,emit:e}){const n=s,i=V(n.mapWidth),r=V(n.mapHeight);let o;const a=V();return Dt(a,()=>{a.value&&(o=new me(a.value,!1),o.on("resize",(l,c)=>{i.value=l+"px",r.value=c+"px"}),o.start())}),js(()=>{H.loadScript(`http://api.tianditu.gov.cn/api?v=4.0&tk=${n.mapKey}`,()=>{new Gg(n.mapContainerID,n.mapCenterLng,n.mapCenterLat,n.mapZoom)},l=>{console.log("error",l)})}),re(()=>{o.destroy()}),t({}),(l,c)=>(F(),X("div",Ro({class:"mapDivWrap",ref_key:"mapWrap",ref:a},l.$attrs),[Gt(l.$slots,"default",{width:i.value,height:r.value},void 0,!0)],16))}}),wb="",Jv=ut(Qv,[["__scopeId","data-v-e5da8598"]]);var Ti=function(){var s=0,t=document.createElement("div");t.style.cssText="position:fixed;top:0;right:0;cursor:pointer;opacity:0.9;z-index:10000",t.addEventListener("click",function(u){u.preventDefault(),n(++s%t.children.length)},!1);function e(u){return t.appendChild(u.dom),u}function n(u){for(var h=0;h<t.children.length;h++)t.children[h].style.display=h===u?"block":"none";s=u}var i=(performance||Date).now(),r=i,o=0,a=e(new Ti.Panel("FPS","#0ff","#002")),l=e(new Ti.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var c=e(new Ti.Panel("MB","#f08","#201"));return n(0),{REVISION:16,dom:t,addPanel:e,showPanel:n,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:t,setMode:n}};Ti.Panel=function(s,t,e){var n=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 _=v.getContext("2d");return _.font="bold "+9*o+"px Helvetica,Arial,sans-serif",_.textBaseline="top",_.fillStyle=e,_.fillRect(0,0,a,l),_.fillStyle=t,_.fillText(s,c,u),_.fillRect(h,f,d,m),_.fillStyle=e,_.globalAlpha=.9,_.fillRect(h,f,d,m),{dom:v,update:function(E,D){n=Math.min(n,E),i=Math.max(i,E),_.fillStyle=e,_.globalAlpha=1,_.fillRect(0,0,a,f),_.fillStyle=t,_.fillText(r(E)+" "+s+" ("+r(n)+"-"+r(i)+")",c,u),_.drawImage(v,h+o,f,d-o,m,h,f,d-o,m),_.fillRect(h+d-o,f,o,m),_.fillStyle=e,_.globalAlpha=.9,_.fillRect(h+d-o,f,o,r((1-E/D)*m))}}};const t1=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats",setup(s,{expose:t}){const e=V();return js(()=>{const n=new Ti,i=n.domElement.style;i.margin="1em",e.value.appendChild(n.domElement),jt.run(()=>(n.update(),!0))}),t({}),(n,i)=>(F(),X("div",{ref_key:"containerRef",ref:e},null,512))}}),e1=["width","height"],s1=lt({__name:"Canvas",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["resize"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=V(),o=V(),a=V(0),l=V(0);let c;Dt(r,()=>{r.value&&(c=new me(r.value,!1),c.on("resize",(v,_)=>{const E=Fu();a.value=Math.min(v,E.width),l.value=Math.min(_,E.height),d()}),c.start())}),Dt(o,()=>{o.value&&d()});let u,h,f;function d(){u||!o.value||!a.value||!l.value||(u=new me(o.value,!1),u.on("resize",(v,_)=>{h=new eh(u),i("resize",v,_),f?.(h)}),u.start())}function m(){return new Promise(v=>{if(h&&u.width&&u.height)return v(h);f=v})}return re(()=>{u?.destroy(),c?.destroy()}),t({getCanvasElement:()=>o.value,getCanvas:m}),(v,_)=>(F(),X("div",{class:"canvas-wrap",ref_key:"canvasWrapRef",ref:r},[S("canvas",{ref_key:"canvasRef",ref:o,width:a.value,height:l.value,style:W({backgroundColor:n.bgColor})},null,12,e1)],512))}}),Cb="",Js=ut(s1,[["__scopeId","data-v-d6a232ce"]]),n1={class:"ease-graph"},i1=lt({customOptions:{Button:ve,Canvas:Js},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(s,{expose:t,emit:e}){const n=s,i=e,r=V();let o;Dt(r,()=>{r.value&&r.value.getCanvas().then(u=>{o=u,i("onMounted",n.easeName),o.app.on("showInParent",l)})});let a=!1;const l=()=>{if(!o||a)return;a=!0,i("onStart",n.easeName),o.ctx.fillStyle="rgb(250,250,250)",o.ctx.fillRect(0,0,n.canvasWidth,n.canvasHeight),o.ctx.lineWidth=.5,o.ctx.strokeStyle="rgb(230,230,230)",o.ctx.beginPath(),o.ctx.moveTo(0,n.graphVerticalGap),o.ctx.lineTo(n.canvasWidth,n.graphVerticalGap),o.ctx.moveTo(0,n.canvasHeight-n.graphVerticalGap),o.ctx.lineTo(n.canvasWidth,n.canvasHeight-n.graphVerticalGap),o.ctx.closePath(),o.ctx.stroke(),o.ctx.lineWidth=2,o.ctx.strokeStyle="rgb(255,127,127)";const u={x:n.graphHorizontalGap,y:n.canvasHeight-n.graphVerticalGap},h={x:n.graphHorizontalGap,y:n.canvasHeight-n.graphVerticalGap};let f=!1,d=!1;fe.toTween(u,{x:n.canvasWidth-n.graphHorizontalGap},{duration:n.easeDuration,easeFunction:dt.Easing.Linear.None,onComplete:()=>{f=!0,f&&d&&(i("onCompleted",n.easeName),a=!1)}}).startAuto(),fe.toTween(u,{y:n.graphVerticalGap},{duration:n.easeDuration,easeFunction:n.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",n.easeName),a=!1)}}).startAuto()},c=()=>{i("onSelected",n.easeName,n.easeFunction)};return re(()=>{o.app.off("showInParent",l)}),t({start:l}),(u,h)=>(F(),X("div",n1,[S("div",null,"缓动:"+kt(u.easeName),1),S("div",null,[S("div",null,[pt(ve,{stylePattern:"outline",height:"32px",padding:"10px",onClick:l},{default:he(()=>[Kt(" 开始 ")]),_:1})]),S("div",null,[pt(ve,{stylePattern:n.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:he(()=>[Kt(" 选择 ")]),_:1},8,["stylePattern"])])]),S("div",{style:W({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[pt(Js,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),Eb="",Xa=ut(i1,[["__scopeId","data-v-5c401464"]]),r1=2e3,o1=lt({customOptions:{EaseGraphDisplay:Xa},inheritAttrs:!0,__name:"EaseGroupGraphDisplay",props:{easeList:{default:()=>[{easeName:"Linear",easeFunction:dt.Easing.Linear.None},{easeName:"gap"},{easeName:"QuadraticIn",easeFunction:dt.Easing.Quadratic.In},{easeName:"QuadraticOut",easeFunction:dt.Easing.Quadratic.Out},{easeName:"QuadraticInOut",easeFunction:dt.Easing.Quadratic.InOut},{easeName:"gap"},{easeName:"CubicIn",easeFunction:dt.Easing.Cubic.In},{easeName:"CubicOut",easeFunction:dt.Easing.Cubic.Out},{easeName:"CubicInOut",easeFunction:dt.Easing.Cubic.InOut},{easeName:"gap"},{easeName:"QuarticIn",easeFunction:dt.Easing.Quartic.In},{easeName:"QuarticOut",easeFunction:dt.Easing.Quartic.Out},{easeName:"QuarticInOut",easeFunction:dt.Easing.Quartic.InOut},{easeName:"gap"},{easeName:"QuinticIn",easeFunction:dt.Easing.Quintic.In},{easeName:"QuinticOut",easeFunction:dt.Easing.Quintic.Out},{easeName:"QuinticInOut",easeFunction:dt.Easing.Quintic.InOut},{easeName:"gap"},{easeName:"SinusoidalIn",easeFunction:dt.Easing.Sinusoidal.In},{easeName:"SinusoidalOut",easeFunction:dt.Easing.Sinusoidal.Out},{easeName:"SinusoidalInOut",easeFunction:dt.Easing.Sinusoidal.InOut},{easeName:"gap"},{easeName:"ExponentialIn",easeFunction:dt.Easing.Exponential.In},{easeName:"ExponentialOut",easeFunction:dt.Easing.Exponential.Out},{easeName:"ExponentialInOut",easeFunction:dt.Easing.Exponential.InOut},{easeName:"gap"},{easeName:"CircularIn",easeFunction:dt.Easing.Circular.In},{easeName:"CircularOut",easeFunction:dt.Easing.Circular.Out},{easeName:"CircularInOut",easeFunction:dt.Easing.Circular.InOut},{easeName:"gap"},{easeName:"ElasticIn",easeFunction:dt.Easing.Elastic.In},{easeName:"ElasticOut",easeFunction:dt.Easing.Elastic.Out},{easeName:"ElasticInOut",easeFunction:dt.Easing.Elastic.InOut},{easeName:"gap"},{easeName:"BackIn",easeFunction:dt.Easing.Back.In},{easeName:"BackOut",easeFunction:dt.Easing.Back.Out},{easeName:"BackInOut",easeFunction:dt.Easing.Back.InOut},{easeName:"gap"},{easeName:"BounceIn",easeFunction:dt.Easing.Bounce.In},{easeName:"BounceOut",easeFunction:dt.Easing.Bounce.Out},{easeName:"BounceInOut",easeFunction:dt.Easing.Bounce.InOut},{easeName:"gap"},{easeName:"generatePow(10)In",easeFunction:dt.Easing.generatePow(10).In},{easeName:"generatePow(10)Out",easeFunction:dt.Easing.generatePow(10).Out},{easeName:"generatePow(10)InOut",easeFunction:dt.Easing.generatePow(10).InOut},{easeName:"gap"},{easeName:"4 steps",easeFunction:dt.Easing.createStep(4)},{easeName:"8 steps",easeFunction:dt.Easing.createStep(8)},{easeName:"12 steps",easeFunction:dt.Easing.createStep(12)},{easeName:"16 steps",easeFunction:dt.Easing.createStep(16)},{easeName:"gap"},{easeName:"Noisy Exponential.InOut",easeFunction:dt.Easing.createNoisyEasing(dt.Easing.Exponential.InOut,.1)},{easeName:"Noisy Elastic.InOut",easeFunction:dt.Easing.createNoisyEasing(dt.Easing.Elastic.InOut,.2)},{easeName:"Noisy Circular.InOut",easeFunction:dt.Easing.createNoisyEasing(dt.Easing.Circular.InOut,.1)},{easeName:"swing",easeFunction:dt.Easing.swing},{easeName:"causeSeizures",easeFunction:dt.Easing.causeSeizures}]}},emits:["selectedEaseFunction"],setup(s,{expose:t,emit:e}){const n=s,i=e,r={};function o(f,d){f&&(r[d]={el:f})}const a=new Au(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=V("Linear");function h(f,d){u.value=f,i("selectedEaseFunction",f,d)}return h("Linear",dt.Easing.Linear.None),t({}),(f,d)=>(F(),X("div",null,[(F(!0),X(zt,null,Ce(n.easeList,m=>(F(),X("div",{key:m.easeName,class:"ease-graph-wrap"},[m.easeFunction?(F(),Ie(Xa,{key:0,easeName:m.easeName,easeFunction:m.easeFunction,easeDuration:r1,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"])):qt("",!0)]))),128))]))}}),kb="",a1=ut(o1,[["__scopeId","data-v-fa7ba01d"]]),l1={class:"interpolation-graph"},mh=1/6,gh=5/6,c1=lt({customOptions:{Button:ve,Canvas:Js},inheritAttrs:!0,__name:"InterpolationGraphDisplay",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},easeDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=V();let o;Dt(r,()=>{r.value&&r.value.getCanvas().then(v=>{o=v,i("onMounted",n.interpolationName),o.app.on("showInParent",m)})});const a=n.canvasWidth*mh,l=n.canvasHeight/2,c=[n.canvasWidth*gh,n.canvasWidth/2],u=[n.canvasHeight*mh,n.canvasHeight*gh],h=[...c,a],f=[...u,l];let d=!1;const m=()=>{if(!o||d)return;d=!0,i("onStart",n.interpolationName),o.ctx.fillStyle="rgb(250,250,250)",o.ctx.fillRect(0,0,n.canvasWidth,n.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 _=!1,E=!1;const D={x:a,y:l,old:{x:a,y:l}};fe.toTween(D,{x:c,y:u},{duration:n.easeDuration,easeFunction:dt.Easing.Linear.None,interpolationFunction:n.interpolationFunction,onUpdate:k=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.9)",o.ctx.beginPath(),o.ctx.moveTo(k.old.x,k.old.y),o.ctx.lineTo(k.x,k.y),o.ctx.closePath(),o.ctx.stroke(),k.old.x=k.x,k.old.y=k.y},onComplete:()=>{_=!0,_&&E&&(i("onCompleted",n.interpolationName),d=!1)}}).startAuto();const N={x:a,y:l,old:{x:a,y:l}};fe.toTween(N,{x:h,y:f},{duration:n.easeDuration,easeFunction:dt.Easing.Linear.None,interpolationFunction:n.interpolationFunction,onUpdate:k=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.5)",o.ctx.beginPath(),o.ctx.moveTo(k.old.x,k.old.y),o.ctx.lineTo(k.x,k.y),o.ctx.closePath(),o.ctx.stroke(),k.old.x=k.x,k.old.y=k.y},onComplete:()=>{E=!0,_&&E&&(i("onCompleted",n.interpolationName),d=!1)}}).startAuto()};return re(()=>{o.app.off("showInParent",m)}),t({start:m}),(v,_)=>(F(),X("div",l1,[S("div",null,[Kt(" 插值:"+kt(v.interpolationName)+" ",1),pt(ve,{stylePattern:"outline",height:"32px",onClick:m},{default:he(()=>[Kt(" 开始 ")]),_:1})]),S("div",{style:W({width:v.canvasWidth+"px",height:v.canvasHeight+"px"})},[pt(Js,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),Tb="",Ha=ut(c1,[["__scopeId","data-v-eb70b61a"]]),u1=2e3,h1=lt({customOptions:{InterpolationGraphDisplay:Ha},inheritAttrs:!0,__name:"InterpolationGroupGraphDisplay",props:{interpolationList:{default:()=>[{interpolationName:"Linear",interpolationFunction:dt.Interpolation.Linear},{interpolationName:"Bezier",interpolationFunction:dt.Interpolation.Bezier},{interpolationName:"CatmullRom",interpolationFunction:dt.Interpolation.CatmullRom}]}},setup(s,{expose:t,emit:e}){const n=s,i={};function r(c,u){c&&(i[u]={el:c})}const o=new Au(1);function a(c){o.addTask(()=>(i[c].el.start(),new Promise(u=>{i[c].resolve=u})))}function l(c){i[c].resolve?.()}return t({}),(c,u)=>(F(),X("div",null,[(F(!0),X(zt,null,Ce(n.interpolationList,h=>(F(),X("div",{key:h.interpolationName,class:"interpolation-graph-wrap"},[pt(Ha,{interpolationName:h.interpolationName,interpolationFunction:h.interpolationFunction,easeDuration:u1,onOnMounted:a,onOnCompleted:l,ref_for:!0,ref:f=>r(f,h.interpolationName)},null,8,["interpolationName","interpolationFunction"])]))),128))]))}}),Ob="",d1=ut(h1,[["__scopeId","data-v-6e8312e3"]]),f1='<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>',p1={class:"btns"},m1={class:"btns"},g1={class:"btns sub-btns"},y1={class:"btns sub-btns"},v1={class:"btns sub-btns"},_1={style:{width:"100%"}},b1={style:{width:"100%"}},x1={style:{height:"400px"}},w1={style:{height:"400px"}},S1={style:{height:"400px"},class:"css-area"},C1={class:"animate-to-css-group"},E1={class:"animate-to-css-group"},k1=lt({customOptions:{Button:ve,InputRange:Qs,SVG:Ar,Canvas:Js},inheritAttrs:!0,__name:"SVGAndCanvas",props:{easeName:{default:"Linear"},easeFunction:{type:Function,default:dt.Easing.Linear.None}},setup(s,{expose:t}){const e=s,n=V();let i=0,r=0;Dt(n,()=>{n.value&&n.value.getSVG().then(O=>{i=O.app.width,r=O.app.height,O.app.on("resize",(C,w)=>{i=C,r=w})})});const o=V(),a=V(),l=V(),c=V(),u=V(),h=V(),f=V(),d=V(""),m=V("");function v(O){switch(m.value=O,d.value){case"AnimateToCSS":z();break;case"AnimateToTweenCSS":rt();break}}const _=new gs({svg:f1,width:300,attrs:{"stroke-width":"1",stroke:"#ff0000",fill:"none"},enableDrag:!0});function E(O,C,w=30){return new Ee({x:O,y:C,radius:w,attrs:{fill:Ne()}})}function D(O,C,w=3){const G=[];for(let M=0;M<w;M++)G.push(new Ee({x:Math.random()*O,y:Math.random()*C,radius:10,attrs:{fill:Ne()},enableDrag:!0}));return G}function N(){return new Nr({scaleOnOrigin:.5,followMouse:!0,attrs:{fill:Ne()}})}function k(O,C){return new ke({x:O,y:C,attrs:{"stroke-width":"1",stroke:"#666666"}})}const tt=E(0,0,8),R=E(0,0,5);function U(){const O="PathDGroup";if(d.value==O||!n.value||!o.value)return;d.value=O;let C=[_,tt,R];n.value.getSVG().then(w=>{o.value.getCanvas().then(G=>{let M,B;const nt=Wt=>{B&&w.delete(B),M&&M?.restore(),M=Wt,Wt.save(),Wt.attrs.fill="pink",Wt.attrs.stroke="green",C=[_,tt,R],B=Wt.getBoundingClientRect(),B&&(B.attrs.fill="none",B.attrs.strokeWidth="4",B.attrs.stroke="#0000ff",C.push(B))},j=w.click(Wt=>{nt(Wt)}),et=G.click(Wt=>{nt(Wt)});let yt=0,Tt=_.shapes[yt].getTotalLength(),oe=0;const Be=.01;w.clear(),jt.run(()=>{if(d.value!==O)return j(),et(),M&&(M.restore(),w.delete(M)),!1;oe>1&&(yt++,oe=0,yt>_.shapes.length-1&&(yt=0),Tt=_.shapes[yt].getTotalLength()),G.ctx.clearRect();let{x:Wt,y:Je}=_.shapes[yt].interpolate(oe);tt.x=Wt,tt.y=Je;let{x:Zt,y:be}=_.shapes[yt].getPointAtLength(oe*Tt);return R.x=Zt,R.y=be,w.path(C),G.draw(C),oe+=Be,!0})})})}function vt(){const O="Shapes";if(d.value==O||!n.value||!o.value)return;d.value=O;const C=new Nr({x:ee(0,i),y:ee(0,r),scaleOnOrigin:.5,attrs:{fill:"#5a82f0",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),w=new de({x:ee(0,i),y:ee(0,r),width:100,height:60,borderRadius:10,attrs:{fill:"pink",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),G=new Ta({x:ee(0,i),y:ee(0,r),scaleOnOrigin:1,attrs:{fill:"rgb(200,80,80)",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),M=new Dg({x:ee(0,i),y:ee(0,r),scaleOnOrigin:1,attrs:{fill:Ne(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),B=new Ig({x:ee(0,i),y:ee(0,r),scaleOnOrigin:1,attrs:{fill:Ne(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),nt=new Ju({x:ee(0,i),y:ee(0,r),scaleOnOrigin:1,attrs:{fill:Ne()},enableDrag:!0}),j=new Ng({x:ee(0,i),y:ee(0,r),scaleOnOrigin:1,attrs:{fill:Ne(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),et=new Mg({x:ee(0,i),y:ee(0,r),scaleOnOrigin:1,attrs:{fill:Ne()},enableDrag:!0}),yt=new Ag({x:ee(0,i),y:ee(0,r),degree:30,scaleOnOrigin:.5,attrs:{strokeWidth:"2",stroke:Ne(),fill:"none"},enableDrag:!0}),Tt=new Lg({x:ee(0,i),y:ee(0,r),degree:0,scaleOnOrigin:2,showFlame:!0,attrs:{stroke:Ne()},enableDrag:!0}),oe=new th({x:100,y:100,min:0,max:200,step:2,defaultValue:10,barWidth:200});oe.on("change",Gn=>{console.log(`slider change: ${Gn}`)});const Be=new Si({x:100,y:120,width:200,height:20,degree:30,attrs:{stroke:Ne()},enableDrag:!0});C.group(M);const Wt=ee(0,i-100),Je=ee(0,r-100),Zt=new ke({fromX:Wt,fromY:Je,x:Wt+100,y:Je+100,attrs:{stroke:"#666666"}}),be=new ke({fromX:Wt+100,fromY:Je,x:Wt,y:Je+100,attrs:{stroke:"#666666"}}),We=E(0,0,10),xn=Zt.intersection(be);xn&&(We.x=xn.x,We.y=xn.y);const Oi=new Oa({x:100,y:100,width:100,height:100,startDegree:45,endDegree:270,lineWidth:10,color:Ne(),enableDrag:!0}),ys=[C,w,G,M,B,nt,j,et,yt,Tt,oe,Be,Zt,be,We,Oi];n.value.getSVG().then(Gn=>{o.value.getCanvas().then(zr=>{Gn.clear(),jt.run(()=>d.value!==O?!1:(Gn.path(ys),zr.ctx.clearRect(),zr.draw(ys),!0))})})}function bt(){const O="Arrow";d.value==O||!n.value||!o.value||(d.value=O,n.value.getSVG().then(C=>{const w=N(),G=k(C.app.width/2,C.app.height/2);C.clear(),jt.run(()=>d.value!==O?!1:(G.fromX=w.x,G.fromY=w.y,C.path([G,w]),!0))}),o.value.getCanvas().then(C=>{const w=N(),G=k(C.app.width/2,C.app.height/2);jt.run(()=>d.value!=O?!1:(C.ctx.clearRect(),G.fromX=w.x,G.fromY=w.y,C.draw([G,w]),!0))}))}function Ct(){const O="PointEase";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{const w=E(C.app.width/2,C.app.height/2);w.enableDrag=!0,w.targetToAfterDragFree={targetX:C.app.width/2,targetY:C.app.height/2},C.clear(),jt.run(()=>d.value!==O?!1:(C.path(w),!0))}),o.value.getCanvas().then(C=>{const w=E(C.app.width/2,C.app.height/2);w.enableDrag=!0,w.targetToAfterDragFree={targetX:C.app.width/2,targetY:C.app.height/2},jt.run(()=>d.value!=O?!1:(C.ctx.clearRect(),C.draw(w),!0))}))}function Rt(){const O="BallCollision";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{const w=E(50,C.app.height/2);w.mass=2,w.vx=2;const G=E(C.app.width-50,C.app.height/2);G.mass=1,G.vx=-2,C.clear(),o.value.getCanvas().then(M=>{jt.run(()=>d.value!=O?!1:(w.checkCollision(G),w.nextFrame(),G.nextFrame(),C.path([w,G]),M.ctx.clearRect(),M.draw([w,G]),!0))})}))}function $t(){const O="Balls";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{o.value.getCanvas().then(w=>{const M=[];for(let nt=0;nt<15;nt++){const j=Math.random()*20+15,et=E(Math.random()*C.app.width,Math.random()*C.app.height,j);et.mass=j,et.vx=Math.random()*10-5,et.vy=Math.random()*10-5,M.push(et)}const B=new de({x:0,y:0,width:C.app.width,height:C.app.height});C.clear(),jt.run(()=>d.value!=O?!1:(Ee.comboMove(M,B),C.path(M),w.ctx.clearRect(),w.draw(M),!0))})}))}function se(){const O="Gravitate";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{o.value.getCanvas().then(w=>{const M=[];for(let B=0;B<30;B++){const nt=Math.random()*25+5,j=E(Math.random()*C.app.width,Math.random()*C.app.height,nt);j.mass=nt,M.push(j)}C.clear(),jt.run(()=>d.value!=O?!1:(Jt.comboGravitate(M),C.path(M),w.ctx.clearRect(),w.draw(M),!0))})}))}function ne(){const O="SunPlanet";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{o.value.getCanvas().then(w=>{const G=E(C.app.width*.5,C.app.height*.5,50);G.mass=1e4;const M=E(C.app.width*.5+200,C.app.height*.5,10);M.mass=1,M.vy=7;const B=[G,M];C.clear(),jt.run(()=>d.value!=O?!1:(Jt.comboGravitate(B),C.path(B),w.ctx.clearRect(),w.draw(B),!0))})}))}function ue(){const O="SpringMass";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{o.value.getCanvas().then(w=>{const G=[];for(let et=0;et<30;et++){const yt=Math.random()*10+2,Tt=E(Math.random()*w.app.width,Math.random()*w.app.height,yt);Tt.vx=Math.random()*6-3,Tt.vy=Math.random()*6-3,Tt.mass=yt,G.push(Tt)}const B=new de({x:0,y:0,width:w.app.width,height:w.app.height}),nt=[];Jt.comboSpringMass(G,B,{spring:5e-4}).forEach(([et,yt,Tt,oe,Be])=>{nt.push(new ke({fromX:et,fromY:yt,x:Tt,y:oe,attrs:{strokeWidth:"1",stroke:Er("#666666",Be)}}))});const j=[...nt,...G];C.clear(),C.path(j),jt.run(()=>d.value!=O?!1:(Jt.comboSpringMass(G,B,{spring:5e-4}).forEach(([et,yt,Tt,oe,Be],Wt)=>{nt[Wt].fromX=et,nt[Wt].fromY=yt,nt[Wt].x=Tt,nt[Wt].y=oe,nt[Wt].setAttr("stroke",Er("#666666",Be))}),C.path(j),w.ctx.clearRect(),w.draw(j),!0))})}))}function Yt(){const O="WalkMan";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{o.value.getCanvas().then(w=>{const G=new Si({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),M=new Si({width:50,height:10,attrs:{stroke:"#666666"}}),B=new Si({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),nt=new Si({width:50,height:10,attrs:{stroke:"#666666"}});let j=0,et=0;function yt(){et+=.2,G.groupTranslate(j,et),B.groupTranslate(j,et)}const Tt=-Math.PI/2;function oe(Zt,be,We){const xn=Math.sin(We)*45+90,Oi=Math.sin(We+Tt)*45+45,ys=be.getPin();Zt.groupRotateTo(xn),be.groupRotateTo(Zt.degree+Oi),be.groupTranslateTo(Zt.getPin().x,Zt.getPin().y),be.vx=be.getPin().x-ys.x,be.vy=be.getPin().y-ys.y}function Be(Zt){const be=Zt.getPin().y+Zt.height/2;if(be>w.app.height){const We=be-w.app.height;G.groupTranslate(0,-We),M.groupTranslate(0,-We),B.groupTranslate(0,-We),nt.groupTranslate(0,-We),j-=Zt.vx,et-=Zt.vy}}function Wt(){const Zt=w.app.width+200;G.x>w.app.width+100?(G.groupTranslate(-Zt,0),M.groupTranslate(-Zt,0),B.groupTranslate(-Zt,0),nt.groupTranslate(-Zt,0)):G.x<-100&&(G.groupTranslate(Zt,0),M.groupTranslate(Zt,0),B.groupTranslate(Zt,0),nt.groupTranslate(Zt,0))}let Je=0;C.clear(),jt.run(()=>d.value!=O?!1:(Je+=.06,yt(),oe(G,M,Je),oe(B,nt,Je+Math.PI),Be(M),Be(nt),Wt(),C.path([G,M,B,nt]),w.ctx.clearRect(),w.draw([G,M,B,nt]),!0))})}))}function xt(){const O="Sector";if(d.value==O||!n.value||!o.value)return;d.value=O;const C=new $g({x:300,y:100,radius:100,startDegree:80,endDegree:200,enableDrag:!0,text:"些许文字",defaultShowText:!1,tip:"提示文字...",attrs:{fill:"pink",stroke:"#666666"}});n.value.getSVG().then(w=>{w.clear(),o.value.getCanvas().then(G=>{jt.run(()=>d.value!=O?!1:(w.path(C),G.ctx.clearRect(),G.draw(C),!0))})})}function wt(){const O="RectGame";if(d.value==O)return;d.value=O;function C(nt){return new de({x:Math.random()*nt,y:0,width:50,height:50,attrs:{fill:Ne()},enableDrag:!0})}const w=.2,G=[];function M(){const nt=C(i);return G.push(nt),nt}let B=M();n.value.getSVG().then(nt=>{nt.clear(),o.value.getCanvas().then(j=>{jt.run(()=>d.value!=O?!1:(j.ctx.clearRect(),nt.isMouseDown||j.isMouseDown?(nt.path(G),j.draw(G)):(B&&B.nextFrame({gravity:w}),B&&B.y+B.height>=j.ctx.canvas.height&&(B.y=j.ctx.canvas.height-B.height,B=M()),G.forEach(et=>(B&&B!==et&&B.isIntersectRect(et)&&(B.y=et.y-B.height,B.y>=B.height?B=M():B=null),et)),nt.path(G),j.draw(G)),!0))})})}function it(){const O="PointWater";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{const w=[];for(let G=0;G<80;G++){const M=E(C.app.width/2,C.app.height,2);M.vx=Math.random()*2-1,M.vy=Math.random()*-10-10,w.push(M)}C.clear(),o.value.getCanvas().then(G=>{jt.run(()=>d.value!=O?!1:(w.forEach(M=>{M.nextFrame({gravity:.5}),(M.x-M.radius>C.app.width||M.x+M.radius<0||M.y-M.radius>C.app.height||M.y+M.radius<0)&&(M.x=C.app.width/2,M.y=C.app.height,M.vx=Math.random()*2-1,M.vy=Math.random()*-10-10)}),C.path(w),G.ctx.clearRect(),G.draw(w),!0))})}))}function q(){const O="PointSpringChain";if(d.value==O)return;d.value=O;function C(M,B){const nt=[];for(let j=0;j<3;j++)nt.push(E(M,B,20));return nt}function w(){const M=[];for(let B=0;B<3;B++)M.push(new ke({attrs:{"stroke-width":"1",stroke:"#666666"}}));return M}const G={spring:.03,friction:.9,gravity:2};n.value.getSVG().then(M=>{const B=w(),nt=C(M.app.width/2,M.app.height/2);M.clear(),jt.run(()=>d.value!==O?!1:(Jt.comboSpringChain([M.app.mousePoint,...nt],G),nt.forEach((j,et)=>{if(et===0)B[et].fromX=M.app.mousePoint.x,B[et].fromY=M.app.mousePoint.y,B[et].x=j.x,B[et].y=j.y;else{const yt=nt[et-1];B[et].fromX=yt.x,B[et].fromY=yt.y,B[et].x=j.x,B[et].y=j.y}}),M.path(B),M.path(nt),!0))}),o.value.getCanvas().then(M=>{const B=w(),nt=C(M.app.width/2,M.app.height/2);jt.run(()=>d.value!=O?!1:(M.ctx.clearRect(),Jt.comboSpringChain([M.app.mousePoint,...nt],G),nt.forEach((j,et)=>{if(et===0)B[et].fromX=M.app.mousePoint.x,B[et].fromY=M.app.mousePoint.y,B[et].x=j.x,B[et].y=j.y;else{const yt=nt[et-1];B[et].fromX=yt.x,B[et].fromY=yt.y,B[et].x=j.x,B[et].y=j.y}}),M.draw(B),M.draw(nt),!0))})}function Et(){const O="PointSpringMulti";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{const w=[k(0,0),k(0,0),k(0,0)],G=D(C.app.width,C.app.height),M=new Ee({radius:20,attrs:{fill:"#ff0000"}});C.clear(),o.value.getCanvas().then(B=>{jt.run(()=>d.value!=O?!1:(M.nextFrameSpringTo(G,{spring:.03}),G.forEach((nt,j)=>{w[j].fromX=M.x,w[j].fromY=M.y,w[j].x=nt.x,w[j].y=nt.y}),C.path([...w,...G,M]),B.ctx.clearRect(),B.draw([...w,...G,M]),!0))})}))}function $(){const O="PointSpringConnect";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{const w=[k(0,0),k(0,0),k(0,0)],G=D(C.app.width,C.app.height);C.clear(),o.value.getCanvas().then(M=>{jt.run(()=>d.value!=O?!1:(Jt.comboSpringConnect(G,{springLength:120}),w[0].x=G[0].x,w[0].y=G[0].y,w[0].fromX=G[1].x,w[0].fromY=G[1].y,w[1].x=G[1].x,w[1].y=G[1].y,w[1].fromX=G[2].x,w[1].fromY=G[2].y,w[2].x=G[2].x,w[2].y=G[2].y,w[2].fromX=G[0].x,w[2].fromY=G[0].y,C.path([...w,...G]),M.ctx.clearRect(),M.draw([...w,...G]),!0))})}))}function Ut(){const O="QuadraticBezierCurve";if(d.value==O)return;d.value=O;const C=50;n.value.getSVG().then(w=>{const G=new _n({x:C,y:w.app.height-C,fromX:w.app.width-C,fromY:w.app.height-C,cx:w.app.mousePoint.x,cy:w.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),M=new _n({x:C,y:w.app.height-C,fromX:w.app.width-C,fromY:w.app.height-C,cx:w.app.mousePoint.x,cy:w.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});w.clear(),jt.run(()=>d.value!==O?!1:(M.cx=G.cx=w.app.mousePoint.x,M.cy=G.cy=w.app.mousePoint.y,w.path(G),w.path(M),!0))}),o.value.getCanvas().then(w=>{const G=new _n({x:C,y:w.ctx.canvas.height-C,fromX:w.ctx.canvas.width-C,fromY:w.ctx.canvas.height-C,cx:w.app.mousePoint.x,cy:w.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),M=new _n({x:C,y:w.ctx.canvas.height-C,fromX:w.ctx.canvas.width-C,fromY:w.ctx.canvas.height-C,cx:w.app.mousePoint.x,cy:w.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});jt.run(()=>d.value!=O?!1:(w.ctx.clearRect(),M.cx=G.cx=w.app.mousePoint.x,M.cy=G.cy=w.app.mousePoint.y,w.draw([G,M]),!0))})}function ge(){const O="PointsRandom";d.value=O;function C(w,G){const M=[];for(let B=0;B<10;B++){const nt=new Ee({x:Math.random()*w,y:Math.random()*G,radius:3,attrs:{stroke:"pink","stroke-width":"2"}});M.push(nt)}return M}n.value.getSVG().then(w=>{const G=C(w.app.width,w.app.height),M=G.map((B,nt)=>new de({x:B.x,y:B.y,width:6,height:6,attrs:{fill:nt==0?"#ff0000":"#666666"}}));w.clear(),w.path(M),w.path(new $n(G)),o.value.getCanvas().then(B=>{B.ctx.clearRect(),B.draw([...M,new $n(G)])})})}function Ae(){const O="InterpolatePath";if(d.value==O||!n.value||!o.value)return;d.value=O;const C=new Nr({x:200,y:200,scaleOnOrigin:1,attrs:{stroke:"#5a82f0"}}),w=new de({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#ACFFAD"}}),G=new Ta({x:200,y:200,scaleOnOrigin:3,attrs:{stroke:"rgb(200,80,80)"}}),M=$n.generatePoints(100,100,100,3),B=$n.generatePoints(100,100,100,6);M.attrs.stroke="#666666",B.attrs.stroke="#7EEDFF";const nt=gt.polymorph([gt.fromShape(M),gt.fromShape(B),gt.fromShape(C),gt.fromShape(w),gt.fromShape(G)]),j=nt(0);j.enableDrag=!0,n.value.getSVG().then(et=>{et.clear(),o.value.getCanvas().then(yt=>{const Tt=fe.toTween({t:0},{t:1},{duration:6e3,easeFunction:e.easeFunction,onUpdate:oe=>{d.value===O&&(nt(oe.t),et.path(j),yt.ctx.clearRect(),yt.draw(j))},onComplete:()=>{}});Tt.tween.start(),jt.run(()=>d.value!==O?!1:(Tt.tween.update()||(et.path(j),yt.ctx.clearRect(),yt.draw(j)),!0))})})}function Re(){const O="InterpolatePathGroup";if(d.value==O||!n.value||!o.value)return;d.value=O;const C=new Nr({x:200,y:200,scaleOnOrigin:1,attrs:{stroke:"#5a82f0"}}),w=new de({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#42B79E"}}),G=new Ta({x:200,y:200,scaleOnOrigin:3,attrs:{stroke:"rgb(200,80,80)"}}),M=gs.polymorph([gs.fromShape(C),gs.fromShape(w),_,gs.fromShape(G)]),B=M(0);n.value.getSVG().then(nt=>{nt.clear(),o.value.getCanvas().then(j=>{fe.toTween({t:0},{t:1},{duration:6e3,easeFunction:e.easeFunction,onUpdate:et=>{d.value===O&&(M(et.t),nt.path(B),j.ctx.clearRect(),j.draw(B))},onComplete:()=>{}}).startAuto()})})}const Nt=gt.fromSVGPathD("M62.9 14.9c-25-7.74-56.6 4.8-60.4 24.3-3.73 19.6 21.6 35 39.6 37.6 42.8 6.2 72.9-53.4 116-58.9 65-18.2 191 101 215 28.8 5-16.7-7-49.1-34-44-34 11.5-31 46.5-14 69.3 9.38 12.6 24.2 20.6 39.8 22.9 91.4 9.05 102-98.9 176-86.7 18.8 3.81 33 17.3 36.7 34.6 2.01 10.2.124 21.1-5.18 30.1"),$e=+Nt.getTotalLength().toFixed(0),Lt=V($e),ie=V(Math.floor($e/2));function Ue(O){Lt.value=O,Nt.setAttr("strokeDasharray",`${Lt.value} ${Lt.value}`),n.value.getSVG().then(C=>{C.path(Nt)}),o.value.getCanvas().then(C=>{C.ctx.clearRect(),C.draw(Nt)})}function os(O){ie.value=O,Nt.setAttr("strokeDashoffset",`${ie.value}`),n.value.getSVG().then(C=>{C.path(Nt)}),o.value.getCanvas().then(C=>{C.ctx.clearRect(),C.draw(Nt)})}function as(){const O="StrokeDash";d.value==O||!n.value||!o.value||(d.value=O,Nt.setAttr({stroke:"#666666",strokeWidth:"4",strokeDasharray:`${Lt.value} ${Lt.value}`,strokeDashoffset:`${ie.value}`}),n.value.getSVG().then(C=>{C.clear(),C.path(Nt)}),o.value.getCanvas().then(C=>{C.ctx.clearRect(),C.draw(Nt)}))}function y(){const O="StrokeDashAuto";d.value==O||!n.value||!o.value||(d.value=O,Nt.setAttr({stroke:"#ff0000",strokeWidth:"4"}),n.value.getSVG().then(C=>{C.clear(),o.value.getCanvas().then(w=>{Nt.strokeDashToTween({duration:4e3,easeFunction:e.easeFunction,onUpdate:()=>{C.path(Nt),w.ctx.clearRect(),w.draw(Nt)}}).startAuto()})}))}function x(){const O="StrokeDashGroupParallelAuto";d.value==O||!n.value||!o.value||(d.value=O,n.value.getSVG().then(C=>{_.setAttrs({stroke:"none"}),C.clear(),o.value.getCanvas().then(w=>{w.ctx.clearRect(),_.strokeDashToTween({type:"parallel",duration:4e3,easeFunction:e.easeFunction,precision:.05,onGroupStart:()=>{_.setAttrs({stroke:Ne()})},onGroupUpdate:()=>{C.path(_),w.ctx.clearRect(),w.draw(_)}}).startAuto()})}))}function I(){const O="StrokeDashGroupSequenceAuto";d.value==O||!n.value||!o.value||(d.value=O,n.value.getSVG().then(C=>{_.setAttrs({stroke:"none"}),C.clear(),o.value.getCanvas().then(w=>{w.ctx.clearRect(),_.strokeDashToTween({type:"sequence",duration:1e3,easeFunction:e.easeFunction,precision:.05,onGroupStart:()=>{_.setAttrs({stroke:Ne()})},onGroupUpdate:()=>{C.path(_),w.ctx.clearRect(),w.draw(_)}}).startAuto()})}))}const A=new fe,L=new fe;function J(){const O="AnimateToCSS";d.value=O,A.fromDOM([a.value,l.value,c.value]),L.fromDOM([u.value])}let K=0;function z(){switch(m.value){case"slideLeft":A.toCSS("slideLeft",{},++K%3),L.toCSS("slideLeft",{direction:K%2==0?"normal":"reverse"});break;case"slideRight":A.toCSS("slideRight",{easeName:"ease",dur:1e3},--K%3),L.toCSS("slideRight",{easeName:"ease",dur:1500,repeatCount:"infinite"});break;case"slideDown":A.toCSS("slideDown",{easeName:"ease-out",dur:500},++K%3),L.toCSS("slideDown",{easeName:"ease-out",dur:500});break;case"slideUp":A.toCSS("slideUp",{easeName:"ease-in",dur:500},++K%3),L.toCSS("slideUp",{easeName:"ease-in",dur:500});break;case"flipLeft":A.toCSS("flipLeft",{easeName:"linear",dur:1e3},++K%3),L.toCSS("flipLeft",{easeName:"linear",dur:1e3});break;case"flipRight":A.toCSS("flipRight",{easeName:"ease-in-out",dur:1e3},++K%3),L.toCSS("flipRight",{easeName:"ease-in-out",dur:1e3});break;case"flipDown":A.toCSS("flipDown",{easeName:"ease",dur:1e3},++K%3),L.toCSS("flipDown",{easeName:"ease",dur:1e3});break;case"flipUp":A.toCSS("flipUp",{easeName:"ease",dur:1e3},++K%3),L.toCSS("flipUp",{easeName:"ease",dur:1e3});break;case"popIn":A.toCSS("popIn",{easeName:"ease",dur:1e3},++K%3),L.toCSS("popIn",{easeName:"ease",dur:1e3});break;case"popOut":A.toCSS("popOut",{easeName:"ease",dur:1e3},++K%3),L.toCSS("popOut",{easeName:"ease",dur:1e3});break;case"rotate":A.toCSS("rotate",{easeName:"ease",dur:1e3,degree:90},K++%3),L.toCSS("rotate",{easeName:"ease",dur:1e3,degree:360});break}}let Q;function Y(){const O="AnimateToTweenCSS";d.value=O,H.setStyle(f.value,{transform:""})}function rt(){Q||(Q=new me(h.value));const O=50,C=0,w=0,G=0,M=Q.width-O,B=Q.height-O,nt=Q.height-O,j=Q.width/2-O/2,et=Q.height/2-O/2,yt={},Tt={};switch(m.value){case"translateTo":Object.assign(yt,{translateTo:[C,w]}),Object.assign(Tt,{translateTo:[M,B]});break;case"translateXTo":Object.assign(yt,{translateXTo:C}),Object.assign(Tt,{translateXTo:M});break;case"translateYTo":Object.assign(yt,{translateYTo:w}),Object.assign(Tt,{translateYTo:B});break;case"translateZTo":Object.assign(yt,{translateTo:[j,et],translateZTo:G}),Object.assign(Tt,{translateTo:[j,et],translateZTo:nt});break;case"translate3dTo":Object.assign(yt,{translate3dTo:[j-50,et-50,G]}),Object.assign(Tt,{translate3dTo:[j+50,et+50,nt]});break;case"rotateTo":Object.assign(yt,{translateTo:[j,et],rotateTo:0}),Object.assign(Tt,{translateTo:[j,et],rotateTo:360});break;case"rotateXTo":Object.assign(yt,{translateTo:[j,et],rotateXTo:0}),Object.assign(Tt,{translateTo:[j,et],rotateXTo:180});break;case"rotateYTo":Object.assign(yt,{translateTo:[j,et],rotateYTo:0}),Object.assign(Tt,{translateTo:[j,et],rotateYTo:180});break;case"rotateZTo":Object.assign(yt,{translateTo:[j,et],rotateZTo:0}),Object.assign(Tt,{translateTo:[j,et],rotateZTo:360});break;case"rotate3dTo":Object.assign(yt,{translateTo:[j,et],rotate3dTo:[0,0,0]}),Object.assign(Tt,{translateTo:[j,et],rotate3dTo:[360,360,360]});break;case"scaleTo":Object.assign(yt,{translateTo:[j,et],scaleTo:1}),Object.assign(Tt,{translateTo:[j,et],scaleTo:3});break;case"scaleXTo":Object.assign(yt,{translateTo:[j,et],scaleXTo:1}),Object.assign(Tt,{translateTo:[j,et],scaleXTo:3});break;case"scaleYTo":Object.assign(yt,{translateTo:[j,et],scaleYTo:1}),Object.assign(Tt,{translateTo:[j,et],scaleYTo:3});break;case"scaleZTo":Object.assign(yt,{translateTo:[j,et],scaleZTo:1}),Object.assign(Tt,{translateTo:[j,et],scaleZTo:3});break;case"scale3dTo":Object.assign(yt,{translateTo:[j,et],scale3dTo:[1,1,1]}),Object.assign(Tt,{translateTo:[j,et],scale3dTo:[3,3,3]});break;case"skewTo":Object.assign(yt,{translateTo:[j,et],skewTo:0}),Object.assign(Tt,{translateTo:[j,et],skewTo:30});break;case"skewXTo":Object.assign(yt,{translateTo:[j,et],skewXTo:0}),Object.assign(Tt,{translateTo:[j,et],skewXTo:30});break;case"skewYTo":Object.assign(yt,{translateTo:[j,et],skewYTo:0}),Object.assign(Tt,{translateTo:[j,et],skewYTo:30});break;case"perspective":Object.assign(yt,{translateTo:[j,et],perspective:0}),Object.assign(Tt,{translateTo:[j,et],perspective:1e3});break}fe.toTweenCSS(f.value,yt,Tt,{duration:2e3,easeFunction:e.easeFunction,onUpdate:oe=>{}}).startAuto()}function ft(){const O="Rosetta";d.value==O||!n.value||!o.value||(d.value=O,n.value.getSVG().then(C=>{o.value.getCanvas().then(w=>{const G=gt.generateRosetta(120,120,55,35,6);G.setAttr({stroke:"none",fill:"none"});const M=new de({x:0,y:0,width:20,height:10,attrs:{stroke:"none",fill:"green"}}),B=new gt({attrs:{stroke:"red","stroke-width":"3",fill:"none"}});C.clear(),w.ctx.clearRect(),fe.toTween({progress:0},{progress:1},{duration:15e3,onUpdate:nt=>{if(d.value!==O)return;const j=G.trailPath(B,nt.progress);M.x=j.x,M.y=j.y,M.degree=j.alpha+90,C.path([B,M]),w.ctx.clearRect(),w.draw([B,M])}}).startAuto()})}))}function ht(){const O="Confetti_"+ee();d.value=O,n.value.getSVG().then(C=>{o.value.getCanvas().then(w=>{C.clear();const G=new Fg(w.app.width,w.app.height,{scalar:1});jt.run(()=>d.value!==O?!1:(C.path(G),w.ctx.clearRect(),w.draw(G),!0))})})}const _t=[{name:"PathDGroup",type:"PathDGroup",onClick:U},{name:"Shapes",type:"Shapes",onClick:vt},{name:"Arrow",type:"Arrow",onClick:bt},{name:"targetToAfterDragFree",type:"PointEase",onClick:Ct},{name:"ballCollision",type:"BallCollision",onClick:Rt},{name:"balls",type:"Balls",onClick:$t},{name:"万有引力",type:"Gravitate",onClick:se},{name:"行星",type:"SunPlanet",onClick:ne},{name:"SpringMass",type:"SpringMass",onClick:ue},{name:"WalkMan",type:"WalkMan",onClick:Yt},{name:"俄罗斯方块",type:"RectGame",onClick:wt},{name:"喷泉",type:"PointWater",onClick:it},{name:"链式弹簧",type:"PointSpringChain",onClick:q},{name:"多点弹簧",type:"PointSpringMulti",onClick:Et},{name:"连接弹簧",type:"PointSpringConnect",onClick:$},{name:"QuadraticBezier",type:"QuadraticBezierCurve",onClick:Ut},{name:"Points - random",type:"PointsRandom",onClick:ge},{name:"线条动画",type:"InterpolatePath",onClick:Ae},{name:"线条动画 pathDGroup",type:"InterpolatePathGroup",onClick:Re},{name:"strokeDash",type:"StrokeDash",onClick:as},{name:"strokeDashAuto",type:"StrokeDashAuto",onClick:y},{name:"strokeDashGroupParallelAuto",type:"StrokeDashGroupParallelAuto",onClick:x},{name:"strokeDashGroupSequenceAuto",type:"StrokeDashGroupSequenceAuto",onClick:I},{name:"Animate - toCSS",type:"AnimateToCSS",onClick:J},{name:"Animate - toTweenCSS",type:"AnimateToTweenCSS",onClick:Y},{name:"扇形",type:"Sector",onClick:xt},{name:"rosetta",type:"Rosetta",onClick:ft},{name:"Confetti",type:"Confetti",onClick:ht}],Ot=[{type:"slideLeft",onClick:()=>v("slideLeft")},{type:"slideRight",onClick:()=>v("slideRight")},{type:"slideDown",onClick:()=>v("slideDown")},{type:"slideUp",onClick:()=>v("slideUp")},{type:"flipLeft",onClick:()=>v("flipLeft")},{type:"flipRight",onClick:()=>v("flipRight")},{type:"flipDown",onClick:()=>v("flipDown")},{type:"flipUp",onClick:()=>v("flipUp")},{type:"popIn",onClick:()=>v("popIn")},{type:"popOut",onClick:()=>v("popOut")},{type:"rotate",onClick:()=>v("rotate")}],Vt=[{type:"translateTo",onClick:()=>v("translateTo")},{type:"translateXTo",onClick:()=>v("translateXTo")},{type:"translateYTo",onClick:()=>v("translateYTo")},{type:"translateZTo",onClick:()=>v("translateZTo")},{type:"translate3dTo",onClick:()=>v("translate3dTo")},{type:"rotateTo",onClick:()=>v("rotateTo")},{type:"rotateXTo",onClick:()=>v("rotateXTo")},{type:"rotateYTo",onClick:()=>v("rotateYTo")},{type:"rotateZTo",onClick:()=>v("rotateZTo")},{type:"rotate3dTo",onClick:()=>v("rotate3dTo")},{type:"scaleTo",onClick:()=>v("scaleTo")},{type:"scaleXTo",onClick:()=>v("scaleXTo")},{type:"scaleYTo",onClick:()=>v("scaleYTo")},{type:"scaleZTo",onClick:()=>v("scaleZTo")},{type:"scale3dTo",onClick:()=>v("scale3dTo")},{type:"skewTo",onClick:()=>v("skewTo")},{type:"skewXTo",onClick:()=>v("skewXTo")},{type:"skewYTo",onClick:()=>v("skewYTo")},{type:"perspective",onClick:()=>v("perspective")}];function Xt(){return new Promise(O=>{o.value.getCanvas().then(C=>{vn.downloadFromSVGString(C.ctx.toRawSVG().raw,"CanvasToSVG").then(()=>{setTimeout(()=>{O()},3e3)})})})}return re(()=>{}),t({}),(O,C)=>(F(),X(zt,null,[S("div",p1,[pt(ve,{asyncClick:Xt},{default:he(()=>[Kt(" downloadFromCanvasToSVG ")]),_:1})]),S("div",m1,[(F(),X(zt,null,Ce(_t,w=>pt(ve,{key:w.type,item:w,onClick:w.onClick,stylePattern:d.value.indexOf(w.type)>=0?"fullfilled":"outline"},{default:he(()=>[Kt(kt(w.name),1)]),_:2},1032,["item","onClick","stylePattern"])),64))]),Es(S("div",g1,[(F(),X(zt,null,Ce(Ot,w=>pt(ve,{key:w.type,item:w,onClick:w.onClick,stylePattern:m.value==w.type?"fullfilled":"outline"},{default:he(()=>[Kt(kt(w.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[ps,d.value=="AnimateToCSS"]]),Es(S("div",null," 当前缓动函数:"+kt(e.easeName),513),[[ps,d.value=="AnimateToTweenCSS"]]),Es(S("div",y1,[(F(),X(zt,null,Ce(Vt,w=>pt(ve,{key:w.type,item:w,onClick:w.onClick,stylePattern:m.value==w.type?"fullfilled":"outline"},{default:he(()=>[Kt(kt(w.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[ps,d.value=="AnimateToTweenCSS"]]),Es(S("div",v1,[S("div",_1,[S("div",null,"stroke-dasharray: "+kt(Lt.value)+","+kt(Lt.value),1),pt(Qs,{max:988,defaultValue:Lt.value,onChange:Ue},null,8,["defaultValue"])]),S("div",b1,[S("div",null,"stroke-dashoffset: "+kt(ie.value),1),pt(Qs,{max:988,defaultValue:ie.value,onChange:os},null,8,["defaultValue"])])],512),[[ps,d.value=="StrokeDash"]]),Es(S("div",x1,[pt(Ar,{ref_key:"svgRef",ref:n,bgColor:"#ffffff"},null,512)],512),[[ps,d.value!=="AnimateToCSS"&&d.value!=="AnimateToTweenCSS"]]),Es(S("div",w1,[pt(Js,{ref_key:"canvasRef",ref:o,bgColor:"#333333"},null,512)],512),[[ps,d.value!=="AnimateToCSS"&&d.value!=="AnimateToTweenCSS"]]),Es(S("div",S1,[S("div",C1,[S("div",{ref_key:"divOneRef",ref:a},"1",512),S("div",{ref_key:"divTwoRef",ref:l},"2",512),S("div",{ref_key:"divThreeRef",ref:c},"3",512)]),S("div",E1,[S("div",{ref_key:"divOneSingleRef",ref:u},"one",512)])],512),[[ps,d.value=="AnimateToCSS"]]),Es(S("div",{ref_key:"tweenCSSContainerRef",ref:h,style:{height:"400px"},class:"css-area"},[S("div",{ref_key:"divTweenTargetRef",ref:f,class:"tween-css-target"},null,512)],512),[[ps,d.value=="AnimateToTweenCSS"]])],64))}}),Pb="",T1=ut(k1,[["__scopeId","data-v-1386da9c"]]),O1={class:"loading-1"},P1=lt({__name:"Loading1",props:{color:{default:ot.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(F(),X("div",O1,[S("div",{class:"rect1",style:e}),S("div",{class:"rect2",style:e}),S("div",{class:"rect3",style:e}),S("div",{class:"rect4",style:e}),S("div",{class:"rect5",style:e})]))}}),Db="",D1=ut(P1,[["__scopeId","data-v-48b10c9a"]]),I1={class:"loading-2"},N1=lt({__name:"Loading2",props:{color:{default:ot.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(F(),X("div",I1,[S("div",{class:"dot1",style:e}),S("div",{class:"dot2",style:e})]))}}),Ib="",M1=ut(N1,[["__scopeId","data-v-79f9930f"]]),A1=lt({__name:"Loading3",props:{fromColor:{default:ot.colorPrimary},toColor:{default:ot.colorRed}},setup(s){const t=s,e=`
|
|
101
|
+
`,onClick:()=>{const{x:Vt,y:re,width:oe,height:me}=o.value.getBoundingClientRect();bt(_.x,_.y,_.width,_.height,Vt,re,oe,me,()=>{$t(),y=!1})}},Ct));return bt}function E(){if(!r.value||!n.openImageViewWhenClick)return;y=!0;const{x:tt,y:L,width:W,height:vt}=o.value.getBoundingClientRect();k=M(tt,L,W,vt)}return pe(()=>{m?.destroy()}),t({}),(tt,L)=>(N(),j("div",{ref_key:"imageOutterRef",ref:r,class:"image",style:z({backgroundColor:n.bgColor}),onClick:E},[x("div",{ref_key:"imageInnerRef",ref:o,class:"image-inner",style:z({width:f.value+"px",height:d.value+"px",backgroundImage:`url(${n.src})`,backgroundSize:`${f.value}px ${d.value}px`})},null,4)],4))}}),Vb="",Fa=ct(Gy,[["__scopeId","data-v-34d166d5"]]),zy=at({customOptions:{},inheritAttrs:!0,__name:"Routes",props:{direction:{default:"rightToLeft"},duration:{default:300},easeName:{default:"ease-in-out"}},emits:["finish"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=R();let o=[],a;const l=new ye;let c=0,u=!1;const h={};function f(){switch(pi(h),n.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&&(pr(ze("div",{class:"routes-inner-wrap",style:"height: 100%;"},o.map(L=>ze("div",{class:"route-page",style:"display: block; position: relative; width: 100%; min-height: 100%;"},ze(L.component,{...L.attributes,style:{...L.attributes.style||{},...h}})))),r.value),l?.fromDOM([...r.value.children[0].children]))}const m=L=>{if(!(!a||u||!o.length)){if(u=!0,L.push&&(c=o.length-1),L.pop){if(!o.length){u=!1;return}c=o.length-1}if(L.reset&&(c=0),L.forward){if(c>=o.length-1){u=!1;return}c++}if(L.back&&c<=0){u=!1;return}l.toCSS(a,{easeName:n.easeName,dur:L?.dur??n.duration,direction:L.back||L.pop?"reverse":"normal",onComplete:()=>{(L.back||L.pop)&&c--,L.pop&&(o.pop(),d()),i("finish",c),u=!1,L?.onComplete?.()}},c)}};function y(L=[],W){o=[],L.forEach(vt=>o.push({component:vt.component,attributes:vt.attributes??{}})),d(),m({reset:!0,onComplete:W})}function _(L,W={}){o.push({component:L,attributes:W}),d(),m({push:!0})}function k(){m({pop:!0})}function I(){m({forward:!0})}function M(){m({back:!0})}function E(L,W){L>o.length-1||L<0||L==c||(W||(W=n.duration/Math.abs(L-c)),c<L?m({forward:!0,dur:W,onComplete:()=>{setTimeout(()=>{E(L,W)})}}):m({back:!0,dur:W,onComplete:()=>{setTimeout(()=>{E(L,W)})}}))}function tt(){d(),m({resize:!0})}return js(()=>{xe.page.on("resize",tt)}),pe(()=>{xe.page.off("resize",tt)}),t({reset:y,push:_,pop:k,forward:I,back:M,goto:E}),(L,W)=>(N(),j("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))}}),Fb="",hh=ct(zy,[["__scopeId","data-v-e9c68065"]]),By={style:{position:"absolute",width:"100%",height:"100%"}},jy={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},Yy=at({customOptions:{Image:Fa},inheritAttrs:!0,__name:"ImageView",props:{urls:{default:()=>[]}},setup(s,{expose:t,emit:e}){const n=s,i=R(),r=R(),o=R(),a=R(0);let l;function c(m){a.value=m}function u(){o.value?.forward()}function h(){o.value?.back()}It(r,()=>{r.value&&(l?.destroy(),l=new xe(r.value),l.on("panLeft",u),l.on("panRight",h),l.on("tap",d))}),It(o,()=>{o.value&&o.value.reset(n.urls.map(m=>({component:ze("div",{style:"position:absolute;width:100%;height:100%"},ze(Fa,{mode:"aspectFit",src:m,openImageViewWhenClick:!1}))})))});function f(){i.value?.open()}function d(){i.value?.close()}return pe(()=>{l?.destroy()}),t({open:f,close:d}),(m,y)=>(N(),Zt(Je,{ref_key:"popRef",ref:i,directionFrom:"absolute"},{default:Bt(()=>[x("div",By,[n.urls.length>1?(N(),j("div",jy,Et(a.value+1)+" / "+Et(n.urls.length),1)):Wt("",!0),x("div",{ref_key:"pageRef",ref:r,style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"}},[pt(hh,{ref_key:"routesRef",ref:o,direction:n.urls.length>1?"rightToLeft":"none",duration:600,onFinish:c},null,8,["direction"])],512)])]),_:1},512))}}),Gb="",Hy=ct(Yy,[["__scopeId","data-v-be51d205"]]),zb="",Xy={class:"page"},Uy={class:"header"},Wy={class:"main"},qy={class:"main-scroll"},Zy={class:"footer"},Ky=at({customOptions:{},inheritAttrs:!0,__name:"LayoutMobile",props:{designWidth:{default:750}},setup(s,{expose:t,emit:e}){return ng(s.designWidth),t({}),(i,r)=>(N(),j("div",Xy,[x("header",Uy,[Nt(i.$slots,"header",{},void 0,!0)]),x("div",Wy,[x("div",qy,[Nt(i.$slots,"main",{},void 0,!0)])]),x("footer",Zy,[Nt(i.$slots,"footer",{},void 0,!0)])]))}}),Bb="",Qy=ct(Ky,[["__scopeId","data-v-3904d6b5"]]),Jy=at({customOptions:{},inheritAttrs:!0,__name:"LayoutCenter",props:{type:{default:"grid"}},setup(s,{expose:t,emit:e}){const n=s,i=ne({}),r=ne({});function o(){switch(pi(i),pi(r),n.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(),pe(()=>{}),t({}),(a,l)=>(N(),j("div",{class:"layout-center",style:z(i)},[x("div",{style:z(r)},[Nt(a.$slots,"default",{},void 0,!0)],4)],4))}}),jb="",tv=ct(Jy,[["__scopeId","data-v-a768b36f"]]),ev=(s=>(fn("data-v-d02782ac"),s=s(),pn(),s))(()=>x("div",{style:{"background-color":"#ffffff"}},"popover-default-panel",-1)),sv=at({customOptions:{Pop:Je,Button:we},inheritAttrs:!0,__name:"Popover",props:{gap:{default:10},isGlobal:{type:Boolean,default:!0}},setup(s){const t=s,e=R(),n=R(),i=R(),r=ne({left:"0",top:"0"});It(n,()=>{o()}),It(i,()=>{o()});function o(){if(!n.value||!i.value)return;const l=ju(),c=n.value.getBoundingClientRect(),u=i.value.getBoundingClientRect(),h=u.width,f=u.height;let d=c.x+c.width+t.gap,m=c.y;d=Math.max(t.gap,Math.min(d,l.width-h-t.gap)),m=Math.max(t.gap,Math.min(m,l.height-f-t.gap)),r.left=`${d}px`,r.top=`${m}px`}function a(){e.value.open()}return(l,c)=>(N(),j(Gt,null,[x("div",{ref_key:"popoverButtonRef",ref:n,style:{display:"inline-block"},onClick:a},[Nt(l.$slots,"button",{},()=>[pt(we,null,{default:Bt(()=>[Jt("popover-default-button")]),_:1})],!0)],512),pt(Je,{ref_key:"popRef",ref:e,"direction-from":"absolute",isGlobal:t.isGlobal},{default:Bt(()=>[x("div",{ref_key:"popoverPanelRef",ref:i,style:z([{display:"inline-block",position:"absolute"},r])},[Nt(l.$slots,"panel",{},()=>[ev],!0)],4)]),_:3},8,["isGlobal"])],64))}}),Hb="",Ga=ct(sv,[["__scopeId","data-v-d02782ac"]]),nv={class:"tab"},iv=at({name:"Tab",customOptions:{},inheritAttrs:!0,__name:"Tab",props:{label:{}},setup(s,{expose:t}){return t({}),(e,n)=>(N(),j("div",nv,[Nt(e.$slots,"default",{},void 0,!0)]))}}),Xb="",rv=ct(iv,[["__scopeId","data-v-6589e7fa"]]),ov={class:"tabs"},av=["onClick"],lv={class:"content"},cv=at({customOptions:{},inheritAttrs:!0,__name:"Tabs",props:{labels:{},pages:{},initIndex:{default:0}},emits:["changedIndex"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=R(n.initIndex),o=ne([]),a=R(),l=R(0),c=R(0),u=R(0),h=R([]),f=[],d=pf(),m=d.default&&d.default();m&&(mi(o,m),k(r.value));const y=(M,E)=>{if(M){if(f.push({index:E,el:M}),f.length<o.length)return;h.value=f}};It([a,h],()=>{_()});function _(){if(a.value&&h.value.length){const M=a.value.getBoundingClientRect(),E=h.value[r.value].el.getBoundingClientRect();l.value=E.x-M.x,c.value=E.y-M.y+E.height-2,u.value=E.width}}function k(M){r.value=M,i("changedIndex",M),_(),I.value.goto(M)}const I=R();return It(I,()=>{I.value&&I.value.reset(n.pages,()=>{I.value.goto(n.initIndex)})}),t({}),(M,E)=>(N(),j("div",ov,[x("div",{class:"header",ref_key:"headerRef",ref:a},[(N(!0),j(Gt,null,be(n.labels,(tt,L)=>(N(),j("div",{key:tt,class:le(L==r.value?"active":""),onClick:W=>k(L)},[x("div",{ref_for:!0,ref:W=>y(W,L)},Et(tt),513)],10,av))),128)),x("div",{class:"indicator",style:z({top:c.value+"px",left:l.value+"px",width:u.value+"px",height:"2px"})},null,4)],512),x("div",lv,[pt(hh,{ref_key:"routesRef",ref:I,direction:"rightToLeft",duration:200},null,512)])]))}}),Ub="",uv=ct(cv,[["__scopeId","data-v-e74e266d"]]),hv=["width","height"],dv=at({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(s,{expose:t,emit:e}){const n=s;let i=()=>{};const r=R();return It(r,()=>{if(!r.value)return;const o=new xe(r.value),a=new rh(o,!0);a.ctx.strokeStyle=n.brushColor,a.ctx.lineWidth=n.brushSize,a.drawMouseMoveLine("line"),i=()=>{bn.downloadFromSVGString(a.ctx.toRawSVG().raw,n.downloadFileName)}}),t({download:()=>i()}),(o,a)=>(N(),j("canvas",{ref_key:"panelRef",ref:r,width:n.canvasWidth,height:n.canvasHeight,style:z([`border: 1px solid ${o.borderColor}`])},null,12,hv))}}),fv={class:"wrap",style:{}},pv=at({customOptions:{ProgressBar:Pi},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(s,{expose:t,emit:e}){const n=s,i=e,r=R(),o=()=>{const a=Km();i("progress",a),r.value?.goto(a)};return xe.page.registerGlobalScrollChange(o),pe(()=>{xe.page.removeGlobalScrollChange(o)}),t({}),(a,l)=>(N(),j("div",fv,[pt(Pi,{ref_key:"bar",ref:r,width:"100%",height:"100%",bgColor:n.bgColor,progressColor:n.progressColor,borderColor:n.borderColor,borderRadius:n.borderRadius,duringTimeGap:n.duringTimeGap,showText:n.showText},null,8,["bgColor","progressColor","borderColor","borderRadius","duringTimeGap","showText"])]))}}),Wb="",mv=ct(pv,[["__scopeId","data-v-2e31cfe2"]]),gv=["fill"],yv=["fill"],vv=at({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(N(),j("svg",{style:z(["width: "+t.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[x("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:t.color},null,8,gv),x("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:t.color},null,8,yv)],4))}}),qb="",za=ct(vv,[["__scopeId","data-v-987aed3d"]]),Fr=s=>(fn("data-v-5f064292"),s=s(),pn(),s),_v=Fr(()=>x("div",{class:"title"},"车牌颜色",-1)),bv={class:"plate-types"},xv=["onClick"],wv=Fr(()=>x("div",{class:"title"},"车牌号码",-1)),Sv={class:"plate-numbers"},Cv=Fr(()=>x("div",{class:"dot"},"·",-1)),kv=["onClick"],Ev=Fr(()=>x("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1)),Tv=at({customOptions:{SVGCheck:za},__name:"PlateMobile",props:{maxWidth:{default:"750px"}},emits:["clear","complete"],setup(s,{expose:t,emit:e}){const n=s,i=e,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=R(0),a=ne([]),l=R(-1);function c(){Iy({initPlates:a,completePlateLength:r[o.value].completePlateLength,onPlates:f=>{mi(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")):mi(a,a.slice(0,r[f].completePlateLength)),r[f].completePlateLength===a.length&&i("complete",r[o.value].name,a.join(""))},h=f=>{mi(a,a.slice(0,f)),l.value=Math.min(Math.max(0,l.value),f),c(),i("clear")};return t({}),(f,d)=>(N(),j("div",Vo(f.$attrs,{class:"plate-mobile",style:{maxWidth:n.maxWidth}}),[_v,x("div",bv,[(N(),j(Gt,null,be(r,(m,y)=>x("div",{key:y,class:le(y==o.value?"checked":""),onClick:_=>u(y)},[x("div",{style:z(m.style)},null,4),x("div",null,Et(m.name),1),x("div",null,[pt(za,{color:"#ffffff",width:"0.14rem"})])],10,xv)),64))]),wv,x("div",Sv,[x("div",{onClick:d[0]||(d[0]=m=>h(0)),class:le(l.value==0?"current":"")},Et(a[0]),3),x("div",{onClick:d[1]||(d[1]=m=>h(1)),class:le(l.value==1?"current":"")},Et(a[1]),3),Cv,(N(!0),j(Gt,null,be(r[o.value].completePlateLength-2,m=>(N(),j("div",{key:m,class:le(m+1==l.value?"current":""),onClick:y=>h(m+1)},Et(a[m+1]),11,kv))),128))]),Ev],16))}}),Zb="",Ov=ct(Tv,[["__scopeId","data-v-5f064292"]]),Pv={class:"parent"},Iv=at({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay",props:{plate:{},plateType:{},displayType:{default:"chinese"},fontColor:{},fontSize:{}},setup(s,{expose:t,emit:e}){const n=s,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(n.plate),l=R(o(n.plateType));let c=n.fontColor,u=n.fontSize;switch(n.displayType){case"dot":c=c??"#999999",u=u??"14px";break;case"chinese":c=c??"#333333",u=u??"20px";break}return t({}),(h,f)=>(N(),j("div",Pv,[x("div",{class:le(["leading",n.displayType]),style:z(l.value.style)},Et(l.value.name),7),x("div",{class:"text",style:z({color:Lt(c),"font-size":Lt(u)})},Et(Lt(a)),5)]))}}),Kb="",Dv=ct(Iv,[["__scopeId","data-v-11a104c3"]]),Fn=(s,t=0,e=1)=>s>e?e:s<t?t:s,Se=(s,t=0,e=Math.pow(10,t))=>Math.round(e*s)/e,Mv=s=>$v(Ba(s)),Ba=s=>(s[0]==="#"&&(s=s.substring(1)),s.length<6?{r:parseInt(s[0]+s[0],16),g:parseInt(s[1]+s[1],16),b:parseInt(s[2]+s[2],16),a:s.length===4?Se(parseInt(s[3]+s[3],16)/255,2):1}:{r:parseInt(s.substring(0,2),16),g:parseInt(s.substring(2,4),16),b:parseInt(s.substring(4,6),16),a:s.length===8?Se(parseInt(s.substring(6,8),16)/255,2):1}),Nv=s=>Rv(Av(s)),dh=({h:s,s:t,v:e,a:n})=>{const i=(200-t)*e/100;return{h:Se(s),s:Se(i>0&&i<200?t*e/100/(i<=100?i:200-i)*100:0),l:Se(i/2),a:Se(n,2)}},ja=s=>{const{h:t,s:e,l:n}=dh(s);return`hsl(${t}, ${e}%, ${n}%)`},Ya=s=>{const{h:t,s:e,l:n,a:i}=dh(s);return`hsla(${t}, ${e}%, ${n}%, ${i})`},Av=({h:s,s:t,v:e,a:n})=>{s=s/360*6,t=t/100,e=e/100;const i=Math.floor(s),r=e*(1-t),o=e*(1-(s-i)*t),a=e*(1-(1-s+i)*t),l=i%6;return{r:Se([e,o,r,r,a,e][l]*255),g:Se([a,e,e,o,r,r][l]*255),b:Se([r,r,a,e,e,o][l]*255),a:Se(n,2)}},Gr=s=>{const t=s.toString(16);return t.length<2?"0"+t:t},Rv=({r:s,g:t,b:e,a:n})=>{const i=n<1?Gr(Se(n*255)):"";return"#"+Gr(s)+Gr(t)+Gr(e)+i},$v=({r:s,g:t,b:e,a:n})=>{const i=Math.max(s,t,e),r=i-Math.min(s,t,e),o=r?i===s?(t-e)/r:i===t?2+(e-s)/r:4+(s-t)/r:0;return{h:Se(60*(o<0?o+6:o)),s:Se(i?r/i*100:0),v:Se(i/255*100),a:n}},fh=(s,t)=>{if(s===t)return!0;for(const e in s)if(s[e]!==t[e])return!1;return!0},Lv=(s,t)=>s.toLowerCase()===t.toLowerCase()?!0:fh(Ba(s),Ba(t)),ph={},mh=s=>{let t=ph[s];return t||(t=document.createElement("template"),t.innerHTML=s,ph[s]=t),t},Ha=(s,t,e)=>{s.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:e}))};let Gn=!1;const Xa=s=>"touches"in s,Vv=s=>Gn&&!Xa(s)?!1:(Gn||(Gn=Xa(s)),!0),gh=(s,t)=>{const e=Xa(t)?t.touches[0]:t,n=s.el.getBoundingClientRect();Ha(s.el,"move",s.getMove({x:Fn((e.pageX-(n.left+window.pageXOffset))/n.width),y:Fn((e.pageY-(n.top+window.pageYOffset))/n.height)}))},Fv=(s,t)=>{const e=t.keyCode;e>40||s.xy&&e<37||e<33||(t.preventDefault(),Ha(s.el,"move",s.getMove({x:e===39?.01:e===37?-.01:e===34?.05:e===33?-.05:e===35?1:e===36?-1:0,y:e===40?.01:e===38?-.01:0},!0)))};class Ua{constructor(t,e,n,i){const r=mh(`<div role="slider" tabindex="0" part="${e}" ${n}><div part="${e}-pointer"></div></div>`);t.appendChild(r.content.cloneNode(!0));const o=t.querySelector(`[part=${e}]`);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(t){const e=t?document.addEventListener:document.removeEventListener;e(Gn?"touchmove":"mousemove",this),e(Gn?"touchend":"mouseup",this)}handleEvent(t){switch(t.type){case"mousedown":case"touchstart":if(t.preventDefault(),!Vv(t)||!Gn&&t.button!=0)return;this.el.focus(),gh(this,t),this.dragging=!0;break;case"mousemove":case"touchmove":t.preventDefault(),gh(this,t);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":Fv(this,t);break}}style(t){t.forEach((e,n)=>{for(const i in e)this.nodes[n].style.setProperty(i,e[i])})}}class Gv extends Ua{constructor(t){super(t,"hue",'aria-label="Hue" aria-valuemin="0" aria-valuemax="360"',!1)}update({h:t}){this.h=t,this.style([{left:`${t/360*100}%`,color:ja({h:t,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${Se(t)}`)}getMove(t,e){return{h:e?Fn(this.h+t.x*360,0,360):360*t.x}}}class zv extends Ua{constructor(t){super(t,"saturation",'aria-label="Color"',!0)}update(t){this.hsva=t,this.style([{top:`${100-t.v}%`,left:`${t.s}%`,color:ja(t)},{"background-color":ja({h:t.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${Se(t.s)}%, Brightness ${Se(t.v)}%`)}getMove(t,e){return{s:e?Fn(this.hsva.s+t.x*100,0,100):t.x*100,v:e?Fn(this.hsva.v-t.y*100,0,100):Math.round(100-t.y*100)}}}const Bv=':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)}',jv="[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}",Yv="[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}",zr=Symbol("same"),Wa=Symbol("color"),yh=Symbol("hsva"),qa=Symbol("update"),vh=Symbol("parts"),Br=Symbol("css"),jr=Symbol("sliders");let Hv=class extends HTMLElement{static get observedAttributes(){return["color"]}get[Br](){return[Bv,jv,Yv]}get[jr](){return[zv,Gv]}get color(){return this[Wa]}set color(t){if(!this[zr](t)){const e=this.colorModel.toHsva(t);this[qa](e),this[Wa]=t}}constructor(){super();const t=mh(`<style>${this[Br].join("")}</style>`),e=this.attachShadow({mode:"open"});e.appendChild(t.content.cloneNode(!0)),e.addEventListener("move",this),this[vh]=this[jr].map(n=>new n(e))}connectedCallback(){if(this.hasOwnProperty("color")){const t=this.color;delete this.color,this.color=t}else this.color||(this.color=this.colorModel.defaultColor)}attributeChangedCallback(t,e,n){const i=this.colorModel.fromAttr(n);this[zr](i)||(this.color=i)}handleEvent(t){const e=this[yh],n={...e,...t.detail};this[qa](n);let i;!fh(n,e)&&!this[zr](i=this.colorModel.fromHsva(n))&&(this[Wa]=i,Ha(this,"color-changed",{value:i}))}[zr](t){return this.color&&this.colorModel.equal(t,this.color)}[qa](t){this[yh]=t,this[vh].forEach(e=>e.update(t))}};class Xv extends Ua{constructor(t){super(t,"alpha",'aria-label="Alpha" aria-valuemin="0" aria-valuemax="1"',!1)}update(t){this.hsva=t;const e=Ya({...t,a:0}),n=Ya({...t,a:1}),i=t.a*100;this.style([{left:`${i}%`,color:Ya(t)},{"--gradient":`linear-gradient(90deg, ${e}, ${n}`}]);const r=Se(i);this.el.setAttribute("aria-valuenow",`${r}`),this.el.setAttribute("aria-valuetext",`${r}%`)}getMove(t,e){return{a:e?Fn(this.hsva.a+t.x):t.x}}}const Uv=`[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 Wv extends Hv{get[Br](){return[...super[Br],Uv]}get[jr](){return[...super[jr],Xv]}}const qv={defaultColor:"#0001",toHsva:Mv,fromHsva:Nv,equal:Lv,fromAttr:s=>s};class Zv extends Wv{get colorModel(){return qv}}class Kv extends Zv{}customElements.define("hex-alpha-color-picker",Kv);const Qv=at({customOptions:{Popover:Ga},__name:"ColorPicker",props:{color:{default:ot.colorPrimary}},emits:["change"],setup(s,{emit:t}){const e=s,n=t,i=R(e.color);It(i,(a,l)=>{a!==l&&n("change",a)});const r=R(),o=a=>{i.value=a.detail.value};return It(r,()=>{r.value&&(r.value.removeEventListener("color-changed",o),r.value.addEventListener("color-changed",o))}),(a,l)=>{const c=Hd("hex-alpha-color-picker");return N(),Zt(Ga,null,{button:Bt(()=>[Nt(a.$slots,"default",{},()=>[x("span",{class:"button",style:z({backgroundColor:i.value})},null,4)],!0)]),panel:Bt(()=>[pt(c,{ref_key:"colorPickerRef",ref:r,color:i.value},null,8,["color"])]),_:3})}}}),Qb="",Jv=ct(Qv,[["__scopeId","data-v-ac12603f"]]),Jb="",t1={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 s=document.createElement("object");this._resizeObject=s,s.setAttribute("aria-hidden","true"),s.setAttribute("tabindex",-1),s.onload=this.addResizeHandlers,s.type="text/html",pa&&this.$el.appendChild(s),s.data="about:blank",pa||this.$el.appendChild(s)},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&&(!pa&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},e1={class:"resize-observer",tabindex:"-1"};function s1(s,t,e,n,i,r){return N(),j("div",e1)}const n1=ct(t1,[["render",s1],["__scopeId","data-v-d5987ae1"]]),i1=at({__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(s,{expose:t,emit:e}){const n=s,i=R(n.mapWidth),r=R(n.mapHeight);let o;const a=R();return It(a,()=>{a.value&&(o=new xe(a.value,!1),o.on("resize",(l,c)=>{i.value=l+"px",r.value=c+"px"}),o.start())}),js(()=>{U.loadScript(`http://api.tianditu.gov.cn/api?v=4.0&tk=${n.mapKey}`,()=>{new Wg(n.mapContainerID,n.mapCenterLng,n.mapCenterLat,n.mapZoom)},l=>{console.log("error",l)})}),pe(()=>{o.destroy()}),t({}),(l,c)=>(N(),j("div",Vo({class:"mapDivWrap",ref_key:"mapWrap",ref:a},l.$attrs),[Nt(l.$slots,"default",{width:i.value,height:r.value},void 0,!0)],16))}}),tx="",r1=ct(i1,[["__scopeId","data-v-e5da8598"]]);var Ii=function(){var s=0,t=document.createElement("div");t.style.cssText="position:fixed;top:0;right:0;cursor:pointer;opacity:0.9;z-index:10000",t.addEventListener("click",function(u){u.preventDefault(),n(++s%t.children.length)},!1);function e(u){return t.appendChild(u.dom),u}function n(u){for(var h=0;h<t.children.length;h++)t.children[h].style.display=h===u?"block":"none";s=u}var i=(performance||Date).now(),r=i,o=0,a=e(new Ii.Panel("FPS","#0ff","#002")),l=e(new Ii.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var c=e(new Ii.Panel("MB","#f08","#201"));return n(0),{REVISION:16,dom:t,addPanel:e,showPanel:n,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:t,setMode:n}};Ii.Panel=function(s,t,e){var n=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,y=document.createElement("canvas");y.width=a,y.height=l,y.style.cssText="width:80px;height:48px";var _=y.getContext("2d");return _.font="bold "+9*o+"px Helvetica,Arial,sans-serif",_.textBaseline="top",_.fillStyle=e,_.fillRect(0,0,a,l),_.fillStyle=t,_.fillText(s,c,u),_.fillRect(h,f,d,m),_.fillStyle=e,_.globalAlpha=.9,_.fillRect(h,f,d,m),{dom:y,update:function(k,I){n=Math.min(n,k),i=Math.max(i,k),_.fillStyle=e,_.globalAlpha=1,_.fillRect(0,0,a,f),_.fillStyle=t,_.fillText(r(k)+" "+s+" ("+r(n)+"-"+r(i)+")",c,u),_.drawImage(y,h+o,f,d-o,m,h,f,d-o,m),_.fillRect(h+d-o,f,o,m),_.fillStyle=e,_.globalAlpha=.9,_.fillRect(h+d-o,f,o,r((1-k/I)*m))}}};const o1=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats",setup(s,{expose:t}){const e=R();return js(()=>{const n=new Ii,i=n.domElement.style;i.margin="1em",e.value.appendChild(n.domElement),jt.run(()=>(n.update(),!0))}),t({}),(n,i)=>(N(),j("div",{ref_key:"containerRef",ref:e},null,512))}}),a1=["width","height"],l1=at({__name:"Canvas",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["resize"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=R(),o=R(),a=R(0),l=R(0);let c;It(r,()=>{r.value&&(c=new xe(r.value,!1),c.on("resize",(y,_)=>{const k=ju();a.value=Math.min(y,k.width),l.value=Math.min(_,k.height),d()}),c.start())}),It(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,_)=>{h=new rh(u),i("resize",y,_),f?.(h)}),u.start())}function m(){return new Promise(y=>{if(h&&u.width&&u.height)return y(h);f=y})}return pe(()=>{u?.destroy(),c?.destroy()}),t({getCanvasElement:()=>o.value,getCanvas:m}),(y,_)=>(N(),j("div",{class:"canvas-wrap",ref_key:"canvasWrapRef",ref:r},[x("canvas",{ref_key:"canvasRef",ref:o,width:a.value,height:l.value,style:z({backgroundColor:n.bgColor})},null,12,a1)],512))}}),sx="",Js=ct(l1,[["__scopeId","data-v-d6a232ce"]]),c1={class:"ease-graph"},u1=at({customOptions:{Button:we,Canvas:Js},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(s,{expose:t,emit:e}){const n=s,i=e,r=R();let o;It(r,()=>{r.value&&r.value.getCanvas().then(u=>{o=u,i("onMounted",n.easeName),o.app.on("showInParent",l)})});let a=!1;const l=()=>{if(!o||a)return;a=!0,i("onStart",n.easeName),o.ctx.fillStyle="rgb(250,250,250)",o.ctx.fillRect(0,0,n.canvasWidth,n.canvasHeight),o.ctx.lineWidth=.5,o.ctx.strokeStyle="rgb(230,230,230)",o.ctx.beginPath(),o.ctx.moveTo(0,n.graphVerticalGap),o.ctx.lineTo(n.canvasWidth,n.graphVerticalGap),o.ctx.moveTo(0,n.canvasHeight-n.graphVerticalGap),o.ctx.lineTo(n.canvasWidth,n.canvasHeight-n.graphVerticalGap),o.ctx.closePath(),o.ctx.stroke(),o.ctx.lineWidth=2,o.ctx.strokeStyle="rgb(255,127,127)";const u={x:n.graphHorizontalGap,y:n.canvasHeight-n.graphVerticalGap},h={x:n.graphHorizontalGap,y:n.canvasHeight-n.graphVerticalGap};let f=!1,d=!1;ye.toTween(u,{x:n.canvasWidth-n.graphHorizontalGap},{duration:n.easeDuration,easeFunction:dt.Easing.Linear.None,onComplete:()=>{f=!0,f&&d&&(i("onCompleted",n.easeName),a=!1)}}).startAuto(),ye.toTween(u,{y:n.graphVerticalGap},{duration:n.easeDuration,easeFunction:n.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",n.easeName),a=!1)}}).startAuto()},c=()=>{i("onSelected",n.easeName,n.easeFunction)};return pe(()=>{o.app.off("showInParent",l)}),t({start:l}),(u,h)=>(N(),j("div",c1,[x("div",null,"缓动:"+Et(u.easeName),1),x("div",null,[x("div",null,[pt(we,{stylePattern:"outline",height:"32px",padding:"10px",onClick:l},{default:Bt(()=>[Jt(" 开始 ")]),_:1})]),x("div",null,[pt(we,{stylePattern:n.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:Bt(()=>[Jt(" 选择 ")]),_:1},8,["stylePattern"])])]),x("div",{style:z({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[pt(Js,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),nx="",Za=ct(u1,[["__scopeId","data-v-5c401464"]]),h1=2e3,d1=at({customOptions:{EaseGraphDisplay:Za},inheritAttrs:!0,__name:"EaseGroupGraphDisplay",props:{easeList:{default:()=>[{easeName:"Linear",easeFunction:dt.Easing.Linear.None},{easeName:"gap"},{easeName:"QuadraticIn",easeFunction:dt.Easing.Quadratic.In},{easeName:"QuadraticOut",easeFunction:dt.Easing.Quadratic.Out},{easeName:"QuadraticInOut",easeFunction:dt.Easing.Quadratic.InOut},{easeName:"gap"},{easeName:"CubicIn",easeFunction:dt.Easing.Cubic.In},{easeName:"CubicOut",easeFunction:dt.Easing.Cubic.Out},{easeName:"CubicInOut",easeFunction:dt.Easing.Cubic.InOut},{easeName:"gap"},{easeName:"QuarticIn",easeFunction:dt.Easing.Quartic.In},{easeName:"QuarticOut",easeFunction:dt.Easing.Quartic.Out},{easeName:"QuarticInOut",easeFunction:dt.Easing.Quartic.InOut},{easeName:"gap"},{easeName:"QuinticIn",easeFunction:dt.Easing.Quintic.In},{easeName:"QuinticOut",easeFunction:dt.Easing.Quintic.Out},{easeName:"QuinticInOut",easeFunction:dt.Easing.Quintic.InOut},{easeName:"gap"},{easeName:"SinusoidalIn",easeFunction:dt.Easing.Sinusoidal.In},{easeName:"SinusoidalOut",easeFunction:dt.Easing.Sinusoidal.Out},{easeName:"SinusoidalInOut",easeFunction:dt.Easing.Sinusoidal.InOut},{easeName:"gap"},{easeName:"ExponentialIn",easeFunction:dt.Easing.Exponential.In},{easeName:"ExponentialOut",easeFunction:dt.Easing.Exponential.Out},{easeName:"ExponentialInOut",easeFunction:dt.Easing.Exponential.InOut},{easeName:"gap"},{easeName:"CircularIn",easeFunction:dt.Easing.Circular.In},{easeName:"CircularOut",easeFunction:dt.Easing.Circular.Out},{easeName:"CircularInOut",easeFunction:dt.Easing.Circular.InOut},{easeName:"gap"},{easeName:"ElasticIn",easeFunction:dt.Easing.Elastic.In},{easeName:"ElasticOut",easeFunction:dt.Easing.Elastic.Out},{easeName:"ElasticInOut",easeFunction:dt.Easing.Elastic.InOut},{easeName:"gap"},{easeName:"BackIn",easeFunction:dt.Easing.Back.In},{easeName:"BackOut",easeFunction:dt.Easing.Back.Out},{easeName:"BackInOut",easeFunction:dt.Easing.Back.InOut},{easeName:"gap"},{easeName:"BounceIn",easeFunction:dt.Easing.Bounce.In},{easeName:"BounceOut",easeFunction:dt.Easing.Bounce.Out},{easeName:"BounceInOut",easeFunction:dt.Easing.Bounce.InOut},{easeName:"gap"},{easeName:"generatePow(10)In",easeFunction:dt.Easing.generatePow(10).In},{easeName:"generatePow(10)Out",easeFunction:dt.Easing.generatePow(10).Out},{easeName:"generatePow(10)InOut",easeFunction:dt.Easing.generatePow(10).InOut},{easeName:"gap"},{easeName:"4 steps",easeFunction:dt.Easing.createStep(4)},{easeName:"8 steps",easeFunction:dt.Easing.createStep(8)},{easeName:"12 steps",easeFunction:dt.Easing.createStep(12)},{easeName:"16 steps",easeFunction:dt.Easing.createStep(16)},{easeName:"gap"},{easeName:"Noisy Exponential.InOut",easeFunction:dt.Easing.createNoisyEasing(dt.Easing.Exponential.InOut,.1)},{easeName:"Noisy Elastic.InOut",easeFunction:dt.Easing.createNoisyEasing(dt.Easing.Elastic.InOut,.2)},{easeName:"Noisy Circular.InOut",easeFunction:dt.Easing.createNoisyEasing(dt.Easing.Circular.InOut,.1)},{easeName:"swing",easeFunction:dt.Easing.swing},{easeName:"causeSeizures",easeFunction:dt.Easing.causeSeizures}]}},emits:["selectedEaseFunction"],setup(s,{expose:t,emit:e}){const n=s,i=e,r={};function o(f,d){f&&(r[d]={el:f})}const a=new Vu(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=R("Linear");function h(f,d){u.value=f,i("selectedEaseFunction",f,d)}return h("Linear",dt.Easing.Linear.None),t({}),(f,d)=>(N(),j("div",null,[(N(!0),j(Gt,null,be(n.easeList,m=>(N(),j("div",{key:m.easeName,class:"ease-graph-wrap"},[m.easeFunction?(N(),Zt(Za,{key:0,easeName:m.easeName,easeFunction:m.easeFunction,easeDuration:h1,isSelected:u.value==m.easeName,onOnMounted:l,onOnCompleted:c,onOnSelected:h,ref_for:!0,ref:y=>o(y,m.easeName)},null,8,["easeName","easeFunction","isSelected"])):Wt("",!0)]))),128))]))}}),ix="",f1=ct(d1,[["__scopeId","data-v-fa7ba01d"]]),p1={class:"interpolation-graph"},_h=1/6,bh=5/6,m1=at({customOptions:{Button:we,Canvas:Js},inheritAttrs:!0,__name:"InterpolationGraphDisplay",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},easeDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=R();let o;It(r,()=>{r.value&&r.value.getCanvas().then(y=>{o=y,i("onMounted",n.interpolationName),o.app.on("showInParent",m)})});const a=n.canvasWidth*_h,l=n.canvasHeight/2,c=[n.canvasWidth*bh,n.canvasWidth/2],u=[n.canvasHeight*_h,n.canvasHeight*bh],h=[...c,a],f=[...u,l];let d=!1;const m=()=>{if(!o||d)return;d=!0,i("onStart",n.interpolationName),o.ctx.fillStyle="rgb(250,250,250)",o.ctx.fillRect(0,0,n.canvasWidth,n.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 _=!1,k=!1;const I={x:a,y:l,old:{x:a,y:l}};ye.toTween(I,{x:c,y:u},{duration:n.easeDuration,easeFunction:dt.Easing.Linear.None,interpolationFunction:n.interpolationFunction,onUpdate:E=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.9)",o.ctx.beginPath(),o.ctx.moveTo(E.old.x,E.old.y),o.ctx.lineTo(E.x,E.y),o.ctx.closePath(),o.ctx.stroke(),E.old.x=E.x,E.old.y=E.y},onComplete:()=>{_=!0,_&&k&&(i("onCompleted",n.interpolationName),d=!1)}}).startAuto();const M={x:a,y:l,old:{x:a,y:l}};ye.toTween(M,{x:h,y:f},{duration:n.easeDuration,easeFunction:dt.Easing.Linear.None,interpolationFunction:n.interpolationFunction,onUpdate:E=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.5)",o.ctx.beginPath(),o.ctx.moveTo(E.old.x,E.old.y),o.ctx.lineTo(E.x,E.y),o.ctx.closePath(),o.ctx.stroke(),E.old.x=E.x,E.old.y=E.y},onComplete:()=>{k=!0,_&&k&&(i("onCompleted",n.interpolationName),d=!1)}}).startAuto()};return pe(()=>{o.app.off("showInParent",m)}),t({start:m}),(y,_)=>(N(),j("div",p1,[x("div",null,[Jt(" 插值:"+Et(y.interpolationName)+" ",1),pt(we,{stylePattern:"outline",height:"32px",onClick:m},{default:Bt(()=>[Jt(" 开始 ")]),_:1})]),x("div",{style:z({width:y.canvasWidth+"px",height:y.canvasHeight+"px"})},[pt(Js,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),rx="",Ka=ct(m1,[["__scopeId","data-v-eb70b61a"]]),g1=2e3,y1=at({customOptions:{InterpolationGraphDisplay:Ka},inheritAttrs:!0,__name:"InterpolationGroupGraphDisplay",props:{interpolationList:{default:()=>[{interpolationName:"Linear",interpolationFunction:dt.Interpolation.Linear},{interpolationName:"Bezier",interpolationFunction:dt.Interpolation.Bezier},{interpolationName:"CatmullRom",interpolationFunction:dt.Interpolation.CatmullRom}]}},setup(s,{expose:t,emit:e}){const n=s,i={};function r(c,u){c&&(i[u]={el:c})}const o=new Vu(1);function a(c){o.addTask(()=>(i[c].el.start(),new Promise(u=>{i[c].resolve=u})))}function l(c){i[c].resolve?.()}return t({}),(c,u)=>(N(),j("div",null,[(N(!0),j(Gt,null,be(n.interpolationList,h=>(N(),j("div",{key:h.interpolationName,class:"interpolation-graph-wrap"},[pt(Ka,{interpolationName:h.interpolationName,interpolationFunction:h.interpolationFunction,easeDuration:g1,onOnMounted:a,onOnCompleted:l,ref_for:!0,ref:f=>r(f,h.interpolationName)},null,8,["interpolationName","interpolationFunction"])]))),128))]))}}),ox="",v1=ct(y1,[["__scopeId","data-v-6e8312e3"]]),_1='<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>',b1={class:"btns"},x1={class:"btns"},w1={class:"btns sub-btns"},S1={class:"btns sub-btns"},C1={class:"btns sub-btns"},k1={style:{width:"100%"}},E1={style:{width:"100%"}},T1={style:{height:"400px"}},O1={style:{height:"400px"}},P1={style:{height:"400px"},class:"css-area"},I1={class:"animate-to-css-group"},D1={class:"animate-to-css-group"},M1=at({customOptions:{Button:we,InputRange:Qs,SVG:Lr,Canvas:Js},inheritAttrs:!0,__name:"SVGAndCanvas",props:{easeName:{default:"Linear"},easeFunction:{type:Function,default:dt.Easing.Linear.None}},setup(s,{expose:t}){const e=s,n=R();let i=0,r=0;It(n,()=>{n.value&&n.value.getSVG().then(O=>{i=O.app.width,r=O.app.height,O.app.on("resize",(C,S)=>{i=C,r=S})})});const o=R(),a=R(),l=R(),c=R(),u=R(),h=R(),f=R(),d=R(""),m=R("");function y(O){switch(m.value=O,d.value){case"AnimateToCSS":B();break;case"AnimateToTweenCSS":rt();break}}const _=new ys({svg:_1,width:300,attrs:{"stroke-width":"1",stroke:"#ff0000",fill:"none"},enableDrag:!0});function k(O,C,S=30){return new Oe({x:O,y:C,radius:S,attrs:{fill:Ne()}})}function I(O,C,S=3){const G=[];for(let A=0;A<S;A++)G.push(new Oe({x:Math.random()*O,y:Math.random()*C,radius:10,attrs:{fill:Ne()},enableDrag:!0}));return G}function M(){return new Rr({scaleOnOrigin:.5,followMouse:!0,attrs:{fill:Ne()}})}function E(O,C){return new Pe({x:O,y:C,attrs:{"stroke-width":"1",stroke:"#666666"}})}const tt=k(0,0,8),L=k(0,0,5);function W(){const O="PathDGroup";if(d.value==O||!n.value||!o.value)return;d.value=O;let C=[_,tt,L];n.value.getSVG().then(S=>{o.value.getCanvas().then(G=>{let A,H;const nt=Kt=>{H&&S.delete(H),A&&A?.restore(),A=Kt,Kt.save(),Kt.attrs.fill="pink",Kt.attrs.stroke="green",C=[_,tt,L],H=Kt.getBoundingClientRect(),H&&(H.attrs.fill="none",H.attrs.strokeWidth="4",H.attrs.stroke="#0000ff",C.push(H))},Y=S.click(Kt=>{nt(Kt)}),et=G.click(Kt=>{nt(Kt)});let yt=0,Tt=_.shapes[yt].getTotalLength(),ue=0;const Ye=.01;S.clear(),jt.run(()=>{if(d.value!==O)return Y(),et(),A&&(A.restore(),S.delete(A)),!1;ue>1&&(yt++,ue=0,yt>_.shapes.length-1&&(yt=0),Tt=_.shapes[yt].getTotalLength()),G.ctx.clearRect();let{x:Kt,y:ts}=_.shapes[yt].interpolate(ue);tt.x=Kt,tt.y=ts;let{x:Qt,y:Ce}=_.shapes[yt].getPointAtLength(ue*Tt);return L.x=Qt,L.y=Ce,S.path(C),G.draw(C),ue+=Ye,!0})})})}function vt(){const O="Shapes";if(d.value==O||!n.value||!o.value)return;d.value=O;const C=new Rr({x:ie(0,i),y:ie(0,r),scaleOnOrigin:.5,attrs:{fill:"#5a82f0",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),S=new ge({x:ie(0,i),y:ie(0,r),width:100,height:60,borderRadius:10,attrs:{fill:"pink",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),G=new Ma({x:ie(0,i),y:ie(0,r),scaleOnOrigin:1,attrs:{fill:"rgb(200,80,80)",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),A=new Vg({x:ie(0,i),y:ie(0,r),scaleOnOrigin:1,attrs:{fill:Ne(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),H=new Fg({x:ie(0,i),y:ie(0,r),scaleOnOrigin:1,attrs:{fill:Ne(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),nt=new nh({x:ie(0,i),y:ie(0,r),scaleOnOrigin:1,attrs:{fill:Ne()},enableDrag:!0}),Y=new Gg({x:ie(0,i),y:ie(0,r),scaleOnOrigin:1,attrs:{fill:Ne(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),et=new zg({x:ie(0,i),y:ie(0,r),scaleOnOrigin:1,attrs:{fill:Ne()},enableDrag:!0}),yt=new Bg({x:ie(0,i),y:ie(0,r),degree:30,scaleOnOrigin:.5,attrs:{strokeWidth:"2",stroke:Ne(),fill:"none"},enableDrag:!0}),Tt=new Xg({x:ie(0,i),y:ie(0,r),degree:0,scaleOnOrigin:2,showFlame:!0,attrs:{stroke:Ne()},enableDrag:!0}),ue=new ih({x:100,y:100,min:0,max:200,step:2,defaultValue:10,barWidth:200});ue.on("change",Bn=>{console.log(`slider change: ${Bn}`)});const Ye=new Ei({x:100,y:120,width:200,height:20,degree:30,attrs:{stroke:Ne()},enableDrag:!0});C.group(A);const Kt=ie(0,i-100),ts=ie(0,r-100),Qt=new Pe({fromX:Kt,fromY:ts,x:Kt+100,y:ts+100,attrs:{stroke:"#666666"}}),Ce=new Pe({fromX:Kt+100,fromY:ts,x:Kt,y:ts+100,attrs:{stroke:"#666666"}}),qe=k(0,0,10),Cn=Qt.intersection(Ce);Cn&&(qe.x=Cn.x,qe.y=Cn.y);const Di=new Na({x:100,y:100,width:100,height:100,startDegree:45,endDegree:270,lineWidth:10,color:Ne(),enableDrag:!0}),vs=[C,S,G,A,H,nt,Y,et,yt,Tt,ue,Ye,Qt,Ce,qe,Di];n.value.getSVG().then(Bn=>{o.value.getCanvas().then(Yr=>{Bn.clear(),jt.run(()=>d.value!==O?!1:(Bn.path(vs),Yr.ctx.clearRect(),Yr.draw(vs),!0))})})}function bt(){const O="Arrow";d.value==O||!n.value||!o.value||(d.value=O,n.value.getSVG().then(C=>{const S=M(),G=E(C.app.width/2,C.app.height/2);C.clear(),jt.run(()=>d.value!==O?!1:(G.fromX=S.x,G.fromY=S.y,C.path([G,S]),!0))}),o.value.getCanvas().then(C=>{const S=M(),G=E(C.app.width/2,C.app.height/2);jt.run(()=>d.value!=O?!1:(C.ctx.clearRect(),G.fromX=S.x,G.fromY=S.y,C.draw([G,S]),!0))}))}function Ct(){const O="PointEase";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{const S=k(C.app.width/2,C.app.height/2);S.enableDrag=!0,S.targetToAfterDragFree={targetX:C.app.width/2,targetY:C.app.height/2},C.clear(),jt.run(()=>d.value!==O?!1:(C.path(S),!0))}),o.value.getCanvas().then(C=>{const S=k(C.app.width/2,C.app.height/2);S.enableDrag=!0,S.targetToAfterDragFree={targetX:C.app.width/2,targetY:C.app.height/2},jt.run(()=>d.value!=O?!1:(C.ctx.clearRect(),C.draw(S),!0))}))}function $t(){const O="BallCollision";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{const S=k(50,C.app.height/2);S.mass=2,S.vx=2;const G=k(C.app.width-50,C.app.height/2);G.mass=1,G.vx=-2,C.clear(),o.value.getCanvas().then(A=>{jt.run(()=>d.value!=O?!1:(S.checkCollision(G),S.nextFrame(),G.nextFrame(),C.path([S,G]),A.ctx.clearRect(),A.draw([S,G]),!0))})}))}function Vt(){const O="Balls";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{o.value.getCanvas().then(S=>{const A=[];for(let nt=0;nt<15;nt++){const Y=Math.random()*20+15,et=k(Math.random()*C.app.width,Math.random()*C.app.height,Y);et.mass=Y,et.vx=Math.random()*10-5,et.vy=Math.random()*10-5,A.push(et)}const H=new ge({x:0,y:0,width:C.app.width,height:C.app.height});C.clear(),jt.run(()=>d.value!=O?!1:(Oe.comboMove(A,H),C.path(A),S.ctx.clearRect(),S.draw(A),!0))})}))}function re(){const O="Gravitate";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{o.value.getCanvas().then(S=>{const A=[];for(let H=0;H<30;H++){const nt=Math.random()*25+5,Y=k(Math.random()*C.app.width,Math.random()*C.app.height,nt);Y.mass=nt,A.push(Y)}C.clear(),jt.run(()=>d.value!=O?!1:(ee.comboGravitate(A),C.path(A),S.ctx.clearRect(),S.draw(A),!0))})}))}function oe(){const O="SunPlanet";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{o.value.getCanvas().then(S=>{const G=k(C.app.width*.5,C.app.height*.5,50);G.mass=1e4;const A=k(C.app.width*.5+200,C.app.height*.5,10);A.mass=1,A.vy=7;const H=[G,A];C.clear(),jt.run(()=>d.value!=O?!1:(ee.comboGravitate(H),C.path(H),S.ctx.clearRect(),S.draw(H),!0))})}))}function me(){const O="SpringMass";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{o.value.getCanvas().then(S=>{const G=[];for(let et=0;et<30;et++){const yt=Math.random()*10+2,Tt=k(Math.random()*S.app.width,Math.random()*S.app.height,yt);Tt.vx=Math.random()*6-3,Tt.vy=Math.random()*6-3,Tt.mass=yt,G.push(Tt)}const H=new ge({x:0,y:0,width:S.app.width,height:S.app.height}),nt=[];ee.comboSpringMass(G,H,{spring:5e-4}).forEach(([et,yt,Tt,ue,Ye])=>{nt.push(new Pe({fromX:et,fromY:yt,x:Tt,y:ue,attrs:{strokeWidth:"1",stroke:Or("#666666",Ye)}}))});const Y=[...nt,...G];C.clear(),C.path(Y),jt.run(()=>d.value!=O?!1:(ee.comboSpringMass(G,H,{spring:5e-4}).forEach(([et,yt,Tt,ue,Ye],Kt)=>{nt[Kt].fromX=et,nt[Kt].fromY=yt,nt[Kt].x=Tt,nt[Kt].y=ue,nt[Kt].setAttr("stroke",Or("#666666",Ye))}),C.path(Y),S.ctx.clearRect(),S.draw(Y),!0))})}))}function Ht(){const O="WalkMan";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{o.value.getCanvas().then(S=>{const G=new Ei({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),A=new Ei({width:50,height:10,attrs:{stroke:"#666666"}}),H=new Ei({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),nt=new Ei({width:50,height:10,attrs:{stroke:"#666666"}});let Y=0,et=0;function yt(){et+=.2,G.groupTranslate(Y,et),H.groupTranslate(Y,et)}const Tt=-Math.PI/2;function ue(Qt,Ce,qe){const Cn=Math.sin(qe)*45+90,Di=Math.sin(qe+Tt)*45+45,vs=Ce.getPin();Qt.groupRotateTo(Cn),Ce.groupRotateTo(Qt.degree+Di),Ce.groupTranslateTo(Qt.getPin().x,Qt.getPin().y),Ce.vx=Ce.getPin().x-vs.x,Ce.vy=Ce.getPin().y-vs.y}function Ye(Qt){const Ce=Qt.getPin().y+Qt.height/2;if(Ce>S.app.height){const qe=Ce-S.app.height;G.groupTranslate(0,-qe),A.groupTranslate(0,-qe),H.groupTranslate(0,-qe),nt.groupTranslate(0,-qe),Y-=Qt.vx,et-=Qt.vy}}function Kt(){const Qt=S.app.width+200;G.x>S.app.width+100?(G.groupTranslate(-Qt,0),A.groupTranslate(-Qt,0),H.groupTranslate(-Qt,0),nt.groupTranslate(-Qt,0)):G.x<-100&&(G.groupTranslate(Qt,0),A.groupTranslate(Qt,0),H.groupTranslate(Qt,0),nt.groupTranslate(Qt,0))}let ts=0;C.clear(),jt.run(()=>d.value!=O?!1:(ts+=.06,yt(),ue(G,A,ts),ue(H,nt,ts+Math.PI),Ye(A),Ye(nt),Kt(),C.path([G,A,H,nt]),S.ctx.clearRect(),S.draw([G,A,H,nt]),!0))})}))}function xt(){const O="Sector";if(d.value==O||!n.value||!o.value)return;d.value=O;const C=new Yg({x:300,y:100,radius:100,startDegree:80,endDegree:200,enableDrag:!0,text:"些许文字",defaultShowText:!1,tip:"提示文字...",attrs:{fill:"pink",stroke:"#666666"}});n.value.getSVG().then(S=>{S.clear(),o.value.getCanvas().then(G=>{jt.run(()=>d.value!=O?!1:(S.path(C),G.ctx.clearRect(),G.draw(C),!0))})})}function wt(){const O="RectGame";if(d.value==O)return;d.value=O;function C(nt){return new ge({x:Math.random()*nt,y:0,width:50,height:50,attrs:{fill:Ne()},enableDrag:!0})}const S=.2,G=[];function A(){const nt=C(i);return G.push(nt),nt}let H=A();n.value.getSVG().then(nt=>{nt.clear(),o.value.getCanvas().then(Y=>{jt.run(()=>d.value!=O?!1:(Y.ctx.clearRect(),nt.isMouseDown||Y.isMouseDown?(nt.path(G),Y.draw(G)):(H&&H.nextFrame({gravity:S}),H&&H.y+H.height>=Y.ctx.canvas.height&&(H.y=Y.ctx.canvas.height-H.height,H=A()),G.forEach(et=>(H&&H!==et&&H.isIntersectRect(et)&&(H.y=et.y-H.height,H.y>=H.height?H=A():H=null),et)),nt.path(G),Y.draw(G)),!0))})})}function it(){const O="PointWater";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{const S=[];for(let G=0;G<80;G++){const A=k(C.app.width/2,C.app.height,2);A.vx=Math.random()*2-1,A.vy=Math.random()*-10-10,S.push(A)}C.clear(),o.value.getCanvas().then(G=>{jt.run(()=>d.value!=O?!1:(S.forEach(A=>{A.nextFrame({gravity:.5}),(A.x-A.radius>C.app.width||A.x+A.radius<0||A.y-A.radius>C.app.height||A.y+A.radius<0)&&(A.x=C.app.width/2,A.y=C.app.height,A.vx=Math.random()*2-1,A.vy=Math.random()*-10-10)}),C.path(S),G.ctx.clearRect(),G.draw(S),!0))})}))}function q(){const O="PointSpringChain";if(d.value==O)return;d.value=O;function C(A,H){const nt=[];for(let Y=0;Y<3;Y++)nt.push(k(A,H,20));return nt}function S(){const A=[];for(let H=0;H<3;H++)A.push(new Pe({attrs:{"stroke-width":"1",stroke:"#666666"}}));return A}const G={spring:.03,friction:.9,gravity:2};n.value.getSVG().then(A=>{const H=S(),nt=C(A.app.width/2,A.app.height/2);A.clear(),jt.run(()=>d.value!==O?!1:(ee.comboSpringChain([A.app.mousePoint,...nt],G),nt.forEach((Y,et)=>{if(et===0)H[et].fromX=A.app.mousePoint.x,H[et].fromY=A.app.mousePoint.y,H[et].x=Y.x,H[et].y=Y.y;else{const yt=nt[et-1];H[et].fromX=yt.x,H[et].fromY=yt.y,H[et].x=Y.x,H[et].y=Y.y}}),A.path(H),A.path(nt),!0))}),o.value.getCanvas().then(A=>{const H=S(),nt=C(A.app.width/2,A.app.height/2);jt.run(()=>d.value!=O?!1:(A.ctx.clearRect(),ee.comboSpringChain([A.app.mousePoint,...nt],G),nt.forEach((Y,et)=>{if(et===0)H[et].fromX=A.app.mousePoint.x,H[et].fromY=A.app.mousePoint.y,H[et].x=Y.x,H[et].y=Y.y;else{const yt=nt[et-1];H[et].fromX=yt.x,H[et].fromY=yt.y,H[et].x=Y.x,H[et].y=Y.y}}),A.draw(H),A.draw(nt),!0))})}function kt(){const O="PointSpringMulti";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{const S=[E(0,0),E(0,0),E(0,0)],G=I(C.app.width,C.app.height),A=new Oe({radius:20,attrs:{fill:"#ff0000"}});C.clear(),o.value.getCanvas().then(H=>{jt.run(()=>d.value!=O?!1:(A.nextFrameSpringTo(G,{spring:.03}),G.forEach((nt,Y)=>{S[Y].fromX=A.x,S[Y].fromY=A.y,S[Y].x=nt.x,S[Y].y=nt.y}),C.path([...S,...G,A]),H.ctx.clearRect(),H.draw([...S,...G,A]),!0))})}))}function V(){const O="PointSpringConnect";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{const S=[E(0,0),E(0,0),E(0,0)],G=I(C.app.width,C.app.height);C.clear(),o.value.getCanvas().then(A=>{jt.run(()=>d.value!=O?!1:(ee.comboSpringConnect(G,{springLength:120}),S[0].x=G[0].x,S[0].y=G[0].y,S[0].fromX=G[1].x,S[0].fromY=G[1].y,S[1].x=G[1].x,S[1].y=G[1].y,S[1].fromX=G[2].x,S[1].fromY=G[2].y,S[2].x=G[2].x,S[2].y=G[2].y,S[2].fromX=G[0].x,S[2].fromY=G[0].y,C.path([...S,...G]),A.ctx.clearRect(),A.draw([...S,...G]),!0))})}))}function qt(){const O="QuadraticBezierCurve";if(d.value==O)return;d.value=O;const C=50;n.value.getSVG().then(S=>{const G=new xn({x:C,y:S.app.height-C,fromX:S.app.width-C,fromY:S.app.height-C,cx:S.app.mousePoint.x,cy:S.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),A=new xn({x:C,y:S.app.height-C,fromX:S.app.width-C,fromY:S.app.height-C,cx:S.app.mousePoint.x,cy:S.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});S.clear(),jt.run(()=>d.value!==O?!1:(A.cx=G.cx=S.app.mousePoint.x,A.cy=G.cy=S.app.mousePoint.y,S.path(G),S.path(A),!0))}),o.value.getCanvas().then(S=>{const G=new xn({x:C,y:S.ctx.canvas.height-C,fromX:S.ctx.canvas.width-C,fromY:S.ctx.canvas.height-C,cx:S.app.mousePoint.x,cy:S.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),A=new xn({x:C,y:S.ctx.canvas.height-C,fromX:S.ctx.canvas.width-C,fromY:S.ctx.canvas.height-C,cx:S.app.mousePoint.x,cy:S.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});jt.run(()=>d.value!=O?!1:(S.ctx.clearRect(),A.cx=G.cx=S.app.mousePoint.x,A.cy=G.cy=S.app.mousePoint.y,S.draw([G,A]),!0))})}function _e(){const O="PointsRandom";d.value=O;function C(S,G){const A=[];for(let H=0;H<10;H++){const nt=new Oe({x:Math.random()*S,y:Math.random()*G,radius:3,attrs:{stroke:"pink","stroke-width":"2"}});A.push(nt)}return A}n.value.getSVG().then(S=>{const G=C(S.app.width,S.app.height),A=G.map((H,nt)=>new ge({x:H.x,y:H.y,width:6,height:6,attrs:{fill:nt==0?"#ff0000":"#666666"}}));S.clear(),S.path(A),S.path(new Ln(G)),o.value.getCanvas().then(H=>{H.ctx.clearRect(),H.draw([...A,new Ln(G)])})})}function Re(){const O="InterpolatePath";if(d.value==O||!n.value||!o.value)return;d.value=O;const C=new Rr({x:200,y:200,scaleOnOrigin:1,attrs:{stroke:"#5a82f0"}}),S=new ge({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#ACFFAD"}}),G=new Ma({x:200,y:200,scaleOnOrigin:3,attrs:{stroke:"rgb(200,80,80)"}}),A=Ln.generatePoints(100,100,100,3),H=Ln.generatePoints(100,100,100,6);A.attrs.stroke="#666666",H.attrs.stroke="#7EEDFF";const nt=gt.polymorph([gt.fromShape(A),gt.fromShape(H),gt.fromShape(C),gt.fromShape(S),gt.fromShape(G)]),Y=nt(0);Y.enableDrag=!0,n.value.getSVG().then(et=>{et.clear(),o.value.getCanvas().then(yt=>{const Tt=ye.toTween({t:0},{t:1},{duration:6e3,easeFunction:e.easeFunction,onUpdate:ue=>{d.value===O&&(nt(ue.t),et.path(Y),yt.ctx.clearRect(),yt.draw(Y))},onComplete:()=>{}});Tt.tween.start(),jt.run(()=>d.value!==O?!1:(Tt.tween.update()||(et.path(Y),yt.ctx.clearRect(),yt.draw(Y)),!0))})})}function $e(){const O="InterpolatePathGroup";if(d.value==O||!n.value||!o.value)return;d.value=O;const C=new Rr({x:200,y:200,scaleOnOrigin:1,attrs:{stroke:"#5a82f0"}}),S=new ge({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#42B79E"}}),G=new Ma({x:200,y:200,scaleOnOrigin:3,attrs:{stroke:"rgb(200,80,80)"}}),A=ys.polymorph([ys.fromShape(C),ys.fromShape(S),_,ys.fromShape(G)]),H=A(0);n.value.getSVG().then(nt=>{nt.clear(),o.value.getCanvas().then(Y=>{ye.toTween({t:0},{t:1},{duration:6e3,easeFunction:e.easeFunction,onUpdate:et=>{d.value===O&&(A(et.t),nt.path(H),Y.ctx.clearRect(),Y.draw(H))},onComplete:()=>{}}).startAuto()})})}const Mt=gt.fromSVGPathD("M62.9 14.9c-25-7.74-56.6 4.8-60.4 24.3-3.73 19.6 21.6 35 39.6 37.6 42.8 6.2 72.9-53.4 116-58.9 65-18.2 191 101 215 28.8 5-16.7-7-49.1-34-44-34 11.5-31 46.5-14 69.3 9.38 12.6 24.2 20.6 39.8 22.9 91.4 9.05 102-98.9 176-86.7 18.8 3.81 33 17.3 36.7 34.6 2.01 10.2.124 21.1-5.18 30.1"),Le=+Mt.getTotalLength().toFixed(0),zt=R(Le),ae=R(Math.floor(Le/2));function We(O){zt.value=O,Mt.setAttr("strokeDasharray",`${zt.value} ${zt.value}`),n.value.getSVG().then(C=>{C.path(Mt)}),o.value.getCanvas().then(C=>{C.ctx.clearRect(),C.draw(Mt)})}function as(O){ae.value=O,Mt.setAttr("strokeDashoffset",`${ae.value}`),n.value.getSVG().then(C=>{C.path(Mt)}),o.value.getCanvas().then(C=>{C.ctx.clearRect(),C.draw(Mt)})}function ls(){const O="StrokeDash";d.value==O||!n.value||!o.value||(d.value=O,Mt.setAttr({stroke:"#666666",strokeWidth:"4",strokeDasharray:`${zt.value} ${zt.value}`,strokeDashoffset:`${ae.value}`}),n.value.getSVG().then(C=>{C.clear(),C.path(Mt)}),o.value.getCanvas().then(C=>{C.ctx.clearRect(),C.draw(Mt)}))}function v(){const O="StrokeDashAuto";d.value==O||!n.value||!o.value||(d.value=O,Mt.setAttr({stroke:"#ff0000",strokeWidth:"4"}),n.value.getSVG().then(C=>{C.clear(),o.value.getCanvas().then(S=>{Mt.strokeDashToTween({duration:4e3,easeFunction:e.easeFunction,onUpdate:()=>{C.path(Mt),S.ctx.clearRect(),S.draw(Mt)}}).startAuto()})}))}function w(){const O="StrokeDashGroupParallelAuto";d.value==O||!n.value||!o.value||(d.value=O,n.value.getSVG().then(C=>{_.setAttrs({stroke:"none"}),C.clear(),o.value.getCanvas().then(S=>{S.ctx.clearRect(),_.strokeDashToTween({type:"parallel",duration:4e3,easeFunction:e.easeFunction,precision:.05,onGroupStart:()=>{_.setAttrs({stroke:Ne()})},onGroupUpdate:()=>{C.path(_),S.ctx.clearRect(),S.draw(_)}}).startAuto()})}))}function D(){const O="StrokeDashGroupSequenceAuto";d.value==O||!n.value||!o.value||(d.value=O,n.value.getSVG().then(C=>{_.setAttrs({stroke:"none"}),C.clear(),o.value.getCanvas().then(S=>{S.ctx.clearRect(),_.strokeDashToTween({type:"sequence",duration:1e3,easeFunction:e.easeFunction,precision:.05,onGroupStart:()=>{_.setAttrs({stroke:Ne()})},onGroupUpdate:()=>{C.path(_),S.ctx.clearRect(),S.draw(_)}}).startAuto()})}))}const $=new ye,F=new ye;function J(){const O="AnimateToCSS";d.value=O,$.fromDOM([a.value,l.value,c.value]),F.fromDOM([u.value])}let K=0;function B(){switch(m.value){case"slideLeft":$.toCSS("slideLeft",{},++K%3),F.toCSS("slideLeft",{direction:K%2==0?"normal":"reverse"});break;case"slideRight":$.toCSS("slideRight",{easeName:"ease",dur:1e3},--K%3),F.toCSS("slideRight",{easeName:"ease",dur:1500,repeatCount:"infinite"});break;case"slideDown":$.toCSS("slideDown",{easeName:"ease-out",dur:500},++K%3),F.toCSS("slideDown",{easeName:"ease-out",dur:500});break;case"slideUp":$.toCSS("slideUp",{easeName:"ease-in",dur:500},++K%3),F.toCSS("slideUp",{easeName:"ease-in",dur:500});break;case"flipLeft":$.toCSS("flipLeft",{easeName:"linear",dur:1e3},++K%3),F.toCSS("flipLeft",{easeName:"linear",dur:1e3});break;case"flipRight":$.toCSS("flipRight",{easeName:"ease-in-out",dur:1e3},++K%3),F.toCSS("flipRight",{easeName:"ease-in-out",dur:1e3});break;case"flipDown":$.toCSS("flipDown",{easeName:"ease",dur:1e3},++K%3),F.toCSS("flipDown",{easeName:"ease",dur:1e3});break;case"flipUp":$.toCSS("flipUp",{easeName:"ease",dur:1e3},++K%3),F.toCSS("flipUp",{easeName:"ease",dur:1e3});break;case"popIn":$.toCSS("popIn",{easeName:"ease",dur:1e3},++K%3),F.toCSS("popIn",{easeName:"ease",dur:1e3});break;case"popOut":$.toCSS("popOut",{easeName:"ease",dur:1e3},++K%3),F.toCSS("popOut",{easeName:"ease",dur:1e3});break;case"rotate":$.toCSS("rotate",{easeName:"ease",dur:1e3,degree:90},K++%3),F.toCSS("rotate",{easeName:"ease",dur:1e3,degree:360});break}}let Q;function X(){const O="AnimateToTweenCSS";d.value=O,U.setStyle(f.value,{transform:""})}function rt(){Q||(Q=new xe(h.value));const O=50,C=0,S=0,G=0,A=Q.width-O,H=Q.height-O,nt=Q.height-O,Y=Q.width/2-O/2,et=Q.height/2-O/2,yt={},Tt={};switch(m.value){case"translateTo":Object.assign(yt,{translateTo:[C,S]}),Object.assign(Tt,{translateTo:[A,H]});break;case"translateXTo":Object.assign(yt,{translateXTo:C}),Object.assign(Tt,{translateXTo:A});break;case"translateYTo":Object.assign(yt,{translateYTo:S}),Object.assign(Tt,{translateYTo:H});break;case"translateZTo":Object.assign(yt,{translateTo:[Y,et],translateZTo:G}),Object.assign(Tt,{translateTo:[Y,et],translateZTo:nt});break;case"translate3dTo":Object.assign(yt,{translate3dTo:[Y-50,et-50,G]}),Object.assign(Tt,{translate3dTo:[Y+50,et+50,nt]});break;case"rotateTo":Object.assign(yt,{translateTo:[Y,et],rotateTo:0}),Object.assign(Tt,{translateTo:[Y,et],rotateTo:360});break;case"rotateXTo":Object.assign(yt,{translateTo:[Y,et],rotateXTo:0}),Object.assign(Tt,{translateTo:[Y,et],rotateXTo:180});break;case"rotateYTo":Object.assign(yt,{translateTo:[Y,et],rotateYTo:0}),Object.assign(Tt,{translateTo:[Y,et],rotateYTo:180});break;case"rotateZTo":Object.assign(yt,{translateTo:[Y,et],rotateZTo:0}),Object.assign(Tt,{translateTo:[Y,et],rotateZTo:360});break;case"rotate3dTo":Object.assign(yt,{translateTo:[Y,et],rotate3dTo:[0,0,0]}),Object.assign(Tt,{translateTo:[Y,et],rotate3dTo:[360,360,360]});break;case"scaleTo":Object.assign(yt,{translateTo:[Y,et],scaleTo:1}),Object.assign(Tt,{translateTo:[Y,et],scaleTo:3});break;case"scaleXTo":Object.assign(yt,{translateTo:[Y,et],scaleXTo:1}),Object.assign(Tt,{translateTo:[Y,et],scaleXTo:3});break;case"scaleYTo":Object.assign(yt,{translateTo:[Y,et],scaleYTo:1}),Object.assign(Tt,{translateTo:[Y,et],scaleYTo:3});break;case"scaleZTo":Object.assign(yt,{translateTo:[Y,et],scaleZTo:1}),Object.assign(Tt,{translateTo:[Y,et],scaleZTo:3});break;case"scale3dTo":Object.assign(yt,{translateTo:[Y,et],scale3dTo:[1,1,1]}),Object.assign(Tt,{translateTo:[Y,et],scale3dTo:[3,3,3]});break;case"skewTo":Object.assign(yt,{translateTo:[Y,et],skewTo:0}),Object.assign(Tt,{translateTo:[Y,et],skewTo:30});break;case"skewXTo":Object.assign(yt,{translateTo:[Y,et],skewXTo:0}),Object.assign(Tt,{translateTo:[Y,et],skewXTo:30});break;case"skewYTo":Object.assign(yt,{translateTo:[Y,et],skewYTo:0}),Object.assign(Tt,{translateTo:[Y,et],skewYTo:30});break;case"perspective":Object.assign(yt,{translateTo:[Y,et],perspective:0}),Object.assign(Tt,{translateTo:[Y,et],perspective:1e3});break}ye.toTweenCSS(f.value,yt,Tt,{duration:2e3,easeFunction:e.easeFunction,onUpdate:ue=>{}}).startAuto()}function ft(){const O="Rosetta";d.value==O||!n.value||!o.value||(d.value=O,n.value.getSVG().then(C=>{o.value.getCanvas().then(S=>{const G=gt.generateRosetta(120,120,55,35,6);G.setAttr({stroke:"none",fill:"none"});const A=new ge({x:0,y:0,width:20,height:10,attrs:{stroke:"none",fill:"green"}}),H=new gt({attrs:{stroke:"red","stroke-width":"3",fill:"none"}});C.clear(),S.ctx.clearRect(),ye.toTween({progress:0},{progress:1},{duration:15e3,onUpdate:nt=>{if(d.value!==O)return;const Y=G.trailPath(H,nt.progress);A.x=Y.x,A.y=Y.y,A.degree=Y.alpha+90,C.path([H,A]),S.ctx.clearRect(),S.draw([H,A])}}).startAuto()})}))}function ht(){const O="Confetti_"+ie();d.value=O,n.value.getSVG().then(C=>{o.value.getCanvas().then(S=>{C.clear();const G=new Ug(S.app.width,S.app.height,{scalar:1});jt.run(()=>d.value!==O?!1:(C.path(G),S.ctx.clearRect(),S.draw(G),!0))})})}const _t=[{name:"PathDGroup",type:"PathDGroup",onClick:W},{name:"Shapes",type:"Shapes",onClick:vt},{name:"Arrow",type:"Arrow",onClick:bt},{name:"targetToAfterDragFree",type:"PointEase",onClick:Ct},{name:"ballCollision",type:"BallCollision",onClick:$t},{name:"balls",type:"Balls",onClick:Vt},{name:"万有引力",type:"Gravitate",onClick:re},{name:"行星",type:"SunPlanet",onClick:oe},{name:"SpringMass",type:"SpringMass",onClick:me},{name:"WalkMan",type:"WalkMan",onClick:Ht},{name:"俄罗斯方块",type:"RectGame",onClick:wt},{name:"喷泉",type:"PointWater",onClick:it},{name:"链式弹簧",type:"PointSpringChain",onClick:q},{name:"多点弹簧",type:"PointSpringMulti",onClick:kt},{name:"连接弹簧",type:"PointSpringConnect",onClick:V},{name:"QuadraticBezier",type:"QuadraticBezierCurve",onClick:qt},{name:"Points - random",type:"PointsRandom",onClick:_e},{name:"线条动画",type:"InterpolatePath",onClick:Re},{name:"线条动画 pathDGroup",type:"InterpolatePathGroup",onClick:$e},{name:"strokeDash",type:"StrokeDash",onClick:ls},{name:"strokeDashAuto",type:"StrokeDashAuto",onClick:v},{name:"strokeDashGroupParallelAuto",type:"StrokeDashGroupParallelAuto",onClick:w},{name:"strokeDashGroupSequenceAuto",type:"StrokeDashGroupSequenceAuto",onClick:D},{name:"Animate - toCSS",type:"AnimateToCSS",onClick:J},{name:"Animate - toTweenCSS",type:"AnimateToTweenCSS",onClick:X},{name:"扇形",type:"Sector",onClick:xt},{name:"rosetta",type:"Rosetta",onClick:ft},{name:"Confetti",type:"Confetti",onClick:ht}],Ot=[{type:"slideLeft",onClick:()=>y("slideLeft")},{type:"slideRight",onClick:()=>y("slideRight")},{type:"slideDown",onClick:()=>y("slideDown")},{type:"slideUp",onClick:()=>y("slideUp")},{type:"flipLeft",onClick:()=>y("flipLeft")},{type:"flipRight",onClick:()=>y("flipRight")},{type:"flipDown",onClick:()=>y("flipDown")},{type:"flipUp",onClick:()=>y("flipUp")},{type:"popIn",onClick:()=>y("popIn")},{type:"popOut",onClick:()=>y("popOut")},{type:"rotate",onClick:()=>y("rotate")}],Ft=[{type:"translateTo",onClick:()=>y("translateTo")},{type:"translateXTo",onClick:()=>y("translateXTo")},{type:"translateYTo",onClick:()=>y("translateYTo")},{type:"translateZTo",onClick:()=>y("translateZTo")},{type:"translate3dTo",onClick:()=>y("translate3dTo")},{type:"rotateTo",onClick:()=>y("rotateTo")},{type:"rotateXTo",onClick:()=>y("rotateXTo")},{type:"rotateYTo",onClick:()=>y("rotateYTo")},{type:"rotateZTo",onClick:()=>y("rotateZTo")},{type:"rotate3dTo",onClick:()=>y("rotate3dTo")},{type:"scaleTo",onClick:()=>y("scaleTo")},{type:"scaleXTo",onClick:()=>y("scaleXTo")},{type:"scaleYTo",onClick:()=>y("scaleYTo")},{type:"scaleZTo",onClick:()=>y("scaleZTo")},{type:"scale3dTo",onClick:()=>y("scale3dTo")},{type:"skewTo",onClick:()=>y("skewTo")},{type:"skewXTo",onClick:()=>y("skewXTo")},{type:"skewYTo",onClick:()=>y("skewYTo")},{type:"perspective",onClick:()=>y("perspective")}];function Xt(){return new Promise(O=>{o.value.getCanvas().then(C=>{bn.downloadFromSVGString(C.ctx.toRawSVG().raw,"CanvasToSVG").then(()=>{setTimeout(()=>{O()},3e3)})})})}return pe(()=>{}),t({}),(O,C)=>(N(),j(Gt,null,[x("div",b1,[pt(we,{asyncClick:Xt},{default:Bt(()=>[Jt(" downloadFromCanvasToSVG ")]),_:1})]),x("div",x1,[(N(),j(Gt,null,be(_t,S=>pt(we,{key:S.type,item:S,onClick:S.onClick,stylePattern:d.value.indexOf(S.type)>=0?"fullfilled":"outline"},{default:Bt(()=>[Jt(Et(S.name),1)]),_:2},1032,["item","onClick","stylePattern"])),64))]),Es(x("div",w1,[(N(),j(Gt,null,be(Ot,S=>pt(we,{key:S.type,item:S,onClick:S.onClick,stylePattern:m.value==S.type?"fullfilled":"outline"},{default:Bt(()=>[Jt(Et(S.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[ms,d.value=="AnimateToCSS"]]),Es(x("div",null," 当前缓动函数:"+Et(e.easeName),513),[[ms,d.value=="AnimateToTweenCSS"]]),Es(x("div",S1,[(N(),j(Gt,null,be(Ft,S=>pt(we,{key:S.type,item:S,onClick:S.onClick,stylePattern:m.value==S.type?"fullfilled":"outline"},{default:Bt(()=>[Jt(Et(S.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[ms,d.value=="AnimateToTweenCSS"]]),Es(x("div",C1,[x("div",k1,[x("div",null,"stroke-dasharray: "+Et(zt.value)+","+Et(zt.value),1),pt(Qs,{max:988,defaultValue:zt.value,onChange:We},null,8,["defaultValue"])]),x("div",E1,[x("div",null,"stroke-dashoffset: "+Et(ae.value),1),pt(Qs,{max:988,defaultValue:ae.value,onChange:as},null,8,["defaultValue"])])],512),[[ms,d.value=="StrokeDash"]]),Es(x("div",T1,[pt(Lr,{ref_key:"svgRef",ref:n,bgColor:"#ffffff"},null,512)],512),[[ms,d.value!=="AnimateToCSS"&&d.value!=="AnimateToTweenCSS"]]),Es(x("div",O1,[pt(Js,{ref_key:"canvasRef",ref:o,bgColor:"#333333"},null,512)],512),[[ms,d.value!=="AnimateToCSS"&&d.value!=="AnimateToTweenCSS"]]),Es(x("div",P1,[x("div",I1,[x("div",{ref_key:"divOneRef",ref:a},"1",512),x("div",{ref_key:"divTwoRef",ref:l},"2",512),x("div",{ref_key:"divThreeRef",ref:c},"3",512)]),x("div",D1,[x("div",{ref_key:"divOneSingleRef",ref:u},"one",512)])],512),[[ms,d.value=="AnimateToCSS"]]),Es(x("div",{ref_key:"tweenCSSContainerRef",ref:h,style:{height:"400px"},class:"css-area"},[x("div",{ref_key:"divTweenTargetRef",ref:f,class:"tween-css-target"},null,512)],512),[[ms,d.value=="AnimateToTweenCSS"]])],64))}}),ax="",N1=ct(M1,[["__scopeId","data-v-f77d1c1f"]]),A1={class:"loading-1"},R1=at({__name:"Loading1",props:{color:{default:ot.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(N(),j("div",A1,[x("div",{class:"rect1",style:e}),x("div",{class:"rect2",style:e}),x("div",{class:"rect3",style:e}),x("div",{class:"rect4",style:e}),x("div",{class:"rect5",style:e})]))}}),lx="",$1=ct(R1,[["__scopeId","data-v-48b10c9a"]]),L1={class:"loading-2"},V1=at({__name:"Loading2",props:{color:{default:ot.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(N(),j("div",L1,[x("div",{class:"dot1",style:e}),x("div",{class:"dot2",style:e})]))}}),cx="",F1=ct(V1,[["__scopeId","data-v-79f9930f"]]),G1=at({__name:"Loading3",props:{fromColor:{default:ot.colorPrimary},toColor:{default:ot.colorRed}},setup(s){const t=s,e=`
|
|
103
102
|
@keyframes snake {
|
|
104
103
|
0% {
|
|
105
104
|
opacity: 0.3;
|
|
@@ -118,19 +117,29 @@ Expected function or array of functions, received type ${typeof s}.`),ae)}functi
|
|
|
118
117
|
box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1);
|
|
119
118
|
}
|
|
120
119
|
}
|
|
121
|
-
`,n={backgroundColor:t.fromColor,width:"20%"},i=
|
|
120
|
+
`,n={backgroundColor:t.fromColor,width:"20%"},i=R();return It(i,()=>{i.value&&U.setStyleSheet(e,i.value)}),js(()=>{}),pe(()=>{}),(r,o)=>(N(),j("div",{class:"loading-3",ref_key:"loading3",ref:i},[x("div",{class:"dot",style:z({...n,left:"0"})},null,4),x("div",{class:"dot",style:z({...n,left:"20%"})},null,4),x("div",{class:"dot",style:z({...n,left:"40%"})},null,4),x("div",{class:"dot",style:z({...n,left:"60%"})},null,4),x("div",{class:"dot",style:z({...n,left:"80%"})},null,4)],512))}}),ux="",z1=ct(G1,[["__scopeId","data-v-37830b28"]]),B1={class:"loading-4"},j1=at({__name:"Loading4",props:{color:{default:ot.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(N(),j("div",B1,[x("div",{class:"rect",style:e})]))}}),hx="",Y1=ct(j1,[["__scopeId","data-v-9028c8cf"]]),H1={class:"loading-5"},X1=at({__name:"Loading5",props:{color:{default:ot.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(N(),j("div",H1,[x("div",{class:"cube1",style:e}),x("div",{class:"cube2",style:e})]))}}),dx="",U1=ct(X1,[["__scopeId","data-v-6f68ee6f"]]),W1={class:"loading-6"},q1=at({__name:"Loading6",props:{color:{default:ot.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(N(),j("div",W1,[x("div",{style:e}),x("div",{style:e}),x("div",{style:e})]))}}),fx="",Z1=ct(q1,[["__scopeId","data-v-e397194b"]]),K1=[(s=>(fn("data-v-58741a38"),s=s(),pn(),s))(()=>x("div",null,null,-1))],Q1=at({__name:"Loading7",props:{color:{default:ot.colorPrimary}},setup(s){const t=s,e=`
|
|
122
121
|
:root {
|
|
123
122
|
--loading-7-bg-color: ${t.color}
|
|
124
123
|
}
|
|
125
124
|
:host {
|
|
126
125
|
--loading-7-bg-color: ${t.color}
|
|
127
126
|
}
|
|
128
|
-
`,n=
|
|
127
|
+
`,n=R();return It(n,()=>{n.value&&U.setStyleSheet(e,n.value)}),js(()=>{}),pe(()=>{}),(i,r)=>(N(),j("div",{class:"loading-7",ref_key:"loading7",ref:n},K1,512))}}),gx="",J1=ct(Q1,[["__scopeId","data-v-58741a38"]]),t_={class:"loading-9"},e_=at({__name:"Loading9",props:{color:{default:ot.colorPrimary}},setup(s){const e={borderTopColor:s.color};return(n,i)=>(N(),j("div",t_,[x("div",{style:e})]))}}),yx="",s_=ct(e_,[["__scopeId","data-v-a563aaa4"]]),n_={class:"loading-10"},i_={viewBox:"0 0 50 50"},r_=at({__name:"Loading10",props:{color:{default:ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(N(),j("div",n_,[(N(),j("svg",i_,[x("circle",{class:"ring",cx:"25",cy:"25",r:"20",style:z(["stroke: rgba(0,0,0,0.1)"])},null,4),x("circle",{class:"ball",cx:"25",cy:"5",r:"3.5",style:z(["fill: "+t.color])},null,4)]))]))}}),vx="",o_=ct(r_,[["__scopeId","data-v-361d898a"]]),a_={class:"face front"},l_={class:"face back"},c_=at({customOptions:{},inheritAttrs:!0,__name:"CardFlip",props:{type:{default:""},dur:{default:500},perspective:{default:"600px"}},emits:["click"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=R(!1),o=()=>{r.value=!r.value,i("click",r.value)};return t({}),(a,l)=>(N(),j("div",{class:"card-flip-scene",style:z({perspective:n.perspective})},[x("div",{class:le(["card",[n.type,{flip:r.value}]]),style:z({transition:`transform ${n.dur}ms`}),onClick:o},[x("div",a_,[Nt(a.$slots,"front",{},()=>[Jt("front")],!0)]),x("div",l_,[Nt(a.$slots,"back",{},()=>[Jt("back")],!0)])],6)],4))}}),_x="",u_=ct(c_,[["__scopeId","data-v-e37e840a"]]),h_=at({customOptions:{RadioGroup:Ra,CheckboxGroup:$r,InputRange:Qs},inheritAttrs:!0,__name:"Cube",props:{width:{default:200},height:{default:200},dur:{default:1e3},perspective:{default:400}},setup(s,{expose:t,emit:e}){const n=s,i=R(Math.floor(n.width/2)),r=`
|
|
129
128
|
:root {
|
|
130
129
|
--spin-cube-z: -${i.value}px;
|
|
131
130
|
}
|
|
132
131
|
:host {
|
|
133
132
|
--spin-cube-z: -${i.value}px;
|
|
134
133
|
}
|
|
135
|
-
`,o=V();Dt(o,()=>{o.value&&H.setStyleSheet(r,o.value)});const a=V(n.perspective+"px"),l=k=>{a.value=k==2e3?"none":k+"px"},c=V("50%"),u=k=>{c.value=k+"%"},h=V("50%"),f=k=>{h.value=k+"%"},d=`translateZ(-${i.value}px)`,m=V(d),v=k=>{switch(k){case"front":m.value=d+" rotateY(0deg)";break;case"right":m.value=d+" rotateY(-90deg)";break;case"back":m.value=d+" rotateY(-180deg)";break;case"left":m.value=d+" rotateY(90deg)";break;case"top":m.value=d+" rotateX(-90deg)";break;case"bottom":m.value=d+" rotateX(90deg)";break;default:m.value=d;break}},_=V(!1),E=k=>{k.length?_.value=!0:_.value=!1},D=V("visible"),N=k=>{k.length?D.value="visible":D.value="hidden"};return t({}),(k,tt)=>(F(),X("div",{ref_key:"container",ref:o},[S("div",{class:"cube-scene",style:W({width:`${n.width}px`,height:`${n.height}px`,perspective:`${a.value}`,perspectiveOrigin:`${c.value} ${h.value}`})},[S("div",{class:ye(["cube",{spinning:_.value}]),style:W({transformStyle:"preserve-3d",transform:m.value,transition:`transform ${n.dur}ms`})},[S("div",{class:"face front",style:W({transform:`rotateY(0deg) translateZ(${i.value}px)`,backfaceVisibility:D.value})},[Gt(k.$slots,"front",{},()=>[Kt("front")],!0)],4),S("div",{class:"face back",style:W({transform:`rotateY(180deg) translateZ(${i.value}px)`,backfaceVisibility:D.value})},[Gt(k.$slots,"back",{},()=>[Kt("back")],!0)],4),S("div",{class:"face right",style:W({transform:`rotateY(90deg) translateZ(${i.value}px)`,backfaceVisibility:D.value})},[Gt(k.$slots,"right",{},()=>[Kt("right")],!0)],4),S("div",{class:"face left",style:W({transform:`rotateY(-90deg) translateZ(${i.value}px)`,backfaceVisibility:D.value})},[Gt(k.$slots,"left",{},()=>[Kt("left")],!0)],4),S("div",{class:"face top",style:W({transform:`rotateX(90deg) translateZ(${i.value}px)`,backfaceVisibility:D.value})},[Gt(k.$slots,"top",{},()=>[Kt("top")],!0)],4),S("div",{class:"face bottom",style:W({transform:`rotateX(-90deg) translateZ(${i.value}px)`,backfaceVisibility:D.value})},[Gt(k.$slots,"bottom",{},()=>[Kt("bottom")],!0)],4)],6)],4),S("div",null,[pt(Da,{options:["front","right","back","left","top","bottom"],onChange:v})]),S("div",null,[pt(Mr,{options:["Backface visible"],onChange:N})]),S("div",null,[pt(Mr,{options:["spin cube"],onChange:E})]),S("div",null,[Kt(" perspective: "),pt(Qs,{min:1,max:2e3,defaultValue:n.perspective,unit:"px",onChange:l},null,8,["defaultValue"])]),S("div",null,[Kt(" perspective-origin x: "),pt(Qs,{min:0,max:100,defaultValue:50,unit:"%",onChange:u})]),S("div",null,[Kt(" perspective-origin y: "),pt(Qs,{min:0,max:100,defaultValue:50,unit:"%",onChange:f})])],512))}}),jb="",o_=ut(r_,[["__scopeId","data-v-f15fa1e3"]]),a_=s=>(On("data-v-1cc7cc3a"),s=s(),Pn(),s),l_={class:"ring-indicator"},c_={class:"ring-text"},u_=a_(()=>S("span",null,"%",-1)),h_=1e3/20,Ns=15,Ua=22+1,d_=20,f_=2,yh=17,p_=lt({customOptions:{Canvas:Js},inheritAttrs:!0,__name:"RingIndicator",props:{percent:{default:0},lineWidth:{default:12},bgColor:{default:"#B3C6E7"},startColor:{default:"#5A82F0"},endColor:{default:"#66B3FF"}},setup(s,{expose:t}){const e=s;let n=An(),i=V(0);const r=()=>{if(An()-n>=h_){n=An();const h=Math.ceil(Xe(e.percent,0,100));i.value<h?i.value++:i.value>h&&i.value--}return qe(i.value/100,2)},o=V(0),a=V(0),l=(180+Ns*2)/(Ua-1),c=(h,f)=>{o.value=h,a.value=f},u=V();return Dt(u,()=>{u.value&&u.value.getCanvas().then(h=>{jt.run(()=>{h.ctx.clearRect();const f=new Oa({width:o.value,height:a.value,startDegree:0-Ns,endDegree:180+Ns,extendDegree:Ns,lineWidth:e.lineWidth,color:e.bgColor}),d=f.radius-f.radius*Math.cos(Math.PI*r()),m=f.radius*Math.sin(Math.PI*r()),v=h.ctx.createLinearGradient(f.x-f.radius,f.y,f.x-f.radius+d,f.y-m,{0:e.startColor,1:e.endColor}),_=new Oa({width:o.value,height:a.value,startDegree:0-Ns,endDegree:(180+Ns*2)*r()-Ns,extendDegree:Ns,lineWidth:e.lineWidth,colorGradient:v}),E=[];for(let D=0;D<Ua;D++){const N=f.y-f.radius+d_,k=new ke({cX:f.x,cY:f.y,fromX:f.x,fromY:N,x:f.x,y:N+yh,degree:-Ns-90+l*D}),tt=D/Ua<r();k.setAttr({"stroke-linecap":"round","stroke-width":String(f_),stroke:tt?h.ctx.createLinearGradient(f.x,N,f.x,N+yh,{0:e.startColor,1:e.endColor}):e.bgColor}),E.push(k)}return h.draw([f,_,...E]),!0})})}),t({}),(h,f)=>(F(),X("div",l_,[pt(Js,{ref_key:"canvasRef",ref:u,onResize:c},null,512),S("div",c_,[S("span",null,kt(Ft(i)),1),u_])]))}}),Bb="",m_=ut(p_,[["__scopeId","data-v-1cc7cc3a"]]);return ct.Accordion=Ty,ct.Button=ve,ct.CardFlip=i_,ct.CheckboxGroup=Mr,ct.ColorPicker=Uv,ct.Cube=o_,ct.Dialog=Ei,ct.DialogLoading=dy,ct.DialogToast=nh,ct.EaseGraphDisplay=Xa,ct.EaseGroupGraphDisplay=a1,ct.FPSStats=t1,ct.HandWritePanel=ov,ct.Icon=bn,ct.Image=Aa,ct.ImageView=Fy,ct.Input=P0,ct.InputRange=Qs,ct.InputRangeSvg=V0,ct.InterpolationGraphDisplay=Ha,ct.InterpolationGroupGraphDisplay=d1,ct.LayoutCenter=Wy,ct.LayoutMobile=Hy,ct.Loading1=D1,ct.Loading10=t_,ct.Loading11=Pa,ct.Loading2=M1,ct.Loading3=R1,ct.Loading4=L1,ct.Loading5=z1,ct.Loading6=Y1,ct.Loading7=U1,ct.Loading8=Na,ct.Loading9=Z1,ct.MapTianditu=Jv,ct.MouseOver=Ey,ct.Overlay=Vn,ct.PageVerticalScrollProgressBar=cv,ct.PlateDisplay=Ev,ct.PlateKeyboard=ih,ct.PlateMobile=wv,ct.Pop=Qe,ct.Popover=Ra,ct.ProgressBar=ki,ct.RadioGroup=Da,ct.ResizeObserver=Kv,ct.RingIndicator=m_,ct.SVGAndCanvas=T1,ct.SVGCheck=$a,ct.SVGCleanUp=Rr,ct.SVGDelete=Ia,ct.SVGDown=Ci,ct.Select=Qg,ct.SelectAbsolute=o0,ct.SlideLeftItem=j0,ct.Switch=l0,ct.Tab=Jy,ct.Tabs=iv,ct.Video=My,Object.defineProperty(ct,Symbol.toStringTag,{value:"Module"}),ct}({});
|
|
134
|
+
`,o=R();It(o,()=>{o.value&&U.setStyleSheet(r,o.value)});const a=R(n.perspective+"px"),l=E=>{a.value=E==2e3?"none":E+"px"},c=R("50%"),u=E=>{c.value=E+"%"},h=R("50%"),f=E=>{h.value=E+"%"},d=`translateZ(-${i.value}px)`,m=R(d),y=E=>{switch(E){case"front":m.value=d+" rotateY(0deg)";break;case"right":m.value=d+" rotateY(-90deg)";break;case"back":m.value=d+" rotateY(-180deg)";break;case"left":m.value=d+" rotateY(90deg)";break;case"top":m.value=d+" rotateX(-90deg)";break;case"bottom":m.value=d+" rotateX(90deg)";break;default:m.value=d;break}},_=R(!1),k=E=>{E.length?_.value=!0:_.value=!1},I=R("visible"),M=E=>{E.length?I.value="visible":I.value="hidden"};return t({}),(E,tt)=>(N(),j("div",{ref_key:"container",ref:o},[x("div",{class:"cube-scene",style:z({width:`${n.width}px`,height:`${n.height}px`,perspective:`${a.value}`,perspectiveOrigin:`${c.value} ${h.value}`})},[x("div",{class:le(["cube",{spinning:_.value}]),style:z({transformStyle:"preserve-3d",transform:m.value,transition:`transform ${n.dur}ms`})},[x("div",{class:"face front",style:z({transform:`rotateY(0deg) translateZ(${i.value}px)`,backfaceVisibility:I.value})},[Nt(E.$slots,"front",{},()=>[Jt("front")],!0)],4),x("div",{class:"face back",style:z({transform:`rotateY(180deg) translateZ(${i.value}px)`,backfaceVisibility:I.value})},[Nt(E.$slots,"back",{},()=>[Jt("back")],!0)],4),x("div",{class:"face right",style:z({transform:`rotateY(90deg) translateZ(${i.value}px)`,backfaceVisibility:I.value})},[Nt(E.$slots,"right",{},()=>[Jt("right")],!0)],4),x("div",{class:"face left",style:z({transform:`rotateY(-90deg) translateZ(${i.value}px)`,backfaceVisibility:I.value})},[Nt(E.$slots,"left",{},()=>[Jt("left")],!0)],4),x("div",{class:"face top",style:z({transform:`rotateX(90deg) translateZ(${i.value}px)`,backfaceVisibility:I.value})},[Nt(E.$slots,"top",{},()=>[Jt("top")],!0)],4),x("div",{class:"face bottom",style:z({transform:`rotateX(-90deg) translateZ(${i.value}px)`,backfaceVisibility:I.value})},[Nt(E.$slots,"bottom",{},()=>[Jt("bottom")],!0)],4)],6)],4),x("div",null,[pt(Ra,{options:["front","right","back","left","top","bottom"],onChange:y})]),x("div",null,[pt($r,{options:["Backface visible"],onChange:M})]),x("div",null,[pt($r,{options:["spin cube"],onChange:k})]),x("div",null,[Jt(" perspective: "),pt(Qs,{min:1,max:2e3,defaultValue:n.perspective,unit:"px",onChange:l},null,8,["defaultValue"])]),x("div",null,[Jt(" perspective-origin x: "),pt(Qs,{min:0,max:100,defaultValue:50,unit:"%",onChange:u})]),x("div",null,[Jt(" perspective-origin y: "),pt(Qs,{min:0,max:100,defaultValue:50,unit:"%",onChange:f})])],512))}}),bx="",d_=ct(h_,[["__scopeId","data-v-f15fa1e3"]]),f_=s=>(fn("data-v-86fd4590"),s=s(),pn(),s),p_={class:"ring-indicator"},m_={class:"ring-text"},g_=f_(()=>x("span",null,"%",-1)),y_=1e3/20,Ns=15,Qa=22+1,v_=20,__=2,xh=17,b_=at({customOptions:{Canvas:Js},inheritAttrs:!0,__name:"RingIndicator",props:{percent:{default:0},lineWidth:{default:12},bgColor:{default:"#B3C6E7"},startColor:{default:"#5A82F0"},endColor:{default:"#66B3FF"}},setup(s,{expose:t}){const e=s;let n=Rn(),i=R(0);const r=()=>{if(Rn()-n>=y_){n=Rn();const h=Xe(Math.floor(e.percent),0,100);i.value<h?i.value=Math.min(i.value+1,h):i.value>h&&(i.value=Math.max(i.value-1,h))}return Ze(i.value/100,2)},o=R(0),a=R(0),l=(180+Ns*2)/(Qa-1),c=(h,f)=>{o.value=h,a.value=f},u=R();return It(u,()=>{u.value&&u.value.getCanvas().then(h=>{jt.run(()=>{h.ctx.clearRect();const f=new Na({width:o.value,height:a.value,startDegree:0-Ns,endDegree:180+Ns,extendDegree:Ns,lineWidth:e.lineWidth,color:e.bgColor}),d=f.radius-f.radius*Math.cos(Math.PI*r()),m=f.radius*Math.sin(Math.PI*r()),y=h.ctx.createLinearGradient(f.x-f.radius,f.y,f.x-f.radius+d,f.y-m,{0:e.startColor,1:e.endColor}),_=new Na({width:o.value,height:a.value,startDegree:0-Ns,endDegree:(180+Ns*2)*r()-Ns,extendDegree:Ns,lineWidth:e.lineWidth,colorGradient:y}),k=[];for(let I=0;I<Qa;I++){const M=f.y-f.radius+v_,E=new Pe({cX:f.x,cY:f.y,fromX:f.x,fromY:M,x:f.x,y:M+xh,degree:-Ns-90+l*I}),tt=I/(Qa-1)<=r();E.setAttr({"stroke-linecap":"round","stroke-width":String(__),stroke:tt?h.ctx.createLinearGradient(f.x,M,f.x,M+xh,{0:e.startColor,1:e.endColor}):e.bgColor}),k.push(E)}return h.draw([f,_,...k]),!0})})}),t({}),(h,f)=>(N(),j("div",p_,[pt(Js,{ref_key:"canvasRef",ref:u,onResize:c},null,512),x("div",m_,[x("span",null,Et(Lt(i)),1),g_])]))}}),xx="",x_=ct(b_,[["__scopeId","data-v-86fd4590"]]),wh=s=>(fn("data-v-8e39fba1"),s=s(),pn(),s),w_=[wh(()=>x("div",{class:"left"},null,-1)),wh(()=>x("div",{class:"right"},null,-1))],S_={key:0},C_={key:1},Sn=10,zn=4,k_=at({customOptions:{Container:ce},inheritAttrs:!0,__name:"RingText",props:{text:{default:""},secondText:{default:""},startColor:{default:"#5A82F0"},endColor:{default:"#66B3FF"},dur:{default:2e3}},setup(s,{expose:t}){const e=s,n=R(0),i=(r,o)=>{n.value=Math.floor(Math.min(r,o))};return t({}),(r,o)=>(N(),Zt(ce,{onResize:i,type:"full"},{default:Bt(()=>[x("div",{class:"ring",style:z({width:n.value+"px",height:n.value+"px",padding:Sn+"px",background:`linear-gradient(180deg, ${e.startColor} 0%, ${e.endColor} 100%)`})},[x("div",{class:"ring-rotate",style:z({animation:`rotate-reverse ${e.dur}ms infinite linear`,mask:`radial-gradient(transparent ${n.value/2-Sn-zn}px, #000 ${n.value/2-Sn-zn}px)`})},w_,4),x("div",{class:"ring-content",style:z({top:Sn+zn+"px",left:Sn+zn+"px",width:n.value-(Sn+zn)*2+"px",height:n.value-(Sn+zn)*2+"px"})},[e.text?(N(),j("div",S_,Et(e.text),1)):Wt("",!0),e.secondText?(N(),j("div",C_,Et(e.secondText),1)):Wt("",!0)],4)],4)]),_:1}))}}),Cx="",kx="",E_=ct(k_,[["__scopeId","data-v-8e39fba1"]]),T_=at({customOptions:{Container:ce},inheritAttrs:!0,__name:"ClockFlipper",props:{startTime:{default:"00:00:00"},type:{default:"increase"},direction:{default:"down"},dur:{default:800},bgColor:{default:"#5a82f0"},textColor:{default:"#ffffff"},borderRadius:{default:8},gap:{default:1},perspective:{default:400}},setup(s,{expose:t}){const e=s,n=R(40),i=R(20),r=R(20),o=(u,h)=>{n.value=Math.floor(u/(6+1)),i.value=Math.floor(h),r.value=Math.max(12,i.value)},a=ne([0,0,0,0,0,0]),l=ne([0,0,0,0,0,0]);Gm(e.startTime).forEach((u,h)=>{a[h]=u,l[h]=u});const c=()=>{setInterval(()=>{e.type=="increase"?zm(l):Bm(l),setTimeout(()=>{l.forEach((u,h)=>{a[h]=u})},e.dur)},1e3)};return t({}),(u,h)=>(N(),Zt(ce,{type:"full",overflow:"visible","style-sheets":{"--yz-clock-flipper-bg-color":e.bgColor,"--yz-clock-flipper-text-color":e.textColor,"--yz-clock-flipper-border-radius":e.borderRadius+"px","--yz-clock-flipper-gap":e.gap+"px","--yz-clock-flipper-gap-double":e.gap*2+"px","--yz-clock-flipper-gap-four":e.gap*4+"px","--yz-clock-flipper-animation-duration":e.dur+"ms","--yz-clock-flipper-perspective":e.perspective+"px"},onResize:o,onReady:c},{default:Bt(()=>[x("div",{class:"clock-flipper",style:z({fontSize:r.value+"px",lineHeight:i.value+"px"})},[(N(!0),j(Gt,null,be(a,(f,d)=>(N(),j(Gt,{key:d},[x("div",{class:le(["flip",[e.direction,l[d]!=f?"go":""]]),style:z({width:n.value+"px"})},[x("div",{class:le(["front digital",[`number${f}`]])},null,2),x("div",{class:le(["back digital",[`number${l[d]}`]])},null,2)],6),d==1||d==3?(N(),j("div",{key:0,class:"gap",style:z({fontSize:Math.floor(r.value*.6)+"px",lineHeight:0})}," : ",4)):Wt("",!0)],64))),128))],4)]),_:1},8,["style-sheets"]))}}),Ex="",Tx="",O_=ct(T_,[["__scopeId","data-v-81d65483"]]),P_=at({customOptions:{Container:ce},inheritAttrs:!0,__name:"TextBackgroundClip",props:{text:{default:"文字背景为图片"},bgImageUrl:{default:"https://s3-us-west-2.amazonaws.com/s.cdpn.io/181794/kl-deer.png"}},setup(s,{expose:t}){const e=s;return t({}),(n,i)=>(N(),Zt(ce,null,{default:Bt(()=>[x("div",{style:z({backgroundImage:`url(${e.bgImageUrl})`,"background-clip":"text",color:"transparent"})},Et(e.text),5)]),_:1}))}}),I_={class:"slide"},D_=at({customOptions:{Container:ce},inheritAttrs:!0,__name:"Slide",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectInit:{default:"leave"},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},dur:{default:200},direction:{default:"up"}},setup(s,{expose:t}){const e=s,n=ne({}),i=()=>{switch(e.direction){case"left":n.transformOrigin="center right",n.transform="scaleX(1)";break;case"right":n.transformOrigin="center left",n.transform="scaleX(1)";break;case"down":n.transformOrigin="center top",n.transform="scaleY(1)";break;case"up":n.transformOrigin="center bottom",n.transform="scaleY(1)";break}},r=()=>{switch(e.direction){case"left":n.transformOrigin="center left",n.transform="scaleX(0)";break;case"right":n.transformOrigin="center right",n.transform="scaleX(0)";break;case"down":n.transformOrigin="center bottom",n.transform="scaleY(0)";break;case"up":n.transformOrigin="center top",n.transform="scaleY(0)";break}};return t({}),(o,a)=>(N(),Zt(ce,{type:e.containerType,supportCopyText:e.supportCopyText,effectInit:e.effectInit,effectTriggerTiming:e.effectTriggerTiming,enter:i,leave:r},{default:Bt(()=>[x("div",{class:"slide-before",style:z({backgroundColor:e.color,transition:`transform ${e.dur}ms ease-in-out`,...n})},null,4),x("div",I_,[Nt(o.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectInit","effectTriggerTiming"]))}}),Ox="",M_=ct(D_,[["__scopeId","data-v-cc1e4e01"]]),N_={class:"slide-corner"},A_=at({customOptions:{Container:ce},inheritAttrs:!0,__name:"SlideCorner",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectInit:{default:"leave"},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},timeGap:{default:100},direction:{default:"fromBottomLeft"}},setup(s,{expose:t}){const e=s,n=ne({});let i=1,r=i*2;const o=(c,u)=>{i=Math.ceil(Math.max(c,u)/Math.min(c,u)),r=i*2,n.width=n.height=Math.ceil(Math.min(c,u))+"px"},a=()=>{switch(e.direction){case"fromBottomLeft":n.top="100%",n.right="100%",n.transform=`translate(50%, -50%) scale3d(${r}, ${r}, ${r})`;break;case"fromBottomRight":n.top="100%",n.left="100%",n.transform=`translate(-50%, -50%) scale3d(${r}, ${r}, ${r})`;break;case"fromTopLeft":n.bottom="100%",n.right="100%",n.transform=`translate(50%, 50%) scale3d(${r}, ${r}, ${r})`;break;case"fromTopRight":n.bottom="100%",n.left="100%",n.transform=`translate(-50%, 50%) scale3d(${r}, ${r}, ${r})`;break;case"fromCenter":n.top="50%",n.left="50%",n.transform=`translate(-50%, -50%) scale3d(${r}, ${r}, ${r})`;break}},l=()=>{switch(e.direction){case"fromBottomLeft":n.top="100%",n.right="100%",n.transform="translate(50%, -50%) scale3d(0, 0, 0)";break;case"fromBottomRight":n.top="100%",n.left="100%",n.transform="translate(-50%, -50%) scale3d(0, 0, 0)";break;case"fromTopLeft":n.bottom="100%",n.right="100%",n.transform="translate(50%, 50%) scale3d(0, 0, 0)";break;case"fromTopRight":n.bottom="100%",n.left="100%",n.transform="translate(-50%, 50%) scale3d(0, 0, 0)";break;case"fromCenter":n.top="50%",n.left="50%",n.transform="translate(-50%, -50%) scale3d(0, 0, 0)";break}};return t({}),(c,u)=>(N(),Zt(ce,{type:e.containerType,supportCopyText:e.supportCopyText,effectInit:e.effectInit,effectTriggerTiming:e.effectTriggerTiming,enter:a,leave:l,onResize:o},{default:Bt(()=>[x("div",{class:"slide-corner-before",style:z({backgroundColor:e.color,borderRadius:"50%",transition:`transform ${e.timeGap*Lt(i)}ms ease-in-out`,transformOrigin:"center",...n})},null,4),x("div",N_,[Nt(c.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectInit","effectTriggerTiming"]))}}),Px="",R_=ct(A_,[["__scopeId","data-v-dfe30452"]]),$_={class:"line-single"},L_=at({customOptions:{Container:ce},inheritAttrs:!0,__name:"LineSingle",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectInit:{default:"leave"},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},timeGap:{default:50},lineHeight:{default:2},location:{default:"underline"},direction:{default:"right"}},setup(s,{expose:t}){const e=s;let n=1;const i=(l,c)=>{n=Math.ceil(Math.max(l,c)/Math.min(l,c))},r=ne({});switch(e.location){case"underline":r.bottom="0";break;case"overline":r.top="0";break;case"through":r.top="50%";break}const o=()=>{switch(e.direction){case"right":r.transformOrigin="bottom left",r.transform="scaleX(1)";break;case"left":r.transformOrigin="bottom right",r.transform="scaleX(1)";break;case"fromCenter":r.transformOrigin="center",r.transform="scaleX(1)";break}},a=()=>{switch(e.direction){case"right":r.transformOrigin="bottom right",r.transform="scaleX(0)";break;case"left":r.transformOrigin="bottom left",r.transform="scaleX(0)";break;case"fromCenter":r.transformOrigin="center",r.transform="scaleX(0)";break}};return t({}),(l,c)=>(N(),Zt(ce,{type:e.containerType,supportCopyText:e.supportCopyText,effectInit:e.effectInit,effectTriggerTiming:e.effectTriggerTiming,enter:o,leave:a,onResize:i},{default:Bt(()=>[x("div",{class:"line-single-before",style:z({left:0,width:"100%",height:e.lineHeight+"px",backgroundColor:e.color,transition:`transform ${e.timeGap*Lt(n)}ms ease-in-out`,...r})},null,4),x("div",$_,[Nt(l.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectInit","effectTriggerTiming"]))}}),Ix="",V_=ct(L_,[["__scopeId","data-v-cf39459b"]]),F_={class:"line-double"},G_=at({customOptions:{Container:ce},inheritAttrs:!0,__name:"LineDouble",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectInit:{default:"leave"},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},timeGap:{default:50},lineHeight:{default:2},location:{default:"horizontal"},direction:{default:"toEnd"}},setup(s,{expose:t}){const e=s;let n=1;const i=(u,h)=>{n=Math.ceil(Math.max(u,h)/Math.min(u,h))},r=ne({}),o=ne({}),a=ne({});switch(e.location){case"horizontal":r.width="100%",r.height=e.lineHeight+"px",o.top="0",a.bottom="0";break;case"vertical":r.width=e.lineHeight+"px",r.height="100%",o.left="0",a.right="0";break}const l=()=>{switch(e.direction){case"toEnd":switch(e.location){case"horizontal":o.left="0",a.left="0",r.transformOrigin="center left",r.transform="scaleX(1)";break;case"vertical":o.top="0",a.top="0",r.transformOrigin="center top",r.transform="scaleY(1)";break}break;case"toStart":switch(e.location){case"horizontal":o.right="0",a.right="0",r.transformOrigin="center right",r.transform="scaleX(1)";break;case"vertical":o.bottom="0",a.bottom="0",r.transformOrigin="center bottom",r.transform="scaleY(1)";break}break;case"towards":switch(e.location){case"horizontal":o.left="0",o.transformOrigin="center left",a.right="0",a.transformOrigin="center right",r.transform="scaleX(1)";break;case"vertical":o.top="0",o.transformOrigin="center top",a.bottom="0",a.transformOrigin="center bottom",r.transform="scaleY(1)";break}break;case"fromCenter":switch(e.location){case"horizontal":o.left="50%",a.left="50%",r.transformOrigin="center",r.transform="translateX(-50%) scaleX(1)";break;case"vertical":o.top="50%",a.top="50%",r.transformOrigin="center",r.transform="translateY(-50%) scaleY(1)";break}break}},c=()=>{switch(e.direction){case"toEnd":switch(e.location){case"horizontal":o.right="0",a.right="0",r.transformOrigin="center right",r.transform="scaleX(0)";break;case"vertical":o.bottom="0",a.bottom="0",r.transformOrigin="center bottom",r.transform="scaleY(0)";break}break;case"toStart":switch(e.location){case"horizontal":o.left="0",a.left="0",r.transformOrigin="center left",r.transform="scaleX(0)";break;case"vertical":o.top="0",a.top="0",r.transformOrigin="center top",r.transform="scaleY(0)";break}break;case"towards":switch(e.location){case"horizontal":o.right="0",o.transformOrigin="center right",a.left="0",a.transformOrigin="center left",r.transform="scaleX(0)";break;case"vertical":o.bottom="0",o.transformOrigin="center bottom",a.top="0",a.transformOrigin="center top",r.transform="scaleY(0)";break}break;case"fromCenter":switch(e.location){case"horizontal":o.left="50%",a.left="50%",r.transformOrigin="center",r.transform="translateX(-50%) scaleX(0)";break;case"vertical":o.top="50%",a.top="50%",r.transformOrigin="center",r.transform="translateY(-50%) scaleY(0)";break}break}};return t({}),(u,h)=>(N(),Zt(ce,{type:e.containerType,supportCopyText:e.supportCopyText,effectInit:e.effectInit,effectTriggerTiming:e.effectTriggerTiming,enter:l,leave:c,onResize:i},{default:Bt(()=>[x("div",{class:"line-double-before",style:z({backgroundColor:e.color,transition:`transform ${e.timeGap*Lt(n)}ms ease-in-out`,...r,...o})},null,4),x("div",F_,[Nt(u.$slots,"default",{},void 0,!0)]),x("div",{class:"line-double-after",style:z({backgroundColor:e.color,transition:`transform ${e.timeGap*Lt(n)}ms ease-in-out`,...r,...a})},null,4)]),_:3},8,["type","supportCopyText","effectInit","effectTriggerTiming"]))}}),Dx="",z_=ct(G_,[["__scopeId","data-v-ec587ef3"]]),B_=at({customOptions:{Container:ce},inheritAttrs:!0,__name:"Float",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectInit:{default:"leave"},effectTriggerTiming:{default:"mouseMove"},dur:{default:200},distance:{default:4},boxShadow:{default:"none"},direction:{default:"up"}},setup(s,{expose:t}){const e=s,n=ne({willChange:"box-shadow, transform"}),i=()=>{switch(n.boxShadow=e.boxShadow,e.direction){case"left":n.transform=`translateX(-${e.distance}px)`;break;case"right":n.transform=`translateX(${e.distance}px)`;break;case"down":n.transform=`translateY(${e.distance}px)`;break;case"up":n.transform=`translateY(-${e.distance}px)`;break}},r=()=>{switch(n.boxShadow="none",e.direction){case"left":n.transform="translateX(0)";break;case"right":n.transform="translateX(0)";break;case"down":n.transform="translateY(0)";break;case"up":n.transform="translateY(0)";break}};return t({}),(o,a)=>(N(),Zt(ce,{type:e.containerType,supportCopyText:e.supportCopyText,effectInit:e.effectInit,effectTriggerTiming:e.effectTriggerTiming,enter:i,leave:r},{default:Bt(()=>[x("div",{class:"float",style:z({transition:`transform ${e.dur}ms ease-in-out, box-shadow ${e.dur}ms ease-in-out`,...n})},[Nt(o.$slots,"default",{},void 0,!0)],4)]),_:3},8,["type","supportCopyText","effectInit","effectTriggerTiming"]))}}),Mx="",j_=ct(B_,[["__scopeId","data-v-65e3fcd5"]]),Y_=at({customOptions:{Container:ce},inheritAttrs:!0,__name:"CSSAnimation",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectInit:{default:"leave"},effectTriggerTiming:{default:"mouseMove"},duration:{default:500},delay:{default:0},repeat:{default:1},fillMode:{default:"both"},timingFunction:{default:"ease"},direction:{default:"normal"},playState:{default:"running"},name:{default:"jelly"}},setup(s,{expose:t}){const e=s,n=ne({}),i=R("visible");switch(e.name){case"jelly":case"bounce":case"flash":case"pulse":case"rubberBand":case"shakeX":case"shakeY":case"headShake":case"swing":case"tada":case"wobble":case"jello":case"heartBeat":case"bounceIn":case"fadeIn":case"fadeOut":case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":case"hinge":case"jackInTheBox":i.value="visible";break;default:i.value="hidden";break}switch(e.name){case"zoomOutUp":n.transformOrigin="center top";break;case"bounce":case"zoomOutDown":n.transformOrigin="center bottom";break;case"hinge":n.transformOrigin="top left";break;case"swing":n.transformOrigin="top center";break;case"zoomOutLeft":n.transformOrigin="left center";break;case"rotateInUpLeft":case"rotateInDownLeft":case"rotateOutUpLeft":case"rotateOutDownLeft":n.transformOrigin="left bottom";break;case"zoomOutRight":n.transformOrigin="right center";break;case"rotateInUpRight":case"rotateInDownRight":case"rotateOutUpRight":case"rotateOutDownRight":n.transformOrigin="right bottom";break;default:n.transformOrigin="center";break}switch(e.name){case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":n.backfaceVisibility="visible";break}let r=e.timingFunction;switch(e.name){case"pulse":case"headShake":case"heartBeat":r="ease-in-out";break;case"lightSpeedInLeft":case"lightSpeedInRight":r="ease-out";break;case"lightSpeedOutLeft":case"lightSpeedOutRight":r="ease-in";break}const o=()=>{n.animation=`${e.duration}ms ${r} ${e.delay}ms ${e.repeat} ${e.direction} ${e.fillMode} ${e.playState} ${e.name}`},a=()=>{n.animation="none"};return t({}),(l,c)=>(N(),Zt(ce,{overflow:i.value,type:e.containerType,supportCopyText:e.supportCopyText,effectInit:e.effectInit,effectTriggerTiming:e.effectTriggerTiming,enter:o,leave:a},{default:Bt(()=>[x("div",{class:"css-animation",style:z(n)},[Nt(l.$slots,"default",{},void 0,!0)],4)]),_:3},8,["overflow","type","supportCopyText","effectInit","effectTriggerTiming"]))}}),Nx="",Ax="",H_=ct(Y_,[["__scopeId","data-v-e1dca4b6"]]),X_={class:"circle"},U_=at({customOptions:{Container:ce},inheritAttrs:!0,__name:"Circle",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectInit:{default:"leave"},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},dur:{default:750}},setup(s,{expose:t}){const e=s,n=R(),i=ne({transition:`box-shadow ${e.dur}ms`,borderRadius:"100%"}),r=(l,c)=>{i.width=i.height=Math.ceil(Math.max(l,c))+"px",n.value?.reEffect?.()},o=()=>{i.boxShadow=`
|
|
135
|
+
inset 0.5em 0 0 rgba(255, 0, 0, 0.5),
|
|
136
|
+
inset 0 0.5em 0 rgba(252, 150, 0, 0.5),
|
|
137
|
+
inset -0.5em 0 0 rgba(0, 255, 0, 0.5),
|
|
138
|
+
inset 0 -0.5em 0 rgba(0, 150, 255, 0.5)
|
|
139
|
+
`},a=()=>{const l=bi(e.color,.2);i.boxShadow=`
|
|
140
|
+
inset ${i.width} 0 0 ${l},
|
|
141
|
+
inset 0 ${i.width} 0 ${l},
|
|
142
|
+
inset -${i.width} 0 0 ${l},
|
|
143
|
+
inset 0 -${i.width} 0 ${l}
|
|
144
|
+
`};return t({}),(l,c)=>(N(),Zt(ce,{ref_key:"containerRef",ref:n,type:e.containerType,supportCopyText:e.supportCopyText,effectInit:e.effectInit,effectTriggerTiming:e.effectTriggerTiming,enter:o,leave:a,onResize:r},{default:Bt(()=>[x("div",{class:"circle-before",style:z(i)},null,4),x("div",X_,[Nt(l.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectInit","effectTriggerTiming"]))}}),Rx="",W_=ct(U_,[["__scopeId","data-v-23d92b3e"]]);return lt.Accordion=Ny,lt.Button=we,lt.CSSAnimation=H_,lt.CardFlip=u_,lt.CheckboxGroup=$r,lt.Circle=W_,lt.ClockFlipper=O_,lt.ColorPicker=Jv,lt.Cube=d_,lt.Dialog=Oi,lt.DialogLoading=by,lt.DialogToast=ah,lt.EaseGraphDisplay=Za,lt.EaseGroupGraphDisplay=f1,lt.FPSStats=o1,lt.Float=j_,lt.HandWritePanel=dv,lt.Icon=wn,lt.Image=Fa,lt.ImageView=Hy,lt.Input=L0,lt.InputRange=Qs,lt.InputRangeSvg=H0,lt.InterpolationGraphDisplay=Ka,lt.InterpolationGroupGraphDisplay=v1,lt.LayoutCenter=tv,lt.LayoutMobile=Qy,lt.LineDouble=z_,lt.LineSingle=V_,lt.Loading1=$1,lt.Loading10=o_,lt.Loading11=Aa,lt.Loading2=F1,lt.Loading3=z1,lt.Loading4=Y1,lt.Loading5=U1,lt.Loading6=Z1,lt.Loading7=J1,lt.Loading8=La,lt.Loading9=s_,lt.MapTianditu=r1,lt.Overlay=Vn,lt.PageVerticalScrollProgressBar=mv,lt.PlateDisplay=Dv,lt.PlateKeyboard=lh,lt.PlateMobile=Ov,lt.Pop=Je,lt.Popover=Ga,lt.ProgressBar=Pi,lt.RadioGroup=Ra,lt.ResizeObserver=n1,lt.RingIndicator=x_,lt.RingText=E_,lt.SVGAndCanvas=N1,lt.SVGCheck=za,lt.SVGCleanUp=Vr,lt.SVGDelete=$a,lt.SVGDown=Ti,lt.Select=o0,lt.SelectAbsolute=p0,lt.Slide=M_,lt.SlideCorner=R_,lt.SlideLeftItem=Z0,lt.Switch=g0,lt.Tab=rv,lt.Tabs=uv,lt.TextBackgroundClip=P_,lt.Video=Fy,Object.defineProperty(lt,Symbol.toStringTag,{value:"Module"}),lt}({});
|
|
136
145
|
//# sourceMappingURL=zyzgroup_core_vue.iife.js.map
|