@zyzgroup/core-vue 0.0.14 → 0.0.17
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 +146 -58
- package/ce/yz_custom_element.iife.js.map +1 -1
- package/ce/yz_custom_element.js +15437 -16581
- package/ce/yz_custom_element.js.map +1 -1
- package/ce/yz_custom_element.umd.cjs +146 -58
- package/ce/yz_custom_element.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/zyzgroup_core_vue.iife.js +79 -26
- package/dist/zyzgroup_core_vue.iife.js.map +1 -1
- package/dist/zyzgroup_core_vue.js +16605 -14960
- package/dist/zyzgroup_core_vue.js.map +1 -1
- package/dist/zyzgroup_core_vue.umd.cjs +79 -26
- package/dist/zyzgroup_core_vue.umd.cjs.map +1 -1
- package/package.json +6 -4
- package/types/App.vue.d.ts +0 -1
- package/types/components/Accordion.ce.vue.d.ts +4 -2
- package/types/components/Accordion.vue.d.ts +4 -2
- package/types/components/Canvas.ce.vue.d.ts +40 -0
- package/types/components/Canvas.vue.d.ts +40 -0
- package/types/components/CanvasFromSVG.ce.vue.d.ts +31 -0
- package/types/components/CanvasFromSVG.vue.d.ts +31 -0
- package/types/components/CanvasShape.ce.vue.d.ts +2 -0
- package/types/components/CanvasShape.vue.d.ts +2 -0
- package/types/components/CanvasSport.ce.vue.d.ts +2 -0
- package/types/components/CanvasSport.vue.d.ts +2 -0
- package/types/components/Dialog.ce.vue.d.ts +24 -33
- package/types/components/Dialog.vue.d.ts +24 -33
- package/types/components/DialogLoading.ce.vue.d.ts +2 -4
- package/types/components/DialogLoading.vue.d.ts +2 -4
- package/types/components/DialogToast.ce.vue.d.ts +50 -0
- package/types/components/DialogToast.vue.d.ts +50 -0
- package/types/components/Icon.vue.d.ts +0 -1
- package/types/components/Image.ce.vue.d.ts +45 -0
- package/types/components/Image.vue.d.ts +45 -0
- package/types/components/ImageView.ce.vue.d.ts +34 -0
- package/types/components/ImageView.vue.d.ts +34 -0
- package/types/components/Input.ce.vue.d.ts +5 -5
- package/types/components/Input.vue.d.ts +5 -5
- package/types/components/MapTianditu.ce.vue.d.ts +2 -2
- package/types/components/MapTianditu.vue.d.ts +2 -2
- package/types/components/MouseOver.ce.vue.d.ts +52 -0
- package/types/components/MouseOver.vue.d.ts +52 -0
- package/types/components/PageVerticalScrollProgressBar.ce.vue.d.ts +58 -0
- package/types/components/PageVerticalScrollProgressBar.vue.d.ts +58 -0
- package/types/components/PlateKeyboard.ce.vue.d.ts +1 -1
- package/types/components/PlateKeyboard.vue.d.ts +1 -1
- package/types/components/PlateMobile.ce.vue.d.ts +1 -1
- package/types/components/PlateMobile.vue.d.ts +1 -1
- package/types/components/Pop.ce.vue.d.ts +6 -4
- package/types/components/Pop.vue.d.ts +7 -4
- package/types/components/ProgressBar.ce.vue.d.ts +13 -1
- package/types/components/ProgressBar.vue.d.ts +13 -1
- package/types/components/Routes.ce.vue.d.ts +60 -0
- package/types/components/Routes.vue.d.ts +60 -0
- package/types/components/SVG.ce.vue.d.ts +38 -0
- package/types/components/SVG.vue.d.ts +38 -0
- package/types/components/SVGAndCanvas.ce.vue.d.ts +2 -0
- package/types/components/SVGAndCanvas.vue.d.ts +2 -0
- package/types/components/Select.ce.vue.d.ts +6 -6
- package/types/components/Select.vue.d.ts +6 -6
- package/types/components/SelectAbsolute.ce.vue.d.ts +79 -0
- package/types/components/SelectAbsolute.vue.d.ts +79 -0
- package/types/components/SlideLeftItem.ce.vue.d.ts +1 -1
- package/types/components/SlideLeftItem.vue.d.ts +1 -1
- package/types/components/Switch.ce.vue.d.ts +1 -1
- package/types/components/Switch.vue.d.ts +1 -1
- package/types/components/Tabs.ce.vue.d.ts +15 -0
- package/types/components/Tabs.vue.d.ts +15 -0
- package/types/components/TabsWithTab.ce.vue.d.ts +33 -0
- package/types/components/TabsWithTab.vue.d.ts +33 -0
- package/types/components/TweenCSS.ce.vue.d.ts +30 -0
- package/types/components/TweenCSS.vue.d.ts +30 -0
- package/types/components/bg/BGHeart.ce.vue.d.ts +49 -0
- package/types/components/bg/BGHeart.vue.d.ts +49 -0
- package/types/components/layout/LayoutCenter.ce.vue.d.ts +36 -0
- package/types/components/layout/LayoutCenter.vue.d.ts +36 -0
- package/types/components/layout/LayoutMobile.ce.vue.d.ts +39 -0
- package/types/components/layout/LayoutMobile.vue.d.ts +39 -0
- package/types/components/loading/Loading1.ce.vue.d.ts +29 -0
- package/types/components/loading/Loading1.vue.d.ts +29 -0
- package/types/components/loading/Loading10.ce.vue.d.ts +29 -0
- package/types/components/loading/Loading10.vue.d.ts +29 -0
- package/types/components/loading/Loading2.ce.vue.d.ts +29 -0
- package/types/components/loading/Loading2.vue.d.ts +29 -0
- package/types/components/loading/Loading3.ce.vue.d.ts +34 -0
- package/types/components/loading/Loading3.vue.d.ts +34 -0
- package/types/components/loading/Loading4.ce.vue.d.ts +29 -0
- package/types/components/loading/Loading4.vue.d.ts +29 -0
- package/types/components/loading/Loading5.ce.vue.d.ts +29 -0
- package/types/components/loading/Loading5.vue.d.ts +29 -0
- package/types/components/loading/Loading6.ce.vue.d.ts +29 -0
- package/types/components/loading/Loading6.vue.d.ts +29 -0
- package/types/components/loading/Loading7.ce.vue.d.ts +29 -0
- package/types/components/loading/Loading7.vue.d.ts +29 -0
- package/types/components/loading/Loading8.ce.vue.d.ts +29 -0
- package/types/components/loading/Loading8.vue.d.ts +29 -0
- package/types/components/loading/Loading9.ce.vue.d.ts +29 -0
- package/types/components/loading/Loading9.vue.d.ts +29 -0
- package/types/components/registerGlobalComponents.d.ts +2 -0
- package/types/components/svg/SVGCheck.ce.vue.d.ts +1 -1
- package/types/components/svg/SVGCheck.vue.d.ts +1 -1
- package/types/components/svg/SVGCleanUp.ce.vue.d.ts +1 -1
- package/types/components/svg/SVGCleanUp.vue.d.ts +1 -1
- package/types/components/svg/SVGDelete.ce.vue.d.ts +1 -1
- package/types/components/svg/SVGDelete.vue.d.ts +1 -1
- package/types/components/svg/SVGDown.ce.vue.d.ts +1 -1
- package/types/components/svg/SVGDown.vue.d.ts +1 -1
- package/types/components/svg/SVGFail.ce.vue.d.ts +1 -1
- package/types/components/svg/SVGFail.vue.d.ts +1 -1
- package/types/components/svg/SVGHome.ce.vue.d.ts +1 -1
- package/types/components/svg/SVGHome.vue.d.ts +1 -1
- package/types/components/svg/SVGLoading.ce.vue.d.ts +1 -1
- package/types/components/svg/SVGLoading.vue.d.ts +1 -1
- package/types/components/svg/SVGLock.ce.vue.d.ts +1 -1
- package/types/components/svg/SVGLock.vue.d.ts +1 -1
- package/types/components/svg/SVGPrompt.ce.vue.d.ts +1 -1
- package/types/components/svg/SVGPrompt.vue.d.ts +1 -1
- package/types/components/svg/SVGQuestion.ce.vue.d.ts +1 -1
- package/types/components/svg/SVGQuestion.vue.d.ts +1 -1
- package/types/components/svg/SVGReturn.ce.vue.d.ts +1 -1
- package/types/components/svg/SVGReturn.vue.d.ts +1 -1
- package/types/components/svg/SVGSuccess.vue.d.ts +1 -1
- package/types/components/svg/SVGWaiting.ce.vue.d.ts +1 -1
- package/types/components/svg/SVGWaiting.vue.d.ts +1 -1
- package/types/globalTeleport.d.ts +90 -0
- package/types/lib.d.ts +42 -21
- package/types/vnode.d.ts +7 -0
|
@@ -1,31 +1,34 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(J,Fe){typeof exports=="object"&&typeof module<"u"?Fe(exports):typeof define=="function"&&define.amd?define(["exports"],Fe):(J=typeof globalThis<"u"?globalThis:J||self,Fe(J.ZYZGroupCoreVue={}))})(this,function(J){"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 Fe(n,t){const e=new Set(n.split(","));return t?s=>e.has(s.toLowerCase()):s=>e.has(s)}const It={}.NODE_ENV!=="production"?Object.freeze({}):{},Hn={}.NODE_ENV!=="production"?Object.freeze([]):[],Ht=()=>{},$u=()=>!1,rs=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&(n.charCodeAt(2)>122||n.charCodeAt(2)<97),Ws=n=>n.startsWith("onUpdate:"),Gt=Object.assign,or=(n,t)=>{const e=n.indexOf(t);e>-1&&n.splice(e,1)},Lu=Object.prototype.hasOwnProperty,yt=(n,t)=>Lu.call(n,t),ct=Array.isArray,En=n=>qs(n)==="[object Map]",ca=n=>qs(n)==="[object Set]",ut=n=>typeof n=="function",Bt=n=>typeof n=="string",Cn=n=>typeof n=="symbol",kt=n=>n!==null&&typeof n=="object",ar=n=>(kt(n)||ut(n))&&ut(n.then)&&ut(n.catch),ua=Object.prototype.toString,qs=n=>ua.call(n),lr=n=>qs(n).slice(8,-1),ha=n=>qs(n)==="[object Object]",cr=n=>Bt(n)&&n!=="NaN"&&n[0]!=="-"&&""+parseInt(n,10)===n,os=Fe(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Fu=Fe("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Ks=n=>{const t=Object.create(null);return e=>t[e]||(t[e]=n(e))},Vu=/-(\w)/g,Ve=Ks(n=>n.replace(Vu,(t,e)=>e?e.toUpperCase():"")),Gu=/\B([A-Z])/g,cn=Ks(n=>n.replace(Gu,"-$1").toLowerCase()),Sn=Ks(n=>n.charAt(0).toUpperCase()+n.slice(1)),Tn=Ks(n=>n?`on${Sn(n)}`:""),un=(n,t)=>!Object.is(n,t),as=(n,t)=>{for(let e=0;e<n.length;e++)n[e](t)},fa=(n,t,e)=>{Object.defineProperty(n,t,{configurable:!0,enumerable:!1,value:e})},zu=n=>{const t=parseFloat(n);return isNaN(t)?n:t};let da;const ur=()=>da||(da=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function q(n){if(ct(n)){const t={};for(let e=0;e<n.length;e++){const s=n[e],i=Bt(s)?Uu(s):q(s);if(i)for(const r in i)t[r]=i[r]}return t}else if(Bt(n)||kt(n))return n}const ju=/;(?![^(]*\))/g,Hu=/:([^]+)/,Bu=/\/\*[^]*?\*\//g;function Uu(n){const t={};return n.replace(Bu,"").split(ju).forEach(e=>{if(e){const s=e.split(Hu);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function ye(n){let t="";if(Bt(n))t=n;else if(ct(n))for(let e=0;e<n.length;e++){const s=ye(n[e]);s&&(t+=s+" ")}else if(kt(n))for(const e in n)n[e]&&(t+=e+" ");return t.trim()}const Yu=Fe("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function pa(n){return!!n||n===""}const St=n=>Bt(n)?n:n==null?"":ct(n)||kt(n)&&(n.toString===ua||!ut(n.toString))?JSON.stringify(n,ma,2):String(n),ma=(n,t)=>t&&t.__v_isRef?ma(n,t.value):En(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[s,i],r)=>(e[hr(s,r)+" =>"]=i,e),{})}:ca(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>hr(e))}:Cn(t)?hr(t):kt(t)&&!ct(t)&&!ha(t)?String(t):t,hr=(n,t="")=>{var e;return Cn(n)?`Symbol(${(e=n.description)!=null?e:t})`:n};/**
|
|
6
6
|
* @vue/reactivity v3.4.25
|
|
7
7
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
8
|
* @license MIT
|
|
9
|
-
**/function nr(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let ha;function Iu(e,t=ha){t&&t.active&&t.effects.push(e)}function Mu(){return ha}let Bn;class fa{constructor(t,n,r,i){this.fn=t,this.trigger=n,this.scheduler=r,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Iu(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Or();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Nu(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Lr()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Tn,n=Bn;try{return Tn=!0,Bn=this,this._runnings++,da(this),this.fn()}finally{pa(this),this._runnings--,Bn=n,Tn=t}}stop(){var t;this.active&&(da(this),pa(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Nu(e){return e.value}function da(e){e._trackId++,e._depsLength=0}function pa(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)ma(e.deps[t],e);e.deps.length=e._depsLength}}function ma(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let Tn=!0,bs=0;const ga=[];function Or(){ga.push(Tn),Tn=!1}function Lr(){const e=ga.pop();Tn=e===void 0?!0:e}function Es(){bs++}function Ts(){for(bs--;!bs&&Cs.length;)Cs.shift()()}function va(e,t,n){var r;if(t.get(e)!==e._trackId){t.set(e,e._trackId);const i=e.deps[e._depsLength];i!==t?(i&&ma(i,e),e.deps[e._depsLength++]=t):e._depsLength++,{}.NODE_ENV!=="production"&&((r=e.onTrack)==null||r.call(e,$e({effect:e},n)))}}const Cs=[];function ya(e,t,n){var r;Es();for(const i of e.keys()){let s;i._dirtyLevel<t&&(s??(s=e.get(i)===i._trackId))&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=t),i._shouldSchedule&&(s??(s=e.get(i)===i._trackId))&&({}.NODE_ENV!=="production"&&((r=i.onTrigger)==null||r.call(i,$e({effect:i},n))),i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&Cs.push(i.scheduler)))}Ts()}const _a=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Ss=new WeakMap,Gn=Symbol({}.NODE_ENV!=="production"?"iterate":""),ks=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function me(e,t,n){if(Tn&&Bn){let r=Ss.get(e);r||Ss.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=_a(()=>r.delete(n))),va(Bn,i,{}.NODE_ENV!=="production"?{target:e,type:t,key:n}:void 0)}}function Cn(e,t,n,r,i,s){const o=Ss.get(e);if(!o)return;let a=[];if(t==="clear")a=[...o.values()];else if(n==="length"&&Wt(e)){const u=Number(r);o.forEach((d,g)=>{(g==="length"||!zn(g)&&g>=u)&&a.push(d)})}else switch(n!==void 0&&a.push(o.get(n)),t){case"add":Wt(e)?_s(n)&&a.push(o.get("length")):(a.push(o.get(Gn)),$n(e)&&a.push(o.get(ks)));break;case"delete":Wt(e)||(a.push(o.get(Gn)),$n(e)&&a.push(o.get(ks)));break;case"set":$n(e)&&a.push(o.get(Gn));break}Es();for(const u of a)u&&ya(u,4,{}.NODE_ENV!=="production"?{target:e,type:t,key:n,newValue:r,oldValue:i,oldTarget:s}:void 0);Ts()}const Au=Ir("__proto__,__v_isRef,__isVue"),xa=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(zn)),wa=Ou();function Ou(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=Bt(this);for(let s=0,o=this.length;s<o;s++)me(r,"get",s+"");const i=r[t](...n);return i===-1||i===!1?r[t](...n.map(Bt)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Or(),Es();const r=Bt(this)[t].apply(this,n);return Ts(),Lr(),r}}),e}function Lu(e){zn(e)||(e=String(e));const t=Bt(this);return me(t,"has",e),t.hasOwnProperty(e)}class ba{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const i=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(i?s?Na:Ma:s?qu:Ia).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=Wt(t);if(!i){if(o&&ae(wa,n))return Reflect.get(wa,n,r);if(n==="hasOwnProperty")return Lu}const a=Reflect.get(t,n,r);return(zn(n)?xa.has(n):Au(n))||(i||me(t,"get",n),s)?a:ke(a)?o&&_s(n)?a:a.value:fe(a)?i?Aa(a):Je(a):a}}class Ru extends ba{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];if(!this._isShallow){const u=Vn(s);if(!jn(r)&&!Vn(r)&&(s=Bt(s),r=Bt(r)),!Wt(t)&&ke(s)&&!ke(r))return u?!1:(s.value=r,!0)}const o=Wt(t)&&_s(n)?Number(n)<t.length:ae(t,n),a=Reflect.set(t,n,r,i);return t===Bt(i)&&(o?En(r,s)&&Cn(t,"set",n,r,s):Cn(t,"add",n,r)),a}deleteProperty(t,n){const r=ae(t,n),i=t[n],s=Reflect.deleteProperty(t,n);return s&&r&&Cn(t,"delete",n,void 0,i),s}has(t,n){const r=Reflect.has(t,n);return(!zn(n)||!xa.has(n))&&me(t,"has",n),r}ownKeys(t){return me(t,"iterate",Wt(t)?"length":Gn),Reflect.ownKeys(t)}}class Ea extends ba{constructor(t=!1){super(!0,t)}set(t,n){return{}.NODE_ENV!=="production"&&nr(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return{}.NODE_ENV!=="production"&&nr(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const Fu=new Ru,Du=new Ea,$u=new Ea(!0),Ps=e=>e,pi=e=>Reflect.getPrototypeOf(e);function mi(e,t,n=!1,r=!1){e=e.__v_raw;const i=Bt(e),s=Bt(t);n||(En(t,s)&&me(i,"get",t),me(i,"get",s));const{has:o}=pi(i),a=r?Ps:n?As:Rr;if(o.call(i,t))return a(e.get(t));if(o.call(i,s))return a(e.get(s));e!==i&&e.get(t)}function gi(e,t=!1){const n=this.__v_raw,r=Bt(n),i=Bt(e);return t||(En(e,i)&&me(r,"has",e),me(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function vi(e,t=!1){return e=e.__v_raw,!t&&me(Bt(e),"iterate",Gn),Reflect.get(e,"size",e)}function Ta(e){e=Bt(e);const t=Bt(this);return pi(t).has.call(t,e)||(t.add(e),Cn(t,"add",e,e)),this}function Ca(e,t){t=Bt(t);const n=Bt(this),{has:r,get:i}=pi(n);let s=r.call(n,e);s?{}.NODE_ENV!=="production"&&Pa(n,r,e):(e=Bt(e),s=r.call(n,e));const o=i.call(n,e);return n.set(e,t),s?En(t,o)&&Cn(n,"set",e,t,o):Cn(n,"add",e,t),this}function Sa(e){const t=Bt(this),{has:n,get:r}=pi(t);let i=n.call(t,e);i?{}.NODE_ENV!=="production"&&Pa(t,n,e):(e=Bt(e),i=n.call(t,e));const s=r?r.call(t,e):void 0,o=t.delete(e);return i&&Cn(t,"delete",e,void 0,s),o}function ka(){const e=Bt(this),t=e.size!==0,n={}.NODE_ENV!=="production"?$n(e)?new Map(e):new Set(e):void 0,r=e.clear();return t&&Cn(e,"clear",void 0,void 0,n),r}function yi(e,t){return function(r,i){const s=this,o=s.__v_raw,a=Bt(o),u=t?Ps:e?As:Rr;return!e&&me(a,"iterate",Gn),o.forEach((d,g)=>r.call(i,u(d),u(g),s))}}function _i(e,t,n){return function(...r){const i=this.__v_raw,s=Bt(i),o=$n(s),a=e==="entries"||e===Symbol.iterator&&o,u=e==="keys"&&o,d=i[e](...r),g=n?Ps:t?As:Rr;return!t&&me(s,"iterate",u?ks:Gn),{next(){const{value:v,done:y}=d.next();return y?{value:v,done:y}:{value:a?[g(v[0]),g(v[1])]:g(v),done:y}},[Symbol.iterator](){return this}}}}function Sn(e){return function(...t){if({}.NODE_ENV!=="production"){const n=t[0]?`on key "${t[0]}" `:"";nr(`${Ar(e)} operation ${n}failed: target is readonly.`,Bt(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function zu(){const e={get(s){return mi(this,s)},get size(){return vi(this)},has:gi,add:Ta,set:Ca,delete:Sa,clear:ka,forEach:yi(!1,!1)},t={get(s){return mi(this,s,!1,!0)},get size(){return vi(this)},has:gi,add:Ta,set:Ca,delete:Sa,clear:ka,forEach:yi(!1,!0)},n={get(s){return mi(this,s,!0)},get size(){return vi(this,!0)},has(s){return gi.call(this,s,!0)},add:Sn("add"),set:Sn("set"),delete:Sn("delete"),clear:Sn("clear"),forEach:yi(!0,!1)},r={get(s){return mi(this,s,!0,!0)},get size(){return vi(this,!0)},has(s){return gi.call(this,s,!0)},add:Sn("add"),set:Sn("set"),delete:Sn("delete"),clear:Sn("clear"),forEach:yi(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=_i(s,!1,!1),n[s]=_i(s,!0,!1),t[s]=_i(s,!1,!0),r[s]=_i(s,!0,!0)}),[e,n,t,r]}const[Bu,Gu,Vu,ju]=zu();function Is(e,t){const n=t?e?ju:Vu:e?Gu:Bu;return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(ae(n,i)&&i in r?n:r,i,s)}const Hu={get:Is(!1,!1)},Uu={get:Is(!0,!1)},Wu={get:Is(!0,!0)};function Pa(e,t,n){const r=Bt(n);if(r!==n&&t.call(e,r)){const i=sa(e);nr(`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 Ia=new WeakMap,qu=new WeakMap,Ma=new WeakMap,Na=new WeakMap;function Yu(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Xu(e){return e.__v_skip||!Object.isExtensible(e)?0:Yu(sa(e))}function Je(e){return Vn(e)?e:Ms(e,!1,Fu,Hu,Ia)}function Aa(e){return Ms(e,!0,Du,Uu,Ma)}function xi(e){return Ms(e,!0,$u,Wu,Na)}function Ms(e,t,n,r,i){if(!fe(e))return{}.NODE_ENV!=="production"&&nr(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const o=Xu(e);if(o===0)return e;const a=new Proxy(e,o===2?r:n);return i.set(e,a),a}function rr(e){return Vn(e)?rr(e.__v_raw):!!(e&&e.__v_isReactive)}function Vn(e){return!!(e&&e.__v_isReadonly)}function jn(e){return!!(e&&e.__v_isShallow)}function Ns(e){return e?!!e.__v_raw:!1}function Bt(e){const t=e&&e.__v_raw;return t?Bt(t):e}function Ku(e){return Object.isExtensible(e)&&Tu(e,"__v_skip",!0),e}const Rr=e=>fe(e)?Je(e):e,As=e=>fe(e)?Aa(e):e,Zu="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 Qu{constructor(t,n,r,i){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new fa(()=>t(this._value),()=>wi(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const t=Bt(this);return(!t._cacheable||t.effect.dirty)&&En(t._value,t._value=t.effect.run())&&wi(t,4),Oa(t),t.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&nr(Zu,`
|
|
9
|
+
**/function hn(n,...t){console.warn(`[Vue warn] ${n}`,...t)}let Ie;class Xu{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ie,!t&&Ie&&(this.index=(Ie.scopes||(Ie.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const e=Ie;try{return Ie=this,t()}finally{Ie=e}}else({}).NODE_ENV!=="production"&&hn("cannot run an inactive effect scope.")}on(){Ie=this}off(){Ie=this.parent}stop(t){if(this._active){let e,s;for(e=0,s=this.effects.length;e<s;e++)this.effects[e].stop();for(e=0,s=this.cleanups.length;e<s;e++)this.cleanups[e]();if(this.scopes)for(e=0,s=this.scopes.length;e<s;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 Wu(n,t=Ie){t&&t.active&&t.effects.push(n)}function qu(){return Ie}let kn;class fr{constructor(t,e,s,i){this.fn=t,this.trigger=e,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Wu(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Xe();for(let t=0;t<this._depsLength;t++){const e=this.deps[t];if(e.computed&&(Ku(e.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),We()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=fn,e=kn;try{return fn=!0,kn=this,this._runnings++,ga(this),this.fn()}finally{va(this),this._runnings--,kn=e,fn=t}}stop(){var t;this.active&&(ga(this),va(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Ku(n){return n.value}function ga(n){n._trackId++,n._depsLength=0}function va(n){if(n.deps.length>n._depsLength){for(let t=n._depsLength;t<n.deps.length;t++)_a(n.deps[t],n);n.deps.length=n._depsLength}}function _a(n,t){const e=n.get(t);e!==void 0&&t._trackId!==e&&(n.delete(t),n.size===0&&n.cleanup())}let fn=!0,dr=0;const ya=[];function Xe(){ya.push(fn),fn=!1}function We(){const n=ya.pop();fn=n===void 0?!0:n}function pr(){dr++}function mr(){for(dr--;!dr&&gr.length;)gr.shift()()}function ba(n,t,e){var s;if(t.get(n)!==n._trackId){t.set(n,n._trackId);const i=n.deps[n._depsLength];i!==t?(i&&_a(i,n),n.deps[n._depsLength++]=t):n._depsLength++,{}.NODE_ENV!=="production"&&((s=n.onTrack)==null||s.call(n,Gt({effect:n},e)))}}const gr=[];function xa(n,t,e){var s;pr();for(const i of n.keys()){let r;i._dirtyLevel<t&&(r??(r=n.get(i)===i._trackId))&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=t),i._shouldSchedule&&(r??(r=n.get(i)===i._trackId))&&({}.NODE_ENV!=="production"&&((s=i.onTrigger)==null||s.call(i,Gt({effect:i},e))),i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&gr.push(i.scheduler)))}mr()}const wa=(n,t)=>{const e=new Map;return e.cleanup=n,e.computed=t,e},vr=new WeakMap,Pn=Symbol({}.NODE_ENV!=="production"?"iterate":""),_r=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function ne(n,t,e){if(fn&&kn){let s=vr.get(n);s||vr.set(n,s=new Map);let i=s.get(e);i||s.set(e,i=wa(()=>s.delete(e))),ba(kn,i,{}.NODE_ENV!=="production"?{target:n,type:t,key:e}:void 0)}}function Ge(n,t,e,s,i,r){const o=vr.get(n);if(!o)return;let a=[];if(t==="clear")a=[...o.values()];else if(e==="length"&&ct(n)){const l=Number(s);o.forEach((c,u)=>{(u==="length"||!Cn(u)&&u>=l)&&a.push(c)})}else switch(e!==void 0&&a.push(o.get(e)),t){case"add":ct(n)?cr(e)&&a.push(o.get("length")):(a.push(o.get(Pn)),En(n)&&a.push(o.get(_r)));break;case"delete":ct(n)||(a.push(o.get(Pn)),En(n)&&a.push(o.get(_r)));break;case"set":En(n)&&a.push(o.get(Pn));break}pr();for(const l of a)l&&xa(l,4,{}.NODE_ENV!=="production"?{target:n,type:t,key:e,newValue:s,oldValue:i,oldTarget:r}:void 0);mr()}const Zu=Fe("__proto__,__v_isRef,__isVue"),Ea=new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(Cn)),Ca=Qu();function Qu(){const n={};return["includes","indexOf","lastIndexOf"].forEach(t=>{n[t]=function(...e){const s=gt(this);for(let r=0,o=this.length;r<o;r++)ne(s,"get",r+"");const i=s[t](...e);return i===-1||i===!1?s[t](...e.map(gt)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{n[t]=function(...e){Xe(),pr();const s=gt(this)[t].apply(this,e);return mr(),We(),s}}),n}function Ju(n){Cn(n)||(n=String(n));const t=gt(this);return ne(t,"has",n),t.hasOwnProperty(n)}class Sa{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,s){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 s===(i?r?$a:Ra:r?Aa:Ma).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=ct(t);if(!i){if(o&&yt(Ca,e))return Reflect.get(Ca,e,s);if(e==="hasOwnProperty")return Ju}const a=Reflect.get(t,e,s);return(Cn(e)?Ea.has(e):Zu(e))||(i||ne(t,"get",e),r)?a:se(a)?o&&cr(e)?a:a.value:kt(a)?i?La(a):le(a):a}}class Ta extends Sa{constructor(t=!1){super(!1,t)}set(t,e,s,i){let r=t[e];if(!this._isShallow){const l=On(r);if(!Nn(s)&&!On(s)&&(r=gt(r),s=gt(s)),!ct(t)&&se(r)&&!se(s))return l?!1:(r.value=s,!0)}const o=ct(t)&&cr(e)?Number(e)<t.length:yt(t,e),a=Reflect.set(t,e,s,i);return t===gt(i)&&(o?un(s,r)&&Ge(t,"set",e,s,r):Ge(t,"add",e,s)),a}deleteProperty(t,e){const s=yt(t,e),i=t[e],r=Reflect.deleteProperty(t,e);return r&&s&&Ge(t,"delete",e,void 0,i),r}has(t,e){const s=Reflect.has(t,e);return(!Cn(e)||!Ea.has(e))&&ne(t,"has",e),s}ownKeys(t){return ne(t,"iterate",ct(t)?"length":Pn),Reflect.ownKeys(t)}}class ka extends Sa{constructor(t=!1){super(!0,t)}set(t,e){return{}.NODE_ENV!=="production"&&hn(`Set operation on key "${String(e)}" failed: target is readonly.`,t),!0}deleteProperty(t,e){return{}.NODE_ENV!=="production"&&hn(`Delete operation on key "${String(e)}" failed: target is readonly.`,t),!0}}const th=new Ta,eh=new ka,nh=new Ta(!0),sh=new ka(!0),yr=n=>n,Zs=n=>Reflect.getPrototypeOf(n);function Qs(n,t,e=!1,s=!1){n=n.__v_raw;const i=gt(n),r=gt(t);e||(un(t,r)&&ne(i,"get",t),ne(i,"get",r));const{has:o}=Zs(i),a=s?yr:e?xr:ls;if(o.call(i,t))return a(n.get(t));if(o.call(i,r))return a(n.get(r));n!==i&&n.get(t)}function Js(n,t=!1){const e=this.__v_raw,s=gt(e),i=gt(n);return t||(un(n,i)&&ne(s,"has",n),ne(s,"has",i)),n===i?e.has(n):e.has(n)||e.has(i)}function ti(n,t=!1){return n=n.__v_raw,!t&&ne(gt(n),"iterate",Pn),Reflect.get(n,"size",n)}function Pa(n){n=gt(n);const t=gt(this);return Zs(t).has.call(t,n)||(t.add(n),Ge(t,"add",n,n)),this}function Oa(n,t){t=gt(t);const e=gt(this),{has:s,get:i}=Zs(e);let r=s.call(e,n);r?{}.NODE_ENV!=="production"&&Da(e,s,n):(n=gt(n),r=s.call(e,n));const o=i.call(e,n);return e.set(n,t),r?un(t,o)&&Ge(e,"set",n,t,o):Ge(e,"add",n,t),this}function Na(n){const t=gt(this),{has:e,get:s}=Zs(t);let i=e.call(t,n);i?{}.NODE_ENV!=="production"&&Da(t,e,n):(n=gt(n),i=e.call(t,n));const r=s?s.call(t,n):void 0,o=t.delete(n);return i&&Ge(t,"delete",n,void 0,r),o}function Ia(){const n=gt(this),t=n.size!==0,e={}.NODE_ENV!=="production"?En(n)?new Map(n):new Set(n):void 0,s=n.clear();return t&&Ge(n,"clear",void 0,void 0,e),s}function ei(n,t){return function(s,i){const r=this,o=r.__v_raw,a=gt(o),l=t?yr:n?xr:ls;return!n&&ne(a,"iterate",Pn),o.forEach((c,u)=>s.call(i,l(c),l(u),r))}}function ni(n,t,e){return function(...s){const i=this.__v_raw,r=gt(i),o=En(r),a=n==="entries"||n===Symbol.iterator&&o,l=n==="keys"&&o,c=i[n](...s),u=e?yr:t?xr:ls;return!t&&ne(r,"iterate",l?_r:Pn),{next(){const{value:h,done:f}=c.next();return f?{value:h,done:f}:{value:a?[u(h[0]),u(h[1])]:u(h),done:f}},[Symbol.iterator](){return this}}}}function dn(n){return function(...t){if({}.NODE_ENV!=="production"){const e=t[0]?`on key "${t[0]}" `:"";hn(`${Sn(n)} operation ${e}failed: target is readonly.`,gt(this))}return n==="delete"?!1:n==="clear"?void 0:this}}function ih(){const n={get(r){return Qs(this,r)},get size(){return ti(this)},has:Js,add:Pa,set:Oa,delete:Na,clear:Ia,forEach:ei(!1,!1)},t={get(r){return Qs(this,r,!1,!0)},get size(){return ti(this)},has:Js,add:Pa,set:Oa,delete:Na,clear:Ia,forEach:ei(!1,!0)},e={get(r){return Qs(this,r,!0)},get size(){return ti(this,!0)},has(r){return Js.call(this,r,!0)},add:dn("add"),set:dn("set"),delete:dn("delete"),clear:dn("clear"),forEach:ei(!0,!1)},s={get(r){return Qs(this,r,!0,!0)},get size(){return ti(this,!0)},has(r){return Js.call(this,r,!0)},add:dn("add"),set:dn("set"),delete:dn("delete"),clear:dn("clear"),forEach:ei(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=ni(r,!1,!1),e[r]=ni(r,!0,!1),t[r]=ni(r,!1,!0),s[r]=ni(r,!0,!0)}),[n,e,t,s]}const[rh,oh,ah,lh]=ih();function si(n,t){const e=t?n?lh:ah:n?oh:rh;return(s,i,r)=>i==="__v_isReactive"?!n:i==="__v_isReadonly"?n:i==="__v_raw"?s:Reflect.get(yt(e,i)&&i in s?e:s,i,r)}const ch={get:si(!1,!1)},uh={get:si(!1,!0)},hh={get:si(!0,!1)},fh={get:si(!0,!0)};function Da(n,t,e){const s=gt(e);if(s!==e&&t.call(n,s)){const i=lr(n);hn(`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 Ma=new WeakMap,Aa=new WeakMap,Ra=new WeakMap,$a=new WeakMap;function dh(n){switch(n){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ph(n){return n.__v_skip||!Object.isExtensible(n)?0:dh(lr(n))}function le(n){return On(n)?n:ii(n,!1,th,ch,Ma)}function mh(n){return ii(n,!1,nh,uh,Aa)}function La(n){return ii(n,!0,eh,hh,Ra)}function qe(n){return ii(n,!0,sh,fh,$a)}function ii(n,t,e,s,i){if(!kt(n))return{}.NODE_ENV!=="production"&&hn(`value cannot be made reactive: ${String(n)}`),n;if(n.__v_raw&&!(t&&n.__v_isReactive))return n;const r=i.get(n);if(r)return r;const o=ph(n);if(o===0)return n;const a=new Proxy(n,o===2?s:e);return i.set(n,a),a}function Bn(n){return On(n)?Bn(n.__v_raw):!!(n&&n.__v_isReactive)}function On(n){return!!(n&&n.__v_isReadonly)}function Nn(n){return!!(n&&n.__v_isShallow)}function br(n){return n?!!n.__v_raw:!1}function gt(n){const t=n&&n.__v_raw;return t?gt(t):n}function gh(n){return Object.isExtensible(n)&&fa(n,"__v_skip",!0),n}const ls=n=>kt(n)?le(n):n,xr=n=>kt(n)?La(n):n,vh="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 Fa{constructor(t,e,s,i){this.getter=t,this._setter=e,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new fr(()=>t(this._value),()=>ri(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=s}get value(){const t=gt(this);return(!t._cacheable||t.effect.dirty)&&un(t._value,t._value=t.effect.run())&&ri(t,4),Va(t),t.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&hn(vh,`
|
|
10
10
|
|
|
11
|
-
getter: `,this.getter),
|
|
11
|
+
getter: `,this.getter),ri(t,2)),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function _h(n,t,e=!1){let s,i;const r=ut(n);r?(s=n,i={}.NODE_ENV!=="production"?()=>{hn("Write operation failed: computed value is readonly")}:Ht):(s=n.get,i=n.set);const o=new Fa(s,i,r||!i,e);return{}.NODE_ENV!=="production"&&t&&!e&&(o.effect.onTrack=t.onTrack,o.effect.onTrigger=t.onTrigger),o}function Va(n){var t;fn&&kn&&(n=gt(n),ba(kn,(t=n.dep)!=null?t:n.dep=wa(()=>n.dep=void 0,n instanceof Fa?n:void 0),{}.NODE_ENV!=="production"?{target:n,type:"get",key:"value"}:void 0))}function ri(n,t=4,e){n=gt(n);const s=n.dep;s&&xa(s,t,{}.NODE_ENV!=="production"?{target:n,type:"set",key:"value",newValue:e}:void 0)}function se(n){return!!(n&&n.__v_isRef===!0)}function G(n){return yh(n,!1)}function yh(n,t){return se(n)?n:new bh(n,t)}class bh{constructor(t,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:gt(t),this._value=e?t:ls(t)}get value(){return Va(this),this._value}set value(t){const e=this.__v_isShallow||Nn(t)||On(t);t=e?t:gt(t),un(t,this._rawValue)&&(this._rawValue=t,this._value=e?t:ls(t),ri(this,4,t))}}function Pt(n){return se(n)?n.value:n}const xh={get:(n,t,e)=>Pt(Reflect.get(n,t,e)),set:(n,t,e,s)=>{const i=n[t];return se(i)&&!se(e)?(i.value=e,!0):Reflect.set(n,t,e,s)}};function Ga(n){return Bn(n)?n:new Proxy(n,xh)}/**
|
|
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
|
|
16
|
-
`),i]);else{const
|
|
17
|
-
`,...
|
|
18
|
-
`],...ah(n))}),t}function ah({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,i=` at <${dl(e.component,e.type,r)}`,s=">"+n;return e.props?[i,...lh(e.props),s]:[i+s]}function lh(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...La(r,e[r]))}),n.length>3&&t.push(" ..."),t}function La(e,t,n){return be(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:ke(t)?(t=La(e,Bt(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):ie(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Bt(t),n?t:[`${e}=`,t])}const Os={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 Un(e,t,n,r){try{return r?e(...r):e()}catch(i){Ls(i,t,n)}}function ir(e,t,n,r){if(ie(e)){const i=Un(e,t,n,r);return i&&wu(i)&&i.catch(s=>{Ls(s,t,n)}),i}if(Wt(e)){const i=[];for(let s=0;s<e.length;s++)i.push(ir(e[s],t,n,r));return i}else({}).NODE_ENV!=="production"&&Ut(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function Ls(e,t,n,r=!0){const i=t?t.vnode:null;if(t){let s=t.parent;const o=t.proxy,a={}.NODE_ENV!=="production"?Os[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const d=s.ec;if(d){for(let g=0;g<d.length;g++)if(d[g](e,o,a)===!1)return}s=s.parent}const u=t.appContext.config.errorHandler;if(u){Or(),Un(u,null,10,[e,o,a]),Lr();return}}ch(e,n,i,r)}function ch(e,t,n,r=!0){if({}.NODE_ENV!=="production"){const i=Os[t];if(n&&rh(n),Ut(`Unhandled error${i?` during execution of ${i}`:""}`),n&&ih(),r)throw e;console.error(e)}else console.error(e)}let bi=!1,Rs=!1;const We=[];let kn=0;const sr=[];let cn=null,Pn=0;const Ra=Promise.resolve();let Fs=null;const uh=100;function hh(e){const t=Fs||Ra;return e?t.then(this?e.bind(this):e):t}function fh(e){let t=kn+1,n=We.length;for(;t<n;){const r=t+n>>>1,i=We[r],s=Fr(i);s<e||s===e&&i.pre?t=r+1:n=r}return t}function Ds(e){(!We.length||!We.includes(e,bi&&e.allowRecurse?kn+1:kn))&&(e.id==null?We.push(e):We.splice(fh(e.id),0,e),Fa())}function Fa(){!bi&&!Rs&&(Rs=!0,Fs=Ra.then($a))}function Da(e){Wt(e)?sr.push(...e):(!cn||!cn.includes(e,e.allowRecurse?Pn+1:Pn))&&sr.push(e),Fa()}function dh(e){if(sr.length){const t=[...new Set(sr)].sort((n,r)=>Fr(n)-Fr(r));if(sr.length=0,cn){cn.push(...t);return}for(cn=t,{}.NODE_ENV!=="production"&&(e=e||new Map),Pn=0;Pn<cn.length;Pn++)({}).NODE_ENV!=="production"&&za(e,cn[Pn])||cn[Pn]();cn=null,Pn=0}}const Fr=e=>e.id==null?1/0:e.id,ph=(e,t)=>{const n=Fr(e)-Fr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function $a(e){Rs=!1,bi=!0,{}.NODE_ENV!=="production"&&(e=e||new Map),We.sort(ph);const t={}.NODE_ENV!=="production"?n=>za(e,n):Mr;try{for(kn=0;kn<We.length;kn++){const n=We[kn];if(n&&n.active!==!1){if({}.NODE_ENV!=="production"&&t(n))continue;Un(n,null,14)}}}finally{kn=0,We.length=0,dh(e),bi=!1,Fs=null,(We.length||sr.length)&&$a(e)}}function za(e,t){if(!e.has(t))e.set(t,1);else{const n=e.get(t);if(n>uh){const r=t.ownerInstance,i=r&&Ur(r.type);return Ls(`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 e.set(t,n+1)}}const or=new Set;({}).NODE_ENV!=="production"&&(ca().__VUE_HMR_RUNTIME__={createRecord:$s(mh),rerender:$s(gh),reload:$s(vh)});const Ei=new Map;function mh(e,t){return Ei.has(e)?!1:(Ei.set(e,{initialDef:Dr(t),instances:new Set}),!0)}function Dr(e){return pl(e)?e.__vccOpts:e}function gh(e,t){const n=Ei.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(r=>{t&&(r.render=t,Dr(r.type).render=t),r.renderCache=[],r.effect.dirty=!0,r.update()}))}function vh(e,t){const n=Ei.get(e);if(!n)return;t=Dr(t),Ba(n.initialDef,t);const r=[...n.instances];for(const i of r){const s=Dr(i.type);or.has(s)||(s!==n.initialDef&&Ba(s,t),or.add(s)),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(or.add(s),i.ceReload(t.styles),or.delete(s)):i.parent?(i.parent.effect.dirty=!0,Ds(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.")}Da(()=>{for(const i of r)or.delete(Dr(i.type))})}function Ba(e,t){$e(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function $s(e){return(t,n)=>{try{return e(t,n)}catch(r){console.error(r),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}function yh(e,...t){}const Ga=Va("component:added"),_h=Va("component:updated");/*! #__NO_SIDE_EFFECTS__ */function Va(e){return t=>{yh(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}let se=null,Ti=null;function ja(e){const t=se;return se=e,Ti=e&&e.type.__scopeId||null,t}function zs(e){Ti=e}function Bs(){Ti=null}function Yt(e,t=se,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&rl(-1);const s=ja(t);let o;try{o=e(...i)}finally{ja(s),r._d&&rl(1)}return{}.NODE_ENV!=="production"&&_h(t),o};return r._n=!0,r._c=!0,r._d=!0,r}const Ci="components";function xh(e,t){return Ua(Ci,e,!0,t)||e}const Ha=Symbol.for("v-ndc");function wh(e){return be(e)?Ua(Ci,e,!1)||e:e||Ha}function Ua(e,t,n=!0,r=!1){const i=se||In;if(i){const s=i.type;if(e===Ci){const a=Ur(s,!1);if(a&&(a===t||a===di(t)||a===Ar(di(t))))return s}const o=Wa(i[e]||s[e],t)||Wa(i.appContext[e],t);if(!o&&r)return s;if({}.NODE_ENV!=="production"&&n&&!o){const a=e===Ci?`
|
|
19
|
-
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";Ut(`Failed to resolve ${e.slice(0,-1)}: ${t}${a}`)}return o}else({}).NODE_ENV!=="production"&&Ut(`resolve${Ar(e.slice(0,-1))} can only be used in render() or setup().`)}function Wa(e,t){return e&&(e[t]||e[di(t)]||e[Ar(di(t))])}const qa=e=>e.__isSuspense;function bh(e,t){t&&t.pendingBranch?Wt(e)?t.effects.push(...e):t.effects.push(e):Da(e)}const Eh=Symbol.for("v-scx"),Th=()=>{{const e=Bh(Eh);return e||{}.NODE_ENV!=="production"&&Ut("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function Ch(e,t){return Gs(e,null,t)}const Si={};function te(e,t,n){return{}.NODE_ENV!=="production"&&!ie(t)&&Ut("`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."),Gs(e,t,n)}function Gs(e,t,{immediate:n,deep:r,flush:i,once:s,onTrack:o,onTrigger:a}=Ue){if(t&&s){const F=t;t=(...it)=>{F(...it),H()}}({}).NODE_ENV!=="production"&&r!==void 0&&typeof r=="number"&&Ut('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&&(n!==void 0&&Ut('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&Ut('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&Ut('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const u=F=>{Ut("Invalid watch source: ",F,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},d=In,g=F=>r===!0?F:Wn(F,r===!1?1:void 0);let v,y=!1,w=!1;if(ke(e)?(v=()=>e.value,y=jn(e)):rr(e)?(v=()=>g(e),y=!0):Wt(e)?(w=!0,y=e.some(F=>rr(F)||jn(F)),v=()=>e.map(F=>{if(ke(F))return F.value;if(rr(F))return g(F);if(ie(F))return Un(F,d,2);({}).NODE_ENV!=="production"&&u(F)})):ie(e)?t?v=()=>Un(e,d,2):v=()=>(I&&I(),ir(e,d,3,[k])):(v=Mr,{}.NODE_ENV!=="production"&&u(e)),t&&r){const F=v;v=()=>Wn(F())}let I,k=F=>{I=D.onStop=()=>{Un(F,d,4),I=D.onStop=void 0}},A;if(Ks)if(k=Mr,t?n&&ir(t,d,3,[v(),w?[]:void 0,k]):v(),i==="sync"){const F=Th();A=F.__watcherHandles||(F.__watcherHandles=[])}else return Mr;let B=w?new Array(e.length).fill(Si):Si;const M=()=>{if(!(!D.active||!D.dirty))if(t){const F=D.run();(r||y||(w?F.some((it,ut)=>En(it,B[ut])):En(F,B)))&&(I&&I(),ir(t,d,3,[F,B===Si?void 0:w&&B[0]===Si?[]:B,k]),B=F)}else D.run()};M.allowRecurse=!!t;let N;i==="sync"?N=M:i==="post"?N=()=>Gr(M,d&&d.suspense):(M.pre=!0,d&&(M.id=d.uid),N=()=>Ds(M));const D=new fa(v,Mr,N),U=Mu(),H=()=>{D.stop(),U&&yu(U.effects,D)};return{}.NODE_ENV!=="production"&&(D.onTrack=o,D.onTrigger=a),t?n?M():B=D.run():i==="post"?Gr(D.run.bind(D),d&&d.suspense):D.run(),A&&A.push(H),H}function Sh(e,t,n){const r=this.proxy,i=be(e)?e.includes(".")?kh(r,e):()=>r[e]:e.bind(r,r);let s;ie(t)?s=t:(s=t.handler,n=t);const o=ul(this),a=Gs(i,s.bind(r),n);return o(),a}function kh(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}function Wn(e,t,n=0,r){if(!fe(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(r=r||new Set,r.has(e))return e;if(r.add(e),ke(e))Wn(e.value,t,n,r);else if(Wt(e))for(let i=0;i<e.length;i++)Wn(e[i],t,n,r);else if(ra(e)||$n(e))e.forEach(i=>{Wn(i,t,n,r)});else if(oa(e))for(const i in e)Wn(e[i],t,n,r);return e}function Vs(e,t){if(se===null)return{}.NODE_ENV!=="production"&&Ut("withDirectives can only be used inside render functions."),e;const n=fl(se)||se.proxy,r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,o,a,u=Ue]=t[i];s&&(ie(s)&&(s={mounted:s,updated:s}),s.deep&&Wn(o),r.push({dir:s,instance:n,value:o,oldValue:void 0,arg:a,modifiers:u}))}return e}function Ya(e,t){e.shapeFlag&6&&e.component?Ya(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function $t(e,t){return ie(e)?(()=>$e({name:e.name},t,{setup:e}))():e}const Xa=e=>!!e.type.__asyncLoader,Ph={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=cl(),r=n.ctx;if(!r.renderer)return()=>{const M=t.default&&t.default();return M&&M.length===1?M[0]:M};const i=new Map,s=new Set;let o=null;({}).NODE_ENV!=="production"&&(n.__v_cache=i);const a=n.suspense,{renderer:{p:u,m:d,um:g,o:{createElement:v}}}=r,y=v("div");r.activate=(M,N,D,U,H)=>{const F=M.component;d(M,N,D,0,a),u(F.vnode,M,N,D,F,a,U,M.slotScopeIds,H),Gr(()=>{F.isDeactivated=!1,F.a&&aa(F.a);const it=M.props&&M.props.onVnodeMounted;it&&ll(it,F.parent,M)},a),{}.NODE_ENV!=="production"&&Ga(F)},r.deactivate=M=>{const N=M.component;d(M,y,null,1,a),Gr(()=>{N.da&&aa(N.da);const D=M.props&&M.props.onVnodeUnmounted;D&&ll(D,N.parent,M),N.isDeactivated=!0},a),{}.NODE_ENV!=="production"&&Ga(N)};function w(M){js(M),g(M,n,a,!0)}function I(M){i.forEach((N,D)=>{const U=Ur(N.type);U&&(!M||!M(U))&&k(D)})}function k(M){const N=i.get(M);!o||!Uh(N,o)?w(N):o&&js(o),i.delete(M),s.delete(M)}te(()=>[e.include,e.exclude],([M,N])=>{M&&I(D=>$r(M,D)),N&&I(D=>!$r(N,D))},{flush:"post",deep:!0});let A=null;const B=()=>{A!=null&&i.set(A,Hs(n.subTree))};return Pi(B),Mh(B),Nh(()=>{i.forEach(M=>{const{subTree:N,suspense:D}=n,U=Hs(N);if(M.type===U.type&&M.key===U.key){js(U);const H=U.component.da;H&&Gr(H,D);return}w(M)})}),()=>{if(A=null,!t.default)return o=null;const M=t.default(),N=M[0];if(M.length>1)return{}.NODE_ENV!=="production"&&Ut("KeepAlive should contain exactly one component child."),o=null,M;if(!jr(N)||!(N.shapeFlag&4)&&!(N.shapeFlag&128))return o=null,N;let D=Hs(N);const U=D.type,H=Ur(Xa(D)?D.type.__asyncResolved||{}:U),{include:F,exclude:it,max:ut}=e;if(F&&(!H||!$r(F,H))||it&&H&&$r(it,H))return o=D,N;const _t=D.key==null?U:D.key,pt=i.get(_t);return D.el&&(D=Hr(D),N.shapeFlag&128&&(N.ssContent=D)),A=_t,pt?(D.el=pt.el,D.component=pt.component,D.transition&&Ya(D,D.transition),D.shapeFlag|=512,s.delete(_t),s.add(_t)):(s.add(_t),ut&&s.size>parseInt(ut,10)&&k(s.values().next().value)),D.shapeFlag|=256,o=D,qa(N.type)?N:D}}};function $r(e,t){return Wt(e)?e.some(n=>$r(n,t)):be(e)?e.split(",").includes(t):xu(e)?e.test(t):!1}function js(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Hs(e){return e.shapeFlag&128?e.ssContent:e}function Ih(e,t,n=In,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Or();const a=ul(n),u=ir(t,n,e,o);return a(),Lr(),u});return r?i.unshift(s):i.push(s),s}else if({}.NODE_ENV!=="production"){const i=Eu(Os[e].replace(/ hook$/,""));Ut(`${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 ki=e=>(t,n=In)=>(!Ks||e==="sp")&&Ih(e,(...r)=>t(...r),n),Pi=ki("m"),Mh=ki("u"),Nh=ki("bum"),ar=ki("um");function Pe(e,t,n,r){let i;const s=n&&n[r];if(Wt(e)||be(e)){i=new Array(e.length);for(let o=0,a=e.length;o<a;o++)i[o]=t(e[o],o,void 0,s&&s[o])}else if(typeof e=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(e)&&Ut(`The v-for range expect an integer value but got ${e}.`),i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,s&&s[o])}else if(fe(e))if(e[Symbol.iterator])i=Array.from(e,(o,a)=>t(o,a,void 0,s&&s[a]));else{const o=Object.keys(e);i=new Array(o.length);for(let a=0,u=o.length;a<u;a++){const d=o[a];i[a]=t(e[d],d,a,s&&s[a])}}else i=[];return n&&(n[r]=i),i}function re(e,t,n={},r,i){if(se.isCE||se.parent&&Xa(se.parent)&&se.parent.isCE)return t!=="default"&&(n.name=t),Nt("slot",n,r&&r());let s=e[t];({}).NODE_ENV!=="production"&&s&&s.length>1&&(Ut("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."),s=()=>[]),s&&s._c&&(s._d=!1),dt();const o=s&&Ka(s(n)),a=ge(le,{key:n.key||o&&o.key||`_${t}`},o||(r?r():[]),o&&e._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function Ka(e){return e.some(t=>jr(t)?!(t.type===Mi||t.type===le&&!Ka(t.children)):!0)?e:null}const Us=e=>e?Yh(e)?fl(e)||e.proxy:Us(e.parent):null,zr=$e(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>({}).NODE_ENV!=="production"?xi(e.props):e.props,$attrs:e=>({}).NODE_ENV!=="production"?xi(e.attrs):e.attrs,$slots:e=>({}).NODE_ENV!=="production"?xi(e.slots):e.slots,$refs:e=>({}).NODE_ENV!=="production"?xi(e.refs):e.refs,$parent:e=>Us(e.parent),$root:e=>Us(e.root),$emit:e=>e.emit,$options:e=>Fh(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Ds(e.update)}),$nextTick:e=>e.n||(e.n=hh.bind(e.proxy)),$watch:e=>Sh.bind(e)}),Ah=e=>e==="_"||e==="$",Ws=(e,t)=>e!==Ue&&!e.__isScriptSetup&&ae(e,t),Oh={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:o,type:a,appContext:u}=e;if({}.NODE_ENV!=="production"&&t==="__isVue")return!0;let d;if(t[0]!=="$"){const w=o[t];if(w!==void 0)switch(w){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(Ws(r,t))return o[t]=1,r[t];if(i!==Ue&&ae(i,t))return o[t]=2,i[t];if((d=e.propsOptions[0])&&ae(d,t))return o[t]=3,s[t];if(n!==Ue&&ae(n,t))return o[t]=4,n[t];o[t]=0}}const g=zr[t];let v,y;if(g)return t==="$attrs"?me(e.attrs,"get",""):{}.NODE_ENV!=="production"&&t==="$slots"&&me(e,"get",t),g(e);if((v=a.__cssModules)&&(v=v[t]))return v;if(n!==Ue&&ae(n,t))return o[t]=4,n[t];if(y=u.config.globalProperties,ae(y,t))return y[t];({}).NODE_ENV!=="production"&&se&&(!be(t)||t.indexOf("__v")!==0)&&(i!==Ue&&Ah(t[0])&&ae(i,t)?Ut(`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.`):e===se&&Ut(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return Ws(i,t)?(i[t]=n,!0):{}.NODE_ENV!=="production"&&i.__isScriptSetup&&ae(i,t)?(Ut(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):r!==Ue&&ae(r,t)?(r[t]=n,!0):ae(e.props,t)?({}.NODE_ENV!=="production"&&Ut(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?({}.NODE_ENV!=="production"&&Ut(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):({}.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(s,t,{enumerable:!0,configurable:!0,value:n}):s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},o){let a;return!!n[o]||e!==Ue&&ae(e,o)||Ws(t,o)||(a=s[0])&&ae(a,o)||ae(r,o)||ae(zr,o)||ae(i.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ae(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};({}).NODE_ENV!=="production"&&(Oh.ownKeys=e=>(Ut("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(e)));function Lh(){return Rh().slots}function Rh(){const e=cl();return{}.NODE_ENV!=="production"&&!e&&Ut("useContext() called without active instance."),e.setupContext||(e.setupContext=Kh(e))}function Za(e){return Wt(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Fh(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,a=s.get(t);let u;return a?u=a:!i.length&&!n&&!r?u=t:(u={},i.length&&i.forEach(d=>Ii(u,d,o,!0)),Ii(u,t,o)),fe(t)&&s.set(t,u),u}function Ii(e,t,n,r=!1){const{mixins:i,extends:s}=t;s&&Ii(e,s,n,!0),i&&i.forEach(o=>Ii(e,o,n,!0));for(const o in t)if(r&&o==="expose")({}).NODE_ENV!=="production"&&Ut('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=Dh[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Dh={data:Qa,props:tl,emits:tl,methods:Br,computed:Br,beforeCreate:Ee,created:Ee,beforeMount:Ee,mounted:Ee,beforeUpdate:Ee,updated:Ee,beforeDestroy:Ee,beforeUnmount:Ee,destroyed:Ee,unmounted:Ee,activated:Ee,deactivated:Ee,errorCaptured:Ee,serverPrefetch:Ee,components:Br,directives:Br,watch:zh,provide:Qa,inject:$h};function Qa(e,t){return t?e?function(){return $e(ie(e)?e.call(this,this):e,ie(t)?t.call(this,this):t)}:t:e}function $h(e,t){return Br(Ja(e),Ja(t))}function Ja(e){if(Wt(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ee(e,t){return e?[...new Set([].concat(e,t))]:t}function Br(e,t){return e?$e(Object.create(null),e,t):t}function tl(e,t){return e?Wt(e)&&Wt(t)?[...new Set([...e,...t])]:$e(Object.create(null),Za(e),Za(t??{})):t}function zh(e,t){if(!e)return t;if(!t)return e;const n=$e(Object.create(null),e);for(const r in t)n[r]=Ee(e[r],t[r]);return n}let el=null;function Bh(e,t,n=!1){const r=In||se;if(r||el){const i=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:el._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&ie(t)?t.call(r&&r.proxy):t;({}).NODE_ENV!=="production"&&Ut(`injection "${String(e)}" not found.`)}else({}).NODE_ENV!=="production"&&Ut("inject() can only be used inside setup() or functional components.")}const Gh={},nl=e=>Object.getPrototypeOf(e)===Gh,Gr=bh,Vh=e=>e.__isTeleport,le=Symbol.for("v-fgt"),jh=Symbol.for("v-txt"),Mi=Symbol.for("v-cmt"),Ni=[];let qe=null;function dt(e=!1){Ni.push(qe=e?null:[])}function Hh(){Ni.pop(),qe=Ni[Ni.length-1]||null}let Vr=1;function rl(e){Vr+=e}function il(e){return e.dynamicChildren=Vr>0?qe||gu:null,Hh(),Vr>0&&qe&&qe.push(e),e}function vt(e,t,n,r,i,s){return il(ot(e,t,n,r,i,s,!0))}function ge(e,t,n,r,i){return il(Nt(e,t,n,r,i,!0))}function jr(e){return e?e.__v_isVNode===!0:!1}function Uh(e,t){return{}.NODE_ENV!=="production"&&t.shapeFlag&6&&or.has(t.type)?(e.shapeFlag&=-257,t.shapeFlag&=-513,!1):e.type===t.type&&e.key===t.key}const Wh=(...e)=>ol(...e),sl=({key:e})=>e??null,Ai=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||ke(e)||ie(e)?{i:se,r:e,k:t,f:!!n}:e:null);function ot(e,t=null,n=null,r=0,i=null,s=e===le?0:1,o=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&sl(t),ref:t&&Ai(t),scopeId:Ti,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:se};return a?(qs(u,n),s&128&&e.normalize(u)):n&&(u.shapeFlag|=be(n)?8:16),{}.NODE_ENV!=="production"&&u.key!==u.key&&Ut("VNode created with invalid key (NaN). VNode type:",u.type),Vr>0&&!o&&qe&&(u.patchFlag>0||s&6)&&u.patchFlag!==32&&qe.push(u),u}const Nt={}.NODE_ENV!=="production"?Wh:ol;function ol(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===Ha)&&({}.NODE_ENV!=="production"&&!e&&Ut(`Invalid vnode type when creating vnode: ${e}.`),e=Mi),jr(e)){const a=Hr(e,t,!0);return n&&qs(a,n),Vr>0&&!s&&qe&&(a.shapeFlag&6?qe[qe.indexOf(e)]=a:qe.push(a)),a.patchFlag|=-2,a}if(pl(e)&&(e=e.__vccOpts),t){t=qh(t);let{class:a,style:u}=t;a&&!be(a)&&(t.class=Se(a)),fe(u)&&(Ns(u)&&!Wt(u)&&(u=$e({},u)),t.style=Tt(u))}const o=be(e)?1:qa(e)?128:Vh(e)?64:fe(e)?4:ie(e)?2:0;return{}.NODE_ENV!=="production"&&o&4&&Ns(e)&&(e=Bt(e),Ut("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`.",`
|
|
20
|
-
|
|
15
|
+
**/const In=[];function oi(n){In.push(n)}function ai(){In.pop()}function B(n,...t){Xe();const e=In.length?In[In.length-1].component:null,s=e&&e.appContext.config.warnHandler,i=wh();if(s)Ke(s,e,11,[n+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 <${Ci(e,r.type)}>`).join(`
|
|
16
|
+
`),i]);else{const r=[`[Vue warn]: ${n}`,...t];i.length&&r.push(`
|
|
17
|
+
`,...Eh(i)),console.warn(...r)}We()}function wh(){let n=In[In.length-1];if(!n)return[];const t=[];for(;n;){const e=t[0];e&&e.vnode===n?e.recurseCount++:t.push({vnode:n,recurseCount:0});const s=n.component&&n.component.parent;n=s&&s.vnode}return t}function Eh(n){const t=[];return n.forEach((e,s)=>{t.push(...s===0?[]:[`
|
|
18
|
+
`],...Ch(e))}),t}function Ch({vnode:n,recurseCount:t}){const e=t>0?`... (${t} recursive calls)`:"",s=n.component?n.component.parent==null:!1,i=` at <${Ci(n.component,n.type,s)}`,r=">"+e;return n.props?[i,...Sh(n.props),r]:[i+r]}function Sh(n){const t=[],e=Object.keys(n);return e.slice(0,3).forEach(s=>{t.push(...za(s,n[s]))}),e.length>3&&t.push(" ..."),t}function za(n,t,e){return Bt(t)?(t=JSON.stringify(t),e?t:[`${n}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?e?t:[`${n}=${t}`]:se(t)?(t=za(n,gt(t.value),!0),e?t:[`${n}=Ref<`,t,">"]):ut(t)?[`${n}=fn${t.name?`<${t.name}>`:""}`]:(t=gt(t),e?t:[`${n}=`,t])}const wr={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 Ke(n,t,e,s){try{return s?n(...s):n()}catch(i){cs(i,t,e)}}function De(n,t,e,s){if(ut(n)){const i=Ke(n,t,e,s);return i&&ar(i)&&i.catch(r=>{cs(r,t,e)}),i}if(ct(n)){const i=[];for(let r=0;r<n.length;r++)i.push(De(n[r],t,e,s));return i}else({}).NODE_ENV!=="production"&&B(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof n}`)}function cs(n,t,e,s=!0){const i=t?t.vnode:null;if(t){let r=t.parent;const o=t.proxy,a={}.NODE_ENV!=="production"?wr[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](n,o,a)===!1)return}r=r.parent}const l=t.appContext.config.errorHandler;if(l){Xe(),Ke(l,null,10,[n,o,a]),We();return}}Th(n,e,i,s)}function Th(n,t,e,s=!0){if({}.NODE_ENV!=="production"){const i=wr[t];if(e&&oi(e),B(`Unhandled error${i?` during execution of ${i}`:""}`),e&&ai(),s)throw n;console.error(n)}else console.error(n)}let us=!1,Er=!1;const ce=[];let ze=0;const Un=[];let Ze=null,pn=0;const ja=Promise.resolve();let Cr=null;const kh=100;function Ha(n){const t=Cr||ja;return n?t.then(this?n.bind(this):n):t}function Ph(n){let t=ze+1,e=ce.length;for(;t<e;){const s=t+e>>>1,i=ce[s],r=hs(i);r<n||r===n&&i.pre?t=s+1:e=s}return t}function li(n){(!ce.length||!ce.includes(n,us&&n.allowRecurse?ze+1:ze))&&(n.id==null?ce.push(n):ce.splice(Ph(n.id),0,n),Ba())}function Ba(){!us&&!Er&&(Er=!0,Cr=ja.then(Wa))}function Oh(n){const t=ce.indexOf(n);t>ze&&ce.splice(t,1)}function Ua(n){ct(n)?Un.push(...n):(!Ze||!Ze.includes(n,n.allowRecurse?pn+1:pn))&&Un.push(n),Ba()}function Ya(n,t,e=us?ze+1:0){for({}.NODE_ENV!=="production"&&(t=t||new Map);e<ce.length;e++){const s=ce[e];if(s&&s.pre){if(n&&s.id!==n.uid||{}.NODE_ENV!=="production"&&Sr(t,s))continue;ce.splice(e,1),e--,s()}}}function Xa(n){if(Un.length){const t=[...new Set(Un)].sort((e,s)=>hs(e)-hs(s));if(Un.length=0,Ze){Ze.push(...t);return}for(Ze=t,{}.NODE_ENV!=="production"&&(n=n||new Map),pn=0;pn<Ze.length;pn++)({}).NODE_ENV!=="production"&&Sr(n,Ze[pn])||Ze[pn]();Ze=null,pn=0}}const hs=n=>n.id==null?1/0:n.id,Nh=(n,t)=>{const e=hs(n)-hs(t);if(e===0){if(n.pre&&!t.pre)return-1;if(t.pre&&!n.pre)return 1}return e};function Wa(n){Er=!1,us=!0,{}.NODE_ENV!=="production"&&(n=n||new Map),ce.sort(Nh);const t={}.NODE_ENV!=="production"?e=>Sr(n,e):Ht;try{for(ze=0;ze<ce.length;ze++){const e=ce[ze];if(e&&e.active!==!1){if({}.NODE_ENV!=="production"&&t(e))continue;Ke(e,null,14)}}}finally{ze=0,ce.length=0,Xa(n),us=!1,Cr=null,(ce.length||Un.length)&&Wa(n)}}function Sr(n,t){if(!n.has(t))n.set(t,1);else{const e=n.get(t);if(e>kh){const s=t.ownerInstance,i=s&&Qr(s.type);return cs(`Maximum recursive updates exceeded${i?` in component <${i}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}else n.set(t,e+1)}}let Dn=!1;const Yn=new Set;({}).NODE_ENV!=="production"&&(ur().__VUE_HMR_RUNTIME__={createRecord:Tr(qa),rerender:Tr(Mh),reload:Tr(Ah)});const Mn=new Map;function Ih(n){const t=n.type.__hmrId;let e=Mn.get(t);e||(qa(t,n.type),e=Mn.get(t)),e.instances.add(n)}function Dh(n){Mn.get(n.type.__hmrId).instances.delete(n)}function qa(n,t){return Mn.has(n)?!1:(Mn.set(n,{initialDef:fs(t),instances:new Set}),!0)}function fs(n){return Bl(n)?n.__vccOpts:n}function Mh(n,t){const e=Mn.get(n);e&&(e.initialDef.render=t,[...e.instances].forEach(s=>{t&&(s.render=t,fs(s.type).render=t),s.renderCache=[],Dn=!0,s.effect.dirty=!0,s.update(),Dn=!1}))}function Ah(n,t){const e=Mn.get(n);if(!e)return;t=fs(t),Ka(e.initialDef,t);const s=[...e.instances];for(const i of s){const r=fs(i.type);Yn.has(r)||(r!==e.initialDef&&Ka(r,t),Yn.add(r)),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(Yn.add(r),i.ceReload(t.styles),Yn.delete(r)):i.parent?(i.parent.effect.dirty=!0,li(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.")}Ua(()=>{for(const i of s)Yn.delete(fs(i.type))})}function Ka(n,t){Gt(n,t);for(const e in n)e!=="__file"&&!(e in t)&&delete n[e]}function Tr(n){return(t,e)=>{try{return n(t,e)}catch(s){console.error(s),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let je,ds=[],kr=!1;function ps(n,...t){je?je.emit(n,...t):kr||ds.push({event:n,args:t})}function Za(n,t){var e,s;je=n,je?(je.enabled=!0,ds.forEach(({event:i,args:r})=>je.emit(i,...r)),ds=[]):typeof window<"u"&&window.HTMLElement&&!((s=(e=window.navigator)==null?void 0:e.userAgent)!=null&&s.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{Za(r,t)}),setTimeout(()=>{je||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,kr=!0,ds=[])},3e3)):(kr=!0,ds=[])}function Rh(n,t){ps("app:init",n,t,{Fragment:Ot,Text:ys,Comment:xe,Static:yi})}function $h(n){ps("app:unmount",n)}const Lh=Pr("component:added"),Qa=Pr("component:updated"),Fh=Pr("component:removed"),Vh=n=>{je&&typeof je.cleanupBuffer=="function"&&!je.cleanupBuffer(n)&&Fh(n)};/*! #__NO_SIDE_EFFECTS__ */function Pr(n){return t=>{ps(n,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const Gh=Ja("perf:start"),zh=Ja("perf:end");function Ja(n){return(t,e,s)=>{ps(n,t.appContext.app,t.uid,t,e,s)}}function jh(n,t,e){ps("component:emit",n.appContext.app,n,t,e)}function Hh(n,t,...e){if(n.isUnmounted)return;const s=n.vnode.props||It;if({}.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[h]}=n;if(u)if(!(t in u))(!h||!(Tn(t)in h))&&B(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${Tn(t)}" prop.`);else{const f=u[t];ut(f)&&(f(...e)||B(`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 s){const u=`${o==="modelValue"?"model":o}Modifiers`,{number:h,trim:f}=s[u]||It;f&&(i=e.map(p=>Bt(p)?p.trim():p)),h&&(i=e.map(zu))}if({}.NODE_ENV!=="production"&&jh(n,t,i),{}.NODE_ENV!=="production"){const u=t.toLowerCase();u!==t&&s[Tn(u)]&&B(`Event "${u}" is emitted in component ${Ci(n,n.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 "${cn(t)}" instead of "${t}".`)}let a,l=s[a=Tn(t)]||s[a=Tn(Ve(t))];!l&&r&&(l=s[a=Tn(cn(t))]),l&&De(l,n,6,i);const c=s[a+"Once"];if(c){if(!n.emitted)n.emitted={};else if(n.emitted[a])return;n.emitted[a]=!0,De(c,n,6,i)}}function tl(n,t,e=!1){const s=t.emitsCache,i=s.get(n);if(i!==void 0)return i;const r=n.emits;let o={},a=!1;if(!ut(n)){const l=c=>{const u=tl(c,t,!0);u&&(a=!0,Gt(o,u))};!e&&t.mixins.length&&t.mixins.forEach(l),n.extends&&l(n.extends),n.mixins&&n.mixins.forEach(l)}return!r&&!a?(kt(n)&&s.set(n,null),null):(ct(r)?r.forEach(l=>o[l]=null):Gt(o,r),kt(n)&&s.set(n,o),o)}function ci(n,t){return!n||!rs(t)?!1:(t=t.slice(2).replace(/Once$/,""),yt(n,t[0].toLowerCase()+t.slice(1))||yt(n,cn(t))||yt(n,t))}let Ut=null,ui=null;function hi(n){const t=Ut;return Ut=n,ui=n&&n.type.__scopeId||null,t}function Xn(n){ui=n}function Wn(){ui=null}function Dt(n,t=Ut,e){if(!t||n._n)return n;const s=(...i)=>{s._d&&Dl(-1);const r=hi(t);let o;try{o=n(...i)}finally{hi(r),s._d&&Dl(1)}return{}.NODE_ENV!=="production"&&Qa(t),o};return s._n=!0,s._c=!0,s._d=!0,s}let Or=!1;function fi(){Or=!0}function Nr(n){const{type:t,vnode:e,proxy:s,withProxy:i,propsOptions:[r],slots:o,attrs:a,emit:l,render:c,renderCache:u,props:h,data:f,setupState:p,ctx:m,inheritAttrs:v}=n,b=hi(n);let E,C;({}).NODE_ENV!=="production"&&(Or=!1);try{if(e.shapeFlag&4){const D=i||s,N={}.NODE_ENV!=="production"&&p.__isScriptSetup?new Proxy(D,{get(A,at,lt){return B(`Property '${String(at)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(A,at,lt)}}):D;E=Ae(c.call(N,D,u,{}.NODE_ENV!=="production"?qe(h):h,p,f,m)),C=a}else{const D=t;({}).NODE_ENV!=="production"&&a===h&&fi(),E=Ae(D.length>1?D({}.NODE_ENV!=="production"?qe(h):h,{}.NODE_ENV!=="production"?{get attrs(){return fi(),a},slots:o,emit:l}:{attrs:a,slots:o,emit:l}):D({}.NODE_ENV!=="production"?qe(h):h,null)),C=t.props?a:Bh(a)}}catch(D){bs.length=0,cs(D,n,1),E=ot(xe)}let w=E,P;if({}.NODE_ENV!=="production"&&E.patchFlag>0&&E.patchFlag&2048&&([w,P]=el(E)),C&&v!==!1){const D=Object.keys(C),{shapeFlag:N}=w;if(D.length){if(N&7)r&&D.some(Ws)&&(C=Uh(C,r)),w=vn(w,C);else if({}.NODE_ENV!=="production"&&!Or&&w.type!==xe){const A=Object.keys(a),at=[],lt=[];for(let pt=0,Et=A.length;pt<Et;pt++){const bt=A[pt];rs(bt)?Ws(bt)||at.push(bt[2].toLowerCase()+bt.slice(3)):lt.push(bt)}lt.length&&B(`Extraneous non-props attributes (${lt.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),at.length&&B(`Extraneous non-emits event listeners (${at.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"&&!nl(w)&&B("Runtime directive used on component with non-element root node. The directives will not function as intended."),w=vn(w),w.dirs=w.dirs?w.dirs.concat(e.dirs):e.dirs),e.transition&&({}.NODE_ENV!=="production"&&!nl(w)&&B("Component inside <Transition> renders non-element root node that cannot be animated."),w.transition=e.transition),{}.NODE_ENV!=="production"&&P?P(w):E=w,hi(b),E}const el=n=>{const t=n.children,e=n.dynamicChildren,s=Ir(t,!1);if(s){if({}.NODE_ENV!=="production"&&s.patchFlag>0&&s.patchFlag&2048)return el(s)}else return[n,void 0];const i=t.indexOf(s),r=e?e.indexOf(s):-1,o=a=>{t[i]=a,e&&(r>-1?e[r]=a:a.patchFlag>0&&(n.dynamicChildren=[...e,a]))};return[Ae(s),o]};function Ir(n,t=!0){let e;for(let s=0;s<n.length;s++){const i=n[s];if(qn(i)){if(i.type!==xe||i.children==="v-if"){if(e)return;if(e=i,{}.NODE_ENV!=="production"&&t&&e.patchFlag>0&&e.patchFlag&2048)return Ir(e.children)}}else return}return e}const Bh=n=>{let t;for(const e in n)(e==="class"||e==="style"||rs(e))&&((t||(t={}))[e]=n[e]);return t},Uh=(n,t)=>{const e={};for(const s in n)(!Ws(s)||!(s.slice(9)in t))&&(e[s]=n[s]);return e},nl=n=>n.shapeFlag&7||n.type===xe;function Yh(n,t,e){const{props:s,children:i,component:r}=n,{props:o,children:a,patchFlag:l}=t,c=r.emitsOptions;if({}.NODE_ENV!=="production"&&(i||a)&&Dn||t.dirs||t.transition)return!0;if(e&&l>=0){if(l&1024)return!0;if(l&16)return s?sl(s,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]!==s[f]&&!ci(c,f))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:s===o?!1:s?o?sl(s,o,c):!0:!!o;return!1}function sl(n,t,e){const s=Object.keys(t);if(s.length!==Object.keys(n).length)return!0;for(let i=0;i<s.length;i++){const r=s[i];if(t[r]!==n[r]&&!ci(e,r))return!0}return!1}function Xh({vnode:n,parent:t},e){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===n&&(s.el=n.el),s===n)(n=t.vnode).el=e,t=t.parent;else break}}const Dr="components";function Wh(n,t){return Kh(Dr,n,!0,t)||n}const qh=Symbol.for("v-ndc");function Kh(n,t,e=!0,s=!1){const i=Ut||qt;if(i){const r=i.type;if(n===Dr){const a=Qr(r,!1);if(a&&(a===t||a===Ve(t)||a===Sn(Ve(t))))return r}const o=il(i[n]||r[n],t)||il(i.appContext[n],t);if(!o&&s)return r;if({}.NODE_ENV!=="production"&&e&&!o){const a=n===Dr?`
|
|
19
|
+
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";B(`Failed to resolve ${n.slice(0,-1)}: ${t}${a}`)}return o}else({}).NODE_ENV!=="production"&&B(`resolve${Sn(n.slice(0,-1))} can only be used in render() or setup().`)}function il(n,t){return n&&(n[t]||n[Ve(t)]||n[Sn(Ve(t))])}const Zh=n=>n.__isSuspense;function Qh(n,t){t&&t.pendingBranch?ct(n)?t.effects.push(...n):t.effects.push(n):Ua(n)}const Jh=Symbol.for("v-scx"),tf=()=>{{const n=gi(Jh);return n||{}.NODE_ENV!=="production"&&B("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),n}};function rl(n,t){return Mr(n,null,t)}const di={};function wt(n,t,e){return{}.NODE_ENV!=="production"&&!ut(t)&&B("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),Mr(n,t,e)}function Mr(n,t,{immediate:e,deep:s,flush:i,once:r,onTrack:o,onTrigger:a}=It){if(t&&r){const A=t;t=(...at)=>{A(...at),N()}}({}).NODE_ENV!=="production"&&s!==void 0&&typeof s=="number"&&B('watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'),{}.NODE_ENV!=="production"&&!t&&(e!==void 0&&B('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&B('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&B('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=A=>{B("Invalid watch source: ",A,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=qt,u=A=>s===!0?A:An(A,s===!1?1:void 0);let h,f=!1,p=!1;if(se(n)?(h=()=>n.value,f=Nn(n)):Bn(n)?(h=()=>u(n),f=!0):ct(n)?(p=!0,f=n.some(A=>Bn(A)||Nn(A)),h=()=>n.map(A=>{if(se(A))return A.value;if(Bn(A))return u(A);if(ut(A))return Ke(A,c,2);({}).NODE_ENV!=="production"&&l(A)})):ut(n)?t?h=()=>Ke(n,c,2):h=()=>(m&&m(),De(n,c,3,[v])):(h=Ht,{}.NODE_ENV!=="production"&&l(n)),t&&s){const A=h;h=()=>An(A())}let m,v=A=>{m=P.onStop=()=>{Ke(A,c,4),m=P.onStop=void 0}},b;if(wi)if(v=Ht,t?e&&De(t,c,3,[h(),p?[]:void 0,v]):h(),i==="sync"){const A=tf();b=A.__watcherHandles||(A.__watcherHandles=[])}else return Ht;let E=p?new Array(n.length).fill(di):di;const C=()=>{if(!(!P.active||!P.dirty))if(t){const A=P.run();(s||f||(p?A.some((at,lt)=>un(at,E[lt])):un(A,E)))&&(m&&m(),De(t,c,3,[A,E===di?void 0:p&&E[0]===di?[]:E,v]),E=A)}else P.run()};C.allowRecurse=!!t;let w;i==="sync"?w=C:i==="post"?w=()=>be(C,c&&c.suspense):(C.pre=!0,c&&(C.id=c.uid),w=()=>li(C));const P=new fr(h,Ht,w),D=qu(),N=()=>{P.stop(),D&&or(D.effects,P)};return{}.NODE_ENV!=="production"&&(P.onTrack=o,P.onTrigger=a),t?e?C():E=P.run():i==="post"?be(P.run.bind(P),c&&c.suspense):P.run(),b&&b.push(N),N}function ef(n,t,e){const s=this.proxy,i=Bt(n)?n.includes(".")?ol(s,n):()=>s[n]:n.bind(s,s);let r;ut(t)?r=t:(r=t.handler,e=t);const o=Es(this),a=Mr(i,r.bind(s),e);return o(),a}function ol(n,t){const e=t.split(".");return()=>{let s=n;for(let i=0;i<e.length&&s;i++)s=s[e[i]];return s}}function An(n,t,e=0,s){if(!kt(n)||n.__v_skip)return n;if(t&&t>0){if(e>=t)return n;e++}if(s=s||new Set,s.has(n))return n;if(s.add(n),se(n))An(n.value,t,e,s);else if(ct(n))for(let i=0;i<n.length;i++)An(n[i],t,e,s);else if(ca(n)||En(n))n.forEach(i=>{An(i,t,e,s)});else if(ha(n))for(const i in n)An(n[i],t,e,s);return n}function al(n){Fu(n)&&B("Do not use built-in directive ids as custom directive id: "+n)}function Ar(n,t){if(Ut===null)return{}.NODE_ENV!=="production"&&B("withDirectives can only be used inside render functions."),n;const e=Ei(Ut)||Ut.proxy,s=n.dirs||(n.dirs=[]);for(let i=0;i<t.length;i++){let[r,o,a,l=It]=t[i];r&&(ut(r)&&(r={mounted:r,updated:r}),r.deep&&An(o),s.push({dir:r,instance:e,value:o,oldValue:void 0,arg:a,modifiers:l}))}return n}function Rn(n,t,e,s){const i=n.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[s];l&&(Xe(),De(l,e,8,[n.el,a,n,t]),We())}}/*! #__NO_SIDE_EFFECTS__ */function tt(n,t){return ut(n)?(()=>Gt({name:n.name},t,{setup:n}))():n}const ms=n=>!!n.type.__asyncLoader,Rr=n=>n.type.__isKeepAlive;function nf(n,t){ll(n,"a",t)}function sf(n,t){ll(n,"da",t)}function ll(n,t,e=qt){const s=n.__wdc||(n.__wdc=()=>{let i=e;for(;i;){if(i.isDeactivated)return;i=i.parent}return n()});if(pi(t,s,e),e){let i=e.parent;for(;i&&i.parent;)Rr(i.parent.vnode)&&rf(s,t,e,i),i=i.parent}}function rf(n,t,e,s){const i=pi(t,n,s,!0);zt(()=>{or(s[t],i)},e)}function pi(n,t,e=qt,s=!1){if(e){const i=e[n]||(e[n]=[]),r=t.__weh||(t.__weh=(...o)=>{if(e.isUnmounted)return;Xe();const a=Es(e),l=De(t,e,n,o);return a(),We(),l});return s?i.unshift(r):i.push(r),r}else if({}.NODE_ENV!=="production"){const i=Tn(wr[n].replace(/ hook$/,""));B(`${i} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const Qe=n=>(t,e=qt)=>(!wi||n==="sp")&&pi(n,(...s)=>t(...s),e),of=Qe("bm"),mn=Qe("m"),af=Qe("bu"),lf=Qe("u"),cf=Qe("bum"),zt=Qe("um"),uf=Qe("sp"),hf=Qe("rtg"),ff=Qe("rtc");function df(n,t=qt){pi("ec",n,t)}function fe(n,t,e,s){let i;const r=e&&e[s];if(ct(n)||Bt(n)){i=new Array(n.length);for(let o=0,a=n.length;o<a;o++)i[o]=t(n[o],o,void 0,r&&r[o])}else if(typeof n=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(n)&&B(`The v-for range expect an integer value but got ${n}.`),i=new Array(n);for(let o=0;o<n;o++)i[o]=t(o+1,o,void 0,r&&r[o])}else if(kt(n))if(n[Symbol.iterator])i=Array.from(n,(o,a)=>t(o,a,void 0,r&&r[a]));else{const o=Object.keys(n);i=new Array(o.length);for(let a=0,l=o.length;a<l;a++){const c=o[a];i[a]=t(n[c],c,a,r&&r[a])}}else i=[];return e&&(e[s]=i),i}function $t(n,t,e={},s,i){if(Ut.isCE||Ut.parent&&ms(Ut.parent)&&Ut.parent.isCE)return t!=="default"&&(e.name=t),ot("slot",e,s&&s());let r=n[t];({}).NODE_ENV!=="production"&&r&&r.length>1&&(B("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),r=()=>[]),r&&r._c&&(r._d=!1),R();const o=r&&cl(r(e)),a=ue(Ot,{key:e.key||o&&o.key||`_${t}`},o||(s?s():[]),o&&n._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function cl(n){return n.some(t=>qn(t)?!(t.type===xe||t.type===Ot&&!cl(t.children)):!0)?n:null}const $r=n=>n?Vl(n)?Ei(n)||n.proxy:$r(n.parent):null,$n=Gt(Object.create(null),{$:n=>n,$el:n=>n.vnode.el,$data:n=>n.data,$props:n=>({}).NODE_ENV!=="production"?qe(n.props):n.props,$attrs:n=>({}).NODE_ENV!=="production"?qe(n.attrs):n.attrs,$slots:n=>({}).NODE_ENV!=="production"?qe(n.slots):n.slots,$refs:n=>({}).NODE_ENV!=="production"?qe(n.refs):n.refs,$parent:n=>$r(n.parent),$root:n=>$r(n.root),$emit:n=>n.emit,$options:n=>Gr(n),$forceUpdate:n=>n.f||(n.f=()=>{n.effect.dirty=!0,li(n.update)}),$nextTick:n=>n.n||(n.n=Ha.bind(n.proxy)),$watch:n=>ef.bind(n)}),Lr=n=>n==="_"||n==="$",Fr=(n,t)=>n!==It&&!n.__isScriptSetup&&yt(n,t),ul={get({_:n},t){if(t==="__v_skip")return!0;const{ctx:e,setupState:s,data:i,props:r,accessCache:o,type:a,appContext:l}=n;if({}.NODE_ENV!=="production"&&t==="__isVue")return!0;let c;if(t[0]!=="$"){const p=o[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return i[t];case 4:return e[t];case 3:return r[t]}else{if(Fr(s,t))return o[t]=1,s[t];if(i!==It&&yt(i,t))return o[t]=2,i[t];if((c=n.propsOptions[0])&&yt(c,t))return o[t]=3,r[t];if(e!==It&&yt(e,t))return o[t]=4,e[t];Vr&&(o[t]=0)}}const u=$n[t];let h,f;if(u)return t==="$attrs"?(ne(n.attrs,"get",""),{}.NODE_ENV!=="production"&&fi()):{}.NODE_ENV!=="production"&&t==="$slots"&&ne(n,"get",t),u(n);if((h=a.__cssModules)&&(h=h[t]))return h;if(e!==It&&yt(e,t))return o[t]=4,e[t];if(f=l.config.globalProperties,yt(f,t))return f[t];({}).NODE_ENV!=="production"&&Ut&&(!Bt(t)||t.indexOf("__v")!==0)&&(i!==It&&Lr(t[0])&&yt(i,t)?B(`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.`):n===Ut&&B(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:n},t,e){const{data:s,setupState:i,ctx:r}=n;return Fr(i,t)?(i[t]=e,!0):{}.NODE_ENV!=="production"&&i.__isScriptSetup&&yt(i,t)?(B(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):s!==It&&yt(s,t)?(s[t]=e,!0):yt(n.props,t)?({}.NODE_ENV!=="production"&&B(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in n?({}.NODE_ENV!=="production"&&B(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):({}.NODE_ENV!=="production"&&t in n.appContext.config.globalProperties?Object.defineProperty(r,t,{enumerable:!0,configurable:!0,value:e}):r[t]=e,!0)},has({_:{data:n,setupState:t,accessCache:e,ctx:s,appContext:i,propsOptions:r}},o){let a;return!!e[o]||n!==It&&yt(n,o)||Fr(t,o)||(a=r[0])&&yt(a,o)||yt(s,o)||yt($n,o)||yt(i.config.globalProperties,o)},defineProperty(n,t,e){return e.get!=null?n._.accessCache[t]=0:yt(e,"value")&&this.set(n,t,e.value,null),Reflect.defineProperty(n,t,e)}};({}).NODE_ENV!=="production"&&(ul.ownKeys=n=>(B("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(n)));function pf(n){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>n}),Object.keys($n).forEach(e=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,get:()=>$n[e](n),set:Ht})}),t}function mf(n){const{ctx:t,propsOptions:[e]}=n;e&&Object.keys(e).forEach(s=>{Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>n.props[s],set:Ht})})}function gf(n){const{ctx:t,setupState:e}=n;Object.keys(gt(e)).forEach(s=>{if(!e.__isScriptSetup){if(Lr(s[0])){B(`setup() return property ${JSON.stringify(s)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>e[s],set:Ht})}})}function vf(){return _f().slots}function _f(){const n=Ll();return{}.NODE_ENV!=="production"&&!n&&B("useContext() called without active instance."),n.setupContext||(n.setupContext=Hl(n))}function hl(n){return ct(n)?n.reduce((t,e)=>(t[e]=null,t),{}):n}function yf(){const n=Object.create(null);return(t,e)=>{n[e]?B(`${t} property "${e}" is already defined in ${n[e]}.`):n[e]=t}}let Vr=!0;function bf(n){const t=Gr(n),e=n.proxy,s=n.ctx;Vr=!1,t.beforeCreate&&fl(t.beforeCreate,n,"bc");const{data:i,computed:r,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:h,mounted:f,beforeUpdate:p,updated:m,activated:v,deactivated:b,beforeDestroy:E,beforeUnmount:C,destroyed:w,unmounted:P,render:D,renderTracked:N,renderTriggered:A,errorCaptured:at,serverPrefetch:lt,expose:pt,inheritAttrs:Et,components:bt,directives:Lt,filters:Ft}=t,_t={}.NODE_ENV!=="production"?yf():null;if({}.NODE_ENV!=="production"){const[Z]=n.propsOptions;if(Z)for(const I in Z)_t("Props",I)}if(c&&xf(c,s,_t),o)for(const Z in o){const I=o[Z];ut(I)?({}.NODE_ENV!=="production"?Object.defineProperty(s,Z,{value:I.bind(e),configurable:!0,enumerable:!0,writable:!0}):s[Z]=I.bind(e),{}.NODE_ENV!=="production"&&_t("Methods",Z)):{}.NODE_ENV!=="production"&&B(`Method "${Z}" has type "${typeof I}" in the component definition. Did you reference the function correctly?`)}if(i){({}).NODE_ENV!=="production"&&!ut(i)&&B("The data option must be a function. Plain object usage is no longer supported.");const Z=i.call(e,e);if({}.NODE_ENV!=="production"&&ar(Z)&&B("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!kt(Z))({}).NODE_ENV!=="production"&&B("data() should return an object.");else if(n.data=le(Z),{}.NODE_ENV!=="production")for(const I in Z)_t("Data",I),Lr(I[0])||Object.defineProperty(s,I,{configurable:!0,enumerable:!0,get:()=>Z[I],set:Ht})}if(Vr=!0,r)for(const Z in r){const I=r[Z],Y=ut(I)?I.bind(e,e):ut(I.get)?I.get.bind(e,e):Ht;({}).NODE_ENV!=="production"&&Y===Ht&&B(`Computed property "${Z}" has no getter.`);const z=!ut(I)&&ut(I.set)?I.set.bind(e):{}.NODE_ENV!=="production"?()=>{B(`Write operation failed: computed property "${Z}" is readonly.`)}:Ht,mt=id({get:Y,set:z});Object.defineProperty(s,Z,{enumerable:!0,configurable:!0,get:()=>mt.value,set:ft=>mt.value=ft}),{}.NODE_ENV!=="production"&&_t("Computed",Z)}if(a)for(const Z in a)dl(a[Z],s,e,Z);if(l){const Z=ut(l)?l.call(e):l;Reflect.ownKeys(Z).forEach(I=>{kf(I,Z[I])})}u&&fl(u,n,"c");function dt(Z,I){ct(I)?I.forEach(Y=>Z(Y.bind(e))):I&&Z(I.bind(e))}if(dt(of,h),dt(mn,f),dt(af,p),dt(lf,m),dt(nf,v),dt(sf,b),dt(df,at),dt(ff,N),dt(hf,A),dt(cf,C),dt(zt,P),dt(uf,lt),ct(pt))if(pt.length){const Z=n.exposed||(n.exposed={});pt.forEach(I=>{Object.defineProperty(Z,I,{get:()=>e[I],set:Y=>e[I]=Y})})}else n.exposed||(n.exposed={});D&&n.render===Ht&&(n.render=D),Et!=null&&(n.inheritAttrs=Et),bt&&(n.components=bt),Lt&&(n.directives=Lt)}function xf(n,t,e=Ht){ct(n)&&(n=zr(n));for(const s in n){const i=n[s];let r;kt(i)?"default"in i?r=gi(i.from||s,i.default,!0):r=gi(i.from||s):r=gi(i),se(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):t[s]=r,{}.NODE_ENV!=="production"&&e("Inject",s)}}function fl(n,t,e){De(ct(n)?n.map(s=>s.bind(t.proxy)):n.bind(t.proxy),t,e)}function dl(n,t,e,s){const i=s.includes(".")?ol(e,s):()=>e[s];if(Bt(n)){const r=t[n];ut(r)?wt(i,r):{}.NODE_ENV!=="production"&&B(`Invalid watch handler specified by key "${n}"`,r)}else if(ut(n))wt(i,n.bind(e));else if(kt(n))if(ct(n))n.forEach(r=>dl(r,t,e,s));else{const r=ut(n.handler)?n.handler.bind(e):t[n.handler];ut(r)?wt(i,r,n):{}.NODE_ENV!=="production"&&B(`Invalid watch handler specified by key "${n.handler}"`,r)}else({}).NODE_ENV!=="production"&&B(`Invalid watch option: "${s}"`,n)}function Gr(n){const t=n.type,{mixins:e,extends:s}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=n.appContext,a=r.get(t);let l;return a?l=a:!i.length&&!e&&!s?l=t:(l={},i.length&&i.forEach(c=>mi(l,c,o,!0)),mi(l,t,o)),kt(t)&&r.set(t,l),l}function mi(n,t,e,s=!1){const{mixins:i,extends:r}=t;r&&mi(n,r,e,!0),i&&i.forEach(o=>mi(n,o,e,!0));for(const o in t)if(s&&o==="expose")({}).NODE_ENV!=="production"&&B('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=wf[o]||e&&e[o];n[o]=a?a(n[o],t[o]):t[o]}return n}const wf={data:pl,props:ml,emits:ml,methods:gs,computed:gs,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:gs,directives:gs,watch:Cf,provide:pl,inject:Ef};function pl(n,t){return t?n?function(){return Gt(ut(n)?n.call(this,this):n,ut(t)?t.call(this,this):t)}:t:n}function Ef(n,t){return gs(zr(n),zr(t))}function zr(n){if(ct(n)){const t={};for(let e=0;e<n.length;e++)t[n[e]]=n[e];return t}return n}function de(n,t){return n?[...new Set([].concat(n,t))]:t}function gs(n,t){return n?Gt(Object.create(null),n,t):t}function ml(n,t){return n?ct(n)&&ct(t)?[...new Set([...n,...t])]:Gt(Object.create(null),hl(n),hl(t??{})):t}function Cf(n,t){if(!n)return t;if(!t)return n;const e=Gt(Object.create(null),n);for(const s in t)e[s]=de(n[s],t[s]);return e}function gl(){return{app:null,config:{isNativeTag:$u,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 Sf=0;function Tf(n,t){return function(s,i=null){ut(s)||(s=Gt({},s)),i!=null&&!kt(i)&&({}.NODE_ENV!=="production"&&B("root props passed to app.mount() must be an object."),i=null);const r=gl(),o=new WeakSet;let a=!1;const l=r.app={_uid:Sf++,_component:s,_props:i,_container:null,_context:r,_instance:null,version:Ul,get config(){return r.config},set config(c){({}).NODE_ENV!=="production"&&B("app.config cannot be replaced. Modify individual options instead.")},use(c,...u){return o.has(c)?{}.NODE_ENV!=="production"&&B("Plugin has already been applied to target app."):c&&ut(c.install)?(o.add(c),c.install(l,...u)):ut(c)?(o.add(c),c(l,...u)):{}.NODE_ENV!=="production"&&B('A plugin must either be a function or an object with an "install" function.'),l},mixin(c){return r.mixins.includes(c)?{}.NODE_ENV!=="production"&&B("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):r.mixins.push(c),l},component(c,u){return{}.NODE_ENV!=="production"&&Kr(c,r.config),u?({}.NODE_ENV!=="production"&&r.components[c]&&B(`Component "${c}" has already been registered in target app.`),r.components[c]=u,l):r.components[c]},directive(c,u){return{}.NODE_ENV!=="production"&&al(c),u?({}.NODE_ENV!=="production"&&r.directives[c]&&B(`Directive "${c}" has already been registered in target app.`),r.directives[c]=u,l):r.directives[c]},mount(c,u,h){if(a)({}).NODE_ENV!=="production"&&B("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{({}).NODE_ENV!=="production"&&c.__vue_app__&&B("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const f=ot(s,i);return f.appContext=r,h===!0?h="svg":h===!1&&(h=void 0),{}.NODE_ENV!=="production"&&(r.reload=()=>{n(vn(f),c,h)}),u&&t?t(f,c):n(f,c,h),a=!0,l._container=c,c.__vue_app__=l,{}.NODE_ENV!=="production"&&(l._instance=f.component,Rh(l,Ul)),Ei(f.component)||f.component.proxy}},unmount(){a?(n(null,l._container),{}.NODE_ENV!=="production"&&(l._instance=null,$h(l)),delete l._container.__vue_app__):{}.NODE_ENV!=="production"&&B("Cannot unmount an app that is not mounted.")},provide(c,u){return{}.NODE_ENV!=="production"&&c in r.provides&&B(`App already provides property with key "${String(c)}". It will be overwritten with the new value.`),r.provides[c]=u,l},runWithContext(c){const u=vs;vs=l;try{return c()}finally{vs=u}}};return l}}let vs=null;function kf(n,t){if(!qt)({}).NODE_ENV!=="production"&&B("provide() can only be used inside setup().");else{let e=qt.provides;const s=qt.parent&&qt.parent.provides;s===e&&(e=qt.provides=Object.create(s)),e[n]=t}}function gi(n,t,e=!1){const s=qt||Ut;if(s||vs){const i=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:vs._context.provides;if(i&&n in i)return i[n];if(arguments.length>1)return e&&ut(t)?t.call(s&&s.proxy):t;({}).NODE_ENV!=="production"&&B(`injection "${String(n)}" not found.`)}else({}).NODE_ENV!=="production"&&B("inject() can only be used inside setup() or functional components.")}const vl={},_l=()=>Object.create(vl),yl=n=>Object.getPrototypeOf(n)===vl;function Pf(n,t,e,s=!1){const i={},r=_l();n.propsDefaults=Object.create(null),bl(n,t,i,r);for(const o in n.propsOptions[0])o in i||(i[o]=void 0);({}).NODE_ENV!=="production"&&Sl(t||{},i,n),e?n.props=s?i:mh(i):n.type.props?n.props=i:n.props=r,n.attrs=r}function Of(n){for(;n;){if(n.type.__hmrId)return!0;n=n.parent}}function Nf(n,t,e,s){const{props:i,attrs:r,vnode:{patchFlag:o}}=n,a=gt(i),[l]=n.propsOptions;let c=!1;if(!({}.NODE_ENV!=="production"&&Of(n))&&(s||o>0)&&!(o&16)){if(o&8){const u=n.vnode.dynamicProps;for(let h=0;h<u.length;h++){let f=u[h];if(ci(n.emitsOptions,f))continue;const p=t[f];if(l)if(yt(r,f))p!==r[f]&&(r[f]=p,c=!0);else{const m=Ve(f);i[m]=jr(l,a,m,p,n,!1)}else p!==r[f]&&(r[f]=p,c=!0)}}}else{bl(n,t,i,r)&&(c=!0);let u;for(const h in a)(!t||!yt(t,h)&&((u=cn(h))===h||!yt(t,u)))&&(l?e&&(e[h]!==void 0||e[u]!==void 0)&&(i[h]=jr(l,a,h,void 0,n,!0)):delete i[h]);if(r!==a)for(const h in r)(!t||!yt(t,h))&&(delete r[h],c=!0)}c&&Ge(n.attrs,"set",""),{}.NODE_ENV!=="production"&&Sl(t||{},i,n)}function bl(n,t,e,s){const[i,r]=n.propsOptions;let o=!1,a;if(t)for(let l in t){if(os(l))continue;const c=t[l];let u;i&&yt(i,u=Ve(l))?!r||!r.includes(u)?e[u]=c:(a||(a={}))[u]=c:ci(n.emitsOptions,l)||(!(l in s)||c!==s[l])&&(s[l]=c,o=!0)}if(r){const l=gt(e),c=a||It;for(let u=0;u<r.length;u++){const h=r[u];e[h]=jr(i,l,h,c[h],n,!yt(c,h))}}return o}function jr(n,t,e,s,i,r){const o=n[e];if(o!=null){const a=yt(o,"default");if(a&&s===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&ut(l)){const{propsDefaults:c}=i;if(e in c)s=c[e];else{const u=Es(i);s=c[e]=l.call(null,t),u()}}else s=l}o[0]&&(r&&!a?s=!1:o[1]&&(s===""||s===cn(e))&&(s=!0))}return s}function xl(n,t,e=!1){const s=t.propsCache,i=s.get(n);if(i)return i;const r=n.props,o={},a=[];let l=!1;if(!ut(n)){const u=h=>{l=!0;const[f,p]=xl(h,t,!0);Gt(o,f),p&&a.push(...p)};!e&&t.mixins.length&&t.mixins.forEach(u),n.extends&&u(n.extends),n.mixins&&n.mixins.forEach(u)}if(!r&&!l)return kt(n)&&s.set(n,Hn),Hn;if(ct(r))for(let u=0;u<r.length;u++){({}).NODE_ENV!=="production"&&!Bt(r[u])&&B("props must be strings when using array syntax.",r[u]);const h=Ve(r[u]);wl(h)&&(o[h]=It)}else if(r){({}).NODE_ENV!=="production"&&!kt(r)&&B("invalid props options",r);for(const u in r){const h=Ve(u);if(wl(h)){const f=r[u],p=o[h]=ct(f)||ut(f)?{type:f}:Gt({},f);if(p){const m=Cl(Boolean,p.type),v=Cl(String,p.type);p[0]=m>-1,p[1]=v<0||m<v,(m>-1||yt(p,"default"))&&a.push(h)}}}}const c=[o,a];return kt(n)&&s.set(n,c),c}function wl(n){return n[0]!=="$"&&!os(n)?!0:({}.NODE_ENV!=="production"&&B(`Invalid prop name: "${n}" is a reserved property.`),!1)}function Hr(n){return n===null?"null":typeof n=="function"?n.name||"":typeof n=="object"&&n.constructor&&n.constructor.name||""}function El(n,t){return Hr(n)===Hr(t)}function Cl(n,t){return ct(t)?t.findIndex(e=>El(e,n)):ut(t)&&El(t,n)?0:-1}function Sl(n,t,e){const s=gt(t),i=e.propsOptions[0];for(const r in i){let o=i[r];o!=null&&If(r,s[r],o,{}.NODE_ENV!=="production"?qe(s):s,!yt(n,r)&&!yt(n,cn(r)))}}function If(n,t,e,s,i){const{type:r,required:o,validator:a,skipCheck:l}=e;if(o&&i){B('Missing required prop: "'+n+'"');return}if(!(t==null&&!o)){if(r!=null&&r!==!0&&!l){let c=!1;const u=ct(r)?r:[r],h=[];for(let f=0;f<u.length&&!c;f++){const{valid:p,expectedType:m}=Mf(t,u[f]);h.push(m||""),c=p}if(!c){B(Af(n,t,h));return}}a&&!a(t,s)&&B('Invalid prop: custom validator check failed for prop "'+n+'".')}}const Df=Fe("String,Number,Boolean,Function,Symbol,BigInt");function Mf(n,t){let e;const s=Hr(t);if(Df(s)){const i=typeof n;e=i===s.toLowerCase(),!e&&i==="object"&&(e=n instanceof t)}else s==="Object"?e=kt(n):s==="Array"?e=ct(n):s==="null"?e=n===null:e=n instanceof t;return{valid:e,expectedType:s}}function Af(n,t,e){if(e.length===0)return`Prop type [] for prop "${n}" won't match anything. Did you mean to use type Array instead?`;let s=`Invalid prop: type check failed for prop "${n}". Expected ${e.map(Sn).join(" | ")}`;const i=e[0],r=lr(t),o=Tl(t,i),a=Tl(t,r);return e.length===1&&kl(i)&&!Rf(i,r)&&(s+=` with value ${o}`),s+=`, got ${r} `,kl(r)&&(s+=`with value ${a}.`),s}function Tl(n,t){return t==="String"?`"${n}"`:t==="Number"?`${Number(n)}`:`${n}`}function kl(n){return["string","number","boolean"].some(e=>n.toLowerCase()===e)}function Rf(...n){return n.some(t=>t.toLowerCase()==="boolean")}const Pl=n=>n[0]==="_"||n==="$stable",Br=n=>ct(n)?n.map(Ae):[Ae(n)],$f=(n,t,e)=>{if(t._n)return t;const s=Dt((...i)=>({}.NODE_ENV!=="production"&&qt&&(!e||e.root===qt.root)&&B(`Slot "${n}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),Br(t(...i))),e);return s._c=!1,s},Ol=(n,t,e)=>{const s=n._ctx;for(const i in n){if(Pl(i))continue;const r=n[i];if(ut(r))t[i]=$f(i,r,s);else if(r!=null){({}).NODE_ENV!=="production"&&B(`Non-function value encountered for slot "${i}". Prefer function slots for better performance.`);const o=Br(r);t[i]=()=>o}}},Nl=(n,t)=>{({}).NODE_ENV!=="production"&&!Rr(n.vnode)&&B("Non-function value encountered for default slot. Prefer function slots for better performance.");const e=Br(t);n.slots.default=()=>e},Lf=(n,t)=>{const e=n.slots=_l();if(n.vnode.shapeFlag&32){const s=t._;s?(Gt(e,t),fa(e,"_",s)):Ol(t,e)}else t&&Nl(n,t)},Ff=(n,t,e)=>{const{vnode:s,slots:i}=n;let r=!0,o=It;if(s.shapeFlag&32){const a=t._;a?{}.NODE_ENV!=="production"&&Dn?(Gt(i,t),Ge(n,"set","$slots")):e&&a===1?r=!1:(Gt(i,t),!e&&a===1&&delete i._):(r=!t.$stable,Ol(t,i)),o=t}else t&&(Nl(n,t),o={default:1});if(r)for(const a in i)!Pl(a)&&o[a]==null&&delete i[a]};function Ur(n,t,e,s,i=!1){if(ct(n)){n.forEach((f,p)=>Ur(f,t&&(ct(t)?t[p]:t),e,s,i));return}if(ms(s)&&!i)return;const r=s.shapeFlag&4?Ei(s.component)||s.component.proxy:s.el,o=i?null:r,{i:a,r:l}=n;if({}.NODE_ENV!=="production"&&!a){B("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const c=t&&t.r,u=a.refs===It?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==l&&(Bt(c)?(u[c]=null,yt(h,c)&&(h[c]=null)):se(c)&&(c.value=null)),ut(l))Ke(l,a,12,[o,u]);else{const f=Bt(l),p=se(l);if(f||p){const m=()=>{if(n.f){const v=f?yt(h,l)?h[l]:u[l]:l.value;i?ct(v)&&or(v,r):ct(v)?v.includes(r)||v.push(r):f?(u[l]=[r],yt(h,l)&&(h[l]=u[l])):(l.value=[r],n.k&&(u[n.k]=l.value))}else f?(u[l]=o,yt(h,l)&&(h[l]=o)):p?(l.value=o,n.k&&(u[n.k]=o)):{}.NODE_ENV!=="production"&&B("Invalid template ref type:",l,`(${typeof l})`)};o?(m.id=-1,be(m,e)):m()}else({}).NODE_ENV!=="production"&&B("Invalid template ref type:",l,`(${typeof l})`)}}let _s,gn;function Je(n,t){n.appContext.config.performance&&vi()&&gn.mark(`vue-${t}-${n.uid}`),{}.NODE_ENV!=="production"&&Gh(n,t,vi()?gn.now():Date.now())}function tn(n,t){if(n.appContext.config.performance&&vi()){const e=`vue-${t}-${n.uid}`,s=e+":end";gn.mark(s),gn.measure(`<${Ci(n,n.type)}> ${t}`,e,s),gn.clearMarks(e),gn.clearMarks(s)}({}).NODE_ENV!=="production"&&zh(n,t,vi()?gn.now():Date.now())}function vi(){return _s!==void 0||(typeof window<"u"&&window.performance?(_s=!0,gn=window.performance):_s=!1),_s}function Vf(){const n=[];if({}.NODE_ENV!=="production"&&n.length){const t=n.length>1;console.warn(`Feature flag${t?"s":""} ${n.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
|
+
|
|
21
|
+
For more details, see https://link.vuejs.org/feature-flags.`)}}const be=Qh;function Gf(n){return zf(n)}function zf(n,t){Vf();const e=ur();e.__VUE__=!0,{}.NODE_ENV!=="production"&&Za(e.__VUE_DEVTOOLS_GLOBAL_HOOK__,e);const{insert:s,remove:i,patchProp:r,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:f,setScopeId:p=Ht,insertStaticContent:m}=n,v=(_,x,O,M=null,$=null,H=null,W=void 0,L=null,U={}.NODE_ENV!=="production"&&Dn?!1:!!x.dynamicChildren)=>{if(_===x)return;_&&!ws(_,x)&&(M=Oe(_),At(_,$,H,!0),_=null),x.patchFlag===-2&&(U=!1,x.dynamicChildren=null);const{type:F,ref:K,shapeFlag:rt}=x;switch(F){case ys:b(_,x,O,M);break;case xe:E(_,x,O,M);break;case yi:_==null?C(x,O,M,W):{}.NODE_ENV!=="production"&&w(_,x,O,W);break;case Ot:Lt(_,x,O,M,$,H,W,L,U);break;default:rt&1?N(_,x,O,M,$,H,W,L,U):rt&6?Ft(_,x,O,M,$,H,W,L,U):rt&64||rt&128?F.process(_,x,O,M,$,H,W,L,U,$e):{}.NODE_ENV!=="production"&&B("Invalid VNode type:",F,`(${typeof F})`)}K!=null&&$&&Ur(K,_&&_.ref,H,x||_,!x)},b=(_,x,O,M)=>{if(_==null)s(x.el=a(x.children),O,M);else{const $=x.el=_.el;x.children!==_.children&&c($,x.children)}},E=(_,x,O,M)=>{_==null?s(x.el=l(x.children||""),O,M):x.el=_.el},C=(_,x,O,M)=>{[_.el,_.anchor]=m(_.children,x,O,M,_.el,_.anchor)},w=(_,x,O,M)=>{if(x.children!==_.children){const $=f(_.anchor);D(_),[x.el,x.anchor]=m(x.children,O,$,M)}else x.el=_.el,x.anchor=_.anchor},P=({el:_,anchor:x},O,M)=>{let $;for(;_&&_!==x;)$=f(_),s(_,O,M),_=$;s(x,O,M)},D=({el:_,anchor:x})=>{let O;for(;_&&_!==x;)O=f(_),i(_),_=O;i(x)},N=(_,x,O,M,$,H,W,L,U)=>{x.type==="svg"?W="svg":x.type==="math"&&(W="mathml"),_==null?A(x,O,M,$,H,W,L,U):pt(_,x,$,H,W,L,U)},A=(_,x,O,M,$,H,W,L)=>{let U,F;const{props:K,shapeFlag:rt,transition:nt,dirs:ht}=_;if(U=_.el=o(_.type,H,K&&K.is,K),rt&8?u(U,_.children):rt&16&<(_.children,U,null,M,$,Yr(_,H),W,L),ht&&Rn(_,null,M,"created"),at(U,_,_.scopeId,W,M),K){for(const Tt in K)Tt!=="value"&&!os(Tt)&&r(U,Tt,null,K[Tt],H,_.children,M,$,Rt);"value"in K&&r(U,"value",null,K.value,H),(F=K.onVnodeBeforeMount)&&He(F,M,_)}({}).NODE_ENV!=="production"&&(Object.defineProperty(U,"__vnode",{value:_,enumerable:!1}),Object.defineProperty(U,"__vueParentComponent",{value:M,enumerable:!1})),ht&&Rn(_,null,M,"beforeMount");const vt=jf($,nt);vt&&nt.beforeEnter(U),s(U,x,O),((F=K&&K.onVnodeMounted)||vt||ht)&&be(()=>{F&&He(F,M,_),vt&&nt.enter(U),ht&&Rn(_,null,M,"mounted")},$)},at=(_,x,O,M,$)=>{if(O&&p(_,O),M)for(let H=0;H<M.length;H++)p(_,M[H]);if($){let H=$.subTree;if({}.NODE_ENV!=="production"&&H.patchFlag>0&&H.patchFlag&2048&&(H=Ir(H.children)||H),x===H){const W=$.vnode;at(_,W,W.scopeId,W.slotScopeIds,$.parent)}}},lt=(_,x,O,M,$,H,W,L,U=0)=>{for(let F=U;F<_.length;F++){const K=_[F]=L?_n(_[F]):Ae(_[F]);v(null,K,x,O,M,$,H,W,L)}},pt=(_,x,O,M,$,H,W)=>{const L=x.el=_.el;let{patchFlag:U,dynamicChildren:F,dirs:K}=x;U|=_.patchFlag&16;const rt=_.props||It,nt=x.props||It;let ht;if(O&&Ln(O,!1),(ht=nt.onVnodeBeforeUpdate)&&He(ht,O,x,_),K&&Rn(x,_,O,"beforeUpdate"),O&&Ln(O,!0),{}.NODE_ENV!=="production"&&Dn&&(U=0,W=!1,F=null),F?(Et(_.dynamicChildren,F,L,O,M,Yr(x,$),H),{}.NODE_ENV!=="production"&&_i(_,x)):W||Y(_,x,L,null,O,M,Yr(x,$),H,!1),U>0){if(U&16)bt(L,x,rt,nt,O,M,$);else if(U&2&&rt.class!==nt.class&&r(L,"class",null,nt.class,$),U&4&&r(L,"style",rt.style,nt.style,$),U&8){const vt=x.dynamicProps;for(let Tt=0;Tt<vt.length;Tt++){const Mt=vt[Tt],jt=rt[Mt],ge=nt[Mt];(ge!==jt||Mt==="value")&&r(L,Mt,jt,ge,$,_.children,O,M,Rt)}}U&1&&_.children!==x.children&&u(L,x.children)}else!W&&F==null&&bt(L,x,rt,nt,O,M,$);((ht=nt.onVnodeUpdated)||K)&&be(()=>{ht&&He(ht,O,x,_),K&&Rn(x,_,O,"updated")},M)},Et=(_,x,O,M,$,H,W)=>{for(let L=0;L<x.length;L++){const U=_[L],F=x[L],K=U.el&&(U.type===Ot||!ws(U,F)||U.shapeFlag&70)?h(U.el):O;v(U,F,K,null,M,$,H,W,!0)}},bt=(_,x,O,M,$,H,W)=>{if(O!==M){if(O!==It)for(const L in O)!os(L)&&!(L in M)&&r(_,L,O[L],null,W,x.children,$,H,Rt);for(const L in M){if(os(L))continue;const U=M[L],F=O[L];U!==F&&L!=="value"&&r(_,L,F,U,W,x.children,$,H,Rt)}"value"in M&&r(_,"value",O.value,M.value,W)}},Lt=(_,x,O,M,$,H,W,L,U)=>{const F=x.el=_?_.el:a(""),K=x.anchor=_?_.anchor:a("");let{patchFlag:rt,dynamicChildren:nt,slotScopeIds:ht}=x;({}).NODE_ENV!=="production"&&(Dn||rt&2048)&&(rt=0,U=!1,nt=null),ht&&(L=L?L.concat(ht):ht),_==null?(s(F,O,M),s(K,O,M),lt(x.children||[],O,K,$,H,W,L,U)):rt>0&&rt&64&&nt&&_.dynamicChildren?(Et(_.dynamicChildren,nt,O,$,H,W,L),{}.NODE_ENV!=="production"?_i(_,x):(x.key!=null||$&&x===$.subTree)&&_i(_,x,!0)):Y(_,x,O,K,$,H,W,L,U)},Ft=(_,x,O,M,$,H,W,L,U)=>{x.slotScopeIds=L,_==null?x.shapeFlag&512?$.ctx.activate(x,O,M,W,U):_t(x,O,M,$,H,W,U):dt(_,x,U)},_t=(_,x,O,M,$,H,W)=>{const L=_.component=Kf(_,M,$);if({}.NODE_ENV!=="production"&&L.type.__hmrId&&Ih(L),{}.NODE_ENV!=="production"&&(oi(_),Je(L,"mount")),Rr(_)&&(L.ctx.renderer=$e),{}.NODE_ENV!=="production"&&Je(L,"init"),Qf(L),{}.NODE_ENV!=="production"&&tn(L,"init"),L.asyncDep){if($&&$.registerDep(L,Z),!_.el){const U=L.subTree=ot(xe);E(null,U,x,O)}}else Z(L,_,x,O,$,H,W);({}).NODE_ENV!=="production"&&(ai(),tn(L,"mount"))},dt=(_,x,O)=>{const M=x.component=_.component;if(Yh(_,x,O))if(M.asyncDep&&!M.asyncResolved){({}).NODE_ENV!=="production"&&oi(x),I(M,x,O),{}.NODE_ENV!=="production"&&ai();return}else M.next=x,Oh(M.update),M.effect.dirty=!0,M.update();else x.el=_.el,M.vnode=x},Z=(_,x,O,M,$,H,W)=>{const L=()=>{if(_.isMounted){let{next:K,bu:rt,u:nt,parent:ht,vnode:vt}=_;{const xn=Il(_);if(xn){K&&(K.el=vt.el,I(_,K,W)),xn.asyncDep.then(()=>{_.isUnmounted||L()});return}}let Tt=K,Mt;({}).NODE_ENV!=="production"&&oi(K||_.vnode),Ln(_,!1),K?(K.el=vt.el,I(_,K,W)):K=vt,rt&&as(rt),(Mt=K.props&&K.props.onVnodeBeforeUpdate)&&He(Mt,ht,K,vt),Ln(_,!0),{}.NODE_ENV!=="production"&&Je(_,"render");const jt=Nr(_);({}).NODE_ENV!=="production"&&tn(_,"render");const ge=_.subTree;_.subTree=jt,{}.NODE_ENV!=="production"&&Je(_,"patch"),v(ge,jt,h(ge.el),Oe(ge),_,$,H),{}.NODE_ENV!=="production"&&tn(_,"patch"),K.el=jt.el,Tt===null&&Xh(_,jt.el),nt&&be(nt,$),(Mt=K.props&&K.props.onVnodeUpdated)&&be(()=>He(Mt,ht,K,vt),$),{}.NODE_ENV!=="production"&&Qa(_),{}.NODE_ENV!=="production"&&ai()}else{let K;const{el:rt,props:nt}=x,{bm:ht,m:vt,parent:Tt}=_,Mt=ms(x);if(Ln(_,!1),ht&&as(ht),!Mt&&(K=nt&&nt.onVnodeBeforeMount)&&He(K,Tt,x),Ln(_,!0),rt&&rn){const jt=()=>{({}).NODE_ENV!=="production"&&Je(_,"render"),_.subTree=Nr(_),{}.NODE_ENV!=="production"&&tn(_,"render"),{}.NODE_ENV!=="production"&&Je(_,"hydrate"),rn(rt,_.subTree,_,$,null),{}.NODE_ENV!=="production"&&tn(_,"hydrate")};Mt?x.type.__asyncLoader().then(()=>!_.isUnmounted&&jt()):jt()}else{({}).NODE_ENV!=="production"&&Je(_,"render");const jt=_.subTree=Nr(_);({}).NODE_ENV!=="production"&&tn(_,"render"),{}.NODE_ENV!=="production"&&Je(_,"patch"),v(null,jt,O,M,_,$,H),{}.NODE_ENV!=="production"&&tn(_,"patch"),x.el=jt.el}if(vt&&be(vt,$),!Mt&&(K=nt&&nt.onVnodeMounted)){const jt=x;be(()=>He(K,Tt,jt),$)}(x.shapeFlag&256||Tt&&ms(Tt.vnode)&&Tt.vnode.shapeFlag&256)&&_.a&&be(_.a,$),_.isMounted=!0,{}.NODE_ENV!=="production"&&Lh(_),x=O=M=null}},U=_.effect=new fr(L,Ht,()=>li(F),_.scope),F=_.update=()=>{U.dirty&&U.run()};F.id=_.uid,Ln(_,!0),{}.NODE_ENV!=="production"&&(U.onTrack=_.rtc?K=>as(_.rtc,K):void 0,U.onTrigger=_.rtg?K=>as(_.rtg,K):void 0,F.ownerInstance=_),F()},I=(_,x,O)=>{x.component=_;const M=_.vnode.props;_.vnode=x,_.next=null,Nf(_,x.props,M,O),Ff(_,x.children,O),Xe(),Ya(_),We()},Y=(_,x,O,M,$,H,W,L,U=!1)=>{const F=_&&_.children,K=_?_.shapeFlag:0,rt=x.children,{patchFlag:nt,shapeFlag:ht}=x;if(nt>0){if(nt&128){mt(F,rt,O,M,$,H,W,L,U);return}else if(nt&256){z(F,rt,O,M,$,H,W,L,U);return}}ht&8?(K&16&&Rt(F,$,H),rt!==F&&u(O,rt)):K&16?ht&16?mt(F,rt,O,M,$,H,W,L,U):Rt(F,$,H,!0):(K&8&&u(O,""),ht&16&<(rt,O,M,$,H,W,L,U))},z=(_,x,O,M,$,H,W,L,U)=>{_=_||Hn,x=x||Hn;const F=_.length,K=x.length,rt=Math.min(F,K);let nt;for(nt=0;nt<rt;nt++){const ht=x[nt]=U?_n(x[nt]):Ae(x[nt]);v(_[nt],ht,O,null,$,H,W,L,U)}F>K?Rt(_,$,H,!0,!1,rt):lt(x,O,M,$,H,W,L,U,rt)},mt=(_,x,O,M,$,H,W,L,U)=>{let F=0;const K=x.length;let rt=_.length-1,nt=K-1;for(;F<=rt&&F<=nt;){const ht=_[F],vt=x[F]=U?_n(x[F]):Ae(x[F]);if(ws(ht,vt))v(ht,vt,O,null,$,H,W,L,U);else break;F++}for(;F<=rt&&F<=nt;){const ht=_[rt],vt=x[nt]=U?_n(x[nt]):Ae(x[nt]);if(ws(ht,vt))v(ht,vt,O,null,$,H,W,L,U);else break;rt--,nt--}if(F>rt){if(F<=nt){const ht=nt+1,vt=ht<K?x[ht].el:M;for(;F<=nt;)v(null,x[F]=U?_n(x[F]):Ae(x[F]),O,vt,$,H,W,L,U),F++}}else if(F>nt)for(;F<=rt;)At(_[F],$,H,!0),F++;else{const ht=F,vt=F,Tt=new Map;for(F=vt;F<=nt;F++){const oe=x[F]=U?_n(x[F]):Ae(x[F]);oe.key!=null&&({}.NODE_ENV!=="production"&&Tt.has(oe.key)&&B("Duplicate keys found during update:",JSON.stringify(oe.key),"Make sure keys are unique."),Tt.set(oe.key,F))}let Mt,jt=0;const ge=nt-vt+1;let xn=!1,Zi=0;const zn=new Array(ge);for(F=0;F<ge;F++)zn[F]=0;for(F=ht;F<=rt;F++){const oe=_[F];if(jt>=ge){At(oe,$,H,!0);continue}let ve;if(oe.key!=null)ve=Tt.get(oe.key);else for(Mt=vt;Mt<=nt;Mt++)if(zn[Mt-vt]===0&&ws(oe,x[Mt])){ve=Mt;break}ve===void 0?At(oe,$,H,!0):(zn[ve-vt]=F+1,ve>=Zi?Zi=ve:xn=!0,v(oe,x[ve],O,null,$,H,W,L,U),jt++)}const Qi=xn?Hf(zn):Hn;for(Mt=Qi.length-1,F=ge-1;F>=0;F--){const oe=vt+F,ve=x[oe],Ji=oe+1<K?x[oe+1].el:M;zn[F]===0?v(null,ve,O,Ji,$,H,W,L,U):xn&&(Mt<0||F!==Qi[Mt]?ft(ve,O,Ji,2):Mt--)}}},ft=(_,x,O,M,$=null)=>{const{el:H,type:W,transition:L,children:U,shapeFlag:F}=_;if(F&6){ft(_.component.subTree,x,O,M);return}if(F&128){_.suspense.move(x,O,M);return}if(F&64){W.move(_,x,O,$e);return}if(W===Ot){s(H,x,O);for(let rt=0;rt<U.length;rt++)ft(U[rt],x,O,M);s(_.anchor,x,O);return}if(W===yi){P(_,x,O);return}if(M!==2&&F&1&&L)if(M===0)L.beforeEnter(H),s(H,x,O),be(()=>L.enter(H),$);else{const{leave:rt,delayLeave:nt,afterLeave:ht}=L,vt=()=>s(H,x,O),Tt=()=>{rt(H,()=>{vt(),ht&&ht()})};nt?nt(H,vt,Tt):Tt()}else s(H,x,O)},At=(_,x,O,M=!1,$=!1)=>{const{type:H,props:W,ref:L,children:U,dynamicChildren:F,shapeFlag:K,patchFlag:rt,dirs:nt}=_;if(L!=null&&Ur(L,null,O,_,!0),K&256){x.ctx.deactivate(_);return}const ht=K&1&&nt,vt=!ms(_);let Tt;if(vt&&(Tt=W&&W.onVnodeBeforeUnmount)&&He(Tt,x,_),K&6)Te(_.component,O,M);else{if(K&128){_.suspense.unmount(O,M);return}ht&&Rn(_,null,x,"beforeUnmount"),K&64?_.type.remove(_,x,O,$,$e,M):F&&(H!==Ot||rt>0&&rt&64)?Rt(F,x,O,!1,!0):(H===Ot&&rt&384||!$&&K&16)&&Rt(U,x,O),M&&ie(_)}(vt&&(Tt=W&&W.onVnodeUnmounted)||ht)&&be(()=>{Tt&&He(Tt,x,_),ht&&Rn(_,null,x,"unmounted")},O)},ie=_=>{const{type:x,el:O,anchor:M,transition:$}=_;if(x===Ot){({}).NODE_ENV!=="production"&&_.patchFlag>0&&_.patchFlag&2048&&$&&!$.persisted?_.children.forEach(W=>{W.type===xe?i(W.el):ie(W)}):Se(O,M);return}if(x===yi){D(_);return}const H=()=>{i(O),$&&!$.persisted&&$.afterLeave&&$.afterLeave()};if(_.shapeFlag&1&&$&&!$.persisted){const{leave:W,delayLeave:L}=$,U=()=>W(O,H);L?L(_.el,H,U):U()}else H()},Se=(_,x)=>{let O;for(;_!==x;)O=f(_),i(_),_=O;i(x)},Te=(_,x,O)=>{({}).NODE_ENV!=="production"&&_.type.__hmrId&&Dh(_);const{bum:M,scope:$,update:H,subTree:W,um:L}=_;M&&as(M),$.stop(),H&&(H.active=!1,At(W,_,x,O)),L&&be(L,x),be(()=>{_.isUnmounted=!0},x),x&&x.pendingBranch&&!x.isUnmounted&&_.asyncDep&&!_.asyncResolved&&_.suspenseId===x.pendingId&&(x.deps--,x.deps===0&&x.resolve()),{}.NODE_ENV!=="production"&&Vh(_)},Rt=(_,x,O,M=!1,$=!1,H=0)=>{for(let W=H;W<_.length;W++)At(_[W],x,O,M,$)},Oe=_=>_.shapeFlag&6?Oe(_.component.subTree):_.shapeFlag&128?_.suspense.next():f(_.anchor||_.el);let Vt=!1;const re=(_,x,O)=>{_==null?x._vnode&&At(x._vnode,null,null,!0):v(x._vnode||null,_,x,null,null,null,O),Vt||(Vt=!0,Ya(),Xa(),Vt=!1),x._vnode=_},$e={p:v,um:At,m:ft,r:ie,mt:_t,mc:lt,pc:Y,pbc:Et,n:Oe,o:n};let sn,rn;return t&&([sn,rn]=t($e)),{render:re,hydrate:sn,createApp:Tf(re,sn)}}function Yr({type:n,props:t},e){return e==="svg"&&n==="foreignObject"||e==="mathml"&&n==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:e}function Ln({effect:n,update:t},e){n.allowRecurse=t.allowRecurse=e}function jf(n,t){return(!n||n&&!n.pendingBranch)&&t&&!t.persisted}function _i(n,t,e=!1){const s=n.children,i=t.children;if(ct(s)&&ct(i))for(let r=0;r<s.length;r++){const o=s[r];let a=i[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[r]=_n(i[r]),a.el=o.el),e||_i(o,a)),a.type===ys&&(a.el=o.el),{}.NODE_ENV!=="production"&&a.type===xe&&!a.el&&(a.el=o.el)}}function Hf(n){const t=n.slice(),e=[0];let s,i,r,o,a;const l=n.length;for(s=0;s<l;s++){const c=n[s];if(c!==0){if(i=e[e.length-1],n[i]<c){t[s]=i,e.push(s);continue}for(r=0,o=e.length-1;r<o;)a=r+o>>1,n[e[a]]<c?r=a+1:o=a;c<n[e[r]]&&(r>0&&(t[s]=e[r-1]),e[r]=s)}}for(r=e.length,o=e[r-1];r-- >0;)e[r]=o,o=t[o];return e}function Il(n){const t=n.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Il(t)}const Bf=n=>n.__isTeleport,Ot=Symbol.for("v-fgt"),ys=Symbol.for("v-txt"),xe=Symbol.for("v-cmt"),yi=Symbol.for("v-stc"),bs=[];let Me=null;function R(n=!1){bs.push(Me=n?null:[])}function Uf(){bs.pop(),Me=bs[bs.length-1]||null}let xs=1;function Dl(n){xs+=n}function Ml(n){return n.dynamicChildren=xs>0?Me||Hn:null,Uf(),xs>0&&Me&&Me.push(n),n}function j(n,t,e,s,i,r){return Ml(k(n,t,e,s,i,r,!0))}function ue(n,t,e,s,i){return Ml(ot(n,t,e,s,i,!0))}function qn(n){return n?n.__v_isVNode===!0:!1}function ws(n,t){return{}.NODE_ENV!=="production"&&t.shapeFlag&6&&Yn.has(t.type)?(n.shapeFlag&=-257,t.shapeFlag&=-513,!1):n.type===t.type&&n.key===t.key}const Yf=(...n)=>Rl(...n),Al=({key:n})=>n??null,bi=({ref:n,ref_key:t,ref_for:e})=>(typeof n=="number"&&(n=""+n),n!=null?Bt(n)||se(n)||ut(n)?{i:Ut,r:n,k:t,f:!!e}:n:null);function k(n,t=null,e=null,s=0,i=null,r=n===Ot?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:n,props:t,key:t&&Al(t),ref:t&&bi(t),scopeId:ui,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:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Ut};return a?(Xr(l,e),r&128&&n.normalize(l)):e&&(l.shapeFlag|=Bt(e)?8:16),{}.NODE_ENV!=="production"&&l.key!==l.key&&B("VNode created with invalid key (NaN). VNode type:",l.type),xs>0&&!o&&Me&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&Me.push(l),l}const ot={}.NODE_ENV!=="production"?Yf:Rl;function Rl(n,t=null,e=null,s=0,i=null,r=!1){if((!n||n===qh)&&({}.NODE_ENV!=="production"&&!n&&B(`Invalid vnode type when creating vnode: ${n}.`),n=xe),qn(n)){const a=vn(n,t,!0);return e&&Xr(a,e),xs>0&&!r&&Me&&(a.shapeFlag&6?Me[Me.indexOf(n)]=a:Me.push(a)),a.patchFlag|=-2,a}if(Bl(n)&&(n=n.__vccOpts),t){t=Xf(t);let{class:a,style:l}=t;a&&!Bt(a)&&(t.class=ye(a)),kt(l)&&(br(l)&&!ct(l)&&(l=Gt({},l)),t.style=q(l))}const o=Bt(n)?1:Zh(n)?128:Bf(n)?64:kt(n)?4:ut(n)?2:0;return{}.NODE_ENV!=="production"&&o&4&&br(n)&&(n=gt(n),B("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
22
|
+
Component that was made reactive: `,n)),k(n,t,e,s,i,o,r,!0)}function Xf(n){return n?br(n)||yl(n)?Gt({},n):n:null}function vn(n,t,e=!1){const{props:s,ref:i,patchFlag:r,children:o}=n,a=t?Wr(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:n.type,props:a,key:a&&Al(a),ref:t&&t.ref?e&&i?ct(i)?i.concat(bi(t)):[i,bi(t)]:bi(t):i,scopeId:n.scopeId,slotScopeIds:n.slotScopeIds,children:{}.NODE_ENV!=="production"&&r===-1&&ct(o)?o.map($l):o,target:n.target,targetAnchor:n.targetAnchor,staticCount:n.staticCount,shapeFlag:n.shapeFlag,patchFlag:t&&n.type!==Ot?r===-1?16:r|16:r,dynamicProps:n.dynamicProps,dynamicChildren:n.dynamicChildren,appContext:n.appContext,dirs:n.dirs,transition:n.transition,component:n.component,suspense:n.suspense,ssContent:n.ssContent&&vn(n.ssContent),ssFallback:n.ssFallback&&vn(n.ssFallback),el:n.el,anchor:n.anchor,ctx:n.ctx,ce:n.ce}}function $l(n){const t=vn(n);return ct(n.children)&&(t.children=n.children.map($l)),t}function Yt(n=" ",t=0){return ot(ys,null,n,t)}function Xt(n="",t=!1){return t?(R(),ue(xe,null,n)):ot(xe,null,n)}function Ae(n){return n==null||typeof n=="boolean"?ot(xe):ct(n)?ot(Ot,null,n.slice()):typeof n=="object"?_n(n):ot(ys,null,String(n))}function _n(n){return n.el===null&&n.patchFlag!==-1||n.memo?n:vn(n)}function Xr(n,t){let e=0;const{shapeFlag:s}=n;if(t==null)t=null;else if(ct(t))e=16;else if(typeof t=="object")if(s&65){const i=t.default;i&&(i._c&&(i._d=!1),Xr(n,i()),i._c&&(i._d=!0));return}else{e=32;const i=t._;!i&&!yl(t)?t._ctx=Ut:i===3&&Ut&&(Ut.slots._===1?t._=1:(t._=2,n.patchFlag|=1024))}else ut(t)?(t={default:t,_ctx:Ut},e=32):(t=String(t),s&64?(e=16,t=[Yt(t)]):e=8);n.children=t,n.shapeFlag|=e}function Wr(...n){const t={};for(let e=0;e<n.length;e++){const s=n[e];for(const i in s)if(i==="class")t.class!==s.class&&(t.class=ye([t.class,s.class]));else if(i==="style")t.style=q([t.style,s.style]);else if(rs(i)){const r=t[i],o=s[i];o&&r!==o&&!(ct(r)&&r.includes(o))&&(t[i]=r?[].concat(r,o):o)}else i!==""&&(t[i]=s[i])}return t}function He(n,t,e,s=null){De(n,t,7,[e,s])}const Wf=gl();let qf=0;function Kf(n,t,e){const s=n.type,i=(t?t.appContext:n.appContext)||Wf,r={uid:qf++,vnode:n,type:s,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Xu(!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:xl(s,i),emitsOptions:tl(s,i),emit:null,emitted:null,propsDefaults:It,inheritAttrs:s.inheritAttrs,ctx:It,data:It,props:It,attrs:It,slots:It,refs:It,setupState:It,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=pf(r):r.ctx={_:r},r.root=t?t.root:r,r.emit=Hh.bind(null,r),n.ce&&n.ce(r),r}let qt=null;const Ll=()=>qt||Ut;let xi,qr;{const n=ur(),t=(e,s)=>{let i;return(i=n[e])||(i=n[e]=[]),i.push(s),r=>{i.length>1?i.forEach(o=>o(r)):i[0](r)}};xi=t("__VUE_INSTANCE_SETTERS__",e=>qt=e),qr=t("__VUE_SSR_SETTERS__",e=>wi=e)}const Es=n=>{const t=qt;return xi(n),n.scope.on(),()=>{n.scope.off(),xi(t)}},Fl=()=>{qt&&qt.scope.off(),xi(null)},Zf=Fe("slot,component");function Kr(n,{isNativeTag:t}){(Zf(n)||t(n))&&B("Do not use built-in or reserved HTML elements as component id: "+n)}function Vl(n){return n.vnode.shapeFlag&4}let wi=!1;function Qf(n,t=!1){t&&qr(t);const{props:e,children:s}=n.vnode,i=Vl(n);Pf(n,e,i,t),Lf(n,s);const r=i?Jf(n,t):void 0;return t&&qr(!1),r}function Jf(n,t){var e;const s=n.type;if({}.NODE_ENV!=="production"){if(s.name&&Kr(s.name,n.appContext.config),s.components){const r=Object.keys(s.components);for(let o=0;o<r.length;o++)Kr(r[o],n.appContext.config)}if(s.directives){const r=Object.keys(s.directives);for(let o=0;o<r.length;o++)al(r[o])}s.compilerOptions&&td()&&B('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}n.accessCache=Object.create(null),n.proxy=new Proxy(n.ctx,ul),{}.NODE_ENV!=="production"&&mf(n);const{setup:i}=s;if(i){const r=n.setupContext=i.length>1?Hl(n):null,o=Es(n);Xe();const a=Ke(i,n,0,[{}.NODE_ENV!=="production"?qe(n.props):n.props,r]);if(We(),o(),ar(a)){if(a.then(Fl,Fl),t)return a.then(l=>{Gl(n,l,t)}).catch(l=>{cs(l,n,0)});if(n.asyncDep=a,{}.NODE_ENV!=="production"&&!n.suspense){const l=(e=s.name)!=null?e:"Anonymous";B(`Component <${l}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else Gl(n,a,t)}else zl(n,t)}function Gl(n,t,e){ut(t)?n.type.__ssrInlineRender?n.ssrRender=t:n.render=t:kt(t)?({}.NODE_ENV!=="production"&&qn(t)&&B("setup() should not return VNodes directly - return a render function instead."),{}.NODE_ENV!=="production"&&(n.devtoolsRawSetupState=t),n.setupState=Ga(t),{}.NODE_ENV!=="production"&&gf(n)):{}.NODE_ENV!=="production"&&t!==void 0&&B(`setup() should return an object. Received: ${t===null?"null":typeof t}`),zl(n,e)}let Zr;const td=()=>!Zr;function zl(n,t,e){const s=n.type;if(!n.render){if(!t&&Zr&&!s.render){const i=s.template||Gr(n).template;if(i){({}).NODE_ENV!=="production"&&Je(n,"compile");const{isCustomElement:r,compilerOptions:o}=n.appContext.config,{delimiters:a,compilerOptions:l}=s,c=Gt(Gt({isCustomElement:r,delimiters:a},o),l);s.render=Zr(i,c),{}.NODE_ENV!=="production"&&tn(n,"compile")}}n.render=s.render||Ht}{const i=Es(n);Xe();try{bf(n)}finally{We(),i()}}({}).NODE_ENV!=="production"&&!s.render&&n.render===Ht&&!t&&(s.template?B('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):B("Component is missing template or render function."))}const jl={}.NODE_ENV!=="production"?{get(n,t){return fi(),ne(n,"get",""),n[t]},set(){return B("setupContext.attrs is readonly."),!1},deleteProperty(){return B("setupContext.attrs is readonly."),!1}}:{get(n,t){return ne(n,"get",""),n[t]}};function ed(n){return n.slotsProxy||(n.slotsProxy=new Proxy(n.slots,{get(t,e){return ne(n,"get","$slots"),t[e]}}))}function Hl(n){const t=e=>{if({}.NODE_ENV!=="production"&&(n.exposed&&B("expose() should be called only once per setup()."),e!=null)){let s=typeof e;s==="object"&&(ct(e)?s="array":se(e)&&(s="ref")),s!=="object"&&B(`expose() should be passed a plain object, received ${s}.`)}n.exposed=e||{}};if({}.NODE_ENV!=="production"){let e;return Object.freeze({get attrs(){return e||(e=new Proxy(n.attrs,jl))},get slots(){return ed(n)},get emit(){return(s,...i)=>n.emit(s,...i)},expose:t})}else return{attrs:new Proxy(n.attrs,jl),slots:n.slots,emit:n.emit,expose:t}}function Ei(n){if(n.exposed)return n.exposeProxy||(n.exposeProxy=new Proxy(Ga(gh(n.exposed)),{get(t,e){if(e in t)return t[e];if(e in $n)return $n[e](n)},has(t,e){return e in t||e in $n}}))}const nd=/(?:^|[-_])(\w)/g,sd=n=>n.replace(nd,t=>t.toUpperCase()).replace(/[-_]/g,"");function Qr(n,t=!0){return ut(n)?n.displayName||n.name:n.name||t&&n.__name}function Ci(n,t,e=!1){let s=Qr(t);if(!s&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(s=i[1])}if(!s&&n&&n.parent){const i=r=>{for(const o in r)if(r[o]===t)return o};s=i(n.components||n.parent.type.components)||i(n.appContext.components)}return s?sd(s):e?"App":"Anonymous"}function Bl(n){return ut(n)&&"__vccOpts"in n}const id=(n,t)=>{const e=_h(n,t,wi);if({}.NODE_ENV!=="production"){const s=Ll();s&&s.appContext.config.warnRecursiveComputed&&(e._warnRecursive=!0)}return e};function we(n,t,e){const s=arguments.length;return s===2?kt(t)&&!ct(t)?qn(t)?ot(n,null,[t]):ot(n,t):ot(n,null,t):(s>3?e=Array.prototype.slice.call(arguments,2):s===3&&qn(e)&&(e=[e]),ot(n,t,e))}function rd(){if({}.NODE_ENV==="production"||typeof window>"u")return;const n={style:"color:#3ba776"},t={style:"color:#1677ff"},e={style:"color:#f5222d"},s={style:"color:#eb2f96"},i={header(h){return kt(h)?h.__isVue?["div",n,"VueInstance"]:se(h)?["div",{},["span",n,u(h)],"<",a(h.value),">"]:Bn(h)?["div",{},["span",n,Nn(h)?"ShallowReactive":"Reactive"],"<",a(h),`>${On(h)?" (readonly)":""}`]:On(h)?["div",{},["span",n,Nn(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",gt(h.props))),h.setupState!==It&&f.push(o("setup",h.setupState)),h.data!==It&&f.push(o("data",gt(h.data)));const p=l(h,"computed");p&&f.push(o("computed",p));const m=l(h,"inject");return m&&f.push(o("injected",m)),f.push(["div",{},["span",{style:s.style+";opacity:0.66"},"$ (internal): "],["object",{object:h}]]),f}function o(h,f){return f=Gt({},f),Object.keys(f).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},h],["div",{style:"padding-left:1.25em"},...Object.keys(f).map(p=>["div",{},["span",s,p+": "],a(f[p],!1)])]]:["span",{}]}function a(h,f=!0){return typeof h=="number"?["span",t,h]:typeof h=="string"?["span",e,JSON.stringify(h)]:typeof h=="boolean"?["span",s,h]:kt(h)?["object",{object:f?gt(h):h}]:["span",e,String(h)]}function l(h,f){const p=h.type;if(ut(p))return;const m={};for(const v in h.ctx)c(p,v,f)&&(m[v]=h.ctx[v]);return m}function c(h,f,p){const m=h[p];if(ct(m)&&m.includes(f)||kt(m)&&f in m||h.extends&&c(h.extends,f,p)||h.mixins&&h.mixins.some(v=>c(v,f,p)))return!0}function u(h){return Nn(h)?"ShallowRef":h.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(i):window.devtoolsFormatters=[i]}const Ul="3.4.25",Jr={}.NODE_ENV!=="production"?B:Ht;/**
|
|
21
23
|
* @vue/runtime-dom v3.4.25
|
|
22
24
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
23
25
|
* @license MIT
|
|
24
|
-
**/const
|
|
26
|
+
**/const od="http://www.w3.org/2000/svg",ad="http://www.w3.org/1998/Math/MathML",yn=typeof document<"u"?document:null,Yl=yn&&yn.createElement("template"),ld={insert:(n,t,e)=>{t.insertBefore(n,e||null)},remove:n=>{const t=n.parentNode;t&&t.removeChild(n)},createElement:(n,t,e,s)=>{const i=t==="svg"?yn.createElementNS(od,n):t==="mathml"?yn.createElementNS(ad,n):yn.createElement(n,e?{is:e}:void 0);return n==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:n=>yn.createTextNode(n),createComment:n=>yn.createComment(n),setText:(n,t)=>{n.nodeValue=t},setElementText:(n,t)=>{n.textContent=t},parentNode:n=>n.parentNode,nextSibling:n=>n.nextSibling,querySelector:n=>yn.querySelector(n),setScopeId(n,t){n.setAttribute(t,"")},insertStaticContent(n,t,e,s,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{Yl.innerHTML=s==="svg"?`<svg>${n}</svg>`:s==="mathml"?`<math>${n}</math>`:n;const a=Yl.content;if(s==="svg"||s==="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]}},cd=Symbol("_vtc");function ud(n,t,e){const s=n[cd];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?n.removeAttribute("class"):e?n.setAttribute("class",t):n.className=t}const Si=Symbol("_vod"),Xl=Symbol("_vsh"),Ti={beforeMount(n,{value:t},{transition:e}){n[Si]=n.style.display==="none"?"":n.style.display,e&&t?e.beforeEnter(n):Cs(n,t)},mounted(n,{value:t},{transition:e}){e&&t&&e.enter(n)},updated(n,{value:t,oldValue:e},{transition:s}){!t!=!e&&(s?t?(s.beforeEnter(n),Cs(n,!0),s.enter(n)):s.leave(n,()=>{Cs(n,!1)}):Cs(n,t))},beforeUnmount(n,{value:t}){Cs(n,t)}};({}).NODE_ENV!=="production"&&(Ti.name="show");function Cs(n,t){n.style.display=t?n[Si]:"none",n[Xl]=!t}const hd=Symbol({}.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),fd=/(^|;)\s*display\s*:/;function dd(n,t,e){const s=n.style,i=Bt(e);let r=!1;if(e&&!i){if(t)if(Bt(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();e[a]==null&&ki(s,a,"")}else for(const o in t)e[o]==null&&ki(s,o,"");for(const o in e)o==="display"&&(r=!0),ki(s,o,e[o])}else if(i){if(t!==e){const o=s[hd];o&&(e+=";"+o),s.cssText=e,r=fd.test(e)}}else t&&n.removeAttribute("style");Si in n&&(n[Si]=r?s.display:"",n[Xl]&&(s.display="none"))}const pd=/[^\\];\s*$/,Wl=/\s*!important$/;function ki(n,t,e){if(ct(e))e.forEach(s=>ki(n,t,s));else if(e==null&&(e=""),{}.NODE_ENV!=="production"&&pd.test(e)&&Jr(`Unexpected semicolon at the end of '${t}' style value: '${e}'`),t.startsWith("--"))n.setProperty(t,e);else{const s=md(n,t);Wl.test(e)?n.setProperty(cn(s),e.replace(Wl,""),"important"):n[s]=e}}const ql=["Webkit","Moz","ms"],to={};function md(n,t){const e=to[t];if(e)return e;let s=Ve(t);if(s!=="filter"&&s in n)return to[t]=s;s=Sn(s);for(let i=0;i<ql.length;i++){const r=ql[i]+s;if(r in n)return to[t]=r}return t}const Kl="http://www.w3.org/1999/xlink";function gd(n,t,e,s,i){if(s&&t.startsWith("xlink:"))e==null?n.removeAttributeNS(Kl,t.slice(6,t.length)):n.setAttributeNS(Kl,t,e);else{const r=Yu(t);e==null||r&&!pa(e)?n.removeAttribute(t):n.setAttribute(t,r?"":e)}}function vd(n,t,e,s,i,r,o){if(t==="innerHTML"||t==="textContent"){s&&o(s,i,r),n[t]=e??"";return}const a=n.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const c=a==="OPTION"?n.getAttribute("value")||"":n.value,u=e??"";(c!==u||!("_value"in n))&&(n.value=u),e==null&&n.removeAttribute(t),n._value=e;return}let l=!1;if(e===""||e==null){const c=typeof n[t];c==="boolean"?e=pa(e):e==null&&c==="string"?(e="",l=!0):c==="number"&&(e=0,l=!0)}try{n[t]=e}catch(c){({}).NODE_ENV!=="production"&&!l&&Jr(`Failed setting prop "${t}" on <${a.toLowerCase()}>: value ${e} is invalid.`,c)}l&&n.removeAttribute(t)}function _d(n,t,e,s){n.addEventListener(t,e,s)}function yd(n,t,e,s){n.removeEventListener(t,e,s)}const Zl=Symbol("_vei");function bd(n,t,e,s,i=null){const r=n[Zl]||(n[Zl]={}),o=r[t];if(s&&o)o.value={}.NODE_ENV!=="production"?Jl(s,t):s;else{const[a,l]=xd(t);if(s){const c=r[t]=Cd({}.NODE_ENV!=="production"?Jl(s,t):s,i);_d(n,a,c,l)}else o&&(yd(n,a,o,l),r[t]=void 0)}}const Ql=/(?:Once|Passive|Capture)$/;function xd(n){let t;if(Ql.test(n)){t={};let s;for(;s=n.match(Ql);)n=n.slice(0,n.length-s[0].length),t[s[0].toLowerCase()]=!0}return[n[2]===":"?n.slice(3):cn(n.slice(2)),t]}let eo=0;const wd=Promise.resolve(),Ed=()=>eo||(wd.then(()=>eo=0),eo=Date.now());function Cd(n,t){const e=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=e.attached)return;De(Sd(s,e.value),t,5,[s])};return e.value=n,e.attached=Ed(),e}function Jl(n,t){return ut(n)||ct(n)?n:(Jr(`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 n}.`),Ht)}function Sd(n,t){if(ct(t)){const e=n.stopImmediatePropagation;return n.stopImmediatePropagation=()=>{e.call(n),n._stopped=!0},t.map(s=>i=>!i._stopped&&s&&s(i))}else return t}const tc=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)>96&&n.charCodeAt(2)<123,Td=(n,t,e,s,i,r,o,a,l)=>{const c=i==="svg";t==="class"?ud(n,s,c):t==="style"?dd(n,e,s):rs(t)?Ws(t)||bd(n,t,e,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):kd(n,t,s,c))?vd(n,t,s,r,o,a,l):(t==="true-value"?n._trueValue=s:t==="false-value"&&(n._falseValue=s),gd(n,t,s,c))};function kd(n,t,e,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in n&&tc(t)&&ut(e));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&n.tagName==="INPUT"||t==="type"&&n.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=n.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return tc(t)&&Bt(e)?!1:t in n}const Pd=Gt({patchProp:Td},ld);let ec;function Od(){return ec||(ec=Gf(Pd))}const Pi=(...n)=>{Od().render(...n)};/**
|
|
25
28
|
* vue v3.4.25
|
|
26
29
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
27
30
|
* @license MIT
|
|
28
|
-
**/function ef(){Jh()}({}).NODE_ENV!=="production"&&ef();const qr=/^[a-z0-9]+(-[a-z0-9]+)*$/,Li=(e,t,n,r="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const a=i.pop(),u=i.pop(),d={provider:i.length>0?i[0]:r,prefix:u,name:a};return t&&!Ri(d)?null:d}const s=i[0],o=s.split("-");if(o.length>1){const a={provider:r,prefix:o.shift(),name:o.join("-")};return t&&!Ri(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:s};return t&&!Ri(a,n)?null:a}return null},Ri=(e,t)=>e?!!((e.provider===""||e.provider.match(qr))&&(t&&e.prefix===""||e.prefix.match(qr))&&e.name.match(qr)):!1,vl=Object.freeze({left:0,top:0,width:16,height:16}),Fi=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Di=Object.freeze({...vl,...Fi}),Zs=Object.freeze({...Di,body:"",hidden:!1});function nf(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function yl(e,t){const n=nf(e,t);for(const r in Zs)r in Fi?r in e&&!(r in n)&&(n[r]=Fi[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function rf(e,t){const n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function s(o){if(n[o])return i[o]=[];if(!(o in i)){i[o]=null;const a=r[o]&&r[o].parent,u=a&&s(a);u&&(i[o]=[a].concat(u))}return i[o]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(s),i}function sf(e,t,n){const r=e.icons,i=e.aliases||Object.create(null);let s={};function o(a){s=yl(r[a]||i[a],s)}return o(t),n.forEach(o),yl(e,s)}function _l(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),n.push(i)});const r=rf(e);for(const i in r){const s=r[i];s&&(t(i,sf(e,i,s)),n.push(i))}return n}const of={provider:"",aliases:{},not_found:{},...vl};function Qs(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function xl(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Qs(e,of))return null;const n=t.icons;for(const i in n){const s=n[i];if(!i.match(qr)||typeof s.body!="string"||!Qs(s,Zs))return null}const r=t.aliases||Object.create(null);for(const i in r){const s=r[i],o=s.parent;if(!i.match(qr)||typeof o!="string"||!n[o]&&!r[o]||!Qs(s,Zs))return null}return t}const wl=Object.create(null);function af(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function qn(e,t){const n=wl[e]||(wl[e]=Object.create(null));return n[t]||(n[t]=af(e,t))}function Js(e,t){return xl(t)?_l(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function lf(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Yr=!1;function bl(e){return typeof e=="boolean"&&(Yr=e),Yr}function cf(e){const t=typeof e=="string"?Li(e,!0,Yr):e;if(t){const n=qn(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function uf(e,t){const n=Li(e,!0,Yr);if(!n)return!1;const r=qn(n.provider,n.prefix);return lf(r,n.name,t)}function hf(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Yr&&!t&&!e.prefix){let i=!1;return xl(e)&&(e.prefix="",_l(e,(s,o)=>{o&&uf(s,o)&&(i=!0)})),i}const n=e.prefix;if(!Ri({provider:t,prefix:n,name:"a"}))return!1;const r=qn(t,n);return!!Js(r,e)}const El=Object.freeze({width:null,height:null}),Tl=Object.freeze({...El,...Fi}),ff=/(-?[0-9.]*[0-9]+[0-9.]*)/g,df=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Cl(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(ff);if(r===null||!r.length)return e;const i=[];let s=r.shift(),o=df.test(s);for(;;){if(o){const a=parseFloat(s);isNaN(a)?i.push(s):i.push(Math.ceil(a*t*n)/n)}else i.push(s);if(s=r.shift(),s===void 0)return i.join("");o=!o}}function pf(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const i=e.indexOf(">",r),s=e.indexOf("</"+t);if(i===-1||s===-1)break;const o=e.indexOf(">",s);if(o===-1)break;n+=e.slice(i+1,s).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function mf(e,t){return e?"<defs>"+e+"</defs>"+t:t}function gf(e,t,n){const r=pf(e);return mf(r.defs,t+r.content+n)}const vf=e=>e==="unset"||e==="undefined"||e==="none";function yf(e,t){const n={...Di,...e},r={...Tl,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(k=>{const A=[],B=k.hFlip,M=k.vFlip;let N=k.rotate;B?M?N+=2:(A.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),A.push("scale(-1 1)"),i.top=i.left=0):M&&(A.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),A.push("scale(1 -1)"),i.top=i.left=0);let D;switch(N<0&&(N-=Math.floor(N/4)*4),N=N%4,N){case 1:D=i.height/2+i.top,A.unshift("rotate(90 "+D.toString()+" "+D.toString()+")");break;case 2:A.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:D=i.width/2+i.left,A.unshift("rotate(-90 "+D.toString()+" "+D.toString()+")");break}N%2===1&&(i.left!==i.top&&(D=i.left,i.left=i.top,i.top=D),i.width!==i.height&&(D=i.width,i.width=i.height,i.height=D)),A.length&&(s=gf(s,'<g transform="'+A.join(" ")+'">',"</g>"))});const o=r.width,a=r.height,u=i.width,d=i.height;let g,v;o===null?(v=a===null?"1em":a==="auto"?d:a,g=Cl(v,u/d)):(g=o==="auto"?u:o,v=a===null?Cl(g,d/u):a==="auto"?d:a);const y={},w=(k,A)=>{vf(A)||(y[k]=A.toString())};w("width",g),w("height",v);const I=[i.left,i.top,u,d];return y.viewBox=I.join(" "),{attributes:y,viewBox:I,body:s}}const _f=/\sid="(\S+)"/g,xf="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let wf=0;function bf(e,t=xf){const n=[];let r;for(;r=_f.exec(e);)n.push(r[1]);if(!n.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const o=typeof t=="function"?t(s):t+(wf++).toString(),a=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+o+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const to=Object.create(null);function Ef(e,t){to[e]=t}function eo(e){return to[e]||to[""]}function no(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const ro=Object.create(null),Xr=["https://api.simplesvg.com","https://api.unisvg.com"],$i=[];for(;Xr.length>0;)Xr.length===1||Math.random()>.5?$i.push(Xr.shift()):$i.push(Xr.pop());ro[""]=no({resources:["https://api.iconify.design"].concat($i)});function Tf(e,t){const n=no(t);return n===null?!1:(ro[e]=n,!0)}function io(e){return ro[e]}let Sl=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function Cf(e,t){const n=io(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let i=0;n.resources.forEach(o=>{i=Math.max(i,o.length)});const s=t+".json?icons=";r=n.maxURL-i-n.path.length-s.length}return r}function Sf(e){return e===404}const kf=(e,t,n)=>{const r=[],i=Cf(e,t),s="icons";let o={type:s,provider:e,prefix:t,icons:[]},a=0;return n.forEach((u,d)=>{a+=u.length+1,a>=i&&d>0&&(r.push(o),o={type:s,provider:e,prefix:t,icons:[]},a=u.length),o.icons.push(u)}),r.push(o),r};function Pf(e){if(typeof e=="string"){const t=io(e);if(t)return t.path}return"/"}const If={prepare:kf,send:(e,t,n)=>{if(!Sl){n("abort",424);return}let r=Pf(t.provider);switch(t.type){case"icons":{const s=t.prefix,a=t.icons.join(","),u=new URLSearchParams({icons:a});r+=s+".json?"+u.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let i=503;Sl(e+r).then(s=>{const o=s.status;if(o!==200){setTimeout(()=>{n(Sf(o)?"abort":"next",o)});return}return i=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",i)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",i)})}};function Mf(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((i,s)=>i.provider!==s.provider?i.provider.localeCompare(s.provider):i.prefix!==s.prefix?i.prefix.localeCompare(s.prefix):i.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(i=>{if(r.name===i.name&&r.prefix===i.prefix&&r.provider===i.provider)return;r=i;const s=i.provider,o=i.prefix,a=i.name,u=n[s]||(n[s]=Object.create(null)),d=u[o]||(u[o]=qn(s,o));let g;a in d.icons?g=t.loaded:o===""||d.missing.has(a)?g=t.missing:g=t.pending;const v={provider:s,prefix:o,name:a};g.push(v)}),t}function kl(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==t))})}function Nf(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,i=e.prefix;t.forEach(s=>{const o=s.icons,a=o.pending.length;o.pending=o.pending.filter(u=>{if(u.prefix!==i)return!0;const d=u.name;if(e.icons[d])o.loaded.push({provider:r,prefix:i,name:d});else if(e.missing.has(d))o.missing.push({provider:r,prefix:i,name:d});else return n=!0,!0;return!1}),o.pending.length!==a&&(n||kl([e],s.id),s.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),s.abort))})}))}let Af=0;function Of(e,t,n){const r=Af++,i=kl.bind(null,n,r);if(!t.pending.length)return i;const s={id:r,icons:t,callback:e,abort:i};return n.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(s)}),i}function Lf(e,t=!0,n=!1){const r=[];return e.forEach(i=>{const s=typeof i=="string"?Li(i,t,n):i;s&&r.push(s)}),r}var Rf={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Ff(e,t,n,r){const i=e.resources.length,s=e.random?Math.floor(Math.random()*i):e.index;let o;if(e.random){let H=e.resources.slice(0);for(o=[];H.length>1;){const F=Math.floor(Math.random()*H.length);o.push(H[F]),H=H.slice(0,F).concat(H.slice(F+1))}o=o.concat(H)}else o=e.resources.slice(s).concat(e.resources.slice(0,s));const a=Date.now();let u="pending",d=0,g,v=null,y=[],w=[];typeof r=="function"&&w.push(r);function I(){v&&(clearTimeout(v),v=null)}function k(){u==="pending"&&(u="aborted"),I(),y.forEach(H=>{H.status==="pending"&&(H.status="aborted")}),y=[]}function A(H,F){F&&(w=[]),typeof H=="function"&&w.push(H)}function B(){return{startTime:a,payload:t,status:u,queriesSent:d,queriesPending:y.length,subscribe:A,abort:k}}function M(){u="failed",w.forEach(H=>{H(void 0,g)})}function N(){y.forEach(H=>{H.status==="pending"&&(H.status="aborted")}),y=[]}function D(H,F,it){const ut=F!=="success";switch(y=y.filter(_t=>_t!==H),u){case"pending":break;case"failed":if(ut||!e.dataAfterTimeout)return;break;default:return}if(F==="abort"){g=it,M();return}if(ut){g=it,y.length||(o.length?U():M());return}if(I(),N(),!e.random){const _t=e.resources.indexOf(H.resource);_t!==-1&&_t!==e.index&&(e.index=_t)}u="completed",w.forEach(_t=>{_t(it)})}function U(){if(u!=="pending")return;I();const H=o.shift();if(H===void 0){if(y.length){v=setTimeout(()=>{I(),u==="pending"&&(N(),M())},e.timeout);return}M();return}const F={status:"pending",resource:H,callback:(it,ut)=>{D(F,it,ut)}};y.push(F),d++,v=setTimeout(U,e.rotate),n(H,t,F.callback)}return setTimeout(U),B}function Pl(e){const t={...Rf,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function i(a,u,d){const g=Ff(t,a,u,(v,y)=>{r(),d&&d(v,y)});return n.push(g),g}function s(a){return n.find(u=>a(u))||null}return{query:i,find:s,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function Il(){}const so=Object.create(null);function Df(e){if(!so[e]){const t=io(e);if(!t)return;const n=Pl(t),r={config:t,redundancy:n};so[e]=r}return so[e]}function $f(e,t,n){let r,i;if(typeof e=="string"){const s=eo(e);if(!s)return n(void 0,424),Il;i=s.send;const o=Df(e);o&&(r=o.redundancy)}else{const s=no(e);if(s){r=Pl(s);const o=e.resources?e.resources[0]:"",a=eo(o);a&&(i=a.send)}}return!r||!i?(n(void 0,424),Il):r.query(t,i,n)().abort}const Ml="iconify2",Kr="iconify",Nl=Kr+"-count",Al=Kr+"-version",Ol=36e5,zf=168,Bf=50;function oo(e,t){try{return e.getItem(t)}catch{}}function ao(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Ll(e,t){try{e.removeItem(t)}catch{}}function lo(e,t){return ao(e,Nl,t.toString())}function co(e){return parseInt(oo(e,Nl))||0}const zi={local:!0,session:!0},Rl={local:new Set,session:new Set};let uo=!1;function Gf(e){uo=e}let Bi=typeof window>"u"?{}:window;function Fl(e){const t=e+"Storage";try{if(Bi&&Bi[t]&&typeof Bi[t].length=="number")return Bi[t]}catch{}zi[e]=!1}function Dl(e,t){const n=Fl(e);if(!n)return;const r=oo(n,Al);if(r!==Ml){if(r){const a=co(n);for(let u=0;u<a;u++)Ll(n,Kr+u.toString())}ao(n,Al,Ml),lo(n,0);return}const i=Math.floor(Date.now()/Ol)-zf,s=a=>{const u=Kr+a.toString(),d=oo(n,u);if(typeof d=="string"){try{const g=JSON.parse(d);if(typeof g=="object"&&typeof g.cached=="number"&&g.cached>i&&typeof g.provider=="string"&&typeof g.data=="object"&&typeof g.data.prefix=="string"&&t(g,a))return!0}catch{}Ll(n,u)}};let o=co(n);for(let a=o-1;a>=0;a--)s(a)||(a===o-1?(o--,lo(n,o)):Rl[e].add(a))}function $l(){if(!uo){Gf(!0);for(const e in zi)Dl(e,t=>{const n=t.data,r=t.provider,i=n.prefix,s=qn(r,i);if(!Js(s,n).length)return!1;const o=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,o):o,!0})}}function Vf(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in zi)Dl(r,i=>{const s=i.data;return i.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function jf(e,t){uo||$l();function n(r){let i;if(!zi[r]||!(i=Fl(r)))return;const s=Rl[r];let o;if(s.size)s.delete(o=Array.from(s).shift());else if(o=co(i),o>=Bf||!lo(i,o+1))return;const a={cached:Math.floor(Date.now()/Ol),provider:e.provider,data:t};return ao(i,Kr+o.toString(),JSON.stringify(a))}t.lastModified&&!Vf(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function zl(){}function Hf(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Nf(e)}))}function Uf(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,i=e.iconsToLoad;delete e.iconsToLoad;let s;if(!i||!(s=eo(n)))return;s.prepare(n,r,i).forEach(a=>{$f(n,a,u=>{if(typeof u!="object")a.icons.forEach(d=>{e.missing.add(d)});else try{const d=Js(e,u);if(!d.length)return;const g=e.pendingIcons;g&&d.forEach(v=>{g.delete(v)}),jf(e,u)}catch(d){console.error(d)}Hf(e)})})}))}const Wf=(e,t)=>{const n=Lf(e,!0,bl()),r=Mf(n);if(!r.pending.length){let u=!0;return t&&setTimeout(()=>{u&&t(r.loaded,r.missing,r.pending,zl)}),()=>{u=!1}}const i=Object.create(null),s=[];let o,a;return r.pending.forEach(u=>{const{provider:d,prefix:g}=u;if(g===a&&d===o)return;o=d,a=g,s.push(qn(d,g));const v=i[d]||(i[d]=Object.create(null));v[g]||(v[g]=[])}),r.pending.forEach(u=>{const{provider:d,prefix:g,name:v}=u,y=qn(d,g),w=y.pendingIcons||(y.pendingIcons=new Set);w.has(v)||(w.add(v),i[d][g].push(v))}),s.forEach(u=>{const{provider:d,prefix:g}=u;i[d][g].length&&Uf(u,i[d][g])}),t?Of(t,r,s):zl};function qf(e,t){const n={...e};for(const r in t){const i=t[r],s=typeof i;r in El?(i===null||i&&(s==="string"||s==="number"))&&(n[r]=i):s===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const Yf=/[\s,]+/;function Xf(e,t){t.split(Yf).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Kf(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(i){for(;i<0;)i+=4;return i%4}if(n===""){const i=parseInt(e);return isNaN(i)?0:r(i)}else if(n!==e){let i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/i,s%1===0?r(s):0)}}return t}function Zf(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function Qf(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Jf(e){return"data:image/svg+xml,"+Qf(e)}function td(e){return'url("'+Jf(e)+'")'}const Bl={...Tl,inline:!1},ed={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},nd={display:"inline-block"},ho={backgroundColor:"currentColor"},Gl={backgroundColor:"transparent"},Vl={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},jl={webkitMask:ho,mask:ho,background:Gl};for(const e in jl){const t=jl[e];for(const n in Vl)t[e+n]=Vl[n]}const Gi={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Gi[e+"-flip"]=t,Gi[e.slice(0,1)+"-flip"]=t,Gi[e+"Flip"]=t});function Hl(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Ul=(e,t)=>{const n=qf(Bl,t),r={...ed},i=t.mode||"svg",s={},o=t.style,a=typeof o=="object"&&!(o instanceof Array)?o:{};for(let k in t){const A=t[k];if(A!==void 0)switch(k){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[k]=A===!0||A==="true"||A===1;break;case"flip":typeof A=="string"&&Xf(n,A);break;case"color":s.color=A;break;case"rotate":typeof A=="string"?n[k]=Kf(A):typeof A=="number"&&(n[k]=A);break;case"ariaHidden":case"aria-hidden":A!==!0&&A!=="true"&&delete r["aria-hidden"];break;default:{const B=Gi[k];B?(A===!0||A==="true"||A===1)&&(n[B]=!0):Bl[k]===void 0&&(r[k]=A)}}}const u=yf(e,n),d=u.attributes;if(n.inline&&(s.verticalAlign="-0.125em"),i==="svg"){r.style={...s,...a},Object.assign(r,d);let k=0,A=t.id;return typeof A=="string"&&(A=A.replace(/-/g,"_")),r.innerHTML=bf(u.body,A?()=>A+"ID"+k++:"iconifyVue"),ml("svg",r)}const{body:g,width:v,height:y}=e,w=i==="mask"||(i==="bg"?!1:g.indexOf("currentColor")!==-1),I=Zf(g,{...d,width:v+"",height:y+""});return r.style={...s,"--svg":td(I),width:Hl(d.width),height:Hl(d.height),...nd,...w?ho:Gl,...a},ml("span",r)};if(bl(!0),Ef("",If),typeof document<"u"&&typeof window<"u"){$l();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!hf(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const i=t[n];if(typeof i!="object"||!i||i.resources===void 0)continue;Tf(n,i)||console.error(r)}catch{console.error(r)}}}}const rd={...Di,body:""},id=$t({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(e,t){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let n;if(typeof e!="string"||(n=Li(e,!1,!0))===null)return this.abortLoading(),null;const r=cf(n);if(!r)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",r!==null&&(this._loadingIcon={name:e,abort:Wf([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const i=["iconify"];return n.prefix!==""&&i.push("iconify--"+n.prefix),n.provider!==""&&i.push("iconify--"+n.provider),{data:r,classes:i}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad):null;if(!t)return Ul(rd,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),Ul({...Di,...t.data},n)}}),Vi=typeof window=="object"&&typeof document=="object";typeof process<"u"&&process.versions!=null&&process.versions.node!=null;const Wl=e=>{let t=null;switch(e){case"bin":t=/^[0-1]+$/;break;case"oct":t=/^(0b)?[0-7]+$/i;break;case"hex":t=/^(0x)?[0-9a-fA-F]+$/i;break;case"int":t=/^[-+]?[0-9]+$/;break;case"number":t=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;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"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"hex-color":t=/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;break;case"chinese-name":t=/^(?:[\u4e00-\u9fa5·]{2,16})$/;break;case"chinese":t=new RegExp(String.raw`
|
|
31
|
+
**/function Nd(){rd()}({}).NODE_ENV!=="production"&&Nd();const Ss=/^[a-z0-9]+(-[a-z0-9]+)*$/,Oi=(n,t,e,s="")=>{const i=n.split(":");if(n.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;s=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const a=i.pop(),l=i.pop(),c={provider:i.length>0?i[0]:s,prefix:l,name:a};return t&&!Ni(c)?null:c}const r=i[0],o=r.split("-");if(o.length>1){const a={provider:s,prefix:o.shift(),name:o.join("-")};return t&&!Ni(a)?null:a}if(e&&s===""){const a={provider:s,prefix:"",name:r};return t&&!Ni(a,e)?null:a}return null},Ni=(n,t)=>n?!!((n.provider===""||n.provider.match(Ss))&&(t&&n.prefix===""||n.prefix.match(Ss))&&n.name.match(Ss)):!1,nc=Object.freeze({left:0,top:0,width:16,height:16}),Ii=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Di=Object.freeze({...nc,...Ii}),no=Object.freeze({...Di,body:"",hidden:!1});function Id(n,t){const e={};!n.hFlip!=!t.hFlip&&(e.hFlip=!0),!n.vFlip!=!t.vFlip&&(e.vFlip=!0);const s=((n.rotate||0)+(t.rotate||0))%4;return s&&(e.rotate=s),e}function sc(n,t){const e=Id(n,t);for(const s in no)s in Ii?s in n&&!(s in e)&&(e[s]=Ii[s]):s in t?e[s]=t[s]:s in n&&(e[s]=n[s]);return e}function Dd(n,t){const e=n.icons,s=n.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=s[o]&&s[o].parent,l=a&&r(a);l&&(i[o]=[a].concat(l))}return i[o]}return(t||Object.keys(e).concat(Object.keys(s))).forEach(r),i}function Md(n,t,e){const s=n.icons,i=n.aliases||Object.create(null);let r={};function o(a){r=sc(s[a]||i[a],r)}return o(t),e.forEach(o),sc(n,r)}function ic(n,t){const e=[];if(typeof n!="object"||typeof n.icons!="object")return e;n.not_found instanceof Array&&n.not_found.forEach(i=>{t(i,null),e.push(i)});const s=Dd(n);for(const i in s){const r=s[i];r&&(t(i,Md(n,i,r)),e.push(i))}return e}const Ad={provider:"",aliases:{},not_found:{},...nc};function so(n,t){for(const e in t)if(e in n&&typeof n[e]!=typeof t[e])return!1;return!0}function rc(n){if(typeof n!="object"||n===null)return null;const t=n;if(typeof t.prefix!="string"||!n.icons||typeof n.icons!="object"||!so(n,Ad))return null;const e=t.icons;for(const i in e){const r=e[i];if(!i.match(Ss)||typeof r.body!="string"||!so(r,no))return null}const s=t.aliases||Object.create(null);for(const i in s){const r=s[i],o=r.parent;if(!i.match(Ss)||typeof o!="string"||!e[o]&&!s[o]||!so(r,no))return null}return t}const oc=Object.create(null);function Rd(n,t){return{provider:n,prefix:t,icons:Object.create(null),missing:new Set}}function Fn(n,t){const e=oc[n]||(oc[n]=Object.create(null));return e[t]||(e[t]=Rd(n,t))}function io(n,t){return rc(t)?ic(t,(e,s)=>{s?n.icons[e]=s:n.missing.add(e)}):[]}function $d(n,t,e){try{if(typeof e.body=="string")return n.icons[t]={...e},!0}catch{}return!1}let Ts=!1;function ac(n){return typeof n=="boolean"&&(Ts=n),Ts}function Ld(n){const t=typeof n=="string"?Oi(n,!0,Ts):n;if(t){const e=Fn(t.provider,t.prefix),s=t.name;return e.icons[s]||(e.missing.has(s)?null:void 0)}}function Fd(n,t){const e=Oi(n,!0,Ts);if(!e)return!1;const s=Fn(e.provider,e.prefix);return $d(s,e.name,t)}function Vd(n,t){if(typeof n!="object")return!1;if(typeof t!="string"&&(t=n.provider||""),Ts&&!t&&!n.prefix){let i=!1;return rc(n)&&(n.prefix="",ic(n,(r,o)=>{o&&Fd(r,o)&&(i=!0)})),i}const e=n.prefix;if(!Ni({provider:t,prefix:e,name:"a"}))return!1;const s=Fn(t,e);return!!io(s,n)}const lc=Object.freeze({width:null,height:null}),cc=Object.freeze({...lc,...Ii}),Gd=/(-?[0-9.]*[0-9]+[0-9.]*)/g,zd=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function uc(n,t,e){if(t===1)return n;if(e=e||100,typeof n=="number")return Math.ceil(n*t*e)/e;if(typeof n!="string")return n;const s=n.split(Gd);if(s===null||!s.length)return n;const i=[];let r=s.shift(),o=zd.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=s.shift(),r===void 0)return i.join("");o=!o}}function jd(n,t="defs"){let e="";const s=n.indexOf("<"+t);for(;s>=0;){const i=n.indexOf(">",s),r=n.indexOf("</"+t);if(i===-1||r===-1)break;const o=n.indexOf(">",r);if(o===-1)break;e+=n.slice(i+1,r).trim(),n=n.slice(0,s).trim()+n.slice(o+1)}return{defs:e,content:n}}function Hd(n,t){return n?"<defs>"+n+"</defs>"+t:t}function Bd(n,t,e){const s=jd(n);return Hd(s.defs,t+s.content+e)}const Ud=n=>n==="unset"||n==="undefined"||n==="none";function Yd(n,t){const e={...Di,...n},s={...cc,...t},i={left:e.left,top:e.top,width:e.width,height:e.height};let r=e.body;[e,s].forEach(v=>{const b=[],E=v.hFlip,C=v.vFlip;let w=v.rotate;E?C?w+=2:(b.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),b.push("scale(-1 1)"),i.top=i.left=0):C&&(b.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),b.push("scale(1 -1)"),i.top=i.left=0);let P;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:P=i.height/2+i.top,b.unshift("rotate(90 "+P.toString()+" "+P.toString()+")");break;case 2:b.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:P=i.width/2+i.left,b.unshift("rotate(-90 "+P.toString()+" "+P.toString()+")");break}w%2===1&&(i.left!==i.top&&(P=i.left,i.left=i.top,i.top=P),i.width!==i.height&&(P=i.width,i.width=i.height,i.height=P)),b.length&&(r=Bd(r,'<g transform="'+b.join(" ")+'">',"</g>"))});const o=s.width,a=s.height,l=i.width,c=i.height;let u,h;o===null?(h=a===null?"1em":a==="auto"?c:a,u=uc(h,l/c)):(u=o==="auto"?l:o,h=a===null?uc(u,c/l):a==="auto"?c:a);const f={},p=(v,b)=>{Ud(b)||(f[v]=b.toString())};p("width",u),p("height",h);const m=[i.left,i.top,l,c];return f.viewBox=m.join(" "),{attributes:f,viewBox:m,body:r}}const Xd=/\sid="(\S+)"/g,Wd="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let qd=0;function Kd(n,t=Wd){const e=[];let s;for(;s=Xd.exec(n);)e.push(s[1]);if(!e.length)return n;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach(r=>{const o=typeof t=="function"?t(r):t+(qd++).toString(),a=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");n=n.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+o+i+"$3")}),n=n.replace(new RegExp(i,"g"),""),n}const ro=Object.create(null);function Zd(n,t){ro[n]=t}function oo(n){return ro[n]||ro[""]}function ao(n){let t;if(typeof n.resources=="string")t=[n.resources];else if(t=n.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:n.path||"/",maxURL:n.maxURL||500,rotate:n.rotate||750,timeout:n.timeout||5e3,random:n.random===!0,index:n.index||0,dataAfterTimeout:n.dataAfterTimeout!==!1}}const lo=Object.create(null),ks=["https://api.simplesvg.com","https://api.unisvg.com"],Mi=[];for(;ks.length>0;)ks.length===1||Math.random()>.5?Mi.push(ks.shift()):Mi.push(ks.pop());lo[""]=ao({resources:["https://api.iconify.design"].concat(Mi)});function Qd(n,t){const e=ao(t);return e===null?!1:(lo[n]=e,!0)}function co(n){return lo[n]}let hc=(()=>{let n;try{if(n=fetch,typeof n=="function")return n}catch{}})();function Jd(n,t){const e=co(n);if(!e)return 0;let s;if(!e.maxURL)s=0;else{let i=0;e.resources.forEach(o=>{i=Math.max(i,o.length)});const r=t+".json?icons=";s=e.maxURL-i-e.path.length-r.length}return s}function tp(n){return n===404}const ep=(n,t,e)=>{const s=[],i=Jd(n,t),r="icons";let o={type:r,provider:n,prefix:t,icons:[]},a=0;return e.forEach((l,c)=>{a+=l.length+1,a>=i&&c>0&&(s.push(o),o={type:r,provider:n,prefix:t,icons:[]},a=l.length),o.icons.push(l)}),s.push(o),s};function np(n){if(typeof n=="string"){const t=co(n);if(t)return t.path}return"/"}const sp={prepare:ep,send:(n,t,e)=>{if(!hc){e("abort",424);return}let s=np(t.provider);switch(t.type){case"icons":{const r=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});s+=r+".json?"+l.toString();break}case"custom":{const r=t.uri;s+=r.slice(0,1)==="/"?r.slice(1):r;break}default:e("abort",400);return}let i=503;hc(n+s).then(r=>{const o=r.status;if(o!==200){setTimeout(()=>{e(tp(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 ip(n){const t={loaded:[],missing:[],pending:[]},e=Object.create(null);n.sort((i,r)=>i.provider!==r.provider?i.provider.localeCompare(r.provider):i.prefix!==r.prefix?i.prefix.localeCompare(r.prefix):i.name.localeCompare(r.name));let s={provider:"",prefix:"",name:""};return n.forEach(i=>{if(s.name===i.name&&s.prefix===i.prefix&&s.provider===i.provider)return;s=i;const r=i.provider,o=i.prefix,a=i.name,l=e[r]||(e[r]=Object.create(null)),c=l[o]||(l[o]=Fn(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 fc(n,t){n.forEach(e=>{const s=e.loaderCallbacks;s&&(e.loaderCallbacks=s.filter(i=>i.id!==t))})}function rp(n){n.pendingCallbacksFlag||(n.pendingCallbacksFlag=!0,setTimeout(()=>{n.pendingCallbacksFlag=!1;const t=n.loaderCallbacks?n.loaderCallbacks.slice(0):[];if(!t.length)return;let e=!1;const s=n.provider,i=n.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(n.icons[c])o.loaded.push({provider:s,prefix:i,name:c});else if(n.missing.has(c))o.missing.push({provider:s,prefix:i,name:c});else return e=!0,!0;return!1}),o.pending.length!==a&&(e||fc([n],r.id),r.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),r.abort))})}))}let op=0;function ap(n,t,e){const s=op++,i=fc.bind(null,e,s);if(!t.pending.length)return i;const r={id:s,icons:t,callback:n,abort:i};return e.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(r)}),i}function lp(n,t=!0,e=!1){const s=[];return n.forEach(i=>{const r=typeof i=="string"?Oi(i,t,e):i;r&&s.push(r)}),s}var cp={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function up(n,t,e,s){const i=n.resources.length,r=n.random?Math.floor(Math.random()*i):n.index;let o;if(n.random){let N=n.resources.slice(0);for(o=[];N.length>1;){const A=Math.floor(Math.random()*N.length);o.push(N[A]),N=N.slice(0,A).concat(N.slice(A+1))}o=o.concat(N)}else o=n.resources.slice(r).concat(n.resources.slice(0,r));const a=Date.now();let l="pending",c=0,u,h=null,f=[],p=[];typeof s=="function"&&p.push(s);function m(){h&&(clearTimeout(h),h=null)}function v(){l==="pending"&&(l="aborted"),m(),f.forEach(N=>{N.status==="pending"&&(N.status="aborted")}),f=[]}function b(N,A){A&&(p=[]),typeof N=="function"&&p.push(N)}function E(){return{startTime:a,payload:t,status:l,queriesSent:c,queriesPending:f.length,subscribe:b,abort:v}}function C(){l="failed",p.forEach(N=>{N(void 0,u)})}function w(){f.forEach(N=>{N.status==="pending"&&(N.status="aborted")}),f=[]}function P(N,A,at){const lt=A!=="success";switch(f=f.filter(pt=>pt!==N),l){case"pending":break;case"failed":if(lt||!n.dataAfterTimeout)return;break;default:return}if(A==="abort"){u=at,C();return}if(lt){u=at,f.length||(o.length?D():C());return}if(m(),w(),!n.random){const pt=n.resources.indexOf(N.resource);pt!==-1&&pt!==n.index&&(n.index=pt)}l="completed",p.forEach(pt=>{pt(at)})}function D(){if(l!=="pending")return;m();const N=o.shift();if(N===void 0){if(f.length){h=setTimeout(()=>{m(),l==="pending"&&(w(),C())},n.timeout);return}C();return}const A={status:"pending",resource:N,callback:(at,lt)=>{P(A,at,lt)}};f.push(A),c++,h=setTimeout(D,n.rotate),e(N,t,A.callback)}return setTimeout(D),E}function dc(n){const t={...cp,...n};let e=[];function s(){e=e.filter(a=>a().status==="pending")}function i(a,l,c){const u=up(t,a,l,(h,f)=>{s(),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:s}}function pc(){}const uo=Object.create(null);function hp(n){if(!uo[n]){const t=co(n);if(!t)return;const e=dc(t),s={config:t,redundancy:e};uo[n]=s}return uo[n]}function fp(n,t,e){let s,i;if(typeof n=="string"){const r=oo(n);if(!r)return e(void 0,424),pc;i=r.send;const o=hp(n);o&&(s=o.redundancy)}else{const r=ao(n);if(r){s=dc(r);const o=n.resources?n.resources[0]:"",a=oo(o);a&&(i=a.send)}}return!s||!i?(e(void 0,424),pc):s.query(t,i,e)().abort}const mc="iconify2",Ps="iconify",gc=Ps+"-count",vc=Ps+"-version",_c=36e5,dp=168,pp=50;function ho(n,t){try{return n.getItem(t)}catch{}}function fo(n,t,e){try{return n.setItem(t,e),!0}catch{}}function yc(n,t){try{n.removeItem(t)}catch{}}function po(n,t){return fo(n,gc,t.toString())}function mo(n){return parseInt(ho(n,gc))||0}const Ai={local:!0,session:!0},bc={local:new Set,session:new Set};let go=!1;function mp(n){go=n}let Ri=typeof window>"u"?{}:window;function xc(n){const t=n+"Storage";try{if(Ri&&Ri[t]&&typeof Ri[t].length=="number")return Ri[t]}catch{}Ai[n]=!1}function wc(n,t){const e=xc(n);if(!e)return;const s=ho(e,vc);if(s!==mc){if(s){const a=mo(e);for(let l=0;l<a;l++)yc(e,Ps+l.toString())}fo(e,vc,mc),po(e,0);return}const i=Math.floor(Date.now()/_c)-dp,r=a=>{const l=Ps+a.toString(),c=ho(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{}yc(e,l)}};let o=mo(e);for(let a=o-1;a>=0;a--)r(a)||(a===o-1?(o--,po(e,o)):bc[n].add(a))}function Ec(){if(!go){mp(!0);for(const n in Ai)wc(n,t=>{const e=t.data,s=t.provider,i=e.prefix,r=Fn(s,i);if(!io(r,e).length)return!1;const o=e.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,o):o,!0})}}function gp(n,t){const e=n.lastModifiedCached;if(e&&e>=t)return e===t;if(n.lastModifiedCached=t,e)for(const s in Ai)wc(s,i=>{const r=i.data;return i.provider!==n.provider||r.prefix!==n.prefix||r.lastModified===t});return!0}function vp(n,t){go||Ec();function e(s){let i;if(!Ai[s]||!(i=xc(s)))return;const r=bc[s];let o;if(r.size)r.delete(o=Array.from(r).shift());else if(o=mo(i),o>=pp||!po(i,o+1))return;const a={cached:Math.floor(Date.now()/_c),provider:n.provider,data:t};return fo(i,Ps+o.toString(),JSON.stringify(a))}t.lastModified&&!gp(n,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),e("local")||e("session"))}function Cc(){}function _p(n){n.iconsLoaderFlag||(n.iconsLoaderFlag=!0,setTimeout(()=>{n.iconsLoaderFlag=!1,rp(n)}))}function yp(n,t){n.iconsToLoad?n.iconsToLoad=n.iconsToLoad.concat(t).sort():n.iconsToLoad=t,n.iconsQueueFlag||(n.iconsQueueFlag=!0,setTimeout(()=>{n.iconsQueueFlag=!1;const{provider:e,prefix:s}=n,i=n.iconsToLoad;delete n.iconsToLoad;let r;if(!i||!(r=oo(e)))return;r.prepare(e,s,i).forEach(a=>{fp(e,a,l=>{if(typeof l!="object")a.icons.forEach(c=>{n.missing.add(c)});else try{const c=io(n,l);if(!c.length)return;const u=n.pendingIcons;u&&c.forEach(h=>{u.delete(h)}),vp(n,l)}catch(c){console.error(c)}_p(n)})})}))}const bp=(n,t)=>{const e=lp(n,!0,ac()),s=ip(e);if(!s.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(s.loaded,s.missing,s.pending,Cc)}),()=>{l=!1}}const i=Object.create(null),r=[];let o,a;return s.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===a&&c===o)return;o=c,a=u,r.push(Fn(c,u));const h=i[c]||(i[c]=Object.create(null));h[u]||(h[u]=[])}),s.pending.forEach(l=>{const{provider:c,prefix:u,name:h}=l,f=Fn(c,u),p=f.pendingIcons||(f.pendingIcons=new Set);p.has(h)||(p.add(h),i[c][u].push(h))}),r.forEach(l=>{const{provider:c,prefix:u}=l;i[c][u].length&&yp(l,i[c][u])}),t?ap(t,s,r):Cc};function xp(n,t){const e={...n};for(const s in t){const i=t[s],r=typeof i;s in lc?(i===null||i&&(r==="string"||r==="number"))&&(e[s]=i):r===typeof e[s]&&(e[s]=s==="rotate"?i%4:i)}return e}const wp=/[\s,]+/;function Ep(n,t){t.split(wp).forEach(e=>{switch(e.trim()){case"horizontal":n.hFlip=!0;break;case"vertical":n.vFlip=!0;break}})}function Cp(n,t=0){const e=n.replace(/^-?[0-9.]*/,"");function s(i){for(;i<0;)i+=4;return i%4}if(e===""){const i=parseInt(n);return isNaN(i)?0:s(i)}else if(e!==n){let i=0;switch(e){case"%":i=25;break;case"deg":i=90}if(i){let r=parseFloat(n.slice(0,n.length-e.length));return isNaN(r)?0:(r=r/i,r%1===0?s(r):0)}}return t}function Sp(n,t){let e=n.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in t)e+=" "+s+'="'+t[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+e+">"+n+"</svg>"}function Tp(n){return n.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function kp(n){return"data:image/svg+xml,"+Tp(n)}function Pp(n){return'url("'+kp(n)+'")'}const Sc={...cc,inline:!1},Op={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Np={display:"inline-block"},vo={backgroundColor:"currentColor"},Tc={backgroundColor:"transparent"},kc={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Pc={webkitMask:vo,mask:vo,background:Tc};for(const n in Pc){const t=Pc[n];for(const e in kc)t[n+e]=kc[e]}const $i={};["horizontal","vertical"].forEach(n=>{const t=n.slice(0,1)+"Flip";$i[n+"-flip"]=t,$i[n.slice(0,1)+"-flip"]=t,$i[n+"Flip"]=t});function Oc(n){return n+(n.match(/^[-0-9.]+$/)?"px":"")}const Nc=(n,t)=>{const e=xp(Sc,t),s={...Op},i=t.mode||"svg",r={},o=t.style,a=typeof o=="object"&&!(o instanceof Array)?o:{};for(let v in t){const b=t[v];if(b!==void 0)switch(v){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":e[v]=b===!0||b==="true"||b===1;break;case"flip":typeof b=="string"&&Ep(e,b);break;case"color":r.color=b;break;case"rotate":typeof b=="string"?e[v]=Cp(b):typeof b=="number"&&(e[v]=b);break;case"ariaHidden":case"aria-hidden":b!==!0&&b!=="true"&&delete s["aria-hidden"];break;default:{const E=$i[v];E?(b===!0||b==="true"||b===1)&&(e[E]=!0):Sc[v]===void 0&&(s[v]=b)}}}const l=Yd(n,e),c=l.attributes;if(e.inline&&(r.verticalAlign="-0.125em"),i==="svg"){s.style={...r,...a},Object.assign(s,c);let v=0,b=t.id;return typeof b=="string"&&(b=b.replace(/-/g,"_")),s.innerHTML=Kd(l.body,b?()=>b+"ID"+v++:"iconifyVue"),we("svg",s)}const{body:u,width:h,height:f}=n,p=i==="mask"||(i==="bg"?!1:u.indexOf("currentColor")!==-1),m=Sp(u,{...c,width:h+"",height:f+""});return s.style={...r,"--svg":Pp(m),width:Oc(c.width),height:Oc(c.height),...Np,...p?vo:Tc,...a},we("span",s)};if(ac(!0),Zd("",sp),typeof document<"u"&&typeof window<"u"){Ec();const n=window;if(n.IconifyPreload!==void 0){const t=n.IconifyPreload,e="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(s=>{try{(typeof s!="object"||s===null||s instanceof Array||typeof s.icons!="object"||typeof s.prefix!="string"||!Vd(s))&&console.error(e)}catch{console.error(e)}})}if(n.IconifyProviders!==void 0){const t=n.IconifyProviders;if(typeof t=="object"&&t!==null)for(let e in t){const s="IconifyProviders["+e+"] is invalid.";try{const i=t[e];if(typeof i!="object"||!i||i.resources===void 0)continue;Qd(e,i)||console.error(s)}catch{console.error(s)}}}}const Ip={...Di,body:""},Dp=tt({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(n,t){if(typeof n=="object"&&n!==null&&typeof n.body=="string")return this._name="",this.abortLoading(),{data:n};let e;if(typeof n!="string"||(e=Oi(n,!1,!0))===null)return this.abortLoading(),null;const s=Ld(e);if(!s)return(!this._loadingIcon||this._loadingIcon.name!==n)&&(this.abortLoading(),this._name="",s!==null&&(this._loadingIcon={name:n,abort:bp([e],()=>{this.counter++})})),null;this.abortLoading(),this._name!==n&&(this._name=n,t&&t(n));const i=["iconify"];return e.prefix!==""&&i.push("iconify--"+e.prefix),e.provider!==""&&i.push("iconify--"+e.provider),{data:s,classes:i}}},render(){this.counter;const n=this.$attrs,t=this.iconMounted||n.ssr?this.getIcon(n.icon,n.onLoad):null;if(!t)return Nc(Ip,n);let e=n;return t.classes&&(e={...n,class:(typeof n.class=="string"?n.class+" ":"")+t.classes.join(" ")}),Nc({...Di,...t.data},e)}});typeof process<"u"&&process.versions!=null&&process.versions.node!=null;const _o=n=>{let t=null;switch(n){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"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"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`
|
|
29
32
|
[\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]
|
|
30
33
|
|[\u{4E00}-\u{9FCC}]
|
|
31
34
|
|[\u{3400}-\u{4DB5}]
|
|
@@ -34,24 +37,74 @@ Component that was made reactive: `,e)),ot(e,t,n,r,i,o,s,!0)}function qh(e){retu
|
|
|
34
37
|
|[\u{2B740}-\u{2B81D}]
|
|
35
38
|
|[\u{2B820}-\u{2CEAF}]
|
|
36
39
|
|[\u{2CEB0}-\u{2EBEF}]
|
|
37
|
-
`.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};function ql(e){const t={matchIndex:-1,fullMatch:null,groupMatchs:[]};if(e){t.matchIndex=typeof e.index=="number"?e.index:-1;for(let n=0,r=e.length;n<r;n++)n==0?t.fullMatch=e[n]:t.groupMatchs.push(e[n])}return t}const sd=(e,t)=>{typeof e=="string"&&(e=Wl(e)||new RegExp(e));const n=t.match(e);return ql(n)},Yl=(e,t)=>{typeof e=="string"&&(e=Wl(e)||new RegExp(e));const n=[],r=t.matchAll(e);for(const i of r)n.push(ql(i));return n};function Xl(e){return e.replace(/(^\w|[_-]\w)/g,function(t){return t.slice(-1).toUpperCase()})}function od(e){const t=typeof e;return t!=="object"?t:Object.prototype.toString.call(e).replace(/^\[object (\S+)\]$/,"$1").toLowerCase()}function ad(e){return od(e)==="object"}function Kl(e,t=new WeakMap){if(e==null)return e;if(e.constructor===Date)return new Date(e);if(e.constructor===RegExp)return new RegExp(e);if(typeof e!="object")return e;if(t.has(e))return t.get(e);const n=Object.getOwnPropertyDescriptors(e),r=Object.create(Object.getPrototypeOf(e),n);t.set(e,r);for(const i of Reflect.ownKeys(e))r[i]=ad(e[i])?Kl(e[i],t):e[i];return r}function Zl(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&delete e[n];return e}function Zr(e,t){const n=e.length,r=t.length;for(let s=0;s<r;s++)e[s]=t[s];let i=Math.max(0,n-r);for(;i>0;)e.pop(),i--}function fo(e,t,n=Number.EPSILON*Math.pow(2,2)){return Math.abs(e-t)<n}function Ql(e,t=12){return+e.toPrecision(t)}function Qr(e){const t=sd("number",e);return{number:t.fullMatch?parseFloat(t.fullMatch):0,suffix:t.fullMatch?e.substring(t.matchIndex+t.fullMatch.length+1):""}}class Jl{queue=[];results=[];rs;controller;concurrency;activeTaskCount=0;constructor(t=1){this.concurrency=t,this.rs=new ReadableStream({start:async n=>{this.controller=n}})}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 n=await Promise.allSettled(t.map(r=>r()));this.results.push(...n),n.forEach(r=>{r.status=="fulfilled"?this.controller?.enqueue(r.value):r.status=="rejected"&&this.controller?.enqueue(new Error(r.reason))}),this.activeTaskCount-=n.length}}}var ld=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function po(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tc={exports:{}},lr=typeof Reflect=="object"?Reflect:null,ec=lr&&typeof lr.apply=="function"?lr.apply:function(t,n,r){return Function.prototype.apply.call(t,n,r)},ji;lr&&typeof lr.ownKeys=="function"?ji=lr.ownKeys:Object.getOwnPropertySymbols?ji=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:ji=function(t){return Object.getOwnPropertyNames(t)};function cd(e){console&&console.warn&&console.warn(e)}var nc=Number.isNaN||function(t){return t!==t};function Xt(){Xt.init.call(this)}tc.exports=Xt,tc.exports.once=dd,Xt.EventEmitter=Xt,Xt.prototype._events=void 0,Xt.prototype._eventsCount=0,Xt.prototype._maxListeners=void 0;var rc=10;function Hi(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Xt,"defaultMaxListeners",{enumerable:!0,get:function(){return rc},set:function(e){if(typeof e!="number"||e<0||nc(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");rc=e}}),Xt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Xt.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||nc(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function ic(e){return e._maxListeners===void 0?Xt.defaultMaxListeners:e._maxListeners}Xt.prototype.getMaxListeners=function(){return ic(this)},Xt.prototype.emit=function(t){for(var n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);var i=t==="error",s=this._events;if(s!==void 0)i=i&&s.error===void 0;else if(!i)return!1;if(i){var o;if(n.length>0&&(o=n[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var u=s[t];if(u===void 0)return!1;if(typeof u=="function")ec(u,this,n);else for(var d=u.length,g=cc(u,d),r=0;r<d;++r)ec(g[r],this,n);return!0};function sc(e,t,n,r){var i,s,o;if(Hi(n),s=e._events,s===void 0?(s=e._events=Object.create(null),e._eventsCount=0):(s.newListener!==void 0&&(e.emit("newListener",t,n.listener?n.listener:n),s=e._events),o=s[t]),o===void 0)o=s[t]=n,++e._eventsCount;else if(typeof o=="function"?o=s[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),i=ic(e),i>0&&o.length>i&&!o.warned){o.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=o.length,cd(a)}return e}Xt.prototype.addListener=function(t,n){return sc(this,t,n,!1)},Xt.prototype.on=Xt.prototype.addListener,Xt.prototype.prependListener=function(t,n){return sc(this,t,n,!0)};function ud(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function oc(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=ud.bind(r);return i.listener=n,r.wrapFn=i,i}Xt.prototype.once=function(t,n){return Hi(n),this.on(t,oc(this,t,n)),this},Xt.prototype.prependOnceListener=function(t,n){return Hi(n),this.prependListener(t,oc(this,t,n)),this},Xt.prototype.removeListener=function(t,n){var r,i,s,o,a;if(Hi(n),i=this._events,i===void 0)return this;if(r=i[t],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,r.listener||n));else if(typeof r!="function"){for(s=-1,o=r.length-1;o>=0;o--)if(r[o]===n||r[o].listener===n){a=r[o].listener,s=o;break}if(s<0)return this;s===0?r.shift():hd(r,s),r.length===1&&(i[t]=r[0]),i.removeListener!==void 0&&this.emit("removeListener",t,a||n)}return this},Xt.prototype.off=Xt.prototype.removeListener,Xt.prototype.removeAllListeners=function(t){var n,r,i;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[t]),this;if(arguments.length===0){var s=Object.keys(r),o;for(i=0;i<s.length;++i)o=s[i],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(n=r[t],typeof n=="function")this.removeListener(t,n);else if(n!==void 0)for(i=n.length-1;i>=0;i--)this.removeListener(t,n[i]);return this};function ac(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i=="function"?n?[i.listener||i]:[i]:n?fd(i):cc(i,i.length)}Xt.prototype.listeners=function(t){return ac(this,t,!0)},Xt.prototype.rawListeners=function(t){return ac(this,t,!1)},Xt.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):lc.call(e,t)},Xt.prototype.listenerCount=lc;function lc(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}Xt.prototype.eventNames=function(){return this._eventsCount>0?ji(this._events):[]};function cc(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function hd(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function fd(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function dd(e,t){return new Promise(function(n,r){function i(o){e.removeListener(t,s),r(o)}function s(){typeof e.removeListener=="function"&&e.removeListener("error",i),n([].slice.call(arguments))}uc(e,t,s,{once:!0}),t!=="error"&&pd(e,i,{once:!0})})}function pd(e,t,n){typeof e.on=="function"&&uc(e,"error",t,n)}function uc(e,t,n,r){if(typeof e.on=="function")r.once?e.once(t,n):e.on(t,n);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(s){r.once&&e.removeEventListener(t,i),n(s)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}class md{events;constructor(){this.events={}}on(t,n){this.events[t]||(this.events[t]=[]),this.events[t].push(n)}addListener(t,n){this.on(t,n)}prependListener(t,n){this.events[t]||(this.events[t]=[]),this.events[t].unshift(n)}removeListener(t,n){this.events[t]&&(this.events[t]=this.events[t].filter(r=>r!==n))}off(t,n){this.removeListener(t,n)}removeAllListeners(t){t?this.events[t]=[]:this.events={}}emit(t,...n){this.events[t]&&this.events[t].forEach(r=>{Reflect.apply(r,this,n)})}once(t,n){const i=(()=>{let s=!1;return(...o)=>{s||(s=!0,Reflect.apply(n,this,o),this.off(t,i))}})();this.on(t,i)}}var hc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function gd(e,t={}){var n=1,r=1;function i(R){var K=R.match(/\n/g);K&&(n+=K.length);var C=R.lastIndexOf(`
|
|
38
|
-
`);r=~C?R.length-C:r+R.length}function s(){var R={line:n,column:r};return function(K){return K.position=new o(R),I(),K}}function o(R){this.start=R,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;var a=[];function u(R){var K=new Error(t.source+":"+n+":"+r+": "+R);if(K.reason=R,K.filename=t.source,K.line=n,K.column=r,K.source=e,t.silent)a.push(K);else throw K}function d(){var R=y();return{type:"stylesheet",stylesheet:{source:t.source,rules:R,parsingErrors:a}}}function g(){return w(/^{\s*/)}function v(){return w(/^}/)}function y(){var R,K=[];for(I(),k(K);e.length&&e.charAt(0)!="}"&&(R=X()||at());)R!==!1&&(K.push(R),k(K));return K}function w(R){var K=R.exec(e);if(K){var C=K[0];return i(C),e=e.slice(C.length),K}}function I(){w(/^\s*/)}function k(R){var K;for(R=R||[];K=A();)K!==!1&&R.push(K);return R}function A(){var R=s();if(!(e.charAt(0)!="/"||e.charAt(1)!="*")){for(var K=2;e.charAt(K)!=""&&(e.charAt(K)!="*"||e.charAt(K+1)!="/");)++K;if(K+=2,e.charAt(K-1)==="")return u("End of comment missing");var C=e.slice(2,K-2);return r+=2,i(C),e=e.slice(K),r+=2,R({type:"comment",comment:C})}}function B(){var R=w(/^([^{]+)/);if(R)return un(R[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(K){return K.replace(/,/g,"")}).split(/\s*(?![^(]*\)),\s*/).map(function(K){return K.replace(/\u200C/g,",")})}function M(){var R=s(),K=w(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(K){if(K=un(K[0]),!w(/^:\s*/))return u("property missing ':'");var C=w(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),b=R({type:"declaration",property:K.replace(hc,""),value:C?un(C[0]).replace(hc,""):""});return w(/^[;\s]*/),b}}function N(){var R=[];if(!g())return u("missing '{'");k(R);for(var K;K=M();)K!==!1&&(R.push(K),k(R));return v()?R:u("missing '}'")}function D(){for(var R,K=[],C=s();R=w(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)K.push(R[1]),w(/^,\s*/);if(K.length)return C({type:"keyframe",values:K,declarations:N()})}function U(){var R=s(),K=w(/^@([-\w]+)?keyframes\s*/);if(K){var C=K[1];if(K=w(/^([-\w]+)\s*/),!K)return u("@keyframes missing name");var b=K[1];if(!g())return u("@keyframes missing '{'");for(var _,P=k();_=D();)P.push(_),P=P.concat(k());return v()?R({type:"keyframes",name:b,vendor:C,keyframes:P}):u("@keyframes missing '}'")}}function H(){var R=s(),K=w(/^@supports *([^{]+)/);if(K){var C=un(K[1]);if(!g())return u("@supports missing '{'");var b=k().concat(y());return v()?R({type:"supports",supports:C,rules:b}):u("@supports missing '}'")}}function F(){var R=s(),K=w(/^@host\s*/);if(K){if(!g())return u("@host missing '{'");var C=k().concat(y());return v()?R({type:"host",rules:C}):u("@host missing '}'")}}function it(){var R=s(),K=w(/^@media *([^{]+)/);if(K){var C=un(K[1]);if(!g())return u("@media missing '{'");var b=k().concat(y());return v()?R({type:"media",media:C,rules:b}):u("@media missing '}'")}}function ut(){var R=s(),K=w(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(K)return R({type:"custom-media",name:un(K[1]),media:un(K[2])})}function _t(){var R=s(),K=w(/^@page */);if(K){var C=B()||[];if(!g())return u("@page missing '{'");for(var b=k(),_;_=M();)b.push(_),b=b.concat(k());return v()?R({type:"page",selectors:C,declarations:b}):u("@page missing '}'")}}function pt(){var R=s(),K=w(/^@([-\w]+)?document *([^{]+)/);if(K){var C=un(K[1]),b=un(K[2]);if(!g())return u("@document missing '{'");var _=k().concat(y());return v()?R({type:"document",document:b,vendor:C,rules:_}):u("@document missing '}'")}}function ht(){var R=s(),K=w(/^@font-face\s*/);if(K){if(!g())return u("@font-face missing '{'");for(var C=k(),b;b=M();)C.push(b),C=C.concat(k());return v()?R({type:"font-face",declarations:C}):u("@font-face missing '}'")}}var wt=et("import"),mt=et("charset"),ct=et("namespace");function et(R){var K=new RegExp("^@"+R+"\\s*([^;]+);");return function(){var C=s(),b=w(K);if(b){var _={type:R};return _[R]=b[1].trim(),C(_)}}}function X(){if(e[0]=="@")return U()||it()||ut()||H()||wt()||mt()||ct()||pt()||_t()||F()||ht()}function at(){var R=s(),K=B();return K?(k(),R({type:"rule",selectors:K,declarations:N()})):u("selector missing")}return mo(d())}function un(e){return e?e.replace(/^\s+|\s+$/g,""):""}function mo(e,t){var n=e&&typeof e.type=="string",r=n?e:t;for(var i in e){var s=e[i];Array.isArray(s)?s.forEach(function(o){mo(o,r)}):s&&typeof s=="object"&&mo(s,r)}return n&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}const fc=(e,t="image/svg+xml",n="utf-8")=>new Blob([e],{type:`${t};charset=${n}`}),vd=e=>new XMLSerializer().serializeToString(e),yd=(e,t="image/svg+xml",n="utf-8")=>fc(vd(e),t,n),dc=(e,t)=>{const n=document.createElement("a");n.style.visibility="hidden",document.body.appendChild(n),n.download=t,typeof e=="string"?n.href=e:n.href=window.URL.createObjectURL(e),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(n.href)};function _d(e=["*"],t){if(!globalThis.document||!(globalThis.document instanceof Document))throw new Error("This is not a browser environment");const n=globalThis.document.createElement("input");return n.setAttribute("type","file"),n.setAttribute("visibility","hidden"),Array.isArray(e)&&e.length>0&&n.setAttribute("accept",e.join(",")),t&&n.setAttribute("multiple","true"),n.click(),new Promise((r,i)=>{globalThis.addEventListener("focus",()=>{setTimeout(()=>{(!n.files||n.files?.length===0)&&i(new Error("Cancel select"))},1e3)},{once:!0}),n.addEventListener("change",()=>{if(!n.files||n.files?.length===0)i(new Error("Cancel select"));else{const s=Array.from(n.files);!e.includes("*")&&s.some(o=>!e.includes(`.${wd(o)}`))&&i(new Error(`Please select files in ${e} format`)),r(s)}})})}function xd(e,t="text",n){return new Promise((r,i)=>{const s=new FileReader;switch(s.addEventListener("progress",o=>{n?.(o.loaded,o.total)}),s.addEventListener("load",o=>{r(o.target?.result)}),s.addEventListener("error",o=>{i(o)}),t){case"dataURL":s.readAsDataURL(e);break;case"binaryString":s.readAsBinaryString(e);break;case"arrayBuffer":s.readAsArrayBuffer(e);break;default:s.readAsText(e)}})}const wd=e=>{let t;return e instanceof File?t=e.name:t=e,t.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i)?.[1]??""};function pc(){return document.compatMode=="BackCompat"?document.body:document.documentElement}function mc(){const e=pc();return{scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight}}function bd(){const e=pc();return{clientTop:e.clientTop,clientLeft:e.clientLeft,clientWidth:e.clientWidth,clientHeight:e.clientHeight}}function gc(){const{clientWidth:e,clientHeight:t}=bd();return{width:e||window.innerWidth,height:t||window.innerHeight}}function Ed(e){const{top:t,left:n}=e.getBoundingClientRect(),r=mc();return{x:n+r.scrollLeft,y:t+r.scrollTop}}function Td(e){if("center"in e)return e.center;if(e.pageX&&e.pageY)return{x:e.pageX,y:e.pageY};const t=mc();return{x:e.clientX+t.scrollLeft,y:e.clientY+t.scrollTop}}function go(e,t){const n=Td(t),r=Ed(e);return{x:n.x-r.x,y:n.y-r.y}}function vc(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}const Cd=()=>{const e=navigator.userAgent.toLowerCase();let t="Unknown";return/mac/i.test(e)?t="macOS":/win/i.test(e)?t="Windows":/android/i.test(e)?t="Android":/iphone|ipad|ipod/i.test(e)?t="iOS":/linux/i.test(e)?t="Linux":/bsd/i.test(e)&&(t="BSD"),t.toLowerCase()};function Sd(){return Cd()==="macos"}function kd(){const e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){const i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}const r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}const vo=kd()!==-1;(()=>{const e=vc();return!!(e.Worker&&e.Blob&&e.Promise&&e.OffscreenCanvas&&e.OffscreenCanvasRenderingContext2D&&e.HTMLCanvasElement&&e.HTMLCanvasElement.prototype.transferControlToOffscreen&&e.URL&&e.URL.createObjectURL)})(),function(){if(!vc().OffscreenCanvas)return!1;var t=new OffscreenCanvas(1,1),n=t.getContext("2d");n.fillRect(0,0,1,1);var r=t.transferToImageBitmap();try{n.createPattern(r,"no-repeat")}catch{return!1}return!0}();function Pd(e){var t=document.documentElement,n=window.top===window.self?window.devicePixelRatio:1;t.dataset.dpr=n;var r=100,i=function(){var s=Math.min(t.clientWidth,e);t.dataset.width=s,t.dataset.rem=r=Math.round(100*(s/e)),t.style.fontSize=r+"px"};i(),window.rem2px=function(s){return s=parseFloat(s),s*r},window.px2rem=function(s){return s=parseFloat(s),s/r},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",i,!1)}var yc={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
|
|
39
|
-
* http://hammerjs.github.io/
|
|
40
|
-
*
|
|
41
|
-
* Copyright (c) 2016 Jorik Tangelder;
|
|
42
|
-
* Licensed under the MIT license */(function(e){(function(t,n,r,i){var s=["","webkit","Moz","MS","ms","o"],o=n.createElement("div"),a="function",u=Math.round,d=Math.abs,g=Date.now;function v(l,h,m){return setTimeout(N(l,m),h)}function y(l,h,m){return Array.isArray(l)?(w(l,m[h],m),!0):!1}function w(l,h,m){var x;if(l)if(l.forEach)l.forEach(h,m);else if(l.length!==i)for(x=0;x<l.length;)h.call(m,l[x],x,l),x++;else for(x in l)l.hasOwnProperty(x)&&h.call(m,l[x],x,l)}function I(l,h,m){var x="DEPRECATED METHOD: "+h+`
|
|
43
|
-
`+m+` AT
|
|
44
|
-
`;return function(){var E=new Error("get-stack-trace"),S=E&&E.stack?E.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",O=t.console&&(t.console.warn||t.console.log);return O&&O.call(t.console,x,S),l.apply(this,arguments)}}var k;typeof Object.assign!="function"?k=function(h){if(h===i||h===null)throw new TypeError("Cannot convert undefined or null to object");for(var m=Object(h),x=1;x<arguments.length;x++){var E=arguments[x];if(E!==i&&E!==null)for(var S in E)E.hasOwnProperty(S)&&(m[S]=E[S])}return m}:k=Object.assign;var A=I(function(h,m,x){for(var E=Object.keys(m),S=0;S<E.length;)(!x||x&&h[E[S]]===i)&&(h[E[S]]=m[E[S]]),S++;return h},"extend","Use `assign`."),B=I(function(h,m){return A(h,m,!0)},"merge","Use `assign`.");function M(l,h,m){var x=h.prototype,E;E=l.prototype=Object.create(x),E.constructor=l,E._super=x,m&&k(E,m)}function N(l,h){return function(){return l.apply(h,arguments)}}function D(l,h){return typeof l==a?l.apply(h&&h[0]||i,h):l}function U(l,h){return l===i?h:l}function H(l,h,m){w(_t(h),function(x){l.addEventListener(x,m,!1)})}function F(l,h,m){w(_t(h),function(x){l.removeEventListener(x,m,!1)})}function it(l,h){for(;l;){if(l==h)return!0;l=l.parentNode}return!1}function ut(l,h){return l.indexOf(h)>-1}function _t(l){return l.trim().split(/\s+/g)}function pt(l,h,m){if(l.indexOf&&!m)return l.indexOf(h);for(var x=0;x<l.length;){if(m&&l[x][m]==h||!m&&l[x]===h)return x;x++}return-1}function ht(l){return Array.prototype.slice.call(l,0)}function wt(l,h,m){for(var x=[],E=[],S=0;S<l.length;){var O=h?l[S][h]:l[S];pt(E,O)<0&&x.push(l[S]),E[S]=O,S++}return m&&(h?x=x.sort(function(Y,W){return Y[h]>W[h]}):x=x.sort()),x}function mt(l,h){for(var m,x,E=h[0].toUpperCase()+h.slice(1),S=0;S<s.length;){if(m=s[S],x=m?m+E:h,x in l)return x;S++}return i}var ct=1;function et(){return ct++}function X(l){var h=l.ownerDocument||l;return h.defaultView||h.parentWindow||t}var at=/mobile|tablet|ip(ad|hone|od)|android/i,R="ontouchstart"in t,K=mt(t,"PointerEvent")!==i,C=R&&at.test(navigator.userAgent),b="touch",_="pen",P="mouse",L="kinect",z=25,$=1,Z=2,G=4,J=8,ft=1,yt=2,St=4,Ot=8,kt=16,Ft=yt|St,zt=Ot|kt,Vt=Ft|zt,Et=["x","y"],Jt=["clientX","clientY"];function jt(l,h){var m=this;this.manager=l,this.callback=h,this.element=l.element,this.target=l.options.inputTarget,this.domHandler=function(x){D(l.options.enable,[l])&&m.handler(x)},this.init()}jt.prototype={handler:function(){},init:function(){this.evEl&&H(this.element,this.evEl,this.domHandler),this.evTarget&&H(this.target,this.evTarget,this.domHandler),this.evWin&&H(X(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&F(this.element,this.evEl,this.domHandler),this.evTarget&&F(this.target,this.evTarget,this.domHandler),this.evWin&&F(X(this.element),this.evWin,this.domHandler)}};function oe(l){var h,m=l.options.inputClass;return m?h=m:K?h=Ge:C?h=gn:R?h=_r:h=Ze,new h(l,qt)}function qt(l,h,m){var x=m.pointers.length,E=m.changedPointers.length,S=h&$&&x-E===0,O=h&(G|J)&&x-E===0;m.isFirst=!!S,m.isFinal=!!O,S&&(l.session={}),m.eventType=h,Ce(l,m),l.emit("hammer.input",m),l.recognize(m),l.session.prevInput=m}function Ce(l,h){var m=l.session,x=h.pointers,E=x.length;m.firstInput||(m.firstInput=Mn(h)),E>1&&!m.firstMultiple?m.firstMultiple=Mn(h):E===1&&(m.firstMultiple=!1);var S=m.firstInput,O=m.firstMultiple,V=O?O.center:S.center,Y=h.center=Ke(x);h.timeStamp=g(),h.deltaTime=h.timeStamp-S.timeStamp,h.angle=rn(V,Y),h.distance=nn(V,Y),ye(m,h),h.offsetDirection=fn(h.deltaX,h.deltaY);var W=hn(h.deltaTime,h.deltaX,h.deltaY);h.overallVelocityX=W.x,h.overallVelocityY=W.y,h.overallVelocity=d(W.x)>d(W.y)?W.x:W.y,h.scale=O?pe(O.pointers,x):1,h.rotation=O?gr(O.pointers,x):0,h.maxPointers=m.prevInput?h.pointers.length>m.prevInput.maxPointers?h.pointers.length:m.prevInput.maxPointers:h.pointers.length,en(m,h);var j=l.element;it(h.srcEvent.target,j)&&(j=h.srcEvent.target),h.target=j}function ye(l,h){var m=h.center,x=l.offsetDelta||{},E=l.prevDelta||{},S=l.prevInput||{};(h.eventType===$||S.eventType===G)&&(E=l.prevDelta={x:S.deltaX||0,y:S.deltaY||0},x=l.offsetDelta={x:m.x,y:m.y}),h.deltaX=E.x+(m.x-x.x),h.deltaY=E.y+(m.y-x.y)}function en(l,h){var m=l.lastInterval||h,x=h.timeStamp-m.timeStamp,E,S,O,V;if(h.eventType!=J&&(x>z||m.velocity===i)){var Y=h.deltaX-m.deltaX,W=h.deltaY-m.deltaY,j=hn(x,Y,W);S=j.x,O=j.y,E=d(j.x)>d(j.y)?j.x:j.y,V=fn(Y,W),l.lastInterval=h}else E=m.velocity,S=m.velocityX,O=m.velocityY,V=m.direction;h.velocity=E,h.velocityX=S,h.velocityY=O,h.direction=V}function Mn(l){for(var h=[],m=0;m<l.pointers.length;)h[m]={clientX:u(l.pointers[m].clientX),clientY:u(l.pointers[m].clientY)},m++;return{timeStamp:g(),pointers:h,center:Ke(h),deltaX:l.deltaX,deltaY:l.deltaY}}function Ke(l){var h=l.length;if(h===1)return{x:u(l[0].clientX),y:u(l[0].clientY)};for(var m=0,x=0,E=0;E<h;)m+=l[E].clientX,x+=l[E].clientY,E++;return{x:u(m/h),y:u(x/h)}}function hn(l,h,m){return{x:h/l||0,y:m/l||0}}function fn(l,h){return l===h?ft:d(l)>=d(h)?l<0?yt:St:h<0?Ot:kt}function nn(l,h,m){m||(m=Et);var x=h[m[0]]-l[m[0]],E=h[m[1]]-l[m[1]];return Math.sqrt(x*x+E*E)}function rn(l,h,m){m||(m=Et);var x=h[m[0]]-l[m[0]],E=h[m[1]]-l[m[1]];return Math.atan2(E,x)*180/Math.PI}function gr(l,h){return rn(h[1],h[0],Jt)+rn(l[1],l[0],Jt)}function pe(l,h){return nn(h[0],h[1],Jt)/nn(l[0],l[1],Jt)}var sn={mousedown:$,mousemove:Z,mouseup:G},Nn="mousedown",Ne="mousemove mouseup";function Ze(){this.evEl=Nn,this.evWin=Ne,this.pressed=!1,jt.apply(this,arguments)}M(Ze,jt,{handler:function(h){var m=sn[h.type];m&$&&h.button===0&&(this.pressed=!0),m&Z&&h.which!==1&&(m=G),this.pressed&&(m&G&&(this.pressed=!1),this.callback(this.manager,m,{pointers:[h],changedPointers:[h],pointerType:P,srcEvent:h}))}});var Fe={pointerdown:$,pointermove:Z,pointerup:G,pointercancel:J,pointerout:J},Kn={2:b,3:_,4:P,5:L},dn="pointerdown",An="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(dn="MSPointerDown",An="MSPointerMove MSPointerUp MSPointerCancel");function Ge(){this.evEl=dn,this.evWin=An,jt.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}M(Ge,jt,{handler:function(h){var m=this.store,x=!1,E=h.type.toLowerCase().replace("ms",""),S=Fe[E],O=Kn[h.pointerType]||h.pointerType,V=O==b,Y=pt(m,h.pointerId,"pointerId");S&$&&(h.button===0||V)?Y<0&&(m.push(h),Y=m.length-1):S&(G|J)&&(x=!0),!(Y<0)&&(m[Y]=h,this.callback(this.manager,S,{pointers:m,changedPointers:[h],pointerType:O,srcEvent:h}),x&&m.splice(Y,1))}});var xe={touchstart:$,touchmove:Z,touchend:G,touchcancel:J},as="touchstart",On="touchstart touchmove touchend touchcancel";function pn(){this.evTarget=as,this.evWin=On,this.started=!1,jt.apply(this,arguments)}M(pn,jt,{handler:function(h){var m=xe[h.type];if(m===$&&(this.started=!0),!!this.started){var x=on.call(this,h,m);m&(G|J)&&x[0].length-x[1].length===0&&(this.started=!1),this.callback(this.manager,m,{pointers:x[0],changedPointers:x[1],pointerType:b,srcEvent:h})}}});function on(l,h){var m=ht(l.touches),x=ht(l.changedTouches);return h&(G|J)&&(m=wt(m.concat(x),"identifier",!0)),[m,x]}var vr={touchstart:$,touchmove:Z,touchend:G,touchcancel:J},mn="touchstart touchmove touchend touchcancel";function gn(){this.evTarget=mn,this.targetIds={},jt.apply(this,arguments)}M(gn,jt,{handler:function(h){var m=vr[h.type],x=Zn.call(this,h,m);x&&this.callback(this.manager,m,{pointers:x[0],changedPointers:x[1],pointerType:b,srcEvent:h})}});function Zn(l,h){var m=ht(l.touches),x=this.targetIds;if(h&($|Z)&&m.length===1)return x[m[0].identifier]=!0,[m,m];var E,S,O=ht(l.changedTouches),V=[],Y=this.target;if(S=m.filter(function(W){return it(W.target,Y)}),h===$)for(E=0;E<S.length;)x[S[E].identifier]=!0,E++;for(E=0;E<O.length;)x[O[E].identifier]&&V.push(O[E]),h&(G|J)&&delete x[O[E].identifier],E++;if(V.length)return[wt(S.concat(V),"identifier",!0),V]}var yr=2500,ls=25;function _r(){jt.apply(this,arguments);var l=N(this.handler,this);this.touch=new gn(this.manager,l),this.mouse=new Ze(this.manager,l),this.primaryTouch=null,this.lastTouches=[]}M(_r,jt,{handler:function(h,m,x){var E=x.pointerType==b,S=x.pointerType==P;if(!(S&&x.sourceCapabilities&&x.sourceCapabilities.firesTouchEvents)){if(E)cs.call(this,m,x);else if(S&&vn.call(this,x))return;this.callback(h,m,x)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function cs(l,h){l&$?(this.primaryTouch=h.changedPointers[0].identifier,us.call(this,h)):l&(G|J)&&us.call(this,h)}function us(l){var h=l.changedPointers[0];if(h.identifier===this.primaryTouch){var m={x:h.clientX,y:h.clientY};this.lastTouches.push(m);var x=this.lastTouches,E=function(){var S=x.indexOf(m);S>-1&&x.splice(S,1)};setTimeout(E,yr)}}function vn(l){for(var h=l.srcEvent.clientX,m=l.srcEvent.clientY,x=0;x<this.lastTouches.length;x++){var E=this.lastTouches[x],S=Math.abs(h-E.x),O=Math.abs(m-E.y);if(S<=ls&&O<=ls)return!0}return!1}var hs=mt(o.style,"touchAction"),fs=hs!==i,ds="compute",ps="auto",xr="manipulation",yn="none",Ae="pan-x",_n="pan-y",Ln=Rn();function Ht(l,h){this.manager=l,this.set(h)}Ht.prototype={set:function(l){l==ds&&(l=this.compute()),fs&&this.manager.element.style&&Ln[l]&&(this.manager.element.style[hs]=l),this.actions=l.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var l=[];return w(this.manager.recognizers,function(h){D(h.options.enable,[h])&&(l=l.concat(h.getTouchAction()))}),ms(l.join(" "))},preventDefaults:function(l){var h=l.srcEvent,m=l.offsetDirection;if(this.manager.session.prevented){h.preventDefault();return}var x=this.actions,E=ut(x,yn)&&!Ln[yn],S=ut(x,_n)&&!Ln[_n],O=ut(x,Ae)&&!Ln[Ae];if(E){var V=l.pointers.length===1,Y=l.distance<2,W=l.deltaTime<250;if(V&&Y&&W)return}if(!(O&&S)&&(E||S&&m&Ft||O&&m&zt))return this.preventSrc(h)},preventSrc:function(l){this.manager.session.prevented=!0,l.preventDefault()}};function ms(l){if(ut(l,yn))return yn;var h=ut(l,Ae),m=ut(l,_n);return h&&m?yn:h||m?h?Ae:_n:ut(l,xr)?xr:ps}function Rn(){if(!fs)return!1;var l={},h=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(m){l[m]=h?t.CSS.supports("touch-action",m):!0}),l}var Qn=1,we=2,an=4,Qe=8,Ve=Qe,xn=16,ne=32;function Pt(l){this.options=k({},this.defaults,l||{}),this.id=et(),this.manager=null,this.options.enable=U(this.options.enable,!0),this.state=Qn,this.simultaneous={},this.requireFail=[]}Pt.prototype={defaults:{},set:function(l){return k(this.options,l),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(l){if(y(l,"recognizeWith",this))return this;var h=this.simultaneous;return l=Fn(l,this),h[l.id]||(h[l.id]=l,l.recognizeWith(this)),this},dropRecognizeWith:function(l){return y(l,"dropRecognizeWith",this)?this:(l=Fn(l,this),delete this.simultaneous[l.id],this)},requireFailure:function(l){if(y(l,"requireFailure",this))return this;var h=this.requireFail;return l=Fn(l,this),pt(h,l)===-1&&(h.push(l),l.requireFailure(this)),this},dropRequireFailure:function(l){if(y(l,"dropRequireFailure",this))return this;l=Fn(l,this);var h=pt(this.requireFail,l);return h>-1&&this.requireFail.splice(h,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(l){return!!this.simultaneous[l.id]},emit:function(l){var h=this,m=this.state;function x(E){h.manager.emit(E,l)}m<Qe&&x(h.options.event+hi(m)),x(h.options.event),l.additionalEvent&&x(l.additionalEvent),m>=Qe&&x(h.options.event+hi(m))},tryEmit:function(l){if(this.canEmit())return this.emit(l);this.state=ne},canEmit:function(){for(var l=0;l<this.requireFail.length;){if(!(this.requireFail[l].state&(ne|Qn)))return!1;l++}return!0},recognize:function(l){var h=k({},l);if(!D(this.options.enable,[this,h])){this.reset(),this.state=ne;return}this.state&(Ve|xn|ne)&&(this.state=Qn),this.state=this.process(h),this.state&(we|an|Qe|xn)&&this.tryEmit(h)},process:function(l){},getTouchAction:function(){},reset:function(){}};function hi(l){return l&xn?"cancel":l&Qe?"end":l&an?"move":l&we?"start":""}function wr(l){return l==kt?"down":l==Ot?"up":l==yt?"left":l==St?"right":""}function Fn(l,h){var m=h.manager;return m?m.get(l):l}function De(){Pt.apply(this,arguments)}M(De,Pt,{defaults:{pointers:1},attrTest:function(l){var h=this.options.pointers;return h===0||l.pointers.length===h},process:function(l){var h=this.state,m=l.eventType,x=h&(we|an),E=this.attrTest(l);return x&&(m&J||!E)?h|xn:x||E?m&G?h|Qe:h&we?h|an:we:ne}});function Oe(){De.apply(this,arguments),this.pX=null,this.pY=null}M(Oe,De,{defaults:{event:"pan",threshold:10,pointers:1,direction:Vt},getTouchAction:function(){var l=this.options.direction,h=[];return l&Ft&&h.push(_n),l&zt&&h.push(Ae),h},directionTest:function(l){var h=this.options,m=!0,x=l.distance,E=l.direction,S=l.deltaX,O=l.deltaY;return E&h.direction||(h.direction&Ft?(E=S===0?ft:S<0?yt:St,m=S!=this.pX,x=Math.abs(l.deltaX)):(E=O===0?ft:O<0?Ot:kt,m=O!=this.pY,x=Math.abs(l.deltaY))),l.direction=E,m&&x>h.threshold&&E&h.direction},attrTest:function(l){return De.prototype.attrTest.call(this,l)&&(this.state&we||!(this.state&we)&&this.directionTest(l))},emit:function(l){this.pX=l.deltaX,this.pY=l.deltaY;var h=wr(l.direction);h&&(l.additionalEvent=this.options.event+h),this._super.emit.call(this,l)}});function wn(){De.apply(this,arguments)}M(wn,De,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[yn]},attrTest:function(l){return this._super.attrTest.call(this,l)&&(Math.abs(l.scale-1)>this.options.threshold||this.state&we)},emit:function(l){if(l.scale!==1){var h=l.scale<1?"in":"out";l.additionalEvent=this.options.event+h}this._super.emit.call(this,l)}});function br(){Pt.apply(this,arguments),this._timer=null,this._input=null}M(br,Pt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[ps]},process:function(l){var h=this.options,m=l.pointers.length===h.pointers,x=l.distance<h.threshold,E=l.deltaTime>h.time;if(this._input=l,!x||!m||l.eventType&(G|J)&&!E)this.reset();else if(l.eventType&$)this.reset(),this._timer=v(function(){this.state=Ve,this.tryEmit()},h.time,this);else if(l.eventType&G)return Ve;return ne},reset:function(){clearTimeout(this._timer)},emit:function(l){this.state===Ve&&(l&&l.eventType&G?this.manager.emit(this.options.event+"up",l):(this._input.timeStamp=g(),this.manager.emit(this.options.event,this._input)))}});function Er(){De.apply(this,arguments)}M(Er,De,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[yn]},attrTest:function(l){return this._super.attrTest.call(this,l)&&(Math.abs(l.rotation)>this.options.threshold||this.state&we)}});function Tr(){De.apply(this,arguments)}M(Tr,De,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Ft|zt,pointers:1},getTouchAction:function(){return Oe.prototype.getTouchAction.call(this)},attrTest:function(l){var h=this.options.direction,m;return h&(Ft|zt)?m=l.overallVelocity:h&Ft?m=l.overallVelocityX:h&zt&&(m=l.overallVelocityY),this._super.attrTest.call(this,l)&&h&l.offsetDirection&&l.distance>this.options.threshold&&l.maxPointers==this.options.pointers&&d(m)>this.options.velocity&&l.eventType&G},emit:function(l){var h=wr(l.offsetDirection);h&&this.manager.emit(this.options.event+h,l),this.manager.emit(this.options.event,l)}});function je(){Pt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}M(je,Pt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[xr]},process:function(l){var h=this.options,m=l.pointers.length===h.pointers,x=l.distance<h.threshold,E=l.deltaTime<h.time;if(this.reset(),l.eventType&$&&this.count===0)return this.failTimeout();if(x&&E&&m){if(l.eventType!=G)return this.failTimeout();var S=this.pTime?l.timeStamp-this.pTime<h.interval:!0,O=!this.pCenter||nn(this.pCenter,l.center)<h.posThreshold;this.pTime=l.timeStamp,this.pCenter=l.center,!O||!S?this.count=1:this.count+=1,this._input=l;var V=this.count%h.taps;if(V===0)return this.hasRequireFailures()?(this._timer=v(function(){this.state=Ve,this.tryEmit()},h.interval,this),we):Ve}return ne},failTimeout:function(){return this._timer=v(function(){this.state=ne},this.options.interval,this),ne},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Ve&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function He(l,h){return h=h||{},h.recognizers=U(h.recognizers,He.defaults.preset),new tr(l,h)}He.VERSION="2.0.7",He.defaults={domEvents:!1,touchAction:ds,enable:!0,inputTarget:null,inputClass:null,preset:[[Er,{enable:!1}],[wn,{enable:!1},["rotate"]],[Tr,{direction:Ft}],[Oe,{direction:Ft},["swipe"]],[je],[je,{event:"doubletap",taps:2},["tap"]],[br]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var Jn=1,he=2;function tr(l,h){this.options=k({},He.defaults,h||{}),this.options.inputTarget=this.options.inputTarget||l,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=l,this.input=oe(this),this.touchAction=new Ht(this,this.options.touchAction),c(this,!0),w(this.options.recognizers,function(m){var x=this.add(new m[0](m[1]));m[2]&&x.recognizeWith(m[2]),m[3]&&x.requireFailure(m[3])},this)}tr.prototype={set:function(l){return k(this.options,l),l.touchAction&&this.touchAction.update(),l.inputTarget&&(this.input.destroy(),this.input.target=l.inputTarget,this.input.init()),this},stop:function(l){this.session.stopped=l?he:Jn},recognize:function(l){var h=this.session;if(!h.stopped){this.touchAction.preventDefaults(l);var m,x=this.recognizers,E=h.curRecognizer;(!E||E&&E.state&Ve)&&(E=h.curRecognizer=null);for(var S=0;S<x.length;)m=x[S],h.stopped!==he&&(!E||m==E||m.canRecognizeWith(E))?m.recognize(l):m.reset(),!E&&m.state&(we|an|Qe)&&(E=h.curRecognizer=m),S++}},get:function(l){if(l instanceof Pt)return l;for(var h=this.recognizers,m=0;m<h.length;m++)if(h[m].options.event==l)return h[m];return null},add:function(l){if(y(l,"add",this))return this;var h=this.get(l.options.event);return h&&this.remove(h),this.recognizers.push(l),l.manager=this,this.touchAction.update(),l},remove:function(l){if(y(l,"remove",this))return this;if(l=this.get(l),l){var h=this.recognizers,m=pt(h,l);m!==-1&&(h.splice(m,1),this.touchAction.update())}return this},on:function(l,h){if(l!==i&&h!==i){var m=this.handlers;return w(_t(l),function(x){m[x]=m[x]||[],m[x].push(h)}),this}},off:function(l,h){if(l!==i){var m=this.handlers;return w(_t(l),function(x){h?m[x]&&m[x].splice(pt(m[x],h),1):delete m[x]}),this}},emit:function(l,h){this.options.domEvents&&f(l,h);var m=this.handlers[l]&&this.handlers[l].slice();if(!(!m||!m.length)){h.type=l,h.preventDefault=function(){h.srcEvent.preventDefault()};for(var x=0;x<m.length;)m[x](h),x++}},destroy:function(){this.element&&c(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function c(l,h){var m=l.element;if(m.style){var x;w(l.options.cssProps,function(E,S){x=mt(m.style,S),h?(l.oldCssProps[x]=m.style[x],m.style[x]=E):m.style[x]=l.oldCssProps[x]||""}),h||(l.oldCssProps={})}}function f(l,h){var m=n.createEvent("Event");m.initEvent(l,!0,!0),m.gesture=h,h.target.dispatchEvent(m)}k(He,{INPUT_START:$,INPUT_MOVE:Z,INPUT_END:G,INPUT_CANCEL:J,STATE_POSSIBLE:Qn,STATE_BEGAN:we,STATE_CHANGED:an,STATE_ENDED:Qe,STATE_RECOGNIZED:Ve,STATE_CANCELLED:xn,STATE_FAILED:ne,DIRECTION_NONE:ft,DIRECTION_LEFT:yt,DIRECTION_RIGHT:St,DIRECTION_UP:Ot,DIRECTION_DOWN:kt,DIRECTION_HORIZONTAL:Ft,DIRECTION_VERTICAL:zt,DIRECTION_ALL:Vt,Manager:tr,Input:jt,TouchAction:Ht,TouchInput:gn,MouseInput:Ze,PointerEventInput:Ge,TouchMouseInput:_r,SingleTouchInput:pn,Recognizer:Pt,AttrRecognizer:De,Tap:je,Pan:Oe,Swipe:Tr,Pinch:wn,Rotate:Er,Press:br,on:H,off:F,each:w,merge:B,extend:A,assign:k,inherit:M,bindFn:N,prefixed:mt});var p=typeof t<"u"?t:typeof self<"u"?self:{};p.Hammer=He,typeof i=="function"&&i.amd?i(function(){return He}):e.exports?e.exports=He:t[r]=He})(window,document,"Hammer")})(yc);var Id=yc.exports;const Md=po(Id);function yo(e){return e*Math.PI/180}function Nd(e){return e*180/Math.PI}function Ad(e,t,n,r){const i=e-n,s=t-r;return Math.sqrt(i*i+s*s)}function Od(e,t,n,r){const i=n-e,s=r-t;return Math.atan2(s,i)}function _c(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}}function xc(e,t){const n=Math.sqrt(Math.pow(e,2)+Math.pow(t,2));return{x:e/=n,y:t/=n}}class Ui{x;y;vx;vy;ax;ay;mass;constructor(t){this.x=t.x,this.y=t.y,this.vx=t?.vx||0,this.vy=t?.vy||0,this.ax=t?.ax||0,this.ay=t?.ay||0,this.mass=t?.mass||0}distanceTo(t){return Ad(this.x,this.y,t.x,t.y)}angleTo(t){return Od(this.x,this.y,t.x,t.y)}velocityTo(t){return{vx:t.x-this.x,vy:t.y-this.y}}followTo(t,n=3){const r=this.angleTo(t),{x:i,y:s}=_c(r,n);this.vx=i,this.vy=s,this.nextFrame()}followAccelerationTo(t,n=.05){const r=this.angleTo(t),{x:i,y:s}=_c(r,n);this.ax=i,this.ay=s,this.nextFrame()}nextFrame(t){const n=t?.gravity??0,r=t?.friction??0;if(this.vx+=this.ax,this.vy+=this.ay,this.vy+=n,r>0){const i=Math.atan2(this.vy,this.vx);let s=Math.sqrt(this.vx*this.vx+this.vy*this.vy);s>r?s-=r:s=0,this.vx=Math.cos(i)*s,this.vy=Math.sin(i)*s}this.x+=this.vx,this.y+=this.vy}nextFrameEaseTo(t,n){const r=n?.gravity??0,i=n?.friction??1,s=n?.easing??.05,o=t.x-this.x,a=t.y-this.y;this.vx=o*s,this.vy=a*s,this.vy+=r,this.vx*=i,this.vy*=i,this.x+=this.vx,this.y+=this.vy}nextFrameSpringTo(t,n){const r=n?.gravity??0,i=n?.friction??.95,s=n?.spring??.03;(Array.isArray(t)?t:[t]).forEach(a=>{const u=a.x-this.x,d=a.y-this.y,g=u*s,v=d*s;this.vx+=g,this.vy+=v}),this.vy+=r,this.vx*=i,this.vy*=i,this.x+=this.vx,this.y+=this.vy}nextFrameSpringConnect(t,n){const r=n?.gravity??0,i=n?.friction??.95,s=n?.spring??.03,o=n?.springLength??100,a=this.angleTo(t);this.nextFrameSpringTo(new Ui({x:t.x-Math.cos(a)*o,y:t.y-Math.sin(a)*o}),{spring:s,friction:i,gravity:r})}}class Wi extends Ui{width;height;constructor(t){super(t),this.width=t.width,this.height=t.height}eq(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height}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){return!(t.x<this.x||t.x>this.x+this.width||t.y<this.y||t.y>this.y+this.height)}toArray(){return[this.x,this.y,this.width,this.height]}clone(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height}}class tn extends Ui{radius;constructor(t){super(t),this.radius=t?.radius??0}toSVGPathData(){return[this.x,this.y]}toSVGPathD(){return`${this.x},${this.y}`}setX(t){this.x=t}setY(t){this.y=t}setXY(t,n){this.x=t,this.y=n}eq(t){return this.x===t.x&&this.y===t.y}midPointBtw(t){return new tn({x:this.x+(t.x-this.x)/2,y:this.y+(t.y-this.y)/2})}toArray(){return[this.x,this.y]}clone(t){this.setXY(t.x,t.y)}getBoundRect(){return new Wi({x:this.x-this.radius,y:this.y-this.radius,width:this.radius*2,height:this.radius*2})}nextFrameCollisionTo(t){const n=t.x-this.x,r=t.y-this.y;if(Math.sqrt(n*n+r*r)<this.radius+t.radius){const o=Math.atan2(r,n),a=Math.sin(o),u=Math.cos(o),d={x:0,y:0},g=s(n,r,a,u,!0),v=s(this.vx,this.vy,a,u,!0),y=s(t.vx,t.vy,a,u,!0),w=v.x-y.x;v.x=((this.mass-t.mass)*v.x+2*t.mass*y.x)/(this.mass+t.mass),y.x=w+v.x;const I=Math.abs(v.x)+Math.abs(y.x),k=this.radius+t.radius-Math.abs(d.x-g.x);d.x+=v.x/I*k,g.x+=y.x/I*k;const A=s(d.x,d.y,a,u,!1),B=s(g.x,g.y,a,u,!1);t.x=this.x+B.x,t.y=this.y+B.y,this.x=this.x+A.x,this.y=this.y+A.y;const M=s(v.x,v.y,a,u,!1),N=s(y.x,y.y,a,u,!1);this.vx=M.x,this.vy=M.y,t.vx=N.x,t.vy=N.y}function s(o,a,u,d,g=!1){return{x:g?o*d+a*u:o*d-a*u,y:g?a*d-o*u:a*d+o*u}}}nextFrameBounce(t,n){const r=t.x,i=t.y,s=t.x+t.width,o=t.y+t.height,a=n?.bounce??-1;this.x+this.radius>s?(this.x=s-this.radius,this.vx*=a):this.x-this.radius<r&&(this.x=r+this.radius,this.vx*=a),this.y+this.radius>o?(this.y=o-this.radius,this.vy*=a):this.y-this.radius<i&&(this.y=i+this.radius,this.vy*=a)}}class Ld{constructor(){}static getFormatKeyNames(t){const n=Sd(),r=[];return t.ctrl&&r.push(n?"Cmd":"Ctrl"),t.shift&&r.push("Shift"),t.alt&&r.push("Alt"),typeof t.key=="string"?r.push(Xl(t.key)):Array.isArray(t.key)&&(t.key.map(i=>Xl(i)),r.push(...t.key)),r}static matchKeyScheme(t,n){const r=t.ctrl??!1,i=t.shift??!1,s=t.alt??!1;if(t.exact)return(r===n.metaKey||r===n.ctrlKey)&&i===n.shiftKey&&s===n.altKey;const o=[];return r&&o.push(r===n.metaKey||r===n.ctrlKey),i&&o.push(i===n.shiftKey),s&&o.push(s===n.altKey),o.every(a=>a)}static on(t,n){if(t?.key===void 0||t?.key===null)return n;const r=t?.target??window;let i=!1;const s=this.getFormatKeyNames(t),o=a=>{if(a.stopPropagation(),!i&&a.key!=="Control"&&a.key!=="Meta"&&a.key!=="Shift"&&a.key!=="Option"&&a.key!=="Alt"&&s.find(u=>u.toLowerCase()===a.key.toLowerCase())&&this.matchKeyScheme(t,a)){a.preventDefault();const u=n(a);if(typeof u!="function")return;const d=g=>{g.preventDefault(),u(g),r.removeEventListener("keyup",d)};r.addEventListener("keyup",d)}};return n.title=t?.title??"",n.formatedKeyNames=s,n.pause=()=>i=!0,n.restart=()=>i=!1,n.removeListener=()=>r.removeEventListener("keydown",o),r.addEventListener("keydown",o),n}}const wc=Rd("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 Rd(e,t=10){const n={},r=e.split(",");for(let i=0;i<r.length;i+=2){const s="&"+r[i+1]+";",o=parseInt(r[i],t);n[s]="&#"+o+";"}return n["\\xa0"]=" ",n}function Te(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r++)e=e.replace(new RegExp("{"+n[r]+"}","gi"),""+t[n[r]]);return e}function qi(e){let t,n;if(!e)throw new Error("cannot create a random attribute name for an undefined object");const r="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";t="";do for(t="",n=0;n<12;n++)t+=r[Math.floor(Math.random()*r.length)];while(e[t]);return t}function Fd(e){const t={left:"start",right:"end",center:"middle",start:"start",end:"end"};return t[e]||t.start}function Dd(e){const t={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return t[e]||t.alphabetic}const Jr={strokeStyle:{svgAttr:"stroke",canvas:"#000000",svg:"none",apply:"stroke"},fillStyle:{svgAttr:"fill",canvas:"#000000",svg:null,apply:"fill"},lineCap:{svgAttr:"stroke-linecap",canvas:"butt",svg:"butt",apply:"stroke"},lineJoin:{svgAttr:"stroke-linejoin",canvas:"miter",svg:"miter",apply:"stroke"},miterLimit:{svgAttr:"stroke-miterlimit",canvas:10,svg:4,apply:"stroke"},lineWidth:{svgAttr:"stroke-width",canvas:1,svg:1,apply:"stroke"},globalAlpha:{svgAttr:"opacity",canvas:1,svg:1,apply:"fill stroke"},font:{canvas:"10px sans-serif"},shadowColor:{canvas:"#000000"},shadowOffsetX:{canvas:0},shadowOffsetY:{canvas:0},shadowBlur:{canvas:0},textAlign:{canvas:"start"},textBaseline:{canvas:"alphabetic"},lineDash:{svgAttr:"stroke-dasharray",canvas:[],svg:null,apply:"stroke"}};class _o{__root;__ctx;constructor(t,n){this.__root=t,this.__ctx=n}addColorStop(t,n){const r=this.__ctx.__createElement("stop");if(r.setAttribute("offset",""+t),n.indexOf("rgba")!==-1){const s=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(n);s&&(r.setAttribute("stop-color",Te("rgb({r},{g},{b})",{r:s[1],g:s[2],b:s[3]})),r.setAttribute("stop-opacity",s[4]))}else r.setAttribute("stop-color",n);this.__root.appendChild(r)}}class bc{__root;__ctx;constructor(t,n){this.__root=t,this.__ctx=n}}class Yi{__document=document;__canvas;__ctx;width;height;__styleStack;__groupStack;__rootSVG;__ids;__SVGdefs;__currentElement;__currentElementsToStyle=null;constructor({canvas:t,width:n=500,height:r=500,enableMirroring:i=!1}){this.enableMirroring=i,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=n,this.height=r),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(Jr);for(let n=0,r=t.length;n<r;n++){const i=t[n];this[i]=Jr[i].canvas}}__getStyleState(){const t={},n=Object.keys(Jr);for(let r=0,i=n.length;r<i;r++){const s=n[r];t[s]=this[s]}return t}__applyStyleState(t){const n=Object.keys(t);for(let r=0,i=n.length;r<i;r++){const s=n[r];this[s]=t[s]}}__createElement(t,n={},r=!1){const i=this.__document.createElementNS("http://www.w3.org/2000/svg",t),s=Object.keys(n);r&&(i.setAttribute("fill","none"),i.setAttribute("stroke","none"));for(let o=0;o<s.length;o++){const a=s[o];i.setAttribute(a,n[a])}return i}__applyStyleToCurrentElement(t){let n=this.__currentElement;const r=this.__currentElementsToStyle;r&&(n.setAttribute(t,""),n=r.element,r.children.forEach(s=>{s.setAttribute(t,"")}));const i=Object.keys(Jr);for(let s=0;s<i.length;s++){const o=Jr[i[s]],a=this[i[s]];if(o.apply){if(a instanceof bc){if(a.__ctx)for(;a.__ctx.__SVGdefs.childNodes.length;){const u=a.__ctx.__SVGdefs.childNodes[0].getAttribute("id");this.__ids[u]=u,this.__SVGdefs.appendChild(a.__ctx.__SVGdefs.childNodes[0])}n.setAttribute(o.apply,Te("url(#{id})",{id:a.__root.getAttribute("id")}))}else if(a instanceof _o)n.setAttribute(o.apply,Te("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 d=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(a);n.setAttribute(o.svgAttr,Te("rgb({r},{g},{b})",{r:d[1],g:d[2],b:d[3]}));let g=parseFloat(d[4]);const v=this.globalAlpha;v!=null&&(g*=v),n.setAttribute(o.svgAttr+"-opacity",""+g)}else{let u=o.svgAttr;if(i[s]==="globalAlpha"&&(u=t+"-"+o.svgAttr,n.getAttribute(u)))continue;u&&n.setAttribute(u,a)}}}}__closestGroupOrSvg(t){return t=t||this.__currentElement,t.nodeName==="g"||t.nodeName==="svg"?t:this.__closestGroupOrSvg(t.parentNode)}getSerializedSvg(t){let n=new XMLSerializer().serializeToString(this.__rootSVG);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(n)&&(n=n.replace('xmlns="http://www.w3.org/2000/svg','xmlns:xlink="http://www.w3.org/1999/xlink')),t){const i=Object.keys(wc);for(let s=0,o=i.length;s<o;s++){const a=i[s],u=wc[a],d=new RegExp(a,"gi");d.test(n)&&(n=n.replace(d,u))}}return n}getSvg(){return this.__rootSVG}save(){const t=this.__createElement("g"),n=this.__closestGroupOrSvg();this.__groupStack.push(n),n.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 n=this.__styleStack.pop();n&&this.__applyStyleState(n)}__addTransform(t){const n=this.__closestGroupOrSvg();if(n.childNodes.length>0){this.__currentElement.nodeName==="path"&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:n,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());const i=this.__createElement("g");n.appendChild(i),this.__currentElement=i}let r=this.__currentElement.getAttribute("transform");r?r+=" ":r="",r+=t,this.__currentElement.setAttribute("transform",r)}scale(t,n){n===void 0&&(n=t),this.__addTransform(Te("scale({x},{y})",{x:t,y:n}))}rotate(t){const n=t*180/Math.PI;this.__addTransform(Te("rotate({angle},{cx},{cy})",{angle:n,cx:0,cy:0}))}translate(t,n){this.__addTransform(Te("translate({x},{y})",{x:t,y:n}))}transform(t,n,r,i,s,o){this.__addTransform(Te("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:n,c:r,d:i,e:s,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):console.error("Attempted to apply path command to node",t.nodeName)}__addPathCommand(t){this.__currentDefaultPath+=" ",this.__currentDefaultPath+=t}moveTo(t,n){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.__currentPosition={x:t,y:n},this.__addPathCommand(Te("M {x} {y}",this.__currentPosition))}closePath(){this.__currentDefaultPath&&this.__addPathCommand("Z")}lineTo(t,n){this.__currentPosition={x:t,y:n},this.__currentDefaultPath.indexOf("M")>-1?this.__addPathCommand(Te("L {x} {y}",this.__currentPosition)):this.__addPathCommand(Te("M {x} {y}",this.__currentPosition))}bezierCurveTo(t,n,r,i,s,o){this.__currentPosition={x:s,y:o},this.__addPathCommand(Te("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:n,cp2x:r,cp2y:i,x:s,y:o}))}quadraticCurveTo(t,n,r,i){this.__currentPosition={x:r,y:i},this.__addPathCommand(Te("Q {cpx} {cpy} {x} {y}",{cpx:t,cpy:n,x:r,y:i}))}normalize(t){const n=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/n,t[1]/n]}arcTo(t,n,r,i,s){const o=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(typeof o>"u"||typeof a>"u")return;if(s<0)throw new Error("IndexSizeError: The radius provided ("+s+") is negative.");if(o===t&&a===n||t===r&&n===i||s===0){this.lineTo(t,n);return}const u=this.normalize([o-t,a-n]),d=this.normalize([r-t,i-n]);if(u[0]*d[1]===u[1]*d[0]){this.lineTo(t,n);return}const g=u[0]*d[0]+u[1]*d[1],v=Math.acos(Math.abs(g)),y=this.normalize([u[0]+d[0],u[1]+d[1]]),w=s/Math.sin(v/2),I=t+w*y[0],k=n+w*y[1],A=[-u[1],u[0]],B=[d[1],-d[0]],M=function(U){const H=U[0];return U[1]>=0?Math.acos(H):-Math.acos(H)},N=M(A),D=M(B);this.lineTo(I+A[0]*s,k+A[1]*s),this.arc(I,k,s,N,D)}stroke(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","fill stroke markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("stroke")}fill(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","stroke fill markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("fill")}rect(t,n,r,i){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(t,n),this.lineTo(t+r,n),this.lineTo(t+r,n+i),this.lineTo(t,n+i),this.lineTo(t,n),this.closePath()}fillRect(t,n,r,i){const s=this.__createElement("rect",{x:t,y:n,width:r,height:i},!0);this.__closestGroupOrSvg().appendChild(s),this.__currentElement=s,this.__applyStyleToCurrentElement("fill")}strokeRect(t,n,r,i){const s=this.__createElement("rect",{x:t,y:n,width:r,height:i},!0);this.__closestGroupOrSvg().appendChild(s),this.__currentElement=s,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const n=this.__closestGroupOrSvg().getAttribute("transform"),r=this.__rootSVG.childNodes[1],i=r.childNodes;for(let s=i.length-1;s>=0;s--)i[s]&&r.removeChild(i[s]);this.__currentElement=r,this.__groupStack=[],n&&this.__addTransform(n)}clearRect(t,n,r,i){if(t===0&&n===0&&r===this.width&&i===this.height){this.__clearCanvas();return}const s=this.__closestGroupOrSvg(),o=this.__createElement("rect",{x:t,y:n,width:r,height:i,fill:"#FFFFFF"},!0);s.appendChild(o)}createLinearGradient(t,n,r,i){const s=this.__createElement("linearGradient",{id:qi(this.__ids),x1:t+"px",x2:r+"px",y1:n+"px",y2:i+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(s),new _o(s,this)}createRadialGradient(t,n,r,i,s,o){const a=this.__createElement("radialGradient",{id:qi(this.__ids),cx:i+"px",cy:s+"px",r:o+"px",fx:t+"px",fy:n+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(a),new _o(a,this)}__parseFont(){const n=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext]))(?:\s*\/\s*(normal|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext])))?\s*([-,'"\sa-z0-9]+?)\s*$/i.exec(this.font),r={style:n[1]||"normal",size:n[4]||"10px",family:n[6]||"sans-serif",weight:n[3]||"normal",decoration:n[2]||"normal",href:null};return this.__fontUnderline==="underline"&&(r.decoration="underline"),this.__fontHref&&(r.href=this.__fontHref),r}__wrapTextLink(t,n){if(t.href){const r=this.__createElement("a");return r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.href),r.appendChild(n),r}return n}__applyText(t,n,r,i){const s=this.__parseFont(),o=this.__closestGroupOrSvg(),a=this.__createElement("text",{"font-family":s.family,"font-size":s.size,"font-style":s.style,"font-weight":s.weight,"text-decoration":s.decoration,x:n,y:r,"text-anchor":Fd(this.textAlign),"dominant-baseline":Dd(this.textBaseline)},!0);a.appendChild(this.__document.createTextNode(t)),this.__currentElement=a,this.__applyStyleToCurrentElement(i),o.appendChild(this.__wrapTextLink(s,a))}fillText(t,n,r){this.__applyText(t,n,r,"fill")}strokeText(t,n,r){this.__applyText(t,n,r,"stroke")}measureText(t){return this.__ctx.font=this.font,this.__ctx.measureText(t)}arc(t,n,r,i,s,o){if(i===s)return;i=i%(2*Math.PI),s=s%(2*Math.PI),i===s&&(s=(s+2*Math.PI-.001*(o?-1:1))%(2*Math.PI));const a=t+r*Math.cos(s),u=n+r*Math.sin(s),d=t+r*Math.cos(i),g=n+r*Math.sin(i),v=o?0:1;let y=0,w=s-i;w<0&&(w+=2*Math.PI),o?y=w>Math.PI?0:1:y=w>Math.PI?1:0,this.lineTo(d,g),this.__addPathCommand(Te("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:r,ry:r,xAxisRotation:0,largeArcFlag:y,sweepFlag:v,endX:a,endY:u})),this.__currentPosition={x:a,y:u}}clip(){const t=this.__closestGroupOrSvg(),n=this.__createElement("clipPath"),r=qi(this.__ids),i=this.__createElement("g");this.__applyCurrentDefaultPath(),t.removeChild(this.__currentElement),n.setAttribute("id",r),n.appendChild(this.__currentElement),this.__SVGdefs.appendChild(n),t.setAttribute("clip-path",Te("url(#{id})",{id:r})),t.appendChild(i),this.__currentElement=i}drawImage(...t){let n=t[0],r,i,s,o,a=0,u=0,d,g,v,y,w,I,k,A;if(t.length===3)r=t[1],i=t[2],d=n.width,g=n.height,s=d,o=g;else if(t.length===5)r=t[1],i=t[2],s=t[3],o=t[4],d=n.width,g=n.height;else if(t.length===9)a=t[1],u=t[2],d=t[3],g=t[4],r=t[5],i=t[6],s=t[7],o=t[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const B=this.__closestGroupOrSvg();this.__currentElement;const M="translate("+r+", "+i+")";if(n instanceof Yi){if(v=n.getSvg().cloneNode(!0),v.childNodes&&v.childNodes.length>1){for(y=v.childNodes[0];y.childNodes.length;)A=y.childNodes[0].getAttribute("id"),this.__ids[A]=A,this.__SVGdefs.appendChild(y.childNodes[0]);if(w=v.childNodes[1],w){const N=w.getAttribute("transform");let D;N?D=N+" "+M:D=M,w.setAttribute("transform",D),B.appendChild(w)}}}else(n.nodeName==="CANVAS"||n.nodeName==="IMG")&&(I=this.__createElement("image"),I.setAttribute("width",s),I.setAttribute("height",o),I.setAttribute("preserveAspectRatio","none"),(a||u||d!==n.width||g!==n.height)&&(k=this.__document.createElement("canvas"),k.width=s,k.height=o,k.getContext("2d")?.drawImage(n,a,u,d,g,0,0,s,o),n=k),I.setAttribute("transform",M),I.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n.nodeName==="CANVAS"?n.toDataURL():n.getAttribute("src")),B.appendChild(I))}createPattern(t,n){const r=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),i=qi(this.__ids);let s;return r.setAttribute("id",i),t.nodeName==="CANVAS"||t.nodeName==="IMG"?(s=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),s.setAttribute("width",""+t.width),s.setAttribute("height",""+t.height),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.nodeName==="CANVAS"?t.toDataURL():t.getAttribute("src")),r.appendChild(s),this.__SVGdefs.appendChild(r)):t instanceof Yi&&(r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.appendChild(t.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(r)),new bc(r,this)}setLineDash(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}function $d(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ec={},xo={exports:{}},Tc;function zd(){return Tc||(Tc=1,function(e){(function(t){var n="0.4.0",r="hasOwnProperty",i=/[\.\/]/,s="*",o=function(){},a=function(y,w){return y-w},u,d,g={n:{}},v=function(y,w){var I=d,k=Array.prototype.slice.call(arguments,2),A=v.listeners(y),B=0,M,N=[],D={},U=[];u=y,d=0;for(var H=0,F=A.length;H<F;H++)"zIndex"in A[H]&&(N.push(A[H].zIndex),A[H].zIndex<0&&(D[A[H].zIndex]=A[H]));for(N.sort(a);N[B]<0;)if(M=D[N[B++]],U.push(M.apply(w,k)),d)return d=I,U;for(H=0;H<F;H++)if(M=A[H],"zIndex"in M)if(M.zIndex==N[B]){if(U.push(M.apply(w,k)),d)return d=I,U;do if(B++,M=D[N[B]],M&&U.push(M.apply(w,k)),d)return d=I,U;while(M)}else D[M.zIndex]=M;else if(U.push(M.apply(w,k)),d)return d=I,U;return d=I,U.length?U:null};v.listeners=function(y){var w=y.split(i),I=g,k,A,B,M,N,D,U,H,F=[I],it=[];for(M=0,N=w.length;M<N;M++){for(H=[],D=0,U=F.length;D<U;D++)for(I=F[D].n,A=[I[w[M]],I[s]],B=2;B--;)k=A[B],k&&(H.push(k),it=it.concat(k.f||[]));F=H}return it},v.on=function(y,w){for(var I=y.split(i),k=g,A=0,B=I.length;A<B;A++)k=k.n,!k[I[A]]&&(k[I[A]]={n:{}}),k=k[I[A]];for(k.f=k.f||[],A=0,B=k.f.length;A<B;A++)if(k.f[A]==w)return o;return k.f.push(w),function(M){+M==+M&&(w.zIndex=+M)}},v.stop=function(){d=1},v.nt=function(y){return y?new RegExp("(?:\\.|\\/|^)"+y+"(?:\\.|\\/|$)").test(u):u},v.unbind=function(y,w){var I=y.split(i),k,A,B,M,N,D,U,H=[g];for(M=0,N=I.length;M<N;M++)for(D=0;D<H.length;D+=B.length-2){if(B=[D,1],k=H[D].n,I[M]!=s)k[I[M]]&&B.push(k[I[M]]);else for(A in k)k[r](A)&&B.push(k[A]);H.splice.apply(H,B)}for(M=0,N=H.length;M<N;M++)for(k=H[M];k.n;){if(w){if(k.f){for(D=0,U=k.f.length;D<U;D++)if(k.f[D]==w){k.f.splice(D,1);break}!k.f.length&&delete k.f}for(A in k.n)if(k.n[r](A)&&k.n[A].f){var F=k.n[A].f;for(D=0,U=F.length;D<U;D++)if(F[D]==w){F.splice(D,1);break}!F.length&&delete k.n[A].f}}else{delete k.f;for(A in k.n)k.n[r](A)&&k.n[A].f&&delete k.n[A].f}k=k.n}},v.once=function(y,w){var I=function(){w.apply(this,arguments),v.unbind(y,I)};return v.on(y,I)},v.version=n,v.toString=function(){return"You are running Eve "+n},e.exports?e.exports=v:t.eve=v})(ld)}(xo)),xo.exports}(function(e){if(typeof $d=="function")var t=zd();(function(){function n(y){var w=function(I){w.parse(I)};return w.mode="text",w.type=String(y||"html").toLowerCase(),w.textchunk="",w.raw="",w.parse=u,w.on=o,w.event=s,w.end=i,w}function r(y,w,I){y==`
|
|
45
|
-
`&&this.event("newline"),v[this.mode].call(this,y,w,I)}function i(){r.call(this,"eof"),this.event("eof")}function s(y,w,I){typeof t=="function"&&t("elemental."+y+"."+w,null,w,I||"",this.raw);for(var k=this.events&&this.events[y],A=k&&k.length;A--;)try{this.events[y][A](w,I||"",this.raw)}catch{}this.raw=""}function o(y,w){this.events=this.events||{},this.events[y]=this.events[y]||[],this.events[y].push(w)}function a(y,w){return y&&(y.charAt?y.charAt(w):y[w])}function u(y){y=y||Object(y);for(var w=1,I=y.length+1,k,A,B=a(y,0);w<I;w++)k=A,A=B,B=a(y,w),this.raw+=A,r.call(this,A,B,k);this._beforeEnd=function(){r.call(this,"","",A)}}var d=/[\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=function(){for(var y in this.attr)this.attr.hasOwnProperty(y)&&this.event("attr",y,{value:this.attr[y],tagname:this.tagname,attr:this.attr})},v={text:function(y,w,I){switch(y){case"<":case"eof":this.nodename="",this.attr={},this.mode="tag name start",this.raw=this.raw.slice(0,-1),this.textchunk&&this.event("text",this.textchunk),this.raw+=y,this.textchunk="";break;default:this.textchunk+=y}},special:function(y,w,I){if(I=="!"&&y=="-"&&w=="-")this.mode="comment start";else{if(this.textchunk=="[CDATA"&&y=="["){this.mode="cdata",this.textchunk="";return}if(y==">"||y=="eof"){this.event("special",this.textchunk),this.mode="text",this.textchunk="";return}this.textchunk+=y}},cdata:function(y,w,I){I=="]"&&y=="]"&&w==">"?(this.mode="cdata end",this.textchunk=this.textchunk.slice(0,-1)):(y=="eof"&&v["cdata end"].call(this),this.textchunk+=y)},"cdata end":function(y,w,I){this.event("cdata",this.textchunk),this.textchunk="",this.mode="text"},"comment start":function(y,w,I){w==">"||y=="eof"?(this.event("comment",""),this.mode="comment instant end"):this.mode="comment"},"comment instant end":function(y,w,I){this.mode="text"},comment:function(y,w,I){y=="-"&&I=="-"&&w==">"?(this.mode="comment end",this.textchunk=this.textchunk.slice(0,-1)):y=="eof"?this.event("comment",this.textchunk):this.textchunk+=y},"comment end":function(y,w,I){this.event("comment",this.textchunk),this.textchunk="",this.mode="text"},declaration:function(y,w,I){y=="?"&&w==">"?this.mode="declaration end":(y=="eof"&&this.event("comment",this.textchunk),this.textchunk+=y)},"declaration end":function(y,w,I){this.event("comment",this.textchunk),this.textchunk="",this.mode="text"},"tag name start":function(y,w,I){if(y=="eof")this.event("text","<");else if(!d.test(y)){if(this.mode="tag name",y=="/"){this.mode="close tag name start";return}if(y=="!"){this.mode="special",this.textchunk="";return}if(y=="?"){this.mode="declaration";return}v[this.mode].call(this,y,w,I)}},"close tag name start":function(y,w,I){d.test(y)||(this.mode="close tag name",this.tagname="",this.nodename="",v[this.mode].call(this,y,w,I))},"close tag name":function(y,w,I){if(d.test(y))this.tagname=this.nodename;else switch(y){case">":this.event("/tag",this.tagname||this.nodename),this.mode="text";break;default:!this.tagname&&(this.nodename+=y)}},"tag name":function(y,w,I){if(d.test(y))this.tagname=this.nodename,this.nodename="",this.mode="attr start";else switch(y){case">":this.event("tag",this.nodename),this.mode="text";break;default:this.nodename+=y}},"attr start":function(y,w,I){d.test(y)||(this.mode="attr",this.nodename="",v[this.mode].call(this,y,w,I))},attr:function(y,w,I){if(d.test(y)||y=="=")this.attr[this.nodename]="",this.mode="attr value start";else switch(y){case">":this.nodename=="/"?(delete this.attr["/"],this.event("tag",this.tagname,this.attr),g.call(this),this.event("/tag",this.tagname,!0)):(this.nodename&&(this.attr[this.nodename]=""),this.event("tag",this.tagname,this.attr),g.call(this)),this.mode="text";break;default:this.nodename+=y}},"attr value start":function(y,w,I){if(!d.test(y)){if(this.mode="attr value",this.quote=!1,y=="'"||y=='"'){this.quote=y;return}v[this.mode].call(this,y,w,I)}},"attr value":function(y,w,I){if(d.test(y)&&!this.quote)this.mode="attr start";else if(y==">"&&!this.quote)this.event("tag",this.tagname,this.attr),this.mode="text";else switch(y){case'"':case"'":this.quote==y&&I!="\\"&&(this.mode="attr start");break;default:this.attr[this.nodename]+=y}}};n.version="0.2.1",e.elemental=n,e.eve=t})()})(Ec);const Cc=po(Ec),Sc=[1,0,0,1,0,0],kc=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class _e{value;matrix3d;isEverTo3d=!1;_prev_translate_z=0;_prev_rotate=0;_prev_rotate_x=0;_prev_rotate_y=0;_prev_rotate_z=0;_prev_scale_z=1;constructor(t=Sc){this.value=Array.from(t),this.matrix3d=this.toMatrix3D()}unit(){return this.value=Array.from(Sc),this.matrix3d=this.toMatrix3D(),this}transformPoint(t,n,r=0,i=0){const s=t-r,o=n-i;return t=s*this.value[0]+o*this.value[2]+this.value[4],n=s*this.value[1]+o*this.value[3]+this.value[5],[t+r,n+i]}fromString(t){const n=Yl("number",t);return n.length===6?n.forEach((r,i)=>{r.fullMatch&&(this.value[i]=parseFloat(r.fullMatch))}):this.unit(),this}toMatrix3D(t=this.matrix3d){const n=[this.value[0],this.value[1],0,0,this.value[2],this.value[3],0,0,0,0,1,0,this.value[4],this.value[5],0,1];return t?(t.value=n,t):new cr(n)}offset(t=0,n=0){return[t-this.value[4],n-this.value[5]]}clone(){return new _e(this.value)}multiply(t){const n=this.value;let r;t instanceof _e?r=t.value:r=t;const i=n[0]*r[0]+n[2]*r[1],s=n[1]*r[0]+n[3]*r[1],o=n[0]*r[2]+n[2]*r[3],a=n[1]*r[2]+n[3]*r[3],u=n[0]*r[4]+n[2]*r[5]+n[4],d=n[1]*r[4]+n[3]*r[5]+n[5];return n[0]=i,n[1]=s,n[2]=o,n[3]=a,n[4]=u,n[5]=d,this}inverse(){const t=new _e(this.value),n=t.value,r=1/(n[0]*n[3]-n[1]*n[2]),i=n[3]*r,s=-n[1]*r,o=-n[2]*r,a=n[0]*r,u=r*(n[2]*n[5]-n[3]*n[4]),d=r*(n[1]*n[4]-n[0]*n[5]);return n[0]=i,n[1]=s,n[2]=o,n[3]=a,n[4]=u,n[5]=d,t}translate(t,n){return this.matrix3d.translate(t,n,0),this.multiply([1,0,0,1,t,n])}translateTo(t,n){const r=this.offset(t,n);return this.translate(r[0],r[1])}translateX(t){return this.translate(t,0)}translateXTo(t){return this.translateTo(t,this.value[5])}translateY(t){return this.translate(0,t)}translateYTo(t){return this.translateTo(this.value[4],t)}translateZ(t){return this.isEverTo3d=!0,this.matrix3d.translate(0,0,t)}translateZTo(t){return this.translateZ(t-this._prev_translate_z),this._prev_translate_z=t,this}translate3d(t,n,r){return this.isEverTo3d=!0,this.matrix3d.translate(t,n,r)}translate3dTo(t,n,r){return this.translate3d(t-this.matrix3d.value[12],t-this.matrix3d.value[13],r-this._prev_translate_z),this._prev_translate_z=r,this}rotate(t,n=0,r=0){const i=yo(t),s=+Math.cos(i).toFixed(9),o=+Math.sin(i).toFixed(9);return this.multiply([s,o,-o,s,n,r]),this.translate(-n,-r),this}rotateTo(t,n=0,r=0){return this.rotate(t-this._prev_rotate,n,r),this._prev_rotate=t,this}rotateX(t){return this.isEverTo3d=!0,this.matrix3d.rotate("x",t)}rotateXTo(t){return this.rotateX(t-this._prev_rotate_x),this._prev_rotate_x=t,this}rotateY(t){return this.isEverTo3d=!0,this.matrix3d.rotate("y",t)}rotateYTo(t){return this.rotateY(t-this._prev_rotate_y),this._prev_rotate_y=t,this}rotateZ(t){return this.isEverTo3d=!0,this.matrix3d.rotate("z",t)}rotateZTo(t){return this.rotateZ(t-this._prev_rotate_z),this._prev_rotate_z=t,this}rotate3d(t,n,r){return this.isEverTo3d=!0,this.matrix3d.rotate("x",t).rotate("y",n).rotate("z",r)}rotate3dTo(t,n,r){return this.rotate3d(t-this._prev_rotate_x,n-this._prev_rotate_y,r-this._prev_rotate_z),this._prev_rotate_x=t,this._prev_rotate_y=n,this._prev_rotate_z=r,this}scale(t,n=t,r=0,i=0){return this.matrix3d.scale(t,n,1),this.translate(r,i),this.multiply([t,0,0,n,0,0]),this.translate(-r,-i),this}scaleTo(t,n=t,r=0,i=0){return this.scale(t/this.value[0],n/this.value[3],r,i),this}scaleX(t){return this.scale(t,1)}scaleXTo(t){return this.scale(t/this.value[0],1)}scaleY(t){return this.scale(1,t)}scaleYTo(t){return this.scale(1,t/this.value[3])}scaleZ(t){return this.isEverTo3d=!0,this.matrix3d.scale(1,1,t)}scaleZTo(t){return this.scaleZ(t/this._prev_scale_z),this._prev_scale_z=t,this}scale3d(t,n,r){return this.isEverTo3d=!0,this.matrix3d.scale(t,n,r)}scale3dTo(t,n,r){return this.scale3d(t/this.matrix3d.value[0],n/this.matrix3d.value[5],r/this._prev_scale_z),this._prev_scale_z=r,this}skew(t,n=t){const r=t*Math.PI/180,i=n*Math.PI/180,s=Math.tan(r),o=Math.tan(i);return this.multiply([1,o,s,1,0,0])}skewTo(t,n=t){return this.skew(t-this.value[2],n-this.value[1])}skewX(t){return this.skew(t,this.value[1])}skewXTo(t){return this.skewTo(t,this.value[1])}skewY(t){return this.skew(this.value[2],t)}skewYTo(t){return this.skewTo(this.value[2],t)}skewZ(t){return this}skewZTo(t){return this}skew3d(t,n,r){return this}skew3dTo(t,n,r){return this}split(){const t={dx:0,dy:0,scalex:1,scaley:1,shear:1,rotate:0,isSimple:!0,isSuperSimple:!0,noRotation:!1};t.dx=this.value[4],t.dy=this.value[5];const n=[[this.value[0],this.value[2]],[this.value[1],this.value[3]]];t.scalex=Math.sqrt(Math.pow(n[0][0],2)+Math.pow(n[0][1],2));let r=xc(n[0][0],n[0][1]);n[0][0]=r.x,n[0][1]=r.y,t.shear=n[0][0]*n[1][0]+n[0][1]*n[1][1],n[1]=[n[1][0]-n[0][0]*t.shear,n[1][1]-n[0][1]*t.shear],t.scaley=Math.sqrt(Math.pow(n[1][0],2)+Math.pow(n[1][1],2)),r=xc(n[1][0],n[1][1]),n[1][0]=r.x,n[1][1]=r.y,t.shear/=t.scaley;const i=-n[0][1],s=n[1][1];return s<0?(t.rotate=Nd(Math.acos(s)),i<0&&(t.rotate=360-t.rotate)):t.rotate=yo(Math.asin(i)),t.isSimple=!+t.shear.toFixed(9)&&(t.scalex.toFixed(9)==t.scaley.toFixed(9)||!t.rotate),t.isSuperSimple=!+t.shear.toFixed(9)&&t.scalex.toFixed(9)==t.scaley.toFixed(9)&&!t.rotate,t.noRotation=!+t.shear.toFixed(9)&&!t.rotate,t}static split2(t){const n=Math.atan2(t[1],t[0]),r=Math.pow(t[0],2)+Math.pow(t[1],2),i=Math.sqrt(r),s=(t[0]*t[3]-t[2]*t[1])/i;return{rotation:n/(Math.PI/180),scaleX:i,scaleY:s,x:t[4],y:t[5]}}static getGroupCoords(t,n){const r=t[0],i=t[1],s=t[2],o=t[3],a=t[4],u=t[5],d=n[0],g=n[1],v=n[2],y=n[3],w=n[4],I=n[5],k=d*y,A=g*v,B=(v*i-r*y)/(A-k),M=(d*i-r*g)/(k-A),N=(v*o-s*y)/(A-k),D=(d*o-s*g)/(k-A),U=(v*(u-I)+y*(w-a))/(A-k),H=(d*(u-I)+g*(w-a))/(k-A),F=[B,M,N,D,U,H];return _e.split2(F)}toTransformString(){const t=this.split();return t.isSimple?(t.scalex=+t.scalex.toFixed(4),t.scaley=+t.scaley.toFixed(4),t.rotate=+t.rotate.toFixed(4),(t.dx&&t.dy?"t"+[t.dx,t.dy]:"")+(t.scalex!=1||t.scaley!=1?"s"+[t.scalex,t.scaley,0,0]:"")+(t.rotate?"r"+[t.rotate,0,0]:"")):"matrix"+[this.value[0],this.value[1],this.value[2],this.value[3],this.value[4],this.value[5]]}toString(){return this.isEverTo3d?this.toMatrix3DString():`matrix(${this.value.map(t=>Ql(t,6)).join(",")})`}toMatrix3DString(){return this.matrix3d.toString()}toFilter(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.value[0]+", M12="+this.value[2]+", M21="+this.value[1]+", M22="+this.value[3]+", Dx="+this.value[4]+", Dy="+this.value[5]+", sizingmethod='auto expand')"}}class cr{value;constructor(t=kc){this.value=Array.from(t)}unit(){return this.value=Array.from(kc),this}fromString(t){const n=Yl("number",t);return n.length===16?n.forEach((r,i)=>{r.fullMatch&&(this.value[i]=parseFloat(r.fullMatch))}):this.unit(),this}toMatrix(t){const n=[this.value[0],this.value[1],this.value[4],this.value[5],this.value[12],this.value[13]];return t?(t.value=n,t):new _e(n)}multiplyMatrix(t){const n=this.value[0],r=this.value[1],i=this.value[2],s=this.value[3],o=this.value[4],a=this.value[5],u=this.value[6],d=this.value[7],g=this.value[8],v=this.value[9],y=this.value[10],w=this.value[11],I=this.value[12],k=this.value[13],A=this.value[14],B=this.value[15],M=t.value[0],N=t.value[1],D=t.value[2],U=t.value[3],H=M*n+N*o+D*g+U*I,F=M*r+N*a+D*v+U*k,it=M*i+N*u+D*y+U*A,ut=M*s+N*d+D*w+U*B;return new _e([H,F,it,ut,0,0])}multiply(t){const n=new _e([t.value[0],t.value[1],t.value[2],t.value[3],0,0]),r=new _e([t.value[4],t.value[5],t.value[6],t.value[7],0,0]),i=new _e([t.value[8],t.value[9],t.value[10],t.value[11],0,0]),s=new _e([t.value[12],t.value[13],t.value[14],t.value[15],0,0]),o=this.multiplyMatrix(n),a=this.multiplyMatrix(r),u=this.multiplyMatrix(i),d=this.multiplyMatrix(s);return this.value[0]=o.value[0],this.value[1]=o.value[1],this.value[2]=o.value[2],this.value[3]=o.value[3],this.value[4]=a.value[0],this.value[5]=a.value[1],this.value[6]=a.value[2],this.value[7]=a.value[3],this.value[8]=u.value[0],this.value[9]=u.value[1],this.value[10]=u.value[2],this.value[11]=u.value[3],this.value[12]=d.value[0],this.value[13]=d.value[1],this.value[14]=d.value[2],this.value[15]=d.value[3],this}translate(t=0,n=0,r=0){return this.multiply(new cr([1,0,0,0,0,1,0,0,0,0,1,0,t,n,r,1]))}scale(t=1,n=1,r=1){return this.multiply(new cr([t,0,0,0,0,n,0,0,0,0,r,0,0,0,0,1]))}rotate(t,n){const r=yo(n),i=Math.sin,s=Math.cos;let o;switch(t){case"x":o=[1,0,0,0,0,s(r),i(r),0,0,-i(r),s(r),0,0,0,0,1];break;case"y":o=[s(r),0,-i(r),0,0,1,0,0,i(r),0,s(r),0,0,0,0,1];break;case"z":o=[s(r),i(r),0,0,-i(r),s(r),0,0,0,0,1,0,0,0,0,1];break}return this.multiply(new cr(o))}toString(){return`matrix3d(${this.value.map(t=>Ql(t,6)).join(",")})`}}function ti(e){const t=new _e;return e.replace(/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,function(n,r,i){i.indexOf(",")>=0?i=i.split(/\s*,\s*/):i=i.split(/\s+/);const s=[];for(let o=0,a=i.length;o<a;o++)i[o].trim()&&s.push(parseFloat(""+i[o]));switch(r.toLowerCase()){case"t":case"translate":t.translate(s[0],s[1]);break;case"translatex":t.translateX(s[0]);break;case"translatey":t.translateY(s[0]);break;case"translatez":t.translateZ(s[0]);break;case"translate3d":t.translate3d(s[0],s[1],s[2]);break;case"r":case"rotate":t.rotate(s[0],s[1]??0,s[2]??0);break;case"rotatex":t.rotateX(s[0]);break;case"rotatey":t.rotateY(s[0]);break;case"rotatez":t.rotateZ(s[0]);break;case"rotate3d":t.rotate3d(s[0],s[1],s[2]);break;case"s":case"scale":t.scale(s[0],s[1]??s[0]);break;case"scalex":t.scaleX(s[0]);break;case"scaley":t.scaleY(s[0]);break;case"scalez":t.scaleZ(s[0]);break;case"scale3d":t.scale3d(s[0],s[1],s[2]);break;case"skew":t.skew(s[0],s[1]??0);break;case"skewx":t.skewX(s[0]);break;case"skewy":t.skewY(s[0]);break;case"skewz":t.skewZ(s[0]);break;case"skew3d":t.skew3d(s[0],s[1],s[2]);break;case"m":case"matrix":t.multiply([s[0],s[1],s[2],s[3],s[4],s[5]]);break;case"matrix3d":t.matrix3d.multiply(new cr(s));break}return""}),t}function wo(e,t,n,r,i,s){if(typeof i>"u"||typeof s>"u"){const o=e-n,a=t-r;return!o&&!a?0:(180+Math.atan2(-a,-o)*180/Math.PI+360)%360}else return wo(e,t,i,s)-wo(n,r,i,s)}const At=Cc.eve,Bd=Cc.elemental,Xi={cursor:1,cx:0,cy:0,fill:1,"fill-opacity":0,font:1,"font-family":1,"font-size":0,"font-style":1,"font-weight":1,height:0,"letter-spacing":0,opacity:0,r:0,rx:0,ry:0,src:1,stroke:1,"stroke-linecap":1,"stroke-linejoin":1,"stroke-miterlimit":0,"stroke-opacity":0,"stroke-width":0,"text-anchor":1,width:0,x:0,y:0};function bo(e,t,n){for(var r=(e+"").split(";"),i=/^\s+|\s+$/g,s,o=0,a=r.length;o<a;o++){var u=r[o].split(":");s=u[0].replace(i,"").replace(/[A-Z]/g,function(d){return"-"+d.toLowerCase()}),(!n||s in n)&&(t[s]=u[1].replace(i,""),n&&!n[s]&&(t[s]=parseFloat(t[s])))}}function Gd(e){const t=Bd(),n=[],r=[],i={};let s,o,a;const u={};function d(g,v){return function(y,w){const I={type:v||g};n.push(I);for(let k in w)Object.prototype.hasOwnProperty.call(w,k)&&At("rappar."+g+".attr."+k,I,w[k],k);At("rappar."+g+".attrend",I,w)}}return At.on("rappar.polygon.attr.points",function(g){this.path="M"+g+"z",At.stop()}),At.on("rappar.image.attr.xlink:href",function(g){this.src=g,At.stop()}),At.on("rappar.path.attr.d",function(g){this.path=g,At.stop()}),At.on("rappar.*.attr.transform",function(g){this.transform=ti(g).toTransformString(),At.stop()}),At.on("rappar.*.attr.fill",function(g){var v=g.match(/url\(#([^)]+)\)/),y=this;v&&(v=v[1],i[v]?this.fill=i[v]:At.on("rappar.found."+v,function(w){y.fill=w}),At.stop())}),At.on("rappar.line.attrend",function(g){this.path="M"+[g.x1,g.y1,g.x2,g.y2]}),At.on("rappar.*.attrend",function(){for(var g=r.length;g--;)if(r[g]!=this){let y="",w="";for(var v in r[g])v=="transform"?y=r[g].transform:v=="class"&&u["."+r[g][v]]?w=u["."+r[g][v]].join(";")+";"+w:v=="id"&&u["#"+r[g][v]]?w=u["#"+r[g][v]].join(";")+";"+w:typeof this[v]>"u"&&(this[v]=r[g][v]);this.type&&(typeof this.transform>"u"?this.transform=y:this.transform+=y,typeof this.style>"u"?this.style=w:this.style=w+this.style,bo(this.style,this,Xi))}}),At.on("rappar.*.attr.style",function(g){var v=function(){bo(g,this,Xi),At.unbind("rappar.*.attrend",v)};At.on("rappar.*.attrend",v),At.stop()}),At.on("rappar.*.attr.*",function(g,v){v in Xi&&(this[v]=Xi[v]?g:parseFloat(g))}),At.on("elemental.tag.circle",d("circle")),At.on("elemental.tag.ellipse",d("ellipse")),At.on("elemental.tag.polygon",d("polygon","path")),At.on("elemental.tag.path",d("path")),At.on("elemental.tag.line",d("line","path")),At.on("elemental.tag.rect",d("rect")),At.on("elemental.tag.image",d("image")),At.on("elemental.tag.text",d("text")),At.on("elemental.text",function(g){try{const v=gd(g);for(let y of v.stylesheet.rules){for(let w of y.selectors)u[w]=[];for(let w of y.declarations)for(let I of y.selectors)u[I].push(`${w.property}:${w.value}`)}}catch{}}),At.on("elemental.tag.svg",function(g,v){let y=v.width||0,w=v.height||0;if(!y||!w){const I=v.viewBox.split(/\s+/gi);y=parseFloat(I[2])-parseFloat(I[0]),w=parseFloat(I[3])-parseFloat(I[1])}n.push({type:"viewbox",width:y,height:w})}),At.on("rappar.text.attrend",function(){s="",o=this,this["text-anchor"]=this["text-anchor"]||"start"}),At.on("elemental.text",function(g,v,y){o&&(s+=y)}),At.on("elemental./tag.text",function(){o.text=s,o=null}),At.on("elemental.tag.g",function(g,v){var y={};r.push(y);for(var w in v)Object.prototype.hasOwnProperty.call(v,w)&&(y[w]=v[w],At("rappar.g.attr."+w,y,v[w],w));At("rappar.g.attrend",y)}),At.on("elemental./tag.g",function(g,v){r.pop()}),At.on("elemental.tag.linearGradient",function(g,v){a={id:v.id,angle:+(360+wo(v.x1,v.y1,v.x2,v.y2,v.x1+100,v.y1)).toFixed(2),stops:[]}}),At.on("elemental./tag.linearGradient",function(){for(var g=[a.angle],v,y=0,w=a.stops.length;y<w;y++)v=a.stops[y],y&&y!=w-1?g.push(v.color+":"+v.offset):g.push(v.color);i[a.id]=g.join("-"),At("rappar.found."+a.id,null,i[a.id])}),At.on("elemental.tag.radialGradient",function(g,v){a={id:v.id,stops:[]}}),At.on("elemental./tag.radialGradient",function(){for(var g=[],v,y=0,w=a.stops.length;y<w;y++)v=a.stops[y],y&&y!=w-1?g.push(v.color+":"+v.offset):g.push(v.color);i[a.id]="r"+g.join("-"),At("rappar.found."+a.id,null,i[a.id])}),At.on("elemental.tag.stop",function(g,v){var y={};v.style&&bo(v.style,y),y.offset=y.offset||v.offset,y.color=y["stop-color"]||v["stop-color"],y.opacity=y["stop-opacity"]||v["stop-opacity"],~(y.offset+"").indexOf("%")?y.offset=parseFloat(y.offset):y.offset=parseFloat(y.offset)*100,y.offset=+y.offset.toFixed(2),a.stops.push(y)}),t(e),t.end(),n}function Vd(e){return typeof e!="string"?!1:(e=e.trim(),/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(e)&&/[\dz]$/i.test(e)&&e.length>4)}const Eo={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},jd=/([astvzqmhlc])([^astvzqmhlc]*)/gi,Hd=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function Ud(e){const t=e.match(Hd);return t?t.map(Number):[]}function To(e){const t=[];return e.replace(jd,function(n,r,i){let s=r.toLowerCase();for(i=Ud(i),s=="m"&&i.length>2&&(t.push([r].concat(i.splice(0,2))),s="l",r=r=="m"?"l":"L");;){if(i.length==Eo[s])return i.unshift(r),t.push(i);if(i.length<Eo[s])throw new Error("malformed path data");t.push([r].concat(i.splice(0,Eo[s])))}}),t}function Co(e){var t=0,n=0,r=0,i=0;return e.map(function(s){s=s.slice();var o=s[0],a=o.toUpperCase();if(o!=a)switch(s[0]=a,o){case"a":s[6]+=r,s[7]+=i;break;case"v":s[1]+=i;break;case"h":s[1]+=r;break;default:for(var u=1;u<s.length;)s[u++]+=r,s[u++]+=i}switch(a){case"Z":r=t,i=n;break;case"H":r=s[1];break;case"V":i=s[1];break;case"M":r=t=s[1],i=n=s[2];break;default:r=s[s.length-2],i=s[s.length-1]}return s})}const ei=Math.PI*2;function Pc(e,t,n,r){const i=e*r-t*n<0?-1:1;let s=e*n+t*r;return s>1&&(s=1),s<-1&&(s=-1),i*Math.acos(s)}function Wd(e,t,n,r,i,s,o,a,u,d){const g=d*(e-n)/2+u*(t-r)/2,v=-u*(e-n)/2+d*(t-r)/2,y=o*o,w=a*a,I=g*g,k=v*v;let A=y*w-y*k-w*I;A<0&&(A=0),A/=y*k+w*I,A=Math.sqrt(A)*(i===s?-1:1);const B=A*o/a*v,M=A*-a/o*g,N=d*B-u*M+(e+n)/2,D=u*B+d*M+(t+r)/2,U=(g-B)/o,H=(v-M)/a,F=(-g-B)/o,it=(-v-M)/a,ut=Pc(1,0,U,H);let _t=Pc(U,H,F,it);return s===0&&_t>0&&(_t-=ei),s===1&&_t<0&&(_t+=ei),[N,D,ut,_t]}function qd(e,t){const n=1.3333333333333333*Math.tan(t/4),r=Math.cos(e),i=Math.sin(e),s=Math.cos(e+t),o=Math.sin(e+t);return[r,i,r-i*n,i+r*n,s+o*n,o-s*n,s,o]}function Yd(e,t,n,r,i,s,o,a,u){const d=Math.sin(u*ei/360),g=Math.cos(u*ei/360),v=g*(e-n)/2+d*(t-r)/2,y=-d*(e-n)/2+g*(t-r)/2;if(v===0&&y===0)return[];if(o===0||a===0)return[];o=Math.abs(o),a=Math.abs(a);const w=v*v/(o*o)+y*y/(a*a);w>1&&(o*=Math.sqrt(w),a*=Math.sqrt(w));const I=Wd(e,t,n,r,i,s,o,a,d,g),k=[];let A=I[2],B=I[3];const M=Math.max(Math.ceil(Math.abs(B)/(ei/4)),1);B/=M;for(let N=0;N<M;N++)k.push(qd(A,B)),A+=B;return k.map(N=>{for(let D=0;D<N.length;D+=2){let U=N[D+0],H=N[D+1];U*=o,H*=a;const F=g*U-d*H,it=d*U+g*H;N[D+0]=F+I[0],N[D+1]=it+I[1]}return N})}function So(e){for(var t,n=[],r=0,i=0,s=0,o=0,a=null,u=null,d=0,g=0,v=0,y=e.length;v<y;v++){var w=e[v],I=w[0];switch(I){case"M":s=w[1],o=w[2];break;case"A":var k=Yd(d,g,w[6],w[7],w[4],w[5],w[1],w[2],w[3]);if(!k.length)continue;k=k.map(D=>{const[U,H,F,it,ut,_t,pt,ht]=D;return{x1:F,y1:it,x2:ut,y2:_t,x:pt,y:ht}});for(var A=0,B;A<k.length;A++)B=k[A],w=["C",B.x1,B.y1,B.x2,B.y2,B.x,B.y],A<k.length-1&&n.push(w);break;case"S":var M=d,N=g;(t=="C"||t=="S")&&(M+=M-r,N+=N-i),w=["C",M,N,w[1],w[2],w[3],w[4]];break;case"T":t=="Q"||t=="T"?(a=d*2-a,u=g*2-u):(a=d,u=g),w=Ic(d,g,a,u,w[1],w[2]);break;case"Q":a=w[1],u=w[2],w=Ic(d,g,w[1],w[2],w[3],w[4]);break;case"L":w=Ki(d,g,w[1],w[2]);break;case"H":w=Ki(d,g,w[1],g);break;case"V":w=Ki(d,g,d,w[1]);break;case"Z":w=Ki(d,g,s,o);break}t=I,d=w[w.length-2],g=w[w.length-1],w.length>4?(r=w[w.length-4],i=w[w.length-3]):(r=d,i=g),n.push(w)}return n}function Ki(e,t,n,r){return["C",e,t,n,r,n,r]}function Ic(e,t,n,r,i,s){return["C",e/3+2/3*n,t/3+2/3*r,i/3+2/3*n,s/3+2/3*r,i,s]}const Xd=e=>Array.isArray(e);function ur(e){if(!(this instanceof ur))return new ur(e);this._path=Xd(e)?e:To(e),this._path=Co(this._path),this._path=Zd(this._path),this._path=Kd(this._path)}ur.prototype.at=function(e,t){return this._walk(e,t).pos},ur.prototype.length=function(){return this._walk(null).length},ur.prototype._walk=function(e,t){let n=[0,0],r=[0,0,0],i=[0,0],s=0;for(let g=0;g<this._path.length;g++){let v=this._path[g];if(v[0]==="M"){if(n[0]=v[1],n[1]=v[2],e===0)return{length:s,pos:n}}else if(v[0]==="C"){r[0]=i[0]=n[0],r[1]=i[1]=n[1],r[2]=s;let y=100;for(let w=0;w<=y;w++){let I=w/y,k=o(v,I),A=a(v,I);if(s+=ko(n[0],n[1],k,A),n[0]=k,n[1]=A,typeof e=="number"&&s>=e){let B=(s-e)/(s-r[2]),M=[n[0]*(1-B)+r[0]*B,n[1]*(1-B)+r[1]*B];return{length:s,pos:M}}r[0]=n[0],r[1]=n[1],r[2]=s}}else if(v[0]==="Q"){r[0]=i[0]=n[0],r[1]=i[1]=n[1],r[2]=s;let y=100;for(let w=0;w<=y;w++){let I=w/y,k=u(v,I),A=d(v,I);if(s+=ko(n[0],n[1],k,A),n[0]=k,n[1]=A,typeof e=="number"&&s>=e){let B=(s-e)/(s-r[2]),M=[n[0]*(1-B)+r[0]*B,n[1]*(1-B)+r[1]*B];return{length:s,pos:M}}r[0]=n[0],r[1]=n[1],r[2]=s}}else if(v[0]==="L"){if(r[0]=n[0],r[1]=n[1],r[2]=s,s+=ko(n[0],n[1],v[1],v[2]),n[0]=v[1],n[1]=v[2],typeof e=="number"&&s>=e){let y=(s-e)/(s-r[2]),w=[n[0]*(1-y)+r[0]*y,n[1]*(1-y)+r[1]*y];return{length:s,pos:w}}r[0]=n[0],r[1]=n[1],r[2]=s}}return{length:s,pos:n};function o(g,v){return Math.pow(1-v,3)*i[0]+3*Math.pow(1-v,2)*v*g[1]+3*(1-v)*Math.pow(v,2)*g[3]+Math.pow(v,3)*g[5]}function a(g,v){return Math.pow(1-v,3)*i[1]+3*Math.pow(1-v,2)*v*g[2]+3*(1-v)*Math.pow(v,2)*g[4]+Math.pow(v,3)*g[6]}function u(g,v){return Math.pow(1-v,2)*i[0]+2*(1-v)*v*g[1]+Math.pow(v,2)*g[3]}function d(g,v){return Math.pow(1-v,2)*i[1]+2*(1-v)*v*g[2]+Math.pow(v,2)*g[4]}};function ko(e,t,n,r){let i=e-n,s=t-r;return Math.sqrt(i*i+s*s)}function Kd(e){let t,n=0,r=0,i={S:{to:"C",x:3},T:{to:"Q",x:1}};for(let s=0,o=e.length;s<o;s++){let a=e[s],u=i[a[0]];u&&(a[0]=u.to,t&&(t[0]===u.to?(n=2*t[u.x+2]-t[u.x],r=2*t[u.x+3]-t[u.x+1]):(n=t[t.length-2],r=t[t.length-1])),a.splice(1,0,n,r)),t=a}return e}function Zd(e){let t=[],n=["L",0,0],r;for(let i=0,s=e.length;i<s;i++){let o=e[i];switch(o[0]){case"M":n=["L",o[1],o[2]],t.push(o);break;case"Z":t.push(n);break;case"H":r=t[t.length-1]||["L",0,0],t.push(["L",o[1],r[r.length-1]]);break;case"V":r=t[t.length-1]||["L",0,0],t.push(["L",r[r.length-2],o[1]]);break;default:t.push(o)}}return t}const Po=e=>{if(typeof e=="function"||Object(e)!==e)return e;const t=new e.constructor;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=Po(e[n]));return t};function Io(e){const t=Io.ps=Io.ps||{};return t[e]?t[e].sleep=100:t[e]={sleep:100},setTimeout(()=>{for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&n!==e&&(t[n].sleep--,t[n].sleep||delete t[n])}),t[e]}function ni(e,t,n,r){return e==null&&(e=t=n=r=0),t==null&&(t=e.y,n=e.width,r=e.height,e=e.x),{x:e,y:t,width:n,w:n,height:r,h:r,x2:e+n,y2:t+r,cx:e+n/2,cy:t+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:ip(e,t,n,r),vb:[e,t,n,r].join(" ")}}function Mc(e,t,n,r,i,s,o,a,u){const d=1-u,g=d**3,v=d**2,y=u*u,w=y*u,I=g*e+v*3*u*n+d*3*u*u*i+w*o,k=g*t+v*3*u*r+d*3*u*u*s+w*a,A=e+2*u*(n-e)+y*(i-2*n+e),B=t+2*u*(r-t)+y*(s-2*r+t),M=n+2*u*(i-n)+y*(o-2*i+n),N=r+2*u*(s-r)+y*(a-2*s+r),D=d*e+u*n,U=d*t+u*r,H=d*i+u*o,F=d*s+u*a,it=90-Math.atan2(A-M,B-N)*180/Math.PI;return{x:I,y:k,m:{x:A,y:B},n:{x:M,y:N},start:{x:D,y:U},end:{x:H,y:F},alpha:it}}function Nc(e,t,n,r,i,s,o,a){Array.isArray(e)||(e=[e,t,n,r,i,s,o,a]);const u=Lc(...e);return ni(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)}function Qd(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height}function Jd(e,t){e=ni(e),t=ni(t);const{x:n,y:r,width:i,height:s}=e,{x:o,y:a,width:u,height:d}=t,g=n+i/2,v=r+s/2,y=o+u/2,w=a+d/2;return Math.abs(g-y)<=(i+u)/2||Math.abs(v-w)<=(s+d)/2}function Ac(e,t,n,r,i){const s=-3*t+9*n-9*r+3*i,o=e*s+6*t-12*n+6*r;return e*o-3*t+3*n}function Oc(e,t,n,r,i,s,o,a,u){u==null&&(u=1),u=Math.max(0,Math.min(u,1));const d=u/2,g=12,v=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],y=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472];let w=0;for(let I=0;I<g;I++){const k=d*v[I]+d,A=Ac(k,e,n,i,o),B=Ac(k,t,r,s,a),M=A*A+B*B;w+=y[I]*Math.sqrt(M)}return d*w}function tp(e,t,n,r,i,s,o,a){if(Math.max(e,n)<Math.min(i,o)||Math.min(e,n)>Math.max(i,o)||Math.max(t,r)<Math.min(s,a)||Math.min(t,r)>Math.max(s,a))return;const u=(e*r-t*n)*(i-o)-(e-n)*(i*a-s*o),d=(e*r-t*n)*(s-a)-(t-r)*(i*a-s*o),g=(e-n)*(s-a)-(t-r)*(i-o);if(!g)return;const v=u/g,y=d/g,w=Number(v.toFixed(2)),I=Number(y.toFixed(2));if(!(w<Number(Math.min(e,n).toFixed(2))||w>Number(Math.max(e,n).toFixed(2))||w<Number(Math.min(i,o).toFixed(2))||w>Number(Math.max(i,o).toFixed(2))||I<Number(Math.min(t,r).toFixed(2))||I>Number(Math.max(t,r).toFixed(2))||I<Number(Math.min(s,a).toFixed(2))||I>Number(Math.max(s,a).toFixed(2))))return{x:v,y}}function ep(e,t,n){const r=Nc(e),i=Nc(t);if(!Jd(r,i))return n?0:[];const s=Oc.apply(0,e),o=Oc.apply(0,t),a=Math.ceil(s/8),u=Math.ceil(o/8),d=[],g=[],v={};let y=n?0:[];for(let w=0;w<a+1;w++){const I=Mc.apply(0,e.concat(w/a));d.push({x:I.x,y:I.y,t:w/a})}for(let w=0;w<u+1;w++){const I=Mc.apply(0,t.concat(w/u));g.push({x:I.x,y:I.y,t:w/u})}for(let w=0;w<a;w++)for(let I=0;I<u;I++){const k=d[w],A=d[w+1],B=g[I],M=g[I+1],N=Math.abs(A.x-k.x)<.001?"y":"x",D=Math.abs(M.x-B.x)<.001?"y":"x",U=tp(k.x,k.y,A.x,A.y,B.x,B.y,M.x,M.y);if(U&&v[U.x.toFixed(4)]!==U.y.toFixed(4)){v[U.x.toFixed(4)]=U.y.toFixed(4);const H=k.t+Math.abs((U[N]-k[N])/(A[N]-k[N]))*(A.t-k.t),F=B.t+Math.abs((U[D]-B[D])/(M[D]-B[D]))*(M.t-B.t);H>=0&&H<=1&&F>=0&&F<=1&&(n?y++:y.push({x:U.x,y:U.y,t1:H,t2:F}))}}return y}function np(e,t,n){let r,i,s,o,a,u,d,g,v,y,w=n?0:[];for(let I=0,k=e.length;I<k;I++){const A=e[I];if(A[0]==="M")r=a=A[1],i=u=A[2];else{A[0]==="C"?(v=[r,i].concat(A.slice(1)),r=v[6],i=v[7]):(v=[r,i,r,i,a,u,a,u],r=a,i=u);for(let B=0,M=t.length;B<M;B++){const N=t[B];if(N[0]==="M")s=d=N[1],o=g=N[2];else{N[0]==="C"?(y=[s,o].concat(N.slice(1)),s=y[6],o=y[7]):(y=[s,o,s,o,d,g,d,g],s=d,o=g);const D=ep(v,y,n);if(n)w+=D;else{for(let U=0,H=D.length;U<H;U++)D[U].segment1=I,D[U].segment2=B,D[U].bez1=v,D[U].bez2=y;w=w.concat(D)}}}}}return w}function rp(e){const t=Io(e);if(t.bbox)return Po(t.bbox);if(!e)return ni();let n=0,r=0,i=[],s=[],o=[];for(let y=0,w=e.length;y<w;y++)if(o=e[y],o[0]==="M")n=o[1],r=o[2],i.push(n),s.push(r);else{const I=Lc(n,r,o[1],o[2],o[3],o[4],o[5],o[6]);i=i.concat(I.min.x,I.max.x),s=s.concat(I.min.y,I.max.y),n=o[5],r=o[6]}const a=Math.min.apply(0,i),u=Math.min.apply(0,s),d=Math.max.apply(0,i),g=Math.max.apply(0,s),v=ni(a,u,d-a,g-u);return t.bbox=Po(v),v}function ip(e,t,n,r,i){return i?[["M",Number(e)+Number(i),t],["l",n-i*2,0],["a",i,i,0,0,1,i,i],["l",0,r-i*2],["a",i,i,0,0,1,-i,i],["l",i*2-n,0],["a",i,i,0,0,1,-i,-i],["l",0,i*2-r],["a",i,i,0,0,1,i,-i],["z"]]:[["M",e,t],["l",n,0],["l",0,r],["l",-n,0],["z"]]}function Lc(e,t,n,r,i,s,o,a){const u=[],d=[[],[]];let g,v,y,w,I,k,A,B;for(let U=0;U<2;++U){if(U===0?(v=6*e-12*n+6*i,g=-3*e+9*n-9*i+3*o,y=3*n-3*e):(v=6*t-12*r+6*s,g=-3*t+9*r-9*s+3*a,y=3*r-3*t),Math.abs(g)<1e-12){if(Math.abs(v)<1e-12)continue;w=-y/v,w>0&&w<1&&u.push(w);continue}A=v*v-4*y*g,B=Math.sqrt(A),!(A<0)&&(I=(-v+B)/(2*g),I>0&&I<1&&u.push(I),k=(-v-B)/(2*g),k>0&&k<1&&u.push(k))}let M=u.length,N;const D=M;for(;M--;)w=u[M],N=1-w,d[0][M]=N*N*N*e+3*N*N*w*n+3*N*w*w*i+w*w*w*o,d[1][M]=N*N*N*t+3*N*N*w*r+3*N*w*w*s+w*w*w*a;return d[0][D]=e,d[1][D]=t,d[0][D+1]=o,d[1][D+1]=a,d[0].length=d[1].length=D+2,{min:{x:Math.min.apply(0,d[0]),y:Math.min.apply(0,d[1])},max:{x:Math.max.apply(0,d[0]),y:Math.max.apply(0,d[1])}}}function sp(e,t,n){const r=rp(e);return!(!Qd(r,t,n)||np(e,So([["M",t,n],["H",r.x2+10]]),1)%2!==1)}const Mo=new Map;function Rc(e){if(Mo.has(e))return Mo.get(e);const t=ur(e);return Mo.set(e,t),t}function Fc(e){const t=document.createElementNS("http://www.w3.org/2000/svg","path");return t.setAttribute("d",e),t}function op(e,t){return Vi?Fc(e).getTotalLength(t):Rc(e).length()}function ap(e,t){if(Vi)return Fc(e).getPointAtLength(t);{const n=Rc(e),[r,i]=n.at(t);return{x:r,y:i}}}let ze=null;function lp(e,t,n){if(Vi){ze||(ze=document.createElement("canvas").getContext("2d"));const r=new Path2D(e);return ze.isPointInPath(r,t,n)}else return sp(e,t,n)}function cp(e,t,n,{lineWidth:r=1,lineCap:i="butt",lineJoin:s="miter"}){if(Vi){if(ze||(ze=document.createElement("canvas").getContext("2d")),ze.isPointInStroke){ze.save(),ze.lineWidth=r,ze.lineCap=i,ze.lineJoin=s;const o=new Path2D(e),a=ze.isPointInStroke(o,t,n);return ze.restore(),a}}else return null}class No{point;constructor(t){this.point=new tn(t)}static fromSVGPathData(t){if(t.length<3)throw new Error("Line 参数个数错误");if(t[0].toUpperCase()!=="L")throw new Error("Line command 错误");return new No({x:t[1],y:t[2]})}toSVGPathData(){return["L",this.point.x,this.point.y]}toSVGPathD(){return"L "+this.point.toSVGPathD()}}const Dc=No;class Ao extends Dc{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){if(t.length<8)throw new Error("Arc 参数个数错误");if(t[0].toUpperCase()!=="A")throw new Error("Arc command 错误");return new Ao({x:t[6],y:t[7],rx:t[1],ry:t[2],xAxisRotate:t[3],largeArcFlag:t[4],sweepFlag:t[5]})}toSVGPathData(){return["A",this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag,this.point.x,this.point.y]}toSVGPathD(){return`A ${this.rx},${this.ry} ${this.xAxisRotate} ${this.largeArcFlag},${this.sweepFlag} ${this.point.toSVGPathD()}`}}const $c=Ao;class Oo extends Dc{ctrlPoints=[];constructor(t){super(t),this.ctrlPoints.push(new tn({x:t.c1x,y:t.c1y})),this.ctrlPoints.push(new tn({x:t.c2x,y:t.c2y}))}static fromSVGPathData(t){if(t.length<7)throw new Error("CubicBezier 参数个数错误");if(t[0].toUpperCase()!=="C")throw new Error("CubicBezier command 错误");return new Oo({c1x:t[1],c1y:t[2],c2x:t[3],c2y:t[4],x:t[5],y:t[6]})}toSVGPathData(){return["C",this.ctrlPoints[0].x,this.ctrlPoints[0].y,this.ctrlPoints[1].x,this.ctrlPoints[1].y,this.point.x,this.point.y]}toSVGPathD(){return`C ${this.ctrlPoints.map(t=>t.toSVGPathD()).join(" ")} ${this.point.toSVGPathD()}`}}const Lo=Oo;class ri{startPoint;isClosed=!1;lines=[];normalizedLines=[];constructor(t){this.startPoint=t?.startPoint??null,this.isClosed=t?.isClosed??!1,t?.lines?.forEach(this.addLine),this.normalize()}setStartPoint(t,n){return this.startPoint=new tn({x:t,y:n}),this}addLine(t){return this.lines.push(t),this}normalize(){let t=this.lines.reduce((r,i)=>(r+=i.toSVGPathD(),r),"");this.startPoint&&(t="M "+this.startPoint.toSVGPathD()+t),this.isClosed&&(t+="Z"),this.normalizedLines=[];const n=So(Co(To(t)));for(let r=0,i=n.length;r<i;r++){const s=n[r];if(r==0&&s[0]=="M"){this.setStartPoint(s[1],s[2]);continue}if(r==i-1&&s[0]=="Z"){this.isClosed=!0;continue}this.normalizedLines.push(Lo.fromSVGPathData(s))}return this}static fromSVGPathD(t,n){if(!Vd(t))throw new Error("Not an SVG path!");const r=So(Co(To(t)));return ri.fromSVGPathData(r,n)}static fromSVGPathData(t,n){const r=new ri;for(let s=0,o=t.length;s<o;s++){const a=t[s],u=a[0];if(s==0&&u=="M"){r.setStartPoint(a[1],a[2]);continue}if(s==o-1&&u=="Z"){r.isClosed=!0;continue}r.addLine(new Lo({c1x:a[1],c1y:a[2],c2x:a[3],c2y:a[4],x:a[5],y:a[6]}))}r.normalize();const i=ti(n??"");return r.transform(i)}toSVGPathD(){let t="";this.startPoint&&(t+="M "+this.startPoint.toSVGPathD());for(let n=0,r=this.normalizedLines.length;n<r;n++)t+=this.normalizedLines[n].toSVGPathD();return this.isClosed&&(t+="Z"),t}toSVGPathData(){const t=[];this.startPoint&&t.push(["M",...this.startPoint.toSVGPathData()]);for(let n=0,r=this.normalizedLines.length;n<r;n++)t.push(this.normalizedLines[n].toSVGPathData());return this.isClosed&&t.push(["Z"]),t}toCanvas(t){const n=this.normalizedLines;n.length&&(this.startPoint&&(t.beginPath(),t.moveTo(this.startPoint.x,this.startPoint.y)),n.forEach(r=>{const[i,...s]=r.toSVGPathData();i==="M"?t.moveTo(s[0],s[1]):i==="Z"?t.closePath():t.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5])}),this.isClosed&&t.closePath())}get bounds(){let t=[0,0,0,0];if(this.normalizedLines.length){t=[1/0,1/0,-1/0,-1/0];for(let n=0,r=this.normalizedLines.length;n<r;n++){const i=this.normalizedLines[n],s=[...i.ctrlPoints,i.point];for(let o=0;o<s.length;o++){const a=s[o].x,u=s[o].y;a<t[0]&&(t[0]=a),u<t[1]&&(t[1]=u),a>t[2]&&(t[2]=a),u>t[3]&&(t[3]=u)}}}return t}get size(){const t=this.bounds;return[t[2]-t[0],t[3]-t[1]]}get center(){const[t,n,r,i]=this.bounds;return[(t+r)/2,(n+i)/2]}getTotalLength(){return op(this.toSVGPathD())}getPointAtLength(t){return ap(this.toSVGPathD(),t)}isPointInPath(t,n){return lp(this.toSVGPathD(),t,n)}isPointInStroke(t,n,r={lineWidth:1,lineCap:"butt",lineJoin:"miter"}){return cp(this.toSVGPathD(),t,n,r)}transform(t){if(this.startPoint){const[n,r]=t.transformPoint(this.startPoint.x,this.startPoint.y);this.setStartPoint(n,r)}return this.normalizedLines=this.normalizedLines.map(n=>{const[r,...i]=n.toSVGPathData(),s=[r];for(let o=0,a=i.length;o<a;o+=2){const u=i[o],d=i[o+1],[g,v]=t.transformPoint(u,d);s.push(g,v)}return Lo.fromSVGPathData(s)}),this}translate(t,n){const r=new _e().translate(t,n);return this.transform(r)}rotate(t,n=0,r=0){const i=new _e().rotate(t,n,r);return this.transform(i)}scale(t,n=t,r=0,i=0){const s=new _e().scale(t,n,r,i);return this.transform(s)}skew(t,n=0){const r=new _e().skew(t,n);return this.transform(r)}trim(){const[t,n]=this.bounds;return this.translate(-t,-n),this}static generateRosetta(t,n,r,i,s){if(s==0)throw new Error("no dividing by zero, please");const o=new ri;o.setStartPoint(t,n);const a=360/s;for(let u=0;u<s;u+=1){const d=a*u*Math.PI/180,g=t+2*r*Math.cos(d),v=n+2*r*Math.sin(d);o.addLine(new $c({x:g,y:v,rx:r,ry:i,xAxisRotate:a*u,largeArcFlag:1,sweepFlag:1})),o.addLine(new $c({x:t,y:n,rx:r,ry:i,xAxisRotate:a*u,largeArcFlag:1,sweepFlag:1}))}return o.normalize(),o}}const zc=ri;var Bc={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(window,function(){return function(n){var r={};function i(s){if(r[s])return r[s].exports;var o=r[s]={i:s,l:!1,exports:{}};return n[s].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=n,i.c=r,i.d=function(s,o,a){i.o(s,o)||Object.defineProperty(s,o,{enumerable:!0,get:a})},i.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},i.t=function(s,o){if(1&o&&(s=i(s)),8&o||4&o&&typeof s=="object"&&s&&s.__esModule)return s;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:s}),2&o&&typeof s!="string")for(var u in s)i.d(a,u,function(d){return s[d]}.bind(null,u));return a},i.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(o,"a",o),o},i.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},i.p="",i(i.s=1)}([function(n,r,i){var s,o;s=[i(2)],(o=function(a){function u(c){if(u.is(c,"function"))return d?c():a.on("raphael.DOMload",c);if(u.is(c,R))return u._engine.create[M](u,c.splice(0,3+u.is(c[0],at))).add(c);var f=Array.prototype.slice.call(arguments,0);if(u.is(f[f.length-1],"function")){var p=f.pop();return d?p.call(u._engine.create[M](u,f)):a.on("raphael.DOMload",function(){p.call(u._engine.create[M](u,f))})}return u._engine.create[M](u,arguments)}u.version="2.3.0",u.eve=a;var d,g,v=/[, ]+/,y={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},w=/\{(\d+)\}/g,I="hasOwnProperty",k={doc:document,win:window},A={was:Object.prototype[I].call(k.win,"Raphael"),is:k.win.Raphael},B=function(){this.ca=this.customAttributes={}},M="apply",N="concat",D="ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,U="",H=" ",F=String,it="split",ut="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[it](H),_t={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},pt=F.prototype.toLowerCase,ht=Math,wt=ht.max,mt=ht.min,ct=ht.abs,et=ht.pow,X=ht.PI,at="number",R="array",K=Object.prototype.toString,C=(u._ISURL=/^url\(['"]?(.+?)['"]?\)$/i,/^\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),b={NaN:1,Infinity:1,"-Infinity":1},_=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,P=ht.round,L=parseFloat,z=parseInt,$=F.prototype.toUpperCase,Z=u._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0,class:""},G=u._availableAnimAttrs={blur:at,"clip-rect":"csv",cx:at,cy:at,fill:"colour","fill-opacity":at,"font-size":at,height:at,opacity:at,path:"path",r:at,rx:at,ry:at,stroke:"colour","stroke-opacity":at,"stroke-width":at,transform:"transform",width:at,x:at,y:at},J=/[\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]*/,ft={hs:1,rg:1},yt=/,?([achlmqrstvxz]),?/gi,St=/([achlmrqstvz])[\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,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\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]*)+)/gi,Ot=/([rstm])[\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,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\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]*)+)/gi,kt=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\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]*/gi,Ft=(u._radial_gradient=/^r(?:\(([^,]+?)[\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]*([^\)]+?)\))?/,{}),zt=function(c,f){return L(c)-L(f)},Vt=function(c){return c},Et=u._rectPath=function(c,f,p,l,h){return h?[["M",c+h,f],["l",p-2*h,0],["a",h,h,0,0,1,h,h],["l",0,l-2*h],["a",h,h,0,0,1,-h,h],["l",2*h-p,0],["a",h,h,0,0,1,-h,-h],["l",0,2*h-l],["a",h,h,0,0,1,h,-h],["z"]]:[["M",c,f],["l",p,0],["l",0,l],["l",-p,0],["z"]]},Jt=function(c,f,p,l){return l==null&&(l=p),[["M",c,f],["m",0,-l],["a",p,l,0,1,1,0,2*l],["a",p,l,0,1,1,0,-2*l],["z"]]},jt=u._getPath={path:function(c){return c.attr("path")},circle:function(c){var f=c.attrs;return Jt(f.cx,f.cy,f.r)},ellipse:function(c){var f=c.attrs;return Jt(f.cx,f.cy,f.rx,f.ry)},rect:function(c){var f=c.attrs;return Et(f.x,f.y,f.width,f.height,f.r)},image:function(c){var f=c.attrs;return Et(f.x,f.y,f.width,f.height)},text:function(c){var f=c._getBBox();return Et(f.x,f.y,f.width,f.height)},set:function(c){var f=c._getBBox();return Et(f.x,f.y,f.width,f.height)}},oe=u.mapPath=function(c,f){if(!f)return c;var p,l,h,m,x,E,S;for(h=0,x=(c=Zn(c)).length;h<x;h++)for(m=1,E=(S=c[h]).length;m<E;m+=2)p=f.x(S[m],S[m+1]),l=f.y(S[m],S[m+1]),S[m]=p,S[m+1]=l;return c};if(u._g=k,u.type=k.win.SVGAngle||k.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML",u.type=="VML"){var qt,Ce=k.doc.createElement("div");if(Ce.innerHTML='<v:shape adj="1"/>',(qt=Ce.firstChild).style.behavior="url(#default#VML)",!qt||typeof qt.adj!="object")return u.type=U;Ce=null}function ye(c){if(typeof c=="function"||Object(c)!==c)return c;var f=new c.constructor;for(var p in c)c[I](p)&&(f[p]=ye(c[p]));return f}u.svg=!(u.vml=u.type=="VML"),u._Paper=B,u.fn=g=B.prototype=u.prototype,u._id=0,u.is=function(c,f){return(f=pt.call(f))=="finite"?!b[I](+c):f=="array"?c instanceof Array:f=="null"&&c===null||f==typeof c&&c!==null||f=="object"&&c===Object(c)||f=="array"&&Array.isArray&&Array.isArray(c)||K.call(c).slice(8,-1).toLowerCase()==f},u.angle=function(c,f,p,l,h,m){if(h==null){var x=c-p,E=f-l;return x||E?(180+180*ht.atan2(-E,-x)/X+360)%360:0}return u.angle(c,f,h,m)-u.angle(p,l,h,m)},u.rad=function(c){return c%360*X/180},u.deg=function(c){return Math.round(180*c/X%360*1e3)/1e3},u.snapTo=function(c,f,p){if(p=u.is(p,"finite")?p:10,u.is(c,R)){for(var l=c.length;l--;)if(ct(c[l]-f)<=p)return c[l]}else{var h=f%(c=+c);if(h<p)return f-h;if(h>c-p)return f-h+c}return f};var en,Mn;u.createUUID=(en=/[xy]/g,Mn=function(c){var f=16*ht.random()|0;return(c=="x"?f:3&f|8).toString(16)},function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(en,Mn).toUpperCase()}),u.setWindow=function(c){a("raphael.setWindow",u,k.win,c),k.win=c,k.doc=k.win.document,u._engine.initWin&&u._engine.initWin(k.win)};var Ke=function(c){if(u.vml){var f,p=/^\s+|\s+$/g;try{var l=new ActiveXObject("htmlfile");l.write("<body>"),l.close(),f=l.body}catch{f=createPopup().document.body}var h=f.createTextRange();Ke=pe(function(x){try{f.style.color=F(x).replace(p,U);var E=h.queryCommandValue("ForeColor");return"#"+("000000"+(E=(255&E)<<16|65280&E|(16711680&E)>>>16).toString(16)).slice(-6)}catch{return"none"}})}else{var m=k.doc.createElement("i");m.title="Raphaël Colour Picker",m.style.display="none",k.doc.body.appendChild(m),Ke=pe(function(x){return m.style.color=x,k.doc.defaultView.getComputedStyle(m,U).getPropertyValue("color")})}return Ke(c)},hn=function(){return"hsb("+[this.h,this.s,this.b]+")"},fn=function(){return"hsl("+[this.h,this.s,this.l]+")"},nn=function(){return this.hex},rn=function(c,f,p){if(f==null&&u.is(c,"object")&&"r"in c&&"g"in c&&"b"in c&&(p=c.b,f=c.g,c=c.r),f==null&&u.is(c,"string")){var l=u.getRGB(c);c=l.r,f=l.g,p=l.b}return(c>1||f>1||p>1)&&(c/=255,f/=255,p/=255),[c,f,p]},gr=function(c,f,p,l){var h={r:c*=255,g:f*=255,b:p*=255,hex:u.rgb(c,f,p),toString:nn};return u.is(l,"finite")&&(h.opacity=l),h};function pe(c,f,p){return function l(){var h=Array.prototype.slice.call(arguments,0),m=h.join("␀"),x=l.cache=l.cache||{},E=l.count=l.count||[];return x[I](m)?(function(S,O){for(var V=0,Y=S.length;V<Y;V++)if(S[V]===O)return S.push(S.splice(V,1)[0])}(E,m),p?p(x[m]):x[m]):(E.length>=1e3&&delete x[E.shift()],E.push(m),x[m]=c[M](f,h),p?p(x[m]):x[m])}}u.color=function(c){var f;return u.is(c,"object")&&"h"in c&&"s"in c&&"b"in c?(f=u.hsb2rgb(c),c.r=f.r,c.g=f.g,c.b=f.b,c.hex=f.hex):u.is(c,"object")&&"h"in c&&"s"in c&&"l"in c?(f=u.hsl2rgb(c),c.r=f.r,c.g=f.g,c.b=f.b,c.hex=f.hex):(u.is(c,"string")&&(c=u.getRGB(c)),u.is(c,"object")&&"r"in c&&"g"in c&&"b"in c?(f=u.rgb2hsl(c),c.h=f.h,c.s=f.s,c.l=f.l,f=u.rgb2hsb(c),c.v=f.b):(c={hex:"none"}).r=c.g=c.b=c.h=c.s=c.v=c.l=-1),c.toString=nn,c},u.hsb2rgb=function(c,f,p,l){var h,m,x,E,S;return this.is(c,"object")&&"h"in c&&"s"in c&&"b"in c&&(p=c.b,f=c.s,l=c.o,c=c.h),E=(S=p*f)*(1-ct((c=(c*=360)%360/60)%2-1)),h=m=x=p-S,gr(h+=[S,E,0,0,E,S][c=~~c],m+=[E,S,S,E,0,0][c],x+=[0,0,E,S,S,E][c],l)},u.hsl2rgb=function(c,f,p,l){var h,m,x,E,S;return this.is(c,"object")&&"h"in c&&"s"in c&&"l"in c&&(p=c.l,f=c.s,c=c.h),(c>1||f>1||p>1)&&(c/=360,f/=100,p/=100),E=(S=2*f*(p<.5?p:1-p))*(1-ct((c=(c*=360)%360/60)%2-1)),h=m=x=p-S/2,gr(h+=[S,E,0,0,E,S][c=~~c],m+=[E,S,S,E,0,0][c],x+=[0,0,E,S,S,E][c],l)},u.rgb2hsb=function(c,f,p){var l,h;return c=(p=rn(c,f,p))[0],f=p[1],p=p[2],{h:(((h=(l=wt(c,f,p))-mt(c,f,p))==0?null:l==c?(f-p)/h:l==f?(p-c)/h+2:(c-f)/h+4)+360)%6*60/360,s:h==0?0:h/l,b:l,toString:hn}},u.rgb2hsl=function(c,f,p){var l,h,m,x;return c=(p=rn(c,f,p))[0],f=p[1],p=p[2],l=((h=wt(c,f,p))+(m=mt(c,f,p)))/2,{h:(((x=h-m)==0?null:h==c?(f-p)/x:h==f?(p-c)/x+2:(c-f)/x+4)+360)%6*60/360,s:x==0?0:l<.5?x/(2*l):x/(2-2*l),l,toString:fn}},u._path2string=function(){return this.join(",").replace(yt,"$1")},u._preload=function(c,f){var p=k.doc.createElement("img");p.style.cssText="position:absolute;left:-9999em;top:-9999em",p.onload=function(){f.call(this),this.onload=null,k.doc.body.removeChild(this)},p.onerror=function(){k.doc.body.removeChild(this)},k.doc.body.appendChild(p),p.src=c};function sn(){return this.hex}function Nn(c,f){for(var p=[],l=0,h=c.length;h-2*!f>l;l+=2){var m=[{x:+c[l-2],y:+c[l-1]},{x:+c[l],y:+c[l+1]},{x:+c[l+2],y:+c[l+3]},{x:+c[l+4],y:+c[l+5]}];f?l?h-4==l?m[3]={x:+c[0],y:+c[1]}:h-2==l&&(m[2]={x:+c[0],y:+c[1]},m[3]={x:+c[2],y:+c[3]}):m[0]={x:+c[h-2],y:+c[h-1]}:h-4==l?m[3]=m[2]:l||(m[0]={x:+c[l],y:+c[l+1]}),p.push(["C",(-m[0].x+6*m[1].x+m[2].x)/6,(-m[0].y+6*m[1].y+m[2].y)/6,(m[1].x+6*m[2].x-m[3].x)/6,(m[1].y+6*m[2].y-m[3].y)/6,m[2].x,m[2].y])}return p}u.getRGB=pe(function(c){if(!c||(c=F(c)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:sn};if(c=="none")return{r:-1,g:-1,b:-1,hex:"none",toString:sn};!ft[I](c.toLowerCase().substring(0,2))&&c.charAt()!="#"&&(c=Ke(c));var f,p,l,h,m,x,E=c.match(C);return E?(E[2]&&(l=z(E[2].substring(5),16),p=z(E[2].substring(3,5),16),f=z(E[2].substring(1,3),16)),E[3]&&(l=z((m=E[3].charAt(3))+m,16),p=z((m=E[3].charAt(2))+m,16),f=z((m=E[3].charAt(1))+m,16)),E[4]&&(x=E[4][it](J),f=L(x[0]),x[0].slice(-1)=="%"&&(f*=2.55),p=L(x[1]),x[1].slice(-1)=="%"&&(p*=2.55),l=L(x[2]),x[2].slice(-1)=="%"&&(l*=2.55),E[1].toLowerCase().slice(0,4)=="rgba"&&(h=L(x[3])),x[3]&&x[3].slice(-1)=="%"&&(h/=100)),E[5]?(x=E[5][it](J),f=L(x[0]),x[0].slice(-1)=="%"&&(f*=2.55),p=L(x[1]),x[1].slice(-1)=="%"&&(p*=2.55),l=L(x[2]),x[2].slice(-1)=="%"&&(l*=2.55),(x[0].slice(-3)=="deg"||x[0].slice(-1)=="°")&&(f/=360),E[1].toLowerCase().slice(0,4)=="hsba"&&(h=L(x[3])),x[3]&&x[3].slice(-1)=="%"&&(h/=100),u.hsb2rgb(f,p,l,h)):E[6]?(x=E[6][it](J),f=L(x[0]),x[0].slice(-1)=="%"&&(f*=2.55),p=L(x[1]),x[1].slice(-1)=="%"&&(p*=2.55),l=L(x[2]),x[2].slice(-1)=="%"&&(l*=2.55),(x[0].slice(-3)=="deg"||x[0].slice(-1)=="°")&&(f/=360),E[1].toLowerCase().slice(0,4)=="hsla"&&(h=L(x[3])),x[3]&&x[3].slice(-1)=="%"&&(h/=100),u.hsl2rgb(f,p,l,h)):((E={r:f,g:p,b:l,toString:sn}).hex="#"+(16777216|l|p<<8|f<<16).toString(16).slice(1),u.is(h,"finite")&&(E.opacity=h),E)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:sn}},u),u.hsb=pe(function(c,f,p){return u.hsb2rgb(c,f,p).hex}),u.hsl=pe(function(c,f,p){return u.hsl2rgb(c,f,p).hex}),u.rgb=pe(function(c,f,p){function l(h){return h+.5|0}return"#"+(16777216|l(p)|l(f)<<8|l(c)<<16).toString(16).slice(1)}),u.getColor=function(c){var f=this.getColor.start=this.getColor.start||{h:0,s:1,b:c||.75},p=this.hsb2rgb(f.h,f.s,f.b);return f.h+=.075,f.h>1&&(f.h=0,f.s-=.2,f.s<=0&&(this.getColor.start={h:0,s:1,b:f.b})),p.hex},u.getColor.reset=function(){delete this.start},u.parsePathString=function(c){if(!c)return null;var f=Ne(c);if(f.arr)return xe(f.arr);var p={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},l=[];return u.is(c,R)&&u.is(c[0],R)&&(l=xe(c)),l.length||F(c).replace(St,function(h,m,x){var E=[],S=m.toLowerCase();if(x.replace(kt,function(O,V){V&&E.push(+V)}),S=="m"&&E.length>2&&(l.push([m][N](E.splice(0,2))),S="l",m=m=="m"?"l":"L"),S=="r")l.push([m][N](E));else for(;E.length>=p[S]&&(l.push([m][N](E.splice(0,p[S]))),p[S]););}),l.toString=u._path2string,f.arr=xe(l),l},u.parseTransformString=pe(function(c){if(!c)return null;var f=[];return u.is(c,R)&&u.is(c[0],R)&&(f=xe(c)),f.length||F(c).replace(Ot,function(p,l,h){var m=[];pt.call(l),h.replace(kt,function(x,E){E&&m.push(+E)}),f.push([l][N](m))}),f.toString=u._path2string,f},this,function(c){if(!c)return c;for(var f=[],p=0;p<c.length;p++){for(var l=[],h=0;h<c[p].length;h++)l.push(c[p][h]);f.push(l)}return f});var Ne=function(c){var f=Ne.ps=Ne.ps||{};return f[c]?f[c].sleep=100:f[c]={sleep:100},setTimeout(function(){for(var p in f)f[I](p)&&p!=c&&(f[p].sleep--,!f[p].sleep&&delete f[p])}),f[c]};function Ze(c,f,p,l,h){return c*(c*(-3*f+9*p-9*l+3*h)+6*f-12*p+6*l)-3*f+3*p}function Fe(c,f,p,l,h,m,x,E,S){S==null&&(S=1);for(var O=(S=S>1?1:S<0?0:S)/2,V=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],Y=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],W=0,j=0;j<12;j++){var Q=O*V[j]+O,nt=Ze(Q,c,p,h,x),tt=Ze(Q,f,l,m,E),q=nt*nt+tt*tt;W+=Y[j]*ht.sqrt(q)}return O*W}function Kn(c,f,p,l,h,m,x,E){if(!(wt(c,p)<mt(h,x)||mt(c,p)>wt(h,x)||wt(f,l)<mt(m,E)||mt(f,l)>wt(m,E))){var S=(c-p)*(m-E)-(f-l)*(h-x);if(S){var O=((c*l-f*p)*(h-x)-(c-p)*(h*E-m*x))/S,V=((c*l-f*p)*(m-E)-(f-l)*(h*E-m*x))/S,Y=+O.toFixed(2),W=+V.toFixed(2);if(!(Y<+mt(c,p).toFixed(2)||Y>+wt(c,p).toFixed(2)||Y<+mt(h,x).toFixed(2)||Y>+wt(h,x).toFixed(2)||W<+mt(f,l).toFixed(2)||W>+wt(f,l).toFixed(2)||W<+mt(m,E).toFixed(2)||W>+wt(m,E).toFixed(2)))return{x:O,y:V}}}}function dn(c,f,p){var l=u.bezierBBox(c),h=u.bezierBBox(f);if(!u.isBBoxIntersect(l,h))return p?0:[];for(var m=Fe.apply(0,c),x=Fe.apply(0,f),E=wt(~~(m/5),1),S=wt(~~(x/5),1),O=[],V=[],Y={},W=p?0:[],j=0;j<E+1;j++){var Q=u.findDotsAtSegment.apply(u,c.concat(j/E));O.push({x:Q.x,y:Q.y,t:j/E})}for(j=0;j<S+1;j++)Q=u.findDotsAtSegment.apply(u,f.concat(j/S)),V.push({x:Q.x,y:Q.y,t:j/S});for(j=0;j<E;j++)for(var nt=0;nt<S;nt++){var tt=O[j],q=O[j+1],gt=V[nt],rt=V[nt+1],lt=ct(q.x-tt.x)<.001?"y":"x",st=ct(rt.x-gt.x)<.001?"y":"x",It=Kn(tt.x,tt.y,q.x,q.y,gt.x,gt.y,rt.x,rt.y);if(It){if(Y[It.x.toFixed(4)]==It.y.toFixed(4))continue;Y[It.x.toFixed(4)]=It.y.toFixed(4);var Ct=tt.t+ct((It[lt]-tt[lt])/(q[lt]-tt[lt]))*(q.t-tt.t),Mt=gt.t+ct((It[st]-gt[st])/(rt[st]-gt[st]))*(rt.t-gt.t);Ct>=0&&Ct<=1.001&&Mt>=0&&Mt<=1.001&&(p?W++:W.push({x:It.x,y:It.y,t1:mt(Ct,1),t2:mt(Mt,1)}))}}return W}function An(c,f,p){c=u._path2curve(c),f=u._path2curve(f);for(var l,h,m,x,E,S,O,V,Y,W,j=p?0:[],Q=0,nt=c.length;Q<nt;Q++){var tt=c[Q];if(tt[0]=="M")l=E=tt[1],h=S=tt[2];else{tt[0]=="C"?(Y=[l,h].concat(tt.slice(1)),l=Y[6],h=Y[7]):(Y=[l,h,l,h,E,S,E,S],l=E,h=S);for(var q=0,gt=f.length;q<gt;q++){var rt=f[q];if(rt[0]=="M")m=O=rt[1],x=V=rt[2];else{rt[0]=="C"?(W=[m,x].concat(rt.slice(1)),m=W[6],x=W[7]):(W=[m,x,m,x,O,V,O,V],m=O,x=V);var lt=dn(Y,W,p);if(p)j+=lt;else{for(var st=0,It=lt.length;st<It;st++)lt[st].segment1=Q,lt[st].segment2=q,lt[st].bez1=Y,lt[st].bez2=W;j=j.concat(lt)}}}}}return j}u.findDotsAtSegment=function(c,f,p,l,h,m,x,E,S){var O=1-S,V=et(O,3),Y=et(O,2),W=S*S,j=W*S,Q=V*c+3*Y*S*p+3*O*S*S*h+j*x,nt=V*f+3*Y*S*l+3*O*S*S*m+j*E,tt=c+2*S*(p-c)+W*(h-2*p+c),q=f+2*S*(l-f)+W*(m-2*l+f),gt=p+2*S*(h-p)+W*(x-2*h+p),rt=l+2*S*(m-l)+W*(E-2*m+l),lt=O*c+S*p,st=O*f+S*l,It=O*h+S*x,Ct=O*m+S*E,Mt=90-180*ht.atan2(tt-gt,q-rt)/X;return(tt>gt||q<rt)&&(Mt+=180),{x:Q,y:nt,m:{x:tt,y:q},n:{x:gt,y:rt},start:{x:lt,y:st},end:{x:It,y:Ct},alpha:Mt}},u.bezierBBox=function(c,f,p,l,h,m,x,E){u.is(c,"array")||(c=[c,f,p,l,h,m,x,E]);var S=gn.apply(null,c);return{x:S.min.x,y:S.min.y,x2:S.max.x,y2:S.max.y,width:S.max.x-S.min.x,height:S.max.y-S.min.y}},u.isPointInsideBBox=function(c,f,p){return f>=c.x&&f<=c.x2&&p>=c.y&&p<=c.y2},u.isBBoxIntersect=function(c,f){var p=u.isPointInsideBBox;return p(f,c.x,c.y)||p(f,c.x2,c.y)||p(f,c.x,c.y2)||p(f,c.x2,c.y2)||p(c,f.x,f.y)||p(c,f.x2,f.y)||p(c,f.x,f.y2)||p(c,f.x2,f.y2)||(c.x<f.x2&&c.x>f.x||f.x<c.x2&&f.x>c.x)&&(c.y<f.y2&&c.y>f.y||f.y<c.y2&&f.y>c.y)},u.pathIntersection=function(c,f){return An(c,f)},u.pathIntersectionNumber=function(c,f){return An(c,f,1)},u.isPointInsidePath=function(c,f,p){var l=u.pathBBox(c);return u.isPointInsideBBox(l,f,p)&&An(c,[["M",f,p],["H",l.x2+10]],1)%2==1},u._removedFactory=function(c){return function(){a("raphael.log",null,"Raphaël: you are calling to method “"+c+"” of removed object",c)}};var Ge=u.pathBBox=function(c){var f=Ne(c);if(f.bbox)return ye(f.bbox);if(!c)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var p,l=0,h=0,m=[],x=[],E=0,S=(c=Zn(c)).length;E<S;E++)if((p=c[E])[0]=="M")l=p[1],h=p[2],m.push(l),x.push(h);else{var O=gn(l,h,p[1],p[2],p[3],p[4],p[5],p[6]);m=m[N](O.min.x,O.max.x),x=x[N](O.min.y,O.max.y),l=p[5],h=p[6]}var V=mt[M](0,m),Y=mt[M](0,x),W=wt[M](0,m),j=wt[M](0,x),Q=W-V,nt=j-Y,tt={x:V,y:Y,x2:W,y2:j,width:Q,height:nt,cx:V+Q/2,cy:Y+nt/2};return f.bbox=ye(tt),tt},xe=function(c){var f=ye(c);return f.toString=u._path2string,f},as=u._pathToRelative=function(c){var f=Ne(c);if(f.rel)return xe(f.rel);u.is(c,R)&&u.is(c&&c[0],R)||(c=u.parsePathString(c));var p=[],l=0,h=0,m=0,x=0,E=0;c[0][0]=="M"&&(m=l=c[0][1],x=h=c[0][2],E++,p.push(["M",l,h]));for(var S=E,O=c.length;S<O;S++){var V=p[S]=[],Y=c[S];if(Y[0]!=pt.call(Y[0]))switch(V[0]=pt.call(Y[0]),V[0]){case"a":V[1]=Y[1],V[2]=Y[2],V[3]=Y[3],V[4]=Y[4],V[5]=Y[5],V[6]=+(Y[6]-l).toFixed(3),V[7]=+(Y[7]-h).toFixed(3);break;case"v":V[1]=+(Y[1]-h).toFixed(3);break;case"m":m=Y[1],x=Y[2];default:for(var W=1,j=Y.length;W<j;W++)V[W]=+(Y[W]-(W%2?l:h)).toFixed(3)}else{V=p[S]=[],Y[0]=="m"&&(m=Y[1]+l,x=Y[2]+h);for(var Q=0,nt=Y.length;Q<nt;Q++)p[S][Q]=Y[Q]}var tt=p[S].length;switch(p[S][0]){case"z":l=m,h=x;break;case"h":l+=+p[S][tt-1];break;case"v":h+=+p[S][tt-1];break;default:l+=+p[S][tt-2],h+=+p[S][tt-1]}}return p.toString=u._path2string,f.rel=xe(p),p},On=u._pathToAbsolute=function(c){var f=Ne(c);if(f.abs)return xe(f.abs);if(u.is(c,R)&&u.is(c&&c[0],R)||(c=u.parsePathString(c)),!c||!c.length)return[["M",0,0]];var p=[],l=0,h=0,m=0,x=0,E=0;c[0][0]=="M"&&(m=l=+c[0][1],x=h=+c[0][2],E++,p[0]=["M",l,h]);for(var S,O,V=c.length==3&&c[0][0]=="M"&&c[1][0].toUpperCase()=="R"&&c[2][0].toUpperCase()=="Z",Y=E,W=c.length;Y<W;Y++){if(p.push(S=[]),(O=c[Y])[0]!=$.call(O[0]))switch(S[0]=$.call(O[0]),S[0]){case"A":S[1]=O[1],S[2]=O[2],S[3]=O[3],S[4]=O[4],S[5]=O[5],S[6]=+(O[6]+l),S[7]=+(O[7]+h);break;case"V":S[1]=+O[1]+h;break;case"H":S[1]=+O[1]+l;break;case"R":for(var j=[l,h][N](O.slice(1)),Q=2,nt=j.length;Q<nt;Q++)j[Q]=+j[Q]+l,j[++Q]=+j[Q]+h;p.pop(),p=p[N](Nn(j,V));break;case"M":m=+O[1]+l,x=+O[2]+h;default:for(Q=1,nt=O.length;Q<nt;Q++)S[Q]=+O[Q]+(Q%2?l:h)}else if(O[0]=="R")j=[l,h][N](O.slice(1)),p.pop(),p=p[N](Nn(j,V)),S=["R"][N](O.slice(-2));else for(var tt=0,q=O.length;tt<q;tt++)S[tt]=O[tt];switch(S[0]){case"Z":l=m,h=x;break;case"H":l=S[1];break;case"V":h=S[1];break;case"M":m=S[S.length-2],x=S[S.length-1];default:l=S[S.length-2],h=S[S.length-1]}}return p.toString=u._path2string,f.abs=xe(p),p},pn=function(c,f,p,l){return[c,f,p,l,p,l]},on=function(c,f,p,l,h,m){return[1/3*c+2/3*p,1/3*f+2/3*l,1/3*h+2/3*p,1/3*m+2/3*l,h,m]},vr=function(c,f,p,l,h,m,x,E,S,O){var V,Y=120*X/180,W=X/180*(+h||0),j=[],Q=pe(function(pu,mu,ys){return{x:pu*ht.cos(ys)-mu*ht.sin(ys),y:pu*ht.sin(ys)+mu*ht.cos(ys)}});if(O)Ct=O[0],Mt=O[1],st=O[2],It=O[3];else{c=(V=Q(c,f,-W)).x,f=V.y,E=(V=Q(E,S,-W)).x,S=V.y;var nt=(c-E)/2,tt=(f-S)/2,q=nt*nt/(p*p)+tt*tt/(l*l);q>1&&(p*=q=ht.sqrt(q),l*=q);var gt=p*p,rt=l*l,lt=(m==x?-1:1)*ht.sqrt(ct((gt*rt-gt*tt*tt-rt*nt*nt)/(gt*tt*tt+rt*nt*nt))),st=lt*p*tt/l+(c+E)/2,It=lt*-l*nt/p+(f+S)/2,Ct=ht.asin(((f-It)/l).toFixed(9)),Mt=ht.asin(((S-It)/l).toFixed(9));(Ct=c<st?X-Ct:Ct)<0&&(Ct=2*X+Ct),(Mt=E<st?X-Mt:Mt)<0&&(Mt=2*X+Mt),x&&Ct>Mt&&(Ct-=2*X),!x&&Mt>Ct&&(Mt-=2*X)}var Cr=Mt-Ct;if(ct(Cr)>Y){var fi=Mt,Le=E,ln=S;Mt=Ct+Y*(x&&Mt>Ct?1:-1),E=st+p*ht.cos(Mt),S=It+l*ht.sin(Mt),j=vr(E,S,p,l,h,0,x,Le,ln,[Mt,fi,st,It])}Cr=Mt-Ct;var Sr=ht.cos(Ct),kr=ht.sin(Ct),gs=ht.cos(Mt),bn=ht.sin(Mt),er=ht.tan(Cr/4),vs=4/3*p*er,cu=4/3*l*er,uu=[c,f],Pr=[c+vs*kr,f-cu*Sr],hu=[E+vs*bn,S-cu*gs],fu=[E,S];if(Pr[0]=2*uu[0]-Pr[0],Pr[1]=2*uu[1]-Pr[1],O)return[Pr,hu,fu][N](j);for(var du=[],Dn=0,pg=(j=[Pr,hu,fu][N](j).join()[it](",")).length;Dn<pg;Dn++)du[Dn]=Dn%2?Q(j[Dn-1],j[Dn],W).y:Q(j[Dn],j[Dn+1],W).x;return du},mn=function(c,f,p,l,h,m,x,E,S){var O=1-S;return{x:et(O,3)*c+3*et(O,2)*S*p+3*O*S*S*h+et(S,3)*x,y:et(O,3)*f+3*et(O,2)*S*l+3*O*S*S*m+et(S,3)*E}},gn=pe(function(c,f,p,l,h,m,x,E){var S,O=h-2*p+c-(x-2*h+p),V=2*(p-c)-2*(h-p),Y=c-p,W=(-V+ht.sqrt(V*V-4*O*Y))/2/O,j=(-V-ht.sqrt(V*V-4*O*Y))/2/O,Q=[f,E],nt=[c,x];return ct(W)>"1e12"&&(W=.5),ct(j)>"1e12"&&(j=.5),W>0&&W<1&&(S=mn(c,f,p,l,h,m,x,E,W),nt.push(S.x),Q.push(S.y)),j>0&&j<1&&(S=mn(c,f,p,l,h,m,x,E,j),nt.push(S.x),Q.push(S.y)),O=m-2*l+f-(E-2*m+l),Y=f-l,W=(-(V=2*(l-f)-2*(m-l))+ht.sqrt(V*V-4*O*Y))/2/O,j=(-V-ht.sqrt(V*V-4*O*Y))/2/O,ct(W)>"1e12"&&(W=.5),ct(j)>"1e12"&&(j=.5),W>0&&W<1&&(S=mn(c,f,p,l,h,m,x,E,W),nt.push(S.x),Q.push(S.y)),j>0&&j<1&&(S=mn(c,f,p,l,h,m,x,E,j),nt.push(S.x),Q.push(S.y)),{min:{x:mt[M](0,nt),y:mt[M](0,Q)},max:{x:wt[M](0,nt),y:wt[M](0,Q)}}}),Zn=u._path2curve=pe(function(c,f){var p=!f&&Ne(c);if(!f&&p.curve)return xe(p.curve);for(var l=On(c),h=f&&On(f),m={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},x={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},E=function(lt,st,It){var Ct,Mt;if(!lt)return["C",st.x,st.y,st.x,st.y,st.x,st.y];switch(!(lt[0]in{T:1,Q:1})&&(st.qx=st.qy=null),lt[0]){case"M":st.X=lt[1],st.Y=lt[2];break;case"A":lt=["C"][N](vr[M](0,[st.x,st.y][N](lt.slice(1))));break;case"S":It=="C"||It=="S"?(Ct=2*st.x-st.bx,Mt=2*st.y-st.by):(Ct=st.x,Mt=st.y),lt=["C",Ct,Mt][N](lt.slice(1));break;case"T":It=="Q"||It=="T"?(st.qx=2*st.x-st.qx,st.qy=2*st.y-st.qy):(st.qx=st.x,st.qy=st.y),lt=["C"][N](on(st.x,st.y,st.qx,st.qy,lt[1],lt[2]));break;case"Q":st.qx=lt[1],st.qy=lt[2],lt=["C"][N](on(st.x,st.y,lt[1],lt[2],lt[3],lt[4]));break;case"L":lt=["C"][N](pn(st.x,st.y,lt[1],lt[2]));break;case"H":lt=["C"][N](pn(st.x,st.y,lt[1],st.y));break;case"V":lt=["C"][N](pn(st.x,st.y,st.x,lt[1]));break;case"Z":lt=["C"][N](pn(st.x,st.y,st.X,st.Y))}return lt},S=function(lt,st){if(lt[st].length>7){lt[st].shift();for(var It=lt[st];It.length;)V[st]="A",h&&(Y[st]="A"),lt.splice(st++,0,["C"][N](It.splice(0,6)));lt.splice(st,1),nt=wt(l.length,h&&h.length||0)}},O=function(lt,st,It,Ct,Mt){lt&&st&<[Mt][0]=="M"&&st[Mt][0]!="M"&&(st.splice(Mt,0,["M",Ct.x,Ct.y]),It.bx=0,It.by=0,It.x=lt[Mt][1],It.y=lt[Mt][2],nt=wt(l.length,h&&h.length||0))},V=[],Y=[],W="",j="",Q=0,nt=wt(l.length,h&&h.length||0);Q<nt;Q++){l[Q]&&(W=l[Q][0]),W!="C"&&(V[Q]=W,Q&&(j=V[Q-1])),l[Q]=E(l[Q],m,j),V[Q]!="A"&&W=="C"&&(V[Q]="C"),S(l,Q),h&&(h[Q]&&(W=h[Q][0]),W!="C"&&(Y[Q]=W,Q&&(j=Y[Q-1])),h[Q]=E(h[Q],x,j),Y[Q]!="A"&&W=="C"&&(Y[Q]="C"),S(h,Q)),O(l,h,m,x,Q),O(h,l,x,m,Q);var tt=l[Q],q=h&&h[Q],gt=tt.length,rt=h&&q.length;m.x=tt[gt-2],m.y=tt[gt-1],m.bx=L(tt[gt-4])||m.x,m.by=L(tt[gt-3])||m.y,x.bx=h&&(L(q[rt-4])||x.x),x.by=h&&(L(q[rt-3])||x.y),x.x=h&&q[rt-2],x.y=h&&q[rt-1]}return h||(p.curve=xe(l)),h?[l,h]:l},null,xe),yr=(u._parseDots=pe(function(c){for(var f=[],p=0,l=c.length;p<l;p++){var h={},m=c[p].match(/^([^:]*):?([\d\.]*)/);if(h.color=u.getRGB(m[1]),h.color.error)return null;h.opacity=h.color.opacity,h.color=h.color.hex,m[2]&&(h.offset=m[2]+"%"),f.push(h)}for(p=1,l=f.length-1;p<l;p++)if(!f[p].offset){for(var x=L(f[p-1].offset||0),E=0,S=p+1;S<l;S++)if(f[S].offset){E=f[S].offset;break}E||(E=100,S=l);for(var O=((E=L(E))-x)/(S-p+1);p<S;p++)x+=O,f[p].offset=x+"%"}return f}),u._tear=function(c,f){c==f.top&&(f.top=c.prev),c==f.bottom&&(f.bottom=c.next),c.next&&(c.next.prev=c.prev),c.prev&&(c.prev.next=c.next)}),ls=(u._tofront=function(c,f){f.top!==c&&(yr(c,f),c.next=null,c.prev=f.top,f.top.next=c,f.top=c)},u._toback=function(c,f){f.bottom!==c&&(yr(c,f),c.next=f.bottom,c.prev=null,f.bottom.prev=c,f.bottom=c)},u._insertafter=function(c,f,p){yr(c,p),f==p.top&&(p.top=c),f.next&&(f.next.prev=c),c.next=f.next,c.prev=f,f.next=c},u._insertbefore=function(c,f,p){yr(c,p),f==p.bottom&&(p.bottom=c),f.prev&&(f.prev.next=c),c.prev=f.prev,f.prev=c,c.next=f},u.toMatrix=function(c,f){var p=Ge(c),l={_:{transform:U},getBBox:function(){return p}};return _r(l,f),l.matrix}),_r=(u.transformPath=function(c,f){return oe(c,ls(c,f))},u._extractTransform=function(c,f){if(f==null)return c._.transform;f=F(f).replace(/\.{3}|\u2026/g,c._.transform||U);var p,l,h=u.parseTransformString(f),m=0,x=1,E=1,S=c._,O=new vn;if(S.transform=h||[],h)for(var V=0,Y=h.length;V<Y;V++){var W,j,Q,nt,tt,q=h[V],gt=q.length,rt=F(q[0]).toLowerCase(),lt=q[0]!=rt,st=lt?O.invert():0;rt=="t"&>==3?lt?(W=st.x(0,0),j=st.y(0,0),Q=st.x(q[1],q[2]),nt=st.y(q[1],q[2]),O.translate(Q-W,nt-j)):O.translate(q[1],q[2]):rt=="r"?gt==2?(tt=tt||c.getBBox(1),O.rotate(q[1],tt.x+tt.width/2,tt.y+tt.height/2),m+=q[1]):gt==4&&(lt?(Q=st.x(q[2],q[3]),nt=st.y(q[2],q[3]),O.rotate(q[1],Q,nt)):O.rotate(q[1],q[2],q[3]),m+=q[1]):rt=="s"?gt==2||gt==3?(tt=tt||c.getBBox(1),O.scale(q[1],q[gt-1],tt.x+tt.width/2,tt.y+tt.height/2),x*=q[1],E*=q[gt-1]):gt==5&&(lt?(Q=st.x(q[3],q[4]),nt=st.y(q[3],q[4]),O.scale(q[1],q[2],Q,nt)):O.scale(q[1],q[2],q[3],q[4]),x*=q[1],E*=q[2]):rt=="m"&>==7&&O.add(q[1],q[2],q[3],q[4],q[5],q[6]),S.dirtyT=1,c.matrix=O}c.matrix=O,S.sx=x,S.sy=E,S.deg=m,S.dx=p=O.e,S.dy=l=O.f,x==1&&E==1&&!m&&S.bbox?(S.bbox.x+=+p,S.bbox.y+=+l):S.dirtyT=1}),cs=function(c){var f=c[0];switch(f.toLowerCase()){case"t":return[f,0,0];case"m":return[f,1,0,0,1,0,0];case"r":return c.length==4?[f,0,c[2],c[3]]:[f,0];case"s":return c.length==5?[f,1,1,c[3],c[4]]:c.length==3?[f,1,1]:[f,1]}},us=u._equaliseTransform=function(c,f){f=F(f).replace(/\.{3}|\u2026/g,c),c=u.parseTransformString(c)||[],f=u.parseTransformString(f)||[];for(var p,l,h,m,x=wt(c.length,f.length),E=[],S=[],O=0;O<x;O++){if(h=c[O]||cs(f[O]),m=f[O]||cs(h),h[0]!=m[0]||h[0].toLowerCase()=="r"&&(h[2]!=m[2]||h[3]!=m[3])||h[0].toLowerCase()=="s"&&(h[3]!=m[3]||h[4]!=m[4]))return;for(E[O]=[],S[O]=[],p=0,l=wt(h.length,m.length);p<l;p++)p in h&&(E[O][p]=h[p]),p in m&&(S[O][p]=m[p])}return{from:E,to:S}};function vn(c,f,p,l,h,m){c!=null?(this.a=+c,this.b=+f,this.c=+p,this.d=+l,this.e=+h,this.f=+m):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}u._getContainer=function(c,f,p,l){var h;if((h=l!=null||u.is(c,"object")?c:k.doc.getElementById(c))!=null)return h.tagName?f==null?{container:h,width:h.style.pixelWidth||h.offsetWidth,height:h.style.pixelHeight||h.offsetHeight}:{container:h,width:f,height:p}:{container:1,x:c,y:f,width:p,height:l}},u.pathToRelative=as,u._engine={},u.path2curve=Zn,u.matrix=function(c,f,p,l,h,m){return new vn(c,f,p,l,h,m)},function(c){function f(l){return l[0]*l[0]+l[1]*l[1]}function p(l){var h=ht.sqrt(f(l));l[0]&&(l[0]/=h),l[1]&&(l[1]/=h)}c.add=function(l,h,m,x,E,S){var O,V,Y,W,j=[[],[],[]],Q=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],nt=[[l,m,E],[h,x,S],[0,0,1]];for(l&&l instanceof vn&&(nt=[[l.a,l.c,l.e],[l.b,l.d,l.f],[0,0,1]]),O=0;O<3;O++)for(V=0;V<3;V++){for(W=0,Y=0;Y<3;Y++)W+=Q[O][Y]*nt[Y][V];j[O][V]=W}this.a=j[0][0],this.b=j[1][0],this.c=j[0][1],this.d=j[1][1],this.e=j[0][2],this.f=j[1][2]},c.invert=function(){var l=this,h=l.a*l.d-l.b*l.c;return new vn(l.d/h,-l.b/h,-l.c/h,l.a/h,(l.c*l.f-l.d*l.e)/h,(l.b*l.e-l.a*l.f)/h)},c.clone=function(){return new vn(this.a,this.b,this.c,this.d,this.e,this.f)},c.translate=function(l,h){this.add(1,0,0,1,l,h)},c.scale=function(l,h,m,x){h==null&&(h=l),(m||x)&&this.add(1,0,0,1,m,x),this.add(l,0,0,h,0,0),(m||x)&&this.add(1,0,0,1,-m,-x)},c.rotate=function(l,h,m){l=u.rad(l),h=h||0,m=m||0;var x=+ht.cos(l).toFixed(9),E=+ht.sin(l).toFixed(9);this.add(x,E,-E,x,h,m),this.add(1,0,0,1,-h,-m)},c.x=function(l,h){return l*this.a+h*this.c+this.e},c.y=function(l,h){return l*this.b+h*this.d+this.f},c.get=function(l){return+this[F.fromCharCode(97+l)].toFixed(4)},c.toString=function(){return u.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()},c.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"},c.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},c.split=function(){var l={};l.dx=this.e,l.dy=this.f;var h=[[this.a,this.c],[this.b,this.d]];l.scalex=ht.sqrt(f(h[0])),p(h[0]),l.shear=h[0][0]*h[1][0]+h[0][1]*h[1][1],h[1]=[h[1][0]-h[0][0]*l.shear,h[1][1]-h[0][1]*l.shear],l.scaley=ht.sqrt(f(h[1])),p(h[1]),l.shear/=l.scaley;var m=-h[0][1],x=h[1][1];return x<0?(l.rotate=u.deg(ht.acos(x)),m<0&&(l.rotate=360-l.rotate)):l.rotate=u.deg(ht.asin(m)),l.isSimple=!(+l.shear.toFixed(9)||l.scalex.toFixed(9)!=l.scaley.toFixed(9)&&l.rotate),l.isSuperSimple=!+l.shear.toFixed(9)&&l.scalex.toFixed(9)==l.scaley.toFixed(9)&&!l.rotate,l.noRotation=!+l.shear.toFixed(9)&&!l.rotate,l},c.toTransformString=function(l){var h=l||this[it]();return h.isSimple?(h.scalex=+h.scalex.toFixed(4),h.scaley=+h.scaley.toFixed(4),h.rotate=+h.rotate.toFixed(4),(h.dx||h.dy?"t"+[h.dx,h.dy]:U)+(h.scalex!=1||h.scaley!=1?"s"+[h.scalex,h.scaley,0,0]:U)+(h.rotate?"r"+[h.rotate,0,0]:U)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(vn.prototype);for(var hs=function(){this.returnValue=!1},fs=function(){return this.originalEvent.preventDefault()},ds=function(){this.cancelBubble=!0},ps=function(){return this.originalEvent.stopPropagation()},xr=function(c){var f=k.doc.documentElement.scrollTop||k.doc.body.scrollTop,p=k.doc.documentElement.scrollLeft||k.doc.body.scrollLeft;return{x:c.clientX+p,y:c.clientY+f}},yn=k.doc.addEventListener?function(c,f,p,l){var h=function(x){var E=xr(x);return p.call(l,x,E.x,E.y)};if(c.addEventListener(f,h,!1),D&&_t[f]){var m=function(x){for(var E=xr(x),S=x,O=0,V=x.targetTouches&&x.targetTouches.length;O<V;O++)if(x.targetTouches[O].target==c){(x=x.targetTouches[O]).originalEvent=S,x.preventDefault=fs,x.stopPropagation=ps;break}return p.call(l,x,E.x,E.y)};c.addEventListener(_t[f],m,!1)}return function(){return c.removeEventListener(f,h,!1),D&&_t[f]&&c.removeEventListener(_t[f],m,!1),!0}}:k.doc.attachEvent?function(c,f,p,l){var h=function(m){m=m||k.win.event;var x=k.doc.documentElement.scrollTop||k.doc.body.scrollTop,E=k.doc.documentElement.scrollLeft||k.doc.body.scrollLeft,S=m.clientX+E,O=m.clientY+x;return m.preventDefault=m.preventDefault||hs,m.stopPropagation=m.stopPropagation||ds,p.call(l,m,S,O)};return c.attachEvent("on"+f,h),function(){return c.detachEvent("on"+f,h),!0}}:void 0,Ae=[],_n=function(c){for(var f,p=c.clientX,l=c.clientY,h=k.doc.documentElement.scrollTop||k.doc.body.scrollTop,m=k.doc.documentElement.scrollLeft||k.doc.body.scrollLeft,x=Ae.length;x--;){if(f=Ae[x],D&&c.touches){for(var E,S=c.touches.length;S--;)if((E=c.touches[S]).identifier==f.el._drag.id){p=E.clientX,l=E.clientY,(c.originalEvent?c.originalEvent:c).preventDefault();break}}else c.preventDefault();var O,V=f.el.node,Y=V.nextSibling,W=V.parentNode,j=V.style.display;k.win.opera&&W.removeChild(V),V.style.display="none",O=f.el.paper.getElementByPoint(p,l),V.style.display=j,k.win.opera&&(Y?W.insertBefore(V,Y):W.appendChild(V)),O&&a("raphael.drag.over."+f.el.id,f.el,O),p+=m,l+=h,a("raphael.drag.move."+f.el.id,f.move_scope||f.el,p-f.el._drag.x,l-f.el._drag.y,p,l,c)}},Ln=function(c){u.unmousemove(_n).unmouseup(Ln);for(var f,p=Ae.length;p--;)(f=Ae[p]).el._drag={},a("raphael.drag.end."+f.el.id,f.end_scope||f.start_scope||f.move_scope||f.el,c);Ae=[]},Ht=u.el={},ms=ut.length;ms--;)(function(c){u[c]=Ht[c]=function(f,p){return u.is(f,"function")&&(this.events=this.events||[],this.events.push({name:c,f,unbind:yn(this.shape||this.node||k.doc,c,f,p||this)})),this},u["un"+c]=Ht["un"+c]=function(f){for(var p=this.events||[],l=p.length;l--;)p[l].name!=c||!u.is(f,"undefined")&&p[l].f!=f||(p[l].unbind(),p.splice(l,1),!p.length&&delete this.events);return this}})(ut[ms]);Ht.data=function(c,f){var p=Ft[this.id]=Ft[this.id]||{};if(arguments.length==0)return p;if(arguments.length==1){if(u.is(c,"object")){for(var l in c)c[I](l)&&this.data(l,c[l]);return this}return a("raphael.data.get."+this.id,this,p[c],c),p[c]}return p[c]=f,a("raphael.data.set."+this.id,this,f,c),this},Ht.removeData=function(c){return c==null?delete Ft[this.id]:Ft[this.id]&&delete Ft[this.id][c],this},Ht.getData=function(){return ye(Ft[this.id]||{})},Ht.hover=function(c,f,p,l){return this.mouseover(c,p).mouseout(f,l||p)},Ht.unhover=function(c,f){return this.unmouseover(c).unmouseout(f)};var Rn=[];Ht.drag=function(c,f,p,l,h,m){function x(E){(E.originalEvent||E).preventDefault();var S=E.clientX,O=E.clientY,V=k.doc.documentElement.scrollTop||k.doc.body.scrollTop,Y=k.doc.documentElement.scrollLeft||k.doc.body.scrollLeft;if(this._drag.id=E.identifier,D&&E.touches){for(var W,j=E.touches.length;j--;)if(W=E.touches[j],this._drag.id=W.identifier,W.identifier==this._drag.id){S=W.clientX,O=W.clientY;break}}this._drag.x=S+Y,this._drag.y=O+V,!Ae.length&&u.mousemove(_n).mouseup(Ln),Ae.push({el:this,move_scope:l,start_scope:h,end_scope:m}),f&&a.on("raphael.drag.start."+this.id,f),c&&a.on("raphael.drag.move."+this.id,c),p&&a.on("raphael.drag.end."+this.id,p),a("raphael.drag.start."+this.id,h||l||this,this._drag.x,this._drag.y,E)}return this._drag={},Rn.push({el:this,start:x}),this.mousedown(x),this},Ht.onDragOver=function(c){c?a.on("raphael.drag.over."+this.id,c):a.unbind("raphael.drag.over."+this.id)},Ht.undrag=function(){for(var c=Rn.length;c--;)Rn[c].el==this&&(this.unmousedown(Rn[c].start),Rn.splice(c,1),a.unbind("raphael.drag.*."+this.id));!Rn.length&&u.unmousemove(_n).unmouseup(Ln),Ae=[]},g.circle=function(c,f,p){var l=u._engine.circle(this,c||0,f||0,p||0);return this.__set__&&this.__set__.push(l),l},g.rect=function(c,f,p,l,h){var m=u._engine.rect(this,c||0,f||0,p||0,l||0,h||0);return this.__set__&&this.__set__.push(m),m},g.ellipse=function(c,f,p,l){var h=u._engine.ellipse(this,c||0,f||0,p||0,l||0);return this.__set__&&this.__set__.push(h),h},g.path=function(c){c&&!u.is(c,"string")&&!u.is(c[0],R)&&(c+=U);var f=u._engine.path(u.format[M](u,arguments),this);return this.__set__&&this.__set__.push(f),f},g.image=function(c,f,p,l,h){var m=u._engine.image(this,c||"about:blank",f||0,p||0,l||0,h||0);return this.__set__&&this.__set__.push(m),m},g.text=function(c,f,p){var l=u._engine.text(this,c||0,f||0,F(p));return this.__set__&&this.__set__.push(l),l},g.set=function(c){!u.is(c,"array")&&(c=Array.prototype.splice.call(arguments,0,arguments.length));var f=new Jn(c);return this.__set__&&this.__set__.push(f),f.paper=this,f.type="set",f},g.setStart=function(c){this.__set__=c||this.set()},g.setFinish=function(c){var f=this.__set__;return delete this.__set__,f},g.getSize=function(){var c=this.canvas.parentNode;return{width:c.offsetWidth,height:c.offsetHeight}},g.setSize=function(c,f){return u._engine.setSize.call(this,c,f)},g.setViewBox=function(c,f,p,l,h){return u._engine.setViewBox.call(this,c,f,p,l,h)},g.top=g.bottom=null,g.raphael=u;function Qn(){return this.x+H+this.y+H+this.width+" × "+this.height}g.getElementByPoint=function(c,f){var p,l,h,m,x,E,S,O=this.canvas,V=k.doc.elementFromPoint(c,f);if(k.win.opera&&V.tagName=="svg"){var Y=(l=(p=O).getBoundingClientRect(),h=p.ownerDocument,m=h.body,x=h.documentElement,E=x.clientTop||m.clientTop||0,S=x.clientLeft||m.clientLeft||0,{y:l.top+(k.win.pageYOffset||x.scrollTop||m.scrollTop)-E,x:l.left+(k.win.pageXOffset||x.scrollLeft||m.scrollLeft)-S}),W=O.createSVGRect();W.x=c-Y.x,W.y=f-Y.y,W.width=W.height=1;var j=O.getIntersectionList(W,null);j.length&&(V=j[j.length-1])}if(!V)return null;for(;V.parentNode&&V!=O.parentNode&&!V.raphael;)V=V.parentNode;return V==this.canvas.parentNode&&(V=O),V=V&&V.raphael?this.getById(V.raphaelid):null},g.getElementsByBBox=function(c){var f=this.set();return this.forEach(function(p){u.isBBoxIntersect(p.getBBox(),c)&&f.push(p)}),f},g.getById=function(c){for(var f=this.bottom;f;){if(f.id==c)return f;f=f.next}return null},g.forEach=function(c,f){for(var p=this.bottom;p;){if(c.call(f,p)===!1)return this;p=p.next}return this},g.getElementsByPoint=function(c,f){var p=this.set();return this.forEach(function(l){l.isPointInside(c,f)&&p.push(l)}),p},Ht.isPointInside=function(c,f){var p=this.realPath=jt[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(p=u.transformPath(p,this.attr("transform"))),u.isPointInsidePath(p,c,f)},Ht.getBBox=function(c){if(this.removed)return{};var f=this._;return c?(!f.dirty&&f.bboxwt||(this.realPath=jt[this.type](this),f.bboxwt=Ge(this.realPath),f.bboxwt.toString=Qn,f.dirty=0),f.bboxwt):((f.dirty||f.dirtyT||!f.bbox)&&(!f.dirty&&this.realPath||(f.bboxwt=0,this.realPath=jt[this.type](this)),f.bbox=Ge(oe(this.realPath,this.matrix)),f.bbox.toString=Qn,f.dirty=f.dirtyT=0),f.bbox)},Ht.clone=function(){if(this.removed)return null;var c=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(c),c},Ht.glow=function(c){if(this.type=="text")return null;var f={width:((c=c||{}).width||10)+(+this.attr("stroke-width")||1),fill:c.fill||!1,opacity:c.opacity==null?.5:c.opacity,offsetx:c.offsetx||0,offsety:c.offsety||0,color:c.color||"#000"},p=f.width/2,l=this.paper,h=l.set(),m=this.realPath||jt[this.type](this);m=this.matrix?oe(m,this.matrix):m;for(var x=1;x<p+1;x++)h.push(l.path(m).attr({stroke:f.color,fill:f.fill?f.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(f.width/p*x).toFixed(3),opacity:+(f.opacity/p).toFixed(3)}));return h.insertBefore(this).translate(f.offsetx,f.offsety)};var we=function(c,f,p,l,h,m,x,E,S){return S==null?Fe(c,f,p,l,h,m,x,E):u.findDotsAtSegment(c,f,p,l,h,m,x,E,function(O,V,Y,W,j,Q,nt,tt,q){if(!(q<0||Fe(O,V,Y,W,j,Q,nt,tt)<q)){var gt,rt=.5,lt=1-rt;for(gt=Fe(O,V,Y,W,j,Q,nt,tt,lt);ct(gt-q)>.01;)gt=Fe(O,V,Y,W,j,Q,nt,tt,lt+=(gt<q?1:-1)*(rt/=2));return lt}}(c,f,p,l,h,m,x,E,S))},an=function(c,f){return function(p,l,h){for(var m,x,E,S,O,V="",Y={},W=0,j=0,Q=(p=Zn(p)).length;j<Q;j++){if((E=p[j])[0]=="M")m=+E[1],x=+E[2];else{if(W+(S=we(m,x,E[1],E[2],E[3],E[4],E[5],E[6]))>l){if(f&&!Y.start){if(V+=["C"+(O=we(m,x,E[1],E[2],E[3],E[4],E[5],E[6],l-W)).start.x,O.start.y,O.m.x,O.m.y,O.x,O.y],h)return V;Y.start=V,V=["M"+O.x,O.y+"C"+O.n.x,O.n.y,O.end.x,O.end.y,E[5],E[6]].join(),W+=S,m=+E[5],x=+E[6];continue}if(!c&&!f)return{x:(O=we(m,x,E[1],E[2],E[3],E[4],E[5],E[6],l-W)).x,y:O.y,alpha:O.alpha}}W+=S,m=+E[5],x=+E[6]}V+=E.shift()+E}return Y.end=V,(O=c?W:f?Y:u.findDotsAtSegment(m,x,E[0],E[1],E[2],E[3],E[4],E[5],1)).alpha&&(O={x:O.x,y:O.y,alpha:O.alpha}),O}},Qe=an(1),Ve=an(),xn=an(0,1);u.getTotalLength=Qe,u.getPointAtLength=Ve,u.getSubpath=function(c,f,p){if(this.getTotalLength(c)-p<1e-6)return xn(c,f).end;var l=xn(c,p,1);return f?xn(l,f).end:l},Ht.getTotalLength=function(){var c=this.getPath();if(c)return this.node.getTotalLength?this.node.getTotalLength():Qe(c)},Ht.getPointAtLength=function(c){var f=this.getPath();if(f)return Ve(f,c)},Ht.getPath=function(){var c,f=u._getPath[this.type];if(this.type!="text"&&this.type!="set")return f&&(c=f(this)),c},Ht.getSubpath=function(c,f){var p=this.getPath();if(p)return u.getSubpath(p,c,f)};var ne=u.easing_formulas={linear:function(c){return c},"<":function(c){return et(c,1.7)},">":function(c){return et(c,.48)},"<>":function(c){var f=.48-c/1.04,p=ht.sqrt(.1734+f*f),l=p-f,h=-p-f,m=et(ct(l),1/3)*(l<0?-1:1)+et(ct(h),1/3)*(h<0?-1:1)+.5;return 3*(1-m)*m*m+m*m*m},backIn:function(c){var f=1.70158;return c*c*((f+1)*c-f)},backOut:function(c){var f=1.70158;return(c-=1)*c*((f+1)*c+f)+1},elastic:function(c){return c==!!c?c:et(2,-10*c)*ht.sin(2*X*(c-.075)/.3)+1},bounce:function(c){var f=7.5625,p=2.75;return c<1/p?f*c*c:c<2/p?f*(c-=1.5/p)*c+.75:c<2.5/p?f*(c-=2.25/p)*c+.9375:f*(c-=2.625/p)*c+.984375}};ne.easeIn=ne["ease-in"]=ne["<"],ne.easeOut=ne["ease-out"]=ne[">"],ne.easeInOut=ne["ease-in-out"]=ne["<>"],ne["back-in"]=ne.backIn,ne["back-out"]=ne.backOut;var Pt=[],hi=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(c){setTimeout(c,16)},wr=function(){for(var c=+new Date,f=0;f<Pt.length;f++){var p=Pt[f];if(!p.el.removed&&!p.paused){var l,h,m=c-p.start,x=p.ms,E=p.easing,S=p.from,O=p.diff,V=p.to,Y=(p.t,p.el),W={},j={};if(p.initstatus?(m=(p.initstatus*p.anim.top-p.prev)/(p.percent-p.prev)*x,p.status=p.initstatus,delete p.initstatus,p.stop&&Pt.splice(f--,1)):p.status=(p.prev+(p.percent-p.prev)*(m/x))/p.anim.top,!(m<0))if(m<x){var Q=E(m/x);for(var nt in S)if(S[I](nt)){switch(G[nt]){case at:l=+S[nt]+Q*x*O[nt];break;case"colour":l="rgb("+[Fn(P(S[nt].r+Q*x*O[nt].r)),Fn(P(S[nt].g+Q*x*O[nt].g)),Fn(P(S[nt].b+Q*x*O[nt].b))].join(",")+")";break;case"path":l=[];for(var tt=0,q=S[nt].length;tt<q;tt++){l[tt]=[S[nt][tt][0]];for(var gt=1,rt=S[nt][tt].length;gt<rt;gt++)l[tt][gt]=+S[nt][tt][gt]+Q*x*O[nt][tt][gt];l[tt]=l[tt].join(H)}l=l.join(H);break;case"transform":if(O[nt].real)for(l=[],tt=0,q=S[nt].length;tt<q;tt++)for(l[tt]=[S[nt][tt][0]],gt=1,rt=S[nt][tt].length;gt<rt;gt++)l[tt][gt]=S[nt][tt][gt]+Q*x*O[nt][tt][gt];else{var lt=function(It){return+S[nt][It]+Q*x*O[nt][It]};l=[["m",lt(0),lt(1),lt(2),lt(3),lt(4),lt(5)]]}break;case"csv":if(nt=="clip-rect")for(l=[],tt=4;tt--;)l[tt]=+S[nt][tt]+Q*x*O[nt][tt];break;default:var st=[][N](S[nt]);for(l=[],tt=Y.paper.customAttributes[nt].length;tt--;)l[tt]=+st[tt]+Q*x*O[nt][tt]}W[nt]=l}Y.attr(W),function(It,Ct,Mt){setTimeout(function(){a("raphael.anim.frame."+It,Ct,Mt)})}(Y.id,Y,p.anim)}else{if(function(It,Ct,Mt){setTimeout(function(){a("raphael.anim.frame."+Ct.id,Ct,Mt),a("raphael.anim.finish."+Ct.id,Ct,Mt),u.is(It,"function")&&It.call(Ct)})}(p.callback,Y,p.anim),Y.attr(V),Pt.splice(f--,1),p.repeat>1&&!p.next){for(h in V)V[I](h)&&(j[h]=p.totalOrigin[h]);p.el.attr(j),wn(p.anim,p.el,p.anim.percents[0],null,p.totalOrigin,p.repeat-1)}p.next&&!p.stop&&wn(p.anim,p.el,p.next,null,p.totalOrigin,p.repeat)}}}Pt.length&&hi(wr)},Fn=function(c){return c>255?255:c<0?0:c};function De(c,f,p,l,h,m){var x=3*f,E=3*(l-f)-x,S=1-x-E,O=3*p,V=3*(h-p)-O,Y=1-O-V;function W(j){return((S*j+E)*j+x)*j}return function(j,Q){var nt=function(tt,q){var gt,rt,lt,st,It,Ct;for(lt=tt,Ct=0;Ct<8;Ct++){if(st=W(lt)-tt,ct(st)<q)return lt;if(ct(It=(3*S*lt+2*E)*lt+x)<1e-6)break;lt-=st/It}if(rt=1,(lt=tt)<(gt=0))return gt;if(lt>rt)return rt;for(;gt<rt;){if(st=W(lt),ct(st-tt)<q)return lt;tt>st?gt=lt:rt=lt,lt=(rt-gt)/2+gt}return lt}(j,Q);return((Y*nt+V)*nt+O)*nt}(c,1/(200*m))}function Oe(c,f){var p=[],l={};if(this.ms=f,this.times=1,c){for(var h in c)c[I](h)&&(l[L(h)]=c[h],p.push(L(h)));p.sort(zt)}this.anim=l,this.top=p[p.length-1],this.percents=p}function wn(c,f,p,l,h,m){p=L(p);var x,E,S,O,V,Y,W=c.ms,j={},Q={},nt={};if(l)for(q=0,gt=Pt.length;q<gt;q++){var tt=Pt[q];if(tt.el.id==f.id&&tt.anim==c){tt.percent!=p?(Pt.splice(q,1),S=1):E=tt,f.attr(tt.totalOrigin);break}}else l=+Q;for(var q=0,gt=c.percents.length;q<gt;q++){if(c.percents[q]==p||c.percents[q]>l*c.top){p=c.percents[q],V=c.percents[q-1]||0,W=W/c.top*(p-V),O=c.percents[q+1],x=c.anim[p];break}l&&f.attr(c.anim[c.percents[q]])}if(x){if(E)E.initstatus=l,E.start=new Date-E.ms*l;else{for(var rt in x)if(x[I](rt)&&(G[I](rt)||f.paper.customAttributes[I](rt)))switch(j[rt]=f.attr(rt),j[rt]==null&&(j[rt]=Z[rt]),Q[rt]=x[rt],G[rt]){case at:nt[rt]=(Q[rt]-j[rt])/W;break;case"colour":j[rt]=u.getRGB(j[rt]);var lt=u.getRGB(Q[rt]);nt[rt]={r:(lt.r-j[rt].r)/W,g:(lt.g-j[rt].g)/W,b:(lt.b-j[rt].b)/W};break;case"path":var st=Zn(j[rt],Q[rt]),It=st[1];for(j[rt]=st[0],nt[rt]=[],q=0,gt=j[rt].length;q<gt;q++){nt[rt][q]=[0];for(var Ct=1,Mt=j[rt][q].length;Ct<Mt;Ct++)nt[rt][q][Ct]=(It[q][Ct]-j[rt][q][Ct])/W}break;case"transform":var Cr=f._,fi=us(Cr[rt],Q[rt]);if(fi)for(j[rt]=fi.from,Q[rt]=fi.to,nt[rt]=[],nt[rt].real=!0,q=0,gt=j[rt].length;q<gt;q++)for(nt[rt][q]=[j[rt][q][0]],Ct=1,Mt=j[rt][q].length;Ct<Mt;Ct++)nt[rt][q][Ct]=(Q[rt][q][Ct]-j[rt][q][Ct])/W;else{var Le=f.matrix||new vn,ln={_:{transform:Cr.transform},getBBox:function(){return f.getBBox(1)}};j[rt]=[Le.a,Le.b,Le.c,Le.d,Le.e,Le.f],_r(ln,Q[rt]),Q[rt]=ln._.transform,nt[rt]=[(ln.matrix.a-Le.a)/W,(ln.matrix.b-Le.b)/W,(ln.matrix.c-Le.c)/W,(ln.matrix.d-Le.d)/W,(ln.matrix.e-Le.e)/W,(ln.matrix.f-Le.f)/W]}break;case"csv":var Sr=F(x[rt])[it](v),kr=F(j[rt])[it](v);if(rt=="clip-rect")for(j[rt]=kr,nt[rt]=[],q=kr.length;q--;)nt[rt][q]=(Sr[q]-j[rt][q])/W;Q[rt]=Sr;break;default:for(Sr=[][N](x[rt]),kr=[][N](j[rt]),nt[rt]=[],q=f.paper.customAttributes[rt].length;q--;)nt[rt][q]=((Sr[q]||0)-(kr[q]||0))/W}var gs=x.easing,bn=u.easing_formulas[gs];if(!bn)if((bn=F(gs).match(_))&&bn.length==5){var er=bn;bn=function(vs){return De(vs,+er[1],+er[2],+er[3],+er[4],W)}}else bn=Vt;if(tt={anim:c,percent:p,timestamp:Y=x.start||c.start||+new Date,start:Y+(c.del||0),status:0,initstatus:l||0,stop:!1,ms:W,easing:bn,from:j,diff:nt,to:Q,el:f,callback:x.callback,prev:V,next:O,repeat:m||c.times,origin:f.attr(),totalOrigin:h},Pt.push(tt),l&&!E&&!S&&(tt.stop=!0,tt.start=new Date-W*l,Pt.length==1))return wr();S&&(tt.start=new Date-tt.ms*l),Pt.length==1&&hi(wr)}a("raphael.anim.start."+f.id,f,c)}}function br(c){for(var f=0;f<Pt.length;f++)Pt[f].el.paper==c&&Pt.splice(f--,1)}Ht.animateWith=function(c,f,p,l,h,m){if(this.removed)return m&&m.call(this),this;var x=p instanceof Oe?p:u.animation(p,l,h,m);wn(x,this,x.percents[0],null,this.attr());for(var E=0,S=Pt.length;E<S;E++)if(Pt[E].anim==f&&Pt[E].el==c){Pt[S-1].start=Pt[E].start;break}return this},Ht.onAnimation=function(c){return c?a.on("raphael.anim.frame."+this.id,c):a.unbind("raphael.anim.frame."+this.id),this},Oe.prototype.delay=function(c){var f=new Oe(this.anim,this.ms);return f.times=this.times,f.del=+c||0,f},Oe.prototype.repeat=function(c){var f=new Oe(this.anim,this.ms);return f.del=this.del,f.times=ht.floor(wt(c,0))||1,f},u.animation=function(c,f,p,l){if(c instanceof Oe)return c;!u.is(p,"function")&&p||(l=l||p||null,p=null),c=Object(c),f=+f||0;var h,m,x={};for(m in c)c[I](m)&&L(m)!=m&&L(m)+"%"!=m&&(h=!0,x[m]=c[m]);if(h)return p&&(x.easing=p),l&&(x.callback=l),new Oe({100:x},f);if(l){var E=0;for(var S in c){var O=z(S);c[I](S)&&O>E&&(E=O)}!c[E+="%"].callback&&(c[E].callback=l)}return new Oe(c,f)},Ht.animate=function(c,f,p,l){if(this.removed)return l&&l.call(this),this;var h=c instanceof Oe?c:u.animation(c,f,p,l);return wn(h,this,h.percents[0],null,this.attr()),this},Ht.setTime=function(c,f){return c&&f!=null&&this.status(c,mt(f,c.ms)/c.ms),this},Ht.status=function(c,f){var p,l,h=[],m=0;if(f!=null)return wn(c,this,-1,mt(f,1)),this;for(p=Pt.length;m<p;m++)if((l=Pt[m]).el.id==this.id&&(!c||l.anim==c)){if(c)return l.status;h.push({anim:l.anim,status:l.status})}return c?0:h},Ht.pause=function(c){for(var f=0;f<Pt.length;f++)Pt[f].el.id!=this.id||c&&Pt[f].anim!=c||a("raphael.anim.pause."+this.id,this,Pt[f].anim)!==!1&&(Pt[f].paused=!0);return this},Ht.resume=function(c){for(var f=0;f<Pt.length;f++)if(Pt[f].el.id==this.id&&(!c||Pt[f].anim==c)){var p=Pt[f];a("raphael.anim.resume."+this.id,this,p.anim)!==!1&&(delete p.paused,this.status(p.anim,p.status))}return this},Ht.stop=function(c){for(var f=0;f<Pt.length;f++)Pt[f].el.id!=this.id||c&&Pt[f].anim!=c||a("raphael.anim.stop."+this.id,this,Pt[f].anim)!==!1&&Pt.splice(f--,1);return this},a.on("raphael.remove",br),a.on("raphael.clear",br),Ht.toString=function(){return"Raphaël’s object"};var Er,Tr,je,He,Jn=function(c){if(this.items=[],this.length=0,this.type="set",c)for(var f=0,p=c.length;f<p;f++)!c[f]||c[f].constructor!=Ht.constructor&&c[f].constructor!=Jn||(this[this.items.length]=this.items[this.items.length]=c[f],this.length++)},he=Jn.prototype;for(var tr in he.push=function(){for(var c,f,p=0,l=arguments.length;p<l;p++)!(c=arguments[p])||c.constructor!=Ht.constructor&&c.constructor!=Jn||(this[f=this.items.length]=this.items[f]=c,this.length++);return this},he.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},he.forEach=function(c,f){for(var p=0,l=this.items.length;p<l;p++)if(c.call(f,this.items[p],p)===!1)return this;return this},Ht)Ht[I](tr)&&(he[tr]=function(c){return function(){var f=arguments;return this.forEach(function(p){p[c][M](p,f)})}}(tr));return he.attr=function(c,f){if(c&&u.is(c,R)&&u.is(c[0],"object"))for(var p=0,l=c.length;p<l;p++)this.items[p].attr(c[p]);else for(var h=0,m=this.items.length;h<m;h++)this.items[h].attr(c,f);return this},he.clear=function(){for(;this.length;)this.pop()},he.splice=function(c,f,p){c=c<0?wt(this.length+c,0):c,f=wt(0,mt(this.length-c,f));var l,h=[],m=[],x=[];for(l=2;l<arguments.length;l++)x.push(arguments[l]);for(l=0;l<f;l++)m.push(this[c+l]);for(;l<this.length-c;l++)h.push(this[c+l]);var E=x.length;for(l=0;l<E+h.length;l++)this.items[c+l]=this[c+l]=l<E?x[l]:h[l-E];for(l=this.items.length=this.length-=f-E;this[l];)delete this[l++];return new Jn(m)},he.exclude=function(c){for(var f=0,p=this.length;f<p;f++)if(this[f]==c)return this.splice(f,1),!0},he.animate=function(c,f,p,l){(u.is(p,"function")||!p)&&(l=p||null);var h,m,x=this.items.length,E=x,S=this;if(!x)return this;l&&(m=function(){!--x&&l.call(S)}),p=u.is(p,"string")?p:m;var O=u.animation(c,f,p,m);for(h=this.items[--E].animate(O);E--;)this.items[E]&&!this.items[E].removed&&this.items[E].animateWith(h,O,O),this.items[E]&&!this.items[E].removed||x--;return this},he.insertAfter=function(c){for(var f=this.items.length;f--;)this.items[f].insertAfter(c);return this},he.getBBox=function(){for(var c=[],f=[],p=[],l=[],h=this.items.length;h--;)if(!this.items[h].removed){var m=this.items[h].getBBox();c.push(m.x),f.push(m.y),p.push(m.x+m.width),l.push(m.y+m.height)}return{x:c=mt[M](0,c),y:f=mt[M](0,f),x2:p=wt[M](0,p),y2:l=wt[M](0,l),width:p-c,height:l-f}},he.clone=function(c){c=this.paper.set();for(var f=0,p=this.items.length;f<p;f++)c.push(this.items[f].clone());return c},he.toString=function(){return"Raphaël‘s set"},he.glow=function(c){var f=this.paper.set();return this.forEach(function(p,l){var h=p.glow(c);h?.forEach(function(m,x){f.push(m)})}),f},he.isPointInside=function(c,f){var p=!1;return this.forEach(function(l){if(l.isPointInside(c,f))return p=!0,!1}),p},u.registerFont=function(c){if(!c.face)return c;this.fonts=this.fonts||{};var f={w:c.w,face:{},glyphs:{}},p=c.face["font-family"];for(var l in c.face)c.face[I](l)&&(f.face[l]=c.face[l]);if(this.fonts[p]?this.fonts[p].push(f):this.fonts[p]=[f],!c.svg){for(var h in f.face["units-per-em"]=z(c.face["units-per-em"],10),c.glyphs)if(c.glyphs[I](h)){var m=c.glyphs[h];if(f.glyphs[h]={w:m.w,k:{},d:m.d&&"M"+m.d.replace(/[mlcxtrv]/g,function(E){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[E]||"M"})+"z"},m.k)for(var x in m.k)m[I](x)&&(f.glyphs[h].k[x]=m.k[x])}}return c},g.getFont=function(c,f,p,l){if(l=l||"normal",p=p||"normal",f=+f||{normal:400,bold:700,lighter:300,bolder:800}[f]||400,u.fonts){var h,m=u.fonts[c];if(!m){var x=new RegExp("(^|\\s)"+c.replace(/[^\w\d\s+!~.:_-]/g,U)+"(\\s|$)","i");for(var E in u.fonts)if(u.fonts[I](E)&&x.test(E)){m=u.fonts[E];break}}if(m)for(var S=0,O=m.length;S<O&&((h=m[S]).face["font-weight"]!=f||h.face["font-style"]!=p&&h.face["font-style"]||h.face["font-stretch"]!=l);S++);return h}},g.print=function(c,f,p,l,h,m,x,E){m=m||"middle",x=wt(mt(x||0,1),-1),E=wt(mt(E||1,3),1);var S,O=F(p)[it](U),V=0,Y=0,W=U;if(u.is(l,"string")&&(l=this.getFont(l)),l){S=(h||16)/l.face["units-per-em"];for(var j=l.face.bbox[it](v),Q=+j[0],nt=j[3]-j[1],tt=0,q=+j[1]+(m=="baseline"?nt+ +l.face.descent:nt/2),gt=0,rt=O.length;gt<rt;gt++){if(O[gt]==`
|
|
46
|
-
`)V=0,st=0,Y=0,tt+=nt*E;else{var lt=Y&&l.glyphs[O[gt-1]]||{},st=l.glyphs[O[gt]];V+=Y?(lt.w||l.w)+(lt.k&<.k[O[gt]]||0)+l.w*x:0,Y=1}st&&st.d&&(W+=u.transformPath(st.d,["t",V*S,tt*S,"s",S,S,Q,q,"t",(c-Q)/S,(f-q)/S]))}}return this.path(W).attr({fill:"#000",stroke:"none"})},g.add=function(c){if(u.is(c,"array"))for(var f,p=this.set(),l=0,h=c.length;l<h;l++)f=c[l]||{},y[I](f.type)&&p.push(this[f.type]().attr(f));return p},u.format=function(c,f){var p=u.is(f,R)?[0][N](f):arguments;return c&&u.is(c,"string")&&p.length-1&&(c=c.replace(w,function(l,h){return p[++h]==null?U:p[h]})),c||U},u.fullfill=(Er=/\{([^\}]+)\}/g,Tr=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,function(c,f){return String(c).replace(Er,function(p,l){return function(h,m,x){var E=x;return m.replace(Tr,function(S,O,V,Y,W){O=O||Y,E&&(O in E&&(E=E[O]),typeof E=="function"&&W&&(E=E()))}),E=(E==null||E==x?h:E)+""}(p,l,f)})}),u.ninja=function(){if(A.was)k.win.Raphael=A.is;else{window.Raphael=void 0;try{delete window.Raphael}catch{}}return u},u.st=he,a.on("raphael.DOMload",function(){d=!0}),(je=document).readyState==null&&je.addEventListener&&(je.addEventListener("DOMContentLoaded",He=function(){je.removeEventListener("DOMContentLoaded",He,!1),je.readyState="complete"},!1),je.readyState="loading"),function c(){/in/.test(je.readyState)?setTimeout(c,9):u.eve("raphael.DOMload")}(),u}.apply(r,s))===void 0||(n.exports=o)},function(n,r,i){var s,o;s=[i(0),i(3),i(4)],(o=function(a){return a}.apply(r,s))===void 0||(n.exports=o)},function(n,r,i){var s,o,a,u,d,g,v,y,w,I,k,A,B,M;u="hasOwnProperty",d=/[\.\/]/,g=/\s*,\s*/,v=function(N,D){return N-D},y={n:{}},w=function(){for(var N=0,D=this.length;N<D;N++)if(this[N]!==void 0)return this[N]},I=function(){for(var N=this.length;--N;)if(this[N]!==void 0)return this[N]},k=Object.prototype.toString,A=String,B=Array.isArray||function(N){return N instanceof Array||k.call(N)=="[object Array]"},(M=function(N,D){var U,H=a,F=Array.prototype.slice.call(arguments,2),it=M.listeners(N),ut=0,_t=[],pt={},ht=[],wt=o;ht.firstDefined=w,ht.lastDefined=I,o=N,a=0;for(var mt=0,ct=it.length;mt<ct;mt++)"zIndex"in it[mt]&&(_t.push(it[mt].zIndex),it[mt].zIndex<0&&(pt[it[mt].zIndex]=it[mt]));for(_t.sort(v);_t[ut]<0;)if(U=pt[_t[ut++]],ht.push(U.apply(D,F)),a)return a=H,ht;for(mt=0;mt<ct;mt++)if("zIndex"in(U=it[mt]))if(U.zIndex==_t[ut]){if(ht.push(U.apply(D,F)),a)break;do if((U=pt[_t[++ut]])&&ht.push(U.apply(D,F)),a)break;while(U)}else pt[U.zIndex]=U;else if(ht.push(U.apply(D,F)),a)break;return a=H,o=wt,ht})._events=y,M.listeners=function(N){var D,U,H,F,it,ut,_t,pt,ht=B(N)?N:N.split(d),wt=y,mt=[wt],ct=[];for(F=0,it=ht.length;F<it;F++){for(pt=[],ut=0,_t=mt.length;ut<_t;ut++)for(U=[(wt=mt[ut].n)[ht[F]],wt["*"]],H=2;H--;)(D=U[H])&&(pt.push(D),ct=ct.concat(D.f||[]));mt=pt}return ct},M.separator=function(N){N?(N="["+(N=A(N).replace(/(?=[\.\^\]\[\-])/g,"\\"))+"]",d=new RegExp(N)):d=/[\.\/]/},M.on=function(N,D){if(typeof D!="function")return function(){};for(var U=B(N)?B(N[0])?N:[N]:A(N).split(g),H=0,F=U.length;H<F;H++)(function(it){for(var ut,_t=B(it)?it:A(it).split(d),pt=y,ht=0,wt=_t.length;ht<wt;ht++)pt=(pt=pt.n).hasOwnProperty(_t[ht])&&pt[_t[ht]]||(pt[_t[ht]]={n:{}});for(pt.f=pt.f||[],ht=0,wt=pt.f.length;ht<wt;ht++)if(pt.f[ht]==D){ut=!0;break}!ut&&pt.f.push(D)})(U[H]);return function(it){+it==+it&&(D.zIndex=+it)}},M.f=function(N){var D=[].slice.call(arguments,1);return function(){M.apply(null,[N,null].concat(D).concat([].slice.call(arguments,0)))}},M.stop=function(){a=1},M.nt=function(N){var D=B(o)?o.join("."):o;return N?new RegExp("(?:\\.|\\/|^)"+N+"(?:\\.|\\/|$)").test(D):D},M.nts=function(){return B(o)?o:o.split(d)},M.off=M.unbind=function(N,D){if(N){var U=B(N)?B(N[0])?N:[N]:A(N).split(g);if(U.length>1)for(var H=0,F=U.length;H<F;H++)M.off(U[H],D);else{U=B(N)?N:A(N).split(d);var it,ut,_t,pt,ht,wt=[y];for(H=0,F=U.length;H<F;H++)for(pt=0;pt<wt.length;pt+=_t.length-2){if(_t=[pt,1],it=wt[pt].n,U[H]!="*")it[U[H]]&&_t.push(it[U[H]]);else for(ut in it)it[u](ut)&&_t.push(it[ut]);wt.splice.apply(wt,_t)}for(H=0,F=wt.length;H<F;H++)for(it=wt[H];it.n;){if(D){if(it.f){for(pt=0,ht=it.f.length;pt<ht;pt++)if(it.f[pt]==D){it.f.splice(pt,1);break}!it.f.length&&delete it.f}for(ut in it.n)if(it.n[u](ut)&&it.n[ut].f){var mt=it.n[ut].f;for(pt=0,ht=mt.length;pt<ht;pt++)if(mt[pt]==D){mt.splice(pt,1);break}!mt.length&&delete it.n[ut].f}}else for(ut in delete it.f,it.n)it.n[u](ut)&&it.n[ut].f&&delete it.n[ut].f;it=it.n}}}else M._events=y={n:{}}},M.once=function(N,D){var U=function(){return M.off(N,U),D.apply(this,arguments)};return M.on(N,U)},M.version="0.5.0",M.toString=function(){return"You are running Eve 0.5.0"},n.exports?n.exports=M:(s=function(){return M}.apply(r,[]))===void 0||(n.exports=s)},function(n,r,i){var s,o;s=[i(0)],(o=function(a){if(!a||a.svg){var u="hasOwnProperty",d=String,g=parseFloat,v=parseInt,y=Math,w=y.max,I=y.abs,k=y.pow,A=/[, ]+/,B=a.eve,M="",N=" ",D="http://www.w3.org/1999/xlink",U={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},H={};a.toString=function(){return`Your browser supports SVG.
|
|
47
|
-
You are running Raphaël `+this.version};var F=function(C,b){if(b)for(var _ in typeof C=="string"&&(C=F(C)),b)b[u](_)&&(_.substring(0,6)=="xlink:"?C.setAttributeNS(D,_.substring(6),d(b[_])):C.setAttribute(_,d(b[_])));else(C=a._g.doc.createElementNS("http://www.w3.org/2000/svg",C)).style&&(C.style.webkitTapHighlightColor="rgba(0,0,0,0)");return C},it=function(C,b){var _="linear",P=C.id+b,L=.5,z=.5,$=C.node,Z=C.paper,G=$.style,J=a._g.doc.getElementById(P);if(!J){if(b=(b=d(b).replace(a._radial_gradient,function(zt,Vt,Et){if(_="radial",Vt&&Et){L=g(Vt);var Jt=2*((z=g(Et))>.5)-1;k(L-.5,2)+k(z-.5,2)>.25&&(z=y.sqrt(.25-k(L-.5,2))*Jt+.5)&&z!=.5&&(z=z.toFixed(5)-1e-5*Jt)}return M})).split(/\s*\-\s*/),_=="linear"){var ft=b.shift();if(ft=-g(ft),isNaN(ft))return null;var yt=[0,0,y.cos(a.rad(ft)),y.sin(a.rad(ft))],St=1/(w(I(yt[2]),I(yt[3]))||1);yt[2]*=St,yt[3]*=St,yt[2]<0&&(yt[0]=-yt[2],yt[2]=0),yt[3]<0&&(yt[1]=-yt[3],yt[3]=0)}var Ot=a._parseDots(b);if(!Ot)return null;if(P=P.replace(/[\(\)\s,\xb0#]/g,"_"),C.gradient&&P!=C.gradient.id&&(Z.defs.removeChild(C.gradient),delete C.gradient),!C.gradient){J=F(_+"Gradient",{id:P}),C.gradient=J,F(J,_=="radial"?{fx:L,fy:z}:{x1:yt[0],y1:yt[1],x2:yt[2],y2:yt[3],gradientTransform:C.matrix.invert()}),Z.defs.appendChild(J);for(var kt=0,Ft=Ot.length;kt<Ft;kt++)J.appendChild(F("stop",{offset:Ot[kt].offset?Ot[kt].offset:kt?"100%":"0%","stop-color":Ot[kt].color||"#fff","stop-opacity":isFinite(Ot[kt].opacity)?Ot[kt].opacity:1}))}}return F($,{fill:ut(P),opacity:1,"fill-opacity":1}),G.fill=M,G.opacity=1,G.fillOpacity=1,1},ut=function(C){if((b=document.documentMode)&&(b===9||b===10))return"url('#"+C+"')";var b,_=document.location;return"url('"+(_.protocol+"//"+_.host+_.pathname+_.search)+"#"+C+"')"},_t=function(C){var b=C.getBBox(1);F(C.pattern,{patternTransform:C.matrix.invert()+" translate("+b.x+","+b.y+")"})},pt=function(C,b,_){if(C.type=="path"){for(var P,L,z,$,Z,G=d(b).toLowerCase().split("-"),J=C.paper,ft=_?"end":"start",yt=C.node,St=C.attrs,Ot=St["stroke-width"],kt=G.length,Ft="classic",zt=3,Vt=3,Et=5;kt--;)switch(G[kt]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":Ft=G[kt];break;case"wide":Vt=5;break;case"narrow":Vt=2;break;case"long":zt=5;break;case"short":zt=2}if(Ft=="open"?(zt+=2,Vt+=2,Et+=2,z=1,$=_?4:1,Z={fill:"none",stroke:St.stroke}):($=z=zt/2,Z={fill:St.stroke,stroke:"none"}),C._.arrows?_?(C._.arrows.endPath&&H[C._.arrows.endPath]--,C._.arrows.endMarker&&H[C._.arrows.endMarker]--):(C._.arrows.startPath&&H[C._.arrows.startPath]--,C._.arrows.startMarker&&H[C._.arrows.startMarker]--):C._.arrows={},Ft!="none"){var Jt="raphael-marker-"+Ft,jt="raphael-marker-"+ft+Ft+zt+Vt+"-obj"+C.id;a._g.doc.getElementById(Jt)?H[Jt]++:(J.defs.appendChild(F(F("path"),{"stroke-linecap":"round",d:U[Ft],id:Jt})),H[Jt]=1);var oe,qt=a._g.doc.getElementById(jt);qt?(H[jt]++,oe=qt.getElementsByTagName("use")[0]):(qt=F(F("marker"),{id:jt,markerHeight:Vt,markerWidth:zt,orient:"auto",refX:$,refY:Vt/2}),oe=F(F("use"),{"xlink:href":"#"+Jt,transform:(_?"rotate(180 "+zt/2+" "+Vt/2+") ":M)+"scale("+zt/Et+","+Vt/Et+")","stroke-width":(1/((zt/Et+Vt/Et)/2)).toFixed(4)}),qt.appendChild(oe),J.defs.appendChild(qt),H[jt]=1),F(oe,Z);var Ce=z*(Ft!="diamond"&&Ft!="oval");_?(P=C._.arrows.startdx*Ot||0,L=a.getTotalLength(St.path)-Ce*Ot):(P=Ce*Ot,L=a.getTotalLength(St.path)-(C._.arrows.enddx*Ot||0)),(Z={})["marker-"+ft]="url(#"+jt+")",(L||P)&&(Z.d=a.getSubpath(St.path,P,L)),F(yt,Z),C._.arrows[ft+"Path"]=Jt,C._.arrows[ft+"Marker"]=jt,C._.arrows[ft+"dx"]=Ce,C._.arrows[ft+"Type"]=Ft,C._.arrows[ft+"String"]=b}else _?(P=C._.arrows.startdx*Ot||0,L=a.getTotalLength(St.path)-P):(P=0,L=a.getTotalLength(St.path)-(C._.arrows.enddx*Ot||0)),C._.arrows[ft+"Path"]&&F(yt,{d:a.getSubpath(St.path,P,L)}),delete C._.arrows[ft+"Path"],delete C._.arrows[ft+"Marker"],delete C._.arrows[ft+"dx"],delete C._.arrows[ft+"Type"],delete C._.arrows[ft+"String"];for(Z in H)if(H[u](Z)&&!H[Z]){var ye=a._g.doc.getElementById(Z);ye&&ye.parentNode.removeChild(ye)}}},ht={"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},wt=function(C,b,_){if(b=ht[d(b).toLowerCase()]){for(var P=C.attrs["stroke-width"]||"1",L={round:P,square:P,butt:0}[C.attrs["stroke-linecap"]||_["stroke-linecap"]]||0,z=[],$=b.length;$--;)z[$]=b[$]*P+($%2?1:-1)*L;F(C.node,{"stroke-dasharray":z.join(",")})}else F(C.node,{"stroke-dasharray":"none"})},mt=function(C,b){var _=C.node,P=C.attrs,L=_.style.visibility;for(var z in _.style.visibility="hidden",b)if(b[u](z)){if(!a._availableAttrs[u](z))continue;var $=b[z];switch(P[z]=$,z){case"blur":C.blur($);break;case"title":var Z=_.getElementsByTagName("title");if(Z.length&&(Z=Z[0]))Z.firstChild.nodeValue=$;else{Z=F("title");var G=a._g.doc.createTextNode($);Z.appendChild(G),_.appendChild(Z)}break;case"href":case"target":var J=_.parentNode;if(J.tagName.toLowerCase()!="a"){var ft=F("a");J.insertBefore(ft,_),ft.appendChild(_),J=ft}z=="target"?J.setAttributeNS(D,"show",$=="blank"?"new":$):J.setAttributeNS(D,z,$);break;case"cursor":_.style.cursor=$;break;case"transform":C.transform($);break;case"arrow-start":pt(C,$);break;case"arrow-end":pt(C,$,1);break;case"clip-rect":var yt=d($).split(A);if(yt.length==4){C.clip&&C.clip.parentNode.parentNode.removeChild(C.clip.parentNode);var St=F("clipPath"),Ot=F("rect");St.id=a.createUUID(),F(Ot,{x:yt[0],y:yt[1],width:yt[2],height:yt[3]}),St.appendChild(Ot),C.paper.defs.appendChild(St),F(_,{"clip-path":"url(#"+St.id+")"}),C.clip=Ot}if(!$){var kt=_.getAttribute("clip-path");if(kt){var Ft=a._g.doc.getElementById(kt.replace(/(^url\(#|\)$)/g,M));Ft&&Ft.parentNode.removeChild(Ft),F(_,{"clip-path":M}),delete C.clip}}break;case"path":C.type=="path"&&(F(_,{d:$?P.path=a._pathToAbsolute($):"M0,0"}),C._.dirty=1,C._.arrows&&("startString"in C._.arrows&&pt(C,C._.arrows.startString),"endString"in C._.arrows&&pt(C,C._.arrows.endString,1)));break;case"width":if(_.setAttribute(z,$),C._.dirty=1,!P.fx)break;z="x",$=P.x;case"x":P.fx&&($=-P.x-(P.width||0));case"rx":if(z=="rx"&&C.type=="rect")break;case"cx":_.setAttribute(z,$),C.pattern&&_t(C),C._.dirty=1;break;case"height":if(_.setAttribute(z,$),C._.dirty=1,!P.fy)break;z="y",$=P.y;case"y":P.fy&&($=-P.y-(P.height||0));case"ry":if(z=="ry"&&C.type=="rect")break;case"cy":_.setAttribute(z,$),C.pattern&&_t(C),C._.dirty=1;break;case"r":C.type=="rect"?F(_,{rx:$,ry:$}):_.setAttribute(z,$),C._.dirty=1;break;case"src":C.type=="image"&&_.setAttributeNS(D,"href",$);break;case"stroke-width":C._.sx==1&&C._.sy==1||($/=w(I(C._.sx),I(C._.sy))||1),_.setAttribute(z,$),P["stroke-dasharray"]&&wt(C,P["stroke-dasharray"],b),C._.arrows&&("startString"in C._.arrows&&pt(C,C._.arrows.startString),"endString"in C._.arrows&&pt(C,C._.arrows.endString,1));break;case"stroke-dasharray":wt(C,$,b);break;case"fill":var zt=d($).match(a._ISURL);if(zt){St=F("pattern");var Vt=F("image");St.id=a.createUUID(),F(St,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),F(Vt,{x:0,y:0,"xlink:href":zt[1]}),St.appendChild(Vt),function(qt){a._preload(zt[1],function(){var Ce=this.offsetWidth,ye=this.offsetHeight;F(qt,{width:Ce,height:ye}),F(Vt,{width:Ce,height:ye})})}(St),C.paper.defs.appendChild(St),F(_,{fill:"url(#"+St.id+")"}),C.pattern=St,C.pattern&&_t(C);break}var Et=a.getRGB($);if(Et.error){if((C.type=="circle"||C.type=="ellipse"||d($).charAt()!="r")&&it(C,$)){if("opacity"in P||"fill-opacity"in P){var Jt=a._g.doc.getElementById(_.getAttribute("fill").replace(/^url\(#|\)$/g,M));if(Jt){var jt=Jt.getElementsByTagName("stop");F(jt[jt.length-1],{"stop-opacity":("opacity"in P?P.opacity:1)*("fill-opacity"in P?P["fill-opacity"]:1)})}}P.gradient=$,P.fill="none";break}}else delete b.gradient,delete P.gradient,!a.is(P.opacity,"undefined")&&a.is(b.opacity,"undefined")&&F(_,{opacity:P.opacity}),!a.is(P["fill-opacity"],"undefined")&&a.is(b["fill-opacity"],"undefined")&&F(_,{"fill-opacity":P["fill-opacity"]});Et[u]("opacity")&&F(_,{"fill-opacity":Et.opacity>1?Et.opacity/100:Et.opacity});case"stroke":Et=a.getRGB($),_.setAttribute(z,Et.hex),z=="stroke"&&Et[u]("opacity")&&F(_,{"stroke-opacity":Et.opacity>1?Et.opacity/100:Et.opacity}),z=="stroke"&&C._.arrows&&("startString"in C._.arrows&&pt(C,C._.arrows.startString),"endString"in C._.arrows&&pt(C,C._.arrows.endString,1));break;case"gradient":(C.type=="circle"||C.type=="ellipse"||d($).charAt()!="r")&&it(C,$);break;case"opacity":P.gradient&&!P[u]("stroke-opacity")&&F(_,{"stroke-opacity":$>1?$/100:$});case"fill-opacity":if(P.gradient){(Jt=a._g.doc.getElementById(_.getAttribute("fill").replace(/^url\(#|\)$/g,M)))&&(jt=Jt.getElementsByTagName("stop"),F(jt[jt.length-1],{"stop-opacity":$}));break}default:z=="font-size"&&($=v($,10)+"px");var oe=z.replace(/(\-.)/g,function(qt){return qt.substring(1).toUpperCase()});_.style[oe]=$,C._.dirty=1,_.setAttribute(z,$)}}ct(C,b),_.style.visibility=L},ct=function(C,b){if(C.type=="text"&&(b[u]("text")||b[u]("font")||b[u]("font-size")||b[u]("x")||b[u]("y"))){var _=C.attrs,P=C.node,L=P.firstChild?v(a._g.doc.defaultView.getComputedStyle(P.firstChild,M).getPropertyValue("font-size"),10):10;if(b[u]("text")){for(_.text=b.text;P.firstChild;)P.removeChild(P.firstChild);for(var z,$=d(b.text).split(`
|
|
48
|
-
`),Z=[],G=0,J=$.length;G<J;G++)z=F("tspan"),G&&F(z,{dy:1.2*L,x:_.x}),z.appendChild(a._g.doc.createTextNode($[G])),P.appendChild(z),Z[G]=z}else for(G=0,J=(Z=P.getElementsByTagName("tspan")).length;G<J;G++)G?F(Z[G],{dy:1.2*L,x:_.x}):F(Z[0],{dy:0});F(P,{x:_.x,y:_.y}),C._.dirty=1;var ft=C._getBBox(),yt=_.y-(ft.y+ft.height/2);yt&&a.is(yt,"finite")&&F(Z[0],{dy:yt})}},et=function(C){return C.parentNode&&C.parentNode.tagName.toLowerCase()==="a"?C.parentNode:C},X=function(C,b){this[0]=this.node=C,C.raphael=!0,this.id=("0000"+(Math.random()*Math.pow(36,5)<<0).toString(36)).slice(-5),C.raphaelid=this.id,this.matrix=a.matrix(),this.realPath=null,this.paper=b,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!b.bottom&&(b.bottom=this),this.prev=b.top,b.top&&(b.top.next=this),b.top=this,this.next=null},at=a.el;X.prototype=at,at.constructor=X,a._engine.path=function(C,b){var _=F("path");b.canvas&&b.canvas.appendChild(_);var P=new X(_,b);return P.type="path",mt(P,{fill:"none",stroke:"#000",path:C}),P},at.rotate=function(C,b,_){if(this.removed)return this;if((C=d(C).split(A)).length-1&&(b=g(C[1]),_=g(C[2])),C=g(C[0]),_==null&&(b=_),b==null||_==null){var P=this.getBBox(1);b=P.x+P.width/2,_=P.y+P.height/2}return this.transform(this._.transform.concat([["r",C,b,_]])),this},at.scale=function(C,b,_,P){if(this.removed)return this;if((C=d(C).split(A)).length-1&&(b=g(C[1]),_=g(C[2]),P=g(C[3])),C=g(C[0]),b==null&&(b=C),P==null&&(_=P),_==null||P==null)var L=this.getBBox(1);return _=_??L.x+L.width/2,P=P??L.y+L.height/2,this.transform(this._.transform.concat([["s",C,b,_,P]])),this},at.translate=function(C,b){return this.removed?this:((C=d(C).split(A)).length-1&&(b=g(C[1])),C=g(C[0])||0,b=+b||0,this.transform(this._.transform.concat([["t",C,b]])),this)},at.transform=function(C){var b=this._;if(C==null)return b.transform;if(a._extractTransform(this,C),this.clip&&F(this.clip,{transform:this.matrix.invert()}),this.pattern&&_t(this),this.node&&F(this.node,{transform:this.matrix}),b.sx!=1||b.sy!=1){var _=this.attrs[u]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":_})}return this},at.hide=function(){return this.removed||(this.node.style.display="none"),this},at.show=function(){return this.removed||(this.node.style.display=""),this},at.remove=function(){var C=et(this.node);if(!this.removed&&C.parentNode){var b=this.paper;for(var _ in b.__set__&&b.__set__.exclude(this),B.unbind("raphael.*.*."+this.id),this.gradient&&b.defs.removeChild(this.gradient),a._tear(this,b),C.parentNode.removeChild(C),this.removeData(),this)this[_]=typeof this[_]=="function"?a._removedFactory(_):null;this.removed=!0}},at._getBBox=function(){if(this.node.style.display=="none"){this.show();var C=!0}var b,_=!1;this.paper.canvas.parentElement?b=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(b=this.paper.canvas.parentNode.style),b&&b.display=="none"&&(_=!0,b.display="");var P={};try{P=this.node.getBBox()}catch{P={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}finally{P=P||{},_&&(b.display="none")}return C&&this.hide(),P},at.attr=function(C,b){if(this.removed)return this;if(C==null){var _={};for(var P in this.attrs)this.attrs[u](P)&&(_[P]=this.attrs[P]);return _.gradient&&_.fill=="none"&&(_.fill=_.gradient)&&delete _.gradient,_.transform=this._.transform,_}if(b==null&&a.is(C,"string")){if(C=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;if(C=="transform")return this._.transform;for(var L=C.split(A),z={},$=0,Z=L.length;$<Z;$++)(C=L[$])in this.attrs?z[C]=this.attrs[C]:a.is(this.paper.customAttributes[C],"function")?z[C]=this.paper.customAttributes[C].def:z[C]=a._availableAttrs[C];return Z-1?z:z[L[0]]}if(b==null&&a.is(C,"array")){for(z={},$=0,Z=C.length;$<Z;$++)z[C[$]]=this.attr(C[$]);return z}if(b!=null){var G={};G[C]=b}else C!=null&&a.is(C,"object")&&(G=C);for(var J in G)B("raphael.attr."+J+"."+this.id,this,G[J]);for(J in this.paper.customAttributes)if(this.paper.customAttributes[u](J)&&G[u](J)&&a.is(this.paper.customAttributes[J],"function")){var ft=this.paper.customAttributes[J].apply(this,[].concat(G[J]));for(var yt in this.attrs[J]=G[J],ft)ft[u](yt)&&(G[yt]=ft[yt])}return mt(this,G),this},at.toFront=function(){if(this.removed)return this;var C=et(this.node);C.parentNode.appendChild(C);var b=this.paper;return b.top!=this&&a._tofront(this,b),this},at.toBack=function(){if(this.removed)return this;var C=et(this.node),b=C.parentNode;return b.insertBefore(C,b.firstChild),a._toback(this,this.paper),this.paper,this},at.insertAfter=function(C){if(this.removed||!C)return this;var b=et(this.node),_=et(C.node||C[C.length-1].node);return _.nextSibling?_.parentNode.insertBefore(b,_.nextSibling):_.parentNode.appendChild(b),a._insertafter(this,C,this.paper),this},at.insertBefore=function(C){if(this.removed||!C)return this;var b=et(this.node),_=et(C.node||C[0].node);return _.parentNode.insertBefore(b,_),a._insertbefore(this,C,this.paper),this},at.blur=function(C){var b=this;if(+C!=0){var _=F("filter"),P=F("feGaussianBlur");b.attrs.blur=C,_.id=a.createUUID(),F(P,{stdDeviation:+C||1.5}),_.appendChild(P),b.paper.defs.appendChild(_),b._blur=_,F(b.node,{filter:"url(#"+_.id+")"})}else b._blur&&(b._blur.parentNode.removeChild(b._blur),delete b._blur,delete b.attrs.blur),b.node.removeAttribute("filter");return b},a._engine.circle=function(C,b,_,P){var L=F("circle");C.canvas&&C.canvas.appendChild(L);var z=new X(L,C);return z.attrs={cx:b,cy:_,r:P,fill:"none",stroke:"#000"},z.type="circle",F(L,z.attrs),z},a._engine.rect=function(C,b,_,P,L,z){var $=F("rect");C.canvas&&C.canvas.appendChild($);var Z=new X($,C);return Z.attrs={x:b,y:_,width:P,height:L,rx:z||0,ry:z||0,fill:"none",stroke:"#000"},Z.type="rect",F($,Z.attrs),Z},a._engine.ellipse=function(C,b,_,P,L){var z=F("ellipse");C.canvas&&C.canvas.appendChild(z);var $=new X(z,C);return $.attrs={cx:b,cy:_,rx:P,ry:L,fill:"none",stroke:"#000"},$.type="ellipse",F(z,$.attrs),$},a._engine.image=function(C,b,_,P,L,z){var $=F("image");F($,{x:_,y:P,width:L,height:z,preserveAspectRatio:"none"}),$.setAttributeNS(D,"href",b),C.canvas&&C.canvas.appendChild($);var Z=new X($,C);return Z.attrs={x:_,y:P,width:L,height:z,src:b},Z.type="image",Z},a._engine.text=function(C,b,_,P){var L=F("text");C.canvas&&C.canvas.appendChild(L);var z=new X(L,C);return z.attrs={x:b,y:_,"text-anchor":"middle",text:P,"font-family":a._availableAttrs["font-family"],"font-size":a._availableAttrs["font-size"],stroke:"none",fill:"#000"},z.type="text",mt(z,z.attrs),z},a._engine.setSize=function(C,b){return this.width=C||this.width,this.height=b||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},a._engine.create=function(){var C=a._getContainer.apply(0,arguments),b=C&&C.container;if(!b)throw new Error("SVG container not found.");var _,P=C.x,L=C.y,z=C.width,$=C.height,Z=F("svg"),G="overflow:hidden;";return P=P||0,L=L||0,F(Z,{height:$=$||342,version:1.1,width:z=z||512,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),b==1?(Z.style.cssText=G+"position:absolute;left:"+P+"px;top:"+L+"px",a._g.doc.body.appendChild(Z),_=1):(Z.style.cssText=G+"position:relative",b.firstChild?b.insertBefore(Z,b.firstChild):b.appendChild(Z)),(b=new a._Paper).width=z,b.height=$,b.canvas=Z,b.clear(),b._left=b._top=0,_&&(b.renderfix=function(){}),b.renderfix(),b},a._engine.setViewBox=function(C,b,_,P,L){B("raphael.setViewBox",this,this._viewBox,[C,b,_,P,L]);var z,$,Z=this.getSize(),G=w(_/Z.width,P/Z.height),J=this.top,ft=L?"xMidYMid meet":"xMinYMin";for(C==null?(this._vbSize&&(G=1),delete this._vbSize,z="0 0 "+this.width+N+this.height):(this._vbSize=G,z=C+N+b+N+_+N+P),F(this.canvas,{viewBox:z,preserveAspectRatio:ft});G&&J;)$="stroke-width"in J.attrs?J.attrs["stroke-width"]:1,J.attr({"stroke-width":$}),J._.dirty=1,J._.dirtyT=1,J=J.prev;return this._viewBox=[C,b,_,P,!!L],this},a.prototype.renderfix=function(){var C,b=this.canvas,_=b.style;try{C=b.getScreenCTM()||b.createSVGMatrix()}catch{C=b.createSVGMatrix()}var P=-C.e%1,L=-C.f%1;(P||L)&&(P&&(this._left=(this._left+P)%1,_.left=this._left+"px"),L&&(this._top=(this._top+L)%1,_.top=this._top+"px"))},a.prototype.clear=function(){a.eve("raphael.clear",this);for(var C=this.canvas;C.firstChild;)C.removeChild(C.firstChild);this.bottom=this.top=null,(this.desc=F("desc")).appendChild(a._g.doc.createTextNode("Created with Raphaël "+a.version)),C.appendChild(this.desc),C.appendChild(this.defs=F("defs"))},a.prototype.remove=function(){for(var C in B("raphael.remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this)this[C]=typeof this[C]=="function"?a._removedFactory(C):null};var R=a.st;for(var K in at)at[u](K)&&!R[u](K)&&(R[K]=function(C){return function(){var b=arguments;return this.forEach(function(_){_[C].apply(_,b)})}}(K))}}.apply(r,s))===void 0||(n.exports=o)},function(n,r,i){var s,o;s=[i(0)],(o=function(a){if(!a||a.vml){var u="hasOwnProperty",d=String,g=parseFloat,v=Math,y=v.round,w=v.max,I=v.min,k=v.abs,A=/[, ]+/,B=a.eve,M=" ",N="",D={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},U=/([clmz]),?([^clmz]*)/gi,H=/ progid:\S+Blur\([^\)]+\)/g,F=/-?[^,\s-]+/g,it="position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)",ut=21600,_t={path:1,rect:1,image:1},pt={circle:1,ellipse:1},ht=function(b,_,P){var L=a.matrix();return L.rotate(-b,.5,.5),{dx:L.x(_,P),dy:L.y(_,P)}},wt=function(b,_,P,L,z,$){var Z=b._,G=b.matrix,J=Z.fillpos,ft=b.node,yt=ft.style,St=1,Ot="",kt=ut/_,Ft=ut/P;if(yt.visibility="hidden",_&&P){if(ft.coordsize=k(kt)+M+k(Ft),yt.rotation=$*(_*P<0?-1:1),$){var zt=ht($,L,z);L=zt.dx,z=zt.dy}if(_<0&&(Ot+="x"),P<0&&(Ot+=" y")&&(St=-1),yt.flip=Ot,ft.coordorigin=L*-kt+M+z*-Ft,J||Z.fillsize){var Vt=ft.getElementsByTagName("fill");Vt=Vt&&Vt[0],ft.removeChild(Vt),J&&(zt=ht($,G.x(J[0],J[1]),G.y(J[0],J[1])),Vt.position=zt.dx*St+M+zt.dy*St),Z.fillsize&&(Vt.size=Z.fillsize[0]*k(_)+M+Z.fillsize[1]*k(P)),ft.appendChild(Vt)}yt.visibility="visible"}};a.toString=function(){return`Your browser doesn’t support SVG. Falling down to VML.
|
|
49
|
-
You are running Raphaël `+this.version};var mt,ct=function(b,_,P){for(var L=d(_).toLowerCase().split("-"),z=P?"end":"start",$=L.length,Z="classic",G="medium",J="medium";$--;)switch(L[$]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":Z=L[$];break;case"wide":case"narrow":J=L[$];break;case"long":case"short":G=L[$]}var ft=b.node.getElementsByTagName("stroke")[0];ft[z+"arrow"]=Z,ft[z+"arrowlength"]=G,ft[z+"arrowwidth"]=J},et=function(b,_){b.attrs=b.attrs||{};var P=b.node,L=b.attrs,z=P.style,$=_t[b.type]&&(_.x!=L.x||_.y!=L.y||_.width!=L.width||_.height!=L.height||_.cx!=L.cx||_.cy!=L.cy||_.rx!=L.rx||_.ry!=L.ry||_.r!=L.r),Z=pt[b.type]&&(L.cx!=_.cx||L.cy!=_.cy||L.r!=_.r||L.rx!=_.rx||L.ry!=_.ry),G=b;for(var J in _)_[u](J)&&(L[J]=_[J]);if($&&(L.path=a._getPath[b.type](b),b._.dirty=1),_.href&&(P.href=_.href),_.title&&(P.title=_.title),_.target&&(P.target=_.target),_.cursor&&(z.cursor=_.cursor),"blur"in _&&b.blur(_.blur),(_.path&&b.type=="path"||$)&&(P.path=function(pe){var sn=/[ahqstv]/gi,Nn=a._pathToAbsolute;if(d(pe).match(sn)&&(Nn=a._path2curve),sn=/[clmz]/g,Nn==a._pathToAbsolute&&!d(pe).match(sn)){var Ne=d(pe).replace(U,function(as,On,pn){var on=[],vr=On.toLowerCase()=="m",mn=D[On];return pn.replace(F,function(gn){vr&&on.length==2&&(mn+=on+D[On=="m"?"l":"L"],on=[]),on.push(y(gn*ut))}),mn+on});return Ne}var Ze,Fe,Kn=Nn(pe);Ne=[];for(var dn=0,An=Kn.length;dn<An;dn++){Ze=Kn[dn],(Fe=Kn[dn][0].toLowerCase())=="z"&&(Fe="x");for(var Ge=1,xe=Ze.length;Ge<xe;Ge++)Fe+=y(Ze[Ge]*ut)+(Ge!=xe-1?",":N);Ne.push(Fe)}return Ne.join(M)}(~d(L.path).toLowerCase().indexOf("r")?a._pathToAbsolute(L.path):L.path),b._.dirty=1,b.type=="image"&&(b._.fillpos=[L.x,L.y],b._.fillsize=[L.width,L.height],wt(b,1,1,0,0,0))),"transform"in _&&b.transform(_.transform),Z){var ft=+L.cx,yt=+L.cy,St=+L.rx||+L.r||0,Ot=+L.ry||+L.r||0;P.path=a.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",y((ft-St)*ut),y((yt-Ot)*ut),y((ft+St)*ut),y((yt+Ot)*ut),y(ft*ut)),b._.dirty=1}if("clip-rect"in _){var kt=d(_["clip-rect"]).split(A);if(kt.length==4){kt[2]=+kt[2]+ +kt[0],kt[3]=+kt[3]+ +kt[1];var Ft=P.clipRect||a._g.doc.createElement("div"),zt=Ft.style;zt.clip=a.format("rect({1}px {2}px {3}px {0}px)",kt),P.clipRect||(zt.position="absolute",zt.top=0,zt.left=0,zt.width=b.paper.width+"px",zt.height=b.paper.height+"px",P.parentNode.insertBefore(Ft,P),Ft.appendChild(P),P.clipRect=Ft)}_["clip-rect"]||P.clipRect&&(P.clipRect.style.clip="auto")}if(b.textpath){var Vt=b.textpath.style;_.font&&(Vt.font=_.font),_["font-family"]&&(Vt.fontFamily='"'+_["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,N)+'"'),_["font-size"]&&(Vt.fontSize=_["font-size"]),_["font-weight"]&&(Vt.fontWeight=_["font-weight"]),_["font-style"]&&(Vt.fontStyle=_["font-style"])}if("arrow-start"in _&&ct(G,_["arrow-start"]),"arrow-end"in _&&ct(G,_["arrow-end"],1),_.opacity!=null||_.fill!=null||_.src!=null||_.stroke!=null||_["stroke-width"]!=null||_["stroke-opacity"]!=null||_["fill-opacity"]!=null||_["stroke-dasharray"]!=null||_["stroke-miterlimit"]!=null||_["stroke-linejoin"]!=null||_["stroke-linecap"]!=null){var Et=P.getElementsByTagName("fill");if(!(Et=Et&&Et[0])&&(Et=mt("fill")),b.type=="image"&&_.src&&(Et.src=_.src),_.fill&&(Et.on=!0),Et.on!=null&&_.fill!="none"&&_.fill!==null||(Et.on=!1),Et.on&&_.fill){var Jt=d(_.fill).match(a._ISURL);if(Jt){Et.parentNode==P&&P.removeChild(Et),Et.rotate=!0,Et.src=Jt[1],Et.type="tile";var jt=b.getBBox(1);Et.position=jt.x+M+jt.y,b._.fillpos=[jt.x,jt.y],a._preload(Jt[1],function(){b._.fillsize=[this.offsetWidth,this.offsetHeight]})}else Et.color=a.getRGB(_.fill).hex,Et.src=N,Et.type="solid",a.getRGB(_.fill).error&&(G.type in{circle:1,ellipse:1}||d(_.fill).charAt()!="r")&&X(G,_.fill,Et)&&(L.fill="none",L.gradient=_.fill,Et.rotate=!1)}if("fill-opacity"in _||"opacity"in _){var oe=((+L["fill-opacity"]+1||2)-1)*((+L.opacity+1||2)-1)*((+a.getRGB(_.fill).o+1||2)-1);oe=I(w(oe,0),1),Et.opacity=oe,Et.src&&(Et.color="none")}P.appendChild(Et);var qt=P.getElementsByTagName("stroke")&&P.getElementsByTagName("stroke")[0],Ce=!1;!qt&&(Ce=qt=mt("stroke")),(_.stroke&&_.stroke!="none"||_["stroke-width"]||_["stroke-opacity"]!=null||_["stroke-dasharray"]||_["stroke-miterlimit"]||_["stroke-linejoin"]||_["stroke-linecap"])&&(qt.on=!0),(_.stroke=="none"||_.stroke===null||qt.on==null||_.stroke==0||_["stroke-width"]==0)&&(qt.on=!1);var ye=a.getRGB(_.stroke);qt.on&&_.stroke&&(qt.color=ye.hex),oe=((+L["stroke-opacity"]+1||2)-1)*((+L.opacity+1||2)-1)*((+ye.o+1||2)-1);var en=.75*(g(_["stroke-width"])||1);if(oe=I(w(oe,0),1),_["stroke-width"]==null&&(en=L["stroke-width"]),_["stroke-width"]&&(qt.weight=en),en&&en<1&&(oe*=en)&&(qt.weight=1),qt.opacity=oe,_["stroke-linejoin"]&&(qt.joinstyle=_["stroke-linejoin"]||"miter"),qt.miterlimit=_["stroke-miterlimit"]||8,_["stroke-linecap"]&&(qt.endcap=_["stroke-linecap"]=="butt"?"flat":_["stroke-linecap"]=="square"?"square":"round"),"stroke-dasharray"in _){var Mn={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};qt.dashstyle=Mn[u](_["stroke-dasharray"])?Mn[_["stroke-dasharray"]]:N}Ce&&P.appendChild(qt)}if(G.type=="text"){G.paper.canvas.style.display=N;var Ke=G.paper.span,hn=L.font&&L.font.match(/\d+(?:\.\d*)?(?=px)/);z=Ke.style,L.font&&(z.font=L.font),L["font-family"]&&(z.fontFamily=L["font-family"]),L["font-weight"]&&(z.fontWeight=L["font-weight"]),L["font-style"]&&(z.fontStyle=L["font-style"]),hn=g(L["font-size"]||hn&&hn[0])||10,z.fontSize=100*hn+"px",G.textpath.string&&(Ke.innerHTML=d(G.textpath.string).replace(/</g,"<").replace(/&/g,"&").replace(/\n/g,"<br>"));var fn=Ke.getBoundingClientRect();G.W=L.w=(fn.right-fn.left)/100,G.H=L.h=(fn.bottom-fn.top)/100,G.X=L.x,G.Y=L.y+G.H/2,("x"in _||"y"in _)&&(G.path.v=a.format("m{0},{1}l{2},{1}",y(L.x*ut),y(L.y*ut),y(L.x*ut)+1));for(var nn=["x","y","text","font","font-family","font-weight","font-style","font-size"],rn=0,gr=nn.length;rn<gr;rn++)if(nn[rn]in _){G._.dirty=1;break}switch(L["text-anchor"]){case"start":G.textpath.style["v-text-align"]="left",G.bbx=G.W/2;break;case"end":G.textpath.style["v-text-align"]="right",G.bbx=-G.W/2;break;default:G.textpath.style["v-text-align"]="center",G.bbx=0}G.textpath.style["v-text-kern"]=!0}},X=function(b,_,P){b.attrs=b.attrs||{},b.attrs;var L=Math.pow,z="linear",$=".5 .5";if(b.attrs.gradient=_,_=(_=d(_).replace(a._radial_gradient,function(St,Ot,kt){return z="radial",Ot&&kt&&(Ot=g(Ot),kt=g(kt),L(Ot-.5,2)+L(kt-.5,2)>.25&&(kt=v.sqrt(.25-L(Ot-.5,2))*(2*(kt>.5)-1)+.5),$=Ot+M+kt),N})).split(/\s*\-\s*/),z=="linear"){var Z=_.shift();if(Z=-g(Z),isNaN(Z))return null}var G=a._parseDots(_);if(!G)return null;if(b=b.shape||b.node,G.length){b.removeChild(P),P.on=!0,P.method="none",P.color=G[0].color,P.color2=G[G.length-1].color;for(var J=[],ft=0,yt=G.length;ft<yt;ft++)G[ft].offset&&J.push(G[ft].offset+M+G[ft].color);P.colors=J.length?J.join():"0% "+P.color,z=="radial"?(P.type="gradientTitle",P.focus="100%",P.focussize="0 0",P.focusposition=$,P.angle=0):(P.type="gradient",P.angle=(270-Z)%360),b.appendChild(P)}return 1},at=function(b,_){this[0]=this.node=b,b.raphael=!0,this.id=a._oid++,b.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=_,this.matrix=a.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!_.bottom&&(_.bottom=this),this.prev=_.top,_.top&&(_.top.next=this),_.top=this,this.next=null},R=a.el;at.prototype=R,R.constructor=at,R.transform=function(b){if(b==null)return this._.transform;var _,P=this.paper._viewBoxShift,L=P?"s"+[P.scale,P.scale]+"-1-1t"+[P.dx,P.dy]:N;P&&(_=b=d(b).replace(/\.{3}|\u2026/g,this._.transform||N)),a._extractTransform(this,L+b);var z,$=this.matrix.clone(),Z=this.skew,G=this.node,J=~d(this.attrs.fill).indexOf("-"),ft=!d(this.attrs.fill).indexOf("url(");if($.translate(1,1),ft||J||this.type=="image")if(Z.matrix="1 0 0 1",Z.offset="0 0",z=$.split(),J&&z.noRotation||!z.isSimple){G.style.filter=$.toFilter();var yt=this.getBBox(),St=this.getBBox(1),Ot=yt.x-St.x,kt=yt.y-St.y;G.coordorigin=Ot*-ut+M+kt*-ut,wt(this,1,1,Ot,kt,0)}else G.style.filter=N,wt(this,z.scalex,z.scaley,z.dx,z.dy,z.rotate);else G.style.filter=N,Z.matrix=d($),Z.offset=$.offset();return _!==null&&(this._.transform=_,a._extractTransform(this,_)),this},R.rotate=function(b,_,P){if(this.removed)return this;if(b!=null){if((b=d(b).split(A)).length-1&&(_=g(b[1]),P=g(b[2])),b=g(b[0]),P==null&&(_=P),_==null||P==null){var L=this.getBBox(1);_=L.x+L.width/2,P=L.y+L.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",b,_,P]])),this}},R.translate=function(b,_){return this.removed?this:((b=d(b).split(A)).length-1&&(_=g(b[1])),b=g(b[0])||0,_=+_||0,this._.bbox&&(this._.bbox.x+=b,this._.bbox.y+=_),this.transform(this._.transform.concat([["t",b,_]])),this)},R.scale=function(b,_,P,L){if(this.removed)return this;if((b=d(b).split(A)).length-1&&(_=g(b[1]),P=g(b[2]),L=g(b[3]),isNaN(P)&&(P=null),isNaN(L)&&(L=null)),b=g(b[0]),_==null&&(_=b),L==null&&(P=L),P==null||L==null)var z=this.getBBox(1);return P=P??z.x+z.width/2,L=L??z.y+z.height/2,this.transform(this._.transform.concat([["s",b,_,P,L]])),this._.dirtyT=1,this},R.hide=function(){return!this.removed&&(this.node.style.display="none"),this},R.show=function(){return!this.removed&&(this.node.style.display=N),this},R.auxGetBBox=a.el.getBBox,R.getBBox=function(){var b=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var _={},P=1/this.paper._viewBoxShift.scale;return _.x=b.x-this.paper._viewBoxShift.dx,_.x*=P,_.y=b.y-this.paper._viewBoxShift.dy,_.y*=P,_.width=b.width*P,_.height=b.height*P,_.x2=_.x+_.width,_.y2=_.y+_.height,_}return b},R._getBBox=function(){return this.removed?{}:{x:this.X+(this.bbx||0)-this.W/2,y:this.Y-this.H,width:this.W,height:this.H}},R.remove=function(){if(!this.removed&&this.node.parentNode){for(var b in this.paper.__set__&&this.paper.__set__.exclude(this),a.eve.unbind("raphael.*.*."+this.id),a._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape),this)this[b]=typeof this[b]=="function"?a._removedFactory(b):null;this.removed=!0}},R.attr=function(b,_){if(this.removed)return this;if(b==null){var P={};for(var L in this.attrs)this.attrs[u](L)&&(P[L]=this.attrs[L]);return P.gradient&&P.fill=="none"&&(P.fill=P.gradient)&&delete P.gradient,P.transform=this._.transform,P}if(_==null&&a.is(b,"string")){if(b=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;for(var z=b.split(A),$={},Z=0,G=z.length;Z<G;Z++)(b=z[Z])in this.attrs?$[b]=this.attrs[b]:a.is(this.paper.customAttributes[b],"function")?$[b]=this.paper.customAttributes[b].def:$[b]=a._availableAttrs[b];return G-1?$:$[z[0]]}if(this.attrs&&_==null&&a.is(b,"array")){for($={},Z=0,G=b.length;Z<G;Z++)$[b[Z]]=this.attr(b[Z]);return $}var J;for(var ft in _!=null&&((J={})[b]=_),_==null&&a.is(b,"object")&&(J=b),J)B("raphael.attr."+ft+"."+this.id,this,J[ft]);if(J){for(ft in this.paper.customAttributes)if(this.paper.customAttributes[u](ft)&&J[u](ft)&&a.is(this.paper.customAttributes[ft],"function")){var yt=this.paper.customAttributes[ft].apply(this,[].concat(J[ft]));for(var St in this.attrs[ft]=J[ft],yt)yt[u](St)&&(J[St]=yt[St])}J.text&&this.type=="text"&&(this.textpath.string=J.text),et(this,J)}return this},R.toFront=function(){return!this.removed&&this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&a._tofront(this,this.paper),this},R.toBack=function(){return this.removed?this:(this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),a._toback(this,this.paper)),this)},R.insertAfter=function(b){return this.removed?this:(b.constructor==a.st.constructor&&(b=b[b.length-1]),b.node.nextSibling?b.node.parentNode.insertBefore(this.node,b.node.nextSibling):b.node.parentNode.appendChild(this.node),a._insertafter(this,b,this.paper),this)},R.insertBefore=function(b){return this.removed?this:(b.constructor==a.st.constructor&&(b=b[0]),b.node.parentNode.insertBefore(this.node,b.node),a._insertbefore(this,b,this.paper),this)},R.blur=function(b){var _=this.node.runtimeStyle,P=_.filter;return P=P.replace(H,N),+b!=0?(this.attrs.blur=b,_.filter=P+M+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+b||1.5)+")",_.margin=a.format("-{0}px 0 0 -{0}px",y(+b||1.5))):(_.filter=P,_.margin=0,delete this.attrs.blur),this},a._engine.path=function(b,_){var P=mt("shape");P.style.cssText=it,P.coordsize=ut+M+ut,P.coordorigin=_.coordorigin;var L=new at(P,_),z={fill:"none",stroke:"#000"};b&&(z.path=b),L.type="path",L.path=[],L.Path=N,et(L,z),_.canvas&&_.canvas.appendChild(P);var $=mt("skew");return $.on=!0,P.appendChild($),L.skew=$,L.transform(N),L},a._engine.rect=function(b,_,P,L,z,$){var Z=a._rectPath(_,P,L,z,$),G=b.path(Z),J=G.attrs;return G.X=J.x=_,G.Y=J.y=P,G.W=J.width=L,G.H=J.height=z,J.r=$,J.path=Z,G.type="rect",G},a._engine.ellipse=function(b,_,P,L,z){var $=b.path();return $.attrs,$.X=_-L,$.Y=P-z,$.W=2*L,$.H=2*z,$.type="ellipse",et($,{cx:_,cy:P,rx:L,ry:z}),$},a._engine.circle=function(b,_,P,L){var z=b.path();return z.attrs,z.X=_-L,z.Y=P-L,z.W=z.H=2*L,z.type="circle",et(z,{cx:_,cy:P,r:L}),z},a._engine.image=function(b,_,P,L,z,$){var Z=a._rectPath(P,L,z,$),G=b.path(Z).attr({stroke:"none"}),J=G.attrs,ft=G.node,yt=ft.getElementsByTagName("fill")[0];return J.src=_,G.X=J.x=P,G.Y=J.y=L,G.W=J.width=z,G.H=J.height=$,J.path=Z,G.type="image",yt.parentNode==ft&&ft.removeChild(yt),yt.rotate=!0,yt.src=_,yt.type="tile",G._.fillpos=[P,L],G._.fillsize=[z,$],ft.appendChild(yt),wt(G,1,1,0,0,0),G},a._engine.text=function(b,_,P,L){var z=mt("shape"),$=mt("path"),Z=mt("textpath");_=_||0,P=P||0,L=L||"",$.v=a.format("m{0},{1}l{2},{1}",y(_*ut),y(P*ut),y(_*ut)+1),$.textpathok=!0,Z.string=d(L),Z.on=!0,z.style.cssText=it,z.coordsize=ut+M+ut,z.coordorigin="0 0";var G=new at(z,b),J={fill:"#000",stroke:"none",font:a._availableAttrs.font,text:L};G.shape=z,G.path=$,G.textpath=Z,G.type="text",G.attrs.text=d(L),G.attrs.x=_,G.attrs.y=P,G.attrs.w=1,G.attrs.h=1,et(G,J),z.appendChild(Z),z.appendChild($),b.canvas.appendChild(z);var ft=mt("skew");return ft.on=!0,z.appendChild(ft),G.skew=ft,G.transform(N),G},a._engine.setSize=function(b,_){var P=this.canvas.style;return this.width=b,this.height=_,b==+b&&(b+="px"),_==+_&&(_+="px"),P.width=b,P.height=_,P.clip="rect(0 "+b+" "+_+" 0)",this._viewBox&&a._engine.setViewBox.apply(this,this._viewBox),this},a._engine.setViewBox=function(b,_,P,L,z){a.eve("raphael.setViewBox",this,this._viewBox,[b,_,P,L,z]);var $,Z,G=this.getSize(),J=G.width,ft=G.height;return z&&(P*($=ft/L)<J&&(b-=(J-P*$)/2/$),L*(Z=J/P)<ft&&(_-=(ft-L*Z)/2/Z)),this._viewBox=[b,_,P,L,!!z],this._viewBoxShift={dx:-b,dy:-_,scale:G},this.forEach(function(yt){yt.transform("...")}),this},a._engine.initWin=function(b){var _=b.document;_.styleSheets.length<31?_.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"):_.styleSheets[0].addRule(".rvml","behavior:url(#default#VML)");try{!_.namespaces.rvml&&_.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),mt=function(P){return _.createElement("<rvml:"+P+' class="rvml">')}}catch{mt=function(L){return _.createElement("<"+L+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},a._engine.initWin(a._g.win),a._engine.create=function(){var b=a._getContainer.apply(0,arguments),_=b.container,P=b.height,L=b.width,z=b.x,$=b.y;if(!_)throw new Error("VML container not found.");var Z=new a._Paper,G=Z.canvas=a._g.doc.createElement("div"),J=G.style;return z=z||0,$=$||0,L=L||512,P=P||342,Z.width=L,Z.height=P,L==+L&&(L+="px"),P==+P&&(P+="px"),Z.coordsize=216e5+M+216e5,Z.coordorigin="0 0",Z.span=a._g.doc.createElement("span"),Z.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",G.appendChild(Z.span),J.cssText=a.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",L,P),_==1?(a._g.doc.body.appendChild(G),J.left=z+"px",J.top=$+"px",J.position="absolute"):_.firstChild?_.insertBefore(G,_.firstChild):_.appendChild(G),Z.renderfix=function(){},Z},a.prototype.clear=function(){a.eve("raphael.clear",this),this.canvas.innerHTML=N,this.span=a._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},a.prototype.remove=function(){for(var b in a.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[b]=typeof this[b]=="function"?a._removedFactory(b):null;return!0};var K=a.st;for(var C in R)R[u](C)&&!K[u](C)&&(K[C]=function(b){return function(){var _=arguments;return this.forEach(function(P){P[b].apply(P,_)})}}(C))}}.apply(r,s))===void 0||(n.exports=o)}])})})(Bc);var up=Bc.exports;const Ie=po(up);class Ro{points;constructor(t=[]){this.points=t}toSVGPathData(){const t=[];for(let n=0,r=this.length;n<r;n++)t.push([n===0?"M":"L",this.points[n].x,this.points[n].y]);return t}toSVGPathD(){let t="";for(let n=0,r=this.length;n<r;n++)t+=(n===0?"M":"L")+this.points[n].x+","+this.points[n].y;return t}get length(){return this.points.length}addPoint(t){this.points.push(t)}getPoint(t){return this.points[t]}isContainPoint(t){const n=t.x,r=t.y,i=this.length;let s=!1;const o=2e-10;for(let a=0,u=i-1;a<i;u=a,a++){const d=this.points[a].x,g=this.points[a].y,v=this.points[u].x,y=this.points[u].y;if(d===n&&g===r||v===n&&y===r||r===g&&r===y)return!0;if(r>=g&&r<y||r<g&&r>=y){const w=(v-d)/(y-g),I=d+w*(r-g);if(I===n||Math.abs(I-n)<o)return!0;I>n&&(s=!s)}}return s}[Symbol.iterator](){let t=0;return{next:()=>({value:t>=this.length-1?this.points[++t]:void 0,done:t>=this.length})}}static generateInMultiplePoint(t,n,r,i,s=1){const o=new Ro;for(let a=0;a<=s*r;a+=1){const u=Math.floor(a/s)/r*2*Math.PI,d=t+Math.cos(u)*i,g=n+Math.sin(u)*i;o.addPoint(new tn({x:d,y:g}))}return o}}const Gc=Ro;Ie.easing_formulas.swing=function(e){return e+Math.sin(e*Math.PI*2)/2},Ie.easing_formulas.may_cause_seizures=function(e){return e+.2*Math.random()-.1},Ie.fn.importSVG=function(e,t){const n=Yn.fromRawSVG(e);return n.toRaphael(this,(r,i)=>{n.save(),t&&t(r),i(),n.restore()}),this},Ie.fn.NPolygonPath=function(e,t,n,r,i=2){return{shape:this.path(Gc.generateInMultiplePoint(e,t,n,r,i).toSVGPathD()),afterPath:Gc.generateInMultiplePoint(e,t,n*i,r,1).toSVGPathD()}},Ie.fn.zoom=function(e=1){return this.setViewBox(0,0,this.width/e,this.height/e),this},Ie.fn.brickwall=function(e,t,n,r,i){for(var s=r/i,o=n/3,a={fill:"firebrick",stroke:"#CCC"},u=0;u<i;u+=1){var d=this.rect(0,0,o,s).attr(a),g=this.rect(0,0,2*o,s).attr(a);u%2?(d.transform("T"+e+","+(t+u*s)),g.transform("T"+(e+o)+","+(t+u*s))):(g.transform("T"+e+","+(t+u*s)),d.transform("T"+(e+2*o)+","+(t+u*s)))}},Ie.fn.rosetta=function(e,t,n,r,i){const s=zc.generateRosetta(e,t,n,r,i);return s.center,this.path(s.toSVGPathD())},Ie.fn.moon=function(e){e=e||{},e.r=typeof e.r=="number"?e.r:100,e.phase=typeof e.phase=="number"?e.phase:.25,e.x=typeof e.x=="number"?e.x:0,e.y=typeof e.y=="number"?e.y:0,this.circle(e.r+e.x,e.r+e.y,e.r).attr({"stroke-width":0,fill:"#999"});function t(r){r=typeof r=="number"?r:.25,r=Math.max(0,Math.min(1,r)),r=(r-.5)*2;let i="M"+e.r+",0";i+="a"+e.r+","+e.r+" 0 0,0 0,"+e.r*2;let s=r>0?0:1;return r=Math.abs(r),r=r||1e-4,e.inner_r=e.r/Math.pow(r,.5),i+="M"+e.r+","+e.r*2,i+="a"+e.inner_r+","+e.inner_r+" 0 0,"+s+" 0,"+e.r*-2,i}var n=this.path(t(e.phase)).attr({"stroke-width":0,stroke:"#999",fill:"#FF9"}).transform("T"+e.x+","+e.y);return{setPhase:function(r){n.attr("path",t(r))}}},Ie.fn.star=function(e,t,n){let r="M"+e+","+(t-n);for(var i=0;i<6;i+=1){const s=270+i*144,o=e+n*Math.cos(s*Math.PI/180),a=t+n*Math.sin(s*Math.PI/180);r+="L"+o+","+a}return this.path(r).attr("stroke-width",0).attr("fill","red")},Ie.fn.heart=function(e=150,t=300){let n="M"+e+","+t;return n+="l120,-175a50,50 0 0,0 -120,-75a50,50 0 0,0 -120,75l120,175",this.path(n).attr("stroke","red").attr("fill","pink")},Ie.el.redder=function(){const e=Ie.getRGB(this.attr("fill"));e.r+=51,this.attr("fill","rgb("+e.r+","+e.g+","+e.b+")")},Ie.installCustomAttributes=function(e){e.customAttributes.redness=function(t){const n=255*(1-t/100);return{fill:"rgb(255,"+n+", "+n+")"}},e.customAttributes.progress=function(t){const n=this.data("progresspath"),r=this.attr(),i={x:0,y:0},s=this.data("progresstrail");if(!n)return{transform:"t0,0"};Object.prototype.hasOwnProperty.call(r,"width")&&(i.x=-this.attr("width")/2,i.y=-this.attr("height")/2);const o=n.getTotalLength(),a=n.getPointAtLength(t*o);return s&&s.attr("path",n.getSubpath(0,t*o)),{transform:"t"+(a.x+i.x)+","+(a.y+i.y)+"r"+a.alpha}}};const Vc=Ie;class Yn{pgs=[];history=[];save(){this.history.push(Kl(this.pgs))}restore(){const t=this.history.pop();t&&(this.pgs=t)}get size(){let t=0,n=0;return this.pgs.forEach(r=>{const i=r.pg;if(i){const[s,o,a,u]=i.bounds,[d,g]=i.size;t=Math.max(t,s,s+d,a),n=Math.max(n,o,o+g,u)}}),[Math.ceil(t),Math.ceil(n)]}static fromRawSVG(t){return Yn.fromRawSVGUseRappar(t)}static fromRawSVGUseRappar(t){const n=new Yn,r=Gd(t);for(let i=0,s=r.length;i<s;i++){const o=r[i];if(o.type=="viewbox"&&o.width&&o.height)continue;const a={attrs:{}};for(const u in o)u==="type"||u==="path"||u==="transform"||(a.attrs[u]=o[u]);switch(o.type){case"path":a.d=o.path,a.pg=zc.fromSVGPathD(o.path,o.transform);break}n.pgs.push(a)}return n}toRaphael(t,n){let r;t instanceof HTMLElement?r=Vc(HTMLElement):typeof t=="string"?r=Vc(document.getElementById(t)):r=t;const[i,s]=this.size;r.setSize(i,s);const o=(a=!1)=>{for(let u=0,d=this.pgs.length;u<d;u++){const g=this.pgs[u];if(g.pg&&(g.raphaelPath?g.raphaelPath.attr("path",g.pg.toSVGPathD()):g.raphaelPath=r.path(g.pg.toSVGPathD()),g.raphaelPath.attr(g.attrs)),a&&n){const v=y=>{const{x:w,y:I}=go(r.canvas,y),k=this.pgs.find(A=>A.raphaelPath?.isPointInside(w,I));k&&n?.(k,o)};g.raphaelPath?.unclick(v),g.raphaelPath?.click(v)}}};return o(!0),r}toCanvasOperation(t,n){let r;typeof t=="string"?r=document.getElementById(t):r=t;const[i,s]=this.size;r.width=i,r.height=s;const o=new Zi(r),a=()=>{o.clearRect(0,0,i,s);for(let d=0,g=this.pgs.length;d<g;d++){const v=this.pgs[d];v.pg&&(o.save(),this.toCanvasAttrs(o,v.attrs),v.pg.toCanvas(o),v.attrs.stroke!=="none"&&o.stroke(),v.attrs.fill!=="none"&&o.fill(),o.restore())}};a();const u=d=>{const{x:g,y:v}=go(o.canvas,d),y=this.pgs.find(w=>w.pg?.isPointInPath(g,v));y&&n?.(y,a)};return r.removeEventListener("click",u),r.addEventListener("click",u),o}toCanvasAttrs(t,n){for(const r in n){const i=n[r];switch(r){case"fill":t.fillStyle=String(i);break;case"stroke":t.strokeStyle=String(i);break;case"stroke-width":t.lineWidth=Number(i);break;case"stroke-linecap":t.lineCap=i;break;case"stroke-linejoin":t.lineJoin=i;break}}}static toDownloadSVGElement(t,n="shape"){dc(yd(t),`${n}.svg`)}toDownloadSVGElement(t,n="shape"){return Yn.toDownloadSVGElement(t,n),this}static toDownloadSVGString(t,n="shape"){dc(fc(t),`${n}.svg`)}toDownloadSVGString(t,n="shape"){return Yn.toDownloadSVGString(t,n),this}static getSVGDOM(t){if(t instanceof HTMLObjectElement||t instanceof HTMLIFrameElement)return t.contentDocument;if(t instanceof HTMLEmbedElement)return t.getSVGDocument()}}class Zi{canvas;context;customContext;constructor(t){this.canvas=t,this.context=t.getContext("2d",{willReadFrequently:!0}),this.customContext=new Yi({canvas:this.canvas,width:this.canvas.width,height:this.canvas.height})}set lineWidth(t){this.context.lineWidth=t,this.customContext.lineWidth=t}get lineWidth(){return this.context.lineWidth}set lineCap(t){this.context.lineCap=t,this.customContext.lineCap=t}get lineCap(){return this.context.lineCap}set lineJoin(t){this.context.lineJoin=t,this.customContext.lineCap=t}get lineJoin(){return this.context.lineJoin}set lineDashOffset(t){this.context.lineDashOffset=t,this.customContext.lineDashOffset=t}get lineDashOffset(){return this.context.lineDashOffset}set miterLimit(t){this.context.miterLimit=t,this.customContext.miterLimit=t}get miterLimit(){return this.context.miterLimit}set globalAlpha(t){this.context.globalAlpha=t,this.customContext.globalAlpha=t}get globalAlpha(){return this.context.globalAlpha}set fillStyle(t){typeof t=="string"||t instanceof CanvasGradient||t instanceof CanvasPattern?(this.context.fillStyle=t,this.customContext.fillStyle=t):(this.context.fillStyle=t.gradient,this.customContext.fillStyle=t.gradientCustom)}get fillStyle(){return this.context.fillStyle}set strokeStyle(t){typeof t=="string"||t instanceof CanvasGradient||t instanceof CanvasPattern?(this.context.strokeStyle=t,this.customContext.strokeStyle=t):(this.context.strokeStyle=t.gradient,this.customContext.strokeStyle=t.gradientCustom)}get strokeStyle(){return this.context.strokeStyle}set font(t){this.context.font=t,this.customContext.font=t}get font(){return this.context.font}fill(){return this.context.fill(),this.customContext.fill(),this}fillRect(t,n,r,i){return this.context.fillRect(t,n,r,i),this.customContext.fillRect(t,n,r,i),this}fillText(t,n,r,i){return this.context.fillText(t,n,r,i),this.customContext.fillText(t,n,r),this}setLineDash(t){return this.context.setLineDash(t),this.customContext.setLineDash(t),this}stroke(){return this.context.stroke(),this.customContext.stroke(),this}strokeText(t,n,r,i){return this.context.strokeText(t,n,r,i),this.customContext.strokeText(t,n,r),this}strokeRect(t,n,r,i){return this.context.strokeRect(t,n,r,i),this.customContext.strokeRect(t,n,r,i),this}clearRect(t=0,n=0,r=this.canvas.width,i=this.canvas.height){return this.context.clearRect(t,n,r,i),this.customContext.clearRect(t,n,r,i),this}save(){return this.context.save(),this.customContext.save(),this}restore(){return this.context.restore(),this.customContext.restore(),this}beginPath(){return this.context.beginPath(),this.customContext.beginPath(),this}closePath(){return this.context.closePath(),this.customContext.closePath(),this}isPointInPath(t,n){return this.context.isPointInPath(t,n)}moveTo(t,n){return this.context.moveTo(t,n),this.customContext.moveTo(t,n),this}lineTo(t,n){return this.context.lineTo(t,n),this.customContext.lineTo(t,n),this}arc(t,n,r,i,s,o){return this.context.arc(t,n,r,i,s,o),this.customContext.arc(t,n,r,i,s,o?-1:1),this}arcTo(t,n,r,i,s){return this.context.arcTo(t,n,r,i,s),this.customContext.arcTo(t,n,r,i,s),this}quadraticCurveTo(t,n,r,i){return this.context.quadraticCurveTo(t,n,r,i),this.customContext.quadraticCurveTo(t,n,r,i),this}bezierCurveTo(t,n,r,i,s,o){return this.context.bezierCurveTo(t,n,r,i,s,o),this.customContext.bezierCurveTo(t,n,r,i,s,o),this}rect(t,n,r,i){return this.context.rect(t,n,r,i),this.customContext.rect(t,n,r,i),this}translate(t,n){return this.context.translate(t,n),this.customContext.translate(t,n),this}rotate(t){return this.context.rotate(t),this.customContext.rotate(t),this}scale(t,n){return this.context.scale(t,n),this.customContext.scale(t,n),this}createLinearGradient(t,n,r,i,s){const o=this.context.createLinearGradient(t,n,r,i),a=this.customContext.createLinearGradient(t,n,r,i);return s&&Object.keys(s).forEach(u=>{const d=parseFloat(u);o.addColorStop(d,s[d]),a.addColorStop(d,s[d])}),{gradient:o,gradientCustom:a}}createRadialGradient(t,n,r,i,s,o,a){const u=this.context.createRadialGradient(t,n,r,i,s,o),d=this.customContext.createRadialGradient(t,n,r,i,s,o);return a&&Object.keys(a).forEach(g=>{const v=parseFloat(g);u.addColorStop(v,a[v]),d.addColorStop(v,a[v])}),{gradient:u,gradientCustom:d}}drawImage(t,...n){if(n.length===0)this.context.drawImage(t,0,0);else if(n.length===2){const r=n[0],i=n[1];this.context.drawImage(t,r,i)}else if(n.length===4){const r=n[0],i=n[1],s=n[2],o=n[3];this.context.drawImage(t,r,i,s,o)}else if(n.length===8){const r=n[0],i=n[1],s=n[2],o=n[3],a=n[4],u=n[5],d=n[6],g=n[7];this.context.drawImage(t,r,i,s,o,a,u,d,g)}else throw new Error("Invalid number of arguments passed to drawImage: "+n.length);return this.customContext.drawImage(t,...n),this}getImageData(t,n,r,i,s){return this.context.getImageData(t,n,r,i,s)}putImageData(t,n=0,r=0){return this.context.putImageData(t,n,r)}toRawSVG(){const t=this.customContext.getSerializedSvg(!0),n=this.customContext.getSvg();return{raw:t,element:n}}toSVGOperation(){const{raw:t}=this.toRawSVG();return Yn.fromRawSVG(t)}}class Fo extends md{container;hammer;mousePoint;ctx;removeEventListeners=[];constructor(t=document.documentElement){super(),this.container=t,this.hammer=new Md(this.container),this.mousePoint=new tn({x:0,y:0}),this.container instanceof HTMLCanvasElement&&(this.ctx=new Zi(this.container)),this.initMouseEventListeners(),this.initKeyboardEventListeners(),this.on("pointerMove",this.setMousePoint),this.addDestroyRemove(()=>{this.off("pointerMove",this.setMousePoint)})}addDestroyRemove(t){this.removeEventListeners.push(t)}destroy(){this.removeEventListeners.forEach(t=>t()),this.removeAllListeners()}setMousePoint(t){const n=go(this.container,t);this.mousePoint.x=n.x,this.mousePoint.y=n.y}initMouseEventListeners(){const t=new ResizeObserver(R=>{const{width:K,height:C}=R[0].contentRect;this.emit("resize",K,C)}),n=R=>{this.emit("mouseDown",R),this.container.style.userSelect="none"},r=R=>{this.emit("mouseUp",R),this.container.style.userSelect=""},i=R=>{this.emit("mouseMove",R)},s=R=>{this.emit("mouseOver",R)},o=R=>{this.emit("mouseOut",R),this.container.style.userSelect=""},a=R=>{this.emit("mouseClick",R)},u=R=>{this.emit("mouseDoubleClick",R)},d=R=>{this.emit("mouseWheel",R)},g=R=>{this.emit("mouseContextMenu",R)},v=R=>{this.emit("touchStart",R),this.container.style.userSelect="none"},y=R=>{this.emit("touchEnd",R),this.container.style.userSelect=""},w=R=>{this.emit("touchCancel",R),this.container.style.userSelect=""},I=R=>{this.emit("touchMove",R)},k=R=>{this.emit("pointerDown",R),this.container.style.userSelect="none"},A=R=>{this.emit("pointerUp",R),this.container.style.userSelect=""},B=R=>{this.emit("pointerCancel",R),this.container.style.userSelect=""},M=R=>{this.emit("pointerMove",R)},N=R=>{this.emit("pan",R)},D=R=>{this.emit("panStart",R),this.container.style.userSelect="none"},U=R=>{this.emit("panMove",R)},H=R=>{this.emit("panEnd",R),this.container.style.userSelect=""},F=R=>{this.emit("panCancel",R),this.container.style.userSelect=""},it=R=>{this.emit("panLeft",R)},ut=R=>{this.emit("panRight",R)},_t=R=>{this.emit("panUp",R),this.container.style.userSelect=""},pt=R=>{this.emit("panDown",R),this.container.style.userSelect="none"},ht=R=>{this.emit("pinch",R)},wt=R=>{this.emit("press",R)},mt=R=>{this.emit("rotate",R)},ct=R=>{this.emit("swipe",R)},et=R=>{this.emit("tap",R)},X=R=>{!R.target||this.container==R.target||this.container.contains(R.target)||this.emit("tapOutSide",R)};t.observe(this.container),this.container.addEventListener("mousedown",n),this.container.addEventListener("mouseup",r),this.container.addEventListener("mousemove",i),this.container.addEventListener("mouseover",s),this.container.addEventListener("mouseout",o),this.container.addEventListener("click",a),this.container.addEventListener("dblclick",u),this.container.addEventListener("wheel",d),this.container.addEventListener("contextmenu",g),this.container.addEventListener("touchstart",v),this.container.addEventListener("touchend",y),this.container.addEventListener("touchcancel",w),this.container.addEventListener("touchmove",I),this.container.addEventListener("pointerdown",k),this.container.addEventListener("pointerup",A),this.container.addEventListener("pointercancel",B),this.container.addEventListener("pointermove",M),this.hammer.on("pan",N),this.hammer.on("panstart",D),this.hammer.on("panmove",U),this.hammer.on("panend",H),this.hammer.on("pancancel",F),this.hammer.on("panleft",it),this.hammer.on("panright",ut),this.hammer.on("panup",_t),this.hammer.on("pandown",pt),this.hammer.on("pinch",ht),this.hammer.on("press",wt),this.hammer.on("rotate",mt),this.hammer.on("swipe",ct),this.hammer.on("tap",et),document.addEventListener("pointerdown",X,!1);const at=()=>{t.unobserve(this.container),this.container.removeEventListener("mousedown",n),this.container.removeEventListener("mouseup",r),this.container.removeEventListener("mousemove",i),this.container.removeEventListener("mouseover",s),this.container.removeEventListener("mouseout",o),this.container.removeEventListener("click",a),this.container.removeEventListener("dblclick",u),this.container.removeEventListener("wheel",d),this.container.removeEventListener("contextmenu",g),this.container.removeEventListener("touchstart",v),this.container.removeEventListener("touchend",y),this.container.removeEventListener("touchcancel",w),this.container.removeEventListener("touchmove",I),this.container.removeEventListener("pointerdown",k),this.container.removeEventListener("pointerup",A),this.container.removeEventListener("pointercancel",B),this.container.removeEventListener("pointermove",M),this.hammer.off("pan",N),this.hammer.off("panstart",D),this.hammer.off("panmove",U),this.hammer.off("panend",H),this.hammer.off("pancancel",F),this.hammer.off("panleft",it),this.hammer.off("panright",ut),this.hammer.off("panup",_t),this.hammer.off("pandown",pt),this.hammer.off("pinch",ht),this.hammer.off("press",wt),this.hammer.off("rotate",mt),this.hammer.off("swipe",ct),this.hammer.off("tap",et),document.removeEventListener("pointerdown",X,!1),document.removeEventListener("touchstart",X,!1),document.removeEventListener("mousedown",X,!1)};return this.addDestroyRemove(at),at}initKeyboardEventListeners(){this.registerKeyDown({title:"打开",key:"o",ctrl:!0,exact:!0},()=>{_d().then(t=>xd(t[0])).then(t=>{this.emit("openFile",t)}).catch(t=>{this.emit("openFileError",t)})})}registerKeyDown(t,n,r){const i=Ld.on(t,o=>(n(o,i.formatedKeyNames,i.pause,i.restart),r)),s=()=>{i.removeListener?.()};return this.addDestroyRemove(s),s}drawMouseMoveLine(t,n){if(!this.ctx)return;let r=!1;switch(t){case"brush":const i=(n&&n.brushSize)??10,s=(n&&n.brushDensity)??50,o=(n&&n.brushColor)??"#000000",a=this.ctx.getImageData(0,0,this.ctx.canvas.width,this.ctx.canvas.height),u=a.data,d=Hc(o);this.captureMove({start:()=>{r=!0},end:()=>{r=!1},move:()=>{if(r){for(let g=0;g<s;g++){const v=Math.random()*Math.PI*2,y=Math.random()*i,w=this.mousePoint.x+Math.cos(v)*y|0,I=this.mousePoint.y+Math.sin(v)*y|0,k=(w+I*a.width)*4;u[k]=d>>16&255,u[k+1]=d>>8&255,u[k+2]=d&255,u[k+3]=255}this.ctx.putImageData(a)}}});break;case"line":default:this.captureMove({start:g=>{r=!0,this.ctx.beginPath(),this.setMousePoint(g),this.ctx.moveTo(this.mousePoint.x,this.mousePoint.y)},end:()=>{r=!1,this.ctx.closePath()},move:()=>{r&&(this.ctx.lineTo(this.mousePoint.x,this.mousePoint.y),this.ctx.stroke())}})}}static isTouchEnabled(){return"ontouchstart"in window||navigator.maxTouchPoints>0}captureMove(t){return this.captureMoveUsePointer(t)}captureMoveUseMouse(t){const n=o=>{document.addEventListener("mousemove",i,!1),document.addEventListener("mouseup",r,!1),this.container.style.userSelect="none",t?.start?.(o)},r=o=>{document.removeEventListener("mousemove",i,!1),document.removeEventListener("mouseup",r,!1),this.container.style.userSelect="",t?.end?.(o)},i=o=>{t?.move?.(o)};this.on("mouseDown",n);const s=()=>{this.off("mouseDown",n)};return this.addDestroyRemove(s),s}captureMoveUseTouch(t){const n=o=>{o.preventDefault(),t?.start?.(o)},r=o=>{t?.end?.(o)},i=o=>{t?.move?.(o)};this.on("touchStart",n),this.on("touchEnd",r),this.on("touchCancel",r),this.on("touchMove",i);const s=()=>{this.off("touchStart",n),this.off("touchEnd",r),this.off("touchCancel",r),this.off("touchMove",i)};return this.addDestroyRemove(s),s}captureMoveUsePointer(t){const n=o=>{this.container.setPointerCapture(o.pointerId),this.container.style.userSelect="none",t?.start?.(o)},r=o=>{this.container.style.userSelect="",t?.end?.(o)},i=o=>{t?.move?.(o)};this.on("pointerDown",n),this.on("pointerUp",r),this.on("pointerCancel",r),this.on("pointerMove",i);const s=()=>{this.off("pointerDown",n),this.off("pointerUp",r),this.off("pointerCancel",r),this.off("pointerMove",i)};return this.addDestroyRemove(s),s}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 Lt{static onDocumentReady(t){function n(){document.readyState!=="loading"&&(t(),document.removeEventListener("DOMContentLoaded",n))}typeof document<"u"&&(document.addEventListener("DOMContentLoaded",n),n())}static getCSSVar(t){return getComputedStyle(document.documentElement).getPropertyValue(t)}static setCSSVar(t,n){document.documentElement.style.setProperty(t,n)}static safeExec(t){const n=new Proxy(window,{get(r,i,s){if(typeof i=="string"&&["open","location","document"].includes(i))throw new Error(`禁止访问 key: ${i}`);return i==="window"?n:Reflect.get(r,i,s)},set(r,i,s,o){return Reflect.set(r,i,s,o)}});new Function("window",`with(window) { ${t} }`)(n,null)}static dom=new Proxy({},{get(t,n){return function(r={},...i){const s=document.createElement(n);for(const o of Object.keys(r))s.setAttribute(o,r[o]);for(const o of i)typeof o=="string"?s.appendChild(document.createTextNode(o)):s.appendChild(o);return s}}});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},en=(n,t)=>(typeof n=="string"&&(n=_o(n)||new RegExp(n)),n.test(t)),Ic=(n,t)=>{typeof n=="string"&&(n=_o(n)||new RegExp(n));const e=t.match(n);return e?n.flags.toLowerCase().indexOf("g")>=0?e.map(s=>({matchIndex:-1,fullMatch:s,groupMatchs:[]})):{matchIndex:typeof e.index=="number"?e.index:-1,fullMatch:e[0],groupMatchs:e.slice(1)}:null},Dc=(n,t)=>{typeof n=="string"&&(n=_o(n)||new RegExp(n));const e=[],s=t.matchAll(n);for(const i of s)e.push({matchIndex:typeof i.index=="number"?i.index:-1,fullMatch:i[0],groupMatchs:i.slice(1)});return e};function Mp(n){const t=n.match(/[\s\S]/gu);return t?t.length:0}function Mc(n,t){const e=n.codePointAt(t);return e?String.fromCodePoint(e):void 0}function Ap(){let n=new Date().getTime();return"xxxxxxxx_xxxx_xxxx_yxxx_xxxxxxxxxxxx".replace(/[xy]/g,function(e){const s=(n+Math.random()*16)%16|0;return n=Math.floor(n/16),(e=="x"?s:s&3|8).toString(16)})}function Rp(n){return n.replace(/(^\w)/g,function(t){return t.toLowerCase()})}const bn=(n,t="-")=>(n=n.replace(/([A-Z])/g,t+"$1").toLowerCase(),n.indexOf(t)==0?n.slice(1):n);function yo(n){return n.replace(/(^\w|[_-]\w)/g,function(t){return t.slice(-1).toUpperCase()})}function Ac(n){return Rp(yo(n))}function bo(n){const t=typeof n;return t!=="object"?t:Object.prototype.toString.call(n).replace(/^\[object (\S+)\]$/,"$1").toLowerCase()}function $p(n){return bo(n)==="array"}function Lp(n){return bo(n)==="function"}function Fp(n){return bo(n)==="object"}function Rc(n,t){for(const e of Reflect.ownKeys(t))if(e!=="constructor"&&e!=="prototype"&&e!=="name"&&e!=="displayName"&&!Lp(t[e])){const s=Object.getOwnPropertyDescriptor(t,e);s&&Object.defineProperty(n,e,s)}}function Kn(n,t){const e=t||{};for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s]);return e}function $c(n,t=new WeakMap){if(n==null)return n;if(n.constructor===Date)return new Date(n);if(n.constructor===RegExp)return new RegExp(n);if(typeof n!="object")return n;if(t.has(n))return t.get(n);const e=Object.create(Object.getPrototypeOf(n),Object.getOwnPropertyDescriptors(n));t.set(n,e);for(const s of Reflect.ownKeys(n))e[s]=Fp(n[s])?$c(n[s],t):n[s];return e}function Lc(n,t){for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&delete n[e];return n}function Os(n){for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&delete n[t];return n}function Ns(n,t){const e=n.length,s=t.length;for(let r=0;r<s;r++)n[r]=t[r];let i=Math.max(0,e-s);for(;i>0;)n.pop(),i--}function Is(n,t,e=Number.EPSILON*Math.pow(2,2)){return Math.abs(n-t)<e}const xo=(n,t,e)=>n<t?t:n>e?e:n;function Fc(n,t=12){return n.toPrecision(t)}function Ds(n){const t=Ic("number-single",n);return{hasNumber:!!t,number:t&&!Array.isArray(t)&&t.fullMatch?parseFloat(t.fullMatch):NaN,prefix:t&&!Array.isArray(t)&&t.fullMatch?n.substring(0,t.matchIndex):"",suffix:t&&!Array.isArray(t)&&t.fullMatch?n.substring(t.matchIndex+t.fullMatch.length):""}}function Vp(n){const t=Ic("number",n);return t?Array.isArray(t)?t.map(e=>Number(e.fullMatch)):[Number(t.fullMatch)]:[]}function Gp(n,t){let e=!0;return function(...s){e&&(e=!1,n.apply(this,s),setTimeout(()=>{e=!0},t))}}function zp(n,t){let e;return function(...s){clearTimeout(e),e=setTimeout(()=>{n.apply(this,s)},t)}}class Vc{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(s=>s()));this.results.push(...e),e.forEach(s=>{s.status=="fulfilled"?this.controller?.enqueue(s.value):s.status=="rejected"&&this.controller?.enqueue(new Error(s.reason))}),this.activeTaskCount-=e.length}}}class Gc{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(s=>s!==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(s=>{Reflect.apply(s,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 zc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function jp(n,t={}){var e=1,s=1;function i(Y){var z=Y.match(/\n/g);z&&(e+=z.length);var mt=Y.lastIndexOf(`
|
|
41
|
+
`);s=~mt?Y.length-mt:s+Y.length}function r(){var Y={line:e,column:s};return function(z){return z.position=new o(Y),m(),z}}function o(Y){this.start=Y,this.end={line:e,column:s},this.source=t.source}o.prototype.content=n;var a=[];function l(Y){var z=new Error(t.source+":"+e+":"+s+": "+Y);if(z.reason=Y,z.filename=t.source,z.line=e,z.column=s,z.source=n,t.silent)a.push(z);else throw z}function c(){var Y=f();return{type:"stylesheet",stylesheet:{source:t.source,rules:Y,parsingErrors:a}}}function u(){return p(/^{\s*/)}function h(){return p(/^}/)}function f(){var Y,z=[];for(m(),v(z);n.length&&n.charAt(0)!="}"&&(Y=Z()||I());)Y!==!1&&(z.push(Y),v(z));return z}function p(Y){var z=Y.exec(n);if(z){var mt=z[0];return i(mt),n=n.slice(mt.length),z}}function m(){p(/^\s*/)}function v(Y){var z;for(Y=Y||[];z=b();)z!==!1&&Y.push(z);return Y}function b(){var Y=r();if(!(n.charAt(0)!="/"||n.charAt(1)!="*")){for(var z=2;n.charAt(z)!=""&&(n.charAt(z)!="*"||n.charAt(z+1)!="/");)++z;if(z+=2,n.charAt(z-1)==="")return l("End of comment missing");var mt=n.slice(2,z-2);return s+=2,i(mt),n=n.slice(z),s+=2,Y({type:"comment",comment:mt})}}function E(){var Y=p(/^([^{]+)/);if(Y)return nn(Y[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(z){return z.replace(/,/g,"")}).split(/\s*(?![^(]*\)),\s*/).map(function(z){return z.replace(/\u200C/g,",")})}function C(){var Y=r(),z=p(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(z){if(z=nn(z[0]),!p(/^:\s*/))return l("property missing ':'");var mt=p(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),ft=Y({type:"declaration",property:z.replace(zc,""),value:mt?nn(mt[0]).replace(zc,""):""});return p(/^[;\s]*/),ft}}function w(){var Y=[];if(!u())return l("missing '{'");v(Y);for(var z;z=C();)z!==!1&&(Y.push(z),v(Y));return h()?Y:l("missing '}'")}function P(){for(var Y,z=[],mt=r();Y=p(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)z.push(Y[1]),p(/^,\s*/);if(z.length)return mt({type:"keyframe",values:z,declarations:w()})}function D(){var Y=r(),z=p(/^@([-\w]+)?keyframes\s*/);if(z){var mt=z[1];if(z=p(/^([-\w]+)\s*/),!z)return l("@keyframes missing name");var ft=z[1];if(!u())return l("@keyframes missing '{'");for(var At,ie=v();At=P();)ie.push(At),ie=ie.concat(v());return h()?Y({type:"keyframes",name:ft,vendor:mt,keyframes:ie}):l("@keyframes missing '}'")}}function N(){var Y=r(),z=p(/^@supports *([^{]+)/);if(z){var mt=nn(z[1]);if(!u())return l("@supports missing '{'");var ft=v().concat(f());return h()?Y({type:"supports",supports:mt,rules:ft}):l("@supports missing '}'")}}function A(){var Y=r(),z=p(/^@host\s*/);if(z){if(!u())return l("@host missing '{'");var mt=v().concat(f());return h()?Y({type:"host",rules:mt}):l("@host missing '}'")}}function at(){var Y=r(),z=p(/^@media *([^{]+)/);if(z){var mt=nn(z[1]);if(!u())return l("@media missing '{'");var ft=v().concat(f());return h()?Y({type:"media",media:mt,rules:ft}):l("@media missing '}'")}}function lt(){var Y=r(),z=p(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(z)return Y({type:"custom-media",name:nn(z[1]),media:nn(z[2])})}function pt(){var Y=r(),z=p(/^@page */);if(z){var mt=E()||[];if(!u())return l("@page missing '{'");for(var ft=v(),At;At=C();)ft.push(At),ft=ft.concat(v());return h()?Y({type:"page",selectors:mt,declarations:ft}):l("@page missing '}'")}}function Et(){var Y=r(),z=p(/^@([-\w]+)?document *([^{]+)/);if(z){var mt=nn(z[1]),ft=nn(z[2]);if(!u())return l("@document missing '{'");var At=v().concat(f());return h()?Y({type:"document",document:ft,vendor:mt,rules:At}):l("@document missing '}'")}}function bt(){var Y=r(),z=p(/^@font-face\s*/);if(z){if(!u())return l("@font-face missing '{'");for(var mt=v(),ft;ft=C();)mt.push(ft),mt=mt.concat(v());return h()?Y({type:"font-face",declarations:mt}):l("@font-face missing '}'")}}var Lt=dt("import"),Ft=dt("charset"),_t=dt("namespace");function dt(Y){var z=new RegExp("^@"+Y+"\\s*([^;]+);");return function(){var mt=r(),ft=p(z);if(ft){var At={type:Y};return At[Y]=ft[1].trim(),mt(At)}}}function Z(){if(n[0]=="@")return D()||at()||lt()||N()||Lt()||Ft()||_t()||Et()||pt()||A()||bt()}function I(){var Y=r(),z=E();return z?(v(),Y({type:"rule",selectors:z,declarations:w()})):l("selector missing")}return wo(c())}function nn(n){return n?n.replace(/^\s+|\s+$/g,""):""}function wo(n,t){var e=n&&typeof n.type=="string",s=e?n:t;for(var i in n){var r=n[i];Array.isArray(r)?r.forEach(function(o){wo(o,s)}):r&&typeof r=="object"&&wo(r,s)}return e&&Object.defineProperty(n,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),n}const jc=(n,t="image/svg+xml",e="utf-8")=>new Blob([n],{type:`${t};charset=${e}`}),Hc=n=>new XMLSerializer().serializeToString(n),Hp=(n,t="image/svg+xml",e="utf-8")=>jc(Hc(n),t,e),Bc=(n,t)=>{const e=document.createElement("a");e.style.visibility="hidden",document.body.appendChild(e),e.download=t,typeof n=="string"?e.href=n:e.href=window.URL.createObjectURL(n),e.click(),document.body.removeChild(e),window.URL.revokeObjectURL(e.href)};function Bp(n=["*"],t){return new Promise((e,s)=>{if(!globalThis.document||!(globalThis.document instanceof Document))return s(new Error("This is not a browser environment"));const i=globalThis.document.createElement("input");i.setAttribute("type","file"),i.setAttribute("visibility","hidden"),Array.isArray(n)&&n.length>0&&i.setAttribute("accept",n.join(",")),t&&i.setAttribute("multiple","true"),globalThis.addEventListener("focus",()=>{setTimeout(()=>{(!i.files||i.files?.length===0)&&s(new Error("Cancel select"))},1e3)},{once:!0});const r=()=>{if(i.removeEventListener("change",r),!i.files||i.files?.length===0)s(new Error("Cancel select"));else{const o=Array.from(i.files);!n.includes("*")&&o.some(a=>!n.includes(`.${Yp(a)}`))&&s(new Error(`Please select files in ${n} format`)),i.remove(),e(o)}};i.addEventListener("change",r),i.click()})}function Up(n,t="text",e){return new Promise((s,i)=>{const r=new FileReader;switch(r.addEventListener("progress",o=>{e?.(o.loaded,o.total)}),r.addEventListener("load",o=>{s(o.target?.result)}),r.addEventListener("error",o=>{i(o)}),t){case"dataURL":r.readAsDataURL(n);break;case"binaryString":r.readAsBinaryString(n);break;case"arrayBuffer":r.readAsArrayBuffer(n);break;default:r.readAsText(n)}})}const Yp=n=>{let t;return n instanceof File?t=n.name:t=n,t.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i)?.[1]??""};function Li(){const n=document.documentElement;return{clientWidth:n.clientWidth,clientHeight:n.clientHeight,clientTop:n.clientTop,clientLeft:n.clientLeft,scrollWidth:n.scrollWidth,scrollHeight:n.scrollHeight,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft,offsetWidth:n.offsetWidth,offsetHeight:n.offsetHeight,offsetTop:n.offsetTop,offsetLeft:n.offsetLeft,offsetParent:n.offsetParent,clientX:n.getBoundingClientRect().x,clientY:n.getBoundingClientRect().y}}function Uc(){const{clientWidth:n,clientHeight:t}=Li();return{width:n||window.innerWidth,height:t||window.innerHeight}}function Xp(n){const{top:t,left:e}=n.getBoundingClientRect(),{scrollLeft:s,scrollTop:i}=Li();return{x:e+s,y:t+i}}function Wp(){const{clientHeight:n,scrollTop:t,scrollHeight:e}=Li(),s=e-n;return s<=0?0:t/s*100}function qp(n){if("center"in n)return n.center;if(n.pageX&&n.pageY)return{x:n.pageX,y:n.pageY};const{scrollLeft:t,scrollTop:e}=Li();return{x:n.clientX+t,y:n.clientY+e}}function Kp(n,t){const e=qp(t),s=Xp(n);return{x:e.x-s.x,y:e.y-s.y}}function Yc(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}const Zp=()=>{const n=navigator.userAgent.toLowerCase();let t="Unknown";return/mac/i.test(n)?t="macOS":/win/i.test(n)?t="Windows":/android/i.test(n)?t="Android":/iphone|ipad|ipod/i.test(n)?t="iOS":/linux/i.test(n)?t="Linux":/bsd/i.test(n)&&(t="BSD"),t.toLowerCase()};function Qp(){return Zp()==="macos"}function Jp(){const n=window.navigator.userAgent,t=n.indexOf("MSIE ");if(t>0)return parseInt(n.substring(t+5,n.indexOf(".",t)),10);if(n.indexOf("Trident/")>0){const i=n.indexOf("rv:");return parseInt(n.substring(i+3,n.indexOf(".",i)),10)}const s=n.indexOf("Edge/");return s>0?parseInt(n.substring(s+5,n.indexOf(".",s)),10):-1}const Eo=Jp()!==-1;(()=>{const n=Yc();return!!(n.Worker&&n.Blob&&n.Promise&&n.OffscreenCanvas&&n.OffscreenCanvasRenderingContext2D&&n.HTMLCanvasElement&&n.HTMLCanvasElement.prototype.transferControlToOffscreen&&n.URL&&n.URL.createObjectURL)})(),function(){if(!Yc().OffscreenCanvas)return!1;var t=new OffscreenCanvas(1,1),e=t.getContext("2d");e.fillRect(0,0,1,1);var s=t.transferToImageBitmap();try{e.createPattern(s,"no-repeat")}catch{return!1}return!0}();function tm(n){const t=document.documentElement,e=window.top===window.self?window.devicePixelRatio:1;t.dataset.dpr=e;let s=100;const i=function(){const r=Math.min(t.clientWidth,n);t.dataset.width=r,t.dataset.rem=s=Math.round(100*(r/n)),t.style.fontSize=s+"px"};i(),window.rem2px=function(r){return r=parseFloat(r),r*s},window.px2rem=function(r){return r=parseFloat(r),r/s},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",i,!1)}class X{static onDocumentReady(t){let e=!1;function s(){document.readyState==="loading"||e||(e=!0,t(),document.removeEventListener("DOMContentLoaded",s))}typeof document<"u"&&(document.addEventListener("DOMContentLoaded",s),s())}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 attrsToCanvas(t,e){for(const s in e){const i=e[s];switch(bn(s)){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":t.lineJoin=i;break;case"cursor":break;case"text-anchor":break;case"font":t.font=i;break;case"font-size":t.font+=` ${i}`;break;case"font-family":t.font+=` ${i}`;break}}}static getStyle(t,e,s){const i=t;if(getComputedStyle)if(e){e=bn(e);const r=getComputedStyle(i,s).getPropertyPriority(e);return getComputedStyle(i,s).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=Ac(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,s){if(typeof e=="string"&&s){const i=String(s).toLowerCase().includes("!important")?"important":"";t.style.setProperty(e,s.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(i,String(e[i]).replace(/!important/i,""),r)})}static setStyleSheet(t,e){let s;if(typeof e=="string"){const r=document.querySelector(e)?.shadowRoot;r?s=r:s=document.querySelector(e)}else s=e;const i=document.createElement("style");if(i.innerHTML=t,s)return s.appendChild(i),()=>{(s instanceof HTMLElement||s instanceof ShadowRoot)&&s.removeChild(i)};{const r=document.styleSheets[0].insertRule(t);return()=>{document.styleSheets[0].deleteRule(r)}}}static toggleClass(t,e,s="toggle"){e.split(/[,\s]+/).forEach(i=>{i.trim()!==""&&t.classList[s](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(s=>s.trim()!==""?Array.from(t.classList||[]).includes(s.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){this.toggleDisplay(t,!0)}static hide(t){this.toggleDisplay(t,!1)}static attribute(t,e,s){let i={};if(e===void 0&&s===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"&&s===void 0)return t.getAttribute(bn(e));typeof e=="object"?i=e:typeof e=="string"&&s!==void 0&&(i[e]=s),Object.entries(i).forEach(([r,o])=>{t.setAttribute(bn(r),o)})}static removeAttribute(t,e){e.split(/[,\s]+/).forEach(s=>{s.trim()!=""&&t.removeAttribute(s.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,s){if(s===void 0&&typeof e=="string")return t[e];{let i={};typeof e=="object"?i=e:typeof e=="string"&&s!==void 0&&(i[e]=s),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(s=>{s.trim()!=""&&delete t[this.fixProp(s.trim())]})}static data(t,e,s){if(typeof e=="string"&&(e=Ac(e)),(typeof e=="string"||e===void 0)&&s===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]=s),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(s=>{s.trim()!=""&&delete t.dataset[s.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,s){let i;const r=["click","dblclick","mousedown","mouseup","mousemove"],o=["keydown","keyup","keypress"];typeof e=="string"?r.includes(e)?i=new MouseEvent(e,s):o.includes(e)?i=new KeyboardEvent(e,s):i=new Event(e,s):i=e,t.dispatchEvent(i)}static scriptConvert(t){const e=s=>{const r=s.ownerDocument.createElement("script");r.text=s.text;const o=s.attributes;for(let a=0;a<o.length;a++)r.setAttribute(o[a].name,o[a].value);return r};return t.tagName=="SCRIPT"&&(t=e(t)),t.querySelectorAll&&t.querySelectorAll("script").forEach(s=>{s.parentNode?.replaceChild(e(s),s)}),t}static fragment(t){const e=document.createElement("template");return e.innerHTML=t,e.content.childNodes.forEach(s=>{const i=this.scriptConvert(s);i!=s&&e.content.replaceChild(i,s)}),e.content}static insert(t,e,s="append"){return typeof e=="string"?t[s](this.fragment(e)):(e instanceof HTMLElement||e instanceof SVGElement)&&t[s](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 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 s=t.options;for(let i=0,r=s.length;i<r;i++)s[i].value==e?s[i].selected=!0:s[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 s;return t.charAt(0)=="#"?t.charAt(1).toLowerCase()=="x"?s=parseInt(t.substring(2),16):s=parseInt(t.substring(1),10):s=e[t],s?String.fromCharCode(s):"&"+t}static waitForStyleSheetsLoaded=()=>new Promise(t=>{const e=Array.from(document.querySelectorAll("link[rel=stylesheet]"));let s=document.styleSheets.length??0;const i=()=>s>=e.length?(t(),!0):!1;i()||e.forEach(r=>{r.onload=()=>{s+=1,i()}})});static loadScript(t,e=()=>{},s=(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=s,document.body.appendChild(i)}static runInSafe(t){const e=new Proxy(window,{get(s,i,r){if(typeof i=="string"&&["open","location","document"].includes(i))throw new Error(`禁止访问 key: ${i}`);return i==="window"?e:Reflect.get(s,i,r)},set(s,i,r,o){return Reflect.set(s,i,r,o)}});new Function("window",`with(window) { ${t} }`)(e,null)}static dom=new Proxy({},{get(t,e){return function(s={},...i){const r=document.createElement(e);for(const o of Object.keys(s))r.setAttribute(o,s[o]);for(const o of i)typeof o=="string"?r.appendChild(document.createTextNode(o)):r.appendChild(o);return r}}});static compileTemplate(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){
|
|
50
42
|
let output = "";
|
|
51
43
|
function echo(html){
|
|
52
44
|
output += html;
|
|
53
45
|
}
|
|
54
46
|
${t}
|
|
55
47
|
return output;
|
|
56
|
-
})`}static safeHtml(t,n="encode"){const r={"&":"&","<":"<",">":">",""":'"',"'":"'"};for(const i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t=t.replace(new RegExp(n=="decode"?i:r[i],"g"),n=="decode"?r[i]:i));return t}static loadScript(t,n=()=>{},r=(i,s,o,a,u)=>{}){const i=document.createElement("script");i.type="text/javascript",i.src=t,i.async=!1,document.body.appendChild(i),i.onload=n,i.onerror=r}static loadStyle(t){const n=document.createElement("link");n.rel="stylesheet",n.href=t,document.head.insertBefore(n,document.head.childNodes[document.head.childNodes.length-1].nextSibling)}static waitForStyleSheetsLoaded=()=>new Promise(t=>{const n=Array.from(document.querySelectorAll("link[rel=stylesheet]"));let r=document.styleSheets.length??0;const i=()=>r>=n.length?(t(),!0):!1;i()||n.forEach(s=>{s.onload=()=>{r+=1,i()}})});static lazyloadImages(){const t=document.getElementsByTagName("img"),n=gc().height;let r=0;return()=>{for(let i=r;i<t.length;i++)t[i].getBoundingClientRect().top<n&&(t[i].src=t[i].getAttribute("data-src")??"",r=i+1)}}static iframePostMessage(t,n="http://test.com/localstorage.html"){const r=document.createElement("iframe");r.src=n,document.body.append(r),setTimeout(function(){r.contentWindow?.postMessage(t,n)},4e3),setTimeout(function(){r.remove()},6e3)}static getTextWidth=(t,n,r=400)=>{const i=document.createElement("span");i.style.visibility="hidden",i.style.padding="0",i.style.whiteSpace="nowrap",i.style.overflow="visible",i.style.fontSize=n>12?n+"px":"12px",i.style.fontWeight=r.toString(),i.innerText=t,document.body.appendChild(i);const s=i.offsetWidth;return document.body.removeChild(i),s};static getFixedWidthText=(t,n,r=12,i=400,s=!0)=>{let o="",a="",u="";if(!t||n<r||typeof t!="string")return o;const d=t.split(""),g=document.createElement("span");g.style.visibility="hidden",g.style.padding="0",g.style.whiteSpace="nowrap",g.style.overflow="visible",g.style.fontSize=r>12?r+"px":"12px",g.style.fontWeight=i.toString(),document.body.appendChild(g);for(let v=0,y=d.length;v<y;v++){const w=d[v];if(a=u,u+=w,o=u,g.innerText=u,g.offsetWidth>n){s?o=a+"...":o=a;break}}return document.body.removeChild(g),o};static getLocation(){return new Promise((t,n)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(r=>{t(r.coords)}):n("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 copyToClipboard=t=>navigator.clipboard.writeText(t);static getSelectedText=()=>window.getSelection()?.toString();static siblings=t=>Array.prototype.slice.call(t.parentNode?.children).filter(n=>n!==t);static isElementFocus=t=>t===document.activeElement;static isTabInView=()=>!document.hidden;static navigateBack=()=>history.back();static navigateBack2=()=>history.go(-1);static addDebuggerOnBeforeUnload=()=>{window.addEventListener("beforeunload",()=>{debugger})}}function jc(e,t=document){return new ce(e,t)}class ce{context;nodes;prefixs=["moz","o","ms","webkit"];constructor(t,n=document){if(this.context=n,typeof t=="string"?this.nodes=Array.from(this.context.querySelectorAll(t)):t instanceof HTMLElement?this.nodes=[t]:this.nodes=t,this.nodes.length===0)throw new Error(`can not find ${t}`);this.each((r,i)=>{r instanceof HTMLInputElement&&r.addEventListener("change",s=>{this.changeRadioChecked(s.currentTarget.value)}),r instanceof HTMLSelectElement&&r.addEventListener("change",s=>{this.changeSelectSelected(s.currentTarget.value)})})}get(t){return t<0&&(t=this.nodes.length+t),this.nodes[t]}concat(t){return new ce(this.nodes.concat(t.nodes),this.context)}then(t){return t(this)??this}each(t){return this.nodes.forEach((n,r)=>{t(n,r)}),this}_save(t,n,r){t._mQuery||(t._mQuery={}),Array.isArray(r)?(t._mQuery[n]=t._mQuery[n]??[],t._mQuery[n].push(...r)):r!=null?t._mQuery[n]=r:delete t._mQuery[n]}on(t,n,r){return this.nodes.forEach(i=>{this._save(i,"events",[{event:t,callback:n,options:r}]),i.addEventListener(t,n,r)}),this}off(t,n,r){return this.nodes.forEach(i=>{i.removeEventListener(t,n,r)}),this}dispatchEvent(t,n){let r;const i=["click","dblclick","mousedown","mouseup","mousemove"],s=["keydown","keyup","keypress"];return typeof t=="string"?i.includes(t)?r=new MouseEvent(t,n):s.includes(t)?r=new KeyboardEvent(t,n):r=new Event(t,n):r=t,this.nodes.forEach(o=>{o.dispatchEvent(r)}),this}change(){return this.dispatchEvent("change")}click(){return this.dispatchEvent("click")}static hasEvent(t,n){return"on"+n in t}static _fragment(t){const n=document.createElement("template");return n.innerHTML=t,n.content.childNodes.forEach(r=>{const i=ce._scriptConvert(r);i!=r&&n.content.replaceChild(i,r)}),n.content}static _scriptConvert(t){const n=r=>{const s=r.ownerDocument.createElement("script");s.text=r.text;const o=r.attributes;for(let a=0;a<o.length;a++)s.setAttribute(o[a].name,o[a].value);return s};return t.tagName=="SCRIPT"&&(t=n(t)),t.querySelectorAll&&t.querySelectorAll("script").forEach(r=>{r.parentNode?.replaceChild(n(r),r)}),t}static _fixProp(t){const n={cellpadding:"cellPadding",cellspacing:"cellSpacing",class:"className",colspan:"colSpan",contenteditable:"contentEditable",for:"htmlFor",frameborder:"frameBorder",maxlength:"maxLength",readonly:"readOnly",rowspan:"rowSpan",tabindex:"tabIndex",usemap:"useMap"};return n[t]?n[t]:t}static isSVG(t){return(t||document.documentElement).nodeName.toLowerCase()==="svg"}static createElement(t){return ce.isSVG()?document.createElementNS.call(document,"http://www.w3.org/2000/svg",t):document.createElement.call(document,t)}static createTextNode(t){return document.createTextNode.call(document,t)}static createDocumentFragment(){return document.createDocumentFragment.call(document)}_insert(t,n){const r=this.nodes.length;if(r<1)return this;const i=[];if(typeof n=="string")this.nodes.forEach(s=>{const o=ce._fragment(n);i.push(...o.children),s[t](o)});else if(n instanceof HTMLElement)this.each(s=>{const o=r===1?n:ce._fragment(n.outerHTML);i.push(...r===1?[n]:o.children),s[t](o)}),r>1&&n.remove();else if(n instanceof ce){const s=r==1;n.each(o=>{this.each(a=>{const u=s?o:o.cloneNode(!0);i.push(u),a[t](u),ce._scriptConvert(u)})}),s||n.remove()}return t=="replaceWith"&&(this.nodes=i),this}append(t){return this._insert("append",t)}prepend(t){return this._insert("prepend",t)}after(t){return this._insert("after",t)}before(t){return this._insert("before",t)}replace(t){return this._insert("replaceWith",t)}remove(){return this.nodes.forEach(t=>{t.remove()}),this}static removeChild(t){t.parentElement?.removeChild(t)}find(t){const n=[];return this.nodes.forEach(r=>{n.push(...Array.from(r.querySelectorAll(t)))}),new ce(n,this.context)}filter(t){const n=[];return this.nodes.forEach(r=>{(r===t||typeof t=="string"&&r.matches&&r.matches(t))&&n.push(r)}),new ce(n,this.context)}next(){const t=[];return this.nodes.forEach(n=>{const r=n.nextElementSibling;r&&t.push(r)}),new ce(t,this.context)}prev(){const t=[];return this.nodes.forEach(n=>{const r=n.previousElementSibling;r&&t.push(r)}),new ce(t,this.context)}closest(t){const n=[];return this.nodes.forEach(r=>{const i=r.closest(t);i&&n.push(i)}),new ce(n,this.context)}shadow(t){const n=[];this.nodes.forEach(i=>{i.shadowRoot&&n.push(i.shadowRoot)});const r=new ce(n,this.context);return t!==void 0?r.find(t):r}parent(t){return this.parents(t,!0)}parents(t,n=!1){const r=[],i=o=>{if(r.indexOf(o)==-1&&r.push(o),!n&&o.parentElement)return i(o.parentElement)};this.nodes.forEach(o=>{o.parentElement&&i(o.parentElement)});const s=new ce(r,this.context);return t!==void 0?s.filter(t):s}static getComputedStyle(t,n,r){let i;const s=t.style.getPropertyPriority(n);return"getComputedStyle"in window?(i=getComputedStyle.call(window,t,r),i=i.getPropertyValue(n)):i=t.style.getPropertyValue(n),i+(s?"!"+s:"")}css(t,n){if((t===void 0||typeof t=="string")&&n===void 0){const r=this.nodes[0].style;if(typeof t=="string"){const i=r.getPropertyPriority(t),s=r.getPropertyValue(t).trim();return s?s+(i?"!"+i:""):ce.getComputedStyle(this.nodes[0],t)}else{const i=Object.fromEntries(this.nodes[0].style.cssText.split(";").filter(s=>!!s).map(s=>s.split(":").map(o=>o.trim())));return Object.assign(i,getComputedStyle.call(window,this.nodes[0])),i}}else{let r={};return typeof t=="string"&&n!==void 0?r[t]=n:typeof t=="object"&&(r=t),this.nodes.forEach(i=>{Object.keys(r).forEach(s=>{const o=String(r[s]).toLowerCase().includes("!important")?"important":"";i.style.setProperty(s,String(r[s]).replace(/!important/i,""),o)})}),this}}addClass(t){return this.toggleClass(t,!0)}removeClass(t){return this.toggleClass(t,!1)}toggleClass(t,n){const r=t.split(/[,\s]+/);return this.nodes.forEach(i=>{r.forEach(s=>{if(s.trim()!==""){let o="toggle";n!==void 0&&(o=n?"add":"remove"),i.classList[o](s.trim())}})}),this}hasClass(t){const n=t.split(/[,\s]+/);let r=!1;return this.nodes.forEach(i=>{r=r||n.every(s=>Array.from(i.classList??[]).includes(s.trim()))}),r}attr(t,n){if(n===void 0&&typeof t=="string")return this.nodes[0].getAttribute(t);let r={};return typeof t=="object"?r=t:n!==void 0&&(r[t]=n),this.nodes.forEach(i=>{Object.entries(r).forEach(([s,o])=>{i.setAttribute(s,o)})}),this}removeAttr(t){const n=t.split(/[,\s]+/);return this.nodes.forEach(r=>{n.forEach(i=>{r.removeAttribute(i)})}),this}prop(t,n){if(n===void 0&&typeof t=="string")return this.nodes[0][t];{let r={};return typeof t=="object"?r=t:typeof t=="string"&&n!==void 0&&(r[t]=n),this.nodes.forEach(i=>{Object.entries(r).forEach(([s,o])=>{const a=ce._fixProp(s);i[a]=o,a=="innerHTML"&&ce._scriptConvert(i)})}),this}}removeProp(t){const n=t.split(/[,\s]+/);return this.nodes.forEach(r=>{n.forEach(i=>{delete r[ce._fixProp(i)]})}),this}changeSelectSelected(t){this.nodes.forEach(n=>{if(n instanceof HTMLSelectElement){const r=n.options;for(let i=0,s=r.length;i<s;i++)r[i].value==t?r[i].selected=!0:r[i].selected=!1}})}changeRadioChecked(t){this.nodes.forEach(n=>{n instanceof HTMLInputElement&&(n.value==t?n.checked=!0:n.checked=!1)})}data(t,n){if(typeof t=="string"&&t.indexOf("-")!=-1)throw new Error(`Key "${t}" contains "-" (dash). Dashes are not allowed in property names. Use camelCase instead.`);if((typeof t=="string"||t===void 0)&&n===void 0){const r=Object.assign({},this.nodes[0].dataset);return Object.keys(r).forEach(i=>{if(r[i]?.startsWith("[")||r[i]?.startsWith("{"))try{r[i]=JSON.parse(r[i]??"")}catch{}}),typeof t=="string"?r[t]:r}else{let r={};return typeof t=="object"?r=t:typeof t=="string"&&(r[t]=n),this.nodes.forEach(i=>{Object.entries(r).forEach(([s,o])=>{o!=null?i.dataset[s]=o instanceof Object?JSON.stringify(o):o:delete i.dataset[s]})}),this}}removeData(t){const n=t.split(/[,\s]+/);return this.nodes.forEach(r=>{n.forEach(i=>{delete r.dataset[i]})}),this}show(){return this.toggle(!0)}hide(){return this.toggle(!1)}toggle(t){return this.nodes.forEach(n=>{const r=n.style.display,i=getComputedStyle(n).display,s=r=="none"||i=="none";if(s&&(t===void 0||t===!0)){const o=n instanceof HTMLTableRowElement?"table-row":n instanceof HTMLTableCellElement?"table-cell":"block";n.style.display=n._mQuery?.prevDisplay??(r==i&&i!="none"?"":o),this._save(n,"prevDisplay",null)}!s&&(t==null||t===!1)&&(i!="none"&&this._save(n,"prevDisplay",i),n.style.setProperty("display","none"))})}empty(){return this.html("")}html(t){return t instanceof HTMLElement?this.empty().append(t.innerHTML):this.prop("innerHTML",t)}text(t){return this.prop("textContent",t)}val(t){return this.prop("value",t)}}class Do{video;constructor(t){this.video=t}setSrcObject(t){this.video.addEventListener("loadedmetadata",n=>{n.target}),this.video.srcObject=t}captureWebCamera(){navigator.mediaDevices.getUserMedia({video:!0}).then(t=>{this.setSrcObject(t)})}static async videoMediaChangeSupport(){return new Promise(t=>{const n=document.createElement("iframe"),r=document.createElement("video"),i=document.createElement("source"),s=new MediaSource;s.addEventListener("sourceopen",()=>t(!0)),i.src=URL.createObjectURL(s),i.media="(min-width:10px)",r.append(i),n.width="5",n.style.cssText="position: absolute; visibility: hidden;",document.documentElement.append(n),n.contentDocument?.body.append(r),setTimeout(()=>{n.width="15"}),setTimeout(()=>{n.remove(),t(!1)},1e3)})}static tryAutoPlayOrAutoPlayAfterClick(t){return new Promise(n=>{t.play().then(()=>{t.autoplay=!0,n(!0)}).catch(()=>{Do.setAutoPlayWhenClick(t),n(!1)})})}static setAutoPlayWhenClick(t){function n(){t.autoplay=!0,t.play(),document.removeEventListener("click",n),document.removeEventListener("touchend",n)}document.addEventListener("click",n),document.addEventListener("touchend",n)}}const Rt={safeAreaTop:Lt.getCSSVar("--safe-area-inset-top"),safeAreaRight:Lt.getCSSVar("--safe-area-inset-right"),safeAreaBottom:Lt.getCSSVar("--safe-area-inset-bottom"),safeAreaLeft:Lt.getCSSVar("--safe-area-inset-left"),colorPrimary:Lt.getCSSVar("--color-primary")||"#5078f0",colorRed:Lt.getCSSVar("--color-red")||"#ff5050",colorOrange:Lt.getCSSVar("--color-orange")||"#fa8c00",colorYellow:Lt.getCSSVar("--color-yellow")||"#fadc32",colorGreen:Lt.getCSSVar("--color-green")||"#00c878",colorBlue:Lt.getCSSVar("--color-blue")||"#00b4fa",colorPurple:Lt.getCSSVar("--color-purple")||"#6464fa",colorBlack:Lt.getCSSVar("--color-black")||"#001428",colorGray0:Lt.getCSSVar("--color-gray-0")||"#000000",colorGray3:Lt.getCSSVar("--color-gray-3")||"#333333",colorGray6:Lt.getCSSVar("--color-gray-6")||"#666666",colorGray9:Lt.getCSSVar("--color-gray-9")||"#999999",colorGrayCC:Lt.getCSSVar("--color-gray-cc")||"#cccccc",colorGrayDD:Lt.getCSSVar("--color-gray-dd")||"#dddddd",colorGrayE6:Lt.getCSSVar("--color-gray-e6")||"#e6e6e6",colorGrayEE:Lt.getCSSVar("--color-gray-ee")||"#eeeeee",colorGrayEF:Lt.getCSSVar("--color-gray-ef")||"#efefef",colorGrayF5:Lt.getCSSVar("--color-gray-f5")||"#f5f5f5",colorGrayFF:Lt.getCSSVar("--color-gray-ff")||"#ffffff",fontLineHeight:Lt.getCSSVar("--font-line-height")||"1,4",fontSize32:Lt.getCSSVar("--font-size-32")||"32px",fontSize24:Lt.getCSSVar("--font-size-24")||"24px",fontSize20:Lt.getCSSVar("--font-size-20")||"20px",fontSize18:Lt.getCSSVar("--font-size-18")||"18px",fontSize16:Lt.getCSSVar("--font-size-16")||"16px",fontSize14:Lt.getCSSVar("--font-size-14")||"14px",fontSize12:Lt.getCSSVar("--font-size-12")||"12px",fontSize11:Lt.getCSSVar("--font-size-11")||"11px",gap4:Lt.getCSSVar("--gap-4")||"4px",gap8:Lt.getCSSVar("--gap-8")||"8px",gap12:Lt.getCSSVar("--gap-12")||"12px",gap16:Lt.getCSSVar("--gap-16")||"16px",gap20:Lt.getCSSVar("--gap-20")||"20px",gap40:Lt.getCSSVar("--gap-40")||"40px",height44:Lt.getCSSVar("--height-44")||"44px",height32:Lt.getCSSVar("--height-32")||"32px",borderRadius:Lt.getCSSVar("--border-radius")||"4px"},hp=()=>`#${Math.random().toString(16).slice(2,8).padEnd(6,"0")}`,Hc=function(e){return e[0]==="#"&&(e=e.slice(1)),parseInt(e,16)},fp=function(e,t=1){const n=e>>16&255,r=e>>8&255,i=e&255,s=t<0?0:t>1?1:t;return s===1?"rgb("+n+","+r+","+i+")":"rgba("+n+","+r+","+i+","+s+")"},dp=function(e,t=1){const n=Hc(e);return fp(n,t)};function ii(e,t){let n=parseInt(e.substring(1,3),16),r=parseInt(e.substring(3,5),16),i=parseInt(e.substring(5,7),16);n==0&&(n=32),r==0&&(r=32),i==0&&(i=32),n=n*(100+t)/100,r=r*(100+t)/100,i=i*(100+t)/100,n=n<255?n:255,r=r<255?r:255,i=i<255?i:255,n=Math.round(n),r=Math.round(r),i=Math.round(i);const s=n.toString(16).length==1?"0"+n.toString(16):n.toString(16),o=r.toString(16).length==1?"0"+r.toString(16):r.toString(16),a=i.toString(16).length==1?"0"+i.toString(16):i.toString(16);return"#"+s+o+a}(function(){let e=0;window.requestAnimationFrame||(window.requestAnimationFrame=function(t){const n=new Date().getTime(),r=Math.max(0,16-(n-e)),i=window.setTimeout(function(){t(n+r)},r);return e=n+r,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})})();const pp=e=>{let t=window.requestAnimationFrame(function n(r){t=window.requestAnimationFrame(n),e(r,t)});return()=>window.cancelAnimationFrame(t)};class mp{id=0;renders={};cancelFn;constructor(){}get length(){let t=0;for(let n in this.renders)t++;return t}register(t){const n=this.id++;this.renders[n]=t,this.run()}run(){this.cancelFn||(this.cancelFn=pp((t,n)=>{const r=[];for(let i in this.renders)this.renders[i](t)===!1&&r.push(parseInt(i));for(let i of r)delete this.renders[i];!this.length&&this.cancelFn&&(this.cancelFn(),this.cancelFn=void 0)}))}}const Re=new mp;let si;typeof self>"u"&&typeof process<"u"&&process.hrtime?si=function(){const e=process.hrtime();return e[0]*1e3+e[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?si=self.performance.now.bind(self.performance):Date.now!==void 0?si=Date.now:si=function(){return new Date().getTime()};const hr=si;class oi{static _nextId=0;static nextId(){return oi._nextId++}}const Qi={Linear:{None:function(e){return e}},Ease:{In:function(e){return Math.pow(e,1.7)}},Quadratic:{In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}},Cubic:{In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}},Quartic:{In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}},Quintic:{In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}},Sinusoidal:{In:function(e){return 1-Math.sin((1-e)*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return .5*(1-Math.sin(Math.PI*(.5-e)))}},Exponential:{In:function(e){return e===0?0:Math.pow(1024,e-1)},Out:function(e){return e===1?1:1-Math.pow(2,-10*e)},InOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)}},Circular:{In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}},Elastic:{In:function(e){return e===0?0:e===1?1:-Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI)},Out:function(e){return e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e-.1)*5*Math.PI)+1},InOut:function(e){return e===0?0:e===1?1:(e*=2,e<1?-.5*Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin((e-1.1)*5*Math.PI)+1)}},Back:{In:function(e){return e===1?1:e*e*((1.70158+1)*e-1.70158)},Out:function(e){return e===0?0:--e*e*((1.70158+1)*e+1.70158)+1},InOut:function(e){const t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)}},Bounce:{In:function(e){return 1-Qi.Bounce.Out(1-e)},Out:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},InOut:function(e){return e<.5?Qi.Bounce.In(e*2)*.5:Qi.Bounce.Out(e*2-1)*.5+.5}},generatePow:function(e=4){return e=e<Number.EPSILON?Number.EPSILON:e,e=e>1e4?1e4:e,{In:function(t){return t**e},Out:function(t){return 1-(1-t)**e},InOut:function(t){return t<.5?(t*2)**e/2:(1-(2-t*2)**e)/2+.5}}},random:function(e){return Math.random()},createStep:function(e){return function(t){return Math.floor(t*e)/e}},createNoisyEasing:function(e,t=.1){const n=1-t;return function(r){return t*Math.random()+n*e(r)}}},$o=Qi,ai={Utils:{Linear:function(e,t,n){return(t-e)*n+e},Factorial:function(){const e=[1];return function(t){let n=1;if(e[t])return e[t];for(let r=t;r>1;r--)n*=r;return e[t]=n,n}}(),Bernstein:function(e,t){const n=ai.Utils.Factorial;return n(e)/n(t)/n(e-t)},CatmullRom:function(e,t,n,r,i){const s=(n-e)*.5,o=(r-t)*.5,a=i*i,u=i*a;return(2*t-2*n+s+o)*u+(-3*t+3*n-2*s-o)*a+s*i+t}},Linear:function(e,t){const n=e.length-1,r=n*t,i=Math.floor(r),s=ai.Utils.Linear;return t<0?s(e[0],e[1],r):t>1?s(e[n],e[n-1],n-r):s(e[i],e[i+1>n?n:i+1],r-i)},Bezier:function(e,t){let n=0;const r=e.length-1,i=Math.pow,s=ai.Utils.Bernstein;for(let o=0;o<=r;o++)n+=i(1-t,r-o)*i(t,o)*e[o]*s(r,o);return n},CatmullRom:function(e,t){const n=e.length-1;let r=n*t,i=Math.floor(r);const s=ai.Utils.CatmullRom;return e[0]===e[n]?(t<0&&(i=Math.floor(r=n*(1+t))),s(e[(i-1+n)%n],e[i],e[(i+1)%n],e[(i+2)%n],r-i)):t<0?e[0]-(s(e[0],e[0],e[1],e[1],-r)-e[0]):t>1?e[n]-(s(e[n],e[n],e[n-1],e[n-1],r-n)-e[n]):s(e[i?i-1:0],e[i],e[n<i+1?n:i+1],e[n<i+2?n:i+2],r-i)}},zo=ai;class Uc{_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=hr(),n=!1){let r=Object.keys(this._tweens);if(r.length===0)return!1;for(;r.length>0;){this._tweensAddedDuringUpdate={};for(let i=0;i<r.length;i++){const s=this._tweens[r[i]],o=!n;s&&s.update(t,o)===!1&&!n&&delete this._tweens[r[i]]}r=Object.keys(this._tweensAddedDuringUpdate)}return!0}}const Be=new Uc;class gp{constructor(t,n=Be){this._object=t,this._group=n}_id=oi.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=$o.Linear.None;_interpolationFunction=zo.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,n){return this._valuesEnd=Object.create(t),n!==void 0&&(this._durationTime=n),this}duration(t=1e3){return this._durationTime=t,this}start(t=hr()){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(const n in this._valuesStartRepeat)this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n]}return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=t,this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this}_setupProperties(t,n,r,i){for(const s in r){const o=t[s],a=Array.isArray(o),u=a?"array":typeof o,d=!a&&Array.isArray(r[s]);if(!(u==="undefined"||u==="function")){if(d){let g=r[s];if(g.length===0)continue;g=g.map(this._handleRelativeValue.bind(this,o)),r[s]=[o].concat(g)}if((u==="object"||a)&&o&&!d){n[s]=a?[]:{};for(const g in o)n[s][g]=o[g];i[s]=a?[]:{},this._setupProperties(o,n[s],r[s],i[s])}else typeof n[s]>"u"&&(n[s]=o),a||(n[s]*=1),d?i[s]=r[s].slice().reverse():i[s]=n[s]||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=hr()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=t,this._group&&this._group.remove(this),this)}resume(t=hr()){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,n=this._chainedTweens.length;t<n;t++)this._chainedTweens[t].stop();return this}group(t=Be){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=$o.Linear.None){return this._easingFunction=t,this}interpolation(t=zo.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=hr(),n=!0){if(this._isPaused)return!0;let r,i;const s=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(t>s)return!1;n&&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(r in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[r]=="string"&&(this._valuesStartRepeat[r]=this._valuesStartRepeat[r]+parseFloat(this._valuesEnd[r])),this._yoyo&&this._swapEndStartRepeatValues(r),this._valuesStart[r]=this._valuesStartRepeat[r];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,u=this._chainedTweens.length;a<u;a++)this._chainedTweens[a].start(this._startTime+this._durationTime);return this._isPlaying=!1,!1}return!0}_updateProperties(t,n,r,i){for(const s in r){if(n[s]===void 0)continue;const o=n[s]||0;let a=r[s];const u=Array.isArray(t[s]),d=Array.isArray(a);!u&&d?t[s]=this._interpolationFunction(a,i):typeof a=="object"&&a?this._updateProperties(t[s],o,a,i):(a=this._handleRelativeValue(o,a),typeof a=="number"&&(t[s]=o+(a-o)*i))}}_handleRelativeValue(t,n){return typeof n!="string"?n:n.charAt(0)==="+"||n.charAt(0)==="-"?t+parseFloat(n):parseFloat(n)}_swapEndStartRepeatValues(t){const n=this._valuesStartRepeat[t],r=this._valuesEnd[t];typeof r=="string"?this._valuesStartRepeat[t]=this._valuesStartRepeat[t]+parseFloat(r):this._valuesStartRepeat[t]=r,this._valuesEnd[t]=n}}const vp=gp,yp=oi.nextId,_p=Be.getAll.bind(Be),xp=Be.removeAll.bind(Be),wp=Be.add.bind(Be),bp=Be.remove.bind(Be),Ep=Be.update.bind(Be),bt={now:hr,Sequence:oi,Easing:$o,Interpolation:zo,Group:Uc,Tween:vp,nextId:yp,getAll:_p,removeAll:xp,add:wp,remove:bp,update:Ep};function Wc(e){switch(e){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 Tp={attributeName:["display"],values:[["block","block"]]},Me={easeName:"linear",begin:0,dur:300,repeatCount:1,direction:"normal",fill:"freeze",keyTimes:[0,1]};class ve{currentAnimateName;objects=[];actions=[];constructor(){}hasObjects(){return this.objects.length>0}fromDOM(t){return Array.isArray(t)||(t=[t]),this.objects=[],t.forEach(n=>{const r=jc(n);this.objects.push({width:parseFloat(r.css("width")),height:parseFloat(r.css("height")),dom:r,el:n,originCSSObject:r.css()})}),this}toCSS(t,...n){if(!this.hasObjects())return;switch(this.currentAnimateName=t,this[t](...n),this.objects[0].dom?.parent().css({position:"relative",perspective:"1000px",overflow:"hidden"}),t){default:this.objects.forEach((s,o)=>{s.dom?.css({position:"absolute","z-index":String(1e3+o),"transform-style":"preserve-3d","backface-visibility":"hidden"})});break}let r=0;const i=()=>{this.actions.forEach((s,o)=>{const a=this.objects[s.objectIndex];let u=[],d=[];Array.isArray(s.attributeName)?(u=s.attributeName,d=s.values):s.attributeName&&(u=[s.attributeName],d=[s.values]);const g=s.keyTimes.length,v=ti(a.dom?.css("transform")??"");let y=s.begin;s.keyTimes.forEach((w,I)=>{const k={_matrix:v};u.forEach((A,B)=>{const M=d[B][s.direction=="reverse"?g-I-1:I];ve.setCSSObjectTransformUseMatrix(A,M,k)}),I==0?a.dom?.css(Object.assign(k,{transition:""})):(setTimeout(()=>{a.dom?.css(Object.assign(k,{transition:`all ${s.realKeyTimes[I]}ms cubic-bezier(${s.keySplines[I-1].join(",")})`}))},y),y+=s.realKeyTimes[I])}),setTimeout(()=>{s.fill==="remove"&&a.dom?.css(a.originCSSObject??{}),o==this.actions.length-1&&(typeof s.repeatCount=="number"&&++r<s.repeatCount||s.repeatCount=="infinite")&&requestAnimationFrame(()=>{this.currentAnimateName===t&&i()})},s.begin+s.dur)})};i()}static isRunningGlobalTween=!1;static runGlobalTween(t){ve.isRunningGlobalTween||Re.register(()=>(ve.isRunningGlobalTween=bt.update(t?.()),ve.isRunningGlobalTween))}static toTween(t,n,r){const i=r?.onUpdate??(()=>{}),s=r?.onStart??(()=>{}),o=r?.onComplete??(()=>{}),a=r?.duration??1e3,u=r?.delay??0,d=r?.easeFunction??bt.Easing.Linear.None,g=r?.repeat??0,v=r?.yoyo??!1,y=new bt.Tween(t).to(n,a).delay(u).easing(d).repeat(g).yoyo(v).onStart(s).onUpdate(function(w,I){i(w,I)}).onComplete(o);return r?.interpolationFunction&&y.interpolation(r.interpolationFunction),{tween:y,startAuto:w=>{y.start(w?.()),Re.register(()=>{const I=y.update(w?.());if(r?.precision){let k=!0;for(let A in t)fo(t[A],n[A],r.precision)||(k=!1);return k?!1:I}return I})}}}static toTweenCSS(t,n,r,i){const s=jc(t);s?.parent().css({overflow:"hidden","transform-style":"preserve-3d",perspective:"1000px","backface-visibility":"hidden"});const o={_matrix:ti(s?.css("transform")??"")},a=i?.onUpdate??(()=>{});return ve.toTween(n,r,Object.assign(i??{},{onUpdate:(u,d)=>{for(let g in u)ve.setCSSObjectTransformUseMatrix(g,u[g],o);t.style.transform=o.transform,a(u,d)}}))}static setCSSObjectTransformUseMatrix(t,n,r={}){switch(t){case"translate":r._matrix.translate(n[0]??0,n[1]??0);break;case"translateTo":r._matrix.translateTo(n[0]??0,n[1]??0);break;case"translateX":r._matrix.translateX(n??0);break;case"translateXTo":r._matrix.translateXTo(n??0);break;case"translateY":r._matrix.translateY(n??0);break;case"translateYTo":r._matrix.translateYTo(n??0);break;case"translateZ":r._matrix.translateZ(n??0);break;case"translateZTo":r._matrix.translateZTo(n??0);break;case"translate3d":r._matrix.translate3d(n[0]??0,n[1]??0,n[2]??0);break;case"translate3dTo":r._matrix.translate3dTo(n[0]??0,n[1]??0,n[2]??0);break;case"rotate":typeof n=="number"?r._matrix.rotate(n??0):r._matrix.rotate(n[0]??0,n[1]??0,n[2]??0);break;case"rotateTo":typeof n=="number"?r._matrix.rotateTo(n??0):r._matrix.rotateTo(n[0]??0,n[1]??0,n[2]??0);break;case"rotateX":r._matrix.rotateX(n??0);break;case"rotateXTo":r._matrix.rotateXTo(n??0);break;case"rotateY":r._matrix.rotateY(n??0);break;case"rotateYTo":r._matrix.rotateYTo(n??0);break;case"rotateZ":r._matrix.rotateZ(n??0);break;case"rotateZTo":r._matrix.rotateZTo(n??0);break;case"rotate3d":r._matrix.rotate3d(n[0]??0,n[1]??0,n[2]??0);break;case"rotate3dTo":r._matrix.rotate3dTo(n[0]??0,n[1]??0,n[2]??0);break;case"scale":typeof n=="number"?r._matrix.scale(n??1):r._matrix.scale(n[0]??1,n[1]??1,n[2]??0,n[3]??0);break;case"scaleTo":typeof n=="number"?r._matrix.scaleTo(n??1):r._matrix.scaleTo(n[0]??1,n[1]??1,n[2]??0,n[3]??0);break;case"scaleX":r._matrix.scaleX(n??1);break;case"scaleXTo":r._matrix.scaleXTo(n??1);break;case"scaleY":r._matrix.scaleY(n??1);break;case"scaleYTo":r._matrix.scaleYTo(n??1);break;case"scaleZ":r._matrix.scaleZ(n??1);break;case"scaleZTo":r._matrix.scaleZTo(n??1);break;case"scale3d":r._matrix.scale3d(n??1);break;case"scale3dTo":r._matrix.scale3dTo(n??1);break;case"skew":typeof n=="number"?r._matrix.skew(n??0):r._matrix.skew(n[0]??0,n[1]??0);break;case"skewTo":typeof n=="number"?r._matrix.skewTo(n??0):r._matrix.skewTo(n[0]??0,n[1]??0);break;case"skewX":r._matrix.skewX(n??0);break;case"skewXTo":r._matrix.skewXTo(n??1);break;case"skewY":r._matrix.skewY(n??0);break;case"skewYTo":r._matrix.skewYTo(n??1);break;case"skewZ":case"skewZTo":case"skew3d":case"skew3dTo":break;default:Object.assign(r,{[t]:`${n??""}`});break}return Object.assign(r,{transform:r._matrix.toString()}),r}_addAction(t,n=!1){return this.actions=n?[]:this.actions,Array.isArray(t)||(t=[t]),t.forEach(r=>{this.actions.push(Object.assign(r,{realKeyTimes:r.keyTimes.map(i=>r.dur*i)}))}),this}_addAnimate(t=Tp,n=Me,r=0,i=!1){const s=n.keyTimes??[0,1],o=[];return s.forEach((a,u)=>{u>0&&o.push(Wc(n.easeName??"linear"))}),this._addAction({objectIndex:r,attributeName:t.attributeName,values:t.values,begin:n.begin??0,dur:n.dur??300,keyTimes:s,keySplines:o,repeatCount:n.repeatCount??1,direction:n.direction??"normal",fill:n.fill??"freeze"},i),this}_predefinedAnimate(t,n,r,i,s=Me,o=this.objects.length-1){let a=!0,u=!1,d=!1,g=!1;const v=this.objects.length;o=(o+v)%v;const y=(o-1+v)%v,w=(o+1+v)%v,I=this.objects[o],k=this.objects[y],A=this.objects[w];if(k&&y!==o){const B=t(k);B&&(this._addAnimate(B,s,y,a),a=!1,u=!0)}if(I){const B=n(I);B&&(this._addAnimate(B,s,o,a),a=!1,d=!0)}if(A&&w!==o){const B=r(A);B&&(this._addAnimate(B,s,w,a),a=!1,g=!0)}this.objects.forEach((B,M)=>{if(!(M==y&&u||M==o&&d||M==w&&g)){const N=i(B);N&&(this._addAnimate(N,s,M,a),a=!1)}})}flip(t=Me,n=this.objects.length-1){const r=n-1,i=this.objects[r],s=this.objects[n],o=ti(s.dom?.css("transform")??""),a=o.clone();i.dom?.show(),i.dom?.css("opacity","1");const u=i.el?.getBoundingClientRect();i.dom?.css("opacity","0"),s.dom?.show(),s.dom?.css("opacity","1");const d=s.el?.getBoundingClientRect(),g=i.dom?.css("background-color"),v=s.dom?.css("background-color");a.translate((u?.left??0)-(d?.left??0),(u?.top??0)-(d?.top??0)),a.scale((u?.width??1)/(d?.width??1),(u?.height??1)/(d?.height??1));const y={transform:a.toString(),transition:""};g&&Object.assign(y,{"background-color":g}),s.dom?.css(y);const w={transform:o.toString(),transition:`all ${t.dur}ms cubic-bezier(${Wc(t.easeName??"linear").join(",")})`};v&&Object.assign(w,{"background-color":v}),setTimeout(()=>{s.dom?.css(w)},t.begin)}slideLeft(t=Me,n=this.objects.length-1){this._predefinedAnimate(r=>({attributeName:["translateTo"],values:[[[0,0],[-r.width,0]]]}),r=>({attributeName:["opacity","translateTo"],values:[[1,1],[[r.width,0],[0,0]]]}),r=>{},r=>({attributeName:["translateTo"],values:[[[-r.width,0],[-r.width,0]]]}),t,n)}slideRight(t=Me,n=this.objects.length-1){this._predefinedAnimate(r=>{},r=>({attributeName:["opacity","translateTo"],values:[[1,1],[[-r.width,0],[0,0]]]}),r=>({attributeName:["translateTo"],values:[[[0,0],[r.width,0]]]}),r=>({attributeName:["translateTo"],values:[[[r.width,0],[r.width,0]]]}),t,n)}slideDown(t=Me,n=this.objects.length-1){this._predefinedAnimate(r=>({attributeName:["translateTo"],values:[[[0,0],[0,r.height]]]}),r=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,-r.height],[0,0]]]}),r=>{},r=>({attributeName:["translateTo"],values:[[[0,r.height],[0,r.height]]]}),t,n)}slideUp(t=Me,n=this.objects.length-1){this._predefinedAnimate(r=>({attributeName:["translateTo"],values:[[[0,0],[0,-r.height]]]}),r=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,r.height],[0,0]]]}),r=>{},r=>({attributeName:["translateTo"],values:[[[0,-r.height],[0,-r.height]]]}),t,n)}flipLeft(t=Me,n=this.objects.length-1){this._predefinedAnimate(r=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,180]]}),r=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[-180,0]]}),r=>{},r=>({attributeName:["opacity"],values:[[0,0]]}),t,n)}flipRight(t=Me,n=this.objects.length-1){this._predefinedAnimate(r=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,-180]]}),r=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[180,0]]}),r=>{},r=>({attributeName:["opacity"],values:[[0,0]]}),t,n)}flipDown(t=Me,n=this.objects.length-1){this._predefinedAnimate(r=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,-180]]}),r=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[180,0]]}),r=>{},r=>({attributeName:["opacity"],values:[[0,0]]}),t,n)}flipUp(t=Me,n=this.objects.length-1){this._predefinedAnimate(r=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,180]]}),r=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[-180,0]]}),r=>{},r=>({attributeName:["opacity"],values:[[0,0]]}),t,n)}popIn(t=Me,n=this.objects.length-1){this._predefinedAnimate(r=>{},r=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[.8,1],[0,1]]}),r=>{},r=>({attributeName:["opacity"],values:[[0,0]]}),t,n)}popOut(t=Me,n=this.objects.length-1){this._predefinedAnimate(r=>{},r=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[1,1.2],[1,0]]}),r=>{},r=>({attributeName:["opacity"],values:[[0,0]]}),t,n)}rotate(t=Me,n=this.objects.length-1){Object.assign(t,{keyTimes:[0,1]});const r=t.degree??360;this._predefinedAnimate(i=>{},i=>({attributeName:["opacity","rotate"],values:[[1,1],[0,r]]}),i=>{},i=>({attributeName:["opacity"],values:[[0,0]]}),t,n)}}class fr extends tn{app;rotate;scale;isMouseDownInBounds=!1;removeCaptureMove;constructor(t,n){super({x:0,y:0,...n}),this.rotate=n?.rotate??0,this.scale=n?.scale??1,this.app=t,this.removeCaptureMove=this.app.captureMove({start:r=>{this.isMouseDownInBounds=this.app.ctx?.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y)||this.getBoundRect().isContainPoint(this.app.mousePoint)},end:r=>{this.isMouseDownInBounds=!1},move:r=>{}})}destroy(){this.removeCaptureMove()}draw(t){if(this.app.ctx){if(this.app.ctx.save(),t?.followMouseMove&&(!fo(this.x,this.app.mousePoint.x,5)||!fo(this.y,this.app.mousePoint.y,5))&&(this.rotate=this.angleTo(this.app.mousePoint),this.followTo(this.app.mousePoint)),t?.dragMouseMove){if(this.app.container.style.cursor="grab",this.isMouseDownInBounds){this.app.container.style.cursor="grabbing",this.x=this.app.mousePoint.x,this.y=this.app.mousePoint.y;const n=this.getBoundRect();n.width&&n.height&&!this.radius&&(this.x-=this.getBoundRect().width/2,this.y-=this.getBoundRect().height/2)}}else this.app.container.style.cursor="default";t?.dragFreeEaseTo&&(this.isMouseDownInBounds||this.nextFrameEaseTo(new tn({x:t.dragFreeEaseTo.targetX,y:t.dragFreeEaseTo.targetY}),{easing:t.dragFreeEaseTo?.easing??.05})),t?.extra?.(),this.app.ctx?.translate(this.x,this.y),this.app.ctx?.rotate(this.rotate),this.app.ctx?.scale(this.scale,this.scale),t?.shape(),this.app.ctx.lineWidth>0&&this.app.ctx.stroke(),this.app.ctx?.restore()}}}class Cp extends fr{constructor(t,n){super(t,n)}draw(t){super.draw({...t,extra:()=>{this.app.ctx&&(this.app.ctx.lineWidth=2,this.app.ctx.fillStyle="#ffff00",t?.extra?.())},shape:()=>{this.app.ctx&&(this.app.ctx.beginPath(),this.app.ctx.moveTo(-50,-25),this.app.ctx.lineTo(0,-25),this.app.ctx.lineTo(0,-50),this.app.ctx.lineTo(50,0),this.app.ctx.lineTo(0,50),this.app.ctx.lineTo(0,25),this.app.ctx.lineTo(-50,25),this.app.ctx.lineTo(-50,-25),this.app.ctx.closePath(),this.app.ctx.fill())}})}}class dr extends fr{radius;constructor(t,n){super(t,n),this.radius=n?.radius??40}draw(t){super.draw({...t,extra:()=>{this.app.ctx&&(this.app.ctx.lineWidth=1,this.app.ctx.fillStyle="#ff0000",t?.extra?.())},shape:()=>{this.app.ctx&&(this.app.ctx.beginPath(),this.app.ctx.arc(0,0,this.radius,0,Math.PI*2,!0),this.app.ctx.closePath(),this.app.ctx.fill())}})}}class Ye extends fr{toX;toY;c1x;c1y;c2x;c2y;constructor(t,n){super(t,n),this.toX=n?.toX??0,this.toY=n?.toY??0,this.c1x=n?.c1x??0,this.c1y=n?.c1y??0,this.c2x=n?.c2x??0,this.c2y=n?.c2y??0}getBoundRect(){if(this.rotate===0){const t=Math.min(this.x,this.toX),n=Math.min(this.y,this.toY),r=Math.max(this.x,this.toX),i=Math.max(this.y,this.toY);return new Wi({x:t,y:n,width:r-t,height:i-n})}else{const t=Math.sin(this.rotate),n=Math.cos(this.rotate),r=n*this.x-t*this.y,i=n*this.toX-t*this.toY,s=n*this.y+t*this.x,o=n*this.toY+t*this.toX;return new Wi({x:Math.min(r,i),y:Math.min(s,o),width:Math.max(r,i)-Math.min(r,i),height:Math.max(s,o)-Math.min(s,o)})}}draw(t){super.draw({...t,extra:()=>{this.app.ctx&&(this.app.ctx.lineWidth=1,this.app.ctx.strokeStyle="#eeeeee",t?.extra?.())},shape:()=>{this.app.ctx&&(this.app.ctx.beginPath(),this.app.ctx.moveTo(0,0),this.app.ctx.lineTo(this.toX-this.x,this.toY-this.y))}})}drawQuadratic(t){super.draw({...t,extra:()=>{this.app.ctx&&(this.app.ctx.lineWidth=1,this.app.ctx.strokeStyle="#eeeeee",t?.extra?.())},shape:()=>{this.app.ctx&&(this.app.ctx.beginPath(),this.app.ctx.moveTo(0,0),this.app.ctx.quadraticCurveTo(this.c1x-this.x,this.c1y-this.y,this.toX-this.x,this.toY-this.y))}})}drawQuadraticThrough(t){super.draw({...t,extra:()=>{this.app.ctx&&(this.app.ctx.lineWidth=1,this.app.ctx.strokeStyle="#eeeeee",t?.extra?.())},shape:()=>{if(!this.app.ctx)return;this.app.ctx.beginPath(),this.app.ctx.moveTo(0,0);const n=this.c1x*2-(this.x+this.toX)/2,r=this.c1y*2-(this.y+this.toY)/2;this.app.ctx.quadraticCurveTo(n-this.x,r-this.y,this.toX-this.x,this.toY-this.y)}})}drawQuadraticThroughCurve(t,n){super.draw({...n,extra:()=>{this.app.ctx&&(this.app.ctx.lineWidth=1,this.app.ctx.strokeStyle="#eeeeee",n?.extra?.())},shape:()=>{if(!this.app.ctx)return;const r=t.length;if(r<3)return new Error("points length must >= 3");const i=(t[0].x+t[r-1].x)/2,s=(t[0].y+t[r-1].y)/2;this.app.ctx.beginPath(),this.app.ctx.moveTo(i,s);let o=0;for(;o<r-1;o++){const a=(t[o].x+t[o+1].x)/2,u=(t[o].y+t[o+1].y)/2;this.app.ctx.quadraticCurveTo(t[o].x-this.x,t[o].y-this.y,a-this.x,u-this.y)}this.app.ctx.quadraticCurveTo(t[o].x-this.x,t[o].y-this.y,i-this.x,s-this.y)}})}drawQuadraticThroughCurveNotGood(t,n){super.draw({...n,extra:()=>{this.app.ctx&&(this.app.ctx.lineWidth=1,this.app.ctx.strokeStyle="#eeeeee",n?.extra?.())},shape:()=>{if(!this.app.ctx)return;const r=t.length;if(r<3)return new Error("points length must >= 3");this.app.ctx.beginPath(),this.app.ctx.moveTo(t[0].x,t[0].y);let i=1;for(;i<r-2;i++){const s=(t[i].x+t[i+1].x)/2,o=(t[i].y+t[i+1].y)/2;this.app.ctx.quadraticCurveTo(t[i].x-this.x,t[i].y-this.y,s-this.x,o-this.y)}this.app.ctx.quadraticCurveTo(t[i].x-this.x,t[i].y-this.y,t[i+1].x-this.x,t[i+1].y-this.y)}})}}class Bo extends fr{width;height;borderRadius;rect;constructor(t,n){return super(t,n),this.width=n?.width??50,this.height=n?.height??50,this.borderRadius=n?.borderRadius??0,this.rect=new Wi({x:this.x,y:this.y,width:this.width,height:this.height}),new Proxy(this,{get:(i,s,o)=>Reflect.get(i,s,o),set:(i,s,o,a)=>{switch(s){case"x":case"y":case"width":case"height":this.rect[s]=o;break}return Reflect.set(i,s,o,a)}})}getBoundRect(){return this.rect}draw(t){super.draw({...t,extra:()=>{this.app.ctx&&(this.app.ctx.lineWidth=1,this.app.ctx.fillStyle="#ff0000",t?.extra?.())},shape:()=>{this.app.ctx&&(this.app.ctx.beginPath(),this.borderRadius<=0?this.app.ctx.rect(0,0,this.width,this.height):(this.app.ctx.moveTo(0,0+this.borderRadius),this.app.ctx.lineTo(0,0+this.height-this.borderRadius),this.app.ctx.quadraticCurveTo(0,0+this.height,0+this.borderRadius,0+this.height),this.app.ctx.lineTo(0+this.width-this.borderRadius,0+this.height),this.app.ctx.quadraticCurveTo(0+this.width,0+this.height,0+this.width,0+this.height-this.borderRadius),this.app.ctx.lineTo(0+this.width,0+this.borderRadius),this.app.ctx.quadraticCurveTo(0+this.width,0,0+this.width-this.borderRadius,0),this.app.ctx.lineTo(0+this.borderRadius,0),this.app.ctx.quadraticCurveTo(0,0,0,0+this.borderRadius)),this.app.ctx.closePath(),this.app.ctx.fill())}})}}class Sp extends fr{constructor(t,n){super(t,n)}draw(t){super.draw({...t,extra:()=>{this.app.ctx&&(this.app.ctx.lineWidth=0,this.app.ctx.fillStyle="rgb(200,80,80)",t?.extra?.())},shape:()=>{this.app.ctx&&(this.app.ctx.beginPath(),this.app.ctx.moveTo(4,24),this.app.ctx.lineTo(8,16),this.app.ctx.lineTo(14,10),this.app.ctx.lineTo(15,0),this.app.ctx.lineTo(9,-10),this.app.ctx.lineTo(2,0),this.app.ctx.lineTo(-2,0),this.app.ctx.lineTo(-9,-10),this.app.ctx.lineTo(-15,0),this.app.ctx.lineTo(-14,10),this.app.ctx.lineTo(-8,16),this.app.ctx.lineTo(-4,24),this.app.ctx.closePath(),this.app.ctx.fill())}})}}class qc extends fr{constructor(t,n){super(t,n)}draw(t){super.draw({...t,extra:()=>{this.app.ctx&&(this.app.ctx.lineWidth=0,this.app.ctx.fillStyle="rgb(150,150,150)",t?.extra?.())},shape:()=>{this.app.ctx&&(this.app.ctx.beginPath(),this.app.ctx.moveTo(0,0),this.app.ctx.bezierCurveTo(15,0,15,-40,5,-30),this.app.ctx.lineTo(0,0),this.app.ctx.bezierCurveTo(-15,0,-15,-40,-5,-30),this.app.ctx.lineTo(0,0),this.app.ctx.fill(),this.app.ctx.beginPath(),this.app.ctx.arc(0,0,15,0,Math.PI*2,!0),this.app.ctx.fill())}})}}class kp{map;constructor(t,n=120.619585,r=31.299379,i=18){this.map=new T.Map(t),this.map.centerAndZoom(new T.LngLat(n,r),i)}}const Pp=$t({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:Rt.colorPrimary}},setup(e){const t=e;return(n,r)=>(dt(),vt("span",{class:"icon",style:Tt(["color: "+n.color])},[Nt(Zt(id),{icon:t.icon,color:n.color},null,8,["icon","color"])],4))}}),_g="",Gt=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},Xn=Gt(Pp,[["__scopeId","data-v-8789b4ce"]]),Ip=$t({customOptions:{},inheritAttrs:!0,__name:"Button",props:{label:{},icon:{},iconPosition:{default:"left"},isDisabled:{type:Boolean,default:!1},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"14px"},borderRadius:{default:"4px"},stylePattern:{default:"fullfilled"},borderColor:{},bgColor:{},fontColor:{}},emits:["ceClick","click"],setup(e,{expose:t,emit:n}){const r=e,i=n,s=xt(),o=xt(r.borderColor),a=xt(r.bgColor),u=xt(r.fontColor),d=xt(r.borderColor),g=xt(r.bgColor);function v(M){switch(M){case"outline":o.value=r.borderColor??Rt.colorPrimary,a.value=r.bgColor??Rt.colorGrayFF,u.value=r.fontColor??Rt.colorPrimary,d.value=o.value,g.value=a.value;break;default:o.value=r.borderColor??Rt.colorPrimary,a.value=r.bgColor??Rt.colorPrimary,u.value=r.fontColor??Rt.colorGrayFF,d.value=o.value,g.value=a.value;break}}te(()=>r.stylePattern,()=>{v(r.stylePattern)},{immediate:!0});const y=xt(r.isDisabled?"0.6":"1"),w=xt(r.isDisabled?"not-allowed":"pointer");let I=!1;const k=()=>{r.isDisabled||(I=!0,o.value=ii(d.value,10),a.value=ii(g.value,10))},A=()=>{r.isDisabled||(I=!1,o.value=d.value,a.value=g.value)},B=()=>{r.isDisabled||(o.value=ii(d.value,-10),a.value=ii(g.value,-10),setTimeout(()=>{I?k():A()},150),i("ceClick"),i("click"))};return t({wrapper:s}),(M,N)=>(dt(),vt("div",{ref_key:"wrapper",ref:s,class:"button",style:Tt([`opacity: ${y.value}`,`border: 1px solid ${o.value}`,`background-color: ${a.value}`,`color: ${u.value}`,`border-radius: ${r.borderRadius}`,`height: ${r.height}`,`line-height: ${r.height}`,`font-size: ${r.fontSize}`,`cursor: ${w.value}`,"user-select: none"]),onMouseover:k,onMouseleave:A,onClick:B},[ot("label",{class:"label truncate",style:Tt({padding:"0 "+M.padding,cursor:w.value})},[re(M.$slots,"default",{},()=>[M.icon&&M.iconPosition==="left"?(dt(),ge(Xn,{key:0,icon:M.icon,color:u.value,style:Tt({marginRight:Zt(Rt).gap4,cursor:w.value})},null,8,["icon","color","style"])):ue("",!0),ot("span",{style:Tt({cursor:w.value})},Qt(M.label),5),M.icon&&M.iconPosition==="right"?(dt(),ge(Xn,{key:1,icon:M.icon,color:u.value,style:Tt({marginLeft:Zt(Rt).gap4,cursor:w.value})},null,8,["icon","color","style"])):ue("",!0)],!0)],4)],36))}}),xg="",Kt=Gt(Ip,[["__scopeId","data-v-a04d6936"]]),wg="",Mp={class:"content-relative",style:{position:"relative",width:"100%",height:"100%"}},Np=$t({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean},bgColor:{default:dp(Rt.colorGray0,.25)},isGlobal:{type:Boolean,default:!0}},setup(e,{expose:t,emit:n}){const r=e;function i(s){s?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow="",document.body.style.overflow="")}return te(()=>r.visible,()=>{i(r.visible)},{immediate:!0}),t({}),(s,o)=>r.visible?(dt(),vt("div",{key:0,class:"overlay",style:Tt([{"z-index":"2000",inset:"0"},[`position: ${r.isGlobal?"fixed":"absolute"};`,"background-color: "+r.bgColor]])},[ot("div",{class:"content-fixed",style:Tt([{"z-index":"2001",inset:"0","overflow-y":"auto"},[`position: ${r.isGlobal?"fixed":"absolute"};`]])},[ot("div",Mp,[re(s.$slots,"default",{},void 0,!0)])],4)],4)):ue("",!0)}}),bg="",li=Gt(Np,[["__scopeId","data-v-f08aab15"]]),Ap=$t({customOptions:{Overlay:li},inheritAttrs:!0,__name:"Pop",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},openDurTime:{default:200},closeDurTime:{default:150},isGlobal:{type:Boolean,default:!0}},emits:["open","close"],setup(e,{expose:t,emit:n}){const r=e,i=n,s=xt();let o;const a=Je({}),u=Je({});te(()=>r.directionFrom,()=>{switch(r.directionFrom){case"absolute":o="",a.display="block";break;case"top":o="slideDown",a.display="block",u.width="100%",u.top="0",u.left="0";break;case"left":o="slideRight",a.display="block",u.height="100%",u.top="0",u.left="0";break;case"right":o="slideLeft",a.display="block",u.height="100%",u.top="0",u.right="0";break;case"bottom":o="slideUp",a.display="block",u.width="100%",u.bottom="0",u.left="0";break;case"center":default:o="popIn",a.display="flex",a.justifyContent="center",a.alignItems="center";break}},{immediate:!0});const d=new ve,g=(k=!0)=>{o&&(k?te(s,()=>{s.value&&(d.fromDOM(s.value),d.toCSS(o,{easeName:"ease",dur:r.openDurTime}))},{once:!0}):d.toCSS(o,{easeName:"ease",dur:r.closeDurTime,direction:"reverse"}))},v=xt(!1);function y(k){k.target.contains(s.value)&&r.closeWhenClickOverlay&&I()}function w(){v.value=!0,g(!0),i("open")}function I(){g(!1),i("close"),setTimeout(()=>{v.value=!1},r.closeDurTime)}return t({open:w,close:I}),(k,A)=>(dt(),ge(li,{visible:v.value,isGlobal:r.isGlobal},{default:Yt(()=>[ot("div",{class:"pop-parent",style:Tt([{position:"relative",width:"100%",height:"100%"},a]),onClick:y},[ot("div",{ref_key:"pop",ref:s,class:"pop",style:Tt([{position:"absolute"},u])},[re(k.$slots,"default",{},void 0,!0)],4)],4)]),_:3},8,["visible","isGlobal"]))}}),Eg="",Xe=Gt(Ap,[["__scopeId","data-v-88fef783"]]),Op={id:"page"},Lp={id:"main"},Rp={style:{height:"100%","background-color":"#ffffff"}},Fp={style:{height:"100%","background-color":"#ffffff"}},Dp=$t({customOptions:{Pop:Xe},inheritAttrs:!0,__name:"MobileLayout",props:{designWidth:{default:750}},setup(e,{expose:t,emit:n}){Pd(e.designWidth);const i=xt(),s=xt(),o=xt(),a=xt();return t({openLeft:()=>{i.value?.open()},closeLeft:()=>{i.value?.close()},openRight:()=>{s.value?.open()},closeRight:()=>{s.value?.close()}}),(y,w)=>(dt(),vt("div",Op,[ot("header",{id:"header",ref_key:"refHeader",ref:o},[re(y.$slots,"header",{},void 0,!0)],512),ot("div",Lp,[ot("div",null,[re(y.$slots,"main",{},void 0,!0)])]),ot("footer",{id:"footer",ref_key:"refFooter",ref:a},[re(y.$slots,"footer",{},void 0,!0)],512),Nt(Xe,{ref_key:"popLeftRef",ref:i,"direction-from":"left",isGlobal:!1},{default:Yt(()=>[ot("div",Rp,[re(y.$slots,"left",{},void 0,!0)])]),_:3},512),Nt(Xe,{ref_key:"popRightRef",ref:s,"direction-from":"right",isGlobal:!1},{default:Yt(()=>[ot("div",Fp,[re(y.$slots,"right",{},void 0,!0)])]),_:3},512)]))}}),Tg="",$p=Gt(Dp,[["__scopeId","data-v-28420fc3"]]),zp={class:"dialog-wrap"},Bp={class:"dialog"},Gp={key:0,class:"title"},Vp={key:0,class:"title-inner truncate"},jp={class:"custom-content"},Hp={key:1,class:"btns"},Up=$t({customOptions:{Overlay:li,Pop:Xe,Icon:Xn,Button:Kt},inheritAttrs:!0,__name:"Dialog",props:{title:{default:"通知"},content:{default:"..."},showTitle:{type:Boolean,default:!0},showClose:{type:Boolean,default:!1},showCancel:{type:Boolean,default:!1},showConfirm:{type:Boolean,default:!0},closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close","cancel","confirm"],setup(e,{expose:t,emit:n}){const r=e,i=n,s=xt();function o(){s.value.open(),i("open")}function a(){s.value.close(),i("close")}function u(){a(),i("cancel")}function d(){a(),i("confirm")}return t({open:o,close:a}),(g,v)=>(dt(),ge(Xe,{ref_key:"popRef",ref:s,directionFrom:"center",closeWhenClickOverlay:r.closeWhenClickOverlay,openDurTime:r.openDurTime,closeDurTime:r.closeDurTime},{default:Yt(()=>[ot("div",zp,[ot("div",Bp,[g.showTitle||g.showClose?(dt(),vt("div",Gp,[g.showTitle?(dt(),vt("div",Vp,Qt(g.title),1)):ue("",!0),g.showClose?(dt(),ge(Xn,{key:1,class:"close",icon:"ic:baseline-close",color:Zt(Rt).colorGrayCC,onClick:a},null,8,["color"])):ue("",!0)])):ue("",!0),ot("div",jp,[re(g.$slots,"default",{},()=>[ee(Qt(g.content),1)],!0)]),g.showCancel||g.showConfirm?(dt(),vt("div",Hp,[g.showCancel?(dt(),ge(Kt,{key:0,onClick:u,class:"btn",bgColor:Zt(Rt).colorGrayE6,borderColor:Zt(Rt).colorGrayE6,fontColor:Zt(Rt).colorGray3,borderRadius:"0"},{default:Yt(()=>[ee(" 取消 ")]),_:1},8,["bgColor","borderColor","fontColor"])):ue("",!0),g.showConfirm?(dt(),ge(Kt,{key:1,onClick:d,class:"btn",borderRadius:"0"},{default:Yt(()=>[ee(" 确定 ")]),_:1})):ue("",!0)])):ue("",!0)])])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),Cg="",Go=Gt(Up,[["__scopeId","data-v-002ae342"]]),Wp=$t({__name:"SVGLoading",props:{width:{default:"4em"},color:{default:Rt.colorPrimary}},setup(e){const t=e;return(n,r)=>(dt(),vt("svg",{viewBox:"25 25 50 50",style:Tt(["width: "+t.width])},[ot("circle",{cx:"50",cy:"50",r:"20",style:Tt(["stroke: "+t.color])},null,4)],4))}}),Sg="",Yc=Gt(Wp,[["__scopeId","data-v-29f8de14"]]),qp={class:"loading"},Yp={class:"icon"},Xp={key:0,class:"content"},Kp=$t({customOptions:{Overlay:li,Pop:Xe,Dialog:Go,SVGLoading:Yc},inheritAttrs:!0,__name:"DialogLoading",props:{content:{},closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(e,{expose:t,emit:n}){const r=e,i=n,s=xt();function o(){s.value.open(),i("open")}function a(){s.value.close(),i("close")}return t({open:o,close:a}),(u,d)=>(dt(),ge(Go,{ref_key:"dialogRef",ref:s,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:r.closeWhenClickOverlay,openDurTime:r.openDurTime,closeDurTime:r.closeDurTime},{default:Yt(()=>[ot("div",qp,[ot("div",Yp,[re(u.$slots,"default",{},()=>[Nt(Yc)],!0)]),u.content?(dt(),vt("div",Xp,Qt(u.content),1)):ue("",!0)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),kg="",Zp=Gt(Kp,[["__scopeId","data-v-d2aea832"]]),Qp=["onClick","value"],Jp=$t({customOptions:{Icon:Xn,Button:Kt},__name:"Select",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(e,{emit:t}){const n=e,r=t,i=function(){return{"--select-option-bg-color":Rt.colorGrayFF,"--select-option-bg-color-hover":Rt.colorGrayF5}},s=xt(!1),o=xt(n.initIndex);te(o,function(){r("change",n.options[o.value])});function a(){s.value=!s.value}function u(d){o.value=d,s.value=!1}return(d,g)=>(dt(),vt("div",{class:"wrap",style:Tt(["font-size:"+d.fontSize])},[ot("div",{onClick:a},[re(d.$slots,"button",{selectedIndex:o.value},()=>[Nt(Kt,{icon:"carbon:chevron-sort",iconPosition:"right",label:d.options[o.value],style:{width:"100%"}},null,8,["label"])],!0)]),Vs(ot("div",{class:"options",style:Tt({border:"1px solid "+Zt(Rt).colorGrayCC})},[(dt(!0),vt(le,null,Pe(d.options,(v,y)=>(dt(),vt("div",{onClick:w=>u(y),class:"option",key:y,value:y,style:Tt({borderTop:(y==0?"0":"1px")+" solid "+Zt(Rt).colorGrayCC})},[ot("div",{class:"option-inner",style:i},[re(d.$slots,"default",{item:v,index:y},()=>[ot("span",null,Qt(v),1),y==o.value?(dt(),ge(Xn,{key:0,icon:"mingcute:check-fill",class:"icon"})):ue("",!0)],!0)])],12,Qp))),128))],4),[[Oi,s.value]])],4))}}),Pg="",t0=Gt(Jp,[["__scopeId","data-v-3acefc25"]]),e0=$t({__name:"Switch",props:{init:{type:Boolean,default:!1},width:{default:"52px"},height:{default:"32px"},padding:{default:"4px"},colorPrimary:{default:Rt.colorPrimary},colorBgOn:{default:Rt.colorGrayEF},colorBgOff:{default:Rt.colorGrayF5}},emits:["change"],setup(e,{emit:t}){const n=e,r=Qr(n.width),i=Qr(n.height),s=Qr(n.padding),o=i.number-s.number*2+i.suffix,a=n.padding,u=r.number-Qr(a).number-Qr(o).number+r.suffix,d=t,g=xt(n.init);te(g,function(){d("change",g.value)});function v(){g.value=!g.value}return(y,w)=>(dt(),vt("div",{class:"switch",onClick:v,style:Tt(["width: "+n.width,"height: "+n.height,"background-color: "+(g.value?n.colorBgOn:n.colorBgOff)])},[ot("span",{class:"round",style:Tt(["width: "+o,"height: "+o,"background-color: "+(g.value?n.colorPrimary:Zt(ii)(n.colorPrimary,30)),"transform: translate("+(g.value?u:Zt(a))+", 0)"])},null,4)],4))}}),Ig="",n0=Gt(e0,[["__scopeId","data-v-8a5d8a64"]]),r0={class:"wrap"},i0=["onClick"],s0=["stroke","fill"],o0=["stroke","fill"],a0=["stroke"],l0=$t({customOptions:{},__name:"RadioGroup",props:{options:{},initIndexs:{},isRounded:{type:Boolean,default:!0},isFullfilled:{type:Boolean,default:!1},colorPath:{default:Rt.colorPrimary},colorBg:{default:Rt.colorGrayFF},colorBorder:{default:Rt.colorGrayCC},fontSize:{default:Rt.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(e,{emit:t}){const n=e,r=t;let i=xt(n.initIndexs??0);te(i,function(){r("change",n.options[i.value])});const s=function(o){i.value=o};return(o,a)=>(dt(),vt("div",r0,[(dt(!0),vt(le,null,Pe(o.options,(u,d)=>(dt(),vt("span",{class:"item",key:d,onClick:g=>s(d),style:Tt(["margin-left:"+(d>0?n.itemPadding:0)])},[re(o.$slots,"default",{label:u,index:d},()=>[(dt(),vt("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:Tt(["margin-right:"+n.labelPadding,"width:"+n.itemWidth])},[n.isRounded?ue("",!0):(dt(),vt("rect",{key:0,x:"0",y:"0",width:"22",height:"22",stroke:o.isFullfilled&&Zt(i)===d?o.colorPath:o.colorBorder,"strke-width":"1",fill:o.isFullfilled&&Zt(i)===d?o.colorPath:o.colorBg,"fill-opacity":1},null,8,s0)),n.isRounded?(dt(),vt("circle",{key:1,cx:"12",cy:"12",r:"11",stroke:o.isFullfilled&&Zt(i)===d?o.colorPath:o.colorBorder,"strke-width":"1",fill:o.isFullfilled&&Zt(i)===d?o.colorPath:o.colorBg,"fill-opacity":1},null,8,o0)):ue("",!0),Vs(ot("path",{d:"M7 13l3 3 7-7",stroke:o.isFullfilled?o.colorBg:o.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,a0),[[Oi,Zt(i)===d]])],4)),ot("span",{style:Tt(["font-size:"+n.fontSize])},Qt(u),5)],!0)],12,i0))),128))]))}}),Mg="",c0=Gt(l0,[["__scopeId","data-v-7e2eff94"]]),u0={class:"wrap"},h0=["onClick"],f0=["stroke","fill"],d0=["stroke","fill"],p0=["stroke"],m0=$t({customOptions:{},__name:"CheckboxGroup",props:{options:{},initIndexs:{},isRounded:{type:Boolean,default:!1},isFullfilled:{type:Boolean,default:!1},colorPath:{default:Rt.colorPrimary},colorBg:{default:Rt.colorGrayFF},colorBorder:{default:Rt.colorGrayCC},fontSize:{default:Rt.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(e,{emit:t}){const n=e,r=t;let i=Je(n.initIndexs??[0]);te(i,function(){r("change",i.map(o=>n.options[o]))});const s=function(o){const a=i.findIndex(u=>u===o);a>=0?i.splice(a,1):i.push(o)};return(o,a)=>(dt(),vt("div",u0,[(dt(!0),vt(le,null,Pe(o.options,(u,d)=>(dt(),vt("span",{class:"item",key:d,onClick:g=>s(d),style:Tt(["margin-left:"+(d>0?n.itemPadding:0)])},[re(o.$slots,"default",{label:u,index:d},()=>[(dt(),vt("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:Tt(["margin-right:"+n.labelPadding,"width:"+n.itemWidth])},[n.isRounded?ue("",!0):(dt(),vt("rect",{key:0,x:"0",y:"0",width:"22",height:"22",stroke:o.isFullfilled&&Zt(i).findIndex(g=>g===d)>=0?o.colorPath:o.colorBorder,"strke-width":"1",fill:o.isFullfilled&&Zt(i).findIndex(g=>g===d)>=0?o.colorPath:o.colorBg,"fill-opacity":1},null,8,f0)),n.isRounded?(dt(),vt("circle",{key:1,cx:"12",cy:"12",r:"11",stroke:o.isFullfilled&&Zt(i).findIndex(g=>g===d)>=0?o.colorPath:o.colorBorder,"strke-width":"1",fill:o.isFullfilled&&Zt(i).findIndex(g=>g===d)>=0?o.colorPath:o.colorBg,"fill-opacity":1},null,8,d0)):ue("",!0),Vs(ot("path",{d:"M7 13l3 3 7-7",stroke:o.isFullfilled?o.colorBg:o.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,p0),[[Oi,Zt(i).findIndex(g=>g===d)>=0]])],4)),ot("span",{style:Tt(["font-size:"+n.fontSize])},Qt(u),5)],!0)],12,h0))),128))]))}}),Ng="",g0=Gt(m0,[["__scopeId","data-v-ae9d25d1"]]),v0=(e=>(zs("data-v-d02782ac"),e=e(),Bs(),e))(()=>ot("div",{style:{"background-color":"#ffffff"}},"popover-default-panel",-1)),y0=$t({customOptions:{Pop:Xe,Button:Kt},inheritAttrs:!0,__name:"Popover",props:{gap:{default:10},isGlobal:{type:Boolean,default:!0}},setup(e){const t=e,n=xt(),r=xt(),i=xt(),s=Je({left:"0",top:"0"});te(r,()=>{o()}),te(i,()=>{o()});function o(){if(!r.value||!i.value)return;const u=gc(),d=r.value.getBoundingClientRect(),g=i.value.getBoundingClientRect(),v=g.width,y=g.height;let w=d.x+d.width+t.gap,I=d.y;w=Math.max(t.gap,Math.min(w,u.width-v-t.gap)),I=Math.max(t.gap,Math.min(I,u.height-y-t.gap)),s.left=`${w}px`,s.top=`${I}px`}function a(){n.value.open()}return(u,d)=>(dt(),vt(le,null,[ot("div",{ref_key:"popoverButtonRef",ref:r,style:{display:"inline-block"},onClick:a},[re(u.$slots,"button",{},()=>[Nt(Kt,null,{default:Yt(()=>[ee("popover-default-button")]),_:1})],!0)],512),Nt(Xe,{ref_key:"popRef",ref:n,"direction-from":"absolute",isGlobal:t.isGlobal},{default:Yt(()=>[ot("div",{ref_key:"popoverPanelRef",ref:i,style:Tt([{display:"inline-block",position:"absolute"},s])},[re(u.$slots,"panel",{},()=>[v0],!0)],4)]),_:3},8,["isGlobal"])],64))}}),Og="",Vo=Gt(y0,[["__scopeId","data-v-d02782ac"]]),pr=(e,t=0,n=1)=>e>n?n:e<t?t:e,de=(e,t=0,n=Math.pow(10,t))=>Math.round(n*e)/n,_0=e=>E0(jo(e)),jo=e=>(e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?de(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?de(parseInt(e.substring(6,8),16)/255,2):1}),x0=e=>b0(w0(e)),Xc=({h:e,s:t,v:n,a:r})=>{const i=(200-t)*n/100;return{h:de(e),s:de(i>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0),l:de(i/2),a:de(r,2)}},Ho=e=>{const{h:t,s:n,l:r}=Xc(e);return`hsl(${t}, ${n}%, ${r}%)`},Uo=e=>{const{h:t,s:n,l:r,a:i}=Xc(e);return`hsla(${t}, ${n}%, ${r}%, ${i})`},w0=({h:e,s:t,v:n,a:r})=>{e=e/360*6,t=t/100,n=n/100;const i=Math.floor(e),s=n*(1-t),o=n*(1-(e-i)*t),a=n*(1-(1-e+i)*t),u=i%6;return{r:de([n,o,s,s,a,n][u]*255),g:de([a,n,n,o,s,s][u]*255),b:de([s,s,a,n,n,o][u]*255),a:de(r,2)}},Ji=e=>{const t=e.toString(16);return t.length<2?"0"+t:t},b0=({r:e,g:t,b:n,a:r})=>{const i=r<1?Ji(de(r*255)):"";return"#"+Ji(e)+Ji(t)+Ji(n)+i},E0=({r:e,g:t,b:n,a:r})=>{const i=Math.max(e,t,n),s=i-Math.min(e,t,n),o=s?i===e?(t-n)/s:i===t?2+(n-e)/s:4+(e-t)/s:0;return{h:de(60*(o<0?o+6:o)),s:de(i?s/i*100:0),v:de(i/255*100),a:r}},Kc=(e,t)=>{if(e===t)return!0;for(const n in e)if(e[n]!==t[n])return!1;return!0},T0=(e,t)=>e.toLowerCase()===t.toLowerCase()?!0:Kc(jo(e),jo(t)),Zc={},Qc=e=>{let t=Zc[e];return t||(t=document.createElement("template"),t.innerHTML=e,Zc[e]=t),t},Wo=(e,t,n)=>{e.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:n}))};let mr=!1;const qo=e=>"touches"in e,C0=e=>mr&&!qo(e)?!1:(mr||(mr=qo(e)),!0),Jc=(e,t)=>{const n=qo(t)?t.touches[0]:t,r=e.el.getBoundingClientRect();Wo(e.el,"move",e.getMove({x:pr((n.pageX-(r.left+window.pageXOffset))/r.width),y:pr((n.pageY-(r.top+window.pageYOffset))/r.height)}))},S0=(e,t)=>{const n=t.keyCode;n>40||e.xy&&n<37||n<33||(t.preventDefault(),Wo(e.el,"move",e.getMove({x:n===39?.01:n===37?-.01:n===34?.05:n===33?-.05:n===35?1:n===36?-1:0,y:n===40?.01:n===38?-.01:0},!0)))};class Yo{constructor(t,n,r,i){const s=Qc(`<div role="slider" tabindex="0" part="${n}" ${r}><div part="${n}-pointer"></div></div>`);t.appendChild(s.content.cloneNode(!0));const o=t.querySelector(`[part=${n}]`);o.addEventListener("mousedown",this),o.addEventListener("touchstart",this),o.addEventListener("keydown",this),this.el=o,this.xy=i,this.nodes=[o.firstChild,o]}set dragging(t){const n=t?document.addEventListener:document.removeEventListener;n(mr?"touchmove":"mousemove",this),n(mr?"touchend":"mouseup",this)}handleEvent(t){switch(t.type){case"mousedown":case"touchstart":if(t.preventDefault(),!C0(t)||!mr&&t.button!=0)return;this.el.focus(),Jc(this,t),this.dragging=!0;break;case"mousemove":case"touchmove":t.preventDefault(),Jc(this,t);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":S0(this,t);break}}style(t){t.forEach((n,r)=>{for(const i in n)this.nodes[r].style.setProperty(i,n[i])})}}class k0 extends Yo{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:Ho({h:t,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${de(t)}`)}getMove(t,n){return{h:n?pr(this.h+t.x*360,0,360):360*t.x}}}class P0 extends Yo{constructor(t){super(t,"saturation",'aria-label="Color"',!0)}update(t){this.hsva=t,this.style([{top:`${100-t.v}%`,left:`${t.s}%`,color:Ho(t)},{"background-color":Ho({h:t.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${de(t.s)}%, Brightness ${de(t.v)}%`)}getMove(t,n){return{s:n?pr(this.hsva.s+t.x*100,0,100):t.x*100,v:n?pr(this.hsva.v-t.y*100,0,100):Math.round(100-t.y*100)}}}const I0=':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)}',M0="[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}",N0="[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}",ts=Symbol("same"),Xo=Symbol("color"),tu=Symbol("hsva"),Ko=Symbol("update"),eu=Symbol("parts"),es=Symbol("css"),ns=Symbol("sliders");let A0=class extends HTMLElement{static get observedAttributes(){return["color"]}get[es](){return[I0,M0,N0]}get[ns](){return[P0,k0]}get color(){return this[Xo]}set color(t){if(!this[ts](t)){const n=this.colorModel.toHsva(t);this[Ko](n),this[Xo]=t}}constructor(){super();const t=Qc(`<style>${this[es].join("")}</style>`),n=this.attachShadow({mode:"open"});n.appendChild(t.content.cloneNode(!0)),n.addEventListener("move",this),this[eu]=this[ns].map(r=>new r(n))}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,n,r){const i=this.colorModel.fromAttr(r);this[ts](i)||(this.color=i)}handleEvent(t){const n=this[tu],r={...n,...t.detail};this[Ko](r);let i;!Kc(r,n)&&!this[ts](i=this.colorModel.fromHsva(r))&&(this[Xo]=i,Wo(this,"color-changed",{value:i}))}[ts](t){return this.color&&this.colorModel.equal(t,this.color)}[Ko](t){this[tu]=t,this[eu].forEach(n=>n.update(t))}};class O0 extends Yo{constructor(t){super(t,"alpha",'aria-label="Alpha" aria-valuemin="0" aria-valuemax="1"',!1)}update(t){this.hsva=t;const n=Uo({...t,a:0}),r=Uo({...t,a:1}),i=t.a*100;this.style([{left:`${i}%`,color:Uo(t)},{"--gradient":`linear-gradient(90deg, ${n}, ${r}`}]);const s=de(i);this.el.setAttribute("aria-valuenow",`${s}`),this.el.setAttribute("aria-valuetext",`${s}%`)}getMove(t,n){return{a:n?pr(this.hsva.a+t.x):t.x}}}const L0=`[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 R0 extends A0{get[es](){return[...super[es],L0]}get[ns](){return[...super[ns],O0]}}const F0={defaultColor:"#0001",toHsva:_0,fromHsva:x0,equal:T0,fromAttr:e=>e};class D0 extends R0{get colorModel(){return F0}}class $0 extends D0{}customElements.define("hex-alpha-color-picker",$0);const z0=$t({customOptions:{Popover:Vo},__name:"ColorPicker",props:{color:{default:Rt.colorPrimary}},emits:["change"],setup(e,{emit:t}){const n=e,r=t,i=xt(n.color);te(i,(a,u)=>{a!==u&&r("change",a)});const s=xt(),o=a=>{i.value=a.detail.value};return te(s,()=>{s.value&&(s.value.removeEventListener("color-changed",o),s.value.addEventListener("color-changed",o))}),(a,u)=>{const d=xh("hex-alpha-color-picker");return dt(),ge(Vo,null,{button:Yt(()=>[re(a.$slots,"default",{},()=>[ot("span",{class:"button",style:Tt({backgroundColor:i.value})},null,4)],!0)]),panel:Yt(()=>[Nt(d,{ref_key:"colorPickerRef",ref:s,color:i.value},null,8,["color"])]),_:3})}}}),Lg="",B0=Gt(z0,[["__scopeId","data-v-ac12603f"]]),Rg="",G0={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 e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",vo&&this.$el.appendChild(e),e.data="about:blank",vo||this.$el.appendChild(e)},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&&(!vo&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},V0={class:"resize-observer",tabindex:"-1"};function j0(e,t,n,r,i,s){return dt(),vt("div",V0)}const H0=Gt(G0,[["render",j0],["__scopeId","data-v-97c2da37"]]),U0=()=>{const e=xt(window.innerWidth),t=xt(window.innerHeight),n=r=>{e.value=r.target.innerWidth,t.value=r.target.innerHeight};return Pi(()=>window.addEventListener("resize",n)),ar(()=>window.removeEventListener("resize",n)),{width:e,height:t}},W0=$t({__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(e,{expose:t,emit:n}){const r=e,{width:i,height:s}=U0(),o=xt(r.mapWidth??i.value+"px"),a=xt(r.mapHeight??s.value+"px");return te(i,(u,d)=>{u!=d&&!r.mapWidth&&(o.value=u+"px")}),te(s,(u,d)=>{u!=d&&!r.mapHeight&&(a.value=u+"px")}),Pi(()=>{Lt.loadScript(`http://api.tianditu.gov.cn/api?v=4.0&tk=${r.mapKey}`,()=>{new kp(r.mapContainerID,r.mapCenterLng,r.mapCenterLat,r.mapZoom)},u=>{console.log("error",u)})}),t({}),(u,d)=>(dt(),vt("div",Ys({class:"mapDivWrap"},u.$attrs,{style:{position:"relative",width:o.value,height:a.value}}),[re(u.$slots,"default",{width:o.value,height:a.value})],16))}}),q0=["fill"],Y0=["fill"],X0=$t({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:Rt.colorPrimary}},setup(e){const t=e;return(n,r)=>(dt(),vt("svg",{style:Tt(["width: "+t.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[ot("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,q0),ot("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,Y0)],4))}}),Fg="",Zo=Gt(X0,[["__scopeId","data-v-987aed3d"]]),Qo=e=>(zs("data-v-85491020"),e=e(),Bs(),e),K0=[Qo(()=>ot("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)),Qo(()=>ot("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)),Qo(()=>ot("path",{d:"M18.68,3.79h-3.1l-15.64,20L15.33,43.45l.25.33H47.94v-40ZM3,23.79,16.73,6.3H45.3v35H16.73Z"},null,-1))],Z0=$t({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:Rt.colorPrimary}},setup(e){const t=e;return(n,r)=>(dt(),vt("svg",{style:Tt(["width: "+t.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},K0,4))}}),Bg="",rs=Gt(Z0,[["__scopeId","data-v-85491020"]]),Q0=["data-number"],J0=["data-number","data-unactive"],tm=["data-number"],em=["data-number","data-unactive"],nm=$t({customOptions:{Pop:Xe,SVGCleanUp:rs},__name:"PlateKeyboard",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(e,{expose:t,emit:n}){const r=e,i=n,s=xt(),o=xt(0),a=Je([]);function u(){a.length==0?o.value=0:a.length==1?o.value=1:o.value=2,a.length>=r.completePlateLength&&g()}te(()=>[...r.initPlates],()=>{Zr(a,r.initPlates),u()},{immediate:!0});const d=()=>{s.value.open(),i("open")},g=()=>{s.value.close(),i("close")},v=()=>{a.pop(),u(),i("plates",a)},y=B=>{if(B.target.dataset.unactive||"")return;let N=B.target.dataset.number;N&&(a.push(N),u(),i("plates",a))};t({open:d,close:g});const w=["京","沪","津","渝","黑","吉","辽","蒙","冀","新","甘","青","陕","宁","豫","鲁","晋","皖","鄂","湘","苏","川","云","桂","藏","浙","赣","粤","闽","琼","贵"],I=["1","2","3","4","5","6","7","8","9","0"],k=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","Q","R","S","T","U","V","W","X","Y","Z"],A=["港","澳","学","警","使","领","挂","应","急"];return(B,M)=>(dt(),ge(Xe,{ref_key:"popRef",ref:s,directionFrom:"bottom",closeWhenClickOverlay:!1},{default:Yt(()=>[ot("div",{class:"popup-plate",style:Tt({paddingBottom:Zt(Rt).safeAreaBottom})},[ot("div",null,[ot("div",{onClick:g},"关闭")]),ot("div",{class:Se(["step",o.value==0?"":"hide"])},[(dt(),vt(le,null,Pe(w,N=>ot("div",{key:N,class:"popitem",onClick:y,"data-number":N},Qt(N),9,Q0)),64)),ot("div",{class:"popitem popitem-clear",onClick:v},[Nt(rs,{width:"16px"})])],2),ot("div",{class:Se(["step",o.value!=0?"":"hide"])},[(dt(),vt(le,null,Pe(I,N=>ot("div",{key:N,class:Se(["popitem",o.value!=2?"unactive":""]),onClick:y,"data-number":N,"data-unactive":o.value!=2?"unactive":""},Qt(N),11,J0)),64)),(dt(),vt(le,null,Pe(k,N=>ot("div",{key:N,class:"popitem",onClick:y,"data-number":N},Qt(N),9,tm)),64)),(dt(),vt(le,null,Pe(A,N=>ot("div",{key:N,class:Se(["popitem",o.value!=2?"unactive":""]),onClick:y,"data-number":N,"data-unactive":o.value!=2?"unactive":""},Qt(N),11,em)),64)),ot("div",{class:"popitem popitem-clear",onClick:v},[Nt(rs,{width:"16px"})])],2)],4)]),_:1},512))}}),Gg="",Jo=Gt(nm,[["__scopeId","data-v-f0a361e8"]]),is=e=>(zs("data-v-50f7545d"),e=e(),Bs(),e),rm=is(()=>ot("div",{class:"title"},"车牌颜色",-1)),im={class:"plate-types"},sm=["onClick"],om=is(()=>ot("div",{class:"title"},"车牌号码",-1)),am={class:"plate-numbers"},lm=is(()=>ot("div",{class:"dot"},"·",-1)),cm=["onClick"],um=is(()=>ot("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1)),hm=$t({customOptions:{SVGCheck:Zo,PlateKeyboard:Jo},__name:"PlateMobile",props:{maxWidth:{default:"750px"}},emits:["clear","complete"],setup(e,{expose:t,emit:n}){const r=e,i=n,s=[{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=xt(),a=xt(0),u=Je([]),d=xt(-1),g=w=>{a.value=w,d.value<=s[w].completePlateLength&&u.length<s[w].completePlateLength?(d.value=u.length,o.value.open(),i("clear")):Zr(u,u.slice(0,s[w].completePlateLength)),s[w].completePlateLength===u.length&&i("complete",s[a.value].name,u.join(""))},v=w=>{Zr(u,u.slice(0,w)),d.value=Math.min(Math.max(0,d.value),w),o.value.open(),i("clear")},y=w=>{Zr(u,w),d.value=u.length,u.length===s[a.value].completePlateLength&&i("complete",s[a.value].name,u.join(""))};return t({}),(w,I)=>(dt(),vt(le,null,[ot("div",Ys(w.$attrs,{class:"plate-mobile",style:{maxWidth:r.maxWidth}}),[rm,ot("div",im,[(dt(),vt(le,null,Pe(s,(k,A)=>ot("div",{key:A,class:Se(A==a.value?"checked":""),onClick:B=>g(A)},[ot("div",{style:Tt(k.style)},null,4),ot("div",null,Qt(k.name),1),ot("div",null,[Nt(Zo,{color:"#ffffff",width:"0.14rem"})])],10,sm)),64))]),om,ot("div",am,[ot("div",{onClick:I[0]||(I[0]=k=>v(0)),class:Se(d.value==0?"current":"")},Qt(u[0]),3),ot("div",{onClick:I[1]||(I[1]=k=>v(1)),class:Se(d.value==1?"current":"")},Qt(u[1]),3),lm,(dt(!0),vt(le,null,Pe(s[a.value].completePlateLength-2,k=>(dt(),vt("div",{key:k,class:Se(k+1==d.value?"current":""),onClick:A=>v(k+1)},Qt(u[k+1]),11,cm))),128))]),um],16),Nt(Jo,{ref_key:"plateKeyboardRef",ref:o,initPlates:u,completePlateLength:s[a.value].completePlateLength,onPlates:y},null,8,["initPlates","completePlateLength"])],64))}}),Vg="",fm=Gt(hm,[["__scopeId","data-v-50f7545d"]]),dm=["width","height"],pm=["fill"],mm=$t({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:Rt.colorPrimary}},setup(e){const t=e;return(n,r)=>(dt(),vt("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,xmlns:"http://www.w3.org/2000/svg"},[ot("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,pm)],8,dm))}}),jg="",ta=Gt(mm,[["__scopeId","data-v-4747d4a7"]]),gm=$t({customOptions:{SVGDelete:ta},inheritAttrs:!0,__name:"SlideLeftItem",props:{bgColor:{default:Rt.colorGrayFF},deleteColor:{default:Rt.colorRed},fontColor:{default:Rt.colorGrayFF},borderRadius:{default:"4px"},deleteWidth:{default:"44px"},transtionDuration:{default:"150ms"}},emits:["delete"],setup(e,{expose:t,emit:n}){const r=e,i=n,s=xt(!1),o=()=>{i("delete"),s.value=!1};let a;const u=xt();return te(u,()=>{u.value&&(a=new Fo(u.value),a.on("panLeft",()=>{s.value=!0}),a.on("panRight",()=>{s.value=!1}),a.on("tapOutSide",()=>{s.value=!1}))}),ar(()=>{a?.destroy()}),t({}),(d,g)=>(dt(),vt("div",{class:"parent",ref_key:"item",ref:u,style:Tt({backgroundColor:r.bgColor,borderRadius:r.borderRadius})},[ot("div",{class:"content",style:Tt({transition:"all ease-in "+r.transtionDuration,transform:s.value?"translate(-"+r.deleteWidth+", 0)":"translate(0, 0)"})},[re(d.$slots,"default",{},void 0,!0)],4),ot("div",{class:"delete",onClick:o,style:Tt({backgroundColor:r.deleteColor,width:r.deleteWidth,transition:"all ease-in "+r.transtionDuration,transform:s.value?"translate(0, 0)":"translate("+r.deleteWidth+", 0)"})},[Nt(ta,{color:r.fontColor},null,8,["color"])],4)],4))}}),Hg="",vm=Gt(gm,[["__scopeId","data-v-244215c2"]]),ym={class:"parent"},_m=$t({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay",props:{plate:{},plateType:{},displayType:{default:"chinese"},fontColor:{},fontSize:{}},setup(e,{expose:t,emit:n}){const r=e,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 s(v){return v.length>2?v.substring(0,2)+"·"+v.substring(2):v}function o(v){const y=i.filter(w=>w.name===v);return y.length?y[0]:o("未知")}const a=s(r.plate),u=xt(o(r.plateType));let d=r.fontColor,g=r.fontSize;switch(r.displayType){case"dot":d=d??"#999999",g=g??"14px";break;case"chinese":d=d??"#333333",g=g??"20px";break}return t({}),(v,y)=>(dt(),vt("div",ym,[ot("div",{class:Se(["leading",r.displayType]),style:Tt(u.value.style)},Qt(u.value.name),7),ot("div",{class:"text",style:Tt({color:Zt(d),"font-size":Zt(g)})},Qt(Zt(a)),5)]))}}),Ug="",xm=Gt(_m,[["__scopeId","data-v-8d55b13b"]]),wm={class:"tab"},bm=$t({name:"Tab",customOptions:{},inheritAttrs:!0,__name:"Tab",props:{label:{}},setup(e,{expose:t}){return t({}),(n,r)=>(dt(),vt("div",wm,[re(n.$slots,"default",{},void 0,!0)]))}}),Wg="",nu=Gt(bm,[["__scopeId","data-v-6589e7fa"]]),Em=["onClick"],Tm={class:"content"},Cm=$t({customOptions:{Tab:nu},inheritAttrs:!0,__name:"Tabs",props:{initIndex:{default:0}},emits:["changedIndex"],setup(e,{expose:t,emit:n}){const r=e,i=n,s=xt(r.initIndex),o=Je([]),a=xt(),u=xt(0),d=xt(0),g=xt(0),v=xt([]),y=[],w=Lh(),I=w.default&&w.default();I&&(Zr(o,I),B(s.value));const k=(M,N)=>{if(M){if(y.push({index:N,el:M}),y.length<o.length)return;v.value=y}};te([a,v],()=>{A()});function A(){if(a.value&&v.value.length){const M=a.value.getBoundingClientRect(),N=v.value[s.value].el.getBoundingClientRect();u.value=N.x-M.x,d.value=N.y-M.y+N.height,g.value=N.width}}function B(M){s.value=M,i("changedIndex",M),A()}return t({}),(M,N)=>(dt(),vt("div",null,[ot("div",{class:"header",ref_key:"headerRef",ref:a},[(dt(!0),vt(le,null,Pe(o,(D,U)=>(dt(),vt("div",{key:D.props?.label,class:Se(U==s.value?"active":""),onClick:H=>B(U)},[ot("div",{ref_for:!0,ref:H=>k(H,U)},Qt(D.props?.label),513)],10,Em))),128)),ot("div",{class:"indicator",style:Tt({top:d.value+"px",left:u.value+"px",width:g.value+"px",height:"2px"})},null,4)],512),ot("div",Tm,[(dt(),ge(Ph,{include:"Tab"},[(dt(),ge(wh(o[s.value]),{key:o[s.value]?.props?.label}))],1024))])]))}}),qg="",Sm=Gt(Cm,[["__scopeId","data-v-e8093875"]]);var ci=function(){var e=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(g){g.preventDefault(),r(++e%t.children.length)},!1);function n(g){return t.appendChild(g.dom),g}function r(g){for(var v=0;v<t.children.length;v++)t.children[v].style.display=v===g?"block":"none";e=g}var i=(performance||Date).now(),s=i,o=0,a=n(new ci.Panel("FPS","#0ff","#002")),u=n(new ci.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var d=n(new ci.Panel("MB","#f08","#201"));return r(0),{REVISION:16,dom:t,addPanel:n,showPanel:r,begin:function(){i=(performance||Date).now()},end:function(){o++;var g=(performance||Date).now();if(u.update(g-i,200),g>s+1e3&&(a.update(o*1e3/(g-s),100),s=g,o=0,d)){var v=performance.memory;d.update(v.usedJSHeapSize/1048576,v.jsHeapSizeLimit/1048576)}return g},update:function(){i=this.end()},domElement:t,setMode:r}};ci.Panel=function(e,t,n){var r=1/0,i=0,s=Math.round,o=s(window.devicePixelRatio||1),a=80*o,u=48*o,d=3*o,g=2*o,v=3*o,y=15*o,w=74*o,I=30*o,k=document.createElement("canvas");k.width=a,k.height=u,k.style.cssText="width:80px;height:48px";var A=k.getContext("2d");return A.font="bold "+9*o+"px Helvetica,Arial,sans-serif",A.textBaseline="top",A.fillStyle=n,A.fillRect(0,0,a,u),A.fillStyle=t,A.fillText(e,d,g),A.fillRect(v,y,w,I),A.fillStyle=n,A.globalAlpha=.9,A.fillRect(v,y,w,I),{dom:k,update:function(B,M){r=Math.min(r,B),i=Math.max(i,B),A.fillStyle=n,A.globalAlpha=1,A.fillRect(0,0,a,y),A.fillStyle=t,A.fillText(s(B)+" "+e+" ("+s(r)+"-"+s(i)+")",d,g),A.drawImage(k,v+o,y,w-o,I,v,y,w-o,I),A.fillRect(v+w-o,y,o,I),A.fillStyle=n,A.globalAlpha=.9,A.fillRect(v+w-o,y,o,s((1-B/M)*I))}}};const km=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats",setup(e,{expose:t}){const n=xt();return Pi(()=>{const r=new ci,i=r.domElement.style;i.margin="1em",n.value.appendChild(r.domElement),Re.register(()=>(r.update(),!0))}),t({}),(r,i)=>(dt(),vt("div",{ref_key:"containerRef",ref:n},null,512))}}),Pm={class:"ease-graph"},Im=["width","height"],Mm=$t({customOptions:{Button:Kt},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(e,{expose:t,emit:n}){const r=e,i=n;let s;const o=xt();te(o,()=>{o.value&&(s=new Zi(o.value),a(),i("onMounted",r.easeName))});const a=()=>{s.fillStyle="rgb(250,250,250)",s.fillRect(0,0,r.canvasWidth,r.canvasHeight),s.lineWidth=.5,s.strokeStyle="rgb(230,230,230)",s.beginPath(),s.moveTo(0,r.graphVerticalGap),s.lineTo(r.canvasWidth,r.graphVerticalGap),s.moveTo(0,r.canvasHeight-r.graphVerticalGap),s.lineTo(r.canvasWidth,r.canvasHeight-r.graphVerticalGap),s.closePath(),s.stroke(),s.lineWidth=2,s.strokeStyle="rgb(255,127,127)"};let u=!1;const d=()=>{if(!s||u)return;u=!0,i("onStart",r.easeName),a();const v={x:r.graphHorizontalGap,y:r.canvasHeight-r.graphVerticalGap},y={x:r.graphHorizontalGap,y:r.canvasHeight-r.graphVerticalGap};ve.toTween(v,{x:r.canvasWidth-r.graphHorizontalGap},{duration:r.easeDuration,easeFunction:bt.Easing.Linear.None}).startAuto(),ve.toTween(v,{y:r.graphVerticalGap},{duration:r.easeDuration,easeFunction:r.easeFunction,onUpdate:()=>{s.beginPath(),s.moveTo(y.x,y.y),s.lineTo(v.x,v.y),s.closePath(),s.stroke(),y.x=v.x,y.y=v.y}}).startAuto(),setTimeout(()=>{i("onCompleted",r.easeName),u=!1},r.easeDuration)},g=()=>{i("onSelected",r.easeName,r.easeFunction)};return t({start:d}),(v,y)=>(dt(),vt("div",Pm,[ot("div",null,"缓动:"+Qt(v.easeName),1),ot("div",null,[ot("div",null,[Nt(Kt,{stylePattern:"outline",height:"32px",padding:"10px",onClick:d},{default:Yt(()=>[ee(" 开始 ")]),_:1})]),ot("div",null,[Nt(Kt,{stylePattern:r.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:g},{default:Yt(()=>[ee(" 选择 ")]),_:1},8,["stylePattern"])])]),ot("canvas",{ref_key:"canvasRef",ref:o,width:v.canvasWidth,height:v.canvasHeight},null,8,Im)]))}}),Xg="",ss=Gt(Mm,[["__scopeId","data-v-c7c96812"]]),ru=2e3,Nm=$t({customOptions:{EaseGraphDisplay:ss},inheritAttrs:!0,__name:"EaseGroupGraphDisplay",props:{easeList:{default:()=>[{easeName:"Linear",easeFunction:bt.Easing.Linear.None},{easeName:"gap"},{easeName:"QuadraticIn",easeFunction:bt.Easing.Quadratic.In},{easeName:"QuadraticOut",easeFunction:bt.Easing.Quadratic.Out},{easeName:"QuadraticInOut",easeFunction:bt.Easing.Quadratic.InOut},{easeName:"gap"},{easeName:"CubicIn",easeFunction:bt.Easing.Cubic.In},{easeName:"CubicOut",easeFunction:bt.Easing.Cubic.Out},{easeName:"CubicInOut",easeFunction:bt.Easing.Cubic.InOut},{easeName:"gap"},{easeName:"QuarticIn",easeFunction:bt.Easing.Quartic.In},{easeName:"QuarticOut",easeFunction:bt.Easing.Quartic.Out},{easeName:"QuarticInOut",easeFunction:bt.Easing.Quartic.InOut},{easeName:"gap"},{easeName:"QuinticIn",easeFunction:bt.Easing.Quintic.In},{easeName:"QuinticOut",easeFunction:bt.Easing.Quintic.Out},{easeName:"QuinticInOut",easeFunction:bt.Easing.Quintic.InOut},{easeName:"gap"},{easeName:"SinusoidalIn",easeFunction:bt.Easing.Sinusoidal.In},{easeName:"SinusoidalOut",easeFunction:bt.Easing.Sinusoidal.Out},{easeName:"SinusoidalInOut",easeFunction:bt.Easing.Sinusoidal.InOut},{easeName:"gap"},{easeName:"ExponentialIn",easeFunction:bt.Easing.Exponential.In},{easeName:"ExponentialOut",easeFunction:bt.Easing.Exponential.Out},{easeName:"ExponentialInOut",easeFunction:bt.Easing.Exponential.InOut},{easeName:"gap"},{easeName:"CircularIn",easeFunction:bt.Easing.Circular.In},{easeName:"CircularOut",easeFunction:bt.Easing.Circular.Out},{easeName:"CircularInOut",easeFunction:bt.Easing.Circular.InOut},{easeName:"gap"},{easeName:"ElasticIn",easeFunction:bt.Easing.Elastic.In},{easeName:"ElasticOut",easeFunction:bt.Easing.Elastic.Out},{easeName:"ElasticInOut",easeFunction:bt.Easing.Elastic.InOut},{easeName:"gap"},{easeName:"BackIn",easeFunction:bt.Easing.Back.In},{easeName:"BackOut",easeFunction:bt.Easing.Back.Out},{easeName:"BackInOut",easeFunction:bt.Easing.Back.InOut},{easeName:"gap"},{easeName:"BounceIn",easeFunction:bt.Easing.Bounce.In},{easeName:"BounceOut",easeFunction:bt.Easing.Bounce.Out},{easeName:"BounceInOut",easeFunction:bt.Easing.Bounce.InOut},{easeName:"gap"},{easeName:"generatePow(10)In",easeFunction:bt.Easing.generatePow(10).In},{easeName:"generatePow(10)Out",easeFunction:bt.Easing.generatePow(10).Out},{easeName:"generatePow(10)InOut",easeFunction:bt.Easing.generatePow(10).InOut},{easeName:"gap"},{easeName:"4 steps",easeFunction:bt.Easing.createStep(4)},{easeName:"8 steps",easeFunction:bt.Easing.createStep(8)},{easeName:"12 steps",easeFunction:bt.Easing.createStep(12)},{easeName:"16 steps",easeFunction:bt.Easing.createStep(16)},{easeName:"gap"},{easeName:"Noisy Exponential.InOut",easeFunction:bt.Easing.createNoisyEasing(bt.Easing.Exponential.InOut,.1)},{easeName:"Noisy Elastic.InOut",easeFunction:bt.Easing.createNoisyEasing(bt.Easing.Elastic.InOut,.2)},{easeName:"Noisy Circular.InOut",easeFunction:bt.Easing.createNoisyEasing(bt.Easing.Circular.InOut,.1)}]}},emits:["selectedEaseFunction"],setup(e,{expose:t,emit:n}){const r=e,i=n,s={};function o(v,y){v&&(s[y]=v)}const a=new Jl(10);function u(v){a.addTask(()=>(s[v].start(),new Promise(y=>{setTimeout(()=>{y()},ru)})))}const d=xt("Linear");function g(v,y){d.value=v,i("selectedEaseFunction",v,y)}return g("Linear",bt.Easing.Linear.None),t({}),(v,y)=>(dt(),vt("div",null,[(dt(!0),vt(le,null,Pe(r.easeList,w=>(dt(),vt("div",{key:w.easeName,class:"ease-graph-wrap"},[w.easeFunction?(dt(),ge(ss,{key:0,easeName:w.easeName,easeFunction:w.easeFunction,easeDuration:ru,isSelected:d.value==w.easeName,onOnMounted:u,onOnSelected:g,ref_for:!0,ref:I=>o(I,w.easeName)},null,8,["easeName","easeFunction","isSelected"])):ue("",!0)]))),128))]))}}),Kg="",ea=Gt(Nm,[["__scopeId","data-v-28043235"]]),Am={class:"interpolation-graph"},Om=["width","height"],iu=1/6,su=5/6,Lm=$t({customOptions:{Button:Kt},inheritAttrs:!0,__name:"InterpolationGraphDisplay",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},easeDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(e,{expose:t,emit:n}){const r=e,i=n;let s;const o=xt();te(o,()=>{o.value&&(s=new Zi(o.value),w(),i("onMounted",r.interpolationName))});const a=r.canvasWidth*iu,u=r.canvasHeight/2,d=[r.canvasWidth*su,r.canvasWidth/2],g=[r.canvasHeight*iu,r.canvasHeight*su],v=[...d,a],y=[...g,u],w=()=>{s.fillStyle="rgb(250,250,250)",s.fillRect(0,0,r.canvasWidth,r.canvasHeight),s.fillStyle="rgb(200,200,200)",s.fillRect(a-3,u-3,6,6),s.fillRect(d[d.length-1]-3,g[g.length-1]-3,6,6);for(var A=0;A<d.length;A++)s.fillRect(d[A]-2,g[A]-2,4,4)};let I=!1;const k=()=>{if(!s||I)return;I=!0,i("onStart",r.interpolationName),w();const A={x:a,y:u,old:{x:a,y:u}};ve.toTween(A,{x:d,y:g},{duration:r.easeDuration,easeFunction:bt.Easing.Linear.None,interpolationFunction:r.interpolationFunction,onUpdate:M=>{s.lineWidth=2,s.strokeStyle="rgba(255,127,127,0.9)",s.beginPath(),s.moveTo(M.old.x,M.old.y),s.lineTo(M.x,M.y),s.closePath(),s.stroke(),M.old.x=M.x,M.old.y=M.y}}).startAuto();const B={x:a,y:u,old:{x:a,y:u}};ve.toTween(B,{x:v,y},{duration:r.easeDuration,easeFunction:bt.Easing.Linear.None,interpolationFunction:r.interpolationFunction,onUpdate:M=>{s.lineWidth=2,s.strokeStyle="rgba(255,127,127,0.5)",s.beginPath(),s.moveTo(M.old.x,M.old.y),s.lineTo(M.x,M.y),s.closePath(),s.stroke(),M.old.x=M.x,M.old.y=M.y}}).startAuto(),setTimeout(()=>{i("onCompleted",r.interpolationName),I=!1},r.easeDuration)};return t({start:k}),(A,B)=>(dt(),vt("div",Am,[ot("div",null,[ee(" 插值:"+Qt(A.interpolationName)+" ",1),Nt(Kt,{stylePattern:"outline",height:"32px",onClick:k},{default:Yt(()=>[ee(" 开始 ")]),_:1})]),ot("canvas",{ref_key:"canvasRef",ref:o,width:A.canvasWidth,height:A.canvasHeight},null,8,Om)]))}}),Zg="",os=Gt(Lm,[["__scopeId","data-v-0cd76c9a"]]),ou=2e3,Rm=$t({customOptions:{InterpolationGraphDisplay:os},inheritAttrs:!0,__name:"InterpolationGroupGraphDisplay",props:{interpolationList:{default:()=>[{interpolationName:"Linear",interpolationFunction:bt.Interpolation.Linear},{interpolationName:"Bezier",interpolationFunction:bt.Interpolation.Bezier},{interpolationName:"CatmullRom",interpolationFunction:bt.Interpolation.CatmullRom}]}},setup(e,{expose:t,emit:n}){const r=e,i={};function s(u,d){u&&(i[d]=u)}const o=new Jl(1);function a(u){o.addTask(()=>(i[u].start(),new Promise(d=>{setTimeout(()=>{d()},ou)})))}return t({}),(u,d)=>(dt(),vt("div",null,[(dt(!0),vt(le,null,Pe(r.interpolationList,g=>(dt(),vt("div",{key:g.interpolationName,class:"interpolation-graph-wrap"},[Nt(os,{interpolationName:g.interpolationName,interpolationFunction:g.interpolationFunction,easeDuration:ou,onOnMounted:a,ref_for:!0,ref:v=>s(v,g.interpolationName)},null,8,["interpolationName","interpolationFunction"])]))),128))]))}}),Qg="",na=Gt(Rm,[["__scopeId","data-v-59130b9e"]]),Fm=$t({__name:"ProgressBar",props:{width:{default:"200px"},height:{default:"40px"},bgColor:{default:"#a0dde9"},borderColor:{default:"#cccccc"},duringTimeGap:{default:50},showText:{type:Boolean,default:!1}},emits:["complete"],setup(e,{expose:t,emit:n}){const r=e,i=n,s=xt(0);function o(a){a<s.value&&(s.value=0);const u=s.value,d=Math.min(Math.max(0,a),100);ve.toTween({width:u},{width:d},{duration:(d-u)*r.duringTimeGap,onStart:()=>{},onUpdate:g=>{s.value=g.width},onComplete:()=>{i("complete",s.value)}}).startAuto()}return t({goto:o}),(a,u)=>(dt(),vt("div",{class:"wrap",style:Tt({width:r.width,height:r.height,border:`1px solid ${r.borderColor}`})},[ot("div",{class:"bar",style:Tt({width:s.value+"%",backgroundColor:r.bgColor})},Qt(r.showText?s.value+"%":""),5)],4))}}),Jg="",ui=Gt(Fm,[["__scopeId","data-v-a1fc9636"]]),Dm={class:"btns"},$m={class:"title"},zm={class:"btns"},Bm={class:"graphs"},Gm=["width","height"],Vm={class:"btns"},jm=$t({customOptions:{Button:Kt,EaseGraphDisplay:ss,EaseGroupGraphDisplay:ea,InterpolationGraphDisplay:os,InterpolationGroupGraphDisplay:na,ProgressBar:ui},inheritAttrs:!0,__name:"AnimatePanel",props:{canvasWidth:{default:300},canvasHeight:{default:300}},setup(e,{expose:t,emit:n}){const r=e,i=xt(""),s=xt(bt.Easing.Linear.None);function o(ct,et){i.value=ct,s.value=et}let a;const u=xt();te(u,()=>{u.value&&(a=new Fo(u.value))}),ar(()=>{a?.destroy()});const d=xt(""),g=xt("");function v(){const ct="ShapeArrow";if(d.value==ct||!a.ctx)return;d.value=ct;const et=new Cp(a),X=new Ye(a,{x:a.ctx.canvas.width/2,y:a.ctx.canvas.height/2});Re.register(()=>!a.ctx||d.value!=ct?(et.destroy(),X.destroy(),!1):(a.ctx.clearRect(),et.draw({followMouseMove:!0,extra:()=>{et.scale=.5,a.ctx.fillStyle=a.ctx.createLinearGradient(0,0,100,100,{0:"#ffffff",1:"#ff0000"})}}),X.draw({extra:()=>{X.toX=et.x,X.toY=et.y}}),console.log(`distance: ${et.distanceTo(X)}`),!0))}function y(){const ct="ShapeRect";if(d.value==ct||!a.ctx)return;d.value=ct;const et=new Bo(a,{width:100,height:60,borderRadius:10});Re.register(()=>!a.ctx||d.value!=ct?(et.destroy(),!1):(a.ctx.clearRect(),et.draw({dragMouseMove:!0,extra:()=>{a.ctx.fillStyle=a.ctx.createRadialGradient(10,10,0,10,10,20,{0:"#ffffff",1:"#ff0000"})}}),!0))}function w(){const ct="ShapeRectGame";if(d.value==ct||!a.ctx)return;d.value=ct;const et=[];function X(){const P=new Bo(a,{x:Math.random()*a.ctx.canvas.width,y:0,width:50,height:50});return et.push(P),P}let at=X();const R=.2,K=[],C=()=>{at.ay=.2},b=()=>{at.ay=-.2},_=()=>{at.ay=0};K.push(a.registerKeyDown({key:"ArrowDown"},C,_)),K.push(a.registerKeyDown({key:"ArrowRight"},C,_)),K.push(a.registerKeyDown({key:"ArrowUp"},b,_)),K.push(a.registerKeyDown({key:"ArrowLeft"},b,_)),Re.register(()=>!a.ctx||d.value!=ct?(et.forEach(P=>P.destroy()),K.forEach(P=>P()),!1):(a.ctx.clearRect(),et.filter(P=>P.isMouseDownInBounds).length>0?et.forEach(P=>{P.draw({dragMouseMove:!0})}):(at.nextFrame({gravity:R}),at.y+at.height>=a.ctx.canvas.height&&(at.y=a.ctx.canvas.height-at.height,at=X()),et.forEach(P=>{at!==P&&at.rect.isIntersectRect(P.rect)&&(at.y=P.y-at.height,at.y>=at.height&&(at=X())),P.draw({dragMouseMove:!0})})),!0))}function I(){const ct="ShapeBallWater";if(d.value==ct||!a.ctx)return;d.value=ct;const et=[];for(let X=0;X<80;X++){const at=new dr(a,{x:a.ctx.canvas.width/2,y:a.ctx.canvas.height,radius:2});at.vx=Math.random()*2-1,at.vy=Math.random()*-10-10,et.push(at)}Re.register(()=>!a.ctx||d.value!=ct?(et.forEach(X=>X.destroy()),!1):(a.ctx.clearRect(),et.forEach(X=>{X.app.ctx&&(X.nextFrame({gravity:.5}),(X.x-X.radius>X.app.ctx.canvas.width||X.x+X.radius<0||X.y-X.radius>X.app.ctx.canvas.height||X.y+X.radius<0)&&(X.x=X.app.ctx.canvas.width/2,X.y=X.app.ctx.canvas.height,X.vx=Math.random()*2-1,X.vy=Math.random()*-10-10),X.draw({extra:()=>{X.app.ctx&&(X.app.ctx.fillStyle=hp())}}))}),!0))}function k(){const ct="ShapeBallEase";if(d.value==ct||!a.ctx)return;d.value=ct;const et=a.ctx.canvas.width/2,X=a.ctx.canvas.height/2,at=new dr(a,{x:et,y:X,radius:30});Re.register(()=>!a.ctx||d.value!=ct?(at.destroy(),!1):(a.ctx.clearRect(),at.draw({dragMouseMove:!0,dragFreeEaseTo:{targetX:et,targetY:X}}),!0))}function A(){const ct="ShapeBallSpringChain";if(d.value==ct||!a.ctx)return;d.value=ct;const et=a.ctx.canvas.width/2,X=a.ctx.canvas.height/2,at=[];for(let _=0;_<3;_++)at.push(new dr(a,{x:et,y:X,radius:20}));const R=[new Ye(a),new Ye(a)],K=.03,C=.9,b=2;Re.register(()=>!a.ctx||d.value!=ct?(at.forEach(_=>_.destroy()),R.forEach(_=>_.destroy()),!1):(a.ctx.clearRect(),at.forEach((_,P)=>{if(P===0)_.nextFrameSpringTo(a.mousePoint,{spring:K,friction:C,gravity:b}),R[0].x=_.x,R[0].y=_.y,R[0].toX=a.mousePoint.x,R[0].toY=a.mousePoint.y,R[0].draw();else{const L=at[P-1];_.nextFrameSpringTo(L,{spring:K,friction:C,gravity:b}),R[0].x=_.x,R[0].y=_.y,R[0].toX=L.x,R[0].toY=L.y,R[0].draw()}_.draw()}),!0))}function B(){const ct="ShapeBallSpringMulti";if(d.value==ct||!a.ctx)return;d.value=ct;const et=a.ctx.canvas.width/2,X=a.ctx.canvas.height/2,at=new dr(a,{x:et,y:X,radius:20}),R=[];for(let _=0;_<3;_++)R.push(new dr(a,{x:Math.random()*a.ctx.canvas.width,y:Math.random()*a.ctx.canvas.height,radius:10}));const K=[new Ye(a),new Ye(a),new Ye(a)],C=.03,b=.9;Re.register(()=>!a.ctx||d.value!=ct?(at.destroy(),R.forEach(_=>_.destroy()),K.forEach(_=>_.destroy()),!1):(a.ctx.clearRect(),R.forEach((_,P)=>{K[P].x=_.x,K[P].y=_.y,K[P].toX=at.x,K[P].toY=at.y,K[P].draw(),_.draw({dragMouseMove:!0,extra:()=>{a.ctx.fillStyle="#00ff00"}})}),at.nextFrameSpringTo(R,{spring:C,friction:b}),at.draw(),!0))}function M(){const ct="ShapeBallSpringConnect";if(d.value==ct||!a.ctx)return;d.value=ct;const et=[];for(let b=0;b<3;b++)et.push(new dr(a,{x:Math.random()*a.ctx.canvas.width,y:Math.random()*a.ctx.canvas.height,radius:15}));const X=[new Ye(a),new Ye(a),new Ye(a)],C={springLength:120,spring:.03,friction:.9};Re.register(()=>!a.ctx||d.value!=ct?(et.forEach(b=>b.destroy()),X.forEach(b=>b.destroy()),!1):(a.ctx.clearRect(),et[0].isMouseDownInBounds||(et[0].nextFrameSpringConnect(et[1],C),et[0].nextFrameSpringConnect(et[2],C)),et[1].isMouseDownInBounds||(et[1].nextFrameSpringConnect(et[0],C),et[1].nextFrameSpringConnect(et[2],C)),et[2].isMouseDownInBounds||(et[2].nextFrameSpringConnect(et[0],C),et[2].nextFrameSpringConnect(et[1],C)),et.forEach(b=>{b.draw({dragMouseMove:!0})}),X[0].x=et[0].x,X[0].y=et[0].y,X[0].toX=et[1].x,X[0].toY=et[1].y,X[1].x=et[1].x,X[1].y=et[1].y,X[1].toX=et[2].x,X[1].toY=et[2].y,X[2].x=et[2].x,X[2].y=et[2].y,X[2].toX=et[0].x,X[2].toY=et[0].y,X.forEach(b=>{b.draw()}),!0))}function N(){const ct="ShapeLineCurve";if(d.value==ct||!a.ctx)return;d.value=ct;const et=50,X=new Ye(a,{x:et,y:a.ctx.canvas.height-et,toX:a.ctx.canvas.width-et,toY:a.ctx.canvas.height-et});Re.register(()=>!a.ctx||d.value!=ct?(X.destroy(),!1):(a.ctx.clearRect(),X.c1x=a.mousePoint.x,X.c1y=a.mousePoint.y,X.draw(),X.drawQuadratic({extra:()=>{a.ctx.lineWidth=2,a.ctx.strokeStyle="#ff0000"}}),X.drawQuadraticThrough({extra:()=>{a.ctx.lineWidth=2,a.ctx.strokeStyle="#00ff00"}}),!0))}function D(){const ct="ShapeLineRandom";if(!a.ctx)return;d.value=ct;const et=new Ye(a,{x:0,y:0});a.ctx.clearRect();const X=[];for(let at=0;at<10;at++){const R={x:Math.random()*a.ctx.canvas.width,y:Math.random()*a.ctx.canvas.height};X.push(R),new Bo(a,{x:R.x,y:R.y,width:6,height:6}).draw({extra:()=>{a.ctx.fillStyle="#eeeeee"}})}et.drawQuadraticThroughCurveNotGood(X,{extra:()=>{a.ctx.lineWidth=2,a.ctx.strokeStyle="pink"}}),et.drawQuadraticThroughCurve(X,{extra:()=>{a.ctx.lineWidth=2,a.ctx.strokeStyle="#0000ff"}})}function U(ct="ShapeRabbit",et=qc){if(!a.ctx)return;d.value=ct,g.value=ct;const X=50,at=new et(a,{x:X,y:X}),R=new et(a,{x:X,y:X}),K=2e3,C=ve.toTween({x:at.x,y:at.y},{x:a.ctx.canvas.width-X,y:a.ctx.canvas.height-X},{duration:K,onUpdate:_=>{at.draw({extra:()=>{at.x=_.x,at.y=_.y,a.ctx.globalAlpha=.3}})},onComplete:_=>{at.draw({extra:()=>{at.x=_.x,at.y=_.y,a.ctx.globalAlpha=.3}})}}).tween,b=ve.toTween({x:R.x,y:R.y},{x:a.ctx.canvas.width-X,y:a.ctx.canvas.height-X},{duration:K,easeFunction:s.value,onUpdate:_=>{R.draw({extra:()=>{R.x=_.x,R.y=_.y}})},onComplete:_=>{R.draw({extra:()=>{R.x=_.x,R.y=_.y}})}}).tween;C.start(),b.start(),Re.register(()=>{if(!a.ctx||d.value!=ct)return at.destroy(),R.destroy(),!1;a.ctx.clearRect();const _=C.update(),P=b.update();return _||P})}function H(){U("ShapeFox",Sp)}function F(){U("ShapeRabbit",qc)}const it=Je({translateTo:{from:{translateTo:[0,0]},to:{translateTo:["150px","150px"]},selected:!1},translateXTo:{from:{translateXTo:0},to:{translateXTo:"150px"},selected:!1},translateYTo:{from:{translateYTo:0},to:{translateYTo:"150px"},selected:!1},translateZTo:{from:{translateZTo:0},to:{translateZTo:"150px"},selected:!1},translate3dTo:{from:{translate3dTo:[0,0,0]},to:{translate3dTo:["150px","150px","150px"]},selected:!1},rotateTo:{from:{rotateTo:0},to:{rotateTo:360},selected:!1},rotateXTo:{from:{rotateXTo:0},to:{rotateXTo:360},selected:!1},rotateYTo:{from:{rotateYTo:0},to:{rotateYTo:360},selected:!1},rotateZTo:{from:{rotateZTo:0},to:{rotateZTo:360},selected:!1},rotate3dTo:{from:{rotate3dTo:[0,0,0]},to:{rotate3dTo:[360,360,360]},selected:!1},scaleTo:{from:{scaleTo:1},to:{scaleTo:2},selected:!1},scaleXTo:{from:{scaleXTo:1},to:{scaleXTo:2},selected:!1},scaleYTo:{from:{scaleYTo:1},to:{scaleYTo:2},selected:!1},scaleZTo:{from:{scaleZTo:1},to:{scaleZTo:2},selected:!1},scale3dTo:{from:{scale3dTo:[1,1,1]},to:{scale3dTo:[2,2,2]},selected:!1},skewTo:{from:{skewTo:0},to:{skewTo:1},selected:!1},skewXTo:{from:{skewXTo:0},to:{skewXTo:1},selected:!1},skewYTo:{from:{skewYTo:0},to:{skewYTo:1},selected:!1}}),ut=xt();function _t(ct){if(!ut.value)return;it[ct].selected=!it[ct].selected;const et={},X={};for(let at in it){const R=it[at];R.selected?(Object.assign(et,R.from),Object.assign(X,R.to)):(Zl(et,R.from),Zl(X,R.to))}ut.value.style.transform="",ve.toTweenCSS(ut.value,et,X,{duration:2e3,easeFunction:s.value}).startAuto()}let pt=Math.random()*20;const ht=xt();function wt(){ht.value?.goto(pt)}function mt(ct){ct<100&&(pt+=Math.random()*20)}return t({}),(ct,et)=>(dt(),vt("div",null,[ot("div",Dm,[Nt(Kt,{onClick:v,stylePattern:"outline"},{default:Yt(()=>[ee(" ShapeArrow + ShapeLine ")]),_:1}),Nt(Kt,{onClick:y,stylePattern:"outline"},{default:Yt(()=>[ee(" ShapeRect ")]),_:1}),Nt(Kt,{onClick:w,stylePattern:"outline"},{default:Yt(()=>[ee(" ShapeRect - 俄罗斯方块 ")]),_:1}),Nt(Kt,{onClick:I,stylePattern:"outline"},{default:Yt(()=>[ee(" ShapeBall - 喷泉 ")]),_:1}),Nt(Kt,{onClick:k,stylePattern:"outline"},{default:Yt(()=>[ee(" ShapeBall - ease ")]),_:1}),Nt(Kt,{onClick:A,stylePattern:"outline"},{default:Yt(()=>[ee(" ShapeBall - 链式弹簧 ")]),_:1}),Nt(Kt,{onClick:B,stylePattern:"outline"},{default:Yt(()=>[ee(" ShapeBall - 多点弹簧 ")]),_:1}),Nt(Kt,{onClick:M,stylePattern:"outline"},{default:Yt(()=>[ee(" ShapeBall - 连接弹簧 ")]),_:1}),Nt(Kt,{onClick:N,stylePattern:"outline"},{default:Yt(()=>[ee(" ShapeLine - curve ")]),_:1}),Nt(Kt,{onClick:D,stylePattern:"outline"},{default:Yt(()=>[ee(" ShapeLine - random ")]),_:1})]),ot("div",$m,"选择缓动函数: "+Qt(i.value),1),ot("div",zm,[Nt(Kt,{onClick:H,stylePattern:g.value=="ShapeFox"?"fullfilled":"outline"},{default:Yt(()=>[ee(" ShapeFox ")]),_:1},8,["stylePattern"]),Nt(Kt,{onClick:F,stylePattern:g.value=="ShapeRabbit"?"fullfilled":"outline"},{default:Yt(()=>[ee(" ShapeRabbit ")]),_:1},8,["stylePattern"])]),ot("div",Bm,[ot("div",null,[ot("canvas",{class:"target",ref_key:"canvasRef",ref:u,width:r.canvasWidth,height:r.canvasHeight},null,8,Gm)]),ot("div",null,[Nt(ea,{onSelectedEaseFunction:o})])]),ot("div",null,[ot("div",Vm,[(dt(!0),vt(le,null,Pe(it,(X,at,R)=>(dt(),ge(Kt,{onClick:K=>_t(at.toString()),key:at,stylePattern:X.selected?"fullfilled":"outline"},{default:Yt(()=>[ee(Qt(at),1)]),_:2},1032,["onClick","stylePattern"]))),128))]),ot("div",{class:"tween-css",style:Tt({width:r.canvasWidth+"px",height:r.canvasHeight+"px"})},[ot("div",{class:"tween-css-target",ref_key:"tweenCSSTargetRef",ref:ut},null,512)],4)]),Nt(na),ot("div",null,[Nt(Kt,{onClick:wt,stylePattern:"outline"},{default:Yt(()=>[ee(" 开始 ")]),_:1}),Nt(ui,{ref_key:"progressBarRef",ref:ht,onComplete:mt},null,512)])]))}}),tv="",Hm=Gt(jm,[["__scopeId","data-v-da11d9ed"]]),Um=["width","height"],Wm=$t({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(e,{expose:t,emit:n}){const r=e;let i=()=>{};const s=xt();return te(s,()=>{if(!s.value)return;const o=new Fo(s.value);o.ctx.strokeStyle=r.brushColor,o.ctx.lineWidth=r.brushSize,o.drawMouseMoveLine("line"),i=()=>{o.ctx.toSVGOperation().toDownloadSVGString(o.ctx.toRawSVG().raw,r.downloadFileName)}}),t({download:()=>i()}),(o,a)=>(dt(),vt("canvas",{ref_key:"panelRef",ref:s,width:r.canvasWidth,height:r.canvasHeight,style:Tt([`border: 1px solid ${o.borderColor}`])},null,12,Um))}}),qm=["width","height"],Ym=["src","type"],Xm={class:"bar-wrap"},Km=$t({customOptions:{ProgressBar:ui},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(e,{expose:t,emit:n}){const r=e;function i(){ve.toTween({x:0},{x:100},{duration:this.duration,precision:.05,onUpdate:u=>{o.value?.goto(u.x)}}).startAuto(()=>this.currentTime)}const s=xt(),o=xt();te(s,()=>{s.value&&(s.value.addEventListener("play",i),r.autoplay&&Do.tryAutoPlayOrAutoPlayAfterClick(s.value))}),ar(()=>{s.value?.removeEventListener(i)});function a(){s.value?.play()}return t({play:a}),(u,d)=>(dt(),vt("div",{class:"wrap",style:Tt({width:r.width,height:r.height}),onClick:a},[ot("video",{ref_key:"video",ref:s,width:r.width,height:r.height,preload:"metadata"},[ot("source",{src:r.src,type:r.type},null,8,Ym)],8,qm),ot("div",Xm,[Nt(ui,{ref_key:"bar",ref:o,width:r.width,height:"10px"},null,8,["width"])])],4))}}),ev="",Zm=Gt(Km,[["__scopeId","data-v-1eedeac4"]]),Qm=["width","height"],Jm=["fill"],tg=["fill"],eg=["fill"],ng=$t({__name:"SVGPrompt",props:{width:{default:"1.5em"},height:{},color:{default:Rt.colorRed}},setup(e){const t=e;return(n,r)=>(dt(),vt("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[ot("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,Jm),ot("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,tg),ot("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,eg)],8,Qm))}}),nv="",au=Gt(ng,[["__scopeId","data-v-41294f60"]]),rg={class:"wrap"},ig=["type","required"],sg={class:"ellipsis"},og={key:1,style:{}},ag=$t({customOptions:{SVGPrompt:au},inheritAttrs:!0,__name:"Input",props:{placeholder:{},placeholderJump:{type:Boolean,default:!1},height:{default:"44px"},type:{default:"text"},required:{type:Boolean,default:!1},focusColor:{default:Rt.colorPrimary},errorColor:{default:Rt.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(e,{expose:t,emit:n}){const r=e,i=n,s=r.placeholder.split(""),o=r.duration/s.length,a=xt(!1),u=xt(""),d=xt("");function g(){a.value=!0,i("focus"),i("ceFocus")}function v(){a.value=!1,i("blur"),i("ceBlur"),w()}function y(I){d.value=I.target.value,w()}function w(){if(d.value&&r.validator){const I=r.validator(d.value);if(!I.isValidated){u.value=I.msg;return}}u.value="",d.value&&(i("input",d.value),i("ceInput",d.value))}return ar(()=>{}),t({}),(I,k)=>(dt(),vt("div",rg,[ot("input",{type:r.type,required:r.required,autocomplete:"off",style:Tt({height:r.height,lineHeight:r.height,borderRadius:r.borderRadius,color:r.fontColor,borderColor:u.value?r.errorColor:a.value?r.focusColor:d.value?r.bgColor:"transparent",transition:r.duration+"ms"}),class:Se([a.value||d.value?"focus":"blur","input"]),onFocus:g,onBlur:v,onInput:y,onChange:y},null,46,ig),ot("div",{class:"placeholder",style:Tt({lineHeight:a.value||d.value?1.3:r.height,color:r.placeholderColor,transition:r.placeholderJump?"":r.duration+"ms",transform:r.placeholderJump?"":a.value||d.value?"translateY(-100%)":"none"})},[u.value?(dt(),vt("div",{key:0,style:Tt({color:r.errorColor,transform:r.placeholderJump?"translateY(-100%)":""})},[Nt(au,{class:"icon"}),ot("div",sg,Qt(u.value),1)],4)):ue("",!0),!u.value&&!r.placeholderJump?(dt(),vt("div",og,Qt(r.placeholder),1)):ue("",!0),!u.value&&r.placeholderJump?(dt(!0),vt(le,{key:2},Pe(Zt(s),(A,B)=>(dt(),vt("span",{key:B,style:Tt({transition:r.duration+"ms cubic-bezier(0.68, -0.55, 0.265, 1.55)",transitionDelay:`${o*B}ms`,transform:a.value||d.value?`translateX(${100*B}%) translateY(-100%)`:`translateX(${100*B}%)`}),class:"single"},Qt(A),5))),128)):ue("",!0)],4),ot("div",{class:"bg",style:Tt({transition:r.duration+"ms",backgroundColor:a.value||d.value?"transparent":r.bgColor,height:a.value||d.value?r.height:"2px",borderRadius:r.borderRadius})},null,4)]))}}),rv="",lg=Gt(ag,[["__scopeId","data-v-a89c662a"]]),cg=["width","height"],ug=["fill"],hg=$t({__name:"SVGDown",props:{width:{default:"1em"},height:{},color:{default:Rt.colorGrayCC}},setup(e){const t=e;return(n,r)=>(dt(),vt("svg",{viewBox:"0 0 20 20",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[ot("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,ug)],8,cg))}}),iv="",lu=Gt(hg,[["__scopeId","data-v-b1f2ae20"]]),fg=$t({customOptions:{SVGDown:lu},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"],setup(e,{expose:t,emit:n}){const r=e,i=n,s=xt(Number.MAX_SAFE_INTEGER+"px"),o=xt(),a=xt(!0);te(o,()=>{o.value&&(s.value=o.value.getBoundingClientRect().height+"px",a.value=r.initOpen)});function u(){a.value=!a.value,a.value?i("open"):i("close")}const d=xt("rotate(-180deg)");return Ch(()=>{d.value=a.value?"rotate(-180deg)":"rotate(0deg)"}),ar(()=>{}),t({}),(g,v)=>(dt(),vt("div",{class:"wrap",style:Tt({background:r.bgColor,color:r.fontColor,borderRadius:r.borderRadius})},[ot("div",{class:"title",onClick:u,style:Tt({height:r.height,lineHeight:r.height,margin:`0 ${r.padding}`,transitionDelay:`${a.value?0:r.duration}ms`,borderBottom:`${a.value?1:0}px solid ${r.borderColor}`})},[re(g.$slots,"title",{},()=>[ee("title")],!0),Nt(lu,{class:"arrow",style:Tt({transition:`transform ${r.duration}ms ease-in-out`,transform:d.value})},null,8,["style"])],4),ot("div",{class:"content",style:Tt({margin:`0 ${r.padding}`,transition:`max-height ${r.duration}ms ease-in-out`,maxHeight:a.value?s.value:"0"}),ref_key:"content",ref:o},[re(g.$slots,"content",{},void 0,!0)],4)],4))}}),sv="",dg=Gt(fg,[["__scopeId","data-v-d1ba246b"]]);Dt.Accordion=dg,Dt.AnimatePanel=Hm,Dt.Button=Kt,Dt.CheckboxGroup=g0,Dt.ColorPicker=B0,Dt.Dialog=Go,Dt.DialogLoading=Zp,Dt.EaseGraphDisplay=ss,Dt.EaseGroupGraphDisplay=ea,Dt.FPSStats=km,Dt.HandWritePanel=Wm,Dt.Icon=Xn,Dt.Input=lg,Dt.InterpolationGraphDisplay=os,Dt.InterpolationGroupGraphDisplay=na,Dt.MapTianditu=W0,Dt.MobileLayout=$p,Dt.Overlay=li,Dt.PlateDisplay=xm,Dt.PlateKeyboard=Jo,Dt.PlateMobile=fm,Dt.Pop=Xe,Dt.Popover=Vo,Dt.ProgressBar=ui,Dt.RadioGroup=c0,Dt.ResizeObserver=H0,Dt.SVGCheck=Zo,Dt.SVGCleanUp=rs,Dt.SVGDelete=ta,Dt.Select=t0,Dt.SlideLeftItem=vm,Dt.Switch=n0,Dt.Tab=nu,Dt.Tabs=Sm,Dt.Video=Zm,Object.defineProperty(Dt,Symbol.toStringTag,{value:"Module"})});
|
|
48
|
+
})`}static encodeHTML(t,e="encode"){const s={"&":"&","<":"<",">":">",""":'"',"'":"'"};for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&(t=t.replace(new RegExp(e=="decode"?i:s[i],"g"),e=="decode"?s[i]:i));return t}static getInnerText=t=>{let e=t.innerText;if(!e){const s=t.querySelector("slot")?.assignedNodes()||[];let i=0;for(;!e&&i<=s.length-1;)"innerText"in s[i]&&(e=s[i].innerText),i++}return e};static copyToClipboard=t=>new Promise((e,s)=>{if(navigator.clipboard)navigator.clipboard.writeText(t).then(e).catch(s);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():s()}catch(r){s(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(s=>{t(s.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 s=document.createElement("iframe");s.src=e,document.body.append(s),setTimeout(function(){s.contentWindow?.postMessage(t,e)},4e3),setTimeout(function(){s.remove()},6e3)}static getTextWidth=(t,e=12,s=400)=>{const i=document.createElement("span");i.style.visibility="hidden",i.style.padding="0",i.style.whiteSpace="nowrap",i.style.overflow="visible",i.style.fontSize=e>12?e+"px":"12px",i.style.fontWeight=s.toString(),i.innerText=t,document.body.appendChild(i);const r=i.offsetWidth;return document.body.removeChild(i),r};static getFixedWidthText=(t,e,s=12,i=400,r=!0)=>{let o="";if(!t||e<s)return o;const a=t.split(""),l="...";let c=r?X.getTextWidth(l,s,i):0;for(let u=0,h=a.length;u<h;u++)if(c+=X.getTextWidth(a[u],s,i),c>e){r&&(o+=l);break}else o+=a[u];return o}}function em(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Xc={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
|
|
49
|
+
* http://hammerjs.github.io/
|
|
50
|
+
*
|
|
51
|
+
* Copyright (c) 2016 Jorik Tangelder;
|
|
52
|
+
* Licensed under the MIT license */(function(n){(function(t,e,s,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(d,g,y){return setTimeout(w(d,y),g)}function f(d,g,y){return Array.isArray(d)?(p(d,y[g],y),!0):!1}function p(d,g,y){var S;if(d)if(d.forEach)d.forEach(g,y);else if(d.length!==i)for(S=0;S<d.length;)g.call(y,d[S],S,d),S++;else for(S in d)d.hasOwnProperty(S)&&g.call(y,d[S],S,d)}function m(d,g,y){var S="DEPRECATED METHOD: "+g+`
|
|
53
|
+
`+y+` AT
|
|
54
|
+
`;return function(){var V=new Error("get-stack-trace"),Q=V&&V.stack?V.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",xt=t.console&&(t.console.warn||t.console.log);return xt&&xt.call(t.console,S,Q),d.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 y=Object(g),S=1;S<arguments.length;S++){var V=arguments[S];if(V!==i&&V!==null)for(var Q in V)V.hasOwnProperty(Q)&&(y[Q]=V[Q])}return y}:v=Object.assign;var b=m(function(g,y,S){for(var V=Object.keys(y),Q=0;Q<V.length;)(!S||S&&g[V[Q]]===i)&&(g[V[Q]]=y[V[Q]]),Q++;return g},"extend","Use `assign`."),E=m(function(g,y){return b(g,y,!0)},"merge","Use `assign`.");function C(d,g,y){var S=g.prototype,V;V=d.prototype=Object.create(S),V.constructor=d,V._super=S,y&&v(V,y)}function w(d,g){return function(){return d.apply(g,arguments)}}function P(d,g){return typeof d==a?d.apply(g&&g[0]||i,g):d}function D(d,g){return d===i?g:d}function N(d,g,y){p(pt(g),function(S){d.addEventListener(S,y,!1)})}function A(d,g,y){p(pt(g),function(S){d.removeEventListener(S,y,!1)})}function at(d,g){for(;d;){if(d==g)return!0;d=d.parentNode}return!1}function lt(d,g){return d.indexOf(g)>-1}function pt(d){return d.trim().split(/\s+/g)}function Et(d,g,y){if(d.indexOf&&!y)return d.indexOf(g);for(var S=0;S<d.length;){if(y&&d[S][y]==g||!y&&d[S]===g)return S;S++}return-1}function bt(d){return Array.prototype.slice.call(d,0)}function Lt(d,g,y){for(var S=[],V=[],Q=0;Q<d.length;){var xt=g?d[Q][g]:d[Q];Et(V,xt)<0&&S.push(d[Q]),V[Q]=xt,Q++}return y&&(g?S=S.sort(function(ae,_e){return ae[g]>_e[g]}):S=S.sort()),S}function Ft(d,g){for(var y,S,V=g[0].toUpperCase()+g.slice(1),Q=0;Q<r.length;){if(y=r[Q],S=y?y+V:g,S in d)return S;Q++}return i}var _t=1;function dt(){return _t++}function Z(d){var g=d.ownerDocument||d;return g.defaultView||g.parentWindow||t}var I=/mobile|tablet|ip(ad|hone|od)|android/i,Y="ontouchstart"in t,z=Ft(t,"PointerEvent")!==i,mt=Y&&I.test(navigator.userAgent),ft="touch",At="pen",ie="mouse",Se="kinect",Te=25,Rt=1,Oe=2,Vt=4,re=8,$e=1,sn=2,rn=4,_=8,x=16,O=sn|rn,M=_|x,$=O|M,H=["x","y"],W=["clientX","clientY"];function L(d,g){var y=this;this.manager=d,this.callback=g,this.element=d.element,this.target=d.options.inputTarget,this.domHandler=function(S){P(d.options.enable,[d])&&y.handler(S)},this.init()}L.prototype={handler:function(){},init:function(){this.evEl&&N(this.element,this.evEl,this.domHandler),this.evTarget&&N(this.target,this.evTarget,this.domHandler),this.evWin&&N(Z(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&A(this.element,this.evEl,this.domHandler),this.evTarget&&A(this.target,this.evTarget,this.domHandler),this.evWin&&A(Z(this.element),this.evWin,this.domHandler)}};function U(d){var g,y=d.options.inputClass;return y?g=y:z?g=ta:mt?g=tr:Y?g=ea:g=ve,new g(d,F)}function F(d,g,y){var S=y.pointers.length,V=y.changedPointers.length,Q=g&Rt&&S-V===0,xt=g&(Vt|re)&&S-V===0;y.isFirst=!!Q,y.isFinal=!!xt,Q&&(d.session={}),y.eventType=g,K(d,y),d.emit("hammer.input",y),d.recognize(y),d.session.prevInput=y}function K(d,g){var y=d.session,S=g.pointers,V=S.length;y.firstInput||(y.firstInput=ht(g)),V>1&&!y.firstMultiple?y.firstMultiple=ht(g):V===1&&(y.firstMultiple=!1);var Q=y.firstInput,xt=y.firstMultiple,ee=xt?xt.center:Q.center,ae=g.center=vt(S);g.timeStamp=u(),g.deltaTime=g.timeStamp-Q.timeStamp,g.angle=ge(ee,ae),g.distance=jt(ee,ae),rt(y,g),g.offsetDirection=Mt(g.deltaX,g.deltaY);var _e=Tt(g.deltaTime,g.deltaX,g.deltaY);g.overallVelocityX=_e.x,g.overallVelocityY=_e.y,g.overallVelocity=c(_e.x)>c(_e.y)?_e.x:_e.y,g.scale=xt?Zi(xt.pointers,S):1,g.rotation=xt?xn(xt.pointers,S):0,g.maxPointers=y.prevInput?g.pointers.length>y.prevInput.maxPointers?g.pointers.length:y.prevInput.maxPointers:g.pointers.length,nt(y,g);var Ye=d.element;at(g.srcEvent.target,Ye)&&(Ye=g.srcEvent.target),g.target=Ye}function rt(d,g){var y=g.center,S=d.offsetDelta||{},V=d.prevDelta||{},Q=d.prevInput||{};(g.eventType===Rt||Q.eventType===Vt)&&(V=d.prevDelta={x:Q.deltaX||0,y:Q.deltaY||0},S=d.offsetDelta={x:y.x,y:y.y}),g.deltaX=V.x+(y.x-S.x),g.deltaY=V.y+(y.y-S.y)}function nt(d,g){var y=d.lastInterval||g,S=g.timeStamp-y.timeStamp,V,Q,xt,ee;if(g.eventType!=re&&(S>Te||y.velocity===i)){var ae=g.deltaX-y.deltaX,_e=g.deltaY-y.deltaY,Ye=Tt(S,ae,_e);Q=Ye.x,xt=Ye.y,V=c(Ye.x)>c(Ye.y)?Ye.x:Ye.y,ee=Mt(ae,_e),d.lastInterval=g}else V=y.velocity,Q=y.velocityX,xt=y.velocityY,ee=y.direction;g.velocity=V,g.velocityX=Q,g.velocityY=xt,g.direction=ee}function ht(d){for(var g=[],y=0;y<d.pointers.length;)g[y]={clientX:l(d.pointers[y].clientX),clientY:l(d.pointers[y].clientY)},y++;return{timeStamp:u(),pointers:g,center:vt(g),deltaX:d.deltaX,deltaY:d.deltaY}}function vt(d){var g=d.length;if(g===1)return{x:l(d[0].clientX),y:l(d[0].clientY)};for(var y=0,S=0,V=0;V<g;)y+=d[V].clientX,S+=d[V].clientY,V++;return{x:l(y/g),y:l(S/g)}}function Tt(d,g,y){return{x:g/d||0,y:y/d||0}}function Mt(d,g){return d===g?$e:c(d)>=c(g)?d<0?sn:rn:g<0?_:x}function jt(d,g,y){y||(y=H);var S=g[y[0]]-d[y[0]],V=g[y[1]]-d[y[1]];return Math.sqrt(S*S+V*V)}function ge(d,g,y){y||(y=H);var S=g[y[0]]-d[y[0]],V=g[y[1]]-d[y[1]];return Math.atan2(V,S)*180/Math.PI}function xn(d,g){return ge(g[1],g[0],W)+ge(d[1],d[0],W)}function Zi(d,g){return jt(g[0],g[1],W)/jt(d[0],d[1],W)}var zn={mousedown:Rt,mousemove:Oe,mouseup:Vt},Qi="mousedown",oe="mousemove mouseup";function ve(){this.evEl=Qi,this.evWin=oe,this.pressed=!1,L.apply(this,arguments)}C(ve,L,{handler:function(g){var y=zn[g.type];y&Rt&&g.button===0&&(this.pressed=!0),y&Oe&&g.which!==1&&(y=Vt),this.pressed&&(y&Vt&&(this.pressed=!1),this.callback(this.manager,y,{pointers:[g],changedPointers:[g],pointerType:ie,srcEvent:g}))}});var Ji={pointerdown:Rt,pointermove:Oe,pointerup:Vt,pointercancel:re,pointerout:re},U_={2:ft,3:At,4:ie,5:Se},Eu="pointerdown",Cu="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(Eu="MSPointerDown",Cu="MSPointerMove MSPointerUp MSPointerCancel");function ta(){this.evEl=Eu,this.evWin=Cu,L.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}C(ta,L,{handler:function(g){var y=this.store,S=!1,V=g.type.toLowerCase().replace("ms",""),Q=Ji[V],xt=U_[g.pointerType]||g.pointerType,ee=xt==ft,ae=Et(y,g.pointerId,"pointerId");Q&Rt&&(g.button===0||ee)?ae<0&&(y.push(g),ae=y.length-1):Q&(Vt|re)&&(S=!0),!(ae<0)&&(y[ae]=g,this.callback(this.manager,Q,{pointers:y,changedPointers:[g],pointerType:xt,srcEvent:g}),S&&y.splice(ae,1))}});var Y_={touchstart:Rt,touchmove:Oe,touchend:Vt,touchcancel:re},X_="touchstart",W_="touchstart touchmove touchend touchcancel";function Su(){this.evTarget=X_,this.evWin=W_,this.started=!1,L.apply(this,arguments)}C(Su,L,{handler:function(g){var y=Y_[g.type];if(y===Rt&&(this.started=!0),!!this.started){var S=q_.call(this,g,y);y&(Vt|re)&&S[0].length-S[1].length===0&&(this.started=!1),this.callback(this.manager,y,{pointers:S[0],changedPointers:S[1],pointerType:ft,srcEvent:g})}}});function q_(d,g){var y=bt(d.touches),S=bt(d.changedTouches);return g&(Vt|re)&&(y=Lt(y.concat(S),"identifier",!0)),[y,S]}var K_={touchstart:Rt,touchmove:Oe,touchend:Vt,touchcancel:re},Z_="touchstart touchmove touchend touchcancel";function tr(){this.evTarget=Z_,this.targetIds={},L.apply(this,arguments)}C(tr,L,{handler:function(g){var y=K_[g.type],S=Q_.call(this,g,y);S&&this.callback(this.manager,y,{pointers:S[0],changedPointers:S[1],pointerType:ft,srcEvent:g})}});function Q_(d,g){var y=bt(d.touches),S=this.targetIds;if(g&(Rt|Oe)&&y.length===1)return S[y[0].identifier]=!0,[y,y];var V,Q,xt=bt(d.changedTouches),ee=[],ae=this.target;if(Q=y.filter(function(_e){return at(_e.target,ae)}),g===Rt)for(V=0;V<Q.length;)S[Q[V].identifier]=!0,V++;for(V=0;V<xt.length;)S[xt[V].identifier]&&ee.push(xt[V]),g&(Vt|re)&&delete S[xt[V].identifier],V++;if(ee.length)return[Lt(Q.concat(ee),"identifier",!0),ee]}var J_=2500,Tu=25;function ea(){L.apply(this,arguments);var d=w(this.handler,this);this.touch=new tr(this.manager,d),this.mouse=new ve(this.manager,d),this.primaryTouch=null,this.lastTouches=[]}C(ea,L,{handler:function(g,y,S){var V=S.pointerType==ft,Q=S.pointerType==ie;if(!(Q&&S.sourceCapabilities&&S.sourceCapabilities.firesTouchEvents)){if(V)ty.call(this,y,S);else if(Q&&ey.call(this,S))return;this.callback(g,y,S)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function ty(d,g){d&Rt?(this.primaryTouch=g.changedPointers[0].identifier,ku.call(this,g)):d&(Vt|re)&&ku.call(this,g)}function ku(d){var g=d.changedPointers[0];if(g.identifier===this.primaryTouch){var y={x:g.clientX,y:g.clientY};this.lastTouches.push(y);var S=this.lastTouches,V=function(){var Q=S.indexOf(y);Q>-1&&S.splice(Q,1)};setTimeout(V,J_)}}function ey(d){for(var g=d.srcEvent.clientX,y=d.srcEvent.clientY,S=0;S<this.lastTouches.length;S++){var V=this.lastTouches[S],Q=Math.abs(g-V.x),xt=Math.abs(y-V.y);if(Q<=Tu&&xt<=Tu)return!0}return!1}var Pu=Ft(o.style,"touchAction"),Ou=Pu!==i,Nu="compute",Iu="auto",na="manipulation",jn="none",Us="pan-x",Ys="pan-y",er=sy();function sa(d,g){this.manager=d,this.set(g)}sa.prototype={set:function(d){d==Nu&&(d=this.compute()),Ou&&this.manager.element.style&&er[d]&&(this.manager.element.style[Pu]=d),this.actions=d.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var d=[];return p(this.manager.recognizers,function(g){P(g.options.enable,[g])&&(d=d.concat(g.getTouchAction()))}),ny(d.join(" "))},preventDefaults:function(d){var g=d.srcEvent,y=d.offsetDirection;if(this.manager.session.prevented){g.preventDefault();return}var S=this.actions,V=lt(S,jn)&&!er[jn],Q=lt(S,Ys)&&!er[Ys],xt=lt(S,Us)&&!er[Us];if(V){var ee=d.pointers.length===1,ae=d.distance<2,_e=d.deltaTime<250;if(ee&&ae&&_e)return}if(!(xt&&Q)&&(V||Q&&y&O||xt&&y&M))return this.preventSrc(g)},preventSrc:function(d){this.manager.session.prevented=!0,d.preventDefault()}};function ny(d){if(lt(d,jn))return jn;var g=lt(d,Us),y=lt(d,Ys);return g&&y?jn:g||y?g?Us:Ys:lt(d,na)?na:Iu}function sy(){if(!Ou)return!1;var d={},g=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(y){d[y]=g?t.CSS.supports("touch-action",y):!0}),d}var nr=1,Ne=2,is=4,wn=8,on=wn,Xs=16,Ue=32;function an(d){this.options=v({},this.defaults,d||{}),this.id=dt(),this.manager=null,this.options.enable=D(this.options.enable,!0),this.state=nr,this.simultaneous={},this.requireFail=[]}an.prototype={defaults:{},set:function(d){return v(this.options,d),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(d){if(f(d,"recognizeWith",this))return this;var g=this.simultaneous;return d=sr(d,this),g[d.id]||(g[d.id]=d,d.recognizeWith(this)),this},dropRecognizeWith:function(d){return f(d,"dropRecognizeWith",this)?this:(d=sr(d,this),delete this.simultaneous[d.id],this)},requireFailure:function(d){if(f(d,"requireFailure",this))return this;var g=this.requireFail;return d=sr(d,this),Et(g,d)===-1&&(g.push(d),d.requireFailure(this)),this},dropRequireFailure:function(d){if(f(d,"dropRequireFailure",this))return this;d=sr(d,this);var g=Et(this.requireFail,d);return g>-1&&this.requireFail.splice(g,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(d){return!!this.simultaneous[d.id]},emit:function(d){var g=this,y=this.state;function S(V){g.manager.emit(V,d)}y<wn&&S(g.options.event+Du(y)),S(g.options.event),d.additionalEvent&&S(d.additionalEvent),y>=wn&&S(g.options.event+Du(y))},tryEmit:function(d){if(this.canEmit())return this.emit(d);this.state=Ue},canEmit:function(){for(var d=0;d<this.requireFail.length;){if(!(this.requireFail[d].state&(Ue|nr)))return!1;d++}return!0},recognize:function(d){var g=v({},d);if(!P(this.options.enable,[this,g])){this.reset(),this.state=Ue;return}this.state&(on|Xs|Ue)&&(this.state=nr),this.state=this.process(g),this.state&(Ne|is|wn|Xs)&&this.tryEmit(g)},process:function(d){},getTouchAction:function(){},reset:function(){}};function Du(d){return d&Xs?"cancel":d&wn?"end":d&is?"move":d&Ne?"start":""}function Mu(d){return d==x?"down":d==_?"up":d==sn?"left":d==rn?"right":""}function sr(d,g){var y=g.manager;return y?y.get(d):d}function Le(){an.apply(this,arguments)}C(Le,an,{defaults:{pointers:1},attrTest:function(d){var g=this.options.pointers;return g===0||d.pointers.length===g},process:function(d){var g=this.state,y=d.eventType,S=g&(Ne|is),V=this.attrTest(d);return S&&(y&re||!V)?g|Xs:S||V?y&Vt?g|wn:g&Ne?g|is:Ne:Ue}});function ir(){Le.apply(this,arguments),this.pX=null,this.pY=null}C(ir,Le,{defaults:{event:"pan",threshold:10,pointers:1,direction:$},getTouchAction:function(){var d=this.options.direction,g=[];return d&O&&g.push(Ys),d&M&&g.push(Us),g},directionTest:function(d){var g=this.options,y=!0,S=d.distance,V=d.direction,Q=d.deltaX,xt=d.deltaY;return V&g.direction||(g.direction&O?(V=Q===0?$e:Q<0?sn:rn,y=Q!=this.pX,S=Math.abs(d.deltaX)):(V=xt===0?$e:xt<0?_:x,y=xt!=this.pY,S=Math.abs(d.deltaY))),d.direction=V,y&&S>g.threshold&&V&g.direction},attrTest:function(d){return Le.prototype.attrTest.call(this,d)&&(this.state&Ne||!(this.state&Ne)&&this.directionTest(d))},emit:function(d){this.pX=d.deltaX,this.pY=d.deltaY;var g=Mu(d.direction);g&&(d.additionalEvent=this.options.event+g),this._super.emit.call(this,d)}});function ia(){Le.apply(this,arguments)}C(ia,Le,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[jn]},attrTest:function(d){return this._super.attrTest.call(this,d)&&(Math.abs(d.scale-1)>this.options.threshold||this.state&Ne)},emit:function(d){if(d.scale!==1){var g=d.scale<1?"in":"out";d.additionalEvent=this.options.event+g}this._super.emit.call(this,d)}});function ra(){an.apply(this,arguments),this._timer=null,this._input=null}C(ra,an,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Iu]},process:function(d){var g=this.options,y=d.pointers.length===g.pointers,S=d.distance<g.threshold,V=d.deltaTime>g.time;if(this._input=d,!S||!y||d.eventType&(Vt|re)&&!V)this.reset();else if(d.eventType&Rt)this.reset(),this._timer=h(function(){this.state=on,this.tryEmit()},g.time,this);else if(d.eventType&Vt)return on;return Ue},reset:function(){clearTimeout(this._timer)},emit:function(d){this.state===on&&(d&&d.eventType&Vt?this.manager.emit(this.options.event+"up",d):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function oa(){Le.apply(this,arguments)}C(oa,Le,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[jn]},attrTest:function(d){return this._super.attrTest.call(this,d)&&(Math.abs(d.rotation)>this.options.threshold||this.state&Ne)}});function aa(){Le.apply(this,arguments)}C(aa,Le,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:O|M,pointers:1},getTouchAction:function(){return ir.prototype.getTouchAction.call(this)},attrTest:function(d){var g=this.options.direction,y;return g&(O|M)?y=d.overallVelocity:g&O?y=d.overallVelocityX:g&M&&(y=d.overallVelocityY),this._super.attrTest.call(this,d)&&g&d.offsetDirection&&d.distance>this.options.threshold&&d.maxPointers==this.options.pointers&&c(y)>this.options.velocity&&d.eventType&Vt},emit:function(d){var g=Mu(d.offsetDirection);g&&this.manager.emit(this.options.event+g,d),this.manager.emit(this.options.event,d)}});function rr(){an.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}C(rr,an,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[na]},process:function(d){var g=this.options,y=d.pointers.length===g.pointers,S=d.distance<g.threshold,V=d.deltaTime<g.time;if(this.reset(),d.eventType&Rt&&this.count===0)return this.failTimeout();if(S&&V&&y){if(d.eventType!=Vt)return this.failTimeout();var Q=this.pTime?d.timeStamp-this.pTime<g.interval:!0,xt=!this.pCenter||jt(this.pCenter,d.center)<g.posThreshold;this.pTime=d.timeStamp,this.pCenter=d.center,!xt||!Q?this.count=1:this.count+=1,this._input=d;var ee=this.count%g.taps;if(ee===0)return this.hasRequireFailures()?(this._timer=h(function(){this.state=on,this.tryEmit()},g.interval,this),Ne):on}return Ue},failTimeout:function(){return this._timer=h(function(){this.state=Ue},this.options.interval,this),Ue},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==on&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function ln(d,g){return g=g||{},g.recognizers=D(g.recognizers,ln.defaults.preset),new la(d,g)}ln.VERSION="2.0.7",ln.defaults={domEvents:!1,touchAction:Nu,enable:!0,inputTarget:null,inputClass:null,preset:[[oa,{enable:!1}],[ia,{enable:!1},["rotate"]],[aa,{direction:O}],[ir,{direction:O},["swipe"]],[rr],[rr,{event:"doubletap",taps:2},["tap"]],[ra]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var iy=1,Au=2;function la(d,g){this.options=v({},ln.defaults,g||{}),this.options.inputTarget=this.options.inputTarget||d,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=d,this.input=U(this),this.touchAction=new sa(this,this.options.touchAction),Ru(this,!0),p(this.options.recognizers,function(y){var S=this.add(new y[0](y[1]));y[2]&&S.recognizeWith(y[2]),y[3]&&S.requireFailure(y[3])},this)}la.prototype={set:function(d){return v(this.options,d),d.touchAction&&this.touchAction.update(),d.inputTarget&&(this.input.destroy(),this.input.target=d.inputTarget,this.input.init()),this},stop:function(d){this.session.stopped=d?Au:iy},recognize:function(d){var g=this.session;if(!g.stopped){this.touchAction.preventDefaults(d);var y,S=this.recognizers,V=g.curRecognizer;(!V||V&&V.state&on)&&(V=g.curRecognizer=null);for(var Q=0;Q<S.length;)y=S[Q],g.stopped!==Au&&(!V||y==V||y.canRecognizeWith(V))?y.recognize(d):y.reset(),!V&&y.state&(Ne|is|wn)&&(V=g.curRecognizer=y),Q++}},get:function(d){if(d instanceof an)return d;for(var g=this.recognizers,y=0;y<g.length;y++)if(g[y].options.event==d)return g[y];return null},add:function(d){if(f(d,"add",this))return this;var g=this.get(d.options.event);return g&&this.remove(g),this.recognizers.push(d),d.manager=this,this.touchAction.update(),d},remove:function(d){if(f(d,"remove",this))return this;if(d=this.get(d),d){var g=this.recognizers,y=Et(g,d);y!==-1&&(g.splice(y,1),this.touchAction.update())}return this},on:function(d,g){if(d!==i&&g!==i){var y=this.handlers;return p(pt(d),function(S){y[S]=y[S]||[],y[S].push(g)}),this}},off:function(d,g){if(d!==i){var y=this.handlers;return p(pt(d),function(S){g?y[S]&&y[S].splice(Et(y[S],g),1):delete y[S]}),this}},emit:function(d,g){this.options.domEvents&&ry(d,g);var y=this.handlers[d]&&this.handlers[d].slice();if(!(!y||!y.length)){g.type=d,g.preventDefault=function(){g.srcEvent.preventDefault()};for(var S=0;S<y.length;)y[S](g),S++}},destroy:function(){this.element&&Ru(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function Ru(d,g){var y=d.element;if(y.style){var S;p(d.options.cssProps,function(V,Q){S=Ft(y.style,Q),g?(d.oldCssProps[S]=y.style[S],y.style[S]=V):y.style[S]=d.oldCssProps[S]||""}),g||(d.oldCssProps={})}}function ry(d,g){var y=e.createEvent("Event");y.initEvent(d,!0,!0),y.gesture=g,g.target.dispatchEvent(y)}v(ln,{INPUT_START:Rt,INPUT_MOVE:Oe,INPUT_END:Vt,INPUT_CANCEL:re,STATE_POSSIBLE:nr,STATE_BEGAN:Ne,STATE_CHANGED:is,STATE_ENDED:wn,STATE_RECOGNIZED:on,STATE_CANCELLED:Xs,STATE_FAILED:Ue,DIRECTION_NONE:$e,DIRECTION_LEFT:sn,DIRECTION_RIGHT:rn,DIRECTION_UP:_,DIRECTION_DOWN:x,DIRECTION_HORIZONTAL:O,DIRECTION_VERTICAL:M,DIRECTION_ALL:$,Manager:la,Input:L,TouchAction:sa,TouchInput:tr,MouseInput:ve,PointerEventInput:ta,TouchMouseInput:ea,SingleTouchInput:Su,Recognizer:an,AttrRecognizer:Le,Tap:rr,Pan:ir,Swipe:aa,Pinch:ia,Rotate:oa,Press:ra,on:N,off:A,each:p,merge:E,extend:b,assign:v,inherit:C,bindFn:w,prefixed:Ft});var oy=typeof t<"u"?t:typeof self<"u"?self:{};oy.Hammer=ln,typeof i=="function"&&i.amd?i(function(){return ln}):n.exports?n.exports=ln:t[s]=ln})(window,document,"Hammer")})(Xc);var nm=Xc.exports;const sm=em(nm);function Vn(n){return n*Math.PI/180}function Co(n){return n*180/Math.PI}function im(n,t,e,s){const i=n-e,r=t-s;return Math.sqrt(i*i+r*r)}function Wc(n,t,e,s){const i=e-n,r=s-t;return Math.atan2(r,i)}function qc(n,t){return{x:Math.cos(n)*t,y:Math.sin(n)*t}}function Kc(n,t){const e=Math.sqrt(Math.pow(n,2)+Math.pow(t,2));return{x:n/=e,y:t/=e}}function So(n,t,e,s,i,r,o,a,l,c){let u=Math.PI*120/180,h=Math.PI/180*(+i||0),f=[],p,m=function(_t,dt,Z){const I=_t*Math.cos(Z)-dt*Math.sin(Z),Y=_t*Math.sin(Z)+dt*Math.cos(Z);return{x:I,y:Y}},v,b,E,C;if(c)v=c[0],b=c[1],E=c[2],C=c[3];else{p=m(n,t,-h),n=p.x,t=p.y,p=m(a,l,-h),a=p.x,l=p.y;let _t=(n-a)/2,dt=(t-l)/2,Z=_t*_t/(e*e)+dt*dt/(s*s);Z>1&&(Z=Math.sqrt(Z),e=Z*e,s=Z*s);let I=e*e,Y=s*s,z=(r==o?-1:1)*Math.sqrt(Math.abs((I*Y-I*dt*dt-Y*_t*_t)/(I*dt*dt+Y*_t*_t)));E=z*e*dt/s+(n+a)/2,C=z*-s*_t/e+(t+l)/2,v=Math.asin(Number(((t-C)/s).toFixed(9))),b=Math.asin(Number(((l-C)/s).toFixed(9))),v=n<E?Math.PI-v:v,b=a<E?Math.PI-b:b,v<0&&(v=Math.PI*2+v),b<0&&(b=Math.PI*2+b),o&&v>b&&(v=v-Math.PI*2),!o&&b>v&&(b=b-Math.PI*2)}let w=b-v;if(Math.abs(w)>u){let _t=b,dt=a,Z=l;b=v+u*(o&&b>v?1:-1),a=E+e*Math.cos(b),l=C+s*Math.sin(b),f=So(a,l,e,s,i,0,o,dt,Z,[b,_t,E,C])}w=b-v;let P=Math.cos(v),D=Math.sin(v),N=Math.cos(b),A=Math.sin(b),at=Math.tan(w/4),lt=4/3*e*at,pt=4/3*s*at,Et=[n,t],bt=[n+lt*D,t-pt*P],Lt=[a+lt*A,l-pt*N],Ft=[a,l];return bt[0]=2*Et[0]-bt[0],bt[1]=2*Et[1]-bt[1],c?[[...bt,...Lt,...Ft]].concat(f):[[...bt,...Lt,...Ft]].concat(f).map(_t=>{const dt=[];for(let Z=0,I=_t.length;Z<I;Z++)dt[Z]=Z%2?m(_t[Z-1],_t[Z],h).y:m(_t[Z],_t[Z+1],h).x;return dt})}function To(n,t,e,s,i,r){return[n/3+2/3*e,t/3+2/3*s,i/3+2/3*e,r/3+2/3*s,i,r]}function Ms(n,t,e,s){return[n,t,e,s,e,s]}const Fi={a:7,c:6,s:4,q:4,t:2,m:2,l:2,h:1,v:1,z:0};class Zn{static createSVGElement(t="path",e){const s=document.createElementNS.call(document,"http://www.w3.org/2000/svg",t);return e&&X.attribute(s,e),s}static createSvgPath(t){return this.createSVGElement("path",{d:t})}static downloadFromSVGElement(t,e="shape"){return Bc(Hp(t),`${e}.svg`)}static downloadFromSVGString(t,e="shape"){return Bc(jc(t),`${e}.svg`)}static getSVGRawStringFromElement(t){return Hc(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 parseSVGPath(t){const e=[];return t.replace(/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi,(s,i,r)=>{let o=i.toLowerCase();const a=Vp(r);for(o=="m"&&a.length>Fi[o]&&(e.push([i,...a.splice(0,Fi[o])]),o="l",i=i=="m"?"l":"L");a.length;){if(a.length<Fi[o])throw new Error(`parseSVGPath : ${s} : ${i} : $${a}`);e.push([i,...a.splice(0,Fi[o])])}return o=="z"&&e.push([i]),""}),e}static absolutizeSVGPath(t){let e=0,s=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=s;break;case"H":i=o[1];break;case"V":r=o[1];break;case"M":i=e=o[1],r=s=o[2];break;default:i=o[o.length-2],r=o[o.length-1]}return o})}static relativeSVGPath(t){let e=0,s=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=s;break;case"h":i+=o[1];break;case"v":r+=o[1];break;case"m":i+=o[1],r+=o[2],e+=o[1],s+=o[2];break;default:i+=o[o.length-2],r+=o[o.length-1]}return o})}static normalizeSVGPath(t){let e=[],s=0,i=0,r=0,o=0,a=0,l=0,c=0,u=0,h;for(let f=0,p=t.length;f<p;f++){let m=t[f];const v=m[0];switch(v){case"M":s=m[1],i=m[2];break;case"A":const b=So(r,o,m[1],m[2],m[3],m[4],m[5],m[6],m[7]);if(!b.length)continue;b.forEach((w,P)=>{const[D,N,A,at,lt,pt]=w;m=["C",D,N,A,at,lt,pt],P<b.length-1&&e.push(m)});break;case"S":let E=r,C=o;(h=="C"||h=="S")&&(E+=E-c,C+=C-u),m=["C",E,C,m[1],m[2],m[3],m[4]];break;case"T":h=="Q"||h=="T"?(a=r*2-a,l=o*2-l):(a=r,l=o),m=["C",...To(r,o,a,l,m[1],m[2])];break;case"Q":a=m[1],l=m[2],m=["C",...To(r,o,m[1],m[2],m[3],m[4])];break;case"L":m=["C",...Ms(r,o,m[1],m[2])];break;case"H":m=["C",...Ms(r,o,m[1],o)];break;case"V":m=["C",...Ms(r,o,r,m[1])];break;case"Z":m=["C",...Ms(r,o,s,i)];break}h=v,r=m[m.length-2],o=m[m.length-1],m.length>4?(c=m[m.length-4],u=m[m.length-3]):(c=r,u=o),e.push(m)}return e}static catmullRom2bezier(t){let e=[];for(let s=0,i=t.length;i-2>s;s+=2){let r;s==0?r=[{x:t[s],y:t[s+1]},{x:t[s],y:t[s+1]},{x:t[s+2],y:t[s+3]},{x:t[s+4],y:t[s+5]}]:i-4==s?r=[{x:t[s-2],y:t[s-1]},{x:t[s],y:t[s+1]},{x:t[s+2],y:t[s+3]},{x:t[s+2],y:t[s+3]}]:r=[{x:t[s-2],y:t[s-1]},{x:t[s],y:t[s+1]},{x:t[s+2],y:t[s+3]},{x:t[s+4],y:t[s+5]}];const o=[{x:r[1].x,y:r[1].y},{x:(-r[0].x+6*r[1].x+r[2].x)/6,y:(-r[0].y+6*r[1].y+r[2].y)/6},{x:(r[1].x+6*r[2].x-r[3].x)/6,y:(r[1].y+6*r[2].y-r[3].y)/6},{x:r[2].x,y:r[2].y}];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=[],s=["L",0,0],i;for(let r=0,o=t.length;r<o;r++){let a=t[r];switch(a[0]){case"M":s=["L",a[1],a[2]],e.push(a);break;case"Z":e.push(s);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 s,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,s&&(s[0]===c.to?(i=2*Number(s[c.x+2])-Number(s[c.x]),r=2*Number(s[c.x+3])-Number(s[c.x+1])):(i=Number(s[s.length-2]),r=Number(s[s.length-1]))),l.splice(1,0,i,r)),s=l}return t}static SVGPathDataToD(t){return t.map(e=>{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 curveDim(t,e,s,i,r,o,a,l){const c=[],u=[[],[]];let h,f,p,m,v,b,E,C;for(let N=0;N<2;++N){if(N===0?(f=6*t-12*s+6*r,h=-3*t+9*s-9*r+3*a,p=3*s-3*t):(f=6*e-12*i+6*o,h=-3*e+9*i-9*o+3*l,p=3*i-3*e),Math.abs(h)<1e-12){if(Math.abs(f)<1e-12)continue;m=-p/f,m>0&&m<1&&c.push(m);continue}E=f*f-4*p*h,C=Math.sqrt(E),!(E<0)&&(v=(-f+C)/(2*h),v>0&&v<1&&c.push(v),b=(-f-C)/(2*h),b>0&&b<1&&c.push(b))}let w=c.length,P;const D=w;for(;w--;)m=c[w],P=1-m,u[0][w]=P*P*P*t+3*P*P*m*s+3*P*m*m*r+m*m*m*a,u[1][w]=P*P*P*e+3*P*P*m*i+3*P*m*m*o+m*m*m*l;return u[0][D]=t,u[1][D]=e,u[0][D+1]=a,u[1][D+1]=l,u[0].length=u[1].length=D+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,s,i,r){const o=-3*e+9*s-9*i+3*r,a=t*o+6*e-12*s+6*i;return t*a-3*e+3*s}static bezlen(t,e,s,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],p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472];let m=0;for(let v=0;v<h;v++){const b=u*f[v]+u,E=this.base3(b,t,s,r,a),C=this.base3(b,e,i,o,l),w=E*E+C*C;m+=p[v]*Math.sqrt(w)}return u*m}}const Wt=Zn;class Re{id;x;prevX;y;prevY;degree;prevDegree;scaleOnOrigin;prevScaleOnOrigin;skewDegreeOnOrigin;prevSkewDegreeOnOrigin;vx;vy;ax;ay;mass;attrs;enableDrag;followMouse;targetToAfterDragFree;history=[];coordinateIsShapeCenter=!1;path2d=new Path2D;isDragging=!1;el;constructor(t){this.id=Ap(),this.prevX=this.x=t?.x||0,this.prevY=this.y=t?.y||0,this.prevDegree=this.degree=t?.degree||0,this.prevScaleOnOrigin=this.scaleOnOrigin=t?.scaleOnOrigin||1,this.prevSkewDegreeOnOrigin=this.skewDegreeOnOrigin=t?.skewDegreeOnOrigin||0,this.vx=t?.vx||0,this.vy=t?.vy||0,this.ax=t?.ax||0,this.ay=t?.ay||0,this.mass=t?.mass||0,this.attrs=Object.assign({fill:"none",stroke:"none"},t?.attrs),this.enableDrag=t?.enableDrag||!1,this.followMouse=t?.followMouse||!1,this.targetToAfterDragFree=t?.targetToAfterDragFree}save(){this.history.push($c(this))}restore(){const t=this.history.pop();t&&(this.id=t.id,this.x=t.x,this.y=t.y,this.prevDegree=this.degree=t.degree,this.prevScaleOnOrigin=this.scaleOnOrigin=t.scaleOnOrigin,this.prevSkewDegreeOnOrigin=this.skewDegreeOnOrigin=t.skewDegreeOnOrigin,this.vx=t.vx,this.vy=t.vy,this.ax=t.ax,this.ay=t.ay,this.mass=t.mass,this.attrs=t.attrs)}getBoundingClientRect(){return null}toSVGPathD(){const t=[],e=this.toSVGPathData();return e[0]&&Array.isArray(e[0])?t.push(...e):t.push(e),Wt.SVGPathDataToD(t)}distanceTo(t){return im(this.x,this.y,t.x,t.y)}angleTo(t){return this.degree=Co(Wc(this.x,this.y,t.x,t.y)),this.degree}velocityTo(t){return{vx:t.x-this.x,vy:t.y-this.y}}followTo(t,e=3){const s=this.angleTo(t),{x:i,y:r}=qc(Vn(s),e);this.vx=i,this.vy=r,this.nextFrame()}followAccelerationTo(t,e=.05){const s=this.angleTo(t),{x:i,y:r}=qc(Vn(s),e);this.ax=i,this.ay=r,this.nextFrame()}nextFrame(t){const e=t?.gravity??0,s=t?.friction??0;if(this.vx+=this.ax,this.vy+=this.ay,this.vy+=e,s>0){const i=Math.atan2(this.vy,this.vx);let r=Math.sqrt(this.vx*this.vx+this.vy*this.vy);r>s?r-=s:r=0,this.vx=Math.cos(i)*r,this.vy=Math.sin(i)*r}this.x+=this.vx,this.y+=this.vy}nextFrameEaseTo(t,e){const s=e?.gravity??0,i=e?.friction??1,r=e?.easing??.05,o=t.x-this.x,a=t.y-this.y;this.vx=o*r,this.vy=a*r,this.vy+=s,this.vx*=i,this.vy*=i,this.x+=this.vx,this.y+=this.vy}nextFrameSpringTo(t,e){const s=e?.gravity??0,i=e?.friction??.95,r=e?.spring??.03;(Array.isArray(t)?t:[t]).forEach(a=>{const l=a.x-this.x,c=a.y-this.y,u=l*r,h=c*r;this.vx+=u,this.vy+=h}),this.vy+=s,this.vx*=i,this.vy*=i,this.x+=this.vx,this.y+=this.vy}nextFrameSpringConnect(t,e){const s=e?.gravity??0,i=e?.friction??.95,r=e?.spring??.03,o=e?.springLength??100,a=this.angleTo(t);this.nextFrameSpringTo(new Qt({x:t.x-Math.cos(Vn(a))*o,y:t.y-Math.sin(Vn(a))*o}),{spring:r,friction:i,gravity:s})}}class Ce extends Re{width;height;borderRadius;constructor(t){super(t),this.width=t.width,this.height=t.height,this.borderRadius=t.borderRadius||0}static fromBezier(t,e,s,i,r,o,a,l){const c=Zn.curveDim(t,e,s,i,r,o,a,l);return new Ce({x:c.min.x,y:c.min.y,width:c.max.x-c.min.x,height:c.max.y-c.min.y})}getBoundingClientRect(){return this}toSVGPathData(){return this.borderRadius?[["M",this.x+this.borderRadius,this.y],["l",this.width-this.borderRadius*2,0],["a",this.borderRadius,this.borderRadius,0,0,1,this.borderRadius,this.borderRadius],["l",0,this.height-this.borderRadius*2],["a",this.borderRadius,this.borderRadius,0,0,1,-this.borderRadius,this.borderRadius],["l",this.borderRadius*2-this.width,0],["a",this.borderRadius,this.borderRadius,0,0,1,-this.borderRadius,-this.borderRadius],["l",0,this.borderRadius*2-this.height],["a",this.borderRadius,this.borderRadius,0,0,1,this.borderRadius,-this.borderRadius],["z"]]:[["M",this.x,this.y],["l",this.width,0],["l",0,this.height],["l",-this.width,0],["z"]]}toCanvasContext(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 Ce({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]}}class Qt extends Re{radius;constructor(t){super(t),this.coordinateIsShapeCenter=!0,this.radius=t?.radius||0}getBoundingClientRect(){return new Ce({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],["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()}toArray(){return[this.x,this.y]}setX(t){this.x=t}setY(t){this.y=t}setXY(t,e){this.x=t,this.y=e}eq(t){return this.x===t.x&&this.y===t.y}midPointBtw(t){return new Qt({x:this.x+(t.x-this.x)/2,y:this.y+(t.y-this.y)/2})}clone(t){return new Qt({x:t.x,y:t.y,radius:t.radius})}nextFrameCollisionTo(t){const e=t.x-this.x,s=t.y-this.y;if(Math.sqrt(e*e+s*s)<this.radius+t.radius){const o=Math.atan2(s,e),a=Math.sin(o),l=Math.cos(o),c={x:0,y:0},u=r(e,s,a,l,!0),h=r(this.vx,this.vy,a,l,!0),f=r(t.vx,t.vy,a,l,!0),p=h.x-f.x;h.x=((this.mass-t.mass)*h.x+2*t.mass*f.x)/(this.mass+t.mass),f.x=p+h.x;const m=Math.abs(h.x)+Math.abs(f.x),v=this.radius+t.radius-Math.abs(c.x-u.x);c.x+=h.x/m*v,u.x+=f.x/m*v;const b=r(c.x,c.y,a,l,!1),E=r(u.x,u.y,a,l,!1);t.x=this.x+E.x,t.y=this.y+E.y,this.x=this.x+b.x,this.y=this.y+b.y;const C=r(h.x,h.y,a,l,!1),w=r(f.x,f.y,a,l,!1);this.vx=C.x,this.vy=C.y,t.vx=w.x,t.vy=w.y}function r(o,a,l,c,u=!1){return{x:u?o*c+a*l:o*c-a*l,y:u?a*c-o*l:a*c+o*l}}}nextFrameBounce(t,e){const s=t.x,i=t.y,r=t.x+t.width,o=t.y+t.height,a=e?.bounce??-1;this.x+this.radius>r?(this.x=r-this.radius,this.vx*=a):this.x-this.radius<s&&(this.x=s+this.radius,this.vx*=a),this.y+this.radius>o?(this.y=o-this.radius,this.vy*=a):this.y-this.radius<i&&(this.y=i+this.radius,this.vy*=a)}}class rm{constructor(){}static getFormatKeyNames(t){const e=Qp(),s=[];return t.ctrl&&s.push(e?"Cmd":"Ctrl"),t.shift&&s.push("Shift"),t.alt&&s.push("Alt"),typeof t.key=="string"?s.push(yo(t.key)):Array.isArray(t.key)&&(t.key.map(i=>yo(i)),s.push(...t.key)),s}static matchKeyScheme(t,e){const s=t.ctrl??!1,i=t.shift??!1,r=t.alt??!1;if(t.exact)return(s===e.metaKey||s===e.ctrlKey)&&i===e.shiftKey&&r===e.altKey;const o=[];return s&&o.push(s===e.metaKey||s===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 s=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),s.removeEventListener("keyup",c)};s.addEventListener("keyup",c)}};return e.title=t?.title??"",e.formatedKeyNames=r,e.pause=()=>i=!0,e.restart=()=>i=!1,e.removeListener=()=>s.removeEventListener("keydown",o),s.addEventListener("keydown",o),e}}class Ct extends Gc{container;width;height;mousePoint;hammer;domEventRemoveListeners=[];constructor(t=document.documentElement,e=!0){super(),this.container=t,this.width=this.container.clientWidth,this.height=this.container.clientHeight,this.hammer=new sm(this.container),this.mousePoint=new Qt({x:0,y:0}),e&&this.start()}_emitDebounce=zp((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 singleton;static globalScrollChangeCallbacks=[];static get page(){if(Ct.singleton)return Ct.singleton;Ct.singleton=new Ct,Ct.singleton.registerKeyDown({title:"打开",key:"o",ctrl:!0,exact:!0},()=>{Bp().then(e=>Up(e[0])).then(e=>{Ct.singleton.emit("openFile",e)}).catch(e=>{Ct.singleton.emit("openFileError",e)})}),Ct.singleton.registerMatchMediaChange("(prefers-color-scheme: dark)");const t=()=>Ct.globalScrollChangeCallbacks.forEach(e=>e());return Ct.singleton.registerGlobalScrollChange=e=>{Ct.globalScrollChangeCallbacks.push(e),Ct.globalScrollChangeCallbacks.length==1&&document.addEventListener("scroll",t)},Ct.singleton.removeGlobalScrollChange=e=>{const s=Ct.globalScrollChangeCallbacks.findIndex(i=>i==e);s>=0&&(Ct.globalScrollChangeCallbacks.splice(s,1),Ct.globalScrollChangeCallbacks.length==0&&document.removeEventListener("scroll",t))},Ct.singleton}start(){this.initMouseEventListeners(),this.on("pointerMove",this.setMousePoint),this.addDOMEventRemoveListeners(()=>{this.off("pointerMove",this.setMousePoint)}),this.registerResizeObserver(),this.registerElementDisplayInParentWhenScrollChange()}restart(){this.destroy(),this.start()}destroy(){this.domEventRemoveListeners.forEach(t=>t()),this.removeAllListeners()}addDOMEventRemoveListeners(t){this.domEventRemoveListeners.push(t)}setMousePoint(t){const e=Kp(this.container,t);return this.mousePoint.x=e.x,this.mousePoint.y=e.y,e}initMouseEventListeners(){const t=I=>{this.emit("mouseDown",I),this.container.style.userSelect="none"},e=I=>{this.emit("mouseUp",I),this.container.style.userSelect=""},s=I=>{this.emit("mouseMove",I)},i=I=>{this.emit("mouseOver",I)},r=I=>{this.emit("mouseOut",I),this.container.style.userSelect=""},o=I=>{this.emit("mouseClick",I)},a=I=>{this.emit("mouseDoubleClick",I)},l=I=>{this.emit("mouseWheel",I)},c=I=>{this.emit("mouseContextMenu",I)},u=I=>{this.emit("touchStart",I),this.container.style.userSelect="none"},h=I=>{this.emit("touchEnd",I),this.container.style.userSelect=""},f=I=>{this.emit("touchCancel",I),this.container.style.userSelect=""},p=I=>{this.emit("touchMove",I)},m=I=>{this.emit("pointerDown",I),this.container.style.userSelect="none"},v=I=>{this.emit("pointerUp",I),this.container.style.userSelect=""},b=I=>{this.emit("pointerCancel",I),this.container.style.userSelect=""},E=I=>{this.emit("pointerMove",I)},C=I=>{this.emit("pan",I)},w=I=>{this.emit("panStart",I),this.container.style.userSelect="none"},P=I=>{this.emit("panMove",I)},D=I=>{this.emit("panEnd",I),this.container.style.userSelect=""},N=I=>{this.emit("panCancel",I),this.container.style.userSelect=""},A=I=>{this.emit("panLeft",I)},at=I=>{this.emit("panRight",I)},lt=I=>{this.emit("panUp",I),this.container.style.userSelect=""},pt=I=>{this.emit("panDown",I),this.container.style.userSelect="none"},Et=I=>{this.emit("pinch",I)},bt=I=>{this.emit("press",I)},Lt=I=>{this.emit("rotate",I)},Ft=I=>{this.emit("swipe",I)},_t=I=>{this.emit("tap",I)},dt=I=>{!I.target||this.container==I.target||this.container.contains(I.target)||this.emit("tapOutSide",I)};this.container.addEventListener("mousedown",t),this.container.addEventListener("mouseup",e),this.container.addEventListener("mousemove",s),this.container.addEventListener("mouseover",i),this.container.addEventListener("mouseout",r),this.container.addEventListener("click",o),this.container.addEventListener("dblclick",a),this.container.addEventListener("wheel",l),this.container.addEventListener("contextmenu",c),this.container.addEventListener("touchstart",u),this.container.addEventListener("touchend",h),this.container.addEventListener("touchcancel",f),this.container.addEventListener("touchmove",p),this.container.addEventListener("pointerdown",m),this.container.addEventListener("pointerup",v),this.container.addEventListener("pointercancel",b),this.container.addEventListener("pointermove",E),this.hammer.on("pan",C),this.hammer.on("panstart",w),this.hammer.on("panmove",P),this.hammer.on("panend",D),this.hammer.on("pancancel",N),this.hammer.on("panleft",A),this.hammer.on("panright",at),this.hammer.on("panup",lt),this.hammer.on("pandown",pt),this.hammer.on("pinch",Et),this.hammer.on("press",bt),this.hammer.on("rotate",Lt),this.hammer.on("swipe",Ft),this.hammer.on("tap",_t),document.addEventListener("pointerdown",dt,!1);const Z=()=>{this.container.removeEventListener("mousedown",t),this.container.removeEventListener("mouseup",e),this.container.removeEventListener("mousemove",s),this.container.removeEventListener("mouseover",i),this.container.removeEventListener("mouseout",r),this.container.removeEventListener("click",o),this.container.removeEventListener("dblclick",a),this.container.removeEventListener("wheel",l),this.container.removeEventListener("contextmenu",c),this.container.removeEventListener("touchstart",u),this.container.removeEventListener("touchend",h),this.container.removeEventListener("touchcancel",f),this.container.removeEventListener("touchmove",p),this.container.removeEventListener("pointerdown",m),this.container.removeEventListener("pointerup",v),this.container.removeEventListener("pointercancel",b),this.container.removeEventListener("pointermove",E),this.hammer.off("pan",C),this.hammer.off("panstart",w),this.hammer.off("panmove",P),this.hammer.off("panend",D),this.hammer.off("pancancel",N),this.hammer.off("panleft",A),this.hammer.off("panright",at),this.hammer.off("panup",lt),this.hammer.off("pandown",pt),this.hammer.off("pinch",Et),this.hammer.off("press",bt),this.hammer.off("rotate",Lt),this.hammer.off("swipe",Ft),this.hammer.off("tap",_t),document.removeEventListener("pointerdown",dt,!1),document.removeEventListener("touchstart",dt,!1),document.removeEventListener("mousedown",dt,!1)};return this.addDOMEventRemoveListeners(Z),Z}registerKeyDown(t,e,s){const i=rm.on(t,o=>(e(o,i.formatedKeyNames,i.pause,i.restart),s)),r=()=>{i.removeListener?.()};return this.addDOMEventRemoveListeners(r),r}registerResizeObserver(){const t=new ResizeObserver(s=>{const{width:i,height:r}=s[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.addDOMEventRemoveListeners(e),e}registerMatchMediaChange(t){let e="";switch(t){case"(prefers-color-scheme: dark)":e="matchMediaChangePrefersColorSchemeDark";break;default:e=t;break}const s=r=>{this.emit(e,r.matches)};window.matchMedia(t).addEventListener("change",s);const i=()=>{window.matchMedia(t).removeEventListener("change",s)};return this.addDOMEventRemoveListeners(i),i}registerElementDisplayInParentWhenScrollChange(t){const e={threshold:t?.threshold||.5,root:t?.parentElement},s=new IntersectionObserver((r,o)=>{let a=r[0];if(r.length>1){const c=r.find(u=>u.isIntersecting);c&&(a=c)}a.isIntersecting&&a.intersectionRatio>=e.threshold?this.emit("showInParent"):this.emit("showOffParent")},e);s.observe(this.container);const i=()=>{s.unobserve(this.container)};return this.addDOMEventRemoveListeners(i),i}registerPullDownRefresh(t){const e=t?.distance||50;let s=0,i=0;return this.captureMove({start:r=>{s=this.setMousePoint(r).y},move:()=>{i=this.mousePoint.y-s,i>0&&i<e&&this.emit("pullDownIng",i)},end:()=>{i>=e&&this.emit("pullDown")}})}registerPullUpLoading(t){const e=t?.distance||50;let s=0,i=0;return this.captureMove({start:r=>{s=this.setMousePoint(r).y},move:()=>{i=s-this.mousePoint.y,i>0&&i<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),this.container.style.userSelect="none",t?.start?.(o)},s=o=>{this.container.style.userSelect="",t?.end?.(o)},i=o=>{t?.move?.(o)};this.on("pointerDown",e),this.on("pointerUp",s),this.on("pointerCancel",s),this.on("pointerMove",i);const r=()=>{this.off("pointerDown",e),this.off("pointerUp",s),this.off("pointerCancel",s),this.off("pointerMove",i)};return this.addDOMEventRemoveListeners(r),r}captureMoveUseMouse(t){const e=o=>{document.addEventListener("mousemove",i,!1),document.addEventListener("mouseup",s,!1),this.container.style.userSelect="none",t?.start?.(o)},s=o=>{document.removeEventListener("mousemove",i,!1),document.removeEventListener("mouseup",s,!1),this.container.style.userSelect="",t?.end?.(o)},i=o=>{t?.move?.(o)};this.on("mouseDown",e);const r=()=>{this.off("mouseDown",e)};return this.addDOMEventRemoveListeners(r),r}captureMoveUseTouch(t){const e=o=>{o.preventDefault(),t?.start?.(o)},s=o=>{t?.end?.(o)},i=o=>{t?.move?.(o)};this.on("touchStart",e),this.on("touchEnd",s),this.on("touchCancel",s),this.on("touchMove",i);const r=()=>{this.off("touchStart",e),this.off("touchEnd",s),this.off("touchCancel",s),this.off("touchMove",i)};return this.addDOMEventRemoveListeners(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 ko{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"),s=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)",s.append(i),e.width="5",e.style.cssText="position: absolute; visibility: hidden;",document.documentElement.append(e),e.contentDocument?.body.append(s),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(()=>{ko.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 om extends Gc{source;raw="";mode="text";tagname="";nodename="";textchunk="";entity="";quote="";attrs={};constructor(t){super(),this.source=t}parse(){const t=Mp(this.source);if(t===0){this.emit("finish");return}let e,s,i=Mc(this.source,0);for(let r=1;r<t;r++)e=s,s=i,i=Mc(this.source,r),this.raw+=s,s&&this.step(s,i,e);i&&this.step(i,void 0,s),this.emit("finish")}step(t,e,s){t==`
|
|
55
|
+
`&&this.emit("newline"),this.act(t,e,s)}act(t,e,s){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":en("whitespace",t)?(this.textchunk+=X.entity2text(this.entity),this.mode="text"):t==";"?(this.textchunk+=X.entity2text(this.entity+t),this.mode="text"):this.entity+=t;break;case"special":if(s=="!"&&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(s=="]"&&t=="]"&&e==">"){this.mode="cdata end",this.textchunk=this.textchunk.slice(0,-1);break}t=="eof"&&(this.mode="cdata end",this.act(t,e,s)),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=="-"&&s=="-"&&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(!en("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,s)}break;case"close tag name start":en("whitespace",t)||(this.mode="close tag name",this.tagname="",this.nodename="",this.act(t,e,s));break;case"close tag name":if(en("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(en("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":en("whitespace",t)||(this.mode="attr",this.nodename="",this.act(t,e,s));break;case"attr":if(en("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(!en("whitespace",t)){if(this.mode="attr value",this.quote="",t=="'"||t=='"'){this.quote=t;return}this.act(t,e,s)}break;case"attr value":if(en("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&&s!="\\"&&(this.mode="attr start");break;default:this.attrs[this.nodename]+=t;break}break}}}function Zc(n,t){if(typeof t<"u")window.localStorage.setItem(n,t);else return window.localStorage.getItem(n)??void 0}Ct.page.on("matchMediaChangePrefersColorSchemeDark",n=>{Po(n?"dark":"light")}),am();function Po(n){Zc("colorScheme",n),document.documentElement.classList.toggle("dark",n=="dark")}function am(){const n=Zc("colorScheme");if(n=="dark"||n=="light")return Po(n),n;{const t=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return Po(t),t}}const st={safeAreaTop:X.getCSSVar("--safe-area-inset-top"),safeAreaRight:X.getCSSVar("--safe-area-inset-right"),safeAreaBottom:X.getCSSVar("--safe-area-inset-bottom"),safeAreaLeft:X.getCSSVar("--safe-area-inset-left"),colorPrimary:X.getCSSVar("--color-primary")||"#5078f0",colorRed:X.getCSSVar("--color-red")||"#ff5050",colorOrange:X.getCSSVar("--color-orange")||"#fa8c00",colorYellow:X.getCSSVar("--color-yellow")||"#fadc32",colorGreen:X.getCSSVar("--color-green")||"#00c878",colorBlue:X.getCSSVar("--color-blue")||"#00b4fa",colorPurple:X.getCSSVar("--color-purple")||"#6464fa",colorBlack:X.getCSSVar("--color-black")||"#001428",colorGray00:X.getCSSVar("--color-gray-00")||"#000000",colorGray33:X.getCSSVar("--color-gray-33")||"#333333",colorGray66:X.getCSSVar("--color-gray-66")||"#666666",colorGray99:X.getCSSVar("--color-gray-99")||"#999999",colorGrayCC:X.getCSSVar("--color-gray-cc")||"#cccccc",colorGrayDD:X.getCSSVar("--color-gray-dd")||"#dddddd",colorGrayE6:X.getCSSVar("--color-gray-e6")||"#e6e6e6",colorGrayEE:X.getCSSVar("--color-gray-ee")||"#eeeeee",colorGrayEF:X.getCSSVar("--color-gray-ef")||"#efefef",colorGrayF5:X.getCSSVar("--color-gray-f5")||"#f5f5f5",colorGrayFF:X.getCSSVar("--color-gray-ff")||"#ffffff",fontLineHeight:X.getCSSVar("--font-line-height")||"1,4",fontSize32:X.getCSSVar("--font-size-32")||"32px",fontSize24:X.getCSSVar("--font-size-24")||"24px",fontSize20:X.getCSSVar("--font-size-20")||"20px",fontSize18:X.getCSSVar("--font-size-18")||"18px",fontSize16:X.getCSSVar("--font-size-16")||"16px",fontSize14:X.getCSSVar("--font-size-14")||"14px",fontSize12:X.getCSSVar("--font-size-12")||"12px",fontSize11:X.getCSSVar("--font-size-11")||"11px",gap4:X.getCSSVar("--gap-4")||"4px",gap8:X.getCSSVar("--gap-8")||"8px",gap12:X.getCSSVar("--gap-12")||"12px",gap16:X.getCSSVar("--gap-16")||"16px",gap20:X.getCSSVar("--gap-20")||"20px",gap40:X.getCSSVar("--gap-40")||"40px",height44:X.getCSSVar("--height-44")||"44px",height32:X.getCSSVar("--height-32")||"32px",borderRadius:X.getCSSVar("--border-radius")||"4px"},lm=()=>`#${Math.random().toString(16).slice(2,8).padEnd(6,"0")}`,cm=function(n,t=1){const e=n>>16&255,s=n>>8&255,i=n&255,r=t<0?0:t>1?1:t;return r===1?"rgb("+e+","+s+","+i+")":"rgba("+e+","+s+","+i+","+r+")"},Qc=function(n){return n[0]==="#"&&(n=n.slice(1)),parseInt(n,16)},um=function(n,t=1){const e=Qc(n);return cm(e,t)};function As(n,t){let e=parseInt(n.substring(1,3),16),s=parseInt(n.substring(3,5),16),i=parseInt(n.substring(5,7),16);e==0&&(e=32),s==0&&(s=32),i==0&&(i=32),e=e*(100+t)/100,s=s*(100+t)/100,i=i*(100+t)/100,e=e<255?e:255,s=s<255?s:255,i=i<255?i:255,e=Math.round(e),s=Math.round(s),i=Math.round(i);const r=e.toString(16).length==1?"0"+e.toString(16):e.toString(16),o=s.toString(16).length==1?"0"+s.toString(16):s.toString(16),a=i.toString(16).length==1?"0"+i.toString(16):i.toString(16);return"#"+r+o+a}const Vi=new Map;async function hm(n){return new Promise((t,e)=>{fm(n,(s,i)=>s?e(s):t({width:i.width,height:i.height,aspectRatio:i.width/i.height}))})}const fm=(n,t)=>{if(Vi.has(n))return t(null,Vi.get(n));const e=new Image;e.onload=function(){Vi.set(n,{width:e.naturalWidth||e.width,height:e.naturalHeight||e.height,element:e}),t(null,Vi.get(n))},e.onerror=function(s){t(s,null)},e.src=n},Jc=[1,0,0,1,0,0],tu=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class he{value;matrix3d;isEverTo3d=!1;_prev_translate_z=0;_prev_rotate=0;_prev_rotate_x=0;_prev_rotate_y=0;_prev_rotate_z=0;_prev_scale_z=1;constructor(t=Jc){this.value=Array.from(t),this.matrix3d=this.toMatrix3D()}unit(){return this.value=Array.from(Jc),this.matrix3d=this.toMatrix3D(),this}transformPoint(t,e,s=0,i=0){const r=t-s,o=e-i;return t=r*this.value[0]+o*this.value[2]+this.value[4],e=r*this.value[1]+o*this.value[3]+this.value[5],[t+s,e+i]}fromString(t){const e=Dc("number",t);return e.length===6?e.forEach((s,i)=>{s.fullMatch&&(this.value[i]=parseFloat(s.fullMatch))}):this.unit(),this}toMatrix3D(t=this.matrix3d){const e=[this.value[0],this.value[1],0,0,this.value[2],this.value[3],0,0,0,0,1,0,this.value[4],this.value[5],0,1];return t?(t.value=e,t):new Qn(e)}clone(){return new he(this.value)}multiply(t){const e=this.value;let s;t instanceof he?s=t.value:s=t;const i=e[0]*s[0]+e[2]*s[1],r=e[1]*s[0]+e[3]*s[1],o=e[0]*s[2]+e[2]*s[3],a=e[1]*s[2]+e[3]*s[3],l=e[0]*s[4]+e[2]*s[5]+e[4],c=e[1]*s[4]+e[3]*s[5]+e[5];return e[0]=i,e[1]=r,e[2]=o,e[3]=a,e[4]=l,e[5]=c,this}inverse(){const t=new he(this.value),e=t.value,s=1/(e[0]*e[3]-e[1]*e[2]),i=e[3]*s,r=-e[1]*s,o=-e[2]*s,a=e[0]*s,l=s*(e[2]*e[5]-e[3]*e[4]),c=s*(e[1]*e[4]-e[0]*e[5]);return e[0]=i,e[1]=r,e[2]=o,e[3]=a,e[4]=l,e[5]=c,t}offset(t=0,e=0){return[t-this.value[4],e-this.value[5]]}translate(t,e){return this.matrix3d.translate(t,e,0),this.multiply([1,0,0,1,t,e])}translateTo(t,e){const s=this.offset(t,e);return this.translate(s[0],s[1])}translateX(t){return this.translate(t,0)}translateXTo(t){return this.translateTo(t,this.value[5])}translateY(t){return this.translate(0,t)}translateYTo(t){return this.translateTo(this.value[4],t)}translateZ(t){return this.isEverTo3d=!0,this.matrix3d.translate(0,0,t)}translateZTo(t){return this.translateZ(t-this._prev_translate_z),this._prev_translate_z=t,this}translate3d(t,e,s){return this.isEverTo3d=!0,this.matrix3d.translate(t,e,s)}translate3dTo(t,e,s){return this.translate3d(t-this.matrix3d.value[12],t-this.matrix3d.value[13],s-this._prev_translate_z),this._prev_translate_z=s,this}rotate(t,e=0,s=0){const i=Vn(t),r=+Math.cos(i).toFixed(9),o=+Math.sin(i).toFixed(9);return this.multiply([r,o,-o,r,e,s]),this.translate(-e,-s),this}rotateTo(t,e=0,s=0){return this.rotate(t-this._prev_rotate,e,s),this._prev_rotate=t,this}rotateX(t){return this.isEverTo3d=!0,this.matrix3d.rotate("x",t)}rotateXTo(t){return this.rotateX(t-this._prev_rotate_x),this._prev_rotate_x=t,this}rotateY(t){return this.isEverTo3d=!0,this.matrix3d.rotate("y",t)}rotateYTo(t){return this.rotateY(t-this._prev_rotate_y),this._prev_rotate_y=t,this}rotateZ(t){return this.isEverTo3d=!0,this.matrix3d.rotate("z",t)}rotateZTo(t){return this.rotateZ(t-this._prev_rotate_z),this._prev_rotate_z=t,this}rotate3d(t,e,s){return this.isEverTo3d=!0,this.matrix3d.rotate("x",t).rotate("y",e).rotate("z",s)}rotate3dTo(t,e,s){return this.rotate3d(t-this._prev_rotate_x,e-this._prev_rotate_y,s-this._prev_rotate_z),this._prev_rotate_x=t,this._prev_rotate_y=e,this._prev_rotate_z=s,this}scale(t,e=t,s=0,i=0){return this.matrix3d.scale(t,e,1),this.translate(s,i),this.multiply([t,0,0,e,0,0]),this.translate(-s,-i),this}scaleTo(t,e=t,s=0,i=0){return this.scale(t/this.value[0],e/this.value[3],s,i),this}scaleX(t){return this.scale(t,1)}scaleXTo(t){return this.scale(t/this.value[0],1)}scaleY(t){return this.scale(1,t)}scaleYTo(t){return this.scale(1,t/this.value[3])}scaleZ(t){return this.isEverTo3d=!0,this.matrix3d.scale(1,1,t)}scaleZTo(t){return this.scaleZ(t/this._prev_scale_z),this._prev_scale_z=t,this}scale3d(t,e,s){return this.isEverTo3d=!0,this.matrix3d.scale(t,e,s)}scale3dTo(t,e,s){return this.scale3d(t/this.matrix3d.value[0],e/this.matrix3d.value[5],s/this._prev_scale_z),this._prev_scale_z=s,this}skew(t,e=t){const s=t*Math.PI/180,i=e*Math.PI/180,r=Math.tan(s),o=Math.tan(i);return this.multiply([1,o,r,1,0,0])}skewTo(t,e=t){return this.skew(t-this.value[2],e-this.value[1])}skewX(t){return this.skew(t,this.value[1])}skewXTo(t){return this.skewTo(t,this.value[1])}skewY(t){return this.skew(this.value[2],t)}skewYTo(t){return this.skewTo(this.value[2],t)}skewZ(t){return this}skewZTo(t){return this}skew3d(t,e,s){return this}skew3dTo(t,e,s){return this}split(){const t={dx:0,dy:0,scalex:1,scaley:1,shear:1,rotate:0,isSimple:!0,isSuperSimple:!0,noRotation:!1};t.dx=this.value[4],t.dy=this.value[5];const e=[[this.value[0],this.value[2]],[this.value[1],this.value[3]]];t.scalex=Math.sqrt(Math.pow(e[0][0],2)+Math.pow(e[0][1],2));let s=Kc(e[0][0],e[0][1]);e[0][0]=s.x,e[0][1]=s.y,t.shear=e[0][0]*e[1][0]+e[0][1]*e[1][1],e[1]=[e[1][0]-e[0][0]*t.shear,e[1][1]-e[0][1]*t.shear],t.scaley=Math.sqrt(Math.pow(e[1][0],2)+Math.pow(e[1][1],2)),s=Kc(e[1][0],e[1][1]),e[1][0]=s.x,e[1][1]=s.y,t.shear/=t.scaley;const i=-e[0][1],r=e[1][1];return r<0?(t.rotate=Co(Math.acos(r)),i<0&&(t.rotate=360-t.rotate)):t.rotate=Co(Math.asin(i)),t.isSimple=!+t.shear.toFixed(9)&&(t.scalex.toFixed(9)==t.scaley.toFixed(9)||!t.rotate),t.isSuperSimple=!+t.shear.toFixed(9)&&t.scalex.toFixed(9)==t.scaley.toFixed(9)&&!t.rotate,t.noRotation=!+t.shear.toFixed(9)&&!t.rotate,t}static split2(t){const e=Math.atan2(t[1],t[0]),s=Math.pow(t[0],2)+Math.pow(t[1],2),i=Math.sqrt(s),r=(t[0]*t[3]-t[2]*t[1])/i;return{rotation:e/(Math.PI/180),scaleX:i,scaleY:r,x:t[4],y:t[5]}}static getGroupCoords(t,e){const s=t[0],i=t[1],r=t[2],o=t[3],a=t[4],l=t[5],c=e[0],u=e[1],h=e[2],f=e[3],p=e[4],m=e[5],v=c*f,b=u*h,E=(h*i-s*f)/(b-v),C=(c*i-s*u)/(v-b),w=(h*o-r*f)/(b-v),P=(c*o-r*u)/(v-b),D=(h*(l-m)+f*(p-a))/(b-v),N=(c*(l-m)+u*(p-a))/(v-b),A=[E,C,w,P,D,N];return he.split2(A)}toTransformString(){const t=this.split();return t.isSimple?(t.scalex=+t.scalex.toFixed(4),t.scaley=+t.scaley.toFixed(4),t.rotate=+t.rotate.toFixed(4),(t.dx&&t.dy?"t"+[t.dx,t.dy]:"")+(t.scalex!=1||t.scaley!=1?"s"+[t.scalex,t.scaley,0,0]:"")+(t.rotate?"r"+[t.rotate,0,0]:"")):"matrix"+[this.value[0],this.value[1],this.value[2],this.value[3],this.value[4],this.value[5]]}toString(){return this.isEverTo3d?this.toMatrix3DString():`matrix(${this.value.map(t=>Fc(t,6)).join(",")})`}toMatrix3DString(){return this.matrix3d.toString()}toFilter(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.value[0]+", M12="+this.value[2]+", M21="+this.value[1]+", M22="+this.value[3]+", Dx="+this.value[4]+", Dy="+this.value[5]+", sizingmethod='auto expand')"}}class Qn{value;constructor(t=tu){this.value=Array.from(t)}unit(){return this.value=Array.from(tu),this}fromString(t){const e=Dc("number",t);return e.length===16?e.forEach((s,i)=>{s.fullMatch&&(this.value[i]=parseFloat(s.fullMatch))}):this.unit(),this}toMatrix(t){const e=[this.value[0],this.value[1],this.value[4],this.value[5],this.value[12],this.value[13]];return t?(t.value=e,t):new he(e)}multiplyMatrix(t){const e=this.value[0],s=this.value[1],i=this.value[2],r=this.value[3],o=this.value[4],a=this.value[5],l=this.value[6],c=this.value[7],u=this.value[8],h=this.value[9],f=this.value[10],p=this.value[11],m=this.value[12],v=this.value[13],b=this.value[14],E=this.value[15],C=t.value[0],w=t.value[1],P=t.value[2],D=t.value[3],N=C*e+w*o+P*u+D*m,A=C*s+w*a+P*h+D*v,at=C*i+w*l+P*f+D*b,lt=C*r+w*c+P*p+D*E;return new he([N,A,at,lt,0,0])}multiply(t){const e=new he([t.value[0],t.value[1],t.value[2],t.value[3],0,0]),s=new he([t.value[4],t.value[5],t.value[6],t.value[7],0,0]),i=new he([t.value[8],t.value[9],t.value[10],t.value[11],0,0]),r=new he([t.value[12],t.value[13],t.value[14],t.value[15],0,0]),o=this.multiplyMatrix(e),a=this.multiplyMatrix(s),l=this.multiplyMatrix(i),c=this.multiplyMatrix(r);return this.value[0]=o.value[0],this.value[1]=o.value[1],this.value[2]=o.value[2],this.value[3]=o.value[3],this.value[4]=a.value[0],this.value[5]=a.value[1],this.value[6]=a.value[2],this.value[7]=a.value[3],this.value[8]=l.value[0],this.value[9]=l.value[1],this.value[10]=l.value[2],this.value[11]=l.value[3],this.value[12]=c.value[0],this.value[13]=c.value[1],this.value[14]=c.value[2],this.value[15]=c.value[3],this}translate(t=0,e=0,s=0){return this.multiply(new Qn([1,0,0,0,0,1,0,0,0,0,1,0,t,e,s,1]))}scale(t=1,e=1,s=1){return this.multiply(new Qn([t,0,0,0,0,e,0,0,0,0,s,0,0,0,0,1]))}rotate(t,e){const s=Vn(e),i=Math.sin,r=Math.cos;let o;switch(t){case"x":o=[1,0,0,0,0,r(s),i(s),0,0,-i(s),r(s),0,0,0,0,1];break;case"y":o=[r(s),0,-i(s),0,0,1,0,0,i(s),0,r(s),0,0,0,0,1];break;case"z":o=[r(s),i(s),0,0,-i(s),r(s),0,0,0,0,1,0,0,0,0,1];break}return this.multiply(new Qn(o))}toString(){return`matrix3d(${this.value.map(t=>Fc(t,6)).join(",")})`}}function Gi(n){const t=new he;return n.replace(/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,function(e,s,i){i.indexOf(",")>=0?i=i.split(/\s*,\s*/):i=i.split(/\s+/);const r=[];for(let o=0,a=i.length;o<a;o++)i[o].trim()&&r.push(parseFloat(""+i[o]));switch(s.toLowerCase()){case"t":case"translate":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]]);break;case"matrix3d":t.matrix3d.multiply(new Qn(r));break}return""}),t}class dm extends om{currentItem={};items=[];groups=[];globalStyles={};grad={};idtops={};text="";constructor(t){super(t),this.on("tag",(e,s)=>{switch(this.text="",this.currentItem={type:e},e){case"g":this.groups.push(this.currentItem);break}this.processAttrs(e,s)}),this.on("text",e=>{if(this.currentItem.type=="style"){try{const s=jp(e);for(let i of s.stylesheet.rules)for(let r of i.declarations)for(let o of i.selectors)this.globalStyles[o]=this.globalStyles[o]||[],this.globalStyles[o].push(`${r.property}:${r.value}`)}catch{console.error("CAN'T parse css text: "+e)}return}this.text+=e}),this.on("/tag",(e,s)=>{let i=this.groups.length;for(;i--;)if(this.groups[i]!=this.currentItem){let r="",o="";for(let a in this.groups[i])a=="transform"?r=this.groups[i].transform:a=="class"&&this.globalStyles["."+this.groups[i][a]]?o=this.globalStyles["."+this.groups[i][a]].join(";")+";"+o:a=="id"&&this.globalStyles["#"+this.groups[i][a]]?o=this.globalStyles["#"+this.groups[i][a]].join(";")+";"+o:typeof this.currentItem[a]>"u"&&(this.currentItem[a]=this.groups[i][a]);typeof this.currentItem.transform>"u"?this.currentItem.transform=r:this.currentItem.transform+=" "+r,typeof this.currentItem.style>"u"?this.currentItem.style=o:this.currentItem.style=o+this.currentItem.style,this.currentItem.class&&this.globalStyles["."+this.currentItem.class]?this.currentItem.style=this.globalStyles["."+this.currentItem.class].join(";")+";"+this.currentItem.style:this.currentItem.id&&this.globalStyles["#"+this.currentItem.id]&&(this.currentItem.style=this.globalStyles["#"+this.currentItem.id].join(";")+";"+this.currentItem.style),No(this.currentItem.style,this.currentItem,Io)}switch(this.processAttrs(e,s),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 s=[],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&&No(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+Oo(parseFloat(e.x1),parseFloat(e.y1),parseFloat(e.x2),parseFloat(e.y2),parseFloat(e.x1)+100,parseFloat(e.y1))).toFixed(2),s=[this.grad.angle];for(let a=0,l=this.grad.stops.length;a<l;a++)i=this.grad.stops[a],a&&a!=l-1?s.push(i.color+":"+i.offset):s.push(i.color);this.idtops[this.grad.id]=s.join("-"),this.items.forEach(a=>{a.fillid==this.grad.id&&(a.fill=this.idtops[this.grad.id])});break;case"radialGradient":s=[];for(let a=0,l=this.grad.stops.length;a<l;a++)i=this.grad.stops[a],a&&a!=l-1?s.push(i.color+":"+i.offset):s.push(i.color);this.idtops[this.grad.id]=s.join("-"),this.items.forEach(a=>{a.fillid==this.grad.id&&(a.fill=this.idtops[this.grad.id])});break}for(let r in e){const o=e[r];if(Io.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"&&No(o,this.currentItem,Io),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 Oo(n,t,e,s,i,r){if(typeof i>"u"||typeof r>"u"){const o=n-e,a=t-s;return!o&&!a?0:(180+Math.atan2(-a,-o)*180/Math.PI+360)%360}else return Oo(n,t,i,r)-Oo(e,s,i,r)}function No(n,t,e){const s=(n+"").split(";"),i=/^\s+|\s+$/g;for(let r=0,o=s.length;r<o;r++){let a=s[r].split(":"),l=a[0].replace(i,"").replace(/[A-Z]/g,function(c){return"-"+c.toLowerCase()});(!e||e.includes(l))&&(t[l]=a[1].replace(i,""))}}const Io=["id","class","viewBox","width","height","x","y","cx","cy","r","rx","ry","cursor","opacity","src","fill","fill-opacity","stroke","stroke-dasharray","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","font","font-family","font-size","font-style","font-weight","letter-spacing"];let pm=class{app;rootEl;shapes=[];isMouseDown=!1;currentEnableMouseInShapeID="";constructor(t,e,s){this.app=t,this.rootEl=Wt.createSVGElement("svg"),X.empty(this.app.container),X.insert(this.app.container,this.rootEl),e&&s?this.setSize(e,s):(this.setSize(this.app.width,this.app.height),this.app.on("resize",()=>{this.setSize(this.app.width,this.app.height)})),this.app.captureMove({start:()=>{this.isMouseDown=!0,this.setCursor()},end:()=>{this.isMouseDown=!1,this.setCursor()},move:()=>{if(this.isMouseDown&&this.currentEnableMouseInShapeID){this.setCursor();return}let i=0,r=this.shapes.length;for(;i<r;i++){const o=this.shapes[i];if(!(o instanceof me))continue;if((o.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||!1)&&o.enableDrag){this.currentEnableMouseInShapeID=o.id;break}}i>=r&&(this.currentEnableMouseInShapeID=""),this.setCursor()}})}setSize(t,e){return X.attribute(this.rootEl,{viewBox:`0 0 ${t} ${e}`,width:`${t}`,height:`${e}`}),this}setCursor(){this.currentEnableMouseInShapeID?(this.app.container.style.cursor="grab",this.isMouseDown&&(this.app.container.style.cursor="grabbing")):this.app.container.style.cursor="default"}download(){return Wt.downloadFromSVGElement(this.rootEl)}attr(t,e,s){const i=t.el||t;if(!(i instanceof SVGElement))return this;if(e===void 0&&s===void 0)return X.attribute(i);if(typeof e=="string"&&s===void 0)return X.attribute(i,bn(e))||"";if(typeof e=="object"){if(X.attribute(i,e),t instanceof Re)for(let r in e)t.attrs[bn(r)]=e[r]}else typeof e=="string"&&s!==void 0&&(X.attribute(i,bn(e),s),t instanceof Re&&(t.attrs[bn(e)]=s));return this}clickInPath(t){const e=()=>{this.shapes.forEach(s=>{s instanceof me&&s.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)&&t(s)})};return this.app.on("tap",e),()=>{this.app.off("tap",e)}}path(t){if(t instanceof Hi)return t.paths.forEach(s=>{s.el=Wt.createSvgPath(t.toSVGPathD()),X.insert(this.rootEl,s.el),this.update(s),this.shapes.push(s)}),t;let e;return t instanceof Kt||t instanceof me?e=t:t instanceof Re?(e=me.fromSVGPathD(t.toSVGPathD()),Rc(e,t),e.prevDegree=0,e.prevScaleOnOrigin=1,e.prevSkewDegreeOnOrigin=0):e=me.fromSVGPathD(t||"M0,0"),e.el=Wt.createSvgPath(e instanceof Kt?`M ${e.fromX} ${e.fromY} `+e.toSVGPathD():e.toSVGPathD()),X.insert(this.rootEl,e.el),this.update(e),this.shapes.push(e),e instanceof Kt?me.fromSVGPathD(e.toSVGPathD()):e}update(t){const e=[];t instanceof Hi?e.push(...t.paths):e.push(t),e.forEach(s=>{if(s instanceof me){if(s.followMouse&&(!Is(s.x,this.app.mousePoint.x,5)||!Is(s.y,this.app.mousePoint.y,5))&&(s.angleTo(this.app.mousePoint),s.followTo(this.app.mousePoint)),s.targetToAfterDragFree&&(this.isMouseDown||s.nextFrameEaseTo(new Qt({x:s.targetToAfterDragFree.targetX,y:s.targetToAfterDragFree.targetY}),{easing:s.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableMouseInShapeID==s.id){if(s.x=this.app.mousePoint.x,s.y=this.app.mousePoint.y,!s.coordinateIsShapeCenter){const i=s.getBoundingClientRect();i&&i.width&&i.height&&(s.x-=i.width/2,s.y-=i.height/2)}s.isDragging=!0,this.shapes.filter(i=>i.id!=s.id).forEach(i=>i.isDragging=!1)}if((s.x!=s.prevX||s.y!=s.prevY)&&s.translate(s.x-s.prevX,s.y-s.prevY),s.degree!=s.prevDegree){const i=s.getBoundingClientRect();s.rotate(s.degree-s.prevDegree,i.x+i.width/2,i.y+i.height/2)}if(s.scaleOnOrigin!=s.prevScaleOnOrigin){const i=s.getBoundingClientRect();s.scale(s.scaleOnOrigin/s.prevScaleOnOrigin,s.scaleOnOrigin/s.prevScaleOnOrigin,i.x+i.width/2,i.y+i.height/2)}}this.attr(s,s.attrs),this.attr(s,"d",s instanceof Kt?`M ${s.fromX} ${s.fromY} `+s.toSVGPathD():s.toSVGPathD())})}delete(t){t.el&&X.remove(t.el),this.shapes=this.shapes.filter(e=>e.id!=t.id)}clear(){this.shapes.forEach(t=>{t.el&&X.remove(t.el)}),this.shapes=[]}pathRosetta(t,e,s,i,r){if(r==0)throw new Error("no dividing by zero, please");const o=new me({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*s*Math.cos(c),h=e+2*s*Math.sin(c);o.addLine(new Ls({x:u,y:h,rx:s,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1})),o.addLine(new Ls({x:t,y:e,rx:s,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1}))}return this.path(o)}trailPath(t,e,s=0){const i=t.getTotalLength();return this.attr(e,"d",t.getSubpath(0,s*i).toSVGPathD()),t.getPointAtLength(s*i)}circle(t,e,s){return this.path(new Qt({x:t,y:e,radius:s}))}circleEl(t,e,s){const i=Wt.createSVGElement("circle",{cx:String(t),cy:String(e),r:String(s)});return X.insert(this.rootEl,i),i}ellipse(t,e,s,i){return this.path(new ym({x:t,y:e,rx:s,ry:i}))}ellipseEl(t,e,s,i){const r=Wt.createSVGElement("ellipse",{cx:String(t),cy:String(e),rx:String(s),ry:String(i)});return X.insert(this.rootEl,r),r}rect(t,e,s,i){return this.path(new Ce({x:t,y:e,width:s,height:i}))}rectEl(t,e,s,i){const r=Wt.createSVGElement("rect",{x:String(t),y:String(e),width:String(s),height:String(i)});return X.insert(this.rootEl,r),r}image(t,e,s,i,r){}text(t,e,s,i="1.2em"){const r=Wt.createSVGElement("text",{x:String(t),y:String(e)});return s.split(`
|
|
56
|
+
`).forEach(o=>{if(o.trim()){const a=Wt.createSVGElement("tspan",{x:String(t),dy:i});X.html(a,o),X.insert(r,a)}}),X.insert(this.rootEl,r),r}};const eu=mm("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 mm(n,t=10){const e={},s=n.split(",");for(let i=0;i<s.length;i+=2){const r="&"+s[i+1]+";",o=parseInt(s[i],t);e[r]="&#"+o+";"}return e["\\xa0"]=" ",e}function pe(n,t){const e=Object.keys(t);for(let s=0;s<e.length;s++)n=n.replace(new RegExp("{"+e[s]+"}","gi"),""+t[e[s]]);return n}function zi(n){let t,e;if(!n)throw new Error("cannot create a random attribute name for an undefined object");const s="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";t="";do for(t="",e=0;e<12;e++)t+=s[Math.floor(Math.random()*s.length)];while(n[t]);return t}function gm(n){const t={left:"start",right:"end",center:"middle",start:"start",end:"end"};return t[n]||t.start}function vm(n){const t={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return t[n]||t.alphabetic}const Rs={strokeStyle:{svgAttr:"stroke",canvas:"#000000",svg:"none",apply:"stroke"},fillStyle:{svgAttr:"fill",canvas:"#000000",svg:null,apply:"fill"},lineCap:{svgAttr:"stroke-linecap",canvas:"butt",svg:"butt",apply:"stroke"},lineJoin:{svgAttr:"stroke-linejoin",canvas:"miter",svg:"miter",apply:"stroke"},miterLimit:{svgAttr:"stroke-miterlimit",canvas:10,svg:4,apply:"stroke"},lineWidth:{svgAttr:"stroke-width",canvas:1,svg:1,apply:"stroke"},globalAlpha:{svgAttr:"opacity",canvas:1,svg:1,apply:"fill stroke"},font:{canvas:"10px sans-serif"},shadowColor:{canvas:"#000000"},shadowOffsetX:{canvas:0},shadowOffsetY:{canvas:0},shadowBlur:{canvas:0},textAlign:{canvas:"start"},textBaseline:{canvas:"alphabetic"},lineDash:{svgAttr:"stroke-dasharray",canvas:[],svg:null,apply:"stroke"}};class Do{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}addColorStop(t,e){const s=this.__ctx.__createElement("stop");if(s.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&&(s.setAttribute("stop-color",pe("rgb({r},{g},{b})",{r:r[1],g:r[2],b:r[3]})),s.setAttribute("stop-opacity",r[4]))}else s.setAttribute("stop-color",e);this.__root.appendChild(s)}}class nu{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}}class ji{__document=document;__canvas;__ctx;width;height;__styleStack;__groupStack;__rootSVG;__ids;__SVGdefs;__currentElement;__currentElementsToStyle=null;constructor({canvas:t,width:e=500,height:s=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=s),this.__setDefaultStyles(),this.__styleStack=[this.__getStyleState()],this.__groupStack=[],this.__rootSVG=this.__document.createElementNS("http://www.w3.org/2000/svg","svg"),this.__rootSVG.setAttribute("version","1.1"),this.__rootSVG.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.__rootSVG.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),this.__rootSVG.setAttribute("width",""+this.width),this.__rootSVG.setAttribute("height",""+this.height),this.__ids={},this.__SVGdefs=this.__document.createElementNS("http://www.w3.org/2000/svg","defs"),this.__rootSVG.appendChild(this.__SVGdefs),this.__currentElement=this.__document.createElementNS("http://www.w3.org/2000/svg","g"),this.__rootSVG.appendChild(this.__currentElement)}__setDefaultStyles(){const t=Object.keys(Rs);for(let e=0,s=t.length;e<s;e++){const i=t[e];this[i]=Rs[i].canvas}}__getStyleState(){const t={},e=Object.keys(Rs);for(let s=0,i=e.length;s<i;s++){const r=e[s];t[r]=this[r]}return t}__applyStyleState(t){const e=Object.keys(t);for(let s=0,i=e.length;s<i;s++){const r=e[s];this[r]=t[r]}}__createElement(t,e={},s=!1){const i=this.__document.createElementNS("http://www.w3.org/2000/svg",t),r=Object.keys(e);s&&(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 s=this.__currentElementsToStyle;s&&(e.setAttribute(t,""),e=s.element,s.children.forEach(r=>{r.setAttribute(t,"")}));const i=Object.keys(Rs);for(let r=0;r<i.length;r++){const o=Rs[i[r]],a=this[i[r]];if(o.apply){if(a instanceof nu){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,pe("url(#{id})",{id:a.__root.getAttribute("id")}))}else if(a instanceof Do)e.setAttribute(o.apply,pe("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);e.setAttribute(o.svgAttr,pe("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(eu);for(let r=0,o=i.length;r<o;r++){const a=i[r],l=eu[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 s=this.__currentElement.getAttribute("transform");s?s+=" ":s="",s+=t,this.__currentElement.setAttribute("transform",s)}scale(t,e){e===void 0&&(e=t),this.__addTransform(pe("scale({x},{y})",{x:t,y:e}))}rotate(t){const e=t*180/Math.PI;this.__addTransform(pe("rotate({angle},{cx},{cy})",{angle:e,cx:0,cy:0}))}translate(t,e){this.__addTransform(pe("translate({x},{y})",{x:t,y:e}))}transform(t,e,s,i,r,o){this.__addTransform(pe("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:e,c:s,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(pe("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(pe("L {x} {y}",this.__currentPosition)):this.__addPathCommand(pe("M {x} {y}",this.__currentPosition))}bezierCurveTo(t,e,s,i,r,o){this.__currentPosition={x:r,y:o},this.__addPathCommand(pe("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:e,cp2x:s,cp2y:i,x:r,y:o}))}quadraticCurveTo(t,e,s,i){this.__currentPosition={x:s,y:i},this.__addPathCommand(pe("Q {cpx} {cpy} {x} {y}",{cpx:t,cpy:e,x:s,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,s,i,r){const o=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(typeof o>"u"||typeof a>"u")return;if(r<0)throw new Error("IndexSizeError: The radius provided ("+r+") is negative.");if(o===t&&a===e||t===s&&e===i||r===0){this.lineTo(t,e);return}const l=this.normalize([o-t,a-e]),c=this.normalize([s-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]]),p=r/Math.sin(h/2),m=t+p*f[0],v=e+p*f[1],b=[-l[1],l[0]],E=[c[1],-c[0]],C=function(D){const N=D[0];return D[1]>=0?Math.acos(N):-Math.acos(N)},w=C(b),P=C(E);this.lineTo(m+b[0]*r,v+b[1]*r),this.arc(m,v,r,w,P)}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,s,i){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(t,e),this.lineTo(t+s,e),this.lineTo(t+s,e+i),this.lineTo(t,e+i),this.lineTo(t,e),this.closePath()}fillRect(t,e,s,i){const r=this.__createElement("rect",{x:t,y:e,width:s,height:i},!0);this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement("fill")}strokeRect(t,e,s,i){const r=this.__createElement("rect",{x:t,y:e,width:s,height:i},!0);this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const e=this.__closestGroupOrSvg().getAttribute("transform"),s=this.__rootSVG.childNodes[1],i=s.childNodes;for(let r=i.length-1;r>=0;r--)i[r]&&s.removeChild(i[r]);this.__currentElement=s,this.__groupStack=[],e&&this.__addTransform(e)}clearRect(t,e,s,i){if(t===0&&e===0&&s===this.width&&i===this.height){this.__clearCanvas();return}const r=this.__closestGroupOrSvg(),o=this.__createElement("rect",{x:t,y:e,width:s,height:i,fill:"#FFFFFF"},!0);r.appendChild(o)}createLinearGradient(t,e,s,i){const r=this.__createElement("linearGradient",{id:zi(this.__ids),x1:t+"px",x2:s+"px",y1:e+"px",y2:i+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(r),new Do(r,this)}createRadialGradient(t,e,s,i,r,o){const a=this.__createElement("radialGradient",{id:zi(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 Do(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),s={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"&&(s.decoration="underline"),this.__fontHref&&(s.href=this.__fontHref),s}__wrapTextLink(t,e){if(t.href){const s=this.__createElement("a");return s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.href),s.appendChild(e),s}return e}__applyText(t,e,s,i){const r=this.__parseFont(),o=this.__closestGroupOrSvg(),a=this.__createElement("text",{"font-family":r.family,"font-size":r.size,"font-style":r.style,"font-weight":r.weight,"text-decoration":r.decoration,x:e,y:s,"text-anchor":gm(this.textAlign),"dominant-baseline":vm(this.textBaseline)},!0);a.appendChild(this.__document.createTextNode(t)),this.__currentElement=a,this.__applyStyleToCurrentElement(i),o.appendChild(this.__wrapTextLink(r,a))}fillText(t,e,s){this.__applyText(t,e,s,"fill")}strokeText(t,e,s){this.__applyText(t,e,s,"stroke")}measureText(t){return this.__ctx.font=this.font,this.__ctx.measureText(t)}arc(t,e,s,i,r,o){if(i===r)return;i=i%(2*Math.PI),r=r%(2*Math.PI),i===r&&(r=(r+2*Math.PI-.001*(o?-1:1))%(2*Math.PI));const a=t+s*Math.cos(r),l=e+s*Math.sin(r),c=t+s*Math.cos(i),u=e+s*Math.sin(i),h=o?0:1;let f=0,p=r-i;p<0&&(p+=2*Math.PI),o?f=p>Math.PI?0:1:f=p>Math.PI?1:0,this.lineTo(c,u),this.__addPathCommand(pe("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:s,ry:s,xAxisRotation:0,largeArcFlag:f,sweepFlag:h,endX:a,endY:l})),this.__currentPosition={x:a,y:l}}clip(){const t=this.__closestGroupOrSvg(),e=this.__createElement("clipPath"),s=zi(this.__ids),i=this.__createElement("g");this.__applyCurrentDefaultPath(),t.removeChild(this.__currentElement),e.setAttribute("id",s),e.appendChild(this.__currentElement),this.__SVGdefs.appendChild(e),t.setAttribute("clip-path",pe("url(#{id})",{id:s})),t.appendChild(i),this.__currentElement=i}drawImage(...t){let e=t[0],s,i,r,o,a=0,l=0,c,u,h,f,p,m,v,b;if(t.length===3)s=t[1],i=t[2],c=e.width,u=e.height,r=c,o=u;else if(t.length===5)s=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],s=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 C="translate("+s+", "+i+")";if(e instanceof ji){if(h=e.getSvg().cloneNode(!0),h.childNodes&&h.childNodes.length>1){for(f=h.childNodes[0];f.childNodes.length;)b=f.childNodes[0].getAttribute("id"),this.__ids[b]=b,this.__SVGdefs.appendChild(f.childNodes[0]);if(p=h.childNodes[1],p){const w=p.getAttribute("transform");let P;w?P=w+" "+C:P=C,p.setAttribute("transform",P),E.appendChild(p)}}}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",C),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 s=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),i=zi(this.__ids);let r;return s.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")),s.appendChild(r),this.__SVGdefs.appendChild(s)):t instanceof ji&&(s.setAttribute("width",""+t.width),s.setAttribute("height",""+t.height),s.appendChild(t.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(s)),new nu(s,this)}setLineDash(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}class Mo{canvas;context;customContext;currentPath2D=new Path2D;path2Ds=[];currentMatrix=new DOMMatrix;hasSetCustomStrokeStyle=!1;hasSetCustomFillStyle=!1;constructor(t){this.canvas=t,this.context=t.getContext("2d",{willReadFrequently:!0}),this.customContext=new ji({canvas:this.canvas,width:this.canvas.width,height:this.canvas.height})}set lineWidth(t){this.hasSetCustomStrokeStyle=!0,this.context.lineWidth=t,this.customContext.lineWidth=t}get lineWidth(){return this.context.lineWidth}set lineCap(t){this.hasSetCustomStrokeStyle=!0,this.context.lineCap=t,this.customContext.lineCap=t}get lineCap(){return this.context.lineCap}set lineJoin(t){this.hasSetCustomStrokeStyle=!0,this.context.lineJoin=t,this.customContext.lineCap=t}get lineJoin(){return this.context.lineJoin}set lineDashOffset(t){this.hasSetCustomStrokeStyle=!0,this.context.lineDashOffset=t,this.customContext.lineDashOffset=t}get lineDashOffset(){return this.context.lineDashOffset}set miterLimit(t){this.hasSetCustomStrokeStyle=!0,this.context.miterLimit=t,this.customContext.miterLimit=t}get miterLimit(){return this.context.miterLimit}set globalAlpha(t){this.context.globalAlpha=t,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.fillStyle=t):(this.context.fillStyle=t.gradient,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.strokeStyle=t):(this.context.strokeStyle=t.gradient,this.customContext.strokeStyle=t.gradientCustom)}get strokeStyle(){return this.context.strokeStyle}set font(t){this.context.font=t,this.customContext.font=t}get font(){return this.context.font}fill(t){return t?this.context.fill(t):(this.context.fill(),this.customContext.fill()),this}fillRect(t,e,s,i){return this.context.fillRect(t,e,s,i),this.customContext.fillRect(t,e,s,i),this}fillText(t,e,s,i){return this.context.fillText(t,e,s,i),this.customContext.fillText(t,e,s),this}setLineDash(t){return this.context.setLineDash(t),this.customContext.setLineDash(t),this}stroke(t){return t?this.context.stroke(t):(this.context.stroke(),this.customContext.stroke()),this}strokeText(t,e,s,i){return this.context.strokeText(t,e,s,i),this.customContext.strokeText(t,e,s),this}strokeRect(t,e,s,i){return this.context.strokeRect(t,e,s,i),this.customContext.strokeRect(t,e,s,i),this}measureText(t){return this.context.measureText(t)}clearRect(t=0,e=0,s=this.canvas.width,i=this.canvas.height){return this.context.clearRect(t,e,s,i),this.customContext.clearRect(t,e,s,i),this}save(){return this.context.save(),this.customContext.save(),this.currentMatrix=new DOMMatrix,this.path2Ds.push(this.currentPath2D),this.currentPath2D=new Path2D,this}restore(){return this.context.restore(),this.customContext.restore(),this.hasSetCustomStrokeStyle=!1,this.hasSetCustomFillStyle=!1,this.currentMatrix=new DOMMatrix,this.currentPath2D=this.path2Ds.pop()||new Path2D,this}beginPath(){return this.context.beginPath(),this.customContext.beginPath(),this}closePath(){return this.context.closePath(),this.customContext.closePath(),this.currentPath2D.closePath(),this}changePath2D(t=this.currentPath2D,e=this.currentMatrix){const s=new Path2D;s.addPath(t,e),this.currentPath2D=s}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.translate(t,e),this.currentMatrix.translate(t,e),this.changePath2D(),this}rotate(t){return this.context.rotate(t),this.customContext.rotate(t),this.currentMatrix.rotate(t),this.changePath2D(),this}scale(t,e=t){return this.context.scale(t,e),this.customContext.scale(t,e),this.currentMatrix.scale(t,e),this.changePath2D(),this}moveTo(t,e){return this.context.moveTo(t,e),this.customContext.moveTo(t,e),this.currentPath2D.moveTo(t,e),this}lineTo(t,e){return this.context.lineTo(t,e),this.customContext.lineTo(t,e),this.currentPath2D.lineTo(t,e),this}arc(t,e,s,i,r,o){return this.context.arc(t,e,s,i,r,o),this.customContext.arc(t,e,s,i,r,o?-1:1),this.currentPath2D.arc(t,e,s,i,r,o),this}arcTo(t,e,s,i,r){return this.context.arcTo(t,e,s,i,r),this.customContext.arcTo(t,e,s,i,r),this.currentPath2D.arcTo(t,e,s,i,r),this}ellipse(t,e,s,i,r,o,a,l){return this.context.ellipse(t,e,s,i,r,o,a,l),this.currentPath2D.ellipse(t,e,s,i,r,o,a,l),this}quadraticCurveTo(t,e,s,i){return this.context.quadraticCurveTo(t,e,s,i),this.customContext.quadraticCurveTo(t,e,s,i),this.currentPath2D.quadraticCurveTo(t,e,s,i),this}bezierCurveTo(t,e,s,i,r,o){return this.context.bezierCurveTo(t,e,s,i,r,o),this.customContext.bezierCurveTo(t,e,s,i,r,o),this.currentPath2D.bezierCurveTo(t,e,s,i,r,o),this}rect(t,e,s,i){return this.context.rect(t,e,s,i),this.customContext.rect(t,e,s,i),this.currentPath2D.rect(t,e,s,i),this}createLinearGradient(t,e,s,i,r){const o=this.context.createLinearGradient(t,e,s,i),a=this.customContext.createLinearGradient(t,e,s,i);return r&&Object.keys(r).forEach(l=>{const c=parseFloat(l);o.addColorStop(c,r[c]),a.addColorStop(c,r[c])}),{gradient:o,gradientCustom:a}}createRadialGradient(t,e,s,i,r,o,a){const l=this.context.createRadialGradient(t,e,s,i,r,o),c=this.customContext.createRadialGradient(t,e,s,i,r,o);return a&&Object.keys(a).forEach(u=>{const h=parseFloat(u);l.addColorStop(h,a[h]),c.addColorStop(h,a[h])}),{gradient:l,gradientCustom:c}}drawImage(t,...e){if(e.length===0)this.context.drawImage(t,0,0);else if(e.length===2){const s=e[0],i=e[1];this.context.drawImage(t,s,i)}else if(e.length===4){const s=e[0],i=e[1],r=e[2],o=e[3];this.context.drawImage(t,s,i,r,o)}else if(e.length===8){const s=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,s,i,r,o,a,l,c,u)}else throw new Error("Invalid number of arguments passed to drawImage: "+e.length);return this.customContext.drawImage(t,...e),this}getImageData(t=0,e=0,s=this.canvas.width,i=this.canvas.height,r){return this.context.getImageData(t,e,s,i,r)}putImageData(t,e=0,s=0){return this.context.putImageData(t,e,s)}toRawSVG(){const t=this.customContext.getSerializedSvg(!0),e=this.customContext.getSvg();return{raw:t,element:e}}}const _m=Mo;class Kt extends Re{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 Kt({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=Wc(this.fromX,this.fromY,this.x,this.y);if(t===0){const e=Math.min(this.x,this.fromX),s=Math.min(this.y,this.fromY),i=Math.max(this.x,this.fromX),r=Math.max(this.y,this.fromY);return new Ce({x:e,y:s,width:i-e,height:r-s})}else{const e=Math.sin(t),s=Math.cos(t),i=s*this.fromX-e*this.fromY,r=s*this.x-e*this.y,o=s*this.fromY+e*this.fromX,a=s*this.y+e*this.x;return new Ce({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)}}}class Ao extends Kt{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 Ao({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=Wt.curveDim(this.fromX,this.fromY,this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y);return new Ce({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 Wt.bezlen(this.fromX,this.fromY,this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y,t)}getTatLen(t){const e=this.fromX,s=this.fromY,i=this.c1x,r=this.c1y,o=this.c2x,a=this.c2y,l=this.x,c=this.y;if(t<0||Wt.bezlen(e,s,i,r,o,a,l,c)<t)return 0;let u=1,h=u/2,f=u-h,p,m=.01;for(p=Wt.bezlen(e,s,i,r,o,a,l,c,f);Math.abs(p-t)>m;)h/=2,f+=(p<t?1:-1)*h,p=Wt.bezlen(e,s,i,r,o,a,l,c,f);return f}getPointAtSegmentLength(t){const e=this.getTatLen(t),s=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),p=Math.pow(h,2),m=e*e,v=m*e,b=f*s+p*3*e*r+h*3*e*e*a+v*c,E=f*i+p*3*e*o+h*3*e*e*l+v*u,C=s+2*e*(r-s)+m*(a-2*r+s),w=i+2*e*(o-i)+m*(l-2*o+i),P=r+2*e*(a-r)+m*(c-2*a+r),D=o+2*e*(l-o)+m*(u-2*l+o),N=h*s+e*r,A=h*i+e*o,at=h*a+e*c,lt=h*l+e*u,pt=90-Math.atan2(C-P,w-D)*180/Math.PI;return{x:b,y:E,m:{x:C,y:w},n:{x:P,y:D},start:{x:N,y:A},end:{x:at,y:lt},alpha:pt}}}const Jn=Ao;class $s extends Kt{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 $s({cx:t[1],cy:t[2],x:t[3],y:t[4],fromX:e?.x,fromY:e?.y})}toSVGPathData(){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,s=this.cy*2-(this.fromY+this.y)/2;t.quadraticCurveTo(e,s,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}}}class Ls extends Kt{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 Ls({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,s,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,s,i,r,o,a,l,!this.sweepFlag)}convertSVGToCanvas(t,e,s,i,r,o,a,l,c){const u=a/180*Math.PI,h=(t-s)/2,f=(e-i)/2,p=Math.cos(u)*h+Math.sin(u)*f,m=-Math.sin(u)*h+Math.cos(u)*f,v=p*p/(r*r)+m*m/(o*o);if(v>1){const Et=Math.sqrt(v);throw r=Et*r,o=Et*o,new Error(`Radii are too small to build an arc. Correcting them to ${r}/${o}.`)}const b=Math.sqrt((r*r*o*o-r*r*m*m-o*o*p*p)/(r*r*m*m+o*o*p*p)),E=l!=c?1:-1,C=E*b*r*m/o,w=E*b*-o*p/r,P=(t+s)/2,D=(e+i)/2,N=Math.cos(u)*C-Math.sin(u)*w+P,A=Math.sin(u)*C+Math.cos(u)*w+D,at=(Et,bt,Lt,Ft)=>(Et*Ft>=bt*Lt?1:-1)*Math.acos((Et*Lt+bt*Ft)/(Math.sqrt(Et*Et+bt*bt)*Math.sqrt(Lt*Lt+Ft*Ft))),lt=at(1,0,t-N,e-A)-u,pt=at(t-N,e-A,s-N,i-A);return[N,A,r,o,u,lt,lt+pt]}}class me extends Re{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}addLine(t){if(t instanceof Ls){So(this.prevPathX,this.prevPathY,t.rx,t.ry,t.xAxisRotate,t.largeArcFlag,t.sweepFlag,t.x,t.y).forEach(c=>{const[u,h,f,p,m,v]=c;this.normalizedLines.push(new Jn({c1x:u,c1y:h,c2x:f,c2y:p,x:m,y:v,fromX:this.prevPathX,fromY:this.prevPathY})),this.prevPathX=m,this.prevPathY=v});return}let e,s,i,r,o,a;t instanceof Jn?(e=t.c1x,s=t.c1y,i=t.c2x,r=t.c2y,o=t.x,a=t.y):t instanceof $s?[e,s,i,r,o,a]=To(this.prevPathX,this.prevPathY,t.cx,t.cy,t.x,t.y):[e,s,i,r,o,a]=Ms(this.prevPathX,this.prevPathY,t.x,t.y),this.normalizedLines.push(new Jn({c1x:e,c1y:s,c2x:i,c2y:r,x:o,y:a,fromX:this.prevPathX,fromY:this.prevPathY})),this.prevPathX=o,this.prevPathY=a}static fromSVGPathD(t,e){if(!Wt.isSVGPath(t))throw new Error("Not a SVG path!");return this.fromSVGPathData(Wt.parseSVGPath(t),e)}static fromSVGPathData(t,e){const s=new me,i=Wt.normalizeSVGPath(Wt.absolutizeSVGPath(t));for(let o=0,a=i.length;o<a;o++){const l=i[o];if(l[0]=="M"){s.prevPathX=s.startPathX=l[1],s.prevPathY=s.startPathY=l[2];continue}s.addLine(new Jn({c1x:l[1],c1y:l[2],c2x:l[3],c2y:l[4],x:l[5],y:l[6]}))}const r=Gi(e??"");return s.transform(r)}toSVGPathData(){const t=[];t.push(["M",this.startPathX,this.startPathY]);for(let e=0,s=this.normalizedLines.length;e<s;e++)t.push(this.normalizedLines[e].toSVGPathData());return t}toCanvasContext(t){t.beginPath(),t.moveTo(this.startPathX,this.startPathY),this.normalizedLines.forEach(e=>{const[s,...i]=e.toSVGPathData();t.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5])})}transform(t){return[this.startPathX,this.startPathY]=t.transformPoint(this.startPathX,this.startPathY),[this.prevPathX,this.prevPathY]=t.transformPoint(this.prevPathX,this.prevPathY),this.normalizedLines.forEach(e=>{[e.fromX,e.fromY]=t.transformPoint(e.fromX,e.fromY),[e.c1x,e.c1y]=t.transformPoint(e.c1x,e.c1y),[e.c2x,e.c2y]=t.transformPoint(e.c2x,e.c2y),[e.x,e.y]=t.transformPoint(e.x,e.y)}),this}translate(t,e){const s=new he().translate(t,e);return this.transform(s),this.prevX=this.x,this.prevY=this.y,this}rotate(t,e=0,s=0){const i=new he().rotate(t,e,s);return this.transform(i),this.prevDegree=this.degree,this}scale(t,e=t,s=0,i=0){const r=new he().scale(t,e,s,i);return this.transform(r),this.prevScaleOnOrigin=this.scaleOnOrigin,this}skew(t,e=0){const s=new he().skew(t,e);return this.transform(s),this.prevSkewDegreeOnOrigin=this.skewDegreeOnOrigin,this}trim(){const t=this.getBoundingClientRect();return this.translate(-t.x,-t.y),this}getBoundingClientRect(){let t=0,e=0,s=[],i=[];t=this.startPathX,e=this.startPathY,s.push(t),i.push(e),this.normalizedLines.forEach(c=>{const u=Wt.curveDim(t,e,c.c1x,c.c1y,c.c2x,c.c2y,c.x,c.y);s=s.concat(u.min.x,u.max.x),i=i.concat(u.min.y,u.max.y),t=c.x,e=c.y});const r=Math.min.apply(0,s),o=Math.min.apply(0,i),a=Math.max.apply(0,s),l=Math.max.apply(0,i);return new Ce({x:r,y:o,width:a-r,height:l-o})}getTotalLength(){return this.normalizedLines.reduce((t,e)=>t+=e.length(),0)}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,s=this.normalizedLines[0];if(e--,e>1)for(let i=1,r=this.normalizedLines.length;i<r&&(s=this.normalizedLines[i],e>1);i++)e-=1;return s.interpolate(e)}}getPointAtLength(t){let e={x:0,y:0,alpha:0},s=0;for(let i=0,r=this.normalizedLines.length;i<r;i++){const o=this.normalizedLines[i],a=o.length();if(s+a>t){e=o.getPointAtSegmentLength(t-s);break}s+=a}return e}getSubpathsAtLength(t,e,s){let i=null,r=0;const o=new me;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.addLine(new Jn({c1x:h.start.x,c1y:h.start.y,c2x:h.m.x,c2y:h.m.y,x:h.x,y:h.y})),s)return o;i=o,o.prevPathX=h.x,o.prevPathY=h.y,o.addLine(new Jn({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.addLine(c)}return o}getSubpath(t,e){if(this.getTotalLength()-e<1e-6)return this.getSubpathsAtLength(this,t);{const s=this.getSubpathsAtLength(this,e,1);return t?this.getSubpathsAtLength(s,t):s}}isPointInPath(t,e,s){if(s instanceof Mo)return s.isPointInPath(new Path2D(this.toSVGPathD()),t,e);let i;try{i=new SVGPoint(t,e)}catch{i=s.createSVGPoint(),i.x=t,i.y=e}return this.el instanceof SVGGeometryElement?this.el.isPointInFill(i):!1}isPointInStroke(t,e,s){if(s instanceof Mo)return s.isPointInStroke(new Path2D(this.toSVGPathD()),t,e);let i;try{i=new SVGPoint(t,e)}catch{i=s.createSVGPoint(),i.x=t,i.y=e}return this.el instanceof SVGGeometryElement?this.el.isPointInStroke(i):!1}}class Hi extends me{svgWidth=0;svgHeight=0;width=0;height=0;paths=[];constructor(t){if(super(t),t?.svg){const e=new dm(t.svg).parse();for(let s=0,i=e.length;s<i;s++){const r=e[s];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"||!Zn.isSVGPath(r.path))continue;const o={};for(const u in r)u==="type"||u==="path"||u==="transform"||(o[u]=r[u]);const a=Zn.absolutizeSVGPath(Zn.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=me.fromSVGPathData(u,r.transform);Rc(h,t),h.attrs={...h.attrs,...o,...t.attrs},this.width&&this.svgWidth&&h.scale(this.width/this.svgWidth),this.paths.push(h)})}}}}class ym extends Re{rx;ry;constructor(t){super(t),this.coordinateIsShapeCenter=!0,this.rx=t?.rx||0,this.ry=t?.ry||0}getBoundingClientRect(){return new Ce({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(this.x,this.y,this.rx,this.ry,0,0,2*Math.PI,!0),t.closePath()}}class Ro extends Re{points;constructor(t=[]){if(!t.length)throw new Error("points can't be null");super(t[0]),this.points=t}toSVGPathData(){const t=[];for(let e=0,s=this.length;e<s;e++)t.push([e===0?"M":"L",this.points[e].x,this.points[e].y]);return t}toCanvasContext(t){const e=this.points.length;if(e<3)throw new Error("points length must >= 3");t.beginPath();const s=(this.points[0].x+this.points[e-1].x)/2,i=(this.points[0].y+this.points[e-1].y)/2;t.moveTo(s,i);let r=0;for(;r<e-1;r++){const o=(this.points[r].x+this.points[r+1].x)/2,a=(this.points[r].y+this.points[r+1].y)/2;t.quadraticCurveTo(this.points[r].x-this.x,this.points[r].y-this.y,o-this.x,a-this.y)}t.quadraticCurveTo(this.points[r].x-this.x,this.points[r].y-this.y,s-this.x,i-this.y)}get length(){return this.points.length}addPoint(t){this.points.push(t)}getPoint(t){return this.points[t]}isContainPoint(t,e){const s=this.length;let i=!1;const r=2e-10;for(let o=0,a=s-1;o<s;a=o,o++){const l=this.points[o].x,c=this.points[o].y,u=this.points[a].x,h=this.points[a].y;if(l===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),p=l+f*(e-c);if(p===t||Math.abs(p-t)<r)return!0;p>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 generateInMultiplePoint(t,e,s,i,r=1){const o=new Ro;for(let a=0;a<=r*s;a+=1){const l=Math.floor(a/r)/s*2*Math.PI,c=t+Math.cos(l)*i,u=e+Math.sin(l)*i;o.addPoint(new Qt({x:c,y:u}))}return o}}class su extends Re{constructor(t){super(t),this.coordinateIsShapeCenter=!0}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 bm extends Re{constructor(t){super(t),this.coordinateIsShapeCenter=!0}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()}}(function(){let n=0;window.requestAnimationFrame||(window.requestAnimationFrame=function(t){const e=new Date().getTime(),s=Math.max(0,16-(e-n)),i=window.setTimeout(function(){t(e+s)},s);return n=e+s,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})})();const xm=n=>{let t=window.requestAnimationFrame(function e(s){t=window.requestAnimationFrame(e),n(s,t)});return()=>window.cancelAnimationFrame(t)};class wm{id=0;renders={};cancelFn;constructor(){}get length(){let t=0;for(let e in this.renders)t++;return t}register(t){const e=this.id++;this.renders[e]=t,this.run()}registerAccurateSetTimeout(t,e=0){let s;this.register(i=>(s||(s=i),i-s>=e?(t(),!1):!0))}run(){this.cancelFn||(this.cancelFn=xm((t,e)=>{const s=[];for(let i in this.renders)this.renders[i](t)===!1&&s.push(parseInt(i));for(let i of s)delete this.renders[i];!this.length&&this.cancelFn&&(this.cancelFn(),this.cancelFn=void 0)}))}}const Zt=new wm;let Fs;typeof self>"u"&&typeof process<"u"&&process.hrtime?Fs=function(){const n=process.hrtime();return n[0]*1e3+n[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?Fs=self.performance.now.bind(self.performance):Date.now!==void 0?Fs=Date.now:Fs=function(){return new Date().getTime()};const ts=Fs;class Vs{static _nextId=0;static nextId(){return Vs._nextId++}}const Bi={Linear:{None:function(n){return n}},Ease:{In:function(n){return Math.pow(n,1.7)}},Quadratic:{In:function(n){return n*n},Out:function(n){return n*(2-n)},InOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)}},Cubic:{In:function(n){return n*n*n},Out:function(n){return--n*n*n+1},InOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)}},Quartic:{In:function(n){return n*n*n*n},Out:function(n){return 1- --n*n*n*n},InOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)}},Quintic:{In:function(n){return n*n*n*n*n},Out:function(n){return--n*n*n*n*n+1},InOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)}},Sinusoidal:{In:function(n){return 1-Math.sin((1-n)*Math.PI/2)},Out:function(n){return Math.sin(n*Math.PI/2)},InOut:function(n){return .5*(1-Math.sin(Math.PI*(.5-n)))}},Exponential:{In:function(n){return n===0?0:Math.pow(1024,n-1)},Out:function(n){return n===1?1:1-Math.pow(2,-10*n)},InOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)}},Circular:{In:function(n){return 1-Math.sqrt(1-n*n)},Out:function(n){return Math.sqrt(1- --n*n)},InOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)}},Elastic:{In:function(n){return n===0?0:n===1?1:-Math.pow(2,10*(n-1))*Math.sin((n-1.1)*5*Math.PI)},Out:function(n){return n===0?0:n===1?1:Math.pow(2,-10*n)*Math.sin((n-.1)*5*Math.PI)+1},InOut:function(n){return n===0?0:n===1?1:(n*=2,n<1?-.5*Math.pow(2,10*(n-1))*Math.sin((n-1.1)*5*Math.PI):.5*Math.pow(2,-10*(n-1))*Math.sin((n-1.1)*5*Math.PI)+1)}},Back:{In:function(n){return n===1?1:n*n*((1.70158+1)*n-1.70158)},Out:function(n){return n===0?0:--n*n*((1.70158+1)*n+1.70158)+1},InOut:function(n){const t=2.5949095;return(n*=2)<1?.5*(n*n*((t+1)*n-t)):.5*((n-=2)*n*((t+1)*n+t)+2)}},Bounce:{In:function(n){return 1-Bi.Bounce.Out(1-n)},Out:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},InOut:function(n){return n<.5?Bi.Bounce.In(n*2)*.5:Bi.Bounce.Out(n*2-1)*.5+.5}},generatePow:function(n=4){return n=n<Number.EPSILON?Number.EPSILON:n,n=n>1e4?1e4:n,{In:function(t){return t**n},Out:function(t){return 1-(1-t)**n},InOut:function(t){return t<.5?(t*2)**n/2:(1-(2-t*2)**n)/2+.5}}},random:function(n){return Math.random()},createStep:function(n){return function(t){return Math.floor(t*n)/n}},createNoisyEasing:function(n,t=.1){const e=1-t;return function(s){return t*Math.random()+e*n(s)}}},$o=Bi,Gs={Utils:{Linear:function(n,t,e){return(t-n)*e+n},Factorial:function(){const n=[1];return function(t){let e=1;if(n[t])return n[t];for(let s=t;s>1;s--)e*=s;return n[t]=e,e}}(),Bernstein:function(n,t){const e=Gs.Utils.Factorial;return e(n)/e(t)/e(n-t)},CatmullRom:function(n,t,e,s,i){const r=(e-n)*.5,o=(s-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(n,t){const e=n.length-1,s=e*t,i=Math.floor(s),r=Gs.Utils.Linear;return t<0?r(n[0],n[1],s):t>1?r(n[e],n[e-1],e-s):r(n[i],n[i+1>e?e:i+1],s-i)},Bezier:function(n,t){let e=0;const s=n.length-1,i=Math.pow,r=Gs.Utils.Bernstein;for(let o=0;o<=s;o++)e+=i(1-t,s-o)*i(t,o)*n[o]*r(s,o);return e},CatmullRom:function(n,t){const e=n.length-1;let s=e*t,i=Math.floor(s);const r=Gs.Utils.CatmullRom;return n[0]===n[e]?(t<0&&(i=Math.floor(s=e*(1+t))),r(n[(i-1+e)%e],n[i],n[(i+1)%e],n[(i+2)%e],s-i)):t<0?n[0]-(r(n[0],n[0],n[1],n[1],-s)-n[0]):t>1?n[e]-(r(n[e],n[e],n[e-1],n[e-1],s-e)-n[e]):r(n[i?i-1:0],n[i],n[e<i+1?e:i+1],n[e<i+2?e:i+2],s-i)}},Lo=Gs;class iu{_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=ts(),e=!1){let s=Object.keys(this._tweens);if(s.length===0)return!1;for(;s.length>0;){this._tweensAddedDuringUpdate={};for(let i=0;i<s.length;i++){const r=this._tweens[s[i]],o=!e;r&&r.update(t,o)===!1&&!e&&delete this._tweens[s[i]]}s=Object.keys(this._tweensAddedDuringUpdate)}return!0}}const ke=new iu;class Em{constructor(t,e=ke){this._object=t,this._group=e}_id=Vs.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=$o.Linear.None;_interpolationFunction=Lo.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=ts()){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,s,i){for(const r in s){const o=t[r],a=Array.isArray(o),l=a?"array":typeof o,c=!a&&Array.isArray(s[r]);if(!(l==="undefined"||l==="function")){if(c){let u=s[r];if(u.length===0)continue;u=u.map(this._handleRelativeValue.bind(this,o)),s[r]=[o].concat(u)}if((l==="object"||a)&&o&&!c){e[r]=a?[]:{};for(const u in o)e[r][u]=o[u];i[r]=a?[]:{},this._setupProperties(o,e[r],s[r],i[r])}else typeof e[r]>"u"&&(e[r]=o),a||(e[r]*=1),c?i[r]=s[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=ts()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=t,this._group&&this._group.remove(this),this)}resume(t=ts()){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=$o.Linear.None){return this._easingFunction=t,this}interpolation(t=Lo.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=ts(),e=!0){if(this._isPaused)return!0;let s,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(s in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[s]=="string"&&(this._valuesStartRepeat[s]=this._valuesStartRepeat[s]+parseFloat(this._valuesEnd[s])),this._yoyo&&this._swapEndStartRepeatValues(s),this._valuesStart[s]=this._valuesStartRepeat[s];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=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,s,i){for(const r in s){if(e[r]===void 0)continue;const o=e[r]||0;let a=s[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],s=this._valuesEnd[t];typeof s=="string"?this._valuesStartRepeat[t]=this._valuesStartRepeat[t]+parseFloat(s):this._valuesStartRepeat[t]=s,this._valuesEnd[t]=e}}const Cm=Em,Sm=Vs.nextId,Tm=ke.getAll.bind(ke),km=ke.removeAll.bind(ke),Pm=ke.add.bind(ke),Om=ke.remove.bind(ke),Nm=ke.update.bind(ke),it={now:ts,Sequence:Vs,Easing:$o,Interpolation:Lo,Group:iu,Tween:Cm,nextId:Sm,getAll:Tm,removeAll:km,add:Pm,remove:Om,update:Nm};function ru(n){switch(n){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-in-out":return[.42,0,.58,1];case"ease-out":return[0,0,.58,1]}}const Im={attributeName:["display"],values:[["block","block"]]},Ee={easeName:"linear",begin:0,dur:300,repeatCount:1,direction:"normal",fill:"freeze",keyTimes:[0,1]};class Jt{currentPredefinedAnimateName;currentPredefinedAnimateArgs;objects=[];currentObjects=[];isRunning=!1;constructor(){}destroy(){}hasObjects(){return this.objects.length>0}fromDOM(t){return Array.isArray(t)||(t=[t]),this.objects=[],t.forEach(e=>{this.objects.push({width:parseFloat(X.getStyle(e,"width")),height:parseFloat(X.getStyle(e,"height")),el:e,originCSSObject:{}})}),this}static isRunningGlobalTween=!1;static runGlobalTween(t){Jt.isRunningGlobalTween||Zt.register(()=>(Jt.isRunningGlobalTween=it.update(t?.()),Jt.isRunningGlobalTween))}static toTween(t,e,s){const i=s?.onUpdate??(()=>{}),r=s?.onStart??(()=>{}),o=s?.onComplete??(()=>{}),a=s?.duration??1e3,l=s?.delay??0,c=s?.easeFunction??it.Easing.Linear.None,u=s?.repeat??0,h=s?.yoyo??!1,f=new it.Tween(t).to(e,a).delay(l).easing(c).repeat(u).yoyo(h).onStart(r).onUpdate(function(p,m){i(p,m)}).onComplete(o);return s?.interpolationFunction&&f.interpolation(s.interpolationFunction),{tween:f,startAuto:p=>{f.start(p?.()),Zt.register(()=>{const m=f.update(p?.());if(s?.precision){let v=!0;for(let b in t)Is(t[b],e[b],s.precision)||(v=!1);return v?!1:m}return m})}}}static toTweenCSS(t,e,s,i){const r={_matrix:Gi(X.getStyle(t,"transform")??"")},o=i?.onUpdate??(()=>{});return Jt.toTween(e,s,Object.assign(i??{},{onUpdate:(a,l)=>{for(let c in a)Jt.setCSSObjectTransformUseMatrix(c,a[c],r);t.style.transform=r.transform,o(a,l)}}))}static setCSSObjectTransformUseMatrix(t,e,s={},i){switch(t){case"translate":s._matrix.translate(e[0]??0,e[1]??0);break;case"translateTo":s._matrix.translateTo(e[0]??0,e[1]??0);break;case"translateX":s._matrix.translateX(e??0);break;case"translateXTo":s._matrix.translateXTo(e??0);break;case"translateY":s._matrix.translateY(e??0);break;case"translateYTo":s._matrix.translateYTo(e??0);break;case"translateZ":s._matrix.translateZ(e??0);break;case"translateZTo":s._matrix.translateZTo(e??0);break;case"translate3d":s._matrix.translate3d(e[0]??0,e[1]??0,e[2]??0);break;case"translate3dTo":s._matrix.translate3dTo(e[0]??0,e[1]??0,e[2]??0);break;case"rotate":typeof e=="number"?s._matrix.rotate(e??0):s._matrix.rotate(e[0]??0,e[1]??0,e[2]??0);break;case"rotateTo":typeof e=="number"?s._matrix.rotateTo(e??0):s._matrix.rotateTo(e[0]??0,e[1]??0,e[2]??0);break;case"rotateX":s._matrix.rotateX(e??0);break;case"rotateXTo":s._matrix.rotateXTo(e??0);break;case"rotateY":s._matrix.rotateY(e??0);break;case"rotateYTo":s._matrix.rotateYTo(e??0);break;case"rotateZ":s._matrix.rotateZ(e??0);break;case"rotateZTo":s._matrix.rotateZTo(e??0);break;case"rotate3d":s._matrix.rotate3d(e[0]??0,e[1]??0,e[2]??0);break;case"rotate3dTo":s._matrix.rotate3dTo(e[0]??0,e[1]??0,e[2]??0);break;case"scale":typeof e=="number"?s._matrix.scale(e??1):s._matrix.scale(e[0]??1,e[1]??1,e[2]??0,e[3]??0);break;case"scaleTo":typeof e=="number"?s._matrix.scaleTo(e??1):s._matrix.scaleTo(e[0]??1,e[1]??1,e[2]??0,e[3]??0);break;case"scaleX":s._matrix.scaleX(e??1);break;case"scaleXTo":s._matrix.scaleXTo(e??1);break;case"scaleY":s._matrix.scaleY(e??1);break;case"scaleYTo":s._matrix.scaleYTo(e??1);break;case"scaleZ":s._matrix.scaleZ(e??1);break;case"scaleZTo":s._matrix.scaleZTo(e??1);break;case"scale3d":s._matrix.scale3d(e??1);break;case"scale3dTo":s._matrix.scale3dTo(e??1);break;case"skew":typeof e=="number"?s._matrix.skew(e??0):s._matrix.skew(e[0]??0,e[1]??0);break;case"skewTo":typeof e=="number"?s._matrix.skewTo(e??0):s._matrix.skewTo(e[0]??0,e[1]??0);break;case"skewX":s._matrix.skewX(e??0);break;case"skewXTo":s._matrix.skewXTo(e??1);break;case"skewY":s._matrix.skewY(e??0);break;case"skewYTo":s._matrix.skewYTo(e??1);break;case"skewZ":case"skewZTo":case"skew3d":case"skew3dTo":break;default:i&&!Object.prototype.hasOwnProperty.call(i.originCSSObject,t)&&(i.originCSSObject[t]=X.getStyle(i.el,t)),Object.assign(s,{[t]:`${e??""}`});break}return Object.assign(s,{transform:s._matrix.toString()}),s}_addCurrentObject(t=Im,e=Ee,s=0,i,r=!1){const o=e.keyTimes??[0,1],a=[];o.forEach((c,u)=>{u>0&&a.push(ru(e.easeName??"linear"))});const l=e.dur??300;return this.currentObjects=r?[]:this.currentObjects,this.currentObjects.push({objectIndex:s,sequenceType:i,attributeName:t.attributeName,values:t.values,immediate:t.immediate||!1,begin:e.begin??0,dur:l,keyTimes:o,realKeyTimes:o.map(c=>l*c),keySplines:a,repeatCount:e.repeatCount??1,direction:e.direction??"normal",fill:e.fill??"freeze",onComplete:e.onComplete}),this}_resetGroupCurrentObjects(t,e,s,i,r=Ee,o=this.objects.length-1){let a=!0,l=!1,c=!1,u=!1;const h=this.objects.length-1;o=xo(o,0,h);let f=o-1;f=xo(f,0,h);let p=o+1;p=xo(p,0,h);const m=this.objects[o],v=this.objects[f],b=this.objects[p];if(v&&f!==o){const E=t(v);E&&(this._addCurrentObject(E,r,f,"prev",a),a=!1,l=!0)}if(m){const E=e(m);E&&(this._addCurrentObject(E,r,o,"current",a),a=!1,c=!0)}if(b&&p!==o){const E=s(b);E&&(this._addCurrentObject(E,r,p,"next",a),a=!1,u=!0)}this.objects.forEach((E,C)=>{if(!(C==f&&l||C==o&&c||C==p&&u)){const w=i(E);w&&(this._addCurrentObject(w,r,C,"other",a),a=!1)}})}toCSS(t,...e){if(!this.hasObjects()||this.isRunning)return;switch(this.currentPredefinedAnimateName=t,this.currentPredefinedAnimateArgs=e,this[t](...e),this.objects[0].el&&this.objects[0].el.parentElement&&(this.objects[0].el.parentElement.style.position=X.getStyle(this.objects[0].el.parentElement,"transform")||"relative",this.objects[0].el.parentElement.style.perspective=X.getStyle(this.objects[0].el.parentElement,"perspective")||"1000px"),t){default:this.objects.forEach((r,o)=>{X.setStyle(r.el,Object.assign(r?.originCSSObject??{},{position:"absolute","z-index":String(2e3+o),"transform-style":"preserve-3d","backface-visibility":"hidden"}))});break}let s=0;const i=()=>{this.isRunning=!0,this.currentObjects.forEach((r,o)=>{const a=this.objects[r.objectIndex];let l=[],c=[];Array.isArray(r.attributeName)?(l=r.attributeName,c=r.values):r.attributeName&&(l=[r.attributeName],c=[r.values]);const u=r.keyTimes.length;let h=r.begin;r.keyTimes.forEach((f,p)=>{if(p==0||r.immediate){const m={_matrix:Gi("")};l.forEach((v,b)=>{const E=c[b][r.direction=="reverse"?u-1-p:p];Jt.setCSSObjectTransformUseMatrix(v,E,m,a)}),X.setStyle(a.el,Object.assign(m,{transition:"all 0ms!important"}))}else Zt.registerAccurateSetTimeout(((m,v,b)=>()=>{const E={_matrix:Gi("")};l.forEach((C,w)=>{const P=c[w][v.direction=="reverse"?u-1-m:m];Jt.setCSSObjectTransformUseMatrix(C,P,E,b)}),X.setStyle(b.el,Object.assign(E,{transition:`all ${v.realKeyTimes[m]}ms cubic-bezier(${v.keySplines[m-1].join(",")})`}))})(p,r,a),h+1),h+=r.realKeyTimes[p]}),Zt.registerAccurateSetTimeout(((f,p)=>()=>{f.fill==="remove"&&X.setStyle(a.el,a.originCSSObject??{}),p==this.currentObjects.length-1&&(f.onComplete?.(),this.isRunning=!1,(typeof f.repeatCount=="number"&&++s<f.repeatCount||f.repeatCount=="infinite")&&requestAnimationFrame(()=>{this.currentPredefinedAnimateName===t&&i()}))})(r,o),r.begin+r.dur)})};i()}slideLeft(t=Ee,e=this.objects.length-1){this._resetGroupCurrentObjects(s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[-s.width,0]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[s.width,0],[0,0]]]}),s=>{},s=>({attributeName:["opacity","translateTo"],values:[[0,0],[[s.width,0],[s.width,0]]],immediate:!0}),t,e)}slideRight(t=Ee,e=this.objects.length-1){this._resetGroupCurrentObjects(s=>{},s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[-s.width,0],[0,0]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[s.width,0]]]}),s=>({attributeName:["opacity","translateTo"],values:[[0,0],[[-s.width,0],[-s.width,0]]],immediate:!0}),t,e)}slideDown(t=Ee,e=this.objects.length-1){this._resetGroupCurrentObjects(s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[0,s.height]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,-s.height],[0,0]]]}),s=>{},s=>({attributeName:["opacity","translateTo"],values:[[0,0],[[0,-s.height],[0,-s.height]]],immediate:!0}),t,e)}slideUp(t=Ee,e=this.objects.length-1){this._resetGroupCurrentObjects(s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[0,-s.height]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,s.height],[0,0]]]}),s=>{},s=>({attributeName:["opacity","translateTo"],values:[[0,0],[[0,s.height],[0,s.height]]],immediate:!0}),t,e)}flipLeft(t=Ee,e=this.objects.length-1){this._resetGroupCurrentObjects(s=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,180]]}),s=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[-180,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),t,e)}flipRight(t=Ee,e=this.objects.length-1){this._resetGroupCurrentObjects(s=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,-180]]}),s=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[180,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),t,e)}flipDown(t=Ee,e=this.objects.length-1){this._resetGroupCurrentObjects(s=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,-180]]}),s=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[180,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),t,e)}flipUp(t=Ee,e=this.objects.length-1){this._resetGroupCurrentObjects(s=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,180]]}),s=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[-180,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),t,e)}popIn(t=Ee,e=this.objects.length-1){this._resetGroupCurrentObjects(s=>{},s=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[.8,1],[0,1]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),t,e)}popOut(t=Ee,e=this.objects.length-1){this._resetGroupCurrentObjects(s=>{},s=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[1,1.2],[1,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),t,e)}rotate(t=Ee,e=this.objects.length-1){Object.assign(t,{keyTimes:[0,1]});const s=t.degree??360;this._resetGroupCurrentObjects(i=>{},i=>({attributeName:["opacity","rotate"],values:[[1,1],[0,s]]}),i=>{},i=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),t,e)}static flipCSS(t,e,s=Ee){const i=t.getBoundingClientRect(),r=e.getBoundingClientRect(),o=X.getStyle(t,"backgroundColor"),a=X.getStyle(e,"backgroundColor");e.style.transition="none",e.style.left=""+i.left,e.style.top=""+i.top,e.style.width=i.width+"px",e.style.height=i.height+"px",o&&(e.style.backgroundColor=o),Zt.registerAccurateSetTimeout(()=>{e.style.transition=`all ${s.dur}ms cubic-bezier(${ru(s.easeName??"linear").join(",")})`,e.style.left=""+r.left,e.style.top=""+r.top,e.style.width=r.width+"px",e.style.height=r.height+"px",a&&(e.style.backgroundColor=a)},s.begin)}}let ou=class{app;ctx;shapes=[];isMouseDown=!1;currentEnableMouseInShapeID="";constructor(t){this.app=t,this.ctx=new _m(this.app.container),this.app.captureMove({start:()=>{this.isMouseDown=!0,this.setCursor()},end:()=>{this.isMouseDown=!1,this.setCursor()},move:()=>{if(this.isMouseDown&&this.currentEnableMouseInShapeID){this.setCursor();return}let e=0,s=this.shapes.length;for(;e<s;e++){const i=this.shapes[e];this.ctx.save(),this.transformCtxBaseOnShape(i);const r=this.ctx.isPointInPath(i.path2d,this.app.mousePoint.x,this.app.mousePoint.y)||!1;if(this.ctx.restore(),r&&i.enableDrag){this.currentEnableMouseInShapeID=i.id;break}}e>=s&&(this.currentEnableMouseInShapeID=""),this.setCursor()}})}setCursor(){this.currentEnableMouseInShapeID?(this.app.container.style.cursor="grab",this.isMouseDown&&(this.app.container.style.cursor="grabbing")):this.app.container.style.cursor="default"}transformCtxBaseOnShape(t){!(t instanceof Kt)&&!(t instanceof me)&&this.ctx.translate(t.x,t.y),this.ctx.rotate(Vn(t.degree)),this.ctx.scale(t.scaleOnOrigin,t.scaleOnOrigin)}draw(t=[]){const e=[];return $p(t)?e.push(...t):e.push(t),this.shapes=[],e.forEach(s=>{s instanceof Hi?this.shapes.push(...s.paths):this.shapes.push(s)}),this.shapes.forEach(s=>{if(this.ctx.save(),X.attrsToCanvas(this.ctx,s.attrs),s.followMouse&&(!Is(s.x,this.app.mousePoint.x,5)||!Is(s.y,this.app.mousePoint.y,5))&&(s.angleTo(this.app.mousePoint),s.followTo(this.app.mousePoint)),s.targetToAfterDragFree&&(this.isMouseDown||s.nextFrameEaseTo(new Qt({x:s.targetToAfterDragFree.targetX,y:s.targetToAfterDragFree.targetY}),{easing:s.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableMouseInShapeID==s.id){if(s.x=this.app.mousePoint.x,s.y=this.app.mousePoint.y,!s.coordinateIsShapeCenter){const i=s.getBoundingClientRect();i&&i.width&&i.height&&(s.x-=i.width/2,s.y-=i.height/2)}s.isDragging=!0,this.shapes.filter(i=>i.id!=s.id).forEach(i=>i.isDragging=!1)}this.transformCtxBaseOnShape(s),s.toCanvasContext(this.ctx),this.ctx.hasSetCustomStrokeStyle&&this.ctx.stroke(),this.ctx.hasSetCustomFillStyle&&this.ctx.fill(),s.path2d=this.ctx.currentPath2D,this.ctx.restore()}),this}clickInPath(t){const e=()=>{this.shapes.filter(s=>s instanceof me).forEach(s=>{s.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.ctx)&&t(s)})};return this.app.on("tap",e),()=>{this.app.off("tap",e)}}drawMouseMoveLine(t="line",e){switch(t){case"brush":const s=(e&&e.brushSize)??10,i=(e&&e.brushDensity)??50,r=(e&&e.brushColor)??"#000000",o=this.ctx.getImageData(0,0,this.ctx.canvas.width,this.ctx.canvas.height),a=o.data,l=Qc(r);return this.app.captureMove({move:()=>{if(this.isMouseDown){for(let c=0;c<i;c++){const u=Math.random()*Math.PI*2,h=Math.random()*s,f=this.app.mousePoint.x+Math.cos(u)*h|0,p=this.app.mousePoint.y+Math.sin(u)*h|0,m=(f+p*o.width)*4;a[m]=l>>16&255,a[m+1]=l>>8&255,a[m+2]=l&255,a[m+3]=255}this.ctx.putImageData(o)}}});case"line":default:return this.app.captureMove({start:c=>{this.ctx.beginPath(),this.app.setMousePoint(c),this.ctx.moveTo(this.app.mousePoint.x,this.app.mousePoint.y)},end:()=>{this.ctx.closePath()},move:()=>{this.isMouseDown&&(this.ctx.lineTo(this.app.mousePoint.x,this.app.mousePoint.y),this.ctx.stroke())}})}}};class Dm{map;constructor(t,e=120.619585,s=31.299379,i=18){this.map=new T.Map(t),this.map.centerAndZoom(new T.LngLat(e,s),i)}}const Mm=tt({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:st.colorPrimary}},setup(n){const t=n;return(e,s)=>(R(),j("span",{class:"icon",style:q(["color: "+e.color])},[ot(Pt(Dp),{icon:t.icon,color:e.color},null,8,["icon","color"])],4))}}),uy="",et=(n,t)=>{const e=n.__vccOpts||n;for(const[s,i]of t)e[s]=i;return e},Gn=et(Mm,[["__scopeId","data-v-8789b4ce"]]),Am=tt({customOptions:{},inheritAttrs:!0,__name:"Button",props:{label:{},icon:{},iconPosition:{default:"left"},isDisabled:{type:Boolean,default:!1},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"14px"},borderRadius:{default:"4px"},stylePattern:{default:"fullfilled"},borderColor:{},bgColor:{},fontColor:{}},emits:["ceClick","click"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=G(),o=G(s.borderColor),a=G(s.bgColor),l=G(s.fontColor),c=G(s.borderColor),u=G(s.bgColor);function h(w){switch(w){case"outline":o.value=s.borderColor??st.colorPrimary,a.value=s.bgColor??st.colorGrayFF,l.value=s.fontColor??st.colorPrimary,c.value=o.value,u.value=a.value;break;default:o.value=s.borderColor??st.colorPrimary,a.value=s.bgColor??st.colorPrimary,l.value=s.fontColor??st.colorGrayFF,c.value=o.value,u.value=a.value;break}}wt(()=>s.stylePattern,()=>{h(s.stylePattern)},{immediate:!0});const f=G(s.isDisabled?"0.6":"1"),p=G(s.isDisabled?"not-allowed":"pointer");let m=!1;const v=()=>{s.isDisabled||(m=!0,o.value=As(c.value,10),a.value=As(u.value,10))},b=()=>{s.isDisabled||(m=!1,o.value=c.value,a.value=u.value)},C=Gp(()=>{s.isDisabled||(o.value=As(c.value,-10),a.value=As(u.value,-10),setTimeout(()=>{m?v():b()},150),i("ceClick"),i("click"))},500);return t({wrapper:r}),(w,P)=>(R(),j("div",{ref_key:"wrapper",ref:r,class:"button",style:q([`opacity: ${f.value}`,`border: 1px solid ${o.value}`,`background-color: ${a.value}`,`color: ${l.value}`,`border-radius: ${s.borderRadius}`,`height: ${s.height}`,`line-height: ${s.height}`,`font-size: ${s.fontSize}`,`cursor: ${p.value}`,"user-select: none"]),onMouseover:v,onMouseleave:b,onClick:P[0]||(P[0]=(...D)=>Pt(C)&&Pt(C)(...D))},[k("label",{class:"label truncate",style:q({padding:"0 "+w.padding,cursor:p.value})},[$t(w.$slots,"default",{},()=>[w.icon&&w.iconPosition==="left"?(R(),ue(Gn,{key:0,icon:w.icon,color:l.value,style:q({marginRight:Pt(st).gap4,cursor:p.value})},null,8,["icon","color","style"])):Xt("",!0),k("span",{style:q({cursor:p.value})},St(w.label),5),w.icon&&w.iconPosition==="right"?(R(),ue(Gn,{key:1,icon:w.icon,color:l.value,style:q({marginLeft:Pt(st).gap4,cursor:p.value})},null,8,["icon","color","style"])):Xt("",!0)],!0)],4)],36))}}),hy="",Nt=et(Am,[["__scopeId","data-v-ee116edd"]]),Rm=["onClick","value"],$m={class:"option-inner"},Lm=tt({customOptions:{Icon:Gn,Button:Nt},__name:"Select",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(n,{emit:t}){const e=n,s=t;mn(()=>{X.setStyleSheet(`
|
|
57
|
+
:root {
|
|
58
|
+
--select-option-bg-color: ${st.colorGrayFF};
|
|
59
|
+
--select-option-bg-color-hover: ${st.colorGrayF5};
|
|
60
|
+
}
|
|
61
|
+
`)});const i=G(!1),r=G(e.initIndex);wt(r,function(){s("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)=>(R(),j("div",{class:"select",style:q(["font-size:"+l.fontSize])},[k("div",{onClick:o},[$t(l.$slots,"button",{selectedIndex:r.value},()=>[ot(Nt,{icon:"carbon:chevron-sort",iconPosition:"right",label:l.options[r.value],style:{width:"100%"}},null,8,["label"])],!0)]),Ar(k("div",{class:"options",style:q({border:"1px solid "+Pt(st).colorGrayCC})},[(R(!0),j(Ot,null,fe(l.options,(u,h)=>(R(),j("div",{onClick:f=>a(h),class:"option",key:h,value:h,style:q({borderTop:(h==0?"0":"1px")+" solid "+Pt(st).colorGrayCC})},[k("div",$m,[$t(l.$slots,"default",{item:u,index:h},()=>[k("span",null,St(u),1),h==r.value?(R(),ue(Gn,{key:0,icon:"mingcute:check-fill",class:"icon"})):Xt("",!0)],!0)])],12,Rm))),128))],4),[[Ti,i.value]])],4))}}),fy="",Fm=et(Lm,[["__scopeId","data-v-8bb25be3"]]),Vm=["width","height"],Gm=["fill"],zm=tt({__name:"SVGDown",props:{width:{default:"1em"},height:{},color:{default:st.colorGrayCC}},setup(n){const t=n;return(e,s)=>(R(),j("svg",{viewBox:"0 0 20 20",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[k("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,Gm)],8,Vm))}}),dy="",zs=et(zm,[["__scopeId","data-v-b1f2ae20"]]),jm={class:"button-default"},Hm={class:"truncate"},Bm=["onClick","value"],Um=tt({customOptions:{SVGDown:zs},__name:"SelectAbsolute",props:{options:{},initIndex:{default:0},fontSize:{default:"16px"},bgColor:{default:st.colorGrayFF},hoverColor:{default:st.colorGrayF5},selectedColor:{default:st.colorPrimary},fontColor:{default:st.colorGray33},duration:{default:300}},emits:["change"],setup(n,{emit:t}){const e=n,s=t;mn(()=>{X.setStyleSheet(`
|
|
62
|
+
:root {
|
|
63
|
+
--select-option-bg-color: ${e.bgColor};
|
|
64
|
+
--select-option-bg-color-hover: ${e.hoverColor};
|
|
65
|
+
}
|
|
66
|
+
`)});const i=G(!1),r=G(e.initIndex);wt(r,function(){s("change",r.value,e.options[r.value])});function o(){i.value=!i.value}function a(c){r.value=c,i.value=!1}const l=G("rotate(-180deg)");return rl(()=>{l.value=i.value?"rotate(0deg)":"rotate(-90deg)"}),(c,u)=>(R(),j("div",{class:"select-absolute",style:q({fontSize:e.fontSize,backgroundColor:e.bgColor})},[k("div",{class:"select-absolute-button",onClick:o},[$t(c.$slots,"button",{selectedIndex:r.value},()=>[k("div",jm,[k("div",Hm,St(c.options[r.value]),1),ot(zs,{class:"icon-down",width:"20px",style:q({transition:`transform ${e.duration}ms ease-in-out`,transform:l.value})},null,8,["style"])])],!0)]),k("div",{class:"options",style:q({maxHeight:i.value?"200px":0,transition:`all ${e.duration}ms ease-in-out`,borderTop:`${i.value?1:0}px solid #e6e6e6`})},[(R(!0),j(Ot,null,fe(c.options,(h,f)=>(R(),j("div",{onClick:p=>a(f),class:"option",key:f,value:f},[$t(c.$slots,"default",{item:h,index:f},()=>[k("div",{class:"option-default",style:q({color:r.value==f?e.selectedColor:e.fontColor})},St(h),5)],!0)],8,Bm))),128))],4)],4))}}),py="",Ym=et(Um,[["__scopeId","data-v-5096cb20"]]),Xm=tt({__name:"Switch",props:{init:{type:Boolean,default:!1},width:{default:"52px"},height:{default:"32px"},padding:{default:"4px"},colorPrimary:{default:st.colorPrimary},colorBgOn:{default:st.colorGrayEF},colorBgOff:{default:st.colorGrayF5}},emits:["change"],setup(n,{emit:t}){const e=n,s=Ds(e.width),i=Ds(e.height),r=Ds(e.padding),o=i.number-r.number*2+i.suffix,a=e.padding,l=s.number-Ds(a).number-Ds(o).number+s.suffix,c=t,u=G(e.init);wt(u,function(){c("change",u.value)});function h(){u.value=!u.value}return(f,p)=>(R(),j("div",{class:"switch",onClick:h,style:q(["width: "+e.width,"height: "+e.height,"background-color: "+(u.value?e.colorBgOn:e.colorBgOff)])},[k("span",{class:"round",style:q(["width: "+o,"height: "+o,"background-color: "+(u.value?e.colorPrimary:Pt(As)(e.colorPrimary,30)),"transform: translate("+(u.value?l:Pt(a))+", 0)"])},null,4)],4))}}),my="",Wm=et(Xm,[["__scopeId","data-v-8a5d8a64"]]),qm={class:"wrap"},Km=["onClick"],Zm=["stroke","fill"],Qm=["stroke","fill"],Jm=["stroke"],tg=tt({customOptions:{},__name:"RadioGroup",props:{options:{},initIndexs:{},isRounded:{type:Boolean,default:!0},isFullfilled:{type:Boolean,default:!1},colorPath:{default:st.colorPrimary},colorBg:{default:st.colorGrayFF},colorBorder:{default:st.colorGrayCC},fontSize:{default:st.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(n,{emit:t}){const e=n,s=t;let i=G(e.initIndexs??0);wt(i,function(){s("change",e.options[i.value])});const r=function(o){i.value=o};return(o,a)=>(R(),j("div",qm,[(R(!0),j(Ot,null,fe(o.options,(l,c)=>(R(),j("span",{class:"item",key:c,onClick:u=>r(c),style:q(["margin-left:"+(c>0?e.itemPadding:0)])},[$t(o.$slots,"default",{label:l,index:c},()=>[(R(),j("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:q(["margin-right:"+e.labelPadding,"width:"+e.itemWidth])},[e.isRounded?Xt("",!0):(R(),j("rect",{key:0,x:"0",y:"0",width:"22",height:"22",stroke:o.isFullfilled&&Pt(i)===c?o.colorPath:o.colorBorder,"strke-width":"1",fill:o.isFullfilled&&Pt(i)===c?o.colorPath:o.colorBg,"fill-opacity":1},null,8,Zm)),e.isRounded?(R(),j("circle",{key:1,cx:"12",cy:"12",r:"11",stroke:o.isFullfilled&&Pt(i)===c?o.colorPath:o.colorBorder,"strke-width":"1",fill:o.isFullfilled&&Pt(i)===c?o.colorPath:o.colorBg,"fill-opacity":1},null,8,Qm)):Xt("",!0),Ar(k("path",{d:"M7 13l3 3 7-7",stroke:o.isFullfilled?o.colorBg:o.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Jm),[[Ti,Pt(i)===c]])],4)),k("span",{style:q(["font-size:"+e.fontSize])},St(l),5)],!0)],12,Km))),128))]))}}),gy="",eg=et(tg,[["__scopeId","data-v-7e2eff94"]]),ng={class:"wrap"},sg=["onClick"],ig=["stroke","fill"],rg=["stroke","fill"],og=["stroke"],ag=tt({customOptions:{},__name:"CheckboxGroup",props:{options:{},initIndexs:{},isRounded:{type:Boolean,default:!1},isFullfilled:{type:Boolean,default:!1},colorPath:{default:st.colorPrimary},colorBg:{default:st.colorGrayFF},colorBorder:{default:st.colorGrayCC},fontSize:{default:st.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(n,{emit:t}){const e=n,s=t;let i=le(e.initIndexs??[0]);wt(i,function(){s("change",i.map(o=>e.options[o]))});const r=function(o){const a=i.findIndex(l=>l===o);a>=0?i.splice(a,1):i.push(o)};return(o,a)=>(R(),j("div",ng,[(R(!0),j(Ot,null,fe(o.options,(l,c)=>(R(),j("span",{class:"item",key:c,onClick:u=>r(c),style:q(["margin-left:"+(c>0?e.itemPadding:0)])},[$t(o.$slots,"default",{label:l,index:c},()=>[(R(),j("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:q(["margin-right:"+e.labelPadding,"width:"+e.itemWidth])},[e.isRounded?Xt("",!0):(R(),j("rect",{key:0,x:"0",y:"0",width:"22",height:"22",stroke:o.isFullfilled&&Pt(i).findIndex(u=>u===c)>=0?o.colorPath:o.colorBorder,"strke-width":"1",fill:o.isFullfilled&&Pt(i).findIndex(u=>u===c)>=0?o.colorPath:o.colorBg,"fill-opacity":1},null,8,ig)),e.isRounded?(R(),j("circle",{key:1,cx:"12",cy:"12",r:"11",stroke:o.isFullfilled&&Pt(i).findIndex(u=>u===c)>=0?o.colorPath:o.colorBorder,"strke-width":"1",fill:o.isFullfilled&&Pt(i).findIndex(u=>u===c)>=0?o.colorPath:o.colorBg,"fill-opacity":1},null,8,rg)):Xt("",!0),Ar(k("path",{d:"M7 13l3 3 7-7",stroke:o.isFullfilled?o.colorBg:o.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,og),[[Ti,Pt(i).findIndex(u=>u===c)>=0]])],4)),k("span",{style:q(["font-size:"+e.fontSize])},St(l),5)],!0)],12,sg))),128))]))}}),vy="",lg=et(ag,[["__scopeId","data-v-ae9d25d1"]]),cg=["width","height"],ug=["fill"],hg=["fill"],fg=["fill"],dg=tt({__name:"SVGPrompt",props:{width:{default:"1.5em"},height:{},color:{default:st.colorRed}},setup(n){const t=n;return(e,s)=>(R(),j("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[k("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,ug),k("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,hg),k("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,fg)],8,cg))}}),_y="",au=et(dg,[["__scopeId","data-v-41294f60"]]),pg={class:"wrap"},mg=["type","required"],gg={class:"ellipsis"},vg={key:1,style:{}},_g=tt({customOptions:{SVGPrompt:au},inheritAttrs:!0,__name:"Input",props:{placeholder:{},placeholderJump:{type:Boolean,default:!1},height:{default:"44px"},type:{default:"text"},required:{type:Boolean,default:!1},focusColor:{default:st.colorPrimary},errorColor:{default:st.colorRed},bgColor:{default:"#cccccc"},placeholderColor:{default:"#8f8f8f"},fontColor:{default:"#333333"},borderRadius:{default:"4px"},duration:{default:500},validator:{}},emits:["focus","ceFocus","blur","ceBlur","input","ceInput"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=s.placeholder.split(""),o=s.duration/r.length,a=G(!1),l=G(""),c=G("");function u(){a.value=!0,i("focus"),i("ceFocus")}function h(){a.value=!1,i("blur"),i("ceBlur"),p()}function f(m){c.value=m.target.value,p()}function p(){if(c.value&&s.validator){const m=s.validator(c.value);if(!m.isValidated){l.value=m.msg;return}}l.value="",c.value&&(i("input",c.value),i("ceInput",c.value))}return zt(()=>{}),t({}),(m,v)=>(R(),j("div",pg,[k("input",{type:s.type,required:s.required,autocomplete:"off",style:q({height:s.height,lineHeight:s.height,borderRadius:s.borderRadius,color:s.fontColor,borderColor:l.value?s.errorColor:a.value?s.focusColor:c.value?s.bgColor:"transparent",transition:s.duration+"ms"}),class:ye([a.value||c.value?"focus":"blur","input"]),onFocus:u,onBlur:h,onInput:f,onChange:f},null,46,mg),k("div",{class:"placeholder",style:q({lineHeight:a.value||c.value?1.3:s.height,color:s.placeholderColor,transition:s.placeholderJump?"":s.duration+"ms",transform:s.placeholderJump?"":a.value||c.value?"translateY(-100%)":"none"})},[l.value?(R(),j("div",{key:0,style:q({color:s.errorColor,transform:s.placeholderJump?"translateY(-100%)":""})},[ot(au,{class:"icon"}),k("div",gg,St(l.value),1)],4)):Xt("",!0),!l.value&&!s.placeholderJump?(R(),j("div",vg,St(s.placeholder),1)):Xt("",!0),!l.value&&s.placeholderJump?(R(!0),j(Ot,{key:2},fe(Pt(r),(b,E)=>(R(),j("span",{key:E,style:q({transition:s.duration+"ms cubic-bezier(0.68, -0.55, 0.265, 1.55)",transitionDelay:`${o*E}ms`,transform:a.value||c.value?`translateX(${100*E}%) translateY(-100%)`:`translateX(${100*E}%)`}),class:"single"},St(b),5))),128)):Xt("",!0)],4),k("div",{class:"bg",style:q({transition:s.duration+"ms",backgroundColor:a.value||c.value?"transparent":s.bgColor,height:a.value||c.value?s.height:"2px",borderRadius:s.borderRadius})},null,4)]))}}),yy="",yg=et(_g,[["__scopeId","data-v-e02afc20"]]),bg=["width","height"],xg=["fill"],wg=tt({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:st.colorPrimary}},setup(n){const t=n;return(e,s)=>(R(),j("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,xmlns:"http://www.w3.org/2000/svg"},[k("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,xg)],8,bg))}}),by="",Fo=et(wg,[["__scopeId","data-v-4747d4a7"]]),Eg=tt({customOptions:{SVGDelete:Fo},inheritAttrs:!0,__name:"SlideLeftItem",props:{bgColor:{default:st.colorGrayFF},deleteColor:{default:st.colorRed},fontColor:{default:st.colorGrayFF},borderRadius:{default:"4px"},deleteWidth:{default:"44px"},transtionDuration:{default:"150ms"}},emits:["delete"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=G(!1),o=()=>{i("delete"),r.value=!1};let a;const l=G();return wt(l,()=>{l.value&&(a=new Ct(l.value),a.on("panLeft",()=>{r.value=!0}),a.on("panRight",()=>{r.value=!1}),a.on("tapOutSide",()=>{r.value=!1}))}),zt(()=>{a?.destroy()}),t({}),(c,u)=>(R(),j("div",{class:"parent",ref_key:"item",ref:l,style:q({backgroundColor:s.bgColor,borderRadius:s.borderRadius})},[k("div",{class:"content",style:q({transition:"all ease-in "+s.transtionDuration,transform:r.value?"translate(-"+s.deleteWidth+", 0)":"translate(0, 0)"})},[$t(c.$slots,"default",{},void 0,!0)],4),k("div",{class:"delete",onClick:o,style:q({backgroundColor:s.deleteColor,width:s.deleteWidth,transition:"all ease-in "+s.transtionDuration,transform:r.value?"translate(0, 0)":"translate("+s.deleteWidth+", 0)"})},[ot(Fo,{color:s.fontColor},null,8,["color"])],4)],4))}}),xy="",Cg=et(Eg,[["__scopeId","data-v-244215c2"]]),Sg=n=>{const t={};for(const e of n.attributes)t[e.name]=e.value;return t},Tg={class:"overlay-content",style:q(["position: relative","z-index: 6001","inset: 0","overflow-y: auto","width: 100% ","height: 100%"])},kg=tt({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean},bgColor:{default:um(st.colorGray00,.25)},isGlobal:{type:Boolean,default:!0}},setup(n,{expose:t,emit:e}){const s=n,i=G();function r(o){s.isGlobal?o?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow="",document.body.style.overflow=""):i.value&&o&&(i.value.parentElement.style.overflow="hidden")}return wt(()=>s.visible,()=>{r(s.visible)},{immediate:!0}),t({}),(o,a)=>s.visible?(R(),j("div",{key:0,ref_key:"overlayRef",ref:i,class:"overlay",style:q([`position: ${s.isGlobal?"fixed":"absolute"}`,"z-index: 6000 ","inset: 0",`background-color: ${s.bgColor};`])},[k("div",Tg,[$t(o.$slots,"default",{},void 0,!0)])],4)):Xt("",!0)}}),wy="",es=et(kg,[["__scopeId","data-v-1972073d"]]),Pg=(n=>(Xn("data-v-ad23bc09"),n=n(),Wn(),n))(()=>k("div",null,null,-1)),Og=tt({customOptions:{Overlay:es},inheritAttrs:!0,__name:"Pop",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},openDurTime:{default:200},closeDurTime:{default:150},isGlobal:{type:Boolean,default:!0},overlayBgColor:{}},emits:["open","close"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=G();let o;const a=le({}),l=le({});function c(){switch(Os(a),Os(l),s.directionFrom){case"absolute":o="",a.display="block",l.width="100%",l.height="100%";break;case"top":o="slideDown",a.display="block",l.width="100%",l.top="0",l.left="0";break;case"left":o="slideRight",a.display="block",l.height="100%",l.top="0",l.left="0";break;case"right":o="slideLeft",a.display="block",l.height="100%",l.top="0",l.right="0";break;case"bottom":o="slideUp",a.display="block",l.width="100%",l.bottom="0",l.left="0";break;case"center":default:o="popIn",a.display="flex",a.justifyContent="center",a.alignItems="center";break}}wt(()=>s.directionFrom,()=>{c()},{immediate:!0});const u=new Jt,h=(E=!0)=>{!o||!r.value||(E?(u.fromDOM(r.value),u.toCSS(o,{easeName:"ease",dur:s.openDurTime,onComplete:()=>{i("open")}})):u.toCSS(o,{easeName:"ease",dur:s.closeDurTime,direction:"reverse",onComplete:()=>{v()}}))};wt(r,()=>{r.value&&h(!0)},{});const f=G(!1);function p(){f.value=!0}function m(){s.directionFrom=="absolute"?v():h(!1)}function v(){f.value=!1,i("close")}function b(E){s.directionFrom=="absolute"?r.value&&r.value.children[0]&&!r.value.children[0].contains(E.target)&&s.closeWhenClickOverlay&&v():r.value&&!r.value.contains(E.target)&&s.closeWhenClickOverlay&&m()}return t({open:p,close:m}),(E,C)=>(R(),ue(es,{visible:f.value,isGlobal:s.isGlobal,bgColor:s.overlayBgColor},{default:Dt(()=>[k("div",{class:"pop-parent",style:q([{position:"relative",width:"100%",height:"100%",overflow:"hidden"},a]),onClick:b},[k("div",{ref_key:"pop",ref:r,class:"pop",style:q([{position:"absolute","z-index":"3000"},l])},[$t(E.$slots,"default",{},()=>[Pg],!0)],4)],4)]),_:3},8,["visible","isGlobal","bgColor"]))}}),Cy="",Pe=et(Og,[["__scopeId","data-v-ad23bc09"]]),Ng={class:"dialog-parent"},Ig={key:0,class:"title"},Dg={key:0,class:"title-inner truncate"},Mg={class:"custom-content"},Ag={class:"custom-content-default"},Rg={key:1,class:"btns"},$g=tt({customOptions:{Overlay:es,Pop:Pe,Icon:Gn,Button:Nt},inheritAttrs:!0,__name:"Dialog",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150},minWidth:{default:"12em"},maxWidth:{default:"20em"},overlayBgColor:{}},emits:["open","close","cancel","confirm"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=G(),o=G(""),a=G(""),l=G(!1),c=G(""),u=G("");let h,f,p;function m(C){o.value=C?.title||"",a.value=C?.content||"",l.value=typeof C?.showClose=="boolean"?C?.showClose:!1,c.value=C?.cancelText||"",u.value=C?.confirmText||"",r.value.open(),h=C?.onClose,f=C?.onCancel,p=C?.onConfirm,i("open")}function v(){r.value.close(),h?.(),i("close")}function b(){v(),f?.(),i("cancel")}function E(){v(),p?.(),i("confirm")}return t({open:m,close:v}),(C,w)=>(R(),ue(Pe,{ref_key:"popRef",ref:r,directionFrom:"center",closeWhenClickOverlay:s.closeWhenClickOverlay,openDurTime:s.openDurTime,closeDurTime:s.closeDurTime,overlayBgColor:s.overlayBgColor},{default:Dt(()=>[k("div",Ng,[k("div",{class:"dialog",style:q({minWidth:s.minWidth,maxWidth:s.maxWidth})},[o.value||l.value?(R(),j("div",Ig,[o.value?(R(),j("div",Dg,St(o.value),1)):Xt("",!0),l.value?(R(),j("div",{key:1,class:"close",onClick:v},[ot(Gn,{icon:"ic:baseline-close",color:Pt(st).colorGrayCC},null,8,["color"])])):Xt("",!0)])):Xt("",!0),k("div",Mg,[$t(C.$slots,"default",{},()=>[k("div",Ag,St(a.value),1)],!0)]),c.value||u.value?(R(),j("div",Rg,[c.value?(R(),ue(Nt,{key:0,onClick:b,class:"btn",bgColor:Pt(st).colorGrayE6,borderColor:Pt(st).colorGrayE6,fontColor:Pt(st).colorGray33,borderRadius:"0"},{default:Dt(()=>[Yt(St(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):Xt("",!0),u.value?(R(),ue(Nt,{key:1,onClick:E,class:"btn",borderRadius:"0"},{default:Dt(()=>[Yt(St(u.value),1)]),_:1})):Xt("",!0)])):Xt("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime","overlayBgColor"]))}}),Sy="",js=et($g,[["__scopeId","data-v-6bd255c9"]]),Lg={class:"toast"},Fg={class:"content"},Vg=tt({customOptions:{Overlay:es,Pop:Pe,Dialog:js},inheritAttrs:!0,__name:"DialogToast",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=G(),o=G("");function a(c,u=1500){o.value=c,r.value.open(),i("open"),setTimeout(()=>{l()},u)}function l(){r.value.close(),i("close")}return t({open:a,close:l}),(c,u)=>(R(),ue(js,{ref_key:"dialogRef",ref:r,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:s.closeWhenClickOverlay,openDurTime:s.openDurTime,closeDurTime:s.closeDurTime,overlayBgColor:"transparent",minWidth:"10em"},{default:Dt(()=>[k("div",Lg,[k("div",Fg,St(o.value),1)])]),_:1},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),Ty="",lu=et(Vg,[["__scopeId","data-v-50ed852e"]]),Gg={class:"loading-8"},zg={viewBox:"25 25 50 50"},jg=tt({__name:"Loading8",props:{color:{default:st.colorPrimary}},setup(n){const t=n;return(e,s)=>(R(),j("div",Gg,[(R(),j("svg",zg,[k("circle",{cx:"50",cy:"50",r:"20",style:q(["stroke: "+t.color])},null,4)]))]))}}),ky="",Vo=et(jg,[["__scopeId","data-v-e5e3cf4c"]]),Hg={class:"loading"},Bg={class:"icon"},Ug={style:{width:"8em"}},Yg={key:0,class:"content"},Xg=tt({customOptions:{Overlay:es,Pop:Pe,Dialog:js,Loading8:Vo},inheritAttrs:!0,__name:"DialogLoading",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=G(),o=G("");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)=>(R(),ue(js,{ref_key:"dialogRef",ref:r,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:s.closeWhenClickOverlay,openDurTime:s.openDurTime,closeDurTime:s.closeDurTime},{default:Dt(()=>[k("div",Hg,[k("div",Bg,[$t(c.$slots,"default",{},()=>[k("div",Ug,[ot(Vo)])],!0)]),o.value?(R(),j("div",Yg,St(o.value),1)):Xt("",!0)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),Py="",Wg=et(Xg,[["__scopeId","data-v-cb469a6c"]]),Go=n=>(Xn("data-v-85491020"),n=n(),Wn(),n),qg=[Go(()=>k("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)),Go(()=>k("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)),Go(()=>k("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))],Kg=tt({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:st.colorPrimary}},setup(n){const t=n;return(e,s)=>(R(),j("svg",{style:q(["width: "+t.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},qg,4))}}),Dy="",Ui=et(Kg,[["__scopeId","data-v-85491020"]]),Zg=["data-number"],Qg=["data-number","data-unactive"],Jg=["data-number"],t0=["data-number","data-unactive"],e0=tt({customOptions:{Pop:Pe,SVGCleanUp:Ui},__name:"PlateKeyboard",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=G(),o=G(0),a=le([]);function l(){a.length==0?o.value=0:a.length==1?o.value=1:o.value=2,a.length>=s.completePlateLength&&u()}wt(()=>[...s.initPlates],()=>{Ns(a,s.initPlates),l()},{immediate:!0});const c=()=>{r.value.open(),i("open")},u=()=>{r.value.close(),i("close")},h=()=>{a.pop(),l(),i("plates",a)},f=E=>{if(E.target.dataset.unactive||"")return;let w=E.target.dataset.number;w&&(a.push(w),l(),i("plates",a))};t({open:c,close:u});const p=["京","沪","津","渝","黑","吉","辽","蒙","冀","新","甘","青","陕","宁","豫","鲁","晋","皖","鄂","湘","苏","川","云","桂","藏","浙","赣","粤","闽","琼","贵"],m=["1","2","3","4","5","6","7","8","9","0"],v=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","Q","R","S","T","U","V","W","X","Y","Z"],b=["港","澳","学","警","使","领","挂","应","急"];return(E,C)=>(R(),ue(Pe,{ref_key:"popRef",ref:r,directionFrom:"bottom",isGlobal:!0,closeWhenClickOverlay:!1},{default:Dt(()=>[k("div",{class:"popup-plate",style:q({paddingBottom:Pt(st).safeAreaBottom})},[k("div",null,[k("div",{onClick:u},"关闭")]),k("div",{class:ye(["step",o.value==0?"":"hide"])},[(R(),j(Ot,null,fe(p,w=>k("div",{key:w,class:"popitem",onClick:f,"data-number":w},St(w),9,Zg)),64)),k("div",{class:"popitem popitem-clear",onClick:h},[ot(Ui,{width:"16px"})])],2),k("div",{class:ye(["step",o.value!=0?"":"hide"])},[(R(),j(Ot,null,fe(m,w=>k("div",{key:w,class:ye(["popitem",o.value!=2?"unactive":""]),onClick:f,"data-number":w,"data-unactive":o.value!=2?"unactive":""},St(w),11,Qg)),64)),(R(),j(Ot,null,fe(v,w=>k("div",{key:w,class:"popitem",onClick:f,"data-number":w},St(w),9,Jg)),64)),(R(),j(Ot,null,fe(b,w=>k("div",{key:w,class:ye(["popitem",o.value!=2?"unactive":""]),onClick:f,"data-number":w,"data-unactive":o.value!=2?"unactive":""},St(w),11,t0)),64)),k("div",{class:"popitem popitem-clear",onClick:h},[ot(Ui,{width:"16px"})])],2)],4)]),_:1},512))}}),My="",cu=et(e0,[["__scopeId","data-v-bade3529"]]),uu=document.getElementById("teleport")||document.documentElement;function hu(n,t){{const e=we(lu,{});Pi(e,uu),e.component?.exposed?.open(n,t)}}function n0(n,t="bottom"){let e;n instanceof HTMLElement?e=we(Pe,{directionFrom:t},()=>we("div",{...Sg(n),innerHTML:n.innerHTML})):e=we(Pe,{directionFrom:t},()=>n),Pi(e,document.getElementById("teleport")||document.documentElement),e.component?.exposed?.open();const s=()=>{e.component?.exposed?.close()};return s.vnode=e,s}function s0(n){return n0(n,"absolute")}function i0(n){{const t=we(cu,n);return Pi(t,uu),t.component?.exposed?.open(),()=>{t.component?.exposed?.close()}}}const r0={class:"content"},o0=tt({customOptions:{},inheritAttrs:!0,__name:"MouseOver",props:{coverColor:{default:"#fc2f70"},timeGap:{default:200},coverDirection:{default:"bottomLeft"}},emits:["mouseOver","mouseOut"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=G(),o=G(!1),a=le({}),l=le({}),c=le({});let u=1,h;wt(r,()=>{r.value&&(p(),h=new Ct(r.value,!1),h.on("resize",(m,v)=>{u=Math.max(m,v)/Math.min(m,v);const b=Math.min(m,v);l.width=b+"px",l.height=b+"px",p()}),h.on("mouseOver",()=>{i("mouseOver"),o.value=!0,p()}),h.on("mouseOut",()=>{i("mouseOut"),o.value=!1,p()}),h.start())});function f(){X.copyToClipboard(X.getInnerText(r.value)).then(()=>{hu("复制成功")}).catch(m=>{hu(m.toString())})}function p(){switch(s.coverDirection){case"bottomLeft":l.top="100%",l.right="100%",l.borderRadius="50%",l.transformOrigin="center",l.transform=`translate3d(50%, -50%, 0) ${o.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,l.transition=`transform ${s.timeGap*u}ms ease-in-out`;break;case"bottomRight":l.top="100%",l.left="100%",l.borderRadius="50%",l.transformOrigin="center",l.transform=`translate3d(-50%, -50%, 0) ${o.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,l.transition=`transform ${s.timeGap*u}ms ease-in-out`;break;case"topLeft":l.bottom="100%",l.right="100%",l.borderRadius="50%",l.transformOrigin="center",l.transform=`translate3d(50%, 50%, 0) ${o.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,l.transition=`transform ${s.timeGap*u}ms ease-in-out`;break;case"topRight":l.bottom="100%",l.left="100%",l.borderRadius="50%",l.transformOrigin="center",l.transform=`translate3d(-50%, 50%, 0) ${o.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,l.transition=`transform ${s.timeGap*u}ms ease-in-out`;break;case"center":l.top="50%",l.left="50%",l.borderRadius="50%",l.transformOrigin="center",l.transform=`translate3d(-50%, -50%, 0) ${o.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,l.transition=`transform ${s.timeGap*u}ms ease-in-out`;break;case"slideUp":l.top="0",l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="100%",l.borderRadius="0",l.transformOrigin=`${o.value?"center bottom":"center top"}`,l.transform=`${o.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${s.timeGap}ms ease-in-out`;break;case"slideDown":l.top="0",l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="100%",l.borderRadius="0",l.transformOrigin=`${o.value?"center top":"center bottom"}`,l.transform=`${o.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${s.timeGap}ms ease-in-out`;break;case"slideRight":l.top="0",l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="100%",l.borderRadius="0",l.transformOrigin=`${o.value?"center left":"center right"}`,l.transform=`${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap}ms ease-in-out`;break;case"slideLeft":l.top="0",l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="100%",l.borderRadius="0",l.transformOrigin=`${o.value?"center right":"center left"}`,l.transform=`${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap}ms ease-in-out`;break;case"animationJelly":l.transform="scale(0)",a.animation=`${o.value?"jelly 0.5s":"none"}`;break;case"floatUp":l.transform="scale(0)",a.transform=`${o.value?"translateY(-4px)":"translateY(0)"}`,a.willChange="box-shadow, transform",a.transition=`transform ${s.timeGap}ms ease,box-shadow ${s.timeGap}ms ease `;break;case"underlineRight":l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="2px",l.transformOrigin=`${o.value?"bottom left":"bottom right"}`,l.transform=`${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u*.5}ms ease`;break;case"underlineRightInit":l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="2px",l.transformOrigin=`${o.value?"bottom right":"bottom left"}`,l.transform=`${o.value?"scaleX(0)":"scaleX(1)"}`,l.transition=`transform ${s.timeGap*u*.5}ms ease`;break;case"underlineCenter":l.bottom="0",l.left="50%",l.width="100%",l.height="2px",l.transformOrigin="center",l.transform=`translate(-50%, 0) ${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u*.5}ms ease-in-out`;break;case"lineThrough":l.top="50%",l.left="0",l.right="0",l.width="100%",l.height="3px",l.transformOrigin=`${o.value?"center right":"center left"}`,l.transform=`${o.value?"scaleX(0)":"scaleX(1)"} translateY(-50%)`,l.transition=`transform ${s.timeGap*u*.5}ms ease`;break;case"overlineRight":l.top="0",l.left="0",l.right="0",l.width="100%",l.height="2px",l.transformOrigin=`${o.value?"bottom left":"bottom right"}`,l.transform=`${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u*.5}ms ease`;break;case"overlineCenter":l.top="0",l.left="50%",l.width="100%",l.height="2px",l.transformOrigin="center",l.transform=`translate(-50%, 0) ${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u*.5}ms ease-in-out`;break;case"pillars1":l.top="0",l.bottom="0",l.width="2px",l.height="100%",l.transformOrigin=`${o.value?"center bottom":"center top"}`,l.transform=`${o.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,Kn(l,c),c.right="0";break;case"pillars2":l.top="0",l.bottom="0",l.width="2px",l.height="100%",l.transformOrigin=`${o.value?"center bottom":"center top"}`,l.transform=`${o.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,Kn(l,c),c.transformOrigin=`${o.value?"center top":"center bottom"}`,c.right="0";break;case"pillars3":l.top="0",l.bottom="0",l.width="2px",l.height="100%",l.transformOrigin="center",l.transform=`${o.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,Kn(l,c),c.right="0";break;case"bars1":l.left="0",l.right="0",l.width="100%",l.height="2px",l.transformOrigin=`${o.value?"center left":"center right"}`,l.transform=`${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,Kn(l,c),c.bottom="0";break;case"bars2":l.left="0",l.right="0",l.width="100%",l.height="2px",l.transformOrigin=`${o.value?"center right":"center left"}`,l.transform=`${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,Kn(l,c),l.transformOrigin=`${o.value?"center left":"center right"}`,c.bottom="0";break;case"bars3":l.left="50%",l.right="0",l.width="100%",l.height="2px",l.transformOrigin="center",l.transform=` translateX(-50%) ${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,Kn(l,c),c.bottom="0";break}}return zt(()=>{h?.destroy()}),t({}),(m,v)=>(R(),j("div",{ref_key:"wrap",ref:r,class:"wrap",style:q({...a}),onClick:f},[k("div",{class:"before",style:q({backgroundColor:s.coverColor,...l})},null,4),k("div",r0,[$t(m.$slots,"default",{},void 0,!0)]),k("div",{class:"after",style:q({backgroundColor:s.coverColor,...c})},null,4)],4))}}),Ay="",Ry="",a0=et(o0,[["__scopeId","data-v-3b7e7704"]]),l0=tt({customOptions:{SVGDown:zs},inheritAttrs:!0,__name:"Accordion",props:{initOpen:{type:Boolean,default:!1},height:{default:"44px"},bgColor:{default:"#efefef"},fontColor:{default:"#333333"},borderColor:{default:"#dddddd"},borderRadius:{default:"4px"},padding:{default:"1em"},duration:{default:500}},emits:["open","close","resize"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=G(Number.MAX_SAFE_INTEGER+"px"),o=G(),a=G(!0);let l;wt(o,()=>{o.value&&(r.value=o.value.getBoundingClientRect().height+"px",l=new Ct(o.value),l.on("resize",(h,f)=>{i("resize",h,f)}),a.value=s.initOpen)});function c(){a.value=!a.value,a.value?i("open"):i("close")}const u=G("rotate(0deg)");return rl(()=>{u.value=a.value?"rotate(0deg)":"rotate(-90deg)"}),zt(()=>{l?.destroy()}),t({}),(h,f)=>(R(),j("div",{class:"wrap",style:q({background:s.bgColor,color:s.fontColor,borderRadius:s.borderRadius})},[k("div",{class:"title",onClick:c,style:q({height:s.height,lineHeight:s.height,margin:`0 ${s.padding}`,transitionDelay:`${a.value?0:s.duration}ms`,borderBottom:`${a.value?1:0}px solid ${s.borderColor}`})},[$t(h.$slots,"title",{},()=>[Yt("title")],!0),ot(zs,{class:"arrow",style:q({transition:`transform ${s.duration}ms ease-in-out`,transform:u.value})},null,8,["style"])],4),k("div",{ref_key:"content",ref:o,class:"content",style:q({margin:`0 ${s.padding}`,transition:`max-height ${s.duration}ms ease-in-out`,maxHeight:a.value?r.value:"0"})},[$t(h.$slots,"content",{},void 0,!0)],4)],4))}}),$y="",c0=et(l0,[["__scopeId","data-v-9ced806f"]]),u0=tt({__name:"ProgressBar",props:{width:{default:"200px"},height:{default:"10px"},bgColor:{default:"#efefef"},progressColor:{default:"#a0dde9"},borderColor:{default:"#eeeeee"},borderRadius:{default:"4px"},duringTimeGap:{default:50},showText:{type:Boolean,default:!1}},emits:["complete"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=G(0);function o(){r.value=0}function a(l){const c=r.value,u=Math.min(Math.max(0,l),100);Jt.toTween({width:c},{width:u},{duration:Math.abs(u-c)*s.duringTimeGap,onStart:()=>{},onUpdate:h=>{r.value=h.width},onComplete:()=>{i("complete",r.value)}}).startAuto()}return t({start:o,goto:a}),(l,c)=>(R(),j("div",{class:"wrap",style:q({width:s.width,height:s.height,border:`1px solid ${s.borderColor}`,borderRadius:s.borderRadius,backgroundColor:s.bgColor})},[k("div",{class:"bar",style:q({width:r.value+"%",backgroundColor:s.progressColor})},St(s.showText?r.value+"%":""),5)],4))}}),Ly="",Hs=et(u0,[["__scopeId","data-v-30de81f6"]]),h0=["width","height"],f0=["src","type"],d0={class:"bar-wrap"},p0=tt({customOptions:{ProgressBar:Hs},inheritAttrs:!0,__name:"Video",props:{src:{},type:{default:"video/webm"},autoplay:{type:Boolean,default:!0},width:{default:"320px"},height:{default:"138px"}},emits:["start","complete"],setup(n,{expose:t,emit:e}){const s=n;function i(){Jt.toTween({x:0},{x:100},{duration:this.duration,precision:.05,onStart:()=>{o.value?.start()},onUpdate:l=>{o.value?.goto(l.x)}}).startAuto(()=>this.currentTime)}const r=G(),o=G();wt(r,()=>{r.value&&(r.value.addEventListener("play",i),s.autoplay&&ko.tryAutoPlayOrAutoPlayAfterClick(r.value))}),zt(()=>{r.value?.removeEventListener(i)});function a(){r.value?.play()}return t({play:a}),(l,c)=>(R(),j("div",{class:"wrap",style:q({width:s.width,height:s.height}),onClick:a},[k("video",{ref_key:"video",ref:r,width:s.width,height:s.height,preload:"metadata"},[k("source",{src:s.src,type:s.type},null,8,f0)],8,h0),k("div",d0,[ot(Hs,{ref_key:"bar",ref:o,width:s.width,height:"6px",bgColor:"#ffffff"},null,8,["width"])])],4))}}),Fy="",m0=et(p0,[["__scopeId","data-v-edddb069"]]),g0=tt({...{},name:"Image",customOptions:{},inheritAttrs:!0,__name:"Image",props:{src:{},mode:{default:"scaleToFill"},bgColor:{default:"transparent"},openImageViewWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=G(),o=G(),a=G(0),l=G(0),c=G(0),u=G(0),h=G(1),f=G(0),p=G(0);hm(s.src).then(D=>{c.value=D.width,u.value=D.height,h.value=D.aspectRatio,C()});let m;wt(r,()=>{r.value&&(m=new Ct(r.value,!1),m.on("resize",(D,N)=>{a.value=D,l.value=N,C()}),m.start())});let v=!1;const b={x:0,y:0,width:0,height:0};let E;function C(){if(!(!a.value||!l.value||!c.value||!u.value)){switch(s.mode){case"aspectFit":h.value>=1?(f.value=a.value,p.value=f.value/h.value,p.value>l.value&&(p.value=l.value,f.value=p.value*h.value)):(p.value=l.value,f.value=p.value*h.value,f.value>a.value&&(f.value=a.value,p.value=f.value/h.value));break;case"aspectFill":h.value>=1?(p.value=l.value,f.value=p.value*h.value):(f.value=a.value,p.value=f.value/h.value);break;case"widthFix":f.value=a.value,p.value=f.value/h.value;break;case"heightFix":p.value=l.value,f.value=p.value*h.value;break;case"scaleToFill":default:f.value=a.value,p.value=l.value;break}Ha(()=>{const D=o.value.getBoundingClientRect();i("settled",D.x,D.y,f.value,p.value),v&&E(b.x,b.y,b.width,b.height)})}}function w(D,N,A,at){const lt=(bt,Lt,Ft,_t,dt,Z,I,Y,z)=>{if(!dt||!Z||!I||!Y){const ft=Et.vnode.el.getBoundingClientRect(),At=ft.width,ie=ft.height;let Se=0,Te=0;h.value>=1?(Se=At,Te=Se/h.value,Te>ie&&(Te=ie,Se=Te*h.value)):(Te=ie,Se=Te*h.value,Se>At.value&&(Se=At.value,Te=Se/h.value)),dt=(At-Se)/2,Z=(ie-Te)/2,I=Se,Y=Te}const mt=200;Jt.toTween({left:bt,top:Lt,width:Ft,height:_t},{left:dt,top:Z,width:I,height:Y},{duration:mt,onStart(){},onUpdate(ft){pt.el.style.left=ft.left+"px",pt.el.style.top=ft.top+"px",pt.el.style.width=ft.width+"px",pt.el.style.height=ft.height+"px"},onComplete(ft){b.x=ft.left,b.y=ft.top,b.width=ft.width,b.height=ft.height,z?.()}}).startAuto()},pt=we("div",{style:`
|
|
67
|
+
position:absolute;
|
|
68
|
+
left:${D}px;
|
|
69
|
+
top:${N}px;
|
|
70
|
+
width: ${A}px;
|
|
71
|
+
height: ${at}px;
|
|
72
|
+
background-image: url(${s.src});
|
|
73
|
+
background-repeat: no-repeat;
|
|
74
|
+
background-position: center center;
|
|
75
|
+
background-size: 100% 100%`,onVnodeMounted:()=>{lt(D,N,A,at)}}),Et=s0(we("div",{style:`
|
|
76
|
+
position:absolute;
|
|
77
|
+
width: 100%;
|
|
78
|
+
height: 100%;
|
|
79
|
+
background-color: transparent;
|
|
80
|
+
display: flex;
|
|
81
|
+
justify-content: center;
|
|
82
|
+
align-items: center;
|
|
83
|
+
`,onClick:()=>{const{x:bt,y:Lt,width:Ft,height:_t}=o.value.getBoundingClientRect();lt(b.x,b.y,b.width,b.height,bt,Lt,Ft,_t,()=>{Et(),v=!1})}},pt));return lt}function P(){if(!r.value||!s.openImageViewWhenClick)return;v=!0;const{x:D,y:N,width:A,height:at}=o.value.getBoundingClientRect();E=w(D,N,A,at)}return zt(()=>{m?.destroy()}),t({}),(D,N)=>(R(),j("div",{ref_key:"imageOutterRef",ref:r,class:"image",style:q({backgroundColor:s.bgColor}),onClick:P},[k("div",{ref_key:"imageInnerRef",ref:o,class:"image-inner",style:q({width:f.value+"px",height:p.value+"px",backgroundImage:`url(${s.src})`,backgroundSize:`${f.value}px ${p.value}px`})},null,4)],4))}}),Gy="",zo=et(g0,[["__scopeId","data-v-928690db"]]),v0=tt({customOptions:{},inheritAttrs:!0,__name:"Routes",props:{direction:{default:"rightToLeft"},duration:{default:300},easeName:{default:"ease-in-out"}},emits:["finish"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=G();let o=[],a;const l=new Jt;let c=0,u=!1;const h={};function f(){switch(Os(h),s.direction){case"none":a="",h.position="absolute",h.top="0",h.left="0";break;case"topToBottom":a="slideDown";break;case"leftToRight":a="slideRight";break;case"rightToLeft":a="slideLeft";break;case"bottomToTop":a="slideUp";break}}f();function p(){r.value&&(Pi(we("div",{class:"routes-inner-wrap",style:""},o.map(N=>we("div",{class:"route-page",style:"display: block; position: relative; width: 100%; min-height: 100%;"},we(N.component,{...N.attributes,style:{...N.attributes.style||{},...h}})))),r.value),l?.fromDOM([...r.value.children[0].children]))}const m=N=>{if(!(!a||u||!o.length)){if(u=!0,N.push&&(c=o.length-1),N.pop){if(!o.length){u=!1;return}c=o.length-1}if(N.reset&&(c=0),N.forward){if(c>=o.length-1){u=!1;return}c++}if(N.back&&c<=0){u=!1;return}l.toCSS(a,{easeName:s.easeName,dur:N?.dur??s.duration,direction:N.back||N.pop?"reverse":"normal",onComplete:()=>{(N.back||N.pop)&&c--,N.pop&&(o.pop(),p()),i("finish",c),u=!1,N?.onComplete?.()}},c)}};function v(N=[],A){o=[],N.forEach(at=>o.push({component:at.component,attributes:at.attributes??{}})),p(),m({reset:!0,onComplete:A})}function b(N,A={}){o.push({component:N,attributes:A}),p(),m({push:!0})}function E(){m({pop:!0})}function C(){m({forward:!0})}function w(){m({back:!0})}function P(N,A){N>o.length-1||N<0||N==c||(A||(A=s.duration/Math.abs(N-c)),c<N?m({forward:!0,dur:A,onComplete:()=>{setTimeout(()=>{P(N,A)})}}):m({back:!0,dur:A,onComplete:()=>{setTimeout(()=>{P(N,A)})}}))}function D(){p(),m({resize:!0})}return mn(()=>{Ct.page.on("resize",D)}),zt(()=>{l.destroy(),Ct.page.off("resize",D)}),t({reset:v,push:b,pop:E,forward:C,back:w,goto:P}),(N,A)=>(R(),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))}}),zy="",fu=et(v0,[["__scopeId","data-v-210d799a"]]),_0={style:{position:"absolute",width:"100%",height:"100%"}},y0={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},b0=tt({customOptions:{Image:zo},inheritAttrs:!0,__name:"ImageView",props:{urls:{default:()=>[]}},setup(n,{expose:t,emit:e}){const s=n,i=G(),r=G(),o=G(),a=G(0);let l;function c(m){a.value=m}function u(){o.value?.forward()}function h(){o.value?.back()}wt(r,()=>{r.value&&(l?.destroy(),l=new Ct(r.value),l.on("panLeft",u),l.on("panRight",h),l.on("tap",p))}),wt(o,()=>{o.value&&o.value.reset(s.urls.map(m=>({component:we("div",{style:"position:absolute;width:100%;height:100%"},we(zo,{mode:"aspectFit",src:m,openImageViewWhenClick:!1}))})))});function f(){i.value?.open()}function p(){i.value?.close()}return zt(()=>{l?.destroy()}),t({open:f,close:p}),(m,v)=>(R(),ue(Pe,{ref_key:"popRef",ref:i,directionFrom:"absolute"},{default:Dt(()=>[k("div",_0,[s.urls.length>1?(R(),j("div",y0,St(a.value+1)+" / "+St(s.urls.length),1)):Xt("",!0),k("div",{ref_key:"pageRef",ref:r,style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"}},[ot(fu,{ref_key:"routesRef",ref:o,direction:s.urls.length>1?"rightToLeft":"none",duration:600,onFinish:c},null,8,["direction"])],512)])]),_:1},512))}}),jy="",x0=et(b0,[["__scopeId","data-v-be51d205"]]),Hy="",w0={class:"page"},E0={class:"header"},C0={class:"main"},S0={class:"main-scroll"},T0={class:"footer"},k0=tt({customOptions:{},inheritAttrs:!0,__name:"LayoutMobile",props:{designWidth:{default:750}},setup(n,{expose:t,emit:e}){return tm(n.designWidth),t({}),(i,r)=>(R(),j("div",w0,[k("header",E0,[$t(i.$slots,"header",{},void 0,!0)]),k("div",C0,[k("div",S0,[$t(i.$slots,"main",{},void 0,!0)])]),k("footer",T0,[$t(i.$slots,"footer",{},void 0,!0)])]))}}),By="",P0=et(k0,[["__scopeId","data-v-3904d6b5"]]),O0=tt({customOptions:{},inheritAttrs:!0,__name:"LayoutCenter",props:{type:{default:"grid"}},setup(n,{expose:t,emit:e}){const s=n,i=le({}),r=le({});function o(){switch(Os(i),Os(r),s.type){case"table":i.display="table",r.display="table-cell",r.verticalAlign="middle",r.textAlign="center";break;case"transform":r.position="absolute",r.top="50%",r.left="50%",r.transform="translate(-50%, -50%)";break;case"grid":i.display="grid",i.justifyContent="center",i.alignItems="center";break;case"flex":default:i.display="flex",r.margin="auto"}}return o(),zt(()=>{}),t({}),(a,l)=>(R(),j("div",{class:"layout-center",style:q(i)},[k("div",{style:q(r)},[$t(a.$slots,"default",{},void 0,!0)],4)],4))}}),Uy="",N0=et(O0,[["__scopeId","data-v-a768b36f"]]),I0=(n=>(Xn("data-v-d02782ac"),n=n(),Wn(),n))(()=>k("div",{style:{"background-color":"#ffffff"}},"popover-default-panel",-1)),D0=tt({customOptions:{Pop:Pe,Button:Nt},inheritAttrs:!0,__name:"Popover",props:{gap:{default:10},isGlobal:{type:Boolean,default:!0}},setup(n){const t=n,e=G(),s=G(),i=G(),r=le({left:"0",top:"0"});wt(s,()=>{o()}),wt(i,()=>{o()});function o(){if(!s.value||!i.value)return;const l=Uc(),c=s.value.getBoundingClientRect(),u=i.value.getBoundingClientRect(),h=u.width,f=u.height;let p=c.x+c.width+t.gap,m=c.y;p=Math.max(t.gap,Math.min(p,l.width-h-t.gap)),m=Math.max(t.gap,Math.min(m,l.height-f-t.gap)),r.left=`${p}px`,r.top=`${m}px`}function a(){e.value.open()}return(l,c)=>(R(),j(Ot,null,[k("div",{ref_key:"popoverButtonRef",ref:s,style:{display:"inline-block"},onClick:a},[$t(l.$slots,"button",{},()=>[ot(Nt,null,{default:Dt(()=>[Yt("popover-default-button")]),_:1})],!0)],512),ot(Pe,{ref_key:"popRef",ref:e,"direction-from":"absolute",isGlobal:t.isGlobal},{default:Dt(()=>[k("div",{ref_key:"popoverPanelRef",ref:i,style:q([{display:"inline-block",position:"absolute"},r])},[$t(l.$slots,"panel",{},()=>[I0],!0)],4)]),_:3},8,["isGlobal"])],64))}}),Xy="",jo=et(D0,[["__scopeId","data-v-d02782ac"]]),M0={class:"tab"},A0=tt({name:"Tab",customOptions:{},inheritAttrs:!0,__name:"Tab",props:{label:{}},setup(n,{expose:t}){return t({}),(e,s)=>(R(),j("div",M0,[$t(e.$slots,"default",{},void 0,!0)]))}}),Wy="",R0=et(A0,[["__scopeId","data-v-6589e7fa"]]),$0={class:"tabs"},L0=["onClick"],F0={class:"content"},V0=tt({customOptions:{},inheritAttrs:!0,__name:"Tabs",props:{labels:{},pages:{},initIndex:{default:0}},emits:["changedIndex"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=G(s.initIndex),o=le([]),a=G(),l=G(0),c=G(0),u=G(0),h=G([]),f=[],p=vf(),m=p.default&&p.default();m&&(Ns(o,m),E(r.value));const v=(w,P)=>{if(w){if(f.push({index:P,el:w}),f.length<o.length)return;h.value=f}};wt([a,h],()=>{b()});function b(){if(a.value&&h.value.length){const w=a.value.getBoundingClientRect(),P=h.value[r.value].el.getBoundingClientRect();l.value=P.x-w.x,c.value=P.y-w.y+P.height-2,u.value=P.width}}function E(w){r.value=w,i("changedIndex",w),b(),C.value.goto(w)}const C=G();return wt(C,()=>{C.value&&C.value.reset(s.pages,()=>{C.value.goto(s.initIndex)})}),t({}),(w,P)=>(R(),j("div",$0,[k("div",{class:"header",ref_key:"headerRef",ref:a},[(R(!0),j(Ot,null,fe(s.labels,(D,N)=>(R(),j("div",{key:D,class:ye(N==r.value?"active":""),onClick:A=>E(N)},[k("div",{ref_for:!0,ref:A=>v(A,N)},St(D),513)],10,L0))),128)),k("div",{class:"indicator",style:q({top:c.value+"px",left:l.value+"px",width:u.value+"px",height:"2px"})},null,4)],512),k("div",F0,[ot(fu,{ref_key:"routesRef",ref:C,direction:"rightToLeft",duration:200},null,512)])]))}}),qy="",G0=et(V0,[["__scopeId","data-v-e74e266d"]]),z0=["width","height"],j0=tt({customOptions:{},inheritAttrs:!0,__name:"HandWritePanel",props:{canvasWidth:{default:"400"},canvasHeight:{default:"300"},borderColor:{default:"#000000"},brushSize:{default:4},brushDensity:{default:200},brushColor:{default:"#000000"},downloadFileName:{default:"手写图片"}},setup(n,{expose:t,emit:e}){const s=n;let i=()=>{};const r=G();return wt(r,()=>{if(!r.value)return;const o=new Ct(r.value),a=new ou(o);a.ctx.strokeStyle=s.brushColor,a.ctx.lineWidth=s.brushSize,a.drawMouseMoveLine("line"),i=()=>{Zn.downloadFromSVGString(a.ctx.toRawSVG().raw,s.downloadFileName)}}),t({download:()=>i()}),(o,a)=>(R(),j("canvas",{ref_key:"panelRef",ref:r,width:s.canvasWidth,height:s.canvasHeight,style:q([`border: 1px solid ${o.borderColor}`])},null,12,z0))}}),H0={class:"wrap",style:{}},B0=tt({customOptions:{ProgressBar:Hs},inheritAttrs:!0,__name:"PageVerticalScrollProgressBar",props:{bgColor:{default:"#efefef"},progressColor:{default:"#07B56D"},borderColor:{default:"transparent"},borderRadius:{default:"4px"},duringTimeGap:{default:1},showText:{type:Boolean,default:!1}},emits:["progress"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=G(),o=()=>{const a=Wp();i("progress",a),r.value?.goto(a)};return Ct.page.registerGlobalScrollChange(o),zt(()=>{Ct.page.removeGlobalScrollChange(o)}),t({}),(a,l)=>(R(),j("div",H0,[ot(Hs,{ref_key:"bar",ref:r,width:"100%",height:"100%",bgColor:s.bgColor,progressColor:s.progressColor,borderColor:s.borderColor,borderRadius:s.borderRadius,duringTimeGap:s.duringTimeGap,showText:s.showText},null,8,["bgColor","progressColor","borderColor","borderRadius","duringTimeGap","showText"])]))}}),Ky="",U0=et(B0,[["__scopeId","data-v-2e31cfe2"]]),Y0=["fill"],X0=["fill"],W0=tt({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:st.colorPrimary}},setup(n){const t=n;return(e,s)=>(R(),j("svg",{style:q(["width: "+t.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[k("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,Y0),k("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,X0)],4))}}),Zy="",Ho=et(W0,[["__scopeId","data-v-987aed3d"]]),Yi=n=>(Xn("data-v-5f064292"),n=n(),Wn(),n),q0=Yi(()=>k("div",{class:"title"},"车牌颜色",-1)),K0={class:"plate-types"},Z0=["onClick"],Q0=Yi(()=>k("div",{class:"title"},"车牌号码",-1)),J0={class:"plate-numbers"},tv=Yi(()=>k("div",{class:"dot"},"·",-1)),ev=["onClick"],nv=Yi(()=>k("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1)),sv=tt({customOptions:{SVGCheck:Ho},__name:"PlateMobile",props:{maxWidth:{default:"750px"}},emits:["clear","complete"],setup(n,{expose:t,emit:e}){const s=n,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=G(0),a=le([]),l=G(-1);function c(){i0({initPlates:a,completePlateLength:r[o.value].completePlateLength,onPlates:f=>{Ns(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")):Ns(a,a.slice(0,r[f].completePlateLength)),r[f].completePlateLength===a.length&&i("complete",r[o.value].name,a.join(""))},h=f=>{Ns(a,a.slice(0,f)),l.value=Math.min(Math.max(0,l.value),f),c(),i("clear")};return t({}),(f,p)=>(R(),j("div",Wr(f.$attrs,{class:"plate-mobile",style:{maxWidth:s.maxWidth}}),[q0,k("div",K0,[(R(),j(Ot,null,fe(r,(m,v)=>k("div",{key:v,class:ye(v==o.value?"checked":""),onClick:b=>u(v)},[k("div",{style:q(m.style)},null,4),k("div",null,St(m.name),1),k("div",null,[ot(Ho,{color:"#ffffff",width:"0.14rem"})])],10,Z0)),64))]),Q0,k("div",J0,[k("div",{onClick:p[0]||(p[0]=m=>h(0)),class:ye(l.value==0?"current":"")},St(a[0]),3),k("div",{onClick:p[1]||(p[1]=m=>h(1)),class:ye(l.value==1?"current":"")},St(a[1]),3),tv,(R(!0),j(Ot,null,fe(r[o.value].completePlateLength-2,m=>(R(),j("div",{key:m,class:ye(m+1==l.value?"current":""),onClick:v=>h(m+1)},St(a[m+1]),11,ev))),128))]),nv],16))}}),Qy="",iv=et(sv,[["__scopeId","data-v-5f064292"]]),rv={class:"parent"},ov=tt({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay",props:{plate:{},plateType:{},displayType:{default:"chinese"},fontColor:{},fontSize:{}},setup(n,{expose:t,emit:e}){const s=n,i=[{name:"蓝牌",style:"background-color: #0078f0; color: #ffffff;"},{name:"绿牌",style:"background-color: #00f08c; color: #000000;"},{name:"黄牌",style:"background-color: #fac800; color: #000000;"},{name:"黄绿",style:"background: linear-gradient(90deg, #fac800 51.5%, #00f08c 51.51%); color: #000000;"},{name:"黑牌",style:"background-color: #222222; color: #ffffff;"},{name:"未知",style:"background-color: #cccccc; color: #ffffff;"}];function r(h){return h.length>2?h.substring(0,2)+"·"+h.substring(2):h}function o(h){const f=i.filter(p=>p.name===h);return f.length?f[0]:o("未知")}const a=r(s.plate),l=G(o(s.plateType));let c=s.fontColor,u=s.fontSize;switch(s.displayType){case"dot":c=c??"#999999",u=u??"14px";break;case"chinese":c=c??"#333333",u=u??"20px";break}return t({}),(h,f)=>(R(),j("div",rv,[k("div",{class:ye(["leading",s.displayType]),style:q(l.value.style)},St(l.value.name),7),k("div",{class:"text",style:q({color:Pt(c),"font-size":Pt(u)})},St(Pt(a)),5)]))}}),Jy="",av=et(ov,[["__scopeId","data-v-11a104c3"]]),ns=(n,t=0,e=1)=>n>e?e:n<t?t:n,te=(n,t=0,e=Math.pow(10,t))=>Math.round(e*n)/e,lv=n=>fv(Bo(n)),Bo=n=>(n[0]==="#"&&(n=n.substring(1)),n.length<6?{r:parseInt(n[0]+n[0],16),g:parseInt(n[1]+n[1],16),b:parseInt(n[2]+n[2],16),a:n.length===4?te(parseInt(n[3]+n[3],16)/255,2):1}:{r:parseInt(n.substring(0,2),16),g:parseInt(n.substring(2,4),16),b:parseInt(n.substring(4,6),16),a:n.length===8?te(parseInt(n.substring(6,8),16)/255,2):1}),cv=n=>hv(uv(n)),du=({h:n,s:t,v:e,a:s})=>{const i=(200-t)*e/100;return{h:te(n),s:te(i>0&&i<200?t*e/100/(i<=100?i:200-i)*100:0),l:te(i/2),a:te(s,2)}},Uo=n=>{const{h:t,s:e,l:s}=du(n);return`hsl(${t}, ${e}%, ${s}%)`},Yo=n=>{const{h:t,s:e,l:s,a:i}=du(n);return`hsla(${t}, ${e}%, ${s}%, ${i})`},uv=({h:n,s:t,v:e,a:s})=>{n=n/360*6,t=t/100,e=e/100;const i=Math.floor(n),r=e*(1-t),o=e*(1-(n-i)*t),a=e*(1-(1-n+i)*t),l=i%6;return{r:te([e,o,r,r,a,e][l]*255),g:te([a,e,e,o,r,r][l]*255),b:te([r,r,a,e,e,o][l]*255),a:te(s,2)}},Xi=n=>{const t=n.toString(16);return t.length<2?"0"+t:t},hv=({r:n,g:t,b:e,a:s})=>{const i=s<1?Xi(te(s*255)):"";return"#"+Xi(n)+Xi(t)+Xi(e)+i},fv=({r:n,g:t,b:e,a:s})=>{const i=Math.max(n,t,e),r=i-Math.min(n,t,e),o=r?i===n?(t-e)/r:i===t?2+(e-n)/r:4+(n-t)/r:0;return{h:te(60*(o<0?o+6:o)),s:te(i?r/i*100:0),v:te(i/255*100),a:s}},pu=(n,t)=>{if(n===t)return!0;for(const e in n)if(n[e]!==t[e])return!1;return!0},dv=(n,t)=>n.toLowerCase()===t.toLowerCase()?!0:pu(Bo(n),Bo(t)),mu={},gu=n=>{let t=mu[n];return t||(t=document.createElement("template"),t.innerHTML=n,mu[n]=t),t},Xo=(n,t,e)=>{n.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:e}))};let ss=!1;const Wo=n=>"touches"in n,pv=n=>ss&&!Wo(n)?!1:(ss||(ss=Wo(n)),!0),vu=(n,t)=>{const e=Wo(t)?t.touches[0]:t,s=n.el.getBoundingClientRect();Xo(n.el,"move",n.getMove({x:ns((e.pageX-(s.left+window.pageXOffset))/s.width),y:ns((e.pageY-(s.top+window.pageYOffset))/s.height)}))},mv=(n,t)=>{const e=t.keyCode;e>40||n.xy&&e<37||e<33||(t.preventDefault(),Xo(n.el,"move",n.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 qo{constructor(t,e,s,i){const r=gu(`<div role="slider" tabindex="0" part="${e}" ${s}><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(ss?"touchmove":"mousemove",this),e(ss?"touchend":"mouseup",this)}handleEvent(t){switch(t.type){case"mousedown":case"touchstart":if(t.preventDefault(),!pv(t)||!ss&&t.button!=0)return;this.el.focus(),vu(this,t),this.dragging=!0;break;case"mousemove":case"touchmove":t.preventDefault(),vu(this,t);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":mv(this,t);break}}style(t){t.forEach((e,s)=>{for(const i in e)this.nodes[s].style.setProperty(i,e[i])})}}class gv extends qo{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:Uo({h:t,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${te(t)}`)}getMove(t,e){return{h:e?ns(this.h+t.x*360,0,360):360*t.x}}}class vv extends qo{constructor(t){super(t,"saturation",'aria-label="Color"',!0)}update(t){this.hsva=t,this.style([{top:`${100-t.v}%`,left:`${t.s}%`,color:Uo(t)},{"background-color":Uo({h:t.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${te(t.s)}%, Brightness ${te(t.v)}%`)}getMove(t,e){return{s:e?ns(this.hsva.s+t.x*100,0,100):t.x*100,v:e?ns(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)}',yv="[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}",bv="[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}",Wi=Symbol("same"),Ko=Symbol("color"),_u=Symbol("hsva"),Zo=Symbol("update"),yu=Symbol("parts"),qi=Symbol("css"),Ki=Symbol("sliders");let xv=class extends HTMLElement{static get observedAttributes(){return["color"]}get[qi](){return[_v,yv,bv]}get[Ki](){return[vv,gv]}get color(){return this[Ko]}set color(t){if(!this[Wi](t)){const e=this.colorModel.toHsva(t);this[Zo](e),this[Ko]=t}}constructor(){super();const t=gu(`<style>${this[qi].join("")}</style>`),e=this.attachShadow({mode:"open"});e.appendChild(t.content.cloneNode(!0)),e.addEventListener("move",this),this[yu]=this[Ki].map(s=>new s(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,s){const i=this.colorModel.fromAttr(s);this[Wi](i)||(this.color=i)}handleEvent(t){const e=this[_u],s={...e,...t.detail};this[Zo](s);let i;!pu(s,e)&&!this[Wi](i=this.colorModel.fromHsva(s))&&(this[Ko]=i,Xo(this,"color-changed",{value:i}))}[Wi](t){return this.color&&this.colorModel.equal(t,this.color)}[Zo](t){this[_u]=t,this[yu].forEach(e=>e.update(t))}};class wv extends qo{constructor(t){super(t,"alpha",'aria-label="Alpha" aria-valuemin="0" aria-valuemax="1"',!1)}update(t){this.hsva=t;const e=Yo({...t,a:0}),s=Yo({...t,a:1}),i=t.a*100;this.style([{left:`${i}%`,color:Yo(t)},{"--gradient":`linear-gradient(90deg, ${e}, ${s}`}]);const r=te(i);this.el.setAttribute("aria-valuenow",`${r}`),this.el.setAttribute("aria-valuetext",`${r}%`)}getMove(t,e){return{a:e?ns(this.hsva.a+t.x):t.x}}}const Ev=`[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 Cv extends xv{get[qi](){return[...super[qi],Ev]}get[Ki](){return[...super[Ki],wv]}}const Sv={defaultColor:"#0001",toHsva:lv,fromHsva:cv,equal:dv,fromAttr:n=>n};class Tv extends Cv{get colorModel(){return Sv}}class kv extends Tv{}customElements.define("hex-alpha-color-picker",kv);const Pv=tt({customOptions:{Popover:jo},__name:"ColorPicker",props:{color:{default:st.colorPrimary}},emits:["change"],setup(n,{emit:t}){const e=n,s=t,i=G(e.color);wt(i,(a,l)=>{a!==l&&s("change",a)});const r=G(),o=a=>{i.value=a.detail.value};return wt(r,()=>{r.value&&(r.value.removeEventListener("color-changed",o),r.value.addEventListener("color-changed",o))}),(a,l)=>{const c=Wh("hex-alpha-color-picker");return R(),ue(jo,null,{button:Dt(()=>[$t(a.$slots,"default",{},()=>[k("span",{class:"button",style:q({backgroundColor:i.value})},null,4)],!0)]),panel:Dt(()=>[ot(c,{ref_key:"colorPickerRef",ref:r,color:i.value},null,8,["color"])]),_:3})}}}),t1="",Ov=et(Pv,[["__scopeId","data-v-ac12603f"]]),e1="",Nv={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!0},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},mounted(){this.$nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const n=document.createElement("object");this._resizeObject=n,n.setAttribute("aria-hidden","true"),n.setAttribute("tabindex",-1),n.onload=this.addResizeHandlers,n.type="text/html",Eo&&this.$el.appendChild(n),n.data="about:blank",Eo||this.$el.appendChild(n)},beforeDestroy(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("resize",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Eo&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},Iv={class:"resize-observer",tabindex:"-1"};function Dv(n,t,e,s,i,r){return R(),j("div",Iv)}const Mv=et(Nv,[["render",Dv],["__scopeId","data-v-d5987ae1"]]),Av=tt({__name:"MapTianditu",props:{mapKey:{default:"8261564c2f1435b76dc5991adad737e6"},mapContainerID:{default:"mapTiandituDiv"},mapWidth:{},mapHeight:{},mapZoom:{default:18},mapCenterLng:{default:120.619585},mapCenterLat:{default:31.299379}},emits:["click"],setup(n,{expose:t,emit:e}){const s=n,i=G(s.mapWidth),r=G(s.mapHeight);let o;const a=G();return wt(a,()=>{a.value&&(o=new Ct(a.value,!1),o.on("resize",(l,c)=>{i.value=l+"px",r.value=c+"px"}),o.start())}),mn(()=>{X.loadScript(`http://api.tianditu.gov.cn/api?v=4.0&tk=${s.mapKey}`,()=>{new Dm(s.mapContainerID,s.mapCenterLng,s.mapCenterLat,s.mapZoom)},l=>{console.log("error",l)})}),zt(()=>{o.destroy()}),t({}),(l,c)=>(R(),j("div",Wr({class:"mapDivWrap",ref_key:"mapWrap",ref:a},l.$attrs),[$t(l.$slots,"default",{width:i.value,height:r.value},void 0,!0)],16))}}),n1="",Rv=et(Av,[["__scopeId","data-v-e5da8598"]]);var Bs=function(){var n=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(),s(++n%t.children.length)},!1);function e(u){return t.appendChild(u.dom),u}function s(u){for(var h=0;h<t.children.length;h++)t.children[h].style.display=h===u?"block":"none";n=u}var i=(performance||Date).now(),r=i,o=0,a=e(new Bs.Panel("FPS","#0ff","#002")),l=e(new Bs.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var c=e(new Bs.Panel("MB","#f08","#201"));return s(0),{REVISION:16,dom:t,addPanel:e,showPanel:s,begin:function(){i=(performance||Date).now()},end:function(){o++;var u=(performance||Date).now();if(l.update(u-i,200),u>r+1e3&&(a.update(o*1e3/(u-r),100),r=u,o=0,c)){var h=performance.memory;c.update(h.usedJSHeapSize/1048576,h.jsHeapSizeLimit/1048576)}return u},update:function(){i=this.end()},domElement:t,setMode:s}};Bs.Panel=function(n,t,e){var s=1/0,i=0,r=Math.round,o=r(window.devicePixelRatio||1),a=80*o,l=48*o,c=3*o,u=2*o,h=3*o,f=15*o,p=74*o,m=30*o,v=document.createElement("canvas");v.width=a,v.height=l,v.style.cssText="width:80px;height:48px";var b=v.getContext("2d");return b.font="bold "+9*o+"px Helvetica,Arial,sans-serif",b.textBaseline="top",b.fillStyle=e,b.fillRect(0,0,a,l),b.fillStyle=t,b.fillText(n,c,u),b.fillRect(h,f,p,m),b.fillStyle=e,b.globalAlpha=.9,b.fillRect(h,f,p,m),{dom:v,update:function(E,C){s=Math.min(s,E),i=Math.max(i,E),b.fillStyle=e,b.globalAlpha=1,b.fillRect(0,0,a,f),b.fillStyle=t,b.fillText(r(E)+" "+n+" ("+r(s)+"-"+r(i)+")",c,u),b.drawImage(v,h+o,f,p-o,m,h,f,p-o,m),b.fillRect(h+p-o,f,o,m),b.fillStyle=e,b.globalAlpha=.9,b.fillRect(h+p-o,f,o,r((1-E/C)*m))}}};const $v=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats",setup(n,{expose:t}){const e=G();return mn(()=>{const s=new Bs,i=s.domElement.style;i.margin="1em",e.value.appendChild(s.domElement),Zt.register(()=>(s.update(),!0))}),t({}),(s,i)=>(R(),j("div",{ref_key:"containerRef",ref:e},null,512))}}),Lv=["width","height"],Fv=tt({__name:"Canvas",props:{bgColor:{default:"#333333"}},emits:["resize"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=G(),o=G(),a=G(0),l=G(0);let c;wt(r,()=>{r.value&&(c=new Ct(r.value,!1),c.on("resize",(b,E)=>{const C=Uc();a.value=Math.min(b,C.width),l.value=Math.min(E,C.height),p()}),c.start())}),wt(o,()=>{o.value&&p()});let u,h,f;function p(){u||!o.value||!a.value||!l.value||(u=new Ct(o.value,!1),u.on("resize",(b,E)=>{i("resize",b,E)}),u.start(),h=new ou(u),f?.(h))}function m(){return new Promise(b=>{if(h)return b(h);f=b})}function v(b){u&&b(u)}return zt(()=>{u?.destroy(),c?.destroy()}),t({draw:v,getCanvasElement:()=>o.value,getCanvas:m}),(b,E)=>(R(),j("div",{class:"canvas-wrap",ref_key:"canvasWrapRef",ref:r},[k("canvas",{ref_key:"canvasRef",ref:o,width:a.value,height:l.value,style:q({backgroundColor:s.bgColor})},null,12,Lv)],512))}}),i1="",Be=et(Fv,[["__scopeId","data-v-83f4b281"]]),Vv={class:"ease-graph"},Gv=tt({customOptions:{Button:Nt,Canvas:Be},inheritAttrs:!0,__name:"EaseGraphDisplay",props:{easeName:{},easeFunction:{},canvasWidth:{default:180},canvasHeight:{default:100},graphHorizontalGap:{default:5},graphVerticalGap:{default:20},easeDuration:{default:2e3},isSelected:{type:Boolean,default:!1}},emits:["onMounted","onStart","onCompleted","onSelected"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=G();let o;wt(r,()=>{r.value&&r.value.getCanvas().then(u=>{o=u,i("onMounted",s.easeName),o.app.on("showInParent",l)})});let a=!1;const l=()=>{if(!o||a)return;a=!0,i("onStart",s.easeName),o.ctx.fillStyle="rgb(250,250,250)",o.ctx.fillRect(0,0,s.canvasWidth,s.canvasHeight),o.ctx.lineWidth=.5,o.ctx.strokeStyle="rgb(230,230,230)",o.ctx.beginPath(),o.ctx.moveTo(0,s.graphVerticalGap),o.ctx.lineTo(s.canvasWidth,s.graphVerticalGap),o.ctx.moveTo(0,s.canvasHeight-s.graphVerticalGap),o.ctx.lineTo(s.canvasWidth,s.canvasHeight-s.graphVerticalGap),o.ctx.closePath(),o.ctx.stroke(),o.ctx.lineWidth=2,o.ctx.strokeStyle="rgb(255,127,127)";const u={x:s.graphHorizontalGap,y:s.canvasHeight-s.graphVerticalGap},h={x:s.graphHorizontalGap,y:s.canvasHeight-s.graphVerticalGap};let f=!1,p=!1;Jt.toTween(u,{x:s.canvasWidth-s.graphHorizontalGap},{duration:s.easeDuration,easeFunction:it.Easing.Linear.None,onComplete:()=>{f=!0,f&&p&&(i("onCompleted",s.easeName),a=!1)}}).startAuto(),Jt.toTween(u,{y:s.graphVerticalGap},{duration:s.easeDuration,easeFunction:s.easeFunction,onUpdate:()=>{o.ctx.beginPath(),o.ctx.moveTo(h.x,h.y),o.ctx.lineTo(u.x,u.y),o.ctx.closePath(),o.ctx.stroke(),h.x=u.x,h.y=u.y},onComplete:()=>{p=!0,f&&p&&(i("onCompleted",s.easeName),a=!1)}}).startAuto()},c=()=>{i("onSelected",s.easeName,s.easeFunction)};return zt(()=>{o.app.off("showInParent",l)}),t({start:l}),(u,h)=>(R(),j("div",Vv,[k("div",null,"缓动:"+St(u.easeName),1),k("div",null,[k("div",null,[ot(Nt,{stylePattern:"outline",height:"32px",padding:"10px",onClick:l},{default:Dt(()=>[Yt(" 开始 ")]),_:1})]),k("div",null,[ot(Nt,{stylePattern:s.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:Dt(()=>[Yt(" 选择 ")]),_:1},8,["stylePattern"])])]),k("div",{style:q({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[ot(Be,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),r1="",Qo=et(Gv,[["__scopeId","data-v-a2b487d0"]]),zv=2e3,jv=tt({customOptions:{EaseGraphDisplay:Qo},inheritAttrs:!0,__name:"EaseGroupGraphDisplay",props:{easeList:{default:()=>[{easeName:"Linear",easeFunction:it.Easing.Linear.None},{easeName:"gap"},{easeName:"QuadraticIn",easeFunction:it.Easing.Quadratic.In},{easeName:"QuadraticOut",easeFunction:it.Easing.Quadratic.Out},{easeName:"QuadraticInOut",easeFunction:it.Easing.Quadratic.InOut},{easeName:"gap"},{easeName:"CubicIn",easeFunction:it.Easing.Cubic.In},{easeName:"CubicOut",easeFunction:it.Easing.Cubic.Out},{easeName:"CubicInOut",easeFunction:it.Easing.Cubic.InOut},{easeName:"gap"},{easeName:"QuarticIn",easeFunction:it.Easing.Quartic.In},{easeName:"QuarticOut",easeFunction:it.Easing.Quartic.Out},{easeName:"QuarticInOut",easeFunction:it.Easing.Quartic.InOut},{easeName:"gap"},{easeName:"QuinticIn",easeFunction:it.Easing.Quintic.In},{easeName:"QuinticOut",easeFunction:it.Easing.Quintic.Out},{easeName:"QuinticInOut",easeFunction:it.Easing.Quintic.InOut},{easeName:"gap"},{easeName:"SinusoidalIn",easeFunction:it.Easing.Sinusoidal.In},{easeName:"SinusoidalOut",easeFunction:it.Easing.Sinusoidal.Out},{easeName:"SinusoidalInOut",easeFunction:it.Easing.Sinusoidal.InOut},{easeName:"gap"},{easeName:"ExponentialIn",easeFunction:it.Easing.Exponential.In},{easeName:"ExponentialOut",easeFunction:it.Easing.Exponential.Out},{easeName:"ExponentialInOut",easeFunction:it.Easing.Exponential.InOut},{easeName:"gap"},{easeName:"CircularIn",easeFunction:it.Easing.Circular.In},{easeName:"CircularOut",easeFunction:it.Easing.Circular.Out},{easeName:"CircularInOut",easeFunction:it.Easing.Circular.InOut},{easeName:"gap"},{easeName:"ElasticIn",easeFunction:it.Easing.Elastic.In},{easeName:"ElasticOut",easeFunction:it.Easing.Elastic.Out},{easeName:"ElasticInOut",easeFunction:it.Easing.Elastic.InOut},{easeName:"gap"},{easeName:"BackIn",easeFunction:it.Easing.Back.In},{easeName:"BackOut",easeFunction:it.Easing.Back.Out},{easeName:"BackInOut",easeFunction:it.Easing.Back.InOut},{easeName:"gap"},{easeName:"BounceIn",easeFunction:it.Easing.Bounce.In},{easeName:"BounceOut",easeFunction:it.Easing.Bounce.Out},{easeName:"BounceInOut",easeFunction:it.Easing.Bounce.InOut},{easeName:"gap"},{easeName:"generatePow(10)In",easeFunction:it.Easing.generatePow(10).In},{easeName:"generatePow(10)Out",easeFunction:it.Easing.generatePow(10).Out},{easeName:"generatePow(10)InOut",easeFunction:it.Easing.generatePow(10).InOut},{easeName:"gap"},{easeName:"4 steps",easeFunction:it.Easing.createStep(4)},{easeName:"8 steps",easeFunction:it.Easing.createStep(8)},{easeName:"12 steps",easeFunction:it.Easing.createStep(12)},{easeName:"16 steps",easeFunction:it.Easing.createStep(16)},{easeName:"gap"},{easeName:"Noisy Exponential.InOut",easeFunction:it.Easing.createNoisyEasing(it.Easing.Exponential.InOut,.1)},{easeName:"Noisy Elastic.InOut",easeFunction:it.Easing.createNoisyEasing(it.Easing.Elastic.InOut,.2)},{easeName:"Noisy Circular.InOut",easeFunction:it.Easing.createNoisyEasing(it.Easing.Circular.InOut,.1)}]}},emits:["selectedEaseFunction"],setup(n,{expose:t,emit:e}){const s=n,i=e,r={};function o(f,p){f&&(r[p]={el:f})}const a=new Vc(10);function l(f){a.addTask(()=>(r[f].el.start(),new Promise(p=>{r[f].resolve=p})))}function c(f){r[f].resolve?.()}const u=G("Linear");function h(f,p){u.value=f,i("selectedEaseFunction",f,p)}return h("Linear",it.Easing.Linear.None),t({}),(f,p)=>(R(),j("div",null,[(R(!0),j(Ot,null,fe(s.easeList,m=>(R(),j("div",{key:m.easeName,class:"ease-graph-wrap"},[m.easeFunction?(R(),ue(Qo,{key:0,easeName:m.easeName,easeFunction:m.easeFunction,easeDuration:zv,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"])):Xt("",!0)]))),128))]))}}),o1="",Hv=et(jv,[["__scopeId","data-v-7e8d1feb"]]),Bv={class:"interpolation-graph"},bu=1/6,xu=5/6,Uv=tt({customOptions:{Button:Nt,Canvas:Be},inheritAttrs:!0,__name:"InterpolationGraphDisplay",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},easeDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=G();let o;wt(r,()=>{r.value&&r.value.getCanvas().then(v=>{o=v,i("onMounted",s.interpolationName),o.app.on("showInParent",m)})});const a=s.canvasWidth*bu,l=s.canvasHeight/2,c=[s.canvasWidth*xu,s.canvasWidth/2],u=[s.canvasHeight*bu,s.canvasHeight*xu],h=[...c,a],f=[...u,l];let p=!1;const m=()=>{if(!o||p)return;p=!0,i("onStart",s.interpolationName),o.ctx.fillStyle="rgb(250,250,250)",o.ctx.fillRect(0,0,s.canvasWidth,s.canvasHeight),o.ctx.fillStyle="rgb(200,200,200)",o.ctx.fillRect(a-3,l-3,6,6),o.ctx.fillRect(c[c.length-1]-3,u[u.length-1]-3,6,6);for(var v=0;v<c.length;v++)o.ctx.fillRect(c[v]-2,u[v]-2,4,4);let b=!1,E=!1;const C={x:a,y:l,old:{x:a,y:l}};Jt.toTween(C,{x:c,y:u},{duration:s.easeDuration,easeFunction:it.Easing.Linear.None,interpolationFunction:s.interpolationFunction,onUpdate:P=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.9)",o.ctx.beginPath(),o.ctx.moveTo(P.old.x,P.old.y),o.ctx.lineTo(P.x,P.y),o.ctx.closePath(),o.ctx.stroke(),P.old.x=P.x,P.old.y=P.y},onComplete:()=>{b=!0,b&&E&&(i("onCompleted",s.interpolationName),p=!1)}}).startAuto();const w={x:a,y:l,old:{x:a,y:l}};Jt.toTween(w,{x:h,y:f},{duration:s.easeDuration,easeFunction:it.Easing.Linear.None,interpolationFunction:s.interpolationFunction,onUpdate:P=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.5)",o.ctx.beginPath(),o.ctx.moveTo(P.old.x,P.old.y),o.ctx.lineTo(P.x,P.y),o.ctx.closePath(),o.ctx.stroke(),P.old.x=P.x,P.old.y=P.y},onComplete:()=>{E=!0,b&&E&&(i("onCompleted",s.interpolationName),p=!1)}}).startAuto()};return zt(()=>{o.app.off("showInParent",m)}),t({start:m}),(v,b)=>(R(),j("div",Bv,[k("div",null,[Yt(" 插值:"+St(v.interpolationName)+" ",1),ot(Nt,{stylePattern:"outline",height:"32px",onClick:m},{default:Dt(()=>[Yt(" 开始 ")]),_:1})]),k("div",{style:q({width:v.canvasWidth+"px",height:v.canvasHeight+"px"})},[ot(Be,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),a1="",Jo=et(Uv,[["__scopeId","data-v-18aca8d5"]]),Yv=2e3,Xv=tt({customOptions:{InterpolationGraphDisplay:Jo},inheritAttrs:!0,__name:"InterpolationGroupGraphDisplay",props:{interpolationList:{default:()=>[{interpolationName:"Linear",interpolationFunction:it.Interpolation.Linear},{interpolationName:"Bezier",interpolationFunction:it.Interpolation.Bezier},{interpolationName:"CatmullRom",interpolationFunction:it.Interpolation.CatmullRom}]}},setup(n,{expose:t,emit:e}){const s=n,i={};function r(c,u){c&&(i[u]={el:c})}const o=new Vc(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)=>(R(),j("div",null,[(R(!0),j(Ot,null,fe(s.interpolationList,h=>(R(),j("div",{key:h.interpolationName,class:"interpolation-graph-wrap"},[ot(Jo,{interpolationName:h.interpolationName,interpolationFunction:h.interpolationFunction,easeDuration:Yv,onOnMounted:a,onOnCompleted:l,ref_for:!0,ref:f=>r(f,h.interpolationName)},null,8,["interpolationName","interpolationFunction"])]))),128))]))}}),l1="",Wv=et(Xv,[["__scopeId","data-v-6e8312e3"]]),qv={class:"wrap"},Kv={class:"btns"},Zv={class:"tween-css",style:{width:"100%",height:"400px"}},Qv=tt({customOptions:{Button:Nt},inheritAttrs:!0,__name:"TweenCSS",props:{easeFunction:{type:Function,default:it.Easing.Linear.None}},setup(n){const t=n,e=le({translateTo:{from:{translateTo:[0,0]},to:{translateTo:["150px","150px"]},selected:!1},translateXTo:{from:{translateXTo:0},to:{translateXTo:"150px"},selected:!1},translateYTo:{from:{translateYTo:0},to:{translateYTo:"150px"},selected:!1},translateZTo:{from:{translateZTo:0},to:{translateZTo:"150px"},selected:!1},translate3dTo:{from:{translate3dTo:[0,0,0]},to:{translate3dTo:["150px","150px","150px"]},selected:!1},rotateTo:{from:{rotateTo:0},to:{rotateTo:360},selected:!1},rotateXTo:{from:{rotateXTo:0},to:{rotateXTo:360},selected:!1},rotateYTo:{from:{rotateYTo:0},to:{rotateYTo:360},selected:!1},rotateZTo:{from:{rotateZTo:0},to:{rotateZTo:360},selected:!1},rotate3dTo:{from:{rotate3dTo:[0,0,0]},to:{rotate3dTo:[360,360,360]},selected:!1},scaleTo:{from:{scaleTo:1},to:{scaleTo:2},selected:!1},scaleXTo:{from:{scaleXTo:1},to:{scaleXTo:2},selected:!1},scaleYTo:{from:{scaleYTo:1},to:{scaleYTo:2},selected:!1},scaleZTo:{from:{scaleZTo:1},to:{scaleZTo:2},selected:!1},scale3dTo:{from:{scale3dTo:[1,1,1]},to:{scale3dTo:[2,2,2]},selected:!1},skewTo:{from:{skewTo:0},to:{skewTo:1},selected:!1},skewXTo:{from:{skewXTo:0},to:{skewXTo:1},selected:!1},skewYTo:{from:{skewYTo:0},to:{skewYTo:1},selected:!1}}),s=G();function i(r){if(!s.value)return;e[r].selected=!e[r].selected;const o={},a={};for(let l in e){const c=e[l];c.selected?(Object.assign(o,c.from),Object.assign(a,c.to)):(Lc(o,c.from),Lc(a,c.to))}s.value.style.transform="",Jt.toTweenCSS(s.value,o,a,{duration:2e3,easeFunction:t.easeFunction}).startAuto()}return zt(()=>{}),(r,o)=>(R(),j("div",qv,[k("div",Kv,[(R(!0),j(Ot,null,fe(e,(a,l,c)=>(R(),ue(Nt,{onClick:u=>i(l.toString()),key:l,stylePattern:a.selected?"fullfilled":"outline"},{default:Dt(()=>[Yt(St(l),1)]),_:2},1032,["onClick","stylePattern"]))),128))]),k("div",Zv,[k("div",{class:"tween-css-target",ref_key:"tweenCSSTargetRef",ref:s},null,512)])]))}}),c1="",Jv=et(Qv,[["__scopeId","data-v-44d0bbdc"]]),t_={class:"wrap"},e_={class:"btns"},n_={style:{height:"400px"}},s_=tt({customOptions:{Button:Nt,Canvas:Be},inheritAttrs:!0,__name:"CanvasSport",setup(n){const t=G(),e=G("");function s(){const h="RectGame";e.value!=h&&(e.value=h,t.value.getCanvas().then(f=>{const p=[];function m(){const D=new Ce({x:Math.random()*f.ctx.canvas.width,y:0,width:50,height:50,attrs:{fill:"#ff0000"},enableDrag:!0});return p.push(D),D}let v=m();const b=.2,E=()=>{v&&(v.ay=.2)},C=()=>{v&&(v.ay=-.2)},w=()=>{v&&(v.ay=0)},P=[];P.push(f.app.registerKeyDown({key:"ArrowDown"},E,w)),P.push(f.app.registerKeyDown({key:"ArrowRight"},E,w)),P.push(f.app.registerKeyDown({key:"ArrowUp"},C,w)),P.push(f.app.registerKeyDown({key:"ArrowLeft"},C,w)),Zt.register(()=>e.value!=h?(P.forEach(D=>D()),!1):(f.ctx.clearRect(),f.isMouseDown?f.draw(p):(v&&v.nextFrame({gravity:b}),v&&v.y+v.height>=f.ctx.canvas.height&&(v.y=f.ctx.canvas.height-v.height,v=m()),f.draw(p.map(D=>(v&&v!==D&&v.isIntersectRect(D)&&(v.y=D.y-v.height,v.y>=v.height?v=m():v=null),D)))),!0))}))}function i(){const h="PointWater";e.value!=h&&(e.value=h,t.value.getCanvas().then(f=>{const p=[];for(let m=0;m<80;m++){const v=new Qt({x:f.ctx.canvas.width/2,y:f.ctx.canvas.height,radius:2,attrs:{fill:lm()}});v.vx=Math.random()*2-1,v.vy=Math.random()*-10-10,p.push(v)}Zt.register(()=>e.value!=h?!1:(f.ctx.clearRect(),f.draw(p.map(m=>(m.nextFrame({gravity:.5}),(m.x-m.radius>f.ctx.canvas.width||m.x+m.radius<0||m.y-m.radius>f.ctx.canvas.height||m.y+m.radius<0)&&(m.x=f.ctx.canvas.width/2,m.y=f.ctx.canvas.height,m.vx=Math.random()*2-1,m.vy=Math.random()*-10-10),m))),!0))}))}function r(){const h="PointEase";e.value!=h&&(e.value=h,t.value.getCanvas().then(f=>{const p=f.ctx.canvas.width/2,m=f.ctx.canvas.height/2,v=new Qt({x:p,y:m,radius:30,attrs:{fill:"#00ff00"},targetToAfterDragFree:{targetX:p,targetY:m},enableDrag:!0});Zt.register(()=>e.value!=h?!1:(f.ctx.clearRect(),f.draw(v),!0))}))}function o(){const h="PointSpringChain";e.value!=h&&(e.value=h,t.value.getCanvas().then(f=>{const p=f.ctx.canvas.width/2,m=f.ctx.canvas.height/2,v=[];for(let P=0;P<3;P++)v.push(new Qt({x:p,y:m,radius:20,attrs:{fill:"#0000ff"}}));const b=new Kt({attrs:{"stroke-width":"1",stroke:"#eeeeee"}}),E=.03,C=.9,w=2;Zt.register(()=>e.value!=h?!1:(f.ctx.clearRect(),v.forEach((P,D)=>{if(D===0)P.nextFrameSpringTo(f.app.mousePoint,{spring:E,friction:C,gravity:w}),b.fromX=f.app.mousePoint.x,b.fromY=f.app.mousePoint.y,b.x=P.x,b.y=P.y;else{const N=v[D-1];P.nextFrameSpringTo(N,{spring:E,friction:C,gravity:w}),b.fromX=N.x,b.fromY=N.y,b.x=P.x,b.y=P.y}f.draw(b)}),f.draw(v),!0))}))}function a(){const h="PointSpringMulti";e.value!=h&&(e.value=h,t.value.getCanvas().then(f=>{const p=f.ctx.canvas.width/2,m=f.ctx.canvas.height/2,v=new Qt({x:p,y:m,radius:20,attrs:{fill:"#ff0000"}}),b=[];for(let C=0;C<3;C++)b.push(new Qt({x:Math.random()*f.ctx.canvas.width,y:Math.random()*f.ctx.canvas.height,radius:10,attrs:{fill:"#00ff00"},enableDrag:!0}));const E=[new Kt({attrs:{"stroke-width":"1",stroke:"#eeeeee"}}),new Kt({attrs:{"stroke-width":"1",stroke:"#eeeeee"}}),new Kt({attrs:{"stroke-width":"1",stroke:"#eeeeee"}})];Zt.register(()=>e.value!=h?!1:(f.ctx.clearRect(),v.nextFrameSpringTo(b,{spring:.03,friction:.9}),b.forEach((C,w)=>{E[w].fromX=v.x,E[w].fromY=v.y,E[w].x=C.x,E[w].y=C.y}),f.draw([...E,...b,v]),!0))}))}function l(){const h="PointSpringConnect";e.value!=h&&(e.value=h,t.value.getCanvas().then(f=>{const p=[];for(let b=0;b<3;b++)p.push(new Qt({x:Math.random()*f.ctx.canvas.width,y:Math.random()*f.ctx.canvas.height,radius:15,attrs:{fill:"#ff0000"},enableDrag:!0}));const m=[new Kt({attrs:{stroke:"#eeeeee","stroke-width":"1"}}),new Kt({attrs:{stroke:"#eeeeee","stroke-width":"1"}}),new Kt({attrs:{stroke:"#eeeeee","stroke-width":"1"}})],v={springLength:120,spring:.03,friction:.9};Zt.register(()=>e.value!=h?!1:(f.ctx.clearRect(),p[0].isDragging||(p[0].nextFrameSpringConnect(p[1],v),p[0].nextFrameSpringConnect(p[2],v)),p[1].isDragging||(p[1].nextFrameSpringConnect(p[0],v),p[1].nextFrameSpringConnect(p[2],v)),p[2].isDragging||(p[2].nextFrameSpringConnect(p[0],v),p[2].nextFrameSpringConnect(p[1],v)),m[0].x=p[0].x,m[0].y=p[0].y,m[0].fromX=p[1].x,m[0].fromY=p[1].y,m[1].x=p[1].x,m[1].y=p[1].y,m[1].fromX=p[2].x,m[1].fromY=p[2].y,m[2].x=p[2].x,m[2].y=p[2].y,m[2].fromX=p[0].x,m[2].fromY=p[0].y,f.draw([...m,...p]),!0))}))}function c(){const h="QuadraticBezierCurve";e.value!=h&&(e.value=h,t.value.getCanvas().then(f=>{const m=new $s({x:50,y:f.ctx.canvas.height-50,fromX:f.ctx.canvas.width-50,fromY:f.ctx.canvas.height-50,cx:f.app.mousePoint.x,cy:f.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),v=new $s({x:50,y:f.ctx.canvas.height-50,fromX:f.ctx.canvas.width-50,fromY:f.ctx.canvas.height-50,cx:f.app.mousePoint.x,cy:f.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});Zt.register(()=>e.value!=h?!1:(f.ctx.clearRect(),v.cx=m.cx=f.app.mousePoint.x,v.cy=m.cy=f.app.mousePoint.y,f.draw([m,v]),!0))}))}function u(){const h="PointsRandom";e.value=h,t.value.getCanvas().then(f=>{f.ctx.clearRect();const p=[];for(let m=0;m<10;m++){const v=new Qt({x:Math.random()*f.ctx.canvas.width,y:Math.random()*f.ctx.canvas.height,attrs:{stroke:"pink","stroke-width":"2"}});p.push(v),f.draw(new Ce({x:v.x,y:v.y,width:6,height:6,attrs:{fill:"#eeeeee"}}))}f.draw(new Ro(p))})}return zt(()=>{}),(h,f)=>(R(),j("div",t_,[k("div",e_,[ot(Nt,{onClick:s,stylePattern:e.value=="RectGame"?"fullfilled":"outline"},{default:Dt(()=>[Yt(" Rect - 俄罗斯方块 ")]),_:1},8,["stylePattern"]),ot(Nt,{onClick:i,stylePattern:e.value=="PointWater"?"fullfilled":"outline"},{default:Dt(()=>[Yt(" Point - 喷泉 ")]),_:1},8,["stylePattern"]),ot(Nt,{onClick:r,stylePattern:e.value=="PointEase"?"fullfilled":"outline"},{default:Dt(()=>[Yt(" Point - ease ")]),_:1},8,["stylePattern"]),ot(Nt,{onClick:o,stylePattern:e.value=="PointSpringChain"?"fullfilled":"outline"},{default:Dt(()=>[Yt(" Point - 链式弹簧 ")]),_:1},8,["stylePattern"]),ot(Nt,{onClick:a,stylePattern:e.value=="PointSpringMulti"?"fullfilled":"outline"},{default:Dt(()=>[Yt(" Point - 多点弹簧 ")]),_:1},8,["stylePattern"]),ot(Nt,{onClick:l,stylePattern:e.value=="PointSpringConnect"?"fullfilled":"outline"},{default:Dt(()=>[Yt(" Point - 连接弹簧 ")]),_:1},8,["stylePattern"]),ot(Nt,{onClick:c,stylePattern:e.value=="QuadraticBezierCurve"?"fullfilled":"outline"},{default:Dt(()=>[Yt(" QuadraticBezier - curve ")]),_:1},8,["stylePattern"]),ot(Nt,{onClick:u,stylePattern:e.value=="PointsRandom"?"fullfilled":"outline"},{default:Dt(()=>[Yt(" Points - random ")]),_:1},8,["stylePattern"])]),k("div",n_,[ot(Be,{ref_key:"canvas",ref:t},null,512)])]))}}),u1="",i_=et(s_,[["__scopeId","data-v-df492363"]]),r_=n=>(Xn("data-v-1eec3755"),n=n(),Wn(),n),o_={class:"wrap"},a_=r_(()=>k("div",{class:"btns"},null,-1)),l_={style:{height:"400px"}},c_=tt({customOptions:{Button:Nt,Canvas:Be},inheritAttrs:!0,__name:"CanvasShape",setup(n){const t=G();return wt(t,()=>{t.value}),zt(()=>{}),(e,s)=>(R(),j("div",o_,[a_,k("div",l_,[ot(Be,{ref_key:"canvas",ref:t},null,512)])]))}}),h1="",u_=et(c_,[["__scopeId","data-v-1eec3755"]]),h_=tt({__name:"SVG",props:{bgColor:{default:"#fefefe"}},emits:["resize"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=G();wt(r,()=>{r.value&&c()});let o,a,l;function c(){o||!r.value||(o=new Ct(r.value,!1),o.on("resize",(h,f)=>{i("resize",h,f)}),o.start(),a=new pm(o),l?.(a))}function u(){return new Promise(h=>{if(a)return h(a);l=h})}return zt(()=>{o?.destroy()}),t({getSVGElement:()=>r.value,getSVG:u}),(h,f)=>(R(),j("div",{ref_key:"svgRef",ref:r,class:"svg",style:q({backgroundColor:s.bgColor})},null,4))}}),f1="",wu=et(h_,[["__scopeId","data-v-3a8033cf"]]),f_='<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>',d_={class:"btns"},p_={style:{height:"400px"}},m_={style:{height:"400px"}},g_=tt({customOptions:{Button:Nt,SVG:wu,Canvas:Be},inheritAttrs:!0,__name:"SVGAndCanvas",setup(n,{expose:t}){const e=G(""),s=G(),i=G();function r(){const l="PathDGroup";if(e.value==l||!s.value||!i.value)return;e.value=l;const c=new Hi({svg:f_,width:300,attrs:{"stroke-width":"1",stroke:"#ff0000",fill:"none"}}),u=new Qt({x:0,y:0,radius:6,attrs:{fill:"#ff0000"}});let h;const f=new Qt({x:0,y:0,radius:3,attrs:{fill:"#00ff00"}});let p,m=[c,u,f],v,b,E=0,C=c.paths[E].getTotalLength(),w=0;const P=.01;s.value.getSVG().then(D=>{D.clear(),D.path(c),h=D.path(u),p=D.path(f),D.clickInPath(N=>{b&&D.delete(b),v&&(v.restore(),D.update(v)),v=N,N.save(),N.attrs.fill="pink",N.attrs.stroke="green",D.update(N);const A=N.getBoundingClientRect();A.attrs.fill="none",A.attrs.strokeWidth="4",A.attrs.stroke="#0000ff",b=D.path(A)}),Zt.register(()=>{if(e.value!==l)return!1;w>1&&(E++,w=0,E>c.paths.length-1&&(E=0),C=c.paths[E].getTotalLength());let{x:N,y:A}=c.paths[E].interpolate(w);h.x=N,h.y=A,D.update(h);let{x:at,y:lt}=c.paths[E].getPointAtLength(w*C);return p.x=at,p.y=lt,D.update(p),w+=P,D.update(c),!0})}),i.value.getCanvas().then(D=>{D.draw(m),D.clickInPath(N=>{D.ctx.clearRect(),v&&v.restore(),v=N,N.save(),N.attrs.fill="pink",N.attrs.stroke="green";const A=N.getBoundingClientRect();A.attrs.fill="none",A.attrs.strokeWidth="4",A.attrs.stroke="#0000ff",m=[c,A,u,f],D.draw(m)}),Zt.register(()=>{if(e.value!==l)return!1;w>1&&(E++,w=0,E>c.paths.length-1&&(E=0),C=c.paths[E].getTotalLength()),D.ctx.clearRect();let{x:N,y:A}=c.paths[E].interpolate(w);u.x=N,u.y=A;let{x:at,y:lt}=c.paths[E].getPointAtLength(w*C);return f.x=at,f.y=lt,w+=P,D.draw(m),!0})})}function o(){const l="Shapes";if(e.value==l||!s.value||!i.value)return;e.value=l;const c=new su({x:100,y:100,scaleOnOrigin:.5,attrs:{fill:"#5a82f0"},enableDrag:!0}),u=new Ce({width:100,height:60,x:200,y:40,borderRadius:10,attrs:{fill:"pink"},enableDrag:!0}),h=new bm({x:400,y:100,scaleOnOrigin:1,attrs:{fill:"rgb(200,80,80)"},enableDrag:!0});s.value.getSVG().then(f=>{f.clear();const p=f.path(c),m=f.path(u),v=f.path(h);Zt.register(()=>e.value!==l?!1:(f.update(p),f.update(m),f.update(v),!0))}),i.value.getCanvas().then(f=>{Zt.register(()=>e.value!==l?!1:(f.ctx.clearRect(),f.draw([c,u,h]),!0))})}function a(){const l="Arrow";if(e.value==l||!s.value||!i.value)return;e.value=l;const c=new su({scaleOnOrigin:.5,followMouse:!0,attrs:{fill:"pink"}});s.value.getSVG().then(u=>{const h=new Kt({x:u.app.width/2,y:u.app.height/2,attrs:{"stroke-width":"2",stroke:"pink"}});u.clear();const f=u.path(c);u.path(h),Zt.register(()=>e.value!==l?!1:(u.update(f),h.fromX=f.x,h.fromY=f.y,u.update(h),!0))}),i.value.getCanvas().then(u=>{const h=new Kt({x:u.app.width/2,y:u.app.height/2,attrs:{"stroke-width":"2",stroke:"pink"}});Zt.register(()=>e.value!=l?!1:(u.ctx.clearRect(),h.fromX=c.x,h.fromY=c.y,u.draw([h,c]),console.log(`distance: ${c.distanceTo(h)}`),!0))})}return zt(()=>{}),t({}),(l,c)=>(R(),j(Ot,null,[k("div",d_,[ot(Nt,{onClick:r,stylePattern:e.value=="PathDGroup"?"fullfilled":"outline"},{default:Dt(()=>[Yt(" PathDGroup ")]),_:1},8,["stylePattern"]),ot(Nt,{onClick:o,stylePattern:e.value=="Shapes"?"fullfilled":"outline"},{default:Dt(()=>[Yt(" Shapes ")]),_:1},8,["stylePattern"]),ot(Nt,{onClick:a,stylePattern:e.value=="Arrow"?"fullfilled":"outline"},{default:Dt(()=>[Yt(" Arrow ")]),_:1},8,["stylePattern"])]),k("div",p_,[ot(wu,{ref_key:"svgRef",ref:s},null,512)]),k("div",m_,[ot(Be,{ref_key:"canvasRef",ref:i},null,512)])],64))}}),d1="",v_=et(g_,[["__scopeId","data-v-82744c50"]]),__={class:"loading-1"},y_=tt({__name:"Loading1",props:{color:{default:st.colorPrimary}},setup(n){const e={backgroundColor:n.color};return(s,i)=>(R(),j("div",__,[k("div",{class:"rect1",style:e}),k("div",{class:"rect2",style:e}),k("div",{class:"rect3",style:e}),k("div",{class:"rect4",style:e}),k("div",{class:"rect5",style:e})]))}}),p1="",b_=et(y_,[["__scopeId","data-v-48b10c9a"]]),x_={class:"loading-2"},w_=tt({__name:"Loading2",props:{color:{default:st.colorPrimary}},setup(n){const e={backgroundColor:n.color};return(s,i)=>(R(),j("div",x_,[k("div",{class:"dot1",style:e}),k("div",{class:"dot2",style:e})]))}}),m1="",E_=et(w_,[["__scopeId","data-v-79f9930f"]]),C_=tt({__name:"Loading3",props:{fromColor:{default:st.colorPrimary},toColor:{default:st.colorRed}},setup(n){const t=n,e=`
|
|
84
|
+
@keyframes snake {
|
|
85
|
+
0% {
|
|
86
|
+
opacity: 0.3;
|
|
87
|
+
transform: translateY(0px);
|
|
88
|
+
box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1);
|
|
89
|
+
}
|
|
90
|
+
50% {
|
|
91
|
+
opacity: 1;
|
|
92
|
+
transform: translateY(-10px);
|
|
93
|
+
background-color: ${t.toColor};
|
|
94
|
+
box-shadow: 0px 20px 3px rgba(0, 0, 0, 0.05);
|
|
95
|
+
}
|
|
96
|
+
100% {
|
|
97
|
+
opacity: 0.3;
|
|
98
|
+
transform: translateY(0px);
|
|
99
|
+
box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
`,s={backgroundColor:t.fromColor,width:"20%"},i=G();return wt(i,()=>{i.value&&X.setStyleSheet(e,i.value)}),mn(()=>{}),zt(()=>{}),(r,o)=>(R(),j("div",{class:"loading-3",ref_key:"loading3",ref:i},[k("div",{class:"dot",style:q({...s,left:"0"})},null,4),k("div",{class:"dot",style:q({...s,left:"20%"})},null,4),k("div",{class:"dot",style:q({...s,left:"40%"})},null,4),k("div",{class:"dot",style:q({...s,left:"60%"})},null,4),k("div",{class:"dot",style:q({...s,left:"80%"})},null,4)],512))}}),g1="",S_=et(C_,[["__scopeId","data-v-718133c0"]]),T_={class:"loading-4"},k_=tt({__name:"Loading4",props:{color:{default:st.colorPrimary}},setup(n){const e={backgroundColor:n.color};return(s,i)=>(R(),j("div",T_,[k("div",{class:"rect",style:e})]))}}),v1="",P_=et(k_,[["__scopeId","data-v-9028c8cf"]]),O_={class:"loading-5"},N_=tt({__name:"Loading5",props:{color:{default:st.colorPrimary}},setup(n){const e={backgroundColor:n.color};return(s,i)=>(R(),j("div",O_,[k("div",{class:"cube1",style:e}),k("div",{class:"cube2",style:e})]))}}),_1="",I_=et(N_,[["__scopeId","data-v-6f68ee6f"]]),D_={class:"loading-6"},M_=tt({__name:"Loading6",props:{color:{default:st.colorPrimary}},setup(n){const e={backgroundColor:n.color};return(s,i)=>(R(),j("div",D_,[k("div",{style:e}),k("div",{style:e}),k("div",{style:e})]))}}),y1="",A_=et(M_,[["__scopeId","data-v-e397194b"]]),R_=[(n=>(Xn("data-v-ef280c02"),n=n(),Wn(),n))(()=>k("div",null,null,-1))],$_=tt({__name:"Loading7",props:{color:{default:st.colorPrimary}},setup(n){const t=n,e=`
|
|
103
|
+
:root {
|
|
104
|
+
--loading-7-bg-color: ${t.color}
|
|
105
|
+
}
|
|
106
|
+
:host {
|
|
107
|
+
--loading-7-bg-color: ${t.color}
|
|
108
|
+
}
|
|
109
|
+
`,s=G();return wt(s,()=>{s.value&&X.setStyleSheet(e,s.value)}),mn(()=>{}),zt(()=>{}),(i,r)=>(R(),j("div",{class:"loading-7",ref_key:"loading7",ref:s},R_,512))}}),w1="",L_=et($_,[["__scopeId","data-v-ef280c02"]]),F_={class:"loading-9"},V_=tt({__name:"Loading9",props:{color:{default:st.colorPrimary}},setup(n){const e={borderTopColor:n.color};return(s,i)=>(R(),j("div",F_,[k("div",{style:e})]))}}),E1="",G_=et(V_,[["__scopeId","data-v-a563aaa4"]]),z_={class:"loading-10"},j_={viewBox:"0 0 50 50"},H_=tt({__name:"Loading10",props:{color:{default:st.colorPrimary}},setup(n){const t=n;return(e,s)=>(R(),j("div",z_,[(R(),j("svg",j_,[k("circle",{class:"ring",cx:"25",cy:"25",r:"20",style:q(["stroke: rgba(0,0,0,0.1)"])},null,4),k("circle",{class:"ball",cx:"25",cy:"5",r:"3.5",style:q(["fill: "+t.color])},null,4)]))]))}}),C1="",B_=et(H_,[["__scopeId","data-v-361d898a"]]);J.Accordion=c0,J.Button=Nt,J.CanvasShape=u_,J.CanvasSport=i_,J.CheckboxGroup=lg,J.ColorPicker=Ov,J.Dialog=js,J.DialogLoading=Wg,J.DialogToast=lu,J.EaseGraphDisplay=Qo,J.EaseGroupGraphDisplay=Hv,J.FPSStats=$v,J.HandWritePanel=j0,J.Icon=Gn,J.Image=zo,J.ImageView=x0,J.Input=yg,J.InterpolationGraphDisplay=Jo,J.InterpolationGroupGraphDisplay=Wv,J.LayoutCenter=N0,J.LayoutMobile=P0,J.Loading1=b_,J.Loading10=B_,J.Loading2=E_,J.Loading3=S_,J.Loading4=P_,J.Loading5=I_,J.Loading6=A_,J.Loading7=L_,J.Loading8=Vo,J.Loading9=G_,J.MapTianditu=Rv,J.MouseOver=a0,J.Overlay=es,J.PageVerticalScrollProgressBar=U0,J.PlateDisplay=av,J.PlateKeyboard=cu,J.PlateMobile=iv,J.Pop=Pe,J.Popover=jo,J.ProgressBar=Hs,J.RadioGroup=eg,J.ResizeObserver=Mv,J.SVGAndCanvas=v_,J.SVGCheck=Ho,J.SVGCleanUp=Ui,J.SVGDelete=Fo,J.SVGDown=zs,J.Select=Fm,J.SelectAbsolute=Ym,J.SlideLeftItem=Cg,J.Switch=Wm,J.Tab=R0,J.Tabs=G0,J.TweenCSS=Jv,J.Video=m0,Object.defineProperty(J,Symbol.toStringTag,{value:"Module"})});
|
|
57
110
|
//# sourceMappingURL=zyzgroup_core_vue.umd.cjs.map
|