@meetploy/cli 1.12.1 → 1.12.2
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/dist/dashboard-dist/assets/main-BnI0iIIW.css +1 -0
- package/dist/dashboard-dist/assets/main-DnrX4BgS.js +319 -0
- package/dist/dashboard-dist/index.html +2 -2
- package/dist/dev.js +573 -12
- package/dist/index.js +604 -13
- package/package.json +1 -1
- package/dist/dashboard-dist/assets/main-BNiZvT9K.css +0 -1
- package/dist/dashboard-dist/assets/main-CYxpKFOS.js +0 -304
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
var A0=n=>{throw TypeError(n)};var nh=(n,a,r)=>a.has(n)||A0("Cannot "+r);var D=(n,a,r)=>(nh(n,a,"read from private field"),r?r.call(n):a.get(n)),xe=(n,a,r)=>a.has(n)?A0("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(n):a.set(n,r),ue=(n,a,r,i)=>(nh(n,a,"write to private field"),i?i.call(n,r):a.set(n,r),r),Te=(n,a,r)=>(nh(n,a,"access private method"),r);var wu=(n,a,r,i)=>({set _(s){ue(n,a,s,r)},get _(){return D(n,a,i)}});function AN(n,a){for(var r=0;r<a.length;r++){const i=a[r];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in n)){const u=Object.getOwnPropertyDescriptor(i,s);u&&Object.defineProperty(n,s,u.get?u:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const u of s)if(u.type==="childList")for(const h of u.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&i(h)}).observe(document,{childList:!0,subtree:!0});function r(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?u.credentials="include":s.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function i(s){if(s.ep)return;s.ep=!0;const u=r(s);fetch(s.href,u)}})();function ix(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ah={exports:{}},No={};/**
|
|
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 D0;function DN(){if(D0)return No;D0=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(i,s,u){var h=null;if(u!==void 0&&(h=""+u),s.key!==void 0&&(h=""+s.key),"key"in s){u={};for(var m in s)m!=="key"&&(u[m]=s[m])}else u=s;return s=u.ref,{$$typeof:n,type:i,key:h,ref:s!==void 0?s:null,props:u}}return No.Fragment=a,No.jsx=r,No.jsxs=r,No}var k0;function kN(){return k0||(k0=1,ah.exports=DN()),ah.exports}var d=kN(),bi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Il=typeof window>"u"||"Deno"in globalThis;function yn(){}function ON(n,a){return typeof n=="function"?n(a):n}function Rh(n){return typeof n=="number"&&n>=0&&n!==1/0}function ox(n,a){return Math.max(n+(a||0)-Date.now(),0)}function Wr(n,a){return typeof n=="function"?n(a):n}function An(n,a){return typeof n=="function"?n(a):n}function O0(n,a){const{type:r="all",exact:i,fetchStatus:s,predicate:u,queryKey:h,stale:m}=n;if(h){if(i){if(a.queryHash!==mm(h,a.options))return!1}else if(!Ho(a.queryKey,h))return!1}if(r!=="all"){const p=a.isActive();if(r==="active"&&!p||r==="inactive"&&p)return!1}return!(typeof m=="boolean"&&a.isStale()!==m||s&&s!==a.state.fetchStatus||u&&!u(a))}function z0(n,a){const{exact:r,status:i,predicate:s,mutationKey:u}=n;if(u){if(!a.options.mutationKey)return!1;if(r){if(er(a.options.mutationKey)!==er(u))return!1}else if(!Ho(a.options.mutationKey,u))return!1}return!(i&&a.state.status!==i||s&&!s(a))}function mm(n,a){return((a==null?void 0:a.queryKeyHashFn)||er)(n)}function er(n){return JSON.stringify(n,(a,r)=>_h(r)?Object.keys(r).sort().reduce((i,s)=>(i[s]=r[s],i),{}):r)}function Ho(n,a){return n===a?!0:typeof n!=typeof a?!1:n&&a&&typeof n=="object"&&typeof a=="object"?Object.keys(a).every(r=>Ho(n[r],a[r])):!1}function sx(n,a){if(n===a)return n;const r=L0(n)&&L0(a);if(r||_h(n)&&_h(a)){const i=r?n:Object.keys(n),s=i.length,u=r?a:Object.keys(a),h=u.length,m=r?[]:{};let p=0;for(let g=0;g<h;g++){const y=r?g:u[g];(!r&&i.includes(y)||r)&&n[y]===void 0&&a[y]===void 0?(m[y]=void 0,p++):(m[y]=sx(n[y],a[y]),m[y]===n[y]&&n[y]!==void 0&&p++)}return s===h&&p===s?n:m}return a}function Bu(n,a){if(!a||Object.keys(n).length!==Object.keys(a).length)return!1;for(const r in n)if(n[r]!==a[r])return!1;return!0}function L0(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function _h(n){if(!U0(n))return!1;const a=n.constructor;if(a===void 0)return!0;const r=a.prototype;return!(!U0(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function U0(n){return Object.prototype.toString.call(n)==="[object Object]"}function zN(n){return new Promise(a=>{setTimeout(a,n)})}function Th(n,a,r){return typeof r.structuralSharing=="function"?r.structuralSharing(n,a):r.structuralSharing!==!1?sx(n,a):a}function LN(n,a,r=0){const i=[...n,a];return r&&i.length>r?i.slice(1):i}function UN(n,a,r=0){const i=[a,...n];return r&&i.length>r?i.slice(0,-1):i}var pm=Symbol();function ux(n,a){return!n.queryFn&&(a!=null&&a.initialPromise)?()=>a.initialPromise:!n.queryFn||n.queryFn===pm?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}var Vl,ol,ni,Pb,HN=(Pb=class extends bi{constructor(){super();xe(this,Vl);xe(this,ol);xe(this,ni);ue(this,ni,a=>{if(!Il&&window.addEventListener){const r=()=>a();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){D(this,ol)||this.setEventListener(D(this,ni))}onUnsubscribe(){var a;this.hasListeners()||((a=D(this,ol))==null||a.call(this),ue(this,ol,void 0))}setEventListener(a){var r;ue(this,ni,a),(r=D(this,ol))==null||r.call(this),ue(this,ol,a(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(a){D(this,Vl)!==a&&(ue(this,Vl,a),this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(r=>{r(a)})}isFocused(){var a;return typeof D(this,Vl)=="boolean"?D(this,Vl):((a=globalThis.document)==null?void 0:a.visibilityState)!=="hidden"}},Vl=new WeakMap,ol=new WeakMap,ni=new WeakMap,Pb),vm=new HN,ai,sl,li,Jb,qN=(Jb=class extends bi{constructor(){super();xe(this,ai,!0);xe(this,sl);xe(this,li);ue(this,li,a=>{if(!Il&&window.addEventListener){const r=()=>a(!0),i=()=>a(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",i)}}})}onSubscribe(){D(this,sl)||this.setEventListener(D(this,li))}onUnsubscribe(){var a;this.hasListeners()||((a=D(this,sl))==null||a.call(this),ue(this,sl,void 0))}setEventListener(a){var r;ue(this,li,a),(r=D(this,sl))==null||r.call(this),ue(this,sl,a(this.setOnline.bind(this)))}setOnline(a){D(this,ai)!==a&&(ue(this,ai,a),this.listeners.forEach(i=>{i(a)}))}isOnline(){return D(this,ai)}},ai=new WeakMap,sl=new WeakMap,li=new WeakMap,Jb),Qu=new qN;function Mh(){let n,a;const r=new Promise((s,u)=>{n=s,a=u});r.status="pending",r.catch(()=>{});function i(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{i({status:"fulfilled",value:s}),n(s)},r.reject=s=>{i({status:"rejected",reason:s}),a(s)},r}function BN(n){return Math.min(1e3*2**n,3e4)}function cx(n){return(n??"online")==="online"?Qu.isOnline():!0}var dx=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function lh(n){return n instanceof dx}function fx(n){let a=!1,r=0,i=!1,s;const u=Mh(),h=S=>{var C;i||(w(new dx(S)),(C=n.abort)==null||C.call(n))},m=()=>{a=!0},p=()=>{a=!1},g=()=>vm.isFocused()&&(n.networkMode==="always"||Qu.isOnline())&&n.canRun(),y=()=>cx(n.networkMode)&&n.canRun(),b=S=>{var C;i||(i=!0,(C=n.onSuccess)==null||C.call(n,S),s==null||s(),u.resolve(S))},w=S=>{var C;i||(i=!0,(C=n.onError)==null||C.call(n,S),s==null||s(),u.reject(S))},j=()=>new Promise(S=>{var C;s=R=>{(i||g())&&S(R)},(C=n.onPause)==null||C.call(n)}).then(()=>{var S;s=void 0,i||(S=n.onContinue)==null||S.call(n)}),E=()=>{if(i)return;let S;const C=r===0?n.initialPromise:void 0;try{S=C??n.fn()}catch(R){S=Promise.reject(R)}Promise.resolve(S).then(b).catch(R=>{var X;if(i)return;const _=n.retry??(Il?0:3),T=n.retryDelay??BN,k=typeof T=="function"?T(r,R):T,L=_===!0||typeof _=="number"&&r<_||typeof _=="function"&&_(r,R);if(a||!L){w(R);return}r++,(X=n.onFail)==null||X.call(n,r,R),zN(k).then(()=>g()?void 0:j()).then(()=>{a?w(R):E()})})};return{promise:u,cancel:h,continue:()=>(s==null||s(),u),cancelRetry:m,continueRetry:p,canStart:y,start:()=>(y()?E():j().then(E),u)}}var QN=n=>setTimeout(n,0);function YN(){let n=[],a=0,r=m=>{m()},i=m=>{m()},s=QN;const u=m=>{a?n.push(m):s(()=>{r(m)})},h=()=>{const m=n;n=[],m.length&&s(()=>{i(()=>{m.forEach(p=>{r(p)})})})};return{batch:m=>{let p;a++;try{p=m()}finally{a--,a||h()}return p},batchCalls:m=>(...p)=>{u(()=>{m(...p)})},schedule:u,setNotifyFunction:m=>{r=m},setBatchNotifyFunction:m=>{i=m},setScheduler:m=>{s=m}}}var vt=YN(),Kl,Wb,hx=(Wb=class{constructor(){xe(this,Kl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Rh(this.gcTime)&&ue(this,Kl,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Il?1/0:300*1e3))}clearGcTimeout(){D(this,Kl)&&(clearTimeout(D(this,Kl)),ue(this,Kl,void 0))}},Kl=new WeakMap,Wb),ri,ii,gn,Xl,Ct,Vo,$l,Tn,wa,Ib,GN=(Ib=class extends hx{constructor(a){super();xe(this,Tn);xe(this,ri);xe(this,ii);xe(this,gn);xe(this,Xl);xe(this,Ct);xe(this,Vo);xe(this,$l);ue(this,$l,!1),ue(this,Vo,a.defaultOptions),this.setOptions(a.options),this.observers=[],ue(this,Xl,a.client),ue(this,gn,D(this,Xl).getQueryCache()),this.queryKey=a.queryKey,this.queryHash=a.queryHash,ue(this,ri,VN(this.options)),this.state=a.state??D(this,ri),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var a;return(a=D(this,Ct))==null?void 0:a.promise}setOptions(a){this.options={...D(this,Vo),...a},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&D(this,gn).remove(this)}setData(a,r){const i=Th(this.state.data,a,this.options);return Te(this,Tn,wa).call(this,{data:i,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),i}setState(a,r){Te(this,Tn,wa).call(this,{type:"setState",state:a,setStateOptions:r})}cancel(a){var i,s;const r=(i=D(this,Ct))==null?void 0:i.promise;return(s=D(this,Ct))==null||s.cancel(a),r?r.then(yn).catch(yn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(D(this,ri))}isActive(){return this.observers.some(a=>An(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===pm||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(a=>a.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(a=0){return this.state.isInvalidated||this.state.data===void 0||!ox(this.state.dataUpdatedAt,a)}onFocus(){var r;const a=this.observers.find(i=>i.shouldFetchOnWindowFocus());a==null||a.refetch({cancelRefetch:!1}),(r=D(this,Ct))==null||r.continue()}onOnline(){var r;const a=this.observers.find(i=>i.shouldFetchOnReconnect());a==null||a.refetch({cancelRefetch:!1}),(r=D(this,Ct))==null||r.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),D(this,gn).notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(r=>r!==a),this.observers.length||(D(this,Ct)&&(D(this,$l)?D(this,Ct).cancel({revert:!0}):D(this,Ct).cancelRetry()),this.scheduleGc()),D(this,gn).notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Te(this,Tn,wa).call(this,{type:"invalidate"})}fetch(a,r){var p,g,y;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(D(this,Ct))return D(this,Ct).continueRetry(),D(this,Ct).promise}if(a&&this.setOptions(a),!this.options.queryFn){const b=this.observers.find(w=>w.options.queryFn);b&&this.setOptions(b.options)}const i=new AbortController,s=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(ue(this,$l,!0),i.signal)})},u=()=>{const b=ux(this.options,r),w={client:D(this,Xl),queryKey:this.queryKey,meta:this.meta};return s(w),ue(this,$l,!1),this.options.persister?this.options.persister(b,w,this):b(w)},h={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:D(this,Xl),state:this.state,fetchFn:u};s(h),(p=this.options.behavior)==null||p.onFetch(h,this),ue(this,ii,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=h.fetchOptions)==null?void 0:g.meta))&&Te(this,Tn,wa).call(this,{type:"fetch",meta:(y=h.fetchOptions)==null?void 0:y.meta});const m=b=>{var w,j,E,S;lh(b)&&b.silent||Te(this,Tn,wa).call(this,{type:"error",error:b}),lh(b)||((j=(w=D(this,gn).config).onError)==null||j.call(w,b,this),(S=(E=D(this,gn).config).onSettled)==null||S.call(E,this.state.data,b,this)),this.scheduleGc()};return ue(this,Ct,fx({initialPromise:r==null?void 0:r.initialPromise,fn:h.fetchFn,abort:i.abort.bind(i),onSuccess:b=>{var w,j,E,S;if(b===void 0){m(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(b)}catch(C){m(C);return}(j=(w=D(this,gn).config).onSuccess)==null||j.call(w,b,this),(S=(E=D(this,gn).config).onSettled)==null||S.call(E,b,this.state.error,this),this.scheduleGc()},onError:m,onFail:(b,w)=>{Te(this,Tn,wa).call(this,{type:"failed",failureCount:b,error:w})},onPause:()=>{Te(this,Tn,wa).call(this,{type:"pause"})},onContinue:()=>{Te(this,Tn,wa).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0})),D(this,Ct).start()}},ri=new WeakMap,ii=new WeakMap,gn=new WeakMap,Xl=new WeakMap,Ct=new WeakMap,Vo=new WeakMap,$l=new WeakMap,Tn=new WeakSet,wa=function(a){const r=i=>{switch(a.type){case"failed":return{...i,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...mx(i.data,this.options),fetchMeta:a.meta??null};case"success":return{...i,data:a.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:a.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=a.error;return lh(s)&&s.revert&&D(this,ii)?{...D(this,ii),fetchStatus:"idle"}:{...i,error:s,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...a.state}}};this.state=r(this.state),vt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),D(this,gn).notify({query:this,type:"updated",action:a})})},Ib);function mx(n,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:cx(a.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function VN(n){const a=typeof n.initialData=="function"?n.initialData():n.initialData,r=a!==void 0,i=r?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Gn,ex,KN=(ex=class extends bi{constructor(a={}){super();xe(this,Gn);this.config=a,ue(this,Gn,new Map)}build(a,r,i){const s=r.queryKey,u=r.queryHash??mm(s,r);let h=this.get(u);return h||(h=new GN({client:a,queryKey:s,queryHash:u,options:a.defaultQueryOptions(r),state:i,defaultOptions:a.getQueryDefaults(s)}),this.add(h)),h}add(a){D(this,Gn).has(a.queryHash)||(D(this,Gn).set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const r=D(this,Gn).get(a.queryHash);r&&(a.destroy(),r===a&&D(this,Gn).delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){vt.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return D(this,Gn).get(a)}getAll(){return[...D(this,Gn).values()]}find(a){const r={exact:!0,...a};return this.getAll().find(i=>O0(r,i))}findAll(a={}){const r=this.getAll();return Object.keys(a).length>0?r.filter(i=>O0(a,i)):r}notify(a){vt.batch(()=>{this.listeners.forEach(r=>{r(a)})})}onFocus(){vt.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){vt.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},Gn=new WeakMap,ex),Vn,Tt,Zl,Kn,rl,tx,XN=(tx=class extends hx{constructor(a){super();xe(this,Kn);xe(this,Vn);xe(this,Tt);xe(this,Zl);this.mutationId=a.mutationId,ue(this,Tt,a.mutationCache),ue(this,Vn,[]),this.state=a.state||px(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){D(this,Vn).includes(a)||(D(this,Vn).push(a),this.clearGcTimeout(),D(this,Tt).notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){ue(this,Vn,D(this,Vn).filter(r=>r!==a)),this.scheduleGc(),D(this,Tt).notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){D(this,Vn).length||(this.state.status==="pending"?this.scheduleGc():D(this,Tt).remove(this))}continue(){var a;return((a=D(this,Zl))==null?void 0:a.continue())??this.execute(this.state.variables)}async execute(a){var u,h,m,p,g,y,b,w,j,E,S,C,R,_,T,k,L,X,q,H;const r=()=>{Te(this,Kn,rl).call(this,{type:"continue"})};ue(this,Zl,fx({fn:()=>this.options.mutationFn?this.options.mutationFn(a):Promise.reject(new Error("No mutationFn found")),onFail:(G,te)=>{Te(this,Kn,rl).call(this,{type:"failed",failureCount:G,error:te})},onPause:()=>{Te(this,Kn,rl).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>D(this,Tt).canRun(this)}));const i=this.state.status==="pending",s=!D(this,Zl).canStart();try{if(i)r();else{Te(this,Kn,rl).call(this,{type:"pending",variables:a,isPaused:s}),await((h=(u=D(this,Tt).config).onMutate)==null?void 0:h.call(u,a,this));const te=await((p=(m=this.options).onMutate)==null?void 0:p.call(m,a));te!==this.state.context&&Te(this,Kn,rl).call(this,{type:"pending",context:te,variables:a,isPaused:s})}const G=await D(this,Zl).start();return await((y=(g=D(this,Tt).config).onSuccess)==null?void 0:y.call(g,G,a,this.state.context,this)),await((w=(b=this.options).onSuccess)==null?void 0:w.call(b,G,a,this.state.context)),await((E=(j=D(this,Tt).config).onSettled)==null?void 0:E.call(j,G,null,this.state.variables,this.state.context,this)),await((C=(S=this.options).onSettled)==null?void 0:C.call(S,G,null,a,this.state.context)),Te(this,Kn,rl).call(this,{type:"success",data:G}),G}catch(G){try{throw await((_=(R=D(this,Tt).config).onError)==null?void 0:_.call(R,G,a,this.state.context,this)),await((k=(T=this.options).onError)==null?void 0:k.call(T,G,a,this.state.context)),await((X=(L=D(this,Tt).config).onSettled)==null?void 0:X.call(L,void 0,G,this.state.variables,this.state.context,this)),await((H=(q=this.options).onSettled)==null?void 0:H.call(q,void 0,G,a,this.state.context)),G}finally{Te(this,Kn,rl).call(this,{type:"error",error:G})}}finally{D(this,Tt).runNext(this)}}},Vn=new WeakMap,Tt=new WeakMap,Zl=new WeakMap,Kn=new WeakSet,rl=function(a){const r=i=>{switch(a.type){case"failed":return{...i,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...i,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:a.error,failureCount:i.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=r(this.state),vt.batch(()=>{D(this,Vn).forEach(i=>{i.onMutationUpdate(a)}),D(this,Tt).notify({mutation:this,type:"updated",action:a})})},tx);function px(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Sa,Mn,Ko,nx,$N=(nx=class extends bi{constructor(a={}){super();xe(this,Sa);xe(this,Mn);xe(this,Ko);this.config=a,ue(this,Sa,new Set),ue(this,Mn,new Map),ue(this,Ko,0)}build(a,r,i){const s=new XN({mutationCache:this,mutationId:++wu(this,Ko)._,options:a.defaultMutationOptions(r),state:i});return this.add(s),s}add(a){D(this,Sa).add(a);const r=Su(a);if(typeof r=="string"){const i=D(this,Mn).get(r);i?i.push(a):D(this,Mn).set(r,[a])}this.notify({type:"added",mutation:a})}remove(a){if(D(this,Sa).delete(a)){const r=Su(a);if(typeof r=="string"){const i=D(this,Mn).get(r);if(i)if(i.length>1){const s=i.indexOf(a);s!==-1&&i.splice(s,1)}else i[0]===a&&D(this,Mn).delete(r)}}this.notify({type:"removed",mutation:a})}canRun(a){const r=Su(a);if(typeof r=="string"){const i=D(this,Mn).get(r),s=i==null?void 0:i.find(u=>u.state.status==="pending");return!s||s===a}else return!0}runNext(a){var i;const r=Su(a);if(typeof r=="string"){const s=(i=D(this,Mn).get(r))==null?void 0:i.find(u=>u!==a&&u.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){vt.batch(()=>{D(this,Sa).forEach(a=>{this.notify({type:"removed",mutation:a})}),D(this,Sa).clear(),D(this,Mn).clear()})}getAll(){return Array.from(D(this,Sa))}find(a){const r={exact:!0,...a};return this.getAll().find(i=>z0(r,i))}findAll(a={}){return this.getAll().filter(r=>z0(a,r))}notify(a){vt.batch(()=>{this.listeners.forEach(r=>{r(a)})})}resumePausedMutations(){const a=this.getAll().filter(r=>r.state.isPaused);return vt.batch(()=>Promise.all(a.map(r=>r.continue().catch(yn))))}},Sa=new WeakMap,Mn=new WeakMap,Ko=new WeakMap,nx);function Su(n){var a;return(a=n.options.scope)==null?void 0:a.id}function H0(n){return{onFetch:(a,r)=>{var y,b,w,j,E;const i=a.options,s=(w=(b=(y=a.fetchOptions)==null?void 0:y.meta)==null?void 0:b.fetchMore)==null?void 0:w.direction,u=((j=a.state.data)==null?void 0:j.pages)||[],h=((E=a.state.data)==null?void 0:E.pageParams)||[];let m={pages:[],pageParams:[]},p=0;const g=async()=>{let S=!1;const C=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(a.signal.aborted?S=!0:a.signal.addEventListener("abort",()=>{S=!0}),a.signal)})},R=ux(a.options,a.fetchOptions),_=async(T,k,L)=>{if(S)return Promise.reject();if(k==null&&T.pages.length)return Promise.resolve(T);const X={client:a.client,queryKey:a.queryKey,pageParam:k,direction:L?"backward":"forward",meta:a.options.meta};C(X);const q=await R(X),{maxPages:H}=a.options,G=L?UN:LN;return{pages:G(T.pages,q,H),pageParams:G(T.pageParams,k,H)}};if(s&&u.length){const T=s==="backward",k=T?ZN:q0,L={pages:u,pageParams:h},X=k(i,L);m=await _(L,X,T)}else{const T=n??u.length;do{const k=p===0?h[0]??i.initialPageParam:q0(i,m);if(p>0&&k==null)break;m=await _(m,k),p++}while(p<T)}return m};a.options.persister?a.fetchFn=()=>{var S,C;return(C=(S=a.options).persister)==null?void 0:C.call(S,g,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},r)}:a.fetchFn=g}}}function q0(n,{pages:a,pageParams:r}){const i=a.length-1;return a.length>0?n.getNextPageParam(a[i],a,r[i],r):void 0}function ZN(n,{pages:a,pageParams:r}){var i;return a.length>0?(i=n.getPreviousPageParam)==null?void 0:i.call(n,a[0],a,r[0],r):void 0}var at,ul,cl,oi,si,dl,ui,ci,ax,FN=(ax=class{constructor(n={}){xe(this,at);xe(this,ul);xe(this,cl);xe(this,oi);xe(this,si);xe(this,dl);xe(this,ui);xe(this,ci);ue(this,at,n.queryCache||new KN),ue(this,ul,n.mutationCache||new $N),ue(this,cl,n.defaultOptions||{}),ue(this,oi,new Map),ue(this,si,new Map),ue(this,dl,0)}mount(){wu(this,dl)._++,D(this,dl)===1&&(ue(this,ui,vm.subscribe(async n=>{n&&(await this.resumePausedMutations(),D(this,at).onFocus())})),ue(this,ci,Qu.subscribe(async n=>{n&&(await this.resumePausedMutations(),D(this,at).onOnline())})))}unmount(){var n,a;wu(this,dl)._--,D(this,dl)===0&&((n=D(this,ui))==null||n.call(this),ue(this,ui,void 0),(a=D(this,ci))==null||a.call(this),ue(this,ci,void 0))}isFetching(n){return D(this,at).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return D(this,ul).findAll({...n,status:"pending"}).length}getQueryData(n){var r;const a=this.defaultQueryOptions({queryKey:n});return(r=D(this,at).get(a.queryHash))==null?void 0:r.state.data}ensureQueryData(n){const a=this.defaultQueryOptions(n),r=D(this,at).build(this,a),i=r.state.data;return i===void 0?this.fetchQuery(n):(n.revalidateIfStale&&r.isStaleByTime(Wr(a.staleTime,r))&&this.prefetchQuery(a),Promise.resolve(i))}getQueriesData(n){return D(this,at).findAll(n).map(({queryKey:a,state:r})=>{const i=r.data;return[a,i]})}setQueryData(n,a,r){const i=this.defaultQueryOptions({queryKey:n}),s=D(this,at).get(i.queryHash),u=s==null?void 0:s.state.data,h=ON(a,u);if(h!==void 0)return D(this,at).build(this,i).setData(h,{...r,manual:!0})}setQueriesData(n,a,r){return vt.batch(()=>D(this,at).findAll(n).map(({queryKey:i})=>[i,this.setQueryData(i,a,r)]))}getQueryState(n){var r;const a=this.defaultQueryOptions({queryKey:n});return(r=D(this,at).get(a.queryHash))==null?void 0:r.state}removeQueries(n){const a=D(this,at);vt.batch(()=>{a.findAll(n).forEach(r=>{a.remove(r)})})}resetQueries(n,a){const r=D(this,at);return vt.batch(()=>(r.findAll(n).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...n},a)))}cancelQueries(n,a={}){const r={revert:!0,...a},i=vt.batch(()=>D(this,at).findAll(n).map(s=>s.cancel(r)));return Promise.all(i).then(yn).catch(yn)}invalidateQueries(n,a={}){return vt.batch(()=>(D(this,at).findAll(n).forEach(r=>{r.invalidate()}),(n==null?void 0:n.refetchType)==="none"?Promise.resolve():this.refetchQueries({...n,type:(n==null?void 0:n.refetchType)??(n==null?void 0:n.type)??"active"},a)))}refetchQueries(n,a={}){const r={...a,cancelRefetch:a.cancelRefetch??!0},i=vt.batch(()=>D(this,at).findAll(n).filter(s=>!s.isDisabled()).map(s=>{let u=s.fetch(void 0,r);return r.throwOnError||(u=u.catch(yn)),s.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(i).then(yn)}fetchQuery(n){const a=this.defaultQueryOptions(n);a.retry===void 0&&(a.retry=!1);const r=D(this,at).build(this,a);return r.isStaleByTime(Wr(a.staleTime,r))?r.fetch(a):Promise.resolve(r.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(yn).catch(yn)}fetchInfiniteQuery(n){return n.behavior=H0(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(yn).catch(yn)}ensureInfiniteQueryData(n){return n.behavior=H0(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Qu.isOnline()?D(this,ul).resumePausedMutations():Promise.resolve()}getQueryCache(){return D(this,at)}getMutationCache(){return D(this,ul)}getDefaultOptions(){return D(this,cl)}setDefaultOptions(n){ue(this,cl,n)}setQueryDefaults(n,a){D(this,oi).set(er(n),{queryKey:n,defaultOptions:a})}getQueryDefaults(n){const a=[...D(this,oi).values()],r={};return a.forEach(i=>{Ho(n,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(n,a){D(this,si).set(er(n),{mutationKey:n,defaultOptions:a})}getMutationDefaults(n){const a=[...D(this,si).values()],r={};return a.forEach(i=>{Ho(n,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(n){if(n._defaulted)return n;const a={...D(this,cl).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return a.queryHash||(a.queryHash=mm(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===pm&&(a.enabled=!1),a}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...D(this,cl).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){D(this,at).clear(),D(this,ul).clear()}},at=new WeakMap,ul=new WeakMap,cl=new WeakMap,oi=new WeakMap,si=new WeakMap,dl=new WeakMap,ui=new WeakMap,ci=new WeakMap,ax),qt,Le,Xo,Mt,Fl,di,fl,hl,$o,fi,hi,Pl,Jl,ml,mi,Qe,Ao,Ah,Dh,kh,Oh,zh,Lh,Uh,vx,lx,PN=(lx=class extends bi{constructor(a,r){super();xe(this,Qe);xe(this,qt);xe(this,Le);xe(this,Xo);xe(this,Mt);xe(this,Fl);xe(this,di);xe(this,fl);xe(this,hl);xe(this,$o);xe(this,fi);xe(this,hi);xe(this,Pl);xe(this,Jl);xe(this,ml);xe(this,mi,new Set);this.options=r,ue(this,qt,a),ue(this,hl,null),ue(this,fl,Mh()),this.options.experimental_prefetchInRender||D(this,fl).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(D(this,Le).addObserver(this),B0(D(this,Le),this.options)?Te(this,Qe,Ao).call(this):this.updateResult(),Te(this,Qe,Oh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Hh(D(this,Le),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Hh(D(this,Le),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Te(this,Qe,zh).call(this),Te(this,Qe,Lh).call(this),D(this,Le).removeObserver(this)}setOptions(a){const r=this.options,i=D(this,Le);if(this.options=D(this,qt).defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof An(this.options.enabled,D(this,Le))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Te(this,Qe,Uh).call(this),D(this,Le).setOptions(this.options),r._defaulted&&!Bu(this.options,r)&&D(this,qt).getQueryCache().notify({type:"observerOptionsUpdated",query:D(this,Le),observer:this});const s=this.hasListeners();s&&Q0(D(this,Le),i,this.options,r)&&Te(this,Qe,Ao).call(this),this.updateResult(),s&&(D(this,Le)!==i||An(this.options.enabled,D(this,Le))!==An(r.enabled,D(this,Le))||Wr(this.options.staleTime,D(this,Le))!==Wr(r.staleTime,D(this,Le)))&&Te(this,Qe,Ah).call(this);const u=Te(this,Qe,Dh).call(this);s&&(D(this,Le)!==i||An(this.options.enabled,D(this,Le))!==An(r.enabled,D(this,Le))||u!==D(this,ml))&&Te(this,Qe,kh).call(this,u)}getOptimisticResult(a){const r=D(this,qt).getQueryCache().build(D(this,qt),a),i=this.createResult(r,a);return WN(this,i)&&(ue(this,Mt,i),ue(this,di,this.options),ue(this,Fl,D(this,Le).state)),i}getCurrentResult(){return D(this,Mt)}trackResult(a,r){const i={};return Object.keys(a).forEach(s=>{Object.defineProperty(i,s,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(s),r==null||r(s),a[s])})}),i}trackProp(a){D(this,mi).add(a)}getCurrentQuery(){return D(this,Le)}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const r=D(this,qt).defaultQueryOptions(a),i=D(this,qt).getQueryCache().build(D(this,qt),r);return i.fetch().then(()=>this.createResult(i,r))}fetch(a){return Te(this,Qe,Ao).call(this,{...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),D(this,Mt)))}createResult(a,r){var G;const i=D(this,Le),s=this.options,u=D(this,Mt),h=D(this,Fl),m=D(this,di),g=a!==i?a.state:D(this,Xo),{state:y}=a;let b={...y},w=!1,j;if(r._optimisticResults){const te=this.hasListeners(),ce=!te&&B0(a,r),de=te&&Q0(a,i,r,s);(ce||de)&&(b={...b,...mx(y.data,a.options)}),r._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:E,errorUpdatedAt:S,status:C}=b;j=b.data;let R=!1;if(r.placeholderData!==void 0&&j===void 0&&C==="pending"){let te;u!=null&&u.isPlaceholderData&&r.placeholderData===(m==null?void 0:m.placeholderData)?(te=u.data,R=!0):te=typeof r.placeholderData=="function"?r.placeholderData((G=D(this,hi))==null?void 0:G.state.data,D(this,hi)):r.placeholderData,te!==void 0&&(C="success",j=Th(u==null?void 0:u.data,te,r),w=!0)}if(r.select&&j!==void 0&&!R)if(u&&j===(h==null?void 0:h.data)&&r.select===D(this,$o))j=D(this,fi);else try{ue(this,$o,r.select),j=r.select(j),j=Th(u==null?void 0:u.data,j,r),ue(this,fi,j),ue(this,hl,null)}catch(te){ue(this,hl,te)}D(this,hl)&&(E=D(this,hl),j=D(this,fi),S=Date.now(),C="error");const _=b.fetchStatus==="fetching",T=C==="pending",k=C==="error",L=T&&_,X=j!==void 0,H={status:C,fetchStatus:b.fetchStatus,isPending:T,isSuccess:C==="success",isError:k,isInitialLoading:L,isLoading:L,data:j,dataUpdatedAt:b.dataUpdatedAt,error:E,errorUpdatedAt:S,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>g.dataUpdateCount||b.errorUpdateCount>g.errorUpdateCount,isFetching:_,isRefetching:_&&!T,isLoadingError:k&&!X,isPaused:b.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:k&&X,isStale:gm(a,r),refetch:this.refetch,promise:D(this,fl)};if(this.options.experimental_prefetchInRender){const te=I=>{H.status==="error"?I.reject(H.error):H.data!==void 0&&I.resolve(H.data)},ce=()=>{const I=ue(this,fl,H.promise=Mh());te(I)},de=D(this,fl);switch(de.status){case"pending":a.queryHash===i.queryHash&&te(de);break;case"fulfilled":(H.status==="error"||H.data!==de.value)&&ce();break;case"rejected":(H.status!=="error"||H.error!==de.reason)&&ce();break}}return H}updateResult(){const a=D(this,Mt),r=this.createResult(D(this,Le),this.options);if(ue(this,Fl,D(this,Le).state),ue(this,di,this.options),D(this,Fl).data!==void 0&&ue(this,hi,D(this,Le)),Bu(r,a))return;ue(this,Mt,r);const i=()=>{if(!a)return!0;const{notifyOnChangeProps:s}=this.options,u=typeof s=="function"?s():s;if(u==="all"||!u&&!D(this,mi).size)return!0;const h=new Set(u??D(this,mi));return this.options.throwOnError&&h.add("error"),Object.keys(D(this,Mt)).some(m=>{const p=m;return D(this,Mt)[p]!==a[p]&&h.has(p)})};Te(this,Qe,vx).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Te(this,Qe,Oh).call(this)}},qt=new WeakMap,Le=new WeakMap,Xo=new WeakMap,Mt=new WeakMap,Fl=new WeakMap,di=new WeakMap,fl=new WeakMap,hl=new WeakMap,$o=new WeakMap,fi=new WeakMap,hi=new WeakMap,Pl=new WeakMap,Jl=new WeakMap,ml=new WeakMap,mi=new WeakMap,Qe=new WeakSet,Ao=function(a){Te(this,Qe,Uh).call(this);let r=D(this,Le).fetch(this.options,a);return a!=null&&a.throwOnError||(r=r.catch(yn)),r},Ah=function(){Te(this,Qe,zh).call(this);const a=Wr(this.options.staleTime,D(this,Le));if(Il||D(this,Mt).isStale||!Rh(a))return;const i=ox(D(this,Mt).dataUpdatedAt,a)+1;ue(this,Pl,setTimeout(()=>{D(this,Mt).isStale||this.updateResult()},i))},Dh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(D(this,Le)):this.options.refetchInterval)??!1},kh=function(a){Te(this,Qe,Lh).call(this),ue(this,ml,a),!(Il||An(this.options.enabled,D(this,Le))===!1||!Rh(D(this,ml))||D(this,ml)===0)&&ue(this,Jl,setInterval(()=>{(this.options.refetchIntervalInBackground||vm.isFocused())&&Te(this,Qe,Ao).call(this)},D(this,ml)))},Oh=function(){Te(this,Qe,Ah).call(this),Te(this,Qe,kh).call(this,Te(this,Qe,Dh).call(this))},zh=function(){D(this,Pl)&&(clearTimeout(D(this,Pl)),ue(this,Pl,void 0))},Lh=function(){D(this,Jl)&&(clearInterval(D(this,Jl)),ue(this,Jl,void 0))},Uh=function(){const a=D(this,qt).getQueryCache().build(D(this,qt),this.options);if(a===D(this,Le))return;const r=D(this,Le);ue(this,Le,a),ue(this,Xo,a.state),this.hasListeners()&&(r==null||r.removeObserver(this),a.addObserver(this))},vx=function(a){vt.batch(()=>{a.listeners&&this.listeners.forEach(r=>{r(D(this,Mt))}),D(this,qt).getQueryCache().notify({query:D(this,Le),type:"observerResultsUpdated"})})},lx);function JN(n,a){return An(a.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&a.retryOnMount===!1)}function B0(n,a){return JN(n,a)||n.state.data!==void 0&&Hh(n,a,a.refetchOnMount)}function Hh(n,a,r){if(An(a.enabled,n)!==!1){const i=typeof r=="function"?r(n):r;return i==="always"||i!==!1&&gm(n,a)}return!1}function Q0(n,a,r,i){return(n!==a||An(i.enabled,n)===!1)&&(!r.suspense||n.state.status!=="error")&&gm(n,r)}function gm(n,a){return An(a.enabled,n)!==!1&&n.isStaleByTime(Wr(a.staleTime,n))}function WN(n,a){return!Bu(n.getCurrentResult(),a)}var pl,vl,Bt,ja,Ra,ku,qh,rx,IN=(rx=class extends bi{constructor(r,i){super();xe(this,Ra);xe(this,pl);xe(this,vl);xe(this,Bt);xe(this,ja);ue(this,pl,r),this.setOptions(i),this.bindMethods(),Te(this,Ra,ku).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var s;const i=this.options;this.options=D(this,pl).defaultMutationOptions(r),Bu(this.options,i)||D(this,pl).getMutationCache().notify({type:"observerOptionsUpdated",mutation:D(this,Bt),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&er(i.mutationKey)!==er(this.options.mutationKey)?this.reset():((s=D(this,Bt))==null?void 0:s.state.status)==="pending"&&D(this,Bt).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=D(this,Bt))==null||r.removeObserver(this)}onMutationUpdate(r){Te(this,Ra,ku).call(this),Te(this,Ra,qh).call(this,r)}getCurrentResult(){return D(this,vl)}reset(){var r;(r=D(this,Bt))==null||r.removeObserver(this),ue(this,Bt,void 0),Te(this,Ra,ku).call(this),Te(this,Ra,qh).call(this)}mutate(r,i){var s;return ue(this,ja,i),(s=D(this,Bt))==null||s.removeObserver(this),ue(this,Bt,D(this,pl).getMutationCache().build(D(this,pl),this.options)),D(this,Bt).addObserver(this),D(this,Bt).execute(r)}},pl=new WeakMap,vl=new WeakMap,Bt=new WeakMap,ja=new WeakMap,Ra=new WeakSet,ku=function(){var i;const r=((i=D(this,Bt))==null?void 0:i.state)??px();ue(this,vl,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},qh=function(r){vt.batch(()=>{var i,s,u,h,m,p,g,y;if(D(this,ja)&&this.hasListeners()){const b=D(this,vl).variables,w=D(this,vl).context;(r==null?void 0:r.type)==="success"?((s=(i=D(this,ja)).onSuccess)==null||s.call(i,r.data,b,w),(h=(u=D(this,ja)).onSettled)==null||h.call(u,r.data,null,b,w)):(r==null?void 0:r.type)==="error"&&((p=(m=D(this,ja)).onError)==null||p.call(m,r.error,b,w),(y=(g=D(this,ja)).onSettled)==null||y.call(g,void 0,r.error,b,w))}this.listeners.forEach(b=>{b(D(this,vl))})})},rx),rh={exports:{}},Ce={};/**
|
|
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 Y0;function eC(){if(Y0)return Ce;Y0=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),w=Symbol.iterator;function j(A){return A===null||typeof A!="object"?null:(A=w&&A[w]||A["@@iterator"],typeof A=="function"?A:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,C={};function R(A,Z,ee){this.props=A,this.context=Z,this.refs=C,this.updater=ee||E}R.prototype.isReactComponent={},R.prototype.setState=function(A,Z){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,Z,"setState")},R.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function _(){}_.prototype=R.prototype;function T(A,Z,ee){this.props=A,this.context=Z,this.refs=C,this.updater=ee||E}var k=T.prototype=new _;k.constructor=T,S(k,R.prototype),k.isPureReactComponent=!0;var L=Array.isArray;function X(){}var q={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function G(A,Z,ee){var le=ee.ref;return{$$typeof:n,type:A,key:Z,ref:le!==void 0?le:null,props:ee}}function te(A,Z){return G(A.type,Z,A.props)}function ce(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function de(A){var Z={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(ee){return Z[ee]})}var I=/\/+/g;function ie(A,Z){return typeof A=="object"&&A!==null&&A.key!=null?de(""+A.key):Z.toString(36)}function re(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(X,X):(A.status="pending",A.then(function(Z){A.status==="pending"&&(A.status="fulfilled",A.value=Z)},function(Z){A.status==="pending"&&(A.status="rejected",A.reason=Z)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function U(A,Z,ee,le,ve){var je=typeof A;(je==="undefined"||je==="boolean")&&(A=null);var ne=!1;if(A===null)ne=!0;else switch(je){case"bigint":case"string":case"number":ne=!0;break;case"object":switch(A.$$typeof){case n:case a:ne=!0;break;case y:return ne=A._init,U(ne(A._payload),Z,ee,le,ve)}}if(ne)return ve=ve(A),ne=le===""?"."+ie(A,0):le,L(ve)?(ee="",ne!=null&&(ee=ne.replace(I,"$&/")+"/"),U(ve,Z,ee,"",function(Ne){return Ne})):ve!=null&&(ce(ve)&&(ve=te(ve,ee+(ve.key==null||A&&A.key===ve.key?"":(""+ve.key).replace(I,"$&/")+"/")+ne)),Z.push(ve)),1;ne=0;var Ee=le===""?".":le+":";if(L(A))for(var ye=0;ye<A.length;ye++)le=A[ye],je=Ee+ie(le,ye),ne+=U(le,Z,ee,je,ve);else if(ye=j(A),typeof ye=="function")for(A=ye.call(A),ye=0;!(le=A.next()).done;)le=le.value,je=Ee+ie(le,ye++),ne+=U(le,Z,ee,je,ve);else if(je==="object"){if(typeof A.then=="function")return U(re(A),Z,ee,le,ve);throw Z=String(A),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return ne}function W(A,Z,ee){if(A==null)return A;var le=[],ve=0;return U(A,le,"","",function(je){return Z.call(ee,je,ve++)}),le}function V(A){if(A._status===-1){var Z=A._result;Z=Z(),Z.then(function(ee){(A._status===0||A._status===-1)&&(A._status=1,A._result=ee)},function(ee){(A._status===0||A._status===-1)&&(A._status=2,A._result=ee)}),A._status===-1&&(A._status=0,A._result=Z)}if(A._status===1)return A._result.default;throw A._result}var $=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},fe={map:W,forEach:function(A,Z,ee){W(A,function(){Z.apply(this,arguments)},ee)},count:function(A){var Z=0;return W(A,function(){Z++}),Z},toArray:function(A){return W(A,function(Z){return Z})||[]},only:function(A){if(!ce(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return Ce.Activity=b,Ce.Children=fe,Ce.Component=R,Ce.Fragment=r,Ce.Profiler=s,Ce.PureComponent=T,Ce.StrictMode=i,Ce.Suspense=p,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(A){return q.H.useMemoCache(A)}},Ce.cache=function(A){return function(){return A.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(A,Z,ee){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var le=S({},A.props),ve=A.key;if(Z!=null)for(je in Z.key!==void 0&&(ve=""+Z.key),Z)!H.call(Z,je)||je==="key"||je==="__self"||je==="__source"||je==="ref"&&Z.ref===void 0||(le[je]=Z[je]);var je=arguments.length-2;if(je===1)le.children=ee;else if(1<je){for(var ne=Array(je),Ee=0;Ee<je;Ee++)ne[Ee]=arguments[Ee+2];le.children=ne}return G(A.type,ve,le)},Ce.createContext=function(A){return A={$$typeof:h,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:u,_context:A},A},Ce.createElement=function(A,Z,ee){var le,ve={},je=null;if(Z!=null)for(le in Z.key!==void 0&&(je=""+Z.key),Z)H.call(Z,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(ve[le]=Z[le]);var ne=arguments.length-2;if(ne===1)ve.children=ee;else if(1<ne){for(var Ee=Array(ne),ye=0;ye<ne;ye++)Ee[ye]=arguments[ye+2];ve.children=Ee}if(A&&A.defaultProps)for(le in ne=A.defaultProps,ne)ve[le]===void 0&&(ve[le]=ne[le]);return G(A,je,ve)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(A){return{$$typeof:m,render:A}},Ce.isValidElement=ce,Ce.lazy=function(A){return{$$typeof:y,_payload:{_status:-1,_result:A},_init:V}},Ce.memo=function(A,Z){return{$$typeof:g,type:A,compare:Z===void 0?null:Z}},Ce.startTransition=function(A){var Z=q.T,ee={};q.T=ee;try{var le=A(),ve=q.S;ve!==null&&ve(ee,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(X,$)}catch(je){$(je)}finally{Z!==null&&ee.types!==null&&(Z.types=ee.types),q.T=Z}},Ce.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},Ce.use=function(A){return q.H.use(A)},Ce.useActionState=function(A,Z,ee){return q.H.useActionState(A,Z,ee)},Ce.useCallback=function(A,Z){return q.H.useCallback(A,Z)},Ce.useContext=function(A){return q.H.useContext(A)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(A,Z){return q.H.useDeferredValue(A,Z)},Ce.useEffect=function(A,Z){return q.H.useEffect(A,Z)},Ce.useEffectEvent=function(A){return q.H.useEffectEvent(A)},Ce.useId=function(){return q.H.useId()},Ce.useImperativeHandle=function(A,Z,ee){return q.H.useImperativeHandle(A,Z,ee)},Ce.useInsertionEffect=function(A,Z){return q.H.useInsertionEffect(A,Z)},Ce.useLayoutEffect=function(A,Z){return q.H.useLayoutEffect(A,Z)},Ce.useMemo=function(A,Z){return q.H.useMemo(A,Z)},Ce.useOptimistic=function(A,Z){return q.H.useOptimistic(A,Z)},Ce.useReducer=function(A,Z,ee){return q.H.useReducer(A,Z,ee)},Ce.useRef=function(A){return q.H.useRef(A)},Ce.useState=function(A){return q.H.useState(A)},Ce.useSyncExternalStore=function(A,Z,ee){return q.H.useSyncExternalStore(A,Z,ee)},Ce.useTransition=function(){return q.H.useTransition()},Ce.version="19.2.3",Ce}var G0;function ym(){return G0||(G0=1,rh.exports=eC()),rh.exports}var v=ym();const lt=ix(v),gx=AN({__proto__:null,default:lt},[v]);var yx=v.createContext(void 0),bm=n=>{const a=v.useContext(yx);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},tC=({client:n,children:a})=>(v.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),d.jsx(yx.Provider,{value:n,children:a})),bx=v.createContext(!1),nC=()=>v.useContext(bx);bx.Provider;function aC(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var lC=v.createContext(aC()),rC=()=>v.useContext(lC);function xx(n,a){return typeof n=="function"?n(...a):!!n}function Bh(){}var iC=(n,a)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(a.isReset()||(n.retryOnMount=!1))},oC=n=>{v.useEffect(()=>{n.clearReset()},[n])},sC=({result:n,errorResetBoundary:a,throwOnError:r,query:i,suspense:s})=>n.isError&&!a.isReset()&&!n.isFetching&&i&&(s&&n.data===void 0||xx(r,[n.error,i])),uC=n=>{const a=n.staleTime;n.suspense&&(n.staleTime=typeof a=="function"?(...r)=>Math.max(a(...r),1e3):Math.max(a??1e3,1e3),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3)))},cC=(n,a)=>n.isLoading&&n.isFetching&&!a,dC=(n,a)=>(n==null?void 0:n.suspense)&&a.isPending,V0=(n,a,r)=>a.fetchOptimistic(n).catch(()=>{r.clearReset()});function fC(n,a,r){var b,w,j,E,S;const i=bm(),s=nC(),u=rC(),h=i.defaultQueryOptions(n);(w=(b=i.getDefaultOptions().queries)==null?void 0:b._experimental_beforeQuery)==null||w.call(b,h),h._optimisticResults=s?"isRestoring":"optimistic",uC(h),iC(h,u),oC(u);const m=!i.getQueryCache().get(h.queryHash),[p]=v.useState(()=>new a(i,h)),g=p.getOptimisticResult(h),y=!s&&n.subscribed!==!1;if(v.useSyncExternalStore(v.useCallback(C=>{const R=y?p.subscribe(vt.batchCalls(C)):Bh;return p.updateResult(),R},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),v.useEffect(()=>{p.setOptions(h)},[h,p]),dC(h,g))throw V0(h,p,u);if(sC({result:g,errorResetBoundary:u,throwOnError:h.throwOnError,query:i.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw g.error;if((E=(j=i.getDefaultOptions().queries)==null?void 0:j._experimental_afterQuery)==null||E.call(j,h,g),h.experimental_prefetchInRender&&!Il&&cC(g,s)){const C=m?V0(h,p,u):(S=i.getQueryCache().get(h.queryHash))==null?void 0:S.promise;C==null||C.catch(Bh).finally(()=>{p.updateResult()})}return h.notifyOnChangeProps?g:p.trackResult(g)}function Gt(n,a){return fC(n,PN)}function Qh(n,a){const r=bm(),[i]=v.useState(()=>new IN(r,n));v.useEffect(()=>{i.setOptions(n)},[i,n]);const s=v.useSyncExternalStore(v.useCallback(h=>i.subscribe(vt.batchCalls(h)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),u=v.useCallback((h,m)=>{i.mutate(h,m).catch(Bh)},[i]);if(s.error&&xx(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:u,mutateAsync:s.mutate}}var ih={exports:{}},Co={},oh={exports:{}},sh={};/**
|
|
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 K0;function hC(){return K0||(K0=1,(function(n){function a(U,W){var V=U.length;U.push(W);e:for(;0<V;){var $=V-1>>>1,fe=U[$];if(0<s(fe,W))U[$]=W,U[V]=fe,V=$;else break e}}function r(U){return U.length===0?null:U[0]}function i(U){if(U.length===0)return null;var W=U[0],V=U.pop();if(V!==W){U[0]=V;e:for(var $=0,fe=U.length,A=fe>>>1;$<A;){var Z=2*($+1)-1,ee=U[Z],le=Z+1,ve=U[le];if(0>s(ee,V))le<fe&&0>s(ve,ee)?(U[$]=ve,U[le]=V,$=le):(U[$]=ee,U[Z]=V,$=Z);else if(le<fe&&0>s(ve,V))U[$]=ve,U[le]=V,$=le;else break e}}return W}function s(U,W){var V=U.sortIndex-W.sortIndex;return V!==0?V:U.id-W.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;n.unstable_now=function(){return u.now()}}else{var h=Date,m=h.now();n.unstable_now=function(){return h.now()-m}}var p=[],g=[],y=1,b=null,w=3,j=!1,E=!1,S=!1,C=!1,R=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function k(U){for(var W=r(g);W!==null;){if(W.callback===null)i(g);else if(W.startTime<=U)i(g),W.sortIndex=W.expirationTime,a(p,W);else break;W=r(g)}}function L(U){if(S=!1,k(U),!E)if(r(p)!==null)E=!0,X||(X=!0,de());else{var W=r(g);W!==null&&re(L,W.startTime-U)}}var X=!1,q=-1,H=5,G=-1;function te(){return C?!0:!(n.unstable_now()-G<H)}function ce(){if(C=!1,X){var U=n.unstable_now();G=U;var W=!0;try{e:{E=!1,S&&(S=!1,_(q),q=-1),j=!0;var V=w;try{t:{for(k(U),b=r(p);b!==null&&!(b.expirationTime>U&&te());){var $=b.callback;if(typeof $=="function"){b.callback=null,w=b.priorityLevel;var fe=$(b.expirationTime<=U);if(U=n.unstable_now(),typeof fe=="function"){b.callback=fe,k(U),W=!0;break t}b===r(p)&&i(p),k(U)}else i(p);b=r(p)}if(b!==null)W=!0;else{var A=r(g);A!==null&&re(L,A.startTime-U),W=!1}}break e}finally{b=null,w=V,j=!1}W=void 0}}finally{W?de():X=!1}}}var de;if(typeof T=="function")de=function(){T(ce)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,ie=I.port2;I.port1.onmessage=ce,de=function(){ie.postMessage(null)}}else de=function(){R(ce,0)};function re(U,W){q=R(function(){U(n.unstable_now())},W)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(U){U.callback=null},n.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<U?Math.floor(1e3/U):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_next=function(U){switch(w){case 1:case 2:case 3:var W=3;break;default:W=w}var V=w;w=W;try{return U()}finally{w=V}},n.unstable_requestPaint=function(){C=!0},n.unstable_runWithPriority=function(U,W){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var V=w;w=U;try{return W()}finally{w=V}},n.unstable_scheduleCallback=function(U,W,V){var $=n.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?$+V:$):V=$,U){case 1:var fe=-1;break;case 2:fe=250;break;case 5:fe=1073741823;break;case 4:fe=1e4;break;default:fe=5e3}return fe=V+fe,U={id:y++,callback:W,priorityLevel:U,startTime:V,expirationTime:fe,sortIndex:-1},V>$?(U.sortIndex=V,a(g,U),r(p)===null&&U===r(g)&&(S?(_(q),q=-1):S=!0,re(L,V-$))):(U.sortIndex=fe,a(p,U),E||j||(E=!0,X||(X=!0,de()))),U},n.unstable_shouldYield=te,n.unstable_wrapCallback=function(U){var W=w;return function(){var V=w;w=W;try{return U.apply(this,arguments)}finally{w=V}}}})(sh)),sh}var X0;function mC(){return X0||(X0=1,oh.exports=hC()),oh.exports}var uh={exports:{}},Nt={};/**
|
|
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 $0;function pC(){if($0)return Nt;$0=1;var n=ym();function a(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function u(p,g,y){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:b==null?null:""+b,children:p,containerInfo:g,implementation:y}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Nt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Nt.createPortal=function(p,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(a(299));return u(p,g,null,y)},Nt.flushSync=function(p){var g=h.T,y=i.p;try{if(h.T=null,i.p=2,p)return p()}finally{h.T=g,i.p=y,i.d.f()}},Nt.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,i.d.C(p,g))},Nt.prefetchDNS=function(p){typeof p=="string"&&i.d.D(p)},Nt.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var y=g.as,b=m(y,g.crossOrigin),w=typeof g.integrity=="string"?g.integrity:void 0,j=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?i.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:w,fetchPriority:j}):y==="script"&&i.d.X(p,{crossOrigin:b,integrity:w,fetchPriority:j,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Nt.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=m(g.as,g.crossOrigin);i.d.M(p,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&i.d.M(p)},Nt.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,b=m(y,g.crossOrigin);i.d.L(p,y,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Nt.preloadModule=function(p,g){if(typeof p=="string")if(g){var y=m(g.as,g.crossOrigin);i.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else i.d.m(p)},Nt.requestFormReset=function(p){i.d.r(p)},Nt.unstable_batchedUpdates=function(p,g){return p(g)},Nt.useFormState=function(p,g,y){return h.H.useFormState(p,g,y)},Nt.useFormStatus=function(){return h.H.useHostTransitionStatus()},Nt.version="19.2.3",Nt}var Z0;function wx(){if(Z0)return uh.exports;Z0=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),uh.exports=pC(),uh.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 F0;function vC(){if(F0)return Co;F0=1;var n=mC(),a=ym(),r=wx();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(u(e)!==e)throw Error(i(188))}function g(e){var t=e.alternate;if(!t){if(t=u(e),t===null)throw Error(i(188));return t!==e?null:e}for(var l=e,o=t;;){var c=l.return;if(c===null)break;var f=c.alternate;if(f===null){if(o=c.return,o!==null){l=o;continue}break}if(c.child===f.child){for(f=c.child;f;){if(f===l)return p(c),e;if(f===o)return p(c),t;f=f.sibling}throw Error(i(188))}if(l.return!==o.return)l=c,o=f;else{for(var x=!1,N=c.child;N;){if(N===l){x=!0,l=c,o=f;break}if(N===o){x=!0,o=c,l=f;break}N=N.sibling}if(!x){for(N=f.child;N;){if(N===l){x=!0,l=f,o=c;break}if(N===o){x=!0,o=f,l=c;break}N=N.sibling}if(!x)throw Error(i(189))}}if(l.alternate!==o)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,w=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),T=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),te=Symbol.for("react.memo_cache_sentinel"),ce=Symbol.iterator;function de(e){return e===null||typeof e!="object"?null:(e=ce&&e[ce]||e["@@iterator"],typeof e=="function"?e:null)}var I=Symbol.for("react.client.reference");function ie(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===I?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case S:return"Fragment";case R:return"Profiler";case C:return"StrictMode";case L:return"Suspense";case X:return"SuspenseList";case G:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case T:return e.displayName||"Context";case _:return(e._context.displayName||"Context")+".Consumer";case k:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case q:return t=e.displayName||null,t!==null?t:ie(e.type)||"Memo";case H:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}var re=Array.isArray,U=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V={pending:!1,data:null,method:null,action:null},$=[],fe=-1;function A(e){return{current:e}}function Z(e){0>fe||(e.current=$[fe],$[fe]=null,fe--)}function ee(e,t){fe++,$[fe]=e.current,e.current=t}var le=A(null),ve=A(null),je=A(null),ne=A(null);function Ee(e,t){switch(ee(je,t),ee(ve,e),ee(le,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?e0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=e0(t),e=t0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Z(le),ee(le,e)}function ye(){Z(le),Z(ve),Z(je)}function Ne(e){e.memoizedState!==null&&ee(ne,e);var t=le.current,l=t0(t,e.type);t!==l&&(ee(ve,e),ee(le,l))}function Ue(e){ve.current===e&&(Z(le),Z(ve)),ne.current===e&&(Z(ne),wo._currentValue=V)}var Ye,Et;function Kt(e){if(Ye===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ye=t&&t[1]||"",Et=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Ye+e+Et}var ea=!1;function ta(e,t){if(!e||ea)return"";ea=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(t){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(K){var Y=K}Reflect.construct(e,[],J)}else{try{J.call()}catch(K){Y=K}e.call(J.prototype)}}else{try{throw Error()}catch(K){Y=K}(J=e())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(K){if(K&&Y&&typeof K.stack=="string")return[K.stack,Y.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=o.DetermineComponentFrameRoot(),x=f[0],N=f[1];if(x&&N){var M=x.split(`
|
|
44
|
+
`),Q=N.split(`
|
|
45
|
+
`);for(c=o=0;o<M.length&&!M[o].includes("DetermineComponentFrameRoot");)o++;for(;c<Q.length&&!Q[c].includes("DetermineComponentFrameRoot");)c++;if(o===M.length||c===Q.length)for(o=M.length-1,c=Q.length-1;1<=o&&0<=c&&M[o]!==Q[c];)c--;for(;1<=o&&0<=c;o--,c--)if(M[o]!==Q[c]){if(o!==1||c!==1)do if(o--,c--,0>c||M[o]!==Q[c]){var F=`
|
|
46
|
+
`+M[o].replace(" at new "," at ");return e.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",e.displayName)),F}while(1<=o&&0<=c);break}}}finally{ea=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Kt(l):""}function Bc(e,t){switch(e.tag){case 26:case 27:case 5:return Kt(e.type);case 16:return Kt("Lazy");case 13:return e.child!==t&&t!==null?Kt("Suspense Fallback"):Kt("Suspense");case 19:return Kt("SuspenseList");case 0:case 15:return ta(e.type,!1);case 11:return ta(e.type.render,!1);case 1:return ta(e.type,!0);case 31:return Kt("Activity");default:return""}}function as(e){try{var t="",l=null;do t+=Bc(e,l),l=e,e=e.return;while(e);return t}catch(o){return`
|
|
47
|
+
Error generating stack: `+o.message+`
|
|
48
|
+
`+o.stack}}var Da=Object.prototype.hasOwnProperty,Qc=n.unstable_scheduleCallback,Yc=n.unstable_cancelCallback,u2=n.unstable_shouldYield,c2=n.unstable_requestPaint,Xt=n.unstable_now,d2=n.unstable_getCurrentPriorityLevel,Dp=n.unstable_ImmediatePriority,kp=n.unstable_UserBlockingPriority,ls=n.unstable_NormalPriority,f2=n.unstable_LowPriority,Op=n.unstable_IdlePriority,h2=n.log,m2=n.unstable_setDisableYieldValue,Di=null,$t=null;function ka(e){if(typeof h2=="function"&&m2(e),$t&&typeof $t.setStrictMode=="function")try{$t.setStrictMode(Di,e)}catch{}}var Zt=Math.clz32?Math.clz32:g2,p2=Math.log,v2=Math.LN2;function g2(e){return e>>>=0,e===0?32:31-(p2(e)/v2|0)|0}var rs=256,is=262144,os=4194304;function El(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ss(e,t,l){var o=e.pendingLanes;if(o===0)return 0;var c=0,f=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var N=o&134217727;return N!==0?(o=N&~f,o!==0?c=El(o):(x&=N,x!==0?c=El(x):l||(l=N&~e,l!==0&&(c=El(l))))):(N=o&~f,N!==0?c=El(N):x!==0?c=El(x):l||(l=o&~e,l!==0&&(c=El(l)))),c===0?0:t!==0&&t!==c&&(t&f)===0&&(f=c&-c,l=t&-t,f>=l||f===32&&(l&4194048)!==0)?t:c}function ki(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function y2(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 zp(){var e=os;return os<<=1,(os&62914560)===0&&(os=4194304),e}function Gc(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Oi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function b2(e,t,l,o,c,f){var x=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var N=e.entanglements,M=e.expirationTimes,Q=e.hiddenUpdates;for(l=x&~l;0<l;){var F=31-Zt(l),J=1<<F;N[F]=0,M[F]=-1;var Y=Q[F];if(Y!==null)for(Q[F]=null,F=0;F<Y.length;F++){var K=Y[F];K!==null&&(K.lane&=-536870913)}l&=~J}o!==0&&Lp(e,o,0),f!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=f&~(x&~t))}function Lp(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-Zt(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|l&261930}function Up(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var o=31-Zt(l),c=1<<o;c&t|e[o]&t&&(e[o]|=t),l&=~c}}function Hp(e,t){var l=t&-t;return l=(l&42)!==0?1:Vc(l),(l&(e.suspendedLanes|t))!==0?0:l}function Vc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Kc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function qp(){var e=W.p;return e!==0?e:(e=window.event,e===void 0?32:E0(e.type))}function Bp(e,t){var l=W.p;try{return W.p=e,t()}finally{W.p=l}}var Oa=Math.random().toString(36).slice(2),bt="__reactFiber$"+Oa,Dt="__reactProps$"+Oa,cr="__reactContainer$"+Oa,Xc="__reactEvents$"+Oa,x2="__reactListeners$"+Oa,w2="__reactHandles$"+Oa,Qp="__reactResources$"+Oa,zi="__reactMarker$"+Oa;function $c(e){delete e[bt],delete e[Dt],delete e[Xc],delete e[x2],delete e[w2]}function dr(e){var t=e[bt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[cr]||l[bt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=s0(e);e!==null;){if(l=e[bt])return l;e=s0(e)}return t}e=l,l=e.parentNode}return null}function fr(e){if(e=e[bt]||e[cr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Li(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function hr(e){var t=e[Qp];return t||(t=e[Qp]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function gt(e){e[zi]=!0}var Yp=new Set,Gp={};function Nl(e,t){mr(e,t),mr(e+"Capture",t)}function mr(e,t){for(Gp[e]=t,e=0;e<t.length;e++)Yp.add(t[e])}var S2=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]*$"),Vp={},Kp={};function j2(e){return Da.call(Kp,e)?!0:Da.call(Vp,e)?!1:S2.test(e)?Kp[e]=!0:(Vp[e]=!0,!1)}function us(e,t,l){if(j2(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function cs(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function na(e,t,l,o){if(o===null)e.removeAttribute(l);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+o)}}function on(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Xp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function E2(e,t,l){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var c=o.get,f=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(x){l=""+x,f.call(this,x)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return l},setValue:function(x){l=""+x},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Zc(e){if(!e._valueTracker){var t=Xp(e)?"checked":"value";e._valueTracker=E2(e,t,""+e[t])}}function $p(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),o="";return e&&(o=Xp(e)?e.checked?"true":"false":e.value),e=o,e!==l?(t.setValue(e),!0):!1}function ds(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var N2=/[\n"\\]/g;function sn(e){return e.replace(N2,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Fc(e,t,l,o,c,f,x,N){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),t!=null?x==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+on(t)):e.value!==""+on(t)&&(e.value=""+on(t)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),t!=null?Pc(e,x,on(t)):l!=null?Pc(e,x,on(l)):o!=null&&e.removeAttribute("value"),c==null&&f!=null&&(e.defaultChecked=!!f),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?e.name=""+on(N):e.removeAttribute("name")}function Zp(e,t,l,o,c,f,x,N){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||l!=null){if(!(f!=="submit"&&f!=="reset"||t!=null)){Zc(e);return}l=l!=null?""+on(l):"",t=t!=null?""+on(t):l,N||t===e.value||(e.value=t),e.defaultValue=t}o=o??c,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=N?e.checked:!!o,e.defaultChecked=!!o,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x),Zc(e)}function Pc(e,t,l){t==="number"&&ds(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function pr(e,t,l,o){if(e=e.options,t){t={};for(var c=0;c<l.length;c++)t["$"+l[c]]=!0;for(l=0;l<e.length;l++)c=t.hasOwnProperty("$"+e[l].value),e[l].selected!==c&&(e[l].selected=c),c&&o&&(e[l].defaultSelected=!0)}else{for(l=""+on(l),t=null,c=0;c<e.length;c++){if(e[c].value===l){e[c].selected=!0,o&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function Fp(e,t,l){if(t!=null&&(t=""+on(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+on(l):""}function Pp(e,t,l,o){if(t==null){if(o!=null){if(l!=null)throw Error(i(92));if(re(o)){if(1<o.length)throw Error(i(93));o=o[0]}l=o}l==null&&(l=""),t=l}l=on(t),e.defaultValue=l,o=e.textContent,o===l&&o!==""&&o!==null&&(e.value=o),Zc(e)}function vr(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var C2=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 Jp(e,t,l){var o=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,l):typeof l!="number"||l===0||C2.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Wp(e,t,l){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,l!=null){for(var o in l)!l.hasOwnProperty(o)||t!=null&&t.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var c in t)o=t[c],t.hasOwnProperty(c)&&l[c]!==o&&Jp(e,c,o)}else for(var f in t)t.hasOwnProperty(f)&&Jp(e,f,t[f])}function Jc(e){if(e.indexOf("-")===-1)return!1;switch(e){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 R2=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"]]),_2=/^[\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 fs(e){return _2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function aa(){}var Wc=null;function Ic(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gr=null,yr=null;function Ip(e){var t=fr(e);if(t&&(e=t.stateNode)){var l=e[Dt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Fc(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+sn(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var o=l[t];if(o!==e&&o.form===e.form){var c=o[Dt]||null;if(!c)throw Error(i(90));Fc(o,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<l.length;t++)o=l[t],o.form===e.form&&$p(o)}break e;case"textarea":Fp(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&pr(e,!!l.multiple,t,!1)}}}var ed=!1;function ev(e,t,l){if(ed)return e(t,l);ed=!0;try{var o=e(t);return o}finally{if(ed=!1,(gr!==null||yr!==null)&&(Is(),gr&&(t=gr,e=yr,yr=gr=null,Ip(t),e)))for(t=0;t<e.length;t++)Ip(e[t])}}function Ui(e,t){var l=e.stateNode;if(l===null)return null;var o=l[Dt]||null;if(o===null)return null;l=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(i(231,t,typeof l));return l}var la=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),td=!1;if(la)try{var Hi={};Object.defineProperty(Hi,"passive",{get:function(){td=!0}}),window.addEventListener("test",Hi,Hi),window.removeEventListener("test",Hi,Hi)}catch{td=!1}var za=null,nd=null,hs=null;function tv(){if(hs)return hs;var e,t=nd,l=t.length,o,c="value"in za?za.value:za.textContent,f=c.length;for(e=0;e<l&&t[e]===c[e];e++);var x=l-e;for(o=1;o<=x&&t[l-o]===c[f-o];o++);return hs=c.slice(e,1<o?1-o:void 0)}function ms(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ps(){return!0}function nv(){return!1}function kt(e){function t(l,o,c,f,x){this._reactName=l,this._targetInst=c,this.type=o,this.nativeEvent=f,this.target=x,this.currentTarget=null;for(var N in e)e.hasOwnProperty(N)&&(l=e[N],this[N]=l?l(f):f[N]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?ps:nv,this.isPropagationStopped=nv,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=ps)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ps)},persist:function(){},isPersistent:ps}),t}var Cl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vs=kt(Cl),qi=b({},Cl,{view:0,detail:0}),T2=kt(qi),ad,ld,Bi,gs=b({},qi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:id,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Bi&&(Bi&&e.type==="mousemove"?(ad=e.screenX-Bi.screenX,ld=e.screenY-Bi.screenY):ld=ad=0,Bi=e),ad)},movementY:function(e){return"movementY"in e?e.movementY:ld}}),av=kt(gs),M2=b({},gs,{dataTransfer:0}),A2=kt(M2),D2=b({},qi,{relatedTarget:0}),rd=kt(D2),k2=b({},Cl,{animationName:0,elapsedTime:0,pseudoElement:0}),O2=kt(k2),z2=b({},Cl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),L2=kt(z2),U2=b({},Cl,{data:0}),lv=kt(U2),H2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},q2={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"},B2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Q2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=B2[e])?!!t[e]:!1}function id(){return Q2}var Y2=b({},qi,{key:function(e){if(e.key){var t=H2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ms(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?q2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:id,charCode:function(e){return e.type==="keypress"?ms(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ms(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),G2=kt(Y2),V2=b({},gs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rv=kt(V2),K2=b({},qi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:id}),X2=kt(K2),$2=b({},Cl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Z2=kt($2),F2=b({},gs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),P2=kt(F2),J2=b({},Cl,{newState:0,oldState:0}),W2=kt(J2),I2=[9,13,27,32],od=la&&"CompositionEvent"in window,Qi=null;la&&"documentMode"in document&&(Qi=document.documentMode);var eE=la&&"TextEvent"in window&&!Qi,iv=la&&(!od||Qi&&8<Qi&&11>=Qi),ov=" ",sv=!1;function uv(e,t){switch(e){case"keyup":return I2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var br=!1;function tE(e,t){switch(e){case"compositionend":return cv(t);case"keypress":return t.which!==32?null:(sv=!0,ov);case"textInput":return e=t.data,e===ov&&sv?null:e;default:return null}}function nE(e,t){if(br)return e==="compositionend"||!od&&uv(e,t)?(e=tv(),hs=nd=za=null,br=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return iv&&t.locale!=="ko"?null:t.data;default:return null}}var aE={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 dv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!aE[e.type]:t==="textarea"}function fv(e,t,l,o){gr?yr?yr.push(o):yr=[o]:gr=o,t=iu(t,"onChange"),0<t.length&&(l=new vs("onChange","change",null,l,o),e.push({event:l,listeners:t}))}var Yi=null,Gi=null;function lE(e){Zy(e,0)}function ys(e){var t=Li(e);if($p(t))return e}function hv(e,t){if(e==="change")return t}var mv=!1;if(la){var sd;if(la){var ud="oninput"in document;if(!ud){var pv=document.createElement("div");pv.setAttribute("oninput","return;"),ud=typeof pv.oninput=="function"}sd=ud}else sd=!1;mv=sd&&(!document.documentMode||9<document.documentMode)}function vv(){Yi&&(Yi.detachEvent("onpropertychange",gv),Gi=Yi=null)}function gv(e){if(e.propertyName==="value"&&ys(Gi)){var t=[];fv(t,Gi,e,Ic(e)),ev(lE,t)}}function rE(e,t,l){e==="focusin"?(vv(),Yi=t,Gi=l,Yi.attachEvent("onpropertychange",gv)):e==="focusout"&&vv()}function iE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ys(Gi)}function oE(e,t){if(e==="click")return ys(t)}function sE(e,t){if(e==="input"||e==="change")return ys(t)}function uE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ft=typeof Object.is=="function"?Object.is:uE;function Vi(e,t){if(Ft(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),o=Object.keys(t);if(l.length!==o.length)return!1;for(o=0;o<l.length;o++){var c=l[o];if(!Da.call(t,c)||!Ft(e[c],t[c]))return!1}return!0}function yv(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function bv(e,t){var l=yv(e);e=0;for(var o;l;){if(l.nodeType===3){if(o=e+l.textContent.length,e<=t&&o>=t)return{node:l,offset:t-e};e=o}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=yv(l)}}function xv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wv(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ds(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=ds(e.document)}return t}function cd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var cE=la&&"documentMode"in document&&11>=document.documentMode,xr=null,dd=null,Ki=null,fd=!1;function Sv(e,t,l){var o=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;fd||xr==null||xr!==ds(o)||(o=xr,"selectionStart"in o&&cd(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Ki&&Vi(Ki,o)||(Ki=o,o=iu(dd,"onSelect"),0<o.length&&(t=new vs("onSelect","select",null,t,l),e.push({event:t,listeners:o}),t.target=xr)))}function Rl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var wr={animationend:Rl("Animation","AnimationEnd"),animationiteration:Rl("Animation","AnimationIteration"),animationstart:Rl("Animation","AnimationStart"),transitionrun:Rl("Transition","TransitionRun"),transitionstart:Rl("Transition","TransitionStart"),transitioncancel:Rl("Transition","TransitionCancel"),transitionend:Rl("Transition","TransitionEnd")},hd={},jv={};la&&(jv=document.createElement("div").style,"AnimationEvent"in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),"TransitionEvent"in window||delete wr.transitionend.transition);function _l(e){if(hd[e])return hd[e];if(!wr[e])return e;var t=wr[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in jv)return hd[e]=t[l];return e}var Ev=_l("animationend"),Nv=_l("animationiteration"),Cv=_l("animationstart"),dE=_l("transitionrun"),fE=_l("transitionstart"),hE=_l("transitioncancel"),Rv=_l("transitionend"),_v=new Map,md="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(" ");md.push("scrollEnd");function Nn(e,t){_v.set(e,t),Nl(t,[e])}var bs=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},un=[],Sr=0,pd=0;function xs(){for(var e=Sr,t=pd=Sr=0;t<e;){var l=un[t];un[t++]=null;var o=un[t];un[t++]=null;var c=un[t];un[t++]=null;var f=un[t];if(un[t++]=null,o!==null&&c!==null){var x=o.pending;x===null?c.next=c:(c.next=x.next,x.next=c),o.pending=c}f!==0&&Tv(l,c,f)}}function ws(e,t,l,o){un[Sr++]=e,un[Sr++]=t,un[Sr++]=l,un[Sr++]=o,pd|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function vd(e,t,l,o){return ws(e,t,l,o),Ss(e)}function Tl(e,t){return ws(e,null,null,t),Ss(e)}function Tv(e,t,l){e.lanes|=l;var o=e.alternate;o!==null&&(o.lanes|=l);for(var c=!1,f=e.return;f!==null;)f.childLanes|=l,o=f.alternate,o!==null&&(o.childLanes|=l),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(c=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,c&&t!==null&&(c=31-Zt(l),e=f.hiddenUpdates,o=e[c],o===null?e[c]=[t]:o.push(t),t.lane=l|536870912),f):null}function Ss(e){if(50<mo)throw mo=0,Cf=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var jr={};function mE(e,t,l,o){this.tag=e,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=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pt(e,t,l,o){return new mE(e,t,l,o)}function gd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ra(e,t){var l=e.alternate;return l===null?(l=Pt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Mv(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function js(e,t,l,o,c,f){var x=0;if(o=e,typeof e=="function")gd(e)&&(x=1);else if(typeof e=="string")x=bN(e,l,le.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case G:return e=Pt(31,l,t,c),e.elementType=G,e.lanes=f,e;case S:return Ml(l.children,c,f,t);case C:x=8,c|=24;break;case R:return e=Pt(12,l,t,c|2),e.elementType=R,e.lanes=f,e;case L:return e=Pt(13,l,t,c),e.elementType=L,e.lanes=f,e;case X:return e=Pt(19,l,t,c),e.elementType=X,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case T:x=10;break e;case _:x=9;break e;case k:x=11;break e;case q:x=14;break e;case H:x=16,o=null;break e}x=29,l=Error(i(130,e===null?"null":typeof e,"")),o=null}return t=Pt(x,l,t,c),t.elementType=e,t.type=o,t.lanes=f,t}function Ml(e,t,l,o){return e=Pt(7,e,o,t),e.lanes=l,e}function yd(e,t,l){return e=Pt(6,e,null,t),e.lanes=l,e}function Av(e){var t=Pt(18,null,null,0);return t.stateNode=e,t}function bd(e,t,l){return t=Pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Dv=new WeakMap;function cn(e,t){if(typeof e=="object"&&e!==null){var l=Dv.get(e);return l!==void 0?l:(t={value:e,source:t,stack:as(t)},Dv.set(e,t),t)}return{value:e,source:t,stack:as(t)}}var Er=[],Nr=0,Es=null,Xi=0,dn=[],fn=0,La=null,qn=1,Bn="";function ia(e,t){Er[Nr++]=Xi,Er[Nr++]=Es,Es=e,Xi=t}function kv(e,t,l){dn[fn++]=qn,dn[fn++]=Bn,dn[fn++]=La,La=e;var o=qn;e=Bn;var c=32-Zt(o)-1;o&=~(1<<c),l+=1;var f=32-Zt(t)+c;if(30<f){var x=c-c%5;f=(o&(1<<x)-1).toString(32),o>>=x,c-=x,qn=1<<32-Zt(t)+c|l<<c|o,Bn=f+e}else qn=1<<f|l<<c|o,Bn=e}function xd(e){e.return!==null&&(ia(e,1),kv(e,1,0))}function wd(e){for(;e===Es;)Es=Er[--Nr],Er[Nr]=null,Xi=Er[--Nr],Er[Nr]=null;for(;e===La;)La=dn[--fn],dn[fn]=null,Bn=dn[--fn],dn[fn]=null,qn=dn[--fn],dn[fn]=null}function Ov(e,t){dn[fn++]=qn,dn[fn++]=Bn,dn[fn++]=La,qn=t.id,Bn=t.overflow,La=e}var xt=null,Fe=null,ze=!1,Ua=null,hn=!1,Sd=Error(i(519));function Ha(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw $i(cn(t,e)),Sd}function zv(e){var t=e.stateNode,l=e.type,o=e.memoizedProps;switch(t[bt]=e,t[Dt]=o,l){case"dialog":De("cancel",t),De("close",t);break;case"iframe":case"object":case"embed":De("load",t);break;case"video":case"audio":for(l=0;l<vo.length;l++)De(vo[l],t);break;case"source":De("error",t);break;case"img":case"image":case"link":De("error",t),De("load",t);break;case"details":De("toggle",t);break;case"input":De("invalid",t),Zp(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":De("invalid",t);break;case"textarea":De("invalid",t),Pp(t,o.value,o.defaultValue,o.children)}l=o.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||o.suppressHydrationWarning===!0||Wy(t.textContent,l)?(o.popover!=null&&(De("beforetoggle",t),De("toggle",t)),o.onScroll!=null&&De("scroll",t),o.onScrollEnd!=null&&De("scrollend",t),o.onClick!=null&&(t.onclick=aa),t=!0):t=!1,t||Ha(e,!0)}function Lv(e){for(xt=e.return;xt;)switch(xt.tag){case 5:case 31:case 13:hn=!1;return;case 27:case 3:hn=!0;return;default:xt=xt.return}}function Cr(e){if(e!==xt)return!1;if(!ze)return Lv(e),ze=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Qf(e.type,e.memoizedProps)),l=!l),l&&Fe&&Ha(e),Lv(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Fe=o0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Fe=o0(e)}else t===27?(t=Fe,Wa(e.type)?(e=Xf,Xf=null,Fe=e):Fe=t):Fe=xt?pn(e.stateNode.nextSibling):null;return!0}function Al(){Fe=xt=null,ze=!1}function jd(){var e=Ua;return e!==null&&(Ut===null?Ut=e:Ut.push.apply(Ut,e),Ua=null),e}function $i(e){Ua===null?Ua=[e]:Ua.push(e)}var Ed=A(null),Dl=null,oa=null;function qa(e,t,l){ee(Ed,t._currentValue),t._currentValue=l}function sa(e){e._currentValue=Ed.current,Z(Ed)}function Nd(e,t,l){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===l)break;e=e.return}}function Cd(e,t,l,o){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var f=c.dependencies;if(f!==null){var x=c.child;f=f.firstContext;e:for(;f!==null;){var N=f;f=c;for(var M=0;M<t.length;M++)if(N.context===t[M]){f.lanes|=l,N=f.alternate,N!==null&&(N.lanes|=l),Nd(f.return,l,e),o||(x=null);break e}f=N.next}}else if(c.tag===18){if(x=c.return,x===null)throw Error(i(341));x.lanes|=l,f=x.alternate,f!==null&&(f.lanes|=l),Nd(x,l,e),x=null}else x=c.child;if(x!==null)x.return=c;else for(x=c;x!==null;){if(x===e){x=null;break}if(c=x.sibling,c!==null){c.return=x.return,x=c;break}x=x.return}c=x}}function Rr(e,t,l,o){e=null;for(var c=t,f=!1;c!==null;){if(!f){if((c.flags&524288)!==0)f=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var x=c.alternate;if(x===null)throw Error(i(387));if(x=x.memoizedProps,x!==null){var N=c.type;Ft(c.pendingProps.value,x.value)||(e!==null?e.push(N):e=[N])}}else if(c===ne.current){if(x=c.alternate,x===null)throw Error(i(387));x.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(wo):e=[wo])}c=c.return}e!==null&&Cd(t,e,l,o),t.flags|=262144}function Ns(e){for(e=e.firstContext;e!==null;){if(!Ft(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function kl(e){Dl=e,oa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function wt(e){return Uv(Dl,e)}function Cs(e,t){return Dl===null&&kl(e),Uv(e,t)}function Uv(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},oa===null){if(e===null)throw Error(i(308));oa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else oa=oa.next=t;return l}var pE=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},vE=n.unstable_scheduleCallback,gE=n.unstable_NormalPriority,ut={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Rd(){return{controller:new pE,data:new Map,refCount:0}}function Zi(e){e.refCount--,e.refCount===0&&vE(gE,function(){e.controller.abort()})}var Fi=null,_d=0,_r=0,Tr=null;function yE(e,t){if(Fi===null){var l=Fi=[];_d=0,_r=Df(),Tr={status:"pending",value:void 0,then:function(o){l.push(o)}}}return _d++,t.then(Hv,Hv),t}function Hv(){if(--_d===0&&Fi!==null){Tr!==null&&(Tr.status="fulfilled");var e=Fi;Fi=null,_r=0,Tr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function bE(e,t){var l=[],o={status:"pending",value:null,reason:null,then:function(c){l.push(c)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var c=0;c<l.length;c++)(0,l[c])(t)},function(c){for(o.status="rejected",o.reason=c,c=0;c<l.length;c++)(0,l[c])(void 0)}),o}var qv=U.S;U.S=function(e,t){Sy=Xt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&yE(e,t),qv!==null&&qv(e,t)};var Ol=A(null);function Td(){var e=Ol.current;return e!==null?e:Ze.pooledCache}function Rs(e,t){t===null?ee(Ol,Ol.current):ee(Ol,t.pool)}function Bv(){var e=Td();return e===null?null:{parent:ut._currentValue,pool:e}}var Mr=Error(i(460)),Md=Error(i(474)),_s=Error(i(542)),Ts={then:function(){}};function Qv(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Yv(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(aa,aa),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Vv(e),e;default:if(typeof t.status=="string")t.then(aa,aa);else{if(e=Ze,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=o}},function(o){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Vv(e),e}throw Ll=t,Mr}}function zl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Ll=l,Mr):l}}var Ll=null;function Gv(){if(Ll===null)throw Error(i(459));var e=Ll;return Ll=null,e}function Vv(e){if(e===Mr||e===_s)throw Error(i(483))}var Ar=null,Pi=0;function Ms(e){var t=Pi;return Pi+=1,Ar===null&&(Ar=[]),Yv(Ar,e,t)}function Ji(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function As(e,t){throw t.$$typeof===w?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Kv(e){function t(z,O){if(e){var B=z.deletions;B===null?(z.deletions=[O],z.flags|=16):B.push(O)}}function l(z,O){if(!e)return null;for(;O!==null;)t(z,O),O=O.sibling;return null}function o(z){for(var O=new Map;z!==null;)z.key!==null?O.set(z.key,z):O.set(z.index,z),z=z.sibling;return O}function c(z,O){return z=ra(z,O),z.index=0,z.sibling=null,z}function f(z,O,B){return z.index=B,e?(B=z.alternate,B!==null?(B=B.index,B<O?(z.flags|=67108866,O):B):(z.flags|=67108866,O)):(z.flags|=1048576,O)}function x(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function N(z,O,B,P){return O===null||O.tag!==6?(O=yd(B,z.mode,P),O.return=z,O):(O=c(O,B),O.return=z,O)}function M(z,O,B,P){var be=B.type;return be===S?F(z,O,B.props.children,P,B.key):O!==null&&(O.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===H&&zl(be)===O.type)?(O=c(O,B.props),Ji(O,B),O.return=z,O):(O=js(B.type,B.key,B.props,null,z.mode,P),Ji(O,B),O.return=z,O)}function Q(z,O,B,P){return O===null||O.tag!==4||O.stateNode.containerInfo!==B.containerInfo||O.stateNode.implementation!==B.implementation?(O=bd(B,z.mode,P),O.return=z,O):(O=c(O,B.children||[]),O.return=z,O)}function F(z,O,B,P,be){return O===null||O.tag!==7?(O=Ml(B,z.mode,P,be),O.return=z,O):(O=c(O,B),O.return=z,O)}function J(z,O,B){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=yd(""+O,z.mode,B),O.return=z,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case j:return B=js(O.type,O.key,O.props,null,z.mode,B),Ji(B,O),B.return=z,B;case E:return O=bd(O,z.mode,B),O.return=z,O;case H:return O=zl(O),J(z,O,B)}if(re(O)||de(O))return O=Ml(O,z.mode,B,null),O.return=z,O;if(typeof O.then=="function")return J(z,Ms(O),B);if(O.$$typeof===T)return J(z,Cs(z,O),B);As(z,O)}return null}function Y(z,O,B,P){var be=O!==null?O.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return be!==null?null:N(z,O,""+B,P);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case j:return B.key===be?M(z,O,B,P):null;case E:return B.key===be?Q(z,O,B,P):null;case H:return B=zl(B),Y(z,O,B,P)}if(re(B)||de(B))return be!==null?null:F(z,O,B,P,null);if(typeof B.then=="function")return Y(z,O,Ms(B),P);if(B.$$typeof===T)return Y(z,O,Cs(z,B),P);As(z,B)}return null}function K(z,O,B,P,be){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return z=z.get(B)||null,N(O,z,""+P,be);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case j:return z=z.get(P.key===null?B:P.key)||null,M(O,z,P,be);case E:return z=z.get(P.key===null?B:P.key)||null,Q(O,z,P,be);case H:return P=zl(P),K(z,O,B,P,be)}if(re(P)||de(P))return z=z.get(B)||null,F(O,z,P,be,null);if(typeof P.then=="function")return K(z,O,B,Ms(P),be);if(P.$$typeof===T)return K(z,O,B,Cs(O,P),be);As(O,P)}return null}function he(z,O,B,P){for(var be=null,He=null,ge=O,_e=O=0,Oe=null;ge!==null&&_e<B.length;_e++){ge.index>_e?(Oe=ge,ge=null):Oe=ge.sibling;var qe=Y(z,ge,B[_e],P);if(qe===null){ge===null&&(ge=Oe);break}e&&ge&&qe.alternate===null&&t(z,ge),O=f(qe,O,_e),He===null?be=qe:He.sibling=qe,He=qe,ge=Oe}if(_e===B.length)return l(z,ge),ze&&ia(z,_e),be;if(ge===null){for(;_e<B.length;_e++)ge=J(z,B[_e],P),ge!==null&&(O=f(ge,O,_e),He===null?be=ge:He.sibling=ge,He=ge);return ze&&ia(z,_e),be}for(ge=o(ge);_e<B.length;_e++)Oe=K(ge,z,_e,B[_e],P),Oe!==null&&(e&&Oe.alternate!==null&&ge.delete(Oe.key===null?_e:Oe.key),O=f(Oe,O,_e),He===null?be=Oe:He.sibling=Oe,He=Oe);return e&&ge.forEach(function(al){return t(z,al)}),ze&&ia(z,_e),be}function Se(z,O,B,P){if(B==null)throw Error(i(151));for(var be=null,He=null,ge=O,_e=O=0,Oe=null,qe=B.next();ge!==null&&!qe.done;_e++,qe=B.next()){ge.index>_e?(Oe=ge,ge=null):Oe=ge.sibling;var al=Y(z,ge,qe.value,P);if(al===null){ge===null&&(ge=Oe);break}e&&ge&&al.alternate===null&&t(z,ge),O=f(al,O,_e),He===null?be=al:He.sibling=al,He=al,ge=Oe}if(qe.done)return l(z,ge),ze&&ia(z,_e),be;if(ge===null){for(;!qe.done;_e++,qe=B.next())qe=J(z,qe.value,P),qe!==null&&(O=f(qe,O,_e),He===null?be=qe:He.sibling=qe,He=qe);return ze&&ia(z,_e),be}for(ge=o(ge);!qe.done;_e++,qe=B.next())qe=K(ge,z,_e,qe.value,P),qe!==null&&(e&&qe.alternate!==null&&ge.delete(qe.key===null?_e:qe.key),O=f(qe,O,_e),He===null?be=qe:He.sibling=qe,He=qe);return e&&ge.forEach(function(MN){return t(z,MN)}),ze&&ia(z,_e),be}function $e(z,O,B,P){if(typeof B=="object"&&B!==null&&B.type===S&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case j:e:{for(var be=B.key;O!==null;){if(O.key===be){if(be=B.type,be===S){if(O.tag===7){l(z,O.sibling),P=c(O,B.props.children),P.return=z,z=P;break e}}else if(O.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===H&&zl(be)===O.type){l(z,O.sibling),P=c(O,B.props),Ji(P,B),P.return=z,z=P;break e}l(z,O);break}else t(z,O);O=O.sibling}B.type===S?(P=Ml(B.props.children,z.mode,P,B.key),P.return=z,z=P):(P=js(B.type,B.key,B.props,null,z.mode,P),Ji(P,B),P.return=z,z=P)}return x(z);case E:e:{for(be=B.key;O!==null;){if(O.key===be)if(O.tag===4&&O.stateNode.containerInfo===B.containerInfo&&O.stateNode.implementation===B.implementation){l(z,O.sibling),P=c(O,B.children||[]),P.return=z,z=P;break e}else{l(z,O);break}else t(z,O);O=O.sibling}P=bd(B,z.mode,P),P.return=z,z=P}return x(z);case H:return B=zl(B),$e(z,O,B,P)}if(re(B))return he(z,O,B,P);if(de(B)){if(be=de(B),typeof be!="function")throw Error(i(150));return B=be.call(B),Se(z,O,B,P)}if(typeof B.then=="function")return $e(z,O,Ms(B),P);if(B.$$typeof===T)return $e(z,O,Cs(z,B),P);As(z,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,O!==null&&O.tag===6?(l(z,O.sibling),P=c(O,B),P.return=z,z=P):(l(z,O),P=yd(B,z.mode,P),P.return=z,z=P),x(z)):l(z,O)}return function(z,O,B,P){try{Pi=0;var be=$e(z,O,B,P);return Ar=null,be}catch(ge){if(ge===Mr||ge===_s)throw ge;var He=Pt(29,ge,null,z.mode);return He.lanes=P,He.return=z,He}finally{}}}var Ul=Kv(!0),Xv=Kv(!1),Ba=!1;function Ad(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Dd(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Qa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ya(e,t,l){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(Be&2)!==0){var c=o.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),o.pending=t,t=Ss(e),Tv(e,null,l),t}return ws(e,o,t,l),Ss(e)}function Wi(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,l|=o,t.lanes=l,Up(e,l)}}function kd(e,t){var l=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,l===o)){var c=null,f=null;if(l=l.firstBaseUpdate,l!==null){do{var x={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};f===null?c=f=x:f=f.next=x,l=l.next}while(l!==null);f===null?c=f=t:f=f.next=t}else c=f=t;l={baseState:o.baseState,firstBaseUpdate:c,lastBaseUpdate:f,shared:o.shared,callbacks:o.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Od=!1;function Ii(){if(Od){var e=Tr;if(e!==null)throw e}}function eo(e,t,l,o){Od=!1;var c=e.updateQueue;Ba=!1;var f=c.firstBaseUpdate,x=c.lastBaseUpdate,N=c.shared.pending;if(N!==null){c.shared.pending=null;var M=N,Q=M.next;M.next=null,x===null?f=Q:x.next=Q,x=M;var F=e.alternate;F!==null&&(F=F.updateQueue,N=F.lastBaseUpdate,N!==x&&(N===null?F.firstBaseUpdate=Q:N.next=Q,F.lastBaseUpdate=M))}if(f!==null){var J=c.baseState;x=0,F=Q=M=null,N=f;do{var Y=N.lane&-536870913,K=Y!==N.lane;if(K?(ke&Y)===Y:(o&Y)===Y){Y!==0&&Y===_r&&(Od=!0),F!==null&&(F=F.next={lane:0,tag:N.tag,payload:N.payload,callback:null,next:null});e:{var he=e,Se=N;Y=t;var $e=l;switch(Se.tag){case 1:if(he=Se.payload,typeof he=="function"){J=he.call($e,J,Y);break e}J=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=Se.payload,Y=typeof he=="function"?he.call($e,J,Y):he,Y==null)break e;J=b({},J,Y);break e;case 2:Ba=!0}}Y=N.callback,Y!==null&&(e.flags|=64,K&&(e.flags|=8192),K=c.callbacks,K===null?c.callbacks=[Y]:K.push(Y))}else K={lane:Y,tag:N.tag,payload:N.payload,callback:N.callback,next:null},F===null?(Q=F=K,M=J):F=F.next=K,x|=Y;if(N=N.next,N===null){if(N=c.shared.pending,N===null)break;K=N,N=K.next,K.next=null,c.lastBaseUpdate=K,c.shared.pending=null}}while(!0);F===null&&(M=J),c.baseState=M,c.firstBaseUpdate=Q,c.lastBaseUpdate=F,f===null&&(c.shared.lanes=0),$a|=x,e.lanes=x,e.memoizedState=J}}function $v(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function Zv(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)$v(l[e],t)}var Dr=A(null),Ds=A(0);function Fv(e,t){e=ga,ee(Ds,e),ee(Dr,t),ga=e|t.baseLanes}function zd(){ee(Ds,ga),ee(Dr,Dr.current)}function Ld(){ga=Ds.current,Z(Dr),Z(Ds)}var Jt=A(null),mn=null;function Ga(e){var t=e.alternate;ee(it,it.current&1),ee(Jt,e),mn===null&&(t===null||Dr.current!==null||t.memoizedState!==null)&&(mn=e)}function Ud(e){ee(it,it.current),ee(Jt,e),mn===null&&(mn=e)}function Pv(e){e.tag===22?(ee(it,it.current),ee(Jt,e),mn===null&&(mn=e)):Va()}function Va(){ee(it,it.current),ee(Jt,Jt.current)}function Wt(e){Z(Jt),mn===e&&(mn=null),Z(it)}var it=A(0);function ks(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Vf(l)||Kf(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ua=0,Re=null,Ke=null,ct=null,Os=!1,kr=!1,Hl=!1,zs=0,to=0,Or=null,xE=0;function tt(){throw Error(i(321))}function Hd(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Ft(e[l],t[l]))return!1;return!0}function qd(e,t,l,o,c,f){return ua=f,Re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?kg:ef,Hl=!1,f=l(o,c),Hl=!1,kr&&(f=Wv(t,l,o,c)),Jv(e),f}function Jv(e){U.H=lo;var t=Ke!==null&&Ke.next!==null;if(ua=0,ct=Ke=Re=null,Os=!1,to=0,Or=null,t)throw Error(i(300));e===null||dt||(e=e.dependencies,e!==null&&Ns(e)&&(dt=!0))}function Wv(e,t,l,o){Re=e;var c=0;do{if(kr&&(Or=null),to=0,kr=!1,25<=c)throw Error(i(301));if(c+=1,ct=Ke=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}U.H=Og,f=t(l,o)}while(kr);return f}function wE(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?no(t):t,e=e.useState()[0],(Ke!==null?Ke.memoizedState:null)!==e&&(Re.flags|=1024),t}function Bd(){var e=zs!==0;return zs=0,e}function Qd(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Yd(e){if(Os){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Os=!1}ua=0,ct=Ke=Re=null,kr=!1,to=zs=0,Or=null}function _t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ct===null?Re.memoizedState=ct=e:ct=ct.next=e,ct}function ot(){if(Ke===null){var e=Re.alternate;e=e!==null?e.memoizedState:null}else e=Ke.next;var t=ct===null?Re.memoizedState:ct.next;if(t!==null)ct=t,Ke=e;else{if(e===null)throw Re.alternate===null?Error(i(467)):Error(i(310));Ke=e,e={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},ct===null?Re.memoizedState=ct=e:ct=ct.next=e}return ct}function Ls(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function no(e){var t=to;return to+=1,Or===null&&(Or=[]),e=Yv(Or,e,t),t=Re,(ct===null?t.memoizedState:ct.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?kg:ef),e}function Us(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return no(e);if(e.$$typeof===T)return wt(e)}throw Error(i(438,String(e)))}function Gd(e){var t=null,l=Re.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var o=Re.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Ls(),Re.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),o=0;o<e;o++)l[o]=te;return t.index++,l}function ca(e,t){return typeof t=="function"?t(e):t}function Hs(e){var t=ot();return Vd(t,Ke,e)}function Vd(e,t,l){var o=e.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=l;var c=e.baseQueue,f=o.pending;if(f!==null){if(c!==null){var x=c.next;c.next=f.next,f.next=x}t.baseQueue=c=f,o.pending=null}if(f=e.baseState,c===null)e.memoizedState=f;else{t=c.next;var N=x=null,M=null,Q=t,F=!1;do{var J=Q.lane&-536870913;if(J!==Q.lane?(ke&J)===J:(ua&J)===J){var Y=Q.revertLane;if(Y===0)M!==null&&(M=M.next={lane:0,revertLane:0,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null}),J===_r&&(F=!0);else if((ua&Y)===Y){Q=Q.next,Y===_r&&(F=!0);continue}else J={lane:0,revertLane:Q.revertLane,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},M===null?(N=M=J,x=f):M=M.next=J,Re.lanes|=Y,$a|=Y;J=Q.action,Hl&&l(f,J),f=Q.hasEagerState?Q.eagerState:l(f,J)}else Y={lane:J,revertLane:Q.revertLane,gesture:Q.gesture,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},M===null?(N=M=Y,x=f):M=M.next=Y,Re.lanes|=J,$a|=J;Q=Q.next}while(Q!==null&&Q!==t);if(M===null?x=f:M.next=N,!Ft(f,e.memoizedState)&&(dt=!0,F&&(l=Tr,l!==null)))throw l;e.memoizedState=f,e.baseState=x,e.baseQueue=M,o.lastRenderedState=f}return c===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Kd(e){var t=ot(),l=t.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=e;var o=l.dispatch,c=l.pending,f=t.memoizedState;if(c!==null){l.pending=null;var x=c=c.next;do f=e(f,x.action),x=x.next;while(x!==c);Ft(f,t.memoizedState)||(dt=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),l.lastRenderedState=f}return[f,o]}function Iv(e,t,l){var o=Re,c=ot(),f=ze;if(f){if(l===void 0)throw Error(i(407));l=l()}else l=t();var x=!Ft((Ke||c).memoizedState,l);if(x&&(c.memoizedState=l,dt=!0),c=c.queue,Zd(ng.bind(null,o,c,e),[e]),c.getSnapshot!==t||x||ct!==null&&ct.memoizedState.tag&1){if(o.flags|=2048,zr(9,{destroy:void 0},tg.bind(null,o,c,l,t),null),Ze===null)throw Error(i(349));f||(ua&127)!==0||eg(o,t,l)}return l}function eg(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=Re.updateQueue,t===null?(t=Ls(),Re.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function tg(e,t,l,o){t.value=l,t.getSnapshot=o,ag(t)&&lg(e)}function ng(e,t,l){return l(function(){ag(t)&&lg(e)})}function ag(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Ft(e,l)}catch{return!0}}function lg(e){var t=Tl(e,2);t!==null&&Ht(t,e,2)}function Xd(e){var t=_t();if(typeof e=="function"){var l=e;if(e=l(),Hl){ka(!0);try{l()}finally{ka(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:e},t}function rg(e,t,l,o){return e.baseState=l,Vd(e,Ke,typeof o=="function"?o:ca)}function SE(e,t,l,o,c){if(Qs(e))throw Error(i(485));if(e=t.action,e!==null){var f={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){f.listeners.push(x)}};U.T!==null?l(!0):f.isTransition=!1,o(f),l=t.pending,l===null?(f.next=t.pending=f,ig(t,f)):(f.next=l.next,t.pending=l.next=f)}}function ig(e,t){var l=t.action,o=t.payload,c=e.state;if(t.isTransition){var f=U.T,x={};U.T=x;try{var N=l(c,o),M=U.S;M!==null&&M(x,N),og(e,t,N)}catch(Q){$d(e,t,Q)}finally{f!==null&&x.types!==null&&(f.types=x.types),U.T=f}}else try{f=l(c,o),og(e,t,f)}catch(Q){$d(e,t,Q)}}function og(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(o){sg(e,t,o)},function(o){return $d(e,t,o)}):sg(e,t,l)}function sg(e,t,l){t.status="fulfilled",t.value=l,ug(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,ig(e,l)))}function $d(e,t,l){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=l,ug(t),t=t.next;while(t!==o)}e.action=null}function ug(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function cg(e,t){return t}function dg(e,t){if(ze){var l=Ze.formState;if(l!==null){e:{var o=Re;if(ze){if(Fe){t:{for(var c=Fe,f=hn;c.nodeType!==8;){if(!f){c=null;break t}if(c=pn(c.nextSibling),c===null){c=null;break t}}f=c.data,c=f==="F!"||f==="F"?c:null}if(c){Fe=pn(c.nextSibling),o=c.data==="F!";break e}}Ha(o)}o=!1}o&&(t=l[0])}}return l=_t(),l.memoizedState=l.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cg,lastRenderedState:t},l.queue=o,l=Mg.bind(null,Re,o),o.dispatch=l,o=Xd(!1),f=Id.bind(null,Re,!1,o.queue),o=_t(),c={state:t,dispatch:null,action:e,pending:null},o.queue=c,l=SE.bind(null,Re,c,f,l),c.dispatch=l,o.memoizedState=e,[t,l,!1]}function fg(e){var t=ot();return hg(t,Ke,e)}function hg(e,t,l){if(t=Vd(e,t,cg)[0],e=Hs(ca)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var o=no(t)}catch(x){throw x===Mr?_s:x}else o=t;t=ot();var c=t.queue,f=c.dispatch;return l!==t.memoizedState&&(Re.flags|=2048,zr(9,{destroy:void 0},jE.bind(null,c,l),null)),[o,f,e]}function jE(e,t){e.action=t}function mg(e){var t=ot(),l=Ke;if(l!==null)return hg(t,l,e);ot(),t=t.memoizedState,l=ot();var o=l.queue.dispatch;return l.memoizedState=e,[t,o,!1]}function zr(e,t,l,o){return e={tag:e,create:l,deps:o,inst:t,next:null},t=Re.updateQueue,t===null&&(t=Ls(),Re.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(o=l.next,l.next=e,e.next=o,t.lastEffect=e),e}function pg(){return ot().memoizedState}function qs(e,t,l,o){var c=_t();Re.flags|=e,c.memoizedState=zr(1|t,{destroy:void 0},l,o===void 0?null:o)}function Bs(e,t,l,o){var c=ot();o=o===void 0?null:o;var f=c.memoizedState.inst;Ke!==null&&o!==null&&Hd(o,Ke.memoizedState.deps)?c.memoizedState=zr(t,f,l,o):(Re.flags|=e,c.memoizedState=zr(1|t,f,l,o))}function vg(e,t){qs(8390656,8,e,t)}function Zd(e,t){Bs(2048,8,e,t)}function EE(e){Re.flags|=4;var t=Re.updateQueue;if(t===null)t=Ls(),Re.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function gg(e){var t=ot().memoizedState;return EE({ref:t,nextImpl:e}),function(){if((Be&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function yg(e,t){return Bs(4,2,e,t)}function bg(e,t){return Bs(4,4,e,t)}function xg(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function wg(e,t,l){l=l!=null?l.concat([e]):null,Bs(4,4,xg.bind(null,t,e),l)}function Fd(){}function Sg(e,t){var l=ot();t=t===void 0?null:t;var o=l.memoizedState;return t!==null&&Hd(t,o[1])?o[0]:(l.memoizedState=[e,t],e)}function jg(e,t){var l=ot();t=t===void 0?null:t;var o=l.memoizedState;if(t!==null&&Hd(t,o[1]))return o[0];if(o=e(),Hl){ka(!0);try{e()}finally{ka(!1)}}return l.memoizedState=[o,t],o}function Pd(e,t,l){return l===void 0||(ua&1073741824)!==0&&(ke&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Ey(),Re.lanes|=e,$a|=e,l)}function Eg(e,t,l,o){return Ft(l,t)?l:Dr.current!==null?(e=Pd(e,l,o),Ft(e,t)||(dt=!0),e):(ua&42)===0||(ua&1073741824)!==0&&(ke&261930)===0?(dt=!0,e.memoizedState=l):(e=Ey(),Re.lanes|=e,$a|=e,t)}function Ng(e,t,l,o,c){var f=W.p;W.p=f!==0&&8>f?f:8;var x=U.T,N={};U.T=N,Id(e,!1,t,l);try{var M=c(),Q=U.S;if(Q!==null&&Q(N,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var F=bE(M,o);ao(e,t,F,tn(e))}else ao(e,t,o,tn(e))}catch(J){ao(e,t,{then:function(){},status:"rejected",reason:J},tn())}finally{W.p=f,x!==null&&N.types!==null&&(x.types=N.types),U.T=x}}function NE(){}function Jd(e,t,l,o){if(e.tag!==5)throw Error(i(476));var c=Cg(e).queue;Ng(e,c,t,V,l===null?NE:function(){return Rg(e),l(o)})}function Cg(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:V},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Rg(e){var t=Cg(e);t.next===null&&(t=e.alternate.memoizedState),ao(e,t.next.queue,{},tn())}function Wd(){return wt(wo)}function _g(){return ot().memoizedState}function Tg(){return ot().memoizedState}function CE(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=tn();e=Qa(l);var o=Ya(t,e,l);o!==null&&(Ht(o,t,l),Wi(o,t,l)),t={cache:Rd()},e.payload=t;return}t=t.return}}function RE(e,t,l){var o=tn();l={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Qs(e)?Ag(t,l):(l=vd(e,t,l,o),l!==null&&(Ht(l,e,o),Dg(l,t,o)))}function Mg(e,t,l){var o=tn();ao(e,t,l,o)}function ao(e,t,l,o){var c={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Qs(e))Ag(t,c);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var x=t.lastRenderedState,N=f(x,l);if(c.hasEagerState=!0,c.eagerState=N,Ft(N,x))return ws(e,t,c,0),Ze===null&&xs(),!1}catch{}finally{}if(l=vd(e,t,c,o),l!==null)return Ht(l,e,o),Dg(l,t,o),!0}return!1}function Id(e,t,l,o){if(o={lane:2,revertLane:Df(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Qs(e)){if(t)throw Error(i(479))}else t=vd(e,l,o,2),t!==null&&Ht(t,e,2)}function Qs(e){var t=e.alternate;return e===Re||t!==null&&t===Re}function Ag(e,t){kr=Os=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Dg(e,t,l){if((l&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,l|=o,t.lanes=l,Up(e,l)}}var lo={readContext:wt,use:Us,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useLayoutEffect:tt,useInsertionEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useSyncExternalStore:tt,useId:tt,useHostTransitionStatus:tt,useFormState:tt,useActionState:tt,useOptimistic:tt,useMemoCache:tt,useCacheRefresh:tt};lo.useEffectEvent=tt;var kg={readContext:wt,use:Us,useCallback:function(e,t){return _t().memoizedState=[e,t===void 0?null:t],e},useContext:wt,useEffect:vg,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,qs(4194308,4,xg.bind(null,t,e),l)},useLayoutEffect:function(e,t){return qs(4194308,4,e,t)},useInsertionEffect:function(e,t){qs(4,2,e,t)},useMemo:function(e,t){var l=_t();t=t===void 0?null:t;var o=e();if(Hl){ka(!0);try{e()}finally{ka(!1)}}return l.memoizedState=[o,t],o},useReducer:function(e,t,l){var o=_t();if(l!==void 0){var c=l(t);if(Hl){ka(!0);try{l(t)}finally{ka(!1)}}}else c=t;return o.memoizedState=o.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},o.queue=e,e=e.dispatch=RE.bind(null,Re,e),[o.memoizedState,e]},useRef:function(e){var t=_t();return e={current:e},t.memoizedState=e},useState:function(e){e=Xd(e);var t=e.queue,l=Mg.bind(null,Re,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Fd,useDeferredValue:function(e,t){var l=_t();return Pd(l,e,t)},useTransition:function(){var e=Xd(!1);return e=Ng.bind(null,Re,e.queue,!0,!1),_t().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var o=Re,c=_t();if(ze){if(l===void 0)throw Error(i(407));l=l()}else{if(l=t(),Ze===null)throw Error(i(349));(ke&127)!==0||eg(o,t,l)}c.memoizedState=l;var f={value:l,getSnapshot:t};return c.queue=f,vg(ng.bind(null,o,f,e),[e]),o.flags|=2048,zr(9,{destroy:void 0},tg.bind(null,o,f,l,t),null),l},useId:function(){var e=_t(),t=Ze.identifierPrefix;if(ze){var l=Bn,o=qn;l=(o&~(1<<32-Zt(o)-1)).toString(32)+l,t="_"+t+"R_"+l,l=zs++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=xE++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Wd,useFormState:dg,useActionState:dg,useOptimistic:function(e){var t=_t();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Id.bind(null,Re,!0,l),l.dispatch=t,[e,t]},useMemoCache:Gd,useCacheRefresh:function(){return _t().memoizedState=CE.bind(null,Re)},useEffectEvent:function(e){var t=_t(),l={impl:e};return t.memoizedState=l,function(){if((Be&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}},ef={readContext:wt,use:Us,useCallback:Sg,useContext:wt,useEffect:Zd,useImperativeHandle:wg,useInsertionEffect:yg,useLayoutEffect:bg,useMemo:jg,useReducer:Hs,useRef:pg,useState:function(){return Hs(ca)},useDebugValue:Fd,useDeferredValue:function(e,t){var l=ot();return Eg(l,Ke.memoizedState,e,t)},useTransition:function(){var e=Hs(ca)[0],t=ot().memoizedState;return[typeof e=="boolean"?e:no(e),t]},useSyncExternalStore:Iv,useId:_g,useHostTransitionStatus:Wd,useFormState:fg,useActionState:fg,useOptimistic:function(e,t){var l=ot();return rg(l,Ke,e,t)},useMemoCache:Gd,useCacheRefresh:Tg};ef.useEffectEvent=gg;var Og={readContext:wt,use:Us,useCallback:Sg,useContext:wt,useEffect:Zd,useImperativeHandle:wg,useInsertionEffect:yg,useLayoutEffect:bg,useMemo:jg,useReducer:Kd,useRef:pg,useState:function(){return Kd(ca)},useDebugValue:Fd,useDeferredValue:function(e,t){var l=ot();return Ke===null?Pd(l,e,t):Eg(l,Ke.memoizedState,e,t)},useTransition:function(){var e=Kd(ca)[0],t=ot().memoizedState;return[typeof e=="boolean"?e:no(e),t]},useSyncExternalStore:Iv,useId:_g,useHostTransitionStatus:Wd,useFormState:mg,useActionState:mg,useOptimistic:function(e,t){var l=ot();return Ke!==null?rg(l,Ke,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Gd,useCacheRefresh:Tg};Og.useEffectEvent=gg;function tf(e,t,l,o){t=e.memoizedState,l=l(o,t),l=l==null?t:b({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var nf={enqueueSetState:function(e,t,l){e=e._reactInternals;var o=tn(),c=Qa(o);c.payload=t,l!=null&&(c.callback=l),t=Ya(e,c,o),t!==null&&(Ht(t,e,o),Wi(t,e,o))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var o=tn(),c=Qa(o);c.tag=1,c.payload=t,l!=null&&(c.callback=l),t=Ya(e,c,o),t!==null&&(Ht(t,e,o),Wi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=tn(),o=Qa(l);o.tag=2,t!=null&&(o.callback=t),t=Ya(e,o,l),t!==null&&(Ht(t,e,l),Wi(t,e,l))}};function zg(e,t,l,o,c,f,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,f,x):t.prototype&&t.prototype.isPureReactComponent?!Vi(l,o)||!Vi(c,f):!0}function Lg(e,t,l,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,o),t.state!==e&&nf.enqueueReplaceState(t,t.state,null)}function ql(e,t){var l=t;if("ref"in t){l={};for(var o in t)o!=="ref"&&(l[o]=t[o])}if(e=e.defaultProps){l===t&&(l=b({},l));for(var c in e)l[c]===void 0&&(l[c]=e[c])}return l}function Ug(e){bs(e)}function Hg(e){console.error(e)}function qg(e){bs(e)}function Ys(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function Bg(e,t,l){try{var o=e.onCaughtError;o(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function af(e,t,l){return l=Qa(l),l.tag=3,l.payload={element:null},l.callback=function(){Ys(e,t)},l}function Qg(e){return e=Qa(e),e.tag=3,e}function Yg(e,t,l,o){var c=l.type.getDerivedStateFromError;if(typeof c=="function"){var f=o.value;e.payload=function(){return c(f)},e.callback=function(){Bg(t,l,o)}}var x=l.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){Bg(t,l,o),typeof c!="function"&&(Za===null?Za=new Set([this]):Za.add(this));var N=o.stack;this.componentDidCatch(o.value,{componentStack:N!==null?N:""})})}function _E(e,t,l,o,c){if(l.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=l.alternate,t!==null&&Rr(t,l,c,!0),l=Jt.current,l!==null){switch(l.tag){case 31:case 13:return mn===null?eu():l.alternate===null&&nt===0&&(nt=3),l.flags&=-257,l.flags|=65536,l.lanes=c,o===Ts?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([o]):t.add(o),Tf(e,o,c)),!1;case 22:return l.flags|=65536,o===Ts?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([o]):l.add(o)),Tf(e,o,c)),!1}throw Error(i(435,l.tag))}return Tf(e,o,c),eu(),!1}if(ze)return t=Jt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,o!==Sd&&(e=Error(i(422),{cause:o}),$i(cn(e,l)))):(o!==Sd&&(t=Error(i(423),{cause:o}),$i(cn(t,l))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,o=cn(o,l),c=af(e.stateNode,o,c),kd(e,c),nt!==4&&(nt=2)),!1;var f=Error(i(520),{cause:o});if(f=cn(f,l),ho===null?ho=[f]:ho.push(f),nt!==4&&(nt=2),t===null)return!0;o=cn(o,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=c&-c,l.lanes|=e,e=af(l.stateNode,o,e),kd(l,e),!1;case 1:if(t=l.type,f=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Za===null||!Za.has(f))))return l.flags|=65536,c&=-c,l.lanes|=c,c=Qg(c),Yg(c,e,l,o),kd(l,c),!1}l=l.return}while(l!==null);return!1}var lf=Error(i(461)),dt=!1;function St(e,t,l,o){t.child=e===null?Xv(t,null,l,o):Ul(t,e.child,l,o)}function Gg(e,t,l,o,c){l=l.render;var f=t.ref;if("ref"in o){var x={};for(var N in o)N!=="ref"&&(x[N]=o[N])}else x=o;return kl(t),o=qd(e,t,l,x,f,c),N=Bd(),e!==null&&!dt?(Qd(e,t,c),da(e,t,c)):(ze&&N&&xd(t),t.flags|=1,St(e,t,o,c),t.child)}function Vg(e,t,l,o,c){if(e===null){var f=l.type;return typeof f=="function"&&!gd(f)&&f.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=f,Kg(e,t,f,o,c)):(e=js(l.type,null,o,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!hf(e,c)){var x=f.memoizedProps;if(l=l.compare,l=l!==null?l:Vi,l(x,o)&&e.ref===t.ref)return da(e,t,c)}return t.flags|=1,e=ra(f,o),e.ref=t.ref,e.return=t,t.child=e}function Kg(e,t,l,o,c){if(e!==null){var f=e.memoizedProps;if(Vi(f,o)&&e.ref===t.ref)if(dt=!1,t.pendingProps=o=f,hf(e,c))(e.flags&131072)!==0&&(dt=!0);else return t.lanes=e.lanes,da(e,t,c)}return rf(e,t,l,o,c)}function Xg(e,t,l,o){var c=o.children,f=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(f=f!==null?f.baseLanes|l:l,e!==null){for(o=t.child=e.child,c=0;o!==null;)c=c|o.lanes|o.childLanes,o=o.sibling;o=c&~f}else o=0,t.child=null;return $g(e,t,f,l,o)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Rs(t,f!==null?f.cachePool:null),f!==null?Fv(t,f):zd(),Pv(t);else return o=t.lanes=536870912,$g(e,t,f!==null?f.baseLanes|l:l,l,o)}else f!==null?(Rs(t,f.cachePool),Fv(t,f),Va(),t.memoizedState=null):(e!==null&&Rs(t,null),zd(),Va());return St(e,t,c,l),t.child}function ro(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function $g(e,t,l,o,c){var f=Td();return f=f===null?null:{parent:ut._currentValue,pool:f},t.memoizedState={baseLanes:l,cachePool:f},e!==null&&Rs(t,null),zd(),Pv(t),e!==null&&Rr(e,t,o,!0),t.childLanes=c,null}function Gs(e,t){return t=Ks({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Zg(e,t,l){return Ul(t,e.child,null,l),e=Gs(t,t.pendingProps),e.flags|=2,Wt(t),t.memoizedState=null,e}function TE(e,t,l){var o=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ze){if(o.mode==="hidden")return e=Gs(t,o),t.lanes=536870912,ro(null,e);if(Ud(t),(e=Fe)?(e=i0(e,hn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:La!==null?{id:qn,overflow:Bn}:null,retryLane:536870912,hydrationErrors:null},l=Av(e),l.return=t,t.child=l,xt=t,Fe=null)):e=null,e===null)throw Ha(t);return t.lanes=536870912,null}return Gs(t,o)}var f=e.memoizedState;if(f!==null){var x=f.dehydrated;if(Ud(t),c)if(t.flags&256)t.flags&=-257,t=Zg(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(dt||Rr(e,t,l,!1),c=(l&e.childLanes)!==0,dt||c){if(o=Ze,o!==null&&(x=Hp(o,l),x!==0&&x!==f.retryLane))throw f.retryLane=x,Tl(e,x),Ht(o,e,x),lf;eu(),t=Zg(e,t,l)}else e=f.treeContext,Fe=pn(x.nextSibling),xt=t,ze=!0,Ua=null,hn=!1,e!==null&&Ov(t,e),t=Gs(t,o),t.flags|=4096;return t}return e=ra(e.child,{mode:o.mode,children:o.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Vs(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(i(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function rf(e,t,l,o,c){return kl(t),l=qd(e,t,l,o,void 0,c),o=Bd(),e!==null&&!dt?(Qd(e,t,c),da(e,t,c)):(ze&&o&&xd(t),t.flags|=1,St(e,t,l,c),t.child)}function Fg(e,t,l,o,c,f){return kl(t),t.updateQueue=null,l=Wv(t,o,l,c),Jv(e),o=Bd(),e!==null&&!dt?(Qd(e,t,f),da(e,t,f)):(ze&&o&&xd(t),t.flags|=1,St(e,t,l,f),t.child)}function Pg(e,t,l,o,c){if(kl(t),t.stateNode===null){var f=jr,x=l.contextType;typeof x=="object"&&x!==null&&(f=wt(x)),f=new l(o,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=nf,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=o,f.state=t.memoizedState,f.refs={},Ad(t),x=l.contextType,f.context=typeof x=="object"&&x!==null?wt(x):jr,f.state=t.memoizedState,x=l.getDerivedStateFromProps,typeof x=="function"&&(tf(t,l,x,o),f.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(x=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),x!==f.state&&nf.enqueueReplaceState(f,f.state,null),eo(t,o,f,c),Ii(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),o=!0}else if(e===null){f=t.stateNode;var N=t.memoizedProps,M=ql(l,N);f.props=M;var Q=f.context,F=l.contextType;x=jr,typeof F=="object"&&F!==null&&(x=wt(F));var J=l.getDerivedStateFromProps;F=typeof J=="function"||typeof f.getSnapshotBeforeUpdate=="function",N=t.pendingProps!==N,F||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(N||Q!==x)&&Lg(t,f,o,x),Ba=!1;var Y=t.memoizedState;f.state=Y,eo(t,o,f,c),Ii(),Q=t.memoizedState,N||Y!==Q||Ba?(typeof J=="function"&&(tf(t,l,J,o),Q=t.memoizedState),(M=Ba||zg(t,l,M,o,Y,Q,x))?(F||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=Q),f.props=o,f.state=Q,f.context=x,o=M):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{f=t.stateNode,Dd(e,t),x=t.memoizedProps,F=ql(l,x),f.props=F,J=t.pendingProps,Y=f.context,Q=l.contextType,M=jr,typeof Q=="object"&&Q!==null&&(M=wt(Q)),N=l.getDerivedStateFromProps,(Q=typeof N=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(x!==J||Y!==M)&&Lg(t,f,o,M),Ba=!1,Y=t.memoizedState,f.state=Y,eo(t,o,f,c),Ii();var K=t.memoizedState;x!==J||Y!==K||Ba||e!==null&&e.dependencies!==null&&Ns(e.dependencies)?(typeof N=="function"&&(tf(t,l,N,o),K=t.memoizedState),(F=Ba||zg(t,l,F,o,Y,K,M)||e!==null&&e.dependencies!==null&&Ns(e.dependencies))?(Q||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(o,K,M),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(o,K,M)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||x===e.memoizedProps&&Y===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&Y===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=K),f.props=o,f.state=K,f.context=M,o=F):(typeof f.componentDidUpdate!="function"||x===e.memoizedProps&&Y===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&Y===e.memoizedState||(t.flags|=1024),o=!1)}return f=o,Vs(e,t),o=(t.flags&128)!==0,f||o?(f=t.stateNode,l=o&&typeof l.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&o?(t.child=Ul(t,e.child,null,c),t.child=Ul(t,null,l,c)):St(e,t,l,c),t.memoizedState=f.state,e=t.child):e=da(e,t,c),e}function Jg(e,t,l,o){return Al(),t.flags|=256,St(e,t,l,o),t.child}var of={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function sf(e){return{baseLanes:e,cachePool:Bv()}}function uf(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=en),e}function Wg(e,t,l){var o=t.pendingProps,c=!1,f=(t.flags&128)!==0,x;if((x=f)||(x=e!==null&&e.memoizedState===null?!1:(it.current&2)!==0),x&&(c=!0,t.flags&=-129),x=(t.flags&32)!==0,t.flags&=-33,e===null){if(ze){if(c?Ga(t):Va(),(e=Fe)?(e=i0(e,hn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:La!==null?{id:qn,overflow:Bn}:null,retryLane:536870912,hydrationErrors:null},l=Av(e),l.return=t,t.child=l,xt=t,Fe=null)):e=null,e===null)throw Ha(t);return Kf(e)?t.lanes=32:t.lanes=536870912,null}var N=o.children;return o=o.fallback,c?(Va(),c=t.mode,N=Ks({mode:"hidden",children:N},c),o=Ml(o,c,l,null),N.return=t,o.return=t,N.sibling=o,t.child=N,o=t.child,o.memoizedState=sf(l),o.childLanes=uf(e,x,l),t.memoizedState=of,ro(null,o)):(Ga(t),cf(t,N))}var M=e.memoizedState;if(M!==null&&(N=M.dehydrated,N!==null)){if(f)t.flags&256?(Ga(t),t.flags&=-257,t=df(e,t,l)):t.memoizedState!==null?(Va(),t.child=e.child,t.flags|=128,t=null):(Va(),N=o.fallback,c=t.mode,o=Ks({mode:"visible",children:o.children},c),N=Ml(N,c,l,null),N.flags|=2,o.return=t,N.return=t,o.sibling=N,t.child=o,Ul(t,e.child,null,l),o=t.child,o.memoizedState=sf(l),o.childLanes=uf(e,x,l),t.memoizedState=of,t=ro(null,o));else if(Ga(t),Kf(N)){if(x=N.nextSibling&&N.nextSibling.dataset,x)var Q=x.dgst;x=Q,o=Error(i(419)),o.stack="",o.digest=x,$i({value:o,source:null,stack:null}),t=df(e,t,l)}else if(dt||Rr(e,t,l,!1),x=(l&e.childLanes)!==0,dt||x){if(x=Ze,x!==null&&(o=Hp(x,l),o!==0&&o!==M.retryLane))throw M.retryLane=o,Tl(e,o),Ht(x,e,o),lf;Vf(N)||eu(),t=df(e,t,l)}else Vf(N)?(t.flags|=192,t.child=e.child,t=null):(e=M.treeContext,Fe=pn(N.nextSibling),xt=t,ze=!0,Ua=null,hn=!1,e!==null&&Ov(t,e),t=cf(t,o.children),t.flags|=4096);return t}return c?(Va(),N=o.fallback,c=t.mode,M=e.child,Q=M.sibling,o=ra(M,{mode:"hidden",children:o.children}),o.subtreeFlags=M.subtreeFlags&65011712,Q!==null?N=ra(Q,N):(N=Ml(N,c,l,null),N.flags|=2),N.return=t,o.return=t,o.sibling=N,t.child=o,ro(null,o),o=t.child,N=e.child.memoizedState,N===null?N=sf(l):(c=N.cachePool,c!==null?(M=ut._currentValue,c=c.parent!==M?{parent:M,pool:M}:c):c=Bv(),N={baseLanes:N.baseLanes|l,cachePool:c}),o.memoizedState=N,o.childLanes=uf(e,x,l),t.memoizedState=of,ro(e.child,o)):(Ga(t),l=e.child,e=l.sibling,l=ra(l,{mode:"visible",children:o.children}),l.return=t,l.sibling=null,e!==null&&(x=t.deletions,x===null?(t.deletions=[e],t.flags|=16):x.push(e)),t.child=l,t.memoizedState=null,l)}function cf(e,t){return t=Ks({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ks(e,t){return e=Pt(22,e,null,t),e.lanes=0,e}function df(e,t,l){return Ul(t,e.child,null,l),e=cf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ig(e,t,l){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Nd(e.return,t,l)}function ff(e,t,l,o,c,f){var x=e.memoizedState;x===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:l,tailMode:c,treeForkCount:f}:(x.isBackwards=t,x.rendering=null,x.renderingStartTime=0,x.last=o,x.tail=l,x.tailMode=c,x.treeForkCount=f)}function ey(e,t,l){var o=t.pendingProps,c=o.revealOrder,f=o.tail;o=o.children;var x=it.current,N=(x&2)!==0;if(N?(x=x&1|2,t.flags|=128):x&=1,ee(it,x),St(e,t,o,l),o=ze?Xi:0,!N&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ig(e,l,t);else if(e.tag===19)Ig(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(c){case"forwards":for(l=t.child,c=null;l!==null;)e=l.alternate,e!==null&&ks(e)===null&&(c=l),l=l.sibling;l=c,l===null?(c=t.child,t.child=null):(c=l.sibling,l.sibling=null),ff(t,!1,c,l,f,o);break;case"backwards":case"unstable_legacy-backwards":for(l=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&ks(e)===null){t.child=c;break}e=c.sibling,c.sibling=l,l=c,c=e}ff(t,!0,l,null,f,o);break;case"together":ff(t,!1,null,null,void 0,o);break;default:t.memoizedState=null}return t.child}function da(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),$a|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Rr(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,l=ra(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=ra(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function hf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ns(e)))}function ME(e,t,l){switch(t.tag){case 3:Ee(t,t.stateNode.containerInfo),qa(t,ut,e.memoizedState.cache),Al();break;case 27:case 5:Ne(t);break;case 4:Ee(t,t.stateNode.containerInfo);break;case 10:qa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ud(t),null;break;case 13:var o=t.memoizedState;if(o!==null)return o.dehydrated!==null?(Ga(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Wg(e,t,l):(Ga(t),e=da(e,t,l),e!==null?e.sibling:null);Ga(t);break;case 19:var c=(e.flags&128)!==0;if(o=(l&t.childLanes)!==0,o||(Rr(e,t,l,!1),o=(l&t.childLanes)!==0),c){if(o)return ey(e,t,l);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),ee(it,it.current),o)break;return null;case 22:return t.lanes=0,Xg(e,t,l,t.pendingProps);case 24:qa(t,ut,e.memoizedState.cache)}return da(e,t,l)}function ty(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)dt=!0;else{if(!hf(e,l)&&(t.flags&128)===0)return dt=!1,ME(e,t,l);dt=(e.flags&131072)!==0}else dt=!1,ze&&(t.flags&1048576)!==0&&kv(t,Xi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=zl(t.elementType),t.type=e,typeof e=="function")gd(e)?(o=ql(e,o),t.tag=1,t=Pg(null,t,e,o,l)):(t.tag=0,t=rf(null,t,e,o,l));else{if(e!=null){var c=e.$$typeof;if(c===k){t.tag=11,t=Gg(null,t,e,o,l);break e}else if(c===q){t.tag=14,t=Vg(null,t,e,o,l);break e}}throw t=ie(e)||e,Error(i(306,t,""))}}return t;case 0:return rf(e,t,t.type,t.pendingProps,l);case 1:return o=t.type,c=ql(o,t.pendingProps),Pg(e,t,o,c,l);case 3:e:{if(Ee(t,t.stateNode.containerInfo),e===null)throw Error(i(387));o=t.pendingProps;var f=t.memoizedState;c=f.element,Dd(e,t),eo(t,o,null,l);var x=t.memoizedState;if(o=x.cache,qa(t,ut,o),o!==f.cache&&Cd(t,[ut],l,!0),Ii(),o=x.element,f.isDehydrated)if(f={element:o,isDehydrated:!1,cache:x.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=Jg(e,t,o,l);break e}else if(o!==c){c=cn(Error(i(424)),t),$i(c),t=Jg(e,t,o,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Fe=pn(e.firstChild),xt=t,ze=!0,Ua=null,hn=!0,l=Xv(t,null,o,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Al(),o===c){t=da(e,t,l);break e}St(e,t,o,l)}t=t.child}return t;case 26:return Vs(e,t),e===null?(l=f0(t.type,null,t.pendingProps,null))?t.memoizedState=l:ze||(l=t.type,e=t.pendingProps,o=ou(je.current).createElement(l),o[bt]=t,o[Dt]=e,jt(o,l,e),gt(o),t.stateNode=o):t.memoizedState=f0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ne(t),e===null&&ze&&(o=t.stateNode=u0(t.type,t.pendingProps,je.current),xt=t,hn=!0,c=Fe,Wa(t.type)?(Xf=c,Fe=pn(o.firstChild)):Fe=c),St(e,t,t.pendingProps.children,l),Vs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ze&&((c=o=Fe)&&(o=iN(o,t.type,t.pendingProps,hn),o!==null?(t.stateNode=o,xt=t,Fe=pn(o.firstChild),hn=!1,c=!0):c=!1),c||Ha(t)),Ne(t),c=t.type,f=t.pendingProps,x=e!==null?e.memoizedProps:null,o=f.children,Qf(c,f)?o=null:x!==null&&Qf(c,x)&&(t.flags|=32),t.memoizedState!==null&&(c=qd(e,t,wE,null,null,l),wo._currentValue=c),Vs(e,t),St(e,t,o,l),t.child;case 6:return e===null&&ze&&((e=l=Fe)&&(l=oN(l,t.pendingProps,hn),l!==null?(t.stateNode=l,xt=t,Fe=null,e=!0):e=!1),e||Ha(t)),null;case 13:return Wg(e,t,l);case 4:return Ee(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Ul(t,null,o,l):St(e,t,o,l),t.child;case 11:return Gg(e,t,t.type,t.pendingProps,l);case 7:return St(e,t,t.pendingProps,l),t.child;case 8:return St(e,t,t.pendingProps.children,l),t.child;case 12:return St(e,t,t.pendingProps.children,l),t.child;case 10:return o=t.pendingProps,qa(t,t.type,o.value),St(e,t,o.children,l),t.child;case 9:return c=t.type._context,o=t.pendingProps.children,kl(t),c=wt(c),o=o(c),t.flags|=1,St(e,t,o,l),t.child;case 14:return Vg(e,t,t.type,t.pendingProps,l);case 15:return Kg(e,t,t.type,t.pendingProps,l);case 19:return ey(e,t,l);case 31:return TE(e,t,l);case 22:return Xg(e,t,l,t.pendingProps);case 24:return kl(t),o=wt(ut),e===null?(c=Td(),c===null&&(c=Ze,f=Rd(),c.pooledCache=f,f.refCount++,f!==null&&(c.pooledCacheLanes|=l),c=f),t.memoizedState={parent:o,cache:c},Ad(t),qa(t,ut,c)):((e.lanes&l)!==0&&(Dd(e,t),eo(t,null,null,l),Ii()),c=e.memoizedState,f=t.memoizedState,c.parent!==o?(c={parent:o,cache:o},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),qa(t,ut,o)):(o=f.cache,qa(t,ut,o),o!==c.cache&&Cd(t,[ut],l,!0))),St(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function fa(e){e.flags|=4}function mf(e,t,l,o,c){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(_y())e.flags|=8192;else throw Ll=Ts,Md}else e.flags&=-16777217}function ny(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!g0(t))if(_y())e.flags|=8192;else throw Ll=Ts,Md}function Xs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?zp():536870912,e.lanes|=t,qr|=t)}function io(e,t){if(!ze)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var o=null;l!==null;)l.alternate!==null&&(o=l),l=l.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Pe(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,o=0;if(t)for(var c=e.child;c!==null;)l|=c.lanes|c.childLanes,o|=c.subtreeFlags&65011712,o|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)l|=c.lanes|c.childLanes,o|=c.subtreeFlags,o|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=o,e.childLanes=l,t}function AE(e,t,l){var o=t.pendingProps;switch(wd(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pe(t),null;case 1:return Pe(t),null;case 3:return l=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),sa(ut),ye(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Cr(t)?fa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,jd())),Pe(t),null;case 26:var c=t.type,f=t.memoizedState;return e===null?(fa(t),f!==null?(Pe(t),ny(t,f)):(Pe(t),mf(t,c,null,o,l))):f?f!==e.memoizedState?(fa(t),Pe(t),ny(t,f)):(Pe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&fa(t),Pe(t),mf(t,c,e,o,l)),null;case 27:if(Ue(t),l=je.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&fa(t);else{if(!o){if(t.stateNode===null)throw Error(i(166));return Pe(t),null}e=le.current,Cr(t)?zv(t):(e=u0(c,o,l),t.stateNode=e,fa(t))}return Pe(t),null;case 5:if(Ue(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&fa(t);else{if(!o){if(t.stateNode===null)throw Error(i(166));return Pe(t),null}if(f=le.current,Cr(t))zv(t);else{var x=ou(je.current);switch(f){case 1:f=x.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:f=x.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":f=x.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":f=x.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":f=x.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof o.is=="string"?x.createElement("select",{is:o.is}):x.createElement("select"),o.multiple?f.multiple=!0:o.size&&(f.size=o.size);break;default:f=typeof o.is=="string"?x.createElement(c,{is:o.is}):x.createElement(c)}}f[bt]=t,f[Dt]=o;e:for(x=t.child;x!==null;){if(x.tag===5||x.tag===6)f.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===t)break e;for(;x.sibling===null;){if(x.return===null||x.return===t)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}t.stateNode=f;e:switch(jt(f,c,o),c){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&fa(t)}}return Pe(t),mf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&fa(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(i(166));if(e=je.current,Cr(t)){if(e=t.stateNode,l=t.memoizedProps,o=null,c=xt,c!==null)switch(c.tag){case 27:case 5:o=c.memoizedProps}e[bt]=t,e=!!(e.nodeValue===l||o!==null&&o.suppressHydrationWarning===!0||Wy(e.nodeValue,l)),e||Ha(t,!0)}else e=ou(e).createTextNode(o),e[bt]=t,t.stateNode=e}return Pe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(o=Cr(t),l!==null){if(e===null){if(!o)throw Error(i(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[bt]=t}else Al(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Pe(t),e=!1}else l=jd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Wt(t),t):(Wt(t),null);if((t.flags&128)!==0)throw Error(i(558))}return Pe(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=Cr(t),o!==null&&o.dehydrated!==null){if(e===null){if(!c)throw Error(i(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(i(317));c[bt]=t}else Al(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Pe(t),c=!1}else c=jd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(Wt(t),t):(Wt(t),null)}return Wt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=o!==null,e=e!==null&&e.memoizedState!==null,l&&(o=t.child,c=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(c=o.alternate.memoizedState.cachePool.pool),f=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(f=o.memoizedState.cachePool.pool),f!==c&&(o.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Xs(t,t.updateQueue),Pe(t),null);case 4:return ye(),e===null&&Lf(t.stateNode.containerInfo),Pe(t),null;case 10:return sa(t.type),Pe(t),null;case 19:if(Z(it),o=t.memoizedState,o===null)return Pe(t),null;if(c=(t.flags&128)!==0,f=o.rendering,f===null)if(c)io(o,!1);else{if(nt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=ks(e),f!==null){for(t.flags|=128,io(o,!1),e=f.updateQueue,t.updateQueue=e,Xs(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Mv(l,e),l=l.sibling;return ee(it,it.current&1|2),ze&&ia(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&Xt()>Js&&(t.flags|=128,c=!0,io(o,!1),t.lanes=4194304)}else{if(!c)if(e=ks(f),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,Xs(t,e),io(o,!0),o.tail===null&&o.tailMode==="hidden"&&!f.alternate&&!ze)return Pe(t),null}else 2*Xt()-o.renderingStartTime>Js&&l!==536870912&&(t.flags|=128,c=!0,io(o,!1),t.lanes=4194304);o.isBackwards?(f.sibling=t.child,t.child=f):(e=o.last,e!==null?e.sibling=f:t.child=f,o.last=f)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Xt(),e.sibling=null,l=it.current,ee(it,c?l&1|2:l&1),ze&&ia(t,o.treeForkCount),e):(Pe(t),null);case 22:case 23:return Wt(t),Ld(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(l&536870912)!==0&&(t.flags&128)===0&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),l=t.updateQueue,l!==null&&Xs(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==l&&(t.flags|=2048),e!==null&&Z(Ol),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),sa(ut),Pe(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function DE(e,t){switch(wd(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sa(ut),ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ue(t),null;case 31:if(t.memoizedState!==null){if(Wt(t),t.alternate===null)throw Error(i(340));Al()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Wt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Al()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Z(it),null;case 4:return ye(),null;case 10:return sa(t.type),null;case 22:case 23:return Wt(t),Ld(),e!==null&&Z(Ol),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return sa(ut),null;case 25:return null;default:return null}}function ay(e,t){switch(wd(t),t.tag){case 3:sa(ut),ye();break;case 26:case 27:case 5:Ue(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&Wt(t);break;case 13:Wt(t);break;case 19:Z(it);break;case 10:sa(t.type);break;case 22:case 23:Wt(t),Ld(),e!==null&&Z(Ol);break;case 24:sa(ut)}}function oo(e,t){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var c=o.next;l=c;do{if((l.tag&e)===e){o=void 0;var f=l.create,x=l.inst;o=f(),x.destroy=o}l=l.next}while(l!==c)}}catch(N){Ve(t,t.return,N)}}function Ka(e,t,l){try{var o=t.updateQueue,c=o!==null?o.lastEffect:null;if(c!==null){var f=c.next;o=f;do{if((o.tag&e)===e){var x=o.inst,N=x.destroy;if(N!==void 0){x.destroy=void 0,c=t;var M=l,Q=N;try{Q()}catch(F){Ve(c,M,F)}}}o=o.next}while(o!==f)}}catch(F){Ve(t,t.return,F)}}function ly(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Zv(t,l)}catch(o){Ve(e,e.return,o)}}}function ry(e,t,l){l.props=ql(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(o){Ve(e,t,o)}}function so(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof l=="function"?e.refCleanup=l(o):l.current=o}}catch(c){Ve(e,t,c)}}function Qn(e,t){var l=e.ref,o=e.refCleanup;if(l!==null)if(typeof o=="function")try{o()}catch(c){Ve(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(c){Ve(e,t,c)}else l.current=null}function iy(e){var t=e.type,l=e.memoizedProps,o=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&o.focus();break e;case"img":l.src?o.src=l.src:l.srcSet&&(o.srcset=l.srcSet)}}catch(c){Ve(e,e.return,c)}}function pf(e,t,l){try{var o=e.stateNode;eN(o,e.type,l,t),o[Dt]=t}catch(c){Ve(e,e.return,c)}}function oy(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Wa(e.type)||e.tag===4}function vf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||oy(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Wa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function gf(e,t,l){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=aa));else if(o!==4&&(o===27&&Wa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(gf(e,t,l),e=e.sibling;e!==null;)gf(e,t,l),e=e.sibling}function $s(e,t,l){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(o!==4&&(o===27&&Wa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for($s(e,t,l),e=e.sibling;e!==null;)$s(e,t,l),e=e.sibling}function sy(e){var t=e.stateNode,l=e.memoizedProps;try{for(var o=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);jt(t,o,l),t[bt]=e,t[Dt]=l}catch(f){Ve(e,e.return,f)}}var ha=!1,ft=!1,yf=!1,uy=typeof WeakSet=="function"?WeakSet:Set,yt=null;function kE(e,t){if(e=e.containerInfo,qf=mu,e=wv(e),cd(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var o=l.getSelection&&l.getSelection();if(o&&o.rangeCount!==0){l=o.anchorNode;var c=o.anchorOffset,f=o.focusNode;o=o.focusOffset;try{l.nodeType,f.nodeType}catch{l=null;break e}var x=0,N=-1,M=-1,Q=0,F=0,J=e,Y=null;t:for(;;){for(var K;J!==l||c!==0&&J.nodeType!==3||(N=x+c),J!==f||o!==0&&J.nodeType!==3||(M=x+o),J.nodeType===3&&(x+=J.nodeValue.length),(K=J.firstChild)!==null;)Y=J,J=K;for(;;){if(J===e)break t;if(Y===l&&++Q===c&&(N=x),Y===f&&++F===o&&(M=x),(K=J.nextSibling)!==null)break;J=Y,Y=J.parentNode}J=K}l=N===-1||M===-1?null:{start:N,end:M}}else l=null}l=l||{start:0,end:0}}else l=null;for(Bf={focusedElem:e,selectionRange:l},mu=!1,yt=t;yt!==null;)if(t=yt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,yt=e;else for(;yt!==null;){switch(t=yt,f=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)c=e[l],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,l=t,c=f.memoizedProps,f=f.memoizedState,o=l.stateNode;try{var he=ql(l.type,c);e=o.getSnapshotBeforeUpdate(he,f),o.__reactInternalSnapshotBeforeUpdate=e}catch(Se){Ve(l,l.return,Se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Gf(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Gf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,yt=e;break}yt=t.return}}function cy(e,t,l){var o=l.flags;switch(l.tag){case 0:case 11:case 15:pa(e,l),o&4&&oo(5,l);break;case 1:if(pa(e,l),o&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(x){Ve(l,l.return,x)}else{var c=ql(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(x){Ve(l,l.return,x)}}o&64&&ly(l),o&512&&so(l,l.return);break;case 3:if(pa(e,l),o&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Zv(e,t)}catch(x){Ve(l,l.return,x)}}break;case 27:t===null&&o&4&&sy(l);case 26:case 5:pa(e,l),t===null&&o&4&&iy(l),o&512&&so(l,l.return);break;case 12:pa(e,l);break;case 31:pa(e,l),o&4&&hy(e,l);break;case 13:pa(e,l),o&4&&my(e,l),o&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=YE.bind(null,l),sN(e,l))));break;case 22:if(o=l.memoizedState!==null||ha,!o){t=t!==null&&t.memoizedState!==null||ft,c=ha;var f=ft;ha=o,(ft=t)&&!f?va(e,l,(l.subtreeFlags&8772)!==0):pa(e,l),ha=c,ft=f}break;case 30:break;default:pa(e,l)}}function dy(e){var t=e.alternate;t!==null&&(e.alternate=null,dy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&$c(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Je=null,Ot=!1;function ma(e,t,l){for(l=l.child;l!==null;)fy(e,t,l),l=l.sibling}function fy(e,t,l){if($t&&typeof $t.onCommitFiberUnmount=="function")try{$t.onCommitFiberUnmount(Di,l)}catch{}switch(l.tag){case 26:ft||Qn(l,t),ma(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:ft||Qn(l,t);var o=Je,c=Ot;Wa(l.type)&&(Je=l.stateNode,Ot=!1),ma(e,t,l),yo(l.stateNode),Je=o,Ot=c;break;case 5:ft||Qn(l,t);case 6:if(o=Je,c=Ot,Je=null,ma(e,t,l),Je=o,Ot=c,Je!==null)if(Ot)try{(Je.nodeType===9?Je.body:Je.nodeName==="HTML"?Je.ownerDocument.body:Je).removeChild(l.stateNode)}catch(f){Ve(l,t,f)}else try{Je.removeChild(l.stateNode)}catch(f){Ve(l,t,f)}break;case 18:Je!==null&&(Ot?(e=Je,l0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),$r(e)):l0(Je,l.stateNode));break;case 4:o=Je,c=Ot,Je=l.stateNode.containerInfo,Ot=!0,ma(e,t,l),Je=o,Ot=c;break;case 0:case 11:case 14:case 15:Ka(2,l,t),ft||Ka(4,l,t),ma(e,t,l);break;case 1:ft||(Qn(l,t),o=l.stateNode,typeof o.componentWillUnmount=="function"&&ry(l,t,o)),ma(e,t,l);break;case 21:ma(e,t,l);break;case 22:ft=(o=ft)||l.memoizedState!==null,ma(e,t,l),ft=o;break;default:ma(e,t,l)}}function hy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{$r(e)}catch(l){Ve(t,t.return,l)}}}function my(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{$r(e)}catch(l){Ve(t,t.return,l)}}function OE(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new uy),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new uy),t;default:throw Error(i(435,e.tag))}}function Zs(e,t){var l=OE(e);t.forEach(function(o){if(!l.has(o)){l.add(o);var c=GE.bind(null,e,o);o.then(c,c)}})}function zt(e,t){var l=t.deletions;if(l!==null)for(var o=0;o<l.length;o++){var c=l[o],f=e,x=t,N=x;e:for(;N!==null;){switch(N.tag){case 27:if(Wa(N.type)){Je=N.stateNode,Ot=!1;break e}break;case 5:Je=N.stateNode,Ot=!1;break e;case 3:case 4:Je=N.stateNode.containerInfo,Ot=!0;break e}N=N.return}if(Je===null)throw Error(i(160));fy(f,x,c),Je=null,Ot=!1,f=c.alternate,f!==null&&(f.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)py(t,e),t=t.sibling}var Cn=null;function py(e,t){var l=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:zt(t,e),Lt(e),o&4&&(Ka(3,e,e.return),oo(3,e),Ka(5,e,e.return));break;case 1:zt(t,e),Lt(e),o&512&&(ft||l===null||Qn(l,l.return)),o&64&&ha&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?o:l.concat(o))));break;case 26:var c=Cn;if(zt(t,e),Lt(e),o&512&&(ft||l===null||Qn(l,l.return)),o&4){var f=l!==null?l.memoizedState:null;if(o=e.memoizedState,l===null)if(o===null)if(e.stateNode===null){e:{o=e.type,l=e.memoizedProps,c=c.ownerDocument||c;t:switch(o){case"title":f=c.getElementsByTagName("title")[0],(!f||f[zi]||f[bt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=c.createElement(o),c.head.insertBefore(f,c.querySelector("head > title"))),jt(f,o,l),f[bt]=e,gt(f),o=f;break e;case"link":var x=p0("link","href",c).get(o+(l.href||""));if(x){for(var N=0;N<x.length;N++)if(f=x[N],f.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&f.getAttribute("rel")===(l.rel==null?null:l.rel)&&f.getAttribute("title")===(l.title==null?null:l.title)&&f.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){x.splice(N,1);break t}}f=c.createElement(o),jt(f,o,l),c.head.appendChild(f);break;case"meta":if(x=p0("meta","content",c).get(o+(l.content||""))){for(N=0;N<x.length;N++)if(f=x[N],f.getAttribute("content")===(l.content==null?null:""+l.content)&&f.getAttribute("name")===(l.name==null?null:l.name)&&f.getAttribute("property")===(l.property==null?null:l.property)&&f.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&f.getAttribute("charset")===(l.charSet==null?null:l.charSet)){x.splice(N,1);break t}}f=c.createElement(o),jt(f,o,l),c.head.appendChild(f);break;default:throw Error(i(468,o))}f[bt]=e,gt(f),o=f}e.stateNode=o}else v0(c,e.type,e.stateNode);else e.stateNode=m0(c,o,e.memoizedProps);else f!==o?(f===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):f.count--,o===null?v0(c,e.type,e.stateNode):m0(c,o,e.memoizedProps)):o===null&&e.stateNode!==null&&pf(e,e.memoizedProps,l.memoizedProps)}break;case 27:zt(t,e),Lt(e),o&512&&(ft||l===null||Qn(l,l.return)),l!==null&&o&4&&pf(e,e.memoizedProps,l.memoizedProps);break;case 5:if(zt(t,e),Lt(e),o&512&&(ft||l===null||Qn(l,l.return)),e.flags&32){c=e.stateNode;try{vr(c,"")}catch(he){Ve(e,e.return,he)}}o&4&&e.stateNode!=null&&(c=e.memoizedProps,pf(e,c,l!==null?l.memoizedProps:c)),o&1024&&(yf=!0);break;case 6:if(zt(t,e),Lt(e),o&4){if(e.stateNode===null)throw Error(i(162));o=e.memoizedProps,l=e.stateNode;try{l.nodeValue=o}catch(he){Ve(e,e.return,he)}}break;case 3:if(cu=null,c=Cn,Cn=su(t.containerInfo),zt(t,e),Cn=c,Lt(e),o&4&&l!==null&&l.memoizedState.isDehydrated)try{$r(t.containerInfo)}catch(he){Ve(e,e.return,he)}yf&&(yf=!1,vy(e));break;case 4:o=Cn,Cn=su(e.stateNode.containerInfo),zt(t,e),Lt(e),Cn=o;break;case 12:zt(t,e),Lt(e);break;case 31:zt(t,e),Lt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Zs(e,o)));break;case 13:zt(t,e),Lt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ps=Xt()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Zs(e,o)));break;case 22:c=e.memoizedState!==null;var M=l!==null&&l.memoizedState!==null,Q=ha,F=ft;if(ha=Q||c,ft=F||M,zt(t,e),ft=F,ha=Q,Lt(e),o&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(l===null||M||ha||ft||Bl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){M=l=t;try{if(f=M.stateNode,c)x=f.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{N=M.stateNode;var J=M.memoizedProps.style,Y=J!=null&&J.hasOwnProperty("display")?J.display:null;N.style.display=Y==null||typeof Y=="boolean"?"":(""+Y).trim()}}catch(he){Ve(M,M.return,he)}}}else if(t.tag===6){if(l===null){M=t;try{M.stateNode.nodeValue=c?"":M.memoizedProps}catch(he){Ve(M,M.return,he)}}}else if(t.tag===18){if(l===null){M=t;try{var K=M.stateNode;c?r0(K,!0):r0(M.stateNode,!1)}catch(he){Ve(M,M.return,he)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}o&4&&(o=e.updateQueue,o!==null&&(l=o.retryQueue,l!==null&&(o.retryQueue=null,Zs(e,l))));break;case 19:zt(t,e),Lt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Zs(e,o)));break;case 30:break;case 21:break;default:zt(t,e),Lt(e)}}function Lt(e){var t=e.flags;if(t&2){try{for(var l,o=e.return;o!==null;){if(oy(o)){l=o;break}o=o.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var c=l.stateNode,f=vf(e);$s(e,f,c);break;case 5:var x=l.stateNode;l.flags&32&&(vr(x,""),l.flags&=-33);var N=vf(e);$s(e,N,x);break;case 3:case 4:var M=l.stateNode.containerInfo,Q=vf(e);gf(e,Q,M);break;default:throw Error(i(161))}}catch(F){Ve(e,e.return,F)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function vy(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;vy(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function pa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)cy(e,t.alternate,t),t=t.sibling}function Bl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ka(4,t,t.return),Bl(t);break;case 1:Qn(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&ry(t,t.return,l),Bl(t);break;case 27:yo(t.stateNode);case 26:case 5:Qn(t,t.return),Bl(t);break;case 22:t.memoizedState===null&&Bl(t);break;case 30:Bl(t);break;default:Bl(t)}e=e.sibling}}function va(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var o=t.alternate,c=e,f=t,x=f.flags;switch(f.tag){case 0:case 11:case 15:va(c,f,l),oo(4,f);break;case 1:if(va(c,f,l),o=f,c=o.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(Q){Ve(o,o.return,Q)}if(o=f,c=o.updateQueue,c!==null){var N=o.stateNode;try{var M=c.shared.hiddenCallbacks;if(M!==null)for(c.shared.hiddenCallbacks=null,c=0;c<M.length;c++)$v(M[c],N)}catch(Q){Ve(o,o.return,Q)}}l&&x&64&&ly(f),so(f,f.return);break;case 27:sy(f);case 26:case 5:va(c,f,l),l&&o===null&&x&4&&iy(f),so(f,f.return);break;case 12:va(c,f,l);break;case 31:va(c,f,l),l&&x&4&&hy(c,f);break;case 13:va(c,f,l),l&&x&4&&my(c,f);break;case 22:f.memoizedState===null&&va(c,f,l),so(f,f.return);break;case 30:break;default:va(c,f,l)}t=t.sibling}}function bf(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Zi(l))}function xf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Zi(e))}function Rn(e,t,l,o){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)gy(e,t,l,o),t=t.sibling}function gy(e,t,l,o){var c=t.flags;switch(t.tag){case 0:case 11:case 15:Rn(e,t,l,o),c&2048&&oo(9,t);break;case 1:Rn(e,t,l,o);break;case 3:Rn(e,t,l,o),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Zi(e)));break;case 12:if(c&2048){Rn(e,t,l,o),e=t.stateNode;try{var f=t.memoizedProps,x=f.id,N=f.onPostCommit;typeof N=="function"&&N(x,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(M){Ve(t,t.return,M)}}else Rn(e,t,l,o);break;case 31:Rn(e,t,l,o);break;case 13:Rn(e,t,l,o);break;case 23:break;case 22:f=t.stateNode,x=t.alternate,t.memoizedState!==null?f._visibility&2?Rn(e,t,l,o):uo(e,t):f._visibility&2?Rn(e,t,l,o):(f._visibility|=2,Lr(e,t,l,o,(t.subtreeFlags&10256)!==0||!1)),c&2048&&bf(x,t);break;case 24:Rn(e,t,l,o),c&2048&&xf(t.alternate,t);break;default:Rn(e,t,l,o)}}function Lr(e,t,l,o,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var f=e,x=t,N=l,M=o,Q=x.flags;switch(x.tag){case 0:case 11:case 15:Lr(f,x,N,M,c),oo(8,x);break;case 23:break;case 22:var F=x.stateNode;x.memoizedState!==null?F._visibility&2?Lr(f,x,N,M,c):uo(f,x):(F._visibility|=2,Lr(f,x,N,M,c)),c&&Q&2048&&bf(x.alternate,x);break;case 24:Lr(f,x,N,M,c),c&&Q&2048&&xf(x.alternate,x);break;default:Lr(f,x,N,M,c)}t=t.sibling}}function uo(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,o=t,c=o.flags;switch(o.tag){case 22:uo(l,o),c&2048&&bf(o.alternate,o);break;case 24:uo(l,o),c&2048&&xf(o.alternate,o);break;default:uo(l,o)}t=t.sibling}}var co=8192;function Ur(e,t,l){if(e.subtreeFlags&co)for(e=e.child;e!==null;)yy(e,t,l),e=e.sibling}function yy(e,t,l){switch(e.tag){case 26:Ur(e,t,l),e.flags&co&&e.memoizedState!==null&&xN(l,Cn,e.memoizedState,e.memoizedProps);break;case 5:Ur(e,t,l);break;case 3:case 4:var o=Cn;Cn=su(e.stateNode.containerInfo),Ur(e,t,l),Cn=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=co,co=16777216,Ur(e,t,l),co=o):Ur(e,t,l));break;default:Ur(e,t,l)}}function by(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function fo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var o=t[l];yt=o,wy(o,e)}by(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)xy(e),e=e.sibling}function xy(e){switch(e.tag){case 0:case 11:case 15:fo(e),e.flags&2048&&Ka(9,e,e.return);break;case 3:fo(e);break;case 12:fo(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Fs(e)):fo(e);break;default:fo(e)}}function Fs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var o=t[l];yt=o,wy(o,e)}by(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ka(8,t,t.return),Fs(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Fs(t));break;default:Fs(t)}e=e.sibling}}function wy(e,t){for(;yt!==null;){var l=yt;switch(l.tag){case 0:case 11:case 15:Ka(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var o=l.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Zi(l.memoizedState.cache)}if(o=l.child,o!==null)o.return=l,yt=o;else e:for(l=e;yt!==null;){o=yt;var c=o.sibling,f=o.return;if(dy(o),o===l){yt=null;break e}if(c!==null){c.return=f,yt=c;break e}yt=f}}}var zE={getCacheForType:function(e){var t=wt(ut),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return wt(ut).controller.signal}},LE=typeof WeakMap=="function"?WeakMap:Map,Be=0,Ze=null,Ae=null,ke=0,Ge=0,It=null,Xa=!1,Hr=!1,wf=!1,ga=0,nt=0,$a=0,Ql=0,Sf=0,en=0,qr=0,ho=null,Ut=null,jf=!1,Ps=0,Sy=0,Js=1/0,Ws=null,Za=null,mt=0,Fa=null,Br=null,ya=0,Ef=0,Nf=null,jy=null,mo=0,Cf=null;function tn(){return(Be&2)!==0&&ke!==0?ke&-ke:U.T!==null?Df():qp()}function Ey(){if(en===0)if((ke&536870912)===0||ze){var e=is;is<<=1,(is&3932160)===0&&(is=262144),en=e}else en=536870912;return e=Jt.current,e!==null&&(e.flags|=32),en}function Ht(e,t,l){(e===Ze&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)&&(Qr(e,0),Pa(e,ke,en,!1)),Oi(e,l),((Be&2)===0||e!==Ze)&&(e===Ze&&((Be&2)===0&&(Ql|=l),nt===4&&Pa(e,ke,en,!1)),Yn(e))}function Ny(e,t,l){if((Be&6)!==0)throw Error(i(327));var o=!l&&(t&127)===0&&(t&e.expiredLanes)===0||ki(e,t),c=o?qE(e,t):_f(e,t,!0),f=o;do{if(c===0){Hr&&!o&&Pa(e,t,0,!1);break}else{if(l=e.current.alternate,f&&!UE(l)){c=_f(e,t,!1),f=!1;continue}if(c===2){if(f=t,e.errorRecoveryDisabledLanes&f)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){t=x;e:{var N=e;c=ho;var M=N.current.memoizedState.isDehydrated;if(M&&(Qr(N,x).flags|=256),x=_f(N,x,!1),x!==2){if(wf&&!M){N.errorRecoveryDisabledLanes|=f,Ql|=f,c=4;break e}f=Ut,Ut=c,f!==null&&(Ut===null?Ut=f:Ut.push.apply(Ut,f))}c=x}if(f=!1,c!==2)continue}}if(c===1){Qr(e,0),Pa(e,t,0,!0);break}e:{switch(o=e,f=c,f){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Pa(o,t,en,!Xa);break e;case 2:Ut=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(c=Ps+300-Xt(),10<c)){if(Pa(o,t,en,!Xa),ss(o,0,!0)!==0)break e;ya=t,o.timeoutHandle=n0(Cy.bind(null,o,l,Ut,Ws,jf,t,en,Ql,qr,Xa,f,"Throttled",-0,0),c);break e}Cy(o,l,Ut,Ws,jf,t,en,Ql,qr,Xa,f,null,-0,0)}}break}while(!0);Yn(e)}function Cy(e,t,l,o,c,f,x,N,M,Q,F,J,Y,K){if(e.timeoutHandle=-1,J=t.subtreeFlags,J&8192||(J&16785408)===16785408){J={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:aa},yy(t,f,J);var he=(f&62914560)===f?Ps-Xt():(f&4194048)===f?Sy-Xt():0;if(he=wN(J,he),he!==null){ya=f,e.cancelPendingCommit=he(Oy.bind(null,e,t,f,l,o,c,x,N,M,F,J,null,Y,K)),Pa(e,f,x,!Q);return}}Oy(e,t,f,l,o,c,x,N,M)}function UE(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var o=0;o<l.length;o++){var c=l[o],f=c.getSnapshot;c=c.value;try{if(!Ft(f(),c))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Pa(e,t,l,o){t&=~Sf,t&=~Ql,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var c=t;0<c;){var f=31-Zt(c),x=1<<f;o[f]=-1,c&=~x}l!==0&&Lp(e,l,t)}function Is(){return(Be&6)===0?(po(0),!1):!0}function Rf(){if(Ae!==null){if(Ge===0)var e=Ae.return;else e=Ae,oa=Dl=null,Yd(e),Ar=null,Pi=0,e=Ae;for(;e!==null;)ay(e.alternate,e),e=e.return;Ae=null}}function Qr(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,aN(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),ya=0,Rf(),Ze=e,Ae=l=ra(e.current,null),ke=t,Ge=0,It=null,Xa=!1,Hr=ki(e,t),wf=!1,qr=en=Sf=Ql=$a=nt=0,Ut=ho=null,jf=!1,(t&8)!==0&&(t|=t&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=t;0<o;){var c=31-Zt(o),f=1<<c;t|=e[c],o&=~f}return ga=t,xs(),l}function Ry(e,t){Re=null,U.H=lo,t===Mr||t===_s?(t=Gv(),Ge=3):t===Md?(t=Gv(),Ge=4):Ge=t===lf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,It=t,Ae===null&&(nt=1,Ys(e,cn(t,e.current)))}function _y(){var e=Jt.current;return e===null?!0:(ke&4194048)===ke?mn===null:(ke&62914560)===ke||(ke&536870912)!==0?e===mn:!1}function Ty(){var e=U.H;return U.H=lo,e===null?lo:e}function My(){var e=U.A;return U.A=zE,e}function eu(){nt=4,Xa||(ke&4194048)!==ke&&Jt.current!==null||(Hr=!0),($a&134217727)===0&&(Ql&134217727)===0||Ze===null||Pa(Ze,ke,en,!1)}function _f(e,t,l){var o=Be;Be|=2;var c=Ty(),f=My();(Ze!==e||ke!==t)&&(Ws=null,Qr(e,t)),t=!1;var x=nt;e:do try{if(Ge!==0&&Ae!==null){var N=Ae,M=It;switch(Ge){case 8:Rf(),x=6;break e;case 3:case 2:case 9:case 6:Jt.current===null&&(t=!0);var Q=Ge;if(Ge=0,It=null,Yr(e,N,M,Q),l&&Hr){x=0;break e}break;default:Q=Ge,Ge=0,It=null,Yr(e,N,M,Q)}}HE(),x=nt;break}catch(F){Ry(e,F)}while(!0);return t&&e.shellSuspendCounter++,oa=Dl=null,Be=o,U.H=c,U.A=f,Ae===null&&(Ze=null,ke=0,xs()),x}function HE(){for(;Ae!==null;)Ay(Ae)}function qE(e,t){var l=Be;Be|=2;var o=Ty(),c=My();Ze!==e||ke!==t?(Ws=null,Js=Xt()+500,Qr(e,t)):Hr=ki(e,t);e:do try{if(Ge!==0&&Ae!==null){t=Ae;var f=It;t:switch(Ge){case 1:Ge=0,It=null,Yr(e,t,f,1);break;case 2:case 9:if(Qv(f)){Ge=0,It=null,Dy(t);break}t=function(){Ge!==2&&Ge!==9||Ze!==e||(Ge=7),Yn(e)},f.then(t,t);break e;case 3:Ge=7;break e;case 4:Ge=5;break e;case 7:Qv(f)?(Ge=0,It=null,Dy(t)):(Ge=0,It=null,Yr(e,t,f,7));break;case 5:var x=null;switch(Ae.tag){case 26:x=Ae.memoizedState;case 5:case 27:var N=Ae;if(x?g0(x):N.stateNode.complete){Ge=0,It=null;var M=N.sibling;if(M!==null)Ae=M;else{var Q=N.return;Q!==null?(Ae=Q,tu(Q)):Ae=null}break t}}Ge=0,It=null,Yr(e,t,f,5);break;case 6:Ge=0,It=null,Yr(e,t,f,6);break;case 8:Rf(),nt=6;break e;default:throw Error(i(462))}}BE();break}catch(F){Ry(e,F)}while(!0);return oa=Dl=null,U.H=o,U.A=c,Be=l,Ae!==null?0:(Ze=null,ke=0,xs(),nt)}function BE(){for(;Ae!==null&&!u2();)Ay(Ae)}function Ay(e){var t=ty(e.alternate,e,ga);e.memoizedProps=e.pendingProps,t===null?tu(e):Ae=t}function Dy(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Fg(l,t,t.pendingProps,t.type,void 0,ke);break;case 11:t=Fg(l,t,t.pendingProps,t.type.render,t.ref,ke);break;case 5:Yd(t);default:ay(l,t),t=Ae=Mv(t,ga),t=ty(l,t,ga)}e.memoizedProps=e.pendingProps,t===null?tu(e):Ae=t}function Yr(e,t,l,o){oa=Dl=null,Yd(t),Ar=null,Pi=0;var c=t.return;try{if(_E(e,c,t,l,ke)){nt=1,Ys(e,cn(l,e.current)),Ae=null;return}}catch(f){if(c!==null)throw Ae=c,f;nt=1,Ys(e,cn(l,e.current)),Ae=null;return}t.flags&32768?(ze||o===1?e=!0:Hr||(ke&536870912)!==0?e=!1:(Xa=e=!0,(o===2||o===9||o===3||o===6)&&(o=Jt.current,o!==null&&o.tag===13&&(o.flags|=16384))),ky(t,e)):tu(t)}function tu(e){var t=e;do{if((t.flags&32768)!==0){ky(t,Xa);return}e=t.return;var l=AE(t.alternate,t,ga);if(l!==null){Ae=l;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);nt===0&&(nt=5)}function ky(e,t){do{var l=DE(e.alternate,e);if(l!==null){l.flags&=32767,Ae=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Ae=e;return}Ae=e=l}while(e!==null);nt=6,Ae=null}function Oy(e,t,l,o,c,f,x,N,M){e.cancelPendingCommit=null;do nu();while(mt!==0);if((Be&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(f=t.lanes|t.childLanes,f|=pd,b2(e,l,f,x,N,M),e===Ze&&(Ae=Ze=null,ke=0),Br=t,Fa=e,ya=l,Ef=f,Nf=c,jy=o,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,VE(ls,function(){return qy(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=U.T,U.T=null,c=W.p,W.p=2,x=Be,Be|=4;try{kE(e,t,l)}finally{Be=x,W.p=c,U.T=o}}mt=1,zy(),Ly(),Uy()}}function zy(){if(mt===1){mt=0;var e=Fa,t=Br,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=U.T,U.T=null;var o=W.p;W.p=2;var c=Be;Be|=4;try{py(t,e);var f=Bf,x=wv(e.containerInfo),N=f.focusedElem,M=f.selectionRange;if(x!==N&&N&&N.ownerDocument&&xv(N.ownerDocument.documentElement,N)){if(M!==null&&cd(N)){var Q=M.start,F=M.end;if(F===void 0&&(F=Q),"selectionStart"in N)N.selectionStart=Q,N.selectionEnd=Math.min(F,N.value.length);else{var J=N.ownerDocument||document,Y=J&&J.defaultView||window;if(Y.getSelection){var K=Y.getSelection(),he=N.textContent.length,Se=Math.min(M.start,he),$e=M.end===void 0?Se:Math.min(M.end,he);!K.extend&&Se>$e&&(x=$e,$e=Se,Se=x);var z=bv(N,Se),O=bv(N,$e);if(z&&O&&(K.rangeCount!==1||K.anchorNode!==z.node||K.anchorOffset!==z.offset||K.focusNode!==O.node||K.focusOffset!==O.offset)){var B=J.createRange();B.setStart(z.node,z.offset),K.removeAllRanges(),Se>$e?(K.addRange(B),K.extend(O.node,O.offset)):(B.setEnd(O.node,O.offset),K.addRange(B))}}}}for(J=[],K=N;K=K.parentNode;)K.nodeType===1&&J.push({element:K,left:K.scrollLeft,top:K.scrollTop});for(typeof N.focus=="function"&&N.focus(),N=0;N<J.length;N++){var P=J[N];P.element.scrollLeft=P.left,P.element.scrollTop=P.top}}mu=!!qf,Bf=qf=null}finally{Be=c,W.p=o,U.T=l}}e.current=t,mt=2}}function Ly(){if(mt===2){mt=0;var e=Fa,t=Br,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=U.T,U.T=null;var o=W.p;W.p=2;var c=Be;Be|=4;try{cy(e,t.alternate,t)}finally{Be=c,W.p=o,U.T=l}}mt=3}}function Uy(){if(mt===4||mt===3){mt=0,c2();var e=Fa,t=Br,l=ya,o=jy;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?mt=5:(mt=0,Br=Fa=null,Hy(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(Za=null),Kc(l),t=t.stateNode,$t&&typeof $t.onCommitFiberRoot=="function")try{$t.onCommitFiberRoot(Di,t,void 0,(t.current.flags&128)===128)}catch{}if(o!==null){t=U.T,c=W.p,W.p=2,U.T=null;try{for(var f=e.onRecoverableError,x=0;x<o.length;x++){var N=o[x];f(N.value,{componentStack:N.stack})}}finally{U.T=t,W.p=c}}(ya&3)!==0&&nu(),Yn(e),c=e.pendingLanes,(l&261930)!==0&&(c&42)!==0?e===Cf?mo++:(mo=0,Cf=e):mo=0,po(0)}}function Hy(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Zi(t)))}function nu(){return zy(),Ly(),Uy(),qy()}function qy(){if(mt!==5)return!1;var e=Fa,t=Ef;Ef=0;var l=Kc(ya),o=U.T,c=W.p;try{W.p=32>l?32:l,U.T=null,l=Nf,Nf=null;var f=Fa,x=ya;if(mt=0,Br=Fa=null,ya=0,(Be&6)!==0)throw Error(i(331));var N=Be;if(Be|=4,xy(f.current),gy(f,f.current,x,l),Be=N,po(0,!1),$t&&typeof $t.onPostCommitFiberRoot=="function")try{$t.onPostCommitFiberRoot(Di,f)}catch{}return!0}finally{W.p=c,U.T=o,Hy(e,t)}}function By(e,t,l){t=cn(l,t),t=af(e.stateNode,t,2),e=Ya(e,t,2),e!==null&&(Oi(e,2),Yn(e))}function Ve(e,t,l){if(e.tag===3)By(e,e,l);else for(;t!==null;){if(t.tag===3){By(t,e,l);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Za===null||!Za.has(o))){e=cn(l,e),l=Qg(2),o=Ya(t,l,2),o!==null&&(Yg(l,o,t,e),Oi(o,2),Yn(o));break}}t=t.return}}function Tf(e,t,l){var o=e.pingCache;if(o===null){o=e.pingCache=new LE;var c=new Set;o.set(t,c)}else c=o.get(t),c===void 0&&(c=new Set,o.set(t,c));c.has(l)||(wf=!0,c.add(l),e=QE.bind(null,e,t,l),t.then(e,e))}function QE(e,t,l){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ze===e&&(ke&l)===l&&(nt===4||nt===3&&(ke&62914560)===ke&&300>Xt()-Ps?(Be&2)===0&&Qr(e,0):Sf|=l,qr===ke&&(qr=0)),Yn(e)}function Qy(e,t){t===0&&(t=zp()),e=Tl(e,t),e!==null&&(Oi(e,t),Yn(e))}function YE(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Qy(e,l)}function GE(e,t){var l=0;switch(e.tag){case 31:case 13:var o=e.stateNode,c=e.memoizedState;c!==null&&(l=c.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(i(314))}o!==null&&o.delete(t),Qy(e,l)}function VE(e,t){return Qc(e,t)}var au=null,Gr=null,Mf=!1,lu=!1,Af=!1,Ja=0;function Yn(e){e!==Gr&&e.next===null&&(Gr===null?au=Gr=e:Gr=Gr.next=e),lu=!0,Mf||(Mf=!0,XE())}function po(e,t){if(!Af&&lu){Af=!0;do for(var l=!1,o=au;o!==null;){if(e!==0){var c=o.pendingLanes;if(c===0)var f=0;else{var x=o.suspendedLanes,N=o.pingedLanes;f=(1<<31-Zt(42|e)+1)-1,f&=c&~(x&~N),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(l=!0,Ky(o,f))}else f=ke,f=ss(o,o===Ze?f:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(f&3)===0||ki(o,f)||(l=!0,Ky(o,f));o=o.next}while(l);Af=!1}}function KE(){Yy()}function Yy(){lu=Mf=!1;var e=0;Ja!==0&&nN()&&(e=Ja);for(var t=Xt(),l=null,o=au;o!==null;){var c=o.next,f=Gy(o,t);f===0?(o.next=null,l===null?au=c:l.next=c,c===null&&(Gr=l)):(l=o,(e!==0||(f&3)!==0)&&(lu=!0)),o=c}mt!==0&&mt!==5||po(e),Ja!==0&&(Ja=0)}function Gy(e,t){for(var l=e.suspendedLanes,o=e.pingedLanes,c=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var x=31-Zt(f),N=1<<x,M=c[x];M===-1?((N&l)===0||(N&o)!==0)&&(c[x]=y2(N,t)):M<=t&&(e.expiredLanes|=N),f&=~N}if(t=Ze,l=ke,l=ss(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,l===0||e===t&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&Yc(o),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||ki(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(o!==null&&Yc(o),Kc(l)){case 2:case 8:l=kp;break;case 32:l=ls;break;case 268435456:l=Op;break;default:l=ls}return o=Vy.bind(null,e),l=Qc(l,o),e.callbackPriority=t,e.callbackNode=l,t}return o!==null&&o!==null&&Yc(o),e.callbackPriority=2,e.callbackNode=null,2}function Vy(e,t){if(mt!==0&&mt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(nu()&&e.callbackNode!==l)return null;var o=ke;return o=ss(e,e===Ze?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(Ny(e,o,t),Gy(e,Xt()),e.callbackNode!=null&&e.callbackNode===l?Vy.bind(null,e):null)}function Ky(e,t){if(nu())return null;Ny(e,t,!0)}function XE(){lN(function(){(Be&6)!==0?Qc(Dp,KE):Yy()})}function Df(){if(Ja===0){var e=_r;e===0&&(e=rs,rs<<=1,(rs&261888)===0&&(rs=256)),Ja=e}return Ja}function Xy(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:fs(""+e)}function $y(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function $E(e,t,l,o,c){if(t==="submit"&&l&&l.stateNode===c){var f=Xy((c[Dt]||null).action),x=o.submitter;x&&(t=(t=x[Dt]||null)?Xy(t.formAction):x.getAttribute("formAction"),t!==null&&(f=t,x=null));var N=new vs("action","action",null,o,c);e.push({event:N,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Ja!==0){var M=x?$y(c,x):new FormData(c);Jd(l,{pending:!0,data:M,method:c.method,action:f},null,M)}}else typeof f=="function"&&(N.preventDefault(),M=x?$y(c,x):new FormData(c),Jd(l,{pending:!0,data:M,method:c.method,action:f},f,M))},currentTarget:c}]})}}for(var kf=0;kf<md.length;kf++){var Of=md[kf],ZE=Of.toLowerCase(),FE=Of[0].toUpperCase()+Of.slice(1);Nn(ZE,"on"+FE)}Nn(Ev,"onAnimationEnd"),Nn(Nv,"onAnimationIteration"),Nn(Cv,"onAnimationStart"),Nn("dblclick","onDoubleClick"),Nn("focusin","onFocus"),Nn("focusout","onBlur"),Nn(dE,"onTransitionRun"),Nn(fE,"onTransitionStart"),Nn(hE,"onTransitionCancel"),Nn(Rv,"onTransitionEnd"),mr("onMouseEnter",["mouseout","mouseover"]),mr("onMouseLeave",["mouseout","mouseover"]),mr("onPointerEnter",["pointerout","pointerover"]),mr("onPointerLeave",["pointerout","pointerover"]),Nl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Nl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Nl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Nl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Nl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Nl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vo="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(" "),PE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(vo));function Zy(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var o=e[l],c=o.event;o=o.listeners;e:{var f=void 0;if(t)for(var x=o.length-1;0<=x;x--){var N=o[x],M=N.instance,Q=N.currentTarget;if(N=N.listener,M!==f&&c.isPropagationStopped())break e;f=N,c.currentTarget=Q;try{f(c)}catch(F){bs(F)}c.currentTarget=null,f=M}else for(x=0;x<o.length;x++){if(N=o[x],M=N.instance,Q=N.currentTarget,N=N.listener,M!==f&&c.isPropagationStopped())break e;f=N,c.currentTarget=Q;try{f(c)}catch(F){bs(F)}c.currentTarget=null,f=M}}}}function De(e,t){var l=t[Xc];l===void 0&&(l=t[Xc]=new Set);var o=e+"__bubble";l.has(o)||(Fy(t,e,2,!1),l.add(o))}function zf(e,t,l){var o=0;t&&(o|=4),Fy(l,e,o,t)}var ru="_reactListening"+Math.random().toString(36).slice(2);function Lf(e){if(!e[ru]){e[ru]=!0,Yp.forEach(function(l){l!=="selectionchange"&&(PE.has(l)||zf(l,!1,e),zf(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ru]||(t[ru]=!0,zf("selectionchange",!1,t))}}function Fy(e,t,l,o){switch(E0(t)){case 2:var c=EN;break;case 8:c=NN;break;default:c=Jf}l=c.bind(null,t,l,e),c=void 0,!td||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),o?c!==void 0?e.addEventListener(t,l,{capture:!0,passive:c}):e.addEventListener(t,l,!0):c!==void 0?e.addEventListener(t,l,{passive:c}):e.addEventListener(t,l,!1)}function Uf(e,t,l,o,c){var f=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var x=o.tag;if(x===3||x===4){var N=o.stateNode.containerInfo;if(N===c)break;if(x===4)for(x=o.return;x!==null;){var M=x.tag;if((M===3||M===4)&&x.stateNode.containerInfo===c)return;x=x.return}for(;N!==null;){if(x=dr(N),x===null)return;if(M=x.tag,M===5||M===6||M===26||M===27){o=f=x;continue e}N=N.parentNode}}o=o.return}ev(function(){var Q=f,F=Ic(l),J=[];e:{var Y=_v.get(e);if(Y!==void 0){var K=vs,he=e;switch(e){case"keypress":if(ms(l)===0)break e;case"keydown":case"keyup":K=G2;break;case"focusin":he="focus",K=rd;break;case"focusout":he="blur",K=rd;break;case"beforeblur":case"afterblur":K=rd;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":K=av;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":K=A2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=X2;break;case Ev:case Nv:case Cv:K=O2;break;case Rv:K=Z2;break;case"scroll":case"scrollend":K=T2;break;case"wheel":K=P2;break;case"copy":case"cut":case"paste":K=L2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":K=rv;break;case"toggle":case"beforetoggle":K=W2}var Se=(t&4)!==0,$e=!Se&&(e==="scroll"||e==="scrollend"),z=Se?Y!==null?Y+"Capture":null:Y;Se=[];for(var O=Q,B;O!==null;){var P=O;if(B=P.stateNode,P=P.tag,P!==5&&P!==26&&P!==27||B===null||z===null||(P=Ui(O,z),P!=null&&Se.push(go(O,P,B))),$e)break;O=O.return}0<Se.length&&(Y=new K(Y,he,null,l,F),J.push({event:Y,listeners:Se}))}}if((t&7)===0){e:{if(Y=e==="mouseover"||e==="pointerover",K=e==="mouseout"||e==="pointerout",Y&&l!==Wc&&(he=l.relatedTarget||l.fromElement)&&(dr(he)||he[cr]))break e;if((K||Y)&&(Y=F.window===F?F:(Y=F.ownerDocument)?Y.defaultView||Y.parentWindow:window,K?(he=l.relatedTarget||l.toElement,K=Q,he=he?dr(he):null,he!==null&&($e=u(he),Se=he.tag,he!==$e||Se!==5&&Se!==27&&Se!==6)&&(he=null)):(K=null,he=Q),K!==he)){if(Se=av,P="onMouseLeave",z="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(Se=rv,P="onPointerLeave",z="onPointerEnter",O="pointer"),$e=K==null?Y:Li(K),B=he==null?Y:Li(he),Y=new Se(P,O+"leave",K,l,F),Y.target=$e,Y.relatedTarget=B,P=null,dr(F)===Q&&(Se=new Se(z,O+"enter",he,l,F),Se.target=B,Se.relatedTarget=$e,P=Se),$e=P,K&&he)t:{for(Se=JE,z=K,O=he,B=0,P=z;P;P=Se(P))B++;P=0;for(var be=O;be;be=Se(be))P++;for(;0<B-P;)z=Se(z),B--;for(;0<P-B;)O=Se(O),P--;for(;B--;){if(z===O||O!==null&&z===O.alternate){Se=z;break t}z=Se(z),O=Se(O)}Se=null}else Se=null;K!==null&&Py(J,Y,K,Se,!1),he!==null&&$e!==null&&Py(J,$e,he,Se,!0)}}e:{if(Y=Q?Li(Q):window,K=Y.nodeName&&Y.nodeName.toLowerCase(),K==="select"||K==="input"&&Y.type==="file")var He=hv;else if(dv(Y))if(mv)He=sE;else{He=iE;var ge=rE}else K=Y.nodeName,!K||K.toLowerCase()!=="input"||Y.type!=="checkbox"&&Y.type!=="radio"?Q&&Jc(Q.elementType)&&(He=hv):He=oE;if(He&&(He=He(e,Q))){fv(J,He,l,F);break e}ge&&ge(e,Y,Q),e==="focusout"&&Q&&Y.type==="number"&&Q.memoizedProps.value!=null&&Pc(Y,"number",Y.value)}switch(ge=Q?Li(Q):window,e){case"focusin":(dv(ge)||ge.contentEditable==="true")&&(xr=ge,dd=Q,Ki=null);break;case"focusout":Ki=dd=xr=null;break;case"mousedown":fd=!0;break;case"contextmenu":case"mouseup":case"dragend":fd=!1,Sv(J,l,F);break;case"selectionchange":if(cE)break;case"keydown":case"keyup":Sv(J,l,F)}var _e;if(od)e:{switch(e){case"compositionstart":var Oe="onCompositionStart";break e;case"compositionend":Oe="onCompositionEnd";break e;case"compositionupdate":Oe="onCompositionUpdate";break e}Oe=void 0}else br?uv(e,l)&&(Oe="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Oe="onCompositionStart");Oe&&(iv&&l.locale!=="ko"&&(br||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&br&&(_e=tv()):(za=F,nd="value"in za?za.value:za.textContent,br=!0)),ge=iu(Q,Oe),0<ge.length&&(Oe=new lv(Oe,e,null,l,F),J.push({event:Oe,listeners:ge}),_e?Oe.data=_e:(_e=cv(l),_e!==null&&(Oe.data=_e)))),(_e=eE?tE(e,l):nE(e,l))&&(Oe=iu(Q,"onBeforeInput"),0<Oe.length&&(ge=new lv("onBeforeInput","beforeinput",null,l,F),J.push({event:ge,listeners:Oe}),ge.data=_e)),$E(J,e,Q,l,F)}Zy(J,t)})}function go(e,t,l){return{instance:e,listener:t,currentTarget:l}}function iu(e,t){for(var l=t+"Capture",o=[];e!==null;){var c=e,f=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||f===null||(c=Ui(e,l),c!=null&&o.unshift(go(e,c,f)),c=Ui(e,t),c!=null&&o.push(go(e,c,f))),e.tag===3)return o;e=e.return}return[]}function JE(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Py(e,t,l,o,c){for(var f=t._reactName,x=[];l!==null&&l!==o;){var N=l,M=N.alternate,Q=N.stateNode;if(N=N.tag,M!==null&&M===o)break;N!==5&&N!==26&&N!==27||Q===null||(M=Q,c?(Q=Ui(l,f),Q!=null&&x.unshift(go(l,Q,M))):c||(Q=Ui(l,f),Q!=null&&x.push(go(l,Q,M)))),l=l.return}x.length!==0&&e.push({event:t,listeners:x})}var WE=/\r\n?/g,IE=/\u0000|\uFFFD/g;function Jy(e){return(typeof e=="string"?e:""+e).replace(WE,`
|
|
49
|
+
`).replace(IE,"")}function Wy(e,t){return t=Jy(t),Jy(e)===t}function Xe(e,t,l,o,c,f){switch(l){case"children":typeof o=="string"?t==="body"||t==="textarea"&&o===""||vr(e,o):(typeof o=="number"||typeof o=="bigint")&&t!=="body"&&vr(e,""+o);break;case"className":cs(e,"class",o);break;case"tabIndex":cs(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":cs(e,l,o);break;case"style":Wp(e,o,f);break;case"data":if(t!=="object"){cs(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(l);break}o=fs(""+o),e.setAttribute(l,o);break;case"action":case"formAction":if(typeof o=="function"){e.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 f=="function"&&(l==="formAction"?(t!=="input"&&Xe(e,t,"name",c.name,c,null),Xe(e,t,"formEncType",c.formEncType,c,null),Xe(e,t,"formMethod",c.formMethod,c,null),Xe(e,t,"formTarget",c.formTarget,c,null)):(Xe(e,t,"encType",c.encType,c,null),Xe(e,t,"method",c.method,c,null),Xe(e,t,"target",c.target,c,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(l);break}o=fs(""+o),e.setAttribute(l,o);break;case"onClick":o!=null&&(e.onclick=aa);break;case"onScroll":o!=null&&De("scroll",e);break;case"onScrollEnd":o!=null&&De("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(l=o.__html,l!=null){if(c.children!=null)throw Error(i(60));e.innerHTML=l}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}l=fs(""+o),e.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":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(l,""+o):e.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":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":o===!0?e.setAttribute(l,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(l,o):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(l,o):e.removeAttribute(l);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(l):e.setAttribute(l,o);break;case"popover":De("beforetoggle",e),De("toggle",e),us(e,"popover",o);break;case"xlinkActuate":na(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":na(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":na(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":na(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":na(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":na(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":na(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":na(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":na(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":us(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=R2.get(l)||l,us(e,l,o))}}function Hf(e,t,l,o,c,f){switch(l){case"style":Wp(e,o,f);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(l=o.__html,l!=null){if(c.children!=null)throw Error(i(60));e.innerHTML=l}}break;case"children":typeof o=="string"?vr(e,o):(typeof o=="number"||typeof o=="bigint")&&vr(e,""+o);break;case"onScroll":o!=null&&De("scroll",e);break;case"onScrollEnd":o!=null&&De("scrollend",e);break;case"onClick":o!=null&&(e.onclick=aa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Gp.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(c=l.endsWith("Capture"),t=l.slice(2,c?l.length-7:void 0),f=e[Dt]||null,f=f!=null?f[l]:null,typeof f=="function"&&e.removeEventListener(t,f,c),typeof o=="function")){typeof f!="function"&&f!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,o,c);break e}l in e?e[l]=o:o===!0?e.setAttribute(l,""):us(e,l,o)}}}function jt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":De("error",e),De("load",e);var o=!1,c=!1,f;for(f in l)if(l.hasOwnProperty(f)){var x=l[f];if(x!=null)switch(f){case"src":o=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Xe(e,t,f,x,l,null)}}c&&Xe(e,t,"srcSet",l.srcSet,l,null),o&&Xe(e,t,"src",l.src,l,null);return;case"input":De("invalid",e);var N=f=x=c=null,M=null,Q=null;for(o in l)if(l.hasOwnProperty(o)){var F=l[o];if(F!=null)switch(o){case"name":c=F;break;case"type":x=F;break;case"checked":M=F;break;case"defaultChecked":Q=F;break;case"value":f=F;break;case"defaultValue":N=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(i(137,t));break;default:Xe(e,t,o,F,l,null)}}Zp(e,f,N,M,Q,x,c,!1);return;case"select":De("invalid",e),o=x=f=null;for(c in l)if(l.hasOwnProperty(c)&&(N=l[c],N!=null))switch(c){case"value":f=N;break;case"defaultValue":x=N;break;case"multiple":o=N;default:Xe(e,t,c,N,l,null)}t=f,l=x,e.multiple=!!o,t!=null?pr(e,!!o,t,!1):l!=null&&pr(e,!!o,l,!0);return;case"textarea":De("invalid",e),f=c=o=null;for(x in l)if(l.hasOwnProperty(x)&&(N=l[x],N!=null))switch(x){case"value":o=N;break;case"defaultValue":c=N;break;case"children":f=N;break;case"dangerouslySetInnerHTML":if(N!=null)throw Error(i(91));break;default:Xe(e,t,x,N,l,null)}Pp(e,o,c,f);return;case"option":for(M in l)if(l.hasOwnProperty(M)&&(o=l[M],o!=null))switch(M){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:Xe(e,t,M,o,l,null)}return;case"dialog":De("beforetoggle",e),De("toggle",e),De("cancel",e),De("close",e);break;case"iframe":case"object":De("load",e);break;case"video":case"audio":for(o=0;o<vo.length;o++)De(vo[o],e);break;case"image":De("error",e),De("load",e);break;case"details":De("toggle",e);break;case"embed":case"source":case"link":De("error",e),De("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Q in l)if(l.hasOwnProperty(Q)&&(o=l[Q],o!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Xe(e,t,Q,o,l,null)}return;default:if(Jc(t)){for(F in l)l.hasOwnProperty(F)&&(o=l[F],o!==void 0&&Hf(e,t,F,o,l,void 0));return}}for(N in l)l.hasOwnProperty(N)&&(o=l[N],o!=null&&Xe(e,t,N,o,l,null))}function eN(e,t,l,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,f=null,x=null,N=null,M=null,Q=null,F=null;for(K in l){var J=l[K];if(l.hasOwnProperty(K)&&J!=null)switch(K){case"checked":break;case"value":break;case"defaultValue":M=J;default:o.hasOwnProperty(K)||Xe(e,t,K,null,o,J)}}for(var Y in o){var K=o[Y];if(J=l[Y],o.hasOwnProperty(Y)&&(K!=null||J!=null))switch(Y){case"type":f=K;break;case"name":c=K;break;case"checked":Q=K;break;case"defaultChecked":F=K;break;case"value":x=K;break;case"defaultValue":N=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(i(137,t));break;default:K!==J&&Xe(e,t,Y,K,o,J)}}Fc(e,x,N,M,Q,F,f,c);return;case"select":K=x=N=Y=null;for(f in l)if(M=l[f],l.hasOwnProperty(f)&&M!=null)switch(f){case"value":break;case"multiple":K=M;default:o.hasOwnProperty(f)||Xe(e,t,f,null,o,M)}for(c in o)if(f=o[c],M=l[c],o.hasOwnProperty(c)&&(f!=null||M!=null))switch(c){case"value":Y=f;break;case"defaultValue":N=f;break;case"multiple":x=f;default:f!==M&&Xe(e,t,c,f,o,M)}t=N,l=x,o=K,Y!=null?pr(e,!!l,Y,!1):!!o!=!!l&&(t!=null?pr(e,!!l,t,!0):pr(e,!!l,l?[]:"",!1));return;case"textarea":K=Y=null;for(N in l)if(c=l[N],l.hasOwnProperty(N)&&c!=null&&!o.hasOwnProperty(N))switch(N){case"value":break;case"children":break;default:Xe(e,t,N,null,o,c)}for(x in o)if(c=o[x],f=l[x],o.hasOwnProperty(x)&&(c!=null||f!=null))switch(x){case"value":Y=c;break;case"defaultValue":K=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(i(91));break;default:c!==f&&Xe(e,t,x,c,o,f)}Fp(e,Y,K);return;case"option":for(var he in l)if(Y=l[he],l.hasOwnProperty(he)&&Y!=null&&!o.hasOwnProperty(he))switch(he){case"selected":e.selected=!1;break;default:Xe(e,t,he,null,o,Y)}for(M in o)if(Y=o[M],K=l[M],o.hasOwnProperty(M)&&Y!==K&&(Y!=null||K!=null))switch(M){case"selected":e.selected=Y&&typeof Y!="function"&&typeof Y!="symbol";break;default:Xe(e,t,M,Y,o,K)}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 Se in l)Y=l[Se],l.hasOwnProperty(Se)&&Y!=null&&!o.hasOwnProperty(Se)&&Xe(e,t,Se,null,o,Y);for(Q in o)if(Y=o[Q],K=l[Q],o.hasOwnProperty(Q)&&Y!==K&&(Y!=null||K!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,t));break;default:Xe(e,t,Q,Y,o,K)}return;default:if(Jc(t)){for(var $e in l)Y=l[$e],l.hasOwnProperty($e)&&Y!==void 0&&!o.hasOwnProperty($e)&&Hf(e,t,$e,void 0,o,Y);for(F in o)Y=o[F],K=l[F],!o.hasOwnProperty(F)||Y===K||Y===void 0&&K===void 0||Hf(e,t,F,Y,o,K);return}}for(var z in l)Y=l[z],l.hasOwnProperty(z)&&Y!=null&&!o.hasOwnProperty(z)&&Xe(e,t,z,null,o,Y);for(J in o)Y=o[J],K=l[J],!o.hasOwnProperty(J)||Y===K||Y==null&&K==null||Xe(e,t,J,Y,o,K)}function Iy(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function tN(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),o=0;o<l.length;o++){var c=l[o],f=c.transferSize,x=c.initiatorType,N=c.duration;if(f&&N&&Iy(x)){for(x=0,N=c.responseEnd,o+=1;o<l.length;o++){var M=l[o],Q=M.startTime;if(Q>N)break;var F=M.transferSize,J=M.initiatorType;F&&Iy(J)&&(M=M.responseEnd,x+=F*(M<N?1:(N-Q)/(M-Q)))}if(--o,t+=8*(f+x)/(c.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var qf=null,Bf=null;function ou(e){return e.nodeType===9?e:e.ownerDocument}function e0(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function t0(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Qf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Yf=null;function nN(){var e=window.event;return e&&e.type==="popstate"?e===Yf?!1:(Yf=e,!0):(Yf=null,!1)}var n0=typeof setTimeout=="function"?setTimeout:void 0,aN=typeof clearTimeout=="function"?clearTimeout:void 0,a0=typeof Promise=="function"?Promise:void 0,lN=typeof queueMicrotask=="function"?queueMicrotask:typeof a0<"u"?function(e){return a0.resolve(null).then(e).catch(rN)}:n0;function rN(e){setTimeout(function(){throw e})}function Wa(e){return e==="head"}function l0(e,t){var l=t,o=0;do{var c=l.nextSibling;if(e.removeChild(l),c&&c.nodeType===8)if(l=c.data,l==="/$"||l==="/&"){if(o===0){e.removeChild(c),$r(t);return}o--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")o++;else if(l==="html")yo(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,yo(l);for(var f=l.firstChild;f;){var x=f.nextSibling,N=f.nodeName;f[zi]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&f.rel.toLowerCase()==="stylesheet"||l.removeChild(f),f=x}}else l==="body"&&yo(e.ownerDocument.body);l=c}while(l);$r(t)}function r0(e,t){var l=e;e=0;do{var o=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),o&&o.nodeType===8)if(l=o.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=o}while(l)}function Gf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Gf(l),$c(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function iN(e,t,l,o){for(;e.nodeType===1;){var c=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[zi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=pn(e.nextSibling),e===null)break}return null}function oN(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=pn(e.nextSibling),e===null))return null;return e}function i0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=pn(e.nextSibling),e===null))return null;return e}function Vf(e){return e.data==="$?"||e.data==="$~"}function Kf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function sN(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var o=function(){t(),l.removeEventListener("DOMContentLoaded",o)};l.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function pn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Xf=null;function o0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return pn(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function s0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function u0(e,t,l){switch(t=ou(l),e){case"html":if(e=t.documentElement,!e)throw Error(i(452));return e;case"head":if(e=t.head,!e)throw Error(i(453));return e;case"body":if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function yo(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);$c(e)}var vn=new Map,c0=new Set;function su(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ba=W.d;W.d={f:uN,r:cN,D:dN,C:fN,L:hN,m:mN,X:vN,S:pN,M:gN};function uN(){var e=ba.f(),t=Is();return e||t}function cN(e){var t=fr(e);t!==null&&t.tag===5&&t.type==="form"?Rg(t):ba.r(e)}var Vr=typeof document>"u"?null:document;function d0(e,t,l){var o=Vr;if(o&&typeof t=="string"&&t){var c=sn(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof l=="string"&&(c+='[crossorigin="'+l+'"]'),c0.has(c)||(c0.add(c),e={rel:e,crossOrigin:l,href:t},o.querySelector(c)===null&&(t=o.createElement("link"),jt(t,"link",e),gt(t),o.head.appendChild(t)))}}function dN(e){ba.D(e),d0("dns-prefetch",e,null)}function fN(e,t){ba.C(e,t),d0("preconnect",e,t)}function hN(e,t,l){ba.L(e,t,l);var o=Vr;if(o&&e&&t){var c='link[rel="preload"][as="'+sn(t)+'"]';t==="image"&&l&&l.imageSrcSet?(c+='[imagesrcset="'+sn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(c+='[imagesizes="'+sn(l.imageSizes)+'"]')):c+='[href="'+sn(e)+'"]';var f=c;switch(t){case"style":f=Kr(e);break;case"script":f=Xr(e)}vn.has(f)||(e=b({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),vn.set(f,e),o.querySelector(c)!==null||t==="style"&&o.querySelector(bo(f))||t==="script"&&o.querySelector(xo(f))||(t=o.createElement("link"),jt(t,"link",e),gt(t),o.head.appendChild(t)))}}function mN(e,t){ba.m(e,t);var l=Vr;if(l&&e){var o=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+sn(o)+'"][href="'+sn(e)+'"]',f=c;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=Xr(e)}if(!vn.has(f)&&(e=b({rel:"modulepreload",href:e},t),vn.set(f,e),l.querySelector(c)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(xo(f)))return}o=l.createElement("link"),jt(o,"link",e),gt(o),l.head.appendChild(o)}}}function pN(e,t,l){ba.S(e,t,l);var o=Vr;if(o&&e){var c=hr(o).hoistableStyles,f=Kr(e);t=t||"default";var x=c.get(f);if(!x){var N={loading:0,preload:null};if(x=o.querySelector(bo(f)))N.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},l),(l=vn.get(f))&&$f(e,l);var M=x=o.createElement("link");gt(M),jt(M,"link",e),M._p=new Promise(function(Q,F){M.onload=Q,M.onerror=F}),M.addEventListener("load",function(){N.loading|=1}),M.addEventListener("error",function(){N.loading|=2}),N.loading|=4,uu(x,t,o)}x={type:"stylesheet",instance:x,count:1,state:N},c.set(f,x)}}}function vN(e,t){ba.X(e,t);var l=Vr;if(l&&e){var o=hr(l).hoistableScripts,c=Xr(e),f=o.get(c);f||(f=l.querySelector(xo(c)),f||(e=b({src:e,async:!0},t),(t=vn.get(c))&&Zf(e,t),f=l.createElement("script"),gt(f),jt(f,"link",e),l.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(c,f))}}function gN(e,t){ba.M(e,t);var l=Vr;if(l&&e){var o=hr(l).hoistableScripts,c=Xr(e),f=o.get(c);f||(f=l.querySelector(xo(c)),f||(e=b({src:e,async:!0,type:"module"},t),(t=vn.get(c))&&Zf(e,t),f=l.createElement("script"),gt(f),jt(f,"link",e),l.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(c,f))}}function f0(e,t,l,o){var c=(c=je.current)?su(c):null;if(!c)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Kr(l.href),l=hr(c).hoistableStyles,o=l.get(t),o||(o={type:"style",instance:null,count:0,state:null},l.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Kr(l.href);var f=hr(c).hoistableStyles,x=f.get(e);if(x||(c=c.ownerDocument||c,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,x),(f=c.querySelector(bo(e)))&&!f._p&&(x.instance=f,x.state.loading=5),vn.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},vn.set(e,l),f||yN(c,e,l,x.state))),t&&o===null)throw Error(i(528,""));return x}if(t&&o!==null)throw Error(i(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Xr(l),l=hr(c).hoistableScripts,o=l.get(t),o||(o={type:"script",instance:null,count:0,state:null},l.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Kr(e){return'href="'+sn(e)+'"'}function bo(e){return'link[rel="stylesheet"]['+e+"]"}function h0(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function yN(e,t,l,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=1:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2}),jt(t,"link",l),gt(t),e.head.appendChild(t))}function Xr(e){return'[src="'+sn(e)+'"]'}function xo(e){return"script[async]"+e}function m0(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+sn(l.href)+'"]');if(o)return t.instance=o,gt(o),o;var c=b({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),gt(o),jt(o,"style",c),uu(o,l.precedence,e),t.instance=o;case"stylesheet":c=Kr(l.href);var f=e.querySelector(bo(c));if(f)return t.state.loading|=4,t.instance=f,gt(f),f;o=h0(l),(c=vn.get(c))&&$f(o,c),f=(e.ownerDocument||e).createElement("link"),gt(f);var x=f;return x._p=new Promise(function(N,M){x.onload=N,x.onerror=M}),jt(f,"link",o),t.state.loading|=4,uu(f,l.precedence,e),t.instance=f;case"script":return f=Xr(l.src),(c=e.querySelector(xo(f)))?(t.instance=c,gt(c),c):(o=l,(c=vn.get(f))&&(o=b({},l),Zf(o,c)),e=e.ownerDocument||e,c=e.createElement("script"),gt(c),jt(c,"link",o),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(o=t.instance,t.state.loading|=4,uu(o,l.precedence,e));return t.instance}function uu(e,t,l){for(var o=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=o.length?o[o.length-1]:null,f=c,x=0;x<o.length;x++){var N=o[x];if(N.dataset.precedence===t)f=N;else if(f!==c)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function $f(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Zf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var cu=null;function p0(e,t,l){if(cu===null){var o=new Map,c=cu=new Map;c.set(l,o)}else c=cu,o=c.get(l),o||(o=new Map,c.set(l,o));if(o.has(e))return o;for(o.set(e,null),l=l.getElementsByTagName(e),c=0;c<l.length;c++){var f=l[c];if(!(f[zi]||f[bt]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var x=f.getAttribute(t)||"";x=e+x;var N=o.get(x);N?N.push(f):o.set(x,[f])}}return o}function v0(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function bN(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function g0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function xN(e,t,l,o){if(l.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var c=Kr(o.href),f=t.querySelector(bo(c));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=du.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=f,gt(f);return}f=t.ownerDocument||t,o=h0(o),(c=vn.get(c))&&$f(o,c),f=f.createElement("link"),gt(f);var x=f;x._p=new Promise(function(N,M){x.onload=N,x.onerror=M}),jt(f,"link",o),l.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=du.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Ff=0;function wN(e,t){return e.stylesheets&&e.count===0&&hu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var o=setTimeout(function(){if(e.stylesheets&&hu(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&Ff===0&&(Ff=62500*tN());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&hu(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>Ff?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(c)}}:null}function du(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)hu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var fu=null;function hu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,fu=new Map,t.forEach(SN,e),fu=null,du.call(e))}function SN(e,t){if(!(t.state.loading&4)){var l=fu.get(e);if(l)var o=l.get(null);else{l=new Map,fu.set(e,l);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<c.length;f++){var x=c[f];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(l.set(x.dataset.precedence,x),o=x)}o&&l.set(null,o)}c=t.instance,x=c.getAttribute("data-precedence"),f=l.get(x)||o,f===o&&l.set(null,c),l.set(x,c),this.count++,o=du.bind(this),c.addEventListener("load",o),c.addEventListener("error",o),f?f.parentNode.insertBefore(c,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var wo={$$typeof:T,Provider:null,Consumer:null,_currentValue:V,_currentValue2:V,_threadCount:0};function jN(e,t,l,o,c,f,x,N,M){this.tag=1,this.containerInfo=e,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=Gc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gc(0),this.hiddenUpdates=Gc(null),this.identifierPrefix=o,this.onUncaughtError=c,this.onCaughtError=f,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map}function y0(e,t,l,o,c,f,x,N,M,Q,F,J){return e=new jN(e,t,l,x,M,Q,F,J,N),t=1,f===!0&&(t|=24),f=Pt(3,null,null,t),e.current=f,f.stateNode=e,t=Rd(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:o,isDehydrated:l,cache:t},Ad(f),e}function b0(e){return e?(e=jr,e):jr}function x0(e,t,l,o,c,f){c=b0(c),o.context===null?o.context=c:o.pendingContext=c,o=Qa(t),o.payload={element:l},f=f===void 0?null:f,f!==null&&(o.callback=f),l=Ya(e,o,t),l!==null&&(Ht(l,e,t),Wi(l,e,t))}function w0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Pf(e,t){w0(e,t),(e=e.alternate)&&w0(e,t)}function S0(e){if(e.tag===13||e.tag===31){var t=Tl(e,67108864);t!==null&&Ht(t,e,67108864),Pf(e,67108864)}}function j0(e){if(e.tag===13||e.tag===31){var t=tn();t=Vc(t);var l=Tl(e,t);l!==null&&Ht(l,e,t),Pf(e,t)}}var mu=!0;function EN(e,t,l,o){var c=U.T;U.T=null;var f=W.p;try{W.p=2,Jf(e,t,l,o)}finally{W.p=f,U.T=c}}function NN(e,t,l,o){var c=U.T;U.T=null;var f=W.p;try{W.p=8,Jf(e,t,l,o)}finally{W.p=f,U.T=c}}function Jf(e,t,l,o){if(mu){var c=Wf(o);if(c===null)Uf(e,t,o,pu,l),N0(e,o);else if(RN(c,e,t,l,o))o.stopPropagation();else if(N0(e,o),t&4&&-1<CN.indexOf(e)){for(;c!==null;){var f=fr(c);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var x=El(f.pendingLanes);if(x!==0){var N=f;for(N.pendingLanes|=2,N.entangledLanes|=2;x;){var M=1<<31-Zt(x);N.entanglements[1]|=M,x&=~M}Yn(f),(Be&6)===0&&(Js=Xt()+500,po(0))}}break;case 31:case 13:N=Tl(f,2),N!==null&&Ht(N,f,2),Is(),Pf(f,2)}if(f=Wf(o),f===null&&Uf(e,t,o,pu,l),f===c)break;c=f}c!==null&&o.stopPropagation()}else Uf(e,t,o,null,l)}}function Wf(e){return e=Ic(e),If(e)}var pu=null;function If(e){if(pu=null,e=dr(e),e!==null){var t=u(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=h(t),e!==null)return e;e=null}else if(l===31){if(e=m(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return pu=e,null}function E0(e){switch(e){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(d2()){case Dp:return 2;case kp:return 8;case ls:case f2:return 32;case Op:return 268435456;default:return 32}default:return 32}}var eh=!1,Ia=null,el=null,tl=null,So=new Map,jo=new Map,nl=[],CN="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 N0(e,t){switch(e){case"focusin":case"focusout":Ia=null;break;case"dragenter":case"dragleave":el=null;break;case"mouseover":case"mouseout":tl=null;break;case"pointerover":case"pointerout":So.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":jo.delete(t.pointerId)}}function Eo(e,t,l,o,c,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:l,eventSystemFlags:o,nativeEvent:f,targetContainers:[c]},t!==null&&(t=fr(t),t!==null&&S0(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function RN(e,t,l,o,c){switch(t){case"focusin":return Ia=Eo(Ia,e,t,l,o,c),!0;case"dragenter":return el=Eo(el,e,t,l,o,c),!0;case"mouseover":return tl=Eo(tl,e,t,l,o,c),!0;case"pointerover":var f=c.pointerId;return So.set(f,Eo(So.get(f)||null,e,t,l,o,c)),!0;case"gotpointercapture":return f=c.pointerId,jo.set(f,Eo(jo.get(f)||null,e,t,l,o,c)),!0}return!1}function C0(e){var t=dr(e.target);if(t!==null){var l=u(t);if(l!==null){if(t=l.tag,t===13){if(t=h(l),t!==null){e.blockedOn=t,Bp(e.priority,function(){j0(l)});return}}else if(t===31){if(t=m(l),t!==null){e.blockedOn=t,Bp(e.priority,function(){j0(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function vu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Wf(e.nativeEvent);if(l===null){l=e.nativeEvent;var o=new l.constructor(l.type,l);Wc=o,l.target.dispatchEvent(o),Wc=null}else return t=fr(l),t!==null&&S0(t),e.blockedOn=l,!1;t.shift()}return!0}function R0(e,t,l){vu(e)&&l.delete(t)}function _N(){eh=!1,Ia!==null&&vu(Ia)&&(Ia=null),el!==null&&vu(el)&&(el=null),tl!==null&&vu(tl)&&(tl=null),So.forEach(R0),jo.forEach(R0)}function gu(e,t){e.blockedOn===t&&(e.blockedOn=null,eh||(eh=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,_N)))}var yu=null;function _0(e){yu!==e&&(yu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){yu===e&&(yu=null);for(var t=0;t<e.length;t+=3){var l=e[t],o=e[t+1],c=e[t+2];if(typeof o!="function"){if(If(o||l)===null)continue;break}var f=fr(l);f!==null&&(e.splice(t,3),t-=3,Jd(f,{pending:!0,data:c,method:l.method,action:o},o,c))}}))}function $r(e){function t(M){return gu(M,e)}Ia!==null&&gu(Ia,e),el!==null&&gu(el,e),tl!==null&&gu(tl,e),So.forEach(t),jo.forEach(t);for(var l=0;l<nl.length;l++){var o=nl[l];o.blockedOn===e&&(o.blockedOn=null)}for(;0<nl.length&&(l=nl[0],l.blockedOn===null);)C0(l),l.blockedOn===null&&nl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(o=0;o<l.length;o+=3){var c=l[o],f=l[o+1],x=c[Dt]||null;if(typeof f=="function")x||_0(l);else if(x){var N=null;if(f&&f.hasAttribute("formAction")){if(c=f,x=f[Dt]||null)N=x.formAction;else if(If(c)!==null)continue}else N=x.action;typeof N=="function"?l[o+1]=N:(l.splice(o,3),o-=3),_0(l)}}}function T0(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(x){return c=x})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),o||setTimeout(l,20)}function l(){if(!o&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function th(e){this._internalRoot=e}bu.prototype.render=th.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var l=t.current,o=tn();x0(l,o,e,t,null,null)},bu.prototype.unmount=th.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;x0(e.current,2,null,e,null,null),Is(),t[cr]=null}};function bu(e){this._internalRoot=e}bu.prototype.unstable_scheduleHydration=function(e){if(e){var t=qp();e={blockedOn:null,target:e,priority:t};for(var l=0;l<nl.length&&t!==0&&t<nl[l].priority;l++);nl.splice(l,0,e),l===0&&C0(e)}};var M0=a.version;if(M0!=="19.2.3")throw Error(i(527,M0,"19.2.3"));W.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=g(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var TN={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var xu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xu.isDisabled&&xu.supportsFiber)try{Di=xu.inject(TN),$t=xu}catch{}}return Co.createRoot=function(e,t){if(!s(e))throw Error(i(299));var l=!1,o="",c=Ug,f=Hg,x=qg;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(x=t.onRecoverableError)),t=y0(e,1,!1,null,null,l,o,null,c,f,x,T0),e[cr]=t.current,Lf(e),new th(t)},Co.hydrateRoot=function(e,t,l){if(!s(e))throw Error(i(299));var o=!1,c="",f=Ug,x=Hg,N=qg,M=null;return l!=null&&(l.unstable_strictMode===!0&&(o=!0),l.identifierPrefix!==void 0&&(c=l.identifierPrefix),l.onUncaughtError!==void 0&&(f=l.onUncaughtError),l.onCaughtError!==void 0&&(x=l.onCaughtError),l.onRecoverableError!==void 0&&(N=l.onRecoverableError),l.formState!==void 0&&(M=l.formState)),t=y0(e,1,!0,t,l??null,o,c,M,f,x,N,T0),t.context=b0(null),l=t.current,o=tn(),o=Vc(o),c=Qa(o),c.callback=null,Ya(l,c,o),l=o,t.current.lanes=l,Oi(t,l),Yn(t),e[cr]=t.current,Lf(e),new bu(t)},Co.version="19.2.3",Co}var P0;function gC(){if(P0)return ih.exports;P0=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),ih.exports=vC(),ih.exports}var yC=gC(),Ro={},J0;function bC(){if(J0)return Ro;J0=1,Object.defineProperty(Ro,"__esModule",{value:!0}),Ro.parse=h,Ro.serialize=g;const n=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,a=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/,s=Object.prototype.toString,u=(()=>{const w=function(){};return w.prototype=Object.create(null),w})();function h(w,j){const E=new u,S=w.length;if(S<2)return E;const C=(j==null?void 0:j.decode)||y;let R=0;do{const _=w.indexOf("=",R);if(_===-1)break;const T=w.indexOf(";",R),k=T===-1?S:T;if(_>k){R=w.lastIndexOf(";",_-1)+1;continue}const L=m(w,R,_),X=p(w,_,L),q=w.slice(L,X);if(E[q]===void 0){let H=m(w,_+1,k),G=p(w,k,H);const te=C(w.slice(H,G));E[q]=te}R=k+1}while(R<S);return E}function m(w,j,E){do{const S=w.charCodeAt(j);if(S!==32&&S!==9)return j}while(++j<E);return E}function p(w,j,E){for(;j>E;){const S=w.charCodeAt(--j);if(S!==32&&S!==9)return j+1}return E}function g(w,j,E){const S=(E==null?void 0:E.encode)||encodeURIComponent;if(!n.test(w))throw new TypeError(`argument name is invalid: ${w}`);const C=S(j);if(!a.test(C))throw new TypeError(`argument val is invalid: ${j}`);let R=w+"="+C;if(!E)return R;if(E.maxAge!==void 0){if(!Number.isInteger(E.maxAge))throw new TypeError(`option maxAge is invalid: ${E.maxAge}`);R+="; Max-Age="+E.maxAge}if(E.domain){if(!r.test(E.domain))throw new TypeError(`option domain is invalid: ${E.domain}`);R+="; Domain="+E.domain}if(E.path){if(!i.test(E.path))throw new TypeError(`option path is invalid: ${E.path}`);R+="; Path="+E.path}if(E.expires){if(!b(E.expires)||!Number.isFinite(E.expires.valueOf()))throw new TypeError(`option expires is invalid: ${E.expires}`);R+="; Expires="+E.expires.toUTCString()}if(E.httpOnly&&(R+="; HttpOnly"),E.secure&&(R+="; Secure"),E.partitioned&&(R+="; Partitioned"),E.priority)switch(typeof E.priority=="string"?E.priority.toLowerCase():void 0){case"low":R+="; Priority=Low";break;case"medium":R+="; Priority=Medium";break;case"high":R+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${E.priority}`)}if(E.sameSite)switch(typeof E.sameSite=="string"?E.sameSite.toLowerCase():E.sameSite){case!0:case"strict":R+="; SameSite=Strict";break;case"lax":R+="; SameSite=Lax";break;case"none":R+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${E.sameSite}`)}return R}function y(w){if(w.indexOf("%")===-1)return w;try{return decodeURIComponent(w)}catch{return w}}function b(w){return s.call(w)==="[object Date]"}return Ro}bC();var W0="popstate";function xC(n={}){function a(s,u){let{pathname:h="/",search:m="",hash:p=""}=rr(s.location.hash.substring(1));return!h.startsWith("/")&&!h.startsWith(".")&&(h="/"+h),Yh("",{pathname:h,search:m,hash:p},u.state&&u.state.usr||null,u.state&&u.state.key||"default")}function r(s,u){let h=s.document.querySelector("base"),m="";if(h&&h.getAttribute("href")){let p=s.location.href,g=p.indexOf("#");m=g===-1?p:p.slice(0,g)}return m+"#"+(typeof u=="string"?u:qo(u))}function i(s,u){Sn(s.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(u)})`)}return SC(a,r,i,n)}function Ie(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function Sn(n,a){if(!n){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function wC(){return Math.random().toString(36).substring(2,10)}function I0(n,a){return{usr:n.state,key:n.key,idx:a}}function Yh(n,a,r=null,i){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof a=="string"?rr(a):a,state:r,key:a&&a.key||i||wC()}}function qo({pathname:n="/",search:a="",hash:r=""}){return a&&a!=="?"&&(n+=a.charAt(0)==="?"?a:"?"+a),r&&r!=="#"&&(n+=r.charAt(0)==="#"?r:"#"+r),n}function rr(n){let a={};if(n){let r=n.indexOf("#");r>=0&&(a.hash=n.substring(r),n=n.substring(0,r));let i=n.indexOf("?");i>=0&&(a.search=n.substring(i),n=n.substring(0,i)),n&&(a.pathname=n)}return a}function SC(n,a,r,i={}){let{window:s=document.defaultView,v5Compat:u=!1}=i,h=s.history,m="POP",p=null,g=y();g==null&&(g=0,h.replaceState({...h.state,idx:g},""));function y(){return(h.state||{idx:null}).idx}function b(){m="POP";let C=y(),R=C==null?null:C-g;g=C,p&&p({action:m,location:S.location,delta:R})}function w(C,R){m="PUSH";let _=Yh(S.location,C,R);r&&r(_,C),g=y()+1;let T=I0(_,g),k=S.createHref(_);try{h.pushState(T,"",k)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;s.location.assign(k)}u&&p&&p({action:m,location:S.location,delta:1})}function j(C,R){m="REPLACE";let _=Yh(S.location,C,R);r&&r(_,C),g=y();let T=I0(_,g),k=S.createHref(_);h.replaceState(T,"",k),u&&p&&p({action:m,location:S.location,delta:0})}function E(C){return jC(C)}let S={get action(){return m},get location(){return n(s,h)},listen(C){if(p)throw new Error("A history only accepts one active listener");return s.addEventListener(W0,b),p=C,()=>{s.removeEventListener(W0,b),p=null}},createHref(C){return a(s,C)},createURL:E,encodeLocation(C){let R=E(C);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:w,replace:j,go(C){return h.go(C)}};return S}function jC(n,a=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Ie(r,"No window.location.(origin|href) available to create URL");let i=typeof n=="string"?n:qo(n);return i=i.replace(/ $/,"%20"),!a&&i.startsWith("//")&&(i=r+i),new URL(i,r)}function Sx(n,a,r="/"){return EC(n,a,r,!1)}function EC(n,a,r,i){let s=typeof a=="string"?rr(a):a,u=_a(s.pathname||"/",r);if(u==null)return null;let h=jx(n);NC(h);let m=null;for(let p=0;m==null&&p<h.length;++p){let g=LC(u);m=OC(h[p],g,i)}return m}function jx(n,a=[],r=[],i=""){let s=(u,h,m)=>{let p={relativePath:m===void 0?u.path||"":m,caseSensitive:u.caseSensitive===!0,childrenIndex:h,route:u};p.relativePath.startsWith("/")&&(Ie(p.relativePath.startsWith(i),`Absolute route path "${p.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(i.length));let g=Na([i,p.relativePath]),y=r.concat(p);u.children&&u.children.length>0&&(Ie(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),jx(u.children,a,y,g)),!(u.path==null&&!u.index)&&a.push({path:g,score:DC(g,u.index),routesMeta:y})};return n.forEach((u,h)=>{var m;if(u.path===""||!((m=u.path)!=null&&m.includes("?")))s(u,h);else for(let p of Ex(u.path))s(u,h,p)}),a}function Ex(n){let a=n.split("/");if(a.length===0)return[];let[r,...i]=a,s=r.endsWith("?"),u=r.replace(/\?$/,"");if(i.length===0)return s?[u,""]:[u];let h=Ex(i.join("/")),m=[];return m.push(...h.map(p=>p===""?u:[u,p].join("/"))),s&&m.push(...h),m.map(p=>n.startsWith("/")&&p===""?"/":p)}function NC(n){n.sort((a,r)=>a.score!==r.score?r.score-a.score:kC(a.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var CC=/^:[\w-]+$/,RC=3,_C=2,TC=1,MC=10,AC=-2,eb=n=>n==="*";function DC(n,a){let r=n.split("/"),i=r.length;return r.some(eb)&&(i+=AC),a&&(i+=_C),r.filter(s=>!eb(s)).reduce((s,u)=>s+(CC.test(u)?RC:u===""?TC:MC),i)}function kC(n,a){return n.length===a.length&&n.slice(0,-1).every((i,s)=>i===a[s])?n[n.length-1]-a[a.length-1]:0}function OC(n,a,r=!1){let{routesMeta:i}=n,s={},u="/",h=[];for(let m=0;m<i.length;++m){let p=i[m],g=m===i.length-1,y=u==="/"?a:a.slice(u.length)||"/",b=Yu({path:p.relativePath,caseSensitive:p.caseSensitive,end:g},y),w=p.route;if(!b&&g&&r&&!i[i.length-1].route.index&&(b=Yu({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},y)),!b)return null;Object.assign(s,b.params),h.push({params:s,pathname:Na([u,b.pathname]),pathnameBase:BC(Na([u,b.pathnameBase])),route:w}),b.pathnameBase!=="/"&&(u=Na([u,b.pathnameBase]))}return h}function Yu(n,a){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,i]=zC(n.path,n.caseSensitive,n.end),s=a.match(r);if(!s)return null;let u=s[0],h=u.replace(/(.)\/+$/,"$1"),m=s.slice(1);return{params:i.reduce((g,{paramName:y,isOptional:b},w)=>{if(y==="*"){let E=m[w]||"";h=u.slice(0,u.length-E.length).replace(/(.)\/+$/,"$1")}const j=m[w];return b&&!j?g[y]=void 0:g[y]=(j||"").replace(/%2F/g,"/"),g},{}),pathname:u,pathnameBase:h,pattern:n}}function zC(n,a=!1,r=!0){Sn(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let i=[],s="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,m,p)=>(i.push({paramName:m,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(i.push({paramName:"*"}),s+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":n!==""&&n!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,a?void 0:"i"),i]}function LC(n){try{return n.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return Sn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),n}}function _a(n,a){if(a==="/")return n;if(!n.toLowerCase().startsWith(a.toLowerCase()))return null;let r=a.endsWith("/")?a.length-1:a.length,i=n.charAt(r);return i&&i!=="/"?null:n.slice(r)||"/"}function UC(n,a="/"){let{pathname:r,search:i="",hash:s=""}=typeof n=="string"?rr(n):n;return{pathname:r?r.startsWith("/")?r:HC(r,a):a,search:QC(i),hash:YC(s)}}function HC(n,a){let r=a.replace(/\/+$/,"").split("/");return n.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function ch(n,a,r,i){return`Cannot include a '${n}' character in a manually specified \`to.${a}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function qC(n){return n.filter((a,r)=>r===0||a.route.path&&a.route.path.length>0)}function xm(n){let a=qC(n);return a.map((r,i)=>i===a.length-1?r.pathname:r.pathnameBase)}function wm(n,a,r,i=!1){let s;typeof n=="string"?s=rr(n):(s={...n},Ie(!s.pathname||!s.pathname.includes("?"),ch("?","pathname","search",s)),Ie(!s.pathname||!s.pathname.includes("#"),ch("#","pathname","hash",s)),Ie(!s.search||!s.search.includes("#"),ch("#","search","hash",s)));let u=n===""||s.pathname==="",h=u?"/":s.pathname,m;if(h==null)m=r;else{let b=a.length-1;if(!i&&h.startsWith("..")){let w=h.split("/");for(;w[0]==="..";)w.shift(),b-=1;s.pathname=w.join("/")}m=b>=0?a[b]:"/"}let p=UC(s,m),g=h&&h!=="/"&&h.endsWith("/"),y=(u||h===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(g||y)&&(p.pathname+="/"),p}var Na=n=>n.join("/").replace(/\/\/+/g,"/"),BC=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),QC=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,YC=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function GC(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var Nx=["POST","PUT","PATCH","DELETE"];new Set(Nx);var VC=["GET",...Nx];new Set(VC);var xi=v.createContext(null);xi.displayName="DataRouter";var rc=v.createContext(null);rc.displayName="DataRouterState";var Cx=v.createContext({isTransitioning:!1});Cx.displayName="ViewTransition";var KC=v.createContext(new Map);KC.displayName="Fetchers";var XC=v.createContext(null);XC.displayName="Await";var zn=v.createContext(null);zn.displayName="Navigation";var Zo=v.createContext(null);Zo.displayName="Location";var Ln=v.createContext({outlet:null,matches:[],isDataRoute:!1});Ln.displayName="Route";var Sm=v.createContext(null);Sm.displayName="RouteError";function $C(n,{relative:a}={}){Ie(wi(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=v.useContext(zn),{hash:s,pathname:u,search:h}=Fo(n,{relative:a}),m=u;return r!=="/"&&(m=u==="/"?r:Na([r,u])),i.createHref({pathname:m,search:h,hash:s})}function wi(){return v.useContext(Zo)!=null}function Aa(){return Ie(wi(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(Zo).location}var Rx="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function _x(n){v.useContext(zn).static||v.useLayoutEffect(n)}function Tx(){let{isDataRoute:n}=v.useContext(Ln);return n?iR():ZC()}function ZC(){Ie(wi(),"useNavigate() may be used only in the context of a <Router> component.");let n=v.useContext(xi),{basename:a,navigator:r}=v.useContext(zn),{matches:i}=v.useContext(Ln),{pathname:s}=Aa(),u=JSON.stringify(xm(i)),h=v.useRef(!1);return _x(()=>{h.current=!0}),v.useCallback((p,g={})=>{if(Sn(h.current,Rx),!h.current)return;if(typeof p=="number"){r.go(p);return}let y=wm(p,JSON.parse(u),s,g.relative==="path");n==null&&a!=="/"&&(y.pathname=y.pathname==="/"?a:Na([a,y.pathname])),(g.replace?r.replace:r.push)(y,g.state,g)},[a,r,u,s,n])}v.createContext(null);function ic(){let{matches:n}=v.useContext(Ln),a=n[n.length-1];return a?a.params:{}}function Fo(n,{relative:a}={}){let{matches:r}=v.useContext(Ln),{pathname:i}=Aa(),s=JSON.stringify(xm(r));return v.useMemo(()=>wm(n,JSON.parse(s),i,a==="path"),[n,s,i,a])}function FC(n,a){return Mx(n,a)}function Mx(n,a,r,i){var R;Ie(wi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=v.useContext(zn),{matches:u}=v.useContext(Ln),h=u[u.length-1],m=h?h.params:{},p=h?h.pathname:"/",g=h?h.pathnameBase:"/",y=h&&h.route;{let _=y&&y.path||"";Ax(p,!y||_.endsWith("*")||_.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${_}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
50
|
+
|
|
51
|
+
Please change the parent <Route path="${_}"> to <Route path="${_==="/"?"*":`${_}/*`}">.`)}let b=Aa(),w;if(a){let _=typeof a=="string"?rr(a):a;Ie(g==="/"||((R=_.pathname)==null?void 0:R.startsWith(g)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${_.pathname}" was given in the \`location\` prop.`),w=_}else w=b;let j=w.pathname||"/",E=j;if(g!=="/"){let _=g.replace(/^\//,"").split("/");E="/"+j.replace(/^\//,"").split("/").slice(_.length).join("/")}let S=Sx(n,{pathname:E});Sn(y||S!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),Sn(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let C=eR(S&&S.map(_=>Object.assign({},_,{params:Object.assign({},m,_.params),pathname:Na([g,s.encodeLocation?s.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?g:Na([g,s.encodeLocation?s.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),u,r,i);return a&&C?v.createElement(Zo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},C):C}function PC(){let n=rR(),a=GC(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),r=n instanceof Error?n.stack:null,i="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:i},u={padding:"2px 4px",backgroundColor:i},h=null;return console.error("Error handled by React Router default ErrorBoundary:",n),h=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:u},"ErrorBoundary")," or"," ",v.createElement("code",{style:u},"errorElement")," prop on your route.")),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},a),r?v.createElement("pre",{style:s},r):null,h)}var JC=v.createElement(PC,null),WC=class extends v.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,a){return a.location!==n.location||a.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:a.error,location:a.location,revalidation:n.revalidation||a.revalidation}}componentDidCatch(n,a){console.error("React Router caught the following error during render",n,a)}render(){return this.state.error!==void 0?v.createElement(Ln.Provider,{value:this.props.routeContext},v.createElement(Sm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function IC({routeContext:n,match:a,children:r}){let i=v.useContext(xi);return i&&i.static&&i.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=a.route.id),v.createElement(Ln.Provider,{value:n},r)}function eR(n,a=[],r=null,i=null){if(n==null){if(!r)return null;if(r.errors)n=r.matches;else if(a.length===0&&!r.initialized&&r.matches.length>0)n=r.matches;else return null}let s=n,u=r==null?void 0:r.errors;if(u!=null){let p=s.findIndex(g=>g.route.id&&(u==null?void 0:u[g.route.id])!==void 0);Ie(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),s=s.slice(0,Math.min(s.length,p+1))}let h=!1,m=-1;if(r)for(let p=0;p<s.length;p++){let g=s[p];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(m=p),g.route.id){let{loaderData:y,errors:b}=r,w=g.route.loader&&!y.hasOwnProperty(g.route.id)&&(!b||b[g.route.id]===void 0);if(g.route.lazy||w){h=!0,m>=0?s=s.slice(0,m+1):s=[s[0]];break}}}return s.reduceRight((p,g,y)=>{let b,w=!1,j=null,E=null;r&&(b=u&&g.route.id?u[g.route.id]:void 0,j=g.route.errorElement||JC,h&&(m<0&&y===0?(Ax("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,E=null):m===y&&(w=!0,E=g.route.hydrateFallbackElement||null)));let S=a.concat(s.slice(0,y+1)),C=()=>{let R;return b?R=j:w?R=E:g.route.Component?R=v.createElement(g.route.Component,null):g.route.element?R=g.route.element:R=p,v.createElement(IC,{match:g,routeContext:{outlet:p,matches:S,isDataRoute:r!=null},children:R})};return r&&(g.route.ErrorBoundary||g.route.errorElement||y===0)?v.createElement(WC,{location:r.location,revalidation:r.revalidation,component:j,error:b,children:C(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):C()},null)}function jm(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function tR(n){let a=v.useContext(xi);return Ie(a,jm(n)),a}function nR(n){let a=v.useContext(rc);return Ie(a,jm(n)),a}function aR(n){let a=v.useContext(Ln);return Ie(a,jm(n)),a}function Em(n){let a=aR(n),r=a.matches[a.matches.length-1];return Ie(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function lR(){return Em("useRouteId")}function rR(){var i;let n=v.useContext(Sm),a=nR("useRouteError"),r=Em("useRouteError");return n!==void 0?n:(i=a.errors)==null?void 0:i[r]}function iR(){let{router:n}=tR("useNavigate"),a=Em("useNavigate"),r=v.useRef(!1);return _x(()=>{r.current=!0}),v.useCallback(async(s,u={})=>{Sn(r.current,Rx),r.current&&(typeof s=="number"?n.navigate(s):await n.navigate(s,{fromRouteId:a,...u}))},[n,a])}var tb={};function Ax(n,a,r){!a&&!tb[n]&&(tb[n]=!0,Sn(!1,r))}v.memo(oR);function oR({routes:n,future:a,state:r}){return Mx(n,void 0,r,a)}function ju({to:n,replace:a,state:r,relative:i}){Ie(wi(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=v.useContext(zn);Sn(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:u}=v.useContext(Ln),{pathname:h}=Aa(),m=Tx(),p=wm(n,xm(u),h,i==="path"),g=JSON.stringify(p);return v.useEffect(()=>{m(JSON.parse(g),{replace:a,state:r,relative:i})},[m,g,i,a,r]),null}function Gl(n){Ie(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function sR({basename:n="/",children:a=null,location:r,navigationType:i="POP",navigator:s,static:u=!1}){Ie(!wi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=n.replace(/^\/*/,"/"),m=v.useMemo(()=>({basename:h,navigator:s,static:u,future:{}}),[h,s,u]);typeof r=="string"&&(r=rr(r));let{pathname:p="/",search:g="",hash:y="",state:b=null,key:w="default"}=r,j=v.useMemo(()=>{let E=_a(p,h);return E==null?null:{location:{pathname:E,search:g,hash:y,state:b,key:w},navigationType:i}},[h,p,g,y,b,w,i]);return Sn(j!=null,`<Router basename="${h}"> is not able to match the URL "${p}${g}${y}" because it does not start with the basename, so the <Router> won't render anything.`),j==null?null:v.createElement(zn.Provider,{value:m},v.createElement(Zo.Provider,{children:a,value:j}))}function uR({children:n,location:a}){return FC(Gh(n),a)}function Gh(n,a=[]){let r=[];return v.Children.forEach(n,(i,s)=>{if(!v.isValidElement(i))return;let u=[...a,s];if(i.type===v.Fragment){r.push.apply(r,Gh(i.props.children,u));return}Ie(i.type===Gl,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ie(!i.props.index||!i.props.children,"An index route cannot have child routes.");let h={id:i.props.id||u.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(h.children=Gh(i.props.children,u)),r.push(h)}),r}var Ou="get",zu="application/x-www-form-urlencoded";function oc(n){return n!=null&&typeof n.tagName=="string"}function cR(n){return oc(n)&&n.tagName.toLowerCase()==="button"}function dR(n){return oc(n)&&n.tagName.toLowerCase()==="form"}function fR(n){return oc(n)&&n.tagName.toLowerCase()==="input"}function hR(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function mR(n,a){return n.button===0&&(!a||a==="_self")&&!hR(n)}var Eu=null;function pR(){if(Eu===null)try{new FormData(document.createElement("form"),0),Eu=!1}catch{Eu=!0}return Eu}var vR=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function dh(n){return n!=null&&!vR.has(n)?(Sn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${zu}"`),null):n}function gR(n,a){let r,i,s,u,h;if(dR(n)){let m=n.getAttribute("action");i=m?_a(m,a):null,r=n.getAttribute("method")||Ou,s=dh(n.getAttribute("enctype"))||zu,u=new FormData(n)}else if(cR(n)||fR(n)&&(n.type==="submit"||n.type==="image")){let m=n.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=n.getAttribute("formaction")||m.getAttribute("action");if(i=p?_a(p,a):null,r=n.getAttribute("formmethod")||m.getAttribute("method")||Ou,s=dh(n.getAttribute("formenctype"))||dh(m.getAttribute("enctype"))||zu,u=new FormData(m,n),!pR()){let{name:g,type:y,value:b}=n;if(y==="image"){let w=g?`${g}.`:"";u.append(`${w}x`,"0"),u.append(`${w}y`,"0")}else g&&u.append(g,b)}}else{if(oc(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Ou,i=null,s=zu,h=n}return u&&s==="text/plain"&&(h=u,u=void 0),{action:i,method:r.toLowerCase(),encType:s,formData:u,body:h}}function Nm(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}async function yR(n,a){if(n.id in a)return a[n.id];try{let r=await import(n.module);return a[n.id]=r,r}catch(r){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function bR(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function xR(n,a,r){let i=await Promise.all(n.map(async s=>{let u=a.routes[s.route.id];if(u){let h=await yR(u,r);return h.links?h.links():[]}return[]}));return ER(i.flat(1).filter(bR).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function nb(n,a,r,i,s,u){let h=(p,g)=>r[g]?p.route.id!==r[g].route.id:!0,m=(p,g)=>{var y;return r[g].pathname!==p.pathname||((y=r[g].route.path)==null?void 0:y.endsWith("*"))&&r[g].params["*"]!==p.params["*"]};return u==="assets"?a.filter((p,g)=>h(p,g)||m(p,g)):u==="data"?a.filter((p,g)=>{var b;let y=i.routes[p.route.id];if(!y||!y.hasLoader)return!1;if(h(p,g)||m(p,g))return!0;if(p.route.shouldRevalidate){let w=p.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((b=r[0])==null?void 0:b.params)||{},nextUrl:new URL(n,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function wR(n,a,{includeHydrateFallback:r}={}){return SR(n.map(i=>{let s=a.routes[i.route.id];if(!s)return[];let u=[s.module];return s.clientActionModule&&(u=u.concat(s.clientActionModule)),s.clientLoaderModule&&(u=u.concat(s.clientLoaderModule)),r&&s.hydrateFallbackModule&&(u=u.concat(s.hydrateFallbackModule)),s.imports&&(u=u.concat(s.imports)),u}).flat(1))}function SR(n){return[...new Set(n)]}function jR(n){let a={},r=Object.keys(n).sort();for(let i of r)a[i]=n[i];return a}function ER(n,a){let r=new Set;return new Set(a),n.reduce((i,s)=>{let u=JSON.stringify(jR(s));return r.has(u)||(r.add(u),i.push({key:u,link:s})),i},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var NR=new Set([100,101,204,205]);function CR(n,a){let r=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return r.pathname==="/"?r.pathname="_root.data":a&&_a(r.pathname,a)==="/"?r.pathname=`${a.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function Dx(){let n=v.useContext(xi);return Nm(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function RR(){let n=v.useContext(rc);return Nm(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Cm=v.createContext(void 0);Cm.displayName="FrameworkContext";function kx(){let n=v.useContext(Cm);return Nm(n,"You must render this element inside a <HydratedRouter> element"),n}function _R(n,a){let r=v.useContext(Cm),[i,s]=v.useState(!1),[u,h]=v.useState(!1),{onFocus:m,onBlur:p,onMouseEnter:g,onMouseLeave:y,onTouchStart:b}=a,w=v.useRef(null);v.useEffect(()=>{if(n==="render"&&h(!0),n==="viewport"){let S=R=>{R.forEach(_=>{h(_.isIntersecting)})},C=new IntersectionObserver(S,{threshold:.5});return w.current&&C.observe(w.current),()=>{C.disconnect()}}},[n]),v.useEffect(()=>{if(i){let S=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(S)}}},[i]);let j=()=>{s(!0)},E=()=>{s(!1),h(!1)};return r?n!=="intent"?[u,w,{}]:[u,w,{onFocus:_o(m,j),onBlur:_o(p,E),onMouseEnter:_o(g,j),onMouseLeave:_o(y,E),onTouchStart:_o(b,j)}]:[!1,w,{}]}function _o(n,a){return r=>{n&&n(r),r.defaultPrevented||a(r)}}function TR({page:n,...a}){let{router:r}=Dx(),i=v.useMemo(()=>Sx(r.routes,n,r.basename),[r.routes,n,r.basename]);return i?v.createElement(AR,{page:n,matches:i,...a}):null}function MR(n){let{manifest:a,routeModules:r}=kx(),[i,s]=v.useState([]);return v.useEffect(()=>{let u=!1;return xR(n,a,r).then(h=>{u||s(h)}),()=>{u=!0}},[n,a,r]),i}function AR({page:n,matches:a,...r}){let i=Aa(),{manifest:s,routeModules:u}=kx(),{basename:h}=Dx(),{loaderData:m,matches:p}=RR(),g=v.useMemo(()=>nb(n,a,p,s,i,"data"),[n,a,p,s,i]),y=v.useMemo(()=>nb(n,a,p,s,i,"assets"),[n,a,p,s,i]),b=v.useMemo(()=>{if(n===i.pathname+i.search+i.hash)return[];let E=new Set,S=!1;if(a.forEach(R=>{var T;let _=s.routes[R.route.id];!_||!_.hasLoader||(!g.some(k=>k.route.id===R.route.id)&&R.route.id in m&&((T=u[R.route.id])!=null&&T.shouldRevalidate)||_.hasClientLoader?S=!0:E.add(R.route.id))}),E.size===0)return[];let C=CR(n,h);return S&&E.size>0&&C.searchParams.set("_routes",a.filter(R=>E.has(R.route.id)).map(R=>R.route.id).join(",")),[C.pathname+C.search]},[h,m,i,s,g,a,n,u]),w=v.useMemo(()=>wR(y,s),[y,s]),j=MR(y);return v.createElement(v.Fragment,null,b.map(E=>v.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...r})),w.map(E=>v.createElement("link",{key:E,rel:"modulepreload",href:E,...r})),j.map(({key:E,link:S})=>v.createElement("link",{key:E,...S})))}function DR(...n){return a=>{n.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a)})}}var Ox=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Ox&&(window.__reactRouterVersion="7.6.1")}catch{}function kR({basename:n,children:a,window:r}){let i=v.useRef();i.current==null&&(i.current=xC({window:r,v5Compat:!0}));let s=i.current,[u,h]=v.useState({action:s.action,location:s.location}),m=v.useCallback(p=>{v.startTransition(()=>h(p))},[h]);return v.useLayoutEffect(()=>s.listen(m),[s,m]),v.createElement(sR,{basename:n,children:a,location:u.location,navigationType:u.action,navigator:s})}var zx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ea=v.forwardRef(function({onClick:a,discover:r="render",prefetch:i="none",relative:s,reloadDocument:u,replace:h,state:m,target:p,to:g,preventScrollReset:y,viewTransition:b,...w},j){let{basename:E}=v.useContext(zn),S=typeof g=="string"&&zx.test(g),C,R=!1;if(typeof g=="string"&&S&&(C=g,Ox))try{let G=new URL(window.location.href),te=g.startsWith("//")?new URL(G.protocol+g):new URL(g),ce=_a(te.pathname,E);te.origin===G.origin&&ce!=null?g=ce+te.search+te.hash:R=!0}catch{Sn(!1,`<Link to="${g}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let _=$C(g,{relative:s}),[T,k,L]=_R(i,w),X=UR(g,{replace:h,state:m,target:p,preventScrollReset:y,relative:s,viewTransition:b});function q(G){a&&a(G),G.defaultPrevented||X(G)}let H=v.createElement("a",{...w,...L,href:C||_,onClick:R||u?a:q,ref:DR(j,k),target:p,"data-discover":!S&&r==="render"?"true":void 0});return T&&!S?v.createElement(v.Fragment,null,H,v.createElement(TR,{page:_})):H});Ea.displayName="Link";var OR=v.forwardRef(function({"aria-current":a="page",caseSensitive:r=!1,className:i="",end:s=!1,style:u,to:h,viewTransition:m,children:p,...g},y){let b=Fo(h,{relative:g.relative}),w=Aa(),j=v.useContext(rc),{navigator:E,basename:S}=v.useContext(zn),C=j!=null&&YR(b)&&m===!0,R=E.encodeLocation?E.encodeLocation(b).pathname:b.pathname,_=w.pathname,T=j&&j.navigation&&j.navigation.location?j.navigation.location.pathname:null;r||(_=_.toLowerCase(),T=T?T.toLowerCase():null,R=R.toLowerCase()),T&&S&&(T=_a(T,S)||T);const k=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let L=_===R||!s&&_.startsWith(R)&&_.charAt(k)==="/",X=T!=null&&(T===R||!s&&T.startsWith(R)&&T.charAt(R.length)==="/"),q={isActive:L,isPending:X,isTransitioning:C},H=L?a:void 0,G;typeof i=="function"?G=i(q):G=[i,L?"active":null,X?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let te=typeof u=="function"?u(q):u;return v.createElement(Ea,{...g,"aria-current":H,className:G,ref:y,style:te,to:h,viewTransition:m},typeof p=="function"?p(q):p)});OR.displayName="NavLink";var zR=v.forwardRef(({discover:n="render",fetcherKey:a,navigate:r,reloadDocument:i,replace:s,state:u,method:h=Ou,action:m,onSubmit:p,relative:g,preventScrollReset:y,viewTransition:b,...w},j)=>{let E=BR(),S=QR(m,{relative:g}),C=h.toLowerCase()==="get"?"get":"post",R=typeof m=="string"&&zx.test(m),_=T=>{if(p&&p(T),T.defaultPrevented)return;T.preventDefault();let k=T.nativeEvent.submitter,L=(k==null?void 0:k.getAttribute("formmethod"))||h;E(k||T.currentTarget,{fetcherKey:a,method:L,navigate:r,replace:s,state:u,relative:g,preventScrollReset:y,viewTransition:b})};return v.createElement("form",{ref:j,method:C,action:S,onSubmit:i?p:_,...w,"data-discover":!R&&n==="render"?"true":void 0})});zR.displayName="Form";function LR(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Lx(n){let a=v.useContext(xi);return Ie(a,LR(n)),a}function UR(n,{target:a,replace:r,state:i,preventScrollReset:s,relative:u,viewTransition:h}={}){let m=Tx(),p=Aa(),g=Fo(n,{relative:u});return v.useCallback(y=>{if(mR(y,a)){y.preventDefault();let b=r!==void 0?r:qo(p)===qo(g);m(n,{replace:b,state:i,preventScrollReset:s,relative:u,viewTransition:h})}},[p,m,g,r,i,a,n,s,u,h])}var HR=0,qR=()=>`__${String(++HR)}__`;function BR(){let{router:n}=Lx("useSubmit"),{basename:a}=v.useContext(zn),r=lR();return v.useCallback(async(i,s={})=>{let{action:u,method:h,encType:m,formData:p,body:g}=gR(i,a);if(s.navigate===!1){let y=s.fetcherKey||qR();await n.fetch(y,r,s.action||u,{preventScrollReset:s.preventScrollReset,formData:p,body:g,formMethod:s.method||h,formEncType:s.encType||m,flushSync:s.flushSync})}else await n.navigate(s.action||u,{preventScrollReset:s.preventScrollReset,formData:p,body:g,formMethod:s.method||h,formEncType:s.encType||m,replace:s.replace,state:s.state,fromRouteId:r,flushSync:s.flushSync,viewTransition:s.viewTransition})},[n,a,r])}function QR(n,{relative:a}={}){let{basename:r}=v.useContext(zn),i=v.useContext(Ln);Ie(i,"useFormAction must be used inside a RouteContext");let[s]=i.matches.slice(-1),u={...Fo(n||".",{relative:a})},h=Aa();if(n==null){u.search=h.search;let m=new URLSearchParams(u.search),p=m.getAll("index");if(p.some(y=>y==="")){m.delete("index"),p.filter(b=>b).forEach(b=>m.append("index",b));let y=m.toString();u.search=y?`?${y}`:""}}return(!n||n===".")&&s.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(u.pathname=u.pathname==="/"?r:Na([r,u.pathname])),qo(u)}function YR(n,a={}){let r=v.useContext(Cx);Ie(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Lx("useViewTransitionState"),s=Fo(n,{relative:a.relative});if(!r.isTransitioning)return!1;let u=_a(r.currentLocation.pathname,i)||r.currentLocation.pathname,h=_a(r.nextLocation.pathname,i)||r.nextLocation.pathname;return Yu(s.pathname,h)!=null||Yu(s.pathname,u)!=null}[...NR];var Po=wx();const Ux=ix(Po);/**
|
|
52
|
+
* @license lucide-react v0.488.0 - ISC
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the ISC license.
|
|
55
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
+
*/const GR=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),VR=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,i)=>i?i.toUpperCase():r.toLowerCase()),ab=n=>{const a=VR(n);return a.charAt(0).toUpperCase()+a.slice(1)},Hx=(...n)=>n.filter((a,r,i)=>!!a&&a.trim()!==""&&i.indexOf(a)===r).join(" ").trim();/**
|
|
57
|
+
* @license lucide-react v0.488.0 - ISC
|
|
58
|
+
*
|
|
59
|
+
* This source code is licensed under the ISC license.
|
|
60
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
+
*/var KR={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"};/**
|
|
62
|
+
* @license lucide-react v0.488.0 - ISC
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the ISC license.
|
|
65
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/const XR=v.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:u,iconNode:h,...m},p)=>v.createElement("svg",{ref:p,...KR,width:a,height:a,stroke:n,strokeWidth:i?Number(r)*24/Number(a):r,className:Hx("lucide",s),...m},[...h.map(([g,y])=>v.createElement(g,y)),...Array.isArray(u)?u:[u]]));/**
|
|
67
|
+
* @license lucide-react v0.488.0 - ISC
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the ISC license.
|
|
70
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/const rt=(n,a)=>{const r=v.forwardRef(({className:i,...s},u)=>v.createElement(XR,{ref:u,iconNode:a,className:Hx(`lucide-${GR(ab(n))}`,`lucide-${n}`,i),...s}));return r.displayName=ab(n),r};/**
|
|
72
|
+
* @license lucide-react v0.488.0 - ISC
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the ISC license.
|
|
75
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/const $R=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],ZR=rt("arrow-left",$R);/**
|
|
77
|
+
* @license lucide-react v0.488.0 - ISC
|
|
78
|
+
*
|
|
79
|
+
* This source code is licensed under the ISC license.
|
|
80
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
+
*/const FR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]],PR=rt("ban",FR);/**
|
|
82
|
+
* @license lucide-react v0.488.0 - ISC
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the ISC license.
|
|
85
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/const JR=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],qx=rt("chevron-down",JR);/**
|
|
87
|
+
* @license lucide-react v0.488.0 - ISC
|
|
88
|
+
*
|
|
89
|
+
* This source code is licensed under the ISC license.
|
|
90
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
+
*/const WR=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Bx=rt("chevron-left",WR);/**
|
|
92
|
+
* @license lucide-react v0.488.0 - ISC
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the ISC license.
|
|
95
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
+
*/const IR=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],sc=rt("chevron-right",IR);/**
|
|
97
|
+
* @license lucide-react v0.488.0 - ISC
|
|
98
|
+
*
|
|
99
|
+
* This source code is licensed under the ISC license.
|
|
100
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
+
*/const e_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],t_=rt("circle-alert",e_);/**
|
|
102
|
+
* @license lucide-react v0.488.0 - ISC
|
|
103
|
+
*
|
|
104
|
+
* This source code is licensed under the ISC license.
|
|
105
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
+
*/const n_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],uc=rt("circle-check",n_);/**
|
|
107
|
+
* @license lucide-react v0.488.0 - ISC
|
|
108
|
+
*
|
|
109
|
+
* This source code is licensed under the ISC license.
|
|
110
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
+
*/const a_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],cc=rt("circle-x",a_);/**
|
|
112
|
+
* @license lucide-react v0.488.0 - ISC
|
|
113
|
+
*
|
|
114
|
+
* This source code is licensed under the ISC license.
|
|
115
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
+
*/const l_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],dc=rt("clock",l_);/**
|
|
117
|
+
* @license lucide-react v0.488.0 - ISC
|
|
118
|
+
*
|
|
119
|
+
* This source code is licensed under the ISC license.
|
|
120
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
+
*/const r_=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],Qx=rt("columns-3",r_);/**
|
|
122
|
+
* @license lucide-react v0.488.0 - ISC
|
|
123
|
+
*
|
|
124
|
+
* This source code is licensed under the ISC license.
|
|
125
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
+
*/const i_=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],o_=rt("database",i_);/**
|
|
127
|
+
* @license lucide-react v0.488.0 - ISC
|
|
128
|
+
*
|
|
129
|
+
* This source code is licensed under the ISC license.
|
|
130
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
+
*/const s_=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],u_=rt("git-branch",s_);/**
|
|
132
|
+
* @license lucide-react v0.488.0 - ISC
|
|
133
|
+
*
|
|
134
|
+
* This source code is licensed under the ISC license.
|
|
135
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
+
*/const c_=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],d_=rt("inbox",c_);/**
|
|
137
|
+
* @license lucide-react v0.488.0 - ISC
|
|
138
|
+
*
|
|
139
|
+
* This source code is licensed under the ISC license.
|
|
140
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
+
*/const f_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Yx=rt("info",f_);/**
|
|
142
|
+
* @license lucide-react v0.488.0 - ISC
|
|
143
|
+
*
|
|
144
|
+
* This source code is licensed under the ISC license.
|
|
145
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
+
*/const h_=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],Gx=rt("key",h_);/**
|
|
147
|
+
* @license lucide-react v0.488.0 - ISC
|
|
148
|
+
*
|
|
149
|
+
* This source code is licensed under the ISC license.
|
|
150
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
+
*/const m_=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Dn=rt("loader-circle",m_);/**
|
|
152
|
+
* @license lucide-react v0.488.0 - ISC
|
|
153
|
+
*
|
|
154
|
+
* This source code is licensed under the ISC license.
|
|
155
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
+
*/const p_=[["path",{d:"M22 10.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h12.5",key:"e61zoh"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"M20 14v4",key:"1hm744"}],["path",{d:"M20 22v.01",key:"12bgn6"}]],v_=rt("mail-warning",p_);/**
|
|
157
|
+
* @license lucide-react v0.488.0 - ISC
|
|
158
|
+
*
|
|
159
|
+
* This source code is licensed under the ISC license.
|
|
160
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
+
*/const g_=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],Vx=rt("play",g_);/**
|
|
162
|
+
* @license lucide-react v0.488.0 - ISC
|
|
163
|
+
*
|
|
164
|
+
* This source code is licensed under the ISC license.
|
|
165
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
+
*/const y_=[["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"}]],fc=rt("refresh-cw",y_);/**
|
|
167
|
+
* @license lucide-react v0.488.0 - ISC
|
|
168
|
+
*
|
|
169
|
+
* This source code is licensed under the ISC license.
|
|
170
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
+
*/const b_=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],x_=rt("settings",b_);/**
|
|
172
|
+
* @license lucide-react v0.488.0 - ISC
|
|
173
|
+
*
|
|
174
|
+
* This source code is licensed under the ISC license.
|
|
175
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
+
*/const w_=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],S_=rt("shield",w_);/**
|
|
177
|
+
* @license lucide-react v0.488.0 - ISC
|
|
178
|
+
*
|
|
179
|
+
* This source code is licensed under the ISC license.
|
|
180
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
+
*/const j_=[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]],hc=rt("table",j_);function Kx(n){var a,r,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n))for(a=0;a<n.length;a++)n[a]&&(r=Kx(n[a]))&&(i&&(i+=" "),i+=r);else for(a in n)n[a]&&(i&&(i+=" "),i+=a);return i}function E_(){for(var n,a,r=0,i="";r<arguments.length;)(n=arguments[r++])&&(a=Kx(n))&&(i&&(i+=" "),i+=a);return i}const Rm="-",N_=n=>{const a=R_(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:s=>{const u=s.split(Rm);return u[0]===""&&u.length!==1&&u.shift(),Xx(u,a)||C_(s)},getConflictingClassGroupIds:(s,u)=>{const h=r[s]||[];return u&&i[s]?[...h,...i[s]]:h}}},Xx=(n,a)=>{var r;if(n.length===0)return a.classGroupId;const i=n[0],s=a.nextPart.get(i),u=s?Xx(n.slice(1),s):void 0;if(u)return u;if(a.validators.length===0)return;const h=n.join(Rm);return(r=a.validators.find(({validator:m})=>m(h)))==null?void 0:r.classGroupId},lb=/^\[(.+)\]$/,C_=n=>{if(lb.test(n)){const a=lb.exec(n)[1],r=a==null?void 0:a.substring(0,a.indexOf(":"));if(r)return"arbitrary.."+r}},R_=n=>{const{theme:a,classGroups:r}=n,i={nextPart:new Map,validators:[]};for(const s in r)Vh(r[s],i,s,a);return i},Vh=(n,a,r,i)=>{n.forEach(s=>{if(typeof s=="string"){const u=s===""?a:rb(a,s);u.classGroupId=r;return}if(typeof s=="function"){if(__(s)){Vh(s(i),a,r,i);return}a.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([u,h])=>{Vh(h,rb(a,u),r,i)})})},rb=(n,a)=>{let r=n;return a.split(Rm).forEach(i=>{r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r},__=n=>n.isThemeGetter,T_=n=>{if(n<1)return{get:()=>{},set:()=>{}};let a=0,r=new Map,i=new Map;const s=(u,h)=>{r.set(u,h),a++,a>n&&(a=0,i=r,r=new Map)};return{get(u){let h=r.get(u);if(h!==void 0)return h;if((h=i.get(u))!==void 0)return s(u,h),h},set(u,h){r.has(u)?r.set(u,h):s(u,h)}}},Kh="!",Xh=":",M_=Xh.length,A_=n=>{const{prefix:a,experimentalParseClassName:r}=n;let i=s=>{const u=[];let h=0,m=0,p=0,g;for(let E=0;E<s.length;E++){let S=s[E];if(h===0&&m===0){if(S===Xh){u.push(s.slice(p,E)),p=E+M_;continue}if(S==="/"){g=E;continue}}S==="["?h++:S==="]"?h--:S==="("?m++:S===")"&&m--}const y=u.length===0?s:s.substring(p),b=D_(y),w=b!==y,j=g&&g>p?g-p:void 0;return{modifiers:u,hasImportantModifier:w,baseClassName:b,maybePostfixModifierPosition:j}};if(a){const s=a+Xh,u=i;i=h=>h.startsWith(s)?u(h.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:h,maybePostfixModifierPosition:void 0}}if(r){const s=i;i=u=>r({className:u,parseClassName:s})}return i},D_=n=>n.endsWith(Kh)?n.substring(0,n.length-1):n.startsWith(Kh)?n.substring(1):n,k_=n=>{const a=Object.fromEntries(n.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const i=[];let s=[];return r.forEach(u=>{u[0]==="["||a[u]?(i.push(...s.sort(),u),s=[]):s.push(u)}),i.push(...s.sort()),i}},O_=n=>({cache:T_(n.cacheSize),parseClassName:A_(n),sortModifiers:k_(n),...N_(n)}),z_=/\s+/,L_=(n,a)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:u}=a,h=[],m=n.trim().split(z_);let p="";for(let g=m.length-1;g>=0;g-=1){const y=m[g],{isExternal:b,modifiers:w,hasImportantModifier:j,baseClassName:E,maybePostfixModifierPosition:S}=r(y);if(b){p=y+(p.length>0?" "+p:p);continue}let C=!!S,R=i(C?E.substring(0,S):E);if(!R){if(!C){p=y+(p.length>0?" "+p:p);continue}if(R=i(E),!R){p=y+(p.length>0?" "+p:p);continue}C=!1}const _=u(w).join(":"),T=j?_+Kh:_,k=T+R;if(h.includes(k))continue;h.push(k);const L=s(R,C);for(let X=0;X<L.length;++X){const q=L[X];h.push(T+q)}p=y+(p.length>0?" "+p:p)}return p};function U_(){let n=0,a,r,i="";for(;n<arguments.length;)(a=arguments[n++])&&(r=$x(a))&&(i&&(i+=" "),i+=r);return i}const $x=n=>{if(typeof n=="string")return n;let a,r="";for(let i=0;i<n.length;i++)n[i]&&(a=$x(n[i]))&&(r&&(r+=" "),r+=a);return r};function H_(n,...a){let r,i,s,u=h;function h(p){const g=a.reduce((y,b)=>b(y),n());return r=O_(g),i=r.cache.get,s=r.cache.set,u=m,m(p)}function m(p){const g=i(p);if(g)return g;const y=L_(p,r);return s(p,y),y}return function(){return u(U_.apply(null,arguments))}}const pt=n=>{const a=r=>r[n]||[];return a.isThemeGetter=!0,a},Zx=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Fx=/^\((?:(\w[\w-]*):)?(.+)\)$/i,q_=/^\d+\/\d+$/,B_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Q_=/\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$/,Y_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,G_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,V_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Zr=n=>q_.test(n),Me=n=>!!n&&!Number.isNaN(Number(n)),ll=n=>!!n&&Number.isInteger(Number(n)),fh=n=>n.endsWith("%")&&Me(n.slice(0,-1)),xa=n=>B_.test(n),K_=()=>!0,X_=n=>Q_.test(n)&&!Y_.test(n),Px=()=>!1,$_=n=>G_.test(n),Z_=n=>V_.test(n),F_=n=>!me(n)&&!pe(n),P_=n=>Si(n,Ix,Px),me=n=>Zx.test(n),Yl=n=>Si(n,ew,X_),hh=n=>Si(n,tT,Me),ib=n=>Si(n,Jx,Px),J_=n=>Si(n,Wx,Z_),Nu=n=>Si(n,tw,$_),pe=n=>Fx.test(n),To=n=>ji(n,ew),W_=n=>ji(n,nT),ob=n=>ji(n,Jx),I_=n=>ji(n,Ix),eT=n=>ji(n,Wx),Cu=n=>ji(n,tw,!0),Si=(n,a,r)=>{const i=Zx.exec(n);return i?i[1]?a(i[1]):r(i[2]):!1},ji=(n,a,r=!1)=>{const i=Fx.exec(n);return i?i[1]?a(i[1]):r:!1},Jx=n=>n==="position"||n==="percentage",Wx=n=>n==="image"||n==="url",Ix=n=>n==="length"||n==="size"||n==="bg-size",ew=n=>n==="length",tT=n=>n==="number",nT=n=>n==="family-name",tw=n=>n==="shadow",aT=()=>{const n=pt("color"),a=pt("font"),r=pt("text"),i=pt("font-weight"),s=pt("tracking"),u=pt("leading"),h=pt("breakpoint"),m=pt("container"),p=pt("spacing"),g=pt("radius"),y=pt("shadow"),b=pt("inset-shadow"),w=pt("text-shadow"),j=pt("drop-shadow"),E=pt("blur"),S=pt("perspective"),C=pt("aspect"),R=pt("ease"),_=pt("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],L=()=>[...k(),pe,me],X=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],H=()=>[pe,me,p],G=()=>[Zr,"full","auto",...H()],te=()=>[ll,"none","subgrid",pe,me],ce=()=>["auto",{span:["full",ll,pe,me]},ll,pe,me],de=()=>[ll,"auto",pe,me],I=()=>["auto","min","max","fr",pe,me],ie=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],re=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",...H()],W=()=>[Zr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...H()],V=()=>[n,pe,me],$=()=>[...k(),ob,ib,{position:[pe,me]}],fe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],A=()=>["auto","cover","contain",I_,P_,{size:[pe,me]}],Z=()=>[fh,To,Yl],ee=()=>["","none","full",g,pe,me],le=()=>["",Me,To,Yl],ve=()=>["solid","dashed","dotted","double"],je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>[Me,fh,ob,ib],Ee=()=>["","none",E,pe,me],ye=()=>["none",Me,pe,me],Ne=()=>["none",Me,pe,me],Ue=()=>[Me,pe,me],Ye=()=>[Zr,"full",...H()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[xa],breakpoint:[xa],color:[K_],container:[xa],"drop-shadow":[xa],ease:["in","out","in-out"],font:[F_],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[xa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[xa],shadow:[xa],spacing:["px",Me],text:[xa],"text-shadow":[xa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Zr,me,pe,C]}],container:["container"],columns:[{columns:[Me,me,pe,m]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"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:L()}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:G()}],"inset-x":[{"inset-x":G()}],"inset-y":[{"inset-y":G()}],start:[{start:G()}],end:[{end:G()}],top:[{top:G()}],right:[{right:G()}],bottom:[{bottom:G()}],left:[{left:G()}],visibility:["visible","invisible","collapse"],z:[{z:[ll,"auto",pe,me]}],basis:[{basis:[Zr,"full","auto",m,...H()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Me,Zr,"auto","initial","none",me]}],grow:[{grow:["",Me,pe,me]}],shrink:[{shrink:["",Me,pe,me]}],order:[{order:[ll,"first","last","none",pe,me]}],"grid-cols":[{"grid-cols":te()}],"col-start-end":[{col:ce()}],"col-start":[{"col-start":de()}],"col-end":[{"col-end":de()}],"grid-rows":[{"grid-rows":te()}],"row-start-end":[{row:ce()}],"row-start":[{"row-start":de()}],"row-end":[{"row-end":de()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":I()}],"auto-rows":[{"auto-rows":I()}],gap:[{gap:H()}],"gap-x":[{"gap-x":H()}],"gap-y":[{"gap-y":H()}],"justify-content":[{justify:[...ie(),"normal"]}],"justify-items":[{"justify-items":[...re(),"normal"]}],"justify-self":[{"justify-self":["auto",...re()]}],"align-content":[{content:["normal",...ie()]}],"align-items":[{items:[...re(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...re(),{baseline:["","last"]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...re(),"baseline"]}],"place-self":[{"place-self":["auto",...re()]}],p:[{p:H()}],px:[{px:H()}],py:[{py:H()}],ps:[{ps:H()}],pe:[{pe:H()}],pt:[{pt:H()}],pr:[{pr:H()}],pb:[{pb:H()}],pl:[{pl:H()}],m:[{m:U()}],mx:[{mx:U()}],my:[{my:U()}],ms:[{ms:U()}],me:[{me:U()}],mt:[{mt:U()}],mr:[{mr:U()}],mb:[{mb:U()}],ml:[{ml:U()}],"space-x":[{"space-x":H()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":H()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[m,"screen",...W()]}],"min-w":[{"min-w":[m,"screen","none",...W()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[h]},...W()]}],h:[{h:["screen",...W()]}],"min-h":[{"min-h":["screen","none",...W()]}],"max-h":[{"max-h":["screen",...W()]}],"font-size":[{text:["base",r,To,Yl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,pe,hh]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",fh,me]}],"font-family":[{font:[W_,me,a]}],"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:[s,pe,me]}],"line-clamp":[{"line-clamp":[Me,"none",pe,hh]}],leading:[{leading:[u,...H()]}],"list-image":[{"list-image":["none",pe,me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",pe,me]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ve(),"wavy"]}],"text-decoration-thickness":[{decoration:[Me,"from-font","auto",pe,Yl]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[Me,"auto",pe,me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe,me]}],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",pe,me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:$()}],"bg-repeat":[{bg:fe()}],"bg-size":[{bg:A()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ll,pe,me],radial:["",pe,me],conic:[ll,pe,me]},eT,J_]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:Z()}],"gradient-via-pos":[{via:Z()}],"gradient-to-pos":[{to:Z()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":le()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ve(),"hidden","none"]}],"divide-style":[{divide:[...ve(),"hidden","none"]}],"border-color":[{border:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...ve(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Me,pe,me]}],"outline-w":[{outline:["",Me,To,Yl]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",y,Cu,Nu]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",b,Cu,Nu]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[Me,Yl]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",w,Cu,Nu]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[Me,pe,me]}],"mix-blend":[{"mix-blend":[...je(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":je()}],"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":[Me]}],"mask-image-linear-from-pos":[{"mask-linear-from":ne()}],"mask-image-linear-to-pos":[{"mask-linear-to":ne()}],"mask-image-linear-from-color":[{"mask-linear-from":V()}],"mask-image-linear-to-color":[{"mask-linear-to":V()}],"mask-image-t-from-pos":[{"mask-t-from":ne()}],"mask-image-t-to-pos":[{"mask-t-to":ne()}],"mask-image-t-from-color":[{"mask-t-from":V()}],"mask-image-t-to-color":[{"mask-t-to":V()}],"mask-image-r-from-pos":[{"mask-r-from":ne()}],"mask-image-r-to-pos":[{"mask-r-to":ne()}],"mask-image-r-from-color":[{"mask-r-from":V()}],"mask-image-r-to-color":[{"mask-r-to":V()}],"mask-image-b-from-pos":[{"mask-b-from":ne()}],"mask-image-b-to-pos":[{"mask-b-to":ne()}],"mask-image-b-from-color":[{"mask-b-from":V()}],"mask-image-b-to-color":[{"mask-b-to":V()}],"mask-image-l-from-pos":[{"mask-l-from":ne()}],"mask-image-l-to-pos":[{"mask-l-to":ne()}],"mask-image-l-from-color":[{"mask-l-from":V()}],"mask-image-l-to-color":[{"mask-l-to":V()}],"mask-image-x-from-pos":[{"mask-x-from":ne()}],"mask-image-x-to-pos":[{"mask-x-to":ne()}],"mask-image-x-from-color":[{"mask-x-from":V()}],"mask-image-x-to-color":[{"mask-x-to":V()}],"mask-image-y-from-pos":[{"mask-y-from":ne()}],"mask-image-y-to-pos":[{"mask-y-to":ne()}],"mask-image-y-from-color":[{"mask-y-from":V()}],"mask-image-y-to-color":[{"mask-y-to":V()}],"mask-image-radial":[{"mask-radial":[pe,me]}],"mask-image-radial-from-pos":[{"mask-radial-from":ne()}],"mask-image-radial-to-pos":[{"mask-radial-to":ne()}],"mask-image-radial-from-color":[{"mask-radial-from":V()}],"mask-image-radial-to-color":[{"mask-radial-to":V()}],"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":k()}],"mask-image-conic-pos":[{"mask-conic":[Me]}],"mask-image-conic-from-pos":[{"mask-conic-from":ne()}],"mask-image-conic-to-pos":[{"mask-conic-to":ne()}],"mask-image-conic-from-color":[{"mask-conic-from":V()}],"mask-image-conic-to-color":[{"mask-conic-to":V()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:$()}],"mask-repeat":[{mask:fe()}],"mask-size":[{mask:A()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",pe,me]}],filter:[{filter:["","none",pe,me]}],blur:[{blur:Ee()}],brightness:[{brightness:[Me,pe,me]}],contrast:[{contrast:[Me,pe,me]}],"drop-shadow":[{"drop-shadow":["","none",j,Cu,Nu]}],"drop-shadow-color":[{"drop-shadow":V()}],grayscale:[{grayscale:["",Me,pe,me]}],"hue-rotate":[{"hue-rotate":[Me,pe,me]}],invert:[{invert:["",Me,pe,me]}],saturate:[{saturate:[Me,pe,me]}],sepia:[{sepia:["",Me,pe,me]}],"backdrop-filter":[{"backdrop-filter":["","none",pe,me]}],"backdrop-blur":[{"backdrop-blur":Ee()}],"backdrop-brightness":[{"backdrop-brightness":[Me,pe,me]}],"backdrop-contrast":[{"backdrop-contrast":[Me,pe,me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Me,pe,me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Me,pe,me]}],"backdrop-invert":[{"backdrop-invert":["",Me,pe,me]}],"backdrop-opacity":[{"backdrop-opacity":[Me,pe,me]}],"backdrop-saturate":[{"backdrop-saturate":[Me,pe,me]}],"backdrop-sepia":[{"backdrop-sepia":["",Me,pe,me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":H()}],"border-spacing-x":[{"border-spacing-x":H()}],"border-spacing-y":[{"border-spacing-y":H()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",pe,me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Me,"initial",pe,me]}],ease:[{ease:["linear","initial",R,pe,me]}],delay:[{delay:[Me,pe,me]}],animate:[{animate:["none",_,pe,me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,pe,me]}],"perspective-origin":[{"perspective-origin":L()}],rotate:[{rotate:ye()}],"rotate-x":[{"rotate-x":ye()}],"rotate-y":[{"rotate-y":ye()}],"rotate-z":[{"rotate-z":ye()}],scale:[{scale:Ne()}],"scale-x":[{"scale-x":Ne()}],"scale-y":[{"scale-y":Ne()}],"scale-z":[{"scale-z":Ne()}],"scale-3d":["scale-3d"],skew:[{skew:Ue()}],"skew-x":[{"skew-x":Ue()}],"skew-y":[{"skew-y":Ue()}],transform:[{transform:[pe,me,"","none","gpu","cpu"]}],"transform-origin":[{origin:L()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ye()}],"translate-x":[{"translate-x":Ye()}],"translate-y":[{"translate-y":Ye()}],"translate-z":[{"translate-z":Ye()}],"translate-none":["translate-none"],accent:[{accent:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}],"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",pe,me]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"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",pe,me]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[Me,To,Yl,hh]}],stroke:[{stroke:["none",...V()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-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-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-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-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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},lT=H_(aT);function se(...n){return lT(E_(n))}function zo(n){return n===null?"-":n<1e3?`${n}ms`:n<6e4?`${(n/1e3).toFixed(1)}s`:`${(n/6e4).toFixed(1)}m`}const rT={sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl"},iT={sm:"dark:shadow-[0_1px_4px_rgba(0,0,0,0.3)] shadow-[0_1px_2px_rgba(0,0,0,0.04)]",md:"dark:shadow-[0_4px_16px_rgba(0,0,0,0.3)] shadow-[0_1px_4px_rgba(0,0,0,0.04)]",lg:"dark:shadow-[0_8px_32px_rgba(0,0,0,0.4)] shadow-[0_2px_8px_rgba(0,0,0,0.04)]"};function Gu({children:n,className:a,rounded:r="lg",shadow:i="md",...s}){return d.jsxs("div",{"data-slot":"glass-container",className:se("relative","bg-card","backdrop-blur-xl","border border-border",rT[r],iT[i],a),...s,children:[d.jsx("div",{className:"absolute inset-0 pointer-events-none dark:block hidden",style:{background:"radial-gradient(circle at top left, rgba(255, 255, 255, 0.08) 0%, transparent 50%)"}}),d.jsx("div",{className:"absolute inset-0 pointer-events-none block dark:hidden",style:{background:"radial-gradient(circle at top left, rgba(0, 0, 0, 0.06) 0%, transparent 50%)"}}),d.jsx("div",{className:"relative z-10",children:n})]})}function Qt({className:n,rounded:a="2xl",shadow:r="lg",children:i,...s}){return d.jsx(Gu,{"data-slot":"card",rounded:a,shadow:r,className:se("p-6",n),...s,children:i})}function bn({className:n,...a}){return d.jsx("div",{"data-slot":"card-header",className:se("flex flex-row items-center justify-between space-y-0 pb-2",n),...a})}function xn({className:n,...a}){return d.jsx("h3",{"data-slot":"card-title",className:se("font-semibold text-sm leading-none text-card-foreground",n),...a})}function Ca({className:n,...a}){return d.jsx("p",{"data-slot":"card-description",className:se("text-muted-foreground text-sm",n),...a})}function Yt({className:n,...a}){return d.jsx("div",{"data-slot":"card-content",className:se(n),...a})}/**
|
|
182
|
+
* @license lucide-react v0.511.0 - ISC
|
|
183
|
+
*
|
|
184
|
+
* This source code is licensed under the ISC license.
|
|
185
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
+
*/const oT=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),sT=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,i)=>i?i.toUpperCase():r.toLowerCase()),sb=n=>{const a=sT(n);return a.charAt(0).toUpperCase()+a.slice(1)},nw=(...n)=>n.filter((a,r,i)=>!!a&&a.trim()!==""&&i.indexOf(a)===r).join(" ").trim(),uT=n=>{for(const a in n)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
|
|
187
|
+
* @license lucide-react v0.511.0 - ISC
|
|
188
|
+
*
|
|
189
|
+
* This source code is licensed under the ISC license.
|
|
190
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
+
*/var cT={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"};/**
|
|
192
|
+
* @license lucide-react v0.511.0 - ISC
|
|
193
|
+
*
|
|
194
|
+
* This source code is licensed under the ISC license.
|
|
195
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
+
*/const dT=v.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:u,iconNode:h,...m},p)=>v.createElement("svg",{ref:p,...cT,width:a,height:a,stroke:n,strokeWidth:i?Number(r)*24/Number(a):r,className:nw("lucide",s),...!u&&!uT(m)&&{"aria-hidden":"true"},...m},[...h.map(([g,y])=>v.createElement(g,y)),...Array.isArray(u)?u:[u]]));/**
|
|
197
|
+
* @license lucide-react v0.511.0 - ISC
|
|
198
|
+
*
|
|
199
|
+
* This source code is licensed under the ISC license.
|
|
200
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
+
*/const Un=(n,a)=>{const r=v.forwardRef(({className:i,...s},u)=>v.createElement(dT,{ref:u,iconNode:a,className:nw(`lucide-${oT(sb(n))}`,`lucide-${n}`,i),...s}));return r.displayName=sb(n),r};/**
|
|
202
|
+
* @license lucide-react v0.511.0 - ISC
|
|
203
|
+
*
|
|
204
|
+
* This source code is licensed under the ISC license.
|
|
205
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
+
*/const fT=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],_m=Un("check",fT);/**
|
|
207
|
+
* @license lucide-react v0.511.0 - ISC
|
|
208
|
+
*
|
|
209
|
+
* This source code is licensed under the ISC license.
|
|
210
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
+
*/const hT=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mT=Un("chevron-down",hT);/**
|
|
212
|
+
* @license lucide-react v0.511.0 - ISC
|
|
213
|
+
*
|
|
214
|
+
* This source code is licensed under the ISC license.
|
|
215
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
+
*/const pT=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ub=Un("chevron-left",pT);/**
|
|
217
|
+
* @license lucide-react v0.511.0 - ISC
|
|
218
|
+
*
|
|
219
|
+
* This source code is licensed under the ISC license.
|
|
220
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
+
*/const vT=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],$h=Un("chevron-right",vT);/**
|
|
222
|
+
* @license lucide-react v0.511.0 - ISC
|
|
223
|
+
*
|
|
224
|
+
* This source code is licensed under the ISC license.
|
|
225
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
226
|
+
*/const gT=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],yT=Un("chevron-up",gT);/**
|
|
227
|
+
* @license lucide-react v0.511.0 - ISC
|
|
228
|
+
*
|
|
229
|
+
* This source code is licensed under the ISC license.
|
|
230
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
231
|
+
*/const bT=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]],xT=Un("clipboard",bT);/**
|
|
232
|
+
* @license lucide-react v0.511.0 - ISC
|
|
233
|
+
*
|
|
234
|
+
* This source code is licensed under the ISC license.
|
|
235
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
236
|
+
*/const wT=[["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"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],ST=Un("file-json",wT);/**
|
|
237
|
+
* @license lucide-react v0.511.0 - ISC
|
|
238
|
+
*
|
|
239
|
+
* This source code is licensed under the ISC license.
|
|
240
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
241
|
+
*/const jT=[["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"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]],ET=Un("file-spreadsheet",jT);/**
|
|
242
|
+
* @license lucide-react v0.511.0 - ISC
|
|
243
|
+
*
|
|
244
|
+
* This source code is licensed under the ISC license.
|
|
245
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
246
|
+
*/const NT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],CT=Un("loader-circle",NT);/**
|
|
247
|
+
* @license lucide-react v0.511.0 - ISC
|
|
248
|
+
*
|
|
249
|
+
* This source code is licensed under the ISC license.
|
|
250
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
251
|
+
*/const RT=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],_T=Un("search",RT);/**
|
|
252
|
+
* @license lucide-react v0.511.0 - ISC
|
|
253
|
+
*
|
|
254
|
+
* This source code is licensed under the ISC license.
|
|
255
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
256
|
+
*/const TT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],MT=Un("x",TT);function AT(n){const a=Math.floor((new Date().getTime()-n.getTime())/1e3);return a<5?"just now":a<60?`${a}s ago`:a<3600?`${Math.floor(a/60)}m ago`:a<86400?`${Math.floor(a/3600)}h ago`:a<604800?`${Math.floor(a/86400)}d ago`:n.toLocaleDateString()}function mh({value:n}){const[a,r]=v.useState(!1);return d.jsx("button",{onClick:async i=>{i.stopPropagation();try{await navigator.clipboard.writeText(n),r(!0),setTimeout(()=>r(!1),2e3)}catch{const s=document.createElement("textarea");s.value=n,document.body.appendChild(s),s.select(),document.execCommand("copy"),document.body.removeChild(s),r(!0),setTimeout(()=>r(!1),2e3)}},className:se("p-1 rounded transition-colors flex-shrink-0",a?"text-green-500":"text-gray-400 hover:text-gray-600 dark:hover:text-gray-300"),title:a?"Copied!":"Copy to clipboard",children:a?d.jsx(_m,{className:"w-3 h-3"}):d.jsx(xT,{className:"w-3 h-3"})})}function Wl({timestamp:n,className:a,rawValue:r,forceOpen:i=!1}){const[s,u]=v.useState(!1),[,h]=v.useState(0),m=i||s;if(v.useEffect(()=>{const w=setInterval(()=>{h(j=>j+1)},1e3);return()=>clearInterval(w)},[]),!n)return null;let p;typeof n=="number"?p=new Date(n<1e10?n*1e3:n):p=new Date(n);const g=p.toISOString(),y=p.toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}),b=AT(p);return d.jsxs("div",{className:se("relative inline-block",a),onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[d.jsx("time",{dateTime:g,className:"cursor-help border-b border-gray-400 dark:border-gray-400 text-gray-700 dark:text-gray-300",children:b}),d.jsx("div",{className:se("absolute bottom-full left-1/2 -translate-x-1/2 mb-2 z-[9999] w-72","transition-all duration-200 ease-out origin-bottom",m?"opacity-100 scale-100 translate-y-0":"opacity-0 scale-95 translate-y-2 pointer-events-none"),children:d.jsx(Gu,{rounded:"lg",shadow:"lg",className:"p-3 text-xs !bg-white dark:!bg-gray-900 !backdrop-blur-none",children:d.jsxs("div",{className:"space-y-2.5",children:[r!==void 0&&d.jsxs("div",{children:[d.jsx("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 dark:text-gray-400 font-semibold mb-0.5",children:"Raw Value"}),d.jsxs("div",{className:"flex items-center gap-1",children:[d.jsx("span",{className:"font-mono text-gray-700 dark:text-gray-200 break-all leading-tight",children:String(r)}),d.jsx(mh,{value:String(r)})]})]}),d.jsxs("div",{children:[d.jsx("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 dark:text-gray-400 font-semibold mb-0.5",children:"UTC ISO"}),d.jsxs("div",{className:"flex items-center gap-1",children:[d.jsx("span",{className:"font-mono text-gray-700 dark:text-gray-200 break-all leading-tight",children:g}),d.jsx(mh,{value:g})]})]}),d.jsxs("div",{children:[d.jsx("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 dark:text-gray-400 font-semibold mb-0.5",children:"Local Time"}),d.jsxs("div",{className:"flex items-center gap-1",children:[d.jsx("span",{className:"text-gray-700 dark:text-gray-200 leading-tight",children:y}),d.jsx(mh,{value:y})]})]})]})})})]})}function DT(n){return n<1e3?`${n.toFixed(2)}ms`:`${(n/1e3).toFixed(2)}s`}function kT(n){return typeof n!="string"?!1:[/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/,/^\d{4}-\d{2}-\d{2}$/].some(a=>a.test(n))}function OT(n){const a=n.toLowerCase();return!!(a.includes("created")||a.includes("date")||a.includes("updated")||n.endsWith("At")||a.endsWith("_at"))}function zT(n,a){for(const r of a){const i=r[n];if(i!=null)return typeof i=="boolean"?"bool":typeof i=="number"&&OT(n)?"date":typeof i=="number"?"number":kT(i)?"date":"string"}return"string"}function aw({results:n,meta:a,columns:r,error:i,title:s="Results",pageSize:u=25,onExportCsv:h,onExportJson:m,serverPagination:p}){const[g,y]=v.useState(""),[b,w]=v.useState(null),[j,E]=v.useState(new Set),[S,C]=v.useState(1),R=!!p,_=p?Math.floor(p.offset/p.limit)+1:1,T=p?Math.ceil(p.total/p.limit):1,k=v.useMemo(()=>r||(n.length===0?[]:Object.keys(n[0]).map(I=>({key:I,label:I,type:zT(I,n)}))),[r,n]),L=v.useMemo(()=>g?n.filter(I=>Object.values(I).some(ie=>String(ie).toLowerCase().includes(g.toLowerCase()))):n,[n,g]),X=v.useMemo(()=>b?[...L].sort((I,ie)=>{const re=I[b.key],U=ie[b.key];return re==null?1:U==null?-1:re<U?b.direction==="asc"?-1:1:re>U?b.direction==="asc"?1:-1:0}):L,[L,b]),q=Math.ceil(X.length/u),H=v.useMemo(()=>{const I=(S-1)*u;return X.slice(I,I+u)},[X,S,u]);v.useMemo(()=>{C(1)},[g,b]);const G=I=>{w(ie=>(ie==null?void 0:ie.key)===I?ie.direction==="asc"?{key:I,direction:"desc"}:null:{key:I,direction:"asc"})},te=()=>{j.size===H.length?E(new Set):E(new Set(H.map((I,ie)=>ie)))},ce=I=>{const ie=new Set(j);ie.has(I)?ie.delete(I):ie.add(I),E(ie)},de=(I,ie)=>{const re=I[ie.key];if(re==null)return d.jsx("span",{className:"text-xs italic dark:text-gray-600 text-gray-400",children:"NULL"});switch(ie.type||"string"){case"bool":return re?d.jsx("div",{className:"flex items-center justify-center w-6 h-6 rounded-full dark:bg-white/[0.06] bg-black/[0.04] dark:text-gray-300 text-gray-700",children:d.jsx(_m,{className:"w-3.5 h-3.5"})}):d.jsx("div",{className:"flex items-center justify-center w-6 h-6 rounded-full dark:bg-white/[0.06] bg-black/[0.04] dark:text-gray-300 text-gray-700",children:d.jsx(MT,{className:"w-3.5 h-3.5"})});case"date":return d.jsx(Wl,{timestamp:re,rawValue:typeof re=="number"?re:void 0});case"number":return d.jsx("span",{className:"text-sm font-mono dark:text-gray-300 text-gray-700",children:typeof re=="number"?re.toLocaleString():String(re)});default:return typeof re=="object"?d.jsx("span",{className:"text-sm font-mono dark:text-gray-300 text-gray-700",children:JSON.stringify(re)}):d.jsx("span",{className:"text-sm dark:text-gray-300 text-gray-700",children:String(re)})}};return i?d.jsxs(Gu,{rounded:"2xl",shadow:"lg",className:"border-red-500/30 dark:border-red-500/20",children:[d.jsx("div",{className:"p-5 border-b dark:border-white/[0.08] border-gray-200",children:d.jsx("h2",{className:"text-lg font-semibold text-red-500",children:"Query Error"})}),d.jsx("div",{className:"p-5",children:d.jsx("p",{className:"font-mono text-sm text-red-500",children:i})})]}):d.jsxs(Gu,{rounded:"2xl",shadow:"lg",className:"flex flex-col",children:[d.jsxs("div",{className:"p-5 border-b dark:border-white/[0.08] border-gray-200 flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("h2",{className:"text-lg font-semibold dark:text-white text-gray-900",children:s}),a&&d.jsx("span",{className:"px-2 py-0.5 rounded-full text-xs font-medium bg-green-500/10 text-green-600 dark:text-green-400 border border-green-500/20",children:DT(a.duration)}),d.jsxs("span",{className:"text-sm dark:text-gray-500 text-gray-500",children:[n.length," row",n.length!==1?"s":""]})]}),d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsxs("div",{className:"relative group",children:[d.jsx(_T,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400 group-focus-within:text-blue-500 transition-colors"}),d.jsx("input",{type:"text",placeholder:"Search results...",value:g,onChange:I=>y(I.target.value),className:"pl-9 pr-4 py-2 rounded-lg text-sm bg-gray-100 dark:bg-white/[0.06] border border-transparent focus:bg-white dark:focus:bg-black focus:border-blue-500 focus:ring-1 focus:ring-blue-500 outline-none transition-all w-full sm:w-64 dark:text-white text-gray-900 placeholder-gray-500"})]}),(h||m)&&d.jsxs("div",{className:"flex items-center gap-2 border-l dark:border-white/[0.08] border-gray-200 pl-3 ml-1",children:[h&&d.jsx("button",{onClick:h,className:"p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] text-gray-500 dark:text-gray-400 transition-colors",title:"Export CSV",children:d.jsx(ET,{className:"w-4 h-4"})}),m&&d.jsx("button",{onClick:m,className:"p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] text-gray-500 dark:text-gray-400 transition-colors",title:"Export JSON",children:d.jsx(ST,{className:"w-4 h-4"})})]})]})]}),d.jsx("div",{className:"overflow-x-auto overflow-y-visible",children:d.jsxs("table",{className:"w-full text-left border-collapse font-mono",children:[d.jsx("thead",{children:d.jsxs("tr",{className:"border-b dark:border-white/[0.08] border-gray-200 bg-gray-50/50 dark:bg-white/[0.02]",children:[d.jsx("th",{className:"p-4 w-12",children:d.jsx("input",{type:"checkbox",checked:j.size===H.length&&H.length>0,onChange:te,className:"rounded border-gray-300 text-blue-600 focus:ring-blue-500 bg-transparent"})}),k.map(I=>d.jsx("th",{className:"p-4 text-xs font-semibold uppercase tracking-wider text-gray-500 dark:text-gray-400 cursor-pointer hover:text-blue-500 dark:hover:text-blue-400 transition-colors select-none group",onClick:()=>G(I.key),children:d.jsxs("div",{className:"flex items-center gap-1",children:[I.label,d.jsxs("div",{className:se("flex flex-col opacity-0 group-hover:opacity-50",(b==null?void 0:b.key)===I.key&&"opacity-100"),children:[d.jsx(yT,{className:se("w-2 h-2",(b==null?void 0:b.key)===I.key&&b.direction==="asc"&&"text-blue-500")}),d.jsx(mT,{className:se("w-2 h-2",(b==null?void 0:b.key)===I.key&&b.direction==="desc"&&"text-blue-500")})]})]})},I.key))]})}),d.jsx("tbody",{className:"divide-y dark:divide-white/[0.04] divide-gray-100",children:H.length>0?H.map((I,ie)=>d.jsxs("tr",{className:se("group transition-colors",j.has(ie)?"bg-blue-50/50 dark:bg-blue-500/10":"hover:bg-gray-50 dark:hover:bg-white/[0.02]"),children:[d.jsx("td",{className:"p-4",children:d.jsx("input",{type:"checkbox",checked:j.has(ie),onChange:()=>ce(ie),className:"rounded border-gray-300 text-blue-600 focus:ring-blue-500 bg-transparent"})}),k.map(re=>d.jsx("td",{className:"p-4 whitespace-nowrap",children:de(I,re)},`${ie}-${re.key}`))]},ie)):d.jsx("tr",{children:d.jsx("td",{colSpan:k.length+1,className:"p-8 text-center text-gray-500 dark:text-gray-400",children:g?`No results found matching "${g}"`:"Query executed successfully. No rows returned."})})})]})}),d.jsxs("div",{className:"p-4 border-t dark:border-white/[0.08] border-gray-200 flex items-center justify-between text-xs text-gray-500 dark:text-gray-400",children:[d.jsxs("div",{children:[R?d.jsxs(d.Fragment,{children:["Showing"," ",d.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:p.offset+1}),"-",d.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:Math.min(p.offset+n.length,p.total)})," ","of"," ",d.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:p.total})," ","total"]}):d.jsxs(d.Fragment,{children:["Showing"," ",d.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:H.length})," ","of"," ",d.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:X.length})," ","results"]}),j.size>0&&d.jsxs("span",{className:"ml-3 text-blue-500 font-medium",children:[j.size," row",j.size!==1?"s":""," ","selected"]})]}),R&&T>1&&d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("button",{onClick:()=>p.onPageChange(Math.max(0,p.offset-p.limit)),disabled:_===1,className:"p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:d.jsx(ub,{className:"w-4 h-4"})}),d.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:Math.min(T,5)},(I,ie)=>{let re;return T<=5||_<=3?re=ie+1:_>=T-2?re=T-4+ie:re=_-2+ie,d.jsx("button",{onClick:()=>p.onPageChange((re-1)*p.limit),className:se("px-2.5 py-1 rounded-lg font-medium transition-colors",_===re?"bg-blue-500/10 text-blue-600 dark:text-blue-400":"hover:bg-gray-100 dark:hover:bg-white/[0.06]"),children:re},re)})}),d.jsx("button",{onClick:()=>p.onPageChange(p.offset+p.limit),disabled:_===T,className:"p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:d.jsx($h,{className:"w-4 h-4"})})]}),!R&&q>1&&d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("button",{onClick:()=>C(I=>Math.max(1,I-1)),disabled:S===1,className:"p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:d.jsx(ub,{className:"w-4 h-4"})}),d.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:Math.min(q,5)},(I,ie)=>{let re;return q<=5||S<=3?re=ie+1:S>=q-2?re=q-4+ie:re=S-2+ie,d.jsx("button",{onClick:()=>C(re),className:se("px-2.5 py-1 rounded-lg font-medium transition-colors",S===re?"bg-blue-500/10 text-blue-600 dark:text-blue-400":"hover:bg-gray-100 dark:hover:bg-white/[0.06]"),children:re},re)})}),d.jsx("button",{onClick:()=>C(I=>Math.min(q,I+1)),disabled:S===q,className:"p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:d.jsx($h,{className:"w-4 h-4"})})]})]})]})}function mc({className:n,...a}){return d.jsx("table",{"data-slot":"table",className:se("w-full caption-bottom text-sm",n),...a})}function pc({className:n,...a}){return d.jsx("thead",{"data-slot":"table-header",className:se("[&_tr]:border-b",n),...a})}function vc({className:n,...a}){return d.jsx("tbody",{"data-slot":"table-body",className:se("[&_tr:last-child]:border-0",n),...a})}function yl({className:n,...a}){return d.jsx("tr",{"data-slot":"table-row",className:se("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",n),...a})}function nn({className:n,...a}){return d.jsx("th",{"data-slot":"table-head",className:se("text-foreground h-10 whitespace-nowrap px-2 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n),...a})}function an({className:n,...a}){return d.jsx("td",{"data-slot":"table-cell",className:se("whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n),...a})}function cb(n,a){if(typeof n=="function")return n(a);n!=null&&(n.current=a)}function Jo(...n){return a=>{let r=!1;const i=n.map(s=>{const u=cb(s,a);return!r&&typeof u=="function"&&(r=!0),u});if(r)return()=>{for(let s=0;s<i.length;s++){const u=i[s];typeof u=="function"?u():cb(n[s],null)}}}}function we(...n){return v.useCallback(Jo(...n),n)}function tr(n){const a=LT(n),r=v.forwardRef((i,s)=>{const{children:u,...h}=i,m=v.Children.toArray(u),p=m.find(UT);if(p){const g=p.props.children,y=m.map(b=>b===p?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:b);return d.jsx(a,{...h,ref:s,children:v.isValidElement(g)?v.cloneElement(g,void 0,y):null})}return d.jsx(a,{...h,ref:s,children:u})});return r.displayName=`${n}.Slot`,r}var db=tr("Slot");function LT(n){const a=v.forwardRef((r,i)=>{const{children:s,...u}=r;if(v.isValidElement(s)){const h=qT(s),m=HT(u,s.props);return s.type!==v.Fragment&&(m.ref=i?Jo(i,h):h),v.cloneElement(s,m)}return v.Children.count(s)>1?v.Children.only(null):null});return a.displayName=`${n}.SlotClone`,a}var lw=Symbol("radix.slottable");function rw(n){const a=({children:r})=>d.jsx(d.Fragment,{children:r});return a.displayName=`${n}.Slottable`,a.__radixId=lw,a}function UT(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===lw}function HT(n,a){const r={...a};for(const i in a){const s=n[i],u=a[i];/^on[A-Z]/.test(i)?s&&u?r[i]=(...h)=>{const m=u(...h);return s(...h),m}:s&&(r[i]=s):i==="style"?r[i]={...s,...u}:i==="className"&&(r[i]=[s,u].filter(Boolean).join(" "))}return{...n,...r}}function qT(n){var a,r;let i=(a=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:a.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(r=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:r.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}function iw(n){var a,r,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var s=n.length;for(a=0;a<s;a++)n[a]&&(r=iw(n[a]))&&(i&&(i+=" "),i+=r)}else for(r in n)n[r]&&(i&&(i+=" "),i+=r);return i}function BT(){for(var n,a,r=0,i="",s=arguments.length;r<s;r++)(n=arguments[r])&&(a=iw(n))&&(i&&(i+=" "),i+=a);return i}const fb=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,hb=BT,ow=(n,a)=>r=>{var i;if((a==null?void 0:a.variants)==null)return hb(n,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:u}=a,h=Object.keys(s).map(g=>{const y=r==null?void 0:r[g],b=u==null?void 0:u[g];if(y===null)return null;const w=fb(y)||fb(b);return s[g][w]}),m=r&&Object.entries(r).reduce((g,y)=>{let[b,w]=y;return w===void 0||(g[b]=w),g},{}),p=a==null||(i=a.compoundVariants)===null||i===void 0?void 0:i.reduce((g,y)=>{let{class:b,className:w,...j}=y;return Object.entries(j).every(E=>{let[S,C]=E;return Array.isArray(C)?C.includes({...u,...m}[S]):{...u,...m}[S]===C})?[...g,b,w]:g},[]);return hb(n,h,p,r==null?void 0:r.class,r==null?void 0:r.className)},QT={default:"text-gray-600 bg-gray-100 border-gray-200 dark:text-gray-400 dark:bg-gray-900 dark:border-gray-500/20",success:"text-green-600 bg-green-50 border-green-200 dark:text-green-400 dark:bg-green-950 dark:border-green-500/20",error:"text-red-600 bg-red-50 border-red-200 dark:text-red-400 dark:bg-red-950 dark:border-red-500/20",warning:"text-yellow-600 bg-yellow-50 border-yellow-200 dark:text-yellow-400 dark:bg-yellow-950 dark:border-yellow-500/20",purple:"text-purple-600 bg-purple-50 border-purple-200 dark:text-purple-400 dark:bg-purple-950 dark:border-purple-500/20",blue:"text-blue-600 bg-blue-50 border-blue-200 dark:text-blue-400 dark:bg-blue-950 dark:border-blue-500/20",orange:"text-orange-600 bg-orange-50 border-orange-200 dark:text-orange-400 dark:bg-orange-950 dark:border-orange-500/20",emerald:"text-emerald-600 bg-emerald-50 border-emerald-200 dark:text-emerald-400 dark:bg-emerald-950 dark:border-emerald-500/20"};function Vu({className:n,icon:a,variant:r="default",children:i,...s}){return d.jsxs("div",{className:se("inline-flex items-center gap-1.5 px-2.5 py-1.5 text-xs font-medium rounded-lg border [&_svg]:w-3 [&_svg]:h-3",QT[r],n),...s,children:[a&&d.jsx("span",{className:"flex-shrink-0",children:a}),d.jsx("span",{className:"leading-none",children:i})]})}const mb=ow("relative inline-flex items-center justify-center gap-2 whitespace-nowrap font-medium transition-all duration-200 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-transparent dark:focus-visible:ring-white/20 focus-visible:ring-black/10 cursor-pointer overflow-hidden",{variants:{variant:{default:"rounded-md bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",primary:se("rounded-lg border backdrop-blur-xl","dark:shadow-[0_4px_16px_rgba(0,0,0,0.3)] shadow-[0_1px_4px_rgba(0,0,0,0.04)]","dark:bg-white/[0.08] bg-black/[0.05]","dark:border-white/[0.1] border-black/[0.1]","dark:text-white text-gray-900","dark:hover:bg-white/[0.15] hover:bg-black/[0.1]","dark:hover:border-white/[0.2] hover:border-black/[0.2]"),secondary:se("rounded-lg border backdrop-blur-xl","dark:shadow-[0_4px_16px_rgba(0,0,0,0.3)] shadow-[0_1px_4px_rgba(0,0,0,0.04)]","dark:bg-[#1a1a1a] bg-white","dark:border-white/[0.08] border-gray-200","dark:text-gray-300 text-gray-700","dark:hover:bg-white/[0.05] hover:bg-black/[0.04]","dark:hover:text-white hover:text-gray-900","dark:hover:border-white/[0.15] hover:border-gray-300"),destructive:"rounded-md bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",danger:se("rounded-lg border backdrop-blur-xl","dark:shadow-[0_4px_16px_rgba(0,0,0,0.3)] shadow-[0_1px_4px_rgba(0,0,0,0.04)]","dark:bg-red-500/[0.1] bg-red-500/[0.05]","dark:border-red-500/[0.2] border-red-500/[0.2]","dark:text-red-400 text-red-600","dark:hover:bg-red-500/[0.2] hover:bg-red-500/[0.1]","dark:hover:border-red-500/[0.3] hover:border-red-500/[0.3]"),success:se("rounded-lg border backdrop-blur-xl","dark:shadow-[0_4px_16px_rgba(0,0,0,0.3)] shadow-[0_1px_4px_rgba(0,0,0,0.04)]","dark:bg-emerald-500/[0.1] bg-emerald-500/[0.05]","dark:border-emerald-500/[0.2] border-emerald-500/[0.2]","dark:text-emerald-400 text-emerald-600","dark:hover:bg-emerald-500/[0.2] hover:bg-emerald-500/[0.1]","dark:hover:border-emerald-500/[0.3] hover:border-emerald-500/[0.3]"),outline:"rounded-md border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",ghost:se("rounded-lg border border-transparent","dark:text-gray-400 text-gray-600","dark:hover:text-white hover:text-gray-900","dark:hover:bg-white/[0.08] hover:bg-black/[0.06]"),link:"text-primary underline-offset-4 hover:underline",icon:se("rounded-full border backdrop-blur-xl","dark:shadow-[0_1px_4px_rgba(0,0,0,0.3)] shadow-[0_1px_2px_rgba(0,0,0,0.04)]","dark:bg-white/[0.06] bg-black/[0.04]","dark:border-white/[0.08] border-black/[0.08]","dark:text-gray-300 text-gray-700","dark:hover:bg-white/[0.12] hover:bg-black/[0.08]","dark:hover:text-white hover:text-gray-900","dark:hover:border-white/[0.2] hover:border-black/[0.15]")},size:{default:"h-9 px-4 py-2 text-sm has-[>svg]:px-3",sm:"h-8 px-3 text-xs has-[>svg]:px-2.5",md:"h-10 px-4 text-sm has-[>svg]:px-3",lg:"h-12 px-6 text-base has-[>svg]:px-4",icon:"size-8 p-0 [&_svg]:size-4","icon-sm":"size-8 p-0 [&_svg]:size-4","icon-md":"size-10 p-0 [&_svg]:size-5","icon-lg":"size-12 p-0 [&_svg]:size-6"}},defaultVariants:{variant:"default",size:"default"}}),YT=["primary","secondary","danger","success","icon"];function Rt({className:n,variant:a,size:r,asChild:i=!1,isLoading:s=!1,children:u,disabled:h,...m}){const p=i?db:"button",g=a&&YT.includes(a);return i?d.jsx(db,{"data-slot":"button",className:se(mb({variant:a,size:r,className:n})),...m,children:u}):d.jsxs(p,{"data-slot":"button",className:se(mb({variant:a,size:r,className:n})),disabled:h||s,...m,children:[g&&d.jsxs("div",{className:"absolute inset-0 pointer-events-none z-0",children:[d.jsx("div",{className:"absolute inset-0 dark:opacity-0 opacity-100",style:{background:"radial-gradient(circle at top left, rgba(0, 0, 0, 0.06) 0%, transparent 50%)"}}),d.jsx("div",{className:"absolute inset-0 opacity-0 dark:opacity-100",style:{background:"radial-gradient(circle at top left, rgba(255, 255, 255, 0.08) 0%, transparent 50%)"}})]}),d.jsxs("span",{className:"relative z-10 flex items-center justify-center gap-2",children:[s&&d.jsx(CT,{className:"size-4 animate-spin"}),u]})]})}const sw=v.forwardRef(({className:n,active:a=!1,icon:r,children:i,"data-state":s,...u},h)=>{const m=a||s==="active";return d.jsxs("button",{ref:h,"data-slot":"tab-button","data-state":s,className:se("group relative flex items-center gap-2 px-4 py-2 text-sm font-medium transition-colors duration-200 cursor-pointer","dark:text-gray-400 text-gray-600 dark:hover:text-white hover:text-gray-900",m&&"dark:text-white text-gray-900",n),...u,children:[r&&d.jsx(r,{className:"size-4"}),i,d.jsx("span",{className:se("absolute bottom-0 left-0 right-0 h-[2px]","bg-gradient-to-r from-transparent dark:via-white/60 via-black/60 to-transparent","transition-transform duration-300",m?"scale-x-100":"scale-x-0")})]})});sw.displayName="TabButton";const GT={sm:"h-8 px-3 text-xs",md:"h-10 px-4 text-sm",lg:"h-12 px-5 text-base"};function VT({className:n,label:a,error:r,leftIcon:i,rightContent:s,inputSize:u="md",...h}){return d.jsxs("div",{className:"w-full",children:[a&&d.jsx("label",{className:"block text-sm font-medium dark:text-white text-gray-900 mb-2",children:a}),d.jsx("div",{className:"relative",children:d.jsxs("div",{className:se("relative flex items-center overflow-hidden","border backdrop-blur-xl rounded-lg","dark:shadow-[0_4px_16px_rgba(0,0,0,0.3)] shadow-[0_1px_4px_rgba(0,0,0,0.04)]","dark:bg-[#1a1a1a] bg-white","dark:border-white/[0.08] border-gray-200","transition-all duration-200","focus-within:dark:border-white/[0.15] focus-within:border-gray-300",r&&"dark:border-red-500/[0.3] border-red-500",n),children:[d.jsxs("div",{className:"absolute inset-0 pointer-events-none z-0",children:[d.jsx("div",{className:"absolute inset-0 dark:opacity-0 opacity-100",style:{background:"radial-gradient(circle at top left, rgba(0, 0, 0, 0.06) 0%, transparent 50%)"}}),d.jsx("div",{className:"absolute inset-0 opacity-0 dark:opacity-100",style:{background:"radial-gradient(circle at top left, rgba(255, 255, 255, 0.08) 0%, transparent 50%)"}})]}),i&&d.jsx("div",{className:"relative z-10 pl-4",children:d.jsx(i,{className:"w-4 h-4 dark:text-gray-400 text-gray-600 flex-shrink-0"})}),d.jsx("input",{className:se("relative z-10 flex-1 bg-transparent border-0 outline-none","dark:text-white text-gray-900","dark:placeholder:text-gray-500 placeholder:text-gray-400","disabled:opacity-50 disabled:cursor-not-allowed",GT[u],i&&"pl-2",s!==null&&"pr-2"),...h}),s&&d.jsx("div",{className:"relative z-10 pr-3",children:s})]})}),r&&d.jsx("p",{className:"mt-2 text-xs dark:text-red-400 text-red-600",children:r})]})}var KT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],oe=KT.reduce((n,a)=>{const r=tr(`Primitive.${a}`),i=v.forwardRef((s,u)=>{const{asChild:h,...m}=s,p=h?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(p,{...m,ref:u})});return i.displayName=`Primitive.${a}`,{...n,[a]:i}},{});function Ku(n,a){n&&Po.flushSync(()=>n.dispatchEvent(a))}var et=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{};function XT(n,a){return v.useReducer((r,i)=>a[r][i]??r,n)}var st=n=>{const{present:a,children:r}=n,i=$T(a),s=typeof r=="function"?r({present:i.isPresent}):v.Children.only(r),u=we(i.ref,ZT(s));return typeof r=="function"||i.isPresent?v.cloneElement(s,{ref:u}):null};st.displayName="Presence";function $T(n){const[a,r]=v.useState(),i=v.useRef(null),s=v.useRef(n),u=v.useRef("none"),h=n?"mounted":"unmounted",[m,p]=XT(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const g=Ru(i.current);u.current=m==="mounted"?g:"none"},[m]),et(()=>{const g=i.current,y=s.current;if(y!==n){const b=u.current,w=Ru(g);n?p("MOUNT"):w==="none"||(g==null?void 0:g.display)==="none"?p("UNMOUNT"):p(y&&b!==w?"ANIMATION_OUT":"UNMOUNT"),s.current=n}},[n,p]),et(()=>{if(a){let g;const y=a.ownerDocument.defaultView??window,b=j=>{const E=Ru(i.current).includes(CSS.escape(j.animationName));if(j.target===a&&E&&(p("ANIMATION_END"),!s.current)){const S=a.style.animationFillMode;a.style.animationFillMode="forwards",g=y.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=S)})}},w=j=>{j.target===a&&(u.current=Ru(i.current))};return a.addEventListener("animationstart",w),a.addEventListener("animationcancel",b),a.addEventListener("animationend",b),()=>{y.clearTimeout(g),a.removeEventListener("animationstart",w),a.removeEventListener("animationcancel",b),a.removeEventListener("animationend",b)}}else p("ANIMATION_END")},[a,p]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:v.useCallback(g=>{i.current=g?getComputedStyle(g):null,r(g)},[])}}function Ru(n){return(n==null?void 0:n.animationName)||"none"}function ZT(n){var a,r;let i=(a=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:a.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(r=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:r.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}function FT(n,a){const r=v.createContext(a),i=u=>{const{children:h,...m}=u,p=v.useMemo(()=>m,Object.values(m));return d.jsx(r.Provider,{value:p,children:h})};i.displayName=n+"Provider";function s(u){const h=v.useContext(r);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${n}\``)}return[i,s]}function ht(n,a=[]){let r=[];function i(u,h){const m=v.createContext(h),p=r.length;r=[...r,h];const g=b=>{var w;const{scope:j,children:E,...S}=b,C=((w=j==null?void 0:j[n])==null?void 0:w[p])||m,R=v.useMemo(()=>S,Object.values(S));return d.jsx(C.Provider,{value:R,children:E})};g.displayName=u+"Provider";function y(b,w){var j;const E=((j=w==null?void 0:w[n])==null?void 0:j[p])||m,S=v.useContext(E);if(S)return S;if(h!==void 0)return h;throw new Error(`\`${b}\` must be used within \`${u}\``)}return[g,y]}const s=()=>{const u=r.map(h=>v.createContext(h));return function(h){const m=(h==null?void 0:h[n])||u;return v.useMemo(()=>({[`__scope${n}`]:{...h,[n]:m}}),[h,m])}};return s.scopeName=n,[i,PT(s,...a)]}function PT(...n){const a=n[0];if(n.length===1)return a;const r=()=>{const i=n.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(s){const u=i.reduce((h,{useScope:m,scopeName:p})=>{const g=m(s)[`__scope${p}`];return{...h,...g}},{});return v.useMemo(()=>({[`__scope${a.scopeName}`]:u}),[u])}};return r.scopeName=a.scopeName,r}function We(n){const a=v.useRef(n);return v.useEffect(()=>{a.current=n}),v.useMemo(()=>(...r)=>{var i;return(i=a.current)==null?void 0:i.call(a,...r)},[])}var JT=v.createContext(void 0);function Ei(n){const a=v.useContext(JT);return n||a||"ltr"}function Zh(n,[a,r]){return Math.min(r,Math.max(a,n))}function ae(n,a,{checkForDefaultPrevented:r=!0}={}){return function(i){if(n==null||n(i),r===!1||!i.defaultPrevented)return a==null?void 0:a(i)}}function WT(n,a){return v.useReducer((r,i)=>a[r][i]??r,n)}var Tm="ScrollArea",[uw,vz]=ht(Tm),[IT,jn]=uw(Tm),cw=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,type:i="hover",dir:s,scrollHideDelay:u=600,...h}=n,[m,p]=v.useState(null),[g,y]=v.useState(null),[b,w]=v.useState(null),[j,E]=v.useState(null),[S,C]=v.useState(null),[R,_]=v.useState(0),[T,k]=v.useState(0),[L,X]=v.useState(!1),[q,H]=v.useState(!1),G=we(a,ce=>p(ce)),te=Ei(s);return d.jsx(IT,{scope:r,type:i,dir:te,scrollHideDelay:u,scrollArea:m,viewport:g,onViewportChange:y,content:b,onContentChange:w,scrollbarX:j,onScrollbarXChange:E,scrollbarXEnabled:L,onScrollbarXEnabledChange:X,scrollbarY:S,onScrollbarYChange:C,scrollbarYEnabled:q,onScrollbarYEnabledChange:H,onCornerWidthChange:_,onCornerHeightChange:k,children:d.jsx(oe.div,{dir:te,...h,ref:G,style:{position:"relative","--radix-scroll-area-corner-width":R+"px","--radix-scroll-area-corner-height":T+"px",...n.style}})})});cw.displayName=Tm;var dw="ScrollAreaViewport",fw=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,children:i,nonce:s,...u}=n,h=jn(dw,r),m=v.useRef(null),p=we(a,m,h.onViewportChange);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),d.jsx(oe.div,{"data-radix-scroll-area-viewport":"",...u,ref:p,style:{overflowX:h.scrollbarXEnabled?"scroll":"hidden",overflowY:h.scrollbarYEnabled?"scroll":"hidden",...n.style},children:d.jsx("div",{ref:h.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});fw.displayName=dw;var Pn="ScrollAreaScrollbar",hw=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=jn(Pn,n.__scopeScrollArea),{onScrollbarXEnabledChange:u,onScrollbarYEnabledChange:h}=s,m=n.orientation==="horizontal";return v.useEffect(()=>(m?u(!0):h(!0),()=>{m?u(!1):h(!1)}),[m,u,h]),s.type==="hover"?d.jsx(eM,{...i,ref:a,forceMount:r}):s.type==="scroll"?d.jsx(tM,{...i,ref:a,forceMount:r}):s.type==="auto"?d.jsx(mw,{...i,ref:a,forceMount:r}):s.type==="always"?d.jsx(Mm,{...i,ref:a}):null});hw.displayName=Pn;var eM=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=jn(Pn,n.__scopeScrollArea),[u,h]=v.useState(!1);return v.useEffect(()=>{const m=s.scrollArea;let p=0;if(m){const g=()=>{window.clearTimeout(p),h(!0)},y=()=>{p=window.setTimeout(()=>h(!1),s.scrollHideDelay)};return m.addEventListener("pointerenter",g),m.addEventListener("pointerleave",y),()=>{window.clearTimeout(p),m.removeEventListener("pointerenter",g),m.removeEventListener("pointerleave",y)}}},[s.scrollArea,s.scrollHideDelay]),d.jsx(st,{present:r||u,children:d.jsx(mw,{"data-state":u?"visible":"hidden",...i,ref:a})})}),tM=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=jn(Pn,n.__scopeScrollArea),u=n.orientation==="horizontal",h=yc(()=>p("SCROLL_END"),100),[m,p]=WT("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return v.useEffect(()=>{if(m==="idle"){const g=window.setTimeout(()=>p("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(g)}},[m,s.scrollHideDelay,p]),v.useEffect(()=>{const g=s.viewport,y=u?"scrollLeft":"scrollTop";if(g){let b=g[y];const w=()=>{const j=g[y];b!==j&&(p("SCROLL"),h()),b=j};return g.addEventListener("scroll",w),()=>g.removeEventListener("scroll",w)}},[s.viewport,u,p,h]),d.jsx(st,{present:r||m!=="hidden",children:d.jsx(Mm,{"data-state":m==="hidden"?"hidden":"visible",...i,ref:a,onPointerEnter:ae(n.onPointerEnter,()=>p("POINTER_ENTER")),onPointerLeave:ae(n.onPointerLeave,()=>p("POINTER_LEAVE"))})})}),mw=v.forwardRef((n,a)=>{const r=jn(Pn,n.__scopeScrollArea),{forceMount:i,...s}=n,[u,h]=v.useState(!1),m=n.orientation==="horizontal",p=yc(()=>{if(r.viewport){const g=r.viewport.offsetWidth<r.viewport.scrollWidth,y=r.viewport.offsetHeight<r.viewport.scrollHeight;h(m?g:y)}},10);return pi(r.viewport,p),pi(r.content,p),d.jsx(st,{present:i||u,children:d.jsx(Mm,{"data-state":u?"visible":"hidden",...s,ref:a})})}),Mm=v.forwardRef((n,a)=>{const{orientation:r="vertical",...i}=n,s=jn(Pn,n.__scopeScrollArea),u=v.useRef(null),h=v.useRef(0),[m,p]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),g=bw(m.viewport,m.content),y={...i,sizes:m,onSizesChange:p,hasThumb:g>0&&g<1,onThumbChange:w=>u.current=w,onThumbPointerUp:()=>h.current=0,onThumbPointerDown:w=>h.current=w};function b(w,j){return oM(w,h.current,m,j)}return r==="horizontal"?d.jsx(nM,{...y,ref:a,onThumbPositionChange:()=>{if(s.viewport&&u.current){const w=s.viewport.scrollLeft,j=pb(w,m,s.dir);u.current.style.transform=`translate3d(${j}px, 0, 0)`}},onWheelScroll:w=>{s.viewport&&(s.viewport.scrollLeft=w)},onDragScroll:w=>{s.viewport&&(s.viewport.scrollLeft=b(w,s.dir))}}):r==="vertical"?d.jsx(aM,{...y,ref:a,onThumbPositionChange:()=>{if(s.viewport&&u.current){const w=s.viewport.scrollTop,j=pb(w,m);u.current.style.transform=`translate3d(0, ${j}px, 0)`}},onWheelScroll:w=>{s.viewport&&(s.viewport.scrollTop=w)},onDragScroll:w=>{s.viewport&&(s.viewport.scrollTop=b(w))}}):null}),nM=v.forwardRef((n,a)=>{const{sizes:r,onSizesChange:i,...s}=n,u=jn(Pn,n.__scopeScrollArea),[h,m]=v.useState(),p=v.useRef(null),g=we(a,p,u.onScrollbarXChange);return v.useEffect(()=>{p.current&&m(getComputedStyle(p.current))},[p]),d.jsx(vw,{"data-orientation":"horizontal",...s,ref:g,sizes:r,style:{bottom:0,left:u.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:u.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":gc(r)+"px",...n.style},onThumbPointerDown:y=>n.onThumbPointerDown(y.x),onDragScroll:y=>n.onDragScroll(y.x),onWheelScroll:(y,b)=>{if(u.viewport){const w=u.viewport.scrollLeft+y.deltaX;n.onWheelScroll(w),ww(w,b)&&y.preventDefault()}},onResize:()=>{p.current&&u.viewport&&h&&i({content:u.viewport.scrollWidth,viewport:u.viewport.offsetWidth,scrollbar:{size:p.current.clientWidth,paddingStart:$u(h.paddingLeft),paddingEnd:$u(h.paddingRight)}})}})}),aM=v.forwardRef((n,a)=>{const{sizes:r,onSizesChange:i,...s}=n,u=jn(Pn,n.__scopeScrollArea),[h,m]=v.useState(),p=v.useRef(null),g=we(a,p,u.onScrollbarYChange);return v.useEffect(()=>{p.current&&m(getComputedStyle(p.current))},[p]),d.jsx(vw,{"data-orientation":"vertical",...s,ref:g,sizes:r,style:{top:0,right:u.dir==="ltr"?0:void 0,left:u.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":gc(r)+"px",...n.style},onThumbPointerDown:y=>n.onThumbPointerDown(y.y),onDragScroll:y=>n.onDragScroll(y.y),onWheelScroll:(y,b)=>{if(u.viewport){const w=u.viewport.scrollTop+y.deltaY;n.onWheelScroll(w),ww(w,b)&&y.preventDefault()}},onResize:()=>{p.current&&u.viewport&&h&&i({content:u.viewport.scrollHeight,viewport:u.viewport.offsetHeight,scrollbar:{size:p.current.clientHeight,paddingStart:$u(h.paddingTop),paddingEnd:$u(h.paddingBottom)}})}})}),[lM,pw]=uw(Pn),vw=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,sizes:i,hasThumb:s,onThumbChange:u,onThumbPointerUp:h,onThumbPointerDown:m,onThumbPositionChange:p,onDragScroll:g,onWheelScroll:y,onResize:b,...w}=n,j=jn(Pn,r),[E,S]=v.useState(null),C=we(a,G=>S(G)),R=v.useRef(null),_=v.useRef(""),T=j.viewport,k=i.content-i.viewport,L=We(y),X=We(p),q=yc(b,10);function H(G){if(R.current){const te=G.clientX-R.current.left,ce=G.clientY-R.current.top;g({x:te,y:ce})}}return v.useEffect(()=>{const G=te=>{const ce=te.target;E!=null&&E.contains(ce)&&L(te,k)};return document.addEventListener("wheel",G,{passive:!1}),()=>document.removeEventListener("wheel",G,{passive:!1})},[T,E,k,L]),v.useEffect(X,[i,X]),pi(E,q),pi(j.content,q),d.jsx(lM,{scope:r,scrollbar:E,hasThumb:s,onThumbChange:We(u),onThumbPointerUp:We(h),onThumbPositionChange:X,onThumbPointerDown:We(m),children:d.jsx(oe.div,{...w,ref:C,style:{position:"absolute",...w.style},onPointerDown:ae(n.onPointerDown,G=>{G.button===0&&(G.target.setPointerCapture(G.pointerId),R.current=E.getBoundingClientRect(),_.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",j.viewport&&(j.viewport.style.scrollBehavior="auto"),H(G))}),onPointerMove:ae(n.onPointerMove,H),onPointerUp:ae(n.onPointerUp,G=>{const te=G.target;te.hasPointerCapture(G.pointerId)&&te.releasePointerCapture(G.pointerId),document.body.style.webkitUserSelect=_.current,j.viewport&&(j.viewport.style.scrollBehavior=""),R.current=null})})})}),Xu="ScrollAreaThumb",gw=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=pw(Xu,n.__scopeScrollArea);return d.jsx(st,{present:r||s.hasThumb,children:d.jsx(rM,{ref:a,...i})})}),rM=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,style:i,...s}=n,u=jn(Xu,r),h=pw(Xu,r),{onThumbPositionChange:m}=h,p=we(a,b=>h.onThumbChange(b)),g=v.useRef(void 0),y=yc(()=>{g.current&&(g.current(),g.current=void 0)},100);return v.useEffect(()=>{const b=u.viewport;if(b){const w=()=>{if(y(),!g.current){const j=sM(b,m);g.current=j,m()}};return m(),b.addEventListener("scroll",w),()=>b.removeEventListener("scroll",w)}},[u.viewport,y,m]),d.jsx(oe.div,{"data-state":h.hasThumb?"visible":"hidden",...s,ref:p,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:ae(n.onPointerDownCapture,b=>{const w=b.target.getBoundingClientRect(),j=b.clientX-w.left,E=b.clientY-w.top;h.onThumbPointerDown({x:j,y:E})}),onPointerUp:ae(n.onPointerUp,h.onThumbPointerUp)})});gw.displayName=Xu;var Am="ScrollAreaCorner",yw=v.forwardRef((n,a)=>{const r=jn(Am,n.__scopeScrollArea),i=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&i?d.jsx(iM,{...n,ref:a}):null});yw.displayName=Am;var iM=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,...i}=n,s=jn(Am,r),[u,h]=v.useState(0),[m,p]=v.useState(0),g=!!(u&&m);return pi(s.scrollbarX,()=>{var y;const b=((y=s.scrollbarX)==null?void 0:y.offsetHeight)||0;s.onCornerHeightChange(b),p(b)}),pi(s.scrollbarY,()=>{var y;const b=((y=s.scrollbarY)==null?void 0:y.offsetWidth)||0;s.onCornerWidthChange(b),h(b)}),g?d.jsx(oe.div,{...i,ref:a,style:{width:u,height:m,position:"absolute",right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:0,...n.style}}):null});function $u(n){return n?parseInt(n,10):0}function bw(n,a){const r=n/a;return isNaN(r)?0:r}function gc(n){const a=bw(n.viewport,n.content),r=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,i=(n.scrollbar.size-r)*a;return Math.max(i,18)}function oM(n,a,r,i="ltr"){const s=gc(r),u=s/2,h=a||u,m=s-h,p=r.scrollbar.paddingStart+h,g=r.scrollbar.size-r.scrollbar.paddingEnd-m,y=r.content-r.viewport,b=i==="ltr"?[0,y]:[y*-1,0];return xw([p,g],b)(n)}function pb(n,a,r="ltr"){const i=gc(a),s=a.scrollbar.paddingStart+a.scrollbar.paddingEnd,u=a.scrollbar.size-s,h=a.content-a.viewport,m=u-i,p=r==="ltr"?[0,h]:[h*-1,0],g=Zh(n,p);return xw([0,h],[0,m])(g)}function xw(n,a){return r=>{if(n[0]===n[1]||a[0]===a[1])return a[0];const i=(a[1]-a[0])/(n[1]-n[0]);return a[0]+i*(r-n[0])}}function ww(n,a){return n>0&&n<a}var sM=(n,a=()=>{})=>{let r={left:n.scrollLeft,top:n.scrollTop},i=0;return(function s(){const u={left:n.scrollLeft,top:n.scrollTop},h=r.left!==u.left,m=r.top!==u.top;(h||m)&&a(),r=u,i=window.requestAnimationFrame(s)})(),()=>window.cancelAnimationFrame(i)};function yc(n,a){const r=We(n),i=v.useRef(0);return v.useEffect(()=>()=>window.clearTimeout(i.current),[]),v.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(r,a)},[r,a])}function pi(n,a){const r=We(a);et(()=>{let i=0;if(n){const s=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(r)});return s.observe(n),()=>{window.cancelAnimationFrame(i),s.unobserve(n)}}},[n,r])}var uM=cw,cM=fw,dM=yw;function Sw({className:n,children:a,...r}){return d.jsxs(uM,{"data-slot":"scroll-area",className:se("relative",n),...r,children:[d.jsx(cM,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:a}),d.jsx(fM,{}),d.jsx(dM,{})]})}function fM({className:n,orientation:a="vertical",...r}){return d.jsx(hw,{"data-slot":"scroll-area-scrollbar",orientation:a,className:se("flex touch-none p-px transition-colors select-none",a==="vertical"&&"h-full w-2.5 border-l border-l-transparent",a==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",n),...r,children:d.jsx(gw,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}var hM=gx[" useInsertionEffect ".trim().toString()]||et;function Jn({prop:n,defaultProp:a,onChange:r=()=>{},caller:i}){const[s,u,h]=mM({defaultProp:a,onChange:r}),m=n!==void 0,p=m?n:s;{const y=v.useRef(n!==void 0);v.useEffect(()=>{const b=y.current;b!==m&&console.warn(`${i} is changing from ${b?"controlled":"uncontrolled"} to ${m?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),y.current=m},[m,i])}const g=v.useCallback(y=>{var b;if(m){const w=pM(y)?y(n):y;w!==n&&((b=h.current)==null||b.call(h,w))}else u(y)},[m,n,u,h]);return[p,g]}function mM({defaultProp:n,onChange:a}){const[r,i]=v.useState(n),s=v.useRef(r),u=v.useRef(a);return hM(()=>{u.current=a},[a]),v.useEffect(()=>{var h;s.current!==r&&((h=u.current)==null||h.call(u,r),s.current=r)},[r,s]),[r,i,u]}function pM(n){return typeof n=="function"}function Ni(n){const a=n+"CollectionProvider",[r,i]=ht(a),[s,u]=r(a,{collectionRef:{current:null},itemMap:new Map}),h=S=>{const{scope:C,children:R}=S,_=lt.useRef(null),T=lt.useRef(new Map).current;return d.jsx(s,{scope:C,itemMap:T,collectionRef:_,children:R})};h.displayName=a;const m=n+"CollectionSlot",p=tr(m),g=lt.forwardRef((S,C)=>{const{scope:R,children:_}=S,T=u(m,R),k=we(C,T.collectionRef);return d.jsx(p,{ref:k,children:_})});g.displayName=m;const y=n+"CollectionItemSlot",b="data-radix-collection-item",w=tr(y),j=lt.forwardRef((S,C)=>{const{scope:R,children:_,...T}=S,k=lt.useRef(null),L=we(C,k),X=u(y,R);return lt.useEffect(()=>(X.itemMap.set(k,{ref:k,...T}),()=>void X.itemMap.delete(k))),d.jsx(w,{[b]:"",ref:L,children:_})});j.displayName=y;function E(S){const C=u(n+"CollectionConsumer",S);return lt.useCallback(()=>{const R=C.collectionRef.current;if(!R)return[];const _=Array.from(R.querySelectorAll(`[${b}]`));return Array.from(C.itemMap.values()).sort((T,k)=>_.indexOf(T.ref.current)-_.indexOf(k.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:h,Slot:g,ItemSlot:j},E,i]}function vM(n,a=globalThis==null?void 0:globalThis.document){const r=We(n);v.useEffect(()=>{const i=s=>{s.key==="Escape"&&r(s)};return a.addEventListener("keydown",i,{capture:!0}),()=>a.removeEventListener("keydown",i,{capture:!0})},[r,a])}var gM="DismissableLayer",Fh="dismissableLayer.update",yM="dismissableLayer.pointerDownOutside",bM="dismissableLayer.focusOutside",vb,jw=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ci=v.forwardRef((n,a)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:h,onDismiss:m,...p}=n,g=v.useContext(jw),[y,b]=v.useState(null),w=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,j]=v.useState({}),E=we(a,q=>b(q)),S=Array.from(g.layers),[C]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),R=S.indexOf(C),_=y?S.indexOf(y):-1,T=g.layersWithOutsidePointerEventsDisabled.size>0,k=_>=R,L=SM(q=>{const H=q.target,G=[...g.branches].some(te=>te.contains(H));!k||G||(s==null||s(q),h==null||h(q),q.defaultPrevented||m==null||m())},w),X=jM(q=>{const H=q.target;[...g.branches].some(G=>G.contains(H))||(u==null||u(q),h==null||h(q),q.defaultPrevented||m==null||m())},w);return vM(q=>{_===g.layers.size-1&&(i==null||i(q),!q.defaultPrevented&&m&&(q.preventDefault(),m()))},w),v.useEffect(()=>{if(y)return r&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(vb=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(y)),g.layers.add(y),gb(),()=>{r&&g.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=vb)}},[y,w,r,g]),v.useEffect(()=>()=>{y&&(g.layers.delete(y),g.layersWithOutsidePointerEventsDisabled.delete(y),gb())},[y,g]),v.useEffect(()=>{const q=()=>j({});return document.addEventListener(Fh,q),()=>document.removeEventListener(Fh,q)},[]),d.jsx(oe.div,{...p,ref:E,style:{pointerEvents:T?k?"auto":"none":void 0,...n.style},onFocusCapture:ae(n.onFocusCapture,X.onFocusCapture),onBlurCapture:ae(n.onBlurCapture,X.onBlurCapture),onPointerDownCapture:ae(n.onPointerDownCapture,L.onPointerDownCapture)})});Ci.displayName=gM;var xM="DismissableLayerBranch",wM=v.forwardRef((n,a)=>{const r=v.useContext(jw),i=v.useRef(null),s=we(a,i);return v.useEffect(()=>{const u=i.current;if(u)return r.branches.add(u),()=>{r.branches.delete(u)}},[r.branches]),d.jsx(oe.div,{...n,ref:s})});wM.displayName=xM;function SM(n,a=globalThis==null?void 0:globalThis.document){const r=We(n),i=v.useRef(!1),s=v.useRef(()=>{});return v.useEffect(()=>{const u=m=>{if(m.target&&!i.current){let p=function(){Ew(yM,r,g,{discrete:!0})};const g={originalEvent:m};m.pointerType==="touch"?(a.removeEventListener("click",s.current),s.current=p,a.addEventListener("click",s.current,{once:!0})):p()}else a.removeEventListener("click",s.current);i.current=!1},h=window.setTimeout(()=>{a.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(h),a.removeEventListener("pointerdown",u),a.removeEventListener("click",s.current)}},[a,r]),{onPointerDownCapture:()=>i.current=!0}}function jM(n,a=globalThis==null?void 0:globalThis.document){const r=We(n),i=v.useRef(!1);return v.useEffect(()=>{const s=u=>{u.target&&!i.current&&Ew(bM,r,{originalEvent:u},{discrete:!1})};return a.addEventListener("focusin",s),()=>a.removeEventListener("focusin",s)},[a,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function gb(){const n=new CustomEvent(Fh);document.dispatchEvent(n)}function Ew(n,a,r,{discrete:i}){const s=r.originalEvent.target,u=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:r});a&&s.addEventListener(n,a,{once:!0}),i?Ku(s,u):s.dispatchEvent(u)}var ph=0;function Dm(){v.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??yb()),document.body.insertAdjacentElement("beforeend",n[1]??yb()),ph++,()=>{ph===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),ph--}},[])}function yb(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var vh="focusScope.autoFocusOnMount",gh="focusScope.autoFocusOnUnmount",bb={bubbles:!1,cancelable:!0},EM="FocusScope",bc=v.forwardRef((n,a)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:u,...h}=n,[m,p]=v.useState(null),g=We(s),y=We(u),b=v.useRef(null),w=we(a,S=>p(S)),j=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(i){let S=function(T){if(j.paused||!m)return;const k=T.target;m.contains(k)?b.current=k:il(b.current,{select:!0})},C=function(T){if(j.paused||!m)return;const k=T.relatedTarget;k!==null&&(m.contains(k)||il(b.current,{select:!0}))},R=function(T){if(document.activeElement===document.body)for(const k of T)k.removedNodes.length>0&&il(m)};document.addEventListener("focusin",S),document.addEventListener("focusout",C);const _=new MutationObserver(R);return m&&_.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",C),_.disconnect()}}},[i,m,j.paused]),v.useEffect(()=>{if(m){wb.add(j);const S=document.activeElement;if(!m.contains(S)){const C=new CustomEvent(vh,bb);m.addEventListener(vh,g),m.dispatchEvent(C),C.defaultPrevented||(NM(MM(Nw(m)),{select:!0}),document.activeElement===S&&il(m))}return()=>{m.removeEventListener(vh,g),setTimeout(()=>{const C=new CustomEvent(gh,bb);m.addEventListener(gh,y),m.dispatchEvent(C),C.defaultPrevented||il(S??document.body,{select:!0}),m.removeEventListener(gh,y),wb.remove(j)},0)}}},[m,g,y,j]);const E=v.useCallback(S=>{if(!r&&!i||j.paused)return;const C=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,R=document.activeElement;if(C&&R){const _=S.currentTarget,[T,k]=CM(_);T&&k?!S.shiftKey&&R===k?(S.preventDefault(),r&&il(T,{select:!0})):S.shiftKey&&R===T&&(S.preventDefault(),r&&il(k,{select:!0})):R===_&&S.preventDefault()}},[r,i,j.paused]);return d.jsx(oe.div,{tabIndex:-1,...h,ref:w,onKeyDown:E})});bc.displayName=EM;function NM(n,{select:a=!1}={}){const r=document.activeElement;for(const i of n)if(il(i,{select:a}),document.activeElement!==r)return}function CM(n){const a=Nw(n),r=xb(a,n),i=xb(a.reverse(),n);return[r,i]}function Nw(n){const a=[],r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)a.push(r.currentNode);return a}function xb(n,a){for(const r of n)if(!RM(r,{upTo:a}))return r}function RM(n,{upTo:a}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(a!==void 0&&n===a)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function _M(n){return n instanceof HTMLInputElement&&"select"in n}function il(n,{select:a=!1}={}){if(n&&n.focus){const r=document.activeElement;n.focus({preventScroll:!0}),n!==r&&_M(n)&&a&&n.select()}}var wb=TM();function TM(){let n=[];return{add(a){const r=n[0];a!==r&&(r==null||r.pause()),n=Sb(n,a),n.unshift(a)},remove(a){var r;n=Sb(n,a),(r=n[0])==null||r.resume()}}}function Sb(n,a){const r=[...n],i=r.indexOf(a);return i!==-1&&r.splice(i,1),r}function MM(n){return n.filter(a=>a.tagName!=="A")}var AM=gx[" useId ".trim().toString()]||(()=>{}),DM=0;function wl(n){const[a,r]=v.useState(AM());return et(()=>{r(i=>i??String(DM++))},[n]),a?`radix-${a}`:""}const kM=["top","right","bottom","left"],bl=Math.min,ln=Math.max,Zu=Math.round,_u=Math.floor,Zn=n=>({x:n,y:n}),OM={left:"right",right:"left",bottom:"top",top:"bottom"},zM={start:"end",end:"start"};function Ph(n,a,r){return ln(n,bl(a,r))}function Ta(n,a){return typeof n=="function"?n(a):n}function Ma(n){return n.split("-")[0]}function Ri(n){return n.split("-")[1]}function km(n){return n==="x"?"y":"x"}function Om(n){return n==="y"?"height":"width"}const LM=new Set(["top","bottom"]);function $n(n){return LM.has(Ma(n))?"y":"x"}function zm(n){return km($n(n))}function UM(n,a,r){r===void 0&&(r=!1);const i=Ri(n),s=zm(n),u=Om(s);let h=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return a.reference[u]>a.floating[u]&&(h=Fu(h)),[h,Fu(h)]}function HM(n){const a=Fu(n);return[Jh(n),a,Jh(a)]}function Jh(n){return n.replace(/start|end/g,a=>zM[a])}const jb=["left","right"],Eb=["right","left"],qM=["top","bottom"],BM=["bottom","top"];function QM(n,a,r){switch(n){case"top":case"bottom":return r?a?Eb:jb:a?jb:Eb;case"left":case"right":return a?qM:BM;default:return[]}}function YM(n,a,r,i){const s=Ri(n);let u=QM(Ma(n),r==="start",i);return s&&(u=u.map(h=>h+"-"+s),a&&(u=u.concat(u.map(Jh)))),u}function Fu(n){return n.replace(/left|right|bottom|top/g,a=>OM[a])}function GM(n){return{top:0,right:0,bottom:0,left:0,...n}}function Cw(n){return typeof n!="number"?GM(n):{top:n,right:n,bottom:n,left:n}}function Pu(n){const{x:a,y:r,width:i,height:s}=n;return{width:i,height:s,top:r,left:a,right:a+i,bottom:r+s,x:a,y:r}}function Nb(n,a,r){let{reference:i,floating:s}=n;const u=$n(a),h=zm(a),m=Om(h),p=Ma(a),g=u==="y",y=i.x+i.width/2-s.width/2,b=i.y+i.height/2-s.height/2,w=i[m]/2-s[m]/2;let j;switch(p){case"top":j={x:y,y:i.y-s.height};break;case"bottom":j={x:y,y:i.y+i.height};break;case"right":j={x:i.x+i.width,y:b};break;case"left":j={x:i.x-s.width,y:b};break;default:j={x:i.x,y:i.y}}switch(Ri(a)){case"start":j[h]-=w*(r&&g?-1:1);break;case"end":j[h]+=w*(r&&g?-1:1);break}return j}const VM=async(n,a,r)=>{const{placement:i="bottom",strategy:s="absolute",middleware:u=[],platform:h}=r,m=u.filter(Boolean),p=await(h.isRTL==null?void 0:h.isRTL(a));let g=await h.getElementRects({reference:n,floating:a,strategy:s}),{x:y,y:b}=Nb(g,i,p),w=i,j={},E=0;for(let S=0;S<m.length;S++){const{name:C,fn:R}=m[S],{x:_,y:T,data:k,reset:L}=await R({x:y,y:b,initialPlacement:i,placement:w,strategy:s,middlewareData:j,rects:g,platform:h,elements:{reference:n,floating:a}});y=_??y,b=T??b,j={...j,[C]:{...j[C],...k}},L&&E<=50&&(E++,typeof L=="object"&&(L.placement&&(w=L.placement),L.rects&&(g=L.rects===!0?await h.getElementRects({reference:n,floating:a,strategy:s}):L.rects),{x:y,y:b}=Nb(g,w,p)),S=-1)}return{x:y,y:b,placement:w,strategy:s,middlewareData:j}};async function Bo(n,a){var r;a===void 0&&(a={});const{x:i,y:s,platform:u,rects:h,elements:m,strategy:p}=n,{boundary:g="clippingAncestors",rootBoundary:y="viewport",elementContext:b="floating",altBoundary:w=!1,padding:j=0}=Ta(a,n),E=Cw(j),S=m[w?b==="floating"?"reference":"floating":b],C=Pu(await u.getClippingRect({element:(r=await(u.isElement==null?void 0:u.isElement(S)))==null||r?S:S.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(m.floating)),boundary:g,rootBoundary:y,strategy:p})),R=b==="floating"?{x:i,y:s,width:h.floating.width,height:h.floating.height}:h.reference,_=await(u.getOffsetParent==null?void 0:u.getOffsetParent(m.floating)),T=await(u.isElement==null?void 0:u.isElement(_))?await(u.getScale==null?void 0:u.getScale(_))||{x:1,y:1}:{x:1,y:1},k=Pu(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:R,offsetParent:_,strategy:p}):R);return{top:(C.top-k.top+E.top)/T.y,bottom:(k.bottom-C.bottom+E.bottom)/T.y,left:(C.left-k.left+E.left)/T.x,right:(k.right-C.right+E.right)/T.x}}const KM=n=>({name:"arrow",options:n,async fn(a){const{x:r,y:i,placement:s,rects:u,platform:h,elements:m,middlewareData:p}=a,{element:g,padding:y=0}=Ta(n,a)||{};if(g==null)return{};const b=Cw(y),w={x:r,y:i},j=zm(s),E=Om(j),S=await h.getDimensions(g),C=j==="y",R=C?"top":"left",_=C?"bottom":"right",T=C?"clientHeight":"clientWidth",k=u.reference[E]+u.reference[j]-w[j]-u.floating[E],L=w[j]-u.reference[j],X=await(h.getOffsetParent==null?void 0:h.getOffsetParent(g));let q=X?X[T]:0;(!q||!await(h.isElement==null?void 0:h.isElement(X)))&&(q=m.floating[T]||u.floating[E]);const H=k/2-L/2,G=q/2-S[E]/2-1,te=bl(b[R],G),ce=bl(b[_],G),de=te,I=q-S[E]-ce,ie=q/2-S[E]/2+H,re=Ph(de,ie,I),U=!p.arrow&&Ri(s)!=null&&ie!==re&&u.reference[E]/2-(ie<de?te:ce)-S[E]/2<0,W=U?ie<de?ie-de:ie-I:0;return{[j]:w[j]+W,data:{[j]:re,centerOffset:ie-re-W,...U&&{alignmentOffset:W}},reset:U}}}),XM=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(a){var r,i;const{placement:s,middlewareData:u,rects:h,initialPlacement:m,platform:p,elements:g}=a,{mainAxis:y=!0,crossAxis:b=!0,fallbackPlacements:w,fallbackStrategy:j="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:S=!0,...C}=Ta(n,a);if((r=u.arrow)!=null&&r.alignmentOffset)return{};const R=Ma(s),_=$n(m),T=Ma(m)===m,k=await(p.isRTL==null?void 0:p.isRTL(g.floating)),L=w||(T||!S?[Fu(m)]:HM(m)),X=E!=="none";!w&&X&&L.push(...YM(m,S,E,k));const q=[m,...L],H=await Bo(a,C),G=[];let te=((i=u.flip)==null?void 0:i.overflows)||[];if(y&&G.push(H[R]),b){const ie=UM(s,h,k);G.push(H[ie[0]],H[ie[1]])}if(te=[...te,{placement:s,overflows:G}],!G.every(ie=>ie<=0)){var ce,de;const ie=(((ce=u.flip)==null?void 0:ce.index)||0)+1,re=q[ie];if(re&&(!(b==="alignment"&&_!==$n(re))||te.every(W=>$n(W.placement)===_?W.overflows[0]>0:!0)))return{data:{index:ie,overflows:te},reset:{placement:re}};let U=(de=te.filter(W=>W.overflows[0]<=0).sort((W,V)=>W.overflows[1]-V.overflows[1])[0])==null?void 0:de.placement;if(!U)switch(j){case"bestFit":{var I;const W=(I=te.filter(V=>{if(X){const $=$n(V.placement);return $===_||$==="y"}return!0}).map(V=>[V.placement,V.overflows.filter($=>$>0).reduce(($,fe)=>$+fe,0)]).sort((V,$)=>V[1]-$[1])[0])==null?void 0:I[0];W&&(U=W);break}case"initialPlacement":U=m;break}if(s!==U)return{reset:{placement:U}}}return{}}}};function Cb(n,a){return{top:n.top-a.height,right:n.right-a.width,bottom:n.bottom-a.height,left:n.left-a.width}}function Rb(n){return kM.some(a=>n[a]>=0)}const $M=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(a){const{rects:r}=a,{strategy:i="referenceHidden",...s}=Ta(n,a);switch(i){case"referenceHidden":{const u=await Bo(a,{...s,elementContext:"reference"}),h=Cb(u,r.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:Rb(h)}}}case"escaped":{const u=await Bo(a,{...s,altBoundary:!0}),h=Cb(u,r.floating);return{data:{escapedOffsets:h,escaped:Rb(h)}}}default:return{}}}}},Rw=new Set(["left","top"]);async function ZM(n,a){const{placement:r,platform:i,elements:s}=n,u=await(i.isRTL==null?void 0:i.isRTL(s.floating)),h=Ma(r),m=Ri(r),p=$n(r)==="y",g=Rw.has(h)?-1:1,y=u&&p?-1:1,b=Ta(a,n);let{mainAxis:w,crossAxis:j,alignmentAxis:E}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return m&&typeof E=="number"&&(j=m==="end"?E*-1:E),p?{x:j*y,y:w*g}:{x:w*g,y:j*y}}const FM=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(a){var r,i;const{x:s,y:u,placement:h,middlewareData:m}=a,p=await ZM(a,n);return h===((r=m.offset)==null?void 0:r.placement)&&(i=m.arrow)!=null&&i.alignmentOffset?{}:{x:s+p.x,y:u+p.y,data:{...p,placement:h}}}}},PM=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(a){const{x:r,y:i,placement:s}=a,{mainAxis:u=!0,crossAxis:h=!1,limiter:m={fn:C=>{let{x:R,y:_}=C;return{x:R,y:_}}},...p}=Ta(n,a),g={x:r,y:i},y=await Bo(a,p),b=$n(Ma(s)),w=km(b);let j=g[w],E=g[b];if(u){const C=w==="y"?"top":"left",R=w==="y"?"bottom":"right",_=j+y[C],T=j-y[R];j=Ph(_,j,T)}if(h){const C=b==="y"?"top":"left",R=b==="y"?"bottom":"right",_=E+y[C],T=E-y[R];E=Ph(_,E,T)}const S=m.fn({...a,[w]:j,[b]:E});return{...S,data:{x:S.x-r,y:S.y-i,enabled:{[w]:u,[b]:h}}}}}},JM=function(n){return n===void 0&&(n={}),{options:n,fn(a){const{x:r,y:i,placement:s,rects:u,middlewareData:h}=a,{offset:m=0,mainAxis:p=!0,crossAxis:g=!0}=Ta(n,a),y={x:r,y:i},b=$n(s),w=km(b);let j=y[w],E=y[b];const S=Ta(m,a),C=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(p){const T=w==="y"?"height":"width",k=u.reference[w]-u.floating[T]+C.mainAxis,L=u.reference[w]+u.reference[T]-C.mainAxis;j<k?j=k:j>L&&(j=L)}if(g){var R,_;const T=w==="y"?"width":"height",k=Rw.has(Ma(s)),L=u.reference[b]-u.floating[T]+(k&&((R=h.offset)==null?void 0:R[b])||0)+(k?0:C.crossAxis),X=u.reference[b]+u.reference[T]+(k?0:((_=h.offset)==null?void 0:_[b])||0)-(k?C.crossAxis:0);E<L?E=L:E>X&&(E=X)}return{[w]:j,[b]:E}}}},WM=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(a){var r,i;const{placement:s,rects:u,platform:h,elements:m}=a,{apply:p=()=>{},...g}=Ta(n,a),y=await Bo(a,g),b=Ma(s),w=Ri(s),j=$n(s)==="y",{width:E,height:S}=u.floating;let C,R;b==="top"||b==="bottom"?(C=b,R=w===(await(h.isRTL==null?void 0:h.isRTL(m.floating))?"start":"end")?"left":"right"):(R=b,C=w==="end"?"top":"bottom");const _=S-y.top-y.bottom,T=E-y.left-y.right,k=bl(S-y[C],_),L=bl(E-y[R],T),X=!a.middlewareData.shift;let q=k,H=L;if((r=a.middlewareData.shift)!=null&&r.enabled.x&&(H=T),(i=a.middlewareData.shift)!=null&&i.enabled.y&&(q=_),X&&!w){const te=ln(y.left,0),ce=ln(y.right,0),de=ln(y.top,0),I=ln(y.bottom,0);j?H=E-2*(te!==0||ce!==0?te+ce:ln(y.left,y.right)):q=S-2*(de!==0||I!==0?de+I:ln(y.top,y.bottom))}await p({...a,availableWidth:H,availableHeight:q});const G=await h.getDimensions(m.floating);return E!==G.width||S!==G.height?{reset:{rects:!0}}:{}}}};function xc(){return typeof window<"u"}function _i(n){return _w(n)?(n.nodeName||"").toLowerCase():"#document"}function rn(n){var a;return(n==null||(a=n.ownerDocument)==null?void 0:a.defaultView)||window}function Wn(n){var a;return(a=(_w(n)?n.ownerDocument:n.document)||window.document)==null?void 0:a.documentElement}function _w(n){return xc()?n instanceof Node||n instanceof rn(n).Node:!1}function kn(n){return xc()?n instanceof Element||n instanceof rn(n).Element:!1}function Fn(n){return xc()?n instanceof HTMLElement||n instanceof rn(n).HTMLElement:!1}function _b(n){return!xc()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof rn(n).ShadowRoot}const IM=new Set(["inline","contents"]);function Wo(n){const{overflow:a,overflowX:r,overflowY:i,display:s}=On(n);return/auto|scroll|overlay|hidden|clip/.test(a+i+r)&&!IM.has(s)}const eA=new Set(["table","td","th"]);function tA(n){return eA.has(_i(n))}const nA=[":popover-open",":modal"];function wc(n){return nA.some(a=>{try{return n.matches(a)}catch{return!1}})}const aA=["transform","translate","scale","rotate","perspective"],lA=["transform","translate","scale","rotate","perspective","filter"],rA=["paint","layout","strict","content"];function Lm(n){const a=Um(),r=kn(n)?On(n):n;return aA.some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!a&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!a&&(r.filter?r.filter!=="none":!1)||lA.some(i=>(r.willChange||"").includes(i))||rA.some(i=>(r.contain||"").includes(i))}function iA(n){let a=xl(n);for(;Fn(a)&&!vi(a);){if(Lm(a))return a;if(wc(a))return null;a=xl(a)}return null}function Um(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const oA=new Set(["html","body","#document"]);function vi(n){return oA.has(_i(n))}function On(n){return rn(n).getComputedStyle(n)}function Sc(n){return kn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function xl(n){if(_i(n)==="html")return n;const a=n.assignedSlot||n.parentNode||_b(n)&&n.host||Wn(n);return _b(a)?a.host:a}function Tw(n){const a=xl(n);return vi(a)?n.ownerDocument?n.ownerDocument.body:n.body:Fn(a)&&Wo(a)?a:Tw(a)}function Qo(n,a,r){var i;a===void 0&&(a=[]),r===void 0&&(r=!0);const s=Tw(n),u=s===((i=n.ownerDocument)==null?void 0:i.body),h=rn(s);if(u){const m=Wh(h);return a.concat(h,h.visualViewport||[],Wo(s)?s:[],m&&r?Qo(m):[])}return a.concat(s,Qo(s,[],r))}function Wh(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Mw(n){const a=On(n);let r=parseFloat(a.width)||0,i=parseFloat(a.height)||0;const s=Fn(n),u=s?n.offsetWidth:r,h=s?n.offsetHeight:i,m=Zu(r)!==u||Zu(i)!==h;return m&&(r=u,i=h),{width:r,height:i,$:m}}function Hm(n){return kn(n)?n:n.contextElement}function Ir(n){const a=Hm(n);if(!Fn(a))return Zn(1);const r=a.getBoundingClientRect(),{width:i,height:s,$:u}=Mw(a);let h=(u?Zu(r.width):r.width)/i,m=(u?Zu(r.height):r.height)/s;return(!h||!Number.isFinite(h))&&(h=1),(!m||!Number.isFinite(m))&&(m=1),{x:h,y:m}}const sA=Zn(0);function Aw(n){const a=rn(n);return!Um()||!a.visualViewport?sA:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function uA(n,a,r){return a===void 0&&(a=!1),!r||a&&r!==rn(n)?!1:a}function nr(n,a,r,i){a===void 0&&(a=!1),r===void 0&&(r=!1);const s=n.getBoundingClientRect(),u=Hm(n);let h=Zn(1);a&&(i?kn(i)&&(h=Ir(i)):h=Ir(n));const m=uA(u,r,i)?Aw(u):Zn(0);let p=(s.left+m.x)/h.x,g=(s.top+m.y)/h.y,y=s.width/h.x,b=s.height/h.y;if(u){const w=rn(u),j=i&&kn(i)?rn(i):i;let E=w,S=Wh(E);for(;S&&i&&j!==E;){const C=Ir(S),R=S.getBoundingClientRect(),_=On(S),T=R.left+(S.clientLeft+parseFloat(_.paddingLeft))*C.x,k=R.top+(S.clientTop+parseFloat(_.paddingTop))*C.y;p*=C.x,g*=C.y,y*=C.x,b*=C.y,p+=T,g+=k,E=rn(S),S=Wh(E)}}return Pu({width:y,height:b,x:p,y:g})}function jc(n,a){const r=Sc(n).scrollLeft;return a?a.left+r:nr(Wn(n)).left+r}function Dw(n,a){const r=n.getBoundingClientRect(),i=r.left+a.scrollLeft-jc(n,r),s=r.top+a.scrollTop;return{x:i,y:s}}function cA(n){let{elements:a,rect:r,offsetParent:i,strategy:s}=n;const u=s==="fixed",h=Wn(i),m=a?wc(a.floating):!1;if(i===h||m&&u)return r;let p={scrollLeft:0,scrollTop:0},g=Zn(1);const y=Zn(0),b=Fn(i);if((b||!b&&!u)&&((_i(i)!=="body"||Wo(h))&&(p=Sc(i)),Fn(i))){const j=nr(i);g=Ir(i),y.x=j.x+i.clientLeft,y.y=j.y+i.clientTop}const w=h&&!b&&!u?Dw(h,p):Zn(0);return{width:r.width*g.x,height:r.height*g.y,x:r.x*g.x-p.scrollLeft*g.x+y.x+w.x,y:r.y*g.y-p.scrollTop*g.y+y.y+w.y}}function dA(n){return Array.from(n.getClientRects())}function fA(n){const a=Wn(n),r=Sc(n),i=n.ownerDocument.body,s=ln(a.scrollWidth,a.clientWidth,i.scrollWidth,i.clientWidth),u=ln(a.scrollHeight,a.clientHeight,i.scrollHeight,i.clientHeight);let h=-r.scrollLeft+jc(n);const m=-r.scrollTop;return On(i).direction==="rtl"&&(h+=ln(a.clientWidth,i.clientWidth)-s),{width:s,height:u,x:h,y:m}}const Tb=25;function hA(n,a){const r=rn(n),i=Wn(n),s=r.visualViewport;let u=i.clientWidth,h=i.clientHeight,m=0,p=0;if(s){u=s.width,h=s.height;const y=Um();(!y||y&&a==="fixed")&&(m=s.offsetLeft,p=s.offsetTop)}const g=jc(i);if(g<=0){const y=i.ownerDocument,b=y.body,w=getComputedStyle(b),j=y.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,E=Math.abs(i.clientWidth-b.clientWidth-j);E<=Tb&&(u-=E)}else g<=Tb&&(u+=g);return{width:u,height:h,x:m,y:p}}const mA=new Set(["absolute","fixed"]);function pA(n,a){const r=nr(n,!0,a==="fixed"),i=r.top+n.clientTop,s=r.left+n.clientLeft,u=Fn(n)?Ir(n):Zn(1),h=n.clientWidth*u.x,m=n.clientHeight*u.y,p=s*u.x,g=i*u.y;return{width:h,height:m,x:p,y:g}}function Mb(n,a,r){let i;if(a==="viewport")i=hA(n,r);else if(a==="document")i=fA(Wn(n));else if(kn(a))i=pA(a,r);else{const s=Aw(n);i={x:a.x-s.x,y:a.y-s.y,width:a.width,height:a.height}}return Pu(i)}function kw(n,a){const r=xl(n);return r===a||!kn(r)||vi(r)?!1:On(r).position==="fixed"||kw(r,a)}function vA(n,a){const r=a.get(n);if(r)return r;let i=Qo(n,[],!1).filter(m=>kn(m)&&_i(m)!=="body"),s=null;const u=On(n).position==="fixed";let h=u?xl(n):n;for(;kn(h)&&!vi(h);){const m=On(h),p=Lm(h);!p&&m.position==="fixed"&&(s=null),(u?!p&&!s:!p&&m.position==="static"&&s&&mA.has(s.position)||Wo(h)&&!p&&kw(n,h))?i=i.filter(g=>g!==h):s=m,h=xl(h)}return a.set(n,i),i}function gA(n){let{element:a,boundary:r,rootBoundary:i,strategy:s}=n;const u=[...r==="clippingAncestors"?wc(a)?[]:vA(a,this._c):[].concat(r),i],h=u[0],m=u.reduce((p,g)=>{const y=Mb(a,g,s);return p.top=ln(y.top,p.top),p.right=bl(y.right,p.right),p.bottom=bl(y.bottom,p.bottom),p.left=ln(y.left,p.left),p},Mb(a,h,s));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function yA(n){const{width:a,height:r}=Mw(n);return{width:a,height:r}}function bA(n,a,r){const i=Fn(a),s=Wn(a),u=r==="fixed",h=nr(n,!0,u,a);let m={scrollLeft:0,scrollTop:0};const p=Zn(0);function g(){p.x=jc(s)}if(i||!i&&!u)if((_i(a)!=="body"||Wo(s))&&(m=Sc(a)),i){const j=nr(a,!0,u,a);p.x=j.x+a.clientLeft,p.y=j.y+a.clientTop}else s&&g();u&&!i&&s&&g();const y=s&&!i&&!u?Dw(s,m):Zn(0),b=h.left+m.scrollLeft-p.x-y.x,w=h.top+m.scrollTop-p.y-y.y;return{x:b,y:w,width:h.width,height:h.height}}function yh(n){return On(n).position==="static"}function Ab(n,a){if(!Fn(n)||On(n).position==="fixed")return null;if(a)return a(n);let r=n.offsetParent;return Wn(n)===r&&(r=r.ownerDocument.body),r}function Ow(n,a){const r=rn(n);if(wc(n))return r;if(!Fn(n)){let s=xl(n);for(;s&&!vi(s);){if(kn(s)&&!yh(s))return s;s=xl(s)}return r}let i=Ab(n,a);for(;i&&tA(i)&&yh(i);)i=Ab(i,a);return i&&vi(i)&&yh(i)&&!Lm(i)?r:i||iA(n)||r}const xA=async function(n){const a=this.getOffsetParent||Ow,r=this.getDimensions,i=await r(n.floating);return{reference:bA(n.reference,await a(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function wA(n){return On(n).direction==="rtl"}const SA={convertOffsetParentRelativeRectToViewportRelativeRect:cA,getDocumentElement:Wn,getClippingRect:gA,getOffsetParent:Ow,getElementRects:xA,getClientRects:dA,getDimensions:yA,getScale:Ir,isElement:kn,isRTL:wA};function zw(n,a){return n.x===a.x&&n.y===a.y&&n.width===a.width&&n.height===a.height}function jA(n,a){let r=null,i;const s=Wn(n);function u(){var m;clearTimeout(i),(m=r)==null||m.disconnect(),r=null}function h(m,p){m===void 0&&(m=!1),p===void 0&&(p=1),u();const g=n.getBoundingClientRect(),{left:y,top:b,width:w,height:j}=g;if(m||a(),!w||!j)return;const E=_u(b),S=_u(s.clientWidth-(y+w)),C=_u(s.clientHeight-(b+j)),R=_u(y),_={rootMargin:-E+"px "+-S+"px "+-C+"px "+-R+"px",threshold:ln(0,bl(1,p))||1};let T=!0;function k(L){const X=L[0].intersectionRatio;if(X!==p){if(!T)return h();X?h(!1,X):i=setTimeout(()=>{h(!1,1e-7)},1e3)}X===1&&!zw(g,n.getBoundingClientRect())&&h(),T=!1}try{r=new IntersectionObserver(k,{..._,root:s.ownerDocument})}catch{r=new IntersectionObserver(k,_)}r.observe(n)}return h(!0),u}function EA(n,a,r,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:p=!1}=i,g=Hm(n),y=s||u?[...g?Qo(g):[],...Qo(a)]:[];y.forEach(R=>{s&&R.addEventListener("scroll",r,{passive:!0}),u&&R.addEventListener("resize",r)});const b=g&&m?jA(g,r):null;let w=-1,j=null;h&&(j=new ResizeObserver(R=>{let[_]=R;_&&_.target===g&&j&&(j.unobserve(a),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var T;(T=j)==null||T.observe(a)})),r()}),g&&!p&&j.observe(g),j.observe(a));let E,S=p?nr(n):null;p&&C();function C(){const R=nr(n);S&&!zw(S,R)&&r(),S=R,E=requestAnimationFrame(C)}return r(),()=>{var R;y.forEach(_=>{s&&_.removeEventListener("scroll",r),u&&_.removeEventListener("resize",r)}),b==null||b(),(R=j)==null||R.disconnect(),j=null,p&&cancelAnimationFrame(E)}}const NA=FM,CA=PM,RA=XM,_A=WM,TA=$M,Db=KM,MA=JM,AA=(n,a,r)=>{const i=new Map,s={platform:SA,...r},u={...s.platform,_c:i};return VM(n,a,{...s,platform:u})};var DA=typeof document<"u",kA=function(){},Lu=DA?v.useLayoutEffect:kA;function Ju(n,a){if(n===a)return!0;if(typeof n!=typeof a)return!1;if(typeof n=="function"&&n.toString()===a.toString())return!0;let r,i,s;if(n&&a&&typeof n=="object"){if(Array.isArray(n)){if(r=n.length,r!==a.length)return!1;for(i=r;i--!==0;)if(!Ju(n[i],a[i]))return!1;return!0}if(s=Object.keys(n),r=s.length,r!==Object.keys(a).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(a,s[i]))return!1;for(i=r;i--!==0;){const u=s[i];if(!(u==="_owner"&&n.$$typeof)&&!Ju(n[u],a[u]))return!1}return!0}return n!==n&&a!==a}function Lw(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function kb(n,a){const r=Lw(n);return Math.round(a*r)/r}function bh(n){const a=v.useRef(n);return Lu(()=>{a.current=n}),a}function OA(n){n===void 0&&(n={});const{placement:a="bottom",strategy:r="absolute",middleware:i=[],platform:s,elements:{reference:u,floating:h}={},transform:m=!0,whileElementsMounted:p,open:g}=n,[y,b]=v.useState({x:0,y:0,strategy:r,placement:a,middlewareData:{},isPositioned:!1}),[w,j]=v.useState(i);Ju(w,i)||j(i);const[E,S]=v.useState(null),[C,R]=v.useState(null),_=v.useCallback(V=>{V!==X.current&&(X.current=V,S(V))},[]),T=v.useCallback(V=>{V!==q.current&&(q.current=V,R(V))},[]),k=u||E,L=h||C,X=v.useRef(null),q=v.useRef(null),H=v.useRef(y),G=p!=null,te=bh(p),ce=bh(s),de=bh(g),I=v.useCallback(()=>{if(!X.current||!q.current)return;const V={placement:a,strategy:r,middleware:w};ce.current&&(V.platform=ce.current),AA(X.current,q.current,V).then($=>{const fe={...$,isPositioned:de.current!==!1};ie.current&&!Ju(H.current,fe)&&(H.current=fe,Po.flushSync(()=>{b(fe)}))})},[w,a,r,ce,de]);Lu(()=>{g===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,b(V=>({...V,isPositioned:!1})))},[g]);const ie=v.useRef(!1);Lu(()=>(ie.current=!0,()=>{ie.current=!1}),[]),Lu(()=>{if(k&&(X.current=k),L&&(q.current=L),k&&L){if(te.current)return te.current(k,L,I);I()}},[k,L,I,te,G]);const re=v.useMemo(()=>({reference:X,floating:q,setReference:_,setFloating:T}),[_,T]),U=v.useMemo(()=>({reference:k,floating:L}),[k,L]),W=v.useMemo(()=>{const V={position:r,left:0,top:0};if(!U.floating)return V;const $=kb(U.floating,y.x),fe=kb(U.floating,y.y);return m?{...V,transform:"translate("+$+"px, "+fe+"px)",...Lw(U.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:$,top:fe}},[r,m,U.floating,y.x,y.y]);return v.useMemo(()=>({...y,update:I,refs:re,elements:U,floatingStyles:W}),[y,I,re,U,W])}const zA=n=>{function a(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:n,fn(r){const{element:i,padding:s}=typeof n=="function"?n(r):n;return i&&a(i)?i.current!=null?Db({element:i.current,padding:s}).fn(r):{}:i?Db({element:i,padding:s}).fn(r):{}}}},LA=(n,a)=>({...NA(n),options:[n,a]}),UA=(n,a)=>({...CA(n),options:[n,a]}),HA=(n,a)=>({...MA(n),options:[n,a]}),qA=(n,a)=>({...RA(n),options:[n,a]}),BA=(n,a)=>({..._A(n),options:[n,a]}),QA=(n,a)=>({...TA(n),options:[n,a]}),YA=(n,a)=>({...zA(n),options:[n,a]});var GA="Arrow",Uw=v.forwardRef((n,a)=>{const{children:r,width:i=10,height:s=5,...u}=n;return d.jsx(oe.svg,{...u,ref:a,width:i,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?r:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});Uw.displayName=GA;var VA=Uw;function Ec(n){const[a,r]=v.useState(void 0);return et(()=>{if(n){r({width:n.offsetWidth,height:n.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const u=s[0];let h,m;if("borderBoxSize"in u){const p=u.borderBoxSize,g=Array.isArray(p)?p[0]:p;h=g.inlineSize,m=g.blockSize}else h=n.offsetWidth,m=n.offsetHeight;r({width:h,height:m})});return i.observe(n,{box:"border-box"}),()=>i.unobserve(n)}else r(void 0)},[n]),a}var Hw="Popper",[qw,Ti]=ht(Hw),[gz,Bw]=qw(Hw),Qw="PopperAnchor",Yw=v.forwardRef((n,a)=>{const{__scopePopper:r,virtualRef:i,...s}=n,u=Bw(Qw,r),h=v.useRef(null),m=we(a,h),p=v.useRef(null);return v.useEffect(()=>{const g=p.current;p.current=(i==null?void 0:i.current)||h.current,g!==p.current&&u.onAnchorChange(p.current)}),i?null:d.jsx(oe.div,{...s,ref:m})});Yw.displayName=Qw;var qm="PopperContent",[KA,XA]=qw(qm),Gw=v.forwardRef((n,a)=>{var r,i,s,u,h,m;const{__scopePopper:p,side:g="bottom",sideOffset:y=0,align:b="center",alignOffset:w=0,arrowPadding:j=0,avoidCollisions:E=!0,collisionBoundary:S=[],collisionPadding:C=0,sticky:R="partial",hideWhenDetached:_=!1,updatePositionStrategy:T="optimized",onPlaced:k,...L}=n,X=Bw(qm,p),[q,H]=v.useState(null),G=we(a,Et=>H(Et)),[te,ce]=v.useState(null),de=Ec(te),I=(de==null?void 0:de.width)??0,ie=(de==null?void 0:de.height)??0,re=g+(b!=="center"?"-"+b:""),U=typeof C=="number"?C:{top:0,right:0,bottom:0,left:0,...C},W=Array.isArray(S)?S:[S],V=W.length>0,$={padding:U,boundary:W.filter(ZA),altBoundary:V},{refs:fe,floatingStyles:A,placement:Z,isPositioned:ee,middlewareData:le}=OA({strategy:"fixed",placement:re,whileElementsMounted:(...Et)=>EA(...Et,{animationFrame:T==="always"}),elements:{reference:X.anchor},middleware:[LA({mainAxis:y+ie,alignmentAxis:w}),E&&UA({mainAxis:!0,crossAxis:!1,limiter:R==="partial"?HA():void 0,...$}),E&&qA({...$}),BA({...$,apply:({elements:Et,rects:Kt,availableWidth:ea,availableHeight:ta})=>{const{width:Bc,height:as}=Kt.reference,Da=Et.floating.style;Da.setProperty("--radix-popper-available-width",`${ea}px`),Da.setProperty("--radix-popper-available-height",`${ta}px`),Da.setProperty("--radix-popper-anchor-width",`${Bc}px`),Da.setProperty("--radix-popper-anchor-height",`${as}px`)}}),te&&YA({element:te,padding:j}),FA({arrowWidth:I,arrowHeight:ie}),_&&QA({strategy:"referenceHidden",...$})]}),[ve,je]=Xw(Z),ne=We(k);et(()=>{ee&&(ne==null||ne())},[ee,ne]);const Ee=(r=le.arrow)==null?void 0:r.x,ye=(i=le.arrow)==null?void 0:i.y,Ne=((s=le.arrow)==null?void 0:s.centerOffset)!==0,[Ue,Ye]=v.useState();return et(()=>{q&&Ye(window.getComputedStyle(q).zIndex)},[q]),d.jsx("div",{ref:fe.setFloating,"data-radix-popper-content-wrapper":"",style:{...A,transform:ee?A.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ue,"--radix-popper-transform-origin":[(u=le.transformOrigin)==null?void 0:u.x,(h=le.transformOrigin)==null?void 0:h.y].join(" "),...((m=le.hide)==null?void 0:m.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:d.jsx(KA,{scope:p,placedSide:ve,onArrowChange:ce,arrowX:Ee,arrowY:ye,shouldHideArrow:Ne,children:d.jsx(oe.div,{"data-side":ve,"data-align":je,...L,ref:G,style:{...L.style,animation:ee?void 0:"none"}})})})});Gw.displayName=qm;var Vw="PopperArrow",$A={top:"bottom",right:"left",bottom:"top",left:"right"},Kw=v.forwardRef(function(n,a){const{__scopePopper:r,...i}=n,s=XA(Vw,r),u=$A[s.placedSide];return d.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:d.jsx(VA,{...i,ref:a,style:{...i.style,display:"block"}})})});Kw.displayName=Vw;function ZA(n){return n!==null}var FA=n=>({name:"transformOrigin",options:n,fn(a){var r,i,s;const{placement:u,rects:h,middlewareData:m}=a,p=((r=m.arrow)==null?void 0:r.centerOffset)!==0,g=p?0:n.arrowWidth,y=p?0:n.arrowHeight,[b,w]=Xw(u),j={start:"0%",center:"50%",end:"100%"}[w],E=(((i=m.arrow)==null?void 0:i.x)??0)+g/2,S=(((s=m.arrow)==null?void 0:s.y)??0)+y/2;let C="",R="";return b==="bottom"?(C=p?j:`${E}px`,R=`${-y}px`):b==="top"?(C=p?j:`${E}px`,R=`${h.floating.height+y}px`):b==="right"?(C=`${-y}px`,R=p?j:`${S}px`):b==="left"&&(C=`${h.floating.width+y}px`,R=p?j:`${S}px`),{data:{x:C,y:R}}}});function Xw(n){const[a,r="center"]=n.split("-");return[a,r]}var Bm=Yw,Qm=Gw,Ym=Kw,PA="Portal",Gm=v.forwardRef((n,a)=>{var r;const{container:i,...s}=n,[u,h]=v.useState(!1);et(()=>h(!0),[]);const m=i||u&&((r=globalThis==null?void 0:globalThis.document)==null?void 0:r.body);return m?Ux.createPortal(d.jsx(oe.div,{...s,ref:a}),m):null});Gm.displayName=PA;var xh="rovingFocusGroup.onEntryFocus",JA={bubbles:!1,cancelable:!0},Io="RovingFocusGroup",[Ih,$w,WA]=Ni(Io),[IA,Mi]=ht(Io,[WA]),[eD,tD]=IA(Io),Zw=v.forwardRef((n,a)=>d.jsx(Ih.Provider,{scope:n.__scopeRovingFocusGroup,children:d.jsx(Ih.Slot,{scope:n.__scopeRovingFocusGroup,children:d.jsx(nD,{...n,ref:a})})}));Zw.displayName=Io;var nD=v.forwardRef((n,a)=>{const{__scopeRovingFocusGroup:r,orientation:i,loop:s=!1,dir:u,currentTabStopId:h,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:p,onEntryFocus:g,preventScrollOnEntryFocus:y=!1,...b}=n,w=v.useRef(null),j=we(a,w),E=Ei(u),[S,C]=Jn({prop:h,defaultProp:m??null,onChange:p,caller:Io}),[R,_]=v.useState(!1),T=We(g),k=$w(r),L=v.useRef(!1),[X,q]=v.useState(0);return v.useEffect(()=>{const H=w.current;if(H)return H.addEventListener(xh,T),()=>H.removeEventListener(xh,T)},[T]),d.jsx(eD,{scope:r,orientation:i,dir:E,loop:s,currentTabStopId:S,onItemFocus:v.useCallback(H=>C(H),[C]),onItemShiftTab:v.useCallback(()=>_(!0),[]),onFocusableItemAdd:v.useCallback(()=>q(H=>H+1),[]),onFocusableItemRemove:v.useCallback(()=>q(H=>H-1),[]),children:d.jsx(oe.div,{tabIndex:R||X===0?-1:0,"data-orientation":i,...b,ref:j,style:{outline:"none",...n.style},onMouseDown:ae(n.onMouseDown,()=>{L.current=!0}),onFocus:ae(n.onFocus,H=>{const G=!L.current;if(H.target===H.currentTarget&&G&&!R){const te=new CustomEvent(xh,JA);if(H.currentTarget.dispatchEvent(te),!te.defaultPrevented){const ce=k().filter(re=>re.focusable),de=ce.find(re=>re.active),I=ce.find(re=>re.id===S),ie=[de,I,...ce].filter(Boolean).map(re=>re.ref.current);Jw(ie,y)}}L.current=!1}),onBlur:ae(n.onBlur,()=>_(!1))})})}),Fw="RovingFocusGroupItem",Pw=v.forwardRef((n,a)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:s=!1,tabStopId:u,children:h,...m}=n,p=wl(),g=u||p,y=tD(Fw,r),b=y.currentTabStopId===g,w=$w(r),{onFocusableItemAdd:j,onFocusableItemRemove:E,currentTabStopId:S}=y;return v.useEffect(()=>{if(i)return j(),()=>E()},[i,j,E]),d.jsx(Ih.ItemSlot,{scope:r,id:g,focusable:i,active:s,children:d.jsx(oe.span,{tabIndex:b?0:-1,"data-orientation":y.orientation,...m,ref:a,onMouseDown:ae(n.onMouseDown,C=>{i?y.onItemFocus(g):C.preventDefault()}),onFocus:ae(n.onFocus,()=>y.onItemFocus(g)),onKeyDown:ae(n.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){y.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const R=rD(C,y.orientation,y.dir);if(R!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let _=w().filter(T=>T.focusable).map(T=>T.ref.current);if(R==="last")_.reverse();else if(R==="prev"||R==="next"){R==="prev"&&_.reverse();const T=_.indexOf(C.currentTarget);_=y.loop?iD(_,T+1):_.slice(T+1)}setTimeout(()=>Jw(_))}}),children:typeof h=="function"?h({isCurrentTabStop:b,hasTabStop:S!=null}):h})})});Pw.displayName=Fw;var aD={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function lD(n,a){return a!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function rD(n,a,r){const i=lD(n.key,r);if(!(a==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(a==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return aD[i]}function Jw(n,a=!1){const r=document.activeElement;for(const i of n)if(i===r||(i.focus({preventScroll:a}),document.activeElement!==r))return}function iD(n,a){return n.map((r,i)=>n[(a+i)%n.length])}var Vm=Zw,Km=Pw,oD=function(n){if(typeof document>"u")return null;var a=Array.isArray(n)?n[0]:n;return a.ownerDocument.body},Fr=new WeakMap,Tu=new WeakMap,Mu={},wh=0,Ww=function(n){return n&&(n.host||Ww(n.parentNode))},sD=function(n,a){return a.map(function(r){if(n.contains(r))return r;var i=Ww(r);return i&&n.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",n,". Doing nothing"),null)}).filter(function(r){return!!r})},uD=function(n,a,r,i){var s=sD(a,Array.isArray(n)?n:[n]);Mu[r]||(Mu[r]=new WeakMap);var u=Mu[r],h=[],m=new Set,p=new Set(s),g=function(b){!b||m.has(b)||(m.add(b),g(b.parentNode))};s.forEach(g);var y=function(b){!b||p.has(b)||Array.prototype.forEach.call(b.children,function(w){if(m.has(w))y(w);else try{var j=w.getAttribute(i),E=j!==null&&j!=="false",S=(Fr.get(w)||0)+1,C=(u.get(w)||0)+1;Fr.set(w,S),u.set(w,C),h.push(w),S===1&&E&&Tu.set(w,!0),C===1&&w.setAttribute(r,"true"),E||w.setAttribute(i,"true")}catch(R){console.error("aria-hidden: cannot operate on ",w,R)}})};return y(a),m.clear(),wh++,function(){h.forEach(function(b){var w=Fr.get(b)-1,j=u.get(b)-1;Fr.set(b,w),u.set(b,j),w||(Tu.has(b)||b.removeAttribute(i),Tu.delete(b)),j||b.removeAttribute(r)}),wh--,wh||(Fr=new WeakMap,Fr=new WeakMap,Tu=new WeakMap,Mu={})}},Xm=function(n,a,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),s=oD(n);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),uD(i,s,r,"aria-hidden")):function(){return null}},Xn=function(){return Xn=Object.assign||function(n){for(var a,r=1,i=arguments.length;r<i;r++){a=arguments[r];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(n[s]=a[s])}return n},Xn.apply(this,arguments)};function Iw(n,a){var r={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&a.indexOf(i)<0&&(r[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(n);s<i.length;s++)a.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(n,i[s])&&(r[i[s]]=n[i[s]]);return r}function cD(n,a,r){for(var i=0,s=a.length,u;i<s;i++)(u||!(i in a))&&(u||(u=Array.prototype.slice.call(a,0,i)),u[i]=a[i]);return n.concat(u||Array.prototype.slice.call(a))}var Uu="right-scroll-bar-position",Hu="width-before-scroll-bar",dD="with-scroll-bars-hidden",fD="--removed-body-scroll-bar-size";function Sh(n,a){return typeof n=="function"?n(a):n&&(n.current=a),n}function hD(n,a){var r=v.useState(function(){return{value:n,callback:a,facade:{get current(){return r.value},set current(i){var s=r.value;s!==i&&(r.value=i,r.callback(i,s))}}}})[0];return r.callback=a,r.facade}var mD=typeof window<"u"?v.useLayoutEffect:v.useEffect,Ob=new WeakMap;function pD(n,a){var r=hD(null,function(i){return n.forEach(function(s){return Sh(s,i)})});return mD(function(){var i=Ob.get(r);if(i){var s=new Set(i),u=new Set(n),h=r.current;s.forEach(function(m){u.has(m)||Sh(m,null)}),u.forEach(function(m){s.has(m)||Sh(m,h)})}Ob.set(r,n)},[n]),r}function vD(n){return n}function gD(n,a){a===void 0&&(a=vD);var r=[],i=!1,s={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:n},useMedium:function(u){var h=a(u,i);return r.push(h),function(){r=r.filter(function(m){return m!==h})}},assignSyncMedium:function(u){for(i=!0;r.length;){var h=r;r=[],h.forEach(u)}r={push:function(m){return u(m)},filter:function(){return r}}},assignMedium:function(u){i=!0;var h=[];if(r.length){var m=r;r=[],m.forEach(u),h=r}var p=function(){var y=h;h=[],y.forEach(u)},g=function(){return Promise.resolve().then(p)};g(),r={push:function(y){h.push(y),g()},filter:function(y){return h=h.filter(y),r}}}};return s}function yD(n){n===void 0&&(n={});var a=gD(null);return a.options=Xn({async:!0,ssr:!1},n),a}var e1=function(n){var a=n.sideCar,r=Iw(n,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=a.read();if(!i)throw new Error("Sidecar medium not found");return v.createElement(i,Xn({},r))};e1.isSideCarExport=!0;function bD(n,a){return n.useMedium(a),e1}var t1=yD(),jh=function(){},Nc=v.forwardRef(function(n,a){var r=v.useRef(null),i=v.useState({onScrollCapture:jh,onWheelCapture:jh,onTouchMoveCapture:jh}),s=i[0],u=i[1],h=n.forwardProps,m=n.children,p=n.className,g=n.removeScrollBar,y=n.enabled,b=n.shards,w=n.sideCar,j=n.noRelative,E=n.noIsolation,S=n.inert,C=n.allowPinchZoom,R=n.as,_=R===void 0?"div":R,T=n.gapMode,k=Iw(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=w,X=pD([r,a]),q=Xn(Xn({},k),s);return v.createElement(v.Fragment,null,y&&v.createElement(L,{sideCar:t1,removeScrollBar:g,shards:b,noRelative:j,noIsolation:E,inert:S,setCallbacks:u,allowPinchZoom:!!C,lockRef:r,gapMode:T}),h?v.cloneElement(v.Children.only(m),Xn(Xn({},q),{ref:X})):v.createElement(_,Xn({},q,{className:p,ref:X}),m))});Nc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Nc.classNames={fullWidth:Hu,zeroRight:Uu};var xD=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function wD(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var a=xD();return a&&n.setAttribute("nonce",a),n}function SD(n,a){n.styleSheet?n.styleSheet.cssText=a:n.appendChild(document.createTextNode(a))}function jD(n){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(n)}var ED=function(){var n=0,a=null;return{add:function(r){n==0&&(a=wD())&&(SD(a,r),jD(a)),n++},remove:function(){n--,!n&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},ND=function(){var n=ED();return function(a,r){v.useEffect(function(){return n.add(a),function(){n.remove()}},[a&&r])}},n1=function(){var n=ND(),a=function(r){var i=r.styles,s=r.dynamic;return n(i,s),null};return a},CD={left:0,top:0,right:0,gap:0},Eh=function(n){return parseInt(n||"",10)||0},RD=function(n){var a=window.getComputedStyle(document.body),r=a[n==="padding"?"paddingLeft":"marginLeft"],i=a[n==="padding"?"paddingTop":"marginTop"],s=a[n==="padding"?"paddingRight":"marginRight"];return[Eh(r),Eh(i),Eh(s)]},_D=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return CD;var a=RD(n),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,i-r+a[2]-a[0])}},TD=n1(),ei="data-scroll-locked",MD=function(n,a,r,i){var s=n.left,u=n.top,h=n.right,m=n.gap;return r===void 0&&(r="margin"),`
|
|
257
|
+
.`.concat(dD,` {
|
|
258
|
+
overflow: hidden `).concat(i,`;
|
|
259
|
+
padding-right: `).concat(m,"px ").concat(i,`;
|
|
260
|
+
}
|
|
261
|
+
body[`).concat(ei,`] {
|
|
262
|
+
overflow: hidden `).concat(i,`;
|
|
263
|
+
overscroll-behavior: contain;
|
|
264
|
+
`).concat([a&&"position: relative ".concat(i,";"),r==="margin"&&`
|
|
265
|
+
padding-left: `.concat(s,`px;
|
|
266
|
+
padding-top: `).concat(u,`px;
|
|
267
|
+
padding-right: `).concat(h,`px;
|
|
268
|
+
margin-left:0;
|
|
269
|
+
margin-top:0;
|
|
270
|
+
margin-right: `).concat(m,"px ").concat(i,`;
|
|
271
|
+
`),r==="padding"&&"padding-right: ".concat(m,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.`).concat(Uu,` {
|
|
275
|
+
right: `).concat(m,"px ").concat(i,`;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.`).concat(Hu,` {
|
|
279
|
+
margin-right: `).concat(m,"px ").concat(i,`;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.`).concat(Uu," .").concat(Uu,` {
|
|
283
|
+
right: 0 `).concat(i,`;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.`).concat(Hu," .").concat(Hu,` {
|
|
287
|
+
margin-right: 0 `).concat(i,`;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
body[`).concat(ei,`] {
|
|
291
|
+
`).concat(fD,": ").concat(m,`px;
|
|
292
|
+
}
|
|
293
|
+
`)},zb=function(){var n=parseInt(document.body.getAttribute(ei)||"0",10);return isFinite(n)?n:0},AD=function(){v.useEffect(function(){return document.body.setAttribute(ei,(zb()+1).toString()),function(){var n=zb()-1;n<=0?document.body.removeAttribute(ei):document.body.setAttribute(ei,n.toString())}},[])},DD=function(n){var a=n.noRelative,r=n.noImportant,i=n.gapMode,s=i===void 0?"margin":i;AD();var u=v.useMemo(function(){return _D(s)},[s]);return v.createElement(TD,{styles:MD(u,!a,s,r?"":"!important")})},em=!1;if(typeof window<"u")try{var Au=Object.defineProperty({},"passive",{get:function(){return em=!0,!0}});window.addEventListener("test",Au,Au),window.removeEventListener("test",Au,Au)}catch{em=!1}var Pr=em?{passive:!1}:!1,kD=function(n){return n.tagName==="TEXTAREA"},a1=function(n,a){if(!(n instanceof Element))return!1;var r=window.getComputedStyle(n);return r[a]!=="hidden"&&!(r.overflowY===r.overflowX&&!kD(n)&&r[a]==="visible")},OD=function(n){return a1(n,"overflowY")},zD=function(n){return a1(n,"overflowX")},Lb=function(n,a){var r=a.ownerDocument,i=a;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=l1(n,i);if(s){var u=r1(n,i),h=u[1],m=u[2];if(h>m)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},LD=function(n){var a=n.scrollTop,r=n.scrollHeight,i=n.clientHeight;return[a,r,i]},UD=function(n){var a=n.scrollLeft,r=n.scrollWidth,i=n.clientWidth;return[a,r,i]},l1=function(n,a){return n==="v"?OD(a):zD(a)},r1=function(n,a){return n==="v"?LD(a):UD(a)},HD=function(n,a){return n==="h"&&a==="rtl"?-1:1},qD=function(n,a,r,i,s){var u=HD(n,window.getComputedStyle(a).direction),h=u*i,m=r.target,p=a.contains(m),g=!1,y=h>0,b=0,w=0;do{if(!m)break;var j=r1(n,m),E=j[0],S=j[1],C=j[2],R=S-C-u*E;(E||R)&&l1(n,m)&&(b+=R,w+=E);var _=m.parentNode;m=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!p&&m!==document.body||p&&(a.contains(m)||a===m));return(y&&Math.abs(b)<1||!y&&Math.abs(w)<1)&&(g=!0),g},Du=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Ub=function(n){return[n.deltaX,n.deltaY]},Hb=function(n){return n&&"current"in n?n.current:n},BD=function(n,a){return n[0]===a[0]&&n[1]===a[1]},QD=function(n){return`
|
|
294
|
+
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
295
|
+
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
296
|
+
`)},YD=0,Jr=[];function GD(n){var a=v.useRef([]),r=v.useRef([0,0]),i=v.useRef(),s=v.useState(YD++)[0],u=v.useState(n1)[0],h=v.useRef(n);v.useEffect(function(){h.current=n},[n]),v.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(s));var S=cD([n.lockRef.current],(n.shards||[]).map(Hb)).filter(Boolean);return S.forEach(function(C){return C.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),S.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(s))})}}},[n.inert,n.lockRef.current,n.shards]);var m=v.useCallback(function(S,C){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!h.current.allowPinchZoom;var R=Du(S),_=r.current,T="deltaX"in S?S.deltaX:_[0]-R[0],k="deltaY"in S?S.deltaY:_[1]-R[1],L,X=S.target,q=Math.abs(T)>Math.abs(k)?"h":"v";if("touches"in S&&q==="h"&&X.type==="range")return!1;var H=Lb(q,X);if(!H)return!0;if(H?L=q:(L=q==="v"?"h":"v",H=Lb(q,X)),!H)return!1;if(!i.current&&"changedTouches"in S&&(T||k)&&(i.current=L),!L)return!0;var G=i.current||L;return qD(G,C,S,G==="h"?T:k)},[]),p=v.useCallback(function(S){var C=S;if(!(!Jr.length||Jr[Jr.length-1]!==u)){var R="deltaY"in C?Ub(C):Du(C),_=a.current.filter(function(L){return L.name===C.type&&(L.target===C.target||C.target===L.shadowParent)&&BD(L.delta,R)})[0];if(_&&_.should){C.cancelable&&C.preventDefault();return}if(!_){var T=(h.current.shards||[]).map(Hb).filter(Boolean).filter(function(L){return L.contains(C.target)}),k=T.length>0?m(C,T[0]):!h.current.noIsolation;k&&C.cancelable&&C.preventDefault()}}},[]),g=v.useCallback(function(S,C,R,_){var T={name:S,delta:C,target:R,should:_,shadowParent:VD(R)};a.current.push(T),setTimeout(function(){a.current=a.current.filter(function(k){return k!==T})},1)},[]),y=v.useCallback(function(S){r.current=Du(S),i.current=void 0},[]),b=v.useCallback(function(S){g(S.type,Ub(S),S.target,m(S,n.lockRef.current))},[]),w=v.useCallback(function(S){g(S.type,Du(S),S.target,m(S,n.lockRef.current))},[]);v.useEffect(function(){return Jr.push(u),n.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:w}),document.addEventListener("wheel",p,Pr),document.addEventListener("touchmove",p,Pr),document.addEventListener("touchstart",y,Pr),function(){Jr=Jr.filter(function(S){return S!==u}),document.removeEventListener("wheel",p,Pr),document.removeEventListener("touchmove",p,Pr),document.removeEventListener("touchstart",y,Pr)}},[]);var j=n.removeScrollBar,E=n.inert;return v.createElement(v.Fragment,null,E?v.createElement(u,{styles:QD(s)}):null,j?v.createElement(DD,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function VD(n){for(var a=null;n!==null;)n instanceof ShadowRoot&&(a=n.host,n=n.host),n=n.parentNode;return a}const KD=bD(t1,GD);var Cc=v.forwardRef(function(n,a){return v.createElement(Nc,Xn({},n,{ref:a,sideCar:KD}))});Cc.classNames=Nc.classNames;var tm=["Enter"," "],XD=["ArrowDown","PageUp","Home"],i1=["ArrowUp","PageDown","End"],$D=[...XD,...i1],ZD={ltr:[...tm,"ArrowRight"],rtl:[...tm,"ArrowLeft"]},FD={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Rc="Menu",[Yo,PD,JD]=Ni(Rc),[ir,o1]=ht(Rc,[JD,Ti,Mi]),$m=Ti(),s1=Mi(),[yz,or]=ir(Rc),[bz,es]=ir(Rc),WD="MenuAnchor",Zm=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n,s=$m(r);return d.jsx(Bm,{...s,...i,ref:a})});Zm.displayName=WD;var Fm="MenuPortal",[ID,u1]=ir(Fm,{forceMount:void 0}),c1=n=>{const{__scopeMenu:a,forceMount:r,children:i,container:s}=n,u=or(Fm,a);return d.jsx(ID,{scope:a,forceMount:r,children:d.jsx(st,{present:r||u.open,children:d.jsx(Gm,{asChild:!0,container:s,children:i})})})};c1.displayName=Fm;var wn="MenuContent",[ek,Pm]=ir(wn),d1=v.forwardRef((n,a)=>{const r=u1(wn,n.__scopeMenu),{forceMount:i=r.forceMount,...s}=n,u=or(wn,n.__scopeMenu),h=es(wn,n.__scopeMenu);return d.jsx(Yo.Provider,{scope:n.__scopeMenu,children:d.jsx(st,{present:i||u.open,children:d.jsx(Yo.Slot,{scope:n.__scopeMenu,children:h.modal?d.jsx(tk,{...s,ref:a}):d.jsx(nk,{...s,ref:a})})})})}),tk=v.forwardRef((n,a)=>{const r=or(wn,n.__scopeMenu),i=v.useRef(null),s=we(a,i);return v.useEffect(()=>{const u=i.current;if(u)return Xm(u)},[]),d.jsx(Jm,{...n,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:ae(n.onFocusOutside,u=>u.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),nk=v.forwardRef((n,a)=>{const r=or(wn,n.__scopeMenu);return d.jsx(Jm,{...n,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),ak=tr("MenuContent.ScrollLock"),Jm=v.forwardRef((n,a)=>{const{__scopeMenu:r,loop:i=!1,trapFocus:s,onOpenAutoFocus:u,onCloseAutoFocus:h,disableOutsidePointerEvents:m,onEntryFocus:p,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:b,onInteractOutside:w,onDismiss:j,disableOutsideScroll:E,...S}=n,C=or(wn,r),R=es(wn,r),_=$m(r),T=s1(r),k=PD(r),[L,X]=v.useState(null),q=v.useRef(null),H=we(a,q,C.onContentChange),G=v.useRef(0),te=v.useRef(""),ce=v.useRef(0),de=v.useRef(null),I=v.useRef("right"),ie=v.useRef(0),re=E?Cc:v.Fragment,U=E?{as:ak,allowPinchZoom:!0}:void 0,W=$=>{var fe,A;const Z=te.current+$,ee=k().filter(ye=>!ye.disabled),le=document.activeElement,ve=(fe=ee.find(ye=>ye.ref.current===le))==null?void 0:fe.textValue,je=ee.map(ye=>ye.textValue),ne=pk(je,Z,ve),Ee=(A=ee.find(ye=>ye.textValue===ne))==null?void 0:A.ref.current;(function ye(Ne){te.current=Ne,window.clearTimeout(G.current),Ne!==""&&(G.current=window.setTimeout(()=>ye(""),1e3))})(Z),Ee&&setTimeout(()=>Ee.focus())};v.useEffect(()=>()=>window.clearTimeout(G.current),[]),Dm();const V=v.useCallback($=>{var fe,A;return I.current===((fe=de.current)==null?void 0:fe.side)&&gk($,(A=de.current)==null?void 0:A.area)},[]);return d.jsx(ek,{scope:r,searchRef:te,onItemEnter:v.useCallback($=>{V($)&&$.preventDefault()},[V]),onItemLeave:v.useCallback($=>{var fe;V($)||((fe=q.current)==null||fe.focus(),X(null))},[V]),onTriggerLeave:v.useCallback($=>{V($)&&$.preventDefault()},[V]),pointerGraceTimerRef:ce,onPointerGraceIntentChange:v.useCallback($=>{de.current=$},[]),children:d.jsx(re,{...U,children:d.jsx(bc,{asChild:!0,trapped:s,onMountAutoFocus:ae(u,$=>{var fe;$.preventDefault(),(fe=q.current)==null||fe.focus({preventScroll:!0})}),onUnmountAutoFocus:h,children:d.jsx(Ci,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:b,onInteractOutside:w,onDismiss:j,children:d.jsx(Vm,{asChild:!0,...T,dir:R.dir,orientation:"vertical",loop:i,currentTabStopId:L,onCurrentTabStopIdChange:X,onEntryFocus:ae(p,$=>{R.isUsingKeyboardRef.current||$.preventDefault()}),preventScrollOnEntryFocus:!0,children:d.jsx(Qm,{role:"menu","aria-orientation":"vertical","data-state":R1(C.open),"data-radix-menu-content":"",dir:R.dir,..._,...S,ref:H,style:{outline:"none",...S.style},onKeyDown:ae(S.onKeyDown,$=>{const fe=$.target.closest("[data-radix-menu-content]")===$.currentTarget,A=$.ctrlKey||$.altKey||$.metaKey,Z=$.key.length===1;fe&&($.key==="Tab"&&$.preventDefault(),!A&&Z&&W($.key));const ee=q.current;if($.target!==ee||!$D.includes($.key))return;$.preventDefault();const le=k().filter(ve=>!ve.disabled).map(ve=>ve.ref.current);i1.includes($.key)&&le.reverse(),hk(le)}),onBlur:ae(n.onBlur,$=>{$.currentTarget.contains($.target)||(window.clearTimeout(G.current),te.current="")}),onPointerMove:ae(n.onPointerMove,Go($=>{const fe=$.target,A=ie.current!==$.clientX;if($.currentTarget.contains(fe)&&A){const Z=$.clientX>ie.current?"right":"left";I.current=Z,ie.current=$.clientX}}))})})})})})})});d1.displayName=wn;var lk="MenuGroup",Wm=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n;return d.jsx(oe.div,{role:"group",...i,ref:a})});Wm.displayName=lk;var rk="MenuLabel",f1=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n;return d.jsx(oe.div,{...i,ref:a})});f1.displayName=rk;var Wu="MenuItem",qb="menu.itemSelect",_c=v.forwardRef((n,a)=>{const{disabled:r=!1,onSelect:i,...s}=n,u=v.useRef(null),h=es(Wu,n.__scopeMenu),m=Pm(Wu,n.__scopeMenu),p=we(a,u),g=v.useRef(!1),y=()=>{const b=u.current;if(!r&&b){const w=new CustomEvent(qb,{bubbles:!0,cancelable:!0});b.addEventListener(qb,j=>i==null?void 0:i(j),{once:!0}),Ku(b,w),w.defaultPrevented?g.current=!1:h.onClose()}};return d.jsx(h1,{...s,ref:p,disabled:r,onClick:ae(n.onClick,y),onPointerDown:b=>{var w;(w=n.onPointerDown)==null||w.call(n,b),g.current=!0},onPointerUp:ae(n.onPointerUp,b=>{var w;g.current||(w=b.currentTarget)==null||w.click()}),onKeyDown:ae(n.onKeyDown,b=>{const w=m.searchRef.current!=="";r||w&&b.key===" "||tm.includes(b.key)&&(b.currentTarget.click(),b.preventDefault())})})});_c.displayName=Wu;var h1=v.forwardRef((n,a)=>{const{__scopeMenu:r,disabled:i=!1,textValue:s,...u}=n,h=Pm(Wu,r),m=s1(r),p=v.useRef(null),g=we(a,p),[y,b]=v.useState(!1),[w,j]=v.useState("");return v.useEffect(()=>{const E=p.current;E&&j((E.textContent??"").trim())},[u.children]),d.jsx(Yo.ItemSlot,{scope:r,disabled:i,textValue:s??w,children:d.jsx(Km,{asChild:!0,...m,focusable:!i,children:d.jsx(oe.div,{role:"menuitem","data-highlighted":y?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...u,ref:g,onPointerMove:ae(n.onPointerMove,Go(E=>{i?h.onItemLeave(E):(h.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ae(n.onPointerLeave,Go(E=>h.onItemLeave(E))),onFocus:ae(n.onFocus,()=>b(!0)),onBlur:ae(n.onBlur,()=>b(!1))})})})}),ik="MenuCheckboxItem",m1=v.forwardRef((n,a)=>{const{checked:r=!1,onCheckedChange:i,...s}=n;return d.jsx(b1,{scope:n.__scopeMenu,checked:r,children:d.jsx(_c,{role:"menuitemcheckbox","aria-checked":Iu(r)?"mixed":r,...s,ref:a,"data-state":ep(r),onSelect:ae(s.onSelect,()=>i==null?void 0:i(Iu(r)?!0:!r),{checkForDefaultPrevented:!1})})})});m1.displayName=ik;var p1="MenuRadioGroup",[ok,sk]=ir(p1,{value:void 0,onValueChange:()=>{}}),v1=v.forwardRef((n,a)=>{const{value:r,onValueChange:i,...s}=n,u=We(i);return d.jsx(ok,{scope:n.__scopeMenu,value:r,onValueChange:u,children:d.jsx(Wm,{...s,ref:a})})});v1.displayName=p1;var g1="MenuRadioItem",y1=v.forwardRef((n,a)=>{const{value:r,...i}=n,s=sk(g1,n.__scopeMenu),u=r===s.value;return d.jsx(b1,{scope:n.__scopeMenu,checked:u,children:d.jsx(_c,{role:"menuitemradio","aria-checked":u,...i,ref:a,"data-state":ep(u),onSelect:ae(i.onSelect,()=>{var h;return(h=s.onValueChange)==null?void 0:h.call(s,r)},{checkForDefaultPrevented:!1})})})});y1.displayName=g1;var Im="MenuItemIndicator",[b1,uk]=ir(Im,{checked:!1}),x1=v.forwardRef((n,a)=>{const{__scopeMenu:r,forceMount:i,...s}=n,u=uk(Im,r);return d.jsx(st,{present:i||Iu(u.checked)||u.checked===!0,children:d.jsx(oe.span,{...s,ref:a,"data-state":ep(u.checked)})})});x1.displayName=Im;var ck="MenuSeparator",w1=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n;return d.jsx(oe.div,{role:"separator","aria-orientation":"horizontal",...i,ref:a})});w1.displayName=ck;var dk="MenuArrow",S1=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n,s=$m(r);return d.jsx(Ym,{...s,...i,ref:a})});S1.displayName=dk;var fk="MenuSub",[xz,j1]=ir(fk),Do="MenuSubTrigger",E1=v.forwardRef((n,a)=>{const r=or(Do,n.__scopeMenu),i=es(Do,n.__scopeMenu),s=j1(Do,n.__scopeMenu),u=Pm(Do,n.__scopeMenu),h=v.useRef(null),{pointerGraceTimerRef:m,onPointerGraceIntentChange:p}=u,g={__scopeMenu:n.__scopeMenu},y=v.useCallback(()=>{h.current&&window.clearTimeout(h.current),h.current=null},[]);return v.useEffect(()=>y,[y]),v.useEffect(()=>{const b=m.current;return()=>{window.clearTimeout(b),p(null)}},[m,p]),d.jsx(Zm,{asChild:!0,...g,children:d.jsx(h1,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":s.contentId,"data-state":R1(r.open),...n,ref:Jo(a,s.onTriggerChange),onClick:b=>{var w;(w=n.onClick)==null||w.call(n,b),!(n.disabled||b.defaultPrevented)&&(b.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:ae(n.onPointerMove,Go(b=>{u.onItemEnter(b),!b.defaultPrevented&&!n.disabled&&!r.open&&!h.current&&(u.onPointerGraceIntentChange(null),h.current=window.setTimeout(()=>{r.onOpenChange(!0),y()},100))})),onPointerLeave:ae(n.onPointerLeave,Go(b=>{var w,j;y();const E=(w=r.content)==null?void 0:w.getBoundingClientRect();if(E){const S=(j=r.content)==null?void 0:j.dataset.side,C=S==="right",R=C?-5:5,_=E[C?"left":"right"],T=E[C?"right":"left"];u.onPointerGraceIntentChange({area:[{x:b.clientX+R,y:b.clientY},{x:_,y:E.top},{x:T,y:E.top},{x:T,y:E.bottom},{x:_,y:E.bottom}],side:S}),window.clearTimeout(m.current),m.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(b),b.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:ae(n.onKeyDown,b=>{var w;const j=u.searchRef.current!=="";n.disabled||j&&b.key===" "||ZD[i.dir].includes(b.key)&&(r.onOpenChange(!0),(w=r.content)==null||w.focus(),b.preventDefault())})})})});E1.displayName=Do;var N1="MenuSubContent",C1=v.forwardRef((n,a)=>{const r=u1(wn,n.__scopeMenu),{forceMount:i=r.forceMount,...s}=n,u=or(wn,n.__scopeMenu),h=es(wn,n.__scopeMenu),m=j1(N1,n.__scopeMenu),p=v.useRef(null),g=we(a,p);return d.jsx(Yo.Provider,{scope:n.__scopeMenu,children:d.jsx(st,{present:i||u.open,children:d.jsx(Yo.Slot,{scope:n.__scopeMenu,children:d.jsx(Jm,{id:m.contentId,"aria-labelledby":m.triggerId,...s,ref:g,align:"start",side:h.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:y=>{var b;h.isUsingKeyboardRef.current&&((b=p.current)==null||b.focus()),y.preventDefault()},onCloseAutoFocus:y=>y.preventDefault(),onFocusOutside:ae(n.onFocusOutside,y=>{y.target!==m.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:ae(n.onEscapeKeyDown,y=>{h.onClose(),y.preventDefault()}),onKeyDown:ae(n.onKeyDown,y=>{var b;const w=y.currentTarget.contains(y.target),j=FD[h.dir].includes(y.key);w&&j&&(u.onOpenChange(!1),(b=m.trigger)==null||b.focus(),y.preventDefault())})})})})})});C1.displayName=N1;function R1(n){return n?"open":"closed"}function Iu(n){return n==="indeterminate"}function ep(n){return Iu(n)?"indeterminate":n?"checked":"unchecked"}function hk(n){const a=document.activeElement;for(const r of n)if(r===a||(r.focus(),document.activeElement!==a))return}function mk(n,a){return n.map((r,i)=>n[(a+i)%n.length])}function pk(n,a,r){const i=a.length>1&&Array.from(a).every(m=>m===a[0])?a[0]:a,s=r?n.indexOf(r):-1;let u=mk(n,Math.max(s,0));i.length===1&&(u=u.filter(m=>m!==r));const h=u.find(m=>m.toLowerCase().startsWith(i.toLowerCase()));return h!==r?h:void 0}function vk(n,a){const{x:r,y:i}=n;let s=!1;for(let u=0,h=a.length-1;u<a.length;h=u++){const m=a[u],p=a[h],g=m.x,y=m.y,b=p.x,w=p.y;y>i!=w>i&&r<(b-g)*(i-y)/(w-y)+g&&(s=!s)}return s}function gk(n,a){if(!a)return!1;const r={x:n.clientX,y:n.clientY};return vk(r,a)}function Go(n){return a=>a.pointerType==="mouse"?n(a):void 0}var yk=Zm,bk=c1,xk=d1,wk=Wm,Sk=f1,jk=_c,Ek=m1,Nk=v1,Ck=y1,Rk=x1,_k=w1,Tk=S1,Mk=E1,Ak=C1,_1="DropdownMenu",[Dk,wz]=ht(_1,[o1]),Vt=o1(),[Sz,T1]=Dk(_1),M1="DropdownMenuTrigger",kk=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,disabled:i=!1,...s}=n,u=T1(M1,r),h=Vt(r);return d.jsx(yk,{asChild:!0,...h,children:d.jsx(oe.button,{type:"button",id:u.triggerId,"aria-haspopup":"menu","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":u.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...s,ref:Jo(a,u.triggerRef),onPointerDown:ae(n.onPointerDown,m=>{!i&&m.button===0&&m.ctrlKey===!1&&(u.onOpenToggle(),u.open||m.preventDefault())}),onKeyDown:ae(n.onKeyDown,m=>{i||(["Enter"," "].includes(m.key)&&u.onOpenToggle(),m.key==="ArrowDown"&&u.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(m.key)&&m.preventDefault())})})})});kk.displayName=M1;var Ok="DropdownMenuPortal",A1=n=>{const{__scopeDropdownMenu:a,...r}=n,i=Vt(a);return d.jsx(bk,{...i,...r})};A1.displayName=Ok;var D1="DropdownMenuContent",k1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=T1(D1,r),u=Vt(r),h=v.useRef(!1);return d.jsx(xk,{id:s.contentId,"aria-labelledby":s.triggerId,...u,...i,ref:a,onCloseAutoFocus:ae(n.onCloseAutoFocus,m=>{var p;h.current||(p=s.triggerRef.current)==null||p.focus(),h.current=!1,m.preventDefault()}),onInteractOutside:ae(n.onInteractOutside,m=>{const p=m.detail.originalEvent,g=p.button===0&&p.ctrlKey===!0,y=p.button===2||g;(!s.modal||y)&&(h.current=!0)}),style:{...n.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)"}})});k1.displayName=D1;var zk="DropdownMenuGroup",Lk=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=Vt(r);return d.jsx(wk,{...s,...i,ref:a})});Lk.displayName=zk;var Uk="DropdownMenuLabel",O1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=Vt(r);return d.jsx(Sk,{...s,...i,ref:a})});O1.displayName=Uk;var Hk="DropdownMenuItem",z1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=Vt(r);return d.jsx(jk,{...s,...i,ref:a})});z1.displayName=Hk;var qk="DropdownMenuCheckboxItem",L1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=Vt(r);return d.jsx(Ek,{...s,...i,ref:a})});L1.displayName=qk;var Bk="DropdownMenuRadioGroup",Qk=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=Vt(r);return d.jsx(Nk,{...s,...i,ref:a})});Qk.displayName=Bk;var Yk="DropdownMenuRadioItem",U1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=Vt(r);return d.jsx(Ck,{...s,...i,ref:a})});U1.displayName=Yk;var Gk="DropdownMenuItemIndicator",H1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=Vt(r);return d.jsx(Rk,{...s,...i,ref:a})});H1.displayName=Gk;var Vk="DropdownMenuSeparator",q1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=Vt(r);return d.jsx(_k,{...s,...i,ref:a})});q1.displayName=Vk;var Kk="DropdownMenuArrow",Xk=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=Vt(r);return d.jsx(Tk,{...s,...i,ref:a})});Xk.displayName=Kk;var $k="DropdownMenuSubTrigger",B1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=Vt(r);return d.jsx(Mk,{...s,...i,ref:a})});B1.displayName=$k;var Zk="DropdownMenuSubContent",Q1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=Vt(r);return d.jsx(Ak,{...s,...i,ref:a,style:{...n.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)"}})});Q1.displayName=Zk;var Fk=A1,Y1=k1,G1=O1,V1=z1,K1=L1,X1=U1,$1=H1,Z1=q1,F1=B1,P1=Q1;const J1=se("relative overflow-hidden","dark:bg-[#1a1a1a] bg-white","border dark:border-white/[0.08] border-gray-200","backdrop-blur-xl","dark:shadow-[0_8px_32px_rgba(0,0,0,0.4)] shadow-[0_2px_8px_rgba(0,0,0,0.04)]");se("flex items-center justify-between gap-2","px-3 py-2 rounded-lg text-sm","transition-colors duration-200",J1,"hover:dark:border-white/[0.15] hover:border-gray-300","focus:outline-none focus:ring-2 focus:ring-blue-500/20 focus:dark:border-white/[0.15] focus:border-gray-300","data-[state=open]:dark:border-white/[0.15] data-[state=open]:border-gray-300");se("z-50 min-w-[8rem] p-1 rounded-xl",J1,"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-[side=bottom]:slide-in-from-top-2","data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2","data-[side=top]:slide-in-from-bottom-2");se("relative flex items-center gap-3","px-3 py-2 rounded-lg text-sm cursor-pointer","outline-none select-none","transition-colors duration-150","dark:text-gray-200 text-gray-700","dark:hover:bg-white/[0.06] hover:bg-gray-100","dark:focus:bg-white/[0.08] focus:bg-gray-100","data-[disabled]:opacity-50 data-[disabled]:pointer-events-none");se("dark:text-red-400 text-red-600","dark:hover:bg-red-500/10 hover:bg-red-50","dark:focus:bg-red-500/15 focus:bg-red-100");se("px-3 py-2 text-xs font-medium","dark:text-gray-500 text-gray-400","select-none");se("h-px my-1 -mx-1","dark:bg-white/[0.08] bg-gray-200");var W1="Dialog",[I1,eS]=ht(W1),[jz,In]=I1(W1),tS="DialogTrigger",nS=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,s=In(tS,r),u=we(a,s.triggerRef);return d.jsx(oe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":np(s.open),...i,ref:u,onClick:ae(n.onClick,s.onOpenToggle)})});nS.displayName=tS;var Pk="DialogPortal",[Ez,aS]=I1(Pk,{forceMount:void 0}),ec="DialogOverlay",lS=v.forwardRef((n,a)=>{const r=aS(ec,n.__scopeDialog),{forceMount:i=r.forceMount,...s}=n,u=In(ec,n.__scopeDialog);return u.modal?d.jsx(st,{present:i||u.open,children:d.jsx(Wk,{...s,ref:a})}):null});lS.displayName=ec;var Jk=tr("DialogOverlay.RemoveScroll"),Wk=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,s=In(ec,r);return d.jsx(Cc,{as:Jk,allowPinchZoom:!0,shards:[s.contentRef],children:d.jsx(oe.div,{"data-state":np(s.open),...i,ref:a,style:{pointerEvents:"auto",...i.style}})})}),ar="DialogContent",rS=v.forwardRef((n,a)=>{const r=aS(ar,n.__scopeDialog),{forceMount:i=r.forceMount,...s}=n,u=In(ar,n.__scopeDialog);return d.jsx(st,{present:i||u.open,children:u.modal?d.jsx(Ik,{...s,ref:a}):d.jsx(eO,{...s,ref:a})})});rS.displayName=ar;var Ik=v.forwardRef((n,a)=>{const r=In(ar,n.__scopeDialog),i=v.useRef(null),s=we(a,r.contentRef,i);return v.useEffect(()=>{const u=i.current;if(u)return Xm(u)},[]),d.jsx(iS,{...n,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ae(n.onCloseAutoFocus,u=>{var h;u.preventDefault(),(h=r.triggerRef.current)==null||h.focus()}),onPointerDownOutside:ae(n.onPointerDownOutside,u=>{const h=u.detail.originalEvent,m=h.button===0&&h.ctrlKey===!0;(h.button===2||m)&&u.preventDefault()}),onFocusOutside:ae(n.onFocusOutside,u=>u.preventDefault())})}),eO=v.forwardRef((n,a)=>{const r=In(ar,n.__scopeDialog),i=v.useRef(!1),s=v.useRef(!1);return d.jsx(iS,{...n,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{var h,m;(h=n.onCloseAutoFocus)==null||h.call(n,u),u.defaultPrevented||(i.current||(m=r.triggerRef.current)==null||m.focus(),u.preventDefault()),i.current=!1,s.current=!1},onInteractOutside:u=>{var h,m;(h=n.onInteractOutside)==null||h.call(n,u),u.defaultPrevented||(i.current=!0,u.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const p=u.target;(m=r.triggerRef.current)!=null&&m.contains(p)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&s.current&&u.preventDefault()}})}),iS=v.forwardRef((n,a)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:u,...h}=n,m=In(ar,r),p=v.useRef(null),g=we(a,p);return Dm(),d.jsxs(d.Fragment,{children:[d.jsx(bc,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:u,children:d.jsx(Ci,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":np(m.open),...h,ref:g,onDismiss:()=>m.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(nO,{titleId:m.titleId}),d.jsx(lO,{contentRef:p,descriptionId:m.descriptionId})]})]})}),tp="DialogTitle",oS=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,s=In(tp,r);return d.jsx(oe.h2,{id:s.titleId,...i,ref:a})});oS.displayName=tp;var sS="DialogDescription",uS=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,s=In(sS,r);return d.jsx(oe.p,{id:s.descriptionId,...i,ref:a})});uS.displayName=sS;var cS="DialogClose",dS=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,s=In(cS,r);return d.jsx(oe.button,{type:"button",...i,ref:a,onClick:ae(n.onClick,()=>s.onOpenChange(!1))})});dS.displayName=cS;function np(n){return n?"open":"closed"}var fS="DialogTitleWarning",[tO,hS]=FT(fS,{contentName:ar,titleName:tp,docsSlug:"dialog"}),nO=({titleId:n})=>{const a=hS(fS),r=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users.
|
|
297
|
+
|
|
298
|
+
If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
299
|
+
|
|
300
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${a.docsSlug}`;return v.useEffect(()=>{n&&(document.getElementById(n)||console.error(r))},[r,n]),null},aO="DialogDescriptionWarning",lO=({contentRef:n,descriptionId:a})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${hS(aO).contentName}}.`;return v.useEffect(()=>{var i;const s=(i=n.current)==null?void 0:i.getAttribute("aria-describedby");a&&s&&(document.getElementById(a)||console.warn(r))},[r,n,a]),null},rO=nS,iO=lS,oO=rS,sO=oS,uO=uS,mS=dS,cO="AlertDialog",[dO,Nz]=ht(cO,[eS]),sr=eS(),fO="AlertDialogTrigger",hO=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,s=sr(r);return d.jsx(rO,{...s,...i,ref:a})});hO.displayName=fO;var mO="AlertDialogOverlay",pO=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,s=sr(r);return d.jsx(iO,{...s,...i,ref:a})});pO.displayName=mO;var ti="AlertDialogContent",[vO,gO]=dO(ti),yO=rw("AlertDialogContent"),bO=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,children:i,...s}=n,u=sr(r),h=v.useRef(null),m=we(a,h),p=v.useRef(null);return d.jsx(tO,{contentName:ti,titleName:pS,docsSlug:"alert-dialog",children:d.jsx(vO,{scope:r,cancelRef:p,children:d.jsxs(oO,{role:"alertdialog",...u,...s,ref:m,onOpenAutoFocus:ae(s.onOpenAutoFocus,g=>{var y;g.preventDefault(),(y=p.current)==null||y.focus({preventScroll:!0})}),onPointerDownOutside:g=>g.preventDefault(),onInteractOutside:g=>g.preventDefault(),children:[d.jsx(yO,{children:i}),d.jsx(NO,{contentRef:h})]})})})});bO.displayName=ti;var pS="AlertDialogTitle",xO=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,s=sr(r);return d.jsx(sO,{...s,...i,ref:a})});xO.displayName=pS;var vS="AlertDialogDescription",wO=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,s=sr(r);return d.jsx(uO,{...s,...i,ref:a})});wO.displayName=vS;var SO="AlertDialogAction",jO=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,s=sr(r);return d.jsx(mS,{...s,...i,ref:a})});jO.displayName=SO;var gS="AlertDialogCancel",EO=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,{cancelRef:s}=gO(gS,r),u=sr(r),h=we(a,s);return d.jsx(mS,{...u,...i,ref:h})});EO.displayName=gS;var NO=({contentRef:n})=>{const a=`\`${ti}\` requires a description for the component to be accessible for screen reader users.
|
|
301
|
+
|
|
302
|
+
You can add a description to the \`${ti}\` by passing a \`${vS}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
303
|
+
|
|
304
|
+
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${ti}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
305
|
+
|
|
306
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return v.useEffect(()=>{var r;document.getElementById((r=n.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(a)},[a,n]),null};function ts(n){const a=v.useRef({value:n,previous:n});return v.useMemo(()=>(a.current.value!==n&&(a.current.previous=a.current.value,a.current.value=n),a.current.previous),[n])}var yS=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"}),CO="VisuallyHidden",bS=v.forwardRef((n,a)=>d.jsx(oe.span,{...n,ref:a,style:{...yS,...n.style}}));bS.displayName=CO;var xS=bS,RO=[" ","Enter","ArrowUp","ArrowDown"],_O=[" ","Enter"],Tc="Select",[ap,Mc,TO]=Ni(Tc),[Ai,Cz]=ht(Tc,[TO,Ti]),lp=Ti(),[Rz,Sl]=Ai(Tc),[_z,MO]=Ai(Tc),wS="SelectTrigger",AO=v.forwardRef((n,a)=>{const{__scopeSelect:r,disabled:i=!1,...s}=n,u=lp(r),h=Sl(wS,r),m=h.disabled||i,p=we(a,h.onTriggerChange),g=Mc(r),y=v.useRef("touch"),[b,w,j]=DS(S=>{const C=g().filter(T=>!T.disabled),R=C.find(T=>T.value===h.value),_=kS(C,S,R);_!==void 0&&h.onValueChange(_.value)}),E=S=>{m||(h.onOpenChange(!0),j()),S&&(h.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return d.jsx(Bm,{asChild:!0,...u,children:d.jsx(oe.button,{type:"button",role:"combobox","aria-controls":h.contentId,"aria-expanded":h.open,"aria-required":h.required,"aria-autocomplete":"none",dir:h.dir,"data-state":h.open?"open":"closed",disabled:m,"data-disabled":m?"":void 0,"data-placeholder":AS(h.value)?"":void 0,...s,ref:p,onClick:ae(s.onClick,S=>{S.currentTarget.focus(),y.current!=="mouse"&&E(S)}),onPointerDown:ae(s.onPointerDown,S=>{y.current=S.pointerType;const C=S.target;C.hasPointerCapture(S.pointerId)&&C.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(E(S),S.preventDefault())}),onKeyDown:ae(s.onKeyDown,S=>{const C=b.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&w(S.key),!(C&&S.key===" ")&&RO.includes(S.key)&&(E(),S.preventDefault())})})})});AO.displayName=wS;var SS="SelectValue",DO=v.forwardRef((n,a)=>{const{__scopeSelect:r,className:i,style:s,children:u,placeholder:h="",...m}=n,p=Sl(SS,r),{onValueNodeHasChildrenChange:g}=p,y=u!==void 0,b=we(a,p.onValueNodeChange);return et(()=>{g(y)},[g,y]),d.jsx(oe.span,{...m,ref:b,style:{pointerEvents:"none"},children:AS(p.value)?d.jsx(d.Fragment,{children:h}):u})});DO.displayName=SS;var kO="SelectIcon",OO=v.forwardRef((n,a)=>{const{__scopeSelect:r,children:i,...s}=n;return d.jsx(oe.span,{"aria-hidden":!0,...s,ref:a,children:i||"▼"})});OO.displayName=kO;var lr="SelectContent",zO=v.forwardRef((n,a)=>{const r=Sl(lr,n.__scopeSelect),[i,s]=v.useState();if(et(()=>{s(new DocumentFragment)},[]),!r.open){const u=i;return u?Po.createPortal(d.jsx(jS,{scope:n.__scopeSelect,children:d.jsx(ap.Slot,{scope:n.__scopeSelect,children:d.jsx("div",{children:n.children})})}),u):null}return d.jsx(ES,{...n,ref:a})});zO.displayName=lr;var _n=10,[jS,jl]=Ai(lr),LO="SelectContentImpl",UO=tr("SelectContent.RemoveScroll"),ES=v.forwardRef((n,a)=>{const{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:u,onPointerDownOutside:h,side:m,sideOffset:p,align:g,alignOffset:y,arrowPadding:b,collisionBoundary:w,collisionPadding:j,sticky:E,hideWhenDetached:S,avoidCollisions:C,...R}=n,_=Sl(lr,r),[T,k]=v.useState(null),[L,X]=v.useState(null),q=we(a,ne=>k(ne)),[H,G]=v.useState(null),[te,ce]=v.useState(null),de=Mc(r),[I,ie]=v.useState(!1),re=v.useRef(!1);v.useEffect(()=>{if(T)return Xm(T)},[T]),Dm();const U=v.useCallback(ne=>{const[Ee,...ye]=de().map(Ye=>Ye.ref.current),[Ne]=ye.slice(-1),Ue=document.activeElement;for(const Ye of ne)if(Ye===Ue||(Ye==null||Ye.scrollIntoView({block:"nearest"}),Ye===Ee&&L&&(L.scrollTop=0),Ye===Ne&&L&&(L.scrollTop=L.scrollHeight),Ye==null||Ye.focus(),document.activeElement!==Ue))return},[de,L]),W=v.useCallback(()=>U([H,T]),[U,H,T]);v.useEffect(()=>{I&&W()},[I,W]);const{onOpenChange:V,triggerPointerDownPosRef:$}=_;v.useEffect(()=>{if(T){let ne={x:0,y:0};const Ee=Ne=>{var Ue,Ye;ne={x:Math.abs(Math.round(Ne.pageX)-(((Ue=$.current)==null?void 0:Ue.x)??0)),y:Math.abs(Math.round(Ne.pageY)-(((Ye=$.current)==null?void 0:Ye.y)??0))}},ye=Ne=>{ne.x<=10&&ne.y<=10?Ne.preventDefault():T.contains(Ne.target)||V(!1),document.removeEventListener("pointermove",Ee),$.current=null};return $.current!==null&&(document.addEventListener("pointermove",Ee),document.addEventListener("pointerup",ye,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Ee),document.removeEventListener("pointerup",ye,{capture:!0})}}},[T,V,$]),v.useEffect(()=>{const ne=()=>V(!1);return window.addEventListener("blur",ne),window.addEventListener("resize",ne),()=>{window.removeEventListener("blur",ne),window.removeEventListener("resize",ne)}},[V]);const[fe,A]=DS(ne=>{const Ee=de().filter(Ue=>!Ue.disabled),ye=Ee.find(Ue=>Ue.ref.current===document.activeElement),Ne=kS(Ee,ne,ye);Ne&&setTimeout(()=>Ne.ref.current.focus())}),Z=v.useCallback((ne,Ee,ye)=>{const Ne=!re.current&&!ye;(_.value!==void 0&&_.value===Ee||Ne)&&(G(ne),Ne&&(re.current=!0))},[_.value]),ee=v.useCallback(()=>T==null?void 0:T.focus(),[T]),le=v.useCallback((ne,Ee,ye)=>{const Ne=!re.current&&!ye;(_.value!==void 0&&_.value===Ee||Ne)&&ce(ne)},[_.value]),ve=i==="popper"?nm:NS,je=ve===nm?{side:m,sideOffset:p,align:g,alignOffset:y,arrowPadding:b,collisionBoundary:w,collisionPadding:j,sticky:E,hideWhenDetached:S,avoidCollisions:C}:{};return d.jsx(jS,{scope:r,content:T,viewport:L,onViewportChange:X,itemRefCallback:Z,selectedItem:H,onItemLeave:ee,itemTextRefCallback:le,focusSelectedItem:W,selectedItemText:te,position:i,isPositioned:I,searchRef:fe,children:d.jsx(Cc,{as:UO,allowPinchZoom:!0,children:d.jsx(bc,{asChild:!0,trapped:_.open,onMountAutoFocus:ne=>{ne.preventDefault()},onUnmountAutoFocus:ae(s,ne=>{var Ee;(Ee=_.trigger)==null||Ee.focus({preventScroll:!0}),ne.preventDefault()}),children:d.jsx(Ci,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:h,onFocusOutside:ne=>ne.preventDefault(),onDismiss:()=>_.onOpenChange(!1),children:d.jsx(ve,{role:"listbox",id:_.contentId,"data-state":_.open?"open":"closed",dir:_.dir,onContextMenu:ne=>ne.preventDefault(),...R,...je,onPlaced:()=>ie(!0),ref:q,style:{display:"flex",flexDirection:"column",outline:"none",...R.style},onKeyDown:ae(R.onKeyDown,ne=>{const Ee=ne.ctrlKey||ne.altKey||ne.metaKey;if(ne.key==="Tab"&&ne.preventDefault(),!Ee&&ne.key.length===1&&A(ne.key),["ArrowUp","ArrowDown","Home","End"].includes(ne.key)){let ye=de().filter(Ne=>!Ne.disabled).map(Ne=>Ne.ref.current);if(["ArrowUp","End"].includes(ne.key)&&(ye=ye.slice().reverse()),["ArrowUp","ArrowDown"].includes(ne.key)){const Ne=ne.target,Ue=ye.indexOf(Ne);ye=ye.slice(Ue+1)}setTimeout(()=>U(ye)),ne.preventDefault()}})})})})})})});ES.displayName=LO;var HO="SelectItemAlignedPosition",NS=v.forwardRef((n,a)=>{const{__scopeSelect:r,onPlaced:i,...s}=n,u=Sl(lr,r),h=jl(lr,r),[m,p]=v.useState(null),[g,y]=v.useState(null),b=we(a,q=>y(q)),w=Mc(r),j=v.useRef(!1),E=v.useRef(!0),{viewport:S,selectedItem:C,selectedItemText:R,focusSelectedItem:_}=h,T=v.useCallback(()=>{if(u.trigger&&u.valueNode&&m&&g&&S&&C&&R){const q=u.trigger.getBoundingClientRect(),H=g.getBoundingClientRect(),G=u.valueNode.getBoundingClientRect(),te=R.getBoundingClientRect();if(u.dir!=="rtl"){const Ne=te.left-H.left,Ue=G.left-Ne,Ye=q.left-Ue,Et=q.width+Ye,Kt=Math.max(Et,H.width),ea=window.innerWidth-_n,ta=Zh(Ue,[_n,Math.max(_n,ea-Kt)]);m.style.minWidth=Et+"px",m.style.left=ta+"px"}else{const Ne=H.right-te.right,Ue=window.innerWidth-G.right-Ne,Ye=window.innerWidth-q.right-Ue,Et=q.width+Ye,Kt=Math.max(Et,H.width),ea=window.innerWidth-_n,ta=Zh(Ue,[_n,Math.max(_n,ea-Kt)]);m.style.minWidth=Et+"px",m.style.right=ta+"px"}const ce=w(),de=window.innerHeight-_n*2,I=S.scrollHeight,ie=window.getComputedStyle(g),re=parseInt(ie.borderTopWidth,10),U=parseInt(ie.paddingTop,10),W=parseInt(ie.borderBottomWidth,10),V=parseInt(ie.paddingBottom,10),$=re+U+I+V+W,fe=Math.min(C.offsetHeight*5,$),A=window.getComputedStyle(S),Z=parseInt(A.paddingTop,10),ee=parseInt(A.paddingBottom,10),le=q.top+q.height/2-_n,ve=de-le,je=C.offsetHeight/2,ne=C.offsetTop+je,Ee=re+U+ne,ye=$-Ee;if(Ee<=le){const Ne=ce.length>0&&C===ce[ce.length-1].ref.current;m.style.bottom="0px";const Ue=g.clientHeight-S.offsetTop-S.offsetHeight,Ye=Math.max(ve,je+(Ne?ee:0)+Ue+W),Et=Ee+Ye;m.style.height=Et+"px"}else{const Ne=ce.length>0&&C===ce[0].ref.current;m.style.top="0px";const Ue=Math.max(le,re+S.offsetTop+(Ne?Z:0)+je)+ye;m.style.height=Ue+"px",S.scrollTop=Ee-le+S.offsetTop}m.style.margin=`${_n}px 0`,m.style.minHeight=fe+"px",m.style.maxHeight=de+"px",i==null||i(),requestAnimationFrame(()=>j.current=!0)}},[w,u.trigger,u.valueNode,m,g,S,C,R,u.dir,i]);et(()=>T(),[T]);const[k,L]=v.useState();et(()=>{g&&L(window.getComputedStyle(g).zIndex)},[g]);const X=v.useCallback(q=>{q&&E.current===!0&&(T(),_==null||_(),E.current=!1)},[T,_]);return d.jsx(BO,{scope:r,contentWrapper:m,shouldExpandOnScrollRef:j,onScrollButtonChange:X,children:d.jsx("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:d.jsx(oe.div,{...s,ref:b,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});NS.displayName=HO;var qO="SelectPopperPosition",nm=v.forwardRef((n,a)=>{const{__scopeSelect:r,align:i="start",collisionPadding:s=_n,...u}=n,h=lp(r);return d.jsx(Qm,{...h,...u,ref:a,align:i,collisionPadding:s,style:{boxSizing:"border-box",...u.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)"}})});nm.displayName=qO;var[BO,rp]=Ai(lr,{}),am="SelectViewport",QO=v.forwardRef((n,a)=>{const{__scopeSelect:r,nonce:i,...s}=n,u=jl(am,r),h=rp(am,r),m=we(a,u.onViewportChange),p=v.useRef(0);return d.jsxs(d.Fragment,{children:[d.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:i}),d.jsx(ap.Slot,{scope:r,children:d.jsx(oe.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:m,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:ae(s.onScroll,g=>{const y=g.currentTarget,{contentWrapper:b,shouldExpandOnScrollRef:w}=h;if(w!=null&&w.current&&b){const j=Math.abs(p.current-y.scrollTop);if(j>0){const E=window.innerHeight-_n*2,S=parseFloat(b.style.minHeight),C=parseFloat(b.style.height),R=Math.max(S,C);if(R<E){const _=R+j,T=Math.min(E,_),k=_-T;b.style.height=T+"px",b.style.bottom==="0px"&&(y.scrollTop=k>0?k:0,b.style.justifyContent="flex-end")}}}p.current=y.scrollTop})})})]})});QO.displayName=am;var CS="SelectGroup",[YO,GO]=Ai(CS),VO=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n,s=wl();return d.jsx(YO,{scope:r,id:s,children:d.jsx(oe.div,{role:"group","aria-labelledby":s,...i,ref:a})})});VO.displayName=CS;var RS="SelectLabel",KO=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n,s=GO(RS,r);return d.jsx(oe.div,{id:s.id,...i,ref:a})});KO.displayName=RS;var tc="SelectItem",[XO,_S]=Ai(tc),$O=v.forwardRef((n,a)=>{const{__scopeSelect:r,value:i,disabled:s=!1,textValue:u,...h}=n,m=Sl(tc,r),p=jl(tc,r),g=m.value===i,[y,b]=v.useState(u??""),[w,j]=v.useState(!1),E=we(a,_=>{var T;return(T=p.itemRefCallback)==null?void 0:T.call(p,_,i,s)}),S=wl(),C=v.useRef("touch"),R=()=>{s||(m.onValueChange(i),m.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return d.jsx(XO,{scope:r,value:i,disabled:s,textId:S,isSelected:g,onItemTextChange:v.useCallback(_=>{b(T=>T||((_==null?void 0:_.textContent)??"").trim())},[]),children:d.jsx(ap.ItemSlot,{scope:r,value:i,disabled:s,textValue:y,children:d.jsx(oe.div,{role:"option","aria-labelledby":S,"data-highlighted":w?"":void 0,"aria-selected":g&&w,"data-state":g?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...h,ref:E,onFocus:ae(h.onFocus,()=>j(!0)),onBlur:ae(h.onBlur,()=>j(!1)),onClick:ae(h.onClick,()=>{C.current!=="mouse"&&R()}),onPointerUp:ae(h.onPointerUp,()=>{C.current==="mouse"&&R()}),onPointerDown:ae(h.onPointerDown,_=>{C.current=_.pointerType}),onPointerMove:ae(h.onPointerMove,_=>{var T;C.current=_.pointerType,s?(T=p.onItemLeave)==null||T.call(p):C.current==="mouse"&&_.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ae(h.onPointerLeave,_=>{var T;_.currentTarget===document.activeElement&&((T=p.onItemLeave)==null||T.call(p))}),onKeyDown:ae(h.onKeyDown,_=>{var T;((T=p.searchRef)==null?void 0:T.current)!==""&&_.key===" "||(_O.includes(_.key)&&R(),_.key===" "&&_.preventDefault())})})})})});$O.displayName=tc;var ko="SelectItemText",ZO=v.forwardRef((n,a)=>{const{__scopeSelect:r,className:i,style:s,...u}=n,h=Sl(ko,r),m=jl(ko,r),p=_S(ko,r),g=MO(ko,r),[y,b]=v.useState(null),w=we(a,R=>b(R),p.onItemTextChange,R=>{var _;return(_=m.itemTextRefCallback)==null?void 0:_.call(m,R,p.value,p.disabled)}),j=y==null?void 0:y.textContent,E=v.useMemo(()=>d.jsx("option",{value:p.value,disabled:p.disabled,children:j},p.value),[p.disabled,p.value,j]),{onNativeOptionAdd:S,onNativeOptionRemove:C}=g;return et(()=>(S(E),()=>C(E)),[S,C,E]),d.jsxs(d.Fragment,{children:[d.jsx(oe.span,{id:p.textId,...u,ref:w}),p.isSelected&&h.valueNode&&!h.valueNodeHasChildren?Po.createPortal(u.children,h.valueNode):null]})});ZO.displayName=ko;var TS="SelectItemIndicator",FO=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n;return _S(TS,r).isSelected?d.jsx(oe.span,{"aria-hidden":!0,...i,ref:a}):null});FO.displayName=TS;var lm="SelectScrollUpButton",PO=v.forwardRef((n,a)=>{const r=jl(lm,n.__scopeSelect),i=rp(lm,n.__scopeSelect),[s,u]=v.useState(!1),h=we(a,i.onScrollButtonChange);return et(()=>{if(r.viewport&&r.isPositioned){let m=function(){const g=p.scrollTop>0;u(g)};const p=r.viewport;return m(),p.addEventListener("scroll",m),()=>p.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),s?d.jsx(MS,{...n,ref:h,onAutoScroll:()=>{const{viewport:m,selectedItem:p}=r;m&&p&&(m.scrollTop=m.scrollTop-p.offsetHeight)}}):null});PO.displayName=lm;var rm="SelectScrollDownButton",JO=v.forwardRef((n,a)=>{const r=jl(rm,n.__scopeSelect),i=rp(rm,n.__scopeSelect),[s,u]=v.useState(!1),h=we(a,i.onScrollButtonChange);return et(()=>{if(r.viewport&&r.isPositioned){let m=function(){const g=p.scrollHeight-p.clientHeight,y=Math.ceil(p.scrollTop)<g;u(y)};const p=r.viewport;return m(),p.addEventListener("scroll",m),()=>p.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),s?d.jsx(MS,{...n,ref:h,onAutoScroll:()=>{const{viewport:m,selectedItem:p}=r;m&&p&&(m.scrollTop=m.scrollTop+p.offsetHeight)}}):null});JO.displayName=rm;var MS=v.forwardRef((n,a)=>{const{__scopeSelect:r,onAutoScroll:i,...s}=n,u=jl("SelectScrollButton",r),h=v.useRef(null),m=Mc(r),p=v.useCallback(()=>{h.current!==null&&(window.clearInterval(h.current),h.current=null)},[]);return v.useEffect(()=>()=>p(),[p]),et(()=>{var g;const y=m().find(b=>b.ref.current===document.activeElement);(g=y==null?void 0:y.ref.current)==null||g.scrollIntoView({block:"nearest"})},[m]),d.jsx(oe.div,{"aria-hidden":!0,...s,ref:a,style:{flexShrink:0,...s.style},onPointerDown:ae(s.onPointerDown,()=>{h.current===null&&(h.current=window.setInterval(i,50))}),onPointerMove:ae(s.onPointerMove,()=>{var g;(g=u.onItemLeave)==null||g.call(u),h.current===null&&(h.current=window.setInterval(i,50))}),onPointerLeave:ae(s.onPointerLeave,()=>{p()})})}),WO="SelectSeparator",IO=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n;return d.jsx(oe.div,{"aria-hidden":!0,...i,ref:a})});IO.displayName=WO;var im="SelectArrow",e3=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n,s=lp(r),u=Sl(im,r),h=jl(im,r);return u.open&&h.position==="popper"?d.jsx(Ym,{...s,...i,ref:a}):null});e3.displayName=im;var t3="SelectBubbleInput",n3=v.forwardRef(({__scopeSelect:n,value:a,...r},i)=>{const s=v.useRef(null),u=we(i,s),h=ts(a);return v.useEffect(()=>{const m=s.current;if(!m)return;const p=window.HTMLSelectElement.prototype,g=Object.getOwnPropertyDescriptor(p,"value").set;if(h!==a&&g){const y=new Event("change",{bubbles:!0});g.call(m,a),m.dispatchEvent(y)}},[h,a]),d.jsx(oe.select,{...r,style:{...yS,...r.style},ref:u,defaultValue:a})});n3.displayName=t3;function AS(n){return n===""||n===void 0}function DS(n){const a=We(n),r=v.useRef(""),i=v.useRef(0),s=v.useCallback(h=>{const m=r.current+h;a(m),(function p(g){r.current=g,window.clearTimeout(i.current),g!==""&&(i.current=window.setTimeout(()=>p(""),1e3))})(m)},[a]),u=v.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,s,u]}function kS(n,a,r){const i=a.length>1&&Array.from(a).every(m=>m===a[0])?a[0]:a,s=r?n.indexOf(r):-1;let u=a3(n,Math.max(s,0));i.length===1&&(u=u.filter(m=>m!==r));const h=u.find(m=>m.textValue.toLowerCase().startsWith(i.toLowerCase()));return h!==r?h:void 0}function a3(n,a){return n.map((r,i)=>n[(a+i)%n.length])}var[Ac,Tz]=ht("Tooltip",[Ti]),ip=Ti(),l3="TooltipProvider",Bb="tooltip.open",[Mz,OS]=Ac(l3),zS="Tooltip",[Az,ns]=Ac(zS),om="TooltipTrigger",r3=v.forwardRef((n,a)=>{const{__scopeTooltip:r,...i}=n,s=ns(om,r),u=OS(om,r),h=ip(r),m=v.useRef(null),p=we(a,m,s.onTriggerChange),g=v.useRef(!1),y=v.useRef(!1),b=v.useCallback(()=>g.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",b),[b]),d.jsx(Bm,{asChild:!0,...h,children:d.jsx(oe.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...i,ref:p,onPointerMove:ae(n.onPointerMove,w=>{w.pointerType!=="touch"&&!y.current&&!u.isPointerInTransitRef.current&&(s.onTriggerEnter(),y.current=!0)}),onPointerLeave:ae(n.onPointerLeave,()=>{s.onTriggerLeave(),y.current=!1}),onPointerDown:ae(n.onPointerDown,()=>{s.open&&s.onClose(),g.current=!0,document.addEventListener("pointerup",b,{once:!0})}),onFocus:ae(n.onFocus,()=>{g.current||s.onOpen()}),onBlur:ae(n.onBlur,s.onClose),onClick:ae(n.onClick,s.onClose)})})});r3.displayName=om;var op="TooltipPortal",[i3,o3]=Ac(op,{forceMount:void 0}),LS=n=>{const{__scopeTooltip:a,forceMount:r,children:i,container:s}=n,u=ns(op,a);return d.jsx(i3,{scope:a,forceMount:r,children:d.jsx(st,{present:r||u.open,children:d.jsx(Gm,{asChild:!0,container:s,children:i})})})};LS.displayName=op;var gi="TooltipContent",US=v.forwardRef((n,a)=>{const r=o3(gi,n.__scopeTooltip),{forceMount:i=r.forceMount,side:s="top",...u}=n,h=ns(gi,n.__scopeTooltip);return d.jsx(st,{present:i||h.open,children:h.disableHoverableContent?d.jsx(HS,{side:s,...u,ref:a}):d.jsx(s3,{side:s,...u,ref:a})})}),s3=v.forwardRef((n,a)=>{const r=ns(gi,n.__scopeTooltip),i=OS(gi,n.__scopeTooltip),s=v.useRef(null),u=we(a,s),[h,m]=v.useState(null),{trigger:p,onClose:g}=r,y=s.current,{onPointerInTransitChange:b}=i,w=v.useCallback(()=>{m(null),b(!1)},[b]),j=v.useCallback((E,S)=>{const C=E.currentTarget,R={x:E.clientX,y:E.clientY},_=h3(R,C.getBoundingClientRect()),T=m3(R,_),k=p3(S.getBoundingClientRect()),L=g3([...T,...k]);m(L),b(!0)},[b]);return v.useEffect(()=>()=>w(),[w]),v.useEffect(()=>{if(p&&y){const E=C=>j(C,y),S=C=>j(C,p);return p.addEventListener("pointerleave",E),y.addEventListener("pointerleave",S),()=>{p.removeEventListener("pointerleave",E),y.removeEventListener("pointerleave",S)}}},[p,y,j,w]),v.useEffect(()=>{if(h){const E=S=>{const C=S.target,R={x:S.clientX,y:S.clientY},_=(p==null?void 0:p.contains(C))||(y==null?void 0:y.contains(C)),T=!v3(R,h);_?w():T&&(w(),g())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[p,y,h,g,w]),d.jsx(HS,{...n,ref:u})}),[u3,c3]=Ac(zS,{isInside:!1}),d3=rw("TooltipContent"),HS=v.forwardRef((n,a)=>{const{__scopeTooltip:r,children:i,"aria-label":s,onEscapeKeyDown:u,onPointerDownOutside:h,...m}=n,p=ns(gi,r),g=ip(r),{onClose:y}=p;return v.useEffect(()=>(document.addEventListener(Bb,y),()=>document.removeEventListener(Bb,y)),[y]),v.useEffect(()=>{if(p.trigger){const b=w=>{const j=w.target;j!=null&&j.contains(p.trigger)&&y()};return window.addEventListener("scroll",b,{capture:!0}),()=>window.removeEventListener("scroll",b,{capture:!0})}},[p.trigger,y]),d.jsx(Ci,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:h,onFocusOutside:b=>b.preventDefault(),onDismiss:y,children:d.jsxs(Qm,{"data-state":p.stateAttribute,...g,...m,ref:a,style:{...m.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[d.jsx(d3,{children:i}),d.jsx(u3,{scope:r,isInside:!0,children:d.jsx(xS,{id:p.contentId,role:"tooltip",children:s||i})})]})})});US.displayName=gi;var qS="TooltipArrow",f3=v.forwardRef((n,a)=>{const{__scopeTooltip:r,...i}=n,s=ip(r);return c3(qS,r).isInside?null:d.jsx(Ym,{...s,...i,ref:a})});f3.displayName=qS;function h3(n,a){const r=Math.abs(a.top-n.y),i=Math.abs(a.bottom-n.y),s=Math.abs(a.right-n.x),u=Math.abs(a.left-n.x);switch(Math.min(r,i,s,u)){case u:return"left";case s:return"right";case r:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function m3(n,a,r=5){const i=[];switch(a){case"top":i.push({x:n.x-r,y:n.y+r},{x:n.x+r,y:n.y+r});break;case"bottom":i.push({x:n.x-r,y:n.y-r},{x:n.x+r,y:n.y-r});break;case"left":i.push({x:n.x+r,y:n.y-r},{x:n.x+r,y:n.y+r});break;case"right":i.push({x:n.x-r,y:n.y-r},{x:n.x-r,y:n.y+r});break}return i}function p3(n){const{top:a,right:r,bottom:i,left:s}=n;return[{x:s,y:a},{x:r,y:a},{x:r,y:i},{x:s,y:i}]}function v3(n,a){const{x:r,y:i}=n;let s=!1;for(let u=0,h=a.length-1;u<a.length;h=u++){const m=a[u],p=a[h],g=m.x,y=m.y,b=p.x,w=p.y;y>i!=w>i&&r<(b-g)*(i-y)/(w-y)+g&&(s=!s)}return s}function g3(n){const a=n.slice();return a.sort((r,i)=>r.x<i.x?-1:r.x>i.x?1:r.y<i.y?-1:r.y>i.y?1:0),y3(a)}function y3(n){if(n.length<=1)return n.slice();const a=[];for(let i=0;i<n.length;i++){const s=n[i];for(;a.length>=2;){const u=a[a.length-1],h=a[a.length-2];if((u.x-h.x)*(s.y-h.y)>=(u.y-h.y)*(s.x-h.x))a.pop();else break}a.push(s)}a.pop();const r=[];for(let i=n.length-1;i>=0;i--){const s=n[i];for(;r.length>=2;){const u=r[r.length-1],h=r[r.length-2];if((u.x-h.x)*(s.y-h.y)>=(u.y-h.y)*(s.x-h.x))r.pop();else break}r.push(s)}return r.pop(),a.length===1&&r.length===1&&a[0].x===r[0].x&&a[0].y===r[0].y?a:a.concat(r)}var b3=LS,BS=US;const x3=v.forwardRef(({className:n,sideOffset:a=4,...r},i)=>d.jsx(b3,{children:d.jsx(BS,{ref:i,sideOffset:a,className:se("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",n),...r})}));x3.displayName=BS.displayName;var Dc="Checkbox",[w3,Dz]=ht(Dc),[S3,sp]=w3(Dc);function j3(n){const{__scopeCheckbox:a,checked:r,children:i,defaultChecked:s,disabled:u,form:h,name:m,onCheckedChange:p,required:g,value:y="on",internal_do_not_use_render:b}=n,[w,j]=Jn({prop:r,defaultProp:s??!1,onChange:p,caller:Dc}),[E,S]=v.useState(null),[C,R]=v.useState(null),_=v.useRef(!1),T=E?!!h||!!E.closest("form"):!0,k={checked:w,disabled:u,setChecked:j,control:E,setControl:S,name:m,form:h,value:y,hasConsumerStoppedPropagationRef:_,required:g,defaultChecked:gl(s)?!1:s,isFormControl:T,bubbleInput:C,setBubbleInput:R};return d.jsx(S3,{scope:a,...k,children:C3(b)?b(k):i})}var QS="CheckboxTrigger",YS=v.forwardRef(({__scopeCheckbox:n,onKeyDown:a,onClick:r,...i},s)=>{const{control:u,value:h,disabled:m,checked:p,required:g,setControl:y,setChecked:b,hasConsumerStoppedPropagationRef:w,isFormControl:j,bubbleInput:E}=sp(QS,n),S=we(s,y),C=v.useRef(p);return v.useEffect(()=>{const R=u==null?void 0:u.form;if(R){const _=()=>b(C.current);return R.addEventListener("reset",_),()=>R.removeEventListener("reset",_)}},[u,b]),d.jsx(oe.button,{type:"button",role:"checkbox","aria-checked":gl(p)?"mixed":p,"aria-required":g,"data-state":XS(p),"data-disabled":m?"":void 0,disabled:m,value:h,...i,ref:S,onKeyDown:ae(a,R=>{R.key==="Enter"&&R.preventDefault()}),onClick:ae(r,R=>{b(_=>gl(_)?!0:!_),E&&j&&(w.current=R.isPropagationStopped(),w.current||R.stopPropagation())})})});YS.displayName=QS;var E3=v.forwardRef((n,a)=>{const{__scopeCheckbox:r,name:i,checked:s,defaultChecked:u,required:h,disabled:m,value:p,onCheckedChange:g,form:y,...b}=n;return d.jsx(j3,{__scopeCheckbox:r,checked:s,defaultChecked:u,disabled:m,required:h,onCheckedChange:g,name:i,form:y,value:p,internal_do_not_use_render:({isFormControl:w})=>d.jsxs(d.Fragment,{children:[d.jsx(YS,{...b,ref:a,__scopeCheckbox:r}),w&&d.jsx(KS,{__scopeCheckbox:r})]})})});E3.displayName=Dc;var GS="CheckboxIndicator",N3=v.forwardRef((n,a)=>{const{__scopeCheckbox:r,forceMount:i,...s}=n,u=sp(GS,r);return d.jsx(st,{present:i||gl(u.checked)||u.checked===!0,children:d.jsx(oe.span,{"data-state":XS(u.checked),"data-disabled":u.disabled?"":void 0,...s,ref:a,style:{pointerEvents:"none",...n.style}})})});N3.displayName=GS;var VS="CheckboxBubbleInput",KS=v.forwardRef(({__scopeCheckbox:n,...a},r)=>{const{control:i,hasConsumerStoppedPropagationRef:s,checked:u,defaultChecked:h,required:m,disabled:p,name:g,value:y,form:b,bubbleInput:w,setBubbleInput:j}=sp(VS,n),E=we(r,j),S=ts(u),C=Ec(i);v.useEffect(()=>{const _=w;if(!_)return;const T=window.HTMLInputElement.prototype,k=Object.getOwnPropertyDescriptor(T,"checked").set,L=!s.current;if(S!==u&&k){const X=new Event("click",{bubbles:L});_.indeterminate=gl(u),k.call(_,gl(u)?!1:u),_.dispatchEvent(X)}},[w,S,u,s]);const R=v.useRef(gl(u)?!1:u);return d.jsx(oe.input,{type:"checkbox","aria-hidden":!0,defaultChecked:h??R.current,required:m,disabled:p,name:g,value:y,form:b,...a,tabIndex:-1,ref:E,style:{...a.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});KS.displayName=VS;function C3(n){return typeof n=="function"}function gl(n){return n==="indeterminate"}function XS(n){return gl(n)?"indeterminate":n?"checked":"unchecked"}var up="Radio",[R3,$S]=ht(up),[_3,T3]=R3(up),ZS=v.forwardRef((n,a)=>{const{__scopeRadio:r,name:i,checked:s=!1,required:u,disabled:h,value:m="on",onCheck:p,form:g,...y}=n,[b,w]=v.useState(null),j=we(a,C=>w(C)),E=v.useRef(!1),S=b?g||!!b.closest("form"):!0;return d.jsxs(_3,{scope:r,checked:s,disabled:h,children:[d.jsx(oe.button,{type:"button",role:"radio","aria-checked":s,"data-state":WS(s),"data-disabled":h?"":void 0,disabled:h,value:m,...y,ref:j,onClick:ae(n.onClick,C=>{s||p==null||p(),S&&(E.current=C.isPropagationStopped(),E.current||C.stopPropagation())})}),S&&d.jsx(JS,{control:b,bubbles:!E.current,name:i,value:m,checked:s,required:u,disabled:h,form:g,style:{transform:"translateX(-100%)"}})]})});ZS.displayName=up;var FS="RadioIndicator",PS=v.forwardRef((n,a)=>{const{__scopeRadio:r,forceMount:i,...s}=n,u=T3(FS,r);return d.jsx(st,{present:i||u.checked,children:d.jsx(oe.span,{"data-state":WS(u.checked),"data-disabled":u.disabled?"":void 0,...s,ref:a})})});PS.displayName=FS;var M3="RadioBubbleInput",JS=v.forwardRef(({__scopeRadio:n,control:a,checked:r,bubbles:i=!0,...s},u)=>{const h=v.useRef(null),m=we(h,u),p=ts(r),g=Ec(a);return v.useEffect(()=>{const y=h.current;if(!y)return;const b=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(b,"checked").set;if(p!==r&&w){const j=new Event("click",{bubbles:i});w.call(y,r),y.dispatchEvent(j)}},[p,r,i]),d.jsx(oe.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:m,style:{...s.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});JS.displayName=M3;function WS(n){return n?"checked":"unchecked"}var A3=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],kc="RadioGroup",[D3,kz]=ht(kc,[Mi,$S]),IS=Mi(),ej=$S(),[k3,O3]=D3(kc),tj=v.forwardRef((n,a)=>{const{__scopeRadioGroup:r,name:i,defaultValue:s,value:u,required:h=!1,disabled:m=!1,orientation:p,dir:g,loop:y=!0,onValueChange:b,...w}=n,j=IS(r),E=Ei(g),[S,C]=Jn({prop:u,defaultProp:s??null,onChange:b,caller:kc});return d.jsx(k3,{scope:r,name:i,required:h,disabled:m,value:S,onValueChange:C,children:d.jsx(Vm,{asChild:!0,...j,orientation:p,dir:E,loop:y,children:d.jsx(oe.div,{role:"radiogroup","aria-required":h,"aria-orientation":p,"data-disabled":m?"":void 0,dir:E,...w,ref:a})})})});tj.displayName=kc;var nj="RadioGroupItem",aj=v.forwardRef((n,a)=>{const{__scopeRadioGroup:r,disabled:i,...s}=n,u=O3(nj,r),h=u.disabled||i,m=IS(r),p=ej(r),g=v.useRef(null),y=we(a,g),b=u.value===s.value,w=v.useRef(!1);return v.useEffect(()=>{const j=S=>{A3.includes(S.key)&&(w.current=!0)},E=()=>w.current=!1;return document.addEventListener("keydown",j),document.addEventListener("keyup",E),()=>{document.removeEventListener("keydown",j),document.removeEventListener("keyup",E)}},[]),d.jsx(Km,{asChild:!0,...m,focusable:!h,active:b,children:d.jsx(ZS,{disabled:h,required:u.required,checked:b,...p,...s,name:u.name,ref:y,onCheck:()=>u.onValueChange(s.value),onKeyDown:ae(j=>{j.key==="Enter"&&j.preventDefault()}),onFocus:ae(s.onFocus,()=>{var j;w.current&&((j=g.current)==null||j.click())})})})});aj.displayName=nj;var z3="RadioGroupIndicator",lj=v.forwardRef((n,a)=>{const{__scopeRadioGroup:r,...i}=n,s=ej(r);return d.jsx(PS,{...s,...i,ref:a})});lj.displayName=z3;var rj=tj,ij=aj,L3=lj;const U3=v.forwardRef(({className:n,...a},r)=>d.jsx(rj,{className:se("grid gap-2",n),...a,ref:r}));U3.displayName=rj.displayName;const H3=v.forwardRef(({className:n,...a},r)=>d.jsx(ij,{ref:r,className:se("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",n),...a,children:d.jsx(L3,{className:"flex items-center justify-center",children:d.jsx("div",{className:"h-2 w-2 rounded-full bg-current"})})}));H3.displayName=ij.displayName;var Oc="Switch",[q3,Oz]=ht(Oc),[B3,Q3]=q3(Oc),oj=v.forwardRef((n,a)=>{const{__scopeSwitch:r,name:i,checked:s,defaultChecked:u,required:h,disabled:m,value:p="on",onCheckedChange:g,form:y,...b}=n,[w,j]=v.useState(null),E=we(a,T=>j(T)),S=v.useRef(!1),C=w?y||!!w.closest("form"):!0,[R,_]=Jn({prop:s,defaultProp:u??!1,onChange:g,caller:Oc});return d.jsxs(B3,{scope:r,checked:R,disabled:m,children:[d.jsx(oe.button,{type:"button",role:"switch","aria-checked":R,"aria-required":h,"data-state":dj(R),"data-disabled":m?"":void 0,disabled:m,value:p,...b,ref:E,onClick:ae(n.onClick,T=>{_(k=>!k),C&&(S.current=T.isPropagationStopped(),S.current||T.stopPropagation())})}),C&&d.jsx(cj,{control:w,bubbles:!S.current,name:i,value:p,checked:R,required:h,disabled:m,form:y,style:{transform:"translateX(-100%)"}})]})});oj.displayName=Oc;var sj="SwitchThumb",uj=v.forwardRef((n,a)=>{const{__scopeSwitch:r,...i}=n,s=Q3(sj,r);return d.jsx(oe.span,{"data-state":dj(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:a})});uj.displayName=sj;var Y3="SwitchBubbleInput",cj=v.forwardRef(({__scopeSwitch:n,control:a,checked:r,bubbles:i=!0,...s},u)=>{const h=v.useRef(null),m=we(h,u),p=ts(r),g=Ec(a);return v.useEffect(()=>{const y=h.current;if(!y)return;const b=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(b,"checked").set;if(p!==r&&w){const j=new Event("click",{bubbles:i});w.call(y,r),y.dispatchEvent(j)}},[p,r,i]),d.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:m,style:{...s.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});cj.displayName=Y3;function dj(n){return n?"checked":"unchecked"}var G3=oj,V3=uj;function Nh({className:n,...a}){return d.jsx(G3,{"data-slot":"switch",className:se("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",n),...a,children:d.jsx(V3,{"data-slot":"switch-thumb",className:se("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")})})}var zc="Tabs",[K3,zz]=ht(zc,[Mi]),fj=Mi(),[X3,cp]=K3(zc),hj=v.forwardRef((n,a)=>{const{__scopeTabs:r,value:i,onValueChange:s,defaultValue:u,orientation:h="horizontal",dir:m,activationMode:p="automatic",...g}=n,y=Ei(m),[b,w]=Jn({prop:i,onChange:s,defaultProp:u??"",caller:zc});return d.jsx(X3,{scope:r,baseId:wl(),value:b,onValueChange:w,orientation:h,dir:y,activationMode:p,children:d.jsx(oe.div,{dir:y,"data-orientation":h,...g,ref:a})})});hj.displayName=zc;var mj="TabsList",pj=v.forwardRef((n,a)=>{const{__scopeTabs:r,loop:i=!0,...s}=n,u=cp(mj,r),h=fj(r);return d.jsx(Vm,{asChild:!0,...h,orientation:u.orientation,dir:u.dir,loop:i,children:d.jsx(oe.div,{role:"tablist","aria-orientation":u.orientation,...s,ref:a})})});pj.displayName=mj;var vj="TabsTrigger",gj=v.forwardRef((n,a)=>{const{__scopeTabs:r,value:i,disabled:s=!1,...u}=n,h=cp(vj,r),m=fj(r),p=xj(h.baseId,i),g=wj(h.baseId,i),y=i===h.value;return d.jsx(Km,{asChild:!0,...m,focusable:!s,active:y,children:d.jsx(oe.button,{type:"button",role:"tab","aria-selected":y,"aria-controls":g,"data-state":y?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:p,...u,ref:a,onMouseDown:ae(n.onMouseDown,b=>{!s&&b.button===0&&b.ctrlKey===!1?h.onValueChange(i):b.preventDefault()}),onKeyDown:ae(n.onKeyDown,b=>{[" ","Enter"].includes(b.key)&&h.onValueChange(i)}),onFocus:ae(n.onFocus,()=>{const b=h.activationMode!=="manual";!y&&!s&&b&&h.onValueChange(i)})})})});gj.displayName=vj;var yj="TabsContent",bj=v.forwardRef((n,a)=>{const{__scopeTabs:r,value:i,forceMount:s,children:u,...h}=n,m=cp(yj,r),p=xj(m.baseId,i),g=wj(m.baseId,i),y=i===m.value,b=v.useRef(y);return v.useEffect(()=>{const w=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(w)},[]),d.jsx(st,{present:s||y,children:({present:w})=>d.jsx(oe.div,{"data-state":y?"active":"inactive","data-orientation":m.orientation,role:"tabpanel","aria-labelledby":p,hidden:!w,id:g,tabIndex:0,...h,ref:a,style:{...n.style,animationDuration:b.current?"0s":void 0},children:w&&u})})});bj.displayName=yj;function xj(n,a){return`${n}-trigger-${a}`}function wj(n,a){return`${n}-content-${a}`}var $3=hj,Z3=pj,F3=gj,P3=bj;function Sj({className:n,...a}){return d.jsx($3,{"data-slot":"tabs",className:se("flex flex-col gap-2",n),...a})}function jj({className:n,...a}){return d.jsx(Z3,{"data-slot":"tabs-list",className:se("flex border-b border-border",n),...a})}function Lo({className:n,children:a,...r}){return d.jsx(F3,{asChild:!0,...r,children:d.jsx(sw,{className:n,children:a})})}function Uo({className:n,...a}){return d.jsx(P3,{"data-slot":"tabs-content",className:se("flex-1 outline-none",n),...a})}function J3(n){const a=W3(n),r=v.forwardRef((i,s)=>{const{children:u,...h}=i,m=v.Children.toArray(u),p=m.find(e4);if(p){const g=p.props.children,y=m.map(b=>b===p?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:b);return d.jsx(a,{...h,ref:s,children:v.isValidElement(g)?v.cloneElement(g,void 0,y):null})}return d.jsx(a,{...h,ref:s,children:u})});return r.displayName=`${n}.Slot`,r}function W3(n){const a=v.forwardRef((r,i)=>{const{children:s,...u}=r,h=v.isValidElement(s)?n4(s):void 0,m=we(h,i);if(v.isValidElement(s)){const p=t4(u,s.props);return s.type!==v.Fragment&&(p.ref=m),v.cloneElement(s,p)}return v.Children.count(s)>1?v.Children.only(null):null});return a.displayName=`${n}.SlotClone`,a}var I3=Symbol("radix.slottable");function e4(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===I3}function t4(n,a){const r={...a};for(const i in a){const s=n[i],u=a[i];/^on[A-Z]/.test(i)?s&&u?r[i]=(...h)=>{const m=u(...h);return s(...h),m}:s&&(r[i]=s):i==="style"?r[i]={...s,...u}:i==="className"&&(r[i]=[s,u].filter(Boolean).join(" "))}return{...n,...r}}function n4(n){var a,r;let i=(a=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:a.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(r=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:r.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var a4=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],dp=a4.reduce((n,a)=>{const r=J3(`Primitive.${a}`),i=v.forwardRef((s,u)=>{const{asChild:h,...m}=s,p=h?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(p,{...m,ref:u})});return i.displayName=`Primitive.${a}`,{...n,[a]:i}},{}),fp="Progress",hp=100,[l4,Lz]=ht(fp),[r4,i4]=l4(fp),o4=v.forwardRef((n,a)=>{const{__scopeProgress:r,value:i=null,max:s,getValueLabel:u=u4,...h}=n;(s||s===0)&&!Qb(s)&&console.error(c4(`${s}`,"Progress"));const m=Qb(s)?s:hp;i!==null&&!Yb(i,m)&&console.error(d4(`${i}`,"Progress"));const p=Yb(i,m)?i:null,g=nc(p)?u(p,m):void 0;return d.jsx(r4,{scope:r,value:p,max:m,children:d.jsx(dp.div,{"aria-valuemax":m,"aria-valuemin":0,"aria-valuenow":nc(p)?p:void 0,"aria-valuetext":g,role:"progressbar","data-state":Nj(p,m),"data-value":p??void 0,"data-max":m,...h,ref:a})})});o4.displayName=fp;var Ej="ProgressIndicator",s4=v.forwardRef((n,a)=>{const{__scopeProgress:r,...i}=n,s=i4(Ej,r);return d.jsx(dp.div,{"data-state":Nj(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...i,ref:a})});s4.displayName=Ej;function u4(n,a){return`${Math.round(n/a*100)}%`}function Nj(n,a){return n==null?"indeterminate":n===a?"complete":"loading"}function nc(n){return typeof n=="number"}function Qb(n){return nc(n)&&!isNaN(n)&&n>0}function Yb(n,a){return nc(n)&&!isNaN(n)&&n<=a&&n>=0}function c4(n,a){return`Invalid prop \`max\` of value \`${n}\` supplied to \`${a}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${hp}\`.`}function d4(n,a){return`Invalid prop \`value\` of value \`${n}\` supplied to \`${a}\`. The \`value\` prop must be:
|
|
307
|
+
- a positive number
|
|
308
|
+
- less than the value passed to \`max\` (or ${hp} if no \`max\` prop is set)
|
|
309
|
+
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
310
|
+
|
|
311
|
+
Defaulting to \`null\`.`}var f4="Separator",Gb="horizontal",h4=["horizontal","vertical"],m4=v.forwardRef((n,a)=>{const{decorative:r,orientation:i=Gb,...s}=n,u=p4(i)?i:Gb,h=r?{role:"none"}:{"aria-orientation":u==="vertical"?u:void 0,role:"separator"};return d.jsx(dp.div,{"data-orientation":u,...h,...s,ref:a})});m4.displayName=f4;function p4(n){return h4.includes(n)}var v4="Label",Cj=v.forwardRef((n,a)=>d.jsx(oe.label,{...n,ref:a,onMouseDown:r=>{var i;r.target.closest("button, input, select, textarea")||((i=n.onMouseDown)==null||i.call(n,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));Cj.displayName=v4;var Rj=Cj;const g4=ow("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Oo=v.forwardRef(({className:n,...a},r)=>d.jsx(Rj,{ref:r,className:se(g4(),n),...a}));Oo.displayName=Rj.displayName;var Lc="Collapsible",[y4,_j]=ht(Lc),[b4,mp]=y4(Lc),Tj=v.forwardRef((n,a)=>{const{__scopeCollapsible:r,open:i,defaultOpen:s,disabled:u,onOpenChange:h,...m}=n,[p,g]=Jn({prop:i,defaultProp:s??!1,onChange:h,caller:Lc});return d.jsx(b4,{scope:r,disabled:u,contentId:wl(),open:p,onOpenToggle:v.useCallback(()=>g(y=>!y),[g]),children:d.jsx(oe.div,{"data-state":yp(p),"data-disabled":u?"":void 0,...m,ref:a})})});Tj.displayName=Lc;var Mj="CollapsibleTrigger",pp=v.forwardRef((n,a)=>{const{__scopeCollapsible:r,...i}=n,s=mp(Mj,r);return d.jsx(oe.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":yp(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...i,ref:a,onClick:ae(n.onClick,s.onOpenToggle)})});pp.displayName=Mj;var vp="CollapsibleContent",gp=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=mp(vp,n.__scopeCollapsible);return d.jsx(st,{present:r||s.open,children:({present:u})=>d.jsx(x4,{...i,ref:a,present:u})})});gp.displayName=vp;var x4=v.forwardRef((n,a)=>{const{__scopeCollapsible:r,present:i,children:s,...u}=n,h=mp(vp,r),[m,p]=v.useState(i),g=v.useRef(null),y=we(a,g),b=v.useRef(0),w=b.current,j=v.useRef(0),E=j.current,S=h.open||m,C=v.useRef(S),R=v.useRef(void 0);return v.useEffect(()=>{const _=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(_)},[]),et(()=>{const _=g.current;if(_){R.current=R.current||{transitionDuration:_.style.transitionDuration,animationName:_.style.animationName},_.style.transitionDuration="0s",_.style.animationName="none";const T=_.getBoundingClientRect();b.current=T.height,j.current=T.width,C.current||(_.style.transitionDuration=R.current.transitionDuration,_.style.animationName=R.current.animationName),p(i)}},[h.open,i]),d.jsx(oe.div,{"data-state":yp(h.open),"data-disabled":h.disabled?"":void 0,id:h.contentId,hidden:!S,...u,ref:y,style:{"--radix-collapsible-content-height":w?`${w}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...n.style},children:S&&s})});function yp(n){return n?"open":"closed"}var Aj=Tj,w4=pp,S4=gp,Hn="Accordion",j4=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[bp,E4,N4]=Ni(Hn),[Uc,Uz]=ht(Hn,[N4,_j]),xp=_j(),C4=lt.forwardRef((n,a)=>{const{type:r,...i}=n,s=i,u=i;return d.jsx(bp.Provider,{scope:n.__scopeAccordion,children:r==="multiple"?d.jsx(M4,{...u,ref:a}):d.jsx(T4,{...s,ref:a})})});C4.displayName=Hn;var[Dj,R4]=Uc(Hn),[kj,_4]=Uc(Hn,{collapsible:!1}),T4=lt.forwardRef((n,a)=>{const{value:r,defaultValue:i,onValueChange:s=()=>{},collapsible:u=!1,...h}=n,[m,p]=Jn({prop:r,defaultProp:i??"",onChange:s,caller:Hn});return d.jsx(Dj,{scope:n.__scopeAccordion,value:lt.useMemo(()=>m?[m]:[],[m]),onItemOpen:p,onItemClose:lt.useCallback(()=>u&&p(""),[u,p]),children:d.jsx(kj,{scope:n.__scopeAccordion,collapsible:u,children:d.jsx(Oj,{...h,ref:a})})})}),M4=lt.forwardRef((n,a)=>{const{value:r,defaultValue:i,onValueChange:s=()=>{},...u}=n,[h,m]=Jn({prop:r,defaultProp:i??[],onChange:s,caller:Hn}),p=lt.useCallback(y=>m((b=[])=>[...b,y]),[m]),g=lt.useCallback(y=>m((b=[])=>b.filter(w=>w!==y)),[m]);return d.jsx(Dj,{scope:n.__scopeAccordion,value:h,onItemOpen:p,onItemClose:g,children:d.jsx(kj,{scope:n.__scopeAccordion,collapsible:!0,children:d.jsx(Oj,{...u,ref:a})})})}),[A4,Hc]=Uc(Hn),Oj=lt.forwardRef((n,a)=>{const{__scopeAccordion:r,disabled:i,dir:s,orientation:u="vertical",...h}=n,m=lt.useRef(null),p=we(m,a),g=E4(r),y=Ei(s)==="ltr",b=ae(n.onKeyDown,w=>{var j;if(!j4.includes(w.key))return;const E=w.target,S=g().filter(H=>{var G;return!((G=H.ref.current)!=null&&G.disabled)}),C=S.findIndex(H=>H.ref.current===E),R=S.length;if(C===-1)return;w.preventDefault();let _=C;const T=0,k=R-1,L=()=>{_=C+1,_>k&&(_=T)},X=()=>{_=C-1,_<T&&(_=k)};switch(w.key){case"Home":_=T;break;case"End":_=k;break;case"ArrowRight":u==="horizontal"&&(y?L():X());break;case"ArrowDown":u==="vertical"&&L();break;case"ArrowLeft":u==="horizontal"&&(y?X():L());break;case"ArrowUp":u==="vertical"&&X();break}const q=_%R;(j=S[q].ref.current)==null||j.focus()});return d.jsx(A4,{scope:r,disabled:i,direction:s,orientation:u,children:d.jsx(bp.Slot,{scope:r,children:d.jsx(oe.div,{...h,"data-orientation":u,ref:p,onKeyDown:i?void 0:b})})})}),ac="AccordionItem",[D4,wp]=Uc(ac),k4=lt.forwardRef((n,a)=>{const{__scopeAccordion:r,value:i,...s}=n,u=Hc(ac,r),h=R4(ac,r),m=xp(r),p=wl(),g=i&&h.value.includes(i)||!1,y=u.disabled||n.disabled;return d.jsx(D4,{scope:r,open:g,disabled:y,triggerId:p,children:d.jsx(Aj,{"data-orientation":u.orientation,"data-state":Uj(g),...m,...s,ref:a,disabled:y,open:g,onOpenChange:b=>{b?h.onItemOpen(i):h.onItemClose(i)}})})});k4.displayName=ac;var zj="AccordionHeader",O4=lt.forwardRef((n,a)=>{const{__scopeAccordion:r,...i}=n,s=Hc(Hn,r),u=wp(zj,r);return d.jsx(oe.h3,{"data-orientation":s.orientation,"data-state":Uj(u.open),"data-disabled":u.disabled?"":void 0,...i,ref:a})});O4.displayName=zj;var sm="AccordionTrigger",z4=lt.forwardRef((n,a)=>{const{__scopeAccordion:r,...i}=n,s=Hc(Hn,r),u=wp(sm,r),h=_4(sm,r),m=xp(r);return d.jsx(bp.ItemSlot,{scope:r,children:d.jsx(w4,{"aria-disabled":u.open&&!h.collapsible||void 0,"data-orientation":s.orientation,id:u.triggerId,...m,...i,ref:a})})});z4.displayName=sm;var Lj="AccordionContent",L4=lt.forwardRef((n,a)=>{const{__scopeAccordion:r,...i}=n,s=Hc(Hn,r),u=wp(Lj,r),h=xp(r);return d.jsx(S4,{role:"region","aria-labelledby":u.triggerId,"data-orientation":s.orientation,...h,...i,ref:a,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...n.style}})});L4.displayName=Lj;function Uj(n){return n?"open":"closed"}const Hj=Aj,qj=pp,Bj=gp;var ur="NavigationMenu",[Sp,Qj,U4]=Ni(ur),[um,H4,q4]=Ni(ur),[jp,Hz]=ht(ur,[U4,q4]),[B4,En]=jp(ur),[Q4,Y4]=jp(ur),G4=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,onValueChange:s,defaultValue:u,delayDuration:h=200,skipDelayDuration:m=300,orientation:p="horizontal",dir:g,...y}=n,[b,w]=v.useState(null),j=we(a,G=>w(G)),E=Ei(g),S=v.useRef(0),C=v.useRef(0),R=v.useRef(0),[_,T]=v.useState(!0),[k,L]=Jn({prop:i,onChange:G=>{const te=G!=="",ce=m>0;te?(window.clearTimeout(R.current),ce&&T(!1)):(window.clearTimeout(R.current),R.current=window.setTimeout(()=>T(!0),m)),s==null||s(G)},defaultProp:u??"",caller:ur}),X=v.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>L(""),150)},[L]),q=v.useCallback(G=>{window.clearTimeout(C.current),L(G)},[L]),H=v.useCallback(G=>{k===G?window.clearTimeout(C.current):S.current=window.setTimeout(()=>{window.clearTimeout(C.current),L(G)},h)},[k,L,h]);return v.useEffect(()=>()=>{window.clearTimeout(S.current),window.clearTimeout(C.current),window.clearTimeout(R.current)},[]),d.jsx(Yj,{scope:r,isRootMenu:!0,value:k,dir:E,orientation:p,rootNavigationMenu:b,onTriggerEnter:G=>{window.clearTimeout(S.current),_?H(G):q(G)},onTriggerLeave:()=>{window.clearTimeout(S.current),X()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:X,onItemSelect:G=>{L(te=>te===G?"":G)},onItemDismiss:()=>L(""),children:d.jsx(oe.nav,{"aria-label":"Main","data-orientation":p,dir:E,...y,ref:j})})});G4.displayName=ur;var cm="NavigationMenuSub",V4=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,onValueChange:s,defaultValue:u,orientation:h="horizontal",...m}=n,p=En(cm,r),[g,y]=Jn({prop:i,onChange:s,defaultProp:u??"",caller:cm});return d.jsx(Yj,{scope:r,isRootMenu:!1,value:g,dir:p.dir,orientation:h,rootNavigationMenu:p.rootNavigationMenu,onTriggerEnter:b=>y(b),onItemSelect:b=>y(b),onItemDismiss:()=>y(""),children:d.jsx(oe.div,{"data-orientation":h,...m,ref:a})})});V4.displayName=cm;var Yj=n=>{const{scope:a,isRootMenu:r,rootNavigationMenu:i,dir:s,orientation:u,children:h,value:m,onItemSelect:p,onItemDismiss:g,onTriggerEnter:y,onTriggerLeave:b,onContentEnter:w,onContentLeave:j}=n,[E,S]=v.useState(null),[C,R]=v.useState(new Map),[_,T]=v.useState(null);return d.jsx(B4,{scope:a,isRootMenu:r,rootNavigationMenu:i,value:m,previousValue:ts(m),baseId:wl(),dir:s,orientation:u,viewport:E,onViewportChange:S,indicatorTrack:_,onIndicatorTrackChange:T,onTriggerEnter:We(y),onTriggerLeave:We(b),onContentEnter:We(w),onContentLeave:We(j),onItemSelect:We(p),onItemDismiss:We(g),onViewportContentChange:v.useCallback((k,L)=>{R(X=>(X.set(k,L),new Map(X)))},[]),onViewportContentRemove:v.useCallback(k=>{R(L=>L.has(k)?(L.delete(k),new Map(L)):L)},[]),children:d.jsx(Sp.Provider,{scope:a,children:d.jsx(Q4,{scope:a,items:C,children:h})})})},Gj="NavigationMenuList",K4=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,s=En(Gj,r),u=d.jsx(oe.ul,{"data-orientation":s.orientation,...i,ref:a});return d.jsx(oe.div,{style:{position:"relative"},ref:s.onIndicatorTrackChange,children:d.jsx(Sp.Slot,{scope:r,children:s.isRootMenu?d.jsx($j,{asChild:!0,children:u}):u})})});K4.displayName=Gj;var Vj="NavigationMenuItem",[X4,Kj]=jp(Vj),$4=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,...s}=n,u=wl(),h=i||u||"LEGACY_REACT_AUTO_VALUE",m=v.useRef(null),p=v.useRef(null),g=v.useRef(null),y=v.useRef(()=>{}),b=v.useRef(!1),w=v.useCallback((E="start")=>{if(m.current){y.current();const S=fm(m.current);S.length&&Cp(E==="start"?S:S.reverse())}},[]),j=v.useCallback(()=>{if(m.current){const E=fm(m.current);E.length&&(y.current=r5(E))}},[]);return d.jsx(X4,{scope:r,value:h,triggerRef:p,contentRef:m,focusProxyRef:g,wasEscapeCloseRef:b,onEntryKeyDown:w,onFocusProxyEnter:w,onRootContentClose:j,onContentFocusOutside:j,children:d.jsx(oe.li,{...s,ref:a})})});$4.displayName=Vj;var dm="NavigationMenuTrigger",Z4=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,disabled:i,...s}=n,u=En(dm,n.__scopeNavigationMenu),h=Kj(dm,n.__scopeNavigationMenu),m=v.useRef(null),p=we(m,h.triggerRef,a),g=Fj(u.baseId,h.value),y=Pj(u.baseId,h.value),b=v.useRef(!1),w=v.useRef(!1),j=h.value===u.value;return d.jsxs(d.Fragment,{children:[d.jsx(Sp.ItemSlot,{scope:r,value:h.value,children:d.jsx(Zj,{asChild:!0,children:d.jsx(oe.button,{id:g,disabled:i,"data-disabled":i?"":void 0,"data-state":Rp(j),"aria-expanded":j,"aria-controls":y,...s,ref:p,onPointerEnter:ae(n.onPointerEnter,()=>{w.current=!1,h.wasEscapeCloseRef.current=!1}),onPointerMove:ae(n.onPointerMove,lc(()=>{i||w.current||h.wasEscapeCloseRef.current||b.current||(u.onTriggerEnter(h.value),b.current=!0)})),onPointerLeave:ae(n.onPointerLeave,lc(()=>{i||(u.onTriggerLeave(),b.current=!1)})),onClick:ae(n.onClick,()=>{u.onItemSelect(h.value),w.current=j}),onKeyDown:ae(n.onKeyDown,E=>{const S={horizontal:"ArrowDown",vertical:u.dir==="rtl"?"ArrowLeft":"ArrowRight"}[u.orientation];j&&E.key===S&&(h.onEntryKeyDown(),E.preventDefault())})})})}),j&&d.jsxs(d.Fragment,{children:[d.jsx(xS,{"aria-hidden":!0,tabIndex:0,ref:h.focusProxyRef,onFocus:E=>{const S=h.contentRef.current,C=E.relatedTarget,R=C===m.current,_=S==null?void 0:S.contains(C);(R||!_)&&h.onFocusProxyEnter(R?"start":"end")}}),u.viewport&&d.jsx("span",{"aria-owns":y})]})]})});Z4.displayName=dm;var F4="NavigationMenuLink",Vb="navigationMenu.linkSelect",P4=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,active:i,onSelect:s,...u}=n;return d.jsx(Zj,{asChild:!0,children:d.jsx(oe.a,{"data-active":i?"":void 0,"aria-current":i?"page":void 0,...u,ref:a,onClick:ae(n.onClick,h=>{const m=h.target,p=new CustomEvent(Vb,{bubbles:!0,cancelable:!0});if(m.addEventListener(Vb,g=>s==null?void 0:s(g),{once:!0}),Ku(m,p),!p.defaultPrevented&&!h.metaKey){const g=new CustomEvent(qu,{bubbles:!0,cancelable:!0});Ku(m,g)}},{checkForDefaultPrevented:!1})})})});P4.displayName=F4;var Ep="NavigationMenuIndicator",J4=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=En(Ep,n.__scopeNavigationMenu),u=!!s.value;return s.indicatorTrack?Ux.createPortal(d.jsx(st,{present:r||u,children:d.jsx(W4,{...i,ref:a})}),s.indicatorTrack):null});J4.displayName=Ep;var W4=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,s=En(Ep,r),u=Qj(r),[h,m]=v.useState(null),[p,g]=v.useState(null),y=s.orientation==="horizontal",b=!!s.value;v.useEffect(()=>{var j;const E=(j=u().find(S=>S.value===s.value))==null?void 0:j.ref.current;E&&m(E)},[u,s.value]);const w=()=>{h&&g({size:y?h.offsetWidth:h.offsetHeight,offset:y?h.offsetLeft:h.offsetTop})};return hm(h,w),hm(s.indicatorTrack,w),p?d.jsx(oe.div,{"aria-hidden":!0,"data-state":b?"visible":"hidden","data-orientation":s.orientation,...i,ref:a,style:{position:"absolute",...y?{left:0,width:p.size+"px",transform:`translateX(${p.offset}px)`}:{top:0,height:p.size+"px",transform:`translateY(${p.offset}px)`},...i.style}}):null}),yi="NavigationMenuContent",I4=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=En(yi,n.__scopeNavigationMenu),u=Kj(yi,n.__scopeNavigationMenu),h=we(u.contentRef,a),m=u.value===s.value,p={value:u.value,triggerRef:u.triggerRef,focusProxyRef:u.focusProxyRef,wasEscapeCloseRef:u.wasEscapeCloseRef,onContentFocusOutside:u.onContentFocusOutside,onRootContentClose:u.onRootContentClose,...i};return s.viewport?d.jsx(e5,{forceMount:r,...p,ref:h}):d.jsx(st,{present:r||m,children:d.jsx(Xj,{"data-state":Rp(m),...p,ref:h,onPointerEnter:ae(n.onPointerEnter,s.onContentEnter),onPointerLeave:ae(n.onPointerLeave,lc(s.onContentLeave)),style:{pointerEvents:!m&&s.isRootMenu?"none":void 0,...p.style}})})});I4.displayName=yi;var e5=v.forwardRef((n,a)=>{const r=En(yi,n.__scopeNavigationMenu),{onViewportContentChange:i,onViewportContentRemove:s}=r;return et(()=>{i(n.value,{ref:a,...n})},[n,a,i]),et(()=>()=>s(n.value),[n.value,s]),null}),qu="navigationMenu.rootContentDismiss",Xj=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,triggerRef:s,focusProxyRef:u,wasEscapeCloseRef:h,onRootContentClose:m,onContentFocusOutside:p,...g}=n,y=En(yi,r),b=v.useRef(null),w=we(b,a),j=Fj(y.baseId,i),E=Pj(y.baseId,i),S=Qj(r),C=v.useRef(null),{onItemDismiss:R}=y;v.useEffect(()=>{const T=b.current;if(y.isRootMenu&&T){const k=()=>{var L;R(),m(),T.contains(document.activeElement)&&((L=s.current)==null||L.focus())};return T.addEventListener(qu,k),()=>T.removeEventListener(qu,k)}},[y.isRootMenu,n.value,s,R,m]);const _=v.useMemo(()=>{const T=S().map(G=>G.value);y.dir==="rtl"&&T.reverse();const k=T.indexOf(y.value),L=T.indexOf(y.previousValue),X=i===y.value,q=L===T.indexOf(i);if(!X&&!q)return C.current;const H=(()=>{if(k!==L){if(X&&L!==-1)return k>L?"from-end":"from-start";if(q&&k!==-1)return k>L?"to-start":"to-end"}return null})();return C.current=H,H},[y.previousValue,y.value,y.dir,S,i]);return d.jsx($j,{asChild:!0,children:d.jsx(Ci,{id:E,"aria-labelledby":j,"data-motion":_,"data-orientation":y.orientation,...g,ref:w,disableOutsidePointerEvents:!1,onDismiss:()=>{var T;const k=new Event(qu,{bubbles:!0,cancelable:!0});(T=b.current)==null||T.dispatchEvent(k)},onFocusOutside:ae(n.onFocusOutside,T=>{var k;p();const L=T.target;(k=y.rootNavigationMenu)!=null&&k.contains(L)&&T.preventDefault()}),onPointerDownOutside:ae(n.onPointerDownOutside,T=>{var k;const L=T.target,X=S().some(H=>{var G;return(G=H.ref.current)==null?void 0:G.contains(L)}),q=y.isRootMenu&&((k=y.viewport)==null?void 0:k.contains(L));(X||q||!y.isRootMenu)&&T.preventDefault()}),onKeyDown:ae(n.onKeyDown,T=>{var k;const L=T.altKey||T.ctrlKey||T.metaKey;if(T.key==="Tab"&&!L){const X=fm(T.currentTarget),q=document.activeElement,H=X.findIndex(te=>te===q),G=T.shiftKey?X.slice(0,H).reverse():X.slice(H+1,X.length);Cp(G)?T.preventDefault():(k=u.current)==null||k.focus()}}),onEscapeKeyDown:ae(n.onEscapeKeyDown,T=>{h.current=!0})})})}),Np="NavigationMenuViewport",t5=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=!!En(Np,n.__scopeNavigationMenu).value;return d.jsx(st,{present:r||s,children:d.jsx(n5,{...i,ref:a})})});t5.displayName=Np;var n5=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,children:i,...s}=n,u=En(Np,r),h=we(a,u.onViewportChange),m=Y4(yi,n.__scopeNavigationMenu),[p,g]=v.useState(null),[y,b]=v.useState(null),w=p?(p==null?void 0:p.width)+"px":void 0,j=p?(p==null?void 0:p.height)+"px":void 0,E=!!u.value,S=E?u.value:u.previousValue;return hm(y,()=>{y&&g({width:y.offsetWidth,height:y.offsetHeight})}),d.jsx(oe.div,{"data-state":Rp(E),"data-orientation":u.orientation,...s,ref:h,style:{pointerEvents:!E&&u.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":w,"--radix-navigation-menu-viewport-height":j,...s.style},onPointerEnter:ae(n.onPointerEnter,u.onContentEnter),onPointerLeave:ae(n.onPointerLeave,lc(u.onContentLeave)),children:Array.from(m.items).map(([C,{ref:R,forceMount:_,...T}])=>{const k=S===C;return d.jsx(st,{present:_||k,children:d.jsx(Xj,{...T,ref:Jo(R,L=>{k&&L&&b(L)})})},C)})})}),a5="FocusGroup",$j=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,s=En(a5,r);return d.jsx(um.Provider,{scope:r,children:d.jsx(um.Slot,{scope:r,children:d.jsx(oe.div,{dir:s.dir,...i,ref:a})})})}),Kb=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],l5="FocusGroupItem",Zj=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,s=H4(r),u=En(l5,r);return d.jsx(um.ItemSlot,{scope:r,children:d.jsx(oe.button,{...i,ref:a,onKeyDown:ae(n.onKeyDown,h=>{if(["Home","End",...Kb].includes(h.key)){let m=s().map(p=>p.ref.current);if([u.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(h.key)&&m.reverse(),Kb.includes(h.key)){const p=m.indexOf(h.currentTarget);m=m.slice(p+1)}setTimeout(()=>Cp(m)),h.preventDefault()}})})})});function fm(n){const a=[],r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)a.push(r.currentNode);return a}function Cp(n){const a=document.activeElement;return n.some(r=>r===a?!0:(r.focus(),document.activeElement!==a))}function r5(n){return n.forEach(a=>{a.dataset.tabindex=a.getAttribute("tabindex")||"",a.setAttribute("tabindex","-1")}),()=>{n.forEach(a=>{const r=a.dataset.tabindex;a.setAttribute("tabindex",r)})}}function hm(n,a){const r=We(a);et(()=>{let i=0;if(n){const s=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(r)});return s.observe(n),()=>{window.cancelAnimationFrame(i),s.unobserve(n)}}},[n,r])}function Rp(n){return n?"open":"closed"}function Fj(n,a){return`${n}-trigger-${a}`}function Pj(n,a){return`${n}-content-${a}`}function lc(n){return a=>a.pointerType==="mouse"?n(a):void 0}var Xb={exports:{}},Ch={};/**
|
|
312
|
+
* @license React
|
|
313
|
+
* use-sync-external-store-shim.production.js
|
|
314
|
+
*
|
|
315
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
316
|
+
*
|
|
317
|
+
* This source code is licensed under the MIT license found in the
|
|
318
|
+
* LICENSE file in the root directory of this source tree.
|
|
319
|
+
*/var $b;function i5(){if($b)return Ch;$b=1;var n=lt;function a(b,w){return b===w&&(b!==0||1/b===1/w)||b!==b&&w!==w}var r=typeof Object.is=="function"?Object.is:a,i=n.useState,s=n.useEffect,u=n.useLayoutEffect,h=n.useDebugValue;function m(b,w){var j=w(),E=i({inst:{value:j,getSnapshot:w}}),S=E[0].inst,C=E[1];return u(function(){S.value=j,S.getSnapshot=w,p(S)&&C({inst:S})},[b,j,w]),s(function(){return p(S)&&C({inst:S}),b(function(){p(S)&&C({inst:S})})},[b]),h(j),j}function p(b){var w=b.getSnapshot;b=b.value;try{var j=w();return!r(b,j)}catch{return!0}}function g(b,w){return w()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:m;return Ch.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:y,Ch}var Zb;function o5(){return Zb||(Zb=1,Xb.exports=i5()),Xb.exports}var s5=o5();function u5(){return s5.useSyncExternalStore(c5,()=>!0,()=>!1)}function c5(){return()=>{}}var _p="Avatar",[d5,qz]=ht(_p),[f5,Jj]=d5(_p),Wj=v.forwardRef((n,a)=>{const{__scopeAvatar:r,...i}=n,[s,u]=v.useState("idle");return d.jsx(f5,{scope:r,imageLoadingStatus:s,onImageLoadingStatusChange:u,children:d.jsx(oe.span,{...i,ref:a})})});Wj.displayName=_p;var Ij="AvatarImage",e2=v.forwardRef((n,a)=>{const{__scopeAvatar:r,src:i,onLoadingStatusChange:s=()=>{},...u}=n,h=Jj(Ij,r),m=h5(i,u),p=We(g=>{s(g),h.onImageLoadingStatusChange(g)});return et(()=>{m!=="idle"&&p(m)},[m,p]),m==="loaded"?d.jsx(oe.img,{...u,ref:a,src:i}):null});e2.displayName=Ij;var t2="AvatarFallback",n2=v.forwardRef((n,a)=>{const{__scopeAvatar:r,delayMs:i,...s}=n,u=Jj(t2,r),[h,m]=v.useState(i===void 0);return v.useEffect(()=>{if(i!==void 0){const p=window.setTimeout(()=>m(!0),i);return()=>window.clearTimeout(p)}},[i]),h&&u.imageLoadingStatus!=="loaded"?d.jsx(oe.span,{...s,ref:a}):null});n2.displayName=t2;function Fb(n,a){return n?a?(n.src!==a&&(n.src=a),n.complete&&n.naturalWidth>0?"loaded":"loading"):"error":"idle"}function h5(n,{referrerPolicy:a,crossOrigin:r}){const i=u5(),s=v.useRef(null),u=i?(s.current||(s.current=new window.Image),s.current):null,[h,m]=v.useState(()=>Fb(u,n));return et(()=>{m(Fb(u,n))},[u,n]),et(()=>{const p=b=>()=>{m(b)};if(!u)return;const g=p("loaded"),y=p("error");return u.addEventListener("load",g),u.addEventListener("error",y),a&&(u.referrerPolicy=a),typeof r=="string"&&(u.crossOrigin=r),()=>{u.removeEventListener("load",g),u.removeEventListener("error",y)}},[u,r,a]),h}var a2=Wj,l2=e2,r2=n2;const m5=v.forwardRef(({className:n,...a},r)=>d.jsx(a2,{ref:r,className:se("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",n),...a}));m5.displayName=a2.displayName;const p5=v.forwardRef(({className:n,...a},r)=>d.jsx(l2,{ref:r,className:se("aspect-square h-full w-full",n),...a}));p5.displayName=l2.displayName;const v5=v.forwardRef(({className:n,...a},r)=>d.jsx(r2,{ref:r,className:se("bg-muted flex h-full w-full items-center justify-center rounded-full",n),...a}));v5.displayName=r2.displayName;const g5=v.forwardRef(({className:n,inset:a,children:r,...i},s)=>d.jsxs(F1,{ref:s,className:se("focus:bg-accent data-[state=open]:bg-accent flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none",a&&"pl-8",n),...i,children:[r,d.jsx($h,{className:"ml-auto h-4 w-4"})]}));g5.displayName=F1.displayName;const y5=v.forwardRef(({className:n,...a},r)=>d.jsx(P1,{ref:r,className:se("bg-popover text-popover-foreground 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-lg",n),...a}));y5.displayName=P1.displayName;const b5=v.forwardRef(({className:n,sideOffset:a=4,...r},i)=>d.jsx(Fk,{children:d.jsx(Y1,{ref:i,sideOffset:a,className:se("bg-popover text-popover-foreground z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md","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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n),...r})}));b5.displayName=Y1.displayName;const x5=v.forwardRef(({className:n,inset:a,...r},i)=>d.jsx(V1,{ref:i,className:se("focus:bg-accent focus:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a&&"pl-8",n),...r}));x5.displayName=V1.displayName;const w5=v.forwardRef(({className:n,children:a,checked:r,...i},s)=>d.jsxs(K1,{ref:s,className:se("focus:bg-accent focus:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),checked:r,...i,children:[d.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx($1,{children:d.jsx(_m,{className:"h-4 w-4"})})}),a]}));w5.displayName=K1.displayName;const S5=v.forwardRef(({className:n,children:a,...r},i)=>d.jsxs(X1,{ref:i,className:se("focus:bg-accent focus:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...r,children:[d.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx($1,{children:d.jsx("div",{className:"h-2 w-2 rounded-full bg-current"})})}),a]}));S5.displayName=X1.displayName;const j5=v.forwardRef(({className:n,inset:a,...r},i)=>d.jsx(G1,{ref:i,className:se("px-2 py-1.5 text-sm font-semibold",a&&"pl-8",n),...r}));j5.displayName=G1.displayName;const E5=v.forwardRef(({className:n,...a},r)=>d.jsx(Z1,{ref:r,className:se("bg-muted -mx-1 my-1 h-px",n),...a}));E5.displayName=Z1.displayName;se("relative overflow-hidden","dark:bg-[#1a1a1a] bg-white","border dark:border-white/[0.08] border-gray-200","backdrop-blur-xl","rounded-2xl","dark:shadow-[0_8px_32px_rgba(0,0,0,0.4)] shadow-[0_2px_8px_rgba(0,0,0,0.04)]");const N5="";async function At(n,a){const r=await fetch(`${N5}${n}`,{...a,headers:{"Content-Type":"application/json",...a==null?void 0:a.headers}});if(!r.ok){const i=await r.text();throw new Error(i||`Request failed: ${r.status}`)}return r.json()}async function Tp(){return At("/api/config")}async function C5(n,a){return At(`/api/db/${n}/query`,{method:"POST",body:JSON.stringify({query:a})})}async function R5(n){return At(`/api/db/${n}/tables`)}async function _5(n,a,r,i){return At(`/api/db/${n}/tables/${a}?limit=${r}&offset=${i}`)}async function T5(n){return At(`/api/db/${n}/schema`)}async function M5(n){return At(`/api/queue/${n}/metrics`)}async function A5(n,a=10){return At(`/api/queue/${n}/messages?limit=${a}`)}async function D5(n,a=20){return At(`/api/workflow/${n}/executions?limit=${a}`)}async function k5(n,a){return At(`/api/workflow/${n}/executions/${a}`)}async function O5(){return At("/api/auth/tables")}async function z5(n,a,r){return At(`/api/auth/tables/${n}?limit=${a}&offset=${r}`)}async function L5(){return At("/api/auth/schema")}async function U5(n){return At("/api/auth/query",{method:"POST",body:JSON.stringify({query:n})})}async function H5(){return At("/api/auth/settings")}async function q5(n){return At("/api/auth/settings",{method:"PATCH",body:JSON.stringify(n)})}function B5({column:n,onInsertText:a}){return d.jsxs("button",{onClick:()=>a==null?void 0:a(n.name),className:"flex w-full items-center gap-2 rounded px-2 py-1 text-left text-xs hover:bg-muted",title:`Click to insert "${n.name}"`,children:[n.primaryKey?d.jsx(Gx,{className:"h-3 w-3 shrink-0 text-yellow-500"}):d.jsx(Qx,{className:"h-3 w-3 shrink-0 text-muted-foreground"}),d.jsx("span",{className:"truncate font-mono",children:n.name}),d.jsxs("span",{className:"ml-auto truncate text-muted-foreground",children:[n.type,n.notNull&&!n.primaryKey&&" NOT NULL"]})]})}function Q5({table:n,onInsertText:a}){const[r,i]=v.useState(!1);return d.jsxs(Hj,{open:r,onOpenChange:i,children:[d.jsxs(qj,{className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm hover:bg-muted",children:[r?d.jsx(qx,{className:"h-4 w-4 shrink-0"}):d.jsx(sc,{className:"h-4 w-4 shrink-0"}),d.jsx(hc,{className:"h-4 w-4 shrink-0 text-blue-500"}),d.jsx("span",{className:"truncate font-medium cursor-pointer",onClick:s=>{s.stopPropagation(),a==null||a(n.name)},title:`Click to insert "${n.name}"`,children:n.name}),d.jsxs("span",{className:"ml-auto text-xs text-muted-foreground",children:[n.columns.length," cols"]})]}),d.jsx(Bj,{children:d.jsx("div",{className:"ml-4 border-l pl-2",children:n.columns.map(s=>d.jsx(B5,{column:s,onInsertText:a},s.name))})})]})}function Y5({onInsertText:n}){const{data:a,isLoading:r,refetch:i}=Gt({queryKey:["auth-schema"],queryFn:L5,staleTime:3e4}),s=(a==null?void 0:a.tables)||[];return d.jsxs("div",{className:"flex h-full flex-col border-l bg-card",children:[d.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[d.jsx("h3",{className:"text-sm font-semibold",children:"Auth Tables"}),d.jsx(Rt,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>i(),disabled:r,children:d.jsx(fc,{className:se("h-4 w-4",r&&"animate-spin")})})]}),d.jsx(Sw,{className:"flex-1",children:d.jsx("div",{className:"p-2",children:r?d.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"Loading schema..."}):s.length===0?d.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No tables found"}):d.jsx("div",{className:"space-y-0.5",children:s.map(u=>d.jsx(Q5,{table:u,onInsertText:n},u.name))})})}),d.jsx("div",{className:"border-t px-3 py-2 text-xs text-muted-foreground",children:"Click table/column names to insert"})]})}function G5(n){return n===null?"NULL":n===void 0?"":typeof n=="object"?JSON.stringify(n):String(n)}function V5(n){if(n<60)return`${n} seconds`;if(n<3600)return`${Math.floor(n/60)} minutes`;if(n<86400){const r=Math.floor(n/3600);return`${r} hour${r>1?"s":""}`}const a=Math.floor(n/86400);return`${a} day${a>1?"s":""}`}function K5({settings:n,onUpdate:a,isUpdating:r}){const[i,s]=v.useState(n.sessionTokenExpiry.toString()),[u,h]=v.useState(n.allowSignups),[m,p]=v.useState(n.requireEmailVerification),[g,y]=v.useState(n.requireName),b=()=>{a({sessionTokenExpiry:parseInt(i,10),allowSignups:u,requireEmailVerification:m,requireName:g})},w=parseInt(i,10)!==n.sessionTokenExpiry||u!==n.allowSignups||m!==n.requireEmailVerification||g!==n.requireName;return d.jsxs("div",{className:"space-y-6",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx(Oo,{htmlFor:"sessionTokenExpiry",children:"Session Token Expiry (seconds)"}),d.jsx(VT,{id:"sessionTokenExpiry",type:"number",min:3600,max:7776e3,value:i,onChange:j=>s(j.target.value)}),d.jsxs("p",{className:"text-xs text-muted-foreground",children:["Current: ",V5(parseInt(i,10)||0)," (min: 1 hour, max: 90 days)"]})]}),d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"space-y-0.5",children:[d.jsx(Oo,{children:"Allow Signups"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Allow new users to create accounts"})]}),d.jsx(Nh,{checked:u,onCheckedChange:h})]}),d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"space-y-0.5",children:[d.jsx(Oo,{children:"Require Email Verification"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Users must verify their email before accessing the app"})]}),d.jsx(Nh,{checked:m,onCheckedChange:p})]}),d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"space-y-0.5",children:[d.jsx(Oo,{children:"Require Name"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Require users to enter their name during sign up"})]}),d.jsx(Nh,{checked:g,onCheckedChange:y})]})]}),d.jsx("div",{className:"flex justify-end",children:d.jsx(Rt,{onClick:b,disabled:!w||r,children:r?"Saving...":"Save Settings"})})]})}function X5(){var I,ie,re,U,W,V;const n=bm(),[a,r]=v.useState("settings"),[i,s]=v.useState(""),[u,h]=v.useState(null),[m,p]=v.useState(null),[g,y]=v.useState(null),[b,w]=v.useState(0),j=50,S=((ie=(I=Gt({queryKey:["config"],queryFn:Tp,staleTime:6e4}).data)==null?void 0:I.auth)==null?void 0:ie.binding)||"AUTH",C=Gt({queryKey:["auth-settings"],queryFn:H5,staleTime:0}),R=Qh({mutationFn:q5,onSuccess:()=>{n.invalidateQueries({queryKey:["auth-settings"]})}}),_=$=>{R.mutate($)},T=v.useCallback($=>{s(fe=>fe+$)},[]),k=Qh({mutationFn:$=>U5($),onSuccess:$=>{h($),p(null)},onError:$=>{p($ instanceof Error?$.message:"Failed to execute query"),h(null)}}),L=()=>{i.trim()&&k.mutate(i)},X=Gt({queryKey:["auth-tables"],queryFn:O5,staleTime:0,gcTime:0}),q=Gt({queryKey:["auth-tableData",g,j,b],queryFn:()=>z5(g,j,b),staleTime:0,gcTime:0,enabled:!!g}),H=((re=X.data)==null?void 0:re.tables)||[],G=((U=q.data)==null?void 0:U.data)||[],te=((W=q.data)==null?void 0:W.columns)||[],ce=((V=q.data)==null?void 0:V.total)||0,de=$=>{y($),w(0)};return d.jsx("div",{className:"flex flex-col",children:d.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[d.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Auth: ",S]}),d.jsxs("div",{className:"flex items-start gap-3 rounded-lg border bg-muted/50 p-4",children:[d.jsx(Yx,{className:"h-5 w-5 mt-0.5 text-blue-500 shrink-0"}),d.jsxs("div",{children:[d.jsx("p",{className:"font-medium",children:"Ploy Auth Database"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"This is the Ploy Auth database containing user accounts and refresh tokens. Password hashes are hidden for security. Only SELECT queries are allowed."})]})]}),d.jsxs(Sj,{value:a,onValueChange:r,children:[d.jsxs(jj,{children:[d.jsxs(Lo,{value:"settings",children:[d.jsx(x_,{className:"mr-2 h-4 w-4"}),"Settings"]}),d.jsx(Lo,{value:"query",children:"SQL Editor"}),d.jsx(Lo,{value:"tables",children:"Tables"})]}),d.jsx(Uo,{value:"settings",className:"mt-4",children:d.jsxs(Qt,{children:[d.jsxs(bn,{children:[d.jsx(xn,{children:"Auth Settings"}),d.jsx(Ca,{children:"Configure authentication settings for local development."})]}),d.jsx(Yt,{children:C.isLoading?d.jsx("div",{className:"flex items-center justify-center py-8",children:d.jsx(Dn,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):C.data?d.jsx(K5,{settings:C.data,onUpdate:_,isUpdating:R.isPending}):d.jsx("p",{className:"text-muted-foreground",children:"Failed to load settings"})})]})}),d.jsx(Uo,{value:"query",className:"mt-4",children:d.jsxs("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-[1fr_280px]",children:[d.jsxs("div",{className:"space-y-4",children:[d.jsxs(Qt,{children:[d.jsxs(bn,{children:[d.jsx(xn,{children:"SQL Query"}),d.jsx(Ca,{children:"Execute read-only SELECT queries against auth tables"})]}),d.jsxs(Yt,{className:"space-y-4",children:[d.jsx("textarea",{value:i,onChange:$=>s($.target.value),onKeyDown:$=>{($.metaKey||$.ctrlKey)&&$.key==="Enter"&&L()},placeholder:"SELECT * FROM auth_users LIMIT 10;",className:"w-full h-32 p-2 font-mono text-sm border rounded bg-background"}),d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("span",{className:"text-xs text-muted-foreground",children:"Press Cmd/Ctrl + Enter to execute (SELECT only)"}),d.jsxs(Rt,{onClick:L,disabled:k.isPending||!i.trim(),children:[d.jsx(Vx,{className:"mr-2 h-4 w-4"}),k.isPending?"Executing...":"Execute"]})]})]})]}),m&&d.jsx(Qt,{className:"border-destructive/50",children:d.jsx(Yt,{className:"pt-6",children:d.jsx("p",{className:"font-mono text-sm text-destructive",children:m})})}),u&&d.jsx(aw,{results:u.results,meta:u.meta,error:u.error})]}),d.jsx("div",{className:"hidden h-[500px] lg:block",children:d.jsx(Y5,{onInsertText:T})})]})}),d.jsx(Uo,{value:"tables",className:"mt-4",children:d.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-4",children:[d.jsxs(Qt,{className:"md:col-span-1",children:[d.jsxs(bn,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[d.jsx(xn,{className:"text-base",children:"Tables"}),d.jsx(Rt,{variant:"ghost",size:"icon",onClick:()=>X.refetch(),className:"h-8 w-8",children:d.jsx(fc,{className:"h-4 w-4"})})]}),d.jsx(Yt,{children:X.isLoading?d.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):H.length===0?d.jsx("p",{className:"text-sm text-muted-foreground",children:"No tables found"}):d.jsx("div",{className:"space-y-1",children:H.map($=>d.jsxs("button",{onClick:()=>de($.name),className:`flex w-full items-center gap-2 rounded-md px-3 py-2 text-left text-sm transition-colors hover:bg-muted ${g===$.name?"bg-muted font-medium":""}`,children:[d.jsx(hc,{className:"h-4 w-4 shrink-0"}),d.jsx("span",{className:"truncate",children:$.name})]},$.name))})})]}),d.jsxs(Qt,{className:"md:col-span-3",children:[d.jsxs(bn,{children:[d.jsx(xn,{children:g||"Select a Table"}),g&&d.jsxs(Ca,{children:[ce," total rows"]})]}),d.jsx(Yt,{children:g?q.isLoading?d.jsx("div",{className:"flex items-center justify-center py-8",children:d.jsx(Dn,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):G.length===0?d.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"No data in this table"}):d.jsxs("div",{className:"space-y-4",children:[d.jsx("div",{className:"overflow-x-auto rounded-md border",children:d.jsxs(mc,{children:[d.jsx(pc,{children:d.jsx(yl,{children:te.map($=>d.jsx(nn,{className:"font-mono",children:$},$))})}),d.jsx(vc,{children:G.map(($,fe)=>d.jsx(yl,{children:te.map(A=>d.jsx(an,{className:"font-mono text-sm",children:G5($[A])},A))},fe))})]})}),d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("span",{className:"text-sm text-muted-foreground",children:["Showing ",b+1," - ",Math.min(b+j,ce)," of ",ce]}),d.jsxs("div",{className:"flex gap-2",children:[d.jsxs(Rt,{variant:"outline",size:"sm",disabled:b===0,onClick:()=>w(Math.max(0,b-j)),children:[d.jsx(Bx,{className:"mr-1 h-4 w-4"}),"Previous"]}),d.jsxs(Rt,{variant:"outline",size:"sm",disabled:b+j>=ce,onClick:()=>w(b+j),children:["Next",d.jsx(sc,{className:"ml-1 h-4 w-4"})]})]})]})]}):d.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"Select a table from the list to view its data"})})]})]})})]})]})})}function $5({column:n,onInsertText:a}){return d.jsxs("button",{onClick:()=>a==null?void 0:a(n.name),className:"flex w-full items-center gap-2 rounded px-2 py-1 text-left text-xs hover:bg-muted",title:`Click to insert "${n.name}"`,children:[n.primaryKey?d.jsx(Gx,{className:"h-3 w-3 shrink-0 text-yellow-500"}):d.jsx(Qx,{className:"h-3 w-3 shrink-0 text-muted-foreground"}),d.jsx("span",{className:"truncate font-mono",children:n.name}),d.jsxs("span",{className:"ml-auto truncate text-muted-foreground",children:[n.type,n.notNull&&!n.primaryKey&&" NOT NULL"]})]})}function Z5({table:n,onInsertText:a}){const[r,i]=v.useState(!1);return d.jsxs(Hj,{open:r,onOpenChange:i,children:[d.jsxs(qj,{className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm hover:bg-muted",children:[r?d.jsx(qx,{className:"h-4 w-4 shrink-0"}):d.jsx(sc,{className:"h-4 w-4 shrink-0"}),d.jsx(hc,{className:"h-4 w-4 shrink-0 text-blue-500"}),d.jsx("span",{className:"truncate font-medium cursor-pointer",onClick:s=>{s.stopPropagation(),a==null||a(n.name)},title:`Click to insert "${n.name}"`,children:n.name}),d.jsxs("span",{className:"ml-auto text-xs text-muted-foreground",children:[n.columns.length," cols"]})]}),d.jsx(Bj,{children:d.jsx("div",{className:"ml-4 border-l pl-2",children:n.columns.map(s=>d.jsx($5,{column:s,onInsertText:a},s.name))})})]})}function F5({bindingName:n,onInsertText:a}){const{data:r,isLoading:i,refetch:s}=Gt({queryKey:["schema",n],queryFn:()=>T5(n),staleTime:3e4}),h=((r==null?void 0:r.tables)||[]).filter(m=>!m.name.startsWith("_litestream_"));return d.jsxs("div",{className:"flex h-full flex-col border-l bg-card",children:[d.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[d.jsx("h3",{className:"text-sm font-semibold",children:"Tables"}),d.jsx(Rt,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>s(),disabled:i,children:d.jsx(fc,{className:se("h-4 w-4",i&&"animate-spin")})})]}),d.jsx(Sw,{className:"flex-1",children:d.jsx("div",{className:"p-2",children:i?d.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"Loading schema..."}):h.length===0?d.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No tables found"}):d.jsx("div",{className:"space-y-0.5",children:h.map(m=>d.jsx(Z5,{table:m,onInsertText:a},m.name))})})}),d.jsx("div",{className:"border-t px-3 py-2 text-xs text-muted-foreground",children:"Click table/column names to insert"})]})}function P5(n){return n===null?"NULL":n===void 0?"":typeof n=="object"?JSON.stringify(n):String(n)}function J5(){var G,te,ce,de;const{binding:n}=ic(),a=n||"",[r,i]=v.useState("query"),[s,u]=v.useState(""),[h,m]=v.useState(null),[p,g]=v.useState(null),[y,b]=v.useState(null),[w,j]=v.useState(0),E=50,S=v.useCallback(I=>{u(ie=>ie+I)},[]),C=Qh({mutationFn:I=>C5(a,I),onSuccess:I=>{m(I),g(null)},onError:I=>{g(I instanceof Error?I.message:"Failed to execute query"),m(null)}}),R=()=>{s.trim()&&C.mutate(s)},_=Gt({queryKey:["tables",a],queryFn:()=>R5(a),staleTime:0,gcTime:0,enabled:!!a}),T=Gt({queryKey:["tableData",a,y,E,w],queryFn:()=>_5(a,y,E,w),staleTime:0,gcTime:0,enabled:!!a&&!!y}),k=((G=_.data)==null?void 0:G.tables)||[],L=((te=T.data)==null?void 0:te.data)||[],X=((ce=T.data)==null?void 0:ce.columns)||[],q=((de=T.data)==null?void 0:de.total)||0,H=I=>{b(I),j(0)};return d.jsx("div",{className:"flex flex-col",children:d.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[d.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Database: ",a]}),d.jsxs(Sj,{value:r,onValueChange:i,children:[d.jsxs(jj,{children:[d.jsx(Lo,{value:"query",children:"SQL Editor"}),d.jsx(Lo,{value:"tables",children:"Tables"})]}),d.jsx(Uo,{value:"query",className:"mt-4",children:d.jsxs("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-[1fr_280px]",children:[d.jsxs("div",{className:"space-y-4",children:[d.jsxs(Qt,{children:[d.jsxs(bn,{children:[d.jsx(xn,{children:"SQL Query"}),d.jsx(Ca,{children:"Execute SQL queries against your database"})]}),d.jsxs(Yt,{className:"space-y-4",children:[d.jsx("textarea",{value:s,onChange:I=>u(I.target.value),onKeyDown:I=>{(I.metaKey||I.ctrlKey)&&I.key==="Enter"&&R()},placeholder:"SELECT * FROM users LIMIT 10;",className:"w-full h-32 p-2 font-mono text-sm border rounded bg-background"}),d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("span",{className:"text-xs text-muted-foreground",children:"Press Cmd/Ctrl + Enter to execute"}),d.jsxs(Rt,{onClick:R,disabled:C.isPending||!s.trim(),children:[d.jsx(Vx,{className:"mr-2 h-4 w-4"}),C.isPending?"Executing...":"Execute"]})]})]})]}),p&&d.jsx(Qt,{className:"border-destructive/50",children:d.jsx(Yt,{className:"pt-6",children:d.jsx("p",{className:"font-mono text-sm text-destructive",children:p})})}),h&&d.jsx(aw,{results:h.results,meta:h.meta,error:h.error})]}),d.jsx("div",{className:"hidden h-[500px] lg:block",children:d.jsx(F5,{bindingName:a,onInsertText:S})})]})}),d.jsx(Uo,{value:"tables",className:"mt-4",children:d.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-4",children:[d.jsxs(Qt,{className:"md:col-span-1",children:[d.jsxs(bn,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[d.jsx(xn,{className:"text-base",children:"Tables"}),d.jsx(Rt,{variant:"ghost",size:"icon",onClick:()=>_.refetch(),className:"h-8 w-8",children:d.jsx(fc,{className:"h-4 w-4"})})]}),d.jsx(Yt,{children:_.isLoading?d.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):k.length===0?d.jsx("p",{className:"text-sm text-muted-foreground",children:"No tables found"}):d.jsx("div",{className:"space-y-1",children:k.map(I=>d.jsxs("button",{onClick:()=>H(I.name),className:`flex w-full items-center gap-2 rounded-md px-3 py-2 text-left text-sm transition-colors hover:bg-muted ${y===I.name?"bg-muted font-medium":""}`,children:[d.jsx(hc,{className:"h-4 w-4 shrink-0"}),d.jsx("span",{className:"truncate",children:I.name})]},I.name))})})]}),d.jsxs(Qt,{className:"md:col-span-3",children:[d.jsxs(bn,{children:[d.jsx(xn,{children:y||"Select a Table"}),y&&d.jsxs(Ca,{children:[q," total rows"]})]}),d.jsx(Yt,{children:y?T.isLoading?d.jsx("div",{className:"flex items-center justify-center py-8",children:d.jsx(Dn,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):L.length===0?d.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"No data in this table"}):d.jsxs("div",{className:"space-y-4",children:[d.jsx("div",{className:"overflow-x-auto rounded-md border",children:d.jsxs(mc,{children:[d.jsx(pc,{children:d.jsx(yl,{children:X.map(I=>d.jsx(nn,{className:"font-mono",children:I},I))})}),d.jsx(vc,{children:L.map((I,ie)=>d.jsx(yl,{children:X.map(re=>d.jsx(an,{className:"font-mono text-sm",children:P5(I[re])},re))},ie))})]})}),d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("span",{className:"text-sm text-muted-foreground",children:["Showing ",w+1," - ",Math.min(w+E,q)," of ",q]}),d.jsxs("div",{className:"flex gap-2",children:[d.jsxs(Rt,{variant:"outline",size:"sm",disabled:w===0,onClick:()=>j(Math.max(0,w-E)),children:[d.jsx(Bx,{className:"mr-1 h-4 w-4"}),"Previous"]}),d.jsxs(Rt,{variant:"outline",size:"sm",disabled:w+E>=q,onClick:()=>j(w+E),children:["Next",d.jsx(sc,{className:"ml-1 h-4 w-4"})]})]})]})]}):d.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"Select a table from the list to view its data"})})]})]})})]})]})})}function Mp(){return d.jsx("div",{className:"flex items-center justify-center py-8",children:d.jsx(Dn,{className:"h-6 w-6 animate-spin text-muted-foreground"})})}function qc({children:n}){return d.jsx("div",{className:"flex items-center justify-center py-8 text-muted-foreground",children:n})}function Ap({id:n}){return d.jsxs("span",{className:"font-mono text-xs",children:[n.slice(0,8),"..."]})}function Mo({title:n,value:a,icon:r,isLoading:i}){return d.jsxs(Qt,{children:[d.jsxs(bn,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[d.jsx(xn,{className:"text-sm font-medium",children:n}),r]}),d.jsx(Yt,{children:d.jsx("div",{className:"text-2xl font-bold",children:i?d.jsx(Dn,{className:"h-5 w-5 animate-spin"}):a})})]})}function i2({title:n,children:a}){return d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:n}),a]})}const W5={PENDING:{variant:"default",icon:d.jsx(dc,{className:"h-3 w-3"}),label:"Pending"},RUNNING:{variant:"blue",icon:d.jsx(Dn,{className:"h-3 w-3 animate-spin"}),label:"Running"},COMPLETED:{variant:"success",icon:d.jsx(uc,{className:"h-3 w-3"}),label:"Completed"},FAILED:{variant:"error",icon:d.jsx(cc,{className:"h-3 w-3"}),label:"Failed"},CANCELLED:{variant:"default",icon:d.jsx(PR,{className:"h-3 w-3"}),label:"Cancelled"}},I5={PENDING:{variant:"default",icon:d.jsx(dc,{className:"h-3 w-3"}),label:"Pending"},PROCESSING:{variant:"blue",icon:d.jsx(Dn,{className:"h-3 w-3 animate-spin"}),label:"Processing"},ACKNOWLEDGED:{variant:"success",icon:d.jsx(uc,{className:"h-3 w-3"}),label:"Acknowledged"},FAILED:{variant:"error",icon:d.jsx(cc,{className:"h-3 w-3"}),label:"Failed"},DEAD_LETTER:{variant:"orange",icon:d.jsx(t_,{className:"h-3 w-3"}),label:"Dead Letter"}};function o2({status:n}){const a=W5[n];return a?d.jsx(Vu,{variant:a.variant,icon:a.icon,children:a.label}):d.jsx(Vu,{children:n})}function ez({status:n}){const a=I5[n];return a?d.jsx(Vu,{variant:a.variant,icon:a.icon,children:a.label}):d.jsx(Vu,{children:n})}function tz({metrics:n,isLoading:a}){return d.jsxs("div",{className:"grid gap-4 md:grid-cols-5",children:[d.jsx(Mo,{title:"Pending",value:(n==null?void 0:n.pending)??0,icon:d.jsx(dc,{className:"h-4 w-4 text-muted-foreground"}),isLoading:a}),d.jsx(Mo,{title:"Processing",value:(n==null?void 0:n.processing)??0,icon:d.jsx(Dn,{className:"h-4 w-4 text-muted-foreground"}),isLoading:a}),d.jsx(Mo,{title:"Acknowledged",value:(n==null?void 0:n.acknowledged)??0,icon:d.jsx(uc,{className:"h-4 w-4 text-green-500"}),isLoading:a}),d.jsx(Mo,{title:"Failed",value:(n==null?void 0:n.failed)??0,icon:d.jsx(cc,{className:"h-4 w-4 text-red-500"}),isLoading:a}),d.jsx(Mo,{title:"Dead Letter",value:(n==null?void 0:n.deadLetter)??0,icon:d.jsx(v_,{className:"h-4 w-4 text-orange-500"}),isLoading:a})]})}function nz({messages:n,isLoading:a}){return d.jsxs(Qt,{children:[d.jsxs(bn,{children:[d.jsx(xn,{children:"Recent Messages"}),d.jsx(Ca,{children:"Latest messages in this queue (auto-refreshes every 5 seconds)"})]}),d.jsx(Yt,{children:a?d.jsx(Mp,{}):n!=null&&n.length?d.jsxs(mc,{children:[d.jsx(pc,{children:d.jsxs(yl,{children:[d.jsx(nn,{children:"ID"}),d.jsx(nn,{children:"Status"}),d.jsx(nn,{children:"Payload"}),d.jsx(nn,{children:"Attempt"}),d.jsx(nn,{children:"Created"})]})}),d.jsx(vc,{children:n.map(r=>d.jsxs(yl,{children:[d.jsx(an,{children:d.jsx(Ap,{id:r.id})}),d.jsx(an,{children:d.jsx(ez,{status:r.status})}),d.jsx(an,{className:"max-w-[200px] truncate font-mono text-xs",children:JSON.stringify(r.payload)}),d.jsx(an,{children:r.attempt}),d.jsx(an,{children:d.jsx(Wl,{timestamp:r.createdAt})})]},r.id))})]}):d.jsx(qc,{children:"No messages in this queue"})})]})}function az(){const{binding:n}=ic(),a=n||"",{data:r,isLoading:i}=Gt({queryKey:["queueMetrics",a],queryFn:()=>M5(a),enabled:!!a,refetchInterval:5e3}),{data:s,isLoading:u}=Gt({queryKey:["queueMessages",a],queryFn:()=>A5(a,10),enabled:!!a,refetchInterval:5e3});return d.jsx("div",{className:"flex flex-col",children:d.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[d.jsx(i2,{title:`Queue: ${a}`}),d.jsx(tz,{metrics:r==null?void 0:r.metrics,isLoading:i}),d.jsx(nz,{messages:s==null?void 0:s.messages,isLoading:u})]})})}function lz({status:n}){switch(n){case"COMPLETED":return d.jsx(uc,{className:"h-5 w-5 text-green-500"});case"RUNNING":return d.jsx(Dn,{className:"h-5 w-5 text-blue-500 animate-spin"});case"FAILED":return d.jsx(cc,{className:"h-5 w-5 text-red-500"});case"PENDING":default:return d.jsx(dc,{className:"h-5 w-5 text-gray-400"})}}function rz(n){switch(n){case"COMPLETED":return"bg-green-500";case"RUNNING":return"bg-blue-500";case"FAILED":return"bg-red-500";case"PENDING":default:return"bg-gray-300 dark:bg-gray-600"}}function iz({steps:n}){if(n.length===0)return d.jsx(qc,{children:"No steps recorded for this execution"});const a=n.reduce((r,i)=>r+(i.durationMs||0),0);return d.jsxs("div",{className:"space-y-4",children:[a>0&&d.jsxs("div",{className:"mb-6",children:[d.jsxs("div",{className:"flex items-center justify-between text-sm text-muted-foreground mb-2",children:[d.jsx("span",{children:"Total Duration"}),d.jsx("span",{children:zo(a)})]}),d.jsx("div",{className:"h-3 bg-muted rounded-full overflow-hidden flex",children:n.map((r,i)=>{const s=r.durationMs?r.durationMs/a*100:0;return d.jsx("div",{className:se(rz(r.status),"h-full transition-all",i>0&&"border-l border-background"),style:{width:`${s}%`},title:`${r.stepName}: ${zo(r.durationMs)}`},r.id)})})]}),d.jsx("div",{className:"relative",children:n.map((r,i)=>d.jsxs("div",{className:"relative pb-6 last:pb-0",children:[i<n.length-1&&d.jsx("div",{className:se("absolute left-[9px] top-6 w-0.5 h-full -ml-px",r.status==="COMPLETED"?"bg-green-200 dark:bg-green-900":"bg-muted")}),d.jsxs("div",{className:"flex gap-4",children:[d.jsx("div",{className:"flex-shrink-0 relative z-10 bg-background",children:d.jsx(lz,{status:r.status})}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:"font-medium",children:r.stepName}),d.jsxs("span",{className:"text-xs text-muted-foreground",children:["(Step ",r.stepIndex+1,")"]})]}),d.jsx("span",{className:"text-sm font-mono text-muted-foreground",children:zo(r.durationMs)})]}),r.errorMessage&&d.jsx("div",{className:"mt-2 p-2 rounded bg-red-50 dark:bg-red-950 text-red-700 dark:text-red-300 text-sm font-mono",children:r.errorMessage}),r.output&&r.status==="COMPLETED"&&d.jsxs("details",{className:"mt-2",children:[d.jsx("summary",{className:"text-xs text-muted-foreground cursor-pointer hover:text-foreground",children:"View output"}),d.jsx("pre",{className:"mt-1 p-2 rounded bg-muted text-xs font-mono overflow-x-auto",children:JSON.stringify(r.output,null,2)})]}),d.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:d.jsx(Wl,{timestamp:r.createdAt})})]})]})]},r.id))})]})}function oz(){const{binding:n,executionId:a}=ic(),r=n||"",i=a||"",{data:s,isLoading:u}=Gt({queryKey:["workflowExecution",r,i],queryFn:()=>k5(r,i),enabled:!!r&&!!i,refetchInterval:5e3}),h=s==null?void 0:s.execution,m=(s==null?void 0:s.steps)||[];return d.jsx("div",{className:"flex flex-col",children:d.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsx(Ea,{to:`/workflows/${r}`,children:d.jsxs(Rt,{variant:"ghost",size:"sm",children:[d.jsx(ZR,{className:"mr-2 h-4 w-4"}),"Back"]})}),d.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Execution: ",d.jsx(Ap,{id:i})]})]}),u?d.jsx(Mp,{}):h?d.jsxs(d.Fragment,{children:[d.jsxs(Qt,{children:[d.jsx(bn,{children:d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{children:[d.jsx(xn,{children:"Execution Details"}),d.jsx(Ca,{children:h.startedAt?d.jsxs(d.Fragment,{children:["Started ",d.jsx(Wl,{timestamp:h.startedAt})]}):"Not started yet"})]}),d.jsx(o2,{status:h.status})]})}),d.jsxs(Yt,{children:[d.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm text-muted-foreground",children:"Duration"}),d.jsx("p",{className:"font-mono",children:zo(h.durationMs)})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm text-muted-foreground",children:"Steps Completed"}),d.jsxs("p",{className:"font-mono",children:[h.stepsCompleted," / ",h.stepsCount]})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm text-muted-foreground",children:"Created"}),d.jsx("p",{className:"font-mono text-sm",children:d.jsx(Wl,{timestamp:h.createdAt})})]}),h.completedAt&&d.jsxs("div",{children:[d.jsx("p",{className:"text-sm text-muted-foreground",children:"Completed"}),d.jsx("p",{className:"font-mono text-sm",children:d.jsx(Wl,{timestamp:h.completedAt})})]})]}),h.errorMessage&&d.jsx("div",{className:"mt-4 p-3 rounded bg-red-50 dark:bg-red-950 text-red-700 dark:text-red-300 text-sm font-mono",children:h.errorMessage})]})]}),d.jsxs(Qt,{children:[d.jsxs(bn,{children:[d.jsx(xn,{children:"Steps"}),d.jsx(Ca,{children:"Workflow step execution timeline"})]}),d.jsx(Yt,{children:d.jsx(iz,{steps:m})})]})]}):d.jsx(qc,{children:"Execution not found"})]})})}function sz({executions:n,isLoading:a,bindingName:r}){return d.jsxs(Qt,{children:[d.jsxs(bn,{children:[d.jsx(xn,{children:"Recent Executions"}),d.jsx(Ca,{children:"Workflow executions (auto-refreshes every 5 seconds)"})]}),d.jsx(Yt,{children:a?d.jsx(Mp,{}):n!=null&&n.length?d.jsxs(mc,{children:[d.jsx(pc,{children:d.jsxs(yl,{children:[d.jsx(nn,{children:"ID"}),d.jsx(nn,{children:"Status"}),d.jsx(nn,{children:"Steps"}),d.jsx(nn,{children:"Duration"}),d.jsx(nn,{children:"Started"}),d.jsx(nn,{})]})}),d.jsx(vc,{children:n.map(i=>d.jsxs(yl,{children:[d.jsx(an,{children:d.jsx(Ap,{id:i.id})}),d.jsx(an,{children:d.jsx(o2,{status:i.status})}),d.jsx(an,{children:d.jsxs("span",{className:"text-sm",children:[i.stepsCompleted,"/",i.stepsCount]})}),d.jsx(an,{className:"text-sm",children:zo(i.durationMs)}),d.jsx(an,{children:i.startedAt?d.jsx(Wl,{timestamp:i.startedAt}):"-"}),d.jsx(an,{children:d.jsx(Ea,{to:`/workflows/${r}/${i.id}`,className:"flex items-center text-sm text-primary hover:underline",children:"View"})})]},i.id))})]}):d.jsx(qc,{children:"No executions for this workflow"})})]})}function uz(){const{binding:n}=ic(),a=n||"",{data:r,isLoading:i}=Gt({queryKey:["workflowExecutions",a],queryFn:()=>D5(a,20),enabled:!!a,refetchInterval:5e3});return d.jsx("div",{className:"flex flex-col",children:d.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[d.jsx(i2,{title:`Workflow: ${a}`}),d.jsx(sz,{executions:r==null?void 0:r.executions,isLoading:i,bindingName:a})]})})}function cz(){const n=Aa(),{data:a,isLoading:r}=Gt({queryKey:["config"],queryFn:Tp,staleTime:6e4}),i=a!=null&&a.db?Object.keys(a.db):[],s=a!=null&&a.queue?Object.keys(a.queue):[],u=a!=null&&a.workflow?Object.keys(a.workflow):[];return d.jsxs("aside",{className:"fixed inset-y-0 left-0 z-10 w-64 flex flex-col border-r bg-background",children:[d.jsx("div",{className:"flex h-14 items-center border-b px-4",children:d.jsxs(Ea,{to:"/",className:"flex items-center gap-2 font-semibold",children:[d.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-md bg-primary text-primary-foreground",children:"P"}),d.jsx("span",{children:"Ploy Dev"})]})}),d.jsx("nav",{className:"flex-1 overflow-auto p-4",children:r?d.jsx("div",{className:"flex items-center justify-center py-8",children:d.jsx(Dn,{className:"h-5 w-5 animate-spin text-muted-foreground"})}):d.jsxs("div",{className:"space-y-6",children:[i.length>0&&d.jsxs("div",{children:[d.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Database"}),d.jsx("div",{className:"space-y-1",children:i.map(h=>{const m=n.pathname===`/db/${h}`;return d.jsx(Ea,{to:`/db/${h}`,children:d.jsxs(Rt,{variant:m?"secondary":"ghost",className:se("w-full justify-start",m&&"bg-muted"),children:[d.jsx(o_,{className:"mr-2 h-4 w-4"}),h]})},h)})})]}),(a==null?void 0:a.auth)&&d.jsxs("div",{children:[d.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Auth"}),d.jsx("div",{className:"space-y-1",children:d.jsx(Ea,{to:"/auth",children:d.jsxs(Rt,{variant:n.pathname==="/auth"?"secondary":"ghost",className:se("w-full justify-start",n.pathname==="/auth"&&"bg-muted"),children:[d.jsx(S_,{className:"mr-2 h-4 w-4"}),d.jsx("span",{className:"flex-1 text-left",children:a.auth.binding}),d.jsx(Yx,{className:"h-3.5 w-3.5 text-muted-foreground",title:"Ploy Auth tables (users & sessions)"})]})})})]}),s.length>0&&d.jsxs("div",{children:[d.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Queues"}),d.jsx("div",{className:"space-y-1",children:s.map(h=>{const m=n.pathname===`/queues/${h}`;return d.jsx(Ea,{to:`/queues/${h}`,children:d.jsxs(Rt,{variant:m?"secondary":"ghost",className:se("w-full justify-start",m&&"bg-muted"),children:[d.jsx(d_,{className:"mr-2 h-4 w-4"}),h]})},h)})})]}),u.length>0&&d.jsxs("div",{children:[d.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Workflows"}),d.jsx("div",{className:"space-y-1",children:u.map(h=>{const m=n.pathname.startsWith(`/workflows/${h}`);return d.jsx(Ea,{to:`/workflows/${h}`,children:d.jsxs(Rt,{variant:m?"secondary":"ghost",className:se("w-full justify-start",m&&"bg-muted"),children:[d.jsx(u_,{className:"mr-2 h-4 w-4"}),h]})},h)})})]}),i.length===0&&s.length===0&&u.length===0&&!(a!=null&&a.auth)&&d.jsx("div",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No bindings configured in ploy.yaml"})]})})]})}function dz(){const{data:n,isLoading:a}=Gt({queryKey:["config"],queryFn:Tp,staleTime:6e4});if(!a&&n){const r=n.db?Object.keys(n.db):[],i=n.queue?Object.keys(n.queue):[],s=n.workflow?Object.keys(n.workflow):[];if(r.length>0)return d.jsx(ju,{to:`/db/${r[0]}`,replace:!0});if(n.auth)return d.jsx(ju,{to:"/auth",replace:!0});if(i.length>0)return d.jsx(ju,{to:`/queues/${i[0]}`,replace:!0});if(s.length>0)return d.jsx(ju,{to:`/workflows/${s[0]}`,replace:!0})}return d.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[d.jsx("h1",{className:"text-2xl font-bold mb-4",children:"Ploy Dev Dashboard"}),a?d.jsx(Dn,{className:"h-6 w-6 animate-spin text-muted-foreground"}):d.jsx("p",{className:"text-muted-foreground",children:"Configure database, queue, or workflow bindings in ploy.yaml to get started."})]})}function fz(){return d.jsxs("div",{className:"min-h-screen bg-background",children:[d.jsx(cz,{}),d.jsx("main",{className:"pl-64",children:d.jsx("div",{className:"container mx-auto px-6 py-4",children:d.jsxs(uR,{children:[d.jsx(Gl,{path:"/",element:d.jsx(dz,{})}),d.jsx(Gl,{path:"/db/:binding",element:d.jsx(J5,{})}),d.jsx(Gl,{path:"/auth",element:d.jsx(X5,{})}),d.jsx(Gl,{path:"/queues/:binding",element:d.jsx(az,{})}),d.jsx(Gl,{path:"/workflows/:binding",element:d.jsx(uz,{})}),d.jsx(Gl,{path:"/workflows/:binding/:executionId",element:d.jsx(oz,{})})]})})})]})}function s2(){const n=window.matchMedia("(prefers-color-scheme: dark)").matches;document.documentElement.classList.toggle("dark",n)}s2();window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",s2);const hz=new FN({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});yC.createRoot(document.getElementById("root")).render(d.jsx(v.StrictMode,{children:d.jsx(tC,{client:hz,children:d.jsx(kR,{children:d.jsx(fz,{})})})}));
|