44 lines
352 KiB
JavaScript
44 lines
352 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-n4lwlBn2.js","assets/index-DVSmYI1S.js","assets/index-CMp3LJMl.js","assets/index-BPZK2c_W.js","assets/Login-g2_0-mVf.js","assets/auth-BiX9lppe.js","assets/Login-BH4ngh9v.css","assets/Bind-BL1ZRICK.js","assets/Bind-QRAKHU1z.css","assets/index-p_Y1ee2a.css","assets/WeworkOnly-D0_aA26A.js","assets/WeworkOnly-CfiQw4Wy.css","assets/AutomationProgress-z4I6KtHy.js","assets/AutomationProgress-5xKDZdIh.css","assets/VideoIntro-DM1r9p4C.js","assets/VideoIntro-DqGcGL8e.css"])))=>i.map(i=>d[i]);
|
||
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();/**
|
||
* @vue/shared v3.5.35
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/function Xa(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ue={},hs=[],rn=()=>{},Vc=()=>!1,hi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),pi=e=>e.startsWith("onUpdate:"),lt=Object.assign,Ya=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Gf=Object.prototype.hasOwnProperty,Me=(e,t)=>Gf.call(e,t),ve=Array.isArray,ps=e=>go(e)==="[object Map]",jc=e=>go(e)==="[object Set]",Vr=e=>go(e)==="[object Date]",Ee=e=>typeof e=="function",ze=e=>typeof e=="string",zt=e=>typeof e=="symbol",Fe=e=>e!==null&&typeof e=="object",qc=e=>(Fe(e)||Ee(e))&&Ee(e.then)&&Ee(e.catch),Uc=Object.prototype.toString,go=e=>Uc.call(e),Jf=e=>go(e).slice(8,-1),zc=e=>go(e)==="[object Object]",mi=e=>ze(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Js=Xa(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),_i=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Xf=/-\w/g,xt=_i(e=>e.replace(Xf,t=>t.slice(1).toUpperCase())),Yf=/\B([A-Z])/g,En=_i(e=>e.replace(Yf,"-$1").toLowerCase()),gi=_i(e=>e.charAt(0).toUpperCase()+e.slice(1)),qi=_i(e=>e?`on${gi(e)}`:""),sn=(e,t)=>!Object.is(e,t),Ui=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Hc=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Qf=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Wc=e=>{const t=ze(e)?Number(e):NaN;return isNaN(t)?e:t};let jr;const vi=()=>jr||(jr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ln(e){if(ve(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=ze(s)?nh(s):ln(s);if(o)for(const i in o)t[i]=o[i]}return t}else if(ze(e)||Fe(e))return e}const Zf=/;(?![^(]*\))/g,eh=/:([^]+)/,th=/\/\*[^]*?\*\//g;function nh(e){const t={};return e.replace(th,"").split(Zf).forEach(n=>{if(n){const s=n.split(eh);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function sh(e){if(!e)return"";if(ze(e))return e;let t="";for(const n in e){const s=e[n];if(ze(s)||typeof s=="number"){const o=n.startsWith("--")?n:En(n);t+=`${o}:${s};`}}return t}function ge(e){let t="";if(ze(e))t=e;else if(ve(e))for(let n=0;n<e.length;n++){const s=ge(e[n]);s&&(t+=s+" ")}else if(Fe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const oh="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ih=Xa(oh);function Kc(e){return!!e||e===""}function ah(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Qa(e[s],t[s]);return n}function Qa(e,t){if(e===t)return!0;let n=Vr(e),s=Vr(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=zt(e),s=zt(t),n||s)return e===t;if(n=ve(e),s=ve(t),n||s)return n&&s?ah(e,t):!1;if(n=Fe(e),s=Fe(t),n||s){if(!n||!s)return!1;const o=Object.keys(e).length,i=Object.keys(t).length;if(o!==i)return!1;for(const a in e){const r=e.hasOwnProperty(a),c=t.hasOwnProperty(a);if(r&&!c||!r&&c||!Qa(e[a],t[a]))return!1}}return String(e)===String(t)}const Gc=e=>!!(e&&e.__v_isRef===!0),V=e=>ze(e)?e:e==null?"":ve(e)||Fe(e)&&(e.toString===Uc||!Ee(e.toString))?Gc(e)?V(e.value):JSON.stringify(e,Jc,2):String(e),Jc=(e,t)=>Gc(t)?Jc(e,t.value):ps(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],i)=>(n[zi(s,i)+" =>"]=o,n),{})}:jc(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>zi(n))}:zt(t)?zi(t):Fe(t)&&!ve(t)&&!zc(t)?String(t):t,zi=(e,t="")=>{var n;return zt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
||
* @vue/reactivity v3.5.35
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let rt;class Xc{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&rt&&(rt.active?(this.parent=rt,this.index=(rt.scopes||(rt.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=rt;try{return rt=this,t()}finally{rt=n}}}on(){++this._on===1&&(this.prevScope=rt,rt=this)}off(){if(this._on>0&&--this._on===0){if(rt===this)rt=this.prevScope;else{let t=rt;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function Yc(e){return new Xc(e)}function Za(){return rt}function Qc(e,t=!1){rt&&rt.cleanups.push(e)}let We;const Hi=new WeakSet;class Zc{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,rt&&(rt.active?rt.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Hi.has(this)&&(Hi.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||tu(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,qr(this),nu(this);const t=We,n=Xt;We=this,Xt=!0;try{return this.fn()}finally{su(this),We=t,Xt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)nr(t);this.deps=this.depsTail=void 0,qr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Hi.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){_a(this)&&this.run()}get dirty(){return _a(this)}}let eu=0,Xs,Ys;function tu(e,t=!1){if(e.flags|=8,t){e.next=Ys,Ys=e;return}e.next=Xs,Xs=e}function er(){eu++}function tr(){if(--eu>0)return;if(Ys){let t=Ys;for(Ys=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Xs;){let t=Xs;for(Xs=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function nu(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function su(e){let t,n=e.depsTail,s=n;for(;s;){const o=s.prevDep;s.version===-1?(s===n&&(n=o),nr(s),rh(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=o}e.deps=t,e.depsTail=n}function _a(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ou(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ou(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ao)||(e.globalVersion=ao,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!_a(e))))return;e.flags|=2;const t=e.dep,n=We,s=Xt;We=e,Xt=!0;try{nu(e);const o=e.fn(e._value);(t.version===0||sn(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{We=n,Xt=s,su(e),e.flags&=-3}}function nr(e,t=!1){const{dep:n,prevSub:s,nextSub:o}=e;if(s&&(s.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)nr(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function rh(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Xt=!0;const iu=[];function yn(){iu.push(Xt),Xt=!1}function bn(){const e=iu.pop();Xt=e===void 0?!0:e}function qr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=We;We=void 0;try{t()}finally{We=n}}}let ao=0;class lh{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class sr{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(!We||!Xt||We===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==We)n=this.activeLink=new lh(We,this),We.deps?(n.prevDep=We.depsTail,We.depsTail.nextDep=n,We.depsTail=n):We.deps=We.depsTail=n,au(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=We.depsTail,n.nextDep=void 0,We.depsTail.nextDep=n,We.depsTail=n,We.deps===n&&(We.deps=s)}return n}trigger(t){this.version++,ao++,this.notify(t)}notify(t){er();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{tr()}}}function au(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)au(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ni=new WeakMap,Gn=Symbol(""),ga=Symbol(""),ro=Symbol("");function gt(e,t,n){if(Xt&&We){let s=ni.get(e);s||ni.set(e,s=new Map);let o=s.get(n);o||(s.set(n,o=new sr),o.map=s,o.key=n),o.track()}}function mn(e,t,n,s,o,i){const a=ni.get(e);if(!a){ao++;return}const r=c=>{c&&c.trigger()};if(er(),t==="clear")a.forEach(r);else{const c=ve(e),d=c&&mi(n);if(c&&n==="length"){const l=Number(s);a.forEach((u,f)=>{(f==="length"||f===ro||!zt(f)&&f>=l)&&r(u)})}else switch((n!==void 0||a.has(void 0))&&r(a.get(n)),d&&r(a.get(ro)),t){case"add":c?d&&r(a.get("length")):(r(a.get(Gn)),ps(e)&&r(a.get(ga)));break;case"delete":c||(r(a.get(Gn)),ps(e)&&r(a.get(ga)));break;case"set":ps(e)&&r(a.get(Gn));break}}tr()}function ch(e,t){const n=ni.get(e);return n&&n.get(t)}function ns(e){const t=Pe(e);return t===e?t:(gt(t,"iterate",ro),Dt(e)?t:t.map(Yt))}function yi(e){return gt(e=Pe(e),"iterate",ro),e}function nn(e,t){return wn(e)?vs(gn(e)?Yt(t):t):Yt(t)}const uh={__proto__:null,[Symbol.iterator](){return Wi(this,Symbol.iterator,e=>nn(this,e))},concat(...e){return ns(this).concat(...e.map(t=>ve(t)?ns(t):t))},entries(){return Wi(this,"entries",e=>(e[1]=nn(this,e[1]),e))},every(e,t){return un(this,"every",e,t,void 0,arguments)},filter(e,t){return un(this,"filter",e,t,n=>n.map(s=>nn(this,s)),arguments)},find(e,t){return un(this,"find",e,t,n=>nn(this,n),arguments)},findIndex(e,t){return un(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return un(this,"findLast",e,t,n=>nn(this,n),arguments)},findLastIndex(e,t){return un(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return un(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ki(this,"includes",e)},indexOf(...e){return Ki(this,"indexOf",e)},join(e){return ns(this).join(e)},lastIndexOf(...e){return Ki(this,"lastIndexOf",e)},map(e,t){return un(this,"map",e,t,void 0,arguments)},pop(){return Ps(this,"pop")},push(...e){return Ps(this,"push",e)},reduce(e,...t){return Ur(this,"reduce",e,t)},reduceRight(e,...t){return Ur(this,"reduceRight",e,t)},shift(){return Ps(this,"shift")},some(e,t){return un(this,"some",e,t,void 0,arguments)},splice(...e){return Ps(this,"splice",e)},toReversed(){return ns(this).toReversed()},toSorted(e){return ns(this).toSorted(e)},toSpliced(...e){return ns(this).toSpliced(...e)},unshift(...e){return Ps(this,"unshift",e)},values(){return Wi(this,"values",e=>nn(this,e))}};function Wi(e,t,n){const s=yi(e),o=s[t]();return s!==e&&!Dt(e)&&(o._next=o.next,o.next=()=>{const i=o._next();return i.done||(i.value=n(i.value)),i}),o}const dh=Array.prototype;function un(e,t,n,s,o,i){const a=yi(e),r=a!==e&&!Dt(e),c=a[t];if(c!==dh[t]){const u=c.apply(e,i);return r?Yt(u):u}let d=n;a!==e&&(r?d=function(u,f){return n.call(this,nn(e,u),f,e)}:n.length>2&&(d=function(u,f){return n.call(this,u,f,e)}));const l=c.call(a,d,s);return r&&o?o(l):l}function Ur(e,t,n,s){const o=yi(e),i=o!==e&&!Dt(e);let a=n,r=!1;o!==e&&(i?(r=s.length===0,a=function(d,l,u){return r&&(r=!1,d=nn(e,d)),n.call(this,d,nn(e,l),u,e)}):n.length>3&&(a=function(d,l,u){return n.call(this,d,l,u,e)}));const c=o[t](a,...s);return r?nn(e,c):c}function Ki(e,t,n){const s=Pe(e);gt(s,"iterate",ro);const o=s[t](...n);return(o===-1||o===!1)&&Si(n[0])?(n[0]=Pe(n[0]),s[t](...n)):o}function Ps(e,t,n=[]){yn(),er();const s=Pe(e)[t].apply(e,n);return tr(),bn(),s}const fh=Xa("__proto__,__v_isRef,__isVue"),ru=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(zt));function hh(e){zt(e)||(e=String(e));const t=Pe(this);return gt(t,"has",e),t.hasOwnProperty(e)}class lu{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(o?i?pu:hu:i?fu:du).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const a=ve(t);if(!o){let c;if(a&&(c=uh[n]))return c;if(n==="hasOwnProperty")return hh}const r=Reflect.get(t,n,Ye(t)?t:s);if((zt(n)?ru.has(n):fh(n))||(o||gt(t,"get",n),i))return r;if(Ye(r)){const c=a&&mi(n)?r:r.value;return o&&Fe(c)?ya(c):c}return Fe(r)?o?ya(r):pt(r):r}}class cu extends lu{constructor(t=!1){super(!1,t)}set(t,n,s,o){let i=t[n];const a=ve(t)&&mi(n);if(!this._isShallow){const d=wn(i);if(!Dt(s)&&!wn(s)&&(i=Pe(i),s=Pe(s)),!a&&Ye(i)&&!Ye(s))return d||(i.value=s),!0}const r=a?Number(n)<t.length:Me(t,n),c=Reflect.set(t,n,s,Ye(t)?t:o);return t===Pe(o)&&(r?sn(s,i)&&mn(t,"set",n,s):mn(t,"add",n,s)),c}deleteProperty(t,n){const s=Me(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&s&&mn(t,"delete",n,void 0),o}has(t,n){const s=Reflect.has(t,n);return(!zt(n)||!ru.has(n))&>(t,"has",n),s}ownKeys(t){return gt(t,"iterate",ve(t)?"length":Gn),Reflect.ownKeys(t)}}class uu extends lu{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const ph=new cu,mh=new uu,_h=new cu(!0),gh=new uu(!0),va=e=>e,Do=e=>Reflect.getPrototypeOf(e);function vh(e,t,n){return function(...s){const o=this.__v_raw,i=Pe(o),a=ps(i),r=e==="entries"||e===Symbol.iterator&&a,c=e==="keys"&&a,d=o[e](...s),l=n?va:t?vs:Yt;return!t&>(i,"iterate",c?ga:Gn),lt(Object.create(d),{next(){const{value:u,done:f}=d.next();return f?{value:u,done:f}:{value:r?[l(u[0]),l(u[1])]:l(u),done:f}}})}}function Bo(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function yh(e,t){const n={get(o){const i=this.__v_raw,a=Pe(i),r=Pe(o);e||(sn(o,r)&>(a,"get",o),gt(a,"get",r));const{has:c}=Do(a),d=t?va:e?vs:Yt;if(c.call(a,o))return d(i.get(o));if(c.call(a,r))return d(i.get(r));i!==a&&i.get(o)},get size(){const o=this.__v_raw;return!e&>(Pe(o),"iterate",Gn),o.size},has(o){const i=this.__v_raw,a=Pe(i),r=Pe(o);return e||(sn(o,r)&>(a,"has",o),gt(a,"has",r)),o===r?i.has(o):i.has(o)||i.has(r)},forEach(o,i){const a=this,r=a.__v_raw,c=Pe(r),d=t?va:e?vs:Yt;return!e&>(c,"iterate",Gn),r.forEach((l,u)=>o.call(i,d(l),d(u),a))}};return lt(n,e?{add:Bo("add"),set:Bo("set"),delete:Bo("delete"),clear:Bo("clear")}:{add(o){const i=Pe(this),a=Do(i),r=Pe(o),c=!t&&!Dt(o)&&!wn(o)?r:o;return a.has.call(i,c)||sn(o,c)&&a.has.call(i,o)||sn(r,c)&&a.has.call(i,r)||(i.add(c),mn(i,"add",c,c)),this},set(o,i){!t&&!Dt(i)&&!wn(i)&&(i=Pe(i));const a=Pe(this),{has:r,get:c}=Do(a);let d=r.call(a,o);d||(o=Pe(o),d=r.call(a,o));const l=c.call(a,o);return a.set(o,i),d?sn(i,l)&&mn(a,"set",o,i):mn(a,"add",o,i),this},delete(o){const i=Pe(this),{has:a,get:r}=Do(i);let c=a.call(i,o);c||(o=Pe(o),c=a.call(i,o)),r&&r.call(i,o);const d=i.delete(o);return c&&mn(i,"delete",o,void 0),d},clear(){const o=Pe(this),i=o.size!==0,a=o.clear();return i&&mn(o,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=vh(o,e,t)}),n}function bi(e,t){const n=yh(e,t);return(s,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(Me(n,o)&&o in s?n:s,o,i)}const bh={get:bi(!1,!1)},wh={get:bi(!1,!0)},Sh={get:bi(!0,!1)},Eh={get:bi(!0,!0)},du=new WeakMap,fu=new WeakMap,hu=new WeakMap,pu=new WeakMap;function Ch(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function pt(e){return wn(e)?e:wi(e,!1,ph,bh,du)}function mu(e){return wi(e,!1,_h,wh,fu)}function ya(e){return wi(e,!0,mh,Sh,hu)}function Go(e){return wi(e,!0,gh,Eh,pu)}function wi(e,t,n,s,o){if(!Fe(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=o.get(e);if(i)return i;const a=Ch(Jf(e));if(a===0)return e;const r=new Proxy(e,a===2?s:n);return o.set(e,r),r}function gn(e){return wn(e)?gn(e.__v_raw):!!(e&&e.__v_isReactive)}function wn(e){return!!(e&&e.__v_isReadonly)}function Dt(e){return!!(e&&e.__v_isShallow)}function Si(e){return e?!!e.__v_raw:!1}function Pe(e){const t=e&&e.__v_raw;return t?Pe(t):e}function or(e){return!Me(e,"__v_skip")&&Object.isExtensible(e)&&Hc(e,"__v_skip",!0),e}const Yt=e=>Fe(e)?pt(e):e,vs=e=>Fe(e)?ya(e):e;function Ye(e){return e?e.__v_isRef===!0:!1}function q(e){return _u(e,!1)}function Bn(e){return _u(e,!0)}function _u(e,t){return Ye(e)?e:new xh(e,t)}class xh{constructor(t,n){this.dep=new sr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Pe(t),this._value=n?t:Yt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Dt(t)||wn(t);t=s?t:Pe(t),sn(t,n)&&(this._rawValue=t,this._value=s?t:Yt(t),this.dep.trigger())}}function Re(e){return Ye(e)?e.value:e}function ms(e){return Ee(e)?e():Re(e)}const kh={get:(e,t,n)=>t==="__v_raw"?e:Re(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return Ye(o)&&!Ye(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function gu(e){return gn(e)?e:new Proxy(e,kh)}function Th(e){const t=ve(e)?new Array(e.length):{};for(const n in e)t[n]=Rh(e,n);return t}class Ah{constructor(t,n,s){this._object=t,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._key=zt(n)?n:String(n),this._raw=Pe(t);let o=!0,i=t;if(!ve(t)||zt(this._key)||!mi(this._key))do o=!Si(i)||Dt(i);while(o&&(i=i.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=Re(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Ye(this._raw[this._key])){const n=this._object[this._key];if(Ye(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return ch(this._raw,this._key)}}function Rh(e,t,n){return new Ah(e,t,n)}class Ih{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new sr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ao-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&We!==this)return tu(this,!0),!0}get value(){const t=this.dep.track();return ou(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Oh(e,t,n=!1){let s,o;return Ee(e)?s=e:(s=e.get,o=e.set),new Ih(s,o,n)}const No={},si=new WeakMap;let Un;function $h(e,t=!1,n=Un){if(n){let s=si.get(n);s||si.set(n,s=[]),s.push(e)}}function Ph(e,t,n=Ue){const{immediate:s,deep:o,once:i,scheduler:a,augmentJob:r,call:c}=n,d=x=>o?x:Dt(x)||o===!1||o===0?_n(x,1):_n(x);let l,u,f,h,_=!1,m=!1;if(Ye(e)?(u=()=>e.value,_=Dt(e)):gn(e)?(u=()=>d(e),_=!0):ve(e)?(m=!0,_=e.some(x=>gn(x)||Dt(x)),u=()=>e.map(x=>{if(Ye(x))return x.value;if(gn(x))return d(x);if(Ee(x))return c?c(x,2):x()})):Ee(e)?t?u=c?()=>c(e,2):e:u=()=>{if(f){yn();try{f()}finally{bn()}}const x=Un;Un=l;try{return c?c(e,3,[h]):e(h)}finally{Un=x}}:u=rn,t&&o){const x=u,b=o===!0?1/0:o;u=()=>_n(x(),b)}const p=Za(),v=()=>{l.stop(),p&&p.active&&Ya(p.effects,l)};if(i&&t){const x=t;t=(...b)=>{x(...b),v()}}let C=m?new Array(e.length).fill(No):No;const R=x=>{if(!(!(l.flags&1)||!l.dirty&&!x))if(t){const b=l.run();if(o||_||(m?b.some((I,D)=>sn(I,C[D])):sn(b,C))){f&&f();const I=Un;Un=l;try{const D=[b,C===No?void 0:m&&C[0]===No?[]:C,h];C=b,c?c(t,3,D):t(...D)}finally{Un=I}}}else l.run()};return r&&r(R),l=new Zc(u),l.scheduler=a?()=>a(R,!1):R,h=x=>$h(x,!1,l),f=l.onStop=()=>{const x=si.get(l);if(x){if(c)c(x,4);else for(const b of x)b();si.delete(l)}},t?s?R(!0):C=l.run():a?a(R.bind(null,!0),!0):l.run(),v.pause=l.pause.bind(l),v.resume=l.resume.bind(l),v.stop=v,v}function _n(e,t=1/0,n){if(t<=0||!Fe(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ye(e))_n(e.value,t,n);else if(ve(e))for(let s=0;s<e.length;s++)_n(e[s],t,n);else if(jc(e)||ps(e))e.forEach(s=>{_n(s,t,n)});else if(zc(e)){for(const s in e)_n(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&_n(e[s],t,n)}return e}/**
|
||
* @vue/runtime-core v3.5.35
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/function vo(e,t,n,s){try{return s?e(...s):e()}catch(o){yo(o,t,n)}}function Ht(e,t,n,s){if(Ee(e)){const o=vo(e,t,n,s);return o&&qc(o)&&o.catch(i=>{yo(i,t,n)}),o}if(ve(e)){const o=[];for(let i=0;i<e.length;i++)o.push(Ht(e[i],t,n,s));return o}}function yo(e,t,n,s=!0){const o=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||Ue;if(t){let r=t.parent;const c=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const l=r.ec;if(l){for(let u=0;u<l.length;u++)if(l[u](e,c,d)===!1)return}r=r.parent}if(i){yn(),vo(i,null,10,[e,c,d]),bn();return}}Dh(e,n,o,s,a)}function Dh(e,t,n,s=!0,o=!1){if(o)throw e;console.error(e)}const Ct=[];let tn=-1;const _s=[];let $n=null,cs=0;const vu=Promise.resolve();let oi=null;function Xe(e){const t=oi||vu;return e?t.then(this?e.bind(this):e):t}function Bh(e){let t=tn+1,n=Ct.length;for(;t<n;){const s=t+n>>>1,o=Ct[s],i=lo(o);i<e||i===e&&o.flags&2?t=s+1:n=s}return t}function ir(e){if(!(e.flags&1)){const t=lo(e),n=Ct[Ct.length-1];!n||!(e.flags&2)&&t>=lo(n)?Ct.push(e):Ct.splice(Bh(t),0,e),e.flags|=1,yu()}}function yu(){oi||(oi=vu.then(wu))}function ba(e){ve(e)?_s.push(...e):$n&&e.id===-1?$n.splice(cs+1,0,e):e.flags&1||(_s.push(e),e.flags|=1),yu()}function zr(e,t,n=tn+1){for(;n<Ct.length;n++){const s=Ct[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Ct.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function bu(e){if(_s.length){const t=[...new Set(_s)].sort((n,s)=>lo(n)-lo(s));if(_s.length=0,$n){$n.push(...t);return}for($n=t,cs=0;cs<$n.length;cs++){const n=$n[cs];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}$n=null,cs=0}}const lo=e=>e.id==null?e.flags&2?-1:1/0:e.id;function wu(e){try{for(tn=0;tn<Ct.length;tn++){const t=Ct[tn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),vo(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;tn<Ct.length;tn++){const t=Ct[tn];t&&(t.flags&=-2)}tn=-1,Ct.length=0,bu(),oi=null,(Ct.length||_s.length)&&wu()}}let Pt=null,Su=null;function ii(e){const t=Pt;return Pt=e,Su=e&&e.type.__scopeId||null,t}function Je(e,t=Pt,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&li(-1);const i=ii(t);let a;try{a=e(...o)}finally{ii(i),s._d&&li(1)}return a};return s._n=!0,s._c=!0,s._d=!0,s}function Jn(e,t){if(Pt===null)return e;const n=Ti(Pt),s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[i,a,r,c=Ue]=t[o];i&&(Ee(i)&&(i={mounted:i,updated:i}),i.deep&&_n(a),s.push({dir:i,instance:n,value:a,oldValue:void 0,arg:r,modifiers:c}))}return e}function Fn(e,t,n,s){const o=e.dirs,i=t&&t.dirs;for(let a=0;a<o.length;a++){const r=o[a];i&&(r.oldValue=i[a].value);let c=r.dir[s];c&&(yn(),Ht(c,n,8,[e.el,r,e,t]),bn())}}function cn(e,t){if(vt){let n=vt.provides;const s=vt.parent&&vt.parent.provides;s===n&&(n=vt.provides=Object.create(s)),n[e]=t}}function ht(e,t,n=!1){const s=Wt();if(s||Xn){let o=Xn?Xn._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Ee(t)?t.call(s&&s.proxy):t}}function Nh(){return!!(Wt()||Xn)}const Lh=Symbol.for("v-scx"),Mh=()=>ht(Lh);function Eu(e,t){return ar(e,null,t)}function ke(e,t,n){return ar(e,t,n)}function ar(e,t,n=Ue){const{immediate:s,deep:o,flush:i,once:a}=n,r=lt({},n),c=t&&s||!t&&i!=="post";let d;if(fo){if(i==="sync"){const h=Mh();d=h.__watcherHandles||(h.__watcherHandles=[])}else if(!c){const h=()=>{};return h.stop=rn,h.resume=rn,h.pause=rn,h}}const l=vt;r.call=(h,_,m)=>Ht(h,l,_,m);let u=!1;i==="post"?r.scheduler=h=>{_t(h,l&&l.suspense)}:i!=="sync"&&(u=!0,r.scheduler=(h,_)=>{_?h():ir(h)}),r.augmentJob=h=>{t&&(h.flags|=4),u&&(h.flags|=2,l&&(h.id=l.uid,h.i=l))};const f=Ph(e,t,r);return fo&&(d?d.push(f):c&&f()),f}function Fh(e,t,n){const s=this.proxy,o=ze(e)?e.includes(".")?Cu(s,e):()=>s[e]:e.bind(s,s);let i;Ee(t)?i=t:(i=t.handler,n=t);const a=bo(this),r=ar(o,i.bind(s),n);return a(),r}function Cu(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}const In=new WeakMap,xu=Symbol("_vte"),ku=e=>e.__isTeleport,zn=e=>e&&(e.disabled||e.disabled===""),Vh=e=>e&&(e.defer||e.defer===""),Hr=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Wr=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,wa=(e,t)=>{const n=e&&e.to;return ze(n)?t?t(n):null:n},jh={name:"Teleport",__isTeleport:!0,process(e,t,n,s,o,i,a,r,c,d){const{mc:l,pc:u,pbc:f,o:{insert:h,querySelector:_,createText:m,createComment:p,parentNode:v}}=d,C=zn(t.props);let{dynamicChildren:R}=t;const x=(D,K,M)=>{D.shapeFlag&16&&l(D.children,K,M,o,i,a,r,c)},b=(D=t)=>{const K=zn(D.props),M=D.target=wa(D.props,_),F=Sa(M,D,m,h);M&&(a!=="svg"&&Hr(M)?a="svg":a!=="mathml"&&Wr(M)&&(a="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(M),K||(x(D,M,F),Ws(D,!1)))},I=D=>{const K=()=>{if(In.get(D)===K){if(In.delete(D),zn(D.props)){const M=v(D.el)||n;x(D,M,D.anchor),Ws(D,!0)}b(D)}};In.set(D,K),_t(K,i)};if(e==null){const D=t.el=m(""),K=t.anchor=m("");if(h(D,n,s),h(K,n,s),Vh(t.props)||i&&i.pendingBranch){I(t);return}C&&(x(t,n,K),Ws(t,!0)),b()}else{t.el=e.el;const D=t.anchor=e.anchor,K=In.get(e);if(K){K.flags|=8,In.delete(e),I(t);return}t.targetStart=e.targetStart;const M=t.target=e.target,F=t.targetAnchor=e.targetAnchor,B=zn(e.props),O=B?n:M,Q=B?D:F;if(a==="svg"||Hr(M)?a="svg":(a==="mathml"||Wr(M))&&(a="mathml"),R?(f(e.dynamicChildren,R,O,o,i,a,r),fr(e,t,!0)):c||u(e,t,O,Q,o,i,a,r,!1),C)B?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Lo(t,n,D,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const Z=t.target=wa(t.props,_);Z&&Lo(t,Z,null,d,0)}else B&&Lo(t,M,F,d,1);Ws(t,C)}},remove(e,t,n,{um:s,o:{remove:o}},i){const{shapeFlag:a,children:r,anchor:c,targetStart:d,targetAnchor:l,target:u,props:f}=e,h=i||!zn(f),_=In.get(e);if(_&&(_.flags|=8,In.delete(e)),u&&(o(d),o(l)),i&&o(c),!_&&a&16)for(let m=0;m<r.length;m++){const p=r[m];s(p,t,n,h,!!p.dynamicChildren)}},move:Lo,hydrate:qh};function Lo(e,t,n,{o:{insert:s},m:o},i=2){i===0&&s(e.targetAnchor,t,n);const{el:a,anchor:r,shapeFlag:c,children:d,props:l}=e,u=i===2;if(u&&s(a,t,n),!In.has(e)&&(!u||zn(l))&&c&16)for(let f=0;f<d.length;f++)o(d[f],t,n,2);u&&s(r,t,n)}function qh(e,t,n,s,o,i,{o:{nextSibling:a,parentNode:r,querySelector:c,insert:d,createText:l}},u){function f(p,v){let C=v;for(;C;){if(C&&C.nodeType===8){if(C.data==="teleport start anchor")t.targetStart=C;else if(C.data==="teleport anchor"){t.targetAnchor=C,p._lpa=t.targetAnchor&&a(t.targetAnchor);break}}C=a(C)}}function h(p,v){v.anchor=u(a(p),v,r(p),n,s,o,i)}const _=t.target=wa(t.props,c),m=zn(t.props);if(_){const p=_._lpa||_.firstChild;t.shapeFlag&16&&(m?(h(e,t),f(_,p),t.targetAnchor||Sa(_,t,l,d,r(e)===_?e:null)):(t.anchor=a(e),f(_,p),t.targetAnchor||Sa(_,t,l,d),u(p&&a(p),t,_,n,s,o,i))),Ws(t,m)}else m&&t.shapeFlag&16&&(h(e,t),t.targetStart=e,t.targetAnchor=a(e));return t.anchor&&a(t.anchor)}const Tu=jh;function Ws(e,t){const n=e.ctx;if(n&&n.ut){let s,o;for(t?(s=e.el,o=e.anchor):(s=e.targetStart,o=e.targetAnchor);s&&s!==o;)s.nodeType===1&&s.setAttribute("data-v-owner",n.uid),s=s.nextSibling;n.ut()}}function Sa(e,t,n,s,o=null){const i=t.targetStart=n(""),a=t.targetAnchor=n("");return i[xu]=a,e&&(s(i,e,o),s(a,e,o)),a}const qt=Symbol("_leaveCb"),Ds=Symbol("_enterCb");function Uh(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return nt(()=>{e.isMounted=!0}),Ts(()=>{e.isUnmounting=!0}),e}const Ft=[Function,Array],Au={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ft,onEnter:Ft,onAfterEnter:Ft,onEnterCancelled:Ft,onBeforeLeave:Ft,onLeave:Ft,onAfterLeave:Ft,onLeaveCancelled:Ft,onBeforeAppear:Ft,onAppear:Ft,onAfterAppear:Ft,onAppearCancelled:Ft},Ru=e=>{const t=e.subTree;return t.component?Ru(t.component):t},zh={name:"BaseTransition",props:Au,setup(e,{slots:t}){const n=Wt(),s=Uh();return()=>{const o=t.default&&$u(t.default(),!0),i=o&&o.length?Iu(o):n.subTree?le():void 0;if(!i)return;const a=Pe(e),{mode:r}=a;if(s.isLeaving)return Gi(i);const c=Kr(i);if(!c)return Gi(i);let d=Ea(c,a,s,n,u=>d=u);c.type!==ft&&co(c,d);let l=n.subTree&&Kr(n.subTree);if(l&&l.type!==ft&&!on(l,c)&&Ru(n).type!==ft){let u=Ea(l,a,s,n);if(co(l,u),r==="out-in"&&c.type!==ft)return s.isLeaving=!0,u.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete u.afterLeave,l=void 0},Gi(i);r==="in-out"&&c.type!==ft?u.delayLeave=(f,h,_)=>{const m=Ou(s,l);m[String(l.key)]=l,f[qt]=()=>{h(),f[qt]=void 0,delete d.delayedLeave,l=void 0},d.delayedLeave=()=>{_(),delete d.delayedLeave,l=void 0}}:l=void 0}else l&&(l=void 0);return i}}};function Iu(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ft){t=n;break}}return t}const Hh=zh;function Ou(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Ea(e,t,n,s,o){const{appear:i,mode:a,persisted:r=!1,onBeforeEnter:c,onEnter:d,onAfterEnter:l,onEnterCancelled:u,onBeforeLeave:f,onLeave:h,onAfterLeave:_,onLeaveCancelled:m,onBeforeAppear:p,onAppear:v,onAfterAppear:C,onAppearCancelled:R}=t,x=String(e.key),b=Ou(n,e),I=(M,F)=>{M&&Ht(M,s,9,F)},D=(M,F)=>{const B=F[1];I(M,F),ve(M)?M.every(O=>O.length<=1)&&B():M.length<=1&&B()},K={mode:a,persisted:r,beforeEnter(M){let F=c;if(!n.isMounted)if(i)F=p||c;else return;M[qt]&&M[qt](!0);const B=b[x];B&&on(e,B)&&B.el[qt]&&B.el[qt](),I(F,[M])},enter(M){if(b[x]===e)return;let F=d,B=l,O=u;if(!n.isMounted)if(i)F=v||d,B=C||l,O=R||u;else return;let Q=!1;M[Ds]=Ce=>{Q||(Q=!0,Ce?I(O,[M]):I(B,[M]),K.delayedLeave&&K.delayedLeave(),M[Ds]=void 0)};const Z=M[Ds].bind(null,!1);F?D(F,[M,Z]):Z()},leave(M,F){const B=String(e.key);if(M[Ds]&&M[Ds](!0),n.isUnmounting)return F();I(f,[M]);let O=!1;M[qt]=Z=>{O||(O=!0,F(),Z?I(m,[M]):I(_,[M]),M[qt]=void 0,b[B]===e&&delete b[B])};const Q=M[qt].bind(null,!1);b[B]=e,h?D(h,[M,Q]):Q()},clone(M){const F=Ea(M,t,n,s,o);return o&&o(F),F}};return K}function Gi(e){if(Ei(e))return e=Nn(e),e.children=null,e}function Kr(e){if(!Ei(e))return ku(e.type)&&e.children?Iu(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Ee(n.default))return n.default()}}function co(e,t){e.shapeFlag&6&&e.component?(e.transition=t,co(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 $u(e,t=!1,n){let s=[],o=0;for(let i=0;i<e.length;i++){let a=e[i];const r=n==null?a.key:String(n)+String(a.key!=null?a.key:i);a.type===Se?(a.patchFlag&128&&o++,s=s.concat($u(a.children,t,r))):(t||a.type!==ft)&&s.push(r!=null?Nn(a,{key:r}):a)}if(o>1)for(let i=0;i<s.length;i++)s[i].patchFlag=-2;return s}function be(e,t){return Ee(e)?lt({name:e.name},t,{setup:e}):e}function Pu(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Gr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const ai=new WeakMap;function Qs(e,t,n,s,o=!1){if(ve(e)){e.forEach((m,p)=>Qs(m,t&&(ve(t)?t[p]:t),n,s,o));return}if(Zs(s)&&!o){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Qs(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?Ti(s.component):s.el,a=o?null:i,{i:r,r:c}=e,d=t&&t.r,l=r.refs===Ue?r.refs={}:r.refs,u=r.setupState,f=Pe(u),h=u===Ue?Vc:m=>Gr(l,m)?!1:Me(f,m),_=(m,p)=>!(p&&Gr(l,p));if(d!=null&&d!==c){if(Jr(t),ze(d))l[d]=null,h(d)&&(u[d]=null);else if(Ye(d)){const m=t;_(d,m.k)&&(d.value=null),m.k&&(l[m.k]=null)}}if(Ee(c))vo(c,r,12,[a,l]);else{const m=ze(c),p=Ye(c);if(m||p){const v=()=>{if(e.f){const C=m?h(c)?u[c]:l[c]:_()||!e.k?c.value:l[e.k];if(o)ve(C)&&Ya(C,i);else if(ve(C))C.includes(i)||C.push(i);else if(m)l[c]=[i],h(c)&&(u[c]=l[c]);else{const R=[i];_(c,e.k)&&(c.value=R),e.k&&(l[e.k]=R)}}else m?(l[c]=a,h(c)&&(u[c]=a)):p&&(_(c,e.k)&&(c.value=a),e.k&&(l[e.k]=a))};if(a){const C=()=>{v(),ai.delete(e)};C.id=-1,ai.set(e,C),_t(C,n)}else Jr(e),v()}}}function Jr(e){const t=ai.get(e);t&&(t.flags|=8,ai.delete(e))}vi().requestIdleCallback;vi().cancelIdleCallback;const Zs=e=>!!e.type.__asyncLoader,Ei=e=>e.type.__isKeepAlive;function ks(e,t){Du(e,"a",t)}function es(e,t){Du(e,"da",t)}function Du(e,t,n=vt){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Ci(t,s,n),n){let o=n.parent;for(;o&&o.parent;)Ei(o.parent.vnode)&&Wh(s,t,n,o),o=o.parent}}function Wh(e,t,n,s){const o=Ci(t,e,s,!0);Ln(()=>{Ya(s[t],o)},n)}function Ci(e,t,n=vt,s=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{yn();const r=bo(n),c=Ht(t,n,e,a);return r(),bn(),c});return s?o.unshift(i):o.push(i),i}}const Cn=e=>(t,n=vt)=>{(!fo||e==="sp")&&Ci(e,(...s)=>t(...s),n)},Kh=Cn("bm"),nt=Cn("m"),Bu=Cn("bu"),Gh=Cn("u"),Ts=Cn("bum"),Ln=Cn("um"),Jh=Cn("sp"),Xh=Cn("rtg"),Yh=Cn("rtc");function Qh(e,t=vt){Ci("ec",e,t)}const rr="components",Zh="directives";function ep(e,t){return lr(rr,e,!0,t)||e}const Nu=Symbol.for("v-ndc");function tp(e){return ze(e)?lr(rr,e,!1)||e:e||Nu}function LT(e){return lr(Zh,e)}function lr(e,t,n=!0,s=!1){const o=Pt||vt;if(o){const i=o.type;if(e===rr){const r=Hp(i,!1);if(r&&(r===t||r===xt(t)||r===gi(xt(t))))return i}const a=Xr(o[e]||i[e],t)||Xr(o.appContext[e],t);return!a&&s?i:a}}function Xr(e,t){return e&&(e[t]||e[xt(t)]||e[gi(xt(t))])}function tt(e,t,n,s){let o;const i=n,a=ve(e);if(a||ze(e)){const r=a&&gn(e);let c=!1,d=!1;r&&(c=!Dt(e),d=wn(e),e=yi(e)),o=new Array(e.length);for(let l=0,u=e.length;l<u;l++)o[l]=t(c?d?vs(Yt(e[l])):Yt(e[l]):e[l],l,void 0,i)}else if(typeof e=="number"){o=new Array(e);for(let r=0;r<e;r++)o[r]=t(r+1,r,void 0,i)}else if(Fe(e))if(e[Symbol.iterator])o=Array.from(e,(r,c)=>t(r,c,void 0,i));else{const r=Object.keys(e);o=new Array(r.length);for(let c=0,d=r.length;c<d;c++){const l=r[c];o[c]=t(e[l],l,c,i)}}else o=[];return o}const Ca=e=>e?sd(e)?Ti(e):Ca(e.parent):null,eo=lt(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=>Ca(e.parent),$root:e=>Ca(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Mu(e),$forceUpdate:e=>e.f||(e.f=()=>{ir(e.update)}),$nextTick:e=>e.n||(e.n=Xe.bind(e.proxy)),$watch:e=>Fh.bind(e)}),Ji=(e,t)=>e!==Ue&&!e.__isScriptSetup&&Me(e,t),np={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:o,props:i,accessCache:a,type:r,appContext:c}=e;if(t[0]!=="$"){const f=a[t];if(f!==void 0)switch(f){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Ji(s,t))return a[t]=1,s[t];if(o!==Ue&&Me(o,t))return a[t]=2,o[t];if(Me(i,t))return a[t]=3,i[t];if(n!==Ue&&Me(n,t))return a[t]=4,n[t];xa&&(a[t]=0)}}const d=eo[t];let l,u;if(d)return t==="$attrs"&>(e.attrs,"get",""),d(e);if((l=r.__cssModules)&&(l=l[t]))return l;if(n!==Ue&&Me(n,t))return a[t]=4,n[t];if(u=c.config.globalProperties,Me(u,t))return u[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:i}=e;return Ji(o,t)?(o[t]=n,!0):s!==Ue&&Me(s,t)?(s[t]=n,!0):Me(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,props:i,type:a}},r){let c;return!!(n[r]||e!==Ue&&r[0]!=="$"&&Me(e,r)||Ji(t,r)||Me(i,r)||Me(s,r)||Me(eo,r)||Me(o.config.globalProperties,r)||(c=a.__cssModules)&&c[r])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Me(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Yr(e){return ve(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let xa=!0;function sp(e){const t=Mu(e),n=e.proxy,s=e.ctx;xa=!1,t.beforeCreate&&Qr(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:a,watch:r,provide:c,inject:d,created:l,beforeMount:u,mounted:f,beforeUpdate:h,updated:_,activated:m,deactivated:p,beforeDestroy:v,beforeUnmount:C,destroyed:R,unmounted:x,render:b,renderTracked:I,renderTriggered:D,errorCaptured:K,serverPrefetch:M,expose:F,inheritAttrs:B,components:O,directives:Q,filters:Z}=t;if(d&&op(d,s,null),a)for(const ae in a){const de=a[ae];Ee(de)&&(s[ae]=de.bind(n))}if(o){const ae=o.call(n,n);Fe(ae)&&(e.data=pt(ae))}if(xa=!0,i)for(const ae in i){const de=i[ae],xe=Ee(de)?de.bind(n,n):Ee(de.get)?de.get.bind(n,n):rn,we=!Ee(de)&&Ee(de.set)?de.set.bind(n):rn,oe=j({get:xe,set:we});Object.defineProperty(s,ae,{enumerable:!0,configurable:!0,get:()=>oe.value,set:ne=>oe.value=ne})}if(r)for(const ae in r)Lu(r[ae],s,n,ae);if(c){const ae=Ee(c)?c.call(n):c;Reflect.ownKeys(ae).forEach(de=>{cn(de,ae[de])})}l&&Qr(l,e,"c");function he(ae,de){ve(de)?de.forEach(xe=>ae(xe.bind(n))):de&&ae(de.bind(n))}if(he(Kh,u),he(nt,f),he(Bu,h),he(Gh,_),he(ks,m),he(es,p),he(Qh,K),he(Yh,I),he(Xh,D),he(Ts,C),he(Ln,x),he(Jh,M),ve(F))if(F.length){const ae=e.exposed||(e.exposed={});F.forEach(de=>{Object.defineProperty(ae,de,{get:()=>n[de],set:xe=>n[de]=xe,enumerable:!0})})}else e.exposed||(e.exposed={});b&&e.render===rn&&(e.render=b),B!=null&&(e.inheritAttrs=B),O&&(e.components=O),Q&&(e.directives=Q),M&&Pu(e)}function op(e,t,n=rn){ve(e)&&(e=ka(e));for(const s in e){const o=e[s];let i;Fe(o)?"default"in o?i=ht(o.from||s,o.default,!0):i=ht(o.from||s):i=ht(o),Ye(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[s]=i}}function Qr(e,t,n){Ht(ve(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Lu(e,t,n,s){let o=s.includes(".")?Cu(n,s):()=>n[s];if(ze(e)){const i=t[e];Ee(i)&&ke(o,i)}else if(Ee(e))ke(o,e.bind(n));else if(Fe(e))if(ve(e))e.forEach(i=>Lu(i,t,n,s));else{const i=Ee(e.handler)?e.handler.bind(n):t[e.handler];Ee(i)&&ke(o,i,e)}}function Mu(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,r=i.get(t);let c;return r?c=r:!o.length&&!n&&!s?c=t:(c={},o.length&&o.forEach(d=>ri(c,d,a,!0)),ri(c,t,a)),Fe(t)&&i.set(t,c),c}function ri(e,t,n,s=!1){const{mixins:o,extends:i}=t;i&&ri(e,i,n,!0),o&&o.forEach(a=>ri(e,a,n,!0));for(const a in t)if(!(s&&a==="expose")){const r=ip[a]||n&&n[a];e[a]=r?r(e[a],t[a]):t[a]}return e}const ip={data:Zr,props:el,emits:el,methods:Ks,computed:Ks,beforeCreate:wt,created:wt,beforeMount:wt,mounted:wt,beforeUpdate:wt,updated:wt,beforeDestroy:wt,beforeUnmount:wt,destroyed:wt,unmounted:wt,activated:wt,deactivated:wt,errorCaptured:wt,serverPrefetch:wt,components:Ks,directives:Ks,watch:rp,provide:Zr,inject:ap};function Zr(e,t){return t?e?function(){return lt(Ee(e)?e.call(this,this):e,Ee(t)?t.call(this,this):t)}:t:e}function ap(e,t){return Ks(ka(e),ka(t))}function ka(e){if(ve(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function wt(e,t){return e?[...new Set([].concat(e,t))]:t}function Ks(e,t){return e?lt(Object.create(null),e,t):t}function el(e,t){return e?ve(e)&&ve(t)?[...new Set([...e,...t])]:lt(Object.create(null),Yr(e),Yr(t??{})):t}function rp(e,t){if(!e)return t;if(!t)return e;const n=lt(Object.create(null),e);for(const s in t)n[s]=wt(e[s],t[s]);return n}function Fu(){return{app:null,config:{isNativeTag:Vc,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let lp=0;function cp(e,t){return function(s,o=null){Ee(s)||(s=lt({},s)),o!=null&&!Fe(o)&&(o=null);const i=Fu(),a=new WeakSet,r=[];let c=!1;const d=i.app={_uid:lp++,_component:s,_props:o,_container:null,_context:i,_instance:null,version:Kp,get config(){return i.config},set config(l){},use(l,...u){return a.has(l)||(l&&Ee(l.install)?(a.add(l),l.install(d,...u)):Ee(l)&&(a.add(l),l(d,...u))),d},mixin(l){return i.mixins.includes(l)||i.mixins.push(l),d},component(l,u){return u?(i.components[l]=u,d):i.components[l]},directive(l,u){return u?(i.directives[l]=u,d):i.directives[l]},mount(l,u,f){if(!c){const h=d._ceVNode||E(s,o);return h.appContext=i,f===!0?f="svg":f===!1&&(f=void 0),e(h,l,f),c=!0,d._container=l,l.__vue_app__=d,Ti(h.component)}},onUnmount(l){r.push(l)},unmount(){c&&(Ht(r,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(l,u){return i.provides[l]=u,d},runWithContext(l){const u=Xn;Xn=d;try{return l()}finally{Xn=u}}};return d}}let Xn=null;const up=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${xt(t)}Modifiers`]||e[`${En(t)}Modifiers`];function dp(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Ue;let o=n;const i=t.startsWith("update:"),a=i&&up(s,t.slice(7));a&&(a.trim&&(o=n.map(l=>ze(l)?l.trim():l)),a.number&&(o=n.map(Qf)));let r,c=s[r=qi(t)]||s[r=qi(xt(t))];!c&&i&&(c=s[r=qi(En(t))]),c&&Ht(c,e,6,o);const d=s[r+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[r])return;e.emitted[r]=!0,Ht(d,e,6,o)}}const fp=new WeakMap;function Vu(e,t,n=!1){const s=n?fp:t.emitsCache,o=s.get(e);if(o!==void 0)return o;const i=e.emits;let a={},r=!1;if(!Ee(e)){const c=d=>{const l=Vu(d,t,!0);l&&(r=!0,lt(a,l))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!r?(Fe(e)&&s.set(e,null),null):(ve(i)?i.forEach(c=>a[c]=null):lt(a,i),Fe(e)&&s.set(e,a),a)}function xi(e,t){return!e||!hi(t)?!1:(t=t.slice(2).replace(/Once$/,""),Me(e,t[0].toLowerCase()+t.slice(1))||Me(e,En(t))||Me(e,t))}function tl(e){const{type:t,vnode:n,proxy:s,withProxy:o,propsOptions:[i],slots:a,attrs:r,emit:c,render:d,renderCache:l,props:u,data:f,setupState:h,ctx:_,inheritAttrs:m}=e,p=ii(e);let v,C;try{if(n.shapeFlag&4){const x=o||s,b=x;v=Gt(d.call(b,x,l,u,h,f,_)),C=r}else{const x=t;v=Gt(x.length>1?x(u,{attrs:r,slots:a,emit:c}):x(u,null)),C=t.props?r:pp(r)}}catch(x){to.length=0,yo(x,e,1),v=E(ft)}let R=v;if(C&&m!==!1){const x=Object.keys(C),{shapeFlag:b}=R;x.length&&b&7&&(i&&x.some(pi)&&(C=mp(C,i)),R=Nn(R,C,!1,!0))}return n.dirs&&(R=Nn(R,null,!1,!0),R.dirs=R.dirs?R.dirs.concat(n.dirs):n.dirs),n.transition&&co(R,n.transition),v=R,ii(p),v}function hp(e,t=!0){let n;for(let s=0;s<e.length;s++){const o=e[s];if(bs(o)){if(o.type!==ft||o.children==="v-if"){if(n)return;n=o}}else return}return n}const pp=e=>{let t;for(const n in e)(n==="class"||n==="style"||hi(n))&&((t||(t={}))[n]=e[n]);return t},mp=(e,t)=>{const n={};for(const s in e)(!pi(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function _p(e,t,n){const{props:s,children:o,component:i}=e,{props:a,children:r,patchFlag:c}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?nl(s,a,d):!!a;if(c&8){const l=t.dynamicProps;for(let u=0;u<l.length;u++){const f=l[u];if(ju(a,s,f)&&!xi(d,f))return!0}}}else return(o||r)&&(!r||!r.$stable)?!0:s===a?!1:s?a?nl(s,a,d):!0:!!a;return!1}function nl(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let o=0;o<s.length;o++){const i=s[o];if(ju(t,e,i)&&!xi(n,i))return!0}return!1}function ju(e,t,n){const s=e[n],o=t[n];return n==="style"&&Fe(s)&&Fe(o)?!Qa(s,o):s!==o}function cr({vnode:e,parent:t,suspense:n},s){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.suspense.vnode.el=o.el=s,e=o),o===e)(e=t.vnode).el=s,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=s)}const qu={},Uu=()=>Object.create(qu),zu=e=>Object.getPrototypeOf(e)===qu;function gp(e,t,n,s=!1){const o={},i=Uu();e.propsDefaults=Object.create(null),Hu(e,t,o,i);for(const a in e.propsOptions[0])a in o||(o[a]=void 0);n?e.props=s?o:mu(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function vp(e,t,n,s){const{props:o,attrs:i,vnode:{patchFlag:a}}=e,r=Pe(o),[c]=e.propsOptions;let d=!1;if((s||a>0)&&!(a&16)){if(a&8){const l=e.vnode.dynamicProps;for(let u=0;u<l.length;u++){let f=l[u];if(xi(e.emitsOptions,f))continue;const h=t[f];if(c)if(Me(i,f))h!==i[f]&&(i[f]=h,d=!0);else{const _=xt(f);o[_]=Ta(c,r,_,h,e,!1)}else h!==i[f]&&(i[f]=h,d=!0)}}}else{Hu(e,t,o,i)&&(d=!0);let l;for(const u in r)(!t||!Me(t,u)&&((l=En(u))===u||!Me(t,l)))&&(c?n&&(n[u]!==void 0||n[l]!==void 0)&&(o[u]=Ta(c,r,u,void 0,e,!0)):delete o[u]);if(i!==r)for(const u in i)(!t||!Me(t,u))&&(delete i[u],d=!0)}d&&mn(e.attrs,"set","")}function Hu(e,t,n,s){const[o,i]=e.propsOptions;let a=!1,r;if(t)for(let c in t){if(Js(c))continue;const d=t[c];let l;o&&Me(o,l=xt(c))?!i||!i.includes(l)?n[l]=d:(r||(r={}))[l]=d:xi(e.emitsOptions,c)||(!(c in s)||d!==s[c])&&(s[c]=d,a=!0)}if(i){const c=Pe(n),d=r||Ue;for(let l=0;l<i.length;l++){const u=i[l];n[u]=Ta(o,c,u,d[u],e,!Me(d,u))}}return a}function Ta(e,t,n,s,o,i){const a=e[n];if(a!=null){const r=Me(a,"default");if(r&&s===void 0){const c=a.default;if(a.type!==Function&&!a.skipFactory&&Ee(c)){const{propsDefaults:d}=o;if(n in d)s=d[n];else{const l=bo(o);s=d[n]=c.call(null,t),l()}}else s=c;o.ce&&o.ce._setProp(n,s)}a[0]&&(i&&!r?s=!1:a[1]&&(s===""||s===En(n))&&(s=!0))}return s}const yp=new WeakMap;function Wu(e,t,n=!1){const s=n?yp:t.propsCache,o=s.get(e);if(o)return o;const i=e.props,a={},r=[];let c=!1;if(!Ee(e)){const l=u=>{c=!0;const[f,h]=Wu(u,t,!0);lt(a,f),h&&r.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}if(!i&&!c)return Fe(e)&&s.set(e,hs),hs;if(ve(i))for(let l=0;l<i.length;l++){const u=xt(i[l]);sl(u)&&(a[u]=Ue)}else if(i)for(const l in i){const u=xt(l);if(sl(u)){const f=i[l],h=a[u]=ve(f)||Ee(f)?{type:f}:lt({},f),_=h.type;let m=!1,p=!0;if(ve(_))for(let v=0;v<_.length;++v){const C=_[v],R=Ee(C)&&C.name;if(R==="Boolean"){m=!0;break}else R==="String"&&(p=!1)}else m=Ee(_)&&_.name==="Boolean";h[0]=m,h[1]=p,(m||Me(h,"default"))&&r.push(u)}}const d=[a,r];return Fe(e)&&s.set(e,d),d}function sl(e){return e[0]!=="$"&&!Js(e)}const ur=e=>e==="_"||e==="_ctx"||e==="$stable",dr=e=>ve(e)?e.map(Gt):[Gt(e)],bp=(e,t,n)=>{if(t._n)return t;const s=Je((...o)=>dr(t(...o)),n);return s._c=!1,s},Ku=(e,t,n)=>{const s=e._ctx;for(const o in e){if(ur(o))continue;const i=e[o];if(Ee(i))t[o]=bp(o,i,s);else if(i!=null){const a=dr(i);t[o]=()=>a}}},Gu=(e,t)=>{const n=dr(t);e.slots.default=()=>n},Ju=(e,t,n)=>{for(const s in t)(n||!ur(s))&&(e[s]=t[s])},wp=(e,t,n)=>{const s=e.slots=Uu();if(e.vnode.shapeFlag&32){const o=t._;o?(Ju(s,t,n),n&&Hc(s,"_",o,!0)):Ku(t,s)}else t&&Gu(e,t)},Sp=(e,t,n)=>{const{vnode:s,slots:o}=e;let i=!0,a=Ue;if(s.shapeFlag&32){const r=t._;r?n&&r===1?i=!1:Ju(o,t,n):(i=!t.$stable,Ku(t,o)),a=t}else t&&(Gu(e,t),a={default:1});if(i)for(const r in o)!ur(r)&&a[r]==null&&delete o[r]},_t=Pp;function Ep(e){return Cp(e)}function Cp(e,t){const n=vi();n.__VUE__=!0;const{insert:s,remove:o,patchProp:i,createElement:a,createText:r,createComment:c,setText:d,setElementText:l,parentNode:u,nextSibling:f,setScopeId:h=rn,insertStaticContent:_}=e,m=(y,w,T,U=null,G=null,W=null,se=void 0,te=null,ee=!!w.dynamicChildren)=>{if(y===w)return;y&&!on(y,w)&&(U=S(y),ne(y,G,W,!0),y=null),w.patchFlag===-2&&(ee=!1,w.dynamicChildren=null);const{type:X,ref:_e,shapeFlag:re}=w;switch(X){case ki:p(y,w,T,U);break;case ft:v(y,w,T,U);break;case Jo:y==null&&C(w,T,U,se);break;case Se:O(y,w,T,U,G,W,se,te,ee);break;default:re&1?b(y,w,T,U,G,W,se,te,ee):re&6?Q(y,w,T,U,G,W,se,te,ee):(re&64||re&128)&&X.process(y,w,T,U,G,W,se,te,ee,N)}_e!=null&&G?Qs(_e,y&&y.ref,W,w||y,!w):_e==null&&y&&y.ref!=null&&Qs(y.ref,null,W,y,!0)},p=(y,w,T,U)=>{if(y==null)s(w.el=r(w.children),T,U);else{const G=w.el=y.el;w.children!==y.children&&d(G,w.children)}},v=(y,w,T,U)=>{y==null?s(w.el=c(w.children||""),T,U):w.el=y.el},C=(y,w,T,U)=>{[y.el,y.anchor]=_(y.children,w,T,U,y.el,y.anchor)},R=({el:y,anchor:w},T,U)=>{let G;for(;y&&y!==w;)G=f(y),s(y,T,U),y=G;s(w,T,U)},x=({el:y,anchor:w})=>{let T;for(;y&&y!==w;)T=f(y),o(y),y=T;o(w)},b=(y,w,T,U,G,W,se,te,ee)=>{if(w.type==="svg"?se="svg":w.type==="math"&&(se="mathml"),y==null)I(w,T,U,G,W,se,te,ee);else{const X=y.el&&y.el._isVueCE?y.el:null;try{X&&X._beginPatch(),M(y,w,G,W,se,te,ee)}finally{X&&X._endPatch()}}},I=(y,w,T,U,G,W,se,te)=>{let ee,X;const{props:_e,shapeFlag:re,transition:pe,dirs:ye}=y;if(ee=y.el=a(y.type,W,_e&&_e.is,_e),re&8?l(ee,y.children):re&16&&K(y.children,ee,null,U,G,Xi(y,W),se,te),ye&&Fn(y,null,U,"created"),D(ee,y,y.scopeId,se,U),_e){for(const De in _e)De!=="value"&&!Js(De)&&i(ee,De,null,_e[De],W,U);"value"in _e&&i(ee,"value",null,_e.value,W),(X=_e.onVnodeBeforeMount)&&en(X,U,y)}ye&&Fn(y,null,U,"beforeMount");const Ie=xp(G,pe);Ie&&pe.beforeEnter(ee),s(ee,w,T),((X=_e&&_e.onVnodeMounted)||Ie||ye)&&_t(()=>{try{X&&en(X,U,y),Ie&&pe.enter(ee),ye&&Fn(y,null,U,"mounted")}finally{}},G)},D=(y,w,T,U,G)=>{if(T&&h(y,T),U)for(let W=0;W<U.length;W++)h(y,U[W]);if(G){let W=G.subTree;if(w===W||Qu(W.type)&&(W.ssContent===w||W.ssFallback===w)){const se=G.vnode;D(y,se,se.scopeId,se.slotScopeIds,G.parent)}}},K=(y,w,T,U,G,W,se,te,ee=0)=>{for(let X=ee;X<y.length;X++){const _e=y[X]=te?pn(y[X]):Gt(y[X]);m(null,_e,w,T,U,G,W,se,te)}},M=(y,w,T,U,G,W,se)=>{const te=w.el=y.el;let{patchFlag:ee,dynamicChildren:X,dirs:_e}=w;ee|=y.patchFlag&16;const re=y.props||Ue,pe=w.props||Ue;let ye;if(T&&Vn(T,!1),(ye=pe.onVnodeBeforeUpdate)&&en(ye,T,w,y),_e&&Fn(w,y,T,"beforeUpdate"),T&&Vn(T,!0),(re.innerHTML&&pe.innerHTML==null||re.textContent&&pe.textContent==null)&&l(te,""),X?F(y.dynamicChildren,X,te,T,U,Xi(w,G),W):se||de(y,w,te,null,T,U,Xi(w,G),W,!1),ee>0){if(ee&16)B(te,re,pe,T,G);else if(ee&2&&re.class!==pe.class&&i(te,"class",null,pe.class,G),ee&4&&i(te,"style",re.style,pe.style,G),ee&8){const Ie=w.dynamicProps;for(let De=0;De<Ie.length;De++){const Ne=Ie[De],Ze=re[Ne],it=pe[Ne];(it!==Ze||Ne==="value")&&i(te,Ne,Ze,it,G,T)}}ee&1&&y.children!==w.children&&l(te,w.children)}else!se&&X==null&&B(te,re,pe,T,G);((ye=pe.onVnodeUpdated)||_e)&&_t(()=>{ye&&en(ye,T,w,y),_e&&Fn(w,y,T,"updated")},U)},F=(y,w,T,U,G,W,se)=>{for(let te=0;te<w.length;te++){const ee=y[te],X=w[te],_e=ee.el&&(ee.type===Se||!on(ee,X)||ee.shapeFlag&198)?u(ee.el):T;m(ee,X,_e,null,U,G,W,se,!0)}},B=(y,w,T,U,G)=>{if(w!==T){if(w!==Ue)for(const W in w)!Js(W)&&!(W in T)&&i(y,W,w[W],null,G,U);for(const W in T){if(Js(W))continue;const se=T[W],te=w[W];se!==te&&W!=="value"&&i(y,W,te,se,G,U)}"value"in T&&i(y,"value",w.value,T.value,G)}},O=(y,w,T,U,G,W,se,te,ee)=>{const X=w.el=y?y.el:r(""),_e=w.anchor=y?y.anchor:r("");let{patchFlag:re,dynamicChildren:pe,slotScopeIds:ye}=w;ye&&(te=te?te.concat(ye):ye),y==null?(s(X,T,U),s(_e,T,U),K(w.children||[],T,_e,G,W,se,te,ee)):re>0&&re&64&&pe&&y.dynamicChildren&&y.dynamicChildren.length===pe.length?(F(y.dynamicChildren,pe,T,G,W,se,te),(w.key!=null||G&&w===G.subTree)&&fr(y,w,!0)):de(y,w,T,_e,G,W,se,te,ee)},Q=(y,w,T,U,G,W,se,te,ee)=>{w.slotScopeIds=te,y==null?w.shapeFlag&512?G.ctx.activate(w,T,U,se,ee):Z(w,T,U,G,W,se,ee):Ce(y,w,ee)},Z=(y,w,T,U,G,W,se)=>{const te=y.component=Vp(y,U,G);if(Ei(y)&&(te.ctx.renderer=N),jp(te,!1,se),te.asyncDep){if(G&&G.registerDep(te,he,se),!y.el){const ee=te.subTree=E(ft);v(null,ee,w,T),y.placeholder=ee.el}}else he(te,y,w,T,G,W,se)},Ce=(y,w,T)=>{const U=w.component=y.component;if(_p(y,w,T))if(U.asyncDep&&!U.asyncResolved){ae(U,w,T);return}else U.next=w,U.update();else w.el=y.el,U.vnode=w},he=(y,w,T,U,G,W,se)=>{const te=()=>{if(y.isMounted){let{next:re,bu:pe,u:ye,parent:Ie,vnode:De}=y;{const Lt=Xu(y);if(Lt){re&&(re.el=De.el,ae(y,re,se)),Lt.asyncDep.then(()=>{_t(()=>{y.isUnmounted||X()},G)});return}}let Ne=re,Ze;Vn(y,!1),re?(re.el=De.el,ae(y,re,se)):re=De,pe&&Ui(pe),(Ze=re.props&&re.props.onVnodeBeforeUpdate)&&en(Ze,Ie,re,De),Vn(y,!0);const it=tl(y),Nt=y.subTree;y.subTree=it,m(Nt,it,u(Nt.el),S(Nt),y,G,W),re.el=it.el,Ne===null&&cr(y,it.el),ye&&_t(ye,G),(Ze=re.props&&re.props.onVnodeUpdated)&&_t(()=>en(Ze,Ie,re,De),G)}else{let re;const{el:pe,props:ye}=w,{bm:Ie,m:De,parent:Ne,root:Ze,type:it}=y,Nt=Zs(w);Vn(y,!1),Ie&&Ui(Ie),!Nt&&(re=ye&&ye.onVnodeBeforeMount)&&en(re,Ne,w),Vn(y,!0);{Ze.ce&&Ze.ce._hasShadowRoot()&&Ze.ce._injectChildStyle(it,y.parent?y.parent.type:void 0);const Lt=y.subTree=tl(y);m(null,Lt,T,U,y,G,W),w.el=Lt.el}if(De&&_t(De,G),!Nt&&(re=ye&&ye.onVnodeMounted)){const Lt=w;_t(()=>en(re,Ne,Lt),G)}(w.shapeFlag&256||Ne&&Zs(Ne.vnode)&&Ne.vnode.shapeFlag&256)&&y.a&&_t(y.a,G),y.isMounted=!0,w=T=U=null}};y.scope.on();const ee=y.effect=new Zc(te);y.scope.off();const X=y.update=ee.run.bind(ee),_e=y.job=ee.runIfDirty.bind(ee);_e.i=y,_e.id=y.uid,ee.scheduler=()=>ir(_e),Vn(y,!0),X()},ae=(y,w,T)=>{w.component=y;const U=y.vnode.props;y.vnode=w,y.next=null,vp(y,w.props,U,T),Sp(y,w.children,T),yn(),zr(y),bn()},de=(y,w,T,U,G,W,se,te,ee=!1)=>{const X=y&&y.children,_e=y?y.shapeFlag:0,re=w.children,{patchFlag:pe,shapeFlag:ye}=w;if(pe>0){if(pe&128){we(X,re,T,U,G,W,se,te,ee);return}else if(pe&256){xe(X,re,T,U,G,W,se,te,ee);return}}ye&8?(_e&16&&ce(X,G,W),re!==X&&l(T,re)):_e&16?ye&16?we(X,re,T,U,G,W,se,te,ee):ce(X,G,W,!0):(_e&8&&l(T,""),ye&16&&K(re,T,U,G,W,se,te,ee))},xe=(y,w,T,U,G,W,se,te,ee)=>{y=y||hs,w=w||hs;const X=y.length,_e=w.length,re=Math.min(X,_e);let pe;for(pe=0;pe<re;pe++){const ye=w[pe]=ee?pn(w[pe]):Gt(w[pe]);m(y[pe],ye,T,null,G,W,se,te,ee)}X>_e?ce(y,G,W,!0,!1,re):K(w,T,U,G,W,se,te,ee,re)},we=(y,w,T,U,G,W,se,te,ee)=>{let X=0;const _e=w.length;let re=y.length-1,pe=_e-1;for(;X<=re&&X<=pe;){const ye=y[X],Ie=w[X]=ee?pn(w[X]):Gt(w[X]);if(on(ye,Ie))m(ye,Ie,T,null,G,W,se,te,ee);else break;X++}for(;X<=re&&X<=pe;){const ye=y[re],Ie=w[pe]=ee?pn(w[pe]):Gt(w[pe]);if(on(ye,Ie))m(ye,Ie,T,null,G,W,se,te,ee);else break;re--,pe--}if(X>re){if(X<=pe){const ye=pe+1,Ie=ye<_e?w[ye].el:U;for(;X<=pe;)m(null,w[X]=ee?pn(w[X]):Gt(w[X]),T,Ie,G,W,se,te,ee),X++}}else if(X>pe)for(;X<=re;)ne(y[X],G,W,!0),X++;else{const ye=X,Ie=X,De=new Map;for(X=Ie;X<=pe;X++){const bt=w[X]=ee?pn(w[X]):Gt(w[X]);bt.key!=null&&De.set(bt.key,X)}let Ne,Ze=0;const it=pe-Ie+1;let Nt=!1,Lt=0;const Mn=new Array(it);for(X=0;X<it;X++)Mn[X]=0;for(X=ye;X<=re;X++){const bt=y[X];if(Ze>=it){ne(bt,G,W,!0);continue}let Mt;if(bt.key!=null)Mt=De.get(bt.key);else for(Ne=Ie;Ne<=pe;Ne++)if(Mn[Ne-Ie]===0&&on(bt,w[Ne])){Mt=Ne;break}Mt===void 0?ne(bt,G,W,!0):(Mn[Mt-Ie]=X+1,Mt>=Lt?Lt=Mt:Nt=!0,m(bt,w[Mt],T,null,G,W,se,te,ee),Ze++)}const Oo=Nt?kp(Mn):hs;for(Ne=Oo.length-1,X=it-1;X>=0;X--){const bt=Ie+X,Mt=w[bt],$=w[bt+1],J=bt+1<_e?$.el||Yu($):U;Mn[X]===0?m(null,Mt,T,J,G,W,se,te,ee):Nt&&(Ne<0||X!==Oo[Ne]?oe(Mt,T,J,2):Ne--)}}},oe=(y,w,T,U,G=null)=>{const{el:W,type:se,transition:te,children:ee,shapeFlag:X}=y;if(X&6){oe(y.component.subTree,w,T,U);return}if(X&128){y.suspense.move(w,T,U);return}if(X&64){se.move(y,w,T,N);return}if(se===Se){s(W,w,T);for(let re=0;re<ee.length;re++)oe(ee[re],w,T,U);s(y.anchor,w,T);return}if(se===Jo){R(y,w,T);return}if(U!==2&&X&1&&te)if(U===0)te.persisted&&!W[qt]?s(W,w,T):(te.beforeEnter(W),s(W,w,T),_t(()=>te.enter(W),G));else{const{leave:re,delayLeave:pe,afterLeave:ye}=te,Ie=()=>{y.ctx.isUnmounted?o(W):s(W,w,T)},De=()=>{const Ne=W._isLeaving||!!W[qt];W._isLeaving&&W[qt](!0),te.persisted&&!Ne?Ie():re(W,()=>{Ie(),ye&&ye()})};pe?pe(W,Ie,De):De()}else s(W,w,T)},ne=(y,w,T,U=!1,G=!1)=>{const{type:W,props:se,ref:te,children:ee,dynamicChildren:X,shapeFlag:_e,patchFlag:re,dirs:pe,cacheIndex:ye,memo:Ie}=y;if(re===-2&&(G=!1),te!=null&&(yn(),Qs(te,null,T,y,!0),bn()),ye!=null&&(w.renderCache[ye]=void 0),_e&256){w.ctx.deactivate(y);return}const De=_e&1&&pe,Ne=!Zs(y);let Ze;if(Ne&&(Ze=se&&se.onVnodeBeforeUnmount)&&en(Ze,w,y),_e&6)Y(y.component,T,U);else{if(_e&128){y.suspense.unmount(T,U);return}De&&Fn(y,null,w,"beforeUnmount"),_e&64?y.type.remove(y,w,T,N,U):X&&!X.hasOnce&&(W!==Se||re>0&&re&64)?ce(X,w,T,!1,!0):(W===Se&&re&384||!G&&_e&16)&&ce(ee,w,T),U&&ie(y)}const it=Ie!=null&&ye==null;(Ne&&(Ze=se&&se.onVnodeUnmounted)||De||it)&&_t(()=>{Ze&&en(Ze,w,y),De&&Fn(y,null,w,"unmounted"),it&&(y.el=null)},T)},ie=y=>{const{type:w,el:T,anchor:U,transition:G}=y;if(w===Se){Ae(T,U);return}if(w===Jo){x(y);return}const W=()=>{o(T),G&&!G.persisted&&G.afterLeave&&G.afterLeave()};if(y.shapeFlag&1&&G&&!G.persisted){const{leave:se,delayLeave:te}=G,ee=()=>se(T,W);te?te(y.el,W,ee):ee()}else W()},Ae=(y,w)=>{let T;for(;y!==w;)T=f(y),o(y),y=T;o(w)},Y=(y,w,T)=>{const{bum:U,scope:G,job:W,subTree:se,um:te,m:ee,a:X}=y;ol(ee),ol(X),U&&Ui(U),G.stop(),W&&(W.flags|=8,ne(se,y,w,T)),te&&_t(te,w),_t(()=>{y.isUnmounted=!0},w)},ce=(y,w,T,U=!1,G=!1,W=0)=>{for(let se=W;se<y.length;se++)ne(y[se],w,T,U,G)},S=y=>{if(y.shapeFlag&6)return S(y.component.subTree);if(y.shapeFlag&128)return y.suspense.next();const w=f(y.anchor||y.el),T=w&&w[xu];return T?f(T):w};let L=!1;const H=(y,w,T)=>{let U;y==null?w._vnode&&(ne(w._vnode,null,null,!0),U=w._vnode.component):m(w._vnode||null,y,w,null,null,null,T),w._vnode=y,L||(L=!0,zr(U),bu(),L=!1)},N={p:m,um:ne,m:oe,r:ie,mt:Z,mc:K,pc:de,pbc:F,n:S,o:e};return{render:H,hydrate:void 0,createApp:cp(H)}}function Xi({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Vn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function xp(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function fr(e,t,n=!1){const s=e.children,o=t.children;if(ve(s)&&ve(o))for(let i=0;i<s.length;i++){const a=s[i];let r=o[i];r.shapeFlag&1&&!r.dynamicChildren&&((r.patchFlag<=0||r.patchFlag===32)&&(r=o[i]=pn(o[i]),r.el=a.el),!n&&r.patchFlag!==-2&&fr(a,r)),r.type===ki&&(r.patchFlag===-1&&(r=o[i]=pn(r)),r.el=a.el),r.type===ft&&!r.el&&(r.el=a.el)}}function kp(e){const t=e.slice(),n=[0];let s,o,i,a,r;const c=e.length;for(s=0;s<c;s++){const d=e[s];if(d!==0){if(o=n[n.length-1],e[o]<d){t[s]=o,n.push(s);continue}for(i=0,a=n.length-1;i<a;)r=i+a>>1,e[n[r]]<d?i=r+1:a=r;d<e[n[i]]&&(i>0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}function Xu(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Xu(t)}function ol(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Yu(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Yu(t.subTree):null}const Qu=e=>e.__isSuspense;let Aa=0;const Tp={name:"Suspense",__isSuspense:!0,process(e,t,n,s,o,i,a,r,c,d){if(e==null)Rp(t,n,s,o,i,a,r,c,d);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Ip(e,t,n,s,o,a,r,c,d)}},hydrate:Op,normalize:$p},Ap=Tp;function uo(e,t){const n=e.props&&e.props[t];Ee(n)&&n()}function Rp(e,t,n,s,o,i,a,r,c){const{p:d,o:{createElement:l}}=c,u=l("div"),f=e.suspense=Zu(e,o,s,t,u,n,i,a,r,c);d(null,f.pendingBranch=e.ssContent,u,null,s,f,i,a),f.deps>0?(uo(e,"onPending"),uo(e,"onFallback"),d(null,e.ssFallback,t,n,s,null,i,a),gs(f,e.ssFallback)):f.resolve(!1,!0)}function Ip(e,t,n,s,o,i,a,r,{p:c,um:d,o:{createElement:l}}){const u=t.suspense=e.suspense;u.vnode=t,t.el=e.el;const f=t.ssContent,h=t.ssFallback,{activeBranch:_,pendingBranch:m,isInFallback:p,isHydrating:v}=u;if(m)u.pendingBranch=f,on(m,f)?(c(m,f,u.hiddenContainer,null,o,u,i,a,r),u.deps<=0?u.resolve():p&&(v||(c(_,h,n,s,o,null,i,a,r),gs(u,h)))):(u.pendingId=Aa++,v?(u.isHydrating=!1,u.activeBranch=m):d(m,o,u),u.deps=0,u.effects.length=0,u.hiddenContainer=l("div"),p?(c(null,f,u.hiddenContainer,null,o,u,i,a,r),u.deps<=0?u.resolve():(c(_,h,n,s,o,null,i,a,r),gs(u,h))):_&&on(_,f)?(c(_,f,n,s,o,u,i,a,r),u.resolve(!0)):(c(null,f,u.hiddenContainer,null,o,u,i,a,r),u.deps<=0&&u.resolve()));else if(_&&on(_,f))c(_,f,n,s,o,u,i,a,r),gs(u,f);else if(uo(t,"onPending"),u.pendingBranch=f,f.shapeFlag&512?u.pendingId=f.component.suspenseId:u.pendingId=Aa++,c(null,f,u.hiddenContainer,null,o,u,i,a,r),u.deps<=0)u.resolve();else{const{timeout:C,pendingId:R}=u;C>0?setTimeout(()=>{u.pendingId===R&&u.fallback(h)},C):C===0&&u.fallback(h)}}function Zu(e,t,n,s,o,i,a,r,c,d,l=!1){const{p:u,m:f,um:h,n:_,o:{parentNode:m,remove:p}}=d;let v;const C=Dp(e);C&&t&&t.pendingBranch&&(v=t.pendingId,t.deps++);const R=e.props?Wc(e.props.timeout):void 0,x=i,b={vnode:e,parent:t,parentComponent:n,namespace:a,container:s,hiddenContainer:o,deps:0,pendingId:Aa++,timeout:typeof R=="number"?R:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!l,isHydrating:l,isUnmounted:!1,effects:[],resolve(I=!1,D=!1){const{vnode:K,activeBranch:M,pendingBranch:F,pendingId:B,effects:O,parentComponent:Q,container:Z,isInFallback:Ce}=b;let he=!1;if(b.isHydrating)b.isHydrating=!1;else if(!I){he=M&&F.transition&&F.transition.mode==="out-in";let xe=!1;he&&(M.transition.afterLeave=()=>{B===b.pendingId&&(f(F,Z,i===x&&!xe?_(M):i,0),ba(O),Ce&&K.ssFallback&&(K.ssFallback.el=null))}),M&&!b.isFallbackMountPending&&(m(M.el)===Z&&(i=_(M),xe=!0),h(M,Q,b,!0),!he&&Ce&&K.ssFallback&&_t(()=>K.ssFallback.el=null,b)),he||f(F,Z,i,0)}b.isFallbackMountPending=!1,gs(b,F),b.pendingBranch=null,b.isInFallback=!1;let ae=b.parent,de=!1;for(;ae;){if(ae.pendingBranch){ae.effects.push(...O),de=!0;break}ae=ae.parent}!de&&!he&&ba(O),b.effects=[],C&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,t.deps===0&&!D&&t.resolve()),uo(K,"onResolve")},fallback(I){if(!b.pendingBranch)return;const{vnode:D,activeBranch:K,parentComponent:M,container:F,namespace:B}=b;uo(D,"onFallback");const O=_(K),Q=()=>{b.isFallbackMountPending=!1,b.isInFallback&&(u(null,I,F,O,M,null,B,r,c),gs(b,I))},Z=I.transition&&I.transition.mode==="out-in";Z&&(b.isFallbackMountPending=!0,K.transition.afterLeave=Q),b.isInFallback=!0,h(K,M,null,!0),Z||Q()},move(I,D,K){b.activeBranch&&f(b.activeBranch,I,D,K),b.container=I},next(){return b.activeBranch&&_(b.activeBranch)},registerDep(I,D,K){const M=!!b.pendingBranch;M&&b.deps++;const F=I.vnode.el;I.asyncDep.catch(B=>{yo(B,I,0)}).then(B=>{if(I.isUnmounted||b.isUnmounted||b.pendingId!==I.suspenseId)return;Ia(),I.asyncResolved=!0;const{vnode:O}=I;Oa(I,B),F&&(O.el=F);const Q=!F&&I.subTree.el;D(I,O,m(F||I.subTree.el),F?null:_(I.subTree),b,a,K),Q&&(O.placeholder=null,p(Q)),cr(I,O.el),M&&--b.deps===0&&b.resolve()})},unmount(I,D){b.isUnmounted=!0,b.activeBranch&&h(b.activeBranch,n,I,D),b.pendingBranch&&h(b.pendingBranch,n,I,D)}};return b}function Op(e,t,n,s,o,i,a,r,c){const d=t.suspense=Zu(t,s,n,e.parentNode,document.createElement("div"),null,o,i,a,r,!0),l=c(e,d.pendingBranch=t.ssContent,n,d,i,a);return d.deps===0&&d.resolve(!1,!0),l}function $p(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=il(s?n.default:n),e.ssFallback=s?il(n.fallback):E(ft)}function il(e){let t;if(Ee(e)){const n=ys&&e._c;n&&(e._d=!1,k()),e=e(),n&&(e._d=!0,t=At,ed())}return ve(e)&&(e=hp(e)),e=Gt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Pp(e,t){t&&t.pendingBranch?ve(e)?t.effects.push(...e):t.effects.push(e):ba(e)}function gs(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e;let o=t.el;for(;!o&&t.component;)t=t.component.subTree,o=t.el;n.el=o,s&&s.subTree===n&&(s.vnode.el=o,cr(s,o))}function Dp(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Se=Symbol.for("v-fgt"),ki=Symbol.for("v-txt"),ft=Symbol.for("v-cmt"),Jo=Symbol.for("v-stc"),to=[];let At=null;function k(e=!1){to.push(At=e?null:[])}function ed(){to.pop(),At=to[to.length-1]||null}let ys=1;function li(e,t=!1){ys+=e,e<0&&At&&t&&(At.hasOnce=!0)}function td(e){return e.dynamicChildren=ys>0?At||hs:null,ed(),ys>0&&At&&At.push(e),e}function A(e,t,n,s,o,i){return td(g(e,t,n,s,o,i,!0))}function Rt(e,t,n,s,o){return td(E(e,t,n,s,o,!0))}function bs(e){return e?e.__v_isVNode===!0:!1}function on(e,t){return e.type===t.type&&e.key===t.key}const nd=({key:e})=>e??null,Xo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ze(e)||Ye(e)||Ee(e)?{i:Pt,r:e,k:t,f:!!n}:e:null);function g(e,t=null,n=null,s=0,o=null,i=e===Se?0:1,a=!1,r=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&nd(t),ref:t&&Xo(t),scopeId:Su,slotScopeIds:null,children:n,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:i,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Pt};return r?(hr(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=ze(n)?8:16),ys>0&&!a&&At&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&At.push(c),c}const E=Bp;function Bp(e,t=null,n=null,s=0,o=null,i=!1){if((!e||e===Nu)&&(e=ft),bs(e)){const r=Nn(e,t,!0);return n&&hr(r,n),ys>0&&!i&&At&&(r.shapeFlag&6?At[At.indexOf(e)]=r:At.push(r)),r.patchFlag=-2,r}if(Wp(e)&&(e=e.__vccOpts),t){t=Np(t);let{class:r,style:c}=t;r&&!ze(r)&&(t.class=ge(r)),Fe(c)&&(Si(c)&&!ve(c)&&(c=lt({},c)),t.style=ln(c))}const a=ze(e)?1:Qu(e)?128:ku(e)?64:Fe(e)?4:Ee(e)?2:0;return g(e,t,n,s,o,a,i,!0)}function Np(e){return e?Si(e)||zu(e)?lt({},e):e:null}function Nn(e,t,n=!1,s=!1){const{props:o,ref:i,patchFlag:a,children:r,transition:c}=e,d=t?Tt(o||{},t):o,l={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&nd(d),ref:t&&t.ref?n&&i?ve(i)?i.concat(Xo(t)):[i,Xo(t)]:Xo(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Se?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Nn(e.ssContent),ssFallback:e.ssFallback&&Nn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&co(l,c.clone(l)),l}function je(e=" ",t=0){return E(ki,null,e,t)}function Lp(e,t){const n=E(Jo,null,e);return n.staticCount=t,n}function le(e="",t=!1){return t?(k(),Rt(ft,null,e)):E(ft,null,e)}function Gt(e){return e==null||typeof e=="boolean"?E(ft):ve(e)?E(Se,null,e.slice()):bs(e)?pn(e):E(ki,null,String(e))}function pn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Nn(e)}function hr(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(ve(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),hr(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!zu(t)?t._ctx=Pt:o===3&&Pt&&(Pt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ee(t)?(t={default:t,_ctx:Pt},n=32):(t=String(t),s&64?(n=16,t=[je(t)]):n=8);e.children=t,e.shapeFlag|=n}function Tt(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=ge([t.class,s.class]));else if(o==="style")t.style=ln([t.style,s.style]);else if(hi(o)){const i=t[o],a=s[o];a&&i!==a&&!(ve(i)&&i.includes(a))?t[o]=i?[].concat(i,a):a:a==null&&i==null&&!pi(o)&&(t[o]=a)}else o!==""&&(t[o]=s[o])}return t}function en(e,t,n,s=null){Ht(e,t,7,[n,s])}const Mp=Fu();let Fp=0;function Vp(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||Mp,i={uid:Fp++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Xc(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Wu(s,o),emitsOptions:Vu(s,o),emit:null,emitted:null,propsDefaults:Ue,inheritAttrs:s.inheritAttrs,ctx:Ue,data:Ue,props:Ue,attrs:Ue,slots:Ue,refs:Ue,setupState:Ue,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=dp.bind(null,i),e.ce&&e.ce(i),i}let vt=null;const Wt=()=>vt||Pt;let ci,Ra;{const e=vi(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),i=>{o.length>1?o.forEach(a=>a(i)):o[0](i)}};ci=t("__VUE_INSTANCE_SETTERS__",n=>vt=n),Ra=t("__VUE_SSR_SETTERS__",n=>fo=n)}const bo=e=>{const t=vt;return ci(e),e.scope.on(),()=>{e.scope.off(),ci(t)}},Ia=()=>{vt&&vt.scope.off(),ci(null)};function sd(e){return e.vnode.shapeFlag&4}let fo=!1;function jp(e,t=!1,n=!1){t&&Ra(t);const{props:s,children:o}=e.vnode,i=sd(e);gp(e,s,i,t),wp(e,o,n||t);const a=i?qp(e,t):void 0;return t&&Ra(!1),a}function qp(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,np);const{setup:s}=n;if(s){yn();const o=e.setupContext=s.length>1?zp(e):null,i=bo(e),a=vo(s,e,0,[e.props,o]),r=qc(a);if(bn(),i(),(r||e.sp)&&!Zs(e)&&Pu(e),r){if(a.then(Ia,Ia),t)return a.then(c=>{Oa(e,c)}).catch(c=>{yo(c,e,0)});e.asyncDep=a}else Oa(e,a)}else od(e)}function Oa(e,t,n){Ee(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Fe(t)&&(e.setupState=gu(t)),od(e)}function od(e,t,n){const s=e.type;e.render||(e.render=s.render||rn);{const o=bo(e);yn();try{sp(e)}finally{bn(),o()}}}const Up={get(e,t){return gt(e,"get",""),e[t]}};function zp(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Up),slots:e.slots,emit:e.emit,expose:t}}function Ti(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(gu(or(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in eo)return eo[n](e)},has(t,n){return n in t||n in eo}})):e.proxy}function Hp(e,t=!0){return Ee(e)?e.displayName||e.name:e.name||t&&e.__name}function Wp(e){return Ee(e)&&"__vccOpts"in e}const j=(e,t)=>Oh(e,t,fo);function pr(e,t,n){try{li(-1);const s=arguments.length;return s===2?Fe(t)&&!ve(t)?bs(t)?E(e,null,[t]):E(e,t):E(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&bs(n)&&(n=[n]),E(e,t,n))}finally{li(1)}}const Kp="3.5.35";/**
|
||
* @vue/runtime-dom v3.5.35
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let $a;const al=typeof window<"u"&&window.trustedTypes;if(al)try{$a=al.createPolicy("vue",{createHTML:e=>e})}catch{}const id=$a?e=>$a.createHTML(e):e=>e,Gp="http://www.w3.org/2000/svg",Jp="http://www.w3.org/1998/Math/MathML",hn=typeof document<"u"?document:null,rl=hn&&hn.createElement("template"),Xp={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const o=t==="svg"?hn.createElementNS(Gp,e):t==="mathml"?hn.createElementNS(Jp,e):n?hn.createElement(e,{is:n}):hn.createElement(e);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>hn.createTextNode(e),createComment:e=>hn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>hn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{rl.innerHTML=id(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const r=rl.content;if(s==="svg"||s==="mathml"){const c=r.firstChild;for(;c.firstChild;)r.appendChild(c.firstChild);r.removeChild(c)}t.insertBefore(r,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},kn="transition",Bs="animation",ho=Symbol("_vtc"),ad={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},Yp=lt({},Au,ad),Qp=e=>(e.displayName="Transition",e.props=Yp,e),ui=Qp((e,{slots:t})=>pr(Hh,Zp(e),t)),jn=(e,t=[])=>{ve(e)?e.forEach(n=>n(...t)):e&&e(...t)},ll=e=>e?ve(e)?e.some(t=>t.length>1):e.length>1:!1;function Zp(e){const t={};for(const O in e)O in ad||(t[O]=e[O]);if(e.css===!1)return t;const{name:n="v",type:s,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:r=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:d=a,appearToClass:l=r,leaveFromClass:u=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,_=em(o),m=_&&_[0],p=_&&_[1],{onBeforeEnter:v,onEnter:C,onEnterCancelled:R,onLeave:x,onLeaveCancelled:b,onBeforeAppear:I=v,onAppear:D=C,onAppearCancelled:K=R}=t,M=(O,Q,Z,Ce)=>{O._enterCancelled=Ce,qn(O,Q?l:r),qn(O,Q?d:a),Z&&Z()},F=(O,Q)=>{O._isLeaving=!1,qn(O,u),qn(O,h),qn(O,f),Q&&Q()},B=O=>(Q,Z)=>{const Ce=O?D:C,he=()=>M(Q,O,Z);jn(Ce,[Q,he]),cl(()=>{qn(Q,O?c:i),dn(Q,O?l:r),ll(Ce)||ul(Q,s,m,he)})};return lt(t,{onBeforeEnter(O){jn(v,[O]),dn(O,i),dn(O,a)},onBeforeAppear(O){jn(I,[O]),dn(O,c),dn(O,d)},onEnter:B(!1),onAppear:B(!0),onLeave(O,Q){O._isLeaving=!0;const Z=()=>F(O,Q);dn(O,u),O._enterCancelled?(dn(O,f),hl(O)):(hl(O),dn(O,f)),cl(()=>{O._isLeaving&&(qn(O,u),dn(O,h),ll(x)||ul(O,s,p,Z))}),jn(x,[O,Z])},onEnterCancelled(O){M(O,!1,void 0,!0),jn(R,[O])},onAppearCancelled(O){M(O,!0,void 0,!0),jn(K,[O])},onLeaveCancelled(O){F(O),jn(b,[O])}})}function em(e){if(e==null)return null;if(Fe(e))return[Yi(e.enter),Yi(e.leave)];{const t=Yi(e);return[t,t]}}function Yi(e){return Wc(e)}function dn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[ho]||(e[ho]=new Set)).add(t)}function qn(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[ho];n&&(n.delete(t),n.size||(e[ho]=void 0))}function cl(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let tm=0;function ul(e,t,n,s){const o=e._endId=++tm,i=()=>{o===e._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:a,timeout:r,propCount:c}=nm(e,t);if(!a)return s();const d=a+"end";let l=0;const u=()=>{e.removeEventListener(d,f),i()},f=h=>{h.target===e&&++l>=c&&u()};setTimeout(()=>{l<c&&u()},r+1),e.addEventListener(d,f)}function nm(e,t){const n=window.getComputedStyle(e),s=_=>(n[_]||"").split(", "),o=s(`${kn}Delay`),i=s(`${kn}Duration`),a=dl(o,i),r=s(`${Bs}Delay`),c=s(`${Bs}Duration`),d=dl(r,c);let l=null,u=0,f=0;t===kn?a>0&&(l=kn,u=a,f=i.length):t===Bs?d>0&&(l=Bs,u=d,f=c.length):(u=Math.max(a,d),l=u>0?a>d?kn:Bs:null,f=l?l===kn?i.length:c.length:0);const h=l===kn&&/\b(?:transform|all)(?:,|$)/.test(s(`${kn}Property`).toString());return{type:l,timeout:u,propCount:f,hasTransform:h}}function dl(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>fl(n)+fl(e[s])))}function fl(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function hl(e){return(e?e.ownerDocument:document).body.offsetHeight}function sm(e,t,n){const s=e[ho];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const di=Symbol("_vod"),rd=Symbol("_vsh"),Yn={name:"show",beforeMount(e,{value:t},{transition:n}){e[di]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Ns(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Ns(e,!0),s.enter(e)):s.leave(e,()=>{Ns(e,!1)}):Ns(e,t))},beforeUnmount(e,{value:t}){Ns(e,t)}};function Ns(e,t){e.style.display=t?e[di]:"none",e[rd]=!t}const om=Symbol(""),im=/(?:^|;)\s*display\s*:/;function am(e,t,n){const s=e.style,o=ze(n);let i=!1;if(n&&!o){if(t)if(ze(t))for(const a of t.split(";")){const r=a.slice(0,a.indexOf(":")).trim();n[r]==null&&Gs(s,r,"")}else for(const a in t)n[a]==null&&Gs(s,a,"");for(const a in n){a==="display"&&(i=!0);const r=n[a];r!=null?lm(e,a,!ze(t)&&t?t[a]:void 0,r)||Gs(s,a,r):Gs(s,a,"")}}else if(o){if(t!==n){const a=s[om];a&&(n+=";"+a),s.cssText=n,i=im.test(n)}}else t&&e.removeAttribute("style");di in e&&(e[di]=i?s.display:"",e[rd]&&(s.display="none"))}const pl=/\s*!important$/;function Gs(e,t,n){if(ve(n))n.forEach(s=>Gs(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=rm(e,t);pl.test(n)?e.setProperty(En(s),n.replace(pl,""),"important"):e[s]=n}}const ml=["Webkit","Moz","ms"],Qi={};function rm(e,t){const n=Qi[t];if(n)return n;let s=xt(t);if(s!=="filter"&&s in e)return Qi[t]=s;s=gi(s);for(let o=0;o<ml.length;o++){const i=ml[o]+s;if(i in e)return Qi[t]=i}return t}function lm(e,t,n,s){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&ze(s)&&n===s}const _l="http://www.w3.org/1999/xlink";function gl(e,t,n,s,o,i=ih(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(_l,t.slice(6,t.length)):e.setAttributeNS(_l,t,n):n==null||i&&!Kc(n)?e.removeAttribute(t):e.setAttribute(t,i?"":zt(n)?String(n):n)}function vl(e,t,n,s,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?id(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const r=i==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(r!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let a=!1;if(n===""||n==null){const r=typeof e[t];r==="boolean"?n=Kc(n):n==null&&r==="string"?(n="",a=!0):r==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(o||t)}function cm(e,t,n,s){e.addEventListener(t,n,s)}function um(e,t,n,s){e.removeEventListener(t,n,s)}const yl=Symbol("_vei");function dm(e,t,n,s,o=null){const i=e[yl]||(e[yl]={}),a=i[t];if(s&&a)a.value=s;else{const[r,c]=fm(t);if(s){const d=i[t]=mm(s,o);cm(e,r,d,c)}else a&&(um(e,r,a,c),i[t]=void 0)}}const bl=/(?:Once|Passive|Capture)$/;function fm(e){let t;if(bl.test(e)){t={};let s;for(;s=e.match(bl);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):En(e.slice(2)),t]}let Zi=0;const hm=Promise.resolve(),pm=()=>Zi||(hm.then(()=>Zi=0),Zi=Date.now());function mm(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const o=n.value;if(ve(o)){const i=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{i.call(s),s._stopped=!0};const a=o.slice(),r=[s];for(let c=0;c<a.length&&!s._stopped;c++){const d=a[c];d&&Ht(d,t,5,r)}}else Ht(o,t,5,[s])};return n.value=e,n.attached=pm(),n}const wl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,_m=(e,t,n,s,o,i)=>{const a=o==="svg";t==="class"?sm(e,s,a):t==="style"?am(e,n,s):hi(t)?pi(t)||dm(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):gm(e,t,s,a))?(vl(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&gl(e,t,s,a,i,t!=="value")):e._isVueCE&&(vm(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ze(s)))?vl(e,xt(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),gl(e,t,s,a))};function gm(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&wl(t)&&Ee(n));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 wl(t)&&ze(n)?!1:t in e}function vm(e,t){const n=e._def.props;if(!n)return!1;const s=xt(t);return Array.isArray(n)?n.some(o=>xt(o)===s):Object.keys(n).some(o=>xt(o)===s)}const ym=["ctrl","shift","alt","meta"],bm={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)=>ym.some(n=>e[`${n}Key`]&&!t.includes(n))},Dn=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(o,...i)=>{for(let a=0;a<t.length;a++){const r=bm[t[a]];if(r&&r(o,t))return}return e(o,...i)})},wm={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ld=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=o=>{if(!("key"in o))return;const i=En(o.key);if(t.some(a=>a===i||wm[a]===i))return e(o)})},Sm=lt({patchProp:_m},Xp);let Sl;function Em(){return Sl||(Sl=Ep(Sm))}const cd=(...e)=>{const t=Em().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=xm(s);if(!o)return;const i=t._component;!Ee(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const a=n(o,!1,Cm(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};function Cm(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function xm(e){return ze(e)?document.querySelector(e):e}function Pa(){}const Ke=Object.assign,As=typeof window<"u",wo=e=>e!==null&&typeof e=="object",st=e=>e!=null,po=e=>typeof e=="function",ud=e=>wo(e)&&po(e.then)&&po(e.catch),dd=e=>typeof e=="number"||/^\d+(\.\d+)?$/.test(e),km=()=>As?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function El(e,t){const n=t.split(".");let s=e;return n.forEach(o=>{var i;s=wo(s)&&(i=s[o])!=null?i:""}),s}function Sn(e,t,n){return t.reduce((s,o)=>(s[o]=e[o],s),{})}const Cl=e=>Array.isArray(e)?e:[e],Ut=null,$e=[Number,String],qe={type:Boolean,default:!0},Yo=e=>({type:e,required:!0}),fd=e=>({type:Number,default:e}),Jt=e=>({type:$e,default:e}),Be=e=>({type:String,default:e});var Rs=typeof window<"u";function ws(e){return Rs?requestAnimationFrame(e):-1}function hd(e){Rs&&cancelAnimationFrame(e)}function ds(e){ws(()=>ws(e))}var Tm=e=>e===window,xl=(e,t)=>({top:0,left:0,right:e,bottom:t,width:e,height:t}),an=e=>{const t=Re(e);if(Tm(t)){const n=t.innerWidth,s=t.innerHeight;return xl(n,s)}return t!=null&&t.getBoundingClientRect?t.getBoundingClientRect():xl(0,0)};function Is(e){const t=ht(e,null);if(t){const n=Wt(),{link:s,unlink:o,internalChildren:i}=t;s(n),Ln(()=>o(n));const a=j(()=>i.indexOf(n));return{parent:t,index:a}}return{parent:null,index:q(-1)}}function Am(e){const t=[],n=s=>{Array.isArray(s)&&s.forEach(o=>{var i;bs(o)&&(t.push(o),(i=o.component)!=null&&i.subTree&&(t.push(o.component.subTree),n(o.component.subTree.children)),o.children&&n(o.children))})};return n(e),t}var kl=(e,t)=>{const n=e.indexOf(t);return n===-1?e.findIndex(s=>t.key!==void 0&&t.key!==null&&s.type===t.type&&s.key===t.key):n};function Rm(e,t,n){const s=Am(e.subTree.children);n.sort((i,a)=>kl(s,i.vnode)-kl(s,a.vnode));const o=n.map(i=>i.proxy);t.sort((i,a)=>{const r=o.indexOf(i),c=o.indexOf(a);return r-c})}function Ai(e){const t=pt([]),n=pt([]),s=Wt();return{children:t,linkChildren:i=>{cn(e,Object.assign({link:c=>{c.proxy&&(n.push(c),t.push(c.proxy),Rm(s,t,n))},unlink:c=>{const d=n.indexOf(c);t.splice(d,1),n.splice(d,1)},children:t,internalChildren:n},i))}}}function Ri(e){let t;nt(()=>{e(),Xe(()=>{t=!0})}),ks(()=>{t&&e()})}function ts(e,t,n={}){if(!Rs)return;const{target:s=window,passive:o=!1,capture:i=!1}=n;let a=!1,r;const c=u=>{if(a)return;const f=Re(u);f&&!r&&(f.addEventListener(e,t,{capture:i,passive:o}),r=!0)},d=u=>{if(a)return;const f=Re(u);f&&r&&(f.removeEventListener(e,t,i),r=!1)};Ln(()=>d(s)),es(()=>d(s)),Ri(()=>c(s));let l;return Ye(s)&&(l=ke(s,(u,f)=>{d(f),c(u)})),()=>{l==null||l(),d(s),a=!0}}var Mo,ea;function Im(){if(!Mo&&(Mo=q(0),ea=q(0),Rs)){const e=()=>{Mo.value=window.innerWidth,ea.value=window.innerHeight};e(),window.addEventListener("resize",e,{passive:!0}),window.addEventListener("orientationchange",e,{passive:!0})}return{width:Mo,height:ea}}var Om=/scroll|auto|overlay/i,pd=Rs?window:void 0;function $m(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function md(e,t=pd){let n=e;for(;n&&n!==t&&$m(n);){const{overflowY:s}=window.getComputedStyle(n);if(Om.test(s))return n;n=n.parentNode}return t}function _d(e,t=pd){const n=q();return nt(()=>{e.value&&(n.value=md(e.value,t))}),n}var Fo;function Pm(){if(!Fo&&(Fo=q("visible"),Rs)){const e=()=>{Fo.value=document.hidden?"hidden":"visible"};e(),window.addEventListener("visibilitychange",e)}return Fo}var gd=Symbol("van-field");function vd(e){const t=ht(gd,null);t&&!t.customValue.value&&(t.customValue.value=e,ke(e,()=>{t.resetValidation(),t.validateWithTrigger("onChange")}))}function mr(e){const t="scrollTop"in e?e.scrollTop:e.pageYOffset;return Math.max(t,0)}function Da(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function _r(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function gr(e){Da(window,e),Da(document.body,e)}function Tl(e,t){if(e===window)return 0;const n=t?mr(t):_r();return an(e).top+n}const Dm=km();function Bm(){Dm&&gr(_r())}const Nm=e=>e.stopPropagation();function vn(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&Nm(e)}function mo(e){const t=Re(e);if(!t)return!1;const n=window.getComputedStyle(t),s=n.display==="none",o=t.offsetParent===null&&n.position!=="fixed";return s||o}const{width:So,height:Ii}=Im();function ot(e){if(st(e))return dd(e)?`${e}px`:String(e)}function yd(e){if(st(e)){if(Array.isArray(e))return{width:ot(e[0]),height:ot(e[1])};const t=ot(e);return{width:t,height:t}}}function bd(e){const t={};return e!==void 0&&(t.zIndex=+e),t}let ta;function Lm(){if(!ta){const e=document.documentElement,t=e.style.fontSize||window.getComputedStyle(e).fontSize;ta=parseFloat(t)}return ta}function Mm(e){return e=e.replace(/rem/g,""),+e*Lm()}function Fm(e){return e=e.replace(/vw/g,""),+e*So.value/100}function Vm(e){return e=e.replace(/vh/g,""),+e*Ii.value/100}function wd(e){if(typeof e=="number")return e;if(As){if(e.includes("rem"))return Mm(e);if(e.includes("vw"))return Fm(e);if(e.includes("vh"))return Vm(e)}return parseFloat(e)}const jm=/-(\w)/g,Sd=e=>e.replace(jm,(t,n)=>n.toUpperCase()),qm=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,""),Qo=(e,t,n)=>Math.min(Math.max(e,t),n);function Al(e,t,n){const s=e.indexOf(t);return s===-1?e:t==="-"&&s!==0?e.slice(0,s):e.slice(0,s+1)+e.slice(s).replace(n,"")}function Um(e,t=!0,n=!0){t?e=Al(e,".",/\./g):e=e.split(".")[0],n?e=Al(e,"-",/-/g):e=e.replace(/-/,"");const s=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(s,"")}const{hasOwnProperty:zm}=Object.prototype;function Hm(e,t,n){const s=t[n];st(s)&&(!zm.call(e,n)||!wo(s)?e[n]=s:e[n]=Ed(Object(e[n]),s))}function Ed(e,t){return Object.keys(t).forEach(n=>{Hm(e,t,n)}),e}var Wm={name:"姓名",tel:"电话",save:"保存",clear:"清空",undo:"撤销",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(e,t)=>`${e}年${t}月`,rangePrompt:e=>`最多选择 ${e} 天`},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:e=>`${e}折`,condition:e=>`满${e}元可用`},vanCouponCell:{title:"优惠券",count:e=>`${e}张可用`},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}};const Rl=q("zh-CN"),Il=pt({"zh-CN":Wm}),Km={messages(){return Il[Rl.value]},use(e,t){Rl.value=e,this.add({[e]:t})},add(e={}){Ed(Il,e)}};var Gm=Km;function Jm(e){const t=Sd(e)+".";return(n,...s)=>{const o=Gm.messages(),i=El(o,t+n)||El(o,n);return po(i)?i(...s):i}}function Ba(e,t){return t?typeof t=="string"?` ${e}--${t}`:Array.isArray(t)?t.reduce((n,s)=>n+Ba(e,s),""):Object.keys(t).reduce((n,s)=>n+(t[s]?Ba(e,s):""),""):""}function Xm(e){return(t,n)=>(t&&typeof t!="string"&&(n=t,t=""),t=t?`${e}__${t}`:e,`${t}${Ba(t,n)}`)}function He(e){const t=`van-${e}`;return[t,Xm(t),Jm(t)]}const Eo="van-hairline",Ym=`${Eo}--top`,Qm=`${Eo}--left`,MT=`${Eo}--bottom`,Zm=`${Eo}--surround`,Cd=`${Eo}--top-bottom`,e_="van-haptics-feedback",t_=Symbol("van-form"),Ol=5;function vr(e,{args:t=[],done:n,canceled:s,error:o}){if(e){const i=e.apply(null,t);ud(i)?i.then(a=>{a?n():s&&s()}).catch(o||Pa):i?n():s&&s()}else n()}function Ge(e){return e.install=t=>{const{name:n}=e;n&&(t.component(n,e),t.component(Sd(`-${n}`),e))},e}const xd=Symbol();function yr(e){const t=ht(xd,null);t&&ke(t,n=>{n&&e()})}const n_=(e,t)=>{const n=q(),s=()=>{n.value=an(e).height};return nt(()=>{Xe(s);for(let o=1;o<=3;o++)setTimeout(s,100*o)}),yr(()=>Xe(s)),ke([So,Ii],s),n};function s_(e,t){const n=n_(e);return s=>E("div",{class:t("placeholder"),style:{height:n.value?`${n.value}px`:void 0}},[s()])}const[kd,$l]=He("action-bar"),Td=Symbol(kd),o_={placeholder:Boolean,safeAreaInsetBottom:qe};var i_=be({name:kd,props:o_,setup(e,{slots:t}){const n=q(),s=s_(n,$l),{linkChildren:o}=Ai(Td);o();const i=()=>{var a;return E("div",{ref:n,class:[$l(),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[(a=t.default)==null?void 0:a.call(t)])};return()=>e.placeholder?s(i):i()}});const a_=Ge(i_);function Bt(e){const t=Wt();t&&Ke(t.proxy,e)}const Oi={to:[String,Object],url:String,replace:Boolean};function Ad({to:e,url:t,replace:n,$router:s}){e&&s?s[n?"replace":"push"](e):t&&(n?location.replace(t):location.href=t)}function br(){const e=Wt().proxy;return()=>Ad(e)}const[r_,Pl]=He("badge"),l_={dot:Boolean,max:$e,tag:Be("div"),color:String,offset:Array,content:$e,showZero:qe,position:Be("top-right")};var c_=be({name:r_,props:l_,setup(e,{slots:t}){const n=()=>{if(t.content)return!0;const{content:r,showZero:c}=e;return st(r)&&r!==""&&(c||r!==0&&r!=="0")},s=()=>{const{dot:r,max:c,content:d}=e;if(!r&&n())return t.content?t.content():st(c)&&dd(d)&&+d>+c?`${c}+`:d},o=r=>r.startsWith("-")?r.replace("-",""):`-${r}`,i=j(()=>{const r={background:e.color};if(e.offset){const[c,d]=e.offset,{position:l}=e,[u,f]=l.split("-");t.default?(typeof d=="number"?r[u]=ot(u==="top"?d:-d):r[u]=u==="top"?ot(d):o(d),typeof c=="number"?r[f]=ot(f==="left"?c:-c):r[f]=f==="left"?ot(c):o(c)):(r.marginTop=ot(d),r.marginLeft=ot(c))}return r}),a=()=>{if(n()||e.dot)return E("div",{class:Pl([e.position,{dot:e.dot,fixed:!!t.default}]),style:i.value},[s()])};return()=>{if(t.default){const{tag:r}=e;return E(r,{class:Pl("wrapper")},{default:()=>[t.default(),a()]})}return a()}}});const Rd=Ge(c_);let Id=2e3;const u_=()=>++Id,d_=e=>{Id=e},[Od,f_]=He("config-provider"),$d=Symbol(Od),h_={tag:Be("div"),theme:Be("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:Be("local"),iconPrefix:String};function p_(e){return e.replace(/([a-zA-Z])(\d)/g,"$1-$2")}function m_(e){const t={};return Object.keys(e).forEach(n=>{const s=p_(qm(n));t[`--van-${s}`]=e[n]}),t}function Vo(e={},t={}){Object.keys(e).forEach(n=>{e[n]!==t[n]&&document.documentElement.style.setProperty(n,e[n])}),Object.keys(t).forEach(n=>{e[n]||document.documentElement.style.removeProperty(n)})}var __=be({name:Od,props:h_,setup(e,{slots:t}){const n=j(()=>m_(Ke({},e.themeVars,e.theme==="dark"?e.themeVarsDark:e.themeVarsLight)));if(As){const s=()=>{document.documentElement.classList.add(`van-theme-${e.theme}`)},o=(i=e.theme)=>{document.documentElement.classList.remove(`van-theme-${i}`)};ke(()=>e.theme,(i,a)=>{a&&o(a),s()},{immediate:!0}),ks(s),es(o),Ts(o),ke(n,(i,a)=>{e.themeVarsScope==="global"&&Vo(i,a)}),ke(()=>e.themeVarsScope,(i,a)=>{a==="global"&&Vo({},n.value),i==="global"&&Vo(n.value,{})}),e.themeVarsScope==="global"&&Vo(n.value,{})}return cn($d,e),Eu(()=>{e.zIndex!==void 0&&d_(e.zIndex)}),()=>E(e.tag,{class:f_(),style:e.themeVarsScope==="local"?n.value:void 0},{default:()=>{var s;return[(s=t.default)==null?void 0:s.call(t)]}})}});const[g_,Dl]=He("icon"),v_=e=>e==null?void 0:e.includes("/"),y_={dot:Boolean,tag:Be("i"),name:String,size:$e,badge:$e,color:String,badgeProps:Object,classPrefix:String};var b_=be({name:g_,props:y_,setup(e,{slots:t}){const n=ht($d,null),s=j(()=>e.classPrefix||(n==null?void 0:n.iconPrefix)||Dl());return()=>{const{tag:o,dot:i,name:a,size:r,badge:c,color:d}=e,l=v_(a);return E(Rd,Tt({dot:i,tag:o,class:[s.value,l?"":`${s.value}-${a}`],style:{color:d,fontSize:ot(r)},content:c},e.badgeProps),{default:()=>{var u;return[(u=t.default)==null?void 0:u.call(t),l&&E("img",{class:Dl("image"),src:a},null)]}})}}});const It=Ge(b_),[w_,no]=He("loading"),S_=Array(12).fill(null).map((e,t)=>E("i",{class:no("line",String(t+1))},null)),E_=E("svg",{class:no("circular"),viewBox:"25 25 50 50"},[E("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),C_={size:$e,type:Be("circular"),color:String,vertical:Boolean,textSize:$e,textColor:String};var x_=be({name:w_,props:C_,setup(e,{slots:t}){const n=j(()=>Ke({color:e.color},yd(e.size))),s=()=>{const i=e.type==="spinner"?S_:E_;return E("span",{class:no("spinner",e.type),style:n.value},[t.icon?t.icon():i])},o=()=>{var i;if(t.default)return E("span",{class:no("text"),style:{fontSize:ot(e.textSize),color:(i=e.textColor)!=null?i:e.color}},[t.default()])};return()=>{const{type:i,vertical:a}=e;return E("div",{class:no([i,{vertical:a}]),"aria-live":"polite","aria-busy":!0},[s(),o()])}}});const Co=Ge(x_),[k_,ss]=He("button"),T_=Ke({},Oi,{tag:Be("button"),text:String,icon:String,type:Be("default"),size:Be("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:Be("button"),loadingSize:$e,loadingText:String,loadingType:String,iconPosition:Be("left")});var A_=be({name:k_,props:T_,emits:["click"],setup(e,{emit:t,slots:n}){const s=br(),o=()=>n.loading?n.loading():E(Co,{size:e.loadingSize,type:e.loadingType,class:ss("loading")},null),i=()=>{if(e.loading)return o();if(n.icon)return E("div",{class:ss("icon")},[n.icon()]);if(e.icon)return E(It,{name:e.icon,class:ss("icon"),classPrefix:e.iconPrefix},null)},a=()=>{let d;if(e.loading?d=e.loadingText:d=n.default?n.default():e.text,d)return E("span",{class:ss("text")},[d])},r=()=>{const{color:d,plain:l}=e;if(d){const u={color:l?d:"white"};return l||(u.background=d),d.includes("gradient")?u.border=0:u.borderColor=d,u}},c=d=>{e.loading?vn(d):e.disabled||(t("click",d),s())};return()=>{const{tag:d,type:l,size:u,block:f,round:h,plain:_,square:m,loading:p,disabled:v,hairline:C,nativeType:R,iconPosition:x}=e,b=[ss([l,u,{plain:_,block:f,round:h,square:m,loading:p,disabled:v,hairline:C}]),{[Zm]:C}];return E(d,{type:R,class:b,style:r(),disabled:v,onClick:c},{default:()=>[E("div",{class:ss("content")},[x==="left"&&i(),a(),x==="right"&&i()])]})}}});const Ss=Ge(A_),[R_,I_]=He("action-bar-button"),O_=Ke({},Oi,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean});var $_=be({name:R_,props:O_,setup(e,{slots:t}){const n=br(),{parent:s,index:o}=Is(Td),i=j(()=>{if(s){const r=s.children[o.value-1];return!(r&&"isButton"in r)}}),a=j(()=>{if(s){const r=s.children[o.value+1];return!(r&&"isButton"in r)}});return Bt({isButton:!0}),()=>{const{type:r,icon:c,text:d,color:l,loading:u,disabled:f}=e;return E(Ss,{class:I_([r,{last:a.value,first:i.value}]),size:"large",type:r,icon:c,color:l,loading:u,disabled:f,onClick:n},{default:()=>[t.default?t.default():d]})}}});const Bl=Ge($_),wr={show:Boolean,zIndex:$e,overlay:qe,duration:$e,teleport:[String,Object],lockScroll:qe,lazyRender:qe,beforeClose:Function,overlayProps:Object,overlayStyle:Object,overlayClass:Ut,transitionAppear:Boolean,closeOnClickOverlay:qe},P_=Object.keys(wr);function D_(e,t){return e>t?"horizontal":t>e?"vertical":""}function Sr(){const e=q(0),t=q(0),n=q(0),s=q(0),o=q(0),i=q(0),a=q(""),r=q(!0),c=()=>a.value==="vertical",d=()=>a.value==="horizontal",l=()=>{n.value=0,s.value=0,o.value=0,i.value=0,a.value="",r.value=!0};return{move:h=>{const _=h.touches[0];n.value=(_.clientX<0?0:_.clientX)-e.value,s.value=_.clientY-t.value,o.value=Math.abs(n.value),i.value=Math.abs(s.value);const m=10;(!a.value||o.value<m&&i.value<m)&&(a.value=D_(o.value,i.value)),r.value&&(o.value>Ol||i.value>Ol)&&(r.value=!1)},start:h=>{l(),e.value=h.touches[0].clientX,t.value=h.touches[0].clientY},reset:l,startX:e,startY:t,deltaX:n,deltaY:s,offsetX:o,offsetY:i,direction:a,isVertical:c,isHorizontal:d,isTap:r}}let Ls=0;const Nl="van-overflow-hidden";function B_(e,t){const n=Sr(),s="01",o="10",i=l=>{n.move(l);const u=n.deltaY.value>0?o:s,f=md(l.target,e.value),{scrollHeight:h,offsetHeight:_,scrollTop:m}=f;let p="11";m===0?p=_>=h?"00":"01":m+_>=h&&(p="10"),p!=="11"&&n.isVertical()&&!(parseInt(p,2)&parseInt(u,2))&&vn(l,!0)},a=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",i,{passive:!1}),Ls||document.body.classList.add(Nl),Ls++},r=()=>{Ls&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",i),Ls--,Ls||document.body.classList.remove(Nl))},c=()=>t()&&a(),d=()=>t()&&r();Ri(c),es(d),Ts(d),ke(t,l=>{l?a():r()})}function Er(e){const t=q(!1);return ke(e,n=>{n&&(t.value=n)},{immediate:!0}),n=>()=>t.value?n():null}const Ll=()=>{var e;const{scopeId:t}=((e=Wt())==null?void 0:e.vnode)||{};return t?{[t]:""}:null},[N_,L_]=He("overlay"),M_={show:Boolean,zIndex:$e,duration:$e,className:Ut,lockScroll:qe,lazyRender:qe,customStyle:Object,teleport:[String,Object]};var F_=be({name:N_,inheritAttrs:!1,props:M_,setup(e,{attrs:t,slots:n}){const s=q(),o=Er(()=>e.show||!e.lazyRender),i=r=>{e.lockScroll&&vn(r,!0)},a=o(()=>{var r;const c=Ke(bd(e.zIndex),e.customStyle);return st(e.duration)&&(c.animationDuration=`${e.duration}s`),Jn(E("div",Tt({ref:s,style:c,class:[L_(),e.className]},t),[(r=n.default)==null?void 0:r.call(n)]),[[Yn,e.show]])});return ts("touchmove",i,{target:s}),()=>{const r=E(ui,{name:"van-fade",appear:!0},{default:a});return e.teleport?E(Tu,{to:e.teleport},{default:()=>[r]}):r}}});const V_=Ge(F_),j_=Ke({},wr,{round:Boolean,position:Be("center"),closeIcon:Be("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:Be("top-right"),destroyOnClose:Boolean,safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[q_,Ml]=He("popup");var U_=be({name:q_,inheritAttrs:!1,props:j_,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(e,{emit:t,attrs:n,slots:s}){let o,i;const a=q(),r=q(),c=Er(()=>e.show||!e.lazyRender),d=j(()=>{const I={zIndex:a.value};if(st(e.duration)){const D=e.position==="center"?"animationDuration":"transitionDuration";I[D]=`${e.duration}s`}return I}),l=()=>{o||(o=!0,a.value=e.zIndex!==void 0?+e.zIndex:u_(),t("open"))},u=()=>{o&&vr(e.beforeClose,{done(){o=!1,t("close"),t("update:show",!1)}})},f=I=>{t("clickOverlay",I),e.closeOnClickOverlay&&u()},h=()=>{if(e.overlay){const I=Ke({show:e.show,class:e.overlayClass,zIndex:a.value,duration:e.duration,customStyle:e.overlayStyle,role:e.closeOnClickOverlay?"button":void 0,tabindex:e.closeOnClickOverlay?0:void 0},e.overlayProps);return E(V_,Tt(I,Ll(),{onClick:f}),{default:s["overlay-content"]})}},_=I=>{t("clickCloseIcon",I),u()},m=()=>{if(e.closeable)return E(It,{role:"button",tabindex:0,name:e.closeIcon,class:[Ml("close-icon",e.closeIconPosition),e_],classPrefix:e.iconPrefix,onClick:_},null)};let p;const v=()=>{p&&clearTimeout(p),p=setTimeout(()=>{t("opened")})},C=()=>t("closed"),R=I=>t("keydown",I),x=c(()=>{var I;const{destroyOnClose:D,round:K,position:M,safeAreaInsetTop:F,safeAreaInsetBottom:B,show:O}=e;if(!(!O&&D))return Jn(E("div",Tt({ref:r,style:d.value,role:"dialog",tabindex:0,class:[Ml({round:K,[M]:M}),{"van-safe-area-top":F,"van-safe-area-bottom":B}],onKeydown:R},n,Ll()),[(I=s.default)==null?void 0:I.call(s),m()]),[[Yn,O]])}),b=()=>{const{position:I,transition:D,transitionAppear:K}=e,M=I==="center"?"van-fade":`van-popup-slide-${I}`;return E(ui,{name:D||M,appear:K,onAfterEnter:v,onAfterLeave:C},{default:x})};return ke(()=>e.show,I=>{I&&!o&&(l(),n.tabindex===0&&Xe(()=>{var D;(D=r.value)==null||D.focus()})),!I&&o&&(o=!1,t("close"))}),Bt({popupRef:r}),B_(r,()=>e.show&&e.lockScroll),ts("popstate",()=>{e.closeOnPopstate&&(u(),i=!1)}),nt(()=>{e.show&&l()}),ks(()=>{i&&(t("update:show",!0),i=!1)}),es(()=>{e.show&&e.teleport&&(u(),i=!0)}),cn(xd,()=>e.show),()=>e.teleport?E(Tu,{to:e.teleport},{default:()=>[h(),b()]}):E(Se,null,[h(),b()])}});const Os=Ge(U_);function z_(e,t,n){let s,o=0;const i=e.scrollLeft,a=n===0?1:Math.round(n*1e3/16);let r=i;function c(){hd(s)}function d(){r+=(t-i)/a,e.scrollLeft=r,++o<a&&(s=ws(d))}return d(),c}function H_(e,t,n,s){let o,i=mr(e);const a=i<t,r=n===0?1:Math.round(n*1e3/16),c=(t-i)/r;function d(){hd(o)}function l(){i+=c,(a&&i>t||!a&&i<t)&&(i=t),Da(e,i),a&&i<t||!a&&i>t?o=ws(l):s&&(o=ws(s))}return l(),d}let W_=0;function xo(){const e=Wt(),{name:t="unknown"}=(e==null?void 0:e.type)||{};return`${t}-${++W_}`}function Pd(){const e=q([]),t=[];return Bu(()=>{e.value=[]}),[e,s=>(t[s]||(t[s]=o=>{e.value[s]=o}),t[s])]}function Dd(e,t){if(!As||!window.IntersectionObserver)return;const n=new IntersectionObserver(i=>{t(i[0].intersectionRatio>0)},{root:document.body}),s=()=>{e.value&&n.observe(e.value)},o=()=>{e.value&&n.unobserve(e.value)};es(o),Ts(o),Ri(s)}const[K_,G_]=He("sticky"),J_={zIndex:$e,position:Be("top"),container:Object,offsetTop:Jt(0),offsetBottom:Jt(0)};var X_=be({name:K_,props:J_,emits:["scroll","change"],setup(e,{emit:t,slots:n}){const s=q(),o=_d(s),i=pt({fixed:!1,width:0,height:0,transform:0}),a=q(!1),r=j(()=>wd(e.position==="top"?e.offsetTop:e.offsetBottom)),c=j(()=>{if(a.value)return;const{fixed:f,height:h,width:_}=i;if(f)return{width:`${_}px`,height:`${h}px`}}),d=j(()=>{if(!i.fixed||a.value)return;const f=Ke(bd(e.zIndex),{width:`${i.width}px`,height:`${i.height}px`,[e.position]:`${r.value}px`});return i.transform&&(f.transform=`translate3d(0, ${i.transform}px, 0)`),f}),l=f=>t("scroll",{scrollTop:f,isFixed:i.fixed}),u=()=>{if(!s.value||mo(s))return;const{container:f,position:h}=e,_=an(s),m=mr(window);if(i.width=_.width,i.height=_.height,h==="top")if(f){const p=an(f),v=p.bottom-r.value-i.height;i.fixed=r.value>_.top&&p.bottom>0,i.transform=v<0?v:0}else i.fixed=r.value>_.top;else{const{clientHeight:p}=document.documentElement;if(f){const v=an(f),C=p-v.top-r.value-i.height;i.fixed=p-r.value<_.bottom&&p>v.top,i.transform=C<0?-C:0}else i.fixed=p-r.value<_.bottom}l(m)};return ke(()=>i.fixed,f=>t("change",f)),ts("scroll",u,{target:o,passive:!0}),Dd(s,u),ke([So,Ii],()=>{!s.value||mo(s)||!i.fixed||(a.value=!0,Xe(()=>{const f=an(s);i.width=f.width,i.height=f.height,a.value=!1}))}),()=>{var f;return E("div",{ref:s,style:c.value},[E("div",{class:G_({fixed:i.fixed&&!a.value}),style:d.value},[(f=n.default)==null?void 0:f.call(n)])])}}});const Y_=Ge(X_),[Bd,jo]=He("swipe"),Q_={loop:qe,width:$e,height:$e,vertical:Boolean,autoplay:Jt(0),duration:Jt(500),touchable:qe,lazyRender:Boolean,initialSwipe:Jt(0),indicatorColor:String,showIndicators:qe,stopPropagation:qe},Nd=Symbol(Bd);var Z_=be({name:Bd,props:Q_,emits:["change","dragStart","dragEnd"],setup(e,{emit:t,slots:n}){const s=q(),o=q(),i=pt({rect:null,width:0,height:0,offset:0,active:0,swiping:!1});let a=!1;const r=Sr(),{children:c,linkChildren:d}=Ai(Nd),l=j(()=>c.length),u=j(()=>i[e.vertical?"height":"width"]),f=j(()=>e.vertical?r.deltaY.value:r.deltaX.value),h=j(()=>i.rect?(e.vertical?i.rect.height:i.rect.width)-u.value*l.value:0),_=j(()=>u.value?Math.ceil(Math.abs(h.value)/u.value):l.value),m=j(()=>l.value*u.value),p=j(()=>(i.active+l.value)%l.value),v=j(()=>{const oe=e.vertical?"vertical":"horizontal";return r.direction.value===oe}),C=j(()=>{const oe={transitionDuration:`${i.swiping?0:e.duration}ms`,transform:`translate${e.vertical?"Y":"X"}(${+i.offset.toFixed(2)}px)`};if(u.value){const ne=e.vertical?"height":"width",ie=e.vertical?"width":"height";oe[ne]=`${m.value}px`,oe[ie]=e[ie]?`${e[ie]}px`:""}return oe}),R=oe=>{const{active:ne}=i;return oe?e.loop?Qo(ne+oe,-1,l.value):Qo(ne+oe,0,_.value):ne},x=(oe,ne=0)=>{let ie=oe*u.value;e.loop||(ie=Math.min(ie,-h.value));let Ae=ne-ie;return e.loop||(Ae=Qo(Ae,h.value,0)),Ae},b=({pace:oe=0,offset:ne=0,emitChange:ie})=>{if(l.value<=1)return;const{active:Ae}=i,Y=R(oe),ce=x(Y,ne);if(e.loop){if(c[0]&&ce!==h.value){const S=ce<h.value;c[0].setOffset(S?m.value:0)}if(c[l.value-1]&&ce!==0){const S=ce>0;c[l.value-1].setOffset(S?-m.value:0)}}i.active=Y,i.offset=ce,ie&&Y!==Ae&&t("change",p.value)},I=()=>{i.swiping=!0,i.active<=-1?b({pace:l.value}):i.active>=l.value&&b({pace:-l.value})},D=()=>{I(),r.reset(),ds(()=>{i.swiping=!1,b({pace:-1,emitChange:!0})})},K=()=>{I(),r.reset(),ds(()=>{i.swiping=!1,b({pace:1,emitChange:!0})})};let M;const F=()=>clearTimeout(M),B=()=>{F(),+e.autoplay>0&&l.value>1&&(M=setTimeout(()=>{K(),B()},+e.autoplay))},O=(oe=+e.initialSwipe)=>{if(!s.value)return;const ne=()=>{var ie,Ae;if(!mo(s)){const Y={width:s.value.offsetWidth,height:s.value.offsetHeight};i.rect=Y,i.width=+((ie=e.width)!=null?ie:Y.width),i.height=+((Ae=e.height)!=null?Ae:Y.height)}l.value&&(oe=Math.min(l.value-1,oe),oe===-1&&(oe=l.value-1)),i.active=oe,i.swiping=!0,i.offset=x(oe),c.forEach(Y=>{Y.setOffset(0)}),B()};mo(s)?Xe().then(ne):ne()},Q=()=>O(i.active);let Z;const Ce=oe=>{!e.touchable||oe.touches.length>1||(r.start(oe),a=!1,Z=Date.now(),F(),I())},he=oe=>{e.touchable&&i.swiping&&(r.move(oe),v.value&&(!e.loop&&(i.active===0&&f.value>0||i.active===l.value-1&&f.value<0)||(vn(oe,e.stopPropagation),b({offset:f.value}),a||(t("dragStart",{index:p.value}),a=!0))))},ae=()=>{if(!e.touchable||!i.swiping)return;const oe=Date.now()-Z,ne=f.value/oe;if((Math.abs(ne)>.25||Math.abs(f.value)>u.value/2)&&v.value){const Ae=e.vertical?r.offsetY.value:r.offsetX.value;let Y=0;e.loop?Y=Ae>0?f.value>0?-1:1:0:Y=-Math[f.value>0?"ceil":"floor"](f.value/u.value),b({pace:Y,emitChange:!0})}else f.value&&b({pace:0});a=!1,i.swiping=!1,t("dragEnd",{index:p.value}),B()},de=(oe,ne={})=>{I(),r.reset(),ds(()=>{let ie;e.loop&&oe===l.value?ie=i.active===0?0:oe:ie=oe%l.value,ne.immediate?ds(()=>{i.swiping=!1}):i.swiping=!1,b({pace:ie-i.active,emitChange:!0})})},xe=(oe,ne)=>{const ie=ne===p.value,Ae=ie?{backgroundColor:e.indicatorColor}:void 0;return E("i",{style:Ae,class:jo("indicator",{active:ie})},null)},we=()=>{if(n.indicator)return n.indicator({active:p.value,total:l.value});if(e.showIndicators&&l.value>1)return E("div",{class:jo("indicators",{vertical:e.vertical})},[Array(l.value).fill("").map(xe)])};return Bt({prev:D,next:K,state:i,resize:Q,swipeTo:de}),d({size:u,props:e,count:l,activeIndicator:p}),ke(()=>e.initialSwipe,oe=>O(+oe)),ke(l,()=>O(i.active)),ke(()=>e.autoplay,B),ke([So,Ii,()=>e.width,()=>e.height],Q),ke(Pm(),oe=>{oe==="visible"?B():F()}),nt(O),ks(()=>O(i.active)),yr(()=>O(i.active)),es(F),Ts(F),ts("touchmove",he,{target:o}),()=>{var oe;return E("div",{ref:s,class:jo()},[E("div",{ref:o,style:C.value,class:jo("track",{vertical:e.vertical}),onTouchstartPassive:Ce,onTouchend:ae,onTouchcancel:ae},[(oe=n.default)==null?void 0:oe.call(n)]),we()])}}});const eg=Ge(Z_),[tg,Fl]=He("tabs");var ng=be({name:tg,props:{count:Yo(Number),inited:Boolean,animated:Boolean,duration:Yo($e),swipeable:Boolean,lazyRender:Boolean,currentIndex:Yo(Number)},emits:["change"],setup(e,{emit:t,slots:n}){const s=q(),o=r=>t("change",r),i=()=>{var r;const c=(r=n.default)==null?void 0:r.call(n);return e.animated||e.swipeable?E(eg,{ref:s,loop:!1,class:Fl("track"),duration:+e.duration*1e3,touchable:e.swipeable,lazyRender:e.lazyRender,showIndicators:!1,onChange:o},{default:()=>[c]}):c},a=r=>{const c=s.value;c&&c.state.active!==r&&c.swipeTo(r,{immediate:!e.inited})};return ke(()=>e.currentIndex,a),nt(()=>{a(e.currentIndex)}),Bt({swipeRef:s}),()=>E("div",{class:Fl("content",{animated:e.animated||e.swipeable})},[i()])}});const[Ld,qo]=He("tabs"),sg={type:Be("line"),color:String,border:Boolean,sticky:Boolean,shrink:Boolean,active:Jt(0),duration:Jt(.3),animated:Boolean,ellipsis:qe,swipeable:Boolean,scrollspy:Boolean,offsetTop:Jt(0),background:String,lazyRender:qe,showHeader:qe,lineWidth:$e,lineHeight:$e,beforeChange:Function,swipeThreshold:Jt(5),titleActiveColor:String,titleInactiveColor:String},Md=Symbol(Ld);var og=be({name:Ld,props:sg,emits:["change","scroll","rendered","clickTab","update:active"],setup(e,{emit:t,slots:n}){let s,o,i,a,r;const c=q(),d=q(),l=q(),u=q(),f=xo(),h=_d(c),[_,m]=Pd(),{children:p,linkChildren:v}=Ai(Md),C=pt({inited:!1,position:"",lineStyle:{},currentIndex:-1}),R=j(()=>p.length>+e.swipeThreshold||!e.ellipsis||e.shrink),x=j(()=>({borderColor:e.color,background:e.background})),b=(Y,ce)=>{var S;return(S=Y.name)!=null?S:ce},I=j(()=>{const Y=p[C.currentIndex];if(Y)return b(Y,C.currentIndex)}),D=j(()=>wd(e.offsetTop)),K=j(()=>e.sticky?D.value+s:0),M=Y=>{const ce=d.value,S=_.value;if(!R.value||!ce||!S||!S[C.currentIndex])return;const L=S[C.currentIndex].$el,H=L.offsetLeft-(ce.offsetWidth-L.offsetWidth)/2;a&&a(),a=z_(ce,H,Y?0:+e.duration)},F=()=>{const Y=C.inited;Xe(()=>{const ce=_.value;if(!ce||!ce[C.currentIndex]||e.type!=="line"||mo(c.value))return;const S=ce[C.currentIndex].$el,{lineWidth:L,lineHeight:H}=e,N=S.offsetLeft+S.offsetWidth/2,z={width:ot(L),backgroundColor:e.color,transform:`translateX(${N}px) translateX(-50%)`};if(Y&&(z.transitionDuration=`${e.duration}s`),st(H)){const y=ot(H);z.height=y,z.borderRadius=y}C.lineStyle=z})},B=Y=>{const ce=Y<C.currentIndex?-1:1;for(;Y>=0&&Y<p.length;){if(!p[Y].disabled)return Y;Y+=ce}},O=(Y,ce)=>{const S=B(Y);if(!st(S))return;const L=p[S],H=b(L,S),N=C.currentIndex!==null;C.currentIndex!==S&&(C.currentIndex=S,ce||M(),F()),H!==e.active&&(t("update:active",H),N&&t("change",H,L.title)),i&&!e.scrollspy&&gr(Math.ceil(Tl(c.value)-D.value))},Q=(Y,ce)=>{const S=p.findIndex((L,H)=>b(L,H)===Y);O(S===-1?0:S,ce)},Z=(Y=!1)=>{if(e.scrollspy){const ce=p[C.currentIndex].$el;if(ce&&h.value){const S=Tl(ce,h.value)-K.value;o=!0,r&&r(),r=H_(h.value,S,Y?0:+e.duration,()=>{o=!1})}}},Ce=(Y,ce,S)=>{const{title:L,disabled:H}=p[ce],N=b(p[ce],ce);H||(vr(e.beforeChange,{args:[N],done:()=>{O(ce),Z()}}),Ad(Y)),t("clickTab",{name:N,title:L,event:S,disabled:H})},he=Y=>{i=Y.isFixed,t("scroll",Y)},ae=Y=>{Xe(()=>{Q(Y),Z(!0)})},de=()=>{for(let Y=0;Y<p.length;Y++){const{top:ce}=an(p[Y].$el);if(ce>K.value)return Y===0?0:Y-1}return p.length-1},xe=()=>{if(e.scrollspy&&!o){const Y=de();O(Y)}},we=()=>{if(e.type==="line"&&p.length)return E("div",{class:qo("line"),style:C.lineStyle},null)},oe=()=>{var Y,ce,S;const{type:L,border:H,sticky:N}=e,z=[E("div",{ref:N?void 0:l,class:[qo("wrap"),{[Cd]:L==="line"&&H}]},[E("div",{ref:d,role:"tablist",class:qo("nav",[L,{shrink:e.shrink,complete:R.value}]),style:x.value,"aria-orientation":"horizontal"},[(Y=n["nav-left"])==null?void 0:Y.call(n),p.map(y=>y.renderTitle(Ce)),we(),(ce=n["nav-right"])==null?void 0:ce.call(n)])]),(S=n["nav-bottom"])==null?void 0:S.call(n)];return N?E("div",{ref:l},[z]):z},ne=()=>{F(),Xe(()=>{var Y,ce;M(!0),(ce=(Y=u.value)==null?void 0:Y.swipeRef.value)==null||ce.resize()})};ke(()=>[e.color,e.duration,e.lineWidth,e.lineHeight],F),ke(So,ne),ke(()=>e.active,Y=>{Y!==I.value&&Q(Y)}),ke(()=>p.length,()=>{C.inited&&(Q(e.active),F(),Xe(()=>{M(!0)}))});const ie=()=>{Q(e.active,!0),Xe(()=>{C.inited=!0,l.value&&(s=an(l.value).height),M(!0)})},Ae=(Y,ce)=>t("rendered",Y,ce);return Bt({resize:ne,scrollTo:ae}),ks(F),yr(F),Ri(ie),Dd(c,F),ts("scroll",xe,{target:h,passive:!0}),v({id:f,props:e,setLine:F,scrollable:R,onRendered:Ae,currentName:I,setTitleRefs:m,scrollIntoView:M}),()=>E("div",{ref:c,class:qo([e.type])},[e.showHeader?e.sticky?E(Y_,{container:c.value,offsetTop:D.value,onScroll:he},{default:()=>[oe()]}):oe():null,E(ng,{ref:u,count:p.length,inited:C.inited,animated:e.animated,duration:e.duration,swipeable:e.swipeable,lazyRender:e.lazyRender,currentIndex:C.currentIndex,onChange:O},{default:()=>{var Y;return[(Y=n.default)==null?void 0:Y.call(n)]}})])}});const ig=Symbol(),Fd=Symbol(),ag=()=>ht(Fd,null),rg=e=>{const t=ag();cn(ig,e),cn(Fd,j(()=>(t==null||t.value)&&e.value))},[lg,Vl]=He("tab"),cg=be({name:lg,props:{id:String,dot:Boolean,type:String,color:String,title:String,badge:$e,shrink:Boolean,isActive:Boolean,disabled:Boolean,controls:String,scrollable:Boolean,activeColor:String,inactiveColor:String,showZeroBadge:qe},setup(e,{slots:t}){const n=j(()=>{const o={},{type:i,color:a,disabled:r,isActive:c,activeColor:d,inactiveColor:l}=e;a&&i==="card"&&(o.borderColor=a,r||(c?o.backgroundColor=a:o.color=a));const f=c?d:l;return f&&(o.color=f),o}),s=()=>{const o=E("span",{class:Vl("text",{ellipsis:!e.scrollable})},[t.title?t.title():e.title]);return e.dot||st(e.badge)&&e.badge!==""?E(Rd,{dot:e.dot,content:e.badge,showZero:e.showZeroBadge},{default:()=>[o]}):o};return()=>E("div",{id:e.id,role:"tab",class:[Vl([e.type,{grow:e.scrollable&&!e.shrink,shrink:e.shrink,active:e.isActive,disabled:e.disabled}])],style:n.value,tabindex:e.disabled?void 0:e.isActive?0:-1,"aria-selected":e.isActive,"aria-disabled":e.disabled||void 0,"aria-controls":e.controls,"data-allow-mismatch":"attribute"},[s()])}}),[ug,dg]=He("swipe-item");var fg=be({name:ug,setup(e,{slots:t}){let n;const s=pt({offset:0,inited:!1,mounted:!1}),{parent:o,index:i}=Is(Nd);if(!o)return;const a=j(()=>{const d={},{vertical:l}=o.props;return o.size.value&&(d[l?"height":"width"]=`${o.size.value}px`),s.offset&&(d.transform=`translate${l?"Y":"X"}(${s.offset}px)`),d}),r=j(()=>{const{loop:d,lazyRender:l}=o.props;if(!l||n)return!0;if(!s.mounted)return!1;const u=o.activeIndicator.value,f=o.count.value-1,h=u===0&&d?f:u-1,_=u===f&&d?0:u+1;return n=i.value===u||i.value===h||i.value===_,n}),c=d=>{s.offset=d};return nt(()=>{Xe(()=>{s.mounted=!0})}),Bt({setOffset:c}),()=>{var d;return E("div",{class:dg(),style:a.value},[r.value?(d=t.default)==null?void 0:d.call(t):null])}}});const hg=Ge(fg),[pg,na]=He("tab"),mg=Ke({},Oi,{dot:Boolean,name:$e,badge:$e,title:String,disabled:Boolean,titleClass:Ut,titleStyle:[String,Object],showZeroBadge:qe});var _g=be({name:pg,props:mg,setup(e,{slots:t}){const n=xo(),s=q(!1),o=Wt(),{parent:i,index:a}=Is(Md);if(!i)return;const r=()=>{var _;return(_=e.name)!=null?_:a.value},c=()=>{s.value=!0,i.props.lazyRender&&Xe(()=>{i.onRendered(r(),e.title)})},d=j(()=>{const _=r()===i.currentName.value;return _&&!s.value&&c(),_}),l=q(""),u=q("");Eu(()=>{const{titleClass:_,titleStyle:m}=e;l.value=_?ge(_):"",u.value=m&&typeof m!="string"?sh(ln(m)):m});const f=_=>E(cg,Tt({key:n,id:`${i.id}-${a.value}`,ref:i.setTitleRefs(a.value),style:u.value,class:l.value,isActive:d.value,controls:n,scrollable:i.scrollable.value,activeColor:i.props.titleActiveColor,inactiveColor:i.props.titleInactiveColor,onClick:m=>_(o.proxy,a.value,m)},Sn(i.props,["type","color","shrink"]),Sn(e,["dot","badge","title","disabled","showZeroBadge"])),{title:t.title}),h=q(!d.value);return ke(d,_=>{_?h.value=!1:ds(()=>{h.value=!0})}),ke(()=>e.title,()=>{i.setLine(),i.scrollIntoView()}),rg(d),Bt({id:n,renderTitle:f}),()=>{var _;const m=`${i.id}-${a.value}`,{animated:p,swipeable:v,scrollspy:C,lazyRender:R}=i.props;if(!t.default&&!p)return;const x=C||d.value;if(p||v)return E(hg,{id:n,role:"tabpanel",class:na("panel-wrapper",{inactive:h.value}),tabindex:d.value?0:-1,"aria-hidden":!d.value,"aria-labelledby":m,"data-allow-mismatch":"attribute"},{default:()=>{var D;return[E("div",{class:na("panel")},[(D=t.default)==null?void 0:D.call(t)])]}});const I=s.value||C||!R?(_=t.default)==null?void 0:_.call(t):null;return Jn(E("div",{id:n,role:"tabpanel",class:na("panel"),tabindex:x?0:-1,"aria-labelledby":m,"data-allow-mismatch":"attribute"},[I]),[[Yn,x]])}}});const gg=Ge(_g),vg=Ge(og),[yg,os]=He("cell"),$i={tag:Be("div"),icon:String,size:String,title:$e,value:$e,label:$e,center:Boolean,isLink:Boolean,border:qe,iconPrefix:String,valueClass:Ut,labelClass:Ut,titleClass:Ut,titleStyle:null,arrowDirection:String,required:{type:[Boolean,String],default:null},clickable:{type:Boolean,default:null}},bg=Ke({},$i,Oi);var wg=be({name:yg,props:bg,setup(e,{slots:t}){const n=br(),s=()=>{if(t.label||st(e.label))return E("div",{class:[os("label"),e.labelClass]},[t.label?t.label():e.label])},o=()=>{var c;if(t.title||st(e.title)){const d=(c=t.title)==null?void 0:c.call(t);return Array.isArray(d)&&d.length===0?void 0:E("div",{class:[os("title"),e.titleClass],style:e.titleStyle},[d||E("span",null,[e.title]),s()])}},i=()=>{const c=t.value||t.default;if(c||st(e.value))return E("div",{class:[os("value"),e.valueClass]},[c?c():E("span",null,[e.value])])},a=()=>{if(t.icon)return t.icon();if(e.icon)return E(It,{name:e.icon,class:os("left-icon"),classPrefix:e.iconPrefix},null)},r=()=>{if(t["right-icon"])return t["right-icon"]();if(e.isLink){const c=e.arrowDirection&&e.arrowDirection!=="right"?`arrow-${e.arrowDirection}`:"arrow";return E(It,{name:c,class:os("right-icon")},null)}};return()=>{var c;const{tag:d,size:l,center:u,border:f,isLink:h,required:_}=e,m=(c=e.clickable)!=null?c:h,p={center:u,required:!!_,clickable:m,borderless:!f};return l&&(p[l]=!!l),E(d,{class:os(p),role:m?"button":void 0,tabindex:m?0:void 0,onClick:n},{default:()=>{var v;return[a(),o(),i(),r(),(v=t.extra)==null?void 0:v.call(t)]}})}}});const Vd=Ge(wg);function jd(e){return Array.isArray(e)?!e.length:e===0?!1:!e}function Sg(e,t){if(jd(e)){if(t.required)return!1;if(t.validateEmpty===!1)return!0}return!(t.pattern&&!t.pattern.test(String(e)))}function Eg(e,t){return new Promise(n=>{const s=t.validator(e,t);if(ud(s)){s.then(n);return}n(s)})}function jl(e,t){const{message:n}=t;return po(n)?n(e,t):n||""}function Cg({target:e}){e.composing=!0}function ql({target:e}){e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}function xg(e,t){const n=_r();e.style.height="auto";let s=e.scrollHeight;if(wo(t)){const{maxHeight:o,minHeight:i}=t;o!==void 0&&(s=Math.min(s,o)),i!==void 0&&(s=Math.max(s,i))}s&&(e.style.height=`${s}px`,gr(n))}function kg(e,t){return e==="number"&&(e="text",t??(t="decimal")),e==="digit"&&(e="tel",t??(t="numeric")),{type:e,inputmode:t}}function Ms(e){return[...e].length}function sa(e,t){return[...e].slice(0,t).join("")}const[Tg,Vt]=He("field"),Cr={id:String,name:String,leftIcon:String,rightIcon:String,autofocus:Boolean,clearable:Boolean,maxlength:$e,max:Number,min:Number,formatter:Function,clearIcon:Be("clear"),modelValue:Jt(""),inputAlign:String,placeholder:String,autocomplete:String,autocapitalize:String,autocorrect:String,errorMessage:String,enterkeyhint:String,clearTrigger:Be("focus"),formatTrigger:Be("onChange"),spellcheck:{type:Boolean,default:null},error:{type:Boolean,default:null},disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},inputmode:String},Ag=Ke({},$i,Cr,{rows:$e,type:Be("text"),rules:Array,autosize:[Boolean,Object],labelWidth:$e,labelClass:Ut,labelAlign:String,showWordLimit:Boolean,errorMessageAlign:String,colon:{type:Boolean,default:null}});var Rg=be({name:Tg,props:Ag,emits:["blur","focus","clear","keypress","clickInput","endValidate","startValidate","clickLeftIcon","clickRightIcon","update:modelValue"],setup(e,{emit:t,slots:n}){const s=xo(),o=pt({status:"unvalidated",focused:!1,validateMessage:""}),i=q(),a=q(),r=q(),{parent:c}=Is(t_),d=()=>{var S;return String((S=e.modelValue)!=null?S:"")},l=S=>{if(st(e[S]))return e[S];if(c&&st(c.props[S]))return c.props[S]},u=j(()=>{const S=l("readonly");if(e.clearable&&!S){const L=d()!=="",H=e.clearTrigger==="always"||e.clearTrigger==="focus"&&o.focused;return L&&H}return!1}),f=j(()=>r.value&&n.input?r.value():e.modelValue),h=j(()=>{var S;const L=l("required");return L==="auto"?(S=e.rules)==null?void 0:S.some(H=>H.required):L}),_=S=>S.reduce((L,H)=>L.then(()=>{if(o.status==="failed")return;let{value:N}=f;if(H.formatter&&(N=H.formatter(N,H)),!Sg(N,H)){o.status="failed",o.validateMessage=jl(N,H);return}if(H.validator)return jd(N)&&H.validateEmpty===!1?void 0:Eg(N,H).then(z=>{z&&typeof z=="string"?(o.status="failed",o.validateMessage=z):z===!1&&(o.status="failed",o.validateMessage=jl(N,H))})}),Promise.resolve()),m=()=>{o.status="unvalidated",o.validateMessage=""},p=()=>t("endValidate",{status:o.status,message:o.validateMessage}),v=(S=e.rules)=>new Promise(L=>{m(),S?(t("startValidate"),_(S).then(()=>{o.status==="failed"?(L({name:e.name,message:o.validateMessage}),p()):(o.status="passed",L(),p())})):L()}),C=S=>{if(c&&e.rules){const{validateTrigger:L}=c.props,H=Cl(L).includes(S),N=e.rules.filter(z=>z.trigger?Cl(z.trigger).includes(S):H);N.length&&v(N)}},R=S=>{var L;const{maxlength:H}=e;if(st(H)&&Ms(S)>+H){const N=d();if(N&&Ms(N)===+H)return N;let z=(L=i.value)==null?void 0:L.selectionEnd;if(o.focused&&z){const y=[...S],w=y.length-+H;return z=Ms(S.slice(0,z)),y.splice(z-w,w),y.join("")}return sa(S,+H)}return S},x=(S,L="onChange")=>{var H,N;const z=S;S=R(S);const y=z.length-S.length;if(e.type==="number"||e.type==="digit"){const T=e.type==="number";if(S=Um(S,T,T),L==="onBlur"&&S!==""&&(e.min!==void 0||e.max!==void 0)){const U=Qo(+S,(H=e.min)!=null?H:-1/0,(N=e.max)!=null?N:1/0);+S!==U&&(S=U.toString())}}let w=0;if(e.formatter&&L===e.formatTrigger){const{formatter:T,maxlength:U}=e;if(S=T(S),st(U)&&Ms(S)>+U&&(S=sa(S,+U)),i.value&&o.focused){const{selectionEnd:G}=i.value,W=sa(z,G);w=T(W).length-W.length}}if(i.value&&i.value.value!==S)if(o.focused){let{selectionStart:T,selectionEnd:U}=i.value;if(i.value.value=S,st(T)&&st(U)){const G=S.length;y?(T-=y,U-=y):w&&(T+=w,U+=w),i.value.setSelectionRange(Math.min(T,G),Math.min(U,G))}}else i.value.value=S;S!==e.modelValue&&t("update:modelValue",S)},b=S=>{S.target.composing||x(S.target.value)},I=()=>{var S;return(S=i.value)==null?void 0:S.blur()},D=()=>{var S;return(S=i.value)==null?void 0:S.focus()},K=()=>{const S=i.value;e.type==="textarea"&&e.autosize&&S&&xg(S,e.autosize)},M=S=>{o.focused=!0,t("focus",S),Xe(K),l("readonly")&&I()},F=S=>{o.focused=!1,x(d(),"onBlur"),t("blur",S),!l("readonly")&&(C("onBlur"),Xe(K),Bm())},B=S=>t("clickInput",S),O=S=>t("clickLeftIcon",S),Q=S=>t("clickRightIcon",S),Z=S=>{vn(S),t("update:modelValue",""),t("clear",S)},Ce=j(()=>{if(typeof e.error=="boolean")return e.error;if(c&&c.props.showError&&o.status==="failed")return!0}),he=j(()=>{const S=l("labelWidth"),L=l("labelAlign");if(S&&L!=="top")return{width:ot(S)}}),ae=S=>{S.keyCode===13&&(!(c&&c.props.submitOnEnter)&&e.type!=="textarea"&&vn(S),e.type==="search"&&I()),t("keypress",S)},de=()=>e.id||`${s}-input`,xe=()=>o.status,we=()=>{const S=Vt("control",[l("inputAlign"),{error:Ce.value,custom:!!n.input,"min-height":e.type==="textarea"&&!e.autosize}]);if(n.input)return E("div",{class:S,onClick:B},[n.input()]);const L={id:de(),ref:i,name:e.name,rows:e.rows!==void 0?+e.rows:void 0,class:S,disabled:l("disabled"),readonly:l("readonly"),autofocus:e.autofocus,placeholder:e.placeholder,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,enterkeyhint:e.enterkeyhint,spellcheck:e.spellcheck,"aria-labelledby":e.label?`${s}-label`:void 0,"data-allow-mismatch":"attribute",onBlur:F,onFocus:M,onInput:b,onClick:B,onChange:ql,onKeypress:ae,onCompositionend:ql,onCompositionstart:Cg};return e.type==="textarea"?E("textarea",Tt(L,{inputmode:e.inputmode}),null):E("input",Tt(kg(e.type,e.inputmode),L),null)},oe=()=>{const S=n["left-icon"];if(e.leftIcon||S)return E("div",{class:Vt("left-icon"),onClick:O},[S?S():E(It,{name:e.leftIcon,classPrefix:e.iconPrefix},null)])},ne=()=>{const S=n["right-icon"];if(e.rightIcon||S)return E("div",{class:Vt("right-icon"),onClick:Q},[S?S():E(It,{name:e.rightIcon,classPrefix:e.iconPrefix},null)])},ie=()=>{if(e.showWordLimit&&e.maxlength){const S=Ms(d());return E("div",{class:Vt("word-limit")},[E("span",{class:Vt("word-num")},[S]),je("/"),e.maxlength])}},Ae=()=>{if(c&&c.props.showErrorMessage===!1)return;const S=e.errorMessage||o.validateMessage;if(S){const L=n["error-message"],H=l("errorMessageAlign");return E("div",{class:Vt("error-message",H)},[L?L({message:S}):S])}},Y=()=>{const S=l("labelWidth"),L=l("labelAlign"),H=l("colon")?":":"";if(n.label)return[n.label(),H];if(e.label)return E("label",{id:`${s}-label`,for:n.input?void 0:de(),"data-allow-mismatch":"attribute",onClick:N=>{vn(N),D()},style:L==="top"&&S?{width:ot(S)}:void 0},[e.label+H])},ce=()=>[E("div",{class:Vt("body")},[we(),u.value&&E(It,{ref:a,name:e.clearIcon,class:Vt("clear")},null),ne(),n.button&&E("div",{class:Vt("button")},[n.button()])]),ie(),Ae()];return Bt({blur:I,focus:D,validate:v,formValue:f,resetValidation:m,getValidationStatus:xe}),cn(gd,{customValue:r,resetValidation:m,validateWithTrigger:C}),ke(()=>e.modelValue,()=>{x(d()),m(),C("onChange"),Xe(K)}),nt(()=>{x(d(),e.formatTrigger),Xe(K)}),ts("touchstart",Z,{target:j(()=>{var S;return(S=a.value)==null?void 0:S.$el})}),()=>{const S=l("disabled"),L=l("labelAlign"),H=oe(),N=()=>{const z=Y();return L==="top"?[H,z].filter(Boolean):z||[]};return E(Vd,{size:e.size,class:Vt({error:Ce.value,disabled:S,[`label-${L}`]:L}),center:e.center,border:e.border,isLink:e.isLink,clickable:e.clickable,titleStyle:he.value,valueClass:Vt("value"),titleClass:[Vt("label",[L,{required:h.value}]),e.labelClass],arrowDirection:e.arrowDirection},{icon:H&&L!=="top"?()=>H:null,title:N,value:ce,extra:n.extra})}}});const xr=Ge(Rg);let Fs=0;function Ig(e){e?(Fs||document.body.classList.add("van-toast--unclickable"),Fs++):Fs&&(Fs--,Fs||document.body.classList.remove("van-toast--unclickable"))}const[Og,is]=He("toast"),$g=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay","zIndex"],Pg={icon:String,show:Boolean,type:Be("text"),overlay:Boolean,message:$e,iconSize:$e,duration:fd(2e3),position:Be("middle"),teleport:[String,Object],wordBreak:String,className:Ut,iconPrefix:String,transition:Be("van-fade"),loadingType:String,forbidClick:Boolean,overlayClass:Ut,overlayStyle:Object,closeOnClick:Boolean,closeOnClickOverlay:Boolean,zIndex:$e};var qd=be({name:Og,props:Pg,emits:["update:show"],setup(e,{emit:t,slots:n}){let s,o=!1;const i=()=>{const u=e.show&&e.forbidClick;o!==u&&(o=u,Ig(o))},a=u=>t("update:show",u),r=()=>{e.closeOnClick&&a(!1)},c=()=>clearTimeout(s),d=()=>{const{icon:u,type:f,iconSize:h,iconPrefix:_,loadingType:m}=e;if(u||f==="success"||f==="fail")return E(It,{name:u||f,size:h,class:is("icon"),classPrefix:_},null);if(f==="loading")return E(Co,{class:is("loading"),size:h,type:m},null)},l=()=>{const{type:u,message:f}=e;if(n.message)return E("div",{class:is("text")},[n.message()]);if(st(f)&&f!=="")return u==="html"?E("div",{key:0,class:is("text"),innerHTML:String(f)},null):E("div",{class:is("text")},[f])};return ke(()=>[e.show,e.forbidClick],i),ke(()=>[e.show,e.type,e.message,e.duration],()=>{c(),e.show&&e.duration>0&&(s=setTimeout(()=>{a(!1)},e.duration))}),nt(i),Ln(i),()=>E(Os,Tt({class:[is([e.position,e.wordBreak==="normal"?"break-normal":e.wordBreak,{[e.type]:!e.icon}]),e.className],lockScroll:!1,onClick:r,onClosed:c,"onUpdate:show":a},Sn(e,$g)),{default:()=>[d(),l()]})}});function Ud(){const e=pt({show:!1}),t=o=>{e.show=o},n=o=>{Ke(e,o,{transitionAppear:!0}),t(!0)},s=()=>t(!1);return Bt({open:n,close:s,toggle:t}),{open:n,close:s,state:e,toggle:t}}function zd(e){const t=cd(e),n=document.createElement("div");return document.body.appendChild(n),{instance:t.mount(n),unmount(){t.unmount(),document.body.removeChild(n)}}}const Dg={icon:"",type:"text",message:"",className:"",overlay:!1,onClose:void 0,onOpened:void 0,duration:2e3,teleport:"body",iconSize:void 0,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,overlayClass:"",overlayStyle:void 0,closeOnClick:!1,closeOnClickOverlay:!1};let fs=[],Bg=!1,Ul=Ke({},Dg);const Ng=new Map;function Hd(e){return wo(e)?e:{message:e}}function Lg(){const{instance:e}=zd({setup(){const t=q(""),{open:n,state:s,close:o,toggle:i}=Ud(),a=()=>{},r=()=>E(qd,Tt(s,{onClosed:a,"onUpdate:show":i}),null);return ke(t,c=>{s.message=c}),Wt().render=r,{open:n,close:o,message:t}}});return e}function Mg(){if(!fs.length||Bg){const e=Lg();fs.push(e)}return fs[fs.length-1]}function Te(e={}){if(!As)return{};const t=Mg(),n=Hd(e);return t.open(Ke({},Ul,Ng.get(n.type||Ul.type),n)),t}const kr=e=>t=>Te(Ke({type:e},Hd(t))),Fg=kr("loading"),FT=kr("success"),Vg=kr("fail"),zl=e=>{fs.length&&fs[0].close()};Ge(qd);const[jg]=He("checkbox-group"),qg=Symbol(jg),Wd={name:Ut,disabled:Boolean,iconSize:$e,modelValue:Ut,checkedColor:String,labelPosition:String,labelDisabled:Boolean};var Ug=be({props:Ke({},Wd,{bem:Yo(Function),role:String,shape:String,parent:Object,checked:Boolean,bindGroup:qe,indeterminate:{type:Boolean,default:null}}),emits:["click","toggle"],setup(e,{emit:t,slots:n}){const s=q(),o=f=>{if(e.parent&&e.bindGroup)return e.parent.props[f]},i=j(()=>{if(e.parent&&e.bindGroup){const f=o("disabled")||e.disabled;if(e.role==="checkbox"){const h=o("modelValue").length,_=o("max"),m=_&&h>=+_;return f||m&&!e.checked}return f}return e.disabled}),a=j(()=>o("direction")),r=j(()=>{const f=e.checkedColor||o("checkedColor");if(f&&(e.checked||e.indeterminate)&&!i.value)return{borderColor:f,backgroundColor:f}}),c=j(()=>e.shape||o("shape")||"round"),d=f=>{const{target:h}=f,_=s.value,m=_===h||(_==null?void 0:_.contains(h));!i.value&&(m||!e.labelDisabled)&&t("toggle"),t("click",f)},l=()=>{var f,h;const{bem:_,checked:m,indeterminate:p}=e,v=e.iconSize||o("iconSize");return E("div",{ref:s,class:_("icon",[c.value,{disabled:i.value,checked:m,indeterminate:p}]),style:c.value!=="dot"?{fontSize:ot(v)}:{width:ot(v),height:ot(v),borderColor:(f=r.value)==null?void 0:f.borderColor}},[n.icon?n.icon({checked:m,disabled:i.value}):c.value!=="dot"?E(It,{name:p?"minus":"success",style:r.value},null):E("div",{class:_("icon--dot__icon"),style:{backgroundColor:(h=r.value)==null?void 0:h.backgroundColor}},null)])},u=()=>{const{checked:f}=e;if(n.default)return E("span",{class:e.bem("label",[e.labelPosition,{disabled:i.value}])},[n.default({checked:f,disabled:i.value})])};return()=>{const f=e.labelPosition==="left"?[u(),l()]:[l(),u()];return E("div",{role:e.role,class:e.bem([{disabled:i.value,"label-disabled":e.labelDisabled},a.value]),tabindex:i.value?void 0:0,"aria-checked":e.checked,onClick:d},[f])}}});const[zg,Hg]=He("checkbox"),Wg=Ke({},Wd,{shape:String,bindGroup:qe,indeterminate:{type:Boolean,default:null}});var Kg=be({name:zg,props:Wg,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const{parent:s}=Is(qg),o=r=>{const{name:c}=e,{max:d,modelValue:l}=s.props,u=l.slice();if(r)!(d&&u.length>=+d)&&!u.includes(c)&&(u.push(c),e.bindGroup&&s.updateValue(u));else{const f=u.indexOf(c);f!==-1&&(u.splice(f,1),e.bindGroup&&s.updateValue(u))}},i=j(()=>s&&e.bindGroup?s.props.modelValue.indexOf(e.name)!==-1:!!e.modelValue),a=(r=!i.value)=>{s&&e.bindGroup?o(r):t("update:modelValue",r),e.indeterminate!==null&&t("change",r)};return ke(()=>e.modelValue,r=>{e.indeterminate===null&&t("change",r)}),Bt({toggle:a,props:e,checked:i}),vd(()=>e.modelValue),()=>E(Ug,Tt({bem:Hg,role:"checkbox",parent:s,checked:i.value,onToggle:a},e),Sn(n,["default","icon"]))}});const Gg=Ge(Kg),[Kd,Jg]=He("collapse"),Gd=Symbol(Kd),Xg={border:qe,accordion:Boolean,modelValue:{type:[String,Number,Array],default:""}};var Yg=be({name:Kd,props:Xg,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const{linkChildren:s,children:o}=Ai(Gd),i=d=>{t("change",d),t("update:modelValue",d)},a=(d,l)=>{const{accordion:u,modelValue:f}=e;i(u?d===f?"":d:l?f.concat(d):f.filter(h=>h!==d))},r=(d={})=>{if(e.accordion)return;typeof d=="boolean"&&(d={expanded:d});const{expanded:l,skipDisabled:u}=d,h=o.filter(_=>_.disabled&&u?_.expanded.value:l??!_.expanded.value).map(_=>_.itemName.value);i(h)},c=d=>{const{accordion:l,modelValue:u}=e;return l?u===d:u.includes(d)};return Bt({toggleAll:r}),s({toggle:a,isExpanded:c}),()=>{var d;return E("div",{class:[Jg(),{[Cd]:e.border}]},[(d=n.default)==null?void 0:d.call(n)])}}});const Qg=Ge(Yg),[Zg,Uo]=He("collapse-item"),ev=["icon","title","value","label","right-icon"],tv=Ke({},$i,{name:$e,isLink:qe,disabled:Boolean,readonly:Boolean,lazyRender:qe});var nv=be({name:Zg,props:tv,setup(e,{slots:t}){const n=q(),s=q(),{parent:o,index:i}=Is(Gd);if(!o)return;const a=j(()=>{var m;return(m=e.name)!=null?m:i.value}),r=j(()=>o.isExpanded(a.value)),c=q(r.value),d=Er(()=>c.value||!e.lazyRender),l=()=>{r.value?n.value&&(n.value.style.height=""):c.value=!1};ke(r,(m,p)=>{if(p===null)return;m&&(c.value=!0),(m?Xe:ws)(()=>{if(!s.value||!n.value)return;const{offsetHeight:C}=s.value;if(C){const R=`${C}px`;n.value.style.height=m?"0":R,ds(()=>{n.value&&(n.value.style.height=m?R:"0")})}else l()})});const u=(m=!r.value)=>{o.toggle(a.value,m)},f=()=>{!e.disabled&&!e.readonly&&u()},h=()=>{const{border:m,disabled:p,readonly:v}=e,C=Sn(e,Object.keys($i));return v&&(C.isLink=!1),(p||v)&&(C.clickable=!1),E(Vd,Tt({role:"button",class:Uo("title",{disabled:p,expanded:r.value,borderless:!m}),"aria-expanded":String(r.value),onClick:f},C),Sn(t,ev))},_=d(()=>{var m;return Jn(E("div",{ref:n,class:Uo("wrapper"),onTransitionend:l},[E("div",{ref:s,class:Uo("content")},[(m=t.default)==null?void 0:m.call(t)])]),[[Yn,c.value]])});return Bt({toggle:u,expanded:r,itemName:a}),()=>E("div",{class:[Uo({border:i.value&&e.border})]},[h(),_()])}});const sv=Ge(nv),ov=Ge(__),[iv,zo]=He("empty"),av={image:Be("default"),imageSize:[Number,String,Array],description:String};var rv=be({name:iv,props:av,setup(e,{slots:t}){const n=()=>{const v=t.description?t.description():e.description;if(v)return E("p",{class:zo("description")},[v])},s=()=>{if(t.default)return E("div",{class:zo("bottom")},[t.default()])},o=xo(),i=v=>`${o}-${v}`,a=v=>`url(#${i(v)})`,r=(v,C,R)=>E("stop",{"stop-color":v,offset:`${C}%`,"stop-opacity":R},null),c=(v,C)=>[r(v,0),r(C,100)],d=v=>[E("defs",null,[E("radialGradient",{id:i(v),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)","data-allow-mismatch":"attribute"},[r("#EBEDF0",0),r("#F2F3F5",100,.3)])]),E("ellipse",{fill:a(v),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8","data-allow-mismatch":"attribute"},null)],l=()=>[E("defs",null,[E("linearGradient",{id:i("a"),x1:"64%",y1:"100%",x2:"64%","data-allow-mismatch":"attribute"},[r("#FFF",0,.5),r("#F2F3F5",100)])]),E("g",{opacity:".8","data-allow-mismatch":"children"},[E("path",{d:"M36 131V53H16v20H2v58h34z",fill:a("a")},null),E("path",{d:"M123 15h22v14h9v77h-31V15z",fill:a("a")},null)])],u=()=>[E("defs",null,[E("linearGradient",{id:i("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%","data-allow-mismatch":"attribute"},[r("#F2F3F5",0,.3),r("#F2F3F5",100)])]),E("g",{opacity:".8","data-allow-mismatch":"children"},[E("path",{d:"M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",fill:a("b")},null),E("path",{d:"M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z",fill:a("b")},null)])],f=()=>E("svg",{viewBox:"0 0 160 160"},[E("defs",{"data-allow-mismatch":"children"},[E("linearGradient",{id:i(1),x1:"64%",y1:"100%",x2:"64%"},[r("#FFF",0,.5),r("#F2F3F5",100)]),E("linearGradient",{id:i(2),x1:"50%",x2:"50%",y2:"84%"},[r("#EBEDF0",0),r("#DCDEE0",100,0)]),E("linearGradient",{id:i(3),x1:"100%",x2:"100%",y2:"100%"},[c("#EAEDF0","#DCDEE0")]),E("radialGradient",{id:i(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[r("#EBEDF0",0),r("#FFF",100,0)])]),E("g",{fill:"none"},[l(),E("path",{fill:a(4),d:"M0 139h160v21H0z","data-allow-mismatch":"attribute"},null),E("path",{d:"M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",fill:a(2),"data-allow-mismatch":"attribute"},null),E("g",{opacity:".6","stroke-linecap":"round","stroke-width":"7","data-allow-mismatch":"children"},[E("path",{d:"M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",stroke:a(3)},null),E("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:a(3)},null),E("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:a(3)},null),E("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:a(3)},null)]),E("g",{transform:"translate(31 105)"},[E("rect",{fill:"#EBEDF0",width:"98",height:"34",rx:"2"},null),E("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.1"},null),E("rect",{fill:"#EBEDF0",x:"15",y:"12",width:"18",height:"6",rx:"1.1"},null)])])]),h=()=>E("svg",{viewBox:"0 0 160 160"},[E("defs",{"data-allow-mismatch":"children"},[E("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:i(5)},[c("#F2F3F5","#DCDEE0")]),E("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:i(6)},[c("#EAEDF1","#DCDEE0")]),E("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:i(7)},[c("#EAEDF1","#DCDEE0")])]),l(),u(),E("g",{transform:"translate(36 50)",fill:"none"},[E("g",{transform:"translate(8)"},[E("rect",{fill:"#EBEDF0",opacity:".6",x:"38",y:"13",width:"36",height:"53",rx:"2"},null),E("rect",{fill:a(5),width:"64",height:"66",rx:"2","data-allow-mismatch":"attribute"},null),E("rect",{fill:"#FFF",x:"6",y:"6",width:"52",height:"55",rx:"1"},null),E("g",{transform:"translate(15 17)",fill:a(6),"data-allow-mismatch":"attribute"},[E("rect",{width:"34",height:"6",rx:"1"},null),E("path",{d:"M0 14h34v6H0z"},null),E("rect",{y:"28",width:"34",height:"6",rx:"1"},null)])]),E("rect",{fill:a(7),y:"61",width:"88",height:"28",rx:"1","data-allow-mismatch":"attribute"},null),E("rect",{fill:"#F7F8FA",x:"29",y:"72",width:"30",height:"6",rx:"1"},null)])]),_=()=>E("svg",{viewBox:"0 0 160 160"},[E("defs",null,[E("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:i(8),"data-allow-mismatch":"attribute"},[c("#EAEDF1","#DCDEE0")])]),l(),u(),d("c"),E("path",{d:"m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",fill:a(8),"data-allow-mismatch":"attribute"},null)]),m=()=>E("svg",{viewBox:"0 0 160 160"},[E("defs",{"data-allow-mismatch":"children"},[E("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:i(9)},[c("#EEE","#D8D8D8")]),E("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:i(10)},[c("#F2F3F5","#DCDEE0")]),E("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:i(11)},[c("#F2F3F5","#DCDEE0")]),E("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:i(12)},[c("#FFF","#F7F8FA")])]),l(),u(),d("d"),E("g",{transform:"rotate(-45 113 -4)",fill:"none","data-allow-mismatch":"children"},[E("rect",{fill:a(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),E("rect",{fill:a(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),E("circle",{stroke:a(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),E("circle",{fill:a(12),cx:"27",cy:"27",r:"16"},null),E("path",{d:"M37 7c-8 0-15 5-16 12",stroke:a(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),p=()=>{var v;if(t.image)return t.image();const C={error:_,search:m,network:f,default:h};return((v=C[e.image])==null?void 0:v.call(C))||E("img",{src:e.image},null)};return()=>E("div",{class:zo()},[E("div",{class:zo("image"),style:yd(e.imageSize)},[p()]),n(),s()])}});const Jd=Ge(rv),[lv,Kt,Ho]=He("dialog"),cv=Ke({},wr,{title:String,theme:String,width:$e,message:[String,Function],callback:Function,allowHtml:Boolean,className:Ut,transition:Be("van-dialog-bounce"),messageAlign:String,closeOnPopstate:qe,showCancelButton:Boolean,cancelButtonText:String,cancelButtonColor:String,cancelButtonDisabled:Boolean,confirmButtonText:String,confirmButtonColor:String,confirmButtonDisabled:Boolean,showConfirmButton:qe,closeOnClickOverlay:Boolean,keyboardEnabled:qe,destroyOnClose:Boolean}),uv=[...P_,"transition","closeOnPopstate","destroyOnClose"];var Xd=be({name:lv,props:cv,emits:["confirm","cancel","keydown","update:show"],setup(e,{emit:t,slots:n}){const s=q(),o=pt({confirm:!1,cancel:!1}),i=v=>t("update:show",v),a=v=>{var C;i(!1),(C=e.callback)==null||C.call(e,v)},r=v=>()=>{e.show&&(t(v),e.beforeClose?(o[v]=!0,vr(e.beforeClose,{args:[v],done(){a(v),o[v]=!1},canceled(){o[v]=!1}})):a(v))},c=r("cancel"),d=r("confirm"),l=ld(v=>{var C,R;if(!e.keyboardEnabled||v.target!==((R=(C=s.value)==null?void 0:C.popupRef)==null?void 0:R.value))return;({Enter:e.showConfirmButton?d:Pa,Escape:e.showCancelButton?c:Pa})[v.key](),t("keydown",v)},["enter","esc"]),u=()=>{const v=n.title?n.title():e.title;if(v)return E("div",{class:Kt("header",{isolated:!e.message&&!n.default})},[v])},f=v=>{const{message:C,allowHtml:R,messageAlign:x}=e,b=Kt("message",{"has-title":v,[x]:x}),I=po(C)?C():C;return R&&typeof I=="string"?E("div",{class:b,innerHTML:I},null):E("div",{class:b},[I])},h=()=>{if(n.default)return E("div",{class:Kt("content")},[n.default()]);const{title:v,message:C,allowHtml:R}=e;if(C){const x=!!(v||n.title);return E("div",{key:R?1:0,class:Kt("content",{isolated:!x})},[f(x)])}},_=()=>E("div",{class:[Ym,Kt("footer")]},[e.showCancelButton&&E(Ss,{size:"large",text:e.cancelButtonText||Ho("cancel"),class:Kt("cancel"),style:{color:e.cancelButtonColor},loading:o.cancel,disabled:e.cancelButtonDisabled,onClick:c},null),e.showConfirmButton&&E(Ss,{size:"large",text:e.confirmButtonText||Ho("confirm"),class:[Kt("confirm"),{[Qm]:e.showCancelButton}],style:{color:e.confirmButtonColor},loading:o.confirm,disabled:e.confirmButtonDisabled,onClick:d},null)]),m=()=>E(a_,{class:Kt("footer")},{default:()=>[e.showCancelButton&&E(Bl,{type:"warning",text:e.cancelButtonText||Ho("cancel"),class:Kt("cancel"),color:e.cancelButtonColor,loading:o.cancel,disabled:e.cancelButtonDisabled,onClick:c},null),e.showConfirmButton&&E(Bl,{type:"danger",text:e.confirmButtonText||Ho("confirm"),class:Kt("confirm"),color:e.confirmButtonColor,loading:o.confirm,disabled:e.confirmButtonDisabled,onClick:d},null)]}),p=()=>n.footer?n.footer():e.theme==="round-button"?m():_();return()=>{const{width:v,title:C,theme:R,message:x,className:b}=e;return E(Os,Tt({ref:s,role:"dialog",class:[Kt([R]),b],style:{width:ot(v)},tabindex:0,"aria-labelledby":C||x,onKeydown:l,"onUpdate:show":i},Sn(e,uv)),{default:()=>[u(),h(),p()]})}}});let Na;const dv={title:"",width:"",theme:null,message:"",overlay:!0,callback:null,teleport:"body",className:"",allowHtml:!1,lockScroll:!0,transition:void 0,beforeClose:null,overlayClass:"",overlayStyle:void 0,messageAlign:"",cancelButtonText:"",cancelButtonColor:null,cancelButtonDisabled:!1,confirmButtonText:"",confirmButtonColor:null,confirmButtonDisabled:!1,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1,destroyOnClose:!1};let fv=Ke({},dv);function hv(){({instance:Na}=zd({setup(){const{state:t,toggle:n}=Ud();return()=>E(Xd,Tt(t,{"onUpdate:show":n}),null)}}))}function pv(e){return As?new Promise((t,n)=>{Na||hv(),Na.open(Ke({},fv,e,{callback:s=>{(s==="confirm"?t:n)(s)}}))}):Promise.resolve(void 0)}const mv=e=>pv(Ke({showCancelButton:!0},e)),VT=Ge(Xd),[_v,Wo]=He("rate");function gv(e,t,n,s){return e>=t?{status:"full",value:1}:e+.5>=t&&n&&!s?{status:"half",value:.5}:e+1>=t&&n&&s?{status:"half",value:Math.round((e-t+1)*1e10)/1e10}:{status:"void",value:0}}const vv={size:$e,icon:Be("star"),color:String,count:Jt(5),gutter:$e,clearable:Boolean,readonly:Boolean,disabled:Boolean,voidIcon:Be("star-o"),allowHalf:Boolean,voidColor:String,touchable:qe,iconPrefix:String,modelValue:fd(0),disabledColor:String};var yv=be({name:_v,props:vv,emits:["change","update:modelValue"],setup(e,{emit:t}){const n=Sr(),[s,o]=Pd(),i=q(),a=j(()=>e.readonly||e.disabled),r=j(()=>a.value||!e.touchable),c=j(()=>Array(+e.count).fill("").map((R,x)=>gv(e.modelValue,x+1,e.allowHalf,e.readonly)));let d,l,u=Number.MAX_SAFE_INTEGER,f=Number.MIN_SAFE_INTEGER;const h=()=>{l=an(i);const R=s.value.map(an);d=[],R.forEach((x,b)=>{u=Math.min(x.top,u),f=Math.max(x.top,f),e.allowHalf?d.push({score:b+.5,left:x.left,top:x.top,height:x.height},{score:b+1,left:x.left+x.width/2,top:x.top,height:x.height}):d.push({score:b+1,left:x.left,top:x.top,height:x.height})})},_=(R,x)=>{for(let b=d.length-1;b>0;b--)if(x>=l.top&&x<=l.bottom){if(R>d[b].left&&x>=d[b].top&&x<=d[b].top+d[b].height)return d[b].score}else{const I=x<l.top?u:f;if(R>d[b].left&&d[b].top===I)return d[b].score}return e.allowHalf?.5:1},m=R=>{a.value||R===e.modelValue||(t("update:modelValue",R),t("change",R))},p=R=>{r.value||(n.start(R),h())},v=R=>{if(!r.value&&(n.move(R),n.isHorizontal()&&!n.isTap.value)){const{clientX:x,clientY:b}=R.touches[0];vn(R),m(_(x,b))}},C=(R,x)=>{const{icon:b,size:I,color:D,count:K,gutter:M,voidIcon:F,disabled:B,voidColor:O,allowHalf:Q,iconPrefix:Z,disabledColor:Ce}=e,he=x+1,ae=R.status==="full",de=R.status==="void",xe=Q&&R.value>0&&R.value<1;let we;M&&he!==+K&&(we={paddingRight:ot(M)});const oe=ne=>{h();let ie=Q?_(ne.clientX,ne.clientY):he;e.clearable&&n.isTap.value&&ie===e.modelValue&&(ie=0),m(ie)};return E("div",{key:x,ref:o(x),role:"radio",style:we,class:Wo("item"),tabindex:B?void 0:0,"aria-setsize":K,"aria-posinset":he,"aria-checked":!de,onClick:oe},[E(It,{size:I,name:ae?b:F,class:Wo("icon",{disabled:B,full:ae}),color:B?Ce:ae?D:O,classPrefix:Z},null),xe&&E(It,{size:I,style:{width:R.value+"em"},name:de?F:b,class:Wo("icon",["half",{disabled:B,full:!de}]),color:B?Ce:de?O:D,classPrefix:Z},null)])};return vd(()=>e.modelValue),ts("touchmove",v,{target:i}),()=>E("div",{ref:i,role:"radiogroup",class:Wo({readonly:e.readonly,disabled:e.disabled}),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,"aria-readonly":e.readonly,onTouchstartPassive:p},[c.value.map(C)])}});const bv=Ge(yv),[wv,Vs,Sv]=He("search"),Ev=Ke({},Cr,{label:String,shape:Be("square"),leftIcon:Be("search"),clearable:qe,actionText:String,background:String,showAction:Boolean});var Cv=be({name:wv,props:Ev,emits:["blur","focus","clear","search","cancel","clickInput","clickLeftIcon","clickRightIcon","update:modelValue"],setup(e,{emit:t,slots:n,attrs:s}){const o=xo(),i=q(),a=()=>{n.action||(t("update:modelValue",""),t("cancel"))},r=b=>{b.keyCode===13&&(vn(b),t("search",e.modelValue))},c=()=>e.id||`${o}-input`,d=()=>{if(n.label||e.label)return E("label",{class:Vs("label"),for:c(),"data-allow-mismatch":"attribute"},[n.label?n.label():e.label])},l=()=>{if(e.showAction){const b=e.actionText||Sv("cancel");return E("div",{class:Vs("action"),role:"button",tabindex:0,onClick:a},[n.action?n.action():b])}},u=()=>{var b;return(b=i.value)==null?void 0:b.blur()},f=()=>{var b;return(b=i.value)==null?void 0:b.focus()},h=b=>t("blur",b),_=b=>t("focus",b),m=b=>t("clear",b),p=b=>t("clickInput",b),v=b=>t("clickLeftIcon",b),C=b=>t("clickRightIcon",b),R=Object.keys(Cr),x=()=>{const b=Ke({},s,Sn(e,R),{id:c()}),I=D=>t("update:modelValue",D);return E(xr,Tt({ref:i,type:"search",class:Vs("field",{"with-message":b.errorMessage}),border:!1,labelAlign:"left",onBlur:h,onFocus:_,onClear:m,onKeypress:r,onClickInput:p,onClickLeftIcon:v,onClickRightIcon:C,"onUpdate:modelValue":I},b),Sn(n,["left-icon","right-icon"]))};return Bt({focus:f,blur:u}),()=>{var b;return E("div",{class:Vs({"show-action":e.showAction}),style:{background:e.background}},[(b=n.left)==null?void 0:b.call(n),E("div",{class:Vs("content",e.shape)},[d(),x()]),l()])}}});const xv=Ge(Cv);/*!
|
||
* pinia v2.3.1
|
||
* (c) 2025 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/let Yd;const Pi=e=>Yd=e,Qd=Symbol();function La(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var so;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(so||(so={}));function kv(){const e=Yc(!0),t=e.run(()=>q({}));let n=[],s=[];const o=or({install(i){Pi(o),o._a=i,i.provide(Qd,o),i.config.globalProperties.$pinia=o,s.forEach(a=>n.push(a)),s=[]},use(i){return this._a?n.push(i):s.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const Zd=()=>{};function Hl(e,t,n,s=Zd){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),s())};return!n&&Za()&&Qc(o),o}function as(e,...t){e.slice().forEach(n=>{n(...t)})}const Tv=e=>e(),Wl=Symbol(),oa=Symbol();function Ma(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,s)=>e.set(s,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],o=e[n];La(o)&&La(s)&&e.hasOwnProperty(n)&&!Ye(s)&&!gn(s)?e[n]=Ma(o,s):e[n]=s}return e}const Av=Symbol();function Rv(e){return!La(e)||!e.hasOwnProperty(Av)}const{assign:On}=Object;function Iv(e){return!!(Ye(e)&&e.effect)}function Ov(e,t,n,s){const{state:o,actions:i,getters:a}=t,r=n.state.value[e];let c;function d(){r||(n.state.value[e]=o?o():{});const l=Th(n.state.value[e]);return On(l,i,Object.keys(a||{}).reduce((u,f)=>(u[f]=or(j(()=>{Pi(n);const h=n._s.get(e);return a[f].call(h,h)})),u),{}))}return c=ef(e,d,t,n,s,!0),c}function ef(e,t,n={},s,o,i){let a;const r=On({actions:{}},n),c={deep:!0};let d,l,u=[],f=[],h;const _=s.state.value[e];!i&&!_&&(s.state.value[e]={});let m;function p(K){let M;d=l=!1,typeof K=="function"?(K(s.state.value[e]),M={type:so.patchFunction,storeId:e,events:h}):(Ma(s.state.value[e],K),M={type:so.patchObject,payload:K,storeId:e,events:h});const F=m=Symbol();Xe().then(()=>{m===F&&(d=!0)}),l=!0,as(u,M,s.state.value[e])}const v=i?function(){const{state:M}=n,F=M?M():{};this.$patch(B=>{On(B,F)})}:Zd;function C(){a.stop(),u=[],f=[],s._s.delete(e)}const R=(K,M="")=>{if(Wl in K)return K[oa]=M,K;const F=function(){Pi(s);const B=Array.from(arguments),O=[],Q=[];function Z(ae){O.push(ae)}function Ce(ae){Q.push(ae)}as(f,{args:B,name:F[oa],store:b,after:Z,onError:Ce});let he;try{he=K.apply(this&&this.$id===e?this:b,B)}catch(ae){throw as(Q,ae),ae}return he instanceof Promise?he.then(ae=>(as(O,ae),ae)).catch(ae=>(as(Q,ae),Promise.reject(ae))):(as(O,he),he)};return F[Wl]=!0,F[oa]=M,F},x={_p:s,$id:e,$onAction:Hl.bind(null,f),$patch:p,$reset:v,$subscribe(K,M={}){const F=Hl(u,K,M.detached,()=>B()),B=a.run(()=>ke(()=>s.state.value[e],O=>{(M.flush==="sync"?l:d)&&K({storeId:e,type:so.direct,events:h},O)},On({},c,M)));return F},$dispose:C},b=pt(x);s._s.set(e,b);const D=(s._a&&s._a.runWithContext||Tv)(()=>s._e.run(()=>(a=Yc()).run(()=>t({action:R}))));for(const K in D){const M=D[K];if(Ye(M)&&!Iv(M)||gn(M))i||(_&&Rv(M)&&(Ye(M)?M.value=_[K]:Ma(M,_[K])),s.state.value[e][K]=M);else if(typeof M=="function"){const F=R(M,K);D[K]=F,r.actions[K]=M}}return On(b,D),On(Pe(b),D),Object.defineProperty(b,"$state",{get:()=>s.state.value[e],set:K=>{p(M=>{On(M,K)})}}),s._p.forEach(K=>{On(b,a.run(()=>K({store:b,app:s._a,pinia:s,options:r})))}),_&&i&&n.hydrate&&n.hydrate(b.$state,_),d=!0,l=!0,b}/*! #__NO_SIDE_EFFECTS__ */function Tr(e,t,n){let s,o;const i=typeof t=="function";typeof e=="string"?(s=e,o=i?n:t):(o=e,s=e.id);function a(r,c){const d=Nh();return r=r||(d?ht(Qd,null):null),r&&Pi(r),r=Yd,r._s.has(s)||(i?ef(s,t,o,r):Ov(s,o,r)),r._s.get(s)}return a.$id=s,a}const tf="it_desk_h5_theme";function Kl(e){document.documentElement.setAttribute("data-theme",e),localStorage.setItem(tf,e)}function $v(){const e=localStorage.getItem(tf);return e==="dark"||e==="light"?e:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}const nf=Tr("theme",()=>{const e=q("light");function t(){const s=e.value==="light"?"dark":"light";e.value=s,Kl(s)}function n(){const s=$v();e.value=s,Kl(s)}return{currentTheme:e,toggleTheme:t,initTheme:n}}),Pv={class:"app-loading"},Dv={key:1,class:"app-loading"},Bv=be({__name:"App",setup(e){const t=nf(),n=q(!1);return nt(()=>{t.initTheme(),n.value=!0}),(s,o)=>{const i=Co,a=ep("router-view"),r=ov;return k(),Rt(r,{theme:Re(t).currentTheme},{default:Je(()=>[n.value?(k(),Rt(a,{key:0},{default:Je(({Component:c})=>[(k(),Rt(Ap,null,{fallback:Je(()=>[g("div",Pv,[E(i,{type:"spinner",color:"#1989fa",size:"36"}),o[0]||(o[0]=g("div",{class:"app-loading__text"},"正在加载...",-1))])]),default:Je(()=>[(k(),Rt(tp(c)))]),_:2},1024))]),_:1})):(k(),A("div",Dv,[E(i,{type:"spinner",color:"#1989fa",size:"36"}),o[1]||(o[1]=g("div",{class:"app-loading__text"},"正在加载...",-1))]))]),_:1},8,["theme"])}}}),Nv="modulepreload",Lv=function(e){return"/h5/v20260806f/"+e},Gl={},Hn=function(t,n,s){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),r=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=Promise.allSettled(n.map(c=>{if(c=Lv(c),c in Gl)return;Gl[c]=!0;const d=c.endsWith(".css"),l=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${l}`))return;const u=document.createElement("link");if(u.rel=d?"stylesheet":Nv,d||(u.as="script"),u.crossOrigin="",u.href=c,r&&u.setAttribute("nonce",r),document.head.appendChild(u),d)return new Promise((f,h)=>{u.addEventListener("load",f),u.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(a){const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=a,window.dispatchEvent(r),!r.defaultPrevented)throw a}return o.then(a=>{for(const r of a||[])r.status==="rejected"&&i(r.reason);return t().catch(i)})};/*!
|
||
* vue-router v4.6.4
|
||
* (c) 2025 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/const us=typeof document<"u";function sf(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Mv(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&sf(e.default)}const Le=Object.assign;function ia(e,t){const n={};for(const s in t){const o=t[s];n[s]=Qt(o)?o.map(e):e(o)}return n}const oo=()=>{},Qt=Array.isArray;function Jl(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const of=/#/g,Fv=/&/g,Vv=/\//g,jv=/=/g,qv=/\?/g,af=/\+/g,Uv=/%5B/g,zv=/%5D/g,rf=/%5E/g,Hv=/%60/g,lf=/%7B/g,Wv=/%7C/g,cf=/%7D/g,Kv=/%20/g;function Ar(e){return e==null?"":encodeURI(""+e).replace(Wv,"|").replace(Uv,"[").replace(zv,"]")}function Gv(e){return Ar(e).replace(lf,"{").replace(cf,"}").replace(rf,"^")}function Fa(e){return Ar(e).replace(af,"%2B").replace(Kv,"+").replace(of,"%23").replace(Fv,"%26").replace(Hv,"`").replace(lf,"{").replace(cf,"}").replace(rf,"^")}function Jv(e){return Fa(e).replace(jv,"%3D")}function Xv(e){return Ar(e).replace(of,"%23").replace(qv,"%3F")}function Yv(e){return Xv(e).replace(Vv,"%2F")}function _o(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Qv=/\/$/,Zv=e=>e.replace(Qv,"");function aa(e,t,n="/"){let s,o={},i="",a="";const r=t.indexOf("#");let c=t.indexOf("?");return c=r>=0&&c>r?-1:c,c>=0&&(s=t.slice(0,c),i=t.slice(c,r>0?r:t.length),o=e(i.slice(1))),r>=0&&(s=s||t.slice(0,r),a=t.slice(r,t.length)),s=sy(s??t,n),{fullPath:s+i+a,path:s,query:o,hash:_o(a)}}function ey(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Xl(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function ty(e,t,n){const s=t.matched.length-1,o=n.matched.length-1;return s>-1&&s===o&&Es(t.matched[s],n.matched[o])&&uf(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Es(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function uf(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!ny(e[n],t[n]))return!1;return!0}function ny(e,t){return Qt(e)?Yl(e,t):Qt(t)?Yl(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function Yl(e,t){return Qt(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function sy(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),o=s[s.length-1];(o===".."||o===".")&&s.push("");let i=n.length-1,a,r;for(a=0;a<s.length;a++)if(r=s[a],r!==".")if(r==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+s.slice(a).join("/")}const Tn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Va=function(e){return e.pop="pop",e.push="push",e}({}),ra=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function oy(e){if(!e)if(us){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Zv(e)}const iy=/^[^#]+#/;function ay(e,t){return e.replace(iy,"#")+t}function ry(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Di=()=>({left:window.scrollX,top:window.scrollY});function ly(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=ry(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Ql(e,t){return(history.state?history.state.position-t:-1)+e}const ja=new Map;function cy(e,t){ja.set(e,t)}function uy(e){const t=ja.get(e);return ja.delete(e),t}function dy(e){return typeof e=="string"||e&&typeof e=="object"}function df(e){return typeof e=="string"||typeof e=="symbol"}let et=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const ff=Symbol("");et.MATCHER_NOT_FOUND+"",et.NAVIGATION_GUARD_REDIRECT+"",et.NAVIGATION_ABORTED+"",et.NAVIGATION_CANCELLED+"",et.NAVIGATION_DUPLICATED+"";function Cs(e,t){return Le(new Error,{type:e,[ff]:!0},t)}function fn(e,t){return e instanceof Error&&ff in e&&(t==null||!!(e.type&t))}const fy=["params","query","hash"];function hy(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of fy)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function py(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<n.length;++s){const o=n[s].replace(af," "),i=o.indexOf("="),a=_o(i<0?o:o.slice(0,i)),r=i<0?null:_o(o.slice(i+1));if(a in t){let c=t[a];Qt(c)||(c=t[a]=[c]),c.push(r)}else t[a]=r}return t}function Zl(e){let t="";for(let n in e){const s=e[n];if(n=Jv(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(Qt(s)?s.map(o=>o&&Fa(o)):[s&&Fa(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function my(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Qt(s)?s.map(o=>o==null?null:""+o):s==null?s:""+s)}return t}const _y=Symbol(""),ec=Symbol(""),Bi=Symbol(""),Rr=Symbol(""),qa=Symbol("");function js(){let e=[];function t(s){return e.push(s),()=>{const o=e.indexOf(s);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Pn(e,t,n,s,o,i=a=>a()){const a=s&&(s.enterCallbacks[o]=s.enterCallbacks[o]||[]);return()=>new Promise((r,c)=>{const d=f=>{f===!1?c(Cs(et.NAVIGATION_ABORTED,{from:n,to:t})):f instanceof Error?c(f):dy(f)?c(Cs(et.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(a&&s.enterCallbacks[o]===a&&typeof f=="function"&&a.push(f),r())},l=i(()=>e.call(s&&s.instances[o],t,n,d));let u=Promise.resolve(l);e.length<3&&(u=u.then(d)),u.catch(f=>c(f))})}function la(e,t,n,s,o=i=>i()){const i=[];for(const a of e)for(const r in a.components){let c=a.components[r];if(!(t!=="beforeRouteEnter"&&!a.instances[r]))if(sf(c)){const d=(c.__vccOpts||c)[t];d&&i.push(Pn(d,n,s,a,r,o))}else{let d=c();i.push(()=>d.then(l=>{if(!l)throw new Error(`Couldn't resolve component "${r}" at "${a.path}"`);const u=Mv(l)?l.default:l;a.mods[r]=l,a.components[r]=u;const f=(u.__vccOpts||u)[t];return f&&Pn(f,n,s,a,r,o)()}))}}return i}function gy(e,t){const n=[],s=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;a<i;a++){const r=t.matched[a];r&&(e.matched.find(d=>Es(d,r))?s.push(r):n.push(r));const c=e.matched[a];c&&(t.matched.find(d=>Es(d,c))||o.push(c))}return[n,s,o]}/*!
|
||
* vue-router v4.6.4
|
||
* (c) 2025 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/let vy=()=>location.protocol+"//"+location.host;function hf(e,t){const{pathname:n,search:s,hash:o}=t,i=e.indexOf("#");if(i>-1){let a=o.includes(e.slice(i))?e.slice(i).length:1,r=o.slice(a);return r[0]!=="/"&&(r="/"+r),Xl(r,"")}return Xl(n,e)+s+o}function yy(e,t,n,s){let o=[],i=[],a=null;const r=({state:f})=>{const h=hf(e,location),_=n.value,m=t.value;let p=0;if(f){if(n.value=h,t.value=f,a&&a===_){a=null;return}p=m?f.position-m.position:0}else s(h);o.forEach(v=>{v(n.value,_,{delta:p,type:Va.pop,direction:p?p>0?ra.forward:ra.back:ra.unknown})})};function c(){a=n.value}function d(f){o.push(f);const h=()=>{const _=o.indexOf(f);_>-1&&o.splice(_,1)};return i.push(h),h}function l(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(Le({},f.state,{scroll:Di()}),"")}}function u(){for(const f of i)f();i=[],window.removeEventListener("popstate",r),window.removeEventListener("pagehide",l),document.removeEventListener("visibilitychange",l)}return window.addEventListener("popstate",r),window.addEventListener("pagehide",l),document.addEventListener("visibilitychange",l),{pauseListeners:c,listen:d,destroy:u}}function tc(e,t,n,s=!1,o=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:o?Di():null}}function by(e){const{history:t,location:n}=window,s={value:hf(e,n)},o={value:t.state};o.value||i(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(c,d,l){const u=e.indexOf("#"),f=u>-1?(n.host&&document.querySelector("base")?e:e.slice(u))+c:vy()+e+c;try{t[l?"replaceState":"pushState"](d,"",f),o.value=d}catch(h){console.error(h),n[l?"replace":"assign"](f)}}function a(c,d){i(c,Le({},t.state,tc(o.value.back,c,o.value.forward,!0),d,{position:o.value.position}),!0),s.value=c}function r(c,d){const l=Le({},o.value,t.state,{forward:c,scroll:Di()});i(l.current,l,!0),i(c,Le({},tc(s.value,c,null),{position:l.position+1},d),!1),s.value=c}return{location:s,state:o,push:r,replace:a}}function wy(e){e=oy(e);const t=by(e),n=yy(e,t.state,t.location,t.replace);function s(i,a=!0){a||n.pauseListeners(),history.go(i)}const o=Le({location:"",base:e,go:s,createHref:ay.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}let Wn=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var at=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(at||{});const Sy={type:Wn.Static,value:""},Ey=/[a-zA-Z0-9_]/;function Cy(e){if(!e)return[[]];if(e==="/")return[[Sy]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${d}": ${h}`)}let n=at.Static,s=n;const o=[];let i;function a(){i&&o.push(i),i=[]}let r=0,c,d="",l="";function u(){d&&(n===at.Static?i.push({type:Wn.Static,value:d}):n===at.Param||n===at.ParamRegExp||n===at.ParamRegExpEnd?(i.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),i.push({type:Wn.Param,value:d,regexp:l,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),d="")}function f(){d+=c}for(;r<e.length;){if(c=e[r++],c==="\\"&&n!==at.ParamRegExp){s=n,n=at.EscapeNext;continue}switch(n){case at.Static:c==="/"?(d&&u(),a()):c===":"?(u(),n=at.Param):f();break;case at.EscapeNext:f(),n=s;break;case at.Param:c==="("?n=at.ParamRegExp:Ey.test(c)?f():(u(),n=at.Static,c!=="*"&&c!=="?"&&c!=="+"&&r--);break;case at.ParamRegExp:c===")"?l[l.length-1]=="\\"?l=l.slice(0,-1)+c:n=at.ParamRegExpEnd:l+=c;break;case at.ParamRegExpEnd:u(),n=at.Static,c!=="*"&&c!=="?"&&c!=="+"&&r--,l="";break;default:t("Unknown state");break}}return n===at.ParamRegExp&&t(`Unfinished custom RegExp for param "${d}"`),u(),a(),o}const nc="[^/]+?",xy={sensitive:!1,strict:!1,start:!0,end:!0};var St=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e}(St||{});const ky=/[.+*?^${}()[\]/\\]/g;function Ty(e,t){const n=Le({},xy,t),s=[];let o=n.start?"^":"";const i=[];for(const d of e){const l=d.length?[]:[St.Root];n.strict&&!d.length&&(o+="/");for(let u=0;u<d.length;u++){const f=d[u];let h=St.Segment+(n.sensitive?St.BonusCaseSensitive:0);if(f.type===Wn.Static)u||(o+="/"),o+=f.value.replace(ky,"\\$&"),h+=St.Static;else if(f.type===Wn.Param){const{value:_,repeatable:m,optional:p,regexp:v}=f;i.push({name:_,repeatable:m,optional:p});const C=v||nc;if(C!==nc){h+=St.BonusCustomRegExp;try{`${C}`}catch(x){throw new Error(`Invalid custom RegExp for param "${_}" (${C}): `+x.message)}}let R=m?`((?:${C})(?:/(?:${C}))*)`:`(${C})`;u||(R=p&&d.length<2?`(?:/${R})`:"/"+R),p&&(R+="?"),o+=R,h+=St.Dynamic,p&&(h+=St.BonusOptional),m&&(h+=St.BonusRepeatable),C===".*"&&(h+=St.BonusWildcard)}l.push(h)}s.push(l)}if(n.strict&&n.end){const d=s.length-1;s[d][s[d].length-1]+=St.BonusStrict}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const a=new RegExp(o,n.sensitive?"":"i");function r(d){const l=d.match(a),u={};if(!l)return null;for(let f=1;f<l.length;f++){const h=l[f]||"",_=i[f-1];u[_.name]=h&&_.repeatable?h.split("/"):h}return u}function c(d){let l="",u=!1;for(const f of e){(!u||!l.endsWith("/"))&&(l+="/"),u=!1;for(const h of f)if(h.type===Wn.Static)l+=h.value;else if(h.type===Wn.Param){const{value:_,repeatable:m,optional:p}=h,v=_ in d?d[_]:"";if(Qt(v)&&!m)throw new Error(`Provided param "${_}" is an array but it is not repeatable (* or + modifiers)`);const C=Qt(v)?v.join("/"):v;if(!C)if(p)f.length<2&&(l.endsWith("/")?l=l.slice(0,-1):u=!0);else throw new Error(`Missing required param "${_}"`);l+=C}}return l||"/"}return{re:a,score:s,keys:i,parse:r,stringify:c}}function Ay(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===St.Static+St.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===St.Static+St.Segment?1:-1:0}function pf(e,t){let n=0;const s=e.score,o=t.score;for(;n<s.length&&n<o.length;){const i=Ay(s[n],o[n]);if(i)return i;n++}if(Math.abs(o.length-s.length)===1){if(sc(s))return 1;if(sc(o))return-1}return o.length-s.length}function sc(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Ry={strict:!1,end:!0,sensitive:!1};function Iy(e,t,n){const s=Ty(Cy(e.path),n),o=Le(s,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Oy(e,t){const n=[],s=new Map;t=Jl(Ry,t);function o(u){return s.get(u)}function i(u,f,h){const _=!h,m=ic(u);m.aliasOf=h&&h.record;const p=Jl(t,u),v=[m];if("alias"in u){const x=typeof u.alias=="string"?[u.alias]:u.alias;for(const b of x)v.push(ic(Le({},m,{components:h?h.record.components:m.components,path:b,aliasOf:h?h.record:m})))}let C,R;for(const x of v){const{path:b}=x;if(f&&b[0]!=="/"){const I=f.record.path,D=I[I.length-1]==="/"?"":"/";x.path=f.record.path+(b&&D+b)}if(C=Iy(x,f,p),h?h.alias.push(C):(R=R||C,R!==C&&R.alias.push(C),_&&u.name&&!ac(C)&&a(u.name)),mf(C)&&c(C),m.children){const I=m.children;for(let D=0;D<I.length;D++)i(I[D],C,h&&h.children[D])}h=h||C}return R?()=>{a(R)}:oo}function a(u){if(df(u)){const f=s.get(u);f&&(s.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(a),f.alias.forEach(a))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&s.delete(u.record.name),u.children.forEach(a),u.alias.forEach(a))}}function r(){return n}function c(u){const f=Dy(u,n);n.splice(f,0,u),u.record.name&&!ac(u)&&s.set(u.record.name,u)}function d(u,f){let h,_={},m,p;if("name"in u&&u.name){if(h=s.get(u.name),!h)throw Cs(et.MATCHER_NOT_FOUND,{location:u});p=h.record.name,_=Le(oc(f.params,h.keys.filter(R=>!R.optional).concat(h.parent?h.parent.keys.filter(R=>R.optional):[]).map(R=>R.name)),u.params&&oc(u.params,h.keys.map(R=>R.name))),m=h.stringify(_)}else if(u.path!=null)m=u.path,h=n.find(R=>R.re.test(m)),h&&(_=h.parse(m),p=h.record.name);else{if(h=f.name?s.get(f.name):n.find(R=>R.re.test(f.path)),!h)throw Cs(et.MATCHER_NOT_FOUND,{location:u,currentLocation:f});p=h.record.name,_=Le({},f.params,u.params),m=h.stringify(_)}const v=[];let C=h;for(;C;)v.unshift(C.record),C=C.parent;return{name:p,path:m,params:_,matched:v,meta:Py(v)}}e.forEach(u=>i(u));function l(){n.length=0,s.clear()}return{addRoute:i,resolve:d,removeRoute:a,clearRoutes:l,getRoutes:r,getRecordMatcher:o}}function oc(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function ic(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:$y(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function $y(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function ac(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Py(e){return e.reduce((t,n)=>Le(t,n.meta),{})}function Dy(e,t){let n=0,s=t.length;for(;n!==s;){const i=n+s>>1;pf(e,t[i])<0?s=i:n=i+1}const o=By(e);return o&&(s=t.lastIndexOf(o,s-1)),s}function By(e){let t=e;for(;t=t.parent;)if(mf(t)&&pf(e,t)===0)return t}function mf({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function rc(e){const t=ht(Bi),n=ht(Rr),s=j(()=>{const c=Re(e.to);return t.resolve(c)}),o=j(()=>{const{matched:c}=s.value,{length:d}=c,l=c[d-1],u=n.matched;if(!l||!u.length)return-1;const f=u.findIndex(Es.bind(null,l));if(f>-1)return f;const h=lc(c[d-2]);return d>1&&lc(l)===h&&u[u.length-1].path!==h?u.findIndex(Es.bind(null,c[d-2])):f}),i=j(()=>o.value>-1&&Vy(n.params,s.value.params)),a=j(()=>o.value>-1&&o.value===n.matched.length-1&&uf(n.params,s.value.params));function r(c={}){if(Fy(c)){const d=t[Re(e.replace)?"replace":"push"](Re(e.to)).catch(oo);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:s,href:j(()=>s.value.href),isActive:i,isExactActive:a,navigate:r}}function Ny(e){return e.length===1?e[0]:e}const Ly=be({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:rc,setup(e,{slots:t}){const n=pt(rc(e)),{options:s}=ht(Bi),o=j(()=>({[cc(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[cc(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&Ny(t.default(n));return e.custom?i:pr("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),My=Ly;function Fy(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Vy(e,t){for(const n in t){const s=t[n],o=e[n];if(typeof s=="string"){if(s!==o)return!1}else if(!Qt(o)||o.length!==s.length||s.some((i,a)=>i.valueOf()!==o[a].valueOf()))return!1}return!0}function lc(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const cc=(e,t,n)=>e??t??n,jy=be({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=ht(qa),o=j(()=>e.route||s.value),i=ht(ec,0),a=j(()=>{let d=Re(i);const{matched:l}=o.value;let u;for(;(u=l[d])&&!u.components;)d++;return d}),r=j(()=>o.value.matched[a.value]);cn(ec,j(()=>a.value+1)),cn(_y,r),cn(qa,o);const c=q();return ke(()=>[c.value,r.value,e.name],([d,l,u],[f,h,_])=>{l&&(l.instances[u]=d,h&&h!==l&&d&&d===f&&(l.leaveGuards.size||(l.leaveGuards=h.leaveGuards),l.updateGuards.size||(l.updateGuards=h.updateGuards))),d&&l&&(!h||!Es(l,h)||!f)&&(l.enterCallbacks[u]||[]).forEach(m=>m(d))},{flush:"post"}),()=>{const d=o.value,l=e.name,u=r.value,f=u&&u.components[l];if(!f)return uc(n.default,{Component:f,route:d});const h=u.props[l],_=h?h===!0?d.params:typeof h=="function"?h(d):h:null,p=pr(f,Le({},_,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(u.instances[l]=null)},ref:c}));return uc(n.default,{Component:p,route:d})||p}}});function uc(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const qy=jy;function Uy(e){const t=Oy(e.routes,e),n=e.parseQuery||py,s=e.stringifyQuery||Zl,o=e.history,i=js(),a=js(),r=js(),c=Bn(Tn);let d=Tn;us&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const l=ia.bind(null,S=>""+S),u=ia.bind(null,Yv),f=ia.bind(null,_o);function h(S,L){let H,N;return df(S)?(H=t.getRecordMatcher(S),N=L):N=S,t.addRoute(N,H)}function _(S){const L=t.getRecordMatcher(S);L&&t.removeRoute(L)}function m(){return t.getRoutes().map(S=>S.record)}function p(S){return!!t.getRecordMatcher(S)}function v(S,L){if(L=Le({},L||c.value),typeof S=="string"){const T=aa(n,S,L.path),U=t.resolve({path:T.path},L),G=o.createHref(T.fullPath);return Le(T,U,{params:f(U.params),hash:_o(T.hash),redirectedFrom:void 0,href:G})}let H;if(S.path!=null)H=Le({},S,{path:aa(n,S.path,L.path).path});else{const T=Le({},S.params);for(const U in T)T[U]==null&&delete T[U];H=Le({},S,{params:u(T)}),L.params=u(L.params)}const N=t.resolve(H,L),z=S.hash||"";N.params=l(f(N.params));const y=ey(s,Le({},S,{hash:Gv(z),path:N.path})),w=o.createHref(y);return Le({fullPath:y,hash:z,query:s===Zl?my(S.query):S.query||{}},N,{redirectedFrom:void 0,href:w})}function C(S){return typeof S=="string"?aa(n,S,c.value.path):Le({},S)}function R(S,L){if(d!==S)return Cs(et.NAVIGATION_CANCELLED,{from:L,to:S})}function x(S){return D(S)}function b(S){return x(Le(C(S),{replace:!0}))}function I(S,L){const H=S.matched[S.matched.length-1];if(H&&H.redirect){const{redirect:N}=H;let z=typeof N=="function"?N(S,L):N;return typeof z=="string"&&(z=z.includes("?")||z.includes("#")?z=C(z):{path:z},z.params={}),Le({query:S.query,hash:S.hash,params:z.path!=null?{}:S.params},z)}}function D(S,L){const H=d=v(S),N=c.value,z=S.state,y=S.force,w=S.replace===!0,T=I(H,N);if(T)return D(Le(C(T),{state:typeof T=="object"?Le({},z,T.state):z,force:y,replace:w}),L||H);const U=H;U.redirectedFrom=L;let G;return!y&&ty(s,N,H)&&(G=Cs(et.NAVIGATION_DUPLICATED,{to:U,from:N}),oe(N,N,!0,!1)),(G?Promise.resolve(G):F(U,N)).catch(W=>fn(W)?fn(W,et.NAVIGATION_GUARD_REDIRECT)?W:we(W):de(W,U,N)).then(W=>{if(W){if(fn(W,et.NAVIGATION_GUARD_REDIRECT))return D(Le({replace:w},C(W.to),{state:typeof W.to=="object"?Le({},z,W.to.state):z,force:y}),L||U)}else W=O(U,N,!0,w,z);return B(U,N,W),W})}function K(S,L){const H=R(S,L);return H?Promise.reject(H):Promise.resolve()}function M(S){const L=Ae.values().next().value;return L&&typeof L.runWithContext=="function"?L.runWithContext(S):S()}function F(S,L){let H;const[N,z,y]=gy(S,L);H=la(N.reverse(),"beforeRouteLeave",S,L);for(const T of N)T.leaveGuards.forEach(U=>{H.push(Pn(U,S,L))});const w=K.bind(null,S,L);return H.push(w),ce(H).then(()=>{H=[];for(const T of i.list())H.push(Pn(T,S,L));return H.push(w),ce(H)}).then(()=>{H=la(z,"beforeRouteUpdate",S,L);for(const T of z)T.updateGuards.forEach(U=>{H.push(Pn(U,S,L))});return H.push(w),ce(H)}).then(()=>{H=[];for(const T of y)if(T.beforeEnter)if(Qt(T.beforeEnter))for(const U of T.beforeEnter)H.push(Pn(U,S,L));else H.push(Pn(T.beforeEnter,S,L));return H.push(w),ce(H)}).then(()=>(S.matched.forEach(T=>T.enterCallbacks={}),H=la(y,"beforeRouteEnter",S,L,M),H.push(w),ce(H))).then(()=>{H=[];for(const T of a.list())H.push(Pn(T,S,L));return H.push(w),ce(H)}).catch(T=>fn(T,et.NAVIGATION_CANCELLED)?T:Promise.reject(T))}function B(S,L,H){r.list().forEach(N=>M(()=>N(S,L,H)))}function O(S,L,H,N,z){const y=R(S,L);if(y)return y;const w=L===Tn,T=us?history.state:{};H&&(N||w?o.replace(S.fullPath,Le({scroll:w&&T&&T.scroll},z)):o.push(S.fullPath,z)),c.value=S,oe(S,L,H,w),we()}let Q;function Z(){Q||(Q=o.listen((S,L,H)=>{if(!Y.listening)return;const N=v(S),z=I(N,Y.currentRoute.value);if(z){D(Le(z,{replace:!0,force:!0}),N).catch(oo);return}d=N;const y=c.value;us&&cy(Ql(y.fullPath,H.delta),Di()),F(N,y).catch(w=>fn(w,et.NAVIGATION_ABORTED|et.NAVIGATION_CANCELLED)?w:fn(w,et.NAVIGATION_GUARD_REDIRECT)?(D(Le(C(w.to),{force:!0}),N).then(T=>{fn(T,et.NAVIGATION_ABORTED|et.NAVIGATION_DUPLICATED)&&!H.delta&&H.type===Va.pop&&o.go(-1,!1)}).catch(oo),Promise.reject()):(H.delta&&o.go(-H.delta,!1),de(w,N,y))).then(w=>{w=w||O(N,y,!1),w&&(H.delta&&!fn(w,et.NAVIGATION_CANCELLED)?o.go(-H.delta,!1):H.type===Va.pop&&fn(w,et.NAVIGATION_ABORTED|et.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),B(N,y,w)}).catch(oo)}))}let Ce=js(),he=js(),ae;function de(S,L,H){we(S);const N=he.list();return N.length?N.forEach(z=>z(S,L,H)):console.error(S),Promise.reject(S)}function xe(){return ae&&c.value!==Tn?Promise.resolve():new Promise((S,L)=>{Ce.add([S,L])})}function we(S){return ae||(ae=!S,Z(),Ce.list().forEach(([L,H])=>S?H(S):L()),Ce.reset()),S}function oe(S,L,H,N){const{scrollBehavior:z}=e;if(!us||!z)return Promise.resolve();const y=!H&&uy(Ql(S.fullPath,0))||(N||!H)&&history.state&&history.state.scroll||null;return Xe().then(()=>z(S,L,y)).then(w=>w&&ly(w)).catch(w=>de(w,S,L))}const ne=S=>o.go(S);let ie;const Ae=new Set,Y={currentRoute:c,listening:!0,addRoute:h,removeRoute:_,clearRoutes:t.clearRoutes,hasRoute:p,getRoutes:m,resolve:v,options:e,push:x,replace:b,go:ne,back:()=>ne(-1),forward:()=>ne(1),beforeEach:i.add,beforeResolve:a.add,afterEach:r.add,onError:he.add,isReady:xe,install(S){S.component("RouterLink",My),S.component("RouterView",qy),S.config.globalProperties.$router=Y,Object.defineProperty(S.config.globalProperties,"$route",{enumerable:!0,get:()=>Re(c)}),us&&!ie&&c.value===Tn&&(ie=!0,x(o.location).catch(N=>{}));const L={};for(const N in Tn)Object.defineProperty(L,N,{get:()=>c.value[N],enumerable:!0});S.provide(Bi,Y),S.provide(Rr,mu(L)),S.provide(qa,c);const H=S.unmount;Ae.add(S),S.unmount=function(){Ae.delete(S),Ae.size<1&&(d=Tn,Q&&Q(),Q=null,c.value=Tn,ie=!1,ae=!1),H()}}};function ce(S){return S.reduce((L,H)=>L.then(()=>M(H)),Promise.resolve())}return Y}function _f(){return ht(Bi)}function gf(e){return ht(Rr)}function vf(e,t){return function(){return e.apply(t,arguments)}}const{toString:zy}=Object.prototype,{getPrototypeOf:Ni}=Object,{iterator:Li,toStringTag:yf}=Symbol,Mi=(e=>t=>{const n=zy.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Zt=e=>(e=e.toLowerCase(),t=>Mi(t)===e),Fi=e=>t=>typeof t===e,{isArray:$s}=Array,xs=Fi("undefined");function ko(e){return e!==null&&!xs(e)&&e.constructor!==null&&!xs(e.constructor)&&Ot(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const bf=Zt("ArrayBuffer");function Hy(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&bf(e.buffer),t}const Wy=Fi("string"),Ot=Fi("function"),wf=Fi("number"),To=e=>e!==null&&typeof e=="object",Ky=e=>e===!0||e===!1,Zo=e=>{if(Mi(e)!=="object")return!1;const t=Ni(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(yf in e)&&!(Li in e)},Gy=e=>{if(!To(e)||ko(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Jy=Zt("Date"),Xy=Zt("File"),Yy=e=>!!(e&&typeof e.uri<"u"),Qy=e=>e&&typeof e.getParts<"u",Zy=Zt("Blob"),eb=Zt("FileList"),tb=e=>To(e)&&Ot(e.pipe);function nb(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const dc=nb(),fc=typeof dc.FormData<"u"?dc.FormData:void 0,sb=e=>{if(!e)return!1;if(fc&&e instanceof fc)return!0;const t=Ni(e);if(!t||t===Object.prototype||!Ot(e.append))return!1;const n=Mi(e);return n==="formdata"||n==="object"&&Ot(e.toString)&&e.toString()==="[object FormData]"},ob=Zt("URLSearchParams"),[ib,ab,rb,lb]=["ReadableStream","Request","Response","Headers"].map(Zt),cb=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ao(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,o;if(typeof e!="object"&&(e=[e]),$s(e))for(s=0,o=e.length;s<o;s++)t.call(null,e[s],s,e);else{if(ko(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let r;for(s=0;s<a;s++)r=i[s],t.call(null,e[r],r,e)}}function Sf(e,t){if(ko(e))return null;t=t.toLowerCase();const n=Object.keys(e);let s=n.length,o;for(;s-- >0;)if(o=n[s],t===o.toLowerCase())return o;return null}const Kn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ef=e=>!xs(e)&&e!==Kn;function Ua(...e){const{caseless:t,skipUndefined:n}=Ef(this)&&this||{},s={},o=(i,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const r=t&&Sf(s,a)||a,c=za(s,r)?s[r]:void 0;Zo(c)&&Zo(i)?s[r]=Ua(c,i):Zo(i)?s[r]=Ua({},i):$s(i)?s[r]=i.slice():(!n||!xs(i))&&(s[r]=i)};for(let i=0,a=e.length;i<a;i++)e[i]&&Ao(e[i],o);return s}const ub=(e,t,n,{allOwnKeys:s}={})=>(Ao(t,(o,i)=>{n&&Ot(o)?Object.defineProperty(e,i,{__proto__:null,value:vf(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),e),db=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),fb=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},hb=(e,t,n,s)=>{let o,i,a;const r={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!s||s(a,e,t))&&!r[a]&&(t[a]=e[a],r[a]=!0);e=n!==!1&&Ni(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},pb=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},mb=e=>{if(!e)return null;if($s(e))return e;let t=e.length;if(!wf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},_b=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ni(Uint8Array)),gb=(e,t)=>{const s=(e&&e[Li]).call(e);let o;for(;(o=s.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},vb=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},yb=Zt("HTMLFormElement"),bb=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,o){return s.toUpperCase()+o}),za=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),wb=Zt("RegExp"),Cf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Ao(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(s[i]=a||o)}),Object.defineProperties(e,s)},Sb=e=>{Cf(e,(t,n)=>{if(Ot(e)&&["arguments","caller","callee"].includes(n))return!1;const s=e[n];if(Ot(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Eb=(e,t)=>{const n={},s=o=>{o.forEach(i=>{n[i]=!0})};return $s(e)?s(e):s(String(e).split(t)),n},Cb=()=>{},xb=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function kb(e){return!!(e&&Ot(e.append)&&e[yf]==="FormData"&&e[Li])}const Tb=e=>{const t=new WeakSet,n=s=>{if(To(s)){if(t.has(s))return;if(ko(s))return s;if(!("toJSON"in s)){t.add(s);const o=$s(s)?[]:{};return Ao(s,(i,a)=>{const r=n(i);!xs(r)&&(o[a]=r)}),t.delete(s),o}}return s};return n(e)},Ab=Zt("AsyncFunction"),Rb=e=>e&&(To(e)||Ot(e))&&Ot(e.then)&&Ot(e.catch),xf=((e,t)=>e?setImmediate:t?((n,s)=>(Kn.addEventListener("message",({source:o,data:i})=>{o===Kn&&i===n&&s.length&&s.shift()()},!1),o=>{s.push(o),Kn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ot(Kn.postMessage)),Ib=typeof queueMicrotask<"u"?queueMicrotask.bind(Kn):typeof process<"u"&&process.nextTick||xf,Ob=e=>e!=null&&Ot(e[Li]),P={isArray:$s,isArrayBuffer:bf,isBuffer:ko,isFormData:sb,isArrayBufferView:Hy,isString:Wy,isNumber:wf,isBoolean:Ky,isObject:To,isPlainObject:Zo,isEmptyObject:Gy,isReadableStream:ib,isRequest:ab,isResponse:rb,isHeaders:lb,isUndefined:xs,isDate:Jy,isFile:Xy,isReactNativeBlob:Yy,isReactNative:Qy,isBlob:Zy,isRegExp:wb,isFunction:Ot,isStream:tb,isURLSearchParams:ob,isTypedArray:_b,isFileList:eb,forEach:Ao,merge:Ua,extend:ub,trim:cb,stripBOM:db,inherits:fb,toFlatObject:hb,kindOf:Mi,kindOfTest:Zt,endsWith:pb,toArray:mb,forEachEntry:gb,matchAll:vb,isHTMLForm:yb,hasOwnProperty:za,hasOwnProp:za,reduceDescriptors:Cf,freezeMethods:Sb,toObjectSet:Eb,toCamelCase:bb,noop:Cb,toFiniteNumber:xb,findKey:Sf,global:Kn,isContextDefined:Ef,isSpecCompliantForm:kb,toJSONObject:Tb,isAsyncFn:Ab,isThenable:Rb,setImmediate:xf,asap:Ib,isIterable:Ob},$b=P.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Pb=e=>{const t={};let n,s,o;return e&&e.split(`
|
||
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),s=a.substring(o+1).trim(),!(!n||t[n]&&$b[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t};function Db(e){let t=0,n=e.length;for(;t<n;){const s=e.charCodeAt(t);if(s!==9&&s!==32)break;t+=1}for(;n>t;){const s=e.charCodeAt(n-1);if(s!==9&&s!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const Bb=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Nb=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Ir(e,t){return P.isArray(e)?e.map(n=>Ir(n,t)):Db(String(e).replace(t,""))}const Lb=e=>Ir(e,Bb),Mb=e=>Ir(e,Nb);function kf(e){const t=Object.create(null);return P.forEach(e.toJSON(),(n,s)=>{t[s]=Mb(n)}),t}const hc=Symbol("internals");function qs(e){return e&&String(e).trim().toLowerCase()}function ei(e){return e===!1||e==null?e:P.isArray(e)?e.map(ei):Lb(String(e))}function Fb(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const Vb=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ca(e,t,n,s,o){if(P.isFunction(s))return s.call(this,t,n);if(o&&(t=n),!!P.isString(t)){if(P.isString(s))return t.indexOf(s)!==-1;if(P.isRegExp(s))return s.test(t)}}function jb(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function qb(e,t){const n=P.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{__proto__:null,value:function(o,i,a){return this[s].call(this,t,o,i,a)},configurable:!0})})}let kt=class{constructor(t){t&&this.set(t)}set(t,n,s){const o=this;function i(r,c,d){const l=qs(c);if(!l)throw new Error("header name must be a non-empty string");const u=P.findKey(o,l);(!u||o[u]===void 0||d===!0||d===void 0&&o[u]!==!1)&&(o[u||c]=ei(r))}const a=(r,c)=>P.forEach(r,(d,l)=>i(d,l,c));if(P.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(P.isString(t)&&(t=t.trim())&&!Vb(t))a(Pb(t),n);else if(P.isObject(t)&&P.isIterable(t)){let r={},c,d;for(const l of t){if(!P.isArray(l))throw TypeError("Object iterator must return a key-value pair");r[d=l[0]]=(c=r[d])?P.isArray(c)?[...c,l[1]]:[c,l[1]]:l[1]}a(r,n)}else t!=null&&i(n,t,s);return this}get(t,n){if(t=qs(t),t){const s=P.findKey(this,t);if(s){const o=this[s];if(!n)return o;if(n===!0)return Fb(o);if(P.isFunction(n))return n.call(this,o,s);if(P.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=qs(t),t){const s=P.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||ca(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let o=!1;function i(a){if(a=qs(a),a){const r=P.findKey(s,a);r&&(!n||ca(s,s[r],r,n))&&(delete s[r],o=!0)}}return P.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let s=n.length,o=!1;for(;s--;){const i=n[s];(!t||ca(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,s={};return P.forEach(this,(o,i)=>{const a=P.findKey(s,i);if(a){n[a]=ei(o),delete n[i];return}const r=t?jb(i):String(i).trim();r!==i&&delete n[i],n[r]=ei(o),s[r]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return P.forEach(this,(s,o)=>{s!=null&&s!==!1&&(n[o]=t&&P.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
||
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(o=>s.set(o)),s}static accessor(t){const s=(this[hc]=this[hc]={accessors:{}}).accessors,o=this.prototype;function i(a){const r=qs(a);s[r]||(qb(o,a),s[r]=!0)}return P.isArray(t)?t.forEach(i):i(t),this}};kt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);P.reduceDescriptors(kt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});P.freezeMethods(kt);const Ub="[REDACTED ****]";function zb(e){if(P.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(P.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function Hb(e,t){const n=new Set(t.map(i=>String(i).toLowerCase())),s=[],o=i=>{if(i===null||typeof i!="object"||P.isBuffer(i))return i;if(s.indexOf(i)!==-1)return;i instanceof kt&&(i=i.toJSON()),s.push(i);let a;if(P.isArray(i))a=[],i.forEach((r,c)=>{const d=o(r);P.isUndefined(d)||(a[c]=d)});else{if(!P.isPlainObject(i)&&zb(i))return s.pop(),i;a=Object.create(null);for(const[r,c]of Object.entries(i)){const d=n.has(r.toLowerCase())?Ub:o(c);P.isUndefined(d)||(a[r]=d)}}return s.pop(),a};return o(e)}let fe=class Tf extends Error{static from(t,n,s,o,i,a){const r=new Tf(t.message,n||t.code,s,o,i);return r.cause=t,r.name=t.name,t.status!=null&&r.status==null&&(r.status=t.status),a&&Object.assign(r,a),r}constructor(t,n,s,o,i){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),s&&(this.config=s),o&&(this.request=o),i&&(this.response=i,this.status=i.status)}toJSON(){const t=this.config,n=t&&P.hasOwnProp(t,"redact")?t.redact:void 0,s=P.isArray(n)&&n.length>0?Hb(t,n):P.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:s,code:this.code,status:this.status}}};fe.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";fe.ERR_BAD_OPTION="ERR_BAD_OPTION";fe.ECONNABORTED="ECONNABORTED";fe.ETIMEDOUT="ETIMEDOUT";fe.ECONNREFUSED="ECONNREFUSED";fe.ERR_NETWORK="ERR_NETWORK";fe.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";fe.ERR_DEPRECATED="ERR_DEPRECATED";fe.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";fe.ERR_BAD_REQUEST="ERR_BAD_REQUEST";fe.ERR_CANCELED="ERR_CANCELED";fe.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";fe.ERR_INVALID_URL="ERR_INVALID_URL";fe.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Wb=null;function Ha(e){return P.isPlainObject(e)||P.isArray(e)}function Af(e){return P.endsWith(e,"[]")?e.slice(0,-2):e}function ua(e,t,n){return e?e.concat(t).map(function(o,i){return o=Af(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function Kb(e){return P.isArray(e)&&!e.some(Ha)}const Gb=P.toFlatObject(P,{},null,function(t){return/^is[A-Z]/.test(t)});function Vi(e,t,n){if(!P.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=P.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,v){return!P.isUndefined(v[p])});const s=n.metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,r=n.Blob||typeof Blob<"u"&&Blob,c=n.maxDepth===void 0?100:n.maxDepth,d=r&&P.isSpecCompliantForm(t);if(!P.isFunction(o))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(P.isDate(m))return m.toISOString();if(P.isBoolean(m))return m.toString();if(!d&&P.isBlob(m))throw new fe("Blob is not supported. Use a Buffer instead.");return P.isArrayBuffer(m)||P.isTypedArray(m)?d&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,p,v){let C=m;if(P.isReactNative(t)&&P.isReactNativeBlob(m))return t.append(ua(v,p,i),l(m)),!1;if(m&&!v&&typeof m=="object"){if(P.endsWith(p,"{}"))p=s?p:p.slice(0,-2),m=JSON.stringify(m);else if(P.isArray(m)&&Kb(m)||(P.isFileList(m)||P.endsWith(p,"[]"))&&(C=P.toArray(m)))return p=Af(p),C.forEach(function(x,b){!(P.isUndefined(x)||x===null)&&t.append(a===!0?ua([p],b,i):a===null?p:p+"[]",l(x))}),!1}return Ha(m)?!0:(t.append(ua(v,p,i),l(m)),!1)}const f=[],h=Object.assign(Gb,{defaultVisitor:u,convertValue:l,isVisitable:Ha});function _(m,p,v=0){if(!P.isUndefined(m)){if(v>c)throw new fe("Object is too deeply nested ("+v+" levels). Max depth: "+c,fe.ERR_FORM_DATA_DEPTH_EXCEEDED);if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(m),P.forEach(m,function(R,x){(!(P.isUndefined(R)||R===null)&&o.call(t,R,P.isString(x)?x.trim():x,p,h))===!0&&_(R,p?p.concat(x):[x],v+1)}),f.pop()}}if(!P.isObject(e))throw new TypeError("data must be an object");return _(e),t}function pc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(s){return t[s]})}function Or(e,t){this._pairs=[],e&&Vi(e,this,t)}const Rf=Or.prototype;Rf.append=function(t,n){this._pairs.push([t,n])};Rf.toString=function(t){const n=t?function(s){return t.call(this,s,pc)}:pc;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Jb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function If(e,t,n){if(!t)return e;const s=n&&n.encode||Jb,o=P.isFunction(n)?{serialize:n}:n,i=o&&o.serialize;let a;if(i?a=i(t,o):a=P.isURLSearchParams(t)?t.toString():new Or(t,o).toString(s),a){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class mc{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){P.forEach(this.handlers,function(s){s!==null&&t(s)})}}const $r={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Xb=typeof URLSearchParams<"u"?URLSearchParams:Or,Yb=typeof FormData<"u"?FormData:null,Qb=typeof Blob<"u"?Blob:null,Zb={isBrowser:!0,classes:{URLSearchParams:Xb,FormData:Yb,Blob:Qb},protocols:["http","https","file","blob","url","data"]},Pr=typeof window<"u"&&typeof document<"u",Wa=typeof navigator=="object"&&navigator||void 0,ew=Pr&&(!Wa||["ReactNative","NativeScript","NS"].indexOf(Wa.product)<0),tw=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",nw=Pr&&window.location.href||"http://localhost",sw=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Pr,hasStandardBrowserEnv:ew,hasStandardBrowserWebWorkerEnv:tw,navigator:Wa,origin:nw},Symbol.toStringTag,{value:"Module"})),yt={...sw,...Zb};function ow(e,t){return Vi(e,new yt.classes.URLSearchParams,{visitor:function(n,s,o,i){return yt.isNode&&P.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function iw(e){return P.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function aw(e){const t={},n=Object.keys(e);let s;const o=n.length;let i;for(s=0;s<o;s++)i=n[s],t[i]=e[i];return t}function Of(e){function t(n,s,o,i){let a=n[i++];if(a==="__proto__")return!0;const r=Number.isFinite(+a),c=i>=n.length;return a=!a&&P.isArray(o)?o.length:a,c?(P.hasOwnProp(o,a)?o[a]=P.isArray(o[a])?o[a].concat(s):[o[a],s]:o[a]=s,!r):((!P.hasOwnProp(o,a)||!P.isObject(o[a]))&&(o[a]=[]),t(n,s,o[a],i)&&P.isArray(o[a])&&(o[a]=aw(o[a])),!r)}if(P.isFormData(e)&&P.isFunction(e.entries)){const n={};return P.forEachEntry(e,(s,o)=>{t(iw(s),o,n,0)}),n}return null}const rs=(e,t)=>e!=null&&P.hasOwnProp(e,t)?e[t]:void 0;function rw(e,t,n){if(P.isString(e))try{return(t||JSON.parse)(e),P.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const Ro={transitional:$r,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",o=s.indexOf("application/json")>-1,i=P.isObject(t);if(i&&P.isHTMLForm(t)&&(t=new FormData(t)),P.isFormData(t))return o?JSON.stringify(Of(t)):t;if(P.isArrayBuffer(t)||P.isBuffer(t)||P.isStream(t)||P.isFile(t)||P.isBlob(t)||P.isReadableStream(t))return t;if(P.isArrayBufferView(t))return t.buffer;if(P.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let r;if(i){const c=rs(this,"formSerializer");if(s.indexOf("application/x-www-form-urlencoded")>-1)return ow(t,c).toString();if((r=P.isFileList(t))||s.indexOf("multipart/form-data")>-1){const d=rs(this,"env"),l=d&&d.FormData;return Vi(r?{"files[]":t}:t,l&&new l,c)}}return i||o?(n.setContentType("application/json",!1),rw(t)):t}],transformResponse:[function(t){const n=rs(this,"transitional")||Ro.transitional,s=n&&n.forcedJSONParsing,o=rs(this,"responseType"),i=o==="json";if(P.isResponse(t)||P.isReadableStream(t))return t;if(t&&P.isString(t)&&(s&&!o||i)){const r=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,rs(this,"parseReviver"))}catch(c){if(r)throw c.name==="SyntaxError"?fe.from(c,fe.ERR_BAD_RESPONSE,this,null,rs(this,"response")):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:yt.classes.FormData,Blob:yt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};P.forEach(["delete","get","head","post","put","patch","query"],e=>{Ro.headers[e]={}});function da(e,t){const n=this||Ro,s=t||n,o=kt.from(s.headers);let i=s.data;return P.forEach(e,function(r){i=r.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function $f(e){return!!(e&&e.__CANCEL__)}let Io=class extends fe{constructor(t,n,s){super(t??"canceled",fe.ERR_CANCELED,n,s),this.name="CanceledError",this.__CANCEL__=!0}};function Pf(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new fe("Request failed with status code "+n.status,n.status>=400&&n.status<500?fe.ERR_BAD_REQUEST:fe.ERR_BAD_RESPONSE,n.config,n.request,n))}function lw(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function cw(e,t){e=e||10;const n=new Array(e),s=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),l=s[i];a||(a=d),n[o]=c,s[o]=d;let u=i,f=0;for(;u!==o;)f+=n[u++],u=u%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),d-a<t)return;const h=l&&d-l;return h?Math.round(f*1e3/h):void 0}}function uw(e,t){let n=0,s=1e3/t,o,i;const a=(d,l=Date.now())=>{n=l,o=null,i&&(clearTimeout(i),i=null),e(...d)};return[(...d)=>{const l=Date.now(),u=l-n;u>=s?a(d,l):(o=d,i||(i=setTimeout(()=>{i=null,a(o)},s-u)))},()=>o&&a(o)]}const fi=(e,t,n=3)=>{let s=0;const o=cw(50,250);return uw(i=>{if(!i||typeof i.loaded!="number")return;const a=i.loaded,r=i.lengthComputable?i.total:void 0,c=r!=null?Math.min(a,r):a,d=Math.max(0,c-s),l=o(d);s=Math.max(s,c);const u={loaded:c,total:r,progress:r?c/r:void 0,bytes:d,rate:l||void 0,estimated:l&&r?(r-c)/l:void 0,event:i,lengthComputable:r!=null,[t?"download":"upload"]:!0};e(u)},n)},_c=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},gc=e=>(...t)=>P.asap(()=>e(...t)),dw=yt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,yt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(yt.origin),yt.navigator&&/(msie|trident)/i.test(yt.navigator.userAgent)):()=>!0,fw=yt.hasStandardBrowserEnv?{write(e,t,n,s,o,i,a){if(typeof document>"u")return;const r=[`${e}=${encodeURIComponent(t)}`];P.isNumber(n)&&r.push(`expires=${new Date(n).toUTCString()}`),P.isString(s)&&r.push(`path=${s}`),P.isString(o)&&r.push(`domain=${o}`),i===!0&&r.push("secure"),P.isString(a)&&r.push(`SameSite=${a}`),document.cookie=r.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const s=t[n].replace(/^\s+/,""),o=s.indexOf("=");if(o!==-1&&s.slice(0,o)===e)return decodeURIComponent(s.slice(o+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function hw(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function pw(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Df(e,t,n){let s=!hw(t);return e&&(s||n===!1)?pw(e,t):t}const vc=e=>e instanceof kt?{...e}:e;function Zn(e,t){t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function s(d,l,u,f){return P.isPlainObject(d)&&P.isPlainObject(l)?P.merge.call({caseless:f},d,l):P.isPlainObject(l)?P.merge({},l):P.isArray(l)?l.slice():l}function o(d,l,u,f){if(P.isUndefined(l)){if(!P.isUndefined(d))return s(void 0,d,u,f)}else return s(d,l,u,f)}function i(d,l){if(!P.isUndefined(l))return s(void 0,l)}function a(d,l){if(P.isUndefined(l)){if(!P.isUndefined(d))return s(void 0,d)}else return s(void 0,l)}function r(d,l,u){if(P.hasOwnProp(t,u))return s(d,l);if(P.hasOwnProp(e,u))return s(void 0,d)}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:r,headers:(d,l,u)=>o(vc(d),vc(l),u,!0)};return P.forEach(Object.keys({...e,...t}),function(l){if(l==="__proto__"||l==="constructor"||l==="prototype")return;const u=P.hasOwnProp(c,l)?c[l]:o,f=P.hasOwnProp(e,l)?e[l]:void 0,h=P.hasOwnProp(t,l)?t[l]:void 0,_=u(f,h,l);P.isUndefined(_)&&u!==r||(n[l]=_)}),n}const mw=["content-type","content-length"];function _w(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([s,o])=>{mw.includes(s.toLowerCase())&&e.set(s,o)})}const gw=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),Bf=e=>{const t=Zn({},e),n=f=>P.hasOwnProp(t,f)?t[f]:void 0,s=n("data");let o=n("withXSRFToken");const i=n("xsrfHeaderName"),a=n("xsrfCookieName");let r=n("headers");const c=n("auth"),d=n("baseURL"),l=n("allowAbsoluteUrls"),u=n("url");if(t.headers=r=kt.from(r),t.url=If(Df(d,u,l),e.params,e.paramsSerializer),c&&r.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?gw(c.password):""))),P.isFormData(s)&&(yt.hasStandardBrowserEnv||yt.hasStandardBrowserWebWorkerEnv?r.setContentType(void 0):P.isFunction(s.getHeaders)&&_w(r,s.getHeaders(),n("formDataHeaderPolicy"))),yt.hasStandardBrowserEnv&&(P.isFunction(o)&&(o=o(t)),o===!0||o==null&&dw(t.url))){const h=i&&a&&fw.read(a);h&&r.set(i,h)}return t},vw=typeof XMLHttpRequest<"u",yw=vw&&function(e){return new Promise(function(n,s){const o=Bf(e);let i=o.data;const a=kt.from(o.headers).normalize();let{responseType:r,onUploadProgress:c,onDownloadProgress:d}=o,l,u,f,h,_;function m(){h&&h(),_&&_(),o.cancelToken&&o.cancelToken.unsubscribe(l),o.signal&&o.signal.removeEventListener("abort",l)}let p=new XMLHttpRequest;p.open(o.method.toUpperCase(),o.url,!0),p.timeout=o.timeout;function v(){if(!p)return;const R=kt.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),b={data:!r||r==="text"||r==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:R,config:e,request:p};Pf(function(D){n(D),m()},function(D){s(D),m()},b),p=null}"onloadend"in p?p.onloadend=v:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.startsWith("file:"))||setTimeout(v)},p.onabort=function(){p&&(s(new fe("Request aborted",fe.ECONNABORTED,e,p)),m(),p=null)},p.onerror=function(x){const b=x&&x.message?x.message:"Network Error",I=new fe(b,fe.ERR_NETWORK,e,p);I.event=x||null,s(I),m(),p=null},p.ontimeout=function(){let x=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const b=o.transitional||$r;o.timeoutErrorMessage&&(x=o.timeoutErrorMessage),s(new fe(x,b.clarifyTimeoutError?fe.ETIMEDOUT:fe.ECONNABORTED,e,p)),m(),p=null},i===void 0&&a.setContentType(null),"setRequestHeader"in p&&P.forEach(kf(a),function(x,b){p.setRequestHeader(b,x)}),P.isUndefined(o.withCredentials)||(p.withCredentials=!!o.withCredentials),r&&r!=="json"&&(p.responseType=o.responseType),d&&([f,_]=fi(d,!0),p.addEventListener("progress",f)),c&&p.upload&&([u,h]=fi(c),p.upload.addEventListener("progress",u),p.upload.addEventListener("loadend",h)),(o.cancelToken||o.signal)&&(l=R=>{p&&(s(!R||R.type?new Io(null,e,p):R),p.abort(),m(),p=null)},o.cancelToken&&o.cancelToken.subscribe(l),o.signal&&(o.signal.aborted?l():o.signal.addEventListener("abort",l)));const C=lw(o.url);if(C&&!yt.protocols.includes(C)){s(new fe("Unsupported protocol "+C+":",fe.ERR_BAD_REQUEST,e));return}p.send(i||null)})},bw=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let s=!1;const o=function(c){if(!s){s=!0,a();const d=c instanceof Error?c:this.reason;n.abort(d instanceof fe?d:new Io(d instanceof Error?d.message:d))}};let i=t&&setTimeout(()=>{i=null,o(new fe(`timeout of ${t}ms exceeded`,fe.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:r}=n;return r.unsubscribe=()=>P.asap(a),r},ww=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let s=0,o;for(;s<n;)o=s+t,yield e.slice(s,o),s=o},Sw=async function*(e,t){for await(const n of Ew(e))yield*ww(n,t)},Ew=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},yc=(e,t,n,s)=>{const o=Sw(e,t);let i=0,a,r=c=>{a||(a=!0,s&&s(c))};return new ReadableStream({async pull(c){try{const{done:d,value:l}=await o.next();if(d){r(),c.close();return}let u=l.byteLength;if(n){let f=i+=u;n(f)}c.enqueue(new Uint8Array(l))}catch(d){throw r(d),d}},cancel(c){return r(c),o.return()}},{highWaterMark:2})};function Cw(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),s=e.slice(t+1);if(/;base64/i.test(n)){let a=s.length;const r=s.length;for(let h=0;h<r;h++)if(s.charCodeAt(h)===37&&h+2<r){const _=s.charCodeAt(h+1),m=s.charCodeAt(h+2);(_>=48&&_<=57||_>=65&&_<=70||_>=97&&_<=102)&&(m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102)&&(a-=2,h+=2)}let c=0,d=r-1;const l=h=>h>=2&&s.charCodeAt(h-2)===37&&s.charCodeAt(h-1)===51&&(s.charCodeAt(h)===68||s.charCodeAt(h)===100);d>=0&&(s.charCodeAt(d)===61?(c++,d--):l(d)&&(c++,d-=3)),c===1&&d>=0&&(s.charCodeAt(d)===61||l(d))&&c++;const f=Math.floor(a/4)*3-(c||0);return f>0?f:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(s,"utf8");let i=0;for(let a=0,r=s.length;a<r;a++){const c=s.charCodeAt(a);if(c<128)i+=1;else if(c<2048)i+=2;else if(c>=55296&&c<=56319&&a+1<r){const d=s.charCodeAt(a+1);d>=56320&&d<=57343?(i+=4,a++):i+=3}else i+=3}return i}const Dr="1.16.1",bc=64*1024,{isFunction:Ko}=P,wc=(e,...t)=>{try{return!!e(...t)}catch{return!1}},xw=e=>{const t=P.global!==void 0&&P.global!==null?P.global:globalThis,{ReadableStream:n,TextEncoder:s}=t;e=P.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:i,Response:a}=e,r=o?Ko(o):typeof fetch=="function",c=Ko(i),d=Ko(a);if(!r)return!1;const l=r&&Ko(n),u=r&&(typeof s=="function"?(v=>C=>v.encode(C))(new s):async v=>new Uint8Array(await new i(v).arrayBuffer())),f=c&&l&&wc(()=>{let v=!1;const C=new i(yt.origin,{body:new n,method:"POST",get duplex(){return v=!0,"half"}}),R=C.headers.has("Content-Type");return C.body!=null&&C.body.cancel(),v&&!R}),h=d&&l&&wc(()=>P.isReadableStream(new a("").body)),_={stream:h&&(v=>v.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(v=>{!_[v]&&(_[v]=(C,R)=>{let x=C&&C[v];if(x)return x.call(C);throw new fe(`Response type '${v}' is not supported`,fe.ERR_NOT_SUPPORT,R)})});const m=async v=>{if(v==null)return 0;if(P.isBlob(v))return v.size;if(P.isSpecCompliantForm(v))return(await new i(yt.origin,{method:"POST",body:v}).arrayBuffer()).byteLength;if(P.isArrayBufferView(v)||P.isArrayBuffer(v))return v.byteLength;if(P.isURLSearchParams(v)&&(v=v+""),P.isString(v))return(await u(v)).byteLength},p=async(v,C)=>{const R=P.toFiniteNumber(v.getContentLength());return R??m(C)};return async v=>{let{url:C,method:R,data:x,signal:b,cancelToken:I,timeout:D,onDownloadProgress:K,onUploadProgress:M,responseType:F,headers:B,withCredentials:O="same-origin",fetchOptions:Q,maxContentLength:Z,maxBodyLength:Ce}=Bf(v);const he=P.isNumber(Z)&&Z>-1,ae=P.isNumber(Ce)&&Ce>-1;let de=o||fetch;F=F?(F+"").toLowerCase():"text";let xe=bw([b,I&&I.toAbortSignal()],D),we=null;const oe=xe&&xe.unsubscribe&&(()=>{xe.unsubscribe()});let ne;try{if(he&&typeof C=="string"&&C.startsWith("data:")&&Cw(C)>Z)throw new fe("maxContentLength size of "+Z+" exceeded",fe.ERR_BAD_RESPONSE,v,we);if(ae&&R!=="get"&&R!=="head"){const L=await p(B,x);if(typeof L=="number"&&isFinite(L)&&L>Ce)throw new fe("Request body larger than maxBodyLength limit",fe.ERR_BAD_REQUEST,v,we)}if(M&&f&&R!=="get"&&R!=="head"&&(ne=await p(B,x))!==0){let L=new i(C,{method:"POST",body:x,duplex:"half"}),H;if(P.isFormData(x)&&(H=L.headers.get("content-type"))&&B.setContentType(H),L.body){const[N,z]=_c(ne,fi(gc(M)));x=yc(L.body,bc,N,z)}}P.isString(O)||(O=O?"include":"omit");const ie=c&&"credentials"in i.prototype;if(P.isFormData(x)){const L=B.getContentType();L&&/^multipart\/form-data/i.test(L)&&!/boundary=/i.test(L)&&B.delete("content-type")}B.set("User-Agent","axios/"+Dr,!1);const Ae={...Q,signal:xe,method:R.toUpperCase(),headers:kf(B.normalize()),body:x,duplex:"half",credentials:ie?O:void 0};we=c&&new i(C,Ae);let Y=await(c?de(we,Q):de(C,Ae));if(he){const L=P.toFiniteNumber(Y.headers.get("content-length"));if(L!=null&&L>Z)throw new fe("maxContentLength size of "+Z+" exceeded",fe.ERR_BAD_RESPONSE,v,we)}const ce=h&&(F==="stream"||F==="response");if(h&&Y.body&&(K||he||ce&&oe)){const L={};["status","statusText","headers"].forEach(T=>{L[T]=Y[T]});const H=P.toFiniteNumber(Y.headers.get("content-length")),[N,z]=K&&_c(H,fi(gc(K),!0))||[];let y=0;const w=T=>{if(he&&(y=T,y>Z))throw new fe("maxContentLength size of "+Z+" exceeded",fe.ERR_BAD_RESPONSE,v,we);N&&N(T)};Y=new a(yc(Y.body,bc,w,()=>{z&&z(),oe&&oe()}),L)}F=F||"text";let S=await _[P.findKey(_,F)||"text"](Y,v);if(he&&!h&&!ce){let L;if(S!=null&&(typeof S.byteLength=="number"?L=S.byteLength:typeof S.size=="number"?L=S.size:typeof S=="string"&&(L=typeof s=="function"?new s().encode(S).byteLength:S.length)),typeof L=="number"&&L>Z)throw new fe("maxContentLength size of "+Z+" exceeded",fe.ERR_BAD_RESPONSE,v,we)}return!ce&&oe&&oe(),await new Promise((L,H)=>{Pf(L,H,{data:S,headers:kt.from(Y.headers),status:Y.status,statusText:Y.statusText,config:v,request:we})})}catch(ie){if(oe&&oe(),xe&&xe.aborted&&xe.reason instanceof fe){const Ae=xe.reason;throw Ae.config=v,we&&(Ae.request=we),ie!==Ae&&(Ae.cause=ie),Ae}throw ie&&ie.name==="TypeError"&&/Load failed|fetch/i.test(ie.message)?Object.assign(new fe("Network Error",fe.ERR_NETWORK,v,we,ie&&ie.response),{cause:ie.cause||ie}):fe.from(ie,ie&&ie.code,v,we,ie&&ie.response)}}},kw=new Map,Nf=e=>{let t=e&&e.env||{};const{fetch:n,Request:s,Response:o}=t,i=[s,o,n];let a=i.length,r=a,c,d,l=kw;for(;r--;)c=i[r],d=l.get(c),d===void 0&&l.set(c,d=r?new Map:xw(t)),l=d;return d};Nf();const Br={http:Wb,xhr:yw,fetch:{get:Nf}};P.forEach(Br,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const Sc=e=>`- ${e}`,Tw=e=>P.isFunction(e)||e===null||e===!1;function Aw(e,t){e=P.isArray(e)?e:[e];const{length:n}=e;let s,o;const i={};for(let a=0;a<n;a++){s=e[a];let r;if(o=s,!Tw(s)&&(o=Br[(r=String(s)).toLowerCase()],o===void 0))throw new fe(`Unknown adapter '${r}'`);if(o&&(P.isFunction(o)||(o=o.get(t))))break;i[r||"#"+a]=o}if(!o){const a=Object.entries(i).map(([c,d])=>`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let r=n?a.length>1?`since :
|
||
`+a.map(Sc).join(`
|
||
`):" "+Sc(a[0]):"as no adapter specified";throw new fe("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return o}const Lf={getAdapter:Aw,adapters:Br};function fa(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Io(null,e)}function Ec(e){return fa(e),e.headers=kt.from(e.headers),e.data=da.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Lf.getAdapter(e.adapter||Ro.adapter,e)(e).then(function(s){fa(e),e.response=s;try{s.data=da.call(e,e.transformResponse,s)}finally{delete e.response}return s.headers=kt.from(s.headers),s},function(s){if(!$f(s)&&(fa(e),s&&s.response)){e.response=s.response;try{s.response.data=da.call(e,e.transformResponse,s.response)}finally{delete e.response}s.response.headers=kt.from(s.response.headers)}return Promise.reject(s)})}const ji={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ji[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const Cc={};ji.transitional=function(t,n,s){function o(i,a){return"[Axios v"+Dr+"] Transitional option '"+i+"'"+a+(s?". "+s:"")}return(i,a,r)=>{if(t===!1)throw new fe(o(a," has been removed"+(n?" in "+n:"")),fe.ERR_DEPRECATED);return n&&!Cc[a]&&(Cc[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,r):!0}};ji.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function Rw(e,t,n){if(typeof e!="object")throw new fe("options must be an object",fe.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let o=s.length;for(;o-- >0;){const i=s[o],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){const r=e[i],c=r===void 0||a(r,i,e);if(c!==!0)throw new fe("option "+i+" must be "+c,fe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new fe("Unknown option "+i,fe.ERR_BAD_OPTION)}}const ti={assertOptions:Rw,validators:ji},jt=ti.validators;let Qn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new mc,response:new mc}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=(()=>{if(!o.stack)return"";const a=o.stack.indexOf(`
|
||
`);return a===-1?"":o.stack.slice(a+1)})();try{if(!s.stack)s.stack=i;else if(i){const a=i.indexOf(`
|
||
`),r=a===-1?-1:i.indexOf(`
|
||
`,a+1),c=r===-1?"":i.slice(r+1);String(s.stack).endsWith(c)||(s.stack+=`
|
||
`+i)}}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Zn(this.defaults,n);const{transitional:s,paramsSerializer:o,headers:i}=n;s!==void 0&&ti.assertOptions(s,{silentJSONParsing:jt.transitional(jt.boolean),forcedJSONParsing:jt.transitional(jt.boolean),clarifyTimeoutError:jt.transitional(jt.boolean),legacyInterceptorReqResOrdering:jt.transitional(jt.boolean)},!1),o!=null&&(P.isFunction(o)?n.paramsSerializer={serialize:o}:ti.assertOptions(o,{encode:jt.function,serialize:jt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ti.assertOptions(n,{baseUrl:jt.spelling("baseURL"),withXsrfToken:jt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&P.merge(i.common,i[n.method]);i&&P.forEach(["delete","get","head","post","put","patch","query","common"],_=>{delete i[_]}),n.headers=kt.concat(a,i);const r=[];let c=!0;this.interceptors.request.forEach(function(m){if(typeof m.runWhen=="function"&&m.runWhen(n)===!1)return;c=c&&m.synchronous;const p=n.transitional||$r;p&&p.legacyInterceptorReqResOrdering?r.unshift(m.fulfilled,m.rejected):r.push(m.fulfilled,m.rejected)});const d=[];this.interceptors.response.forEach(function(m){d.push(m.fulfilled,m.rejected)});let l,u=0,f;if(!c){const _=[Ec.bind(this),void 0];for(_.unshift(...r),_.push(...d),f=_.length,l=Promise.resolve(n);u<f;)l=l.then(_[u++],_[u++]);return l}f=r.length;let h=n;for(;u<f;){const _=r[u++],m=r[u++];try{h=_(h)}catch(p){m.call(this,p);break}}try{l=Ec.call(this,h)}catch(_){return Promise.reject(_)}for(u=0,f=d.length;u<f;)l=l.then(d[u++],d[u++]);return l}getUri(t){t=Zn(this.defaults,t);const n=Df(t.baseURL,t.url,t.allowAbsoluteUrls);return If(n,t.params,t.paramsSerializer)}};P.forEach(["delete","get","head","options"],function(t){Qn.prototype[t]=function(n,s){return this.request(Zn(s||{},{method:t,url:n,data:(s||{}).data}))}});P.forEach(["post","put","patch","query"],function(t){function n(s){return function(i,a,r){return this.request(Zn(r||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Qn.prototype[t]=n(),t!=="query"&&(Qn.prototype[t+"Form"]=n(!0))});let Iw=class Mf{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const s=this;this.promise.then(o=>{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](o);s._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(r=>{s.subscribe(r),i=r}).then(o);return a.cancel=function(){s.unsubscribe(i)},a},t(function(i,a,r){s.reason||(s.reason=new Io(i,a,r),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Mf(function(o){t=o}),cancel:t}}};function Ow(e){return function(n){return e.apply(null,n)}}function $w(e){return P.isObject(e)&&e.isAxiosError===!0}const Ka={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ka).forEach(([e,t])=>{Ka[t]=e});function Ff(e){const t=new Qn(e),n=vf(Qn.prototype.request,t);return P.extend(n,Qn.prototype,t,{allOwnKeys:!0}),P.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Ff(Zn(e,o))},n}const Qe=Ff(Ro);Qe.Axios=Qn;Qe.CanceledError=Io;Qe.CancelToken=Iw;Qe.isCancel=$f;Qe.VERSION=Dr;Qe.toFormData=Vi;Qe.AxiosError=fe;Qe.Cancel=Qe.CanceledError;Qe.all=function(t){return Promise.all(t)};Qe.spread=Ow;Qe.isAxiosError=$w;Qe.mergeConfig=Zn;Qe.AxiosHeaders=kt;Qe.formToJSON=e=>Of(P.isHTMLForm(e)?new FormData(e):e);Qe.getAdapter=Lf.getAdapter;Qe.HttpStatusCode=Ka;Qe.default=Qe;const{Axios:zT,AxiosError:HT,CanceledError:WT,isCancel:KT,CancelToken:GT,VERSION:JT,all:XT,Cancel:YT,isAxiosError:QT,spread:ZT,toFormData:eA,AxiosHeaders:tA,HttpStatusCode:nA,formToJSON:sA,getAdapter:oA,mergeConfig:iA,create:aA}=Qe;let Pw=null;function Dw(e){Pw=e}const Ve=Qe.create({baseURL:"/api",timeout:2e4,headers:{"Content-Type":"application/json"}});Ve.interceptors.request.use(e=>{const t=localStorage.getItem("h5_token");return t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));Ve.interceptors.response.use(e=>{const t=e.data;return t.code!==0?t.code===1002?(xc("biz1002"),Promise.reject({code:1002,message:t.message||"未授权"})):(Te(t.message||"请求失败"),Promise.reject({code:t.code,message:t.message||"请求失败"})):t.data},async e=>{let t="网络异常,请稍后重试",n=-1;if(e.response)switch(n=e.response.status,e.response.status){case 401:await xc("http401");break;case 403:t="拒绝访问";break;case 404:t="请求的资源不存在";break;case 500:t="服务器内部错误";break;default:t=`请求失败 (${e.response.status})`}else e.code==="ECONNABORTED"&&(t="请求超时,请稍后重试");return n!==401&&Te(t),Promise.reject({code:n,message:t})});let Us=null;async function xc(e){const t=e==="http401"?"HTTP 401":"业务码 1002";return Us?(console.warn(`[API] ${t} 未授权 — 已有处理进行中,等待完成`),Us):(console.warn(`[API] ${t} 未授权,清除凭证并跳转登录`),Us=(async()=>{try{localStorage.removeItem("h5_token"),localStorage.removeItem("employee_id"),localStorage.removeItem("employee_name"),""||(Te("登录已过期,请重新登录"),window.location.pathname!=="/h5/login"&&(window.location.href="/h5/login"))}catch(n){console.warn("[API] 401 处理失败,刷新页面:",n),window.location.reload()}finally{Us=null}})(),Us)}function Ga(e){return{message_id:e.id||e.message_id||"",conversation_id:e.conversation_id||"",message_type:e.sender_type||e.message_type||"text",msg_type:e.msg_type,content:e.content||"",sender_name:e.sender_name||"",created_at:e.created_at||"",media_url:e.media_url,file_name:e.file_name,file_size:e.file_size,extra_data:e.extra_data,reply_to_id:e.reply_to_id}}function Vf(e){return(e||[]).map(Ga)}async function Bw(){return await Ve.get("/h5/user")}async function Nw(){return await Ve.get("/h5/conversations/current")}async function kc(e){const t=await Ve.post("/h5/conversations/current/messages",e,{timeout:3e4});return{user_message:Ga(t.user_message),ai_reply:t.ai_reply?Ga(t.ai_reply):t.ai_reply,is_guidance:t.is_guidance,ai_reply_count:t.ai_reply_count,can_call_agent:t.can_call_agent}}async function Lw(e){const n=await Ve.get("/h5/conversations/current/messages/poll",{params:e}),s=(n==null?void 0:n.items)||n||[];return Vf(s)}async function Tc(e){const n=await Ve.get("/h5/conversations/current/messages",{params:e}),s=(n==null?void 0:n.items)||[];return{items:Vf(s),has_more:(n==null?void 0:n.has_more)||!1}}async function Mw(e){return await Ve.post("/h5/conversations/current/shake",e)}async function Fw(){const t=await Ve.get("/h5/approval-links");return(t==null?void 0:t.items)||t||[]}async function Vw(){return await Ve.get("/approval/keywords")||[]}async function jw(e){return await Ve.post("/approval/jump",{template_id:e})}async function qw(){const t=await Ve.get("/h5/software-downloads");return(t==null?void 0:t.items)||t||[]}async function Uw(e){return await Ve.post(`/h5/conversations/${e}/join`)}async function zw(e){return await Ve.post(`/h5/conversations/${e}/leave-participant`)}async function Hw(e,t){return await Ve.post(`/conversation/${e}/evaluate`,t)}async function Ww(e){return await Ve.get(`/conversation/${e}/evaluation`)}async function Kw(e){return await Ve.post("/h5/oauth/callback",e)}async function Gw(e){return await Ve.post("/h5/mock-login",e)}async function Jw(){return await Ve.get("/h5/me")}async function Xw(){const e=window.location.origin+"/itservice/go";return await Ve.get("/h5/oauth/authorize",{params:{redirect_uri:e}})}const ha="h5_token",An="employee_id",ls="employee_name",zs="oauth_redirect_count",Ac=3,Et=Tr("employee",()=>{const e=q(localStorage.getItem(ha)||"");e.value&&!a(e.value)&&localStorage.removeItem(zs);const t=q(null),n=q(!1),s=j(()=>e.value?!a(e.value):!1),o=j(()=>{var b;return((b=t.value)==null?void 0:b.employee_id)||localStorage.getItem(An)||""}),i=j(()=>{var b;return((b=t.value)==null?void 0:b.employee_name)||localStorage.getItem(ls)||""});function a(b){try{const I=b.split(".");if(I.length!==3)return!1;const D=JSON.parse(atob(I[1]));return D.exp?Math.floor(Date.now()/1e3)>=D.exp-60:!1}catch{return!1}}function r(b){e.value=b,localStorage.setItem(ha,b)}function c(){e.value="",t.value=null,localStorage.removeItem(ha),localStorage.removeItem(An),localStorage.removeItem(ls)}function d(){localStorage.removeItem(zs)}function l(){const I=parseInt(localStorage.getItem(zs)||"0",10)+1;return localStorage.setItem(zs,String(I)),I}function u(){return parseInt(localStorage.getItem(zs)||"0",10)>=Ac}async function f(b,I){n.value=!0;try{const D=await Kw({code:b,state:I});return r(D.token),localStorage.setItem(An,D.employee_id),localStorage.setItem(ls,D.employee_name),t.value={employee_id:D.employee_id,employee_name:D.employee_name,department:D.department,position:D.position,mobile:"",email:"",avatar:D.avatar,is_vip:!1},console.log("[EmployeeStore] OAuth2 登录成功:",D.employee_name),d(),D}catch(D){throw console.error("[EmployeeStore] OAuth2 登录失败:",D),D}finally{n.value=!1}}async function h(b,I){n.value=!0;try{const D=await Gw({employee_id:b,employee_name:I||"测试用户"});return r(D.token),localStorage.setItem(An,D.employee_id),localStorage.setItem(ls,D.employee_name),t.value={employee_id:D.employee_id,employee_name:D.employee_name,department:D.department,position:D.position,mobile:"",email:"",avatar:D.avatar,is_vip:!1},console.log("[EmployeeStore] Mock 登录成功:",D.employee_name),d(),D}catch(D){throw console.error("[EmployeeStore] Mock 登录失败:",D),D}finally{n.value=!1}}async function _(){if(e.value)try{const b=await Jw();t.value=b,localStorage.setItem(An,b.employee_id),localStorage.setItem(ls,b.employee_name),console.log("[EmployeeStore] 获取员工信息成功:",b.employee_name)}catch(b){console.error("[EmployeeStore] 获取员工信息失败:",b);{console.warn("[EmployeeStore] 开发模式:使用 mock 员工信息"),t.value={employee_id:localStorage.getItem(An)||"dev_test_employee",employee_name:"开发测试用户",department:"IT部",position:"开发工程师",mobile:"",email:"",avatar:"",is_vip:!1};return}}}async function m(){try{const b=await Xw();if(b.authorize_url){window.location.href=b.authorize_url;return}}catch(b){console.warn("[EmployeeStore] 从后端获取授权URL失败,尝试本地构造:",b)}{console.warn("[EmployeeStore] 未配置 VITE_WECOM_CORP_ID,无法跳转授权");return}}async function p(){if(console.warn("[EmployeeStore] Token 已过期或无效,重新授权"),u()){console.error("[EmployeeStore] OAuth2 重定向次数超限,疑似无限循环,停止重定向"),c(),d();const{showToast:I}=await Hn(async()=>{const{showToast:D}=await import("./index-n4lwlBn2.js");return{showToast:D}},__vite__mapDeps([0,1,2,3]));I("登录状态异常,请刷新页面重试");return}c();const b=l();console.warn(`[EmployeeStore] OAuth2 重定向计数: ${b}/${Ac}`),await m()}function v(b){localStorage.setItem(An,b),e.value="",t.value={employee_id:b,employee_name:"开发测试用户",department:"IT部",position:"开发工程师",mobile:"",email:"",avatar:"",is_vip:!1},console.log("[EmployeeStore] 开发模式登录:",b)}function C(){c(),console.log("[EmployeeStore] 已登出")}function R(b){r(b),d()}function x(b){t.value={employee_id:b.userid,employee_name:b.name,department:b.department||"",position:"",mobile:b.phone||"",email:b.email||"",avatar:b.avatar||"",is_vip:!1},localStorage.setItem(An,b.userid),localStorage.setItem(ls,b.name)}return Dw(p),{token:e,employeeInfo:t,authenticating:n,isAuthenticated:s,employeeId:o,employeeName:i,handleOAuthCallback:f,mockLogin:h,fetchEmployeeInfo:_,redirectToOAuth:m,handleUnauthorized:p,devLogin:v,logout:C,setToken:R,setUserInfo:x}}),Yw=Object.freeze(Object.defineProperty({__proto__:null,useEmployeeStore:Et},Symbol.toStringTag,{value:"Module"})),Qw=3e4,Zw=3e4,e0=1e3;let io=null;function t0(e){return io&&io.readyState===WebSocket.OPEN?(io.send(JSON.stringify(e)),!0):(console.warn("[H5 WS] WebSocket 未连接,无法发送消息:",e),!1)}function n0(){let e=null,t=null,n=null,s=0,o=!1;function i(){const u=Et(),f=u.employeeId,h=u.token;if(!f||!h){console.warn("[H5 WS] 未登录或缺少token,跳过连接");return}e&&a(),o=!1;const _=window.location.protocol==="https:"?"wss:":"ws:",m=window.location.host,p=`${_}//${m}/ws/h5/${f}`;console.log(`[H5 WS] 正在连接: ${p}`),e=new WebSocket(p,[`bearer.${h}`]),io=e,e.onopen=()=>{console.log("[H5 WS] 连接成功"),s=0,r(),$t().stopPolling()},e.onmessage=v=>{try{const C=JSON.parse(v.data);l(C)}catch(C){console.error("[H5 WS] 消息解析失败:",C)}},e.onclose=()=>{if(console.log("[H5 WS] 连接关闭"),c(),e=null,!o){const v=$t();v.cancelStreamingBubble(),v.startPolling(),d()}},e.onerror=v=>{console.error("[H5 WS] 连接错误:",v)}}function a(){o=!0,n&&(clearTimeout(n),n=null),c(),e&&(e.close(),e=null),io=null,s=0,console.log("[H5 WS] 已主动断开连接")}function r(){c(),t=setInterval(()=>{e&&e.readyState===WebSocket.OPEN&&e.send(JSON.stringify({type:"ping"}))},Qw)}function c(){t&&(clearInterval(t),t=null)}function d(){if(o)return;const u=Math.min(e0*Math.pow(2,s),Zw);s++,console.log(`[H5 WS] 将在 ${u/1e3} 秒后重连(第 ${s} 次)`),n&&clearTimeout(n),n=setTimeout(()=>{console.log("[H5 WS] 正在重连..."),i()},u)}function l(u){var h,_,m,p,v;const f=$t();switch(u.type){case"participant_invited":(h=u.data)!=null&&h.participants&&f.updateParticipants(u.data.participants);break;case"participant_joined":(_=u.data)!=null&&_.participants&&f.updateParticipants(u.data.participants);break;case"participant_removed":if((m=u.data)!=null&&m.participants&&f.updateParticipants(u.data.participants),(p=u.data)!=null&&p.changed){const C=Et();u.data.changed.map(x=>x.id).includes(C.employeeId)&&(console.log("[H5 WS] 当前用户被移除会话"),f.handleRemovedFromConversation())}break;case"participant_left":(v=u.data)!=null&&v.participants&&f.updateParticipants(u.data.participants);break;case"new_message":u.data&&f.handleNewMessage(u.data);break;case"ai_reply_chunk":u.data&&f.handleAiReplyChunk(u.data);break;case"ai_reply":u.data&&f.handleAiReply(u.data);break;case"ai_reply_failed":u.data&&f.handleAiReplyFailed(u.data);break;case"ai_thinking":u.data&&f.handleAiThinking(u.data);break;case"dynamic_recommend":u.data&&f.handleDynamicRecommend(u.data);break;case"pong":break;case"queue_position_update":u.data&&f.handleQueuePositionUpdate(u.data);break;case"conversation_resolved":u.data&&f.handleConversationResolved(u.data);break;case"pending_close_request":u.data&&f.handlePendingCloseRequest(u.data);break;case"quiz_diagnostic_answer":u.data&&f.handleQuizDiagnosticAnswer(u.data);break;default:console.warn(`[H5 WS] 未知消息类型: ${u.type}`)}}return{connect:i,disconnect:a}}const s0="h5_messages_cache",o0=7,i0=100;function Nr(e){return`${s0}_${e}`}function a0(e){try{const t=Nr(e),n=localStorage.getItem(t);if(!n)return null;const s=JSON.parse(n),o=s.timestamp||0,i=Date.now(),a=o0*24*60*60*1e3;return i-o>a?(localStorage.removeItem(t),null):s.messages||null}catch(t){return console.warn("[Store] 读取消息缓存失败:",t),null}}function Hs(e,t){try{const n=Nr(e),s=t.slice(-i0);localStorage.setItem(n,JSON.stringify({messages:s,timestamp:Date.now()}))}catch(n){console.warn("[Store] 保存消息缓存失败:",n)}}function r0(e){try{const t=Nr(e);localStorage.removeItem(t)}catch(t){console.warn("[Store] 清除消息缓存失败:",t)}}function l0(e,t){const n=new Map;return e.forEach(s=>n.set(s.message_id,s)),t.forEach(s=>n.set(s.message_id,s)),Array.from(n.values()).sort((s,o)=>new Date(s.created_at).getTime()-new Date(o.created_at).getTime())}const $t=Tr("conversation",()=>{const e=q(null),t=q(null),n=q([]),s=q(!1),o=q(!1),i=q(!1),a=q(!0),r=q(null),c=q(!1),d=q([]),l=q(!1),u=q(""),f=q([]),h=q(""),_=q(!1),m=q([]),p=q(""),v=q(null),C=q([]),R=q(!1),x=q([]),b=q(0),I=q(null),D=q(new Set),K=j(()=>Et().isAuthenticated),M=j(()=>t.value?t.value.status!=="resolved":!1),F=j(()=>!t.value||!e.value||t.value.employee_id===e.value.employee_id?!1:C.value.some($=>{var J;return $.id===((J=e.value)==null?void 0:J.employee_id)})),B=j(()=>C.value.filter(J=>J.joined).length),O=j(()=>{const $={};for(const J of d.value)$[J.category]||($[J.category]=[]),$[J.category].push(J);return $}),Q=j(()=>{const $={};for(const J of f.value)$[J.category]||($[J.category]=[]),$[J.category].push(J);return $});function Z($){const J=D.value;if(J.delete($),J.add($),J.size>500){const ue=J.values().next().value;ue&&J.delete(ue)}}function Ce($){if(D.value.has($.message_id)){console.log(`[H5 WS去重] 跳过重复消息: ${$.message_id}`);return}Z($.message_id),n.value.push({message_id:$.message_id,conversation_id:$.conversation_id,message_type:$.sender_type||"system",msg_type:$.msg_type||"text",content:$.content,sender_name:$.sender_name||"",created_at:new Date().toISOString()}),h.value=$.message_id}async function he($,J){await Et().handleOAuthCallback($,J)}async function ae(){try{const $=Et();$.employeeInfo&&(e.value={employee_id:$.employeeInfo.employee_id,employee_name:$.employeeInfo.employee_name,department:$.employeeInfo.department,position:$.employeeInfo.position,level:"",is_vip:$.employeeInfo.is_vip,avatar_url:$.employeeInfo.avatar});const J=await Bw();e.value=J,console.log("[Store] 获取用户信息成功:",J.employee_name)}catch($){console.error("[Store] 获取用户信息失败:",$);{console.warn("[Store] 开发模式:使用 mock 用户信息");const J=Et();e.value={employee_id:J.employeeId||"dev_test_employee",employee_name:J.employeeName||"开发测试用户",department:"IT部",position:"开发工程师",level:"",is_vip:!1,avatar_url:""};return}}}async function de(){try{const $=await Nw();t.value=$,i.value=($==null?void 0:$.can_call_agent)??!1,C.value=($==null?void 0:$.participants)||[],console.log("[Store] 获取当前会话:",$?$.conversation_id:"无活跃会话","参与者:",C.value.length)}catch($){console.error("[Store] 获取当前会话失败:",$)}}async function xe($,J){var mt,xn,Fr;if(console.log("[Store] sendNewMessage 开始执行, content:",$,"options:",J),!$.trim()){console.warn("[Store] content 为空,直接返回");return}const ue=Et(),me=`temp_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,Oe={message_id:me,conversation_id:((mt=t.value)==null?void 0:mt.conversation_id)||"",message_type:"employee",msg_type:(J==null?void 0:J.msg_type)||"text",content:$.trim(),sender_name:ue.employeeName||"我",created_at:new Date().toISOString(),status:"sending"};n.value.push(Oe),console.log("[Store] 乐观更新:临时消息已添加到列表, tempMessageId:",me),s.value=!0;try{const ut={content:$.trim()};J!=null&&J.msg_type&&(ut.msg_type=J.msg_type,ut.media_url=J.media_url,ut.file_name=J.file_name,ut.file_size=J.file_size),console.log("[Store] 请求参数:",JSON.stringify(ut));const dt=await kc(ut);if(console.log("[Store] API 响应:",dt),!dt)throw console.error("[Store] API 响应为空"),new Error("API 响应为空");if(!dt.user_message)throw console.error("[Store] API 响应缺少 user_message"),new Error("API 响应格式错误:缺少 user_message");const $o=n.value.findIndex(Po=>Po.message_id===me);if($o!==-1){n.value[$o]={...dt.user_message,status:"sent"},Z(dt.user_message.message_id),h.value=dt.user_message.message_id,console.log("[Store] 乐观更新成功:临时消息已替换为真实消息");const Po=(xn=t.value)==null?void 0:xn.conversation_id;Po&&Hs(Po,n.value)}else n.value.push({...dt.user_message,status:"sent"}),Z(dt.user_message.message_id),h.value=dt.user_message.message_id;i.value=dt.can_call_agent??!1,t.value&&(t.value.can_call_agent=dt.can_call_agent??!1,t.value.ai_substantive_reply_count=dt.ai_reply_count??0),console.log("[Store] 消息发送成功, AI回复计数:",dt.ai_reply_count,"可呼叫坐席:",dt.can_call_agent,"是否引导:",dt.is_guidance)}catch(ut){console.error("[Store] 消息发送失败:",ut),console.error("[Store] 错误详情:",ut==null?void 0:ut.message,(Fr=ut==null?void 0:ut.response)==null?void 0:Fr.data,ut==null?void 0:ut.stack);const dt=n.value.findIndex($o=>$o.message_id===me);throw dt!==-1&&(n.value[dt].status="failed",console.log("[Store] 乐观更新失败:临时消息状态已改为 failed")),ut}finally{s.value=!1,console.log("[Store] sendNewMessage finally 执行完成")}}async function we(){var $;if(!(!K.value||!M.value))try{const J=h.value?{after_message_id:h.value}:void 0,ue=await Lw(J);if(ue&&ue.length>0){const me=ue.filter(Oe=>D.value.has(Oe.message_id)?(console.log(`[H5轮询去重] 跳过重复消息: ${Oe.message_id}`),!1):(Z(Oe.message_id),!0));if(me.length>0){n.value.push(...me),h.value=me[me.length-1].message_id,console.log("[Store] 轮询到新消息:",me.length,"条");const Oe=($=t.value)==null?void 0:$.conversation_id;Oe&&Hs(Oe,n.value)}}}catch(J){console.error("[Store] 轮询消息失败:",J)}}async function oe($){var J;if(!(!K.value||!M.value))try{const ue=await Tc($);if(ue.items&&ue.items.length>0){const me=ue.items.filter(Oe=>D.value.has(Oe.message_id)?!1:(Z(Oe.message_id),!0));if(me.length>0){$!=null&&$.before?n.value.push(...me):n.value=me;const Oe=me[me.length-1];Oe&&(h.value=Oe.message_id),console.log("[Store] 获取到历史消息:",me.length,"条");const mt=(J=t.value)==null?void 0:J.conversation_id;mt&&Hs(mt,n.value)}}}catch(ue){console.error("[Store] 获取历史消息失败:",ue)}}function ne(){r.value||(console.log("[Store] 启动消息轮询(3秒间隔)"),r.value=setInterval(()=>{we()},3e3))}function ie(){r.value&&(console.log("[Store] 停止消息轮询"),clearInterval(r.value),r.value=null)}async function Ae(){var $,J;if(o.value)return"pending";o.value=!0;try{const ue=Et(),me=await Mw({employee_id:ue.employeeId,employee_name:ue.employeeName});console.log("[Store] 招手成功:",me);const Oe={message_id:`sys_shake_${Date.now()}`,conversation_id:(($=t.value)==null?void 0:$.conversation_id)||"",message_type:"system",content:me.funny_phrase,sender_name:"系统",created_at:new Date().toISOString()};return n.value.push(Oe),me.assign_result==="assigned"&&me.assigned_agent_id?(Oe.content=`${me.funny_phrase}
|
||
|
||
坐席正在查看您的信息,请等待处理回复!`,t.value&&(t.value.status="serving")):me.assign_result==="queued"&&(Oe.content=`${me.funny_phrase}
|
||
|
||
⏳ 当前无空闲坐席,您已进入排队,请耐心等待...`),((J=me.conversation)==null?void 0:J.status)==="serving"&&await de(),me.assign_result||"queued"}catch(ue){return console.error("[Store] 招手失败:",ue),"error"}finally{o.value=!1}}async function Y(){try{const $=await Fw();d.value=$,console.log("[Store] 获取审批链接成功:",$.length,"条")}catch($){console.error("[Store] 获取审批链接失败:",$)}}function ce(){l.value=!1,u.value=""}function S($=""){var ue;const J={message_id:`approval_card_${Date.now()}`,conversation_id:((ue=t.value)==null?void 0:ue.conversation_id)||"",message_type:"system",msg_type:"approval_card",content:"",sender_name:"",created_at:new Date().toISOString(),extra_data:{approval_type:"",confidence:0}};n.value.push(J),console.log("[Store] 手动插入审批卡片消息(快捷按钮触发)")}async function L(){try{const $=await qw();f.value=$,console.log("[Store] 获取软件下载列表成功:",$.length,"条")}catch($){console.error("[Store] 获取软件下载列表失败:",$)}}function H(){c.value=!c.value}async function N($){try{await de();const J=t.value;J&&J.conversation_id!==$&&console.warn("[Store] 当前会话ID不匹配, 期望:",$,"实际:",J.conversation_id),n.value=[],h.value="",await oe(),console.log("[Store] 已切换到邀请会话:",$)}catch(J){console.error("[Store] 切换会话失败:",J)}}async function z(){if(!t.value)return;const $=t.value.conversation_id;try{await zw($),console.log("[Store] 已退出会话:",$),t.value=null,C.value=[],n.value=[],h.value="",ie()}catch(J){throw console.error("[Store] 退出会话失败:",J),J}}function y(){R.value=!R.value}async function w($){const J=n.value.findIndex(Oe=>Oe.message_id===$);if(J===-1){console.warn("[Store] 重试消息找不到:",$);return}const ue=n.value[J];if(ue.status!=="failed"){console.warn("[Store] 消息状态不是 failed,无法重试:",$);return}const me=ue.content;n.value.splice(J,1),console.log("[Store] 删除失败消息:",$),await xe(me,{msg_type:ue.msg_type,media_url:ue.media_url,file_name:ue.file_name,file_size:ue.file_size})}function T($){C.value=$,t.value&&(t.value.participants=$),console.log("[Store] 参与者列表已通过WS更新:",$.length,"人")}function U(){console.log("[Store] 当前用户被移除会话,清空状态"),t.value=null,C.value=[],n.value=[],h.value="",R.value=!1,ie()}function G($){var ue;if(((ue=t.value)==null?void 0:ue.conversation_id)!==$.conversation_id||!$.chunk)return;if(!I.value){const me=`ai_stream_${$.conversation_id}_${Date.now()}`;I.value=me,n.value.push({message_id:me,conversation_id:$.conversation_id,message_type:"ai",msg_type:"text",content:"",sender_name:"Duckula(达寇拉)",created_at:new Date().toISOString()})}const J=n.value.findIndex(me=>me.message_id===I.value);J!==-1&&(n.value[J].content+=$.chunk)}function W($){var Oe,mt;if(((Oe=t.value)==null?void 0:Oe.conversation_id)!==$.conversation_id)return;const J={message_id:$.message_id,conversation_id:$.conversation_id,message_type:$.sender_type||"ai",msg_type:$.msg_type||"text",content:$.content,sender_name:$.sender_name||"Duckula(达寇拉)",created_at:new Date().toISOString(),status:"sent",extra_data:$.extra_data||void 0},ue=I.value?n.value.findIndex(xn=>xn.message_id===I.value):-1;if(ue!==-1?n.value[ue]=J:n.value.push(J),I.value=null,Z($.message_id),h.value=$.message_id,i.value=$.can_call_agent??!1,t.value){t.value.can_call_agent=$.can_call_agent??!1,t.value.ai_substantive_reply_count=$.ai_reply_count??0;const xn={ai_handling:"waiting",queued:"waiting",serving:"serving",resolved:"resolved"};t.value.status=xn[$.conversation_status]||t.value.status}const me=(mt=t.value)==null?void 0:mt.conversation_id;me&&Hs(me,n.value)}function se($){var me;if(((me=t.value)==null?void 0:me.conversation_id)!==$.conversation_id)return;const J={message_id:`ai_failed_${$.conversation_id}_${Date.now()}`,conversation_id:$.conversation_id,message_type:"ai",msg_type:"text",content:$.message||"⚠️ AI 服务异常,请输入「IT」转人工或稍后重试。",sender_name:"Duckula(达寇拉)",created_at:new Date().toISOString(),status:"sent"},ue=I.value?n.value.findIndex(Oe=>Oe.message_id===I.value):-1;ue!==-1?n.value[ue]=J:n.value.push(J),I.value=null}function te($){var Oe;if(((Oe=t.value)==null?void 0:Oe.conversation_id)!==$.conversation_id)return;const J=I.value,ue=J?n.value.findIndex(mt=>mt.message_id===J):-1,me=$.status==="still_thinking"?"仍在思考中,请稍候...":"正在思考...";if(ue!==-1)n.value[ue].content=me;else{const mt=`ai_thinking_${$.conversation_id}_${Date.now()}`;I.value=mt,n.value.push({message_id:mt,conversation_id:$.conversation_id,message_type:"ai",msg_type:"text",content:me,sender_name:"Duckula(达寇拉)",created_at:new Date().toISOString()})}}function ee($){x.value.push($),x.value.length>3&&x.value.shift(),b.value+=1,console.log("[Store] 动态推荐已接收:",$.title,"未读:",b.value)}function X(){b.value=0}function _e($){const J=x.value.findIndex(ue=>ue.recommend_id===$);J!==-1&&x.value.splice(J,1)}function re($,J){var mt;const ue=(mt=t.value)==null?void 0:mt.conversation_id;if(!ue)return;const me=Et();n.value.push({message_id:`option_select_${Date.now()}`,conversation_id:ue,message_type:"employee",msg_type:"text",content:J,sender_name:me.employeeName||"我",created_at:new Date().toISOString(),status:"sent"}),t0({type:"option_select",data:{conversation_id:ue,option_value:$,option_label:J}})||(console.warn("[Store] WS 未连接,选项选择降级为 HTTP 消息发送"),kc({content:J,msg_type:"text"}).catch(xn=>{console.error("[Store] 选项选择 HTTP 降级发送失败:",xn)})),console.log("[Store] 选项选择已发送:",$,J)}function pe(){if(!I.value)return;const $=n.value.findIndex(J=>J.message_id===I.value);$!==-1&&n.value.splice($,1),I.value=null}const ye=q(null),Ie=q(null),De=q(null);function Ne($){var J;((J=t.value)==null?void 0:J.conversation_id)===$.conversation_id&&(ye.value={position:$.position,segment:$.segment,ahead_count:$.ahead_count,queue_priority:$.queue_priority})}function Ze($){var ue;if(((ue=t.value)==null?void 0:ue.conversation_id)!==$.conversation_id)return;t.value&&(t.value.status="resolved"),De.value={conversation_id:$.conversation_id,resolved_by:$.resolved_by,resolved_method:$.resolved_method,resolve_summary:$.resolve_summary||""},Ie.value=null;const J={message_id:`resolve_${$.conversation_id}_${Date.now()}`,conversation_id:$.conversation_id,message_type:"system",msg_type:"text",content:Oo($.resolved_method),sender_name:"系统",created_at:new Date().toISOString(),status:"sent"};n.value.push(J)}function it($){var ue;if(((ue=t.value)==null?void 0:ue.conversation_id)!==$.conversation_id)return;t.value&&(t.value.status="waiting"),Ie.value={conversation_id:$.conversation_id,resolve_summary:$.resolve_summary||"",agent_name:$.agent_name||"坐席"};const J={message_id:`pending_close_${$.conversation_id}_${Date.now()}`,conversation_id:$.conversation_id,message_type:"system",msg_type:"text",content:`📋 ${$.agent_name||"坐席"}发起了结单请求,请确认`,sender_name:"系统",created_at:new Date().toISOString(),status:"sent"};n.value.push(J)}function Nt($){const J={message_id:`quiz_diag_${$.conversation_id}_${Date.now()}`,conversation_id:$.conversation_id,message_type:"system",msg_type:"text",content:`📝 诊断信息已传递给坐席:${$.question} → ${$.selected_answer}`,sender_name:"系统",created_at:new Date().toISOString(),status:"sent"};n.value.push(J)}function Lt(){Ie.value=null}function Mn(){De.value=null,ye.value=null}function Oo($){return $==="ai_self"?"✅ 问题已解决,会话已关闭。24小时内可重新打开。":$==="agent_confirm"?"✅ 坐席已结单,会话已关闭。24小时内可重新打开。":$==="employee_initiative"?"✅ 会话已关闭。24小时内可重新打开。":$==="system_timeout"?"⏰ 会话因长时间无响应已自动关闭。24小时内可重新打开。":"✅ 会话已关闭。24小时内可重新打开。"}async function bt(){var $;if(!_.value)try{console.log("[Store] 开始初始化应用..."),await Promise.all([ae(),de()]);const J=($=t.value)==null?void 0:$.conversation_id;if(J){const ue=a0(J);if(ue&&ue.length>0){console.log(`[Store] 加载缓存消息 ${ue.length} 条`),n.value=ue;const me=ue[ue.length-1];me&&(h.value=me.message_id)}}Promise.resolve().then(async()=>{try{const ue=await Tc({limit:50});if(ue.items&&ue.items.length>0){const me=ue.items.filter(Oe=>D.value.has(Oe.message_id)?!1:(Z(Oe.message_id),!0));if(me.length>0){J&&n.value.length>0?n.value=l0(n.value,me):n.value=me;const Oe=me[me.length-1];Oe&&(h.value=Oe.message_id),J&&Hs(J,n.value),console.log(`[Store] 历史消息已加载,共 ${n.value.length} 条`)}}}catch(ue){console.warn("[Store] 加载历史消息失败:",ue)}}),setTimeout(()=>{Promise.all([Y(),L()]).catch(ue=>console.warn("[Store] 加载面板数据失败:",ue))},500),ne(),_.value=!0,console.log("[Store] 应用初始化完成(缓存优先显示)")}catch(J){console.error("[Store] 应用初始化失败:",J)}}function Mt(){var $;($=t.value)!=null&&$.conversation_id&&r0(t.value.conversation_id),ie()}return{userInfo:e,currentConversation:t,messages:n,loading:s,shaking:o,canCallAgent:i,agentOnline:a,assistantPanelVisible:c,approvalLinks:d,approvalCardVisible:l,approvalCardTriggerText:u,softwareDownloads:f,lastMessageId:h,initialized:_,troubleshootingSteps:m,troubleshootingTemplateName:p,troubleshootingCurrentNode:v,participants:C,participantPanelVisible:R,isLoggedIn:K,hasActiveConversation:M,isParticipant:F,joinedParticipantCount:B,approvalLinksByCategory:O,softwareDownloadsByCategory:Q,handleOAuthCallback:he,fetchUserInfo:ae,fetchCurrentConversation:de,fetchMessages:oe,sendNewMessage:xe,pollNewMessages:we,startPolling:ne,stopPolling:ie,shakeAgent:Ae,fetchApprovalLinks:Y,closeApprovalCard:ce,showApprovalCard:S,fetchSoftwareDownloads:L,toggleAssistantPanel:H,switchToConversation:N,leaveAsParticipant:z,toggleParticipantPanel:y,retryMessage:w,updateParticipants:T,handleRemovedFromConversation:U,initialize:bt,cleanup:Mt,handleNewMessage:Ce,handleAiReplyChunk:G,handleAiReply:W,handleAiReplyFailed:se,cancelStreamingBubble:pe,handleAiThinking:te,handleDynamicRecommend:ee,clearUnreadRecommend:X,removeRecommend:_e,sendOptionSelect:re,dynamicRecommendations:x,unreadRecommendCount:b,queuePositionData:ye,pendingCloseRequest:Ie,resolvedInfo:De,handleQueuePositionUpdate:Ne,handleConversationResolved:Ze,handlePendingCloseRequest:it,handleQuizDiagnosticAnswer:Nt,clearPendingCloseRequest:Lt,clearResolvedInfo:Mn}}),c0="/h5/v20260806f/duckula.webp";function u0(e,t){return Za()?(Qc(e,t),!0):!1}const Lr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const d0=Object.prototype.toString,f0=e=>d0.call(e)==="[object Object]";function h0(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const s=t;t=void 0,s&&await s},n}function pa(e){return Array.isArray(e)?e:[e]}function p0(e,t,n={}){const{immediate:s=!0,immediateCallback:o=!1}=n,i=Bn(!1);let a;function r(){a&&(clearTimeout(a),a=void 0)}function c(){i.value=!1,r()}function d(...l){o&&e(),r(),i.value=!0,a=setTimeout(()=>{i.value=!1,a=void 0,e(...l)},ms(t))}return s&&(i.value=!0,Lr&&d()),u0(c),{isPending:Go(i),start:d,stop:c}}function m0(e,t,n){return ke(e,t,{...n,immediate:!0})}const _0=Lr?window:void 0,jf=Lr?window.navigator:void 0;function g0(e){var t;const n=ms(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function qf(...e){const t=(s,o,i,a)=>(s.addEventListener(o,i,a),()=>s.removeEventListener(o,i,a)),n=j(()=>{const s=pa(ms(e[0])).filter(o=>o!=null);return s.every(o=>typeof o!="string")?s:void 0});return m0(()=>{var s,o;return[(s=(o=n.value)===null||o===void 0?void 0:o.map(i=>g0(i)))!==null&&s!==void 0?s:[_0].filter(i=>i!=null),pa(ms(n.value?e[1]:e[0])),pa(Re(n.value?e[2]:e[1])),ms(n.value?e[3]:e[2])]},([s,o,i,a],r,c)=>{if(!(s!=null&&s.length)||!(o!=null&&o.length)||!(i!=null&&i.length))return;const d=f0(a)?{...a}:a,l=s.flatMap(u=>o.flatMap(f=>i.map(h=>t(u,f,h,d))));c(()=>{l.forEach(u=>u())})},{flush:"post"})}function v0(){const e=Bn(!1),t=Wt();return t&&nt(()=>{e.value=!0},t),e}function Uf(e){const t=v0();return j(()=>(t.value,!!e()))}function Rc(e,t={}){const{controls:n=!1,navigator:s=jf}=t,o=Uf(()=>s&&"permissions"in s),i=Bn(),a=typeof e=="string"?{name:e}:e,r=Bn(),c=()=>{var l,u;r.value=(l=(u=i.value)===null||u===void 0?void 0:u.state)!==null&&l!==void 0?l:"prompt"};qf(i,"change",c,{passive:!0});const d=h0(async()=>{if(o.value){if(!i.value)try{i.value=await s.permissions.query(a)}catch{i.value=void 0}finally{c()}if(n)return Pe(i.value)}});return d(),n?{state:r,isSupported:o,query:d}:r}function y0(e={}){const{navigator:t=jf,read:n=!1,source:s,copiedDuring:o=1500,legacy:i=!1}=e,a=Uf(()=>t&&"clipboard"in t),r=Rc("clipboard-read"),c=Rc("clipboard-write"),d=j(()=>a.value||i),l=Bn(""),u=Bn(!1),f=Bn(!1),h=p0(()=>u.value=!1,o,{immediate:!1});let _=0;async function m(){let b=!(a.value&&x(r.value));if(!b)try{l.value=await t.clipboard.readText()}catch{b=!0}b&&(l.value=R())}d.value&&n&&qf(["copy","cut"],m,{passive:!0});async function p(b){const I=b??ms(s);if(d.value&&I!=null){f.value=!0;let D=!(a.value&&x(c.value));if(!D)try{const K=v(I);await t.clipboard.write([K])}catch{D=!0}if(D)if(typeof I=="string")l.value=I,C(I);else{const K=++_,M=await I();M!=null&&K===_&&(l.value=M,C(M))}u.value=!0,h.start(),f.value=!1}}function v(b){return typeof b=="string"?(l.value=b,new ClipboardItem({"text/plain":b})):new ClipboardItem({"text/plain":b().then((I="")=>(l.value=I,new Blob([I],{type:"text/plain"})))})}function C(b){const I=document.createElement("textarea");I.value=b,I.style.position="absolute",I.style.opacity="0",I.setAttribute("readonly",""),document.body.appendChild(I),I.select(),document.execCommand("copy"),I.remove()}function R(){var b,I,D;return(b=(I=document)===null||I===void 0||(D=I.getSelection)===null||D===void 0||(D=D.call(I))===null||D===void 0?void 0:D.toString())!==null&&b!==void 0?b:""}function x(b){return b==="granted"||b==="prompt"}return{copyPending:Go(f),isSupported:d,text:Go(l),copied:Go(u),copy:p}}async function zf(e,t=!1){return Ve.get("/wecom/jsapi-config",{params:{url:e,with_agent_config:t}})}const b0="https://res.wx.qq.com/open/js/jweixin-1.2.0.js",Ic=8e3,Oc=8e3,w0=1e4,S0=8e3,E0=["agentConfig","thirdPartyOpenPage","checkJsApi"],C0=["thirdPartyOpenPage"];function x0(){const e=q(!1),t=q(!1),n=q(null);let s=!1;function o(){return/wxwork/i.test(navigator.userAgent)}function i(h){const _=h.match(/template_id=([^&]+)/);return _?_[1]:null}function a(h){return h.includes("template_id=")}function r(){return new Promise((h,_)=>{if(typeof window.wx<"u"){h();return}const m=setTimeout(()=>{p.onload=null,p.onerror=null,_(new Error("加载企微 JS-SDK 脚本超时"))},w0),p=document.createElement("script");p.src=b0,p.async=!0,p.onload=()=>{clearTimeout(m),typeof window.wx<"u"?h():_(new Error("JS-SDK 脚本已加载但 window.wx 未挂载"))},p.onerror=()=>{clearTimeout(m),_(new Error("加载企微 JS-SDK 脚本失败"))},document.head.appendChild(p)})}function c(h){return new Promise((_,m)=>{const p=window.wx;if(!p||typeof p.config!="function"){m(new Error("wx.config 不可用,JS-SDK 未正确加载"));return}let v=!1;const C=setTimeout(()=>{v||(v=!0,m(new Error(`wx.config 鉴权超时(${Ic/1e3}秒无响应)`)))},Ic);p.ready(()=>{v||(v=!0,clearTimeout(C),_())}),p.error(R=>{v||(v=!0,clearTimeout(C),m(new Error(`wx.config 失败: ${R.errMsg}`)))}),p.config({beta:!0,debug:!1,appId:h.corp_id,timestamp:h.timestamp,nonceStr:h.nonce_str,signature:h.signature,jsApiList:E0})})}function d(h){return new Promise((_,m)=>{const p=window.wx;if(!p||typeof p.agentConfig!="function"){m(new Error("wx.agentConfig 不可用"));return}let v=!1;const C=setTimeout(()=>{v||(v=!0,m(new Error(`wx.agentConfig 超时(${Oc/1e3}秒无响应)`)))},Oc);p.agentConfig({corpid:h.corp_id,agentid:h.agent_id,timestamp:h.agent_config.timestamp,nonceStr:h.agent_config.nonce_str,signature:h.agent_config.signature,jsApiList:C0,success:()=>{v||(v=!0,clearTimeout(C),_())},fail:R=>{v||(v=!0,clearTimeout(C),m(new Error(`wx.agentConfig 失败: ${R.errMsg}`)))}})})}function l(h){return new Promise(_=>{const m=window.wx;if(!m||typeof m.invoke!="function"){_(!1);return}const p={oaType:"10001",templateId:h,thirdNo:`itsmartdesk_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,extData:{fieldList:[]}};let v=!1;const C=setTimeout(()=>{v||(v=!0,_(!1))},S0);m.invoke("thirdPartyOpenPage",p,R=>{v||(v=!0,clearTimeout(C),_(R.err_msg==="thirdPartyOpenPage:ok"))})})}async function u(){if(!s){t.value=!0,n.value=null;try{await r();const h=window.location.href.split("#")[0],_=await zf(h,!0);if(!_.agent_config)throw new Error("后端未返回 agent_config 签名");await c(_),await d({corp_id:_.corp_id,agent_id:_.agent_id,timestamp:_.timestamp,agent_config:_.agent_config}),s=!0,e.value=!0}catch(h){n.value=(h==null?void 0:h.message)||"JS-SDK 初始化失败"}finally{t.value=!1}}}async function f(h){if(!o()){window.location.href=h;return}if(!a(h)){window.location.href=h;return}const _=i(h);if(!_){window.location.href=h;return}if(s||await u(),!e.value){window.location.href=h;return}await l(_)||(window.location.href=h)}return{isReady:e,isLoading:t,error:n,isWecomEnv:o,openUrl:f,init:u}}const k0={class:"approval-card-inline"},T0={class:"approval-card-inline__header"},A0={class:"approval-card-inline__title-row"},R0={key:0,class:"approval-card-inline__tag"},I0={class:"approval-card-inline__options"},O0=["onClick"],$0={class:"approval-card-inline__option-icon"},P0={class:"approval-card-inline__option-content"},D0={class:"approval-card-inline__option-name"},B0={class:"approval-card-inline__option-desc"},N0=be({__name:"ApprovalCardModal",props:{approvalType:{default:""}},setup(e){const t=e,{openUrl:n}=x0(),s={设备申请:[{name:"IT资产领用",icon:"orders-o",desc:"申请新设备",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=C4c8qt31AbSHwN9MuaFhYXt4Qwsx6ZLCftAFh6X1w&sp_id=&from=template_list"},{name:"IT资产借用",icon:"orders-o",desc:"临时借用设备",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=3TmACnFs8oqgYcasxVh4BfSMGNX7p9sb6ydBX77mK&sp_id=&from=template_list"},{name:"IT资产升级",icon:"orders-o",desc:"设备升级换新",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=Bs7ucTGsPuFhxfk8pn8EydxrWxkVetB4JR8Pb6PHS&sp_id=&from=template_list"}],账号权限申请:[{name:"VPN账号申请",icon:"lock",desc:"零信任VPN",url:"https://devops.dc.servyou-it.com/ITSM/workflow/service/createTicket?name=%E5%91%98%E5%B7%A5%E9%9B%B6%E4%BF%A1%E4%BB%BB%EF%BC%88%E5%8E%9FVPN%EF%BC%89%E8%B4%A6%E5%8F%B7%E7%94%B3%E8%AF%B7"},{name:"企微外联权限",icon:"lock",desc:"外部联系人权限",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=C4WrCbZd214XrDMZJiHDho7ZQHWX7gsabb7x2fF72&sp_id=&from=template_list"},{name:"公共邮箱账号",icon:"lock",desc:"共享邮箱",url:"https://devops.dc.servyou-it.com/ITSM/workflow/service/createTicket?name=%E5%85%AC%E5%85%B1%E9%82%AE%E7%AE%B1%E8%B4%A6%E5%8F%B7%E7%94%B3%E8%AF%B7"}],软件服务申请:[{name:"商业软件申请",icon:"apps-o",desc:"正版软件授权",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=3TmACf8DsJy5yr7aymanLskywC4EDhFLuz1KuBBQK&sp_id=&from=template_list"}],资产处置申请:[{name:"IT资产外修",icon:"warn-o",desc:"设备送修",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=Bs7ucTLPo42dtj8Y1LzBoujijsa6geRWaRxZJjk4X&sp_id=&from=template_list"},{name:"IT资产报废",icon:"delete-o",desc:"设备报废",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=C4WroCDfWuHKyujQjatjm3AjNv67imXk5C6WNooFkb&sp_id=&from=template_list"},{name:"资产退还",icon:"back-top",desc:"退还设备",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=C4c8qt33AZ52a7n9BBWDh6PmsDnpM5B6w8geqqqoHz&sp_id=&from=template_list"}],办公用品申请:[{name:"办公用品超额领用",icon:"gift-o",desc:"超配额申领",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=3WN6zRucbjycdnR94gBvkSVuXRamX7pKW4PrmNFh&sp_id=&from=template_list"}],会议室故障报修:[{name:"会议室故障报修",icon:"warn-o",desc:"会议室设备故障",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=C4ZXJMtjQJiPXo6N5vNMK26uPRT3KTi9VvkH2NScg&sp_id=&from=template_list"}],企业应用管理:[{name:"企业应用管理",icon:"apps-o",desc:"企业应用开通管理",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=3WLJnRg2Se1fwizQtNvFtcYMgci1mhRJZhMw2FFKb&sp_id=&from=template_list"}],资产变更确认:[{name:"资产变更确认",icon:"exchange",desc:"资产信息变更",url:"https://app.work.weixin.qq.com/wework_admin/approval_v3#/?template_id=C4cA2owjRcXRRPQ46otZvUHoWNEKL5t25tHHfeePip&sp_id=&from=template_list"}],终端设备网络准入:[{name:"终端设备网络准入申请",icon:"lock",desc:"终端网络准入",url:"https://devops.dc.servyou-it.com/ITSM/workflow/service/createTicket?name=%E7%BB%88%E7%AB%AF%E8%AE%BE%E5%A4%87%E7%BD%91%E7%BB%9C%E5%87%86%E5%85%A5%E7%94%B3%E8%AF%B7"}],活动与会议技术支持:[{name:"活动与会议技术支持",icon:"calendar-o",desc:"活动会议技术保障",url:"https://devops.dc.servyou-it.com/ITSM/workflow/service/createTicket?name=%E6%B4%BB%E5%8A%A8%E4%B8%8E%E4%BC%9A%E8%AE%AE%E6%8A%80%E6%9C%AF%E6%94%AF%E6%8C%81"}],员工IT支持与故障报修:[{name:"员工IT支持与故障报修",icon:"warn-o",desc:"IT支持与故障报修",url:"https://devops.dc.servyou-it.com/ITSM/workflow/service/createTicket?name=%E5%91%98%E5%B7%A5IT%E6%94%AF%E6%8C%81%E4%B8%8E%E6%95%85%E9%9A%9C%E6%8A%A5%E4%BF%AE"}],公共邮箱账号申请:[{name:"公共邮箱账号申请",icon:"lock",desc:"公共邮箱账号",url:"https://devops.dc.servyou-it.com/ITSM/workflow/service/createTicket?name=%E5%85%AC%E5%85%B1%E9%82%AE%E7%AE%B1%E8%B4%A6%E5%8F%B7%E7%94%B3%E8%AF%B7"}]},o=j(()=>t.approvalType&&s[t.approvalType]?s[t.approvalType]:Object.values(s).flat()),i=q([]);async function a(){if(!(i.value.length>0))try{i.value=await Vw()}catch(c){console.error("[ApprovalCard] 加载审批关键词失败:",c)}}nt(()=>{a()});async function r(c){if(c.url){await n(c.url);return}try{const d=i.value.find(l=>l.template_name===t.approvalType||l.keyword===c.name);if(d)if(d.type==="jump"){const l=await jw(d.template_id);await n(l.url)}else Te("该功能正在开发中");else Te(`${c.name} — 审批模板配置中,请稍后`)}catch(d){console.error("[ApprovalCard] 打开审批失败:",d),Te("打开审批失败,请重试")}}return(c,d)=>{const l=It;return k(),A("div",k0,[g("div",T0,[g("div",A0,[E(l,{name:"orders-o",size:"16",color:"#07c160"}),d[0]||(d[0]=g("span",{class:"approval-card-inline__title"},"审批快捷入口",-1)),e.approvalType?(k(),A("span",R0,V(e.approvalType),1)):le("",!0)]),d[1]||(d[1]=g("div",{class:"approval-card-inline__subtitle"}," 检测到您可能需要提交审批,请选择对应类型 ",-1))]),g("div",I0,[(k(!0),A(Se,null,tt(o.value,u=>(k(),A("div",{key:u.name,class:"approval-card-inline__option",onClick:f=>r(u)},[g("div",$0,[E(l,{name:u.icon,size:"20"},null,8,["name"])]),g("div",P0,[g("div",D0,V(u.name),1),g("div",B0,V(u.desc),1)]),E(l,{name:"arrow",class:"approval-card-inline__option-arrow"})],8,O0))),128))])])}}}),ct=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},L0=ct(N0,[["__scopeId","data-v-8b4eb13d"]]),M0={class:"byod-card__header"},F0={class:"byod-card__title-row"},V0={class:"byod-card__title"},j0={class:"byod-card__subtitle"},q0={class:"byod-card__info-section"},U0={class:"byod-card__info-row"},z0={class:"byod-card__info-value"},H0={key:0,class:"byod-card__info-row"},W0={class:"byod-card__info-value"},K0={key:0,class:"byod-card__notes"},G0={class:"byod-card__notes-title"},J0={class:"byod-card__notes-list"},X0={key:1,class:"byod-card__reason"},Y0={class:"byod-card__reason-text"},Q0={key:2,class:"byod-card__action"},Z0=["href"],e1=be({__name:"ByodSubsidyCard",props:{eligible:{type:Boolean,default:!1},hasSubsidy:{type:Boolean,default:!1},position:{default:""},applicationUrl:{default:""},notes:{default:()=>[]},reason:{default:""},matchedCategory:{default:""}},setup(e){const t=e,n=j(()=>t.eligible?"byod-card--eligible":t.applicationUrl?"byod-card--register":"byod-card--ineligible"),s=j(()=>t.eligible?"passed":t.applicationUrl?"edit":"close"),o=j(()=>t.eligible?"#07c160":t.applicationUrl?"#ff9800":"#969799"),i=j(()=>t.eligible?"自备电脑补贴资格":t.applicationUrl?"自备电脑登记":"自备电脑补贴资格"),a=j(()=>t.eligible?"byod-card__tag--eligible":t.applicationUrl?"byod-card__tag--register":"byod-card__tag--ineligible"),r=j(()=>t.eligible?"可申请":t.applicationUrl?"可登记":"不可申请"),c=j(()=>t.eligible?"您的岗位符合自备电脑补贴申请资格":t.applicationUrl?"您的岗位可进行自备电脑登记(无补贴)":"您的岗位暂不符合自备电脑补贴申请资格");function d(l){l.preventDefault();const u=l.currentTarget.href;u&&(window.location.href=u)}return(l,u)=>{const f=It;return k(),A("div",{class:ge(["byod-card",n.value])},[g("div",M0,[g("div",F0,[E(f,{name:s.value,size:"16",color:o.value},null,8,["name","color"]),g("span",V0,V(i.value),1),g("span",{class:ge(["byod-card__tag",a.value])},V(r.value),3)]),g("div",j0,V(c.value),1)]),g("div",q0,[g("div",U0,[u[0]||(u[0]=g("span",{class:"byod-card__info-label"},"当前岗位",-1)),g("span",z0,V(e.position||"未获取到岗位信息"),1)]),e.matchedCategory?(k(),A("div",H0,[u[1]||(u[1]=g("span",{class:"byod-card__info-label"},"资格类别",-1)),g("span",W0,V(e.matchedCategory),1)])):le("",!0)]),e.notes.length>0?(k(),A("div",K0,[g("div",G0,[E(f,{name:"info-o",size:"13",color:o.value},null,8,["color"]),g("span",null,V(e.eligible?"申请须知":"登记须知"),1)]),g("ul",J0,[(k(!0),A(Se,null,tt(e.notes,(h,_)=>(k(),A("li",{key:_,class:"byod-card__note-item"},V(h),1))),128))])])):le("",!0),!e.eligible&&e.reason?(k(),A("div",X0,[E(f,{name:"warning-o",size:"14",color:o.value},null,8,["color"]),g("span",Y0,V(e.reason),1)])):le("",!0),e.applicationUrl?(k(),A("div",Q0,[g("a",{href:e.applicationUrl,class:ge(["byod-card__btn",e.eligible?"byod-card__btn--eligible":"byod-card__btn--register"]),onClick:d},[E(f,{name:"arrow",size:"14",color:"#ffffff"}),g("span",null,V(e.eligible?"去申请":"去登记"),1)],10,Z0)])):le("",!0)],2)}}}),t1=ct(e1,[["__scopeId","data-v-2cb33311"]]),n1={class:"contact-card"},s1={class:"contact-card__header"},o1=["src"],i1={key:1},a1={class:"contact-card__name-row"},r1={class:"contact-card__name"},l1={class:"contact-card__dept"},c1={class:"contact-card__body"},u1={class:"contact-card__info-item"},d1={class:"contact-card__info-value contact-card__info-value--highlight"},f1={key:0,class:"contact-card__info-item"},h1={class:"contact-card__info-value"},p1={key:1,class:"contact-card__info-item"},m1={class:"contact-card__info-label"},_1={class:"contact-card__info-value"},g1=be({__name:"ContactCard",props:{contact:{}},setup(e){const t=e,n=j(()=>t.contact.name?t.contact.name.charAt(0):"?"),s=j(()=>{const c=["gradient-1","gradient-2","gradient-3","gradient-4","gradient-5"];if(!t.contact.name)return c[0];const d=t.contact.name.charCodeAt(0);return c[d%c.length]}),o=j(()=>t.contact.gender==="female"?"♀":"♂"),i=j(()=>t.contact.gender==="female"?"gender-female":"gender-male"),a=j(()=>t.contact.business_category==="行政-物业"?"办公地点":"服务区域");function r(){const c=t.contact.wecom_userid;if(!c){Te("暂时无法发起聊天,请联系管理员");return}const d=window.wx;if(!d||!d.invoke){Te("暂时无法发起聊天,请联系管理员");return}try{d.invoke("openEnterpriseChat",{userids:c,chatTitle:t.contact.name},l=>{l&&l.err_msg&&l.err_msg!=="openEnterpriseChat:ok"&&(console.error("[ContactCard] openEnterpriseChat 失败:",l.err_msg),Te("暂时无法发起聊天,请联系管理员"))})}catch(l){console.error("[ContactCard] openEnterpriseChat 调用异常:",l),Te("暂时无法发起聊天,请联系管理员")}}return(c,d)=>(k(),A("div",n1,[g("div",s1,[g("div",{class:ge(["contact-card__avatar",s.value])},[e.contact.avatar_url?(k(),A("img",{key:0,src:e.contact.avatar_url,alt:"",class:"contact-card__avatar-img"},null,8,o1)):(k(),A("span",i1,V(n.value),1))],2),g("div",a1,[g("div",r1,[je(V(e.contact.name)+" ",1),g("span",{class:ge(["contact-card__gender",i.value])},V(o.value),3)]),g("div",l1,V(e.contact.department)+" · "+V(e.contact.position),1)]),d[0]||(d[0]=g("span",{class:"contact-card__badge"},"员工名片",-1))]),g("div",c1,[g("div",u1,[d[1]||(d[1]=g("span",{class:"contact-card__info-label"},"负责业务",-1)),g("span",d1,V(e.contact.responsibility),1)]),e.contact.extension?(k(),A("div",f1,[d[2]||(d[2]=g("span",{class:"contact-card__info-label"},"分机号",-1)),g("span",h1,V(e.contact.extension),1)])):le("",!0),e.contact.service_area?(k(),A("div",p1,[g("span",m1,V(a.value),1),g("span",_1,V(e.contact.service_area),1)])):le("",!0)]),g("div",{class:"contact-card__footer"},[g("button",{class:"contact-card__action-btn",onClick:r},[...d[3]||(d[3]=[g("span",{class:"contact-card__action-icon"},"💬",-1),g("span",null,"联系TA",-1)])])])]))}}),v1=ct(g1,[["__scopeId","data-v-4fed3877"]]),y1={key:0,class:"message-bubble message-bubble--approval-card"},b1={key:1,class:"message-bubble message-bubble--byod-card"},w1={key:2,class:"message-bubble message-bubble--contact-card"},S1={key:3,class:"message-bubble message-bubble--system"},E1={class:"message-bubble__system-text"},C1={key:0,class:"message-bubble__sender"},x1={key:0,src:c0,class:"message-bubble__ai-avatar",alt:"Duckula"},k1={class:"message-bubble__sender-name"},T1={class:"reply-quote__text"},A1={class:"reply-quote__sender"},R1={key:1,class:"message-bubble__text",style:{"white-space":"pre-wrap"}},I1={class:"message-bubble__text",style:{"white-space":"pre-wrap"}},O1={key:0,class:"ai-options"},$1=["onClick"],P1=["src","alt"],D1={key:1,class:"media-card"},B1={class:"media-card__info"},N1={key:0,class:"media-card__name"},L1=["href"],M1={class:"media-card__info"},F1={class:"media-card__label"},V1={key:0,class:"media-card__size"},j1={key:1,class:"media-card"},q1={class:"media-card__info"},U1={class:"media-card__label"},z1={key:0,class:"media-card__size"},H1={key:5,class:"media-card"},W1={class:"media-card__icon"},K1={class:"media-card__info"},G1={class:"media-card__label"},J1={key:0,class:"media-card__name"},X1={key:1,class:"media-card__size"},Y1={key:6,class:"message-bubble__actions"},Q1=be({__name:"MessageBubble",props:{msg:{}},emits:["scrollToMessage"],setup(e){const t=e,n=$t(),{copy:s}=y0(),o=q(!1),i=q(!1);async function a(){try{await s(t.msg.content),i.value=!0,Te("已复制"),setTimeout(()=>{i.value=!1},1500)}catch(x){console.error("复制失败:",x)}}const r=j(()=>{const x=[`message-bubble--${t.msg.message_type}`];return t.msg.status==="sending"?x.push("message-bubble--sending"):t.msg.status==="failed"&&x.push("message-bubble--failed"),t.msg.message_type==="ai"&&c.value&&x.push("message-bubble--thinking"),x.join(" ")}),c=j(()=>{if(t.msg.message_type!=="ai")return!1;const x=t.msg.content||"";return x.startsWith("正在思考")||x.startsWith("仍在思考")}),d=j(()=>`message-bubble__content--${t.msg.message_type}`),l=j(()=>t.msg.message_type==="employee"?"message-bubble__time--right":"message-bubble__time--left"),u=j(()=>t.msg.message_type==="agent"?t.msg.sender_name||"IT坐席":t.msg.message_type==="ai"?"Duckula(达寇拉)":t.msg.sender_name),f=j(()=>({image:"🖼️",voice:"🎤",video:"🎬",file:"📎",location:"📍"})[t.msg.msg_type||""]||"📄"),h=j(()=>({image:"图片消息",voice:"语音消息",video:"视频消息",file:"文件消息",location:"位置消息"})[t.msg.msg_type||""]||"媒体消息"),_=j(()=>t.msg.reply_to_id?"...":""),m=j(()=>(t.msg.reply_to_id,""));function p(x){if(!x)return"";const b=new Date(x),I=b.getHours().toString().padStart(2,"0"),D=b.getMinutes().toString().padStart(2,"0");return`${I}:${D}`}function v(x){return x<1024?`${x} B`:x<1024*1024?`${(x/1024).toFixed(1)} KB`:`${(x/(1024*1024)).toFixed(1)} MB`}function C(){var b;const x=t.msg.media_url||((b=t.msg.extra_data)==null?void 0:b.pic_url);x&&window.open(x,"_blank")}function R(x){n.sendOptionSelect(x.value,x.label||x.value)}return(x,b)=>{var I,D,K,M,F,B,O,Q,Z,Ce,he,ae,de,xe,we,oe,ne,ie,Ae,Y;return e.msg.msg_type==="approval_card"?(k(),A("div",y1,[E(L0,{"approval-type":((I=e.msg.extra_data)==null?void 0:I.approval_type)||""},null,8,["approval-type"])])):e.msg.msg_type==="byod_card"?(k(),A("div",b1,[E(t1,{eligible:((K=(D=e.msg.extra_data)==null?void 0:D.byod_result)==null?void 0:K.eligible)??!1,"has-subsidy":((F=(M=e.msg.extra_data)==null?void 0:M.byod_result)==null?void 0:F.has_subsidy)??!1,position:((O=(B=e.msg.extra_data)==null?void 0:B.byod_result)==null?void 0:O.position)??"","application-url":((Z=(Q=e.msg.extra_data)==null?void 0:Q.byod_result)==null?void 0:Z.application_url)??"",notes:((he=(Ce=e.msg.extra_data)==null?void 0:Ce.byod_result)==null?void 0:he.notes)??[],reason:((de=(ae=e.msg.extra_data)==null?void 0:ae.byod_result)==null?void 0:de.reason)??"","matched-category":((we=(xe=e.msg.extra_data)==null?void 0:xe.byod_result)==null?void 0:we.matched_category)??""},null,8,["eligible","has-subsidy","position","application-url","notes","reason","matched-category"])])):e.msg.msg_type==="contact_card"?(k(),A("div",w1,[E(v1,{contact:((oe=e.msg.extra_data)==null?void 0:oe.contact)??{}},null,8,["contact"])])):e.msg.message_type==="system"?(k(),A("div",S1,[g("span",E1,V(e.msg.content),1)])):(k(),A("div",{key:4,class:ge(["message-bubble",r.value]),onMouseenter:b[2]||(b[2]=ce=>o.value=!0),onMouseleave:b[3]||(b[3]=ce=>o.value=!1)},[e.msg.message_type!=="employee"?(k(),A("div",C1,[e.msg.message_type==="ai"?(k(),A("img",x1)):le("",!0),g("span",k1,V(u.value),1)])):le("",!0),g("div",{class:ge(["message-bubble__content",d.value])},[e.msg.reply_to_id&&_.value?(k(),A("div",{key:0,class:"reply-quote",onClick:b[0]||(b[0]=Dn(ce=>x.$emit("scrollToMessage",e.msg.reply_to_id),["stop"]))},[b[4]||(b[4]=g("div",{class:"reply-quote__bar"},null,-1)),g("div",T1,[g("span",A1,V(m.value),1),je(" "+V(_.value),1)])])):le("",!0),!e.msg.msg_type||e.msg.msg_type==="text"?(k(),A("p",R1,V(e.msg.content),1)):e.msg.msg_type==="ai_structured"?(k(),A(Se,{key:2},[g("p",I1,V(e.msg.content),1),(ie=(ne=e.msg.extra_data)==null?void 0:ne.options)!=null&&ie.length?(k(),A("div",O1,[(k(!0),A(Se,null,tt(e.msg.extra_data.options,(ce,S)=>(k(),A("button",{key:S,class:"ai-options__btn",onClick:Dn(L=>R(ce),["stop"])},V(ce.label||ce.value),9,$1))),128))])):le("",!0)],64)):e.msg.msg_type==="image"?(k(),A("div",{key:3,class:"image-message",onClick:C},[e.msg.media_url||(Ae=e.msg.extra_data)!=null&&Ae.pic_url?(k(),A("img",{key:0,src:e.msg.media_url||((Y=e.msg.extra_data)==null?void 0:Y.pic_url),alt:e.msg.file_name||"图片",class:"image-message__thumbnail",loading:"lazy"},null,8,P1)):(k(),A("div",D1,[b[6]||(b[6]=g("div",{class:"media-card__icon"},"🖼️",-1)),g("div",B1,[b[5]||(b[5]=g("span",{class:"media-card__label"},"图片消息",-1)),e.msg.file_name?(k(),A("span",N1,V(e.msg.file_name),1)):le("",!0)])]))])):e.msg.msg_type==="file"?(k(),A(Se,{key:4},[e.msg.media_url?(k(),A("a",{key:0,href:e.msg.media_url,target:"_blank",class:"media-card media-card--link",onClick:b[1]||(b[1]=Dn(()=>{},["stop"]))},[b[7]||(b[7]=g("div",{class:"media-card__icon"},"📎",-1)),g("div",M1,[g("span",F1,V(e.msg.file_name||"文件消息"),1),e.msg.file_size?(k(),A("span",V1,V(v(e.msg.file_size)),1)):le("",!0)])],8,L1)):(k(),A("div",j1,[b[8]||(b[8]=g("div",{class:"media-card__icon"},"📎",-1)),g("div",q1,[g("span",U1,V(e.msg.file_name||"文件消息"),1),e.msg.file_size?(k(),A("span",z1,V(v(e.msg.file_size)),1)):le("",!0)])]))],64)):(k(),A("div",H1,[g("div",W1,V(f.value),1),g("div",K1,[g("span",G1,V(h.value),1),e.msg.file_name?(k(),A("span",J1,V(e.msg.file_name),1)):le("",!0),e.msg.file_size?(k(),A("span",X1,V(v(e.msg.file_size)),1)):le("",!0)])])),o.value?(k(),A("div",Y1,[!e.msg.msg_type||e.msg.msg_type==="text"?(k(),A("button",{key:0,class:"action-btn",title:"复制消息",onClick:Dn(a,["stop"])},V(i.value?"✓":"📋"),1)):le("",!0)])):le("",!0)],2),g("div",{class:ge(["message-bubble__time",l.value])},V(p(e.msg.created_at)),3)],34))}}}),Z1=ct(Q1,[["__scopeId","data-v-9160dbf4"]]);async function ma(e,t="paste"){const n=new FormData;if(e instanceof Blob&&!(e instanceof File)){const s=`${t}_${Date.now()}.png`;n.append("file",e,s)}else n.append("file",e);return await eS(n)}async function eS(e,t=3){for(let n=0;n<=t;n++)try{return await Ve.post("/upload",e,{headers:{"Content-Type":void 0},timeout:6e4})}catch(s){if(n===t)throw s;const o=1e3*Math.pow(2,n);console.warn(`[Upload H5] 上传失败,${o/1e3}秒后重试(第 ${n+1}/${t} 次)`),await new Promise(i=>setTimeout(i,o))}throw new Error("上传失败:已达最大重试次数")}const $c="https://res.wx.qq.com/open/js/jweixin-1.2.0.js",tS=59e3,Pc=8e3,nS=1e4,Dc=!1,Bc=["startRecord","stopRecord","translateVoice","checkJsApi"];function sS(){const e=pt({isReady:!1,isRecording:!1,isTranslating:!1,error:null});let t=!1,n=null;function s(){return new Promise((d,l)=>{if(typeof window.wx<"u"){console.log("[WecomVoice] JS-SDK 已加载(window.wx 存在),跳过动态加载"),d();return}console.log("[WecomVoice] 动态加载 JS-SDK 脚本:",$c);const u=setTimeout(()=>{f.onload=null,f.onerror=null,l(new Error("加载企微 JS-SDK 脚本超时(10秒),请检查网络连接"))},nS),f=document.createElement("script");f.src=$c,f.async=!0,f.onload=()=>{clearTimeout(u),typeof window.wx<"u"?(console.log("[WecomVoice] JS-SDK 脚本加载成功,window.wx 已挂载"),d()):(console.error("[WecomVoice] JS-SDK 脚本已加载,但 window.wx 未挂载"),l(new Error("企微 JS-SDK 脚本已加载,但 window.wx 未挂载")))},f.onerror=()=>{clearTimeout(u),console.error("[WecomVoice] JS-SDK 脚本加载失败"),l(new Error("加载企微 JS-SDK 脚本失败,请检查网络连接"))},document.head.appendChild(f)})}function o(d){return new Promise((l,u)=>{const f=window.wx;if(!f||typeof f.config!="function"){const m="wx.config 不可用,JS-SDK 未正确加载";console.error("[WecomVoice]",m),e.isReady=!1,e.error=m,u(new Error(m));return}let h=!1;const _=setTimeout(()=>{h||(h=!0,e.isReady=!1,e.error=`wx.config 鉴权超时(${Pc/1e3}秒无响应),可能是签名无效或企微环境异常`,console.error("[WecomVoice]",e.error),u(new Error(e.error)))},Pc);f.ready(()=>{h||(h=!0,clearTimeout(_),e.isReady=!0,console.log("[WecomVoice] wx.config 鉴权成功(ready 回调触发)"),l())}),f.error(m=>{h||(h=!0,clearTimeout(_),e.isReady=!1,e.error=`JS-SDK 鉴权失败: ${m.errMsg}`,console.error("[WecomVoice] wx.config 鉴权失败:",m.errMsg),u(new Error(e.error)))}),console.log("[WecomVoice] 调用 wx.config:",{appId:d.corp_id,timestamp:d.timestamp,debug:Dc,jsApiList:Bc}),f.config({beta:!0,debug:Dc,appId:d.corp_id,timestamp:d.timestamp,nonceStr:d.nonce_str,signature:d.signature,jsApiList:Bc})})}async function i(){if(t){console.log("[WecomVoice] 已初始化,跳过");return}console.log("[WecomVoice] ===== 开始初始化 =====");try{console.log("[WecomVoice] Step 1/3: 加载 JS-SDK 脚本"),await s(),console.log("[WecomVoice] Step 2/3: 获取签名配置");const d=window.location.href.split("#")[0];console.log("[WecomVoice] 签名 URL:",d);const l=await zf(d);console.log("[WecomVoice] 签名配置:",{corp_id:l.corp_id,agent_id:l.agent_id,timestamp:l.timestamp,nonce_str:l.nonce_str,signature:l.signature?l.signature.substring(0,10)+"...":"(空)"}),console.log("[WecomVoice] Step 3/3: wx.config 鉴权"),await o(l),window.wx&&typeof window.wx.checkJsApi=="function"&&window.wx.checkJsApi({jsApiList:["startRecord","stopRecord","translateVoice"],success:u=>{console.log("[WecomVoice] checkJsApi 结果:",JSON.stringify(u))},fail:u=>{console.warn("[WecomVoice] checkJsApi 失败(不阻塞):",u)}}),t=!0,e.error=null,console.log("[WecomVoice] ===== 初始化完成 =====")}catch(d){throw e.error=(d==null?void 0:d.message)||"JS-SDK 初始化失败",console.error("[WecomVoice] ===== 初始化失败 =====",e.error),d}}async function a(){if(e.isRecording){console.log("[WecomVoice] 已在录音中,跳过");return}e.isReady||(console.log("[WecomVoice] SDK 未就绪,先调用 init()..."),await i());const d=window.wx;if(!d||typeof d.startRecord!="function"){const l="wx.startRecord 不可用,JS-SDK 未正确初始化";throw console.error("[WecomVoice]",l),e.error=l,new Error(l)}return new Promise((l,u)=>{let f=!1;const h=setTimeout(()=>{f||(f=!0,n&&(clearTimeout(n),n=null),e.error="录音启动超时,当前企微版本可能不支持语音录制接口",console.error("[WecomVoice] startRecord 15秒无回调,可能不支持此接口"),u(new Error(e.error)))},15e3);n=setTimeout(()=>{e.isRecording&&(console.log("[WecomVoice] 59秒自动停止录音"),r().catch(_=>{e.error=`自动停止录音失败: ${(_==null?void 0:_.message)||"未知错误"}`}))},tS),console.log("[WecomVoice] 调用 wx.startRecord..."),d.startRecord({success:()=>{f||(f=!0,clearTimeout(h),e.isRecording=!0,e.error=null,console.log("[WecomVoice] 录音开始成功(startRecord success 回调)"),l())},fail:_=>{f||(f=!0,clearTimeout(h),n&&(clearTimeout(n),n=null),e.error=`开始录音失败: ${_.errMsg}`,console.error("[WecomVoice] 录音开始失败:",_.errMsg),u(new Error(e.error)))},cancel:()=>{f||(f=!0,clearTimeout(h),n&&(clearTimeout(n),n=null),e.error="用户拒绝了录音权限",console.warn("[WecomVoice] 用户拒绝录音权限"),u(new Error(e.error)))}})})}async function r(){const d=window.wx;return n&&(clearTimeout(n),n=null),e.isRecording?(console.log("[WecomVoice] 调用 wx.stopRecord..."),new Promise((l,u)=>{d.stopRecord({success:f=>{e.isRecording=!1;const h=f.localId;if(console.log("[WecomVoice] 停止录音成功,localId:",h),!h){u(new Error("未获取到录音 localId"));return}e.isTranslating=!0,console.log("[WecomVoice] 调用 wx.translateVoice..."),d.translateVoice({localId:h,isShowProgressTips:1,success:_=>{e.isTranslating=!1;const m=(_.translateResult||"").trim();console.log("[WecomVoice] 语音转文字成功:",m),l(m)},fail:_=>{e.isTranslating=!1,e.error=`语音转文字失败: ${_.errMsg}`,console.error("[WecomVoice] 语音转文字失败:",_.errMsg),u(new Error(e.error))}})},fail:f=>{e.isRecording=!1,e.error=`停止录音失败: ${f.errMsg}`,console.error("[WecomVoice] 停止录音失败:",f.errMsg),u(new Error(e.error))}})})):(console.log("[WecomVoice] 未在录音中,跳过 stopAndTranslate"),"")}function c(){const d=navigator.userAgent,l=/wxwork/i.test(d),u=/Mobile|Android|iPhone|iPad|iPod/i.test(d);return l&&u}return{state:e,init:i,startRecording:a,stopAndTranslate:r,isSupported:c}}const Rn=16e3;function oS(e){let t=0;for(const o of e)t+=o.length;const n=new Float32Array(t);let s=0;for(const o of e)n.set(o,s),s+=o.length;return n}function iS(e,t,n){if(t===n)return e;const s=t/n,o=Math.round(e.length/s),i=new Float32Array(o);for(let a=0;a<o;a++){const r=a*s,c=Math.floor(r),d=r-c;c+1<e.length?i[a]=e[c]*(1-d)+e[c+1]*d:i[a]=e[c]||0}return i}function aS(e){const t=new ArrayBuffer(e.length*2),n=new DataView(t);for(let s=0;s<e.length;s++){const o=Math.max(-1,Math.min(1,e[s])),i=o<0?o*32768:o*32767;n.setInt16(s*2,i,!0)}return t}function rS(){const e=q(!1);let t=null,n=null,s=null,o=null,i=[],a=Rn,r=!1;async function c(){var u;if(e.value){console.warn("[AudioRecorder] 已在录音中,跳过 start()");return}r=!1,i=[];try{if(!((u=navigator.mediaDevices)!=null&&u.getUserMedia))throw new Error("当前浏览器不支持录音功能,请使用 Chrome 或 Edge");n=await navigator.mediaDevices.getUserMedia({audio:{channelCount:1,sampleRate:Rn,echoCancellation:!0,noiseSuppression:!0}});const f=window.AudioContext||window.webkitAudioContext;if(!f)throw new Error("当前浏览器不支持 Web Audio API");try{t=new f({sampleRate:Rn})}catch{t=new f}a=t.sampleRate,s=t.createMediaStreamSource(n),o=t.createScriptProcessor(4096,1,1),o.onaudioprocess=h=>{if(r)return;const _=h.inputBuffer.getChannelData(0);i.push(new Float32Array(_))},s.connect(o),o.connect(t.destination),e.value=!0,console.log(`[AudioRecorder] 录音开始(native=${a}Hz, target=${Rn}Hz)`)}catch(f){l();const h=f;throw(h==null?void 0:h.name)==="NotAllowedError"||(h==null?void 0:h.name)==="SecurityError"?new Error("麦克风权限被拒绝,请在浏览器设置中允许使用麦克风"):(h==null?void 0:h.name)==="NotFoundError"||(h==null?void 0:h.name)==="OverconstrainedError"?new Error("未找到麦克风设备,请检查设备连接"):(h==null?void 0:h.name)==="NotReadableError"?new Error("麦克风被其他程序占用,请关闭后重试"):h instanceof Error?h:new Error((h==null?void 0:h.message)||"录音启动失败")}}function d(){r=!0,l();const u=oS(i),f=a!==Rn?iS(u,a,Rn):u,h=aS(f),_=new Blob([h],{type:"audio/pcm"});return console.log(`[AudioRecorder] 录音停止,PCM 数据: ${_.size} bytes`+(a!==Rn?` (重采样 ${a}→${Rn}Hz)`:"")),e.value=!1,i=[],_}function l(){if(o){try{o.disconnect()}catch{}o.onaudioprocess=null,o=null}if(s){try{s.disconnect()}catch{}s=null}n&&(n.getTracks().forEach(u=>u.stop()),n=null),t&&(t.close().catch(()=>{}),t=null)}return{isRecording:e,start:c,stop:d}}async function lS(e){const t=new FormData;t.append("audio",e,"recording.pcm");const n=await Ve.post("/voice/asr",t,{headers:{"Content-Type":void 0},timeout:3e4});return{text:(n==null?void 0:n.text)||"",error:n==null?void 0:n.error}}const cS="/h5/v20260806f/assets/agent-avatar-CAhN4NNH.png",uS={class:"input-bar"},dS={class:"input-bar__row"},fS={key:0,class:"emoji-panel"},hS={class:"emoji-panel__grid"},pS=["onClick"],mS={key:1,class:"input-bar__voice-status"},_S={key:0},gS={key:1},vS={class:"input-bar__input-row"},yS={class:"input-bar__controls"},bS=["title","disabled"],wS=["disabled","title","aria-label"],SS=["src"],ES={key:1,class:"input-bar__guide"},CS=be({__name:"InputBar",emits:["call-agent"],setup(e,{emit:t}){function n(N){return N?typeof N=="string"?N:Array.isArray(N)?N.map(z=>z.loc&&z.msg?`${z.loc.slice(1).join(".")}: ${z.msg}`:z.msg?z.msg:JSON.stringify(z)).join("; "):typeof N=="object"?JSON.stringify(N):String(N):""}const s=$t(),o=t,i=["电脑无法启动","网络无法连接","多人不能上网","无法上网","开不了机","连不上网","全部断网"],a=j(()=>{const N=s.currentConversation;return!N||N.status==="resolved"?"hidden":f()?"urgent":s.canCallAgent?"active":"disabled"}),r=j(()=>a.value!=="hidden"),c=j(()=>({"call-agent-btn--disabled":a.value==="disabled","call-agent-btn--active":a.value==="active","call-agent-btn--urgent":a.value==="urgent"})),d=j(()=>{const N=s.currentConversation;return N?f()?"urgent":N.status==="serving"?"online":N.status==="waiting"?"waiting":N.status==="resolved"?"end":s.canCallAgent?"online":"offline":"offline"}),l=j(()=>({online:"在线",urgent:"紧急",waiting:"等待中",end:"已结单",offline:"离线"})[d.value]),u=j(()=>a.value==="urgent"?"检测到紧急问题,直接呼叫人工坐席":a.value==="active"?"点击呼叫人工坐席":"再多描述几句话即可激活");function f(){var z;const N=s.messages.filter(y=>y.message_type==="employee").slice(-5);for(const y of N){const w=((z=y.content)==null?void 0:z.toLowerCase())||"";for(const T of i)if(w.includes(T.toLowerCase()))return!0}return!1}function h(){a.value!=="disabled"&&o("call-agent")}const _=q(""),m=q(null),p=q(null),v=j(()=>_.value.trim().length>0&&!s.loading&&s.isLoggedIn),C=q(!1),R=q(!1),{state:x,init:b,startRecording:I,stopAndTranslate:D,isSupported:K}=sS(),M=j(()=>{if(K())return"wecom";if(navigator.mediaDevices&&typeof navigator.mediaDevices.getUserMedia=="function")return"baidu";const N=navigator.userAgent,z=/wxwork/i.test(N),y=/Mobile|Android|iPhone|iPad|iPod/i.test(N),w=/Macintosh|Mac OS X/i.test(N);return z&&!y&&!w?"baidu":"none"}),F=j(()=>M.value!=="none"),B=rS(),O=j(()=>B.isRecording.value),Q=q(!1),Z=j(()=>M.value==="wecom"?x.isRecording:M.value==="baidu"?O.value||Q.value:!1);function Ce(N){return N.length>0&&!N.endsWith(" ")&&!N.endsWith(`
|
||
`)}nt(()=>{document.addEventListener("paste",he),document.addEventListener("keydown",L),K()&&b().catch(N=>{console.warn("[InputBar] 企微 JS-SDK 初始化失败:",N)})}),Ln(()=>{document.removeEventListener("paste",he),document.removeEventListener("keydown",L),B.isRecording.value&&B.stop()});async function he(N){var w;const z=N.target;if(z.tagName==="TEXTAREA"||z.isContentEditable)return;const y=(w=N.clipboardData)==null?void 0:w.items;if(y){for(const T of Array.from(y))if(T.kind==="file"){N.preventDefault();const U=T.getAsFile();if(!U)continue;U.type.startsWith("image/")?await ne(U):await ie(U);return}}}const ae=["😀","😃","😄","😁","😆","😅","🤣","😂","🙂","😊","😇","🥰","😍","🤩","😘","😗","😚","😙","😋","😛","😜","🤪","😝","🤑","🤗","🤭","🤫","🤔","🤐","🤨","😐","😑","😶","😏","😒","🙄","😬","😮","🤯","😲","😳","🥺","😢","😭","😤","😠","😡","🤬","👍","👎","👏","🙌","🤝","💪","✌️","🤞","❤️","🧡","💛","💚","💙","💜","💯","✅"];function de(N){_.value+=N,R.value=!1,Xe(()=>{var y,w;const z=(w=(y=m.value)==null?void 0:y.$el)==null?void 0:w.querySelector("textarea");z==null||z.focus()})}function xe(N){/Android|iPhone|iPad|iPod/i.test(navigator.userAgent)||N.shiftKey||(N.preventDefault(),we())}async function we(){const N=_.value.trim();!N||s.loading||(_.value="",await s.sendNewMessage(N))}async function oe(N){var y;const z=(y=N.clipboardData)==null?void 0:y.items;if(z){for(const w of Array.from(z))if(w.kind==="file"){N.preventDefault();const T=w.getAsFile();if(!T)continue;T.type.startsWith("image/")?await ne(T):await ie(T);return}}}async function ne(N){var z,y;try{Te("图片上传中...");const w=await ma(N),T=N instanceof File?N.name:"截图";await s.sendNewMessage(`[图片] ${T}`,{msg_type:"image",media_url:w.url,file_name:w.filename,file_size:w.file_size}),Te("图片发送成功")}catch(w){console.error("图片上传失败:",w),Te(n((y=(z=w==null?void 0:w.response)==null?void 0:z.data)==null?void 0:y.detail)||(w==null?void 0:w.message)||"图片上传失败,请重试")}}async function ie(N){var z,y;try{const w=N instanceof File?N.name:"文件";Te(`文件上传中: ${w}`);const T=await ma(N);await s.sendNewMessage(`[文件] ${T.filename}`,{msg_type:"file",media_url:T.url,file_name:T.filename,file_size:T.file_size}),Te("文件发送成功")}catch(w){console.error("文件上传失败:",w),Te(n((y=(z=w==null?void 0:w.response)==null?void 0:z.data)==null?void 0:y.detail)||(w==null?void 0:w.message)||"文件上传失败,请重试")}}async function Ae(N){const z=N.target,y=z.files;if(!(!y||y.length===0)){for(const w of Array.from(y))try{Te(`正在上传: ${w.name}`);const T=await ma(w);Te(`${w.name} 上传成功`),console.log("[InputBar] 文件上传成功:",T.url)}catch(T){console.error("文件上传失败:",T),Te(`${w.name} 上传失败`)}z.value=""}}function Y(){R.value=!R.value}function ce(){p.value&&(p.value.accept="",p.value.multiple=!0,p.value.click())}async function S(N){if(N==null||N.preventDefault(),N==null||N.stopPropagation(),M.value!=="none"){if(M.value==="wecom")try{if(x.isRecording){const z=await D();z?(Ce(_.value)&&(_.value+=" "),_.value+=z,Te("语音识别完成")):Te("未识别到语音内容")}else await I(),Te("正在录音,点击停止")}catch(z){const y=x.error||(z==null?void 0:z.message)||"语音识别失败";Te(y),console.error("[InputBar] 企微语音识别错误:",z)}else if(M.value==="baidu")if(O.value){const z=B.stop();if(z.size<1600){Te("录音过短,请说更多内容");return}Q.value=!0;try{const y=await lS(z);y.error?Te(y.error):y.text?(Ce(_.value)&&(_.value+=" "),_.value+=y.text,Te("语音识别完成")):Te("未识别到语音内容")}catch(y){Te((y==null?void 0:y.message)||"语音识别失败"),console.error("[InputBar] 百度ASR识别错误:",y)}finally{Q.value=!1}}else try{await B.start(),Te("开始语音输入")}catch(z){Te((z==null?void 0:z.message)||"录音启动失败"),console.error("[InputBar] 百度录音启动失败:",z)}}}function L(N){if(N.ctrlKey&&(N.key==="d"||N.key==="D")){if(N.preventDefault(),!F.value)return;S()}}function H(N){C.value=!0;const z=N.clientY,y=N.target.closest(".input-bar"),w=y?y.offsetHeight:100;function T(G){if(!C.value)return;const W=z-G.clientY;let se=w+W;se=Math.max(100,Math.min(400,se)),y&&(y.style.height=`${se}px`,y.style.flexShrink="0")}function U(){C.value=!1,document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",U),document.body.style.cursor="",document.body.style.userSelect=""}document.body.style.cursor="row-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",T),document.addEventListener("mouseup",U)}return(N,z)=>{const y=xr,w=Ss;return k(),A("div",uS,[g("div",{class:"input-bar__resize-handle",onMousedown:H},[...z[2]||(z[2]=[g("div",{class:"input-bar__resize-track"},null,-1)])],32),g("div",dS,[g("div",{class:"input-bar__toolbar"},[g("button",{class:"input-bar__tool-btn",title:"表情",onClick:Y},[...z[3]||(z[3]=[g("span",null,"😊",-1)])]),g("button",{class:"input-bar__tool-btn",title:"文件",onClick:ce},[...z[4]||(z[4]=[g("span",null,"📎",-1)])]),z[5]||(z[5]=g("span",{class:"input-bar__shortcut-hint"},"截图->粘贴:Alt+Shift+A-Ctrl+V ---> Ctrl+V",-1))]),R.value?(k(),A("div",fS,[g("div",hS,[(k(),A(Se,null,tt(ae,T=>g("button",{key:T,class:"emoji-panel__item",onClick:U=>de(T)},V(T),9,pS)),64))])])):le("",!0),Z.value&&M.value==="baidu"?(k(),A("div",mS,[Q.value?(k(),A("span",_S,"正在识别语音...")):(k(),A("span",gS,"正在语音输入... 点击⏹停止"))])):le("",!0),g("div",vS,[E(y,{ref_key:"inputFieldRef",ref:m,modelValue:_.value,"onUpdate:modelValue":z[0]||(z[0]=T=>_.value=T),class:"input-bar__field",placeholder:"请输入消息...",type:"textarea",autosize:{minHeight:54,maxHeight:200},rows:"3",disabled:!Re(s).isLoggedIn,onKeydown:ld(xe,["enter"]),onPaste:oe},null,8,["modelValue","disabled"]),g("div",yS,[F.value?(k(),A("button",{key:0,class:ge(["input-bar__voice-btn",{"input-bar__voice-btn--recording":Z.value}]),title:Q.value?"正在识别...":Z.value?"点击停止":"语音输入 (Ctrl+D)",disabled:Q.value,onMousedown:Dn(S,["prevent"]),onClick:Dn(S,["prevent"]),onTouchstart:Dn(S,["prevent"])},V(Q.value?"⏳":Z.value?"⏹":"🎤"),43,bS)):le("",!0),r.value?(k(),A("button",{key:1,class:ge(["call-agent-btn",c.value]),disabled:a.value==="disabled",onClick:h,title:u.value,"aria-label":`人工坐席(${l.value})`},[g("img",{class:"call-agent-btn__avatar",src:Re(cS),alt:"人工坐席"},null,8,SS)],10,wS)):le("",!0),E(w,{class:"input-bar__send-btn",type:"primary",size:"small",disabled:!v.value,loading:Re(s).loading,onClick:we},{default:Je(()=>[...z[6]||(z[6]=[je(" 发送 ",-1)])]),_:1},8,["disabled","loading"])])])]),R.value?(k(),A("div",{key:0,class:"emoji-panel__overlay",onClick:z[1]||(z[1]=T=>R.value=!1)})):a.value==="active"?(k(),A("div",ES," 请描述你遇到的问题,AI 助手会帮你分析 💡 ")):le("",!0),g("input",{ref_key:"fileInputRef",ref:p,type:"file",style:{display:"none"},onChange:Ae},null,544)])}}}),xS=ct(CS,[["__scopeId","data-v-11d0352d"]]),kS={key:0,class:"ts-flow"},TS={class:"ts-flow__path"},AS={class:"ts-flow__path-bar"},RS={class:"ts-flow__label"},IS={class:"ts-flow__card"},OS={key:0,class:"ts-flow__question"},$S={class:"ts-flow__question-header"},PS={class:"ts-flow__question-text"},DS={class:"ts-flow__options"},BS=["disabled"],NS=["disabled"],LS={key:1,class:"ts-flow__instruction"},MS={class:"ts-flow__instruction-header"},FS={class:"ts-flow__instruction-title"},VS={key:0,class:"ts-flow__instruction-steps"},jS={class:"ts-flow__sub-dot"},qS={class:"ts-flow__sub-label"},US={key:2,class:"ts-flow__waiting"},zS={class:"ts-flow__sync-status"},HS=be({__name:"TroubleshootFlow",setup(e){const t=$t(),n=q(!1),s=j(()=>t.troubleshootingSteps||[]),o=j(()=>t.troubleshootingTemplateName||"排查中"),i=j(()=>t.troubleshootingCurrentNode||null);function a(c){var d,l;if(!n.value){n.value=!0;try{i.value&&(i.value.status="done");const u=c==="yes"?(d=i.value)==null?void 0:d.yes_branch:(l=i.value)==null?void 0:l.no_branch;u&&(t.troubleshootingCurrentNode=u,u.status="current",u.type==="step"&&r(u)),console.log("[TroubleshootFlow] 用户选择:",c,"下一节点:",u==null?void 0:u.label)}finally{setTimeout(()=>{n.value=!1},500)}}}function r(c){const d=t.troubleshootingSteps;if(!d||d.length===0)return;const l=d.findIndex(u=>u.label===c.label);if(l>=0){const u=d.map((f,h)=>({...f,status:h<l?"done":h===l?"current":"pending"}));t.troubleshootingSteps=u}}return(c,d)=>{var l,u;return s.value.length>0?(k(),A("div",kS,[g("div",TS,[g("div",AS,[(k(!0),A(Se,null,tt(s.value,(f,h)=>(k(),A(Se,{key:h},[g("div",{class:ge(["ts-flow__step",`ts-flow__step--${f.status}`])},[g("span",{class:ge(["ts-flow__dot",`ts-flow__dot--${f.status}`])},[f.status==="done"?(k(),A(Se,{key:0},[je("✓")],64)):(k(),A(Se,{key:1},[je(V(h+1),1)],64))],2),g("span",RS,V(f.label),1)],2),h<s.value.length-1?(k(),A("span",{key:0,class:ge(["ts-flow__arrow",{"ts-flow__arrow--active":f.status==="done"}])},"→",2)):le("",!0)],64))),128))])]),g("div",IS,[i.value&&i.value.type==="decision"?(k(),A("div",OS,[g("div",$S,[d[2]||(d[2]=g("span",{class:"ts-flow__question-icon"},"❓",-1)),g("span",PS,V(i.value.label),1)]),g("div",DS,[g("button",{class:"ts-flow__option ts-flow__option--yes",onClick:d[0]||(d[0]=f=>a("yes")),disabled:n.value},[d[3]||(d[3]=g("span",{class:"ts-flow__option-icon"},"✅",-1)),g("span",null,V(((l=i.value.yes_branch)==null?void 0:l.label)||"是"),1)],8,BS),g("button",{class:"ts-flow__option ts-flow__option--no",onClick:d[1]||(d[1]=f=>a("no")),disabled:n.value},[d[4]||(d[4]=g("span",{class:"ts-flow__option-icon"},"❌",-1)),g("span",null,V(((u=i.value.no_branch)==null?void 0:u.label)||"否"),1)],8,NS)])])):i.value&&i.value.type==="step"?(k(),A("div",LS,[g("div",MS,[d[5]||(d[5]=g("span",{class:"ts-flow__instruction-icon"},"📋",-1)),g("span",FS,"正在执行:"+V(i.value.label),1)]),i.value.children&&i.value.children.length>0?(k(),A("div",VS,[(k(!0),A(Se,null,tt(i.value.children,(f,h)=>(k(),A("div",{key:f.id,class:ge(["ts-flow__sub-step",`ts-flow__sub-step--${f.status||"pending"}`])},[g("span",jS,V(h+1),1),g("span",qS,V(f.label),1)],2))),128))])):le("",!0),d[6]||(d[6]=g("div",{class:"ts-flow__instruction-hint"},[g("span",null,"💡 请按坐席指引操作,完成后坐席会推进到下一步")],-1))])):(k(),A("div",US,[...d[7]||(d[7]=[g("span",{class:"ts-flow__waiting-icon"},"⏳",-1),g("span",null,"坐席正在选择排查流程,请稍候...",-1)])])),g("div",zS,[d[8]||(d[8]=g("span",{class:"ts-flow__sync-dot"},null,-1)),g("span",null,"排查进度实时同步 · "+V(o.value),1)])])])):le("",!0)}}}),WS=ct(HS,[["__scopeId","data-v-5814bcf9"]]),Hf={primary_agent:"#3b82f6",collaborator:"#07C160",owner:"#FF9800",invitee:"transparent"};function Wf(){const e=$t(),t=Et(),n=j(()=>{var a;return((a=e.userInfo)==null?void 0:a.employee_id)||""}),s=j(()=>{var d;const a=e.currentConversation;if(!a)return[];const r=[];if(a.agent_name&&r.push({id:a.agent_id||"agent_primary",name:a.agent_name,avatar:"",department:"IT坐席",role:"primary_agent",joined:!0,isSelf:!1}),a.employee_name){const l=a.employee_id===n.value;r.push({id:a.employee_id,name:l?"我":a.employee_name,avatar:l&&((d=t.employeeInfo)==null?void 0:d.avatar)||"",department:"",role:"owner",joined:!0,isSelf:l})}const c=(e.participants||[]).slice().sort((l,u)=>l.joined!==u.joined?l.joined?-1:1:l.joined_at&&u.joined_at?new Date(l.joined_at).getTime()-new Date(u.joined_at).getTime():0);for(const l of c)r.push({id:l.id,name:l.name,avatar:l.avatar||"",department:l.department||"",role:"invitee",joined:l.joined??!1,isSelf:l.id===n.value,joinedAt:l.joined_at});return r}),o=j(()=>s.value.length),i=j(()=>s.value.some(a=>!a.joined));return{normalizedParticipants:s,totalCount:o,hasPending:i,currentUserId:n}}const KS={class:"participant-strip__count"},GS={class:"participant-strip__avatars"},JS=["src","alt","onError"],XS={key:1,class:"participant-strip__avatar-letter"},YS={key:0,class:"participant-strip__overflow"},QS={key:0,class:"participant-strip__badge-dot"},Nc=4,ZS=be({__name:"ParticipantStrip",setup(e){const t=$t(),n=q({}),{normalizedParticipants:s,totalCount:o,hasPending:i}=Wf(),a=j(()=>s.value.slice(0,Nc)),r=j(()=>Math.max(0,s.value.length-Nc));function c(l){return(l||"?").charAt(0)}function d(){t.participantPanelVisible=!0}return(l,u)=>(k(),A("div",{class:ge(["participant-strip",{"participant-strip--has-pending":Re(i)}]),onClick:d},[g("span",KS,V(Re(o))+"人在群",1),g("div",GS,[(k(!0),A(Se,null,tt(a.value,f=>(k(),A("div",{key:f.id,class:ge(["participant-strip__avatar",{"participant-strip__avatar--self":f.isSelf}]),style:ln({borderColor:Re(Hf)[f.role]})},[f.avatar&&!n.value[f.id]?(k(),A("img",{key:0,src:f.avatar,alt:f.name,class:"participant-strip__avatar-img",onError:h=>n.value[f.id]=!0},null,40,JS)):(k(),A("span",XS,V(c(f.name)),1))],6))),128)),r.value>0?(k(),A("span",YS," +"+V(r.value),1)):le("",!0)]),u[0]||(u[0]=g("span",{class:"participant-strip__arrow"},"▼",-1)),Re(i)?(k(),A("span",QS)):le("",!0)],2))}}),eE=ct(ZS,[["__scopeId","data-v-f280255a"]]);async function tE(e){return await Ve.get("/h5/employees/search",{params:{keyword:e}})}async function nE(){return await Ve.get("/h5/org/tree")}async function sE(e,t,n="recent10"){return await Ve.post(`/h5/conversations/${e}/invite-participant`,{participants:t,history_mode:n})}const oE={class:"invite-sheet"},iE={class:"invite-sheet__header"},aE={class:"invite-sheet__content"},rE={key:0,class:"invite-sheet__loading"},lE={key:1,class:"invite-sheet__empty"},cE={key:2},uE=["onClick"],dE={class:"invite-cell__avatar"},fE={class:"invite-cell__info"},hE={class:"invite-cell__name"},pE={key:0,class:"invite-cell__dept"},mE={key:0,class:"invite-cell__badge"},_E={class:"invite-sheet__content"},gE={key:0,class:"invite-sheet__loading"},vE={class:"invite-collapse__count"},yE=["onClick"],bE={class:"invite-cell__avatar"},wE={class:"invite-cell__info"},SE={class:"invite-cell__name"},EE={key:0,class:"invite-cell__dept"},CE={key:0,class:"invite-cell__badge"},xE={class:"invite-sheet__footer"},kE={class:"invite-sheet__count"},TE=be({__name:"InviteParticipantSheet",props:{show:{type:Boolean,default:!1},conversationId:{default:""},existingParticipantIds:{default:()=>[]}},emits:["update:show","invited"],setup(e,{emit:t}){const n=e,s=t,o=q(0),i=q(""),a=q([]),r=q(!1),c=q([]),d=q(!1),l=q(!1),u=q([]),f=q(!1),h=q(new Map),_=j(()=>h.value.size);function m(F){return(F||"?").charAt(0)}function p(F){return h.value.has(F)}function v(F){return n.existingParticipantIds.includes(F)}function C(F){v(F.id)||(h.value.has(F.id)?h.value.delete(F.id):h.value.set(F.id,F))}function R(F){C({id:F.id,name:F.name,department:F.department||""})}function x(F){C({id:F.id,name:F.label,department:F.department||""})}let b=null;function I(F){b&&clearTimeout(b),b=setTimeout(()=>{D(F)},300)}async function D(F){const B=(F||"").trim();if(!B){a.value=[];return}r.value=!0;try{a.value=await tE(B)}catch(O){console.error("[InviteSheet] 搜索失败:",O)}finally{r.value=!1}}async function K(){if(!l.value){d.value=!0;try{c.value=await nE(),l.value=!0,c.value.length>0&&(u.value=[c.value[0].id])}catch(F){console.error("[InviteSheet] 获取组织架构树失败:",F)}finally{d.value=!1}}}async function M(){if(!(_.value===0||!n.conversationId)){f.value=!0;try{const F=Array.from(h.value.values()).map(B=>({id:B.id,name:B.name,department:B.department,type:"employee"}));await sE(n.conversationId,F,"recent10"),Te("邀请已发送"),h.value.clear(),s("update:show",!1),s("invited")}catch(F){console.error("[InviteSheet] 邀请失败:",F)}finally{f.value=!1}}}return ke(()=>n.show,F=>{F&&(h.value.clear(),i.value="",a.value=[],o.value=0)}),ke(o,F=>{F===1&&!l.value&&!d.value&&K()}),(F,B)=>{const O=xv,Q=Co,Z=Gg,Ce=gg,he=Jd,ae=sv,de=Qg,xe=vg,we=Ss,oe=Os;return k(),Rt(oe,{show:e.show,position:"bottom",round:"",teleport:"body",style:{maxHeight:"85vh",minHeight:"50vh"},"onUpdate:show":B[4]||(B[4]=ne=>F.$emit("update:show",ne))},{default:Je(()=>[g("div",oE,[g("div",iE,[B[5]||(B[5]=g("span",{class:"invite-sheet__title"},"邀请参与者",-1)),g("button",{class:"invite-sheet__close",onClick:B[0]||(B[0]=ne=>F.$emit("update:show",!1))}," × ")]),E(xe,{active:o.value,"onUpdate:active":B[3]||(B[3]=ne=>o.value=ne),shrink:""},{default:Je(()=>[E(Ce,{title:"搜索"},{default:Je(()=>[E(O,{modelValue:i.value,"onUpdate:modelValue":[B[1]||(B[1]=ne=>i.value=ne),I],placeholder:"搜索姓名或工号",shape:"round"},null,8,["modelValue"]),g("div",aE,[r.value?(k(),A("div",rE,[E(Q,{type:"spinner",size:"24px"},{default:Je(()=>[...B[6]||(B[6]=[je("搜索中...",-1)])]),_:1})])):i.value&&a.value.length===0?(k(),A("div",lE," 未找到匹配的员工 ")):(k(),A("div",cE,[(k(!0),A(Se,null,tt(a.value,ne=>(k(),A("div",{key:ne.id,class:ge(["invite-cell",{"invite-cell--disabled":v(ne.id)}]),onClick:ie=>R(ne)},[E(Z,{"model-value":p(ne.id),disabled:v(ne.id),shape:"square"},null,8,["model-value","disabled"]),g("div",dE,V(m(ne.name)),1),g("div",fE,[g("span",hE,V(ne.name),1),ne.department?(k(),A("span",pE,V(ne.department),1)):le("",!0)]),v(ne.id)?(k(),A("span",mE,"已在会话中")):le("",!0)],10,uE))),128))]))])]),_:1}),E(Ce,{title:"组织架构"},{default:Je(()=>[g("div",_E,[d.value?(k(),A("div",gE,[E(Q,{type:"spinner",size:"24px"},{default:Je(()=>[...B[7]||(B[7]=[je("加载中...",-1)])]),_:1})])):c.value.length===0?(k(),Rt(he,{key:1,description:"暂无组织架构数据",image:"search"})):(k(),Rt(de,{key:2,modelValue:u.value,"onUpdate:modelValue":B[2]||(B[2]=ne=>u.value=ne)},{default:Je(()=>[(k(!0),A(Se,null,tt(c.value,ne=>(k(),Rt(ae,{key:ne.id,name:ne.id,title:ne.label},{"right-icon":Je(()=>[g("span",vE,V((ne.children||[]).length)+"人 ",1)]),default:Je(()=>[(k(!0),A(Se,null,tt(ne.children||[],ie=>(k(),A("div",{key:ie.id,class:ge(["invite-cell",{"invite-cell--disabled":v(ie.id)}]),onClick:Ae=>x(ie)},[E(Z,{"model-value":p(ie.id),disabled:v(ie.id),shape:"square"},null,8,["model-value","disabled"]),g("div",bE,V(m(ie.label)),1),g("div",wE,[g("span",SE,V(ie.label),1),ie.department?(k(),A("span",EE,V(ie.department),1)):le("",!0)]),v(ie.id)?(k(),A("span",CE,"已在会话中")):le("",!0)],10,yE))),128))]),_:2},1032,["name","title"]))),128))]),_:1},8,["modelValue"]))])]),_:1})]),_:1},8,["active"]),g("div",xE,[g("span",kE,[B[8]||(B[8]=je(" 已选 ",-1)),g("strong",null,V(_.value),1),B[9]||(B[9]=je(" 人 ",-1))]),E(we,{type:"success",size:"small",round:"",loading:f.value,disabled:_.value===0||!e.conversationId,onClick:M},{default:Je(()=>[...B[10]||(B[10]=[je(" 确认邀请 ",-1)])]),_:1},8,["loading","disabled"])])])]),_:1},8,["show"])}}}),AE=ct(TE,[["__scopeId","data-v-ce7d4fbf"]]),RE={class:"participant-list"},IE={class:"participant-list__header"},OE={class:"participant-list__items"},$E=["src","alt","onError"],PE={key:1,class:"participant-item__avatar-letter"},DE={class:"participant-item__info"},BE={class:"participant-item__name"},NE={key:0,class:"participant-item__self-tag"},LE={key:0,class:"participant-item__dept"},ME={key:0,class:"participant-item__badge participant-item__badge--agent"},FE={key:1,class:"participant-item__badge participant-item__badge--owner"},VE={key:2,class:"participant-item__badge participant-item__badge--joined"},jE={key:3,class:"participant-item__badge participant-item__badge--pending"},qE={key:0,class:"participant-list__invite-section"},UE={key:1,class:"participant-list__footer"},zE=["disabled"],HE=be({__name:"ParticipantList",setup(e){const t=$t(),n=Et(),s=q(!1),o=q({}),{normalizedParticipants:i}=Wf(),a=q(!1),r=j(()=>{const f=t.currentConversation;return f?f.employee_id===n.employeeId?!0:i.value.some(h=>h.id===n.employeeId):!1}),c=j(()=>i.value.map(f=>f.id).filter(Boolean));async function d(){a.value=!1,await t.fetchCurrentConversation()}function l(f){return(f||"?").charAt(0)}async function u(){try{await mv({title:"退出会话",message:"确定要退出该会话吗?退出后将无法查看会话消息。",confirmButtonText:"确定退出",cancelButtonText:"再想想",confirmButtonColor:"#ee0a24"}),s.value=!0,await t.leaveAsParticipant(),Te("已退出会话"),t.participantPanelVisible=!1}catch(f){f!=="cancel"&&(console.error("[ParticipantList] 退出失败:",f),Te("退出失败,请重试"))}finally{s.value=!1}}return(f,h)=>{var _;return k(),A("div",RE,[g("div",IE,[h[3]||(h[3]=g("span",{class:"participant-list__title"},"参与者",-1)),g("button",{class:"participant-list__close-btn",onClick:h[0]||(h[0]=m=>Re(t).participantPanelVisible=!1)}," × ")]),g("div",OE,[(k(!0),A(Se,null,tt(Re(i),m=>(k(),A("div",{key:m.id,class:ge(["participant-item",{"participant-item--self":m.isSelf}])},[g("div",{class:ge(["participant-item__avatar",{"participant-item__avatar--self":m.isSelf,"participant-item__avatar--agent":m.role==="primary_agent"}]),style:ln({borderColor:Re(Hf)[m.role]})},[m.avatar&&!o.value[m.id]?(k(),A("img",{key:0,src:m.avatar,alt:m.name,class:"participant-item__avatar-img",onError:p=>o.value[m.id]=!0},null,40,$E)):(k(),A("span",PE,V(l(m.name)),1))],6),g("div",DE,[g("span",BE,[je(V(m.name)+" ",1),m.isSelf?(k(),A("span",NE,"(我)")):le("",!0)]),m.department?(k(),A("span",LE,V(m.department),1)):le("",!0)]),m.role==="primary_agent"?(k(),A("span",ME,"坐席")):m.role==="owner"?(k(),A("span",FE,"发起人")):m.joined?(k(),A("span",VE,"已加入")):(k(),A("span",jE,"待加入"))],2))),128))]),r.value?(k(),A("div",qE,[g("button",{class:"participant-list__invite-btn",onClick:h[1]||(h[1]=m=>a.value=!0)},[...h[4]||(h[4]=[g("span",{class:"participant-list__invite-icon"},"+",-1),je(" 邀请参与者 ",-1)])])])):le("",!0),Re(t).isParticipant?(k(),A("div",UE,[g("button",{class:"participant-list__leave-btn",disabled:s.value,onClick:u},V(s.value?"退出中...":"退出会话"),9,zE)])):le("",!0),E(AE,{show:a.value,"onUpdate:show":h[2]||(h[2]=m=>a.value=m),"conversation-id":((_=Re(t).currentConversation)==null?void 0:_.conversation_id)||"","existing-participant-ids":c.value,onInvited:d},null,8,["show","conversation-id","existing-participant-ids"])])}}}),WE=ct(HE,[["__scopeId","data-v-df70b1a6"]]),KE={class:"evaluation-dialog"},GE={class:"evaluation-dialog__section"},JE={class:"star-rating"},XE={class:"star-label"},YE={class:"evaluation-dialog__section"},QE={class:"emoji-selector"},ZE={class:"evaluation-dialog__section"},eC={class:"evaluation-dialog__actions"},tC={class:"evaluation-dialog__skip"},nC=be({__name:"EvaluationDialog",props:{modelValue:{type:Boolean,default:!1},conversationId:{default:""}},emits:["update:modelValue","submitted"],setup(e,{expose:t,emit:n}){const s=e,o=n,i=j({get:()=>s.modelValue,set:m=>o("update:modelValue",m)}),a=q({star_rating:0,emoji:"",feedback_text:""}),r=q(!1),c=j(()=>({0:"",1:"非常差",2:"较差",3:"一般",4:"满意",5:"非常满意"})[a.value.star_rating]||""),d=j(()=>a.value.star_rating>0&&a.value.emoji!=="");ke(i,async m=>{if(m&&s.conversationId)try{await Ww(s.conversationId)&&(i.value=!1,Te("您已评价过该会话"))}catch(p){console.warn("[EvaluationDialog] 检查评价状态失败:",p)}});function l(m){a.value.emoji=m}function u(m){m>=4?a.value.emoji="satisfied":m>=2?a.value.emoji="neutral":a.value.emoji="dissatisfied"}async function f(){var m,p;if(!(!d.value||r.value)){r.value=!0;try{await Hw(s.conversationId,{star_rating:a.value.star_rating,emoji:a.value.emoji,feedback_text:a.value.feedback_text||void 0}),Te("评价成功,感谢您的反馈!"),i.value=!1,o("submitted")}catch(v){console.error("[EvaluationDialog] 提交评价失败:",v);const C=((p=(m=v==null?void 0:v.response)==null?void 0:m.data)==null?void 0:p.message)||"提交失败,请稍后重试";Te(C)}finally{r.value=!1}}}function h(){i.value=!1}function _(){a.value={star_rating:0,emoji:"",feedback_text:""},r.value=!1}return t({resetForm:_}),(m,p)=>{const v=bv,C=xr,R=Ss,x=Os;return k(),Rt(x,{show:i.value,"onUpdate:show":p[5]||(p[5]=b=>i.value=b),round:"","close-on-click-overlay":!1,class:"evaluation-popup"},{default:Je(()=>[g("div",KE,[p[14]||(p[14]=g("div",{class:"evaluation-dialog__header"},[g("h3",{class:"evaluation-dialog__title"},"请对本次服务进行评价"),g("p",{class:"evaluation-dialog__subtitle"},"您的评价对我们非常重要")],-1)),g("div",GE,[p[6]||(p[6]=g("div",{class:"evaluation-dialog__label"},"服务评分",-1)),g("div",JE,[E(v,{modelValue:a.value.star_rating,"onUpdate:modelValue":p[0]||(p[0]=b=>a.value.star_rating=b),count:5,size:"32",color:"#FFD21E","void-color":"#E5E5E5",onChange:u},null,8,["modelValue"]),g("span",XE,V(c.value),1)])]),g("div",YE,[p[10]||(p[10]=g("div",{class:"evaluation-dialog__label"},"整体感受",-1)),g("div",QE,[g("div",{class:ge(["emoji-item",{"emoji-item--selected":a.value.emoji==="satisfied"}]),onClick:p[1]||(p[1]=b=>l("satisfied"))},[...p[7]||(p[7]=[g("span",{class:"emoji-icon"},"😀",-1),g("span",{class:"emoji-text"},"满意",-1)])],2),g("div",{class:ge(["emoji-item",{"emoji-item--selected":a.value.emoji==="neutral"}]),onClick:p[2]||(p[2]=b=>l("neutral"))},[...p[8]||(p[8]=[g("span",{class:"emoji-icon"},"😐",-1),g("span",{class:"emoji-text"},"一般",-1)])],2),g("div",{class:ge(["emoji-item",{"emoji-item--selected":a.value.emoji==="dissatisfied"}]),onClick:p[3]||(p[3]=b=>l("dissatisfied"))},[...p[9]||(p[9]=[g("span",{class:"emoji-icon"},"😞",-1),g("span",{class:"emoji-text"},"不满意",-1)])],2)])]),g("div",ZE,[p[11]||(p[11]=g("div",{class:"evaluation-dialog__label"},[je(" 改进建议 "),g("span",{class:"evaluation-dialog__optional"},"(选填)")],-1)),E(C,{modelValue:a.value.feedback_text,"onUpdate:modelValue":p[4]||(p[4]=b=>a.value.feedback_text=b),type:"textarea",placeholder:"您对本次服务有什么建议?",maxlength:"200","show-word-limit":"",rows:"3",class:"evaluation-dialog__textarea"},null,8,["modelValue"])]),g("div",eC,[E(R,{type:"primary",size:"large",loading:r.value,disabled:!d.value,onClick:f},{default:Je(()=>[...p[12]||(p[12]=[je(" 提交评价 ",-1)])]),_:1},8,["loading","disabled"])]),g("div",tC,[E(R,{size:"small",type:"default",disabled:r.value,onClick:h},{default:Je(()=>[...p[13]||(p[13]=[je(" 暂不评价 ",-1)])]),_:1},8,["disabled"])])])]),_:1},8,["show"])}}}),sC=ct(nC,[["__scopeId","data-v-f4a30d2d"]]),oC={class:"chat-panel"},iC={class:"chat-panel__header"},aC={class:"chat-panel__header-left"},rC={key:0,class:"chat-panel__status chat-panel__status--online"},lC={key:1,class:"chat-panel__status chat-panel__status--offline"},cC={class:"chat-panel__header-actions"},uC=["title"],dC={class:"chat-panel__user-info"},fC=["src","alt"],hC={key:1,class:"chat-panel__avatar chat-panel__avatar--fallback"},pC={class:"chat-panel__username"},mC={key:0,class:"chat-panel__troubleshoot-fixed"},_C={key:0,class:"chat-panel__not-logged"},gC={key:1,class:"chat-panel__empty"},vC=be({__name:"ChatPanel",setup(e){const t=$t(),n=nf(),s=Et(),o=q(!1),i=j(()=>{const p=s.employeeName;return p?p.charAt(0).toUpperCase():"?"});function a(){o.value=!0}const r=q(null),c=q(!1),d=q(""),l=q(""),u=q(!0);async function f(){await Xe(),r.value&&(r.value.scrollTop=r.value.scrollHeight)}function h(){if(!r.value)return;const{scrollTop:p,scrollHeight:v,clientHeight:C}=r.value;u.value=v-p-C<100}async function _(){if(!t.currentConversation){Te("会话未就绪,请稍后再试");return}Fg({message:"正在呼叫人工坐席...",forbidClick:!0,duration:0});try{await t.shakeAgent(),zl()}catch(p){zl(),Te("呼叫失败,请稍后重试"),console.error("[ChatPanel] handleDirectCall failed:",p)}}function m(){console.log("[ChatPanel] 评价已提交")}return ke(()=>t.messages.length,()=>{f()}),ke(()=>{var p;return(p=t.currentConversation)==null?void 0:p.conversation_id},()=>{t.participantPanelVisible=!1}),ke(()=>{var p;return(p=t.currentConversation)==null?void 0:p.status},(p,v)=>{var C;if(v==="serving"&&p==="resolved"){const R=(C=t.currentConversation)==null?void 0:C.conversation_id;R&&setTimeout(()=>{d.value=R,c.value=!0},3e3)}l.value=p||""}),nt(()=>{var p;f(),l.value=((p=t.currentConversation)==null?void 0:p.status)||""}),(p,v)=>{var x,b;const C=Jd,R=Os;return k(),A("div",oC,[g("div",iC,[g("div",aC,[v[5]||(v[5]=g("span",{class:"logo-block"},"IT",-1)),v[6]||(v[6]=g("span",{class:"chat-panel__title"},"智能IT服务",-1)),Re(t).agentOnline?(k(),A("span",rC,[...v[3]||(v[3]=[g("span",{class:"chat-panel__status-dot"},null,-1),je(" 坐席在线 ",-1)])])):(k(),A("span",lC,[...v[4]||(v[4]=[g("span",{class:"chat-panel__status-dot"},null,-1),je(" 坐席离线 ",-1)])]))]),g("div",cC,[g("div",{class:"theme-switch",title:Re(n).currentTheme==="light"?"切换到深色模式":"切换到浅色模式",onClick:v[0]||(v[0]=I=>Re(n).toggleTheme())},[...v[7]||(v[7]=[g("span",{class:"switch-icon"},"☀️",-1),g("div",{class:"switch-track"},[g("div",{class:"switch-thumb"})],-1),g("span",{class:"switch-icon"},"🌙",-1)])],8,uC),g("div",dC,[(x=Re(s).employeeInfo)!=null&&x.avatar&&!o.value?(k(),A("img",{key:0,src:Re(s).employeeInfo.avatar,class:"chat-panel__avatar",alt:Re(s).employeeName,onError:a},null,40,fC)):(k(),A("span",hC,V(i.value),1)),g("span",pC,V(Re(s).employeeName),1)])])]),(b=Re(t).troubleshootingSteps)!=null&&b.length?(k(),A("div",mC,[E(WS)])):le("",!0),Re(t).participants.length>0?(k(),Rt(eE,{key:1})):le("",!0),g("div",{ref_key:"messageListRef",ref:r,class:"chat-panel__messages",onScroll:h},[Re(t).isLoggedIn?Re(t).messages.length===0?(k(),A("div",gC,[...v[8]||(v[8]=[g("div",{class:"chat-panel__empty-icon"},"💬",-1),g("p",{class:"chat-panel__empty-text"},"暂无消息",-1),g("p",{class:"chat-panel__empty-hint"},'输入问题咨询,或点击下方"人工坐席"按钮',-1)])])):(k(!0),A(Se,{key:2},tt(Re(t).messages,I=>(k(),Rt(Z1,{key:I.message_id,msg:I},null,8,["msg"]))),128)):(k(),A("div",_C,[E(C,{description:"正在获取身份信息...",image:"search"})]))],544),E(xS,{onCallAgent:_}),E(sC,{modelValue:c.value,"onUpdate:modelValue":v[1]||(v[1]=I=>c.value=I),"conversation-id":d.value,onSubmitted:m},null,8,["modelValue","conversation-id"]),E(R,{show:Re(t).participantPanelVisible,"onUpdate:show":v[2]||(v[2]=I=>Re(t).participantPanelVisible=I),position:"bottom",round:"",teleport:"body",style:{maxHeight:"60vh"}},{default:Je(()=>[E(WE)]),_:1},8,["show"])])}}}),yC=ct(vC,[["__scopeId","data-v-caf4d918"]]);function bC(){return Ve.get("/h5/it-health")}const wC={class:"basic-info-card"},SC={key:0,class:"basic-info-card__loading"},EC={class:"basic-info-card__tabs"},CC={key:0,class:"basic-info-card__current"},xC={class:"device-header"},kC={class:"device-header__left"},TC={class:"device-header__name"},AC={class:"info-grid"},RC={class:"info-grid__main"},IC={class:"info-row"},OC={class:"info-row__value"},$C={class:"info-row__value"},PC={class:"info-row"},DC={class:"info-row__value"},BC={class:"info-row__value"},NC={class:"info-row"},LC={class:"info-row__value"},MC={class:"info-row__value"},FC={class:"info-row"},VC={class:"info-row__value"},jC={class:"info-row__value"},qC={class:"health-badge__score"},UC={key:0,class:"perf-section"},zC={key:0,class:"perf-item"},HC={class:"perf-item__header"},WC={class:"perf-item__value"},KC={class:"perf-item__bar"},GC={key:1,class:"perf-item"},JC={class:"perf-item__header"},XC={class:"perf-item__value"},YC={class:"perf-item__bar"},QC={class:"perf-item__header"},ZC={class:"perf-item__label"},ex={class:"perf-item__value"},tx={class:"perf-item__bar"},nx={key:1,class:"data-source-badge"},sx={key:1,class:"basic-info-card__other"},ox={key:0,class:"other-empty"},ix={key:1,class:"other-list"},ax={class:"other-item__left"},rx={class:"other-item__type"},lx={class:"other-item__name"},cx={class:"other-item__right"},ux={class:"other-item__time"},dx={class:"other-item__location"},fx=be({__name:"BasicInfoCard",setup(e){const t=q("current"),n=q(!0),s=q("mock"),o=q({deviceName:"",isOnline:!0,assetTag:"",activateDate:"",ipAddress:"",publicIp:"",location:"",os:"",mac:"",uptime:"",cpu:{usage:0,model:""},memory:{usage:0,total:""},disks:[],securityChecks:[],complianceChecks:[],healthScore:100}),i=q([]);nt(async()=>{await a()});async function a(){n.value=!0;try{const l=await bC();if(l){const u=l.current_device;o.value={deviceName:u.device_name,isOnline:u.is_online,assetTag:u.asset_tag,activateDate:u.activate_date,ipAddress:u.ip_address,publicIp:u.public_ip,location:u.location,os:u.os,mac:u.mac,uptime:u.uptime,cpu:u.cpu,memory:u.memory,disks:u.disks,securityChecks:u.security_checks,complianceChecks:u.compliance_checks,healthScore:u.health_score??100},i.value=(l.other_devices||[]).map(f=>({deviceType:f.device_type||"设备",deviceName:f.device_name||"",lastLoginTime:f.last_login_time||"",lastLoginLocation:f.last_login_location||""})),s.value=l.data_source||"mock"}}catch(l){console.warn("[BasicInfoCard] IT 健康数据获取失败,使用降级数据:",l),s.value="mock"}finally{n.value=!1}}const r=j(()=>{if(o.value.healthScore!==void 0)return o.value.healthScore;let l=100;for(const u of o.value.securityChecks)u.status==="danger"?l-=15:u.status==="warning"&&(l-=8);for(const u of o.value.complianceChecks)u.status==="warning"?l-=5:u.status==="danger"&&(l-=10);return o.value.isOnline||(l=Math.round(l*.6)),Math.max(0,l)}),c=j(()=>{const l=r.value;return l>=80?"good":l>=60?"fair":"poor"});function d(l){return l>85?"fill--danger":l>60?"fill--warning":"fill--normal"}return(l,u)=>{var f,h,_,m,p;return k(),A("div",wC,[n.value?(k(),A("div",SC,[...u[2]||(u[2]=[g("span",null,"正在获取设备信息...",-1)])])):(k(),A(Se,{key:1},[g("div",EC,[g("button",{class:ge(["tab-btn",{"tab-btn--active":t.value==="current"}]),onClick:u[0]||(u[0]=v=>t.value="current")}," 当前设备 ",2),g("button",{class:ge(["tab-btn",{"tab-btn--active":t.value==="other"}]),onClick:u[1]||(u[1]=v=>t.value="other")}," 其他设备 ("+V(i.value.length)+") ",3)]),t.value==="current"?(k(),A("div",CC,[g("div",xC,[g("div",kC,[g("span",{class:ge(["device-header__dot",o.value.isOnline?"dot--online":"dot--offline"])},null,2),g("span",TC,V(o.value.deviceName),1)]),g("span",{class:ge(["device-header__status",o.value.isOnline?"status--online":"status--offline"])},V(o.value.isOnline?"在线":"离线"),3)]),g("div",AC,[g("div",RC,[g("div",IC,[u[3]||(u[3]=g("span",{class:"info-row__label"},"资产编号",-1)),g("span",OC,V(o.value.assetTag||"-"),1),u[4]||(u[4]=g("span",{class:"info-row__label info-row__label--indent"},"启用时间",-1)),g("span",$C,V(o.value.activateDate||"-"),1)]),g("div",PC,[u[5]||(u[5]=g("span",{class:"info-row__label"},"内网IP",-1)),g("span",DC,V(o.value.ipAddress||"-"),1),u[6]||(u[6]=g("span",{class:"info-row__label info-row__label--indent"},"公网出口",-1)),g("span",BC,V(o.value.publicIp||"-"),1)]),g("div",NC,[u[7]||(u[7]=g("span",{class:"info-row__label"},"办公地点",-1)),g("span",LC,V(o.value.location||"-"),1),u[8]||(u[8]=g("span",{class:"info-row__label info-row__label--indent"},"操作系统",-1)),g("span",MC,V(o.value.os||"-"),1)]),g("div",FC,[u[9]||(u[9]=g("span",{class:"info-row__label"},"MAC地址",-1)),g("span",VC,V(o.value.mac||"-"),1),u[10]||(u[10]=g("span",{class:"info-row__label info-row__label--indent"},"运行时长",-1)),g("span",jC,V(o.value.uptime||"-"),1)])]),g("div",{class:ge(["health-badge",`health-badge--${c.value}`])},[g("span",qC,V(r.value),1),u[11]||(u[11]=g("span",{class:"health-badge__label"},"健康评分",-1))],2)]),(f=o.value.cpu)!=null&&f.model||(h=o.value.memory)!=null&&h.total||(_=o.value.disks)!=null&&_.length?(k(),A("div",UC,[(m=o.value.cpu)!=null&&m.model?(k(),A("div",zC,[g("div",HC,[u[12]||(u[12]=g("span",{class:"perf-item__label"},"CPU",-1)),g("span",WC,V(o.value.cpu.usage)+"% · "+V(o.value.cpu.model),1)]),g("div",KC,[g("div",{class:ge(["perf-item__fill",d(o.value.cpu.usage)]),style:ln({width:o.value.cpu.usage+"%"})},null,6)])])):le("",!0),(p=o.value.memory)!=null&&p.total?(k(),A("div",GC,[g("div",JC,[u[13]||(u[13]=g("span",{class:"perf-item__label"},"内存",-1)),g("span",XC,V(o.value.memory.usage)+"% · "+V(o.value.memory.total),1)]),g("div",YC,[g("div",{class:ge(["perf-item__fill",d(o.value.memory.usage)]),style:ln({width:o.value.memory.usage+"%"})},null,6)])])):le("",!0),(k(!0),A(Se,null,tt(o.value.disks,v=>(k(),A("div",{class:"perf-item",key:v.label},[g("div",QC,[g("span",ZC,V(v.label),1),g("span",ex,V(v.usage)+"% · "+V(v.used)+"/"+V(v.total),1)]),g("div",tx,[g("div",{class:ge(["perf-item__fill",d(v.usage)]),style:ln({width:v.usage+"%"})},null,6)])]))),128))])):le("",!0),s.value==="mock"?(k(),A("div",nx," ⚠️ 数据来源:模拟(集成未配置) ")):le("",!0)])):(k(),A("div",sx,[i.value.length===0?(k(),A("div",ox," 暂无其他设备 ")):(k(),A("div",ix,[(k(!0),A(Se,null,tt(i.value,v=>(k(),A("div",{key:v.deviceName,class:"other-item"},[g("div",ax,[g("span",rx,V(v.deviceType),1),g("span",lx,V(v.deviceName),1)]),g("div",cx,[g("span",ux,V(v.lastLoginTime),1),g("span",dx,V(v.lastLoginLocation),1)])]))),128))]))]))],64))])}}}),hx=ct(fx,[["__scopeId","data-v-425685ff"]]),px={class:"self-diag"},mx={class:"self-diag__header"},_x=["disabled"],gx={class:"self-diag__tabs"},vx=["onClick"],yx={key:0,class:"tab-btn__badge"},bx={class:"self-diag__content"},wx={class:"diag-chips"},Sx=["disabled","onClick"],Ex={class:"diag-chip__name"},Cx={class:"diag-chip__icon"},xx={key:0,class:"diag-results"},kx={class:"result-item__header"},Tx={class:"result-item__name"},Ax={key:0,class:"result-item__detail"},Rx={key:1,class:"risk-list"},Ix=["onClick"],Ox={class:"risk-item__icon"},$x={class:"risk-item__name"},Px={class:"risk-item__toggle"},Dx={key:0,class:"risk-item__detail"},Bx=["onClick"],Nx=be({__name:"SelfDiagnosis",setup(e){const t=q([{key:"network",label:"网络联通",diagItems:[{key:"net_connect",label:"网络连通性",status:"idle",detail:""},{key:"net_dns",label:"DNS解析",status:"idle",detail:""},{key:"net_gateway",label:"网关检测",status:"idle",detail:""},{key:"net_proxy",label:"代理检测",status:"idle",detail:""},{key:"net_vpn",label:"VPN诊断",status:"idle",detail:""},{key:"net_fileshare",label:"文件共享",status:"idle",detail:""}],riskItems:[]},{key:"account",label:"账号权限",diagItems:[],riskItems:[{key:"ad_password",label:"域账号密码到期",icon:"🔑",level:"warning",statusText:"5天",detailLines:["到期时间: 2026-07-17 14:30","修改方式: Ctrl+Alt+Del → 更改密码","密码规则: 至少8位, 含大小写字母+数字+特殊字符"],actionText:"查看修改指南"},{key:"zero_trust",label:"零信任账号",icon:"🛡️",level:"normal",statusText:"正常",detailLines:["账号状态: 正常","最近登录: 2026-07-12 08:45","登录设备: DESKTOP-SIMON01"],actionText:""},{key:"cloud_disk",label:"税友云盘",icon:"☁️",level:"normal",statusText:"正常",detailLines:["状态: 正常","已用容量: 12.3GB / 50GB","最近同步: 2026-07-12 09:00"],actionText:""},{key:"email_status",label:"税友邮箱",icon:"📧",level:"normal",statusText:"正常",detailLines:["邮箱: songxian@servyou.com.cn","密码到期: 2026-08-15","容量: 2.1GB / 5GB"],actionText:""}]},{key:"hardware",label:"设备硬件",diagItems:[],riskItems:[{key:"hw_cpu",label:"CPU 使用率",icon:"🔲",level:"normal",statusText:"23%",detailLines:["型号: Intel i7-12700 (12核)","当前使用率: 23%","温度: 52°C (正常)","阈值: 使用率 >85% 或温度 >85°C 触发警告"],actionText:""},{key:"hw_memory",label:"内存健康",icon:"📏",level:"normal",statusText:"45%",detailLines:["总容量: 16GB","已用: 7.2GB (45%)","类型: DDR5-4800","阈值: 使用率 >85% 触发警告"],actionText:""},{key:"hw_disk",label:"硬盘SMART",icon:"💿",level:"warning",statusText:"1个警告",detailLines:["C盘 (SSD 256GB): SMART 正常, 使用率 67%","D盘 (SSD 256GB): SMART 正常, 使用率 43%","警告: C盘剩余空间不足 84GB (<100GB)","建议: 清理临时文件或迁移大文件至D盘"],actionText:"查看清理建议"},{key:"hw_driver",label:"驱动状态",icon:"🔌",level:"normal",statusText:"正常",detailLines:["显卡驱动: NVIDIA 552.22 (最新)","网卡驱动: Intel 12.2.1 (最新)","声卡驱动: Realtek 6.0 (最新)","蓝牙驱动: 正常"],actionText:""},{key:"hw_peripheral",label:"外设连接",icon:"🖱️",level:"normal",statusText:"3个设备",detailLines:["显示器: DELL U2723QE (USB-C 连接)","键鼠: 罗技 MX Keys + MX Master (蓝牙)","打印机: \\\\print-srv\\HP-5F (网络)","摄像头: 内置 (正常)"],actionText:""}]},{key:"system",label:"系统软件",diagItems:[{key:"sys_service",label:"系统服务",status:"idle",detail:""},{key:"sys_cert",label:"证书检测",status:"idle",detail:""}],riskItems:[{key:"sys_patches",label:"系统补丁",icon:"🔧",level:"warning",statusText:"2个高危",detailLines:["KB5037: Windows 安全更新 (高危)","KB5039: .NET Framework 更新 (高危)","建议: 尽快安装, 可联系IT协助"],actionText:"申请安装补丁"},{key:"sys_risk_sw",label:"高危软件",icon:"📦",level:"normal",statusText:"未发现",detailLines:["扫描时间: 2026-07-12 09:00","结果: 未发现高危软件"],actionText:""},{key:"sys_email_client",label:"邮件客户端",icon:"📧",level:"warning",statusText:"配置异常",detailLines:["客户端: Outlook 2019","问题: 邮箱密码可能已过期","建议: 检查邮箱密码或重新配置"],actionText:"查看配置指南"},{key:"sys_printer",label:"打印机状态",icon:"🖨️",level:"normal",statusText:"正常",detailLines:["默认打印机: \\\\print-srv\\HP-5F","状态: 在线, 墨粉充足","队列: 0 个任务"],actionText:""}]},{key:"security",label:"终端安全",diagItems:[],riskItems:[{key:"sec_huorong",label:"火绒安装",icon:"🛡️",level:"normal",statusText:"已安装",detailLines:["版本: v2.4.1","病毒库: 2026-07-12","最近全盘扫描: 2026-07-01"],actionText:""},{key:"sec_virus",label:"病毒状态",icon:"🦠",level:"normal",statusText:"安全",detailLines:["状态: 无病毒事件","最近扫描: 2026-07-01 全盘扫描","实时防护: 已开启"],actionText:""},{key:"sec_internal",label:"内部攻击",icon:"⚔️",level:"pending",statusText:"接入中",detailLines:["数据源: SIEM/IDS (接入中)","预计完成: 2026-Q4","当前状态: 暂无数据"],actionText:""},{key:"sec_proxy",label:"网络代理",icon:"🌐",level:"pending",statusText:"接入中",detailLines:["数据源: 联软网络准入 (接入中)","预计完成: 2026-Q4","当前状态: 暂无数据"],actionText:""}]},{key:"compliance",label:"合规检查",diagItems:[],riskItems:[{key:"comp_byod",label:"自备电脑",icon:"💻",level:"normal",statusText:"公司配发",detailLines:["设备类型: 公司配发设备","资产编号: SY-PC-00821","登记状态: 已登记"],actionText:""},{key:"comp_unapproved",label:"未审批商业软件",icon:"📋",level:"warning",statusText:"1个未审批",detailLines:["软件: Adobe Photoshop 2024 (未审批)","发现时间: 2026-07-10","建议: 提交软件安装审批申请"],actionText:"提交审批申请"}]}]),n=q("network"),s=pt(new Set),o=q(!1),i=j(()=>t.value.find(_=>_.key===n.value)||t.value[0]),a=j(()=>t.value.map(_=>{const m=_.diagItems.filter(v=>v.status==="warning"||v.status==="fail").length,p=_.riskItems.filter(v=>v.level==="warning"||v.level==="danger").length;return{key:_.key,label:_.label,badge:m+p}})),r=j(()=>i.value.diagItems.some(_=>_.status==="pass"||_.status==="warning"||_.status==="fail")),c={net_connect:{status:"pass",detail:"ping 10.90.5.1 -> 2ms, 丢包率 0%"},net_dns:{status:"pass",detail:"DNS解析正常, 解析时间 3ms"},net_gateway:{status:"pass",detail:"默认网关 10.90.5.1 可达"},net_proxy:{status:"warning",detail:"检测到系统代理 127.0.0.1:8080, 可能影响内网访问"},net_vpn:{status:"fail",detail:"aTrust VPN 连接超时 (10s), 可能需要重新认证"},net_fileshare:{status:"pass",detail:"文件服务器 \\\\file-srv 可访问"},sys_service:{status:"pass",detail:"关键服务运行正常 (5/5): DHCP, DNS, Windows Update, Firewall, Defender"},sys_cert:{status:"fail",detail:"发现1个过期证书: CN=old-ca (过期日: 2025-12-01), 建议更新"}};async function d(_){const m=i.value.diagItems.find(v=>v.key===_);if(!m||m.status==="running")return;m.status="running",m.detail="",await new Promise(v=>setTimeout(v,800+Math.random()*700));const p=c[_];p?(m.status=p.status,m.detail=p.detail):(m.status="pass",m.detail="诊断完成")}async function l(){if(i.value.diagItems.length!==0){o.value=!0;for(const _ of i.value.diagItems)await d(_.key);o.value=!1}}function u(_){s.has(_)?s.delete(_):s.add(_)}function f(_){console.log("[Diag] risk action:",_.key,_.actionText)}function h(_){switch(_){case"pass":return"通过";case"warning":return"警告";case"fail":return"失败";default:return""}}return(_,m)=>(k(),A("div",px,[g("div",mx,[m[0]||(m[0]=g("span",{class:"header__title"},"自助诊断",-1)),i.value.diagItems.length>0?(k(),A("button",{key:0,class:"header__btn",disabled:o.value,onClick:l},V(o.value?"诊断中...":"一键诊断"),9,_x)):le("",!0)]),g("div",gx,[(k(!0),A(Se,null,tt(a.value,p=>(k(),A("button",{key:p.key,class:ge(["tab-btn",{"tab-btn--active":n.value===p.key}]),onClick:v=>n.value=p.key},[je(V(p.label)+" ",1),p.badge>0?(k(),A("span",yx,V(p.badge),1)):le("",!0)],10,vx))),128))]),g("div",bx,[i.value.diagItems.length>0?(k(),A(Se,{key:0},[g("div",wx,[(k(!0),A(Se,null,tt(i.value.diagItems,p=>(k(),A("button",{key:p.key,class:ge(["diag-chip",`diag-chip--${p.status}`]),disabled:p.status==="running",onClick:v=>d(p.key)},[g("span",Ex,V(p.label),1),g("span",Cx,[p.status==="running"?(k(),A(Se,{key:0},[je("...")],64)):p.status==="pass"?(k(),A(Se,{key:1},[je("✓")],64)):p.status==="warning"?(k(),A(Se,{key:2},[je("!")],64)):p.status==="fail"?(k(),A(Se,{key:3},[je("✕")],64)):(k(),A(Se,{key:4},[je("›")],64))])],10,Sx))),128))]),r.value?(k(),A("div",xx,[m[1]||(m[1]=g("div",{class:"diag-results__label"},"诊断结果",-1)),(k(!0),A(Se,null,tt(i.value.diagItems.filter(p=>p.status==="pass"||p.status==="warning"||p.status==="fail"),p=>(k(),A("div",{key:p.key,class:ge(["result-item",`result-item--${p.status}`])},[g("div",kx,[g("span",Tx,V(p.label),1),g("span",{class:ge(["result-item__status",`result-item__status--${p.status}`])},V(h(p.status)),3)]),p.detail?(k(),A("div",Ax,V(p.detail),1)):le("",!0)],2))),128))])):le("",!0)],64)):le("",!0),i.value.riskItems.length>0?(k(),A("div",Rx,[(k(!0),A(Se,null,tt(i.value.riskItems,p=>(k(),A("div",{key:p.key,class:ge(["risk-item",[`risk-item--${p.level}`,{"risk-item--pending":p.level==="pending"}]])},[g("div",{class:"risk-item__header",onClick:v=>u(p.key)},[g("span",Ox,V(p.icon),1),g("span",$x,V(p.label),1),g("span",{class:ge(["risk-item__status",`risk-item__status--${p.level}`])},V(p.statusText),3),g("span",Px,V(s.has(p.key)?"▴":"▾"),1)],8,Ix),s.has(p.key)?(k(),A("div",Dx,[(k(!0),A(Se,null,tt(p.detailLines,v=>(k(),A("div",{key:v,class:"detail-line"},V(v),1))),128)),p.actionText?(k(),A("button",{key:0,class:"risk-item__action",onClick:Dn(v=>f(p),["stop"])},V(p.actionText),9,Bx)):le("",!0)])):le("",!0)],2))),128))])):le("",!0)])]))}}),Lx=ct(Nx,[["__scopeId","data-v-925458fe"]]),Mx={class:"dynamic-recommend"},Fx={key:0,class:"dynamic-recommend__empty"},Vx={key:1,class:"dynamic-recommend__list"},jx={class:"recommend-card__header"},qx={class:"recommend-card__icon"},Ux={class:"recommend-card__title"},zx=["onClick"],Hx={key:0,class:"recommend-card__desc"},Wx=["onClick"],Kx=["onClick"],Gx={key:3,class:"recommend-card__confidence"},Jx=be({__name:"DynamicRecommend",setup(e){const t=$t(),n=j(()=>t.dynamicRecommendations),s=j(()=>new URLSearchParams(window.location.search).has("debug"));function o(c){return{approval:"📋",action:"⚡",info:"ℹ️"}[c]||"💡"}function i(c){t.removeRecommend(c)}function a(c){c.approval_type&&console.log("[DynamicRecommend] 打开审批表单:",c.approval_type)}function r(c){console.log("[DynamicRecommend] 执行操作:",c.title)}return nt(()=>{t.clearUnreadRecommend()}),(c,d)=>(k(),A("div",Mx,[n.value.length===0?(k(),A("div",Fx,[...d[0]||(d[0]=[g("div",{class:"dynamic-recommend__empty-icon"},"💡",-1),g("p",{class:"dynamic-recommend__empty-text"},"暂无智能推荐",-1),g("p",{class:"dynamic-recommend__empty-hint"},"向 Duckula 提问后将显示相关推荐",-1)])])):(k(),A("div",Vx,[(k(!0),A(Se,null,tt(n.value,l=>(k(),A("div",{key:l.recommend_id,class:ge(["recommend-card",`recommend-card--${l.card_type}`])},[g("div",jx,[g("span",qx,V(o(l.card_type)),1),g("span",Ux,V(l.title),1),g("button",{class:"recommend-card__close",title:"关闭推荐",onClick:u=>i(l.recommend_id)}," × ",8,zx)]),l.description?(k(),A("p",Hx,V(l.description),1)):le("",!0),l.card_type==="approval"&&l.approval_type?(k(),A("button",{key:1,class:"recommend-card__btn",onClick:u=>a(l)}," 打开审批表单 ",8,Wx)):l.card_type==="action"?(k(),A("button",{key:2,class:"recommend-card__btn",onClick:u=>r(l)}," 立即执行 ",8,Kx)):le("",!0),s.value?(k(),A("div",Gx," 置信度: "+V(Math.round(l.confidence*100))+"% ",1)):le("",!0)],2))),128))]))]))}}),Xx=ct(Jx,[["__scopeId","data-v-4a5b6df0"]]);function Yx(e){return Ve.get("/h5/queue/status",{params:{employee_id:e}})}function Qx(e,t){return Ve.get("/h5/quiz/question",{params:{employee_id:e,conversation_id:t||void 0}})}function Zx(e){return Ve.post("/h5/quiz/answer",e)}const ek={class:"queue-waiting"},tk={class:"queue-waiting__segment-badge"},nk={class:"segment-badge__icon"},sk={class:"segment-badge__text"},ok={class:"queue-waiting__position-number"},ik={key:0,class:"queue-waiting__ahead"},ak={key:1,class:"queue-waiting__ahead queue-waiting__ahead--first"},rk={key:2,class:"queue-waiting__ahead"},lk={key:3,class:"queue-waiting__eta"},ck={key:4,class:"queue-waiting__jump-progress"},uk={class:"jump-progress__header"},dk={class:"jump-progress__priority"},fk={class:"jump-progress__bar"},hk={key:0,class:"jump-progress__check"},pk={key:0,class:"jump-progress__hint"},mk={key:1,class:"jump-progress__hint jump-progress__hint--max"},_k={class:"queue-waiting__stats"},gk={class:"stats__grid"},vk={class:"stats__item"},yk={class:"stats__value"},bk={class:"stats__item stats__item--queued"},wk={class:"stats__value"},Sk={class:"stats__item stats__item--serving"},Ek={class:"stats__value"},Ck={class:"stats__item stats__item--ai"},xk={class:"stats__value"},kk={key:0,class:"queue-waiting__points"},Tk={class:"level-badge__icon"},Ak={class:"level-badge__name"},Rk={class:"points__info"},Ik={class:"points__value"},Ok={key:0,class:"points__next"},$k={key:1,class:"points__next points__next--max"},Pk={class:"queue-waiting__quiz"},Dk={class:"quiz__header"},Bk={class:"quiz__title"},Nk={key:0,class:"quiz__type-badge quiz__type-badge--diag"},Lk={key:1,class:"quiz__type-badge quiz__type-badge--knowledge"},Mk={key:0,class:"quiz__loading"},Fk={key:1,class:"quiz__empty"},Vk={class:"quiz__question"},jk={class:"quiz__options"},qk=["disabled","onClick"],Uk={class:"quiz__option-label"},zk={class:"quiz__option-text"},Hk={key:0,class:"quiz__result-icon"},Wk={key:1,class:"quiz__result-icon"},Kk={class:"quiz__result-content"},Gk={class:"quiz__result-text"},Jk={key:0,class:"quiz__result-explanation"},Xk={key:1,class:"quiz__result-jump"},Yk={key:3,class:"quiz__no-more"},Qk=be({__name:"QueueWaiting",setup(e,{expose:t}){const n=$t(),s=Et(),o=q(null),i=q(null),a=q(!1),r=q(!1),c=q(-1),d=q(null);let l=null;const u=["A","B","C","D","E","F"],f=j(()=>{var B,O;return((O=(B=o.value)==null?void 0:B.queue)==null?void 0:O.position)||0}),h=j(()=>{var B,O;return((O=(B=o.value)==null?void 0:B.queue)==null?void 0:O.estimated_wait_text)||""}),_=j(()=>{var B;return((B=o.value)==null?void 0:B.platform)||{total_active:0,queued:0,serving:0,ai_handling:0}}),m=j(()=>{var B;return((B=o.value)==null?void 0:B.points)||null}),p=j(()=>{var O,Q;const B=(Q=(O=o.value)==null?void 0:O.queue)==null?void 0:Q.segment;return B==="vip"?"⭐":B==="completed"?"✅":B==="incomplete"?"⏳":"📋"}),v=j(()=>{var O,Q;const B=(Q=(O=o.value)==null?void 0:O.queue)==null?void 0:Q.segment;return{"position-card--vip":B==="vip","position-card--completed":B==="completed","position-card--incomplete":B==="incomplete"}}),C=j(()=>{var Q;const B=((Q=m.value)==null?void 0:Q.level_index)||1;return["🐣","🌱","⚡","🔥","👑"][Math.min(B-1,4)]||"⭐"}),R=j(()=>{var B;return((B=i.value)==null?void 0:B.type)==="diagnostic"?"回答问题帮助坐席更快定位":"答题赢积分+插队"});function x(){return s.employeeId||localStorage.getItem("employee_id")||""}function b(){var B;return((B=n.currentConversation)==null?void 0:B.conversation_id)||null}async function I(){const B=x();if(B)try{const O=await Yx(B);o.value=O}catch(O){console.error("[QueueWaiting] 加载排队状态失败:",O)}}async function D(){const B=x();if(B){a.value=!0;try{const O=await Qx(B,b());i.value=O,r.value=!1,c.value=-1,d.value=null}catch(O){console.error("[QueueWaiting] 加载题目失败:",O),i.value=null}finally{a.value=!1}}}function K(B){i.value=B,r.value=!1,c.value=-1,d.value=null}async function M(B){var Q;if(r.value||!i.value)return;const O=x();if(O){r.value=!0,c.value=B;try{const Z=await Zx({employee_id:O,question_id:i.value.question_id,selected_index:B,conversation_id:b()});d.value=Z,Z.queue_priority_changed&&await I(),o.value&&Z.points!==void 0&&(o.value.points={points:Z.points,level_name:Z.level_name,level_index:Z.level_index,to_next_level:0,next_level_name:null}),(Q=o.value)!=null&&Q.quiz&&(o.value.quiz.answered_in_session=Z.answered_in_session,o.value.quiz.queue_priority=Z.queue_priority,o.value.quiz.remaining_for_next_jump=Z.remaining_for_next_jump,o.value.quiz.can_jump_more=Z.can_jump_more)}catch(Z){console.error("[QueueWaiting] 提交答案失败:",Z),r.value=!1}}}function F(B){var O;(O=o.value)!=null&&O.queue&&(o.value.queue.position=B.position,o.value.queue.segment=B.segment,o.value.queue.ahead_count=B.ahead_count,o.value.queue.queue_priority=B.queue_priority)}return nt(async()=>{var O;await I();const B=(O=o.value)==null?void 0:O.conversation_status;(B==="queued"||B==="ai_handling")&&await D(),l=setInterval(async()=>{await I()},15e3)}),Ln(()=>{l&&(clearInterval(l),l=null)}),t({handleQueuePositionUpdate:F,loadQueueStatus:I,loadQuestion:D,currentPosition:f}),(B,O)=>{var Q,Z,Ce,he,ae,de;return k(),A("div",ek,[g("div",{class:ge(["queue-waiting__position-card",v.value])},[g("div",tk,[g("span",nk,V(p.value),1),g("span",sk,V(((Z=(Q=o.value)==null?void 0:Q.queue)==null?void 0:Z.segment_label)||"等待中"),1)]),g("div",ok,[E(ui,{name:"position-flip",mode:"out-in"},{default:Je(()=>[(k(),A("span",{key:f.value,class:"position-number__value"},V(f.value>0?f.value:"—"),1))]),_:1}),O[1]||(O[1]=g("span",{class:"position-number__label"},"您的排队位置",-1))]),f.value>1?(k(),A("div",ik,[O[2]||(O[2]=je(" 前方还有 ",-1)),g("strong",null,V(((he=(Ce=o.value)==null?void 0:Ce.queue)==null?void 0:he.ahead_count)||0),1),O[3]||(O[3]=je(" 位同事等待 ",-1))])):f.value===1?(k(),A("div",ak," 即将轮到您,请准备好! ")):(k(),A("div",rk," 正在为您分配坐席… ")),h.value&&f.value>0?(k(),A("div",lk,[O[4]||(O[4]=g("span",{class:"eta-icon"},"⏱️",-1)),g("span",null,"预计等待 "+V(h.value),1)])):le("",!0),(ae=o.value)!=null&&ae.quiz?(k(),A("div",ck,[g("div",uk,[O[5]||(O[5]=g("span",{class:"jump-progress__title"},"答题插队",-1)),g("span",dk," 已前移 "+V(o.value.quiz.queue_priority)+"/"+V(o.value.quiz.max_priority)+" 位 ",1)]),g("div",fk,[(k(!0),A(Se,null,tt(o.value.quiz.max_priority,xe=>(k(),A("div",{key:xe,class:ge(["jump-progress__dot",{"jump-progress__dot--filled":xe<=o.value.quiz.queue_priority}])},[xe<=o.value.quiz.queue_priority?(k(),A("span",hk,"✓")):le("",!0)],2))),128))]),o.value.quiz.can_jump_more?(k(),A("div",pk," 再答 "+V(o.value.quiz.remaining_for_next_jump)+" 题可前移 1 位 ",1)):(k(),A("div",mk," 已达最大插队次数 "))])):le("",!0)],2),g("div",_k,[O[10]||(O[10]=g("div",{class:"stats__header"},[g("span",{class:"stats__title"},"平台实时状态"),g("span",{class:"stats__live-indicator"},[g("span",{class:"live-dot"}),g("span",null,"实时")])],-1)),g("div",gk,[g("div",vk,[g("div",yk,V(_.value.total_active),1),O[6]||(O[6]=g("div",{class:"stats__label"},"总活跃",-1))]),g("div",bk,[g("div",wk,V(_.value.queued),1),O[7]||(O[7]=g("div",{class:"stats__label"},"排队中",-1))]),g("div",Sk,[g("div",Ek,V(_.value.serving),1),O[8]||(O[8]=g("div",{class:"stats__label"},"服务中",-1))]),g("div",Ck,[g("div",xk,V(_.value.ai_handling),1),O[9]||(O[9]=g("div",{class:"stats__label"},"AI处理",-1))])])]),m.value?(k(),A("div",kk,[g("div",{class:ge(["points__level-badge",`points__level-badge--${m.value.level_index}`])},[g("span",Tk,V(C.value),1),g("span",Ak,V(m.value.level_name),1)],2),g("div",Rk,[g("span",Ik,V(m.value.points)+" 积分",1),m.value.next_level_name?(k(),A("span",Ok," 距 "+V(m.value.next_level_name)+" 还差 "+V(m.value.to_next_level)+" 分 ",1)):(k(),A("span",$k," 已达最高等级 🏆 "))])])):le("",!0),g("div",Pk,[g("div",Dk,[g("span",Bk,V(R.value),1),((de=i.value)==null?void 0:de.type)==="diagnostic"?(k(),A("span",Nk," 诊断题 ")):(k(),A("span",Lk," 知识题 "))]),a.value?(k(),A("div",Mk,[...O[11]||(O[11]=[g("span",{class:"quiz__loading-spinner"},null,-1),g("span",null,"加载题目中…",-1)])])):i.value?(k(),A(Se,{key:2},[g("div",Vk,V(i.value.question),1),g("div",jk,[(k(!0),A(Se,null,tt(i.value.options,(xe,we)=>(k(),A("button",{key:we,class:ge(["quiz__option",{"quiz__option--correct":r.value&&we===i.value.correct_index,"quiz__option--wrong":r.value&&c.value===we&&we!==i.value.correct_index,"quiz__option--disabled":r.value}]),disabled:r.value,onClick:oe=>M(we)},[g("span",Uk,V(u[we]),1),g("span",zk,V(xe),1)],10,qk))),128))]),E(ui,{name:"fade"},{default:Je(()=>[r.value&&d.value?(k(),A("div",{key:0,class:ge(["quiz__result",d.value.is_correct?"quiz__result--correct":"quiz__result--wrong"])},[d.value.is_correct?(k(),A("span",Hk,"✅")):(k(),A("span",Wk,"❌")),g("div",Kk,[g("div",Gk,V(d.value.is_correct?`答对啦!+${d.value.points_delta} 积分`:"答错了"),1),d.value.explanation?(k(),A("div",Jk,V(d.value.explanation),1)):le("",!0),d.value.queue_priority_changed?(k(),A("div",Xk," 🎉 恭喜!排队位置前移 1 位! ")):le("",!0)]),d.value.next_question?(k(),A("button",{key:2,class:"quiz__next-btn",onClick:O[0]||(O[0]=xe=>K(d.value.next_question))}," 下一题 → ")):(k(),A("div",Yk,"暂无更多题目"))],2)):le("",!0)]),_:1})],64)):(k(),A("div",Fk,[...O[12]||(O[12]=[g("span",null,"📋 暂无更多题目",-1)])]))])])}}}),Zk=ct(Qk,[["__scopeId","data-v-ca99fdc7"]]),eT={class:"right-panel"},tT={class:"right-panel__accordion"},nT={class:"accordion-item__toggle"},sT={class:"accordion-item__content"},oT={class:"accordion-item__toggle"},iT={class:"accordion-item__content"},aT={class:"right-panel__recommend-section"},rT={class:"queue-collapsed-bar__left"},lT={class:"queue-collapsed-bar__icon"},cT={key:0,class:"queue-collapsed-bar__text"},uT={key:1,class:"queue-collapsed-bar__text"},dT={key:0,class:"queue-collapsed-bar__position"},fT={class:"queue-collapsed-bar__toggle"},hT={key:0,class:"queue-header__badge"},pT={class:"right-panel__queue-content"},mT=be({__name:"RightPanel",setup(e,{expose:t}){const n=$t(),s=q(null);function o(l){s.value===l?s.value=null:s.value=l}ke(()=>n.unreadRecommendCount,l=>{l>0&&n.clearUnreadRecommend()});const i=q(null),a=j(()=>{var u,f;return((u=n.currentConversation)==null?void 0:u.status)==="waiting"&&((f=n.currentConversation)==null?void 0:f.agent_id)===""}),r=j(()=>{var l;return((l=i.value)==null?void 0:l.currentPosition)||0}),c=q(!1);ke(a,l=>{l&&(c.value=!0)},{immediate:!0});function d(){c.value=!c.value}return t({queueWaitingRef:i}),(l,u)=>(k(),A("div",eT,[g("div",tT,[g("div",{class:ge(["accordion-item",{"accordion-item--active":s.value==="device"}])},[g("div",{class:"accordion-item__header",onClick:u[0]||(u[0]=f=>o("device"))},[u[2]||(u[2]=g("span",{class:"accordion-item__icon"},"💻",-1)),u[3]||(u[3]=g("span",{class:"accordion-item__title"},"设备信息",-1)),g("span",nT,V(s.value==="device"?"▾":"▸"),1)]),Jn(g("div",sT,[E(hx)],512),[[Yn,s.value==="device"]])],2),g("div",{class:ge(["accordion-item",{"accordion-item--active":s.value==="diagnosis"}])},[g("div",{class:"accordion-item__header",onClick:u[1]||(u[1]=f=>o("diagnosis"))},[u[4]||(u[4]=g("span",{class:"accordion-item__icon"},"🩺",-1)),u[5]||(u[5]=g("span",{class:"accordion-item__title"},"自助诊断",-1)),g("span",oT,V(s.value==="diagnosis"?"▾":"▸"),1)]),Jn(g("div",iT,[E(Lx)],512),[[Yn,s.value==="diagnosis"]])],2)]),u[10]||(u[10]=g("div",{class:"right-panel__divider"},null,-1)),g("div",aT,[E(Xx)]),u[11]||(u[11]=g("div",{class:"right-panel__divider"},null,-1)),g("div",{class:ge(["right-panel__queue-section",{"right-panel__queue-section--collapsed":!c.value}])},[c.value?(k(),A(Se,{key:1},[g("div",{class:"queue-header",onClick:d},[u[7]||(u[7]=g("span",{class:"queue-header__icon"},"⏳",-1)),u[8]||(u[8]=g("span",{class:"queue-header__title"},"排队等待",-1)),a.value?(k(),A("span",hT)):le("",!0),u[9]||(u[9]=g("span",{class:"queue-header__toggle"},"收起 ▴",-1))]),Jn(g("div",pT,[E(Zk,{ref_key:"queueWaitingRef",ref:i},null,512)],512),[[Yn,c.value]])],64)):(k(),A("div",{key:0,class:"queue-collapsed-bar",onClick:d},[g("div",rT,[g("span",lT,V(a.value?"⏳":"✅"),1),a.value?(k(),A("span",uT,[u[6]||(u[6]=je(" 排队中 ",-1)),r.value>0?(k(),A("span",dT,"#"+V(r.value),1)):le("",!0)])):(k(),A("span",cT,"当前无排队"))]),g("span",fT,V(a.value?"展开查看":"展开")+" ▾",1)]))],2)]))}}),Ja=ct(mT,[["__scopeId","data-v-a8cf10f8"]]),_T={class:"chat-view"},gT={key:1,class:"chat-view__right"},vT=be({__name:"ChatView",setup(e){const t=_f(),n=gf(),s=Et(),o=$t(),i=n0(),a=q(window.innerWidth),r=q(60),c=q(!1),d=j(()=>a.value<500),l=j(()=>!d.value);function u(m){c.value=!0;const p=m.clientX,v=r.value,C=a.value;function R(b){if(!c.value)return;const D=(b.clientX-p)/C*100;let K=v+D;K=Math.max(40,Math.min(80,K)),r.value=K}function x(){c.value=!1,document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",x),document.body.style.cursor="",document.body.style.userSelect=""}document.body.style.cursor="col-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",R),document.addEventListener("mouseup",x)}function f(){a.value=window.innerWidth}nt(()=>{if(window.addEventListener("resize",f),!s.isAuthenticated){console.warn("[ChatView] 未登录,跳转登录页"),t.push("/login");return}o.initialize(),i.connect()});const h=n.query.invite,_=n.query.eid;if(h&&_){console.log(`[ChatView] 检测到邀请链接: conv=${h}, eid=${_}`);const m=ke(()=>o.initialized,async p=>{var v,C;if(p){m();try{await Uw(h),console.log("[ChatView] 已成功加入邀请的会话"),await o.switchToConversation(h)}catch(R){console.error("[ChatView] 加入会话失败:",R);const x=(C=(v=R==null?void 0:R.response)==null?void 0:v.data)==null?void 0:C.code;if(x!==3034&&x!==3033)try{await o.switchToConversation(h)}catch(b){console.error("[ChatView] 切换会话也失败:",b)}}finally{t.replace({path:n.path,query:{}})}}},{immediate:!0})}return Ln(()=>{window.removeEventListener("resize",f),i.disconnect(),o.cleanup()}),(m,p)=>(k(),A("div",_T,[g("div",{class:ge(["chat-view__left",{"chat-view__left--full":!l.value}]),style:ln(!d.value&&l.value?{flex:`0 0 ${r.value}%`,maxWidth:`${r.value}%`}:{})},[E(yC)],6),l.value&&!d.value?(k(),A("div",{key:0,class:"chat-view__resize-handle",onMousedown:u},[...p[0]||(p[0]=[g("div",{class:"chat-view__resize-grip"},null,-1)])],32)):le("",!0),l.value?(k(),A("div",gT,[E(Ja)])):le("",!0)]))}}),yT=ct(vT,[["__scopeId","data-v-59ad8a56"]]),bT={class:"emergency-dispatcher"},wT={class:"emergency-dispatcher__panel"},ST={class:"subtitle"},ET={key:1,class:"error-msg"},CT=be({__name:"EmergencyDispatcher",setup(e){const t=_f(),n=q(!0),s=q(""),o=q("正在检测身份...");function i(){return new Promise((l,u)=>{if(typeof window.wx<"u"&&window.wx.agentConfig){l();return}const f=document.createElement("script");f.src="https://res.wx.qq.com/wwopen/js/wwLogin-1.2.7.js",f.onload=()=>{const h=document.createElement("script");h.src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js",h.onload=()=>l(),h.onerror=()=>u(new Error("加载企微 agent SDK 失败")),document.head.appendChild(h)},f.onerror=()=>u(new Error("加载企微 JS-SDK 失败")),document.head.appendChild(f)})}async function a(l){const u=await Qe.get("/api/wecom/jsapi-config",{params:{url:l}});if(u.data.code!==0)throw new Error(`拿签名失败: ${u.data.message}`);return u.data.data}function r(l){return new Promise((u,f)=>{const h=window.wx;h.config({beta:!0,debug:!1,appId:l.corp_id,timestamp:l.timestamp,nonceStr:l.nonce_str,signature:l.signature,jsApiList:["agentConfig"]}),h.ready(()=>u()),h.error(_=>f(new Error(`wx.config 失败: ${JSON.stringify(_)}`)))})}function c(l){return new Promise((u,f)=>{window.wx.agentConfig({corpid:l.corp_id,agentid:l.agent_id,timestamp:l.timestamp,nonceStr:l.nonce_str,signature:l.signature,jsApiList:["selectExternalContact"],success:_=>{const m=window.wecom_userid||"";u({userId:m})},fail:_=>f(new Error(`wx.agentConfig 失败: ${JSON.stringify(_)}`))})})}async function d(l){const u=await Qe.get("/api/wecom/check-role",{params:{userid:l}});if(u.data.code!==0)throw new Error(`检查角色失败: ${u.data.message}`);return u.data.data}return nt(async()=>{try{o.value="正在加载企微 SDK...",await i(),o.value="正在获取鉴权签名...";const l=window.location.href.split("#")[0],u=await a(l);o.value="正在初始化企微...",await r(u),o.value="正在获取身份...";const{userId:f}=await c(u);if(!f)throw new Error("未能获取当前用户 userid");o.value="正在检查角色...";const h=await d(f);console.log("[EmergencyDispatcher] 角色检测:",h),o.value=`角色: ${h.role},正在跳转...`,h.role==="agent"?window.location.href="/itagent/agent-preview?userid="+encodeURIComponent(f):t.push({path:"/h5-preview",query:{userid:f}})}catch(l){console.error("[EmergencyDispatcher] 错误:",l),s.value=l.message||"未知错误",n.value=!1,Vg({message:s.value,duration:5e3}),setTimeout(()=>{t.push({path:"/h5-preview"})},3e3)}}),(l,u)=>{const f=Co;return k(),A("div",bT,[g("div",wT,[u[0]||(u[0]=g("div",{class:"logo"},null,-1)),u[1]||(u[1]=g("h2",{class:"title"},"智能IT服务",-1)),g("p",ST,V(o.value),1),n.value?(k(),Rt(f,{key:0,type:"spinner",color:"#1989fa",size:"32"})):le("",!0),s.value?(k(),A("div",ET,V(s.value),1)):le("",!0)])])}}}),xT=ct(CT,[["__scopeId","data-v-12d9965e"]]),kT={class:"h5-preview"},TT={class:"h5-preview__topbar"},AT={key:1,class:"userid-tag"},RT={key:0,class:"h5-preview__content"},IT={class:"h5-preview__drawer-header"},OT={class:"h5-preview__drawer-body"},$T={key:2,class:"h5-preview__mobile-hint"},PT=be({__name:"H5PreviewView",setup(e){const t=gf(),n=q(!1),s=j(()=>t.query.userid||""),o=j(()=>window.innerWidth<500);return s.value&&Te({message:"员工模式",duration:1500}),(i,a)=>{const r=It,c=Os;return k(),A("div",kT,[g("div",TT,[a[4]||(a[4]=Lp('<div class="topbar-left" data-v-0f0a4177><span class="logo" data-v-0f0a4177>🤖</span><div class="title-block" data-v-0f0a4177><h1 class="title" data-v-0f0a4177>员工自助</h1><p class="subtitle" data-v-0f0a4177>智能IT服务 · 应急模式</p></div></div>',1)),o.value?(k(),A("button",{key:0,class:"topbar-menu-btn",onClick:a[0]||(a[0]=d=>n.value=!0)},[E(r,{name:"apps-o",size:"22"}),a[3]||(a[3]=g("span",null,"右栏",-1))])):(k(),A("div",AT," userid: "+V(s.value||"anonymous"),1))]),o.value?le("",!0):(k(),A("div",RT,[E(Ja)])),o.value?(k(),Rt(c,{key:1,show:n.value,"onUpdate:show":a[2]||(a[2]=d=>n.value=d),position:"top",style:{height:"85%"},"close-on-click-overlay":!0,closeable:"","safe-area-inset-top":""},{default:Je(()=>[g("div",IT,[a[5]||(a[5]=g("span",{class:"drawer-title"},"📋 右栏内容",-1)),E(r,{name:"cross",size:"20",class:"drawer-close",onClick:a[1]||(a[1]=d=>n.value=!1)})]),g("div",OT,[E(Ja)])]),_:1},8,["show"])):le("",!0),o.value?(k(),A("div",$T,[...a[6]||(a[6]=[g("p",null,"💡 电脑端访问可获得完整体验(右栏常驻显示)",-1),g("p",null,'移动端请点上方"右栏"按钮打开内容',-1)])])):le("",!0)])}}}),DT=ct(PT,[["__scopeId","data-v-0f0a4177"]]);function Lc(){return typeof navigator>"u"?!1:/wxwork/i.test(navigator.userAgent)}const BT=[{path:"/",name:"ChatView",component:yT,meta:{title:"智能IT服务",requiresAuth:!0}},{path:"/login",name:"Login",component:()=>Hn(()=>import("./Login-g2_0-mVf.js"),__vite__mapDeps([4,5,6])),meta:{title:"登录",requiresAuth:!1}},{path:"/bind",name:"Bind",component:()=>Hn(()=>import("./Bind-BL1ZRICK.js"),__vite__mapDeps([7,5,2,3,8,9])),meta:{title:"账号绑定",requiresAuth:!1}},{path:"/wework-only",name:"WeworkOnly",component:()=>Hn(()=>import("./WeworkOnly-D0_aA26A.js"),__vite__mapDeps([10,11])),meta:{title:"请在企业微信中打开",requiresAuth:!1}},{path:"/emergency",name:"EmergencyDispatcher",component:xT,meta:{title:"应急身份检测",requiresAuth:!1}},{path:"/h5-preview",name:"H5Preview",component:DT,meta:{title:"员工自助",requiresAuth:!1}},{path:"/automation/:id",name:"AutomationProgress",component:()=>Hn(()=>import("./AutomationProgress-z4I6KtHy.js"),__vite__mapDeps([12,1,2,13,9])),meta:{title:"自动化处置",requiresAuth:!0}},{path:"/intro",name:"VideoIntro",component:()=>Hn(()=>import("./VideoIntro-DM1r9p4C.js"),__vite__mapDeps([14,15])),meta:{title:"智能IT服务",requiresAuth:!1}},{path:"/:pathMatch(.*)*",redirect:"/"}],Kf=Uy({history:wy("/h5/v20260806f/"),routes:BT});Kf.beforeEach(async(e,t,n)=>{const s=/^localhost(:\d+)?$/.test(window.location.hostname)||window.location.hostname==="127.0.0.1";if(e.name==="WeworkOnly"||e.name==="Bind"||e.name==="EmergencyDispatcher"||e.name==="H5Preview"||e.name==="VideoIntro"){n();return}if(e.name==="Login"){if(!s&&!Lc()){n({name:"WeworkOnly"});return}n();return}const o=new URLSearchParams(window.location.search),i=e.query.token||o.get("token");if(i){localStorage.setItem("h5_token",i),o.delete("token");const d=o.toString(),l=d?`${window.location.pathname}?${d}`:window.location.pathname;window.history.replaceState({},"",l)}const{useEmployeeStore:a}=await Hn(async()=>{const{useEmployeeStore:d}=await Promise.resolve().then(()=>Yw);return{useEmployeeStore:d}},void 0),r=a();if(i){r.$patch({token:i});try{await r.fetchEmployeeInfo()}catch(d){console.warn("[Router] Portal token 验证失败:",d)}}if(!s&&!Lc()){if(r.isAuthenticated){n();return}await r.redirectToOAuth();return}if(e.name!=="VideoIntro"&&!localStorage.getItem("h5_video_intro_watched_v2")&&!(e.query.code||new URLSearchParams(window.location.search).get("code"))){n({name:"VideoIntro"});return}const c=e.query.code||new URLSearchParams(window.location.search).get("code");if(c){try{await r.handleOAuthCallback(c);const d=new URLSearchParams(window.location.search);d.delete("code"),d.delete("state");const l=d.toString(),u=l?`${window.location.pathname}?${l}`:window.location.pathname;window.history.replaceState({},"",u),n()}catch(d){console.warn("[Router] OAuth2 code 交换失败,清除 code 走静默授权:",d);const l=new URLSearchParams(window.location.search);l.delete("code"),l.delete("state");const u=l.toString()?`${window.location.pathname}?${l.toString()}`:window.location.pathname;window.location.replace(u);return}return}if(r.isAuthenticated){n();return}n({name:"Login"})});const Mr=cd(Bv);Mr.use(kv());Mr.use(Kf);const NT=Date.now(),Mc=500;Mr.mount("#app");const Fc=Date.now()-NT;Fc>=Mc?document.body.classList.add("app-loaded"):setTimeout(()=>{document.body.classList.add("app-loaded")},Mc-Fc);export{sg as $,a_ as A,Rd as B,Vd as C,VT as D,Jd as E,xr as F,C_ as G,M_ as H,It as I,j_ as J,vv as K,Co as L,Ev as M,d_ as N,V_ as O,Os as P,mv as Q,bv as R,xv as S,gg as T,pv as U,Vg as V,Fg as W,FT as X,J_ as Y,Q_ as Z,mg as _,Bl as a,an as a$,Pg as a0,ag as a1,u_ as a2,Ve as a3,ct as a4,k as a5,A as a6,Lp as a7,be as a8,qe as a9,ke as aA,vd as aB,Is as aC,Sn as aD,Ug as aE,Ke as aF,Wd as aG,wr as aH,Be as aI,ui as aJ,e_ as aK,Wt as aL,As as aM,Ts as aN,Xe as aO,j as aP,Jn as aQ,LT as aR,ot as aS,st as aT,s_ as aU,MT as aV,bd as aW,yr as aX,Ri as aY,ts as aZ,Yn as a_,E as aa,Se as ab,Tt as ac,Ll as ad,Cd as ae,He as af,Ge as ag,_f as ah,Et as ai,nt as aj,Ln as ak,g as al,Je as am,je as an,le as ao,V as ap,q as aq,gf as ar,Rt as as,pt as at,$e as au,Bt as av,Ai as aw,t_ as ax,vn as ay,Ut as az,Ss as b,ds as b0,Jt as b1,ws as b2,Eo as b3,Tr as b4,Re as b5,tt as b6,Gg as c,Qg as d,sv as e,ov as f,Km as g,Y_ as h,eg as i,hg as j,vg as k,O_ as l,o_ as m,l_ as n,T_ as o,bg as p,Wg as q,zl as r,Te as s,tv as t,Xg as u,h_ as v,cv as w,av as x,Ag as y,y_ as z};
|