@streamapp/stream 0.0.1
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 +24 -0
- package/bin/stream.mjs +89 -0
- package/package.json +34 -0
- package/resources/app/dist-panel/panel-boards.js +6 -0
- package/resources/app/dist-panel/panel-detail.css +1 -0
- package/resources/app/dist-panel/panel-detail.js +2141 -0
- package/resources/app/dist-panel/panel-manage.css +1 -0
- package/resources/app/dist-panel/panel-manage.js +2246 -0
- package/resources/app/dist-panel/panel-movie.css +1 -0
- package/resources/app/dist-panel/panel-movie.js +2268 -0
- package/resources/app/dist-panel/panel-research.css +1 -0
- package/resources/app/dist-panel/panel-research.js +316 -0
- package/resources/app/dist-panel/panel.css +1 -0
- package/resources/app/dist-panel/panel.js +463 -0
- package/resources/dsh-engine-lock/package-lock.json +9032 -0
- package/resources/extension/.output/chrome-mv3/assets/popup-C2NUZZQW.css +2 -0
- package/resources/extension/.output/chrome-mv3/background.js +1 -0
- package/resources/extension/.output/chrome-mv3/chunks/popup-BeBts9v2.js +50 -0
- package/resources/extension/.output/chrome-mv3/icon/128.png +0 -0
- package/resources/extension/.output/chrome-mv3/icon/16.png +0 -0
- package/resources/extension/.output/chrome-mv3/icon/32.png +0 -0
- package/resources/extension/.output/chrome-mv3/icon/48.png +0 -0
- package/resources/extension/.output/chrome-mv3/icon/96.png +0 -0
- package/resources/extension/.output/chrome-mv3/manifest.json +1 -0
- package/resources/extension/.output/chrome-mv3/popup.html +21 -0
- package/resources/packages/1lou/1lou-search.recipe.json +102 -0
- package/resources/packages/1lou/README.md +7 -0
- package/resources/packages/1lou/package.json +15 -0
- package/resources/packages/Douyin_TikTok_Download_API/README.md +23 -0
- package/resources/packages/Douyin_TikTok_Download_API/activate.ts +14 -0
- package/resources/packages/Douyin_TikTok_Download_API/adapter/adapter.ts +321 -0
- package/resources/packages/Douyin_TikTok_Download_API/adapter/danmaku.ts +21 -0
- package/resources/packages/Douyin_TikTok_Download_API/adapter/executor.ts +75 -0
- package/resources/packages/Douyin_TikTok_Download_API/adapter/normalize.ts +20 -0
- package/resources/packages/Douyin_TikTok_Download_API/manifests.yaml +521 -0
- package/resources/packages/Douyin_TikTok_Download_API/package.json +32 -0
- package/resources/packages/alist/README.md +14 -0
- package/resources/packages/alist/activate.ts +12 -0
- package/resources/packages/alist/adapter.ts +74 -0
- package/resources/packages/alist/manifests.yaml +76 -0
- package/resources/packages/alist/mounts.ts +120 -0
- package/resources/packages/alist/package.json +24 -0
- package/resources/packages/alist/presets.ts +53 -0
- package/resources/packages/alist/provision.ts +84 -0
- package/resources/packages/baidu/baidu-share.recipe.json +93 -0
- package/resources/packages/baidu/package.json +16 -0
- package/resources/packages/baidu-search/baidu-search.recipe.json +129 -0
- package/resources/packages/baidu-search/package.json +25 -0
- package/resources/packages/brave/brave-search.recipe.json +129 -0
- package/resources/packages/brave/package.json +25 -0
- package/resources/packages/browser/README.md +3 -0
- package/resources/packages/browser/adapter.ts +44 -0
- package/resources/packages/browser/manifests.yaml +20 -0
- package/resources/packages/browser/package.json +13 -0
- package/resources/packages/bt0/README.md +7 -0
- package/resources/packages/bt0/bt0-search.recipe.json +69 -0
- package/resources/packages/bt0/bt0-tlist.recipe.json +74 -0
- package/resources/packages/bt0/package.json +15 -0
- package/resources/packages/btbtla/README.md +6 -0
- package/resources/packages/btbtla/btbtla-detail.recipe.json +76 -0
- package/resources/packages/btbtla/btbtla-search.recipe.json +74 -0
- package/resources/packages/btbtla/package.json +15 -0
- package/resources/packages/builtin/README.md +8 -0
- package/resources/packages/builtin/manifests.yaml +487 -0
- package/resources/packages/builtin/package.json +14 -0
- package/resources/packages/douyin/README.md +39 -0
- package/resources/packages/douyin/douyin-collection.recipe.json +127 -0
- package/resources/packages/douyin/douyin-search.recipe.json +163 -0
- package/resources/packages/douyin/package.json +16 -0
- package/resources/packages/firecrawl/firecrawl-create-key.recipe.json +81 -0
- package/resources/packages/firecrawl/firecrawl-read-key.recipe.json +56 -0
- package/resources/packages/firecrawl/package.json +16 -0
- package/resources/packages/google/google-search.recipe.json +127 -0
- package/resources/packages/google/package.json +24 -0
- package/resources/packages/groq/groq-create-key.recipe.json +67 -0
- package/resources/packages/groq/package.json +16 -0
- package/resources/packages/huggingface/README.md +7 -0
- package/resources/packages/huggingface/huggingface-spaces.recipe.json +73 -0
- package/resources/packages/huggingface/package.json +15 -0
- package/resources/packages/imdb/imdb-chart.recipe.json +75 -0
- package/resources/packages/imdb/package.json +15 -0
- package/resources/packages/index.ts +15 -0
- package/resources/packages/iqiyi/README.md +10 -0
- package/resources/packages/iqiyi/iqiyi-cn-album.recipe.json +80 -0
- package/resources/packages/iqiyi/iqiyi-cn-search.recipe.json +71 -0
- package/resources/packages/iqiyi/package.json +15 -0
- package/resources/packages/lizhi/README.md +35 -0
- package/resources/packages/lizhi/lizhi-user.recipe.json +80 -0
- package/resources/packages/lizhi/package.json +15 -0
- package/resources/packages/manmanbuy/README.md +16 -0
- package/resources/packages/manmanbuy/manmanbuy-search.recipe.json +115 -0
- package/resources/packages/manmanbuy/package.json +15 -0
- package/resources/packages/mineru/README.md +38 -0
- package/resources/packages/mineru/package.json +28 -0
- package/resources/packages/pansou/README.md +14 -0
- package/resources/packages/pansou/activate.ts +11 -0
- package/resources/packages/pansou/adapter.ts +94 -0
- package/resources/packages/pansou/manifests.yaml +50 -0
- package/resources/packages/pansou/package.json +27 -0
- package/resources/packages/qq/package.json +15 -0
- package/resources/packages/qq/qq-send.recipe.json +104 -0
- package/resources/packages/quark/package.json +16 -0
- package/resources/packages/quark/quark-share.recipe.json +40 -0
- package/resources/packages/reddit/package.json +15 -0
- package/resources/packages/reddit/reddit-sub.recipe.json +77 -0
- package/resources/packages/replay/README.md +7 -0
- package/resources/packages/replay/package.json +13 -0
- package/resources/packages/rsshub/README.md +16 -0
- package/resources/packages/rsshub/manifests.yaml +107 -0
- package/resources/packages/rsshub/package.json +21 -0
- package/resources/packages/telegram/package.json +15 -0
- package/resources/packages/telegram/telegram-search.recipe.json +125 -0
- package/resources/packages/tencent/README.md +11 -0
- package/resources/packages/tencent/package.json +15 -0
- package/resources/packages/tencent/tencent-cn-episode.recipe.json +98 -0
- package/resources/packages/toubiec/README.md +38 -0
- package/resources/packages/toubiec/package.json +15 -0
- package/resources/packages/toubiec/toubiec-download.recipe.json +58 -0
- package/resources/packages/toubiec/toubiec-playlist.recipe.json +49 -0
- package/resources/packages/toubiec/toubiec-search.recipe.json +80 -0
- package/resources/packages/voiceprint/README.md +31 -0
- package/resources/packages/voiceprint/package.json +36 -0
- package/resources/packages/wikipedia/package.json +15 -0
- package/resources/packages/wikipedia/wikipedia-award-list.recipe.json +102 -0
- package/resources/packages/xhs/README.md +32 -0
- package/resources/packages/xhs/package.json +21 -0
- package/resources/packages/xhs/xhs-detail.recipe.json +129 -0
- package/resources/packages/xhs/xhs-home.recipe.json +144 -0
- package/resources/packages/xhs/xhs-like.recipe.json +96 -0
- package/resources/packages/xhs/xhs-search.recipe.json +138 -0
- package/resources/packages/xueqiu/README.md +9 -0
- package/resources/packages/xueqiu/package.json +16 -0
- package/resources/packages/xueqiu/xueqiu-detail.recipe.json +92 -0
- package/resources/packages/xueqiu/xueqiu-user.recipe.json +75 -0
- package/resources/packages/zhipu/package.json +16 -0
- package/resources/packages/zhipu/zhipu-create-key.recipe.json +74 -0
- package/resources/packages/zuna/README.md +31 -0
- package/resources/packages/zuna/package.json +15 -0
- package/resources/packages/zuna/zuna-album.recipe.json +46 -0
- package/resources/packages/zuna/zuna-download.recipe.json +53 -0
- package/resources/packages/zuna/zuna-playlist.recipe.json +46 -0
- package/resources/packages/zuna/zuna-search.recipe.json +96 -0
- package/resources/server.mjs +238876 -0
- package/resources/sidequest.jobs.js +1 -0
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
var __streamPanelResearch=(function($n){"use strict";var TN=$n=>{throw TypeError($n)};var EN=($n,Ur,Hs)=>Ur.has($n)||TN("Cannot "+Hs);var xr=($n,Ur,Hs)=>(EN($n,Ur,"read from private field"),Hs?Hs.call($n):Ur.get($n)),MN=($n,Ur,Hs)=>Ur.has($n)?TN("Cannot add the same private member more than once"):Ur instanceof WeakSet?Ur.add($n):Ur.set($n,Hs),s1=($n,Ur,Hs,Xd)=>(EN($n,Ur,"write to private field"),Xd?Xd.call($n,Hs):Ur.set($n,Hs),Hs);var W_,mi,us,K_;function Ur(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const a in i)if(a!=="default"&&!(a in e)){const o=Object.getOwnPropertyDescriptor(i,a);o&&Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>i[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Hs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xd={exports:{}},Tf={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var o1;function kN(){if(o1)return Tf;o1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,a,o){var c=null;if(o!==void 0&&(c=""+o),a.key!==void 0&&(c=""+a.key),"key"in a){o={};for(var d in a)d!=="key"&&(o[d]=a[d])}else o=a;return a=o.ref,{$$typeof:e,type:i,key:c,ref:a!==void 0?a:null,props:o}}return Tf.Fragment=t,Tf.jsx=n,Tf.jsxs=n,Tf}var l1;function _N(){return l1||(l1=1,Xd.exports=kN()),Xd.exports}var w=_N(),by={exports:{}},xe={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var c1;function AN(){if(c1)return xe;c1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),T=Symbol.iterator;function k(U){return U===null||typeof U!="object"?null:(U=T&&U[T]||U["@@iterator"],typeof U=="function"?U:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,z={};function L(U,X,ft){this.props=U,this.context=X,this.refs=z,this.updater=ft||R}L.prototype.isReactComponent={},L.prototype.setState=function(U,X){if(typeof U!="object"&&typeof U!="function"&&U!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,U,X,"setState")},L.prototype.forceUpdate=function(U){this.updater.enqueueForceUpdate(this,U,"forceUpdate")};function I(){}I.prototype=L.prototype;function F(U,X,ft){this.props=U,this.context=X,this.refs=z,this.updater=ft||R}var B=F.prototype=new I;B.constructor=F,N(B,L.prototype),B.isPureReactComponent=!0;var Y=Array.isArray;function Z(){}var et={H:null,A:null,T:null,S:null},q=Object.prototype.hasOwnProperty;function nt(U,X,ft){var yt=ft.ref;return{$$typeof:e,type:U,key:X,ref:yt!==void 0?yt:null,props:ft}}function ot(U,X){return nt(U.type,X,U.props)}function Ct(U){return typeof U=="object"&&U!==null&&U.$$typeof===e}function ct(U){var X={"=":"=0",":":"=2"};return"$"+U.replace(/[=:]/g,function(ft){return X[ft]})}var mt=/\/+/g;function Rt(U,X){return typeof U=="object"&&U!==null&&U.key!=null?ct(""+U.key):X.toString(36)}function ut(U){switch(U.status){case"fulfilled":return U.value;case"rejected":throw U.reason;default:switch(typeof U.status=="string"?U.then(Z,Z):(U.status="pending",U.then(function(X){U.status==="pending"&&(U.status="fulfilled",U.value=X)},function(X){U.status==="pending"&&(U.status="rejected",U.reason=X)})),U.status){case"fulfilled":return U.value;case"rejected":throw U.reason}}throw U}function j(U,X,ft,yt,tt){var bt=typeof U;(bt==="undefined"||bt==="boolean")&&(U=null);var zt=!1;if(U===null)zt=!0;else switch(bt){case"bigint":case"string":case"number":zt=!0;break;case"object":switch(U.$$typeof){case e:case t:zt=!0;break;case b:return zt=U._init,j(zt(U._payload),X,ft,yt,tt)}}if(zt)return tt=tt(U),zt=yt===""?"."+Rt(U,0):yt,Y(tt)?(ft="",zt!=null&&(ft=zt.replace(mt,"$&/")+"/"),j(tt,X,ft,"",function(Yt){return Yt})):tt!=null&&(Ct(tt)&&(tt=ot(tt,ft+(tt.key==null||U&&U.key===tt.key?"":(""+tt.key).replace(mt,"$&/")+"/")+zt)),X.push(tt)),1;zt=0;var Dt=yt===""?".":yt+":";if(Y(U))for(var Mt=0;Mt<U.length;Mt++)yt=U[Mt],bt=Dt+Rt(yt,Mt),zt+=j(yt,X,ft,bt,tt);else if(Mt=k(U),typeof Mt=="function")for(U=Mt.call(U),Mt=0;!(yt=U.next()).done;)yt=yt.value,bt=Dt+Rt(yt,Mt++),zt+=j(yt,X,ft,bt,tt);else if(bt==="object"){if(typeof U.then=="function")return j(ut(U),X,ft,yt,tt);throw X=String(U),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(U).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return zt}function J(U,X,ft){if(U==null)return U;var yt=[],tt=0;return j(U,yt,"","",function(bt){return X.call(ft,bt,tt++)}),yt}function ht(U){if(U._status===-1){var X=U._result;X=X(),X.then(function(ft){(U._status===0||U._status===-1)&&(U._status=1,U._result=ft)},function(ft){(U._status===0||U._status===-1)&&(U._status=2,U._result=ft)}),U._status===-1&&(U._status=0,U._result=X)}if(U._status===1)return U._result.default;throw U._result}var Tt=typeof reportError=="function"?reportError:function(U){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof U=="object"&&U!==null&&typeof U.message=="string"?String(U.message):String(U),error:U});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",U);return}console.error(U)},K={map:J,forEach:function(U,X,ft){J(U,function(){X.apply(this,arguments)},ft)},count:function(U){var X=0;return J(U,function(){X++}),X},toArray:function(U){return J(U,function(X){return X})||[]},only:function(U){if(!Ct(U))throw Error("React.Children.only expected to receive a single React element child.");return U}};return xe.Activity=y,xe.Children=K,xe.Component=L,xe.Fragment=n,xe.Profiler=a,xe.PureComponent=F,xe.StrictMode=i,xe.Suspense=h,xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=et,xe.__COMPILER_RUNTIME={__proto__:null,c:function(U){return et.H.useMemoCache(U)}},xe.cache=function(U){return function(){return U.apply(null,arguments)}},xe.cacheSignal=function(){return null},xe.cloneElement=function(U,X,ft){if(U==null)throw Error("The argument must be a React element, but you passed "+U+".");var yt=N({},U.props),tt=U.key;if(X!=null)for(bt in X.key!==void 0&&(tt=""+X.key),X)!q.call(X,bt)||bt==="key"||bt==="__self"||bt==="__source"||bt==="ref"&&X.ref===void 0||(yt[bt]=X[bt]);var bt=arguments.length-2;if(bt===1)yt.children=ft;else if(1<bt){for(var zt=Array(bt),Dt=0;Dt<bt;Dt++)zt[Dt]=arguments[Dt+2];yt.children=zt}return nt(U.type,tt,yt)},xe.createContext=function(U){return U={$$typeof:c,_currentValue:U,_currentValue2:U,_threadCount:0,Provider:null,Consumer:null},U.Provider=U,U.Consumer={$$typeof:o,_context:U},U},xe.createElement=function(U,X,ft){var yt,tt={},bt=null;if(X!=null)for(yt in X.key!==void 0&&(bt=""+X.key),X)q.call(X,yt)&&yt!=="key"&&yt!=="__self"&&yt!=="__source"&&(tt[yt]=X[yt]);var zt=arguments.length-2;if(zt===1)tt.children=ft;else if(1<zt){for(var Dt=Array(zt),Mt=0;Mt<zt;Mt++)Dt[Mt]=arguments[Mt+2];tt.children=Dt}if(U&&U.defaultProps)for(yt in zt=U.defaultProps,zt)tt[yt]===void 0&&(tt[yt]=zt[yt]);return nt(U,bt,tt)},xe.createRef=function(){return{current:null}},xe.forwardRef=function(U){return{$$typeof:d,render:U}},xe.isValidElement=Ct,xe.lazy=function(U){return{$$typeof:b,_payload:{_status:-1,_result:U},_init:ht}},xe.memo=function(U,X){return{$$typeof:m,type:U,compare:X===void 0?null:X}},xe.startTransition=function(U){var X=et.T,ft={};et.T=ft;try{var yt=U(),tt=et.S;tt!==null&&tt(ft,yt),typeof yt=="object"&&yt!==null&&typeof yt.then=="function"&&yt.then(Z,Tt)}catch(bt){Tt(bt)}finally{X!==null&&ft.types!==null&&(X.types=ft.types),et.T=X}},xe.unstable_useCacheRefresh=function(){return et.H.useCacheRefresh()},xe.use=function(U){return et.H.use(U)},xe.useActionState=function(U,X,ft){return et.H.useActionState(U,X,ft)},xe.useCallback=function(U,X){return et.H.useCallback(U,X)},xe.useContext=function(U){return et.H.useContext(U)},xe.useDebugValue=function(){},xe.useDeferredValue=function(U,X){return et.H.useDeferredValue(U,X)},xe.useEffect=function(U,X){return et.H.useEffect(U,X)},xe.useEffectEvent=function(U){return et.H.useEffectEvent(U)},xe.useId=function(){return et.H.useId()},xe.useImperativeHandle=function(U,X,ft){return et.H.useImperativeHandle(U,X,ft)},xe.useInsertionEffect=function(U,X){return et.H.useInsertionEffect(U,X)},xe.useLayoutEffect=function(U,X){return et.H.useLayoutEffect(U,X)},xe.useMemo=function(U,X){return et.H.useMemo(U,X)},xe.useOptimistic=function(U,X){return et.H.useOptimistic(U,X)},xe.useReducer=function(U,X,ft){return et.H.useReducer(U,X,ft)},xe.useRef=function(U){return et.H.useRef(U)},xe.useState=function(U){return et.H.useState(U)},xe.useSyncExternalStore=function(U,X,ft){return et.H.useSyncExternalStore(U,X,ft)},xe.useTransition=function(){return et.H.useTransition()},xe.version="19.2.7",xe}var u1;function Qd(){return u1||(u1=1,by.exports=AN()),by.exports}var M=Qd();const Zd=Hs(M),Jd=Ur({__proto__:null,default:Zd},[M]);var xy={exports:{}},Ef={},wy={exports:{}},Sy={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var d1;function NN(){return d1||(d1=1,(function(e){function t(j,J){var ht=j.length;j.push(J);t:for(;0<ht;){var Tt=ht-1>>>1,K=j[Tt];if(0<a(K,J))j[Tt]=J,j[ht]=K,ht=Tt;else break t}}function n(j){return j.length===0?null:j[0]}function i(j){if(j.length===0)return null;var J=j[0],ht=j.pop();if(ht!==J){j[0]=ht;t:for(var Tt=0,K=j.length,U=K>>>1;Tt<U;){var X=2*(Tt+1)-1,ft=j[X],yt=X+1,tt=j[yt];if(0>a(ft,ht))yt<K&&0>a(tt,ft)?(j[Tt]=tt,j[yt]=ht,Tt=yt):(j[Tt]=ft,j[X]=ht,Tt=X);else if(yt<K&&0>a(tt,ht))j[Tt]=tt,j[yt]=ht,Tt=yt;else break t}}return J}function a(j,J){var ht=j.sortIndex-J.sortIndex;return ht!==0?ht:j.id-J.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var h=[],m=[],b=1,y=null,T=3,k=!1,R=!1,N=!1,z=!1,L=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function B(j){for(var J=n(m);J!==null;){if(J.callback===null)i(m);else if(J.startTime<=j)i(m),J.sortIndex=J.expirationTime,t(h,J);else break;J=n(m)}}function Y(j){if(N=!1,B(j),!R)if(n(h)!==null)R=!0,Z||(Z=!0,ct());else{var J=n(m);J!==null&&ut(Y,J.startTime-j)}}var Z=!1,et=-1,q=5,nt=-1;function ot(){return z?!0:!(e.unstable_now()-nt<q)}function Ct(){if(z=!1,Z){var j=e.unstable_now();nt=j;var J=!0;try{t:{R=!1,N&&(N=!1,I(et),et=-1),k=!0;var ht=T;try{e:{for(B(j),y=n(h);y!==null&&!(y.expirationTime>j&&ot());){var Tt=y.callback;if(typeof Tt=="function"){y.callback=null,T=y.priorityLevel;var K=Tt(y.expirationTime<=j);if(j=e.unstable_now(),typeof K=="function"){y.callback=K,B(j),J=!0;break e}y===n(h)&&i(h),B(j)}else i(h);y=n(h)}if(y!==null)J=!0;else{var U=n(m);U!==null&&ut(Y,U.startTime-j),J=!1}}break t}finally{y=null,T=ht,k=!1}J=void 0}}finally{J?ct():Z=!1}}}var ct;if(typeof F=="function")ct=function(){F(Ct)};else if(typeof MessageChannel<"u"){var mt=new MessageChannel,Rt=mt.port2;mt.port1.onmessage=Ct,ct=function(){Rt.postMessage(null)}}else ct=function(){L(Ct,0)};function ut(j,J){et=L(function(){j(e.unstable_now())},J)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return T},e.unstable_next=function(j){switch(T){case 1:case 2:case 3:var J=3;break;default:J=T}var ht=T;T=J;try{return j()}finally{T=ht}},e.unstable_requestPaint=function(){z=!0},e.unstable_runWithPriority=function(j,J){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var ht=T;T=j;try{return J()}finally{T=ht}},e.unstable_scheduleCallback=function(j,J,ht){var Tt=e.unstable_now();switch(typeof ht=="object"&&ht!==null?(ht=ht.delay,ht=typeof ht=="number"&&0<ht?Tt+ht:Tt):ht=Tt,j){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=ht+K,j={id:b++,callback:J,priorityLevel:j,startTime:ht,expirationTime:K,sortIndex:-1},ht>Tt?(j.sortIndex=ht,t(m,j),n(h)===null&&j===n(m)&&(N?(I(et),et=-1):N=!0,ut(Y,ht-Tt))):(j.sortIndex=K,t(h,j),R||k||(R=!0,Z||(Z=!0,ct()))),j},e.unstable_shouldYield=ot,e.unstable_wrapCallback=function(j){var J=T;return function(){var ht=T;T=J;try{return j.apply(this,arguments)}finally{T=ht}}}})(Sy)),Sy}var h1;function zN(){return h1||(h1=1,wy.exports=NN()),wy.exports}var Cy={exports:{}},cr={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var f1;function DN(){if(f1)return cr;f1=1;var e=Qd();function t(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+h+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var i={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function o(h,m,b){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:y==null?null:""+y,children:h,containerInfo:m,implementation:b}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return cr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,cr.createPortal=function(h,m){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(t(299));return o(h,m,null,b)},cr.flushSync=function(h){var m=c.T,b=i.p;try{if(c.T=null,i.p=2,h)return h()}finally{c.T=m,i.p=b,i.d.f()}},cr.preconnect=function(h,m){typeof h=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,i.d.C(h,m))},cr.prefetchDNS=function(h){typeof h=="string"&&i.d.D(h)},cr.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var b=m.as,y=d(b,m.crossOrigin),T=typeof m.integrity=="string"?m.integrity:void 0,k=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?i.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:y,integrity:T,fetchPriority:k}):b==="script"&&i.d.X(h,{crossOrigin:y,integrity:T,fetchPriority:k,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},cr.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var b=d(m.as,m.crossOrigin);i.d.M(h,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&i.d.M(h)},cr.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var b=m.as,y=d(b,m.crossOrigin);i.d.L(h,b,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},cr.preloadModule=function(h,m){if(typeof h=="string")if(m){var b=d(m.as,m.crossOrigin);i.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else i.d.m(h)},cr.requestFormReset=function(h){i.d.r(h)},cr.unstable_batchedUpdates=function(h,m){return h(m)},cr.useFormState=function(h,m,b){return c.H.useFormState(h,m,b)},cr.useFormStatus=function(){return c.H.useHostTransitionStatus()},cr.version="19.2.7",cr}var m1;function xg(){if(m1)return Cy.exports;m1=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Cy.exports=DN(),Cy.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var g1;function ON(){if(g1)return Ef;g1=1;var e=zN(),t=Qd(),n=xg();function i(r){var s="https://react.dev/errors/"+r;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)s+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+r+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function o(r){var s=r,l=r;if(r.alternate)for(;s.return;)s=s.return;else{r=s;do s=r,(s.flags&4098)!==0&&(l=s.return),r=s.return;while(r)}return s.tag===3?l:null}function c(r){if(r.tag===13){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function d(r){if(r.tag===31){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function h(r){if(o(r)!==r)throw Error(i(188))}function m(r){var s=r.alternate;if(!s){if(s=o(r),s===null)throw Error(i(188));return s!==r?null:r}for(var l=r,u=s;;){var x=l.return;if(x===null)break;var S=x.alternate;if(S===null){if(u=x.return,u!==null){l=u;continue}break}if(x.child===S.child){for(S=x.child;S;){if(S===l)return h(x),r;if(S===u)return h(x),s;S=S.sibling}throw Error(i(188))}if(l.return!==u.return)l=x,u=S;else{for(var O=!1,H=x.child;H;){if(H===l){O=!0,l=x,u=S;break}if(H===u){O=!0,u=x,l=S;break}H=H.sibling}if(!O){for(H=S.child;H;){if(H===l){O=!0,l=S,u=x;break}if(H===u){O=!0,u=S,l=x;break}H=H.sibling}if(!O)throw Error(i(189))}}if(l.alternate!==u)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?r:s}function b(r){var s=r.tag;if(s===5||s===26||s===27||s===6)return r;for(r=r.child;r!==null;){if(s=b(r),s!==null)return s;r=r.sibling}return null}var y=Object.assign,T=Symbol.for("react.element"),k=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),F=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),et=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),nt=Symbol.for("react.activity"),ot=Symbol.for("react.memo_cache_sentinel"),Ct=Symbol.iterator;function ct(r){return r===null||typeof r!="object"?null:(r=Ct&&r[Ct]||r["@@iterator"],typeof r=="function"?r:null)}var mt=Symbol.for("react.client.reference");function Rt(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===mt?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case N:return"Fragment";case L:return"Profiler";case z:return"StrictMode";case Y:return"Suspense";case Z:return"SuspenseList";case nt:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case R:return"Portal";case F:return r.displayName||"Context";case I:return(r._context.displayName||"Context")+".Consumer";case B:var s=r.render;return r=r.displayName,r||(r=s.displayName||s.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case et:return s=r.displayName||null,s!==null?s:Rt(r.type)||"Memo";case q:s=r._payload,r=r._init;try{return Rt(r(s))}catch{}}return null}var ut=Array.isArray,j=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ht={pending:!1,data:null,method:null,action:null},Tt=[],K=-1;function U(r){return{current:r}}function X(r){0>K||(r.current=Tt[K],Tt[K]=null,K--)}function ft(r,s){K++,Tt[K]=r.current,r.current=s}var yt=U(null),tt=U(null),bt=U(null),zt=U(null);function Dt(r,s){switch(ft(bt,s),ft(tt,r),ft(yt,null),s.nodeType){case 9:case 11:r=(r=s.documentElement)&&(r=r.namespaceURI)?KA(r):0;break;default:if(r=s.tagName,s=s.namespaceURI)s=KA(s),r=XA(s,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}X(yt),ft(yt,r)}function Mt(){X(yt),X(tt),X(bt)}function Yt(r){r.memoizedState!==null&&ft(zt,r);var s=yt.current,l=XA(s,r.type);s!==l&&(ft(tt,r),ft(yt,l))}function Qt(r){tt.current===r&&(X(yt),X(tt)),zt.current===r&&(X(zt),pg._currentValue=ht)}var ne,Ut;function Ce(r){if(ne===void 0)try{throw Error()}catch(l){var s=l.stack.trim().match(/\n( *(at )?)/);ne=s&&s[1]||"",Ut=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+ne+r+Ut}var Ht=!1;function ee(r,s){if(!r||Ht)return"";Ht=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(s){var Lt=function(){throw Error()};if(Object.defineProperty(Lt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Lt,[])}catch(kt){var xt=kt}Reflect.construct(r,[],Lt)}else{try{Lt.call()}catch(kt){xt=kt}r.call(Lt.prototype)}}else{try{throw Error()}catch(kt){xt=kt}(Lt=r())&&typeof Lt.catch=="function"&&Lt.catch(function(){})}}catch(kt){if(kt&&xt&&typeof kt.stack=="string")return[kt.stack,xt.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var x=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");x&&x.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var S=u.DetermineComponentFrameRoot(),O=S[0],H=S[1];if(O&&H){var it=O.split(`
|
|
44
|
+
`),pt=H.split(`
|
|
45
|
+
`);for(x=u=0;u<it.length&&!it[u].includes("DetermineComponentFrameRoot");)u++;for(;x<pt.length&&!pt[x].includes("DetermineComponentFrameRoot");)x++;if(u===it.length||x===pt.length)for(u=it.length-1,x=pt.length-1;1<=u&&0<=x&&it[u]!==pt[x];)x--;for(;1<=u&&0<=x;u--,x--)if(it[u]!==pt[x]){if(u!==1||x!==1)do if(u--,x--,0>x||it[u]!==pt[x]){var Nt=`
|
|
46
|
+
`+it[u].replace(" at new "," at ");return r.displayName&&Nt.includes("<anonymous>")&&(Nt=Nt.replace("<anonymous>",r.displayName)),Nt}while(1<=u&&0<=x);break}}}finally{Ht=!1,Error.prepareStackTrace=l}return(l=r?r.displayName||r.name:"")?Ce(l):""}function re(r,s){switch(r.tag){case 26:case 27:case 5:return Ce(r.type);case 16:return Ce("Lazy");case 13:return r.child!==s&&s!==null?Ce("Suspense Fallback"):Ce("Suspense");case 19:return Ce("SuspenseList");case 0:case 15:return ee(r.type,!1);case 11:return ee(r.type.render,!1);case 1:return ee(r.type,!0);case 31:return Ce("Activity");default:return""}}function we(r){try{var s="",l=null;do s+=re(r,l),l=r,r=r.return;while(r);return s}catch(u){return`
|
|
47
|
+
Error generating stack: `+u.message+`
|
|
48
|
+
`+u.stack}}var Le=Object.prototype.hasOwnProperty,Mr=e.unstable_scheduleCallback,Hn=e.unstable_cancelCallback,Nn=e.unstable_shouldYield,ds=e.unstable_requestPaint,Vt=e.unstable_now,Xt=e.unstable_getCurrentPriorityLevel,de=e.unstable_ImmediatePriority,Gi=e.unstable_UserBlockingPriority,Rr=e.unstable_NormalPriority,Bn=e.unstable_LowPriority,xc=e.unstable_IdlePriority,hd=e.log,vo=e.unstable_setDisableYieldValue,$s=null,Gn=null;function Wr(r){if(typeof hd=="function"&&vo(r),Gn&&typeof Gn.setStrictMode=="function")try{Gn.setStrictMode($s,r)}catch{}}var gi=Math.clz32?Math.clz32:yn,wc=Math.log,fd=Math.LN2;function yn(r){return r>>>=0,r===0?32:31-(wc(r)/fd|0)|0}var zn=256,yo=262144,kr=4194304;function hs(r){var s=r&42;if(s!==0)return s;switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function Ea(r,s,l){var u=r.pendingLanes;if(u===0)return 0;var x=0,S=r.suspendedLanes,O=r.pingedLanes;r=r.warmLanes;var H=u&134217727;return H!==0?(u=H&~S,u!==0?x=hs(u):(O&=H,O!==0?x=hs(O):l||(l=H&~r,l!==0&&(x=hs(l))))):(H=u&~S,H!==0?x=hs(H):O!==0?x=hs(O):l||(l=u&~r,l!==0&&(x=hs(l)))),x===0?0:s!==0&&s!==x&&(s&S)===0&&(S=x&-x,l=s&-s,S>=l||S===32&&(l&4194048)!==0)?s:x}function fs(r,s){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&s)===0}function _r(r,s){switch(r){case 1:case 2:case 4:case 8:case 64:return s+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function md(){var r=kr;return kr<<=1,(kr&62914560)===0&&(kr=4194304),r}function Sc(r){for(var s=[],l=0;31>l;l++)s.push(r);return s}function gl(r,s){r.pendingLanes|=s,s!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function Hh(r,s,l,u,x,S){var O=r.pendingLanes;r.pendingLanes=l,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=l,r.entangledLanes&=l,r.errorRecoveryDisabledLanes&=l,r.shellSuspendCounter=0;var H=r.entanglements,it=r.expirationTimes,pt=r.hiddenUpdates;for(l=O&~l;0<l;){var Nt=31-gi(l),Lt=1<<Nt;H[Nt]=0,it[Nt]=-1;var xt=pt[Nt];if(xt!==null)for(pt[Nt]=null,Nt=0;Nt<xt.length;Nt++){var kt=xt[Nt];kt!==null&&(kt.lane&=-536870913)}l&=~Lt}u!==0&&bo(r,u,0),S!==0&&x===0&&r.tag!==0&&(r.suspendedLanes|=S&~(O&~s))}function bo(r,s,l){r.pendingLanes|=s,r.suspendedLanes&=~s;var u=31-gi(s);r.entangledLanes|=s,r.entanglements[u]=r.entanglements[u]|1073741824|l&261930}function xo(r,s){var l=r.entangledLanes|=s;for(r=r.entanglements;l;){var u=31-gi(l),x=1<<u;x&s|r[u]&s&&(r[u]|=s),l&=~x}}function Yn(r,s){var l=s&-s;return l=(l&42)!==0?1:Yi(l),(l&(r.suspendedLanes|s))!==0?0:l}function Yi(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function an(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function pl(){var r=J.p;return r!==0?r:(r=window.event,r===void 0?32:vN(r.type))}function Wi(r,s){var l=J.p;try{return J.p=r,s()}finally{J.p=l}}var je=Math.random().toString(36).slice(2),Wn="__reactFiber$"+je,ki="__reactProps$"+je,ta="__reactContainer$"+je,Cc="__reactEvents$"+je,vl="__reactListeners$"+je,Gh="__reactHandles$"+je,Fe="__reactResources$"+je,Ye="__reactMarker$"+je;function Ma(r){delete r[Wn],delete r[ki],delete r[Cc],delete r[vl],delete r[Gh]}function Kn(r){var s=r[Wn];if(s)return s;for(var l=r.parentNode;l;){if(s=l[ta]||l[Wn]){if(l=s.alternate,s.child!==null||l!==null&&l.child!==null)for(r=eN(r);r!==null;){if(l=r[Wn])return l;r=eN(r)}return s}r=l,l=r.parentNode}return null}function wo(r){if(r=r[Wn]||r[ta]){var s=r.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return r}return null}function Ra(r){var s=r.tag;if(s===5||s===26||s===27||s===6)return r.stateNode;throw Error(i(33))}function ka(r){var s=r[Fe];return s||(s=r[Fe]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function jn(r){r[Ye]=!0}var Yh=new Set,So={};function on(r,s){ms(r,s),ms(r+"Capture",s)}function ms(r,s){for(So[r]=s,r=0;r<s.length;r++)Yh.add(s[r])}var Tc=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),gs={},yl={};function Mm(r){return Le.call(yl,r)?!0:Le.call(gs,r)?!1:Tc.test(r)?yl[r]=!0:(gs[r]=!0,!1)}function Ec(r,s,l){if(Mm(s))if(l===null)r.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":r.removeAttribute(s);return;case"boolean":var u=s.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){r.removeAttribute(s);return}}r.setAttribute(s,""+l)}}function ps(r,s,l){if(l===null)r.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(s);return}r.setAttribute(s,""+l)}}function dr(r,s,l,u){if(u===null)r.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(l);return}r.setAttributeNS(s,l,""+u)}}function _i(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function vs(r){var s=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function gd(r,s,l){var u=Object.getOwnPropertyDescriptor(r.constructor.prototype,s);if(!r.hasOwnProperty(s)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var x=u.get,S=u.set;return Object.defineProperty(r,s,{configurable:!0,get:function(){return x.call(this)},set:function(O){l=""+O,S.call(this,O)}}),Object.defineProperty(r,s,{enumerable:u.enumerable}),{getValue:function(){return l},setValue:function(O){l=""+O},stopTracking:function(){r._valueTracker=null,delete r[s]}}}}function pd(r){if(!r._valueTracker){var s=vs(r)?"checked":"value";r._valueTracker=gd(r,s,""+r[s])}}function Co(r){if(!r)return!1;var s=r._valueTracker;if(!s)return!0;var l=s.getValue(),u="";return r&&(u=vs(r)?r.checked?"true":"false":r.value),r=u,r!==l?(s.setValue(r),!0):!1}function bn(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var _a=/[\n"\\]/g;function Ai(r){return r.replace(_a,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function bl(r,s,l,u,x,S,O,H){r.name="",O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?r.type=O:r.removeAttribute("type"),s!=null?O==="number"?(s===0&&r.value===""||r.value!=s)&&(r.value=""+_i(s)):r.value!==""+_i(s)&&(r.value=""+_i(s)):O!=="submit"&&O!=="reset"||r.removeAttribute("value"),s!=null?xl(r,O,_i(s)):l!=null?xl(r,O,_i(l)):u!=null&&r.removeAttribute("value"),x==null&&S!=null&&(r.defaultChecked=!!S),x!=null&&(r.checked=x&&typeof x!="function"&&typeof x!="symbol"),H!=null&&typeof H!="function"&&typeof H!="symbol"&&typeof H!="boolean"?r.name=""+_i(H):r.removeAttribute("name")}function ys(r,s,l,u,x,S,O,H){if(S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(r.type=S),s!=null||l!=null){if(!(S!=="submit"&&S!=="reset"||s!=null)){pd(r);return}l=l!=null?""+_i(l):"",s=s!=null?""+_i(s):l,H||s===r.value||(r.value=s),r.defaultValue=s}u=u??x,u=typeof u!="function"&&typeof u!="symbol"&&!!u,r.checked=H?r.checked:!!u,r.defaultChecked=!!u,O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"&&(r.name=O),pd(r)}function xl(r,s,l){s==="number"&&bn(r.ownerDocument)===r||r.defaultValue===""+l||(r.defaultValue=""+l)}function ea(r,s,l,u){if(r=r.options,s){s={};for(var x=0;x<l.length;x++)s["$"+l[x]]=!0;for(l=0;l<r.length;l++)x=s.hasOwnProperty("$"+r[l].value),r[l].selected!==x&&(r[l].selected=x),x&&u&&(r[l].defaultSelected=!0)}else{for(l=""+_i(l),s=null,x=0;x<r.length;x++){if(r[x].value===l){r[x].selected=!0,u&&(r[x].defaultSelected=!0);return}s!==null||r[x].disabled||(s=r[x])}s!==null&&(s.selected=!0)}}function bs(r,s,l){if(s!=null&&(s=""+_i(s),s!==r.value&&(r.value=s),l==null)){r.defaultValue!==s&&(r.defaultValue=s);return}r.defaultValue=l!=null?""+_i(l):""}function vd(r,s,l,u){if(s==null){if(u!=null){if(l!=null)throw Error(i(92));if(ut(u)){if(1<u.length)throw Error(i(93));u=u[0]}l=u}l==null&&(l=""),s=l}l=_i(s),r.defaultValue=l,u=r.textContent,u===l&&u!==""&&u!==null&&(r.value=u),pd(r)}function To(r,s){if(s){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=s;return}}r.textContent=s}var Aa=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function wl(r,s,l){var u=s.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?u?r.setProperty(s,""):s==="float"?r.cssFloat="":r[s]="":u?r.setProperty(s,l):typeof l!="number"||l===0||Aa.has(s)?s==="float"?r.cssFloat=l:r[s]=(""+l).trim():r[s]=l+"px"}function Wh(r,s,l){if(s!=null&&typeof s!="object")throw Error(i(62));if(r=r.style,l!=null){for(var u in l)!l.hasOwnProperty(u)||s!=null&&s.hasOwnProperty(u)||(u.indexOf("--")===0?r.setProperty(u,""):u==="float"?r.cssFloat="":r[u]="");for(var x in s)u=s[x],s.hasOwnProperty(x)&&l[x]!==u&&wl(r,x,u)}else for(var S in s)s.hasOwnProperty(S)&&wl(r,S,s[S])}function yd(r){if(r.indexOf("-")===-1)return!1;switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Rm=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Ni=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function pi(r){return Ni.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function xs(){}var Eo=null;function Mo(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Ro=null,Na=null;function Kr(r){var s=wo(r);if(s&&(r=s.stateNode)){var l=r[ki]||null;t:switch(r=s.stateNode,s.type){case"input":if(bl(r,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),s=l.name,l.type==="radio"&&s!=null){for(l=r;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Ai(""+s)+'"][type="radio"]'),s=0;s<l.length;s++){var u=l[s];if(u!==r&&u.form===r.form){var x=u[ki]||null;if(!x)throw Error(i(90));bl(u,x.value,x.defaultValue,x.defaultValue,x.checked,x.defaultChecked,x.type,x.name)}}for(s=0;s<l.length;s++)u=l[s],u.form===r.form&&Co(u)}break t;case"textarea":bs(r,l.value,l.defaultValue);break t;case"select":s=l.value,s!=null&&ea(r,!!l.multiple,s,!1)}}}var Sl=!1;function Mc(r,s,l){if(Sl)return r(s,l);Sl=!0;try{var u=r(s);return u}finally{if(Sl=!1,(Ro!==null||Na!==null)&&(Jv(),Ro&&(s=Ro,r=Na,Na=Ro=null,Kr(s),r)))for(s=0;s<r.length;s++)Kr(r[s])}}function za(r,s){var l=r.stateNode;if(l===null)return null;var u=l[ki]||null;if(u===null)return null;l=u[s];t:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(r=r.type,u=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!u;break t;default:r=!1}if(r)return null;if(l&&typeof l!="function")throw Error(i(231,s,typeof l));return l}var hr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),We=!1;if(hr)try{var ws={};Object.defineProperty(ws,"passive",{get:function(){We=!0}}),window.addEventListener("test",ws,ws),window.removeEventListener("test",ws,ws)}catch{We=!1}var Ar=null,Da=null,na=null;function ko(){if(na)return na;var r,s=Da,l=s.length,u,x="value"in Ar?Ar.value:Ar.textContent,S=x.length;for(r=0;r<l&&s[r]===x[r];r++);var O=l-r;for(u=1;u<=O&&s[l-u]===x[S-u];u++);return na=x.slice(r,1<u?1-u:void 0)}function Oa(r){var s=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&s===13&&(r=13)):r=s,r===10&&(r=13),32<=r||r===13?r:0}function Ss(){return!0}function Cs(){return!1}function ni(r){function s(l,u,x,S,O){this._reactName=l,this._targetInst=x,this.type=u,this.nativeEvent=S,this.target=O,this.currentTarget=null;for(var H in r)r.hasOwnProperty(H)&&(l=r[H],this[H]=l?l(S):S[H]);return this.isDefaultPrevented=(S.defaultPrevented!=null?S.defaultPrevented:S.returnValue===!1)?Ss:Cs,this.isPropagationStopped=Cs,this}return y(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ss)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ss)},persist:function(){},isPersistent:Ss}),s}var zi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Cl=ni(zi),Pa=y({},zi,{view:0,detail:0}),_o=ni(Pa),La,Rc,Ao,Tl=y({},Pa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nc,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Ao&&(Ao&&r.type==="mousemove"?(La=r.screenX-Ao.screenX,Rc=r.screenY-Ao.screenY):Rc=La=0,Ao=r),La)},movementY:function(r){return"movementY"in r?r.movementY:Rc}}),Kh=ni(Tl),km=y({},Tl,{dataTransfer:0}),_m=ni(km),Am=y({},Pa,{relatedTarget:0}),El=ni(Am),Xh=y({},zi,{animationName:0,elapsedTime:0,pseudoElement:0}),Nm=ni(Xh),Qh=y({},zi,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),kc=ni(Qh),zm=y({},zi,{data:0}),_c=ni(zm),Zh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},No={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},bd={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ac(r){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(r):(r=bd[r])?!!s[r]:!1}function Nc(){return Ac}var zo=y({},Pa,{key:function(r){if(r.key){var s=Zh[r.key]||r.key;if(s!=="Unidentified")return s}return r.type==="keypress"?(r=Oa(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?No[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nc,charCode:function(r){return r.type==="keypress"?Oa(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Oa(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),Dm=ni(zo),Om=y({},Tl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jh=ni(Om),ii=y({},Pa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nc}),Do=ni(ii),xd=y({},zi,{propertyName:0,elapsedTime:0,pseudoElement:0}),zc=ni(xd),qh=y({},Tl,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),Ia=ni(qh),ia=y({},zi,{newState:0,oldState:0}),Ml=ni(ia),ra=[9,13,27,32],Xn=hr&&"CompositionEvent"in window,Xr=null;hr&&"documentMode"in document&&(Xr=document.documentMode);var tn=hr&&"TextEvent"in window&&!Xr,Nr=hr&&(!Xn||Xr&&8<Xr&&11>=Xr),Dc=" ",Oo=!1;function wd(r,s){switch(r){case"keyup":return ra.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Oc(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Ba=!1;function Pc(r,s){switch(r){case"compositionend":return Oc(s);case"keypress":return s.which!==32?null:(Oo=!0,Dc);case"textInput":return r=s.data,r===Dc&&Oo?null:r;default:return null}}function Lc(r,s){if(Ba)return r==="compositionend"||!Xn&&wd(r,s)?(r=ko(),na=Da=Ar=null,Ba=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return Nr&&s.locale!=="ko"?null:s.data;default:return null}}var fr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ic(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s==="input"?!!fr[r.type]:s==="textarea"}function Rl(r,s,l,u){Ro?Na?Na.push(u):Na=[u]:Ro=u,s=ry(s,"onChange"),0<s.length&&(l=new Cl("onChange","change",null,l,u),r.push({event:l,listeners:s}))}var Ts=null,sa=null;function Bc(r){UA(r,0)}function ja(r){var s=Ra(r);if(Co(s))return r}function kl(r,s){if(r==="change")return s}var Fn=!1;if(hr){var Sd;if(hr){var Es="oninput"in document;if(!Es){var jc=document.createElement("div");jc.setAttribute("oninput","return;"),Es=typeof jc.oninput=="function"}Sd=Es}else Sd=!1;Fn=Sd&&(!document.documentMode||9<document.documentMode)}function Fc(){Ts&&(Ts.detachEvent("onpropertychange",Uc),sa=Ts=null)}function Uc(r){if(r.propertyName==="value"&&ja(sa)){var s=[];Rl(s,sa,r,Mo(r)),Mc(Bc,s)}}function Vc(r,s,l){r==="focusin"?(Fc(),Ts=s,sa=l,Ts.attachEvent("onpropertychange",Uc)):r==="focusout"&&Fc()}function _l(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return ja(sa)}function aa(r,s){if(r==="click")return ja(s)}function $h(r,s){if(r==="input"||r==="change")return ja(s)}function Fa(r,s){return r===s&&(r!==0||1/r===1/s)||r!==r&&s!==s}var ri=typeof Object.is=="function"?Object.is:Fa;function zr(r,s){if(ri(r,s))return!0;if(typeof r!="object"||r===null||typeof s!="object"||s===null)return!1;var l=Object.keys(r),u=Object.keys(s);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var x=l[u];if(!Le.call(s,x)||!ri(r[x],s[x]))return!1}return!0}function Ua(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function oa(r,s){var l=Ua(r);r=0;for(var u;l;){if(l.nodeType===3){if(u=r+l.textContent.length,r<=s&&u>=s)return{node:l,offset:s-r};r=u}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=Ua(l)}}function la(r,s){return r&&s?r===s?!0:r&&r.nodeType===3?!1:s&&s.nodeType===3?la(r,s.parentNode):"contains"in r?r.contains(s):r.compareDocumentPosition?!!(r.compareDocumentPosition(s)&16):!1:!1}function Hc(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var s=bn(r.document);s instanceof r.HTMLIFrameElement;){try{var l=typeof s.contentWindow.location.href=="string"}catch{l=!1}if(l)r=s.contentWindow;else break;s=bn(r.document)}return s}function Gc(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s&&(s==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||s==="textarea"||r.contentEditable==="true")}var Va=hr&&"documentMode"in document&&11>=document.documentMode,Qr=null,Po=null,Dr=null,Lo=!1;function Cd(r,s,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Lo||Qr==null||Qr!==bn(u)||(u=Qr,"selectionStart"in u&&Gc(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Dr&&zr(Dr,u)||(Dr=u,u=ry(Po,"onSelect"),0<u.length&&(s=new Cl("onSelect","select",null,s,l),r.push({event:s,listeners:u}),s.target=Qr)))}function vi(r,s){var l={};return l[r.toLowerCase()]=s.toLowerCase(),l["Webkit"+r]="webkit"+s,l["Moz"+r]="moz"+s,l}var Ms={animationend:vi("Animation","AnimationEnd"),animationiteration:vi("Animation","AnimationIteration"),animationstart:vi("Animation","AnimationStart"),transitionrun:vi("Transition","TransitionRun"),transitionstart:vi("Transition","TransitionStart"),transitioncancel:vi("Transition","TransitionCancel"),transitionend:vi("Transition","TransitionEnd")},Al={},g={};hr&&(g=document.createElement("div").style,"AnimationEvent"in window||(delete Ms.animationend.animation,delete Ms.animationiteration.animation,delete Ms.animationstart.animation),"TransitionEvent"in window||delete Ms.transitionend.transition);function v(r){if(Al[r])return Al[r];if(!Ms[r])return r;var s=Ms[r],l;for(l in s)if(s.hasOwnProperty(l)&&l in g)return Al[r]=s[l];return r}var E=v("animationend"),A=v("animationiteration"),P=v("animationstart"),G=v("transitionrun"),Q=v("transitionstart"),wt=v("transitioncancel"),rt=v("transitionend"),St=new Map,Pt="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Pt.push("scrollEnd");function _t(r,s){St.set(r,s),on(s,[r])}var Ft=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},qt=[],Se=0,ge=0;function fe(){for(var r=Se,s=ge=Se=0;s<r;){var l=qt[s];qt[s++]=null;var u=qt[s];qt[s++]=null;var x=qt[s];qt[s++]=null;var S=qt[s];if(qt[s++]=null,u!==null&&x!==null){var O=u.pending;O===null?x.next=x:(x.next=O.next,O.next=x),u.pending=x}S!==0&&fn(l,x,S)}}function he(r,s,l,u){qt[Se++]=r,qt[Se++]=s,qt[Se++]=l,qt[Se++]=u,ge|=u,r.lanes|=u,r=r.alternate,r!==null&&(r.lanes|=u)}function ve(r,s,l,u){return he(r,s,l,u),Ee(r)}function Ue(r,s){return he(r,null,null,s),Ee(r)}function fn(r,s,l){r.lanes|=l;var u=r.alternate;u!==null&&(u.lanes|=l);for(var x=!1,S=r.return;S!==null;)S.childLanes|=l,u=S.alternate,u!==null&&(u.childLanes|=l),S.tag===22&&(r=S.stateNode,r===null||r._visibility&1||(x=!0)),r=S,S=S.return;return r.tag===3?(S=r.stateNode,x&&s!==null&&(x=31-gi(l),r=S.hiddenUpdates,u=r[x],u===null?r[x]=[s]:u.push(s),s.lane=l|536870912),S):null}function Ee(r){if(50<cg)throw cg=0,_0=null,Error(i(185));for(var s=r.return;s!==null;)r=s,s=r.return;return r.tag===3?r.stateNode:null}var Me={};function Ae(r,s,l,u){this.tag=r,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function en(r,s,l,u){return new Ae(r,s,l,u)}function _e(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Mn(r,s){var l=r.alternate;return l===null?(l=en(r.tag,s,r.key,r.mode),l.elementType=r.elementType,l.type=r.type,l.stateNode=r.stateNode,l.alternate=r,r.alternate=l):(l.pendingProps=s,l.type=r.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=r.flags&65011712,l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,s=r.dependencies,l.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},l.sibling=r.sibling,l.index=r.index,l.ref=r.ref,l.refCleanup=r.refCleanup,l}function Ve(r,s){r.flags&=65011714;var l=r.alternate;return l===null?(r.childLanes=0,r.lanes=s,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=l.childLanes,r.lanes=l.lanes,r.child=l.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=l.memoizedProps,r.memoizedState=l.memoizedState,r.updateQueue=l.updateQueue,r.type=l.type,s=l.dependencies,r.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),r}function xn(r,s,l,u,x,S){var O=0;if(u=r,typeof r=="function")_e(r)&&(O=1);else if(typeof r=="string")O=QY(r,l,yt.current)?26:r==="html"||r==="head"||r==="body"?27:5;else t:switch(r){case nt:return r=en(31,l,s,x),r.elementType=nt,r.lanes=S,r;case N:return ln(l.children,x,S,s);case z:O=8,x|=24;break;case L:return r=en(12,l,s,x|2),r.elementType=L,r.lanes=S,r;case Y:return r=en(13,l,s,x),r.elementType=Y,r.lanes=S,r;case Z:return r=en(19,l,s,x),r.elementType=Z,r.lanes=S,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case F:O=10;break t;case I:O=9;break t;case B:O=11;break t;case et:O=14;break t;case q:O=16,u=null;break t}O=29,l=Error(i(130,r===null?"null":typeof r,"")),u=null}return s=en(O,l,s,x),s.elementType=r,s.type=u,s.lanes=S,s}function ln(r,s,l,u){return r=en(7,r,u,s),r.lanes=l,r}function nn(r,s,l){return r=en(6,r,null,s),r.lanes=l,r}function yi(r){var s=en(18,null,null,0);return s.stateNode=r,s}function Rs(r,s,l){return s=en(4,r.children!==null?r.children:[],r.key,s),s.lanes=l,s.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},s}var Ki=new WeakMap;function bi(r,s){if(typeof r=="object"&&r!==null){var l=Ki.get(r);return l!==void 0?l:(s={value:r,source:s,stack:we(s)},Ki.set(r,s),s)}return{value:r,source:s,stack:we(s)}}var Or=[],Rn=0,Di=null,Oi=0,Cn=[],Dn=0,Pi=null,Je=1,xi="";function er(r,s){Or[Rn++]=Oi,Or[Rn++]=Di,Di=r,Oi=s}function Yc(r,s,l){Cn[Dn++]=Je,Cn[Dn++]=xi,Cn[Dn++]=Pi,Pi=r;var u=Je;r=xi;var x=32-gi(u)-1;u&=~(1<<x),l+=1;var S=32-gi(s)+x;if(30<S){var O=x-x%5;S=(u&(1<<O)-1).toString(32),u>>=O,x-=O,Je=1<<32-gi(s)+x|l<<x|u,xi=S+r}else Je=1<<S|l<<x|u,xi=r}function Nl(r){r.return!==null&&(er(r,1),Yc(r,1,0))}function Wc(r){for(;r===Di;)Di=Or[--Rn],Or[Rn]=null,Oi=Or[--Rn],Or[Rn]=null;for(;r===Pi;)Pi=Cn[--Dn],Cn[Dn]=null,xi=Cn[--Dn],Cn[Dn]=null,Je=Cn[--Dn],Cn[Dn]=null}function Kc(r,s){Cn[Dn++]=Je,Cn[Dn++]=xi,Cn[Dn++]=Pi,Je=s.id,xi=s.overflow,Pi=r}var kn=null,rn=null,be=!1,si=null,Qn=!1,Io=Error(i(519));function Li(r){var s=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ks(bi(s,r)),Io}function Xc(r){var s=r.stateNode,l=r.type,u=r.memoizedProps;switch(s[Wn]=r,s[ki]=u,l){case"dialog":ze("cancel",s),ze("close",s);break;case"iframe":case"object":case"embed":ze("load",s);break;case"video":case"audio":for(l=0;l<dg.length;l++)ze(dg[l],s);break;case"source":ze("error",s);break;case"img":case"image":case"link":ze("error",s),ze("load",s);break;case"details":ze("toggle",s);break;case"input":ze("invalid",s),ys(s,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":ze("invalid",s);break;case"textarea":ze("invalid",s),vd(s,u.value,u.defaultValue,u.children)}l=u.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||s.textContent===""+l||u.suppressHydrationWarning===!0||YA(s.textContent,l)?(u.popover!=null&&(ze("beforetoggle",s),ze("toggle",s)),u.onScroll!=null&&ze("scroll",s),u.onScrollEnd!=null&&ze("scrollend",s),u.onClick!=null&&(s.onclick=xs),s=!0):s=!1,s||Li(r,!0)}function nr(r){for(kn=r.return;kn;)switch(kn.tag){case 5:case 31:case 13:Qn=!1;return;case 27:case 3:Qn=!0;return;default:kn=kn.return}}function Zr(r){if(r!==kn)return!1;if(!be)return nr(r),be=!0,!1;var s=r.tag,l;if((l=s!==3&&s!==27)&&((l=s===5)&&(l=r.type,l=!(l!=="form"&&l!=="button")||G0(r.type,r.memoizedProps)),l=!l),l&&rn&&Li(r),nr(r),s===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));rn=tN(r)}else if(s===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));rn=tN(r)}else s===27?(s=rn,Su(r.type)?(r=Q0,Q0=null,rn=r):rn=s):rn=kn?fa(r.stateNode.nextSibling):null;return!0}function mr(){rn=kn=null,be=!1}function ca(){var r=si;return r!==null&&(rs===null?rs=r:rs.push.apply(rs,r),si=null),r}function ks(r){si===null?si=[r]:si.push(r)}var Pr=U(null),_s=null,qe=null;function Ii(r,s,l){ft(Pr,s._currentValue),s._currentValue=l}function Xi(r){r._currentValue=Pr.current,X(Pr)}function Jr(r,s,l){for(;r!==null;){var u=r.alternate;if((r.childLanes&s)!==s?(r.childLanes|=s,u!==null&&(u.childLanes|=s)):u!==null&&(u.childLanes&s)!==s&&(u.childLanes|=s),r===l)break;r=r.return}}function Bo(r,s,l,u){var x=r.child;for(x!==null&&(x.return=r);x!==null;){var S=x.dependencies;if(S!==null){var O=x.child;S=S.firstContext;t:for(;S!==null;){var H=S;S=x;for(var it=0;it<s.length;it++)if(H.context===s[it]){S.lanes|=l,H=S.alternate,H!==null&&(H.lanes|=l),Jr(S.return,l,r),u||(O=null);break t}S=H.next}}else if(x.tag===18){if(O=x.return,O===null)throw Error(i(341));O.lanes|=l,S=O.alternate,S!==null&&(S.lanes|=l),Jr(O,l,r),O=null}else O=x.child;if(O!==null)O.return=x;else for(O=x;O!==null;){if(O===r){O=null;break}if(x=O.sibling,x!==null){x.return=O.return,O=x;break}O=O.return}x=O}}function ai(r,s,l,u){r=null;for(var x=s,S=!1;x!==null;){if(!S){if((x.flags&524288)!==0)S=!0;else if((x.flags&262144)!==0)break}if(x.tag===10){var O=x.alternate;if(O===null)throw Error(i(387));if(O=O.memoizedProps,O!==null){var H=x.type;ri(x.pendingProps.value,O.value)||(r!==null?r.push(H):r=[H])}}else if(x===zt.current){if(O=x.alternate,O===null)throw Error(i(387));O.memoizedState.memoizedState!==x.memoizedState.memoizedState&&(r!==null?r.push(pg):r=[pg])}x=x.return}r!==null&&Bo(s,r,l,u),s.flags|=262144}function Lr(r){for(r=r.firstContext;r!==null;){if(!ri(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function ir(r){_s=r,qe=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function Ke(r){return Ha(_s,r)}function On(r,s){return _s===null&&ir(r),Ha(r,s)}function Ha(r,s){var l=s._currentValue;if(s={context:s,memoizedValue:l,next:null},qe===null){if(r===null)throw Error(i(308));qe=s,r.dependencies={lanes:0,firstContext:s},r.flags|=524288}else qe=qe.next=s;return l}var wi=typeof AbortController<"u"?AbortController:function(){var r=[],s=this.signal={aborted:!1,addEventListener:function(l,u){r.push(u)}};this.abort=function(){s.aborted=!0,r.forEach(function(l){return l()})}},Td=e.unstable_scheduleCallback,zl=e.unstable_NormalPriority,mn={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Qc(){return{controller:new wi,data:new Map,refCount:0}}function jo(r){r.refCount--,r.refCount===0&&Td(zl,function(){r.controller.abort()})}var rr=null,As=0,sr=0,Tn=null;function Fo(r,s){if(rr===null){var l=rr=[];As=0,sr=P0(),Tn={status:"pending",value:void 0,then:function(u){l.push(u)}}}return As++,s.then(Ga,Ga),s}function Ga(){if(--As===0&&rr!==null){Tn!==null&&(Tn.status="fulfilled");var r=rr;rr=null,sr=0,Tn=null;for(var s=0;s<r.length;s++)(0,r[s])()}}function Zc(r,s){var l=[],u={status:"pending",value:null,reason:null,then:function(x){l.push(x)}};return r.then(function(){u.status="fulfilled",u.value=s;for(var x=0;x<l.length;x++)(0,l[x])(s)},function(x){for(u.status="rejected",u.reason=x,x=0;x<l.length;x++)(0,l[x])(void 0)}),u}var Dl=j.S;j.S=function(r,s){gA=Vt(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&Fo(r,s),Dl!==null&&Dl(r,s)};var Ns=U(null);function Uo(){var r=Ns.current;return r!==null?r:wn.pooledCache}function Vo(r,s){s===null?ft(Ns,Ns.current):ft(Ns,s.pool)}function En(){var r=Uo();return r===null?null:{parent:mn._currentValue,pool:r}}var zs=Error(i(460)),ua=Error(i(474)),Ds=Error(i(542)),da={then:function(){}};function Ol(r){return r=r.status,r==="fulfilled"||r==="rejected"}function Ho(r,s,l){switch(l=r[l],l===void 0?r.push(s):l!==s&&(s.then(xs,xs),s=l),s.status){case"fulfilled":return s.value;case"rejected":throw r=s.reason,Jc(r),r;default:if(typeof s.status=="string")s.then(xs,xs);else{if(r=wn,r!==null&&100<r.shellSuspendCounter)throw Error(i(482));r=s,r.status="pending",r.then(function(u){if(s.status==="pending"){var x=s;x.status="fulfilled",x.value=u}},function(u){if(s.status==="pending"){var x=s;x.status="rejected",x.reason=u}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw r=s.reason,Jc(r),r}throw Bi=s,zs}}function Ir(r){try{var s=r._init;return s(r._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Bi=l,zs):l}}var Bi=null;function Qi(){if(Bi===null)throw Error(i(459));var r=Bi;return Bi=null,r}function Jc(r){if(r===zs||r===Ds)throw Error(i(483))}var ar=null,Ya=0;function gr(r){var s=Ya;return Ya+=1,ar===null&&(ar=[]),Ho(ar,r,s)}function Br(r,s){s=s.props.ref,r.ref=s!==void 0?s:null}function pr(r,s){throw s.$$typeof===T?Error(i(525)):(r=Object.prototype.toString.call(s),Error(i(31,r==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":r)))}function Wa(r){function s(dt,st){if(r){var gt=dt.deletions;gt===null?(dt.deletions=[st],dt.flags|=16):gt.push(st)}}function l(dt,st){if(!r)return null;for(;st!==null;)s(dt,st),st=st.sibling;return null}function u(dt){for(var st=new Map;dt!==null;)dt.key!==null?st.set(dt.key,dt):st.set(dt.index,dt),dt=dt.sibling;return st}function x(dt,st){return dt=Mn(dt,st),dt.index=0,dt.sibling=null,dt}function S(dt,st,gt){return dt.index=gt,r?(gt=dt.alternate,gt!==null?(gt=gt.index,gt<st?(dt.flags|=67108866,st):gt):(dt.flags|=67108866,st)):(dt.flags|=1048576,st)}function O(dt){return r&&dt.alternate===null&&(dt.flags|=67108866),dt}function H(dt,st,gt,Ot){return st===null||st.tag!==6?(st=nn(gt,dt.mode,Ot),st.return=dt,st):(st=x(st,gt),st.return=dt,st)}function it(dt,st,gt,Ot){var le=gt.type;return le===N?Nt(dt,st,gt.props.children,Ot,gt.key):st!==null&&(st.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===q&&Ir(le)===st.type)?(st=x(st,gt.props),Br(st,gt),st.return=dt,st):(st=xn(gt.type,gt.key,gt.props,null,dt.mode,Ot),Br(st,gt),st.return=dt,st)}function pt(dt,st,gt,Ot){return st===null||st.tag!==4||st.stateNode.containerInfo!==gt.containerInfo||st.stateNode.implementation!==gt.implementation?(st=Rs(gt,dt.mode,Ot),st.return=dt,st):(st=x(st,gt.children||[]),st.return=dt,st)}function Nt(dt,st,gt,Ot,le){return st===null||st.tag!==7?(st=ln(gt,dt.mode,Ot,le),st.return=dt,st):(st=x(st,gt),st.return=dt,st)}function Lt(dt,st,gt){if(typeof st=="string"&&st!==""||typeof st=="number"||typeof st=="bigint")return st=nn(""+st,dt.mode,gt),st.return=dt,st;if(typeof st=="object"&&st!==null){switch(st.$$typeof){case k:return gt=xn(st.type,st.key,st.props,null,dt.mode,gt),Br(gt,st),gt.return=dt,gt;case R:return st=Rs(st,dt.mode,gt),st.return=dt,st;case q:return st=Ir(st),Lt(dt,st,gt)}if(ut(st)||ct(st))return st=ln(st,dt.mode,gt,null),st.return=dt,st;if(typeof st.then=="function")return Lt(dt,gr(st),gt);if(st.$$typeof===F)return Lt(dt,On(dt,st),gt);pr(dt,st)}return null}function xt(dt,st,gt,Ot){var le=st!==null?st.key:null;if(typeof gt=="string"&>!==""||typeof gt=="number"||typeof gt=="bigint")return le!==null?null:H(dt,st,""+gt,Ot);if(typeof gt=="object"&>!==null){switch(gt.$$typeof){case k:return gt.key===le?it(dt,st,gt,Ot):null;case R:return gt.key===le?pt(dt,st,gt,Ot):null;case q:return gt=Ir(gt),xt(dt,st,gt,Ot)}if(ut(gt)||ct(gt))return le!==null?null:Nt(dt,st,gt,Ot,null);if(typeof gt.then=="function")return xt(dt,st,gr(gt),Ot);if(gt.$$typeof===F)return xt(dt,st,On(dt,gt),Ot);pr(dt,gt)}return null}function kt(dt,st,gt,Ot,le){if(typeof Ot=="string"&&Ot!==""||typeof Ot=="number"||typeof Ot=="bigint")return dt=dt.get(gt)||null,H(st,dt,""+Ot,le);if(typeof Ot=="object"&&Ot!==null){switch(Ot.$$typeof){case k:return dt=dt.get(Ot.key===null?gt:Ot.key)||null,it(st,dt,Ot,le);case R:return dt=dt.get(Ot.key===null?gt:Ot.key)||null,pt(st,dt,Ot,le);case q:return Ot=Ir(Ot),kt(dt,st,gt,Ot,le)}if(ut(Ot)||ct(Ot))return dt=dt.get(gt)||null,Nt(st,dt,Ot,le,null);if(typeof Ot.then=="function")return kt(dt,st,gt,gr(Ot),le);if(Ot.$$typeof===F)return kt(dt,st,gt,On(st,Ot),le);pr(st,Ot)}return null}function $t(dt,st,gt,Ot){for(var le=null,Qe=null,ie=st,Te=st=0,Pe=null;ie!==null&&Te<gt.length;Te++){ie.index>Te?(Pe=ie,ie=null):Pe=ie.sibling;var Ze=xt(dt,ie,gt[Te],Ot);if(Ze===null){ie===null&&(ie=Pe);break}r&&ie&&Ze.alternate===null&&s(dt,ie),st=S(Ze,st,Te),Qe===null?le=Ze:Qe.sibling=Ze,Qe=Ze,ie=Pe}if(Te===gt.length)return l(dt,ie),be&&er(dt,Te),le;if(ie===null){for(;Te<gt.length;Te++)ie=Lt(dt,gt[Te],Ot),ie!==null&&(st=S(ie,st,Te),Qe===null?le=ie:Qe.sibling=ie,Qe=ie);return be&&er(dt,Te),le}for(ie=u(ie);Te<gt.length;Te++)Pe=kt(ie,dt,Te,gt[Te],Ot),Pe!==null&&(r&&Pe.alternate!==null&&ie.delete(Pe.key===null?Te:Pe.key),st=S(Pe,st,Te),Qe===null?le=Pe:Qe.sibling=Pe,Qe=Pe);return r&&ie.forEach(function(Ru){return s(dt,Ru)}),be&&er(dt,Te),le}function ce(dt,st,gt,Ot){if(gt==null)throw Error(i(151));for(var le=null,Qe=null,ie=st,Te=st=0,Pe=null,Ze=gt.next();ie!==null&&!Ze.done;Te++,Ze=gt.next()){ie.index>Te?(Pe=ie,ie=null):Pe=ie.sibling;var Ru=xt(dt,ie,Ze.value,Ot);if(Ru===null){ie===null&&(ie=Pe);break}r&&ie&&Ru.alternate===null&&s(dt,ie),st=S(Ru,st,Te),Qe===null?le=Ru:Qe.sibling=Ru,Qe=Ru,ie=Pe}if(Ze.done)return l(dt,ie),be&&er(dt,Te),le;if(ie===null){for(;!Ze.done;Te++,Ze=gt.next())Ze=Lt(dt,Ze.value,Ot),Ze!==null&&(st=S(Ze,st,Te),Qe===null?le=Ze:Qe.sibling=Ze,Qe=Ze);return be&&er(dt,Te),le}for(ie=u(ie);!Ze.done;Te++,Ze=gt.next())Ze=kt(ie,dt,Te,Ze.value,Ot),Ze!==null&&(r&&Ze.alternate!==null&&ie.delete(Ze.key===null?Te:Ze.key),st=S(Ze,st,Te),Qe===null?le=Ze:Qe.sibling=Ze,Qe=Ze);return r&&ie.forEach(function(aW){return s(dt,aW)}),be&&er(dt,Te),le}function pn(dt,st,gt,Ot){if(typeof gt=="object"&>!==null&>.type===N&>.key===null&&(gt=gt.props.children),typeof gt=="object"&>!==null){switch(gt.$$typeof){case k:t:{for(var le=gt.key;st!==null;){if(st.key===le){if(le=gt.type,le===N){if(st.tag===7){l(dt,st.sibling),Ot=x(st,gt.props.children),Ot.return=dt,dt=Ot;break t}}else if(st.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===q&&Ir(le)===st.type){l(dt,st.sibling),Ot=x(st,gt.props),Br(Ot,gt),Ot.return=dt,dt=Ot;break t}l(dt,st);break}else s(dt,st);st=st.sibling}gt.type===N?(Ot=ln(gt.props.children,dt.mode,Ot,gt.key),Ot.return=dt,dt=Ot):(Ot=xn(gt.type,gt.key,gt.props,null,dt.mode,Ot),Br(Ot,gt),Ot.return=dt,dt=Ot)}return O(dt);case R:t:{for(le=gt.key;st!==null;){if(st.key===le)if(st.tag===4&&st.stateNode.containerInfo===gt.containerInfo&&st.stateNode.implementation===gt.implementation){l(dt,st.sibling),Ot=x(st,gt.children||[]),Ot.return=dt,dt=Ot;break t}else{l(dt,st);break}else s(dt,st);st=st.sibling}Ot=Rs(gt,dt.mode,Ot),Ot.return=dt,dt=Ot}return O(dt);case q:return gt=Ir(gt),pn(dt,st,gt,Ot)}if(ut(gt))return $t(dt,st,gt,Ot);if(ct(gt)){if(le=ct(gt),typeof le!="function")throw Error(i(150));return gt=le.call(gt),ce(dt,st,gt,Ot)}if(typeof gt.then=="function")return pn(dt,st,gr(gt),Ot);if(gt.$$typeof===F)return pn(dt,st,On(dt,gt),Ot);pr(dt,gt)}return typeof gt=="string"&>!==""||typeof gt=="number"||typeof gt=="bigint"?(gt=""+gt,st!==null&&st.tag===6?(l(dt,st.sibling),Ot=x(st,gt),Ot.return=dt,dt=Ot):(l(dt,st),Ot=nn(gt,dt.mode,Ot),Ot.return=dt,dt=Ot),O(dt)):l(dt,st)}return function(dt,st,gt,Ot){try{Ya=0;var le=pn(dt,st,gt,Ot);return ar=null,le}catch(ie){if(ie===zs||ie===Ds)throw ie;var Qe=en(29,ie,null,dt.mode);return Qe.lanes=Ot,Qe.return=dt,Qe}finally{}}}var ji=Wa(!0),qc=Wa(!1),qr=!1;function jr(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ka(r,s){r=r.updateQueue,s.updateQueue===r&&(s.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function Zi(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function Si(r,s,l){var u=r.updateQueue;if(u===null)return null;if(u=u.shared,($e&2)!==0){var x=u.pending;return x===null?s.next=s:(s.next=x.next,x.next=s),u.pending=s,s=Ee(r),fn(r,null,l),s}return he(r,u,s,l),Ee(r)}function vr(r,s,l){if(s=s.updateQueue,s!==null&&(s=s.shared,(l&4194048)!==0)){var u=s.lanes;u&=r.pendingLanes,l|=u,s.lanes=l,xo(r,l)}}function Ji(r,s){var l=r.updateQueue,u=r.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var x=null,S=null;if(l=l.firstBaseUpdate,l!==null){do{var O={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};S===null?x=S=O:S=S.next=O,l=l.next}while(l!==null);S===null?x=S=s:S=S.next=s}else x=S=s;l={baseState:u.baseState,firstBaseUpdate:x,lastBaseUpdate:S,shared:u.shared,callbacks:u.callbacks},r.updateQueue=l;return}r=l.lastBaseUpdate,r===null?l.firstBaseUpdate=s:r.next=s,l.lastBaseUpdate=s}var Go=!1;function Xa(){if(Go){var r=Tn;if(r!==null)throw r}}function $r(r,s,l,u){Go=!1;var x=r.updateQueue;qr=!1;var S=x.firstBaseUpdate,O=x.lastBaseUpdate,H=x.shared.pending;if(H!==null){x.shared.pending=null;var it=H,pt=it.next;it.next=null,O===null?S=pt:O.next=pt,O=it;var Nt=r.alternate;Nt!==null&&(Nt=Nt.updateQueue,H=Nt.lastBaseUpdate,H!==O&&(H===null?Nt.firstBaseUpdate=pt:H.next=pt,Nt.lastBaseUpdate=it))}if(S!==null){var Lt=x.baseState;O=0,Nt=pt=it=null,H=S;do{var xt=H.lane&-536870913,kt=xt!==H.lane;if(kt?(Oe&xt)===xt:(u&xt)===xt){xt!==0&&xt===sr&&(Go=!0),Nt!==null&&(Nt=Nt.next={lane:0,tag:H.tag,payload:H.payload,callback:null,next:null});t:{var $t=r,ce=H;xt=s;var pn=l;switch(ce.tag){case 1:if($t=ce.payload,typeof $t=="function"){Lt=$t.call(pn,Lt,xt);break t}Lt=$t;break t;case 3:$t.flags=$t.flags&-65537|128;case 0:if($t=ce.payload,xt=typeof $t=="function"?$t.call(pn,Lt,xt):$t,xt==null)break t;Lt=y({},Lt,xt);break t;case 2:qr=!0}}xt=H.callback,xt!==null&&(r.flags|=64,kt&&(r.flags|=8192),kt=x.callbacks,kt===null?x.callbacks=[xt]:kt.push(xt))}else kt={lane:xt,tag:H.tag,payload:H.payload,callback:H.callback,next:null},Nt===null?(pt=Nt=kt,it=Lt):Nt=Nt.next=kt,O|=xt;if(H=H.next,H===null){if(H=x.shared.pending,H===null)break;kt=H,H=kt.next,kt.next=null,x.lastBaseUpdate=kt,x.shared.pending=null}}while(!0);Nt===null&&(it=Lt),x.baseState=it,x.firstBaseUpdate=pt,x.lastBaseUpdate=Nt,S===null&&(x.shared.lanes=0),vu|=O,r.lanes=O,r.memoizedState=Lt}}function f(r,s){if(typeof r!="function")throw Error(i(191,r));r.call(s)}function p(r,s){var l=r.callbacks;if(l!==null)for(r.callbacks=null,r=0;r<l.length;r++)f(l[r],s)}var C=U(null),_=U(0);function D(r,s){r=Xl,ft(_,r),ft(C,s),Xl=r|s.baseLanes}function V(){ft(_,Xl),ft(C,C.current)}function W(){Xl=_.current,X(C),X(_)}var at=U(null),$=null;function lt(r){var s=r.alternate;ft(se,se.current&1),ft(at,r),$===null&&(s===null||C.current!==null||s.memoizedState!==null)&&($=r)}function vt(r){ft(se,se.current),ft(at,r),$===null&&($=r)}function Et(r){r.tag===22?(ft(se,se.current),ft(at,r),$===null&&($=r)):Bt()}function Bt(){ft(se,se.current),ft(at,at.current)}function jt(r){X(at),$===r&&($=null),X(se)}var se=U(0);function ye(r){for(var s=r;s!==null;){if(s.tag===13){var l=s.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||K0(l)||X0(l)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var me=0,Wt=null,ae=null,Re=null,oi=!1,li=!1,oe=!1,Un=0,sn=0,Pn=null,Os=0;function pe(){throw Error(i(321))}function ts(r,s){if(s===null)return!1;for(var l=0;l<s.length&&l<r.length;l++)if(!ri(r[l],s[l]))return!1;return!0}function yr(r,s,l,u,x,S){return me=S,Wt=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,j.H=r===null||r.memoizedState===null?Dd:Xo,oe=!1,S=l(u,x),oe=!1,li&&(S=or(s,l,u,x)),Zn(r),S}function Zn(r){j.H=zd;var s=ae!==null&&ae.next!==null;if(me=0,Re=ae=Wt=null,oi=!1,sn=0,Pn=null,s)throw Error(i(300));r===null||Jn||(r=r.dependencies,r!==null&&Lr(r)&&(Jn=!0))}function or(r,s,l,u){Wt=r;var x=0;do{if(li&&(Pn=null),sn=0,li=!1,25<=x)throw Error(i(301));if(x+=1,Re=ae=null,r.updateQueue!=null){var S=r.updateQueue;S.lastEffect=null,S.events=null,S.stores=null,S.memoCache!=null&&(S.memoCache.index=0)}j.H=Fv,S=s(l,u)}while(li);return S}function Pl(){var r=j.H,s=r.useState()[0];return s=typeof s.then=="function"?Ll(s):s,r=r.useState()[0],(ae!==null?ae.memoizedState:null)!==r&&(Wt.flags|=1024),s}function Qa(){var r=Un!==0;return Un=0,r}function Ps(r,s,l){s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~l}function Za(r){if(oi){for(r=r.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}oi=!1}me=0,Re=ae=Wt=null,li=!1,sn=Un=0,Pn=null}function ci(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Re===null?Wt.memoizedState=Re=r:Re=Re.next=r,Re}function Xe(){if(ae===null){var r=Wt.alternate;r=r!==null?r.memoizedState:null}else r=ae.next;var s=Re===null?Wt.memoizedState:Re.next;if(s!==null)Re=s,ae=r;else{if(r===null)throw Wt.alternate===null?Error(i(467)):Error(i(310));ae=r,r={memoizedState:ae.memoizedState,baseState:ae.baseState,baseQueue:ae.baseQueue,queue:ae.queue,next:null},Re===null?Wt.memoizedState=Re=r:Re=Re.next=r}return Re}function Ls(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ll(r){var s=sn;return sn+=1,Pn===null&&(Pn=[]),r=Ho(Pn,r,s),s=Wt,(Re===null?s.memoizedState:Re.next)===null&&(s=s.alternate,j.H=s===null||s.memoizedState===null?Dd:Xo),r}function $c(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Ll(r);if(r.$$typeof===F)return Ke(r)}throw Error(i(438,String(r)))}function Il(r){var s=null,l=Wt.updateQueue;if(l!==null&&(s=l.memoCache),s==null){var u=Wt.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(s={data:u.data.map(function(x){return x.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),l===null&&(l=Ls(),Wt.updateQueue=l),l.memoCache=s,l=s.data[s.index],l===void 0)for(l=s.data[s.index]=Array(r),u=0;u<r;u++)l[u]=ot;return s.index++,l}function ui(r,s){return typeof s=="function"?s(r):s}function Ed(r){var s=Xe();return Bl(s,ae,r)}function Bl(r,s,l){var u=r.queue;if(u===null)throw Error(i(311));u.lastRenderedReducer=l;var x=r.baseQueue,S=u.pending;if(S!==null){if(x!==null){var O=x.next;x.next=S.next,S.next=O}s.baseQueue=x=S,u.pending=null}if(S=r.baseState,x===null)r.memoizedState=S;else{s=x.next;var H=O=null,it=null,pt=s,Nt=!1;do{var Lt=pt.lane&-536870913;if(Lt!==pt.lane?(Oe&Lt)===Lt:(me&Lt)===Lt){var xt=pt.revertLane;if(xt===0)it!==null&&(it=it.next={lane:0,revertLane:0,gesture:null,action:pt.action,hasEagerState:pt.hasEagerState,eagerState:pt.eagerState,next:null}),Lt===sr&&(Nt=!0);else if((me&xt)===xt){pt=pt.next,xt===sr&&(Nt=!0);continue}else Lt={lane:0,revertLane:pt.revertLane,gesture:null,action:pt.action,hasEagerState:pt.hasEagerState,eagerState:pt.eagerState,next:null},it===null?(H=it=Lt,O=S):it=it.next=Lt,Wt.lanes|=xt,vu|=xt;Lt=pt.action,oe&&l(S,Lt),S=pt.hasEagerState?pt.eagerState:l(S,Lt)}else xt={lane:Lt,revertLane:pt.revertLane,gesture:pt.gesture,action:pt.action,hasEagerState:pt.hasEagerState,eagerState:pt.eagerState,next:null},it===null?(H=it=xt,O=S):it=it.next=xt,Wt.lanes|=Lt,vu|=Lt;pt=pt.next}while(pt!==null&&pt!==s);if(it===null?O=S:it.next=H,!ri(S,r.memoizedState)&&(Jn=!0,Nt&&(l=Tn,l!==null)))throw l;r.memoizedState=S,r.baseState=O,r.baseQueue=it,u.lastRenderedState=S}return x===null&&(u.lanes=0),[r.memoizedState,u.dispatch]}function tf(r){var s=Xe(),l=s.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=r;var u=l.dispatch,x=l.pending,S=s.memoizedState;if(x!==null){l.pending=null;var O=x=x.next;do S=r(S,O.action),O=O.next;while(O!==x);ri(S,s.memoizedState)||(Jn=!0),s.memoizedState=S,s.baseQueue===null&&(s.baseState=S),l.lastRenderedState=S}return[S,u]}function Pm(r,s,l){var u=Wt,x=Xe(),S=be;if(S){if(l===void 0)throw Error(i(407));l=l()}else l=s();var O=!ri((ae||x).memoizedState,l);if(O&&(x.memoizedState=l,Jn=!0),x=x.queue,Ul(Bm.bind(null,u,x,r),[r]),x.getSnapshot!==s||O||Re!==null&&Re.memoizedState.tag&1){if(u.flags|=2048,Fl(9,{destroy:void 0},Im.bind(null,u,x,l,s),null),wn===null)throw Error(i(349));S||(me&127)!==0||Lm(u,s,l)}return l}function Lm(r,s,l){r.flags|=16384,r={getSnapshot:s,value:l},s=Wt.updateQueue,s===null?(s=Ls(),Wt.updateQueue=s,s.stores=[r]):(l=s.stores,l===null?s.stores=[r]:l.push(r))}function Im(r,s,l,u){s.value=l,s.getSnapshot=u,jm(s)&&tu(r)}function Bm(r,s,l){return l(function(){jm(s)&&tu(r)})}function jm(r){var s=r.getSnapshot;r=r.value;try{var l=s();return!ri(r,l)}catch{return!0}}function tu(r){var s=Ue(r,2);s!==null&&ss(s,r,2)}function Is(r){var s=ci();if(typeof r=="function"){var l=r;if(r=l(),oe){Wr(!0);try{l()}finally{Wr(!1)}}}return s.memoizedState=s.baseState=r,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ui,lastRenderedState:r},s}function Fm(r,s,l,u){return r.baseState=l,Bl(r,ae,typeof u=="function"?u:ui)}function Dv(r,s,l,u,x){if(uu(r))throw Error(i(485));if(r=s.action,r!==null){var S={payload:x,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(O){S.listeners.push(O)}};j.T!==null?l(!0):S.isTransition=!1,u(S),l=s.pending,l===null?(S.next=s.pending=S,eu(s,S)):(S.next=l.next,s.pending=l.next=S)}}function eu(r,s){var l=s.action,u=s.payload,x=r.state;if(s.isTransition){var S=j.T,O={};j.T=O;try{var H=l(x,u),it=j.S;it!==null&&it(O,H),Um(r,s,H)}catch(pt){jl(r,s,pt)}finally{S!==null&&O.types!==null&&(S.types=O.types),j.T=S}}else try{S=l(x,u),Um(r,s,S)}catch(pt){jl(r,s,pt)}}function Um(r,s,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(u){Yo(r,s,u)},function(u){return jl(r,s,u)}):Yo(r,s,l)}function Yo(r,s,l){s.status="fulfilled",s.value=l,nu(s),r.state=l,s=r.pending,s!==null&&(l=s.next,l===s?r.pending=null:(l=l.next,s.next=l,eu(r,l)))}function jl(r,s,l){var u=r.pending;if(r.pending=null,u!==null){u=u.next;do s.status="rejected",s.reason=l,nu(s),s=s.next;while(s!==u)}r.action=null}function nu(r){r=r.listeners;for(var s=0;s<r.length;s++)(0,r[s])()}function iu(r,s){return s}function ru(r,s){if(be){var l=wn.formState;if(l!==null){t:{var u=Wt;if(be){if(rn){e:{for(var x=rn,S=Qn;x.nodeType!==8;){if(!S){x=null;break e}if(x=fa(x.nextSibling),x===null){x=null;break e}}S=x.data,x=S==="F!"||S==="F"?x:null}if(x){rn=fa(x.nextSibling),u=x.data==="F!";break t}}Li(u)}u=!1}u&&(s=l[0])}}return l=ci(),l.memoizedState=l.baseState=s,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:iu,lastRenderedState:s},l.queue=u,l=Nd.bind(null,Wt,u),u.dispatch=l,u=Is(!1),S=cu.bind(null,Wt,!1,u.queue),u=ci(),x={state:s,dispatch:null,action:r,pending:null},u.queue=x,l=Dv.bind(null,Wt,x,S,l),x.dispatch=l,u.memoizedState=r,[s,l,!1]}function Ja(r){var s=Xe();return ef(s,ae,r)}function ef(r,s,l){if(s=Bl(r,s,iu)[0],r=Ed(ui)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var u=Ll(s)}catch(O){throw O===zs?Ds:O}else u=s;s=Xe();var x=s.queue,S=x.dispatch;return l!==s.memoizedState&&(Wt.flags|=2048,Fl(9,{destroy:void 0},Vm.bind(null,x,l),null)),[u,S,r]}function Vm(r,s){r.action=s}function Wo(r){var s=Xe(),l=ae;if(l!==null)return ef(s,l,r);Xe(),s=s.memoizedState,l=Xe();var u=l.queue.dispatch;return l.memoizedState=r,[s,u,!1]}function Fl(r,s,l,u){return r={tag:r,create:l,deps:u,inst:s,next:null},s=Wt.updateQueue,s===null&&(s=Ls(),Wt.updateQueue=s),l=s.lastEffect,l===null?s.lastEffect=r.next=r:(u=l.next,l.next=r,r.next=u,s.lastEffect=r),r}function Md(){return Xe().memoizedState}function Rd(r,s,l,u){var x=ci();Wt.flags|=r,x.memoizedState=Fl(1|s,{destroy:void 0},l,u===void 0?null:u)}function Ko(r,s,l,u){var x=Xe();u=u===void 0?null:u;var S=x.memoizedState.inst;ae!==null&&u!==null&&ts(u,ae.memoizedState.deps)?x.memoizedState=Fl(s,S,l,u):(Wt.flags|=r,x.memoizedState=Fl(1|s,S,l,u))}function Hm(r,s){Rd(8390656,8,r,s)}function Ul(r,s){Ko(2048,8,r,s)}function kd(r){Wt.flags|=4;var s=Wt.updateQueue;if(s===null)s=Ls(),Wt.updateQueue=s,s.events=[r];else{var l=s.events;l===null?s.events=[r]:l.push(r)}}function Gm(r){var s=Xe().memoizedState;return kd({ref:s,nextImpl:r}),function(){if(($e&2)!==0)throw Error(i(440));return s.impl.apply(void 0,arguments)}}function Ym(r,s){return Ko(4,2,r,s)}function Ov(r,s){return Ko(4,4,r,s)}function Pv(r,s){if(typeof s=="function"){r=r();var l=s(r);return function(){typeof l=="function"?l():s(null)}}if(s!=null)return r=r(),s.current=r,function(){s.current=null}}function nf(r,s,l){l=l!=null?l.concat([r]):null,Ko(4,4,Pv.bind(null,s,r),l)}function Wm(){}function Lv(r,s){var l=Xe();s=s===void 0?null:s;var u=l.memoizedState;return s!==null&&ts(s,u[1])?u[0]:(l.memoizedState=[r,s],r)}function Iv(r,s){var l=Xe();s=s===void 0?null:s;var u=l.memoizedState;if(s!==null&&ts(s,u[1]))return u[0];if(u=r(),oe){Wr(!0);try{r()}finally{Wr(!1)}}return l.memoizedState=[u,s],u}function ha(r,s,l){return l===void 0||(me&1073741824)!==0&&(Oe&261930)===0?r.memoizedState=s:(r.memoizedState=l,r=vA(),Wt.lanes|=r,vu|=r,l)}function _d(r,s,l,u){return ri(l,s)?l:C.current!==null?(r=ha(r,l,u),ri(r,s)||(Jn=!0),r):(me&42)===0||(me&1073741824)!==0&&(Oe&261930)===0?(Jn=!0,r.memoizedState=l):(r=vA(),Wt.lanes|=r,vu|=r,s)}function su(r,s,l,u,x){var S=J.p;J.p=S!==0&&8>S?S:8;var O=j.T,H={};j.T=H,cu(r,!1,s,l);try{var it=x(),pt=j.S;if(pt!==null&&pt(H,it),it!==null&&typeof it=="object"&&typeof it.then=="function"){var Nt=Zc(it,u);lu(r,s,Nt,Vs(r))}else lu(r,s,u,Vs(r))}catch(Lt){lu(r,s,{then:function(){},status:"rejected",reason:Lt},Vs())}finally{J.p=S,O!==null&&H.types!==null&&(O.types=H.types),j.T=O}}function au(){}function ou(r,s,l,u){if(r.tag!==5)throw Error(i(476));var x=Ad(r).queue;su(r,x,s,ht,l===null?au:function(){return rf(r),l(u)})}function Ad(r){var s=r.memoizedState;if(s!==null)return s;s={memoizedState:ht,baseState:ht,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ui,lastRenderedState:ht},next:null};var l={};return s.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ui,lastRenderedState:l},next:null},r.memoizedState=s,r=r.alternate,r!==null&&(r.memoizedState=s),s}function rf(r){var s=Ad(r);s.next===null&&(s=r.alternate.memoizedState),lu(r,s.next.queue,{},Vs())}function sf(){return Ke(pg)}function Bv(){return Xe().memoizedState}function af(){return Xe().memoizedState}function jv(r){for(var s=r.return;s!==null;){switch(s.tag){case 24:case 3:var l=Vs();r=Zi(l);var u=Si(s,r,l);u!==null&&(ss(u,s,l),vr(u,s,l)),s={cache:Qc()},r.payload=s;return}s=s.return}}function of(r,s,l){var u=Vs();l={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},uu(r)?Km(s,l):(l=ve(r,s,l,u),l!==null&&(ss(l,r,u),Xm(l,s,u)))}function Nd(r,s,l){var u=Vs();lu(r,s,l,u)}function lu(r,s,l,u){var x={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(uu(r))Km(s,x);else{var S=r.alternate;if(r.lanes===0&&(S===null||S.lanes===0)&&(S=s.lastRenderedReducer,S!==null))try{var O=s.lastRenderedState,H=S(O,l);if(x.hasEagerState=!0,x.eagerState=H,ri(H,O))return he(r,s,x,0),wn===null&&fe(),!1}catch{}finally{}if(l=ve(r,s,x,u),l!==null)return ss(l,r,u),Xm(l,s,u),!0}return!1}function cu(r,s,l,u){if(u={lane:2,revertLane:P0(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},uu(r)){if(s)throw Error(i(479))}else s=ve(r,l,u,2),s!==null&&ss(s,r,2)}function uu(r){var s=r.alternate;return r===Wt||s!==null&&s===Wt}function Km(r,s){li=oi=!0;var l=r.pending;l===null?s.next=s:(s.next=l.next,l.next=s),r.pending=s}function Xm(r,s,l){if((l&4194048)!==0){var u=s.lanes;u&=r.pendingLanes,l|=u,s.lanes=l,xo(r,l)}}var zd={readContext:Ke,use:$c,useCallback:pe,useContext:pe,useEffect:pe,useImperativeHandle:pe,useLayoutEffect:pe,useInsertionEffect:pe,useMemo:pe,useReducer:pe,useRef:pe,useState:pe,useDebugValue:pe,useDeferredValue:pe,useTransition:pe,useSyncExternalStore:pe,useId:pe,useHostTransitionStatus:pe,useFormState:pe,useActionState:pe,useOptimistic:pe,useMemoCache:pe,useCacheRefresh:pe};zd.useEffectEvent=pe;var Dd={readContext:Ke,use:$c,useCallback:function(r,s){return ci().memoizedState=[r,s===void 0?null:s],r},useContext:Ke,useEffect:Hm,useImperativeHandle:function(r,s,l){l=l!=null?l.concat([r]):null,Rd(4194308,4,Pv.bind(null,s,r),l)},useLayoutEffect:function(r,s){return Rd(4194308,4,r,s)},useInsertionEffect:function(r,s){Rd(4,2,r,s)},useMemo:function(r,s){var l=ci();s=s===void 0?null:s;var u=r();if(oe){Wr(!0);try{r()}finally{Wr(!1)}}return l.memoizedState=[u,s],u},useReducer:function(r,s,l){var u=ci();if(l!==void 0){var x=l(s);if(oe){Wr(!0);try{l(s)}finally{Wr(!1)}}}else x=s;return u.memoizedState=u.baseState=x,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:x},u.queue=r,r=r.dispatch=of.bind(null,Wt,r),[u.memoizedState,r]},useRef:function(r){var s=ci();return r={current:r},s.memoizedState=r},useState:function(r){r=Is(r);var s=r.queue,l=Nd.bind(null,Wt,s);return s.dispatch=l,[r.memoizedState,l]},useDebugValue:Wm,useDeferredValue:function(r,s){var l=ci();return ha(l,r,s)},useTransition:function(){var r=Is(!1);return r=su.bind(null,Wt,r.queue,!0,!1),ci().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,s,l){var u=Wt,x=ci();if(be){if(l===void 0)throw Error(i(407));l=l()}else{if(l=s(),wn===null)throw Error(i(349));(Oe&127)!==0||Lm(u,s,l)}x.memoizedState=l;var S={value:l,getSnapshot:s};return x.queue=S,Hm(Bm.bind(null,u,S,r),[r]),u.flags|=2048,Fl(9,{destroy:void 0},Im.bind(null,u,S,l,s),null),l},useId:function(){var r=ci(),s=wn.identifierPrefix;if(be){var l=xi,u=Je;l=(u&~(1<<32-gi(u)-1)).toString(32)+l,s="_"+s+"R_"+l,l=Un++,0<l&&(s+="H"+l.toString(32)),s+="_"}else l=Os++,s="_"+s+"r_"+l.toString(32)+"_";return r.memoizedState=s},useHostTransitionStatus:sf,useFormState:ru,useActionState:ru,useOptimistic:function(r){var s=ci();s.memoizedState=s.baseState=r;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=l,s=cu.bind(null,Wt,!0,l),l.dispatch=s,[r,s]},useMemoCache:Il,useCacheRefresh:function(){return ci().memoizedState=jv.bind(null,Wt)},useEffectEvent:function(r){var s=ci(),l={impl:r};return s.memoizedState=l,function(){if(($e&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}},Xo={readContext:Ke,use:$c,useCallback:Lv,useContext:Ke,useEffect:Ul,useImperativeHandle:nf,useInsertionEffect:Ym,useLayoutEffect:Ov,useMemo:Iv,useReducer:Ed,useRef:Md,useState:function(){return Ed(ui)},useDebugValue:Wm,useDeferredValue:function(r,s){var l=Xe();return _d(l,ae.memoizedState,r,s)},useTransition:function(){var r=Ed(ui)[0],s=Xe().memoizedState;return[typeof r=="boolean"?r:Ll(r),s]},useSyncExternalStore:Pm,useId:Bv,useHostTransitionStatus:sf,useFormState:Ja,useActionState:Ja,useOptimistic:function(r,s){var l=Xe();return Fm(l,ae,r,s)},useMemoCache:Il,useCacheRefresh:af};Xo.useEffectEvent=Gm;var Fv={readContext:Ke,use:$c,useCallback:Lv,useContext:Ke,useEffect:Ul,useImperativeHandle:nf,useInsertionEffect:Ym,useLayoutEffect:Ov,useMemo:Iv,useReducer:tf,useRef:Md,useState:function(){return tf(ui)},useDebugValue:Wm,useDeferredValue:function(r,s){var l=Xe();return ae===null?ha(l,r,s):_d(l,ae.memoizedState,r,s)},useTransition:function(){var r=tf(ui)[0],s=Xe().memoizedState;return[typeof r=="boolean"?r:Ll(r),s]},useSyncExternalStore:Pm,useId:Bv,useHostTransitionStatus:sf,useFormState:Wo,useActionState:Wo,useOptimistic:function(r,s){var l=Xe();return ae!==null?Fm(l,ae,r,s):(l.baseState=r,[r,l.queue.dispatch])},useMemoCache:Il,useCacheRefresh:af};Fv.useEffectEvent=Gm;function Qo(r,s,l,u){s=r.memoizedState,l=l(u,s),l=l==null?s:y({},s,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var lf={enqueueSetState:function(r,s,l){r=r._reactInternals;var u=Vs(),x=Zi(u);x.payload=s,l!=null&&(x.callback=l),s=Si(r,x,u),s!==null&&(ss(s,r,u),vr(s,r,u))},enqueueReplaceState:function(r,s,l){r=r._reactInternals;var u=Vs(),x=Zi(u);x.tag=1,x.payload=s,l!=null&&(x.callback=l),s=Si(r,x,u),s!==null&&(ss(s,r,u),vr(s,r,u))},enqueueForceUpdate:function(r,s){r=r._reactInternals;var l=Vs(),u=Zi(l);u.tag=2,s!=null&&(u.callback=s),s=Si(r,u,l),s!==null&&(ss(s,r,l),vr(s,r,l))}};function du(r,s,l,u,x,S,O){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(u,S,O):s.prototype&&s.prototype.isPureReactComponent?!zr(l,u)||!zr(x,S):!0}function Od(r,s,l,u){r=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(l,u),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(l,u),s.state!==r&&lf.enqueueReplaceState(s,s.state,null)}function Bs(r,s){var l=s;if("ref"in s){l={};for(var u in s)u!=="ref"&&(l[u]=s[u])}if(r=r.defaultProps){l===s&&(l=y({},l));for(var x in r)l[x]===void 0&&(l[x]=r[x])}return l}function Qm(r){Ft(r)}function Zo(r){console.error(r)}function Zm(r){Ft(r)}function Pd(r,s){try{var l=r.onUncaughtError;l(s.value,{componentStack:s.stack})}catch(u){setTimeout(function(){throw u})}}function Vl(r,s,l){try{var u=r.onCaughtError;u(l.value,{componentStack:l.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(x){setTimeout(function(){throw x})}}function cf(r,s,l){return l=Zi(l),l.tag=3,l.payload={element:null},l.callback=function(){Pd(r,s)},l}function Ld(r){return r=Zi(r),r.tag=3,r}function uf(r,s,l,u){var x=l.type.getDerivedStateFromError;if(typeof x=="function"){var S=u.value;r.payload=function(){return x(S)},r.callback=function(){Vl(s,l,u)}}var O=l.stateNode;O!==null&&typeof O.componentDidCatch=="function"&&(r.callback=function(){Vl(s,l,u),typeof x!="function"&&(yu===null?yu=new Set([this]):yu.add(this));var H=u.stack;this.componentDidCatch(u.value,{componentStack:H!==null?H:""})})}function Id(r,s,l,u,x){if(l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(s=l.alternate,s!==null&&ai(s,l,x,!0),l=at.current,l!==null){switch(l.tag){case 31:case 13:return $===null?qv():l.alternate===null&&qn===0&&(qn=3),l.flags&=-257,l.flags|=65536,l.lanes=x,u===da?l.flags|=16384:(s=l.updateQueue,s===null?l.updateQueue=new Set([u]):s.add(u),z0(r,u,x)),!1;case 22:return l.flags|=65536,u===da?l.flags|=16384:(s=l.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([u])},l.updateQueue=s):(l=s.retryQueue,l===null?s.retryQueue=new Set([u]):l.add(u)),z0(r,u,x)),!1}throw Error(i(435,l.tag))}return z0(r,u,x),qv(),!1}if(be)return s=at.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=x,u!==Io&&(r=Error(i(422),{cause:u}),ks(bi(r,l)))):(u!==Io&&(s=Error(i(423),{cause:u}),ks(bi(s,l))),r=r.current.alternate,r.flags|=65536,x&=-x,r.lanes|=x,u=bi(u,l),x=cf(r.stateNode,u,x),Ji(r,x),qn!==4&&(qn=2)),!1;var S=Error(i(520),{cause:u});if(S=bi(S,l),lg===null?lg=[S]:lg.push(S),qn!==4&&(qn=2),s===null)return!0;u=bi(u,l),l=s;do{switch(l.tag){case 3:return l.flags|=65536,r=x&-x,l.lanes|=r,r=cf(l.stateNode,u,r),Ji(l,r),!1;case 1:if(s=l.type,S=l.stateNode,(l.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(yu===null||!yu.has(S))))return l.flags|=65536,x&=-x,l.lanes|=x,x=Ld(x),uf(x,r,l,u),Ji(l,x),!1}l=l.return}while(l!==null);return!1}var Jm=Error(i(461)),Jn=!1;function Ci(r,s,l,u){s.child=r===null?qc(s,null,l,u):ji(s,r.child,l,u)}function hu(r,s,l,u,x){l=l.render;var S=s.ref;if("ref"in u){var O={};for(var H in u)H!=="ref"&&(O[H]=u[H])}else O=u;return ir(s),u=yr(r,s,l,O,S,x),H=Qa(),r!==null&&!Jn?(Ps(r,s,x),br(r,s,x)):(be&&H&&Nl(s),s.flags|=1,Ci(r,s,u,x),s.child)}function fu(r,s,l,u,x){if(r===null){var S=l.type;return typeof S=="function"&&!_e(S)&&S.defaultProps===void 0&&l.compare===null?(s.tag=15,s.type=S,mu(r,s,S,u,x)):(r=xn(l.type,null,u,s,s.mode,x),r.ref=s.ref,r.return=s,s.child=r)}if(S=r.child,!Fr(r,x)){var O=S.memoizedProps;if(l=l.compare,l=l!==null?l:zr,l(O,u)&&r.ref===s.ref)return br(r,s,x)}return s.flags|=1,r=Mn(S,u),r.ref=s.ref,r.return=s,s.child=r}function mu(r,s,l,u,x){if(r!==null){var S=r.memoizedProps;if(zr(S,u)&&r.ref===s.ref)if(Jn=!1,s.pendingProps=u=S,Fr(r,x))(r.flags&131072)!==0&&(Jn=!0);else return s.lanes=r.lanes,br(r,s,x)}return jd(r,s,l,u,x)}function Bd(r,s,l,u){var x=u.children,S=r!==null?r.memoizedState:null;if(r===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((s.flags&128)!==0){if(S=S!==null?S.baseLanes|l:l,r!==null){for(u=s.child=r.child,x=0;u!==null;)x=x|u.lanes|u.childLanes,u=u.sibling;u=x&~S}else u=0,s.child=null;return Uv(r,s,S,l,u)}if((l&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},r!==null&&Vo(s,S!==null?S.cachePool:null),S!==null?D(s,S):V(),Et(s);else return u=s.lanes=536870912,Uv(r,s,S!==null?S.baseLanes|l:l,l,u)}else S!==null?(Vo(s,S.cachePool),D(s,S),Bt(),s.memoizedState=null):(r!==null&&Vo(s,null),V(),Bt());return Ci(r,s,x,l),s.child}function js(r,s){return r!==null&&r.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function Uv(r,s,l,u,x){var S=Uo();return S=S===null?null:{parent:mn._currentValue,pool:S},s.memoizedState={baseLanes:l,cachePool:S},r!==null&&Vo(s,null),V(),Et(s),r!==null&&ai(r,s,u,!0),s.childLanes=x,null}function di(r,s){return s=Hd({mode:s.mode,children:s.children},r.mode),s.ref=r.ref,r.child=s,s.return=r,s}function Ti(r,s,l){return ji(s,r.child,null,l),r=di(s,s.pendingProps),r.flags|=2,jt(s),s.memoizedState=null,r}function Vv(r,s,l){var u=s.pendingProps,x=(s.flags&128)!==0;if(s.flags&=-129,r===null){if(be){if(u.mode==="hidden")return r=di(s,u),s.lanes=536870912,js(null,r);if(vt(s),(r=rn)?(r=$A(r,Qn),r=r!==null&&r.data==="&"?r:null,r!==null&&(s.memoizedState={dehydrated:r,treeContext:Pi!==null?{id:Je,overflow:xi}:null,retryLane:536870912,hydrationErrors:null},l=yi(r),l.return=s,s.child=l,kn=s,rn=null)):r=null,r===null)throw Li(s);return s.lanes=536870912,null}return di(s,u)}var S=r.memoizedState;if(S!==null){var O=S.dehydrated;if(vt(s),x)if(s.flags&256)s.flags&=-257,s=Ti(r,s,l);else if(s.memoizedState!==null)s.child=r.child,s.flags|=128,s=null;else throw Error(i(558));else if(Jn||ai(r,s,l,!1),x=(l&r.childLanes)!==0,Jn||x){if(u=wn,u!==null&&(O=Yn(u,l),O!==0&&O!==S.retryLane))throw S.retryLane=O,Ue(r,O),ss(u,r,O),Jm;qv(),s=Ti(r,s,l)}else r=S.treeContext,rn=fa(O.nextSibling),kn=s,be=!0,si=null,Qn=!1,r!==null&&Kc(s,r),s=di(s,u),s.flags|=4096;return s}return r=Mn(r.child,{mode:u.mode,children:u.children}),r.ref=s.ref,s.child=r,r.return=s,r}function qa(r,s){var l=s.ref;if(l===null)r!==null&&r.ref!==null&&(s.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(i(284));(r===null||r.ref!==l)&&(s.flags|=4194816)}}function jd(r,s,l,u,x){return ir(s),l=yr(r,s,l,u,void 0,x),u=Qa(),r!==null&&!Jn?(Ps(r,s,x),br(r,s,x)):(be&&u&&Nl(s),s.flags|=1,Ci(r,s,l,x),s.child)}function Jo(r,s,l,u,x,S){return ir(s),s.updateQueue=null,l=or(s,u,l,x),Zn(r),u=Qa(),r!==null&&!Jn?(Ps(r,s,S),br(r,s,S)):(be&&u&&Nl(s),s.flags|=1,Ci(r,s,l,S),s.child)}function df(r,s,l,u,x){if(ir(s),s.stateNode===null){var S=Me,O=l.contextType;typeof O=="object"&&O!==null&&(S=Ke(O)),S=new l(u,S),s.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,S.updater=lf,s.stateNode=S,S._reactInternals=s,S=s.stateNode,S.props=u,S.state=s.memoizedState,S.refs={},jr(s),O=l.contextType,S.context=typeof O=="object"&&O!==null?Ke(O):Me,S.state=s.memoizedState,O=l.getDerivedStateFromProps,typeof O=="function"&&(Qo(s,l,O,u),S.state=s.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof S.getSnapshotBeforeUpdate=="function"||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(O=S.state,typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount(),O!==S.state&&lf.enqueueReplaceState(S,S.state,null),$r(s,u,S,x),Xa(),S.state=s.memoizedState),typeof S.componentDidMount=="function"&&(s.flags|=4194308),u=!0}else if(r===null){S=s.stateNode;var H=s.memoizedProps,it=Bs(l,H);S.props=it;var pt=S.context,Nt=l.contextType;O=Me,typeof Nt=="object"&&Nt!==null&&(O=Ke(Nt));var Lt=l.getDerivedStateFromProps;Nt=typeof Lt=="function"||typeof S.getSnapshotBeforeUpdate=="function",H=s.pendingProps!==H,Nt||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(H||pt!==O)&&Od(s,S,u,O),qr=!1;var xt=s.memoizedState;S.state=xt,$r(s,u,S,x),Xa(),pt=s.memoizedState,H||xt!==pt||qr?(typeof Lt=="function"&&(Qo(s,l,Lt,u),pt=s.memoizedState),(it=qr||du(s,l,it,u,xt,pt,O))?(Nt||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount()),typeof S.componentDidMount=="function"&&(s.flags|=4194308)):(typeof S.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=u,s.memoizedState=pt),S.props=u,S.state=pt,S.context=O,u=it):(typeof S.componentDidMount=="function"&&(s.flags|=4194308),u=!1)}else{S=s.stateNode,Ka(r,s),O=s.memoizedProps,Nt=Bs(l,O),S.props=Nt,Lt=s.pendingProps,xt=S.context,pt=l.contextType,it=Me,typeof pt=="object"&&pt!==null&&(it=Ke(pt)),H=l.getDerivedStateFromProps,(pt=typeof H=="function"||typeof S.getSnapshotBeforeUpdate=="function")||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(O!==Lt||xt!==it)&&Od(s,S,u,it),qr=!1,xt=s.memoizedState,S.state=xt,$r(s,u,S,x),Xa();var kt=s.memoizedState;O!==Lt||xt!==kt||qr||r!==null&&r.dependencies!==null&&Lr(r.dependencies)?(typeof H=="function"&&(Qo(s,l,H,u),kt=s.memoizedState),(Nt=qr||du(s,l,Nt,u,xt,kt,it)||r!==null&&r.dependencies!==null&&Lr(r.dependencies))?(pt||typeof S.UNSAFE_componentWillUpdate!="function"&&typeof S.componentWillUpdate!="function"||(typeof S.componentWillUpdate=="function"&&S.componentWillUpdate(u,kt,it),typeof S.UNSAFE_componentWillUpdate=="function"&&S.UNSAFE_componentWillUpdate(u,kt,it)),typeof S.componentDidUpdate=="function"&&(s.flags|=4),typeof S.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof S.componentDidUpdate!="function"||O===r.memoizedProps&&xt===r.memoizedState||(s.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||O===r.memoizedProps&&xt===r.memoizedState||(s.flags|=1024),s.memoizedProps=u,s.memoizedState=kt),S.props=u,S.state=kt,S.context=it,u=Nt):(typeof S.componentDidUpdate!="function"||O===r.memoizedProps&&xt===r.memoizedState||(s.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||O===r.memoizedProps&&xt===r.memoizedState||(s.flags|=1024),u=!1)}return S=u,qa(r,s),u=(s.flags&128)!==0,S||u?(S=s.stateNode,l=u&&typeof l.getDerivedStateFromError!="function"?null:S.render(),s.flags|=1,r!==null&&u?(s.child=ji(s,r.child,null,x),s.child=ji(s,null,l,x)):Ci(r,s,l,x),s.memoizedState=S.state,r=s.child):r=br(r,s,x),r}function qm(r,s,l,u){return mr(),s.flags|=256,Ci(r,s,l,u),s.child}var $a={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Fd(r){return{baseLanes:r,cachePool:En()}}function Ud(r,s,l){return r=r!==null?r.childLanes&~l:0,s&&(r|=Us),r}function $m(r,s,l){var u=s.pendingProps,x=!1,S=(s.flags&128)!==0,O;if((O=S)||(O=r!==null&&r.memoizedState===null?!1:(se.current&2)!==0),O&&(x=!0,s.flags&=-129),O=(s.flags&32)!==0,s.flags&=-33,r===null){if(be){if(x?lt(s):Bt(),(r=rn)?(r=$A(r,Qn),r=r!==null&&r.data!=="&"?r:null,r!==null&&(s.memoizedState={dehydrated:r,treeContext:Pi!==null?{id:Je,overflow:xi}:null,retryLane:536870912,hydrationErrors:null},l=yi(r),l.return=s,s.child=l,kn=s,rn=null)):r=null,r===null)throw Li(s);return X0(r)?s.lanes=32:s.lanes=536870912,null}var H=u.children;return u=u.fallback,x?(Bt(),x=s.mode,H=Hd({mode:"hidden",children:H},x),u=ln(u,x,l,null),H.return=s,u.return=s,H.sibling=u,s.child=H,u=s.child,u.memoizedState=Fd(l),u.childLanes=Ud(r,O,l),s.memoizedState=$a,js(null,u)):(lt(s),Vd(s,H))}var it=r.memoizedState;if(it!==null&&(H=it.dehydrated,H!==null)){if(S)s.flags&256?(lt(s),s.flags&=-257,s=Gd(r,s,l)):s.memoizedState!==null?(Bt(),s.child=r.child,s.flags|=128,s=null):(Bt(),H=u.fallback,x=s.mode,u=Hd({mode:"visible",children:u.children},x),H=ln(H,x,l,null),H.flags|=2,u.return=s,H.return=s,u.sibling=H,s.child=u,ji(s,r.child,null,l),u=s.child,u.memoizedState=Fd(l),u.childLanes=Ud(r,O,l),s.memoizedState=$a,s=js(null,u));else if(lt(s),X0(H)){if(O=H.nextSibling&&H.nextSibling.dataset,O)var pt=O.dgst;O=pt,u=Error(i(419)),u.stack="",u.digest=O,ks({value:u,source:null,stack:null}),s=Gd(r,s,l)}else if(Jn||ai(r,s,l,!1),O=(l&r.childLanes)!==0,Jn||O){if(O=wn,O!==null&&(u=Yn(O,l),u!==0&&u!==it.retryLane))throw it.retryLane=u,Ue(r,u),ss(O,r,u),Jm;K0(H)||qv(),s=Gd(r,s,l)}else K0(H)?(s.flags|=192,s.child=r.child,s=null):(r=it.treeContext,rn=fa(H.nextSibling),kn=s,be=!0,si=null,Qn=!1,r!==null&&Kc(s,r),s=Vd(s,u.children),s.flags|=4096);return s}return x?(Bt(),H=u.fallback,x=s.mode,it=r.child,pt=it.sibling,u=Mn(it,{mode:"hidden",children:u.children}),u.subtreeFlags=it.subtreeFlags&65011712,pt!==null?H=Mn(pt,H):(H=ln(H,x,l,null),H.flags|=2),H.return=s,u.return=s,u.sibling=H,s.child=u,js(null,u),u=s.child,H=r.child.memoizedState,H===null?H=Fd(l):(x=H.cachePool,x!==null?(it=mn._currentValue,x=x.parent!==it?{parent:it,pool:it}:x):x=En(),H={baseLanes:H.baseLanes|l,cachePool:x}),u.memoizedState=H,u.childLanes=Ud(r,O,l),s.memoizedState=$a,js(r.child,u)):(lt(s),l=r.child,r=l.sibling,l=Mn(l,{mode:"visible",children:u.children}),l.return=s,l.sibling=null,r!==null&&(O=s.deletions,O===null?(s.deletions=[r],s.flags|=16):O.push(r)),s.child=l,s.memoizedState=null,l)}function Vd(r,s){return s=Hd({mode:"visible",children:s},r.mode),s.return=r,r.child=s}function Hd(r,s){return r=en(22,r,null,s),r.lanes=0,r}function Gd(r,s,l){return ji(s,r.child,null,l),r=Vd(s,s.pendingProps.children),r.flags|=2,s.memoizedState=null,r}function tg(r,s,l){r.lanes|=s;var u=r.alternate;u!==null&&(u.lanes|=s),Jr(r.return,s,l)}function Yd(r,s,l,u,x,S){var O=r.memoizedState;O===null?r.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:x,treeForkCount:S}:(O.isBackwards=s,O.rendering=null,O.renderingStartTime=0,O.last=u,O.tail=l,O.tailMode=x,O.treeForkCount=S)}function eg(r,s,l){var u=s.pendingProps,x=u.revealOrder,S=u.tail;u=u.children;var O=se.current,H=(O&2)!==0;if(H?(O=O&1|2,s.flags|=128):O&=1,ft(se,O),Ci(r,s,u,l),u=be?Oi:0,!H&&r!==null&&(r.flags&128)!==0)t:for(r=s.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&tg(r,l,s);else if(r.tag===19)tg(r,l,s);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===s)break t;for(;r.sibling===null;){if(r.return===null||r.return===s)break t;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(x){case"forwards":for(l=s.child,x=null;l!==null;)r=l.alternate,r!==null&&ye(r)===null&&(x=l),l=l.sibling;l=x,l===null?(x=s.child,s.child=null):(x=l.sibling,l.sibling=null),Yd(s,!1,x,l,S,u);break;case"backwards":case"unstable_legacy-backwards":for(l=null,x=s.child,s.child=null;x!==null;){if(r=x.alternate,r!==null&&ye(r)===null){s.child=x;break}r=x.sibling,x.sibling=l,l=x,x=r}Yd(s,!0,l,null,S,u);break;case"together":Yd(s,!1,null,null,void 0,u);break;default:s.memoizedState=null}return s.child}function br(r,s,l){if(r!==null&&(s.dependencies=r.dependencies),vu|=s.lanes,(l&s.childLanes)===0)if(r!==null){if(ai(r,s,l,!1),(l&s.childLanes)===0)return null}else return null;if(r!==null&&s.child!==r.child)throw Error(i(153));if(s.child!==null){for(r=s.child,l=Mn(r,r.pendingProps),s.child=l,l.return=s;r.sibling!==null;)r=r.sibling,l=l.sibling=Mn(r,r.pendingProps),l.return=s;l.sibling=null}return s.child}function Fr(r,s){return(r.lanes&s)!==0?!0:(r=r.dependencies,!!(r!==null&&Lr(r)))}function Hv(r,s,l){switch(s.tag){case 3:Dt(s,s.stateNode.containerInfo),Ii(s,mn,r.memoizedState.cache),mr();break;case 27:case 5:Yt(s);break;case 4:Dt(s,s.stateNode.containerInfo);break;case 10:Ii(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,vt(s),null;break;case 13:var u=s.memoizedState;if(u!==null)return u.dehydrated!==null?(lt(s),s.flags|=128,null):(l&s.child.childLanes)!==0?$m(r,s,l):(lt(s),r=br(r,s,l),r!==null?r.sibling:null);lt(s);break;case 19:var x=(r.flags&128)!==0;if(u=(l&s.childLanes)!==0,u||(ai(r,s,l,!1),u=(l&s.childLanes)!==0),x){if(u)return eg(r,s,l);s.flags|=128}if(x=s.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),ft(se,se.current),u)break;return null;case 22:return s.lanes=0,Bd(r,s,l,s.pendingProps);case 24:Ii(s,mn,r.memoizedState.cache)}return br(r,s,l)}function X_(r,s,l){if(r!==null)if(r.memoizedProps!==s.pendingProps)Jn=!0;else{if(!Fr(r,l)&&(s.flags&128)===0)return Jn=!1,Hv(r,s,l);Jn=(r.flags&131072)!==0}else Jn=!1,be&&(s.flags&1048576)!==0&&Yc(s,Oi,s.index);switch(s.lanes=0,s.tag){case 16:t:{var u=s.pendingProps;if(r=Ir(s.elementType),s.type=r,typeof r=="function")_e(r)?(u=Bs(r,u),s.tag=1,s=df(null,s,r,u,l)):(s.tag=0,s=jd(null,s,r,u,l));else{if(r!=null){var x=r.$$typeof;if(x===B){s.tag=11,s=hu(null,s,r,u,l);break t}else if(x===et){s.tag=14,s=fu(null,s,r,u,l);break t}}throw s=Rt(r)||r,Error(i(306,s,""))}}return s;case 0:return jd(r,s,s.type,s.pendingProps,l);case 1:return u=s.type,x=Bs(u,s.pendingProps),df(r,s,u,x,l);case 3:t:{if(Dt(s,s.stateNode.containerInfo),r===null)throw Error(i(387));u=s.pendingProps;var S=s.memoizedState;x=S.element,Ka(r,s),$r(s,u,null,l);var O=s.memoizedState;if(u=O.cache,Ii(s,mn,u),u!==S.cache&&Bo(s,[mn],l,!0),Xa(),u=O.element,S.isDehydrated)if(S={element:u,isDehydrated:!1,cache:O.cache},s.updateQueue.baseState=S,s.memoizedState=S,s.flags&256){s=qm(r,s,u,l);break t}else if(u!==x){x=bi(Error(i(424)),s),ks(x),s=qm(r,s,u,l);break t}else{switch(r=s.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(rn=fa(r.firstChild),kn=s,be=!0,si=null,Qn=!0,l=qc(s,null,u,l),s.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(mr(),u===x){s=br(r,s,l);break t}Ci(r,s,u,l)}s=s.child}return s;case 26:return qa(r,s),r===null?(l=sN(s.type,null,s.pendingProps,null))?s.memoizedState=l:be||(l=s.type,r=s.pendingProps,u=sy(bt.current).createElement(l),u[Wn]=s,u[ki]=r,lr(u,l,r),jn(u),s.stateNode=u):s.memoizedState=sN(s.type,r.memoizedProps,s.pendingProps,r.memoizedState),null;case 27:return Yt(s),r===null&&be&&(u=s.stateNode=nN(s.type,s.pendingProps,bt.current),kn=s,Qn=!0,x=rn,Su(s.type)?(Q0=x,rn=fa(u.firstChild)):rn=x),Ci(r,s,s.pendingProps.children,l),qa(r,s),r===null&&(s.flags|=4194304),s.child;case 5:return r===null&&be&&((x=u=rn)&&(u=LY(u,s.type,s.pendingProps,Qn),u!==null?(s.stateNode=u,kn=s,rn=fa(u.firstChild),Qn=!1,x=!0):x=!1),x||Li(s)),Yt(s),x=s.type,S=s.pendingProps,O=r!==null?r.memoizedProps:null,u=S.children,G0(x,S)?u=null:O!==null&&G0(x,O)&&(s.flags|=32),s.memoizedState!==null&&(x=yr(r,s,Pl,null,null,l),pg._currentValue=x),qa(r,s),Ci(r,s,u,l),s.child;case 6:return r===null&&be&&((r=l=rn)&&(l=IY(l,s.pendingProps,Qn),l!==null?(s.stateNode=l,kn=s,rn=null,r=!0):r=!1),r||Li(s)),null;case 13:return $m(r,s,l);case 4:return Dt(s,s.stateNode.containerInfo),u=s.pendingProps,r===null?s.child=ji(s,null,u,l):Ci(r,s,u,l),s.child;case 11:return hu(r,s,s.type,s.pendingProps,l);case 7:return Ci(r,s,s.pendingProps,l),s.child;case 8:return Ci(r,s,s.pendingProps.children,l),s.child;case 12:return Ci(r,s,s.pendingProps.children,l),s.child;case 10:return u=s.pendingProps,Ii(s,s.type,u.value),Ci(r,s,u.children,l),s.child;case 9:return x=s.type._context,u=s.pendingProps.children,ir(s),x=Ke(x),u=u(x),s.flags|=1,Ci(r,s,u,l),s.child;case 14:return fu(r,s,s.type,s.pendingProps,l);case 15:return mu(r,s,s.type,s.pendingProps,l);case 19:return eg(r,s,l);case 31:return Vv(r,s,l);case 22:return Bd(r,s,l,s.pendingProps);case 24:return ir(s),u=Ke(mn),r===null?(x=Uo(),x===null&&(x=wn,S=Qc(),x.pooledCache=S,S.refCount++,S!==null&&(x.pooledCacheLanes|=l),x=S),s.memoizedState={parent:u,cache:x},jr(s),Ii(s,mn,x)):((r.lanes&l)!==0&&(Ka(r,s),$r(s,null,null,l),Xa()),x=r.memoizedState,S=s.memoizedState,x.parent!==u?(x={parent:u,cache:u},s.memoizedState=x,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=x),Ii(s,mn,u)):(u=S.cache,Ii(s,mn,u),u!==x.cache&&Bo(s,[mn],l,!0))),Ci(r,s,s.pendingProps.children,l),s.child;case 29:throw s.pendingProps}throw Error(i(156,s.tag))}function Hl(r){r.flags|=4}function v0(r,s,l,u,x){if((s=(r.mode&32)!==0)&&(s=!1),s){if(r.flags|=16777216,(x&335544128)===x)if(r.stateNode.complete)r.flags|=8192;else if(wA())r.flags|=8192;else throw Bi=da,ua}else r.flags&=-16777217}function Q_(r,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!uN(s))if(wA())r.flags|=8192;else throw Bi=da,ua}function Gv(r,s){s!==null&&(r.flags|=4),r.flags&16384&&(s=r.tag!==22?md():536870912,r.lanes|=s,gf|=s)}function ng(r,s){if(!be)switch(r.tailMode){case"hidden":s=r.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?r.tail=null:l.sibling=null;break;case"collapsed":l=r.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?s||r.tail===null?r.tail=null:r.tail.sibling=null:u.sibling=null}}function _n(r){var s=r.alternate!==null&&r.alternate.child===r.child,l=0,u=0;if(s)for(var x=r.child;x!==null;)l|=x.lanes|x.childLanes,u|=x.subtreeFlags&65011712,u|=x.flags&65011712,x.return=r,x=x.sibling;else for(x=r.child;x!==null;)l|=x.lanes|x.childLanes,u|=x.subtreeFlags,u|=x.flags,x.return=r,x=x.sibling;return r.subtreeFlags|=u,r.childLanes=l,s}function oY(r,s,l){var u=s.pendingProps;switch(Wc(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _n(s),null;case 1:return _n(s),null;case 3:return l=s.stateNode,u=null,r!==null&&(u=r.memoizedState.cache),s.memoizedState.cache!==u&&(s.flags|=2048),Xi(mn),Mt(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(r===null||r.child===null)&&(Zr(s)?Hl(s):r===null||r.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,ca())),_n(s),null;case 26:var x=s.type,S=s.memoizedState;return r===null?(Hl(s),S!==null?(_n(s),Q_(s,S)):(_n(s),v0(s,x,null,u,l))):S?S!==r.memoizedState?(Hl(s),_n(s),Q_(s,S)):(_n(s),s.flags&=-16777217):(r=r.memoizedProps,r!==u&&Hl(s),_n(s),v0(s,x,r,u,l)),null;case 27:if(Qt(s),l=bt.current,x=s.type,r!==null&&s.stateNode!=null)r.memoizedProps!==u&&Hl(s);else{if(!u){if(s.stateNode===null)throw Error(i(166));return _n(s),null}r=yt.current,Zr(s)?Xc(s):(r=nN(x,u,l),s.stateNode=r,Hl(s))}return _n(s),null;case 5:if(Qt(s),x=s.type,r!==null&&s.stateNode!=null)r.memoizedProps!==u&&Hl(s);else{if(!u){if(s.stateNode===null)throw Error(i(166));return _n(s),null}if(S=yt.current,Zr(s))Xc(s);else{var O=sy(bt.current);switch(S){case 1:S=O.createElementNS("http://www.w3.org/2000/svg",x);break;case 2:S=O.createElementNS("http://www.w3.org/1998/Math/MathML",x);break;default:switch(x){case"svg":S=O.createElementNS("http://www.w3.org/2000/svg",x);break;case"math":S=O.createElementNS("http://www.w3.org/1998/Math/MathML",x);break;case"script":S=O.createElement("div"),S.innerHTML="<script><\/script>",S=S.removeChild(S.firstChild);break;case"select":S=typeof u.is=="string"?O.createElement("select",{is:u.is}):O.createElement("select"),u.multiple?S.multiple=!0:u.size&&(S.size=u.size);break;default:S=typeof u.is=="string"?O.createElement(x,{is:u.is}):O.createElement(x)}}S[Wn]=s,S[ki]=u;t:for(O=s.child;O!==null;){if(O.tag===5||O.tag===6)S.appendChild(O.stateNode);else if(O.tag!==4&&O.tag!==27&&O.child!==null){O.child.return=O,O=O.child;continue}if(O===s)break t;for(;O.sibling===null;){if(O.return===null||O.return===s)break t;O=O.return}O.sibling.return=O.return,O=O.sibling}s.stateNode=S;t:switch(lr(S,x,u),x){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break t;case"img":u=!0;break t;default:u=!1}u&&Hl(s)}}return _n(s),v0(s,s.type,r===null?null:r.memoizedProps,s.pendingProps,l),null;case 6:if(r&&s.stateNode!=null)r.memoizedProps!==u&&Hl(s);else{if(typeof u!="string"&&s.stateNode===null)throw Error(i(166));if(r=bt.current,Zr(s)){if(r=s.stateNode,l=s.memoizedProps,u=null,x=kn,x!==null)switch(x.tag){case 27:case 5:u=x.memoizedProps}r[Wn]=s,r=!!(r.nodeValue===l||u!==null&&u.suppressHydrationWarning===!0||YA(r.nodeValue,l)),r||Li(s,!0)}else r=sy(r).createTextNode(u),r[Wn]=s,s.stateNode=r}return _n(s),null;case 31:if(l=s.memoizedState,r===null||r.memoizedState!==null){if(u=Zr(s),l!==null){if(r===null){if(!u)throw Error(i(318));if(r=s.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(557));r[Wn]=s}else mr(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;_n(s),r=!1}else l=ca(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=l),r=!0;if(!r)return s.flags&256?(jt(s),s):(jt(s),null);if((s.flags&128)!==0)throw Error(i(558))}return _n(s),null;case 13:if(u=s.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(x=Zr(s),u!==null&&u.dehydrated!==null){if(r===null){if(!x)throw Error(i(318));if(x=s.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(i(317));x[Wn]=s}else mr(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;_n(s),x=!1}else x=ca(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=x),x=!0;if(!x)return s.flags&256?(jt(s),s):(jt(s),null)}return jt(s),(s.flags&128)!==0?(s.lanes=l,s):(l=u!==null,r=r!==null&&r.memoizedState!==null,l&&(u=s.child,x=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(x=u.alternate.memoizedState.cachePool.pool),S=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(S=u.memoizedState.cachePool.pool),S!==x&&(u.flags|=2048)),l!==r&&l&&(s.child.flags|=8192),Gv(s,s.updateQueue),_n(s),null);case 4:return Mt(),r===null&&j0(s.stateNode.containerInfo),_n(s),null;case 10:return Xi(s.type),_n(s),null;case 19:if(X(se),u=s.memoizedState,u===null)return _n(s),null;if(x=(s.flags&128)!==0,S=u.rendering,S===null)if(x)ng(u,!1);else{if(qn!==0||r!==null&&(r.flags&128)!==0)for(r=s.child;r!==null;){if(S=ye(r),S!==null){for(s.flags|=128,ng(u,!1),r=S.updateQueue,s.updateQueue=r,Gv(s,r),s.subtreeFlags=0,r=l,l=s.child;l!==null;)Ve(l,r),l=l.sibling;return ft(se,se.current&1|2),be&&er(s,u.treeForkCount),s.child}r=r.sibling}u.tail!==null&&Vt()>Qv&&(s.flags|=128,x=!0,ng(u,!1),s.lanes=4194304)}else{if(!x)if(r=ye(S),r!==null){if(s.flags|=128,x=!0,r=r.updateQueue,s.updateQueue=r,Gv(s,r),ng(u,!0),u.tail===null&&u.tailMode==="hidden"&&!S.alternate&&!be)return _n(s),null}else 2*Vt()-u.renderingStartTime>Qv&&l!==536870912&&(s.flags|=128,x=!0,ng(u,!1),s.lanes=4194304);u.isBackwards?(S.sibling=s.child,s.child=S):(r=u.last,r!==null?r.sibling=S:s.child=S,u.last=S)}return u.tail!==null?(r=u.tail,u.rendering=r,u.tail=r.sibling,u.renderingStartTime=Vt(),r.sibling=null,l=se.current,ft(se,x?l&1|2:l&1),be&&er(s,u.treeForkCount),r):(_n(s),null);case 22:case 23:return jt(s),W(),u=s.memoizedState!==null,r!==null?r.memoizedState!==null!==u&&(s.flags|=8192):u&&(s.flags|=8192),u?(l&536870912)!==0&&(s.flags&128)===0&&(_n(s),s.subtreeFlags&6&&(s.flags|=8192)):_n(s),l=s.updateQueue,l!==null&&Gv(s,l.retryQueue),l=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),u=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(u=s.memoizedState.cachePool.pool),u!==l&&(s.flags|=2048),r!==null&&X(Ns),null;case 24:return l=null,r!==null&&(l=r.memoizedState.cache),s.memoizedState.cache!==l&&(s.flags|=2048),Xi(mn),_n(s),null;case 25:return null;case 30:return null}throw Error(i(156,s.tag))}function lY(r,s){switch(Wc(s),s.tag){case 1:return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 3:return Xi(mn),Mt(),r=s.flags,(r&65536)!==0&&(r&128)===0?(s.flags=r&-65537|128,s):null;case 26:case 27:case 5:return Qt(s),null;case 31:if(s.memoizedState!==null){if(jt(s),s.alternate===null)throw Error(i(340));mr()}return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 13:if(jt(s),r=s.memoizedState,r!==null&&r.dehydrated!==null){if(s.alternate===null)throw Error(i(340));mr()}return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 19:return X(se),null;case 4:return Mt(),null;case 10:return Xi(s.type),null;case 22:case 23:return jt(s),W(),r!==null&&X(Ns),r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 24:return Xi(mn),null;case 25:return null;default:return null}}function Z_(r,s){switch(Wc(s),s.tag){case 3:Xi(mn),Mt();break;case 26:case 27:case 5:Qt(s);break;case 4:Mt();break;case 31:s.memoizedState!==null&&jt(s);break;case 13:jt(s);break;case 19:X(se);break;case 10:Xi(s.type);break;case 22:case 23:jt(s),W(),r!==null&&X(Ns);break;case 24:Xi(mn)}}function ig(r,s){try{var l=s.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var x=u.next;l=x;do{if((l.tag&r)===r){u=void 0;var S=l.create,O=l.inst;u=S(),O.destroy=u}l=l.next}while(l!==x)}}catch(H){un(s,s.return,H)}}function gu(r,s,l){try{var u=s.updateQueue,x=u!==null?u.lastEffect:null;if(x!==null){var S=x.next;u=S;do{if((u.tag&r)===r){var O=u.inst,H=O.destroy;if(H!==void 0){O.destroy=void 0,x=s;var it=l,pt=H;try{pt()}catch(Nt){un(x,it,Nt)}}}u=u.next}while(u!==S)}}catch(Nt){un(s,s.return,Nt)}}function J_(r){var s=r.updateQueue;if(s!==null){var l=r.stateNode;try{p(s,l)}catch(u){un(r,r.return,u)}}}function q_(r,s,l){l.props=Bs(r.type,r.memoizedProps),l.state=r.memoizedState;try{l.componentWillUnmount()}catch(u){un(r,s,u)}}function rg(r,s){try{var l=r.ref;if(l!==null){switch(r.tag){case 26:case 27:case 5:var u=r.stateNode;break;case 30:u=r.stateNode;break;default:u=r.stateNode}typeof l=="function"?r.refCleanup=l(u):l.current=u}}catch(x){un(r,s,x)}}function qo(r,s){var l=r.ref,u=r.refCleanup;if(l!==null)if(typeof u=="function")try{u()}catch(x){un(r,s,x)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(x){un(r,s,x)}else l.current=null}function $_(r){var s=r.type,l=r.memoizedProps,u=r.stateNode;try{t:switch(s){case"button":case"input":case"select":case"textarea":l.autoFocus&&u.focus();break t;case"img":l.src?u.src=l.src:l.srcSet&&(u.srcset=l.srcSet)}}catch(x){un(r,r.return,x)}}function y0(r,s,l){try{var u=r.stateNode;AY(u,r.type,l,s),u[ki]=s}catch(x){un(r,r.return,x)}}function tA(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&Su(r.type)||r.tag===4}function b0(r){t:for(;;){for(;r.sibling===null;){if(r.return===null||tA(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&Su(r.type)||r.flags&2||r.child===null||r.tag===4)continue t;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function x0(r,s,l){var u=r.tag;if(u===5||u===6)r=r.stateNode,s?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(r,s):(s=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,s.appendChild(r),l=l._reactRootContainer,l!=null||s.onclick!==null||(s.onclick=xs));else if(u!==4&&(u===27&&Su(r.type)&&(l=r.stateNode,s=null),r=r.child,r!==null))for(x0(r,s,l),r=r.sibling;r!==null;)x0(r,s,l),r=r.sibling}function Yv(r,s,l){var u=r.tag;if(u===5||u===6)r=r.stateNode,s?l.insertBefore(r,s):l.appendChild(r);else if(u!==4&&(u===27&&Su(r.type)&&(l=r.stateNode),r=r.child,r!==null))for(Yv(r,s,l),r=r.sibling;r!==null;)Yv(r,s,l),r=r.sibling}function eA(r){var s=r.stateNode,l=r.memoizedProps;try{for(var u=r.type,x=s.attributes;x.length;)s.removeAttributeNode(x[0]);lr(s,u,l),s[Wn]=r,s[ki]=l}catch(S){un(r,r.return,S)}}var Gl=!1,Ei=!1,w0=!1,nA=typeof WeakSet=="function"?WeakSet:Set,qi=null;function cY(r,s){if(r=r.containerInfo,V0=hy,r=Hc(r),Gc(r)){if("selectionStart"in r)var l={start:r.selectionStart,end:r.selectionEnd};else t:{l=(l=r.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var x=u.anchorOffset,S=u.focusNode;u=u.focusOffset;try{l.nodeType,S.nodeType}catch{l=null;break t}var O=0,H=-1,it=-1,pt=0,Nt=0,Lt=r,xt=null;e:for(;;){for(var kt;Lt!==l||x!==0&&Lt.nodeType!==3||(H=O+x),Lt!==S||u!==0&&Lt.nodeType!==3||(it=O+u),Lt.nodeType===3&&(O+=Lt.nodeValue.length),(kt=Lt.firstChild)!==null;)xt=Lt,Lt=kt;for(;;){if(Lt===r)break e;if(xt===l&&++pt===x&&(H=O),xt===S&&++Nt===u&&(it=O),(kt=Lt.nextSibling)!==null)break;Lt=xt,xt=Lt.parentNode}Lt=kt}l=H===-1||it===-1?null:{start:H,end:it}}else l=null}l=l||{start:0,end:0}}else l=null;for(H0={focusedElem:r,selectionRange:l},hy=!1,qi=s;qi!==null;)if(s=qi,r=s.child,(s.subtreeFlags&1028)!==0&&r!==null)r.return=s,qi=r;else for(;qi!==null;){switch(s=qi,S=s.alternate,r=s.flags,s.tag){case 0:if((r&4)!==0&&(r=s.updateQueue,r=r!==null?r.events:null,r!==null))for(l=0;l<r.length;l++)x=r[l],x.ref.impl=x.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&S!==null){r=void 0,l=s,x=S.memoizedProps,S=S.memoizedState,u=l.stateNode;try{var $t=Bs(l.type,x);r=u.getSnapshotBeforeUpdate($t,S),u.__reactInternalSnapshotBeforeUpdate=r}catch(ce){un(l,l.return,ce)}}break;case 3:if((r&1024)!==0){if(r=s.stateNode.containerInfo,l=r.nodeType,l===9)W0(r);else if(l===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":W0(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(i(163))}if(r=s.sibling,r!==null){r.return=s.return,qi=r;break}qi=s.return}}function iA(r,s,l){var u=l.flags;switch(l.tag){case 0:case 11:case 15:Wl(r,l),u&4&&ig(5,l);break;case 1:if(Wl(r,l),u&4)if(r=l.stateNode,s===null)try{r.componentDidMount()}catch(O){un(l,l.return,O)}else{var x=Bs(l.type,s.memoizedProps);s=s.memoizedState;try{r.componentDidUpdate(x,s,r.__reactInternalSnapshotBeforeUpdate)}catch(O){un(l,l.return,O)}}u&64&&J_(l),u&512&&rg(l,l.return);break;case 3:if(Wl(r,l),u&64&&(r=l.updateQueue,r!==null)){if(s=null,l.child!==null)switch(l.child.tag){case 27:case 5:s=l.child.stateNode;break;case 1:s=l.child.stateNode}try{p(r,s)}catch(O){un(l,l.return,O)}}break;case 27:s===null&&u&4&&eA(l);case 26:case 5:Wl(r,l),s===null&&u&4&&$_(l),u&512&&rg(l,l.return);break;case 12:Wl(r,l);break;case 31:Wl(r,l),u&4&&aA(r,l);break;case 13:Wl(r,l),u&4&&oA(r,l),u&64&&(r=l.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(l=yY.bind(null,l),BY(r,l))));break;case 22:if(u=l.memoizedState!==null||Gl,!u){s=s!==null&&s.memoizedState!==null||Ei,x=Gl;var S=Ei;Gl=u,(Ei=s)&&!S?Kl(r,l,(l.subtreeFlags&8772)!==0):Wl(r,l),Gl=x,Ei=S}break;case 30:break;default:Wl(r,l)}}function rA(r){var s=r.alternate;s!==null&&(r.alternate=null,rA(s)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(s=r.stateNode,s!==null&&Ma(s)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var Ln=null,es=!1;function Yl(r,s,l){for(l=l.child;l!==null;)sA(r,s,l),l=l.sibling}function sA(r,s,l){if(Gn&&typeof Gn.onCommitFiberUnmount=="function")try{Gn.onCommitFiberUnmount($s,l)}catch{}switch(l.tag){case 26:Ei||qo(l,s),Yl(r,s,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ei||qo(l,s);var u=Ln,x=es;Su(l.type)&&(Ln=l.stateNode,es=!1),Yl(r,s,l),fg(l.stateNode),Ln=u,es=x;break;case 5:Ei||qo(l,s);case 6:if(u=Ln,x=es,Ln=null,Yl(r,s,l),Ln=u,es=x,Ln!==null)if(es)try{(Ln.nodeType===9?Ln.body:Ln.nodeName==="HTML"?Ln.ownerDocument.body:Ln).removeChild(l.stateNode)}catch(S){un(l,s,S)}else try{Ln.removeChild(l.stateNode)}catch(S){un(l,s,S)}break;case 18:Ln!==null&&(es?(r=Ln,JA(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,l.stateNode),Cf(r)):JA(Ln,l.stateNode));break;case 4:u=Ln,x=es,Ln=l.stateNode.containerInfo,es=!0,Yl(r,s,l),Ln=u,es=x;break;case 0:case 11:case 14:case 15:gu(2,l,s),Ei||gu(4,l,s),Yl(r,s,l);break;case 1:Ei||(qo(l,s),u=l.stateNode,typeof u.componentWillUnmount=="function"&&q_(l,s,u)),Yl(r,s,l);break;case 21:Yl(r,s,l);break;case 22:Ei=(u=Ei)||l.memoizedState!==null,Yl(r,s,l),Ei=u;break;default:Yl(r,s,l)}}function aA(r,s){if(s.memoizedState===null&&(r=s.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{Cf(r)}catch(l){un(s,s.return,l)}}}function oA(r,s){if(s.memoizedState===null&&(r=s.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Cf(r)}catch(l){un(s,s.return,l)}}function uY(r){switch(r.tag){case 31:case 13:case 19:var s=r.stateNode;return s===null&&(s=r.stateNode=new nA),s;case 22:return r=r.stateNode,s=r._retryCache,s===null&&(s=r._retryCache=new nA),s;default:throw Error(i(435,r.tag))}}function Wv(r,s){var l=uY(r);s.forEach(function(u){if(!l.has(u)){l.add(u);var x=bY.bind(null,r,u);u.then(x,x)}})}function ns(r,s){var l=s.deletions;if(l!==null)for(var u=0;u<l.length;u++){var x=l[u],S=r,O=s,H=O;t:for(;H!==null;){switch(H.tag){case 27:if(Su(H.type)){Ln=H.stateNode,es=!1;break t}break;case 5:Ln=H.stateNode,es=!1;break t;case 3:case 4:Ln=H.stateNode.containerInfo,es=!0;break t}H=H.return}if(Ln===null)throw Error(i(160));sA(S,O,x),Ln=null,es=!1,S=x.alternate,S!==null&&(S.return=null),x.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)lA(s,r),s=s.sibling}var to=null;function lA(r,s){var l=r.alternate,u=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:ns(s,r),is(r),u&4&&(gu(3,r,r.return),ig(3,r),gu(5,r,r.return));break;case 1:ns(s,r),is(r),u&512&&(Ei||l===null||qo(l,l.return)),u&64&&Gl&&(r=r.updateQueue,r!==null&&(u=r.callbacks,u!==null&&(l=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=l===null?u:l.concat(u))));break;case 26:var x=to;if(ns(s,r),is(r),u&512&&(Ei||l===null||qo(l,l.return)),u&4){var S=l!==null?l.memoizedState:null;if(u=r.memoizedState,l===null)if(u===null)if(r.stateNode===null){t:{u=r.type,l=r.memoizedProps,x=x.ownerDocument||x;e:switch(u){case"title":S=x.getElementsByTagName("title")[0],(!S||S[Ye]||S[Wn]||S.namespaceURI==="http://www.w3.org/2000/svg"||S.hasAttribute("itemprop"))&&(S=x.createElement(u),x.head.insertBefore(S,x.querySelector("head > title"))),lr(S,u,l),S[Wn]=r,jn(S),u=S;break t;case"link":var O=lN("link","href",x).get(u+(l.href||""));if(O){for(var H=0;H<O.length;H++)if(S=O[H],S.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&S.getAttribute("rel")===(l.rel==null?null:l.rel)&&S.getAttribute("title")===(l.title==null?null:l.title)&&S.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){O.splice(H,1);break e}}S=x.createElement(u),lr(S,u,l),x.head.appendChild(S);break;case"meta":if(O=lN("meta","content",x).get(u+(l.content||""))){for(H=0;H<O.length;H++)if(S=O[H],S.getAttribute("content")===(l.content==null?null:""+l.content)&&S.getAttribute("name")===(l.name==null?null:l.name)&&S.getAttribute("property")===(l.property==null?null:l.property)&&S.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&S.getAttribute("charset")===(l.charSet==null?null:l.charSet)){O.splice(H,1);break e}}S=x.createElement(u),lr(S,u,l),x.head.appendChild(S);break;default:throw Error(i(468,u))}S[Wn]=r,jn(S),u=S}r.stateNode=u}else cN(x,r.type,r.stateNode);else r.stateNode=oN(x,u,r.memoizedProps);else S!==u?(S===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):S.count--,u===null?cN(x,r.type,r.stateNode):oN(x,u,r.memoizedProps)):u===null&&r.stateNode!==null&&y0(r,r.memoizedProps,l.memoizedProps)}break;case 27:ns(s,r),is(r),u&512&&(Ei||l===null||qo(l,l.return)),l!==null&&u&4&&y0(r,r.memoizedProps,l.memoizedProps);break;case 5:if(ns(s,r),is(r),u&512&&(Ei||l===null||qo(l,l.return)),r.flags&32){x=r.stateNode;try{To(x,"")}catch($t){un(r,r.return,$t)}}u&4&&r.stateNode!=null&&(x=r.memoizedProps,y0(r,x,l!==null?l.memoizedProps:x)),u&1024&&(w0=!0);break;case 6:if(ns(s,r),is(r),u&4){if(r.stateNode===null)throw Error(i(162));u=r.memoizedProps,l=r.stateNode;try{l.nodeValue=u}catch($t){un(r,r.return,$t)}}break;case 3:if(ly=null,x=to,to=ay(s.containerInfo),ns(s,r),to=x,is(r),u&4&&l!==null&&l.memoizedState.isDehydrated)try{Cf(s.containerInfo)}catch($t){un(r,r.return,$t)}w0&&(w0=!1,cA(r));break;case 4:u=to,to=ay(r.stateNode.containerInfo),ns(s,r),is(r),to=u;break;case 12:ns(s,r),is(r);break;case 31:ns(s,r),is(r),u&4&&(u=r.updateQueue,u!==null&&(r.updateQueue=null,Wv(r,u)));break;case 13:ns(s,r),is(r),r.child.flags&8192&&r.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Xv=Vt()),u&4&&(u=r.updateQueue,u!==null&&(r.updateQueue=null,Wv(r,u)));break;case 22:x=r.memoizedState!==null;var it=l!==null&&l.memoizedState!==null,pt=Gl,Nt=Ei;if(Gl=pt||x,Ei=Nt||it,ns(s,r),Ei=Nt,Gl=pt,is(r),u&8192)t:for(s=r.stateNode,s._visibility=x?s._visibility&-2:s._visibility|1,x&&(l===null||it||Gl||Ei||Wd(r)),l=null,s=r;;){if(s.tag===5||s.tag===26){if(l===null){it=l=s;try{if(S=it.stateNode,x)O=S.style,typeof O.setProperty=="function"?O.setProperty("display","none","important"):O.display="none";else{H=it.stateNode;var Lt=it.memoizedProps.style,xt=Lt!=null&&Lt.hasOwnProperty("display")?Lt.display:null;H.style.display=xt==null||typeof xt=="boolean"?"":(""+xt).trim()}}catch($t){un(it,it.return,$t)}}}else if(s.tag===6){if(l===null){it=s;try{it.stateNode.nodeValue=x?"":it.memoizedProps}catch($t){un(it,it.return,$t)}}}else if(s.tag===18){if(l===null){it=s;try{var kt=it.stateNode;x?qA(kt,!0):qA(it.stateNode,!1)}catch($t){un(it,it.return,$t)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===r)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)break t;for(;s.sibling===null;){if(s.return===null||s.return===r)break t;l===s&&(l=null),s=s.return}l===s&&(l=null),s.sibling.return=s.return,s=s.sibling}u&4&&(u=r.updateQueue,u!==null&&(l=u.retryQueue,l!==null&&(u.retryQueue=null,Wv(r,l))));break;case 19:ns(s,r),is(r),u&4&&(u=r.updateQueue,u!==null&&(r.updateQueue=null,Wv(r,u)));break;case 30:break;case 21:break;default:ns(s,r),is(r)}}function is(r){var s=r.flags;if(s&2){try{for(var l,u=r.return;u!==null;){if(tA(u)){l=u;break}u=u.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var x=l.stateNode,S=b0(r);Yv(r,S,x);break;case 5:var O=l.stateNode;l.flags&32&&(To(O,""),l.flags&=-33);var H=b0(r);Yv(r,H,O);break;case 3:case 4:var it=l.stateNode.containerInfo,pt=b0(r);x0(r,pt,it);break;default:throw Error(i(161))}}catch(Nt){un(r,r.return,Nt)}r.flags&=-3}s&4096&&(r.flags&=-4097)}function cA(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var s=r;cA(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),r=r.sibling}}function Wl(r,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)iA(r,s.alternate,s),s=s.sibling}function Wd(r){for(r=r.child;r!==null;){var s=r;switch(s.tag){case 0:case 11:case 14:case 15:gu(4,s,s.return),Wd(s);break;case 1:qo(s,s.return);var l=s.stateNode;typeof l.componentWillUnmount=="function"&&q_(s,s.return,l),Wd(s);break;case 27:fg(s.stateNode);case 26:case 5:qo(s,s.return),Wd(s);break;case 22:s.memoizedState===null&&Wd(s);break;case 30:Wd(s);break;default:Wd(s)}r=r.sibling}}function Kl(r,s,l){for(l=l&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var u=s.alternate,x=r,S=s,O=S.flags;switch(S.tag){case 0:case 11:case 15:Kl(x,S,l),ig(4,S);break;case 1:if(Kl(x,S,l),u=S,x=u.stateNode,typeof x.componentDidMount=="function")try{x.componentDidMount()}catch(pt){un(u,u.return,pt)}if(u=S,x=u.updateQueue,x!==null){var H=u.stateNode;try{var it=x.shared.hiddenCallbacks;if(it!==null)for(x.shared.hiddenCallbacks=null,x=0;x<it.length;x++)f(it[x],H)}catch(pt){un(u,u.return,pt)}}l&&O&64&&J_(S),rg(S,S.return);break;case 27:eA(S);case 26:case 5:Kl(x,S,l),l&&u===null&&O&4&&$_(S),rg(S,S.return);break;case 12:Kl(x,S,l);break;case 31:Kl(x,S,l),l&&O&4&&aA(x,S);break;case 13:Kl(x,S,l),l&&O&4&&oA(x,S);break;case 22:S.memoizedState===null&&Kl(x,S,l),rg(S,S.return);break;case 30:break;default:Kl(x,S,l)}s=s.sibling}}function S0(r,s){var l=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),r=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(r=s.memoizedState.cachePool.pool),r!==l&&(r!=null&&r.refCount++,l!=null&&jo(l))}function C0(r,s){r=null,s.alternate!==null&&(r=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==r&&(s.refCount++,r!=null&&jo(r))}function eo(r,s,l,u){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)uA(r,s,l,u),s=s.sibling}function uA(r,s,l,u){var x=s.flags;switch(s.tag){case 0:case 11:case 15:eo(r,s,l,u),x&2048&&ig(9,s);break;case 1:eo(r,s,l,u);break;case 3:eo(r,s,l,u),x&2048&&(r=null,s.alternate!==null&&(r=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==r&&(s.refCount++,r!=null&&jo(r)));break;case 12:if(x&2048){eo(r,s,l,u),r=s.stateNode;try{var S=s.memoizedProps,O=S.id,H=S.onPostCommit;typeof H=="function"&&H(O,s.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(it){un(s,s.return,it)}}else eo(r,s,l,u);break;case 31:eo(r,s,l,u);break;case 13:eo(r,s,l,u);break;case 23:break;case 22:S=s.stateNode,O=s.alternate,s.memoizedState!==null?S._visibility&2?eo(r,s,l,u):sg(r,s):S._visibility&2?eo(r,s,l,u):(S._visibility|=2,hf(r,s,l,u,(s.subtreeFlags&10256)!==0||!1)),x&2048&&S0(O,s);break;case 24:eo(r,s,l,u),x&2048&&C0(s.alternate,s);break;default:eo(r,s,l,u)}}function hf(r,s,l,u,x){for(x=x&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var S=r,O=s,H=l,it=u,pt=O.flags;switch(O.tag){case 0:case 11:case 15:hf(S,O,H,it,x),ig(8,O);break;case 23:break;case 22:var Nt=O.stateNode;O.memoizedState!==null?Nt._visibility&2?hf(S,O,H,it,x):sg(S,O):(Nt._visibility|=2,hf(S,O,H,it,x)),x&&pt&2048&&S0(O.alternate,O);break;case 24:hf(S,O,H,it,x),x&&pt&2048&&C0(O.alternate,O);break;default:hf(S,O,H,it,x)}s=s.sibling}}function sg(r,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var l=r,u=s,x=u.flags;switch(u.tag){case 22:sg(l,u),x&2048&&S0(u.alternate,u);break;case 24:sg(l,u),x&2048&&C0(u.alternate,u);break;default:sg(l,u)}s=s.sibling}}var ag=8192;function ff(r,s,l){if(r.subtreeFlags&ag)for(r=r.child;r!==null;)dA(r,s,l),r=r.sibling}function dA(r,s,l){switch(r.tag){case 26:ff(r,s,l),r.flags&ag&&r.memoizedState!==null&&ZY(l,to,r.memoizedState,r.memoizedProps);break;case 5:ff(r,s,l);break;case 3:case 4:var u=to;to=ay(r.stateNode.containerInfo),ff(r,s,l),to=u;break;case 22:r.memoizedState===null&&(u=r.alternate,u!==null&&u.memoizedState!==null?(u=ag,ag=16777216,ff(r,s,l),ag=u):ff(r,s,l));break;default:ff(r,s,l)}}function hA(r){var s=r.alternate;if(s!==null&&(r=s.child,r!==null)){s.child=null;do s=r.sibling,r.sibling=null,r=s;while(r!==null)}}function og(r){var s=r.deletions;if((r.flags&16)!==0){if(s!==null)for(var l=0;l<s.length;l++){var u=s[l];qi=u,mA(u,r)}hA(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)fA(r),r=r.sibling}function fA(r){switch(r.tag){case 0:case 11:case 15:og(r),r.flags&2048&&gu(9,r,r.return);break;case 3:og(r);break;case 12:og(r);break;case 22:var s=r.stateNode;r.memoizedState!==null&&s._visibility&2&&(r.return===null||r.return.tag!==13)?(s._visibility&=-3,Kv(r)):og(r);break;default:og(r)}}function Kv(r){var s=r.deletions;if((r.flags&16)!==0){if(s!==null)for(var l=0;l<s.length;l++){var u=s[l];qi=u,mA(u,r)}hA(r)}for(r=r.child;r!==null;){switch(s=r,s.tag){case 0:case 11:case 15:gu(8,s,s.return),Kv(s);break;case 22:l=s.stateNode,l._visibility&2&&(l._visibility&=-3,Kv(s));break;default:Kv(s)}r=r.sibling}}function mA(r,s){for(;qi!==null;){var l=qi;switch(l.tag){case 0:case 11:case 15:gu(8,l,s);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var u=l.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:jo(l.memoizedState.cache)}if(u=l.child,u!==null)u.return=l,qi=u;else t:for(l=r;qi!==null;){u=qi;var x=u.sibling,S=u.return;if(rA(u),u===l){qi=null;break t}if(x!==null){x.return=S,qi=x;break t}qi=S}}}var dY={getCacheForType:function(r){var s=Ke(mn),l=s.data.get(r);return l===void 0&&(l=r(),s.data.set(r,l)),l},cacheSignal:function(){return Ke(mn).controller.signal}},hY=typeof WeakMap=="function"?WeakMap:Map,$e=0,wn=null,Ne=null,Oe=0,cn=0,Fs=null,pu=!1,mf=!1,T0=!1,Xl=0,qn=0,vu=0,Kd=0,E0=0,Us=0,gf=0,lg=null,rs=null,M0=!1,Xv=0,gA=0,Qv=1/0,Zv=null,yu=null,Fi=0,bu=null,pf=null,Ql=0,R0=0,k0=null,pA=null,cg=0,_0=null;function Vs(){return($e&2)!==0&&Oe!==0?Oe&-Oe:j.T!==null?P0():pl()}function vA(){if(Us===0)if((Oe&536870912)===0||be){var r=yo;yo<<=1,(yo&3932160)===0&&(yo=262144),Us=r}else Us=536870912;return r=at.current,r!==null&&(r.flags|=32),Us}function ss(r,s,l){(r===wn&&(cn===2||cn===9)||r.cancelPendingCommit!==null)&&(vf(r,0),xu(r,Oe,Us,!1)),gl(r,l),(($e&2)===0||r!==wn)&&(r===wn&&(($e&2)===0&&(Kd|=l),qn===4&&xu(r,Oe,Us,!1)),$o(r))}function yA(r,s,l){if(($e&6)!==0)throw Error(i(327));var u=!l&&(s&127)===0&&(s&r.expiredLanes)===0||fs(r,s),x=u?gY(r,s):N0(r,s,!0),S=u;do{if(x===0){mf&&!u&&xu(r,s,0,!1);break}else{if(l=r.current.alternate,S&&!fY(l)){x=N0(r,s,!1),S=!1;continue}if(x===2){if(S=s,r.errorRecoveryDisabledLanes&S)var O=0;else O=r.pendingLanes&-536870913,O=O!==0?O:O&536870912?536870912:0;if(O!==0){s=O;t:{var H=r;x=lg;var it=H.current.memoizedState.isDehydrated;if(it&&(vf(H,O).flags|=256),O=N0(H,O,!1),O!==2){if(T0&&!it){H.errorRecoveryDisabledLanes|=S,Kd|=S,x=4;break t}S=rs,rs=x,S!==null&&(rs===null?rs=S:rs.push.apply(rs,S))}x=O}if(S=!1,x!==2)continue}}if(x===1){vf(r,0),xu(r,s,0,!0);break}t:{switch(u=r,S=x,S){case 0:case 1:throw Error(i(345));case 4:if((s&4194048)!==s)break;case 6:xu(u,s,Us,!pu);break t;case 2:rs=null;break;case 3:case 5:break;default:throw Error(i(329))}if((s&62914560)===s&&(x=Xv+300-Vt(),10<x)){if(xu(u,s,Us,!pu),Ea(u,0,!0)!==0)break t;Ql=s,u.timeoutHandle=QA(bA.bind(null,u,l,rs,Zv,M0,s,Us,Kd,gf,pu,S,"Throttled",-0,0),x);break t}bA(u,l,rs,Zv,M0,s,Us,Kd,gf,pu,S,null,-0,0)}}break}while(!0);$o(r)}function bA(r,s,l,u,x,S,O,H,it,pt,Nt,Lt,xt,kt){if(r.timeoutHandle=-1,Lt=s.subtreeFlags,Lt&8192||(Lt&16785408)===16785408){Lt={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:xs},dA(s,S,Lt);var $t=(S&62914560)===S?Xv-Vt():(S&4194048)===S?gA-Vt():0;if($t=JY(Lt,$t),$t!==null){Ql=S,r.cancelPendingCommit=$t(RA.bind(null,r,s,S,l,u,x,O,H,it,Nt,Lt,null,xt,kt)),xu(r,S,O,!pt);return}}RA(r,s,S,l,u,x,O,H,it)}function fY(r){for(var s=r;;){var l=s.tag;if((l===0||l===11||l===15)&&s.flags&16384&&(l=s.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var u=0;u<l.length;u++){var x=l[u],S=x.getSnapshot;x=x.value;try{if(!ri(S(),x))return!1}catch{return!1}}if(l=s.child,s.subtreeFlags&16384&&l!==null)l.return=s,s=l;else{if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function xu(r,s,l,u){s&=~E0,s&=~Kd,r.suspendedLanes|=s,r.pingedLanes&=~s,u&&(r.warmLanes|=s),u=r.expirationTimes;for(var x=s;0<x;){var S=31-gi(x),O=1<<S;u[S]=-1,x&=~O}l!==0&&bo(r,l,s)}function Jv(){return($e&6)===0?(ug(0),!1):!0}function A0(){if(Ne!==null){if(cn===0)var r=Ne.return;else r=Ne,qe=_s=null,Za(r),ar=null,Ya=0,r=Ne;for(;r!==null;)Z_(r.alternate,r),r=r.return;Ne=null}}function vf(r,s){var l=r.timeoutHandle;l!==-1&&(r.timeoutHandle=-1,DY(l)),l=r.cancelPendingCommit,l!==null&&(r.cancelPendingCommit=null,l()),Ql=0,A0(),wn=r,Ne=l=Mn(r.current,null),Oe=s,cn=0,Fs=null,pu=!1,mf=fs(r,s),T0=!1,gf=Us=E0=Kd=vu=qn=0,rs=lg=null,M0=!1,(s&8)!==0&&(s|=s&32);var u=r.entangledLanes;if(u!==0)for(r=r.entanglements,u&=s;0<u;){var x=31-gi(u),S=1<<x;s|=r[x],u&=~S}return Xl=s,fe(),l}function xA(r,s){Wt=null,j.H=zd,s===zs||s===Ds?(s=Qi(),cn=3):s===ua?(s=Qi(),cn=4):cn=s===Jm?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,Fs=s,Ne===null&&(qn=1,Pd(r,bi(s,r.current)))}function wA(){var r=at.current;return r===null?!0:(Oe&4194048)===Oe?$===null:(Oe&62914560)===Oe||(Oe&536870912)!==0?r===$:!1}function SA(){var r=j.H;return j.H=zd,r===null?zd:r}function CA(){var r=j.A;return j.A=dY,r}function qv(){qn=4,pu||(Oe&4194048)!==Oe&&at.current!==null||(mf=!0),(vu&134217727)===0&&(Kd&134217727)===0||wn===null||xu(wn,Oe,Us,!1)}function N0(r,s,l){var u=$e;$e|=2;var x=SA(),S=CA();(wn!==r||Oe!==s)&&(Zv=null,vf(r,s)),s=!1;var O=qn;t:do try{if(cn!==0&&Ne!==null){var H=Ne,it=Fs;switch(cn){case 8:A0(),O=6;break t;case 3:case 2:case 9:case 6:at.current===null&&(s=!0);var pt=cn;if(cn=0,Fs=null,yf(r,H,it,pt),l&&mf){O=0;break t}break;default:pt=cn,cn=0,Fs=null,yf(r,H,it,pt)}}mY(),O=qn;break}catch(Nt){xA(r,Nt)}while(!0);return s&&r.shellSuspendCounter++,qe=_s=null,$e=u,j.H=x,j.A=S,Ne===null&&(wn=null,Oe=0,fe()),O}function mY(){for(;Ne!==null;)TA(Ne)}function gY(r,s){var l=$e;$e|=2;var u=SA(),x=CA();wn!==r||Oe!==s?(Zv=null,Qv=Vt()+500,vf(r,s)):mf=fs(r,s);t:do try{if(cn!==0&&Ne!==null){s=Ne;var S=Fs;e:switch(cn){case 1:cn=0,Fs=null,yf(r,s,S,1);break;case 2:case 9:if(Ol(S)){cn=0,Fs=null,EA(s);break}s=function(){cn!==2&&cn!==9||wn!==r||(cn=7),$o(r)},S.then(s,s);break t;case 3:cn=7;break t;case 4:cn=5;break t;case 7:Ol(S)?(cn=0,Fs=null,EA(s)):(cn=0,Fs=null,yf(r,s,S,7));break;case 5:var O=null;switch(Ne.tag){case 26:O=Ne.memoizedState;case 5:case 27:var H=Ne;if(O?uN(O):H.stateNode.complete){cn=0,Fs=null;var it=H.sibling;if(it!==null)Ne=it;else{var pt=H.return;pt!==null?(Ne=pt,$v(pt)):Ne=null}break e}}cn=0,Fs=null,yf(r,s,S,5);break;case 6:cn=0,Fs=null,yf(r,s,S,6);break;case 8:A0(),qn=6;break t;default:throw Error(i(462))}}pY();break}catch(Nt){xA(r,Nt)}while(!0);return qe=_s=null,j.H=u,j.A=x,$e=l,Ne!==null?0:(wn=null,Oe=0,fe(),qn)}function pY(){for(;Ne!==null&&!Nn();)TA(Ne)}function TA(r){var s=X_(r.alternate,r,Xl);r.memoizedProps=r.pendingProps,s===null?$v(r):Ne=s}function EA(r){var s=r,l=s.alternate;switch(s.tag){case 15:case 0:s=Jo(l,s,s.pendingProps,s.type,void 0,Oe);break;case 11:s=Jo(l,s,s.pendingProps,s.type.render,s.ref,Oe);break;case 5:Za(s);default:Z_(l,s),s=Ne=Ve(s,Xl),s=X_(l,s,Xl)}r.memoizedProps=r.pendingProps,s===null?$v(r):Ne=s}function yf(r,s,l,u){qe=_s=null,Za(s),ar=null,Ya=0;var x=s.return;try{if(Id(r,x,s,l,Oe)){qn=1,Pd(r,bi(l,r.current)),Ne=null;return}}catch(S){if(x!==null)throw Ne=x,S;qn=1,Pd(r,bi(l,r.current)),Ne=null;return}s.flags&32768?(be||u===1?r=!0:mf||(Oe&536870912)!==0?r=!1:(pu=r=!0,(u===2||u===9||u===3||u===6)&&(u=at.current,u!==null&&u.tag===13&&(u.flags|=16384))),MA(s,r)):$v(s)}function $v(r){var s=r;do{if((s.flags&32768)!==0){MA(s,pu);return}r=s.return;var l=oY(s.alternate,s,Xl);if(l!==null){Ne=l;return}if(s=s.sibling,s!==null){Ne=s;return}Ne=s=r}while(s!==null);qn===0&&(qn=5)}function MA(r,s){do{var l=lY(r.alternate,r);if(l!==null){l.flags&=32767,Ne=l;return}if(l=r.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!s&&(r=r.sibling,r!==null)){Ne=r;return}Ne=r=l}while(r!==null);qn=6,Ne=null}function RA(r,s,l,u,x,S,O,H,it){r.cancelPendingCommit=null;do ty();while(Fi!==0);if(($e&6)!==0)throw Error(i(327));if(s!==null){if(s===r.current)throw Error(i(177));if(S=s.lanes|s.childLanes,S|=ge,Hh(r,l,S,O,H,it),r===wn&&(Ne=wn=null,Oe=0),pf=s,bu=r,Ql=l,R0=S,k0=x,pA=u,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,xY(Rr,function(){return zA(),null})):(r.callbackNode=null,r.callbackPriority=0),u=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||u){u=j.T,j.T=null,x=J.p,J.p=2,O=$e,$e|=4;try{cY(r,s,l)}finally{$e=O,J.p=x,j.T=u}}Fi=1,kA(),_A(),AA()}}function kA(){if(Fi===1){Fi=0;var r=bu,s=pf,l=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||l){l=j.T,j.T=null;var u=J.p;J.p=2;var x=$e;$e|=4;try{lA(s,r);var S=H0,O=Hc(r.containerInfo),H=S.focusedElem,it=S.selectionRange;if(O!==H&&H&&H.ownerDocument&&la(H.ownerDocument.documentElement,H)){if(it!==null&&Gc(H)){var pt=it.start,Nt=it.end;if(Nt===void 0&&(Nt=pt),"selectionStart"in H)H.selectionStart=pt,H.selectionEnd=Math.min(Nt,H.value.length);else{var Lt=H.ownerDocument||document,xt=Lt&&Lt.defaultView||window;if(xt.getSelection){var kt=xt.getSelection(),$t=H.textContent.length,ce=Math.min(it.start,$t),pn=it.end===void 0?ce:Math.min(it.end,$t);!kt.extend&&ce>pn&&(O=pn,pn=ce,ce=O);var dt=oa(H,ce),st=oa(H,pn);if(dt&&st&&(kt.rangeCount!==1||kt.anchorNode!==dt.node||kt.anchorOffset!==dt.offset||kt.focusNode!==st.node||kt.focusOffset!==st.offset)){var gt=Lt.createRange();gt.setStart(dt.node,dt.offset),kt.removeAllRanges(),ce>pn?(kt.addRange(gt),kt.extend(st.node,st.offset)):(gt.setEnd(st.node,st.offset),kt.addRange(gt))}}}}for(Lt=[],kt=H;kt=kt.parentNode;)kt.nodeType===1&&Lt.push({element:kt,left:kt.scrollLeft,top:kt.scrollTop});for(typeof H.focus=="function"&&H.focus(),H=0;H<Lt.length;H++){var Ot=Lt[H];Ot.element.scrollLeft=Ot.left,Ot.element.scrollTop=Ot.top}}hy=!!V0,H0=V0=null}finally{$e=x,J.p=u,j.T=l}}r.current=s,Fi=2}}function _A(){if(Fi===2){Fi=0;var r=bu,s=pf,l=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||l){l=j.T,j.T=null;var u=J.p;J.p=2;var x=$e;$e|=4;try{iA(r,s.alternate,s)}finally{$e=x,J.p=u,j.T=l}}Fi=3}}function AA(){if(Fi===4||Fi===3){Fi=0,ds();var r=bu,s=pf,l=Ql,u=pA;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?Fi=5:(Fi=0,pf=bu=null,NA(r,r.pendingLanes));var x=r.pendingLanes;if(x===0&&(yu=null),an(l),s=s.stateNode,Gn&&typeof Gn.onCommitFiberRoot=="function")try{Gn.onCommitFiberRoot($s,s,void 0,(s.current.flags&128)===128)}catch{}if(u!==null){s=j.T,x=J.p,J.p=2,j.T=null;try{for(var S=r.onRecoverableError,O=0;O<u.length;O++){var H=u[O];S(H.value,{componentStack:H.stack})}}finally{j.T=s,J.p=x}}(Ql&3)!==0&&ty(),$o(r),x=r.pendingLanes,(l&261930)!==0&&(x&42)!==0?r===_0?cg++:(cg=0,_0=r):cg=0,ug(0)}}function NA(r,s){(r.pooledCacheLanes&=s)===0&&(s=r.pooledCache,s!=null&&(r.pooledCache=null,jo(s)))}function ty(){return kA(),_A(),AA(),zA()}function zA(){if(Fi!==5)return!1;var r=bu,s=R0;R0=0;var l=an(Ql),u=j.T,x=J.p;try{J.p=32>l?32:l,j.T=null,l=k0,k0=null;var S=bu,O=Ql;if(Fi=0,pf=bu=null,Ql=0,($e&6)!==0)throw Error(i(331));var H=$e;if($e|=4,fA(S.current),uA(S,S.current,O,l),$e=H,ug(0,!1),Gn&&typeof Gn.onPostCommitFiberRoot=="function")try{Gn.onPostCommitFiberRoot($s,S)}catch{}return!0}finally{J.p=x,j.T=u,NA(r,s)}}function DA(r,s,l){s=bi(l,s),s=cf(r.stateNode,s,2),r=Si(r,s,2),r!==null&&(gl(r,2),$o(r))}function un(r,s,l){if(r.tag===3)DA(r,r,l);else for(;s!==null;){if(s.tag===3){DA(s,r,l);break}else if(s.tag===1){var u=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(yu===null||!yu.has(u))){r=bi(l,r),l=Ld(2),u=Si(s,l,2),u!==null&&(uf(l,u,s,r),gl(u,2),$o(u));break}}s=s.return}}function z0(r,s,l){var u=r.pingCache;if(u===null){u=r.pingCache=new hY;var x=new Set;u.set(s,x)}else x=u.get(s),x===void 0&&(x=new Set,u.set(s,x));x.has(l)||(T0=!0,x.add(l),r=vY.bind(null,r,s,l),s.then(r,r))}function vY(r,s,l){var u=r.pingCache;u!==null&&u.delete(s),r.pingedLanes|=r.suspendedLanes&l,r.warmLanes&=~l,wn===r&&(Oe&l)===l&&(qn===4||qn===3&&(Oe&62914560)===Oe&&300>Vt()-Xv?($e&2)===0&&vf(r,0):E0|=l,gf===Oe&&(gf=0)),$o(r)}function OA(r,s){s===0&&(s=md()),r=Ue(r,s),r!==null&&(gl(r,s),$o(r))}function yY(r){var s=r.memoizedState,l=0;s!==null&&(l=s.retryLane),OA(r,l)}function bY(r,s){var l=0;switch(r.tag){case 31:case 13:var u=r.stateNode,x=r.memoizedState;x!==null&&(l=x.retryLane);break;case 19:u=r.stateNode;break;case 22:u=r.stateNode._retryCache;break;default:throw Error(i(314))}u!==null&&u.delete(s),OA(r,l)}function xY(r,s){return Mr(r,s)}var ey=null,bf=null,D0=!1,ny=!1,O0=!1,wu=0;function $o(r){r!==bf&&r.next===null&&(bf===null?ey=bf=r:bf=bf.next=r),ny=!0,D0||(D0=!0,SY())}function ug(r,s){if(!O0&&ny){O0=!0;do for(var l=!1,u=ey;u!==null;){if(r!==0){var x=u.pendingLanes;if(x===0)var S=0;else{var O=u.suspendedLanes,H=u.pingedLanes;S=(1<<31-gi(42|r)+1)-1,S&=x&~(O&~H),S=S&201326741?S&201326741|1:S?S|2:0}S!==0&&(l=!0,BA(u,S))}else S=Oe,S=Ea(u,u===wn?S:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(S&3)===0||fs(u,S)||(l=!0,BA(u,S));u=u.next}while(l);O0=!1}}function wY(){PA()}function PA(){ny=D0=!1;var r=0;wu!==0&&zY()&&(r=wu);for(var s=Vt(),l=null,u=ey;u!==null;){var x=u.next,S=LA(u,s);S===0?(u.next=null,l===null?ey=x:l.next=x,x===null&&(bf=l)):(l=u,(r!==0||(S&3)!==0)&&(ny=!0)),u=x}Fi!==0&&Fi!==5||ug(r),wu!==0&&(wu=0)}function LA(r,s){for(var l=r.suspendedLanes,u=r.pingedLanes,x=r.expirationTimes,S=r.pendingLanes&-62914561;0<S;){var O=31-gi(S),H=1<<O,it=x[O];it===-1?((H&l)===0||(H&u)!==0)&&(x[O]=_r(H,s)):it<=s&&(r.expiredLanes|=H),S&=~H}if(s=wn,l=Oe,l=Ea(r,r===s?l:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),u=r.callbackNode,l===0||r===s&&(cn===2||cn===9)||r.cancelPendingCommit!==null)return u!==null&&u!==null&&Hn(u),r.callbackNode=null,r.callbackPriority=0;if((l&3)===0||fs(r,l)){if(s=l&-l,s===r.callbackPriority)return s;switch(u!==null&&Hn(u),an(l)){case 2:case 8:l=Gi;break;case 32:l=Rr;break;case 268435456:l=xc;break;default:l=Rr}return u=IA.bind(null,r),l=Mr(l,u),r.callbackPriority=s,r.callbackNode=l,s}return u!==null&&u!==null&&Hn(u),r.callbackPriority=2,r.callbackNode=null,2}function IA(r,s){if(Fi!==0&&Fi!==5)return r.callbackNode=null,r.callbackPriority=0,null;var l=r.callbackNode;if(ty()&&r.callbackNode!==l)return null;var u=Oe;return u=Ea(r,r===wn?u:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),u===0?null:(yA(r,u,s),LA(r,Vt()),r.callbackNode!=null&&r.callbackNode===l?IA.bind(null,r):null)}function BA(r,s){if(ty())return null;yA(r,s,!0)}function SY(){OY(function(){($e&6)!==0?Mr(de,wY):PA()})}function P0(){if(wu===0){var r=sr;r===0&&(r=zn,zn<<=1,(zn&261888)===0&&(zn=256)),wu=r}return wu}function jA(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:pi(""+r)}function FA(r,s){var l=s.ownerDocument.createElement("input");return l.name=s.name,l.value=s.value,r.id&&l.setAttribute("form",r.id),s.parentNode.insertBefore(l,s),r=new FormData(r),l.parentNode.removeChild(l),r}function CY(r,s,l,u,x){if(s==="submit"&&l&&l.stateNode===x){var S=jA((x[ki]||null).action),O=u.submitter;O&&(s=(s=O[ki]||null)?jA(s.formAction):O.getAttribute("formAction"),s!==null&&(S=s,O=null));var H=new Cl("action","action",null,u,x);r.push({event:H,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(wu!==0){var it=O?FA(x,O):new FormData(x);ou(l,{pending:!0,data:it,method:x.method,action:S},null,it)}}else typeof S=="function"&&(H.preventDefault(),it=O?FA(x,O):new FormData(x),ou(l,{pending:!0,data:it,method:x.method,action:S},S,it))},currentTarget:x}]})}}for(var L0=0;L0<Pt.length;L0++){var I0=Pt[L0],TY=I0.toLowerCase(),EY=I0[0].toUpperCase()+I0.slice(1);_t(TY,"on"+EY)}_t(E,"onAnimationEnd"),_t(A,"onAnimationIteration"),_t(P,"onAnimationStart"),_t("dblclick","onDoubleClick"),_t("focusin","onFocus"),_t("focusout","onBlur"),_t(G,"onTransitionRun"),_t(Q,"onTransitionStart"),_t(wt,"onTransitionCancel"),_t(rt,"onTransitionEnd"),ms("onMouseEnter",["mouseout","mouseover"]),ms("onMouseLeave",["mouseout","mouseover"]),ms("onPointerEnter",["pointerout","pointerover"]),ms("onPointerLeave",["pointerout","pointerover"]),on("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),on("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),on("onBeforeInput",["compositionend","keypress","textInput","paste"]),on("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),on("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),on("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var dg="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),MY=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(dg));function UA(r,s){s=(s&4)!==0;for(var l=0;l<r.length;l++){var u=r[l],x=u.event;u=u.listeners;t:{var S=void 0;if(s)for(var O=u.length-1;0<=O;O--){var H=u[O],it=H.instance,pt=H.currentTarget;if(H=H.listener,it!==S&&x.isPropagationStopped())break t;S=H,x.currentTarget=pt;try{S(x)}catch(Nt){Ft(Nt)}x.currentTarget=null,S=it}else for(O=0;O<u.length;O++){if(H=u[O],it=H.instance,pt=H.currentTarget,H=H.listener,it!==S&&x.isPropagationStopped())break t;S=H,x.currentTarget=pt;try{S(x)}catch(Nt){Ft(Nt)}x.currentTarget=null,S=it}}}}function ze(r,s){var l=s[Cc];l===void 0&&(l=s[Cc]=new Set);var u=r+"__bubble";l.has(u)||(VA(s,r,2,!1),l.add(u))}function B0(r,s,l){var u=0;s&&(u|=4),VA(l,r,u,s)}var iy="_reactListening"+Math.random().toString(36).slice(2);function j0(r){if(!r[iy]){r[iy]=!0,Yh.forEach(function(l){l!=="selectionchange"&&(MY.has(l)||B0(l,!1,r),B0(l,!0,r))});var s=r.nodeType===9?r:r.ownerDocument;s===null||s[iy]||(s[iy]=!0,B0("selectionchange",!1,s))}}function VA(r,s,l,u){switch(vN(s)){case 2:var x=tW;break;case 8:x=eW;break;default:x=t1}l=x.bind(null,s,l,r),x=void 0,!We||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(x=!0),u?x!==void 0?r.addEventListener(s,l,{capture:!0,passive:x}):r.addEventListener(s,l,!0):x!==void 0?r.addEventListener(s,l,{passive:x}):r.addEventListener(s,l,!1)}function F0(r,s,l,u,x){var S=u;if((s&1)===0&&(s&2)===0&&u!==null)t:for(;;){if(u===null)return;var O=u.tag;if(O===3||O===4){var H=u.stateNode.containerInfo;if(H===x)break;if(O===4)for(O=u.return;O!==null;){var it=O.tag;if((it===3||it===4)&&O.stateNode.containerInfo===x)return;O=O.return}for(;H!==null;){if(O=Kn(H),O===null)return;if(it=O.tag,it===5||it===6||it===26||it===27){u=S=O;continue t}H=H.parentNode}}u=u.return}Mc(function(){var pt=S,Nt=Mo(l),Lt=[];t:{var xt=St.get(r);if(xt!==void 0){var kt=Cl,$t=r;switch(r){case"keypress":if(Oa(l)===0)break t;case"keydown":case"keyup":kt=Dm;break;case"focusin":$t="focus",kt=El;break;case"focusout":$t="blur",kt=El;break;case"beforeblur":case"afterblur":kt=El;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":kt=Kh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":kt=_m;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":kt=Do;break;case E:case A:case P:kt=Nm;break;case rt:kt=zc;break;case"scroll":case"scrollend":kt=_o;break;case"wheel":kt=Ia;break;case"copy":case"cut":case"paste":kt=kc;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":kt=Jh;break;case"toggle":case"beforetoggle":kt=Ml}var ce=(s&4)!==0,pn=!ce&&(r==="scroll"||r==="scrollend"),dt=ce?xt!==null?xt+"Capture":null:xt;ce=[];for(var st=pt,gt;st!==null;){var Ot=st;if(gt=Ot.stateNode,Ot=Ot.tag,Ot!==5&&Ot!==26&&Ot!==27||gt===null||dt===null||(Ot=za(st,dt),Ot!=null&&ce.push(hg(st,Ot,gt))),pn)break;st=st.return}0<ce.length&&(xt=new kt(xt,$t,null,l,Nt),Lt.push({event:xt,listeners:ce}))}}if((s&7)===0){t:{if(xt=r==="mouseover"||r==="pointerover",kt=r==="mouseout"||r==="pointerout",xt&&l!==Eo&&($t=l.relatedTarget||l.fromElement)&&(Kn($t)||$t[ta]))break t;if((kt||xt)&&(xt=Nt.window===Nt?Nt:(xt=Nt.ownerDocument)?xt.defaultView||xt.parentWindow:window,kt?($t=l.relatedTarget||l.toElement,kt=pt,$t=$t?Kn($t):null,$t!==null&&(pn=o($t),ce=$t.tag,$t!==pn||ce!==5&&ce!==27&&ce!==6)&&($t=null)):(kt=null,$t=pt),kt!==$t)){if(ce=Kh,Ot="onMouseLeave",dt="onMouseEnter",st="mouse",(r==="pointerout"||r==="pointerover")&&(ce=Jh,Ot="onPointerLeave",dt="onPointerEnter",st="pointer"),pn=kt==null?xt:Ra(kt),gt=$t==null?xt:Ra($t),xt=new ce(Ot,st+"leave",kt,l,Nt),xt.target=pn,xt.relatedTarget=gt,Ot=null,Kn(Nt)===pt&&(ce=new ce(dt,st+"enter",$t,l,Nt),ce.target=gt,ce.relatedTarget=pn,Ot=ce),pn=Ot,kt&&$t)e:{for(ce=RY,dt=kt,st=$t,gt=0,Ot=dt;Ot;Ot=ce(Ot))gt++;Ot=0;for(var le=st;le;le=ce(le))Ot++;for(;0<gt-Ot;)dt=ce(dt),gt--;for(;0<Ot-gt;)st=ce(st),Ot--;for(;gt--;){if(dt===st||st!==null&&dt===st.alternate){ce=dt;break e}dt=ce(dt),st=ce(st)}ce=null}else ce=null;kt!==null&&HA(Lt,xt,kt,ce,!1),$t!==null&&pn!==null&&HA(Lt,pn,$t,ce,!0)}}t:{if(xt=pt?Ra(pt):window,kt=xt.nodeName&&xt.nodeName.toLowerCase(),kt==="select"||kt==="input"&&xt.type==="file")var Qe=kl;else if(Ic(xt))if(Fn)Qe=$h;else{Qe=_l;var ie=Vc}else kt=xt.nodeName,!kt||kt.toLowerCase()!=="input"||xt.type!=="checkbox"&&xt.type!=="radio"?pt&&yd(pt.elementType)&&(Qe=kl):Qe=aa;if(Qe&&(Qe=Qe(r,pt))){Rl(Lt,Qe,l,Nt);break t}ie&&ie(r,xt,pt),r==="focusout"&&pt&&xt.type==="number"&&pt.memoizedProps.value!=null&&xl(xt,"number",xt.value)}switch(ie=pt?Ra(pt):window,r){case"focusin":(Ic(ie)||ie.contentEditable==="true")&&(Qr=ie,Po=pt,Dr=null);break;case"focusout":Dr=Po=Qr=null;break;case"mousedown":Lo=!0;break;case"contextmenu":case"mouseup":case"dragend":Lo=!1,Cd(Lt,l,Nt);break;case"selectionchange":if(Va)break;case"keydown":case"keyup":Cd(Lt,l,Nt)}var Te;if(Xn)t:{switch(r){case"compositionstart":var Pe="onCompositionStart";break t;case"compositionend":Pe="onCompositionEnd";break t;case"compositionupdate":Pe="onCompositionUpdate";break t}Pe=void 0}else Ba?wd(r,l)&&(Pe="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&(Pe="onCompositionStart");Pe&&(Nr&&l.locale!=="ko"&&(Ba||Pe!=="onCompositionStart"?Pe==="onCompositionEnd"&&Ba&&(Te=ko()):(Ar=Nt,Da="value"in Ar?Ar.value:Ar.textContent,Ba=!0)),ie=ry(pt,Pe),0<ie.length&&(Pe=new _c(Pe,r,null,l,Nt),Lt.push({event:Pe,listeners:ie}),Te?Pe.data=Te:(Te=Oc(l),Te!==null&&(Pe.data=Te)))),(Te=tn?Pc(r,l):Lc(r,l))&&(Pe=ry(pt,"onBeforeInput"),0<Pe.length&&(ie=new _c("onBeforeInput","beforeinput",null,l,Nt),Lt.push({event:ie,listeners:Pe}),ie.data=Te)),CY(Lt,r,pt,l,Nt)}UA(Lt,s)})}function hg(r,s,l){return{instance:r,listener:s,currentTarget:l}}function ry(r,s){for(var l=s+"Capture",u=[];r!==null;){var x=r,S=x.stateNode;if(x=x.tag,x!==5&&x!==26&&x!==27||S===null||(x=za(r,l),x!=null&&u.unshift(hg(r,x,S)),x=za(r,s),x!=null&&u.push(hg(r,x,S))),r.tag===3)return u;r=r.return}return[]}function RY(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function HA(r,s,l,u,x){for(var S=s._reactName,O=[];l!==null&&l!==u;){var H=l,it=H.alternate,pt=H.stateNode;if(H=H.tag,it!==null&&it===u)break;H!==5&&H!==26&&H!==27||pt===null||(it=pt,x?(pt=za(l,S),pt!=null&&O.unshift(hg(l,pt,it))):x||(pt=za(l,S),pt!=null&&O.push(hg(l,pt,it)))),l=l.return}O.length!==0&&r.push({event:s,listeners:O})}var kY=/\r\n?/g,_Y=/\u0000|\uFFFD/g;function GA(r){return(typeof r=="string"?r:""+r).replace(kY,`
|
|
49
|
+
`).replace(_Y,"")}function YA(r,s){return s=GA(s),GA(r)===s}function gn(r,s,l,u,x,S){switch(l){case"children":typeof u=="string"?s==="body"||s==="textarea"&&u===""||To(r,u):(typeof u=="number"||typeof u=="bigint")&&s!=="body"&&To(r,""+u);break;case"className":ps(r,"class",u);break;case"tabIndex":ps(r,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":ps(r,l,u);break;case"style":Wh(r,u,S);break;case"data":if(s!=="object"){ps(r,"data",u);break}case"src":case"href":if(u===""&&(s!=="a"||l!=="href")){r.removeAttribute(l);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){r.removeAttribute(l);break}u=pi(""+u),r.setAttribute(l,u);break;case"action":case"formAction":if(typeof u=="function"){r.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof S=="function"&&(l==="formAction"?(s!=="input"&&gn(r,s,"name",x.name,x,null),gn(r,s,"formEncType",x.formEncType,x,null),gn(r,s,"formMethod",x.formMethod,x,null),gn(r,s,"formTarget",x.formTarget,x,null)):(gn(r,s,"encType",x.encType,x,null),gn(r,s,"method",x.method,x,null),gn(r,s,"target",x.target,x,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){r.removeAttribute(l);break}u=pi(""+u),r.setAttribute(l,u);break;case"onClick":u!=null&&(r.onclick=xs);break;case"onScroll":u!=null&&ze("scroll",r);break;case"onScrollEnd":u!=null&&ze("scrollend",r);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(i(61));if(l=u.__html,l!=null){if(x.children!=null)throw Error(i(60));r.innerHTML=l}}break;case"multiple":r.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":r.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){r.removeAttribute("xlink:href");break}l=pi(""+u),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?r.setAttribute(l,""+u):r.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?r.setAttribute(l,""):r.removeAttribute(l);break;case"capture":case"download":u===!0?r.setAttribute(l,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?r.setAttribute(l,u):r.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?r.setAttribute(l,u):r.removeAttribute(l);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?r.removeAttribute(l):r.setAttribute(l,u);break;case"popover":ze("beforetoggle",r),ze("toggle",r),Ec(r,"popover",u);break;case"xlinkActuate":dr(r,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":dr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":dr(r,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":dr(r,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":dr(r,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":dr(r,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":dr(r,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":dr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":dr(r,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Ec(r,"is",u);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Rm.get(l)||l,Ec(r,l,u))}}function U0(r,s,l,u,x,S){switch(l){case"style":Wh(r,u,S);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(i(61));if(l=u.__html,l!=null){if(x.children!=null)throw Error(i(60));r.innerHTML=l}}break;case"children":typeof u=="string"?To(r,u):(typeof u=="number"||typeof u=="bigint")&&To(r,""+u);break;case"onScroll":u!=null&&ze("scroll",r);break;case"onScrollEnd":u!=null&&ze("scrollend",r);break;case"onClick":u!=null&&(r.onclick=xs);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!So.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(x=l.endsWith("Capture"),s=l.slice(2,x?l.length-7:void 0),S=r[ki]||null,S=S!=null?S[l]:null,typeof S=="function"&&r.removeEventListener(s,S,x),typeof u=="function")){typeof S!="function"&&S!==null&&(l in r?r[l]=null:r.hasAttribute(l)&&r.removeAttribute(l)),r.addEventListener(s,u,x);break t}l in r?r[l]=u:u===!0?r.setAttribute(l,""):Ec(r,l,u)}}}function lr(r,s,l){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ze("error",r),ze("load",r);var u=!1,x=!1,S;for(S in l)if(l.hasOwnProperty(S)){var O=l[S];if(O!=null)switch(S){case"src":u=!0;break;case"srcSet":x=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,s));default:gn(r,s,S,O,l,null)}}x&&gn(r,s,"srcSet",l.srcSet,l,null),u&&gn(r,s,"src",l.src,l,null);return;case"input":ze("invalid",r);var H=S=O=x=null,it=null,pt=null;for(u in l)if(l.hasOwnProperty(u)){var Nt=l[u];if(Nt!=null)switch(u){case"name":x=Nt;break;case"type":O=Nt;break;case"checked":it=Nt;break;case"defaultChecked":pt=Nt;break;case"value":S=Nt;break;case"defaultValue":H=Nt;break;case"children":case"dangerouslySetInnerHTML":if(Nt!=null)throw Error(i(137,s));break;default:gn(r,s,u,Nt,l,null)}}ys(r,S,H,it,pt,O,x,!1);return;case"select":ze("invalid",r),u=O=S=null;for(x in l)if(l.hasOwnProperty(x)&&(H=l[x],H!=null))switch(x){case"value":S=H;break;case"defaultValue":O=H;break;case"multiple":u=H;default:gn(r,s,x,H,l,null)}s=S,l=O,r.multiple=!!u,s!=null?ea(r,!!u,s,!1):l!=null&&ea(r,!!u,l,!0);return;case"textarea":ze("invalid",r),S=x=u=null;for(O in l)if(l.hasOwnProperty(O)&&(H=l[O],H!=null))switch(O){case"value":u=H;break;case"defaultValue":x=H;break;case"children":S=H;break;case"dangerouslySetInnerHTML":if(H!=null)throw Error(i(91));break;default:gn(r,s,O,H,l,null)}vd(r,u,x,S);return;case"option":for(it in l)if(l.hasOwnProperty(it)&&(u=l[it],u!=null))switch(it){case"selected":r.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:gn(r,s,it,u,l,null)}return;case"dialog":ze("beforetoggle",r),ze("toggle",r),ze("cancel",r),ze("close",r);break;case"iframe":case"object":ze("load",r);break;case"video":case"audio":for(u=0;u<dg.length;u++)ze(dg[u],r);break;case"image":ze("error",r),ze("load",r);break;case"details":ze("toggle",r);break;case"embed":case"source":case"link":ze("error",r),ze("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(pt in l)if(l.hasOwnProperty(pt)&&(u=l[pt],u!=null))switch(pt){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,s));default:gn(r,s,pt,u,l,null)}return;default:if(yd(s)){for(Nt in l)l.hasOwnProperty(Nt)&&(u=l[Nt],u!==void 0&&U0(r,s,Nt,u,l,void 0));return}}for(H in l)l.hasOwnProperty(H)&&(u=l[H],u!=null&&gn(r,s,H,u,l,null))}function AY(r,s,l,u){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var x=null,S=null,O=null,H=null,it=null,pt=null,Nt=null;for(kt in l){var Lt=l[kt];if(l.hasOwnProperty(kt)&&Lt!=null)switch(kt){case"checked":break;case"value":break;case"defaultValue":it=Lt;default:u.hasOwnProperty(kt)||gn(r,s,kt,null,u,Lt)}}for(var xt in u){var kt=u[xt];if(Lt=l[xt],u.hasOwnProperty(xt)&&(kt!=null||Lt!=null))switch(xt){case"type":S=kt;break;case"name":x=kt;break;case"checked":pt=kt;break;case"defaultChecked":Nt=kt;break;case"value":O=kt;break;case"defaultValue":H=kt;break;case"children":case"dangerouslySetInnerHTML":if(kt!=null)throw Error(i(137,s));break;default:kt!==Lt&&gn(r,s,xt,kt,u,Lt)}}bl(r,O,H,it,pt,Nt,S,x);return;case"select":kt=O=H=xt=null;for(S in l)if(it=l[S],l.hasOwnProperty(S)&&it!=null)switch(S){case"value":break;case"multiple":kt=it;default:u.hasOwnProperty(S)||gn(r,s,S,null,u,it)}for(x in u)if(S=u[x],it=l[x],u.hasOwnProperty(x)&&(S!=null||it!=null))switch(x){case"value":xt=S;break;case"defaultValue":H=S;break;case"multiple":O=S;default:S!==it&&gn(r,s,x,S,u,it)}s=H,l=O,u=kt,xt!=null?ea(r,!!l,xt,!1):!!u!=!!l&&(s!=null?ea(r,!!l,s,!0):ea(r,!!l,l?[]:"",!1));return;case"textarea":kt=xt=null;for(H in l)if(x=l[H],l.hasOwnProperty(H)&&x!=null&&!u.hasOwnProperty(H))switch(H){case"value":break;case"children":break;default:gn(r,s,H,null,u,x)}for(O in u)if(x=u[O],S=l[O],u.hasOwnProperty(O)&&(x!=null||S!=null))switch(O){case"value":xt=x;break;case"defaultValue":kt=x;break;case"children":break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(i(91));break;default:x!==S&&gn(r,s,O,x,u,S)}bs(r,xt,kt);return;case"option":for(var $t in l)if(xt=l[$t],l.hasOwnProperty($t)&&xt!=null&&!u.hasOwnProperty($t))switch($t){case"selected":r.selected=!1;break;default:gn(r,s,$t,null,u,xt)}for(it in u)if(xt=u[it],kt=l[it],u.hasOwnProperty(it)&&xt!==kt&&(xt!=null||kt!=null))switch(it){case"selected":r.selected=xt&&typeof xt!="function"&&typeof xt!="symbol";break;default:gn(r,s,it,xt,u,kt)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ce in l)xt=l[ce],l.hasOwnProperty(ce)&&xt!=null&&!u.hasOwnProperty(ce)&&gn(r,s,ce,null,u,xt);for(pt in u)if(xt=u[pt],kt=l[pt],u.hasOwnProperty(pt)&&xt!==kt&&(xt!=null||kt!=null))switch(pt){case"children":case"dangerouslySetInnerHTML":if(xt!=null)throw Error(i(137,s));break;default:gn(r,s,pt,xt,u,kt)}return;default:if(yd(s)){for(var pn in l)xt=l[pn],l.hasOwnProperty(pn)&&xt!==void 0&&!u.hasOwnProperty(pn)&&U0(r,s,pn,void 0,u,xt);for(Nt in u)xt=u[Nt],kt=l[Nt],!u.hasOwnProperty(Nt)||xt===kt||xt===void 0&&kt===void 0||U0(r,s,Nt,xt,u,kt);return}}for(var dt in l)xt=l[dt],l.hasOwnProperty(dt)&&xt!=null&&!u.hasOwnProperty(dt)&&gn(r,s,dt,null,u,xt);for(Lt in u)xt=u[Lt],kt=l[Lt],!u.hasOwnProperty(Lt)||xt===kt||xt==null&&kt==null||gn(r,s,Lt,xt,u,kt)}function WA(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function NY(){if(typeof performance.getEntriesByType=="function"){for(var r=0,s=0,l=performance.getEntriesByType("resource"),u=0;u<l.length;u++){var x=l[u],S=x.transferSize,O=x.initiatorType,H=x.duration;if(S&&H&&WA(O)){for(O=0,H=x.responseEnd,u+=1;u<l.length;u++){var it=l[u],pt=it.startTime;if(pt>H)break;var Nt=it.transferSize,Lt=it.initiatorType;Nt&&WA(Lt)&&(it=it.responseEnd,O+=Nt*(it<H?1:(H-pt)/(it-pt)))}if(--u,s+=8*(S+O)/(x.duration/1e3),r++,10<r)break}}if(0<r)return s/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var V0=null,H0=null;function sy(r){return r.nodeType===9?r:r.ownerDocument}function KA(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function XA(r,s){if(r===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&s==="foreignObject"?0:r}function G0(r,s){return r==="textarea"||r==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Y0=null;function zY(){var r=window.event;return r&&r.type==="popstate"?r===Y0?!1:(Y0=r,!0):(Y0=null,!1)}var QA=typeof setTimeout=="function"?setTimeout:void 0,DY=typeof clearTimeout=="function"?clearTimeout:void 0,ZA=typeof Promise=="function"?Promise:void 0,OY=typeof queueMicrotask=="function"?queueMicrotask:typeof ZA<"u"?function(r){return ZA.resolve(null).then(r).catch(PY)}:QA;function PY(r){setTimeout(function(){throw r})}function Su(r){return r==="head"}function JA(r,s){var l=s,u=0;do{var x=l.nextSibling;if(r.removeChild(l),x&&x.nodeType===8)if(l=x.data,l==="/$"||l==="/&"){if(u===0){r.removeChild(x),Cf(s);return}u--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")u++;else if(l==="html")fg(r.ownerDocument.documentElement);else if(l==="head"){l=r.ownerDocument.head,fg(l);for(var S=l.firstChild;S;){var O=S.nextSibling,H=S.nodeName;S[Ye]||H==="SCRIPT"||H==="STYLE"||H==="LINK"&&S.rel.toLowerCase()==="stylesheet"||l.removeChild(S),S=O}}else l==="body"&&fg(r.ownerDocument.body);l=x}while(l);Cf(s)}function qA(r,s){var l=r;r=0;do{var u=l.nextSibling;if(l.nodeType===1?s?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(s?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),u&&u.nodeType===8)if(l=u.data,l==="/$"){if(r===0)break;r--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||r++;l=u}while(l)}function W0(r){var s=r.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var l=s;switch(s=s.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":W0(l),Ma(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}r.removeChild(l)}}function LY(r,s,l,u){for(;r.nodeType===1;){var x=l;if(r.nodeName.toLowerCase()!==s.toLowerCase()){if(!u&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(u){if(!r[Ye])switch(s){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(S=r.getAttribute("rel"),S==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(S!==x.rel||r.getAttribute("href")!==(x.href==null||x.href===""?null:x.href)||r.getAttribute("crossorigin")!==(x.crossOrigin==null?null:x.crossOrigin)||r.getAttribute("title")!==(x.title==null?null:x.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(S=r.getAttribute("src"),(S!==(x.src==null?null:x.src)||r.getAttribute("type")!==(x.type==null?null:x.type)||r.getAttribute("crossorigin")!==(x.crossOrigin==null?null:x.crossOrigin))&&S&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(s==="input"&&r.type==="hidden"){var S=x.name==null?null:""+x.name;if(x.type==="hidden"&&r.getAttribute("name")===S)return r}else return r;if(r=fa(r.nextSibling),r===null)break}return null}function IY(r,s,l){if(s==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!l||(r=fa(r.nextSibling),r===null))return null;return r}function $A(r,s){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!s||(r=fa(r.nextSibling),r===null))return null;return r}function K0(r){return r.data==="$?"||r.data==="$~"}function X0(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function BY(r,s){var l=r.ownerDocument;if(r.data==="$~")r._reactRetry=s;else if(r.data!=="$?"||l.readyState!=="loading")s();else{var u=function(){s(),l.removeEventListener("DOMContentLoaded",u)};l.addEventListener("DOMContentLoaded",u),r._reactRetry=u}}function fa(r){for(;r!=null;r=r.nextSibling){var s=r.nodeType;if(s===1||s===3)break;if(s===8){if(s=r.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return r}var Q0=null;function tN(r){r=r.nextSibling;for(var s=0;r;){if(r.nodeType===8){var l=r.data;if(l==="/$"||l==="/&"){if(s===0)return fa(r.nextSibling);s--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||s++}r=r.nextSibling}return null}function eN(r){r=r.previousSibling;for(var s=0;r;){if(r.nodeType===8){var l=r.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(s===0)return r;s--}else l!=="/$"&&l!=="/&"||s++}r=r.previousSibling}return null}function nN(r,s,l){switch(s=sy(l),r){case"html":if(r=s.documentElement,!r)throw Error(i(452));return r;case"head":if(r=s.head,!r)throw Error(i(453));return r;case"body":if(r=s.body,!r)throw Error(i(454));return r;default:throw Error(i(451))}}function fg(r){for(var s=r.attributes;s.length;)r.removeAttributeNode(s[0]);Ma(r)}var ma=new Map,iN=new Set;function ay(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var Zl=J.d;J.d={f:jY,r:FY,D:UY,C:VY,L:HY,m:GY,X:WY,S:YY,M:KY};function jY(){var r=Zl.f(),s=Jv();return r||s}function FY(r){var s=wo(r);s!==null&&s.tag===5&&s.type==="form"?rf(s):Zl.r(r)}var xf=typeof document>"u"?null:document;function rN(r,s,l){var u=xf;if(u&&typeof s=="string"&&s){var x=Ai(s);x='link[rel="'+r+'"][href="'+x+'"]',typeof l=="string"&&(x+='[crossorigin="'+l+'"]'),iN.has(x)||(iN.add(x),r={rel:r,crossOrigin:l,href:s},u.querySelector(x)===null&&(s=u.createElement("link"),lr(s,"link",r),jn(s),u.head.appendChild(s)))}}function UY(r){Zl.D(r),rN("dns-prefetch",r,null)}function VY(r,s){Zl.C(r,s),rN("preconnect",r,s)}function HY(r,s,l){Zl.L(r,s,l);var u=xf;if(u&&r&&s){var x='link[rel="preload"][as="'+Ai(s)+'"]';s==="image"&&l&&l.imageSrcSet?(x+='[imagesrcset="'+Ai(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(x+='[imagesizes="'+Ai(l.imageSizes)+'"]')):x+='[href="'+Ai(r)+'"]';var S=x;switch(s){case"style":S=wf(r);break;case"script":S=Sf(r)}ma.has(S)||(r=y({rel:"preload",href:s==="image"&&l&&l.imageSrcSet?void 0:r,as:s},l),ma.set(S,r),u.querySelector(x)!==null||s==="style"&&u.querySelector(mg(S))||s==="script"&&u.querySelector(gg(S))||(s=u.createElement("link"),lr(s,"link",r),jn(s),u.head.appendChild(s)))}}function GY(r,s){Zl.m(r,s);var l=xf;if(l&&r){var u=s&&typeof s.as=="string"?s.as:"script",x='link[rel="modulepreload"][as="'+Ai(u)+'"][href="'+Ai(r)+'"]',S=x;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":S=Sf(r)}if(!ma.has(S)&&(r=y({rel:"modulepreload",href:r},s),ma.set(S,r),l.querySelector(x)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(gg(S)))return}u=l.createElement("link"),lr(u,"link",r),jn(u),l.head.appendChild(u)}}}function YY(r,s,l){Zl.S(r,s,l);var u=xf;if(u&&r){var x=ka(u).hoistableStyles,S=wf(r);s=s||"default";var O=x.get(S);if(!O){var H={loading:0,preload:null};if(O=u.querySelector(mg(S)))H.loading=5;else{r=y({rel:"stylesheet",href:r,"data-precedence":s},l),(l=ma.get(S))&&Z0(r,l);var it=O=u.createElement("link");jn(it),lr(it,"link",r),it._p=new Promise(function(pt,Nt){it.onload=pt,it.onerror=Nt}),it.addEventListener("load",function(){H.loading|=1}),it.addEventListener("error",function(){H.loading|=2}),H.loading|=4,oy(O,s,u)}O={type:"stylesheet",instance:O,count:1,state:H},x.set(S,O)}}}function WY(r,s){Zl.X(r,s);var l=xf;if(l&&r){var u=ka(l).hoistableScripts,x=Sf(r),S=u.get(x);S||(S=l.querySelector(gg(x)),S||(r=y({src:r,async:!0},s),(s=ma.get(x))&&J0(r,s),S=l.createElement("script"),jn(S),lr(S,"link",r),l.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},u.set(x,S))}}function KY(r,s){Zl.M(r,s);var l=xf;if(l&&r){var u=ka(l).hoistableScripts,x=Sf(r),S=u.get(x);S||(S=l.querySelector(gg(x)),S||(r=y({src:r,async:!0,type:"module"},s),(s=ma.get(x))&&J0(r,s),S=l.createElement("script"),jn(S),lr(S,"link",r),l.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},u.set(x,S))}}function sN(r,s,l,u){var x=(x=bt.current)?ay(x):null;if(!x)throw Error(i(446));switch(r){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(s=wf(l.href),l=ka(x).hoistableStyles,u=l.get(s),u||(u={type:"style",instance:null,count:0,state:null},l.set(s,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){r=wf(l.href);var S=ka(x).hoistableStyles,O=S.get(r);if(O||(x=x.ownerDocument||x,O={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},S.set(r,O),(S=x.querySelector(mg(r)))&&!S._p&&(O.instance=S,O.state.loading=5),ma.has(r)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},ma.set(r,l),S||XY(x,r,l,O.state))),s&&u===null)throw Error(i(528,""));return O}if(s&&u!==null)throw Error(i(529,""));return null;case"script":return s=l.async,l=l.src,typeof l=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=Sf(l),l=ka(x).hoistableScripts,u=l.get(s),u||(u={type:"script",instance:null,count:0,state:null},l.set(s,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,r))}}function wf(r){return'href="'+Ai(r)+'"'}function mg(r){return'link[rel="stylesheet"]['+r+"]"}function aN(r){return y({},r,{"data-precedence":r.precedence,precedence:null})}function XY(r,s,l,u){r.querySelector('link[rel="preload"][as="style"]['+s+"]")?u.loading=1:(s=r.createElement("link"),u.preload=s,s.addEventListener("load",function(){return u.loading|=1}),s.addEventListener("error",function(){return u.loading|=2}),lr(s,"link",l),jn(s),r.head.appendChild(s))}function Sf(r){return'[src="'+Ai(r)+'"]'}function gg(r){return"script[async]"+r}function oN(r,s,l){if(s.count++,s.instance===null)switch(s.type){case"style":var u=r.querySelector('style[data-href~="'+Ai(l.href)+'"]');if(u)return s.instance=u,jn(u),u;var x=y({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return u=(r.ownerDocument||r).createElement("style"),jn(u),lr(u,"style",x),oy(u,l.precedence,r),s.instance=u;case"stylesheet":x=wf(l.href);var S=r.querySelector(mg(x));if(S)return s.state.loading|=4,s.instance=S,jn(S),S;u=aN(l),(x=ma.get(x))&&Z0(u,x),S=(r.ownerDocument||r).createElement("link"),jn(S);var O=S;return O._p=new Promise(function(H,it){O.onload=H,O.onerror=it}),lr(S,"link",u),s.state.loading|=4,oy(S,l.precedence,r),s.instance=S;case"script":return S=Sf(l.src),(x=r.querySelector(gg(S)))?(s.instance=x,jn(x),x):(u=l,(x=ma.get(S))&&(u=y({},l),J0(u,x)),r=r.ownerDocument||r,x=r.createElement("script"),jn(x),lr(x,"link",u),r.head.appendChild(x),s.instance=x);case"void":return null;default:throw Error(i(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(u=s.instance,s.state.loading|=4,oy(u,l.precedence,r));return s.instance}function oy(r,s,l){for(var u=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),x=u.length?u[u.length-1]:null,S=x,O=0;O<u.length;O++){var H=u[O];if(H.dataset.precedence===s)S=H;else if(S!==x)break}S?S.parentNode.insertBefore(r,S.nextSibling):(s=l.nodeType===9?l.head:l,s.insertBefore(r,s.firstChild))}function Z0(r,s){r.crossOrigin==null&&(r.crossOrigin=s.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=s.referrerPolicy),r.title==null&&(r.title=s.title)}function J0(r,s){r.crossOrigin==null&&(r.crossOrigin=s.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=s.referrerPolicy),r.integrity==null&&(r.integrity=s.integrity)}var ly=null;function lN(r,s,l){if(ly===null){var u=new Map,x=ly=new Map;x.set(l,u)}else x=ly,u=x.get(l),u||(u=new Map,x.set(l,u));if(u.has(r))return u;for(u.set(r,null),l=l.getElementsByTagName(r),x=0;x<l.length;x++){var S=l[x];if(!(S[Ye]||S[Wn]||r==="link"&&S.getAttribute("rel")==="stylesheet")&&S.namespaceURI!=="http://www.w3.org/2000/svg"){var O=S.getAttribute(s)||"";O=r+O;var H=u.get(O);H?H.push(S):u.set(O,[S])}}return u}function cN(r,s,l){r=r.ownerDocument||r,r.head.insertBefore(l,s==="title"?r.querySelector("head > title"):null)}function QY(r,s,l){if(l===1||s.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return r=s.disabled,typeof s.precedence=="string"&&r==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function uN(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function ZY(r,s,l,u){if(l.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var x=wf(u.href),S=s.querySelector(mg(x));if(S){s=S._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(r.count++,r=cy.bind(r),s.then(r,r)),l.state.loading|=4,l.instance=S,jn(S);return}S=s.ownerDocument||s,u=aN(u),(x=ma.get(x))&&Z0(u,x),S=S.createElement("link"),jn(S);var O=S;O._p=new Promise(function(H,it){O.onload=H,O.onerror=it}),lr(S,"link",u),l.instance=S}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(l,s),(s=l.state.preload)&&(l.state.loading&3)===0&&(r.count++,l=cy.bind(r),s.addEventListener("load",l),s.addEventListener("error",l))}}var q0=0;function JY(r,s){return r.stylesheets&&r.count===0&&dy(r,r.stylesheets),0<r.count||0<r.imgCount?function(l){var u=setTimeout(function(){if(r.stylesheets&&dy(r,r.stylesheets),r.unsuspend){var S=r.unsuspend;r.unsuspend=null,S()}},6e4+s);0<r.imgBytes&&q0===0&&(q0=62500*NY());var x=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&dy(r,r.stylesheets),r.unsuspend)){var S=r.unsuspend;r.unsuspend=null,S()}},(r.imgBytes>q0?50:800)+s);return r.unsuspend=l,function(){r.unsuspend=null,clearTimeout(u),clearTimeout(x)}}:null}function cy(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)dy(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var uy=null;function dy(r,s){r.stylesheets=null,r.unsuspend!==null&&(r.count++,uy=new Map,s.forEach(qY,r),uy=null,cy.call(r))}function qY(r,s){if(!(s.state.loading&4)){var l=uy.get(r);if(l)var u=l.get(null);else{l=new Map,uy.set(r,l);for(var x=r.querySelectorAll("link[data-precedence],style[data-precedence]"),S=0;S<x.length;S++){var O=x[S];(O.nodeName==="LINK"||O.getAttribute("media")!=="not all")&&(l.set(O.dataset.precedence,O),u=O)}u&&l.set(null,u)}x=s.instance,O=x.getAttribute("data-precedence"),S=l.get(O)||u,S===u&&l.set(null,x),l.set(O,x),this.count++,u=cy.bind(this),x.addEventListener("load",u),x.addEventListener("error",u),S?S.parentNode.insertBefore(x,S.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(x,r.firstChild)),s.state.loading|=4}}var pg={$$typeof:F,Provider:null,Consumer:null,_currentValue:ht,_currentValue2:ht,_threadCount:0};function $Y(r,s,l,u,x,S,O,H,it){this.tag=1,this.containerInfo=r,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Sc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Sc(0),this.hiddenUpdates=Sc(null),this.identifierPrefix=u,this.onUncaughtError=x,this.onCaughtError=S,this.onRecoverableError=O,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=it,this.incompleteTransitions=new Map}function dN(r,s,l,u,x,S,O,H,it,pt,Nt,Lt){return r=new $Y(r,s,l,O,it,pt,Nt,Lt,H),s=1,S===!0&&(s|=24),S=en(3,null,null,s),r.current=S,S.stateNode=r,s=Qc(),s.refCount++,r.pooledCache=s,s.refCount++,S.memoizedState={element:u,isDehydrated:l,cache:s},jr(S),r}function hN(r){return r?(r=Me,r):Me}function fN(r,s,l,u,x,S){x=hN(x),u.context===null?u.context=x:u.pendingContext=x,u=Zi(s),u.payload={element:l},S=S===void 0?null:S,S!==null&&(u.callback=S),l=Si(r,u,s),l!==null&&(ss(l,r,s),vr(l,r,s))}function mN(r,s){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<s?l:s}}function $0(r,s){mN(r,s),(r=r.alternate)&&mN(r,s)}function gN(r){if(r.tag===13||r.tag===31){var s=Ue(r,67108864);s!==null&&ss(s,r,67108864),$0(r,67108864)}}function pN(r){if(r.tag===13||r.tag===31){var s=Vs();s=Yi(s);var l=Ue(r,s);l!==null&&ss(l,r,s),$0(r,s)}}var hy=!0;function tW(r,s,l,u){var x=j.T;j.T=null;var S=J.p;try{J.p=2,t1(r,s,l,u)}finally{J.p=S,j.T=x}}function eW(r,s,l,u){var x=j.T;j.T=null;var S=J.p;try{J.p=8,t1(r,s,l,u)}finally{J.p=S,j.T=x}}function t1(r,s,l,u){if(hy){var x=e1(u);if(x===null)F0(r,s,u,fy,l),yN(r,u);else if(iW(x,r,s,l,u))u.stopPropagation();else if(yN(r,u),s&4&&-1<nW.indexOf(r)){for(;x!==null;){var S=wo(x);if(S!==null)switch(S.tag){case 3:if(S=S.stateNode,S.current.memoizedState.isDehydrated){var O=hs(S.pendingLanes);if(O!==0){var H=S;for(H.pendingLanes|=2,H.entangledLanes|=2;O;){var it=1<<31-gi(O);H.entanglements[1]|=it,O&=~it}$o(S),($e&6)===0&&(Qv=Vt()+500,ug(0))}}break;case 31:case 13:H=Ue(S,2),H!==null&&ss(H,S,2),Jv(),$0(S,2)}if(S=e1(u),S===null&&F0(r,s,u,fy,l),S===x)break;x=S}x!==null&&u.stopPropagation()}else F0(r,s,u,null,l)}}function e1(r){return r=Mo(r),n1(r)}var fy=null;function n1(r){if(fy=null,r=Kn(r),r!==null){var s=o(r);if(s===null)r=null;else{var l=s.tag;if(l===13){if(r=c(s),r!==null)return r;r=null}else if(l===31){if(r=d(s),r!==null)return r;r=null}else if(l===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;r=null}else s!==r&&(r=null)}}return fy=r,null}function vN(r){switch(r){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Xt()){case de:return 2;case Gi:return 8;case Rr:case Bn:return 32;case xc:return 268435456;default:return 32}default:return 32}}var i1=!1,Cu=null,Tu=null,Eu=null,vg=new Map,yg=new Map,Mu=[],nW="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function yN(r,s){switch(r){case"focusin":case"focusout":Cu=null;break;case"dragenter":case"dragleave":Tu=null;break;case"mouseover":case"mouseout":Eu=null;break;case"pointerover":case"pointerout":vg.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":yg.delete(s.pointerId)}}function bg(r,s,l,u,x,S){return r===null||r.nativeEvent!==S?(r={blockedOn:s,domEventName:l,eventSystemFlags:u,nativeEvent:S,targetContainers:[x]},s!==null&&(s=wo(s),s!==null&&gN(s)),r):(r.eventSystemFlags|=u,s=r.targetContainers,x!==null&&s.indexOf(x)===-1&&s.push(x),r)}function iW(r,s,l,u,x){switch(s){case"focusin":return Cu=bg(Cu,r,s,l,u,x),!0;case"dragenter":return Tu=bg(Tu,r,s,l,u,x),!0;case"mouseover":return Eu=bg(Eu,r,s,l,u,x),!0;case"pointerover":var S=x.pointerId;return vg.set(S,bg(vg.get(S)||null,r,s,l,u,x)),!0;case"gotpointercapture":return S=x.pointerId,yg.set(S,bg(yg.get(S)||null,r,s,l,u,x)),!0}return!1}function bN(r){var s=Kn(r.target);if(s!==null){var l=o(s);if(l!==null){if(s=l.tag,s===13){if(s=c(l),s!==null){r.blockedOn=s,Wi(r.priority,function(){pN(l)});return}}else if(s===31){if(s=d(l),s!==null){r.blockedOn=s,Wi(r.priority,function(){pN(l)});return}}else if(s===3&&l.stateNode.current.memoizedState.isDehydrated){r.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}r.blockedOn=null}function my(r){if(r.blockedOn!==null)return!1;for(var s=r.targetContainers;0<s.length;){var l=e1(r.nativeEvent);if(l===null){l=r.nativeEvent;var u=new l.constructor(l.type,l);Eo=u,l.target.dispatchEvent(u),Eo=null}else return s=wo(l),s!==null&&gN(s),r.blockedOn=l,!1;s.shift()}return!0}function xN(r,s,l){my(r)&&l.delete(s)}function rW(){i1=!1,Cu!==null&&my(Cu)&&(Cu=null),Tu!==null&&my(Tu)&&(Tu=null),Eu!==null&&my(Eu)&&(Eu=null),vg.forEach(xN),yg.forEach(xN)}function gy(r,s){r.blockedOn===s&&(r.blockedOn=null,i1||(i1=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,rW)))}var py=null;function wN(r){py!==r&&(py=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){py===r&&(py=null);for(var s=0;s<r.length;s+=3){var l=r[s],u=r[s+1],x=r[s+2];if(typeof u!="function"){if(n1(u||l)===null)continue;break}var S=wo(l);S!==null&&(r.splice(s,3),s-=3,ou(S,{pending:!0,data:x,method:l.method,action:u},u,x))}}))}function Cf(r){function s(it){return gy(it,r)}Cu!==null&&gy(Cu,r),Tu!==null&&gy(Tu,r),Eu!==null&&gy(Eu,r),vg.forEach(s),yg.forEach(s);for(var l=0;l<Mu.length;l++){var u=Mu[l];u.blockedOn===r&&(u.blockedOn=null)}for(;0<Mu.length&&(l=Mu[0],l.blockedOn===null);)bN(l),l.blockedOn===null&&Mu.shift();if(l=(r.ownerDocument||r).$$reactFormReplay,l!=null)for(u=0;u<l.length;u+=3){var x=l[u],S=l[u+1],O=x[ki]||null;if(typeof S=="function")O||wN(l);else if(O){var H=null;if(S&&S.hasAttribute("formAction")){if(x=S,O=S[ki]||null)H=O.formAction;else if(n1(x)!==null)continue}else H=O.action;typeof H=="function"?l[u+1]=H:(l.splice(u,3),u-=3),wN(l)}}}function SN(){function r(S){S.canIntercept&&S.info==="react-transition"&&S.intercept({handler:function(){return new Promise(function(O){return x=O})},focusReset:"manual",scroll:"manual"})}function s(){x!==null&&(x(),x=null),u||setTimeout(l,20)}function l(){if(!u&&!navigation.transition){var S=navigation.currentEntry;S&&S.url!=null&&navigation.navigate(S.url,{state:S.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,x=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(l,100),function(){u=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),x!==null&&(x(),x=null)}}}function r1(r){this._internalRoot=r}vy.prototype.render=r1.prototype.render=function(r){var s=this._internalRoot;if(s===null)throw Error(i(409));var l=s.current,u=Vs();fN(l,u,r,s,null,null)},vy.prototype.unmount=r1.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var s=r.containerInfo;fN(r.current,2,null,r,null,null),Jv(),s[ta]=null}};function vy(r){this._internalRoot=r}vy.prototype.unstable_scheduleHydration=function(r){if(r){var s=pl();r={blockedOn:null,target:r,priority:s};for(var l=0;l<Mu.length&&s!==0&&s<Mu[l].priority;l++);Mu.splice(l,0,r),l===0&&bN(r)}};var CN=t.version;if(CN!=="19.2.7")throw Error(i(527,CN,"19.2.7"));J.findDOMNode=function(r){var s=r._reactInternals;if(s===void 0)throw typeof r.render=="function"?Error(i(188)):(r=Object.keys(r).join(","),Error(i(268,r)));return r=m(s),r=r!==null?b(r):null,r=r===null?null:r.stateNode,r};var sW={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var yy=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yy.isDisabled&&yy.supportsFiber)try{$s=yy.inject(sW),Gn=yy}catch{}}return Ef.createRoot=function(r,s){if(!a(r))throw Error(i(299));var l=!1,u="",x=Qm,S=Zo,O=Zm;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(u=s.identifierPrefix),s.onUncaughtError!==void 0&&(x=s.onUncaughtError),s.onCaughtError!==void 0&&(S=s.onCaughtError),s.onRecoverableError!==void 0&&(O=s.onRecoverableError)),s=dN(r,1,!1,null,null,l,u,null,x,S,O,SN),r[ta]=s.current,j0(r),new r1(s)},Ef.hydrateRoot=function(r,s,l){if(!a(r))throw Error(i(299));var u=!1,x="",S=Qm,O=Zo,H=Zm,it=null;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(x=l.identifierPrefix),l.onUncaughtError!==void 0&&(S=l.onUncaughtError),l.onCaughtError!==void 0&&(O=l.onCaughtError),l.onRecoverableError!==void 0&&(H=l.onRecoverableError),l.formState!==void 0&&(it=l.formState)),s=dN(r,1,!0,s,l??null,u,x,it,S,O,H,SN),s.context=hN(null),l=s.current,u=Vs(),u=Yi(u),x=Zi(u),x.callback=null,Si(l,x,u),l=u,s.current.lanes=l,gl(s,l),$o(s),r[ta]=s.current,j0(r),new vy(s)},Ef.version="19.2.7",Ef}var p1;function PN(){if(p1)return xy.exports;p1=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),xy.exports=ON(),xy.exports}var LN=PN();const v1="stream.accessToken";function IN(){if(typeof window>"u")return;const e=new URL(window.location.href),t=e.searchParams.get("token");if(t){e.searchParams.delete("token"),window.history.replaceState(null,"",e.toString());try{window.localStorage.setItem(v1,t)}catch{}return t}}function BN(){try{return IN()??window.localStorage.getItem(v1)??void 0}catch{return}}const Mf={baseUrl:"",token:BN()};function jN(e,t){Mf.baseUrl=e,Mf.wsBase=t||void 0}function ku(e){return e.token?{Authorization:`Bearer ${e.token}`}:{}}class Jl extends Error{constructor(t,n,i){super(t),this.status=n,this.code=i,this.name="ApiError",n===401&&typeof window<"u"&&window.dispatchEvent(new CustomEvent("stream:unauthorized"))}}function _u(e){if(!e||typeof e!="object"||!("error"in e))return;const t=e.error;if(typeof t=="string")return t;if(t&&typeof t=="object"&&"message"in t&&typeof t.message=="string")return t.message}function Au(e){if(!e||typeof e!="object"||!("error"in e))return;const t=e.error;if(t&&typeof t=="object"&&"code"in t&&typeof t.code=="string")return t.code}async function Gt(e,t){const n=await fetch(e.baseUrl+t,{headers:ku(e)});if(!n.ok){const i=await n.json().catch(()=>null);throw new Jl(_u(i)||`GET ${t} → ${n.status}`,n.status,Au(i))}return n.json()}async function ue(e,t,n){const i=await fetch(e.baseUrl+t,{method:"POST",headers:{"content-type":"application/json",...ku(e)},body:JSON.stringify(n)});if(!i.ok){const a=await i.json().catch(()=>null);throw new Jl(_u(a)||`POST ${t} → ${i.status}`,i.status,Au(a))}return i.json()}async function FN(e,t){const n=await fetch(e.baseUrl+t,{method:"POST",headers:ku(e)});if(!n.ok){const i=await n.json().catch(()=>null);throw new Jl(_u(i)||`POST ${t} → ${n.status}`,n.status,Au(i))}}async function Gs(e,t,n,i){const a=await fetch(e.baseUrl+t,{method:"PUT",headers:{"content-type":"application/json",...ku(e)},body:JSON.stringify(n),...i!=null&&i.keepalive?{keepalive:!0}:{}});if(!a.ok){const o=await a.json().catch(()=>null);throw new Jl(_u(o)||`PUT ${t} → ${a.status}`,a.status,Au(o))}return a.json()}async function Ys(e,t,n){const i=await fetch(e.baseUrl+t,{method:"PATCH",headers:{"content-type":"application/json",...ku(e)},body:JSON.stringify(n)});if(!i.ok){const a=await i.json().catch(()=>null);throw new Jl(_u(a)||`PATCH ${t} → ${i.status}`,i.status,Au(a))}return i.json()}async function Vr(e,t){const n=await fetch(e.baseUrl+t,{method:"DELETE",headers:ku(e)});if(!n.ok){const i=await n.json().catch(()=>null);throw new Jl(_u(i)||`DELETE ${t} → ${n.status}`,n.status,Au(i))}if(n.status!==204)return n.json()}function UN(e){const t=new URLSearchParams;e!=null&&e.stream&&t.set("stream",e.stream),e!=null&&e.limit&&t.set("limit",String(e.limit)),e!=null&&e.order&&t.set("order",e.order);const n=t.toString();return n?`?${n}`:""}function wg(e){return e.kind==="stream"?`stream:${e.streamId}`:e.kind==="tmdb"?`tmdb:${e.media}:${e.id}`:e.kind==="episode"?`episode:${e.streamId}:${e.itemId}`:`track:${e.platform}:${e.trackId}`}const Ie={streams:e=>Gt(e,"/api/streams"),config:{get:(e,t)=>Gt(e,`/api/config/${encodeURIComponent(t)}`),put:(e,t,n)=>Gs(e,`/api/config/${encodeURIComponent(t)}`,n)},storyFoldGroup:(e,t)=>Gt(e,`/api/story-fold/${encodeURIComponent(t)}`),unfoldStory:(e,t)=>Vr(e,`/api/story-fold/${encodeURIComponent(t)}`),sourceLeaderboard:e=>Gt(e,"/api/story-fold/leaderboard"),providers:e=>Gt(e,"/api/providers").then(t=>t.items),createProvider:(e,t)=>ue(e,"/api/providers",t),patchProvider:(e,t,n)=>Ys(e,`/api/providers/${encodeURIComponent(t)}`,n),providerCallsites:e=>Gt(e,"/api/provider-callsites").then(t=>t.items),presents:e=>Gt(e,"/api/presents"),packages:e=>Gt(e,"/api/packages").then(t=>t.packages),packageLogs:(e,t,n=200)=>Gt(e,`/api/packages/${encodeURIComponent(t)}/logs?tail=${n}`),restartPackage:(e,t)=>ue(e,`/api/packages/${encodeURIComponent(t)}/restart`,{}),searchRecipePackages:(e,t)=>Gt(e,`/api/recipes/packages/search?q=${encodeURIComponent(t)}`),listInstalledRecipePackages:e=>Gt(e,"/api/recipes/packages"),previewRecipePackage:(e,t,n)=>ue(e,"/api/recipes/packages/preview",{name:t,version:n}),installRecipePackage:(e,t,n,i)=>ue(e,"/api/recipes/packages/install",{name:t,version:n,confirm:i}),uninstallRecipePackage:(e,t)=>ue(e,"/api/recipes/packages/uninstall",{name:t}),recipePackageUpdates:e=>Gt(e,"/api/recipes/packages/updates"),setProviderCallsiteBinding:(e,t,n,i)=>Gs(e,`/api/provider-callsites/${encodeURIComponent(t)}/binding`,{providerIds:n,...i!==void 0?{params:i}:{}}),patchStreamMembers:(e,t,n)=>Ys(e,`/api/streams/${encodeURIComponent(t)}`,{members:n}),markStreamSeen:(e,t)=>ue(e,`/api/streams/${encodeURIComponent(t)}/seen`,{}),channels:(e,t)=>Gt(e,`/api/channels${t?`?kind=${encodeURIComponent(t)}`:""}`),createChannel:(e,t)=>ue(e,"/api/channels",t),updateChannel:(e,t,n)=>Ys(e,`/api/channels/${encodeURIComponent(t)}`,n),deleteChannel:(e,t)=>Vr(e,`/api/channels/${encodeURIComponent(t)}`),spaces:e=>Gt(e,"/api/spaces"),createSpace:(e,t)=>ue(e,"/api/spaces",t),updateSpace:(e,t,n)=>Ys(e,`/api/spaces/${encodeURIComponent(t)}`,n),deleteSpace:(e,t)=>Vr(e,`/api/spaces/${encodeURIComponent(t)}`),onboardWishlist:e=>Gt(e,"/api/onboard/wishlist"),deleteWishlistEntry:(e,t)=>Vr(e,`/api/onboard/wishlist/${encodeURIComponent(t)}`),channelItems:(e,t,n)=>{const i=new URLSearchParams;n!=null&&n.limit&&i.set("limit",String(n.limit)),n!=null&&n.cursor&&i.set("cursor",n.cursor);const a=i.toString();return Gt(e,`/api/channels/${encodeURIComponent(t)}/items${a?`?${a}`:""}`)},previewStream:(e,t,n)=>Gt(e,`/api/streams/${encodeURIComponent(t)}/preview${n?`?limit=${encodeURIComponent(String(n))}`:""}`),previewSource:(e,t,n)=>ue(e,"/api/sources/preview",{sourceId:t,params:n}),refreshStream:(e,t)=>ue(e,`/api/streams/${encodeURIComponent(t)}/refresh`,{}),refreshChannel:(e,t)=>ue(e,`/api/channels/${encodeURIComponent(t)}/refresh`,{}),items:(e,t)=>Gt(e,"/api/items"+UN(t)),search:(e,t,n,i)=>Gt(e,`/api/sources?q=${encodeURIComponent(t)}${n?`&k=${n}`:""}${i?`&category=${encodeURIComponent(i)}`:""}`),categories:e=>Gt(e,"/api/categories"),sources:e=>Gt(e,"/api/sources"),setStreamTitleFilter:(e,t,n,i)=>Ys(e,`/api/channels/${encodeURIComponent(t)}/streams/${encodeURIComponent(n)}/title-filter`,i.length?{keywords:i}:null),setStreamAdFilter:(e,t,n,i)=>Ys(e,`/api/channels/${encodeURIComponent(t)}/streams/${encodeURIComponent(n)}/ad-filter`,i),reclassifyStreamAdFilter:(e,t,n)=>ue(e,`/api/channels/${encodeURIComponent(t)}/streams/${encodeURIComponent(n)}/ad-filter/reclassify`,void 0),resolveTargets:e=>Gt(e,"/api/resolve/targets"),biliUserByName:(e,t)=>Gt(e,`/api/enrich?source=bilibili-user&name=${encodeURIComponent(t)}`),biliOwner:(e,t)=>Gt(e,`/api/enrich?source=bilibili-owner&${t.startsWith("av")?`aid=${t.slice(2)}`:`bvid=${t}`}`),biliConnect:e=>ue(e,"/api/credentials/bilibili.com/connect",{}),enrich:(e,t)=>{const n=new URLSearchParams({source:t.source});return t.source==="link"?n.set("url",t.url):t.source==="hackernews"?(n.set("id",t.id),t.commentsOnly&&n.set("comments","1")):t.source==="v2ex"?n.set("id",t.id):t.source==="bilibili-comments"?(n.set("vid",t.vid),t.page&&n.set("page",String(t.page))):t.source==="douyin"?(n.set("url",t.url),t.isGallery&&n.set("isGallery","true")):t.source==="xhs"?(n.set("noteId",t.noteId),n.set("xsec_token",t.xsecToken)):t.source==="xueqiu"&&n.set("permalink",t.permalink),Gt(e,`/api/enrich?${n.toString()}`)},interactXhs:(e,t)=>ue(e,"/api/discover/interact",t),closeFacility:(e,t)=>ue(e,`/api/facilities/${encodeURIComponent(t)}/close`,{}),contentSearch:(e,t)=>Gt(e,`/api/search?scope=content&q=${encodeURIComponent(t)}`).then(n=>({items:n.items,warnings:n.warnings??[],timings:n.timings??[]})),musicSearch:(e,t)=>Gt(e,`/api/search?scope=music&q=${encodeURIComponent(t)}`).then(n=>n.items),lyrics:(e,t)=>Gt(e,`/api/resolutions?type=lyrics&key=${encodeURIComponent(t)}`),videoTitleSearch:(e,t)=>Gt(e,`/api/search?scope=video&q=${encodeURIComponent(t)}`).then(n=>({candidates:n.candidates,warnings:n.warnings??[]})),collections:(e,t,n)=>Gt(e,`/api/collections${[t&&`domain=${t}`,n&&`anchor=${encodeURIComponent(n)}`].filter(Boolean).join("&").replace(/^(.)/,"?$1")}`),createCollection:(e,t,n,i)=>ue(e,"/api/collections",{domain:t,label:n,...i?{anchorStreamId:i}:{}}),renameCollection:(e,t,n)=>Ys(e,`/api/collections/${encodeURIComponent(t)}`,{label:n}),deleteCollection:(e,t)=>Vr(e,`/api/collections/${encodeURIComponent(t)}`),collectionItems:(e,t)=>Gt(e,`/api/collections/${encodeURIComponent(t)}/items`),reorderCollection:(e,t,n)=>Gs(e,`/api/collections/${encodeURIComponent(t)}/order`,{keys:n}),addToCollection:(e,t,n,i)=>Gs(e,`/api/collections/${encodeURIComponent(t)}/items/${encodeURIComponent(wg(n))}`,i),addToCollectionBatch:(e,t,n)=>ue(e,`/api/collections/${encodeURIComponent(t)}/items`,{items:n.map(({key:i,...a})=>({key:wg(i),...a}))}),removeFromCollection:(e,t,n)=>Vr(e,`/api/collections/${encodeURIComponent(t)}/items/${encodeURIComponent(wg(n))}`),whereCollected:(e,t)=>Gt(e,`/api/collected/${encodeURIComponent(wg(t))}`),watchProgressGet:(e,t)=>Gt(e,`/api/watch-progress/${encodeURIComponent(t)}`),watchProgressPut:(e,t,n,i)=>Gs(e,`/api/watch-progress/${encodeURIComponent(t)}`,n,i),watchProgressList:(e,t)=>Gt(e,"/api/watch-progress"+(t!=null&&t.length?`?${t.map(n=>`channel=${encodeURIComponent(n)}`).join("&")}`:"")),watchProgressRemove:(e,t)=>Vr(e,`/api/watch-progress/${encodeURIComponent(t)}`),videoSearch:(e,t,n=!1,i)=>Gt(e,`/api/search?scope=resources&q=${encodeURIComponent(t)}${n?"&nsfw=1":""}${i?`&channelId=${encodeURIComponent(i)}`:""}`),videoSearchStream:async(e,t,n,i,a,o)=>{const c=await fetch(`${e.baseUrl}/api/search?scope=resources&stream=1&q=${encodeURIComponent(t)}${n?"&nsfw=1":""}${o?`&channelId=${encodeURIComponent(o)}`:""}`,{headers:ku(e),signal:a});if(!c.ok||!c.body){const b=await c.json().catch(()=>null);throw new Jl(_u(b)||`video stream → ${c.status}`,c.status,Au(b))}const d=c.body.getReader(),h=new TextDecoder;let m="";for(;;){const{done:b,value:y}=await d.read();if(b)break;m+=h.decode(y,{stream:!0});let T;for(;(T=m.indexOf(`
|
|
50
|
+
`))>=0;){const k=m.slice(0,T).trim();m=m.slice(T+1),k&&i(JSON.parse(k))}}},videoResolve:(e,t)=>Gt(e,`/api/download-options?url=${encodeURIComponent(t)}`),status:e=>Gt(e,"/api/status"),topics:e=>Gt(e,"/api/topics"),subscribe:(e,t)=>ue(e,"/api/streams",t),unsubscribe:(e,t)=>Vr(e,`/api/streams/${encodeURIComponent(t)}`),renameStream:(e,t,n)=>Ys(e,`/api/streams/${encodeURIComponent(t)}`,{label:n}),updateStream:(e,t,n)=>Ys(e,`/api/streams/${encodeURIComponent(t)}`,n),label:(e,t,n)=>Ys(e,`/api/items/${encodeURIComponent(t)}`,{label:n}),wsUrl:e=>(e.wsBase??e.baseUrl.replace(/^http/,"ws"))+"/ws"+(e.token?`?token=${encodeURIComponent(e.token)}`:""),plugins:e=>Gt(e,"/api/plugins"),setPluginEnabled:(e,t,n)=>Gs(e,`/api/plugins/${encodeURIComponent(t)}/enabled`,{enabled:n}),alist:{get:e=>Gt(e,"/api/settings/alist"),set:(e,t)=>Gs(e,"/api/settings/alist",t),test:(e,t)=>ue(e,"/api/settings/alist/test",t)},pluginSources:(e,t,n)=>{const i=new URLSearchParams;n!=null&&n.query&&i.set("query",n.query),n!=null&&n.category&&i.set("category",n.category),(n==null?void 0:n.group)!==void 0&&i.set("group",n.group),n!=null&&n.limit&&i.set("limit",String(n.limit)),n!=null&&n.cursor&&i.set("cursor",n.cursor),n!=null&&n.surface&&i.set("surface",n.surface);const a=i.toString();return Gt(e,`/api/plugins/${encodeURIComponent(t)}/sources${a?`?${a}`:""}`)},pluginSourceDetail:(e,t,n)=>Gt(e,`/api/plugins/${encodeURIComponent(t)}/sources/${encodeURIComponent(n)}`),searchAllPluginSources:(e,t)=>{const n=new URLSearchParams;t!=null&&t.query&&n.set("query",t.query),t!=null&&t.category&&n.set("category",t.category),t!=null&&t.capability&&n.set("capability",t.capability),t!=null&&t.searchable&&n.set("searchable","1"),t!=null&&t.limit&&n.set("limit",String(t.limit)),t!=null&&t.cursor&&n.set("cursor",t.cursor),t!=null&&t.surface&&n.set("surface",t.surface);const i=n.toString();return Gt(e,`/api/plugins/sources${i?`?${i}`:""}`)},dsh:{status:e=>Gt(e,"/api/dsh/status"),start:e=>ue(e,"/api/dsh/start",{}),stop:e=>ue(e,"/api/dsh/stop",{})},harvestBrowser:{get:e=>Gt(e,"/api/settings/harvest-browser"),set:(e,t)=>Gs(e,"/api/settings/harvest-browser",{exe:t})},extension:{capability:e=>Gt(e,"/api/browser-capability"),onboarding:e=>Gt(e,"/api/extension/onboarding"),materialize:e=>ue(e,"/api/extension/materialize",{}),install:e=>ue(e,"/api/extension/install",{}),decline:e=>FN(e,"/api/extension/decline")},accessToken:{get:e=>Gt(e,"/api/access-token")},cookieCloud:{get:e=>Gt(e,"/api/settings/cookiecloud"),set:(e,t)=>Gs(e,"/api/settings/cookiecloud",t)},summaryPrompt:{get:e=>Gt(e,"/api/settings/summary-prompt"),set:(e,t)=>Gs(e,"/api/settings/summary-prompt",{prompt:t})},conversions:{start:(e,t,n,i)=>ue(e,"/api/conversions",{kind:t,item:n,media:i==null?void 0:i.media,snapshot:i==null?void 0:i.snapshot,options:i==null?void 0:i.options,input:i==null?void 0:i.input,force:i==null?void 0:i.force}),forItem:(e,t,n)=>Gt(e,`/api/conversions?item=${encodeURIComponent(t)}${n!=null&&n.expandResult?"&expand=result":""}`),latest:async(e,t,n,i)=>(await Gt(e,`/api/conversions?item=${encodeURIComponent(t)}&kind=${n}${i!=null&&i.expandResult?"&expand=result":""}`)).items[0]??null,list:(e,t)=>Gt(e,`/api/conversions?${new URLSearchParams({...t!=null&&t.kind?{kind:t.kind}:{},...t!=null&&t.limit?{limit:String(t.limit)}:{}})}`),remove:(e,t)=>Vr(e,`/api/conversions/${encodeURIComponent(t)}`),kinds:e=>Gt(e,"/api/conversion-kinds")},download:(e,t)=>ue(e,"/api/downloads",t),downloadJobs:(e,t)=>Gt(e,`/api/downloads${t?`?platform=${encodeURIComponent(t)}`:""}`).then(n=>({jobs:n.items})),archiveStatus:async(e,t)=>{const i=[];for(let o=0;o<t.length;o+=200)i.push(t.slice(o,o+200));const a=await Promise.all(i.map(o=>Gt(e,`/api/media/assets?refs=${o.map(c=>`${encodeURIComponent(c.platform)}:${encodeURIComponent(c.trackId)}`).join(",")}`)));return{archived:Object.assign({},...a.map(o=>o.archived))}},deleteArchived:(e,t,n)=>Vr(e,`/api/media/assets/${encodeURIComponent(t)}/${encodeURIComponent(n)}`),setSync:(e,t,n)=>Ys(e,`/api/streams/${encodeURIComponent(t)}`,{options:{autoDownload:n}}),exportStreamPlaylist:(e,t)=>ue(e,`/api/streams/${encodeURIComponent(t)}/playlist-export`,{}),exportCollectionPlaylist:(e,t)=>ue(e,`/api/collections/${encodeURIComponent(t)}/playlist-export`,{}),netdisk:{verifyShare:(e,t)=>ue(e,"/api/netdisk/share/verify",t),saveShare:(e,t)=>ue(e,"/api/netdisk/share/save",t),list:e=>Gt(e,"/api/netdisk/mappings"),get:(e,t)=>Gt(e,`/api/netdisk/mappings/${encodeURIComponent(t)}`),create:(e,t)=>ue(e,"/api/netdisk/mappings",t),sync:(e,t)=>ue(e,`/api/netdisk/mappings/${encodeURIComponent(t)}/sync`,{}),rebind:(e,t,n)=>ue(e,`/api/netdisk/mappings/${encodeURIComponent(t)}/rebind`,{dirPath:n}),remove:(e,t)=>Vr(e,`/api/netdisk/mappings/${encodeURIComponent(t)}`),removeWithFiles:(e,t)=>Vr(e,`/api/netdisk/mappings/${encodeURIComponent(t)}?files=1`),patchEntry:(e,t,n,i)=>Ys(e,`/api/netdisk/mappings/${encodeURIComponent(t)}/entries/${encodeURIComponent(n)}`,i),listFs:(e,t,n)=>Gt(e,`/api/netdisk/fs?path=${encodeURIComponent(t)}${n!=null&&n.recursive?"&recursive=1":""}${n!=null&&n.dirs?"&dirs=1":""}${n!=null&&n.refresh?"&refresh=1":""}`),mkdir:(e,t)=>ue(e,"/api/netdisk/fs/mkdir",{path:t}),mounts:e=>Gt(e,"/api/netdisk/mounts"),setMounts:(e,t)=>Gs(e,"/api/netdisk/mounts",{mounts:t}),reconcileMounts:e=>ue(e,"/api/netdisk/mounts/reconcile",{})},netdiskFsMove:(e,t,n,i)=>ue(e,"/api/netdisk/fs/move",{srcDir:t,dstDir:n,names:i}),netdiskFsRemove:(e,t,n)=>ue(e,"/api/netdisk/fs/remove",{dir:t,names:n}),reconcile:{config:e=>Gt(e,"/api/netdisk/reconcile/config"),putConfig:(e,t)=>Gs(e,"/api/netdisk/reconcile/config",{shows:t}),streamAuthority:(e,t)=>Gt(e,`/api/netdisk/reconcile/streams/${encodeURIComponent(t)}/authority`),preview:(e,t)=>ue(e,`/api/netdisk/reconcile/${encodeURIComponent(t)}/preview`,{}),execute:(e,t)=>ue(e,`/api/netdisk/reconcile/${encodeURIComponent(t)}/execute`,{}),previewBinding:(e,t)=>ue(e,`/api/netdisk/reconcile/bindings/${encodeURIComponent(t)}/preview`,{}),executeBinding:(e,t)=>ue(e,`/api/netdisk/reconcile/bindings/${encodeURIComponent(t)}/execute`,{}),setDecision:(e,t,n,i)=>ue(e,"/api/netdisk/reconcile/decisions",{key:t,verdict:n,note:i}),setNotEpisode:(e,t,n,i=!0)=>ue(e,"/api/netdisk/reconcile/decisions",{leftKey:t,path:n,verdict:i?"not-episode":null}),setIsEpisode:(e,t,n,i=!0)=>ue(e,"/api/netdisk/reconcile/decisions",{leftKey:t,path:n,verdict:i?"is-episode":null}),setPreferred:(e,t,n,i=!0)=>ue(e,"/api/netdisk/reconcile/decisions",{keptPath:t,loserPath:n,verdict:i?"prefer":null}),suggestions:(e,t={})=>{const n=new URLSearchParams;for(const[a,o]of Object.entries(t))o!=null&&n.set(a,String(o));const i=n.toString();return Gt(e,`/api/netdisk/reconcile/suggestions${i?`?${i}`:""}`)}},sharing:{exportBundle:(e,t,n,i)=>ue(e,"/api/sharing/exports",{root:t,meta:n,...i}),importBundle:(e,t)=>ue(e,"/api/sharing/imports",t),imports:e=>Gt(e,"/api/sharing/imports").then(t=>t.items),importRun:(e,t)=>Gt(e,`/api/sharing/imports/${encodeURIComponent(t)}`),decide:(e,t,n,i)=>ue(e,`/api/sharing/imports/${encodeURIComponent(t)}/decisions`,{itemId:n,choice:i})},voiceprint:{listPersons:e=>Gt(e,"/api/voiceprint/persons").then(t=>t.persons),createPerson:(e,t)=>ue(e,"/api/voiceprint/persons",{name:t}),deletePerson:(e,t)=>Vr(e,`/api/voiceprint/persons/${encodeURIComponent(t)}`),recluster:(e,t)=>ue(e,`/api/voiceprint/item/${encodeURIComponent(t)}/clusters`,{}),listClusters:(e,t)=>Gt(e,`/api/voiceprint/item/${encodeURIComponent(t)}/clusters`).then(n=>n.clusters),enroll:(e,t,n,i)=>ue(e,`/api/voiceprint/item/${encodeURIComponent(t)}/clusters/${encodeURIComponent(n)}/enroll`,{personId:i}),rejectPending:(e,t,n)=>Vr(e,`/api/voiceprint/item/${encodeURIComponent(t)}/pending/${encodeURIComponent(n)}`),blocks:(e,t,n)=>{const i=new URLSearchParams;n!=null&&n.person&&i.set("person",n.person),n!=null&&n.minSeconds&&i.set("minSeconds",String(n.minSeconds));const a=i.toString();return Gt(e,`/api/voiceprint/item/${encodeURIComponent(t)}/blocks${a?`?${a}`:""}`).then(o=>o.blocks)}}},qd=encodeURIComponent,VN=(e,t)=>Gt(e,`/api/live/streams/${qd(t)}/items`).then(n=>n.items),HN=(e,t,n)=>Gt(e,`/api/research/streams/${qd(t)}/runs/${qd(n)}`),GN=(e,t,n,i)=>Gt(e,`/api/research/streams/${qd(t)}/runs/${qd(n)}/artifacts/${qd(i)}`),y1=["#3b82f6","#10b981","#f59e0b","#ef4444","#8b5cf6","#06b6d4","#f97316","#84cc16"],YN=280;function Sg(e){const t=e.height;return typeof t=="number"&&Number.isFinite(t)&&t>0?Math.round(t):YN}function $d(e){return e==="light"?{text:"#374151",grid:"#e5e7eb",series:y1}:{text:"#a0a0b8",grid:"#2f2f45",series:y1}}function WN(e){if(!e||typeof e!="object")return!1;const t=e;return Array.isArray(t.columns)&&Array.isArray(t.data)}function KN(e){return e===null?"—":typeof e=="number"?Number(e.toPrecision(4)).toString():typeof e=="boolean"?e?"✓":"✗":String(e)}function XN(e,t,n){const i=document.createElement("div");i.style.cssText=`padding:8px;font-size:12px;color:${t.text}`,i.textContent=`数据形状不是这个 view 认识的样子(${n})`,e.appendChild(i)}function QN(e,t,n){const i=$d(n),a=t.data;if(!WN(a))return XN(e,i,t.name);const{columns:o,data:c}=a,d=t.config,h=typeof d.pageSize=="number"&&d.pageSize>0?d.pageSize:1/0;if(d.title){const T=document.createElement("div");T.style.cssText=`padding:6px 8px 2px;font-size:11px;font-weight:600;color:${i.text}`,T.textContent=d.title,e.appendChild(T)}const m=document.createElement("div");m.style.cssText=`height:100%;overflow:auto;font-size:12px;color:${i.text}`,e.appendChild(m);let b=null;function y(){m.textContent="";let T=[...Array(c.length).keys()];if(b){const{col:I,dir:F}=b;T.sort((B,Y)=>{const Z=c[B][I]??null,et=c[Y][I]??null;return Z===null?1:et===null?-1:(Z<et?-1:Z>et?1:0)*F})}const k=T.slice(0,h),R=document.createElement("table");R.style.cssText="width:100%;border-collapse:collapse";const N=document.createElement("thead"),z=document.createElement("tr");o.forEach((I,F)=>{const B=document.createElement("th");B.textContent=I,B.style.cssText=`position:sticky;top:0;text-align:left;padding:4px 8px;border-bottom:1px solid ${i.grid};cursor:pointer;background:inherit`,B.onclick=()=>{b=(b==null?void 0:b.col)===F&&b.dir===1?{col:F,dir:-1}:{col:F,dir:1},y()},z.appendChild(B)}),N.appendChild(z);const L=document.createElement("tbody");for(const I of k){const F=document.createElement("tr");for(const B of c[I]){const Y=document.createElement("td");Y.textContent=KN(B),Y.style.cssText=`padding:3px 8px;border-bottom:1px solid ${i.grid}`,F.appendChild(Y)}L.appendChild(F)}if(R.appendChild(N),R.appendChild(L),m.appendChild(R),k.length<c.length){const I=document.createElement("div");I.style.cssText="padding:4px 8px;opacity:.7",I.textContent=`前 ${k.length} 行,共 ${c.length} 行`,m.appendChild(I)}}y()}function vn(e){var t=e.width,n=e.height;if(t<0)throw new Error("Negative width is not allowed for Size");if(n<0)throw new Error("Negative height is not allowed for Size");return{width:t,height:n}}function Nu(e,t){return e.width===t.width&&e.height===t.height}var ZN=(function(){function e(t){var n=this;this._resolutionListener=function(){return n._onResolutionChanged()},this._resolutionMediaQueryList=null,this._observers=[],this._window=t,this._installResolutionListener()}return e.prototype.dispose=function(){this._uninstallResolutionListener(),this._window=null},Object.defineProperty(e.prototype,"value",{get:function(){return this._window.devicePixelRatio},enumerable:!1,configurable:!0}),e.prototype.subscribe=function(t){var n=this,i={next:t};return this._observers.push(i),{unsubscribe:function(){n._observers=n._observers.filter(function(a){return a!==i})}}},e.prototype._installResolutionListener=function(){if(this._resolutionMediaQueryList!==null)throw new Error("Resolution listener is already installed");var t=this._window.devicePixelRatio;this._resolutionMediaQueryList=this._window.matchMedia("all and (resolution: ".concat(t,"dppx)")),this._resolutionMediaQueryList.addListener(this._resolutionListener)},e.prototype._uninstallResolutionListener=function(){this._resolutionMediaQueryList!==null&&(this._resolutionMediaQueryList.removeListener(this._resolutionListener),this._resolutionMediaQueryList=null)},e.prototype._reinstallResolutionListener=function(){this._uninstallResolutionListener(),this._installResolutionListener()},e.prototype._onResolutionChanged=function(){var t=this;this._observers.forEach(function(n){return n.next(t._window.devicePixelRatio)}),this._reinstallResolutionListener()},e})();function JN(e){return new ZN(e)}var qN=(function(){function e(t,n,i){var a;this._canvasElement=null,this._bitmapSizeChangedListeners=[],this._suggestedBitmapSize=null,this._suggestedBitmapSizeChangedListeners=[],this._devicePixelRatioObservable=null,this._canvasElementResizeObserver=null,this._canvasElement=t,this._canvasElementClientSize=vn({width:this._canvasElement.clientWidth,height:this._canvasElement.clientHeight}),this._transformBitmapSize=n??(function(o){return o}),this._allowResizeObserver=(a=i==null?void 0:i.allowResizeObserver)!==null&&a!==void 0?a:!0,this._chooseAndInitObserver()}return e.prototype.dispose=function(){var t,n;if(this._canvasElement===null)throw new Error("Object is disposed");(t=this._canvasElementResizeObserver)===null||t===void 0||t.disconnect(),this._canvasElementResizeObserver=null,(n=this._devicePixelRatioObservable)===null||n===void 0||n.dispose(),this._devicePixelRatioObservable=null,this._suggestedBitmapSizeChangedListeners.length=0,this._bitmapSizeChangedListeners.length=0,this._canvasElement=null},Object.defineProperty(e.prototype,"canvasElement",{get:function(){if(this._canvasElement===null)throw new Error("Object is disposed");return this._canvasElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canvasElementClientSize",{get:function(){return this._canvasElementClientSize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bitmapSize",{get:function(){return vn({width:this.canvasElement.width,height:this.canvasElement.height})},enumerable:!1,configurable:!0}),e.prototype.resizeCanvasElement=function(t){this._canvasElementClientSize=vn(t),this.canvasElement.style.width="".concat(this._canvasElementClientSize.width,"px"),this.canvasElement.style.height="".concat(this._canvasElementClientSize.height,"px"),this._invalidateBitmapSize()},e.prototype.subscribeBitmapSizeChanged=function(t){this._bitmapSizeChangedListeners.push(t)},e.prototype.unsubscribeBitmapSizeChanged=function(t){this._bitmapSizeChangedListeners=this._bitmapSizeChangedListeners.filter(function(n){return n!==t})},Object.defineProperty(e.prototype,"suggestedBitmapSize",{get:function(){return this._suggestedBitmapSize},enumerable:!1,configurable:!0}),e.prototype.subscribeSuggestedBitmapSizeChanged=function(t){this._suggestedBitmapSizeChangedListeners.push(t)},e.prototype.unsubscribeSuggestedBitmapSizeChanged=function(t){this._suggestedBitmapSizeChangedListeners=this._suggestedBitmapSizeChangedListeners.filter(function(n){return n!==t})},e.prototype.applySuggestedBitmapSize=function(){if(this._suggestedBitmapSize!==null){var t=this._suggestedBitmapSize;this._suggestedBitmapSize=null,this._resizeBitmap(t),this._emitSuggestedBitmapSizeChanged(t,this._suggestedBitmapSize)}},e.prototype._resizeBitmap=function(t){var n=this.bitmapSize;Nu(n,t)||(this.canvasElement.width=t.width,this.canvasElement.height=t.height,this._emitBitmapSizeChanged(n,t))},e.prototype._emitBitmapSizeChanged=function(t,n){var i=this;this._bitmapSizeChangedListeners.forEach(function(a){return a.call(i,t,n)})},e.prototype._suggestNewBitmapSize=function(t){var n=this._suggestedBitmapSize,i=vn(this._transformBitmapSize(t,this._canvasElementClientSize)),a=Nu(this.bitmapSize,i)?null:i;n===null&&a===null||n!==null&&a!==null&&Nu(n,a)||(this._suggestedBitmapSize=a,this._emitSuggestedBitmapSizeChanged(n,a))},e.prototype._emitSuggestedBitmapSizeChanged=function(t,n){var i=this;this._suggestedBitmapSizeChangedListeners.forEach(function(a){return a.call(i,t,n)})},e.prototype._chooseAndInitObserver=function(){var t=this;if(!this._allowResizeObserver){this._initDevicePixelRatioObservable();return}tz().then(function(n){return n?t._initResizeObserver():t._initDevicePixelRatioObservable()})},e.prototype._initDevicePixelRatioObservable=function(){var t=this;if(this._canvasElement!==null){var n=b1(this._canvasElement);if(n===null)throw new Error("No window is associated with the canvas");this._devicePixelRatioObservable=JN(n),this._devicePixelRatioObservable.subscribe(function(){return t._invalidateBitmapSize()}),this._invalidateBitmapSize()}},e.prototype._invalidateBitmapSize=function(){var t,n;if(this._canvasElement!==null){var i=b1(this._canvasElement);if(i!==null){var a=(n=(t=this._devicePixelRatioObservable)===null||t===void 0?void 0:t.value)!==null&&n!==void 0?n:i.devicePixelRatio,o=this._canvasElement.getClientRects(),c=o[0]!==void 0?ez(o[0],a):vn({width:this._canvasElementClientSize.width*a,height:this._canvasElementClientSize.height*a});this._suggestNewBitmapSize(c)}}},e.prototype._initResizeObserver=function(){var t=this;this._canvasElement!==null&&(this._canvasElementResizeObserver=new ResizeObserver(function(n){var i=n.find(function(c){return c.target===t._canvasElement});if(!(!i||!i.devicePixelContentBoxSize||!i.devicePixelContentBoxSize[0])){var a=i.devicePixelContentBoxSize[0],o=vn({width:a.inlineSize,height:a.blockSize});t._suggestNewBitmapSize(o)}}),this._canvasElementResizeObserver.observe(this._canvasElement,{box:"device-pixel-content-box"}))},e})();function $N(e,t){return new qN(e,t.transform,t.options)}function b1(e){return e.ownerDocument.defaultView}function tz(){return new Promise(function(e){var t=new ResizeObserver(function(n){e(n.every(function(i){return"devicePixelContentBoxSize"in i})),t.disconnect()});t.observe(document.body,{box:"device-pixel-content-box"})}).catch(function(){return!1})}function ez(e,t){return vn({width:Math.round(e.left*t+e.width*t)-Math.round(e.left*t),height:Math.round(e.top*t+e.height*t)-Math.round(e.top*t)})}var nz=(function(){function e(t,n,i){if(n.width===0||n.height===0)throw new TypeError("Rendering target could only be created on a media with positive width and height");if(this._mediaSize=n,i.width===0||i.height===0)throw new TypeError("Rendering target could only be created using a bitmap with positive integer width and height");this._bitmapSize=i,this._context=t}return e.prototype.useMediaCoordinateSpace=function(t){try{return this._context.save(),this._context.setTransform(1,0,0,1,0,0),this._context.scale(this._horizontalPixelRatio,this._verticalPixelRatio),t({context:this._context,mediaSize:this._mediaSize})}finally{this._context.restore()}},e.prototype.useBitmapCoordinateSpace=function(t){try{return this._context.save(),this._context.setTransform(1,0,0,1,0,0),t({context:this._context,mediaSize:this._mediaSize,bitmapSize:this._bitmapSize,horizontalPixelRatio:this._horizontalPixelRatio,verticalPixelRatio:this._verticalPixelRatio})}finally{this._context.restore()}},Object.defineProperty(e.prototype,"_horizontalPixelRatio",{get:function(){return this._bitmapSize.width/this._mediaSize.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_verticalPixelRatio",{get:function(){return this._bitmapSize.height/this._mediaSize.height},enumerable:!1,configurable:!0}),e})();function zu(e,t){var n=e.canvasElementClientSize;if(n.width===0||n.height===0)return null;var i=e.bitmapSize;if(i.width===0||i.height===0)return null;var a=e.canvasElement.getContext("2d",t);return a===null?null:new nz(a,n,i)}/*!
|
|
51
|
+
* @license
|
|
52
|
+
* TradingView Lightweight Charts™ v5.2.1
|
|
53
|
+
* Copyright (c) 2026 TradingView, Inc.
|
|
54
|
+
* Licensed under Apache License 2.0 https://www.apache.org/licenses/LICENSE-2.0
|
|
55
|
+
*/const x1={title:"",visible:!0,hitTestTolerance:3,lastValueVisible:!0,priceLineVisible:!0,priceLineSource:0,priceLineWidth:1,priceLineColor:"",priceLineStyle:2,baseLineVisible:!0,baseLineWidth:1,baseLineColor:"#B2B5BE",baseLineStyle:0,priceFormat:{type:"price",precision:2,minMove:.01}};var w1,S1;function Du(e,t){const n=(function(i,a){switch(i){case 0:default:return[];case 1:return[a,a];case 2:return[2*a,2*a];case 3:return[6*a,6*a];case 4:return[a,4*a]}})(t,e.lineWidth);return e.setLineDash(n),n}function C1(e,t,n,i){e.beginPath();const a=e.lineWidth%2?.5:0;e.moveTo(n,t+a),e.lineTo(i,t+a),e.stroke()}function $i(e,t){if(!e)throw new Error("Assertion failed"+(t?": "+t:""))}function Hr(e){if(e===void 0)throw new Error("Value is undefined");return e}function It(e){if(e===null)throw new Error("Value is null");return e}function ql(e){return It(Hr(e))}(function(e){e[e.Simple=0]="Simple",e[e.WithSteps=1]="WithSteps",e[e.Curved=2]="Curved"})(w1||(w1={})),(function(e){e[e.Solid=0]="Solid",e[e.Dotted=1]="Dotted",e[e.Dashed=2]="Dashed",e[e.LargeDashed=3]="LargeDashed",e[e.SparseDotted=4]="SparseDotted"})(S1||(S1={}));class ti{constructor(){this.t=[]}i(t,n,i){const a={h:t,l:n,o:i===!0};this.t.push(a)}_(t){const n=this.t.findIndex((i=>t===i.h));n>-1&&this.t.splice(n,1)}u(t){this.t=this.t.filter((n=>n.l!==t))}p(t,n,i){const a=[...this.t];this.t=this.t.filter((o=>!o.o)),a.forEach((o=>o.h(t,n,i)))}v(){return this.t.length>0}m(){this.t=[]}}function as(e,...t){for(const n of t)for(const i in n)n[i]!==void 0&&Object.prototype.hasOwnProperty.call(n,i)&&!["__proto__","constructor","prototype"].includes(i)&&(typeof n[i]!="object"||e[i]===void 0||Array.isArray(n[i])?e[i]=n[i]:as(e[i],n[i]));return e}function Ou(e){return typeof e=="number"&&isFinite(e)}function Rf(e){return typeof e=="number"&&e%1==0}function kf(e){return typeof e=="string"}function Cg(e){return typeof e=="boolean"}function tl(e){const t=e;if(!t||typeof t!="object")return t;let n,i,a;for(i in n=Array.isArray(t)?[]:{},t)t.hasOwnProperty(i)&&(a=t[i],n[i]=a&&typeof a=="object"?tl(a):a);return n}function T1(e){return e!==null}function Ty(e){return e===null?void 0:e}const E1="-apple-system, BlinkMacSystemFont, 'Trebuchet MS', Roboto, Ubuntu, sans-serif";function _f(e,t,n){return t===void 0&&(t=E1),`${n=n!==void 0?`${n} `:""}${e}px ${t}`}class iz{constructor(t){this.M={S:1,C:5,P:NaN,k:"",T:"",R:"",D:"",I:0,V:0,B:0,A:0,L:0},this.O=t}N(){const t=this.M,n=this.F(),i=this.W();return t.P===n&&t.T===i||(t.P=n,t.T=i,t.k=_f(n,i),t.A=.20833333333333334*n,t.I=t.A,t.V=n/12*t.C,t.B=n/12*t.C,t.L=0),t.R=this.H(),t.D=this.U(),this.M}H(){return this.O.N().layout.textColor}U(){return this.O.$()}F(){return this.O.N().layout.fontSize}W(){return this.O.N().layout.fontFamily}}function Ey(e){return e<0?0:e>255?255:Math.round(e)||0}function M1(e){return .199*e[0]+.687*e[1]+.114*e[2]}let rz=class{constructor(t,n){this.j=new Map,this.q=t,n&&(this.j=n)}Y(t,n){if(t==="transparent")return t;const i=this.K(t),a=i[3];return`rgba(${i[0]}, ${i[1]}, ${i[2]}, ${n*a})`}G(t){const n=this.K(t);return{Z:`rgb(${n[0]}, ${n[1]}, ${n[2]})`,X:M1(n)>160?"black":"white"}}J(t){return M1(this.K(t))}tt(t,n,i){const[a,o,c,d]=this.K(t),[h,m,b,y]=this.K(n),T=[Ey(a+i*(h-a)),Ey(o+i*(m-o)),Ey(c+i*(b-c)),(k=d+i*(y-d),k<=0||k>1?Math.min(Math.max(k,0),1):Math.round(1e4*k)/1e4)];var k;return`rgba(${T[0]}, ${T[1]}, ${T[2]}, ${T[3]})`}K(t){const n=this.j.get(t);if(n)return n;const i=(function(c){const d=document.createElement("div");d.style.display="none",document.body.appendChild(d),d.style.color=c;const h=window.getComputedStyle(d).color;return document.body.removeChild(d),h})(t),a=i.match(/^rgba?\s*\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d+))?\)$/);if(!a){if(this.q.length)for(const c of this.q){const d=c(t);if(d)return this.j.set(t,d),d}throw new Error(`Failed to parse color: ${t}`)}const o=[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10),a[4]?parseFloat(a[4]):1];return this.j.set(t,o),o}},sz=class{constructor(){this.it=[]}nt(t){this.it=t}st(t,n,i){this.it.forEach((a=>{a.st(t,n,i)}))}};class th{st(t,n,i){t.useBitmapCoordinateSpace((a=>this.et(a,n,i)))}}let az=class extends th{constructor(){super(...arguments),this.rt=null}ht(t){this.rt=t}et({context:t,horizontalPixelRatio:n,verticalPixelRatio:i}){if(this.rt===null||this.rt.lt===null)return;const a=this.rt.lt,o=this.rt,c=Math.max(1,Math.floor(n))%2/2,d=h=>{t.beginPath();for(let m=a.to-1;m>=a.from;--m){const b=o.ot[m],y=Math.round(b._t*n)+c,T=b.ut*i,k=h*i+c;t.moveTo(y,T),t.arc(y,T,k,0,2*Math.PI)}t.fill()};o.ct>0&&(t.fillStyle=o.dt,d(o.ft+o.ct)),t.fillStyle=o.vt,d(o.ft)}};function oz(){return{ot:[{_t:0,ut:0,wt:0,Mt:0}],vt:"",dt:"",ft:0,ct:0,lt:null}}const lz={from:0,to:1};let cz=class{constructor(t,n,i){this.gt=new sz,this.bt=[],this.St=[],this.xt=!0,this.O=t,this.Ct=n,this.yt=i,this.gt.nt(this.bt)}Pt(t){this.kt(),this.xt=!0}Tt(){return this.xt&&(this.Rt(),this.xt=!1),this.gt}kt(){const t=this.yt.Dt();t.length!==this.bt.length&&(this.St=t.map(oz),this.bt=this.St.map((n=>{const i=new az;return i.ht(n),i})),this.gt.nt(this.bt))}Rt(){const t=this.Ct.N().mode===2||!this.Ct.It(),n=this.yt.Vt(),i=this.Ct.Bt(),a=this.O.Et();this.kt(),n.forEach(((o,c)=>{const d=this.St[c],h=o.At(i),m=o.Lt();!t&&h!==null&&o.It()&&m!==null?(d.vt=h.zt,d.ft=h.ft,d.ct=h.Ot,d.ot[0].Mt=h.Mt,d.ot[0].ut=o.Ft().Nt(h.Mt,m.Wt),d.dt=h.Ht??this.O.Ut(d.ot[0].ut/o.Ft().$t()),d.ot[0].wt=i,d.ot[0]._t=a.jt(i),d.lt=lz):d.lt=null}))}};class uz extends th{constructor(t){super(),this.qt=t}et({context:t,bitmapSize:n,horizontalPixelRatio:i,verticalPixelRatio:a}){if(this.qt===null)return;const o=this.qt.Yt.It,c=this.qt.Kt.It;if(!o&&!c)return;const d=Math.round(this.qt._t*i),h=Math.round(this.qt.ut*a);t.lineCap="butt",o&&d>=0&&(t.lineWidth=Math.floor(this.qt.Yt.ct*i),t.strokeStyle=this.qt.Yt.R,t.fillStyle=this.qt.Yt.R,Du(t,this.qt.Yt.Gt),(function(m,b,y,T){m.beginPath();const k=m.lineWidth%2?.5:0;m.moveTo(b+k,y),m.lineTo(b+k,T),m.stroke()})(t,d,0,n.height)),c&&h>=0&&(t.lineWidth=Math.floor(this.qt.Kt.ct*a),t.strokeStyle=this.qt.Kt.R,t.fillStyle=this.qt.Kt.R,Du(t,this.qt.Kt.Gt),C1(t,h,0,n.width))}}class dz{constructor(t,n){this.xt=!0,this.Zt={Yt:{ct:1,Gt:0,R:"",It:!1},Kt:{ct:1,Gt:0,R:"",It:!1},_t:0,ut:0},this.Xt=new uz(this.Zt),this.Jt=t,this.yt=n}Pt(){this.xt=!0}Tt(t){return this.xt&&(this.Rt(),this.xt=!1),this.Xt}Rt(){const t=this.Jt.It(),n=this.yt.Qt().N().crosshair,i=this.Zt;if(n.mode===2)return i.Kt.It=!1,void(i.Yt.It=!1);i.Kt.It=t&&this.Jt.ti(this.yt),i.Yt.It=t&&this.Jt.ii(),i.Kt.ct=n.horzLine.width,i.Kt.Gt=n.horzLine.style,i.Kt.R=n.horzLine.color,i.Yt.ct=n.vertLine.width,i.Yt.Gt=n.vertLine.style,i.Yt.R=n.vertLine.color,i._t=this.Jt.ni(),i.ut=this.Jt.si()}}function Tg(e,t,n,i,a,o){e.save(),e.globalCompositeOperation="copy",e.fillStyle=o,e.fillRect(t,n,i,a),e.restore()}function R1(e,t,n,i,a,o){e.beginPath(),e.roundRect?e.roundRect(t,n,i,a,o):(e.lineTo(t+i-o[1],n),o[1]!==0&&e.arcTo(t+i,n,t+i,n+o[1],o[1]),e.lineTo(t+i,n+a-o[2]),o[2]!==0&&e.arcTo(t+i,n+a,t+i-o[2],n+a,o[2]),e.lineTo(t+o[3],n+a),o[3]!==0&&e.arcTo(t,n+a,t,n+a-o[3],o[3]),e.lineTo(t,n+o[0]),o[0]!==0&&e.arcTo(t,n,t+o[0],n,o[0]))}function k1(e,t,n,i,a,o,c=0,d=[0,0,0,0],h=""){if(e.save(),!c||!h||h===o)return R1(e,t,n,i,a,d),e.fillStyle=o,e.fill(),void e.restore();const m=c/2;var b;R1(e,t+m,n+m,i-c,a-c,(b=-m,d.map((y=>y===0?y:y+b)))),o!=="transparent"&&(e.fillStyle=o,e.fill()),h!=="transparent"&&(e.lineWidth=c,e.strokeStyle=h,e.closePath(),e.stroke()),e.restore()}function _1(e,t,n,i,a,o,c){e.save(),e.globalCompositeOperation="copy";const d=e.createLinearGradient(0,0,0,a);d.addColorStop(0,o),d.addColorStop(1,c),e.fillStyle=d,e.fillRect(t,n,i,a),e.restore()}let A1=class{constructor(t,n){this.ht(t,n)}ht(t,n){this.qt=t,this.ei=n}$t(t,n){return this.qt.It?t.P+t.A+t.I:0}st(t,n,i,a){if(!this.qt.It||this.qt.ri.length===0)return;const o=this.qt.R,c=this.ei.Z,d=t.useBitmapCoordinateSpace((h=>{const m=h.context;m.font=n.k;const b=this.hi(h,n,i,a),y=b.ai;return b.li?k1(m,y.oi,y._i,y.ui,y.ci,c,y.di,[y.ft,0,0,y.ft],c):k1(m,y.fi,y._i,y.ui,y.ci,c,y.di,[0,y.ft,y.ft,0],c),this.qt.pi&&(m.fillStyle=o,m.fillRect(y.fi,y.mi,y.wi-y.fi,y.Mi)),this.qt.gi&&(m.fillStyle=n.D,m.fillRect(b.li?y.bi-y.di:0,y._i,y.di,y.Si-y._i)),b}));t.useMediaCoordinateSpace((({context:h})=>{const m=d.xi;h.font=n.k,h.textAlign=d.li?"right":"left",h.textBaseline="middle",h.fillStyle=o,h.fillText(this.qt.ri,m.Ci,(m._i+m.Si)/2+m.yi)}))}hi(t,n,i,a){const{context:o,bitmapSize:c,mediaSize:d,horizontalPixelRatio:h,verticalPixelRatio:m}=t,b=this.qt.pi||!this.qt.Pi?n.C:0,y=this.qt.ki?n.S:0,T=n.A+this.ei.Ti,k=n.I+this.ei.Ri,R=n.V,N=n.B,z=this.qt.ri,L=n.P,I=i.Di(o,z),F=Math.ceil(i.Ii(o,z)),B=L+T+k,Y=n.S+R+N+F+b,Z=Math.max(1,Math.floor(m));let et=Math.round(B*m);et%2!=Z%2&&(et+=1);const q=y>0?Math.max(1,Math.floor(y*h)):0,nt=Math.round(Y*h),ot=Math.round(b*h),Ct=this.ei.Vi??this.ei.Bi??this.ei.Ei,ct=Math.round(Ct*m)-Math.floor(.5*m),mt=Math.floor(ct+Z/2-et/2),Rt=mt+et,ut=a==="right",j=ut?d.width-y:y,J=ut?c.width-q:q;let ht,Tt,K;return ut?(ht=J-nt,Tt=J-ot,K=j-b-R-y):(ht=J+nt,Tt=J+ot,K=j+b+R),{li:ut,ai:{_i:mt,mi:ct,Si:Rt,ui:nt,ci:et,ft:2*h,di:q,oi:ht,fi:J,wi:Tt,Mi:Z,bi:c.width},xi:{_i:mt/m,Si:Rt/m,Ci:K,yi:I}}}},Eg=class{constructor(t){this.Ai={Ei:0,Z:"#000",Ri:0,Ti:0},this.Li={ri:"",It:!1,pi:!0,Pi:!1,Ht:"",R:"#FFF",gi:!1,ki:!1},this.zi={ri:"",It:!1,pi:!1,Pi:!0,Ht:"",R:"#FFF",gi:!0,ki:!0},this.xt=!0,this.Oi=new(t||A1)(this.Li,this.Ai),this.Ni=new(t||A1)(this.zi,this.Ai)}ri(){return this.Fi(),this.Li.ri}Ei(){return this.Fi(),this.Ai.Ei}Pt(){this.xt=!0}$t(t,n=!1){return Math.max(this.Oi.$t(t,n),this.Ni.$t(t,n))}Wi(){return this.Ai.Vi??null}Hi(){return this.Ai.Vi??this.Ai.Bi??this.Ei()}Ui(t){this.Ai.Bi=t??void 0}$i(){return this.Fi(),this.Li.It||this.zi.It}ji(){return this.Fi(),this.Li.It}Tt(t){return this.Fi(),this.Li.pi=this.Li.pi&&t.N().ticksVisible,this.zi.pi=this.zi.pi&&t.N().ticksVisible,this.Oi.ht(this.Li,this.Ai),this.Ni.ht(this.zi,this.Ai),this.Oi}qi(){return this.Fi(),this.Oi.ht(this.Li,this.Ai),this.Ni.ht(this.zi,this.Ai),this.Ni}Fi(){this.xt&&(this.Li.pi=!0,this.zi.pi=!1,this.Yi(this.Li,this.zi,this.Ai))}},hz=class extends Eg{constructor(t,n,i){super(),this.Jt=t,this.Ki=n,this.Gi=i}Yi(t,n,i){if(t.It=!1,this.Jt.N().mode===2)return;const a=this.Jt.N().horzLine;if(!a.labelVisible)return;const o=this.Ki.Lt();if(!this.Jt.It()||this.Ki.Zi()||o===null)return;const c=this.Ki.Xi().G(a.labelBackgroundColor);i.Z=c.Z,t.R=c.X;const d=2/12*this.Ki.P();i.Ti=d,i.Ri=d;const h=this.Gi(this.Ki);i.Ei=h.Ei,t.ri=this.Ki.Ji(h.Mt,o),t.It=!0}};const fz=/[1-9]/g;class N1{constructor(){this.qt=null}ht(t){this.qt=t}st(t,n){if(this.qt===null||this.qt.It===!1||this.qt.ri.length===0)return;const i=t.useMediaCoordinateSpace((({context:T})=>(T.font=n.k,Math.round(n.Qi.Ii(T,It(this.qt).ri,fz)))));if(i<=0)return;const a=n.tn,o=i+2*a,c=o/2,d=this.qt.nn;let h=this.qt.Ei,m=Math.floor(h-c)+.5;m<0?(h+=Math.abs(0-m),m=Math.floor(h-c)+.5):m+o>d&&(h-=Math.abs(d-(m+o)),m=Math.floor(h-c)+.5);const b=m+o,y=Math.ceil(0+n.S+n.C+n.A+n.P+n.I);t.useBitmapCoordinateSpace((({context:T,horizontalPixelRatio:k,verticalPixelRatio:R})=>{const N=It(this.qt);T.fillStyle=N.Z;const z=Math.round(m*k),L=Math.round(0*R),I=Math.round(b*k),F=Math.round(y*R),B=Math.round(2*k);if(T.beginPath(),T.moveTo(z,L),T.lineTo(z,F-B),T.arcTo(z,F,z+B,F,B),T.lineTo(I-B,F),T.arcTo(I,F,I,F-B,B),T.lineTo(I,L),T.fill(),N.pi){const Y=Math.round(N.Ei*k),Z=L,et=Math.round((Z+n.C)*R);T.fillStyle=N.R;const q=Math.max(1,Math.floor(k)),nt=Math.floor(.5*k);T.fillRect(Y-nt,Z,q,et-Z)}})),t.useMediaCoordinateSpace((({context:T})=>{const k=It(this.qt),R=0+n.S+n.C+n.A+n.P/2;T.font=n.k,T.textAlign="left",T.textBaseline="middle",T.fillStyle=k.R;const N=n.Qi.Di(T,"Apr0");T.translate(m+a,R+N),T.fillText(k.ri,0,0)}))}}class mz{constructor(t,n,i){this.xt=!0,this.Xt=new N1,this.Zt={It:!1,Z:"#4c525e",R:"white",ri:"",nn:0,Ei:NaN,pi:!0},this.Ct=t,this.sn=n,this.Gi=i}Pt(){this.xt=!0}Tt(){return this.xt&&(this.Rt(),this.xt=!1),this.Xt.ht(this.Zt),this.Xt}Rt(){const t=this.Zt;if(t.It=!1,this.Ct.N().mode===2)return;const n=this.Ct.N().vertLine;if(!n.labelVisible)return;const i=this.sn.Et();if(i.Zi())return;t.nn=i.nn();const a=this.Gi();if(a===null)return;t.Ei=a.Ei;const o=i.en(this.Ct.Bt());t.ri=i.rn(It(o)),t.It=!0;const c=this.sn.Xi().G(n.labelBackgroundColor);t.Z=c.Z,t.R=c.X,t.pi=i.N().ticksVisible}}let z1=class{constructor(){this.hn=null,this.an=0}ln(){return this.an}_n(t){this.an=t}Ft(){return this.hn}un(t){this.hn=t}cn(t){return[]}dn(){return[]}It(){return!0}};var D1;(function(e){e[e.Normal=0]="Normal",e[e.Magnet=1]="Magnet",e[e.Hidden=2]="Hidden",e[e.MagnetOHLC=3]="MagnetOHLC"})(D1||(D1={}));let gz=class extends z1{constructor(t,n){super(),this.yt=null,this.fn=NaN,this.pn=0,this.vn=!1,this.mn=new Map,this.wn=!1,this.Mn=new WeakMap,this.gn=new WeakMap,this.bn=NaN,this.Sn=NaN,this.xn=NaN,this.Cn=NaN,this.sn=t,this.yn=n,this.Pn=((a,o)=>c=>{const d=o(),h=a();if(c===It(this.yt).kn())return{Mt:h,Ei:d};{const m=It(c.Lt());return{Mt:c.Tn(d,m),Ei:d}}})((()=>this.fn),(()=>this.Sn));const i=((a,o)=>()=>{const c=this.sn.Et().Rn(a()),d=o();return c&&Number.isFinite(d)?{wt:c,Ei:d}:null})((()=>this.pn),(()=>this.ni()));this.Dn=new mz(this,t,i)}N(){return this.yn}In(t,n){this.xn=t,this.Cn=n}Vn(){this.xn=NaN,this.Cn=NaN}Bn(){return this.xn}En(){return this.Cn}An(t,n,i){this.wn||(this.wn=!0),this.vn=!0,this.Ln(t,n,i)}Bt(){return this.pn}ni(){return this.bn}si(){return this.Sn}It(){return this.vn}zn(){this.vn=!1,this.On(),this.fn=NaN,this.bn=NaN,this.Sn=NaN,this.yt=null,this.Vn(),this.Nn()}Fn(t){if(!this.yn.doNotSnapToHiddenSeriesIndices)return t;const n=this.sn,i=n.Et();let a=null,o=null;for(const m of n.Wn()){const b=m.Un().Hn(t,-1);if(b){if(b.$n===t)return t;(a===null||b.$n>a)&&(a=b.$n)}const y=m.Un().Hn(t,1);if(y){if(y.$n===t)return t;(o===null||y.$n<o)&&(o=y.$n)}}const c=[a,o].filter(T1);if(c.length===0)return t;const d=i.jt(t),h=c.map((m=>Math.abs(d-i.jt(m))));return c[h.indexOf(Math.min(...h))]}jn(t){let n=this.Mn.get(t);n||(n=new dz(this,t),this.Mn.set(t,n));let i=this.gn.get(t);return i||(i=new cz(this.sn,this,t),this.gn.set(t,i)),[n,i]}ti(t){return t===this.yt&&this.yn.horzLine.visible}ii(){return this.yn.vertLine.visible}qn(t,n){this.vn&&this.yt===t||this.mn.clear();const i=[];return this.yt===t&&i.push(this.Yn(this.mn,n,this.Pn)),i}dn(){return this.vn?[this.Dn]:[]}Kn(){return this.yt}Nn(){this.sn.Gn().forEach((t=>{var n,i;(n=this.Mn.get(t))==null||n.Pt(),(i=this.gn.get(t))==null||i.Pt()})),this.mn.forEach((t=>t.Pt())),this.Dn.Pt()}Zn(t){return t&&!t.kn().Zi()?t.kn():null}Ln(t,n,i){this.Xn(t,n,i)&&this.Nn()}Xn(t,n,i){const a=this.bn,o=this.Sn,c=this.fn,d=this.pn,h=this.yt,m=this.Zn(i);this.pn=t,this.bn=isNaN(t)?NaN:this.sn.Et().jt(t),this.yt=i;const b=m!==null?m.Lt():null;return m!==null&&b!==null?(this.fn=n,this.Sn=m.Nt(n,b)):(this.fn=NaN,this.Sn=NaN),a!==this.bn||o!==this.Sn||d!==this.pn||c!==this.fn||h!==this.yt}On(){const t=this.sn.Jn().map((i=>i.Un().Qn())).filter(T1),n=t.length===0?null:Math.max(...t);this.pn=n!==null?n:NaN}Yn(t,n,i){let a=t.get(n);return a===void 0&&(a=new hz(this,n,i),t.set(n,a)),a}};function Mg(e){return e==="left"||e==="right"}let Gr=class a1{constructor(t){this.ts=new Map,this.ns=[],this.ss=t}es(t,n){const i=(function(a,o){return a===void 0?o:{rs:Math.max(a.rs,o.rs),hs:a.hs||o.hs}})(this.ts.get(t),n);this.ts.set(t,i)}ls(){return this.ss}_s(t){const n=this.ts.get(t);return n===void 0?{rs:this.ss}:{rs:Math.max(this.ss,n.rs),hs:n.hs}}us(){this.cs(),this.ns=[{ds:0}]}fs(t){this.cs(),this.ns=[{ds:1,Wt:t}]}ps(t){this.vs(),this.ns.push({ds:5,Wt:t})}cs(){this.vs(),this.ns.push({ds:6})}ws(){this.cs(),this.ns=[{ds:4}]}Ms(t){this.cs(),this.ns.push({ds:2,Wt:t})}gs(t){this.cs(),this.ns.push({ds:3,Wt:t})}bs(){return this.ns}Ss(t){for(const n of t.ns)this.xs(n);this.ss=Math.max(this.ss,t.ss),t.ts.forEach(((n,i)=>{this.es(i,n)}))}static Cs(){return new a1(2)}static ys(){return new a1(3)}xs(t){switch(t.ds){case 0:this.us();break;case 1:this.fs(t.Wt);break;case 2:this.Ms(t.Wt);break;case 3:this.gs(t.Wt);break;case 4:this.ws();break;case 5:this.ps(t.Wt);break;case 6:this.vs()}}vs(){const t=this.ns.findIndex((n=>n.ds===5));t!==-1&&this.ns.splice(t,1)}},O1=class{formatTickmarks(t){return t.map((n=>this.format(n)))}};const P1=".";function el(e,t){if(!Ou(e))return"n/a";if(!Rf(t))throw new TypeError("invalid length");if(t<0||t>16)throw new TypeError("invalid length");return t===0?e.toString():("0000000000000000"+e.toString()).slice(-t)}class Rg extends O1{constructor(t,n){if(super(),n||(n=1),Ou(t)&&Rf(t)||(t=100),t<0)throw new TypeError("invalid base");this.Ki=t,this.Ps=n,this.ks()}format(t){const n=t<0?"−":"";return t=Math.abs(t),n+this.Ts(t)}ks(){if(this.Rs=0,this.Ki>0&&this.Ps>0){let t=this.Ki;for(;t>1;)t/=10,this.Rs++}}Ts(t){const n=this.Ki/this.Ps;let i=Math.floor(t),a="";const o=this.Rs!==void 0?this.Rs:NaN;if(n>1){let c=+(Math.round(t*n)-i*n).toFixed(this.Rs);c>=n&&(c-=n,i+=1),a=P1+el(+c.toFixed(this.Rs)*this.Ps,o)}else i=Math.round(i*n)/n,o>0&&(a=P1+el(0,o));return i.toFixed(0)+a}}class L1 extends Rg{constructor(t=100){super(t)}format(t){return`${super.format(t)}%`}}class pz extends O1{constructor(t){super(),this.Ds=t}format(t){let n="";return t<0&&(n="-",t=-t),t<995?n+this.Is(t):t<999995?n+this.Is(t/1e3)+"K":t<999999995?(t=1e3*Math.round(t/1e3),n+this.Is(t/1e6)+"M"):(t=1e6*Math.round(t/1e6),n+this.Is(t/1e9)+"B")}Is(t){let n;const i=Math.pow(10,this.Ds);return n=(t=Math.round(t*i)/i)>=1e-15&&t<1?t.toFixed(this.Ds).replace(/\.?0+$/,""):String(t),n.replace(/(\.[1-9]*)0+$/,((a,o)=>o))}}const vz=/[2-9]/g;class Af{constructor(t=50){this.Vs=0,this.Bs=1,this.Es=1,this.As={},this.Ls=new Map,this.zs=t}Os(){this.Vs=0,this.Ls.clear(),this.Bs=1,this.Es=1,this.As={}}Ii(t,n,i){return this.Ns(t,n,i).width}Di(t,n,i){const a=this.Ns(t,n,i);return((a.actualBoundingBoxAscent||0)-(a.actualBoundingBoxDescent||0))/2}Ns(t,n,i){const a=i||vz,o=String(n).replace(a,"0");if(this.Ls.has(o))return Hr(this.Ls.get(o)).Fs;if(this.Vs===this.zs){const d=this.As[this.Es];delete this.As[this.Es],this.Ls.delete(d),this.Es++,this.Vs--}t.save(),t.textBaseline="middle";const c=t.measureText(o);return t.restore(),c.width===0&&n.length||(this.Ls.set(o,{Fs:c,Ws:this.Bs}),this.As[this.Bs]=o,this.Vs++,this.Bs++),c}}class yz{constructor(t){this.Hs=null,this.M=null,this.Us="right",this.$s=t}js(t,n,i){this.Hs=t,this.M=n,this.Us=i}st(t){this.M!==null&&this.Hs!==null&&this.Hs.st(t,this.M,this.$s,this.Us)}}let I1=class{constructor(t,n,i){this.qs=t,this.$s=new Af(50),this.Ys=n,this.O=i,this.F=-1,this.Xt=new yz(this.$s)}Tt(){const t=this.O.Ks(this.Ys);if(t===null)return null;const n=t.Gs(this.Ys)?t.Zs():this.Ys.Ft();if(n===null)return null;const i=t.Xs(n);if(i==="overlay")return null;const a=this.O.Js();return a.P!==this.F&&(this.F=a.P,this.$s.Os()),this.Xt.js(this.qs.qi(),a,i),this.Xt}};class bz extends th{constructor(){super(...arguments),this.qt=null}ht(t){this.qt=t}Qs(t,n){var c;if(!((c=this.qt)!=null&&c.It))return null;const{ut:i,ct:a,te:o}=this.qt;return n>=i-a-7&&n<=i+a+7?{ie:this.qt,ne:Math.abs(n-i),se:2,ee:"price-line",te:o}:null}et({context:t,bitmapSize:n,horizontalPixelRatio:i,verticalPixelRatio:a}){if(this.qt===null||this.qt.It===!1)return;const o=Math.round(this.qt.ut*a);o<0||o>n.height||(t.lineCap="butt",t.strokeStyle=this.qt.R,t.lineWidth=Math.floor(this.qt.ct*i),Du(t,this.qt.Gt),C1(t,o,0,n.width))}}class My{constructor(t){this.re={ut:0,R:"rgba(0, 0, 0, 0)",ct:1,Gt:0,It:!1},this.he=new bz,this.xt=!0,this.ae=t,this.le=t.Qt(),this.he.ht(this.re)}Pt(){this.xt=!0}Tt(){return this.ae.It()?(this.xt&&(this.oe(),this.xt=!1),this.he):null}}class xz extends My{constructor(t){super(t)}oe(){this.re.It=!1;const t=this.ae.Ft(),n=t._e()._e;if(n!==2&&n!==3)return;const i=this.ae.N();if(!i.baseLineVisible||!this.ae.It())return;const a=this.ae.Lt();a!==null&&(this.re.It=!0,this.re.ut=t.Nt(a.Wt,a.Wt),this.re.R=i.baseLineColor,this.re.ct=i.baseLineWidth,this.re.Gt=i.baseLineStyle)}}class wz extends th{constructor(){super(...arguments),this.qt=null}ht(t){this.qt=t}ue(){return this.qt}et({context:t,horizontalPixelRatio:n,verticalPixelRatio:i}){const a=this.qt;if(a===null)return;const o=Math.max(1,Math.floor(n)),c=o%2/2,d=Math.round(a.ce.x*n)+c,h=a.ce.y*i;t.fillStyle=a.de,t.beginPath();const m=Math.max(2,1.5*a.fe)*n;t.arc(d,h,m,0,2*Math.PI,!1),t.fill(),t.fillStyle=a.pe,t.beginPath(),t.arc(d,h,a.ft*n,0,2*Math.PI,!1),t.fill(),t.lineWidth=o,t.strokeStyle=a.ve,t.beginPath(),t.arc(d,h,a.ft*n+o/2,0,2*Math.PI,!1),t.stroke()}}const Sz=[{me:0,we:.25,Me:4,ge:10,be:.25,Se:0,xe:.4,Ce:.8},{me:.25,we:.525,Me:10,ge:14,be:0,Se:0,xe:.8,Ce:0},{me:.525,we:1,Me:14,ge:14,be:0,Se:0,xe:0,Ce:0}];class Cz{constructor(t){this.Xt=new wz,this.xt=!0,this.ye=!0,this.Pe=performance.now(),this.ke=this.Pe-1,this.Te=t}Re(){this.ke=this.Pe-1,this.Pt()}De(){if(this.Pt(),this.Te.N().lastPriceAnimation===2){const t=performance.now(),n=this.ke-t;if(n>0)return void(n<650&&(this.ke+=2600));this.Pe=t,this.ke=t+2600}}Pt(){this.xt=!0}Ie(){this.ye=!0}It(){return this.Te.N().lastPriceAnimation!==0}Ve(){switch(this.Te.N().lastPriceAnimation){case 0:return!1;case 1:return!0;case 2:return performance.now()<=this.ke}}Tt(){return this.xt?(this.Rt(),this.xt=!1,this.ye=!1):this.ye&&(this.Be(),this.ye=!1),this.Xt}Rt(){this.Xt.ht(null);const t=this.Te.Qt().Et(),n=t.Ee(),i=this.Te.Lt();if(n===null||i===null)return;const a=this.Te.Ae(!0);if(a.Le||!n.ze(a.$n))return;const o={x:t.jt(a.$n),y:this.Te.Ft().Nt(a.Mt,i.Wt)},c=a.R,d=this.Te.N().lineWidth,h=this.Oe(this.Ne(),c);this.Xt.ht({de:c,fe:d,pe:h.pe,ve:h.ve,ft:h.ft,ce:o})}Be(){const t=this.Xt.ue();if(t!==null){const n=this.Oe(this.Ne(),t.de);t.pe=n.pe,t.ve=n.ve,t.ft=n.ft}}Ne(){return this.Ve()?performance.now()-this.Pe:2599}Fe(t,n,i,a){const o=i+(a-i)*n;return this.Te.Qt().Xi().Y(t,o)}Oe(t,n){const i=t%2600/2600;let a;for(const m of Sz)if(i>=m.me&&i<=m.we){a=m;break}$i(a!==void 0,"Last price animation internal logic error");const o=(i-a.me)/(a.we-a.me);return{pe:this.Fe(n,o,a.be,a.Se),ve:this.Fe(n,o,a.xe,a.Ce),ft:(c=o,d=a.Me,h=a.ge,d+(h-d)*c)};var c,d,h}}class Tz extends My{constructor(t){super(t)}oe(){const t=this.re;t.It=!1;const n=this.ae.N();if(!n.priceLineVisible||!this.ae.It())return;const i=this.ae.Ae(n.priceLineSource===0);i.Le||(t.It=!0,t.ut=i.Ei,t.R=this.ae.We(i.R),t.ct=n.priceLineWidth,t.Gt=n.priceLineStyle)}}class Ez extends Eg{constructor(t){super(),this.Jt=t}Yi(t,n,i){t.It=!1,n.It=!1;const a=this.Jt;if(!a.It())return;const o=a.N(),c=o.lastValueVisible,d=a.He()!=="",h=o.seriesLastValueMode===0,m=a.Ae(!1);if(m.Le)return;c&&(t.ri=this.Ue(m,c,h),t.It=t.ri.length!==0),(d||h)&&(n.ri=this.$e(m,c,d,h),n.It=n.ri.length>0);const b=a.We(m.R),y=this.Jt.Qt().Xi().G(b);i.Z=y.Z,i.Ei=m.Ei,n.Ht=a.Qt().Ut(m.Ei/a.Ft().$t()),t.Ht=b,t.R=y.X,n.R=y.X}$e(t,n,i,a){let o="";const c=this.Jt.He();return i&&c.length!==0&&(o+=`${c} `),n&&a&&(o+=this.Jt.Ft().je()?t.qe:t.Ye),o.trim()}Ue(t,n,i){return n?i?this.Jt.Ft().je()?t.Ye:t.qe:t.ri:""}}function B1(e,t,n,i){const a=Number.isFinite(t),o=Number.isFinite(n);return a&&o?e(t,n):a||o?a?t:n:i}class wr{constructor(t,n){this.Ke=t,this.Ge=n}Ze(t){return t!==null&&this.Ke===t.Ke&&this.Ge===t.Ge}Xe(){return new wr(this.Ke,this.Ge)}Je(){return this.Ke}Qe(){return this.Ge}tr(){return this.Ge-this.Ke}Zi(){return this.Ge===this.Ke||Number.isNaN(this.Ge)||Number.isNaN(this.Ke)}Ss(t){return t===null?this:new wr(B1(Math.min,this.Je(),t.Je(),-1/0),B1(Math.max,this.Qe(),t.Qe(),1/0))}ir(t){if(!Ou(t)||this.Ge-this.Ke===0)return;const n=.5*(this.Ge+this.Ke);let i=this.Ge-n,a=this.Ke-n;i*=t,a*=t,this.Ge=n+i,this.Ke=n+a}nr(t){Ou(t)&&(this.Ge+=t,this.Ke+=t)}sr(){return{minValue:this.Ke,maxValue:this.Ge}}static er(t){return t===null?null:new wr(t.minValue,t.maxValue)}}class kg{constructor(t,n){this.rr=t,this.hr=n||null}ar(){return this.rr}lr(){return this.hr}sr(){return{priceRange:this.rr===null?null:this.rr.sr(),margins:this.hr||void 0}}static er(t){return t===null?null:new kg(wr.er(t.priceRange),t.margins)}}const Mz=[2,4,8,16,32,64,128,256,512],Rz="Custom series with conflation reducer must have a priceValueBuilder method";class kz extends My{constructor(t,n){super(t),this._r=n}oe(){const t=this.re;t.It=!1;const n=this._r.N();if(!this.ae.It()||!n.lineVisible)return;const i=this._r.ur();i!==null&&(t.It=!0,t.ut=i,t.R=n.color,t.ct=n.lineWidth,t.Gt=n.lineStyle,t.te=this._r.N().id)}}class _z extends Eg{constructor(t,n){super(),this.Te=t,this._r=n}Yi(t,n,i){t.It=!1,n.It=!1;const a=this._r.N(),o=a.axisLabelVisible,c=a.title!=="",d=this.Te;if(!o||!d.It())return;const h=this._r.ur();if(h===null)return;c&&(n.ri=a.title,n.It=!0),n.Ht=d.Qt().Ut(h/d.Ft().$t()),t.ri=this.cr(a.price),t.It=!0;const m=this.Te.Qt().Xi().G(a.axisLabelColor||a.color);i.Z=m.Z;const b=a.axisLabelTextColor||m.X;t.R=b,n.R=b,i.Ei=h}cr(t){const n=this.Te.Lt();return n===null?"":this.Te.Ft().Ji(t,n.Wt)}}class Az{constructor(t,n){this.Te=t,this.yn=n,this.dr=new kz(t,this),this.qs=new _z(t,this),this.pr=new I1(this.qs,t,t.Qt())}vr(t){as(this.yn,t),this.Pt(),this.Te.Qt().mr()}N(){return this.yn}wr(){return this.dr}Mr(){return this.pr}gr(){return this.qs}Pt(){this.dr.Pt(),this.qs.Pt()}ur(){const t=this.Te,n=t.Ft();if(t.Qt().Et().Zi()||n.Zi())return null;const i=t.Lt();return i===null?null:n.Nt(this.yn.price,i.Wt)}}class Nz{constructor(){this.br=new WeakMap}Sr(t,n,i){const a=1/n*i;if(t>=a)return 1;const o=a/t,c=Math.pow(2,Math.floor(Math.log2(o)));return Math.min(c,512)}Cr(t,n,i,a=!1,o){if(t.length===0||n<=1)return t;const c=this.yr(n);if(c<=1)return t;const d=this.Pr(t);let h=d.kr.get(c);return h!==void 0||(h=this.Tr(t,c,i,a,o,d.kr),d.kr.set(c,h)),h}Rr(t,n,i,a,o=!1,c){if(i<1||t.length===0)return t;const d=this.Pr(t),h=d.kr.get(i);if(!h)return this.Cr(t,i,a,o,c);const m=this.Dr(t,n,i,h,o,a,c);return d.kr.set(i,m),m}yr(t){if(t<=2)return 2;for(const n of Mz)if(t<=n)return n;return 512}Ir(t){if(t.length===0)return 0;const n=t[0],i=t[t.length-1];return 31*t.length+17*n.$n+13*i.$n}Tr(t,n,i,a=!1,o,c=new Map){if(n===2)return this.Vr(t,2,i,a,o);const d=n/2;let h=c.get(d);return h||(h=this.Tr(t,d,i,a,o,c),c.set(d,h)),this.Br(h,i,a,o)}Vr(t,n,i,a=!1,o){const c=this.Er(t,n,i,a,o);return this.Ar(c,a)}Br(t,n,i=!1,a){const o=this.Er(t,2,n,i,a);return this.Ar(o,i)}Er(t,n,i,a=!1,o){const c=[];for(let d=0;d<t.length;d+=n)if(t.length-d>=n){const h=this.Lr(t[d],t[d+1],i,a,o);h.zr=!1,c.push(h)}else if(c.length===0)c.push(this.Or(t[d],!0));else{const h=c[c.length-1];c[c.length-1]=this.Nr(h,t[d],i,a,o)}return c}Fr(t,n){return(t??1)+(n??1)}Lr(t,n,i,a=!1,o){if(!a||!i||!o){const m=t.Wt[1]>n.Wt[1]?t.Wt[1]:n.Wt[1],b=t.Wt[2]<n.Wt[2]?t.Wt[2]:n.Wt[2];return{Wr:t.$n,Hr:n.$n,Ur:t.wt,$r:n.wt,jr:t.Wt[0],qr:m,Yr:b,Kr:n.Wt[3],Gr:this.Fr(t.Gr,n.Gr),Zr:void 0,zr:!1}}const c=i(this.Xr(t,o),this.Xr(n,o)),d=o(c),h=d.length?d[d.length-1]:0;return{Wr:t.$n,Hr:n.$n,Ur:t.wt,$r:n.wt,jr:t.Wt[0],qr:Math.max(t.Wt[1],h),Yr:Math.min(t.Wt[2],h),Kr:h,Gr:this.Fr(t.Gr,n.Gr),Zr:c,zr:!1}}Nr(t,n,i,a=!1,o){if(!a||!i||!o)return{Wr:t.Wr,Hr:n.$n,Ur:t.Ur,$r:n.wt,jr:t.jr,qr:t.qr>n.Wt[1]?t.qr:n.Wt[1],Yr:t.Yr<n.Wt[2]?t.Yr:n.Wt[2],Kr:n.Wt[3],Gr:t.Gr+(n.Gr??1),Zr:t.Zr,zr:!1};const c=t.Zr,d=this.Xr(n,o),h=c?{data:c,index:t.Wr,originalTime:t.Ur,time:t.Ur,priceValues:o(c)}:null,m=h?i(h,d):d.data,b=h?o(m):d.priceValues,y=b.length?b[b.length-1]:0;return{Wr:t.Wr,Hr:n.$n,Ur:t.Ur,$r:n.wt,jr:t.jr,qr:Math.max(t.qr,y),Yr:Math.min(t.Yr,y),Kr:y,Gr:t.Gr+(n.Gr??1),Zr:m,zr:!1}}Jr(t,n,i,a,o,c,d=!1,h){const m=n===a?o:t[n];if(i-n==1)return this.Or(m,!0);const b=n+1===a?o:t[n+1];let y=this.Lr(m,b,c,d,h);for(let T=n+2;T<i;T++){const k=T===a?o:t[T];y=this.Nr(y,k,c,d,h)}return y}Xr(t,n){const i=t.ue??{};return{data:t.ue,index:t.$n,originalTime:t.Qr,time:t.wt,priceValues:n(i)}}th(t,n=!1){const i=n===!0,a=!!t.Zr;return{$n:t.Wr,wt:t.Ur,Qr:t.Ur,Wt:[i?t.Kr:t.jr,t.qr,t.Yr,t.Kr],Gr:t.Gr,ue:i?a?t.Zr:{wt:t.Ur}:void 0}}Ar(t,n=!1){return t.map((i=>this.th(i,n)))}Dr(t,n,i,a,o=!1,c,d){if(a.length===0)return a;const h=t.length-1,m=Math.floor(h/i)*i;if(Math.min(m+i,t.length)-m<i&&t.length>i){const b=t.slice();return b[b.length-1]=n,this.Cr(b,i,c,o,d)}if(Math.floor((h-1)/i)===Math.floor(h/i)||a.length===1){const b=Math.min(m+i,t.length),y=b-m;if(y<=0)return a;const T=y===1?this.Or(m===h?n:t[m],!0):this.Jr(t,m,b,h,n,c,o,d);return a[a.length-1]=this.th(T,o),a}{const b=t.slice();return b[b.length-1]=n,this.Cr(b,i,c,o,d)}}Or(t,n=!1){return{Wr:t.$n,Hr:t.$n,Ur:t.wt,$r:t.wt,jr:t.Wt[0],qr:t.Wt[1],Yr:t.Wt[2],Kr:t.Wt[3],Gr:t.Gr??1,Zr:t.ue,zr:n}}Pr(t){const n=this.ih(t),i=this.Ir(t);return n.nh!==i&&(n.kr.clear(),n.nh=i),n}ih(t){let n=this.br.get(t);return n===void 0&&(n={nh:this.Ir(t),kr:new Map},this.br.set(t,n)),n}}class zz extends z1{constructor(t){super(),this.sn=t}Qt(){return this.sn}}const Dz={Bar:(e,t,n,i)=>{const a=t.upColor,o=t.downColor,c=It(e(n,i)),d=ql(c.Wt[0])<=ql(c.Wt[3]);return{sh:c.R??(d?a:o)}},Candlestick:(e,t,n,i)=>{const a=t.upColor,o=t.downColor,c=t.borderUpColor,d=t.borderDownColor,h=t.wickUpColor,m=t.wickDownColor,b=It(e(n,i)),y=ql(b.Wt[0])<=ql(b.Wt[3]);return{sh:b.R??(y?a:o),eh:b.Ht??(y?c:d),rh:b.hh??(y?h:m)}},Custom:(e,t,n,i)=>({sh:It(e(n,i)).R??t.color}),Area:(e,t,n,i)=>{const a=It(e(n,i));return{sh:a.vt??t.lineColor,vt:a.vt??t.lineColor,ah:a.ah??t.topColor,oh:a.oh??t.bottomColor}},Baseline:(e,t,n,i)=>{const a=It(e(n,i));return{sh:a.Wt[3]>=t.baseValue.price?t.topLineColor:t.bottomLineColor,_h:a._h??t.topLineColor,uh:a.uh??t.bottomLineColor,dh:a.dh??t.topFillColor1,fh:a.fh??t.topFillColor2,ph:a.ph??t.bottomFillColor1,mh:a.mh??t.bottomFillColor2}},Line:(e,t,n,i)=>{const a=It(e(n,i));return{sh:a.R??t.color,vt:a.R??t.color}},Histogram:(e,t,n,i)=>({sh:It(e(n,i)).R??t.color})};class Oz{constructor(t){this.wh=(n,i)=>i!==void 0?i.Wt:this.Te.Un().Mh(n),this.Te=t,this.gh=Dz[t.bh()]}Sh(t,n){return this.gh(this.wh,this.Te.N(),t,n)}}function j1(e,t,n,i,a=0,o=t.length){let c=o-a;for(;0<c;){const d=c>>1,h=a+d;i(t[h],n)===e?(a=h+1,c-=d+1):c=d}return a}const Pu=j1.bind(null,!0),Ry=j1.bind(null,!1);var F1;(function(e){e[e.NearestLeft=-1]="NearestLeft",e[e.None=0]="None",e[e.NearestRight=1]="NearestRight"})(F1||(F1={}));const $l=30;class Pz{constructor(){this.xh=[],this.Ch=new Map,this.yh=new Map,this.Ph=[]}kh(){return this.Th()>0?this.xh[this.xh.length-1]:null}Rh(){return this.Th()>0?this.Dh(0):null}Qn(){return this.Th()>0?this.Dh(this.xh.length-1):null}Th(){return this.xh.length}Zi(){return this.Th()===0}ze(t){return this.Ih(t,0)!==null}Mh(t){return this.Hn(t)}Hn(t,n=0){const i=this.Ih(t,n);return i===null?null:{...this.Vh(i),$n:this.Dh(i)}}Bh(){return this.xh}Eh(t,n,i){if(this.Zi())return null;let a=null;for(const o of i)a=_g(a,this.Ah(t,n,o));return a}ht(t){this.yh.clear(),this.Ch.clear(),this.xh=t,this.Ph=t.map((n=>n.$n))}Lh(){return this.Ph}Dh(t){return this.xh[t].$n}Vh(t){return this.xh[t]}Ih(t,n){const i=this.zh(t);if(i===null&&n!==0)switch(n){case-1:return this.Oh(t);case 1:return this.Nh(t);default:throw new TypeError("Unknown search mode")}return i}Oh(t){let n=this.Fh(t);return n>0&&(n-=1),n!==this.xh.length&&this.Dh(n)<t?n:null}Nh(t){const n=this.Wh(t);return n!==this.xh.length&&t<this.Dh(n)?n:null}zh(t){const n=this.Fh(t);return n===this.xh.length||t<this.xh[n].$n?null:n}Fh(t){return Pu(this.xh,t,((n,i)=>n.$n<i))}Wh(t){return Ry(this.xh,t,((n,i)=>n.$n>i))}Hh(t,n,i){let a=null;for(let o=t;o<n;o++){const c=this.xh[o].Wt[i];Number.isNaN(c)||(a===null?a={Uh:c,$h:c}:(c<a.Uh&&(a.Uh=c),c>a.$h&&(a.$h=c)))}return a}Ah(t,n,i){if(this.Zi())return null;let a=null;const o=It(this.Rh()),c=It(this.Qn()),d=Math.max(t,o),h=Math.min(n,c),m=Math.ceil(d/$l)*$l,b=Math.max(m,Math.floor(h/$l)*$l);{const T=this.Fh(d),k=this.Wh(Math.min(h,m,n));a=_g(a,this.Hh(T,k,i))}let y=this.Ch.get(i);y===void 0&&(y=new Map,this.Ch.set(i,y));for(let T=Math.max(m+1,d);T<b;T+=$l){const k=Math.floor(T/$l);let R=y.get(k);if(R===void 0){const N=this.Fh(k*$l),z=this.Wh((k+1)*$l-1);R=this.Hh(N,z,i),y.set(k,R)}a=_g(a,R)}{const T=this.Fh(b),k=this.Wh(h);a=_g(a,this.Hh(T,k,i))}return a}}function _g(e,t){return e===null?t:t===null?e:{Uh:Math.min(e.Uh,t.Uh),$h:Math.max(e.$h,t.$h)}}function ky(){return new Pz}const Ag={setLineStyle:Du};class Lz{constructor(t){this.jh=t}st(t,n,i){this.jh.draw(t,Ag)}qh(t,n,i){var a,o;(o=(a=this.jh).drawBackground)==null||o.call(a,t,Ag)}}class Iz{constructor(t){this.Ls=null,this.Yh=t}Tt(){var i;const t=this.Yh.renderer();if(t===null)return null;if(((i=this.Ls)==null?void 0:i.Kh)===t)return this.Ls.Gh;const n=new Lz(t);return this.Ls={Kh:t,Gh:n},n}Zh(){var t,n;return((n=(t=this.Yh).zOrder)==null?void 0:n.call(t))??"normal"}}class U1{constructor(t){this.Xh=null,this.Jh=t}Qh(){return this.Jh}Nn(){var t,n;(n=(t=this.Jh).updateAllViews)==null||n.call(t)}jn(){var i,a,o;const t=((a=(i=this.Jh).paneViews)==null?void 0:a.call(i))??[];if(((o=this.Xh)==null?void 0:o.Kh)===t)return this.Xh.Gh;const n=t.map((c=>new Iz(c)));return this.Xh={Kh:t,Gh:n},n}Qs(t,n){var i,a;return((a=(i=this.Jh).hitTest)==null?void 0:a.call(i,t,n))??null}}let Bz=class extends U1{cn(){return[]}};class jz{constructor(t){this.jh=t}st(t,n,i){this.jh.draw(t,Ag)}qh(t,n,i){var a,o;(o=(a=this.jh).drawBackground)==null||o.call(a,t,Ag)}}class V1{constructor(t){this.Ls=null,this.Yh=t}Tt(){var i;const t=this.Yh.renderer();if(t===null)return null;if(((i=this.Ls)==null?void 0:i.Kh)===t)return this.Ls.Gh;const n=new jz(t);return this.Ls={Kh:t,Gh:n},n}Zh(){var t,n;return((n=(t=this.Yh).zOrder)==null?void 0:n.call(t))??"normal"}}function H1(e){var t,n,i;return{ri:e.text(),Ei:e.coordinate(),Vi:(t=e.fixedCoordinate)==null?void 0:t.call(e),R:e.textColor(),Z:e.backColor(),It:((n=e.visible)==null?void 0:n.call(e))??!0,pi:((i=e.tickVisible)==null?void 0:i.call(e))??!0}}class Fz{constructor(t,n){this.Xt=new N1,this.ta=t,this.ia=n}Tt(){return this.Xt.ht({nn:this.ia.nn(),...H1(this.ta)}),this.Xt}}class Uz extends Eg{constructor(t,n){super(),this.ta=t,this.Ki=n}Yi(t,n,i){const a=H1(this.ta);i.Z=a.Z,t.R=a.R;const o=2/12*this.Ki.P();i.Ti=o,i.Ri=o,i.Ei=a.Ei,i.Vi=a.Vi,t.ri=a.ri,t.It=a.It,t.pi=a.pi}}class Vz extends U1{constructor(t,n){super(t),this.na=null,this.sa=null,this.ea=null,this.ra=null,this.Te=n}dn(){var a,o,c;const t=((o=(a=this.Jh).timeAxisViews)==null?void 0:o.call(a))??[];if(((c=this.na)==null?void 0:c.Kh)===t)return this.na.Gh;const n=this.Te.Qt().Et(),i=t.map((d=>new Fz(d,n)));return this.na={Kh:t,Gh:i},i}qn(){var a,o,c;const t=((o=(a=this.Jh).priceAxisViews)==null?void 0:o.call(a))??[];if(((c=this.sa)==null?void 0:c.Kh)===t)return this.sa.Gh;const n=this.Te.Ft(),i=t.map((d=>new Uz(d,n)));return this.sa={Kh:t,Gh:i},i}ha(){var i,a,o;const t=((a=(i=this.Jh).priceAxisPaneViews)==null?void 0:a.call(i))??[];if(((o=this.ea)==null?void 0:o.Kh)===t)return this.ea.Gh;const n=t.map((c=>new V1(c)));return this.ea={Kh:t,Gh:n},n}aa(){var i,a,o;const t=((a=(i=this.Jh).timeAxisPaneViews)==null?void 0:a.call(i))??[];if(((o=this.ra)==null?void 0:o.Kh)===t)return this.ra.Gh;const n=t.map((c=>new V1(c)));return this.ra={Kh:t,Gh:n},n}la(t,n){var i,a;return((a=(i=this.Jh).autoscaleInfo)==null?void 0:a.call(i,t,n))??null}}function Ng(e,t,n,i){e.forEach((a=>{t(a).forEach((o=>{o.Zh()===n&&i.push(o)}))}))}function zg(e){return e.jn()}function Hz(e){return e.ha()}function Gz(e){return e.aa()}const Yz=["Area","Line","Baseline"];class Dg extends zz{constructor(t,n,i,a,o){super(t),this.qt=ky(),this.dr=new Tz(this),this.oa=[],this._a=new xz(this),this.ua=null,this.ca=null,this.da=null,this.fa=[],this.pa=new Nz,this.va=new Map,this.ma=null,this.yn=i,this.wa=n;const c=new Ez(this);if(this.mn=[c],this.pr=new I1(c,this,t),Yz.includes(this.wa)&&(this.ua=new Cz(this)),this.Ma(),this.Yh=a(this,this.Qt(),o),this.wa==="Custom"){const d=this.Yh;d.ga&&this.ba(d.ga)}}m(){this.da!==null&&clearTimeout(this.da)}We(t){return this.yn.priceLineColor||t}Ae(t){const n={Le:!0},i=this.Ft();if(this.Qt().Et().Zi()||i.Zi()||this.qt.Zi())return n;const a=this.Qt().Et().Ee(),o=this.Lt();if(a===null||o===null)return n;let c,d;if(t){const y=this.qt.kh();if(y===null)return n;c=y,d=y.$n}else{const y=this.qt.Hn(a.bi(),-1);if(y===null||(c=this.qt.Mh(y.$n),c===null))return n;d=y.$n}const h=c.Wt[3],m=this.Sa().Sh(d,{Wt:c}),b=i.Nt(h,o.Wt);return{Le:!1,Mt:h,ri:i.Ji(h,o.Wt),qe:i.xa(h),Ye:i.Ca(h,o.Wt),R:m.sh,Ei:b,$n:d}}Sa(){return this.ca!==null||(this.ca=new Oz(this)),this.ca}N(){return this.yn}vr(t){const n=this.Qt(),{priceScaleId:i,visible:a,priceFormat:o}=t;i!==void 0&&i!==this.yn.priceScaleId&&n.ya(this,i),a!==void 0&&a!==this.yn.visible&&n.Pa();const c=t.conflationThresholdFactor!==void 0;as(this.yn,t),Object.prototype.hasOwnProperty.call(t,"autoscaleInfoProvider")&&t.autoscaleInfoProvider===void 0&&(this.yn.autoscaleInfoProvider=void 0),c&&(this.va.clear(),this.Qt().mr()),o!==void 0&&(this.Ma(),n.ka()),n.Ta(this),n.Ra(),this.Yh.Pt("options")}ht(t,n){this.qt.ht(t),this.va.clear();const i=this.Qt().Et().N();i.enableConflation&&i.precomputeConflationOnInit&&this.Da(i.precomputeConflationPriority),this.Ia(),this.ua!==null&&(n&&n.Va?this.ua.De():t.length===0&&this.ua.Re());const a=this.Qt().Ks(this);this.Qt().Ba(a),this.Qt().Ta(this),this.Qt().Ra(),this.Qt().mr()}Ia(){this.Yh.Pt("data")}Ea(t){const n=new Az(this,t);return this.oa.push(n),this.Qt().Ta(this),n}Aa(t){const n=this.oa.indexOf(t);n!==-1&&this.oa.splice(n,1),this.Qt().Ta(this)}La(){return this.oa}bh(){return this.wa}Lt(){const t=this.za();return t===null?null:{Wt:t.Wt[3],Oa:t.wt}}za(){const t=this.Qt().Et().Ee();if(t===null)return null;const n=t.Na();return this.qt.Hn(n,1)}Un(){return this.qt}ba(t){this.ma=t,this.va.clear()}Fa(){return!!this.Qt().Et().N().enableConflation&&this.Wa()>1}Rr(t){if(!this.Fa())return;const n=this.Wa();if(!this.va.has(n))return;const i=this.wa==="Custom",a=i&&this.ma||void 0,o=i&&this.Yh.Ha?h=>{const m=h,b=this.Yh.Ha(m);return Array.isArray(b)?b:[typeof b=="number"?b:0]}:void 0,c=this.pa.Rr(this.qt.Bh(),t,n,a,i,o),d=ky();d.ht(c),this.va.set(n,d)}Ua(){const t=this.Qt().Et().N().enableConflation;if(this.wa==="Custom"&&this.ma===null)return this.qt;if(!t)return this.qt;const n=this.Wa(),i=this.va.get(n);return i||(this.$a(n),this.va.get(n)??this.qt)}ja(t){const n=this.qt.Mh(t);return n===null?null:this.wa==="Bar"||this.wa==="Candlestick"||this.wa==="Custom"?{jr:n.Wt[0],qr:n.Wt[1],Yr:n.Wt[2],Kr:n.Wt[3]}:n.Wt[3]}qa(t){const n=[];Ng(this.fa,zg,"top",n);const i=this.ua;return i!==null&&i.It()&&(this.da===null&&i.Ve()&&(this.da=setTimeout((()=>{this.da=null,this.Qt().Ya()}),0)),i.Ie(),n.unshift(i)),n}jn(){const t=[];this.Ka()||t.push(this._a),t.push(this.Yh,this.dr);const n=this.oa.map((i=>i.wr()));return t.push(...n),Ng(this.fa,zg,"normal",t),t}Ga(){var o,c;const t=((c=(o=this.Yh).Ga)==null?void 0:c.call(o))??null;if(t===null)return null;const n=[];this.Ka()||n.push(this._a),n.push(...t.Za),Ng(this.fa,zg,"normal",n);const i=[];i.push(...t.qa,this.dr);const a=this.oa.map((d=>d.wr()));return i.push(...a),{Za:n,qa:i}}Xa(){return this.Ja(zg,"bottom")}Qa(t){return this.Ja(Hz,t)}tl(t){return this.Ja(Gz,t)}il(t,n){return this.fa.map((i=>i.Qs(t,n))).filter((i=>i!==null))}cn(){return[this.pr,...this.oa.map((t=>t.Mr()))]}qn(t,n){if(n!==this.hn&&!this.Ka())return[];const i=[...this.mn];for(const a of this.oa)i.push(a.gr());return this.fa.forEach((a=>{i.push(...a.qn())})),i}dn(){const t=[];return this.fa.forEach((n=>{t.push(...n.dn())})),t}la(t,n){if(this.yn.autoscaleInfoProvider!==void 0){const i=this.yn.autoscaleInfoProvider((()=>{const a=this.nl(t,n);return a===null?null:a.sr()}));return kg.er(i)}return this.nl(t,n)}Kh(){const t=this.yn.priceFormat;return t.base??1/t.minMove}sl(){return this.el}Nn(){var t;this.Yh.Pt();for(const n of this.mn)n.Pt();for(const n of this.oa)n.Pt();this.dr.Pt(),this._a.Pt(),(t=this.ua)==null||t.Pt(),this.fa.forEach((n=>n.Nn()))}Ft(){return It(super.Ft())}At(t){if(!((this.wa==="Line"||this.wa==="Area"||this.wa==="Baseline")&&this.yn.crosshairMarkerVisible))return null;const n=this.qt.Mh(t);return n===null?null:{Mt:n.Wt[3],ft:this.rl(),Ht:this.hl(),Ot:this.al(),zt:this.ll(t)}}He(){return this.yn.title}It(){return this.yn.visible}ol(t){this.fa.push(new Vz(t,this))}_l(t){this.fa=this.fa.filter((n=>n.Qh()!==t))}ul(){if(this.wa==="Custom")return t=>this.Yh.Ha(t)}cl(){if(this.wa==="Custom")return t=>this.Yh.dl(t)}fl(){return this.qt.Lh()}Ka(){return!Mg(this.Ft().pl())}nl(t,n){if(!Rf(t)||!Rf(n)||this.qt.Zi())return null;const i=this.wa==="Line"||this.wa==="Area"||this.wa==="Baseline"||this.wa==="Histogram"?[3]:[2,1],a=this.qt.Eh(t,n,i);let o=a!==null?new wr(a.Uh,a.$h):null,c=null;if(this.bh()==="Histogram"){const d=this.yn.base,h=new wr(d,d);o=o!==null?o.Ss(h):h}return this.fa.forEach((d=>{const h=d.la(t,n);if(h!=null&&h.priceRange){const m=new wr(h.priceRange.minValue,h.priceRange.maxValue);o=o!==null?o.Ss(m):m}h!=null&&h.margins&&(c=h.margins)})),new kg(o,c)}rl(){switch(this.wa){case"Line":case"Area":case"Baseline":return this.yn.crosshairMarkerRadius}return 0}hl(){switch(this.wa){case"Line":case"Area":case"Baseline":{const t=this.yn.crosshairMarkerBorderColor;if(t.length!==0)return t}}return null}al(){switch(this.wa){case"Line":case"Area":case"Baseline":return this.yn.crosshairMarkerBorderWidth}return 0}ll(t){switch(this.wa){case"Line":case"Area":case"Baseline":{const n=this.yn.crosshairMarkerBackgroundColor;if(n.length!==0)return n}}return this.Sa().Sh(t).sh}Ma(){switch(this.yn.priceFormat.type){case"custom":{const t=this.yn.priceFormat.formatter;this.el={format:t,formatTickmarks:this.yn.priceFormat.tickmarksFormatter??(n=>n.map(t))};break}case"volume":this.el=new pz(this.yn.priceFormat.precision);break;case"percent":this.el=new L1(this.yn.priceFormat.precision);break;default:{const t=Math.pow(10,this.yn.priceFormat.precision);this.el=new Rg(t,this.yn.priceFormat.minMove*t)}}this.hn!==null&&this.hn.vl()}Ja(t,n){const i=[];return Ng(this.fa,t,n,i),i}Wa(){const{ml:t,wl:n,Ml:i}=this.gl();return this.pa.Sr(t,n,i)}gl(){const t=this.Qt().Et(),n=t.ml(),i=window.devicePixelRatio||1,a=t.N().conflationThresholdFactor;return{ml:n,wl:i,Ml:this.yn.conflationThresholdFactor??a??1}}bl(t){const n=this.qt.Bh();let i;if(this.wa==="Custom"&&this.ma!==null){const o=this.ul();if(!o)throw new Error(Rz);i=this.pa.Cr(n,t,this.ma,!0,(c=>o(c)))}else i=this.pa.Cr(n,t);const a=ky();return a.ht(i),a}$a(t){const n=this.bl(t);this.va.set(t,n)}Da(t){var i;if(this.wa==="Custom"&&(this.ma===null||!this.ul()))return;this.va.clear();const n=this.Qt().Et().Sl();for(const a of n){const o=()=>{this.xl(a)},c=typeof window=="object"&&window||typeof self=="object"&&self;(i=c==null?void 0:c.yl)!=null&&i.Cl?c.yl.Cl((()=>{o()}),{se:t}):Promise.resolve().then((()=>o()))}}xl(t){if(this.va.has(t)||this.qt.Bh().length===0)return;const n=this.bl(t);this.va.set(t,n)}}const Wz=[3],Kz=[0,1,2,3];class Xz{constructor(t){this.yn=t}Pl(t,n,i){let a=t;if(this.yn.mode===0)return a;const o=i.kn(),c=o.Lt();if(c===null)return a;const d=o.Nt(t,c),h=i.kl().filter((b=>b instanceof Dg)).reduce(((b,y)=>{if(i.Gs(y)||!y.It())return b;const T=y.Ft(),k=y.Un();if(T.Zi()||!k.ze(n))return b;const R=k.Mh(n);if(R===null)return b;const N=ql(y.Lt()),z=this.yn.mode===3?Kz:Wz;return b.concat(z.map((L=>T.Nt(R.Wt[L],N.Wt))))}),[]);if(h.length===0)return a;h.sort(((b,y)=>Math.abs(b-d)-Math.abs(y-d)));const m=h[0];return a=o.Tn(m,c),a}}function Nf(e,t,n){return Math.min(Math.max(e,t),n)}function Og(e,t,n){return t-e<=n}function Pg(e){const t=Math.ceil(e);return t%2==0?t-1:t}class Qz extends th{constructor(){super(...arguments),this.qt=null}ht(t){this.qt=t}et({context:t,bitmapSize:n,horizontalPixelRatio:i,verticalPixelRatio:a}){if(this.qt===null)return;const o=Math.max(1,Math.floor(i));t.lineWidth=o,(function(c,d){c.save(),c.lineWidth%2&&c.translate(.5,.5),d(),c.restore()})(t,(()=>{const c=It(this.qt);if(c.Tl){t.strokeStyle=c.Rl,Du(t,c.Dl),t.beginPath();for(const d of c.Il){const h=Math.round(d.Vl*i);t.moveTo(h,-o),t.lineTo(h,n.height+o)}t.stroke()}if(c.Bl){t.strokeStyle=c.El,Du(t,c.Al),t.beginPath();for(const d of c.Ll){const h=Math.round(d.Vl*a);t.moveTo(-o,h),t.lineTo(n.width+o,h)}t.stroke()}}))}}class Zz{constructor(t){this.Xt=new Qz,this.xt=!0,this.yt=t}Pt(){this.xt=!0}Tt(){if(this.xt){const t=this.yt.Qt().N().grid,n={Bl:t.horzLines.visible,Tl:t.vertLines.visible,El:t.horzLines.color,Rl:t.vertLines.color,Al:t.horzLines.style,Dl:t.vertLines.style,Ll:this.yt.kn().zl(),Il:(this.yt.Qt().Et().zl()||[]).map((i=>({Vl:i.coord})))};this.Xt.ht(n),this.xt=!1}return this.Xt}}class Jz{constructor(t){this.Yh=new Zz(t)}wr(){return this.Yh}}const _y={Ol:4,Nl:1e-4};function eh(e,t){const n=100*(e-t)/t;return t<0?-n:n}function qz(e,t){const n=eh(e.Je(),t),i=eh(e.Qe(),t);return new wr(n,i)}function zf(e,t){const n=100*(e-t)/t+100;return t<0?-n:n}function $z(e,t){const n=zf(e.Je(),t),i=zf(e.Qe(),t);return new wr(n,i)}function Lg(e,t){const n=Math.abs(e);if(n<1e-15)return 0;const i=Math.log10(n+t.Nl)+t.Ol;return e<0?-i:i}function Df(e,t){const n=Math.abs(e);if(n<1e-15)return 0;const i=Math.pow(10,n-t.Ol)-t.Nl;return e<0?-i:i}function Of(e,t){if(e===null)return null;const n=Lg(e.Je(),t),i=Lg(e.Qe(),t);return new wr(n,i)}function nh(e,t){if(e===null)return null;const n=Df(e.Je(),t),i=Df(e.Qe(),t);return new wr(n,i)}function Ay(e){if(e===null)return _y;const t=Math.abs(e.Qe()-e.Je());if(t>=1||t<1e-15)return _y;const n=Math.ceil(Math.abs(Math.log10(t))),i=_y.Ol+n;return{Ol:i,Nl:1/Math.pow(10,i)}}class Ny{constructor(t,n){if(this.Fl=t,this.Wl=n,(function(i){if(i<0)return!1;if(i>1e18)return!0;for(let a=i;a>1;a/=10)if(a%10!=0)return!1;return!0})(this.Fl))this.Hl=[2,2.5,2];else{this.Hl=[];for(let i=this.Fl;i!==1;){if(i%2==0)this.Hl.push(2),i/=2;else{if(i%5!=0)throw new Error("unexpected base");this.Hl.push(2,2.5),i/=5}if(this.Hl.length>100)throw new Error("something wrong with base")}}}Ul(t,n,i){const a=this.Fl===0?0:1/this.Fl;let o=Math.pow(10,Math.max(0,Math.ceil(Math.log10(t-n)))),c=0,d=this.Wl[0];for(;;){const y=Og(o,a,1e-14)&&o>a+1e-14,T=Og(o,i*d,1e-14),k=Og(o,1,1e-14);if(!(y&&T&&k))break;o/=d,d=this.Wl[++c%this.Wl.length]}if(o<=a+1e-14&&(o=a),o=Math.max(1,o),this.Hl.length>0&&(h=o,m=1,b=1e-14,Math.abs(h-m)<b))for(c=0,d=this.Hl[0];Og(o,i*d,1e-14)&&o>a+1e-14;)o/=d,d=this.Hl[++c%this.Hl.length];var h,m,b;return o}}class G1{constructor(t,n,i,a){this.$l=[],this.Ki=t,this.Fl=n,this.jl=i,this.ql=a}Ul(t,n){if(t<n)throw new Error("high < low");const i=this.Ki.$t(),a=(t-n)*this.Yl()/i,o=new Ny(this.Fl,[2,2.5,2]),c=new Ny(this.Fl,[2,2,2.5]),d=new Ny(this.Fl,[2.5,2,2]),h=[];return h.push(o.Ul(t,n,a),c.Ul(t,n,a),d.Ul(t,n,a)),(function(m){if(m.length<1)throw Error("array is empty");let b=m[0];for(let y=1;y<m.length;++y)m[y]<b&&(b=m[y]);return b})(h)}Kl(){const t=this.Ki,n=t.Lt();if(n===null)return void(this.$l=[]);const i=t.$t(),a=this.jl(i-1,n),o=this.jl(0,n),c=this.Ki.N().entireTextOnly?this.Gl()/2:0,d=c,h=i-1-c,m=Math.max(a,o),b=Math.min(a,o);if(m===b)return void(this.$l=[]);const y=this.Ul(m,b);if(this.Zl(n,y,m,b,d,h),t.Xl()&&this.Jl(y,b,m)){const R=this.Ki.Ql();this.io(n,y,d,h,R,2*R)}const T=this.$l.map((R=>R.no)),k=this.Ki.so(T);for(let R=0;R<this.$l.length;R++)this.$l[R].eo=k[R]}zl(){return this.$l}Gl(){return this.Ki.P()}Yl(){return Math.ceil(this.Gl()*this.Ki.N().tickMarkDensity)}Zl(t,n,i,a,o,c){const d=this.$l,h=this.Ki;let m=i%n;m+=m<0?n:0;const b=i>=a?1:-1;let y=null,T=0;for(let k=i-m;k>a;k-=n){const R=this.ql(k,t,!0);y!==null&&Math.abs(R-y)<this.Yl()||R<o||R>c||(T<d.length?(d[T].Vl=R,d[T].eo=h.ro(k),d[T].no=k):d.push({Vl:R,eo:h.ro(k),no:k}),T++,y=R,h.ho()&&(n=this.Ul(k*b,a)))}d.length=T}io(t,n,i,a,o,c){const d=this.$l,h=this.ao(t,i,o,c),m=this.ao(t,a,-c,-o),b=this.ql(0,t,!0)-this.ql(n,t,!0);d.length>0&&d[0].Vl-h.Vl<b/2&&d.shift(),d.length>0&&m.Vl-d[d.length-1].Vl<b/2&&d.pop(),d.unshift(h),d.push(m)}ao(t,n,i,a){const o=(i+a)/2,c=this.jl(n+i,t),d=this.jl(n+a,t),h=Math.min(c,d),m=Math.max(c,d),b=Math.max(.1,this.Ul(m,h)),y=this.jl(n+o,t),T=y-y%b,k=this.ql(T,t,!0);return{eo:this.Ki.ro(T),Vl:k,no:T}}Jl(t,n,i){let a=ql(this.Ki.ar());return this.Ki.ho()&&(a=nh(a,this.Ki.lo())),a.Je()-n<t&&i-a.Qe()<t}}function Y1(e){return e.slice().sort(((t,n)=>It(t.ln())-It(n.ln())))}var W1;(function(e){e[e.Normal=0]="Normal",e[e.Logarithmic=1]="Logarithmic",e[e.Percentage=2]="Percentage",e[e.IndexedTo100=3]="IndexedTo100"})(W1||(W1={}));const K1=new L1,X1=new Rg(100,1);class tD{constructor(t,n,i,a,o){this.oo=0,this._o=null,this.rr=null,this.uo=null,this.co={do:!1,fo:null},this.po=!1,this.vo=0,this.mo=0,this.wo=new ti,this.Mo=new ti,this.bo=[],this.So=null,this.xo=null,this.Co=null,this.yo=null,this.Po=null,this.el=X1,this.ko=Ay(null),this.To=t,this.yn=n,this.Ro=i,this.Do=a,this.Io=o,this.Vo=new G1(this,100,this.Bo.bind(this),this.Eo.bind(this))}pl(){return this.To}N(){return this.yn}vr(t){if(as(this.yn,t),this.vl(),t.mode!==void 0&&this.Ao({_e:t.mode}),t.scaleMargins!==void 0){const n=Hr(t.scaleMargins.top),i=Hr(t.scaleMargins.bottom);if(n<0||n>1)throw new Error(`Invalid top margin - expect value between 0 and 1, given=${n}`);if(i<0||i>1)throw new Error(`Invalid bottom margin - expect value between 0 and 1, given=${i}`);if(n+i>1)throw new Error(`Invalid margins - sum of margins must be less than 1, given=${n+i}`);this.Lo(),this.Co=null}}zo(){return this.yn.autoScale}Oo(){return this.po}ho(){return this.yn.mode===1}je(){return this.yn.mode===2}No(){return this.yn.mode===3}lo(){return this.ko}_e(){return{hs:this.yn.autoScale,Fo:this.yn.invertScale,_e:this.yn.mode}}Ao(t){const n=this._e();let i=null;t.hs!==void 0&&(this.yn.autoScale=t.hs),t._e!==void 0&&(this.yn.mode=t._e,t._e!==2&&t._e!==3||(this.yn.autoScale=!0),this.co.do=!1),n._e===1&&t._e!==n._e&&((function(o,c){if(o===null)return!1;const d=Df(o.Je(),c),h=Df(o.Qe(),c);return isFinite(d)&&isFinite(h)})(this.rr,this.ko)?(i=nh(this.rr,this.ko),i!==null&&this.Wo(i)):this.yn.autoScale=!0),t._e===1&&t._e!==n._e&&(i=Of(this.rr,this.ko),i!==null&&this.Wo(i));const a=n._e!==this.yn.mode;a&&(n._e===2||this.je())&&this.vl(),a&&(n._e===3||this.No())&&this.vl(),t.Fo!==void 0&&n.Fo!==t.Fo&&(this.yn.invertScale=t.Fo,this.Ho()),this.Mo.p(n,this._e())}Uo(){return this.Mo}P(){return this.Ro.fontSize}$t(){return this.oo}$o(t){this.oo!==t&&(this.oo=t,this.Lo(),this.Co=null)}jo(){if(this._o)return this._o;const t=this.$t()-this.qo()-this.Yo();return this._o=t,t}ar(){return this.Ko(),this.rr}Wo(t,n){const i=this.rr;(n||i===null&&t!==null||i!==null&&!i.Ze(t))&&(this.Co=null,this.rr=t)}Go(t){this.Wo(t),this.Zo(t!==null)}Zi(){return this.Ko(),this.oo===0||!this.rr||this.rr.Zi()}Xo(t){return this.Fo()?t:this.$t()-1-t}Nt(t,n){return this.je()?t=eh(t,n):this.No()&&(t=zf(t,n)),this.Eo(t,n)}Jo(t,n,i){this.Ko();const a=this.Yo(),o=It(this.ar()),c=o.Je(),d=o.Qe(),h=this.jo()-1,m=this.Fo(),b=h/(d-c),y=i===void 0?0:i.from,T=i===void 0?t.length:i.to,k=this.Qo();for(let R=y;R<T;R++){const N=t[R],z=N.Mt;if(isNaN(z))continue;let L=z;k!==null&&(L=k(N.Mt,n));const I=a+b*(L-c),F=m?I:this.oo-1-I;N.ut=F}}t_(t,n,i){this.Ko();const a=this.Yo(),o=It(this.ar()),c=o.Je(),d=o.Qe(),h=this.jo()-1,m=this.Fo(),b=h/(d-c),y=i===void 0?0:i.from,T=i===void 0?t.length:i.to,k=this.Qo();for(let R=y;R<T;R++){const N=t[R];let z=N.jr,L=N.qr,I=N.Yr,F=N.Kr;k!==null&&(z=k(N.jr,n),L=k(N.qr,n),I=k(N.Yr,n),F=k(N.Kr,n));let B=a+b*(z-c),Y=m?B:this.oo-1-B;N.i_=Y,B=a+b*(L-c),Y=m?B:this.oo-1-B,N.n_=Y,B=a+b*(I-c),Y=m?B:this.oo-1-B,N.s_=Y,B=a+b*(F-c),Y=m?B:this.oo-1-B,N.e_=Y}}Tn(t,n){const i=this.Bo(t,n);return this.r_(i,n)}r_(t,n){let i=t;return this.je()?i=(function(a,o){return o<0&&(a=-a),a/100*o+o})(i,n):this.No()&&(i=(function(a,o){return a-=100,o<0&&(a=-a),a/100*o+o})(i,n)),i}kl(){return this.bo}Dt(){return this.xo||(this.xo=Y1(this.bo)),this.xo}h_(t){this.bo.indexOf(t)===-1&&(this.bo.push(t),this.vl(),this.a_())}l_(t){const n=this.bo.indexOf(t);if(n===-1)throw new Error("source is not attached to scale");this.bo.splice(n,1),this.bo.length===0&&(this.Ao({hs:!0}),this.Wo(null)),this.vl(),this.a_()}Lt(){let t=null;for(const n of this.bo){const i=n.Lt();i!==null&&(t===null||i.Oa<t.Oa)&&(t=i)}return t===null?null:t.Wt}Fo(){return this.yn.invertScale}zl(){const t=this.Lt()===null;if(this.Co!==null&&(t||this.Co.o_===t))return this.Co.zl;this.Vo.Kl();const n=this.Vo.zl();return this.Co={zl:n,o_:t},this.wo.p(),n}__(){return this.wo}u_(t){this.je()||this.No()||this.yo===null&&this.uo===null&&(this.Zi()||(this.yo=this.oo-t,this.uo=It(this.ar()).Xe()))}c_(t){if(this.je()||this.No()||this.yo===null)return;this.Ao({hs:!1}),(t=this.oo-t)<0&&(t=0);let n=(this.yo+.2*(this.oo-1))/(t+.2*(this.oo-1));const i=It(this.uo).Xe();n=Math.max(n,.1),i.ir(n),this.Wo(i)}d_(){this.je()||this.No()||(this.yo=null,this.uo=null)}f_(t){this.zo()||this.Po===null&&this.uo===null&&(this.Zi()||(this.Po=t,this.uo=It(this.ar()).Xe()))}p_(t){if(this.zo()||this.Po===null)return;const n=It(this.ar()).tr()/(this.jo()-1);let i=t-this.Po;this.Fo()&&(i*=-1);const a=i*n,o=It(this.uo).Xe();o.nr(a),this.Wo(o,!0),this.Co=null}v_(){this.zo()||this.Po!==null&&(this.Po=null,this.uo=null)}sl(){return this.el||this.vl(),this.el}Ji(t,n){switch(this.yn.mode){case 2:return this.m_(eh(t,n));case 3:return this.sl().format(zf(t,n));default:return this.cr(t)}}ro(t){switch(this.yn.mode){case 2:return this.m_(t);case 3:return this.sl().format(t);default:return this.cr(t)}}so(t){switch(this.yn.mode){case 2:return this.w_(t);case 3:return this.sl().formatTickmarks(t);default:return this.M_(t)}}xa(t){return this.cr(t,It(this.So).sl())}Ca(t,n){return t=eh(t,n),this.m_(t,K1)}g_(){return this.bo}b_(t){this.co={fo:t,do:!1}}Nn(){this.bo.forEach((t=>t.Nn()))}Xl(){return this.yn.ensureEdgeTickMarksVisible&&this.zo()}Ql(){return this.P()/2}vl(){this.Co=null;let t=1/0;this.So=null;for(const i of this.bo)i.ln()<t&&(t=i.ln(),this.So=i);let n=100;this.So!==null&&(n=Math.round(this.So.Kh())),this.el=X1,this.je()?(this.el=K1,n=100):this.No()?(this.el=new Rg(100,1),n=100):this.So!==null&&(this.el=this.So.sl()),this.Vo=new G1(this,n,this.Bo.bind(this),this.Eo.bind(this)),this.Vo.Kl()}a_(){this.xo=null}S_(){return this.So===null||this.je()||this.No()?1:1/this.So.Kh()}Xi(){return this.Io}Zo(t){this.po=t}qo(){return this.Fo()?this.yn.scaleMargins.bottom*this.$t()+this.mo:this.yn.scaleMargins.top*this.$t()+this.vo}Yo(){return this.Fo()?this.yn.scaleMargins.top*this.$t()+this.vo:this.yn.scaleMargins.bottom*this.$t()+this.mo}Ko(){this.co.do||(this.co.do=!0,this.x_())}Lo(){this._o=null}Eo(t,n){if(this.Ko(),this.Zi())return 0;t=this.ho()&&t?Lg(t,this.ko):t;const i=It(this.ar()),a=this.Yo()+(this.jo()-1)*(t-i.Je())/i.tr();return this.Xo(a)}Bo(t,n){if(this.Ko(),this.Zi())return 0;const i=this.Xo(t),a=It(this.ar()),o=a.Je()+a.tr()*((i-this.Yo())/(this.jo()-1));return this.ho()?Df(o,this.ko):o}Ho(){this.Co=null,this.Vo.Kl()}x_(){if(this.Oo()&&!this.zo())return;const t=this.co.fo;if(t===null)return;let n=null;const i=this.g_();let a=0,o=0;for(const h of i){if(!h.It())continue;const m=h.Lt();if(m===null)continue;const b=h.la(t.Na(),t.bi());let y=b&&b.ar();if(y!==null){switch(this.yn.mode){case 1:y=Of(y,this.ko);break;case 2:y=qz(y,m.Wt);break;case 3:y=$z(y,m.Wt)}if(n=n===null?y:n.Ss(It(y)),b!==null){const T=b.lr();T!==null&&(a=Math.max(a,T.above),o=Math.max(o,T.below))}}}if(this.Xl()&&(a=Math.max(a,this.Ql()),o=Math.max(o,this.Ql())),a===this.vo&&o===this.mo||(this.vo=a,this.mo=o,this.Co=null,this.Lo()),n!==null){if(n.Je()===n.Qe()){const h=5*this.S_();this.ho()&&(n=nh(n,this.ko)),n=new wr(n.Je()-h,n.Qe()+h),this.ho()&&(n=Of(n,this.ko))}if(this.ho()){const h=nh(n,this.ko),m=Ay(h);if(c=m,d=this.ko,c.Ol!==d.Ol||c.Nl!==d.Nl){const b=this.uo!==null?nh(this.uo,this.ko):null;this.ko=m,n=Of(h,m),b!==null&&(this.uo=Of(b,m))}}this.Wo(n)}else this.rr===null&&(this.Wo(new wr(-.5,.5)),this.ko=Ay(null));var c,d}Qo(){return this.je()?eh:this.No()?zf:this.ho()?t=>Lg(t,this.ko):null}C_(t,n,i){return n===void 0?(i===void 0&&(i=this.sl()),i.format(t)):n(t)}y_(t,n,i){return n===void 0?(i===void 0&&(i=this.sl()),i.formatTickmarks(t)):n(t)}cr(t,n){return this.C_(t,this.Do.priceFormatter,n)}M_(t,n){const i=this.Do.priceFormatter;return this.y_(t,this.Do.tickmarksPriceFormatter??(i?a=>a.map(i):void 0),n)}m_(t,n){return this.C_(t,this.Do.percentageFormatter,n)}w_(t,n){const i=this.Do.percentageFormatter;return this.y_(t,this.Do.tickmarksPercentageFormatter??(i?a=>a.map(i):void 0),n)}}function Q1(e){return e instanceof Dg}class zy{constructor(t,n){this.bo=[],this.P_=new Map,this.oo=0,this.k_=0,this.T_=1,this.xo=null,this.R_=null,this.D_=!1,this.I_=new ti,this.fa=[],this.ia=t,this.sn=n,this.V_=new Jz(this);const i=n.N();this.B_=this.E_("left",i.leftPriceScale),this.A_=this.E_("right",i.rightPriceScale),this.B_.Uo().i(this.L_.bind(this,this.B_),this),this.A_.Uo().i(this.L_.bind(this,this.A_),this),this.z_(i)}z_(t){if(t.leftPriceScale&&this.B_.vr(t.leftPriceScale),t.rightPriceScale&&this.A_.vr(t.rightPriceScale),t.localization&&(this.B_.vl(),this.A_.vl()),t.overlayPriceScales){const n=Array.from(this.P_.values());for(const i of n){const a=It(i[0].Ft());a.vr(t.overlayPriceScales),t.localization&&a.vl()}}}O_(t){switch(t){case"left":return this.B_;case"right":return this.A_}return this.P_.has(t)?Hr(this.P_.get(t))[0].Ft():null}m(){this.Qt().N_().u(this),this.B_.Uo().u(this),this.A_.Uo().u(this),this.bo.forEach((t=>{t.m&&t.m()})),this.fa=this.fa.filter((t=>{const n=t.Qh();return n.detached&&n.detached(),!1})),this.I_.p()}F_(){return this.T_}W_(t){this.T_=t}Qt(){return this.sn}nn(){return this.k_}$t(){return this.oo}H_(t){this.k_=t,this.U_()}$o(t){this.oo=t,this.B_.$o(t),this.A_.$o(t),this.bo.forEach((n=>{if(this.Gs(n)){const i=n.Ft();i!==null&&i.$o(t)}})),this.U_()}j_(t){this.D_=t}q_(){return this.D_}Y_(){return this.bo.filter(Q1)}kl(){return this.bo}Gs(t){const n=t.Ft();return n===null||this.B_!==n&&this.A_!==n}h_(t,n,i){this.K_(t,n,i?t.ln():this.bo.length)}l_(t,n){const i=this.bo.indexOf(t);$i(i!==-1,"removeDataSource: invalid data source"),this.bo.splice(i,1),n||this.bo.forEach(((c,d)=>c._n(d)));const a=It(t.Ft()).pl();if(this.P_.has(a)){const c=Hr(this.P_.get(a)),d=c.indexOf(t);d!==-1&&(c.splice(d,1),c.length===0&&this.P_.delete(a))}const o=t.Ft();o&&o.kl().indexOf(t)>=0&&(o.l_(t),this.G_(o)),this.Z_()}Xs(t){return t===this.B_?"left":t===this.A_?"right":"overlay"}X_(){return this.B_}J_(){return this.A_}Q_(t,n){t.u_(n)}tu(t,n){t.c_(n),this.U_()}iu(t){t.d_()}nu(t,n){t.f_(n)}su(t,n){t.p_(n),this.U_()}eu(t){t.v_()}U_(){this.bo.forEach((t=>{t.Nn()}))}kn(){const[t,n]=this.ru();let i=null;return t.N().visible&&t.kl().length!==0?i=t:n.N().visible&&n.kl().length!==0?i=n:this.bo.length!==0&&(i=this.bo[0].Ft()),i===null&&(i=this.Zs()??t),i}Zs(){const[t,n]=this.ru();return t.N().visible?t:n.N().visible?n:null}G_(t){t!==null&&t.zo()&&this.hu(t)}au(t){const n=this.ia.Ee();t.Ao({hs:!0}),n!==null&&t.b_(n),this.U_()}lu(){this.hu(this.B_),this.hu(this.A_)}ou(){this.G_(this.B_),this.G_(this.A_),this.bo.forEach((t=>{this.Gs(t)&&this.G_(t.Ft())})),this.U_(),this.sn.mr()}Dt(){return this.xo===null&&(this.xo=Y1(this.bo)),this.xo}_u(){var c;const t=this.Dt(),n=(c=this.sn.cu())==null?void 0:c.uu,i=this.sn.N().hoveredSeriesOnTop,a=this.R_;if(a!==null&&a.Kh===t&&a.du===n&&a.fu===i)return a.pu;const o=(function(d,h,m){if(!m)return d;const b=d.indexOf(h);if(b===-1||b===d.length-1)return d;const y=[];for(let T=0;T<d.length;T++)T!==b&&y.push(d[T]);return y.push(d[b]),y})(t,n,i);return this.R_={Kh:t,du:n,fu:i,pu:o},o}vu(t,n){n=Nf(n,0,this.bo.length-1);const i=this.bo.indexOf(t);$i(i!==-1,"setSeriesOrder: invalid data source"),this.bo.splice(i,1),this.bo.splice(n,0,t),this.bo.forEach(((a,o)=>a._n(o))),this.Z_();for(const a of[this.B_,this.A_])a.a_(),a.vl();this.sn.mr()}Vt(){return this.Dt().filter(Q1)}mu(){return this.I_}wu(){return this.V_}ol(t){this.fa.push(new Bz(t))}_l(t){this.fa=this.fa.filter((n=>n.Qh()!==t)),t.detached&&t.detached(),this.sn.mr()}Mu(){return this.fa}il(t,n){return this.fa.map((i=>i.Qs(t,n))).filter((i=>i!==null))}hu(t){const n=t.g_();if(n&&n.length>0&&!this.ia.Zi()){const i=this.ia.Ee();i!==null&&t.b_(i)}t.Nn()}K_(t,n,i){let a=this.O_(n);if(a===null&&(a=this.E_(n,this.sn.N().overlayPriceScales)),this.bo.splice(i,0,t),!Mg(n)){const o=this.P_.get(n)||[];o.push(t),this.P_.set(n,o)}t._n(i),a.h_(t),t.un(a),this.G_(a),this.Z_()}Z_(){this.xo=null,this.R_=null}ru(){return this.sn.N().defaultVisiblePriceScaleId==="left"?[this.B_,this.A_]:[this.A_,this.B_]}L_(t,n,i){n._e!==i._e&&this.hu(t)}E_(t,n){const i={visible:!0,autoScale:!0,...tl(n)},a=new tD(t,i,this.sn.N().layout,this.sn.N().localization,this.sn.Xi());return a.$o(this.$t()),a}}function Dy(e,t){return t===null||e.se===2&&t.se!==2||(t.se!==2||e.se===2)&&e.ne!==t.ne&&e.ne<t.ne}function Z1(e){return{te:e.te,ie:e.ie}}function eD(e){return{ne:e.distance??0,se:e.hitTestPriority??(e.itemType==="marker"?2:0),ee:e.itemType??"primitive",gu:e.cursorStyle,te:e.externalId}}function Ig(e){return{uu:e.uu,bu:Z1(e.Su),gu:e.Su.gu,ee:e.Su.ee??"primitive"}}function nD(e,t,n,i){var o;let a=null;for(const c of e){let d=((o=c.Qs)==null?void 0:o.call(c,t,n,i))??null;if(d===null){const h=c.Tt(i);d=h!==null&&h.Qs?h.Qs(t,n):null}if(d!==null){const h={xu:c,Su:d};(a===null||Dy(h.Su,a.Su))&&(a=h)}}return a}function iD(e){return e.jn!==void 0}function J1(e,t,n){const i=[e,...e.Dt()].reverse(),a=(function(d,h,m){var N;let b,y,T;for(const z of d){const L=((N=z.il)==null?void 0:N.call(z,h,m))??[];for(const I of L){const F=eD(I);k=I.zOrder,R=b==null?void 0:b.zOrder,(!R||k==="top"&&R!=="top"||k==="normal"&&R==="bottom"||I.zOrder===(b==null?void 0:b.zOrder)&&y!==void 0&&Dy(F,y)||I.zOrder===(b==null?void 0:b.zOrder)&&y===void 0)&&(b=I,y=F,T=z)}}var k,R;return b&&T&&y?{Su:y,Cu:b,uu:T}:null})(i,t,n);if((a==null?void 0:a.Cu.zOrder)==="top")return Ig(a);let o=null,c=null;for(const d of i){if(a&&a.uu===d&&a.Cu.zOrder!=="bottom"&&!a.Cu.isBackground)return o??Ig(a);if(iD(d)){const h=nD(d.jn(e),t,n,e);if(h!==null){const m={uu:d,xu:h.xu,bu:Z1(h.Su),gu:h.Su.gu,ee:h.Su.ee??"primitive"};(o===null||Dy(h.Su,c))&&(o=m,c=h.Su)}}if(a&&a.uu===d&&a.Cu.zOrder!=="bottom"&&a.Cu.isBackground)return o??Ig(a)}return o!==null?o:a!=null&&a.Cu?Ig(a):null}class rD{constructor(t,n,i=50){this.Vs=0,this.Bs=1,this.Es=1,this.Ls=new Map,this.As=new Map,this.yu=t,this.Pu=n,this.zs=i}ku(t){const n=t.time,i=this.Pu.cacheKey(n),a=this.Ls.get(i);if(a!==void 0)return a.Tu;if(this.Vs===this.zs){const c=this.As.get(this.Es);this.As.delete(this.Es),this.Ls.delete(Hr(c)),this.Es++,this.Vs--}const o=this.yu(t);return this.Ls.set(i,{Tu:o,Ws:this.Bs}),this.As.set(this.Bs,i),this.Vs++,this.Bs++,o}}class ih{constructor(t,n){$i(t<=n,"right should be >= left"),this.Ru=t,this.Du=n}Na(){return this.Ru}bi(){return this.Du}Iu(){return this.Du-this.Ru+1}ze(t){return this.Ru<=t&&t<=this.Du}Ze(t){return this.Ru===t.Na()&&this.Du===t.bi()}}function q1(e,t){return e===null||t===null?e===t:e.Ze(t)}class sD{constructor(){this.Vu=new Map,this.Ls=null,this.Bu=!1}Eu(t){this.Bu=t,this.Ls=null}Au(t,n){this.Lu(n),this.Ls=null;for(let i=n;i<t.length;++i){const a=t[i];let o=this.Vu.get(a.timeWeight);o===void 0&&(o=[],this.Vu.set(a.timeWeight,o)),o.push({index:i,time:a.time,weight:a.timeWeight,originalTime:a.originalTime})}}zu(t,n,i,a,o){const c=Math.ceil(n/t);return this.Ls!==null&&this.Ls.Ou===c&&o===this.Ls.Nu&&i===this.Ls.Fu||(this.Ls={Nu:o,Fu:i,zl:this.Wu(c,i,a),Ou:c}),this.Ls.zl}Lu(t){if(t===0)return void this.Vu.clear();const n=[];this.Vu.forEach(((i,a)=>{t<=i[0].index?n.push(a):i.splice(Pu(i,t,(o=>o.index<t)),1/0)}));for(const i of n)this.Vu.delete(i)}Wu(t,n,i){let a=[];const o=c=>!n||i.has(c.index);for(const c of Array.from(this.Vu.keys()).sort(((d,h)=>h-d))){if(!this.Vu.get(c))continue;const d=a;a=[];const h=d.length;let m=0;const b=Hr(this.Vu.get(c)),y=b.length;let T=1/0,k=-1/0;for(let R=0;R<y;R++){const N=b[R],z=N.index;for(;m<h;){const L=d[m],I=L.index;if(!(I<z&&o(L))){T=I;break}m++,a.push(L),k=I,T=1/0}if(T-z>=t&&z-k>=t&&o(N))a.push(N),k=z;else if(this.Bu)return d}for(;m<h;m++)o(d[m])&&a.push(d[m])}return a}}class rh{constructor(t){this.Hu=t}Uu(){return this.Hu===null?null:new ih(Math.floor(this.Hu.Na()),Math.ceil(this.Hu.bi()))}$u(){return this.Hu}static ju(){return new rh(null)}}function aD(e,t){return e.weight>t.weight?e:t}class oD{constructor(t,n,i,a){this.k_=0,this.qu=null,this.Yu=[],this.Po=null,this.yo=null,this.Ku=new sD,this.Gu=new Map,this.Zu=rh.ju(),this.Xu=!0,this.Ju=new ti,this.Qu=new ti,this.tc=new ti,this.nc=null,this.sc=null,this.ec=new Map,this.rc=-1,this.hc=[],this.ac=1,this.yn=n,this.Do=i,this.lc=n.rightOffset,this.oc=n.barSpacing,this.sn=t,this._c(n),this.Pu=a,this.uc(),this.Ku.Eu(n.uniformDistribution),this.cc(),this.dc()}N(){return this.yn}fc(t){as(this.Do,t),this.vc(),this.uc()}vr(t,n){as(this.yn,t),this.yn.fixLeftEdge&&this.mc(),this.yn.fixRightEdge&&this.wc(),t.barSpacing!==void 0&&this.sn.Ms(t.barSpacing),t.rightOffset!==void 0&&this.sn.gs(t.rightOffset),this._c(t),t.minBarSpacing===void 0&&t.maxBarSpacing===void 0||this.sn.Ms(t.barSpacing??this.oc),t.ignoreWhitespaceIndices!==void 0&&t.ignoreWhitespaceIndices!==this.yn.ignoreWhitespaceIndices&&this.dc(),this.vc(),this.uc(),t.enableConflation===void 0&&t.conflationThresholdFactor===void 0||this.cc(),this.tc.p()}Rn(t){var n;return((n=this.Yu[t])==null?void 0:n.time)??null}en(t){return this.Yu[t]??null}Mc(t,n){if(this.Yu.length<1)return null;if(this.Pu.key(t)>this.Pu.key(this.Yu[this.Yu.length-1].time))return n?this.Yu.length-1:null;const i=Pu(this.Yu,this.Pu.key(t),((a,o)=>this.Pu.key(a.time)<o));return this.Pu.key(t)<this.Pu.key(this.Yu[i].time)?n?i:null:i}Zi(){return this.k_===0||this.Yu.length===0||this.qu===null}gc(){return this.Yu.length>0}Ee(){return this.bc(),this.Zu.Uu()}Sc(){return this.bc(),this.Zu.$u()}xc(){const t=this.Ee();if(t===null)return null;const n={from:t.Na(),to:t.bi()};return this.Cc(n)}Cc(t){const n=Math.round(t.from),i=Math.round(t.to),a=It(this.yc()),o=It(this.Pc());return{from:It(this.en(Math.max(a,n))),to:It(this.en(Math.min(o,i)))}}kc(t){return{from:It(this.Mc(t.from,!0)),to:It(this.Mc(t.to,!0))}}nn(){return this.k_}H_(t){if(!isFinite(t)||t<=0||this.k_===t)return;const n=this.Sc(),i=this.k_;if(this.k_=t,this.Xu=!0,this.yn.lockVisibleTimeRangeOnResize&&i!==0){const a=this.oc*t/i;this.oc=a}if(this.yn.fixLeftEdge&&n!==null&&n.Na()<=0){const a=i-t;this.lc-=Math.round(a/this.oc)+1,this.Xu=!0}this.Tc(),this.Rc()}jt(t){if(this.Zi()||!Rf(t))return 0;const n=this.Dc()+this.lc-t;return this.k_-(n+.5)*this.oc-1}Ic(t,n){const i=this.Dc(),a=n===void 0?0:n.from,o=n===void 0?t.length:n.to;for(let c=a;c<o;c++){const d=t[c].wt,h=i+this.lc-d,m=this.k_-(h+.5)*this.oc-1;t[c]._t=m}}Vc(t,n){const i=Math.ceil(this.Bc(t));return n&&this.yn.ignoreWhitespaceIndices&&!this.Ec(i)?this.Ac(i):i}gs(t){this.Xu=!0,this.lc=t,this.Rc(),this.sn.Lc(),this.sn.mr()}ml(){return this.oc}Ms(t){const n=this.oc;if(this.zc(t),this.yn.rightOffsetPixels!==void 0&&n!==0){const i=this.lc*n/this.oc;this.lc=i}this.Rc(),this.sn.Lc(),this.sn.mr()}Oc(){return this.lc}zl(){if(this.Zi())return null;if(this.sc!==null)return this.sc;const t=this.oc,n=5*(this.sn.N().layout.fontSize+4)/8*(this.yn.tickMarkMaxCharacterLength||8),i=Math.round(n/t),a=It(this.Ee()),o=Math.max(a.Na(),a.Na()-i),c=Math.max(a.bi(),a.bi()-i),d=this.Ku.zu(t,n,this.yn.ignoreWhitespaceIndices,this.ec,this.rc),h=this.yc()+i,m=this.Pc()-i,b=this.Nc(),y=this.yn.fixLeftEdge||b,T=this.yn.fixRightEdge||b;let k=0;for(const R of d){if(!(o<=R.index&&R.index<=c))continue;let N;k<this.hc.length?(N=this.hc[k],N.coord=this.jt(R.index),N.label=this.Fc(R),N.weight=R.weight):(N={needAlignCoordinate:!1,coord:this.jt(R.index),label:this.Fc(R),weight:R.weight},this.hc.push(N)),this.oc>n/2&&!b?N.needAlignCoordinate=!1:N.needAlignCoordinate=y&&R.index<=h||T&&R.index>=m,k++}return this.hc.length=k,this.sc=this.hc,this.hc}Wc(){let t;this.Xu=!0,this.Ms(this.yn.barSpacing),t=this.yn.rightOffsetPixels!==void 0?this.yn.rightOffsetPixels/this.ml():this.yn.rightOffset,this.gs(t)}Hc(t){this.Xu=!0,this.qu=t,this.Rc(),this.mc()}Uc(t,n){const i=this.Bc(t),a=this.ml(),o=a+n*(a/10);this.Ms(o),this.yn.rightBarStaysOnScroll||this.gs(this.Oc()+(i-this.Bc(t)))}u_(t){this.Po&&this.v_(),this.yo===null&&this.nc===null&&(this.Zi()||(this.yo=t,this.$c()))}c_(t){if(this.nc===null)return;const n=Nf(this.k_-t,0,this.k_),i=Nf(this.k_-It(this.yo),0,this.k_);n!==0&&i!==0&&this.Ms(this.nc.ml*n/i)}d_(){this.yo!==null&&(this.yo=null,this.jc())}f_(t){this.Po===null&&this.nc===null&&(this.Zi()||(this.Po=t,this.$c()))}p_(t){if(this.Po===null)return;const n=(this.Po-t)/this.ml();this.lc=It(this.nc).Oc+n,this.Xu=!0,this.Rc()}v_(){this.Po!==null&&(this.Po=null,this.jc())}qc(){this.Yc(this.yn.rightOffset)}Yc(t,n=400){if(!isFinite(t))throw new RangeError("offset is required and must be finite number");if(!isFinite(n)||n<=0)throw new RangeError("animationDuration (optional) must be finite positive number");const i=this.lc,a=performance.now();this.sn.ps({Kc:o=>(o-a)/n>=1,Gc:o=>{const c=(o-a)/n;return c>=1?t:i+(t-i)*c}})}Pt(t,n){this.Xu=!0,this.Yu=t,this.Ku.Au(t,n),this.Rc()}Zc(){return this.Ju}Xc(){return this.Qu}Jc(){return this.tc}Dc(){return this.qu||0}Qc(t,n){const i=t.Iu(),a=n&&this.yn.rightOffsetPixels||0;this.zc((this.k_-a)/i),this.lc=t.bi()-this.Dc(),n&&(this.lc=a?a/this.ml():this.yn.rightOffset),this.Rc(),this.Xu=!0,this.sn.Lc(),this.sn.mr()}td(){const t=this.yc(),n=this.Pc();if(t===null||n===null)return;const i=!this.yn.rightOffsetPixels&&this.yn.rightOffset||0;this.Qc(new ih(t,n+i),!0)}nd(t){const n=new ih(t.from,t.to);this.Qc(n)}rn(t){return this.Do.timeFormatter!==void 0?this.Do.timeFormatter(t.originalTime):this.Pu.formatHorzItem(t.time)}dc(){if(!this.yn.ignoreWhitespaceIndices)return;this.ec.clear();const t=this.sn.Jn();for(const n of t)for(const i of n.fl())this.ec.set(i,!0);this.rc++}sd(){return this.ac}Sl(){const t=1/(window.devicePixelRatio||1),n=this.yn.minBarSpacing;if(n>=t)return[1];const i=[1];let a=2;for(;a<=512;)n<t/a&&i.push(a),a*=2;return i}Nc(){const t=this.sn.N().handleScroll,n=this.sn.N().handleScale;return!(t.horzTouchDrag||t.mouseWheel||t.pressedMouseMove||t.vertTouchDrag||n.axisDoubleClickReset.time||n.axisPressedMouseMove.time||n.mouseWheel||n.pinch)}yc(){return this.Yu.length===0?null:0}Pc(){return this.Yu.length===0?null:this.Yu.length-1}ed(t){return(this.k_-1-t)/this.oc}Bc(t){const n=this.ed(t),i=this.Dc()+this.lc-n;return Math.round(1e6*i)/1e6}zc(t){const n=this.oc;this.oc=t,this.Tc(),n!==this.oc&&(this.Xu=!0,this.rd(),this.cc())}bc(){if(!this.Xu)return;if(this.Xu=!1,this.Zi())return void this.hd(rh.ju());const t=this.Dc(),n=this.k_/this.oc,i=this.lc+t,a=new ih(i-n+1,i);this.hd(new rh(a))}Tc(){const t=Nf(this.oc,this.ad(),this.ld());this.oc!==t&&(this.oc=t,this.Xu=!0)}ld(){return this.yn.maxBarSpacing>0?this.yn.maxBarSpacing:.5*this.k_}ad(){return this.yn.fixLeftEdge&&this.yn.fixRightEdge&&this.Yu.length!==0?this.k_/this.Yu.length:this.yn.minBarSpacing}cc(){if(!this.yn.enableConflation)return void(this.ac=1);const t=1/(window.devicePixelRatio||1)*(this.yn.conflationThresholdFactor??1);if(this.oc>=t)return void(this.ac=1);const n=t/this.oc,i=Math.pow(2,Math.floor(Math.log2(n)));this.ac=Math.min(i,512)}Rc(){const t=this.od();t!==null&&this.lc<t&&(this.lc=t,this.Xu=!0);const n=this._d();this.lc>n&&(this.lc=n,this.Xu=!0)}od(){const t=this.yc(),n=this.qu;return t===null||n===null?null:t-n-1+(this.yn.fixLeftEdge?this.k_/this.oc:Math.min(2,this.Yu.length))}_d(){return this.yn.fixRightEdge?0:this.k_/this.oc-Math.min(2,this.Yu.length)}$c(){this.nc={ml:this.ml(),Oc:this.Oc()}}jc(){this.nc=null}Fc(t){let n=this.Gu.get(t.weight);return n===void 0&&(n=new rD((i=>this.ud(i)),this.Pu),this.Gu.set(t.weight,n)),n.ku(t)}ud(t){return this.Pu.formatTickmark(t,this.Do)}hd(t){const n=this.Zu;this.Zu=t,q1(n.Uu(),this.Zu.Uu())||this.Ju.p(),q1(n.$u(),this.Zu.$u())||this.Qu.p(),this.rd()}rd(){this.sc=null}vc(){this.rd(),this.Gu.clear()}uc(){this.Pu.updateFormatter(this.Do)}mc(){if(!this.yn.fixLeftEdge)return;const t=this.yc();if(t===null)return;const n=this.Ee();if(n===null)return;const i=n.Na()-t;if(i<0){const a=this.lc-i-1;this.gs(a)}this.Tc()}wc(){this.Rc(),this.Tc()}Ec(t){return!this.yn.ignoreWhitespaceIndices||this.ec.get(t)||!1}Ac(t){const n=(function*(a){const o=Math.round(a),c=o<a;let d=1;for(;;)c?(yield o+d,yield o-d):(yield o-d,yield o+d),d++})(t),i=this.Pc();for(;i;){const a=n.next().value;if(this.ec.get(a))return a;if(a<0||a>i)break}return t}_c(t){if(t.rightOffsetPixels!==void 0){const n=t.rightOffsetPixels/(t.barSpacing||this.oc);this.sn.gs(n)}}}var $1,tS,eS,Bg,nS;(function(e){e[e.OnTouchEnd=0]="OnTouchEnd",e[e.OnNextTap=1]="OnNextTap"})($1||($1={}));class lD{constructor(t,n,i){this.dd=[],this.fd=[],this.pd=null,this.k_=0,this.vd=null,this.md=new ti,this.wd=new ti,this.Md=null,this.gd=t,this.yn=n,this.Pu=i,this.Io=new rz(this.yn.layout.colorParsers),this.bd=new iz(this),this.ia=new oD(this,n.timeScale,this.yn.localization,i),this.Ct=new gz(this,n.crosshair),this.Sd=new Xz(n.crosshair),n.addDefaultPane&&(this.xd(0),this.dd[0].W_(2)),this.Cd=this.yd(0),this.Pd=this.yd(1)}ka(){this.kd(Gr.ys())}mr(){this.kd(Gr.Cs())}Ya(){this.kd(new Gr(1))}Ta(t){const n=this.Td(t);this.kd(n)}cu(){return this.vd}Rd(t){var i,a,o,c,d,h,m,b,y;if(((i=this.vd)==null?void 0:i.uu)===(t==null?void 0:t.uu)&&((o=(a=this.vd)==null?void 0:a.bu)==null?void 0:o.te)===((c=t==null?void 0:t.bu)==null?void 0:c.te)&&((h=(d=this.vd)==null?void 0:d.bu)==null?void 0:h.ie)===((m=t==null?void 0:t.bu)==null?void 0:m.ie)&&((b=this.vd)==null?void 0:b.gu)===(t==null?void 0:t.gu)&&((y=this.vd)==null?void 0:y.ee)===(t==null?void 0:t.ee))return;const n=this.vd;this.vd=t,n!==null&&this.Ta(n.uu),t!==null&&t.uu!==(n==null?void 0:n.uu)&&this.Ta(t.uu)}N(){return this.yn}vr(t){as(this.yn,t),this.dd.forEach((n=>n.z_(t))),t.timeScale!==void 0&&this.ia.vr(t.timeScale),t.localization!==void 0&&this.ia.fc(t.localization),(t.leftPriceScale||t.rightPriceScale)&&this.md.p(),this.Cd=this.yd(0),this.Pd=this.yd(1),this.ka()}Dd(t,n,i=0){const a=this.dd[i];if(a===void 0)return;if(t==="left")return as(this.yn,{leftPriceScale:n}),a.z_({leftPriceScale:n}),this.md.p(),void this.ka();if(t==="right")return as(this.yn,{rightPriceScale:n}),a.z_({rightPriceScale:n}),this.md.p(),void this.ka();const o=this.Id(t,i);o!==null&&(o.Ft.vr(n),this.md.p())}Id(t,n){const i=this.dd[n];if(i===void 0)return null;const a=i.O_(t);return a!==null?{Kn:i,Ft:a}:null}Et(){return this.ia}Gn(){return this.dd}Vd(){return this.Ct}Bd(){return this.wd}Ed(t,n){t.$o(n),this.Lc()}H_(t){this.k_=t,this.ia.H_(this.k_),this.dd.forEach((n=>n.H_(t))),this.Lc()}Ad(t){this.dd.length!==1&&($i(t>=0&&t<this.dd.length,"Invalid pane index"),this.dd.splice(t,1),this.ka())}Ld(t,n){if(this.dd.length<2)return;$i(t>=0&&t<this.dd.length,"Invalid pane index");const i=this.dd[t],a=this.dd.reduce(((y,T)=>y+T.F_()),0),o=this.dd.reduce(((y,T)=>y+T.$t()),0),c=o-30*(this.dd.length-1);n=Math.min(c,Math.max(30,n));const d=a/o,h=i.$t();i.W_(n*d);let m=n-h,b=this.dd.length-1;for(const y of this.dd)if(y!==i){const T=Math.min(c,Math.max(30,y.$t()-m/b));m-=y.$t()-T,b-=1;const k=T*d;y.W_(k)}this.ka()}zd(t,n){$i(t>=0&&t<this.dd.length&&n>=0&&n<this.dd.length,"Invalid pane index");const i=this.dd[t],a=this.dd[n];this.dd[t]=a,this.dd[n]=i,this.ka()}Od(t,n){if($i(t>=0&&t<this.dd.length&&n>=0&&n<this.dd.length,"Invalid pane index"),t===n)return;const[i]=this.dd.splice(t,1);this.dd.splice(n,0,i),this.ka()}Q_(t,n,i){t.Q_(n,i)}tu(t,n,i){t.tu(n,i),this.Ra(),this.kd(this.Nd(t,2))}iu(t,n){t.iu(n),this.kd(this.Nd(t,2))}nu(t,n,i){n.zo()||t.nu(n,i)}su(t,n,i){n.zo()||(t.su(n,i),this.Ra(),this.kd(this.Nd(t,2)))}eu(t,n){n.zo()||(t.eu(n),this.kd(this.Nd(t,2)))}au(t,n){t.au(n),this.kd(this.Nd(t,2))}Fd(t){this.ia.u_(t)}Wd(t,n){const i=this.Et();if(i.Zi()||n===0)return;const a=i.nn();t=Math.max(1,Math.min(t,a)),i.Uc(t,n),this.Lc()}Hd(t){this.Ud(0),this.$d(t),this.jd()}qd(t){this.ia.c_(t),this.Lc()}Yd(){this.ia.d_(),this.mr()}Ud(t){this.ia.f_(t)}$d(t){this.ia.p_(t),this.Lc()}jd(){this.ia.v_(),this.mr()}Jn(){return this.fd}Wn(){return this.pd===null&&(this.pd=this.fd.filter((t=>t.It()))),this.pd}Pa(){this.pd=null}Kd(t,n,i,a,o){this.Ct.In(t,n);let c=NaN,d=this.ia.Vc(t,!0);const h=this.ia.Ee();h!==null&&(d=Math.min(Math.max(h.Na(),d),h.bi())),d=this.Ct.Fn(d);const m=a.kn(),b=m.Lt();if(b!==null&&(c=m.Tn(n,b)),c=this.Sd.Pl(c,d,a),this.Ct.An(d,c,a),this.Ya(),!o){const y=J1(a,t,n);this.Rd(y&&{uu:y.uu,bu:y.bu,gu:y.gu||null,ee:y.ee}),this.wd.p(this.Ct.Bt(),{x:t,y:n},i)}}Gd(t,n,i){const a=i.kn(),o=a.Lt(),c=a.Nt(t,It(o)),d=this.ia.Mc(n,!0),h=this.ia.jt(It(d));this.Kd(h,c,null,i,!0)}Zd(t){this.Vd().zn(),this.Ya(),t||this.wd.p(null,null,null)}Ra(){const t=this.Ct.Kn();if(t!==null){const n=this.Ct.Bn(),i=this.Ct.En();this.Kd(n,i,null,t)}this.Ct.Nn()}Xd(t,n,i){const a=this.ia.Rn(0);n!==void 0&&i!==void 0&&this.ia.Pt(n,i);const o=this.ia.Rn(0),c=this.ia.Dc(),d=this.ia.Ee();if(d!==null&&a!==null&&o!==null){const h=d.ze(c),m=this.Pu.key(a)>this.Pu.key(o),b=t!==null&&t>c&&!m,y=this.ia.N().allowShiftVisibleRangeOnWhitespaceReplacement,T=h&&(i!==void 0||y)&&this.ia.N().shiftVisibleRangeOnNewBar;if(b&&!T){const k=t-c;this.ia.gs(this.ia.Oc()-k)}}this.ia.Hc(t)}Ba(t){t!==null&&t.ou()}Ks(t){if((function(i){return i instanceof zy})(t))return t;const n=this.dd.find((i=>i.Dt().includes(t)));return n===void 0?null:n}Lc(){this.dd.forEach((t=>t.ou())),this.Ra()}m(){this.dd.forEach((t=>t.m())),this.dd.length=0,this.yn.localization.priceFormatter=void 0,this.yn.localization.percentageFormatter=void 0,this.yn.localization.timeFormatter=void 0}Jd(){return this.bd}Js(){return this.bd.N()}N_(){return this.md}Qd(t,n){const i=this.xd(n);this.tf(t,i),this.fd.push(t),this.Pa(),this.fd.length===1?this.ka():this.mr()}if(t){const n=this.Ks(t),i=this.fd.indexOf(t);$i(i!==-1,"Series not found");const a=It(n);this.fd.splice(i,1),a.l_(t),t.m&&t.m(),this.Pa(),this.ia.dc(),this.nf(a)}ya(t,n){const i=It(this.Ks(t));i.l_(t,!0),i.h_(t,n,!0)}td(){const t=Gr.Cs();t.us(),this.kd(t)}sf(t){const n=Gr.Cs();n.fs(t),this.kd(n)}ws(){const t=Gr.Cs();t.ws(),this.kd(t)}Ms(t){const n=Gr.Cs();n.Ms(t),this.kd(n)}gs(t){const n=Gr.Cs();n.gs(t),this.kd(n)}ps(t){const n=Gr.Cs();n.ps(t),this.kd(n)}cs(){const t=Gr.Cs();t.cs(),this.kd(t)}ef(){const t=this.yn.defaultVisiblePriceScaleId,n=this.yn.leftPriceScale.visible;return n!==this.yn.rightPriceScale.visible?n?"left":"right":t}rf(t,n){if($i(n>=0,"Index should be greater or equal to 0"),n===this.hf(t))return;const i=It(this.Ks(t));i.l_(t);const a=this.xd(n);this.tf(t,a);let o=!1;i.kl().length===0&&(o=this.nf(i)),o||this.ka()}af(){return this.Pd}$(){return this.Cd}Ut(t){const n=this.Pd,i=this.Cd;if(n===i)return n;if(t=Math.max(0,Math.min(100,Math.round(100*t))),this.Md===null||this.Md.ah!==i||this.Md.oh!==n)this.Md={ah:i,oh:n,lf:new Map};else{const o=this.Md.lf.get(t);if(o!==void 0)return o}const a=this.Io.tt(i,n,t/100);return this.Md.lf.set(t,a),a}_f(t){return this.dd.indexOf(t)}Xi(){return this.Io}uf(){return this.cf()}cf(t){const n=new zy(this.ia,this);this.dd.push(n);const i=t??this.dd.length-1,a=Gr.ys();return a.es(i,{rs:0,hs:!0}),this.kd(a),n}xd(t){return $i(t>=0,"Index should be greater or equal to 0"),(t=Math.min(this.dd.length,t))<this.dd.length?this.dd[t]:this.cf(t)}hf(t){return this.dd.findIndex((n=>n.Y_().includes(t)))}Nd(t,n){const i=new Gr(n);if(t!==null){const a=this.dd.indexOf(t);i.es(a,{rs:n})}return i}Td(t,n){return n===void 0&&(n=2),this.Nd(this.Ks(t),n)}kd(t){this.gd&&this.gd(t),this.dd.forEach((n=>n.wu().wr().Pt()))}tf(t,n){const i=t.N().priceScaleId,a=i!==void 0?i:this.ef();n.h_(t,a),Mg(a)||t.vr(t.N())}yd(t){const n=this.yn.layout;return n.background.type==="gradient"?t===0?n.background.topColor:n.background.bottomColor:n.background.color}nf(t){return!t.q_()&&t.kl().length===0&&this.dd.length>1&&(this.dd.splice(this._f(t),1),this.ka(),!0)}}function iS(e){if(e>=1)return 0;let t=0;for(;t<8;t++){const n=Math.round(e);if(Math.abs(n-e)<1e-8)return t;e*=10}return t}function Oy(e){return!Ou(e)&&!kf(e)}function rS(e){return Ou(e)}(function(e){e[e.Disabled=0]="Disabled",e[e.Continuous=1]="Continuous",e[e.OnDataUpdate=2]="OnDataUpdate"})(tS||(tS={})),(function(e){e[e.LastBar=0]="LastBar",e[e.LastVisible=1]="LastVisible"})(eS||(eS={})),(function(e){e.Solid="solid",e.VerticalGradient="gradient"})(Bg||(Bg={})),(function(e){e[e.Year=0]="Year",e[e.Month=1]="Month",e[e.DayOfMonth=2]="DayOfMonth",e[e.Time=3]="Time",e[e.TimeWithSeconds=4]="TimeWithSeconds"})(nS||(nS={}));const sS=e=>e.getUTCFullYear();function cD(e,t,n){return t.replace(/yyyy/g,(i=>el(sS(i),4))(e)).replace(/yy/g,(i=>el(sS(i)%100,2))(e)).replace(/MMMM/g,((i,a)=>new Date(i.getUTCFullYear(),i.getUTCMonth(),1).toLocaleString(a,{month:"long"}))(e,n)).replace(/MMM/g,((i,a)=>new Date(i.getUTCFullYear(),i.getUTCMonth(),1).toLocaleString(a,{month:"short"}))(e,n)).replace(/MM/g,(i=>el((a=>a.getUTCMonth()+1)(i),2))(e)).replace(/dd/g,(i=>el((a=>a.getUTCDate())(i),2))(e))}class aS{constructor(t="yyyy-MM-dd",n="default"){this.df=t,this.ff=n}ku(t){return cD(t,this.df,this.ff)}}class uD{constructor(t){this.pf=t||"%h:%m:%s"}ku(t){return this.pf.replace("%h",el(t.getUTCHours(),2)).replace("%m",el(t.getUTCMinutes(),2)).replace("%s",el(t.getUTCSeconds(),2))}}const dD={vf:"yyyy-MM-dd",mf:"%h:%m:%s",wf:" ",Mf:"default"};class hD{constructor(t={}){const n={...dD,...t};this.gf=new aS(n.vf,n.Mf),this.bf=new uD(n.mf),this.Sf=n.wf}ku(t){return`${this.gf.ku(t)}${this.Sf}${this.bf.ku(t)}`}}function jg(e){return 60*e*60*1e3}function Py(e){return 60*e*1e3}const Fg=[{xf:(oS=1,1e3*oS),Cf:10},{xf:Py(1),Cf:20},{xf:Py(5),Cf:21},{xf:Py(30),Cf:22},{xf:jg(1),Cf:30},{xf:jg(3),Cf:31},{xf:jg(6),Cf:32},{xf:jg(12),Cf:33}];var oS;function lS(e,t){if(e.getUTCFullYear()!==t.getUTCFullYear())return 70;if(e.getUTCMonth()!==t.getUTCMonth())return 60;if(e.getUTCDate()!==t.getUTCDate())return 50;for(let n=Fg.length-1;n>=0;--n)if(Math.floor(t.getTime()/Fg[n].xf)!==Math.floor(e.getTime()/Fg[n].xf))return Fg[n].Cf;return 0}function Ly(e){let t=e;if(kf(e)&&(t=Iy(e)),!Oy(t))throw new Error("time must be of type BusinessDay");const n=new Date(Date.UTC(t.year,t.month-1,t.day,0,0,0,0));return{yf:Math.round(n.getTime()/1e3),Pf:t}}function cS(e){if(!rS(e))throw new Error("time must be of type isUTCTimestamp");return{yf:e}}function Iy(e){const t=new Date(e);if(isNaN(t.getTime()))throw new Error(`Invalid date string=${e}, expected format=yyyy-mm-dd`);return{day:t.getUTCDate(),month:t.getUTCMonth()+1,year:t.getUTCFullYear()}}function uS(e){kf(e.time)&&(e.time=Iy(e.time))}let dS=class{options(){return this.yn}setOptions(t){this.yn=t,this.updateFormatter(t.localization)}preprocessData(t){Array.isArray(t)?(function(n){n.forEach(uS)})(t):uS(t)}createConverterToInternalObj(t){return It((function(n){return n.length===0?null:Oy(n[0].time)||kf(n[0].time)?Ly:cS})(t))}key(t){return typeof t=="object"&&"yf"in t?t.yf:this.key(this.convertHorzItemToInternal(t))}cacheKey(t){const n=t;return n.Pf===void 0?new Date(1e3*n.yf).getTime():new Date(Date.UTC(n.Pf.year,n.Pf.month-1,n.Pf.day)).getTime()}convertHorzItemToInternal(t){return rS(n=t)?cS(n):Oy(n)?Ly(n):Ly(Iy(n));var n}updateFormatter(t){if(!this.yn)return;const n=t.dateFormat;this.yn.timeScale.timeVisible?this.kf=new hD({vf:n,mf:this.yn.timeScale.secondsVisible?"%h:%m:%s":"%h:%m",wf:" ",Mf:t.locale}):this.kf=new aS(n,t.locale)}formatHorzItem(t){const n=t;return this.kf.ku(new Date(1e3*n.yf))}formatTickmark(t,n){const i=(function(o,c,d){switch(o){case 0:case 10:return c?d?4:3:2;case 20:case 21:case 22:case 30:case 31:case 32:case 33:return c?3:2;case 50:return 2;case 60:return 1;case 70:return 0}})(t.weight,this.yn.timeScale.timeVisible,this.yn.timeScale.secondsVisible),a=this.yn.timeScale;if(a.tickMarkFormatter!==void 0){const o=a.tickMarkFormatter(t.originalTime,i,n.locale);if(o!==null)return o}return(function(o,c,d){const h={};switch(c){case 0:h.year="numeric";break;case 1:h.month="short";break;case 2:h.day="numeric";break;case 3:h.hour12=!1,h.hour="2-digit",h.minute="2-digit";break;case 4:h.hour12=!1,h.hour="2-digit",h.minute="2-digit",h.second="2-digit"}const m=o.Pf===void 0?new Date(1e3*o.yf):new Date(Date.UTC(o.Pf.year,o.Pf.month-1,o.Pf.day));return new Date(m.getUTCFullYear(),m.getUTCMonth(),m.getUTCDate(),m.getUTCHours(),m.getUTCMinutes(),m.getUTCSeconds(),m.getUTCMilliseconds()).toLocaleString(d,h)})(t.time,i,n.locale)}maxTickMarkWeight(t){let n=t.reduce(aD,t[0]).weight;return n>30&&n<50&&(n=30),n}fillWeightsForPoints(t,n){(function(i,a=0){if(i.length===0)return;let o=a===0?null:i[a-1].time.yf,c=o!==null?new Date(1e3*o):null,d=0;for(let h=a;h<i.length;++h){const m=i[h],b=new Date(1e3*m.time.yf);c!==null&&(m.timeWeight=lS(b,c)),d+=m.time.yf-(o||m.time.yf),o=m.time.yf,c=b}if(a===0&&i.length>1){const h=Math.ceil(d/(i.length-1)),m=new Date(1e3*(i[0].time.yf-h));i[0].timeWeight=lS(new Date(1e3*i[0].time.yf),m)}})(t,n)}static Tf(t){return as({localization:{dateFormat:"dd MMM 'yy"}},t??{})}};const sh=typeof window<"u";function hS(){return!!sh&&window.navigator.userAgent.toLowerCase().indexOf("firefox")>-1}function By(){return!!sh&&/iPhone|iPad|iPod/.test(window.navigator.platform)}function fD(e,t){switch(e){case"custom":return t!==void 0?"custom-object":"series";case"price-line":return"custom-price-line";case"marker":return"series-marker";case"primitive":return"primitive";default:return"series"}}function jy(e){return e+e%2}function mD(e){sh&&window.chrome!==void 0&&e.addEventListener("mousedown",(t=>{if(t.button===1)return t.preventDefault(),!1}))}class Ug{constructor(t,n,i){this.Rf=0,this.Df=null,this.If={_t:Number.NEGATIVE_INFINITY,ut:Number.POSITIVE_INFINITY},this.Vf=0,this.Bf=null,this.Ef={_t:Number.NEGATIVE_INFINITY,ut:Number.POSITIVE_INFINITY},this.Af=null,this.Lf=!1,this.zf=null,this.Of=null,this.Nf=!1,this.Ff=!1,this.Wf=!1,this.Hf=null,this.Uf=null,this.$f=null,this.jf=null,this.qf=null,this.Yf=null,this.Kf=null,this.Gf=0,this.Zf=!1,this.Xf=!1,this.Jf=!1,this.Qf=0,this.tp=null,this.ip=!By(),this.np=a=>{this.sp(a)},this.ep=a=>{if(this.rp(a)){const o=this.hp(a);if(++this.Vf,this.Bf&&this.Vf>1){const{ap:c}=this.lp(no(a),this.Ef);c<30&&!this.Wf&&this.op(o,this.up._p),this.cp()}}else{const o=this.hp(a);if(++this.Rf,this.Df&&this.Rf>1){const{ap:c}=this.lp(no(a),this.If);c<5&&!this.Ff&&this.dp(o,this.up.fp),this.pp()}}},this.vp=t,this.up=n,this.yn=i,this.mp()}m(){this.Hf!==null&&(this.Hf(),this.Hf=null),this.Uf!==null&&(this.Uf(),this.Uf=null),this.jf!==null&&(this.jf(),this.jf=null),this.qf!==null&&(this.qf(),this.qf=null),this.Yf!==null&&(this.Yf(),this.Yf=null),this.$f!==null&&(this.$f(),this.$f=null),this.wp(),this.pp()}Mp(t){this.jf&&this.jf();const n=this.gp.bind(this);if(this.jf=()=>{this.vp.removeEventListener("mousemove",n)},this.vp.addEventListener("mousemove",n),this.rp(t))return;const i=this.hp(t);this.dp(i,this.up.bp),this.ip=!0}pp(){this.Df!==null&&clearTimeout(this.Df),this.Rf=0,this.Df=null,this.If={_t:Number.NEGATIVE_INFINITY,ut:Number.POSITIVE_INFINITY}}cp(){this.Bf!==null&&clearTimeout(this.Bf),this.Vf=0,this.Bf=null,this.Ef={_t:Number.NEGATIVE_INFINITY,ut:Number.POSITIVE_INFINITY}}gp(t){if(this.Jf||this.Of!==null||this.rp(t))return;const n=this.hp(t);this.dp(n,this.up.Sp),this.ip=!0}xp(t){const n=Fy(t.changedTouches,It(this.tp));if(n===null||(this.Qf=Vg(t),this.Kf!==null)||this.Xf)return;this.Zf=!0;const i=this.lp(no(n),It(this.Of)),{Cp:a,yp:o,ap:c}=i;if(this.Nf||!(c<5)){if(!this.Nf){const d=.5*a,h=o>=d&&!this.yn.Pp(),m=d>o&&!this.yn.kp();h||m||(this.Xf=!0),this.Nf=!0,this.Wf=!0,this.wp(),this.cp()}if(!this.Xf){const d=this.hp(t,n);this.op(d,this.up.Tp),ah(t)}}}Rp(t){if(t.button!==0)return;const n=this.lp(no(t),It(this.zf)),{ap:i}=n;if(i>=5&&(this.Ff=!0,this.pp()),this.Ff){const a=this.hp(t);this.dp(a,this.up.Dp)}}lp(t,n){const i=Math.abs(n._t-t._t),a=Math.abs(n.ut-t.ut);return{Cp:i,yp:a,ap:i+a}}Ip(t){let n=Fy(t.changedTouches,It(this.tp));if(n===null&&t.touches.length===0&&(n=t.changedTouches[0]),n===null)return;this.tp=null,this.Qf=Vg(t),this.wp(),this.Of=null,this.Yf&&(this.Yf(),this.Yf=null);const i=this.hp(t,n);if(this.op(i,this.up.Vp),++this.Vf,this.Bf&&this.Vf>1){const{ap:a}=this.lp(no(n),this.Ef);a<30&&!this.Wf&&this.op(i,this.up._p),this.cp()}else this.Wf||(this.op(i,this.up.Bp),this.up.Bp&&ah(t));this.Vf===0&&ah(t),t.touches.length===0&&this.Lf&&(this.Lf=!1,ah(t))}sp(t){if(t.button!==0)return;const n=this.hp(t);if(this.zf=null,this.Jf=!1,this.qf&&(this.qf(),this.qf=null),hS()&&this.vp.ownerDocument.documentElement.removeEventListener("mouseleave",this.np),!this.rp(t))if(this.dp(n,this.up.Ep),++this.Rf,this.Df&&this.Rf>1){const{ap:i}=this.lp(no(t),this.If);i<5&&!this.Ff&&this.dp(n,this.up.fp),this.pp()}else this.Ff||this.dp(n,this.up.Ap)}wp(){this.Af!==null&&(clearTimeout(this.Af),this.Af=null)}Lp(t){if(this.tp!==null)return;const n=t.changedTouches[0];this.tp=n.identifier,this.Qf=Vg(t);const i=this.vp.ownerDocument.documentElement;this.Wf=!1,this.Nf=!1,this.Xf=!1,this.Of=no(n),this.Yf&&(this.Yf(),this.Yf=null);{const o=this.xp.bind(this),c=this.Ip.bind(this);this.Yf=()=>{i.removeEventListener("touchmove",o),i.removeEventListener("touchend",c)},i.addEventListener("touchmove",o,{passive:!1}),i.addEventListener("touchend",c,{passive:!1}),this.wp(),this.Af=setTimeout(this.zp.bind(this,t),240)}const a=this.hp(t,n);this.op(a,this.up.Op),this.Bf||(this.Vf=0,this.Bf=setTimeout(this.cp.bind(this),500),this.Ef=no(n))}Np(t){if(t.button!==0)return;const n=this.vp.ownerDocument.documentElement;hS()&&n.addEventListener("mouseleave",this.np),this.Ff=!1,this.zf=no(t),this.qf&&(this.qf(),this.qf=null);{const a=this.Rp.bind(this),o=this.sp.bind(this);this.qf=()=>{n.removeEventListener("mousemove",a),n.removeEventListener("mouseup",o)},n.addEventListener("mousemove",a),n.addEventListener("mouseup",o)}if(this.Jf=!0,this.rp(t))return;const i=this.hp(t);this.dp(i,this.up.Fp),this.Df||(this.Rf=0,this.Df=setTimeout(this.pp.bind(this),500),this.If=no(t))}mp(){this.vp.addEventListener("mouseenter",this.Mp.bind(this)),this.vp.addEventListener("touchcancel",this.wp.bind(this));{const t=this.vp.ownerDocument,n=i=>{this.up.Wp&&(i.composed&&this.vp.contains(i.composedPath()[0])||i.target&&this.vp.contains(i.target)||this.up.Wp())};this.Uf=()=>{t.removeEventListener("touchstart",n)},this.Hf=()=>{t.removeEventListener("mousedown",n)},t.addEventListener("mousedown",n),t.addEventListener("touchstart",n,{passive:!0})}By()&&(this.$f=()=>{this.vp.removeEventListener("dblclick",this.ep)},this.vp.addEventListener("dblclick",this.ep)),this.vp.addEventListener("mouseleave",this.Hp.bind(this)),this.vp.addEventListener("touchstart",this.Lp.bind(this),{passive:!0}),mD(this.vp),this.vp.addEventListener("mousedown",this.Np.bind(this)),this.Up(),this.vp.addEventListener("touchmove",(()=>{}),{passive:!1})}Up(){this.up.$p===void 0&&this.up.jp===void 0&&this.up.qp===void 0||(this.vp.addEventListener("touchstart",(t=>this.Yp(t.touches)),{passive:!0}),this.vp.addEventListener("touchmove",(t=>{if(t.touches.length===2&&this.Kf!==null&&this.up.jp!==void 0){const n=fS(t.touches[0],t.touches[1])/this.Gf;this.up.jp(this.Kf,n),ah(t)}}),{passive:!1}),this.vp.addEventListener("touchend",(t=>{this.Yp(t.touches)})))}Yp(t){t.length===1&&(this.Zf=!1),t.length!==2||this.Zf||this.Lf?this.Kp():this.Gp(t)}Gp(t){const n=this.vp.getBoundingClientRect()||{left:0,top:0};this.Kf={_t:(t[0].clientX-n.left+(t[1].clientX-n.left))/2,ut:(t[0].clientY-n.top+(t[1].clientY-n.top))/2},this.Gf=fS(t[0],t[1]),this.up.$p!==void 0&&this.up.$p(),this.wp()}Kp(){this.Kf!==null&&(this.Kf=null,this.up.qp!==void 0&&this.up.qp())}Hp(t){if(this.jf&&this.jf(),this.rp(t)||!this.ip)return;const n=this.hp(t);this.dp(n,this.up.Zp),this.ip=!By()}zp(t){const n=Fy(t.touches,It(this.tp));if(n===null)return;const i=this.hp(t,n);this.op(i,this.up.Xp),this.Wf=!0,this.Lf=!0}rp(t){return t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents!==void 0?t.sourceCapabilities.firesTouchEvents:Vg(t)<this.Qf+500}op(t,n){n&&n.call(this.up,t)}dp(t,n){n&&n.call(this.up,t)}hp(t,n){const i=n||t,a=this.vp.getBoundingClientRect()||{left:0,top:0};return{clientX:i.clientX,clientY:i.clientY,pageX:i.pageX,pageY:i.pageY,screenX:i.screenX,screenY:i.screenY,localX:i.clientX-a.left,localY:i.clientY-a.top,ctrlKey:t.ctrlKey,altKey:t.altKey,shiftKey:t.shiftKey,metaKey:t.metaKey,Jp:!t.type.startsWith("mouse")&&t.type!=="contextmenu"&&t.type!=="click",Qp:t.type,tv:i.target,xu:t.view,iv:()=>{t.type!=="touchstart"&&ah(t)}}}}function fS(e,t){const n=e.clientX-t.clientX,i=e.clientY-t.clientY;return Math.sqrt(n*n+i*i)}function ah(e){e.cancelable&&e.preventDefault()}function no(e){return{_t:e.pageX,ut:e.pageY}}function Vg(e){return e.timeStamp||performance.now()}function Fy(e,t){for(let n=0;n<e.length;++n)if(e[n].identifier===t)return e[n];return null}class gD{constructor(t,n,i){this.nv=null,this.sv=null,this.ev=!0,this.rv=null,this.hv=t,this.av=t.lv()[n],this.ov=t.lv()[i],this._v=document.createElement("tr"),this._v.style.height="1px",this.uv=document.createElement("td"),this.uv.style.position="relative",this.uv.style.padding="0",this.uv.style.margin="0",this.uv.setAttribute("colspan","3"),this.cv(),this._v.appendChild(this.uv),this.ev=this.hv.N().layout.panes.enableResize,this.ev?this.dv():(this.nv=null,this.sv=null)}m(){this.sv!==null&&this.sv.m()}fv(){return this._v}pv(){return vn({width:this.av.pv().width,height:1})}vv(){return vn({width:this.av.vv().width,height:1*window.devicePixelRatio})}mv(t,n,i){const a=this.vv();t.fillStyle=this.hv.N().layout.panes.separatorColor,t.fillRect(n,i,a.width,a.height)}Pt(){this.cv(),this.hv.N().layout.panes.enableResize!==this.ev&&(this.ev=this.hv.N().layout.panes.enableResize,this.ev?this.dv():(this.nv!==null&&(this.uv.removeChild(this.nv.wv),this.uv.removeChild(this.nv.Mv),this.nv=null),this.sv!==null&&(this.sv.m(),this.sv=null)))}dv(){const t=document.createElement("div"),n=t.style;n.position="fixed",n.display="none",n.zIndex="49",n.top="0",n.left="0",n.width="100%",n.height="100%",n.cursor="row-resize",this.uv.appendChild(t);const i=document.createElement("div"),a=i.style;a.position="absolute",a.zIndex="50",a.top="-4px",a.height="9px",a.width="100%",a.backgroundColor="",a.cursor="row-resize",this.uv.appendChild(i);const o={bp:this.gv.bind(this),Zp:this.bv.bind(this),Fp:this.Sv.bind(this),Op:this.Sv.bind(this),Dp:this.xv.bind(this),Tp:this.xv.bind(this),Ep:this.Cv.bind(this),Vp:this.Cv.bind(this)};this.sv=new Ug(i,o,{Pp:()=>!1,kp:()=>!0}),this.nv={Mv:i,wv:t}}cv(){this.uv.style.background=this.hv.N().layout.panes.separatorColor}gv(t){this.nv!==null&&(this.nv.Mv.style.backgroundColor=this.hv.N().layout.panes.separatorHoverColor)}bv(t){this.nv!==null&&this.rv===null&&(this.nv.Mv.style.backgroundColor="")}Sv(t){if(this.nv===null)return;const n=this.av.yv().F_()+this.ov.yv().F_(),i=n/(this.av.pv().height+this.ov.pv().height),a=30*i;n<=2*a||(this.rv={Pv:t.pageY,kv:this.av.yv().F_(),Tv:n-a,Rv:n,Dv:i,Iv:a},this.nv.wv.style.display="block")}xv(t){const n=this.rv;if(n===null)return;const i=(t.pageY-n.Pv)*n.Dv,a=Nf(n.kv+i,n.Iv,n.Tv);this.av.yv().W_(a),this.ov.yv().W_(n.Rv-a),this.hv.Qt().ka()}Cv(t){this.rv!==null&&this.nv!==null&&(this.rv=null,this.nv.wv.style.display="none")}}function Uy(e,t){return e.Vv-t.Vv}function Vy(e,t,n){const i=(e.Vv-t.Vv)/(e.wt-t.wt);return Math.sign(i)*Math.min(Math.abs(i),n)}class pD{constructor(t,n,i,a){this.Bv=null,this.Ev=null,this.Av=null,this.Lv=null,this.zv=null,this.Ov=0,this.Nv=0,this.Fv=t,this.Wv=n,this.Hv=i,this.Ps=a}Uv(t,n){if(this.Bv!==null){if(this.Bv.wt===n)return void(this.Bv.Vv=t);if(Math.abs(this.Bv.Vv-t)<this.Ps)return}this.Lv=this.Av,this.Av=this.Ev,this.Ev=this.Bv,this.Bv={wt:n,Vv:t}}me(t,n){if(this.Bv===null||this.Ev===null||n-this.Bv.wt>50)return;let i=0;const a=Vy(this.Bv,this.Ev,this.Wv),o=Uy(this.Bv,this.Ev),c=[a],d=[o];if(i+=o,this.Av!==null){const m=Vy(this.Ev,this.Av,this.Wv);if(Math.sign(m)===Math.sign(a)){const b=Uy(this.Ev,this.Av);if(c.push(m),d.push(b),i+=b,this.Lv!==null){const y=Vy(this.Av,this.Lv,this.Wv);if(Math.sign(y)===Math.sign(a)){const T=Uy(this.Av,this.Lv);c.push(y),d.push(T),i+=T}}}}let h=0;for(let m=0;m<c.length;++m)h+=d[m]/i*c[m];Math.abs(h)<this.Fv||(this.zv={Vv:t,wt:n},this.Nv=h,this.Ov=(function(m,b){const y=Math.log(b);return Math.log(1*y/-m)/y})(Math.abs(h),this.Hv))}Gc(t){const n=It(this.zv),i=t-n.wt;return n.Vv+this.Nv*(Math.pow(this.Hv,i)-1)/Math.log(this.Hv)}Kc(t){return this.zv===null||this.$v(t)===this.Ov}$v(t){const n=t-It(this.zv).wt;return Math.min(n,this.Ov)}}class vD{constructor(t,n){this.jv=void 0,this.qv=void 0,this.Yv=void 0,this.vn=!1,this.Kv=t,this.Gv=n,this.Zv()}Pt(){this.Zv()}Xv(){this.jv&&this.Kv.removeChild(this.jv),this.qv&&this.Kv.removeChild(this.qv),this.jv=void 0,this.qv=void 0}Jv(){return this.vn!==this.Qv()||this.Yv!==this.tm()}tm(){return this.Gv.Qt().Xi().J(this.Gv.N().layout.textColor)>160?"dark":"light"}Qv(){return this.Gv.N().layout.attributionLogo}im(){const t=new URL(location.href);return t.hostname?"&utm_source="+t.hostname+t.pathname:""}Zv(){this.Jv()&&(this.Xv(),this.vn=this.Qv(),this.vn&&(this.Yv=this.tm(),this.qv=document.createElement("style"),this.qv.innerText="a#tv-attr-logo{--fill:#131722;--stroke:#fff;position:absolute;left:10px;bottom:10px;height:19px;width:35px;margin:0;padding:0;border:0;z-index:3;}a#tv-attr-logo[data-dark]{--fill:#D1D4DC;--stroke:#131722;}",this.jv=document.createElement("a"),this.jv.href=`https://www.tradingview.com/?utm_medium=lwc-link&utm_campaign=lwc-chart${this.im()}`,this.jv.title="Charting by TradingView",this.jv.id="tv-attr-logo",this.jv.target="_blank",this.jv.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="35" height="19" fill="none"><g fill-rule="evenodd" clip-path="url(#a)" clip-rule="evenodd"><path fill="var(--stroke)" d="M2 0H0v10h6v9h21.4l.5-1.3 6-15 1-2.7H23.7l-.5 1.3-.2.6a5 5 0 0 0-7-.9V0H2Zm20 17h4l5.2-13 .8-2h-7l-1 2.5-.2.5-1.5 3.8-.3.7V17Zm-.8-10a3 3 0 0 0 .7-2.7A3 3 0 1 0 16.8 7h4.4ZM14 7V2H2v6h6v9h4V7h2Z"/><path fill="var(--fill)" d="M14 2H2v6h6v9h6V2Zm12 15h-7l6-15h7l-6 15Zm-7-9a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"/></g><defs><clipPath id="a"><path fill="var(--stroke)" d="M0 0h35v19H0z"/></clipPath></defs></svg>',this.jv.toggleAttribute("data-dark",this.Yv==="dark"),this.Kv.appendChild(this.qv),this.Kv.appendChild(this.jv)))}}function Lu(e,t){const n=It(e.ownerDocument).createElement("canvas");e.appendChild(n);const i=$N(n,{options:{allowResizeObserver:!0},transform:(a,o)=>({width:Math.max(a.width,o.width),height:Math.max(a.height,o.height)})});return i.resizeCanvasElement(t),i}function Iu(e){var t;e.width=1,e.height=1,(t=e.getContext("2d"))==null||t.clearRect(0,0,1,1)}function Hg(e,t,n,i){e.qh&&e.qh(t,n,i)}function Pf(e,t,n,i){e.st(t,n,i)}function Hy(e,t,n,i){mS(e(n,i),t,i)}function mS(e,t,n){for(const i of e){const a=i.Tt(n);a!==null&&t(a)}}function Gy(e,t){return n=>{var i,a;return(function(o){return o.Ft!==void 0})(n)?(((i=n.Ft())==null?void 0:i.pl())??"")!==t?[]:((a=n.Qa)==null?void 0:a.call(n,e))??[]:[]}}function gS(e,t,n,i){if(!e.length)return;let a=0;const o=e[0].$t(i,!0);let c=t===1?n/2-(e[0].Hi()-o/2):e[0].Hi()-o/2-n/2;c=Math.max(0,c);for(let d=1;d<e.length;d++){const h=e[d],m=e[d-1],b=m.$t(i,!1),y=h.Hi(),T=m.Hi();if(t===1?y>T-b:y<T+b){const k=T-b*t;h.Ui(k);const R=k-t*b/2;if((t===1?R<0:R>n)&&c>0){const N=t===1?-1-R:R-n,z=Math.min(N,c);for(let L=a;L<e.length;L++)e[L].Ui(e[L].Hi()+t*z);c-=z}}else a=d,c=t===1?T-b-y:y-(T+b)}}class pS{constructor(t,n,i,a){this.Ki=null,this.nm=null,this.sm=!1,this.rm=new Af(200),this.hm=null,this.am=0,this.lm=!1,this.om=()=>{this.lm||this.yt._m().Qt().mr()},this.um=()=>{this.lm||this.yt._m().Qt().mr()},this.yt=t,this.yn=n,this.Ro=n.layout,this.bd=i,this.dm=a==="left",this.fm=Gy("normal",a),this.pm=Gy("top",a),this.vm=Gy("bottom",a),this.uv=document.createElement("div"),this.uv.style.height="100%",this.uv.style.overflow="hidden",this.uv.style.width="25px",this.uv.style.left="0",this.uv.style.position="relative",this.wm=Lu(this.uv,vn({width:16,height:16})),this.wm.subscribeSuggestedBitmapSizeChanged(this.om);const o=this.wm.canvasElement;o.style.position="absolute",o.style.zIndex="1",o.style.left="0",o.style.top="0",this.Mm=Lu(this.uv,vn({width:16,height:16})),this.Mm.subscribeSuggestedBitmapSizeChanged(this.um);const c=this.Mm.canvasElement;c.style.position="absolute",c.style.zIndex="2",c.style.left="0",c.style.top="0";const d={Fp:this.Sv.bind(this),Op:this.Sv.bind(this),Dp:this.xv.bind(this),Tp:this.xv.bind(this),Wp:this.gm.bind(this),Ep:this.Cv.bind(this),Vp:this.Cv.bind(this),fp:this.bm.bind(this),_p:this.bm.bind(this),bp:this.Sm.bind(this),Zp:this.bv.bind(this)};this.sv=new Ug(this.Mm.canvasElement,d,{Pp:()=>!this.yn.handleScroll.vertTouchDrag,kp:()=>!0})}m(){this.sv.m(),this.Mm.unsubscribeSuggestedBitmapSizeChanged(this.um),Iu(this.Mm.canvasElement),this.Mm.dispose(),this.wm.unsubscribeSuggestedBitmapSizeChanged(this.om),Iu(this.wm.canvasElement),this.wm.dispose(),this.Ki!==null&&this.Ki.__().u(this),this.Ki=null}fv(){return this.uv}P(){return this.Ro.fontSize}xm(){const t=this.bd.N();return this.hm!==t.k&&(this.rm.Os(),this.hm=t.k),t}Cm(){if(this.Ki===null)return 0;let t=0;const n=this.xm(),i=It(this.wm.canvasElement.getContext("2d",{colorSpace:this.yt._m().N().layout.colorSpace}));i.save();const a=this.Ki.zl();i.font=this.ym(),a.length>0&&(t=Math.max(this.rm.Ii(i,a[0].eo),this.rm.Ii(i,a[a.length-1].eo)));const o=this.Pm();for(let m=o.length;m--;){const b=this.rm.Ii(i,o[m].ri());b>t&&(t=b)}const c=this.Ki.Lt();if(c!==null&&this.nm!==null&&(d=this.yn.crosshair).mode!==2&&d.horzLine.visible&&d.horzLine.labelVisible){const m=this.Ki.Tn(1,c),b=this.Ki.Tn(this.nm.height-2,c);t=Math.max(t,this.rm.Ii(i,this.Ki.Ji(Math.floor(Math.min(m,b))+.11111111111111,c)),this.rm.Ii(i,this.Ki.Ji(Math.ceil(Math.max(m,b))-.11111111111111,c)))}var d;i.restore();const h=t||34;return jy(Math.ceil(n.S+n.C+n.V+n.B+5+h))}km(t){this.nm!==null&&Nu(this.nm,t)||(this.nm=t,this.lm=!0,this.wm.resizeCanvasElement(t),this.Mm.resizeCanvasElement(t),this.lm=!1,this.uv.style.width=`${t.width}px`,this.uv.style.height=`${t.height}px`)}Tm(){return It(this.nm).width}un(t){this.Ki!==t&&(this.Ki!==null&&this.Ki.__().u(this),this.Ki=t,t.__().i(this.wo.bind(this),this))}Ft(){return this.Ki}Os(){const t=this.yt.yv();this.yt._m().Qt().au(t,It(this.Ft()))}Rm(t){if(this.nm===null)return;const n={colorSpace:this.yt._m().N().layout.colorSpace};if(t!==1){this.Dm(),this.wm.applySuggestedBitmapSize();const a=zu(this.wm,n);a!==null&&(a.useBitmapCoordinateSpace((o=>{this.Im(o),this.Vm(o)})),this.yt.Bm(a,this.vm),this.Em(a),this.yt.Bm(a,this.fm),this.Am(a))}this.Mm.applySuggestedBitmapSize();const i=zu(this.Mm,n);i!==null&&(i.useBitmapCoordinateSpace((({context:a,bitmapSize:o})=>{a.clearRect(0,0,o.width,o.height)})),this.Lm(i),this.yt.Bm(i,this.pm))}vv(){return this.wm.bitmapSize}mv(t,n,i,a){const o=this.vv();if(o.width>0&&o.height>0&&(t.drawImage(this.wm.canvasElement,n,i),a)){const c=this.Mm.canvasElement;t.drawImage(c,n,i)}}Pt(){var t;(t=this.Ki)==null||t.zl()}Sv(t){if(this.Ki===null||this.Ki.Zi()||!this.yn.handleScale.axisPressedMouseMove.price)return;const n=this.yt._m().Qt(),i=this.yt.yv();this.sm=!0,n.Q_(i,this.Ki,t.localY)}xv(t){if(this.Ki===null||!this.yn.handleScale.axisPressedMouseMove.price)return;const n=this.yt._m().Qt(),i=this.yt.yv(),a=this.Ki;n.tu(i,a,t.localY)}gm(){if(this.Ki===null||!this.yn.handleScale.axisPressedMouseMove.price)return;const t=this.yt._m().Qt(),n=this.yt.yv(),i=this.Ki;this.sm&&(this.sm=!1,t.iu(n,i))}Cv(t){if(this.Ki===null||!this.yn.handleScale.axisPressedMouseMove.price)return;const n=this.yt._m().Qt(),i=this.yt.yv();this.sm=!1,n.iu(i,this.Ki)}bm(t){this.yn.handleScale.axisDoubleClickReset.price&&this.Os()}Sm(t){this.Ki!==null&&(!this.yt._m().Qt().N().handleScale.axisPressedMouseMove.price||this.Ki.je()||this.Ki.No()||this.zm(1))}bv(t){this.zm(0)}Pm(){const t=[],n=this.Ki===null?void 0:this.Ki;return(i=>{for(let a=0;a<i.length;++a){const o=i[a].qn(this.yt.yv(),n);for(let c=0;c<o.length;c++)t.push(o[c])}})(this.yt.yv().Dt()),t}Im({context:t,bitmapSize:n}){const{width:i,height:a}=n,o=this.yt.yv().Qt(),c=o.$(),d=o.af();c===d?Tg(t,0,0,i,a,c):_1(t,0,0,i,a,c,d)}Vm({context:t,bitmapSize:n,horizontalPixelRatio:i}){if(this.nm===null||this.Ki===null||!this.Ki.N().borderVisible)return;t.fillStyle=this.Ki.N().borderColor;const a=Math.max(1,Math.floor(this.xm().S*i));let o;o=this.dm?n.width-a:0,t.fillRect(o,0,a,n.height)}Em(t){if(this.nm===null||this.Ki===null)return;const n=this.Ki.zl(),i=this.Ki.N(),a=this.xm(),o=this.dm?this.nm.width-a.C:0;i.borderVisible&&i.ticksVisible&&t.useBitmapCoordinateSpace((({context:c,horizontalPixelRatio:d,verticalPixelRatio:h})=>{c.fillStyle=i.borderColor;const m=Math.max(1,Math.floor(h)),b=Math.floor(.5*h),y=Math.round(a.C*d);c.beginPath();for(const T of n)c.rect(Math.floor(o*d),Math.round(T.Vl*h)-b,y,m);c.fill()})),t.useMediaCoordinateSpace((({context:c})=>{c.font=this.ym(),c.fillStyle=i.textColor??this.Ro.textColor,c.textAlign=this.dm?"right":"left",c.textBaseline="middle";const d=this.dm?Math.round(o-a.V):Math.round(o+a.C+a.V),h=n.map((m=>this.rm.Di(c,m.eo)));for(let m=n.length;m--;){const b=n[m];c.fillText(b.eo,d,b.Vl+h[m])}}))}Dm(){if(this.nm===null||this.Ki===null)return;let t=this.nm.height/2;const n=[],i=this.Ki.Dt().slice(),a=this.yt.yv(),o=this.xm();this.Ki===a.Zs()&&this.yt.yv().Dt().forEach((h=>{a.Gs(h)&&i.push(h)}));const c=this.Ki.kl()[0],d=this.Ki;i.forEach((h=>{const m=h.qn(a,d);m.forEach((b=>{b.$i()&&b.Wi()===null&&(b.Ui(null),n.push(b))})),c===h&&m.length>0&&(t=m[0].Ei())})),this.Ki.N().alignLabels&&this.Om(n,o,t)}Om(t,n,i){if(this.nm===null)return;const a=t.filter((c=>c.Ei()<=i)),o=t.filter((c=>c.Ei()>i));a.sort(((c,d)=>d.Ei()-c.Ei())),a.length&&o.length&&o.push(a[0]),o.sort(((c,d)=>c.Ei()-d.Ei()));for(const c of t){const d=Math.floor(c.$t(n)/2),h=c.Ei();h>-d&&h<d&&c.Ui(d),h>this.nm.height-d&&h<this.nm.height+d&&c.Ui(this.nm.height-d)}gS(a,1,this.nm.height,n),gS(o,-1,this.nm.height,n)}Am(t){if(this.nm===null)return;const n=this.Pm(),i=this.xm(),a=this.dm?"right":"left";n.forEach((o=>{o.ji()&&o.Tt(It(this.Ki)).st(t,i,this.rm,a)}))}Lm(t){if(this.nm===null||this.Ki===null)return;const n=this.yt._m().Qt(),i=[],a=this.yt.yv(),o=n.Vd().qn(a,this.Ki);o.length&&i.push(o);const c=this.xm(),d=this.dm?"right":"left";i.forEach((h=>{h.forEach((m=>{m.Tt(It(this.Ki)).st(t,c,this.rm,d)}))}))}zm(t){this.uv.style.cursor=t===1?"ns-resize":"default"}wo(){const t=this.Cm();this.am<t&&this.yt._m().Qt().ka(),this.am=t}ym(){return _f(this.Ro.fontSize,this.Ro.fontFamily)}}function yD(e,t){var n;return((n=e.Xa)==null?void 0:n.call(e,t))??[]}function Yy(e,t){var n;return((n=e.jn)==null?void 0:n.call(e,t))??[]}function vS(e,t){var n;return((n=e.cn)==null?void 0:n.call(e,t))??[]}function bD(e,t){var n;return((n=e.qa)==null?void 0:n.call(e,t))??[]}class Wy{constructor(t,n){this.nm=vn({width:0,height:0}),this.Nm=null,this.Fm=null,this.Wm=null,this.Hm=null,this.Um=!1,this.$m=new ti,this.jm=new ti,this.qm=0,this.Ym=!1,this.Km=null,this.Gm=!1,this.Zm=null,this.Xm=null,this.lm=!1,this.om=()=>{this.lm||this.Jm===null||this.sn().mr()},this.um=()=>{this.lm||this.Jm===null||this.sn().mr()},this.Gv=t,this.Jm=n,this.Jm.mu().i(this.Qm.bind(this),this,!0),this.tw=document.createElement("td"),this.tw.style.padding="0",this.tw.style.position="relative";const i=document.createElement("div");i.style.width="100%",i.style.height="100%",i.style.position="relative",i.style.overflow="hidden",this.iw=document.createElement("td"),this.iw.style.padding="0",this.nw=document.createElement("td"),this.nw.style.padding="0",this.tw.appendChild(i),this.wm=Lu(i,vn({width:16,height:16})),this.wm.subscribeSuggestedBitmapSizeChanged(this.om);const a=this.wm.canvasElement;a.style.position="absolute",a.style.zIndex="1",a.style.left="0",a.style.top="0",this.Mm=Lu(i,vn({width:16,height:16})),this.Mm.subscribeSuggestedBitmapSizeChanged(this.um);const o=this.Mm.canvasElement;o.style.position="absolute",o.style.zIndex="2",o.style.left="0",o.style.top="0",this._v=document.createElement("tr"),this._v.appendChild(this.iw),this._v.appendChild(this.tw),this._v.appendChild(this.nw),this.sw(),this.sv=new Ug(this.Mm.canvasElement,this,{Pp:()=>this.Km===null&&!this.Gv.N().handleScroll.vertTouchDrag,kp:()=>this.Km===null&&!this.Gv.N().handleScroll.horzTouchDrag})}m(){this.Nm!==null&&this.Nm.m(),this.Fm!==null&&this.Fm.m(),this.Wm=null,this.Mm.unsubscribeSuggestedBitmapSizeChanged(this.um),Iu(this.Mm.canvasElement),this.Mm.dispose(),this.wm.unsubscribeSuggestedBitmapSizeChanged(this.om),Iu(this.wm.canvasElement),this.wm.dispose(),this.Jm!==null&&(this.Jm.mu().u(this),this.Jm.m()),this.sv.m()}yv(){return It(this.Jm)}ew(t){var n;this.Jm!==null&&this.Jm.mu().u(this),this.Jm=t,this.Jm!==null&&this.Jm.mu().i(Wy.prototype.Qm.bind(this),this,!0),this.sw(),this.Gv.lv().indexOf(this)===this.Gv.lv().length-1?(this.Wm=this.Wm??new vD(this.tw,this.Gv),this.Wm.Pt()):((n=this.Wm)==null||n.Xv(),this.Wm=null)}_m(){return this.Gv}fv(){return this._v}sw(){if(this.Jm!==null&&(this.rw(),this.sn().Jn().length!==0)){if(this.Nm!==null){const t=this.Jm.X_();this.Nm.un(It(t))}if(this.Fm!==null){const t=this.Jm.J_();this.Fm.un(It(t))}}}hw(){this.Nm!==null&&this.Nm.Pt(),this.Fm!==null&&this.Fm.Pt()}F_(){return this.Jm!==null?this.Jm.F_():0}W_(t){this.Jm&&this.Jm.W_(t)}bp(t){if(!this.Jm)return;this.aw();const n=t.localX,i=t.localY;this.lw(n,i,t)}Fp(t){this.aw(),this.ow(),this.lw(t.localX,t.localY,t)}Sp(t){if(!this.Jm)return;this.aw();const n=t.localX,i=t.localY;this.lw(n,i,t)}Ap(t){this.Jm!==null&&(this.aw(),this.lw(t.localX,t.localY,t),this._w(t))}fp(t){this.Jm!==null&&this.uw(this.jm,t)}_p(t){this.fp(t)}Dp(t){this.aw(),this.cw(t),this.lw(t.localX,t.localY,t)}Ep(t){this.Jm!==null&&(this.aw(),this.Ym=!1,this.dw(t))}Bp(t){this.Jm!==null&&this._w(t)}Xp(t){if(this.Ym=!0,this.Km===null){const n={x:t.localX,y:t.localY};this.fw(n,n,t)}}Zp(t){this.Jm!==null&&(this.aw(),this.Jm.Qt().Rd(null),this.pw())}mw(){return this.$m}ww(){return this.jm}$p(){this.qm=1,this.sn().cs()}jp(t,n){if(!this.Gv.N().handleScale.pinch)return;const i=5*(n-this.qm);this.qm=n,this.sn().Wd(t._t,i)}Op(t){this.Ym=!1,this.Gm=this.Km!==null,this.ow();const n=this.sn().Vd();this.Km!==null&&n.It()&&(this.Zm={x:n.ni(),y:n.si()},this.Km={x:t.localX,y:t.localY})}Tp(t){if(this.Jm===null)return;const n=t.localX,i=t.localY;if(this.Km===null)this.cw(t);else{this.Gm=!1;const a=It(this.Zm),o=a.x+(n-this.Km.x),c=a.y+(i-this.Km.y);this.lw(o,c,t)}}Vp(t){this._m().N().trackingMode.exitMode===0&&(this.Gm=!0),this.Mw(),this.dw(t)}Qs(t,n){const i=this.Jm;return i===null?null:J1(i,t,n)}gw(t,n){It(n==="left"?this.Nm:this.Fm).km(vn({width:t,height:this.nm.height}))}pv(){return this.nm}km(t){Nu(this.nm,t)||(this.nm=t,this.lm=!0,this.wm.resizeCanvasElement(t),this.Mm.resizeCanvasElement(t),this.lm=!1,this.tw.style.width=t.width+"px",this.tw.style.height=t.height+"px")}bw(){const t=It(this.Jm);t.G_(t.X_()),t.G_(t.J_());for(const n of t.kl())if(t.Gs(n)){const i=n.Ft();i!==null&&t.G_(i),n.Nn()}for(const n of t.Mu())n.Nn()}vv(){return this.wm.bitmapSize}mv(t,n,i,a){const o=this.vv();if(o.width>0&&o.height>0&&(t.drawImage(this.wm.canvasElement,n,i),a)){const c=this.Mm.canvasElement;t!==null&&t.drawImage(c,n,i)}}Rm(t){if(t===0||this.Jm===null)return;t>1&&this.bw(),this.Nm!==null&&this.Nm.Rm(t),this.Fm!==null&&this.Fm.Rm(t);const n={colorSpace:this.Gv.N().layout.colorSpace};if(t!==1){this.wm.applySuggestedBitmapSize();const a=zu(this.wm,n);a!==null&&(a.useBitmapCoordinateSpace((o=>{this.Im(o)})),this.Jm&&(this.Sw(a,yD),this.xw(a),this.Sw(a,Yy),this.Sw(a,vS)))}this.Mm.applySuggestedBitmapSize();const i=zu(this.Mm,n);i!==null&&(i.useBitmapCoordinateSpace((({context:a,bitmapSize:o})=>{a.clearRect(0,0,o.width,o.height)})),this.Cw(i),this.Sw(i,bD),this.Sw(i,vS))}yw(){return this.Nm}Pw(){return this.Fm}Bm(t,n){this.Sw(t,n)}Qm(){this.Jm!==null&&this.Jm.mu().u(this),this.Jm=null}_w(t){this.uw(this.$m,t)}uw(t,n){const i=n.localX,a=n.localY;t.v()&&t.p(this.sn().Et().Vc(i),{x:i,y:a},n)}Im({context:t,bitmapSize:n}){const{width:i,height:a}=n,o=this.sn(),c=o.$(),d=o.af();c===d?Tg(t,0,0,i,a,d):_1(t,0,0,i,a,c,d)}xw(t){const n=It(this.Jm),i=n.wu().wr().Tt(n);i!==null&&i.st(t,!1)}Cw(t){this.kw(t,Yy,Pf,this.sn().Vd())}Sw(t,n){const i=It(this.Jm),a=n===Yy?this.Tw():null,o=a===null?null:this.Rw(a,i),c=i.Mu();if(o===null||a===null){const m=i._u();return this.Dw(t,n,Hg,c,m),void this.Dw(t,n,Pf,c,m)}const d=i.Dt(),h=m=>m===a?o.Za:void 0;this.Dw(t,n,Hg,c,d,h),this.Dw(t,n,Pf,c,d,h),this.kw(t,n,Hg,a,o.qa),this.kw(t,n,Pf,a,o.qa)}Dw(t,n,i,a,o,c){for(const d of a)this.kw(t,n,i,d);if(c!==void 0)for(const d of o)this.kw(t,n,i,d,c(d));else for(const d of o)this.kw(t,n,i,d)}Tw(){var i;const t=It(this.Jm),n=(i=t.Qt().cu())==null?void 0:i.uu;if(!t.Qt().N().hoveredSeriesOnTop||n===void 0)return null;for(const a of t.Dt())if(a===n)return a;return null}Rw(t,n){var a;const i=((a=t.Ga)==null?void 0:a.call(t,n))??null;return i===null||i.qa.length===0?null:i}kw(t,n,i,a,o){const c=It(this.Jm),d=c.Qt().cu(),h=d!==null&&d.uu===a,m=d!==null&&h&&d.bu!==void 0?d.bu.ie:void 0,b=y=>i(y,t,h,m);o===void 0?Hy(n,b,a,c):mS(o,b,c)}rw(){if(this.Jm===null)return;const t=this.Gv,n=this.Jm.X_().N().visible,i=this.Jm.J_().N().visible;n||this.Nm===null||(this.iw.removeChild(this.Nm.fv()),this.Nm.m(),this.Nm=null),i||this.Fm===null||(this.nw.removeChild(this.Fm.fv()),this.Fm.m(),this.Fm=null);const a=t.Qt().Jd();n&&this.Nm===null&&(this.Nm=new pS(this,t.N(),a,"left"),this.iw.appendChild(this.Nm.fv())),i&&this.Fm===null&&(this.Fm=new pS(this,t.N(),a,"right"),this.nw.appendChild(this.Fm.fv()))}Iw(t){return t.Jp&&this.Ym||this.Km!==null}lw(t,n,i){t=Math.max(0,Math.min(t,this.nm.width-1)),n=Math.max(0,Math.min(n,this.nm.height-1)),this.sn().Kd(t,n,i,It(this.Jm))}pw(){this.sn().Zd()}Mw(){this.Gm&&(this.Km=null,this.pw())}fw(t,n,i){this.Km=t,this.Gm=!1,this.lw(n.x,n.y,i);const a=this.sn().Vd();this.Zm={x:a.ni(),y:a.si()}}sn(){return this.Gv.Qt()}dw(t){if(!this.Um)return;const n=this.sn(),i=this.yv();if(n.eu(i,i.kn()),this.Hm=null,this.Um=!1,n.jd(),this.Xm!==null){const a=performance.now(),o=n.Et();this.Xm.me(o.Oc(),a),this.Xm.Kc(a)||n.ps(this.Xm)}}aw(){this.Km=null}ow(){if(this.Jm){if(this.sn().cs(),document.activeElement!==document.body&&document.activeElement!==document.documentElement)It(document.activeElement).blur();else{const t=document.getSelection();t!==null&&t.removeAllRanges()}!this.Jm.kn().Zi()&&this.sn().Et().Zi()}}cw(t){if(this.Jm===null)return;const n=this.sn(),i=n.Et();if(i.Zi())return;const a=this.Gv.N(),o=a.handleScroll,c=a.kineticScroll;if((!o.pressedMouseMove||t.Jp)&&(!o.horzTouchDrag&&!o.vertTouchDrag||!t.Jp))return;const d=this.Jm.kn(),h=performance.now();if(this.Hm!==null||this.Iw(t)||(this.Hm={x:t.clientX,y:t.clientY,yf:h,Vw:t.localX,Bw:t.localY}),this.Hm!==null&&!this.Um&&(this.Hm.x!==t.clientX||this.Hm.y!==t.clientY)){if(t.Jp&&c.touch||!t.Jp&&c.mouse){const m=i.ml();this.Xm=new pD(.2/m,7/m,.997,15/m),this.Xm.Uv(i.Oc(),this.Hm.yf)}else this.Xm=null;d.Zi()||n.nu(this.Jm,d,t.localY),n.Ud(t.localX),this.Um=!0}this.Um&&(d.Zi()||n.su(this.Jm,d,t.localY),n.$d(t.localX),this.Xm!==null&&this.Xm.Uv(i.Oc(),h))}}class yS{constructor(t,n,i,a,o){this.xt=!0,this.nm=vn({width:0,height:0}),this.om=()=>this.Rm(3),this.dm=t==="left",this.bd=i.Jd,this.yn=n,this.Ew=a,this.Aw=o,this.uv=document.createElement("div"),this.uv.style.width="25px",this.uv.style.height="100%",this.uv.style.overflow="hidden",this.wm=Lu(this.uv,vn({width:16,height:16})),this.wm.subscribeSuggestedBitmapSizeChanged(this.om)}m(){this.wm.unsubscribeSuggestedBitmapSizeChanged(this.om),Iu(this.wm.canvasElement),this.wm.dispose()}fv(){return this.uv}pv(){return this.nm}km(t){Nu(this.nm,t)||(this.nm=t,this.wm.resizeCanvasElement(t),this.uv.style.width=`${t.width}px`,this.uv.style.height=`${t.height}px`,this.xt=!0)}Rm(t){if(t<3&&!this.xt||this.nm.width===0||this.nm.height===0)return;this.xt=!1,this.wm.applySuggestedBitmapSize();const n=zu(this.wm,{colorSpace:this.yn.layout.colorSpace});n!==null&&n.useBitmapCoordinateSpace((i=>{this.Im(i),this.Vm(i)}))}vv(){return this.wm.bitmapSize}mv(t,n,i){const a=this.vv();a.width>0&&a.height>0&&t.drawImage(this.wm.canvasElement,n,i)}Vm({context:t,bitmapSize:n,horizontalPixelRatio:i,verticalPixelRatio:a}){if(!this.Ew())return;t.fillStyle=this.yn.timeScale.borderColor;const o=Math.floor(this.bd.N().S*i),c=Math.floor(this.bd.N().S*a),d=this.dm?n.width-o:0;t.fillRect(d,0,o,c)}Im({context:t,bitmapSize:n}){Tg(t,0,0,n.width,n.height,this.Aw())}}function Ky(e){return t=>{var n;return((n=t.tl)==null?void 0:n.call(t,e))??[]}}const xD=Ky("normal"),wD=Ky("top"),SD=Ky("bottom");class CD{constructor(t,n){this.Lw=null,this.zw=null,this.M=null,this.Ow=!1,this.nm=vn({width:0,height:0}),this.Nw=new ti,this.rm=new Af(5),this.lm=!1,this.om=()=>{this.lm||this.Gv.Qt().mr()},this.um=()=>{this.lm||this.Gv.Qt().mr()},this.Gv=t,this.Pu=n,this.yn=t.N().layout,this.jv=document.createElement("tr"),this.Fw=document.createElement("td"),this.Fw.style.padding="0",this.Ww=document.createElement("td"),this.Ww.style.padding="0",this.uv=document.createElement("td"),this.uv.style.height="25px",this.uv.style.padding="0",this.Hw=document.createElement("div"),this.Hw.style.width="100%",this.Hw.style.height="100%",this.Hw.style.position="relative",this.Hw.style.overflow="hidden",this.uv.appendChild(this.Hw),this.wm=Lu(this.Hw,vn({width:16,height:16})),this.wm.subscribeSuggestedBitmapSizeChanged(this.om);const i=this.wm.canvasElement;i.style.position="absolute",i.style.zIndex="1",i.style.left="0",i.style.top="0",this.Mm=Lu(this.Hw,vn({width:16,height:16})),this.Mm.subscribeSuggestedBitmapSizeChanged(this.um);const a=this.Mm.canvasElement;a.style.position="absolute",a.style.zIndex="2",a.style.left="0",a.style.top="0",this.jv.appendChild(this.Fw),this.jv.appendChild(this.uv),this.jv.appendChild(this.Ww),this.Uw(),this.Gv.Qt().N_().i(this.Uw.bind(this),this),this.sv=new Ug(this.Mm.canvasElement,this,{Pp:()=>!0,kp:()=>!this.Gv.N().handleScroll.horzTouchDrag})}m(){this.sv.m(),this.Lw!==null&&this.Lw.m(),this.zw!==null&&this.zw.m(),this.Mm.unsubscribeSuggestedBitmapSizeChanged(this.um),Iu(this.Mm.canvasElement),this.Mm.dispose(),this.wm.unsubscribeSuggestedBitmapSizeChanged(this.om),Iu(this.wm.canvasElement),this.wm.dispose()}fv(){return this.jv}$w(){return this.Lw}jw(){return this.zw}Fp(t){if(this.Ow)return;this.Ow=!0;const n=this.Gv.Qt();!n.Et().Zi()&&this.Gv.N().handleScale.axisPressedMouseMove.time&&n.Fd(t.localX)}Op(t){this.Fp(t)}Wp(){const t=this.Gv.Qt();!t.Et().Zi()&&this.Ow&&(this.Ow=!1,this.Gv.N().handleScale.axisPressedMouseMove.time&&t.Yd())}Dp(t){const n=this.Gv.Qt();!n.Et().Zi()&&this.Gv.N().handleScale.axisPressedMouseMove.time&&n.qd(t.localX)}Tp(t){this.Dp(t)}Ep(){this.Ow=!1;const t=this.Gv.Qt();t.Et().Zi()&&!this.Gv.N().handleScale.axisPressedMouseMove.time||t.Yd()}Vp(){this.Ep()}fp(){this.Gv.N().handleScale.axisDoubleClickReset.time&&this.Gv.Qt().ws()}_p(){this.fp()}bp(){this.Gv.Qt().N().handleScale.axisPressedMouseMove.time&&this.zm(1)}Zp(){this.zm(0)}pv(){return this.nm}qw(){return this.Nw}Yw(t,n,i){Nu(this.nm,t)||(this.nm=t,this.lm=!0,this.wm.resizeCanvasElement(t),this.Mm.resizeCanvasElement(t),this.lm=!1,this.uv.style.width=`${t.width}px`,this.uv.style.height=`${t.height}px`,this.Nw.p(t)),this.Lw!==null&&this.Lw.km(vn({width:n,height:t.height})),this.zw!==null&&this.zw.km(vn({width:i,height:t.height}))}Kw(){const t=this.Gw();return Math.ceil(t.S+t.C+t.P+t.A+t.I+t.Zw)}Pt(){this.Gv.Qt().Et().zl()}vv(){return this.wm.bitmapSize}mv(t,n,i,a){const o=this.vv();if(o.width>0&&o.height>0&&(t.drawImage(this.wm.canvasElement,n,i),a)){const c=this.Mm.canvasElement;t.drawImage(c,n,i)}}Rm(t){if(t===0)return;const n={colorSpace:this.yn.colorSpace};if(t!==1){this.wm.applySuggestedBitmapSize();const a=zu(this.wm,n);a!==null&&(a.useBitmapCoordinateSpace((o=>{this.Im(o),this.Vm(o),this.Xw(a,SD)})),this.Em(a),this.Xw(a,xD)),this.Lw!==null&&this.Lw.Rm(t),this.zw!==null&&this.zw.Rm(t)}this.Mm.applySuggestedBitmapSize();const i=zu(this.Mm,n);i!==null&&(i.useBitmapCoordinateSpace((({context:a,bitmapSize:o})=>{a.clearRect(0,0,o.width,o.height)})),this.Jw([...this.Gv.Qt().Jn(),this.Gv.Qt().Vd()],i),this.Xw(i,wD))}Xw(t,n){const i=this.Gv.Qt().Jn();for(const a of i)Hy(n,(o=>Hg(o,t,!1,void 0)),a,void 0);for(const a of i)Hy(n,(o=>Pf(o,t,!1,void 0)),a,void 0)}Im({context:t,bitmapSize:n}){Tg(t,0,0,n.width,n.height,this.Gv.Qt().af())}Vm({context:t,bitmapSize:n,verticalPixelRatio:i}){if(this.Gv.N().timeScale.borderVisible){t.fillStyle=this.Qw();const a=Math.max(1,Math.floor(this.Gw().S*i));t.fillRect(0,0,n.width,a)}}Em(t){const n=this.Gv.Qt().Et(),i=n.zl();if(!i||i.length===0)return;const a=this.Pu.maxTickMarkWeight(i),o=this.Gw(),c=n.N();c.borderVisible&&c.ticksVisible&&t.useBitmapCoordinateSpace((({context:d,horizontalPixelRatio:h,verticalPixelRatio:m})=>{d.strokeStyle=this.Qw(),d.fillStyle=this.Qw();const b=Math.max(1,Math.floor(h)),y=Math.floor(.5*h);d.beginPath();const T=Math.round(o.C*m);for(let k=i.length;k--;){const R=Math.round(i[k].coord*h);d.rect(R-y,0,b,T)}d.fill()})),t.useMediaCoordinateSpace((({context:d})=>{const h=o.S+o.C+o.A+o.P/2;d.textAlign="center",d.textBaseline="middle",d.fillStyle=this.H(),d.font=this.ym();for(const m of i)if(m.weight<a){const b=m.needAlignCoordinate?this.tM(d,m.coord,m.label):m.coord;d.fillText(m.label,b,h)}this.Gv.N().timeScale.allowBoldLabels&&(d.font=this.iM());for(const m of i)if(m.weight>=a){const b=m.needAlignCoordinate?this.tM(d,m.coord,m.label):m.coord;d.fillText(m.label,b,h)}}))}tM(t,n,i){const a=this.rm.Ii(t,i),o=a/2,c=Math.floor(n-o)+.5;return c<0?n+=Math.abs(0-c):c+a>this.nm.width&&(n-=Math.abs(this.nm.width-(c+a))),n}Jw(t,n){const i=this.Gw();for(const a of t)for(const o of a.dn())o.Tt().st(n,i)}Qw(){return this.Gv.N().timeScale.borderColor}H(){return this.yn.textColor}F(){return this.yn.fontSize}ym(){return _f(this.F(),this.yn.fontFamily)}iM(){return _f(this.F(),this.yn.fontFamily,"bold")}Gw(){this.M===null&&(this.M={S:1,L:NaN,A:NaN,I:NaN,tn:NaN,C:5,P:NaN,k:"",Qi:new Af,Zw:0});const t=this.M,n=this.ym();if(t.k!==n){const i=this.F();t.P=i,t.k=n,t.A=3*i/12,t.I=3*i/12,t.tn=9*i/12,t.L=0,t.Zw=4*i/12,t.Qi.Os()}return this.M}zm(t){this.uv.style.cursor=t===1?"ew-resize":"default"}Uw(){const t=this.Gv.Qt(),n=t.N();n.leftPriceScale.visible||this.Lw===null||(this.Fw.removeChild(this.Lw.fv()),this.Lw.m(),this.Lw=null),n.rightPriceScale.visible||this.zw===null||(this.Ww.removeChild(this.zw.fv()),this.zw.m(),this.zw=null);const i={Jd:this.Gv.Qt().Jd()},a=()=>n.leftPriceScale.borderVisible&&t.Et().N().borderVisible,o=()=>t.af();n.leftPriceScale.visible&&this.Lw===null&&(this.Lw=new yS("left",n,i,a,o),this.Fw.appendChild(this.Lw.fv())),n.rightPriceScale.visible&&this.zw===null&&(this.zw=new yS("right",n,i,a,o),this.Ww.appendChild(this.zw.fv()))}}const TD=!!sh&&!!navigator.userAgentData&&navigator.userAgentData.brands.some((e=>e.brand.includes("Chromium")))&&!!sh&&((W_=navigator==null?void 0:navigator.userAgentData)!=null&&W_.platform?navigator.userAgentData.platform==="Windows":navigator.userAgent.toLowerCase().indexOf("win")>=0);class ED{constructor(t,n,i){var a;this.nM=[],this.sM=[],this.eM=0,this.oo=0,this.k_=0,this.rM=0,this.hM=0,this.aM=null,this.lM=!1,this.$m=new ti,this.jm=new ti,this.wd=new ti,this.oM=null,this._M=null,this.Kv=t,this.yn=n,this.Pu=i,this.jv=document.createElement("div"),this.jv.classList.add("tv-lightweight-charts"),this.jv.style.overflow="hidden",this.jv.style.direction="ltr",this.jv.style.width="100%",this.jv.style.height="100%",(a=this.jv).style.userSelect="none",a.style.webkitUserSelect="none",a.style.msUserSelect="none",a.style.MozUserSelect="none",a.style.webkitTapHighlightColor="transparent",this.uM=document.createElement("table"),this.uM.setAttribute("cellspacing","0"),this.jv.appendChild(this.uM),this.cM=this.dM.bind(this),Xy(this.yn)&&this.fM(!0),this.sn=new lD(this.gd.bind(this),this.yn,i),this.Qt().Bd().i(this.pM.bind(this),this),this.vM=new CD(this,this.Pu),this.uM.appendChild(this.vM.fv());const o=n.autoSize&&this.mM();let c=this.yn.width,d=this.yn.height;if(o||c===0||d===0){const h=t.getBoundingClientRect();c=c||h.width,d=d||h.height}this.wM(c,d),this.MM(),t.appendChild(this.jv),this.gM(),this.sn.Et().Jc().i(this.sn.ka.bind(this.sn),this),this.sn.N_().i(this.sn.ka.bind(this.sn),this)}Qt(){return this.sn}N(){return this.yn}lv(){return this.nM}bM(){return this.vM}m(){this.fM(!1),this.eM!==0&&window.cancelAnimationFrame(this.eM),this.sn.Bd().u(this),this.sn.Et().Jc().u(this),this.sn.N_().u(this),this.sn.m();for(const t of this.nM)this.uM.removeChild(t.fv()),t.mw().u(this),t.ww().u(this),t.m();this.nM=[];for(const t of this.sM)this.SM(t);this.sM=[],It(this.vM).m(),this.jv.parentElement!==null&&this.jv.parentElement.removeChild(this.jv),this.wd.m(),this.$m.m(),this.jm.m(),this.xM()}wM(t,n,i=!1){if(this.oo===n&&this.k_===t)return;const a=(function(d){const h=Math.floor(d.width),m=Math.floor(d.height);return vn({width:h-h%2,height:m-m%2})})(vn({width:t,height:n}));this.oo=a.height,this.k_=a.width;const o=this.oo+"px",c=this.k_+"px";if(this.CM()||(It(this.jv).style.height=o,It(this.jv).style.width=c),this.uM.style.height=o,this.uM.style.width=c,i){this.eM!==0&&(window.cancelAnimationFrame(this.eM),this.eM=0),this.lM=!1;const d=Gr.ys();this.aM!==null&&(d.Ss(this.aM),this.aM=null),this.yM(d,performance.now())}else this.sn.ka()}Rm(t){t===void 0&&(t=Gr.ys());for(let n=0;n<this.nM.length;n++)this.nM[n].Rm(t._s(n).rs);this.yn.timeScale.visible&&this.vM.Rm(t.ls())}vr(t){var a;const n=Xy(this.yn);this.sn.vr(t);const i=Xy(this.yn);i!==n&&this.fM(i),(a=t.layout)!=null&&a.panes&&this.PM(),this.gM(),this.kM(t)}mw(){return this.$m}ww(){return this.jm}Bd(){return this.wd}TM(t=!1){this.aM!==null&&(this.yM(this.aM,performance.now()),this.aM=null);const n=this.RM(null),i=document.createElement("canvas");i.width=n.width,i.height=n.height;const a=It(i.getContext("2d"));return this.RM(a,t),i}DM(t){return t==="left"&&!this.IM()||t==="right"&&!this.VM()||this.nM.length===0?0:It(t==="left"?this.nM[0].yw():this.nM[0].Pw()).Tm()}CM(){return this.yn.autoSize&&this.oM!==null}Mv(){return this.jv}BM(t){this._M=t,this._M?this.Mv().style.setProperty("cursor",t):this.Mv().style.removeProperty("cursor")}EM(){return this._M}AM(t){return Hr(this.nM[t]).pv()}PM(){this.sM.forEach((t=>{t.Pt()}))}kM(t){(t.autoSize!==void 0||!this.oM||t.width===void 0&&t.height===void 0)&&(t.autoSize&&!this.oM&&this.mM(),t.autoSize===!1&&this.oM!==null&&this.xM(),t.autoSize||t.width===void 0&&t.height===void 0||this.wM(t.width||this.k_,t.height||this.oo))}RM(t,n){let i=0,a=0;const o=this.nM[0],c=(h,m)=>{let b=0;for(let y=0;y<this.nM.length;y++){const T=this.nM[y],k=It(h==="left"?T.yw():T.Pw()),R=k.vv();if(t!==null&&k.mv(t,m,b,n),b+=R.height,y<this.nM.length-1){const N=this.sM[y],z=N.vv();t!==null&&N.mv(t,m,b),b+=z.height}}};this.IM()&&(c("left",0),i+=It(o.yw()).vv().width);for(let h=0;h<this.nM.length;h++){const m=this.nM[h],b=m.vv();if(t!==null&&m.mv(t,i,a,n),a+=b.height,h<this.nM.length-1){const y=this.sM[h],T=y.vv();t!==null&&y.mv(t,i,a),a+=T.height}}i+=o.vv().width,this.VM()&&(c("right",i),i+=It(o.Pw()).vv().width);const d=(h,m,b)=>{It(h==="left"?this.vM.$w():this.vM.jw()).mv(It(t),m,b)};if(this.yn.timeScale.visible){const h=this.vM.vv();if(t!==null){let m=0;this.IM()&&(d("left",m,a),m=It(o.yw()).vv().width),this.vM.mv(t,m,a,n),m+=h.width,this.VM()&&d("right",m,a)}a+=h.height}return vn({width:i,height:a})}LM(){let t=0,n=0,i=0;for(const z of this.nM)this.IM()&&(n=Math.max(n,It(z.yw()).Cm(),this.yn.leftPriceScale.minimumWidth)),this.VM()&&(i=Math.max(i,It(z.Pw()).Cm(),this.yn.rightPriceScale.minimumWidth)),t+=z.F_();n=jy(n),i=jy(i);const a=this.k_,o=this.oo,c=Math.max(a-n-i,0),d=1*this.sM.length,h=this.yn.timeScale.visible;let m=h?Math.max(this.vM.Kw(),this.yn.timeScale.minimumHeight):0;var b;m=(b=m)+b%2;const y=d+m,T=o<y?0:o-y,k=T/t;let R=0;const N=window.devicePixelRatio||1;for(let z=0;z<this.nM.length;++z){const L=this.nM[z];L.ew(this.sn.Gn()[z]);let I=0,F=0;F=z===this.nM.length-1?Math.ceil((T-R)*N)/N:Math.round(L.F_()*k*N)/N,I=Math.max(F,2),R+=I,L.km(vn({width:c,height:I})),this.IM()&&L.gw(n,"left"),this.VM()&&L.gw(i,"right"),L.yv()&&this.sn.Ed(L.yv(),I)}this.vM.Yw(vn({width:h?c:0,height:m}),h?n:0,h?i:0),this.sn.H_(c),this.rM!==n&&(this.rM=n),this.hM!==i&&(this.hM=i)}fM(t){t?this.jv.addEventListener("wheel",this.cM,{passive:!1}):this.jv.removeEventListener("wheel",this.cM)}zM(t){switch(t.deltaMode){case t.DOM_DELTA_PAGE:return 120;case t.DOM_DELTA_LINE:return 32}return TD?1/window.devicePixelRatio:1}dM(t){if(!(t.deltaX!==0&&this.yn.handleScroll.mouseWheel||t.deltaY!==0&&this.yn.handleScale.mouseWheel))return;const n=this.zM(t),i=n*t.deltaX/100,a=-n*t.deltaY/100;if(t.cancelable&&t.preventDefault(),a!==0&&this.yn.handleScale.mouseWheel){const o=Math.sign(a)*Math.min(1,Math.abs(a)),c=t.clientX-this.jv.getBoundingClientRect().left;this.Qt().Wd(c,o)}i!==0&&this.yn.handleScroll.mouseWheel&&this.Qt().Hd(-80*i)}yM(t,n){var a;const i=t.ls();i===3&&this.OM(),i!==3&&i!==2||(this.NM(t),this.FM(t,n),this.vM.Pt(),this.nM.forEach((o=>{o.hw()})),((a=this.aM)==null?void 0:a.ls())===3&&(this.aM.Ss(t),this.OM(),this.NM(this.aM),this.FM(this.aM,n),t=this.aM,this.aM=null)),this.Rm(t)}FM(t,n){for(const i of t.bs())this.xs(i,n)}NM(t){const n=this.sn.Gn();for(let i=0;i<n.length;i++)t._s(i).hs&&n[i].lu()}xs(t,n){const i=this.sn.Et();switch(t.ds){case 0:i.td();break;case 1:i.nd(t.Wt);break;case 2:i.Ms(t.Wt);break;case 3:i.gs(t.Wt);break;case 4:i.Wc();break;case 5:t.Wt.Kc(n)||i.gs(t.Wt.Gc(n))}}gd(t){this.aM!==null?this.aM.Ss(t):this.aM=t,this.lM||(this.lM=!0,this.eM=window.requestAnimationFrame((n=>{if(this.lM=!1,this.eM=0,this.aM!==null){const i=this.aM;this.aM=null,this.yM(i,n);for(const a of i.bs())if(a.ds===5&&!a.Wt.Kc(n)){this.Qt().ps(a.Wt);break}}})))}OM(){this.MM()}SM(t){this.uM.removeChild(t.fv()),t.m()}MM(){const t=this.sn.Gn(),n=t.length,i=this.nM.length;for(let a=n;a<i;a++){const o=Hr(this.nM.pop());this.uM.removeChild(o.fv()),o.mw().u(this),o.ww().u(this),o.m();const c=this.sM.pop();c!==void 0&&this.SM(c)}for(let a=i;a<n;a++){const o=new Wy(this,t[a]);if(o.mw().i(this.WM.bind(this,o),this),o.ww().i(this.HM.bind(this,o),this),this.nM.push(o),a>0){const c=new gD(this,a-1,a);this.sM.push(c),this.uM.insertBefore(c.fv(),this.vM.fv())}this.uM.insertBefore(o.fv(),this.vM.fv())}for(let a=0;a<n;a++){const o=t[a],c=this.nM[a];c.yv()!==o?c.ew(o):c.sw()}this.gM(),this.LM()}UM(t,n,i,a){var b;const o=new Map;t!==null&&this.sn.Jn().forEach((y=>{const T=y.Un().Hn(t);T!==null&&o.set(y,T)}));let c;if(t!==null){const y=(b=this.sn.Et().en(t))==null?void 0:b.originalTime;y!==void 0&&(c=y)}const d=this.Qt().cu(),h=this.$M(a),m=(function(y,T){var I;const k=y!==null&&y.uu instanceof Dg?y.uu:void 0,R=(I=y==null?void 0:y.bu)==null?void 0:I.te,N=T!==void 0&&T!==-1?T:void 0;return y===null||y.ee===void 0?{jM:k,qM:R}:{jM:k,qM:R,YM:{ds:y.ee,KM:(z=y.uu,L=y.ee,z instanceof zy?"pane-primitive":L==="marker"||L==="primitive"?"series-primitive":"series"),GM:fD(y.ee,R),Y_:k,ZM:R,XM:N}};var z,L})(d,h);return{Qr:c,$n:t??void 0,JM:n??void 0,XM:h!==-1?h:void 0,jM:m.jM,QM:o,qM:m.qM,YM:m.YM,tg:i??void 0}}$M(t){let n=-1;if(t)n=this.nM.indexOf(t);else{const i=this.Qt().Vd().Kn();i!==null&&(n=this.Qt().Gn().indexOf(i))}return n}WM(t,n,i,a){this.$m.p((()=>this.UM(n,i,a,t)))}HM(t,n,i,a){this.jm.p((()=>this.UM(n,i,a,t)))}pM(t,n,i){var a;this.BM(((a=this.Qt().cu())==null?void 0:a.gu)??null),this.wd.p((()=>this.UM(t,n,i)))}gM(){const t=this.yn.timeScale.visible?"":"none";this.vM.fv().style.display=t}IM(){return this.nM[0].yv().X_().N().visible}VM(){return this.nM[0].yv().J_().N().visible}mM(){return"ResizeObserver"in window&&(this.oM=new ResizeObserver((t=>{const n=t[t.length-1];if(!n)return;const i=n.contentRect.width,a=n.contentRect.height;this.wM(i,a,!0)})),this.oM.observe(this.Kv,{box:"border-box"}),!0)}xM(){this.oM!==null&&this.oM.disconnect(),this.oM=null}}function Xy(e){return!!(e.handleScroll.mouseWheel||e.handleScale.mouseWheel)}function MD(e){return e.open===void 0&&e.value===void 0}function RD(e){return(function(t){return t.open!==void 0})(e)||(function(t){return t.value!==void 0})(e)}function bS(e,t,n,i){const a=n.value,o={$n:t,wt:e,Wt:[a,a,a,a],Qr:i};return n.color!==void 0&&(o.R=n.color),o}function kD(e,t,n,i){const a=n.value,o={$n:t,wt:e,Wt:[a,a,a,a],Qr:i};return n.lineColor!==void 0&&(o.vt=n.lineColor),n.topColor!==void 0&&(o.ah=n.topColor),n.bottomColor!==void 0&&(o.oh=n.bottomColor),o}function _D(e,t,n,i){const a=n.value,o={$n:t,wt:e,Wt:[a,a,a,a],Qr:i};return n.topLineColor!==void 0&&(o._h=n.topLineColor),n.bottomLineColor!==void 0&&(o.uh=n.bottomLineColor),n.topFillColor1!==void 0&&(o.dh=n.topFillColor1),n.topFillColor2!==void 0&&(o.fh=n.topFillColor2),n.bottomFillColor1!==void 0&&(o.ph=n.bottomFillColor1),n.bottomFillColor2!==void 0&&(o.mh=n.bottomFillColor2),o}function AD(e,t,n,i){const a={$n:t,wt:e,Wt:[n.open,n.high,n.low,n.close],Qr:i};return n.color!==void 0&&(a.R=n.color),a}function ND(e,t,n,i){const a={$n:t,wt:e,Wt:[n.open,n.high,n.low,n.close],Qr:i};return n.color!==void 0&&(a.R=n.color),n.borderColor!==void 0&&(a.Ht=n.borderColor),n.wickColor!==void 0&&(a.hh=n.wickColor),a}function zD(e,t,n,i,a){const o=Hr(a)(n),c=Math.max(...o),d=Math.min(...o),h=o[o.length-1],m=[h,c,d,h],{time:b,color:y,...T}=n;return{$n:t,wt:e,Wt:m,Qr:i,ue:T,R:y}}function oh(e){return e.Wt!==void 0}function xS(e,t){return t.customValues!==void 0&&(e.ig=t.customValues),e}function Bu(e){return(t,n,i,a,o,c)=>(function(d,h){return h?h(d):MD(d)})(i,c)?xS({wt:t,$n:n,Qr:a},i):xS(e(t,n,i,a,o),i)}function wS(e){return{Candlestick:Bu(ND),Bar:Bu(AD),Area:Bu(kD),Baseline:Bu(_D),Histogram:Bu(bS),Line:Bu(bS),Custom:Bu(zD)}[e]}function SS(e){return{$n:0,ng:new Map,Oa:e}}function CS(e,t){if(e!==void 0&&e.length!==0)return{sg:t.key(e[0].wt),eg:t.key(e[e.length-1].wt)}}function TS(e){let t;return e.forEach((n=>{t===void 0&&(t=n.Qr)})),Hr(t)}class DD{constructor(t){this.rg=new Map,this.hg=new Map,this.ag=new Map,this.lg=[],this.Pu=t}m(){this.rg.clear(),this.hg.clear(),this.ag.clear(),this.lg=[]}og(t,n){let i=this.rg.size!==0,a=!1;const o=this.hg.get(t);if(o!==void 0)if(this.hg.size===1)i=!1,a=!0,this.rg.clear();else for(const h of this.lg)h.pointData.ng.delete(t)&&(a=!0);let c=[];if(n.length!==0){const h=n.map((k=>k.time)),m=this.Pu.createConverterToInternalObj(n),b=wS(t.bh()),y=t.ul(),T=t.cl();c=n.map(((k,R)=>{const N=m(k.time),z=this.Pu.key(N);let L=this.rg.get(z);L===void 0&&(L=SS(N),this.rg.set(z,L),a=!0);const I=b(N,L.$n,k,h[R],y,T);return L.ng.set(t,I),I}))}i&&this._g(),this.ug(t,c);let d=-1;if(a){const h=[];this.rg.forEach((m=>{h.push({timeWeight:0,time:m.Oa,pointData:m,originalTime:TS(m.ng)})})),h.sort(((m,b)=>this.Pu.key(m.time)-this.Pu.key(b.time))),d=this.cg(h)}return this.dg(t,d,(function(h,m,b){const y=CS(h,b),T=CS(m,b);if(y!==void 0&&T!==void 0)return{fg:!1,Va:y.eg>=T.eg&&y.sg>=T.sg}})(this.hg.get(t),o,this.Pu))}if(t){return this.og(t,[])}pg(t,n,i){if(i&&t.Fa())throw new Error("Historical updates are not supported when conflation is enabled. Conflation requires data to be processed in order.");const a=n;(function(L){L.Qr===void 0&&(L.Qr=L.time)})(a),this.Pu.preprocessData(n);const o=this.Pu.createConverterToInternalObj([n])(n.time),c=this.ag.get(t);if(!i&&c!==void 0&&this.Pu.key(o)<this.Pu.key(c))throw new Error(`Cannot update oldest data, last time=${c}, new time=${o}`);let d=this.rg.get(this.Pu.key(o));if(i&&d===void 0)throw new Error("Cannot update non-existing data point when historicalUpdate is true");const h=d===void 0;d===void 0&&(d=SS(o),this.rg.set(this.Pu.key(o),d));const m=wS(t.bh()),b=t.ul(),y=t.cl(),T=m(o,d.$n,n,a.Qr,b,y),k=!i&&!h&&c!==void 0&&this.Pu.key(o)===this.Pu.key(c);d.ng.set(t,T),i?this.vg(t,T,d.$n):k&&t.Fa()&&oh(T)?(t.Rr(T),this.mg(t,T)):this.mg(t,T);const R={Va:oh(T),fg:i};if(!h)return this.dg(t,-1,R);const N={timeWeight:0,time:d.Oa,pointData:d,originalTime:TS(d.ng)},z=Pu(this.lg,this.Pu.key(N.time),((L,I)=>this.Pu.key(L.time)<I));this.lg.splice(z,0,N);for(let L=z;L<this.lg.length;++L)Gg(this.lg[L].pointData,L);return this.Pu.fillWeightsForPoints(this.lg,z),this.dg(t,z,R)}wg(t,n){const i=this.hg.get(t);if(i===void 0||n<=0)return[[],this.Mg()];n=Math.min(n,i.length);const a=i.splice(-n).reverse();i.length===0?this.ag.delete(t):this.ag.set(t,i[i.length-1].wt);for(const o of a){const c=this.rg.get(this.Pu.key(o.wt));if(c&&(c.ng.delete(t),c.ng.size===0)){this.rg.delete(this.Pu.key(c.Oa)),this.lg.splice(c.$n,1);for(let d=c.$n;d<this.lg.length;++d)Gg(this.lg[d].pointData,d)}}return[a,this.dg(t,this.lg.length-1,{fg:!1,Va:!1})]}mg(t,n){let i=this.hg.get(t);i===void 0&&(i=[],this.hg.set(t,i));const a=i.length!==0?i[i.length-1]:null;a===null||this.Pu.key(n.wt)>this.Pu.key(a.wt)?oh(n)&&i.push(n):oh(n)?i[i.length-1]=n:i.splice(-1,1),this.ag.set(t,n.wt)}vg(t,n,i){const a=this.hg.get(t);if(a===void 0)return;const o=Pu(a,i,((c,d)=>c.$n<d));oh(n)?a[o]=n:a.splice(o,1)}ug(t,n){n.length!==0?(this.hg.set(t,n.filter(oh)),this.ag.set(t,n[n.length-1].wt)):(this.hg.delete(t),this.ag.delete(t))}_g(){for(const t of this.lg)t.pointData.ng.size===0&&this.rg.delete(this.Pu.key(t.time))}cg(t){let n=-1;for(let i=0;i<this.lg.length&&i<t.length;++i){const a=this.lg[i],o=t[i];if(this.Pu.key(a.time)!==this.Pu.key(o.time)){n=i;break}o.timeWeight=a.timeWeight,Gg(o.pointData,i)}if(n===-1&&this.lg.length!==t.length&&(n=Math.min(this.lg.length,t.length)),n===-1)return-1;for(let i=n;i<t.length;++i)Gg(t[i].pointData,i);return this.Pu.fillWeightsForPoints(t,n),this.lg=t,n}gg(){if(this.hg.size===0)return null;let t=0;return this.hg.forEach((n=>{n.length!==0&&(t=Math.max(t,n[n.length-1].$n))})),t}dg(t,n,i){const a=this.Mg();if(n!==-1)this.hg.forEach(((o,c)=>{a.Y_.set(c,{ue:o,bg:c===t?i:void 0})})),this.hg.has(t)||a.Y_.set(t,{ue:[],bg:i}),a.Et.Sg=this.lg,a.Et.xg=n;else{const o=this.hg.get(t);a.Y_.set(t,{ue:o||[],bg:i})}return a}Mg(){return{Y_:new Map,Et:{Dc:this.gg()}}}}function Gg(e,t){e.$n=t,e.ng.forEach((n=>{n.$n=t}))}function OD(e,t){return e._t<t}function PD(e,t){return t<e._t}function Qy(e,t,n,i){return Pu(e,t,OD,n,i)}function Zy(e,t,n,i){return Ry(e,t,PD,n,i)}function Yg(e,t,n){return{ne:e,se:t,ee:n}}function ES(e,t,n,i){return e>=t-i&&e<=n+i}function Lf(e,t,n,i,a,o){const c=a-n,d=o-i;if(c===0&&d===0)return Math.hypot(e-n,t-i);const h=((e-n)*c+(t-i)*d)/(c*c+d*d),m=Math.max(0,Math.min(1,h)),b=n+c*m,y=i+d*m;return Math.hypot(e-b,t-y)}const Jy=[0,0];function LD(e,t,n){return t===void 0||t.wt!==e.wt-1?e._t-n/2:(t._t+e._t)/2}function ID(e,t,n){return t===void 0||t.wt!==e.wt+1?e._t+n/2:(e._t+t._t)/2}function BD(e,t,n,i,a,o,c){if(t===null||t.from>=t.to||e.length===0)return null;const d=a/2+o,h=Qy(e,n-d,t.from,t.to),m=Zy(e,n+d,h,t.to);if(h>=m)return null;let b=Number.POSITIVE_INFINITY;for(let y=h;y<m;y++){const T=e[y],k=y>t.from?e[y-1]:void 0,R=y<t.to-1?e[y+1]:void 0,N=LD(T,k,a)-o,z=ID(T,R,a)+o;if(n<N||n>z)continue;c(T,Jy);const L=Jy[0],I=Jy[1],F=Math.min(L,I),B=Math.max(L,I),Y=F-o,Z=B+o;if(i>=F&&i<=B)b=Math.min(b,0);else if(i>=Y&&i<=Z){const et=Math.min(Math.abs(i-F),Math.abs(B-i));b=Math.min(b,et)}}return Number.isFinite(b)?Yg(b,0,"series-range"):null}function jD(e,t){return e.wt<t}function FD(e,t){return t<e.wt}function MS(e,t,n){const i=t.Na(),a=t.bi(),o=Pu(e,i,jD),c=Ry(e,a,FD);if(!n)return{from:o,to:c};let d=o,h=c;return o>0&&o<e.length&&e[o].wt>=i&&(d=o-1),c>0&&c<e.length&&e[c-1].wt<=a&&(h=c+1),{from:d,to:h}}class RS{constructor(t,n,i){this.Cg=!0,this.yg=!0,this.Pg=!0,this.kg=[],this.Tg=null,this.Rg=-1,this.ae=t,this.le=n,this.Dg=i}Pt(t){this.Cg=!0,t==="data"&&(this.yg=!0),t==="options"&&(this.Pg=!0)}Tt(){return this.ae.It()?(this.Ig(),this.Tg===null?null:this.Vg):null}Qs(t,n){return this.ae.It()?(this.Ig(),this.Tg===null?null:this.Bg(t,n)):null}Bg(t,n){return null}Eg(){this.kg=this.kg.map((t=>({...t,...this.ae.Sa().Sh(t.wt)})))}Ag(){this.Tg=null}Ig(){const t=this.le.Et(),n=t.N().enableConflation?t.sd():0;n!==this.Rg&&(this.yg=!0,this.Rg=n),this.yg&&(this.Lg(),this.yg=!1),this.Pg&&(this.Eg(),this.Pg=!1),this.Cg&&(this.zg(),this.Cg=!1)}zg(){const t=this.ae.Ft(),n=this.le.Et();if(this.Ag(),n.Zi()||t.Zi())return;const i=n.Ee();if(i===null||this.ae.Un().Th()===0)return;const a=this.ae.Lt();a!==null&&(this.Tg=MS(this.kg,i,this.Dg),this.Og(t,n,a.Wt),this.Ng())}}class UD{constructor(t,n){this.Fg=t,this.Ki=n}st(t,n,i){this.Fg.draw(t,this.Ki,n,i)}}function VD(e){switch(e){case"point":return 2;case"range":return 0;default:return 1}}class HD extends RS{constructor(t,n,i){super(t,n,!1),this.Yh=i,this.Fg=this.Yh.renderer(),this.Vg=new UD(this.Fg,(a=>this.Wg(a)))}get ga(){return this.Yh.conflationReducer}Ha(t){return this.Yh.priceValueBuilder(t)}dl(t){return this.Yh.isWhitespace(t)}Bg(t,n){var c,d;const i=(d=(c=this.Fg).hitTest)==null?void 0:d.call(c,t,n,(h=>this.Wg(h)));if(i!=null)return{ne:(a=i).distance,se:VD(a.type),ee:"custom",gu:a.cursorStyle,te:a.objectId,ie:a.hitTestData};var a;const o=BD(this.kg,this.Tg,t,n,this.le.Et().ml(),this.ae.N().hitTestTolerance,((h,m)=>{const b=h.Hg;let y=NaN,T=NaN;if(b!==void 0&&!this.Yh.isWhitespace(b))for(const k of this.Yh.priceValueBuilder(b)){const R=this.Wg(k);R!==null&&(y=Number.isNaN(y)?R:Math.min(y,R),T=Number.isNaN(T)?R:Math.max(T,R))}m[0]=y,m[1]=T}));return o===null?null:{...o,ee:"custom"}}Lg(){const t=this.ae.Sa();this.kg=this.ae.Ua().Bh().map((n=>({wt:n.$n,_t:NaN,...t.Sh(n.$n),Hg:n.ue})))}Og(t,n){n.Ic(this.kg,Ty(this.Tg))}Ng(){this.Yh.update({bars:this.kg.map(GD),barSpacing:this.le.Et().ml(),visibleRange:this.Tg,conflationFactor:this.le.Et().sd()},this.ae.N())}Wg(t){const n=this.ae.Lt();return n===null?null:this.ae.Ft().Nt(t,n.Wt)}}function GD(e){return{x:e._t,time:e.wt,originalData:e.Hg,barColor:e.sh}}const YD={color:"#2196f3"},WD=(e,t,n)=>{const i=ql(n);return new HD(e,t,i)};function qy(e){const t={value:e.Wt[3],time:e.Qr};return e.ig!==void 0&&(t.customValues=e.ig),t}function kS(e){const t=qy(e);return e.R!==void 0&&(t.color=e.R),t}function KD(e){const t=qy(e);return e.vt!==void 0&&(t.lineColor=e.vt),e.ah!==void 0&&(t.topColor=e.ah),e.oh!==void 0&&(t.bottomColor=e.oh),t}function XD(e){const t=qy(e);return e._h!==void 0&&(t.topLineColor=e._h),e.uh!==void 0&&(t.bottomLineColor=e.uh),e.dh!==void 0&&(t.topFillColor1=e.dh),e.fh!==void 0&&(t.topFillColor2=e.fh),e.ph!==void 0&&(t.bottomFillColor1=e.ph),e.mh!==void 0&&(t.bottomFillColor2=e.mh),t}function _S(e){const t={open:e.Wt[0],high:e.Wt[1],low:e.Wt[2],close:e.Wt[3],time:e.Qr};return e.ig!==void 0&&(t.customValues=e.ig),t}function QD(e){const t=_S(e);return e.R!==void 0&&(t.color=e.R),t}function ZD(e){const t=_S(e),{R:n,Ht:i,hh:a}=e;return n!==void 0&&(t.color=n),i!==void 0&&(t.borderColor=i),a!==void 0&&(t.wickColor=a),t}function Wg(e){return{Area:KD,Line:kS,Baseline:XD,Histogram:kS,Bar:QD,Candlestick:ZD,Custom:JD}[e]}function JD(e){const t=e.Qr;return{...e.ue,time:t}}const qD={vertLine:{color:"#9598A1",width:1,style:3,visible:!0,labelVisible:!0,labelBackgroundColor:"#131722"},horzLine:{color:"#9598A1",width:1,style:3,visible:!0,labelVisible:!0,labelBackgroundColor:"#131722"},mode:1,doNotSnapToHiddenSeriesIndices:!1},$D={vertLines:{color:"#D6DCDE",style:0,visible:!0},horzLines:{color:"#D6DCDE",style:0,visible:!0}},tO={background:{type:"solid",color:"#FFFFFF"},textColor:"#191919",fontSize:12,fontFamily:E1,panes:{enableResize:!0,separatorColor:"#E0E3EB",separatorHoverColor:"rgba(178, 181, 189, 0.2)"},attributionLogo:!0,colorSpace:"srgb",colorParsers:[]},$y={autoScale:!0,mode:0,invertScale:!1,alignLabels:!0,borderVisible:!0,borderColor:"#2B2B43",entireTextOnly:!1,visible:!1,ticksVisible:!1,scaleMargins:{bottom:.1,top:.2},minimumWidth:0,ensureEdgeTickMarksVisible:!1,tickMarkDensity:2.5},eO={rightOffset:0,barSpacing:6,minBarSpacing:.5,maxBarSpacing:0,fixLeftEdge:!1,fixRightEdge:!1,lockVisibleTimeRangeOnResize:!1,rightBarStaysOnScroll:!1,borderVisible:!0,borderColor:"#2B2B43",visible:!0,timeVisible:!1,secondsVisible:!0,shiftVisibleRangeOnNewBar:!0,allowShiftVisibleRangeOnWhitespaceReplacement:!1,ticksVisible:!1,uniformDistribution:!1,minimumHeight:0,allowBoldLabels:!0,ignoreWhitespaceIndices:!1,enableConflation:!1,conflationThresholdFactor:1,precomputeConflationOnInit:!1,precomputeConflationPriority:"background"};function AS(){return{addDefaultPane:!0,hoveredSeriesOnTop:!0,width:0,height:0,autoSize:!1,layout:tO,crosshair:qD,grid:$D,overlayPriceScales:{...$y},leftPriceScale:{...$y,visible:!1},rightPriceScale:{...$y,visible:!0},defaultVisiblePriceScaleId:"right",timeScale:eO,localization:{locale:sh?navigator.language:"",dateFormat:"dd MMM 'yy"},handleScroll:{mouseWheel:!0,pressedMouseMove:!0,horzTouchDrag:!0,vertTouchDrag:!0},handleScale:{axisPressedMouseMove:{time:!0,price:!0},axisDoubleClickReset:{time:!0,price:!0},mouseWheel:!0,pinch:!0},kineticScroll:{mouse:!1,touch:!0},trackingMode:{exitMode:1}}}class NS{constructor(t,n,i){this.hv=t,this.Ug=n,this.$g=i??0}applyOptions(t){this.hv.Qt().Dd(this.Ug,t,this.$g)}options(){return this.Ki().N()}width(){return Mg(this.Ug)?this.hv.DM(this.Ug):0}setVisibleRange(t){this.setAutoScale(!1),this.Ki().Go(new wr(t.from,t.to))}getVisibleRange(){let t,n,i=this.Ki().ar();if(i===null)return null;if(this.Ki().ho()){const a=this.Ki().S_(),o=iS(a);i=nh(i,this.Ki().lo()),t=Number((Math.round(i.Je()/a)*a).toFixed(o)),n=Number((Math.round(i.Qe()/a)*a).toFixed(o))}else t=i.Je(),n=i.Qe();return{from:t,to:n}}setAutoScale(t){this.applyOptions({autoScale:t})}Ki(){return It(this.hv.Qt().Id(this.Ug,this.$g)).Ft}}class nO{constructor(t,n,i,a){this.hv=t,this.yt=i,this.jg=n,this.qg=a}getHeight(){return this.yt.$t()}setHeight(t){const n=this.hv.Qt(),i=n._f(this.yt);n.Ld(i,t)}getStretchFactor(){return this.yt.F_()}setStretchFactor(t){this.yt.W_(t),this.hv.Qt().ka()}paneIndex(){return this.hv.Qt()._f(this.yt)}moveTo(t){const n=this.paneIndex();n!==t&&($i(t>=0&&t<this.hv.lv().length,"Invalid pane index"),this.hv.Qt().Od(n,t))}getSeries(){return this.yt.Y_().map((t=>this.jg(t)))??[]}getHTMLElement(){const t=this.hv.lv();return t&&t.length!==0&&t[this.paneIndex()]?t[this.paneIndex()].fv():null}attachPrimitive(t){this.yt.ol(t),t.attached&&t.attached({chart:this.qg,requestUpdate:()=>this.yt.Qt().ka()})}detachPrimitive(t){this.yt._l(t)}priceScale(t){if(this.yt.O_(t)===null)throw new Error(`Cannot find price scale with id: ${t}`);return new NS(this.hv,t,this.paneIndex())}setPreserveEmptyPane(t){this.yt.j_(t)}preserveEmptyPane(){return this.yt.q_()}addCustomSeries(t,n={},i=0){return this.qg.addCustomSeries(t,n,i)}addSeries(t,n={}){return this.qg.addSeries(t,n,this.paneIndex())}}const iO={color:"#FF0000",price:0,lineStyle:2,lineWidth:1,lineVisible:!0,axisLabelVisible:!0,title:"",axisLabelColor:"",axisLabelTextColor:""};class zS{constructor(t){this._r=t}applyOptions(t){this._r.vr(t)}options(){return this._r.N()}Yg(){return this._r}}class rO{constructor(t,n,i,a,o,c){this.Kg=new ti,this.ae=t,this.Gg=n,this.Zg=i,this.Pu=o,this.qg=a,this.Xg=c}m(){this.Kg.m()}priceFormatter(){return this.ae.sl()}priceToCoordinate(t){const n=this.ae.Lt();return n===null?null:this.ae.Ft().Nt(t,n.Wt)}coordinateToPrice(t){const n=this.ae.Lt();return n===null?null:this.ae.Ft().Tn(t,n.Wt)}barsInLogicalRange(t){if(t===null)return null;const n=new rh(new ih(t.from,t.to)).Uu(),i=this.ae.Un();if(i.Zi())return null;const a=i.Hn(n.Na(),1),o=i.Hn(n.bi(),-1),c=It(i.Rh()),d=It(i.Qn());if(a!==null&&o!==null&&a.$n>o.$n)return{barsBefore:t.from-c,barsAfter:d-t.to};const h={barsBefore:a===null||a.$n===c?t.from-c:a.$n-c,barsAfter:o===null||o.$n===d?d-t.to:d-o.$n};return a!==null&&o!==null&&(h.from=a.Qr,h.to=o.Qr),h}setData(t){this.Pu,this.ae.bh(),this.Gg.Jg(this.ae,t),this.Qg("full")}update(t,n=!1){this.ae.bh(),this.Gg.tb(this.ae,t,n),this.Qg("update")}pop(t=1){const n=this.Gg.ib(this.ae,t);n.length!==0&&this.Qg("update");const i=Wg(this.seriesType());return n.map((a=>i(a)))}dataByIndex(t,n){const i=this.ae.Un().Hn(t,n);return i===null?null:Wg(this.seriesType())(i)}data(){const t=Wg(this.seriesType());return this.ae.Un().Bh().map((n=>t(n)))}subscribeDataChanged(t){this.Kg.i(t)}unsubscribeDataChanged(t){this.Kg._(t)}applyOptions(t){this.ae.vr(t)}options(){return tl(this.ae.N())}priceScale(){return this.Zg.priceScale(this.ae.Ft().pl(),this.getPane().paneIndex())}createPriceLine(t){const n=as(tl(iO),t),i=this.ae.Ea(n);return new zS(i)}removePriceLine(t){this.ae.Aa(t.Yg())}priceLines(){return this.ae.La().map((t=>new zS(t)))}seriesType(){return this.ae.bh()}lastValueData(t){const n=this.ae.Ae(t);return n.Le?{noData:!0}:{noData:!1,price:n.Mt,color:n.R}}attachPrimitive(t){this.ae.ol(t),t.attached&&t.attached({chart:this.qg,series:this,requestUpdate:()=>this.ae.Qt().ka(),horzScaleBehavior:this.Pu})}detachPrimitive(t){this.ae._l(t),t.detached&&t.detached(),this.ae.Qt().ka()}getPane(){const t=this.ae,n=It(this.ae.Qt().Ks(t));return this.Xg(n)}moveToPane(t){this.ae.Qt().rf(this.ae,t)}seriesOrder(){const t=this.ae.Qt().Ks(this.ae);return t===null?-1:t.Y_().indexOf(this.ae)}setSeriesOrder(t){const n=this.ae.Qt().Ks(this.ae);n!==null&&n.vu(this.ae,t)}Qg(t){this.Kg.v()&&this.Kg.p(t)}}class sO{constructor(t,n,i){this.nb=new ti,this.Qu=new ti,this.Nw=new ti,this.sn=t,this.ia=t.Et(),this.vM=n,this.ia.Zc().i(this.sb.bind(this)),this.ia.Xc().i(this.eb.bind(this)),this.vM.qw().i(this.rb.bind(this)),this.Pu=i}m(){this.ia.Zc().u(this),this.ia.Xc().u(this),this.vM.qw().u(this),this.nb.m(),this.Qu.m(),this.Nw.m()}scrollPosition(){return this.ia.Oc()}scrollToPosition(t,n){n?this.ia.Yc(t,1e3):this.sn.gs(t)}scrollToRealTime(){this.ia.qc()}getVisibleRange(){const t=this.ia.xc();return t===null?null:{from:t.from.originalTime,to:t.to.originalTime}}setVisibleRange(t){const n={from:this.Pu.convertHorzItemToInternal(t.from),to:this.Pu.convertHorzItemToInternal(t.to)},i=this.ia.kc(n);this.sn.sf(i)}getVisibleLogicalRange(){const t=this.ia.Sc();return t===null?null:{from:t.Na(),to:t.bi()}}setVisibleLogicalRange(t){$i(t.from<=t.to,"The from index cannot be after the to index."),this.sn.sf(t)}resetTimeScale(){this.sn.ws()}fitContent(){this.sn.td()}logicalToCoordinate(t){const n=this.sn.Et();return n.Zi()?null:n.jt(t)}coordinateToLogical(t){return this.ia.Zi()?null:this.ia.Vc(t)}timeToIndex(t,n){const i=this.Pu.convertHorzItemToInternal(t);return this.ia.Mc(i,n)}timeToCoordinate(t){const n=this.timeToIndex(t,!1);return n===null?null:this.ia.jt(n)}coordinateToTime(t){const n=this.sn.Et(),i=n.Vc(t),a=n.en(i);return a===null?null:a.originalTime}width(){return this.vM.pv().width}height(){return this.vM.pv().height}subscribeVisibleTimeRangeChange(t){this.nb.i(t)}unsubscribeVisibleTimeRangeChange(t){this.nb._(t)}subscribeVisibleLogicalRangeChange(t){this.Qu.i(t)}unsubscribeVisibleLogicalRangeChange(t){this.Qu._(t)}subscribeSizeChange(t){this.Nw.i(t)}unsubscribeSizeChange(t){this.Nw._(t)}applyOptions(t){this.ia.vr(t)}options(){return{...tl(this.ia.N()),barSpacing:this.ia.ml()}}sb(){this.nb.v()&&this.nb.p(this.getVisibleRange())}eb(){this.Qu.v()&&this.Qu.p(this.getVisibleLogicalRange())}rb(t){this.Nw.p(t.width,t.height)}}function DS(e){return(function(t){if(Cg(t.handleScale)){const i=t.handleScale;t.handleScale={axisDoubleClickReset:{time:i,price:i},axisPressedMouseMove:{time:i,price:i},mouseWheel:i,pinch:i}}else if(t.handleScale!==void 0){const{axisPressedMouseMove:i,axisDoubleClickReset:a}=t.handleScale;Cg(i)&&(t.handleScale.axisPressedMouseMove={time:i,price:i}),Cg(a)&&(t.handleScale.axisDoubleClickReset={time:a,price:a})}const n=t.handleScroll;Cg(n)&&(t.handleScroll={horzTouchDrag:n,vertTouchDrag:n,mouseWheel:n,pressedMouseMove:n})})(e),e}class aO{constructor(t,n,i){this.hb=new Map,this.ab=new Map,this.lb=new ti,this.ob=new ti,this._b=new ti,this.dd=new WeakMap,this.ub=new DD(n);const a=i===void 0?tl(AS()):as(tl(AS()),DS(i));this.cb=n,this.hv=new ED(t,a,n),this.hv.mw().i((c=>{this.lb.v()&&this.lb.p(this.fb(c()))}),this),this.hv.ww().i((c=>{this.ob.v()&&this.ob.p(this.fb(c()))}),this),this.hv.Bd().i((c=>{this._b.v()&&this._b.p(this.fb(c()))}),this);const o=this.hv.Qt();this.pb=new sO(o,this.hv.bM(),this.cb)}remove(){this.hv.mw().u(this),this.hv.ww().u(this),this.hv.Bd().u(this),this.pb.m(),this.hv.m(),this.hb.clear(),this.ab.clear(),this.lb.m(),this.ob.m(),this._b.m(),this.ub.m()}resize(t,n,i){this.autoSizeActive()||this.hv.wM(t,n,i)}addCustomSeries(t,n={},i=0){const a=(o=>({type:"Custom",isBuiltIn:!1,defaultOptions:{...YD,...o.defaultOptions()},mb:WD,wb:o}))(ql(t));return this.Mb(a,n,i)}addSeries(t,n={},i=0){return this.Mb(t,n,i)}removeSeries(t){const n=Hr(this.hb.get(t)),i=this.ub.if(n);this.hv.Qt().if(n),this.gb(i),this.hb.delete(t),this.ab.delete(n)}Jg(t,n){this.gb(this.ub.og(t,n))}tb(t,n,i){this.gb(this.ub.pg(t,n,i))}ib(t,n){const[i,a]=this.ub.wg(t,n);return i.length!==0&&this.gb(a),i}subscribeClick(t){this.lb.i(t)}unsubscribeClick(t){this.lb._(t)}subscribeCrosshairMove(t){this._b.i(t)}unsubscribeCrosshairMove(t){this._b._(t)}subscribeDblClick(t){this.ob.i(t)}unsubscribeDblClick(t){this.ob._(t)}priceScale(t,n=0){return new NS(this.hv,t,n)}timeScale(){return this.pb}applyOptions(t){this.hv.vr(DS(t))}options(){return this.hv.N()}takeScreenshot(t=!1,n=!1){let i,a;try{n||(i=this.hv.Qt().N().crosshair.mode,this.hv.vr({crosshair:{mode:2}})),a=this.hv.TM(t)}finally{n||i===void 0||this.hv.Qt().vr({crosshair:{mode:i}})}return a}addPane(t=!1){const n=this.hv.Qt().uf();return n.j_(t),this.bb(n)}removePane(t){this.hv.Qt().Ad(t)}swapPanes(t,n){this.hv.Qt().zd(t,n)}autoSizeActive(){return this.hv.CM()}chartElement(){return this.hv.Mv()}panes(){return this.hv.Qt().Gn().map((t=>this.bb(t)))}paneSize(t=0){const n=this.hv.AM(t);return{height:n.height,width:n.width}}setCrosshairPosition(t,n,i){const a=this.hb.get(i);if(a===void 0)return;const o=this.hv.Qt().Ks(a);o!==null&&this.hv.Qt().Gd(t,n,o)}clearCrosshairPosition(){this.hv.Qt().Zd(!0)}horzBehaviour(){return this.cb}Mb(t,n={},i=0){$i(t.mb!==void 0),(function(h){if(h===void 0||h.type==="custom")return;const m=h;m.minMove!==void 0&&m.precision===void 0&&(m.precision=iS(m.minMove))})(n.priceFormat),t.type==="Candlestick"&&(function(h){h.borderColor!==void 0&&(h.borderUpColor=h.borderColor,h.borderDownColor=h.borderColor),h.wickColor!==void 0&&(h.wickUpColor=h.wickColor,h.wickDownColor=h.wickColor)})(n);const a=as(tl(x1),tl(t.defaultOptions),n),o=t.mb,c=new Dg(this.hv.Qt(),t.type,a,o,t.wb);this.hv.Qt().Qd(c,i);const d=new rO(c,this,this,this,this.cb,(h=>this.bb(h)));return this.hb.set(d,c),this.ab.set(c,d),d}gb(t){const n=this.hv.Qt();for(const i of t.Y_.keys())i.Ia();n.Xd(t.Et.Dc,t.Et.Sg,t.Et.xg),t.Y_.forEach(((i,a)=>a.ht(i.ue,i.bg))),n.Et().dc(),n.Lc()}Sb(t){return Hr(this.ab.get(t))}xb(t){return t!==void 0&&this.ab.has(t)?this.Sb(t):void 0}fb(t){const n=new Map;t.QM.forEach(((o,c)=>{const d=c.bh(),h=Wg(d)(o);if(d!=="Custom")$i(RD(h));else{const m=c.cl();$i(!m||m(h)===!1)}n.set(this.Sb(c),h)}));const i=this.xb(t.jM),a=t.YM===void 0?void 0:{type:t.YM.ds,sourceKind:t.YM.KM,objectKind:t.YM.GM,series:this.xb(t.YM.Y_),objectId:t.YM.ZM,paneIndex:t.YM.XM};return{time:t.Qr,logical:t.$n,point:t.JM,paneIndex:t.XM,hoveredInfo:a,hoveredSeries:i,hoveredObjectId:t.qM,seriesData:n,sourceEvent:t.tg}}bb(t){let n=this.dd.get(t);return n||(n=new nO(this.hv,(i=>this.Sb(i)),t,this),this.dd.set(t,n)),n}}function oO(e){if(kf(e)){const t=document.getElementById(e);return $i(t!==null,`Cannot find element in DOM with id=${e}`),t}return e}function lO(e,t,n){const i=oO(e),a=new aO(i,t,n);return t.setOptions(a.options()),a}function OS(e,t){return lO(e,new dS,dS.Tf(t))}function If(e,t,n,i){return Math.hypot(n-e,i-t)}function cO(e,t,n,i,a,o,c,d=0){if(t.length===0||i.from>=t.length||i.to<=0)return;const{context:h,horizontalPixelRatio:m,verticalPixelRatio:b}=e,y=t[i.from];let T=o(e,y),k=y;if(i.to-i.from<2){const R=a/2;h.beginPath();const N={_t:y._t-R,ut:y.ut},z={_t:y._t+R,ut:y.ut};h.moveTo(N._t*m,N.ut*b),h.lineTo(z._t*m,z.ut*b),c(e,T,N,z)}else{const R=d>0;let N=0;const z=(I,F)=>{if(c(e,T,k,F),h.beginPath(),T=I,k=F,R){const B=N%d;h.lineDashOffset=B,N=B}};let L=k;h.beginPath(),h.moveTo(y._t*m,y.ut*b);for(let I=i.from+1;I<i.to;++I){L=t[I];const F=L._t*m,B=L.ut*b,Y=o(e,L);switch(n){case 0:if(h.lineTo(F,B),R){const Z=t[I-1],et=Z._t*m,q=Z.ut*b;N+=If(et,q,F,B)}break;case 1:{const Z=t[I-1],et=Z.ut*b;h.lineTo(F,et),R&&(N+=Math.abs(L._t-Z._t)*m),Y!==T&&(z(Y,L),h.lineTo(F,et)),h.lineTo(F,B),R&&(N+=Math.abs(L.ut-Z.ut)*b);break}case 2:{const[Z,et]=eb(t,I-1,I),q=Z._t*m,nt=Z.ut*b,ot=et._t*m,Ct=et.ut*b;if(h.bezierCurveTo(q,nt,ot,Ct,F,B),R){const ct=t[I-1],mt=ct._t*m,Rt=ct.ut*b,ut=If(mt,Rt,F,B),j=If(mt,Rt,q,nt)+If(q,nt,ot,Ct)+If(ot,Ct,F,B);N+=(ut+j)/2}break}}n!==1&&Y!==T&&(z(Y,L),h.moveTo(F,B))}(k!==L||k===L&&n===1)&&c(e,T,k,L),R&&(h.lineDashOffset=0)}}const PS=6;function tb(e,t){return{_t:e._t-t._t,ut:e.ut-t.ut}}function LS(e,t){return{_t:e._t/t,ut:e.ut/t}}function eb(e,t,n){const i=Math.max(0,t-1),a=Math.min(e.length-1,n+1);var o,c;return[(o=e[t],c=LS(tb(e[n],e[i]),PS),{_t:o._t+c._t,ut:o.ut+c.ut}),tb(e[n],LS(tb(e[a],e[t]),PS))]}function uO(e,t){const n=e.context;n.strokeStyle=t,n.stroke()}let dO=class extends th{constructor(){super(...arguments),this.rt=null}ht(t){this.rt=t}et(t){if(this.rt===null)return;const{ot:n,lt:i,Cb:a,yb:o,ct:c,Gt:d,Pb:h}=this.rt;if(i===null)return;const m=t.context;m.lineCap="butt",m.lineWidth=c*t.verticalPixelRatio;const b=Du(m,d);m.lineJoin="round";const y=this.kb.bind(this),T=(function(k){return k.reduce(((R,N)=>R+N),0)})(b);o!==void 0&&cO(t,n,o,i,a,y,uO,T),h&&(function(k,R,N,z,L){if(z.to-z.from<=0)return;const{horizontalPixelRatio:I,verticalPixelRatio:F,context:B}=k;let Y=null;const Z=Math.max(1,Math.floor(I))%2/2,et=N*F+Z;for(let q=z.to-1;q>=z.from;--q){const nt=R[q];if(nt){const ot=L(k,nt);ot!==Y&&(Y!==null&&B.fill(),B.beginPath(),B.fillStyle=ot,Y=ot);const Ct=Math.round(nt._t*I)+Z,ct=nt.ut*F;B.moveTo(Ct,ct),B.arc(Ct,ct,et,0,2*Math.PI)}}B.fill()})(t,n,h,i,y)}},hO=class extends dO{kb(t,n){return n.vt}};function IS(e,t,n,i,a){const o=1-a;return o*o*o*e+3*o*o*a*t+3*o*a*a*n+a*a*a*i}function fO(e,t,n,i,a){if(n===2){const[o,c]=eb(i,a-1,a);return[Math.min(e._t,t._t,o._t,c._t),Math.max(e._t,t._t,o._t,c._t)]}return[Math.min(e._t,t._t),Math.max(e._t,t._t)]}function mO(e,t,n,i,a,o,c,d){switch(a){case 1:{const h=Lf(e,t,n._t,n.ut,i._t,n.ut),m=Lf(e,t,i._t,n.ut,i._t,i.ut),b=Math.min(h,m);return b<=d?b:null}case 2:{const[h,m]=eb(o,c-1,c),b=(function(y,T,k){let R=Number.POSITIVE_INFINITY,N=k[0];for(let z=1;z<=12;z++){const L=z/12,I={_t:IS(k[0]._t,k[1]._t,k[2]._t,k[3]._t,L),ut:IS(k[0].ut,k[1].ut,k[2].ut,k[3].ut,L)};R=Math.min(R,Lf(y,T,N._t,N.ut,I._t,I.ut)),N=I}return R})(e,t,[n,h,m,i]);return b<=d?b:null}default:{const h=Lf(e,t,n._t,n.ut,i._t,i.ut);return h<=d?h:null}}}let gO=class extends RS{constructor(t,n){super(t,n,!0)}Og(t,n,i){n.Ic(this.kg,Ty(this.Tg)),t.Jo(this.kg,i,Ty(this.Tg))}Tb(t,n){return{wt:t,Mt:n,_t:NaN,ut:NaN}}Lg(){const t=this.ae.Sa();this.kg=this.ae.Ua().Bh().map((n=>{let i;if((n.Gr??1)>1){const a=n.Wt[1],o=n.Wt[2],c=n.Wt[3];i=Math.abs(a-c)>Math.abs(o-c)?a:o}else i=n.Wt[3];return this.Rb(n.$n,i,t)}))}},pO=class extends gO{Bg(t,n){const i=this.ae.N();return(function(a,o,c,d,h,m,b,y=0,T=0){if(o===null||o.from>=o.to||a.length===0)return null;const k=Math.max(m/2,b??0)+T;let R=Number.POSITIVE_INFINITY;if(b!==void 0){const B=b+T,Y=Qy(a,c-B,o.from,o.to),Z=Zy(a,c+B,Y,o.to);for(let et=Y;et<Z;et++){const q=a[et];if(!ES(c,q._t,q._t,b+T))continue;const nt=Math.hypot(c-q._t,d-q.ut);nt<=b+T&&(R=Math.min(R,nt))}}if(o.to-o.from<2){const B=a[o.from],Y=Math.max(y/2,k),Z=Lf(c,d,B._t-Y,B.ut,B._t+Y,B.ut);return Z<=k&&(R=Math.min(R,Z)),Number.isFinite(R)?Yg(R,2,"series-point"):null}let N=Number.POSITIVE_INFINITY;const z=Qy(a,c-k,o.from,o.to),L=Zy(a,c+k,z,o.to),I=Math.max(o.from+1,z),F=Math.min(o.to,L+1);for(let B=I;B<F;B++){const Y=a[B-1],Z=a[B],[et,q]=fO(Y,Z,h,a,B);if(!ES(c,et,q,k))continue;const nt=mO(c,d,Y,Z,h,a,B,k);nt!==null&&(N=Math.min(N,nt))}return Number.isFinite(R)?Yg(R,2,"series-point"):Number.isFinite(N)?Yg(N,1,"series-line"):null})(this.kg,this.Tg,t,n,i.lineType,i.lineVisible?i.lineWidth:1,i.pointMarkersVisible?i.pointMarkersRadius||i.lineWidth/2+2:void 0,this.le.Et().ml(),i.hitTestTolerance)}},vO=class extends pO{constructor(){super(...arguments),this.Vg=new hO}Rb(t,n,i){return{...this.Tb(t,n),...i.Sh(t)}}Ng(){const t=this.ae.N(),n={ot:this.kg,Gt:t.lineStyle,yb:t.lineVisible?t.lineType:void 0,ct:t.lineWidth,Pb:t.pointMarkersVisible?t.pointMarkersRadius||t.lineWidth/2+2:void 0,lt:this.Tg,Cb:this.le.Et().ml()};this.Vg.ht(n)}};const BS={type:"Line",isBuiltIn:!0,defaultOptions:{color:"#2196f3",lineStyle:0,lineWidth:3,lineType:0,lineVisible:!0,crosshairMarkerVisible:!0,crosshairMarkerRadius:4,crosshairMarkerBorderColor:"",crosshairMarkerBorderWidth:2,crosshairMarkerBackgroundColor:"",lastPriceAnimation:0,pointMarkersVisible:!1},mb:(e,t)=>new vO(e,t)};class yO{constructor(t,n){this.ae=t,this.Jh=n,this.CS()}detach(){this.ae.detachPrimitive(this.Jh)}getSeries(){return this.ae}applyOptions(t){this.Jh&&this.Jh.vr&&this.Jh.vr(t)}CS(){this.ae.attachPrimitive(this.Jh)}}const bO={autoScale:!0,zOrder:"normal"};function jS(e,t){return Pg(Math.min(Math.max(e,12),30)*t)}function lh(e,t){const n=e==="circle"?.8:e==="square"?.7:1;return Pg(Math.max(t,12)*n)}function FS(e){return(function(t){const n=Math.ceil(t);return n%2!=0?n-1:n})(jS(e,1))}function US(e){return Math.max(jS(e,.1),3)}function VS(e,t,n){return t?e:n?Math.ceil(e/2):0}function HS(e,t,n,i){const a=(lh("arrowUp",i)-1)/2*n.YS,o=(Pg(i/2)-1)/2*n.YS;t.beginPath(),e?(t.moveTo(n._t-a,n.ut),t.lineTo(n._t,n.ut-a),t.lineTo(n._t+a,n.ut),t.lineTo(n._t+o,n.ut),t.lineTo(n._t+o,n.ut+a),t.lineTo(n._t-o,n.ut+a),t.lineTo(n._t-o,n.ut)):(t.moveTo(n._t-a,n.ut),t.lineTo(n._t,n.ut+a),t.lineTo(n._t+a,n.ut),t.lineTo(n._t+o,n.ut),t.lineTo(n._t+o,n.ut-a),t.lineTo(n._t-o,n.ut-a),t.lineTo(n._t-o,n.ut)),t.fill()}function GS(e,t,n,i,a,o){const c=(lh("arrowUp",i)-1)/2,d=(Pg(i/2)-1)/2;return a>=t-d-2&&a<=t+d+2&&o>=(e?n:n-c)-2&&o<=(e?n+c:n)+2?!0:(()=>{if(a<t-c-3||a>t+c+3||o<(e?n-c-3:n)||o>(e?n:n+c+3))return!1;const h=Math.abs(a-t);return Math.abs(o-n)+3>=h/2})()}class xO{constructor(){this.qt=null,this.$s=new Af,this.F=-1,this.W="",this.hm="",this.KS="normal"}ht(t){this.qt=t}js(t,n,i){this.F===t&&this.W===n||(this.F=t,this.W=n,this.hm=_f(t,n),this.$s.Os()),this.KS=i}Qs(t,n){if(this.qt===null||this.qt.lt===null)return null;for(let i=this.qt.lt.from;i<this.qt.lt.to;i++){const a=this.qt.ot[i];if(a&&SO(a,t,n))return{zOrder:"normal",externalId:a.te??"",itemType:"marker"}}return null}draw(t){this.KS!=="aboveSeries"&&t.useBitmapCoordinateSpace((n=>{this.et(n)}))}drawBackground(t){this.KS==="aboveSeries"&&t.useBitmapCoordinateSpace((n=>{this.et(n)}))}et({context:t,horizontalPixelRatio:n,verticalPixelRatio:i}){if(this.qt!==null&&this.qt.lt!==null){t.textBaseline="middle",t.font=this.hm;for(let a=this.qt.lt.from;a<this.qt.lt.to;a++){const o=this.qt.ot[a];o.ri!==void 0&&(o.ri.nn=this.$s.Ii(t,o.ri.GS),o.ri.$t=this.F,o.ri._t=o._t-o.ri.nn/2),wO(o,t,n,i)}}}}function wO(e,t,n,i){t.fillStyle=e.R,e.ri!==void 0&&(function(a,o,c,d,h,m){a.save(),a.scale(h,m),a.fillText(o,c,d),a.restore()})(t,e.ri.GS,e.ri._t,e.ri.ut,n,i),(function(a,o,c){if(a.Th!==0){switch(a.ZS){case"arrowDown":return void HS(!1,o,c,a.Th);case"arrowUp":return void HS(!0,o,c,a.Th);case"circle":return void(function(d,h,m){const b=(lh("circle",m)-1)/2;d.beginPath(),d.arc(h._t,h.ut,b*h.YS,0,2*Math.PI,!1),d.fill()})(o,c,a.Th);case"square":return void(function(d,h,m){const b=lh("square",m),y=(b-1)*h.YS/2,T=h._t-y,k=h.ut-y;d.fillRect(T,k,b*h.YS,b*h.YS)})(o,c,a.Th)}a.ZS}})(e,t,(function(a,o,c){const d=Math.max(1,Math.floor(o))%2/2;return{_t:Math.round(a._t*o)+d,ut:a.ut*c,YS:o}})(e,n,i))}function SO(e,t,n){return!(e.ri===void 0||!(function(i,a,o,c,d,h){const m=c/2;return d>=i&&d<=i+o&&h>=a-m&&h<=a+m})(e.ri._t,e.ri.ut,e.ri.nn,e.ri.$t,t,n))||(function(i,a,o){if(i.Th===0)return!1;switch(i.ZS){case"arrowDown":return GS(!0,i._t,i.ut,i.Th,a,o);case"arrowUp":return GS(!1,i._t,i.ut,i.Th,a,o);case"circle":return(function(c,d,h,m,b){const y=2+lh("circle",h)/2,T=c-m,k=d-b;return Math.sqrt(T*T+k*k)<=y})(i._t,i.ut,i.Th,a,o);case"square":return(function(c,d,h,m,b){const y=lh("square",h),T=(y-1)/2,k=c-T,R=d-T;return m>=k&&m<=k+y&&b>=R&&b<=R+y})(i._t,i.ut,i.Th,a,o)}})(e,t,n)}function YS(e){return e==="atPriceTop"||e==="atPriceBottom"||e==="atPriceMiddle"}function CO(e,t,n,i,a,o,c,d){const h=(function(R,N,z){if(YS(N.position)&&N.price!==void 0)return N.price;if("value"in(L=R)&&typeof L.value=="number")return R.value;var L;if((function(I){return"open"in I&&"high"in I&&"low"in I&&"close"in I})(R)){if(N.position==="inBar")return R.close;if(N.position==="aboveBar")return z?R.low:R.high;if(N.position==="belowBar")return z?R.high:R.low}})(n,t,c.priceScale().options().invertScale);if(h===void 0)return;const m=YS(t.position),b=d.timeScale(),y=Ou(t.size)?Math.max(t.size,0):1,T=FS(b.options().barSpacing)*y,k=T/2;switch(e.Th=T,t.position){case"inBar":case"atPriceMiddle":return e.ut=It(c.priceToCoordinate(h)),void(e.ri!==void 0&&(e.ri.ut=e.ut+k+o+.6*a));case"aboveBar":case"atPriceTop":{const R=m?0:i.XS;return e.ut=It(c.priceToCoordinate(h))-k-R,e.ri!==void 0&&(e.ri.ut=e.ut-k-.6*a,i.XS+=1.2*a),void(m||(i.XS+=T+o))}case"belowBar":case"atPriceBottom":{const R=m?0:i.JS;return e.ut=It(c.priceToCoordinate(h))+k+R,e.ri!==void 0&&(e.ri.ut=e.ut+k+o+.6*a,i.JS+=1.2*a),void(m||(i.JS+=T+o))}}}class TO{constructor(t,n,i){this.QS=[],this.xt=!0,this.tx=!0,this.Xt=new xO,this.Te=t,this.Gv=n,this.qt={ot:[],lt:null},this.yn=i}renderer(){if(!this.Te.options().visible)return null;this.xt&&this.Ig();const t=this.Gv.options().layout;return this.Xt.js(t.fontSize,t.fontFamily,this.yn.zOrder),this.Xt.ht(this.qt),this.Xt}ix(t){this.QS=t,this.Pt("data")}Pt(t){this.xt=!0,t==="data"&&(this.tx=!0)}nx(t){this.xt=!0,this.yn=t}zOrder(){return this.yn.zOrder==="aboveSeries"?"top":this.yn.zOrder}Ig(){const t=this.Gv.timeScale(),n=this.QS;this.tx&&(this.qt.ot=n.map((m=>({wt:m.time,_t:0,ut:0,Th:0,ZS:m.shape,R:m.color,te:m.id,sx:m.sx,ri:void 0}))),this.tx=!1);const i=this.Gv.options().layout;this.qt.lt=null;const a=t.getVisibleLogicalRange();if(a===null)return;const o=new ih(Math.floor(a.from),Math.ceil(a.to));if(this.Te.dataByIndex(0,1)===null||this.qt.ot.length===0)return;let c=NaN;const d=US(t.options().barSpacing),h={XS:d,JS:d};this.qt.lt=MS(this.qt.ot,o,!0);for(let m=this.qt.lt.from;m<this.qt.lt.to;m++){const b=n[m];b.time!==c&&(h.XS=d,h.JS=d,c=b.time);const y=this.qt.ot[m];y._t=It(t.logicalToCoordinate(b.time)),b.text!==void 0&&b.text.length>0&&(y.ri={GS:b.text,_t:0,ut:0,nn:0,$t:0});const T=this.Te.dataByIndex(b.time,0);T!==null&&CO(y,b,T,h,i.fontSize,d,this.Te,this.Gv)}this.xt=!1}}function WS(e){return{...bO,...e}}class EO{constructor(t){this.Yh=null,this.QS=[],this.hx=[],this.lx=null,this.Te=null,this.Gv=null,this.ox=!0,this._x=null,this.ux=null,this.vx=null,this.mx=!0,this.yn=WS(t)}attached(t){this.wx(),this.Gv=t.chart,this.Te=t.series,this.Yh=new TO(this.Te,It(this.Gv),this.yn),this.jS=t.requestUpdate,this.Te.subscribeDataChanged((n=>this.Qg(n))),this.mx=!0,this.DS()}DS(){this.jS&&this.jS()}detached(){this.Te&&this.lx&&this.Te.unsubscribeDataChanged(this.lx),this.Gv=null,this.Te=null,this.Yh=null,this.lx=null}ix(t){this.mx=!0,this.QS=t,this.wx(),this.ox=!0,this.ux=null,this.DS()}Mx(){return this.QS}paneViews(){return this.Yh?[this.Yh]:[]}updateAllViews(){this.gx()}hitTest(t,n){var i;return this.Yh?((i=this.Yh.renderer())==null?void 0:i.Qs(t,n))??null:null}autoscaleInfo(t,n){if(this.yn.autoScale&&this.Yh){const i=this.bx();if(i)return{priceRange:null,margins:i}}return null}vr(t){this.yn=WS({...this.yn,...t}),this.DS&&this.DS()}bx(){const t=It(this.Gv).timeScale().options().barSpacing;if(this.ox||t!==this.vx){if(this.vx=t,this.QS.length>0){const n=US(t),i=1.5*FS(t)+2*n,a=this.Sx();this._x={above:VS(i,a.aboveBar,a.inBar),below:VS(i,a.belowBar,a.inBar)}}else this._x=null;this.ox=!1}return this._x}Sx(){return this.ux===null&&(this.ux=this.QS.reduce(((t,n)=>(t[n.position]||(t[n.position]=!0),t)),{inBar:!1,aboveBar:!1,belowBar:!1,atPriceTop:!1,atPriceBottom:!1,atPriceMiddle:!1})),this.ux}wx(){var a;if(!this.mx||!this.Gv||!this.Te)return;const t=this.Gv.timeScale(),n=(a=this.Te)==null?void 0:a.data();if(t.getVisibleLogicalRange()==null||!this.Te||n.length===0)return void(this.hx=[]);const i=t.timeToIndex(It(n[0].time),!0);this.hx=this.QS.map(((o,c)=>{const d=t.timeToIndex(o.time,!0),h=d<i?1:-1,m=It(this.Te).dataByIndex(d,h),b={time:t.timeToIndex(It(m).time,!1),position:o.position,shape:o.shape,color:o.color,id:o.id,sx:c,text:o.text,size:o.size,price:o.price,Qr:o.time};if(o.position==="atPriceTop"||o.position==="atPriceBottom"||o.position==="atPriceMiddle"){if(o.price===void 0)throw new Error(`Price is required for position ${o.position}`);return{...b,position:o.position,price:o.price}}return{...b,position:o.position,price:o.price}})),this.mx=!1}gx(t){this.Yh&&(this.wx(),this.Yh.ix(this.hx),this.Yh.nx(this.yn),this.Yh.Pt(t))}Qg(t){this.mx=!0,this.DS()}}class MO extends yO{constructor(t,n,i){super(t,n),i&&this.setMarkers(i)}setMarkers(t){this.Jh.ix(t)}markers(){return this.Jh.Mx()}}function RO(e,t,n){const i=new MO(e,new EO({}));return t&&i.setMarkers(t),i}({...x1});function kO(e){if(!e||typeof e!="object")return!1;const t=e;return Array.isArray(t.index)&&typeof t.series=="object"&&t.series!==null&&!Array.isArray(t.series)}function _O(e){const t=[];for(const[n,i]of Object.entries(e.series)){const a=[];for(let o=0;o<e.index.length;o++){const c=Date.parse(String(e.index[o])),d=i[o];!Number.isNaN(c)&&typeof d=="number"&&a.push({time:c/1e3,value:d})}t.push({label:n,points:a})}return t}function AO(e,t,n){const i=document.createElement("div");i.style.cssText=`padding:8px;font-size:12px;color:${t.text}`,i.textContent=`数据形状不是这个 view 认识的样子(${n})`,e.appendChild(i)}function NO(e,t,n){const i=$d(n),a=t.data;if(!kO(a))return AO(e,i,t.name);const o=_O(a),c=t.config;if(c.title){const b=document.createElement("div");b.style.cssText=`padding:4px 8px 0;font-size:11px;font-weight:600;color:${i.text}`,b.textContent=c.title,e.appendChild(b)}const d=document.createElement("div");d.style.cssText="display:flex;flex-wrap:wrap;gap:8px;font-size:11px;padding:4px 8px";const h=document.createElement("div");h.dataset.chart="timeseries",h.style.cssText=`width:100%;height:${Sg(c)}px`,e.appendChild(d),e.appendChild(h);let m=null;if(h.clientWidth>0&&h.clientHeight>0&&(m=OS(h,{autoSize:!0,layout:{background:{type:Bg.Solid,color:"transparent"},textColor:i.text},grid:{vertLines:{color:i.grid},horzLines:{color:i.grid}},rightPriceScale:{mode:c.logScale?1:0}}),o.forEach((b,y)=>{m.addSeries(BS,{color:i.series[y%i.series.length],lineWidth:2}).setData(b.points)}),m.timeScale().fitContent()),o.forEach((b,y)=>{const T=document.createElement("span");T.style.color=i.series[y%i.series.length],T.textContent=`— ${b.label}`,d.appendChild(T)}),c.yAxisLabel){const b=document.createElement("div");b.style.cssText=`padding:0 8px 4px;font-size:10px;opacity:.7;color:${i.text}`,b.textContent=c.yAxisLabel,e.appendChild(b)}return m?()=>m.remove():void 0}const Kg="http://www.w3.org/2000/svg",nb=100,Bf=100,io=8;function zO(e){if(!e||typeof e!="object")return!1;const t=e;return Array.isArray(t.x)&&Array.isArray(t.y)&&t.x.length===t.y.length}function KS(e,t,n){const i=document.createElement("div");i.style.cssText=`padding:8px;font-size:12px;color:${t.text}`,i.textContent=`数据形状不是这个 view 认识的样子(${n})`,e.appendChild(i)}function DO(e,t,n){const i=$d(n),a=t.data;if(!zO(a))return KS(e,i,t.name);const o=[];for(let F=0;F<a.x.length;F++){const B=a.x[F],Y=a.y[F];typeof B=="number"&&typeof Y=="number"&&o.push([B,Y])}if(o.length===0)return KS(e,i,t.name);const c=t.config,d=o.map(F=>F[0]),h=o.map(F=>F[1]),[m,b]=[Math.min(...d),Math.max(...d)],[y,T]=[Math.min(...h),Math.max(...h)],k=F=>io+(b===m?.5:(F-m)/(b-m))*(nb-2*io),R=F=>Bf-io-(T===y?.5:(F-y)/(T-y))*(Bf-2*io);if(c.title){const F=document.createElement("div");F.style.cssText=`padding:4px 8px 0;font-size:11px;font-weight:600;color:${i.text}`,F.textContent=c.title,e.appendChild(F)}const N=document.createElement("div");N.style.cssText=`display:flex;gap:8px;font-size:11px;padding:4px 8px;color:${i.text}`;const z=document.createElementNS(Kg,"svg");z.setAttribute("viewBox",`0 0 ${nb} ${Bf}`),z.setAttribute("preserveAspectRatio","none"),z.style.cssText=`width:100%;height:${Sg(c)}px`,[.25,.5,.75].forEach(F=>{const B=document.createElementNS(Kg,"line");B.setAttribute("x1",String(io)),B.setAttribute("x2",String(nb-io)),B.setAttribute("y1",String(io+F*(Bf-2*io))),B.setAttribute("y2",String(io+F*(Bf-2*io))),B.setAttribute("stroke",i.grid),B.setAttribute("stroke-width","0.3"),z.appendChild(B)});const L=i.series[0],I=document.createElement("span");I.style.color=L,I.textContent=`● ${t.name}`,N.appendChild(I);for(const[F,B]of o){const Y=document.createElementNS(Kg,"circle");Y.setAttribute("cx",String(k(F))),Y.setAttribute("cy",String(R(B))),Y.setAttribute("r","1.2"),Y.setAttribute("fill",L),Y.setAttribute("fill-opacity","0.85");const Z=document.createElementNS(Kg,"title");Z.textContent=`(${F}, ${B})`,Y.appendChild(Z),z.appendChild(Y)}if(e.appendChild(N),e.appendChild(z),c.xlabel||c.ylabel){const F=document.createElement("div");F.style.cssText=`padding:2px 8px;font-size:10px;opacity:.7;color:${i.text}`,F.textContent=[c.xlabel&&`x: ${c.xlabel}`,c.ylabel&&`y: ${c.ylabel}`].filter(Boolean).join(" · "),e.appendChild(F)}}function OO(e){if(!e||typeof e!="object")return!1;const t=e;return!Array.isArray(t.matrix)||!Array.isArray(t.xlabels)||!Array.isArray(t.ylabels)||t.matrix.length!==t.ylabels.length?!1:t.matrix.every(n=>Array.isArray(n)&&n.length===t.xlabels.length)}function PO(e,t,n){return e>=0?`rgba(239,68,68,${.15+.7*(n>0?e/n:0)})`:`rgba(59,130,246,${.15+.7*(t<0?e/t:0)})`}function LO(e,t,n){const i=document.createElement("div");i.style.cssText=`padding:8px;font-size:12px;color:${t.text}`,i.textContent=`数据形状不是这个 view 认识的样子(${n})`,e.appendChild(i)}function IO(e,t,n){const i=$d(n),a=t.data;if(!OO(a))return LO(e,i,t.name);const{matrix:o,xlabels:c,ylabels:d}=a,h=t.config;if(h.title){const k=document.createElement("div");k.style.cssText=`padding:4px 8px 0;font-size:11px;font-weight:600;color:${i.text}`,k.textContent=h.title,e.appendChild(k)}const m=o.flat().filter(k=>typeof k=="number"),b=Math.min(0,...m),y=Math.max(0,...m),T=document.createElement("div");T.style.cssText=`display:grid;grid-template-columns:auto repeat(${c.length},1fr);gap:1px;font-size:10px;color:${i.text};height:100%;overflow:auto;padding:6px`,T.appendChild(document.createElement("span"));for(const k of c){const R=document.createElement("span");R.textContent=k,R.style.cssText="text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap",T.appendChild(R)}if(d.forEach((k,R)=>{const N=document.createElement("span");N.textContent=k,N.style.cssText="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:4px",T.appendChild(N),c.forEach((z,L)=>{var B;const I=((B=o[R])==null?void 0:B[L])??null,F=document.createElement("div");F.dataset.cell="1",F.title=`${z} / ${k}${I===null?"":` = ${Number(I.toPrecision(4))}`}`,F.style.cssText=`min-height:18px;border-radius:2px;background:${I===null?"transparent":PO(I,b,y)}`,T.appendChild(F)})}),e.appendChild(T),h.xlabel||h.ylabel){const k=document.createElement("div");k.style.cssText=`padding:2px 8px;font-size:10px;opacity:.7;color:${i.text}`,k.textContent=[h.xlabel&&`x: ${h.xlabel}`,h.ylabel&&`y: ${h.ylabel}`].filter(Boolean).join(" · "),e.appendChild(k)}}function BO(e){if(!e||typeof e!="object")return!1;const t=e;return Array.isArray(t.strategy)&&t.strategy.length>0}function ib(e){const t=[];for(const n of e){const i=Date.parse(n.time);!Number.isNaN(i)&&typeof n.value=="number"&&t.push({time:i/1e3,value:n.value})}return t}function jO(e,t,n){const i=document.createElement("div");i.style.cssText=`padding:8px;font-size:12px;color:${t.text}`,i.textContent=`数据形状不是这个 view 认识的样子(${n})`,e.appendChild(i)}function FO(e,t,n){const i=$d(n),a=t.data;if(!BO(a))return jO(e,i,t.name);const o=t.config,c=[{label:"strategy",points:ib(a.strategy)}];a.benchmark&&c.push({label:"benchmark",points:ib(a.benchmark)});for(const[b,y]of Object.entries(a.positions??{}))c.push({label:b,points:ib(y)});const d=(a.markers??[]).flatMap(b=>{const y=Date.parse(b.time);return Number.isNaN(y)?[]:[{time:y/1e3,position:b.position,shape:b.shape,color:b.color,text:b.text}]});if(o.title){const b=document.createElement("div");b.style.cssText=`padding:4px 8px 0;font-size:11px;font-weight:600;color:${i.text}`,b.textContent=o.title,e.appendChild(b)}const h=document.createElement("div");if(h.style.cssText=`display:flex;flex-wrap:wrap;gap:8px;font-size:11px;padding:4px 8px;color:${i.text}`,c.forEach((b,y)=>{const T=document.createElement("span");T.style.color=i.series[y%i.series.length],T.textContent=`— ${b.label}`,h.appendChild(T)}),d.length>0){const b=document.createElement("span");b.textContent=`◆ ${d.length} markers`,h.appendChild(b)}const m=document.createElement("div");if(m.dataset.chart="backtest",m.style.cssText=`width:100%;height:${Sg(o)}px`,e.appendChild(h),e.appendChild(m),m.clientWidth>0&&m.clientHeight>0){const b=OS(m,{autoSize:!0,layout:{background:{type:Bg.Solid,color:"transparent"},textColor:i.text},grid:{vertLines:{color:i.grid},horzLines:{color:i.grid}}}),y=c.map((T,k)=>{const R=b.addSeries(BS,{color:i.series[k%i.series.length],lineWidth:2});return R.setData(T.points),R});return d.length>0&&y[0]&&RO(y[0],d.sort((T,k)=>T.time-k.time)),b.timeScale().fitContent(),()=>b.remove()}}var ju={},jf={};/**
|
|
56
|
+
* @license React
|
|
57
|
+
* react-dom-server-legacy.browser.production.js
|
|
58
|
+
*
|
|
59
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
60
|
+
*
|
|
61
|
+
* This source code is licensed under the MIT license found in the
|
|
62
|
+
* LICENSE file in the root directory of this source tree.
|
|
63
|
+
*/var XS;function UO(){if(XS)return jf;XS=1;var e=Qd(),t=xg();function n(g){var v="https://react.dev/errors/"+g;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var E=2;E<arguments.length;E++)v+="&args[]="+encodeURIComponent(arguments[E])}return"Minified React error #"+g+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),m=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),N=Symbol.for("react.scope"),z=Symbol.for("react.activity"),L=Symbol.for("react.legacy_hidden"),I=Symbol.for("react.memo_cache_sentinel"),F=Symbol.for("react.view_transition"),B=Symbol.iterator;function Y(g){return g===null||typeof g!="object"?null:(g=B&&g[B]||g["@@iterator"],typeof g=="function"?g:null)}var Z=Array.isArray;function et(g,v){var E=g.length&3,A=g.length-E,P=v;for(v=0;v<A;){var G=g.charCodeAt(v)&255|(g.charCodeAt(++v)&255)<<8|(g.charCodeAt(++v)&255)<<16|(g.charCodeAt(++v)&255)<<24;++v,G=3432918353*(G&65535)+((3432918353*(G>>>16)&65535)<<16)&4294967295,G=G<<15|G>>>17,G=461845907*(G&65535)+((461845907*(G>>>16)&65535)<<16)&4294967295,P^=G,P=P<<13|P>>>19,P=5*(P&65535)+((5*(P>>>16)&65535)<<16)&4294967295,P=(P&65535)+27492+(((P>>>16)+58964&65535)<<16)}switch(G=0,E){case 3:G^=(g.charCodeAt(v+2)&255)<<16;case 2:G^=(g.charCodeAt(v+1)&255)<<8;case 1:G^=g.charCodeAt(v)&255,G=3432918353*(G&65535)+((3432918353*(G>>>16)&65535)<<16)&4294967295,G=G<<15|G>>>17,P^=461845907*(G&65535)+((461845907*(G>>>16)&65535)<<16)&4294967295}return P^=g.length,P^=P>>>16,P=2246822507*(P&65535)+((2246822507*(P>>>16)&65535)<<16)&4294967295,P^=P>>>13,P=3266489909*(P&65535)+((3266489909*(P>>>16)&65535)<<16)&4294967295,(P^P>>>16)>>>0}var q=Object.assign,nt=Object.prototype.hasOwnProperty,ot=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ct={},ct={};function mt(g){return nt.call(ct,g)?!0:nt.call(Ct,g)?!1:ot.test(g)?ct[g]=!0:(Ct[g]=!0,!1)}var Rt=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),ut=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),j=/["'&<>]/;function J(g){if(typeof g=="boolean"||typeof g=="number"||typeof g=="bigint")return""+g;g=""+g;var v=j.exec(g);if(v){var E="",A,P=0;for(A=v.index;A<g.length;A++){switch(g.charCodeAt(A)){case 34:v=""";break;case 38:v="&";break;case 39:v="'";break;case 60:v="<";break;case 62:v=">";break;default:continue}P!==A&&(E+=g.slice(P,A)),P=A+1,E+=v}g=P!==A?E+g.slice(P,A):E}return g}var ht=/([A-Z])/g,Tt=/^ms-/,K=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function U(g){return K.test(""+g)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":g}var X=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ft=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,yt={pending:!1,data:null,method:null,action:null},tt=ft.d;ft.d={f:tt.f,r:tt.r,D:Ma,C:Kn,L:wo,m:Ra,X:jn,S:ka,M:Yh};var bt=[],zt=null,Dt=/(<\/|<)(s)(cript)/gi;function Mt(g,v,E,A){return""+v+(E==="s"?"\\u0073":"\\u0053")+A}function Yt(g,v,E,A,P){return{idPrefix:g===void 0?"":g,nextFormID:0,streamingFormat:0,bootstrapScriptContent:E,bootstrapScripts:A,bootstrapModules:P,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function Qt(g,v,E,A){return{insertionMode:g,selectedValue:v,tagScope:E,viewTransition:A}}function ne(g,v,E){var A=g.tagScope&-25;switch(v){case"noscript":return Qt(2,null,A|1,null);case"select":return Qt(2,E.value!=null?E.value:E.defaultValue,A,null);case"svg":return Qt(4,null,A,null);case"picture":return Qt(2,null,A|2,null);case"math":return Qt(5,null,A,null);case"foreignObject":return Qt(2,null,A,null);case"table":return Qt(6,null,A,null);case"thead":case"tbody":case"tfoot":return Qt(7,null,A,null);case"colgroup":return Qt(9,null,A,null);case"tr":return Qt(8,null,A,null);case"head":if(2>g.insertionMode)return Qt(3,null,A,null);break;case"html":if(g.insertionMode===0)return Qt(1,null,A,null)}return 6<=g.insertionMode||2>g.insertionMode?Qt(2,null,A,null):g.tagScope!==A?Qt(g.insertionMode,g.selectedValue,A,null):g}function Ut(g){return g===null?null:{update:g.update,enter:"none",exit:"none",share:g.update,name:g.autoName,autoName:g.autoName,nameIdx:0}}function Ce(g,v){return v.tagScope&32&&(g.instructions|=128),Qt(v.insertionMode,v.selectedValue,v.tagScope|12,Ut(v.viewTransition))}function Ht(g,v){g=Ut(v.viewTransition);var E=v.tagScope|16;return g!==null&&g.share!=="none"&&(E|=64),Qt(v.insertionMode,v.selectedValue,E,g)}var ee=new Map;function re(g,v){if(typeof v!="object")throw Error(n(62));var E=!0,A;for(A in v)if(nt.call(v,A)){var P=v[A];if(P!=null&&typeof P!="boolean"&&P!==""){if(A.indexOf("--")===0){var G=J(A);P=J((""+P).trim())}else G=ee.get(A),G===void 0&&(G=J(A.replace(ht,"-$1").toLowerCase().replace(Tt,"-ms-")),ee.set(A,G)),P=typeof P=="number"?P===0||Rt.has(A)?""+P:P+"px":J((""+P).trim());E?(E=!1,g.push(' style="',G,":",P)):g.push(";",G,":",P)}}E||g.push('"')}function we(g,v,E){E&&typeof E!="function"&&typeof E!="symbol"&&g.push(" ",v,'=""')}function Le(g,v,E){typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&g.push(" ",v,'="',J(E),'"')}var Mr=J("javascript:throw new Error('React form unexpectedly submitted.')");function Hn(g,v){this.push('<input type="hidden"'),Nn(g),Le(this,"name",v),Le(this,"value",g),this.push("/>")}function Nn(g){if(typeof g!="string")throw Error(n(480))}function ds(g,v){if(typeof v.$$FORM_ACTION=="function"){var E=g.nextFormID++;g=g.idPrefix+E;try{var A=v.$$FORM_ACTION(g);if(A){var P=A.data;P!=null&&P.forEach(Nn)}return A}catch(G){if(typeof G=="object"&&G!==null&&typeof G.then=="function")throw G}}return null}function Vt(g,v,E,A,P,G,Q,wt){var rt=null;if(typeof A=="function"){var St=ds(v,A);St!==null?(wt=St.name,A=St.action||"",P=St.encType,G=St.method,Q=St.target,rt=St.data):(g.push(" ","formAction",'="',Mr,'"'),Q=G=P=A=wt=null,Rr(v,E))}return wt!=null&&Xt(g,"name",wt),A!=null&&Xt(g,"formAction",A),P!=null&&Xt(g,"formEncType",P),G!=null&&Xt(g,"formMethod",G),Q!=null&&Xt(g,"formTarget",Q),rt}function Xt(g,v,E){switch(v){case"className":Le(g,"class",E);break;case"tabIndex":Le(g,"tabindex",E);break;case"dir":case"role":case"viewBox":case"width":case"height":Le(g,v,E);break;case"style":re(g,E);break;case"src":case"href":if(E==="")break;case"action":case"formAction":if(E==null||typeof E=="function"||typeof E=="symbol"||typeof E=="boolean")break;E=U(""+E),g.push(" ",v,'="',J(E),'"');break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":we(g,v.toLowerCase(),E);break;case"xlinkHref":if(typeof E=="function"||typeof E=="symbol"||typeof E=="boolean")break;E=U(""+E),g.push(" ","xlink:href",'="',J(E),'"');break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":typeof E!="function"&&typeof E!="symbol"&&g.push(" ",v,'="',J(E),'"');break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":E&&typeof E!="function"&&typeof E!="symbol"&&g.push(" ",v,'=""');break;case"capture":case"download":E===!0?g.push(" ",v,'=""'):E!==!1&&typeof E!="function"&&typeof E!="symbol"&&g.push(" ",v,'="',J(E),'"');break;case"cols":case"rows":case"size":case"span":typeof E!="function"&&typeof E!="symbol"&&!isNaN(E)&&1<=E&&g.push(" ",v,'="',J(E),'"');break;case"rowSpan":case"start":typeof E=="function"||typeof E=="symbol"||isNaN(E)||g.push(" ",v,'="',J(E),'"');break;case"xlinkActuate":Le(g,"xlink:actuate",E);break;case"xlinkArcrole":Le(g,"xlink:arcrole",E);break;case"xlinkRole":Le(g,"xlink:role",E);break;case"xlinkShow":Le(g,"xlink:show",E);break;case"xlinkTitle":Le(g,"xlink:title",E);break;case"xlinkType":Le(g,"xlink:type",E);break;case"xmlBase":Le(g,"xml:base",E);break;case"xmlLang":Le(g,"xml:lang",E);break;case"xmlSpace":Le(g,"xml:space",E);break;default:if((!(2<v.length)||v[0]!=="o"&&v[0]!=="O"||v[1]!=="n"&&v[1]!=="N")&&(v=ut.get(v)||v,mt(v))){switch(typeof E){case"function":case"symbol":return;case"boolean":var A=v.toLowerCase().slice(0,5);if(A!=="data-"&&A!=="aria-")return}g.push(" ",v,'="',J(E),'"')}}}function de(g,v,E){if(v!=null){if(E!=null)throw Error(n(60));if(typeof v!="object"||!("__html"in v))throw Error(n(61));v=v.__html,v!=null&&g.push(""+v)}}function Gi(g){var v="";return e.Children.forEach(g,function(E){E!=null&&(v+=E)}),v}function Rr(g,v){if((g.instructions&16)===0){g.instructions|=16;var E=v.preamble,A=v.bootstrapChunks;(E.htmlChunks||E.headChunks)&&A.length===0?(A.push(v.startInlineScript),vl(A,g),A.push(">",`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`,"<\/script>")):A.unshift(v.startInlineScript,">",`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`,"<\/script>")}}function Bn(g,v){g.push(yn("link"));for(var E in v)if(nt.call(v,E)){var A=v[E];if(A!=null)switch(E){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,"link"));default:Xt(g,E,A)}}return g.push("/>"),null}var xc=/(<\/|<)(s)(tyle)/gi;function hd(g,v,E,A){return""+v+(E==="s"?"\\73 ":"\\53 ")+A}function vo(g,v,E){g.push(yn(E));for(var A in v)if(nt.call(v,A)){var P=v[A];if(P!=null)switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,E));default:Xt(g,A,P)}}return g.push("/>"),null}function $s(g,v){g.push(yn("title"));var E=null,A=null,P;for(P in v)if(nt.call(v,P)){var G=v[P];if(G!=null)switch(P){case"children":E=G;break;case"dangerouslySetInnerHTML":A=G;break;default:Xt(g,P,G)}}return g.push(">"),v=Array.isArray(E)?2>E.length?E[0]:null:E,typeof v!="function"&&typeof v!="symbol"&&v!==null&&v!==void 0&&g.push(J(""+v)),de(g,A,E),g.push(kr("title")),null}function Gn(g,v){g.push(yn("script"));var E=null,A=null,P;for(P in v)if(nt.call(v,P)){var G=v[P];if(G!=null)switch(P){case"children":E=G;break;case"dangerouslySetInnerHTML":A=G;break;default:Xt(g,P,G)}}return g.push(">"),de(g,A,E),typeof E=="string"&&g.push((""+E).replace(Dt,Mt)),g.push(kr("script")),null}function Wr(g,v,E){g.push(yn(E));var A=E=null,P;for(P in v)if(nt.call(v,P)){var G=v[P];if(G!=null)switch(P){case"children":E=G;break;case"dangerouslySetInnerHTML":A=G;break;default:Xt(g,P,G)}}return g.push(">"),de(g,A,E),E}function gi(g,v,E){g.push(yn(E));var A=E=null,P;for(P in v)if(nt.call(v,P)){var G=v[P];if(G!=null)switch(P){case"children":E=G;break;case"dangerouslySetInnerHTML":A=G;break;default:Xt(g,P,G)}}return g.push(">"),de(g,A,E),typeof E=="string"?(g.push(J(E)),null):E}var wc=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,fd=new Map;function yn(g){var v=fd.get(g);if(v===void 0){if(!wc.test(g))throw Error(n(65,g));v="<"+g,fd.set(g,v)}return v}function zn(g,v,E,A,P,G,Q,wt,rt){switch(v){case"div":case"span":case"svg":case"path":break;case"a":g.push(yn("a"));var St=null,Pt=null,_t;for(_t in E)if(nt.call(E,_t)){var Ft=E[_t];if(Ft!=null)switch(_t){case"children":St=Ft;break;case"dangerouslySetInnerHTML":Pt=Ft;break;case"href":Ft===""?Le(g,"href",""):Xt(g,_t,Ft);break;default:Xt(g,_t,Ft)}}if(g.push(">"),de(g,Pt,St),typeof St=="string"){g.push(J(St));var qt=null}else qt=St;return qt;case"g":case"p":case"li":break;case"select":g.push(yn("select"));var Se=null,ge=null,fe;for(fe in E)if(nt.call(E,fe)){var he=E[fe];if(he!=null)switch(fe){case"children":Se=he;break;case"dangerouslySetInnerHTML":ge=he;break;case"defaultValue":case"value":break;default:Xt(g,fe,he)}}return g.push(">"),de(g,ge,Se),Se;case"option":var ve=wt.selectedValue;g.push(yn("option"));var Ue=null,fn=null,Ee=null,Me=null,Ae;for(Ae in E)if(nt.call(E,Ae)){var en=E[Ae];if(en!=null)switch(Ae){case"children":Ue=en;break;case"selected":Ee=en;break;case"dangerouslySetInnerHTML":Me=en;break;case"value":fn=en;default:Xt(g,Ae,en)}}if(ve!=null){var _e=fn!==null?""+fn:Gi(Ue);if(Z(ve)){for(var Mn=0;Mn<ve.length;Mn++)if(""+ve[Mn]===_e){g.push(' selected=""');break}}else""+ve===_e&&g.push(' selected=""')}else Ee&&g.push(' selected=""');return g.push(">"),de(g,Me,Ue),Ue;case"textarea":g.push(yn("textarea"));var Ve=null,xn=null,ln=null,nn;for(nn in E)if(nt.call(E,nn)){var yi=E[nn];if(yi!=null)switch(nn){case"children":ln=yi;break;case"value":Ve=yi;break;case"defaultValue":xn=yi;break;case"dangerouslySetInnerHTML":throw Error(n(91));default:Xt(g,nn,yi)}}if(Ve===null&&xn!==null&&(Ve=xn),g.push(">"),ln!=null){if(Ve!=null)throw Error(n(92));if(Z(ln)){if(1<ln.length)throw Error(n(93));Ve=""+ln[0]}Ve=""+ln}return typeof Ve=="string"&&Ve[0]===`
|
|
64
|
+
`&&g.push(`
|
|
65
|
+
`),Ve!==null&&g.push(J(""+Ve)),null;case"input":g.push(yn("input"));var Rs=null,Ki=null,bi=null,Or=null,Rn=null,Di=null,Oi=null,Cn=null,Dn=null,Pi;for(Pi in E)if(nt.call(E,Pi)){var Je=E[Pi];if(Je!=null)switch(Pi){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,"input"));case"name":Rs=Je;break;case"formAction":Ki=Je;break;case"formEncType":bi=Je;break;case"formMethod":Or=Je;break;case"formTarget":Rn=Je;break;case"defaultChecked":Dn=Je;break;case"defaultValue":Oi=Je;break;case"checked":Cn=Je;break;case"value":Di=Je;break;default:Xt(g,Pi,Je)}}var xi=Vt(g,A,P,Ki,bi,Or,Rn,Rs);return Cn!==null?we(g,"checked",Cn):Dn!==null&&we(g,"checked",Dn),Di!==null?Xt(g,"value",Di):Oi!==null&&Xt(g,"value",Oi),g.push("/>"),xi!=null&&xi.forEach(Hn,g),null;case"button":g.push(yn("button"));var er=null,Yc=null,Nl=null,Wc=null,Kc=null,kn=null,rn=null,be;for(be in E)if(nt.call(E,be)){var si=E[be];if(si!=null)switch(be){case"children":er=si;break;case"dangerouslySetInnerHTML":Yc=si;break;case"name":Nl=si;break;case"formAction":Wc=si;break;case"formEncType":Kc=si;break;case"formMethod":kn=si;break;case"formTarget":rn=si;break;default:Xt(g,be,si)}}var Qn=Vt(g,A,P,Wc,Kc,kn,rn,Nl);if(g.push(">"),Qn!=null&&Qn.forEach(Hn,g),de(g,Yc,er),typeof er=="string"){g.push(J(er));var Io=null}else Io=er;return Io;case"form":g.push(yn("form"));var Li=null,Xc=null,nr=null,Zr=null,mr=null,ca=null,ks;for(ks in E)if(nt.call(E,ks)){var Pr=E[ks];if(Pr!=null)switch(ks){case"children":Li=Pr;break;case"dangerouslySetInnerHTML":Xc=Pr;break;case"action":nr=Pr;break;case"encType":Zr=Pr;break;case"method":mr=Pr;break;case"target":ca=Pr;break;default:Xt(g,ks,Pr)}}var _s=null,qe=null;if(typeof nr=="function"){var Ii=ds(A,nr);Ii!==null?(nr=Ii.action||"",Zr=Ii.encType,mr=Ii.method,ca=Ii.target,_s=Ii.data,qe=Ii.name):(g.push(" ","action",'="',Mr,'"'),ca=mr=Zr=nr=null,Rr(A,P))}if(nr!=null&&Xt(g,"action",nr),Zr!=null&&Xt(g,"encType",Zr),mr!=null&&Xt(g,"method",mr),ca!=null&&Xt(g,"target",ca),g.push(">"),qe!==null&&(g.push('<input type="hidden"'),Le(g,"name",qe),g.push("/>"),_s!=null&&_s.forEach(Hn,g)),de(g,Xc,Li),typeof Li=="string"){g.push(J(Li));var Xi=null}else Xi=Li;return Xi;case"menuitem":g.push(yn("menuitem"));for(var Jr in E)if(nt.call(E,Jr)){var Bo=E[Jr];if(Bo!=null)switch(Jr){case"children":case"dangerouslySetInnerHTML":throw Error(n(400));default:Xt(g,Jr,Bo)}}return g.push(">"),null;case"object":g.push(yn("object"));var ai=null,Lr=null,ir;for(ir in E)if(nt.call(E,ir)){var Ke=E[ir];if(Ke!=null)switch(ir){case"children":ai=Ke;break;case"dangerouslySetInnerHTML":Lr=Ke;break;case"data":var On=U(""+Ke);if(On==="")break;g.push(" ","data",'="',J(On),'"');break;default:Xt(g,ir,Ke)}}if(g.push(">"),de(g,Lr,ai),typeof ai=="string"){g.push(J(ai));var Ha=null}else Ha=ai;return Ha;case"title":var wi=wt.tagScope&1,Td=wt.tagScope&4;if(wt.insertionMode===4||wi||E.itemProp!=null)var zl=$s(g,E);else Td?zl=null:($s(P.hoistableChunks,E),zl=void 0);return zl;case"link":var mn=wt.tagScope&1,Qc=wt.tagScope&4,jo=E.rel,rr=E.href,As=E.precedence;if(wt.insertionMode===4||mn||E.itemProp!=null||typeof jo!="string"||typeof rr!="string"||rr===""){Bn(g,E);var sr=null}else if(E.rel==="stylesheet")if(typeof As!="string"||E.disabled!=null||E.onLoad||E.onError)sr=Bn(g,E);else{var Tn=P.styles.get(As),Fo=A.styleResources.hasOwnProperty(rr)?A.styleResources[rr]:void 0;if(Fo!==null){A.styleResources[rr]=null,Tn||(Tn={precedence:J(As),rules:[],hrefs:[],sheets:new Map},P.styles.set(As,Tn));var Ga={state:0,props:q({},E,{"data-precedence":E.precedence,precedence:null})};if(Fo){Fo.length===2&&So(Ga.props,Fo);var Zc=P.preloads.stylesheets.get(rr);Zc&&0<Zc.length?Zc.length=0:Ga.state=1}Tn.sheets.set(rr,Ga),Q&&Q.stylesheets.add(Ga)}else if(Tn){var Dl=Tn.sheets.get(rr);Dl&&Q&&Q.stylesheets.add(Dl)}rt&&g.push("<!-- -->"),sr=null}else E.onLoad||E.onError?sr=Bn(g,E):(rt&&g.push("<!-- -->"),sr=Qc?null:Bn(P.hoistableChunks,E));return sr;case"script":var Ns=wt.tagScope&1,Uo=E.async;if(typeof E.src!="string"||!E.src||!Uo||typeof Uo=="function"||typeof Uo=="symbol"||E.onLoad||E.onError||wt.insertionMode===4||Ns||E.itemProp!=null)var Vo=Gn(g,E);else{var En=E.src;if(E.type==="module")var zs=A.moduleScriptResources,ua=P.preloads.moduleScripts;else zs=A.scriptResources,ua=P.preloads.scripts;var Ds=zs.hasOwnProperty(En)?zs[En]:void 0;if(Ds!==null){zs[En]=null;var da=E;if(Ds){Ds.length===2&&(da=q({},E),So(da,Ds));var Ol=ua.get(En);Ol&&(Ol.length=0)}var Ho=[];P.scripts.add(Ho),Gn(Ho,da)}rt&&g.push("<!-- -->"),Vo=null}return Vo;case"style":var Ir=wt.tagScope&1,Bi=E.precedence,Qi=E.href,Jc=E.nonce;if(wt.insertionMode===4||Ir||E.itemProp!=null||typeof Bi!="string"||typeof Qi!="string"||Qi===""){g.push(yn("style"));var ar=null,Ya=null,gr;for(gr in E)if(nt.call(E,gr)){var Br=E[gr];if(Br!=null)switch(gr){case"children":ar=Br;break;case"dangerouslySetInnerHTML":Ya=Br;break;default:Xt(g,gr,Br)}}g.push(">");var pr=Array.isArray(ar)?2>ar.length?ar[0]:null:ar;typeof pr!="function"&&typeof pr!="symbol"&&pr!==null&&pr!==void 0&&g.push((""+pr).replace(xc,hd)),de(g,Ya,ar),g.push(kr("style"));var Wa=null}else{var ji=P.styles.get(Bi);if((A.styleResources.hasOwnProperty(Qi)?A.styleResources[Qi]:void 0)!==null){A.styleResources[Qi]=null,ji||(ji={precedence:J(Bi),rules:[],hrefs:[],sheets:new Map},P.styles.set(Bi,ji));var qc=P.nonce.style;if(!qc||qc===Jc){ji.hrefs.push(J(Qi));var qr=ji.rules,jr=null,Ka=null,Zi;for(Zi in E)if(nt.call(E,Zi)){var Si=E[Zi];if(Si!=null)switch(Zi){case"children":jr=Si;break;case"dangerouslySetInnerHTML":Ka=Si}}var vr=Array.isArray(jr)?2>jr.length?jr[0]:null:jr;typeof vr!="function"&&typeof vr!="symbol"&&vr!==null&&vr!==void 0&&qr.push((""+vr).replace(xc,hd)),de(qr,Ka,jr)}}ji&&Q&&Q.styles.add(ji),rt&&g.push("<!-- -->"),Wa=void 0}return Wa;case"meta":var Ji=wt.tagScope&1,Go=wt.tagScope&4;if(wt.insertionMode===4||Ji||E.itemProp!=null)var Xa=vo(g,E,"meta");else rt&&g.push("<!-- -->"),Xa=Go?null:typeof E.charSet=="string"?vo(P.charsetChunks,E,"meta"):E.name==="viewport"?vo(P.viewportChunks,E,"meta"):vo(P.hoistableChunks,E,"meta");return Xa;case"listing":case"pre":g.push(yn(v));var $r=null,f=null,p;for(p in E)if(nt.call(E,p)){var C=E[p];if(C!=null)switch(p){case"children":$r=C;break;case"dangerouslySetInnerHTML":f=C;break;default:Xt(g,p,C)}}if(g.push(">"),f!=null){if($r!=null)throw Error(n(60));if(typeof f!="object"||!("__html"in f))throw Error(n(61));var _=f.__html;_!=null&&(typeof _=="string"&&0<_.length&&_[0]===`
|
|
66
|
+
`?g.push(`
|
|
67
|
+
`,_):g.push(""+_))}return typeof $r=="string"&&$r[0]===`
|
|
68
|
+
`&&g.push(`
|
|
69
|
+
`),$r;case"img":var D=wt.tagScope&3,V=E.src,W=E.srcSet;if(!(E.loading==="lazy"||!V&&!W||typeof V!="string"&&V!=null||typeof W!="string"&&W!=null||E.fetchPriority==="low"||D)&&(typeof V!="string"||V[4]!==":"||V[0]!=="d"&&V[0]!=="D"||V[1]!=="a"&&V[1]!=="A"||V[2]!=="t"&&V[2]!=="T"||V[3]!=="a"&&V[3]!=="A")&&(typeof W!="string"||W[4]!==":"||W[0]!=="d"&&W[0]!=="D"||W[1]!=="a"&&W[1]!=="A"||W[2]!=="t"&&W[2]!=="T"||W[3]!=="a"&&W[3]!=="A")){Q!==null&&wt.tagScope&64&&(Q.suspenseyImages=!0);var at=typeof E.sizes=="string"?E.sizes:void 0,$=W?W+`
|
|
70
|
+
`+(at||""):V,lt=P.preloads.images,vt=lt.get($);if(vt)(E.fetchPriority==="high"||10>P.highImagePreloads.size)&&(lt.delete($),P.highImagePreloads.add(vt));else if(!A.imageResources.hasOwnProperty($)){A.imageResources[$]=bt;var Et=E.crossOrigin,Bt=typeof Et=="string"?Et==="use-credentials"?Et:"":void 0,jt=P.headers,se;jt&&0<jt.remainingCapacity&&typeof E.srcSet!="string"&&(E.fetchPriority==="high"||500>jt.highImagePreloads.length)&&(se=on(V,"image",{imageSrcSet:E.srcSet,imageSizes:E.sizes,crossOrigin:Bt,integrity:E.integrity,nonce:E.nonce,type:E.type,fetchPriority:E.fetchPriority,referrerPolicy:E.refererPolicy}),0<=(jt.remainingCapacity-=se.length+2))?(P.resets.image[$]=bt,jt.highImagePreloads&&(jt.highImagePreloads+=", "),jt.highImagePreloads+=se):(vt=[],Bn(vt,{rel:"preload",as:"image",href:W?void 0:V,imageSrcSet:W,imageSizes:at,crossOrigin:Bt,integrity:E.integrity,type:E.type,fetchPriority:E.fetchPriority,referrerPolicy:E.referrerPolicy}),E.fetchPriority==="high"||10>P.highImagePreloads.size?P.highImagePreloads.add(vt):(P.bulkPreloads.add(vt),lt.set($,vt)))}}return vo(g,E,"img");case"base":case"area":case"br":case"col":case"embed":case"hr":case"keygen":case"param":case"source":case"track":case"wbr":return vo(g,E,v);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":break;case"head":if(2>wt.insertionMode){var ye=G||P.preamble;if(ye.headChunks)throw Error(n(545,"`<head>`"));G!==null&&g.push("<!--head-->"),ye.headChunks=[];var me=Wr(ye.headChunks,E,"head")}else me=gi(g,E,"head");return me;case"body":if(2>wt.insertionMode){var Wt=G||P.preamble;if(Wt.bodyChunks)throw Error(n(545,"`<body>`"));G!==null&&g.push("<!--body-->"),Wt.bodyChunks=[];var ae=Wr(Wt.bodyChunks,E,"body")}else ae=gi(g,E,"body");return ae;case"html":if(wt.insertionMode===0){var Re=G||P.preamble;if(Re.htmlChunks)throw Error(n(545,"`<html>`"));G!==null&&g.push("<!--html-->"),Re.htmlChunks=[""];var oi=Wr(Re.htmlChunks,E,"html")}else oi=gi(g,E,"html");return oi;default:if(v.indexOf("-")!==-1){g.push(yn(v));var li=null,oe=null,Un;for(Un in E)if(nt.call(E,Un)){var sn=E[Un];if(sn!=null){var Pn=Un;switch(Un){case"children":li=sn;break;case"dangerouslySetInnerHTML":oe=sn;break;case"style":re(g,sn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"className":Pn="class";default:if(mt(Un)&&typeof sn!="function"&&typeof sn!="symbol"&&sn!==!1){if(sn===!0)sn="";else if(typeof sn=="object")continue;g.push(" ",Pn,'="',J(sn),'"')}}}}return g.push(">"),de(g,oe,li),li}}return gi(g,E,v)}var yo=new Map;function kr(g){var v=yo.get(g);return v===void 0&&(v="</"+g+">",yo.set(g,v)),v}function hs(g,v){g=g.preamble,g.htmlChunks===null&&v.htmlChunks&&(g.htmlChunks=v.htmlChunks),g.headChunks===null&&v.headChunks&&(g.headChunks=v.headChunks),g.bodyChunks===null&&v.bodyChunks&&(g.bodyChunks=v.bodyChunks)}function Ea(g,v){v=v.bootstrapChunks;for(var E=0;E<v.length-1;E++)g.push(v[E]);return E<v.length?(E=v[E],v.length=0,g.push(E)):!0}function fs(g,v,E){if(g.push('<!--$?--><template id="'),E===null)throw Error(n(395));return g.push(v.boundaryPrefix),v=E.toString(16),g.push(v),g.push('"></template>')}function _r(g,v,E,A){switch(E.insertionMode){case 0:case 1:case 3:case 2:return g.push('<div hidden id="'),g.push(v.segmentPrefix),v=A.toString(16),g.push(v),g.push('">');case 4:return g.push('<svg aria-hidden="true" style="display:none" id="'),g.push(v.segmentPrefix),v=A.toString(16),g.push(v),g.push('">');case 5:return g.push('<math aria-hidden="true" style="display:none" id="'),g.push(v.segmentPrefix),v=A.toString(16),g.push(v),g.push('">');case 6:return g.push('<table hidden id="'),g.push(v.segmentPrefix),v=A.toString(16),g.push(v),g.push('">');case 7:return g.push('<table hidden><tbody id="'),g.push(v.segmentPrefix),v=A.toString(16),g.push(v),g.push('">');case 8:return g.push('<table hidden><tr id="'),g.push(v.segmentPrefix),v=A.toString(16),g.push(v),g.push('">');case 9:return g.push('<table hidden><colgroup id="'),g.push(v.segmentPrefix),v=A.toString(16),g.push(v),g.push('">');default:throw Error(n(397))}}function md(g,v){switch(v.insertionMode){case 0:case 1:case 3:case 2:return g.push("</div>");case 4:return g.push("</svg>");case 5:return g.push("</math>");case 6:return g.push("</table>");case 7:return g.push("</tbody></table>");case 8:return g.push("</tr></table>");case 9:return g.push("</colgroup></table>");default:throw Error(n(397))}}var Sc=/[<\u2028\u2029]/g;function gl(g){return JSON.stringify(g).replace(Sc,function(v){switch(v){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var Hh=/[&><\u2028\u2029]/g;function bo(g){return JSON.stringify(g).replace(Hh,function(v){switch(v){case"&":return"\\u0026";case">":return"\\u003e";case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var xo=!1,Yn=!0;function Yi(g){var v=g.rules,E=g.hrefs,A=0;if(E.length){for(this.push(zt.startInlineStyle),this.push(' media="not all" data-precedence="'),this.push(g.precedence),this.push('" data-href="');A<E.length-1;A++)this.push(E[A]),this.push(" ");for(this.push(E[A]),this.push('">'),A=0;A<v.length;A++)this.push(v[A]);Yn=this.push("</style>"),xo=!0,v.length=0,E.length=0}}function an(g){return g.state!==2?xo=!0:!1}function pl(g,v,E){return xo=!1,Yn=!0,zt=E,v.styles.forEach(Yi,g),zt=null,v.stylesheets.forEach(an),xo&&(E.stylesToHoist=!0),Yn}function Wi(g){for(var v=0;v<g.length;v++)this.push(g[v]);g.length=0}var je=[];function Wn(g){Bn(je,g.props);for(var v=0;v<je.length;v++)this.push(je[v]);je.length=0,g.state=2}function ki(g){var v=0<g.sheets.size;g.sheets.forEach(Wn,this),g.sheets.clear();var E=g.rules,A=g.hrefs;if(!v||A.length){if(this.push(zt.startInlineStyle),this.push(' data-precedence="'),this.push(g.precedence),g=0,A.length){for(this.push('" data-href="');g<A.length-1;g++)this.push(A[g]),this.push(" ");this.push(A[g])}for(this.push('">'),g=0;g<E.length;g++)this.push(E[g]);this.push("</style>"),E.length=0,A.length=0}}function ta(g){if(g.state===0){g.state=1;var v=g.props;for(Bn(je,{rel:"preload",as:"style",href:g.props.href,crossOrigin:v.crossOrigin,fetchPriority:v.fetchPriority,integrity:v.integrity,media:v.media,hrefLang:v.hrefLang,referrerPolicy:v.referrerPolicy}),g=0;g<je.length;g++)this.push(je[g]);je.length=0}}function Cc(g){g.sheets.forEach(ta,this),g.sheets.clear()}function vl(g,v){(v.instructions&32)===0&&(v.instructions|=32,g.push(' id="',J("_"+v.idPrefix+"R_"),'"'))}function Gh(g,v){g.push("[");var E="[";v.stylesheets.forEach(function(A){if(A.state!==2)if(A.state===3)g.push(E),A=bo(""+A.props.href),g.push(A),g.push("]"),E=",[";else{g.push(E);var P=A.props["data-precedence"],G=A.props,Q=U(""+A.props.href);Q=bo(Q),g.push(Q),P=""+P,g.push(","),P=bo(P),g.push(P);for(var wt in G)if(nt.call(G,wt)&&(P=G[wt],P!=null))switch(wt){case"href":case"rel":case"precedence":case"data-precedence":break;case"children":case"dangerouslySetInnerHTML":throw Error(n(399,"link"));default:Fe(g,wt,P)}g.push("]"),E=",[",A.state=3}}),g.push("]")}function Fe(g,v,E){var A=v.toLowerCase();switch(typeof E){case"function":case"symbol":return}switch(v){case"innerHTML":case"dangerouslySetInnerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"style":case"ref":return;case"className":A="class",v=""+E;break;case"hidden":if(E===!1)return;v="";break;case"src":case"href":E=U(E),v=""+E;break;default:if(2<v.length&&(v[0]==="o"||v[0]==="O")&&(v[1]==="n"||v[1]==="N")||!mt(v))return;v=""+E}g.push(","),A=bo(A),g.push(A),g.push(","),A=bo(v),g.push(A)}function Ye(){return{styles:new Set,stylesheets:new Set,suspenseyImages:!1}}function Ma(g){var v=ii||null;if(v){var E=v.resumableState,A=v.renderState;if(typeof g=="string"&&g){if(!E.dnsResources.hasOwnProperty(g)){E.dnsResources[g]=null,E=A.headers;var P,G;(G=E&&0<E.remainingCapacity)&&(G=(P="<"+(""+g).replace(ms,Tc)+">; rel=dns-prefetch",0<=(E.remainingCapacity-=P.length+2))),G?(A.resets.dns[g]=null,E.preconnects&&(E.preconnects+=", "),E.preconnects+=P):(P=[],Bn(P,{href:g,rel:"dns-prefetch"}),A.preconnects.add(P))}Dr(v)}}else tt.D(g)}function Kn(g,v){var E=ii||null;if(E){var A=E.resumableState,P=E.renderState;if(typeof g=="string"&&g){var G=v==="use-credentials"?"credentials":typeof v=="string"?"anonymous":"default";if(!A.connectResources[G].hasOwnProperty(g)){A.connectResources[G][g]=null,A=P.headers;var Q,wt;if(wt=A&&0<A.remainingCapacity){if(wt="<"+(""+g).replace(ms,Tc)+">; rel=preconnect",typeof v=="string"){var rt=(""+v).replace(gs,yl);wt+='; crossorigin="'+rt+'"'}wt=(Q=wt,0<=(A.remainingCapacity-=Q.length+2))}wt?(P.resets.connect[G][g]=null,A.preconnects&&(A.preconnects+=", "),A.preconnects+=Q):(G=[],Bn(G,{rel:"preconnect",href:g,crossOrigin:v}),P.preconnects.add(G))}Dr(E)}}else tt.C(g,v)}function wo(g,v,E){var A=ii||null;if(A){var P=A.resumableState,G=A.renderState;if(v&&g){switch(v){case"image":if(E)var Q=E.imageSrcSet,wt=E.imageSizes,rt=E.fetchPriority;var St=Q?Q+`
|
|
71
|
+
`+(wt||""):g;if(P.imageResources.hasOwnProperty(St))return;P.imageResources[St]=bt,P=G.headers;var Pt;P&&0<P.remainingCapacity&&typeof Q!="string"&&rt==="high"&&(Pt=on(g,v,E),0<=(P.remainingCapacity-=Pt.length+2))?(G.resets.image[St]=bt,P.highImagePreloads&&(P.highImagePreloads+=", "),P.highImagePreloads+=Pt):(P=[],Bn(P,q({rel:"preload",href:Q?void 0:g,as:v},E)),rt==="high"?G.highImagePreloads.add(P):(G.bulkPreloads.add(P),G.preloads.images.set(St,P)));break;case"style":if(P.styleResources.hasOwnProperty(g))return;Q=[],Bn(Q,q({rel:"preload",href:g,as:v},E)),P.styleResources[g]=!E||typeof E.crossOrigin!="string"&&typeof E.integrity!="string"?bt:[E.crossOrigin,E.integrity],G.preloads.stylesheets.set(g,Q),G.bulkPreloads.add(Q);break;case"script":if(P.scriptResources.hasOwnProperty(g))return;Q=[],G.preloads.scripts.set(g,Q),G.bulkPreloads.add(Q),Bn(Q,q({rel:"preload",href:g,as:v},E)),P.scriptResources[g]=!E||typeof E.crossOrigin!="string"&&typeof E.integrity!="string"?bt:[E.crossOrigin,E.integrity];break;default:if(P.unknownResources.hasOwnProperty(v)){if(Q=P.unknownResources[v],Q.hasOwnProperty(g))return}else Q={},P.unknownResources[v]=Q;if(Q[g]=bt,(P=G.headers)&&0<P.remainingCapacity&&v==="font"&&(St=on(g,v,E),0<=(P.remainingCapacity-=St.length+2)))G.resets.font[g]=bt,P.fontPreloads&&(P.fontPreloads+=", "),P.fontPreloads+=St;else switch(P=[],g=q({rel:"preload",href:g,as:v},E),Bn(P,g),v){case"font":G.fontPreloads.add(P);break;default:G.bulkPreloads.add(P)}}Dr(A)}}else tt.L(g,v,E)}function Ra(g,v){var E=ii||null;if(E){var A=E.resumableState,P=E.renderState;if(g){var G=v&&typeof v.as=="string"?v.as:"script";switch(G){case"script":if(A.moduleScriptResources.hasOwnProperty(g))return;G=[],A.moduleScriptResources[g]=!v||typeof v.crossOrigin!="string"&&typeof v.integrity!="string"?bt:[v.crossOrigin,v.integrity],P.preloads.moduleScripts.set(g,G);break;default:if(A.moduleUnknownResources.hasOwnProperty(G)){var Q=A.unknownResources[G];if(Q.hasOwnProperty(g))return}else Q={},A.moduleUnknownResources[G]=Q;G=[],Q[g]=bt}Bn(G,q({rel:"modulepreload",href:g},v)),P.bulkPreloads.add(G),Dr(E)}}else tt.m(g,v)}function ka(g,v,E){var A=ii||null;if(A){var P=A.resumableState,G=A.renderState;if(g){v=v||"default";var Q=G.styles.get(v),wt=P.styleResources.hasOwnProperty(g)?P.styleResources[g]:void 0;wt!==null&&(P.styleResources[g]=null,Q||(Q={precedence:J(v),rules:[],hrefs:[],sheets:new Map},G.styles.set(v,Q)),v={state:0,props:q({rel:"stylesheet",href:g,"data-precedence":v},E)},wt&&(wt.length===2&&So(v.props,wt),(G=G.preloads.stylesheets.get(g))&&0<G.length?G.length=0:v.state=1),Q.sheets.set(g,v),Dr(A))}}else tt.S(g,v,E)}function jn(g,v){var E=ii||null;if(E){var A=E.resumableState,P=E.renderState;if(g){var G=A.scriptResources.hasOwnProperty(g)?A.scriptResources[g]:void 0;G!==null&&(A.scriptResources[g]=null,v=q({src:g,async:!0},v),G&&(G.length===2&&So(v,G),g=P.preloads.scripts.get(g))&&(g.length=0),g=[],P.scripts.add(g),Gn(g,v),Dr(E))}}else tt.X(g,v)}function Yh(g,v){var E=ii||null;if(E){var A=E.resumableState,P=E.renderState;if(g){var G=A.moduleScriptResources.hasOwnProperty(g)?A.moduleScriptResources[g]:void 0;G!==null&&(A.moduleScriptResources[g]=null,v=q({src:g,type:"module",async:!0},v),G&&(G.length===2&&So(v,G),g=P.preloads.moduleScripts.get(g))&&(g.length=0),g=[],P.scripts.add(g),Gn(g,v),Dr(E))}}else tt.M(g,v)}function So(g,v){g.crossOrigin==null&&(g.crossOrigin=v[0]),g.integrity==null&&(g.integrity=v[1])}function on(g,v,E){g=(""+g).replace(ms,Tc),v=(""+v).replace(gs,yl),v="<"+g+'>; rel=preload; as="'+v+'"';for(var A in E)nt.call(E,A)&&(g=E[A],typeof g=="string"&&(v+="; "+A.toLowerCase()+'="'+(""+g).replace(gs,yl)+'"'));return v}var ms=/[<>\r\n]/g;function Tc(g){switch(g){case"<":return"%3C";case">":return"%3E";case`
|
|
72
|
+
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}var gs=/["';,\r\n]/g;function yl(g){switch(g){case'"':return"%22";case"'":return"%27";case";":return"%3B";case",":return"%2C";case`
|
|
73
|
+
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function Mm(g){this.styles.add(g)}function Ec(g){this.stylesheets.add(g)}function ps(g,v){v.styles.forEach(Mm,g),v.stylesheets.forEach(Ec,g),v.suspenseyImages&&(g.suspenseyImages=!0)}function dr(g,v){var E=g.idPrefix,A=[],P=g.bootstrapScriptContent,G=g.bootstrapScripts,Q=g.bootstrapModules;P!==void 0&&(A.push("<script"),vl(A,g),A.push(">",(""+P).replace(Dt,Mt),"<\/script>")),P=E+"P:";var wt=E+"S:";E+="B:";var rt=new Set,St=new Set,Pt=new Set,_t=new Map,Ft=new Set,qt=new Set,Se=new Set,ge={images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map};if(G!==void 0)for(var fe=0;fe<G.length;fe++){var he=G[fe],ve,Ue=void 0,fn=void 0,Ee={rel:"preload",as:"script",fetchPriority:"low",nonce:void 0};typeof he=="string"?Ee.href=ve=he:(Ee.href=ve=he.src,Ee.integrity=fn=typeof he.integrity=="string"?he.integrity:void 0,Ee.crossOrigin=Ue=typeof he=="string"||he.crossOrigin==null?void 0:he.crossOrigin==="use-credentials"?"use-credentials":""),he=g;var Me=ve;he.scriptResources[Me]=null,he.moduleScriptResources[Me]=null,he=[],Bn(he,Ee),Ft.add(he),A.push('<script src="',J(ve),'"'),typeof fn=="string"&&A.push(' integrity="',J(fn),'"'),typeof Ue=="string"&&A.push(' crossorigin="',J(Ue),'"'),vl(A,g),A.push(' async=""><\/script>')}if(Q!==void 0)for(G=0;G<Q.length;G++)Ee=Q[G],Ue=ve=void 0,fn={rel:"modulepreload",fetchPriority:"low",nonce:void 0},typeof Ee=="string"?fn.href=fe=Ee:(fn.href=fe=Ee.src,fn.integrity=Ue=typeof Ee.integrity=="string"?Ee.integrity:void 0,fn.crossOrigin=ve=typeof Ee=="string"||Ee.crossOrigin==null?void 0:Ee.crossOrigin==="use-credentials"?"use-credentials":""),Ee=g,he=fe,Ee.scriptResources[he]=null,Ee.moduleScriptResources[he]=null,Ee=[],Bn(Ee,fn),Ft.add(Ee),A.push('<script type="module" src="',J(fe),'"'),typeof Ue=="string"&&A.push(' integrity="',J(Ue),'"'),typeof ve=="string"&&A.push(' crossorigin="',J(ve),'"'),vl(A,g),A.push(' async=""><\/script>');return{placeholderPrefix:P,segmentPrefix:wt,boundaryPrefix:E,startInlineScript:"<script",startInlineStyle:"<style",preamble:{htmlChunks:null,headChunks:null,bodyChunks:null},externalRuntimeScript:null,bootstrapChunks:A,importMapChunks:[],onHeaders:void 0,headers:null,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:rt,fontPreloads:St,highImagePreloads:Pt,styles:_t,bootstrapScripts:Ft,scripts:qt,bulkPreloads:Se,preloads:ge,nonce:{script:void 0,style:void 0},stylesToHoist:!1,generateStaticMarkup:v}}function _i(g,v,E,A){return E.generateStaticMarkup?(g.push(J(v)),!1):(v===""?g=A:(A&&g.push("<!-- -->"),g.push(J(v)),g=!0),g)}function vs(g,v,E,A){v.generateStaticMarkup||E&&A&&g.push("<!-- -->")}var gd=Function.prototype.bind,pd=Symbol.for("react.client.reference");function Co(g){if(g==null)return null;if(typeof g=="function")return g.$$typeof===pd?null:g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case o:return"Fragment";case d:return"Profiler";case c:return"StrictMode";case y:return"Suspense";case T:return"SuspenseList";case z:return"Activity"}if(typeof g=="object")switch(g.$$typeof){case a:return"Portal";case m:return g.displayName||"Context";case h:return(g._context.displayName||"Context")+".Consumer";case b:var v=g.render;return g=g.displayName,g||(g=v.displayName||v.name||"",g=g!==""?"ForwardRef("+g+")":"ForwardRef"),g;case k:return v=g.displayName||null,v!==null?v:Co(g.type)||"Memo";case R:v=g._payload,g=g._init;try{return Co(g(v))}catch{}}return null}var bn={},_a=null;function Ai(g,v){if(g!==v){g.context._currentValue2=g.parentValue,g=g.parent;var E=v.parent;if(g===null){if(E!==null)throw Error(n(401))}else{if(E===null)throw Error(n(401));Ai(g,E)}v.context._currentValue2=v.value}}function bl(g){g.context._currentValue2=g.parentValue,g=g.parent,g!==null&&bl(g)}function ys(g){var v=g.parent;v!==null&&ys(v),g.context._currentValue2=g.value}function xl(g,v){if(g.context._currentValue2=g.parentValue,g=g.parent,g===null)throw Error(n(402));g.depth===v.depth?Ai(g,v):xl(g,v)}function ea(g,v){var E=v.parent;if(E===null)throw Error(n(402));g.depth===E.depth?Ai(g,E):ea(g,E),v.context._currentValue2=v.value}function bs(g){var v=_a;v!==g&&(v===null?ys(g):g===null?bl(v):v.depth===g.depth?Ai(v,g):v.depth>g.depth?xl(v,g):ea(v,g),_a=g)}var vd={enqueueSetState:function(g,v){g=g._reactInternals,g.queue!==null&&g.queue.push(v)},enqueueReplaceState:function(g,v){g=g._reactInternals,g.replace=!0,g.queue=[v]},enqueueForceUpdate:function(){}},To={id:1,overflow:""};function Aa(g,v,E){var A=g.id;g=g.overflow;var P=32-wl(A)-1;A&=~(1<<P),E+=1;var G=32-wl(v)+P;if(30<G){var Q=P-P%5;return G=(A&(1<<Q)-1).toString(32),A>>=Q,P-=Q,{id:1<<32-wl(v)+P|E<<P|A,overflow:G+g}}return{id:1<<G|E<<P|A,overflow:g}}var wl=Math.clz32?Math.clz32:Rm,Wh=Math.log,yd=Math.LN2;function Rm(g){return g>>>=0,g===0?32:31-(Wh(g)/yd|0)|0}function Ni(){}var pi=Error(n(460));function xs(g,v,E){switch(E=g[E],E===void 0?g.push(v):E!==v&&(v.then(Ni,Ni),v=E),v.status){case"fulfilled":return v.value;case"rejected":throw v.reason;default:switch(typeof v.status=="string"?v.then(Ni,Ni):(g=v,g.status="pending",g.then(function(A){if(v.status==="pending"){var P=v;P.status="fulfilled",P.value=A}},function(A){if(v.status==="pending"){var P=v;P.status="rejected",P.reason=A}})),v.status){case"fulfilled":return v.value;case"rejected":throw v.reason}throw Eo=v,pi}}var Eo=null;function Mo(){if(Eo===null)throw Error(n(459));var g=Eo;return Eo=null,g}function Ro(g,v){return g===v&&(g!==0||1/g===1/v)||g!==g&&v!==v}var Na=typeof Object.is=="function"?Object.is:Ro,Kr=null,Sl=null,Mc=null,za=null,hr=null,We=null,ws=!1,Ar=!1,Da=0,na=0,ko=-1,Oa=0,Ss=null,Cs=null,ni=0;function zi(){if(Kr===null)throw Error(n(321));return Kr}function Cl(){if(0<ni)throw Error(n(312));return{memoizedState:null,queue:null,next:null}}function Pa(){return We===null?hr===null?(ws=!1,hr=We=Cl()):(ws=!0,We=hr):We.next===null?(ws=!1,We=We.next=Cl()):(ws=!0,We=We.next),We}function _o(){var g=Ss;return Ss=null,g}function La(){za=Mc=Sl=Kr=null,Ar=!1,hr=null,ni=0,We=Cs=null}function Rc(g,v){return typeof v=="function"?v(g):v}function Ao(g,v,E){if(Kr=zi(),We=Pa(),ws){var A=We.queue;if(v=A.dispatch,Cs!==null&&(E=Cs.get(A),E!==void 0)){Cs.delete(A),A=We.memoizedState;do A=g(A,E.action),E=E.next;while(E!==null);return We.memoizedState=A,[A,v]}return[We.memoizedState,v]}return g=g===Rc?typeof v=="function"?v():v:E!==void 0?E(v):v,We.memoizedState=g,g=We.queue={last:null,dispatch:null},g=g.dispatch=Kh.bind(null,Kr,g),[We.memoizedState,g]}function Tl(g,v){if(Kr=zi(),We=Pa(),v=v===void 0?null:v,We!==null){var E=We.memoizedState;if(E!==null&&v!==null){var A=E[1];t:if(A===null)A=!1;else{for(var P=0;P<A.length&&P<v.length;P++)if(!Na(v[P],A[P])){A=!1;break t}A=!0}if(A)return E[0]}}return g=g(),We.memoizedState=[g,v],g}function Kh(g,v,E){if(25<=ni)throw Error(n(301));if(g===Kr)if(Ar=!0,g={action:E,next:null},Cs===null&&(Cs=new Map),E=Cs.get(v),E===void 0)Cs.set(v,g);else{for(v=E;v.next!==null;)v=v.next;v.next=g}}function km(){throw Error(n(440))}function _m(){throw Error(n(394))}function Am(){throw Error(n(479))}function El(g,v,E){zi();var A=na++,P=Mc;if(typeof g.$$FORM_ACTION=="function"){var G=null,Q=za;P=P.formState;var wt=g.$$IS_SIGNATURE_EQUAL;if(P!==null&&typeof wt=="function"){var rt=P[1];wt.call(g,P[2],P[3])&&(G=E!==void 0?"p"+E:"k"+et(JSON.stringify([Q,null,A]),0),rt===G&&(ko=A,v=P[0]))}var St=g.bind(null,v);return g=function(_t){St(_t)},typeof St.$$FORM_ACTION=="function"&&(g.$$FORM_ACTION=function(_t){_t=St.$$FORM_ACTION(_t),E!==void 0&&(E+="",_t.action=E);var Ft=_t.data;return Ft&&(G===null&&(G=E!==void 0?"p"+E:"k"+et(JSON.stringify([Q,null,A]),0)),Ft.append("$ACTION_KEY",G)),_t}),[v,g,!1]}var Pt=g.bind(null,v);return[v,function(_t){Pt(_t)},!1]}function Xh(g){var v=Oa;return Oa+=1,Ss===null&&(Ss=[]),xs(Ss,g,v)}function Nm(){throw Error(n(393))}var Qh={readContext:function(g){return g._currentValue2},use:function(g){if(g!==null&&typeof g=="object"){if(typeof g.then=="function")return Xh(g);if(g.$$typeof===m)return g._currentValue2}throw Error(n(438,String(g)))},useContext:function(g){return zi(),g._currentValue2},useMemo:Tl,useReducer:Ao,useRef:function(g){Kr=zi(),We=Pa();var v=We.memoizedState;return v===null?(g={current:g},We.memoizedState=g):v},useState:function(g){return Ao(Rc,g)},useInsertionEffect:Ni,useLayoutEffect:Ni,useCallback:function(g,v){return Tl(function(){return g},v)},useImperativeHandle:Ni,useEffect:Ni,useDebugValue:Ni,useDeferredValue:function(g,v){return zi(),v!==void 0?v:g},useTransition:function(){return zi(),[!1,_m]},useId:function(){var g=Sl.treeContext,v=g.overflow;g=g.id,g=(g&~(1<<32-wl(g)-1)).toString(32)+v;var E=kc;if(E===null)throw Error(n(404));return v=Da++,g="_"+E.idPrefix+"R_"+g,0<v&&(g+="H"+v.toString(32)),g+"_"},useSyncExternalStore:function(g,v,E){if(E===void 0)throw Error(n(407));return E()},useOptimistic:function(g){return zi(),[g,Am]},useActionState:El,useFormState:El,useHostTransitionStatus:function(){return zi(),yt},useMemoCache:function(g){for(var v=Array(g),E=0;E<g;E++)v[E]=I;return v},useCacheRefresh:function(){return Nm},useEffectEvent:function(){return km}},kc=null,zm={getCacheForType:function(){throw Error(n(248))},cacheSignal:function(){throw Error(n(248))}},_c,Zh;function No(g){if(_c===void 0)try{throw Error()}catch(E){var v=E.stack.trim().match(/\n( *(at )?)/);_c=v&&v[1]||"",Zh=-1<E.stack.indexOf(`
|
|
74
|
+
at`)?" (<anonymous>)":-1<E.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
75
|
+
`+_c+g+Zh}var bd=!1;function Ac(g,v){if(!g||bd)return"";bd=!0;var E=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var A={DetermineComponentFrameRoot:function(){try{if(v){var _t=function(){throw Error()};if(Object.defineProperty(_t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_t,[])}catch(qt){var Ft=qt}Reflect.construct(g,[],_t)}else{try{_t.call()}catch(qt){Ft=qt}g.call(_t.prototype)}}else{try{throw Error()}catch(qt){Ft=qt}(_t=g())&&typeof _t.catch=="function"&&_t.catch(function(){})}}catch(qt){if(qt&&Ft&&typeof qt.stack=="string")return[qt.stack,Ft.stack]}return[null,null]}};A.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var P=Object.getOwnPropertyDescriptor(A.DetermineComponentFrameRoot,"name");P&&P.configurable&&Object.defineProperty(A.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var G=A.DetermineComponentFrameRoot(),Q=G[0],wt=G[1];if(Q&&wt){var rt=Q.split(`
|
|
76
|
+
`),St=wt.split(`
|
|
77
|
+
`);for(P=A=0;A<rt.length&&!rt[A].includes("DetermineComponentFrameRoot");)A++;for(;P<St.length&&!St[P].includes("DetermineComponentFrameRoot");)P++;if(A===rt.length||P===St.length)for(A=rt.length-1,P=St.length-1;1<=A&&0<=P&&rt[A]!==St[P];)P--;for(;1<=A&&0<=P;A--,P--)if(rt[A]!==St[P]){if(A!==1||P!==1)do if(A--,P--,0>P||rt[A]!==St[P]){var Pt=`
|
|
78
|
+
`+rt[A].replace(" at new "," at ");return g.displayName&&Pt.includes("<anonymous>")&&(Pt=Pt.replace("<anonymous>",g.displayName)),Pt}while(1<=A&&0<=P);break}}}finally{bd=!1,Error.prepareStackTrace=E}return(E=g?g.displayName||g.name:"")?No(E):""}function Nc(g){if(typeof g=="string")return No(g);if(typeof g=="function")return g.prototype&&g.prototype.isReactComponent?Ac(g,!0):Ac(g,!1);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case b:return Ac(g.render,!1);case k:return Ac(g.type,!1);case R:var v=g,E=v._payload;v=v._init;try{g=v(E)}catch{return No("Lazy")}return Nc(g)}if(typeof g.name=="string"){t:{E=g.name,v=g.env;var A=g.debugLocation;if(A!=null&&(g=Error.prepareStackTrace,Error.prepareStackTrace=void 0,A=A.stack,Error.prepareStackTrace=g,A.startsWith(`Error: react-stack-top-frame
|
|
79
|
+
`)&&(A=A.slice(29)),g=A.indexOf(`
|
|
80
|
+
`),g!==-1&&(A=A.slice(g+1)),g=A.indexOf("react_stack_bottom_frame"),g!==-1&&(g=A.lastIndexOf(`
|
|
81
|
+
`,g)),g=g!==-1?A=A.slice(0,g):"",A=g.lastIndexOf(`
|
|
82
|
+
`),g=A===-1?g:g.slice(A+1),g.indexOf(E)!==-1)){E=`
|
|
83
|
+
`+g;break t}E=No(E+(v?" ["+v+"]":""))}return E}}switch(g){case T:return No("SuspenseList");case y:return No("Suspense")}return""}function zo(g,v){return(500<v.byteSize||!1)&&v.contentPreamble===null}function Dm(g){if(typeof g=="object"&&g!==null&&typeof g.environmentName=="string"){var v=g.environmentName;g=[g].slice(0),typeof g[0]=="string"?g.splice(0,1,"[%s] "+g[0]," "+v+" "):g.splice(0,0,"[%s]"," "+v+" "),g.unshift(console),v=gd.apply(console.error,g),v()}else console.error(g);return null}function Om(g,v,E,A,P,G,Q,wt,rt,St,Pt){var _t=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=g,this.renderState=v,this.rootFormatContext=E,this.progressiveChunkSize=A===void 0?12800:A,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.byteSize=0,this.abortableTasks=_t,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=P===void 0?Dm:P,this.onPostpone=St===void 0?Ni:St,this.onAllReady=G===void 0?Ni:G,this.onShellReady=Q===void 0?Ni:Q,this.onShellError=wt===void 0?Ni:wt,this.onFatalError=rt===void 0?Ni:rt,this.formState=Pt===void 0?null:Pt}function Jh(g,v,E,A,P,G,Q,wt,rt,St,Pt,_t){return v=new Om(v,E,A,P,G,Q,wt,rt,St,Pt,_t),E=Ia(v,0,null,A,!1,!1),E.parentFlushed=!0,g=zc(v,null,g,-1,null,E,null,null,v.abortableTasks,null,A,null,To,null,null),ia(g),v.pingedTasks.push(g),v}var ii=null;function Do(g,v){g.pingedTasks.push(v),g.pingedTasks.length===1&&(g.flushScheduled=g.destination!==null,$h(g))}function xd(g,v,E,A,P){return E={status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,row:v,completedSegments:[],byteSize:0,fallbackAbortableTasks:E,errorDigest:null,contentState:Ye(),fallbackState:Ye(),contentPreamble:A,fallbackPreamble:P,trackedContentKeyPath:null,trackedFallbackNode:null},v!==null&&(v.pendingTasks++,A=v.boundaries,A!==null&&(g.allPendingTasks++,E.pendingTasks++,A.push(E)),g=v.inheritedHoistables,g!==null&&ps(E.contentState,g)),E}function zc(g,v,E,A,P,G,Q,wt,rt,St,Pt,_t,Ft,qt,Se){g.allPendingTasks++,P===null?g.pendingRootTasks++:P.pendingTasks++,qt!==null&&qt.pendingTasks++;var ge={replay:null,node:E,childIndex:A,ping:function(){return Do(g,ge)},blockedBoundary:P,blockedSegment:G,blockedPreamble:Q,hoistableState:wt,abortSet:rt,keyPath:St,formatContext:Pt,context:_t,treeContext:Ft,row:qt,componentStack:Se,thenableState:v};return rt.add(ge),ge}function qh(g,v,E,A,P,G,Q,wt,rt,St,Pt,_t,Ft,qt){g.allPendingTasks++,G===null?g.pendingRootTasks++:G.pendingTasks++,Ft!==null&&Ft.pendingTasks++,E.pendingTasks++;var Se={replay:E,node:A,childIndex:P,ping:function(){return Do(g,Se)},blockedBoundary:G,blockedSegment:null,blockedPreamble:null,hoistableState:Q,abortSet:wt,keyPath:rt,formatContext:St,context:Pt,treeContext:_t,row:Ft,componentStack:qt,thenableState:v};return wt.add(Se),Se}function Ia(g,v,E,A,P,G){return{status:0,parentFlushed:!1,id:-1,index:v,chunks:[],children:[],preambleChildren:[],parentFormatContext:A,boundary:E,lastPushedText:P,textEmbedded:G}}function ia(g){var v=g.node;if(typeof v=="object"&&v!==null)switch(v.$$typeof){case i:g.componentStack={parent:g.componentStack,type:v.type}}}function Ml(g){return g===null?null:{parent:g.parent,type:"Suspense Fallback"}}function ra(g){var v={};return g&&Object.defineProperty(v,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var E="",A=g;do E+=Nc(A.type),A=A.parent;while(A);var P=E}catch(G){P=`
|
|
84
|
+
Error generating stack: `+G.message+`
|
|
85
|
+
`+G.stack}return Object.defineProperty(v,"componentStack",{value:P}),P}}),v}function Xn(g,v,E){if(g=g.onError,v=g(v,E),v==null||typeof v=="string")return v}function Xr(g,v){var E=g.onShellError,A=g.onFatalError;E(v),A(v),g.destination!==null?(g.status=14,g.destination.destroy(v)):(g.status=13,g.fatalError=v)}function tn(g,v){Nr(g,v.next,v.hoistables)}function Nr(g,v,E){for(;v!==null;){E!==null&&(ps(v.hoistables,E),v.inheritedHoistables=E);var A=v.boundaries;if(A!==null){v.boundaries=null;for(var P=0;P<A.length;P++){var G=A[P];E!==null&&ps(G.contentState,E),aa(g,G,null,null)}}if(v.pendingTasks--,0<v.pendingTasks)break;E=v.hoistables,v=v.next}}function Dc(g,v){var E=v.boundaries;if(E!==null&&v.pendingTasks===E.length){for(var A=!0,P=0;P<E.length;P++){var G=E[P];if(G.pendingTasks!==1||G.parentFlushed||zo(g,G)){A=!1;break}}A&&Nr(g,v,v.hoistables)}}function Oo(g){var v={pendingTasks:1,boundaries:null,hoistables:Ye(),inheritedHoistables:null,together:!1,next:null};return g!==null&&0<g.pendingTasks&&(v.pendingTasks++,v.boundaries=[],g.next=v),v}function wd(g,v,E,A,P){var G=v.keyPath,Q=v.treeContext,wt=v.row;v.keyPath=E,E=A.length;var rt=null;if(v.replay!==null){var St=v.replay.slots;if(St!==null&&typeof St=="object")for(var Pt=0;Pt<E;Pt++){var _t=P!=="backwards"&&P!=="unstable_legacy-backwards"?Pt:E-1-Pt,Ft=A[_t];v.row=rt=Oo(rt),v.treeContext=Aa(Q,E,_t);var qt=St[_t];typeof qt=="number"?(Lc(g,v,qt,Ft,_t),delete St[_t]):Fn(g,v,Ft,_t),--rt.pendingTasks===0&&tn(g,rt)}else for(St=0;St<E;St++)Pt=P!=="backwards"&&P!=="unstable_legacy-backwards"?St:E-1-St,_t=A[Pt],v.row=rt=Oo(rt),v.treeContext=Aa(Q,E,Pt),Fn(g,v,_t,Pt),--rt.pendingTasks===0&&tn(g,rt)}else if(P!=="backwards"&&P!=="unstable_legacy-backwards")for(P=0;P<E;P++)St=A[P],v.row=rt=Oo(rt),v.treeContext=Aa(Q,E,P),Fn(g,v,St,P),--rt.pendingTasks===0&&tn(g,rt);else{for(P=v.blockedSegment,St=P.children.length,Pt=P.chunks.length,_t=E-1;0<=_t;_t--){Ft=A[_t],v.row=rt=Oo(rt),v.treeContext=Aa(Q,E,_t),qt=Ia(g,Pt,null,v.formatContext,_t===0?P.lastPushedText:!0,!0),P.children.splice(St,0,qt),v.blockedSegment=qt;try{Fn(g,v,Ft,_t),vs(qt.chunks,g.renderState,qt.lastPushedText,qt.textEmbedded),qt.status=1,--rt.pendingTasks===0&&tn(g,rt)}catch(Se){throw qt.status=g.status===12?3:4,Se}}v.blockedSegment=P,P.lastPushedText=!1}wt!==null&&rt!==null&&0<rt.pendingTasks&&(wt.pendingTasks++,rt.next=wt),v.treeContext=Q,v.row=wt,v.keyPath=G}function Oc(g,v,E,A,P,G){var Q=v.thenableState;for(v.thenableState=null,Kr={},Sl=v,Mc=g,za=E,na=Da=0,ko=-1,Oa=0,Ss=Q,g=A(P,G);Ar;)Ar=!1,na=Da=0,ko=-1,Oa=0,ni+=1,We=null,g=A(P,G);return La(),g}function Ba(g,v,E,A,P,G,Q){var wt=!1;if(G!==0&&g.formState!==null){var rt=v.blockedSegment;if(rt!==null){wt=!0,rt=rt.chunks;for(var St=0;St<G;St++)St===Q?rt.push("<!--F!-->"):rt.push("<!--F-->")}}G=v.keyPath,v.keyPath=E,P?(E=v.treeContext,v.treeContext=Aa(E,1,0),Fn(g,v,A,-1),v.treeContext=E):wt?Fn(g,v,A,-1):fr(g,v,A,-1),v.keyPath=G}function Pc(g,v,E,A,P,G){if(typeof A=="function")if(A.prototype&&A.prototype.isReactComponent){var Q=P;if("ref"in P){Q={};for(var wt in P)wt!=="ref"&&(Q[wt]=P[wt])}var rt=A.defaultProps;if(rt){Q===P&&(Q=q({},Q,P));for(var St in rt)Q[St]===void 0&&(Q[St]=rt[St])}P=Q,Q=bn,rt=A.contextType,typeof rt=="object"&&rt!==null&&(Q=rt._currentValue2),Q=new A(P,Q);var Pt=Q.state!==void 0?Q.state:null;if(Q.updater=vd,Q.props=P,Q.state=Pt,rt={queue:[],replace:!1},Q._reactInternals=rt,G=A.contextType,Q.context=typeof G=="object"&&G!==null?G._currentValue2:bn,G=A.getDerivedStateFromProps,typeof G=="function"&&(G=G(P,Pt),Pt=G==null?Pt:q({},Pt,G),Q.state=Pt),typeof A.getDerivedStateFromProps!="function"&&typeof Q.getSnapshotBeforeUpdate!="function"&&(typeof Q.UNSAFE_componentWillMount=="function"||typeof Q.componentWillMount=="function"))if(A=Q.state,typeof Q.componentWillMount=="function"&&Q.componentWillMount(),typeof Q.UNSAFE_componentWillMount=="function"&&Q.UNSAFE_componentWillMount(),A!==Q.state&&vd.enqueueReplaceState(Q,Q.state,null),rt.queue!==null&&0<rt.queue.length)if(A=rt.queue,G=rt.replace,rt.queue=null,rt.replace=!1,G&&A.length===1)Q.state=A[0];else{for(rt=G?A[0]:Q.state,Pt=!0,G=G?1:0;G<A.length;G++)St=A[G],St=typeof St=="function"?St.call(Q,rt,P,void 0):St,St!=null&&(Pt?(Pt=!1,rt=q({},rt,St)):q(rt,St));Q.state=rt}else rt.queue=null;if(A=Q.render(),g.status===12)throw null;P=v.keyPath,v.keyPath=E,fr(g,v,A,-1),v.keyPath=P}else{if(A=Oc(g,v,E,A,P,void 0),g.status===12)throw null;Ba(g,v,E,A,Da!==0,na,ko)}else if(typeof A=="string")if(Q=v.blockedSegment,Q===null)Q=P.children,rt=v.formatContext,Pt=v.keyPath,v.formatContext=ne(rt,A,P),v.keyPath=E,Fn(g,v,Q,-1),v.formatContext=rt,v.keyPath=Pt;else{if(Pt=zn(Q.chunks,A,P,g.resumableState,g.renderState,v.blockedPreamble,v.hoistableState,v.formatContext,Q.lastPushedText),Q.lastPushedText=!1,rt=v.formatContext,G=v.keyPath,v.keyPath=E,(v.formatContext=ne(rt,A,P)).insertionMode===3){E=Ia(g,0,null,v.formatContext,!1,!1),Q.preambleChildren.push(E),v.blockedSegment=E;try{E.status=6,Fn(g,v,Pt,-1),vs(E.chunks,g.renderState,E.lastPushedText,E.textEmbedded),E.status=1}finally{v.blockedSegment=Q}}else Fn(g,v,Pt,-1);v.formatContext=rt,v.keyPath=G;t:{switch(v=Q.chunks,g=g.resumableState,A){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break t;case"body":if(1>=rt.insertionMode){g.hasBody=!0;break t}break;case"html":if(rt.insertionMode===0){g.hasHtml=!0;break t}break;case"head":if(1>=rt.insertionMode)break t}v.push(kr(A))}Q.lastPushedText=!1}else{switch(A){case L:case c:case d:case o:A=v.keyPath,v.keyPath=E,fr(g,v,P.children,-1),v.keyPath=A;return;case z:A=v.blockedSegment,A===null?P.mode!=="hidden"&&(A=v.keyPath,v.keyPath=E,Fn(g,v,P.children,-1),v.keyPath=A):P.mode!=="hidden"&&(g.renderState.generateStaticMarkup||A.chunks.push("<!--&-->"),A.lastPushedText=!1,Q=v.keyPath,v.keyPath=E,Fn(g,v,P.children,-1),v.keyPath=Q,g.renderState.generateStaticMarkup||A.chunks.push("<!--/&-->"),A.lastPushedText=!1);return;case T:t:{if(A=P.children,P=P.revealOrder,P==="forwards"||P==="backwards"||P==="unstable_legacy-backwards"){if(Z(A)){wd(g,v,E,A,P);break t}if((Q=Y(A))&&(Q=Q.call(A))){if(rt=Q.next(),!rt.done){do rt=Q.next();while(!rt.done);wd(g,v,E,A,P)}break t}}P==="together"?(P=v.keyPath,Q=v.row,rt=v.row=Oo(null),rt.boundaries=[],rt.together=!0,v.keyPath=E,fr(g,v,A,-1),--rt.pendingTasks===0&&tn(g,rt),v.keyPath=P,v.row=Q,Q!==null&&0<rt.pendingTasks&&(Q.pendingTasks++,rt.next=Q)):(P=v.keyPath,v.keyPath=E,fr(g,v,A,-1),v.keyPath=P)}return;case F:case N:throw Error(n(343));case y:t:if(v.replay!==null){A=v.keyPath,Q=v.formatContext,rt=v.row,v.keyPath=E,v.formatContext=Ht(g.resumableState,Q),v.row=null,E=P.children;try{Fn(g,v,E,-1)}finally{v.keyPath=A,v.formatContext=Q,v.row=rt}}else{A=v.keyPath,G=v.formatContext;var _t=v.row,Ft=v.blockedBoundary;St=v.blockedPreamble;var qt=v.hoistableState;wt=v.blockedSegment;var Se=P.fallback;P=P.children;var ge=new Set,fe=xd(g,v.row,ge,null,null);g.trackedPostpones!==null&&(fe.trackedContentKeyPath=E);var he=Ia(g,wt.chunks.length,fe,v.formatContext,!1,!1);wt.children.push(he),wt.lastPushedText=!1;var ve=Ia(g,0,null,v.formatContext,!1,!1);if(ve.parentFlushed=!0,g.trackedPostpones!==null){Q=v.componentStack,rt=[E[0],"Suspense Fallback",E[2]],Pt=[rt[1],rt[2],[],null],g.trackedPostpones.workingMap.set(rt,Pt),fe.trackedFallbackNode=Pt,v.blockedSegment=he,v.blockedPreamble=fe.fallbackPreamble,v.keyPath=rt,v.formatContext=Ce(g.resumableState,G),v.componentStack=Ml(Q),he.status=6;try{Fn(g,v,Se,-1),vs(he.chunks,g.renderState,he.lastPushedText,he.textEmbedded),he.status=1}catch(Ue){throw he.status=g.status===12?3:4,Ue}finally{v.blockedSegment=wt,v.blockedPreamble=St,v.keyPath=A,v.formatContext=G}v=zc(g,null,P,-1,fe,ve,fe.contentPreamble,fe.contentState,v.abortSet,E,Ht(g.resumableState,v.formatContext),v.context,v.treeContext,null,Q),ia(v),g.pingedTasks.push(v)}else{v.blockedBoundary=fe,v.blockedPreamble=fe.contentPreamble,v.hoistableState=fe.contentState,v.blockedSegment=ve,v.keyPath=E,v.formatContext=Ht(g.resumableState,G),v.row=null,ve.status=6;try{if(Fn(g,v,P,-1),vs(ve.chunks,g.renderState,ve.lastPushedText,ve.textEmbedded),ve.status=1,_l(fe,ve),fe.pendingTasks===0&&fe.status===0){if(fe.status=1,!zo(g,fe)){_t!==null&&--_t.pendingTasks===0&&tn(g,_t),g.pendingRootTasks===0&&v.blockedPreamble&&zr(g);break t}}else _t!==null&&_t.together&&Dc(g,_t)}catch(Ue){fe.status=4,g.status===12?(ve.status=3,Q=g.fatalError):(ve.status=4,Q=Ue),rt=ra(v.componentStack),Pt=Xn(g,Q,rt),fe.errorDigest=Pt,Bc(g,fe)}finally{v.blockedBoundary=Ft,v.blockedPreamble=St,v.hoistableState=qt,v.blockedSegment=wt,v.keyPath=A,v.formatContext=G,v.row=_t}v=zc(g,null,Se,-1,Ft,he,fe.fallbackPreamble,fe.fallbackState,ge,[E[0],"Suspense Fallback",E[2]],Ce(g.resumableState,v.formatContext),v.context,v.treeContext,v.row,Ml(v.componentStack)),ia(v),g.pingedTasks.push(v)}}return}if(typeof A=="object"&&A!==null)switch(A.$$typeof){case b:if("ref"in P)for(Se in Q={},P)Se!=="ref"&&(Q[Se]=P[Se]);else Q=P;A=Oc(g,v,E,A.render,Q,G),Ba(g,v,E,A,Da!==0,na,ko);return;case k:Pc(g,v,E,A.type,P,G);return;case m:if(rt=P.children,Q=v.keyPath,P=P.value,Pt=A._currentValue2,A._currentValue2=P,G=_a,_a=A={parent:G,depth:G===null?0:G.depth+1,context:A,parentValue:Pt,value:P},v.context=A,v.keyPath=E,fr(g,v,rt,-1),g=_a,g===null)throw Error(n(403));g.context._currentValue2=g.parentValue,g=_a=g.parent,v.context=g,v.keyPath=Q;return;case h:P=P.children,A=P(A._context._currentValue2),P=v.keyPath,v.keyPath=E,fr(g,v,A,-1),v.keyPath=P;return;case R:if(Q=A._init,A=Q(A._payload),g.status===12)throw null;Pc(g,v,E,A,P,G);return}throw Error(n(130,A==null?A:typeof A,""))}}function Lc(g,v,E,A,P){var G=v.replay,Q=v.blockedBoundary,wt=Ia(g,0,null,v.formatContext,!1,!1);wt.id=E,wt.parentFlushed=!0;try{v.replay=null,v.blockedSegment=wt,Fn(g,v,A,P),wt.status=1,Q===null?g.completedRootSegment=wt:(_l(Q,wt),Q.parentFlushed&&g.partialBoundaries.push(Q))}finally{v.replay=G,v.blockedSegment=null}}function fr(g,v,E,A){v.replay!==null&&typeof v.replay.slots=="number"?Lc(g,v,v.replay.slots,E,A):(v.node=E,v.childIndex=A,E=v.componentStack,ia(v),Ic(g,v),v.componentStack=E)}function Ic(g,v){var E=v.node,A=v.childIndex;if(E!==null){if(typeof E=="object"){switch(E.$$typeof){case i:var P=E.type,G=E.key,Q=E.props;E=Q.ref;var wt=E!==void 0?E:null,rt=Co(P),St=G??(A===-1?0:A);if(G=[v.keyPath,rt,St],v.replay!==null)t:{var Pt=v.replay;for(A=Pt.nodes,E=0;E<A.length;E++){var _t=A[E];if(St===_t[1]){if(_t.length===4){if(rt!==null&&rt!==_t[0])throw Error(n(490,_t[0],rt));var Ft=_t[2];rt=_t[3],St=v.node,v.replay={nodes:Ft,slots:rt,pendingTasks:1};try{if(Pc(g,v,G,P,Q,wt),v.replay.pendingTasks===1&&0<v.replay.nodes.length)throw Error(n(488));v.replay.pendingTasks--}catch(Me){if(typeof Me=="object"&&Me!==null&&(Me===pi||typeof Me.then=="function"))throw v.node===St?v.replay=Pt:A.splice(E,1),Me;v.replay.pendingTasks--,Q=ra(v.componentStack),G=g,g=v.blockedBoundary,P=Me,Q=Xn(G,P,Q),Es(G,g,Ft,rt,P,Q)}v.replay=Pt}else{if(P!==y)throw Error(n(490,"Suspense",Co(P)||"Unknown"));e:{Pt=void 0,P=_t[5],wt=_t[2],rt=_t[3],St=_t[4]===null?[]:_t[4][2],_t=_t[4]===null?null:_t[4][3];var qt=v.keyPath,Se=v.formatContext,ge=v.row,fe=v.replay,he=v.blockedBoundary,ve=v.hoistableState,Ue=Q.children,fn=Q.fallback,Ee=new Set;Q=xd(g,v.row,Ee,null,null),Q.parentFlushed=!0,Q.rootSegmentID=P,v.blockedBoundary=Q,v.hoistableState=Q.contentState,v.keyPath=G,v.formatContext=Ht(g.resumableState,Se),v.row=null,v.replay={nodes:wt,slots:rt,pendingTasks:1};try{if(Fn(g,v,Ue,-1),v.replay.pendingTasks===1&&0<v.replay.nodes.length)throw Error(n(488));if(v.replay.pendingTasks--,Q.pendingTasks===0&&Q.status===0){Q.status=1,g.completedBoundaries.push(Q);break e}}catch(Me){Q.status=4,Ft=ra(v.componentStack),Pt=Xn(g,Me,Ft),Q.errorDigest=Pt,v.replay.pendingTasks--,g.clientRenderedBoundaries.push(Q)}finally{v.blockedBoundary=he,v.hoistableState=ve,v.replay=fe,v.keyPath=qt,v.formatContext=Se,v.row=ge}Ft=qh(g,null,{nodes:St,slots:_t,pendingTasks:0},fn,-1,he,Q.fallbackState,Ee,[G[0],"Suspense Fallback",G[2]],Ce(g.resumableState,v.formatContext),v.context,v.treeContext,v.row,Ml(v.componentStack)),ia(Ft),g.pingedTasks.push(Ft)}}A.splice(E,1);break t}}}else Pc(g,v,G,P,Q,wt);return;case a:throw Error(n(257));case R:if(Ft=E._init,E=Ft(E._payload),g.status===12)throw null;fr(g,v,E,A);return}if(Z(E)){Rl(g,v,E,A);return}if((Ft=Y(E))&&(Ft=Ft.call(E))){if(E=Ft.next(),!E.done){Q=[];do Q.push(E.value),E=Ft.next();while(!E.done);Rl(g,v,Q,A)}return}if(typeof E.then=="function")return v.thenableState=null,fr(g,v,Xh(E),A);if(E.$$typeof===m)return fr(g,v,E._currentValue2,A);throw A=Object.prototype.toString.call(E),Error(n(31,A==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":A))}typeof E=="string"?(A=v.blockedSegment,A!==null&&(A.lastPushedText=_i(A.chunks,E,g.renderState,A.lastPushedText))):(typeof E=="number"||typeof E=="bigint")&&(A=v.blockedSegment,A!==null&&(A.lastPushedText=_i(A.chunks,""+E,g.renderState,A.lastPushedText)))}}function Rl(g,v,E,A){var P=v.keyPath;if(A!==-1&&(v.keyPath=[v.keyPath,"Fragment",A],v.replay!==null)){for(var G=v.replay,Q=G.nodes,wt=0;wt<Q.length;wt++){var rt=Q[wt];if(rt[1]===A){A=rt[2],rt=rt[3],v.replay={nodes:A,slots:rt,pendingTasks:1};try{if(Rl(g,v,E,-1),v.replay.pendingTasks===1&&0<v.replay.nodes.length)throw Error(n(488));v.replay.pendingTasks--}catch(_t){if(typeof _t=="object"&&_t!==null&&(_t===pi||typeof _t.then=="function"))throw _t;v.replay.pendingTasks--,E=ra(v.componentStack);var St=v.blockedBoundary,Pt=_t;E=Xn(g,Pt,E),Es(g,St,A,rt,Pt,E)}v.replay=G,Q.splice(wt,1);break}}v.keyPath=P;return}if(G=v.treeContext,Q=E.length,v.replay!==null&&(wt=v.replay.slots,wt!==null&&typeof wt=="object")){for(A=0;A<Q;A++)rt=E[A],v.treeContext=Aa(G,Q,A),St=wt[A],typeof St=="number"?(Lc(g,v,St,rt,A),delete wt[A]):Fn(g,v,rt,A);v.treeContext=G,v.keyPath=P;return}for(wt=0;wt<Q;wt++)A=E[wt],v.treeContext=Aa(G,Q,wt),Fn(g,v,A,wt);v.treeContext=G,v.keyPath=P}function Ts(g,v,E){if(E.status=5,E.rootSegmentID=g.nextSegmentId++,g=E.trackedContentKeyPath,g===null)throw Error(n(486));var A=E.trackedFallbackNode,P=[],G=v.workingMap.get(g);return G===void 0?(E=[g[1],g[2],P,null,A,E.rootSegmentID],v.workingMap.set(g,E),vi(E,g[0],v),E):(G[4]=A,G[5]=E.rootSegmentID,G)}function sa(g,v,E,A){A.status=5;var P=E.keyPath,G=E.blockedBoundary;if(G===null)A.id=g.nextSegmentId++,v.rootSlots=A.id,g.completedRootSegment!==null&&(g.completedRootSegment.status=5);else{if(G!==null&&G.status===0){var Q=Ts(g,v,G);if(G.trackedContentKeyPath===P&&E.childIndex===-1){A.id===-1&&(A.id=A.parentFlushed?G.rootSegmentID:g.nextSegmentId++),Q[3]=A.id;return}}if(A.id===-1&&(A.id=A.parentFlushed&&G!==null?G.rootSegmentID:g.nextSegmentId++),E.childIndex===-1)P===null?v.rootSlots=A.id:(E=v.workingMap.get(P),E===void 0?(E=[P[1],P[2],[],A.id],vi(E,P[0],v)):E[3]=A.id);else{if(P===null){if(g=v.rootSlots,g===null)g=v.rootSlots={};else if(typeof g=="number")throw Error(n(491))}else if(G=v.workingMap,Q=G.get(P),Q===void 0)g={},Q=[P[1],P[2],[],g],G.set(P,Q),vi(Q,P[0],v);else if(g=Q[3],g===null)g=Q[3]={};else if(typeof g=="number")throw Error(n(491));g[E.childIndex]=A.id}}}function Bc(g,v){g=g.trackedPostpones,g!==null&&(v=v.trackedContentKeyPath,v!==null&&(v=g.workingMap.get(v),v!==void 0&&(v.length=4,v[2]=[],v[3]=null)))}function ja(g,v,E){return qh(g,E,v.replay,v.node,v.childIndex,v.blockedBoundary,v.hoistableState,v.abortSet,v.keyPath,v.formatContext,v.context,v.treeContext,v.row,v.componentStack)}function kl(g,v,E){var A=v.blockedSegment,P=Ia(g,A.chunks.length,null,v.formatContext,A.lastPushedText,!0);return A.children.push(P),A.lastPushedText=!1,zc(g,E,v.node,v.childIndex,v.blockedBoundary,P,v.blockedPreamble,v.hoistableState,v.abortSet,v.keyPath,v.formatContext,v.context,v.treeContext,v.row,v.componentStack)}function Fn(g,v,E,A){var P=v.formatContext,G=v.context,Q=v.keyPath,wt=v.treeContext,rt=v.componentStack,St=v.blockedSegment;if(St===null){St=v.replay;try{return fr(g,v,E,A)}catch(Ft){if(La(),E=Ft===pi?Mo():Ft,g.status!==12&&typeof E=="object"&&E!==null){if(typeof E.then=="function"){A=Ft===pi?_o():null,g=ja(g,v,A).ping,E.then(g,g),v.formatContext=P,v.context=G,v.keyPath=Q,v.treeContext=wt,v.componentStack=rt,v.replay=St,bs(G);return}if(E.message==="Maximum call stack size exceeded"){E=Ft===pi?_o():null,E=ja(g,v,E),g.pingedTasks.push(E),v.formatContext=P,v.context=G,v.keyPath=Q,v.treeContext=wt,v.componentStack=rt,v.replay=St,bs(G);return}}}}else{var Pt=St.children.length,_t=St.chunks.length;try{return fr(g,v,E,A)}catch(Ft){if(La(),St.children.length=Pt,St.chunks.length=_t,E=Ft===pi?Mo():Ft,g.status!==12&&typeof E=="object"&&E!==null){if(typeof E.then=="function"){St=E,E=Ft===pi?_o():null,g=kl(g,v,E).ping,St.then(g,g),v.formatContext=P,v.context=G,v.keyPath=Q,v.treeContext=wt,v.componentStack=rt,bs(G);return}if(E.message==="Maximum call stack size exceeded"){St=Ft===pi?_o():null,St=kl(g,v,St),g.pingedTasks.push(St),v.formatContext=P,v.context=G,v.keyPath=Q,v.treeContext=wt,v.componentStack=rt,bs(G);return}}}}throw v.formatContext=P,v.context=G,v.keyPath=Q,v.treeContext=wt,bs(G),E}function Sd(g){var v=g.blockedBoundary,E=g.blockedSegment;E!==null&&(E.status=3,aa(this,v,g.row,E))}function Es(g,v,E,A,P,G){for(var Q=0;Q<E.length;Q++){var wt=E[Q];if(wt.length===4)Es(g,v,wt[2],wt[3],P,G);else{wt=wt[5];var rt=g,St=G,Pt=xd(rt,null,new Set,null,null);Pt.parentFlushed=!0,Pt.rootSegmentID=wt,Pt.status=4,Pt.errorDigest=St,Pt.parentFlushed&&rt.clientRenderedBoundaries.push(Pt)}}if(E.length=0,A!==null){if(v===null)throw Error(n(487));if(v.status!==4&&(v.status=4,v.errorDigest=G,v.parentFlushed&&g.clientRenderedBoundaries.push(v)),typeof A=="object")for(var _t in A)delete A[_t]}}function jc(g,v,E){var A=g.blockedBoundary,P=g.blockedSegment;if(P!==null){if(P.status===6)return;P.status=3}var G=ra(g.componentStack);if(A===null){if(v.status!==13&&v.status!==14){if(A=g.replay,A===null){v.trackedPostpones!==null&&P!==null?(A=v.trackedPostpones,Xn(v,E,G),sa(v,A,g,P),aa(v,null,g.row,P)):(Xn(v,E,G),Xr(v,E));return}A.pendingTasks--,A.pendingTasks===0&&0<A.nodes.length&&(P=Xn(v,E,G),Es(v,null,A.nodes,A.slots,E,P)),v.pendingRootTasks--,v.pendingRootTasks===0&&Uc(v)}}else{var Q=v.trackedPostpones;if(A.status!==4){if(Q!==null&&P!==null)return Xn(v,E,G),sa(v,Q,g,P),A.fallbackAbortableTasks.forEach(function(wt){return jc(wt,v,E)}),A.fallbackAbortableTasks.clear(),aa(v,A,g.row,P);A.status=4,P=Xn(v,E,G),A.status=4,A.errorDigest=P,Bc(v,A),A.parentFlushed&&v.clientRenderedBoundaries.push(A)}A.pendingTasks--,P=A.row,P!==null&&--P.pendingTasks===0&&tn(v,P),A.fallbackAbortableTasks.forEach(function(wt){return jc(wt,v,E)}),A.fallbackAbortableTasks.clear()}g=g.row,g!==null&&--g.pendingTasks===0&&tn(v,g),v.allPendingTasks--,v.allPendingTasks===0&&Vc(v)}function Fc(g,v){try{var E=g.renderState,A=E.onHeaders;if(A){var P=E.headers;if(P){E.headers=null;var G=P.preconnects;if(P.fontPreloads&&(G&&(G+=", "),G+=P.fontPreloads),P.highImagePreloads&&(G&&(G+=", "),G+=P.highImagePreloads),!v){var Q=E.styles.values(),wt=Q.next();t:for(;0<P.remainingCapacity&&!wt.done;wt=Q.next())for(var rt=wt.value.sheets.values(),St=rt.next();0<P.remainingCapacity&&!St.done;St=rt.next()){var Pt=St.value,_t=Pt.props,Ft=_t.href,qt=Pt.props,Se=on(qt.href,"style",{crossOrigin:qt.crossOrigin,integrity:qt.integrity,nonce:qt.nonce,type:qt.type,fetchPriority:qt.fetchPriority,referrerPolicy:qt.referrerPolicy,media:qt.media});if(0<=(P.remainingCapacity-=Se.length+2))E.resets.style[Ft]=bt,G&&(G+=", "),G+=Se,E.resets.style[Ft]=typeof _t.crossOrigin=="string"||typeof _t.integrity=="string"?[_t.crossOrigin,_t.integrity]:bt;else break t}}A(G?{Link:G}:{})}}}catch(ge){Xn(g,ge,{})}}function Uc(g){g.trackedPostpones===null&&Fc(g,!0),g.trackedPostpones===null&&zr(g),g.onShellError=Ni,g=g.onShellReady,g()}function Vc(g){Fc(g,g.trackedPostpones===null?!0:g.completedRootSegment===null||g.completedRootSegment.status!==5),zr(g),g=g.onAllReady,g()}function _l(g,v){if(v.chunks.length===0&&v.children.length===1&&v.children[0].boundary===null&&v.children[0].id===-1){var E=v.children[0];E.id=v.id,E.parentFlushed=!0,E.status!==1&&E.status!==3&&E.status!==4||_l(g,E)}else g.completedSegments.push(v)}function aa(g,v,E,A){if(E!==null&&(--E.pendingTasks===0?tn(g,E):E.together&&Dc(g,E)),g.allPendingTasks--,v===null){if(A!==null&&A.parentFlushed){if(g.completedRootSegment!==null)throw Error(n(389));g.completedRootSegment=A}g.pendingRootTasks--,g.pendingRootTasks===0&&Uc(g)}else if(v.pendingTasks--,v.status!==4)if(v.pendingTasks===0){if(v.status===0&&(v.status=1),A!==null&&A.parentFlushed&&(A.status===1||A.status===3)&&_l(v,A),v.parentFlushed&&g.completedBoundaries.push(v),v.status===1)E=v.row,E!==null&&ps(E.hoistables,v.contentState),zo(g,v)||(v.fallbackAbortableTasks.forEach(Sd,g),v.fallbackAbortableTasks.clear(),E!==null&&--E.pendingTasks===0&&tn(g,E)),g.pendingRootTasks===0&&g.trackedPostpones===null&&v.contentPreamble!==null&&zr(g);else if(v.status===5&&(v=v.row,v!==null)){if(g.trackedPostpones!==null){E=g.trackedPostpones;var P=v.next;if(P!==null&&(A=P.boundaries,A!==null))for(P.boundaries=null,P=0;P<A.length;P++){var G=A[P];Ts(g,E,G),aa(g,G,null,null)}}--v.pendingTasks===0&&tn(g,v)}}else A===null||!A.parentFlushed||A.status!==1&&A.status!==3||(_l(v,A),v.completedSegments.length===1&&v.parentFlushed&&g.partialBoundaries.push(v)),v=v.row,v!==null&&v.together&&Dc(g,v);g.allPendingTasks===0&&Vc(g)}function $h(g){if(g.status!==14&&g.status!==13){var v=_a,E=X.H;X.H=Qh;var A=X.A;X.A=zm;var P=ii;ii=g;var G=kc;kc=g.resumableState;try{var Q=g.pingedTasks,wt;for(wt=0;wt<Q.length;wt++){var rt=Q[wt],St=g,Pt=rt.blockedSegment;if(Pt===null){var _t=St;if(rt.replay.pendingTasks!==0){bs(rt.context);try{if(typeof rt.replay.slots=="number"?Lc(_t,rt,rt.replay.slots,rt.node,rt.childIndex):Ic(_t,rt),rt.replay.pendingTasks===1&&0<rt.replay.nodes.length)throw Error(n(488));rt.replay.pendingTasks--,rt.abortSet.delete(rt),aa(_t,rt.blockedBoundary,rt.row,null)}catch(nn){La();var Ft=nn===pi?Mo():nn;if(typeof Ft=="object"&&Ft!==null&&typeof Ft.then=="function"){var qt=rt.ping;Ft.then(qt,qt),rt.thenableState=nn===pi?_o():null}else{rt.replay.pendingTasks--,rt.abortSet.delete(rt);var Se=ra(rt.componentStack);St=void 0;var ge=_t,fe=rt.blockedBoundary,he=_t.status===12?_t.fatalError:Ft,ve=rt.replay.nodes,Ue=rt.replay.slots;St=Xn(ge,he,Se),Es(ge,fe,ve,Ue,he,St),_t.pendingRootTasks--,_t.pendingRootTasks===0&&Uc(_t),_t.allPendingTasks--,_t.allPendingTasks===0&&Vc(_t)}}finally{}}}else if(_t=void 0,ge=Pt,ge.status===0){ge.status=6,bs(rt.context);var fn=ge.children.length,Ee=ge.chunks.length;try{Ic(St,rt),vs(ge.chunks,St.renderState,ge.lastPushedText,ge.textEmbedded),rt.abortSet.delete(rt),ge.status=1,aa(St,rt.blockedBoundary,rt.row,ge)}catch(nn){La(),ge.children.length=fn,ge.chunks.length=Ee;var Me=nn===pi?Mo():St.status===12?St.fatalError:nn;if(St.status===12&&St.trackedPostpones!==null){var Ae=St.trackedPostpones,en=ra(rt.componentStack);rt.abortSet.delete(rt),Xn(St,Me,en),sa(St,Ae,rt,ge),aa(St,rt.blockedBoundary,rt.row,ge)}else if(typeof Me=="object"&&Me!==null&&typeof Me.then=="function"){ge.status=0,rt.thenableState=nn===pi?_o():null;var _e=rt.ping;Me.then(_e,_e)}else{var Mn=ra(rt.componentStack);rt.abortSet.delete(rt),ge.status=4;var Ve=rt.blockedBoundary,xn=rt.row;if(xn!==null&&--xn.pendingTasks===0&&tn(St,xn),St.allPendingTasks--,_t=Xn(St,Me,Mn),Ve===null)Xr(St,Me);else if(Ve.pendingTasks--,Ve.status!==4){Ve.status=4,Ve.errorDigest=_t,Bc(St,Ve);var ln=Ve.row;ln!==null&&--ln.pendingTasks===0&&tn(St,ln),Ve.parentFlushed&&St.clientRenderedBoundaries.push(Ve),St.pendingRootTasks===0&&St.trackedPostpones===null&&Ve.contentPreamble!==null&&zr(St)}St.allPendingTasks===0&&Vc(St)}}finally{}}}Q.splice(0,wt),g.destination!==null&&Po(g,g.destination)}catch(nn){Xn(g,nn,{}),Xr(g,nn)}finally{kc=G,X.H=E,X.A=A,E===Qh&&bs(v),ii=P}}}function Fa(g,v,E){v.preambleChildren.length&&E.push(v.preambleChildren);for(var A=!1,P=0;P<v.children.length;P++)A=ri(g,v.children[P],E)||A;return A}function ri(g,v,E){var A=v.boundary;if(A===null)return Fa(g,v,E);var P=A.contentPreamble,G=A.fallbackPreamble;if(P===null||G===null)return!1;switch(A.status){case 1:if(hs(g.renderState,P),g.byteSize+=A.byteSize,v=A.completedSegments[0],!v)throw Error(n(391));return Fa(g,v,E);case 5:if(g.trackedPostpones!==null)return!0;case 4:if(v.status===1)return hs(g.renderState,G),Fa(g,v,E);default:return!0}}function zr(g){if(g.completedRootSegment&&g.completedPreambleSegments===null){var v=[],E=g.byteSize,A=ri(g,g.completedRootSegment,v),P=g.renderState.preamble;A===!1||P.headChunks&&P.bodyChunks?g.completedPreambleSegments=v:g.byteSize=E}}function Ua(g,v,E,A){switch(E.parentFlushed=!0,E.status){case 0:E.id=g.nextSegmentId++;case 5:return A=E.id,E.lastPushedText=!1,E.textEmbedded=!1,g=g.renderState,v.push('<template id="'),v.push(g.placeholderPrefix),g=A.toString(16),v.push(g),v.push('"></template>');case 1:E.status=2;var P=!0,G=E.chunks,Q=0;E=E.children;for(var wt=0;wt<E.length;wt++){for(P=E[wt];Q<P.index;Q++)v.push(G[Q]);P=la(g,v,P,A)}for(;Q<G.length-1;Q++)v.push(G[Q]);return Q<G.length&&(P=v.push(G[Q])),P;case 3:return!0;default:throw Error(n(390))}}var oa=0;function la(g,v,E,A){var P=E.boundary;if(P===null)return Ua(g,v,E,A);if(P.parentFlushed=!0,P.status===4){var G=P.row;return G!==null&&--G.pendingTasks===0&&tn(g,G),g.renderState.generateStaticMarkup||(P=P.errorDigest,v.push("<!--$!-->"),v.push("<template"),P&&(v.push(' data-dgst="'),P=J(P),v.push(P),v.push('"')),v.push("></template>")),Ua(g,v,E,A),g=g.renderState.generateStaticMarkup?!0:v.push("<!--/$-->"),g}if(P.status!==1)return P.status===0&&(P.rootSegmentID=g.nextSegmentId++),0<P.completedSegments.length&&g.partialBoundaries.push(P),fs(v,g.renderState,P.rootSegmentID),A&&ps(A,P.fallbackState),Ua(g,v,E,A),v.push("<!--/$-->");if(!Qr&&zo(g,P)&&oa+P.byteSize>g.progressiveChunkSize)return P.rootSegmentID=g.nextSegmentId++,g.completedBoundaries.push(P),fs(v,g.renderState,P.rootSegmentID),Ua(g,v,E,A),v.push("<!--/$-->");if(oa+=P.byteSize,A&&ps(A,P.contentState),E=P.row,E!==null&&zo(g,P)&&--E.pendingTasks===0&&tn(g,E),g.renderState.generateStaticMarkup||v.push("<!--$-->"),E=P.completedSegments,E.length!==1)throw Error(n(391));return la(g,v,E[0],A),g=g.renderState.generateStaticMarkup?!0:v.push("<!--/$-->"),g}function Hc(g,v,E,A){return _r(v,g.renderState,E.parentFormatContext,E.id),la(g,v,E,A),md(v,E.parentFormatContext)}function Gc(g,v,E){oa=E.byteSize;for(var A=E.completedSegments,P=0;P<A.length;P++)Va(g,v,E,A[P]);A.length=0,A=E.row,A!==null&&zo(g,E)&&--A.pendingTasks===0&&tn(g,A),pl(v,E.contentState,g.renderState),A=g.resumableState,g=g.renderState,P=E.rootSegmentID,E=E.contentState;var G=g.stylesToHoist;return g.stylesToHoist=!1,v.push(g.startInlineScript),v.push(">"),G?((A.instructions&4)===0&&(A.instructions|=4,v.push('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};')),(A.instructions&2)===0&&(A.instructions|=2,v.push(`$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
|
|
86
|
+
$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`)),(A.instructions&8)===0?(A.instructions|=8,v.push(`$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=
|
|
87
|
+
"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=
|
|
88
|
+
"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("`)):v.push('$RR("')):((A.instructions&2)===0&&(A.instructions|=2,v.push(`$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
|
|
89
|
+
$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`)),v.push('$RC("')),A=P.toString(16),v.push(g.boundaryPrefix),v.push(A),v.push('","'),v.push(g.segmentPrefix),v.push(A),G?(v.push('",'),Gh(v,E)):v.push('"'),E=v.push(")<\/script>"),Ea(v,g)&&E}function Va(g,v,E,A){if(A.status===2)return!0;var P=E.contentState,G=A.id;if(G===-1){if((A.id=E.rootSegmentID)===-1)throw Error(n(392));return Hc(g,v,A,P)}return G===E.rootSegmentID?Hc(g,v,A,P):(Hc(g,v,A,P),E=g.resumableState,g=g.renderState,v.push(g.startInlineScript),v.push(">"),(E.instructions&1)===0?(E.instructions|=1,v.push('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')):v.push('$RS("'),v.push(g.segmentPrefix),G=G.toString(16),v.push(G),v.push('","'),v.push(g.placeholderPrefix),v.push(G),v=v.push('")<\/script>'),v)}var Qr=!1;function Po(g,v){try{if(!(0<g.pendingRootTasks)){var E,A=g.completedRootSegment;if(A!==null){if(A.status===5)return;var P=g.completedPreambleSegments;if(P===null)return;oa=g.byteSize;var G=g.resumableState,Q=g.renderState,wt=Q.preamble,rt=wt.htmlChunks,St=wt.headChunks,Pt;if(rt){for(Pt=0;Pt<rt.length;Pt++)v.push(rt[Pt]);if(St)for(Pt=0;Pt<St.length;Pt++)v.push(St[Pt]);else{var _t=yn("head");v.push(_t),v.push(">")}}else if(St)for(Pt=0;Pt<St.length;Pt++)v.push(St[Pt]);var Ft=Q.charsetChunks;for(Pt=0;Pt<Ft.length;Pt++)v.push(Ft[Pt]);Ft.length=0,Q.preconnects.forEach(Wi,v),Q.preconnects.clear();var qt=Q.viewportChunks;for(Pt=0;Pt<qt.length;Pt++)v.push(qt[Pt]);qt.length=0,Q.fontPreloads.forEach(Wi,v),Q.fontPreloads.clear(),Q.highImagePreloads.forEach(Wi,v),Q.highImagePreloads.clear(),zt=Q,Q.styles.forEach(ki,v),zt=null;var Se=Q.importMapChunks;for(Pt=0;Pt<Se.length;Pt++)v.push(Se[Pt]);Se.length=0,Q.bootstrapScripts.forEach(Wi,v),Q.scripts.forEach(Wi,v),Q.scripts.clear(),Q.bulkPreloads.forEach(Wi,v),Q.bulkPreloads.clear(),G.instructions|=32;var ge=Q.hoistableChunks;for(Pt=0;Pt<ge.length;Pt++)v.push(ge[Pt]);for(G=ge.length=0;G<P.length;G++){var fe=P[G];for(Q=0;Q<fe.length;Q++)la(g,v,fe[Q],null)}var he=g.renderState.preamble,ve=he.headChunks;if(he.htmlChunks||ve){var Ue=kr("head");v.push(Ue)}var fn=he.bodyChunks;if(fn)for(P=0;P<fn.length;P++)v.push(fn[P]);la(g,v,A,null),g.completedRootSegment=null;var Ee=g.renderState;if(g.allPendingTasks!==0||g.clientRenderedBoundaries.length!==0||g.completedBoundaries.length!==0||g.trackedPostpones!==null&&(g.trackedPostpones.rootNodes.length!==0||g.trackedPostpones.rootSlots!==null)){var Me=g.resumableState;if((Me.instructions&64)===0){if(Me.instructions|=64,v.push(Ee.startInlineScript),(Me.instructions&32)===0){Me.instructions|=32;var Ae="_"+Me.idPrefix+"R_";v.push(' id="');var en=J(Ae);v.push(en),v.push('"')}v.push(">"),v.push("requestAnimationFrame(function(){$RT=performance.now()});"),v.push("<\/script>")}}Ea(v,Ee)}var _e=g.renderState;A=0;var Mn=_e.viewportChunks;for(A=0;A<Mn.length;A++)v.push(Mn[A]);Mn.length=0,_e.preconnects.forEach(Wi,v),_e.preconnects.clear(),_e.fontPreloads.forEach(Wi,v),_e.fontPreloads.clear(),_e.highImagePreloads.forEach(Wi,v),_e.highImagePreloads.clear(),_e.styles.forEach(Cc,v),_e.scripts.forEach(Wi,v),_e.scripts.clear(),_e.bulkPreloads.forEach(Wi,v),_e.bulkPreloads.clear();var Ve=_e.hoistableChunks;for(A=0;A<Ve.length;A++)v.push(Ve[A]);Ve.length=0;var xn=g.clientRenderedBoundaries;for(E=0;E<xn.length;E++){var ln=xn[E];_e=v;var nn=g.resumableState,yi=g.renderState,Rs=ln.rootSegmentID,Ki=ln.errorDigest;_e.push(yi.startInlineScript),_e.push(">"),(nn.instructions&4)===0?(nn.instructions|=4,_e.push('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("')):_e.push('$RX("'),_e.push(yi.boundaryPrefix);var bi=Rs.toString(16);if(_e.push(bi),_e.push('"'),Ki){_e.push(",");var Or=gl(Ki||"");_e.push(Or)}var Rn=_e.push(")<\/script>");if(!Rn){g.destination=null,E++,xn.splice(0,E);return}}xn.splice(0,E);var Di=g.completedBoundaries;for(E=0;E<Di.length;E++)if(!Gc(g,v,Di[E])){g.destination=null,E++,Di.splice(0,E);return}Di.splice(0,E),Qr=!0;var Oi=g.partialBoundaries;for(E=0;E<Oi.length;E++){var Cn=Oi[E];t:{xn=g,ln=v,oa=Cn.byteSize;var Dn=Cn.completedSegments;for(Rn=0;Rn<Dn.length;Rn++)if(!Va(xn,ln,Cn,Dn[Rn])){Rn++,Dn.splice(0,Rn);var Pi=!1;break t}Dn.splice(0,Rn);var Je=Cn.row;Je!==null&&Je.together&&Cn.pendingTasks===1&&(Je.pendingTasks===1?Nr(xn,Je,Je.hoistables):Je.pendingTasks--),Pi=pl(ln,Cn.contentState,xn.renderState)}if(!Pi){g.destination=null,E++,Oi.splice(0,E);return}}Oi.splice(0,E),Qr=!1;var xi=g.completedBoundaries;for(E=0;E<xi.length;E++)if(!Gc(g,v,xi[E])){g.destination=null,E++,xi.splice(0,E);return}xi.splice(0,E)}}finally{Qr=!1,g.allPendingTasks===0&&g.clientRenderedBoundaries.length===0&&g.completedBoundaries.length===0&&(g.flushScheduled=!1,E=g.resumableState,E.hasBody&&(Oi=kr("body"),v.push(Oi)),E.hasHtml&&(E=kr("html"),v.push(E)),g.status=14,v.push(null),g.destination=null)}}function Dr(g){if(g.flushScheduled===!1&&g.pingedTasks.length===0&&g.destination!==null){g.flushScheduled=!0;var v=g.destination;v?Po(g,v):g.flushScheduled=!1}}function Lo(g,v){if(g.status===13)g.status=14,v.destroy(g.fatalError);else if(g.status!==14&&g.destination===null){g.destination=v;try{Po(g,v)}catch(E){Xn(g,E,{}),Xr(g,E)}}}function Cd(g,v){(g.status===11||g.status===10)&&(g.status=12);try{var E=g.abortableTasks;if(0<E.size){var A=v===void 0?Error(n(432)):typeof v=="object"&&v!==null&&typeof v.then=="function"?Error(n(530)):v;g.fatalError=A,E.forEach(function(P){return jc(P,g,A)}),E.clear()}g.destination!==null&&Po(g,g.destination)}catch(P){Xn(g,P,{}),Xr(g,P)}}function vi(g,v,E){if(v===null)E.rootNodes.push(g);else{var A=E.workingMap,P=A.get(v);P===void 0&&(P=[v[1],v[2],[],null],A.set(v,P),vi(P,v[0],E)),P[2].push(g)}}function Ms(){}function Al(g,v,E,A){var P=!1,G=null,Q="",wt=!1;if(v=Yt(v?v.identifierPrefix:void 0),g=Jh(g,v,dr(v,E),Qt(0,null,0,null),1/0,Ms,void 0,function(){wt=!0},void 0,void 0,void 0),g.flushScheduled=g.destination!==null,$h(g),g.status===10&&(g.status=11),g.trackedPostpones===null&&Fc(g,g.pendingRootTasks===0),Cd(g,A),Lo(g,{push:function(rt){return rt!==null&&(Q+=rt),!0},destroy:function(rt){P=!0,G=rt}}),P&&G!==A)throw G;if(!wt)throw Error(n(426));return Q}return jf.renderToStaticMarkup=function(g,v){return Al(g,v,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},jf.renderToString=function(g,v){return Al(g,v,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},jf.version="19.2.7",jf}var Fu={};/**
|
|
90
|
+
* @license React
|
|
91
|
+
* react-dom-server.browser.production.js
|
|
92
|
+
*
|
|
93
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
94
|
+
*
|
|
95
|
+
* This source code is licensed under the MIT license found in the
|
|
96
|
+
* LICENSE file in the root directory of this source tree.
|
|
97
|
+
*/var QS;function VO(){if(QS)return Fu;QS=1;var e=Qd(),t=xg();function n(f){var p="https://react.dev/errors/"+f;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var C=2;C<arguments.length;C++)p+="&args[]="+encodeURIComponent(arguments[C])}return"Minified React error #"+f+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),m=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),N=Symbol.for("react.scope"),z=Symbol.for("react.activity"),L=Symbol.for("react.legacy_hidden"),I=Symbol.for("react.memo_cache_sentinel"),F=Symbol.for("react.view_transition"),B=Symbol.iterator;function Y(f){return f===null||typeof f!="object"?null:(f=B&&f[B]||f["@@iterator"],typeof f=="function"?f:null)}var Z=Array.isArray;function et(f,p){var C=f.length&3,_=f.length-C,D=p;for(p=0;p<_;){var V=f.charCodeAt(p)&255|(f.charCodeAt(++p)&255)<<8|(f.charCodeAt(++p)&255)<<16|(f.charCodeAt(++p)&255)<<24;++p,V=3432918353*(V&65535)+((3432918353*(V>>>16)&65535)<<16)&4294967295,V=V<<15|V>>>17,V=461845907*(V&65535)+((461845907*(V>>>16)&65535)<<16)&4294967295,D^=V,D=D<<13|D>>>19,D=5*(D&65535)+((5*(D>>>16)&65535)<<16)&4294967295,D=(D&65535)+27492+(((D>>>16)+58964&65535)<<16)}switch(V=0,C){case 3:V^=(f.charCodeAt(p+2)&255)<<16;case 2:V^=(f.charCodeAt(p+1)&255)<<8;case 1:V^=f.charCodeAt(p)&255,V=3432918353*(V&65535)+((3432918353*(V>>>16)&65535)<<16)&4294967295,V=V<<15|V>>>17,D^=461845907*(V&65535)+((461845907*(V>>>16)&65535)<<16)&4294967295}return D^=f.length,D^=D>>>16,D=2246822507*(D&65535)+((2246822507*(D>>>16)&65535)<<16)&4294967295,D^=D>>>13,D=3266489909*(D&65535)+((3266489909*(D>>>16)&65535)<<16)&4294967295,(D^D>>>16)>>>0}var q=new MessageChannel,nt=[];q.port1.onmessage=function(){var f=nt.shift();f&&f()};function ot(f){nt.push(f),q.port2.postMessage(null)}function Ct(f){setTimeout(function(){throw f})}var ct=Promise,mt=typeof queueMicrotask=="function"?queueMicrotask:function(f){ct.resolve(null).then(f).catch(Ct)},Rt=null,ut=0;function j(f,p){if(p.byteLength!==0)if(2048<p.byteLength)0<ut&&(f.enqueue(new Uint8Array(Rt.buffer,0,ut)),Rt=new Uint8Array(2048),ut=0),f.enqueue(p);else{var C=Rt.length-ut;C<p.byteLength&&(C===0?f.enqueue(Rt):(Rt.set(p.subarray(0,C),ut),f.enqueue(Rt),p=p.subarray(C)),Rt=new Uint8Array(2048),ut=0),Rt.set(p,ut),ut+=p.byteLength}}function J(f,p){return j(f,p),!0}function ht(f){Rt&&0<ut&&(f.enqueue(new Uint8Array(Rt.buffer,0,ut)),Rt=null,ut=0)}var Tt=new TextEncoder;function K(f){return Tt.encode(f)}function U(f){return Tt.encode(f)}function X(f){return f.byteLength}function ft(f,p){typeof f.error=="function"?f.error(p):f.close()}var yt=Object.assign,tt=Object.prototype.hasOwnProperty,bt=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),zt={},Dt={};function Mt(f){return tt.call(Dt,f)?!0:tt.call(zt,f)?!1:bt.test(f)?Dt[f]=!0:(zt[f]=!0,!1)}var Yt=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),Qt=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ne=/["'&<>]/;function Ut(f){if(typeof f=="boolean"||typeof f=="number"||typeof f=="bigint")return""+f;f=""+f;var p=ne.exec(f);if(p){var C="",_,D=0;for(_=p.index;_<f.length;_++){switch(f.charCodeAt(_)){case 34:p=""";break;case 38:p="&";break;case 39:p="'";break;case 60:p="<";break;case 62:p=">";break;default:continue}D!==_&&(C+=f.slice(D,_)),D=_+1,C+=p}f=D!==_?C+f.slice(D,_):C}return f}var Ce=/([A-Z])/g,Ht=/^ms-/,ee=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function re(f){return ee.test(""+f)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":f}var we=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Le=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Mr={pending:!1,data:null,method:null,action:null},Hn=Le.d;Le.d={f:Hn.f,r:Hn.r,D:jc,C:Fc,L:Uc,m:Vc,X:aa,S:_l,M:$h};var Nn=[],ds=null;U('"></template>');var Vt=U("<script"),Xt=U("<\/script>"),de=U('<script src="'),Gi=U('<script type="module" src="'),Rr=U(' nonce="'),Bn=U(' integrity="'),xc=U(' crossorigin="'),hd=U(' async=""><\/script>'),vo=U("<style"),$s=/(<\/|<)(s)(cript)/gi;function Gn(f,p,C,_){return""+p+(C==="s"?"\\u0073":"\\u0053")+_}var Wr=U('<script type="importmap">'),gi=U("<\/script>");function wc(f,p,C,_,D,V){C=typeof p=="string"?p:p&&p.script;var W=C===void 0?Vt:U('<script nonce="'+Ut(C)+'"'),at=typeof p=="string"?void 0:p&&p.style,$=at===void 0?vo:U('<style nonce="'+Ut(at)+'"'),lt=f.idPrefix,vt=[],Et=f.bootstrapScriptContent,Bt=f.bootstrapScripts,jt=f.bootstrapModules;if(Et!==void 0&&(vt.push(W),Ts(vt,f),vt.push(Ye,K((""+Et).replace($s,Gn)),Xt)),Et=[],_!==void 0&&(Et.push(Wr),Et.push(K((""+JSON.stringify(_)).replace($s,Gn))),Et.push(gi)),_=D?{preconnects:"",fontPreloads:"",highImagePreloads:"",remainingCapacity:2+(typeof V=="number"?V:2e3)}:null,D={placeholderPrefix:U(lt+"P:"),segmentPrefix:U(lt+"S:"),boundaryPrefix:U(lt+"B:"),startInlineScript:W,startInlineStyle:$,preamble:yn(),externalRuntimeScript:null,bootstrapChunks:vt,importMapChunks:Et,onHeaders:D,headers:_,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:{script:C,style:at},hoistableState:null,stylesToHoist:!1},Bt!==void 0)for(_=0;_<Bt.length;_++)lt=Bt[_],at=W=void 0,$={rel:"preload",as:"script",fetchPriority:"low",nonce:p},typeof lt=="string"?$.href=V=lt:($.href=V=lt.src,$.integrity=at=typeof lt.integrity=="string"?lt.integrity:void 0,$.crossOrigin=W=typeof lt=="string"||lt.crossOrigin==null?void 0:lt.crossOrigin==="use-credentials"?"use-credentials":""),lt=f,Et=V,lt.scriptResources[Et]=null,lt.moduleScriptResources[Et]=null,lt=[],on(lt,$),D.bootstrapScripts.add(lt),vt.push(de,K(Ut(V)),an),C&&vt.push(Rr,K(Ut(C)),an),typeof at=="string"&&vt.push(Bn,K(Ut(at)),an),typeof W=="string"&&vt.push(xc,K(Ut(W)),an),Ts(vt,f),vt.push(hd);if(jt!==void 0)for(p=0;p<jt.length;p++)at=jt[p],V=_=void 0,W={rel:"modulepreload",fetchPriority:"low",nonce:C},typeof at=="string"?W.href=Bt=at:(W.href=Bt=at.src,W.integrity=V=typeof at.integrity=="string"?at.integrity:void 0,W.crossOrigin=_=typeof at=="string"||at.crossOrigin==null?void 0:at.crossOrigin==="use-credentials"?"use-credentials":""),at=f,$=Bt,at.scriptResources[$]=null,at.moduleScriptResources[$]=null,at=[],on(at,W),D.bootstrapScripts.add(at),vt.push(Gi,K(Ut(Bt)),an),C&&vt.push(Rr,K(Ut(C)),an),typeof V=="string"&&vt.push(Bn,K(Ut(V)),an),typeof _=="string"&&vt.push(xc,K(Ut(_)),an),Ts(vt,f),vt.push(hd);return D}function fd(f,p,C,_,D){return{idPrefix:f===void 0?"":f,nextFormID:0,streamingFormat:0,bootstrapScriptContent:C,bootstrapScripts:_,bootstrapModules:D,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function yn(){return{htmlChunks:null,headChunks:null,bodyChunks:null}}function zn(f,p,C,_){return{insertionMode:f,selectedValue:p,tagScope:C,viewTransition:_}}function yo(f){return zn(f==="http://www.w3.org/2000/svg"?4:f==="http://www.w3.org/1998/Math/MathML"?5:0,null,0,null)}function kr(f,p,C){var _=f.tagScope&-25;switch(p){case"noscript":return zn(2,null,_|1,null);case"select":return zn(2,C.value!=null?C.value:C.defaultValue,_,null);case"svg":return zn(4,null,_,null);case"picture":return zn(2,null,_|2,null);case"math":return zn(5,null,_,null);case"foreignObject":return zn(2,null,_,null);case"table":return zn(6,null,_,null);case"thead":case"tbody":case"tfoot":return zn(7,null,_,null);case"colgroup":return zn(9,null,_,null);case"tr":return zn(8,null,_,null);case"head":if(2>f.insertionMode)return zn(3,null,_,null);break;case"html":if(f.insertionMode===0)return zn(1,null,_,null)}return 6<=f.insertionMode||2>f.insertionMode?zn(2,null,_,null):f.tagScope!==_?zn(f.insertionMode,f.selectedValue,_,null):f}function hs(f){return f===null?null:{update:f.update,enter:"none",exit:"none",share:f.update,name:f.autoName,autoName:f.autoName,nameIdx:0}}function Ea(f,p){return p.tagScope&32&&(f.instructions|=128),zn(p.insertionMode,p.selectedValue,p.tagScope|12,hs(p.viewTransition))}function fs(f,p){f=hs(p.viewTransition);var C=p.tagScope|16;return f!==null&&f.share!=="none"&&(C|=64),zn(p.insertionMode,p.selectedValue,C,f)}var _r=U("<!-- -->");function md(f,p,C,_){return p===""?_:(_&&f.push(_r),f.push(K(Ut(p))),!0)}var Sc=new Map,gl=U(' style="'),Hh=U(":"),bo=U(";");function xo(f,p){if(typeof p!="object")throw Error(n(62));var C=!0,_;for(_ in p)if(tt.call(p,_)){var D=p[_];if(D!=null&&typeof D!="boolean"&&D!==""){if(_.indexOf("--")===0){var V=K(Ut(_));D=K(Ut((""+D).trim()))}else V=Sc.get(_),V===void 0&&(V=U(Ut(_.replace(Ce,"-$1").toLowerCase().replace(Ht,"-ms-"))),Sc.set(_,V)),D=typeof D=="number"?D===0||Yt.has(_)?K(""+D):K(D+"px"):K(Ut((""+D).trim()));C?(C=!1,f.push(gl,V,Hh,D)):f.push(bo,V,Hh,D)}}C||f.push(an)}var Yn=U(" "),Yi=U('="'),an=U('"'),pl=U('=""');function Wi(f,p,C){C&&typeof C!="function"&&typeof C!="symbol"&&f.push(Yn,K(p),pl)}function je(f,p,C){typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&f.push(Yn,K(p),Yi,K(Ut(C)),an)}var Wn=U(Ut("javascript:throw new Error('React form unexpectedly submitted.')")),ki=U('<input type="hidden"');function ta(f,p){this.push(ki),Cc(f),je(this,"name",p),je(this,"value",f),this.push(Ma)}function Cc(f){if(typeof f!="string")throw Error(n(480))}function vl(f,p){if(typeof p.$$FORM_ACTION=="function"){var C=f.nextFormID++;f=f.idPrefix+C;try{var _=p.$$FORM_ACTION(f);if(_){var D=_.data;D!=null&&D.forEach(Cc)}return _}catch(V){if(typeof V=="object"&&V!==null&&typeof V.then=="function")throw V}}return null}function Gh(f,p,C,_,D,V,W,at){var $=null;if(typeof _=="function"){var lt=vl(p,_);lt!==null?(at=lt.name,_=lt.action||"",D=lt.encType,V=lt.method,W=lt.target,$=lt.data):(f.push(Yn,K("formAction"),Yi,Wn,an),W=V=D=_=at=null,jn(p,C))}return at!=null&&Fe(f,"name",at),_!=null&&Fe(f,"formAction",_),D!=null&&Fe(f,"formEncType",D),V!=null&&Fe(f,"formMethod",V),W!=null&&Fe(f,"formTarget",W),$}function Fe(f,p,C){switch(p){case"className":je(f,"class",C);break;case"tabIndex":je(f,"tabindex",C);break;case"dir":case"role":case"viewBox":case"width":case"height":je(f,p,C);break;case"style":xo(f,C);break;case"src":case"href":if(C==="")break;case"action":case"formAction":if(C==null||typeof C=="function"||typeof C=="symbol"||typeof C=="boolean")break;C=re(""+C),f.push(Yn,K(p),Yi,K(Ut(C)),an);break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":Wi(f,p.toLowerCase(),C);break;case"xlinkHref":if(typeof C=="function"||typeof C=="symbol"||typeof C=="boolean")break;C=re(""+C),f.push(Yn,K("xlink:href"),Yi,K(Ut(C)),an);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":typeof C!="function"&&typeof C!="symbol"&&f.push(Yn,K(p),Yi,K(Ut(C)),an);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":C&&typeof C!="function"&&typeof C!="symbol"&&f.push(Yn,K(p),pl);break;case"capture":case"download":C===!0?f.push(Yn,K(p),pl):C!==!1&&typeof C!="function"&&typeof C!="symbol"&&f.push(Yn,K(p),Yi,K(Ut(C)),an);break;case"cols":case"rows":case"size":case"span":typeof C!="function"&&typeof C!="symbol"&&!isNaN(C)&&1<=C&&f.push(Yn,K(p),Yi,K(Ut(C)),an);break;case"rowSpan":case"start":typeof C=="function"||typeof C=="symbol"||isNaN(C)||f.push(Yn,K(p),Yi,K(Ut(C)),an);break;case"xlinkActuate":je(f,"xlink:actuate",C);break;case"xlinkArcrole":je(f,"xlink:arcrole",C);break;case"xlinkRole":je(f,"xlink:role",C);break;case"xlinkShow":je(f,"xlink:show",C);break;case"xlinkTitle":je(f,"xlink:title",C);break;case"xlinkType":je(f,"xlink:type",C);break;case"xmlBase":je(f,"xml:base",C);break;case"xmlLang":je(f,"xml:lang",C);break;case"xmlSpace":je(f,"xml:space",C);break;default:if((!(2<p.length)||p[0]!=="o"&&p[0]!=="O"||p[1]!=="n"&&p[1]!=="N")&&(p=Qt.get(p)||p,Mt(p))){switch(typeof C){case"function":case"symbol":return;case"boolean":var _=p.toLowerCase().slice(0,5);if(_!=="data-"&&_!=="aria-")return}f.push(Yn,K(p),Yi,K(Ut(C)),an)}}}var Ye=U(">"),Ma=U("/>");function Kn(f,p,C){if(p!=null){if(C!=null)throw Error(n(60));if(typeof p!="object"||!("__html"in p))throw Error(n(61));p=p.__html,p!=null&&f.push(K(""+p))}}function wo(f){var p="";return e.Children.forEach(f,function(C){C!=null&&(p+=C)}),p}var Ra=U(' selected=""'),ka=U(`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`);function jn(f,p){if((f.instructions&16)===0){f.instructions|=16;var C=p.preamble,_=p.bootstrapChunks;(C.htmlChunks||C.headChunks)&&_.length===0?(_.push(p.startInlineScript),Ts(_,f),_.push(Ye,ka,Xt)):_.unshift(p.startInlineScript,Ye,ka,Xt)}}var Yh=U("<!--F!-->"),So=U("<!--F-->");function on(f,p){f.push(bn("link"));for(var C in p)if(tt.call(p,C)){var _=p[C];if(_!=null)switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,"link"));default:Fe(f,C,_)}}return f.push(Ma),null}var ms=/(<\/|<)(s)(tyle)/gi;function Tc(f,p,C,_){return""+p+(C==="s"?"\\73 ":"\\53 ")+_}function gs(f,p,C){f.push(bn(C));for(var _ in p)if(tt.call(p,_)){var D=p[_];if(D!=null)switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,C));default:Fe(f,_,D)}}return f.push(Ma),null}function yl(f,p){f.push(bn("title"));var C=null,_=null,D;for(D in p)if(tt.call(p,D)){var V=p[D];if(V!=null)switch(D){case"children":C=V;break;case"dangerouslySetInnerHTML":_=V;break;default:Fe(f,D,V)}}return f.push(Ye),p=Array.isArray(C)?2>C.length?C[0]:null:C,typeof p!="function"&&typeof p!="symbol"&&p!==null&&p!==void 0&&f.push(K(Ut(""+p))),Kn(f,_,C),f.push(ys("title")),null}var Mm=U("<!--head-->"),Ec=U("<!--body-->"),ps=U("<!--html-->");function dr(f,p){f.push(bn("script"));var C=null,_=null,D;for(D in p)if(tt.call(p,D)){var V=p[D];if(V!=null)switch(D){case"children":C=V;break;case"dangerouslySetInnerHTML":_=V;break;default:Fe(f,D,V)}}return f.push(Ye),Kn(f,_,C),typeof C=="string"&&f.push(K((""+C).replace($s,Gn))),f.push(ys("script")),null}function _i(f,p,C){f.push(bn(C));var _=C=null,D;for(D in p)if(tt.call(p,D)){var V=p[D];if(V!=null)switch(D){case"children":C=V;break;case"dangerouslySetInnerHTML":_=V;break;default:Fe(f,D,V)}}return f.push(Ye),Kn(f,_,C),C}function vs(f,p,C){f.push(bn(C));var _=C=null,D;for(D in p)if(tt.call(p,D)){var V=p[D];if(V!=null)switch(D){case"children":C=V;break;case"dangerouslySetInnerHTML":_=V;break;default:Fe(f,D,V)}}return f.push(Ye),Kn(f,_,C),typeof C=="string"?(f.push(K(Ut(C))),null):C}var gd=U(`
|
|
98
|
+
`),pd=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Co=new Map;function bn(f){var p=Co.get(f);if(p===void 0){if(!pd.test(f))throw Error(n(65,f));p=U("<"+f),Co.set(f,p)}return p}var _a=U("<!DOCTYPE html>");function Ai(f,p,C,_,D,V,W,at,$){switch(p){case"div":case"span":case"svg":case"path":break;case"a":f.push(bn("a"));var lt=null,vt=null,Et;for(Et in C)if(tt.call(C,Et)){var Bt=C[Et];if(Bt!=null)switch(Et){case"children":lt=Bt;break;case"dangerouslySetInnerHTML":vt=Bt;break;case"href":Bt===""?je(f,"href",""):Fe(f,Et,Bt);break;default:Fe(f,Et,Bt)}}if(f.push(Ye),Kn(f,vt,lt),typeof lt=="string"){f.push(K(Ut(lt)));var jt=null}else jt=lt;return jt;case"g":case"p":case"li":break;case"select":f.push(bn("select"));var se=null,ye=null,me;for(me in C)if(tt.call(C,me)){var Wt=C[me];if(Wt!=null)switch(me){case"children":se=Wt;break;case"dangerouslySetInnerHTML":ye=Wt;break;case"defaultValue":case"value":break;default:Fe(f,me,Wt)}}return f.push(Ye),Kn(f,ye,se),se;case"option":var ae=at.selectedValue;f.push(bn("option"));var Re=null,oi=null,li=null,oe=null,Un;for(Un in C)if(tt.call(C,Un)){var sn=C[Un];if(sn!=null)switch(Un){case"children":Re=sn;break;case"selected":li=sn;break;case"dangerouslySetInnerHTML":oe=sn;break;case"value":oi=sn;default:Fe(f,Un,sn)}}if(ae!=null){var Pn=oi!==null?""+oi:wo(Re);if(Z(ae)){for(var Os=0;Os<ae.length;Os++)if(""+ae[Os]===Pn){f.push(Ra);break}}else""+ae===Pn&&f.push(Ra)}else li&&f.push(Ra);return f.push(Ye),Kn(f,oe,Re),Re;case"textarea":f.push(bn("textarea"));var pe=null,ts=null,yr=null,Zn;for(Zn in C)if(tt.call(C,Zn)){var or=C[Zn];if(or!=null)switch(Zn){case"children":yr=or;break;case"value":pe=or;break;case"defaultValue":ts=or;break;case"dangerouslySetInnerHTML":throw Error(n(91));default:Fe(f,Zn,or)}}if(pe===null&&ts!==null&&(pe=ts),f.push(Ye),yr!=null){if(pe!=null)throw Error(n(92));if(Z(yr)){if(1<yr.length)throw Error(n(93));pe=""+yr[0]}pe=""+yr}return typeof pe=="string"&&pe[0]===`
|
|
99
|
+
`&&f.push(gd),pe!==null&&f.push(K(Ut(""+pe))),null;case"input":f.push(bn("input"));var Pl=null,Qa=null,Ps=null,Za=null,ci=null,Xe=null,Ls=null,Ll=null,$c=null,Il;for(Il in C)if(tt.call(C,Il)){var ui=C[Il];if(ui!=null)switch(Il){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,"input"));case"name":Pl=ui;break;case"formAction":Qa=ui;break;case"formEncType":Ps=ui;break;case"formMethod":Za=ui;break;case"formTarget":ci=ui;break;case"defaultChecked":$c=ui;break;case"defaultValue":Ls=ui;break;case"checked":Ll=ui;break;case"value":Xe=ui;break;default:Fe(f,Il,ui)}}var Ed=Gh(f,_,D,Qa,Ps,Za,ci,Pl);return Ll!==null?Wi(f,"checked",Ll):$c!==null&&Wi(f,"checked",$c),Xe!==null?Fe(f,"value",Xe):Ls!==null&&Fe(f,"value",Ls),f.push(Ma),Ed!=null&&Ed.forEach(ta,f),null;case"button":f.push(bn("button"));var Bl=null,tf=null,Pm=null,Lm=null,Im=null,Bm=null,jm=null,tu;for(tu in C)if(tt.call(C,tu)){var Is=C[tu];if(Is!=null)switch(tu){case"children":Bl=Is;break;case"dangerouslySetInnerHTML":tf=Is;break;case"name":Pm=Is;break;case"formAction":Lm=Is;break;case"formEncType":Im=Is;break;case"formMethod":Bm=Is;break;case"formTarget":jm=Is;break;default:Fe(f,tu,Is)}}var Fm=Gh(f,_,D,Lm,Im,Bm,jm,Pm);if(f.push(Ye),Fm!=null&&Fm.forEach(ta,f),Kn(f,tf,Bl),typeof Bl=="string"){f.push(K(Ut(Bl)));var Dv=null}else Dv=Bl;return Dv;case"form":f.push(bn("form"));var eu=null,Um=null,Yo=null,jl=null,nu=null,iu=null,ru;for(ru in C)if(tt.call(C,ru)){var Ja=C[ru];if(Ja!=null)switch(ru){case"children":eu=Ja;break;case"dangerouslySetInnerHTML":Um=Ja;break;case"action":Yo=Ja;break;case"encType":jl=Ja;break;case"method":nu=Ja;break;case"target":iu=Ja;break;default:Fe(f,ru,Ja)}}var ef=null,Vm=null;if(typeof Yo=="function"){var Wo=vl(_,Yo);Wo!==null?(Yo=Wo.action||"",jl=Wo.encType,nu=Wo.method,iu=Wo.target,ef=Wo.data,Vm=Wo.name):(f.push(Yn,K("action"),Yi,Wn,an),iu=nu=jl=Yo=null,jn(_,D))}if(Yo!=null&&Fe(f,"action",Yo),jl!=null&&Fe(f,"encType",jl),nu!=null&&Fe(f,"method",nu),iu!=null&&Fe(f,"target",iu),f.push(Ye),Vm!==null&&(f.push(ki),je(f,"name",Vm),f.push(Ma),ef!=null&&ef.forEach(ta,f)),Kn(f,Um,eu),typeof eu=="string"){f.push(K(Ut(eu)));var Fl=null}else Fl=eu;return Fl;case"menuitem":f.push(bn("menuitem"));for(var Md in C)if(tt.call(C,Md)){var Rd=C[Md];if(Rd!=null)switch(Md){case"children":case"dangerouslySetInnerHTML":throw Error(n(400));default:Fe(f,Md,Rd)}}return f.push(Ye),null;case"object":f.push(bn("object"));var Ko=null,Hm=null,Ul;for(Ul in C)if(tt.call(C,Ul)){var kd=C[Ul];if(kd!=null)switch(Ul){case"children":Ko=kd;break;case"dangerouslySetInnerHTML":Hm=kd;break;case"data":var Gm=re(""+kd);if(Gm==="")break;f.push(Yn,K("data"),Yi,K(Ut(Gm)),an);break;default:Fe(f,Ul,kd)}}if(f.push(Ye),Kn(f,Hm,Ko),typeof Ko=="string"){f.push(K(Ut(Ko)));var Ym=null}else Ym=Ko;return Ym;case"title":var Ov=at.tagScope&1,Pv=at.tagScope&4;if(at.insertionMode===4||Ov||C.itemProp!=null)var nf=yl(f,C);else Pv?nf=null:(yl(D.hoistableChunks,C),nf=void 0);return nf;case"link":var Wm=at.tagScope&1,Lv=at.tagScope&4,Iv=C.rel,ha=C.href,_d=C.precedence;if(at.insertionMode===4||Wm||C.itemProp!=null||typeof Iv!="string"||typeof ha!="string"||ha===""){on(f,C);var su=null}else if(C.rel==="stylesheet")if(typeof _d!="string"||C.disabled!=null||C.onLoad||C.onError)su=on(f,C);else{var au=D.styles.get(_d),ou=_.styleResources.hasOwnProperty(ha)?_.styleResources[ha]:void 0;if(ou!==null){_.styleResources[ha]=null,au||(au={precedence:K(Ut(_d)),rules:[],hrefs:[],sheets:new Map},D.styles.set(_d,au));var Ad={state:0,props:yt({},C,{"data-precedence":C.precedence,precedence:null})};if(ou){ou.length===2&&Fa(Ad.props,ou);var rf=D.preloads.stylesheets.get(ha);rf&&0<rf.length?rf.length=0:Ad.state=1}au.sheets.set(ha,Ad),W&&W.stylesheets.add(Ad)}else if(au){var sf=au.sheets.get(ha);sf&&W&&W.stylesheets.add(sf)}$&&f.push(_r),su=null}else C.onLoad||C.onError?su=on(f,C):($&&f.push(_r),su=Lv?null:on(D.hoistableChunks,C));return su;case"script":var Bv=at.tagScope&1,af=C.async;if(typeof C.src!="string"||!C.src||!af||typeof af=="function"||typeof af=="symbol"||C.onLoad||C.onError||at.insertionMode===4||Bv||C.itemProp!=null)var jv=dr(f,C);else{var of=C.src;if(C.type==="module")var Nd=_.moduleScriptResources,lu=D.preloads.moduleScripts;else Nd=_.scriptResources,lu=D.preloads.scripts;var cu=Nd.hasOwnProperty(of)?Nd[of]:void 0;if(cu!==null){Nd[of]=null;var uu=C;if(cu){cu.length===2&&(uu=yt({},C),Fa(uu,cu));var Km=lu.get(of);Km&&(Km.length=0)}var Xm=[];D.scripts.add(Xm),dr(Xm,uu)}$&&f.push(_r),jv=null}return jv;case"style":var zd=at.tagScope&1,Dd=C.precedence,Xo=C.href,Fv=C.nonce;if(at.insertionMode===4||zd||C.itemProp!=null||typeof Dd!="string"||typeof Xo!="string"||Xo===""){f.push(bn("style"));var Qo=null,lf=null,du;for(du in C)if(tt.call(C,du)){var Od=C[du];if(Od!=null)switch(du){case"children":Qo=Od;break;case"dangerouslySetInnerHTML":lf=Od;break;default:Fe(f,du,Od)}}f.push(Ye);var Bs=Array.isArray(Qo)?2>Qo.length?Qo[0]:null:Qo;typeof Bs!="function"&&typeof Bs!="symbol"&&Bs!==null&&Bs!==void 0&&f.push(K((""+Bs).replace(ms,Tc))),Kn(f,lf,Qo),f.push(ys("style"));var Qm=null}else{var Zo=D.styles.get(Dd);if((_.styleResources.hasOwnProperty(Xo)?_.styleResources[Xo]:void 0)!==null){_.styleResources[Xo]=null,Zo||(Zo={precedence:K(Ut(Dd)),rules:[],hrefs:[],sheets:new Map},D.styles.set(Dd,Zo));var Zm=D.nonce.style;if(!Zm||Zm===Fv){Zo.hrefs.push(K(Ut(Xo)));var Pd=Zo.rules,Vl=null,cf=null,Ld;for(Ld in C)if(tt.call(C,Ld)){var uf=C[Ld];if(uf!=null)switch(Ld){case"children":Vl=uf;break;case"dangerouslySetInnerHTML":cf=uf}}var Id=Array.isArray(Vl)?2>Vl.length?Vl[0]:null:Vl;typeof Id!="function"&&typeof Id!="symbol"&&Id!==null&&Id!==void 0&&Pd.push(K((""+Id).replace(ms,Tc))),Kn(Pd,cf,Vl)}}Zo&&W&&W.styles.add(Zo),$&&f.push(_r),Qm=void 0}return Qm;case"meta":var Jm=at.tagScope&1,Jn=at.tagScope&4;if(at.insertionMode===4||Jm||C.itemProp!=null)var Ci=gs(f,C,"meta");else $&&f.push(_r),Ci=Jn?null:typeof C.charSet=="string"?gs(D.charsetChunks,C,"meta"):C.name==="viewport"?gs(D.viewportChunks,C,"meta"):gs(D.hoistableChunks,C,"meta");return Ci;case"listing":case"pre":f.push(bn(p));var hu=null,fu=null,mu;for(mu in C)if(tt.call(C,mu)){var Bd=C[mu];if(Bd!=null)switch(mu){case"children":hu=Bd;break;case"dangerouslySetInnerHTML":fu=Bd;break;default:Fe(f,mu,Bd)}}if(f.push(Ye),fu!=null){if(hu!=null)throw Error(n(60));if(typeof fu!="object"||!("__html"in fu))throw Error(n(61));var js=fu.__html;js!=null&&(typeof js=="string"&&0<js.length&&js[0]===`
|
|
100
|
+
`?f.push(gd,K(js)):f.push(K(""+js)))}return typeof hu=="string"&&hu[0]===`
|
|
101
|
+
`&&f.push(gd),hu;case"img":var Uv=at.tagScope&3,di=C.src,Ti=C.srcSet;if(!(C.loading==="lazy"||!di&&!Ti||typeof di!="string"&&di!=null||typeof Ti!="string"&&Ti!=null||C.fetchPriority==="low"||Uv)&&(typeof di!="string"||di[4]!==":"||di[0]!=="d"&&di[0]!=="D"||di[1]!=="a"&&di[1]!=="A"||di[2]!=="t"&&di[2]!=="T"||di[3]!=="a"&&di[3]!=="A")&&(typeof Ti!="string"||Ti[4]!==":"||Ti[0]!=="d"&&Ti[0]!=="D"||Ti[1]!=="a"&&Ti[1]!=="A"||Ti[2]!=="t"&&Ti[2]!=="T"||Ti[3]!=="a"&&Ti[3]!=="A")){W!==null&&at.tagScope&64&&(W.suspenseyImages=!0);var Vv=typeof C.sizes=="string"?C.sizes:void 0,qa=Ti?Ti+`
|
|
102
|
+
`+(Vv||""):di,jd=D.preloads.images,Jo=jd.get(qa);if(Jo)(C.fetchPriority==="high"||10>D.highImagePreloads.size)&&(jd.delete(qa),D.highImagePreloads.add(Jo));else if(!_.imageResources.hasOwnProperty(qa)){_.imageResources[qa]=Nn;var df=C.crossOrigin,qm=typeof df=="string"?df==="use-credentials"?df:"":void 0,$a=D.headers,Fd;$a&&0<$a.remainingCapacity&&typeof C.srcSet!="string"&&(C.fetchPriority==="high"||500>$a.highImagePreloads.length)&&(Fd=ri(di,"image",{imageSrcSet:C.srcSet,imageSizes:C.sizes,crossOrigin:qm,integrity:C.integrity,nonce:C.nonce,type:C.type,fetchPriority:C.fetchPriority,referrerPolicy:C.refererPolicy}),0<=($a.remainingCapacity-=Fd.length+2))?(D.resets.image[qa]=Nn,$a.highImagePreloads&&($a.highImagePreloads+=", "),$a.highImagePreloads+=Fd):(Jo=[],on(Jo,{rel:"preload",as:"image",href:Ti?void 0:di,imageSrcSet:Ti,imageSizes:Vv,crossOrigin:qm,integrity:C.integrity,type:C.type,fetchPriority:C.fetchPriority,referrerPolicy:C.referrerPolicy}),C.fetchPriority==="high"||10>D.highImagePreloads.size?D.highImagePreloads.add(Jo):(D.bulkPreloads.add(Jo),jd.set(qa,Jo)))}}return gs(f,C,"img");case"base":case"area":case"br":case"col":case"embed":case"hr":case"keygen":case"param":case"source":case"track":case"wbr":return gs(f,C,p);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":break;case"head":if(2>at.insertionMode){var Ud=V||D.preamble;if(Ud.headChunks)throw Error(n(545,"`<head>`"));V!==null&&f.push(Mm),Ud.headChunks=[];var $m=_i(Ud.headChunks,C,"head")}else $m=vs(f,C,"head");return $m;case"body":if(2>at.insertionMode){var Vd=V||D.preamble;if(Vd.bodyChunks)throw Error(n(545,"`<body>`"));V!==null&&f.push(Ec),Vd.bodyChunks=[];var Hd=_i(Vd.bodyChunks,C,"body")}else Hd=vs(f,C,"body");return Hd;case"html":if(at.insertionMode===0){var Gd=V||D.preamble;if(Gd.htmlChunks)throw Error(n(545,"`<html>`"));V!==null&&f.push(ps),Gd.htmlChunks=[_a];var tg=_i(Gd.htmlChunks,C,"html")}else tg=vs(f,C,"html");return tg;default:if(p.indexOf("-")!==-1){f.push(bn(p));var Yd=null,eg=null,br;for(br in C)if(tt.call(C,br)){var Fr=C[br];if(Fr!=null){var Hv=br;switch(br){case"children":Yd=Fr;break;case"dangerouslySetInnerHTML":eg=Fr;break;case"style":xo(f,Fr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"className":Hv="class";default:if(Mt(br)&&typeof Fr!="function"&&typeof Fr!="symbol"&&Fr!==!1){if(Fr===!0)Fr="";else if(typeof Fr=="object")continue;f.push(Yn,K(Hv),Yi,K(Ut(Fr)),an)}}}}return f.push(Ye),Kn(f,eg,Yd),Yd}}return vs(f,C,p)}var bl=new Map;function ys(f){var p=bl.get(f);return p===void 0&&(p=U("</"+f+">"),bl.set(f,p)),p}function xl(f,p){f=f.preamble,f.htmlChunks===null&&p.htmlChunks&&(f.htmlChunks=p.htmlChunks),f.headChunks===null&&p.headChunks&&(f.headChunks=p.headChunks),f.bodyChunks===null&&p.bodyChunks&&(f.bodyChunks=p.bodyChunks)}function ea(f,p){p=p.bootstrapChunks;for(var C=0;C<p.length-1;C++)j(f,p[C]);return C<p.length?(C=p[C],p.length=0,J(f,C)):!0}var bs=U("requestAnimationFrame(function(){$RT=performance.now()});"),vd=U('<template id="'),To=U('"></template>'),Aa=U("<!--&-->"),wl=U("<!--/&-->"),Wh=U("<!--$-->"),yd=U('<!--$?--><template id="'),Rm=U('"></template>'),Ni=U("<!--$!-->"),pi=U("<!--/$-->"),xs=U("<template"),Eo=U('"'),Mo=U(' data-dgst="');U(' data-msg="'),U(' data-stck="'),U(' data-cstck="');var Ro=U("></template>");function Na(f,p,C){if(j(f,yd),C===null)throw Error(n(395));return j(f,p.boundaryPrefix),j(f,K(C.toString(16))),J(f,Rm)}var Kr=U('<div hidden id="'),Sl=U('">'),Mc=U("</div>"),za=U('<svg aria-hidden="true" style="display:none" id="'),hr=U('">'),We=U("</svg>"),ws=U('<math aria-hidden="true" style="display:none" id="'),Ar=U('">'),Da=U("</math>"),na=U('<table hidden id="'),ko=U('">'),Oa=U("</table>"),Ss=U('<table hidden><tbody id="'),Cs=U('">'),ni=U("</tbody></table>"),zi=U('<table hidden><tr id="'),Cl=U('">'),Pa=U("</tr></table>"),_o=U('<table hidden><colgroup id="'),La=U('">'),Rc=U("</colgroup></table>");function Ao(f,p,C,_){switch(C.insertionMode){case 0:case 1:case 3:case 2:return j(f,Kr),j(f,p.segmentPrefix),j(f,K(_.toString(16))),J(f,Sl);case 4:return j(f,za),j(f,p.segmentPrefix),j(f,K(_.toString(16))),J(f,hr);case 5:return j(f,ws),j(f,p.segmentPrefix),j(f,K(_.toString(16))),J(f,Ar);case 6:return j(f,na),j(f,p.segmentPrefix),j(f,K(_.toString(16))),J(f,ko);case 7:return j(f,Ss),j(f,p.segmentPrefix),j(f,K(_.toString(16))),J(f,Cs);case 8:return j(f,zi),j(f,p.segmentPrefix),j(f,K(_.toString(16))),J(f,Cl);case 9:return j(f,_o),j(f,p.segmentPrefix),j(f,K(_.toString(16))),J(f,La);default:throw Error(n(397))}}function Tl(f,p){switch(p.insertionMode){case 0:case 1:case 3:case 2:return J(f,Mc);case 4:return J(f,We);case 5:return J(f,Da);case 6:return J(f,Oa);case 7:return J(f,ni);case 8:return J(f,Pa);case 9:return J(f,Rc);default:throw Error(n(397))}}var Kh=U('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),km=U('$RS("'),_m=U('","'),Am=U('")<\/script>');U('<template data-rsi="" data-sid="'),U('" data-pid="');var El=U(`$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
|
|
103
|
+
$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`);K(`$RV=function(A,g){function k(a,b){var e=a.getAttribute(b);e&&(b=a.style,l.push(a,b.viewTransitionName,b.viewTransitionClass),"auto"!==e&&(b.viewTransitionClass=e),(a=a.getAttribute("vt-name"))||(a="_T_"+K++ +"_"),b.viewTransitionName=a,B=!0)}var B=!1,K=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var h=g[f].querySelectorAll("[vt-share]"),d=0;d<h.length;d++){var c=h[d];m.set(c.getAttribute("vt-name"),c)}var u=[];for(h=0;h<g.length;h+=2){var C=g[h],x=C.parentNode;if(x){var v=x.getBoundingClientRect();if(v.left||v.top||v.width||v.height){c=C;for(f=0;c;){if(8===c.nodeType){var r=c.data;if("/$"===r)if(0===f)break;else f--;else"$"!==r&&"$?"!==r&&"$~"!==r&&"$!"!==r||f++}else if(1===c.nodeType){d=c;var D=d.getAttribute("vt-name"),y=m.get(D);k(d,y?"vt-share":"vt-exit");y&&(k(y,"vt-share"),m.set(D,null));var E=d.querySelectorAll("[vt-share]");for(d=0;d<E.length;d++){var F=E[d],G=F.getAttribute("vt-name"),
|
|
104
|
+
H=m.get(G);H&&(k(F,"vt-share"),k(H,"vt-share"),m.set(G,null))}}c=c.nextSibling}for(var I=g[h+1],t=I.firstElementChild;t;)null!==m.get(t.getAttribute("vt-name"))&&k(t,"vt-enter"),t=t.nextElementSibling;c=x;do for(var n=c.firstElementChild;n;){var J=n.getAttribute("vt-update");J&&"none"!==J&&!l.includes(n)&&k(n,"vt-update");n=n.nextElementSibling}while((c=c.parentNode)&&1===c.nodeType&&"none"!==c.getAttribute("vt-update"));u.push.apply(u,I.querySelectorAll('img[src]:not([loading="lazy"])'))}}}if(B){var z=
|
|
105
|
+
document.__reactViewTransition=document.startViewTransition({update:function(){A(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],b={},e=0;e<u.length;b={g:b.g},e++)if(b.g=u[e],!b.g.complete){var p=b.g.getBoundingClientRect();0<p.bottom&&0<p.right&&p.top<window.innerHeight&&p.left<window.innerWidth&&(p=new Promise(function(w){return function(q){w.g.addEventListener("load",q);w.g.addEventListener("error",q)}}(b)),a.push(p))}return Promise.race([Promise.all(a),new Promise(function(w){var q=
|
|
106
|
+
performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var b=l[a],e=b.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===b.getAttribute("style")&&b.removeAttribute("style")}});z.finished.finally(function(){document.__reactViewTransition===z&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}A(g)}.bind(null,$RV);`);var Xh=U('$RC("'),Nm=U(`$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=
|
|
107
|
+
"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=
|
|
108
|
+
"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("`),Qh=U('$RR("'),kc=U('","'),zm=U('",'),_c=U('"'),Zh=U(")<\/script>");U('<template data-rci="" data-bid="'),U('<template data-rri="" data-bid="'),U('" data-sid="'),U('" data-sty="');var No=U('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};'),bd=U('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'),Ac=U('$RX("'),Nc=U('"'),zo=U(","),Dm=U(")<\/script>");U('<template data-rxi="" data-bid="'),U('" data-dgst="'),U('" data-msg="'),U('" data-stck="'),U('" data-cstck="');var Om=/[<\u2028\u2029]/g;function Jh(f){return JSON.stringify(f).replace(Om,function(p){switch(p){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var ii=/[&><\u2028\u2029]/g;function Do(f){return JSON.stringify(f).replace(ii,function(p){switch(p){case"&":return"\\u0026";case">":return"\\u003e";case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var xd=U(' media="not all" data-precedence="'),zc=U('" data-href="'),qh=U('">'),Ia=U("</style>"),ia=!1,Ml=!0;function ra(f){var p=f.rules,C=f.hrefs,_=0;if(C.length){for(j(this,ds.startInlineStyle),j(this,xd),j(this,f.precedence),j(this,zc);_<C.length-1;_++)j(this,C[_]),j(this,Oc);for(j(this,C[_]),j(this,qh),_=0;_<p.length;_++)j(this,p[_]);Ml=J(this,Ia),ia=!0,p.length=0,C.length=0}}function Xn(f){return f.state!==2?ia=!0:!1}function Xr(f,p,C){return ia=!1,Ml=!0,ds=C,p.styles.forEach(ra,f),ds=null,p.stylesheets.forEach(Xn),ia&&(C.stylesToHoist=!0),Ml}function tn(f){for(var p=0;p<f.length;p++)j(this,f[p]);f.length=0}var Nr=[];function Dc(f){on(Nr,f.props);for(var p=0;p<Nr.length;p++)j(this,Nr[p]);Nr.length=0,f.state=2}var Oo=U(' data-precedence="'),wd=U('" data-href="'),Oc=U(" "),Ba=U('">'),Pc=U("</style>");function Lc(f){var p=0<f.sheets.size;f.sheets.forEach(Dc,this),f.sheets.clear();var C=f.rules,_=f.hrefs;if(!p||_.length){if(j(this,ds.startInlineStyle),j(this,Oo),j(this,f.precedence),f=0,_.length){for(j(this,wd);f<_.length-1;f++)j(this,_[f]),j(this,Oc);j(this,_[f])}for(j(this,Ba),f=0;f<C.length;f++)j(this,C[f]);j(this,Pc),C.length=0,_.length=0}}function fr(f){if(f.state===0){f.state=1;var p=f.props;for(on(Nr,{rel:"preload",as:"style",href:f.props.href,crossOrigin:p.crossOrigin,fetchPriority:p.fetchPriority,integrity:p.integrity,media:p.media,hrefLang:p.hrefLang,referrerPolicy:p.referrerPolicy}),f=0;f<Nr.length;f++)j(this,Nr[f]);Nr.length=0}}function Ic(f){f.sheets.forEach(fr,this),f.sheets.clear()}U('<link rel="expect" href="#'),U('" blocking="render"/>');var Rl=U(' id="');function Ts(f,p){(p.instructions&32)===0&&(p.instructions|=32,f.push(Rl,K(Ut("_"+p.idPrefix+"R_")),an))}var sa=U("["),Bc=U(",["),ja=U(","),kl=U("]");function Fn(f,p){j(f,sa);var C=sa;p.stylesheets.forEach(function(_){if(_.state!==2)if(_.state===3)j(f,C),j(f,K(Do(""+_.props.href))),j(f,kl),C=Bc;else{j(f,C);var D=_.props["data-precedence"],V=_.props,W=re(""+_.props.href);j(f,K(Do(W))),D=""+D,j(f,ja),j(f,K(Do(D)));for(var at in V)if(tt.call(V,at)&&(D=V[at],D!=null))switch(at){case"href":case"rel":case"precedence":case"data-precedence":break;case"children":case"dangerouslySetInnerHTML":throw Error(n(399,"link"));default:Sd(f,at,D)}j(f,kl),C=Bc,_.state=3}}),j(f,kl)}function Sd(f,p,C){var _=p.toLowerCase();switch(typeof C){case"function":case"symbol":return}switch(p){case"innerHTML":case"dangerouslySetInnerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"style":case"ref":return;case"className":_="class",p=""+C;break;case"hidden":if(C===!1)return;p="";break;case"src":case"href":C=re(C),p=""+C;break;default:if(2<p.length&&(p[0]==="o"||p[0]==="O")&&(p[1]==="n"||p[1]==="N")||!Mt(p))return;p=""+C}j(f,ja),j(f,K(Do(_))),j(f,ja),j(f,K(Do(p)))}function Es(){return{styles:new Set,stylesheets:new Set,suspenseyImages:!1}}function jc(f){var p=qe||null;if(p){var C=p.resumableState,_=p.renderState;if(typeof f=="string"&&f){if(!C.dnsResources.hasOwnProperty(f)){C.dnsResources[f]=null,C=_.headers;var D,V;(V=C&&0<C.remainingCapacity)&&(V=(D="<"+(""+f).replace(zr,Ua)+">; rel=dns-prefetch",0<=(C.remainingCapacity-=D.length+2))),V?(_.resets.dns[f]=null,C.preconnects&&(C.preconnects+=", "),C.preconnects+=D):(D=[],on(D,{href:f,rel:"dns-prefetch"}),_.preconnects.add(D))}Si(p)}}else Hn.D(f)}function Fc(f,p){var C=qe||null;if(C){var _=C.resumableState,D=C.renderState;if(typeof f=="string"&&f){var V=p==="use-credentials"?"credentials":typeof p=="string"?"anonymous":"default";if(!_.connectResources[V].hasOwnProperty(f)){_.connectResources[V][f]=null,_=D.headers;var W,at;if(at=_&&0<_.remainingCapacity){if(at="<"+(""+f).replace(zr,Ua)+">; rel=preconnect",typeof p=="string"){var $=(""+p).replace(oa,la);at+='; crossorigin="'+$+'"'}at=(W=at,0<=(_.remainingCapacity-=W.length+2))}at?(D.resets.connect[V][f]=null,_.preconnects&&(_.preconnects+=", "),_.preconnects+=W):(V=[],on(V,{rel:"preconnect",href:f,crossOrigin:p}),D.preconnects.add(V))}Si(C)}}else Hn.C(f,p)}function Uc(f,p,C){var _=qe||null;if(_){var D=_.resumableState,V=_.renderState;if(p&&f){switch(p){case"image":if(C)var W=C.imageSrcSet,at=C.imageSizes,$=C.fetchPriority;var lt=W?W+`
|
|
109
|
+
`+(at||""):f;if(D.imageResources.hasOwnProperty(lt))return;D.imageResources[lt]=Nn,D=V.headers;var vt;D&&0<D.remainingCapacity&&typeof W!="string"&&$==="high"&&(vt=ri(f,p,C),0<=(D.remainingCapacity-=vt.length+2))?(V.resets.image[lt]=Nn,D.highImagePreloads&&(D.highImagePreloads+=", "),D.highImagePreloads+=vt):(D=[],on(D,yt({rel:"preload",href:W?void 0:f,as:p},C)),$==="high"?V.highImagePreloads.add(D):(V.bulkPreloads.add(D),V.preloads.images.set(lt,D)));break;case"style":if(D.styleResources.hasOwnProperty(f))return;W=[],on(W,yt({rel:"preload",href:f,as:p},C)),D.styleResources[f]=!C||typeof C.crossOrigin!="string"&&typeof C.integrity!="string"?Nn:[C.crossOrigin,C.integrity],V.preloads.stylesheets.set(f,W),V.bulkPreloads.add(W);break;case"script":if(D.scriptResources.hasOwnProperty(f))return;W=[],V.preloads.scripts.set(f,W),V.bulkPreloads.add(W),on(W,yt({rel:"preload",href:f,as:p},C)),D.scriptResources[f]=!C||typeof C.crossOrigin!="string"&&typeof C.integrity!="string"?Nn:[C.crossOrigin,C.integrity];break;default:if(D.unknownResources.hasOwnProperty(p)){if(W=D.unknownResources[p],W.hasOwnProperty(f))return}else W={},D.unknownResources[p]=W;if(W[f]=Nn,(D=V.headers)&&0<D.remainingCapacity&&p==="font"&&(lt=ri(f,p,C),0<=(D.remainingCapacity-=lt.length+2)))V.resets.font[f]=Nn,D.fontPreloads&&(D.fontPreloads+=", "),D.fontPreloads+=lt;else switch(D=[],f=yt({rel:"preload",href:f,as:p},C),on(D,f),p){case"font":V.fontPreloads.add(D);break;default:V.bulkPreloads.add(D)}}Si(_)}}else Hn.L(f,p,C)}function Vc(f,p){var C=qe||null;if(C){var _=C.resumableState,D=C.renderState;if(f){var V=p&&typeof p.as=="string"?p.as:"script";switch(V){case"script":if(_.moduleScriptResources.hasOwnProperty(f))return;V=[],_.moduleScriptResources[f]=!p||typeof p.crossOrigin!="string"&&typeof p.integrity!="string"?Nn:[p.crossOrigin,p.integrity],D.preloads.moduleScripts.set(f,V);break;default:if(_.moduleUnknownResources.hasOwnProperty(V)){var W=_.unknownResources[V];if(W.hasOwnProperty(f))return}else W={},_.moduleUnknownResources[V]=W;V=[],W[f]=Nn}on(V,yt({rel:"modulepreload",href:f},p)),D.bulkPreloads.add(V),Si(C)}}else Hn.m(f,p)}function _l(f,p,C){var _=qe||null;if(_){var D=_.resumableState,V=_.renderState;if(f){p=p||"default";var W=V.styles.get(p),at=D.styleResources.hasOwnProperty(f)?D.styleResources[f]:void 0;at!==null&&(D.styleResources[f]=null,W||(W={precedence:K(Ut(p)),rules:[],hrefs:[],sheets:new Map},V.styles.set(p,W)),p={state:0,props:yt({rel:"stylesheet",href:f,"data-precedence":p},C)},at&&(at.length===2&&Fa(p.props,at),(V=V.preloads.stylesheets.get(f))&&0<V.length?V.length=0:p.state=1),W.sheets.set(f,p),Si(_))}}else Hn.S(f,p,C)}function aa(f,p){var C=qe||null;if(C){var _=C.resumableState,D=C.renderState;if(f){var V=_.scriptResources.hasOwnProperty(f)?_.scriptResources[f]:void 0;V!==null&&(_.scriptResources[f]=null,p=yt({src:f,async:!0},p),V&&(V.length===2&&Fa(p,V),f=D.preloads.scripts.get(f))&&(f.length=0),f=[],D.scripts.add(f),dr(f,p),Si(C))}}else Hn.X(f,p)}function $h(f,p){var C=qe||null;if(C){var _=C.resumableState,D=C.renderState;if(f){var V=_.moduleScriptResources.hasOwnProperty(f)?_.moduleScriptResources[f]:void 0;V!==null&&(_.moduleScriptResources[f]=null,p=yt({src:f,type:"module",async:!0},p),V&&(V.length===2&&Fa(p,V),f=D.preloads.moduleScripts.get(f))&&(f.length=0),f=[],D.scripts.add(f),dr(f,p),Si(C))}}else Hn.M(f,p)}function Fa(f,p){f.crossOrigin==null&&(f.crossOrigin=p[0]),f.integrity==null&&(f.integrity=p[1])}function ri(f,p,C){f=(""+f).replace(zr,Ua),p=(""+p).replace(oa,la),p="<"+f+'>; rel=preload; as="'+p+'"';for(var _ in C)tt.call(C,_)&&(f=C[_],typeof f=="string"&&(p+="; "+_.toLowerCase()+'="'+(""+f).replace(oa,la)+'"'));return p}var zr=/[<>\r\n]/g;function Ua(f){switch(f){case"<":return"%3C";case">":return"%3E";case`
|
|
110
|
+
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}var oa=/["';,\r\n]/g;function la(f){switch(f){case'"':return"%22";case"'":return"%27";case";":return"%3B";case",":return"%2C";case`
|
|
111
|
+
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function Hc(f){this.styles.add(f)}function Gc(f){this.stylesheets.add(f)}function Va(f,p){p.styles.forEach(Hc,f),p.stylesheets.forEach(Gc,f),p.suspenseyImages&&(f.suspenseyImages=!0)}function Qr(f){return 0<f.stylesheets.size||f.suspenseyImages}var Po=Function.prototype.bind,Dr=Symbol.for("react.client.reference");function Lo(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===Dr?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case o:return"Fragment";case d:return"Profiler";case c:return"StrictMode";case y:return"Suspense";case T:return"SuspenseList";case z:return"Activity"}if(typeof f=="object")switch(f.$$typeof){case a:return"Portal";case m:return f.displayName||"Context";case h:return(f._context.displayName||"Context")+".Consumer";case b:var p=f.render;return f=f.displayName,f||(f=p.displayName||p.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case k:return p=f.displayName||null,p!==null?p:Lo(f.type)||"Memo";case R:p=f._payload,f=f._init;try{return Lo(f(p))}catch{}}return null}var Cd={},vi=null;function Ms(f,p){if(f!==p){f.context._currentValue=f.parentValue,f=f.parent;var C=p.parent;if(f===null){if(C!==null)throw Error(n(401))}else{if(C===null)throw Error(n(401));Ms(f,C)}p.context._currentValue=p.value}}function Al(f){f.context._currentValue=f.parentValue,f=f.parent,f!==null&&Al(f)}function g(f){var p=f.parent;p!==null&&g(p),f.context._currentValue=f.value}function v(f,p){if(f.context._currentValue=f.parentValue,f=f.parent,f===null)throw Error(n(402));f.depth===p.depth?Ms(f,p):v(f,p)}function E(f,p){var C=p.parent;if(C===null)throw Error(n(402));f.depth===C.depth?Ms(f,C):E(f,C),p.context._currentValue=p.value}function A(f){var p=vi;p!==f&&(p===null?g(f):f===null?Al(p):p.depth===f.depth?Ms(p,f):p.depth>f.depth?v(p,f):E(p,f),vi=f)}var P={enqueueSetState:function(f,p){f=f._reactInternals,f.queue!==null&&f.queue.push(p)},enqueueReplaceState:function(f,p){f=f._reactInternals,f.replace=!0,f.queue=[p]},enqueueForceUpdate:function(){}},G={id:1,overflow:""};function Q(f,p,C){var _=f.id;f=f.overflow;var D=32-wt(_)-1;_&=~(1<<D),C+=1;var V=32-wt(p)+D;if(30<V){var W=D-D%5;return V=(_&(1<<W)-1).toString(32),_>>=W,D-=W,{id:1<<32-wt(p)+D|C<<D|_,overflow:V+f}}return{id:1<<V|C<<D|_,overflow:f}}var wt=Math.clz32?Math.clz32:Pt,rt=Math.log,St=Math.LN2;function Pt(f){return f>>>=0,f===0?32:31-(rt(f)/St|0)|0}function _t(){}var Ft=Error(n(460));function qt(f,p,C){switch(C=f[C],C===void 0?f.push(p):C!==p&&(p.then(_t,_t),p=C),p.status){case"fulfilled":return p.value;case"rejected":throw p.reason;default:switch(typeof p.status=="string"?p.then(_t,_t):(f=p,f.status="pending",f.then(function(_){if(p.status==="pending"){var D=p;D.status="fulfilled",D.value=_}},function(_){if(p.status==="pending"){var D=p;D.status="rejected",D.reason=_}})),p.status){case"fulfilled":return p.value;case"rejected":throw p.reason}throw Se=p,Ft}}var Se=null;function ge(){if(Se===null)throw Error(n(459));var f=Se;return Se=null,f}function fe(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var he=typeof Object.is=="function"?Object.is:fe,ve=null,Ue=null,fn=null,Ee=null,Me=null,Ae=null,en=!1,_e=!1,Mn=0,Ve=0,xn=-1,ln=0,nn=null,yi=null,Rs=0;function Ki(){if(ve===null)throw Error(n(321));return ve}function bi(){if(0<Rs)throw Error(n(312));return{memoizedState:null,queue:null,next:null}}function Or(){return Ae===null?Me===null?(en=!1,Me=Ae=bi()):(en=!0,Ae=Me):Ae.next===null?(en=!1,Ae=Ae.next=bi()):(en=!0,Ae=Ae.next),Ae}function Rn(){var f=nn;return nn=null,f}function Di(){Ee=fn=Ue=ve=null,_e=!1,Me=null,Rs=0,Ae=yi=null}function Oi(f,p){return typeof p=="function"?p(f):p}function Cn(f,p,C){if(ve=Ki(),Ae=Or(),en){var _=Ae.queue;if(p=_.dispatch,yi!==null&&(C=yi.get(_),C!==void 0)){yi.delete(_),_=Ae.memoizedState;do _=f(_,C.action),C=C.next;while(C!==null);return Ae.memoizedState=_,[_,p]}return[Ae.memoizedState,p]}return f=f===Oi?typeof p=="function"?p():p:C!==void 0?C(p):p,Ae.memoizedState=f,f=Ae.queue={last:null,dispatch:null},f=f.dispatch=Pi.bind(null,ve,f),[Ae.memoizedState,f]}function Dn(f,p){if(ve=Ki(),Ae=Or(),p=p===void 0?null:p,Ae!==null){var C=Ae.memoizedState;if(C!==null&&p!==null){var _=C[1];t:if(_===null)_=!1;else{for(var D=0;D<_.length&&D<p.length;D++)if(!he(p[D],_[D])){_=!1;break t}_=!0}if(_)return C[0]}}return f=f(),Ae.memoizedState=[f,p],f}function Pi(f,p,C){if(25<=Rs)throw Error(n(301));if(f===ve)if(_e=!0,f={action:C,next:null},yi===null&&(yi=new Map),C=yi.get(p),C===void 0)yi.set(p,f);else{for(p=C;p.next!==null;)p=p.next;p.next=f}}function Je(){throw Error(n(440))}function xi(){throw Error(n(394))}function er(){throw Error(n(479))}function Yc(f,p,C){Ki();var _=Ve++,D=fn;if(typeof f.$$FORM_ACTION=="function"){var V=null,W=Ee;D=D.formState;var at=f.$$IS_SIGNATURE_EQUAL;if(D!==null&&typeof at=="function"){var $=D[1];at.call(f,D[2],D[3])&&(V=C!==void 0?"p"+C:"k"+et(JSON.stringify([W,null,_]),0),$===V&&(xn=_,p=D[0]))}var lt=f.bind(null,p);return f=function(Et){lt(Et)},typeof lt.$$FORM_ACTION=="function"&&(f.$$FORM_ACTION=function(Et){Et=lt.$$FORM_ACTION(Et),C!==void 0&&(C+="",Et.action=C);var Bt=Et.data;return Bt&&(V===null&&(V=C!==void 0?"p"+C:"k"+et(JSON.stringify([W,null,_]),0)),Bt.append("$ACTION_KEY",V)),Et}),[p,f,!1]}var vt=f.bind(null,p);return[p,function(Et){vt(Et)},!1]}function Nl(f){var p=ln;return ln+=1,nn===null&&(nn=[]),qt(nn,f,p)}function Wc(){throw Error(n(393))}var Kc={readContext:function(f){return f._currentValue},use:function(f){if(f!==null&&typeof f=="object"){if(typeof f.then=="function")return Nl(f);if(f.$$typeof===m)return f._currentValue}throw Error(n(438,String(f)))},useContext:function(f){return Ki(),f._currentValue},useMemo:Dn,useReducer:Cn,useRef:function(f){ve=Ki(),Ae=Or();var p=Ae.memoizedState;return p===null?(f={current:f},Ae.memoizedState=f):p},useState:function(f){return Cn(Oi,f)},useInsertionEffect:_t,useLayoutEffect:_t,useCallback:function(f,p){return Dn(function(){return f},p)},useImperativeHandle:_t,useEffect:_t,useDebugValue:_t,useDeferredValue:function(f,p){return Ki(),p!==void 0?p:f},useTransition:function(){return Ki(),[!1,xi]},useId:function(){var f=Ue.treeContext,p=f.overflow;f=f.id,f=(f&~(1<<32-wt(f)-1)).toString(32)+p;var C=kn;if(C===null)throw Error(n(404));return p=Mn++,f="_"+C.idPrefix+"R_"+f,0<p&&(f+="H"+p.toString(32)),f+"_"},useSyncExternalStore:function(f,p,C){if(C===void 0)throw Error(n(407));return C()},useOptimistic:function(f){return Ki(),[f,er]},useActionState:Yc,useFormState:Yc,useHostTransitionStatus:function(){return Ki(),Mr},useMemoCache:function(f){for(var p=Array(f),C=0;C<f;C++)p[C]=I;return p},useCacheRefresh:function(){return Wc},useEffectEvent:function(){return Je}},kn=null,rn={getCacheForType:function(){throw Error(n(248))},cacheSignal:function(){throw Error(n(248))}},be,si;function Qn(f){if(be===void 0)try{throw Error()}catch(C){var p=C.stack.trim().match(/\n( *(at )?)/);be=p&&p[1]||"",si=-1<C.stack.indexOf(`
|
|
112
|
+
at`)?" (<anonymous>)":-1<C.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
113
|
+
`+be+f+si}var Io=!1;function Li(f,p){if(!f||Io)return"";Io=!0;var C=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var _={DetermineComponentFrameRoot:function(){try{if(p){var Et=function(){throw Error()};if(Object.defineProperty(Et.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Et,[])}catch(jt){var Bt=jt}Reflect.construct(f,[],Et)}else{try{Et.call()}catch(jt){Bt=jt}f.call(Et.prototype)}}else{try{throw Error()}catch(jt){Bt=jt}(Et=f())&&typeof Et.catch=="function"&&Et.catch(function(){})}}catch(jt){if(jt&&Bt&&typeof jt.stack=="string")return[jt.stack,Bt.stack]}return[null,null]}};_.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var D=Object.getOwnPropertyDescriptor(_.DetermineComponentFrameRoot,"name");D&&D.configurable&&Object.defineProperty(_.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var V=_.DetermineComponentFrameRoot(),W=V[0],at=V[1];if(W&&at){var $=W.split(`
|
|
114
|
+
`),lt=at.split(`
|
|
115
|
+
`);for(D=_=0;_<$.length&&!$[_].includes("DetermineComponentFrameRoot");)_++;for(;D<lt.length&&!lt[D].includes("DetermineComponentFrameRoot");)D++;if(_===$.length||D===lt.length)for(_=$.length-1,D=lt.length-1;1<=_&&0<=D&&$[_]!==lt[D];)D--;for(;1<=_&&0<=D;_--,D--)if($[_]!==lt[D]){if(_!==1||D!==1)do if(_--,D--,0>D||$[_]!==lt[D]){var vt=`
|
|
116
|
+
`+$[_].replace(" at new "," at ");return f.displayName&&vt.includes("<anonymous>")&&(vt=vt.replace("<anonymous>",f.displayName)),vt}while(1<=_&&0<=D);break}}}finally{Io=!1,Error.prepareStackTrace=C}return(C=f?f.displayName||f.name:"")?Qn(C):""}function Xc(f){if(typeof f=="string")return Qn(f);if(typeof f=="function")return f.prototype&&f.prototype.isReactComponent?Li(f,!0):Li(f,!1);if(typeof f=="object"&&f!==null){switch(f.$$typeof){case b:return Li(f.render,!1);case k:return Li(f.type,!1);case R:var p=f,C=p._payload;p=p._init;try{f=p(C)}catch{return Qn("Lazy")}return Xc(f)}if(typeof f.name=="string"){t:{C=f.name,p=f.env;var _=f.debugLocation;if(_!=null&&(f=Error.prepareStackTrace,Error.prepareStackTrace=void 0,_=_.stack,Error.prepareStackTrace=f,_.startsWith(`Error: react-stack-top-frame
|
|
117
|
+
`)&&(_=_.slice(29)),f=_.indexOf(`
|
|
118
|
+
`),f!==-1&&(_=_.slice(f+1)),f=_.indexOf("react_stack_bottom_frame"),f!==-1&&(f=_.lastIndexOf(`
|
|
119
|
+
`,f)),f=f!==-1?_=_.slice(0,f):"",_=f.lastIndexOf(`
|
|
120
|
+
`),f=_===-1?f:f.slice(_+1),f.indexOf(C)!==-1)){C=`
|
|
121
|
+
`+f;break t}C=Qn(C+(p?" ["+p+"]":""))}return C}}switch(f){case T:return Qn("SuspenseList");case y:return Qn("Suspense")}return""}function nr(f,p){return(500<p.byteSize||Qr(p.contentState))&&p.contentPreamble===null}function Zr(f){if(typeof f=="object"&&f!==null&&typeof f.environmentName=="string"){var p=f.environmentName;f=[f].slice(0),typeof f[0]=="string"?f.splice(0,1,"%c%s%c "+f[0],"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+p+" ",""):f.splice(0,0,"%c%s%c","background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+p+" ",""),f.unshift(console),p=Po.apply(console.error,f),p()}else console.error(f);return null}function mr(f,p,C,_,D,V,W,at,$,lt,vt){var Et=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=f,this.renderState=p,this.rootFormatContext=C,this.progressiveChunkSize=_===void 0?12800:_,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.byteSize=0,this.abortableTasks=Et,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=D===void 0?Zr:D,this.onPostpone=lt===void 0?_t:lt,this.onAllReady=V===void 0?_t:V,this.onShellReady=W===void 0?_t:W,this.onShellError=at===void 0?_t:at,this.onFatalError=$===void 0?_t:$,this.formState=vt===void 0?null:vt}function ca(f,p,C,_,D,V,W,at,$,lt,vt,Et){return p=new mr(p,C,_,D,V,W,at,$,lt,vt,Et),C=ai(p,0,null,_,!1,!1),C.parentFlushed=!0,f=Jr(p,null,f,-1,null,C,null,null,p.abortableTasks,null,_,null,G,null,null),Lr(f),p.pingedTasks.push(f),p}function ks(f,p,C,_,D,V,W,at,$,lt,vt){return f=ca(f,p,C,_,D,V,W,at,$,lt,vt,void 0),f.trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},f}function Pr(f,p,C,_,D,V,W,at,$){return C=new mr(p.resumableState,C,p.rootFormatContext,p.progressiveChunkSize,_,D,V,W,at,$,null),C.nextSegmentId=p.nextSegmentId,typeof p.replaySlots=="number"?(_=ai(C,0,null,p.rootFormatContext,!1,!1),_.parentFlushed=!0,f=Jr(C,null,f,-1,null,_,null,null,C.abortableTasks,null,p.rootFormatContext,null,G,null,null),Lr(f),C.pingedTasks.push(f),C):(f=Bo(C,null,{nodes:p.replayNodes,slots:p.replaySlots,pendingTasks:0},f,-1,null,null,C.abortableTasks,null,p.rootFormatContext,null,G,null,null),Lr(f),C.pingedTasks.push(f),C)}function _s(f,p,C,_,D,V,W,at,$){return f=Pr(f,p,C,_,D,V,W,at,$),f.trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},f}var qe=null;function Ii(f,p){f.pingedTasks.push(p),f.pingedTasks.length===1&&(f.flushScheduled=f.destination!==null,f.trackedPostpones!==null||f.status===10?mt(function(){return Jc(f)}):ot(function(){return Jc(f)}))}function Xi(f,p,C,_,D){return C={status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,row:p,completedSegments:[],byteSize:0,fallbackAbortableTasks:C,errorDigest:null,contentState:Es(),fallbackState:Es(),contentPreamble:_,fallbackPreamble:D,trackedContentKeyPath:null,trackedFallbackNode:null},p!==null&&(p.pendingTasks++,_=p.boundaries,_!==null&&(f.allPendingTasks++,C.pendingTasks++,_.push(C)),f=p.inheritedHoistables,f!==null&&Va(C.contentState,f)),C}function Jr(f,p,C,_,D,V,W,at,$,lt,vt,Et,Bt,jt,se){f.allPendingTasks++,D===null?f.pendingRootTasks++:D.pendingTasks++,jt!==null&&jt.pendingTasks++;var ye={replay:null,node:C,childIndex:_,ping:function(){return Ii(f,ye)},blockedBoundary:D,blockedSegment:V,blockedPreamble:W,hoistableState:at,abortSet:$,keyPath:lt,formatContext:vt,context:Et,treeContext:Bt,row:jt,componentStack:se,thenableState:p};return $.add(ye),ye}function Bo(f,p,C,_,D,V,W,at,$,lt,vt,Et,Bt,jt){f.allPendingTasks++,V===null?f.pendingRootTasks++:V.pendingTasks++,Bt!==null&&Bt.pendingTasks++,C.pendingTasks++;var se={replay:C,node:_,childIndex:D,ping:function(){return Ii(f,se)},blockedBoundary:V,blockedSegment:null,blockedPreamble:null,hoistableState:W,abortSet:at,keyPath:$,formatContext:lt,context:vt,treeContext:Et,row:Bt,componentStack:jt,thenableState:p};return at.add(se),se}function ai(f,p,C,_,D,V){return{status:0,parentFlushed:!1,id:-1,index:p,chunks:[],children:[],preambleChildren:[],parentFormatContext:_,boundary:C,lastPushedText:D,textEmbedded:V}}function Lr(f){var p=f.node;if(typeof p=="object"&&p!==null)switch(p.$$typeof){case i:f.componentStack={parent:f.componentStack,type:p.type}}}function ir(f){return f===null?null:{parent:f.parent,type:"Suspense Fallback"}}function Ke(f){var p={};return f&&Object.defineProperty(p,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var C="",_=f;do C+=Xc(_.type),_=_.parent;while(_);var D=C}catch(V){D=`
|
|
122
|
+
Error generating stack: `+V.message+`
|
|
123
|
+
`+V.stack}return Object.defineProperty(p,"componentStack",{value:D}),D}}),p}function On(f,p,C){if(f=f.onError,p=f(p,C),p==null||typeof p=="string")return p}function Ha(f,p){var C=f.onShellError,_=f.onFatalError;C(p),_(p),f.destination!==null?(f.status=14,ft(f.destination,p)):(f.status=13,f.fatalError=p)}function wi(f,p){Td(f,p.next,p.hoistables)}function Td(f,p,C){for(;p!==null;){C!==null&&(Va(p.hoistables,C),p.inheritedHoistables=C);var _=p.boundaries;if(_!==null){p.boundaries=null;for(var D=0;D<_.length;D++){var V=_[D];C!==null&&Va(V.contentState,C),Qi(f,V,null,null)}}if(p.pendingTasks--,0<p.pendingTasks)break;C=p.hoistables,p=p.next}}function zl(f,p){var C=p.boundaries;if(C!==null&&p.pendingTasks===C.length){for(var _=!0,D=0;D<C.length;D++){var V=C[D];if(V.pendingTasks!==1||V.parentFlushed||nr(f,V)){_=!1;break}}_&&Td(f,p,p.hoistables)}}function mn(f){var p={pendingTasks:1,boundaries:null,hoistables:Es(),inheritedHoistables:null,together:!1,next:null};return f!==null&&0<f.pendingTasks&&(p.pendingTasks++,p.boundaries=[],f.next=p),p}function Qc(f,p,C,_,D){var V=p.keyPath,W=p.treeContext,at=p.row;p.keyPath=C,C=_.length;var $=null;if(p.replay!==null){var lt=p.replay.slots;if(lt!==null&&typeof lt=="object")for(var vt=0;vt<C;vt++){var Et=D!=="backwards"&&D!=="unstable_legacy-backwards"?vt:C-1-vt,Bt=_[Et];p.row=$=mn($),p.treeContext=Q(W,C,Et);var jt=lt[Et];typeof jt=="number"?(sr(f,p,jt,Bt,Et),delete lt[Et]):En(f,p,Bt,Et),--$.pendingTasks===0&&wi(f,$)}else for(lt=0;lt<C;lt++)vt=D!=="backwards"&&D!=="unstable_legacy-backwards"?lt:C-1-lt,Et=_[vt],p.row=$=mn($),p.treeContext=Q(W,C,vt),En(f,p,Et,vt),--$.pendingTasks===0&&wi(f,$)}else if(D!=="backwards"&&D!=="unstable_legacy-backwards")for(D=0;D<C;D++)lt=_[D],p.row=$=mn($),p.treeContext=Q(W,C,D),En(f,p,lt,D),--$.pendingTasks===0&&wi(f,$);else{for(D=p.blockedSegment,lt=D.children.length,vt=D.chunks.length,Et=C-1;0<=Et;Et--){Bt=_[Et],p.row=$=mn($),p.treeContext=Q(W,C,Et),jt=ai(f,vt,null,p.formatContext,Et===0?D.lastPushedText:!0,!0),D.children.splice(lt,0,jt),p.blockedSegment=jt;try{En(f,p,Bt,Et),jt.lastPushedText&&jt.textEmbedded&&jt.chunks.push(_r),jt.status=1,Bi(f,p.blockedBoundary,jt),--$.pendingTasks===0&&wi(f,$)}catch(se){throw jt.status=f.status===12?3:4,se}}p.blockedSegment=D,D.lastPushedText=!1}at!==null&&$!==null&&0<$.pendingTasks&&(at.pendingTasks++,$.next=at),p.treeContext=W,p.row=at,p.keyPath=V}function jo(f,p,C,_,D,V){var W=p.thenableState;for(p.thenableState=null,ve={},Ue=p,fn=f,Ee=C,Ve=Mn=0,xn=-1,ln=0,nn=W,f=_(D,V);_e;)_e=!1,Ve=Mn=0,xn=-1,ln=0,Rs+=1,Ae=null,f=_(D,V);return Di(),f}function rr(f,p,C,_,D,V,W){var at=!1;if(V!==0&&f.formState!==null){var $=p.blockedSegment;if($!==null){at=!0,$=$.chunks;for(var lt=0;lt<V;lt++)lt===W?$.push(Yh):$.push(So)}}V=p.keyPath,p.keyPath=C,D?(C=p.treeContext,p.treeContext=Q(C,1,0),En(f,p,_,-1),p.treeContext=C):at?En(f,p,_,-1):Tn(f,p,_,-1),p.keyPath=V}function As(f,p,C,_,D,V){if(typeof _=="function")if(_.prototype&&_.prototype.isReactComponent){var W=D;if("ref"in D){W={};for(var at in D)at!=="ref"&&(W[at]=D[at])}var $=_.defaultProps;if($){W===D&&(W=yt({},W,D));for(var lt in $)W[lt]===void 0&&(W[lt]=$[lt])}D=W,W=Cd,$=_.contextType,typeof $=="object"&&$!==null&&(W=$._currentValue),W=new _(D,W);var vt=W.state!==void 0?W.state:null;if(W.updater=P,W.props=D,W.state=vt,$={queue:[],replace:!1},W._reactInternals=$,V=_.contextType,W.context=typeof V=="object"&&V!==null?V._currentValue:Cd,V=_.getDerivedStateFromProps,typeof V=="function"&&(V=V(D,vt),vt=V==null?vt:yt({},vt,V),W.state=vt),typeof _.getDerivedStateFromProps!="function"&&typeof W.getSnapshotBeforeUpdate!="function"&&(typeof W.UNSAFE_componentWillMount=="function"||typeof W.componentWillMount=="function"))if(_=W.state,typeof W.componentWillMount=="function"&&W.componentWillMount(),typeof W.UNSAFE_componentWillMount=="function"&&W.UNSAFE_componentWillMount(),_!==W.state&&P.enqueueReplaceState(W,W.state,null),$.queue!==null&&0<$.queue.length)if(_=$.queue,V=$.replace,$.queue=null,$.replace=!1,V&&_.length===1)W.state=_[0];else{for($=V?_[0]:W.state,vt=!0,V=V?1:0;V<_.length;V++)lt=_[V],lt=typeof lt=="function"?lt.call(W,$,D,void 0):lt,lt!=null&&(vt?(vt=!1,$=yt({},$,lt)):yt($,lt));W.state=$}else $.queue=null;if(_=W.render(),f.status===12)throw null;D=p.keyPath,p.keyPath=C,Tn(f,p,_,-1),p.keyPath=D}else{if(_=jo(f,p,C,_,D,void 0),f.status===12)throw null;rr(f,p,C,_,Mn!==0,Ve,xn)}else if(typeof _=="string")if(W=p.blockedSegment,W===null)W=D.children,$=p.formatContext,vt=p.keyPath,p.formatContext=kr($,_,D),p.keyPath=C,En(f,p,W,-1),p.formatContext=$,p.keyPath=vt;else{if(vt=Ai(W.chunks,_,D,f.resumableState,f.renderState,p.blockedPreamble,p.hoistableState,p.formatContext,W.lastPushedText),W.lastPushedText=!1,$=p.formatContext,V=p.keyPath,p.keyPath=C,(p.formatContext=kr($,_,D)).insertionMode===3){C=ai(f,0,null,p.formatContext,!1,!1),W.preambleChildren.push(C),p.blockedSegment=C;try{C.status=6,En(f,p,vt,-1),C.lastPushedText&&C.textEmbedded&&C.chunks.push(_r),C.status=1,Bi(f,p.blockedBoundary,C)}finally{p.blockedSegment=W}}else En(f,p,vt,-1);p.formatContext=$,p.keyPath=V;t:{switch(p=W.chunks,f=f.resumableState,_){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break t;case"body":if(1>=$.insertionMode){f.hasBody=!0;break t}break;case"html":if($.insertionMode===0){f.hasHtml=!0;break t}break;case"head":if(1>=$.insertionMode)break t}p.push(ys(_))}W.lastPushedText=!1}else{switch(_){case L:case c:case d:case o:_=p.keyPath,p.keyPath=C,Tn(f,p,D.children,-1),p.keyPath=_;return;case z:_=p.blockedSegment,_===null?D.mode!=="hidden"&&(_=p.keyPath,p.keyPath=C,En(f,p,D.children,-1),p.keyPath=_):D.mode!=="hidden"&&(_.chunks.push(Aa),_.lastPushedText=!1,W=p.keyPath,p.keyPath=C,En(f,p,D.children,-1),p.keyPath=W,_.chunks.push(wl),_.lastPushedText=!1);return;case T:t:{if(_=D.children,D=D.revealOrder,D==="forwards"||D==="backwards"||D==="unstable_legacy-backwards"){if(Z(_)){Qc(f,p,C,_,D);break t}if((W=Y(_))&&(W=W.call(_))){if($=W.next(),!$.done){do $=W.next();while(!$.done);Qc(f,p,C,_,D)}break t}}D==="together"?(D=p.keyPath,W=p.row,$=p.row=mn(null),$.boundaries=[],$.together=!0,p.keyPath=C,Tn(f,p,_,-1),--$.pendingTasks===0&&wi(f,$),p.keyPath=D,p.row=W,W!==null&&0<$.pendingTasks&&(W.pendingTasks++,$.next=W)):(D=p.keyPath,p.keyPath=C,Tn(f,p,_,-1),p.keyPath=D)}return;case F:case N:throw Error(n(343));case y:t:if(p.replay!==null){_=p.keyPath,W=p.formatContext,$=p.row,p.keyPath=C,p.formatContext=fs(f.resumableState,W),p.row=null,C=D.children;try{En(f,p,C,-1)}finally{p.keyPath=_,p.formatContext=W,p.row=$}}else{_=p.keyPath,V=p.formatContext;var Et=p.row;lt=p.blockedBoundary,at=p.blockedPreamble;var Bt=p.hoistableState,jt=p.blockedSegment,se=D.fallback;D=D.children;var ye=new Set,me=2>p.formatContext.insertionMode?Xi(f,p.row,ye,yn(),yn()):Xi(f,p.row,ye,null,null);f.trackedPostpones!==null&&(me.trackedContentKeyPath=C);var Wt=ai(f,jt.chunks.length,me,p.formatContext,!1,!1);jt.children.push(Wt),jt.lastPushedText=!1;var ae=ai(f,0,null,p.formatContext,!1,!1);if(ae.parentFlushed=!0,f.trackedPostpones!==null){W=p.componentStack,$=[C[0],"Suspense Fallback",C[2]],vt=[$[1],$[2],[],null],f.trackedPostpones.workingMap.set($,vt),me.trackedFallbackNode=vt,p.blockedSegment=Wt,p.blockedPreamble=me.fallbackPreamble,p.keyPath=$,p.formatContext=Ea(f.resumableState,V),p.componentStack=ir(W),Wt.status=6;try{En(f,p,se,-1),Wt.lastPushedText&&Wt.textEmbedded&&Wt.chunks.push(_r),Wt.status=1,Bi(f,lt,Wt)}catch(Re){throw Wt.status=f.status===12?3:4,Re}finally{p.blockedSegment=jt,p.blockedPreamble=at,p.keyPath=_,p.formatContext=V}p=Jr(f,null,D,-1,me,ae,me.contentPreamble,me.contentState,p.abortSet,C,fs(f.resumableState,p.formatContext),p.context,p.treeContext,null,W),Lr(p),f.pingedTasks.push(p)}else{p.blockedBoundary=me,p.blockedPreamble=me.contentPreamble,p.hoistableState=me.contentState,p.blockedSegment=ae,p.keyPath=C,p.formatContext=fs(f.resumableState,V),p.row=null,ae.status=6;try{if(En(f,p,D,-1),ae.lastPushedText&&ae.textEmbedded&&ae.chunks.push(_r),ae.status=1,Bi(f,me,ae),Ir(me,ae),me.pendingTasks===0&&me.status===0){if(me.status=1,!nr(f,me)){Et!==null&&--Et.pendingTasks===0&&wi(f,Et),f.pendingRootTasks===0&&p.blockedPreamble&&gr(f);break t}}else Et!==null&&Et.together&&zl(f,Et)}catch(Re){me.status=4,f.status===12?(ae.status=3,W=f.fatalError):(ae.status=4,W=Re),$=Ke(p.componentStack),vt=On(f,W,$),me.errorDigest=vt,Ns(f,me)}finally{p.blockedBoundary=lt,p.blockedPreamble=at,p.hoistableState=Bt,p.blockedSegment=jt,p.keyPath=_,p.formatContext=V,p.row=Et}p=Jr(f,null,se,-1,lt,Wt,me.fallbackPreamble,me.fallbackState,ye,[C[0],"Suspense Fallback",C[2]],Ea(f.resumableState,p.formatContext),p.context,p.treeContext,p.row,ir(p.componentStack)),Lr(p),f.pingedTasks.push(p)}}return}if(typeof _=="object"&&_!==null)switch(_.$$typeof){case b:if("ref"in D)for(jt in W={},D)jt!=="ref"&&(W[jt]=D[jt]);else W=D;_=jo(f,p,C,_.render,W,V),rr(f,p,C,_,Mn!==0,Ve,xn);return;case k:As(f,p,C,_.type,D,V);return;case m:if($=D.children,W=p.keyPath,D=D.value,vt=_._currentValue,_._currentValue=D,V=vi,vi=_={parent:V,depth:V===null?0:V.depth+1,context:_,parentValue:vt,value:D},p.context=_,p.keyPath=C,Tn(f,p,$,-1),f=vi,f===null)throw Error(n(403));f.context._currentValue=f.parentValue,f=vi=f.parent,p.context=f,p.keyPath=W;return;case h:D=D.children,_=D(_._context._currentValue),D=p.keyPath,p.keyPath=C,Tn(f,p,_,-1),p.keyPath=D;return;case R:if(W=_._init,_=W(_._payload),f.status===12)throw null;As(f,p,C,_,D,V);return}throw Error(n(130,_==null?_:typeof _,""))}}function sr(f,p,C,_,D){var V=p.replay,W=p.blockedBoundary,at=ai(f,0,null,p.formatContext,!1,!1);at.id=C,at.parentFlushed=!0;try{p.replay=null,p.blockedSegment=at,En(f,p,_,D),at.status=1,Bi(f,W,at),W===null?f.completedRootSegment=at:(Ir(W,at),W.parentFlushed&&f.partialBoundaries.push(W))}finally{p.replay=V,p.blockedSegment=null}}function Tn(f,p,C,_){p.replay!==null&&typeof p.replay.slots=="number"?sr(f,p,p.replay.slots,C,_):(p.node=C,p.childIndex=_,C=p.componentStack,Lr(p),Fo(f,p),p.componentStack=C)}function Fo(f,p){var C=p.node,_=p.childIndex;if(C!==null){if(typeof C=="object"){switch(C.$$typeof){case i:var D=C.type,V=C.key,W=C.props;C=W.ref;var at=C!==void 0?C:null,$=Lo(D),lt=V??(_===-1?0:_);if(V=[p.keyPath,$,lt],p.replay!==null)t:{var vt=p.replay;for(_=vt.nodes,C=0;C<_.length;C++){var Et=_[C];if(lt===Et[1]){if(Et.length===4){if($!==null&&$!==Et[0])throw Error(n(490,Et[0],$));var Bt=Et[2];$=Et[3],lt=p.node,p.replay={nodes:Bt,slots:$,pendingTasks:1};try{if(As(f,p,V,D,W,at),p.replay.pendingTasks===1&&0<p.replay.nodes.length)throw Error(n(488));p.replay.pendingTasks--}catch(oe){if(typeof oe=="object"&&oe!==null&&(oe===Ft||typeof oe.then=="function"))throw p.node===lt?p.replay=vt:_.splice(C,1),oe;p.replay.pendingTasks--,W=Ke(p.componentStack),V=f,f=p.blockedBoundary,D=oe,W=On(V,D,W),ua(V,f,Bt,$,D,W)}p.replay=vt}else{if(D!==y)throw Error(n(490,"Suspense",Lo(D)||"Unknown"));e:{vt=void 0,D=Et[5],at=Et[2],$=Et[3],lt=Et[4]===null?[]:Et[4][2],Et=Et[4]===null?null:Et[4][3];var jt=p.keyPath,se=p.formatContext,ye=p.row,me=p.replay,Wt=p.blockedBoundary,ae=p.hoistableState,Re=W.children,oi=W.fallback,li=new Set;W=2>p.formatContext.insertionMode?Xi(f,p.row,li,yn(),yn()):Xi(f,p.row,li,null,null),W.parentFlushed=!0,W.rootSegmentID=D,p.blockedBoundary=W,p.hoistableState=W.contentState,p.keyPath=V,p.formatContext=fs(f.resumableState,se),p.row=null,p.replay={nodes:at,slots:$,pendingTasks:1};try{if(En(f,p,Re,-1),p.replay.pendingTasks===1&&0<p.replay.nodes.length)throw Error(n(488));if(p.replay.pendingTasks--,W.pendingTasks===0&&W.status===0){W.status=1,f.completedBoundaries.push(W);break e}}catch(oe){W.status=4,Bt=Ke(p.componentStack),vt=On(f,oe,Bt),W.errorDigest=vt,p.replay.pendingTasks--,f.clientRenderedBoundaries.push(W)}finally{p.blockedBoundary=Wt,p.hoistableState=ae,p.replay=me,p.keyPath=jt,p.formatContext=se,p.row=ye}Bt=Bo(f,null,{nodes:lt,slots:Et,pendingTasks:0},oi,-1,Wt,W.fallbackState,li,[V[0],"Suspense Fallback",V[2]],Ea(f.resumableState,p.formatContext),p.context,p.treeContext,p.row,ir(p.componentStack)),Lr(Bt),f.pingedTasks.push(Bt)}}_.splice(C,1);break t}}}else As(f,p,V,D,W,at);return;case a:throw Error(n(257));case R:if(Bt=C._init,C=Bt(C._payload),f.status===12)throw null;Tn(f,p,C,_);return}if(Z(C)){Ga(f,p,C,_);return}if((Bt=Y(C))&&(Bt=Bt.call(C))){if(C=Bt.next(),!C.done){W=[];do W.push(C.value),C=Bt.next();while(!C.done);Ga(f,p,W,_)}return}if(typeof C.then=="function")return p.thenableState=null,Tn(f,p,Nl(C),_);if(C.$$typeof===m)return Tn(f,p,C._currentValue,_);throw _=Object.prototype.toString.call(C),Error(n(31,_==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":_))}typeof C=="string"?(_=p.blockedSegment,_!==null&&(_.lastPushedText=md(_.chunks,C,f.renderState,_.lastPushedText))):(typeof C=="number"||typeof C=="bigint")&&(_=p.blockedSegment,_!==null&&(_.lastPushedText=md(_.chunks,""+C,f.renderState,_.lastPushedText)))}}function Ga(f,p,C,_){var D=p.keyPath;if(_!==-1&&(p.keyPath=[p.keyPath,"Fragment",_],p.replay!==null)){for(var V=p.replay,W=V.nodes,at=0;at<W.length;at++){var $=W[at];if($[1]===_){_=$[2],$=$[3],p.replay={nodes:_,slots:$,pendingTasks:1};try{if(Ga(f,p,C,-1),p.replay.pendingTasks===1&&0<p.replay.nodes.length)throw Error(n(488));p.replay.pendingTasks--}catch(Et){if(typeof Et=="object"&&Et!==null&&(Et===Ft||typeof Et.then=="function"))throw Et;p.replay.pendingTasks--,C=Ke(p.componentStack);var lt=p.blockedBoundary,vt=Et;C=On(f,vt,C),ua(f,lt,_,$,vt,C)}p.replay=V,W.splice(at,1);break}}p.keyPath=D;return}if(V=p.treeContext,W=C.length,p.replay!==null&&(at=p.replay.slots,at!==null&&typeof at=="object")){for(_=0;_<W;_++)$=C[_],p.treeContext=Q(V,W,_),lt=at[_],typeof lt=="number"?(sr(f,p,lt,$,_),delete at[_]):En(f,p,$,_);p.treeContext=V,p.keyPath=D;return}for(at=0;at<W;at++)_=C[at],p.treeContext=Q(V,W,at),En(f,p,_,at);p.treeContext=V,p.keyPath=D}function Zc(f,p,C){if(C.status=5,C.rootSegmentID=f.nextSegmentId++,f=C.trackedContentKeyPath,f===null)throw Error(n(486));var _=C.trackedFallbackNode,D=[],V=p.workingMap.get(f);return V===void 0?(C=[f[1],f[2],D,null,_,C.rootSegmentID],p.workingMap.set(f,C),Go(C,f[0],p),C):(V[4]=_,V[5]=C.rootSegmentID,V)}function Dl(f,p,C,_){_.status=5;var D=C.keyPath,V=C.blockedBoundary;if(V===null)_.id=f.nextSegmentId++,p.rootSlots=_.id,f.completedRootSegment!==null&&(f.completedRootSegment.status=5);else{if(V!==null&&V.status===0){var W=Zc(f,p,V);if(V.trackedContentKeyPath===D&&C.childIndex===-1){_.id===-1&&(_.id=_.parentFlushed?V.rootSegmentID:f.nextSegmentId++),W[3]=_.id;return}}if(_.id===-1&&(_.id=_.parentFlushed&&V!==null?V.rootSegmentID:f.nextSegmentId++),C.childIndex===-1)D===null?p.rootSlots=_.id:(C=p.workingMap.get(D),C===void 0?(C=[D[1],D[2],[],_.id],Go(C,D[0],p)):C[3]=_.id);else{if(D===null){if(f=p.rootSlots,f===null)f=p.rootSlots={};else if(typeof f=="number")throw Error(n(491))}else if(V=p.workingMap,W=V.get(D),W===void 0)f={},W=[D[1],D[2],[],f],V.set(D,W),Go(W,D[0],p);else if(f=W[3],f===null)f=W[3]={};else if(typeof f=="number")throw Error(n(491));f[C.childIndex]=_.id}}}function Ns(f,p){f=f.trackedPostpones,f!==null&&(p=p.trackedContentKeyPath,p!==null&&(p=f.workingMap.get(p),p!==void 0&&(p.length=4,p[2]=[],p[3]=null)))}function Uo(f,p,C){return Bo(f,C,p.replay,p.node,p.childIndex,p.blockedBoundary,p.hoistableState,p.abortSet,p.keyPath,p.formatContext,p.context,p.treeContext,p.row,p.componentStack)}function Vo(f,p,C){var _=p.blockedSegment,D=ai(f,_.chunks.length,null,p.formatContext,_.lastPushedText,!0);return _.children.push(D),_.lastPushedText=!1,Jr(f,C,p.node,p.childIndex,p.blockedBoundary,D,p.blockedPreamble,p.hoistableState,p.abortSet,p.keyPath,p.formatContext,p.context,p.treeContext,p.row,p.componentStack)}function En(f,p,C,_){var D=p.formatContext,V=p.context,W=p.keyPath,at=p.treeContext,$=p.componentStack,lt=p.blockedSegment;if(lt===null){lt=p.replay;try{return Tn(f,p,C,_)}catch(Bt){if(Di(),C=Bt===Ft?ge():Bt,f.status!==12&&typeof C=="object"&&C!==null){if(typeof C.then=="function"){_=Bt===Ft?Rn():null,f=Uo(f,p,_).ping,C.then(f,f),p.formatContext=D,p.context=V,p.keyPath=W,p.treeContext=at,p.componentStack=$,p.replay=lt,A(V);return}if(C.message==="Maximum call stack size exceeded"){C=Bt===Ft?Rn():null,C=Uo(f,p,C),f.pingedTasks.push(C),p.formatContext=D,p.context=V,p.keyPath=W,p.treeContext=at,p.componentStack=$,p.replay=lt,A(V);return}}}}else{var vt=lt.children.length,Et=lt.chunks.length;try{return Tn(f,p,C,_)}catch(Bt){if(Di(),lt.children.length=vt,lt.chunks.length=Et,C=Bt===Ft?ge():Bt,f.status!==12&&typeof C=="object"&&C!==null){if(typeof C.then=="function"){lt=C,C=Bt===Ft?Rn():null,f=Vo(f,p,C).ping,lt.then(f,f),p.formatContext=D,p.context=V,p.keyPath=W,p.treeContext=at,p.componentStack=$,A(V);return}if(C.message==="Maximum call stack size exceeded"){lt=Bt===Ft?Rn():null,lt=Vo(f,p,lt),f.pingedTasks.push(lt),p.formatContext=D,p.context=V,p.keyPath=W,p.treeContext=at,p.componentStack=$,A(V);return}}}}throw p.formatContext=D,p.context=V,p.keyPath=W,p.treeContext=at,A(V),C}function zs(f){var p=f.blockedBoundary,C=f.blockedSegment;C!==null&&(C.status=3,Qi(this,p,f.row,C))}function ua(f,p,C,_,D,V){for(var W=0;W<C.length;W++){var at=C[W];if(at.length===4)ua(f,p,at[2],at[3],D,V);else{at=at[5];var $=f,lt=V,vt=Xi($,null,new Set,null,null);vt.parentFlushed=!0,vt.rootSegmentID=at,vt.status=4,vt.errorDigest=lt,vt.parentFlushed&&$.clientRenderedBoundaries.push(vt)}}if(C.length=0,_!==null){if(p===null)throw Error(n(487));if(p.status!==4&&(p.status=4,p.errorDigest=V,p.parentFlushed&&f.clientRenderedBoundaries.push(p)),typeof _=="object")for(var Et in _)delete _[Et]}}function Ds(f,p,C){var _=f.blockedBoundary,D=f.blockedSegment;if(D!==null){if(D.status===6)return;D.status=3}var V=Ke(f.componentStack);if(_===null){if(p.status!==13&&p.status!==14){if(_=f.replay,_===null){p.trackedPostpones!==null&&D!==null?(_=p.trackedPostpones,On(p,C,V),Dl(p,_,f,D),Qi(p,null,f.row,D)):(On(p,C,V),Ha(p,C));return}_.pendingTasks--,_.pendingTasks===0&&0<_.nodes.length&&(D=On(p,C,V),ua(p,null,_.nodes,_.slots,C,D)),p.pendingRootTasks--,p.pendingRootTasks===0&&Ol(p)}}else{var W=p.trackedPostpones;if(_.status!==4){if(W!==null&&D!==null)return On(p,C,V),Dl(p,W,f,D),_.fallbackAbortableTasks.forEach(function(at){return Ds(at,p,C)}),_.fallbackAbortableTasks.clear(),Qi(p,_,f.row,D);_.status=4,D=On(p,C,V),_.status=4,_.errorDigest=D,Ns(p,_),_.parentFlushed&&p.clientRenderedBoundaries.push(_)}_.pendingTasks--,D=_.row,D!==null&&--D.pendingTasks===0&&wi(p,D),_.fallbackAbortableTasks.forEach(function(at){return Ds(at,p,C)}),_.fallbackAbortableTasks.clear()}f=f.row,f!==null&&--f.pendingTasks===0&&wi(p,f),p.allPendingTasks--,p.allPendingTasks===0&&Ho(p)}function da(f,p){try{var C=f.renderState,_=C.onHeaders;if(_){var D=C.headers;if(D){C.headers=null;var V=D.preconnects;if(D.fontPreloads&&(V&&(V+=", "),V+=D.fontPreloads),D.highImagePreloads&&(V&&(V+=", "),V+=D.highImagePreloads),!p){var W=C.styles.values(),at=W.next();t:for(;0<D.remainingCapacity&&!at.done;at=W.next())for(var $=at.value.sheets.values(),lt=$.next();0<D.remainingCapacity&&!lt.done;lt=$.next()){var vt=lt.value,Et=vt.props,Bt=Et.href,jt=vt.props,se=ri(jt.href,"style",{crossOrigin:jt.crossOrigin,integrity:jt.integrity,nonce:jt.nonce,type:jt.type,fetchPriority:jt.fetchPriority,referrerPolicy:jt.referrerPolicy,media:jt.media});if(0<=(D.remainingCapacity-=se.length+2))C.resets.style[Bt]=Nn,V&&(V+=", "),V+=se,C.resets.style[Bt]=typeof Et.crossOrigin=="string"||typeof Et.integrity=="string"?[Et.crossOrigin,Et.integrity]:Nn;else break t}}_(V?{Link:V}:{})}}}catch(ye){On(f,ye,{})}}function Ol(f){f.trackedPostpones===null&&da(f,!0),f.trackedPostpones===null&&gr(f),f.onShellError=_t,f=f.onShellReady,f()}function Ho(f){da(f,f.trackedPostpones===null?!0:f.completedRootSegment===null||f.completedRootSegment.status!==5),gr(f),f=f.onAllReady,f()}function Ir(f,p){if(p.chunks.length===0&&p.children.length===1&&p.children[0].boundary===null&&p.children[0].id===-1){var C=p.children[0];C.id=p.id,C.parentFlushed=!0,C.status!==1&&C.status!==3&&C.status!==4||Ir(f,C)}else f.completedSegments.push(p)}function Bi(f,p,C){if(X!==null){C=C.chunks;for(var _=0,D=0;D<C.length;D++)_+=C[D].byteLength;p===null?f.byteSize+=_:p.byteSize+=_}}function Qi(f,p,C,_){if(C!==null&&(--C.pendingTasks===0?wi(f,C):C.together&&zl(f,C)),f.allPendingTasks--,p===null){if(_!==null&&_.parentFlushed){if(f.completedRootSegment!==null)throw Error(n(389));f.completedRootSegment=_}f.pendingRootTasks--,f.pendingRootTasks===0&&Ol(f)}else if(p.pendingTasks--,p.status!==4)if(p.pendingTasks===0){if(p.status===0&&(p.status=1),_!==null&&_.parentFlushed&&(_.status===1||_.status===3)&&Ir(p,_),p.parentFlushed&&f.completedBoundaries.push(p),p.status===1)C=p.row,C!==null&&Va(C.hoistables,p.contentState),nr(f,p)||(p.fallbackAbortableTasks.forEach(zs,f),p.fallbackAbortableTasks.clear(),C!==null&&--C.pendingTasks===0&&wi(f,C)),f.pendingRootTasks===0&&f.trackedPostpones===null&&p.contentPreamble!==null&&gr(f);else if(p.status===5&&(p=p.row,p!==null)){if(f.trackedPostpones!==null){C=f.trackedPostpones;var D=p.next;if(D!==null&&(_=D.boundaries,_!==null))for(D.boundaries=null,D=0;D<_.length;D++){var V=_[D];Zc(f,C,V),Qi(f,V,null,null)}}--p.pendingTasks===0&&wi(f,p)}}else _===null||!_.parentFlushed||_.status!==1&&_.status!==3||(Ir(p,_),p.completedSegments.length===1&&p.parentFlushed&&f.partialBoundaries.push(p)),p=p.row,p!==null&&p.together&&zl(f,p);f.allPendingTasks===0&&Ho(f)}function Jc(f){if(f.status!==14&&f.status!==13){var p=vi,C=we.H;we.H=Kc;var _=we.A;we.A=rn;var D=qe;qe=f;var V=kn;kn=f.resumableState;try{var W=f.pingedTasks,at;for(at=0;at<W.length;at++){var $=W[at],lt=f,vt=$.blockedSegment;if(vt===null){var Et=lt;if($.replay.pendingTasks!==0){A($.context);try{if(typeof $.replay.slots=="number"?sr(Et,$,$.replay.slots,$.node,$.childIndex):Fo(Et,$),$.replay.pendingTasks===1&&0<$.replay.nodes.length)throw Error(n(488));$.replay.pendingTasks--,$.abortSet.delete($),Qi(Et,$.blockedBoundary,$.row,null)}catch(Zn){Di();var Bt=Zn===Ft?ge():Zn;if(typeof Bt=="object"&&Bt!==null&&typeof Bt.then=="function"){var jt=$.ping;Bt.then(jt,jt),$.thenableState=Zn===Ft?Rn():null}else{$.replay.pendingTasks--,$.abortSet.delete($);var se=Ke($.componentStack);lt=void 0;var ye=Et,me=$.blockedBoundary,Wt=Et.status===12?Et.fatalError:Bt,ae=$.replay.nodes,Re=$.replay.slots;lt=On(ye,Wt,se),ua(ye,me,ae,Re,Wt,lt),Et.pendingRootTasks--,Et.pendingRootTasks===0&&Ol(Et),Et.allPendingTasks--,Et.allPendingTasks===0&&Ho(Et)}}finally{}}}else if(Et=void 0,ye=vt,ye.status===0){ye.status=6,A($.context);var oi=ye.children.length,li=ye.chunks.length;try{Fo(lt,$),ye.lastPushedText&&ye.textEmbedded&&ye.chunks.push(_r),$.abortSet.delete($),ye.status=1,Bi(lt,$.blockedBoundary,ye),Qi(lt,$.blockedBoundary,$.row,ye)}catch(Zn){Di(),ye.children.length=oi,ye.chunks.length=li;var oe=Zn===Ft?ge():lt.status===12?lt.fatalError:Zn;if(lt.status===12&<.trackedPostpones!==null){var Un=lt.trackedPostpones,sn=Ke($.componentStack);$.abortSet.delete($),On(lt,oe,sn),Dl(lt,Un,$,ye),Qi(lt,$.blockedBoundary,$.row,ye)}else if(typeof oe=="object"&&oe!==null&&typeof oe.then=="function"){ye.status=0,$.thenableState=Zn===Ft?Rn():null;var Pn=$.ping;oe.then(Pn,Pn)}else{var Os=Ke($.componentStack);$.abortSet.delete($),ye.status=4;var pe=$.blockedBoundary,ts=$.row;if(ts!==null&&--ts.pendingTasks===0&&wi(lt,ts),lt.allPendingTasks--,Et=On(lt,oe,Os),pe===null)Ha(lt,oe);else if(pe.pendingTasks--,pe.status!==4){pe.status=4,pe.errorDigest=Et,Ns(lt,pe);var yr=pe.row;yr!==null&&--yr.pendingTasks===0&&wi(lt,yr),pe.parentFlushed&<.clientRenderedBoundaries.push(pe),lt.pendingRootTasks===0&<.trackedPostpones===null&&pe.contentPreamble!==null&&gr(lt)}lt.allPendingTasks===0&&Ho(lt)}}finally{}}}W.splice(0,at),f.destination!==null&&Ka(f,f.destination)}catch(Zn){On(f,Zn,{}),Ha(f,Zn)}finally{kn=V,we.H=C,we.A=_,C===Kc&&A(p),qe=D}}}function ar(f,p,C){p.preambleChildren.length&&C.push(p.preambleChildren);for(var _=!1,D=0;D<p.children.length;D++)_=Ya(f,p.children[D],C)||_;return _}function Ya(f,p,C){var _=p.boundary;if(_===null)return ar(f,p,C);var D=_.contentPreamble,V=_.fallbackPreamble;if(D===null||V===null)return!1;switch(_.status){case 1:if(xl(f.renderState,D),f.byteSize+=_.byteSize,p=_.completedSegments[0],!p)throw Error(n(391));return ar(f,p,C);case 5:if(f.trackedPostpones!==null)return!0;case 4:if(p.status===1)return xl(f.renderState,V),ar(f,p,C);default:return!0}}function gr(f){if(f.completedRootSegment&&f.completedPreambleSegments===null){var p=[],C=f.byteSize,_=Ya(f,f.completedRootSegment,p),D=f.renderState.preamble;_===!1||D.headChunks&&D.bodyChunks?f.completedPreambleSegments=p:f.byteSize=C}}function Br(f,p,C,_){switch(C.parentFlushed=!0,C.status){case 0:C.id=f.nextSegmentId++;case 5:return _=C.id,C.lastPushedText=!1,C.textEmbedded=!1,f=f.renderState,j(p,vd),j(p,f.placeholderPrefix),f=K(_.toString(16)),j(p,f),J(p,To);case 1:C.status=2;var D=!0,V=C.chunks,W=0;C=C.children;for(var at=0;at<C.length;at++){for(D=C[at];W<D.index;W++)j(p,V[W]);D=Wa(f,p,D,_)}for(;W<V.length-1;W++)j(p,V[W]);return W<V.length&&(D=J(p,V[W])),D;case 3:return!0;default:throw Error(n(390))}}var pr=0;function Wa(f,p,C,_){var D=C.boundary;if(D===null)return Br(f,p,C,_);if(D.parentFlushed=!0,D.status===4){var V=D.row;V!==null&&--V.pendingTasks===0&&wi(f,V),D=D.errorDigest,J(p,Ni),j(p,xs),D&&(j(p,Mo),j(p,K(Ut(D))),j(p,Eo)),J(p,Ro),Br(f,p,C,_)}else if(D.status!==1)D.status===0&&(D.rootSegmentID=f.nextSegmentId++),0<D.completedSegments.length&&f.partialBoundaries.push(D),Na(p,f.renderState,D.rootSegmentID),_&&Va(_,D.fallbackState),Br(f,p,C,_);else if(!jr&&nr(f,D)&&(pr+D.byteSize>f.progressiveChunkSize||Qr(D.contentState)))D.rootSegmentID=f.nextSegmentId++,f.completedBoundaries.push(D),Na(p,f.renderState,D.rootSegmentID),Br(f,p,C,_);else{if(pr+=D.byteSize,_&&Va(_,D.contentState),C=D.row,C!==null&&nr(f,D)&&--C.pendingTasks===0&&wi(f,C),J(p,Wh),C=D.completedSegments,C.length!==1)throw Error(n(391));Wa(f,p,C[0],_)}return J(p,pi)}function ji(f,p,C,_){return Ao(p,f.renderState,C.parentFormatContext,C.id),Wa(f,p,C,_),Tl(p,C.parentFormatContext)}function qc(f,p,C){pr=C.byteSize;for(var _=C.completedSegments,D=0;D<_.length;D++)qr(f,p,C,_[D]);_.length=0,_=C.row,_!==null&&nr(f,C)&&--_.pendingTasks===0&&wi(f,_),Xr(p,C.contentState,f.renderState),_=f.resumableState,f=f.renderState,D=C.rootSegmentID,C=C.contentState;var V=f.stylesToHoist;return f.stylesToHoist=!1,j(p,f.startInlineScript),j(p,Ye),V?((_.instructions&4)===0&&(_.instructions|=4,j(p,No)),(_.instructions&2)===0&&(_.instructions|=2,j(p,El)),(_.instructions&8)===0?(_.instructions|=8,j(p,Nm)):j(p,Qh)):((_.instructions&2)===0&&(_.instructions|=2,j(p,El)),j(p,Xh)),_=K(D.toString(16)),j(p,f.boundaryPrefix),j(p,_),j(p,kc),j(p,f.segmentPrefix),j(p,_),V?(j(p,zm),Fn(p,C)):j(p,_c),C=J(p,Zh),ea(p,f)&&C}function qr(f,p,C,_){if(_.status===2)return!0;var D=C.contentState,V=_.id;if(V===-1){if((_.id=C.rootSegmentID)===-1)throw Error(n(392));return ji(f,p,_,D)}return V===C.rootSegmentID?ji(f,p,_,D):(ji(f,p,_,D),C=f.resumableState,f=f.renderState,j(p,f.startInlineScript),j(p,Ye),(C.instructions&1)===0?(C.instructions|=1,j(p,Kh)):j(p,km),j(p,f.segmentPrefix),V=K(V.toString(16)),j(p,V),j(p,_m),j(p,f.placeholderPrefix),j(p,V),p=J(p,Am),p)}var jr=!1;function Ka(f,p){Rt=new Uint8Array(2048),ut=0;try{if(!(0<f.pendingRootTasks)){var C,_=f.completedRootSegment;if(_!==null){if(_.status===5)return;var D=f.completedPreambleSegments;if(D===null)return;pr=f.byteSize;var V=f.resumableState,W=f.renderState,at=W.preamble,$=at.htmlChunks,lt=at.headChunks,vt;if($){for(vt=0;vt<$.length;vt++)j(p,$[vt]);if(lt)for(vt=0;vt<lt.length;vt++)j(p,lt[vt]);else j(p,bn("head")),j(p,Ye)}else if(lt)for(vt=0;vt<lt.length;vt++)j(p,lt[vt]);var Et=W.charsetChunks;for(vt=0;vt<Et.length;vt++)j(p,Et[vt]);Et.length=0,W.preconnects.forEach(tn,p),W.preconnects.clear();var Bt=W.viewportChunks;for(vt=0;vt<Bt.length;vt++)j(p,Bt[vt]);Bt.length=0,W.fontPreloads.forEach(tn,p),W.fontPreloads.clear(),W.highImagePreloads.forEach(tn,p),W.highImagePreloads.clear(),ds=W,W.styles.forEach(Lc,p),ds=null;var jt=W.importMapChunks;for(vt=0;vt<jt.length;vt++)j(p,jt[vt]);jt.length=0,W.bootstrapScripts.forEach(tn,p),W.scripts.forEach(tn,p),W.scripts.clear(),W.bulkPreloads.forEach(tn,p),W.bulkPreloads.clear(),$||lt||(V.instructions|=32);var se=W.hoistableChunks;for(vt=0;vt<se.length;vt++)j(p,se[vt]);for(V=se.length=0;V<D.length;V++){var ye=D[V];for(W=0;W<ye.length;W++)Wa(f,p,ye[W],null)}var me=f.renderState.preamble,Wt=me.headChunks;(me.htmlChunks||Wt)&&j(p,ys("head"));var ae=me.bodyChunks;if(ae)for(D=0;D<ae.length;D++)j(p,ae[D]);Wa(f,p,_,null),f.completedRootSegment=null;var Re=f.renderState;if(f.allPendingTasks!==0||f.clientRenderedBoundaries.length!==0||f.completedBoundaries.length!==0||f.trackedPostpones!==null&&(f.trackedPostpones.rootNodes.length!==0||f.trackedPostpones.rootSlots!==null)){var oi=f.resumableState;if((oi.instructions&64)===0){if(oi.instructions|=64,j(p,Re.startInlineScript),(oi.instructions&32)===0){oi.instructions|=32;var li="_"+oi.idPrefix+"R_";j(p,Rl),j(p,K(Ut(li))),j(p,an)}j(p,Ye),j(p,bs),J(p,Xt)}}ea(p,Re)}var oe=f.renderState;_=0;var Un=oe.viewportChunks;for(_=0;_<Un.length;_++)j(p,Un[_]);Un.length=0,oe.preconnects.forEach(tn,p),oe.preconnects.clear(),oe.fontPreloads.forEach(tn,p),oe.fontPreloads.clear(),oe.highImagePreloads.forEach(tn,p),oe.highImagePreloads.clear(),oe.styles.forEach(Ic,p),oe.scripts.forEach(tn,p),oe.scripts.clear(),oe.bulkPreloads.forEach(tn,p),oe.bulkPreloads.clear();var sn=oe.hoistableChunks;for(_=0;_<sn.length;_++)j(p,sn[_]);sn.length=0;var Pn=f.clientRenderedBoundaries;for(C=0;C<Pn.length;C++){var Os=Pn[C];oe=p;var pe=f.resumableState,ts=f.renderState,yr=Os.rootSegmentID,Zn=Os.errorDigest;j(oe,ts.startInlineScript),j(oe,Ye),(pe.instructions&4)===0?(pe.instructions|=4,j(oe,bd)):j(oe,Ac),j(oe,ts.boundaryPrefix),j(oe,K(yr.toString(16))),j(oe,Nc),Zn&&(j(oe,zo),j(oe,K(Jh(Zn||""))));var or=J(oe,Dm);if(!or){f.destination=null,C++,Pn.splice(0,C);return}}Pn.splice(0,C);var Pl=f.completedBoundaries;for(C=0;C<Pl.length;C++)if(!qc(f,p,Pl[C])){f.destination=null,C++,Pl.splice(0,C);return}Pl.splice(0,C),ht(p),Rt=new Uint8Array(2048),ut=0,jr=!0;var Qa=f.partialBoundaries;for(C=0;C<Qa.length;C++){var Ps=Qa[C];t:{Pn=f,Os=p,pr=Ps.byteSize;var Za=Ps.completedSegments;for(or=0;or<Za.length;or++)if(!qr(Pn,Os,Ps,Za[or])){or++,Za.splice(0,or);var ci=!1;break t}Za.splice(0,or);var Xe=Ps.row;Xe!==null&&Xe.together&&Ps.pendingTasks===1&&(Xe.pendingTasks===1?Td(Pn,Xe,Xe.hoistables):Xe.pendingTasks--),ci=Xr(Os,Ps.contentState,Pn.renderState)}if(!ci){f.destination=null,C++,Qa.splice(0,C);return}}Qa.splice(0,C),jr=!1;var Ls=f.completedBoundaries;for(C=0;C<Ls.length;C++)if(!qc(f,p,Ls[C])){f.destination=null,C++,Ls.splice(0,C);return}Ls.splice(0,C)}}finally{jr=!1,f.allPendingTasks===0&&f.clientRenderedBoundaries.length===0&&f.completedBoundaries.length===0?(f.flushScheduled=!1,C=f.resumableState,C.hasBody&&j(p,ys("body")),C.hasHtml&&j(p,ys("html")),ht(p),f.status=14,p.close(),f.destination=null):ht(p)}}function Zi(f){f.flushScheduled=f.destination!==null,mt(function(){return Jc(f)}),ot(function(){f.status===10&&(f.status=11),f.trackedPostpones===null&&da(f,f.pendingRootTasks===0)})}function Si(f){f.flushScheduled===!1&&f.pingedTasks.length===0&&f.destination!==null&&(f.flushScheduled=!0,ot(function(){var p=f.destination;p?Ka(f,p):f.flushScheduled=!1}))}function vr(f,p){if(f.status===13)f.status=14,ft(p,f.fatalError);else if(f.status!==14&&f.destination===null){f.destination=p;try{Ka(f,p)}catch(C){On(f,C,{}),Ha(f,C)}}}function Ji(f,p){(f.status===11||f.status===10)&&(f.status=12);try{var C=f.abortableTasks;if(0<C.size){var _=p===void 0?Error(n(432)):typeof p=="object"&&p!==null&&typeof p.then=="function"?Error(n(530)):p;f.fatalError=_,C.forEach(function(D){return Ds(D,f,_)}),C.clear()}f.destination!==null&&Ka(f,f.destination)}catch(D){On(f,D,{}),Ha(f,D)}}function Go(f,p,C){if(p===null)C.rootNodes.push(f);else{var _=C.workingMap,D=_.get(p);D===void 0&&(D=[p[1],p[2],[],null],_.set(p,D),Go(D,p[0],C)),D[2].push(f)}}function Xa(f){var p=f.trackedPostpones;if(p===null||p.rootNodes.length===0&&p.rootSlots===null)return f.trackedPostpones=null;if(f.completedRootSegment===null||f.completedRootSegment.status!==5&&f.completedPreambleSegments!==null){var C=f.nextSegmentId,_=p.rootSlots,D=f.resumableState;D.bootstrapScriptContent=void 0,D.bootstrapScripts=void 0,D.bootstrapModules=void 0}else{C=0,_=-1,D=f.resumableState;var V=f.renderState;D.nextFormID=0,D.hasBody=!1,D.hasHtml=!1,D.unknownResources={font:V.resets.font},D.dnsResources=V.resets.dns,D.connectResources=V.resets.connect,D.imageResources=V.resets.image,D.styleResources=V.resets.style,D.scriptResources={},D.moduleUnknownResources={},D.moduleScriptResources={},D.instructions=0}return{nextSegmentId:C,rootFormatContext:f.rootFormatContext,progressiveChunkSize:f.progressiveChunkSize,resumableState:f.resumableState,replayNodes:p.rootNodes,replaySlots:_}}function $r(){var f=e.version;if(f!=="19.2.7")throw Error(n(527,f,"19.2.7"))}return $r(),$r(),Fu.prerender=function(f,p){return new Promise(function(C,_){var D=p?p.onHeaders:void 0,V;D&&(V=function(vt){D(new Headers(vt))});var W=fd(p?p.identifierPrefix:void 0,p?p.unstable_externalRuntimeSrc:void 0,p?p.bootstrapScriptContent:void 0,p?p.bootstrapScripts:void 0,p?p.bootstrapModules:void 0),at=ks(f,W,wc(W,void 0,p?p.unstable_externalRuntimeSrc:void 0,p?p.importMap:void 0,V,p?p.maxHeadersLength:void 0),yo(p?p.namespaceURI:void 0),p?p.progressiveChunkSize:void 0,p?p.onError:void 0,function(){var vt=new ReadableStream({type:"bytes",pull:function(Et){vr(at,Et)},cancel:function(Et){at.destination=null,Ji(at,Et)}},{highWaterMark:0});vt={postponed:Xa(at),prelude:vt},C(vt)},void 0,void 0,_,p?p.onPostpone:void 0);if(p&&p.signal){var $=p.signal;if($.aborted)Ji(at,$.reason);else{var lt=function(){Ji(at,$.reason),$.removeEventListener("abort",lt)};$.addEventListener("abort",lt)}}Zi(at)})},Fu.renderToReadableStream=function(f,p){return new Promise(function(C,_){var D,V,W=new Promise(function(jt,se){V=jt,D=se}),at=p?p.onHeaders:void 0,$;at&&($=function(jt){at(new Headers(jt))});var lt=fd(p?p.identifierPrefix:void 0,p?p.unstable_externalRuntimeSrc:void 0,p?p.bootstrapScriptContent:void 0,p?p.bootstrapScripts:void 0,p?p.bootstrapModules:void 0),vt=ca(f,lt,wc(lt,p?p.nonce:void 0,p?p.unstable_externalRuntimeSrc:void 0,p?p.importMap:void 0,$,p?p.maxHeadersLength:void 0),yo(p?p.namespaceURI:void 0),p?p.progressiveChunkSize:void 0,p?p.onError:void 0,V,function(){var jt=new ReadableStream({type:"bytes",pull:function(se){vr(vt,se)},cancel:function(se){vt.destination=null,Ji(vt,se)}},{highWaterMark:0});jt.allReady=W,C(jt)},function(jt){W.catch(function(){}),_(jt)},D,p?p.onPostpone:void 0,p?p.formState:void 0);if(p&&p.signal){var Et=p.signal;if(Et.aborted)Ji(vt,Et.reason);else{var Bt=function(){Ji(vt,Et.reason),Et.removeEventListener("abort",Bt)};Et.addEventListener("abort",Bt)}}Zi(vt)})},Fu.resume=function(f,p,C){return new Promise(function(_,D){var V,W,at=new Promise(function(Et,Bt){W=Et,V=Bt}),$=Pr(f,p,wc(p.resumableState,C?C.nonce:void 0,void 0,void 0,void 0,void 0),C?C.onError:void 0,W,function(){var Et=new ReadableStream({type:"bytes",pull:function(Bt){vr($,Bt)},cancel:function(Bt){$.destination=null,Ji($,Bt)}},{highWaterMark:0});Et.allReady=at,_(Et)},function(Et){at.catch(function(){}),D(Et)},V,C?C.onPostpone:void 0);if(C&&C.signal){var lt=C.signal;if(lt.aborted)Ji($,lt.reason);else{var vt=function(){Ji($,lt.reason),lt.removeEventListener("abort",vt)};lt.addEventListener("abort",vt)}}Zi($)})},Fu.resumeAndPrerender=function(f,p,C){return new Promise(function(_,D){var V=_s(f,p,wc(p.resumableState,void 0,void 0,void 0,void 0,void 0),C?C.onError:void 0,function(){var $=new ReadableStream({type:"bytes",pull:function(lt){vr(V,lt)},cancel:function(lt){V.destination=null,Ji(V,lt)}},{highWaterMark:0});$={postponed:Xa(V),prelude:$},_($)},void 0,void 0,D,C?C.onPostpone:void 0);if(C&&C.signal){var W=C.signal;if(W.aborted)Ji(V,W.reason);else{var at=function(){Ji(V,W.reason),W.removeEventListener("abort",at)};W.addEventListener("abort",at)}}Zi(V)})},Fu.version="19.2.7",Fu}var ZS;function HO(){if(ZS)return ju;ZS=1;var e,t;return e=UO(),t=VO(),ju.version=e.version,ju.renderToString=e.renderToString,ju.renderToStaticMarkup=e.renderToStaticMarkup,ju.renderToReadableStream=t.renderToReadableStream,ju.resume=t.resume,ju}var GO=HO();const rb={81:{d:"81.cn",n:"中国军网"},121:{d:"121.com.cn",n:"深圳台风网"},163:{d:"163.com",n:"网易公开课"},591:{d:"rent.591.com.tw",n:"591 Rental house"},2048:{d:"hjd2048.com",n:"2048 核基地"},8264:{d:"8264.com",n:"8264"},12306:{d:"kyfw.12306.cn",n:"12306"},12371:{d:"www.12371.cn",n:"共产党员网"},"005":{d:"005.tv",n:"幻之羁绊动漫网"},"0818tuan":{d:"0818tuan.com",n:"0818 团"},"0x80":{d:"0x80.pl",n:"Wojciech Muła"},"0xxx":{d:"0xxx.ws",n:"0xxx.ws"},"10000link":{d:"10000link.com",n:"10000万联网"},"10jqka":{d:"10jqka.com.cn",n:"同花顺财经"},"141jav":{d:"141jav.com",n:"141JAV"},"141ppv":{d:"141ppv.com",n:"141PPV"},"18comic":{d:"18comic.org",n:"禁漫天堂"},"19lou":{d:"19lou.com",n:"19 楼"},"1lou":{d:"1lou.me",n:"BT 之家 1LOU 站"},"1point3acres":{d:"blog.1point3acres.com",n:"一亩三分地"},"1x":{d:"1x.com",n:"1x.com"},"2023game":{d:"www.2023game.com",n:"游戏星辰"},"21caijing":{d:"21caijing.com",n:"21财经"},"2cycd":{d:"2cycd.com",n:"二次元虫洞"},"30secondsofcode":{d:"www.30secondsofcode.org",n:"30 Seconds of code"},"36kr":{d:"36kr.com",n:"36kr"},"3dmgame":{d:"3dmgame.com",n:"3DMGame"},"3kns":{d:"www.3kns.com",n:"3k-Switch游戏库"},"423down":{d:"423down.com",n:"423Down"},"4chan":{d:"4chan.org",n:"4chan"},"4gamers":{d:"www.4gamers.com.tw",n:"4Gamers"},"4khd":{d:"www.4khd.com",n:"4KHD"},"4ksj":{d:"4ksj.com",n:"4k 世界"},"4kup":{d:"4kup.net",n:"4KUP"},"500px":{d:"500px.com.cn",n:"500px 摄影社区"},"50forum":{d:"50forum.org.cn",n:"经济 50 人论坛"},"51cto":{d:"51cto.com",n:"51CTO"},"51read":{d:"m.51read.org",n:"51Read"},"52hrtt":{d:"52hrtt.com",n:"52hrtt 华人头条"},"56kog":{d:"56kog.com",n:"明月中文网"},"5eplay":{d:"csgo.5eplay.com",n:"5EPLAY"},"5music":{d:"5music.com.tw",n:"五大唱片"},"69shu":{d:"69shuba.cx",n:"69书吧"},"6park":{d:"club.6parkbbs.com",n:"留园网"},"6v123":{d:"hao6v.cc",n:"6v 电影"},"78dm":{d:"78dm.net",n:"78 动漫"},"7mmtv":{d:"7mmtv.tv",n:"7mmtv"},"8kcos":{d:"8kcosplay.com",n:"8KCosplay"},"8world":{d:"8world.com",n:"8 视界"},"91porn":{d:"91porn.com",n:"91porn"},"95mm":{d:"95mm.org",n:"MM 范"},"9to5":{d:"9to5toys.com",n:"9To5"},a9vg:{d:"a9vg.com",n:"A9VG 电玩部落"},aa1:{d:"aa1.cn",n:"夏柔"},aamacau:{d:"aamacau.com",n:"論盡媒體 AllAboutMacau Media"},abc:{d:"abc.net.au",n:"ABC News (Australian Broadcasting Corporation)"},abmedia:{d:"www.abmedia.io",n:"链新闻 ABMedia"},abskoop:{d:"nsfw.abskoop.com",n:"A 姐分享"},academia:{d:"www.academia.edu",n:"Academia"},accessbriefing:{d:"accessbriefing.com",n:"Access Briefing"},acfun:{d:"www.acfun.cn",n:"AcFun"},acg17:{d:"acg17.com",n:"ACG17"},acgvinyl:{d:"www.acgvinyl.com",n:"ACG Vinyl - 黑胶"},acpaa:{d:"acpaa.cn",n:"中华全国专利代理师协会"},acs:{d:"pubs.acs.org",n:"ACS Publications"},adquan:{d:"adquan.com",n:"广告门"},aeaweb:{d:"aeaweb.org",n:"American Economic Association"},aeon:{d:"aeon.co",n:"AEON"},afdian:{d:"afdian.net",n:"爱发电"},aflcio:{d:"aflcio.org",n:"AFL-CIO"},afr:{d:"afr.com",n:"The Australian Financial Review"},agefans:{d:"agemys.cc",n:"AGE 动漫"},agirls:{d:"agirls.aotter.net",n:"电獭少女"},agora0:{d:"agorahub.github.io",n:"AG⓪RA"},agri:{d:"agri.cn",n:"中国农业农村信息网"},ahjzu:{d:"news.ahjzu.edu.cn",n:"安徽建筑大学"},"ai-bot":{d:"ai-bot.cn",n:"AI工具集"},aiaa:{d:"arc.aiaa.org",n:"AIAA Aerospace Research Central"},aibase:{d:"aibase.com",n:"AIbase"},"aiblog-2xv":{d:"aiblog-2xv.pages.dev",n:"AI 博客"},aicaijing:{d:"www.aicaijing.com",n:"AI 财经社"},aiea:{d:"www.aiea.org",n:"Asian Innovation and Entrepreneurship Association"},aijishu:{d:"www.aijishu",n:"极术社区"},ainvest:{d:"ainvest.com",n:"AInvest"},aip:{d:"pubs.aip.org",n:"American Institute of Physics"},"air-level":{d:"air-level.com",n:"Air-Level"},airchina:{d:"www.airchina.com.cn",n:"中国国际航空公司"},aisixiang:{d:"aisixiang.com",n:"爱思想"},ajcass:{d:"ajcass.com",n:"社科期刊网"},ajmide:{d:"m.ajmide.com",n:"阿基米德 FM"},ali213:{d:"ali213.net",n:"游侠网"},alicesoft:{d:"www.alicesoft.com",n:"ALICESOFT"},alipan:{d:"www.alipan.com",n:"阿里云盘"},aliresearch:{d:"aliresearch.com",n:"阿里研究院"},alistapart:{d:"alistapart.com",n:"A List Apart"},aliyun:{d:"developer.aliyun.com",n:"阿里云"},aljazeera:{d:"aljazeera.com",n:"Aljazeera"},ally:{d:"rail.ally.net.cn",n:"艾莱资讯"},alpinelinux:{d:"alpinelinux.org",n:"Alpine Linux"},alternativeto:{d:"www.alternativeto.net",n:"AlternativeTo"},altotrain:{d:"altotrain.ca",n:"Alto - Toronto-Québec City High-Speed Rail Network"},alwayscontrol:{d:"alwayscontrol.com.cn",n:"Always Control"},amazfitwatchfaces:{d:"amazfitwatchfaces.com",n:"Amazfitwatchfaces"},amazon:{d:"amazon.com",n:"Amazon"},amz123:{d:"www.amz123.com",n:"Amz123"},android:{d:"developer.android.com",n:"Android"},anime1:{d:"anime1.me",n:"Anime1"},annualreviews:{d:"annualreviews.org",n:"Annual Reviews"},anquanke:{d:"anquanke.com",n:"安全客"},anthropic:{d:"anthropic.com",n:"Anthropic"},anytxt:{d:"anytxt.net",n:"Anytxt Searcher"},apache:{d:"apisix.apache.org",n:"Apache"},apiseven:{d:"apiseven.com",n:"支流科技"},apkpure:{d:"apkpure.com",n:"APKPure"},apnews:{d:"apnews.com",n:"AP News"},apnic:{d:"blog.apnic.net",n:"APNIC"},"app-center":{d:"install.appcenter.ms",n:"App Center"},"app-sales":{d:"app-sales.net",n:"AppSales"},apple:{d:"apple.com",n:"Apple"},appleinsider:{d:"appleinsider.com",n:"AppleInsider"},appstare:{d:"appstare.net",n:"AppStare"},appstore:{d:"apps.apple.com",n:"App Store/Mac App Store"},appstorrent:{d:"appstorrent.ru",n:"AppsTorrent"},aqara:{d:"aqara.com",n:"Aqara"},aqicn:{d:"aqicn.org",n:"空气质量"},arcteryx:{d:"arcteryx.com",n:"Arcteryx"},artstation:{d:"www.artstation.com",n:"ArtStation"},aschmelyun:{d:"aschmelyun.com",n:"Andrew Schmelyun"},asiafruitchina:{d:"asiafruitchina.net",n:"亚洲水果"},asianfanfics:{d:"asianfanfics.com",n:"Asianfanfics"},asiantolick:{d:"asiantolick.com",n:"Asian to lick"},"asmr-200":{d:"asmr-200.com",n:"ASMR Online"},asus:{d:"asus.com.cn",n:"ASUS"},atcoder:{d:"atcoder.jp",n:"AtCoder"},atptour:{d:"www.atptour.com",n:"ATP Tour"},augmentcode:{d:"augmentcode.com",n:"Augment Code"},"auto-stats":{d:"auto-stats.org.cn",n:"中国汽车工业协会统计信息网"},autocentre:{d:"autocentre.ua",n:"Автоцентр.ua"},azul:{d:"azul.com",n:"Azul"},baai:{d:"hub.baai.ac.cn",n:"北京智源人工智能研究院"},backlinko:{d:"backlinko.com",n:"Backlinko"},bad:{d:"bad.news",n:"Bad.news"},baidu:{d:"www.baidu.com",n:"百度"},baijing:{d:"baijing.cn",n:"白鲸出海"},bakamh:{d:"bakamh.com",n:"巴卡漫画"},bandcamp:{d:"bandcamp.com",n:"Bandcamp"},bandisoft:{d:"bandisoft.com",n:"Bandisoft"},"bangumi.moe":{d:"bangumi.online",n:"萌番组"},"bangumi.online":{d:"bangumi.online",n:"アニメ新番組"},"bangumi.tv":{d:"bangumi.tv",n:"Bangumi 番组计划"},banshujiang:{d:"banshujiang.cn",n:"搬书匠"},banyuetan:{d:"banyuetan.org",n:"半月谈"},baobua:{d:"baobua.com",n:"BaoBua"},baoyu:{d:"baoyu.io",n:"宝玉"},baozimh:{d:"www.baozimh.com",n:"包子漫画"},barronschina:{d:"barronschina.com.cn",n:"巴伦周刊中文版"},baselang:{n:"BaseLang"},bast:{d:"bast.net.cn",n:"北京市科学技术协会"},bbc:{d:"bbc.com",n:"BBC"},bbcnewslabs:{d:"bbcnewslabs.co.uk",n:"BBC News Labs"},bc3ts:{d:"web.bc3ts.net",n:"爆料公社"},bdys:{d:"52bdys.com",n:"哔嘀影视"},behance:{d:"www.behance.net",n:"Behance"},beijingprice:{d:"beijingprice.cn",n:"北京价格"},bellroy:{d:"bellroy.com",n:"Bellroy"},bendibao:{d:"bendibao.com",n:"本地宝"},bestblogs:{d:"www.bestblogs.dev",n:"bestblogs.dev"},bestofjs:{d:"bestofjs.org",n:"Best of JS"},bfl:{d:"bfl.ai",n:"BFL AI"},bgmlist:{d:"bgmlist.com",n:"番组放送"},bigquant:{d:"bigquant.com",n:"BigQuant"},bilibili:{d:"www.bilibili.com",n:"哔哩哔哩 bilibili"},binance:{d:"binance.com",n:"Binance"},bing:{d:"cn.bing.com",n:"Bing"},biodiscover:{d:"www.biodiscover.com",n:"biodiscover.com 生物探索"},bioone:{d:"bioone.org",n:"BioOne"},biquge:{d:"xbiquwx.la",n:"笔趣阁"},bit:{d:"cs.bit.edu.cn",n:"北京理工大学"},bitbucket:{d:"bitbucket.com",n:"Bitbucket"},bitget:{d:"bitget.com",n:"Bitget"},bitmovin:{d:"bitmovin.com",n:"Bitmovin"},bjfu:{d:"graduate.bjfu.edu.cn",n:"北京林业大学"},bjnews:{d:"www.bjnews.com.cn",n:"新京报"},bjp:{d:"www.bjp.org.cn",n:"北京天文馆"},bjsk:{d:"bjsk.org.cn",n:"北京社科网"},bjtu:{d:"bjtu.edu.cn",n:"Beijing Jiaotong University"},bjwxdxh:{d:"www.bjwxdxh.org.cn",n:"北京无线电协会"},bjx:{d:"www.bjx.com.cn",n:"北极星电力网"},blizzard:{d:"news.blizzard.com",n:"Blizzard"},blockworks:{d:"blockworks.co",n:"Blockworks"},blogread:{d:"blogread.cn",n:"技术头条"},bloomberg:{d:"www.bloomberg.com",n:"Bloomberg"},bluearchive:{d:"bluearchive.jp",n:"Blue Archive"},bluestacks:{d:"bluestacks.com",n:"BlueStacks"},bmkg:{d:"bmkg.go.id",n:"BADAN METEOROLOGI, KLIMATOLOGI, DAN GEOFISIKA(Indonesian)"},bnext:{d:"bnext.com.tw",n:"數位時代 BusinessNext"},bntnews:{d:"bntnews.co.kr",n:"bntnews"},bnu:{d:"bs.bnu.edu.cn",n:"北京师范大学"},boc:{d:"boc.cn",n:"中国银行"},bookfere:{d:"bookfere.com",n:"书伴"},bookwalker:{d:"bookwalker.com.tw",n:"BOOKWALKER電子書"},booru:{d:"mmda.booru.org",n:"Booru"},bossdesign:{d:"bossdesign.cn",n:"Boss 设计"},brave:{d:"brave.com",n:"Brave"},brooklynmuseum:{d:"www.brooklynmuseum.org",n:"Brooklyn Museum"},bse:{d:"bse.cn",n:"北京证券交易所"},bsky:{d:"bsky.app",n:"Bluesky (bsky)"},bt0:{d:"2bt0.com",n:"不太灵影视"},btbtla:{d:"www.btbtla.com",n:"BT影视"},btzj:{d:"btbtt20.com",n:"BT 之家"},buaa:{d:"news.buaa.edu.cn",n:"北京航空航天大学"},buct:{d:"buct.edu.cn",n:"北京化工大学"},bugzilla:{d:"bugzilla.org",n:"Bugzilla"},bulianglin:{d:"bulianglin.com",n:"不良林"},bullionvault:{d:"bullionvault.com",n:"BullionVault"},bupt:{d:"bupt.edu.cn",n:"北京邮电大学"},bvisness:{d:"bvisness.me",n:"Ben Visness"},bwsg:{d:"bwsg.at",n:"BWSG"},byau:{d:"byau.edu.cn",n:"黑龙江八一农垦大学"},byteclicks:{d:"byteclicks.com",n:"字节点击"},bytes:{d:"bytes.dev",n:"ui.dev"},c114:{d:"c114.com.cn",n:"C114 通信网"},caai:{d:"caai.cn",n:"中国人工智能学会"},caam:{d:"caam.org.cn",n:"中国汽车工业协会"},caareviews:{d:"caareviews.org",n:"caa.reviews"},cags:{d:"cags.cgs.gov.cn",n:"Chinese Academy of Geological Sciences"},cahkms:{d:"cahkms.org",n:"全国港澳研究会"},caicai:{d:"www.caicai.me",n:"CaiCai"},caijing:{d:"roll.caijing.com.cn",n:"财经网"},caixin:{d:"caixin.com",n:"财新博客"},caixinglobal:{d:"caixinglobal.com",n:"Caixin Global"},camchina:{d:"cste.org.cn",n:"中国管理现代化研究会"},"canada.ca":{d:"www.canada.ca",n:"Canada.ca"},cankaoxiaoxi:{d:"cankaoxiaoxi.com",n:"参考消息"},capitalmind:{d:"capitalmind.in",n:"Capitalmind"},cara:{d:"cara.app",n:"Cara"},carousell:{d:"carousell.com",n:"Carousell"},cartoonmad:{d:"cartoonmad.com",n:"動漫狂"},cas:{d:"www.cas.cn",n:"中国科学院"},casssp:{d:"casssp.org.cn",n:"中国科学学与科技政策研究会"},cast:{d:"cast.org.cn",n:"中国科学技术协会"},castanet:{d:"www.castanet.net",n:"Castanet"},castbox:{d:"castbox.fm",n:"Castbox"},catti:{d:"www.catticenter.com",n:"全国翻译专业资格水平考试 (CATTI)"},cau:{d:"ciee.cau.edu.cn",n:"中国农业大学"},caus:{d:"caus.com",n:"加美财经"},cbaigui:{d:"cbaigui.com",n:"纪妖"},cbc:{d:"cbc.ca",n:"Canadian Broadcasting Corporation"},cbndata:{d:"cbndata.com",n:"CBNData"},cbnweek:{d:"cbnweek.com",n:"第一财经杂志"},cbpanet:{d:"cbpanet.com",n:"中国豆制品网"},ccac:{d:"ccac.org.mo",n:"Macau Independent Commission Against Corruption 澳门廉政公署"},ccagm:{d:"ccagm.org.cn",n:"中国百货商业协会"},cccfna:{d:"www.cccfna.org.cn",n:"中国食品土畜进出口商会"},cccmc:{d:"www.cccmc.org.cn",n:"中国五矿化工进出口商会"},ccf:{d:"ccf.org.cn",n:"中国计算机学会"},ccfa:{d:"ccfa.org.cn",n:"中国连锁经营协会"},ccg:{d:"ccg.org.cn",n:"全球化智库"},ccmn:{d:"www.ccmn.cn",n:"长江有色网"},ccnu:{d:"ccnu.91wllm.com",n:"华中师范大学"},ccreports:{d:"www.ccreports.com.cn",n:"消费者报道"},cctv:{d:"news.cctv.com",n:"央视新闻"},cde:{d:"www.cde.org.cn",n:"国家药品审评网站"},cdi:{d:"cdi.com.cn",n:"国家高端智库 / 综合开发研究院"},cdu:{d:"www.cdu.edu.cn",n:"成都大学"},cdzjryb:{d:"zw.cdzjryb.com",n:"成都住建蓉 e 办"},ce:{d:"www.ce.cn",n:"中国经济网"},cebbank:{d:"cebbank.com",n:"中国光大银行"},ceph:{d:"ceph.io",n:"Ceph"},cfachina:{d:"cfachina.org",n:"中国期货业协会"},cffex:{d:"cffex.com.cn",n:"中国金融期货交易所"},cfmmc:{d:"cfmmc.com",n:"中国期货市场监控中心"},cfr:{d:"www.cfr.org",n:"Council on Foreign Relations"},cgtn:{d:"cgtn.com",n:"中国环球电视网"},chaincatcher:{d:"chaincatcher.com",n:"链捕手 ChainCatcher"},changba:{d:"changba.com",n:"唱吧"},chaoxing:{d:"chaoxing.com",n:"超星"},chaping:{d:"chaping.cn",n:"差评"},cherrytimes:{d:"cherrytimes.it",n:"Cherry Times"},chiculture:{d:"chiculture.org.hk",n:"通識・現代中國"},chikubi:{d:"chikubi.jp",n:"乳首ふぇち"},china:{d:"finance.china.com",n:"China.com 中华网"},chinacdc:{d:"www.chinacdc.cn",n:"中国疾病预防控制中心"},chinadaily:{d:"chinadaily.com.cn",n:"中国日报网"},chinadegrees:{d:"chinadegrees.com.cn",n:"中华人民共和国学位证书查询"},chinafactcheck:{d:"chinafactcheck.com",n:"有据"},chinaisa:{d:"chinaisa.org.cn",n:"中国钢铁工业协会"},chinamoney:{d:"chinamoney.com.cn",n:"中国货币网"},chinanews:{d:"chinanews.com.cn",n:"中国新闻网"},chinania:{d:"chinania.org.cn",n:"中国有色金属工业网"},chinaratings:{d:"chinaratings.com.cn",n:"中债资信评估有限责任公司"},chinathinktanks:{d:"www.chinathinktanks.org.cn",n:"中国智库网"},chinatimes:{d:"www.chinatimes.com",n:"中時新聞網"},chinaventure:{d:"chinaventure.com.cn",n:"投中网"},chinawriter:{d:"chinawriter.com.cn",n:"中国作家网"},chiphell:{d:"www.chiphell.com",n:"Chiphell"},chnmus:{d:"www.chnmus.net",n:"Henan Museum"},chnmuseum:{d:"www.chnmuseum.cn",n:"National Museum Of China"},chocolatey:{d:"chocolatey.org",n:"Chocolatey"},chongbuluo:{d:"www.chongbuluo.com",n:"虫部落"},chongdiantou:{d:"www.chongdiantou.com",n:"充电头网"},chsi:{d:"yz.chsi.com.cn",n:"中国研究生招生信息网"},chuanliu:{d:"chuanliu.org",n:"川流"},chuapp:{d:"chuapp.com",n:"触乐"},chub:{d:"chub.ai",n:"Chub"},cib:{d:"cib.com.cn",n:"中国兴业银行"},"cih-index":{d:"www.cih-index.com",n:"中指研究院"},ciidbnu:{d:"ciidbnu.org",n:"中国收入分配研究院"},cisia:{d:"www.cisia.org",n:"中国无机盐工业协会"},civitai:{d:"civitai.com",n:"Civitai"},ciweimao:{d:"wap.ciweimao.com",n:"刺猬猫"},cjlu:{d:"www.cjlu.edu.cn",n:"China Jiliang University"},claude:{d:"claude.com",n:"Claude"},clickme:{d:"clickme.net",n:"ClickMe"},cline:{d:"cline.bot",n:"Cline Offcial Blog"},cloudflarestatus:{d:"cloudflarestatus.com",n:"Cloudflare Status"},cloudnative:{d:"cloudnative.to",n:"云原生社区"},cls:{d:"cls.cn",n:"财联社"},cma:{d:"weather.cma.cn",n:"中国气象局"},cmde:{d:"www.cmde.org.cn",n:"国家药品监督管理局医疗器械技术审评中心"},cmpxchg8b:{d:"lock.cmpxchg8b.com",n:"cmpxchg8b"},cmu:{d:"www.cmu.edu",n:"Carnegie Mellon University"},"cn-healthcare":{d:"cn-healthcare.com",n:"健康界"},cna:{d:"cna.com.tw",n:"中央通讯社"},cnbc:{d:"search.cnbc.com",n:"CNBC"},cnbeta:{d:"cnbeta.com.tw",n:"cnBeta.COM"},cnblogs:{d:"www.cnblogs.com",n:"博客园"},cncf:{d:"cncf.io",n:"CNCF"},cneb:{d:"cneb.gov.cn",n:"中国国家应急广播"},cngal:{d:"www.cngal.org",n:"CnGal"},cngold:{d:"cngold.org.cn",n:"中国黄金协会"},cnjxol:{d:"cnjxol.com",n:"南湖清风"},cnki:{d:"navi.cnki.net",n:"中国知网"},cnljxh:{d:"cnljxh.com",n:"中国炼焦行业协会"},cntheory:{d:"paper.cntheory.com",n:"理论网"},cntv:{d:"navi.cctv.com",n:"CNTV"},cnu:{d:"cnu.edu.cn",n:"首都师范大学"},cockroachlabs:{d:"cockroachlabs.com",n:"Cockroach Labs"},codefather:{d:"www.codefather.cn",n:"编程导航"},codeforces:{d:"codeforces.com",n:"Codeforces"},cohere:{d:"cohere.com",n:"Cohere"},coindesk:{d:"coindesk.com",n:"CoinDesk"},cointelegraph:{d:"cointelegraph.com",n:"Cointelegraph"},colamanga:{d:"www.colamanga.com",n:"COLAMANGA"},"collabo-cafe":{d:"collabo-cafe.com",n:"コラボカフェ"},"comic-fuz":{d:"comic-fuz.com",n:"COMIC FUZ"},"comic-walker":{d:"comic-walker.com",n:"カドコミ(Kadocomi)"},comicat:{d:"comicat.org",n:"Comicat"},comicskingdom:{d:"comicskingdom.com",n:"Comics Kingdom"},commonhealth:{d:"commonhealth.com.tw",n:"康健"},consumer:{d:"consumer.org.hk",n:"消费者委员会"},cool18:{d:"cool18.com",n:"禁忌书屋"},coolapk:{d:"coolapk.com",n:"酷安"},coolbuy:{d:"coolbuy.com",n:"玩物志"},coolidge:{d:"coolidge.org",n:"Coolidge Corner Theatre"},coolpc:{d:"www.coolpc.com.tw",n:"原價屋"},coomer:{d:"coomer.st",n:"Coomer"},copymanga:{d:"copymanga.com",n:"拷贝漫画"},cosplaytele:{d:"cosplaytele.com",n:"CosplayTele"},costar:{d:"costar.com",n:"CoStar"},"counter-strike":{d:"counter-strike.net",n:"Counter Strike"},cpcaauto:{d:"中国汽车流通协会汽车市场研究分会",n:"cpcaauto.com"},cpcey:{d:"cpc.ey.gov.tw",n:"台湾行政院消费者保护会"},cpta:{d:"www.cpta.com.cn",n:"中国人事考试网"},cpuid:{d:"cpuid.com",n:"CPUID"},cqgas:{d:"cqgas.cn",n:"重庆燃气"},cqu:{d:"cqu.edu.cn",n:"重庆大学"},cqwu:{d:"www.cqwu.net",n:"重庆文理学院"},crac:{d:"www.crac.org.cn",n:"中国无线电协会业余无线电分会"},"creative-comic":{d:"creative-comic.tw",n:"CCC 創作集"},crossbell:{d:"crossbell.io",n:"Crossbell"},crush:{d:"www.crush.ninja",n:"CrushNinja"},cryptoslate:{d:"cryptoslate.com",n:"CryptoSlate"},cs:{d:"cs.com.cn",n:"中证网"},csdn:{d:"blog.csdn.net",n:"CSDN"},"css-tricks":{d:"css-tricks.com",n:"CSS-Tricks"},cssn:{d:"iolaw.cssn.cn",n:"Chinese Social Science Net"},cste:{d:"cste.org.cn",n:"中国技术经济学会"},csu:{d:"career.csu.edu.cn",n:"中南大学"},csust:{d:"www.csust.edu.cn",n:"长沙理工大学"},ctbu:{d:"www.ctbu.edu.cn",n:"重庆工商大学"},ctinews:{d:"ctinews.com",n:"中天新聞網"},cts:{d:"news.cts.com.tw",n:"華視"},cuc:{d:"yz.cuc.edu.cn",n:"中国传媒大学"},cuilingmag:{d:"cuilingmag.com",n:"萃嶺网"},cupl:{d:"jwc.cupl.edu.cn",n:"CUPL"},curiouscat:{d:"curiouscat.live",n:"CuriousCat"},curius:{d:"curius.app",n:"Curius"},cursor:{d:"cursor.com",n:"Cursor"},cw:{d:"cw.com.tw",n:"天下雜誌"},cybersecurityventures:{d:"cybersecurityventures.com",n:"Cybercrime Magazine"},cyzone:{d:"cyzone.cn",n:"创业邦"},cztv:{d:"cztv.com",n:"新蓝网(浙江广播电视集团)"},dahecube:{d:"dahecube.com",n:"大河财立方"},daily:{d:"app.daily.dev",n:"Daily.dev"},dailypush:{d:"dailypush.dev",n:"DailyPush"},damai:{d:"search.damai.cn",n:"大麦网"},dangdang:{d:"open.dangdang.com",n:"当当开放平台"},daoxuan:{d:"daoxuan.cc",n:"道宣的窝"},dapenti:{d:"dapenti.com",n:"喷嚏"},darwinawards:{d:"darwinawards.com",n:"Darwin Awards"},dataguidance:{d:"dataguidance.com",n:"DataGuidance"},dayanzai:{d:"dayanzai.me",n:"大眼仔旭"},dbaplus:{d:"dbaplus.cn",n:"dbaplus社群"},dblp:{d:"dblp.org",n:"DBLP"},dcard:{d:"www.dcard.tw",n:"Dcard"},dcfever:{d:"dcfever.com",n:"DCFever"},ddosi:{d:"ddosi.org",n:"雨苁博客"},deadbydaylight:{d:"deadbydaylight.com",n:"DeadbyDaylight"},deadline:{d:"deadline.com",n:"Deadline"},dealstreetasia:{d:"dealstreetasia.com",n:"DealStreetAsia"},decrypt:{d:"decrypt.co",n:"Decrypt"},dedao:{d:"dedao.cn",n:"得到"},deepin:{d:"bbs.deepin.org",n:"Deepin"},deepl:{d:"deepl.com",n:"DeepL"},deeplearning:{d:"www.deeplearning.ai",n:"DeepLearning.AI"},deepmind:{d:"deepmind.com",n:"DeepMind"},deepseek:{d:"api-docs.deepseek.com",n:"Deepseek"},dehenglaw:{d:"dehenglaw.com",n:"德恒律师事务所"},deltaio:{d:"delta.io",n:"Delta Lake"},denonbu:{d:"denonbu.jp",n:"電音部"},"dev.to":{d:"dev.to",n:"DEV Community"},devolverdigital:{d:"devolverdigital.com",n:"DevolverDigital"},devtrium:{d:"devtrium.com",n:"Devtrium"},dewu:{d:"dewu.com",n:"得物"},dgjyw:{d:"dgjyw.com",n:"东莞教研网"},dgtle:{d:"dgtle.com",n:"数字尾巴"},dgut:{d:"www.dgut.edu.cn",n:"东莞理工学院"},dhu:{d:"www.dhu.edu.cn",n:"东华大学"},diandong:{d:"diandong.com",n:"电动邦"},dianping:{d:"dianping.com",n:"大众点评"},diariofruticola:{d:"diariofruticola.cl",n:"Diario Frutícola"},diershoubing:{d:"diershoubing.com",n:"二柄 APP"},digg:{d:"digg.com",n:"Digg"},digitalcameraworld:{d:"digitalcameraworld.com",n:"Digital Camera World"},digitalpolicyalert:{d:"digitalpolicyalert.org",n:"Digital Policy Alert"},dingshao:{d:"www.dingshao.cn",n:"盯梢"},discord:{d:"discord.com",n:"Discord"},discourse:{n:"Discourse"},discuz:{d:"www.discuz.vip",n:"Discuz"},disinfo:{d:"disinfo.eu",n:"EU Disinfo Lab"},diskanalyzer:{d:"diskanalyzer.com",n:"WizTree"},distill:{d:"distill.pub",n:"Distill"},dlnews:{d:"dlnews.com",n:"DL NEWS"},dlsite:{d:"dlsite.com",n:"DLsite"},dmzj:{d:"news.dmzj.com",n:"动漫之家"},dn:{d:"dn.com",n:"DN.com"},dnaindia:{d:"dnaindia.com",n:"DNA India"},dockerhub:{d:"hub.docker.com",n:"Docker Hub"},docschina:{d:"docschina.org",n:"印记中文"},dol:{d:"announce.dol.go.th",n:"Thailand Department of Lands"},domp4:{d:"www.xlmp4.com",n:"DoMP4 影视"},dongqiudi:{d:"m.dongqiudi.com",n:"懂球帝"},"dora-world":{d:"www.dora-world.com",n:"Doraemon Channel"},dorohedoro:{d:"dorohedoro.net",n:"Dorohedoro"},douban:{d:"www.douban.com",n:"豆瓣"},douyin:{d:"douyin.com",n:"抖音直播"},douyu:{d:"www.douyu.com",n:"斗鱼直播"},dpm:{d:"www.dpm.org.cn",n:"The Palace Museum"},dribbble:{d:"dribbble.com",n:"Dribbble"},dtcj:{d:"dtcj.com",n:"DT 财经"},duckdb:{d:"duckdb.org",n:"DuckDB Foundation"},duozhi:{d:"duozhi.com",n:"多知网"},duozhuayu:{d:"duozhuayu.com",n:"多抓鱼"},dushu:{d:"card.dushu.io",n:"樊登读书"},dut:{d:"dutdice.dlut.edu.cn",n:"大连理工大学"},dw:{d:"dw.com",n:"DW Deutsche Welle"},dx2025:{d:"dx2025.com",n:"东西智库"},dxy:{d:"dxy.cn",n:"丁香园"},dykszx:{d:"www.dykszx.com",n:"德阳人事考试网"},dytt:{d:"www.dydytt.net",n:"电影天堂"},"e-hentai":{d:"e-hentai.org",n:"E-Hentai"},ea:{d:"www.ea.com",n:"EA Games"},eagle:{d:"cn.eagle.cool",n:"Eagle"},earthquake:{d:"www.ceic.ac.cn",n:"地震速报"},eastday:{d:"mini.eastday.com",n:"东方网"},eastmoney:{d:"data.eastmoney.com",n:"东方财富"},easynomad:{d:"easynomad.cn",n:"轻松游牧-远程工作聚集地"},ebc:{d:"ebc.net.tw",n:"東森新聞"},ecnu:{d:"www.ecnu.edu.cn",n:"East China Normal University 华东师范大学"},economist:{d:"economist.com",n:"The Economist"},ecust:{d:"e.ecust.edu.cn",n:"华东理工大学"},eeo:{d:"eeo.com.cn",n:"经济观察网"},efe:{d:"efe.com",n:"EFE Noticias"},egsea:{d:"egsea.com",n:"e 公司"},ehentai:{n:"E-Hentai"},ekantipur:{d:"ekantipur.com",n:"Ekantipur / कान्तिपुर (Nepal)"},elamigos:{d:"elamigos.site",n:"ElAmigos"},"elasticsearch-cn":{d:"elasticsearch.cn",n:"Elastic 中文社区"},elecfans:{d:"www.elecfans.com",n:"电子发烧友"},eleduck:{d:"eleduck.com",n:"电鸭社区"},elsevier:{d:"www.sciencedirect.com",n:"ELSEVIER"},embassy:{d:"ca.china-embassy.org",n:"中国驻外使领馆"},engineering:{d:"engineering.fyi",n:"Engineering.fyi"},englishhome:{d:"englishhome.org",n:"英語之家"},enterprisecraftsmanship:{d:"enterprisecraftsmanship.com",n:"Enterprise Craftsmanship"},epicgames:{d:"store.epicgames.com",n:"Epic Games Store"},eprice:{d:"eprice.com.tw",n:"ePrice"},eshukan:{d:"eshukan.com",n:"万维书刊网"},espn:{d:"espn.com",n:"ESPN"},esquirehk:{d:"www.esquirehk.com",n:"Esquire Hong Kong"},europechinese:{d:"europechinese.blogspot.com",n:"歐洲動態(國際)"},eventbrite:{d:"eventbrite.com",n:"Eventbrite"},eventernote:{d:"www.eventernote.com",n:"Eventernote"},everia:{d:"everia.club",n:"EVERIA.CLUB"},expats:{d:"expats.cz",n:"Expats.cz"},"f-droid":{d:"f-droid.org",n:"F-Droid"},f95zone:{d:"f95zone.to",n:"F95zone"},famitsu:{d:"famitsu.com",n:"ファミ通"},fanbox:{d:"www.fanbox.cc",n:"fanbox"},fangchan:{d:"fangchan.com",n:"中房网"},fanqienovel:{d:"fanqienovel.com",n:"番茄小说"},fansly:{d:"fansly.com",n:"Fansly"},fantia:{d:"fantia.jp",n:"Fantia"},fantube:{d:"www.fantube.tokyo",n:"FANTUBE"},fanxinzhui:{d:"fanxinzhui.com",n:"追新番"},farcaster:{d:"www.farcaster.xyz",n:"Farcaster"},farmatters:{d:"farmatters.com",n:"Farmatters"},fashionnetwork:{d:"fashionnetwork.cn",n:"FashionNetwork"},fastbull:{d:"fastbull.com",n:"FastBull"},fcbayern:{d:"fcbayern.com",n:"FC Bayern München"},fda:{d:"fda.gov",n:"U.S. Food and Drug Administration"},fediverse:{d:"fediverse.observer",n:"Fediverse"},feng:{d:"feng.com",n:"威锋"},ff14:{d:"eu.finalfantasyxiv.com",n:"FINAL FANTASY XIV"},fffdm:{d:"manhua.fffdm.com",n:"风之动漫"},finology:{d:"insider.finology.in",n:"Finology Insider"},finviz:{d:"finviz.com",n:"finviz"},firecore:{d:"firecore.com",n:"Infuse"},firefox:{d:"monitor.firefox.com",n:"Mozilla"},"fisher-spb":{d:"fisher.spb.ru",n:"Fisher Spb"},fishshell:{d:"fishshell.com",n:"fish shell"},fjdaily:{d:"fjdaily.com",n:"福建日报"},fjksbm:{d:"fjksbm.com",n:"福建考试报名网"},flashcat:{d:"flashcat.cloud",n:"Flashcat"},flyert:{d:"flyert.com.cn",n:"飞客茶馆"},focustaiwan:{d:"focustaiwan.tw",n:"Focus Taiwan"},follow:{d:"app.follow.is",n:"Follow"},followin:{d:"followin.io",n:"Followin"},foodtalks:{d:"www.foodtalks.cn",n:"FoodTalks全球食品资讯网"},foreignaffairs:{d:"www.foreignaffairs.com",n:"Foreign Affairs"},foresightnews:{d:"foresightnews.pro",n:"Foresight News"},foreverblog:{d:"www.foreverblog.cn",n:"十年之约"},forklog:{d:"forklog.com",n:"Forklog"},fortnite:{d:"fortnite.com",n:"Fortnite"},fortunechina:{d:"fortunechina.com",n:"财富中文网"},fosshub:{d:"fosshub.com",n:"FossHub"},free:{d:"free.com.tw",n:"免費資源網路社群"},freebuf:{d:"freebuf.com",n:"FreeBuf"},freecomputerbooks:{d:"freecomputerbooks.com",n:"Free Computer Books"},freewechat:{d:"freewechat.com",n:"自由微信"},freexcomic:{d:"freexcomic.com",n:"漫小肆韓漫"},ft:{d:"ft.com",n:"Financial Times"},ftchinese:{d:"ftchinese.com",n:"FT 中文网"},ftm:{d:"www.ftm.eu",n:"Follow The Money"},fuliba:{d:"fuliba2023.net",n:"福利吧"},furaffinity:{d:"furaffinity.net",n:"Furaffinity"},furstar:{d:"furstar.jp",n:"Furstar"},futunn:{d:"news.futunn.com",n:"Futubull 富途牛牛"},"fx-markets":{d:"fx-markets.com",n:"FX Markets"},fx678:{d:"fx678.com",n:"汇通网"},fxiaoke:{d:"fxiaoke.com",n:"纷享销客 CRM"},fzmtr:{d:"www.fzmtr.com",n:"福州地铁"},galxe:{d:"app.galxe.com",n:"Galxe"},gameapps:{d:"gameapps.hk",n:"GameApps.hk 香港手机游戏网"},gamebase:{d:"news.gamebase.com.tw",n:"遊戲基地 Gamebase"},gamegene:{d:"news.gamegene.cn",n:"游戏基因"},gamekee:{d:"www.gamekee.com",n:"GameKee | 游戏百科攻略"},gamer:{d:"acg.gamer.com.tw",n:"巴哈姆特電玩資訊站"},gamer520:{d:"www.gamer520.com",n:"全球游戏交流中心"},gamersecret:{d:"gamersecret.com",n:"Gamer Secret"},gamersky:{d:"gamersky.com",n:"GamerSky"},gamme:{d:"news.gamme.com.tw",n:"卡卡洛普"},ganjingworld:{d:"www.ganjingworld.com",n:"Ganjing World"},gaoyu:{d:"gaoyu.me",n:"Yu Gao"},"gc.ca":{d:"pm.gc.ca",n:"Prime Minister of Canada"},gcores:{d:"gcores.com",n:"机核网"},gdsrx:{d:"gdsrx.org.cn",n:"广东省食品药品审评认证技术协会"},gdufs:{d:"gdufs.edu.cn",n:"广东外语外贸大学"},gdut:{d:"oas.gdut.edu.cn",n:"广东工业大学"},geekpark:{d:"geekpark.net",n:"极客公园"},gelbooru:{d:"gelbooru.com",n:"Gelbooru"},gelonghui:{d:"gelonghui.com",n:"格隆汇"},genossenschaften:{d:"genossenschaften.immo",n:"Genossenschaften.immo"},geocaching:{d:"geocaching.com",n:"Geocaching"},gesiba:{d:"gesiba.at",n:"Gesiba"},getdr:{d:"getdr.com",n:"趨勢科技防詐達人"},getitfree:{d:"getitfree.cn",n:"正版中国"},gettr:{d:"gettr.com",n:"GETTR"},"gf-cn":{d:"sunborngame.com",n:"少女前线"},gigazine:{d:"gigazine.net",n:"GIGAZINE"},gihyo:{d:"gihyo.jp",n:"gihyo.jp"},gisreportsonline:{d:"www.gisreportsonline.com",n:"GIS Reports"},gitcode:{d:"gitcode.com",n:"GitCode"},gitee:{d:"gitee.com",n:"Gitee"},github:{d:"github.com",n:"GitHub"},gitkraken:{d:"gitkraken.com",n:"GitKraken"},gitpod:{d:"gitpod.io",n:"Gitpod"},"gitstar-ranking":{d:"gitstar-ranking.com",n:"Gitstar Ranking"},globallawreview:{d:"globallawreview.org",n:"环球法律评论"},gmcmonline:{d:"gmcmonline.com",n:"国门传媒在线"},gmu:{d:"gmu.cn",n:"赣南医科大学"},go:{d:"go.jp",n:"JapanGov"},gocn:{d:"gocn.vip",n:"GoCN"},gofans:{d:"gofans.cn",n:"GoFans"},gogoanimehd:{d:"developer.anitaku.to",n:"Gogoanimehd"},google:{d:"www.google.com",n:"Google"},gq:{d:"gq.com",n:"GQ"},grainoil:{d:"load.grainoil.com.cn",n:"国家粮油信息中心"},greasyfork:{d:"greasyfork.org",n:"Greasy Fork"},grist:{d:"grist.org",n:"Grist"},grubstreet:{d:"grubstreet.com",n:"Grub Street"},grupoanimal:{d:"grupoanimal.mx",n:"Grupo Animal"},gs:{d:"goldmansachs.com",n:"Goldman Sachs"},guancha:{d:"guancha.cn",n:"观察者网"},guangdiu:{d:"guangdiu.com",n:"逛丢"},guangzhoumetro:{d:"www.gzmtr.com",n:"广州地铁"},guanhai:{d:"guanhai.com.cn",n:"观海新闻"},guduodata:{d:"data.guduodata.com",n:"骨朵数据"},gumroad:{d:"gumroad.com",n:"Gumroad"},guokr:{d:"guokr.com",n:"果壳网"},guozaoke:{d:"guozaoke.com",n:"guozaoke"},gxmzu:{d:"ai.gxmzu.edu.cn",n:"广西民族大学"},gzdaily:{d:"gzdaily.cn",n:"广州日报"},gzhu:{d:"yjsy.gzhu.edu.cn",n:"广州大学"},hackernews:{d:"ycombinator.com",n:"Hacker News"},hackertalk:{d:"hackertalk.net",n:"HACKER TALK 黑客说"},hacking8:{d:"hacking8.com",n:"Hacking8"},hackmd:{d:"hackmd.io",n:"HackMD"},hackyournews:{d:"hackyournews.com",n:"HackYourNews"},hafu:{d:"www.hafu.edu.cn",n:"河南财政金融学院"},hakkatv:{d:"hakkatv.org.tw",n:"客家電視台"},hamel:{d:"hamel.dev",n:"Hamel"},hameln:{d:"syosetu.org",n:"hameln"},hanime1:{d:"hanime1.me",n:"Hanime1"},harvard:{d:"www.health.harvard.edu",n:"Harvard Health Publishing"},hashnode:{d:"hashnode.dev",n:"hashnode"},hbooker:{d:"hbooker.com",n:"欢乐书客"},hbr:{d:"hbr.org",n:"Harvard Business Review"},hdu:{d:"hdu.edu.cn",n:"杭州电子科技大学"},hebeimuseum:{d:"www.hebeimuseum.org.cn",n:"Hebei Museum"},hebtv:{d:"web.cmc.hebtv.com",n:"河北网络广播电视台"},hedwig:{d:"hedwig.pub",n:"Hedwig"},hellobtc:{d:"hellobtc.com",n:"白话区块链"},hellogithub:{d:"hellogithub.com",n:"HelloGitHub"},"hex-rays":{d:"hex-rays.com",n:"Hex-Rays"},hexun:{d:"hexun.com",n:"和讯网"},hfut:{d:"hfut.edu.cn",n:"合肥工业大学"},hicairo:{d:"hicairo.com",n:"HiFeng"},hinatazaka46:{d:"hinatazaka46.com",n:"Sakamichi Series 坂道系列官网资讯"},"hiring.cafe":{d:"hiring.cafe",n:"HiringCafe"},hit:{d:"www.hit.edu.cn",n:"哈尔滨工业大学"},hitcon:{d:"hitcon.org",n:"HITCON"},hitsz:{d:"hitsz.edu.cn",n:"哈尔滨工业大学(深圳)"},hitwh:{d:"hitwh.edu.cn",n:"哈尔滨工业大学(威海)"},hizu:{d:"hizh.cn",n:"珠海网"},hk01:{d:"hk01.com",n:"香港 01"},hkej:{d:"hkej.com",n:"信报财经新闻"},hkepc:{d:"hkepc.com",n:"HKEPC"},hket:{d:"china.hket.com",n:"香港经济日报"},hkjunkcall:{d:"hkjunkcall.com",n:"HKJunkCall 資訊中心"},hko:{d:"www.hko.gov.hk",n:"Hong Kong Observatory"},hkushop:{d:"hkushop.com",n:"環球唱片(香港)官方網上商店"},hlju:{d:"hlju.edu.cn",n:"黑龙江大学"},hljucm:{d:"yjsy.hljucm.net",n:"黑龙江中医药大学"},hnrb:{d:"voc.com.cn",n:"湖南日报"},hnu:{d:"scc.hnu.edu.cn",n:"湖南大学"},"home-assistant":{d:"www.home-assistant.io",n:"Home Assistant"},hongkong:{d:"dh.gov.hk",n:"Hong Kong Department of Health 香港卫生署"},hostmonit:{d:"stock.hostmonit.com",n:"全球主机监控"},hottoys:{d:"www.hottoys.com.hk",n:"Hot Toys"},hotukdeals:{d:"www.hotukdeals.com",n:"hotukdeals"},houxu:{d:"houxu.app",n:"后续"},howtoforge:{d:"howtoforge.com",n:"Howtoforge Linux Tutorials"},hoyolab:{d:"hoyolab.com",n:"HoYoLAB"},hpoi:{d:"www.hpoi.net",n:"Hpoi 手办维基"},hrbeu:{d:"yjsy.hrbeu.edu.cn",n:"哈尔滨工程大学"},hrbust:{d:"hrbust.edu.cn",n:"哈尔滨理工大学"},huanqiu:{d:"huanqiu.com",n:"环球网"},huawei:{d:"developer.huawei.com",n:"华为开发者联盟"},hubu:{d:"hubu.edu.cn",n:"湖北大学"},hudsonrivertrading:{d:"hudsonrivertrading.com",n:"Hudson River Trading"},huggingface:{d:"huggingface.co",n:"Huggingface"},"huijin-inv":{d:"www.huijin-inv.cn",n:"中央汇金投资有限责任公司"},huitun:{d:"www.huitun.com",n:"灰豚数据"},humanlayer:{d:"www.humanlayer.dev",n:"HumanLayer"},hunanpea:{d:"rsks.hunanpea.com",n:"湖南人事考试网"},hunau:{d:"gfxy.hunau.edu.cn",n:"湖南农业大学"},huoxian:{d:"zone.huoxian.cn",n:"火线"},hupu:{d:".hupu.com",n:"虎扑"},hust:{d:"hust.edu.cn",n:"华中科技大学"},huxiu:{d:"huxiu.com",n:"虎嗅"},hyperdash:{d:"hyperdash.info",n:"HyperDash"},hypergryph:{d:"www.hypergryph.com",n:"鹰角网络"},"i-cable":{d:"i-cable.com",n:"有線新聞"},ianspriggs:{d:"ianspriggs.com",n:"Ian Spriggss"},iapp:{d:"iapp.org",n:"IAPP"},icac:{d:"icac.org.hk",n:"Hong Kong Independent Commission Against Corruption 香港廉政公署"},icbc:{d:"icbc.com.cn",n:"中国工商银行"},idaily:{d:"idai.ly",n:"iDaily"},idolmaster:{d:"idolmaster-official.jp",n:"アイドルマスター THE IDOLM@STER"},idolypride:{d:"idolypride.jp",n:"IDOLY PRIDE 偶像荣耀"},ieee:{d:"www.ieee.org",n:"IEEE Xplore"},"ieee-security":{d:"ieee-security.org",n:"IEEE Computer Society"},iehou:{d:"iehou.com",n:"网猴线报"},ielts:{d:"ielts.neea.cn",n:"IELTS 雅思"},ifanr:{d:"www.ifanr.com",n:"爱范儿"},ifeng:{d:"feng.ifeng.com",n:"凤凰网"},"ifi-audio":{d:"ifi-audio.com",n:"iFi audio"},ifun:{d:"ifun.cool",n:"趣集"},iguoguo:{d:"iguoguo.net",n:"爱果果"},iheima:{d:"www.iheima.com",n:"i黑马网"},iiilab:{d:"www.iiilab.com",n:"人人都是自媒体"},ikea:{d:"ikea.com",n:"IKEA"},iknowwhatyoudownload:{d:"iknowwhatyoudownload.com",n:"I Know What You Download"},imagemagick:{d:"imagemagick.org",n:"ImageMagick"},imdb:{d:"www.imdb.com",n:"IMDb"},imhcg:{d:"infos.imhcg.cn",n:"imhcg的信息站"},imiker:{d:"imiker.com",n:"米课"},immich:{d:"immich.app",n:"Immich"},imop:{d:"imop.com",n:"imop"},"in-en":{d:"www.in-en.com",n:"国际能源网"},inceptionlabs:{d:"inceptionlabs.ai",n:"Inception Labs"},indianexpress:{d:"indianexpress.com",n:"The Indian Express"},indiansinkuwait:{d:"indiansinkuwait.com",n:"Indians in Kuwait"},indienova:{d:"indienova.com",n:"indienova 独立游戏"},inewsweek:{d:"inewsweek.cn",n:"中国新闻周刊"},infoq:{d:"infoq.cn",n:"InfoQ 中文"},informs:{d:"pubsonline.informs.org",n:"INFORMS"},infzm:{d:"www.infzm.com",n:"南方周末"},inoreader:{d:"inoreader.com",n:"Inoreader"},inspirehep:{d:"inspirehep.net",n:"INSPIRE"},instagram:{d:"www.instagram.com",n:"Instagram"},instructables:{d:"instructables.com",n:"Instructables"},investor:{d:"investor.org.cn",n:"中国投资者网"},iplaysoft:{d:"www.iplaysoft.com",n:"异次元软件世界"},ippa:{d:"ippa.top",n:"子方有料"},ipsw:{d:"ipsw.me",n:"IPSW.me"},"ipsw.dev":{d:"ipsw.dev",n:"IPSW.dev"},iqilu:{d:"v.iqilu.com",n:"齐鲁网"},iqiyi:{d:"iq.com",n:"爱奇艺"},iqnew:{d:"iqnew.com",n:"爱 Q 生活网"},iresearch:{d:"iresearch.com.cn",n:"艾瑞咨询"},isct:{d:"isct.ac.jp",n:"Institute of Science Tokyo"},issuehunt:{d:"issuehunt.io",n:"Issue Hunt"},itc:{d:"open.itc.cn",n:"Open Github社区"},itch:{d:"itch.io",n:"itch.io"},ithome:{d:"ithome.com",n:"iThome 台灣"},itsec:{d:"www.itsec.gov.cn",n:"中国信息安全测评中心"},iwara:{d:"www.iwara.tv",n:"iwara"},ixigua:{d:"ixigua.com",n:"西瓜视频"},"j-test":{d:"www.j-test.com",n:"实用日本语鉴定考试(J.TEST)"},jamesclear:{d:"jamesclear.com",n:"James Clear"},jandan:{d:"jandan.net",n:"煎蛋"},japanpost:{d:"trackings.post.japanpost.jp",n:"Japanpost"},javbus:{d:"www.javbus.com",n:"JavBus"},javdb:{d:"javdb.com",n:"JavDB"},javlibrary:{d:"javlibrary.com",n:"JAVLibrary"},javtiful:{d:"javtiful.com",n:"Javtiful"},javtrailers:{d:"javtrailers.com",n:"JavTrailers"},jbma:{d:"jbma.net",n:"Japan Bullion Market Association"},jd:{d:"item.jd.com",n:"京东"},jetbrains:{d:"jetbrains.com",n:"JetBrains"},jewishmuseum:{d:"thejewishmuseum.org",n:"The Jewish Museum"},jianshu:{d:"www.jianshu.com",n:"简书"},jiaoliudao:{d:"jiaoliudao.com",n:"交流岛资源网"},jiemian:{d:"jiemian.com",n:"界面新闻"},jike:{d:"m.okjike.com",n:"即刻"},jimmyspa:{d:"www.jimmyspa.com",n:"幾米 JIMMY S.P.A. Official Website"},jin10:{d:"jin10.com",n:"金十数据"},jingzhengu:{d:"www.jingzhengu.com",n:"精真估"},jinritemai:{d:"op.jinritemai.com",n:"抖店开放平台"},jinse:{d:"jinse.com.cn",n:"金色财经"},jisilu:{d:"jisilu.cn",n:"集思录"},jiuyangongshe:{d:"www.jiuyangongshe.com",n:"韭研公社"},jjwxc:{d:"jjwxc.net",n:"晋江文学城"},jl1mall:{d:"jl1mall.com",n:"吉林一号网"},jlu:{d:"jlu.edu.cn",n:"吉林大学"},joins:{d:"joins.com",n:"中央日报"},joneslanglasalle:{d:"joneslanglasalle.com.cn",n:"Jones Lang LaSalle"},jornada:{d:"jornada.com.mx",n:"La Jornada"},joshwcomeau:{d:"www.joshwcomeau.com",n:"Josh W Comeau"},jou:{d:"www.jou.edu.cn",n:"江苏海洋大学"},jpmorganchase:{d:"www.jpmorganchase.com",n:"JPMorgan Chase"},jpxgmn:{d:"www.jpxgmn.com",n:"极品性感美女"},jrj:{d:"www.jrj.com.cn",n:"金融界"},jseea:{d:"jseea.cn",n:"Unknown"},jsu:{d:"jsu.edu.cn",n:"吉首大学"},juejin:{d:"juejin.cn",n:"掘金"},jumeili:{d:"jumeili.cn",n:"聚美丽"},jump:{d:"switch.jumpvg.com",n:"JUMP"},junhe:{d:"junhe.com",n:"君合律师事务所"},kadokawa:{d:"kadokawa.com.tw",n:"台灣角川"},kakuyomu:{d:"kakuyomu.jp",n:"カクヨム"},"kamen-rider-official":{d:"kamen-rider-official.com",n:"仮面ライダ"},kantarworldpanel:{d:"kantarworldpanel.com",n:"Kantar Worldpanel"},kanxue:{d:"kanxue.com",n:"看雪"},kaopu:{d:"kaopu.news",n:"靠谱新闻"},kbs:{d:"world.kbs.co.kr",n:"KBS"},kcna:{d:"www.kcna.kp",n:"Korean Central News Agency (KCNA) 朝鲜中央通讯社"},ke:{d:"www.research.ke.com",n:"贝壳研究院"},keep:{d:"gotokeep.com",n:"Keep"},keepass:{d:"keepass.info",n:"KeePass"},kelownacapnews:{d:"www.kelownacapnews.com",n:"Kelowna Capital News"},kemono:{d:"kemono.cr",n:"Kemono"},kepu:{d:"live.kepu.net.cn",n:"中国科普博览"},keylol:{d:"keylol.com",n:"其乐"},kimlaw:{d:"kimlaw.or.kr",n:"The Korea Institute of Marine Law"},kiro:{d:"kiro.dev",n:"Kiro"},kisskiss:{d:"www.kisskiss.tv",n:"KISS"},kleinanzeigen:{d:"www.kleinanzeigen.de",n:"Kleinanzeigen"},komiic:{d:"komiic.com",n:"Komiic"},konachan:{d:"konachan.com",n:"Konachan.com Anime Wallpapers"},konghq:{d:"konghq.com",n:"Kong API 网关平台"},koreaherald:{d:"koreaherald.com",n:"The Korea Herald"},kovidgoyal:{d:"sw.kovidgoyal.net",n:"Kovid"},koyso:{d:"koyso.to",n:"Koyso"},kpmg:{d:"kpmg.com",n:"KPMG"},kpopping:{d:"kpopping.com",n:"kpopping"},ktown4u:{d:"ktown4u.com",n:"Ktown4u"},kuaidi100:{d:"kuaidi100.com",n:"快递 100"},kuaishou:{d:"kuaishou.com",n:"快手"},kunchengblog:{d:"kunchengblog.com",n:"Kun Cheng"},kurogames:{d:"www.kurogames.com",n:"库洛游戏 | Kuro Games"},kuwaitlocal:{d:"kuwaitlocal.com",n:"Kuwait Local"},kyodonews:{d:"china.kyodonews.net",n:"共同网"},laimanhua:{d:"www.laimanhua8.com",n:"来漫画"},lala:{d:"lala.im",n:"荒岛"},lancedb:{d:"lancedb.com",n:"LanceDB"},landiannews:{d:"landiannews.com",n:"蓝点网"},lang:{d:"lang.live",n:"浪 Play 直播"},langchain:{d:"blog.langchain.dev",n:"LangChain Blog"},lanqiao:{d:"lanqiao.cn",n:"蓝桥云课"},laohu8:{d:"laohu8.com",n:"老虎社区"},"last-origin":{d:"www.last-origin.com",n:"LastOrigin"},latepost:{d:"latepost.com",n:"晚点 LatePost"},layoffs:{d:"layoffs.fyi",n:"Layoffs.fyi"},leagueoflegends:{d:"leagueoflegends.com",n:"League of Legends"},learnblockchain:{d:"learnblockchain.cn",n:"登链社区"},learnku:{d:"learnku.com",n:"LearnKu"},leetcode:{d:"leetcode.com",n:"LeetCode"},leiphone:{d:"leiphone.com",n:"雷峰网"},lemmy:{d:"join-lemmy.org",n:"Lemmy"},lemonde:{d:"lemonde.fr",n:"Le Monde"},lenovo:{d:"lenovo.com.cn",n:"联想"},lens:{d:"www.lens.xyz",n:"Lens"},lephoceen:{d:"lephoceen.fr",n:"Le Phocéen"},letterboxd:{d:"letterboxd.com",n:"Letterboxd"},lfsyd:{d:"www.iyingdi.com",n:"旅法师营地"},lhratings:{d:"lhratings.com",n:"联合资信评估股份有限公司"},lianxh:{d:"www.lianxh.cn",n:"连享会"},lifeweek:{d:"lifeweek.com.cn",n:"三联生活周刊"},lightnovel:{d:"lightNovel.us",n:"轻之国度"},likeshop:{d:"likeshop.me",n:"LikeShop"},line:{d:"today.line.me",n:"LINE"},lineageos:{d:"lineageos.org",n:"LineageOS"},link3:{d:"link3.to",n:"Link3"},linkedin:{d:"linkedin.com",n:"LinkedIn"},linkresearcher:{d:"www.linkresearcher.com",n:"Link Research"},linovelib:{d:"linovelib.com",n:"哔哩轻小说"},liquipedia:{d:"liquipedia.net",n:"Liquipedia"},literotica:{d:"literotica.com",n:"Literotica"},liulinblog:{d:"liulinblog.com",n:"木木博客"},liveuamap:{d:"liveuamap.com",n:"Live Universal Awareness Map"},lkong:{d:"lkong.com",n:"龙空"},lmu:{d:"www.lmu.de",n:"Ludwig Maximilian University of Munich"},locals:{d:"locals.com",n:"Locals"},lofter:{d:"www.lofter.com",n:"Lofter"},logclub:{d:"logclub.com",n:"罗戈网"},logonews:{d:"logonews.cn",n:"LogoNews 标志情报局"},logrocket:{d:"blog.logrocket.com",n:"logrocket blog"},loltw:{d:"lol.garena.tw",n:"英雄联盟"},loongarch:{d:"loongarch.org",n:"LA UOSC社区"},lorientlejour:{d:"lorientlejour.com",n:"L"},"lovelive-anime":{d:"www.lovelive-anime.jp",n:"Love Live! Official Website"},lrepacks:{d:"lrepacks.net",n:"REPACK скачать"},lsnu:{d:"lsnu.edu.cn",n:"乐山师范学院"},ltaaa:{d:"ltaaa.cn",n:"龙腾网"},luma:{d:"lu.ma",n:"LuMa"},luogu:{d:"luogu.com.cn",n:"洛谷"},luolei:{d:"luolei.org",n:"罗磊的独立博客"},luxiangdong:{d:"luxiangdong.com",n:"土猛的员外"},lvv2:{d:"lvv2.com",n:"LVV2"},lxixsxa:{d:"www.sonymusic.co.jp",n:"LiSA"},"m-78":{d:"m-78.jp",n:"円谷ステーション"},m4:{d:"news.m4.cn",n:"四月网"},maccms:{n:"通用影视采集站视频采集接口路由"},macfilos:{d:"macfilos.com",n:"Macfilos"},macmenubar:{d:"macmenubar.com",n:"MacMenuBar"},macupdate:{d:"macupdate.com",n:"MacUpdate"},magazinelib:{d:"magazinelib.com",n:"MagazineLib"},magnumphotos:{d:"magnumphotos.com",n:"Magnum Photos"},mail:{n:"Email"},makerworld:{d:"makerworld.com",n:"MakerWorld"},malaysiakini:{d:"malaysiakini.com",n:"Malaysiakini"},mangadex:{d:"mangadex.org",n:"MangaDex"},manhuagui:{d:"www.manhuagui.com",n:"看漫画"},manus:{d:"manus.im",n:"Manus"},manyvids:{d:"www.manyvids.com",n:"ManyVids"},maoyan:{d:"maoyan.com",n:"猫眼电影"},mashiro:{d:"mashiro.best",n:"Mashiro"},mastodon:{d:"mastodon.social",n:"Mastodon"},mathpix:{d:"mathpix.com",n:"Mathpix"},matters:{d:"matters.town",n:"Matters"},maven:{d:"repo1.maven.org",n:"Maven"},mckinsey:{d:"mckinsey.com.cn",n:"麦肯锡"},mcmod:{d:"www.mcmod.cn",n:"MC百科"},mdpi:{d:"www.mdpi.com",n:"MDPI"},"medieval-china":{d:"medieval-china.club",n:"中国的中古"},medium:{d:"medium.com",n:"Medium"},medsci:{d:"medsci.cn",n:"梅斯医学 MedSci"},meishichina:{d:"meishichina.com",n:"美食天下"},meituan:{d:"meituan.com",n:"美团"},melonbooks:{d:"www.melonbooks.co.jp",n:"メロンブックス"},mercari:{d:"jp.mercari.com",n:"Mercari"},meritalk:{d:"meritalk.com",n:"MeriTalk"},meta:{d:"www.meta.com",n:"Meta"},metacritic:{d:"metacritic.com",n:"Metacritic"},meteoblue:{d:"meteoblue.com",n:"meteoblue"},meteor:{d:"meteor.today",n:"Meteor"},metmuseum:{d:"www.metmuseum.org",n:"The Metropolitan Museum of Art"},mhlw:{d:"www.mhlw.go.jp",n:"厚生労働省"},mi:{d:"mi.com",n:"小米"},microsoft:{d:"microsoft.com",n:"Microsoft"},mihoyo:{d:"genshin.hoyoverse.com",n:"米哈游"},mindmeister:{d:"mindmeister.com",n:"MindMeister"},minecraft:{d:"minecraft.net",n:"Minecraft"},mingpao:{d:"mingpao.com",n:"明報"},miniflux:{d:"miniflux.app",n:"MiniFlux"},mirror:{d:"mirror.xyz",n:"Mirror"},mirrormedia:{d:"mirrormedia.mg",n:"鏡週刊 Mirror Media"},missav:{d:"missav.ws",n:"MissAV"},misskey:{d:"misskey.io",n:"Misskey"},misskon:{d:"misskon.com",n:"MissKON"},mit:{d:"mit.edu",n:"Massachusetts Institute of Technology"},mittrchina:{d:"mittrchina.com",n:"麻省理工科技评论"},miui:{d:"miui.com",n:"MIUI"},mixcloud:{d:"www.mixcloud.com",n:"Mixcloud"},mixi2:{d:"mixi.social",n:"mixi2"},miyuki:{d:"miyuki.jp",n:"中島みゆき Official"},modb:{d:"modb.pro",n:"墨天轮"},modelscope:{d:"modelscope.cn",n:"ModelScope 魔搭社区"},modian:{d:"modian.com",n:"摩点"},modrinth:{d:"modrinth.com",n:"Modrinth"},mohw:{d:"mohw.gov.tw",n:"台灣衛生福利部"},moodysmismicrosite:{d:"www.moodysmismicrosite.com",n:"穆迪评级"},mox:{d:"mox.moe",n:"Mox.moe"},mpaypass:{d:"mpaypass.com.cn",n:"移动支付网"},mrdx:{d:"mrdx.cn",n:"新华每日电讯"},mrinalxdev:{d:"mrinalxdev.github.io",n:"Mrinal Pramanick"},mrm:{d:"mrm.com.cn",n:"华储网"},msn:{d:"msn.com",n:"MSN"},musify:{d:"musify.club",n:"musify"},musikguru:{d:"musikguru.de",n:"MusikGuru"},mwm:{d:"mwm.net.cn",n:"管理世界"},"my-formosa":{d:"my-formosa.com",n:"美麗島電子報"},mycard520:{d:"mycard520.com.tw",n:"MyCard娛樂中心"},mydrivers:{d:"m.mydrivers.com",n:"快科技"},myfans:{d:"myfans.jp",n:"myfans"},myfigurecollection:{d:"myfigurecollection.net",n:"MyFigureCollection"},mygopen:{d:"mygopen.com",n:"MyGoPen"},mymusicsheet:{d:"mymusicfive.com",n:"mymusic5 (MyMusicSheet)"},mysql:{d:"dev.mysql.com",n:"MySQL"},nanhua:{d:"mall.nanhua.net",n:"南华期货"},nankai:{d:"yzb.nankai.edu.cn",n:"南开大学"},nasa:{d:"apod.nasa.gov",n:"NASA"},natgeo:{d:"nationalgeographic.com",n:"National Geographic"},nationalgeographic:{d:"www.nationalgeographic.com",n:"National Geographic"},naturalism:{d:"naturalism.org",n:"Naturalism.org"},nature:{d:"nature.com",n:"Nature Journal"},nautil:{d:"nautil.us",n:"Nautilus"},nautiljon:{d:"nautiljon.com",n:"Nautiljon"},naver:{d:"naver.com",n:"네이버"},nbd:{d:"nbd.com.cn",n:"每经网"},nber:{d:"nber.org",n:"National Bureau of Economic Research"},"ncc-cma":{d:"cmdp.ncc-cma.net",n:"国家气候中心"},ncepu:{d:"yjsy.ncepu.edu.cn",n:"华北电力大学"},ncku:{d:"www.ncku.edu.tw",n:"National Cheng Kung University"},ncpssd:{d:"ncpssd.cn",n:"国家哲学社会科学文献中心"},ncu:{d:"jwc.ncu.edu.cn",n:"南昌大学"},ncwu:{d:"ncwu.edu.cn",n:"华北水利水电大学"},"ndss-symposium":{d:"ndss-symposium.org",n:"Network and Distributed System Security (NDSS) Symposium"},neatdownloadmanager:{d:"neatdownloadmanager.com",n:"Neat Download Manager"},neea:{d:"www.neea.cn",n:"中国教育考试网"},nenu:{d:"sohac.nenu.edu.cn",n:"东北师范大学"},netflav:{d:"netflav.com",n:"Netflav"},netflix:{d:"netflix.com",n:"Netflix"},neu:{d:"neunews.neu.edu.cn",n:"东北大学"},newmuseum:{d:"www.newmuseum.org",n:"New Museum"},newrank:{d:"newrank.cn",n:"新榜"},news:{d:"news.cn",n:"新华社"},newseed:{d:"newseed.cn",n:"新芽"},newslaundry:{d:"newslaundry.com",n:"Newslaundry"},newsmarket:{d:"newsmarket.com.tw",n:"上下游 News&Market"},newswav:{d:"newswav.com",n:"Newswav"},newyorker:{d:"newyorker.com",n:"New Yorker"},newzmz:{d:"newzmz.com",n:"NEW 字幕组"},nextapple:{d:"tw.nextapple.com",n:"壹蘋新聞網"},nextjs:{d:"nextjs.org",n:"Next.js"},nga:{d:"bbs.nga.cn",n:"NGA"},ngocn2:{d:"ngocn2.org",n:"NGOCN"},nhentai:{d:"nhentai.net",n:"nhentai"},nhk:{d:"www3.nhk.or.jp",n:"NHK"},niaogebiji:{d:"niaogebiji.com",n:"鸟哥笔记"},nicovideo:{d:"www.nicovideo.jp",n:"Niconico"},nielsberglund:{d:"nielsberglund.com",n:"Niels Berglund Blog"},nifd:{d:"www.nifd.cn",n:"国家金融与发展实验室"},nikkei:{d:"nikkei.com",n:"The Nikkei 日本経済新聞"},nintendo:{d:"nintendo.com",n:"Nintendo"},nio:{d:"nio.com",n:"NIO"},nippon:{d:"www.nippon.com",n:"走进日本"},njglyy:{d:"njglyy.com",n:"南京鼓楼医院"},njit:{d:"jwc.njit.edu.cn",n:"南京工程学院"},njnu:{d:"ceai.njnu.edu.cn",n:"南京师范大学"},nju:{d:"admission.nju.edu.cn",n:"南京大学"},njucm:{d:"lib.njucm.edu.cn",n:"南京中医药大学"},njuferret:{d:"njuferret.github.io",n:"njuferret"},njupt:{d:"jwc.njupt.edu.cn",n:"南京邮电大学"},njust:{d:"jwc.njust.edu.cn",n:"南京理工大学"},njxzc:{d:"lib.njxzc.edu.cn",n:"南京晓庄学院"},nlc:{d:"read.nlc.cn",n:"中国国家图书馆"},nltimes:{d:"nltimes.nl",n:"NL Times"},nmc:{d:"nmc.cn",n:"中央气象台"},nmtv:{d:"nmtv.cn",n:"内蒙古广播电视台"},nodejs:{d:"nodejs.org",n:"Node.js"},nogizaka46:{d:"news.nogizaka46.com",n:"Sakamichi Series 坂道系列官网资讯"},nosec:{d:"nosec.org",n:"NOSEC 安全讯息平台"},notateslaapp:{d:"notateslaapp.com",n:"Not a Tesla App"},notefolio:{d:"notefolio.net",n:"Notefolio"},notion:{d:"notion.so",n:"Notion"},now:{d:"news.now.com",n:"Now 新聞"},nowcoder:{d:"nowcoder.com",n:"牛客网"},npm:{d:"npmjs.com",n:"NPM"},npr:{d:"npr.org",n:"NPR (National Public Radio)"},ntdm:{d:"www.ntdm9.com",n:"NT动漫"},ntdtv:{d:"www.ntdtv.com",n:"新唐人电视台"},ntrblog:{d:"ntrblog.com",n:"NTR BLOG(寝取られブログ)"},nua:{d:"index.nua.edu.cn",n:"Nanjing University of the Arts 南京艺术学院"},nuaa:{d:"aao.nuaa.edu.cn",n:"南京航空航天大学"},nudt:{d:"www.nudt.edu.cn",n:"中国人民解放军国防科技大学"},nuist:{d:"bulletin.nuist.edu.cn",n:"南京信息工程大学"},nwafu:{d:"nwafu.edu.cn",n:"西北农林科技大学"},nwnu:{d:"www.nwnu.edu.cn",n:"西北师范大学"},nyaa:{d:"nyaa.si",n:"Nyaa"},nyc:{d:"nyc.gov",n:"New York City Government"},nycu:{d:"nycu.edu.tw",n:"National Yang Ming Chiao Tung University"},nymity:{d:"censorbib.nymity.ch",n:"nymity"},nytimes:{d:"nytimes.com",n:"The New York Times"},obsidian:{d:"obsidian.md",n:"Obsidian"},oceanengine:{d:"trendinsight.oceanengine.com",n:"巨量算数 - 算数指数"},oct0pu5:{d:"Oct0pu5.cn",n:"Oct0pu5 blog"},odaily:{d:"odaily.news",n:"Odaily 星球日报"},oeeee:{d:"oeeee.com",n:"南方都市报"},oesw:{d:"oesw.at",n:"ÖSW"},oevw:{d:"oevw.at",n:"ÖVW"},oilchem:{d:"oilchem.net",n:"隆众资讯"},okx:{d:"www.okx.com",n:"欧易 OKX"},olevod:{d:"olevod.one",n:"欧乐影院"},ollama:{d:"ollama.com",n:"Ollama"},oncc:{d:"hk.on.cc",n:"东网"},onehu:{d:"onehu.xyz",n:"我不是盐神"},onet:{d:"wiadomosci.onet.pl",n:"Onet"},"oo-software":{d:"oo-software.com",n:"O&O Software"},openai:{d:"openai.com",n:"OpenAI"},openalex:{d:"openalex.org",n:"OpenAlex"},openrice:{d:"www.openrice.com",n:"Openrice開飯喇"},openwrt:{d:"openwrt.org",n:"OpenWrt"},orcid:{d:"orcid.org",n:"ORCID"},oreno3d:{d:"oreno3d.com",n:"俺の 3D エロ動画 (oreno3d)"},ornl:{d:"ornl.gov",n:"Oak Ridge National Laboratory"},oschina:{d:"oschina.net",n:"开源中国"},oshwhub:{d:"oshwhub.com",n:"oshwhub 立创开源硬件平台"},osu:{d:"osu.ppy.sh",n:"osu!"},otobanana:{d:"otobanana.com",n:"OTOBANANA"},ouc:{d:"it.ouc.edu.cn",n:"中国海洋大学"},oup:{d:"academic.oup.com",n:"Oxford University Press"},outagereport:{d:"outage.report",n:"Outage.Report"},"p-articles":{d:"p-articles.com",n:"虚词"},pacilution:{d:"www.pacilution.com",n:"普世社会科学研究所"},panewslab:{d:"panewslab.com",n:"PANews"},papers:{d:"papers.cool",n:"Cool Papers"},paradigm:{d:"paradigm.xyz",n:"Paradigm"},parliament:{d:"parliament.go.th",n:"Thailand Parliament"},"parliament.uk":{d:"parliament.uk",n:"UK Parliament"},patagonia:{d:"patagonia.com",n:"Patagonia"},patreon:{d:"www.patreon.com",n:"Patreon"},paulgraham:{d:"paulgraham.com",n:"Paul Graham"},pconline:{d:"pconline.com.cn",n:"太平洋科技"},pencilnews:{d:"www.pencilnews.cn",n:"铅笔道"},"penguin-random-house":{d:"penguinrandomhouse.com",n:"Penguin Random House"},people:{d:"people.com.cn",n:"人民网"},peopo:{d:"peopo.org",n:"PeoPo 公民新聞"},perplexity:{d:"www.perplexity.ai",n:"Perplexity"},peterwunder:{d:"projects.peterwunder.de",n:"Peter Wunder"},phoronix:{d:"phoronix.com",n:"Phoronix"},pianyivps:{d:"pianyivps.com",n:"便宜VPS网"},pianyuan:{d:"pianyuan.org",n:"片源网"},picnob:{d:"www.instagram.com",n:"Instagram"},"picnob.info":{d:"www.instagram.com",n:"Instagram"},pikabu:{d:"pikabu.ru",n:"Pikabu"},pincong:{d:"pincong.rocks",n:"品葱"},pingwest:{d:"pingwest.com",n:"品玩"},pinterest:{d:"www.pinterest.com",n:"Pinterest"},pixabay:{d:"pixabay.com",n:"Pixabay"},pixelstech:{d:"pixelstech.net",n:"PixelsTech"},pixiv:{d:"www.pixiv.net",n:"pixiv"},pixivision:{d:"www.pixivision.net",n:"pixivision"},piyao:{d:"piyao.org.cn",n:"中国互联网联合辟谣平台"},pkmer:{d:"pkmer.cn",n:"PKMer"},pku:{d:"admission.pku.edu.cn",n:"北京大学"},playno1:{d:"stno1.playno1.com",n:"PLAYNO.1 玩樂達人"},playpcesor:{d:"playpcesor.com",n:"电脑玩物"},plurk:{d:"plurk.com",n:"Plurk"},pnas:{d:"pnas.org",n:"Proceedings of The National Academy of Sciences"},podwise:{d:"podwise.ai",n:"Podwise"},polymarket:{d:"polymarket.com",n:"Polymarket"},pornhub:{d:"pornhub.com",n:"PornHub"},postman:{d:"postman.com",n:"Postman"},"priconne-redive":{d:"priconne-redive.jp",n:"PRINCESS CONNECT! Re Dive プリンセスコネクト!Re Dive"},producereport:{d:"producereport.com",n:"Produce Report"},producthunt:{d:"www.producthunt.com",n:"Product Hunt"},projectjav:{d:"projectjav.com",n:"ProjectJAV"},ps:{d:"www.playstation.com",n:"PlayStation Store"},psnine:{d:"psnine.com",n:"PSN 中文站"},psyche:{d:"psyche.co",n:"Psyche"},pts:{d:"news.pts.org.tw",n:"公視新聞網"},publico:{d:"publico.es",n:"Público"},pubmed:{d:"pubmed.ncbi.nlm.nih.gov",n:"PubMed"},pubscholar:{d:"pubscholar.cn",n:"PubScholar 公益学术平台"},pumc:{d:"mdadmission.pumc.edu.cn",n:"北京协和医学院"},putty:{d:"www.chiark.greenend.org.uk",n:"PuTTY"},pwc:{d:"strategyand.pwc.com",n:"PwC Strategy&"},python:{d:"python.org",n:"Python"},qbitai:{d:"qbitai.com",n:"量子位"},qbittorrent:{d:"qbittorrent.org",n:"qBittorrent"},qdu:{d:"jwc.qdu.edu.cn",n:"青岛大学"},qianp:{d:"qianp.com",n:"千篇网"},qianzhan:{d:"qianzhan.com",n:"前瞻网"},qiche365:{d:"qiche365.org.cn",n:"汽车召回网"},qidian:{d:"qidian.com",n:"起点"},qingting:{d:"qingting.fm",n:"蜻蜓 FM"},qipamaijia:{d:"qipamaijia.com",n:"奇葩买家秀"},qiyoujiage:{d:"qiyoujiage.com",n:"汽油价格网"},qlu:{d:"qlu.edu.cn",n:"齐鲁工业大学"},qm120:{d:"qm120.com",n:"全民健康网"},"qoo-app":{d:"apps.qoo-app.com",n:"QooApp"},qq:{d:"qq.com",n:"腾讯网"},qq88:{d:"qq88.info",n:"秋爸日字"},qqorw:{d:"qqorw.cn",n:"早报网"},qstheory:{d:"www.qstheory.cn",n:"求是网"},quantamagazine:{d:"quantamagazine.org",n:"Quanta Magazine"},questmobile:{d:"questmobile.com.cn",n:"QuestMobile"},questn:{d:"app.questn.com",n:"QuestN"},quicker:{d:"getquicker.net",n:"Quicker"},qust:{d:"jw.qust.edu.cn",n:"青岛科技大学"},qweather:{d:"qweather.com",n:"和风天气"},qwen:{d:"qwen.ai",n:"Qwen Research"},qztc:{d:"www.qztc.edu.cn",n:"泉州师范学院"},radio:{d:"radio.cn",n:"云听"},"radio-canada":{d:"ici.radio-canada.ca",n:"Radio-Canada.ca"},railway:{d:"railway.com",n:"Railway"},rarehistoricalphotos:{d:"rarehistoricalphotos.com",n:"Rare Historical Photos"},raspberrypi:{d:"raspberrypi.com",n:"Raspberry Pi"},rattibha:{d:"rattibha.com",n:"Rattibha"},rawkuma:{d:"rawkuma.com",n:"Rawkuma"},raycast:{d:"raycast.com",n:"Raycast"},react:{d:"react.dev",n:"React"},reactiflux:{d:"reactiflux.com",n:"Reactiflux"},reactnewsletter:{d:"bytes.dev",n:"ui.dev"},readhub:{d:"readhub.cn",n:"Readhub"},readsomethingwonderful:{d:"readsomethingwonderful.com",n:"Read Something Wonderful"},readwise:{d:"readwise.io",n:"Readwise"},rebase:{d:"rebase.network",n:"Rebase Network"},remnote:{d:"remnote.com",n:"RemNote"},researchgate:{d:"researchgate.net",n:"ResearchGate"},resetera:{d:"resetera.com",n:"ResetEra"},resonac:{d:"www.resonac.com",n:"Resonac"},reuters:{d:"reuters.com",n:"Reuters"},rfa:{d:"rfa.org",n:"Radio Free Asia (RFA) 自由亚洲电台"},rfi:{d:"rfi.fr",n:"Radio France Internationale"},right:{d:"right.com.cn",n:"恩山无线论坛"},rockthejvm:{d:"rockthejvm.com",n:"Rock the JVM"},rodong:{d:"rodong.rep.kp",n:"Rodong Sinmun 劳动新闻"},routledge:{d:"routledge.com",n:"Routledge"},rsc:{d:"pubs.rsc.org",n:"Royal Society of Chemistry"},rss3:{d:"rss3.io",n:"RSS3"},rsshub:{d:"docs.rsshub.app",n:"RSSHub"},ruancan:{d:"ruancan.com",n:"软餐"},ruankao:{d:"www.ruankao.org.cn",n:"中国计算机职业技术资格考试"},ruc:{d:"ruc.edu.cn",n:"Renmin University of China"},rule34video:{d:"rule34video.com",n:"Rule34Video"},runyeah:{d:"runyeah.world",n:"跑野大爆炸"},rustcc:{d:"rustcc.cn",n:"Rust 语言中文社区"},sakurazaka46:{d:"sakurazaka46.com",n:"Sakamichi Series 坂道系列官网资讯"},samd:{d:"www.samd.org.cn",n:"深圳市医疗器械行业协会"},samrdprc:{d:"www.samrdprc.org.cn",n:"国家市场监督管理总局缺陷产品管理中心"},samsung:{d:"research.samsung.com",n:"Samsung"},sankei:{d:"sankei.com",n:"Sankei Shimbun 産経新聞"},sara:{d:"www.sara.org.cn",n:"上海业余无线电协会"},saraba1st:{d:"stage1st.com",n:"Saraba1st"},sass:{d:"gs.sass.org.cn",n:"上海社会科学院"},scau:{d:"yzb.scau.edu.cn",n:"华南农业大学"},science:{d:"science.org",n:"Science Magazine"},sciencedirect:{d:"sciencedirect.com",n:"ScienceDirect"},sciencenet:{d:"blog.sciencenet.cn",n:"科学网"},scientificamerican:{d:"scientificamerican.com",n:"Scientific American"},scitechvista:{d:"scitechvista.nat.gov.tw",n:"科技大觀園"},scmp:{d:"scmp.com",n:"Corona Virus Disease 2019"},scnu:{d:"cs.scnu.edu.cn",n:"华南师范大学"},scoop:{d:"scoop.sh",n:"Scoop"},scpta:{d:"www.scpta.com.cn",n:"四川省人力资源和社会保障厅人事考试专栏"},sctv:{d:"sctv.com",n:"四川广播电视台"},scu:{d:"www.scu.edu.cn",n:"四川大学"},scut:{d:"jw.scut.edu.cn",n:"华南理工大学"},scvtc:{d:"scvtc.edu.cn",n:"四川职业技术学院"},sdmuseum:{d:"www.sdmuseum.com",n:"Shan Dong Museum"},sdo:{d:"sdo.com",n:"盛趣游戏在线"},sdu:{d:"www.sdu.edu.cn",n:"山东大学"},sdust:{d:"sdust.edu.cn",n:"山东科技大学"},sdzk:{d:"sdzk.cn",n:"山东省教育招生考试院"},"sec-in":{d:"sec-in.com",n:"SecIN 信息安全技术社区"},"sec-wiki":{d:"www.sec-wiki.com",n:"SecWiki - 安全维基"},secretsanfrancisco:{d:"secretsanfrancisco.com",n:"Secret San francisco"},secrss:{d:"secrss.com",n:"安全内参"},seekingalpha:{d:"seekingalpha.com",n:"Seeking Alpha"},sega:{d:"pjsekai.sega.jp",n:"SEGA"},segmentfault:{d:"segmentfault.com",n:"SegmentFault"},sehuatang:{d:"sehuatang.net",n:"色花堂"},semiconductors:{d:"semiconductors.org",n:"Semiconductor Industry Association"},sensortower:{d:"sensortower.com",n:"Sensor Tower"},setn:{d:"setn.com",n:"三立新聞網"},seu:{d:"cse.seu.edu.cn",n:"东南大学"},sfacg:{d:"book.sfacg.com",n:"SF 轻小说"},shanghaimuseum:{d:"www.shanghaimuseum.net",n:"Shanghai Museum"},shanximuseum:{d:"www.shanximuseum.com.cn",n:"Shanxi Museum"},shcstheatre:{d:"www.shcstheatre.com",n:"上海文化广场"},shiep:{d:"bwc.shiep.edu.cn",n:"上海电力大学"},shisu:{d:"shisu.edu.cn",n:"上海外国语大学"},shmeea:{d:"www.shmeea.edu.cn",n:"上海市教育考试院"},shmtu:{d:"jwc.shmtu.edu.cn",n:"上海海事大学"},shoac:{d:"shoac.com.cn",n:"上海东方艺术中心"},shopback:{d:"shopback.com.tw",n:"ShopBack"},shopify:{d:"shopify.com",n:"Shopify"},shoppingdesign:{d:"www.shoppingdesign.com.tw",n:"Shopping Design"},showstart:{d:"www.showstart.com",n:"秀动网"},shu:{d:"www.shu.edu.cn",n:"上海大学"},shuiguopai:{d:"shuiguopai.com",n:"水果派"},sicau:{d:"www.sicau.edu.cn",n:"四川农业大学"},sigsac:{d:"sigsac.org",n:"ACM Special Interest Group on Security Audit and Control"},simpleinfo:{d:"blog.simpleinfo.cc",n:"簡訊設計"},sina:{d:"finance.sina.com.cn",n:"新浪"},sinchew:{d:"sinchew.com.my",n:"星洲网"},sis001:{d:"sis001.com",n:"第一会所"},sjtu:{d:"www.sjtu.edu.cn",n:"上海交通大学"},skeb:{d:"skeb.jp",n:"Skeb"},skebetter:{d:"skebetter.com",n:"Skebetter"},sketis:{d:"sketis.net",n:"Sketis | Website of Dr. Makarius Wenzel"},skysports:{d:"skysports.com",n:"Sky Sports"},slashdot:{d:"slashdot.org",n:"Slashdot"},slowmist:{d:"slowmist.com",n:"慢雾科技"},smartlink:{d:"smartlink.bio",n:"SmartLink"},smashingmagazine:{d:"smashingmagazine.com",n:"Smashing Magazine"},smzdm:{d:"post.smzdm.com",n:"什么值得买"},snnu:{d:"snnu.edu.cn",n:"Shaanxi Normal University"},snowpeak:{d:"snowpeak.com",n:"Snow Peak"},sobooks:{d:"sobooks.net",n:"SoBooks"},sogou:{d:"www.sogou.com",n:"搜狗"},sohu:{d:"sohu.com",n:"搜狐号"},solidot:{d:"www.solidot.org",n:"Solidot"},sony:{d:"sony.com",n:"Sony"},sorrycc:{d:"sorrycc.com",n:"云谦的博客"},soundofhope:{d:"soundofhope.org",n:"希望之声"},soundon:{d:"player.soundon.fm",n:"SoundOn"},sourceforge:{d:"www.sourceforge.net",n:"SourceForge"},southcn:{d:"nfapp.southcn.com",n:"南方网"},soweather:{d:"wx.soweather.com",n:"SoWeather"},spankbang:{d:"spankbang.com",n:"SpankBang"},spglobal:{d:"www.spglobal.com",n:"S&P Global"},spotify:{d:"open.spotify.com",n:"Spotify"},springer:{d:"www.springer.com",n:"Springer"},sputniknews:{d:"sputniknews.cn",n:"Sputnik News 俄罗斯卫星通讯社"},sqmc:{d:"sqmc.edu.cn",n:"新乡医学院三全学院"},sse:{d:"bond.sse.com.cn",n:"上海证券交易所"},ssm:{d:"www.ssm.gov.mo",n:"澳门卫生局"},sspai:{d:"sspai.com",n:"少数派 sspai"},sspu:{d:"jwc.sspu.edu.cn",n:"上海第二工业大学"},stanford:{d:"hazyresearch.stanford.edu",n:"Stanford"},startuplatte:{d:"startuplatte.com",n:"創新拿鐵"},stbu:{d:"stbu.edu.cn",n:"四川工商学院"},stcn:{d:"stcn.com",n:"证券时报网"},stdaily:{d:"epaper.stdaily.com",n:"中国科技网"},steam:{d:"store.steampowered.com",n:"Steam"},stheadline:{d:"std.stheadline.com",n:"星島日報"},stockedge:{d:"web.stockedge.com",n:"Stock Edge"},storm:{d:"storm.mg",n:"風傳媒"},storyfm:{d:"storyfm.cn",n:"故事 FM"},straitstimes:{d:"straitstimes.com",n:"The Strait Times"},stratechery:{d:"blog.stratechery.com",n:"Stratechery by Ben Thompson"},"stream-capital":{d:"www.stream-capital.com",n:"远川研究所"},studygolang:{d:"studygolang.com",n:"Go 语言中文网"},subhd:{d:"subhd.tv",n:"Sub HD"},substack:{d:"substack.com",n:"Substack"},supchina:{d:"supchina.com",n:"SupChina"},supercell:{d:"supercell.com",n:"Supercell"},surfshark:{d:"surfshark.com",n:"Surfshark"},sustainabilitymag:{d:"sustainabilitymag.com",n:"Sustainability Magazine"},sustech:{d:"biddingoffice.sustech.edu.cn",n:"南方科技大学"},swissinfo:{d:"swissinfo.ch",n:"swissinfo"},swjtu:{d:"www.swjtu.edu.cn",n:"西南交通大学"},swpu:{d:"swpu.edu.cn",n:"西南石油大学"},sycl:{d:"sycl.tech",n:"SYCL"},syosetu:{d:"syosetu.com",n:"Syosetu"},sysu:{d:"cse.sysu.edu.cn",n:"中山大学"},szftedu:{d:"ylxx.szftedu.cn",n:"园岭小学"},szse:{d:"szse.cn",n:"深圳证券交易所"},szu:{d:"yz.szu.edu.cn",n:"深圳大学"},t66y:{d:"t66y.com",n:"草榴社区"},tableau:{d:"public.tableau.com",n:"Tableau"},tailwindcss:{d:"tailwindcss.com",n:"TailwindCSS"},taiwanmobile:{d:"www.taiwanmobile.com",n:"台灣大哥大"},taiwannews:{d:"taiwannews.com.tw",n:"Taiwan News"},tangshufang:{d:"tangshufang.com",n:"唐书房"},taobao:{d:"taobao.com",n:"淘宝网"},taoguba:{d:"tgb.cn",n:"淘股吧"},taptap:{d:"www.taptap.io",n:"TapTap"},tass:{d:"tass.com",n:"Russian News Agency TASS"},tctmd:{d:"www.tctmd.com",n:"TCTMD"},techcrunch:{d:"techcrunch.com",n:"TechCrunch"},techflowpost:{d:"techflowpost.com",n:"深潮 TechFlow"},techpowerup:{d:"www.techpowerup.com",n:"TechPowerUp"},techsir:{d:"techsir.com",n:"TechSir"},telecompaper:{d:"telecompaper.com",n:"Telecompaper"},telegram:{d:"t.me",n:"Telegram"},tencent:{d:"tencent.com",n:"腾讯"},tesla:{d:"tesla.cn",n:"特斯拉中国"},test:{n:"RSSHub Test"},"tfc-taiwan":{d:"tfc-taiwan.org.tw",n:"Taiwan FactCheck Center"},tgbus:{d:"tgbus.com",n:"电玩巴士 TGBUS"},the:{d:"river.to",n:"River.to (江河日下)"},theatlantic:{d:"www.theatlantic.com",n:"The Atlantic"},theblock:{d:"theblock.co",n:"TheBlock"},theblockbeats:{d:"www.theblockbeats.info",n:"律动 BlockBeats"},thebrain:{d:"thebrain.com",n:"TheBrain"},thecover:{d:"thecover.cn",n:"封面新闻"},thegadgetflow:{d:"thegadgetflow.com",n:"Gadget Flow"},thegradient:{d:"thegradient.pub",n:"The Gradient"},thehindu:{d:"thehindu.com",n:"The Hindu"},theinitium:{d:"theinitium.com",n:"The Initium"},themoviedb:{d:"themoviedb.org",n:"The Movie Database"},thenewslens:{d:"thenewslens.com",n:"The News Lens 關鍵評論"},thepaper:{d:"thepaper.cn",n:"澎湃新闻"},thepetcity:{d:"thepetcity.co",n:"PetCity 毛孩日常"},theverge:{d:"theverge.com",n:"The Verge"},thewirehindi:{d:"thewirehindi.com",n:"The Wire Hindi"},thinkingmachines:{d:"thinkingmachines.ai",n:"Thinking Machines Lab"},thoughtco:{d:"thoughtco.com",n:"ThoughtCo"},thoughtworks:{d:"www.thoughtworks.com",n:"ThoughtWorks"},threads:{d:"threads.net",n:"Threads"},thwiki:{d:"thwiki.cc",n:"THBWiki"},thzt:{d:"thzt.github.io",n:"thzt"},tidb:{d:"tidb.net",n:"TiDB 社区"},tiddlywiki:{d:"tiddlywiki.com",n:"TiddlyWiki"},tiktok:{d:"tiktok.com",n:"TikTok"},timednews:{d:"timednews.com",n:"时刻新闻"},tingshuitz:{d:"swj.dl.gov.cn",n:"停水通知"},tingtingfm:{d:"mobile.tingtingfm.com",n:"听听 FM"},tisi:{d:"tisi.org",n:"腾讯研究院"},tju:{d:"cic.tju.edu.cn",n:"Tianjin University 天津大学"},tkww:{d:"www.tkww.hk",n:"大公文匯網"},tmtpost:{d:"tmtpost.com",n:"钛媒体"},tokeninsight:{d:"tokeninsight.com",n:"TokenInsight"},tongji:{d:"bksy.tongji.edu.cn",n:"同济大学"},tongli:{d:"tongli.com.tw",n:"東立出版社"},toodaylab:{d:"toodaylab.com",n:"理想生活实验室"},tophub:{d:"tophub.today",n:"今日热榜"},topys:{d:"topys.cn",n:"TOPYS"},toranoana:{d:"toranoana.jp",n:"とらのあな"},toutiao:{d:"www.toutiao.com",n:"今日头条"},towardsdatascience:{d:"towardsdatascience.com",n:"Towards Data Science"},tqyb:{d:"www.tqyb.com.cn",n:"广东天气"},tradingview:{d:"tradingview.com",n:"TradingView"},transcriptforest:{d:"www.transcriptforest.com",n:"Transcript Forest"},"transformer-circuits":{d:"transformer-circuits.pub",n:"Transformer Circuits"},trendforce:{d:"trendforce.com",n:"TrendForce"},trendingpapers:{d:"trendingpapers.com",n:"Trending Papers"},tribalfootball:{d:"tribalfootball.com",n:"Tribal Football"},trow:{d:"trow.cc",n:"The Ring of Wonder"},tsdm39:{d:"www.tsdm39.com",n:"天使动漫论坛"},tsinghua:{d:"tsinghua.edu.cn",n:"清华大学"},ttv:{d:"news.ttv.com.tw",n:"台視新聞網"},tumblr:{d:"tumblr.com",n:"Tumblr"},tvb:{d:"tvb.com",n:"无线新闻"},tver:{d:"tver.jp",n:"TVer"},tvtropes:{d:"tvtropes.org",n:"TV Tropes"},"tw-nongmu":{d:"www.tw-nongmu.com",n:"通威农业发展"},twitch:{d:"www.twitch.tv",n:"Twitch"},twitter:{d:"x.com",n:"X (Twitter)"},twreporter:{d:"twreporter.org",n:"報導者"},txks:{d:"www.txks.org.cn",n:"全国通信专业技术人员职业水平考试"},txrjy:{d:"txrjy.com",n:"通信人家园"},tynu:{d:"tynu.edu.cn",n:"太原师范学院"},typeless:{d:"typeless.com",n:"Typeless"},typora:{d:"typora.io",n:"Typora"},typst:{d:"typst.com",n:"Typst"},u3c3:{d:"u3c3.com",n:"U3C3"},u9a9:{d:"u9a9.com",n:"U9A9"},uber:{d:"www.uber.com",n:"Uber"},ucas:{d:"ai.ucas.ac.cn",n:"中国科学院大学"},uchicago:{d:"journals.uchicago.edu",n:"The University of Chicago Press: Journals"},udn:{d:"udn.com",n:"聯合新聞網"},uestc:{d:"www.uestc.edu.cn",n:"电子科技大学"},uibe:{d:"hr.uibe.edu.cn",n:"对外经济贸易大学"},ulapia:{d:"www.ulapia.com",n:"乌拉邦"},unipd:{d:"unipd.it",n:"Università di Padova"},uniqlo:{d:"www.uniqlo.com",n:"Uniqlo"},unraid:{d:"unraid.net",n:"Unraid"},unusualwhales:{d:"unusualwhales.com",n:"Unusual Whales"},upc:{d:"computer.upc.edu.cn",n:"中国石油大学(华东)"},ups:{d:"ups.com",n:"UPS"},uptimerobot:{d:"rss.uptimerobot.com",n:"Uptime Robot"},"uraaka-joshi":{d:"uraaka-joshi.com",n:"裏垢女子まとめ"},urbandictionary:{d:"urbandictionary.com",n:"Urban Dictionary"},usenix:{d:"usenix.org",n:"USENIX"},usepanda:{d:"usepanda.com",n:"Panda"},ustb:{d:"gs.ustb.edu.cn",n:"北京科技大学"},ustc:{d:"ustc.edu.cn",n:"中国科学技术大学"},usts:{d:"jwch.usts.edu.cn",n:"苏州科技大学"},utgd:{d:"utgd.net",n:"UNTAG"},uw:{d:"gixnetwork.org",n:"University of Washington"},v1tx:{d:"v1tx.com",n:"v1tx"},v2ex:{d:"v2ex.com",n:"V2EX"},v2rayshare:{d:"v2rayshare.com",n:"V2rayShare"},"vcb-s":{d:"vcb-s.com",n:"VCB-Studio"},verfghbw:{d:"verfgh.baden-wuerttemberg.de",n:"Constitutional Court of Baden-Württemberg (Germany)"},vertikal:{d:"vertikal.net",n:"Vertikal.net"},vice:{d:"vice.com",n:"VICE"},vimeo:{d:"vimeo.com",n:"Vimeo"},visionias:{d:"visionias.in",n:"VisionIAS"},visualstudio:{d:"visualstudio.com",n:"Visual Studio"},vocus:{d:"vocus.cc",n:"方格子"},vom:{d:"vom.mn",n:"Voice of Mongolia"},voronoiapp:{d:"voronoiapp.com",n:"Voronoi"},wabei:{d:"www.wabei.cn",n:"挖贝网"},wainao:{d:"wainao.me",n:"歪脑"},wallhaven:{d:"wallhaven.cc",n:"wallhaven"},wallpaperhub:{d:"wallpaperhub.app",n:"WallpaperHub"},wallstreetcn:{d:"wallstreetcn.com",n:"华尔街见闻"},wanqu:{d:"wanqu.co",n:"湾区日报"},"warhammer-community":{d:"www.warhammer-community.com",n:"Warhammer Community"},warp:{d:"warp.dev",n:"Warp"},warthunder:{d:"warthunder.com",n:"War Thunder"},washingtonpost:{d:"www.washingtonpost.com",n:"The Washington Post"},"wbv-gpa":{d:"wbv-gpa.at",n:"WBV-GPA"},wchscu:{d:"www.wchscu.cn",n:"华西医院"},wdc:{d:"support.wdc.com",n:"Western Digital"},wdfxw:{d:"wdfxw.net",n:"WDFXW文档分享网"},web:{d:"web.dev",n:"web.dev"},web3caff:{d:"web3caff.com",n:"Web3Caff"},webcatalog:{d:"desktop.webcatalog.io",n:"WebCatalog"},wechat:{d:"posts.careerengine.us",n:"微信小程序"},weekendhk:{d:"weekendhk.com",n:"新假期周刊"},weibo:{d:"weibo.com",n:"微博"},wellcee:{d:"wellcee.com",n:"Wellcee 唯心所寓"},wenku8:{d:"www.wenku8.net",n:"轻小说文库"},wfdf:{d:"wfdf.sport",n:"WFDF"},wfu:{d:"jwc.wfu.edu.cn",n:"潍坊学院"},whitehouse:{d:"whitehouse.gov",n:"The White House"},who:{d:"who.int",n:"World Health Organization | WHO"},whu:{d:"cs.whu.edu.cn",n:"武汉大学"},wiensued:{d:"wiensued.at",n:"Wien-Süd"},wikinews:{d:"zh.wikinews.org",n:"维基新闻"},wikipedia:{d:"en.wikipedia.org",n:"Wikipedia"},windsurf:{d:"windsurf.com",n:"Windsurf"},winstall:{d:"winstall.app",n:"winstall"},wired:{d:"www.wired.com",n:"WIRED"},wise:{d:"wise.com",n:"Wise"},withgoogle:{d:"pair.withgoogle.com",n:"People + AI Research (PAIR)"},wizfile:{d:"antibody-software.com",n:"WziFile"},wkjyqh:{d:"www.wkjyqh.com",n:"五矿期货"},"wmc-bj":{d:"wmc-bj.net",n:"World Meteorological Centre Beijing"},wmpvp:{d:"wmpvp.com",n:"完美世界电竞"},wnacg:{d:"wnacg.org",n:"紳士漫畫"},wogem:{d:"wogem.at",n:"WOGEM"},wohnnet:{d:"wohnnet.at",n:"wohnnet.at"},wordpress:{d:"wordpress.org",n:"WordPress"},worldjournal:{d:"worldjournal.com",n:"世界新聞網"},worldofwarships:{d:"worldofwarships.com",n:"World of Warships"},woshipm:{d:"woshipm.com",n:"人人都是产品经理"},wsj:{d:"cn.wsj.com",n:"The Wall Street Journal (WSJ) 华尔街日报"},wsyu:{d:"www.wsyu.edu.cn",n:"武昌首义学院"},wtu:{d:"wtu.91wllm.com",n:"武汉纺织大学"},wufazhuce:{d:"wufazhuce.com",n:"「ONE · 一个」"},wyzxwk:{d:"wyzxwk.com",n:"乌有之乡"},wzu:{d:"wzu.edu.cn",n:"温州大学"},"x-mol":{d:"x-mol.com",n:"X-MOL"},x6d:{d:"xd.x6d.com",n:"小刀娱乐网"},xaufe:{d:"jiaowu.xaufe.edu.cn",n:"西安财经大学"},xaut:{d:"www.xaut.edu.cn",n:"西安理工大学"},xbmu:{d:"www.xbmu.edu.cn",n:"西北民族大学"},xbookcn:{d:"www.xbookcn.net",n:"中文成人文學網"},xboxfan:{d:"xboxfan.com",n:"盒心光环"},xhamster:{d:"xhamster.com",n:"xHamster"},xianbao:{d:"new.xianbao.fun",n:"线报酷"},xiaoheihe:{d:"xiaoheihe.cn",n:"小黑盒"},xiaohongshu:{d:"xiaohongshu.com",n:"小红书"},xiaomiyoupin:{d:"xiaomiyoupin.com",n:"小米有品"},xiaote:{d:"xiaote.com",n:"小特社区"},xiaoyuzhou:{d:"xiaoyuzhoufm.com",n:"小宇宙"},xiaozhuanlan:{d:"xiaozhuanlan.com",n:"小专栏"},xidian:{d:"www.xidian.edu.cn",n:"西安电子科技大学"},ximalaya:{d:"ximalaya.com",n:"喜马拉雅"},xinpianchang:{d:"xinpianchang.com",n:"新片场"},xjtlu:{d:"www.xjtlu.edu.cn",n:"Xi"},xjtu:{d:"2yuan.xjtu.edu.cn",n:"西安交通大学"},xkb:{d:"xkb.com.cn",n:"新快报"},xmanhua:{d:"xmanhua.com",n:"X 漫画"},xmnn:{d:"epaper.xmnn.cn",n:"厦门网"},xmu:{d:"soe.xmu.edu.cn",n:"Xiamen University"},xmut:{d:"jwc.xmut.edu.cn",n:"厦门理工大学"},xsijishe:{d:"xsijishe.com",n:"司机社"},xueqiu:{d:"danjuanapp.com",n:"雪球"},xunhupay:{d:"www.xunhupay.com",n:"虎皮椒"},xupt:{d:"xupt.edu.cn",n:"西安邮电大学"},xwenming:{d:"xwenming.com",n:"未知文明"},xys:{d:"xys.org",n:"新语丝"},xyu:{d:"xyc.edu.cn",n:"新余学院"},xyzrank:{d:"xyzrank.com",n:"中文播客榜"},yahoo:{d:"news.yahoo.com",n:"Yahoo"},yamap:{d:"yamap.com",n:"YAMAP"},yamibo:{d:"yamibo.com",n:"百合会"},yande:{d:"yande.re",n:"yande.re"},yangtzeu:{d:"yangtzeu.edu.cn",n:"长江大学"},ycwb:{d:"xwlb.com.cn",n:"羊城晚报金羊网"},yenpress:{d:"yenpress.com",n:"Yen Press"},ygkkk:{d:"ygkkk.blogspot.com",n:"甬哥侃侃侃YouTube教程摘要随笔"},yicai:{d:"yicai.com",n:"第一财经"},yilinzazhi:{d:"www.yilinzazhi.com",n:"意林杂志"},ymgal:{d:"ymgal.games",n:"月幕 Galgame"},yna:{d:"yna.co.kr",n:"Yonhap News Agency"},ynet:{d:"ynet.com",n:"北青网"},"yoasobi-music":{d:"www.yoasobi-music.jp",n:"Yoasobi Official"},yomiuri:{d:"www.yomiuri.co.jp",n:"Yomiuri Shimbun 読売新聞"},yomujp:{d:"yomujp.com",n:"日本語多読道場"},youku:{d:"i.youku.com",n:"优酷"},youmemark:{d:"youmemark.com",n:"YouMeMark"},youtube:{d:"youtube.com",n:"YouTube"},youzhiyouxing:{d:"youzhiyouxing.cn",n:"有知有行"},yuanliao:{d:"yuanliao.info",n:"猿料"},yuque:{d:"yuque.com",n:"语雀"},yxdown:{d:"yxdown.com",n:"游讯网"},yxdzqb:{d:"yxdzqb.com",n:"游戏打折情报"},yxrb:{d:"news.yxrb.net",n:"游戏日报"},yyets:{d:"yysub.net",n:"人人影视"},yystv:{d:"yystv.cn",n:"游研社"},zagg:{d:"zagg.com",n:"Zagg"},zaimanhua:{d:"manhua.zaimanhua.com",n:"再漫画"},zaker:{d:"myzaker.com",n:"ZAKER"},zaobao:{d:"www.zaobao.com",n:"联合早报"},zaozao:{d:"www.zaozao.run",n:"前端早早聊"},zcmu:{d:"jwc.zcmu.edu.cn",n:"浙江中医药大学"},zcool:{d:"www.zcool.com.cn",n:"站酷"},zed:{d:"zed.dev",n:"Zed"},zhibo8:{d:"zhibo8.cc",n:"直播吧"},zhihu:{d:"www.zhihu.com",n:"知乎"},zhitongcaijing:{d:"zhitongcaijing.com",n:"智通财经网"},zhiy:{d:"zhiy.cc",n:"知园"},zhizhuan100:{d:"www.zhizhuan100.com.cn",n:"智篆商业"},zhonglun:{d:"zhonglun.com",n:"中伦律师事务所"},zhubai:{d:"zhubai.love",n:"竹白"},zhujiceping:{d:"zhujiceping.com",n:"国外主机测评"},zhuwang:{d:"zhujia.zhuwang.cc",n:"中国养猪网"},zimuxia:{d:"zimuxia.cn",n:"FIX 字幕侠"},zjgtjy:{d:"zjgtjy.cn",n:"浙江省土地使用权网上交易系统"},zjol:{d:"zjol.com.cn",n:"浙江在线"},zju:{d:"physics.zju.edu.cn",n:"浙江大学"},zjut:{d:"www.zjut.edu.cn",n:"浙江工业大学"},zjuvag:{d:"zjuvag.org",n:"浙江大学可视分析小组"},zodgame:{d:"zodgame.xyz",n:"ZodGame"},zongheng:{d:"www.zongheng.com",n:"纵横中文网"},zotero:{d:"zotero.org",n:"Zotero"},zrblog:{d:"zrblog.net",n:"赵容部落"},zsxq:{d:"zsxq.com",n:"知识星球"},zuel:{d:"wap.zuel.edu.cn",n:"中南财经政法大学"},zuvio:{d:"irs.zuvio.com.tw",n:"Zuvio"},zxcs:{d:"zxcs.click",n:"知轩藏书"},zyshow:{d:"zyshow.net",n:"综艺秀"},zyw:{d:"hot.zyw.asia",n:"zyw"},zzu:{d:"www.zzu.edu.cn",n:"郑州大学"}},YO=e=>e.replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase();function JS(e,t){var i;const n={...t};for(const[a,o]of Object.entries(e))if(!n[a]&&o.default&&(n[a]=o.default),o.required&&!((i=n[a])!=null&&i.trim()))return{ok:!1,missing:a};return{ok:!0,params:n}}function WO(e){return Array.isArray(e.options)?e.options.filter(t=>typeof(t==null?void 0:t.value)=="string"&&t.value).map(t=>({value:t.value,label:t.label||t.value})):[]}function KO(e){return e.title||e.id.replace(/^rsshub:/,"")}function XO(e){var n;const t=(n=e.description)==null?void 0:n.replace(/\s+/g," ").trim();return t&&t!==KO(e)?t:e.id.replace(/^rsshub:/,"")}function QO(e){return`source-row-${e.id.replace(/[^a-zA-Z0-9]+/g,"-")}`}function ZO(e){var t,n;return((n=(t=e.docs)==null?void 0:t.markdown)==null?void 0:n.trim())||""}function qS(e,t){const n=(t==null?void 0:t.headingBase)??2,i=e.replace(/\r\n/g,`
|
|
124
|
+
`).split(`
|
|
125
|
+
`),a=[];let o=[],c=null,d=null,h="",m=null,b=[];const y=()=>{o.length&&a.push({type:"paragraph",text:o.join(" ").trim()}),o=[]},T=()=>{c!=null&&c.items.length&&a.push({type:"list",ordered:c.ordered,items:c.items}),c=null},k=()=>{m&&a.push({type:"callout",tone:m.tone,text:m.lines.join(`
|
|
126
|
+
`).trim()}),m=null},R=()=>{b.length&&a.push({type:"table",rows:b}),b=[]},N=()=>{y(),T(),R()},z=F=>F.replace(/^\||\|$/g,"").split("|").map(B=>B.trim()),L=F=>/^\|.+\|$/.test(F),I=F=>/^\|?\s*:?-{3,}:?\s*(\|\s*:?-{3,}:?\s*)+\|?$/.test(F);for(const F of i){const B=F.trimEnd(),Y=B.trim();if(d){Y.startsWith("```")?(a.push({type:"code",lang:h,text:d.join(`
|
|
127
|
+
`)}),d=null,h=""):d.push(B);continue}if(Y.startsWith("```")){N(),k(),d=[],h=Y.replace(/^```/,"").trim();continue}if(Y.startsWith(":::")){N(),m?k():m={tone:Y.replace(/^:::\s*/,"").trim()||"tip",lines:[]};continue}if(m){m.lines.push(B);continue}if(!Y){N();continue}const Z=Y.match(/^(#{1,4})\s+(.+)$/);if(Z){N();const nt=Math.min(Math.max(Z[1].length+(n-1),n),4);a.push({type:"heading",level:nt,text:Z[2]});continue}const et=Y.match(/^>\s?(.+)$/);if(et){N(),a.push({type:"blockquote",text:et[1]});continue}if(I(Y)&&b.length)continue;if(L(Y)){y(),T(),b.push(z(Y));continue}b.length&&R();const q=Y.match(/^([-*]|\d+\.)\s+(.+)$/);if(q){y();const nt=/\d+\./.test(q[1]);c&&c.ordered!==nt&&T(),c??(c={ordered:nt,items:[]}),c.items.push(q[2]);continue}T(),o.push(Y)}return N(),k(),a}function $S(e){var n,i;const t=((n=e.facility)==null?void 0:n.key)||(e.id.startsWith("rsshub:")?e.id.slice(7).split("/")[0]:"");return e.id.startsWith("rsshub:")&&t?`https://docs.rsshub.app/routes/${t}`:(i=e.docs)==null?void 0:i.url}function tC(e){var n;const t=(n=rb[e])==null?void 0:n.d;if(!(!t||!/^[a-z0-9.-]+\.[a-z]{2,}$/i.test(t)))return`https://${t}`}function JO(e){return`https://docs.rsshub.app/routes/${e}`}const qO={timeline:"时间线",search:"搜索",audio:"音频"};function $O(e){return qO[e]??e}function Uu(e=""){var a;const t=[],n=/(\*\*[^*]+\*\*|`[^`]+`|\[[^\]]+\]\([^)]+\))/g;let i=0;for(const o of e.matchAll(n)){o.index>i&&t.push(e.slice(i,o.index));const c=o[0];if(c.startsWith("`"))t.push(w.jsx("code",{className:"rounded bg-[var(--acr-card-nested)] px-1 py-0.5 font-mono text-[12px] text-foreground",children:c.slice(1,-1)},`${o.index}-code`));else if(c.startsWith("**"))t.push(w.jsx("strong",{className:"font-semibold text-foreground",children:c.slice(2,-2)},`${o.index}-strong`));else{const d=c.match(/^\[([^\]]+)\]\(([^)]+)\)$/),h=(a=d==null?void 0:d[2])==null?void 0:a.trim();t.push(h&&d?w.jsx("a",{href:h,target:"_blank",rel:"noreferrer",className:"text-primary underline-offset-2 hover:underline",children:d[1]},`${o.index}-link`):c)}i=o.index+c.length}return i<e.length&&t.push(e.slice(i)),t}function Xg({text:e,headingBase:t}){return w.jsx(eC,{blocks:qS(e,{headingBase:t})})}function eC({blocks:e}){return w.jsx("div",{className:"space-y-3 text-[13px] leading-relaxed text-muted-foreground",children:e.map((t,n)=>{if(t.type==="heading"){const i=t.level===1?"pt-2 text-[18px] font-bold text-foreground":t.level===2?"pt-2 text-[16px] font-semibold text-foreground":"pt-1 text-[14px] font-semibold text-foreground",a=`h${t.level}`;return w.jsx(a,{className:i,children:Uu(t.text)},n)}if(t.type==="callout")return w.jsxs("div",{className:"rounded-lg border border-primary/20 bg-primary/10 px-3 py-2 text-[13px] text-foreground/90",children:[w.jsx("div",{className:"mb-1 text-[11px] font-semibold uppercase text-primary/80",children:t.tone||"tip"}),w.jsx("div",{className:"whitespace-pre-wrap",children:Uu(t.text)})]},n);if(t.type==="list"){const i=t.ordered?"ol":"ul";return w.jsx(i,{className:`${t.ordered?"list-decimal":"list-disc"} space-y-1 pl-5`,children:t.items.map((a,o)=>w.jsx("li",{children:Uu(a)},o))},n)}if(t.type==="code")return w.jsx("pre",{className:"overflow-x-auto rounded-lg bg-[var(--acr-card-nested)] px-3 py-2 font-mono text-[12px] text-foreground/90",children:w.jsx("code",{children:t.text})},n);if(t.type==="blockquote")return w.jsx("blockquote",{className:"border-l-2 border-[var(--acr-border)] pl-3 text-foreground/80",children:Uu(t.text)},n);if(t.type==="table"){const[i,...a]=t.rows;return w.jsx("div",{className:"overflow-x-auto rounded-lg border border-[var(--acr-border-soft)]",children:w.jsxs("table",{className:"w-full min-w-[28rem] border-collapse text-left text-[12px]",children:[i?w.jsx("thead",{className:"bg-[var(--acr-card-nested)] text-foreground",children:w.jsx("tr",{children:i.map((o,c)=>w.jsx("th",{className:"border-b border-[var(--acr-border-soft)] px-3 py-2 font-semibold",children:Uu(o)},c))})}):null,w.jsx("tbody",{children:a.map((o,c)=>w.jsx("tr",{className:"border-t border-[var(--acr-border-soft)] first:border-t-0",children:o.map((d,h)=>w.jsx("td",{className:"px-3 py-2 align-top",children:Uu(d)},h))},c))})]})},n)}return w.jsx("p",{children:Uu(t.text)},n)})})}function tP(e,t){e.innerHTML=GO.renderToStaticMarkup(w.jsx(Xg,{text:t,headingBase:1}))}function eP(e,t,n){tP(e,typeof t.data=="string"?t.data:String(t.data??""))}function nP(e,t,n){const i=typeof t.data=="string"?t.data:"";if(!i){const o=document.createElement("div");o.style.cssText="padding:8px;font-size:12px;opacity:.7",o.textContent="这个 artifact 没有 HTML 内容",e.appendChild(o);return}const a=document.createElement("iframe");a.setAttribute("sandbox","allow-scripts"),a.title=t.name,a.style.cssText="width:100%;height:70vh;border:none;border-radius:8px",a.srcdoc=i,e.appendChild(a)}function iP(e){return!e||typeof e!="object"?!1:Array.isArray(e.values)}function rP(e,t){if(e.length===0)return[];const n=Math.min(...e),i=Math.max(...e);if(n===i)return[{x0:n,x1:i,mid:n,count:e.length}];const a=(i-n)/t,o=Array.from({length:t},(c,d)=>({x0:n+d*a,x1:n+(d+1)*a,mid:n+(d+.5)*a,count:0}));for(const c of e){let d=Math.floor((c-n)/a);d>=t&&(d=t-1);const h=o[d];h&&h.count++}return o}function sP(e){return e.length===0?NaN:e.reduce((t,n)=>t+n,0)/e.length}function sb(e,t){if(e.length===0)return NaN;const n=(e.length-1)*t,i=Math.floor(n),a=n-i,o=e[i+1];return o!==void 0?e[i]+a*(o-e[i]):e[i]}function ab(e){return Number.isFinite(e)?Math.abs(e)>=1e3?e.toLocaleString(void 0,{maximumFractionDigits:2}):e.toFixed(4):"—"}function aP(e,t,n){const i=document.createElement("div");i.style.cssText=`padding:8px;font-size:12px;color:${t.text}`,i.textContent=`数据形状不是这个 view 认识的样子(${n})`,e.appendChild(i)}function oP(e,t,n){const i=$d(n),a=t.data;if(!iP(a))return aP(e,i,t.name);const o=t.config??{},c=a.values.filter(z=>Number.isFinite(z)),d=[...c].sort((z,L)=>z-L),h=rP(c,o.bins??30),m=Math.max(1,...h.map(z=>z.count)),b=sP(c),y=sb(d,.5),T=document.createElement("div");T.style.cssText=`display:flex;flex-direction:column;height:${Sg(o)}px;padding:6px;gap:4px`;const k=document.createElement("div");if(k.style.cssText="flex:1;display:flex;align-items:flex-end;gap:1px;min-height:0",h.forEach(z=>{const L=document.createElement("div");L.dataset.bin="1",L.title=`${ab(z.x0)} ~ ${ab(z.x1)} = ${z.count}`,L.style.cssText=`flex:1;height:${z.count/m*100}%;background:${i.series[0]};border-radius:1px 1px 0 0;min-height:${z.count>0?1:0}px`,k.appendChild(L)}),T.appendChild(k),o.xlabel){const z=document.createElement("div");z.style.cssText=`font-size:10px;opacity:.7;color:${i.text}`,z.textContent=o.xlabel,T.appendChild(z)}const R=document.createElement("div");R.style.cssText=`display:flex;flex-wrap:wrap;gap:8px;font-size:11px;color:${i.text}`;const N=[["n",c.length],["mean",b],["median",y],["q05",sb(d,.05)],["q95",sb(d,.95)],["min",d[0]??NaN],["max",d[d.length-1]??NaN]];for(const[z,L]of N){const I=document.createElement("span");I.textContent=`${z} = ${z==="n"?L:ab(L)}`,R.appendChild(I)}T.appendChild(R),e.appendChild(T)}const lP={table:QN,timeseries:NO,scatter2d:DO,heatmap:IO,backtest_chart:FO,text:eP,html:nP,distribution:oP},cP=(e,t)=>{const n=document.createElement("div");n.style.cssText="padding:12px;font-size:12px;border:1px dashed var(--dsw-alias-border-l1, rgba(127,127,127,.3));border-radius:8px";const i=document.createElement("div");i.style.cssText="margin-bottom:6px;font-weight:600",i.textContent=`不认识的 view 类型:${t.view}`;const a=document.createElement("pre");a.style.cssText="overflow:auto;max-height:240px;margin:0;font-size:11px",a.textContent=`${JSON.stringify(t.data,null,2).slice(0,500)}…`,n.append(i,a),e.appendChild(n)};function uP(e){return lP[e]??cP}function dP({artifact:e,theme:t}){const n=M.useRef(null);return M.useEffect(()=>{const i=n.current;if(i===null)return;i.textContent="";let a;try{a=uP(e.view)(i,e,t)??void 0}catch(o){i.textContent=`渲染失败:${o instanceof Error?o.message:String(o)}`,i.style.color="var(--dsw-alias-state-error-primary, #f87171)"}return()=>{a==null||a(),i.textContent=""}},[e,t]),w.jsx("div",{ref:n,style:{minHeight:0}})}function ur(e,t,n,i){if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?i:n==="a"?i.call(e):i?i.value:t.get(e)}function Ff(e,t,n,i,a){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}typeof SuppressedError=="function"&&SuppressedError;var Vu,Ws,ch,Qg;const nC="__TAURI_TO_IPC_KEY__";function hP(e,t=!1){return window.__TAURI_INTERNALS__.transformCallback(e,t)}class fP{constructor(t){Vu.set(this,void 0),Ws.set(this,0),ch.set(this,[]),Qg.set(this,void 0),Ff(this,Vu,t||(()=>{})),this.id=hP(n=>{const i=n.index;if("end"in n){i==ur(this,Ws,"f")?this.cleanupCallback():Ff(this,Qg,i);return}const a=n.message;if(i==ur(this,Ws,"f")){for(ur(this,Vu,"f").call(this,a),Ff(this,Ws,ur(this,Ws,"f")+1);ur(this,Ws,"f")in ur(this,ch,"f");){const o=ur(this,ch,"f")[ur(this,Ws,"f")];ur(this,Vu,"f").call(this,o),delete ur(this,ch,"f")[ur(this,Ws,"f")],Ff(this,Ws,ur(this,Ws,"f")+1)}ur(this,Ws,"f")===ur(this,Qg,"f")&&this.cleanupCallback()}else ur(this,ch,"f")[i]=a})}cleanupCallback(){window.__TAURI_INTERNALS__.unregisterCallback(this.id)}set onmessage(t){Ff(this,Vu,t)}get onmessage(){return ur(this,Vu,"f")}[(Vu=new WeakMap,Ws=new WeakMap,ch=new WeakMap,Qg=new WeakMap,nC)](){return`__CHANNEL__:${this.id}`}toJSON(){return this[nC]()}}async function iC(e,t={},n){return window.__TAURI_INTERNALS__.invoke(e,t,n)}function rC(){return!!(globalThis||window).isTauri}const mP="stream.theme",gP=["light","dark","acrylic"];function pP(){if(typeof window>"u"||rC())return"acrylic";const e=window.localStorage.getItem(mP);return gP.includes(e)?e:"acrylic"}function vP(e){return e==="dark"?"dark":"light"}const sC={border:"1px solid var(--dsw-alias-border-l1, rgba(127,127,127,0.18))",borderRadius:8,padding:12,marginBottom:12};function yP({conn:e,streamId:t,runId:n,info:i,theme:a}){const[o,c]=M.useState(null),[d,h]=M.useState(null);return M.useEffect(()=>{let m=!1;return c(null),h(null),GN(e,t,n,i.name).then(b=>{m||c(b)}).catch(b=>{m||h(b instanceof Error?b.message:String(b))}),()=>{m=!0}},[e,t,n,i.name]),w.jsxs("div",{"data-artifact-card":!0,style:sC,children:[w.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:8},children:[w.jsx("span",{style:{fontSize:13,fontWeight:500},children:i.name}),w.jsx("span",{style:{fontSize:11,opacity:.6,fontFamily:"monospace"},children:i.view})]}),d!==null&&w.jsx("div",{style:{fontSize:12,color:"var(--dsw-alias-state-error-primary, #d33)"},children:d}),d===null&&o===null&&w.jsx("div",{style:{fontSize:12,opacity:.6},children:"载入中…"}),o!==null&&w.jsx(dP,{artifact:o,theme:a})]})}function bP({conn:e,streamId:t,runId:n,onBack:i}){const a=vP(pP()),[o,c]=M.useState(null),[d,h]=M.useState(null);if(M.useEffect(()=>{let b=!1;return c(null),h(null),HN(e,t,n).then(y=>{b||c(y)}).catch(y=>{b||h(y instanceof Error?y.message:String(y))}),()=>{b=!0}},[e,t,n]),d!==null)return w.jsxs("div",{style:{padding:24,fontSize:13,color:"var(--dsw-alias-state-error-primary, #d33)"},children:["读不到这个 run:",d]});if(o===null)return w.jsx("div",{style:{padding:24,fontSize:13,opacity:.7},children:"载入中…"});const m=Object.entries(o.metrics);return w.jsxs("div",{style:{padding:16,overflow:"auto",height:"100%"},children:[w.jsx("button",{type:"button",onClick:i,style:{marginBottom:12,fontSize:12,background:"transparent",border:"none",color:"inherit",cursor:"pointer",padding:0},children:"← 返回列表"}),w.jsxs("div",{style:sC,children:[w.jsx("div",{style:{fontSize:16,fontWeight:600},children:o.name}),w.jsx("div",{style:{fontSize:11,opacity:.6,fontFamily:"monospace"},children:o.id}),w.jsxs("div",{style:{display:"flex",gap:16,marginTop:10,fontSize:12,flexWrap:"wrap"},children:[w.jsxs("span",{children:["状态:",o.status]}),w.jsxs("span",{children:["开始:",o.created_at]}),w.jsxs("span",{children:["结束:",o.finished_at??"—"]}),w.jsxs("span",{children:["artifact:",o.artifacts.length]}),o.tags.length>0&&w.jsxs("span",{children:["#",o.tags.join(" #")]})]}),m.length>0&&w.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gap:8,marginTop:12},children:m.map(([b,y])=>w.jsxs("div",{style:{border:"1px solid var(--dsw-alias-border-l1, rgba(127,127,127,0.14))",borderRadius:6,padding:8},children:[w.jsx("div",{style:{fontSize:11,opacity:.6},children:b}),w.jsx("div",{style:{fontSize:13,fontVariantNumeric:"tabular-nums"},children:String(y)})]},b))})]}),o.artifacts.map(b=>w.jsx(yP,{conn:e,streamId:t,runId:n,info:b,theme:a},b.name)),o.artifacts.length===0&&w.jsx("div",{style:{padding:24,fontSize:13,opacity:.7},children:"这个 run 没有 artifact。"})]})}const xP=(e,t,n,i)=>{var o,c,d,h;const a=[n,{code:t,...i||{}}];if((c=(o=e==null?void 0:e.services)==null?void 0:o.logger)!=null&&c.forward)return e.services.logger.forward(a,"warn","react-i18next::",!0);Hu(a[0])&&(a[0]=`react-i18next:: ${a[0]}`),(h=(d=e==null?void 0:e.services)==null?void 0:d.logger)!=null&&h.warn?e.services.logger.warn(...a):console!=null&&console.warn&&console.warn(...a)},aC={},ob=(e,t,n,i)=>{Hu(n)&&aC[n]||(Hu(n)&&(aC[n]=new Date),xP(e,t,n,i))},oC=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},lb=(e,t,n)=>{e.loadNamespaces(t,oC(e,n))},lC=(e,t,n,i)=>{if(Hu(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return lb(e,n,i);n.forEach(a=>{e.options.ns.indexOf(a)<0&&e.options.ns.push(a)}),e.loadLanguages(t,oC(e,i))},wP=(e,t,n={})=>!t.languages||!t.languages.length?(ob(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(i,a)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!a(i.isLanguageChangingTo,e))return!1}}),Hu=e=>typeof e=="string",SP=e=>typeof e=="object"&&e!==null,CP=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,TP={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},EP=e=>TP[e];let MP={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(CP,EP),transDefaultProps:void 0};const RP=()=>MP;let kP;const _P=()=>kP,AP=M.createContext();class NP{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var cb={exports:{}},ub={};/**
|
|
128
|
+
* @license React
|
|
129
|
+
* use-sync-external-store-shim.production.js
|
|
130
|
+
*
|
|
131
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
132
|
+
*
|
|
133
|
+
* This source code is licensed under the MIT license found in the
|
|
134
|
+
* LICENSE file in the root directory of this source tree.
|
|
135
|
+
*/var cC;function zP(){if(cC)return ub;cC=1;var e=Qd();function t(y,T){return y===T&&(y!==0||1/y===1/T)||y!==y&&T!==T}var n=typeof Object.is=="function"?Object.is:t,i=e.useState,a=e.useEffect,o=e.useLayoutEffect,c=e.useDebugValue;function d(y,T){var k=T(),R=i({inst:{value:k,getSnapshot:T}}),N=R[0].inst,z=R[1];return o(function(){N.value=k,N.getSnapshot=T,h(N)&&z({inst:N})},[y,k,T]),a(function(){return h(N)&&z({inst:N}),y(function(){h(N)&&z({inst:N})})},[y]),c(k),k}function h(y){var T=y.getSnapshot;y=y.value;try{var k=T();return!n(y,k)}catch{return!0}}function m(y,T){return T()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:d;return ub.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:b,ub}var uC;function DP(){return uC||(uC=1,cb.exports=zP()),cb.exports}var OP=DP();const PP={t:(e,t)=>{if(Hu(t))return t;if(SP(t)&&Hu(t.defaultValue))return t.defaultValue;if(typeof e=="function")return"";if(Array.isArray(e)){const n=e[e.length-1];return typeof n=="function"?"":n}return e},ready:!1},LP=()=>()=>{},IP=(e,t={})=>{var nt,ot,Ct;const{i18n:n}=t,{i18n:i,defaultNS:a}=M.useContext(AP)||{},o=n||i||_P();o&&!o.reportNamespaces&&(o.reportNamespaces=new NP),o||ob(o,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const c=M.useMemo(()=>{var ct;return{...RP(),...(ct=o==null?void 0:o.options)==null?void 0:ct.react,...t}},[o,t]),{useSuspense:d,keyPrefix:h}=c,m=a||((nt=o==null?void 0:o.options)==null?void 0:nt.defaultNS),b=Hu(m)?[m]:m||["translation"],y=M.useMemo(()=>b,b);(Ct=(ot=o==null?void 0:o.reportNamespaces)==null?void 0:ot.addUsedNamespaces)==null||Ct.call(ot,y);const T=M.useRef(0),k=M.useCallback(ct=>{if(!o)return LP;const{bindI18n:mt,bindI18nStore:Rt}=c,ut=()=>{T.current+=1,ct()};return mt&&o.on(mt,ut),Rt&&o.store.on(Rt,ut),()=>{mt&&mt.split(" ").forEach(j=>o.off(j,ut)),Rt&&Rt.split(" ").forEach(j=>o.store.off(j,ut))}},[o,c]),R=M.useRef(),N=M.useCallback(()=>{if(!o)return PP;const ct=!!(o.isInitialized||o.initializedStoreOnce)&&y.every(ht=>wP(ht,o,c)),mt=t.lng||o.language,Rt=T.current,ut=R.current;if(ut&&ut.ready===ct&&ut.lng===mt&&ut.keyPrefix===h&&ut.revision===Rt)return ut;const J={t:o.getFixedT(mt,c.nsMode==="fallback"?y:y[0],h,{scopeNs:y}),ready:ct,lng:mt,keyPrefix:h,revision:Rt};return R.current=J,J},[o,y,h,c,t.lng]),[z,L]=M.useState(0),{t:I,ready:F}=OP.useSyncExternalStore(k,N,N);M.useEffect(()=>{if(o&&!F&&!d){const ct=()=>L(mt=>mt+1);t.lng?lC(o,t.lng,y,ct):lb(o,y,ct)}},[o,t.lng,y,F,d,z]);const B=o||{},Y=M.useRef(null),Z=M.useRef(),et=ct=>{const mt=Object.getOwnPropertyDescriptors(ct);mt.__original&&delete mt.__original;const Rt=Object.create(Object.getPrototypeOf(ct),mt);if(!Object.prototype.hasOwnProperty.call(Rt,"__original"))try{Object.defineProperty(Rt,"__original",{value:ct,writable:!1,enumerable:!1,configurable:!1})}catch{}return Rt},q=M.useMemo(()=>{const ct=B,mt=ct==null?void 0:ct.language;let Rt=ct;ct&&(Y.current&&Y.current.__original===ct?Z.current!==mt?(Rt=et(ct),Y.current=Rt,Z.current=mt):Rt=Y.current:(Rt=et(ct),Y.current=Rt,Z.current=mt));const ut=!F&&!d?(...J)=>(ob(o,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),I(...J)):I,j=[ut,Rt,F];return j.t=ut,j.i18n=Rt,j.ready=F,j},[I,B,F,B.resolvedLanguage,B.language,B.languages]);if(o&&d&&!F)throw new Promise(ct=>{const mt=()=>ct();t.lng?lC(o,t.lng,y,mt):lb(o,y,mt)});return q};var Uf=xg(),BP=Object.defineProperty,db=(e,t)=>BP(e,"name",{value:t,configurable:!0});function hb(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}db(hb,"setRef");function Gu(...e){return t=>{let n=!1;const i=e.map(a=>{const o=hb(a,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let a=0;a<i.length;a++){const o=i[a];typeof o=="function"?o():hb(e[a],null)}}}}db(Gu,"composeRefs");function Be(...e){return M.useCallback(Gu(...e),e)}db(Be,"useComposedRefs");var jP=Object.defineProperty,ga=(e,t)=>jP(e,"name",{value:t,configurable:!0});function pa(e){const t=M.forwardRef((n,i)=>{let{children:a,...o}=n,c=null,d=!1;const h=[];fb(a)&&typeof Zg=="function"&&(a=Zg(a._payload)),M.Children.forEach(a,T=>{var k;if(mC(T)){d=!0;const R=T;let N="child"in R.props?R.props.child:R.props.children;fb(N)&&typeof Zg=="function"&&(N=Zg(N._payload)),c=UP(R,N),h.push((k=c==null?void 0:c.props)==null?void 0:k.children)}else h.push(T)}),c?c=M.cloneElement(c,void 0,h):!d&&M.Children.count(a)===1&&M.isValidElement(a)&&(c=a);const m=c?fC(c):void 0,b=Be(i,m);if(!c){if(a||a===0)throw new Error(d?GP(e):HP(e));return a}const y=hC(o,c.props??{});return c.type!==M.Fragment&&(y.ref=i?b:m),M.cloneElement(c,y)});return t.displayName=`${e}.Slot`,t}ga(pa,"createSlot");var Vf=pa("Slot"),dC=Symbol.for("radix.slottable");function FP(e){const t=ga(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=dC,t}ga(FP,"createSlottable");var UP=ga((e,t)=>{if("child"in e.props){const n=e.props.child;return M.isValidElement(n)?M.cloneElement(n,void 0,e.props.children(n.props.children)):null}return M.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function hC(e,t){const n={...t};for(const i in t){const a=e[i],o=t[i];/^on[A-Z]/.test(i)?a&&o?n[i]=(...d)=>{const h=o(...d);return a(...d),h}:a&&(n[i]=a):i==="style"?n[i]={...a,...o}:i==="className"&&(n[i]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}ga(hC,"mergeProps");function fC(e){var i,a;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}ga(fC,"getElementRef");function mC(e){return M.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===dC}ga(mC,"isSlottable");var VP=Symbol.for("react.lazy");function fb(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===VP&&"_payload"in e&&gC(e._payload)}ga(fb,"isLazyComponent");function gC(e){return typeof e=="object"&&e!==null&&"then"in e}ga(gC,"isPromiseLike");var HP=ga(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),GP=ga(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Zg=Jd[" use ".trim().toString()],YP=Object.defineProperty,WP=(e,t)=>YP(e,"name",{value:t,configurable:!0}),KP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],De=KP.reduce((e,t)=>{const n=pa(`Primitive.${t}`),i=M.forwardRef((a,o)=>{const{asChild:c,...d}=a,h=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(h,{...d,ref:o})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function mb(e,t){e&&Uf.flushSync(()=>e.dispatchEvent(t))}WP(mb,"dispatchDiscreteCustomEvent");var XP=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),QP=Object.defineProperty,Ks=(e,t)=>QP(e,"name",{value:t,configurable:!0});function ZP(e,t){const n=M.createContext(t);n.displayName=e+"Context";const i=Ks(o=>{const{children:c,...d}=o,h=M.useMemo(()=>d,Object.values(d));return w.jsx(n.Provider,{value:h,children:c})},"Provider");i.displayName=e+"Provider";function a(o,c={}){const{optional:d=!1}=c,h=M.useContext(n);if(h)return h;if(t!==void 0)return t;if(!d)throw new Error(`\`${o}\` must be used within \`${e}\``)}return Ks(a,"useContext"),[i,a]}Ks(ZP,"createContext");function va(e,t=[]){let n=[];function i(o,c){const d=M.createContext(c);d.displayName=o+"Context";const h=n.length;n=[...n,c];const m=Ks(y=>{var L;const{scope:T,children:k,...R}=y,N=((L=T==null?void 0:T[e])==null?void 0:L[h])||d,z=M.useMemo(()=>R,Object.values(R));return w.jsx(N.Provider,{value:z,children:k})},"Provider");m.displayName=o+"Provider";function b(y,T,k={}){var L;const{optional:R=!1}=k,N=((L=T==null?void 0:T[e])==null?void 0:L[h])||d,z=M.useContext(N);if(z)return z;if(c!==void 0)return c;if(!R)throw new Error(`\`${y}\` must be used within \`${o}\``)}return Ks(b,"useContext"),[m,b]}Ks(i,"createContext");const a=Ks(()=>{const o=n.map(c=>M.createContext(c));return Ks(function(d){const h=(d==null?void 0:d[e])||o;return M.useMemo(()=>({[`__scope${e}`]:{...d,[e]:h}}),[d,h])},"useScope")},"createScope");return a.scopeName=e,[i,pC(a,...t)]}Ks(va,"createContextScope");function pC(...e){const t=e[0];if(e.length===1)return t;const n=Ks(()=>{const i=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return Ks(function(o){const c=i.reduce((d,{useScope:h,scopeName:m})=>{const y=h(o)[`__scope${m}`];return{...d,...y}},{});return M.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}Ks(pC,"composeContextScopes");var JP=Object.defineProperty,Ui=(e,t)=>JP(e,"name",{value:t,configurable:!0});function Jg(e){const t=e+"CollectionProvider",[n,i]=va(t),[a,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=Ui(N=>{const{scope:z,children:L}=N,I=M.useRef(null),F=M.useRef(new Map).current;return w.jsx(a,{scope:z,itemMap:F,collectionRef:I,children:L})},"CollectionProvider");c.displayName=t;const d=e+"CollectionSlot",h=pa(d),m=M.forwardRef((N,z)=>{const{scope:L,children:I}=N,F=o(d,L),B=Be(z,F.collectionRef);return w.jsx(h,{ref:B,children:I})});m.displayName=d;const b=e+"CollectionItemSlot",y="data-radix-collection-item",T=pa(b),k=M.forwardRef((N,z)=>{const{scope:L,children:I,...F}=N,B=M.useRef(null),Y=Be(z,B),Z=o(b,L);return M.useEffect(()=>(Z.itemMap.set(B,{ref:B,...F}),()=>void Z.itemMap.delete(B))),w.jsx(T,{[y]:"",ref:Y,children:I})});k.displayName=b;function R(N){const z=o(e+"CollectionConsumer",N);return M.useCallback(()=>{const I=z.collectionRef.current;if(!I)return[];const F=Array.from(I.querySelectorAll(`[${y}]`));return Array.from(z.itemMap.values()).sort((Z,et)=>F.indexOf(Z.ref.current)-F.indexOf(et.ref.current))},[z.collectionRef,z.itemMap])}return Ui(R,"useCollection"),[{Provider:c,Slot:m,ItemSlot:k},R,i]}Ui(Jg,"createCollection");var vC=new WeakMap,gb=(us=class extends Map{constructor(n){super(n);MN(this,mi);s1(this,mi,[...super.keys()]),vC.set(this,!0)}set(n,i){return vC.get(this)&&(this.has(n)?xr(this,mi)[xr(this,mi).indexOf(n)]=n:xr(this,mi).push(n)),super.set(n,i),this}insert(n,i,a){const o=this.has(i),c=xr(this,mi).length,d=pb(n);let h=d>=0?d:c+d;const m=h<0||h>=c?-1:h;if(m===this.size||o&&m===this.size-1||m===-1)return this.set(i,a),this;const b=this.size+(o?0:1);d<0&&h++;const y=[...xr(this,mi)];let T,k=!1;for(let R=h;R<b;R++)if(h===R){let N=y[R];y[R]===i&&(N=y[R+1]),o&&this.delete(i),T=this.get(N),this.set(i,a)}else{!k&&y[R-1]===i&&(k=!0);const N=y[k?R:R-1],z=T;T=this.get(N),this.delete(N),this.set(N,z)}return this}with(n,i,a){const o=new us(this);return o.insert(n,i,a),o}before(n){const i=xr(this,mi).indexOf(n)-1;if(!(i<0))return this.entryAt(i)}setBefore(n,i,a){const o=xr(this,mi).indexOf(n);return o===-1?this:this.insert(o,i,a)}after(n){let i=xr(this,mi).indexOf(n);if(i=i===-1||i===this.size-1?-1:i+1,i!==-1)return this.entryAt(i)}setAfter(n,i,a){const o=xr(this,mi).indexOf(n);return o===-1?this:this.insert(o+1,i,a)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return s1(this,mi,[]),super.clear()}delete(n){const i=super.delete(n);return i&&xr(this,mi).splice(xr(this,mi).indexOf(n),1),i}deleteAt(n){const i=this.keyAt(n);return i!==void 0?this.delete(i):!1}at(n){const i=qg(xr(this,mi),n);if(i!==void 0)return this.get(i)}entryAt(n){const i=qg(xr(this,mi),n);if(i!==void 0)return[i,this.get(i)]}indexOf(n){return xr(this,mi).indexOf(n)}keyAt(n){return qg(xr(this,mi),n)}from(n,i){const a=this.indexOf(n);if(a===-1)return;let o=a+i;return o<0&&(o=0),o>=this.size&&(o=this.size-1),this.at(o)}keyFrom(n,i){const a=this.indexOf(n);if(a===-1)return;let o=a+i;return o<0&&(o=0),o>=this.size&&(o=this.size-1),this.keyAt(o)}find(n,i){let a=0;for(const o of this){if(Reflect.apply(n,i,[o,a,this]))return o;a++}}findIndex(n,i){let a=0;for(const o of this){if(Reflect.apply(n,i,[o,a,this]))return a;a++}return-1}filter(n,i){const a=[];let o=0;for(const c of this)Reflect.apply(n,i,[c,o,this])&&a.push(c),o++;return new us(a)}map(n,i){const a=[];let o=0;for(const c of this)a.push([c[0],Reflect.apply(n,i,[c,o,this])]),o++;return new us(a)}reduce(...n){const[i,a]=n;let o=0,c=a??this.at(0);for(const d of this)o===0&&n.length===1?c=d:c=Reflect.apply(i,this,[c,d,o,this]),o++;return c}reduceRight(...n){const[i,a]=n;let o=a??this.at(-1);for(let c=this.size-1;c>=0;c--){const d=this.at(c);c===this.size-1&&n.length===1?o=d:o=Reflect.apply(i,this,[o,d,c,this])}return o}toSorted(n){const i=[...this.entries()].sort(n);return new us(i)}toReversed(){const n=new us;for(let i=this.size-1;i>=0;i--){const a=this.keyAt(i),o=this.get(a);n.set(a,o)}return n}toSpliced(...n){const i=[...this.entries()];return i.splice(...n),new us(i)}slice(n,i){const a=new us;let o=this.size-1;if(n===void 0)return a;n<0&&(n=n+this.size),i!==void 0&&i>0&&(o=i-1);for(let c=n;c<=o;c++){const d=this.keyAt(c),h=this.get(d);a.set(d,h)}return a}every(n,i){let a=0;for(const o of this){if(!Reflect.apply(n,i,[o,a,this]))return!1;a++}return!0}some(n,i){let a=0;for(const o of this){if(Reflect.apply(n,i,[o,a,this]))return!0;a++}return!1}},mi=new WeakMap,Ui(us,"OrderedDict"),us);function qg(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=yC(e,t);return n===-1?void 0:e[n]}Ui(qg,"at");function yC(e,t){const n=e.length,i=pb(t),a=i>=0?i:n+i;return a<0||a>=n?-1:a}Ui(yC,"toSafeIndex");function pb(e){return e!==e||e===0?0:Math.trunc(e)}Ui(pb,"toSafeInteger");function qP(e){const t=e+"CollectionProvider",[n,i]=va(t),[a,o]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new gb,setItemMap:Ui(()=>{},"setItemMap")}),c=Ui(({state:F,...B})=>F?w.jsx(h,{...B,state:F}):w.jsx(d,{...B}),"CollectionProvider");c.displayName=t;const d=Ui(F=>{const B=z();return w.jsx(h,{...F,state:B})},"CollectionInit");d.displayName=t+"Init";const h=Ui(F=>{const{scope:B,children:Y,state:Z}=F,et=M.useRef(null),[q,nt]=M.useState(null),ot=Be(et,nt),[Ct,ct]=Z;return M.useEffect(()=>{if(!q)return;const mt=wC(()=>{});return mt.observe(q,{childList:!0,subtree:!0}),()=>{mt.disconnect()}},[q]),w.jsx(a,{scope:B,itemMap:Ct,setItemMap:ct,collectionRef:ot,collectionRefObject:et,collectionElement:q,children:Y})},"CollectionProviderImpl");h.displayName=t+"Impl";const m=e+"CollectionSlot",b=pa(m),y=M.forwardRef((F,B)=>{const{scope:Y,children:Z}=F,et=o(m,Y),q=Be(B,et.collectionRef);return w.jsx(b,{ref:q,children:Z})});y.displayName=m;const T=e+"CollectionItemSlot",k="data-radix-collection-item",R=pa(T),N=M.forwardRef((F,B)=>{const{scope:Y,children:Z,...et}=F,q=M.useRef(null),[nt,ot]=M.useState(null),Ct=Be(B,q,ot),ct=o(T,Y),{setItemMap:mt}=ct,Rt=M.useRef(et);bC(Rt.current,et)||(Rt.current=et);const ut=Rt.current;return M.useEffect(()=>{const j=ut;return mt(J=>nt?J.has(nt)?J.set(nt,{...j,element:nt}).toSorted(vb):(J.set(nt,{...j,element:nt}),J.toSorted(vb)):J),()=>{mt(J=>!nt||!J.has(nt)?J:(J.delete(nt),new gb(J)))}},[nt,ut,mt]),w.jsx(R,{[k]:"",ref:Ct,children:Z})});N.displayName=T;function z(){return M.useState(new gb)}Ui(z,"useInitCollection");function L(F){const{itemMap:B}=o(e+"CollectionConsumer",F);return B}return Ui(L,"useCollection"),[{Provider:c,Slot:y,ItemSlot:N},{createCollectionScope:i,useCollection:L,useInitCollection:z}]}Ui(qP,"createCollection");function bC(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e==null||t==null)return!1;const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(const a of n)if(!Object.prototype.hasOwnProperty.call(t,a)||e[a]!==t[a])return!1;return!0}Ui(bC,"shallowEqual");function xC(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Ui(xC,"isElementPreceding");function vb(e,t){return!e[1].element||!t[1].element?0:xC(e[1].element,t[1].element)?-1:1}Ui(vb,"sortByDocumentPosition");function wC(e){return new MutationObserver(n=>{for(const i of n)if(i.type==="childList"){e();return}})}Ui(wC,"getChildListObserver");var $P=Object.defineProperty,uh=(e,t)=>$P(e,"name",{value:t,configurable:!0}),SC=!!(typeof window<"u"&&window.document&&window.document.createElement);function Kt(e,t,{checkForDefaultPrevented:n=!0}={}){return uh(function(a){if(e==null||e(a),n===!1||!a||!a.defaultPrevented)return t==null?void 0:t(a)},"handleEvent")}uh(Kt,"composeEventHandlers");function t3(e){var t;if(!SC)throw new Error("Cannot access window outside of the DOM");return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)??window}uh(t3,"getOwnerWindow");function yb(e){if(!SC)throw new Error("Cannot access document outside of the DOM");return(e==null?void 0:e.ownerDocument)??document}uh(yb,"getOwnerDocument");function CC(e,t=!1){const{activeElement:n}=yb(e);if(!(n!=null&&n.nodeName))return null;if(TC(n)&&n.contentDocument)return CC(n.contentDocument.body,t);if(t){const i=n.getAttribute("aria-activedescendant");if(i){const a=yb(n).getElementById(i);if(a)return a}}return n}uh(CC,"getActiveElement");function TC(e){return e.tagName==="IFRAME"}uh(TC,"isFrame");var ei=globalThis!=null&&globalThis.document?M.useLayoutEffect:()=>{},e3=Object.defineProperty,n3=(e,t)=>e3(e,"name",{value:t,configurable:!0}),EC=Jd[" useEffectEvent ".trim().toString()],MC=Jd[" useInsertionEffect ".trim().toString()];function RC(e){if(typeof EC=="function")return EC(e);const t=M.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof MC=="function"?MC(()=>{t.current=e}):ei(()=>{t.current=e}),M.useMemo(()=>((...n)=>{var i;return(i=t.current)==null?void 0:i.call(t,...n)}),[])}n3(RC,"useEffectEvent");var i3=Object.defineProperty,Hf=(e,t)=>i3(e,"name",{value:t,configurable:!0}),r3=Jd[" useInsertionEffect ".trim().toString()]||ei;function nl({prop:e,defaultProp:t,onChange:n=Hf(()=>{},"onChange"),caller:i}){const[a,o,c]=kC({defaultProp:t,onChange:n}),d=e!==void 0,h=d?e:a,m=M.useCallback(b=>{var y;if(d){const T=_C(b)?b(e):b;T!==e&&((y=c.current)==null||y.call(c,T))}else o(b)},[d,e,o,c]);return[h,m]}Hf(nl,"useControllableState");function kC({defaultProp:e,onChange:t}){const[n,i]=M.useState(e),a=M.useRef(n),o=M.useRef(t);return r3(()=>{o.current=t},[t]),M.useEffect(()=>{var c;a.current!==n&&((c=o.current)==null||c.call(o,n),a.current=n)},[n,a]),[n,i,o]}Hf(kC,"useUncontrolledState");function _C(e){return typeof e=="function"}Hf(_C,"isFunction");var AC=Symbol("RADIX:SYNC_STATE");function s3(e,t,n,i){const{prop:a,defaultProp:o,onChange:c,caller:d}=t,h=a!==void 0,m=RC(c),b=[{...n,state:o}];i&&b.push(i);const[y,T]=M.useReducer((z,L)=>{if(L.type===AC)return{...z,state:L.state};const I=e(z,L);return h&&!Object.is(I.state,z.state)&&m(I.state),I},...b),k=y.state,R=M.useRef(k);M.useEffect(()=>{R.current!==k&&(R.current=k,h||m(k))},[k,R,h]);const N=M.useMemo(()=>a!==void 0?{...y,state:a}:y,[y,a]);return M.useEffect(()=>{h&&!Object.is(a,y.state)&&T({type:AC,state:a})},[a,y.state,h]),[N,T]}Hf(s3,"useControllableStateReducer");var a3=Object.defineProperty,il=(e,t)=>a3(e,"name",{value:t,configurable:!0});function NC(e,t){return M.useReducer((n,i)=>t[n][i]??n,e)}il(NC,"useStateMachine");var Xs=il(e=>{const{present:t,children:n}=e,i=zC(t),a=typeof n=="function"?n({present:i.isPresent}):M.Children.only(n),o=DC(i.ref,OC(a));return typeof n=="function"||i.isPresent?M.cloneElement(a,{ref:o}):null},"Presence");function zC(e){const[t,n]=M.useState(),i=M.useRef(null),a=M.useRef(e),o=M.useRef("none"),c=M.useRef(void 0),d=e?"mounted":"unmounted",[h,m]=NC(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return M.useEffect(()=>{h==="mounted"?(o.current=c.current??dh(i.current),c.current=void 0):o.current="none"},[h]),ei(()=>{const b=i.current,y=a.current;if(y!==e){const k=o.current,R=dh(b);e?(c.current=R,m("MOUNT")):R==="none"||(b==null?void 0:b.display)==="none"?m("UNMOUNT"):m(y&&k!==R?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,m]),ei(()=>{if(t){let b;const y=t.ownerDocument.defaultView??window,T=il(R=>{const z=dh(i.current).includes(CSS.escape(R.animationName));if(R.target===t&&z&&(m("ANIMATION_END"),!a.current)){const L=t.style.animationFillMode;t.style.animationFillMode="forwards",b=y.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=L)})}},"handleAnimationEnd"),k=il(R=>{R.target===t&&(o.current=dh(i.current))},"handleAnimationStart");return t.addEventListener("animationstart",k),t.addEventListener("animationcancel",T),t.addEventListener("animationend",T),()=>{y.clearTimeout(b),t.removeEventListener("animationstart",k),t.removeEventListener("animationcancel",T),t.removeEventListener("animationend",T)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:M.useCallback(b=>{if(b){const y=getComputedStyle(b);i.current=y,c.current=dh(y)}else i.current=null;n(b)},[])}}il(zC,"usePresence");function bb(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}il(bb,"setRef");function DC(...e){const t=M.useRef(e);return t.current=e,M.useCallback(n=>{const i=t.current;let a=!1;const o=i.map(c=>{const d=bb(c,n);return!a&&typeof d=="function"&&(a=!0),d});if(a)return()=>{for(let c=0;c<o.length;c++){const d=o[c];typeof d=="function"?d():bb(i[c],null)}}},[])}il(DC,"useStableComposedRefs");function dh(e){return(e==null?void 0:e.animationName)||"none"}il(dh,"getAnimationName");function OC(e){var i,a;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}il(OC,"getElementRef");var o3=Object.defineProperty,l3=(e,t)=>o3(e,"name",{value:t,configurable:!0}),c3=Jd[" useId ".trim().toString()]||(()=>{}),u3=0;function Vi(e){const[t,n]=M.useState(c3());return ei(()=>{e||n(i=>i??String(u3++))},[e]),e||(t?`radix-${t}`:"")}l3(Vi,"useId");var d3=Object.defineProperty,h3=(e,t)=>d3(e,"name",{value:t,configurable:!0}),f3=M.createContext(void 0);function $g(e){const t=M.useContext(f3);return e||t||"ltr"}h3($g,"useDirection");var m3=Object.defineProperty,g3=(e,t)=>m3(e,"name",{value:t,configurable:!0});function os(e){const t=M.useRef(e);return M.useEffect(()=>{t.current=e}),M.useMemo(()=>((...n)=>{var i;return(i=t.current)==null?void 0:i.call(t,...n)}),[])}g3(os,"useCallbackRef");var p3=Object.defineProperty,Hi=(e,t)=>p3(e,"name",{value:t,configurable:!0}),xb="dismissableLayer.update",v3="dismissableLayer.pointerDownOutside",y3="dismissableLayer.focusOutside",PC,LC=M.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Gf=M.forwardRef(Hi(function(t,n){const{disableOutsidePointerEvents:i=!1,deferPointerDownOutside:a=!1,onEscapeKeyDown:o,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:h,onDismiss:m,...b}=t,y=M.useContext(LC),[T,k]=M.useState(null),R=(T==null?void 0:T.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,N]=M.useState({}),z=Be(n,k),L=Array.from(y.layers),[I]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),F=I?L.indexOf(I):-1,B=T?L.indexOf(T):-1,Y=y.layersWithOutsidePointerEventsDisabled.size>0,Z=B>=F,et=M.useRef(!1),q=BC(ct=>{c==null||c(ct),h==null||h(ct),ct.defaultPrevented||m==null||m()},{ownerDocument:R,deferPointerDownOutside:a,isDeferredPointerDownOutsideRef:et,dismissableSurfaces:y.dismissableSurfaces,shouldHandlePointerDownOutside:M.useCallback(ct=>{if(!(ct instanceof Node))return!1;const mt=[...y.branches].some(Rt=>Rt.contains(ct));return Z&&!mt},[y.branches,Z])}),nt=jC(ct=>{if(a&&et.current)return;const mt=ct.target;[...y.branches].some(ut=>ut.contains(mt))||(d==null||d(ct),h==null||h(ct),ct.defaultPrevented||m==null||m())},R),ot=T?B===L.length-1:!1,Ct=os(ct=>{ct.key==="Escape"&&(o==null||o(ct),!ct.defaultPrevented&&m&&(ct.preventDefault(),m()))});return M.useEffect(()=>{if(ot)return R.addEventListener("keydown",Ct,{capture:!0}),()=>R.removeEventListener("keydown",Ct,{capture:!0})},[R,ot,Ct]),M.useEffect(()=>{if(T)return i&&(y.layersWithOutsidePointerEventsDisabled.size===0&&(PC=R.body.style.pointerEvents,R.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(T)),y.layers.add(T),wb(),()=>{i&&(y.layersWithOutsidePointerEventsDisabled.delete(T),y.layersWithOutsidePointerEventsDisabled.size===0&&(R.body.style.pointerEvents=PC))}},[T,R,i,y]),M.useEffect(()=>()=>{T&&(y.layers.delete(T),y.layersWithOutsidePointerEventsDisabled.delete(T),wb())},[T,y]),M.useEffect(()=>{const ct=Hi(()=>N({}),"handleUpdate");return document.addEventListener(xb,ct),()=>document.removeEventListener(xb,ct)},[]),w.jsx(De.div,{...b,ref:z,style:{pointerEvents:Y?Z?"auto":"none":void 0,...t.style},onFocusCapture:Kt(t.onFocusCapture,nt.onFocusCapture),onBlurCapture:Kt(t.onBlurCapture,nt.onBlurCapture),onPointerDownCapture:Kt(t.onPointerDownCapture,q.onPointerDownCapture)})},"DismissableLayer"));function IC(){const e=M.useContext(LC),[t,n]=M.useState(null);return M.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}Hi(IC,"useDismissableLayerSurface");var b3=Hi(()=>!0,"IS_TRUE");function BC(e,t){const{ownerDocument:n=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:i=!1,isDeferredPointerDownOutsideRef:a,dismissableSurfaces:o,shouldHandlePointerDownOutside:c=b3}=t,d=os(e),h=M.useRef(!1),m=M.useRef(!1),b=M.useRef(new Map),y=M.useRef(()=>{});return M.useEffect(()=>{function T(){m.current=!1,a.current=!1,b.current.clear()}Hi(T,"resetOutsideInteraction");function k(){return Array.from(b.current.values()).some(Boolean)}Hi(k,"isOutsideInteractionIntercepted");function R(F){if(!m.current)return;const B=F.target;B instanceof Node&&[...o].some(Z=>Z.contains(B))||b.current.set(F.type,!0),F.type==="click"&&window.setTimeout(()=>{m.current&&y.current()},0)}Hi(R,"handleInteractionCapture");function N(F){m.current&&b.current.set(F.type,!1)}Hi(N,"handleInteractionBubble");const z=Hi(F=>{if(F.target&&!h.current){let B=function(){n.removeEventListener("click",y.current);const Z=k();T(),Z||Sb(v3,d,Y,{discrete:!0})};if(Hi(B,"handleAndDispatchPointerDownOutsideEvent"),!c(F.target)){n.removeEventListener("click",y.current),T(),h.current=!1;return}const Y={originalEvent:F};m.current=!0,a.current=i&&F.button===0,b.current.clear(),!i||F.button!==0?B():(n.removeEventListener("click",y.current),y.current=B,n.addEventListener("click",y.current,{once:!0}))}else n.removeEventListener("click",y.current),T();h.current=!1},"handlePointerDown"),L=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const F of L)n.addEventListener(F,R,!0),n.addEventListener(F,N);const I=window.setTimeout(()=>{n.addEventListener("pointerdown",z)},0);return()=>{window.clearTimeout(I),n.removeEventListener("pointerdown",z),n.removeEventListener("click",y.current);for(const F of L)n.removeEventListener(F,R,!0),n.removeEventListener(F,N)}},[n,d,i,a,o,c]),{onPointerDownCapture:Hi(()=>h.current=!0,"onPointerDownCapture")}}Hi(BC,"usePointerDownOutside");function jC(e,t=globalThis==null?void 0:globalThis.document){const n=os(e),i=M.useRef(!1);return M.useEffect(()=>{const a=Hi(o=>{o.target&&!i.current&&Sb(y3,n,{originalEvent:o},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:Hi(()=>i.current=!0,"onFocusCapture"),onBlurCapture:Hi(()=>i.current=!1,"onBlurCapture")}}Hi(jC,"useFocusOutside");function wb(){const e=new CustomEvent(xb);document.dispatchEvent(e)}Hi(wb,"dispatchUpdate");function Sb(e,t,n,{discrete:i}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),i?mb(a,o):a.dispatchEvent(o)}Hi(Sb,"handleAndDispatchCustomEvent");var x3=Object.defineProperty,Sr=(e,t)=>x3(e,"name",{value:t,configurable:!0}),Cb="focusScope.autoFocusOnMount",Tb="focusScope.autoFocusOnUnmount",FC={bubbles:!1,cancelable:!0},tp=M.forwardRef(Sr(function(t,n){const{loop:i=!1,trapped:a=!1,onMountAutoFocus:o,onUnmountAutoFocus:c,...d}=t,[h,m]=M.useState(null),b=os(o),y=os(c),T=M.useRef(null),k=Be(n,m),R=M.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;M.useEffect(()=>{if(a){let z=function(B){if(R.paused||!h)return;const Y=B.target;h.contains(Y)?T.current=Y:rl(T.current,{select:!0})},L=function(B){if(R.paused||!h)return;const Y=B.relatedTarget;Y!==null&&(h.contains(Y)||rl(T.current,{select:!0}))},I=function(B){if(document.activeElement===document.body)for(const Z of B)Z.removedNodes.length>0&&rl(h)};Sr(z,"handleFocusIn"),Sr(L,"handleFocusOut"),Sr(I,"handleMutations"),document.addEventListener("focusin",z),document.addEventListener("focusout",L);const F=new MutationObserver(I);return h&&F.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",z),document.removeEventListener("focusout",L),F.disconnect()}}},[a,h,R.paused]),M.useEffect(()=>{if(h){YC.add(R);const z=document.activeElement;if(!h.contains(z)){const I=new CustomEvent(Cb,FC);h.addEventListener(Cb,b),h.dispatchEvent(I),I.defaultPrevented||(UC(KC(Eb(h)),{select:!0}),document.activeElement===z&&rl(h))}return()=>{h.removeEventListener(Cb,b),setTimeout(()=>{const I=new CustomEvent(Tb,FC);h.addEventListener(Tb,y),h.dispatchEvent(I),I.defaultPrevented||rl(z??document.body,{select:!0}),h.removeEventListener(Tb,y),YC.remove(R)},0)}}},[h,b,y,R]);const N=M.useCallback(z=>{if(!i&&!a||R.paused)return;const L=z.key==="Tab"&&!z.altKey&&!z.ctrlKey&&!z.metaKey,I=document.activeElement;if(L&&I){const F=z.currentTarget,[B,Y]=VC(F);B&&Y?!z.shiftKey&&I===Y?(z.preventDefault(),i&&rl(B,{select:!0})):z.shiftKey&&I===B&&(z.preventDefault(),i&&rl(Y,{select:!0})):I===F&&z.preventDefault()}},[i,a,R.paused]);return w.jsx(De.div,{tabIndex:-1,...d,ref:k,onKeyDown:N})},"FocusScope"));function UC(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(rl(i,{select:t}),document.activeElement!==n)return}Sr(UC,"focusFirst");function VC(e){const t=Eb(e),n=Mb(t,e),i=Mb(t.reverse(),e);return[n,i]}Sr(VC,"getTabbableEdges");function Eb(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Sr(i=>{const a=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||a?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}Sr(Eb,"getTabbableCandidates");function Mb(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const i of e)if(!(n?!i.checkVisibility({checkVisibilityCSS:!0}):HC(i,{upTo:t})))return i}Sr(Mb,"findVisible");function HC(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}Sr(HC,"isHidden");function GC(e){return e instanceof HTMLInputElement&&"select"in e}Sr(GC,"isSelectableInput");function rl(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&GC(e)&&t&&e.select()}}Sr(rl,"focus");var YC=WC();function WC(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Rb(e,t),e.unshift(t)},remove(t){var n;e=Rb(e,t),(n=e[0])==null||n.resume()}}}Sr(WC,"createFocusScopesStack");function Rb(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}Sr(Rb,"arrayRemove");function KC(e){return e.filter(t=>t.tagName!=="A")}Sr(KC,"removeLinks");var w3=Object.defineProperty,S3=(e,t)=>w3(e,"name",{value:t,configurable:!0}),Yf=M.forwardRef(S3(function(t,n){var h;const{container:i,...a}=t,[o,c]=M.useState(!1);ei(()=>c(!0),[]);const d=i||o&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return d?Uf.createPortal(w.jsx(De.div,{...a,ref:n}),d):null},"Portal")),C3=Object.defineProperty,kb=(e,t)=>C3(e,"name",{value:t,configurable:!0}),ep=0,ro=null;function T3(e){return hh(),e.children}kb(T3,"FocusGuards");function hh(){M.useEffect(()=>{ro||(ro={start:_b(),end:_b()});const{start:e,end:t}=ro;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),ep++,()=>{ep===1&&(ro==null||ro.start.remove(),ro==null||ro.end.remove(),ro=null),ep=Math.max(0,ep-1)}},[])}kb(hh,"useFocusGuards");function _b(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}kb(_b,"createFocusGuard");var so=function(){return so=Object.assign||function(t){for(var n,i=1,a=arguments.length;i<a;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},so.apply(this,arguments)};function XC(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(n[i[a]]=e[i[a]]);return n}function E3(e,t,n){if(n||arguments.length===2)for(var i=0,a=t.length,o;i<a;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var np="right-scroll-bar-position",ip="width-before-scroll-bar",M3="with-scroll-bars-hidden",R3="--removed-body-scroll-bar-size";function Ab(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function k3(e,t){var n=M.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var a=n.value;a!==i&&(n.value=i,n.callback(i,a))}}}})[0];return n.callback=t,n.facade}var _3=typeof window<"u"?M.useLayoutEffect:M.useEffect,QC=new WeakMap;function A3(e,t){var n=k3(null,function(i){return e.forEach(function(a){return Ab(a,i)})});return _3(function(){var i=QC.get(n);if(i){var a=new Set(i),o=new Set(e),c=n.current;a.forEach(function(d){o.has(d)||Ab(d,null)}),o.forEach(function(d){a.has(d)||Ab(d,c)})}QC.set(n,e)},[e]),n}function N3(e){return e}function z3(e,t){t===void 0&&(t=N3);var n=[],i=!1,a={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var c=t(o,i);return n.push(c),function(){n=n.filter(function(d){return d!==c})}},assignSyncMedium:function(o){for(i=!0;n.length;){var c=n;n=[],c.forEach(o)}n={push:function(d){return o(d)},filter:function(){return n}}},assignMedium:function(o){i=!0;var c=[];if(n.length){var d=n;n=[],d.forEach(o),c=n}var h=function(){var b=c;c=[],b.forEach(o)},m=function(){return Promise.resolve().then(h)};m(),n={push:function(b){c.push(b),m()},filter:function(b){return c=c.filter(b),n}}}};return a}function D3(e){e===void 0&&(e={});var t=z3(null);return t.options=so({async:!0,ssr:!1},e),t}var ZC=function(e){var t=e.sideCar,n=XC(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return M.createElement(i,so({},n))};ZC.isSideCarExport=!0;function O3(e,t){return e.useMedium(t),ZC}var JC=D3(),Nb=function(){},rp=M.forwardRef(function(e,t){var n=M.useRef(null),i=M.useState({onScrollCapture:Nb,onWheelCapture:Nb,onTouchMoveCapture:Nb}),a=i[0],o=i[1],c=e.forwardProps,d=e.children,h=e.className,m=e.removeScrollBar,b=e.enabled,y=e.shards,T=e.sideCar,k=e.noRelative,R=e.noIsolation,N=e.inert,z=e.allowPinchZoom,L=e.as,I=L===void 0?"div":L,F=e.gapMode,B=XC(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),Y=T,Z=A3([n,t]),et=so(so({},B),a);return M.createElement(M.Fragment,null,b&&M.createElement(Y,{sideCar:JC,removeScrollBar:m,shards:y,noRelative:k,noIsolation:R,inert:N,setCallbacks:o,allowPinchZoom:!!z,lockRef:n,gapMode:F}),c?M.cloneElement(M.Children.only(d),so(so({},et),{ref:Z})):M.createElement(I,so({},et,{className:h,ref:Z}),d))});rp.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},rp.classNames={fullWidth:ip,zeroRight:np};var P3=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function L3(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=P3();return t&&e.setAttribute("nonce",t),e}function I3(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function B3(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var j3=function(){var e=0,t=null;return{add:function(n){e==0&&(t=L3())&&(I3(t,n),B3(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},F3=function(){var e=j3();return function(t,n){M.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},qC=function(){var e=F3(),t=function(n){var i=n.styles,a=n.dynamic;return e(i,a),null};return t},U3={left:0,top:0,right:0,gap:0},zb=function(e){return parseInt(e||"",10)||0},V3=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[zb(n),zb(i),zb(a)]},H3=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return U3;var t=V3(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},G3=qC(),fh="data-scroll-locked",Y3=function(e,t,n,i){var a=e.left,o=e.top,c=e.right,d=e.gap;return n===void 0&&(n="margin"),`
|
|
136
|
+
.`.concat(M3,` {
|
|
137
|
+
overflow: hidden `).concat(i,`;
|
|
138
|
+
padding-right: `).concat(d,"px ").concat(i,`;
|
|
139
|
+
}
|
|
140
|
+
body[`).concat(fh,`] {
|
|
141
|
+
overflow: hidden `).concat(i,`;
|
|
142
|
+
overscroll-behavior: contain;
|
|
143
|
+
`).concat([t&&"position: relative ".concat(i,";"),n==="margin"&&`
|
|
144
|
+
padding-left: `.concat(a,`px;
|
|
145
|
+
padding-top: `).concat(o,`px;
|
|
146
|
+
padding-right: `).concat(c,`px;
|
|
147
|
+
margin-left:0;
|
|
148
|
+
margin-top:0;
|
|
149
|
+
margin-right: `).concat(d,"px ").concat(i,`;
|
|
150
|
+
`),n==="padding"&&"padding-right: ".concat(d,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.`).concat(np,` {
|
|
154
|
+
right: `).concat(d,"px ").concat(i,`;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.`).concat(ip,` {
|
|
158
|
+
margin-right: `).concat(d,"px ").concat(i,`;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.`).concat(np," .").concat(np,` {
|
|
162
|
+
right: 0 `).concat(i,`;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.`).concat(ip," .").concat(ip,` {
|
|
166
|
+
margin-right: 0 `).concat(i,`;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
body[`).concat(fh,`] {
|
|
170
|
+
`).concat(R3,": ").concat(d,`px;
|
|
171
|
+
}
|
|
172
|
+
`)},$C=function(){var e=parseInt(document.body.getAttribute(fh)||"0",10);return isFinite(e)?e:0},W3=function(){M.useEffect(function(){return document.body.setAttribute(fh,($C()+1).toString()),function(){var e=$C()-1;e<=0?document.body.removeAttribute(fh):document.body.setAttribute(fh,e.toString())}},[])},K3=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,a=i===void 0?"margin":i;W3();var o=M.useMemo(function(){return H3(a)},[a]);return M.createElement(G3,{styles:Y3(o,!t,a,n?"":"!important")})},Db=!1;if(typeof window<"u")try{var sp=Object.defineProperty({},"passive",{get:function(){return Db=!0,!0}});window.addEventListener("test",sp,sp),window.removeEventListener("test",sp,sp)}catch{Db=!1}var mh=Db?{passive:!1}:!1,X3=function(e){return e.tagName==="TEXTAREA"},tT=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!X3(e)&&n[t]==="visible")},Q3=function(e){return tT(e,"overflowY")},Z3=function(e){return tT(e,"overflowX")},eT=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var a=nT(e,i);if(a){var o=iT(e,i),c=o[1],d=o[2];if(c>d)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},J3=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},q3=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},nT=function(e,t){return e==="v"?Q3(t):Z3(t)},iT=function(e,t){return e==="v"?J3(t):q3(t)},$3=function(e,t){return e==="h"&&t==="rtl"?-1:1},tL=function(e,t,n,i,a){var o=$3(e,window.getComputedStyle(t).direction),c=o*i,d=n.target,h=t.contains(d),m=!1,b=c>0,y=0,T=0;do{if(!d)break;var k=iT(e,d),R=k[0],N=k[1],z=k[2],L=N-z-o*R;(R||L)&&nT(e,d)&&(y+=L,T+=R);var I=d.parentNode;d=I&&I.nodeType===Node.DOCUMENT_FRAGMENT_NODE?I.host:I}while(!h&&d!==document.body||h&&(t.contains(d)||t===d));return(b&&Math.abs(y)<1||!b&&Math.abs(T)<1)&&(m=!0),m},ap=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},rT=function(e){return[e.deltaX,e.deltaY]},sT=function(e){return e&&"current"in e?e.current:e},eL=function(e,t){return e[0]===t[0]&&e[1]===t[1]},nL=function(e){return`
|
|
173
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
174
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
175
|
+
`)},iL=0,gh=[];function rL(e){var t=M.useRef([]),n=M.useRef([0,0]),i=M.useRef(),a=M.useState(iL++)[0],o=M.useState(qC)[0],c=M.useRef(e);M.useEffect(function(){c.current=e},[e]),M.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var N=E3([e.lockRef.current],(e.shards||[]).map(sT),!0).filter(Boolean);return N.forEach(function(z){return z.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),N.forEach(function(z){return z.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var d=M.useCallback(function(N,z){if("touches"in N&&N.touches.length===2||N.type==="wheel"&&N.ctrlKey)return!c.current.allowPinchZoom;var L=ap(N),I=n.current,F="deltaX"in N?N.deltaX:I[0]-L[0],B="deltaY"in N?N.deltaY:I[1]-L[1],Y,Z=N.target,et=Math.abs(F)>Math.abs(B)?"h":"v";if("touches"in N&&et==="h"&&Z.type==="range")return!1;var q=window.getSelection(),nt=q&&q.anchorNode,ot=nt?nt===Z||nt.contains(Z):!1;if(ot)return!1;var Ct=eT(et,Z);if(!Ct)return!0;if(Ct?Y=et:(Y=et==="v"?"h":"v",Ct=eT(et,Z)),!Ct)return!1;if(!i.current&&"changedTouches"in N&&(F||B)&&(i.current=Y),!Y)return!0;var ct=i.current||Y;return tL(ct,z,N,ct==="h"?F:B)},[]),h=M.useCallback(function(N){var z=N;if(!(!gh.length||gh[gh.length-1]!==o)){var L="deltaY"in z?rT(z):ap(z),I=t.current.filter(function(Y){return Y.name===z.type&&(Y.target===z.target||z.target===Y.shadowParent)&&eL(Y.delta,L)})[0];if(I&&I.should){z.cancelable&&z.preventDefault();return}if(!I){var F=(c.current.shards||[]).map(sT).filter(Boolean).filter(function(Y){return Y.contains(z.target)}),B=F.length>0?d(z,F[0]):!c.current.noIsolation;B&&z.cancelable&&z.preventDefault()}}},[]),m=M.useCallback(function(N,z,L,I){var F={name:N,delta:z,target:L,should:I,shadowParent:sL(L)};t.current.push(F),setTimeout(function(){t.current=t.current.filter(function(B){return B!==F})},1)},[]),b=M.useCallback(function(N){n.current=ap(N),i.current=void 0},[]),y=M.useCallback(function(N){m(N.type,rT(N),N.target,d(N,e.lockRef.current))},[]),T=M.useCallback(function(N){m(N.type,ap(N),N.target,d(N,e.lockRef.current))},[]);M.useEffect(function(){return gh.push(o),e.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:T}),document.addEventListener("wheel",h,mh),document.addEventListener("touchmove",h,mh),document.addEventListener("touchstart",b,mh),function(){gh=gh.filter(function(N){return N!==o}),document.removeEventListener("wheel",h,mh),document.removeEventListener("touchmove",h,mh),document.removeEventListener("touchstart",b,mh)}},[]);var k=e.removeScrollBar,R=e.inert;return M.createElement(M.Fragment,null,R?M.createElement(o,{styles:nL(a)}):null,k?M.createElement(K3,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function sL(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const aL=O3(JC,rL);var Wf=M.forwardRef(function(e,t){return M.createElement(rp,so({},e,{ref:t,sideCar:aL}))});Wf.classNames=rp.classNames;var oL=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ph=new WeakMap,op=new WeakMap,lp={},Ob=0,aT=function(e){return e&&(e.host||aT(e.parentNode))},lL=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=aT(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},cL=function(e,t,n,i){var a=lL(t,Array.isArray(e)?e:[e]);lp[n]||(lp[n]=new WeakMap);var o=lp[n],c=[],d=new Set,h=new Set(a),m=function(y){!y||d.has(y)||(d.add(y),m(y.parentNode))};a.forEach(m);var b=function(y){!y||h.has(y)||Array.prototype.forEach.call(y.children,function(T){if(d.has(T))b(T);else try{var k=T.getAttribute(i),R=k!==null&&k!=="false",N=(ph.get(T)||0)+1,z=(o.get(T)||0)+1;ph.set(T,N),o.set(T,z),c.push(T),N===1&&R&&op.set(T,!0),z===1&&T.setAttribute(n,"true"),R||T.setAttribute(i,"true")}catch(L){console.error("aria-hidden: cannot operate on ",T,L)}})};return b(t),d.clear(),Ob++,function(){c.forEach(function(y){var T=ph.get(y)-1,k=o.get(y)-1;ph.set(y,T),o.set(y,k),T||(op.has(y)||y.removeAttribute(i),op.delete(y)),k||y.removeAttribute(n)}),Ob--,Ob||(ph=new WeakMap,ph=new WeakMap,op=new WeakMap,lp={})}},cp=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),a=oL(e);return a?(i.push.apply(i,Array.from(a.querySelectorAll("[aria-live], script"))),cL(i,a,n,"aria-hidden")):function(){return null}},uL=Object.defineProperty,Qs=(e,t)=>uL(e,"name",{value:t,configurable:!0}),Pb="Dialog",[oT,cW]=va(Pb),[dL,ao]=oT(Pb),Lb=Qs(e=>{const{__scopeDialog:t,children:n,open:i,defaultOpen:a,onOpenChange:o,modal:c=!0}=e,d=M.useRef(null),h=M.useRef(null),[m,b]=nl({prop:i,defaultProp:a??!1,onChange:o,caller:Pb}),[y,T]=M.useState(0),[k,R]=M.useState(0);return w.jsx(dL,{scope:t,triggerRef:d,contentRef:h,contentId:Vi(),titleId:Vi(),descriptionId:Vi(),titlePresent:y>0,descriptionPresent:k>0,setTitleCount:T,setDescriptionCount:R,open:m,onOpenChange:b,onOpenToggle:M.useCallback(()=>b(N=>!N),[b]),modal:c,children:n})},"Dialog"),lT="DialogPortal",[hL,cT]=oT(lT,{forceMount:void 0}),Ib=Qs(e=>{const{__scopeDialog:t,forceMount:n,children:i,container:a}=e,o=ao(lT,t);return w.jsx(hL,{scope:t,forceMount:n,children:M.Children.map(i,c=>w.jsx(Xs,{present:n||o.open,children:w.jsx(Yf,{asChild:!0,container:a,children:c})}))})},"DialogPortal"),Bb="DialogOverlay",up=M.forwardRef(Qs(function(t,n){const i=cT(Bb,t.__scopeDialog),{forceMount:a=i.forceMount,...o}=t,c=ao(Bb,t.__scopeDialog);return c.modal?w.jsx(Xs,{present:a||c.open,children:w.jsx(mL,{...o,ref:n})}):null},"DialogOverlay")),fL=pa("DialogOverlay.RemoveScroll"),mL=M.forwardRef(Qs(function(t,n){const{__scopeDialog:i,...a}=t,o=ao(Bb,i),c=IC(),d=Be(n,c);return w.jsx(Wf,{as:fL,allowPinchZoom:!0,shards:[o.contentRef],children:w.jsx(De.div,{"data-state":Fb(o.open),...a,ref:d,style:{pointerEvents:"auto",...a.style}})})},"DialogOverlayImpl")),Kf="DialogContent",dp=M.forwardRef(Qs(function(t,n){const i=cT(Kf,t.__scopeDialog),{forceMount:a=i.forceMount,...o}=t,c=ao(Kf,t.__scopeDialog);return w.jsx(Xs,{present:a||c.open,children:c.modal?w.jsx(gL,{...o,ref:n}):w.jsx(pL,{...o,ref:n})})},"DialogContent")),gL=M.forwardRef(Qs(function(t,n){const i=ao(Kf,t.__scopeDialog),a=M.useRef(null),o=Be(n,i.contentRef,a);return M.useEffect(()=>{const c=a.current;if(c)return cp(c)},[]),w.jsx(uT,{...t,ref:o,trapFocus:i.open,disableOutsidePointerEvents:i.open,onCloseAutoFocus:Kt(t.onCloseAutoFocus,c=>{var d;c.preventDefault(),(d=i.triggerRef.current)==null||d.focus()}),onPointerDownOutside:Kt(t.onPointerDownOutside,c=>{const d=c.detail.originalEvent,h=d.button===0&&d.ctrlKey===!0;(d.button===2||h)&&c.preventDefault()}),onFocusOutside:Kt(t.onFocusOutside,c=>c.preventDefault())})},"DialogContentModal")),pL=M.forwardRef(Qs(function(t,n){const i=ao(Kf,t.__scopeDialog),a=M.useRef(!1),o=M.useRef(!1);return w.jsx(uT,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var d,h;(d=t.onCloseAutoFocus)==null||d.call(t,c),c.defaultPrevented||(a.current||(h=i.triggerRef.current)==null||h.focus(),c.preventDefault()),a.current=!1,o.current=!1},onInteractOutside:c=>{var m,b;(m=t.onInteractOutside)==null||m.call(t,c),c.defaultPrevented||(a.current=!0,c.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const d=c.target;((b=i.triggerRef.current)==null?void 0:b.contains(d))&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&o.current&&c.preventDefault()}})},"DialogContentNonModal")),uT=M.forwardRef(Qs(function(t,n){const{__scopeDialog:i,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:c,...d}=t,h=ao(Kf,i);return hh(),w.jsx(w.Fragment,{children:w.jsx(tp,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:o,onUnmountAutoFocus:c,children:w.jsx(Gf,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionPresent?h.descriptionId:void 0,"aria-labelledby":h.titlePresent?h.titleId:void 0,"data-state":Fb(h.open),...d,ref:n,deferPointerDownOutside:!0,onDismiss:()=>h.onOpenChange(!1)})})})},"DialogContentImpl")),vL="DialogTitle",jb=M.forwardRef(Qs(function(t,n){const{__scopeDialog:i,...a}=t,o=ao(vL,i),{setTitleCount:c}=o;return ei(()=>(c(d=>d+1),()=>c(d=>d-1)),[c]),w.jsx(De.h2,{id:o.titleId,...a,ref:n})},"DialogTitle")),yL="DialogDescription",dT=M.forwardRef(Qs(function(t,n){const{__scopeDialog:i,...a}=t,o=ao(yL,i),{setDescriptionCount:c}=o;return ei(()=>(c(d=>d+1),()=>c(d=>d-1)),[c]),w.jsx(De.p,{id:o.descriptionId,...a,ref:n})},"DialogDescription")),bL="DialogClose",hT=M.forwardRef(Qs(function(t,n){const{__scopeDialog:i,...a}=t,o=ao(bL,i);return w.jsx(De.button,{type:"button",...a,ref:n,onClick:Kt(t.onClick,()=>o.onOpenChange(!1))})},"DialogClose"));function Fb(e){return e?"open":"closed"}Qs(Fb,"getState");var xL=Object.defineProperty,wL=(e,t)=>xL(e,"name",{value:t,configurable:!0});function fT(e){const[t,n]=M.useState(void 0);return ei(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const o=a[0];let c,d;if("borderBoxSize"in o){const h=o.borderBoxSize,m=Array.isArray(h)?h[0]:h;c=m.inlineSize,d=m.blockSize}else c=e.offsetWidth,d=e.offsetHeight;n({width:c,height:d})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else n(void 0)},[e]),t}wL(fT,"useSize");const SL=["top","right","bottom","left"],tc=Math.min,sl=Math.max,hp=Math.round,fp=Math.floor,al=e=>({x:e,y:e}),CL={left:"right",right:"left",bottom:"top",top:"bottom"};function mT(e,t,n){return sl(e,tc(t,n))}function ol(e,t){return typeof e=="function"?e(t):e}function ec(e){return e.split("-")[0]}function vh(e){return e.split("-")[1]}function Ub(e){return e==="x"?"y":"x"}function Vb(e){return e==="y"?"height":"width"}function oo(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Hb(e){return Ub(oo(e))}function TL(e,t,n){n===void 0&&(n=!1);const i=vh(e),a=Hb(e),o=Vb(a);let c=a==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(c=mp(c)),[c,mp(c)]}function EL(e){const t=mp(e);return[Gb(e),t,Gb(t)]}function Gb(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const gT=["left","right"],pT=["right","left"],ML=["top","bottom"],RL=["bottom","top"];function kL(e,t,n){switch(e){case"top":case"bottom":return n?t?pT:gT:t?gT:pT;case"left":case"right":return t?ML:RL;default:return[]}}function _L(e,t,n,i){const a=vh(e);let o=kL(ec(e),n==="start",i);return a&&(o=o.map(c=>c+"-"+a),t&&(o=o.concat(o.map(Gb)))),o}function mp(e){const t=ec(e);return CL[t]+e.slice(t.length)}function AL(e){var t,n,i,a;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(i=e.bottom)!=null?i:0,left:(a=e.left)!=null?a:0}}function vT(e){return typeof e!="number"?AL(e):{top:e,right:e,bottom:e,left:e}}function gp(e){const{x:t,y:n,width:i,height:a}=e;return{width:i,height:a,top:n,left:t,right:t+i,bottom:n+a,x:t,y:n}}function yT(e,t,n){let{reference:i,floating:a}=e;const o=oo(t),c=Hb(t),d=Vb(c),h=ec(t),m=o==="y",b=i.x+i.width/2-a.width/2,y=i.y+i.height/2-a.height/2,T=i[d]/2-a[d]/2;let k;switch(h){case"top":k={x:b,y:i.y-a.height};break;case"bottom":k={x:b,y:i.y+i.height};break;case"right":k={x:i.x+i.width,y};break;case"left":k={x:i.x-a.width,y};break;default:k={x:i.x,y:i.y}}const R=vh(t);return R&&(k[c]+=T*(R==="end"?1:-1)*(n&&m?-1:1)),k}async function NL(e,t){var n;t===void 0&&(t={});const{x:i,y:a,platform:o,rects:c,elements:d,strategy:h}=e,{boundary:m="clippingAncestors",rootBoundary:b="viewport",elementContext:y="floating",altBoundary:T=!1,padding:k=0}=ol(t,e),R=vT(k),z=d[T?y==="floating"?"reference":"floating":y],L=gp(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(z)))==null||n?z:z.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(d.floating)),boundary:m,rootBoundary:b,strategy:h})),I=y==="floating"?{x:i,y:a,width:c.floating.width,height:c.floating.height}:c.reference,F=await(o.getOffsetParent==null?void 0:o.getOffsetParent(d.floating)),B=await(o.isElement==null?void 0:o.isElement(F))&&await(o.getScale==null?void 0:o.getScale(F))||{x:1,y:1},Y=gp(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:I,offsetParent:F,strategy:h}):I);return{top:(L.top-Y.top+R.top)/B.y,bottom:(Y.bottom-L.bottom+R.bottom)/B.y,left:(L.left-Y.left+R.left)/B.x,right:(Y.right-L.right+R.right)/B.x}}const zL=50,DL=async(e,t,n)=>{const{placement:i="bottom",strategy:a="absolute",middleware:o=[],platform:c}=n,d=c.detectOverflow?c:{...c,detectOverflow:NL},h=await(c.isRTL==null?void 0:c.isRTL(t));let m=await c.getElementRects({reference:e,floating:t,strategy:a}),{x:b,y}=yT(m,i,h),T=i,k=0;const R={};for(let N=0;N<o.length;N++){const z=o[N];if(!z)continue;const{name:L,fn:I}=z,{x:F,y:B,data:Y,reset:Z}=await I({x:b,y,initialPlacement:i,placement:T,strategy:a,middlewareData:R,rects:m,platform:d,elements:{reference:e,floating:t}});b=F??b,y=B??y,R[L]={...R[L],...Y},Z&&k<zL&&(k++,typeof Z=="object"&&(Z.placement&&(T=Z.placement),Z.rects&&(m=Z.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:a}):Z.rects),{x:b,y}=yT(m,T,h)),N=-1)}return{x:b,y,placement:T,strategy:a,middlewareData:R}},OL=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:a,rects:o,platform:c,elements:d,middlewareData:h}=t,{element:m,padding:b=0}=ol(e,t)||{};if(m==null)return{};const y=vT(b),T={x:n,y:i},k=Hb(a),R=Vb(k),N=await c.getDimensions(m),z=k==="y",L=z?"top":"left",I=z?"bottom":"right",F=z?"clientHeight":"clientWidth",B=o.reference[R]+o.reference[k]-T[k]-o.floating[R],Y=T[k]-o.reference[k],Z=await(c.getOffsetParent==null?void 0:c.getOffsetParent(m));let et=Z?Z[F]:0;(!et||!await(c.isElement==null?void 0:c.isElement(Z)))&&(et=d.floating[F]||o.floating[R]);const q=B/2-Y/2,nt=et/2-N[R]/2-1,ot=tc(y[L],nt),Ct=tc(y[I],nt),ct=et-N[R]-Ct,mt=et/2-N[R]/2+q,Rt=mT(ot,mt,ct),ut=!h.arrow&&vh(a)!=null&&mt!==Rt&&o.reference[R]/2-(mt<ot?ot:Ct)-N[R]/2<0,j=ut?mt<ot?mt-ot:mt-ct:0;return{[k]:T[k]+j,data:{[k]:Rt,centerOffset:mt-Rt-j,...ut&&{alignmentOffset:j}},reset:ut}}}),PL=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:a,middlewareData:o,rects:c,initialPlacement:d,platform:h,elements:m}=t,{mainAxis:b=!0,crossAxis:y=!0,fallbackPlacements:T,fallbackStrategy:k="bestFit",fallbackAxisSideDirection:R="none",flipAlignment:N=!0,...z}=ol(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const L=ec(a),I=oo(d),F=ec(d)===d,B=await(h.isRTL==null?void 0:h.isRTL(m.floating)),Y=T||(F||!N?[mp(d)]:EL(d)),Z=R!=="none";!T&&Z&&Y.push(..._L(d,N,R,B));const et=[d,...Y],q=await h.detectOverflow(t,z),nt=[];let ot=((i=o.flip)==null?void 0:i.overflows)||[];if(b&&nt.push(q[L]),y){const Rt=TL(a,c,B);nt.push(q[Rt[0]],q[Rt[1]])}if(ot=[...ot,{placement:a,overflows:nt}],!nt.every(Rt=>Rt<=0)){var Ct,ct;const Rt=(((Ct=o.flip)==null?void 0:Ct.index)||0)+1,ut=et[Rt];if(ut&&(!(y==="alignment"?I!==oo(ut):!1)||ot.every(ht=>oo(ht.placement)===I?ht.overflows[0]>0:!0)))return{data:{index:Rt,overflows:ot},reset:{placement:ut}};let j=(ct=ot.filter(J=>J.overflows[0]<=0).sort((J,ht)=>J.overflows[1]-ht.overflows[1])[0])==null?void 0:ct.placement;if(!j)switch(k){case"bestFit":{var mt;const J=(mt=ot.filter(ht=>{if(Z){const Tt=oo(ht.placement);return Tt===I||Tt==="y"}return!0}).map(ht=>[ht.placement,ht.overflows.filter(Tt=>Tt>0).reduce((Tt,K)=>Tt+K,0)]).sort((ht,Tt)=>ht[1]-Tt[1])[0])==null?void 0:mt[0];J&&(j=J);break}case"initialPlacement":j=d;break}if(a!==j)return{reset:{placement:j}}}return{}}}};function bT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xT(e){return SL.some(t=>e[t]>=0)}const LL=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:i}=t,{strategy:a="referenceHidden",...o}=ol(e,t);switch(a){case"referenceHidden":{const c=await i.detectOverflow(t,{...o,elementContext:"reference"}),d=bT(c,n.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:xT(d)}}}case"escaped":{const c=await i.detectOverflow(t,{...o,altBoundary:!0}),d=bT(c,n.floating);return{data:{escapedOffsets:d,escaped:xT(d)}}}default:return{}}}}},wT=new Set(["left","top"]);async function IL(e,t){const{placement:n,platform:i,elements:a}=e,o=await(i.isRTL==null?void 0:i.isRTL(a.floating)),c=ec(n),d=vh(n),h=oo(n)==="y",m=wT.has(c)?-1:1,b=o&&h?-1:1,y=ol(t,e);let{mainAxis:T,crossAxis:k,alignmentAxis:R}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return d&&typeof R=="number"&&(k=d==="end"?R*-1:R),h?{x:k*b,y:T*m}:{x:T*m,y:k*b}}const BL=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:a,y:o,placement:c,middlewareData:d}=t,h=await IL(t,e);return c===((n=d.offset)==null?void 0:n.placement)&&(i=d.arrow)!=null&&i.alignmentOffset?{}:{x:a+h.x,y:o+h.y,data:{...h,placement:c}}}}},jL=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:a,platform:o}=t,{mainAxis:c=!0,crossAxis:d=!1,limiter:h={fn:I=>{let{x:F,y:B}=I;return{x:F,y:B}}},...m}=ol(e,t),b={x:n,y:i},y=await o.detectOverflow(t,m),T=oo(a),k=Ub(T);let R=b[k],N=b[T];const z=(I,F)=>mT(F+y[I==="y"?"top":"left"],F,F-y[I==="y"?"bottom":"right"]);c&&(R=z(k,R)),d&&(N=z(T,N));const L=h.fn({...t,[k]:R,[T]:N});return{...L,data:{x:L.x-n,y:L.y-i,enabled:{[k]:c,[T]:d}}}}}},FL=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,i;const{x:a,y:o,placement:c,rects:d,middlewareData:h}=t,{offset:m=0,mainAxis:b=!0,crossAxis:y=!0}=ol(e,t),T={x:a,y:o},k=oo(c),R=Ub(k);let N=T[R],z=T[k];const L=ol(m,t),I=typeof L=="number"?{mainAxis:L,crossAxis:0}:{mainAxis:(n=L.mainAxis)!=null?n:0,crossAxis:(i=L.crossAxis)!=null?i:0};if(b){const Y=R==="y"?"height":"width",Z=d.reference[R]-d.floating[Y]+I.mainAxis,et=d.reference[R]+d.reference[Y]-I.mainAxis;N<Z?N=Z:N>et&&(N=et)}if(y){var F,B;const Y=R==="y"?"width":"height",Z=wT.has(ec(c)),et=d.reference[k]-d.floating[Y]+(Z&&((F=h.offset)==null?void 0:F[k])||0)+(Z?0:I.crossAxis),q=d.reference[k]+d.reference[Y]+(Z?0:((B=h.offset)==null?void 0:B[k])||0)-(Z?I.crossAxis:0);z<et?z=et:z>q&&(z=q)}return{[R]:N,[k]:z}}}},UL=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:i,platform:a,elements:o}=t,{apply:c=()=>{},...d}=ol(e,t),h=await a.detectOverflow(t,d),m=ec(n),b=vh(n),y=oo(n)==="y",{width:T,height:k}=i.floating;let R,N;m==="top"||m==="bottom"?(R=m,N=b===(await(a.isRTL==null?void 0:a.isRTL(o.floating))?"start":"end")?"left":"right"):(N=m,R=b==="end"?"top":"bottom");const z=k-h.top-h.bottom,L=T-h.left-h.right,I=tc(k-h[R],z),F=tc(T-h[N],L),B=t.middlewareData.shift,Y=!B;let Z=I,et=F;B!=null&&B.enabled.x&&(et=L),B!=null&&B.enabled.y&&(Z=z),Y&&!b&&(y?et=T-2*sl(h.left,h.right):Z=k-2*sl(h.top,h.bottom)),await c({...t,availableWidth:et,availableHeight:Z});const q=await a.getDimensions(o.floating);return T!==q.width||k!==q.height?{reset:{rects:!0}}:{}}}};function pp(){return typeof window<"u"}function yh(e){return ST(e)?(e.nodeName||"").toLowerCase():"#document"}function Yr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ll(e){var t;return(t=(ST(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ST(e){return pp()?e instanceof Node||e instanceof Yr(e).Node:!1}function lo(e){return pp()?e instanceof Element||e instanceof Yr(e).Element:!1}function nc(e){return pp()?e instanceof HTMLElement||e instanceof Yr(e).HTMLElement:!1}function CT(e){return!pp()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Yr(e).ShadowRoot}function vp(e){const{overflow:t,overflowX:n,overflowY:i,display:a}=co(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&a!=="inline"&&a!=="contents"}function VL(e){return/^(table|td|th)$/.test(yh(e))}function yp(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const HL=/transform|translate|scale|rotate|perspective|filter/,GL=/paint|layout|strict|content/,Yu=e=>!!e&&e!=="none";let Yb;function Wb(e){const t=lo(e)?co(e):e;return Yu(t.transform)||Yu(t.translate)||Yu(t.scale)||Yu(t.rotate)||Yu(t.perspective)||!Kb()&&(Yu(t.backdropFilter)||Yu(t.filter))||HL.test(t.willChange||"")||GL.test(t.contain||"")}function YL(e){let t=Wu(e);for(;nc(t)&&!Xf(t);){if(Wb(t))return t;if(yp(t))return null;t=Wu(t)}return null}function Kb(){return Yb==null&&(Yb=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Yb}function Xf(e){return/^(html|body|#document)$/.test(yh(e))}function co(e){return Yr(e).getComputedStyle(e)}function bp(e){return lo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Wu(e){if(yh(e)==="html")return e;const t=e.assignedSlot||e.parentNode||CT(e)&&e.host||ll(e);return CT(t)?t.host:t}function TT(e){const t=Wu(e);return Xf(t)?(e.ownerDocument||e).body:nc(t)&&vp(t)?t:TT(t)}function Qf(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=TT(e),o=a===((i=e.ownerDocument)==null?void 0:i.body),c=Yr(a);if(o){const d=Xb(c);return t.concat(c,c.visualViewport||[],vp(a)?a:[],d&&n?Qf(d):[])}else return t.concat(a,Qf(a,[],n))}function Xb(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ET(e){const t=co(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const a=nc(e),o=a?e.offsetWidth:n,c=a?e.offsetHeight:i,d=hp(n)!==o||hp(i)!==c;return d&&(n=o,i=c),{width:n,height:i,$:d}}function Qb(e){return lo(e)?e:e.contextElement}function bh(e){const t=Qb(e);if(!nc(t))return al(1);const n=t.getBoundingClientRect(),{width:i,height:a,$:o}=ET(t);let c=(o?hp(n.width):n.width)/i,d=(o?hp(n.height):n.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!d||!Number.isFinite(d))&&(d=1),{x:c,y:d}}const WL=al(0);function MT(e){const t=Yr(e);return!Kb()||!t.visualViewport?WL:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function KL(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Yr(e)}function Ku(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),o=Qb(e);let c=al(1);t&&(i?lo(i)&&(c=bh(i)):c=bh(e));const d=KL(o,n,i)?MT(o):al(0);let h=(a.left+d.x)/c.x,m=(a.top+d.y)/c.y,b=a.width/c.x,y=a.height/c.y;if(o&&i){const T=Yr(o),k=lo(i)?Yr(i):i;let R=T,N=Xb(R);for(;N&&k!==R;){const z=bh(N),L=N.getBoundingClientRect(),I=co(N),F=L.left+(N.clientLeft+parseFloat(I.paddingLeft))*z.x,B=L.top+(N.clientTop+parseFloat(I.paddingTop))*z.y;h*=z.x,m*=z.y,b*=z.x,y*=z.y,h+=F,m+=B,R=Yr(N),N=Xb(R)}}return gp({width:b,height:y,x:h,y:m})}function xp(e,t){const n=bp(e).scrollLeft;return t?t.left+n:Ku(ll(e)).left+n}function RT(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-xp(e,n),a=n.top+t.scrollTop;return{x:i,y:a}}function XL(e){let{elements:t,rect:n,offsetParent:i,strategy:a}=e;const o=a==="fixed",c=ll(i),d=t?yp(t.floating):!1;if(i===c||d&&o)return n;let h={scrollLeft:0,scrollTop:0},m=al(1);const b=al(0),y=nc(i);if((y||!o)&&((yh(i)!=="body"||vp(c))&&(h=bp(i)),y)){const k=Ku(i);m=bh(i),b.x=k.x+i.clientLeft,b.y=k.y+i.clientTop}const T=c&&!y&&!o?RT(c,h):al(0);return{width:n.width*m.x,height:n.height*m.y,x:n.x*m.x-h.scrollLeft*m.x+b.x+T.x,y:n.y*m.y-h.scrollTop*m.y+b.y+T.y}}function QL(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function ZL(e){const t=bp(e),n=e.ownerDocument.body,i=sl(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=sl(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-t.scrollLeft+xp(e);const c=-t.scrollTop;return co(n).direction==="rtl"&&(o+=sl(e.clientWidth,n.clientWidth)-i),{width:i,height:a,x:o,y:c}}const JL=25;function qL(e,t,n){n===void 0&&(n="viewport");const i=n==="layoutViewport",a=Yr(e),o=ll(e),c=a.visualViewport;let d=o.clientWidth,h=o.clientHeight,m=0,b=0;if(c){const T=!Kb()||t==="fixed";i?T||(m=-c.offsetLeft,b=-c.offsetTop):(d=c.width,h=c.height,T&&(m=c.offsetLeft,b=c.offsetTop))}if(xp(o)<=0){const T=o.ownerDocument,k=T.body,R=getComputedStyle(k),N=T.compatMode==="CSS1Compat"&&parseFloat(R.marginLeft)+parseFloat(R.marginRight)||0,z=Math.abs(o.clientWidth-k.clientWidth-N),L=getComputedStyle(o).scrollbarGutter==="stable both-edges"?z/2:z;L<=JL&&(d-=L)}return{width:d,height:h,x:m,y:b}}function $L(e,t){const n=Ku(e,!0,t==="fixed"),i=n.top+e.clientTop,a=n.left+e.clientLeft,o=bh(e),c=e.clientWidth*o.x,d=e.clientHeight*o.y,h=a*o.x,m=i*o.y;return{width:c,height:d,x:h,y:m}}function kT(e,t,n){let i;if(t==="viewport"||t==="layoutViewport")i=qL(e,n,t);else if(t==="document")i=ZL(ll(e));else if(lo(t))i=$L(t,n);else{const a=MT(e);i={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return gp(i)}function tI(e,t){const n=t.get(e);if(n)return n;let i=Qf(e,[],!1).filter(d=>lo(d)&&yh(d)!=="body"),a=null;const o=co(e).position==="fixed";let c=o?Wu(e):e;for(;lo(c)&&!Xf(c);){const d=co(c),h=Wb(c),m=a?a.position:o?"fixed":"";!h&&(m==="fixed"||m==="absolute"&&d.position==="static")?i=i.filter(y=>y!==c):a=d,c=Wu(c)}return t.set(e,i),i}function eI(e){let{element:t,boundary:n,rootBoundary:i,strategy:a}=e;const c=[...n==="clippingAncestors"?yp(t)?[]:tI(t,this._c):[].concat(n),i],d=kT(t,c[0],a);let h=d.top,m=d.right,b=d.bottom,y=d.left;for(let T=1;T<c.length;T++){const k=kT(t,c[T],a);h=sl(k.top,h),m=tc(k.right,m),b=tc(k.bottom,b),y=sl(k.left,y)}return{width:m-y,height:b-h,x:y,y:h}}function nI(e){const{width:t,height:n}=ET(e);return{width:t,height:n}}function iI(e,t,n){const i=nc(t),a=ll(t),o=n==="fixed",c=Ku(e,!0,o,t);let d={scrollLeft:0,scrollTop:0};const h=al(0);if((i||!o)&&((yh(t)!=="body"||vp(a))&&(d=bp(t)),i)){const T=Ku(t,!0,o,t);h.x=T.x+t.clientLeft,h.y=T.y+t.clientTop}!i&&a&&(h.x=xp(a));const m=a&&!i&&!o?RT(a,d):al(0),b=c.left+d.scrollLeft-h.x-m.x,y=c.top+d.scrollTop-h.y-m.y;return{x:b,y,width:c.width,height:c.height}}function Zb(e){return co(e).position==="static"}function _T(e,t){if(!nc(e)||co(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ll(e)===n&&(n=n.ownerDocument.body),n}function AT(e,t){const n=Yr(e);if(yp(e))return n;if(!nc(e)){let a=Wu(e);for(;a&&!Xf(a);){if(lo(a)&&!Zb(a))return a;a=Wu(a)}return n}let i=_T(e,t);for(;i&&VL(i)&&Zb(i);)i=_T(i,t);return i&&Xf(i)&&Zb(i)&&!Wb(i)?n:i||YL(e)||n}const rI=async function(e){const t=this.getOffsetParent||AT,n=this.getDimensions,i=await n(e.floating);return{reference:iI(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function sI(e){return co(e).direction==="rtl"}const aI={convertOffsetParentRelativeRectToViewportRelativeRect:XL,getDocumentElement:ll,getClippingRect:eI,getOffsetParent:AT,getElementRects:rI,getClientRects:QL,getDimensions:nI,getScale:bh,isElement:lo,isRTL:sI};function NT(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function oI(e,t,n){let i=null,a;const o=ll(e);function c(){var b;clearTimeout(a),(b=i)==null||b.disconnect(),i=null}function d(b,y){b===void 0&&(b=!1),y===void 0&&(y=1),c();const T=e.getBoundingClientRect(),{left:k,top:R,width:N,height:z}=T;if(b||t(),!N||!z)return;const L=fp(R),I=fp(o.clientWidth-(k+N)),F=fp(o.clientHeight-(R+z)),B=fp(k),Z={rootMargin:-L+"px "+-I+"px "+-F+"px "+-B+"px",threshold:sl(0,tc(1,y))||1};let et=!0;function q(nt){const ot=nt[0].intersectionRatio;if(!NT(T,e.getBoundingClientRect()))return d();if(ot!==y){if(!et)return d();ot?d(!1,ot):a=setTimeout(()=>{d(!1,1e-7)},1e3)}et=!1}try{i=new IntersectionObserver(q,{...Z,root:o.ownerDocument})}catch{i=new IntersectionObserver(q,Z)}i.observe(e)}const h=Yr(e),m=()=>d(n);return h.addEventListener("resize",m),d(!0),()=>{h.removeEventListener("resize",m),c()}}function lI(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:h=!1}=i,m=Qb(e),b=a||o?[...m?Qf(m):[],...t?Qf(t):[]]:[];b.forEach(L=>{a&&L.addEventListener("scroll",n),o&&L.addEventListener("resize",n)});const y=m&&d?oI(m,n,o):null;let T=-1,k=null;c&&(k=new ResizeObserver(L=>{let[I]=L;I&&I.target===m&&k&&t&&(k.unobserve(t),cancelAnimationFrame(T),T=requestAnimationFrame(()=>{var F;(F=k)==null||F.observe(t)})),n()}),m&&!h&&k.observe(m),t&&k.observe(t));let R,N=h?Ku(e):null;h&&z();function z(){const L=Ku(e);N&&!NT(N,L)&&n(),N=L,R=requestAnimationFrame(z)}return n(),()=>{var L;b.forEach(I=>{a&&I.removeEventListener("scroll",n),o&&I.removeEventListener("resize",n)}),y==null||y(),(L=k)==null||L.disconnect(),k=null,h&&cancelAnimationFrame(R)}}const cI=BL,uI=jL,dI=PL,hI=UL,fI=LL,zT=OL,mI=FL,gI=(e,t,n)=>{const i=new Map,a=n??{},o={...aI,...a.platform,_c:i};return DL(e,t,{...a,platform:o})};var pI=typeof document<"u",vI=function(){},wp=pI?M.useLayoutEffect:vI;function Sp(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,i,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(!Sp(e[i],t[i]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,a[i]))return!1;for(i=n;i--!==0;){const o=a[i];if(!(o==="_owner"&&e.$$typeof)&&!Sp(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function DT(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function OT(e,t){const n=DT(e);return Math.round(t*n)/n}function Jb(e){const t=M.useRef(e);return wp(()=>{t.current=e}),t}function yI(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:a,elements:{reference:o,floating:c}={},transform:d=!0,whileElementsMounted:h,open:m}=e,[b,y]=M.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[T,k]=M.useState(i);Sp(T,i)||k(i);const[R,N]=M.useState(null),[z,L]=M.useState(null),I=M.useCallback(ht=>{ht!==Z.current&&(Z.current=ht,N(ht))},[]),F=M.useCallback(ht=>{ht!==et.current&&(et.current=ht,L(ht))},[]),B=o||R,Y=c||z,Z=M.useRef(null),et=M.useRef(null),q=M.useRef(b),nt=h!=null,ot=Jb(h),Ct=Jb(a),ct=Jb(m),mt=M.useCallback(()=>{if(!Z.current||!et.current)return;const ht={placement:t,strategy:n,middleware:T};Ct.current&&(ht.platform=Ct.current),gI(Z.current,et.current,ht).then(Tt=>{const K={...Tt,isPositioned:ct.current!==!1};Rt.current&&!Sp(q.current,K)&&(q.current=K,Uf.flushSync(()=>{y(K)}))})},[T,t,n,Ct,ct]);wp(()=>{m===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,y(ht=>({...ht,isPositioned:!1})))},[m]);const Rt=M.useRef(!1);wp(()=>(Rt.current=!0,()=>{Rt.current=!1}),[]),wp(()=>{if(B&&(Z.current=B),Y&&(et.current=Y),B&&Y){if(ot.current)return ot.current(B,Y,mt);mt()}},[B,Y,mt,ot,nt]);const ut=M.useMemo(()=>({reference:Z,floating:et,setReference:I,setFloating:F}),[I,F]),j=M.useMemo(()=>({reference:B,floating:Y}),[B,Y]),J=M.useMemo(()=>{const ht={position:n,left:0,top:0};if(!j.floating)return ht;const Tt=OT(j.floating,b.x),K=OT(j.floating,b.y);return d?{...ht,transform:"translate("+Tt+"px, "+K+"px)",...DT(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Tt,top:K}},[n,d,j.floating,b.x,b.y]);return M.useMemo(()=>({...b,update:mt,refs:ut,elements:j,floatingStyles:J}),[b,mt,ut,j,J])}const bI=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:i,padding:a}=typeof e=="function"?e(n):e;return i&&t(i)?i.current!=null?zT({element:i.current,padding:a}).fn(n):{}:i?zT({element:i,padding:a}).fn(n):{}}}},xI=(e,t)=>{const n=cI(e);return{name:n.name,fn:n.fn,options:[e,t]}},wI=(e,t)=>{const n=uI(e);return{name:n.name,fn:n.fn,options:[e,t]}},SI=(e,t)=>({fn:mI(e).fn,options:[e,t]}),CI=(e,t)=>{const n=dI(e);return{name:n.name,fn:n.fn,options:[e,t]}},TI=(e,t)=>{const n=hI(e);return{name:n.name,fn:n.fn,options:[e,t]}},EI=(e,t)=>{const n=fI(e);return{name:n.name,fn:n.fn,options:[e,t]}},MI=(e,t)=>{const n=bI(e);return{name:n.name,fn:n.fn,options:[e,t]}};var RI=Object.defineProperty,ic=(e,t)=>RI(e,"name",{value:t,configurable:!0}),PT="Popper",[LT,rc]=va(PT),[kI,IT]=LT(PT),_I=ic(e=>{const{__scopePopper:t,children:n}=e,[i,a]=M.useState(null),[o,c]=M.useState(void 0);return w.jsx(kI,{scope:t,anchor:i,onAnchorChange:a,placementState:o,setPlacementState:c,children:n})},"Popper"),AI="PopperAnchor",NI=M.forwardRef(ic(function(t,n){const{__scopePopper:i,virtualRef:a,...o}=t,c=IT(AI,i),d=M.useRef(null),h=c.onAnchorChange,m=M.useCallback(N=>{d.current=N,N&&h(N)},[h]),b=Be(n,m),y=M.useRef(null);M.useEffect(()=>{if(!a)return;const N=y.current;y.current=a.current,N!==y.current&&h(y.current)});const T=c.placementState&&Cp(c.placementState),k=T==null?void 0:T[0],R=T==null?void 0:T[1];return a?null:w.jsx(De.div,{"data-radix-popper-side":k,"data-radix-popper-align":R,...o,ref:b})},"PopperAnchor")),BT="PopperContent",[zI,uW]=LT(BT),DI=M.forwardRef(ic(function(t,n){var Mt,Yt,Qt,ne,Ut,Ce,Ht;const{__scopePopper:i,side:a="bottom",sideOffset:o=0,align:c="center",alignOffset:d=0,arrowPadding:h=0,avoidCollisions:m=!0,collisionBoundary:b=[],collisionPadding:y=0,sticky:T="partial",hideWhenDetached:k=!1,updatePositionStrategy:R="optimized",onPlaced:N,...z}=t,L=IT(BT,i),[I,F]=M.useState(null),B=Be(n,F),[Y,Z]=M.useState(null),et=fT(Y),q=(et==null?void 0:et.width)??0,nt=(et==null?void 0:et.height)??0,ot=a+(c!=="center"?"-"+c:""),Ct=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},ct=Array.isArray(b)?b:[b],mt=ct.length>0,Rt={padding:Ct,boundary:ct.filter(jT),altBoundary:mt},{refs:ut,floatingStyles:j,placement:J,isPositioned:ht,middlewareData:Tt}=yI({strategy:"fixed",placement:ot,whileElementsMounted:ic((...ee)=>lI(...ee,{animationFrame:R==="always"}),"whileElementsMounted"),elements:{reference:L.anchor},middleware:[xI({mainAxis:o+nt,alignmentAxis:d}),m&&wI({mainAxis:!0,crossAxis:!1,limiter:T==="partial"?SI():void 0,...Rt}),m&&CI({...Rt}),TI({...Rt,apply:ic(({elements:ee,rects:re,availableWidth:we,availableHeight:Le})=>{const{width:Mr,height:Hn}=re.reference,Nn=ee.floating.style;Nn.setProperty("--radix-popper-available-width",`${we}px`),Nn.setProperty("--radix-popper-available-height",`${Le}px`),Nn.setProperty("--radix-popper-anchor-width",`${Mr}px`),Nn.setProperty("--radix-popper-anchor-height",`${Hn}px`)},"apply")}),Y&&MI({element:Y,padding:h}),OI({arrowWidth:q,arrowHeight:nt}),k&&EI({strategy:"referenceHidden",...Rt,boundary:mt?Rt.boundary:void 0})]}),K=L.setPlacementState;ei(()=>(K(J),()=>{K(void 0)}),[J,K]);const[U,X]=Cp(J),ft=os(N);ei(()=>{ht&&(ft==null||ft())},[ht,ft]);const yt=(Mt=Tt.arrow)==null?void 0:Mt.x,tt=(Yt=Tt.arrow)==null?void 0:Yt.y,bt=((Qt=Tt.arrow)==null?void 0:Qt.centerOffset)!==0,[zt,Dt]=M.useState();return ei(()=>{I&&Dt(window.getComputedStyle(I).zIndex)},[I]),w.jsx("div",{ref:ut.setFloating,"data-radix-popper-content-wrapper":"",style:{...j,transform:ht?j.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:zt,"--radix-popper-transform-origin":[(ne=Tt.transformOrigin)==null?void 0:ne.x,(Ut=Tt.transformOrigin)==null?void 0:Ut.y].join(" "),...((Ce=Tt.hide)==null?void 0:Ce.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:w.jsx(zI,{scope:i,placedSide:U,placedAlign:X,onArrowChange:Z,arrowX:yt,arrowY:tt,shouldHideArrow:bt,children:w.jsx(De.div,{"data-side":U,"data-align":X,...z,ref:B,style:{...z.style,animation:ht?(Ht=z.style)==null?void 0:Ht.animation:"none"}})})})},"PopperContent"));function jT(e){return e!==null}ic(jT,"isNotNull");var OI=ic(e=>({name:"transformOrigin",options:e,fn(t){var z,L,I;const{placement:n,rects:i,middlewareData:a}=t,c=((z=a.arrow)==null?void 0:z.centerOffset)!==0,d=c?0:e.arrowWidth,h=c?0:e.arrowHeight,[m,b]=Cp(n),y={start:"0%",center:"50%",end:"100%"}[b],T=(((L=a.arrow)==null?void 0:L.x)??0)+d/2,k=(((I=a.arrow)==null?void 0:I.y)??0)+h/2;let R="",N="";return m==="bottom"?(R=c?y:`${T}px`,N=`${-h}px`):m==="top"?(R=c?y:`${T}px`,N=`${i.floating.height+h}px`):m==="right"?(R=`${-h}px`,N=c?y:`${k}px`):m==="left"&&(R=`${i.floating.width+h}px`,N=c?y:`${k}px`),{data:{x:R,y:N}}}}),"transformOrigin");function Cp(e){const[t,n="center"]=e.split("-");return[t,n]}ic(Cp,"getSideAndAlignFromPlacement");var Zf=_I,Tp=NI,Ep=DI,PI=Object.defineProperty,qb=(e,t)=>PI(e,"name",{value:t,configurable:!0}),$b=!1;function FT(){const[e,t]=M.useState($b);return M.useEffect(()=>{$b||($b=!0,t(!0))},[]),e}qb(FT,"useIsHydrated");var UT=Jd[" useSyncExternalStore ".trim().toString()];function VT(){return()=>{}}qb(VT,"subscribe");function HT(){return UT(VT,()=>!0,()=>!1)}qb(HT,"useIsHydratedModern");var LI=typeof UT=="function"?HT:FT,II=Object.defineProperty,Xu=(e,t)=>II(e,"name",{value:t,configurable:!0}),tx="rovingFocusGroup.onEntryFocus",BI={bubbles:!1,cancelable:!0},Mp="RovingFocusGroup",[ex,GT,jI]=Jg(Mp),[FI,YT]=va(Mp,[jI]),[UI,VI]=FI(Mp),HI=M.forwardRef(Xu(function(t,n){return w.jsx(ex.Provider,{scope:t.__scopeRovingFocusGroup,children:w.jsx(ex.Slot,{scope:t.__scopeRovingFocusGroup,children:w.jsx(GI,{...t,ref:n})})})},"RovingFocusGroup")),GI=M.forwardRef(Xu(function(t,n){const{__scopeRovingFocusGroup:i,orientation:a,loop:o=!1,dir:c,currentTabStopId:d,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:m,onEntryFocus:b,preventScrollOnEntryFocus:y=!1,...T}=t,k=M.useRef(null),R=Be(n,k),N=$g(c),[z,L]=nl({prop:d,defaultProp:h??null,onChange:m,caller:Mp}),[I,F]=M.useState(!1),B=os(b),Y=GT(i),Z=M.useRef(!1),[et,q]=M.useState(0);return M.useEffect(()=>{const nt=k.current;if(nt)return nt.addEventListener(tx,B),()=>nt.removeEventListener(tx,B)},[B]),w.jsx(UI,{scope:i,orientation:a,dir:N,loop:o,currentTabStopId:z,onItemFocus:M.useCallback(nt=>L(nt),[L]),onItemShiftTab:M.useCallback(()=>F(!0),[]),onFocusableItemAdd:M.useCallback(()=>q(nt=>nt+1),[]),onFocusableItemRemove:M.useCallback(()=>q(nt=>nt-1),[]),children:w.jsx(De.div,{tabIndex:I||et===0?-1:0,"data-orientation":a,...T,ref:R,style:{outline:"none",...t.style},onMouseDown:Kt(t.onMouseDown,()=>{Z.current=!0}),onFocus:Kt(t.onFocus,nt=>{const ot=!Z.current;if(nt.target===nt.currentTarget&&ot&&!I){const Ct=new CustomEvent(tx,BI);if(nt.currentTarget.dispatchEvent(Ct),!Ct.defaultPrevented){const ct=Y().filter(J=>J.focusable),mt=ct.find(J=>J.active),Rt=ct.find(J=>J.id===z),j=[mt,Rt,...ct].filter(Boolean).map(J=>J.ref.current);nx(j,y)}}Z.current=!1}),onBlur:Kt(t.onBlur,()=>F(!1))})})},"RovingFocusGroupImpl")),YI="RovingFocusGroupItem",WI=M.forwardRef(Xu(function(t,n){const{__scopeRovingFocusGroup:i,focusable:a=!0,active:o=!1,tabStopId:c,children:d,...h}=t,m=Vi(),b=c||m,y=VI(YI,i),T=y.currentTabStopId===b,k=GT(i),{onFocusableItemAdd:R,onFocusableItemRemove:N,currentTabStopId:z}=y,L=LI();return ei(()=>{if(!(!L||!a))return R(),()=>N()},[L,a,R,N]),M.useEffect(()=>{if(!(L||!a))return R(),()=>N()},[L,a,R,N]),w.jsx(ex.ItemSlot,{scope:i,id:b,focusable:a,active:o,children:w.jsx(De.span,{tabIndex:T?0:-1,"data-orientation":y.orientation,...h,ref:n,onMouseDown:Kt(t.onMouseDown,I=>{a?y.onItemFocus(b):I.preventDefault()}),onFocus:Kt(t.onFocus,()=>y.onItemFocus(b)),onKeyDown:Kt(t.onKeyDown,I=>{if(I.key==="Tab"&&I.shiftKey){y.onItemShiftTab();return}if(I.target!==I.currentTarget)return;const F=KT(I,y.orientation,y.dir);if(F!==void 0){if(I.metaKey||I.ctrlKey||I.altKey||I.shiftKey)return;I.preventDefault();let Y=k().filter(Z=>Z.focusable).map(Z=>Z.ref.current);if(F==="last")Y.reverse();else if(F==="prev"||F==="next"){F==="prev"&&Y.reverse();const Z=Y.indexOf(I.currentTarget);Y=y.loop?XT(Y,Z+1):Y.slice(Z+1)}setTimeout(()=>nx(Y))}}),children:typeof d=="function"?d({isCurrentTabStop:T,hasTabStop:z!=null}):d})})},"RovingFocusGroupItem")),KI={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function WT(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}Xu(WT,"getDirectionAwareKey");function KT(e,t,n){const i=WT(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return KI[i]}Xu(KT,"getFocusIntent");function nx(e,t=!1){const n=document.activeElement;for(const i of e)if(i===n||(i.focus({preventScroll:t}),document.activeElement!==n))return}Xu(nx,"focusFirst");function XT(e,t){return e.map((n,i)=>e[(t+i)%e.length])}Xu(XT,"wrapArray");var XI=HI,QI=WI,ZI=Object.defineProperty,He=(e,t)=>ZI(e,"name",{value:t,configurable:!0}),ix=["Enter"," "],JI=["ArrowDown","PageUp","Home"],QT=["ArrowUp","PageDown","End"],qI=[...JI,...QT],$I={ltr:[...ix,"ArrowRight"],rtl:[...ix,"ArrowLeft"]},t5={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Rp="Menu",[Jf,e5,n5]=Jg(Rp),[Qu,ZT]=va(Rp,[n5,rc,YT]),kp=rc(),JT=YT(),[qT,sc]=Qu(Rp),[i5,qf]=Qu(Rp),r5=He(e=>{const{__scopeMenu:t,open:n=!1,children:i,dir:a,onOpenChange:o,modal:c=!0}=e,d=kp(t),[h,m]=M.useState(null),b=M.useRef(!1),y=os(o),T=$g(a);return M.useEffect(()=>{const k=He(()=>{b.current=!0,document.addEventListener("pointerdown",R,{capture:!0,once:!0}),document.addEventListener("pointermove",R,{capture:!0,once:!0})},"handleKeyDown"),R=He(()=>b.current=!1,"handlePointer");return document.addEventListener("keydown",k,{capture:!0}),()=>{document.removeEventListener("keydown",k,{capture:!0}),document.removeEventListener("pointerdown",R,{capture:!0}),document.removeEventListener("pointermove",R,{capture:!0})}},[]),M.useEffect(()=>{if(!n)return;const k=He(()=>y(!1),"handleBlur");return window.addEventListener("blur",k),()=>window.removeEventListener("blur",k)},[n,y]),w.jsx(Zf,{...d,children:w.jsx(qT,{scope:t,open:n,onOpenChange:y,content:h,onContentChange:m,children:w.jsx(i5,{scope:t,onClose:M.useCallback(()=>y(!1),[y]),isUsingKeyboardRef:b,dir:T,modal:c,children:i})})})},"Menu"),$T=M.forwardRef(He(function(t,n){const{__scopeMenu:i,...a}=t,o=kp(i);return w.jsx(Tp,{...o,...a,ref:n})},"MenuAnchor")),tE="MenuPortal",[s5,eE]=Qu(tE,{forceMount:void 0}),a5=He(e=>{const{__scopeMenu:t,forceMount:n,children:i,container:a}=e,o=sc(tE,t);return w.jsx(s5,{scope:t,forceMount:n,children:w.jsx(Xs,{present:n||o.open,children:w.jsx(Yf,{asChild:!0,container:a,children:i})})})},"MenuPortal"),ya="MenuContent",[o5,rx]=Qu(ya),l5=M.forwardRef(He(function(t,n){const i=eE(ya,t.__scopeMenu),{forceMount:a=i.forceMount,...o}=t,c=sc(ya,t.__scopeMenu),d=qf(ya,t.__scopeMenu);return w.jsx(Jf.Provider,{scope:t.__scopeMenu,children:w.jsx(Xs,{present:a||c.open,children:w.jsx(Jf.Slot,{scope:t.__scopeMenu,children:d.modal?w.jsx(c5,{...o,ref:n}):w.jsx(u5,{...o,ref:n})})})})},"MenuContent")),c5=M.forwardRef(He(function(t,n){const i=sc(ya,t.__scopeMenu),a=M.useRef(null),o=Be(n,a);return M.useEffect(()=>{const c=a.current;if(c)return cp(c)},[]),w.jsx(sx,{...t,ref:o,trapFocus:i.open,disableOutsidePointerEvents:i.open,disableOutsideScroll:!0,onFocusOutside:Kt(t.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>i.onOpenChange(!1)})},"MenuRootContentModal")),u5=M.forwardRef(He(function(t,n){const i=sc(ya,t.__scopeMenu);return w.jsx(sx,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>i.onOpenChange(!1)})},"MenuRootContentNonModal")),d5=pa("MenuContent.ScrollLock"),sx=M.forwardRef(He(function(t,n){const{__scopeMenu:i,loop:a=!1,trapFocus:o,onOpenAutoFocus:c,onCloseAutoFocus:d,disableOutsidePointerEvents:h,onEntryFocus:m,onEscapeKeyDown:b,onPointerDownOutside:y,onFocusOutside:T,onInteractOutside:k,onDismiss:R,disableOutsideScroll:N,...z}=t,L=sc(ya,i),I=qf(ya,i),F=kp(i),B=JT(i),Y=e5(i),[Z,et]=M.useState(null),q=M.useRef(null),nt=Be(n,q,L.onContentChange),ot=M.useRef(0),Ct=M.useRef(""),ct=M.useRef(0),mt=M.useRef(null),Rt=M.useRef("right"),ut=M.useRef(0),j=N?Wf:M.Fragment,J=N?{as:d5,allowPinchZoom:!0}:void 0,ht=He(K=>{var Dt,Mt;const U=Ct.current+K,X=Y().filter(Yt=>!Yt.disabled),ft=document.activeElement,yt=(Dt=X.find(Yt=>Yt.ref.current===ft))==null?void 0:Dt.textValue,tt=X.map(Yt=>Yt.textValue),bt=uE(tt,U,yt),zt=(Mt=X.find(Yt=>Yt.textValue===bt))==null?void 0:Mt.ref.current;He((function Yt(Qt){Ct.current=Qt,window.clearTimeout(ot.current),Qt!==""&&(ot.current=window.setTimeout(()=>Yt(""),1e3))}),"updateSearch")(U),zt&&setTimeout(()=>zt.focus())},"handleTypeaheadSearch");M.useEffect(()=>()=>window.clearTimeout(ot.current),[]),hh();const Tt=M.useCallback(K=>{var X,ft;return Rt.current===((X=mt.current)==null?void 0:X.side)&&hE(K,(ft=mt.current)==null?void 0:ft.area)},[]);return w.jsx(o5,{scope:i,searchRef:Ct,onItemEnter:M.useCallback(K=>{Tt(K)&&K.preventDefault()},[Tt]),onItemLeave:M.useCallback(K=>{var U;Tt(K)||((U=q.current)==null||U.focus(),et(null))},[Tt]),onTriggerLeave:M.useCallback(K=>{Tt(K)&&K.preventDefault()},[Tt]),pointerGraceTimerRef:ct,onPointerGraceIntentChange:M.useCallback(K=>{mt.current=K},[]),children:w.jsx(j,{...J,children:w.jsx(tp,{asChild:!0,trapped:o,onMountAutoFocus:Kt(c,K=>{var U;K.preventDefault(),(U=q.current)==null||U.focus({preventScroll:!0})}),onUnmountAutoFocus:d,children:w.jsx(Gf,{asChild:!0,disableOutsidePointerEvents:h,onEscapeKeyDown:b,onPointerDownOutside:y,onFocusOutside:T,onInteractOutside:k,onDismiss:R,children:w.jsx(XI,{asChild:!0,...B,dir:I.dir,orientation:"vertical",loop:a,currentTabStopId:Z,onCurrentTabStopIdChange:et,onEntryFocus:Kt(m,K=>{I.isUsingKeyboardRef.current||K.preventDefault()}),preventScrollOnEntryFocus:!0,children:w.jsx(Ep,{role:"menu","aria-orientation":"vertical","data-state":lx(L.open),"data-radix-menu-content":"",dir:I.dir,...F,...z,ref:nt,style:{outline:"none",...z.style},onKeyDown:Kt(z.onKeyDown,K=>{const X=K.target.closest("[data-radix-menu-content]")===K.currentTarget,ft=K.ctrlKey||K.altKey||K.metaKey,yt=K.key.length===1;X&&(K.key==="Tab"&&K.preventDefault(),!ft&&yt&&ht(K.key));const tt=q.current;if(K.target!==tt||!qI.includes(K.key))return;K.preventDefault();const zt=Y().filter(Dt=>!Dt.disabled).map(Dt=>Dt.ref.current);QT.includes(K.key)&&zt.reverse(),lE(zt)}),onBlur:Kt(t.onBlur,K=>{K.currentTarget.contains(K.target)||(window.clearTimeout(ot.current),Ct.current="")}),onPointerMove:Kt(t.onPointerMove,xh(K=>{const U=K.target,X=ut.current!==K.clientX;if(K.currentTarget.contains(U)&&X){const ft=K.clientX>ut.current?"right":"left";Rt.current=ft,ut.current=K.clientX}}))})})})})})})},"MenuContentImpl")),h5=M.forwardRef(He(function(t,n){const{__scopeMenu:i,...a}=t;return w.jsx(De.div,{...a,ref:n})},"MenuLabel")),ax="MenuItem",nE="menu.itemSelect",ox=M.forwardRef(He(function(t,n){const{disabled:i=!1,onSelect:a,...o}=t,c=M.useRef(null),d=qf(ax,t.__scopeMenu),h=rx(ax,t.__scopeMenu),m=Be(n,c),b=M.useRef(!1),y=He(()=>{const T=c.current;if(!i&&T){const k=new CustomEvent(nE,{bubbles:!0,cancelable:!0});T.addEventListener(nE,R=>a==null?void 0:a(R),{once:!0}),mb(T,k),k.defaultPrevented?b.current=!1:d.onClose()}},"handleSelect");return w.jsx(iE,{...o,ref:m,disabled:i,onClick:Kt(t.onClick,y),onPointerDown:T=>{var k;(k=t.onPointerDown)==null||k.call(t,T),b.current=!0},onPointerUp:Kt(t.onPointerUp,T=>{var k;b.current||(k=T.currentTarget)==null||k.click()}),onKeyDown:Kt(t.onKeyDown,T=>{i||T.target!==T.currentTarget||h.searchRef.current!==""&&T.key===" "||ix.includes(T.key)&&(T.currentTarget.click(),T.preventDefault())})})},"MenuItem")),iE=M.forwardRef(He(function(t,n){const{__scopeMenu:i,disabled:a=!1,textValue:o,...c}=t,d=rx(ax,i),h=JT(i),m=M.useRef(null),b=Be(n,m),[y,T]=M.useState(!1),[k,R]=M.useState("");return M.useEffect(()=>{const N=m.current;N&&R((N.textContent??"").trim())},[c.children]),w.jsx(Jf.ItemSlot,{scope:i,disabled:a,textValue:o??k,children:w.jsx(QI,{asChild:!0,...h,focusable:!a,children:w.jsx(De.div,{role:"menuitem","data-highlighted":y?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...c,ref:b,onPointerMove:Kt(t.onPointerMove,xh(N=>{a?d.onItemLeave(N):(d.onItemEnter(N),N.defaultPrevented||N.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Kt(t.onPointerLeave,xh(N=>d.onItemLeave(N))),onFocus:Kt(t.onFocus,()=>T(!0)),onBlur:Kt(t.onBlur,()=>T(!1))})})})},"MenuItemImpl")),f5=M.forwardRef(He(function(t,n){const{checked:i=!1,onCheckedChange:a,...o}=t;return w.jsx(sE,{scope:t.__scopeMenu,checked:i,children:w.jsx(ox,{role:"menuitemcheckbox","aria-checked":$f(i)?"mixed":i,...o,ref:n,"data-state":Ap(i),onSelect:Kt(o.onSelect,()=>a==null?void 0:a($f(i)?!0:!i),{checkForDefaultPrevented:!1})})})},"MenuCheckboxItem")),m5="MenuRadioGroup",[dW,g5]=Qu(m5,{value:void 0,onValueChange:He(()=>{},"onValueChange")}),p5="MenuRadioItem",v5=M.forwardRef(He(function(t,n){const{value:i,...a}=t,o=g5(p5,t.__scopeMenu),c=i===o.value;return w.jsx(sE,{scope:t.__scopeMenu,checked:c,children:w.jsx(ox,{role:"menuitemradio","aria-checked":c,...a,ref:n,"data-state":Ap(c),onSelect:Kt(a.onSelect,()=>{var d;return(d=o.onValueChange)==null?void 0:d.call(o,i)},{checkForDefaultPrevented:!1})})})},"MenuRadioItem")),rE="MenuItemIndicator",[sE,y5]=Qu(rE,{checked:!1}),b5=M.forwardRef(He(function(t,n){const{__scopeMenu:i,forceMount:a,...o}=t,c=y5(rE,i);return w.jsx(Xs,{present:a||$f(c.checked)||c.checked===!0,children:w.jsx(De.span,{...o,ref:n,"data-state":Ap(c.checked)})})},"MenuItemIndicator")),x5=M.forwardRef(He(function(t,n){const{__scopeMenu:i,...a}=t;return w.jsx(De.div,{role:"separator","aria-orientation":"horizontal",...a,ref:n})},"MenuSeparator")),aE="MenuSub",[w5,oE]=Qu(aE),S5=He(e=>{const{__scopeMenu:t,children:n,open:i=!1,onOpenChange:a}=e,o=sc(aE,t),c=kp(t),[d,h]=M.useState(null),[m,b]=M.useState(null),y=os(a);return M.useEffect(()=>(o.open===!1&&y(!1),()=>y(!1)),[o.open,y]),w.jsx(Zf,{...c,children:w.jsx(qT,{scope:t,open:i,onOpenChange:y,content:m,onContentChange:b,children:w.jsx(w5,{scope:t,contentId:Vi(),triggerId:Vi(),trigger:d,onTriggerChange:h,children:n})})})},"MenuSub"),_p="MenuSubTrigger",C5=M.forwardRef(He(function(t,n){const i=sc(_p,t.__scopeMenu),a=qf(_p,t.__scopeMenu),o=oE(_p,t.__scopeMenu),c=rx(_p,t.__scopeMenu),d=M.useRef(null),{pointerGraceTimerRef:h,onPointerGraceIntentChange:m}=c,b={__scopeMenu:t.__scopeMenu},y=M.useCallback(()=>{d.current&&window.clearTimeout(d.current),d.current=null},[]);M.useEffect(()=>y,[y]),M.useEffect(()=>{const k=h.current;return()=>{window.clearTimeout(k),m(null)}},[h,m]);const T=Be(n,o.onTriggerChange);return w.jsx($T,{asChild:!0,...b,children:w.jsx(iE,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?o.contentId:void 0,"data-state":lx(i.open),...t,ref:T,onClick:k=>{var R;(R=t.onClick)==null||R.call(t,k),!(t.disabled||k.defaultPrevented)&&(k.currentTarget.focus(),i.open||i.onOpenChange(!0))},onPointerMove:Kt(t.onPointerMove,xh(k=>{c.onItemEnter(k),!k.defaultPrevented&&!t.disabled&&!i.open&&!d.current&&(c.onPointerGraceIntentChange(null),d.current=window.setTimeout(()=>{i.onOpenChange(!0),y()},100))})),onPointerLeave:Kt(t.onPointerLeave,xh(k=>{var N,z;y();const R=(N=i.content)==null?void 0:N.getBoundingClientRect();if(R){const L=(z=i.content)==null?void 0:z.dataset.side,I=L==="right",F=I?-5:5,B=R[I?"left":"right"],Y=R[I?"right":"left"];c.onPointerGraceIntentChange({area:[{x:k.clientX+F,y:k.clientY},{x:B,y:R.top},{x:Y,y:R.top},{x:Y,y:R.bottom},{x:B,y:R.bottom}],side:L}),window.clearTimeout(h.current),h.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(k),k.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:Kt(t.onKeyDown,k=>{var N;t.disabled||k.target!==k.currentTarget||c.searchRef.current!==""&&k.key===" "||$I[a.dir].includes(k.key)&&(i.onOpenChange(!0),(N=i.content)==null||N.focus(),k.preventDefault())})})})},"MenuSubTrigger")),T5="MenuSubContent",E5=M.forwardRef(He(function(t,n){const i=eE(ya,t.__scopeMenu),{forceMount:a=i.forceMount,align:o="start",...c}=t,d=sc(ya,t.__scopeMenu),h=qf(ya,t.__scopeMenu),m=oE(T5,t.__scopeMenu),b=M.useRef(null),y=Be(n,b);return w.jsx(Jf.Provider,{scope:t.__scopeMenu,children:w.jsx(Xs,{present:a||d.open,children:w.jsx(Jf.Slot,{scope:t.__scopeMenu,children:w.jsx(sx,{id:m.contentId,"aria-labelledby":m.triggerId,...c,ref:y,align:o,side:h.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:T=>{var k;h.isUsingKeyboardRef.current&&((k=b.current)==null||k.focus()),T.preventDefault()},onCloseAutoFocus:T=>T.preventDefault(),onFocusOutside:Kt(t.onFocusOutside,T=>{T.target!==m.trigger&&d.onOpenChange(!1)}),onEscapeKeyDown:Kt(t.onEscapeKeyDown,T=>{h.onClose(),T.preventDefault()}),onKeyDown:Kt(t.onKeyDown,T=>{var N;const k=T.currentTarget.contains(T.target),R=t5[h.dir].includes(T.key);k&&R&&(d.onOpenChange(!1),(N=m.trigger)==null||N.focus(),T.preventDefault())})})})})})},"MenuSubContent"));function lx(e){return e?"open":"closed"}He(lx,"getOpenState");function $f(e){return e==="indeterminate"}He($f,"isIndeterminate");function Ap(e){return $f(e)?"indeterminate":e?"checked":"unchecked"}He(Ap,"getCheckedState");function lE(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}He(lE,"focusFirst");function cE(e,t){return e.map((n,i)=>e[(t+i)%e.length])}He(cE,"wrapArray");function uE(e,t,n){const a=t.length>1&&Array.from(t).every(m=>m===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let c=cE(e,Math.max(o,0));a.length===1&&(c=c.filter(m=>m!==n));const h=c.find(m=>m.toLowerCase().startsWith(a.toLowerCase()));return h!==n?h:void 0}He(uE,"getNextMatch");function dE(e,t){const{x:n,y:i}=e;let a=!1;for(let o=0,c=t.length-1;o<t.length;c=o++){const d=t[o],h=t[c],m=d.x,b=d.y,y=h.x,T=h.y;b>i!=T>i&&n<(y-m)*(i-b)/(T-b)+m&&(a=!a)}return a}He(dE,"isPointInPolygon");function hE(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return dE(n,t)}He(hE,"isPointerInGraceArea");function xh(e){return t=>t.pointerType==="mouse"?e(t):void 0}He(xh,"whenMouse");var M5=r5,R5=$T,k5=a5,_5=l5,A5=h5,N5=ox,z5=f5,D5=v5,O5=b5,P5=x5,L5=S5,I5=C5,B5=E5,j5=Object.defineProperty,ls=(e,t)=>j5(e,"name",{value:t,configurable:!0}),cx="DropdownMenu",[F5,hW]=va(cx,[ZT]),cs=ZT(),[U5,fE]=F5(cx),V5=ls(e=>{const{__scopeDropdownMenu:t,children:n,dir:i,open:a,defaultOpen:o,onOpenChange:c,modal:d=!0}=e,h=cs(t),m=M.useRef(null),[b,y]=nl({prop:a,defaultProp:o??!1,onChange:c,caller:cx});return w.jsx(U5,{scope:t,triggerId:Vi(),triggerRef:m,contentId:Vi(),open:b,onOpenChange:y,onOpenToggle:M.useCallback(()=>y(T=>!T),[y]),modal:d,children:w.jsx(M5,{...h,open:b,onOpenChange:y,dir:i,modal:d,children:n})})},"DropdownMenu"),H5="DropdownMenuTrigger",G5=M.forwardRef(ls(function(t,n){const{__scopeDropdownMenu:i,disabled:a=!1,...o}=t,c=fE(H5,i),d=cs(i),h=Be(n,c.triggerRef);return w.jsx(R5,{asChild:!0,...d,children:w.jsx(De.button,{type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...o,ref:h,onPointerDown:Kt(t.onPointerDown,m=>{!a&&m.button===0&&m.ctrlKey===!1&&(c.onOpenToggle(),c.open||m.preventDefault())}),onKeyDown:Kt(t.onKeyDown,m=>{a||(["Enter"," "].includes(m.key)&&c.onOpenToggle(),m.key==="ArrowDown"&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(m.key)&&m.preventDefault())})})})},"DropdownMenuTrigger")),Y5=ls(e=>{const{__scopeDropdownMenu:t,...n}=e,i=cs(t);return w.jsx(k5,{...i,...n})},"DropdownMenuPortal"),W5="DropdownMenuContent",K5=M.forwardRef(ls(function(t,n){const{__scopeDropdownMenu:i,...a}=t,o=fE(W5,i),c=cs(i),d=M.useRef(!1);return w.jsx(_5,{id:o.contentId,"aria-labelledby":o.triggerId,...c,...a,ref:n,onCloseAutoFocus:Kt(t.onCloseAutoFocus,h=>{var m;d.current||(m=o.triggerRef.current)==null||m.focus(),d.current=!1,h.preventDefault()}),onInteractOutside:Kt(t.onInteractOutside,h=>{const m=h.detail.originalEvent,b=m.button===0&&m.ctrlKey===!0,y=m.button===2||b;(!o.modal||y)&&(d.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuContent")),X5=M.forwardRef(ls(function(t,n){const{__scopeDropdownMenu:i,...a}=t,o=cs(i);return w.jsx(A5,{...o,...a,ref:n})},"DropdownMenuLabel")),Q5=M.forwardRef(ls(function(t,n){const{__scopeDropdownMenu:i,...a}=t,o=cs(i);return w.jsx(N5,{...o,...a,ref:n})},"DropdownMenuItem")),Z5=M.forwardRef(ls(function(t,n){const{__scopeDropdownMenu:i,...a}=t,o=cs(i);return w.jsx(z5,{...o,...a,ref:n})},"DropdownMenuCheckboxItem")),J5=M.forwardRef(ls(function(t,n){const{__scopeDropdownMenu:i,...a}=t,o=cs(i);return w.jsx(D5,{...o,...a,ref:n})},"DropdownMenuRadioItem")),q5=M.forwardRef(ls(function(t,n){const{__scopeDropdownMenu:i,...a}=t,o=cs(i);return w.jsx(O5,{...o,...a,ref:n})},"DropdownMenuItemIndicator")),$5=M.forwardRef(ls(function(t,n){const{__scopeDropdownMenu:i,...a}=t,o=cs(i);return w.jsx(P5,{...o,...a,ref:n})},"DropdownMenuSeparator")),tB=ls(e=>{const{__scopeDropdownMenu:t,children:n,open:i,onOpenChange:a,defaultOpen:o}=e,c=cs(t),[d,h]=nl({prop:i,defaultProp:o??!1,onChange:a,caller:"DropdownMenuSub"});return w.jsx(L5,{...c,open:d,onOpenChange:h,children:n})},"DropdownMenuSub"),eB=M.forwardRef(ls(function(t,n){const{__scopeDropdownMenu:i,...a}=t,o=cs(i);return w.jsx(I5,{...o,...a,ref:n})},"DropdownMenuSubTrigger")),nB=M.forwardRef(ls(function(t,n){const{__scopeDropdownMenu:i,...a}=t,o=cs(i);return w.jsx(B5,{...o,...a,ref:n,style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuSubContent")),mE=V5,gE=G5,Np=Y5,pE=K5,vE=X5,yE=Q5,bE=Z5,xE=J5,zp=q5,wE=$5,iB=tB,SE=eB,CE=nB,rB=Object.defineProperty,cl=(e,t)=>rB(e,"name",{value:t,configurable:!0}),ux,dx="HoverCard",[TE,fW]=va(dx,[rc]),hx=rc(),[sB,Dp]=TE(dx),aB=cl(e=>{const{__scopeHoverCard:t,children:n,open:i,defaultOpen:a,onOpenChange:o,openDelay:c=700,closeDelay:d=300}=e,h=hx(t),m=M.useRef(0),b=M.useRef(0),y=M.useRef(!1),T=M.useRef(!1),[k,R]=nl({prop:i,defaultProp:a??!1,onChange:o,caller:dx}),N=M.useCallback(()=>{clearTimeout(b.current),m.current=window.setTimeout(()=>R(!0),c)},[c,R]),z=M.useCallback(()=>{clearTimeout(m.current),!y.current&&!T.current&&(b.current=window.setTimeout(()=>R(!1),d))},[d,R]),L=M.useCallback(()=>R(!1),[R]);return M.useEffect(()=>()=>{clearTimeout(m.current),clearTimeout(b.current)},[]),w.jsx(sB,{scope:t,open:k,onOpenChange:R,onOpen:N,onClose:z,onDismiss:L,hasSelectionRef:y,isPointerDownOnContentRef:T,children:w.jsx(Zf,{...h,children:n})})},"HoverCard"),oB="HoverCardTrigger",lB=M.forwardRef(cl(function(t,n){const{__scopeHoverCard:i,...a}=t,o=Dp(oB,i),c=hx(i);return w.jsx(Tp,{asChild:!0,...c,children:w.jsx(De.a,{"data-state":o.open?"open":"closed",...a,ref:n,onPointerEnter:Kt(t.onPointerEnter,tm(o.onOpen)),onPointerLeave:Kt(t.onPointerLeave,tm(o.onClose)),onFocus:Kt(t.onFocus,o.onOpen),onBlur:Kt(t.onBlur,o.onClose),onTouchStart:Kt(t.onTouchStart,d=>d.preventDefault())})})},"HoverCardTrigger")),EE="HoverCardPortal",[cB,uB]=TE(EE,{forceMount:void 0}),dB=cl(e=>{const{__scopeHoverCard:t,forceMount:n,children:i,container:a}=e,o=Dp(EE,t);return w.jsx(cB,{scope:t,forceMount:n,children:w.jsx(Xs,{present:n||o.open,children:w.jsx(Yf,{asChild:!0,container:a,children:i})})})},"HoverCardPortal"),fx="HoverCardContent",hB=M.forwardRef(cl(function(t,n){const i=uB(fx,t.__scopeHoverCard),{forceMount:a=i.forceMount,...o}=t,c=Dp(fx,t.__scopeHoverCard);return w.jsx(Xs,{present:a||c.open,children:w.jsx(fB,{"data-state":c.open?"open":"closed",...o,onPointerEnter:Kt(t.onPointerEnter,tm(c.onOpen)),onPointerLeave:Kt(t.onPointerLeave,tm(c.onClose)),ref:n})})},"HoverCardContent")),fB=M.forwardRef(cl(function(t,n){const{__scopeHoverCard:i,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:c,onInteractOutside:d,...h}=t,m=Dp(fx,i),b=hx(i),y=M.useRef(null),T=Be(n,y),[k,R]=M.useState(!1);return M.useEffect(()=>{if(k){const N=document.body;return ux=N.style.userSelect||N.style.webkitUserSelect,N.style.userSelect="none",N.style.webkitUserSelect="none",()=>{N.style.userSelect=ux,N.style.webkitUserSelect=ux}}},[k]),M.useEffect(()=>{if(y.current){const N=cl(()=>{R(!1),m.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var L;((L=document.getSelection())==null?void 0:L.toString())!==""&&(m.hasSelectionRef.current=!0)})},"handlePointerUp");return document.addEventListener("pointerup",N),()=>{document.removeEventListener("pointerup",N),m.hasSelectionRef.current=!1,m.isPointerDownOnContentRef.current=!1}}},[m.isPointerDownOnContentRef,m.hasSelectionRef]),M.useEffect(()=>{y.current&&ME(y.current).forEach(z=>z.setAttribute("tabindex","-1"))}),w.jsx(Gf,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:d,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:Kt(c,N=>{N.preventDefault()}),onDismiss:m.onDismiss,children:w.jsx(Ep,{...b,...h,onPointerDown:Kt(h.onPointerDown,N=>{N.currentTarget.contains(N.target)&&R(!0),m.hasSelectionRef.current=!1,m.isPointerDownOnContentRef.current=!0}),ref:T,style:{...h.style,userSelect:k?"text":void 0,WebkitUserSelect:k?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})},"HoverCardContentImpl"));function tm(e){return t=>t.pointerType==="touch"?void 0:e()}cl(tm,"excludeTouch");function ME(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:cl(i=>i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}cl(ME,"getTabbableNodes");var RE=aB,kE=lB,_E=dB,mx=hB,mB=Object.defineProperty,gB=(e,t)=>mB(e,"name",{value:t,configurable:!0});function AE(e){const t=M.useRef({value:e,previous:e});return M.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}gB(AE,"usePrevious");var pB=Object.defineProperty,vB=(e,t)=>pB(e,"name",{value:t,configurable:!0});function gx(e,[t,n]){return Math.min(n,Math.max(t,e))}vB(gx,"clamp");var yB=Object.defineProperty,ac=(e,t)=>yB(e,"name",{value:t,configurable:!0}),px="Popover",[NE,mW]=va(px,[rc]),vx=rc(),[bB,wh]=NE(px),xB=ac(e=>{const{__scopePopover:t,children:n,open:i,defaultOpen:a,onOpenChange:o,modal:c=!1}=e,d=vx(t),h=M.useRef(null),[m,b]=M.useState(!1),[y,T]=nl({prop:i,defaultProp:a??!1,onChange:o,caller:px});return w.jsx(Zf,{...d,children:w.jsx(bB,{scope:t,contentId:Vi(),triggerRef:h,open:y,onOpenChange:T,onOpenToggle:M.useCallback(()=>T(k=>!k),[T]),hasCustomAnchor:m,onCustomAnchorAdd:M.useCallback(()=>b(!0),[]),onCustomAnchorRemove:M.useCallback(()=>b(!1),[]),modal:c,children:n})})},"Popover"),wB="PopoverTrigger",SB=M.forwardRef(ac(function(t,n){const{__scopePopover:i,...a}=t,o=wh(wB,i),c=vx(i),d=Be(n,o.triggerRef),h=w.jsx(De.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":yx(o.open),...a,ref:d,onClick:Kt(t.onClick,o.onOpenToggle)});return o.hasCustomAnchor?h:w.jsx(Tp,{asChild:!0,...c,children:h})},"PopoverTrigger")),zE="PopoverPortal",[CB,TB]=NE(zE,{forceMount:void 0}),EB=ac(e=>{const{__scopePopover:t,forceMount:n,children:i,container:a}=e,o=wh(zE,t);return w.jsx(CB,{scope:t,forceMount:n,children:w.jsx(Xs,{present:n||o.open,children:w.jsx(Yf,{asChild:!0,container:a,children:i})})})},"PopoverPortal"),em="PopoverContent",MB=M.forwardRef(ac(function(t,n){const i=TB(em,t.__scopePopover),{forceMount:a=i.forceMount,...o}=t,c=wh(em,t.__scopePopover);return w.jsx(Xs,{present:a||c.open,children:c.modal?w.jsx(kB,{...o,ref:n}):w.jsx(_B,{...o,ref:n})})},"PopoverContent")),RB=pa("PopoverContent.RemoveScroll"),kB=M.forwardRef(ac(function(t,n){const i=wh(em,t.__scopePopover),a=M.useRef(null),o=Be(n,a),c=M.useRef(!1);return M.useEffect(()=>{const d=a.current;if(d)return cp(d)},[]),w.jsx(Wf,{as:RB,allowPinchZoom:!0,children:w.jsx(DE,{...t,ref:o,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Kt(t.onCloseAutoFocus,d=>{var h;d.preventDefault(),c.current||(h=i.triggerRef.current)==null||h.focus()}),onPointerDownOutside:Kt(t.onPointerDownOutside,d=>{const h=d.detail.originalEvent,m=h.button===0&&h.ctrlKey===!0,b=h.button===2||m;c.current=b},{checkForDefaultPrevented:!1}),onFocusOutside:Kt(t.onFocusOutside,d=>d.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),_B=M.forwardRef(ac(function(t,n){const i=wh(em,t.__scopePopover),a=M.useRef(!1),o=M.useRef(!1);return w.jsx(DE,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var d,h;(d=t.onCloseAutoFocus)==null||d.call(t,c),c.defaultPrevented||(a.current||(h=i.triggerRef.current)==null||h.focus(),c.preventDefault()),a.current=!1,o.current=!1},onInteractOutside:c=>{var m,b;(m=t.onInteractOutside)==null||m.call(t,c),c.defaultPrevented||(a.current=!0,c.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const d=c.target;((b=i.triggerRef.current)==null?void 0:b.contains(d))&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&o.current&&c.preventDefault()}})},"PopoverContentNonModal")),DE=M.forwardRef(ac(function(t,n){const{__scopePopover:i,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:c,disableOutsidePointerEvents:d,onEscapeKeyDown:h,onPointerDownOutside:m,onFocusOutside:b,onInteractOutside:y,...T}=t,k=wh(em,i),R=vx(i);return hh(),w.jsx(tp,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:o,onUnmountAutoFocus:c,children:w.jsx(Gf,{asChild:!0,disableOutsidePointerEvents:d,onInteractOutside:y,onEscapeKeyDown:h,onPointerDownOutside:m,onFocusOutside:b,onDismiss:()=>k.onOpenChange(!1),deferPointerDownOutside:!0,children:w.jsx(Ep,{"data-state":yx(k.open),role:"dialog",id:k.contentId,...R,...T,ref:n,style:{...T.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})},"PopoverContentImpl"));function yx(e){return e?"open":"closed"}ac(yx,"getState");var AB=xB,NB=SB,zB=EB,OE=MB,DB=Object.defineProperty,Ge=(e,t)=>DB(e,"name",{value:t,configurable:!0}),OB=[" ","Enter","ArrowUp","ArrowDown"],PB=[" ","Enter"],Sh="Select",[Op,Pp,LB]=Jg(Sh),[Zu,gW]=va(Sh,[LB,rc]),bx=rc(),[IB,oc]=Zu(Sh),[BB,jB]=Zu(Sh);function PE(e){const{__scopeSelect:t,children:n,open:i,defaultOpen:a,onOpenChange:o,value:c,defaultValue:d,onValueChange:h,dir:m,name:b,autoComplete:y,disabled:T,required:k,form:R,internal_do_not_use_render:N}=e,z=bx(t),[L,I]=M.useState(null),[F,B]=M.useState(null),[Y,Z]=M.useState(!1),et=$g(m),[q,nt]=nl({prop:i,defaultProp:a??!1,onChange:o,caller:Sh}),[ot,Ct]=nl({prop:c,defaultProp:d,onChange:h,caller:Sh}),ct=M.useRef(null),mt=M.useRef(ot);M.useEffect(()=>{const X=R?L==null?void 0:L.ownerDocument.getElementById(R):L==null?void 0:L.form;if(X instanceof HTMLFormElement){const ft=Ge(()=>Ct(mt.current),"reset");return X.addEventListener("reset",ft),()=>X.removeEventListener("reset",ft)}},[R,L,Ct]);const Rt=L?!!R||!!L.closest("form"):!0,[ut,j]=M.useState(new Set),J=Vi(),ht=Array.from(ut).map(X=>X.props.value).join(";"),Tt=M.useCallback(X=>{j(ft=>new Set(ft).add(X))},[]),K=M.useCallback(X=>{j(ft=>{const yt=new Set(ft);return yt.delete(X),yt})},[]),U={required:k,trigger:L,onTriggerChange:I,valueNode:F,onValueNodeChange:B,valueNodeHasChildren:Y,onValueNodeHasChildrenChange:Z,contentId:J,value:ot,onValueChange:Ct,open:q,onOpenChange:nt,dir:et,triggerPointerDownPosRef:ct,disabled:T,name:b,autoComplete:y,form:R,nativeOptions:ut,nativeSelectKey:ht,isFormControl:Rt};return w.jsx(Zf,{...z,children:w.jsx(IB,{scope:t,...U,children:w.jsx(Op.Provider,{scope:t,children:w.jsx(BB,{scope:t,onNativeOptionAdd:Tt,onNativeOptionRemove:K,children:HE(N)?N(U):n})})})})}Ge(PE,"SelectProvider");var FB=Ge(e=>{const{__scopeSelect:t,children:n,...i}=e;return w.jsx(PE,{__scopeSelect:t,...i,internal_do_not_use_render:({isFormControl:a})=>w.jsxs(w.Fragment,{children:[n,a?w.jsx(hj,{__scopeSelect:t}):null]})})},"Select"),UB="SelectTrigger",VB=M.forwardRef(Ge(function(t,n){const{__scopeSelect:i,disabled:a=!1,...o}=t,c=bx(i),d=oc(UB,i),h=d.disabled||a,m=Be(n,d.onTriggerChange),b=Pp(i),y=M.useRef("touch"),[T,k,R]=Sx(z=>{const L=b().filter(B=>!B.disabled),I=L.find(B=>B.value===d.value),F=Cx(L,z,I);F!==void 0&&d.onValueChange(F.value)}),N=Ge(z=>{h||(d.onOpenChange(!0),R()),z&&(d.triggerPointerDownPosRef.current={x:Math.round(z.pageX),y:Math.round(z.pageY)})},"handleOpen");return w.jsx(Tp,{asChild:!0,...c,children:w.jsx(De.button,{type:"button",role:"combobox","aria-controls":d.open?d.contentId:void 0,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:h,"data-disabled":h?"":void 0,"data-placeholder":nm(d.value)?"":void 0,...o,ref:m,onClick:Kt(o.onClick,z=>{z.currentTarget.focus(),y.current!=="mouse"&&N(z)}),onPointerDown:Kt(o.onPointerDown,z=>{y.current=z.pointerType;const L=z.target;L.hasPointerCapture(z.pointerId)&&L.releasePointerCapture(z.pointerId),z.button===0&&z.ctrlKey===!1&&z.pointerType==="mouse"&&(N(z),z.preventDefault())}),onKeyDown:Kt(o.onKeyDown,z=>{const L=T.current!=="";!(z.ctrlKey||z.altKey||z.metaKey)&&z.key.length===1&&k(z.key),!(L&&z.key===" ")&&OB.includes(z.key)&&(N(),z.preventDefault())})})})},"SelectTrigger")),HB="SelectValue",GB=M.forwardRef(Ge(function(t,n){const{__scopeSelect:i,className:a,style:o,children:c,placeholder:d="",...h}=t,m=oc(HB,i),{onValueNodeHasChildrenChange:b}=m,y=c!==void 0,T=Be(n,m.onValueNodeChange);ei(()=>{b(y)},[b,y]);const k=nm(m.value);return w.jsx(De.span,{...h,asChild:k?!1:h.asChild,ref:T,style:{pointerEvents:"none"},children:w.jsx(M.Fragment,{children:k?d:c},k?"placeholder":"value")})},"SelectValue")),YB=M.forwardRef(Ge(function(t,n){const{__scopeSelect:i,children:a,...o}=t;return w.jsx(De.span,{"aria-hidden":!0,...o,ref:n,children:a||"▼"})},"SelectIcon")),WB="SelectPortal",[KB,XB]=Zu(WB,{forceMount:void 0}),QB=Ge(e=>{const{__scopeSelect:t,forceMount:n,...i}=e;return w.jsx(KB,{scope:e.__scopeSelect,forceMount:n,children:w.jsx(Yf,{asChild:!0,...i})})},"SelectPortal"),Ju="SelectContent",ZB=M.forwardRef(Ge(function(t,n){const i=XB(Ju,t.__scopeSelect),{forceMount:a=i.forceMount,...o}=t,c=oc(Ju,t.__scopeSelect),[d,h]=M.useState();return ei(()=>{h(new DocumentFragment)},[]),w.jsx(Xs,{present:a||c.open,children:({present:m})=>m?w.jsx($B,{...o,ref:n}):w.jsx(JB,{...o,fragment:d})})},"SelectContent")),JB=M.forwardRef(Ge(function(t,n){const{__scopeSelect:i,children:a,fragment:o}=t;return o?Uf.createPortal(w.jsx(LE,{scope:i,children:w.jsx(Op.Slot,{scope:i,children:w.jsx("div",{ref:n,children:a})})}),o):null},"SelectContentFragment")),ba=10,[LE,qu]=Zu(Ju),qB=pa("SelectContent.RemoveScroll"),$B=M.forwardRef(Ge(function(t,n){const{__scopeSelect:i}=t,{position:a="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:c,onPointerDownOutside:d,side:h,sideOffset:m,align:b,alignOffset:y,arrowPadding:T,collisionBoundary:k,collisionPadding:R,sticky:N,hideWhenDetached:z,avoidCollisions:L,...I}=t,F=oc(Ju,i),[B,Y]=M.useState(null),[Z,et]=M.useState(null),q=Be(n,Y),[nt,ot]=M.useState(null),[Ct,ct]=M.useState(null),mt=Pp(i),[Rt,ut]=M.useState(!1),j=M.useRef(!1);M.useEffect(()=>{if(B)return cp(B)},[B]),hh();const J=M.useCallback(Dt=>{const[Mt,...Yt]=mt().map(Ut=>Ut.ref.current),[Qt]=Yt.slice(-1),ne=document.activeElement;for(const Ut of Dt)if(Ut===ne||(Ut==null||Ut.scrollIntoView({block:"nearest"}),Ut===Mt&&Z&&(Z.scrollTop=0),Ut===Qt&&Z&&(Z.scrollTop=Z.scrollHeight),Ut==null||Ut.focus(),document.activeElement!==ne))return},[mt,Z]),ht=M.useCallback(()=>J([nt,B]),[J,nt,B]);M.useEffect(()=>{Rt&&ht()},[Rt,ht]);const{onOpenChange:Tt,triggerPointerDownPosRef:K}=F;M.useEffect(()=>{if(B){let Dt={x:0,y:0};const Mt=Ge(Qt=>{var ne,Ut;Dt={x:Math.abs(Math.round(Qt.pageX)-(((ne=K.current)==null?void 0:ne.x)??0)),y:Math.abs(Math.round(Qt.pageY)-(((Ut=K.current)==null?void 0:Ut.y)??0))}},"handlePointerMove"),Yt=Ge(Qt=>{Dt.x<=10&&Dt.y<=10?Qt.preventDefault():Qt.composedPath().includes(B)||Tt(!1),document.removeEventListener("pointermove",Mt),K.current=null},"handlePointerUp");return K.current!==null&&(document.addEventListener("pointermove",Mt),document.addEventListener("pointerup",Yt,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Mt),document.removeEventListener("pointerup",Yt,{capture:!0})}}},[B,Tt,K]),M.useEffect(()=>{const Dt=Ge(()=>Tt(!1),"close");return window.addEventListener("blur",Dt),window.addEventListener("resize",Dt),()=>{window.removeEventListener("blur",Dt),window.removeEventListener("resize",Dt)}},[Tt]);const[U,X]=Sx(Dt=>{const Mt=mt().filter(ne=>!ne.disabled),Yt=Mt.find(ne=>ne.ref.current===document.activeElement),Qt=Cx(Mt,Dt,Yt);Qt&&setTimeout(()=>{var ne;return(ne=Qt.ref.current)==null?void 0:ne.focus()})}),ft=M.useCallback((Dt,Mt,Yt)=>{const Qt=!j.current&&!Yt;(F.value!==void 0&&F.value===Mt||Qt)&&(ot(Dt),Qt&&(j.current=!0))},[F.value]),yt=M.useCallback(()=>B==null?void 0:B.focus(),[B]),tt=M.useCallback((Dt,Mt,Yt)=>{const Qt=!j.current&&!Yt;(F.value!==void 0&&F.value===Mt||Qt)&&ct(Dt)},[F.value]),bt=a==="popper"?IE:tj,zt=bt===IE?{side:h,sideOffset:m,align:b,alignOffset:y,arrowPadding:T,collisionBoundary:k,collisionPadding:R,sticky:N,hideWhenDetached:z,avoidCollisions:L}:{};return w.jsx(LE,{scope:i,content:B,viewport:Z,onViewportChange:et,itemRefCallback:ft,selectedItem:nt,onItemLeave:yt,itemTextRefCallback:tt,focusSelectedItem:ht,selectedItemText:Ct,position:a,isPositioned:Rt,searchRef:U,children:w.jsx(Wf,{as:qB,allowPinchZoom:!0,children:w.jsx(tp,{asChild:!0,trapped:F.open,onMountAutoFocus:Dt=>{Dt.preventDefault()},onUnmountAutoFocus:Kt(o,Dt=>{var Mt;(Mt=F.trigger)==null||Mt.focus({preventScroll:!0}),Dt.preventDefault()}),children:w.jsx(Gf,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:Dt=>Dt.preventDefault(),onDismiss:()=>F.onOpenChange(!1),children:w.jsx(bt,{role:"listbox",id:F.contentId,"data-state":F.open?"open":"closed",dir:F.dir,onContextMenu:Dt=>Dt.preventDefault(),...I,...zt,onPlaced:()=>ut(!0),ref:q,style:{display:"flex",flexDirection:"column",outline:"none",...I.style},onKeyDown:Kt(I.onKeyDown,Dt=>{const Mt=Dt.ctrlKey||Dt.altKey||Dt.metaKey;if(Dt.key==="Tab"&&Dt.preventDefault(),!Mt&&Dt.key.length===1&&X(Dt.key),["ArrowUp","ArrowDown","Home","End"].includes(Dt.key)){let Qt=mt().filter(ne=>!ne.disabled).map(ne=>ne.ref.current);if(["ArrowUp","End"].includes(Dt.key)&&(Qt=Qt.slice().reverse()),["ArrowUp","ArrowDown"].includes(Dt.key)){const ne=Dt.target,Ut=Qt.indexOf(ne);Qt=Qt.slice(Ut+1)}setTimeout(()=>J(Qt)),Dt.preventDefault()}})})})})})})},"SelectContentImpl")),tj=M.forwardRef(Ge(function(t,n){const{__scopeSelect:i,onPlaced:a,...o}=t,c=oc(Ju,i),d=qu(Ju,i),[h,m]=M.useState(null),[b,y]=M.useState(null),T=Be(n,y),k=Pp(i),R=M.useRef(!1),N=M.useRef(!0),{viewport:z,selectedItem:L,selectedItemText:I,focusSelectedItem:F}=d,B=M.useCallback(()=>{if(c.trigger&&c.valueNode&&h&&b&&z&&L&&I){const q=c.trigger.getBoundingClientRect(),nt=b.getBoundingClientRect(),ot=c.valueNode.getBoundingClientRect(),Ct=I.getBoundingClientRect();if(c.dir!=="rtl"){const ne=Ct.left-nt.left,Ut=ot.left-ne,Ce=q.left-Ut,Ht=q.width+Ce,ee=Math.max(Ht,nt.width),re=window.innerWidth-ba,we=gx(Ut,[ba,Math.max(ba,re-ee)]);h.style.minWidth=Ht+"px",h.style.left=we+"px"}else{const ne=nt.right-Ct.right,Ut=window.innerWidth-ot.right-ne,Ce=window.innerWidth-q.right-Ut,Ht=q.width+Ce,ee=Math.max(Ht,nt.width),re=window.innerWidth-ba,we=gx(Ut,[ba,Math.max(ba,re-ee)]);h.style.minWidth=Ht+"px",h.style.right=we+"px"}const ct=k(),mt=window.innerHeight-ba*2,Rt=z.scrollHeight,ut=window.getComputedStyle(b),j=parseInt(ut.borderTopWidth,10),J=parseInt(ut.paddingTop,10),ht=parseInt(ut.borderBottomWidth,10),Tt=parseInt(ut.paddingBottom,10),K=j+J+Rt+Tt+ht,U=Math.min(L.offsetHeight*5,K),X=window.getComputedStyle(z),ft=parseInt(X.paddingTop,10),yt=parseInt(X.paddingBottom,10),tt=q.top+q.height/2-ba,bt=mt-tt,zt=L.offsetHeight/2,Dt=L.offsetTop+zt,Mt=j+J+Dt,Yt=K-Mt;if(Mt<=tt){const ne=ct.length>0&&L===ct[ct.length-1].ref.current;h.style.bottom="0px";const Ut=b.clientHeight-z.offsetTop-z.offsetHeight,Ce=Math.max(bt,zt+(ne?yt:0)+Ut+ht),Ht=Mt+Ce;h.style.height=Ht+"px"}else{const ne=ct.length>0&&L===ct[0].ref.current;h.style.top="0px";const Ce=Math.max(tt,j+z.offsetTop+(ne?ft:0)+zt)+Yt;h.style.height=Ce+"px",z.scrollTop=Mt-tt+z.offsetTop}h.style.margin=`${ba}px 0`,h.style.minHeight=U+"px",h.style.maxHeight=mt+"px",a==null||a(),requestAnimationFrame(()=>R.current=!0)}},[k,c.trigger,c.valueNode,h,b,z,L,I,c.dir,a]);ei(()=>B(),[B]);const[Y,Z]=M.useState();ei(()=>{b&&Z(window.getComputedStyle(b).zIndex)},[b]);const et=M.useCallback(q=>{q&&N.current===!0&&(B(),F==null||F(),N.current=!1)},[B,F]);return w.jsx(ej,{scope:i,contentWrapper:h,shouldExpandOnScrollRef:R,onScrollButtonChange:et,children:w.jsx("div",{ref:m,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:Y},children:w.jsx(De.div,{...o,ref:T,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})},"SelectItemAlignedPosition")),IE=M.forwardRef(Ge(function(t,n){const{__scopeSelect:i,align:a="start",collisionPadding:o=ba,...c}=t,d=bx(i);return w.jsx(Ep,{...d,...c,ref:n,align:a,collisionPadding:o,style:{boxSizing:"border-box",...c.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[ej,xx]=Zu(Ju,{}),BE="SelectViewport",nj=M.forwardRef(Ge(function(t,n){const{__scopeSelect:i,nonce:a,...o}=t,c=qu(BE,i),d=xx(BE,i),h=Be(n,c.onViewportChange),m=M.useRef(0);return w.jsxs(w.Fragment,{children:[w.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),w.jsx(Op.Slot,{scope:i,children:w.jsx(De.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Kt(o.onScroll,b=>{const y=b.currentTarget,{contentWrapper:T,shouldExpandOnScrollRef:k}=d;if(k!=null&&k.current&&T){const R=Math.abs(m.current-y.scrollTop);if(R>0){const N=window.innerHeight-ba*2,z=parseFloat(T.style.minHeight),L=parseFloat(T.style.height),I=Math.max(z,L);if(I<N){const F=I+R,B=Math.min(N,F),Y=F-B;T.style.height=B+"px",T.style.bottom==="0px"&&(y.scrollTop=Y>0?Y:0,T.style.justifyContent="flex-end")}}}m.current=y.scrollTop})})})]})},"SelectViewport")),ij="SelectGroup",[pW,vW]=Zu(ij),wx="SelectItem",[rj,jE]=Zu(wx),sj=M.forwardRef(Ge(function(t,n){const{__scopeSelect:i,value:a,disabled:o=!1,textValue:c,...d}=t,h=oc(wx,i),m=qu(wx,i),b=h.value===a,[y,T]=M.useState(c??""),[k,R]=M.useState(!1),N=os(B=>{var Y;return(Y=m.itemRefCallback)==null?void 0:Y.call(m,B,a,o)}),z=Be(n,N),L=Vi(),I=M.useRef("touch"),F=Ge(()=>{o||(h.onValueChange(a),h.onOpenChange(!1))},"handleSelect");return w.jsx(rj,{scope:i,value:a,disabled:o,textId:L,isSelected:b,onItemTextChange:M.useCallback(B=>{T(Y=>Y||((B==null?void 0:B.textContent)??"").trim())},[]),children:w.jsx(Op.ItemSlot,{scope:i,value:a,disabled:o,textValue:y,children:w.jsx(De.div,{role:"option","aria-labelledby":L,"data-highlighted":k?"":void 0,"aria-selected":b&&k,"data-state":b?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...d,ref:z,onFocus:Kt(d.onFocus,()=>R(!0)),onBlur:Kt(d.onBlur,()=>R(!1)),onClick:Kt(d.onClick,()=>{I.current!=="mouse"&&F()}),onPointerUp:Kt(d.onPointerUp,()=>{I.current==="mouse"&&F()}),onPointerDown:Kt(d.onPointerDown,B=>{I.current=B.pointerType}),onPointerMove:Kt(d.onPointerMove,B=>{var Y;I.current=B.pointerType,o?(Y=m.onItemLeave)==null||Y.call(m):I.current==="mouse"&&B.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Kt(d.onPointerLeave,B=>{var Y;B.currentTarget===document.activeElement&&((Y=m.onItemLeave)==null||Y.call(m))}),onKeyDown:Kt(d.onKeyDown,B=>{var Z;o||B.target!==B.currentTarget||((Z=m.searchRef)==null?void 0:Z.current)!==""&&B.key===" "||(PB.includes(B.key)&&F(),B.key===" "&&B.preventDefault())})})})})},"SelectItem")),Lp="SelectItemText",aj=M.forwardRef(Ge(function(t,n){const{__scopeSelect:i,className:a,style:o,...c}=t,d=oc(Lp,i),h=qu(Lp,i),m=jE(Lp,i),b=jB(Lp,i),[y,T]=M.useState(null),k=os(F=>{var B;return(B=h.itemTextRefCallback)==null?void 0:B.call(h,F,m.value,m.disabled)}),R=Be(n,T,m.onItemTextChange,k),N=y==null?void 0:y.textContent,z=M.useMemo(()=>w.jsx("option",{value:m.value,disabled:m.disabled,children:N},m.value),[m.disabled,m.value,N]),{onNativeOptionAdd:L,onNativeOptionRemove:I}=b;return ei(()=>(L(z),()=>I(z)),[L,I,z]),w.jsxs(w.Fragment,{children:[w.jsx(De.span,{id:m.textId,...c,ref:R}),m.isSelected&&d.valueNode&&!d.valueNodeHasChildren&&!nm(d.value)?Uf.createPortal(c.children,d.valueNode):null]})},"SelectItemText")),oj="SelectItemIndicator",lj=M.forwardRef(Ge(function(t,n){const{__scopeSelect:i,...a}=t;return jE(oj,i).isSelected?w.jsx(De.span,{"aria-hidden":!0,...a,ref:n}):null},"SelectItemIndicator")),FE="SelectScrollUpButton",cj=M.forwardRef(Ge(function(t,n){const i=qu(FE,t.__scopeSelect),a=xx(FE,t.__scopeSelect),[o,c]=M.useState(!1),d=Be(n,a.onScrollButtonChange);return ei(()=>{if(i.viewport&&i.isPositioned){let h=function(){const b=m.scrollTop>0;c(b)};Ge(h,"handleScroll");const m=i.viewport;return h(),m.addEventListener("scroll",h),()=>m.removeEventListener("scroll",h)}},[i.viewport,i.isPositioned]),o?w.jsx(VE,{...t,ref:d,onAutoScroll:()=>{const{viewport:h,selectedItem:m}=i;h&&m&&(h.scrollTop=h.scrollTop-m.offsetHeight)}}):null},"SelectScrollUpButton")),UE="SelectScrollDownButton",uj=M.forwardRef(Ge(function(t,n){const i=qu(UE,t.__scopeSelect),a=xx(UE,t.__scopeSelect),[o,c]=M.useState(!1),d=Be(n,a.onScrollButtonChange);return ei(()=>{if(i.viewport&&i.isPositioned){let h=function(){const b=m.scrollHeight-m.clientHeight,y=Math.ceil(m.scrollTop)<b;c(y)};Ge(h,"handleScroll");const m=i.viewport;return h(),m.addEventListener("scroll",h),()=>m.removeEventListener("scroll",h)}},[i.viewport,i.isPositioned]),o?w.jsx(VE,{...t,ref:d,onAutoScroll:()=>{const{viewport:h,selectedItem:m}=i;h&&m&&(h.scrollTop=h.scrollTop+m.offsetHeight)}}):null},"SelectScrollDownButton")),VE=M.forwardRef(Ge(function(t,n){const{__scopeSelect:i,onAutoScroll:a,...o}=t,c=qu("SelectScrollButton",i),d=M.useRef(null),h=Pp(i),m=M.useCallback(()=>{d.current!==null&&(window.clearInterval(d.current),d.current=null)},[]);return M.useEffect(()=>()=>m(),[m]),ei(()=>{var y;const b=h().find(T=>T.ref.current===document.activeElement);(y=b==null?void 0:b.ref.current)==null||y.scrollIntoView({block:"nearest"})},[h]),w.jsx(De.div,{"aria-hidden":!0,...o,ref:n,style:{flexShrink:0,...o.style},onPointerDown:Kt(o.onPointerDown,()=>{d.current===null&&(d.current=window.setInterval(a,50))}),onPointerMove:Kt(o.onPointerMove,()=>{var b;(b=c.onItemLeave)==null||b.call(c),d.current===null&&(d.current=window.setInterval(a,50))}),onPointerLeave:Kt(o.onPointerLeave,()=>{m()})})},"SelectScrollButtonImpl")),dj="SelectBubbleInput",hj=M.forwardRef(Ge(function({__scopeSelect:t,...n},i){const a=oc(dj,t),{value:o,onValueChange:c,required:d,disabled:h,name:m,autoComplete:b,form:y}=a,{nativeOptions:T,nativeSelectKey:k}=a,R=M.useRef(null),N=Be(i,R),z=o??"",L=AE(z),I=Array.from(T).some(F=>(F.props.value??"")==="");return M.useEffect(()=>{const F=R.current;if(!F)return;const B=window.HTMLSelectElement.prototype,Z=Object.getOwnPropertyDescriptor(B,"value").set;if(L!==z&&Z){const et=new Event("change",{bubbles:!0});Z.call(F,z),F.dispatchEvent(et)}},[L,z]),w.jsxs(De.select,{"aria-hidden":!0,required:d,tabIndex:-1,name:m,autoComplete:b,disabled:h,form:y,onChange:F=>c(F.target.value),...n,style:{...XP,...n.style},ref:N,defaultValue:z,children:[nm(o)&&!I?w.jsx("option",{value:""}):null,Array.from(T)]},k)},"SelectBubbleInput"));function HE(e){return typeof e=="function"}Ge(HE,"isFunction");function nm(e){return e===""||e===void 0}Ge(nm,"shouldShowPlaceholder");function Sx(e){const t=os(e),n=M.useRef(""),i=M.useRef(0),a=M.useCallback(c=>{const d=n.current+c;t(d),Ge((function h(m){n.current=m,window.clearTimeout(i.current),m!==""&&(i.current=window.setTimeout(()=>h(""),1e3))}),"updateSearch")(d)},[t]),o=M.useCallback(()=>{n.current="",window.clearTimeout(i.current)},[]);return M.useEffect(()=>()=>window.clearTimeout(i.current),[]),[n,a,o]}Ge(Sx,"useTypeaheadSearch");function Cx(e,t,n){const a=t.length>1&&Array.from(t).every(m=>m===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let c=GE(e,Math.max(o,0));a.length===1&&(c=c.filter(m=>m!==n));const h=c.find(m=>m.textValue.toLowerCase().startsWith(a.toLowerCase()));return h!==n?h:void 0}Ge(Cx,"findNextItem");function GE(e,t){return e.map((n,i)=>e[(t+i)%e.length])}Ge(GE,"wrapArray");/**
|
|
176
|
+
* @license lucide-react v0.460.0 - ISC
|
|
177
|
+
*
|
|
178
|
+
* This source code is licensed under the ISC license.
|
|
179
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
180
|
+
*/const fj=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),YE=(...e)=>e.filter((t,n,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===n).join(" ").trim();/**
|
|
181
|
+
* @license lucide-react v0.460.0 - ISC
|
|
182
|
+
*
|
|
183
|
+
* This source code is licensed under the ISC license.
|
|
184
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
185
|
+
*/var mj={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
186
|
+
* @license lucide-react v0.460.0 - ISC
|
|
187
|
+
*
|
|
188
|
+
* This source code is licensed under the ISC license.
|
|
189
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
190
|
+
*/const gj=M.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:a="",children:o,iconNode:c,...d},h)=>M.createElement("svg",{ref:h,...mj,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:YE("lucide",a),...d},[...c.map(([m,b])=>M.createElement(m,b)),...Array.isArray(o)?o:[o]]));/**
|
|
191
|
+
* @license lucide-react v0.460.0 - ISC
|
|
192
|
+
*
|
|
193
|
+
* This source code is licensed under the ISC license.
|
|
194
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
195
|
+
*/const An=(e,t)=>{const n=M.forwardRef(({className:i,...a},o)=>M.createElement(gj,{ref:o,iconNode:t,className:YE(`lucide-${fj(e)}`,i),...a}));return n.displayName=`${e}`,n};/**
|
|
196
|
+
* @license lucide-react v0.460.0 - ISC
|
|
197
|
+
*
|
|
198
|
+
* This source code is licensed under the ISC license.
|
|
199
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
200
|
+
*/const pj=An("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
|
|
201
|
+
* @license lucide-react v0.460.0 - ISC
|
|
202
|
+
*
|
|
203
|
+
* This source code is licensed under the ISC license.
|
|
204
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
205
|
+
*/const Ip=An("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
206
|
+
* @license lucide-react v0.460.0 - ISC
|
|
207
|
+
*
|
|
208
|
+
* This source code is licensed under the ISC license.
|
|
209
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
210
|
+
*/const WE=An("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
211
|
+
* @license lucide-react v0.460.0 - ISC
|
|
212
|
+
*
|
|
213
|
+
* This source code is licensed under the ISC license.
|
|
214
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
215
|
+
*/const vj=An("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
216
|
+
* @license lucide-react v0.460.0 - ISC
|
|
217
|
+
*
|
|
218
|
+
* This source code is licensed under the ISC license.
|
|
219
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
220
|
+
*/const $u=An("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
221
|
+
* @license lucide-react v0.460.0 - ISC
|
|
222
|
+
*
|
|
223
|
+
* This source code is licensed under the ISC license.
|
|
224
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
225
|
+
*/const yj=An("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
226
|
+
* @license lucide-react v0.460.0 - ISC
|
|
227
|
+
*
|
|
228
|
+
* This source code is licensed under the ISC license.
|
|
229
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
230
|
+
*/const bj=An("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);/**
|
|
231
|
+
* @license lucide-react v0.460.0 - ISC
|
|
232
|
+
*
|
|
233
|
+
* This source code is licensed under the ISC license.
|
|
234
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
235
|
+
*/const KE=An("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
236
|
+
* @license lucide-react v0.460.0 - ISC
|
|
237
|
+
*
|
|
238
|
+
* This source code is licensed under the ISC license.
|
|
239
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
240
|
+
*/const xj=An("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
241
|
+
* @license lucide-react v0.460.0 - ISC
|
|
242
|
+
*
|
|
243
|
+
* This source code is licensed under the ISC license.
|
|
244
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
245
|
+
*/const wj=An("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
|
|
246
|
+
* @license lucide-react v0.460.0 - ISC
|
|
247
|
+
*
|
|
248
|
+
* This source code is licensed under the ISC license.
|
|
249
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
250
|
+
*/const XE=An("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
|
251
|
+
* @license lucide-react v0.460.0 - ISC
|
|
252
|
+
*
|
|
253
|
+
* This source code is licensed under the ISC license.
|
|
254
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
255
|
+
*/const Sj=An("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
256
|
+
* @license lucide-react v0.460.0 - ISC
|
|
257
|
+
*
|
|
258
|
+
* This source code is licensed under the ISC license.
|
|
259
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
260
|
+
*/const Cj=An("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);/**
|
|
261
|
+
* @license lucide-react v0.460.0 - ISC
|
|
262
|
+
*
|
|
263
|
+
* This source code is licensed under the ISC license.
|
|
264
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
265
|
+
*/const Tj=An("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
|
|
266
|
+
* @license lucide-react v0.460.0 - ISC
|
|
267
|
+
*
|
|
268
|
+
* This source code is licensed under the ISC license.
|
|
269
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
270
|
+
*/const Ej=An("FolderPlus",[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
|
|
271
|
+
* @license lucide-react v0.460.0 - ISC
|
|
272
|
+
*
|
|
273
|
+
* This source code is licensed under the ISC license.
|
|
274
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
275
|
+
*/const QE=An("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
|
|
276
|
+
* @license lucide-react v0.460.0 - ISC
|
|
277
|
+
*
|
|
278
|
+
* This source code is licensed under the ISC license.
|
|
279
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
280
|
+
*/const Mj=An("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
281
|
+
* @license lucide-react v0.460.0 - ISC
|
|
282
|
+
*
|
|
283
|
+
* This source code is licensed under the ISC license.
|
|
284
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
285
|
+
*/const ZE=An("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
286
|
+
* @license lucide-react v0.460.0 - ISC
|
|
287
|
+
*
|
|
288
|
+
* This source code is licensed under the ISC license.
|
|
289
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
290
|
+
*/const Rj=An("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
291
|
+
* @license lucide-react v0.460.0 - ISC
|
|
292
|
+
*
|
|
293
|
+
* This source code is licensed under the ISC license.
|
|
294
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
295
|
+
*/const kj=An("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
296
|
+
* @license lucide-react v0.460.0 - ISC
|
|
297
|
+
*
|
|
298
|
+
* This source code is licensed under the ISC license.
|
|
299
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
300
|
+
*/const Tx=An("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
301
|
+
* @license lucide-react v0.460.0 - ISC
|
|
302
|
+
*
|
|
303
|
+
* This source code is licensed under the ISC license.
|
|
304
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
305
|
+
*/const _j=An("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
|
|
306
|
+
* @license lucide-react v0.460.0 - ISC
|
|
307
|
+
*
|
|
308
|
+
* This source code is licensed under the ISC license.
|
|
309
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
310
|
+
*/const Aj=An("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
311
|
+
* @license lucide-react v0.460.0 - ISC
|
|
312
|
+
*
|
|
313
|
+
* This source code is licensed under the ISC license.
|
|
314
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
315
|
+
*/const Ex=An("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function JE(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=JE(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function qE(){for(var e,t,n=0,i="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=JE(e))&&(i&&(i+=" "),i+=t);return i}const $E=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,tM=qE,uo=(e,t)=>n=>{var i;if((t==null?void 0:t.variants)==null)return tM(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:a,defaultVariants:o}=t,c=Object.keys(a).map(m=>{const b=n==null?void 0:n[m],y=o==null?void 0:o[m];if(b===null)return null;const T=$E(b)||$E(y);return a[m][T]}),d=n&&Object.entries(n).reduce((m,b)=>{let[y,T]=b;return T===void 0||(m[y]=T),m},{}),h=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((m,b)=>{let{class:y,className:T,...k}=b;return Object.entries(k).every(R=>{let[N,z]=R;return Array.isArray(z)?z.includes({...o,...d}[N]):{...o,...d}[N]===z})?[...m,y,T]:m},[]);return tM(e,c,h,n==null?void 0:n.class,n==null?void 0:n.className)},Nj=(e,t)=>{const n=new Array(e.length+t.length);for(let i=0;i<e.length;i++)n[i]=e[i];for(let i=0;i<t.length;i++)n[e.length+i]=t[i];return n},zj=(e,t)=>({classGroupId:e,validator:t}),eM=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Bp="-",nM=[],Dj="arbitrary..",Oj=e=>{const t=Lj(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return Pj(c);const d=c.split(Bp),h=d[0]===""&&d.length>1?1:0;return iM(d,h,t)},getConflictingClassGroupIds:(c,d)=>{if(d){const h=i[c],m=n[c];return h?m?Nj(m,h):h:m||nM}return n[c]||nM}}},iM=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const a=e[t],o=n.nextPart.get(a);if(o){const m=iM(e,t+1,o);if(m)return m}const c=n.validators;if(c===null)return;const d=t===0?e.join(Bp):e.slice(t).join(Bp),h=c.length;for(let m=0;m<h;m++){const b=c[m];if(b.validator(d))return b.classGroupId}},Pj=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),i=t.slice(0,n);return i?Dj+i:void 0})(),Lj=e=>{const{theme:t,classGroups:n}=e;return Ij(n,t)},Ij=(e,t)=>{const n=eM();for(const i in e){const a=e[i];Mx(a,n,i,t)}return n},Mx=(e,t,n,i)=>{const a=e.length;for(let o=0;o<a;o++){const c=e[o];Bj(c,t,n,i)}},Bj=(e,t,n,i)=>{if(typeof e=="string"){jj(e,t,n);return}if(typeof e=="function"){Fj(e,t,n,i);return}Uj(e,t,n,i)},jj=(e,t,n)=>{const i=e===""?t:rM(t,e);i.classGroupId=n},Fj=(e,t,n,i)=>{if(Vj(e)){Mx(e(i),t,n,i);return}t.validators===null&&(t.validators=[]),t.validators.push(zj(n,e))},Uj=(e,t,n,i)=>{const a=Object.entries(e),o=a.length;for(let c=0;c<o;c++){const[d,h]=a[c];Mx(h,rM(t,d),n,i)}},rM=(e,t)=>{let n=e;const i=t.split(Bp),a=i.length;for(let o=0;o<a;o++){const c=i[o];let d=n.nextPart.get(c);d||(d=eM(),n.nextPart.set(c,d)),n=d}return n},Vj=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Hj=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),i=Object.create(null);const a=(o,c)=>{n[o]=c,t++,t>e&&(t=0,i=n,n=Object.create(null))};return{get(o){let c=n[o];if(c!==void 0)return c;if((c=i[o])!==void 0)return a(o,c),c},set(o,c){o in n?n[o]=c:a(o,c)}}},Rx="!",sM=":",Gj=[],aM=(e,t,n,i,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:i,isExternal:a}),Yj=e=>{const{prefix:t,experimentalParseClassName:n}=e;let i=a=>{const o=[];let c=0,d=0,h=0,m;const b=a.length;for(let N=0;N<b;N++){const z=a[N];if(c===0&&d===0){if(z===sM){o.push(a.slice(h,N)),h=N+1;continue}if(z==="/"){m=N;continue}}z==="["?c++:z==="]"?c--:z==="("?d++:z===")"&&d--}const y=o.length===0?a:a.slice(h);let T=y,k=!1;y.endsWith(Rx)?(T=y.slice(0,-1),k=!0):y.startsWith(Rx)&&(T=y.slice(1),k=!0);const R=m&&m>h?m-h:void 0;return aM(o,k,T,R)};if(t){const a=t+sM,o=i;i=c=>c.startsWith(a)?o(c.slice(a.length)):aM(Gj,!1,c,void 0,!0)}if(n){const a=i;i=o=>n({className:o,parseClassName:a})}return i},Wj=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,i)=>{t.set(n,1e6+i)}),n=>{const i=[];let a=[];for(let o=0;o<n.length;o++){const c=n[o],d=c[0]==="[",h=t.has(c);d||h?(a.length>0&&(a.sort(),i.push(...a),a=[]),i.push(c)):a.push(c)}return a.length>0&&(a.sort(),i.push(...a)),i}},Kj=e=>({cache:Hj(e.cacheSize),parseClassName:Yj(e),sortModifiers:Wj(e),postfixLookupClassGroupIds:Xj(e),...Oj(e)}),Xj=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let i=0;i<n.length;i++)t[n[i]]=!0;return t},Qj=/\s+/,Zj=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:a,sortModifiers:o,postfixLookupClassGroupIds:c}=t,d=[],h=e.trim().split(Qj);let m="";for(let b=h.length-1;b>=0;b-=1){const y=h[b],{isExternal:T,modifiers:k,hasImportantModifier:R,baseClassName:N,maybePostfixModifierPosition:z}=n(y);if(T){m=y+(m.length>0?" "+m:m);continue}let L=!!z,I;if(L){const et=N.substring(0,z);I=i(et);const q=I&&c[I]?i(N):void 0;q&&q!==I&&(I=q,L=!1)}else I=i(N);if(!I){if(!L){m=y+(m.length>0?" "+m:m);continue}if(I=i(N),!I){m=y+(m.length>0?" "+m:m);continue}L=!1}const F=k.length===0?"":k.length===1?k[0]:o(k).join(":"),B=R?F+Rx:F,Y=B+I;if(d.indexOf(Y)>-1)continue;d.push(Y);const Z=a(I,L);for(let et=0;et<Z.length;++et){const q=Z[et];d.push(B+q)}m=y+(m.length>0?" "+m:m)}return m},Jj=(...e)=>{let t=0,n,i,a="";for(;t<e.length;)(n=e[t++])&&(i=oM(n))&&(a&&(a+=" "),a+=i);return a},oM=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=oM(e[i]))&&(n&&(n+=" "),n+=t);return n},qj=(e,...t)=>{let n,i,a,o;const c=h=>{const m=t.reduce((b,y)=>y(b),e());return n=Kj(m),i=n.cache.get,a=n.cache.set,o=d,d(h)},d=h=>{const m=i(h);if(m)return m;const b=Zj(h,n);return a(h,b),b};return o=c,(...h)=>o(Jj(...h))},$j=[],Mi=e=>{const t=n=>n[e]||$j;return t.isThemeGetter=!0,t},lM=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,cM=/^\((?:(\w[\w-]*):)?(.+)\)$/i,tF=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,eF=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nF=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,iF=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,rF=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,sF=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,lc=e=>tF.test(e),ke=e=>!!e&&!Number.isNaN(Number(e)),ho=e=>!!e&&Number.isInteger(Number(e)),kx=e=>e.endsWith("%")&&ke(e.slice(0,-1)),ul=e=>eF.test(e),uM=()=>!0,aF=e=>nF.test(e)&&!iF.test(e),_x=()=>!1,oF=e=>rF.test(e),lF=e=>sF.test(e),cF=e=>!Zt(e)&&!Jt(e),uF=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),dF=e=>cc(e,pM,_x),Zt=e=>lM.test(e),td=e=>cc(e,vM,aF),dM=e=>cc(e,bF,ke),hF=e=>cc(e,bM,uM),fF=e=>cc(e,yM,_x),hM=e=>cc(e,mM,_x),mF=e=>cc(e,gM,lF),jp=e=>cc(e,xM,oF),Jt=e=>cM.test(e),im=e=>ed(e,vM),gF=e=>ed(e,yM),fM=e=>ed(e,mM),pF=e=>ed(e,pM),vF=e=>ed(e,gM),Fp=e=>ed(e,xM,!0),yF=e=>ed(e,bM,!0),cc=(e,t,n)=>{const i=lM.exec(e);return i?i[1]?t(i[1]):n(i[2]):!1},ed=(e,t,n=!1)=>{const i=cM.exec(e);return i?i[1]?t(i[1]):n:!1},mM=e=>e==="position"||e==="percentage",gM=e=>e==="image"||e==="url",pM=e=>e==="length"||e==="size"||e==="bg-size",vM=e=>e==="length",bF=e=>e==="number",yM=e=>e==="family-name",bM=e=>e==="number"||e==="weight",xM=e=>e==="shadow",xF=qj(()=>{const e=Mi("color"),t=Mi("font"),n=Mi("text"),i=Mi("font-weight"),a=Mi("tracking"),o=Mi("leading"),c=Mi("breakpoint"),d=Mi("container"),h=Mi("spacing"),m=Mi("radius"),b=Mi("shadow"),y=Mi("inset-shadow"),T=Mi("text-shadow"),k=Mi("drop-shadow"),R=Mi("blur"),N=Mi("perspective"),z=Mi("aspect"),L=Mi("ease"),I=Mi("animate"),F=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Y=()=>[...B(),Jt,Zt],Z=()=>["auto","hidden","clip","visible","scroll"],et=()=>["auto","contain","none"],q=()=>[Jt,Zt,h],nt=()=>[lc,"full","auto",...q()],ot=()=>[ho,"none","subgrid",Jt,Zt],Ct=()=>["auto",{span:["full",ho,Jt,Zt]},ho,Jt,Zt],ct=()=>[ho,"auto",Jt,Zt],mt=()=>["auto","min","max","fr",Jt,Zt],Rt=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ut=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",...q()],J=()=>[lc,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...q()],ht=()=>[lc,"screen","full","dvw","lvw","svw","min","max","fit",...q()],Tt=()=>[lc,"screen","full","lh","dvh","lvh","svh","min","max","fit",...q()],K=()=>[e,Jt,Zt],U=()=>[...B(),fM,hM,{position:[Jt,Zt]}],X=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ft=()=>["auto","cover","contain",pF,dF,{size:[Jt,Zt]}],yt=()=>[kx,im,td],tt=()=>["","none","full",m,Jt,Zt],bt=()=>["",ke,im,td],zt=()=>["solid","dashed","dotted","double"],Dt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Mt=()=>[ke,kx,fM,hM],Yt=()=>["","none",R,Jt,Zt],Qt=()=>["none",ke,Jt,Zt],ne=()=>["none",ke,Jt,Zt],Ut=()=>[ke,Jt,Zt],Ce=()=>[lc,"full",...q()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ul],breakpoint:[ul],color:[uM],container:[ul],"drop-shadow":[ul],ease:["in","out","in-out"],font:[cF],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ul],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ul],shadow:[ul],spacing:["px",ke],text:[ul],"text-shadow":[ul],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",lc,Zt,Jt,z]}],container:["container"],"container-type":[{"@container":["","normal","size",Jt,Zt]}],"container-named":[uF],columns:[{columns:[ke,Zt,Jt,d]}],"break-after":[{"break-after":F()}],"break-before":[{"break-before":F()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:Y()}],overflow:[{overflow:Z()}],"overflow-x":[{"overflow-x":Z()}],"overflow-y":[{"overflow-y":Z()}],overscroll:[{overscroll:et()}],"overscroll-x":[{"overscroll-x":et()}],"overscroll-y":[{"overscroll-y":et()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:nt()}],"inset-x":[{"inset-x":nt()}],"inset-y":[{"inset-y":nt()}],start:[{"inset-s":nt(),start:nt()}],end:[{"inset-e":nt(),end:nt()}],"inset-bs":[{"inset-bs":nt()}],"inset-be":[{"inset-be":nt()}],top:[{top:nt()}],right:[{right:nt()}],bottom:[{bottom:nt()}],left:[{left:nt()}],visibility:["visible","invisible","collapse"],z:[{z:[ho,"auto",Jt,Zt]}],basis:[{basis:[lc,"full","auto",d,...q()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ke,lc,"auto","initial","none",Zt]}],grow:[{grow:["",ke,Jt,Zt]}],shrink:[{shrink:["",ke,Jt,Zt]}],order:[{order:[ho,"first","last","none",Jt,Zt]}],"grid-cols":[{"grid-cols":ot()}],"col-start-end":[{col:Ct()}],"col-start":[{"col-start":ct()}],"col-end":[{"col-end":ct()}],"grid-rows":[{"grid-rows":ot()}],"row-start-end":[{row:Ct()}],"row-start":[{"row-start":ct()}],"row-end":[{"row-end":ct()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":mt()}],"auto-rows":[{"auto-rows":mt()}],gap:[{gap:q()}],"gap-x":[{"gap-x":q()}],"gap-y":[{"gap-y":q()}],"justify-content":[{justify:[...Rt(),"normal"]}],"justify-items":[{"justify-items":[...ut(),"normal"]}],"justify-self":[{"justify-self":["auto",...ut()]}],"align-content":[{content:["normal",...Rt()]}],"align-items":[{items:[...ut(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ut(),{baseline:["","last"]}]}],"place-content":[{"place-content":Rt()}],"place-items":[{"place-items":[...ut(),"baseline"]}],"place-self":[{"place-self":["auto",...ut()]}],p:[{p:q()}],px:[{px:q()}],py:[{py:q()}],ps:[{ps:q()}],pe:[{pe:q()}],pbs:[{pbs:q()}],pbe:[{pbe:q()}],pt:[{pt:q()}],pr:[{pr:q()}],pb:[{pb:q()}],pl:[{pl:q()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mbs:[{mbs:j()}],mbe:[{mbe:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":q()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":q()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],"inline-size":[{inline:["auto",...ht()]}],"min-inline-size":[{"min-inline":["auto",...ht()]}],"max-inline-size":[{"max-inline":["none",...ht()]}],"block-size":[{block:["auto",...Tt()]}],"min-block-size":[{"min-block":["auto",...Tt()]}],"max-block-size":[{"max-block":["none",...Tt()]}],w:[{w:[d,"screen",...J()]}],"min-w":[{"min-w":[d,"screen","none",...J()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...J()]}],h:[{h:["screen","lh",...J()]}],"min-h":[{"min-h":["screen","lh","none",...J()]}],"max-h":[{"max-h":["screen","lh",...J()]}],"font-size":[{text:["base",n,im,td]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,yF,hF]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",kx,Zt]}],"font-family":[{font:[gF,fF,t]}],"font-features":[{"font-features":[Zt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,Jt,Zt]}],"line-clamp":[{"line-clamp":[ke,"none",Jt,dM]}],leading:[{leading:[o,...q()]}],"list-image":[{"list-image":["none",Jt,Zt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Jt,Zt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:K()}],"text-color":[{text:K()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...zt(),"wavy"]}],"text-decoration-thickness":[{decoration:[ke,"from-font","auto",Jt,td]}],"text-decoration-color":[{decoration:K()}],"underline-offset":[{"underline-offset":[ke,"auto",Jt,Zt]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:q()}],"tab-size":[{tab:[ho,Jt,Zt]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Jt,Zt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Jt,Zt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:U()}],"bg-repeat":[{bg:X()}],"bg-size":[{bg:ft()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ho,Jt,Zt],radial:["",Jt,Zt],conic:[ho,Jt,Zt]},vF,mF]}],"bg-color":[{bg:K()}],"gradient-from-pos":[{from:yt()}],"gradient-via-pos":[{via:yt()}],"gradient-to-pos":[{to:yt()}],"gradient-from":[{from:K()}],"gradient-via":[{via:K()}],"gradient-to":[{to:K()}],rounded:[{rounded:tt()}],"rounded-s":[{"rounded-s":tt()}],"rounded-e":[{"rounded-e":tt()}],"rounded-t":[{"rounded-t":tt()}],"rounded-r":[{"rounded-r":tt()}],"rounded-b":[{"rounded-b":tt()}],"rounded-l":[{"rounded-l":tt()}],"rounded-ss":[{"rounded-ss":tt()}],"rounded-se":[{"rounded-se":tt()}],"rounded-ee":[{"rounded-ee":tt()}],"rounded-es":[{"rounded-es":tt()}],"rounded-tl":[{"rounded-tl":tt()}],"rounded-tr":[{"rounded-tr":tt()}],"rounded-br":[{"rounded-br":tt()}],"rounded-bl":[{"rounded-bl":tt()}],"border-w":[{border:bt()}],"border-w-x":[{"border-x":bt()}],"border-w-y":[{"border-y":bt()}],"border-w-s":[{"border-s":bt()}],"border-w-e":[{"border-e":bt()}],"border-w-bs":[{"border-bs":bt()}],"border-w-be":[{"border-be":bt()}],"border-w-t":[{"border-t":bt()}],"border-w-r":[{"border-r":bt()}],"border-w-b":[{"border-b":bt()}],"border-w-l":[{"border-l":bt()}],"divide-x":[{"divide-x":bt()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":bt()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...zt(),"hidden","none"]}],"divide-style":[{divide:[...zt(),"hidden","none"]}],"border-color":[{border:K()}],"border-color-x":[{"border-x":K()}],"border-color-y":[{"border-y":K()}],"border-color-s":[{"border-s":K()}],"border-color-e":[{"border-e":K()}],"border-color-bs":[{"border-bs":K()}],"border-color-be":[{"border-be":K()}],"border-color-t":[{"border-t":K()}],"border-color-r":[{"border-r":K()}],"border-color-b":[{"border-b":K()}],"border-color-l":[{"border-l":K()}],"divide-color":[{divide:K()}],"outline-style":[{outline:[...zt(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ke,Jt,Zt]}],"outline-w":[{outline:["",ke,im,td]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","none",b,Fp,jp]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",y,Fp,jp]}],"inset-shadow-color":[{"inset-shadow":K()}],"ring-w":[{ring:bt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:K()}],"ring-offset-w":[{"ring-offset":[ke,td]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":bt()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",T,Fp,jp]}],"text-shadow-color":[{"text-shadow":K()}],opacity:[{opacity:[ke,Jt,Zt]}],"mix-blend":[{"mix-blend":[...Dt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Dt()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ke]}],"mask-image-linear-from-pos":[{"mask-linear-from":Mt()}],"mask-image-linear-to-pos":[{"mask-linear-to":Mt()}],"mask-image-linear-from-color":[{"mask-linear-from":K()}],"mask-image-linear-to-color":[{"mask-linear-to":K()}],"mask-image-t-from-pos":[{"mask-t-from":Mt()}],"mask-image-t-to-pos":[{"mask-t-to":Mt()}],"mask-image-t-from-color":[{"mask-t-from":K()}],"mask-image-t-to-color":[{"mask-t-to":K()}],"mask-image-r-from-pos":[{"mask-r-from":Mt()}],"mask-image-r-to-pos":[{"mask-r-to":Mt()}],"mask-image-r-from-color":[{"mask-r-from":K()}],"mask-image-r-to-color":[{"mask-r-to":K()}],"mask-image-b-from-pos":[{"mask-b-from":Mt()}],"mask-image-b-to-pos":[{"mask-b-to":Mt()}],"mask-image-b-from-color":[{"mask-b-from":K()}],"mask-image-b-to-color":[{"mask-b-to":K()}],"mask-image-l-from-pos":[{"mask-l-from":Mt()}],"mask-image-l-to-pos":[{"mask-l-to":Mt()}],"mask-image-l-from-color":[{"mask-l-from":K()}],"mask-image-l-to-color":[{"mask-l-to":K()}],"mask-image-x-from-pos":[{"mask-x-from":Mt()}],"mask-image-x-to-pos":[{"mask-x-to":Mt()}],"mask-image-x-from-color":[{"mask-x-from":K()}],"mask-image-x-to-color":[{"mask-x-to":K()}],"mask-image-y-from-pos":[{"mask-y-from":Mt()}],"mask-image-y-to-pos":[{"mask-y-to":Mt()}],"mask-image-y-from-color":[{"mask-y-from":K()}],"mask-image-y-to-color":[{"mask-y-to":K()}],"mask-image-radial":[{"mask-radial":[Jt,Zt]}],"mask-image-radial-from-pos":[{"mask-radial-from":Mt()}],"mask-image-radial-to-pos":[{"mask-radial-to":Mt()}],"mask-image-radial-from-color":[{"mask-radial-from":K()}],"mask-image-radial-to-color":[{"mask-radial-to":K()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":B()}],"mask-image-conic-pos":[{"mask-conic":[ke]}],"mask-image-conic-from-pos":[{"mask-conic-from":Mt()}],"mask-image-conic-to-pos":[{"mask-conic-to":Mt()}],"mask-image-conic-from-color":[{"mask-conic-from":K()}],"mask-image-conic-to-color":[{"mask-conic-to":K()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:U()}],"mask-repeat":[{mask:X()}],"mask-size":[{mask:ft()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Jt,Zt]}],filter:[{filter:["","none",Jt,Zt]}],blur:[{blur:Yt()}],brightness:[{brightness:[ke,Jt,Zt]}],contrast:[{contrast:[ke,Jt,Zt]}],"drop-shadow":[{"drop-shadow":["","none",k,Fp,jp]}],"drop-shadow-color":[{"drop-shadow":K()}],grayscale:[{grayscale:["",ke,Jt,Zt]}],"hue-rotate":[{"hue-rotate":[ke,Jt,Zt]}],invert:[{invert:["",ke,Jt,Zt]}],saturate:[{saturate:[ke,Jt,Zt]}],sepia:[{sepia:["",ke,Jt,Zt]}],"backdrop-filter":[{"backdrop-filter":["","none",Jt,Zt]}],"backdrop-blur":[{"backdrop-blur":Yt()}],"backdrop-brightness":[{"backdrop-brightness":[ke,Jt,Zt]}],"backdrop-contrast":[{"backdrop-contrast":[ke,Jt,Zt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ke,Jt,Zt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ke,Jt,Zt]}],"backdrop-invert":[{"backdrop-invert":["",ke,Jt,Zt]}],"backdrop-opacity":[{"backdrop-opacity":[ke,Jt,Zt]}],"backdrop-saturate":[{"backdrop-saturate":[ke,Jt,Zt]}],"backdrop-sepia":[{"backdrop-sepia":["",ke,Jt,Zt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":q()}],"border-spacing-x":[{"border-spacing-x":q()}],"border-spacing-y":[{"border-spacing-y":q()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Jt,Zt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ke,"initial",Jt,Zt]}],ease:[{ease:["linear","initial",L,Jt,Zt]}],delay:[{delay:[ke,Jt,Zt]}],animate:[{animate:["none",I,Jt,Zt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[N,Jt,Zt]}],"perspective-origin":[{"perspective-origin":Y()}],rotate:[{rotate:Qt()}],"rotate-x":[{"rotate-x":Qt()}],"rotate-y":[{"rotate-y":Qt()}],"rotate-z":[{"rotate-z":Qt()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:Ut()}],"skew-x":[{"skew-x":Ut()}],"skew-y":[{"skew-y":Ut()}],transform:[{transform:[Jt,Zt,"","none","gpu","cpu"]}],"transform-origin":[{origin:Y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ce()}],"translate-x":[{"translate-x":Ce()}],"translate-y":[{"translate-y":Ce()}],"translate-z":[{"translate-z":Ce()}],"translate-none":["translate-none"],zoom:[{zoom:[ho,Jt,Zt]}],accent:[{accent:K()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:K()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Jt,Zt]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":K()}],"scrollbar-track-color":[{"scrollbar-track":K()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":q()}],"scroll-mx":[{"scroll-mx":q()}],"scroll-my":[{"scroll-my":q()}],"scroll-ms":[{"scroll-ms":q()}],"scroll-me":[{"scroll-me":q()}],"scroll-mbs":[{"scroll-mbs":q()}],"scroll-mbe":[{"scroll-mbe":q()}],"scroll-mt":[{"scroll-mt":q()}],"scroll-mr":[{"scroll-mr":q()}],"scroll-mb":[{"scroll-mb":q()}],"scroll-ml":[{"scroll-ml":q()}],"scroll-p":[{"scroll-p":q()}],"scroll-px":[{"scroll-px":q()}],"scroll-py":[{"scroll-py":q()}],"scroll-ps":[{"scroll-ps":q()}],"scroll-pe":[{"scroll-pe":q()}],"scroll-pbs":[{"scroll-pbs":q()}],"scroll-pbe":[{"scroll-pbe":q()}],"scroll-pt":[{"scroll-pt":q()}],"scroll-pr":[{"scroll-pr":q()}],"scroll-pb":[{"scroll-pb":q()}],"scroll-pl":[{"scroll-pl":q()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Jt,Zt]}],fill:[{fill:["none",...K()]}],"stroke-w":[{stroke:[ke,im,td,dM]}],stroke:[{stroke:["none",...K()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function At(...e){return xF(qE(e))}const wF=mE,SF=gE,wM=M.createContext("default"),SM="z-50 min-w-[10rem] rounded-[12px] border border-[var(--acr-border-soft)] bg-[var(--acr-surface)] p-1.5 text-foreground backdrop-blur-xl shadow-[0_8px_28px_rgba(0,0,0,0.18)] outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",Up=uo("group/mi relative flex cursor-default select-none items-center rounded-[6px] px-2 outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-40 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{size:{default:"gap-2 py-1 text-[13px] leading-4 [&_svg]:size-4 data-[inset]:pl-8",sm:"gap-2 py-1 text-[11px] leading-[14px] [&_svg]:size-3.5 data-[inset]:pl-7",xs:"gap-1.5 py-[3px] text-[10px] leading-[13px] [&_svg]:size-3 data-[inset]:pl-6"}},defaultVariants:{size:"default"}}),Vp="data-[highlighted]:bg-[var(--primary)] data-[highlighted]:text-primary-foreground";function Hp(){return M.useContext(wM)}const CM=M.forwardRef(({className:e,size:t="default",children:n,...i},a)=>w.jsx(wM.Provider,{value:t,children:w.jsx(Np,{children:w.jsx(pE,{ref:a,"data-slot":"dropdown-menu-content",sideOffset:4,className:At(SM,e),...i,children:n})})}));CM.displayName="DropdownMenuContent";const Ax=M.forwardRef(({className:e,inset:t,variant:n="default",...i},a)=>{const o=Hp();return w.jsx(yE,{ref:a,"data-slot":"dropdown-menu-item","data-inset":t||void 0,"data-variant":n,className:At(Up({size:o}),n==="default"?Vp:"data-[highlighted]:bg-destructive/15 data-[highlighted]:text-destructive",e),...i})});Ax.displayName="DropdownMenuItem";const CF=M.forwardRef(({className:e,children:t,checked:n,...i},a)=>{const o=Hp();return w.jsxs(bE,{ref:a,"data-slot":"dropdown-menu-checkbox-item",className:At(Up({size:o}),"relative pl-8",Vp,e),checked:n,...i,children:[w.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:w.jsx(zp,{children:w.jsx(Ip,{className:"size-3.5"})})}),t]})});CF.displayName="DropdownMenuCheckboxItem";const TF=M.forwardRef(({className:e,children:t,...n},i)=>{const a=Hp();return w.jsxs(xE,{ref:i,"data-slot":"dropdown-menu-radio-item",className:At(Up({size:a}),"relative pl-8",Vp,e),...n,children:[w.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:w.jsx(zp,{children:w.jsx(KE,{className:"size-2 fill-current"})})}),t]})});TF.displayName="DropdownMenuRadioItem";const EF=M.forwardRef(({className:e,inset:t,...n},i)=>w.jsx(vE,{ref:i,"data-slot":"dropdown-menu-label","data-inset":t||void 0,className:At("px-2 py-1.5 text-[10px] font-medium text-muted-foreground/70 data-[inset]:pl-8",e),...n}));EF.displayName="DropdownMenuLabel";const MF=M.forwardRef(({className:e,...t},n)=>w.jsx(wE,{ref:n,"data-slot":"dropdown-menu-separator",className:At("-mx-1 my-1 h-px bg-[var(--acr-border-soft)]",e),...t}));MF.displayName="DropdownMenuSeparator";const RF=M.forwardRef(({className:e,inset:t,children:n,...i},a)=>{const o=Hp();return w.jsxs(SE,{ref:a,"data-slot":"dropdown-menu-sub-trigger","data-inset":t||void 0,className:At(Up({size:o}),"data-[state=open]:bg-[var(--acr-hover)] data-[state=open]:text-foreground",Vp,e),...i,children:[n,w.jsx($u,{className:"ml-auto"})]})});RF.displayName="DropdownMenuSubTrigger";const kF=M.forwardRef(({className:e,...t},n)=>w.jsx(Np,{children:w.jsx(CE,{ref:n,"data-slot":"dropdown-menu-sub-content",className:At(SM,e),...t})}));kF.displayName="DropdownMenuSubContent";const _F=uo("inline-flex shrink-0 select-none items-center justify-center whitespace-nowrap font-medium transition-[background-color,box-shadow,filter,opacity,scale] [transition-timing-function:var(--acr-spring-default)] [transition-duration:var(--acr-spring-default-duration)] active:scale-[0.97] outline-none focus-visible:ring-2 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-40 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-sm hover:brightness-110 active:brightness-95",secondary:"bg-primary/10 text-primary hover:bg-primary/15 active:bg-primary/20",destructive:"bg-destructive/25 text-destructive hover:bg-destructive/35 active:bg-destructive/45",neutral:"bg-[var(--acr-chip)] text-foreground hover:bg-[var(--acr-chip-hover)]",ghost:"bg-transparent text-foreground hover:bg-[var(--acr-chip)] active:bg-[var(--acr-chip-hover)]",link:"bg-transparent text-primary hover:underline hover:underline-offset-4 active:opacity-80 active:scale-100"},size:{mini:"h-4 gap-1 rounded-[4px] px-[7px] text-[10px] [letter-spacing:var(--text-footnote-tracking)] [&_svg]:size-3",small:"h-5 gap-1 rounded-[5px] px-[10px] text-[11px] [letter-spacing:var(--text-subheadline-tracking)] [&_svg]:size-3",medium:"h-6 gap-1 rounded-[6px] px-4 text-[13px] [letter-spacing:var(--text-body-tracking)] [&_svg]:size-3.5",large:"h-7 gap-1 rounded-[14px] px-4 text-[13px] [letter-spacing:var(--text-body-tracking)] [&_svg]:size-4",xl:"h-9 gap-1 rounded-[18px] px-4 text-[13px] [letter-spacing:var(--text-body-tracking)] [&_svg]:size-[18px]"},icon:{true:"rounded-full p-0",false:""}},compoundVariants:[{icon:!0,size:"mini",class:"size-4 [&_svg]:size-3"},{icon:!0,size:"small",class:"size-5 [&_svg]:size-3.5"},{icon:!0,size:"medium",class:"size-6 [&_svg]:size-4"},{icon:!0,size:"large",class:"size-7 [&_svg]:size-[18px]"},{icon:!0,size:"xl",class:"size-9 [&_svg]:size-[22px]"}],defaultVariants:{variant:"default",size:"medium",icon:!1}}),Sn=M.forwardRef(({className:e,variant:t,size:n,icon:i,asChild:a=!1,...o},c)=>{const d=a?Vf:"button";return w.jsx(d,{ref:c,"data-slot":"button","data-variant":t,"data-size":n,"data-icon":i||void 0,className:At(_F({variant:t,size:n,icon:i,className:e})),...o})});Sn.displayName="Button";const AF="[role=dialog][data-state=open],[role=alertdialog][data-state=open]";let Ch=null,Gp=0;function Yp(){const e=document.querySelector(AF)!=null;document.documentElement.classList.toggle("modal-acrylic",e)}function NF(){Gp+=1,Ch||(Ch=new MutationObserver(Yp),Ch.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-state"]})),Yp()}function zF(){Gp=Math.max(0,Gp-1),queueMicrotask(Yp),Gp===0&&Ch&&(Ch.disconnect(),Ch=null,queueMicrotask(Yp))}function DF(){M.useEffect(()=>(NF(),zF),[])}function TM(){return DF(),M.createElement("span",{"aria-hidden":!0,style:{display:"none"}})}const nd=Lb,OF=Ib,EM=M.forwardRef(({className:e,...t},n)=>w.jsx(up,{ref:n,className:At("fixed inset-0 z-50 bg-[var(--acr-overlay)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,style:{backdropFilter:"blur(20px) saturate(1.3)",WebkitBackdropFilter:"blur(20px) saturate(1.3)"}}));EM.displayName=up.displayName;const uc=M.forwardRef(({className:e,children:t,showCloseButton:n=!0,...i},a)=>w.jsxs(OF,{children:[w.jsx(EM,{}),w.jsxs(dp,{ref:a,onOpenAutoFocus:o=>o.preventDefault(),className:At("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg [&>*]:min-w-0 translate-x-[-50%] translate-y-[-50%] gap-4 rounded-[20px] bg-[var(--acr-panel)] backdrop-blur-xl p-6 shadow-[0_0_0_1px_rgba(190,190,190,0.16),0_16px_48px_rgba(0,0,0,0.45)] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",e),...i,children:[w.jsx(TM,{}),t,n&&w.jsx(hT,{asChild:!0,children:w.jsxs(Sn,{variant:"ghost",icon:!0,"aria-label":"Close",className:"absolute right-3 top-3 text-muted-foreground",children:[w.jsx(Ex,{}),w.jsx("span",{className:"sr-only",children:"Close"})]})})]})]}));uc.displayName=dp.displayName;const Th=({className:e,...t})=>w.jsx("div",{className:At("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Th.displayName="DialogHeader";const Wp=({className:e,...t})=>w.jsx("div",{className:At("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Wp.displayName="DialogFooter";const dc=M.forwardRef(({className:e,...t},n)=>w.jsx(jb,{ref:n,className:At("text-lg font-semibold leading-none tracking-tight",e),...t}));dc.displayName=jb.displayName;const Eh=M.forwardRef(({className:e,...t},n)=>w.jsx(dT,{ref:n,className:At("text-sm text-muted-foreground",e),...t}));Eh.displayName=dT.displayName;function PF(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}Array(12).fill(0);let Nx=1;class LF{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:i,...a}=t,o=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Nx++,c=this.toasts.find(h=>h.id===o),d=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),c?this.toasts=this.toasts.map(h=>h.id===o?(this.publish({...h,...t,id:o,title:i}),{...h,...t,id:o,dismissible:d,title:i}):h):this.addToast({title:i,...a,dismissible:d,id:o}),o},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(i=>i({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let i;n.loading!==void 0&&(i=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const a=Promise.resolve(t instanceof Function?t():t);let o=i!==void 0,c;const d=a.then(async m=>{if(c=["resolve",m],Zd.isValidElement(m))o=!1,this.create({id:i,type:"default",message:m});else if(BF(m)&&!m.ok){o=!1;const y=typeof n.error=="function"?await n.error(`HTTP error! status: ${m.status}`):n.error,T=typeof n.description=="function"?await n.description(`HTTP error! status: ${m.status}`):n.description,R=typeof y=="object"&&!Zd.isValidElement(y)?y:{message:y};this.create({id:i,type:"error",description:T,...R})}else if(m instanceof Error){o=!1;const y=typeof n.error=="function"?await n.error(m):n.error,T=typeof n.description=="function"?await n.description(m):n.description,R=typeof y=="object"&&!Zd.isValidElement(y)?y:{message:y};this.create({id:i,type:"error",description:T,...R})}else if(n.success!==void 0){o=!1;const y=typeof n.success=="function"?await n.success(m):n.success,T=typeof n.description=="function"?await n.description(m):n.description,R=typeof y=="object"&&!Zd.isValidElement(y)?y:{message:y};this.create({id:i,type:"success",description:T,...R})}}).catch(async m=>{if(c=["reject",m],n.error!==void 0){o=!1;const b=typeof n.error=="function"?await n.error(m):n.error,y=typeof n.description=="function"?await n.description(m):n.description,k=typeof b=="object"&&!Zd.isValidElement(b)?b:{message:b};this.create({id:i,type:"error",description:y,...k})}}).finally(()=>{o&&(this.dismiss(i),i=void 0),n.finally==null||n.finally.call(n)}),h=()=>new Promise((m,b)=>d.then(()=>c[0]==="reject"?b(c[1]):m(c[1])).catch(b));return typeof i!="string"&&typeof i!="number"?{unwrap:h}:Object.assign(i,{unwrap:h})},this.custom=(t,n)=>{const i=(n==null?void 0:n.id)||Nx++;return this.create({jsx:t(i),id:i,...n}),i},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Zs=new LF,IF=(e,t)=>{const n=(t==null?void 0:t.id)||Nx++;return Zs.addToast({title:e,...t,id:n}),n},BF=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",jF=IF,FF=()=>Zs.toasts,UF=()=>Zs.getActiveToasts(),xa=Object.assign(jF,{success:Zs.success,info:Zs.info,warning:Zs.warning,error:Zs.error,custom:Zs.custom,message:Zs.message,promise:Zs.promise,dismiss:Zs.dismiss,loading:Zs.loading},{getHistory:FF,getToasts:UF});PF("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function rm(e,t){const n=e==="icon",i=n?"group/toast-icon !pl-4 !gap-2.5":"group/toast-img !pl-[10px] !gap-1.5";if(!t)return{className:i,classNames:{icon:n?"!size-5 [&_svg]:!size-5":"!size-8"},style:{"--loader-size":n?"20px":"32px"}};const{className:a,classNames:o={},style:c,...d}=t;return{...d,className:At(i,a),classNames:{...o,icon:At(n?"!size-5 [&_svg]:!size-5":"!size-8",o.icon)},style:{"--loader-size":n?"20px":"32px",...c}}}const VF=(e,t)=>{const n=(t==null?void 0:t.variant)||(t!=null&&t.icon?"img":void 0),i=n?rm(n,t):t;return xa(e,i)},Mh=(e,t)=>(n,i)=>{const a=(i==null?void 0:i.variant)||t,o=rm(a,i);return e(n,o)},Vn=Object.assign(VF,{success:Mh(xa.success,"icon"),error:Mh(xa.error,"icon"),warning:Mh(xa.warning,"icon"),info:Mh(xa.info,"icon"),loading:Mh(xa.loading,"icon"),custom:xa.custom,dismiss:xa.dismiss,message:Mh(xa.message,"img"),promise:(e,t)=>{if(!t)return xa.promise(e,t);const{loading:n,success:i,error:a,...o}=t,c=o.variant||"icon",d=rm(c,o),h=(m,b)=>{if(typeof m=="string"||M.isValidElement(m))return m;if(m&&typeof m=="object"){const y=m.variant||b;return rm(y,m)}return typeof m=="function"?y=>{const T=m(y);if(typeof T=="string"||M.isValidElement(T))return T;if(T&&typeof T=="object"){const k=T.variant||b;return rm(k,T)}return T}:m};return xa.promise(e,{loading:h(n,"icon"),success:h(i,"icon"),error:h(a,"icon"),...d})}}),MM=uo(At("flex w-full min-w-0 border border-[var(--acr-input-border)] bg-[var(--acr-input)] text-foreground outline-none","transition-[color,background-color,border-color,box-shadow] [transition-timing-function:var(--acr-spring-default)] [transition-duration:var(--acr-spring-default-duration)]","placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground","hover:border-[var(--acr-border)] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/25","disabled:cursor-not-allowed disabled:opacity-50","file:inline-flex file:border-0 file:bg-transparent file:font-medium file:text-foreground"),{variants:{size:{mini:"h-4 rounded-[4px] px-1.5 text-[10px] [letter-spacing:var(--text-footnote-tracking)]",small:"h-5 rounded-[5px] px-1.5 text-[11px] [letter-spacing:var(--text-subheadline-tracking)]",medium:"h-6 rounded-[6px] px-2 text-[13px]",large:"h-7 rounded-[7px] px-2 text-[15px]",xl:"h-9 rounded-[9px] px-2.5 text-[17px] [letter-spacing:var(--text-title2-tracking)]"}},defaultVariants:{size:"medium"}});function dl({className:e,type:t,size:n,...i}){return w.jsx("input",{type:t,"data-slot":"input","data-size":n,className:At(MM({size:n,className:e})),...i})}function HF({conn:e,mode:t,root:n,seededBundle:i}){const[a,o]=M.useState(!1),[c,d]=M.useState([]),[h,m]=M.useState(null),[b,y]=M.useState(""),[T,k]=M.useState([]),[R,N]=M.useState(new Set),[z,L]=M.useState([]),[I,F]=M.useState(new Set),B=async ot=>{o(!0);try{m(await Ie.sharing.importBundle(e,ot))}catch(Ct){Vn.error(`导入失败:${Ct.message}`)}finally{o(!1)}},Y=async(ot,Ct)=>{if(h){try{await Ie.sharing.decide(e,h.id,ot.id,Ct)}catch(ct){Vn[ct instanceof Jl&&ct.status===409?"warning":"error"](`处理失败:${ct.message}`)}m(await Ie.sharing.importRun(e,h.id).catch(()=>h))}};M.useEffect(()=>{t==="import"&&i&&B({bundle:i}),t==="export"&&(Ie.providers(e).then(ot=>k(ot.filter(Ct=>Ct.system!==!0))).catch(()=>k([])),Ie.netdisk.list(e).then(ot=>L(ot)).catch(()=>L([])))},[]);const Z=async()=>{var ot;if(n){o(!0);try{const Ct={...R.size?{providerIds:[...R]}:{},...I.size?{netdiskBindingIds:[...I]}:{}},{bundle:ct,warnings:mt}=await Ie.sharing.exportBundle(e,n,void 0,Object.keys(Ct).length?Ct:void 0);d(mt);const Rt=JSON.stringify(ct,null,2),ut=String(((ot=ct.meta)==null?void 0:ot.title)??"stream"),j=new Blob([Rt],{type:"application/json"}),J=URL.createObjectURL(j),ht=document.createElement("a");ht.href=J,ht.download=`${ut}.stream-bundle.json`,ht.click(),URL.revokeObjectURL(J),Vn.success("分享包已导出")}catch(Ct){Vn.error(`导出失败:${Ct.message}`)}finally{o(!1)}}},et=async ot=>{var ct;const Ct=(ct=ot.target.files)==null?void 0:ct[0];if(Ct)try{const mt=JSON.parse(await Ct.text());await B({bundle:mt})}catch(mt){Vn.error(`文件不是合法 JSON:${mt.message}`)}};if(t==="export")return w.jsxs("div",{className:"flex flex-col gap-3",children:[w.jsxs("p",{className:"text-sm text-[var(--acr-text-secondary)]",children:["把这个编排导出为单个 ",w.jsx("code",{children:"stream-bundle/v1"})," JSON——凭证永不进包,可发到 gist / 任意 git 让别人导入。"]}),w.jsxs("details",{className:"text-sm",children:[w.jsx("summary",{className:"cursor-pointer text-[var(--acr-text-secondary)]",children:"带上我改过的能力(可选)"}),T.length===0?w.jsx("p",{className:"mt-1 text-xs text-[var(--acr-text-secondary)]",children:"没有可搭车的自定义 Provider(系统默认行不进包)。"}):w.jsx("ul",{className:"mt-1 flex flex-col gap-1",children:T.map(ot=>w.jsx("li",{children:w.jsxs("label",{className:"flex items-center gap-2",children:[w.jsx("input",{type:"checkbox",checked:R.has(ot.id),onChange:Ct=>{N(ct=>{const mt=new Set(ct);return Ct.target.checked?mt.add(ot.id):mt.delete(ot.id),mt})}}),w.jsxs("span",{children:[ot.label,w.jsx("span",{className:"ml-1 text-xs text-[var(--acr-text-secondary)]",children:ot.id})]})]})},ot.id))}),z.length>0&&w.jsxs("div",{className:"mt-2",children:[w.jsx("div",{className:"text-xs text-[var(--acr-text-secondary)]",children:"网盘对齐 binding(matchSpec 随包,对方转存后自动重算;不带 fileId/凭证):"}),w.jsx("ul",{className:"mt-1 flex flex-col gap-1",children:z.map(ot=>w.jsx("li",{children:w.jsxs("label",{className:"flex items-center gap-2",children:[w.jsx("input",{type:"checkbox",checked:I.has(ot.id),onChange:Ct=>{F(ct=>{const mt=new Set(ct);return Ct.target.checked?mt.add(ot.id):mt.delete(ot.id),mt})}}),w.jsx("span",{children:ot.left.title})]})},ot.id))})]})]}),w.jsx(Sn,{onClick:Z,disabled:a||!n,children:a?"导出中…":"生成并下载分享包"}),c.length>0&&w.jsx("ul",{className:"text-xs text-amber-500 list-disc pl-4",children:c.map((ot,Ct)=>w.jsx("li",{children:ot},Ct))})]});const q=(h==null?void 0:h.items.filter(ot=>ot.status==="open"))??[],nt=((h==null?void 0:h.items.length)??0)-q.length;return w.jsxs("div",{className:"flex flex-col gap-3",children:[!i&&w.jsxs("div",{className:"flex flex-col gap-2",children:[w.jsxs("div",{className:"flex gap-2",children:[w.jsx(dl,{placeholder:"贴一个分享包 URL(raw / gist / 任意 git)",value:b,onChange:ot=>y(ot.target.value)}),w.jsx(Sn,{onClick:()=>B({url:b}),disabled:a||!b,children:"导入"})]}),w.jsxs("label",{className:"text-sm",children:["或选一个本地分享包文件:",w.jsx("input",{type:"file",accept:"application/json,.json",onChange:et,className:"ml-2"})]})]}),a&&w.jsx("p",{className:"text-sm",children:"导入中…"}),h&&w.jsxs("div",{className:"flex flex-col gap-2 text-sm",children:[w.jsxs("div",{className:"text-[var(--acr-text-secondary)]",children:["已导入「",h.meta.title,"」",Object.keys(h.remaps).length>0&&w.jsxs(w.Fragment,{children:["(已重映射 ",Object.keys(h.remaps).length," 个撞车 id,未改动你已有的编排)"]})]}),h.netdiskBindings.length>0&&w.jsxs("div",{children:[w.jsxs("div",{className:"font-medium",children:["网盘对齐 binding 待转存(",h.netdiskBindings.length,"):"]}),w.jsx("ul",{className:"list-disc pl-4",children:h.netdiskBindings.map(ot=>w.jsxs("li",{children:[ot.title,ot.shareUrl&&w.jsxs(w.Fragment,{children:[" — ",w.jsx("a",{href:ot.shareUrl,target:"_blank",rel:"noreferrer",className:"underline",children:"分享链接"})]})]},ot.id))}),w.jsx("div",{className:"mt-1 text-xs text-[var(--acr-text-secondary)]",children:"用你自己的夸克登录态转存 → 挂进 AList → 在网盘对齐里对该绑定 rebind 到新目录,随包 matchSpec 会自动重算映射。"})]}),q.length>0&&w.jsxs("div",{className:"font-medium",children:["待处理(",q.length,"):"]}),q.map(ot=>w.jsx(GF,{item:ot,onDecide:Y},ot.id)),q.length===0&&nt===h.items.length&&h.items.length>0&&w.jsx("div",{className:"text-xs text-[var(--acr-text-secondary)]",children:"全部事项已处理。"}),q.length===0&&h.items.length===0&&w.jsx("div",{className:"text-xs text-[var(--acr-text-secondary)]",children:"没有需要处理的事项。"})]})]})}function GF({item:e,onDecide:t}){var a;const n={"use-imported":"用导入的","keep-mine":"用本机的",append:"按序并存",dismiss:"先不管"},i=w.jsx("div",{className:"mt-1 flex gap-2",children:e.choices.map(o=>w.jsx(Sn,{variant:o==="use-imported"?void 0:"neutral",onClick:()=>t(e,o),children:n[o]??o},o))});if(e.kind==="slot-conflict"){const o=[{title:"本机(现在生效)",side:e.mine},{title:"包内传入",side:e.theirs}];return w.jsxs("div",{className:"rounded border border-[var(--acr-border-soft)] p-2",children:[w.jsxs("div",{children:[String(e.subject.channelId)," · ",String(e.subject.callsiteId)]}),w.jsx("div",{className:"mt-1 grid grid-cols-2 gap-2",children:o.map(({title:c,side:d})=>w.jsxs("div",{className:"rounded border border-[var(--acr-border-soft)] p-2",children:[w.jsx("div",{className:"text-xs text-[var(--acr-text-secondary)]",children:c}),w.jsx("ul",{children:((d==null?void 0:d.providers)??(d==null?void 0:d.providerIds.map(h=>({id:h,label:h,parked:!1})))??[]).map(h=>w.jsxs("li",{children:[h.label,h.parked&&w.jsx("span",{className:"ml-1 text-xs text-amber-500",children:"(未激活)"})]},h.id))})]},c))}),i]})}if(e.kind==="parked-provider"){const o=e.subject;return w.jsxs("div",{className:"rounded border border-[var(--acr-border-soft)] p-2",children:[w.jsxs("div",{children:[o.label,w.jsx("span",{className:"ml-1 text-xs text-[var(--acr-text-secondary)]",children:(o.serves??[]).join(", ")})]}),(((a=e.conflicts)==null?void 0:a.length)??0)>0&&w.jsx("div",{className:"mt-1 text-xs text-amber-500",children:e.conflicts.map(c=>c.kind==="serves-overlap"?`与本机 ${c.rivalProviderId} 在 [${(c.overlapKeys??[]).join(", ")}] 上重叠`:c.kind==="fallback-overlap"?`与本机 ${c.rivalProviderId} 同为 ${c.category} 的兜底行,未命中的键归谁将由 id 序决定`:`binding 覆盖抢占已占用的 ${c.callsiteId}`).join(";")}),i]})}return w.jsxs("div",{className:"rounded border border-[var(--acr-border-soft)] p-2 text-[var(--acr-text-secondary)]",children:[w.jsx("div",{children:e.detail}),i]})}function YF({title:e,onRefresh:t,refreshLabel:n,exportChannel:i,className:a}){const{t:o}=IP(),[c,d]=M.useState(!1);return w.jsxs(wF,{children:[w.jsx(SF,{asChild:!0,children:w.jsx("button",{type:"button",className:At("flex min-w-0 items-center rounded-xl px-2 py-1 text-left text-[14px]/[20px] font-medium text-foreground outline-none transition-colors hover:bg-accent/15 focus-visible:ring-2 focus-visible:ring-ring/50",a),children:w.jsx("span",{className:"min-w-0 flex-1 truncate",children:e})})}),w.jsxs(CM,{align:"start",children:[w.jsx(Ax,{onSelect:t,children:n??o("timeline.reharvest")}),i?w.jsx(Ax,{onSelect:()=>d(!0),children:"导出为分享包"}):null]}),i?w.jsx(nd,{open:c,onOpenChange:d,children:w.jsxs(uc,{children:[w.jsxs(Th,{children:[w.jsx(dc,{children:"导出为分享包"}),w.jsx(Eh,{children:"单个 JSON,凭证永不进包;可发到 gist / 任意 git 让别人导入。"})]}),c?w.jsx(HF,{conn:i.conn,mode:"export",root:{kind:"channel",id:i.id}}):null]})}):null]})}const WF=uo("inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium leading-none whitespace-nowrap transition-[color,background-color,box-shadow] [transition-timing-function:var(--acr-spring-default)] [transition-duration:var(--acr-spring-default-duration)] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 [&>svg]:pointer-events-none [&>svg]:size-3",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"bg-[var(--acr-chip)] text-foreground [a&]:hover:bg-[var(--acr-chip-hover)] group-data-[selected=true]/item:bg-white/15 group-data-[selected=true]/item:text-primary-foreground",destructive:"bg-destructive text-white focus-visible:ring-destructive/20 [a&]:hover:bg-destructive/90",outline:"border-[var(--acr-border)] text-foreground [a&]:hover:bg-[var(--acr-hover)] group-data-[selected=true]/item:border-primary-foreground/30 group-data-[selected=true]/item:text-primary-foreground",ghost:"[a&]:hover:bg-[var(--acr-hover)]",link:"text-primary underline-offset-4 [a&]:hover:underline"},size:{default:"",sm:"px-1.5 text-[11px] leading-none [letter-spacing:var(--text-subheadline-tracking)]"}},defaultVariants:{variant:"default",size:"default"}});function wa({className:e,variant:t="default",size:n="default",asChild:i=!1,...a}){const o=i?Vf:"span";return w.jsx(o,{"data-slot":"badge","data-variant":t,className:At(WF({variant:t,size:n}),e),...a})}const KF=uo(At("flex w-fit min-w-0 select-none items-center justify-between gap-2 border border-[var(--acr-control-border)] bg-[var(--acr-control)] text-foreground outline-none transition-colors","data-[placeholder]:text-muted-foreground","hover:border-[var(--acr-border)] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/25","disabled:cursor-not-allowed disabled:opacity-50","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:opacity-60"),{variants:{size:{mini:"h-4 rounded-[4px] pl-1.5 pr-1 text-[10px] [&_svg]:size-3",small:"h-5 rounded-[5px] pl-2 pr-1 text-[11px] [&_svg]:size-3",medium:"h-6 rounded-[6px] pl-2 pr-1.5 text-[13px] [&_svg]:size-3.5",large:"h-7 rounded-[14px] pl-3 pr-2 text-[13px] [&_svg]:size-3.5",xl:"h-9 rounded-[18px] pl-3.5 pr-2.5 text-[13px] [&_svg]:size-4"}},defaultVariants:{size:"medium"}});function Kp({...e}){return w.jsx(FB,{"data-slot":"select",...e})}function Xp({...e}){return w.jsx(GB,{"data-slot":"select-value",...e})}function Qp({className:e,size:t,children:n,...i}){return w.jsxs(VB,{"data-slot":"select-trigger","data-size":t,className:At(KF({size:t,className:e})),...i,children:[w.jsx("span",{className:"truncate",children:n}),w.jsx(YB,{asChild:!0,children:w.jsx(bj,{})})]})}function Zp({className:e,children:t,position:n="popper",...i}){return w.jsx(QB,{children:w.jsxs(ZB,{"data-slot":"select-content",position:n,className:At("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] overflow-hidden rounded-[10px] border border-[var(--acr-border)] bg-[var(--acr-panel)] p-1 text-foreground backdrop-blur-xl shadow-[0_0_0_1px_rgba(190,190,190,0.16),0_16px_48px_rgba(0,0,0,0.45)] outline-none","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),...i,children:[w.jsx(XF,{}),w.jsx(nj,{className:At("scrollbar-mac",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),w.jsx(QF,{})]})})}function sm({className:e,children:t,...n}){return w.jsxs(sj,{"data-slot":"select-item",className:At("relative flex w-full cursor-default select-none items-center gap-2 rounded-[6px] py-1.5 pl-2 pr-7 text-[13px] outline-none","data-[highlighted]:bg-[var(--acr-hover)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[w.jsx(aj,{children:t}),w.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:w.jsx(lj,{children:w.jsx(Ip,{className:"size-3.5"})})})]})}function XF({className:e,...t}){return w.jsx(cj,{"data-slot":"select-scroll-up-button",className:At("flex cursor-default items-center justify-center py-1 text-muted-foreground",e),...t,children:w.jsx(yj,{className:"size-3.5"})})}function QF({className:e,...t}){return w.jsx(uj,{"data-slot":"select-scroll-down-button",className:At("flex cursor-default items-center justify-center py-1 text-muted-foreground",e),...t,children:w.jsx(WE,{className:"size-3.5"})})}const ZF={fetch:(e,t)=>globalThis.fetch(e,t),openSocket(e,t){const n=new WebSocket(e);return n.onopen=()=>{var i;return(i=t.onOpen)==null?void 0:i.call(t)},n.onmessage=i=>t.onMessage(String(i.data)),n.onclose=()=>{var i;return(i=t.onClose)==null?void 0:i.call(t)},n.onerror=()=>n.close(),{send(i){if(n.readyState!==WebSocket.OPEN)throw new Error("socket is not open");n.send(i)},close(){n.readyState===WebSocket.CONNECTING?n.onopen=()=>n.close():n.close()}}}},JF={fetch:(e,t)=>globalThis.fetch(e,t),openSocket(e,t){let n=null,i=!1;return(async()=>{var a,o;try{const{default:c}=await Promise.resolve().then(()=>aY),d=await c.connect(e);if(i){d.disconnect();return}n=d,(a=t.onOpen)==null||a.call(t),d.addListener(h=>{var m;h.type==="Text"?t.onMessage(h.data):h.type==="Close"&&((m=t.onClose)==null||m.call(t))})}catch{(o=t.onClose)==null||o.call(t)}})(),{send(a){if(!n)throw new Error("socket is not open");n.send(a)},close(){i=!0,n&&n.disconnect()}}}};function RM(){return rC()?JF:ZF}const Jp=new Map;function kM(e,t){let n=null;try{n=RM().openSocket(e,{onOpen:()=>{t.retry=1e3},onMessage:i=>{let a;try{a=JSON.parse(i)}catch{return}if((a==null?void 0:a.type)==="inventory")for(const o of t.listeners)o()},onClose:()=>{t.closed||(t.timer=setTimeout(()=>kM(e,t),t.retry),t.retry=Math.min(t.retry*2,15e3))}})}catch{return}t.handle=n}function qF(e,t){let n=Jp.get(e);return n===void 0&&(n={listeners:new Set,handle:null,closed:!1,retry:1e3},Jp.set(e,n),kM(e,n)),n.listeners.add(t),()=>{var a;const i=Jp.get(e);i!==void 0&&(i.listeners.delete(t),!(i.listeners.size>0)&&(i.closed=!0,i.timer!==void 0&&clearTimeout(i.timer),(a=i.handle)==null||a.close(),Jp.delete(e)))}}const _M=M.createContext(null);function qp(){const e=M.useContext(_M);if(!e)throw new Error("useChannels outside ChannelsProvider");return e}function $F({conn:e,children:t}){const[n,i]=M.useState([]),[a,o]=M.useState(!1),[c,d]=M.useState(null),h=M.useCallback(async()=>{try{const b=await Ie.channels(e);return i(b),d(null),o(!0),b}catch(b){throw d(b.message),b}},[e]),m=M.useCallback(async(b,y)=>{const T=await Ie.updateChannel(e,b,y);return i(k=>k.some(R=>R.id===b)?k.map(R=>R.id===b?T:R):[...k,T]),T},[e]);return M.useEffect(()=>{h().catch(()=>{})},[h]),M.useEffect(()=>qF(Ie.wsUrl(e),()=>{h().catch(()=>{})}),[e,h]),w.jsx(_M.Provider,{value:{channels:n,loaded:a,error:c,reload:h,patchChannel:m},children:t})}const t4=uo("group/field data-[invalid=true]:text-destructive",{variants:{orientation:{horizontal:"grid grid-cols-[auto_1fr] items-center gap-x-4 gap-y-1 [&>[data-slot=field-description]]:col-start-2 [&>[data-slot=field-error]]:col-start-2",vertical:"flex flex-col gap-1.5",responsive:"flex flex-col gap-1.5 @md/field-group:grid @md/field-group:grid-cols-[auto_1fr] @md/field-group:items-center @md/field-group:gap-x-4 @md/field-group:gap-y-1 @md/field-group:[&>[data-slot=field-description]]:col-start-2 @md/field-group:[&>[data-slot=field-error]]:col-start-2"}},defaultVariants:{orientation:"horizontal"}});function id({className:e,orientation:t,size:n="medium",...i}){return w.jsx("div",{role:"group","data-slot":"field","data-orientation":t??"horizontal","data-size":n,className:At(t4({orientation:t,className:e})),...i})}const e4=At("text-[13px]","group-data-[size=mini]/field:text-[10px] group-data-[size=mini]/field:[letter-spacing:var(--text-footnote-tracking)]","group-data-[size=small]/field:text-[11px] group-data-[size=small]/field:[letter-spacing:var(--text-subheadline-tracking)]","group-data-[size=large]/field:text-[15px]","group-data-[size=xl]/field:text-[17px] group-data-[size=xl]/field:[letter-spacing:var(--text-title2-tracking)]");function rd({className:e,asChild:t=!1,...n}){const i=t?Vf:"label";return w.jsx(i,{"data-slot":"field-label",className:At("flex select-none items-center gap-2 font-medium text-foreground",e4,"group-data-[disabled=true]/field:text-muted-foreground","group-data-[invalid=true]/field:text-destructive","has-[[disabled]]:text-muted-foreground",e),...n})}function AM({className:e,...t}){return w.jsx("p",{"data-slot":"field-description",className:At("text-[11px] font-normal leading-snug [letter-spacing:var(--text-subheadline-tracking)] text-muted-foreground","group-data-[size=large]/field:text-[12px] group-data-[size=xl]/field:text-[13px] group-data-[size=xl]/field:[letter-spacing:normal]","group-data-[disabled=true]/field:opacity-60",e),...t})}const n4=uo("@container/field-group",{variants:{variant:{rows:"flex flex-col gap-5",aligned:At("grid grid-cols-[max-content_1fr] gap-x-4 gap-y-5","[&>[data-slot=field]]:col-span-2 [&>[data-slot=field]]:grid [&>[data-slot=field]]:grid-cols-subgrid [&>[data-slot=field]]:items-center [&>[data-slot=field]]:gap-y-1","[&_[data-slot=field-label]]:justify-self-end [&_[data-slot=field-label]]:text-right","[&>[data-slot=field-separator]]:col-span-2")}},defaultVariants:{variant:"rows"}});function i4({className:e,variant:t,...n}){return w.jsx("div",{"data-slot":"field-group","data-variant":t??"rows",className:At(n4({variant:t,className:e})),...n})}const zx="__default__";function r4(e,t,n){var o;const i=n===zx?"":n,a={...((o=e.options)==null?void 0:o.slots)??{}};return i?a[t]=[i]:delete a[t],a}function s4({channel:e,slots:t,providers:n,onSaved:i,columns:a=1}){const[o,c]=M.useState(!1),[d,h]=M.useState(null),{patchChannel:m}=qp(),b=async(y,T)=>{c(!0),h(null);try{await m(e.id,{options:{...e.options,slots:r4(e,y,T)}}),i()}catch(k){h(k.message)}finally{c(!1)}};return w.jsxs(i4,{className:`grid items-center gap-x-4 gap-y-3 [&>[data-slot=field]]:col-span-2 [&>[data-slot=field]]:grid [&>[data-slot=field]]:grid-cols-subgrid [&>[data-slot=field]]:items-center ${a===2?"grid-cols-[max-content_1fr] @xl:grid-cols-[max-content_1fr_max-content_1fr]":"grid-cols-[max-content_1fr]"}`,children:[t.map(y=>{var R,N,z;const T=n.filter(L=>L.category===y.category&&!L.parked),k=((z=(N=(R=e.options)==null?void 0:R.slots)==null?void 0:N[y.callsiteId])==null?void 0:z[0])??"";return w.jsxs(id,{children:[w.jsx(rd,{children:y.label}),w.jsxs(Kp,{value:k||zx,disabled:o,onValueChange:L=>void b(y.callsiteId,L),children:[w.jsx(Qp,{size:"xl",className:"w-full","aria-label":y.label,children:w.jsx(Xp,{})}),w.jsxs(Zp,{children:[w.jsx(sm,{value:zx,children:"默认(跟随全局)"}),T.map(L=>w.jsx(sm,{value:L.id,children:L.label},L.id))]})]})]},y.callsiteId)}),d?w.jsx("p",{className:"col-span-full text-[12px] text-destructive",children:d}):null]})}function a4(e){const t=e.indexOf(":");return t>0?{pluginId:e.slice(0,t),templateId:e.slice(t+1)}:{pluginId:"custom",templateId:e}}function o4(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n)|0;return(t>>>0).toString(36)}const NM=200;function l4(e,t,n){const i=Object.keys(n).sort().map(c=>`${c}=${n[c]==null?"":String(n[c])}`).join("&"),a=`${e} ${t} ${i}`;return a.length<=NM?a:`${a.slice(0,NM-12)}#${o4(a)}`}function Dx(e,t){const{pluginId:n,templateId:i}=a4(e);return l4(n,i,t)}async function c4(e,t,n,i){const a=Dx(t.sourceId,t.params),o=n.members.find(h=>h.key===a);if(!o)return{removed:!1,deleted:!1};const c=n.streamIds.filter(h=>h!==o.streamId);await e.setChannelStreams(n.id,c);const d=!i.some(h=>h.id!==n.id&&h.streamIds.includes(o.streamId));return d&&await e.deleteStream(o.streamId),{removed:!0,deleted:d}}const u4=["timeline","search","audio","video"];function d4(e){return u4.includes(e)?e:"timeline"}function h4(e){return e.map(t=>({id:t.id,label:t.label,variant:d4(t.kind),streamIds:t.streams.map(n=>n.id),members:t.streams.flatMap(n=>n.sources.map(i=>({key:Dx(i.source.id,i.params),streamId:n.id})))}))}function f4(e){return{createStream:t=>Ie.subscribe(e,t).then(n=>({id:n.id})),setChannelStreams:(t,n)=>Ie.updateChannel(e,t,{stream_ids:n}).then(()=>{}),deleteStream:t=>Ie.unsubscribe(e,t).then(()=>{})}}function Rh({className:e,variant:t="default",size:n="default",selected:i,asChild:a=!1,...o}){const c=a?Vf:"div";return w.jsx(c,{"data-slot":"item","data-variant":t,"data-size":n,"data-selected":i||void 0,className:At(m4({variant:t,size:n}),e),...o})}function m4({variant:e,size:t}){return At("group/item flex min-w-0 items-center gap-3 rounded-[10px] text-left outline-none","has-data-[slot=item-header]:flex-wrap has-data-[slot=item-footer]:flex-wrap","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","data-[selected=true]:bg-primary data-[selected=true]:text-primary-foreground",e==="outline"&&"acr-frosted bg-[var(--acr-surface)] backdrop-blur-xl",e==="muted"&&"bg-[var(--acr-card-nested)]",t==="default"&&"p-3",t==="sm"&&"gap-2 rounded-[8px] px-2.5 py-2",t==="xs"&&"gap-2 rounded-[7px] px-2 py-1.5")}function Ox({className:e,variant:t="default",...n}){return w.jsx("div",{"data-slot":"item-media","data-variant":t,className:At("flex shrink-0 items-center justify-center rounded-[8px] text-muted-foreground","group-data-[size=sm]/item:rounded-[6px] group-data-[size=xs]/item:rounded-[5px]","group-data-[selected=true]/item:text-primary-foreground/85",t==="default"&&"size-10 group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-7 [&>svg]:size-5 group-data-[size=sm]/item:[&>svg]:size-4 group-data-[size=xs]/item:[&>svg]:size-3.5",t==="icon"&&"size-10 bg-[var(--acr-card-nested)] group-data-[selected=true]/item:bg-white/15 group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-7 [&>svg]:size-5 group-data-[size=sm]/item:[&>svg]:size-4 group-data-[size=xs]/item:[&>svg]:size-3.5",t==="image"&&"size-12 overflow-hidden bg-[var(--acr-card-nested)] group-data-[selected=true]/item:bg-white/15 group-data-[size=sm]/item:size-10 group-data-[size=xs]/item:size-8 [&>img]:size-full [&>img]:object-cover",t==="avatar"&&"size-10 rounded-full bg-transparent group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-7",e),...n})}function g4({className:e,...t}){return w.jsx("div",{"data-slot":"item-row",className:At("flex min-w-0 basis-full items-start gap-2",e),...t})}function am({className:e,...t}){return w.jsx("div",{"data-slot":"item-content",className:At("min-w-0 flex-1",e),...t})}function $p({className:e,...t}){return w.jsx("div",{"data-slot":"item-title",className:At("truncate text-[13px] font-medium leading-snug text-foreground group-data-[size=sm]/item:text-[12px] group-data-[size=xs]/item:text-[11px]","group-data-[selected=true]/item:text-primary-foreground",e),...t})}function tv({className:e,...t}){return w.jsx("p",{"data-slot":"item-description",className:At("line-clamp-2 text-[12px] leading-snug text-muted-foreground group-data-[size=sm]/item:text-[11px] group-data-[size=xs]/item:text-[10px]","group-data-[selected=true]/item:text-primary-foreground/80",e),...t})}function Px({className:e,...t}){return w.jsx("div",{"data-slot":"item-meta",className:At("shrink-0 whitespace-nowrap text-[11px] leading-snug text-muted-foreground group-data-[size=xs]/item:text-[10px]","group-data-[selected=true]/item:text-primary-foreground/80",e),...t})}function p4({className:e,...t}){return w.jsx("div",{"data-slot":"item-actions",className:At("flex shrink-0 items-center justify-end gap-1","group-data-[selected=true]/item:text-primary-foreground/80",e),...t})}function v4({className:e,...t}){return w.jsx("div",{"data-slot":"item-group",className:At("flex flex-col gap-2",e),...t})}function y4({className:e,...t}){return w.jsx("div",{"data-slot":"item-separator",role:"separator",className:At("h-px bg-[var(--acr-border)]",e),...t})}const b4=mE,x4=gE,w4=iB,zM=M.createContext("default"),DM="z-50 min-w-[10rem] rounded-[12px] border border-[var(--acr-border-soft)] bg-[var(--acr-surface)] p-1.5 text-foreground backdrop-blur-xl shadow-[0_8px_28px_rgba(0,0,0,0.18)] outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",ev=uo("group/mi relative flex cursor-default select-none items-center rounded-[6px] px-2 outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-40 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{size:{default:"gap-2 py-1 text-[13px] leading-4 [&_svg]:size-4 data-[inset]:pl-8",sm:"gap-2 py-1 text-[11px] leading-[14px] [&_svg]:size-3.5 data-[inset]:pl-7",xs:"gap-1.5 py-[3px] text-[10px] leading-[13px] [&_svg]:size-3 data-[inset]:pl-6"}},defaultVariants:{size:"default"}}),nv="data-[highlighted]:bg-[var(--primary)] data-[highlighted]:text-primary-foreground";function iv(){return M.useContext(zM)}const OM=M.forwardRef(({className:e,size:t="default",children:n,...i},a)=>w.jsx(zM.Provider,{value:t,children:w.jsx(Np,{children:w.jsx(pE,{ref:a,"data-slot":"dropdown-menu-content",sideOffset:4,className:At(DM,e),...i,children:n})})}));OM.displayName="DropdownMenuContent";const hc=M.forwardRef(({className:e,inset:t,variant:n="default",...i},a)=>{const o=iv();return w.jsx(yE,{ref:a,"data-slot":"dropdown-menu-item","data-inset":t||void 0,"data-variant":n,className:At(ev({size:o}),n==="default"?nv:"data-[highlighted]:bg-destructive/15 data-[highlighted]:text-destructive",e),...i})});hc.displayName="DropdownMenuItem";const S4=M.forwardRef(({className:e,children:t,checked:n,...i},a)=>{const o=iv();return w.jsxs(bE,{ref:a,"data-slot":"dropdown-menu-checkbox-item",className:At(ev({size:o}),"relative pl-8",nv,e),checked:n,...i,children:[w.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:w.jsx(zp,{children:w.jsx(Ip,{className:"size-3.5"})})}),t]})});S4.displayName="DropdownMenuCheckboxItem";const C4=M.forwardRef(({className:e,children:t,...n},i)=>{const a=iv();return w.jsxs(xE,{ref:i,"data-slot":"dropdown-menu-radio-item",className:At(ev({size:a}),"relative pl-8",nv,e),...n,children:[w.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:w.jsx(zp,{children:w.jsx(KE,{className:"size-2 fill-current"})})}),t]})});C4.displayName="DropdownMenuRadioItem";const T4=M.forwardRef(({className:e,inset:t,...n},i)=>w.jsx(vE,{ref:i,"data-slot":"dropdown-menu-label","data-inset":t||void 0,className:At("px-2 py-1.5 text-[10px] font-medium text-muted-foreground/70 data-[inset]:pl-8",e),...n}));T4.displayName="DropdownMenuLabel";const rv=M.forwardRef(({className:e,...t},n)=>w.jsx(wE,{ref:n,"data-slot":"dropdown-menu-separator",className:At("-mx-1 my-1 h-px bg-[var(--acr-border-soft)]",e),...t}));rv.displayName="DropdownMenuSeparator";const PM=M.forwardRef(({className:e,inset:t,children:n,...i},a)=>{const o=iv();return w.jsxs(SE,{ref:a,"data-slot":"dropdown-menu-sub-trigger","data-inset":t||void 0,className:At(ev({size:o}),"data-[state=open]:bg-[var(--acr-hover)] data-[state=open]:text-foreground",nv,e),...i,children:[n,w.jsx($u,{className:"ml-auto"})]})});PM.displayName="DropdownMenuSubTrigger";const LM=M.forwardRef(({className:e,...t},n)=>w.jsx(Np,{children:w.jsx(CE,{ref:n,"data-slot":"dropdown-menu-sub-content",className:At(DM,e),...t})}));LM.displayName="DropdownMenuSubContent";const IM=M.forwardRef(({className:e,interactive:t=!1,nestedSurface:n=!1,...i},a)=>w.jsx("div",{ref:a,"data-slot":"card","data-nested-surface":n||void 0,className:At("acr-frosted relative rounded-xl bg-[var(--acr-surface)] backdrop-blur-xl","transition-[transform,background-color] duration-200",t&&"hover:-translate-y-px hover:bg-[var(--acr-surface-hover)] before:pointer-events-none before:absolute before:inset-0 before:-z-10 before:rounded-xl before:shadow-[0_12px_28px_rgba(0,0,0,0.28)] before:opacity-0 before:transition-opacity before:duration-200 hover:before:opacity-100",e),...i}));IM.displayName="Card";function E4({className:e,...t}){return w.jsx("div",{"data-slot":"card-header",className:At("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto]",e),...t})}function M4({className:e,...t}){return w.jsx("div",{"data-slot":"card-title",className:At("self-center text-[15px] font-semibold leading-none tracking-tight",e),...t})}function R4({className:e,...t}){return w.jsx("div",{"data-slot":"card-action",className:At("col-start-2 row-start-1 flex items-start self-start justify-self-end",e),...t})}function k4({className:e,...t}){return w.jsx("div",{"data-slot":"card-content",className:At("px-6",e),...t})}function _4({className:e,...t}){return w.jsx("div",{"data-slot":"empty",className:At("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12",e),...t})}function A4({className:e,...t}){return w.jsx("div",{"data-slot":"empty-header",className:At("flex max-w-sm flex-col items-center gap-2 text-center",e),...t})}function N4({className:e,...t}){return w.jsx("div",{"data-slot":"empty-title",className:At("text-lg font-medium tracking-tight",e),...t})}function z4({className:e,...t}){return w.jsx("div",{"data-slot":"empty-description",className:At("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...t})}const Lx={mini:{well:"p-0.5",item:"h-4 gap-1 px-2 text-[10px] [&_svg]:size-3",divider:"inset-y-0.5",text:"h-4 px-2 text-[10px]"},small:{well:"p-0.5",item:"h-5 gap-1 px-2.5 text-[11px] [&_svg]:size-3",divider:"inset-y-0.5",text:"h-5 px-2.5 text-[11px]"},medium:{well:"p-0.5",item:"h-6 gap-1.5 px-4 text-[13px] [&_svg]:size-3.5",divider:"inset-y-1",text:"h-6 px-3 text-[13px]"},large:{well:"p-0.5",item:"h-7 gap-1.5 px-4 text-[13px] [&_svg]:size-4",divider:"inset-y-1.5",text:"h-7 px-3.5 text-[13px]"},xl:{well:"p-0.5",item:"h-9 gap-2 px-5 text-[13px] [&_svg]:size-4",divider:"inset-y-2",text:"h-9 px-4 text-[13px]"}},D4={auto:{mini:{well:"rounded-[4px]",childrenL:"[&>*:first-child]:rounded-l-[2px]",childrenR:"[&>*:last-child]:rounded-r-[2px]",childrenAll:"[&>*]:rounded-[2px]",pill:"rounded-[2px]",item:"rounded-[2px]"},small:{well:"rounded-[5px]",childrenL:"[&>*:first-child]:rounded-l-[3px]",childrenR:"[&>*:last-child]:rounded-r-[3px]",childrenAll:"[&>*]:rounded-[3px]",pill:"rounded-[3px]",item:"rounded-[3px]"},medium:{well:"rounded-[6px]",childrenL:"[&>*:first-child]:rounded-l-[4px]",childrenR:"[&>*:last-child]:rounded-r-[4px]",childrenAll:"[&>*]:rounded-[4px]",pill:"rounded-[4px]",item:"rounded-[4px]"},large:{well:"rounded-full",childrenL:"[&>*:first-child]:rounded-l-full",childrenR:"[&>*:last-child]:rounded-r-full",childrenAll:"[&>*]:rounded-full",pill:"rounded-full",item:"rounded-full"},xl:{well:"rounded-full",childrenL:"[&>*:first-child]:rounded-l-full",childrenR:"[&>*:last-child]:rounded-r-full",childrenAll:"[&>*]:rounded-full",pill:"rounded-full",item:"rounded-full"}},rect:{mini:{well:"rounded-[4px]",childrenL:"[&>*:first-child]:rounded-l-[2px]",childrenR:"[&>*:last-child]:rounded-r-[2px]",childrenAll:"[&>*]:rounded-[2px]",pill:"rounded-[2px]",item:"rounded-[2px]"},small:{well:"rounded-[5px]",childrenL:"[&>*:first-child]:rounded-l-[3px]",childrenR:"[&>*:last-child]:rounded-r-[3px]",childrenAll:"[&>*]:rounded-[3px]",pill:"rounded-[3px]",item:"rounded-[3px]"},medium:{well:"rounded-[6px]",childrenL:"[&>*:first-child]:rounded-l-[4px]",childrenR:"[&>*:last-child]:rounded-r-[4px]",childrenAll:"[&>*]:rounded-[4px]",pill:"rounded-[4px]",item:"rounded-[4px]"},large:{well:"rounded-[8px]",childrenL:"[&>*:first-child]:rounded-l-[6px]",childrenR:"[&>*:last-child]:rounded-r-[6px]",childrenAll:"[&>*]:rounded-[6px]",pill:"rounded-[6px]",item:"rounded-[6px]"},xl:{well:"rounded-[10px]",childrenL:"[&>*:first-child]:rounded-l-[8px]",childrenR:"[&>*:last-child]:rounded-r-[8px]",childrenAll:"[&>*]:rounded-[8px]",pill:"rounded-[8px]",item:"rounded-[8px]"}},capsule:{mini:{well:"rounded-full",childrenL:"[&>*:first-child]:rounded-l-full",childrenR:"[&>*:last-child]:rounded-r-full",childrenAll:"[&>*]:rounded-full",pill:"rounded-full",item:"rounded-full"},small:{well:"rounded-full",childrenL:"[&>*:first-child]:rounded-l-full",childrenR:"[&>*:last-child]:rounded-r-full",childrenAll:"[&>*]:rounded-full",pill:"rounded-full",item:"rounded-full"},medium:{well:"rounded-full",childrenL:"[&>*:first-child]:rounded-l-full",childrenR:"[&>*:last-child]:rounded-r-full",childrenAll:"[&>*]:rounded-full",pill:"rounded-full",item:"rounded-full"},large:{well:"rounded-full",childrenL:"[&>*:first-child]:rounded-l-full",childrenR:"[&>*:last-child]:rounded-r-full",childrenAll:"[&>*]:rounded-full",pill:"rounded-full",item:"rounded-full"},xl:{well:"rounded-full",childrenL:"[&>*:first-child]:rounded-l-full",childrenR:"[&>*:last-child]:rounded-r-full",childrenAll:"[&>*]:rounded-full",pill:"rounded-full",item:"rounded-full"}}},sv=M.createContext("medium"),Ix=M.createContext("auto"),O4=()=>M.useContext(sv),Bx=(e,t)=>D4[e][t],P4=uo("inline-flex isolate text-foreground",{variants:{variant:{attached:At("items-stretch bg-[var(--acr-field)]","[&>[data-slot=button]]:bg-transparent [&>[data-slot=button]]:text-foreground [&>[data-slot=button]]:shadow-none","[&>[data-slot=button]:hover]:bg-[var(--acr-hover)]","[&>*]:rounded-none"),segmented:At("items-stretch gap-px bg-[var(--acr-field)]","[&>*]:shadow-none [&>*]:bg-transparent","[&>[data-active=true]]:bg-[var(--acr-control)] [&>[aria-pressed=true]]:bg-[var(--acr-control)]","[&>[data-active=true]]:shadow-[0_1px_2px_rgba(0,0,0,0.16),0_0_0_0.5px_rgba(0,0,0,0.04)]","[&>[aria-pressed=true]]:shadow-[0_1px_2px_rgba(0,0,0,0.16),0_0_0_0.5px_rgba(0,0,0,0.04)]"),ghost:At("items-stretch bg-transparent","[&>[data-slot=button]]:bg-transparent [&>[data-slot=button]]:text-foreground [&>[data-slot=button]]:shadow-none","[&>[data-slot=button]:hover]:bg-[var(--acr-hover)]","[&>*]:rounded-none"),split:"items-center gap-1.5"}},defaultVariants:{variant:"attached"}}),L4=M.createContext(null),I4=M.createContext(null);function B4(e,t,n){const i=Lx[t],a=Bx(n,t);return e==="split"?"":e==="segmented"?At(i.well,a.well,a.childrenAll):At(i.well,a.well,a.childrenAll,a.childrenL,a.childrenR)}function j4(e){if(e.type==="multiple"){const{className:T,size:k,shape:R,value:N,defaultValue:z,onValueChange:L,children:I,...F}=e;return w.jsx(F4,{className:T,size:k,shape:R,value:N,defaultValue:z,onValueChange:L,...F,children:I})}const{className:t,variant:n,size:i="medium",shape:a="auto",value:o,defaultValue:c,onValueChange:d,children:h,type:m,...b}=e;return n==="segmented"&&(o!==void 0||c!==void 0||d!==void 0)?w.jsx(U4,{className:t,size:i,shape:a,value:o,defaultValue:c,onValueChange:d,...b,children:h}):w.jsx(sv.Provider,{value:i,children:w.jsx(Ix.Provider,{value:a,children:w.jsx("div",{role:"group","data-slot":"button-group","data-variant":n??"attached","data-size":i,"data-shape":a,className:At(P4({variant:n}),B4(n??"attached",i,a),t),...b,children:h})})})}function F4({className:e,size:t="medium",shape:n="auto",value:i,defaultValue:a,onValueChange:o,children:c,...d}){const h=Lx[t],m=Bx(n,t),[b,y]=M.useState(a??[]),T=i!==void 0,k=T?i:b,R=M.useCallback(N=>{const z=k.includes(N)?k.filter(L=>L!==N):[...k,N];T||y(z),o==null||o(z)},[k,T,o]);return w.jsx("div",{role:"group","data-slot":"button-group","data-variant":"multiple","data-size":t,"data-shape":n,className:At("inline-flex isolate items-stretch bg-[var(--acr-field)] text-foreground","[&>*]:rounded-none",h.well,m.well,m.childrenAll,m.childrenL,m.childrenR,e),...d,children:w.jsx(sv.Provider,{value:t,children:w.jsx(Ix.Provider,{value:n,children:w.jsx(I4.Provider,{value:{value:k,toggle:R},children:c})})})})}function U4({className:e,size:t="medium",shape:n="auto",value:i,defaultValue:a,onValueChange:o,children:c,...d}){const h=Lx[t],m=Bx(n,t),b=M.useMemo(()=>M.Children.toArray(c).filter(Y=>{var Z;return M.isValidElement(Y)&&((Z=Y.type)==null?void 0:Z.__isButtonGroupItem)===!0}),[c]),y=b.map(Y=>Y.props.value),[T,k]=M.useState(a??y[0]),R=i!==void 0,N=R?i:T,z=M.useCallback(Y=>{R||k(Y),o==null||o(Y)},[R,o]),L=Math.max(0,y.indexOf(N)),I=b.length||1,F=Y=>{if(Y.key==="ArrowRight"||Y.key==="ArrowLeft"){Y.preventDefault();const Z=Y.key==="ArrowRight"?1:-1,et=(L+Z+I)%I;z(y[et])}},B={width:`${100/I}%`,transform:`translateX(${L*100}%)`};return w.jsx("div",{role:"radiogroup","data-slot":"button-group","data-variant":"segmented","data-size":t,"data-shape":n,onKeyDown:F,className:At("inline-flex isolate bg-[var(--acr-field)] text-foreground",h.well,m.well,e),...d,children:w.jsxs("div",{"data-slot":"button-group-track",className:"relative isolate grid flex-1",style:{gridTemplateColumns:`repeat(${I}, minmax(0, 1fr))`},children:[w.jsx("div",{"aria-hidden":!0,"data-slot":"button-group-indicator",className:At("pointer-events-none absolute left-0 top-0 z-0 h-full bg-[var(--acr-button-group-control)]",m.pill,"shadow-[0_1px_2px_rgba(0,0,0,0.35)]","transition-[transform,width] duration-200 ease-[cubic-bezier(0.32,0.72,0,1)]","motion-reduce:transition-none"),style:B}),I>1&&Array.from({length:I-1},(Y,Z)=>{const et=Z+1,q=L===et-1||L===et,nt=`${et/I*100}%`;return w.jsx("span",{"aria-hidden":!0,"data-slot":"button-group-divider",className:At("pointer-events-none absolute z-[1] w-px -translate-x-1/2 bg-[var(--acr-button-group-divider)]",h.divider,"transition-opacity duration-200 ease-[cubic-bezier(0.32,0.72,0,1)] motion-reduce:transition-none",q&&"opacity-0"),style:{left:nt}},Z)}),w.jsx(sv.Provider,{value:t,children:w.jsx(Ix.Provider,{value:n,children:w.jsx(L4.Provider,{value:{value:N,setValue:z},children:c})})})]})})}function V4({className:e,orientation:t="vertical",...n}){const i=O4(),a={mini:"my-0.5 w-px",small:"my-0.5 w-px",medium:"my-1 w-px",large:"my-1.5 w-px",xl:"my-2 w-px"},o={mini:"mx-0.5 h-px",small:"mx-0.5 h-px",medium:"mx-1 h-px",large:"mx-1.5 h-px",xl:"mx-2 h-px"};return w.jsx("div",{role:"separator","aria-orientation":t,"data-slot":"button-group-separator",className:At("shrink-0 self-stretch bg-[var(--acr-button-group-divider)]",t==="vertical"?a[i]:o[i],e),...n})}const BM={xhs:"xiaohongshu"};function H4(e){const t=e.startsWith("rsshub:")?e.slice(7).split("/")[0].toLowerCase():e.split("-")[0].toLowerCase();return BM[t]??t}function jM(e,t){return t?BM[t]??t:H4(e)}function G4(e,t){var i;const n=(i=rb[jM(e,t)])==null?void 0:i.d;return n?`https://icons.folo.is/${n}`:void 0}function Y4(e,t){var i;const n=(i=rb[jM(e,t)])==null?void 0:i.d;return n?`${Mf.baseUrl}/api/media/image?site=${encodeURIComponent(`https://${n}`)}`:void 0}function jx({id:e,name:t,facilityKey:n,className:i}){const a=G4(e,n),o=Y4(e,n),[c,d]=M.useState("primary"),h=c==="primary"?a:c==="fallback"?o:void 0;if(M.useEffect(()=>{d("primary")},[e,n]),h)return w.jsx("img",{src:h,alt:"",loading:"lazy",onError:()=>d(c==="primary"&&o?"fallback":"letter"),className:At("size-full object-cover",i)});const m=(t||e).replace(/^rsshub:/,"").trim().charAt(0).toUpperCase()||"?";return w.jsx("span",{className:At("flex size-full items-center justify-center bg-muted text-[13px] font-semibold text-muted-foreground",i),children:m})}function FM({source:e,status:t,meta:n,actions:i,onClick:a,htmlId:o,className:c,size:d="default",variant:h="outline",tooltip:m,muted:b=!1}){var T;const y=w.jsxs(w.Fragment,{children:[w.jsx(Ox,{variant:"icon",className:`overflow-hidden ${b?"opacity-40":""}`,children:w.jsx(jx,{id:e.id,name:e.title,facilityKey:(T=e.facility)==null?void 0:T.key})}),w.jsxs(am,{children:[w.jsxs($p,{className:`flex items-center gap-2 ${b?"text-muted-foreground":""}`,children:[w.jsx("span",{className:"truncate font-extrabold",children:e.title}),t,e.pluginName?w.jsx(wa,{variant:"secondary",size:"sm",className:"shrink-0",children:e.pluginName}):null]}),e.description&&e.description!==e.title?w.jsx(tv,{className:"line-clamp-1",children:e.description}):null]}),n?w.jsx(Px,{children:n}):null,i?w.jsx(p4,{children:i}):null]});return a?w.jsx(Rh,{asChild:!0,variant:h,size:d,title:m,id:o,className:`cursor-pointer transition-colors ${c??""}`,children:w.jsx("button",{type:"button",onClick:a,className:"w-full",children:y})}):w.jsx(Rh,{variant:b?"muted":h,size:d,title:m,id:o,className:c,children:y})}const W4=RE,K4=kE,UM=M.forwardRef(({className:e,align:t="start",sideOffset:n=6,...i},a)=>w.jsx(_E,{children:w.jsx(mx,{ref:a,"data-slot":"hover-card-content",align:t,sideOffset:n,className:At("z-50 w-72 rounded-[12px] border border-[var(--acr-border-soft)] bg-[var(--acr-surface)] p-3 text-foreground backdrop-blur-xl shadow-[0_8px_28px_rgba(0,0,0,0.18)] outline-none","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",e),...i})}));UM.displayName=mx.displayName;const VM={drift:"源结构变化",auth:"登录失效",timeout:"超时",network:"网络错误",blocked:"被拦截/限流",empty:"持续无内容",unknown:"未知错误"};function HM(e){const t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleString()}function X4(e,t,n){return[t?`来源: ${t}`:null,`状态: ${n}`,`类别: ${VM[e.category]} (${e.category})`,`时间: ${HM(e.at)}`,`错误: ${e.message}`].filter(Boolean).join(`
|
|
316
|
+
`)}function Q4({colorClass:e,label:t}){return w.jsx("span",{title:t,className:`inline-block size-2 shrink-0 rounded-full ${e}`})}function Z4({error:e,sourceLabel:t,stateLabel:n,children:i}){if(!e)return w.jsx(w.Fragment,{children:i});const a=async()=>{try{await navigator.clipboard.writeText(X4(e,t,n)),Vn.success("已复制错误信息")}catch{Vn.error("复制失败")}};return w.jsxs(W4,{openDelay:120,closeDelay:80,children:[w.jsx(K4,{asChild:!0,children:w.jsx("div",{className:"w-full cursor-help",children:i})}),w.jsx(UM,{children:w.jsxs("div",{className:"space-y-2",children:[w.jsxs("div",{className:"flex items-center justify-between gap-2",children:[w.jsxs("span",{className:"text-[12px] font-medium",children:[VM[e.category],w.jsxs("span",{className:"ml-1 text-muted-foreground",children:["· ",n]})]}),w.jsxs("button",{type:"button",onClick:a,title:"复制错误信息",className:"inline-flex items-center gap-1 rounded-[6px] px-1.5 py-0.5 text-[11px] text-muted-foreground transition-colors hover:bg-[var(--acr-border-soft)] hover:text-foreground",children:[w.jsx(xj,{className:"size-3"}),"复制"]})]}),w.jsx("p",{className:"whitespace-pre-wrap break-words font-mono text-[11px] leading-relaxed text-foreground/90",children:e.message}),w.jsx("p",{className:"text-[10px] text-muted-foreground",children:HM(e.at)})]})})]})}function J4(e){var t;return((t=e.sources[0])==null?void 0:t.source.id)||e.id}function q4({id:e,name:t,stream:n,className:i}){const a=e||(n?J4(n):"");return w.jsx(jx,{id:a,name:t||(n==null?void 0:n.description)||a,className:i})}var GM=1,$4=.9,tU=.8,eU=.17,Fx=.1,Ux=.999,nU=.9999,iU=.99,rU=/[\\\/_+.#"@\[\(\{&]/,sU=/[\\\/_+.#"@\[\(\{&]/g,aU=/[\s-]/,YM=/[\s-]/g;function Vx(e,t,n,i,a,o,c){if(o===t.length)return a===e.length?GM:iU;var d=`${a},${o}`;if(c[d]!==void 0)return c[d];for(var h=i.charAt(o),m=n.indexOf(h,a),b=0,y,T,k,R;m>=0;)y=Vx(e,t,n,i,m+1,o+1,c),y>b&&(m===a?y*=GM:rU.test(e.charAt(m-1))?(y*=tU,k=e.slice(a,m-1).match(sU),k&&a>0&&(y*=Math.pow(Ux,k.length))):aU.test(e.charAt(m-1))?(y*=$4,R=e.slice(a,m-1).match(YM),R&&a>0&&(y*=Math.pow(Ux,R.length))):(y*=eU,a>0&&(y*=Math.pow(Ux,m-a))),e.charAt(m)!==t.charAt(o)&&(y*=nU)),(y<Fx&&n.charAt(m-1)===i.charAt(o+1)||i.charAt(o+1)===i.charAt(o)&&n.charAt(m-1)!==i.charAt(o))&&(T=Vx(e,t,n,i,m+1,o+2,c),T*Fx>y&&(y=T*Fx)),y>b&&(b=y),m=n.indexOf(h,m+1);return c[d]=b,b}function WM(e){return e.toLowerCase().replace(YM," ")}function oU(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,Vx(e,t,WM(e),WM(t),0,0,{})}var om='[cmdk-group=""]',Hx='[cmdk-group-items=""]',lU='[cmdk-group-heading=""]',KM='[cmdk-item=""]',XM=`${KM}:not([aria-disabled="true"])`,Gx="cmdk-item-select",kh="data-value",cU=(e,t,n)=>oU(e,t,n),QM=M.createContext(void 0),lm=()=>M.useContext(QM),ZM=M.createContext(void 0),Yx=()=>M.useContext(ZM),JM=M.createContext(void 0),qM=M.forwardRef((e,t)=>{let n=Ah(()=>{var X,ft;return{search:"",value:(ft=(X=e.value)!=null?X:e.defaultValue)!=null?ft:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),i=Ah(()=>new Set),a=Ah(()=>new Map),o=Ah(()=>new Map),c=Ah(()=>new Set),d=$M(e),{label:h,children:m,value:b,onValueChange:y,filter:T,shouldFilter:k,loop:R,disablePointerSelection:N=!1,vimBindings:z=!0,...L}=e,I=Vi(),F=Vi(),B=Vi(),Y=M.useRef(null),Z=xU();sd(()=>{if(b!==void 0){let X=b.trim();n.current.value=X,et.emit()}},[b]),sd(()=>{Z(6,mt)},[]);let et=M.useMemo(()=>({subscribe:X=>(c.current.add(X),()=>c.current.delete(X)),snapshot:()=>n.current,setState:(X,ft,yt)=>{var tt,bt,zt,Dt;if(!Object.is(n.current[X],ft)){if(n.current[X]=ft,X==="search")ct(),ot(),Z(1,Ct);else if(X==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let Mt=document.getElementById(B);Mt?Mt.focus():(tt=document.getElementById(I))==null||tt.focus()}if(Z(7,()=>{var Mt;n.current.selectedItemId=(Mt=Rt())==null?void 0:Mt.id,et.emit()}),yt||Z(5,mt),((bt=d.current)==null?void 0:bt.value)!==void 0){let Mt=ft??"";(Dt=(zt=d.current).onValueChange)==null||Dt.call(zt,Mt);return}}et.emit()}},emit:()=>{c.current.forEach(X=>X())}}),[]),q=M.useMemo(()=>({value:(X,ft,yt)=>{var tt;ft!==((tt=o.current.get(X))==null?void 0:tt.value)&&(o.current.set(X,{value:ft,keywords:yt}),n.current.filtered.items.set(X,nt(ft,yt)),Z(2,()=>{ot(),et.emit()}))},item:(X,ft)=>(i.current.add(X),ft&&(a.current.has(ft)?a.current.get(ft).add(X):a.current.set(ft,new Set([X]))),Z(3,()=>{ct(),ot(),n.current.value||Ct(),et.emit()}),()=>{o.current.delete(X),i.current.delete(X),n.current.filtered.items.delete(X);let yt=Rt();Z(4,()=>{ct(),(yt==null?void 0:yt.getAttribute("id"))===X&&Ct(),et.emit()})}),group:X=>(a.current.has(X)||a.current.set(X,new Set),()=>{o.current.delete(X),a.current.delete(X)}),filter:()=>d.current.shouldFilter,label:h||e["aria-label"],getDisablePointerSelection:()=>d.current.disablePointerSelection,listId:I,inputId:B,labelId:F,listInnerRef:Y}),[]);function nt(X,ft){var yt,tt;let bt=(tt=(yt=d.current)==null?void 0:yt.filter)!=null?tt:cU;return X?bt(X,n.current.search,ft):0}function ot(){if(!n.current.search||d.current.shouldFilter===!1)return;let X=n.current.filtered.items,ft=[];n.current.filtered.groups.forEach(tt=>{let bt=a.current.get(tt),zt=0;bt.forEach(Dt=>{let Mt=X.get(Dt);zt=Math.max(Mt,zt)}),ft.push([tt,zt])});let yt=Y.current;ut().sort((tt,bt)=>{var zt,Dt;let Mt=tt.getAttribute("id"),Yt=bt.getAttribute("id");return((zt=X.get(Yt))!=null?zt:0)-((Dt=X.get(Mt))!=null?Dt:0)}).forEach(tt=>{let bt=tt.closest(Hx);bt?bt.appendChild(tt.parentElement===bt?tt:tt.closest(`${Hx} > *`)):yt.appendChild(tt.parentElement===yt?tt:tt.closest(`${Hx} > *`))}),ft.sort((tt,bt)=>bt[1]-tt[1]).forEach(tt=>{var bt;let zt=(bt=Y.current)==null?void 0:bt.querySelector(`${om}[${kh}="${encodeURIComponent(tt[0])}"]`);zt==null||zt.parentElement.appendChild(zt)})}function Ct(){let X=ut().find(yt=>yt.getAttribute("aria-disabled")!=="true"),ft=X==null?void 0:X.getAttribute(kh);et.setState("value",ft||void 0)}function ct(){var X,ft,yt,tt;if(!n.current.search||d.current.shouldFilter===!1){n.current.filtered.count=i.current.size;return}n.current.filtered.groups=new Set;let bt=0;for(let zt of i.current){let Dt=(ft=(X=o.current.get(zt))==null?void 0:X.value)!=null?ft:"",Mt=(tt=(yt=o.current.get(zt))==null?void 0:yt.keywords)!=null?tt:[],Yt=nt(Dt,Mt);n.current.filtered.items.set(zt,Yt),Yt>0&&bt++}for(let[zt,Dt]of a.current)for(let Mt of Dt)if(n.current.filtered.items.get(Mt)>0){n.current.filtered.groups.add(zt);break}n.current.filtered.count=bt}function mt(){var X,ft,yt;let tt=Rt();tt&&(((X=tt.parentElement)==null?void 0:X.firstChild)===tt&&((yt=(ft=tt.closest(om))==null?void 0:ft.querySelector(lU))==null||yt.scrollIntoView({block:"nearest"})),tt.scrollIntoView({block:"nearest"}))}function Rt(){var X;return(X=Y.current)==null?void 0:X.querySelector(`${KM}[aria-selected="true"]`)}function ut(){var X;return Array.from(((X=Y.current)==null?void 0:X.querySelectorAll(XM))||[])}function j(X){let ft=ut()[X];ft&&et.setState("value",ft.getAttribute(kh))}function J(X){var ft;let yt=Rt(),tt=ut(),bt=tt.findIndex(Dt=>Dt===yt),zt=tt[bt+X];(ft=d.current)!=null&&ft.loop&&(zt=bt+X<0?tt[tt.length-1]:bt+X===tt.length?tt[0]:tt[bt+X]),zt&&et.setState("value",zt.getAttribute(kh))}function ht(X){let ft=Rt(),yt=ft==null?void 0:ft.closest(om),tt;for(;yt&&!tt;)yt=X>0?yU(yt,om):bU(yt,om),tt=yt==null?void 0:yt.querySelector(XM);tt?et.setState("value",tt.getAttribute(kh)):J(X)}let Tt=()=>j(ut().length-1),K=X=>{X.preventDefault(),X.metaKey?Tt():X.altKey?ht(1):J(1)},U=X=>{X.preventDefault(),X.metaKey?j(0):X.altKey?ht(-1):J(-1)};return M.createElement(De.div,{ref:t,tabIndex:-1,...L,"cmdk-root":"",onKeyDown:X=>{var ft;(ft=L.onKeyDown)==null||ft.call(L,X);let yt=X.nativeEvent.isComposing||X.keyCode===229;if(!(X.defaultPrevented||yt))switch(X.key){case"n":case"j":{z&&X.ctrlKey&&K(X);break}case"ArrowDown":{K(X);break}case"p":case"k":{z&&X.ctrlKey&&U(X);break}case"ArrowUp":{U(X);break}case"Home":{X.preventDefault(),j(0);break}case"End":{X.preventDefault(),Tt();break}case"Enter":{X.preventDefault();let tt=Rt();if(tt){let bt=new Event(Gx);tt.dispatchEvent(bt)}}}}},M.createElement("label",{"cmdk-label":"",htmlFor:q.inputId,id:q.labelId,style:SU},h),av(e,X=>M.createElement(ZM.Provider,{value:et},M.createElement(QM.Provider,{value:q},X))))}),uU=M.forwardRef((e,t)=>{var n,i;let a=Vi(),o=M.useRef(null),c=M.useContext(JM),d=lm(),h=$M(e),m=(i=(n=h.current)==null?void 0:n.forceMount)!=null?i:c==null?void 0:c.forceMount;sd(()=>{if(!m)return d.item(a,c==null?void 0:c.id)},[m]);let b=tR(a,o,[e.value,e.children,o],e.keywords),y=Yx(),T=fc(Z=>Z.value&&Z.value===b.current),k=fc(Z=>m||d.filter()===!1?!0:Z.search?Z.filtered.items.get(a)>0:!0);M.useEffect(()=>{let Z=o.current;if(!(!Z||e.disabled))return Z.addEventListener(Gx,R),()=>Z.removeEventListener(Gx,R)},[k,e.onSelect,e.disabled]);function R(){var Z,et;N(),(et=(Z=h.current).onSelect)==null||et.call(Z,b.current)}function N(){y.setState("value",b.current,!0)}if(!k)return null;let{disabled:z,value:L,onSelect:I,forceMount:F,keywords:B,...Y}=e;return M.createElement(De.div,{ref:Gu(o,t),...Y,id:a,"cmdk-item":"",role:"option","aria-disabled":!!z,"aria-selected":!!T,"data-disabled":!!z,"data-selected":!!T,onPointerMove:z||d.getDisablePointerSelection()?void 0:N,onClick:z?void 0:R},e.children)}),dU=M.forwardRef((e,t)=>{let{heading:n,children:i,forceMount:a,...o}=e,c=Vi(),d=M.useRef(null),h=M.useRef(null),m=Vi(),b=lm(),y=fc(k=>a||b.filter()===!1?!0:k.search?k.filtered.groups.has(c):!0);sd(()=>b.group(c),[]),tR(c,d,[e.value,e.heading,h]);let T=M.useMemo(()=>({id:c,forceMount:a}),[a]);return M.createElement(De.div,{ref:Gu(d,t),...o,"cmdk-group":"",role:"presentation",hidden:y?void 0:!0},n&&M.createElement("div",{ref:h,"cmdk-group-heading":"","aria-hidden":!0,id:m},n),av(e,k=>M.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?m:void 0},M.createElement(JM.Provider,{value:T},k))))}),hU=M.forwardRef((e,t)=>{let{alwaysRender:n,...i}=e,a=M.useRef(null),o=fc(c=>!c.search);return!n&&!o?null:M.createElement(De.div,{ref:Gu(a,t),...i,"cmdk-separator":"",role:"separator"})}),fU=M.forwardRef((e,t)=>{let{onValueChange:n,...i}=e,a=e.value!=null,o=Yx(),c=fc(m=>m.search),d=fc(m=>m.selectedItemId),h=lm();return M.useEffect(()=>{e.value!=null&&o.setState("search",e.value)},[e.value]),M.createElement(De.input,{ref:t,...i,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":h.listId,"aria-labelledby":h.labelId,"aria-activedescendant":d,id:h.inputId,type:"text",value:a?e.value:c,onChange:m=>{a||o.setState("search",m.target.value),n==null||n(m.target.value)}})}),mU=M.forwardRef((e,t)=>{let{children:n,label:i="Suggestions",...a}=e,o=M.useRef(null),c=M.useRef(null),d=fc(m=>m.selectedItemId),h=lm();return M.useEffect(()=>{if(c.current&&o.current){let m=c.current,b=o.current,y,T=new ResizeObserver(()=>{y=requestAnimationFrame(()=>{let k=m.offsetHeight;b.style.setProperty("--cmdk-list-height",k.toFixed(1)+"px")})});return T.observe(m),()=>{cancelAnimationFrame(y),T.unobserve(m)}}},[]),M.createElement(De.div,{ref:Gu(o,t),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":d,"aria-label":i,id:h.listId},av(e,m=>M.createElement("div",{ref:Gu(c,h.listInnerRef),"cmdk-list-sizer":""},m)))}),gU=M.forwardRef((e,t)=>{let{open:n,onOpenChange:i,overlayClassName:a,contentClassName:o,container:c,...d}=e;return M.createElement(Lb,{open:n,onOpenChange:i},M.createElement(Ib,{container:c},M.createElement(up,{"cmdk-overlay":"",className:a}),M.createElement(dp,{"aria-label":e.label,"cmdk-dialog":"",className:o},M.createElement(qM,{ref:t,...d}))))}),pU=M.forwardRef((e,t)=>fc(n=>n.filtered.count===0)?M.createElement(De.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),vU=M.forwardRef((e,t)=>{let{progress:n,children:i,label:a="Loading...",...o}=e;return M.createElement(De.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},av(e,c=>M.createElement("div",{"aria-hidden":!0},c)))}),_h=Object.assign(qM,{List:mU,Item:uU,Input:fU,Group:dU,Separator:hU,Dialog:gU,Empty:pU,Loading:vU});function yU(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function bU(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function $M(e){let t=M.useRef(e);return sd(()=>{t.current=e}),t}var sd=typeof window>"u"?M.useEffect:M.useLayoutEffect;function Ah(e){let t=M.useRef();return t.current===void 0&&(t.current=e()),t}function fc(e){let t=Yx(),n=()=>e(t.snapshot());return M.useSyncExternalStore(t.subscribe,n,n)}function tR(e,t,n,i=[]){let a=M.useRef(),o=lm();return sd(()=>{var c;let d=(()=>{var m;for(let b of n){if(typeof b=="string")return b.trim();if(typeof b=="object"&&"current"in b)return b.current?(m=b.current.textContent)==null?void 0:m.trim():a.current}})(),h=i.map(m=>m.trim());o.value(e,d,h),(c=t.current)==null||c.setAttribute(kh,d),a.current=d}),a}var xU=()=>{let[e,t]=M.useState(),n=Ah(()=>new Map);return sd(()=>{n.current.forEach(i=>i()),n.current=new Map},[e]),(i,a)=>{n.current.set(i,a),t({})}};function wU(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function av({asChild:e,children:t},n){return e&&M.isValidElement(t)?M.cloneElement(wU(t),{ref:t.ref},n(t.props.children)):n(t)}var SU={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function eR({className:e,...t}){return w.jsx(_h,{"data-slot":"command",className:At("flex h-full w-full flex-col overflow-hidden rounded-md bg-transparent text-foreground",e),...t})}function nR({className:e,...t}){return w.jsxs("div",{className:"flex items-center gap-2 border-b border-[var(--acr-border)] px-2","cmdk-input-wrapper":"",children:[w.jsx(Tx,{className:"size-3.5 shrink-0 text-muted-foreground"}),w.jsx(_h.Input,{"data-slot":"command-input",className:At("flex h-8 w-full bg-transparent text-[13px] outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function iR({className:e,...t}){return w.jsx(_h.List,{"data-slot":"command-list",className:At("scrollbar-mac max-h-64 overflow-y-auto overflow-x-hidden p-1",e),...t})}function rR(e){return w.jsx(_h.Empty,{"data-slot":"command-empty",className:"py-4 text-center text-[13px] text-muted-foreground",...e})}function sR({className:e,...t}){return w.jsx(_h.Group,{"data-slot":"command-group",className:At("overflow-hidden text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1 [&_[cmdk-group-heading]]:text-[11px] [&_[cmdk-group-heading]]:[letter-spacing:var(--text-subheadline-tracking)] [&_[cmdk-group-heading]]:text-muted-foreground",e),...t})}function aR({className:e,...t}){return w.jsx(_h.Item,{"data-slot":"command-item",className:At("relative flex cursor-default select-none items-center gap-2 rounded-[6px] px-2 py-1.5 text-[13px] outline-none","data-[selected=true]:bg-[var(--acr-hover)] data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50",e),...t})}function CU({open:e,onOpenChange:t,conn:n,onPick:i,surface:a}){const[o,c]=M.useState(""),[d,h]=M.useState(null),[m,b]=M.useState(!1),y=M.useRef(0);M.useEffect(()=>{if(!e)return;const R=++y.current;b(!0);const N=setTimeout(()=>{Ie.searchAllPluginSources(n,{query:o,limit:o.trim()?100:60,surface:a}).then(z=>{y.current===R&&h(z)}).catch(()=>{y.current===R&&h(null)}).finally(()=>{y.current===R&&b(!1)})},160);return()=>clearTimeout(N)},[e,o,n.baseUrl,a]),M.useEffect(()=>{e&&c("")},[e]);const T=(d==null?void 0:d.sources)??[],k=(d==null?void 0:d.plugins)??[];return w.jsx(nd,{open:e,onOpenChange:t,children:w.jsxs(uc,{showCloseButton:!1,className:"max-w-xl gap-0 overflow-hidden p-0",children:[w.jsx(dc,{className:"sr-only",children:"搜索全部插件源"}),w.jsxs(eR,{shouldFilter:!1,className:"max-h-[60vh]",children:[w.jsx(nR,{value:o,onValueChange:c,placeholder:"搜索全部插件的源…",autoFocus:!0}),w.jsxs(iR,{className:"max-h-[52vh] p-1.5",children:[!m&&T.length===0?w.jsx(rR,{children:"没有匹配的源"}):null,k.map(R=>{const N=T.filter(z=>z.pluginId===R.id);return N.length?w.jsx(sR,{heading:`${R.name} · ${R.count}`,children:N.map(z=>{var L;return w.jsxs(aR,{value:`${z.pluginId}:${z.id}`,onSelect:()=>{t(!1),i(z)},children:[w.jsx("span",{className:"flex size-5 shrink-0 items-center justify-center overflow-hidden rounded-[5px] bg-[var(--acr-card-nested)]",children:w.jsx(jx,{id:z.id,name:z.title,facilityKey:(L=z.facility)==null?void 0:L.key})}),w.jsx("span",{className:"min-w-0 flex-1 truncate",children:z.title}),z.description&&z.description!==z.title?w.jsx("span",{className:"hidden max-w-[45%] shrink truncate text-[11px] text-muted-foreground sm:block",children:z.description}):null]},`${z.pluginId}:${z.id}`)})},R.id):null})]})]})]})})}const TU=uo(At("relative flex items-center w-full min-w-0 rounded-full outline-none","transition-[background-color,border-color,box-shadow] [transition-timing-function:var(--acr-spring-default)] [transition-duration:var(--acr-spring-default-duration)]","text-foreground selection:bg-primary selection:text-primary-foreground","disabled:cursor-not-allowed disabled:opacity-50"),{variants:{variant:{default:"border border-[var(--acr-input-border)] bg-[var(--acr-input)] hover:border-[var(--acr-border)] focus-within:border-ring focus-within:ring-[3px] focus-within:ring-ring/25","over-glass":"bg-[var(--acr-chip)] hover:bg-[var(--acr-chip-hover)] border border-transparent focus-within:border-ring focus-within:ring-[3px] focus-within:ring-ring/25"},size:{mini:"h-4 pl-5 pr-4 text-[10px] [letter-spacing:var(--text-footnote-tracking)]",small:"h-5 pl-6 pr-5 text-[11px] [letter-spacing:var(--text-subheadline-tracking)]",medium:"h-6 pl-7 pr-6 text-[13px]",large:"h-7 pl-8 pr-6 text-[15px]",xl:"h-9 pl-9 pr-8 text-[17px] [letter-spacing:var(--text-title2-tracking)]"}},defaultVariants:{variant:"default",size:"medium"}}),Wx=M.forwardRef(({className:e,variant:t,size:n="medium",onClear:i,shortcut:a,value:o,onChange:c,disabled:d,...h},m)=>{const[b,y]=M.useState(""),T=o!==void 0,k=T?o:b,R=()=>{T||y(""),i==null||i(),c&&c({target:{value:""},currentTarget:{value:""}})},N=L=>{T||y(L.target.value),c==null||c(L)},z=k!=="";return w.jsxs("div",{"data-slot":"searchbar",className:At(TU({variant:t,size:n,className:e})),children:[w.jsx(Tx,{className:At("absolute text-muted-foreground pointer-events-none",{"left-1.5 size-3":n==="mini"||n==="small","left-2 size-3.5":n==="medium"||!n,"left-2 size-4":n==="large","left-2.5 size-4.5":n==="xl"})}),w.jsx("input",{ref:m,type:"text",value:k,onChange:N,disabled:d,className:At("w-full h-full bg-transparent border-0 outline-none p-0 focus:ring-0 focus:outline-none placeholder:text-muted-foreground"),...h}),z&&!d&&w.jsx("button",{type:"button",onClick:R,className:At("absolute top-1/2 -translate-y-1/2 flex items-center justify-center rounded-full bg-muted-foreground/30 hover:bg-muted-foreground/45 text-background focus:outline-none transition-[background-color,scale] active:scale-90",{"right-1 size-3":n==="mini","right-1 size-3.5":n==="small","right-1.5 size-3.5":n==="medium"||!n,"right-1.5 size-4":n==="large","right-2 size-4.5":n==="xl"}),children:w.jsx(Ex,{className:At({"size-2":n==="mini","size-2.5":n==="small"||n==="medium"||n==="large"||!n,"size-3":n==="xl"})})}),!z&&a&&!d?w.jsx("kbd",{"aria-hidden":!0,className:At("pointer-events-none absolute top-1/2 -translate-y-1/2 inline-flex items-center gap-0.5 rounded border border-[var(--acr-border-soft)] bg-[var(--acr-chip)] font-sans font-medium leading-none text-muted-foreground",{"right-1 px-1 py-0.5 text-[9px]":n==="mini"||n==="small","right-1.5 px-1 py-0.5 text-[10px]":n==="medium"||n==="large"||!n,"right-2 px-1.5 py-1 text-[11px]":n==="xl"}),children:a}):null]})});Wx.displayName="Searchbar";function EU({...e}){return w.jsx(RE,{"data-slot":"hover-card",...e})}function MU({...e}){return w.jsx(kE,{"data-slot":"hover-card-trigger",...e})}function RU({className:e,align:t="center",sideOffset:n=4,container:i,...a}){return w.jsx(_E,{container:i,children:w.jsx(mx,{"data-slot":"hover-card-content",align:t,sideOffset:n,className:At("z-50 w-64 rounded-[10px] bg-[var(--acr-panel)] p-4 text-foreground backdrop-blur-xl shadow-[0_0_0_1px_rgba(190,190,190,0.16),0_16px_48px_rgba(0,0,0,0.45)] outline-none","origin-(--radix-hover-card-content-transform-origin) data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 [animation-timing-function:var(--acr-spring-default)]! [animation-duration:var(--acr-spring-default-duration)]!",e),...a})})}const oR=M.createContext({});function Kx(e){const t=M.useRef(null);return t.current===null&&(t.current=e()),t.current}const lR=typeof window<"u"?M.useLayoutEffect:M.useEffect,Xx=M.createContext(null);function Qx(e,t){e.indexOf(t)===-1&&e.push(t)}function Nh(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const fo=(e,t,n)=>n>t?t:n<e?e:n;function cR(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let zh=()=>{},mc=()=>{};typeof process<"u"&&((K_=process.env)==null?void 0:K_.NODE_ENV)!=="production"&&(zh=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(cR(t,n))},mc=(e,t,n)=>{if(!e)throw new Error(cR(t,n))});const gc={},uR=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),dR=e=>typeof e=="object"&&e!==null,hR=e=>/^0[^.\s]+$/u.test(e);function fR(e){let t;return()=>(t===void 0&&(t=e()),t)}const Js=e=>e,cm=(...e)=>e.reduce((t,n)=>i=>n(t(i))),Dh=(e,t,n)=>{const i=t-e;return i?(n-e)/i:1};class Zx{constructor(){this.subscriptions=[]}add(t){return Qx(this.subscriptions,t),()=>Nh(this.subscriptions,t)}notify(t,n,i){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,i);else for(let o=0;o<a;o++){const c=this.subscriptions[o];c&&c(t,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Cr=e=>e*1e3,qs=e=>e/1e3,mR=(e,t)=>t?e*(1e3/t):0,kU=(e,t,n)=>{const i=t-e;return((n-e)%i+i)%i+e},gR=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,_U=1e-7,AU=12;function NU(e,t,n,i,a){let o,c,d=0;do c=t+(n-t)/2,o=gR(c,i,a)-e,o>0?n=c:t=c;while(Math.abs(o)>_U&&++d<AU);return c}function um(e,t,n,i){if(e===t&&n===i)return Js;const a=o=>NU(o,0,1,e,n);return o=>o===0||o===1?o:gR(a(o),t,i)}const pR=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Jx=e=>t=>1-e(1-t),vR=um(.33,1.53,.69,.99),qx=Jx(vR),yR=pR(qx),bR=e=>e>=1?1:(e*=2)<1?.5*qx(e):.5*(2-Math.pow(2,-10*(e-1))),$x=e=>1-Math.sin(Math.acos(e)),xR=Jx($x),wR=pR($x),zU=um(.42,0,1,1),DU=um(0,0,.58,1),SR=um(.42,0,.58,1),CR=e=>Array.isArray(e)&&typeof e[0]!="number";function TR(e,t){return CR(e)?e[kU(0,e.length,t)]:e}const ER=e=>Array.isArray(e)&&typeof e[0]=="number",MR={linear:Js,easeIn:zU,easeInOut:SR,easeOut:DU,circIn:$x,circInOut:wR,circOut:xR,backIn:qx,backInOut:yR,backOut:vR,anticipate:bR},OU=e=>typeof e=="string",RR=e=>{if(ER(e)){mc(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,i,a]=e;return um(t,n,i,a)}else if(OU(e))return mc(MR[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),MR[e];return e},ov=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function PU(e){let t=new Set,n=new Set,i=!1,a=!1;const o=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function d(m){o.has(m)&&(h.schedule(m),e()),m(c)}const h={schedule:(m,b=!1,y=!1)=>{const k=y&&i?t:n;return b&&o.add(m),k.add(m),m},cancel:m=>{n.delete(m),o.delete(m)},process:m=>{if(c=m,i){a=!0;return}i=!0;const b=t;t=n,n=b,t.forEach(d),t.clear(),i=!1,a&&(a=!1,h.process(m))}};return h}const LU=40;function kR(e,t){let n=!1,i=!0;const a={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,c=ov.reduce((F,B)=>(F[B]=PU(o),F),{}),{setup:d,read:h,resolveKeyframes:m,preUpdate:b,update:y,preRender:T,render:k,postRender:R}=c,N=()=>{const F=gc.useManualTiming,B=F?a.timestamp:performance.now();n=!1,F||(a.delta=i?1e3/60:Math.max(Math.min(B-a.timestamp,LU),1)),a.timestamp=B,a.isProcessing=!0,d.process(a),h.process(a),m.process(a),b.process(a),y.process(a),T.process(a),k.process(a),R.process(a),a.isProcessing=!1,n&&t&&(i=!1,e(N))},z=()=>{n=!0,i=!0,a.isProcessing||e(N)};return{schedule:ov.reduce((F,B)=>{const Y=c[B];return F[B]=(Z,et=!1,q=!1)=>(n||z(),Y.schedule(Z,et,q)),F},{}),cancel:F=>{for(let B=0;B<ov.length;B++)c[ov[B]].cancel(F)},state:a,steps:c}}const{schedule:dn,cancel:hl,state:tr,steps:tw}=kR(typeof requestAnimationFrame<"u"?requestAnimationFrame:Js,!0);let lv;function IU(){lv=void 0}const Tr={now:()=>(lv===void 0&&Tr.set(tr.isProcessing||gc.useManualTiming?tr.timestamp:performance.now()),lv),set:e=>{lv=e,queueMicrotask(IU)}},_R=e=>t=>typeof t=="string"&&t.startsWith(e),AR=_R("--"),BU=_R("var(--"),ew=e=>BU(e)?jU.test(e.split("/*")[0].trim()):!1,jU=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function NR(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Oh={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},dm={...Oh,transform:e=>fo(0,1,e)},cv={...Oh,default:1},hm=e=>Math.round(e*1e5)/1e5,nw=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function FU(e){return e==null}const UU=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,iw=(e,t)=>n=>!!(typeof n=="string"&&UU.test(n)&&n.startsWith(e)||t&&!FU(n)&&Object.prototype.hasOwnProperty.call(n,t)),zR=(e,t,n)=>i=>{if(typeof i!="string")return i;const[a,o,c,d]=i.match(nw);return{[e]:parseFloat(a),[t]:parseFloat(o),[n]:parseFloat(c),alpha:d!==void 0?parseFloat(d):1}},VU=e=>fo(0,255,e),rw={...Oh,transform:e=>Math.round(VU(e))},ad={test:iw("rgb","red"),parse:zR("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+rw.transform(e)+", "+rw.transform(t)+", "+rw.transform(n)+", "+hm(dm.transform(i))+")"};function HU(e){let t="",n="",i="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,i+=i,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:a?parseInt(a,16)/255:1}}const sw={test:iw("#"),parse:HU,transform:ad.transform},fm=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),fl=fm("deg"),mo=fm("%"),te=fm("px"),GU=fm("vh"),YU=fm("vw"),DR={...mo,parse:e=>mo.parse(e)/100,transform:e=>mo.transform(e*100)},Ph={test:iw("hsl","hue"),parse:zR("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+mo.transform(hm(t))+", "+mo.transform(hm(n))+", "+hm(dm.transform(i))+")"},hi={test:e=>ad.test(e)||sw.test(e)||Ph.test(e),parse:e=>ad.test(e)?ad.parse(e):Ph.test(e)?Ph.parse(e):sw.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ad.transform(e):Ph.transform(e),getAnimatableNone:e=>{const t=hi.parse(e);return t.alpha=0,hi.transform(t)}},WU=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function KU(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(nw))==null?void 0:t.length)||0)+(((n=e.match(WU))==null?void 0:n.length)||0)>0}const OR="number",PR="color",XU="var",QU="var(",LR="${}",ZU=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Lh(e){const t=e.toString(),n=[],i={color:[],number:[],var:[]},a=[];let o=0;const d=t.replace(ZU,h=>(hi.test(h)?(i.color.push(o),a.push(PR),n.push(hi.parse(h))):h.startsWith(QU)?(i.var.push(o),a.push(XU),n.push(h)):(i.number.push(o),a.push(OR),n.push(parseFloat(h))),++o,LR)).split(LR);return{values:n,split:d,indexes:i,types:a}}function JU(e){return Lh(e).values}function IR({split:e,types:t}){const n=e.length;return i=>{let a="";for(let o=0;o<n;o++)if(a+=e[o],i[o]!==void 0){const c=t[o];c===OR?a+=hm(i[o]):c===PR?a+=hi.transform(i[o]):a+=i[o]}return a}}function qU(e){return IR(Lh(e))}const $U=e=>typeof e=="number"?0:hi.test(e)?hi.getAnimatableNone(e):e,t6=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:$U(e);function e6(e){const t=Lh(e);return IR(t)(t.values.map((i,a)=>t6(i,t.split[a])))}const Sa={test:KU,parse:JU,createTransformer:qU,getAnimatableNone:e6};function aw(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<.16666666666666666?e+(t-e)*6*n:n<.5?t:n<.6666666666666666?e+(t-e)*(.6666666666666666-n)*6:e}function n6({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let a=0,o=0,c=0;if(!t)a=o=c=n;else{const d=n<.5?n*(1+t):n+t-n*t,h=2*n-d;a=aw(h,d,e+.3333333333333333),o=aw(h,d,e),c=aw(h,d,e-.3333333333333333)}return{red:Math.round(a*255),green:Math.round(o*255),blue:Math.round(c*255),alpha:i}}function uv(e,t){return n=>n>0?t:e}const hn=(e,t,n)=>e+(t-e)*n,ow=(e,t,n)=>{const i=e*e,a=n*(t*t-i)+i;return a<0?0:Math.sqrt(a)},i6=[sw,ad,Ph],r6=e=>i6.find(t=>t.test(e));function BR(e){const t=r6(e);if(zh(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===Ph&&(n=n6(n)),n}const jR=(e,t)=>{const n=BR(e),i=BR(t);if(!n||!i)return uv(e,t);const a={...n};return o=>(a.red=ow(n.red,i.red,o),a.green=ow(n.green,i.green,o),a.blue=ow(n.blue,i.blue,o),a.alpha=hn(n.alpha,i.alpha,o),ad.transform(a))},lw=new Set(["none","hidden"]);function s6(e,t){return lw.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function a6(e,t){return n=>hn(e,t,n)}function cw(e){return typeof e=="number"?a6:typeof e=="string"?ew(e)?uv:hi.test(e)?jR:c6:Array.isArray(e)?FR:typeof e=="object"?hi.test(e)?jR:o6:uv}function FR(e,t){const n=[...e],i=n.length,a=e.map((o,c)=>cw(o)(o,t[c]));return o=>{for(let c=0;c<i;c++)n[c]=a[c](o);return n}}function o6(e,t){const n={...e,...t},i={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(i[a]=cw(e[a])(e[a],t[a]));return a=>{for(const o in i)n[o]=i[o](a);return n}}function l6(e,t){const n=[],i={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const o=t.types[a],c=e.indexes[o][i[o]],d=e.values[c]??0;n[a]=d,i[o]++}return n}const c6=(e,t)=>{const n=Sa.createTransformer(t),i=Lh(e),a=Lh(t);return i.indexes.var.length===a.indexes.var.length&&i.indexes.color.length===a.indexes.color.length&&i.indexes.number.length>=a.indexes.number.length?lw.has(e)&&!a.values.length||lw.has(t)&&!i.values.length?s6(e,t):cm(FR(l6(i,a),a.values),n):(zh(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),uv(e,t))};function UR(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?hn(e,t,n):cw(e)(e,t)}const u6=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>dn.update(t,n),stop:()=>hl(t),now:()=>tr.isProcessing?tr.timestamp:Tr.now()}},VR=(e,t,n=10)=>{let i="";const a=Math.max(Math.round(t/n),2);for(let o=0;o<a;o++)i+=Math.round(e(o/(a-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},dv=2e4;function uw(e){let t=0;const n=50;let i=e.next(t);for(;!i.done&&t<dv;)t+=n,i=e.next(t);return t>=dv?1/0:t}function HR(e,t=100,n){const i=n({...e,keyframes:[0,t]}),a=Math.min(uw(i),dv);return{type:"keyframes",ease:o=>i.next(a*o).value/t,duration:qs(a)}}const In={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function dw(e,t){return e*Math.sqrt(1-t*t)}const d6=12;function h6(e,t,n){let i=n;for(let a=1;a<d6;a++)i=i-e(i)/t(i);return i}const hw=.001;function f6({duration:e=In.duration,bounce:t=In.bounce,velocity:n=In.velocity,mass:i=In.mass}){let a,o;zh(e<=Cr(In.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let c=1-t;c=fo(In.minDamping,In.maxDamping,c),e=fo(In.minDuration,In.maxDuration,qs(e)),c<1?(a=m=>{const b=m*c,y=b*e,T=b-n,k=dw(m,c),R=Math.exp(-y);return hw-T/k*R},o=m=>{const y=m*c*e,T=y*n+n,k=Math.pow(c,2)*Math.pow(m,2)*e,R=Math.exp(-y),N=dw(Math.pow(m,2),c);return(-a(m)+hw>0?-1:1)*((T-k)*R)/N}):(a=m=>{const b=Math.exp(-m*e),y=(m-n)*e+1;return-hw+b*y},o=m=>{const b=Math.exp(-m*e),y=(n-m)*(e*e);return b*y});const d=5/e,h=h6(a,o,d);if(e=Cr(e),isNaN(h))return{stiffness:In.stiffness,damping:In.damping,duration:e};{const m=Math.pow(h,2)*i;return{stiffness:m,damping:c*2*Math.sqrt(i*m),duration:e}}}const m6=["duration","bounce"],g6=["stiffness","damping","mass"];function GR(e,t){return t.some(n=>e[n]!==void 0)}function p6(e){let t={velocity:In.velocity,stiffness:In.stiffness,damping:In.damping,mass:In.mass,isResolvedFromDuration:!1,...e};if(!GR(e,g6)&&GR(e,m6))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,i=2*Math.PI/(n*1.2),a=i*i,o=2*fo(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:In.mass,stiffness:a,damping:o}}else{const n=f6({...e,velocity:0});t={...t,...n,mass:In.mass},t.isResolvedFromDuration=!0}return t}function mm(e=In.visualDuration,t=In.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:i,restDelta:a}=n;const o=n.keyframes[0],c=n.keyframes[n.keyframes.length-1],d={done:!1,value:o},{stiffness:h,damping:m,mass:b,duration:y,velocity:T,isResolvedFromDuration:k}=p6({...n,velocity:-qs(n.velocity||0)}),R=T||0,N=m/(2*Math.sqrt(h*b)),z=c-o,L=qs(Math.sqrt(h/b)),I=Math.abs(z)<5;i||(i=I?In.restSpeed.granular:In.restSpeed.default),a||(a=I?In.restDelta.granular:In.restDelta.default);let F,B,Y,Z,et,q;if(N<1)Y=dw(L,N),Z=(R+N*L*z)/Y,F=ot=>{const Ct=Math.exp(-N*L*ot);return c-Ct*(Z*Math.sin(Y*ot)+z*Math.cos(Y*ot))},et=N*L*Z+z*Y,q=N*L*z-Z*Y,B=ot=>Math.exp(-N*L*ot)*(et*Math.sin(Y*ot)+q*Math.cos(Y*ot));else if(N===1){F=Ct=>c-Math.exp(-L*Ct)*(z+(R+L*z)*Ct);const ot=R+L*z;B=Ct=>Math.exp(-L*Ct)*(L*ot*Ct-R)}else{const ot=L*Math.sqrt(N*N-1);F=Rt=>{const ut=Math.exp(-N*L*Rt),j=Math.min(ot*Rt,300);return c-ut*((R+N*L*z)*Math.sinh(j)+ot*z*Math.cosh(j))/ot};const Ct=(R+N*L*z)/ot,ct=N*L*Ct-z*ot,mt=N*L*z-Ct*ot;B=Rt=>{const ut=Math.exp(-N*L*Rt),j=Math.min(ot*Rt,300);return ut*(ct*Math.sinh(j)+mt*Math.cosh(j))}}const nt={calculatedDuration:k&&y||null,velocity:ot=>Cr(B(ot)),next:ot=>{if(!k&&N<1){const ct=Math.exp(-N*L*ot),mt=Math.sin(Y*ot),Rt=Math.cos(Y*ot),ut=c-ct*(Z*mt+z*Rt),j=Cr(ct*(et*mt+q*Rt));return d.done=Math.abs(j)<=i&&Math.abs(c-ut)<=a,d.value=d.done?c:ut,d}const Ct=F(ot);if(k)d.done=ot>=y;else{const ct=Cr(B(ot));d.done=Math.abs(ct)<=i&&Math.abs(c-Ct)<=a}return d.value=d.done?c:Ct,d},toString:()=>{const ot=Math.min(uw(nt),dv),Ct=VR(ct=>nt.next(ot*ct).value,ot,30);return ot+"ms "+Ct},toTransition:()=>{}};return nt}mm.applyToOptions=e=>{const t=HR(e,100,mm);return e.ease=t.ease,e.duration=Cr(t.duration),e.type="keyframes",e};const v6=5;function YR(e,t,n){const i=Math.max(t-v6,0);return mR(n-e(i),t-i)}function fw({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:a=10,bounceStiffness:o=500,modifyTarget:c,min:d,max:h,restDelta:m=.5,restSpeed:b}){const y=e[0],T={done:!1,value:y},k=q=>d!==void 0&&q<d||h!==void 0&&q>h,R=q=>d===void 0?h:h===void 0||Math.abs(d-q)<Math.abs(h-q)?d:h;let N=n*t;const z=y+N,L=c===void 0?z:c(z);L!==z&&(N=L-y);const I=q=>-N*Math.exp(-q/i),F=q=>L+I(q),B=q=>{const nt=I(q),ot=F(q);T.done=Math.abs(nt)<=m,T.value=T.done?L:ot};let Y,Z;const et=q=>{k(T.value)&&(Y=q,Z=mm({keyframes:[T.value,R(T.value)],velocity:YR(F,q,T.value),damping:a,stiffness:o,restDelta:m,restSpeed:b}))};return et(0),{calculatedDuration:null,next:q=>{let nt=!1;return!Z&&Y===void 0&&(nt=!0,B(q),et(q)),Y!==void 0&&q>=Y?Z.next(q-Y):(!nt&&B(q),T)}}}function y6(e,t,n){const i=[],a=n||gc.mix||UR,o=e.length-1;for(let c=0;c<o;c++){let d=a(e[c],e[c+1]);if(t){const h=Array.isArray(t)?t[c]||Js:t;d=cm(h,d)}i.push(d)}return i}function WR(e,t,{clamp:n=!0,ease:i,mixer:a}={}){const o=e.length;if(mc(o===t.length,"Both input and output ranges must be the same length","range-length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const c=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const d=y6(t,i,a),h=d.length,m=b=>{if(c&&b<e[0])return t[0];let y=0;if(h>1)for(;y<e.length-2&&!(b<e[y+1]);y++);const T=Dh(e[y],e[y+1],b);return d[y](T)};return n?b=>m(fo(e[0],e[o-1],b)):m}function KR(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const a=Dh(0,t,i);e.push(hn(n,1,a))}}function XR(e){const t=[0];return KR(t,e.length-1),t}function b6(e,t){return e.map(n=>n*t)}function x6(e,t){return e.map(()=>t||SR).splice(0,e.length-1)}function gm({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){const a=CR(i)?i.map(RR):RR(i),o={done:!1,value:t[0]},c=b6(n&&n.length===t.length?n:XR(t),e),d=WR(c,t,{ease:Array.isArray(a)?a:x6(t,a)});return{calculatedDuration:e,next:h=>(o.value=d(h),o.done=h>=e,o)}}const w6=e=>e!==null;function hv(e,{repeat:t,repeatType:n="loop"},i,a=1){const o=e.filter(w6),d=a<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!d||i===void 0?o[d]:i}const S6={decay:fw,inertia:fw,tween:gm,keyframes:gm,spring:mm};function QR(e){typeof e.type=="string"&&(e.type=S6[e.type])}class mw{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const C6=e=>e/100;class fv extends mw{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var i,a;const{motionValue:n}=this.options;n&&n.updatedAt!==Tr.now()&&this.tick(Tr.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(a=(i=this.options).onStop)==null||a.call(i))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;QR(t);const{type:n=gm,repeat:i=0,repeatDelay:a=0,repeatType:o,velocity:c=0}=t;let{keyframes:d}=t;const h=n||gm;h!==gm&&typeof d[0]!="number"&&(this.mixKeyframes=cm(C6,UR(d[0],d[1])),d=[0,100]);const m=h({...t,keyframes:d});o==="mirror"&&(this.mirroredGenerator=h({...t,keyframes:[...d].reverse(),velocity:-c})),m.calculatedDuration===null&&(m.calculatedDuration=uw(m));const{calculatedDuration:b}=m;this.calculatedDuration=b,this.resolvedDuration=b+a,this.totalDuration=this.resolvedDuration*(i+1)-a,this.generator=m}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:i,totalDuration:a,mixKeyframes:o,mirroredGenerator:c,resolvedDuration:d,calculatedDuration:h}=this;if(this.startTime===null)return i.next(0);const{delay:m=0,keyframes:b,repeat:y,repeatType:T,repeatDelay:k,type:R,onUpdate:N,finalKeyframe:z}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const L=this.currentTime-m*(this.playbackSpeed>=0?1:-1),I=this.playbackSpeed>=0?L<0:L>a;this.currentTime=Math.max(L,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let F=this.currentTime,B=i;if(y){const q=Math.min(this.currentTime,a)/d;let nt=Math.floor(q),ot=q%1;!ot&&q>=1&&(ot=1),ot===1&&nt--,nt=Math.min(nt,y+1),!!(nt%2)&&(T==="reverse"?(ot=1-ot,k&&(ot-=k/d)):T==="mirror"&&(B=c)),F=fo(0,1,ot)*d}let Y;I?(this.delayState.value=b[0],Y=this.delayState):Y=B.next(F),o&&!I&&(Y.value=o(Y.value));let{done:Z}=Y;!I&&h!==null&&(Z=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const et=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&Z);return et&&R!==fw&&(Y.value=hv(b,this.options,z,this.speed)),N&&N(Y.value),et&&this.finish(),Y}then(t,n){return this.finished.then(t,n)}get duration(){return qs(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+qs(t)}get time(){return qs(this.currentTime)}set time(t){t=Cr(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return YR(i=>this.generator.next(i).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(Tr.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=qs(this.currentTime))}play(){var a,o;if(this.isStopped)return;const{driver:t=u6,startTime:n}=this.options;this.driver||(this.driver=t(c=>this.tick(c))),(o=(a=this.options).onPlay)==null||o.call(a);const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=n??i),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Tr.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function T6(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const od=e=>e*180/Math.PI,gw=e=>{const t=od(Math.atan2(e[1],e[0]));return pw(t)},E6={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:gw,rotateZ:gw,skewX:e=>od(Math.atan(e[1])),skewY:e=>od(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},pw=e=>(e=e%360,e<0&&(e+=360),e),ZR=gw,JR=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),qR=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),M6={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:JR,scaleY:qR,scale:e=>(JR(e)+qR(e))/2,rotateX:e=>pw(od(Math.atan2(e[6],e[5]))),rotateY:e=>pw(od(Math.atan2(-e[2],e[0]))),rotateZ:ZR,rotate:ZR,skewX:e=>od(Math.atan(e[4])),skewY:e=>od(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function vw(e){return e.includes("scale")?1:0}function yw(e,t){if(!e||e==="none")return vw(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,a;if(n)i=M6,a=n;else{const d=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=E6,a=d}if(!a)return vw(t);const o=i[t],c=a[1].split(",").map(k6);return typeof o=="function"?o(c):c[o]}const R6=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return yw(n,t)};function k6(e){return parseFloat(e.trim())}const Ih=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Bh=new Set([...Ih,"pathRotation"]),$R=e=>e===Oh||e===te,_6=new Set(["x","y","z"]),A6=Ih.filter(e=>!_6.has(e));function N6(e){const t=[];return A6.forEach(n=>{const i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}const pc={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:i})=>{const a=e.max-e.min;return i==="border-box"?a:a-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:i})=>{const a=e.max-e.min;return i==="border-box"?a:a-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>yw(t,"x"),y:(e,{transform:t})=>yw(t,"y")};pc.translateX=pc.x,pc.translateY=pc.y;const ld=new Set;let bw=!1,xw=!1,ww=!1;function t2(){if(xw){const e=Array.from(ld).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{const a=N6(i);a.length&&(n.set(i,a),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const a=n.get(i);a&&a.forEach(([o,c])=>{var d;(d=i.getValue(o))==null||d.set(c)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}xw=!1,bw=!1,ld.forEach(e=>e.complete(ww)),ld.clear()}function e2(){ld.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(xw=!0)})}function z6(){ww=!0,e2(),t2(),ww=!1}class Sw{constructor(t,n,i,a,o,c=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=i,this.motionValue=a,this.element=o,this.isAsync=c}scheduleResolve(){this.state="scheduled",this.isAsync?(ld.add(this),bw||(bw=!0,dn.read(e2),dn.resolveKeyframes(t2))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:i,motionValue:a}=this;if(t[0]===null){const o=a==null?void 0:a.get(),c=t[t.length-1];if(o!==void 0)t[0]=o;else if(i&&n){const d=i.readValue(n,c);d!=null&&(t[0]=d)}t[0]===void 0&&(t[0]=c),a&&o===void 0&&a.set(t[0])}T6(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ld.delete(this)}cancel(){this.state==="scheduled"&&(ld.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const D6=e=>e.startsWith("--");function n2(e,t,n){D6(t)?e.style.setProperty(t,n):e.style[t]=n}const O6={};function i2(e,t){const n=fR(e);return()=>O6[t]??n()}const P6=i2(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),r2=i2(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),pm=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,s2={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:pm([0,.65,.55,1]),circOut:pm([.55,0,1,.45]),backIn:pm([.31,.01,.66,-.59]),backOut:pm([.33,1.53,.69,.99])};function a2(e,t){if(e)return typeof e=="function"?r2()?VR(e,t):"ease-out":ER(e)?pm(e):Array.isArray(e)?e.map(n=>a2(n,t)||s2.easeOut):s2[e]}function L6(e,t,n,{delay:i=0,duration:a=300,repeat:o=0,repeatType:c="loop",ease:d="easeOut",times:h}={},m=void 0){const b={[t]:n};h&&(b.offset=h);const y=a2(d,a);Array.isArray(y)&&(b.easing=y);const T={delay:i,duration:a,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:o+1,direction:c==="reverse"?"alternate":"normal"};return m&&(T.pseudoElement=m),e.animate(b,T)}function Cw(e){return typeof e=="function"&&"applyToOptions"in e}function I6({type:e,...t}){return Cw(e)&&r2()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class o2 extends mw{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:i,keyframes:a,pseudoElement:o,allowFlatten:c=!1,finalKeyframe:d,onComplete:h}=t;this.isPseudoElement=!!o,this.allowFlatten=c,this.options=t,mc(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const m=I6(t);this.animation=L6(n,i,a,m,o),m.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const b=hv(a,this.options,d,this.speed);this.updateMotionValue&&this.updateMotionValue(b),n2(n,i,b),this.animation.cancel()}h==null||h(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,i,a;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((a=(i=this.animation).commitStyles)==null||a.call(i))}get duration(){var n,i;const t=((i=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:i.call(n).duration)||0;return qs(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+qs(t)}get time(){return qs(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Cr(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:i,observe:a}){var o;return this.allowFlatten&&((o=this.animation.effect)==null||o.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&P6()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),i&&(this.animation.rangeEnd=i),Js):a(this)}}const l2={anticipate:bR,backInOut:yR,circInOut:wR};function B6(e){return e in l2}function j6(e){typeof e.ease=="string"&&B6(e.ease)&&(e.ease=l2[e.ease])}const Tw=10;class F6 extends o2{constructor(t){j6(t),QR(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:i,onComplete:a,element:o,...c}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const d=new fv({...c,autoplay:!1}),h=Math.max(Tw,Tr.now()-this.startTime),m=fo(0,Tw,h-Tw),b=d.sample(h).value,{name:y}=this.options;o&&y&&n2(o,y,b),n.setWithVelocity(d.sample(Math.max(0,h-m)).value,b,m),d.stop()}}const c2=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Sa.test(e)||e==="0")&&!e.startsWith("url("));function U6(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function V6(e,t,n,i){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],c=c2(a,t),d=c2(o,t);return zh(c===d,`You are trying to animate ${t} from "${a}" to "${o}". "${c?o:a}" is not an animatable value.`,"value-not-animatable"),!c||!d?!1:U6(e)||(n==="spring"||Cw(n))&&i}function Ew(e){e.duration=0,e.type="keyframes"}const u2=new Set(["opacity","clipPath","filter","transform"]),H6=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function G6(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&H6.test(e[t]))return!0;return!1}const Y6=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),W6=fR(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function K6(e){var y;const{motionValue:t,name:n,repeatDelay:i,repeatType:a,damping:o,type:c,keyframes:d}=e;if(!(((y=t==null?void 0:t.owner)==null?void 0:y.current)instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:b}=t.owner.getProps();return W6()&&n&&(u2.has(n)||Y6.has(n)&&G6(d))&&(n!=="transform"||!b)&&!m&&!i&&a!=="mirror"&&o!==0&&c!=="inertia"}const X6=40;class Q6 extends mw{constructor({autoplay:t=!0,delay:n=0,type:i="keyframes",repeat:a=0,repeatDelay:o=0,repeatType:c="loop",keyframes:d,name:h,motionValue:m,element:b,...y}){var R;super(),this.stop=()=>{var N,z;this._animation&&(this._animation.stop(),(N=this.stopTimeline)==null||N.call(this)),(z=this.keyframeResolver)==null||z.cancel()},this.createdAt=Tr.now();const T={autoplay:t,delay:n,type:i,repeat:a,repeatDelay:o,repeatType:c,name:h,motionValue:m,element:b,...y},k=(b==null?void 0:b.KeyframeResolver)||Sw;this.keyframeResolver=new k(d,(N,z,L)=>this.onKeyframesResolved(N,z,T,!L),h,m,b),(R=this.keyframeResolver)==null||R.scheduleResolve()}onKeyframesResolved(t,n,i,a){var L,I;this.keyframeResolver=void 0;const{name:o,type:c,velocity:d,delay:h,isHandoff:m,onUpdate:b}=i;this.resolvedAt=Tr.now();let y=!0;V6(t,o,c,d)||(y=!1,(gc.instantAnimations||!h)&&(b==null||b(hv(t,i,n))),t[0]=t[t.length-1],Ew(i),i.repeat=0);const k={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>X6?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...i,keyframes:t},R=y&&!m&&K6(k),N=(I=(L=k.motionValue)==null?void 0:L.owner)==null?void 0:I.current;let z;if(R)try{z=new F6({...k,element:N})}catch{z=new fv(k)}else z=new fv(k);z.finished.then(()=>{this.notifyFinished()}).catch(Js),this.pendingTimeline&&(this.stopTimeline=z.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=z}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),z6()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}class Z6{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=n}attachTimeline(t){const n=this.animations.map(i=>i.attachTimeline(t));return()=>{n.forEach((i,a)=>{i&&i(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return d2(this.animations,"duration")}get iterationDuration(){return d2(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(n=>n[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function d2(e,t){let n=0;for(let i=0;i<e.length;i++){const a=e[i][t];a!==null&&a>n&&(n=a)}return n}class J6 extends Z6{then(t,n){return this.finished.finally(t).then(()=>{})}}function h2(e,t,n,i=0,a=1){const o=Array.from(e).sort((m,b)=>m.sortNodePosition(b)).indexOf(t),c=e.size,d=(c-1)*i;return typeof n=="function"?n(o,c):a===1?o*i:d-o*i}const f2=30,q6=e=>!isNaN(parseFloat(e)),vm={current:void 0};class $6{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{var o;const a=Tr.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const c of this.dependents)c.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Tr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=q6(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Zx);const i=this.events[t].add(n);return t==="change"?()=>{i(),dn.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return vm.current&&vm.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Tr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>f2)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,f2);return mR(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function vc(e,t){return new $6(e,t)}function m2(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...i}=e;return{...t,...i}}return e}function Mw(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?m2(n,e):n}const tV={type:"spring",stiffness:500,damping:25,restSpeed:10},eV=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),nV={type:"keyframes",duration:.8},iV={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rV=(e,{keyframes:t})=>t.length>2?nV:Bh.has(e)?e.startsWith("scale")?eV(t[1]):tV:iV,sV=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function aV(e){for(const t in e)if(!sV.has(t))return!0;return!1}const Rw=(e,t,n,i={},a,o)=>c=>{const d=Mw(i,e)||{},h=d.delay||i.delay||0;let{elapsed:m=0}=i;m=m-Cr(h);const b={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...d,delay:-m,onUpdate:T=>{t.set(T),d.onUpdate&&d.onUpdate(T)},onComplete:()=>{c(),d.onComplete&&d.onComplete()},name:e,motionValue:t,element:o?void 0:a};aV(d)||Object.assign(b,rV(e,b)),b.duration&&(b.duration=Cr(b.duration)),b.repeatDelay&&(b.repeatDelay=Cr(b.repeatDelay)),b.from!==void 0&&(b.keyframes[0]=b.from);let y=!1;if((b.type===!1||b.duration===0&&!b.repeatDelay)&&(Ew(b),b.delay===0&&(y=!0)),(gc.instantAnimations||gc.skipAnimations||a!=null&&a.shouldSkipAnimations||d.skipAnimations)&&(y=!0,Ew(b),b.delay=0),b.allowFlatten=!d.type&&!d.ease,y&&!o&&t.get()!==void 0){const T=hv(b.keyframes,d);if(T!==void 0){dn.update(()=>{b.onUpdate(T),b.onComplete()});return}}return d.isSync?new fv(b):new Q6(b)},oV=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function lV(e){const t=oV.exec(e);if(!t)return[,];const[,n,i,a]=t;return[`--${n??i}`,a]}const cV=4;function g2(e,t,n=1){mc(n<=cV,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[i,a]=lV(e);if(!i)return;const o=window.getComputedStyle(t).getPropertyValue(i);if(o){const c=o.trim();return uR(c)?parseFloat(c):c}return ew(a)?g2(a,t,n+1):a}function p2(e){const t=[{},{}];return e==null||e.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function kw(e,t,n,i){if(typeof t=="function"){const[a,o]=p2(i);t=t(n!==void 0?n:e.custom,a,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,o]=p2(i);t=t(n!==void 0?n:e.custom,a,o)}return t}function cd(e,t,n){const i=e.getProps();return kw(i,t,n!==void 0?n:i.custom,e)}const v2=new Set(["width","height","top","left","right","bottom",...Ih]),_w=e=>Array.isArray(e);function uV(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,vc(n))}function dV(e){return _w(e)?e[e.length-1]||0:e}function hV(e,t){const n=cd(e,t);let{transitionEnd:i={},transition:a={},...o}=n||{};o={...o,...i};for(const c in o){const d=dV(o[c]);uV(e,c,d)}}const Ri=e=>!!(e&&e.getVelocity);function fV(e){return!!(Ri(e)&&e.add)}function Aw(e,t){const n=e.getValue("willChange");if(fV(n))return n.add(t);if(!n&&gc.WillChange){const i=new gc.WillChange("auto");e.addValue("willChange",i),i.add(t)}}function Nw(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const y2="data-"+Nw("framerAppearId");function b2(e){return e.props[y2]}function mV({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function zw(e,t,{delay:n=0,transitionOverride:i,type:a}={}){let{transition:o,transitionEnd:c,...d}=t;const h=e.getDefaultTransition();o=o?m2(o,h):h;const m=o==null?void 0:o.reduceMotion,b=o==null?void 0:o.skipAnimations;i&&(o=i);const y=[],T=a&&e.animationState&&e.animationState.getState()[a],k=o==null?void 0:o.path;k&&k.animateVisualElement(e,d,o,n,y);for(const R in d){const N=e.getValue(R,e.latestValues[R]??null),z=d[R];if(z===void 0||T&&mV(T,R))continue;const L={delay:n,...Mw(o||{},R)};b&&(L.skipAnimations=!0);const I=N.get();if(I!==void 0&&!N.isAnimating()&&!Array.isArray(z)&&z===I&&!L.velocity){dn.update(()=>N.set(z));continue}let F=!1;if(window.MotionHandoffAnimation){const Z=b2(e);if(Z){const et=window.MotionHandoffAnimation(Z,R,dn);et!==null&&(L.startTime=et,F=!0)}}Aw(e,R);const B=m??e.shouldReduceMotion;N.start(Rw(R,N,z,B&&v2.has(R)?{type:!1}:L,e,F));const Y=N.animation;Y&&y.push(Y)}if(c){const R=()=>dn.update(()=>{c&&hV(e,c)});y.length?Promise.all(y).then(R):R()}return y}function Dw(e,t,n={}){var h;const i=cd(e,t,n.type==="exit"?(h=e.presenceContext)==null?void 0:h.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);const o=i?()=>Promise.all(zw(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(m=0)=>{const{delayChildren:b=0,staggerChildren:y,staggerDirection:T}=a;return gV(e,t,m,b,y,T,n)}:()=>Promise.resolve(),{when:d}=a;if(d){const[m,b]=d==="beforeChildren"?[o,c]:[c,o];return m().then(()=>b())}else return Promise.all([o(),c(n.delay)])}function gV(e,t,n=0,i=0,a=0,o=1,c){const d=[];for(const h of e.variantChildren)h.notify("AnimationStart",t),d.push(Dw(h,t,{...c,delay:n+(typeof i=="function"?0:i)+h2(e.variantChildren,h,i,a,o)}).then(()=>h.notify("AnimationComplete",t)));return Promise.all(d)}function pV(e,t,n={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const a=t.map(o=>Dw(e,o,n));i=Promise.all(a)}else if(typeof t=="string")i=Dw(e,t,n);else{const a=typeof t=="function"?cd(e,t,n.custom):t;i=Promise.all(zw(e,a,n))}return i.then(()=>{e.notify("AnimationComplete",t)})}const vV={test:e=>e==="auto",parse:e=>e},x2=e=>t=>t.test(e),w2=[Oh,te,mo,fl,YU,GU,vV],S2=e=>w2.find(x2(e));function yV(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||hR(e):!0}const bV=new Set(["brightness","contrast","saturate","opacity"]);function xV(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=n.match(nw)||[];if(!i)return e;const a=n.replace(i,"");let o=bV.has(t)?1:0;return i!==n&&(o*=100),t+"("+o+a+")"}const wV=/\b([a-z-]*)\(.*?\)/gu,Ow={...Sa,getAnimatableNone:e=>{const t=e.match(wV);return t?t.map(xV).join(" "):e}},Pw={...Sa,getAnimatableNone:e=>{const t=Sa.parse(e);return Sa.createTransformer(e)(t.map(i=>typeof i=="number"?0:typeof i=="object"?{...i,alpha:1}:i))}},C2={...Oh,transform:Math.round},mv={borderWidth:te,borderTopWidth:te,borderRightWidth:te,borderBottomWidth:te,borderLeftWidth:te,borderRadius:te,borderTopLeftRadius:te,borderTopRightRadius:te,borderBottomRightRadius:te,borderBottomLeftRadius:te,width:te,maxWidth:te,height:te,maxHeight:te,top:te,right:te,bottom:te,left:te,inset:te,insetBlock:te,insetBlockStart:te,insetBlockEnd:te,insetInline:te,insetInlineStart:te,insetInlineEnd:te,padding:te,paddingTop:te,paddingRight:te,paddingBottom:te,paddingLeft:te,paddingBlock:te,paddingBlockStart:te,paddingBlockEnd:te,paddingInline:te,paddingInlineStart:te,paddingInlineEnd:te,margin:te,marginTop:te,marginRight:te,marginBottom:te,marginLeft:te,marginBlock:te,marginBlockStart:te,marginBlockEnd:te,marginInline:te,marginInlineStart:te,marginInlineEnd:te,fontSize:te,backgroundPositionX:te,backgroundPositionY:te,...{rotate:fl,pathRotation:fl,rotateX:fl,rotateY:fl,rotateZ:fl,scale:cv,scaleX:cv,scaleY:cv,scaleZ:cv,skew:fl,skewX:fl,skewY:fl,distance:te,translateX:te,translateY:te,translateZ:te,x:te,y:te,z:te,perspective:te,transformPerspective:te,opacity:dm,originX:DR,originY:DR,originZ:te},zIndex:C2,fillOpacity:dm,strokeOpacity:dm,numOctaves:C2},SV={...mv,color:hi,backgroundColor:hi,outlineColor:hi,fill:hi,stroke:hi,borderColor:hi,borderTopColor:hi,borderRightColor:hi,borderBottomColor:hi,borderLeftColor:hi,filter:Ow,WebkitFilter:Ow,mask:Pw,WebkitMask:Pw},T2=e=>SV[e],CV=new Set([Ow,Pw]);function E2(e,t){let n=T2(e);return CV.has(n)||(n=Sa),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const TV=new Set(["auto","none","0"]);function EV(e,t,n){let i=0,a;for(;i<e.length&&!a;){const o=e[i];typeof o=="string"&&!TV.has(o)&&Lh(o).values.length&&(a=e[i]),i++}if(a&&n)for(const o of t)e[o]=E2(n,a)}class MV extends Sw{constructor(t,n,i,a,o){super(t,n,i,a,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let b=0;b<t.length;b++){let y=t[b];if(typeof y=="string"&&(y=y.trim(),ew(y))){const T=g2(y,n.current);T!==void 0&&(t[b]=T),b===t.length-1&&(this.finalKeyframe=y)}}if(this.resolveNoneKeyframes(),!v2.has(i)||t.length!==2)return;const[a,o]=t,c=S2(a),d=S2(o),h=NR(a),m=NR(o);if(h!==m&&pc[i]){this.needsMeasurement=!0;return}if(c!==d)if($R(c)&&$R(d))for(let b=0;b<t.length;b++){const y=t[b];typeof y=="string"&&(t[b]=parseFloat(y))}else pc[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,i=[];for(let a=0;a<t.length;a++)(t[a]===null||yV(t[a]))&&i.push(a);i.length&&EV(t,i,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:i}=this;if(!t||!t.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=pc[i](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&t.getValue(i,a).jump(a,!1)}measureEndState(){var d;const{element:t,name:n,unresolvedKeyframes:i}=this;if(!t||!t.current)return;const a=t.getValue(n);a&&a.jump(this.measuredOrigin,!1);const o=i.length-1,c=i[o];i[o]=pc[n](t.measureViewportBox(),window.getComputedStyle(t.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),(d=this.removedTransforms)!=null&&d.length&&this.removedTransforms.forEach(([h,m])=>{t.getValue(h).set(m)}),this.resolveNoneKeyframes()}}const Lw=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function Iw(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;t&&(i=t.current);const a=(n==null?void 0:n[e])??i.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e).filter(i=>i!=null)}const Bw=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function RV(e){return dR(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:jw}=kR(queueMicrotask,!1),Ca={x:!1,y:!1};function M2(){return Ca.x||Ca.y}function kV(e){return e==="x"||e==="y"?Ca[e]?null:(Ca[e]=!0,()=>{Ca[e]=!1}):Ca.x||Ca.y?null:(Ca.x=Ca.y=!0,()=>{Ca.x=Ca.y=!1})}function R2(e,t){const n=Iw(e),i=new AbortController,a={passive:!0,...t,signal:i.signal};return[n,a,()=>i.abort()]}function _V(e){return!(e.pointerType==="touch"||M2())}function AV(e,t,n={}){const[i,a,o]=R2(e,n);return i.forEach(c=>{let d=!1,h=!1,m;const b=()=>{c.removeEventListener("pointerleave",R)},y=z=>{m&&(m(z),m=void 0),b()},T=z=>{d=!1,window.removeEventListener("pointerup",T),window.removeEventListener("pointercancel",T),h&&(h=!1,y(z))},k=()=>{d=!0,window.addEventListener("pointerup",T,a),window.addEventListener("pointercancel",T,a)},R=z=>{if(z.pointerType!=="touch"){if(d){h=!0;return}y(z)}},N=z=>{if(!_V(z))return;h=!1;const L=t(c,z);typeof L=="function"&&(m=L,c.addEventListener("pointerleave",R,a))};c.addEventListener("pointerenter",N,a),c.addEventListener("pointerdown",k,a)}),o}const k2=(e,t)=>t?e===t?!0:k2(e,t.parentElement):!1,Fw=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,NV=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function zV(e){return NV.has(e.tagName)||e.isContentEditable===!0}const DV=new Set(["INPUT","SELECT","TEXTAREA"]);function OV(e){return DV.has(e.tagName)||e.isContentEditable===!0}const gv=new WeakSet;function _2(e){return t=>{t.key==="Enter"&&e(t)}}function Uw(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const PV=(e,t)=>{const n=e.currentTarget;if(!n)return;const i=_2(()=>{if(gv.has(n))return;Uw(n,"down");const a=_2(()=>{Uw(n,"up")}),o=()=>Uw(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",i,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),t)};function A2(e){return Fw(e)&&!M2()}const N2=new WeakSet;function LV(e,t,n={}){const[i,a,o]=R2(e,n),c=d=>{const h=d.currentTarget;if(!A2(d)||N2.has(d))return;gv.add(h),n.stopPropagation&&N2.add(d);const m=t(h,d),b={...a,capture:!0},y=(R,N)=>{window.removeEventListener("pointerup",T,b),window.removeEventListener("pointercancel",k,b),gv.has(h)&&gv.delete(h),A2(R)&&typeof m=="function"&&m(R,{success:N})},T=R=>{y(R,h===window||h===document||n.useGlobalTarget||k2(h,R.target))},k=R=>{y(R,!1)};window.addEventListener("pointerup",T,b),window.addEventListener("pointercancel",k,b)};return i.forEach(d=>{(n.useGlobalTarget?window:d).addEventListener("pointerdown",c,a),RV(d)&&(d.addEventListener("focus",m=>PV(m,a)),!zV(d)&&!d.hasAttribute("tabindex")&&(d.tabIndex=0))}),o}function pv(e){return dR(e)&&"ownerSVGElement"in e}const vv=new WeakMap;let yc;const z2=(e,t,n)=>(i,a)=>a&&a[0]?a[0][e+"Size"]:pv(i)&&"getBBox"in i?i.getBBox()[t]:i[n],IV=z2("inline","width","offsetWidth"),BV=z2("block","height","offsetHeight");function jV({target:e,borderBoxSize:t}){var n;(n=vv.get(e))==null||n.forEach(i=>{i(e,{get width(){return IV(e,t)},get height(){return BV(e,t)}})})}function FV(e){e.forEach(jV)}function UV(){typeof ResizeObserver>"u"||(yc=new ResizeObserver(FV))}function VV(e,t){yc||UV();const n=Iw(e);return n.forEach(i=>{let a=vv.get(i);a||(a=new Set,vv.set(i,a)),a.add(t),yc==null||yc.observe(i)}),()=>{n.forEach(i=>{const a=vv.get(i);a==null||a.delete(t),a!=null&&a.size||yc==null||yc.unobserve(i)})}}const yv=new Set;let jh;function HV(){jh=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};yv.forEach(t=>t(e))},window.addEventListener("resize",jh)}function GV(e){return yv.add(e),jh||HV(),()=>{yv.delete(e),!yv.size&&typeof jh=="function"&&(window.removeEventListener("resize",jh),jh=void 0)}}function D2(e,t){return typeof e=="function"?GV(e):VV(e,t)}function O2(e){return pv(e)&&e.tagName==="svg"}function YV(...e){const t=!Array.isArray(e[0]),n=t?0:-1,i=e[0+n],a=e[1+n],o=e[2+n],c=e[3+n],d=WR(a,o,c);return t?d(i):d}const WV=[...w2,hi,Sa],KV=e=>WV.find(x2(e)),P2=()=>({translate:0,scale:1,origin:0,originPoint:0}),Fh=()=>({x:P2(),y:P2()}),L2=()=>({min:0,max:0}),fi=()=>({x:L2(),y:L2()}),ym=new WeakMap;function bv(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function bm(e){return typeof e=="string"||Array.isArray(e)}const Vw=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Hw=["initial",...Vw];function xv(e){return bv(e.animate)||Hw.some(t=>bm(e[t]))}function I2(e){return!!(xv(e)||e.variants)}function XV(e,t,n){for(const i in t){const a=t[i],o=n[i];if(Ri(a))e.addValue(i,a);else if(Ri(o))e.addValue(i,vc(a,{owner:e}));else if(o!==a)if(e.hasValue(i)){const c=e.getValue(i);c.liveStyle===!0?c.jump(a):c.hasAnimated||c.set(a)}else{const c=e.getStaticValue(i);e.addValue(i,vc(c!==void 0?c:a,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const Gw={current:null},B2={current:!1},QV=typeof window<"u";function ZV(){if(B2.current=!0,!!QV)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Gw.current=e.matches;e.addEventListener("change",t),t()}else Gw.current=!1}const j2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let wv={};function F2(e){wv=e}function JV(){return wv}class U2{scrapeMotionValuesFromProps(t,n,i){return{}}constructor({parent:t,props:n,presenceContext:i,reducedMotionConfig:a,skipAnimations:o,blockInitialAnimation:c,visualState:d},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Sw,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const k=Tr.now();this.renderScheduledAt<k&&(this.renderScheduledAt=k,dn.render(this.render,!1,!0))};const{latestValues:m,renderState:b}=d;this.latestValues=m,this.baseTarget={...m},this.initialValues=n.initial?{...m}:{},this.renderState=b,this.parent=t,this.props=n,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.skipAnimationsConfig=o,this.options=h,this.blockInitialAnimation=!!c,this.isControllingVariants=xv(n),this.isVariantNode=I2(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:y,...T}=this.scrapeMotionValuesFromProps(n,{},this);for(const k in T){const R=T[k];m[k]!==void 0&&Ri(R)&&R.set(m[k])}}mount(t){var n,i;if(this.hasBeenMounted)for(const a in this.initialValues)(n=this.values.get(a))==null||n.jump(this.initialValues[a]),this.latestValues[a]=this.initialValues[a];this.current=t,ym.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,o)=>this.bindToMotionValue(o,a)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(B2.current||ZV(),this.shouldReduceMotion=Gw.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(i=this.parent)==null||i.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),hl(this.notifyUpdate),hl(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const i=this.features[n];i&&(i.unmount(),i.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&u2.has(t)&&this.current instanceof HTMLElement){const{factory:c,keyframes:d,times:h,ease:m,duration:b}=n.accelerate,y=new o2({element:this.current,name:t,keyframes:d,times:h,ease:m,duration:Cr(b)}),T=c(y);this.valueSubscriptions.set(t,()=>{T(),y.cancel()});return}const i=Bh.has(t);i&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&dn.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),o&&o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in wv){const n=wv[t];if(!n)continue;const{isEnabled:i,Feature:a}=n;if(!this.features[t]&&a&&i(this.props)&&(this.features[t]=new a(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):fi()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<j2.length;i++){const a=j2[i];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const o="on"+a,c=t[o];c&&(this.propEventSubscriptions[a]=this.on(a,c))}this.prevMotionValues=XV(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const i=this.values.get(t);n!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&n!==void 0&&(i=vc(n===null?void 0:n,{owner:this}),this.addValue(t,i)),i}readValue(t,n){let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(uR(i)||hR(i))?i=parseFloat(i):!KV(i)&&Sa.test(n)&&(i=E2(t,n)),this.setBaseTarget(t,Ri(i)?i.get():i)),Ri(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var o;const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const c=kw(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);c&&(i=c[t])}if(n&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Ri(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Zx),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){jw.render(this.render)}}class V2 extends U2{constructor(){super(...arguments),this.KeyframeResolver=MV}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const i=t.style;return i?i[n]:void 0}removeValueFromRenderState(t,{vars:n,style:i}){delete n[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ri(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class bc{constructor(t){this.isMounted=!1,this.node=t}update(){}}function H2({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function qV({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function $V(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Yw(e){return e===void 0||e===1}function Ww({scale:e,scaleX:t,scaleY:n}){return!Yw(e)||!Yw(t)||!Yw(n)}function ud(e){return Ww(e)||G2(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function G2(e){return Y2(e.x)||Y2(e.y)}function Y2(e){return e&&e!=="0%"}function Sv(e,t,n){const i=e-n,a=t*i;return n+a}function W2(e,t,n,i,a){return a!==void 0&&(e=Sv(e,a,i)),Sv(e,n,i)+t}function Kw(e,t=0,n=1,i,a){e.min=W2(e.min,t,n,i,a),e.max=W2(e.max,t,n,i,a)}function K2(e,{x:t,y:n}){Kw(e.x,t.translate,t.scale,t.originPoint),Kw(e.y,n.translate,n.scale,n.originPoint)}const X2=.999999999999,Q2=1.0000000000001;function tH(e,t,n,i=!1){var d;const a=n.length;if(!a)return;t.x=t.y=1;let o,c;for(let h=0;h<a;h++){o=n[h],c=o.projectionDelta;const{visualElement:m}=o.options;m&&m.props.style&&m.props.style.display==="contents"||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(go(e.x,-o.scroll.offset.x),go(e.y,-o.scroll.offset.y)),c&&(t.x*=c.x.scale,t.y*=c.y.scale,K2(e,c)),i&&ud(o.latestValues)&&Cv(e,o.latestValues,(d=o.layout)==null?void 0:d.layoutBox))}t.x<Q2&&t.x>X2&&(t.x=1),t.y<Q2&&t.y>X2&&(t.y=1)}function go(e,t){e.min+=t,e.max+=t}function Z2(e,t,n,i,a=.5){const o=hn(e.min,e.max,a);Kw(e,t,n,o,i)}function J2(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Cv(e,t,n){const i=n??e;Z2(e.x,J2(t.x,i.x),t.scaleX,t.scale,t.originX),Z2(e.y,J2(t.y,i.y),t.scaleY,t.scale,t.originY)}function q2(e,t){return H2($V(e.getBoundingClientRect(),t))}function eH(e,t,n){const i=q2(e,n),{scroll:a}=t;return a&&(go(i.x,a.offset.x),go(i.y,a.offset.y)),i}const nH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iH=Ih.length;function rH(e,t,n){let i="",a=!0;for(let c=0;c<iH;c++){const d=Ih[c],h=e[d];if(h===void 0)continue;let m=!0;if(typeof h=="number")m=h===(d.startsWith("scale")?1:0);else{const b=parseFloat(h);m=d.startsWith("scale")?b===1:b===0}if(!m||n){const b=Bw(h,mv[d]);if(!m){a=!1;const y=nH[d]||d;i+=`${y}(${b}) `}n&&(t[d]=b)}}const o=e.pathRotation;return o&&(a=!1,i+=`rotate(${Bw(o,mv.pathRotation)}) `),i=i.trim(),n?i=n(t,a?"":i):a&&(i="none"),i}function Xw(e,t,n){const{style:i,vars:a,transformOrigin:o}=e;let c=!1,d=!1;for(const h in t){const m=t[h];if(Bh.has(h)){c=!0;continue}else if(AR(h)){a[h]=m;continue}else{const b=Bw(m,mv[h]);h.startsWith("origin")?(d=!0,o[h]=b):i[h]=b}}if(t.transform||(c||n?i.transform=rH(t,e.transform,n):i.transform&&(i.transform="none")),d){const{originX:h="50%",originY:m="50%",originZ:b=0}=o;i.transformOrigin=`${h} ${m} ${b}`}}function $2(e,{style:t,vars:n},i,a){const o=e.style;let c;for(c in t)o[c]=t[c];a==null||a.applyProjectionStyles(o,i);for(c in n)o.setProperty(c,n[c])}function tk(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const xm={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(te.test(e))e=parseFloat(e);else return e;const n=tk(e,t.target.x),i=tk(e,t.target.y);return`${n}% ${i}%`}},sH={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,a=Sa.parse(e);if(a.length>5)return i;const o=Sa.createTransformer(e),c=typeof a[0]!="number"?1:0,d=n.x.scale*t.x,h=n.y.scale*t.y;a[0+c]/=d,a[1+c]/=h;const m=hn(d,h,.5);return typeof a[2+c]=="number"&&(a[2+c]/=m),typeof a[3+c]=="number"&&(a[3+c]/=m),o(a)}},Qw={borderRadius:{...xm,applyTo:[...Lw]},borderTopLeftRadius:xm,borderTopRightRadius:xm,borderBottomLeftRadius:xm,borderBottomRightRadius:xm,boxShadow:sH};function ek(e,{layout:t,layoutId:n}){return Bh.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Qw[e]||e==="opacity")}function Zw(e,t,n){var c;const i=e.style,a=t==null?void 0:t.style,o={};if(!i)return o;for(const d in i)(Ri(i[d])||a&&Ri(a[d])||ek(d,e)||((c=n==null?void 0:n.getValue(d))==null?void 0:c.liveStyle)!==void 0)&&(o[d]=i[d]);return o}function aH(e){return window.getComputedStyle(e)}class nk extends V2{constructor(){super(...arguments),this.type="html",this.renderInstance=$2}readValueFromInstance(t,n){var i;if(Bh.has(n))return(i=this.projection)!=null&&i.isProjecting?vw(n):R6(t,n);{const a=aH(t),o=(AR(n)?a.getPropertyValue(n):a[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return q2(t,n)}build(t,n,i){Xw(t,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,i){return Zw(t,n,i)}}function oH(e,t){return e in t}class lH extends U2{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(oH(n,t)){const i=t[n];if(typeof i=="string"||typeof i=="number")return i}}getBaseTargetFromProps(){}removeValueFromRenderState(t,n){delete n.output[t]}measureInstanceViewportBox(){return fi()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}}const cH={offset:"stroke-dashoffset",array:"stroke-dasharray"},uH={offset:"strokeDashoffset",array:"strokeDasharray"};function dH(e,t,n=1,i=0,a=!0){e.pathLength=1;const o=a?cH:uH;e[o.offset]=`${-i}`,e[o.array]=`${t} ${n}`}const hH=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function ik(e,{attrX:t,attrY:n,attrScale:i,pathLength:a,pathSpacing:o=1,pathOffset:c=0,...d},h,m,b){if(Xw(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:y,style:T}=e;y.transform&&(T.transform=y.transform,delete y.transform),(T.transform||y.transformOrigin)&&(T.transformOrigin=y.transformOrigin??"50% 50%",delete y.transformOrigin),T.transform&&(T.transformBox=(b==null?void 0:b.transformBox)??"fill-box",delete y.transformBox);for(const k of hH)y[k]!==void 0&&(T[k]=y[k],delete y[k]);t!==void 0&&(y.x=t),n!==void 0&&(y.y=n),i!==void 0&&(y.scale=i),a!==void 0&&dH(y,a,o,c,!1)}const rk=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),sk=e=>typeof e=="string"&&e.toLowerCase()==="svg";function fH(e,t,n,i){$2(e,t,void 0,i);for(const a in t.attrs)e.setAttribute(rk.has(a)?a:Nw(a),t.attrs[a])}function ak(e,t,n){const i=Zw(e,t,n);for(const a in e)if(Ri(e[a])||Ri(t[a])){const o=Ih.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;i[o]=e[a]}return i}class ok extends V2{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=fi}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Bh.has(n)){const i=T2(n);return i&&i.default||0}return n=rk.has(n)?n:Nw(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,i){return ak(t,n,i)}build(t,n,i){ik(t,n,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,n,i,a){fH(t,n,i,a)}mount(t){this.isSVGTag=sk(t.tagName),super.mount(t)}}const mH=Hw.length;function lk(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?lk(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<mH;n++){const i=Hw[n],a=e.props[i];(bm(a)||a===!1)&&(t[i]=a)}return t}function ck(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}const gH=[...Vw].reverse(),pH=Vw.length;function vH(e){return t=>Promise.all(t.map(({animation:n,options:i})=>pV(e,n,i)))}function yH(e){let t=vH(e),n=uk(),i=!0,a=!1;const o=m=>(b,y)=>{var k;const T=cd(e,y,m==="exit"?(k=e.presenceContext)==null?void 0:k.custom:void 0);if(T){const{transition:R,transitionEnd:N,...z}=T;b={...b,...z,...N}}return b};function c(m){t=m(e)}function d(m){const{props:b}=e,y=lk(e.parent)||{},T=[],k=new Set;let R={},N=1/0;for(let L=0;L<pH;L++){const I=gH[L],F=n[I],B=b[I]!==void 0?b[I]:y[I],Y=bm(B),Z=I===m?F.isActive:null;Z===!1&&(N=L);let et=B===y[I]&&B!==b[I]&&Y;if(et&&(i||a)&&e.manuallyAnimateOnMount&&(et=!1),F.protectedKeys={...R},!F.isActive&&Z===null||!B&&!F.prevProp||bv(B)||typeof B=="boolean")continue;if(I==="exit"&&F.isActive&&Z!==!0){F.prevResolvedValues&&(R={...R,...F.prevResolvedValues});continue}const q=bH(F.prevProp,B);let nt=q||I===m&&F.isActive&&!et&&Y||L>N&&Y,ot=!1;const Ct=Array.isArray(B)?B:[B];let ct=Ct.reduce(o(I),{});Z===!1&&(ct={});const{prevResolvedValues:mt={}}=F,Rt={...mt,...ct},ut=ht=>{nt=!0,k.has(ht)&&(ot=!0,k.delete(ht)),F.needsAnimating[ht]=!0;const Tt=e.getValue(ht);Tt&&(Tt.liveStyle=!1)};for(const ht in Rt){const Tt=ct[ht],K=mt[ht];if(R.hasOwnProperty(ht))continue;let U=!1;_w(Tt)&&_w(K)?U=!ck(Tt,K)||q:U=Tt!==K,U?Tt!=null?ut(ht):k.add(ht):Tt!==void 0&&k.has(ht)?ut(ht):F.protectedKeys[ht]=!0}F.prevProp=B,F.prevResolvedValues=ct,F.isActive&&(R={...R,...ct}),(i||a)&&e.blockInitialAnimation&&(nt=!1);const j=et&&q;nt&&(!j||ot)&&T.push(...Ct.map(ht=>{const Tt={type:I};if(typeof ht=="string"&&(i||a)&&!j&&e.manuallyAnimateOnMount&&e.parent){const{parent:K}=e,U=cd(K,ht);if(K.enteringChildren&&U){const{delayChildren:X}=U.transition||{};Tt.delay=h2(K.enteringChildren,e,X)}}return{animation:ht,options:Tt}}))}if(k.size){const L={};if(typeof b.initial!="boolean"){const I=cd(e,Array.isArray(b.initial)?b.initial[0]:b.initial);I&&I.transition&&(L.transition=I.transition)}k.forEach(I=>{const F=e.getBaseTarget(I),B=e.getValue(I);B&&(B.liveStyle=!0),L[I]=F??null}),T.push({animation:L})}let z=!!T.length;return i&&(b.initial===!1||b.initial===b.animate)&&!e.manuallyAnimateOnMount&&(z=!1),i=!1,a=!1,z?t(T):Promise.resolve()}function h(m,b){var T;if(n[m].isActive===b)return Promise.resolve();(T=e.variantChildren)==null||T.forEach(k=>{var R;return(R=k.animationState)==null?void 0:R.setActive(m,b)}),n[m].isActive=b;const y=d(m);for(const k in n)n[k].protectedKeys={};return y}return{animateChanges:d,setActive:h,setAnimateFunction:c,getState:()=>n,reset:()=>{n=uk(),a=!0}}}function bH(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ck(t,e):!1}function dd(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function uk(){return{animate:dd(!0),whileInView:dd(),whileHover:dd(),whileTap:dd(),whileDrag:dd(),whileFocus:dd(),exit:dd()}}function Jw(e,t){e.min=t.min,e.max=t.max}function Ta(e,t){Jw(e.x,t.x),Jw(e.y,t.y)}function dk(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const hk=1e-4,xH=1-hk,wH=1+hk,fk=.01,SH=0-fk,CH=0+fk;function Er(e){return e.max-e.min}function TH(e,t,n){return Math.abs(e-t)<=n}function mk(e,t,n,i=.5){e.origin=i,e.originPoint=hn(t.min,t.max,e.origin),e.scale=Er(n)/Er(t),e.translate=hn(n.min,n.max,e.origin)-e.originPoint,(e.scale>=xH&&e.scale<=wH||isNaN(e.scale))&&(e.scale=1),(e.translate>=SH&&e.translate<=CH||isNaN(e.translate))&&(e.translate=0)}function wm(e,t,n,i){mk(e.x,t.x,n.x,i?i.originX:void 0),mk(e.y,t.y,n.y,i?i.originY:void 0)}function gk(e,t,n,i=0){const a=i?hn(n.min,n.max,i):n.min;e.min=a+t.min,e.max=e.min+Er(t)}function EH(e,t,n,i){gk(e.x,t.x,n.x,i==null?void 0:i.x),gk(e.y,t.y,n.y,i==null?void 0:i.y)}function pk(e,t,n,i=0){const a=i?hn(n.min,n.max,i):n.min;e.min=t.min-a,e.max=e.min+Er(t)}function Tv(e,t,n,i){pk(e.x,t.x,n.x,i==null?void 0:i.x),pk(e.y,t.y,n.y,i==null?void 0:i.y)}function vk(e,t,n,i,a){return e-=t,e=Sv(e,1/n,i),a!==void 0&&(e=Sv(e,1/a,i)),e}function MH(e,t=0,n=1,i=.5,a,o=e,c=e){if(mo.test(t)&&(t=parseFloat(t),t=hn(c.min,c.max,t/100)-c.min),typeof t!="number")return;let d=hn(o.min,o.max,i);e===o&&(d-=t),e.min=vk(e.min,t,n,d,a),e.max=vk(e.max,t,n,d,a)}function yk(e,t,[n,i,a],o,c){MH(e,t[n],t[i],t[a],t.scale,o,c)}const RH=["x","scaleX","originX"],kH=["y","scaleY","originY"];function bk(e,t,n,i){yk(e.x,t,RH,n?n.x:void 0,i?i.x:void 0),yk(e.y,t,kH,n?n.y:void 0,i?i.y:void 0)}function xk(e){return e.translate===0&&e.scale===1}function wk(e){return xk(e.x)&&xk(e.y)}function Sk(e,t){return e.min===t.min&&e.max===t.max}function _H(e,t){return Sk(e.x,t.x)&&Sk(e.y,t.y)}function Ck(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Tk(e,t){return Ck(e.x,t.x)&&Ck(e.y,t.y)}function Ek(e){return Er(e.x)/Er(e.y)}function Mk(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function po(e){return[e("x"),e("y")]}function AH(e,t,n){let i="";const a=e.x.translate/t.x,o=e.y.translate/t.y,c=(n==null?void 0:n.z)||0;if((a||o||c)&&(i=`translate3d(${a}px, ${o}px, ${c}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:m,rotate:b,pathRotation:y,rotateX:T,rotateY:k,skewX:R,skewY:N}=n;m&&(i=`perspective(${m}px) ${i}`),b&&(i+=`rotate(${b}deg) `),y&&(i+=`rotate(${y}deg) `),T&&(i+=`rotateX(${T}deg) `),k&&(i+=`rotateY(${k}deg) `),R&&(i+=`skewX(${R}deg) `),N&&(i+=`skewY(${N}deg) `)}const d=e.x.scale*t.x,h=e.y.scale*t.y;return(d!==1||h!==1)&&(i+=`scale(${d}, ${h})`),i||"none"}const NH=Lw.length,Rk=e=>typeof e=="string"?parseFloat(e):e,kk=e=>typeof e=="number"||te.test(e);function zH(e,t,n,i,a,o){a?(e.opacity=hn(0,n.opacity??1,DH(i)),e.opacityExit=hn(t.opacity??1,0,OH(i))):o&&(e.opacity=hn(t.opacity??1,n.opacity??1,i));for(let c=0;c<NH;c++){const d=Lw[c];let h=_k(t,d),m=_k(n,d);if(h===void 0&&m===void 0)continue;h||(h=0),m||(m=0),h===0||m===0||kk(h)===kk(m)?(e[d]=Math.max(hn(Rk(h),Rk(m),i),0),(mo.test(m)||mo.test(h))&&(e[d]+="%")):e[d]=m}(t.rotate||n.rotate)&&(e.rotate=hn(t.rotate||0,n.rotate||0,i))}function _k(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const DH=Ak(0,.5,xR),OH=Ak(.5,.95,Js);function Ak(e,t,n){return i=>i<e?0:i>t?1:n(Dh(e,t,i))}function Nk(e,t,n){const i=Ri(e)?e:vc(e);return i.start(Rw("",i,t,n)),i.animation}function Sm(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}const PH=(e,t)=>e.depth-t.depth;class LH{constructor(){this.children=[],this.isDirty=!1}add(t){Qx(this.children,t),this.isDirty=!0}remove(t){Nh(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(PH),this.isDirty=!1,this.children.forEach(t)}}function IH(e,t){const n=Tr.now(),i=({timestamp:a})=>{const o=a-n;o>=t&&(hl(i),e(o-t))};return dn.setup(i,!0),()=>hl(i)}function Ev(e){return Ri(e)?e.get():e}class BH{constructor(){this.members=[]}add(t){Qx(this.members,t);for(let n=this.members.length-1;n>=0;n--){const i=this.members[n];if(i===t||i===this.lead||i===this.prevLead)continue;const a=i.instance;(!a||a.isConnected===!1)&&!i.snapshot&&(Nh(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(Nh(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){var n;for(let i=this.members.indexOf(t)-1;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1&&((n=a.instance)==null?void 0:n.isConnected)!==!1)return this.promote(a),!0}return!1}promote(t,n){var a;const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();const{layoutDependency:o}=i.options,{layoutDependency:c}=t.options;(o===void 0||o!==c)&&(t.resumeFrom=i,n&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),(a=t.root)!=null&&a.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,i,a,o,c;(i=(n=t.options).onExitComplete)==null||i.call(n),(c=(a=t.resumingFrom)==null?void 0:(o=a.options).onExitComplete)==null||c.call(o)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const Mv={hasAnimatedSinceResize:!0,hasEverUpdated:!1},qw=["","X","Y","Z"],jH=1e3;let FH=0;function $w(e,t,n,i){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),i&&(i[e]=0))}function zk(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=b2(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",dn,!(a||o))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&zk(i)}function Dk({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:a}){return class{constructor(c={},d=t==null?void 0:t()){this.id=FH++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(HH),this.nodes.forEach(QH),this.nodes.forEach(ZH),this.nodes.forEach(GH)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let h=0;h<this.path.length;h++)this.path[h].shouldResetTransform=!0;this.root===this&&(this.nodes=new LH)}addEventListener(c,d){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new Zx),this.eventHandlers.get(c).add(d)}notifyListeners(c,...d){const h=this.eventHandlers.get(c);h&&h.notify(...d)}hasListeners(c){return this.eventHandlers.has(c)}mount(c){if(this.instance)return;this.isSVG=pv(c)&&!O2(c),this.instance=c;const{layoutId:d,layout:h,visualElement:m}=this.options;if(m&&!m.current&&m.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(h||d)&&(this.isLayoutDirty=!0),e){let b,y=0;const T=()=>this.root.updateBlockedByResize=!1;dn.read(()=>{y=window.innerWidth}),e(c,()=>{const k=window.innerWidth;k!==y&&(y=k,this.root.updateBlockedByResize=!0,b&&b(),b=IH(T,250),Mv.hasAnimatedSinceResize&&(Mv.hasAnimatedSinceResize=!1,this.nodes.forEach(Lk)))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&m&&(d||h)&&this.addEventListener("didUpdate",({delta:b,hasLayoutChanged:y,hasRelativeLayoutChanged:T,layout:k})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const R=this.options.transition||m.getDefaultTransition()||e8,{onLayoutAnimationStart:N,onLayoutAnimationComplete:z}=m.getProps(),L=!this.targetLayout||!Tk(this.targetLayout,k),I=!y&&T;if(this.options.layoutRoot||this.resumeFrom||I||y&&(L||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const F={...Mw(R,"layout"),onPlay:N,onComplete:z};(m.shouldReduceMotion||this.options.layoutRoot)&&(F.delay=0,F.type=!1),this.startAnimation(F),this.setAnimationOrigin(b,I,F.path)}else y||Lk(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=k})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),hl(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(JH),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&zk(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let b=0;b<this.path.length;b++){const y=this.path[b];y.shouldResetTransform=!0,(typeof y.latestValues.x=="string"||typeof y.latestValues.y=="string")&&(y.isLayoutDirty=!0),y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:d,layout:h}=this.options;if(d===void 0&&!h)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const h=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),h&&this.nodes.forEach(WH),this.nodes.forEach(Ok);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Pk);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(KH),this.nodes.forEach(XH),this.nodes.forEach(UH),this.nodes.forEach(VH)):this.nodes.forEach(Pk),this.clearAllSnapshots();const d=Tr.now();tr.delta=fo(0,16.666666666666668,d-tr.timestamp),tr.timestamp=d,tr.isProcessing=!0,tw.update.process(tr),tw.preRender.process(tr),tw.render.process(tr),tr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,jw.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(YH),this.sharedNodes.forEach(qH)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,dn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){dn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Er(this.snapshot.measuredBox.x)&&!Er(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let h=0;h<this.path.length;h++)this.path[h].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=fi()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,c?c.layoutBox:void 0)}updateScroll(c="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(d=!1),d&&this.instance){const h=i(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:h,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:h}}}resetTransform(){if(!a)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!wk(this.projectionDelta),h=this.getTransformTemplate(),m=h?h(this.latestValues,""):void 0,b=m!==this.prevTransformTemplateValue;c&&this.instance&&(d||ud(this.latestValues)||b)&&(a(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const d=this.measurePageBox();let h=this.removeElementScroll(d);return c&&(h=this.removeTransform(h)),n8(h),{animationId:this.root.animationId,measuredBox:d,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){var m;const{visualElement:c}=this.options;if(!c)return fi();const d=c.measureViewportBox();if(!(((m=this.scroll)==null?void 0:m.wasRoot)||this.path.some(i8))){const{scroll:b}=this.root;b&&(go(d.x,b.offset.x),go(d.y,b.offset.y))}return d}removeElementScroll(c){var h;const d=fi();if(Ta(d,c),(h=this.scroll)!=null&&h.wasRoot)return d;for(let m=0;m<this.path.length;m++){const b=this.path[m],{scroll:y,options:T}=b;b!==this.root&&y&&T.layoutScroll&&(y.wasRoot&&Ta(d,c),go(d.x,y.offset.x),go(d.y,y.offset.y))}return d}applyTransform(c,d=!1,h){var b,y;const m=h||fi();Ta(m,c);for(let T=0;T<this.path.length;T++){const k=this.path[T];!d&&k.options.layoutScroll&&k.scroll&&k!==k.root&&(go(m.x,-k.scroll.offset.x),go(m.y,-k.scroll.offset.y)),ud(k.latestValues)&&Cv(m,k.latestValues,(b=k.layout)==null?void 0:b.layoutBox)}return ud(this.latestValues)&&Cv(m,this.latestValues,(y=this.layout)==null?void 0:y.layoutBox),m}removeTransform(c){var h;const d=fi();Ta(d,c);for(let m=0;m<this.path.length;m++){const b=this.path[m];if(!ud(b.latestValues))continue;let y;b.instance&&(Ww(b.latestValues)&&b.updateSnapshot(),y=fi(),Ta(y,b.measurePageBox())),bk(d,b.latestValues,(h=b.snapshot)==null?void 0:h.layoutBox,y)}return ud(this.latestValues)&&bk(d,this.latestValues),d}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){var k;const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const h=!!this.resumingFrom||this!==d;if(!(c||h&&this.isSharedProjectionDirty||this.isProjectionDirty||(k=this.parent)!=null&&k.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:b,layoutId:y}=this.options;if(!this.layout||!(b||y))return;this.resolvedRelativeTargetAt=tr.timestamp;const T=this.getClosestProjectingParent();T&&this.linkedParentVersion!==T.layoutVersion&&!T.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&T&&T.layout?this.createRelativeTarget(T,this.layout.layoutBox,T.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=fi(),this.targetWithTransforms=fi()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),EH(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Ta(this.target,this.layout.layoutBox),K2(this.target,this.targetDelta)):Ta(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&T&&!!T.resumingFrom==!!this.resumingFrom&&!T.options.layoutScroll&&T.target&&this.animationProgress!==1?this.createRelativeTarget(T,this.target,T.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Ww(this.parent.latestValues)||G2(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(c,d,h){this.relativeParent=c,this.linkedParentVersion=c.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=fi(),this.relativeTargetOrigin=fi(),Tv(this.relativeTargetOrigin,d,h,this.options.layoutAnchor||void 0),Ta(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var R;const c=this.getLead(),d=!!this.resumingFrom||this!==c;let h=!0;if((this.isProjectionDirty||(R=this.parent)!=null&&R.isProjectionDirty)&&(h=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(h=!1),this.resolvedRelativeTargetAt===tr.timestamp&&(h=!1),h)return;const{layout:m,layoutId:b}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||b))return;Ta(this.layoutCorrected,this.layout.layoutBox);const y=this.treeScale.x,T=this.treeScale.y;tH(this.layoutCorrected,this.treeScale,this.path,d),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=fi());const{target:k}=c;if(!k){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(dk(this.prevProjectionDelta.x,this.projectionDelta.x),dk(this.prevProjectionDelta.y,this.projectionDelta.y)),wm(this.projectionDelta,this.layoutCorrected,k,this.latestValues),(this.treeScale.x!==y||this.treeScale.y!==T||!Mk(this.projectionDelta.x,this.prevProjectionDelta.x)||!Mk(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",k))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){var d;if((d=this.options.visualElement)==null||d.scheduleRender(),c){const h=this.getStack();h&&h.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Fh(),this.projectionDelta=Fh(),this.projectionDeltaWithTransform=Fh()}setAnimationOrigin(c,d=!1,h){const m=this.snapshot,b=m?m.latestValues:{},y={...this.latestValues},T=Fh();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const k=fi(),R=m?m.source:void 0,N=this.layout?this.layout.source:void 0,z=R!==N,L=this.getStack(),I=!L||L.members.length<=1,F=!!(z&&!I&&this.options.crossfade===!0&&!this.path.some(t8));this.animationProgress=0;let B;const Y=h==null?void 0:h.interpolateProjection(c);this.mixTargetDelta=Z=>{const et=Z/1e3,q=Y==null?void 0:Y(et);q?(T.x.translate=q.x,T.x.scale=hn(c.x.scale,1,et),T.x.origin=c.x.origin,T.x.originPoint=c.x.originPoint,T.y.translate=q.y,T.y.scale=hn(c.y.scale,1,et),T.y.origin=c.y.origin,T.y.originPoint=c.y.originPoint):(Ik(T.x,c.x,et),Ik(T.y,c.y,et)),this.setTargetDelta(T),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Tv(k,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),$H(this.relativeTarget,this.relativeTargetOrigin,k,et),B&&_H(this.relativeTarget,B)&&(this.isProjectionDirty=!1),B||(B=fi()),Ta(B,this.relativeTarget)),z&&(this.animationValues=y,zH(y,b,this.latestValues,et,F,I)),q&&q.rotate!==void 0&&(this.animationValues||(this.animationValues=y),this.animationValues.pathRotation=q.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=et},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){var d,h,m;this.notifyListeners("animationStart"),(d=this.currentAnimation)==null||d.stop(),(m=(h=this.resumingFrom)==null?void 0:h.currentAnimation)==null||m.stop(),this.pendingAnimation&&(hl(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=dn.update(()=>{Mv.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=vc(0)),this.motionValue.jump(0,!1),this.currentAnimation=Nk(this.motionValue,[0,1e3],{...c,velocity:0,isSync:!0,onUpdate:b=>{this.mixTargetDelta(b),c.onUpdate&&c.onUpdate(b)},onComplete:()=>{c.onComplete&&c.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(jH),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:d,target:h,layout:m,latestValues:b}=c;if(!(!d||!h||!m)){if(this!==c&&this.layout&&m&&Vk(this.options.animationType,this.layout.layoutBox,m.layoutBox)){h=this.target||fi();const y=Er(this.layout.layoutBox.x);h.x.min=c.target.x.min,h.x.max=h.x.min+y;const T=Er(this.layout.layoutBox.y);h.y.min=c.target.y.min,h.y.max=h.y.min+T}Ta(d,h),Cv(d,b),wm(this.projectionDeltaWithTransform,this.layoutCorrected,d,b)}}registerSharedNode(c,d){this.sharedNodes.has(c)||this.sharedNodes.set(c,new BH),this.sharedNodes.get(c).add(d);const m=d.options.initialPromotionConfig;d.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(d):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){var d;const{layoutId:c}=this.options;return c?((d=this.getStack())==null?void 0:d.lead)||this:this}getPrevLead(){var d;const{layoutId:c}=this.options;return c?(d=this.getStack())==null?void 0:d.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:d,preserveFollowOpacity:h}={}){const m=this.getStack();m&&m.promote(this,h),c&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let d=!1;const{latestValues:h}=c;if((h.z||h.rotate||h.rotateX||h.rotateY||h.rotateZ||h.skewX||h.skewY)&&(d=!0),!d)return;const m={};h.z&&$w("z",c,m,this.animationValues);for(let b=0;b<qw.length;b++)$w(`rotate${qw[b]}`,c,m,this.animationValues),$w(`skew${qw[b]}`,c,m,this.animationValues);c.render();for(const b in m)c.setStaticValue(b,m[b]),this.animationValues&&(this.animationValues[b]=m[b]);c.scheduleRender()}applyProjectionStyles(c,d){if(!this.instance||this.isSVG)return;if(!this.isVisible){c.visibility="hidden";return}const h=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,c.visibility="",c.opacity="",c.pointerEvents=Ev(d==null?void 0:d.pointerEvents)||"",c.transform=h?h(this.latestValues,""):"none";return}const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){this.options.layoutId&&(c.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,c.pointerEvents=Ev(d==null?void 0:d.pointerEvents)||""),this.hasProjected&&!ud(this.latestValues)&&(c.transform=h?h({},""):"none",this.hasProjected=!1);return}c.visibility="";const b=m.animationValues||m.latestValues;this.applyTransformsToTarget();let y=AH(this.projectionDeltaWithTransform,this.treeScale,b);h&&(y=h(b,y)),c.transform=y;const{x:T,y:k}=this.projectionDelta;c.transformOrigin=`${T.origin*100}% ${k.origin*100}% 0`,m.animationValues?c.opacity=m===this?b.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:b.opacityExit:c.opacity=m===this?b.opacity!==void 0?b.opacity:"":b.opacityExit!==void 0?b.opacityExit:0;for(const R in Qw){if(b[R]===void 0)continue;const{correct:N,applyTo:z,isCSSVariable:L}=Qw[R],I=y==="none"?b[R]:N(b[R],m);if(z){const F=z.length;for(let B=0;B<F;B++)c[z[B]]=I}else L?this.options.visualElement.renderState.vars[R]=I:c[R]=I}this.options.layoutId&&(c.pointerEvents=m===this?Ev(d==null?void 0:d.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>{var d;return(d=c.currentAnimation)==null?void 0:d.stop()}),this.root.nodes.forEach(Ok),this.root.sharedNodes.clear()}}}function UH(e){e.updateLayout()}function VH(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:a}=e.layout,{animationType:o}=e.options,c=t.source!==e.layout.source;if(o==="size")po(y=>{const T=c?t.measuredBox[y]:t.layoutBox[y],k=Er(T);T.min=i[y].min,T.max=T.min+k});else if(o==="x"||o==="y"){const y=o==="x"?"y":"x";Jw(c?t.measuredBox[y]:t.layoutBox[y],i[y])}else Vk(o,t.layoutBox,i)&&po(y=>{const T=c?t.measuredBox[y]:t.layoutBox[y],k=Er(i[y]);T.max=T.min+k,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[y].max=e.relativeTarget[y].min+k)});const d=Fh();wm(d,i,t.layoutBox);const h=Fh();c?wm(h,e.applyTransform(a,!0),t.measuredBox):wm(h,i,t.layoutBox);const m=!wk(d);let b=!1;if(!e.resumeFrom){const y=e.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:T,layout:k}=y;if(T&&k){const R=e.options.layoutAnchor||void 0,N=fi();Tv(N,t.layoutBox,T.layoutBox,R);const z=fi();Tv(z,i,k.layoutBox,R),Tk(N,z)||(b=!0),y.options.layoutRoot&&(e.relativeTarget=z,e.relativeTargetOrigin=N,e.relativeParent=y)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:h,layoutDelta:d,hasLayoutChanged:m,hasRelativeLayoutChanged:b})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function HH(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function GH(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function YH(e){e.clearSnapshot()}function Ok(e){e.clearMeasurements()}function WH(e){e.isLayoutDirty=!0,e.updateLayout()}function Pk(e){e.isLayoutDirty=!1}function KH(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function XH(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Lk(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function QH(e){e.resolveTargetDelta()}function ZH(e){e.calcProjection()}function JH(e){e.resetSkewAndRotation()}function qH(e){e.removeLeadSnapshot()}function Ik(e,t,n){e.translate=hn(t.translate,0,n),e.scale=hn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Bk(e,t,n,i){e.min=hn(t.min,n.min,i),e.max=hn(t.max,n.max,i)}function $H(e,t,n,i){Bk(e.x,t.x,n.x,i),Bk(e.y,t.y,n.y,i)}function t8(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const e8={duration:.45,ease:[.4,0,.1,1]},jk=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Fk=jk("applewebkit/")&&!jk("chrome/")?Math.round:Js;function Uk(e){e.min=Fk(e.min),e.max=Fk(e.max)}function n8(e){Uk(e.x),Uk(e.y)}function Vk(e,t,n){return e==="position"||e==="preserve-aspect"&&!TH(Ek(t),Ek(n),.2)}function i8(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const r8=Dk({attachResizeListener:(e,t)=>Sm(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),t0={current:void 0},Hk=Dk({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!t0.current){const e=new r8({});e.mount(window),e.setOptions({layoutScroll:!0}),t0.current=e}return t0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),e0=M.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function s8(e=!0){const t=M.useContext(Xx);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:a}=t,o=M.useId();M.useEffect(()=>{if(e)return a(o)},[e]);const c=M.useCallback(()=>e&&i&&i(o),[o,i,e]);return!n&&i?[!1,c]:[!0]}const Gk=M.createContext({strict:!1}),Yk={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let Wk=!1;function a8(){if(Wk)return;const e={};for(const t in Yk)e[t]={isEnabled:n=>Yk[t].some(i=>!!n[i])};F2(e),Wk=!0}function Kk(){return a8(),JV()}function o8(e){const t=Kk();for(const n in e)t[n]={...t[n],...e[n]};F2(t)}const l8=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Rv(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||l8.has(e)}let Xk=e=>!Rv(e);function c8(e){typeof e=="function"&&(Xk=t=>t.startsWith("on")?!Rv(t):e(t))}try{c8(require("@emotion/is-prop-valid").default)}catch{}function u8(e,t,n){const i={};for(const a in e)a==="values"&&typeof e.values=="object"||Ri(e[a])||(Xk(a)||n===!0&&Rv(a)||!t&&!Rv(a)||e.draggable&&a.startsWith("onDrag"))&&(i[a]=e[a]);return i}const kv=M.createContext({});function d8(e,t){if(xv(e)){const{initial:n,animate:i}=e;return{initial:n===!1||bm(n)?n:void 0,animate:bm(i)?i:void 0}}return e.inherit!==!1?t:{}}function h8(e){const{initial:t,animate:n}=d8(e,M.useContext(kv));return M.useMemo(()=>({initial:t,animate:n}),[Qk(t),Qk(n)])}function Qk(e){return Array.isArray(e)?e.join(" "):e}const n0=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Zk(e,t,n){for(const i in t)!Ri(t[i])&&!ek(i,n)&&(e[i]=t[i])}function f8({transformTemplate:e},t){return M.useMemo(()=>{const n=n0();return Xw(n,t,e),Object.assign({},n.vars,n.style)},[t])}function m8(e,t){const n=e.style||{},i={};return Zk(i,n,e),Object.assign(i,f8(e,t)),i}function g8(e,t){const n={},i=m8(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const Jk=()=>({...n0(),attrs:{}});function p8(e,t,n,i){const a=M.useMemo(()=>{const o=Jk();return ik(o,t,sk(i),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Zk(o,e.style,e),a.style={...o,...a.style}}return a}const v8=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function i0(e){return typeof e!="string"||e.includes("-")?!1:!!(v8.indexOf(e)>-1||/[A-Z]/u.test(e))}function y8(e,t,n,{latestValues:i},a,o=!1,c){const h=(c??i0(e)?p8:g8)(t,i,a,e),m=u8(t,typeof e=="string",o),b=e!==M.Fragment?{...m,...h,ref:n}:{},{children:y}=t,T=M.useMemo(()=>Ri(y)?y.get():y,[y]);return M.createElement(e,{...b,children:T})}function b8({scrapeMotionValuesFromProps:e,createRenderState:t},n,i,a){return{latestValues:x8(n,i,a,e),renderState:t()}}function x8(e,t,n,i){const a={},o=i(e,{});for(const T in o)a[T]=Ev(o[T]);let{initial:c,animate:d}=e;const h=xv(e),m=I2(e);t&&m&&!h&&e.inherit!==!1&&(c===void 0&&(c=t.initial),d===void 0&&(d=t.animate));let b=n?n.initial===!1:!1;b=b||c===!1;const y=b?d:c;if(y&&typeof y!="boolean"&&!bv(y)){const T=Array.isArray(y)?y:[y];for(let k=0;k<T.length;k++){const R=kw(e,T[k]);if(R){const{transitionEnd:N,transition:z,...L}=R;for(const I in L){let F=L[I];if(Array.isArray(F)){const B=b?F.length-1:0;F=F[B]}F!==null&&(a[I]=F)}for(const I in N)a[I]=N[I]}}}return a}const qk=e=>(t,n)=>{const i=M.useContext(kv),a=M.useContext(Xx),o=()=>b8(e,t,i,a);return n?o():Kx(o)},w8=qk({scrapeMotionValuesFromProps:Zw,createRenderState:n0}),S8=qk({scrapeMotionValuesFromProps:ak,createRenderState:Jk}),C8=Symbol.for("motionComponentSymbol");function T8(e,t,n){const i=M.useRef(n);M.useInsertionEffect(()=>{i.current=n});const a=M.useRef(null);return M.useCallback(o=>{var d;o&&((d=e.onMount)==null||d.call(e,o)),t&&(o?t.mount(o):t.unmount());const c=i.current;if(typeof c=="function")if(o){const h=c(o);typeof h=="function"&&(a.current=h)}else a.current?(a.current(),a.current=null):c(o);else c&&(c.current=o)},[t])}const $k=M.createContext({});function Uh(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function E8(e,t,n,i,a,o){var F,B;const{visualElement:c}=M.useContext(kv),d=M.useContext(Gk),h=M.useContext(Xx),m=M.useContext(e0),b=m.reducedMotion,y=m.skipAnimations,T=M.useRef(null),k=M.useRef(!1);i=i||d.renderer,!T.current&&i&&(T.current=i(e,{visualState:t,parent:c,props:n,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:b,skipAnimations:y,isSVG:o}),k.current&&T.current&&(T.current.manuallyAnimateOnMount=!0));const R=T.current,N=M.useContext($k);R&&!R.projection&&a&&(R.type==="html"||R.type==="svg")&&M8(T.current,n,a,N);const z=M.useRef(!1);M.useInsertionEffect(()=>{R&&z.current&&R.update(n,h)});const L=n[y2],I=M.useRef(!!L&&typeof window<"u"&&!((F=window.MotionHandoffIsComplete)!=null&&F.call(window,L))&&((B=window.MotionHasOptimisedAnimation)==null?void 0:B.call(window,L)));return lR(()=>{k.current=!0,R&&(z.current=!0,window.MotionIsMounted=!0,R.updateFeatures(),R.scheduleRenderMicrotask(),I.current&&R.animationState&&R.animationState.animateChanges())}),M.useEffect(()=>{R&&(!I.current&&R.animationState&&R.animationState.animateChanges(),I.current&&(queueMicrotask(()=>{var Y;(Y=window.MotionHandoffMarkAsComplete)==null||Y.call(window,L)}),I.current=!1),R.enteringChildren=void 0)}),R}function M8(e,t,n,i){const{layoutId:a,layout:o,drag:c,dragConstraints:d,layoutScroll:h,layoutRoot:m,layoutAnchor:b,layoutCrossfade:y}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:t_(e.parent)),e.projection.setOptions({layoutId:a,layout:o,alwaysMeasureLayout:!!c||d&&Uh(d),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:i,crossfade:y,layoutScroll:h,layoutRoot:m,layoutAnchor:b})}function t_(e){if(e)return e.options.allowProjection!==!1?e.projection:t_(e.parent)}function r0(e,{forwardMotionProps:t=!1,type:n}={},i,a){i&&o8(i);const o=n?n==="svg":i0(e),c=o?S8:w8;function d(m,b){let y;const T={...M.useContext(e0),...m,layoutId:R8(m)},{isStatic:k}=T,R=h8(m),N=c(m,k);if(!k&&typeof window<"u"){k8();const z=_8(T);y=z.MeasureLayout,R.visualElement=E8(e,N,T,a,z.ProjectionNode,o)}return w.jsxs(kv.Provider,{value:R,children:[y&&R.visualElement?w.jsx(y,{visualElement:R.visualElement,...T}):null,y8(e,m,T8(N,R.visualElement,b),N,k,t,o)]})}d.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const h=M.forwardRef(d);return h[C8]=e,h}function R8({layoutId:e}){const t=M.useContext(oR).id;return t&&e!==void 0?t+"-"+e:e}function k8(e,t){M.useContext(Gk).strict}function _8(e){const t=Kk(),{drag:n,layout:i}=t;if(!n&&!i)return{};const a={...n,...i};return{MeasureLayout:n!=null&&n.isEnabled(e)||i!=null&&i.isEnabled(e)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}function A8(e,t){if(typeof Proxy>"u")return r0;const n=new Map,i=(o,c)=>r0(o,c,e,t),a=(o,c)=>i(o,c);return new Proxy(a,{get:(o,c)=>c==="create"?i:(n.has(c)||n.set(c,r0(c,void 0,e,t)),n.get(c))})}const N8=(e,t)=>t.isSVG??i0(e)?new ok(t):new nk(t,{allowProjection:e!==M.Fragment});class z8 extends bc{constructor(t){super(t),t.animationState||(t.animationState=yH(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();bv(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let D8=0;class O8 extends bc{constructor(){super(...arguments),this.id=D8++,this.isExitComplete=!1}update(){var o;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;if(t&&i===!1){if(this.isExitComplete){const{initial:c,custom:d}=this.node.getProps();if(typeof c=="string"||typeof c=="object"&&c!==null&&!Array.isArray(c)){const h=cd(this.node,c,d);if(h){const{transition:m,transitionEnd:b,...y}=h;for(const T in y)(o=this.node.getValue(T))==null||o.jump(y[T])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const P8={animation:{Feature:z8},exit:{Feature:O8}};function Cm(e){return{point:{x:e.pageX,y:e.pageY}}}const L8=e=>t=>Fw(t)&&e(t,Cm(t));function Tm(e,t,n,i){return Sm(e,t,L8(n),i)}const e_=({current:e})=>e?e.ownerDocument.defaultView:null,n_=(e,t)=>Math.abs(e-t);function I8(e,t){const n=n_(e.x,t.x),i=n_(e.y,t.y);return Math.sqrt(n**2+i**2)}const i_=new Set(["auto","scroll"]);class r_{constructor(t,n,{transformPagePoint:i,contextWindow:a=window,dragSnapToOrigin:o=!1,distanceThreshold:c=3,element:d}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=R=>{this.handleScroll(R.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=_v(this.lastRawMoveEventInfo,this.transformPagePoint));const R=s0(this.lastMoveEventInfo,this.history),N=this.startEvent!==null,z=I8(R.offset,{x:0,y:0})>=this.distanceThreshold;if(!N&&!z)return;const{point:L}=R,{timestamp:I}=tr;this.history.push({...L,timestamp:I});const{onStart:F,onMove:B}=this.handlers;N||(F&&F(this.lastMoveEvent,R),this.startEvent=this.lastMoveEvent),B&&B(this.lastMoveEvent,R)},this.handlePointerMove=(R,N)=>{this.lastMoveEvent=R,this.lastRawMoveEventInfo=N,this.lastMoveEventInfo=_v(N,this.transformPagePoint),dn.update(this.updatePoint,!0)},this.handlePointerUp=(R,N)=>{this.end();const{onEnd:z,onSessionEnd:L,resumeAnimation:I}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&I&&I(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const F=s0(R.type==="pointercancel"?this.lastMoveEventInfo:_v(N,this.transformPagePoint),this.history);this.startEvent&&z&&z(R,F),L&&L(R,F)},!Fw(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=i,this.distanceThreshold=c,this.contextWindow=a||window;const h=Cm(t),m=_v(h,this.transformPagePoint),{point:b}=m,{timestamp:y}=tr;this.history=[{...b,timestamp:y}];const{onSessionStart:T}=n;T&&T(t,s0(m,this.history));const k={passive:!0,capture:!0};this.removeListeners=cm(Tm(this.contextWindow,"pointermove",this.handlePointerMove,k),Tm(this.contextWindow,"pointerup",this.handlePointerUp,k),Tm(this.contextWindow,"pointercancel",this.handlePointerUp,k)),d&&this.startScrollTracking(d)}startScrollTracking(t){let n=t.parentElement;for(;n;){const i=getComputedStyle(n);(i_.has(i.overflowX)||i_.has(i.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const i=t===window,a=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},o={x:a.x-n.x,y:a.y-n.y};o.x===0&&o.y===0||(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(t,a),dn.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),hl(this.updatePoint)}}function _v(e,t){return t?{point:t(e.point)}:e}function s_(e,t){return{x:e.x-t.x,y:e.y-t.y}}function s0({point:e},t){return{point:e,delta:s_(e,a_(t)),offset:s_(e,B8(t)),velocity:j8(t,.1)}}function B8(e){return e[0]}function a_(e){return e[e.length-1]}function j8(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const a=a_(e);for(;n>=0&&(i=e[n],!(a.timestamp-i.timestamp>Cr(t)));)n--;if(!i)return{x:0,y:0};i===e[0]&&e.length>2&&a.timestamp-i.timestamp>Cr(t)*2&&(i=e[1]);const o=qs(a.timestamp-i.timestamp);if(o===0)return{x:0,y:0};const c={x:(a.x-i.x)/o,y:(a.y-i.y)/o};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}function F8(e,{min:t,max:n},i){return t!==void 0&&e<t?e=i?hn(t,e,i.min):Math.max(e,t):n!==void 0&&e>n&&(e=i?hn(n,e,i.max):Math.min(e,n)),e}function o_(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function U8(e,{top:t,left:n,bottom:i,right:a}){return{x:o_(e.x,n,a),y:o_(e.y,t,i)}}function l_(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function V8(e,t){return{x:l_(e.x,t.x),y:l_(e.y,t.y)}}function H8(e,t){let n=.5;const i=Er(e),a=Er(t);return a>i?n=Dh(t.min,t.max-i,e.min):i>a&&(n=Dh(e.min,e.max-a,t.min)),fo(0,1,n)}function G8(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const a0=.35;function Y8(e=a0){return e===!1?e=0:e===!0&&(e=a0),{x:c_(e,"left","right"),y:c_(e,"top","bottom")}}function c_(e,t,n){return{min:u_(e,t),max:u_(e,n)}}function u_(e,t){return typeof e=="number"?e:e[t]||0}const W8=new WeakMap;class K8{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=fi(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:i}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const o=y=>{n&&this.snapToCursor(Cm(y).point),this.stopAnimation()},c=(y,T)=>{const{drag:k,dragPropagation:R,onDragStart:N}=this.getProps();if(k&&!R&&(this.openDragLock&&this.openDragLock(),this.openDragLock=kV(k),!this.openDragLock))return;this.latestPointerEvent=y,this.latestPanInfo=T,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),po(L=>{let I=this.getAxisMotionValue(L).get()||0;if(mo.test(I)){const{projection:F}=this.visualElement;if(F&&F.layout){const B=F.layout.layoutBox[L];B&&(I=Er(B)*(parseFloat(I)/100))}}this.originPoint[L]=I}),N&&dn.update(()=>N(y,T),!1,!0),Aw(this.visualElement,"transform");const{animationState:z}=this.visualElement;z&&z.setActive("whileDrag",!0)},d=(y,T)=>{this.latestPointerEvent=y,this.latestPanInfo=T;const{dragPropagation:k,dragDirectionLock:R,onDirectionLock:N,onDrag:z}=this.getProps();if(!k&&!this.openDragLock)return;const{offset:L}=T;if(R&&this.currentDirection===null){this.currentDirection=Q8(L),this.currentDirection!==null&&N&&N(this.currentDirection);return}this.updateAxis("x",T.point,L),this.updateAxis("y",T.point,L),this.visualElement.render(),z&&dn.update(()=>z(y,T),!1,!0)},h=(y,T)=>{this.latestPointerEvent=y,this.latestPanInfo=T,this.stop(y,T),this.latestPointerEvent=null,this.latestPanInfo=null},m=()=>{const{dragSnapToOrigin:y}=this.getProps();(y||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:b}=this.getProps();this.panSession=new r_(t,{onSessionStart:o,onStart:c,onMove:d,onSessionEnd:h,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:b,distanceThreshold:i,contextWindow:e_(this.visualElement),element:this.visualElement.current})}stop(t,n){const i=t||this.latestPointerEvent,a=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!a||!i)return;const{velocity:c}=a;this.startAnimation(c);const{onDragEnd:d}=this.getProps();d&&dn.postRender(()=>d(i,a))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,i){const{drag:a}=this.getProps();if(!i||!Av(t,a,this.currentDirection))return;const o=this.getAxisMotionValue(t);let c=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(c=F8(c,this.constraints[t],this.elastic[t])),o.set(c)}resolveConstraints(){var o;const{dragConstraints:t,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,a=this.constraints;t&&Uh(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=U8(i.layoutBox,t):this.constraints=!1,this.elastic=Y8(n),a!==this.constraints&&!Uh(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&po(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=G8(i.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Uh(t))return!1;const i=t.current;mc(i!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:a}=this.visualElement;if(!a||!a.layout)return!1;a.root&&(a.root.scroll=void 0,a.root.updateScroll());const o=eH(i,a.root,this.visualElement.getTransformPagePoint());let c=V8(a.layout.layoutBox,o);if(n){const d=n(qV(c));this.hasMutatedConstraints=!!d,d&&(c=H2(d))}return c}startAnimation(t){const{drag:n,dragMomentum:i,dragElastic:a,dragTransition:o,dragSnapToOrigin:c,onDragTransitionEnd:d}=this.getProps(),h=this.constraints||{},m=po(b=>{if(!Av(b,n,this.currentDirection))return;let y=h&&h[b]||{};(c===!0||c===b)&&(y={min:0,max:0});const T=a?200:1e6,k=a?40:1e7,R={type:"inertia",velocity:i?t[b]:0,bounceStiffness:T,bounceDamping:k,timeConstant:750,restDelta:1,restSpeed:10,...o,...y};return this.startAxisValueAnimation(b,R)});return Promise.all(m).then(d)}startAxisValueAnimation(t,n){const i=this.getAxisMotionValue(t);return Aw(this.visualElement,t),i.start(Rw(t,i,0,n,this.visualElement,!1))}stopAnimation(){po(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,a=this.visualElement.getProps()[n];return a||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){po(n=>{const{drag:i}=this.getProps();if(!Av(n,i,this.currentDirection))return;const{projection:a}=this.visualElement,o=this.getAxisMotionValue(n);if(a&&a.layout){const{min:c,max:d}=a.layout.layoutBox[n],h=o.get()||0;o.set(t[n]-hn(c,d,.5)+h)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!Uh(n)||!i||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};po(c=>{const d=this.getAxisMotionValue(c);if(d&&this.constraints!==!1){const h=d.get();a[c]=H8({min:h,max:h},this.constraints[c])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),po(c=>{if(!Av(c,t,null))return;const d=this.getAxisMotionValue(c),{min:h,max:m}=this.constraints[c];d.set(hn(h,m,a[c]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;W8.set(this.visualElement,this);const t=this.visualElement.current,n=Tm(t,"pointerdown",m=>{const{drag:b,dragListener:y=!0}=this.getProps(),T=m.target,k=T!==t&&OV(T);b&&y&&!k&&this.start(m)});let i;const a=()=>{const{dragConstraints:m}=this.getProps();Uh(m)&&m.current&&(this.constraints=this.resolveRefConstraints(),i||(i=X8(t,m.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,c=o.addEventListener("measure",a);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),dn.read(a);const d=Sm(window,"resize",()=>this.scalePositionWithinConstraints()),h=o.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:b})=>{this.isDragging&&b&&(po(y=>{const T=this.getAxisMotionValue(y);T&&(this.originPoint[y]+=m[y].translate,T.set(T.get()+m[y].translate))}),this.visualElement.render())}));return()=>{d(),n(),c(),h&&h(),i&&i()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:a=!1,dragConstraints:o=!1,dragElastic:c=a0,dragMomentum:d=!0}=t;return{...t,drag:n,dragDirectionLock:i,dragPropagation:a,dragConstraints:o,dragElastic:c,dragMomentum:d}}}function d_(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function X8(e,t,n){const i=D2(e,d_(n)),a=D2(t,d_(n));return()=>{i(),a()}}function Av(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Q8(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Z8 extends bc{constructor(t){super(t),this.removeGroupControls=Js,this.removeListeners=Js,this.controls=new K8(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Js}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const o0=e=>(t,n)=>{e&&dn.update(()=>e(t,n),!1,!0)};class J8 extends bc{constructor(){super(...arguments),this.removePointerDownListener=Js}onPointerDown(t){this.session=new r_(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:e_(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:i,onPanEnd:a}=this.node.getProps();return{onSessionStart:o0(t),onStart:o0(n),onMove:o0(i),onEnd:(o,c)=>{delete this.session,a&&dn.postRender(()=>a(o,c))}}}mount(){this.removePointerDownListener=Tm(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let l0=!1;class q8 extends M.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i,layoutId:a}=this.props,{projection:o}=t;o&&(n.group&&n.group.add(o),i&&i.register&&a&&i.register(o),l0&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Mv.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:i,drag:a,isPresent:o}=this.props,{projection:c}=i;return c&&(c.isPresent=o,t.layoutDependency!==n&&c.setOptions({...c.options,layoutDependency:n}),l0=!0,a||t.layoutDependency!==n||n===void 0||t.isPresent!==o?c.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?c.promote():c.relegate()||dn.postRender(()=>{const d=c.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=n,i.root.didUpdate(),jw.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:a}=t;l0=!0,a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),i&&i.deregister&&i.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function h_(e){const[t,n]=s8(),i=M.useContext(oR);return w.jsx(q8,{...e,layoutGroup:i,switchLayoutGroup:M.useContext($k),isPresent:t,safeToRemove:n})}const $8={pan:{Feature:J8},drag:{Feature:Z8,ProjectionNode:Hk,MeasureLayout:h_}};function f_(e,t,n){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,o=i[a];o&&dn.postRender(()=>o(t,Cm(t)))}class t9 extends bc{mount(){const{current:t}=this.node;t&&(this.unmount=AV(t,(n,i)=>(f_(this.node,i,"Start"),a=>f_(this.node,a,"End"))))}unmount(){}}class e9 extends bc{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=cm(Sm(this.node.current,"focus",()=>this.onFocus()),Sm(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function m_(e,t,n){const{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),o=i[a];o&&dn.postRender(()=>o(t,Cm(t)))}class n9 extends bc{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:i}=this.node.props;this.unmount=LV(t,(a,o)=>(m_(this.node,o,"Start"),(c,{success:d})=>m_(this.node,c,d?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(i==null?void 0:i.tap)===!1})}unmount(){}}const c0=new WeakMap,u0=new WeakMap,i9=e=>{const t=c0.get(e.target);t&&t(e)},r9=e=>{e.forEach(i9)};function s9({root:e,...t}){const n=e||document;u0.has(n)||u0.set(n,{});const i=u0.get(n),a=JSON.stringify(t);return i[a]||(i[a]=new IntersectionObserver(r9,{root:e,...t})),i[a]}function a9(e,t,n){const i=s9(t);return c0.set(e,n),i.observe(e),()=>{c0.delete(e),i.unobserve(e)}}const o9={some:0,all:1};class l9 extends bc{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var h;(h=this.stopObserver)==null||h.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:i,amount:a="some",once:o}=t,c={root:n?n.current:void 0,rootMargin:i,threshold:typeof a=="number"?a:o9[a]},d=m=>{const{isIntersecting:b}=m;if(this.isInView===b||(this.isInView=b,o&&!b&&this.hasEnteredView))return;b&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",b);const{onViewportEnter:y,onViewportLeave:T}=this.node.getProps(),k=b?y:T;k&&k(m)};this.stopObserver=a9(this.node.current,c,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(c9(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function c9({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const u9={...P8,...{inView:{Feature:l9},tap:{Feature:n9},focus:{Feature:e9},hover:{Feature:t9}},...$8,...{layout:{ProjectionNode:Hk,MeasureLayout:h_}}},d9=A8(u9,N8);function Nv(e){const t=Kx(()=>vc(e)),{isStatic:n}=M.useContext(e0);if(n){const[,i]=M.useState(e);M.useEffect(()=>t.on("change",i),[])}return t}function g_(e,t){const n=Nv(t()),i=()=>n.set(t());return i(),lR(()=>{const a=()=>dn.preRender(i,!1,!0),o=e.map(c=>c.on("change",a));return()=>{o.forEach(c=>c()),hl(i)}}),n}function h9(e){vm.current=[],e();const t=g_(vm.current,e);return vm.current=void 0,t}function p_(e,t,n,i){if(typeof e=="function")return h9(e);const o=typeof t=="function"?t:YV(t,n,i),c=Array.isArray(e)?v_(e,o):v_([e],([h])=>o(h)),d=Array.isArray(e)?void 0:e.accelerate;return d&&!d.isTransformed&&typeof t!="function"&&Array.isArray(n)&&(i==null?void 0:i.clamp)!==!1&&(c.accelerate={...d,times:t,keyframes:n,isTransformed:!0}),c}function v_(e,t){const n=Kx(()=>[]);return g_(e,()=>{n.length=0;const i=e.length;for(let a=0;a<i;a++)n[a]=e[a].get();return t(n)})}function d0(e){return typeof e=="object"&&!Array.isArray(e)}function y_(e,t,n,i){return e==null?[]:typeof e=="string"&&d0(t)?Iw(e,n,i):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(a=>a!=null):[e]}function f9(e,t,n){return e*(t+1)+n*t}function b_(e,t,n,i){return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:t.startsWith("<")?Math.max(0,n+parseFloat(t.slice(1))):i.get(t)??e}function m9(e,t,n){for(let i=0;i<e.length;i++){const a=e[i];a.at>t&&a.at<n&&(Nh(e,a),i--)}}function g9(e,t,n,i,a,o){m9(e,a,o);for(let c=0;c<t.length;c++)e.push({value:t[c],at:hn(a,o,i[c]),easing:TR(n,c)})}function p9(e,t,n=0){const i=t+1+t*n;for(let a=0;a<e.length;a++)e[a]=e[a]/i}function v9(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const y9="easeInOut",h0=20;function b9(e,{defaultTransition:t={},...n}={},i,a){const o=t.duration||.3,c=new Map,d=new Map,h={},m=new Map;let b=0,y=0,T=0;for(let k=0;k<e.length;k++){const R=e[k];if(typeof R=="string"){m.set(R,y);continue}else if(!Array.isArray(R)){m.set(R.name,b_(y,R.at,b,m));continue}let[N,z,L={}]=R;L.at!==void 0&&(y=b_(y,L.at,b,m));let I=0;const F=(B,Y,Z,et=0,q=0)=>{const nt=x9(B),{delay:ot=0,times:Ct=XR(nt),type:ct=t.type||"keyframes",repeat:mt,repeatType:Rt,repeatDelay:ut=0,...j}=Y;let{ease:J=t.ease||"easeOut",duration:ht}=Y;const Tt=typeof ot=="function"?ot(et,q):ot,K=nt.length,U=Cw(ct)?ct:a==null?void 0:a[ct||"keyframes"];if(K<=2&&U){let tt=100;if(K===2&&C9(nt)){const Dt=nt[1]-nt[0];tt=Math.abs(Dt)}const bt={...t,...j};ht!==void 0&&(bt.duration=Cr(ht));const zt=HR(bt,tt,U);J=zt.ease,ht=zt.duration}ht??(ht=o);const X=y+Tt;Ct.length===1&&Ct[0]===0&&(Ct[1]=1);const ft=Ct.length-nt.length;if(ft>0&&KR(Ct,ft),nt.length===1&&nt.unshift(null),mt&&zh(mt<h0,`Sequence segments can't repeat ${mt} times — ignoring repeat option. Use a value below ${h0} or apply repeat at the sequence level instead.`),mt&&mt<h0){const tt=ht>0?ut/ht:0;ht=f9(ht,mt,ut);const bt=[...nt],zt=[...Ct];J=Array.isArray(J)?[...J]:[J];const Dt=[...J],Mt=Rt==="reverse"||Rt==="mirror";let Yt=bt,Qt=Dt;Mt&&(Yt=[...bt].reverse(),Rt==="reverse"&&(Qt=[...Dt].reverse().map(ne=>typeof ne=="function"?Jx(ne):ne)));for(let ne=0;ne<mt;ne++){const Ut=Mt&&ne%2===0,Ce=Ut?Yt:bt,Ht=Ut?Qt:Dt,ee=(ne+1)*(1+tt);tt>0&&(nt.push(nt[nt.length-1]),Ct.push(ee),J.push("linear")),nt.push(...Ce);for(let re=0;re<Ce.length;re++)Ct.push(zt[re]+ee),J.push(re===0?"linear":TR(Ht,re-1))}p9(Ct,mt,tt)}const yt=X+ht;g9(Z,nt,J,Ct,X,yt),I=Math.max(Tt+ht,I),T=Math.max(yt,T)};if(Ri(N)){const B=x_(N,d);F(z,L,w_("default",B))}else{const B=y_(N,z,i,h),Y=B.length;for(let Z=0;Z<Y;Z++){z=z,L=L;const et=B[Z],q=x_(et,d);for(const nt in z)F(z[nt],w9(L,nt),w_(nt,q),Z,Y)}}b=y,y+=I}return d.forEach((k,R)=>{for(const N in k){const z=k[N];z.sort(v9);const L=[],I=[],F=[];for(let et=0;et<z.length;et++){const{at:q,value:nt,easing:ot}=z[et];L.push(nt),I.push(Dh(0,T,q)),F.push(ot||"easeOut")}I[0]!==0&&(I.unshift(0),L.unshift(L[0]),F.unshift(y9)),I[I.length-1]!==1&&(I.push(1),L.push(null)),c.has(R)||c.set(R,{keyframes:{},transition:{}});const B=c.get(R);B.keyframes[N]=L;const{type:Y,...Z}=t;B.transition[N]={...Z,duration:T,ease:F,times:I,...n}}}),c}function x_(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function w_(e,t){return t[e]||(t[e]=[]),t[e]}function x9(e){return Array.isArray(e)?e:[e]}function w9(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const S9=e=>typeof e=="number",C9=e=>e.every(S9);function T9(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=pv(e)&&!O2(e)?new ok(t):new nk(t);n.mount(e),ym.set(e,n)}function E9(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new lH(t);n.mount(e),ym.set(e,n)}function M9(e,t){return Ri(e)||typeof e=="number"||typeof e=="string"&&!d0(t)}function S_(e,t,n,i){const a=[];if(M9(e,t))a.push(Nk(e,d0(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return a;const o=y_(e,t,i),c=o.length;mc(!!c,"No valid elements provided.","no-valid-elements");for(let d=0;d<c;d++){const h=o[d],m=h instanceof Element?T9:E9;ym.has(h)||m(h);const b=ym.get(h),y={...n};"delay"in y&&typeof y.delay=="function"&&(y.delay=y.delay(d,c)),a.push(...zw(b,{...t,transition:y},{}))}}return a}function R9(e,t,n){const i=[],a=e.map(c=>{if(Array.isArray(c)&&typeof c[0]=="function"){const d=c[0],h=vc(0);return h.on("change",d),c.length===1?[h,[0,1]]:c.length===2?[h,[0,1],c[1]]:[h,c[1],c[2]]}return c});return b9(a,t,n,{spring:mm}).forEach(({keyframes:c,transition:d},h)=>{i.push(...S_(h,c,d))}),i}function k9(e){return Array.isArray(e)&&e.some(Array.isArray)}function _9(e={}){const{scope:t,reduceMotion:n,skipAnimations:i}=e;function a(o,c,d){let h=[],m;const b={};if(n!==void 0&&(b.reduceMotion=n),i!==void 0&&(b.skipAnimations=i),k9(o)){const{onComplete:T,...k}=c||{};typeof T=="function"&&(m=T),h=R9(o,{...b,...k},t)}else{const{onComplete:T,...k}=d||{};typeof T=="function"&&(m=T),h=S_(o,c,{...b,...k},t)}const y=new J6(h);return m&&y.finished.then(m),t&&(t.animations.push(y),y.finished.then(()=>{Nh(t.animations,y)})),y}return a}const Vh=_9(),C_=d9,A9={right:"x",left:"x",top:"y",bottom:"y"},N9={right:1,bottom:1,left:-1,top:-1};function z9(e,t=.998){return e/1e3*t/(1-t)}function D9(e,t,n=.55){return e*t*n/(t+n*e)}const O9=5,P9=100;function L9(e,t){return e.scrollHeight<=e.clientHeight?!1:t>0?e.scrollTop<e.scrollHeight-e.clientHeight-1:e.scrollTop>0}function I9(e,t,n,i,a,o){if(e!=null&&e.closest("[data-acr-no-drag]"))return!1;if(n==="x")return!0;if(Date.now()<o||!(a*i>0))return!1;const d=i>0?-1:1;let h=e;for(;h;){if(L9(h,d))return!1;if(h===t)break;h=h.parentElement}return!0}function B9(){const[e,t]=M.useState(!1);return M.useEffect(()=>{const n=window.matchMedia("(prefers-reduced-motion: reduce)"),i=()=>t(n.matches);return i(),n.addEventListener("change",i),()=>n.removeEventListener("change",i)},[]),e}const T_=M.createContext(null);function j9(){const e=M.useContext(T_);if(!e)throw new Error("Sheet components must be used within <Sheet>");return e}function F9({open:e,defaultOpen:t,onOpenChange:n,children:i,...a}){const[o,c]=M.useState(t??!1),d=e!==void 0,h=d?!!e:o,m=M.useCallback(b=>{d||c(b),n==null||n(b)},[d,n]);return w.jsx(T_.Provider,{value:{open:h,setOpen:m},children:w.jsx(Lb,{"data-slot":"sheet",open:h,onOpenChange:m,...a,children:i})})}function U9({...e}){return w.jsx(Ib,{"data-slot":"sheet-portal",...e})}function V9({className:e,children:t,side:n="right",style:i,...a}){const{open:o,setOpen:c}=j9(),d=B9(),h=A9[n],m=N9[n],b=Nv(o?0:1),y=Nv(1),T=Nv(o?1:0),k=M.useRef(!1),R=M.useRef(!1),N=M.useRef(null),z=M.useRef(null),L=M.useRef({start:0,startPos:0,size:1}),I=M.useRef(null),F=M.useRef(0),B=M.useRef([]),[Y,Z]=M.useState(o),et=M.useMemo(()=>({type:"spring",bounce:.2,duration:.3}),[]),q=p_(b,j=>`${m*j*100}%`);M.useEffect(()=>{o&&Z(!0)},[o]),M.useLayoutEffect(()=>{!Y||!o||(T.set(o?T.get():0),d&&b.get()!==0&&(b.set(0),y.set(0)))},[Y]),M.useEffect(()=>{if(!Y)return;const j=Vh(T,o?1:0,{duration:.2,ease:"easeOut"});if(d){b.set(0);const ht=Vh(y,o?1:0,{duration:.15,ease:"linear",onComplete:o?void 0:()=>Z(!1)});return()=>{ht.stop(),j.stop()}}const J=Vh(b,o?0:1,{...et,onComplete:o?void 0:()=>Z(!1)});return z.current=J,()=>{J.stop(),j.stop()}},[o,Y,et,d]);const nt=p_([b,T],([j,J])=>k.current?Math.min(J,Math.max(0,1-j)):J),ot=M.useCallback(j=>h==="x"?j.clientX:j.clientY,[h]),Ct=M.useCallback(j=>{if(j.pointerType!=="touch"||d||j.target.closest('input, textarea, select, button, a, [contenteditable="true"], [data-acr-no-drag]'))return;I.current=j.target;const J=N.current;if(!J)return;const ht=J.getBoundingClientRect();L.current={start:ot(j),startPos:b.get(),size:(h==="x"?ht.width:ht.height)||1},B.current=[{c:ot(j),t:j.timeStamp}],R.current=!0},[d,h,ot,b]),ct=M.useCallback(j=>{var yt,tt;if(!R.current&&!k.current)return;const J=ot(j),{start:ht,startPos:Tt,size:K}=L.current,U=J-ht;if(R.current){if(Math.abs(U)<O9)return;if(!I9(I.current,N.current,h,m,U,F.current)){R.current=!1,F.current=Date.now()+P9;return}R.current=!1,k.current=!0,(yt=z.current)==null||yt.stop();try{(tt=N.current)==null||tt.setPointerCapture(j.pointerId)}catch{}}let X=Tt+m*U/K;X<0&&(X=-D9(-X*K,K)/K),b.set(X);const ft=B.current;ft.push({c:J,t:j.timeStamp}),ft.length>5&&ft.shift()},[ot,m,b]),mt=M.useCallback(j=>{var X;if(R.current){R.current=!1;return}if(!k.current)return;k.current=!1;try{(X=N.current)==null||X.releasePointerCapture(j.pointerId)}catch{}const{size:J}=L.current,ht=B.current;let Tt=0;if(ht.length>=2){const ft=ht[0],yt=ht[ht.length-1],tt=yt.t-ft.t||16;Tt=(yt.c-ft.c)/tt*1e3}const K=b.get()+m*z9(Tt)/J,U=m*Tt/J;K>.4?(Vh(T,0,{duration:.2,ease:"easeOut"}),z.current=Vh(b,1,{...et,velocity:U,onComplete:()=>{Z(!1),c(!1)}})):z.current=Vh(b,0,{...et,velocity:U})},[m,b,T,et,c]);if(!Y)return null;const Rt=n==="right"?"inset-y-0 right-0 h-full w-3/4 sm:max-w-sm":n==="left"?"inset-y-0 left-0 h-full w-3/4 sm:max-w-sm":n==="top"?"inset-x-0 top-0 h-auto":"inset-x-0 bottom-0 h-auto",ut=d?{}:{onPointerDown:Ct,onPointerMove:ct,onPointerUp:mt,onPointerCancel:mt};return w.jsxs(U9,{forceMount:!0,children:[w.jsx(up,{asChild:!0,forceMount:!0,children:w.jsx(C_.div,{"data-slot":"sheet-overlay",style:{opacity:nt},className:"fixed inset-0 z-50 bg-[var(--acr-overlay)] backdrop-blur-[20px] backdrop-saturate-[1.3]"})}),w.jsx(dp,{asChild:!0,forceMount:!0,...a,children:w.jsxs(C_.div,{ref:N,"data-slot":"sheet-content",style:{...i,opacity:y,...h==="x"?{x:q}:{y:q}},...ut,className:At("fixed z-50 flex flex-col gap-4 bg-[var(--acr-panel)] backdrop-blur-xl shadow-[0_0_0_1px_var(--acr-border-soft),0_16px_48px_rgba(0,0,0,0.35)]",h==="x"?"touch-pan-y":"touch-pan-x",Rt,e),children:[w.jsx(TM,{}),t,w.jsxs(hT,{className:"absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:outline-hidden focus-visible:ring-2 focus-visible:ring-[var(--ring)] disabled:pointer-events-none",children:[w.jsx(Ex,{className:"size-4"}),w.jsx("span",{className:"sr-only",children:"Close"})]})]})})]})}function H9({className:e,...t}){return w.jsx("div",{"data-slot":"sheet-header",className:At("flex flex-col gap-1.5 p-4",e),...t})}function G9({className:e,...t}){return w.jsx("div",{"data-slot":"sheet-footer",className:At("mt-auto flex flex-col gap-2 p-4",e),...t})}function Y9({className:e,...t}){return w.jsx(jb,{"data-slot":"sheet-title",className:At("text-foreground font-semibold",e),...t})}function E_({className:e,...t}){return w.jsx("div",{"data-slot":"skeleton",className:At("animate-pulse rounded-md bg-[var(--acr-chip)]",e),...t})}M.createContext(null);function M_({className:e,variant:t="default",...n}){return w.jsx("section",{"data-slot":"shell-panel","data-variant":t,className:At("flex min-w-0 flex-1 flex-col overflow-hidden","[&+&]:border-l [&+&]:border-[var(--acr-border-soft)]",t==="list"&&"w-72 flex-none",t==="detail"&&"flex-[1.35]",e),...n})}function W9({className:e,size:t="default",...n}){return w.jsx("div",{"data-slot":"shell-navbar","data-size":t,className:At("flex shrink-0 items-center gap-2 border-b border-[var(--acr-border-soft)] px-3",t==="compact"&&"h-10",t==="default"&&"h-11",t==="large"&&"h-[52px]",e),...n})}function K9({className:e,...t}){return w.jsx("div",{"data-slot":"shell-navbar-actions",className:At("ml-auto flex shrink-0 items-center gap-1",e),...t})}function X9({className:e,...t}){return w.jsx("div",{"data-slot":"shell-panel-header",className:At("flex min-h-11 shrink-0 items-center gap-2 border-b border-[var(--acr-border-soft)] px-3",e),...t})}function Q9({className:e,...t}){return w.jsx("div",{"data-slot":"shell-panel-title",className:At("min-w-0 truncate text-[13px] font-semibold",e),...t})}function Z9({className:e,...t}){return w.jsx("div",{"data-slot":"shell-panel-description",className:At("min-w-0 truncate text-[11px] text-muted-foreground",e),...t})}function J9({className:e,...t}){return w.jsx("div",{"data-slot":"shell-panel-actions",className:At("ml-auto flex shrink-0 items-center gap-1",e),...t})}function R_({className:e,padding:t="flush",...n}){return w.jsx("div",{"data-slot":"shell-content","data-padding":t,className:At("min-h-0 flex-1 overflow-auto",t==="default"&&"p-3",t==="reading"&&"px-8 py-7",e),...n})}const q9="overflow-hidden rounded-[10px] bg-[var(--acr-card-nested)] [&>*+*]:border-t [&>*+*]:border-[var(--acr-border-soft)]",k_="rounded-none hover:bg-[var(--acr-hover)]",f0=120;function $9({conn:e,onPick:t,surface:n,onOpenPackage:i}){const[a,o]=M.useState(""),[c,d]=M.useState([]),[h,m]=M.useState(!0),[b,y]=M.useState(!1),[T,k]=M.useState(null),[R,N]=M.useState(null),[z,L]=M.useState(!1),[I,F]=M.useState(null),B=M.useMemo(()=>c.length?c.find(ut=>ut.id===T)??c[0]:null,[T,c]),Y=(R==null?void 0:R.sources)??[],Z=R==null?void 0:R.plugin.sourceGrouping,et=(Z==null?void 0:Z.resolver)==="adapter.groupByNamespace",q=(R==null?void 0:R.groups)??[],nt=I===null?null:q.find(ut=>ut.key===I)??{key:I,label:I,count:(R==null?void 0:R.total)??Y.length},ot=(R==null?void 0:R.total)??(nt==null?void 0:nt.count)??Y.length,Ct=!!(Z!=null&&Z.enabled)&&I===null&&q.length>0,ct=R!=null&&R.facets.categories.length?R.facets.categories:(B==null?void 0:B.topCategories)??[];M.useEffect(()=>{let ut=!0;return m(!0),Ie.plugins(e).then(j=>{ut&&(d(j),k(J=>J&&!j.some(ht=>ht.id===J)?null:J))}).catch(()=>{}).finally(()=>{ut&&m(!1)}),()=>{ut=!1}},[]),M.useEffect(()=>{if(!B)return;let ut=!0;const j=a.trim()?60:I!==null?500:200;return L(!0),Ie.pluginSources(e,B.id,{query:a,limit:j,group:I??void 0,surface:n}).then(J=>{ut&&N(J)}).catch(()=>{}).finally(()=>{ut&&L(!1)}),()=>{ut=!1}},[B==null?void 0:B.id,a,I,n]),M.useEffect(()=>{const ut=j=>{j.key.toLowerCase()==="k"&&(j.metaKey||j.ctrlKey)&&(j.preventDefault(),y(J=>!J))};return window.addEventListener("keydown",ut),()=>window.removeEventListener("keydown",ut)},[]);function mt(ut){k(ut),o(""),F(null)}function Rt(ut){var j,J;return w.jsx(FM,{htmlId:QO(ut),source:ut,size:"sm",variant:"default",className:k_,onClick:()=>t(ut),actions:w.jsxs(w.Fragment,{children:[(j=ut.badges)!=null&&j.includes("needs_config")?w.jsx(wa,{variant:"secondary",size:"sm",className:"text-amber-500/90",children:"需配置"}):null,(J=ut.badges)!=null&&J.includes("nsfw")?w.jsx(wa,{variant:"secondary",size:"sm",className:"text-pink-500/90",children:"NSFW"}):null,w.jsx($u,{className:"size-4 text-muted-foreground"})]})},ut.id)}return w.jsxs(w.Fragment,{children:[w.jsxs(M_,{variant:"list",className:"w-[22rem]",children:[w.jsxs(X9,{className:"h-[49px] px-3",children:[w.jsx(Q9,{children:"我的插件"}),w.jsx(J9,{children:w.jsxs(Z9,{children:[c.length," plugins"]})})]}),w.jsxs(R_,{padding:"flush",className:"scrollbar-mac relative",children:[w.jsx("section",{"aria-label":"我的插件",children:w.jsxs("div",{"data-slot":"source-plugin-list",children:[c.map((ut,j)=>{const J=(B==null?void 0:B.id)===ut.id,ht=c[j+1],Tt=ht&&!J&&(B==null?void 0:B.id)!==ht.id;return w.jsxs(M.Fragment,{children:[w.jsx(Rh,{asChild:!0,size:"xs",selected:J,className:["w-full cursor-pointer rounded-none transition-colors",J?"hover:bg-primary":"hover:bg-[var(--acr-card-nested)]"].join(" "),children:w.jsx("button",{type:"button",onClick:()=>mt(ut.id),className:`w-full items-start px-3 py-2 ${ut.enabled===!1?"opacity-55":""}`,children:w.jsxs(am,{className:"flex min-w-0 flex-col",children:[w.jsxs(g4,{className:"h-4 items-center gap-1.5",children:[w.jsx($p,{className:"min-w-0 flex-1 text-[13px] font-semibold leading-4",children:ut.name}),ut.enabled===!1?w.jsx(wa,{variant:"secondary",size:"sm",className:"text-muted-foreground",children:"已停用"}):null,w.jsxs(Px,{className:"text-[11px] leading-4",children:[ut.sourceCount," sources"]})]}),w.jsx(tv,{className:"mt-1 text-[11px] leading-[13px]",children:ut.tagline||ut.description||(ut.capabilities.length?ut.capabilities.join(" / "):"暂无 sources")}),ut.description&&ut.description!==ut.tagline?w.jsx(tv,{className:"mt-1 text-[11px] leading-[13px]",children:ut.description}):null]})})}),Tt?w.jsx(y4,{}):null]},ut.id)}),!h&&c.length===0?w.jsx(Rh,{variant:"muted",className:"m-3",children:w.jsxs(am,{children:[w.jsx($p,{children:"暂无插件"}),w.jsx(tv,{children:"当前没有可用的信息源插件。"})]})}):null]})}),h?w.jsx("div",{"data-slot":"source-plugin-loading-overlay",className:"absolute inset-0 z-20 flex items-center justify-center bg-[var(--acr-panel)]/70 backdrop-blur-sm",children:w.jsx(ZE,{className:"size-5 animate-spin text-muted-foreground"})}):null]})]}),w.jsxs(M_,{variant:"detail","data-nested-surface":"true",children:[w.jsxs(W9,{className:"h-[49px] gap-2 px-2",children:[I!==null?w.jsx("button",{type:"button","data-slot":"source-back-slot","aria-label":"返回上一级",onClick:()=>F(null),className:"flex size-8 shrink-0 items-center justify-center rounded-full text-foreground/80 transition-colors hover:bg-white/10 hover:text-foreground",children:w.jsx(vj,{className:"size-5"})}):w.jsx("span",{"data-slot":"source-back-slot","aria-hidden":"true",className:"size-8 shrink-0"}),w.jsxs("nav",{"aria-label":"位置",className:"flex min-w-0 shrink items-center gap-1 text-[12px] text-muted-foreground",children:[w.jsx("span",{className:"truncate",children:(B==null?void 0:B.name)??""}),nt?w.jsxs(w.Fragment,{children:[w.jsx($u,{className:"size-3 shrink-0 opacity-60"}),w.jsx("span",{className:"truncate text-foreground",children:nt.label})]}):null]}),w.jsx(K9,{className:"min-w-0 flex-1",children:w.jsx(Wx,{"data-slot":"source-discovery-search",size:"large",className:"w-full min-w-0 max-w-[26rem]",value:a,onChange:ut=>{const j=ut.target.value;o(j),j.trim()&&F(null)},onClear:()=>o(""),placeholder:B?`搜索 ${B.name} 的源`:"搜索源","aria-label":B?`搜索 ${B.name} 的源`:"搜索源",shortcut:w.jsx("button",{type:"button",tabIndex:-1,onClick:()=>y(!0),title:"搜索全部插件的源",className:"pointer-events-auto -mx-1.5 -my-0.5 px-1.5 py-0.5 font-mono transition-colors hover:text-foreground",children:"⌘K"})})})]}),w.jsxs(R_,{padding:"flush",className:"scrollbar-mac relative px-3 py-3",children:[w.jsx("section",{"aria-label":"插件源详情",className:"min-h-full",children:w.jsxs("div",{children:[B&&I===null?w.jsx("section",{"aria-label":"插件说明",className:"mb-4 px-2",children:w.jsxs("div",{className:"space-y-2",children:[w.jsxs("div",{className:"flex items-start justify-between gap-3",children:[w.jsxs("div",{className:"min-w-0",children:[w.jsx("div",{className:"text-[15px] font-semibold leading-5",children:B.name}),B.tagline?w.jsx("div",{className:"mt-0.5 text-[12px] leading-4 text-muted-foreground",children:B.tagline}):null]}),i===void 0?null:w.jsxs(Sn,{variant:"secondary",size:"small",className:"shrink-0",onClick:()=>{i(B.id)},children:[w.jsx(_j,{}),"这是什么包"]})]}),B.enabled===!1?w.jsx("div",{className:"text-[11px] text-amber-500/90",children:"已停用:它的源不再注册。要重新打开它,去「包」页。"}):null,B.description?w.jsx("p",{className:"max-w-3xl text-[13px] leading-relaxed text-muted-foreground",children:B.description}):null,w.jsx("div",{className:"flex flex-wrap items-center gap-1.5",children:B.capabilities.map(ut=>w.jsx(wa,{variant:"secondary",size:"sm",children:$O(ut)},ut))}),ct.length?w.jsx("div",{className:"flex flex-wrap gap-1.5",children:ct.slice(0,8).map(ut=>w.jsxs("span",{className:"rounded-md bg-[var(--acr-chip)] px-2 py-1 text-[11px] text-muted-foreground",children:[ut.label," · ",ut.count]},ut.key))}):null]})}):null,nt&&et?w.jsxs("section",{"aria-label":"Source 分组说明",className:"mb-3 flex flex-wrap items-center gap-3 px-2 text-[12px]",children:[tC(nt.key)?w.jsxs("a",{href:tC(nt.key),target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 text-primary underline-offset-2 hover:underline",children:[w.jsx(XE,{className:"size-3.5"}),"访问站点"]}):null,w.jsxs("a",{href:JO(nt.key),target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 text-muted-foreground underline-offset-2 hover:text-foreground hover:underline",children:[w.jsx(pj,{className:"size-3.5"}),"RSSHub 路由说明"]})]}):null,Ct?w.jsx(__,{ariaLabel:"源分组",heading:`${a.trim()?"搜索结果":"全部分组"} · ${q.length}`,count:q.length,renderRow:ut=>{const j=q[ut];return w.jsx(Rh,{asChild:!0,size:"sm",className:`cursor-pointer ${k_}`,children:w.jsxs("button",{type:"button",onClick:()=>F(j.key),className:"w-full",children:[w.jsx(Ox,{variant:"image",className:"rounded-[6px] bg-[var(--acr-chip)]",children:w.jsx(q4,{id:j.key||"unclassified",name:j.label})}),w.jsx(am,{children:w.jsx($p,{className:"font-semibold",children:j.label})}),w.jsxs(Px,{children:[j.count," 个源"]}),w.jsx($u,{className:"size-4 shrink-0 text-muted-foreground"})]})},j.key)}}):w.jsx(__,{ariaLabel:"源列表",heading:nt?`${nt.label} · ${ot} 个源`:`${Y.length} 个源`,count:Y.length,empty:!z&&Y.length===0?"没有匹配的源":void 0,renderRow:ut=>Rt(Y[ut])})]})}),z?w.jsx("div",{"data-slot":"source-loading-overlay",className:"absolute inset-0 z-20 flex items-center justify-center bg-[var(--acr-panel)]/70 backdrop-blur-sm",children:w.jsx(ZE,{className:"size-6 animate-spin text-muted-foreground"})}):null]})]}),w.jsx(CU,{open:b,onOpenChange:y,conn:e,onPick:t,surface:n})]})}function __({ariaLabel:e,heading:t,count:n,empty:i,renderRow:a}){const[o,c]=M.useState(f0),d=M.useRef(null);return M.useEffect(()=>{c(f0)},[t,n]),M.useEffect(()=>{const h=d.current;if(!h||o>=n)return;if(typeof IntersectionObserver>"u"){c(n);return}const m=new IntersectionObserver(b=>{b.some(y=>y.isIntersecting)&&c(y=>Math.min(n,y+f0))},{rootMargin:"400px"});return m.observe(h),()=>m.disconnect()},[o,n]),i?w.jsx("section",{"aria-label":e,className:"px-3 py-10 text-center text-[12px] text-muted-foreground",children:i}):w.jsxs("section",{"aria-label":e,className:"px-1",children:[w.jsxs("div",{className:"sticky top-0 z-10 -mx-1 mb-1.5 px-3 py-1.5",children:[w.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 backdrop-blur-md [mask-image:linear-gradient(to_bottom,black_55%,transparent)]"}),w.jsx("span",{className:"relative text-[11px] font-semibold tracking-[0.06em] text-muted-foreground",children:t})]}),w.jsx("div",{className:q9,children:Array.from({length:Math.min(o,n)},(h,m)=>a(m))}),o<n?w.jsx("div",{ref:d,"aria-hidden":"true",className:"h-8"}):null]})}function tG({open:e,onOpenChange:t,conn:n,onPick:i,surface:a}){return w.jsx(nd,{open:e,onOpenChange:t,children:w.jsxs(uc,{className:"h-[80vh] max-w-[64rem] overflow-hidden p-0",children:[w.jsx(dc,{className:"sr-only",children:"选择来源"}),w.jsx("div",{className:"flex h-full min-h-0",children:w.jsx($9,{conn:n,onPick:i,surface:a})})]})})}const A_="text-[11px] font-semibold tracking-[0.06em] text-muted-foreground",eG="text-[11px] leading-snug text-muted-foreground";function nG({className:e,children:t}){return w.jsx("div",{className:At("flex flex-col gap-5",e),children:t})}function N_({title:e,footnote:t,collapsible:n=!1,open:i,onOpenChange:a,actions:o,children:c}){const d=!n||!!i;return w.jsxs("section",{className:"min-w-0",children:[e?n?w.jsxs("button",{type:"button",onClick:()=>a==null?void 0:a(!i),"aria-expanded":d,className:"group flex w-full items-center gap-1 px-3 pb-1.5 text-left",children:[w.jsx($u,{"aria-hidden":"true",className:At("size-3 shrink-0 text-muted-foreground","transition-transform duration-[var(--acr-spring-default-duration)] ease-[var(--acr-spring-default)]",d&&"rotate-90")}),w.jsx("span",{className:A_,children:e}),o?w.jsx("span",{className:"ml-auto",children:o}):null]}):w.jsxs("div",{className:"flex items-center gap-2 px-3 pb-1.5",children:[w.jsx("span",{className:A_,children:e}),o?w.jsx("span",{className:"ml-auto",children:o}):null]}):null,d?w.jsx("div",{className:"overflow-hidden rounded-[10px] bg-[var(--acr-card-nested)] [&>*+*]:border-t [&>*+*]:border-[var(--acr-border-soft)]",children:c}):null,d&&t?w.jsx("p",{className:At("mt-1.5 px-3",eG),children:t}):null]})}function m0({className:e,children:t}){return w.jsx("div",{className:At("px-3 py-3",e),children:t})}const iG=AB,rG=NB,z_=M.forwardRef(({className:e,align:t="start",sideOffset:n=4,container:i,...a},o)=>w.jsx(zB,{container:i,children:w.jsx(OE,{ref:o,align:t,sideOffset:n,className:At("z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-[10px] bg-[var(--acr-panel)] p-4 text-foreground backdrop-blur-xl shadow-[0_0_0_1px_rgba(190,190,190,0.16),0_16px_48px_rgba(0,0,0,0.45)] outline-none","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 [animation-timing-function:var(--acr-spring-default)]! [animation-duration:var(--acr-spring-default-duration)]!",e),...a})}));z_.displayName=OE.displayName;function sG({options:e=[],groups:t,value:n,onValueChange:i,placeholder:a="Select…",searchPlaceholder:o="Search…",emptyText:c="No results.",size:d="medium",className:h,contentClassName:m,modal:b,container:y}){const[T,k]=M.useState(!1),R=t??[{options:e}],z=R.flatMap(I=>I.options).find(I=>I.value===n),L=I=>w.jsxs(aR,{value:I.label,onSelect:()=>{i==null||i(I.value===n?"":I.value),k(!1)},children:[w.jsx(Ip,{className:At("size-3.5",I.value===n?"opacity-100":"opacity-0")}),I.label]},I.value);return w.jsxs(iG,{open:T,onOpenChange:k,modal:b,children:[w.jsx(rG,{asChild:!0,children:w.jsxs("button",{type:"button",role:"combobox","aria-expanded":T,"data-slot":"combobox-trigger",className:At(MM({size:d}),"items-center justify-between gap-2",!z&&"text-muted-foreground",h),children:[w.jsx("span",{className:"truncate",children:z?z.label:a}),w.jsx(WE,{className:"size-3.5 shrink-0 opacity-60"})]})}),w.jsx(z_,{align:"start",container:y,className:At("w-[var(--radix-popover-trigger-width)] min-w-[12rem] p-0",m),children:w.jsxs(eR,{children:[w.jsx(nR,{placeholder:o}),w.jsxs(iR,{children:[w.jsx(rR,{children:c}),R.map((I,F)=>w.jsx(sR,{heading:I.heading,children:I.options.map(L)},I.heading??F))]})]})})]})}const aG=M.createContext(null);function oG(){const e=M.useContext(aG);if(!e)throw new Error("usePreview must be used inside <PreviewContext.Provider>");return e}function lG({...e}){return w.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function cG({className:e,...t}){return w.jsx("ol",{"data-slot":"breadcrumb-list",className:At("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",e),...t})}function uG({className:e,...t}){return w.jsx("li",{"data-slot":"breadcrumb-item",className:At("inline-flex items-center gap-1.5",e),...t})}function dG({asChild:e,className:t,...n}){const i=e?Vf:"a";return w.jsx(i,{"data-slot":"breadcrumb-link",className:At("hover:text-foreground transition-colors",t),...n})}function hG({className:e,...t}){return w.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:At("text-foreground font-normal",e),...t})}function fG({children:e,className:t,...n}){return w.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:At("text-[var(--label-tertiary)] [&>svg]:size-3.5",t),...n,children:e??w.jsx($u,{})})}function mG({className:e,...t}){return w.jsx("div",{"data-slot":"input-group",role:"group",className:At("group/input-group relative flex w-full min-w-0 flex-wrap items-center","border border-[var(--acr-control-border)] bg-[var(--acr-control)] rounded-[6px]","text-foreground outline-none transition-colors","hover:border-[var(--acr-border)]","focus-within:border-ring focus-within:ring-[3px] focus-within:ring-ring/25","has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-50","has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:items-stretch","has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:items-stretch",e),onClick:n=>{var a;n.target.closest("button, a, input, textarea, select")||(a=n.currentTarget.querySelector("[data-slot=input-group-control]"))==null||a.focus()},...t})}function gG({className:e,...t}){return w.jsx("input",{"data-slot":"input-group-control",className:At("order-1 h-6 min-w-0 flex-1 border-0 bg-transparent px-2 text-[13px] text-foreground outline-none","placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground","disabled:cursor-not-allowed",e),...t})}const pG=M.forwardRef(({autoResize:e=!1,maxRows:t=3,className:n,value:i,onChange:a,onInput:o,...c},d)=>{const h=M.useRef(null),m=y=>{h.current=y,typeof d=="function"?d(y):d&&(d.current=y)},b=M.useCallback(()=>{if(!e)return;const y=h.current;if(!y)return;y.style.height="auto";const T=getComputedStyle(y),k=parseFloat(T.lineHeight)||20,R=parseFloat(T.paddingTop)+parseFloat(T.paddingBottom),N=k*t+R;y.style.height=`${Math.min(y.scrollHeight,N)}px`,y.style.overflowY=y.scrollHeight>N?"auto":"hidden"},[e,t]);return M.useEffect(b,[b,i]),w.jsx("textarea",{ref:m,"data-slot":"input-group-control",rows:1,value:i,onChange:y=>{a==null||a(y),b()},onInput:y=>{o==null||o(y),b()},className:At("order-1 min-w-0 flex-1 resize-none border-0 bg-transparent px-2 py-1.5 text-[13px] leading-5 text-foreground outline-none","placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground","disabled:cursor-not-allowed scrollbar-mac",n),...c})});pG.displayName="InputGroupTextarea";function vG({className:e,align:t="inline-start",...n}){return w.jsx("div",{"data-slot":"input-group-addon","data-align":t,className:At("flex items-center gap-1.5 text-muted-foreground [&_svg]:pointer-events-none [&_svg]:size-3.5 [&_svg]:shrink-0",t==="inline-start"&&"order-0 pl-2 has-[>[data-slot=input-group-button]]:pl-0.5",t==="inline-end"&&"order-2 pr-2 has-[>[data-slot=input-group-button]]:pr-0.5",t==="block-start"&&"order-0 w-full px-2 pt-1.5 [&_[data-slot=input-group-text]]:text-[11px] has-[>[data-slot=input-group-button]]:pt-0.5 has-[>[data-slot=input-group-button]]:pr-0.5",t==="block-end"&&"order-2 w-full px-2 pb-1.5 [&_[data-slot=input-group-text]]:text-[11px] has-[>[data-slot=input-group-button]]:pb-0.5 has-[>[data-slot=input-group-button]]:pr-0.5",e),onClick:i=>{var o,c;i.target.closest("button, a, input, textarea, select")||(c=(o=i.currentTarget.closest("[data-slot=input-group]"))==null?void 0:o.querySelector("[data-slot=input-group-control]"))==null||c.focus()},...n})}const D_={root:"All files",loading:"Loading…",empty:"This folder is empty",noMatches:"No matches",selectionEmpty:"Nothing selected",searchLocal:"Search this folder…",searchSubtree:"Search everything below…",newFolder:"New folder",newFolderPlaceholder:"Folder name",nameRequired:"Name required",nameTaken:"That name is taken",title:"Choose a location",description:"Browse the list below, then confirm your selection.",cancel:"Cancel",confirm:"Choose"};function Em(e,t){return e==="/"||e===""?`/${t}`:`${e}/${t}`}function yG(e,t){const n=[{label:t,path:"/"}];let i="";for(const a of e.split("/").filter(Boolean))i=`${i}/${a}`,n.push({label:a,path:i});return n}function bG({loadDir:e,searchDir:t,onCreateFolder:n,defaultPath:i="/",path:a,onPathChange:o,select:c="dir",value:d,onValueChange:h,labels:m,className:b}){const y={...D_,...m},[T,k]=M.useState(i),R=a??T,[N,z]=M.useState([]),[L,I]=M.useState(!0),[F,B]=M.useState(null),Y=c==="dir"||c==="any",[Z,et]=M.useState("in"),q=M.useRef(null),nt=M.useRef(!1),ot=M.useCallback((Vt,Xt)=>{var Gi;nt.current=!!((Gi=q.current)!=null&&Gi.contains(document.activeElement));const de=Rr=>Rr.split("/").filter(Boolean).length;et(de(Vt)<de(R)?"out":"in"),a===void 0&&k(Vt),o==null||o(Vt),Y&&(h==null||h(Vt,Xt))},[R,a,o,Y,h]),Ct=M.useRef(!1);M.useEffect(()=>{Y&&!Ct.current&&(Ct.current=!0,h==null||h(R,null))},[Y,R,h]);const ct=M.useRef(e);ct.current=e,M.useEffect(()=>{let Vt=!0;return I(!0),B(null),ct.current(R).then(Xt=>{Vt&&z(Xt)}).catch(Xt=>{Vt&&(z([]),B(Xt instanceof Error?Xt.message:String(Xt)))}).finally(()=>{Vt&&I(!1)}),()=>{Vt=!1}},[R]);const[mt,Rt]=M.useState(""),[ut,j]=M.useState(null),[J,ht]=M.useState(null),[Tt,K]=M.useState(null),[U,X]=M.useState(null),[ft,yt]=M.useState(0),[tt,bt]=M.useState(!1);M.useLayoutEffect(()=>{q.current&&(q.current.scrollTop=0),bt(!1)},[R]);const[zt,Dt]=M.useState(R),[Mt,Yt]=M.useState(mt);R!==zt?(Dt(R),Rt(""),Yt(""),j(null),ht(null),K(null),X(null),yt(0)):mt!==Mt&&(Yt(mt),yt(0));const Qt=M.useRef(t);Qt.current=t,M.useEffect(()=>{const Vt=mt.trim();if(!Qt.current||!Vt){j(null),ht(null);return}let Xt=!0;return Qt.current(R,Vt).then(de=>{Xt&&(j(de),ht(null))}).catch(de=>{Xt&&(j(null),ht(de instanceof Error?de.message:String(de)))}),()=>{Xt=!1}},[R,mt]);const[ne,Ut]=M.useState(!1),Ce=M.useRef(!0);M.useEffect(()=>(Ce.current=!0,()=>{Ce.current=!1}),[]);const Ht=M.useCallback(async()=>{if(ne||!n||Tt===null)return;const Vt=Tt.trim();if(!Vt){X(y.nameRequired);return}if(N.some(Xt=>Xt.name===Vt)){X(y.nameTaken);return}Ut(!0),X(null);try{if(await n(R,Vt),!Ce.current)return;K(null);const Xt=await ct.current(R);if(!Ce.current)return;z(Xt),ot(Em(R,Vt),{name:Vt,isDir:!0})}catch(Xt){if(!Ce.current)return;X(Xt instanceof Error?Xt.message:String(Xt))}finally{Ce.current&&Ut(!1)}},[n,Tt,ne,N,R,y.nameRequired,y.nameTaken,ot]),ee=M.useMemo(()=>{const Vt=mt.trim().toLowerCase();return[...ut??(Vt?N.filter(de=>de.name.toLowerCase().includes(Vt)):N)].sort((de,Gi)=>Number(Gi.isDir)-Number(de.isDir))},[N,ut,mt]),re=ee.length===0?-1:Math.min(ft,ee.length-1),we=mt.trim().length>0,Le=yG(R,y.root),Mr=M.useCallback(Vt=>{var Gi;const Xt=(Gi=q.current)==null?void 0:Gi.querySelectorAll('[role="option"]');if(!Xt||Xt.length===0)return;const de=Math.max(0,Math.min(Vt,Xt.length-1));yt(de),Xt[de].focus()},[]),Hn=M.useRef(L);M.useEffect(()=>{const Vt=Hn.current;Hn.current=L,Vt&&!L&&nt.current&&(nt.current=!1,ee.length>0&&Mr(0))},[L,ee,Mr]);const Nn=M.useMemo(()=>{const Vt=R.split("/").filter(Boolean);return Vt.pop(),Vt.length===0?"/":`/${Vt.join("/")}`},[R]),ds=Vt=>{if(!Vt.target.closest('[role="option"]'))return;const de=ee[re];switch(Vt.key){case"ArrowDown":Vt.preventDefault(),Mr(re+1);break;case"ArrowUp":Vt.preventDefault(),Mr(re-1);break;case"ArrowRight":de!=null&&de.isDir&&(Vt.preventDefault(),ot(Em(R,de.name),de));break;case"ArrowLeft":R!=="/"&&(Vt.preventDefault(),ot(Nn,null));break;case"Enter":{if(!de)break;if(Vt.preventDefault(),de.isDir){ot(Em(R,de.name),de);break}c!=="dir"&&(h==null||h(Em(R,de.name),de));break}}};return w.jsxs("div",{className:At("flex min-h-0 flex-col gap-2",b),children:[w.jsx(lG,{children:w.jsx(cG,{className:"gap-1 sm:gap-1.5",children:Le.map((Vt,Xt)=>w.jsxs(M.Fragment,{children:[w.jsx(uG,{children:Xt===Le.length-1?w.jsx(hG,{children:Vt.label}):w.jsx(dG,{asChild:!0,children:w.jsx("button",{type:"button",onClick:()=>ot(Vt.path,null),children:Vt.label})})}),Xt<Le.length-1&&w.jsx(fG,{})]},Vt.path))})}),w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsxs(mG,{className:"flex-1",children:[w.jsx(gG,{type:"search",value:mt,onChange:Vt=>Rt(Vt.target.value),placeholder:t?y.searchSubtree:y.searchLocal,"aria-label":t?y.searchSubtree:y.searchLocal}),w.jsx(vG,{children:w.jsx(Tx,{})})]}),n&&w.jsx(Sn,{type:"button",icon:!0,size:"medium",variant:"ghost","aria-label":y.newFolder,disabled:ne,onClick:()=>{K(""),X(null)},children:w.jsx(Ej,{})})]}),w.jsxs("div",{ref:q,role:"listbox","aria-label":Le[Le.length-1].label,onKeyDown:ds,onScroll:Vt=>bt(Vt.currentTarget.scrollTop>0),style:tt?{maskImage:"linear-gradient(to bottom, transparent 0, black 12px)",WebkitMaskImage:"linear-gradient(to bottom, transparent 0, black 12px)"}:void 0,className:"min-h-[12rem] flex-1 overflow-y-auto overflow-x-hidden scrollbar-mac",children:[Tt!==null&&w.jsxs("div",{className:"flex flex-col gap-1 px-2 py-1.5",children:[w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx(QE,{className:"size-3.5 shrink-0 text-muted-foreground"}),w.jsx("input",{autoFocus:!0,"aria-label":y.newFolder,placeholder:y.newFolderPlaceholder,value:Tt,disabled:ne,onChange:Vt=>K(Vt.target.value),onKeyDown:Vt=>{Vt.key==="Enter"&&(Vt.preventDefault(),Ht()),Vt.key==="Escape"&&(Vt.preventDefault(),K(null),X(null))},className:"min-w-0 flex-1 border-0 bg-transparent text-sm outline-none"})]}),U&&w.jsx("p",{className:"pl-6 text-sm text-destructive",children:U})]}),w.jsx("div",{role:"presentation","data-direction":Z,className:At("flex flex-col gap-0.5","motion-safe:animate-in motion-safe:fade-in","motion-safe:data-[direction=in]:slide-in-from-right-2","motion-safe:data-[direction=out]:slide-in-from-left-2"),style:{animationDuration:"var(--acr-spring-default-duration)",animationTimingFunction:"var(--acr-spring-default)"},children:L?w.jsxs("div",{className:"flex flex-col gap-1 p-1",children:[w.jsx(E_,{className:"h-8 w-full"}),w.jsx(E_,{className:"h-8 w-2/3"})]}):F?w.jsx("p",{className:"px-2 py-3 text-sm text-destructive",children:F}):we&&J?w.jsx("p",{className:"px-2 py-3 text-sm text-destructive",children:J}):ee.length===0?w.jsx("p",{className:"px-2 py-3 text-sm text-muted-foreground",children:we?y.noMatches:y.empty}):ee.map((Vt,Xt)=>{const de=Em(R,Vt.name),Gi=Vt.isDir?c!=="file":c!=="dir",Rr=d!=null&&d===de,Bn=Vt.isDir||Gi;return w.jsx(Rh,{asChild:!0,size:"xs",selected:Rr,className:At("w-full",Bn?"cursor-pointer active:scale-[0.995] [&:not([data-selected])]:hover:bg-[var(--acr-hover)]":"cursor-default opacity-45"),children:w.jsxs("div",{role:"option","aria-selected":Rr,"aria-disabled":!Gi&&!Vt.isDir?!0:void 0,tabIndex:Xt===re?0:-1,onFocus:()=>yt(Xt),onClick:()=>{if(Vt.isDir){ot(de,Vt);return}Gi&&(h==null||h(de,Vt))},children:[w.jsx(Ox,{className:"group-data-[size=xs]/item:size-4",children:Vt.isDir?w.jsx(QE,{}):w.jsx(Cj,{})}),w.jsx(am,{className:"min-w-0 truncate text-sm",children:Vt.name})]})},`${Vt.isDir}:${Vt.name}`)})},R)]}),d!==R&&w.jsx("div",{"data-testid":"file-picker-selection",className:"shrink-0 truncate text-sm text-muted-foreground",children:d??y.selectionEmpty})]})}function xG({open:e,onOpenChange:t,commitOnSelect:n,onCommit:i,value:a,onValueChange:o,labels:c,className:d,...h}){const m={...D_,...c},[b,y]=M.useState(null),[T,k]=M.useState(e);e!==T&&(k(e),e&&y(null));const R=a!==void 0?a:(b==null?void 0:b.path)??null,N=(z,L)=>{i==null||i(z,L),t(!1)};return w.jsx(nd,{open:e,onOpenChange:t,children:w.jsxs(uc,{showCloseButton:!1,children:[w.jsxs(Th,{children:[w.jsx(dc,{children:m.title}),w.jsx(Eh,{className:"sr-only",children:m.description})]}),w.jsx(bG,{...h,labels:c,value:R,className:At("h-[26rem]",d),onValueChange:(z,L)=>{y(z===null?null:{path:z,entry:L}),o==null||o(z,L),n&&z!==null&&L!==null&&!L.isDir&&N(z,L)}}),w.jsxs(Wp,{children:[w.jsx(Sn,{variant:"neutral",onClick:()=>t(!1),children:m.cancel}),w.jsx(Sn,{disabled:!R,onClick:()=>{R&&N(R,(b==null?void 0:b.path)===R?b.entry:null)},children:m.confirm})]})]})})}const wG={root:"根目录",loading:"加载中…",empty:"空目录",noMatches:"没有匹配项",selectionEmpty:"未选择",searchLocal:"搜索当前目录…",searchSubtree:"搜索这个目录下的全部目录…",newFolder:"新建文件夹",newFolderPlaceholder:"文件夹名",nameRequired:"名字不能为空",nameTaken:"这个名字已经被占用",title:"选择网盘目录",description:"浏览下面的列表,选中一个目录后确认。",cancel:"取消",confirm:"选定此目录"};function O_(e){return e.map(t=>({name:t.name,isDir:t.isDir,meta:{size:t.size}}))}function SG(e,t){return e==="/"||e===""?`/${t}`:`${e}/${t}`}function CG(e,t={}){const n=M.useRef(null),i=t.dirs;return{fetchRecursive:o=>{var c;return((c=n.current)==null?void 0:c.path)!==o&&(n.current={path:o,entries:Ie.netdisk.listFs(e,o,{recursive:!0,refresh:!0,dirs:i}).then(d=>O_(d.files))},n.current.entries.catch(()=>{var d;((d=n.current)==null?void 0:d.path)===o&&(n.current=null)})),n.current.entries},invalidate:()=>{n.current=null}}}function TG({apiBase:e="",open:t,onOpenChange:n,initialPath:i="/",onPick:a}){const o={baseUrl:e},[c,d]=M.useState(i),{fetchRecursive:h,invalidate:m}=CG(o,{dirs:!0}),[b,y]=M.useState(t);return t!==b&&(y(t),t&&(d(i),m())),w.jsx(xG,{open:t,onOpenChange:n,select:"dir",path:c,onPathChange:d,labels:wG,loadDir:async T=>O_((await Ie.netdisk.listFs(o,T)).files),searchDir:(T,k)=>h(T).then(R=>{const N=k.trim().toLowerCase(),z=R.filter(L=>L.isDir);return N?z.filter(L=>L.name.toLowerCase().includes(N)):z}),onCreateFolder:async(T,k)=>{await Ie.netdisk.mkdir(o,SG(T,k))},onCommit:T=>a(T)})}const EG={"netdisk-dir":RG};function MG({name:e,spec:t,value:n,onChange:i,container:a,apiBase:o=""}){const c=t.widget?EG[t.widget]:void 0,d=WO(t),h=`param-${e}`;return w.jsxs(id,{orientation:"vertical",children:[w.jsxs("div",{className:"flex items-center gap-1",children:[w.jsxs(rd,{htmlFor:h,children:[e,t.required?" *":""]}),t.description?w.jsxs(EU,{openDelay:100,children:[w.jsx(MU,{asChild:!0,children:w.jsx("button",{type:"button",tabIndex:-1,"aria-label":`${e} 说明`,className:"inline-flex text-muted-foreground/70 transition-colors hover:text-foreground",children:w.jsx(Mj,{className:"size-3.5"})})}),w.jsx(RU,{container:a,align:"start",className:"max-h-80 w-80 overflow-y-auto",children:w.jsx(Xg,{text:t.description})})]}):null]}),c?w.jsx(c,{id:h,value:n,onChange:i,apiBase:o}):d.length?w.jsxs(Kp,{value:n||t.default||void 0,onValueChange:i,children:[w.jsx(Qp,{id:h,className:"w-full",children:w.jsx(Xp,{placeholder:t.default||"选择一个选项"})}),w.jsx(Zp,{children:d.map(m=>w.jsx(sm,{value:m.value,children:m.label},m.value))})]}):w.jsx(dl,{id:h,value:n,onChange:m=>i(m.target.value)})]})}function RG({id:e,value:t,onChange:n,apiBase:i}){const[a,o]=M.useState(!1);return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"flex w-full items-center gap-2",children:[w.jsx(dl,{id:e,className:"flex-1",value:t,placeholder:"/夸克网盘/我的转存/某节目",onChange:c=>n(c.target.value)}),w.jsxs(Sn,{type:"button",size:"small",variant:"neutral",onClick:()=>o(!0),children:[w.jsx(Tj,{})," 浏览"]})]}),w.jsx(TG,{apiBase:i,open:a,onOpenChange:o,initialPath:t||"/",onPick:c=>{n(c),o(!1)}})]})}function P_(e){return e.kind==="pick"?null:e.kind==="stream"?e.memberIndex===void 0?{action:"append-stream",streamId:e.streamId}:{action:"edit-stream-member",streamId:e.streamId,memberIndex:e.memberIndex}:e.memberIndex===void 0?{action:"append-provider",providerId:e.providerId}:{action:"edit-provider-member",providerId:e.providerId,memberIndex:e.memberIndex}}function g0(e){return e.sources.map(t=>({plugin:kG(t),source:_G(t),params:t.params}))}function kG(e){var t;return((t=e.source)==null?void 0:t.pluginId)??e.plugin_id??""}function _G(e){var t;return((t=e.source)==null?void 0:t.id)??e.source_template_id??""}async function AG(e){const{conn:t,source:n,dest:i,params:a}=e,o={plugin:n.pluginId,source:n.id,params:a},c={source:n.id,...e.memberName?{name:e.memberName}:{},params:a};switch(i.action){case"create-stream":{const d=e.channels.find(b=>b.id===i.channelId);if(!d)throw new Error("channel not found");const h=YO(n.id),m=h+"-"+Math.random().toString(36).slice(2,7);await Ie.subscribe(t,{id:m,label:e.name||n.id,strategy:"fanout",cadence_seconds:172800,members:[o],options:{vault_subdir:h},channel_id:d.id});return}case"append-stream":{const d=e.streams.find(h=>h.id===i.streamId);if(!d)throw new Error("stream not found");await Ie.patchStreamMembers(t,d.id,[...g0(d),o]);return}case"edit-stream-member":{const d=e.streams.find(m=>m.id===i.streamId);if(!d)throw new Error("stream not found");const h=g0(d);h[i.memberIndex]=o,await Ie.patchStreamMembers(t,d.id,h);return}case"append-provider":{const d=e.providers.find(h=>h.id===i.providerId);if(!d)throw new Error("provider not found");await Ie.patchProvider(t,d.id,{members:[...d.members,c]});return}case"edit-provider-member":{const d=e.providers.find(m=>m.id===i.providerId);if(!d)throw new Error("provider not found");const h=d.members.map((m,b)=>b===i.memberIndex&&"source"in m?{source:m.source,...m.name?{name:m.name}:{},params:a}:m);await Ie.patchProvider(t,d.id,{members:h});return}}}function L_({open:e,onOpenChange:t,conn:n,source:i,target:a,streams:o,providers:c,channels:d,initialParams:h,initialName:m,defaultChannelId:b,onSubmitted:y}){const T=M.useMemo(()=>Object.entries(i.paramsSchema),[i]),k=M.useMemo(()=>{const Ht=ZO(i);return Ht?qS(Ht):[]},[i]),[R,N]=M.useState(()=>P_(a)),[z,L]=M.useState(m??i.title??i.id),[I,F]=M.useState(b??""),[B,Y]=M.useState(h??{}),[Z,et]=M.useState(!1),[q,nt]=M.useState(null),[ot,Ct]=M.useState(!1),[ct,mt]=M.useState(null),{openPreview:Rt}=oG(),ut=i.runtimeConfig,[j,J]=M.useState({}),[ht,Tt]=M.useState({}),K=!!(ut!=null&&ut.perInstance),U=B_(h==null?void 0:h.tokenName),[X,ft]=M.useState(U),yt=K&&X?p0(X):void 0,tt=JSON.stringify(a);M.useEffect(()=>{e&&(N(P_(a)),L(m??i.title??i.id),F(b??""),Y(h??{}),ft(B_(h==null?void 0:h.tokenName)),Ct(!1),nt(null))},[e,i.id,tt]);const bt=Ht=>Object.fromEntries(Object.entries(Ht).filter(([ee,re])=>{var we;return re&&((we=ut==null?void 0:ut.fields[ee])==null?void 0:we.type)==="secret"}));M.useEffect(()=>{if(!ut||!e)return;if(K&&!yt){J(bt),Tt({});return}let Ht=!0;const ee=setTimeout(()=>{fetch(`${n.baseUrl}/api/source-runtime-config/status`,{method:"POST",headers:{"content-type":"application/json",...n.token?{Authorization:`Bearer ${n.token}`}:{}},body:JSON.stringify({pluginId:i.pluginId,sourceId:i.id,...yt?{ref:yt}:{}})}).then(re=>re.ok?re.json():Promise.reject()).then(re=>{Ht&&(J(we=>({...re.values,...bt(we)})),Tt(Object.fromEntries(Object.entries(re.secrets).map(([we,Le])=>[we,Le.configured]))))}).catch(()=>{Ht&&(J(bt),Tt({}))})},300);return()=>{Ht=!1,clearTimeout(ee)}},[n.baseUrl,n.token,e,ut,K,yt,i.id,i.pluginId]);const zt=(R==null?void 0:R.action)==="create-stream",Dt=(R==null?void 0:R.action)==="edit-stream-member"||(R==null?void 0:R.action)==="edit-provider-member",{pickMap:Mt,pickGroups:Yt}=M.useMemo(()=>{const Ht={"create-stream":{action:"create-stream",channelId:""}},ee=[{options:[{value:"create-stream",label:"新建 Stream"}]}];if(o.length){ee.push({heading:"Stream",options:o.map(re=>({value:"stream:"+re.id,label:re.description||re.id}))});for(const re of o)Ht["stream:"+re.id]={action:"append-stream",streamId:re.id}}if(c.length){ee.push({heading:"Provider",options:c.map(re=>({value:"provider:"+re.id,label:re.label}))});for(const re of c)Ht["provider:"+re.id]={action:"append-provider",providerId:re.id}}return{pickMap:Ht,pickGroups:ee}},[o,c]);async function Qt(){if(!R){nt("请选择目的地");return}let Ht=R;if(R.action==="create-stream"){if(!I){nt("请选择频道");return}Ht={action:"create-stream",channelId:I}}const ee=JS(i.paramsSchema,B);if(!ee.ok){nt(`缺少必填参数: ${ee.missing}`);return}if(K&&!I_.test(X)){nt("实例名必填,且只能用字母、数字、下划线或短横线");return}const re=ut&&Object.entries(ut.fields).find(([we,Le])=>Le.required&&!j[we]&&!ht[we]);if(re){nt(`缺少运行时配置: ${re[1].label}`);return}if(et(!0),nt(null),!ot)try{const we=K?{...ee.params,tokenName:p0(X)}:ee.params;await AG({conn:n,source:i,dest:Ht,name:z,memberName:K?X:void 0,params:we,streams:o,providers:c,channels:d}),Ct(!0)}catch(we){nt(we.message),et(!1);return}if(ut&&Object.keys(ut.fields).length)try{await Ut()}catch(we){y==null||y(),nt(`成员已保存,但 key 未保存(${we.message})——请重新打开这一档补填 key`),et(!1);return}y==null||y(),t(!1),et(!1)}function ne(){const Ht=JS(i.paramsSchema,B);if(!Ht.ok){nt(`缺少必填参数: ${Ht.missing}`);return}nt(null),Rt({kind:"source",sourceId:i.id,params:Ht.params,label:z||i.title||i.id})}async function Ut(){if(!ut)return;const Ht=await fetch(`${n.baseUrl}/api/source-runtime-config`,{method:"PUT",headers:{"content-type":"application/json",...n.token?{Authorization:`Bearer ${n.token}`}:{}},body:JSON.stringify({pluginId:i.pluginId,sourceId:i.id,...yt?{ref:yt}:{},values:j})});if(!Ht.ok)throw new Error("保存 Source 配置失败");const ee=await Ht.json();J(ee.values),Tt(Object.fromEntries(Object.entries(ee.secrets).map(([re,we])=>[re,we.configured])))}const Ce=Dt?"保存":zt?"新建 Stream":"添加";return w.jsx(F9,{open:e,onOpenChange:t,children:w.jsx(V9,{side:"right",className:"w-[max(26rem,50vw)] p-0 sm:max-w-none",children:w.jsxs("div",{ref:mt,className:"flex min-h-0 flex-1 flex-col",children:[w.jsx(H9,{className:"px-4 pt-4",children:w.jsx(Y9,{children:i.title||i.id})}),w.jsx("div",{className:"scrollbar-mac min-h-0 flex-1 overflow-y-auto px-4 pb-6 pt-1",children:w.jsxs(nG,{children:[w.jsxs(N_,{title:"说明",actions:i.facility&&$S(i)?w.jsxs("a",{href:$S(i),target:"_blank",rel:"noreferrer",className:"inline-flex h-5 shrink-0 items-center gap-1 rounded-md px-1.5 text-[11px] text-muted-foreground transition-colors hover:bg-[var(--acr-card-nested)] hover:text-foreground",children:[w.jsx("span",{className:"max-w-[8rem] truncate",children:i.facility.label}),w.jsx(XE,{className:"size-3 shrink-0"})]}):null,children:[w.jsxs(m0,{children:[w.jsx("code",{className:"mb-2 block truncate font-mono text-[11px] text-muted-foreground",children:i.id.replace(/^rsshub:/,"")}),k.length?w.jsx(eC,{blocks:k}):w.jsx("div",{className:"text-[13px] leading-relaxed text-muted-foreground",children:w.jsx(Xg,{text:XO(i)})})]}),T.length?w.jsxs(m0,{children:[w.jsx("div",{className:"mb-1.5 text-[11px] font-semibold tracking-[0.06em] text-muted-foreground",children:"参数"}),w.jsx("div",{className:"space-y-1.5",children:T.map(([Ht,ee])=>w.jsxs("div",{className:"grid grid-cols-[7rem_minmax(0,1fr)] gap-2 text-[11px]",children:[w.jsxs("code",{className:"font-mono text-foreground",children:[Ht,ee.required?" *":""]}),w.jsx("div",{className:"text-muted-foreground",children:ee.description?w.jsx(Xg,{text:ee.description}):"string"})]},Ht))})]}):null]}),w.jsxs("div",{className:"flex flex-col gap-4",children:[a.kind==="pick"?w.jsxs(id,{orientation:"vertical",children:[w.jsx(rd,{children:"加到哪里"}),w.jsx(sG,{groups:Yt,value:NG(R),onValueChange:Ht=>N(Mt[Ht]??null),placeholder:"选择目的地",searchPlaceholder:"搜索 Stream / Provider",emptyText:"无匹配",className:"w-full",container:ct})]}):null,zt?w.jsxs(w.Fragment,{children:[w.jsxs(id,{orientation:"vertical",children:[w.jsx(rd,{children:"频道"}),w.jsxs(Kp,{value:I,onValueChange:F,children:[w.jsx(Qp,{className:"w-full","aria-label":"选择频道",children:w.jsx(Xp,{placeholder:"选择一个频道"})}),w.jsx(Zp,{children:d.map(Ht=>w.jsxs(sm,{value:Ht.id,children:[Ht.label,Ht.kind==="audio"?" · 歌单":""]},Ht.id))})]})]}),w.jsxs(id,{orientation:"vertical",children:[w.jsx(rd,{htmlFor:"stream-name",children:"名称"}),w.jsx(dl,{id:"stream-name",value:z,onChange:Ht=>L(Ht.target.value)})]})]}):null,T.map(([Ht,ee])=>w.jsx(MG,{name:Ht,spec:ee,value:B[Ht]??"",onChange:re=>Y(we=>({...we,[Ht]:re})),container:ct,apiBase:n.baseUrl},Ht))]}),ut?w.jsx(N_,{title:"运行时配置",children:w.jsxs(m0,{children:[K?w.jsxs(id,{orientation:"vertical",className:"mb-2",children:[w.jsx(rd,{htmlFor:"member-instance",children:"实例名 *"}),w.jsx(dl,{id:"member-instance",value:X,disabled:!!U,placeholder:"kimi / deepseek…",onChange:Ht=>ft(Ht.target.value.trim())}),w.jsx(AM,{children:U?"这一档在梯子上的名字,同时决定它的 key 存在哪里;建好之后不能改名。":"这一档在梯子上的名字(同一个源可以有多档,各自端点/模型/key)。key 存为 "+p0(X||"<实例名>")+"。"})]}):null,Object.keys(ut.fields).length?w.jsx("div",{className:"flex flex-col gap-2",children:Object.entries(ut.fields).map(([Ht,ee])=>w.jsxs(id,{orientation:"vertical",children:[w.jsxs(rd,{htmlFor:`runtime-${Ht}`,children:[ee.label,ee.required?" *":"",ee.type==="secret"&&ht[Ht]?"(留空保持不变)":""]}),w.jsx(dl,{id:`runtime-${Ht}`,type:ee.type==="secret"?"password":"text",placeholder:ee.type==="secret"&&ht[Ht]?"••••••••":ee.default,value:j[Ht]??"",onChange:re=>J(we=>({...we,[Ht]:re.target.value}))}),ee.description||ee.helpUrl?w.jsxs(AM,{children:[ee.description,ee.description&&ee.helpUrl?" ":"",ee.helpUrl?w.jsx("a",{className:"underline underline-offset-2 hover:text-foreground",href:ee.helpUrl,target:"_blank",rel:"noreferrer",children:"前往申请"}):null]}):null]},Ht))}):null]})}):null,T.length===0?w.jsx("p",{className:"px-3 text-[11px] text-muted-foreground",children:"无需参数"}):null]})}),w.jsxs(G9,{className:"flex-row gap-2 border-t border-[var(--acr-border-soft)] px-4 py-3",children:[q?w.jsx("div",{role:"alert",className:"mr-auto min-w-0 flex-1 truncate text-[11px] text-destructive",title:q,children:q}):null,w.jsxs(Sn,{variant:"secondary",onClick:ne,disabled:Z,className:"shrink-0","aria-label":"预览抓取效果,不入库",children:[w.jsx(Sj,{}),"预览"]}),w.jsx(Sn,{onClick:Qt,disabled:Z,className:"min-w-[7rem]",children:Z?"处理中…":Ce})]})]})})})}const I_=/^[\w-]+$/,p0=e=>`llm:${e}`;function B_(e){const t=typeof e=="string"&&e.startsWith("llm:")?e.slice(4):"";return I_.test(t)?t:""}function NG(e){if(e){if(e.action==="create-stream")return"create-stream";if(e.action==="append-stream")return"stream:"+e.streamId;if(e.action==="append-provider")return"provider:"+e.providerId}}function j_(e){return new Set(e.sources.map(t=>Dx(t.source.id,t.params)))}function zG(e,t,n){const i=e.description||e.id;if(n.streams.some(c=>c.id===e.id))return{kind:"already-there",message:`「${i}」本来就在「${n.label}」里,已把它从「${t.label}」移除`};const a=j_(e),o=n.streams.find(c=>[...j_(c)].some(d=>a.has(d)));if(o){const c=o.description||o.id;return{kind:"duplicate-source",clashWith:o.id,message:`「${n.label}」里已经有同一个来源的「${c}」,没有移动`}}return{kind:"move"}}function DG(e,t){return e.streams.filter(n=>!t.some(i=>i.id!==e.id&&i.streams.some(a=>a.id===n.id)))}function F_(e,t,n){const i=new Set(e.streams.map(a=>a.id));return t.filter(a=>!i.has(a.id)).map(a=>({stream:a,referencedBy:n.filter(o=>o.id!==e.id&&o.streams.some(c=>c.id===a.id)).map(o=>o.label)}))}const U_={healthy:"bg-emerald-500",degraded:"bg-amber-500",dead:"bg-rose-500"},zv={healthy:"正常",degraded:"降级",dead:"失效"},OG={fanout:"聚合",exclusive:"互斥·优先级"};function PG(e){let t="healthy";for(const n of e.sources){if(n.health==="dead")return"dead";n.health==="degraded"&&(t="degraded")}return t}function LG(e){return e<60?`${e}s`:e<3600?`${Math.round(e/60)}m`:e<86400?`${Math.round(e/3600)}h`:`${Math.round(e/86400)}d`}function IG(e){return{id:e.source.id,title:e.source.title,description:e.source.description,pluginName:e.source.pluginName,facility:e.source.facility,active:e.active,health:e.health,healthError:e.healthError,dependencyIssues:e.dependencyIssues}}function BG({issues:e}){return e.length?w.jsx("div",{className:"mt-0.5 flex flex-col gap-0.5 pl-1",children:e.map(t=>w.jsxs("p",{className:"flex items-start gap-1 text-[11px] leading-relaxed text-amber-500",children:[w.jsx(Aj,{className:"mt-0.5 size-3 shrink-0"}),w.jsx("span",{children:t.kind==="broken"?`依赖的「${t.title||t.id}」${zv[t.health]}——本来源自己仍在正常采集,但内容可能是残的。`:`申报依赖的「${t.id}」找不到(对应的包没装,或 id 写错了)——内容可能是残的。`})]},t.kind+t.id))}):null}function jG({conn:e,channel:t,present:n,title:i,columns:a=1,onChanged:o,onEditStream:c,onPreview:d}){const{channels:h,reload:m,patchChannel:b}=qp(),[y,T]=M.useState(!1),[k,R]=M.useState([]),[N,z]=M.useState(!1),[L,I]=M.useState(null),[F,B]=M.useState(""),[Y,Z]=M.useState(null),[et,q]=M.useState(null),[nt,ot]=M.useState(null),[Ct,ct]=M.useState(null),mt=async()=>{await m(),o==null||o()},Rt=t.streams,ut=tt=>{const bt=tt.description||tt.id,zt=Ie.refreshStream(e,tt.id);Vn.promise(zt,{loading:`正在重新抓取「${bt}」…`,success:Dt=>`「${bt}」已刷新:抓取 ${Dt.fetched} 条,新增 ${Dt.written} 条`,error:Dt=>`刷新失败:${Dt instanceof Error?Dt.message:String(Dt)}`}),zt.then(()=>void mt()).catch(()=>{})},j=async tt=>{const bt=F.trim();if(I(null),!(!bt||bt===tt.description))try{await Ie.renameStream(e,tt.id,bt),await mt()}catch(zt){Vn.error(`重命名失败:${zt.message}`)}},J=async(tt,bt)=>{const zt=h.find(Yt=>Yt.id===bt),Dt=Rt.find(Yt=>Yt.id===tt);if(!zt||!Dt||zt.id===t.id)return;const Mt=zG(Dt,t,zt);if(Mt.kind==="duplicate-source"){Vn.error(Mt.message);return}T(!0);try{await b(zt.id,{stream_ids:[...new Set([...zt.streams.map(Yt=>Yt.id),tt])]}),await b(t.id,{stream_ids:Rt.map(Yt=>Yt.id).filter(Yt=>Yt!==tt)}),await mt(),Mt.kind==="already-there"&&Vn.info(Mt.message)}catch(Yt){Vn.error(`移动失败:${Yt.message}`)}finally{T(!1)}},ht=async()=>{if(Y===null)return;const{stream:tt}=Y;T(!0);try{const bt=h4(h),zt=bt.find(Mt=>Mt.id===t.id),Dt=tt.sources[0];zt&&Dt?await c4(f4(e),{sourceId:Dt.source.id,params:Dt.params,title:tt.description},zt,bt):zt&&await b(t.id,{stream_ids:zt.streamIds.filter(Mt=>Mt!==tt.id)}),Z(null),await mt()}catch(bt){Vn.error(`删除失败:${bt.message}`)}finally{T(!1)}},Tt=async(tt,bt)=>{if(tt.sources.length<=1){Z({stream:tt,reason:"last-source"});return}T(!0);try{await Ie.patchStreamMembers(e,tt.id,g0(tt).filter((zt,Dt)=>Dt!==bt)),await mt()}catch(zt){Vn.error(`删除来源失败:${zt.message}`)}finally{T(!1)}},K=async(tt,bt)=>{const zt=tt.sources[bt];if(zt!==void 0)try{const Dt=await Ie.pluginSourceDetail(e,zt.source.pluginId,zt.source.id);ct({streamId:tt.id,memberIndex:bt,source:Dt,params:Object.fromEntries(Object.entries(zt.params??{}).map(([Mt,Yt])=>[Mt,String(Yt??"")]))})}catch(Dt){Vn.error(Dt.message)}},U=async(tt,bt)=>{try{const zt=await Ie.pluginSourceDetail(e,bt.pluginId,bt.id);q(null),ot({target:tt,source:zt})}catch(zt){Vn.error(zt.message)}},X=()=>{z(!0),Ie.streams(e).then(R).catch(tt=>{Vn.error(`读不到流库存:${tt.message}`)})},ft=async tt=>{T(!0);try{await b(t.id,{stream_ids:[...Rt.map(bt=>bt.id),tt]}),z(!1),await mt()}catch(bt){Vn.error(`挂入失败:${bt.message}`)}finally{T(!1)}},yt=w.jsxs("div",{className:"flex shrink-0 gap-2",children:[w.jsxs(Sn,{type:"button",variant:"neutral",size:"small",onClick:()=>q({kind:"pick"}),children:[w.jsx(Rj,{}),"添加来源"]}),w.jsx(Sn,{type:"button",variant:"neutral",size:"small",onClick:X,children:"挂已有的"})]});return w.jsxs("div",{className:"flex flex-col gap-3",children:[w.jsxs("div",{className:"flex items-center justify-between gap-2",children:[i===void 0?w.jsx("span",{}):w.jsx("h3",{className:"text-[12px] font-semibold text-muted-foreground",children:i}),yt]}),(n==null?void 0:n.data)==="live"?w.jsx("p",{className:"text-[11px] text-muted-foreground",children:"这类频道的数据是打开时现读的,不入库——因此没有未读和订阅提醒。"}):null,Rt.length===0?w.jsx(_4,{children:w.jsxs(A4,{children:[w.jsx(N4,{children:"这个频道还没有内容源"}),w.jsxs(z4,{children:["用上面的「添加来源」为「",t.label,"」加一个来源,开始采集内容。"]})]})}):w.jsx(w.Fragment,{children:w.jsx("div",{className:At("grid gap-4",a>=2?"@xl:grid-cols-2":"",a>=3?"@3xl:grid-cols-3":""),children:Rt.map(tt=>{const bt=PG(tt),zt=tt.sources.map(IG),Dt=tt.description||tt.id;return w.jsxs(IM,{className:"flex flex-col py-4",children:[w.jsxs(E4,{className:"px-4",children:[w.jsxs(M4,{className:"flex min-w-0 items-center gap-2 text-[13.5px]",children:[L===tt.id?w.jsx(dl,{autoFocus:!0,size:"medium",value:F,onChange:Mt=>B(Mt.target.value),onBlur:()=>void j(tt),onKeyDown:Mt=>{Mt.key==="Enter"?(Mt.preventDefault(),j(tt)):Mt.key==="Escape"&&(Mt.preventDefault(),I(null))},className:"min-w-0 flex-1","aria-label":`重命名 ${Dt}`}):w.jsx("span",{className:"min-w-0 cursor-text truncate",onDoubleClick:()=>{B(tt.description||""),I(tt.id)},children:Dt}),w.jsx("span",{title:zv[bt],className:`inline-block size-2 shrink-0 rounded-full ${U_[bt]}`}),tt.strategy?w.jsx(wa,{variant:"secondary",size:"sm",className:"shrink-0",children:OG[tt.strategy]??tt.strategy}):null,w.jsx(wa,{variant:"secondary",size:"sm",className:"shrink-0",children:LG(tt.cadence_seconds)})]}),w.jsxs(R4,{className:"flex shrink-0 items-center gap-1.5",children:[d!==void 0||c!==void 0?w.jsxs(j4,{variant:"attached",size:"small",children:[d!==void 0?w.jsx(Sn,{variant:"ghost",size:"small","aria-label":`预览 ${Dt} 的时间线效果`,title:"预览",onClick:()=>d({kind:"stream",streamId:tt.id,label:Dt}),children:"预览"}):null,d!==void 0&&c!==void 0?w.jsx(V4,{}):null,c!==void 0?w.jsx(Sn,{variant:"ghost",size:"small",onClick:()=>c(tt),children:"编辑"}):null]}):null,w.jsxs(b4,{children:[w.jsx(x4,{asChild:!0,children:w.jsx(Sn,{variant:"ghost",size:"small",icon:!0,"aria-label":`${Dt} 更多操作`,disabled:y,children:w.jsx(wj,{})})}),w.jsxs(OM,{align:"end",onCloseAutoFocus:Mt=>Mt.preventDefault(),children:[w.jsxs(hc,{onSelect:()=>ut(tt),children:[w.jsx(kj,{className:"size-3.5"}),"手动刷新"]}),w.jsx(rv,{}),w.jsx(hc,{onSelect:()=>q({kind:"stream",streamId:tt.id}),children:"添加来源"}),w.jsx(hc,{onSelect:()=>{B(tt.description||""),I(tt.id)},children:"重命名"}),w.jsx(rv,{}),w.jsxs(w4,{children:[w.jsx(PM,{children:"移动到…"}),w.jsx(LM,{children:h.filter(Mt=>Mt.id!==t.id).length===0?w.jsx(hc,{disabled:!0,children:"无其他频道"}):h.filter(Mt=>Mt.id!==t.id).map(Mt=>w.jsxs(hc,{onSelect:()=>void J(tt.id,Mt.id),children:[w.jsx("span",{className:"min-w-0 flex-1 truncate",children:Mt.label}),w.jsx(wa,{variant:"secondary",size:"sm",children:Mt.system?"系统":"自定义"})]},Mt.id))})]}),w.jsx(rv,{}),w.jsx(hc,{onSelect:()=>{var Mt;(Mt=navigator.clipboard)==null||Mt.writeText(tt.id)},children:"复制 StreamID"}),w.jsx(hc,{className:"text-destructive data-[highlighted]:bg-destructive data-[highlighted]:text-destructive-foreground",onSelect:()=>Z({stream:tt}),children:"删除"})]})]})]})]}),w.jsx(k4,{className:"space-y-3 px-4",children:zt.length===0?w.jsx("p",{className:"text-[12px] text-muted-foreground italic",children:"暂无来源。"}):w.jsx(v4,{className:"gap-1",children:zt.map((Mt,Yt)=>w.jsxs("div",{children:[w.jsx(Z4,{error:Mt.healthError,sourceLabel:Mt.title,stateLabel:Mt.health?zv[Mt.health]:"",children:w.jsx(FM,{source:Mt,muted:Mt.health==="dead",status:Mt.health?w.jsx(Q4,{colorClass:U_[Mt.health],label:zv[Mt.health]}):void 0,actions:w.jsxs(w.Fragment,{children:[Mt.active?w.jsx(wa,{size:"sm",children:"主力"}):null,w.jsxs("div",{className:"flex flex-col gap-0.5",children:[w.jsx(Sn,{variant:"ghost",size:"mini",disabled:y,onClick:()=>void K(tt,Yt),children:"编辑"}),w.jsx(Sn,{variant:"ghost",size:"mini",disabled:y,onClick:()=>void Tt(tt,Yt),children:"删除"})]})]})})}),w.jsx(BG,{issues:Mt.dependencyIssues??[]})]},Mt.id+Yt))})})]},tt.id)})})}),w.jsx(nd,{open:Y!==null,onOpenChange:tt=>{tt||Z(null)},children:w.jsxs(uc,{children:[w.jsxs(Th,{children:[w.jsx(dc,{children:(Y==null?void 0:Y.reason)==="last-source"?"删除最后一个来源":"删除 Stream"}),w.jsx(Eh,{children:(Y==null?void 0:Y.reason)==="last-source"?w.jsxs(w.Fragment,{children:["这是「",Y.stream.description||Y.stream.id,"」的最后一个来源,删除它将删除整个订阅流并停止抓取。"]}):w.jsxs(w.Fragment,{children:["将从本频道移除「",(Y==null?void 0:Y.stream.description)||(Y==null?void 0:Y.stream.id),"」;若没有其他频道引用它,将一并停止抓取并删除。"]})})]}),w.jsxs(Wp,{children:[w.jsx(Sn,{type:"button",variant:"neutral",size:"large",disabled:y,onClick:()=>Z(null),children:"取消"}),w.jsx(Sn,{type:"button",variant:"destructive",size:"large",disabled:y,onClick:()=>void ht(),children:y?"删除中…":"删除"})]})]})}),w.jsx(nd,{open:N,onOpenChange:z,children:w.jsxs(uc,{children:[w.jsxs(Th,{children:[w.jsx(dc,{children:"挂入已有的 Stream"}),w.jsx(Eh,{children:"Stream 是全局身份,可被多个频道同时引用;挂入不影响它在其他频道的存在。"})]}),w.jsx("div",{className:"flex max-h-80 flex-col gap-1 overflow-y-auto px-4 pb-4 scrollbar-mac",children:F_(t,k,h).length===0?w.jsx("p",{className:"text-[12px] text-muted-foreground",children:"库里没有可挂入的流。"}):F_(t,k,h).map(({stream:tt,referencedBy:bt})=>w.jsxs("div",{className:"flex items-center gap-2 rounded-md border border-border px-2.5 py-1.5",children:[w.jsxs("div",{className:"min-w-0 flex-1",children:[w.jsx("div",{className:"truncate text-[13px]",children:tt.description||tt.id}),w.jsx("div",{className:"text-[11px] text-muted-foreground",children:bt.length>0?`已在:${bt.join("、")}`:"未被任何频道引用"})]}),w.jsx(Sn,{size:"mini",disabled:y,"aria-label":`挂入 ${tt.description||tt.id}`,onClick:()=>void ft(tt.id),children:"挂入"})]},tt.id))})]})}),et!==null?w.jsx(tG,{open:!0,onOpenChange:tt=>{tt||q(null)},conn:e,surface:"stream",onPick:tt=>void U(et,tt)}):null,nt!==null?w.jsx(L_,{open:!0,onOpenChange:tt=>{tt||ot(null)},conn:e,source:nt.source,target:nt.target,streams:Rt,providers:[],channels:h,defaultChannelId:t.id,onSubmitted:()=>void mt()}):null,Ct!==null?w.jsx(L_,{open:!0,onOpenChange:tt=>{tt||ct(null)},conn:e,source:Ct.source,target:{kind:"stream",streamId:Ct.streamId,memberIndex:Ct.memberIndex},initialParams:Ct.params,streams:Rt,providers:[],channels:h,onSubmitted:()=>void mt()}):null]})}function FG({channel:e}){var h;const{patchChannel:t}=qp(),[n,i]=M.useState(null),[a,o]=M.useState(!1),c=typeof((h=e.options)==null?void 0:h.url)=="string"?e.options.url:"",d=async m=>{const b=m.trim();if(!(b===c||a)){o(!0),i(null);try{const{url:y,...T}=e.options??{};await t(e.id,{options:b?{...T,url:b}:T})}catch(y){i(y.message)}finally{o(!1)}}};return w.jsxs("section",{className:"flex flex-col gap-2",children:[w.jsx("h3",{className:"text-[12px] font-semibold text-muted-foreground",children:"面板地址"}),w.jsx(dl,{size:"xl",type:"url",defaultValue:c,placeholder:"https://…",disabled:a,onBlur:m=>void d(m.target.value),onKeyDown:m=>{m.key==="Enter"&&(m.preventDefault(),d(m.target.value))},"aria-label":"面板地址"},c),w.jsx("p",{className:"text-[12px] text-muted-foreground",children:"整个主窗格装这张网页。对方得允许被嵌入(没有 X-Frame-Options / frame-ancestors 限制)。"}),n?w.jsx("p",{className:"text-[12px] text-destructive",children:n}):null]})}const UG={embed:FG};function VG({conn:e,channelId:t,onChanged:n,onDeleted:i,onEditStream:a,onPreview:o,showHeader:c=!0}){const{channels:d,reload:h,patchChannel:m}=qp(),[b,y]=M.useState([]),[T,k]=M.useState([]),[R,N]=M.useState([]),[z,L]=M.useState(!1),[I,F]=M.useState(!1),[B,Y]=M.useState(null),[Z,et]=M.useState(!1),q=M.useRef(!1),nt=M.useRef(null),ot=async()=>{const[,Tt,K,U]=await Promise.all([h(),Ie.presents(e).then(X=>X.items),Ie.providers(e),Ie.spaces(e).catch(()=>[])]);y(Tt),N(K),k(U),Y(null),et(!0)},Ct=()=>void ot().catch(Tt=>{const K=Tt.message;Vn.error(K),Y(K)});M.useEffect(()=>{et(!1),Ct()},[t]);const ct=d.find(Tt=>Tt.id===t)??null,mt=ct?b.find(Tt=>Tt.id===ct.present):null,Rt=()=>{Ct(),n==null||n()},ut=async Tt=>{if(q.current||!ct)return;q.current=!0;const K=Tt.trim();if(!(!K||K===ct.label))try{await m(ct.id,{label:K}),Rt()}catch(U){Vn.error(`重命名失败:${U.message}`),nt.current&&(nt.current.value=ct.label)}},j=async()=>{if(ct){F(!0);try{await Ie.deleteChannel(e,ct.id),L(!1),i==null||i(),n==null||n()}catch(Tt){Vn.error(`删除失败:${Tt.message}`)}finally{F(!1)}}};if(!ct||!mt)return w.jsx("div",{className:"flex h-full flex-col items-center justify-center gap-2 p-4 text-[12px] text-muted-foreground",children:B!==null?w.jsxs(w.Fragment,{children:[w.jsxs("span",{children:["加载失败:",B]}),w.jsx(Sn,{type:"button",variant:"neutral",size:"small",onClick:Ct,children:"重试"})]}):Z?ct?w.jsxs("span",{children:["这个频道的 Present「",ct.present,"」已不存在,无法管理。"]}):w.jsx("span",{children:"这个频道已不存在(可能在别处被删除了)。"}):w.jsx("span",{children:"加载中…"})});const J=UG[ct.present],ht=DG(ct,d);return w.jsxs("div",{className:"@container flex flex-col gap-5 px-4 py-4",children:[c?w.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[w.jsx("span",{className:"min-w-0 truncate",children:ct.label}),w.jsx(wa,{variant:"secondary",size:"sm",children:mt.label}),ct.system?w.jsx(wa,{variant:"secondary",size:"sm",children:"系统保留"}):null]}):null,w.jsxs("div",{className:"grid gap-4 @xl:grid-cols-2",children:[w.jsxs("section",{className:"flex flex-col gap-2",children:[w.jsx("h3",{className:"text-[12px] font-semibold text-muted-foreground",children:"名称"}),w.jsx(dl,{ref:nt,size:"xl",defaultValue:ct.label,disabled:ct.system,onFocus:()=>{q.current=!1},onBlur:Tt=>void ut(Tt.target.value),onKeyDown:Tt=>{Tt.key==="Enter"&&(Tt.preventDefault(),ut(Tt.target.value))},"aria-label":"频道名称"},ct.label)]}),T.length>0?w.jsxs("section",{className:"flex flex-col gap-2",children:[w.jsx("h3",{className:"text-[12px] font-semibold text-muted-foreground",children:"所属空间"}),w.jsxs(Kp,{value:T.some(Tt=>Tt.id===ct.space_id)?ct.space_id:T[0].id,disabled:I,onValueChange:Tt=>{F(!0),m(ct.id,{space_id:Tt}).then(Rt).catch(K=>{Vn.error(`换空间失败:${K.message}`)}).finally(()=>{F(!1)})},children:[w.jsx(Qp,{size:"xl",className:"w-full","aria-label":"所属空间",children:w.jsx(Xp,{})}),w.jsx(Zp,{children:T.map(Tt=>w.jsx(sm,{value:Tt.id,children:Tt.label},Tt.id))})]})]}):null]}),mt.needsStreams?w.jsx("section",{className:"flex flex-col gap-2",children:w.jsx(jG,{conn:e,channel:ct,present:mt,title:mt.data==="live"?"绑定的数据源":"订阅列表",columns:2,onChanged:n,onEditStream:a,onPreview:o})}):null,mt.slots.length>0?w.jsxs("section",{className:"flex flex-col gap-2",children:[w.jsx("h3",{className:"text-[12px] font-semibold text-muted-foreground",children:"能力槽位"}),w.jsx(s4,{channel:ct,slots:mt.slots,providers:R,columns:2,onSaved:Rt})]}):null,J?w.jsx(J,{conn:e,channel:ct}):null,ct.system?null:w.jsx("section",{className:"border-t border-border pt-4",children:w.jsx(Sn,{type:"button",variant:"destructive",size:"medium",onClick:()=>L(!0),children:"删除频道"})}),w.jsx(nd,{open:z,onOpenChange:L,children:w.jsxs(uc,{children:[w.jsxs(Th,{children:[w.jsx(dc,{children:"删除频道"}),w.jsxs(Eh,{children:["将删除「",ct.label,"」。Stream 不会被删除,只解除引用",ht.length>0?w.jsxs(w.Fragment,{children:[";以下流将不再被任何频道引用:",ht.map(Tt=>Tt.description||Tt.id).join("、")]}):null,"。"]})]}),w.jsxs(Wp,{children:[w.jsx(Sn,{type:"button",variant:"neutral",size:"large",disabled:I,onClick:()=>L(!1),children:"取消"}),w.jsx(Sn,{type:"button",variant:"destructive",size:"large",disabled:I,onClick:()=>void j(),children:I?"删除中…":"删除"})]})]})})]})}const HG=[{id:"content",label:"内容"},{id:"config",label:"配置"}];function GG({value:e,onChange:t,className:n}){return w.jsxs("div",{"data-testid":"channel-tabs",role:"tablist","aria-label":"频道视图",className:At("relative isolate flex shrink-0 items-end gap-9 px-4 pl-6",n),children:[w.jsx("span",{"aria-hidden":!0,className:"absolute inset-x-0 bottom-px z-0 h-px bg-border"}),HG.map(i=>{const a=i.id===e;return w.jsxs("button",{type:"button",role:"tab","aria-selected":a,onClick:()=>{a||t(i.id)},className:At("relative z-10 pb-[11px] text-[13px] font-medium transition-colors",a?"text-primary":"text-muted-foreground hover:text-foreground"),children:[i.label,a?w.jsx("span",{"aria-hidden":!0,className:"absolute inset-x-0 bottom-px h-0.5 rounded-sm bg-primary"}):null]},i.id)})]})}function YG(e,t,n=!0){const i=M.useRef(t);i.current=t;const a=M.useRef(null),o=M.useRef([]);return M.useEffect(()=>{if(!n)return;const c=RM();let d=null,h=!1,m=1e3,b;const y=()=>{d=c.openSocket(e,{onOpen:()=>{m=1e3,a.current=d;for(const T of o.current.splice(0))d==null||d.send(T)},onMessage:T=>{try{i.current(JSON.parse(T))}catch{}},onClose:()=>{a.current===d&&(a.current=null),h||(b=setTimeout(y,m),m=Math.min(m*2,15e3))}})};return y(),()=>{h=!0,b&&clearTimeout(b),d==null||d.close(),a.current=null,o.current=[]}},[e,n]),c=>{const d=JSON.stringify(c),h=a.current;h?h.send(d):o.current.push(d)}}const WG={pathname:()=>window.location.pathname,push:e=>{if(window.location.pathname!==e)try{window.history.pushState(null,"",e)}catch{}},subscribe:e=>(window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e))};function KG(e="/"){let t=e;const n=new Set;return{pathname:()=>t,push:i=>{if(i!==t){t=i;for(const a of n)a()}},subscribe:i=>(n.add(i),()=>{n.delete(i)})}}const V_=M.createContext(WG);function XG({location:e,children:t}){return M.createElement(V_.Provider,{value:e},t)}function H_(){return M.useContext(V_)}function QG(e,t){const n=H_(),[i,a]=M.useState(()=>e(n.pathname()));return M.useEffect(()=>n.subscribe(()=>a(e(n.pathname()))),[n,e]),{selection:i,navigate:c=>{a(c),n.push(t(c))}}}const G_="research-run:";function ZG(e){return e.startsWith(G_)?e.slice(G_.length):e}function JG(e){const t=e.split("/");return t[1]==="c"&&t[2]?"/c/"+t[2]:e}function qG(e){const t=e.split("/"),n=t[1]==="c"&&t[2]?t.slice(3):[];return n[0]==="run"&&n[1]&&n[2]?{kind:"run",streamId:decodeURIComponent(n[1]),runId:decodeURIComponent(n[2])}:{kind:"home"}}function $G(e,t){return t.kind==="home"?e:`${e==="/"?"":e}/run/${encodeURIComponent(t.streamId)}/${encodeURIComponent(t.runId)}`}function tY({channel:e,conn:t,onChannelsChanged:n}){const i=H_(),a=M.useCallback(I=>$G(JG(i.pathname()),I),[i]),{selection:o,navigate:c}=QG(qG,a),[d,h]=M.useState(null),[m,b]=M.useState(null),[y,T]=M.useState(""),[k,R]=M.useState("content"),N=e.streams.map(I=>I.id),z=M.useCallback(async()=>{b(null);try{const I=await Promise.all(N.map(F=>VN(t,F)));h(I.flat().sort((F,B)=>F.timestamp<B.timestamp?1:F.timestamp>B.timestamp?-1:0))}catch(I){b(I instanceof Error?I.message:String(I))}},[t,N.join(",")]);M.useEffect(()=>{z()},[z]),YG(Ie.wsUrl(t),M.useCallback(I=>{I.type==="live-changed"&&N.includes(I.streamId)&&z()},[z,N]));const L=M.useMemo(()=>{const I=y.trim().toLowerCase();return d===null||I===""?d:d.filter(F=>F.title.toLowerCase().includes(I))},[d,y]);return o.kind==="run"?w.jsx("div",{className:"flex h-full min-h-0 flex-col",children:w.jsx("div",{className:"min-h-0 flex-1",children:w.jsx(bP,{conn:t,streamId:o.streamId,runId:o.runId,onBack:()=>{c({kind:"home"})}})})}):w.jsxs("div",{className:"flex h-full min-h-0 flex-col",children:[w.jsxs("div",{className:"flex h-8 shrink-0 items-center gap-2 px-4 pt-3 pb-0 box-content",children:[w.jsx(YF,{title:e.label,onRefresh:()=>{z()},refreshLabel:"重新读取",exportChannel:{conn:t,id:e.id},className:"min-w-0 flex-1"}),w.jsx(Wx,{size:"large",className:"w-56 max-w-[48%] shrink-0",value:y,onChange:I=>T(I.target.value),onClear:()=>T(""),placeholder:"搜索 run","aria-label":"搜索 run"})]}),w.jsx(GG,{value:k,onChange:R}),k==="config"?w.jsx("div",{className:"min-h-0 flex-1 overflow-auto",children:w.jsx(VG,{conn:t,channelId:e.id,showHeader:!1,onChanged:n,onDeleted:()=>{R("content")}})}):w.jsx("div",{className:"min-h-0 flex-1 overflow-auto",children:m!==null?w.jsxs("div",{style:{padding:24,fontSize:13,color:"var(--dsw-alias-state-error-primary, #d33)"},children:["读不到研究数据:",m]}):L===null?w.jsx("div",{style:{padding:24,fontSize:13,opacity:.7},children:"载入中…"}):L.length===0?w.jsx("div",{style:{padding:24,fontSize:13,opacity:.7},children:y.trim()===""?"这个目录里还没有 run。":"没有匹配的 run。"}):w.jsx("div",{style:{display:"flex",flexDirection:"column",gap:6,padding:16},children:L.map(I=>w.jsxs("button",{type:"button","data-research-run-row":!0,onClick:()=>{c({kind:"run",streamId:I.stream_id,runId:ZG(I.id)})},style:{display:"block",width:"100%",textAlign:"left",padding:"10px 12px",borderRadius:8,border:"1px solid var(--dsw-alias-border-l1, rgba(127,127,127,0.18))",background:"transparent",color:"inherit",cursor:"pointer"},children:[w.jsx("div",{style:{fontSize:13,fontWeight:500},children:I.title}),I.body_text!==void 0&&w.jsx("div",{style:{fontSize:11,opacity:.7,whiteSpace:"pre-wrap",marginTop:4},children:I.body_text})]},I.id))})})]})}function eY(e){return`/c/${encodeURIComponent(e)}`}function nY({channel:e,onChannelsChanged:t}){const n=M.useMemo(()=>KG(eY(e.id)),[e.id]);return w.jsx("div",{"data-testid":"panel-research",className:"flex min-h-0 flex-1 flex-col",children:w.jsx(XG,{location:n,children:w.jsx($F,{conn:Mf,children:w.jsx(tY,{channel:e,conn:Mf,onChannelsChanged:t})})})})}let ml;function Y_(e){return w.jsx(M.StrictMode,{children:w.jsx(nY,{channel:e.channel,onChannelsChanged:e.onChannelsChanged})})}function iY(e,t){jN(t.backend,t.backend.replace(/^http/,"ws")),ml=LN.createRoot(e),ml.render(Y_(t))}function rY(e){ml==null||ml.render(Y_(e))}function sY(){ml==null||ml.unmount(),ml=void 0}const aY=Object.freeze(Object.defineProperty({__proto__:null,default:class RN{constructor(t,n){this.id=t,this.listeners=n}static async connect(t,n){const i=new Set,a=new fP;return a.onmessage=o=>{i.forEach(c=>{c(o)})},n!=null&&n.headers&&(n.headers=Array.from(new Headers(n.headers).entries())),await iC("plugin:websocket|connect",{url:t,onMessage:a,config:n}).then(o=>new RN(o,i))}addListener(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}async send(t){let n;if(typeof t=="string")n={type:"Text",data:t};else if(typeof t=="object"&&"type"in t)n=t;else if(Array.isArray(t))n={type:"Binary",data:t};else throw new Error("invalid `message` type, expected a `{ type: string, data: any }` object, a string or a numeric array");await iC("plugin:websocket|send",{id:this.id,message:n})}async disconnect(){await this.send({type:"Close",data:{code:1e3,reason:"Disconnected by client"}})}}},Symbol.toStringTag,{value:"Module"}));return $n.mount=iY,$n.unmount=sY,$n.update=rY,Object.defineProperty($n,Symbol.toStringTag,{value:"Module"}),$n})({});
|