(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const i of l.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function s(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function n(o){if(o.ep)return;o.ep=!0;const l=s(o);fetch(o.href,l)}})();/** * @vue/shared v3.5.29 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function An(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const he={},zt=[],ot=()=>{},Wo=()=>!1,Vs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Pn=e=>e.startsWith("onUpdate:"),$e=Object.assign,En=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},ul=Object.prototype.hasOwnProperty,de=(e,t)=>ul.call(e,t),Q=Array.isArray,Xt=e=>ys(e)==="[object Map]",Ko=e=>ys(e)==="[object Set]",so=e=>ys(e)==="[object Date]",ee=e=>typeof e=="function",_e=e=>typeof e=="string",rt=e=>typeof e=="symbol",fe=e=>e!==null&&typeof e=="object",Go=e=>(fe(e)||ee(e))&&ee(e.then)&&ee(e.catch),qo=Object.prototype.toString,ys=e=>qo.call(e),dl=e=>ys(e).slice(8,-1),Jo=e=>ys(e)==="[object Object]",In=e=>_e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,rs=An(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ws=e=>{const t=Object.create(null);return s=>t[s]||(t[s]=e(s))},fl=/-\w/g,Je=Ws(e=>e.replace(fl,t=>t.slice(1).toUpperCase())),pl=/\B([A-Z])/g,jt=Ws(e=>e.replace(pl,"-$1").toLowerCase()),Ks=Ws(e=>e.charAt(0).toUpperCase()+e.slice(1)),tn=Ws(e=>e?`on${Ks(e)}`:""),Ct=(e,t)=>!Object.is(e,t),As=(e,...t)=>{for(let s=0;s{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Fn=e=>{const t=parseFloat(e);return isNaN(t)?e:t},vl=e=>{const t=_e(e)?Number(e):NaN;return isNaN(t)?e:t};let no;const Gs=()=>no||(no=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function re(e){if(Q(e)){const t={};for(let s=0;s{if(s){const n=s.split(gl);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ve(e){let t="";if(_e(e))t=e;else if(Q(e))for(let s=0;s!!(e&&e.__v_isRef===!0),D=e=>_e(e)?e:e==null?"":Q(e)||fe(e)&&(e.toString===qo||!ee(e.toString))?Xo(e)?D(e.value):JSON.stringify(e,Qo,2):String(e),Qo=(e,t)=>Xo(t)?Qo(e,t.value):Xt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,o],l)=>(s[sn(n,l)+" =>"]=o,s),{})}:Ko(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>sn(s))}:rt(t)?sn(t):fe(t)&&!Q(t)&&!Jo(t)?String(t):t,sn=(e,t="")=>{var s;return rt(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/** * @vue/reactivity v3.5.29 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Oe;class $l{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Oe,!t&&Oe&&(this.index=(Oe.scopes||(Oe.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t0&&--this._on===0&&(Oe=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s0)return;if(is){let t=is;for(is=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;ls;){let t=ls;for(ls=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function sr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function nr(e){let t,s=e.depsTail,n=s;for(;n;){const o=n.prevDep;n.version===-1?(n===s&&(s=o),Mn(n),kl(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=o}e.deps=t,e.depsTail=s}function gn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(or(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function or(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===fs)||(e.globalVersion=fs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!gn(e))))return;e.flags|=2;const t=e.dep,s=ge,n=Xe;ge=e,Xe=!0;try{sr(e);const o=e.fn(e._value);(t.version===0||Ct(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{ge=s,Xe=n,nr(e),e.flags&=-3}}function Mn(e,t=!1){const{dep:s,prevSub:n,nextSub:o}=e;if(n&&(n.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let l=s.computed.deps;l;l=l.nextDep)Mn(l,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function kl(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Xe=!0;const rr=[];function gt(){rr.push(Xe),Xe=!1}function mt(){const e=rr.pop();Xe=e===void 0?!0:e}function oo(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=ge;ge=void 0;try{t()}finally{ge=s}}}let fs=0;class Cl{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class On{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!ge||!Xe||ge===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==ge)s=this.activeLink=new Cl(ge,this),ge.deps?(s.prevDep=ge.depsTail,ge.depsTail.nextDep=s,ge.depsTail=s):ge.deps=ge.depsTail=s,lr(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=ge.depsTail,s.nextDep=void 0,ge.depsTail.nextDep=s,ge.depsTail=s,ge.deps===s&&(ge.deps=n)}return s}trigger(t){this.version++,fs++,this.notify(t)}notify(t){Rn();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Bn()}}}function lr(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)lr(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const mn=new WeakMap,Ut=Symbol(""),bn=Symbol(""),ps=Symbol("");function Te(e,t,s){if(Xe&&ge){let n=mn.get(e);n||mn.set(e,n=new Map);let o=n.get(s);o||(n.set(s,o=new On),o.map=n,o.key=s),o.track()}}function pt(e,t,s,n,o,l){const i=mn.get(e);if(!i){fs++;return}const a=c=>{c&&c.trigger()};if(Rn(),t==="clear")i.forEach(a);else{const c=Q(e),p=c&&In(s);if(c&&s==="length"){const u=Number(n);i.forEach((f,b)=>{(b==="length"||b===ps||!rt(b)&&b>=u)&&a(f)})}else switch((s!==void 0||i.has(void 0))&&a(i.get(s)),p&&a(i.get(ps)),t){case"add":c?p&&a(i.get("length")):(a(i.get(Ut)),Xt(e)&&a(i.get(bn)));break;case"delete":c||(a(i.get(Ut)),Xt(e)&&a(i.get(bn)));break;case"set":Xt(e)&&a(i.get(Ut));break}}Bn()}function Wt(e){const t=ce(e);return t===e?t:(Te(t,"iterate",ps),qe(e)?t:t.map(Qe))}function qs(e){return Te(e=ce(e),"iterate",ps),e}function xt(e,t){return bt(e)?es(Lt(e)?Qe(t):t):Qe(t)}const Tl={__proto__:null,[Symbol.iterator](){return on(this,Symbol.iterator,e=>xt(this,e))},concat(...e){return Wt(this).concat(...e.map(t=>Q(t)?Wt(t):t))},entries(){return on(this,"entries",e=>(e[1]=xt(this,e[1]),e))},every(e,t){return ct(this,"every",e,t,void 0,arguments)},filter(e,t){return ct(this,"filter",e,t,s=>s.map(n=>xt(this,n)),arguments)},find(e,t){return ct(this,"find",e,t,s=>xt(this,s),arguments)},findIndex(e,t){return ct(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ct(this,"findLast",e,t,s=>xt(this,s),arguments)},findLastIndex(e,t){return ct(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ct(this,"forEach",e,t,void 0,arguments)},includes(...e){return rn(this,"includes",e)},indexOf(...e){return rn(this,"indexOf",e)},join(e){return Wt(this).join(e)},lastIndexOf(...e){return rn(this,"lastIndexOf",e)},map(e,t){return ct(this,"map",e,t,void 0,arguments)},pop(){return ts(this,"pop")},push(...e){return ts(this,"push",e)},reduce(e,...t){return ro(this,"reduce",e,t)},reduceRight(e,...t){return ro(this,"reduceRight",e,t)},shift(){return ts(this,"shift")},some(e,t){return ct(this,"some",e,t,void 0,arguments)},splice(...e){return ts(this,"splice",e)},toReversed(){return Wt(this).toReversed()},toSorted(e){return Wt(this).toSorted(e)},toSpliced(...e){return Wt(this).toSpliced(...e)},unshift(...e){return ts(this,"unshift",e)},values(){return on(this,"values",e=>xt(this,e))}};function on(e,t,s){const n=qs(e),o=n[t]();return n!==e&&!qe(e)&&(o._next=o.next,o.next=()=>{const l=o._next();return l.done||(l.value=s(l.value)),l}),o}const Sl=Array.prototype;function ct(e,t,s,n,o,l){const i=qs(e),a=i!==e&&!qe(e),c=i[t];if(c!==Sl[t]){const f=c.apply(e,l);return a?Qe(f):f}let p=s;i!==e&&(a?p=function(f,b){return s.call(this,xt(e,f),b,e)}:s.length>2&&(p=function(f,b){return s.call(this,f,b,e)}));const u=c.call(i,p,n);return a&&o?o(u):u}function ro(e,t,s,n){const o=qs(e);let l=s;return o!==e&&(qe(e)?s.length>3&&(l=function(i,a,c){return s.call(this,i,a,c,e)}):l=function(i,a,c){return s.call(this,i,xt(e,a),c,e)}),o[t](l,...n)}function rn(e,t,s){const n=ce(e);Te(n,"iterate",ps);const o=n[t](...s);return(o===-1||o===!1)&&Ln(s[0])?(s[0]=ce(s[0]),n[t](...s)):o}function ts(e,t,s=[]){gt(),Rn();const n=ce(e)[t].apply(e,s);return Bn(),mt(),n}const Al=An("__proto__,__v_isRef,__isVue"),ir=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(rt));function Pl(e){rt(e)||(e=String(e));const t=ce(this);return Te(t,"has",e),t.hasOwnProperty(e)}class ar{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const o=this._isReadonly,l=this._isShallow;if(s==="__v_isReactive")return!o;if(s==="__v_isReadonly")return o;if(s==="__v_isShallow")return l;if(s==="__v_raw")return n===(o?l?Dl:fr:l?dr:ur).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=Q(t);if(!o){let c;if(i&&(c=Tl[s]))return c;if(s==="hasOwnProperty")return Pl}const a=Reflect.get(t,s,Ae(t)?t:n);if((rt(s)?ir.has(s):Al(s))||(o||Te(t,"get",s),l))return a;if(Ae(a)){const c=i&&In(s)?a:a.value;return o&&fe(c)?_n(c):c}return fe(a)?o?_n(a):Dn(a):a}}class cr extends ar{constructor(t=!1){super(!1,t)}set(t,s,n,o){let l=t[s];const i=Q(t)&&In(s);if(!this._isShallow){const p=bt(l);if(!qe(n)&&!bt(n)&&(l=ce(l),n=ce(n)),!i&&Ae(l)&&!Ae(n))return p||(l.value=n),!0}const a=i?Number(s)e,Cs=e=>Reflect.getPrototypeOf(e);function Rl(e,t,s){return function(...n){const o=this.__v_raw,l=ce(o),i=Xt(l),a=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,p=o[e](...n),u=s?yn:t?es:Qe;return!t&&Te(l,"iterate",c?bn:Ut),$e(Object.create(p),{next(){const{value:f,done:b}=p.next();return b?{value:f,done:b}:{value:a?[u(f[0]),u(f[1])]:u(f),done:b}}})}}function Ts(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Bl(e,t){const s={get(o){const l=this.__v_raw,i=ce(l),a=ce(o);e||(Ct(o,a)&&Te(i,"get",o),Te(i,"get",a));const{has:c}=Cs(i),p=t?yn:e?es:Qe;if(c.call(i,o))return p(l.get(o));if(c.call(i,a))return p(l.get(a));l!==i&&l.get(o)},get size(){const o=this.__v_raw;return!e&&Te(ce(o),"iterate",Ut),o.size},has(o){const l=this.__v_raw,i=ce(l),a=ce(o);return e||(Ct(o,a)&&Te(i,"has",o),Te(i,"has",a)),o===a?l.has(o):l.has(o)||l.has(a)},forEach(o,l){const i=this,a=i.__v_raw,c=ce(a),p=t?yn:e?es:Qe;return!e&&Te(c,"iterate",Ut),a.forEach((u,f)=>o.call(l,p(u),p(f),i))}};return $e(s,e?{add:Ts("add"),set:Ts("set"),delete:Ts("delete"),clear:Ts("clear")}:{add(o){!t&&!qe(o)&&!bt(o)&&(o=ce(o));const l=ce(this);return Cs(l).has.call(l,o)||(l.add(o),pt(l,"add",o,o)),this},set(o,l){!t&&!qe(l)&&!bt(l)&&(l=ce(l));const i=ce(this),{has:a,get:c}=Cs(i);let p=a.call(i,o);p||(o=ce(o),p=a.call(i,o));const u=c.call(i,o);return i.set(o,l),p?Ct(l,u)&&pt(i,"set",o,l):pt(i,"add",o,l),this},delete(o){const l=ce(this),{has:i,get:a}=Cs(l);let c=i.call(l,o);c||(o=ce(o),c=i.call(l,o)),a&&a.call(l,o);const p=l.delete(o);return c&&pt(l,"delete",o,void 0),p},clear(){const o=ce(this),l=o.size!==0,i=o.clear();return l&&pt(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{s[o]=Rl(o,e,t)}),s}function Hn(e,t){const s=Bl(e,t);return(n,o,l)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?n:Reflect.get(de(s,o)&&o in n?s:n,o,l)}const Ml={get:Hn(!1,!1)},Ol={get:Hn(!1,!0)},Hl={get:Hn(!0,!1)};const ur=new WeakMap,dr=new WeakMap,fr=new WeakMap,Dl=new WeakMap;function Ul(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ll(e){return e.__v_skip||!Object.isExtensible(e)?0:Ul(dl(e))}function Dn(e){return bt(e)?e:Un(e,!1,Il,Ml,ur)}function jl(e){return Un(e,!1,Nl,Ol,dr)}function _n(e){return Un(e,!0,Fl,Hl,fr)}function Un(e,t,s,n,o){if(!fe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=Ll(e);if(l===0)return e;const i=o.get(e);if(i)return i;const a=new Proxy(e,l===2?n:s);return o.set(e,a),a}function Lt(e){return bt(e)?Lt(e.__v_raw):!!(e&&e.__v_isReactive)}function bt(e){return!!(e&&e.__v_isReadonly)}function qe(e){return!!(e&&e.__v_isShallow)}function Ln(e){return e?!!e.__v_raw:!1}function ce(e){const t=e&&e.__v_raw;return t?ce(t):e}function Vl(e){return!de(e,"__v_skip")&&Object.isExtensible(e)&&Yo(e,"__v_skip",!0),e}const Qe=e=>fe(e)?Dn(e):e,es=e=>fe(e)?_n(e):e;function Ae(e){return e?e.__v_isRef===!0:!1}function I(e){return pr(e,!1)}function Wl(e){return pr(e,!0)}function pr(e,t){return Ae(e)?e:new Kl(e,t)}class Kl{constructor(t,s){this.dep=new On,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:ce(t),this._value=s?t:Qe(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||qe(t)||bt(t);t=n?t:ce(t),Ct(t,s)&&(this._rawValue=t,this._value=n?t:Qe(t),this.dep.trigger())}}function Ps(e){return Ae(e)?e.value:e}const Gl={get:(e,t,s)=>t==="__v_raw"?e:Ps(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const o=e[t];return Ae(o)&&!Ae(s)?(o.value=s,!0):Reflect.set(e,t,s,n)}};function vr(e){return Lt(e)?e:new Proxy(e,Gl)}class ql{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new On(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=fs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ge!==this)return tr(this,!0),!0}get value(){const t=this.dep.track();return or(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Jl(e,t,s=!1){let n,o;return ee(e)?n=e:(n=e.get,o=e.set),new ql(n,o,s)}const Ss={},Bs=new WeakMap;let Ot;function Yl(e,t=!1,s=Ot){if(s){let n=Bs.get(s);n||Bs.set(s,n=[]),n.push(e)}}function zl(e,t,s=he){const{immediate:n,deep:o,once:l,scheduler:i,augmentJob:a,call:c}=s,p=m=>o?m:qe(m)||o===!1||o===0?vt(m,1):vt(m);let u,f,b,h,k=!1,U=!1;if(Ae(e)?(f=()=>e.value,k=qe(e)):Lt(e)?(f=()=>p(e),k=!0):Q(e)?(U=!0,k=e.some(m=>Lt(m)||qe(m)),f=()=>e.map(m=>{if(Ae(m))return m.value;if(Lt(m))return p(m);if(ee(m))return c?c(m,2):m()})):ee(e)?t?f=c?()=>c(e,2):e:f=()=>{if(b){gt();try{b()}finally{mt()}}const m=Ot;Ot=u;try{return c?c(e,3,[h]):e(h)}finally{Ot=m}}:f=ot,t&&o){const m=f,g=o===!0?1/0:o;f=()=>vt(m(),g)}const z=xl(),j=()=>{u.stop(),z&&z.active&&En(z.effects,u)};if(l&&t){const m=t;t=(...g)=>{m(...g),j()}}let w=U?new Array(e.length).fill(Ss):Ss;const C=m=>{if(!(!(u.flags&1)||!u.dirty&&!m))if(t){const g=u.run();if(o||k||(U?g.some((y,E)=>Ct(y,w[E])):Ct(g,w))){b&&b();const y=Ot;Ot=u;try{const E=[g,w===Ss?void 0:U&&w[0]===Ss?[]:w,h];w=g,c?c(t,3,E):t(...E)}finally{Ot=y}}}else u.run()};return a&&a(C),u=new Zo(f),u.scheduler=i?()=>i(C,!1):C,h=m=>Yl(m,!1,u),b=u.onStop=()=>{const m=Bs.get(u);if(m){if(c)c(m,4);else for(const g of m)g();Bs.delete(u)}},t?n?C(!0):w=u.run():i?i(C.bind(null,!0),!0):u.run(),j.pause=u.pause.bind(u),j.resume=u.resume.bind(u),j.stop=j,j}function vt(e,t=1/0,s){if(t<=0||!fe(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,Ae(e))vt(e.value,t,s);else if(Q(e))for(let n=0;n{vt(n,t,s)});else if(Jo(e)){for(const n in e)vt(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&vt(e[n],t,s)}return e}/** * @vue/runtime-core v3.5.29 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function _s(e,t,s,n){try{return n?e(...n):e()}catch(o){Js(o,t,s)}}function Ze(e,t,s,n){if(ee(e)){const o=_s(e,t,s,n);return o&&Go(o)&&o.catch(l=>{Js(l,t,s)}),o}if(Q(e)){const o=[];for(let l=0;l>>1,o=Fe[n],l=vs(o);l=vs(s)?Fe.push(e):Fe.splice(Ql(t),0,e),e.flags|=1,mr()}}function mr(){Ms||(Ms=hr.then(yr))}function Zl(e){Q(e)?Qt.push(...e):kt&&e.id===-1?kt.splice(Kt+1,0,e):e.flags&1||(Qt.push(e),e.flags|=1),mr()}function lo(e,t,s=tt+1){for(;svs(s)-vs(n));if(Qt.length=0,kt){kt.push(...t);return}for(kt=t,Kt=0;Kte.id==null?e.flags&2?-1:1/0:e.id;function yr(e){try{for(tt=0;tt{n._d&&Us(-1);const l=Os(t);let i;try{i=e(...o)}finally{Os(l),n._d&&Us(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function qt(e,t){if(je===null)return e;const s=Zs(je),n=e.dirs||(e.dirs=[]);for(let o=0;o1)return s&&ee(t)?t.call(n&&n.proxy):t}}const ti=Symbol.for("v-scx"),si=()=>Is(ti);function ln(e,t,s){return wr(e,t,s)}function wr(e,t,s=he){const{immediate:n,deep:o,flush:l,once:i}=s,a=$e({},s),c=t&&n||!t&&l!=="post";let p;if(ms){if(l==="sync"){const h=si();p=h.__watcherHandles||(h.__watcherHandles=[])}else if(!c){const h=()=>{};return h.stop=ot,h.resume=ot,h.pause=ot,h}}const u=Se;a.call=(h,k,U)=>Ze(h,u,k,U);let f=!1;l==="post"?a.scheduler=h=>{Me(h,u&&u.suspense)}:l!=="sync"&&(f=!0,a.scheduler=(h,k)=>{k?h():jn(h)}),a.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const b=zl(e,t,a);return ms&&(p?p.push(b):c&&b()),b}function ni(e,t,s){const n=this.proxy,o=_e(e)?e.includes(".")?$r(n,e):()=>n[e]:e.bind(n,n);let l;ee(t)?l=t:(l=t.handler,s=t);const i=ws(this),a=wr(o,l.bind(n),s);return i(),a}function $r(e,t){const s=t.split(".");return()=>{let n=e;for(let o=0;oe.__isTeleport,st=Symbol("_leaveCb"),ss=Symbol("_enterCb");function ri(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return De(()=>{e.isMounted=!0}),Ir(()=>{e.isUnmounting=!0}),e}const Ge=[Function,Array],kr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ge,onEnter:Ge,onAfterEnter:Ge,onEnterCancelled:Ge,onBeforeLeave:Ge,onLeave:Ge,onAfterLeave:Ge,onLeaveCancelled:Ge,onBeforeAppear:Ge,onAppear:Ge,onAfterAppear:Ge,onAppearCancelled:Ge},Cr=e=>{const t=e.subTree;return t.component?Cr(t.component):t},li={name:"BaseTransition",props:kr,setup(e,{slots:t}){const s=Zr(),n=ri();return()=>{const o=t.default&&Ar(t.default(),!0);if(!o||!o.length)return;const l=Tr(o),i=ce(e),{mode:a}=i;if(n.isLeaving)return an(l);const c=io(l);if(!c)return an(l);let p=wn(c,i,n,s,f=>p=f);c.type!==Ne&&hs(c,p);let u=s.subTree&&io(s.subTree);if(u&&u.type!==Ne&&!Dt(u,c)&&Cr(s).type!==Ne){let f=wn(u,i,n,s);if(hs(u,f),a==="out-in"&&c.type!==Ne)return n.isLeaving=!0,f.afterLeave=()=>{n.isLeaving=!1,s.job.flags&8||s.update(),delete f.afterLeave,u=void 0},an(l);a==="in-out"&&c.type!==Ne?f.delayLeave=(b,h,k)=>{const U=Sr(n,u);U[String(u.key)]=u,b[st]=()=>{h(),b[st]=void 0,delete p.delayedLeave,u=void 0},p.delayedLeave=()=>{k(),delete p.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return l}}};function Tr(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==Ne){t=s;break}}return t}const ii=li;function Sr(e,t){const{leavingVNodes:s}=e;let n=s.get(t.type);return n||(n=Object.create(null),s.set(t.type,n)),n}function wn(e,t,s,n,o){const{appear:l,mode:i,persisted:a=!1,onBeforeEnter:c,onEnter:p,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:b,onLeave:h,onAfterLeave:k,onLeaveCancelled:U,onBeforeAppear:z,onAppear:j,onAfterAppear:w,onAppearCancelled:C}=t,m=String(e.key),g=Sr(s,e),y=($,G)=>{$&&Ze($,n,9,G)},E=($,G)=>{const oe=G[1];y($,G),Q($)?$.every(O=>O.length<=1)&&oe():$.length<=1&&oe()},S={mode:i,persisted:a,beforeEnter($){let G=c;if(!s.isMounted)if(l)G=z||c;else return;$[st]&&$[st](!0);const oe=g[m];oe&&Dt(e,oe)&&oe.el[st]&&oe.el[st](),y(G,[$])},enter($){if(g[m]===e)return;let G=p,oe=u,O=f;if(!s.isMounted)if(l)G=j||p,oe=w||u,O=C||f;else return;let T=!1;$[ss]=Z=>{T||(T=!0,Z?y(O,[$]):y(oe,[$]),S.delayedLeave&&S.delayedLeave(),$[ss]=void 0)};const M=$[ss].bind(null,!1);G?E(G,[$,M]):M()},leave($,G){const oe=String(e.key);if($[ss]&&$[ss](!0),s.isUnmounting)return G();y(b,[$]);let O=!1;$[st]=M=>{O||(O=!0,G(),M?y(U,[$]):y(k,[$]),$[st]=void 0,g[oe]===e&&delete g[oe])};const T=$[st].bind(null,!1);g[oe]=e,h?E(h,[$,T]):T()},clone($){const G=wn($,t,s,n,o);return o&&o(G),G}};return S}function an(e){if(Ys(e))return e=Tt(e),e.children=null,e}function io(e){if(!Ys(e))return xr(e.type)&&e.children?Tr(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&ee(s.default))return s.default()}}function hs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,hs(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ar(e,t=!1,s){let n=[],o=0;for(let l=0;l1)for(let l=0;las(U,t&&(Q(t)?t[z]:t),s,n,o));return}if(cs(n)&&!o){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&as(e,t,s,n.component.subTree);return}const l=n.shapeFlag&4?Zs(n.component):n.el,i=o?null:l,{i:a,r:c}=e,p=t&&t.r,u=a.refs===he?a.refs={}:a.refs,f=a.setupState,b=ce(f),h=f===he?Wo:U=>ao(u,U)?!1:de(b,U),k=(U,z)=>!(z&&ao(u,z));if(p!=null&&p!==c){if(co(t),_e(p))u[p]=null,h(p)&&(f[p]=null);else if(Ae(p)){const U=t;k(p,U.k)&&(p.value=null),U.k&&(u[U.k]=null)}}if(ee(c))_s(c,a,12,[i,u]);else{const U=_e(c),z=Ae(c);if(U||z){const j=()=>{if(e.f){const w=U?h(c)?f[c]:u[c]:k()||!e.k?c.value:u[e.k];if(o)Q(w)&&En(w,l);else if(Q(w))w.includes(l)||w.push(l);else if(U)u[c]=[l],h(c)&&(f[c]=u[c]);else{const C=[l];k(c,e.k)&&(c.value=C),e.k&&(u[e.k]=C)}}else U?(u[c]=i,h(c)&&(f[c]=i)):z&&(k(c,e.k)&&(c.value=i),e.k&&(u[e.k]=i))};if(i){const w=()=>{j(),Hs.delete(e)};w.id=-1,Hs.set(e,w),Me(w,s)}else co(e),j()}}}function co(e){const t=Hs.get(e);t&&(t.flags|=8,Hs.delete(e))}Gs().requestIdleCallback;Gs().cancelIdleCallback;const cs=e=>!!e.type.__asyncLoader,Ys=e=>e.type.__isKeepAlive;function ci(e,t){Er(e,"a",t)}function ui(e,t){Er(e,"da",t)}function Er(e,t,s=Se){const n=e.__wdc||(e.__wdc=()=>{let o=s;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(zs(t,n,s),s){let o=s.parent;for(;o&&o.parent;)Ys(o.parent.vnode)&&di(n,t,s,o),o=o.parent}}function di(e,t,s,n){const o=zs(t,e,n,!0);Vn(()=>{En(n[t],o)},s)}function zs(e,t,s=Se,n=!1){if(s){const o=s[e]||(s[e]=[]),l=t.__weh||(t.__weh=(...i)=>{gt();const a=ws(s),c=Ze(t,s,e,i);return a(),mt(),c});return n?o.unshift(l):o.push(l),l}}const yt=e=>(t,s=Se)=>{(!ms||e==="sp")&&zs(e,(...n)=>t(...n),s)},fi=yt("bm"),De=yt("m"),pi=yt("bu"),vi=yt("u"),Ir=yt("bum"),Vn=yt("um"),hi=yt("sp"),gi=yt("rtg"),mi=yt("rtc");function bi(e,t=Se){zs("ec",e,t)}const yi="components",Fr=Symbol.for("v-ndc");function _i(e){return _e(e)?wi(yi,e,!1)||e:e||Fr}function wi(e,t,s=!0,n=!1){const o=je||Se;if(o){const l=o.type;{const a=ra(l,!1);if(a&&(a===t||a===Je(t)||a===Ks(Je(t))))return l}const i=uo(o[e]||l[e],t)||uo(o.appContext[e],t);return!i&&n?l:i}}function uo(e,t){return e&&(e[t]||e[Je(t)]||e[Ks(Je(t))])}function He(e,t,s,n){let o;const l=s,i=Q(e);if(i||_e(e)){const a=i&&Lt(e);let c=!1,p=!1;a&&(c=!qe(e),p=bt(e),e=qs(e)),o=new Array(e.length);for(let u=0,f=e.length;ut(a,c,void 0,l));else{const a=Object.keys(e);o=new Array(a.length);for(let c=0,p=a.length;ce?el(e)?Zs(e):$n(e.parent):null,us=$e(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>$n(e.parent),$root:e=>$n(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Rr(e),$forceUpdate:e=>e.f||(e.f=()=>{jn(e.update)}),$nextTick:e=>e.n||(e.n=gr.bind(e.proxy)),$watch:e=>ni.bind(e)}),cn=(e,t)=>e!==he&&!e.__isScriptSetup&&de(e,t),$i={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:o,props:l,accessCache:i,type:a,appContext:c}=e;if(t[0]!=="$"){const b=i[t];if(b!==void 0)switch(b){case 1:return n[t];case 2:return o[t];case 4:return s[t];case 3:return l[t]}else{if(cn(n,t))return i[t]=1,n[t];if(o!==he&&de(o,t))return i[t]=2,o[t];if(de(l,t))return i[t]=3,l[t];if(s!==he&&de(s,t))return i[t]=4,s[t];xn&&(i[t]=0)}}const p=us[t];let u,f;if(p)return t==="$attrs"&&Te(e.attrs,"get",""),p(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(s!==he&&de(s,t))return i[t]=4,s[t];if(f=c.config.globalProperties,de(f,t))return f[t]},set({_:e},t,s){const{data:n,setupState:o,ctx:l}=e;return cn(o,t)?(o[t]=s,!0):n!==he&&de(n,t)?(n[t]=s,!0):de(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:o,props:l,type:i}},a){let c;return!!(s[a]||e!==he&&a[0]!=="$"&&de(e,a)||cn(t,a)||de(l,a)||de(n,a)||de(us,a)||de(o.config.globalProperties,a)||(c=i.__cssModules)&&c[a])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:de(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function fo(e){return Q(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let xn=!0;function xi(e){const t=Rr(e),s=e.proxy,n=e.ctx;xn=!1,t.beforeCreate&&po(t.beforeCreate,e,"bc");const{data:o,computed:l,methods:i,watch:a,provide:c,inject:p,created:u,beforeMount:f,mounted:b,beforeUpdate:h,updated:k,activated:U,deactivated:z,beforeDestroy:j,beforeUnmount:w,destroyed:C,unmounted:m,render:g,renderTracked:y,renderTriggered:E,errorCaptured:S,serverPrefetch:$,expose:G,inheritAttrs:oe,components:O,directives:T,filters:M}=t;if(p&&ki(p,n,null),i)for(const ae in i){const pe=i[ae];ee(pe)&&(n[ae]=pe.bind(s))}if(o){const ae=o.call(s,s);fe(ae)&&(e.data=Dn(ae))}if(xn=!0,l)for(const ae in l){const pe=l[ae],Ye=ee(pe)?pe.bind(s,s):ee(pe.get)?pe.get.bind(s,s):ot,_t=!ee(pe)&&ee(pe.set)?pe.set.bind(s):ot,ze=X({get:Ye,set:_t});Object.defineProperty(n,ae,{enumerable:!0,configurable:!0,get:()=>ze.value,set:Re=>ze.value=Re})}if(a)for(const ae in a)Nr(a[ae],n,s,ae);if(c){const ae=ee(c)?c.call(s):c;Reflect.ownKeys(ae).forEach(pe=>{ei(pe,ae[pe])})}u&&po(u,e,"c");function le(ae,pe){Q(pe)?pe.forEach(Ye=>ae(Ye.bind(s))):pe&&ae(pe.bind(s))}if(le(fi,f),le(De,b),le(pi,h),le(vi,k),le(ci,U),le(ui,z),le(bi,S),le(mi,y),le(gi,E),le(Ir,w),le(Vn,m),le(hi,$),Q(G))if(G.length){const ae=e.exposed||(e.exposed={});G.forEach(pe=>{Object.defineProperty(ae,pe,{get:()=>s[pe],set:Ye=>s[pe]=Ye,enumerable:!0})})}else e.exposed||(e.exposed={});g&&e.render===ot&&(e.render=g),oe!=null&&(e.inheritAttrs=oe),O&&(e.components=O),T&&(e.directives=T),$&&Pr(e)}function ki(e,t,s=ot){Q(e)&&(e=kn(e));for(const n in e){const o=e[n];let l;fe(o)?"default"in o?l=Is(o.from||n,o.default,!0):l=Is(o.from||n):l=Is(o),Ae(l)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>l.value,set:i=>l.value=i}):t[n]=l}}function po(e,t,s){Ze(Q(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Nr(e,t,s,n){let o=n.includes(".")?$r(s,n):()=>s[n];if(_e(e)){const l=t[e];ee(l)&&ln(o,l)}else if(ee(e))ln(o,e.bind(s));else if(fe(e))if(Q(e))e.forEach(l=>Nr(l,t,s,n));else{const l=ee(e.handler)?e.handler.bind(s):t[e.handler];ee(l)&&ln(o,l,e)}}function Rr(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:o,optionsCache:l,config:{optionMergeStrategies:i}}=e.appContext,a=l.get(t);let c;return a?c=a:!o.length&&!s&&!n?c=t:(c={},o.length&&o.forEach(p=>Ds(c,p,i,!0)),Ds(c,t,i)),fe(t)&&l.set(t,c),c}function Ds(e,t,s,n=!1){const{mixins:o,extends:l}=t;l&&Ds(e,l,s,!0),o&&o.forEach(i=>Ds(e,i,s,!0));for(const i in t)if(!(n&&i==="expose")){const a=Ci[i]||s&&s[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Ci={data:vo,props:ho,emits:ho,methods:os,computed:os,beforeCreate:Ie,created:Ie,beforeMount:Ie,mounted:Ie,beforeUpdate:Ie,updated:Ie,beforeDestroy:Ie,beforeUnmount:Ie,destroyed:Ie,unmounted:Ie,activated:Ie,deactivated:Ie,errorCaptured:Ie,serverPrefetch:Ie,components:os,directives:os,watch:Si,provide:vo,inject:Ti};function vo(e,t){return t?e?function(){return $e(ee(e)?e.call(this,this):e,ee(t)?t.call(this,this):t)}:t:e}function Ti(e,t){return os(kn(e),kn(t))}function kn(e){if(Q(e)){const t={};for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Je(t)}Modifiers`]||e[`${jt(t)}Modifiers`];function Ii(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||he;let o=s;const l=t.startsWith("update:"),i=l&&Ei(n,t.slice(7));i&&(i.trim&&(o=s.map(u=>_e(u)?u.trim():u)),i.number&&(o=s.map(Fn)));let a,c=n[a=tn(t)]||n[a=tn(Je(t))];!c&&l&&(c=n[a=tn(jt(t))]),c&&Ze(c,e,6,o);const p=n[a+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Ze(p,e,6,o)}}const Fi=new WeakMap;function Mr(e,t,s=!1){const n=s?Fi:t.emitsCache,o=n.get(e);if(o!==void 0)return o;const l=e.emits;let i={},a=!1;if(!ee(e)){const c=p=>{const u=Mr(p,t,!0);u&&(a=!0,$e(i,u))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!l&&!a?(fe(e)&&n.set(e,null),null):(Q(l)?l.forEach(c=>i[c]=null):$e(i,l),fe(e)&&n.set(e,i),i)}function Xs(e,t){return!e||!Vs(t)?!1:(t=t.slice(2).replace(/Once$/,""),de(e,t[0].toLowerCase()+t.slice(1))||de(e,jt(t))||de(e,t))}function go(e){const{type:t,vnode:s,proxy:n,withProxy:o,propsOptions:[l],slots:i,attrs:a,emit:c,render:p,renderCache:u,props:f,data:b,setupState:h,ctx:k,inheritAttrs:U}=e,z=Os(e);let j,w;try{if(s.shapeFlag&4){const m=o||n,g=m;j=nt(p.call(g,m,u,f,h,b,k)),w=a}else{const m=t;j=nt(m.length>1?m(f,{attrs:a,slots:i,emit:c}):m(f,null)),w=t.props?a:Ni(a)}}catch(m){ds.length=0,Js(m,e,1),j=Ce(Ne)}let C=j;if(w&&U!==!1){const m=Object.keys(w),{shapeFlag:g}=C;m.length&&g&7&&(l&&m.some(Pn)&&(w=Ri(w,l)),C=Tt(C,w,!1,!0))}return s.dirs&&(C=Tt(C,null,!1,!0),C.dirs=C.dirs?C.dirs.concat(s.dirs):s.dirs),s.transition&&hs(C,s.transition),j=C,Os(z),j}const Ni=e=>{let t;for(const s in e)(s==="class"||s==="style"||Vs(s))&&((t||(t={}))[s]=e[s]);return t},Ri=(e,t)=>{const s={};for(const n in e)(!Pn(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function Bi(e,t,s){const{props:n,children:o,component:l}=e,{props:i,children:a,patchFlag:c}=t,p=l.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?mo(n,i,p):!!i;if(c&8){const u=t.dynamicProps;for(let f=0;fObject.create(Hr),Ur=e=>Object.getPrototypeOf(e)===Hr;function Oi(e,t,s,n=!1){const o={},l=Dr();e.propsDefaults=Object.create(null),Lr(e,t,o,l);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);s?e.props=n?o:jl(o):e.type.props?e.props=o:e.props=l,e.attrs=l}function Hi(e,t,s,n){const{props:o,attrs:l,vnode:{patchFlag:i}}=e,a=ce(o),[c]=e.propsOptions;let p=!1;if((n||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let f=0;f{c=!0;const[b,h]=jr(f,t,!0);$e(i,b),h&&a.push(...h)};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!l&&!c)return fe(e)&&n.set(e,zt),zt;if(Q(l))for(let u=0;ue==="_"||e==="_ctx"||e==="$stable",Kn=e=>Q(e)?e.map(nt):[nt(e)],Ui=(e,t,s)=>{if(t._n)return t;const n=Es((...o)=>Kn(t(...o)),s);return n._c=!1,n},Vr=(e,t,s)=>{const n=e._ctx;for(const o in e){if(Wn(o))continue;const l=e[o];if(ee(l))t[o]=Ui(o,l,n);else if(l!=null){const i=Kn(l);t[o]=()=>i}}},Wr=(e,t)=>{const s=Kn(t);e.slots.default=()=>s},Kr=(e,t,s)=>{for(const n in t)(s||!Wn(n))&&(e[n]=t[n])},Li=(e,t,s)=>{const n=e.slots=Dr();if(e.vnode.shapeFlag&32){const o=t._;o?(Kr(n,t,s),s&&Yo(n,"_",o,!0)):Vr(t,n)}else t&&Wr(e,t)},ji=(e,t,s)=>{const{vnode:n,slots:o}=e;let l=!0,i=he;if(n.shapeFlag&32){const a=t._;a?s&&a===1?l=!1:Kr(o,t,s):(l=!t.$stable,Vr(t,o)),i=t}else t&&(Wr(e,t),i={default:1});if(l)for(const a in o)!Wn(a)&&i[a]==null&&delete o[a]},Me=qi;function Vi(e){return Wi(e)}function Wi(e,t){const s=Gs();s.__VUE__=!0;const{insert:n,remove:o,patchProp:l,createElement:i,createText:a,createComment:c,setText:p,setElementText:u,parentNode:f,nextSibling:b,setScopeId:h=ot,insertStaticContent:k}=e,U=(d,v,x,R=null,A=null,F=null,W=void 0,V=null,L=!!v.dynamicChildren)=>{if(d===v)return;d&&!Dt(d,v)&&(R=wt(d),Re(d,A,F,!0),d=null),v.patchFlag===-2&&(L=!1,v.dynamicChildren=null);const{type:N,ref:Y,shapeFlag:K}=v;switch(N){case Qs:z(d,v,x,R);break;case Ne:j(d,v,x,R);break;case Fs:d==null&&w(v,x,R,W);break;case ye:O(d,v,x,R,A,F,W,V,L);break;default:K&1?g(d,v,x,R,A,F,W,V,L):K&6?T(d,v,x,R,A,F,W,V,L):(K&64||K&128)&&N.process(d,v,x,R,A,F,W,V,L,Pt)}Y!=null&&A?as(Y,d&&d.ref,F,v||d,!v):Y==null&&d&&d.ref!=null&&as(d.ref,null,F,d,!0)},z=(d,v,x,R)=>{if(d==null)n(v.el=a(v.children),x,R);else{const A=v.el=d.el;v.children!==d.children&&p(A,v.children)}},j=(d,v,x,R)=>{d==null?n(v.el=c(v.children||""),x,R):v.el=d.el},w=(d,v,x,R)=>{[d.el,d.anchor]=k(d.children,v,x,R,d.el,d.anchor)},C=({el:d,anchor:v},x,R)=>{let A;for(;d&&d!==v;)A=b(d),n(d,x,R),d=A;n(v,x,R)},m=({el:d,anchor:v})=>{let x;for(;d&&d!==v;)x=b(d),o(d),d=x;o(v)},g=(d,v,x,R,A,F,W,V,L)=>{if(v.type==="svg"?W="svg":v.type==="math"&&(W="mathml"),d==null)y(v,x,R,A,F,W,V,L);else{const N=d.el&&d.el._isVueCE?d.el:null;try{N&&N._beginPatch(),$(d,v,A,F,W,V,L)}finally{N&&N._endPatch()}}},y=(d,v,x,R,A,F,W,V)=>{let L,N;const{props:Y,shapeFlag:K,transition:q,dirs:J}=d;if(L=d.el=i(d.type,F,Y&&Y.is,Y),K&8?u(L,d.children):K&16&&S(d.children,L,null,R,A,un(d,F),W,V),J&&Nt(d,null,R,"created"),E(L,d,d.scopeId,W,R),Y){for(const ue in Y)ue!=="value"&&!rs(ue)&&l(L,ue,null,Y[ue],F,R);"value"in Y&&l(L,"value",null,Y.value,F),(N=Y.onVnodeBeforeMount)&&et(N,R,d)}J&&Nt(d,null,R,"beforeMount");const te=Ki(A,q);te&&q.beforeEnter(L),n(L,v,x),((N=Y&&Y.onVnodeMounted)||te||J)&&Me(()=>{N&&et(N,R,d),te&&q.enter(L),J&&Nt(d,null,R,"mounted")},A)},E=(d,v,x,R,A)=>{if(x&&h(d,x),R)for(let F=0;F{for(let N=L;N{const V=v.el=d.el;let{patchFlag:L,dynamicChildren:N,dirs:Y}=v;L|=d.patchFlag&16;const K=d.props||he,q=v.props||he;let J;if(x&&Rt(x,!1),(J=q.onVnodeBeforeUpdate)&&et(J,x,v,d),Y&&Nt(v,d,x,"beforeUpdate"),x&&Rt(x,!0),(K.innerHTML&&q.innerHTML==null||K.textContent&&q.textContent==null)&&u(V,""),N?G(d.dynamicChildren,N,V,x,R,un(v,A),F):W||pe(d,v,V,null,x,R,un(v,A),F,!1),L>0){if(L&16)oe(V,K,q,x,A);else if(L&2&&K.class!==q.class&&l(V,"class",null,q.class,A),L&4&&l(V,"style",K.style,q.style,A),L&8){const te=v.dynamicProps;for(let ue=0;ue{J&&et(J,x,v,d),Y&&Nt(v,d,x,"updated")},R)},G=(d,v,x,R,A,F,W)=>{for(let V=0;V{if(v!==x){if(v!==he)for(const F in v)!rs(F)&&!(F in x)&&l(d,F,v[F],null,A,R);for(const F in x){if(rs(F))continue;const W=x[F],V=v[F];W!==V&&F!=="value"&&l(d,F,V,W,A,R)}"value"in x&&l(d,"value",v.value,x.value,A)}},O=(d,v,x,R,A,F,W,V,L)=>{const N=v.el=d?d.el:a(""),Y=v.anchor=d?d.anchor:a("");let{patchFlag:K,dynamicChildren:q,slotScopeIds:J}=v;J&&(V=V?V.concat(J):J),d==null?(n(N,x,R),n(Y,x,R),S(v.children||[],x,Y,A,F,W,V,L)):K>0&&K&64&&q&&d.dynamicChildren&&d.dynamicChildren.length===q.length?(G(d.dynamicChildren,q,x,A,F,W,V),(v.key!=null||A&&v===A.subTree)&&Gr(d,v,!0)):pe(d,v,x,Y,A,F,W,V,L)},T=(d,v,x,R,A,F,W,V,L)=>{v.slotScopeIds=V,d==null?v.shapeFlag&512?A.ctx.activate(v,x,R,W,L):M(v,x,R,A,F,W,L):Z(d,v,L)},M=(d,v,x,R,A,F,W)=>{const V=d.component=ea(d,R,A);if(Ys(d)&&(V.ctx.renderer=Pt),ta(V,!1,W),V.asyncDep){if(A&&A.registerDep(V,le,W),!d.el){const L=V.subTree=Ce(Ne);j(null,L,v,x),d.placeholder=L.el}}else le(V,d,v,x,A,F,W)},Z=(d,v,x)=>{const R=v.component=d.component;if(Bi(d,v,x))if(R.asyncDep&&!R.asyncResolved){ae(R,v,x);return}else R.next=v,R.update();else v.el=d.el,R.vnode=v},le=(d,v,x,R,A,F,W)=>{const V=()=>{if(d.isMounted){let{next:K,bu:q,u:J,parent:te,vnode:ue}=d;{const Le=qr(d);if(Le){K&&(K.el=ue.el,ae(d,K,W)),Le.asyncDep.then(()=>{Me(()=>{d.isUnmounted||N()},A)});return}}let ie=K,xe;Rt(d,!1),K?(K.el=ue.el,ae(d,K,W)):K=ue,q&&As(q),(xe=K.props&&K.props.onVnodeBeforeUpdate)&&et(xe,te,K,ue),Rt(d,!0);const ke=go(d),We=d.subTree;d.subTree=ke,U(We,ke,f(We.el),wt(We),d,A,F),K.el=ke.el,ie===null&&Mi(d,ke.el),J&&Me(J,A),(xe=K.props&&K.props.onVnodeUpdated)&&Me(()=>et(xe,te,K,ue),A)}else{let K;const{el:q,props:J}=v,{bm:te,m:ue,parent:ie,root:xe,type:ke}=d,We=cs(v);Rt(d,!1),te&&As(te),!We&&(K=J&&J.onVnodeBeforeMount)&&et(K,ie,v),Rt(d,!0);{xe.ce&&xe.ce._hasShadowRoot()&&xe.ce._injectChildStyle(ke);const Le=d.subTree=go(d);U(null,Le,x,R,d,A,F),v.el=Le.el}if(ue&&Me(ue,A),!We&&(K=J&&J.onVnodeMounted)){const Le=v;Me(()=>et(K,ie,Le),A)}(v.shapeFlag&256||ie&&cs(ie.vnode)&&ie.vnode.shapeFlag&256)&&d.a&&Me(d.a,A),d.isMounted=!0,v=x=R=null}};d.scope.on();const L=d.effect=new Zo(V);d.scope.off();const N=d.update=L.run.bind(L),Y=d.job=L.runIfDirty.bind(L);Y.i=d,Y.id=d.uid,L.scheduler=()=>jn(Y),Rt(d,!0),N()},ae=(d,v,x)=>{v.component=d;const R=d.vnode.props;d.vnode=v,d.next=null,Hi(d,v.props,R,x),ji(d,v.children,x),gt(),lo(d),mt()},pe=(d,v,x,R,A,F,W,V,L=!1)=>{const N=d&&d.children,Y=d?d.shapeFlag:0,K=v.children,{patchFlag:q,shapeFlag:J}=v;if(q>0){if(q&128){_t(N,K,x,R,A,F,W,V,L);return}else if(q&256){Ye(N,K,x,R,A,F,W,V,L);return}}J&8?(Y&16&&me(N,A,F),K!==N&&u(x,K)):Y&16?J&16?_t(N,K,x,R,A,F,W,V,L):me(N,A,F,!0):(Y&8&&u(x,""),J&16&&S(K,x,R,A,F,W,V,L))},Ye=(d,v,x,R,A,F,W,V,L)=>{d=d||zt,v=v||zt;const N=d.length,Y=v.length,K=Math.min(N,Y);let q;for(q=0;qY?me(d,A,F,!0,!1,K):S(v,x,R,A,F,W,V,L,K)},_t=(d,v,x,R,A,F,W,V,L)=>{let N=0;const Y=v.length;let K=d.length-1,q=Y-1;for(;N<=K&&N<=q;){const J=d[N],te=v[N]=L?ft(v[N]):nt(v[N]);if(Dt(J,te))U(J,te,x,null,A,F,W,V,L);else break;N++}for(;N<=K&&N<=q;){const J=d[K],te=v[q]=L?ft(v[q]):nt(v[q]);if(Dt(J,te))U(J,te,x,null,A,F,W,V,L);else break;K--,q--}if(N>K){if(N<=q){const J=q+1,te=Jq)for(;N<=K;)Re(d[N],A,F,!0),N++;else{const J=N,te=N,ue=new Map;for(N=te;N<=q;N++){const Pe=v[N]=L?ft(v[N]):nt(v[N]);Pe.key!=null&&ue.set(Pe.key,N)}let ie,xe=0;const ke=q-te+1;let We=!1,Le=0;const Et=new Array(ke);for(N=0;N=ke){Re(Pe,A,F,!0);continue}let Ke;if(Pe.key!=null)Ke=ue.get(Pe.key);else for(ie=te;ie<=q;ie++)if(Et[ie-te]===0&&Dt(Pe,v[ie])){Ke=ie;break}Ke===void 0?Re(Pe,A,F,!0):(Et[Ke-te]=N+1,Ke>=Le?Le=Ke:We=!0,U(Pe,v[Ke],x,null,A,F,W,V,L),xe++)}const $s=We?Gi(Et):zt;for(ie=$s.length-1,N=ke-1;N>=0;N--){const Pe=te+N,Ke=v[Pe],It=v[Pe+1],xs=Pe+1{const{el:F,type:W,transition:V,children:L,shapeFlag:N}=d;if(N&6){ze(d.component.subTree,v,x,R);return}if(N&128){d.suspense.move(v,x,R);return}if(N&64){W.move(d,v,x,Pt);return}if(W===ye){n(F,v,x);for(let K=0;KV.enter(F),A);else{const{leave:K,delayLeave:q,afterLeave:J}=V,te=()=>{d.ctx.isUnmounted?o(F):n(F,v,x)},ue=()=>{F._isLeaving&&F[st](!0),K(F,()=>{te(),J&&J()})};q?q(F,te,ue):ue()}else n(F,v,x)},Re=(d,v,x,R=!1,A=!1)=>{const{type:F,props:W,ref:V,children:L,dynamicChildren:N,shapeFlag:Y,patchFlag:K,dirs:q,cacheIndex:J}=d;if(K===-2&&(A=!1),V!=null&&(gt(),as(V,null,x,d,!0),mt()),J!=null&&(v.renderCache[J]=void 0),Y&256){v.ctx.deactivate(d);return}const te=Y&1&&q,ue=!cs(d);let ie;if(ue&&(ie=W&&W.onVnodeBeforeUnmount)&&et(ie,v,d),Y&6)en(d.component,x,R);else{if(Y&128){d.suspense.unmount(x,R);return}te&&Nt(d,null,v,"beforeUnmount"),Y&64?d.type.remove(d,v,x,Pt,R):N&&!N.hasOnce&&(F!==ye||K>0&&K&64)?me(N,v,x,!1,!0):(F===ye&&K&384||!A&&Y&16)&&me(L,v,x),R&&St(d)}(ue&&(ie=W&&W.onVnodeUnmounted)||te)&&Me(()=>{ie&&et(ie,v,d),te&&Nt(d,null,v,"unmounted")},x)},St=d=>{const{type:v,el:x,anchor:R,transition:A}=d;if(v===ye){lt(x,R);return}if(v===Fs){m(d);return}const F=()=>{o(x),A&&!A.persisted&&A.afterLeave&&A.afterLeave()};if(d.shapeFlag&1&&A&&!A.persisted){const{leave:W,delayLeave:V}=A,L=()=>W(x,F);V?V(d.el,F,L):L()}else F()},lt=(d,v)=>{let x;for(;d!==v;)x=b(d),o(d),d=x;o(v)},en=(d,v,x)=>{const{bum:R,scope:A,job:F,subTree:W,um:V,m:L,a:N}=d;yo(L),yo(N),R&&As(R),A.stop(),F&&(F.flags|=8,Re(W,d,v,x)),V&&Me(V,v),Me(()=>{d.isUnmounted=!0},v)},me=(d,v,x,R=!1,A=!1,F=0)=>{for(let W=F;W{if(d.shapeFlag&6)return wt(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const v=b(d.anchor||d.el),x=v&&v[oi];return x?b(x):v};let At=!1;const Vt=(d,v,x)=>{let R;d==null?v._vnode&&(Re(v._vnode,null,null,!0),R=v._vnode.component):U(v._vnode||null,d,v,null,null,null,x),v._vnode=d,At||(At=!0,lo(R),br(),At=!1)},Pt={p:U,um:Re,m:ze,r:St,mt:M,mc:S,pc:pe,pbc:G,n:wt,o:e};return{render:Vt,hydrate:void 0,createApp:Pi(Vt)}}function un({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Rt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ki(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Gr(e,t,s=!1){const n=e.children,o=t.children;if(Q(n)&&Q(o))for(let l=0;l>1,e[s[a]]0&&(t[n]=s[l-1]),s[l]=n)}}for(l=s.length,i=s[l-1];l-- >0;)s[l]=i,i=t[i];return s}function qr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:qr(t)}function yo(e){if(e)for(let t=0;te.__isSuspense;function qi(e,t){t&&t.pendingBranch?Q(e)?t.effects.push(...e):t.effects.push(e):Zl(e)}const ye=Symbol.for("v-fgt"),Qs=Symbol.for("v-txt"),Ne=Symbol.for("v-cmt"),Fs=Symbol.for("v-stc"),ds=[];let Ve=null;function P(e=!1){ds.push(Ve=e?null:[])}function Ji(){ds.pop(),Ve=ds[ds.length-1]||null}let gs=1;function Us(e,t=!1){gs+=e,e<0&&Ve&&t&&(Ve.hasOnce=!0)}function zr(e){return e.dynamicChildren=gs>0?Ve||zt:null,Ji(),gs>0&&Ve&&Ve.push(e),e}function B(e,t,s,n,o,l){return zr(r(e,t,s,n,o,l,!0))}function Ht(e,t,s,n,o){return zr(Ce(e,t,s,n,o,!0))}function Ls(e){return e?e.__v_isVNode===!0:!1}function Dt(e,t){return e.type===t.type&&e.key===t.key}const Xr=({key:e})=>e??null,Ns=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?_e(e)||Ae(e)||ee(e)?{i:je,r:e,k:t,f:!!s}:e:null);function r(e,t=null,s=null,n=0,o=null,l=e===ye?0:1,i=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Xr(t),ref:t&&Ns(t),scopeId:_r,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:je};return a?(Gn(c,s),l&128&&e.normalize(c)):s&&(c.shapeFlag|=_e(s)?8:16),gs>0&&!i&&Ve&&(c.patchFlag>0||l&6)&&c.patchFlag!==32&&Ve.push(c),c}const Ce=Yi;function Yi(e,t=null,s=null,n=0,o=null,l=!1){if((!e||e===Fr)&&(e=Ne),Ls(e)){const a=Tt(e,t,!0);return s&&Gn(a,s),gs>0&&!l&&Ve&&(a.shapeFlag&6?Ve[Ve.indexOf(e)]=a:Ve.push(a)),a.patchFlag=-2,a}if(la(e)&&(e=e.__vccOpts),t){t=zi(t);let{class:a,style:c}=t;a&&!_e(a)&&(t.class=ve(a)),fe(c)&&(Ln(c)&&!Q(c)&&(c=$e({},c)),t.style=re(c))}const i=_e(e)?1:Yr(e)?128:xr(e)?64:fe(e)?4:ee(e)?2:0;return r(e,t,s,n,o,i,l,!0)}function zi(e){return e?Ln(e)||Ur(e)?$e({},e):e:null}function Tt(e,t,s=!1,n=!1){const{props:o,ref:l,patchFlag:i,children:a,transition:c}=e,p=t?Xi(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&Xr(p),ref:t&&t.ref?s&&l?Q(l)?l.concat(Ns(t)):[l,Ns(t)]:Ns(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ye?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Tt(e.ssContent),ssFallback:e.ssFallback&&Tt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&hs(u,c.clone(u)),u}function Qr(e=" ",t=0){return Ce(Qs,null,e,t)}function Jt(e,t){const s=Ce(Fs,null,e);return s.staticCount=t,s}function se(e="",t=!1){return t?(P(),Ht(Ne,null,e)):Ce(Ne,null,e)}function nt(e){return e==null||typeof e=="boolean"?Ce(Ne):Q(e)?Ce(ye,null,e.slice()):Ls(e)?ft(e):Ce(Qs,null,String(e))}function ft(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Tt(e)}function Gn(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(Q(t))s=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),Gn(e,o()),o._c&&(o._d=!0));return}else{s=32;const o=t._;!o&&!Ur(t)?t._ctx=je:o===3&&je&&(je.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ee(t)?(t={default:t,_ctx:je},s=32):(t=String(t),n&64?(s=16,t=[Qr(t)]):s=8);e.children=t,e.shapeFlag|=s}function Xi(...e){const t={};for(let s=0;sSe||je;let js,Tn;{const e=Gs(),t=(s,n)=>{let o;return(o=e[s])||(o=e[s]=[]),o.push(n),l=>{o.length>1?o.forEach(i=>i(l)):o[0](l)}};js=t("__VUE_INSTANCE_SETTERS__",s=>Se=s),Tn=t("__VUE_SSR_SETTERS__",s=>ms=s)}const ws=e=>{const t=Se;return js(e),e.scope.on(),()=>{e.scope.off(),js(t)}},_o=()=>{Se&&Se.scope.off(),js(null)};function el(e){return e.vnode.shapeFlag&4}let ms=!1;function ta(e,t=!1,s=!1){t&&Tn(t);const{props:n,children:o}=e.vnode,l=el(e);Oi(e,n,l,t),Li(e,o,s||t);const i=l?sa(e,t):void 0;return t&&Tn(!1),i}function sa(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,$i);const{setup:n}=s;if(n){gt();const o=e.setupContext=n.length>1?oa(e):null,l=ws(e),i=_s(n,e,0,[e.props,o]),a=Go(i);if(mt(),l(),(a||e.sp)&&!cs(e)&&Pr(e),a){if(i.then(_o,_o),t)return i.then(c=>{wo(e,c)}).catch(c=>{Js(c,e,0)});e.asyncDep=i}else wo(e,i)}else tl(e)}function wo(e,t,s){ee(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:fe(t)&&(e.setupState=vr(t)),tl(e)}function tl(e,t,s){const n=e.type;e.render||(e.render=n.render||ot);{const o=ws(e);gt();try{xi(e)}finally{mt(),o()}}}const na={get(e,t){return Te(e,"get",""),e[t]}};function oa(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,na),slots:e.slots,emit:e.emit,expose:t}}function Zs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(vr(Vl(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in us)return us[s](e)},has(t,s){return s in t||s in us}})):e.proxy}function ra(e,t=!0){return ee(e)?e.displayName||e.name:e.name||t&&e.__name}function la(e){return ee(e)&&"__vccOpts"in e}const X=(e,t)=>Jl(e,t,ms);function ia(e,t,s){try{Us(-1);const n=arguments.length;return n===2?fe(t)&&!Q(t)?Ls(t)?Ce(e,null,[t]):Ce(e,t):Ce(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&Ls(s)&&(s=[s]),Ce(e,t,s))}finally{Us(1)}}const aa="3.5.29";/** * @vue/runtime-dom v3.5.29 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Sn;const $o=typeof window<"u"&&window.trustedTypes;if($o)try{Sn=$o.createPolicy("vue",{createHTML:e=>e})}catch{}const sl=Sn?e=>Sn.createHTML(e):e=>e,ca="http://www.w3.org/2000/svg",ua="http://www.w3.org/1998/Math/MathML",dt=typeof document<"u"?document:null,xo=dt&&dt.createElement("template"),da={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const o=t==="svg"?dt.createElementNS(ca,e):t==="mathml"?dt.createElementNS(ua,e):s?dt.createElement(e,{is:s}):dt.createElement(e);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>dt.createTextNode(e),createComment:e=>dt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>dt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,o,l){const i=s?s.previousSibling:t.lastChild;if(o&&(o===l||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),s),!(o===l||!(o=o.nextSibling)););else{xo.innerHTML=sl(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const a=xo.content;if(n==="svg"||n==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,s)}return[i?i.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},$t="transition",ns="animation",bs=Symbol("_vtc"),nl={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},fa=$e({},kr,nl),pa=e=>(e.displayName="Transition",e.props=fa,e),dn=pa((e,{slots:t})=>ia(ii,va(e),t)),Bt=(e,t=[])=>{Q(e)?e.forEach(s=>s(...t)):e&&e(...t)},ko=e=>e?Q(e)?e.some(t=>t.length>1):e.length>1:!1;function va(e){const t={};for(const O in e)O in nl||(t[O]=e[O]);if(e.css===!1)return t;const{name:s="v",type:n,duration:o,enterFromClass:l=`${s}-enter-from`,enterActiveClass:i=`${s}-enter-active`,enterToClass:a=`${s}-enter-to`,appearFromClass:c=l,appearActiveClass:p=i,appearToClass:u=a,leaveFromClass:f=`${s}-leave-from`,leaveActiveClass:b=`${s}-leave-active`,leaveToClass:h=`${s}-leave-to`}=e,k=ha(o),U=k&&k[0],z=k&&k[1],{onBeforeEnter:j,onEnter:w,onEnterCancelled:C,onLeave:m,onLeaveCancelled:g,onBeforeAppear:y=j,onAppear:E=w,onAppearCancelled:S=C}=t,$=(O,T,M,Z)=>{O._enterCancelled=Z,Mt(O,T?u:a),Mt(O,T?p:i),M&&M()},G=(O,T)=>{O._isLeaving=!1,Mt(O,f),Mt(O,h),Mt(O,b),T&&T()},oe=O=>(T,M)=>{const Z=O?E:w,le=()=>$(T,O,M);Bt(Z,[T,le]),Co(()=>{Mt(T,O?c:l),ut(T,O?u:a),ko(Z)||To(T,n,U,le)})};return $e(t,{onBeforeEnter(O){Bt(j,[O]),ut(O,l),ut(O,i)},onBeforeAppear(O){Bt(y,[O]),ut(O,c),ut(O,p)},onEnter:oe(!1),onAppear:oe(!0),onLeave(O,T){O._isLeaving=!0;const M=()=>G(O,T);ut(O,f),O._enterCancelled?(ut(O,b),Po(O)):(Po(O),ut(O,b)),Co(()=>{O._isLeaving&&(Mt(O,f),ut(O,h),ko(m)||To(O,n,z,M))}),Bt(m,[O,M])},onEnterCancelled(O){$(O,!1,void 0,!0),Bt(C,[O])},onAppearCancelled(O){$(O,!0,void 0,!0),Bt(S,[O])},onLeaveCancelled(O){G(O),Bt(g,[O])}})}function ha(e){if(e==null)return null;if(fe(e))return[fn(e.enter),fn(e.leave)];{const t=fn(e);return[t,t]}}function fn(e){return vl(e)}function ut(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.add(s)),(e[bs]||(e[bs]=new Set)).add(t)}function Mt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const s=e[bs];s&&(s.delete(t),s.size||(e[bs]=void 0))}function Co(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let ga=0;function To(e,t,s,n){const o=e._endId=++ga,l=()=>{o===e._endId&&n()};if(s!=null)return setTimeout(l,s);const{type:i,timeout:a,propCount:c}=ma(e,t);if(!i)return n();const p=i+"end";let u=0;const f=()=>{e.removeEventListener(p,b),l()},b=h=>{h.target===e&&++u>=c&&f()};setTimeout(()=>{u(s[k]||"").split(", "),o=n(`${$t}Delay`),l=n(`${$t}Duration`),i=So(o,l),a=n(`${ns}Delay`),c=n(`${ns}Duration`),p=So(a,c);let u=null,f=0,b=0;t===$t?i>0&&(u=$t,f=i,b=l.length):t===ns?p>0&&(u=ns,f=p,b=c.length):(f=Math.max(i,p),u=f>0?i>p?$t:ns:null,b=u?u===$t?l.length:c.length:0);const h=u===$t&&/\b(?:transform|all)(?:,|$)/.test(n(`${$t}Property`).toString());return{type:u,timeout:f,propCount:b,hasTransform:h}}function So(e,t){for(;e.lengthAo(s)+Ao(e[n])))}function Ao(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Po(e){return(e?e.ownerDocument:document).body.offsetHeight}function ba(e,t,s){const n=e[bs];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Eo=Symbol("_vod"),ya=Symbol("_vsh"),_a=Symbol(""),wa=/(?:^|;)\s*display\s*:/;function $a(e,t,s){const n=e.style,o=_e(s);let l=!1;if(s&&!o){if(t)if(_e(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();s[a]==null&&Rs(n,a,"")}else for(const i in t)s[i]==null&&Rs(n,i,"");for(const i in s)i==="display"&&(l=!0),Rs(n,i,s[i])}else if(o){if(t!==s){const i=n[_a];i&&(s+=";"+i),n.cssText=s,l=wa.test(s)}}else t&&e.removeAttribute("style");Eo in e&&(e[Eo]=l?n.display:"",e[ya]&&(n.display="none"))}const Io=/\s*!important$/;function Rs(e,t,s){if(Q(s))s.forEach(n=>Rs(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=xa(e,t);Io.test(s)?e.setProperty(jt(n),s.replace(Io,""),"important"):e[n]=s}}const Fo=["Webkit","Moz","ms"],pn={};function xa(e,t){const s=pn[t];if(s)return s;let n=Je(t);if(n!=="filter"&&n in e)return pn[t]=n;n=Ks(n);for(let o=0;ovn||(Sa.then(()=>vn=0),vn=Date.now());function Pa(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;Ze(Ea(n,s.value),t,5,[n])};return s.value=e,s.attached=Aa(),s}function Ea(e,t){if(Q(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>o=>!o._stopped&&n&&n(o))}else return t}const Ho=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ia=(e,t,s,n,o,l)=>{const i=o==="svg";t==="class"?ba(e,n,i):t==="style"?$a(e,s,n):Vs(t)?Pn(t)||Ca(e,t,s,n,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Fa(e,t,n,i))?(Bo(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ro(e,t,n,i,l,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!_e(n))?Bo(e,Je(t),n,l,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Ro(e,t,n,i))};function Fa(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ho(t)&&ee(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Ho(t)&&_e(s)?!1:t in e}const Do=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Q(t)?s=>As(t,s):t};function Na(e){e.target.composing=!0}function Uo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const hn=Symbol("_assign");function Lo(e,t,s){return t&&(e=e.trim()),s&&(e=Fn(e)),e}const Yt={created(e,{modifiers:{lazy:t,trim:s,number:n}},o){e[hn]=Do(o);const l=n||o.props&&o.props.type==="number";Gt(e,t?"change":"input",i=>{i.target.composing||e[hn](Lo(e.value,s,l))}),(s||l)&&Gt(e,"change",()=>{e.value=Lo(e.value,s,l)}),t||(Gt(e,"compositionstart",Na),Gt(e,"compositionend",Uo),Gt(e,"change",Uo))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:o,number:l}},i){if(e[hn]=Do(i),e.composing)return;const a=(l||e.type==="number")&&!/^0\d/.test(e.value)?Fn(e.value):e.value,c=t??"";a!==c&&(document.activeElement===e&&e.type!=="range"&&(n&&t===s||o&&e.value.trim()===c)||(e.value=c))}},Ra=["ctrl","shift","alt","meta"],Ba={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Ra.some(s=>e[`${s}Key`]&&!t.includes(s))},ht=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=(o,...l)=>{for(let i=0;i{const t=Oa().createApp(...e),{mount:s}=t;return t.mount=n=>{const o=Ua(n);if(!o)return;const l=t._component;!ee(l)&&!l.render&&!l.template&&(l.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=s(o,!1,Da(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};function Da(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ua(e){return _e(e)?document.querySelector(e):e}const ol="/logo3.png",qn="/USDT.png",La="/%E5%85%85%E5%80%BC.webp",ja="/recharge.77f88fba.png",Va="/shouru.c9225545.png",Wa="/inviteFriends.78ba91c4.png",Ka="/renwu.08955b7b.png",rl="/PGSOFT_Logo.png",Ga="/logo.png",qa="/logo2.png",Ue=(e,t)=>{const s=e.__vccOpts||e;for(const[n,o]of t)s[n]=o;return s},Ja={class:"search-input-wrapper"},Ya={class:"sidebar"},za={key:0,class:"games-grid"},Xa=["onClick"],Qa={class:"game-icon"},Za=["src","alt"],ec={key:1,class:"game-icon-placeholder"},tc={class:"game-name"},sc={key:1,class:"loading-more"},nc={key:2,class:"no-games"},oc={__name:"GamesPage",props:{isFullscreen:Boolean,apiUrl:String,playHaptic:Function},emits:["enter-game"],setup(e,{emit:t}){const s=e,n=I(""),o=I("all"),l=I([]),i=I([]),a=I(!1),c=I(!1),p=I(null),u=I(null),f=X(()=>s.isFullscreen?"90px":"0px"),b=X(()=>s.isFullscreen?"150px":"60px"),h=async(w="all")=>{if(!a.value){a.value=!0;try{const C=await fetch(`${s.apiUrl}/api/games?category=${w}`);if(!C.ok)throw new Error(`HTTP ${C.status}`);const m=await C.json();l.value=m.games||[],i.value=l.value,c.value=!1,console.log("✓ 游戏列表:",l.value.length),a.value=!1}catch(C){console.error("✗ 获取游戏列表失败:",C),a.value=!1}}},k=w=>{s.playHaptic&&s.playHaptic(),o.value=w,n.value="",i.value=[],h(w)},U=()=>{if(!n.value.trim()){i.value=l.value;return}const w=n.value.toLowerCase(),C=l.value.filter(m=>m.game_name.toLowerCase().includes(w));i.value=C},z=()=>{s.playHaptic&&s.playHaptic(),n.value="",U()},j=()=>{u.value&&u.value.blur()};return De(()=>{h("all")}),(w,C)=>(P(),B("div",{class:"games-page",onClick:j},[r("div",{class:"search-bar",style:re({top:f.value})},[r("div",Ja,[C[6]||(C[6]=r("svg",{class:"search-icon",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[r("circle",{cx:"11",cy:"11",r:"8"}),r("path",{d:"m21 21-4.35-4.35"})],-1)),qt(r("input",{ref_key:"searchInput",ref:u,type:"text",class:"search-input",placeholder:"搜索游戏...","onUpdate:modelValue":C[0]||(C[0]=m=>n.value=m),onInput:U,onClick:C[1]||(C[1]=ht(()=>{},["stop"]))},null,544),[[Yt,n.value]]),n.value?(P(),B("button",{key:0,class:"clear-btn",onClick:ht(z,["stop"])},[...C[5]||(C[5]=[r("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[r("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),r("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])):se("",!0)])],4),r("div",{class:"content-wrapper",style:re({top:b.value})},[r("div",Ya,[r("button",{class:ve(["sidebar-item",{active:o.value==="all"}]),onClick:C[2]||(C[2]=m=>k("all"))},[...C[7]||(C[7]=[Jt('全部',2)])],2),r("button",{class:ve(["sidebar-item",{active:o.value==="hot"}]),onClick:C[3]||(C[3]=m=>k("hot"))},[...C[8]||(C[8]=[r("svg",{class:"sidebar-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[r("path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z"})],-1),r("span",{class:"sidebar-label"},"热门",-1)])],2),r("button",{class:ve(["sidebar-item",{active:o.value==="pg"}]),onClick:C[4]||(C[4]=m=>k("pg"))},[...C[9]||(C[9]=[r("img",{src:rl,alt:"PG",class:"sidebar-icon-img"},null,-1),r("span",{class:"sidebar-label"},"PG电子",-1)])],2)]),r("div",{class:"games-area",ref_key:"gamesArea",ref:p},[i.value.length>0?(P(),B("div",za,[(P(!0),B(ye,null,He(i.value,m=>(P(),B("div",{class:"game-card",key:m.id,onClick:g=>w.$emit("enter-game",m)},[r("div",Qa,[m.icon_url?(P(),B("img",{key:0,src:m.icon_url,alt:m.game_name,loading:"lazy"},null,8,Za)):(P(),B("div",ec,[...C[10]||(C[10]=[r("svg",{width:"40",height:"40",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[r("rect",{x:"2",y:"7",width:"20",height:"15",rx:"2",ry:"2"}),r("polyline",{points:"17 2 12 7 7 2"})],-1)])]))]),r("div",tc,D(m.game_name),1)],8,Xa))),128))])):se("",!0),a.value?(P(),B("div",sc,[...C[11]||(C[11]=[r("div",{class:"loading-spinner"},null,-1),r("span",null,"加载中...",-1)])])):se("",!0),!a.value&&i.value.length===0?(P(),B("div",nc,[r("p",null,D(n.value?"未找到匹配的游戏":"暂无游戏"),1)])):se("",!0)],512)],4)]))}},rc=Ue(oc,[["__scopeId","data-v-f2dc7855"]]),ll="/%E4%BC%9A%E5%91%98%E5%8D%A1bg_VIP.49641959%20(1).png",lc="/bg_%E7%B4%AF%E8%AE%A1%E6%B5%81%E6%B0%B4.8c1162c4.png",ic="/bg_%E5%91%A8%E6%9C%89%E6%95%88%E6%8A%95%E6%B3%A8.3131cfbd.png",ac="/bg_%E5%91%A8%E7%A4%BC%E9%87%91.e0bac9f9.png",cc="/fs.png",uc={class:"vip-content"},dc={class:"vip-card"},fc={class:"user-info"},pc=["src"],vc={class:"user-details"},hc={class:"user-name"},gc={class:"user-id-row"},mc={class:"user-id"},bc={class:"vip-level-card"},yc=["src"],_c={class:"vip-info-overlay"},wc={class:"upgrade-hint"},$c={key:0},xc={key:1},kc={key:0,class:"progress-bar"},Cc={class:"stats-cards"},Tc={class:"stat-card"},Sc={class:"stat-content"},Ac={class:"stat-value"},Pc={class:"stat-card"},Ec={class:"stat-content"},Ic={class:"stat-value"},Fc={class:"stat-card"},Nc={class:"stat-content"},Rc={class:"stat-value"},Bc={class:"rebate-section"},Mc={class:"rebate-item"},Oc={class:"rebate-rate"},Hc={__name:"VipPage",props:{isFullscreen:Boolean,userAvatar:String,userName:String,userId:[String,Number],playHaptic:Function,totalBet:{type:Number,default:0},weeklyBet:{type:Number,default:0},dailyBet:{type:Number,default:0},rebateRate:{type:Number,default:0}},setup(e){const t=e,s=[0,1e3,5e3,1e4,5e4,1e5,5e5,1e6,5e6,1e7,5e7,1e8,5e8],n=X(()=>{for(let u=s.length-1;u>=0;u--)if(t.totalBet>=s[u])return u;return 0}),o=X(()=>`/vip${n.value}.webp`),l=X(()=>n.value>=12?0:s[n.value+1]-t.totalBet),i=X(()=>{if(n.value>=12)return 100;const u=s[n.value],f=s[n.value+1],b=t.totalBet-u,h=f-u;return Math.min(100,Math.max(0,b/h*100))}),a=X(()=>"0px"),c=u=>u.toLocaleString("zh-CN",{minimumFractionDigits:2,maximumFractionDigits:2}),p=async()=>{t.playHaptic&&t.playHaptic();try{await navigator.clipboard.writeText(String(t.userId)),console.log("✓ ID 已复制:",t.userId)}catch(u){console.error("✗ 复制失败:",u)}};return(u,f)=>(P(),B("div",{class:"vip-page",style:re({paddingTop:a.value})},[r("div",uc,[r("div",dc,[f[1]||(f[1]=r("img",{src:ll,alt:"VIP Card",class:"vip-card-bg"},null,-1)),r("div",fc,[r("img",{src:e.userAvatar,alt:"Avatar",class:"user-avatar"},null,8,pc),r("div",vc,[r("div",hc,D(e.userName),1),r("div",gc,[r("span",mc,"ID: "+D(e.userId),1),r("button",{class:"copy-btn",onClick:p},[...f[0]||(f[0]=[r("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[r("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),r("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})],-1)])])])])])]),r("div",bc,[r("img",{src:o.value,alt:"VIP Level",class:"vip-level-bg"},null,8,yc),r("div",_c,[r("div",wc,[n.value<12?(P(),B("span",$c," 还差 "+D(l.value)+" USDT 有效投注晋级 VIP"+D(n.value+1),1)):(P(),B("span",xc," 已达到最高等级 "))]),n.value<12?(P(),B("div",kc,[r("div",{class:"progress-fill",style:re({width:i.value+"%"})},null,4)])):se("",!0)])]),r("div",Cc,[r("div",Tc,[f[3]||(f[3]=r("img",{src:lc,alt:"累计流水",class:"stat-bg"},null,-1)),r("div",Sc,[f[2]||(f[2]=r("div",{class:"stat-label"},"累计流水",-1)),r("div",Ac,D(c(e.totalBet)),1)])]),r("div",Pc,[f[5]||(f[5]=r("img",{src:ic,alt:"周流水",class:"stat-bg"},null,-1)),r("div",Ec,[f[4]||(f[4]=r("div",{class:"stat-label"},"周流水",-1)),r("div",Ic,D(c(e.weeklyBet)),1)])]),r("div",Fc,[f[7]||(f[7]=r("img",{src:ac,alt:"今日流水",class:"stat-bg"},null,-1)),r("div",Nc,[f[6]||(f[6]=r("div",{class:"stat-label"},"今日流水",-1)),r("div",Rc,D(c(e.dailyBet)),1)])])]),r("div",Bc,[f[9]||(f[9]=r("div",{class:"rebate-header"},[r("img",{src:cc,alt:"反水",class:"rebate-icon"}),r("span",{class:"rebate-title"},"反水比例")],-1)),r("div",Mc,[f[8]||(f[8]=r("span",{class:"rebate-game"},"PG电子",-1)),r("span",Oc,D(e.rebateRate)+"%",1)])])])],4))}},Dc=Ue(Hc,[["__scopeId","data-v-b4ae268b"]]),Uc={class:"events-page"},Lc={key:0},jc=["onClick"],Vc=["src","alt"],Wc={key:0,class:"no-events"},Kc={key:1,class:"loading"},Gc={key:1,class:"event-detail-page"},qc=["src","alt"],Jc={class:"detail-info"},Yc={class:"detail-event-title"},zc={class:"detail-event-description"},Xc={key:0,class:"detail-event-time"},Qc={__name:"EventsPage",props:{isFullscreen:Boolean,apiUrl:String,playHaptic:Function},setup(e){const t=e,s=I([]),n=I(!1),o=I(null),l=X(()=>t.isFullscreen?"90px":"0px"),i=X(()=>t.isFullscreen?"150px":"60px"),a=X(()=>t.isFullscreen?"150px":"60px"),c=async()=>{n.value=!0;try{const b=await fetch(`${t.apiUrl}/api/events`);if(!b.ok)throw new Error(`HTTP ${b.status}`);const h=await b.json();s.value=h.events||[],console.log("✓ 活动列表:",s.value.length)}catch(b){console.error("✗ 获取活动列表失败:",b)}finally{n.value=!1}},p=b=>{t.playHaptic&&t.playHaptic(),o.value=b,console.log("打开活动详情:",b.title)},u=()=>{t.playHaptic&&t.playHaptic(),o.value=null},f=b=>b?new Date(b).toLocaleDateString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit"}):"";return De(()=>{c()}),(b,h)=>(P(),B("div",Uc,[o.value?(P(),B("div",Gc,[r("div",{class:"detail-header",style:re({top:l.value})},[r("button",{class:"back-btn",onClick:u},[...h[3]||(h[3]=[r("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[r("path",{d:"M19 12H5M12 19l-7-7 7-7"})],-1)])]),h[4]||(h[4]=r("span",{class:"detail-title"},"活动详情",-1)),h[5]||(h[5]=r("div",{class:"placeholder"},null,-1))],4),r("div",{class:"detail-content",style:re({top:a.value})},[o.value.image_url?(P(),B("img",{key:0,src:o.value.image_url,alt:o.value.title,class:"detail-image"},null,8,qc)):se("",!0),r("div",Jc,[r("h2",Yc,D(o.value.title),1),r("p",zc,D(o.value.description),1),o.value.start_time?(P(),B("div",Xc,[r("p",null,"活动时间:"+D(f(o.value.start_time))+" - "+D(f(o.value.end_time)),1)])):se("",!0)])],4)])):(P(),B("div",Lc,[r("div",{class:"events-header",style:re({top:l.value})},[...h[0]||(h[0]=[r("img",{src:ol,alt:"Logo",class:"events-logo"},null,-1)])],4),r("div",{class:"events-list",style:re({top:i.value})},[(P(!0),B(ye,null,He(s.value,k=>(P(),B("div",{class:"event-card",key:k.id,onClick:U=>p(k)},[k.image_url?(P(),B("img",{key:0,src:k.image_url,alt:k.title,class:"event-image"},null,8,Vc)):se("",!0)],8,jc))),128)),!n.value&&s.value.length===0?(P(),B("div",Wc,[...h[1]||(h[1]=[r("p",null,"暂无活动",-1)])])):se("",!0),n.value?(P(),B("div",Kc,[...h[2]||(h[2]=[r("div",{class:"loading-spinner"},null,-1),r("p",null,"加载中...",-1)])])):se("",!0)],4)]))]))}},Zc=Ue(Qc,[["__scopeId","data-v-71d85587"]]),eu="/bg_%E4%BC%9A%E5%91%98%E5%8D%A1.f005e065.png",Jn="/%E5%85%85%E6%8F%90%E8%AE%B0%E5%BD%95.b9d3732e.svg",tu="/%E8%BE%93%E8%B5%A2%E6%8A%A5%E8%A1%A8.73c97e35.svg",su="/%E6%8A%95%E6%B3%A8%E8%AE%B0%E5%BD%95.a90948d7.svg",nu="/%E4%BA%A4%E6%98%93%E8%AE%B0%E5%BD%95.a1aca7ef.svg",ou="/bg_%E6%8E%A8%E8%8D%90%E5%A5%BD%E5%8F%8B.bde1dfe9.png",ru={class:"profile-page"},lu={class:"user-info-overlay"},iu={class:"user-avatar"},au=["src"],cu={class:"user-details"},uu={class:"user-name"},du={class:"user-id-row"},fu={class:"user-id"},pu={class:"vip-card"},vu={class:"vip-card-wrapper"},hu={class:"vip-card-content"},gu={class:"vip-level-info"},mu={class:"vip-current"},bu={key:0,class:"vip-remaining"},yu={key:1,class:"vip-remaining"},_u={class:"vip-progress-container"},wu={class:"vip-progress-bar"},$u={key:0,class:"vip-next-level"},xu={class:"balance-section"},ku={class:"balance-display"},Cu={class:"balance-amount"},Tu={class:"operations-section"},Su={class:"records-section"},Au={class:"referral-section"},Pu={class:"referral-content"},Eu={class:"referral-title"},Iu={class:"referral-link-box"},Fu=["value"],Nu={__name:"ProfilePage",props:{userAvatar:String,userName:String,userId:[String,Number],playHaptic:Function,totalBet:Number,balance:String,commissionRate:Number,onNavigateToVip:Function,onNavigateToRecharge:Function,onNavigateToWithdraw:Function,onNavigateToTransferRecords:Function,onNavigateToWinlossReport:Function,onNavigateToBetReport:Function,onNavigateToTransactionReport:Function},setup(e){const t=e,s=X(()=>`https://t.me/SHYL8Bot?start=s_${t.userId}`),n=[0,1e3,5e3,1e4,5e4,1e5,5e5,1e6,5e6,1e7,5e7,1e8,5e8],o=X(()=>{for(let h=n.length-1;h>=0;h--)if(t.totalBet>=n[h])return h;return 0}),l=X(()=>o.value>=12?0:n[o.value+1]-t.totalBet),i=X(()=>{if(o.value>=12)return 100;const h=n[o.value],k=n[o.value+1],U=t.totalBet-h,z=k-h;return Math.min(100,Math.max(0,U/z*100))}),a=async()=>{var h;(h=t.playHaptic)==null||h.call(t);try{await navigator.clipboard.writeText(String(t.userId)),alert("ID已复制")}catch(k){console.error("复制失败:",k),alert("复制失败")}},c=()=>{var h,k;(h=t.playHaptic)==null||h.call(t),(k=t.onNavigateToVip)==null||k.call(t)},p=()=>{var h,k;(h=t.playHaptic)==null||h.call(t),(k=t.onNavigateToRecharge)==null||k.call(t)},u=()=>{var h,k;(h=t.playHaptic)==null||h.call(t),(k=t.onNavigateToWithdraw)==null||k.call(t)},f=h=>{var k,U,z,j,w;if((k=t.playHaptic)==null||k.call(t),h==="deposit"){(U=t.onNavigateToTransferRecords)==null||U.call(t);return}if(h==="winloss"){(z=t.onNavigateToWinlossReport)==null||z.call(t);return}if(h==="bet"){(j=t.onNavigateToBetReport)==null||j.call(t);return}if(h==="transaction"){(w=t.onNavigateToTransactionReport)==null||w.call(t);return}console.log("记录:",h)},b=async()=>{var h;(h=t.playHaptic)==null||h.call(t);try{await navigator.clipboard.writeText(s.value),alert("链接已复制")}catch(k){console.error("复制失败:",k),alert("复制失败")}};return(h,k)=>(P(),B("div",ru,[k[13]||(k[13]=r("div",{class:"vip-card-bg"},[r("img",{src:ll,alt:"VIP Card"})],-1)),r("div",lu,[r("div",iu,[r("img",{src:e.userAvatar||"/logo2.png",alt:"Avatar"},null,8,au)]),r("div",cu,[r("div",uu,D(e.userName),1),r("div",du,[r("span",fu,"ID: "+D(e.userId),1),r("button",{class:"copy-btn",onClick:a},[...k[4]||(k[4]=[r("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[r("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),r("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})],-1)])])])])]),r("div",pu,[r("div",vu,[k[6]||(k[6]=r("img",{src:eu,alt:"VIP Card",class:"vip-card-bg"},null,-1)),r("div",hu,[r("button",{class:"vip-detail-btn",onClick:c},[...k[5]||(k[5]=[Qr(" VIP详细 ",-1),r("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[r("polyline",{points:"9 18 15 12 9 6"})],-1)])]),r("div",gu,[r("div",mu,"VIP"+D(o.value),1),o.value<12?(P(),B("div",bu," 还差 "+D(l.value.toFixed(2))+" USDT 晋级 VIP"+D(o.value+1),1)):(P(),B("div",yu," 已达到最高等级 "))]),r("div",_u,[r("div",wu,[r("div",{class:"vip-progress-fill",style:re({width:i.value+"%"})},null,4)]),o.value<12?(P(),B("div",$u," VIP"+D(o.value+1),1)):se("",!0)])])])]),r("div",xu,[r("div",ku,[k[7]||(k[7]=r("div",{class:"balance-left"},[r("img",{src:qn,alt:"USDT",class:"balance-usdt-icon"}),r("span",{class:"balance-label"},"余额")],-1)),r("span",Cu,D(e.balance||"0.00"),1)])]),r("div",Tu,[r("div",{class:"action-buttons-section"},[r("button",{class:"recharge-btn",onClick:p},"充值"),r("button",{class:"withdraw-btn",onClick:u},"提现")]),r("div",Su,[r("button",{class:"record-btn",onClick:k[0]||(k[0]=U=>f("deposit"))},[...k[8]||(k[8]=[r("img",{src:Jn,alt:"充提记录",class:"record-icon-img"},null,-1),r("span",null,"充提记录",-1)])]),r("button",{class:"record-btn",onClick:k[1]||(k[1]=U=>f("winloss"))},[...k[9]||(k[9]=[r("img",{src:tu,alt:"输赢报表",class:"record-icon-img"},null,-1),r("span",null,"输赢报表",-1)])]),r("button",{class:"record-btn",onClick:k[2]||(k[2]=U=>f("bet"))},[...k[10]||(k[10]=[r("img",{src:su,alt:"投注记录",class:"record-icon-img"},null,-1),r("span",null,"投注记录",-1)])]),r("button",{class:"record-btn",onClick:k[3]||(k[3]=U=>f("transaction"))},[...k[11]||(k[11]=[r("img",{src:nu,alt:"交易记录",class:"record-icon-img"},null,-1),r("span",null,"交易记录",-1)])])])]),r("div",Au,[k[12]||(k[12]=r("img",{src:ou,alt:"推荐好友",class:"referral-bg"},null,-1)),r("div",Pu,[r("div",Eu,"邀请好友最高获得 "+D(e.commissionRate)+"% 的返佣",1),r("div",Iu,[r("input",{type:"text",value:s.value,readonly:"",class:"referral-link-input"},null,8,Fu),r("button",{class:"copy-link-btn",onClick:b}," 复制 ")])])])]))}},Ru=Ue(Nu,[["__scopeId","data-v-405e1ff0"]]),Bu="/%E5%85%85%E5%80%BCbg_%E5%8A%A0%E5%AF%86%E8%B4%A7%E5%B8%81.f005ddb6.png",Mu={class:"recharge-inner"},Ou={class:"channel-section"},Hu={class:"channel-list"},Du=["onClick"],Uu={class:"recharge-card"},Lu={class:"recharge-form"},ju={class:"amount-grid"},Vu=["onClick"],Wu={__name:"RechargePage",props:{playHaptic:Function,apiUrl:String,telegramId:[String,Number],isFullscreen:Boolean},emits:["close","open-transfer"],setup(e,{emit:t}){const s=e,n=t,o=I(""),l=I(null),i=[10,50,100,200,400,500,1e3,2e3,5e3],a=I([{key:"okpay",name:"OkPay",enabled:!0},{key:"kkpay",name:"KKPay",enabled:!0},{key:"usdt",name:"USDT充值",enabled:!0}]),c=I("usdt"),p=I(!1),u=X(()=>s.isFullscreen?"90px":"0px"),f=X(()=>s.isFullscreen?"150px":"60px"),b=()=>{var y;(y=s.playHaptic)==null||y.call(s),n("close")},h=()=>{var y;(y=s.playHaptic)==null||y.call(s),n("open-transfer")},k=y=>{var E;if((E=s.playHaptic)==null||E.call(s),y.enabled===!1){const S=y.closed_message||"该支付通道已关闭,请选择其他方式";alert(S);return}c.value=y.key},U=y=>{const E=document.activeElement;E&&(E.tagName==="INPUT"||E.tagName==="TEXTAREA")&&((y.composedPath?y.composedPath():[]).includes(E)||E.blur())},z=async()=>{if(s.apiUrl)try{const y=await fetch(`${s.apiUrl}/api/config/payment_channels`);if(!y.ok)return;const E=await y.json();if(!E.value)return;const S=JSON.parse(E.value);if(Array.isArray(S)&&S.length>0){a.value=S;const $=S.find(G=>G.enabled!==!1);c.value=$?$.key:null}}catch(y){console.error("加载支付通道配置失败:",y)}};De(()=>{z()});const j=async y=>{if(!s.apiUrl||!s.telegramId){alert("暂不支持该支付方式");return}if(!p.value){p.value=!0;try{const E=await fetch(`${s.apiUrl}/api/payment/okpay/create`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({telegram_id:s.telegramId,amount:y})}),S=await E.json();if(!E.ok||!S.pay_url){console.error("OkPay 创建支付链接失败:",S),alert(S.error||"创建支付链接失败,请稍后重试");return}window.location.href=S.pay_url}catch(E){console.error("OkPay 创建支付链接异常:",E),alert("创建支付链接失败,请稍后重试")}finally{p.value=!1}}},w=async y=>{if(!s.apiUrl||!s.telegramId){alert("暂不支持该支付方式");return}if(!p.value){p.value=!0;try{const E=await fetch(`${s.apiUrl}/api/payment/kkpay/create`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({telegram_id:s.telegramId,amount:y,return_url:window.location.href})}),S=await E.json();if(!E.ok||!S.pay_url){console.error("KkPay 创建支付链接失败:",S),alert(S.error||"创建支付链接失败,请稍后重试");return}window.location.href=S.pay_url}catch(E){console.error("KkPay 创建支付链接异常:",E),alert("创建支付链接失败,请稍后重试")}finally{p.value=!1}}},C=y=>{var E;(E=s.playHaptic)==null||E.call(s),l.value=y,o.value=String(y)},m=()=>{l.value=null},g=()=>{var E;(E=s.playHaptic)==null||E.call(s);const y=parseFloat(o.value);if(Number.isNaN(y)||y<=0){alert("请输入有效的充值金额");return}if(!c.value){alert("请选择支付方式");return}if(c.value==="okpay"){j(y);return}if(c.value==="kkpay"){w(y);return}console.log("确认支付金额:",y,"通道:",c.value),alert("该支付方式暂未开通,请选择 OkPay 或 KKPay")};return(y,E)=>(P(),B("div",{class:"recharge-page",onClick:U},[r("div",{class:"recharge-header",style:re({top:u.value})},[r("button",{class:"nav-btn back-btn",onClick:b},[...E[1]||(E[1]=[r("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[r("path",{d:"M19 12H5M12 19l-7-7 7-7"})],-1)])]),E[3]||(E[3]=r("span",{class:"recharge-title"},"充值",-1)),r("div",{class:"transfer-icon-wrapper",onClick:h},[...E[2]||(E[2]=[r("img",{src:Jn,alt:"充提",class:"transfer-icon-img"},null,-1)])])],4),r("div",{class:"recharge-content",style:re({top:f.value})},[r("div",Mu,[r("div",Ou,[E[4]||(E[4]=r("div",{class:"channel-label"},"支付方式",-1)),r("div",Hu,[(P(!0),B(ye,null,He(a.value,S=>(P(),B("button",{key:S.key,class:ve(["channel-btn",{active:c.value===S.key,disabled:S.enabled===!1}]),onClick:$=>k(S)},D(S.name||S.key),11,Du))),128))])]),r("div",Uu,[E[6]||(E[6]=r("img",{src:Bu,alt:"充值",class:"recharge-bg"},null,-1)),r("div",Lu,[qt(r("input",{"onUpdate:modelValue":E[0]||(E[0]=S=>o.value=S),type:"number",inputmode:"decimal",class:"amount-input",placeholder:"请输入金额",onInput:m},null,544),[[Yt,o.value]]),E[5]||(E[5]=r("div",{class:"recharge-subtitle"},"或者选择充值金额",-1)),r("div",ju,[(P(),B(ye,null,He(i,S=>r("button",{key:S,class:ve(["amount-btn",{active:l.value===S}]),onClick:$=>C(S)},D(S),11,Vu)),64))]),r("button",{class:"confirm-btn",onClick:g}," 确定支付 ")])])])],4)]))}},Ku=Ue(Wu,[["__scopeId","data-v-7f4f82fd"]]),Gu={class:"withdraw-inner"},qu={class:"channel-section"},Ju={class:"channel-list"},Yu=["onClick"],zu={class:"withdraw-card"},Xu={class:"balance-bar"},Qu={class:"balance-amount"},Zu={class:"withdraw-form"},ed={class:"tips"},td={key:0,class:"modal-mask"},sd={class:"modal-container"},nd={__name:"WithdrawPage",props:{playHaptic:Function,apiUrl:String,telegramId:[String,Number],balance:String,isFullscreen:Boolean},emits:["close"],setup(e,{emit:t}){const s=e,n=t,o=I(""),l=I(""),i=I([{key:"okpay",name:"OkPay",enabled:!0},{key:"kkpay",name:"KKPay",enabled:!0}]),a=I("okpay"),c=I(10),p=I(0),u=I(!1),f=I(!1),b=I(""),h=I(""),k=I(!1),U=X(()=>s.isFullscreen?"90px":"0px"),z=X(()=>s.isFullscreen?"150px":"60px"),j=()=>{var T;(T=s.playHaptic)==null||T.call(s),n("close")},w=()=>{var T;(T=s.playHaptic)==null||T.call(s)},C=T=>{var M;if((M=s.playHaptic)==null||M.call(s),T.enabled===!1){const Z=T.closed_message||"该提现方式已关闭,请选择其他方式";alert(Z);return}a.value=T.key},m=T=>{const M=document.activeElement;M&&(M.tagName==="INPUT"||M.tagName==="TEXTAREA")&&((T.composedPath?T.composedPath():[]).includes(M)||M.blur())},g=async()=>{if(s.apiUrl)try{const T=await fetch(`${s.apiUrl}/api/config/payment_channels`);if(!T.ok)return;const M=await T.json();if(!M.value)return;const Z=JSON.parse(M.value);if(Array.isArray(Z)&&Z.length>0){i.value=Z;const le=Z.find(ae=>ae.enabled!==!1);a.value=le?le.key:null}}catch(T){console.error("加载提现方式配置失败:",T)}},y=async()=>{if(s.apiUrl)try{const[T,M]=await Promise.all([fetch(`${s.apiUrl}/api/config/withdraw_min_amount`),fetch(`${s.apiUrl}/api/config/withdraw_fee`)]);if(T.ok){const Z=await T.json();c.value=parseFloat(Z.value)||10}if(M.ok){const Z=await M.json();p.value=parseFloat(Z.value)||0}}catch(T){console.error("加载提现配置失败:",T)}},E=async()=>{if(!(!s.apiUrl||!s.telegramId))try{const T=await fetch(`${s.apiUrl}/api/user/withdraw/status?telegram_id=${s.telegramId}`);if(!T.ok)return;const M=await T.json();u.value=!!M.has_password,u.value||S()}catch(T){console.error("加载提现密码状态失败:",T)}};De(()=>{g(),y(),E()});const S=()=>{f.value=!0,b.value="",h.value=""},$=()=>{f.value=!1},G=async()=>{if(!b.value||!h.value){alert("请输入并确认提现密码");return}if(b.value!==h.value){alert("两次输入的密码不一致");return}if(!s.apiUrl||!s.telegramId){alert("暂不支持设置提现密码");return}try{k.value=!0;const T=await fetch(`${s.apiUrl}/api/user/withdraw/set_password`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({telegram_id:s.telegramId,password:b.value})}),M=await T.json();if(!T.ok||!M.success){console.error("设置提现密码失败:",M),alert(M.error||"设置提现密码失败");return}u.value=!0,f.value=!1,alert("提现密码设置成功,请重新发起提现")}catch(T){console.error("设置提现密码异常:",T),alert("设置提现密码失败,请稍后重试")}finally{k.value=!1}},oe=async()=>{if(!s.apiUrl||!s.telegramId){alert("暂不支持提现");return}const T=parseFloat(o.value);if(Number.isNaN(T)||T<=0){alert("请输入有效的提现金额");return}if(T{var T;if((T=s.playHaptic)==null||T.call(s),!u.value){S();return}oe()};return(T,M)=>(P(),B("div",{class:"withdraw-page",onClick:m},[r("div",{class:"withdraw-header",style:re({top:U.value})},[r("button",{class:"nav-btn back-btn",onClick:j},[...M[4]||(M[4]=[r("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[r("path",{d:"M19 12H5M12 19l-7-7 7-7"})],-1)])]),M[6]||(M[6]=r("span",{class:"withdraw-title"},"提现",-1)),r("div",{class:"transfer-icon-wrapper",onClick:w},[...M[5]||(M[5]=[r("img",{src:Jn,alt:"充提记录",class:"transfer-icon-img"},null,-1)])])],4),r("div",{class:"withdraw-content",style:re({top:z.value})},[r("div",Gu,[r("div",qu,[M[7]||(M[7]=r("div",{class:"channel-label"},"提现方式",-1)),r("div",Ju,[(P(!0),B(ye,null,He(i.value,Z=>(P(),B("button",{key:Z.key,class:ve(["channel-btn",{active:a.value===Z.key,disabled:Z.enabled===!1}]),onClick:le=>C(Z)},D(Z.name||Z.key),11,Yu))),128))])]),r("div",zu,[r("div",Xu,[M[8]||(M[8]=r("div",{class:"balance-left"},[r("img",{src:qn,alt:"USDT",class:"balance-usdt-icon"}),r("span",{class:"balance-label"},"余额")],-1)),r("span",Qu,D(e.balance||"0.00"),1)]),r("div",Zu,[M[10]||(M[10]=r("div",{class:"withdraw-label"},"提现金额",-1)),qt(r("input",{"onUpdate:modelValue":M[0]||(M[0]=Z=>o.value=Z),type:"number",inputmode:"decimal",class:"amount-input",placeholder:"请输入提现金额"},null,512),[[Yt,o.value]]),M[11]||(M[11]=r("div",{class:"withdraw-label"},"提现密码",-1)),qt(r("input",{"onUpdate:modelValue":M[1]||(M[1]=Z=>l.value=Z),type:"password",class:"amount-input",placeholder:"请输入提现密码"},null,512),[[Yt,l.value]]),r("button",{class:"confirm-btn",onClick:O}," 确定提现 "),r("div",ed,[r("p",null,"最小提现金额为 "+D(c.value)+"U,单笔提现收取手续费 "+D(p.value)+"U",1),M[9]||(M[9]=r("p",null,"未完成消费流水为0时方可进行提现操作,否则需完成相应的游戏流水",-1))])])])])],4),f.value?(P(),B("div",td,[r("div",sd,[M[12]||(M[12]=r("h3",{class:"modal-title"},"设置提现密码",-1)),M[13]||(M[13]=r("p",{class:"modal-desc"},"首次提现需要先设置提现密码,请牢记。",-1)),qt(r("input",{"onUpdate:modelValue":M[2]||(M[2]=Z=>b.value=Z),type:"password",class:"modal-input",placeholder:"请输入提现密码"},null,512),[[Yt,b.value]]),qt(r("input",{"onUpdate:modelValue":M[3]||(M[3]=Z=>h.value=Z),type:"password",class:"modal-input",placeholder:"请再次输入提现密码"},null,512),[[Yt,h.value]]),r("div",{class:"modal-actions"},[r("button",{class:"modal-btn cancel",onClick:$}," 取消 "),r("button",{class:"modal-btn confirm",onClick:G}," 确定 ")])])])):se("",!0)]))}},od=Ue(nd,[["__scopeId","data-v-ec2bbc61"]]),rd={class:"rebate-inner"},ld={class:"rebate-card"},id={class:"rebate-main"},ad={class:"rebate-main-text"},cd={class:"rebate-sub"},ud={class:"rebate-amount"},dd={class:"rebate-stats-row"},fd={class:"rebate-stat-item"},pd={class:"stat-value"},vd={class:"rebate-stat-item"},hd={class:"stat-value"},gd={class:"rebate-settle-card"},md={class:"settle-header"},bd={class:"settle-grid"},yd={class:"settle-item"},_d={class:"settle-value"},wd={class:"settle-item"},$d={class:"settle-value"},xd={class:"settle-item"},kd={class:"settle-value"},Cd={__name:"RebatePage",props:{playHaptic:Function,apiUrl:String,telegramId:[String,Number],isFullscreen:Boolean,balance:String,totalBet:{type:Number,default:0},dailyBet:{type:Number,default:0},rebateRate:{type:Number,default:0}},emits:["close"],setup(e,{emit:t}){const s=e,n=t,o=X(()=>s.isFullscreen?"90px":"0px"),l=X(()=>s.isFullscreen?"150px":"60px"),i=O=>(Number(O)||0).toFixed(2),a=I(null),c=I(null),p=I(null),u=I(0),f=I(0),b=I("0.00"),h=I("0.00"),k=I(!1),U=I(!1),z=X(()=>a.value!=null?a.value:s.totalBet),j=X(()=>c.value!=null?c.value:s.dailyBet),w=X(()=>p.value!=null?p.value:s.rebateRate),C=X(()=>(w.value||0).toFixed(2)),m=X(()=>i(u.value)),g=X(()=>i(z.value)),y=X(()=>i(j.value)),E=()=>{var O;(O=s.playHaptic)==null||O.call(s),n("close")},S=async()=>{if(!(!s.apiUrl||!s.telegramId))try{k.value=!0;const O=await fetch(`${s.apiUrl}/api/vip/rebate/info?telegram_id=${encodeURIComponent(String(s.telegramId))}`);if(!O.ok){console.error("获取返水信息失败:",O.status);return}const T=await O.json();if(T.code!==200||!T.data){console.error("获取返水信息返回错误:",T);return}const M=T.data;a.value=Number(M.total_bet||0),c.value=Number(M.daily_bet||0),p.value=Number(M.rebate_rate||0),u.value=Number(M.rebate_pending||0),f.value=Number(M.today_rebate||0),b.value=i(M.yesterday_rebate||0),h.value=i(M.total_rebate||0)}catch(O){console.error("获取返水信息异常:",O)}finally{k.value=!1}},$=async()=>{var O,T;if((O=s.playHaptic)==null||O.call(s),!s.apiUrl||!s.telegramId){alert("暂不支持返水领取");return}if(u.value<=0){alert("当前暂无可领取的返水");return}if(!U.value){U.value=!0;try{const M=await fetch(`${s.apiUrl}/api/vip/rebate/claim`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({telegram_id:s.telegramId})}),Z=await M.json();if(!M.ok||Z.code!==200){alert(Z.msg||"领取失败,请稍后重试");return}const le=Number(((T=Z.data)==null?void 0:T.amount)||0);alert(`领取成功,获得返水 ${i(le)} USDT`),u.value=0,await S()}catch(M){console.error("领取返水异常:",M),alert("领取失败,请稍后重试")}finally{U.value=!1}}},G=()=>{var O;(O=s.playHaptic)==null||O.call(s),alert("领取记录列表后续接入")},oe=O=>{const T=document.activeElement;T&&(T.tagName==="INPUT"||T.tagName==="TEXTAREA")&&((O.composedPath?O.composedPath():[]).includes(T)||T.blur())};return De(()=>{S()}),(O,T)=>(P(),B("div",{class:"rebate-page",onClick:oe},[r("div",{class:"rebate-header",style:re({top:o.value})},[r("button",{class:"nav-btn back-btn",onClick:E},[...T[0]||(T[0]=[r("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[r("path",{d:"M19 12H5M12 19l-7-7 7-7"})],-1)])]),T[1]||(T[1]=r("span",{class:"rebate-title"},"返水",-1)),T[2]||(T[2]=r("div",{class:"right-placeholder"},null,-1))],4),r("div",{class:"rebate-content",style:re({top:l.value})},[r("div",rd,[r("div",ld,[r("div",id,[r("div",ad,[T[3]||(T[3]=r("div",{class:"rebate-label"},"可领返水",-1)),r("div",cd," 最高本人投注额 "+D(C.value)+"% > ",1),r("div",ud,D(m.value),1)]),r("button",{class:"rebate-claim-btn",onClick:ht($,["stop"])}," 领取 ")]),T[6]||(T[6]=r("div",{class:"rebate-divider"},null,-1)),r("div",dd,[r("div",fd,[T[4]||(T[4]=r("div",{class:"stat-label"},"总投注",-1)),r("div",pd,D(g.value),1)]),r("div",vd,[T[5]||(T[5]=r("div",{class:"stat-label"},"有效投注",-1)),r("div",hd,D(y.value),1)])])]),r("div",gd,[r("div",md,[T[7]||(T[7]=r("span",{class:"settle-title"},"返水结算",-1)),r("button",{class:"record-link-btn",onClick:ht(G,["stop"])}," 领取记录 > ")]),r("div",bd,[r("div",yd,[T[8]||(T[8]=r("div",{class:"settle-label"},"昨日返水",-1)),r("div",_d,D(b.value),1)]),r("div",wd,[T[9]||(T[9]=r("div",{class:"settle-label"},"今日预估返水",-1)),r("div",$d,D(m.value),1)]),r("div",xd,[T[10]||(T[10]=r("div",{class:"settle-label"},"历史总返水",-1)),r("div",kd,D(h.value),1)])])])])],4)]))}},Td=Ue(Cd,[["__scopeId","data-v-ff2959c1"]]),Sd={class:"referral-inner"},Ad={class:"referral-link-card"},Pd={class:"link-box"},Ed=["value"],Id={class:"referral-card"},Fd={class:"referral-main"},Nd={class:"referral-main-text"},Rd={class:"referral-sub"},Bd={class:"referral-amount"},Md={class:"referral-stats-row"},Od={class:"referral-stat-item"},Hd={class:"stat-value"},Dd={class:"referral-stat-item"},Ud={class:"stat-value"},Ld={class:"subordinates-section"},jd={key:0,class:"empty-subordinates"},Vd={key:1,class:"subordinates-list"},Wd=["onClick"],Kd={class:"subordinate-header"},Gd={class:"subordinate-info"},qd={class:"subordinate-name"},Jd={class:"subordinate-id"},Yd={class:"subordinate-arrow"},zd={key:0,class:"subordinate-details"},Xd={class:"detail-row"},Qd={class:"detail-value"},Zd={class:"detail-row"},ef={class:"detail-value"},tf={__name:"ReferralPage",props:{playHaptic:Function,apiUrl:String,telegramId:[String,Number],isFullscreen:Boolean,referralLink:String},emits:["close"],setup(e,{emit:t}){const s=e,n=t,o=X(()=>s.isFullscreen?"90px":"0px"),l=X(()=>s.isFullscreen?"150px":"60px"),i=I(0),a=I(0),c=I(.6),p=I("0.00"),u=I([]),f=I([]),b=I(null),h=X(()=>c.value.toFixed(1)),k=X(()=>y(a.value)),U=async()=>{try{const $=await(await fetch(`${s.apiUrl}/api/referral/info?telegram_id=${s.telegramId}`)).json();$.code===200&&$.data&&(i.value=$.data.invited_count||0,a.value=Number($.data.total_bet||0),c.value=Number($.data.commission_rate||.6),p.value=y($.data.claimable_commission||0))}catch(S){console.error("加载推广信息失败:",S)}},z=async()=>{try{const $=await(await fetch(`${s.apiUrl}/api/referral/subordinates?telegram_id=${s.telegramId}`)).json();$.code===200&&$.data&&(u.value=$.data.list||[])}catch(S){console.error("加载下级列表失败:",S)}},j=async()=>{var S,$;if((S=s.playHaptic)==null||S.call(s),!s.apiUrl||!s.telegramId){alert("暂不支持返佣领取");return}if(p.value==="0.00"||Number(p.value)<=0){alert("当前暂无可领取的返佣");return}try{const oe=await(await fetch(`${s.apiUrl}/api/referral/claim`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({telegram_id:s.telegramId})})).json();if(oe.code===200){const O=Number((($=oe.data)==null?void 0:$.amount)||0);alert(`领取成功,获得返佣 ${y(O)} USDT`),await U(),n("refreshBalance")}else alert(oe.msg||"领取失败,请稍后重试")}catch(G){console.error("领取返佣失败:",G),alert("领取失败,请稍后重试")}},w=async()=>{var S;(S=s.playHaptic)==null||S.call(s);try{b.value&&(b.value.select(),await navigator.clipboard.writeText(s.referralLink),alert("已复制到剪贴板"))}catch($){console.error("复制失败:",$),alert("复制失败")}},C=S=>{var G;(G=s.playHaptic)==null||G.call(s);const $=f.value.indexOf(S);$>-1?f.value.splice($,1):f.value.push(S)},m=()=>{var S;(S=s.playHaptic)==null||S.call(s),n("close")},g=S=>{const $=document.activeElement;$&&($.tagName==="INPUT"||$.tagName==="TEXTAREA")&&((S.composedPath?S.composedPath():[]).includes($)||$.blur())},y=S=>Number(S||0).toFixed(2),E=S=>{if(!S)return"-";try{const $=new Date(S),G=$.getFullYear(),oe=String($.getMonth()+1).padStart(2,"0"),O=String($.getDate()).padStart(2,"0");return`${G}-${oe}-${O}`}catch{return S}};return De(()=>{U(),z()}),(S,$)=>(P(),B("div",{class:"referral-page",onClick:g},[r("div",{class:"referral-header",style:re({top:o.value})},[r("button",{class:"nav-btn back-btn",onClick:m},[...$[0]||($[0]=[r("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[r("path",{d:"M19 12H5M12 19l-7-7 7-7"})],-1)])]),$[1]||($[1]=r("span",{class:"referral-title"},"推广",-1)),$[2]||($[2]=r("div",{class:"right-placeholder"},null,-1))],4),r("div",{class:"referral-content",style:re({top:l.value})},[r("div",Sd,[r("div",Ad,[$[3]||($[3]=r("div",{class:"link-label"},"邀请链接",-1)),r("div",Pd,[r("input",{type:"text",value:e.referralLink,readonly:"",class:"link-input",ref_key:"linkInputRef",ref:b},null,8,Ed),r("button",{class:"copy-link-btn",onClick:ht(w,["stop"])},"复制")])]),r("div",Id,[r("div",Fd,[r("div",Nd,[$[4]||($[4]=r("div",{class:"referral-label"},"可领返佣",-1)),r("div",Rd," 下级总流水 "+D(h.value)+"% > ",1),r("div",Bd,D(p.value),1)]),r("button",{class:"referral-claim-btn",onClick:ht(j,["stop"])}," 领取 ")]),$[7]||($[7]=r("div",{class:"referral-divider"},null,-1)),r("div",Md,[r("div",Od,[$[5]||($[5]=r("div",{class:"stat-label"},"邀请人数",-1)),r("div",Hd,D(i.value),1)]),r("div",Dd,[$[6]||($[6]=r("div",{class:"stat-label"},"下级总流水",-1)),r("div",Ud,D(k.value),1)])])]),r("div",Ld,[$[11]||($[11]=r("div",{class:"subordinates-title"},"下级列表",-1)),u.value.length===0?(P(),B("div",jd," 暂无下级 ")):(P(),B("div",Vd,[(P(!0),B(ye,null,He(u.value,G=>(P(),B("div",{key:G.telegram_id,class:"subordinate-item",onClick:ht(oe=>C(G.telegram_id),["stop"])},[r("div",Kd,[r("div",Gd,[r("div",qd,D(G.first_name||G.username||`用户${G.telegram_id}`),1),r("div",Jd,"ID: "+D(G.telegram_id),1)]),r("div",Yd,[(P(),B("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2",class:ve({expanded:f.value.includes(G.telegram_id)})},[...$[8]||($[8]=[r("path",{d:"M6 9l6 6 6-6"},null,-1)])],2))])]),f.value.includes(G.telegram_id)?(P(),B("div",zd,[r("div",Xd,[$[9]||($[9]=r("span",{class:"detail-label"},"投注流水:",-1)),r("span",Qd,D(y(G.total_bet)),1)]),r("div",Zd,[$[10]||($[10]=r("span",{class:"detail-label"},"邀请日期:",-1)),r("span",ef,D(E(G.invited_at)),1)])])):se("",!0)],8,Wd))),128))]))])])],4)]))}},sf=Ue(tf,[["__scopeId","data-v-aaabb260"]]),nf={class:"transfer-inner"},of={class:"tab-switch"},rf={class:"list-wrapper"},lf={key:0},af={key:0,class:"empty-tip"},cf={class:"record-main"},uf={class:"record-left"},df={class:"record-title"},ff={class:"record-sub"},pf={class:"record-right"},vf={class:"record-amount"},hf={key:1},gf={key:0,class:"empty-tip"},mf={class:"record-main"},bf={class:"record-left"},yf={class:"record-title"},_f={class:"record-sub"},wf={key:0,class:"record-remark"},$f={class:"record-right"},xf={class:"record-amount"},kf={__name:"TransferHistoryPage",props:{playHaptic:Function,apiUrl:String,telegramId:[String,Number],isFullscreen:Boolean},emits:["close"],setup(e,{emit:t}){const s=e,n=t,o=X(()=>s.isFullscreen?"90px":"0px"),l=X(()=>s.isFullscreen?"150px":"60px"),i=I("deposit"),a=I([]),c=I([]),p=I(!1),u=X(()=>({transform:`translateX(${(i.value==="deposit"?0:1)*100}%)`})),f=m=>(Number(m)||0).toFixed(2),b=m=>{if(!m)return"";const g=new Date(m),y=g.getFullYear(),E=String(g.getMonth()+1).padStart(2,"0"),S=String(g.getDate()).padStart(2,"0"),$=String(g.getHours()).padStart(2,"0"),G=String(g.getMinutes()).padStart(2,"0"),oe=String(g.getSeconds()).padStart(2,"0");return`${y}-${E}-${S} ${$}:${G}:${oe}`},h=m=>{const g=m.type||"";return g.includes("kkpay")?"KKPay 充值":g.includes("usdt")?"USDT 充值":"OkPay 充值"},k=m=>{const g=Number(m.status);return g===1?{value:"success",text:"成功"}:g===0?{value:"pending",text:"处理中"}:{value:"failed",text:"失败"}},U=m=>!m.method||m.method==="unknown"?"提现":m.method==="okpay"?"OkPay 提现":`${m.method} 提现`,z=m=>{const g=Number(m.status);return g===0?{value:"pending",text:"处理中"}:g===2?{value:"rejected",text:"已拒绝"}:g===1||g===3?{value:"success",text:"成功"}:{value:"failed",text:"失败"}},j=()=>{var m;(m=s.playHaptic)==null||m.call(s),n("close")},w=m=>{const g=document.activeElement;g&&(g.tagName==="INPUT"||g.tagName==="TEXTAREA")&&((m.composedPath?m.composedPath():[]).includes(g)||g.blur())},C=async()=>{if(!(!s.apiUrl||!s.telegramId))try{p.value=!0;const m=await fetch(`${s.apiUrl}/api/payment/history?telegram_id=${encodeURIComponent(String(s.telegramId))}`);if(!m.ok){console.error("获取充提记录失败:",m.status);return}const g=await m.json();if(g.code!==200||!g.data){console.error("获取充提记录返回错误:",g);return}a.value=Array.isArray(g.data.deposits)?g.data.deposits:[],c.value=Array.isArray(g.data.withdraws)?g.data.withdraws:[]}catch(m){console.error("获取充提记录异常:",m)}finally{p.value=!1}};return De(()=>{C()}),(m,g)=>(P(),B("div",{class:"transfer-page",onClick:w},[r("div",{class:"transfer-header",style:re({top:o.value})},[r("button",{class:"nav-btn back-btn",onClick:j},[...g[2]||(g[2]=[r("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[r("path",{d:"M19 12H5M12 19l-7-7 7-7"})],-1)])]),g[3]||(g[3]=r("span",{class:"transfer-title"},"充提记录",-1)),g[4]||(g[4]=r("div",{class:"right-placeholder"},null,-1))],4),r("div",{class:"transfer-content",style:re({top:l.value})},[r("div",nf,[r("div",of,[r("button",{class:ve(["tab-btn",{active:i.value==="deposit"}]),onClick:g[0]||(g[0]=y=>i.value="deposit")}," 充值记录 ",2),r("button",{class:ve(["tab-btn",{active:i.value==="withdraw"}]),onClick:g[1]||(g[1]=y=>i.value="withdraw")}," 提现记录 ",2),r("div",{class:"tab-underline",style:re(u.value)},null,4)]),r("div",rf,[i.value==="deposit"?(P(),B("div",lf,[a.value.length===0?(P(),B("div",af," 暂无充值记录 ")):se("",!0),(P(!0),B(ye,null,He(a.value,y=>(P(),B("div",{key:`dep-${y.id}`,class:"record-card"},[r("div",cf,[r("div",uf,[r("div",df,D(h(y)),1),r("div",ff,D(b(y.created_at)),1)]),r("div",pf,[r("div",vf,"+"+D(f(y.amount)),1),r("div",{class:ve(["record-status",`status-${k(y).value}`])},D(k(y).text),3)])])]))),128))])):(P(),B("div",hf,[c.value.length===0?(P(),B("div",gf," 暂无提现记录 ")):se("",!0),(P(!0),B(ye,null,He(c.value,y=>(P(),B("div",{key:`wd-${y.id}`,class:"record-card"},[r("div",mf,[r("div",bf,[r("div",yf,D(U(y)),1),r("div",_f,D(b(y.created_at)),1),z(y).value==="rejected"&&y.remark?(P(),B("div",wf," 拒绝原因:"+D(y.remark),1)):se("",!0)]),r("div",$f,[r("div",xf,"-"+D(f(y.amount)),1),r("div",{class:ve(["record-status",`status-${z(y).value}`])},D(z(y).text),3)])])]))),128))]))])])],4)]))}},Cf=Ue(kf,[["__scopeId","data-v-c82077e8"]]),Tf={class:"filter-wrapper"},Sf={key:0,class:"filter-dropdown"},Af=["onClick"],Pf={class:"winloss-inner"},Ef={class:"summary-card"},If={class:"summary-row"},Ff={class:"summary-item"},Nf={class:"summary-value"},Rf={class:"summary-item"},Bf={class:"summary-sub"},Mf={key:0,class:"empty-tip"},Of={class:"col-date"},Hf={class:"col-bet"},Df={class:"col-rebate"},Uf={__name:"WinlossReportPage",props:{playHaptic:Function,apiUrl:String,telegramId:[String,Number],isFullscreen:Boolean},emits:["close"],setup(e,{emit:t}){const s=e,n=t,o=X(()=>s.isFullscreen?"90px":"0px"),l=X(()=>s.isFullscreen?"150px":"60px"),i=I("today"),a=I(!1),c=I([]),p=I(0),u=I({total_count:0,total_win:0}),f=[{value:"today",label:"今天"},{value:"yesterday",label:"昨天"},{value:"7d",label:"7天"},{value:"30d",label:"30天"},{value:"all",label:"全部"}],b=X(()=>{const g=f.find(y=>y.value===i.value);return g?g.label:"今天"}),h=X(()=>p.value.toFixed(2)),k=g=>(Number(g)||0).toFixed(2),U=g=>{if(!g)return"";const y=new Date(g),E=y.getFullYear(),S=String(y.getMonth()+1).padStart(2,"0"),$=String(y.getDate()).padStart(2,"0");return`${E}-${S}-${$}`},z=()=>{var g;(g=s.playHaptic)==null||g.call(s),n("close")},j=()=>{a.value=!a.value},w=g=>{i.value=g,a.value=!1,m()},C=g=>{const y=document.activeElement;y&&((y.tagName==="INPUT"||y.tagName==="TEXTAREA")&&((g.composedPath?g.composedPath():[]).includes(y)||y.blur()),a.value&&((g.composedPath?g.composedPath():[]).some($=>($==null?void 0:$.classList)&&($.classList.contains("filter-wrapper")||$.classList.contains("filter-dropdown")))||(a.value=!1)))},m=async()=>{var g,y;if(!(!s.apiUrl||!s.telegramId))try{const E=`${s.apiUrl}/api/report/winloss?telegram_id=${encodeURIComponent(String(s.telegramId))}&range=${encodeURIComponent(i.value)}`,S=await fetch(E);if(!S.ok){console.error("获取输赢报表失败:",S.status);return}const $=await S.json();if($.code!==200||!$.data){console.error("获取输赢报表返回错误:",$);return}p.value=Number($.data.rebate_rate||0),u.value={total_count:Number(((g=$.data.summary)==null?void 0:g.total_count)||0),total_win:Number(((y=$.data.summary)==null?void 0:y.total_win)||0)},c.value=Array.isArray($.data.list)?$.data.list:[]}catch(E){console.error("获取输赢报表异常:",E)}};return De(()=>{m()}),(g,y)=>(P(),B("div",{class:"winloss-page",onClick:C},[r("div",{class:"winloss-header",style:re({top:o.value})},[r("button",{class:"nav-btn back-btn",onClick:z},[...y[0]||(y[0]=[r("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[r("path",{d:"M19 12H5M12 19l-7-7 7-7"})],-1)])]),y[2]||(y[2]=r("span",{class:"winloss-title"},"输赢报表",-1)),r("div",Tf,[r("button",{class:"filter-btn",onClick:ht(j,["stop"])},[r("span",null,D(b.value),1),y[1]||(y[1]=r("svg",{class:"filter-icon",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[r("polyline",{points:"6 9 12 15 18 9"})],-1))]),a.value?(P(),B("div",Sf,[(P(),B(ye,null,He(f,E=>r("div",{key:E.value,class:ve(["filter-option",{active:E.value===i.value}]),onClick:S=>w(E.value)},D(E.label),11,Af)),64))])):se("",!0)])],4),r("div",{class:"winloss-content",style:re({top:l.value})},[r("div",Pf,[r("div",Ef,[r("div",If,[r("div",Ff,[y[3]||(y[3]=r("div",{class:"summary-label"},"总笔数",-1)),r("div",Nf,D(u.value.total_count),1)]),r("div",Rf,[y[4]||(y[4]=r("div",{class:"summary-label"},"总输赢",-1)),r("div",{class:ve(["summary-value",{positive:u.value.total_win>0,negative:u.value.total_win<0}])},D(k(u.value.total_win)),3)])]),r("div",Bf," 返水比例:"+D(h.value)+"% ",1)]),y[5]||(y[5]=Jt('
申请时间有效投注当日返水游戏输赢
',1)),c.value.length===0?(P(),B("div",Mf," 暂无记录 ")):se("",!0),(P(!0),B(ye,null,He(c.value,E=>(P(),B("div",{key:E.date,class:"table-row"},[r("span",Of,D(U(E.date)),1),r("span",Hf,D(k(E.valid_bet)),1),r("span",Df,D(k(E.rebate)),1),r("span",{class:ve(["col-win",{positive:E.win_amount>0,negative:E.win_amount<0}])},D(k(E.win_amount)),3)]))),128))])],4)]))}},Lf=Ue(Uf,[["__scopeId","data-v-8877e0b9"]]),jf={class:"filter-wrapper"},Vf={key:0,class:"filter-dropdown"},Wf=["onClick"],Kf={class:"bet-inner"},Gf={class:"summary-card"},qf={class:"summary-row"},Jf={class:"summary-item"},Yf={class:"summary-value"},zf={class:"summary-item"},Xf={class:"summary-value"},Qf={class:"summary-row second"},Zf={class:"summary-item"},ep={key:0,class:"empty-tip"},tp={class:"record-top"},sp={class:"game-name"},np={class:"record-middle"},op={class:"record-bottom"},rp={class:"order-id"},lp={class:"bet-time"},ip={__name:"BetRecordPage",props:{playHaptic:Function,apiUrl:String,telegramId:[String,Number],isFullscreen:Boolean},emits:["close"],setup(e,{emit:t}){const s=e,n=t,o=X(()=>s.isFullscreen?"90px":"0px"),l=X(()=>s.isFullscreen?"150px":"60px"),i=I("today"),a=I(!1),c=I([]),p=I({total_count:0,total_bet:0,total_win:0}),u=[{value:"today",label:"今天"},{value:"yesterday",label:"昨天"},{value:"7d",label:"7天"},{value:"30d",label:"30天"},{value:"all",label:"全部"}],f=X(()=>{const m=u.find(g=>g.value===i.value);return m?m.label:"今天"}),b=m=>{const g=(m||"").toString();return g?g==="PGS"||g==="PG"?"PG电子":g:"未知游戏"},h=m=>(Number(m)||0).toFixed(2),k=m=>{if(!m)return"";const g=new Date(m),y=g.getFullYear(),E=String(g.getMonth()+1).padStart(2,"0"),S=String(g.getDate()).padStart(2,"0"),$=String(g.getHours()).padStart(2,"0"),G=String(g.getMinutes()).padStart(2,"0"),oe=String(g.getSeconds()).padStart(2,"0");return`${y}-${E}-${S} ${$}:${G}:${oe}`},U=()=>{var m;(m=s.playHaptic)==null||m.call(s),n("close")},z=()=>{a.value=!a.value},j=m=>{i.value=m,a.value=!1,C()},w=m=>{const g=document.activeElement;g&&((g.tagName==="INPUT"||g.tagName==="TEXTAREA")&&((m.composedPath?m.composedPath():[]).includes(g)||g.blur()),a.value&&((m.composedPath?m.composedPath():[]).some(S=>(S==null?void 0:S.classList)&&(S.classList.contains("filter-wrapper")||S.classList.contains("filter-dropdown")))||(a.value=!1)))},C=async()=>{var m,g,y;if(!(!s.apiUrl||!s.telegramId))try{const E=`${s.apiUrl}/api/report/bets?telegram_id=${encodeURIComponent(String(s.telegramId))}&range=${encodeURIComponent(i.value)}`,S=await fetch(E);if(!S.ok){console.error("获取投注记录失败:",S.status);return}const $=await S.json();if($.code!==200||!$.data){console.error("获取投注记录返回错误:",$);return}p.value={total_count:Number(((m=$.data.summary)==null?void 0:m.total_count)||0),total_bet:Number(((g=$.data.summary)==null?void 0:g.total_bet)||0),total_win:Number(((y=$.data.summary)==null?void 0:y.total_win)||0)},c.value=Array.isArray($.data.list)?$.data.list:[]}catch(E){console.error("获取投注记录异常:",E)}};return De(()=>{C()}),(m,g)=>(P(),B("div",{class:"bet-page",onClick:w},[r("div",{class:"bet-header",style:re({top:o.value})},[r("button",{class:"nav-btn back-btn",onClick:U},[...g[0]||(g[0]=[r("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[r("path",{d:"M19 12H5M12 19l-7-7 7-7"})],-1)])]),g[2]||(g[2]=r("span",{class:"bet-title"},"投注记录",-1)),r("div",jf,[r("button",{class:"filter-btn",onClick:ht(z,["stop"])},[r("span",null,D(f.value),1),g[1]||(g[1]=r("svg",{class:"filter-icon",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[r("polyline",{points:"6 9 12 15 18 9"})],-1))]),a.value?(P(),B("div",Vf,[(P(),B(ye,null,He(u,y=>r("div",{key:y.value,class:ve(["filter-option",{active:y.value===i.value}]),onClick:E=>j(y.value)},D(y.label),11,Wf)),64))])):se("",!0)])],4),r("div",{class:"bet-content",style:re({top:l.value})},[r("div",Kf,[r("div",Gf,[r("div",qf,[r("div",Jf,[g[3]||(g[3]=r("div",{class:"summary-label"},"总笔数",-1)),r("div",Yf,D(p.value.total_count)+"单",1)]),r("div",zf,[g[4]||(g[4]=r("div",{class:"summary-label"},"总投注",-1)),r("div",Xf,D(h(p.value.total_bet)),1)])]),r("div",Qf,[r("div",Zf,[g[5]||(g[5]=r("div",{class:"summary-label"},"总输赢",-1)),r("div",{class:ve(["summary-value",{positive:p.value.total_win>0,negative:p.value.total_win<0}])},D(h(p.value.total_win)),3)])])]),c.value.length===0?(P(),B("div",ep," 暂无投注记录 ")):se("",!0),(P(!0),B(ye,null,He(c.value,y=>(P(),B("div",{key:y.id,class:"record-card"},[r("div",tp,[r("div",sp,D(b(y.game_name)),1),r("div",{class:ve(["win-amount",{positive:y.win_amount>0,negative:y.win_amount<0}])},D(h(y.win_amount)),3)]),r("div",np,[r("span",null,"投注额 "+D(h(y.bet_amount)),1),r("span",null,"有效投注 "+D(h(y.valid_bet)),1)]),r("div",op,[r("div",rp,"注单号 "+D(y.round_id),1),r("div",lp,D(k(y.created_at)),1)])]))),128))])],4)]))}},ap=Ue(ip,[["__scopeId","data-v-c96b57e2"]]),cp={class:"txn-inner"},up={key:0,class:"empty-tip"},dp={class:"record-main"},fp={class:"record-left"},pp={class:"record-title"},vp={class:"record-sub"},hp={key:0,class:"record-remark"},gp={key:1,class:"record-remark"},mp={class:"record-right"},bp={key:0,class:"record-status"},yp={__name:"TransactionRecordPage",props:{playHaptic:Function,apiUrl:String,telegramId:[String,Number],isFullscreen:Boolean},emits:["close"],setup(e,{emit:t}){const s=e,n=t,o=X(()=>s.isFullscreen?"90px":"0px"),l=X(()=>s.isFullscreen?"150px":"60px"),i=I([]),a=I([]),c=I([]),p=X(()=>{const j=[];for(const w of i.value){const C=w.type||"";let m="充值";C.includes("kkpay")?m="KKPay 充值":C.includes("usdt")?m="USDT 充值":m="OkPay 充值";const g=Number(w.status);let y="";g===1?y="成功":g===0?y="处理中":y="失败",j.push({type:"deposit",id:w.id,title:m,amount:w.amount,created_at:w.created_at,status:g,statusText:y})}for(const w of a.value){const C=Number(w.status);let m="";C===0?m="处理中":C===2?m="已拒绝":C===1||C===3?m="成功":m="失败";let g="提现";w.method==="okpay"&&(g="OkPay 提现"),j.push({type:"withdraw",id:w.id,title:g,amount:w.amount,created_at:w.created_at,status:C,statusText:m,remark:w.remark||"",order_no:w.order_no||""})}for(const w of c.value)j.push({type:"bonus",id:w.id,title:"赠送彩金",amount:w.amount,created_at:w.created_at,status:1,statusText:"成功",remark:w.remark||""});return j.sort((w,C)=>{const m=new Date(w.created_at).getTime();return new Date(C.created_at).getTime()-m})}),u=j=>(Number(j)||0).toFixed(2),f=j=>{const w=Number(j.amount||0);return j.type==="withdraw"?`-${u(w)}`:`+${u(w)}`},b=j=>j.type==="withdraw"?"negative":"positive",h=j=>{if(!j)return"";const w=new Date(j),C=w.getFullYear(),m=String(w.getMonth()+1).padStart(2,"0"),g=String(w.getDate()).padStart(2,"0"),y=String(w.getHours()).padStart(2,"0"),E=String(w.getMinutes()).padStart(2,"0"),S=String(w.getSeconds()).padStart(2,"0");return`${C}-${m}-${g} ${y}:${E}:${S}`},k=()=>{var j;(j=s.playHaptic)==null||j.call(s),n("close")},U=j=>{const w=document.activeElement;w&&(w.tagName==="INPUT"||w.tagName==="TEXTAREA")&&((j.composedPath?j.composedPath():[]).includes(w)||w.blur())},z=async()=>{if(!(!s.apiUrl||!s.telegramId))try{const j=await fetch(`${s.apiUrl}/api/payment/history?telegram_id=${encodeURIComponent(String(s.telegramId))}`);if(!j.ok){console.error("获取交易记录失败:",j.status);return}const w=await j.json();if(w.code!==200||!w.data){console.error("获取交易记录返回错误:",w);return}i.value=Array.isArray(w.data.deposits)?w.data.deposits:[],a.value=Array.isArray(w.data.withdraws)?w.data.withdraws:[],c.value=Array.isArray(w.data.bonuses)?w.data.bonuses:[]}catch(j){console.error("获取交易记录异常:",j)}};return De(()=>{z()}),(j,w)=>(P(),B("div",{class:"txn-page",onClick:U},[r("div",{class:"txn-header",style:re({top:o.value})},[r("button",{class:"nav-btn back-btn",onClick:k},[...w[0]||(w[0]=[r("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[r("path",{d:"M19 12H5M12 19l-7-7 7-7"})],-1)])]),w[1]||(w[1]=r("span",{class:"txn-title"},"交易记录",-1)),w[2]||(w[2]=r("div",{class:"right-placeholder"},null,-1))],4),r("div",{class:"txn-content",style:re({top:l.value})},[r("div",cp,[p.value.length===0?(P(),B("div",up," 暂无交易记录 ")):se("",!0),(P(!0),B(ye,null,He(p.value,C=>(P(),B("div",{key:`${C.type}-${C.id}`,class:"record-card"},[r("div",dp,[r("div",fp,[r("div",pp,D(C.title),1),r("div",vp,D(h(C.created_at)),1),C.type==="withdraw"&&C.status===2&&C.remark?(P(),B("div",hp," 拒绝原因:"+D(C.remark),1)):C.type==="withdraw"&&(C.status===1||C.status===3)&&C.order_no?(P(),B("div",gp," 单号:"+D(C.order_no),1)):se("",!0)]),r("div",mp,[r("div",{class:ve(["record-amount",b(C)])},D(f(C)),3),C.statusText?(P(),B("div",bp,D(C.statusText),1)):se("",!0)])])]))),128))])],4)]))}},_p=Ue(yp,[["__scopeId","data-v-b117c2d9"]]),wp="/%E7%BA%A2%E5%8C%85.png",$p={key:0,class:"tip"},xp={key:1,class:"tip"},kp={key:2,class:"tip"},Cp=ai({__name:"RedPacketPage",setup(e){const t=I(!1),s=I(null),n=I("");let o=!1,l=null;const i=I(null),a=()=>{const f=(window.location.hash||"").match(/#\/redpacket\/([^?]+)/i);return f&&f[1]?decodeURIComponent(f[1]):null},c=async()=>{var u,f;if(!(o||t.value)){if(l||(l=a()),!l){n.value="红包链接无效";return}try{t.value=!0;const b=await fetch("https://api.v123.help/api/red-packets/claim",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({packet_id:l,telegram_id:i.value})});if(!b.ok)throw new Error(`HTTP ${b.status}`);const h=await b.json();h&&typeof((u=h.data)==null?void 0:u.amount)=="number"?(s.value=h.data.amount,o=!0,n.value=h.msg||""):h&&((f=h.data)!=null&&f.repeated)?n.value=h.msg||"您已经领取过这个红包了":n.value=(h==null?void 0:h.msg)||"领取失败,请稍后再试"}catch(b){console.error("领取红包失败:",b),n.value=(b==null?void 0:b.message)||"领取失败,请稍后再试"}finally{t.value=!1}}},p=()=>{c()};return De(()=>{var u,f,b;l=a();try{const h=(b=(f=(u=window==null?void 0:window.Telegram)==null?void 0:u.WebApp)==null?void 0:f.initDataUnsafe)==null?void 0:b.user;h&&h.id&&(i.value=Number(h.id))}catch(h){console.warn("读取 Telegram 用户信息失败:",h)}}),(u,f)=>(P(),B("div",{class:"red-packet-page",onClick:p},[f[0]||(f[0]=r("img",{class:"bg",src:wp,alt:"红包"},null,-1)),f[1]||(f[1]=r("div",{class:"mask"},null,-1)),t.value?(P(),B("div",$p,"领取中...")):s.value!==null?(P(),B("div",xp,"恭喜获得 "+D(s.value.toFixed(2))+" 元红包",1)):n.value?(P(),B("div",kp,D(n.value),1)):se("",!0)]))}}),Tp=Ue(Cp,[["__scopeId","data-v-908d10c8"]]),Sp={key:1,class:"app"},Ap={class:"right-section"},Pp={class:"balance-box"},Ep={class:"balance-text"},Ip=["src"],Fp={class:"announcement-content"},Np={class:"announcement-text"},Rp={key:0,class:"games-grid"},Bp=["onClick"],Mp={class:"game-icon"},Op=["src","alt"],Hp={key:1,class:"game-icon-placeholder"},Dp={class:"game-name"},Up={key:1,class:"loading-more"},Lp={key:2,class:"no-more"},jp={key:3,class:"no-games"},Vp={class:"bottom-nav"},Wp={class:"nav-pill"},Kp={key:0,class:"nav-profile-indicator"},Gp={key:0,class:"game-frame-container"},qp=["src"],Jp={key:0,class:"game-loading"},Yp={key:2,class:"access-denied"},zp={class:"error-container"},Vo=12,Xp={__name:"App",setup(e){const t=I(""),s=I(""),n=I(""),o=I(null),l=I("0.00"),i=I(0),a=I(0),c=I(0),p=I(0),u=I(.6),f=I(localStorage.getItem("currentTab")||"home"),b=Wl(null),h=I(null),k=I(null),U=I(null),z=I(null),j=I({transform:"translateX(0px)",opacity:"0"}),w=I(!1),C=I(!1),m=I({top:0,bottom:0,left:0,right:0}),g=I({top:0,bottom:0,left:0,right:0}),y=I(!1),E=I(!0),S=I(!1),$=I(""),G=I("欢迎来到山海娱乐!"),oe=I([]),O=I("all"),T=I([]),M=I([]),Z=I(1),le=I(!1),ae=I(!0),pe=I(!1),Ye=I(null),_t=I(!1),ze=I(""),Re="https://api.v123.help",St=I(!1),lt=I(null),en=X(()=>o.value?`https://t.me/SHYL8Bot?start=s_${o.value}`:""),me=H=>{const _=new Date().toLocaleTimeString();oe.value.push(`[${_}] ${H}`),console.log(H)},wt=X(()=>w.value?"90px":"0px"),At=X(()=>w.value?"150px":"60px"),Vt=X(()=>w.value?"270px":"180px"),Pt=X(()=>w.value?"320px":"230px"),Yn=X(()=>w.value?"380px":"290px"),d=X(()=>w.value?"380px":"290px"),v=async()=>{await gr();const _={home:h.value,games:k.value,vip:U.value,events:z.value}[f.value];if(_&&f.value!=="profile"){const ne=_.parentElement.getBoundingClientRect(),we=_.getBoundingClientRect(),it=we.left+we.width/2-ne.left-25;j.value={transform:`translateX(${it}px)`,opacity:"1"}}else j.value={transform:j.value.transform,opacity:"0"}},x=()=>{b.value=Ku},R=()=>{b.value=od},A=()=>{b.value=Td},F=()=>{b.value=sf},W=()=>{b.value=Cf},V=()=>{b.value=Lf},L=()=>{b.value=ap},N=()=>{b.value=_p},Y=()=>{b.value=null},K=()=>{Y(),W()},q=H=>{if(J(),console.log("点击功能:",H),H==="recharge"){x();return}if(H==="withdraw"){R();return}if(H==="rebate"){A();return}if(H==="promotion"){F();return}if(H==="events"){te("events");return}},J=()=>{var H,_,ne;if(C.value)try{(ne=(_=(H=window.Telegram)==null?void 0:H.WebApp)==null?void 0:_.HapticFeedback)==null||ne.impactOccurred("light")}catch{}},te=H=>{f.value=H,localStorage.setItem("currentTab",H),J(),v()},ue=H=>{O.value=H,J(),console.log("切换分类:",H),Z.value=1,M.value=[],ae.value=!0,ie(H)},ie=async(H="all")=>{if(!le.value){le.value=!0;try{const _=await fetch(`https://api.v123.help/api/games?category=${H}`);if(!_.ok)throw new Error(`HTTP ${_.status}`);const ne=await _.json();T.value=ne.games||[],console.log("✓ 游戏列表:",T.value.length),le.value=!1,xe()}catch(_){console.error("✗ 获取游戏列表失败:",_),le.value=!1}}},xe=()=>{if(le.value||!ae.value)return;le.value=!0;const H=(Z.value-1)*Vo,_=H+Vo,ne=T.value.slice(H,_);if(ne.length===0){ae.value=!1,le.value=!1;return}M.value.push(...ne),Z.value++,_>=T.value.length&&(ae.value=!1),le.value=!1,console.log(`加载游戏: ${M.value.length}/${T.value.length}`)},ke=()=>{const H=window.pageYOffset||document.documentElement.scrollTop;pe.value=H>300},We=()=>{if(!Ye.value)return;const H=Ye.value,_=H.scrollTop,ne=H.scrollHeight,we=H.clientHeight;_+we>=ne-100&&xe()},Le=async H=>{var _,ne;if(J(),console.log("→ 进入游戏:",H.game_name),!o.value){alert("请先登录");return}if(St.value){console.log("游戏正在加载中...");return}St.value=!0;try{const[we,it]=await Promise.all([fetch("https://api.v123.help/api/game/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({telegram_id:o.value})}),fetch("https://api.v123.help/api/game/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({telegram_id:o.value,game_code:H.game_code,is_mobile:y.value})})]);if(!we.ok){const Be=await we.text();throw console.error("✗ 注册失败 HTTP",we.status,Be),new Error(`注册失败: ${Be}`)}const ks=await we.json();if(console.log("✓ 注册响应:",ks),parseFloat(l.value)>0&&fetch("https://api.v123.help/api/game/deposit",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({telegram_id:o.value,amount:Math.floor(parseFloat(l.value))})}).then(Be=>Be.json()).then(Be=>{console.log("✓ 转入响应:",Be)}).catch(Be=>{console.error("✗ 转入失败:",Be)}),!it.ok){const Be=await it.text();throw console.error("✗ 登录失败 HTTP",it.status,Be),new Error(`登录失败: ${Be}`)}const at=await it.json();console.log("✓ 登录响应:",at),at.Code===0&&at.Data&&at.Data.url?(ze.value=at.Data.url,_t.value=!0,(ne=(_=window.Telegram)==null?void 0:_.WebApp)!=null&&ne.BackButton&&(lt.value&&window.Telegram.WebApp.BackButton.offClick(lt.value),lt.value=()=>{console.log("返回按钮被点击"),Et()},window.Telegram.WebApp.BackButton.onClick(lt.value),window.Telegram.WebApp.BackButton.show())):alert("进入游戏失败: "+(at.Message||"未知错误"))}catch(we){console.error("✗ 进入游戏失败:",we),alert("进入游戏失败: "+we.message)}finally{St.value=!1}},Et=async()=>{var H,_;console.log("→ 开始关闭游戏"),J(),(_=(H=window.Telegram)==null?void 0:H.WebApp)!=null&&_.BackButton&&(lt.value&&(window.Telegram.WebApp.BackButton.offClick(lt.value),lt.value=null),window.Telegram.WebApp.BackButton.hide()),_t.value=!1,ze.value="",$s(),console.log("✓ 游戏已关闭")},$s=async()=>{if(o.value)try{(await(await fetch("https://api.v123.help/api/game/withdrawal",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({telegram_id:o.value})})).json()).Code===0&&(console.log("✓ 转出成功"),await It())}catch(H){console.error("✗ 转出失败:",H)}},Pe=()=>{J(),window.scrollTo({top:0,behavior:"smooth"})},Ke=async H=>{console.log("→ 开始初始化用户:",H.id),console.log("→ API URL:","https://api.v123.help");try{const _=await fetch("https://api.v123.help/api/user/init",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({telegram_id:H.id,username:H.username||"",first_name:H.first_name||"",last_name:H.last_name||"",email:H.email||"",photo_url:H.photo_url||""})});if(console.log("→ 响应状态:",_.status),!_.ok){const we=await _.text();throw console.error("✗ HTTP 错误:",_.status,we),new Error(`HTTP ${_.status}: ${we}`)}const ne=await _.json();return console.log("✓ 用户初始化响应:",ne),ne}catch(_){throw console.error("✗ 初始化用户失败:",_),console.error("✗ 错误详情:",_.message),_}},It=async()=>{if(console.log("→ 刷新余额, telegram_id:",o.value),J(),!o.value){console.error("✗ 未获取到 telegram_id,无法刷新余额");return}try{const H=await fetch(`https://api.v123.help/api/balance?telegram_id=${o.value}`);if(!H.ok)throw new Error(`HTTP ${H.status}`);const _=await H.json();l.value=_.balance,console.log("✓ 余额:",l.value)}catch(H){console.error("✗ 获取余额失败:",H)}},xs=async()=>{if(!o.value){console.error("✗ 未获取到 telegram_id,无法获取 VIP 信息");return}try{const H=await fetch(`https://api.v123.help/api/vip/info?telegram_id=${o.value}`);if(!H.ok)throw new Error(`HTTP ${H.status}`);const _=await H.json();i.value=_.total_bet,a.value=_.weekly_bet,c.value=_.daily_bet,p.value=_.rebate_rate,console.log("✓ VIP 信息:",_)}catch(H){console.error("✗ 获取 VIP 信息失败:",H)}},il=async()=>{try{const H=await fetch("https://api.v123.help/api/announcement");if(!H.ok)throw new Error(`HTTP ${H.status}`);const _=await H.json();G.value=_.content||"欢迎来到山海娱乐!",console.log("✓ 公告:",G.value)}catch(H){console.error("✗ 获取公告失败:",H),G.value="欢迎来到山海娱乐!祝您游戏愉快,好运连连!"}},al=async()=>{try{const H=await fetch("https://api.v123.help/api/config/commission_rate");if(!H.ok)throw new Error(`HTTP ${H.status}`);const _=await H.json();u.value=parseFloat(_.value)||.6,console.log("✓ 返佣比例:",u.value)}catch(H){console.error("✗ 获取返佣比例失败:",H),u.value=.6}},zn=()=>{var H;(H=window.Telegram)!=null&&H.WebApp&&(w.value=window.Telegram.WebApp.isFullscreen||!1,console.log("全屏状态变化:",w.value),console.log("导航栏位置:",wt.value),console.log("功能按钮位置:",At.value),console.log("公告栏位置:",Vt.value))},Xn=H=>{console.error("全屏失败:",H)},Qn=()=>{var H,_;(_=(H=window.Telegram)==null?void 0:H.WebApp)!=null&&_.safeAreaInset&&(m.value=window.Telegram.WebApp.safeAreaInset,console.log("安全区域变化:",m.value))},Zn=()=>{var H,_;(_=(H=window.Telegram)==null?void 0:H.WebApp)!=null&&_.contentSafeAreaInset&&(g.value=window.Telegram.WebApp.contentSafeAreaInset,console.log("内容安全区域变化:",g.value))},eo=()=>{console.log("小程序已激活")},to=()=>{console.log("小程序已停用")};return De(async()=>{var we,it,ks,at,Be;const H=window.location.hash||"";if(/^#\/redpacket\//i.test(H)){S.value=!0,E.value=!0;return}me("=== 应用初始化开始 ===");const _=!1,ne=(it=(we=window.Telegram)==null?void 0:we.WebApp)==null?void 0:it.initData;if(me(`开发模式: ${_}`),me(`Telegram WebApp: ${!!((ks=window.Telegram)!=null&&ks.WebApp)}`),me(`initData: ${!!ne}`),!ne){E.value=!1,$.value="此应用只能通过 Telegram Mini App 访问",me("非法访问:不是从 Telegram Mini App 打开");return}if(window.addEventListener("scroll",ke),(at=window.Telegram)!=null&&at.WebApp){const be=window.Telegram.WebApp;be.ready(),me("=== Telegram WebApp 信息 ==="),me(`版本: ${be.version}`),me(`平台: ${be.platform}`),me(`initData: ${be.initData?"存在":"不存在"}`),me(`initDataUnsafe: ${JSON.stringify(be.initDataUnsafe)}`);const cl=parseFloat(be.version||"0");C.value=!!be.HapticFeedback&&cl>=6.1,y.value=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),me(`移动设备: ${y.value}`),w.value=be.isFullscreen||!1,console.log("初始全屏状态:",w.value),console.log("初始导航栏位置:",wt.value),console.log("初始功能按钮位置:",At.value),console.log("初始公告栏位置:",Vt.value),setTimeout(()=>{const Ft=be.isFullscreen||!1;Ft!==w.value&&(console.log("延迟检查:全屏状态已更新为",Ft),w.value=Ft)},500),be.contentSafeAreaInset?(g.value=be.contentSafeAreaInset,console.log("✓ 获取到 contentSafeAreaInset:",g.value)):y.value&&(g.value={top:120,bottom:0,left:0,right:0},console.log("✓ 使用默认 contentSafeAreaInset: 120px"));const Ee=(Be=be.initDataUnsafe)==null?void 0:Be.user;if(me("=== 用户信息获取 ==="),me(`用户对象: ${JSON.stringify(Ee)}`),me(`用户 ID: ${Ee==null?void 0:Ee.id}`),me(`用户名: ${Ee==null?void 0:Ee.username}`),Ee){o.value=Ee.id,n.value=Ee.first_name||Ee.username||"User",s.value=Ee.email||"",Ee.photo_url&&(t.value=Ee.photo_url),me(`→ 准备初始化真实用户, Telegram ID: ${o.value}`);try{await Ke(Ee),me("✓ 用户初始化完成")}catch(Ft){me(`✗ 用户初始化失败: ${Ft.message}`)}}else me("✗ 未获取到用户信息");if(be.safeAreaInset&&(m.value=be.safeAreaInset,console.log("safeAreaInset:",m.value)),be.contentSafeAreaInset&&(g.value=be.contentSafeAreaInset,console.log("✓ 初始内容安全区域:",g.value)),be.onEvent("fullscreenChanged",zn),be.onEvent("fullscreenFailed",Xn),be.onEvent("safeAreaChanged",Qn),be.onEvent("contentSafeAreaChanged",Zn),be.onEvent("activated",eo),be.onEvent("deactivated",to),y.value&&be.requestFullscreen)try{console.log("请求全屏模式..."),be.requestFullscreen(),setTimeout(()=>{w.value=be.isFullscreen||!1,console.log("请求全屏后状态:",w.value)},300)}catch(Ft){console.log("全屏模式不支持或失败:",Ft.message)}}await il(),await al(),await ie("all"),await It(),await xs(),v(),console.log("=== 应用初始化完成 ===")}),Vn(()=>{var H;if(window.removeEventListener("scroll",ke),(H=window.Telegram)!=null&&H.WebApp){const _=window.Telegram.WebApp;_.offEvent("fullscreenChanged",zn),_.offEvent("fullscreenFailed",Xn),_.offEvent("safeAreaChanged",Qn),_.offEvent("contentSafeAreaChanged",Zn),_.offEvent("activated",eo),_.offEvent("deactivated",to)}}),(H,_)=>S.value?(P(),Ht(Tp,{key:0})):E.value?(P(),B("div",Sp,[f.value==="home"?(P(),B("header",{key:0,class:"navbar",style:re({top:wt.value})},[_[16]||(_[16]=r("div",{class:"logo"},[r("img",{src:ol,alt:"Logo"})],-1)),r("div",Ap,[r("div",Pp,[_[15]||(_[15]=r("img",{src:qn,alt:"USDT",class:"usdt-icon"},null,-1)),r("span",Ep,D(l.value),1),r("button",{class:"refresh-btn",onClick:It},[..._[14]||(_[14]=[r("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[r("path",{d:"M21.5 2v6h-6M2.5 22v-6h6M2 11.5a10 10 0 0 1 18.8-4.3M22 12.5a10 10 0 0 1-18.8 4.2"})],-1)])])]),r("button",{class:"add-btn",onClick:x},"+"),r("div",{class:"avatar",onClick:_[0]||(_[0]=ne=>te("profile"))},[r("img",{src:t.value,alt:"User Avatar"},null,8,Ip)])])],4)):se("",!0),f.value==="home"?(P(),B("div",{key:1,class:"action-buttons",style:re({top:At.value})},[r("button",{class:"action-btn",onClick:_[1]||(_[1]=ne=>q("recharge"))},[..._[17]||(_[17]=[r("img",{src:La,alt:"充值",class:"action-icon-img"},null,-1),r("span",{class:"action-label"},"充值",-1)])]),r("button",{class:"action-btn",onClick:_[2]||(_[2]=ne=>q("withdraw"))},[..._[18]||(_[18]=[r("img",{src:ja,alt:"提现",class:"action-icon-img"},null,-1),r("span",{class:"action-label"},"提现",-1)])]),r("button",{class:"action-btn",onClick:_[3]||(_[3]=ne=>q("rebate"))},[..._[19]||(_[19]=[r("img",{src:Va,alt:"反水",class:"action-icon-img"},null,-1),r("span",{class:"action-label"},"反水",-1)])]),r("button",{class:"action-btn",onClick:_[4]||(_[4]=ne=>q("promotion"))},[..._[20]||(_[20]=[r("img",{src:Wa,alt:"推广",class:"action-icon-img"},null,-1),r("span",{class:"action-label"},"推广",-1)])]),r("button",{class:"action-btn",onClick:_[5]||(_[5]=ne=>q("events"))},[..._[21]||(_[21]=[r("img",{src:Ka,alt:"活动",class:"action-icon-img"},null,-1),r("span",{class:"action-label"},"活动",-1)])])],4)):se("",!0),f.value==="home"?(P(),B("div",{key:2,class:"announcement-bar",style:re({top:Vt.value})},[_[22]||(_[22]=Jt('',1)),r("div",Fp,[r("div",Np,D(G.value),1)])],4)):se("",!0),f.value==="home"?(P(),B("div",{key:3,class:"category-buttons",style:re({top:Pt.value})},[r("button",{class:ve(["category-btn",{active:O.value==="all"}]),onClick:_[6]||(_[6]=ne=>ue("all"))},[..._[23]||(_[23]=[Jt('全部',2)])],2),r("button",{class:ve(["category-btn",{active:O.value==="hot"}]),onClick:_[7]||(_[7]=ne=>ue("hot"))},[..._[24]||(_[24]=[r("svg",{class:"category-icon",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[r("path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z"})],-1),r("span",{class:"category-label"},"热门",-1)])],2),r("button",{class:ve(["category-btn",{active:O.value==="pg"}]),onClick:_[8]||(_[8]=ne=>ue("pg"))},[..._[25]||(_[25]=[r("img",{src:rl,alt:"PG电子",class:"category-icon-img"},null,-1),r("span",{class:"category-label"},"PG电子",-1)])],2)],4)):se("",!0),f.value==="home"?(P(),B("main",{key:4,class:"content",style:re({paddingTop:Yn.value})},[r("div",{class:"games-container",ref_key:"gamesContainer",ref:Ye,onScroll:We,style:re({top:d.value})},[M.value.length>0?(P(),B("div",Rp,[(P(!0),B(ye,null,He(M.value,ne=>(P(),B("div",{class:"game-card",key:ne.id,onClick:we=>Le(ne)},[r("div",Mp,[ne.icon_url?(P(),B("img",{key:0,src:ne.icon_url,alt:ne.game_name,loading:"lazy"},null,8,Op)):(P(),B("div",Hp,[..._[26]||(_[26]=[r("svg",{width:"40",height:"40",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[r("rect",{x:"2",y:"7",width:"20",height:"15",rx:"2",ry:"2"}),r("polyline",{points:"17 2 12 7 7 2"})],-1)])]))]),r("div",Dp,D(ne.game_name),1)],8,Bp))),128))])):se("",!0),le.value&&M.value.length>0?(P(),B("div",Up,[..._[27]||(_[27]=[r("div",{class:"loading-spinner"},null,-1),r("span",null,"加载中...",-1)])])):se("",!0),!ae.value&&M.value.length>0?(P(),B("div",Lp,[..._[28]||(_[28]=[r("span",null,"已加载全部游戏",-1)])])):se("",!0),!le.value&&M.value.length===0?(P(),B("div",jp,[..._[29]||(_[29]=[r("p",null,"暂无游戏",-1)])])):se("",!0)],36)],4)):se("",!0),f.value==="games"?(P(),Ht(rc,{key:5,isFullscreen:w.value,"api-url":Ps(Re),playHaptic:J,onEnterGame:Le},null,8,["isFullscreen","api-url"])):se("",!0),f.value==="vip"?(P(),Ht(Dc,{key:6,isFullscreen:w.value,userAvatar:t.value,userName:n.value,userId:o.value,totalBet:i.value,weeklyBet:a.value,dailyBet:c.value,rebateRate:p.value,playHaptic:J},null,8,["isFullscreen","userAvatar","userName","userId","totalBet","weeklyBet","dailyBet","rebateRate"])):se("",!0),f.value==="events"?(P(),Ht(Zc,{key:7,isFullscreen:w.value,apiUrl:Ps(Re),playHaptic:J},null,8,["isFullscreen","apiUrl"])):se("",!0),f.value==="profile"?(P(),Ht(Ru,{key:8,userAvatar:t.value,userName:n.value,userId:o.value,totalBet:i.value,balance:l.value,commissionRate:u.value,playHaptic:J,onNavigateToVip:()=>te("vip"),onNavigateToRecharge:x,onNavigateToWithdraw:R,onNavigateToTransferRecords:W,onNavigateToWinlossReport:V,onNavigateToBetReport:L,onNavigateToTransactionReport:N},null,8,["userAvatar","userName","userId","totalBet","balance","commissionRate","onNavigateToVip"])):se("",!0),b.value?(P(),Ht(_i(b.value),{key:9,onClose:Y,onOpenTransfer:K,onRefreshBalance:It,playHaptic:J,apiUrl:Ps(Re),telegramId:o.value,balance:l.value,totalBet:i.value,dailyBet:c.value,rebateRate:p.value,referralLink:en.value,isFullscreen:w.value},null,40,["apiUrl","telegramId","balance","totalBet","dailyBet","rebateRate","referralLink","isFullscreen"])):se("",!0),r("nav",Vp,[r("div",Wp,[r("div",{class:"nav-indicator",style:re(j.value)},null,4),r("button",{class:ve(["nav-item",{active:f.value==="home"}]),onClick:_[9]||(_[9]=ne=>te("home")),ref_key:"homeBtn",ref:h},[..._[30]||(_[30]=[r("div",{class:"nav-icon"},[r("img",{src:Ga,alt:"首页",class:"nav-icon-img"})],-1),r("span",{class:"nav-label"},"首页",-1)])],2),r("button",{class:ve(["nav-item",{active:f.value==="games"}]),onClick:_[10]||(_[10]=ne=>te("games")),ref_key:"gamesBtn",ref:k},[..._[31]||(_[31]=[Jt('游戏',2)])],2),r("button",{class:ve(["nav-item",{active:f.value==="vip"}]),onClick:_[11]||(_[11]=ne=>te("vip")),ref_key:"vipBtn",ref:U},[..._[32]||(_[32]=[r("div",{class:"nav-icon"},[r("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[r("path",{d:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z",fill:"currentColor"})])],-1),r("span",{class:"nav-label"},"VIP",-1)])],2),r("button",{class:ve(["nav-item",{active:f.value==="events"}]),onClick:_[12]||(_[12]=ne=>te("events")),ref_key:"eventsBtn",ref:z},[..._[33]||(_[33]=[Jt('活动',2)])],2)]),r("button",{class:ve(["nav-item nav-profile",{active:f.value==="profile"}]),onClick:_[13]||(_[13]=ne=>te("profile"))},[f.value==="profile"?(P(),B("div",Kp)):se("",!0),_[34]||(_[34]=r("div",{class:"nav-icon"},[r("img",{src:qa,alt:"Logo",class:"profile-logo"})],-1))],2)]),Ce(dn,{name:"fade"},{default:Es(()=>[pe.value?(P(),B("button",{key:0,class:"scroll-top-btn",onClick:Pe},[..._[35]||(_[35]=[r("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[r("polyline",{points:"18 15 12 9 6 15"})],-1)])])):se("",!0)]),_:1}),Ce(dn,{name:"slide-up"},{default:Es(()=>[_t.value?(P(),B("div",Gp,[r("iframe",{src:ze.value,class:"game-iframe",frameborder:"0",allowfullscreen:"",allow:"autoplay; fullscreen; payment"},null,8,qp)])):se("",!0)]),_:1}),Ce(dn,{name:"fade"},{default:Es(()=>[St.value?(P(),B("div",Jp,[..._[36]||(_[36]=[r("div",{class:"loading-spinner-large"},null,-1),r("p",null,"游戏加载中...",-1)])])):se("",!0)]),_:1})])):(P(),B("div",Yp,[r("div",zp,[_[37]||(_[37]=r("div",{class:"error-icon"},"404",-1)),_[38]||(_[38]=r("h2",null,"访问受限",-1)),r("p",null,D($.value),1),_[39]||(_[39]=r("p",{class:"error-hint"},"404error",-1))])]))}},Qp=Ue(Xp,[["__scopeId","data-v-379ee362"]]);Ha(Qp).mount("#app");