sicmu 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +63 -0
- package/dist/index.iife.js +104 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Sicmu — Bilibili 音乐播放器
|
|
2
|
+
|
|
3
|
+
## 项目定位
|
|
4
|
+
|
|
5
|
+
基于 Vue 3 + TSX 的油猴脚本,注入到 Bilibili 页面,利用 B 站 API 和用户登录态,实现一个独立的、优雅的音乐播放器。
|
|
6
|
+
|
|
7
|
+
## 核心原则
|
|
8
|
+
|
|
9
|
+
- 不依赖 B 站原有的界面 DOM
|
|
10
|
+
- 交互和 UI 必须优雅
|
|
11
|
+
- 全量利用 B 站音视频资源
|
|
12
|
+
|
|
13
|
+
## 功能规划
|
|
14
|
+
|
|
15
|
+
### 播放引擎
|
|
16
|
+
|
|
17
|
+
- [ ] 纯音频播放(DASH 音频轨)
|
|
18
|
+
- [ ] 视频播放(可选)
|
|
19
|
+
- [ ] 播放控制(播放/暂停/进度/音量)
|
|
20
|
+
- [ ] 播放模式(单曲/列表/随机/循环)
|
|
21
|
+
|
|
22
|
+
### B 站 API 集成
|
|
23
|
+
|
|
24
|
+
- [ ] Wbi 签名
|
|
25
|
+
- [ ] 收藏夹列表 → 歌单
|
|
26
|
+
- [ ] 视频合集 → 歌单
|
|
27
|
+
- [ ] 视频详情 / 音频流获取
|
|
28
|
+
- [ ] UP 主空间 / 用户关注
|
|
29
|
+
|
|
30
|
+
### 路由(vue-router memory 模式)
|
|
31
|
+
|
|
32
|
+
- [ ] `/now-playing` — 正在播放(全屏/迷你)
|
|
33
|
+
- [ ] `/playlist/:id` — 歌单详情
|
|
34
|
+
- [ ] `/playlists` — 歌单列表(收藏夹/合集)
|
|
35
|
+
- [ ] `/search` — 搜索
|
|
36
|
+
- [ ] `/settings` — 设置
|
|
37
|
+
|
|
38
|
+
### UI / 交互
|
|
39
|
+
|
|
40
|
+
- [ ] 浮层容器(拖拽、折叠、缩放)
|
|
41
|
+
- [ ] 歌单展示
|
|
42
|
+
- [ ] 播放界面(封面、标题、进度条)
|
|
43
|
+
- [ ] 全局快捷键
|
|
44
|
+
- [ ] 通知 / Toast
|
|
45
|
+
|
|
46
|
+
### 歌单管理
|
|
47
|
+
|
|
48
|
+
- [ ] 收藏夹映射歌单
|
|
49
|
+
- [ ] 合集映射歌单
|
|
50
|
+
- [ ] 播放队列
|
|
51
|
+
- [ ] 播放历史
|
|
52
|
+
|
|
53
|
+
## 技术栈
|
|
54
|
+
|
|
55
|
+
| 层 | 技术 |
|
|
56
|
+
| -------- | ---------------------------- |
|
|
57
|
+
| 运行环境 | Tampermonkey / Violentmonkey |
|
|
58
|
+
| 构建 | vp pack (tsdown) → IIFE |
|
|
59
|
+
| UI | Vue 3 + TSX + SCSS |
|
|
60
|
+
| 路由 | vue-router (memory history) |
|
|
61
|
+
| 状态管理 | Pinia |
|
|
62
|
+
| 样式注入 | build:done hook 内联 CSS |
|
|
63
|
+
| API 请求 | 原生 fetch (同域) |
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
(function(){var e=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},t=new class extends e{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},n={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},r=new class{#e=n;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function i(e){setTimeout(e,0)}var a=typeof window>`u`||`Deno`in globalThis;function o(){}function s(e,t){return typeof e==`function`?e(t):e}function c(e){return typeof e==`number`&&e>=0&&e!==1/0}function l(e,t){return Math.max(e+(t||0)-Date.now(),0)}function u(e,t){return typeof e==`function`?e(t):e}function d(e,t){return typeof e==`function`?e(t):e}function f(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==m(o,t.options))return!1}else if(!g(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function p(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(h(t.options.mutationKey)!==h(a))return!1}else if(!g(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function m(e,t){return(t?.queryKeyHashFn||h)(e)}function h(e){return JSON.stringify(e,(e,t)=>x(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function g(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>g(e[n],t[n])):!1}var _=Object.prototype.hasOwnProperty;function v(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=b(e)&&b(t);if(!r&&!(x(e)&&x(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:_.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=v(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function y(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function b(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function x(e){if(!S(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!S(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function S(e){return Object.prototype.toString.call(e)===`[object Object]`}function ee(e){return new Promise(t=>{r.setTimeout(t,e)})}function te(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:v(e,t)}function ne(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function re(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ie=Symbol();function ae(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ie?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function oe(e,t){return typeof e==`function`?e(...t):!!e}function se(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var C=(()=>{let e=()=>a;return{isServer(){return e()},setIsServer(t){e=t}}})();function ce(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var le=i;function ue(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=le,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var w=ue(),de=new class extends e{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function fe(e){return Math.min(1e3*2**e,3e4)}function pe(e){return(e??`online`)===`online`?de.isOnline():!0}var me=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function he(e){let n=!1,r=0,i,a=ce(),o=()=>a.status!==`pending`,s=t=>{if(!o()){let n=new me(t);p(n),e.onCancel?.(n)}},c=()=>{n=!0},l=()=>{n=!1},u=()=>t.isFocused()&&(e.networkMode===`always`||de.isOnline())&&e.canRun(),d=()=>pe(e.networkMode)&&e.canRun(),f=e=>{o()||(i?.(),a.resolve(e))},p=e=>{o()||(i?.(),a.reject(e))},m=()=>new Promise(t=>{i=e=>{(o()||u())&&t(e)},e.onPause?.()}).then(()=>{i=void 0,o()||e.onContinue?.()}),h=()=>{if(o())return;let t,i=r===0?e.initialPromise:void 0;try{t=i??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(f).catch(t=>{if(o())return;let i=e.retry??(C.isServer()?0:3),a=e.retryDelay??fe,s=typeof a==`function`?a(r,t):a,c=i===!0||typeof i==`number`&&r<i||typeof i==`function`&&i(r,t);if(n||!c){p(t);return}r++,e.onFail?.(r,t),ee(s).then(()=>u()?void 0:m()).then(()=>{n?p(t):h()})})};return{promise:a,status:()=>a.status,cancel:s,continue:()=>(i?.(),a),cancelRetry:c,continueRetry:l,canStart:d,start:()=>(d()?h():m().then(h),a)}}var ge=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),c(this.gcTime)&&(this.#e=r.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(C.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(r.clearTimeout(this.#e),this.#e=void 0)}};function _e(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{se(e,()=>t.signal,()=>n=!0)},u=ae(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?re:ne;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?ye:ve,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:ve(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function ve(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function ye(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var be=class extends ge{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Ce(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Ce(this.options);e.data!==void 0&&(this.setState(Se(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=te(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(o).catch(o):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>d(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ie||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>u(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!l(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=ae(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?_e(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=he({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof me&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof me){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...xe(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Se(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),w.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function xe(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:pe(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Se(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Ce(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var we=class extends e{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=ce(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Ee(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return De(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return De(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof d(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!y(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&Oe(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||d(this.options.enabled,this.#t)!==d(t.enabled,this.#t)||u(this.options.staleTime,this.#t)!==u(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||d(this.options.enabled,this.#t)!==d(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return Ae(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(o)),t}#g(){this.#b();let e=u(this.options.staleTime,this.#t);if(C.isServer()||this.#r.isStale||!c(e))return;let t=l(this.#r.dataUpdatedAt,e)+1;this.#d=r.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(C.isServer()||d(this.options.enabled,this.#t)===!1||!c(this.#p)||this.#p===0)&&(this.#f=r.setInterval(()=>{(this.options.refetchIntervalInBackground||t.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(r.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(r.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,f;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&Ee(e,t),o=i&&Oe(e,n,t,r);(a||o)&&(l={...l,...xe(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:p,errorUpdatedAt:m,status:h}=l;f=l.data;let g=!1;if(t.placeholderData!==void 0&&f===void 0&&h===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,g=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(h=`success`,f=te(i?.data,e,t),u=!0)}if(t.select&&f!==void 0&&!g)if(i&&f===a?.data&&t.select===this.#c)f=this.#l;else try{this.#c=t.select,f=t.select(f),f=te(i?.data,f,t),this.#l=f,this.#s=null}catch(e){this.#s=e}this.#s&&(p=this.#s,f=this.#l,m=Date.now(),h=`error`);let _=l.fetchStatus===`fetching`,v=h===`pending`,y=h===`error`,b=v&&_,x=f!==void 0,S={status:h,fetchStatus:l.fetchStatus,isPending:v,isSuccess:h===`success`,isError:y,isInitialLoading:b,isLoading:b,data:f,dataUpdatedAt:l.dataUpdatedAt,error:p,errorUpdatedAt:m,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:_,isRefetching:_&&!v,isLoadingError:y&&!x,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:y&&x,isStale:ke(e,t),refetch:this.refetch,promise:this.#o,isEnabled:d(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=S.data!==void 0,r=S.status===`error`&&!t,i=e=>{r?e.reject(S.error):t&&e.resolve(S.data)},a=()=>{i(this.#o=S.promise=ce())},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||S.data!==o.value)&&a();break;case`rejected`:(!r||S.error!==o.reason)&&a();break}}return S}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!y(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){w.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function Te(e,t){return d(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&d(t.retryOnMount,e)===!1)}function Ee(e,t){return Te(e,t)||e.state.data!==void 0&&De(e,t,t.refetchOnMount)}function De(e,t,n){if(d(t.enabled,e)!==!1&&u(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&ke(e,t)}return!1}function Oe(e,t,n,r){return(e!==t||d(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&ke(e,n)}function ke(e,t){return d(t.enabled,e)!==!1&&e.isStaleByTime(u(t.staleTime,e))}function Ae(e,t){return!y(e.getCurrentResult(),t)}var je=class extends ge{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Me(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=he({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),w.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Me(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Ne=class extends e{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new je({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Pe(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Pe(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Pe(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=Pe(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){w.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>p(t,e))}findAll(e={}){return this.getAll().filter(t=>p(e,t))}notify(e){w.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return w.batch(()=>Promise.all(e.map(e=>e.continue().catch(o))))}};function Pe(e){return e.options.scope?.id}var Fe=class extends e{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??m(r,t),a=this.get(i);return a||(a=new be({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){w.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>f(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>f(e,t)):t}notify(e){w.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){w.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){w.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Ie=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Fe,this.#t=e.mutationCache||new Ne,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=t.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=de.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(u(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=s(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return w.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;w.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return w.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=w.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(o).catch(o)}invalidateQueries(e,t={}){return w.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=w.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(o)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(o)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(u(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(o).catch(o)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(o).catch(o)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return de.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(h(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{g(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(h(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{g(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=m(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===ie&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}};
|
|
2
|
+
/**
|
|
3
|
+
* @vue/shared v3.5.35
|
|
4
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
5
|
+
* @license MIT
|
|
6
|
+
**/
|
|
7
|
+
function Le(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}let T={},Re=[],E=()=>{},ze=()=>!1,Be=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ve=e=>e.startsWith(`onUpdate:`),D=Object.assign,He=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},Ue=Object.prototype.hasOwnProperty,O=(e,t)=>Ue.call(e,t),k=Array.isArray,We=e=>Ye(e)===`[object Map]`,Ge=e=>Ye(e)===`[object Set]`,Ke=e=>Ye(e)===`[object Date]`,A=e=>typeof e==`function`,j=e=>typeof e==`string`,M=e=>typeof e==`symbol`,N=e=>typeof e==`object`&&!!e,qe=e=>(N(e)||A(e))&&A(e.then)&&A(e.catch),Je=Object.prototype.toString,Ye=e=>Je.call(e),Xe=e=>Ye(e).slice(8,-1),Ze=e=>Ye(e)===`[object Object]`,Qe=e=>j(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,$e=Le(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),et=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},tt=/-\w/g,P=et(e=>e.replace(tt,e=>e.slice(1).toUpperCase())),nt=/\B([A-Z])/g,rt=et(e=>e.replace(nt,`-$1`).toLowerCase()),it=et(e=>e.charAt(0).toUpperCase()+e.slice(1)),at=et(e=>e?`on${it(e)}`:``),ot=(e,t)=>!Object.is(e,t),st=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ct=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},lt=e=>{let t=parseFloat(e);return isNaN(t)?e:t},ut,dt=()=>ut||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function ft(e){if(k(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=j(r)?gt(r):ft(r);if(i)for(let e in i)t[e]=i[e]}return t}else if(j(e)||N(e))return e}let pt=/;(?![^(]*\))/g,mt=/:([^]+)/,ht=/\/\*[^]*?\*\//g;function gt(e){let t={};return e.replace(ht,``).split(pt).forEach(e=>{if(e){let n=e.split(mt);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function _t(e){let t=``;if(j(e))t=e;else if(k(e))for(let n=0;n<e.length;n++){let r=_t(e[n]);r&&(t+=r+` `)}else if(N(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}let vt=Le(`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`);function yt(e){return!!e||e===``}function bt(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=xt(e[r],t[r]);return n}function xt(e,t){if(e===t)return!0;let n=Ke(e),r=Ke(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=M(e),r=M(t),n||r)return e===t;if(n=k(e),r=k(t),n||r)return n&&r?bt(e,t):!1;if(n=N(e),r=N(t),n||r){if(!n||!r||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!xt(e[n],t[n]))return!1}}return String(e)===String(t)}
|
|
8
|
+
/**
|
|
9
|
+
* @vue/reactivity v3.5.35
|
|
10
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
11
|
+
* @license MIT
|
|
12
|
+
**/
|
|
13
|
+
let F;var St=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&F&&(F.active?(this.parent=F,this.index=(F.scopes||=[]).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){let t=F;try{return F=this,e()}finally{F=t}}}on(){++this._on===1&&(this.prevScope=F,F=this)}off(){if(this._on>0&&--this._on===0){if(F===this)F=this.prevScope;else{let e=F;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function Ct(){return F}function wt(e,t=!1){F&&F.cleanups.push(e)}let I,Tt=new WeakSet;var Et=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,F&&(F.active?F.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Tt.has(this)&&(Tt.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||At(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ht(this),Nt(this);let e=I,t=L;I=this,L=!0;try{return this.fn()}finally{Pt(this),I=e,L=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Lt(e);this.deps=this.depsTail=void 0,Ht(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Tt.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ft(this)&&this.run()}get dirty(){return Ft(this)}};let Dt=0,Ot,kt;function At(e,t=!1){if(e.flags|=8,t){e.next=kt,kt=e;return}e.next=Ot,Ot=e}function jt(){Dt++}function Mt(){if(--Dt>0)return;if(kt){let e=kt;for(kt=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ot;){let t=Ot;for(Ot=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Nt(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Pt(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),Lt(r),Rt(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Ft(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(It(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function It(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ut)||(e.globalVersion=Ut,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ft(e))))return;e.flags|=2;let t=e.dep,n=I,r=L;I=e,L=!0;try{Nt(e);let n=e.fn(e._value);(t.version===0||ot(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{I=n,L=r,Pt(e),e.flags&=-3}}function Lt(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)Lt(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Rt(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let L=!0,zt=[];function Bt(){zt.push(L),L=!1}function Vt(){let e=zt.pop();L=e===void 0?!0:e}function Ht(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=I;I=void 0;try{t()}finally{I=e}}}let Ut=0;var Wt=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Gt=class{constructor(e){this.computed=e,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(e){if(!I||!L||I===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==I)t=this.activeLink=new Wt(I,this),I.deps?(t.prevDep=I.depsTail,I.depsTail.nextDep=t,I.depsTail=t):I.deps=I.depsTail=t,Kt(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=I.depsTail,t.nextDep=void 0,I.depsTail.nextDep=t,I.depsTail=t,I.deps===t&&(I.deps=e)}return t}trigger(e){this.version++,Ut++,this.notify(e)}notify(e){jt();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Mt()}}};function Kt(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Kt(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}let qt=new WeakMap,Jt=Symbol(``),Yt=Symbol(``),Xt=Symbol(``);function R(e,t,n){if(L&&I){let t=qt.get(e);t||qt.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new Gt),r.map=t,r.key=n),r.track()}}function Zt(e,t,n,r,i,a){let o=qt.get(e);if(!o){Ut++;return}let s=e=>{e&&e.trigger()};if(jt(),t===`clear`)o.forEach(s);else{let i=k(e),a=i&&Qe(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===Xt||!M(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(Xt)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(Jt)),We(e)&&s(o.get(Yt)));break;case`delete`:i||(s(o.get(Jt)),We(e)&&s(o.get(Yt)));break;case`set`:We(e)&&s(o.get(Jt));break}}Mt()}function Qt(e,t){let n=qt.get(e);return n&&n.get(t)}function $t(e){let t=B(e);return t===e?t:(R(t,`iterate`,Xt),z(e)?t:t.map(Wn))}function en(e){return R(e=B(e),`iterate`,Xt),e}function tn(e,t){return Vn(e)?Gn(Bn(e)?Wn(t):t):Wn(t)}let nn={__proto__:null,[Symbol.iterator](){return rn(this,Symbol.iterator,e=>tn(this,e))},concat(...e){return $t(this).concat(...e.map(e=>k(e)?$t(e):e))},entries(){return rn(this,`entries`,e=>(e[1]=tn(this,e[1]),e))},every(e,t){return on(this,`every`,e,t,void 0,arguments)},filter(e,t){return on(this,`filter`,e,t,e=>e.map(e=>tn(this,e)),arguments)},find(e,t){return on(this,`find`,e,t,e=>tn(this,e),arguments)},findIndex(e,t){return on(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return on(this,`findLast`,e,t,e=>tn(this,e),arguments)},findLastIndex(e,t){return on(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return on(this,`forEach`,e,t,void 0,arguments)},includes(...e){return cn(this,`includes`,e)},indexOf(...e){return cn(this,`indexOf`,e)},join(e){return $t(this).join(e)},lastIndexOf(...e){return cn(this,`lastIndexOf`,e)},map(e,t){return on(this,`map`,e,t,void 0,arguments)},pop(){return ln(this,`pop`)},push(...e){return ln(this,`push`,e)},reduce(e,...t){return sn(this,`reduce`,e,t)},reduceRight(e,...t){return sn(this,`reduceRight`,e,t)},shift(){return ln(this,`shift`)},some(e,t){return on(this,`some`,e,t,void 0,arguments)},splice(...e){return ln(this,`splice`,e)},toReversed(){return $t(this).toReversed()},toSorted(e){return $t(this).toSorted(e)},toSpliced(...e){return $t(this).toSpliced(...e)},unshift(...e){return ln(this,`unshift`,e)},values(){return rn(this,`values`,e=>tn(this,e))}};function rn(e,t,n){let r=en(e),i=r[t]();return r!==e&&!z(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}let an=Array.prototype;function on(e,t,n,r,i,a){let o=en(e),s=o!==e&&!z(e),c=o[t];if(c!==an[t]){let t=c.apply(e,a);return s?Wn(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,tn(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function sn(e,t,n,r){let i=en(e),a=i!==e&&!z(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=tn(e,t)),n.call(this,t,tn(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?tn(e,c):c}function cn(e,t,n){let r=B(e);R(r,`iterate`,Xt);let i=r[t](...n);return(i===-1||i===!1)&&Hn(n[0])?(n[0]=B(n[0]),r[t](...n)):i}function ln(e,t,n=[]){Bt(),jt();let r=B(e)[t].apply(e,n);return Mt(),Vt(),r}let un=Le(`__proto__,__v_isRef,__isVue`),dn=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(M));function fn(e){M(e)||(e=String(e));let t=B(this);return R(t,`has`,e),t.hasOwnProperty(e)}var pn=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Nn:Mn:i?jn:An).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=k(e);if(!r){let e;if(a&&(e=nn[t]))return e;if(t===`hasOwnProperty`)return fn}let o=Reflect.get(e,t,V(e)?e:n);if((M(t)?dn.has(t):un(t))||(r||R(e,`get`,t),i))return o;if(V(o)){let e=a&&Qe(t)?o:o.value;return r&&N(e)?Ln(e):e}return N(o)?r?Ln(o):Fn(o):o}},mn=class extends pn{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=k(e)&&Qe(t);if(!this._isShallow){let e=Vn(i);if(!z(n)&&!Vn(n)&&(i=B(i),n=B(n)),!a&&V(i)&&!V(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:O(e,t),s=Reflect.set(e,t,n,V(e)?e:r);return e===B(r)&&(o?ot(n,i)&&Zt(e,`set`,t,n,i):Zt(e,`add`,t,n)),s}deleteProperty(e,t){let n=O(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&Zt(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!M(t)||!dn.has(t))&&R(e,`has`,t),n}ownKeys(e){return R(e,`iterate`,k(e)?`length`:Jt),Reflect.ownKeys(e)}},hn=class extends pn{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}};let gn=new mn,_n=new hn,vn=new mn(!0),yn=new hn(!0),bn=e=>e,xn=e=>Reflect.getPrototypeOf(e);function Sn(e,t,n){return function(...r){let i=this.__v_raw,a=B(i),o=We(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,l=i[e](...r),u=n?bn:t?Gn:Wn;return!t&&R(a,`iterate`,c?Yt:Jt),D(Object.create(l),{next(){let{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}}})}}function Cn(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function wn(e,t){let n={get(n){let r=this.__v_raw,i=B(r),a=B(n);e||(ot(n,a)&&R(i,`get`,n),R(i,`get`,a));let{has:o}=xn(i),s=t?bn:e?Gn:Wn;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&R(B(t),`iterate`,Jt),t.size},has(t){let n=this.__v_raw,r=B(n),i=B(t);return e||(ot(t,i)&&R(r,`has`,t),R(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=B(a),s=t?bn:e?Gn:Wn;return!e&&R(o,`iterate`,Jt),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return D(n,e?{add:Cn(`add`),set:Cn(`set`),delete:Cn(`delete`),clear:Cn(`clear`)}:{add(e){let n=B(this),r=xn(n),i=B(e),a=!t&&!z(e)&&!Vn(e)?i:e;return r.has.call(n,a)||ot(e,a)&&r.has.call(n,e)||ot(i,a)&&r.has.call(n,i)||(n.add(a),Zt(n,`add`,a,a)),this},set(e,n){!t&&!z(n)&&!Vn(n)&&(n=B(n));let r=B(this),{has:i,get:a}=xn(r),o=i.call(r,e);o||=(e=B(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?ot(n,s)&&Zt(r,`set`,e,n,s):Zt(r,`add`,e,n),this},delete(e){let t=B(this),{has:n,get:r}=xn(t),i=n.call(t,e);i||=(e=B(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&Zt(t,`delete`,e,void 0,a),o},clear(){let e=B(this),t=e.size!==0,n=e.clear();return t&&Zt(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Sn(r,e,t)}),n}function Tn(e,t){let n=wn(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(O(n,r)&&r in t?n:t,r,i)}let En={get:Tn(!1,!1)},Dn={get:Tn(!1,!0)},On={get:Tn(!0,!1)},kn={get:Tn(!0,!0)},An=new WeakMap,jn=new WeakMap,Mn=new WeakMap,Nn=new WeakMap;function Pn(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Fn(e){return Vn(e)?e:zn(e,!1,gn,En,An)}function In(e){return zn(e,!1,vn,Dn,jn)}function Ln(e){return zn(e,!0,_n,On,Mn)}function Rn(e){return zn(e,!0,yn,kn,Nn)}function zn(e,t,n,r,i){if(!N(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=Pn(Xe(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function Bn(e){return Vn(e)?Bn(e.__v_raw):!!(e&&e.__v_isReactive)}function Vn(e){return!!(e&&e.__v_isReadonly)}function z(e){return!!(e&&e.__v_isShallow)}function Hn(e){return e?!!e.__v_raw:!1}function B(e){let t=e&&e.__v_raw;return t?B(t):e}function Un(e){return!O(e,`__v_skip`)&&Object.isExtensible(e)&&ct(e,`__v_skip`,!0),e}let Wn=e=>N(e)?Fn(e):e,Gn=e=>N(e)?Ln(e):e;function V(e){return e?e.__v_isRef===!0:!1}function Kn(e){return qn(e,!1)}function qn(e,t){return V(e)?e:new Jn(e,t)}var Jn=class{constructor(e,t){this.dep=new Gt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:B(e),this._value=t?e:Wn(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||z(e)||Vn(e);e=n?e:B(e),ot(e,t)&&(this._rawValue=e,this._value=n?e:Wn(e),this.dep.trigger())}};function Yn(e){return V(e)?e.value:e}let Xn={get:(e,t,n)=>t===`__v_raw`?e:Yn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return V(i)&&!V(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Zn(e){return Bn(e)?e:new Proxy(e,Xn)}function Qn(e){let t=k(e)?Array(e.length):{};for(let n in e)t[n]=er(e,n);return t}var $n=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=M(t)?t:String(t),this._raw=B(e);let r=!0,i=e;if(!k(e)||M(this._key)||!Qe(this._key))do r=!Hn(i)||z(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=Yn(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&V(this._raw[this._key])){let t=this._object[this._key];if(V(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return Qt(this._raw,this._key)}};function er(e,t,n){return new $n(e,t,n)}var tr=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Gt(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ut-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&I!==this)return At(this,!0),!0}get value(){let e=this.dep.track();return It(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function nr(e,t,n=!1){let r,i;return A(e)?r=e:(r=e.get,i=e.set),new tr(r,i,n)}let rr={},ir=new WeakMap,ar;function or(e,t=!1,n=ar){if(n){let t=ir.get(n);t||ir.set(n,t=[]),t.push(e)}}function sr(e,t,n=T){let{immediate:r,deep:i,once:a,scheduler:o,augmentJob:s,call:c}=n,l=e=>i?e:z(e)||i===!1||i===0?cr(e,1):cr(e),u,d,f,p,m=!1,h=!1;if(V(e)?(d=()=>e.value,m=z(e)):Bn(e)?(d=()=>l(e),m=!0):k(e)?(h=!0,m=e.some(e=>Bn(e)||z(e)),d=()=>e.map(e=>{if(V(e))return e.value;if(Bn(e))return l(e);if(A(e))return c?c(e,2):e()})):d=A(e)?t?c?()=>c(e,2):e:()=>{if(f){Bt();try{f()}finally{Vt()}}let t=ar;ar=u;try{return c?c(e,3,[p]):e(p)}finally{ar=t}}:E,t&&i){let e=d,t=i===!0?1/0:i;d=()=>cr(e(),t)}let g=Ct(),_=()=>{u.stop(),g&&g.active&&He(g.effects,u)};if(a&&t){let e=t;t=(...t)=>{e(...t),_()}}let v=h?Array(e.length).fill(rr):rr,y=e=>{if(!(!(u.flags&1)||!u.dirty&&!e))if(t){let e=u.run();if(i||m||(h?e.some((e,t)=>ot(e,v[t])):ot(e,v))){f&&f();let n=ar;ar=u;try{let n=[e,v===rr?void 0:h&&v[0]===rr?[]:v,p];v=e,c?c(t,3,n):t(...n)}finally{ar=n}}}else u.run()};return s&&s(y),u=new Et(d),u.scheduler=o?()=>o(y,!1):y,p=e=>or(e,!1,u),f=u.onStop=()=>{let e=ir.get(u);if(e){if(c)c(e,4);else for(let t of e)t();ir.delete(u)}},t?r?y(!0):v=u.run():o?o(y.bind(null,!0),!0):u.run(),_.pause=u.pause.bind(u),_.resume=u.resume.bind(u),_.stop=_,_}function cr(e,t=1/0,n){if(t<=0||!N(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,V(e))cr(e.value,t,n);else if(k(e))for(let r=0;r<e.length;r++)cr(e[r],t,n);else if(Ge(e)||We(e))e.forEach(e=>{cr(e,t,n)});else if(Ze(e)){for(let r in e)cr(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&cr(e[r],t,n)}return e}
|
|
14
|
+
/**
|
|
15
|
+
* @vue/runtime-core v3.5.35
|
|
16
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
17
|
+
* @license MIT
|
|
18
|
+
**/
|
|
19
|
+
function lr(e,t,n,r){try{return r?e(...r):e()}catch(e){ur(e,t,n)}}function H(e,t,n,r){if(A(e)){let i=lr(e,t,n,r);return i&&qe(i)&&i.catch(e=>{ur(e,t,n)}),i}if(k(e)){let i=[];for(let a=0;a<e.length;a++)i.push(H(e[a],t,n,r));return i}}function ur(e,t,n,r=!0){let i=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||T;if(t){let r=t.parent,i=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){let t=r.ec;if(t){for(let n=0;n<t.length;n++)if(t[n](e,i,o)===!1)return}r=r.parent}if(a){Bt(),lr(a,null,10,[e,i,o]),Vt();return}}dr(e,n,i,r,o)}function dr(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}let U=[],fr=-1,pr=[],mr=null,hr=0,gr=Promise.resolve(),_r=null;function vr(e){let t=_r||gr;return e?t.then(this?e.bind(this):e):t}function yr(e){let t=fr+1,n=U.length;for(;t<n;){let r=t+n>>>1,i=U[r],a=Tr(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function br(e){if(!(e.flags&1)){let t=Tr(e),n=U[U.length-1];!n||!(e.flags&2)&&t>=Tr(n)?U.push(e):U.splice(yr(t),0,e),e.flags|=1,xr()}}function xr(){_r||=gr.then(Er)}function Sr(e){k(e)?pr.push(...e):mr&&e.id===-1?mr.splice(hr+1,0,e):e.flags&1||(pr.push(e),e.flags|=1),xr()}function Cr(e,t,n=fr+1){for(;n<U.length;n++){let t=U[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;U.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function wr(e){if(pr.length){let e=[...new Set(pr)].sort((e,t)=>Tr(e)-Tr(t));if(pr.length=0,mr){mr.push(...e);return}for(mr=e,hr=0;hr<mr.length;hr++){let e=mr[hr];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}mr=null,hr=0}}let Tr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Er(e){try{for(fr=0;fr<U.length;fr++){let e=U[fr];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),lr(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;fr<U.length;fr++){let e=U[fr];e&&(e.flags&=-2)}fr=-1,U.length=0,wr(e),_r=null,(U.length||pr.length)&&Er(e)}}let Dr,Or=[],kr=!1;function Ar(e,...t){Dr?Dr.emit(e,...t):kr||Or.push({event:e,args:t})}function jr(e,t){Dr=e,Dr?(Dr.enabled=!0,Or.forEach(({event:e,args:t})=>Dr.emit(e,...t)),Or=[]):typeof window<`u`&&window.HTMLElement&&!(window.navigator?.userAgent)?.includes(`jsdom`)?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(e=>{jr(e,t)}),setTimeout(()=>{Dr||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,kr=!0,Or=[])},3e3)):(kr=!0,Or=[])}function Mr(e,t){Ar(`app:init`,e,t,{Fragment:K,Text:$a,Comment:eo,Static:to})}function Nr(e){Ar(`app:unmount`,e)}let Pr=Rr(`component:added`),Fr=Rr(`component:updated`),Ir=Rr(`component:removed`),Lr=e=>{Dr&&typeof Dr.cleanupBuffer==`function`&&!Dr.cleanupBuffer(e)&&Ir(e)};function Rr(e){return t=>{Ar(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}function zr(e,t,n){Ar(`component:emit`,e.appContext.app,e,t,n)}let Br=null,Vr=null;function Hr(e){let t=Br;return Br=e,Vr=e&&e.type.__scopeId||null,t}function Ur(e,t=Br,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&io(-1);let i=Hr(t),a;try{a=e(...n)}finally{Hr(i),r._d&&io(1)}return __VUE_PROD_DEVTOOLS__&&Fr(t),a};return r._n=!0,r._c=!0,r._d=!0,r}function Wr(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(Bt(),H(c,n,8,[e.el,s,e,t]),Vt())}}function Gr(e,t){if(J){let n=J.provides,r=J.parent&&J.parent.provides;r===n&&(n=J.provides=Object.create(r)),n[e]=t}}function Kr(e,t,n=!1){let r=Co();if(r||la){let i=la?la._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&A(t)?t.call(r&&r.proxy):t}}function qr(){return!!(Co()||la)}let Jr=Symbol.for(`v-scx`),Yr=()=>Kr(Jr);function Xr(e,t,n){return Zr(e,t,n)}function Zr(e,t,n=T){let{immediate:r,deep:i,flush:a,once:o}=n,s=D({},n),c=t&&r||!t&&a!==`post`,l;if(ko){if(a===`sync`){let e=Yr();l=e.__watcherHandles||=[]}else if(!c){let e=()=>{};return e.stop=E,e.resume=E,e.pause=E,e}}let u=J;s.call=(e,t,n)=>H(e,u,t,n);let d=!1;a===`post`?s.scheduler=e=>{G(e,u&&u.suspense)}:a!==`sync`&&(d=!0,s.scheduler=(e,t)=>{t?e():br(e)}),s.augmentJob=e=>{t&&(e.flags|=4),d&&(e.flags|=2,u&&(e.id=u.uid,e.i=u))};let f=sr(e,t,s);return ko&&(l?l.push(f):c&&f()),f}function Qr(e,t,n){let r=this.proxy,i=j(e)?e.includes(`.`)?$r(r,e):()=>r[e]:e.bind(r,r),a;A(t)?a=t:(a=t.handler,n=t);let o=Eo(this),s=Zr(i,a.bind(r),n);return o(),s}function $r(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}let ei=new WeakMap,ti=Symbol(`_vte`),ni=e=>e.__isTeleport,ri=e=>e&&(e.disabled||e.disabled===``),ii=e=>e&&(e.defer||e.defer===``),ai=e=>typeof SVGElement<`u`&&e instanceof SVGElement,oi=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,si=(e,t)=>{let n=e&&e.to;return j(n)?t?t(n):null:n},ci={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:_}}=l,v=ri(t.props),{dynamicChildren:y}=t,b=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},x=(e=t)=>{let n=ri(e.props),r=e.target=si(e.props,m),a=pi(r,e,h,p);r&&(o!==`svg`&&ai(r)?o=`svg`:o!==`mathml`&&oi(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),fi(e,!1)))},S=e=>{let t=()=>{ei.get(e)===t&&(ei.delete(e),ri(e.props)&&(b(e,_(e.el)||n,e.anchor),fi(e,!0)),x(e))};ei.set(e,t),G(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),ii(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),fi(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=ei.get(e);if(u){u.flags|=8,ei.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=ri(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||ai(p)?o=`svg`:(o===`mathml`||oi(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),Ka(e,t,!0)):c||d(e,t,_,b,i,a,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):li(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=t.target=si(t.props,m);e&&li(t,e,null,l,0)}else g&&li(t,p,h,l,1);fi(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=a||!ri(f),m=ei.get(e);if(m&&(m.flags|=8,ei.delete(e)),d&&(i(l),i(u)),a&&i(c),!m&&o&16)for(let e=0;e<s.length;e++){let i=s[e];r(i,t,n,p,!!i.dynamicChildren)}},move:li,hydrate:ui};function li(e,t,n,{o:{insert:r},m:i},a=2){a===0&&r(e.targetAnchor,t,n);let{el:o,anchor:s,shapeFlag:c,children:l,props:u}=e,d=a===2;if(d&&r(o,t,n),!ei.has(e)&&(!d||ri(u))&&c&16)for(let e=0;e<l.length;e++)i(l[e],t,n,2);d&&r(s,t,n)}function ui(e,t,n,r,i,a,{o:{nextSibling:o,parentNode:s,querySelector:c,insert:l,createText:u}},d){function f(e,n){let r=n;for(;r;){if(r&&r.nodeType===8){if(r.data===`teleport start anchor`)t.targetStart=r;else if(r.data===`teleport anchor`){t.targetAnchor=r,e._lpa=t.targetAnchor&&o(t.targetAnchor);break}}r=o(r)}}function p(e,t){t.anchor=d(o(e),t,s(e),n,r,i,a)}let m=t.target=si(t.props,c),h=ri(t.props);if(m){let c=m._lpa||m.firstChild;t.shapeFlag&16&&(h?(p(e,t),f(m,c),t.targetAnchor||pi(m,t,u,l,s(e)===m?e:null)):(t.anchor=o(e),f(m,c),t.targetAnchor||pi(m,t,u,l),d(c&&o(c),t,m,n,r,i,a))),fi(t,h)}else h&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}let di=ci;function fi(e,t){let n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute(`data-v-owner`,n.uid),r=r.nextSibling;n.ut()}}function pi(e,t,n,r,i=null){let a=t.targetStart=n(``),o=t.targetAnchor=n(``);return a[ti]=o,e&&(r(a,e,i),r(o,e,i)),o}let mi=Symbol(`_leaveCb`);function hi(e,t){e.shapeFlag&6&&e.component?(e.transition=t,hi(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 gi(e,t){return A(e)?D({name:e.name},t,{setup:e}):e}function _i(e){e.ids=[e.ids[0]+ e.ids[2]+++`-`,0,0]}function vi(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}let yi=new WeakMap;function bi(e,t,n,r,i=!1){if(k(e)){e.forEach((e,a)=>bi(e,t&&(k(t)?t[a]:t),n,r,i));return}if(Si(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&bi(e,t,n,r.component.subTree);return}let a=r.shapeFlag&4?Io(r.component):r.el,o=i?null:a,{i:s,r:c}=e,l=t&&t.r,u=s.refs===T?s.refs={}:s.refs,d=s.setupState,f=B(d),p=d===T?ze:e=>vi(u,e)?!1:O(f,e),m=(e,t)=>!(t&&vi(u,t));if(l!=null&&l!==c){if(xi(t),j(l))u[l]=null,p(l)&&(d[l]=null);else if(V(l)){let e=t;m(l,e.k)&&(l.value=null),e.k&&(u[e.k]=null)}}if(A(c))lr(c,s,12,[o,u]);else{let t=j(c),r=V(c);if(t||r){let s=()=>{if(e.f){let n=t?p(c)?d[c]:u[c]:m(c)||!e.k?c.value:u[e.k];if(i)k(n)&&He(n,a);else if(k(n))n.includes(a)||n.push(a);else if(t)u[c]=[a],p(c)&&(d[c]=u[c]);else{let t=[a];m(c,e.k)&&(c.value=t),e.k&&(u[e.k]=t)}}else t?(u[c]=o,p(c)&&(d[c]=o)):r&&(m(c,e.k)&&(c.value=o),e.k&&(u[e.k]=o))};if(o){let t=()=>{s(),yi.delete(e)};t.id=-1,yi.set(e,t),G(t,n)}else xi(e),s()}}}function xi(e){let t=yi.get(e);t&&(t.flags|=8,yi.delete(e))}dt().requestIdleCallback,dt().cancelIdleCallback;let Si=e=>!!e.type.__asyncLoader,Ci=e=>e.type.__isKeepAlive;function wi(e,t){Ei(e,`a`,t)}function Ti(e,t){Ei(e,`da`,t)}function Ei(e,t,n=J){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Oi(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Ci(e.parent.vnode)&&Di(r,t,n,e),e=e.parent}}function Di(e,t,n,r){let i=Oi(t,e,r,!0);Fi(()=>{He(r[t],i)},n)}function Oi(e,t,n=J,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{Bt();let i=Eo(n),a=H(t,n,e,r);return i(),Vt(),a};return r?i.unshift(a):i.push(a),a}}let ki=e=>(t,n=J)=>{(!ko||e===`sp`)&&Oi(e,(...e)=>t(...e),n)},Ai=ki(`bm`),ji=ki(`m`),Mi=ki(`bu`),Ni=ki(`u`),Pi=ki(`bum`),Fi=ki(`um`),Ii=ki(`sp`),Li=ki(`rtg`),Ri=ki(`rtc`);function zi(e,t=J){Oi(`ec`,e,t)}let Bi=Symbol.for(`v-ndc`),Vi=e=>e?Oo(e)?Io(e):Vi(e.parent):null,Hi=D(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=>Vi(e.parent),$root:e=>Vi(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?Zi(e):e.type,$forceUpdate:e=>e.f||=()=>{br(e.update)},$nextTick:e=>e.n||=vr.bind(e.proxy),$watch:e=>__VUE_OPTIONS_API__?Qr.bind(e):E}),Ui=(e,t)=>e!==T&&!e.__isScriptSetup&&O(e,t),Wi={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:r,data:i,props:a,accessCache:o,type:s,appContext:c}=e;if(t[0]!==`$`){let e=o[t];if(e!==void 0)switch(e){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else if(Ui(r,t))return o[t]=1,r[t];else if(__VUE_OPTIONS_API__&&i!==T&&O(i,t))return o[t]=2,i[t];else if(O(a,t))return o[t]=3,a[t];else if(n!==T&&O(n,t))return o[t]=4,n[t];else (!__VUE_OPTIONS_API__||Ki)&&(o[t]=0)}let l=Hi[t],u,d;if(l)return t===`$attrs`&&R(e.attrs,`get`,``),l(e);if((u=s.__cssModules)&&(u=u[t]))return u;if(n!==T&&O(n,t))return o[t]=4,n[t];if(d=c.config.globalProperties,O(d,t))return d[t]},set({_:e},t,n){let{data:r,setupState:i,ctx:a}=e;return Ui(i,t)?(i[t]=n,!0):__VUE_OPTIONS_API__&&r!==T&&O(r,t)?(r[t]=n,!0):O(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:a,type:o}},s){let c;return!!(n[s]||__VUE_OPTIONS_API__&&e!==T&&s[0]!==`$`&&O(e,s)||Ui(t,s)||O(a,s)||O(r,s)||O(Hi,s)||O(i.config.globalProperties,s)||(c=o.__cssModules)&&c[s])},defineProperty(e,t,n){return n.get==null?O(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function Gi(e){return k(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}let Ki=!0;function qi(e){let t=Zi(e),n=e.proxy,r=e.ctx;Ki=!1,t.beforeCreate&&Yi(t.beforeCreate,e,`bc`);let{data:i,computed:a,methods:o,watch:s,provide:c,inject:l,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:m,activated:h,deactivated:g,beforeDestroy:_,beforeUnmount:v,destroyed:y,unmounted:b,render:x,renderTracked:S,renderTriggered:ee,errorCaptured:te,serverPrefetch:ne,expose:re,inheritAttrs:ie,components:ae,directives:oe,filters:se}=t;if(l&&Ji(l,r,null),o)for(let e in o){let t=o[e];A(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);N(t)&&(e.data=Fn(t))}if(Ki=!0,a)for(let e in a){let t=a[e],i=Ro({get:A(t)?t.bind(n,n):A(t.get)?t.get.bind(n,n):E,set:!A(t)&&A(t.set)?t.set.bind(n):E});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(s)for(let e in s)Xi(s[e],r,n,e);if(c){let e=A(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{Gr(t,e[t])})}u&&Yi(u,e,`c`);function C(e,t){k(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(C(Ai,d),C(ji,f),C(Mi,p),C(Ni,m),C(wi,h),C(Ti,g),C(zi,te),C(Ri,S),C(Li,ee),C(Pi,v),C(Fi,b),C(Ii,ne),k(re))if(re.length){let t=e.exposed||={};re.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={};x&&e.render===E&&(e.render=x),ie!=null&&(e.inheritAttrs=ie),ae&&(e.components=ae),oe&&(e.directives=oe),ne&&_i(e)}function Ji(e,t,n=E){k(e)&&(e=na(e));for(let n in e){let r=e[n],i;i=N(r)?`default`in r?Kr(r.from||n,r.default,!0):Kr(r.from||n):Kr(r),V(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function Yi(e,t,n){H(k(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Xi(e,t,n,r){let i=r.includes(`.`)?$r(n,r):()=>n[r];if(j(e)){let n=t[e];A(n)&&Xr(i,n)}else if(A(e))Xr(i,e.bind(n));else if(N(e))if(k(e))e.forEach(e=>Xi(e,t,n,r));else{let r=A(e.handler)?e.handler.bind(n):t[e.handler];A(r)&&Xr(i,r,e)}}function Zi(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>Qi(c,e,o,!0)),Qi(c,t,o)),N(t)&&a.set(t,c),c}function Qi(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Qi(e,a,n,!0),i&&i.forEach(t=>Qi(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=$i[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}let $i={data:ea,props:ia,emits:ia,methods:ra,computed:ra,beforeCreate:W,created:W,beforeMount:W,mounted:W,beforeUpdate:W,updated:W,beforeDestroy:W,beforeUnmount:W,destroyed:W,unmounted:W,activated:W,deactivated:W,errorCaptured:W,serverPrefetch:W,components:ra,directives:ra,watch:aa,provide:ea,inject:ta};function ea(e,t){return t?e?function(){return D(A(e)?e.call(this,this):e,A(t)?t.call(this,this):t)}:t:e}function ta(e,t){return ra(na(e),na(t))}function na(e){if(k(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function W(e,t){return e?[...new Set([].concat(e,t))]:t}function ra(e,t){return e?D(Object.create(null),e,t):t}function ia(e,t){return e?k(e)&&k(t)?[...new Set([...e,...t])]:D(Object.create(null),Gi(e),Gi(t??{})):t}function aa(e,t){if(!e)return t;if(!t)return e;let n=D(Object.create(null),e);for(let r in t)n[r]=W(e[r],t[r]);return n}function oa(){return{app:null,config:{isNativeTag:ze,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 sa=0;function ca(e,t){return function(n,r=null){A(n)||(n=D({},n)),r!=null&&!N(r)&&(r=null);let i=oa(),a=new WeakSet,o=[],s=!1,c=i.app={_uid:sa++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Bo,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&A(e.install)?(a.add(e),e.install(c,...t)):A(e)&&(a.add(e),e(c,...t))),c},mixin(e){return __VUE_OPTIONS_API__&&(i.mixins.includes(e)||i.mixins.push(e)),c},component(e,t){return t?(i.components[e]=t,c):i.components[e]},directive(e,t){return t?(i.directives[e]=t,c):i.directives[e]},mount(a,o,l){if(!s){let u=c._ceVNode||q(n,r);return u.appContext=i,l===!0?l=`svg`:l===!1&&(l=void 0),o&&t?t(u,a):e(u,a,l),s=!0,c._container=a,a.__vue_app__=c,__VUE_PROD_DEVTOOLS__&&(c._instance=u.component,Mr(c,Bo)),Io(u.component)}},onUnmount(e){o.push(e)},unmount(){s&&(H(o,c._instance,16),e(null,c._container),__VUE_PROD_DEVTOOLS__&&(c._instance=null,Nr(c)),delete c._container.__vue_app__)},provide(e,t){return i.provides[e]=t,c},runWithContext(e){let t=la;la=c;try{return e()}finally{la=t}}};return c}}let la=null,ua=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${P(t)}Modifiers`]||e[`${rt(t)}Modifiers`];function da(e,t,...n){if(e.isUnmounted)return;let r=e.vnode.props||T,i=n,a=t.startsWith(`update:`),o=a&&ua(r,t.slice(7));o&&(o.trim&&(i=n.map(e=>j(e)?e.trim():e)),o.number&&(i=n.map(lt))),__VUE_PROD_DEVTOOLS__&&zr(e,t,i);let s,c=r[s=at(t)]||r[s=at(P(t))];!c&&a&&(c=r[s=at(rt(t))]),c&&H(c,e,6,i);let l=r[s+`Once`];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,H(l,e,6,i)}}let fa=new WeakMap;function pa(e,t,n=!1){let r=__VUE_OPTIONS_API__&&n?fa:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(__VUE_OPTIONS_API__&&!A(e)){let r=e=>{let n=pa(e,t,!0);n&&(s=!0,D(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(N(e)&&r.set(e,null),null):(k(a)?a.forEach(e=>o[e]=null):D(o,a),N(e)&&r.set(e,o),o)}function ma(e,t){return!e||!Be(t)?!1:(t=t.slice(2).replace(/Once$/,``),O(e,t[0].toLowerCase()+t.slice(1))||O(e,rt(t))||O(e,t))}function ha(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:c,render:l,renderCache:u,props:d,data:f,setupState:p,ctx:m,inheritAttrs:h}=e,g=Hr(e),_,v;try{if(n.shapeFlag&4){let e=i||r,t=e;_=ho(l.call(t,e,u,d,p,f,m)),v=s}else{let e=t;_=ho(e.length>1?e(d,{attrs:s,slots:o,emit:c}):e(d,null)),v=t.props?s:ga(s)}}catch(t){no.length=0,ur(t,e,1),_=q(eo)}let y=_;if(v&&h!==!1){let e=Object.keys(v),{shapeFlag:t}=y;e.length&&t&7&&(a&&e.some(Ve)&&(v=_a(v,a)),y=po(y,v,!1,!0))}return n.dirs&&(y=po(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&hi(y,n.transition),_=y,Hr(g),_}let ga=e=>{let t;for(let n in e)(n===`class`||n===`style`||Be(n))&&((t||={})[n]=e[n]);return t},_a=(e,t)=>{let n={};for(let r in e)(!Ve(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function va(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?ya(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(ba(o,r,n)&&!ma(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?ya(r,o,l):!0:!!o;return!1}function ya(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(ba(t,e,a)&&!ma(n,a))return!0}return!1}function ba(e,t,n){let r=e[n],i=t[n];return n===`style`&&N(r)&&N(i)?!xt(r,i):r!==i}function xa({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}let Sa={},Ca=()=>Object.create(Sa),wa=e=>Object.getPrototypeOf(e)===Sa;function Ta(e,t,n,r=!1){let i={},a=Ca();e.propsDefaults=Object.create(null),Da(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:In(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function Ea(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=B(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(ma(e.emitsOptions,o))continue;let u=t[o];if(c)if(O(a,o))u!==a[o]&&(a[o]=u,l=!0);else{let t=P(o);i[t]=Oa(c,s,t,u,e,!1)}else u!==a[o]&&(a[o]=u,l=!0)}}}else{Da(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!O(t,a)&&((r=rt(a))===a||!O(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=Oa(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!O(t,e))&&(delete a[e],l=!0)}l&&Zt(e.attrs,`set`,``)}function Da(e,t,n,r){let[i,a]=e.propsOptions,o=!1,s;if(t)for(let c in t){if($e(c))continue;let l=t[c],u;i&&O(i,u=P(c))?!a||!a.includes(u)?n[u]=l:(s||={})[u]=l:ma(e.emitsOptions,c)||(!(c in r)||l!==r[c])&&(r[c]=l,o=!0)}if(a){let t=B(n),r=s||T;for(let o=0;o<a.length;o++){let s=a[o];n[s]=Oa(i,t,s,r[s],e,!O(r,s))}}return o}function Oa(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=O(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&A(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=Eo(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===rt(n))&&(r=!0))}return r}let ka=new WeakMap;function Aa(e,t,n=!1){let r=__VUE_OPTIONS_API__&&n?ka:t.propsCache,i=r.get(e);if(i)return i;let a=e.props,o={},s=[],c=!1;if(__VUE_OPTIONS_API__&&!A(e)){let r=e=>{c=!0;let[n,r]=Aa(e,t,!0);D(o,n),r&&s.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!a&&!c)return N(e)&&r.set(e,Re),Re;if(k(a))for(let e=0;e<a.length;e++){let t=P(a[e]);ja(t)&&(o[t]=T)}else if(a)for(let e in a){let t=P(e);if(ja(t)){let n=a[e],r=o[t]=k(n)||A(n)?{type:n}:D({},n),i=r.type,c=!1,l=!0;if(k(i))for(let e=0;e<i.length;++e){let t=i[e],n=A(t)&&t.name;if(n===`Boolean`){c=!0;break}else n===`String`&&(l=!1)}else c=A(i)&&i.name===`Boolean`;r[0]=c,r[1]=l,(c||O(r,`default`))&&s.push(t)}}let l=[o,s];return N(e)&&r.set(e,l),l}function ja(e){return e[0]!==`$`&&!$e(e)}let Ma=e=>e===`_`||e===`_ctx`||e===`$stable`,Na=e=>k(e)?e.map(ho):[ho(e)],Pa=(e,t,n)=>{if(t._n)return t;let r=Ur((...e)=>Na(t(...e)),n);return r._c=!1,r},Fa=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Ma(n))continue;let i=e[n];if(A(i))t[n]=Pa(n,i,r);else if(i!=null){let e=Na(i);t[n]=()=>e}}},Ia=(e,t)=>{let n=Na(t);e.slots.default=()=>n},La=(e,t,n)=>{for(let r in t)(n||!Ma(r))&&(e[r]=t[r])},Ra=(e,t,n)=>{let r=e.slots=Ca();if(e.vnode.shapeFlag&32){let e=t._;e?(La(r,t,n),n&&ct(r,`_`,e,!0)):Fa(t,r)}else t&&Ia(e,t)},za=(e,t,n)=>{let{vnode:r,slots:i}=e,a=!0,o=T;if(r.shapeFlag&32){let e=t._;e?n&&e===1?a=!1:La(i,t,n):(a=!t.$stable,Fa(t,i)),o=t}else t&&(Ia(e,t),o={default:1});if(a)for(let e in i)!Ma(e)&&o[e]==null&&delete i[e]};function Ba(){typeof __VUE_OPTIONS_API__!=`boolean`&&(dt().__VUE_OPTIONS_API__=!0),typeof __VUE_PROD_DEVTOOLS__!=`boolean`&&(dt().__VUE_PROD_DEVTOOLS__=!1),typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!=`boolean`&&(dt().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}let G=Qa;function Va(e){return Ha(e)}function Ha(e,t){Ba();let n=dt();n.__VUE__=!0,__VUE_PROD_DEVTOOLS__&&jr(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);let{insert:r,remove:i,patchProp:a,createElement:o,createText:s,createComment:c,setText:l,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=E,insertStaticContent:m}=e,h=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!oo(e,t)&&(r=ve(e),pe(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case $a:g(e,t,n,r);break;case eo:_(e,t,n,r);break;case to:e??v(t,n,r,o);break;case K:ae(e,t,n,r,i,a,o,s,c);break;default:d&1?x(e,t,n,r,i,a,o,s,c):d&6?oe(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,xe)}u!=null&&i?bi(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&bi(e.ref,null,a,e,!0)},g=(e,t,n,i)=>{if(e==null)r(t.el=s(t.children),n,i);else{let n=t.el=e.el;t.children!==e.children&&l(n,t.children)}},_=(e,t,n,i)=>{e==null?r(t.el=c(t.children||``),n,i):t.el=e.el},v=(e,t,n,r)=>{[e.el,e.anchor]=m(e.children,t,n,r,e.el,e.anchor)},y=({el:e,anchor:t},n,i)=>{let a;for(;e&&e!==t;)a=f(e),r(e,n,i),e=a;r(t,n,i)},b=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=f(e),i(e),e=n;i(t)},x=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)S(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),ne(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},S=(e,t,n,i,s,c,l,d)=>{let f,p,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(f=e.el=o(e.type,c,m&&m.is,m),h&8?u(f,e.children):h&16&&te(e.children,f,null,i,s,Ua(e,c),l,d),_&&Wr(e,null,i,`created`),ee(f,e,e.scopeId,l,i),m){for(let e in m)e!==`value`&&!$e(e)&&a(f,e,null,m[e],c,i);`value`in m&&a(f,`value`,null,m.value,c),(p=m.onVnodeBeforeMount)&&yo(p,i,e)}__VUE_PROD_DEVTOOLS__&&(ct(f,`__vnode`,e,!0),ct(f,`__vueParentComponent`,i,!0)),_&&Wr(e,null,i,`beforeMount`);let v=Ga(s,g);v&&g.beforeEnter(f),r(f,t,n),((p=m&&m.onVnodeMounted)||v||_)&&G(()=>{try{p&&yo(p,i,e),v&&g.enter(f),_&&Wr(e,null,i,`mounted`)}finally{}},s)},ee=(e,t,n,r,i)=>{if(n&&p(e,n),r)for(let t=0;t<r.length;t++)p(e,r[t]);if(i){let n=i.subTree;if(t===n||Za(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;ee(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},te=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++)h(null,e[l]=s?go(e[l]):ho(e[l]),t,n,r,i,a,o,s)},ne=(e,t,n,r,i,o,s)=>{let c=t.el=e.el;__VUE_PROD_DEVTOOLS__&&(c.__vnode=t);let{patchFlag:l,dynamicChildren:d,dirs:f}=t;l|=e.patchFlag&16;let p=e.props||T,m=t.props||T,h;if(n&&Wa(n,!1),(h=m.onVnodeBeforeUpdate)&&yo(h,n,t,e),f&&Wr(t,e,n,`beforeUpdate`),n&&Wa(n,!0),(p.innerHTML&&m.innerHTML==null||p.textContent&&m.textContent==null)&&u(c,``),d?re(e.dynamicChildren,d,c,n,r,Ua(t,i),o):s||ue(e,t,c,null,n,r,Ua(t,i),o,!1),l>0){if(l&16)ie(c,p,m,n,i);else if(l&2&&p.class!==m.class&&a(c,`class`,null,m.class,i),l&4&&a(c,`style`,p.style,m.style,i),l&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let r=e[t],o=p[r],s=m[r];(s!==o||r===`value`)&&a(c,r,o,s,i,n)}}l&1&&e.children!==t.children&&u(c,t.children)}else !s&&d==null&&ie(c,p,m,n,i);((h=m.onVnodeUpdated)||f)&&G(()=>{h&&yo(h,n,t,e),f&&Wr(t,e,n,`updated`)},r)},re=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s];h(c,l,c.el&&(c.type===K||!oo(c,l)||c.shapeFlag&198)?d(c.el):n,null,r,i,a,o,!0)}},ie=(e,t,n,r,i)=>{if(t!==n){if(t!==T)for(let o in t)!$e(o)&&!(o in n)&&a(e,o,t[o],null,i,r);for(let o in n){if($e(o))continue;let s=n[o],c=t[o];s!==c&&o!==`value`&&a(e,o,c,s,i,r)}`value`in n&&a(e,`value`,t.value,n.value,i)}},ae=(e,t,n,i,a,o,c,l,u)=>{let d=t.el=e?e.el:s(``),f=t.anchor=e?e.anchor:s(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(l=l?l.concat(h):h),e==null?(r(d,n,i),r(f,n,i),te(t.children||[],n,f,a,o,c,l,u)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(re(e.dynamicChildren,m,n,a,o,c,l),(t.key!=null||a&&t===a.subTree)&&Ka(e,t,!0)):ue(e,t,n,f,a,o,c,l,u)},oe=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):se(t,n,r,i,a,o,c):C(e,t,c)},se=(e,t,n,r,i,a,o)=>{let s=e.component=So(e,r,i);if(Ci(e)&&(s.ctx.renderer=xe),Ao(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,ce,o),!e.el){let r=s.subTree=q(eo);_(null,r,t,n),e.placeholder=r.el}}else ce(s,e,t,n,i,a,o)},C=(e,t,n)=>{let r=t.component=e.component;if(va(e,t,n))if(r.asyncDep&&!r.asyncResolved){le(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},ce=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=Ja(e);if(n){t&&(t.el=c.el,le(e,t,o)),n.asyncDep.then(()=>{G(()=>{e.isUnmounted||l()},i)});return}}let u=t,f;Wa(e,!1),t?(t.el=c.el,le(e,t,o)):t=c,n&&st(n),(f=t.props&&t.props.onVnodeBeforeUpdate)&&yo(f,s,t,c),Wa(e,!0);let p=ha(e),m=e.subTree;e.subTree=p,h(m,p,d(m.el),ve(m),e,i,a),t.el=p.el,u===null&&xa(e,p.el),r&&G(r,i),(f=t.props&&t.props.onVnodeUpdated)&&G(()=>yo(f,s,t,c),i),__VUE_PROD_DEVTOOLS__&&Fr(e)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Si(t);if(Wa(e,!1),l&&st(l),!m&&(o=c&&c.onVnodeBeforeMount)&&yo(o,d,t),Wa(e,!0),s&&Ce){let t=()=>{e.subTree=ha(e),Ce(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=ha(e);h(null,o,n,r,e,i,a),t.el=o.el}if(u&&G(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;G(()=>yo(o,d,e),i)}(t.shapeFlag&256||d&&Si(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&G(e.a,i),e.isMounted=!0,__VUE_PROD_DEVTOOLS__&&Pr(e),t=n=r=null}};e.scope.on();let c=e.effect=new Et(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>br(u),Wa(e,!0),l()},le=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Ea(e,t.props,r,n),za(e,t.children,n),Bt(),Cr(e),Vt()},ue=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,d=e?e.shapeFlag:0,f=t.children,{patchFlag:p,shapeFlag:m}=t;if(p>0){if(p&128){de(l,f,n,r,i,a,o,s,c);return}else if(p&256){w(l,f,n,r,i,a,o,s,c);return}}m&8?(d&16&&_e(l,i,a),f!==l&&u(n,f)):d&16?m&16?de(l,f,n,r,i,a,o,s,c):_e(l,i,a,!0):(d&8&&u(n,``),m&16&&te(f,n,r,i,a,o,s,c))},w=(e,t,n,r,i,a,o,s,c)=>{e||=Re,t||=Re;let l=e.length,u=t.length,d=Math.min(l,u),f;for(f=0;f<d;f++){let r=t[f]=c?go(t[f]):ho(t[f]);h(e[f],r,n,null,i,a,o,s,c)}l>u?_e(e,i,a,!0,!1,d):te(t,n,r,i,a,o,s,c,d)},de=(e,t,n,r,i,a,o,s,c)=>{let l=0,u=t.length,d=e.length-1,f=u-1;for(;l<=d&&l<=f;){let r=e[l],u=t[l]=c?go(t[l]):ho(t[l]);if(oo(r,u))h(r,u,n,null,i,a,o,s,c);else break;l++}for(;l<=d&&l<=f;){let r=e[d],l=t[f]=c?go(t[f]):ho(t[f]);if(oo(r,l))h(r,l,n,null,i,a,o,s,c);else break;d--,f--}if(l>d){if(l<=f){let e=f+1,d=e<u?t[e].el:r;for(;l<=f;)h(null,t[l]=c?go(t[l]):ho(t[l]),n,d,i,a,o,s,c),l++}}else if(l>f)for(;l<=d;)pe(e[l],i,a,!0),l++;else{let p=l,m=l,g=new Map;for(l=m;l<=f;l++){let e=t[l]=c?go(t[l]):ho(t[l]);e.key!=null&&g.set(e.key,l)}let _,v=0,y=f-m+1,b=!1,x=0,S=Array(y);for(l=0;l<y;l++)S[l]=0;for(l=p;l<=d;l++){let r=e[l];if(v>=y){pe(r,i,a,!0);continue}let u;if(r.key!=null)u=g.get(r.key);else for(_=m;_<=f;_++)if(S[_-m]===0&&oo(r,t[_])){u=_;break}u===void 0?pe(r,i,a,!0):(S[u-m]=l+1,u>=x?x=u:b=!0,h(r,t[u],n,null,i,a,o,s,c),v++)}let ee=b?qa(S):Re;for(_=ee.length-1,l=y-1;l>=0;l--){let e=m+l,d=t[e],f=t[e+1],p=e+1<u?f.el||Xa(f):r;S[l]===0?h(null,d,n,p,i,a,o,s,c):b&&(_<0||l!==ee[_]?fe(d,n,p,2):_--)}}},fe=(e,t,n,a,o=null)=>{let{el:s,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){fe(e.component.subTree,t,n,a);return}if(d&128){e.suspense.move(t,n,a);return}if(d&64){c.move(e,t,n,xe);return}if(c===K){r(s,t,n);for(let e=0;e<u.length;e++)fe(u[e],t,n,a);r(e.anchor,t,n);return}if(c===to){y(e,t,n);return}if(a!==2&&d&1&&l)if(a===0)l.persisted&&!s[mi]?r(s,t,n):(l.beforeEnter(s),r(s,t,n),G(()=>l.enter(s),o));else{let{leave:a,delayLeave:o,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?i(s):r(s,t,n)},d=()=>{let e=s._isLeaving||!!s[mi];s._isLeaving&&s[mi](!0),l.persisted&&!e?u():a(s,()=>{u(),c&&c()})};o?o(s,u,d):d()}else r(s,t,n)},pe=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(Bt(),bi(s,null,n,e,!0),Vt()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!Si(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&yo(_,t,e),u&6)ge(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Wr(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,xe,r):l&&!l.hasOnce&&(a!==K||d>0&&d&64)?_e(l,t,n,!1,!0):(a===K&&d&384||!i&&u&16)&&_e(c,t,n),r&&me(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&G(()=>{_&&yo(_,t,e),h&&Wr(e,null,t,`unmounted`),v&&(e.el=null)},n)},me=e=>{let{type:t,el:n,anchor:r,transition:a}=e;if(t===K){he(n,r);return}if(t===to){b(e);return}let o=()=>{i(n),a&&!a.persisted&&a.afterLeave&&a.afterLeave()};if(e.shapeFlag&1&&a&&!a.persisted){let{leave:t,delayLeave:r}=a,i=()=>t(n,o);r?r(e.el,o,i):i()}else o()},he=(e,t)=>{let n;for(;e!==t;)n=f(e),i(e),e=n;i(t)},ge=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;Ya(c),Ya(l),r&&st(r),i.stop(),a&&(a.flags|=8,pe(o,e,t,n)),s&&G(s,t),G(()=>{e.isUnmounted=!0},t),__VUE_PROD_DEVTOOLS__&&Lr(e)},_e=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)pe(e[o],t,n,r,i)},ve=e=>{if(e.shapeFlag&6)return ve(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=f(e.anchor||e.el),n=t&&t[ti];return n?f(n):t},ye=!1,be=(e,t,n)=>{let r;e==null?t._vnode&&(pe(t._vnode,null,null,!0),r=t._vnode.component):h(t._vnode||null,e,t,null,null,null,n),t._vnode=e,ye||=(ye=!0,Cr(r),wr(),!1)},xe={p:h,um:pe,m:fe,r:me,mt:se,mc:te,pc:ue,pbc:re,n:ve,o:e},Se,Ce;return t&&([Se,Ce]=t(xe)),{render:be,hydrate:Se,createApp:ca(be,Se)}}function Ua({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 Wa({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ga(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ka(e,t,n=!1){let r=e.children,i=t.children;if(k(r)&&k(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=go(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&Ka(t,a)),a.type===$a&&(a.patchFlag===-1&&(a=i[e]=go(a)),a.el=t.el),a.type===eo&&!a.el&&(a.el=t.el)}}function qa(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=t[o];return n}function Ja(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ja(t)}function Ya(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Xa(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?Xa(t.subTree):null}let Za=e=>e.__isSuspense;function Qa(e,t){t&&t.pendingBranch?k(e)?t.effects.push(...e):t.effects.push(e):Sr(e)}let K=Symbol.for(`v-fgt`),$a=Symbol.for(`v-txt`),eo=Symbol.for(`v-cmt`),to=Symbol.for(`v-stc`),no=[],ro=1;function io(e,t=!1){ro+=e}function ao(e){return e?e.__v_isVNode===!0:!1}function oo(e,t){return e.type===t.type&&e.key===t.key}let so=({key:e})=>e??null,co=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:j(e)||V(e)||A(e)?{i:Br,r:e,k:t,f:!!n}:e);function lo(e,t=null,n=null,r=0,i=null,a=e===K?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&so(t),ref:t&&co(t),scopeId:Vr,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:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Br};return s?(_o(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=j(n)?8:16),c}let q=uo;function uo(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===Bi)&&(e=eo),ao(e)){let r=po(e,t,!0);return n&&_o(r,n),r.patchFlag=-2,r}if(Lo(e)&&(e=e.__vccOpts),t){t=fo(t);let{class:e,style:n}=t;e&&!j(e)&&(t.class=_t(e)),N(n)&&(Hn(n)&&!k(n)&&(n=D({},n)),t.style=ft(n))}let o=j(e)?1:Za(e)?128:ni(e)?64:N(e)?4:A(e)?2:0;return lo(e,t,n,r,i,o,a,!0)}function fo(e){return e?Hn(e)||wa(e)?D({},e):e:null}function po(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?vo(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&so(l),ref:t&&t.ref?n&&a?k(a)?a.concat(co(t)):[a,co(t)]:co(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==K?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&po(e.ssContent),ssFallback:e.ssFallback&&po(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&hi(u,c.clone(u)),u}function mo(e=` `,t=0){return q($a,null,e,t)}function ho(e){return e==null||typeof e==`boolean`?q(eo):k(e)?q(K,null,e.slice()):ao(e)?go(e):q($a,null,String(e))}function go(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:po(e)}function _o(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(k(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),_o(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!wa(t)?t._ctx=Br:r===3&&Br&&(Br.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else A(t)?(t={default:t,_ctx:Br},n=32):(t=String(t),r&64?(n=16,t=[mo(t)]):n=8);e.children=t,e.shapeFlag|=n}function vo(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=_t([t.class,r.class]));else if(e===`style`)t.style=ft([t.style,r.style]);else if(Be(e)){let n=t[e],i=r[e];i&&n!==i&&!(k(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!Ve(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function yo(e,t,n,r=null){H(e,t,7,[n,r])}let bo=oa(),xo=0;function So(e,t,n){let r=e.type,i=(t?t.appContext:e.appContext)||bo,a={uid:xo++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new St(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Aa(r,i),emitsOptions:pa(r,i),emit:null,emitted:null,propsDefaults:T,inheritAttrs:r.inheritAttrs,ctx:T,data:T,props:T,attrs:T,slots:T,refs:T,setupState:T,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 a.ctx={_:a},a.root=t?t.root:a,a.emit=da.bind(null,a),e.ce&&e.ce(a),a}let J=null,Co=()=>J||Br,wo,To;{let e=dt(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};wo=t(`__VUE_INSTANCE_SETTERS__`,e=>J=e),To=t(`__VUE_SSR_SETTERS__`,e=>ko=e)}let Eo=e=>{let t=J;return wo(e),e.scope.on(),()=>{e.scope.off(),wo(t)}},Do=()=>{J&&J.scope.off(),wo(null)};function Oo(e){return e.vnode.shapeFlag&4}let ko=!1;function Ao(e,t=!1,n=!1){t&&To(t);let{props:r,children:i}=e.vnode,a=Oo(e);Ta(e,r,a,t),Ra(e,i,n||t);let o=a?jo(e,t):void 0;return t&&To(!1),o}function jo(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Wi);let{setup:r}=n;if(r){Bt();let n=e.setupContext=r.length>1?Fo(e):null,i=Eo(e),a=lr(r,e,0,[e.props,n]),o=qe(a);if(Vt(),i(),(o||e.sp)&&!Si(e)&&_i(e),o){if(a.then(Do,Do),t)return a.then(n=>{Mo(e,n,t)}).catch(t=>{ur(t,e,0)});e.asyncDep=a}else Mo(e,a,t)}else No(e,t)}function Mo(e,t,n){A(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:N(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=Zn(t)),No(e,n)}function No(e,t,n){let r=e.type;if(e.render||=r.render||E,__VUE_OPTIONS_API__){let t=Eo(e);Bt();try{qi(e)}finally{Vt(),t()}}}let Po={get(e,t){return R(e,`get`,``),e[t]}};function Fo(e){return{attrs:new Proxy(e.attrs,Po),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Io(e){return e.exposed?e.exposeProxy||=new Proxy(Zn(Un(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Hi)return Hi[n](e)},has(e,t){return t in e||t in Hi}}):e.proxy}function Lo(e){return A(e)&&`__vccOpts`in e}let Ro=(e,t)=>nr(e,t,ko);function zo(e,t,n){try{io(-1);let r=arguments.length;return r===2?N(t)&&!k(t)?ao(t)?q(e,null,[t]):q(e,t):q(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ao(n)&&(n=[n]),q(e,t,n))}finally{io(1)}}let Bo=`3.5.35`,Vo,Ho=typeof window<`u`&&window.trustedTypes
|
|
20
|
+
/**
|
|
21
|
+
* @vue/runtime-dom v3.5.35
|
|
22
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
23
|
+
* @license MIT
|
|
24
|
+
**/
|
|
25
|
+
;if(Ho)try{Vo=Ho.createPolicy(`vue`,{createHTML:e=>e})}catch{}let Uo=Vo?e=>Vo.createHTML(e):e=>e,Wo=typeof document<`u`?document:null,Go=Wo&&Wo.createElement(`template`),Ko={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?Wo.createElementNS(`http://www.w3.org/2000/svg`,e):t===`mathml`?Wo.createElementNS(`http://www.w3.org/1998/Math/MathML`,e):n?Wo.createElement(e,{is:n}):Wo.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>Wo.createTextNode(e),createComment:e=>Wo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Wo.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{Go.innerHTML=Uo(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=Go.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},qo=Symbol(`_vtc`);function Jo(e,t,n){let r=e[qo];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}let Yo=Symbol(`_vod`),Xo=Symbol(`_vsh`),Zo=Symbol(``),Qo=/(?:^|;)\s*display\s*:/;function $o(e,t,n){let r=e.style,i=j(n),a=!1;if(n&&!i){if(t)if(j(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??ts(r,t,``)}else for(let e in t)n[e]??ts(r,e,``);for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?ts(r,i,``):as(e,i,!j(t)&&t?t[i]:void 0,o)||ts(r,i,o)}}else if(i){if(t!==n){let e=r[Zo];e&&(n+=`;`+e),r.cssText=n,a=Qo.test(n)}}else t&&e.removeAttribute(`style`);Yo in e&&(e[Yo]=a?r.display:``,e[Xo]&&(r.display=`none`))}let es=/\s*!important$/;function ts(e,t,n){if(k(n))n.forEach(n=>ts(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=is(e,t);es.test(n)?e.setProperty(rt(r),n.replace(es,``),`important`):e[r]=n}}let ns=[`Webkit`,`Moz`,`ms`],rs={};function is(e,t){let n=rs[t];if(n)return n;let r=P(t);if(r!==`filter`&&r in e)return rs[t]=r;r=it(r);for(let n=0;n<ns.length;n++){let i=ns[n]+r;if(i in e)return rs[t]=i}return t}function as(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&j(r)&&n===r}let os=`http://www.w3.org/1999/xlink`;function ss(e,t,n,r,i,a=vt(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(os,t.slice(6,t.length)):e.setAttributeNS(os,t,n):n==null||a&&!yt(n)?e.removeAttribute(t):e.setAttribute(t,a?``:M(n)?String(n):n)}function cs(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?Uo(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=yt(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function ls(e,t,n,r){e.addEventListener(t,n,r)}function us(e,t,n,r){e.removeEventListener(t,n,r)}let ds=Symbol(`_vei`);function fs(e,t,n,r,i=null){let a=e[ds]||(e[ds]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=ms(t);r?ls(e,n,a[t]=vs(r,i),s):o&&(us(e,n,o,s),a[t]=void 0)}}let ps=/(?:Once|Passive|Capture)$/;function ms(e){let t;if(ps.test(e)){t={};let n;for(;n=e.match(ps);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===`:`?e.slice(3):rt(e.slice(2)),t]}let hs=0,gs=Promise.resolve(),_s=()=>hs||=(gs.then(()=>hs=0),Date.now());function vs(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(k(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;n<i.length&&!e._stopped;n++){let e=i[n];e&&H(e,t,5,a)}}else H(r,t,5,[e])};return n.value=e,n.attached=_s(),n}let ys=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,bs=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?Jo(e,r,o):t===`style`?$o(e,n,r):Be(t)?Ve(t)||fs(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):xs(e,t,r,o))?(cs(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&ss(e,t,r,o,a,t!==`value`)):e._isVueCE&&(Ss(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!j(r)))?cs(e,P(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),ss(e,t,r,o))};function xs(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&ys(t)&&A(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`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return ys(t)&&j(n)?!1:t in e}function Ss(e,t){let n=e._def.props;if(!n)return!1;let r=P(t);return Array.isArray(n)?n.some(e=>P(e)===r):Object.keys(n).some(e=>P(e)===r)}let Cs=D({patchProp:bs},Ko),ws;function Ts(){return ws||=Va(Cs)}let Es=((...e)=>{let t=Ts().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Os(e);if(!r)return;let i=t._component;!A(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,Ds(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function Ds(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Os(e){return j(e)?document.querySelector(e):e}var ks=`VUE_QUERY_CLIENT`;function As(e){return`${ks}${e?`:${e}`:``}`}function js(e,t){Object.keys(e).forEach(n=>{e[n]=t[n]})}function Ms(e,t,n=``,r=0){if(t){let i=t(e,n,r);if(i===void 0&&V(e)||i!==void 0)return i}if(Array.isArray(e))return e.map((e,n)=>Ms(e,t,String(n),r+1));if(typeof e==`object`&&Ps(e)){let n=Object.entries(e).map(([e,n])=>[e,Ms(n,t,e,r+1)]);return Object.fromEntries(n)}return e}function Ns(e,t){return Ms(e,t)}function Y(e,t=!1){return Ns(e,(e,n,r)=>{if(r===1&&n===`queryKey`)return Y(e,!0);if(t&&Fs(e))return Y(e(),t);if(V(e))return Y(Yn(e),t)})}function Ps(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Fs(e){return typeof e==`function`}function Is(e=``){if(!qr())throw Error(`vue-query hooks can only be used inside setup() function or functions that support injection context.`);let t=Kr(As(e));if(!t)throw Error(`No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.`);return t}var Ls=class extends Fe{find(e){return super.find(Y(e))}findAll(e={}){return super.findAll(Y(e))}},Rs=class extends Ne{find(e){return super.find(Y(e))}findAll(e={}){return super.findAll(Y(e))}},zs=class extends Ie{constructor(e={}){let t={defaultOptions:e.defaultOptions,queryCache:e.queryCache||new Ls,mutationCache:e.mutationCache||new Rs};super(t),this.isRestoring=Kn(!1)}isFetching(e={}){return super.isFetching(Y(e))}isMutating(e={}){return super.isMutating(Y(e))}getQueryData(e){return super.getQueryData(Y(e))}ensureQueryData(e){return super.ensureQueryData(Y(e))}getQueriesData(e){return super.getQueriesData(Y(e))}setQueryData(e,t,n={}){return super.setQueryData(Y(e),t,Y(n))}setQueriesData(e,t,n={}){return super.setQueriesData(Y(e),t,Y(n))}getQueryState(e){return super.getQueryState(Y(e))}removeQueries(e={}){return super.removeQueries(Y(e))}resetQueries(e={},t={}){return super.resetQueries(Y(e),Y(t))}cancelQueries(e={},t={}){return super.cancelQueries(Y(e),Y(t))}invalidateQueries(e={},t={}){let n=Y(e),r=Y(t);if(super.invalidateQueries({...n,refetchType:`none`},r),n.refetchType===`none`)return Promise.resolve();let i={...n,type:n.refetchType??n.type??`active`};return vr().then(()=>super.refetchQueries(i,r))}refetchQueries(e={},t={}){return super.refetchQueries(Y(e),Y(t))}fetchQuery(e){return super.fetchQuery(Y(e))}prefetchQuery(e){return super.prefetchQuery(Y(e))}fetchInfiniteQuery(e){return super.fetchInfiniteQuery(Y(e))}prefetchInfiniteQuery(e){return super.prefetchInfiniteQuery(Y(e))}setDefaultOptions(e){super.setDefaultOptions(Y(e))}setQueryDefaults(e,t){super.setQueryDefaults(Y(e),Y(t))}getQueryDefaults(e){return super.getQueryDefaults(Y(e))}setMutationDefaults(e,t){super.setMutationDefaults(Y(e),Y(t))}getMutationDefaults(e){return super.getMutationDefaults(Y(e))}},Bs={install:(e,t={})=>{let n=As(t.queryClientKey),r;r=`queryClient`in t&&t.queryClient?t.queryClient:new zs(`queryClientConfig`in t?t.queryClientConfig:void 0),a||r.mount();let i=()=>{};if(t.clientPersister){r.isRestoring&&(r.isRestoring.value=!0);let[e,n]=t.clientPersister(r);i=e,n.then(()=>{r.isRestoring&&(r.isRestoring.value=!1),t.clientPersisterOnSuccess?.(r)})}let o=()=>{r.unmount(),i()};if(e.onUnmount)e.onUnmount(o);else{let t=e.unmount;e.unmount=function(){o(),t()}}e.provide(n,r)}};function Vs(e,t,n){let r=n||Is(),i=Ro(()=>{let e=t;typeof e==`function`&&(e=e());let n=Y(e);typeof n.enabled==`function`&&(n.enabled=n.enabled());let i=r.defaultQueryOptions(n);return i._optimisticResults=r.isRestoring?.value?`isRestoring`:`optimistic`,i}),a=new e(r,i.value),o=i.value.shallow?In(a.getCurrentResult()):Fn(a.getCurrentResult()),s=()=>{};r.isRestoring&&Xr(r.isRestoring,e=>{e||(s(),s=a.subscribe(e=>{js(o,e)}))},{immediate:!0});let c=()=>{a.setOptions(i.value),js(o,a.getCurrentResult())};Xr(i,c),wt(()=>{s()});let l=(...e)=>(c(),o.refetch(...e)),u=()=>new Promise((e,t)=>{let n=()=>{},r=()=>{if(i.value.enabled!==!1){a.setOptions(i.value);let r=a.getOptimisticResult(i.value);r.isStale?(n(),a.fetchOptimistic(i.value).then(e,n=>{oe(i.value.throwOnError,[n,a.getCurrentQuery()])?t(n):e(a.getCurrentResult())})):(n(),e(r))}};r(),n=Xr(i,r)});Xr(()=>o.error,e=>{if(o.isError&&!o.isFetching&&oe(i.value.throwOnError,[e,a.getCurrentQuery()]))throw e});let d=Qn(i.value.shallow?Rn(o):Ln(o));for(let e in o)typeof o[e]==`function`&&(d[e]=o[e]);return d.suspense=u,d.refetch=l,d}function Hs(e,t){return Vs(we,e,t)}let X=Fn({playlist:[],currentId:``,playing:!1,currentTime:0,loading:!1}),Us=Ro(()=>X.playlist.findIndex(e=>e.id===X.currentId)),Ws=Ro(()=>X.playlist.find(e=>e.id===X.currentId)??null),Gs=Ro(()=>{let e=Ws.value;return e?e.pages.length<=1?e.title:e.pages[e.currentPageIndex]?.title??e.title:``}),Ks=Ro(()=>{let e=Ws.value;return!e||e.pages.length===0?0:e.pages.length>1&&e.pages[0]?.cid===0?e.duration:e.pages.length>1?e.pages[e.currentPageIndex].duration:e.duration});function qs(e){return`${Math.floor(e/60)}:${Math.floor(e%60).toString().padStart(2,`0`)}`}function Js(){let e=[];for(let t=0;t<X.playlist.length;t++){let n=X.playlist[t];if(n.pages.length>1&&n.pages[0]?.cid>0)for(let r=0;r<n.pages.length;r++){let i=n.pages[r];e.push({songIndex:t,pageIndex:r,title:i.title,duration:i.duration})}else e.push({songIndex:t,pageIndex:0,title:n.title,duration:n.duration})}return e}function Ys(){let e=Us.value;if(e<0)return 0;let t=0;for(let n=0;n<e;n++){let e=X.playlist[n],r=e.pages.length>1&&e.pages[0]?.cid>0;t+=r?e.pages.length:1}let n=Ws.value;return n&&(t+=n.currentPageIndex),t}var Xs=class extends Error{name=`KyError`;get isKyError(){return!0}},Zs=class extends Xs{name=`HTTPError`;response;request;options;data;constructor(e,t,n){let r=`${e.status||e.status===0?e.status:``} ${e.statusText??``}`.trim(),i=r?`status code ${r}`:`an unknown error`;super(`Request failed with ${i}: ${t.method} ${t.url}`),this.response=e,this.request=t,this.options=n}},Qs=class extends Xs{name=`NetworkError`;request;constructor(e,t){super(`Request failed due to a network error: ${e.method} ${e.url}`,t),this.request=e}},$s=class extends Error{name=`NonError`;value;constructor(e){let t=`Non-error value was thrown`;try{typeof e==`string`?t=e:e&&typeof e==`object`&&`message`in e&&typeof e.message==`string`&&(t=e.message)}catch{}super(t),this.value=e}},ec=class extends Xs{name=`ForceRetryError`;customDelay;code;customRequest;constructor(e){let t=e?.cause?e.cause instanceof Error?e.cause:new $s(e.cause):void 0;super(e?.code?`Forced retry: ${e.code}`:`Forced retry`,t?{cause:t}:void 0),this.customDelay=e?.delay,this.code=e?.code,this.customRequest=e?.request}},tc=class extends Error{name=`SchemaValidationError`;issues;constructor(e){super(`Response schema validation failed`),this.issues=e}},nc=class extends Xs{name=`TimeoutError`;request;constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.request=e}};let rc=(()=>{let e=!1,t=!1,n=typeof globalThis.ReadableStream==`function`,r=typeof globalThis.Request==`function`;if(n&&r)try{t=new globalThis.Request(`https://empty.invalid`,{body:new globalThis.ReadableStream,method:`POST`,get duplex(){return e=!0,`half`}}).headers.has(`Content-Type`)}catch(e){if(e instanceof Error&&e.message===`unsupported BodyInit type`)return!1;throw e}return e&&!t})(),ic=typeof globalThis.AbortController==`function`,ac=typeof globalThis.AbortSignal==`function`&&typeof globalThis.AbortSignal.any==`function`,oc=typeof globalThis.ReadableStream==`function`,sc=typeof globalThis.FormData==`function`,cc=[`get`,`post`,`put`,`patch`,`head`,`delete`],lc={json:`application/json`,text:`text/*`,formData:`multipart/form-data`,arrayBuffer:`*/*`,blob:`*/*`,bytes:`*/*`},uc=2147483647,dc=Symbol(`stop`);var fc=class{options;constructor(e){this.options=e}};let pc=e=>new fc(e),mc={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,baseUrl:!0,prefix:!0,retry:!0,timeout:!0,totalTimeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},hc={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0},gc=new TextEncoder,_c=e=>{if(!e)return 0;if(e instanceof FormData){let t=0;for(let[n,r]of e)t+=40,t+=gc.encode(`Content-Disposition: form-data; name="${n}"`).byteLength,t+=typeof r==`string`?gc.encode(r).byteLength:r.size;return t}return e instanceof Blob?e.size:e instanceof ArrayBuffer||ArrayBuffer.isView(e)?e.byteLength:typeof e==`string`?gc.encode(e).byteLength:e instanceof URLSearchParams?gc.encode(e.toString()).byteLength:0},vc=(e,t,n)=>{let r,i=0;return e.pipeThrough(new TransformStream({transform(e,a){if(a.enqueue(e),r){i+=r.byteLength;let e=t===0?0:i/t;e>=1&&(e=1-2**-52),n?.({percent:e,totalBytes:Math.max(t,i),transferredBytes:i},r)}r=e},flush(){r&&(i+=r.byteLength,n?.({percent:1,totalBytes:Math.max(t,i),transferredBytes:i},r))}}))},yc=(e,t)=>{if(!e.body)return e;let n={status:e.status,statusText:e.statusText,headers:e.headers};if(e.status===204)return new Response(null,n);let r=Math.max(0,Number(e.headers.get(`content-length`))||0);return new Response(vc(e.body,r,t),n)},bc=(e,t,n)=>{if(!e.body)return e;let r=_c(n??e.body);return new Request(e,{duplex:`half`,body:vc(e.body,r,t)})},xc=e=>typeof e==`object`&&!!e,Sc=Symbol(`replaceOption`),Cc=e=>xc(e)&&e[Sc]===!0?{isReplace:!0,value:e.value}:{isReplace:!1,value:e},wc=(...e)=>{for(let t of e)if((!xc(t)||Array.isArray(t))&&t!==void 0)throw TypeError("The `options` argument must be an object");return Pc({},...e)},Tc=(e={},t={})=>{let n=new globalThis.Headers(e),r=t instanceof globalThis.Headers,i=new globalThis.Headers(t);for(let[e,t]of i.entries())r&&t===`undefined`||t===void 0?n.delete(e):n.set(e,t);return n},Ec=e=>{if(!xc(e)||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null},Dc=e=>{if(e instanceof URLSearchParams){let t=new URLSearchParams(e),n=e[Mc];return n&&(t[Mc]=new Set(n)),t}return e instanceof globalThis.Headers?new globalThis.Headers(e):Array.isArray(e)?[...e]:Ec(e)?{...e}:e},Oc=e=>Object.fromEntries(Object.entries(e).filter(e=>e[1]!==void 0)),kc=(e,t)=>Ec(e)&&Ec(t)?Oc({...e,...t}):Tc(e,t);function Ac(e,t,n){return Object.hasOwn(t,n)&&t[n]===void 0?[]:Pc(e[n]??[],t[n]??[])}let jc=(e={},t={})=>({init:Ac(e,t,`init`),beforeRequest:Ac(e,t,`beforeRequest`),beforeRetry:Ac(e,t,`beforeRetry`),beforeError:Ac(e,t,`beforeError`),afterResponse:Ac(e,t,`afterResponse`)}),Mc=Symbol(`deletedParameters`),Nc=(e,t)=>{let n=new URLSearchParams,r=new Set;for(let i of[e,t])if(i!==void 0)if(i instanceof URLSearchParams){for(let[e,t]of i.entries())n.append(e,t),r.delete(e);let e=i[Mc];if(e)for(let t of e)n.delete(t),r.add(t)}else if(Array.isArray(i))for(let e of i){if(!Array.isArray(e)||e.length!==2)throw TypeError(`Array search parameters must be provided in [[key, value], ...] format`);n.append(String(e[0]),String(e[1])),r.delete(String(e[0]))}else if(xc(i))for(let[e,t]of Object.entries(i))t===void 0?(n.delete(e),r.add(e)):(n.append(e,String(t)),r.delete(e));else{let e=new URLSearchParams(i);for(let[t,i]of e.entries())n.append(t,i),r.delete(t)}return r.size>0&&(n[Mc]=r),n},Pc=(...e)=>{let t={},n={},r={},i,a=[];for(let o of e)if(Array.isArray(o))Array.isArray(t)||(t=[]),t=[...t,...o];else if(xc(o)){for(let[e,n]of Object.entries(o)){if(e===`signal`&&n instanceof globalThis.AbortSignal){a.push(n);continue}let r=Cc(n),{isReplace:o}=r;if(n=r.value,e===`context`){if(n!=null&&(!xc(n)||Array.isArray(n)))throw TypeError("The `context` option must be an object");t={...t,context:n==null?{}:o?{...n}:{...t.context,...n}};continue}if(e===`searchParams`){i=n==null?void 0:o||i===void 0?n:Nc(i,n);continue}xc(n)&&!o&&e in t&&(n=Pc(t[e],n)),t={...t,[e]:n}}if(xc(o.hooks)){let{value:e,isReplace:n}=Cc(o.hooks);r=jc(n?{}:r,e),t.hooks=r}if(xc(o.headers)){let{value:e,isReplace:r}=Cc(o.headers);n=r?Dc(e):kc(n,e),t.headers=n}}return i!==void 0&&(t.searchParams=i),a.length>0&&(a.length===1?t.signal=a[0]:ac?t.signal=AbortSignal.any(a):t.signal=a.at(-1)),t},Fc=e=>cc.includes(e)?e.toUpperCase():e,Ic={limit:2,methods:[`get`,`put`,`head`,`delete`,`options`,`trace`],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:1/0,backoffLimit:1/0,delay:e=>.3*2**(e-1)*1e3,jitter:void 0,retryOnTimeout:!1},Lc=(e={})=>{if(typeof e==`number`)return{...Ic,limit:e};if(e.methods&&!Array.isArray(e.methods))throw Error(`retry.methods must be an array`);if(e.statusCodes&&!Array.isArray(e.statusCodes))throw Error(`retry.statusCodes must be an array`);let t=Object.fromEntries(Object.entries({...e,methods:e.methods?.map(e=>e.toLowerCase())}).filter(([,e])=>e!==void 0));return{...Ic,...t}};async function Rc(e,t,n,r){return new Promise((i,a)=>{let o=setTimeout(()=>{n&&n.abort(),a(new nc(e))},r.timeout);r.fetch(e,t).then(i).catch(a).then(()=>{clearTimeout(o)})})}async function zc(e,{signal:t}){return new Promise((n,r)=>{t&&(t.throwIfAborted(),t.addEventListener(`abort`,i,{once:!0}));function i(){clearTimeout(a),r(t.reason)}let a=setTimeout(()=>{t?.removeEventListener(`abort`,i),n()},e)})}let Bc=e=>{let t={};for(let n in e)Object.hasOwn(e,n)&&!(n in hc)&&!(n in mc)&&(t[n]=e[n]);return t},Vc=e=>e===void 0?!1:Array.isArray(e)?e.length>0:e instanceof URLSearchParams?e.size>0||!!e[Mc]?.size:typeof e==`object`?Object.keys(e).length>0:typeof e==`string`?e.trim().length>0:!!e,Hc=Object.prototype.toString,Uc=e=>Hc.call(e)===`[object Error]`,Wc=new Set([`network error`,`NetworkError when attempting to fetch resource.`,`The Internet connection appears to be offline.`,`Network request failed`,`fetch failed`,`terminated`,` A network error occurred.`,`Network connection lost`]);function Gc(e){if(!(e&&Uc(e)&&e.name===`TypeError`&&typeof e.message==`string`))return!1;let{message:t,stack:n}=e;return t===`Load failed`?n===void 0||`__sentry_captured__`in e:t.startsWith(`error sending request for url`)||t===`Failed to fetch`||t.startsWith(`Failed to fetch (`)&&t.endsWith(`)`)?!0:Wc.has(t)}let Kc=(e,t)=>e instanceof t||e?.name===t.name;function qc(e){return Kc(e,Zs)}function Jc(e){return Kc(e,Qs)}function Yc(e){return Kc(e,nc)}let Xc=Symbol(`timedOutResponseData`),Zc=e=>{let t=/;\s*charset\s*=\s*(?:"([^"]+)"|([^;,\s]+))/i.exec(e),n=t?.[1]??t?.[2];if(n)try{return new TextDecoder(n)}catch{}return new TextDecoder},Qc="The `schema` argument must follow the Standard Schema specification",$c=e=>typeof e==`object`?{...e,...e.methods&&{methods:[...e.methods]},...e.statusCodes&&{statusCodes:[...e.statusCodes]},...e.afterStatusCodes&&{afterStatusCodes:[...e.afterStatusCodes]}}:e,el=Object.prototype.toString,tl=e=>e instanceof globalThis.Request||el.call(e)===`[object Request]`,nl=e=>e instanceof globalThis.Response||el.call(e)===`[object Response]`,rl=e=>Array.isArray(e)?e.map(e=>[...e]):Dc(e);function il(e){let t={...e,json:Dc(e.json),context:Dc(e.context),headers:Dc(e.headers),searchParams:rl(e.searchParams)};return e.retry!==void 0&&(t.retry=$c(e.retry)),t}let al=async(e,t)=>{if(typeof t!=`object`&&typeof t!=`function`||t===null)throw TypeError(Qc);let n=t[`~standard`];if(typeof n!=`object`||!n||typeof n.validate!=`function`)throw TypeError(Qc);let r=await n.validate(e);if(r.issues)throw new tc(r.issues);return r.value};var ol=class e{static create(t,n){let r=n.hooks?.init??[],i=r.length>0?il(n):n;for(let e of r)e(i);let a=new e(t,i),o=async()=>{if(typeof a.#i.timeout==`number`&&a.#i.timeout>2147483647)throw RangeError(`The \`timeout\` option cannot be greater than ${uc}`);if(typeof a.#i.totalTimeout==`number`&&a.#i.totalTimeout>2147483647)throw RangeError(`The \`totalTimeout\` option cannot be greater than ${uc}`);await Promise.resolve();let e=await a.#w(),t=e??await a.#E(async()=>a.#k()),n=e!==void 0||a.#O();for(;;){if(t===void 0)return t;if(nl(t))try{t=await a.#T(t)}catch(e){if(!(e instanceof ec))throw e;let r=await a.#D(e,async()=>a.#k());if(r===void 0)return r;t=r,n=a.#O();continue}let e=t;if(!e.ok&&e.type!==`opaque`&&(typeof a.#i.throwHttpErrors==`function`?a.#i.throwHttpErrors(e.status):a.#i.throwHttpErrors)){let r=new Zs(e,a.#P(e),a.#M()),i=r;if(r.data=await a.#h(e),n)throw i;let o=await a.#D(r,async()=>a.#k());if(o===void 0)return o;t=o,n=a.#O();continue}break}if(!nl(t))return t;if(a.#m(t),a.#i.onDownloadProgress){if(typeof a.#i.onDownloadProgress!=`function`)throw TypeError("The `onDownloadProgress` option must be a function");if(!oc)throw Error("Streams are not supported in your environment. `ReadableStream` is missing.");let e=t.clone();return a.#x(t),yc(e,a.#i.onDownloadProgress)}return t},s=(async()=>{try{return await o()}catch(e){if(!(e instanceof Error)||a.#s.has(e))throw e;let t=e;for(let e of a.#i.hooks.beforeError){let n=await e({request:a.request,options:a.#M(),error:t,retryCount:a.#n});n instanceof Error&&(t=n)}throw t}finally{let e=a.#a;a.#b(e?.body??void 0),a.request!==e&&a.#b(a.request.body??void 0)}})();for(let[e,t]of Object.entries(lc))e===`bytes`&&typeof globalThis.Response?.prototype?.bytes!=`function`||(s[e]=async n=>{a.request.headers.set(`accept`,a.request.headers.get(`accept`)||t);let r=await s;if(e!==`json`)return r[e]();let o=await r.text();if(o===``)return n===void 0?JSON.parse(o):al(void 0,n);let c=i.parseJson?await i.parseJson(o,{request:a.#P(r),response:r}):JSON.parse(o);return n===void 0?c:al(c,n)});return s}static#e(e){return e&&typeof e==`object`&&!Array.isArray(e)&&!(e instanceof URLSearchParams)?Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0)):e}request;#t;#n=0;#r;#i;#a;#o;#s=new WeakSet;#c;#l;#u=!1;#d=new WeakMap;constructor(t,n={}){if(this.#r=t,Object.hasOwn(n,`prefixUrl`))throw Error("The `prefixUrl` option has been renamed `prefix` in v2 and enhanced to allow slashes in input. See also the new `baseUrl` option for improved flexibility with standard URL resolution: https://github.com/sindresorhus/ky#baseurl");if(this.#i={...n,headers:Tc(this.#r.headers,n.headers),hooks:jc({},n.hooks),method:Fc(n.method??this.#r.method??`GET`),prefix:String(n.prefix||``),retry:Lc(n.retry),throwHttpErrors:n.throwHttpErrors??!0,timeout:n.timeout??1e4,totalTimeout:n.totalTimeout??!1,fetch:n.fetch??globalThis.fetch.bind(globalThis),context:n.context??{}},typeof this.#r!=`string`&&!(this.#r instanceof URL||this.#r instanceof globalThis.Request))throw TypeError("`input` must be a string, URL, or Request");if(typeof this.#r==`string`){if(this.#i.prefix){let e=this.#i.prefix.replace(/\/+$/,``),t=this.#r.replace(/^\/+/,``);this.#r=`${e}/${t}`}if(this.#i.baseUrl){let e;try{e=new URL(this.#r)}catch{}e||(this.#r=new URL(this.#r,new Request(this.#i.baseUrl).url))}}ic&&ac&&(this.#o=this.#i.signal??this.#r.signal,this.#t=new globalThis.AbortController,this.#i.signal=this.#S()),rc&&(this.#i.duplex=`half`),this.#i.json!==void 0&&(this.#i.body=this.#i.stringifyJson?.(this.#i.json)??JSON.stringify(this.#i.json),this.#i.headers.set(`content-type`,this.#i.headers.get(`content-type`)??`application/json`));let r=n.headers&&new globalThis.Headers(n.headers).has(`content-type`);if(this.#r instanceof globalThis.Request&&(sc&&this.#i.body instanceof globalThis.FormData||this.#i.body instanceof URLSearchParams)&&!r&&this.#i.headers.delete(`content-type`),this.request=new globalThis.Request(this.#r,this.#i),Vc(this.#i.searchParams)){let t=new URL(this.request.url),n=this.#i.searchParams?.[Mc];if(n)for(let e of n)t.searchParams.delete(e);if(typeof this.#i.searchParams==`string`){let e=this.#i.searchParams.replace(/^\?/,``);e!==``&&(t.search=t.search?`${t.search}&${e}`:`?${e}`)}else{let n=new URLSearchParams(e.#e(this.#i.searchParams));for(let[e,r]of n.entries())t.searchParams.append(e,r)}if(this.#i.searchParams&&typeof this.#i.searchParams==`object`&&!Array.isArray(this.#i.searchParams)&&!(this.#i.searchParams instanceof URLSearchParams))for(let[e,n]of Object.entries(this.#i.searchParams))n===void 0&&t.searchParams.delete(e);this.request=new globalThis.Request(t,this.#i)}if(this.#i.onUploadProgress&&typeof this.#i.onUploadProgress!=`function`)throw TypeError("The `onUploadProgress` option must be a function");this.#l=typeof this.#i.totalTimeout==`number`?this.#j():void 0}#f(){let e=this.#i.retry.delay(this.#n+1),t=e;return this.#i.retry.jitter===!0?t=Math.random()*e:typeof this.#i.retry.jitter==`function`&&(t=this.#i.retry.jitter(e),(!Number.isFinite(t)||t<0)&&(t=e)),Math.min(this.#i.retry.backoffLimit,t)}async#p(e){if(this.#n>=this.#i.retry.limit)throw e;let t=e instanceof Error?e:new $s(e);if(t instanceof ec)return t.customDelay??this.#f();if(!this.#i.retry.methods.includes(this.request.method.toLowerCase()))throw e;if(this.#i.retry.shouldRetry!==void 0){let n=await this.#i.retry.shouldRetry({error:t,retryCount:this.#n+1});if(n===!1)throw e;if(n===!0)return this.#f()}if(Yc(e)){if(!this.#i.retry.retryOnTimeout)throw e;return this.#f()}if(qc(e)){if(!this.#i.retry.statusCodes.includes(e.response.status))throw e;let t=e.response.headers.get(`Retry-After`)??e.response.headers.get(`RateLimit-Reset`)??e.response.headers.get(`X-RateLimit-Retry-After`)??e.response.headers.get(`X-RateLimit-Reset`)??e.response.headers.get(`X-Rate-Limit-Reset`);if(t&&this.#i.retry.afterStatusCodes.includes(e.response.status)){let e=Number(t)*1e3;return Number.isNaN(e)?e=Date.parse(t)-Date.now():e>=Date.parse(`2024-01-01`)&&(e-=Date.now()),Number.isFinite(e)?(e=Math.max(0,e),Math.min(this.#i.retry.maxRetryAfter,e)):Math.min(this.#i.retry.maxRetryAfter,this.#f())}if(e.response.status===413)throw e;return this.#f()}if(!Jc(e))throw e;return this.#f()}#m(e){let t=this.#P(e);return this.#i.parseJson&&(e.json=async()=>{let n=await e.text();return n===``?JSON.parse(n):this.#i.parseJson(n,{request:t,response:e})}),e}async#h(e){let t=await this.#v(e,this.#g());if(t===Xc){this.#C();return}if(!t)return;if(!this.#_(e.headers.get(`content-type`)??``))return t;let n=await this.#y(t,e,this.#g(),this.#P(e));if(n===Xc){this.#C();return}return n}#g(){let e=this.#i.timeout===!1?1e4:this.#i.timeout,t=this.#A();if(t===void 0)return e;if(t<=0)throw new nc(this.request);return Math.min(e,t)}#_(e){let t=(e.split(`;`,1)[0]??``).trim().toLowerCase();return/\/(?:.*[.+-])?json$/.test(t)}async#v(e,t){let{body:n}=e;if(!n)try{return await e.text()}catch{return}let r;try{r=n.getReader()}catch{return}let i=Zc(e.headers.get(`content-type`)??``),a=[],o=0,s=(async()=>{try{for(;;){let{done:e,value:t}=await r.read();if(e)break;if(o+=t.byteLength,o>10485760){r.cancel().catch(()=>void 0);return}a.push(i.decode(t,{stream:!0}))}}catch{return}return a.push(i.decode()),a.join(``)})(),c=new Promise(e=>{let n=setTimeout(()=>{e(Xc)},t);s.finally(()=>{clearTimeout(n)})}),l=await Promise.race([s,c]);return l===Xc&&r.cancel().catch(()=>void 0),l}async#y(e,t,n,r){let i;try{return await Promise.race([Promise.resolve().then(()=>this.#i.parseJson?this.#i.parseJson(e,{request:r,response:t}):JSON.parse(e)),new Promise(e=>{i=setTimeout(()=>{e(Xc)},n)})])}catch{return}finally{clearTimeout(i)}}#b(e){e&&e.cancel().catch(()=>void 0)}#x(e){this.#b(e.body??void 0)}#S(){return this.#o?AbortSignal.any([this.#o,this.#t.signal]):this.#t.signal}#C(){let e=this.#A();if(e!==void 0&&e<=0)throw new nc(this.request)}async#w(){for(let e of this.#i.hooks.beforeRequest){let t=await e({request:this.request,options:this.#M(),retryCount:0});if(tl(t))this.#N(t);else if(nl(t))return t}}async#T(e){let t=this.#P(e);for(let n of this.#i.hooks.afterResponse){let r=this.#F(e.clone(),t);this.#m(r);let i;try{i=await n({request:this.request,options:this.#M(),response:r,retryCount:this.#n})}catch(t){throw r!==e&&this.#x(r),this.#x(e),t}if(i instanceof fc)throw r!==e&&this.#x(r),this.#x(e),new ec(i.options);let a=nl(i)?this.#F(i,t):e;r!==e&&r!==a&&r.body!==a.body&&this.#x(r),e!==a&&e.body!==a.body&&this.#x(e),e=a}return e}async#E(e){try{return await e()}catch(t){return this.#D(t,e)}}async#D(e,t){this.#u=!1;let n=Math.min(await this.#p(e),uc),r={signal:this.#o},i=this.#A();if(i!==void 0){if(i<=0)throw new nc(this.request);if(n>=i)throw await zc(i,r),new nc(this.request)}if(await zc(n,r),this.#C(),e instanceof ec&&e.customRequest){let t=new globalThis.Request(e.customRequest,this.#i.signal?{signal:this.#i.signal}:void 0);this.#N(t)}for(let t of this.#i.hooks.beforeRetry){let n;try{n=await t({request:this.request,options:this.#M(),error:e,retryCount:this.#n+1})}catch(t){throw t instanceof Error&&t!==e&&this.#s.add(t),t}if(tl(n)){this.#N(n);break}if(nl(n))return this.#u=!0,this.#n++,n;if(n===dc)return}return this.#C(),this.#n++,this.#E(t)}#O(){let e=this.#u;return this.#u=!1,e}async#k(){this.#t?.signal.aborted&&(this.#t=new globalThis.AbortController,this.#i.signal=this.#S(),this.request=new globalThis.Request(this.request,{signal:this.#i.signal}));let e=Bc(this.#i),t=this.#i.retry.limit>0?this.request.clone():void 0,n=this.#I(this.request,this.#i.body??void 0);this.#a=n,t&&(this.request=t);try{let t=this.#A();if(t!==void 0&&t<=0)throw new nc(this.request);let r=this.#i.timeout===!1?t:t===void 0?this.#i.timeout:Math.min(this.#i.timeout,t),i=r===void 0?await this.#i.fetch(n,e):await Rc(n,e,this.#t,{timeout:r,fetch:this.#i.fetch});return this.#F(i,n)}catch(e){throw Gc(e)?new Qs(this.request,{cause:e}):e}}#A(){if(this.#l===void 0)return;let e=this.#j()-this.#l;return Math.max(0,this.#i.totalTimeout-e)}#j(){return globalThis.performance?.now()??Date.now()}#M(){if(!this.#c){let{hooks:e,json:t,parseJson:n,stringifyJson:r,searchParams:i,timeout:a,totalTimeout:o,throwHttpErrors:s,fetch:c,...l}=this.#i;this.#c=Object.freeze(l)}return this.#c}#N(e){this.#c=void 0,this.request=e}#P(e){return this.#d.get(e)??this.request}#F(e,t){return this.#d.set(e,t),e}#I(e,t){return!this.#i.onUploadProgress||!e.body||!rc?e:bc(e,this.#i.onUploadProgress,t??this.#i.body??void 0)}};
|
|
26
|
+
/*! MIT License © Sindre Sorhus */
|
|
27
|
+
let sl=e=>{let t=(t,n)=>ol.create(t,wc(e,n));for(let n of cc)t[n]=(t,r)=>ol.create(t,wc(e,r,{method:n}));return t.create=e=>sl(wc(e)),t.extend=t=>(typeof t==`function`&&(t=t(e??{})),sl(wc(e,t))),t.stop=dc,t.retry=pc,t},cl=sl().extend({credentials:`include`,referrer:`https://www.bilibili.com`,headers:{Referer:`https://www.bilibili.com`}});function ll(e){function t(e,t){return e<<t|e>>>32-t}function n(e){let t=[];for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r<128?t.push(r):r<2048?t.push(192|r>>6,128|r&63):t.push(224|r>>12,128|r>>6&63,128|r&63)}return t}let r=[3614090360,3905402710,606105819,3250441966,4118548399,1200080426,2821735955,4249261313,1770035416,2336552879,4294925233,2304563134,1804603682,4254626195,2792965006,1236535329,4129170786,3225465664,643717713,3921069994,3593408605,38016083,3634488961,3889429448,568446438,3275163606,4107603335,1163531501,2850285829,4243563512,1735328473,2368359562,4294588738,2272392833,1839030562,4259657740,2763975236,1272893353,4139469664,3200236656,681279174,3936430074,3572445317,76029189,3654602809,3873151461,530742520,3299628645,4096336452,1126891415,2878612391,4237533241,1700485571,2399980690,4293915773,2240044497,1873313359,4264355552,2734768916,1309151649,4149444226,3174756917,718787259,3951481745],i=[7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21],a=n(e),o=a.length*8;for(a.push(128);a.length%64!=56;)a.push(0);for(let e=0;e<8;e++)a.push(o>>>e*8&255);let s=1732584193,c=4023233417,l=2562383102,u=271733878;for(let e=0;e<a.length;e+=64){let n=[];for(let t=0;t<16;t++)n[t]=a[e+t*4]|a[e+t*4+1]<<8|a[e+t*4+2]<<16|a[e+t*4+3]<<24;let o=s,d=c,f=l,p=u;for(let e=0;e<64;e++){let a=e<16?d&f|~d&p:e<32?p&d|~p&f:e<48?d^f^p:f^(d|~p),s=e<16?e:e<32?(5*e+1)%16:e<48?(3*e+5)%16:7*e%16,c=p;p=f,f=d,d+=t(o+a+r[e]+n[s],i[e]),o=c}s=s+o|0,c=c+d|0,l=l+f|0,u=u+p|0}function d(e){let t=`0123456789abcdef`,n=``;for(let r=0;r<4;r++)n=t[e>>>r*8+4&15]+t[e>>>r*8&15]+n;return n}return d(s)+d(c)+d(l)+d(u)}let ul=[46,47,18,2,53,8,23,32,15,50,10,31,58,3,45,35,27,43,5,49,33,9,42,19,29,28,14,37,12,52,56,7,0,16,38,11,54,55,54,34,36,51,6,21,40,26,41,44,17,46,52,17,25,60,59,13,39,49,56,4];function dl(e){let t=``;for(let n of ul)t+=e[n]||``;return t.slice(0,32)}async function fl(){let e=await cl.get(`https://api.bilibili.com/x/web-interface/nav`).json(),t=e.data.wbi_img.img_url,n=e.data.wbi_img.sub_url;return{imgKey:t.split(`/`).pop().split(`.`)[0],subKey:n.split(`/`).pop().split(`.`)[0]}}async function pl(e){let{imgKey:t,subKey:n}=await fl(),r=dl(t+n),i=Math.floor(Date.now()/1e3),a=ll(Object.keys(e).sort().map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(String(e[t]))}`).join(`&`)+r);return{...e,wts:i,w_rid:a}}async function ml(e){let t=await cl.get(`https://api.bilibili.com/x/web-interface/view`,{searchParams:{bvid:e}}).json();return{cid:t.data.cid,title:t.data.title,artist:t.data.owner.name,duration:t.data.duration,pic:t.data.pic,pages:(t.data.pages??[]).map(e=>({cid:e.cid,title:e.part,duration:e.duration}))}}async function hl(e,t){let n=await pl({bvid:e,cid:t,fnval:1,qn:16});return(await cl.get(`https://api.bilibili.com/x/player/wbi/playurl`,{searchParams:n}).json()).data.durl[0].url}async function gl(){return(await cl.get(`https://api.bilibili.com/x/web-interface/nav`).json()).data.mid}async function _l(e){let t=await cl.get(`https://api.bilibili.com/x/v3/fav/folder/created/list-all`,{searchParams:{up_mid:e}}).json();return t.data?.list?t.data.list.map(e=>({id:e.id,title:e.title,cover:``,mediaCount:e.media_count,type:e.type,ownerMid:e.mid})):[]}async function vl(e){let t=await cl.get(`https://api.bilibili.com/x/v3/fav/resource/list`,{searchParams:{media_id:e,ps:20,pn:1}}).json();return t.data?.medias?t.data.medias.filter(e=>e.type===2).map(e=>({bvid:e.bvid??e.bv_id,title:e.title,duration:e.duration,pageCount:e.page??1,upperName:e.upper?.name??``})):[]}async function yl(e,t){let n=await cl.get(`https://api.bilibili.com/x/polymer/web-space/seasons_archives_list`,{searchParams:{mid:t,season_id:e,sort_reverse:!1,page_size:30,page_num:1,web_location:`333.1387`}}).json();return n.data?.archives?n.data.archives.map(e=>({bvid:e.bvid,title:e.title,duration:e.duration,pageCount:1,upperName:``})):[]}async function bl(e){let t=await cl.get(`https://api.bilibili.com/x/v3/fav/folder/collected/list`,{searchParams:{up_mid:e,ps:50,pn:1,platform:`web`}}).json();return t.data?.list?t.data.list.map(e=>({id:e.id,title:e.title,cover:e.cover??``,mediaCount:e.media_count,upperName:e.upper?.name,type:e.type,ownerMid:e.mid})):(console.debug(`getCollectedFavFolders response:`,t),[])}let Z=null;function xl(){return Z||(Z=new Audio,Z.addEventListener(`timeupdate`,()=>{Z&&!Z.paused&&(X.currentTime=Math.floor(Z.currentTime),X.playing=!0)}),Z.addEventListener(`ended`,()=>{X.playing=!1,X.currentTime=0;let e=Js(),t=Ys();if(t<e.length-1){let n=e[t+1];Cl(n.songIndex,n.pageIndex)}}),Z.addEventListener(`waiting`,()=>{X.loading=!0}),Z.addEventListener(`canplay`,()=>{X.loading=!1}),Z.addEventListener(`error`,()=>{X.loading=!1})),Z}async function Sl(e){await Cl(e,0)}async function Cl(e,t){let n=X.playlist[e];if(!n)return;if(n.pages.length===0||n.pages[0]?.cid===0){X.currentId=n.id,X.currentTime=0,X.loading=!0;try{let e=await ml(n.bvid);n.title=e.title,n.artist=e.artist,n.duration=e.duration,n.pic=e.pic,n.pages=e.pages}catch(e){console.error(`获取视频信息失败:`,e),X.loading=!1;return}}let r=Math.min(t,n.pages.length-1);n.currentPageIndex=r;let i=n.pages[r];n.cid=i.cid,X.currentId=n.id,X.currentTime=0,X.loading=!0;try{let e=xl();e.src=await hl(n.bvid,i.cid),await e.play(),X.playing=!0}catch(e){console.error(`播放失败:`,e),X.playing=!1,X.loading=!1}}function wl(){let e=xl();X.playing?(e.pause(),X.playing=!1):e.src?(e.play(),X.playing=!0):Cl(Us.value,Ws.value?.currentPageIndex??0)}function Tl(){let e=Js();if(e.length===0)return;let t=e[(Ys()+1)%e.length];Cl(t.songIndex,t.pageIndex)}function El(){let e=Js();if(e.length===0)return;let t=e[(Ys()-1+e.length)%e.length];Cl(t.songIndex,t.pageIndex)}function Dl(e){let t=xl();t.currentTime=e,X.currentTime=e}function Ol(e){X.currentTime=e}
|
|
28
|
+
/**
|
|
29
|
+
* @license @tabler/icons-vue v3.44.0 - MIT
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license.
|
|
32
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/
|
|
34
|
+
var kl={outline:{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},filled:{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`currentColor`,stroke:`none`}};
|
|
35
|
+
/**
|
|
36
|
+
* @license @tabler/icons-vue v3.44.0 - MIT
|
|
37
|
+
*
|
|
38
|
+
* This source code is licensed under the MIT license.
|
|
39
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
40
|
+
*/
|
|
41
|
+
let Al=(e,t,n,r)=>({color:n=`currentColor`,size:i=24,stroke:a=2,title:o,class:s,...c},{attrs:l,slots:u})=>{let d=[...r.map(e=>zo(...e)),...u.default?[u.default()]:[]];return o&&(d=[zo(`title`,o),...d]),zo(`svg`,{...kl[e],width:i,height:i,...l,class:[`tabler-icon`,`tabler-icon-${t}`],...e===`filled`?{fill:n}:{"stroke-width":a??kl[e][`stroke-width`],stroke:n},...c},d)};
|
|
42
|
+
/**
|
|
43
|
+
* @license @tabler/icons-vue v3.44.0 - MIT
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the MIT license.
|
|
46
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
47
|
+
*/
|
|
48
|
+
var jl=Al(`outline`,`folder`,`Folder`,[[`path`,{d:`M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2`,key:`svg-0`}]]),Ml=Al(`outline`,`x`,`X`,[[`path`,{d:`M18 6l-12 12`,key:`svg-0`}],[`path`,{d:`M6 6l12 12`,key:`svg-1`}]]),Q={backdrop:`F8mI9G_backdrop`,closeBtn:`F8mI9G_closeBtn`,content:`F8mI9G_content`,dialog:`F8mI9G_dialog`,dotPulse:`F8mI9G_dotPulse`,empty:`F8mI9G_empty`,folder:`F8mI9G_folder`,folderCover:`F8mI9G_folderCover`,folderIcon:`F8mI9G_folderIcon`,folderInfo:`F8mI9G_folderInfo`,folderMeta:`F8mI9G_folderMeta`,folderTitle:`F8mI9G_folderTitle`,header:`F8mI9G_header`,loading:`F8mI9G_loading`,loadingDot:`F8mI9G_loadingDot`,section:`F8mI9G_section`,sectionLabel:`F8mI9G_sectionLabel`}
|
|
49
|
+
/**
|
|
50
|
+
* @license @tabler/icons-vue v3.44.0 - MIT
|
|
51
|
+
*
|
|
52
|
+
* This source code is licensed under the MIT license.
|
|
53
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
+
*/
|
|
55
|
+
;function $(e,t,n){let{children:r}=t;return delete t.children,arguments.length>2&&(t.key=n),zo(e,t,r)}var Nl=gi(e=>{let t=Hs({queryKey:[`user-mid`],queryFn:gl,staleTime:300*1e3}),n=Hs({queryKey:[`fav-folders`,`created`,t.data.value],queryFn:()=>_l(t.data.value),enabled:Ro(()=>!!t.data.value),retry:1}),r=Hs({queryKey:[`fav-folders`,`collected`,t.data.value],queryFn:()=>bl(t.data.value),enabled:Ro(()=>!!t.data.value),retry:1}),i=Ro(()=>t.isLoading.value||n.isLoading.value||r.isLoading.value);async function a(t){let n;try{n=t.type===21&&t.ownerMid?await yl(t.id,t.ownerMid):await vl(t.id)}catch(e){console.error(`获取内容失败:`,e);return}if(n.length===0)return;let r=n.map(e=>{let t=e.pageCount>1?Array.from({length:e.pageCount},(e,t)=>({cid:0,title:`加载中…`,duration:0})):[];return{id:e.bvid,bvid:e.bvid,title:e.title,artist:e.upperName,duration:e.duration,pic:``,cid:0,pages:t,currentPageIndex:0}});X.playlist.splice(0,X.playlist.length,...r),await Sl(0),e.onPlaylistUpdated?.(),e.onClose()}return()=>$(`div`,{class:Q.backdrop,onClick:()=>e.onClose(),children:$(`div`,{class:Q.dialog,onClick:e=>e.stopPropagation(),children:[$(`div`,{class:Q.header,children:[$(`span`,{children:`添加来源`}),$(`button`,{class:Q.closeBtn,onClick:()=>e.onClose(),children:$(Ml,{size:16})})]}),$(`div`,{class:Q.content,children:i.value?$(`div`,{class:Q.loading,children:[$(`span`,{class:Q.loadingDot}),`加载中`]}):$(K,{children:[$(`div`,{class:Q.section,children:[$(`div`,{class:Q.sectionLabel,children:`我的收藏夹`}),n.data.value?.length===0?$(`div`,{class:Q.empty,children:`暂无收藏夹`}):n.data.value?.map(e=>$(`div`,{class:Q.folder,onClick:()=>a(e),children:[$(`div`,{class:Q.folderIcon,children:$(jl,{size:18})}),$(`div`,{class:Q.folderInfo,children:[$(`div`,{class:Q.folderTitle,children:e.title}),$(`div`,{class:Q.folderMeta,children:[e.mediaCount,` 项`]})]})]},e.id))]}),$(`div`,{class:Q.section,children:[$(`div`,{class:Q.sectionLabel,children:`订阅`}),r.data.value?.length===0?$(`div`,{class:Q.empty,children:`暂无订阅`}):r.data.value?.map(e=>$(`div`,{class:Q.folder,onClick:()=>a(e),children:[e.cover?$(`img`,{class:Q.folderCover,src:e.cover,alt:e.title,referrerpolicy:`origin`}):$(`div`,{class:Q.folderIcon,children:$(jl,{size:18})}),$(`div`,{class:Q.folderInfo,children:[$(`div`,{class:Q.folderTitle,children:e.title}),$(`div`,{class:Q.folderMeta,children:[e.mediaCount,` 项`,e.upperName?` · ${e.upperName}`:``]})]})]},e.id))]})]})})]})})},{props:{onClose:{type:Function,required:!0},onPlaylistUpdated:{type:Function}}}),Pl={artwork:`nM8Qfq_artwork`,breath:`nM8Qfq_breath`,coverBreathe:`nM8Qfq_coverBreathe`,coverImg:`nM8Qfq_coverImg`,coverImgPlaying:`nM8Qfq_coverImgPlaying`,coverWrapPlaying:`nM8Qfq_coverWrapPlaying`,gradient:`nM8Qfq_gradient`,overlay:`nM8Qfq_overlay`,overlayPlaying:`nM8Qfq_overlayPlaying`},Fl=gi(()=>()=>$(`div`,{class:Pl.artwork,children:Ws.value?.pic?$(K,{children:[$(`img`,{class:[Pl.coverImg,X.playing&&!X.loading&&Pl.coverWrapPlaying],src:Ws.value.pic,alt:Ws.value.title,referrerpolicy:`origin`}),$(`div`,{class:[Pl.overlay,X.playing&&Pl.overlayPlaying].filter(Boolean).join(` `)})]}):$(`div`,{class:Pl.gradient})})),Il=Al(`outline`,`folder-open`,`FolderOpen`,[[`path`,{d:`M5 19l2.757 -7.351a1 1 0 0 1 .936 -.649h12.307a1 1 0 0 1 .986 1.164l-.996 5.211a2 2 0 0 1 -1.964 1.625h-14.026a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2h4l3 3h7a2 2 0 0 1 2 2v2`,key:`svg-0`}]]),Ll=Al(`outline`,`player-pause`,`PlayerPause`,[[`path`,{d:`M6 6a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1l0 -12`,key:`svg-0`}],[`path`,{d:`M14 6a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1l0 -12`,key:`svg-1`}]]),Rl=Al(`outline`,`player-play`,`PlayerPlay`,[[`path`,{d:`M7 4v16l13 -8l-13 -8`,key:`svg-0`}]]),zl=Al(`outline`,`player-skip-back`,`PlayerSkipBack`,[[`path`,{d:`M20 5v14l-12 -7l12 -7`,key:`svg-0`}],[`path`,{d:`M4 5l0 14`,key:`svg-1`}]]),Bl=Al(`outline`,`player-skip-forward`,`PlayerSkipForward`,[[`path`,{d:`M4 5v14l12 -7l-12 -7`,key:`svg-0`}],[`path`,{d:`M20 5l0 14`,key:`svg-1`}]]),Vl=Al(`outline`,`playlist`,`Playlist`,[[`path`,{d:`M11 17a3 3 0 1 0 6 0a3 3 0 1 0 -6 0`,key:`svg-0`}],[`path`,{d:`M17 17v-13h4`,key:`svg-1`}],[`path`,{d:`M13 5h-10`,key:`svg-2`}],[`path`,{d:`M3 9l10 0`,key:`svg-3`}],[`path`,{d:`M9 13h-6`,key:`svg-4`}]]),Hl={btn:`c74uFW_btn`,btnActive:`c74uFW_btnActive`,controls:`c74uFW_controls`,dotPulse:`c74uFW_dotPulse`,loadingDot:`c74uFW_loadingDot`,playBtn:`c74uFW_playBtn`},Ul=gi(e=>()=>$(`div`,{class:Hl.controls,children:[$(`button`,{class:Hl.btn,"aria-label":`上一首`,onClick:El,children:$(zl,{size:14})}),$(`button`,{class:[Hl.btn,Hl.playBtn].join(` `),"aria-label":X.playing?`暂停`:`播放`,onClick:wl,children:X.loading?$(`span`,{class:Hl.loadingDot}):X.playing?$(Ll,{size:15}):$(Rl,{size:16})}),$(`button`,{class:Hl.btn,"aria-label":`下一首`,onClick:Tl,children:$(Bl,{size:14})}),$(`button`,{class:Hl.btn,"aria-label":`添加来源`,onClick:()=>e.onOpenDialog?.(),children:$(Il,{size:14})}),$(`button`,{class:[Hl.btn,e.showPlaylist&&Hl.btnActive].filter(Boolean).join(` `),"aria-label":`播放列表`,onClick:()=>e.onTogglePlaylist?.(),children:$(Vl,{size:14})})]}),{props:{showPlaylist:{type:Boolean,required:!0},onTogglePlaylist:{type:Function,required:!0},onOpenDialog:{type:Function,required:!0}}}),Wl={info:`mSRbea_info`,title:`mSRbea_title`},Gl=gi(e=>()=>$(`div`,{class:Wl.info,children:$(`h2`,{class:Wl.title,children:e.title})}),{props:{title:{type:String,required:!0}}}),Kl={time:`Gw7Pbq_time`},ql=gi(()=>()=>$(`span`,{class:Kl.time,children:[qs(X.currentTime),` / `,qs(Ks.value)]})),Jl=Al(`outline`,`chevron-down`,`ChevronDown`,[[`path`,{d:`M6 9l6 6l6 -6`,key:`svg-0`}]]),Yl=Al(`outline`,`chevron-right`,`ChevronRight`,[[`path`,{d:`M9 6l6 6l-6 6`,key:`svg-0`}]]),Xl={barBounce:`e5cLqW_barBounce`,bars:`e5cLqW_bars`,box:`e5cLqW_box`,dot:`e5cLqW_dot`,dotPulse:`e5cLqW_dotPulse`,num:`e5cLqW_num`},Zl=gi(e=>()=>$(`span`,{class:Xl.box,children:e.loading?$(`span`,{class:Xl.dot}):e.playing?$(`span`,{class:Xl.bars,children:[$(`span`,{}),$(`span`,{}),$(`span`,{})]}):$(`span`,{class:Xl.num,children:e.index})}),{props:{playing:{type:Boolean,required:!0},loading:{type:Boolean,required:!0},index:{type:Number,required:!0}}}),Ql={duration:`IZe7ZG_duration`,index:`IZe7ZG_index`,meta:`IZe7ZG_meta`,row:`IZe7ZG_row`,rowActive:`IZe7ZG_rowActive`,rowIndent:`IZe7ZG_rowIndent`,spin:`IZe7ZG_spin`,spinner:`IZe7ZG_spinner`,title:`IZe7ZG_title`,titleActive:`IZe7ZG_titleActive`},$l=gi(e=>()=>{
|
|
56
|
+
/**
|
|
57
|
+
* @license @tabler/icons-vue v3.44.0 - MIT
|
|
58
|
+
*
|
|
59
|
+
* This source code is licensed under the MIT license.
|
|
60
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
+
*/
|
|
62
|
+
/**
|
|
63
|
+
* @license @tabler/icons-vue v3.44.0 - MIT
|
|
64
|
+
*
|
|
65
|
+
* This source code is licensed under the MIT license.
|
|
66
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
67
|
+
*/
|
|
68
|
+
/**
|
|
69
|
+
* @license @tabler/icons-vue v3.44.0 - MIT
|
|
70
|
+
*
|
|
71
|
+
* This source code is licensed under the MIT license.
|
|
72
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
73
|
+
*/
|
|
74
|
+
/**
|
|
75
|
+
* @license @tabler/icons-vue v3.44.0 - MIT
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the MIT license.
|
|
78
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/
|
|
80
|
+
/**
|
|
81
|
+
* @license @tabler/icons-vue v3.44.0 - MIT
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the MIT license.
|
|
84
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/
|
|
86
|
+
/**
|
|
87
|
+
* @license @tabler/icons-vue v3.44.0 - MIT
|
|
88
|
+
*
|
|
89
|
+
* This source code is licensed under the MIT license.
|
|
90
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
+
*/
|
|
92
|
+
/**
|
|
93
|
+
* @license @tabler/icons-vue v3.44.0 - MIT
|
|
94
|
+
*
|
|
95
|
+
* This source code is licensed under the MIT license.
|
|
96
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
97
|
+
*/
|
|
98
|
+
/**
|
|
99
|
+
* @license @tabler/icons-vue v3.44.0 - MIT
|
|
100
|
+
*
|
|
101
|
+
* This source code is licensed under the MIT license.
|
|
102
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
103
|
+
*/
|
|
104
|
+
let t=e.mode===`folder`;return $(`div`,{class:[Ql.row,e.active&&Ql.rowActive,e.indent&&Ql.rowIndent].filter(Boolean).join(` `),title:e.artist?`${e.title} — ${e.artist}`:e.title,onClick:()=>e.onClick(),children:[$(`div`,{class:Ql.index,children:t?e.loading?$(`span`,{class:Ql.spinner}):e.expanded?$(Jl,{size:14}):$(Yl,{size:14}):$(Zl,{playing:e.playing??!1,loading:e.isLoading??!1,index:e.index})}),$(`span`,{class:[Ql.title,e.active&&Ql.titleActive].filter(Boolean).join(` `),children:e.title}),t&&e.pageCount!=null&&$(`span`,{class:Ql.meta,children:[e.pageCount,` 首`]}),$(`span`,{class:Ql.duration,children:e.duration})]})},{props:{mode:{type:String,required:!0},title:{type:String,required:!0},duration:{type:String,required:!0},index:{type:Number,required:!0},active:{type:Boolean,required:!0},pageCount:{type:Number},expanded:{type:Boolean},loading:{type:Boolean},playing:{type:Boolean},isLoading:{type:Boolean},artist:{type:String},indent:{type:Boolean,default:!1},onClick:{type:Function,required:!0}}}),eu={empty:`pcc-NG_empty`,header:`pcc-NG_header`,list:`pcc-NG_list`,playlist:`pcc-NG_playlist`};function tu(e){return`${Math.floor(e/60)}:${Math.floor(e%60).toString().padStart(2,`0`)}`}var nu=gi(()=>{let e=Kn({}),t=Kn({});async function n(n){if(e.value[n]){e.value={...e.value,[n]:!1};return}let r=X.playlist[n];if(r.pages.length>1&&r.pages[0]?.cid===0){t.value={...t.value,[n]:!0};try{let e=await ml(r.bvid);r.title=e.title,r.artist=e.artist,r.duration=e.duration,r.pic=e.pic,r.pages=e.pages}catch(e){console.error(`获取视频信息失败:`,e),t.value={...t.value,[n]:!1};return}t.value={...t.value,[n]:!1}}e.value={...e.value,[n]:!0}}return()=>{let r=0;return $(`div`,{class:eu.playlist,children:[$(`div`,{class:eu.header,children:`播放列表`}),$(`div`,{class:eu.list,children:[X.playlist.length===0&&$(`div`,{class:eu.empty,children:`暂无内容`}),X.playlist.map((i,a)=>{let o=a===Us.value,s=i.pages.length>1,c=e.value[a],l=t.value[a];r++;let u=[];if(s){if(u.push($($l,{mode:`folder`,title:i.title,artist:i.artist,duration:tu(i.duration),index:r,active:o,pageCount:i.pages.length,expanded:c,loading:l,onClick:()=>void n(a)})),c)for(let e=0;e<i.pages.length;e++){let t=i.pages[e],n=o&&i.currentPageIndex===e;u.push($($l,{mode:`leaf`,title:t.title,artist:i.artist,duration:tu(t.duration),index:e+1,active:n,playing:n,isLoading:X.loading&&n,indent:!0,onClick:()=>void Cl(a,e)}))}}else{let e=o&&i.currentPageIndex===0;u.push($($l,{mode:`leaf`,title:i.title,artist:i.artist,duration:tu(i.duration),index:r,active:e,playing:e,isLoading:X.loading&&e,onClick:()=>void Sl(a)}))}return u})]})]})}}),ru={banner:`dpm0XG_banner`,midRow:`dpm0XG_midRow`,overlay:`dpm0XG_overlay`,playlistOpen:`dpm0XG_playlistOpen`,playlistWrap:`dpm0XG_playlistWrap`,progFill:`dpm0XG_progFill`,progThumb:`dpm0XG_progThumb`,progTrack:`dpm0XG_progTrack`,shell:`dpm0XG_shell`},iu=gi(()=>{let e=Kn(!1),t=()=>{e.value=!e.value},n=Kn(!1),r=Kn(null),i=Kn(!1);function a(e){if(!r.value||Ks.value===0)return 0;let t=r.value.getBoundingClientRect();return Math.max(0,Math.min((e.clientX-t.left)/t.width,1))*Ks.value}function o(e){i.value=!0,Dl(a(e))}function s(e){i.value&&Ol(a(e))}function c(e){i.value&&(i.value=!1,Dl(a(e)))}return ji(()=>{document.addEventListener(`mousemove`,s),document.addEventListener(`mouseup`,c)}),Fi(()=>{document.removeEventListener(`mousemove`,s),document.removeEventListener(`mouseup`,c)}),()=>{let i=Ks.value>0?X.currentTime/Ks.value*100:0;return $(K,{children:[$(`div`,{class:[ru.shell,e.value&&ru.shellExpanded].filter(Boolean).join(` `),children:[$(`div`,{class:ru.banner,children:[$(Fl,{}),$(`div`,{class:ru.overlay,children:[$(Gl,{title:Gs.value}),$(`div`,{ref:r,class:ru.progTrack,onMousedown:o,children:[$(`div`,{class:ru.progFill,style:{width:`${i}%`}}),$(`div`,{class:ru.progThumb,style:{left:`${i}%`}})]}),$(`div`,{class:ru.midRow,children:[$(Ul,{showPlaylist:e.value,onTogglePlaylist:t,onOpenDialog:()=>{n.value=!0}}),$(ql,{})]})]})]}),$(`div`,{class:[ru.playlistWrap,e.value&&ru.playlistOpen].filter(Boolean).join(` `),children:$(nu,{})})]}),n.value&&$(di,{to:`body`,children:$(Nl,{onClose:()=>{n.value=!1},onPlaylistUpdated:()=>{e.value=!0}})})]})}});let au=Es(gi(()=>()=>$(iu,{})));au.use(Bs);let ou=document.createElement(`div`);au.mount(ou);let su=`.bili-dyn-home--member>aside.right>section.sticky`,cu=document.querySelector(su);if(cu)cu.prepend(ou);else{let e=new MutationObserver(()=>{let t=document.querySelector(su);t&&(t.prepend(ou),e.disconnect())});e.observe(document.body,{childList:!0,subtree:!0})}})();document.head.appendChild(Object.assign(document.createElement('style'),{textContent:".F8mI9G_backdrop{z-index:9999;backdrop-filter:blur(6px);background:#00000059;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.F8mI9G_dialog{background:#fff;border-radius:16px;flex-direction:column;width:380px;max-height:70vh;display:flex;overflow:hidden;box-shadow:0 25px 60px #00000026}.F8mI9G_header{color:#000000e6;flex-shrink:0;justify-content:space-between;align-items:center;padding:20px 24px 0;font-size:15px;font-weight:500;display:flex}.F8mI9G_closeBtn{color:#0003;cursor:pointer;background:0 0;border:none;border-radius:50%;justify-content:center;align-items:center;width:28px;height:28px;margin-right:-4px;transition:color .15s;display:flex}.F8mI9G_closeBtn:hover{color:#00000080}.F8mI9G_content{overscroll-behavior:contain;flex:1;padding:16px 0 8px;overflow-y:auto}.F8mI9G_content::-webkit-scrollbar{width:4px}.F8mI9G_content::-webkit-scrollbar-thumb{background:#0000000f;border-radius:2px}.F8mI9G_section{padding:0 16px}.F8mI9G_section+.F8mI9G_section{margin-top:4px}.F8mI9G_sectionLabel{color:#00000040;letter-spacing:.3px;padding:8px 8px 6px;font-size:11px;font-weight:500}.F8mI9G_folder{cursor:pointer;border-radius:8px;align-items:center;gap:10px;padding:8px;transition:background .15s;display:flex}.F8mI9G_folder:hover{background:#00000009}.F8mI9G_folderCover{object-fit:cover;background:#0000000a;border-radius:6px;flex-shrink:0;width:36px;height:36px}.F8mI9G_folderIcon{color:#00000026;background:#0000000a;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;display:flex}.F8mI9G_folderInfo{flex:1;min-width:0}.F8mI9G_folderTitle{color:#000000d9;white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:450;overflow:hidden}.F8mI9G_folderMeta{color:#0000004d;white-space:nowrap;text-overflow:ellipsis;margin-top:1px;font-size:11px;overflow:hidden}.F8mI9G_loading{color:#00000040;justify-content:center;align-items:center;gap:8px;padding:48px 24px;font-size:13px;display:flex}.F8mI9G_loadingDot{background:currentColor;border-radius:50%;width:4px;height:4px;animation:.6s ease-in-out infinite alternate F8mI9G_dotPulse;display:block}@keyframes F8mI9G_dotPulse{0%{opacity:.25;transform:scale(.6)}to{opacity:1;transform:scale(1)}}.F8mI9G_empty{color:#0003;padding:12px 8px;font-size:12px}.nM8Qfq_artwork{width:100%;height:100%;position:relative;overflow:hidden}.nM8Qfq_gradient{background:radial-gradient(90% 65% at 15% 20%,#1a1a2e 0%,#0000 60%),radial-gradient(80% 60% at 85% 15%,#16213e 0%,#0000 55%),radial-gradient(100% 80% at 50% 100%,#0f3460 0%,#0a0a1a 70%);width:100%;height:100%}.nM8Qfq_coverWrapPlaying{animation:8s ease-in-out infinite alternate nM8Qfq_coverBreathe}@keyframes nM8Qfq_coverBreathe{0%{filter:blur(12px)brightness(.65)}50%{filter:blur(12px)brightness(.85)}to{filter:blur(12px)brightness(.65)}}.nM8Qfq_coverImg{filter:blur(8px)brightness(.65);object-fit:cover;object-position:center;width:100%;height:100%;display:block;position:absolute}.nM8Qfq_coverImgPlaying{animation:8s ease-in-out infinite alternate nM8Qfq_coverBreathe}.nM8Qfq_overlay{pointer-events:none;opacity:0;background:radial-gradient(circle,#ffffff14 0%,#ffffff08 40%,#0000 70%);transition:opacity .3s;position:absolute;inset:0}.nM8Qfq_overlayPlaying{opacity:1;animation:2.4s ease-in-out infinite nM8Qfq_breath}@keyframes nM8Qfq_breath{0%,to{opacity:.3}50%{opacity:.85}}.c74uFW_controls{align-items:center;gap:4px;display:flex}.c74uFW_btn{color:#ffffffb3;cursor:pointer;background:0 0;border:none;border-radius:50%;justify-content:center;align-items:center;width:24px;height:24px;padding:0;transition:color .15s,background .15s;display:inline-flex}.c74uFW_btn:hover{color:#fff;background:#ffffff1f}.c74uFW_btn:active{transform:scale(.88)}.c74uFW_btnActive{color:#fff;background:#ffffff26}.c74uFW_playBtn{color:#fff;background:#ffffff26;width:28px;height:28px}.c74uFW_playBtn:hover{background:#ffffff40}.c74uFW_loadingDot{background:currentColor;border-radius:50%;width:4px;height:4px;animation:.6s ease-in-out infinite alternate c74uFW_dotPulse;display:block}@keyframes c74uFW_dotPulse{0%{opacity:.3;transform:scale(.6)}to{opacity:1;transform:scale(1)}}.mSRbea_info{min-width:0}.mSRbea_title{color:#fff;white-space:nowrap;text-overflow:ellipsis;margin:0;font-size:12px;font-weight:600;line-height:1.6;overflow:hidden}.Gw7Pbq_time{font-variant-numeric:tabular-nums;color:#ffffff80;white-space:nowrap;flex-shrink:0;font-size:10px;font-weight:400}.e5cLqW_box{flex-shrink:0;justify-content:center;align-items:center;width:16px;height:16px;display:flex}.e5cLqW_num{color:#0000004d;font-size:11px;font-weight:400;line-height:1}.e5cLqW_dot{background:currentColor;border-radius:50%;width:4px;height:4px;animation:.6s ease-in-out infinite alternate e5cLqW_dotPulse;display:block}@keyframes e5cLqW_dotPulse{0%{opacity:.3;transform:scale(.6)}to{opacity:1;transform:scale(1)}}.e5cLqW_bars{justify-content:center;align-items:flex-end;gap:1.5px;width:14px;height:14px;display:flex}.e5cLqW_bars span{transform-origin:bottom;will-change:transform;background:currentColor;border-radius:1px;width:2px;animation:.5s cubic-bezier(.4,0,.2,1) infinite alternate e5cLqW_barBounce;display:block}.e5cLqW_bars span:first-child{height:10px}.e5cLqW_bars span:nth-child(2){height:14px;animation-delay:.12s}.e5cLqW_bars span:nth-child(3){height:11px;animation-delay:.24s}@keyframes e5cLqW_barBounce{0%{transform:scaleY(.15)}to{transform:scaleY(1)}}.IZe7ZG_row{cursor:pointer;align-items:center;gap:8px;padding:7px 14px;transition:background .15s;display:flex}.IZe7ZG_row:hover{background:#0000000a}.IZe7ZG_rowActive{background:#0000000d}.IZe7ZG_rowIndent{padding-left:36px}.IZe7ZG_index{color:#0000004d;flex-shrink:0;justify-content:center;align-items:center;width:16px;display:flex}.IZe7ZG_title{color:#000000d9;white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;font-size:13px;font-weight:500;overflow:hidden}.IZe7ZG_titleActive{color:#000;font-weight:600}.IZe7ZG_meta{color:#0000004d;white-space:nowrap;text-overflow:ellipsis;flex-shrink:0;font-size:10px;font-weight:400;overflow:hidden}.IZe7ZG_duration{font-variant-numeric:tabular-nums;color:#0000004d;flex-shrink:0;font-size:11px;font-weight:400}.IZe7ZG_spinner{border:1.5px solid #00000026;border-top-color:#0006;border-radius:50%;width:8px;height:8px;animation:.6s linear infinite IZe7ZG_spin;display:block}@keyframes IZe7ZG_spin{to{transform:rotate(360deg)}}.pcc-NG_playlist{cursor:default;background:#ffffff0a}.pcc-NG_header{color:#0000004d;text-transform:uppercase;letter-spacing:.8px;border-bottom:1px solid #0000000f;padding:10px 14px;font-size:11px;font-weight:600}.pcc-NG_list{overscroll-behavior:contain;scrollbar-width:none;max-height:260px;padding:0 0 6px;overflow-y:scroll}.pcc-NG_list::-webkit-scrollbar{display:none}.pcc-NG_empty{color:#00000040;text-align:center;padding:20px 14px;font-size:12px}.dpm0XG_shell{color:#000;background:#fff;border-radius:6px;margin-bottom:10px;font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,SF Pro Text,Helvetica Neue,sans-serif;overflow:hidden;box-shadow:0 4px 16px #0000000f,0 12px 40px #00000014}.dpm0XG_banner{height:100px;position:relative}.dpm0XG_overlay{opacity:.3;pointer-events:none;background:linear-gradient(#0000 45%,#0003 60%,#0000008c 100%);flex-direction:column;justify-content:flex-end;gap:5px;padding:10px 12px;transition:opacity .2s;display:flex;position:absolute;inset:0}.dpm0XG_shell:hover .dpm0XG_overlay{opacity:1;pointer-events:auto}.dpm0XG_progTrack{cursor:pointer;align-items:center;height:16px;display:flex;position:relative}.dpm0XG_progTrack:before{content:\"\";background:#fff3;border-radius:1px;height:2px;position:absolute;top:50%;left:0;right:0;transform:translateY(-50%)}.dpm0XG_progFill{pointer-events:none;background:#fff;border-radius:1px;height:2px;position:absolute;top:50%;left:0;transform:translateY(-50%)}.dpm0XG_progThumb{pointer-events:none;background:#fff;border-radius:50%;width:8px;height:8px;transition:transform .15s;position:absolute;top:50%;transform:translate(-50%,-50%)scale(0);box-shadow:0 1px 4px #0000004d}.dpm0XG_progTrack:hover .dpm0XG_progThumb{transform:translate(-50%,-50%)scale(1)}.dpm0XG_midRow{align-items:center;display:flex}.dpm0XG_midRow>:last-child{margin-left:auto}.dpm0XG_playlistWrap{grid-template-rows:0fr;transition:grid-template-rows .3s;display:grid}.dpm0XG_playlistWrap>*{overflow:hidden}.dpm0XG_playlistOpen{grid-template-rows:1fr}\n"}));
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "sicmu",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "A starter for creating a TypeScript package.",
|
|
5
|
+
"homepage": "https://github.com/author/library#readme",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://github.com/author/library/issues"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"author": "Author Name <author.name@mail.com>",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/author/library.git"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"type": "module",
|
|
19
|
+
"main": "./dist/index.js",
|
|
20
|
+
"module": "./dist/index.js",
|
|
21
|
+
"exports": {
|
|
22
|
+
"./package.json": "./package.json"
|
|
23
|
+
},
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"dev": "vp dev",
|
|
29
|
+
"build": "vp pack",
|
|
30
|
+
"check": "vp check",
|
|
31
|
+
"watch": "vp pack --watch",
|
|
32
|
+
"prepublishOnly": "vp run build",
|
|
33
|
+
"prepare": "vp config"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@tabler/icons-vue": "^3.44.0",
|
|
37
|
+
"@tanstack/vue-query": "^5.100.14",
|
|
38
|
+
"@tsdown/css": "^0.22.1",
|
|
39
|
+
"@types/node": "^25.6.2",
|
|
40
|
+
"@vueuse/core": "^14.3.0",
|
|
41
|
+
"bumpp": "^11.1.0",
|
|
42
|
+
"ky": "^2.0.2",
|
|
43
|
+
"sass-embedded": "^1.100.0",
|
|
44
|
+
"typescript": "^6.0.3",
|
|
45
|
+
"vite-plus": "catalog:",
|
|
46
|
+
"vue": "^3.5.35"
|
|
47
|
+
},
|
|
48
|
+
"packageManager": "pnpm@11.5.0"
|
|
49
|
+
}
|