@meetploy/emulator 1.20.0 → 1.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/ai-binding.d.ts +2 -0
  2. package/dist/ai-binding.js +122 -0
  3. package/dist/ai-binding.js.map +1 -0
  4. package/dist/ai-binding.spec.d.ts +1 -0
  5. package/dist/ai-binding.spec.js +112 -0
  6. package/dist/ai-binding.spec.js.map +1 -0
  7. package/dist/bundler/bundler.js +11 -15
  8. package/dist/bundler/bundler.js.map +1 -1
  9. package/dist/dashboard-dist/assets/main-5M4qXaue.js +359 -0
  10. package/dist/dashboard-dist/index.html +1 -1
  11. package/dist/emulator.js +0 -3
  12. package/dist/emulator.js.map +1 -1
  13. package/dist/nextjs-dev.d.ts +1 -0
  14. package/dist/nextjs-dev.js +268 -13
  15. package/dist/nextjs-dev.js.map +1 -1
  16. package/dist/runtime/ai-runtime.d.ts +1 -0
  17. package/dist/runtime/ai-runtime.js +158 -0
  18. package/dist/runtime/ai-runtime.js.map +1 -0
  19. package/dist/runtime/db-runtime.spec.d.ts +1 -0
  20. package/dist/runtime/db-runtime.spec.js +147 -0
  21. package/dist/runtime/db-runtime.spec.js.map +1 -0
  22. package/dist/runtime/state-runtime.d.ts +1 -1
  23. package/dist/runtime/state-runtime.js +214 -5
  24. package/dist/runtime/state-runtime.js.map +1 -1
  25. package/dist/runtime/state-runtime.spec.d.ts +1 -0
  26. package/dist/runtime/state-runtime.spec.js +158 -0
  27. package/dist/runtime/state-runtime.spec.js.map +1 -0
  28. package/dist/services/dashboard-routes.js +0 -39
  29. package/dist/services/dashboard-routes.js.map +1 -1
  30. package/dist/services/db-service.d.ts +9 -0
  31. package/dist/services/db-service.js +23 -7
  32. package/dist/services/db-service.js.map +1 -1
  33. package/dist/services/db-service.spec.d.ts +1 -0
  34. package/dist/services/db-service.spec.js +69 -0
  35. package/dist/services/db-service.spec.js.map +1 -0
  36. package/dist/services/mock-server.js +2 -7
  37. package/dist/services/mock-server.js.map +1 -1
  38. package/dist/services/state-service.d.ts +25 -0
  39. package/dist/services/state-service.js +81 -6
  40. package/dist/services/state-service.js.map +1 -1
  41. package/dist/services/state-service.spec.d.ts +1 -0
  42. package/dist/services/state-service.spec.js +131 -0
  43. package/dist/services/state-service.spec.js.map +1 -0
  44. package/dist/utils/sqlite.js +19 -0
  45. package/dist/utils/sqlite.js.map +1 -1
  46. package/package.json +1 -1
  47. package/dist/dashboard-dist/assets/main-B6aGGsJM.js +0 -364
  48. package/dist/runtime/cache-runtime.d.ts +0 -1
  49. package/dist/runtime/cache-runtime.js +0 -54
  50. package/dist/runtime/cache-runtime.js.map +0 -1
  51. package/dist/services/cache-service.d.ts +0 -13
  52. package/dist/services/cache-service.js +0 -31
  53. package/dist/services/cache-service.js.map +0 -1
@@ -0,0 +1,359 @@
1
+ var O0=n=>{throw TypeError(n)};var ch=(n,a,r)=>a.has(n)||O0("Cannot "+r);var k=(n,a,r)=>(ch(n,a,"read from private field"),r?r.call(n):a.get(n)),be=(n,a,r)=>a.has(n)?O0("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(n):a.set(n,r),se=(n,a,r,i)=>(ch(n,a,"write to private field"),i?i.call(n,r):a.set(n,r),r),Re=(n,a,r)=>(ch(n,a,"access private method"),r);var Uu=(n,a,r,i)=>({set _(s){se(n,a,s,r)},get _(){return k(n,a,i)}});function pN(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 c=Object.getOwnPropertyDescriptor(i,s);c&&Object.defineProperty(n,s,c.get?c:{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 c of s)if(c.type==="childList")for(const h of c.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&i(h)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();function cb(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var dh={exports:{}},Go={};/**
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 z0;function vN(){if(z0)return Go;z0=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(i,s,c){var h=null;if(c!==void 0&&(h=""+c),s.key!==void 0&&(h=""+s.key),"key"in s){c={};for(var m in s)m!=="key"&&(c[m]=s[m])}else c=s;return s=c.ref,{$$typeof:n,type:i,key:h,ref:s!==void 0?s:null,props:c}}return Go.Fragment=a,Go.jsx=r,Go.jsxs=r,Go}var L0;function gN(){return L0||(L0=1,dh.exports=vN()),dh.exports}var u=gN(),Ai=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(){}},ur=typeof window>"u"||"Deno"in globalThis;function En(){}function yN(n,a){return typeof n=="function"?n(a):n}function Lh(n){return typeof n=="number"&&n>=0&&n!==1/0}function db(n,a){return Math.max(n+(a||0)-Date.now(),0)}function ui(n,a){return typeof n=="function"?n(a):n}function Ln(n,a){return typeof n=="function"?n(a):n}function U0(n,a){const{type:r="all",exact:i,fetchStatus:s,predicate:c,queryKey:h,stale:m}=n;if(h){if(i){if(a.queryHash!==Sm(h,a.options))return!1}else if(!es(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||c&&!c(a))}function q0(n,a){const{exact:r,status:i,predicate:s,mutationKey:c}=n;if(c){if(!a.options.mutationKey)return!1;if(r){if(cr(a.options.mutationKey)!==cr(c))return!1}else if(!es(a.options.mutationKey,c))return!1}return!(i&&a.state.status!==i||s&&!s(a))}function Sm(n,a){return((a==null?void 0:a.queryKeyHashFn)||cr)(n)}function cr(n){return JSON.stringify(n,(a,r)=>Uh(r)?Object.keys(r).sort().reduce((i,s)=>(i[s]=r[s],i),{}):r)}function es(n,a){return n===a?!0:typeof n!=typeof a?!1:n&&a&&typeof n=="object"&&typeof a=="object"?Object.keys(a).every(r=>es(n[r],a[r])):!1}function fb(n,a){if(n===a)return n;const r=H0(n)&&H0(a);if(r||Uh(n)&&Uh(a)){const i=r?n:Object.keys(n),s=i.length,c=r?a:Object.keys(a),h=c.length,m=r?[]:{};let p=0;for(let g=0;g<h;g++){const y=r?g:c[g];(!r&&i.includes(y)||r)&&n[y]===void 0&&a[y]===void 0?(m[y]=void 0,p++):(m[y]=fb(n[y],a[y]),m[y]===n[y]&&n[y]!==void 0&&p++)}return s===h&&p===s?n:m}return a}function nc(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 H0(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Uh(n){if(!B0(n))return!1;const a=n.constructor;if(a===void 0)return!0;const r=a.prototype;return!(!B0(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function B0(n){return Object.prototype.toString.call(n)==="[object Object]"}function xN(n){return new Promise(a=>{setTimeout(a,n)})}function qh(n,a,r){return typeof r.structuralSharing=="function"?r.structuralSharing(n,a):r.structuralSharing!==!1?fb(n,a):a}function bN(n,a,r=0){const i=[...n,a];return r&&i.length>r?i.slice(1):i}function wN(n,a,r=0){const i=[a,...n];return r&&i.length>r?i.slice(0,-1):i}var jm=Symbol();function hb(n,a){return!n.queryFn&&(a!=null&&a.initialPromise)?()=>a.initialPromise:!n.queryFn||n.queryFn===jm?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}var tr,vl,hi,eb,SN=(eb=class extends Ai{constructor(){super();be(this,tr);be(this,vl);be(this,hi);se(this,hi,a=>{if(!ur&&window.addEventListener){const r=()=>a();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){k(this,vl)||this.setEventListener(k(this,hi))}onUnsubscribe(){var a;this.hasListeners()||((a=k(this,vl))==null||a.call(this),se(this,vl,void 0))}setEventListener(a){var r;se(this,hi,a),(r=k(this,vl))==null||r.call(this),se(this,vl,a(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(a){k(this,tr)!==a&&(se(this,tr,a),this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(r=>{r(a)})}isFocused(){var a;return typeof k(this,tr)=="boolean"?k(this,tr):((a=globalThis.document)==null?void 0:a.visibilityState)!=="hidden"}},tr=new WeakMap,vl=new WeakMap,hi=new WeakMap,eb),Em=new SN,mi,gl,pi,tb,jN=(tb=class extends Ai{constructor(){super();be(this,mi,!0);be(this,gl);be(this,pi);se(this,pi,a=>{if(!ur&&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(){k(this,gl)||this.setEventListener(k(this,pi))}onUnsubscribe(){var a;this.hasListeners()||((a=k(this,gl))==null||a.call(this),se(this,gl,void 0))}setEventListener(a){var r;se(this,pi,a),(r=k(this,gl))==null||r.call(this),se(this,gl,a(this.setOnline.bind(this)))}setOnline(a){k(this,mi)!==a&&(se(this,mi,a),this.listeners.forEach(i=>{i(a)}))}isOnline(){return k(this,mi)}},mi=new WeakMap,gl=new WeakMap,pi=new WeakMap,tb),ac=new jN;function Hh(){let n,a;const r=new Promise((s,c)=>{n=s,a=c});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 EN(n){return Math.min(1e3*2**n,3e4)}function mb(n){return(n??"online")==="online"?ac.isOnline():!0}var pb=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function fh(n){return n instanceof pb}function vb(n){let a=!1,r=0,i=!1,s;const c=Hh(),h=S=>{var C;i||(w(new pb(S)),(C=n.abort)==null||C.call(n))},m=()=>{a=!0},p=()=>{a=!1},g=()=>Em.isFocused()&&(n.networkMode==="always"||ac.isOnline())&&n.canRun(),y=()=>mb(n.networkMode)&&n.canRun(),x=S=>{var C;i||(i=!0,(C=n.onSuccess)==null||C.call(n,S),s==null||s(),c.resolve(S))},w=S=>{var C;i||(i=!0,(C=n.onError)==null||C.call(n,S),s==null||s(),c.reject(S))},j=()=>new Promise(S=>{var C;s=_=>{(i||g())&&S(_)},(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(_){S=Promise.reject(_)}Promise.resolve(S).then(x).catch(_=>{var K;if(i)return;const T=n.retry??(ur?0:3),R=n.retryDelay??EN,D=typeof R=="function"?R(r,_):R,L=T===!0||typeof T=="number"&&r<T||typeof T=="function"&&T(r,_);if(a||!L){w(_);return}r++,(K=n.onFail)==null||K.call(n,r,_),xN(D).then(()=>g()?void 0:j()).then(()=>{a?w(_):E()})})};return{promise:c,cancel:h,continue:()=>(s==null||s(),c),cancelRetry:m,continueRetry:p,canStart:y,start:()=>(y()?E():j().then(E),c)}}var NN=n=>setTimeout(n,0);function CN(){let n=[],a=0,r=m=>{m()},i=m=>{m()},s=NN;const c=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)=>{c(()=>{m(...p)})},schedule:c,setNotifyFunction:m=>{r=m},setBatchNotifyFunction:m=>{i=m},setScheduler:m=>{s=m}}}var bt=CN(),nr,nb,gb=(nb=class{constructor(){be(this,nr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Lh(this.gcTime)&&se(this,nr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(ur?1/0:300*1e3))}clearGcTimeout(){k(this,nr)&&(clearTimeout(k(this,nr)),se(this,nr,void 0))}},nr=new WeakMap,nb),vi,gi,jn,ar,Lt,is,lr,On,_a,ab,_N=(ab=class extends gb{constructor(a){super();be(this,On);be(this,vi);be(this,gi);be(this,jn);be(this,ar);be(this,Lt);be(this,is);be(this,lr);se(this,lr,!1),se(this,is,a.defaultOptions),this.setOptions(a.options),this.observers=[],se(this,ar,a.client),se(this,jn,k(this,ar).getQueryCache()),this.queryKey=a.queryKey,this.queryHash=a.queryHash,se(this,vi,TN(this.options)),this.state=a.state??k(this,vi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var a;return(a=k(this,Lt))==null?void 0:a.promise}setOptions(a){this.options={...k(this,is),...a},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,jn).remove(this)}setData(a,r){const i=qh(this.state.data,a,this.options);return Re(this,On,_a).call(this,{data:i,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),i}setState(a,r){Re(this,On,_a).call(this,{type:"setState",state:a,setStateOptions:r})}cancel(a){var i,s;const r=(i=k(this,Lt))==null?void 0:i.promise;return(s=k(this,Lt))==null||s.cancel(a),r?r.then(En).catch(En):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,vi))}isActive(){return this.observers.some(a=>Ln(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===jm||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||!db(this.state.dataUpdatedAt,a)}onFocus(){var r;const a=this.observers.find(i=>i.shouldFetchOnWindowFocus());a==null||a.refetch({cancelRefetch:!1}),(r=k(this,Lt))==null||r.continue()}onOnline(){var r;const a=this.observers.find(i=>i.shouldFetchOnReconnect());a==null||a.refetch({cancelRefetch:!1}),(r=k(this,Lt))==null||r.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),k(this,jn).notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(r=>r!==a),this.observers.length||(k(this,Lt)&&(k(this,lr)?k(this,Lt).cancel({revert:!0}):k(this,Lt).cancelRetry()),this.scheduleGc()),k(this,jn).notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Re(this,On,_a).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(k(this,Lt))return k(this,Lt).continueRetry(),k(this,Lt).promise}if(a&&this.setOptions(a),!this.options.queryFn){const x=this.observers.find(w=>w.options.queryFn);x&&this.setOptions(x.options)}const i=new AbortController,s=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(se(this,lr,!0),i.signal)})},c=()=>{const x=hb(this.options,r),w={client:k(this,ar),queryKey:this.queryKey,meta:this.meta};return s(w),se(this,lr,!1),this.options.persister?this.options.persister(x,w,this):x(w)},h={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:k(this,ar),state:this.state,fetchFn:c};s(h),(p=this.options.behavior)==null||p.onFetch(h,this),se(this,gi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=h.fetchOptions)==null?void 0:g.meta))&&Re(this,On,_a).call(this,{type:"fetch",meta:(y=h.fetchOptions)==null?void 0:y.meta});const m=x=>{var w,j,E,S;fh(x)&&x.silent||Re(this,On,_a).call(this,{type:"error",error:x}),fh(x)||((j=(w=k(this,jn).config).onError)==null||j.call(w,x,this),(S=(E=k(this,jn).config).onSettled)==null||S.call(E,this.state.data,x,this)),this.scheduleGc()};return se(this,Lt,vb({initialPromise:r==null?void 0:r.initialPromise,fn:h.fetchFn,abort:i.abort.bind(i),onSuccess:x=>{var w,j,E,S;if(x===void 0){m(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(x)}catch(C){m(C);return}(j=(w=k(this,jn).config).onSuccess)==null||j.call(w,x,this),(S=(E=k(this,jn).config).onSettled)==null||S.call(E,x,this.state.error,this),this.scheduleGc()},onError:m,onFail:(x,w)=>{Re(this,On,_a).call(this,{type:"failed",failureCount:x,error:w})},onPause:()=>{Re(this,On,_a).call(this,{type:"pause"})},onContinue:()=>{Re(this,On,_a).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0})),k(this,Lt).start()}},vi=new WeakMap,gi=new WeakMap,jn=new WeakMap,ar=new WeakMap,Lt=new WeakMap,is=new WeakMap,lr=new WeakMap,On=new WeakSet,_a=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,...yb(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 fh(s)&&s.revert&&k(this,gi)?{...k(this,gi),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),bt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),k(this,jn).notify({query:this,type:"updated",action:a})})},ab);function yb(n,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:mb(a.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function TN(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 Zn,lb,RN=(lb=class extends Ai{constructor(a={}){super();be(this,Zn);this.config=a,se(this,Zn,new Map)}build(a,r,i){const s=r.queryKey,c=r.queryHash??Sm(s,r);let h=this.get(c);return h||(h=new _N({client:a,queryKey:s,queryHash:c,options:a.defaultQueryOptions(r),state:i,defaultOptions:a.getQueryDefaults(s)}),this.add(h)),h}add(a){k(this,Zn).has(a.queryHash)||(k(this,Zn).set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const r=k(this,Zn).get(a.queryHash);r&&(a.destroy(),r===a&&k(this,Zn).delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){bt.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return k(this,Zn).get(a)}getAll(){return[...k(this,Zn).values()]}find(a){const r={exact:!0,...a};return this.getAll().find(i=>U0(r,i))}findAll(a={}){const r=this.getAll();return Object.keys(a).length>0?r.filter(i=>U0(a,i)):r}notify(a){bt.batch(()=>{this.listeners.forEach(r=>{r(a)})})}onFocus(){bt.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){bt.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},Zn=new WeakMap,lb),Pn,qt,rr,Jn,ml,rb,MN=(rb=class extends gb{constructor(a){super();be(this,Jn);be(this,Pn);be(this,qt);be(this,rr);this.mutationId=a.mutationId,se(this,qt,a.mutationCache),se(this,Pn,[]),this.state=a.state||xb(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){k(this,Pn).includes(a)||(k(this,Pn).push(a),this.clearGcTimeout(),k(this,qt).notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){se(this,Pn,k(this,Pn).filter(r=>r!==a)),this.scheduleGc(),k(this,qt).notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){k(this,Pn).length||(this.state.status==="pending"?this.scheduleGc():k(this,qt).remove(this))}continue(){var a;return((a=k(this,rr))==null?void 0:a.continue())??this.execute(this.state.variables)}async execute(a){var c,h,m,p,g,y,x,w,j,E,S,C,_,T,R,D,L,K,H,q;const r=()=>{Re(this,Jn,ml).call(this,{type:"continue"})};se(this,rr,vb({fn:()=>this.options.mutationFn?this.options.mutationFn(a):Promise.reject(new Error("No mutationFn found")),onFail:($,te)=>{Re(this,Jn,ml).call(this,{type:"failed",failureCount:$,error:te})},onPause:()=>{Re(this,Jn,ml).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>k(this,qt).canRun(this)}));const i=this.state.status==="pending",s=!k(this,rr).canStart();try{if(i)r();else{Re(this,Jn,ml).call(this,{type:"pending",variables:a,isPaused:s}),await((h=(c=k(this,qt).config).onMutate)==null?void 0:h.call(c,a,this));const te=await((p=(m=this.options).onMutate)==null?void 0:p.call(m,a));te!==this.state.context&&Re(this,Jn,ml).call(this,{type:"pending",context:te,variables:a,isPaused:s})}const $=await k(this,rr).start();return await((y=(g=k(this,qt).config).onSuccess)==null?void 0:y.call(g,$,a,this.state.context,this)),await((w=(x=this.options).onSuccess)==null?void 0:w.call(x,$,a,this.state.context)),await((E=(j=k(this,qt).config).onSettled)==null?void 0:E.call(j,$,null,this.state.variables,this.state.context,this)),await((C=(S=this.options).onSettled)==null?void 0:C.call(S,$,null,a,this.state.context)),Re(this,Jn,ml).call(this,{type:"success",data:$}),$}catch($){try{throw await((T=(_=k(this,qt).config).onError)==null?void 0:T.call(_,$,a,this.state.context,this)),await((D=(R=this.options).onError)==null?void 0:D.call(R,$,a,this.state.context)),await((K=(L=k(this,qt).config).onSettled)==null?void 0:K.call(L,void 0,$,this.state.variables,this.state.context,this)),await((q=(H=this.options).onSettled)==null?void 0:q.call(H,void 0,$,a,this.state.context)),$}finally{Re(this,Jn,ml).call(this,{type:"error",error:$})}}finally{k(this,qt).runNext(this)}}},Pn=new WeakMap,qt=new WeakMap,rr=new WeakMap,Jn=new WeakSet,ml=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),bt.batch(()=>{k(this,Pn).forEach(i=>{i.onMutationUpdate(a)}),k(this,qt).notify({mutation:this,type:"updated",action:a})})},rb);function xb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ta,zn,os,ib,AN=(ib=class extends Ai{constructor(a={}){super();be(this,Ta);be(this,zn);be(this,os);this.config=a,se(this,Ta,new Set),se(this,zn,new Map),se(this,os,0)}build(a,r,i){const s=new MN({mutationCache:this,mutationId:++Uu(this,os)._,options:a.defaultMutationOptions(r),state:i});return this.add(s),s}add(a){k(this,Ta).add(a);const r=qu(a);if(typeof r=="string"){const i=k(this,zn).get(r);i?i.push(a):k(this,zn).set(r,[a])}this.notify({type:"added",mutation:a})}remove(a){if(k(this,Ta).delete(a)){const r=qu(a);if(typeof r=="string"){const i=k(this,zn).get(r);if(i)if(i.length>1){const s=i.indexOf(a);s!==-1&&i.splice(s,1)}else i[0]===a&&k(this,zn).delete(r)}}this.notify({type:"removed",mutation:a})}canRun(a){const r=qu(a);if(typeof r=="string"){const i=k(this,zn).get(r),s=i==null?void 0:i.find(c=>c.state.status==="pending");return!s||s===a}else return!0}runNext(a){var i;const r=qu(a);if(typeof r=="string"){const s=(i=k(this,zn).get(r))==null?void 0:i.find(c=>c!==a&&c.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){bt.batch(()=>{k(this,Ta).forEach(a=>{this.notify({type:"removed",mutation:a})}),k(this,Ta).clear(),k(this,zn).clear()})}getAll(){return Array.from(k(this,Ta))}find(a){const r={exact:!0,...a};return this.getAll().find(i=>q0(r,i))}findAll(a={}){return this.getAll().filter(r=>q0(a,r))}notify(a){bt.batch(()=>{this.listeners.forEach(r=>{r(a)})})}resumePausedMutations(){const a=this.getAll().filter(r=>r.state.isPaused);return bt.batch(()=>Promise.all(a.map(r=>r.continue().catch(En))))}},Ta=new WeakMap,zn=new WeakMap,os=new WeakMap,ib);function qu(n){var a;return(a=n.options.scope)==null?void 0:a.id}function Q0(n){return{onFetch:(a,r)=>{var y,x,w,j,E;const i=a.options,s=(w=(x=(y=a.fetchOptions)==null?void 0:y.meta)==null?void 0:x.fetchMore)==null?void 0:w.direction,c=((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=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>(a.signal.aborted?S=!0:a.signal.addEventListener("abort",()=>{S=!0}),a.signal)})},_=hb(a.options,a.fetchOptions),T=async(R,D,L)=>{if(S)return Promise.reject();if(D==null&&R.pages.length)return Promise.resolve(R);const K={client:a.client,queryKey:a.queryKey,pageParam:D,direction:L?"backward":"forward",meta:a.options.meta};C(K);const H=await _(K),{maxPages:q}=a.options,$=L?wN:bN;return{pages:$(R.pages,H,q),pageParams:$(R.pageParams,D,q)}};if(s&&c.length){const R=s==="backward",D=R?kN:G0,L={pages:c,pageParams:h},K=D(i,L);m=await T(L,K,R)}else{const R=n??c.length;do{const D=p===0?h[0]??i.initialPageParam:G0(i,m);if(p>0&&D==null)break;m=await T(m,D),p++}while(p<R)}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 G0(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 kN(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 ot,yl,xl,yi,xi,bl,bi,wi,ob,DN=(ob=class{constructor(n={}){be(this,ot);be(this,yl);be(this,xl);be(this,yi);be(this,xi);be(this,bl);be(this,bi);be(this,wi);se(this,ot,n.queryCache||new RN),se(this,yl,n.mutationCache||new AN),se(this,xl,n.defaultOptions||{}),se(this,yi,new Map),se(this,xi,new Map),se(this,bl,0)}mount(){Uu(this,bl)._++,k(this,bl)===1&&(se(this,bi,Em.subscribe(async n=>{n&&(await this.resumePausedMutations(),k(this,ot).onFocus())})),se(this,wi,ac.subscribe(async n=>{n&&(await this.resumePausedMutations(),k(this,ot).onOnline())})))}unmount(){var n,a;Uu(this,bl)._--,k(this,bl)===0&&((n=k(this,bi))==null||n.call(this),se(this,bi,void 0),(a=k(this,wi))==null||a.call(this),se(this,wi,void 0))}isFetching(n){return k(this,ot).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return k(this,yl).findAll({...n,status:"pending"}).length}getQueryData(n){var r;const a=this.defaultQueryOptions({queryKey:n});return(r=k(this,ot).get(a.queryHash))==null?void 0:r.state.data}ensureQueryData(n){const a=this.defaultQueryOptions(n),r=k(this,ot).build(this,a),i=r.state.data;return i===void 0?this.fetchQuery(n):(n.revalidateIfStale&&r.isStaleByTime(ui(a.staleTime,r))&&this.prefetchQuery(a),Promise.resolve(i))}getQueriesData(n){return k(this,ot).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=k(this,ot).get(i.queryHash),c=s==null?void 0:s.state.data,h=yN(a,c);if(h!==void 0)return k(this,ot).build(this,i).setData(h,{...r,manual:!0})}setQueriesData(n,a,r){return bt.batch(()=>k(this,ot).findAll(n).map(({queryKey:i})=>[i,this.setQueryData(i,a,r)]))}getQueryState(n){var r;const a=this.defaultQueryOptions({queryKey:n});return(r=k(this,ot).get(a.queryHash))==null?void 0:r.state}removeQueries(n){const a=k(this,ot);bt.batch(()=>{a.findAll(n).forEach(r=>{a.remove(r)})})}resetQueries(n,a){const r=k(this,ot);return bt.batch(()=>(r.findAll(n).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...n},a)))}cancelQueries(n,a={}){const r={revert:!0,...a},i=bt.batch(()=>k(this,ot).findAll(n).map(s=>s.cancel(r)));return Promise.all(i).then(En).catch(En)}invalidateQueries(n,a={}){return bt.batch(()=>(k(this,ot).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=bt.batch(()=>k(this,ot).findAll(n).filter(s=>!s.isDisabled()).map(s=>{let c=s.fetch(void 0,r);return r.throwOnError||(c=c.catch(En)),s.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(i).then(En)}fetchQuery(n){const a=this.defaultQueryOptions(n);a.retry===void 0&&(a.retry=!1);const r=k(this,ot).build(this,a);return r.isStaleByTime(ui(a.staleTime,r))?r.fetch(a):Promise.resolve(r.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(En).catch(En)}fetchInfiniteQuery(n){return n.behavior=Q0(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(En).catch(En)}ensureInfiniteQueryData(n){return n.behavior=Q0(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return ac.isOnline()?k(this,yl).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,ot)}getMutationCache(){return k(this,yl)}getDefaultOptions(){return k(this,xl)}setDefaultOptions(n){se(this,xl,n)}setQueryDefaults(n,a){k(this,yi).set(cr(n),{queryKey:n,defaultOptions:a})}getQueryDefaults(n){const a=[...k(this,yi).values()],r={};return a.forEach(i=>{es(n,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(n,a){k(this,xi).set(cr(n),{mutationKey:n,defaultOptions:a})}getMutationDefaults(n){const a=[...k(this,xi).values()],r={};return a.forEach(i=>{es(n,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(n){if(n._defaulted)return n;const a={...k(this,xl).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return a.queryHash||(a.queryHash=Sm(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===jm&&(a.enabled=!1),a}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...k(this,xl).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){k(this,ot).clear(),k(this,yl).clear()}},ot=new WeakMap,yl=new WeakMap,xl=new WeakMap,yi=new WeakMap,xi=new WeakMap,bl=new WeakMap,bi=new WeakMap,wi=new WeakMap,ob),Xt,qe,ss,Ht,ir,Si,wl,Sl,us,ji,Ei,or,sr,jl,Ni,$e,Xo,Bh,Qh,Gh,$h,Yh,Vh,Kh,bb,sb,ON=(sb=class extends Ai{constructor(a,r){super();be(this,$e);be(this,Xt);be(this,qe);be(this,ss);be(this,Ht);be(this,ir);be(this,Si);be(this,wl);be(this,Sl);be(this,us);be(this,ji);be(this,Ei);be(this,or);be(this,sr);be(this,jl);be(this,Ni,new Set);this.options=r,se(this,Xt,a),se(this,Sl,null),se(this,wl,Hh()),this.options.experimental_prefetchInRender||k(this,wl).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&&(k(this,qe).addObserver(this),$0(k(this,qe),this.options)?Re(this,$e,Xo).call(this):this.updateResult(),Re(this,$e,$h).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Xh(k(this,qe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Xh(k(this,qe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Re(this,$e,Yh).call(this),Re(this,$e,Vh).call(this),k(this,qe).removeObserver(this)}setOptions(a){const r=this.options,i=k(this,qe);if(this.options=k(this,Xt).defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ln(this.options.enabled,k(this,qe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Re(this,$e,Kh).call(this),k(this,qe).setOptions(this.options),r._defaulted&&!nc(this.options,r)&&k(this,Xt).getQueryCache().notify({type:"observerOptionsUpdated",query:k(this,qe),observer:this});const s=this.hasListeners();s&&Y0(k(this,qe),i,this.options,r)&&Re(this,$e,Xo).call(this),this.updateResult(),s&&(k(this,qe)!==i||Ln(this.options.enabled,k(this,qe))!==Ln(r.enabled,k(this,qe))||ui(this.options.staleTime,k(this,qe))!==ui(r.staleTime,k(this,qe)))&&Re(this,$e,Bh).call(this);const c=Re(this,$e,Qh).call(this);s&&(k(this,qe)!==i||Ln(this.options.enabled,k(this,qe))!==Ln(r.enabled,k(this,qe))||c!==k(this,jl))&&Re(this,$e,Gh).call(this,c)}getOptimisticResult(a){const r=k(this,Xt).getQueryCache().build(k(this,Xt),a),i=this.createResult(r,a);return LN(this,i)&&(se(this,Ht,i),se(this,Si,this.options),se(this,ir,k(this,qe).state)),i}getCurrentResult(){return k(this,Ht)}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){k(this,Ni).add(a)}getCurrentQuery(){return k(this,qe)}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const r=k(this,Xt).defaultQueryOptions(a),i=k(this,Xt).getQueryCache().build(k(this,Xt),r);return i.fetch().then(()=>this.createResult(i,r))}fetch(a){return Re(this,$e,Xo).call(this,{...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,Ht)))}createResult(a,r){var $;const i=k(this,qe),s=this.options,c=k(this,Ht),h=k(this,ir),m=k(this,Si),g=a!==i?a.state:k(this,ss),{state:y}=a;let x={...y},w=!1,j;if(r._optimisticResults){const te=this.hasListeners(),ue=!te&&$0(a,r),ce=te&&Y0(a,i,r,s);(ue||ce)&&(x={...x,...yb(y.data,a.options)}),r._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:E,errorUpdatedAt:S,status:C}=x;j=x.data;let _=!1;if(r.placeholderData!==void 0&&j===void 0&&C==="pending"){let te;c!=null&&c.isPlaceholderData&&r.placeholderData===(m==null?void 0:m.placeholderData)?(te=c.data,_=!0):te=typeof r.placeholderData=="function"?r.placeholderData(($=k(this,Ei))==null?void 0:$.state.data,k(this,Ei)):r.placeholderData,te!==void 0&&(C="success",j=qh(c==null?void 0:c.data,te,r),w=!0)}if(r.select&&j!==void 0&&!_)if(c&&j===(h==null?void 0:h.data)&&r.select===k(this,us))j=k(this,ji);else try{se(this,us,r.select),j=r.select(j),j=qh(c==null?void 0:c.data,j,r),se(this,ji,j),se(this,Sl,null)}catch(te){se(this,Sl,te)}k(this,Sl)&&(E=k(this,Sl),j=k(this,ji),S=Date.now(),C="error");const T=x.fetchStatus==="fetching",R=C==="pending",D=C==="error",L=R&&T,K=j!==void 0,q={status:C,fetchStatus:x.fetchStatus,isPending:R,isSuccess:C==="success",isError:D,isInitialLoading:L,isLoading:L,data:j,dataUpdatedAt:x.dataUpdatedAt,error:E,errorUpdatedAt:S,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:x.dataUpdateCount>0||x.errorUpdateCount>0,isFetchedAfterMount:x.dataUpdateCount>g.dataUpdateCount||x.errorUpdateCount>g.errorUpdateCount,isFetching:T,isRefetching:T&&!R,isLoadingError:D&&!K,isPaused:x.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:D&&K,isStale:Nm(a,r),refetch:this.refetch,promise:k(this,wl)};if(this.options.experimental_prefetchInRender){const te=W=>{q.status==="error"?W.reject(q.error):q.data!==void 0&&W.resolve(q.data)},ue=()=>{const W=se(this,wl,q.promise=Hh());te(W)},ce=k(this,wl);switch(ce.status){case"pending":a.queryHash===i.queryHash&&te(ce);break;case"fulfilled":(q.status==="error"||q.data!==ce.value)&&ue();break;case"rejected":(q.status!=="error"||q.error!==ce.reason)&&ue();break}}return q}updateResult(){const a=k(this,Ht),r=this.createResult(k(this,qe),this.options);if(se(this,ir,k(this,qe).state),se(this,Si,this.options),k(this,ir).data!==void 0&&se(this,Ei,k(this,qe)),nc(r,a))return;se(this,Ht,r);const i=()=>{if(!a)return!0;const{notifyOnChangeProps:s}=this.options,c=typeof s=="function"?s():s;if(c==="all"||!c&&!k(this,Ni).size)return!0;const h=new Set(c??k(this,Ni));return this.options.throwOnError&&h.add("error"),Object.keys(k(this,Ht)).some(m=>{const p=m;return k(this,Ht)[p]!==a[p]&&h.has(p)})};Re(this,$e,bb).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Re(this,$e,$h).call(this)}},Xt=new WeakMap,qe=new WeakMap,ss=new WeakMap,Ht=new WeakMap,ir=new WeakMap,Si=new WeakMap,wl=new WeakMap,Sl=new WeakMap,us=new WeakMap,ji=new WeakMap,Ei=new WeakMap,or=new WeakMap,sr=new WeakMap,jl=new WeakMap,Ni=new WeakMap,$e=new WeakSet,Xo=function(a){Re(this,$e,Kh).call(this);let r=k(this,qe).fetch(this.options,a);return a!=null&&a.throwOnError||(r=r.catch(En)),r},Bh=function(){Re(this,$e,Yh).call(this);const a=ui(this.options.staleTime,k(this,qe));if(ur||k(this,Ht).isStale||!Lh(a))return;const i=db(k(this,Ht).dataUpdatedAt,a)+1;se(this,or,setTimeout(()=>{k(this,Ht).isStale||this.updateResult()},i))},Qh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,qe)):this.options.refetchInterval)??!1},Gh=function(a){Re(this,$e,Vh).call(this),se(this,jl,a),!(ur||Ln(this.options.enabled,k(this,qe))===!1||!Lh(k(this,jl))||k(this,jl)===0)&&se(this,sr,setInterval(()=>{(this.options.refetchIntervalInBackground||Em.isFocused())&&Re(this,$e,Xo).call(this)},k(this,jl)))},$h=function(){Re(this,$e,Bh).call(this),Re(this,$e,Gh).call(this,Re(this,$e,Qh).call(this))},Yh=function(){k(this,or)&&(clearTimeout(k(this,or)),se(this,or,void 0))},Vh=function(){k(this,sr)&&(clearInterval(k(this,sr)),se(this,sr,void 0))},Kh=function(){const a=k(this,Xt).getQueryCache().build(k(this,Xt),this.options);if(a===k(this,qe))return;const r=k(this,qe);se(this,qe,a),se(this,ss,a.state),this.hasListeners()&&(r==null||r.removeObserver(this),a.addObserver(this))},bb=function(a){bt.batch(()=>{a.listeners&&this.listeners.forEach(r=>{r(k(this,Ht))}),k(this,Xt).getQueryCache().notify({query:k(this,qe),type:"observerResultsUpdated"})})},sb);function zN(n,a){return Ln(a.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&a.retryOnMount===!1)}function $0(n,a){return zN(n,a)||n.state.data!==void 0&&Xh(n,a,a.refetchOnMount)}function Xh(n,a,r){if(Ln(a.enabled,n)!==!1){const i=typeof r=="function"?r(n):r;return i==="always"||i!==!1&&Nm(n,a)}return!1}function Y0(n,a,r,i){return(n!==a||Ln(i.enabled,n)===!1)&&(!r.suspense||n.state.status!=="error")&&Nm(n,r)}function Nm(n,a){return Ln(a.enabled,n)!==!1&&n.isStaleByTime(ui(a.staleTime,n))}function LN(n,a){return!nc(n.getCurrentResult(),a)}var El,Nl,Ft,Ra,Aa,Zu,Fh,ub,UN=(ub=class extends Ai{constructor(r,i){super();be(this,Aa);be(this,El);be(this,Nl);be(this,Ft);be(this,Ra);se(this,El,r),this.setOptions(i),this.bindMethods(),Re(this,Aa,Zu).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=k(this,El).defaultMutationOptions(r),nc(this.options,i)||k(this,El).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,Ft),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&cr(i.mutationKey)!==cr(this.options.mutationKey)?this.reset():((s=k(this,Ft))==null?void 0:s.state.status)==="pending"&&k(this,Ft).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=k(this,Ft))==null||r.removeObserver(this)}onMutationUpdate(r){Re(this,Aa,Zu).call(this),Re(this,Aa,Fh).call(this,r)}getCurrentResult(){return k(this,Nl)}reset(){var r;(r=k(this,Ft))==null||r.removeObserver(this),se(this,Ft,void 0),Re(this,Aa,Zu).call(this),Re(this,Aa,Fh).call(this)}mutate(r,i){var s;return se(this,Ra,i),(s=k(this,Ft))==null||s.removeObserver(this),se(this,Ft,k(this,El).getMutationCache().build(k(this,El),this.options)),k(this,Ft).addObserver(this),k(this,Ft).execute(r)}},El=new WeakMap,Nl=new WeakMap,Ft=new WeakMap,Ra=new WeakMap,Aa=new WeakSet,Zu=function(){var i;const r=((i=k(this,Ft))==null?void 0:i.state)??xb();se(this,Nl,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Fh=function(r){bt.batch(()=>{var i,s,c,h,m,p,g,y;if(k(this,Ra)&&this.hasListeners()){const x=k(this,Nl).variables,w=k(this,Nl).context;(r==null?void 0:r.type)==="success"?((s=(i=k(this,Ra)).onSuccess)==null||s.call(i,r.data,x,w),(h=(c=k(this,Ra)).onSettled)==null||h.call(c,r.data,null,x,w)):(r==null?void 0:r.type)==="error"&&((p=(m=k(this,Ra)).onError)==null||p.call(m,r.error,x,w),(y=(g=k(this,Ra)).onSettled)==null||y.call(g,void 0,r.error,x,w))}this.listeners.forEach(x=>{x(k(this,Nl))})})},ub),hh={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 V0;function qN(){if(V0)return Ce;V0=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"),c=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"),x=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 _(A,F,ee){this.props=A,this.context=F,this.refs=C,this.updater=ee||E}_.prototype.isReactComponent={},_.prototype.setState=function(A,F){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,F,"setState")},_.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function T(){}T.prototype=_.prototype;function R(A,F,ee){this.props=A,this.context=F,this.refs=C,this.updater=ee||E}var D=R.prototype=new T;D.constructor=R,S(D,_.prototype),D.isPureReactComponent=!0;var L=Array.isArray;function K(){}var H={H:null,A:null,T:null,S:null},q=Object.prototype.hasOwnProperty;function $(A,F,ee){var le=ee.ref;return{$$typeof:n,type:A,key:F,ref:le!==void 0?le:null,props:ee}}function te(A,F){return $(A.type,F,A.props)}function ue(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function ce(A){var F={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(ee){return F[ee]})}var W=/\/+/g;function ie(A,F){return typeof A=="object"&&A!==null&&A.key!=null?ce(""+A.key):F.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(K,K):(A.status="pending",A.then(function(F){A.status==="pending"&&(A.status="fulfilled",A.value=F)},function(F){A.status==="pending"&&(A.status="rejected",A.reason=F)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function U(A,F,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),F,ee,le,ve)}}if(ne)return ve=ve(A),ne=le===""?"."+ie(A,0):le,L(ve)?(ee="",ne!=null&&(ee=ne.replace(W,"$&/")+"/"),U(ve,F,ee,"",function(Ne){return Ne})):ve!=null&&(ue(ve)&&(ve=te(ve,ee+(ve.key==null||A&&A.key===ve.key?"":(""+ve.key).replace(W,"$&/")+"/")+ne)),F.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,F,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,F,ee,je,ve);else if(je==="object"){if(typeof A.then=="function")return U(re(A),F,ee,le,ve);throw F=String(A),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return ne}function I(A,F,ee){if(A==null)return A;var le=[],ve=0;return U(A,le,"","",function(je){return F.call(ee,je,ve++)}),le}function Y(A){if(A._status===-1){var F=A._result;F=F(),F.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=F)}if(A._status===1)return A._result.default;throw A._result}var X=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=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(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},de={map:I,forEach:function(A,F,ee){I(A,function(){F.apply(this,arguments)},ee)},count:function(A){var F=0;return I(A,function(){F++}),F},toArray:function(A){return I(A,function(F){return F})||[]},only:function(A){if(!ue(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return Ce.Activity=x,Ce.Children=de,Ce.Component=_,Ce.Fragment=r,Ce.Profiler=s,Ce.PureComponent=R,Ce.StrictMode=i,Ce.Suspense=p,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(A){return H.H.useMemoCache(A)}},Ce.cache=function(A){return function(){return A.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(A,F,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(F!=null)for(je in F.key!==void 0&&(ve=""+F.key),F)!q.call(F,je)||je==="key"||je==="__self"||je==="__source"||je==="ref"&&F.ref===void 0||(le[je]=F[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 $(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:c,_context:A},A},Ce.createElement=function(A,F,ee){var le,ve={},je=null;if(F!=null)for(le in F.key!==void 0&&(je=""+F.key),F)q.call(F,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(ve[le]=F[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 $(A,je,ve)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(A){return{$$typeof:m,render:A}},Ce.isValidElement=ue,Ce.lazy=function(A){return{$$typeof:y,_payload:{_status:-1,_result:A},_init:Y}},Ce.memo=function(A,F){return{$$typeof:g,type:A,compare:F===void 0?null:F}},Ce.startTransition=function(A){var F=H.T,ee={};H.T=ee;try{var le=A(),ve=H.S;ve!==null&&ve(ee,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(K,X)}catch(je){X(je)}finally{F!==null&&ee.types!==null&&(F.types=ee.types),H.T=F}},Ce.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},Ce.use=function(A){return H.H.use(A)},Ce.useActionState=function(A,F,ee){return H.H.useActionState(A,F,ee)},Ce.useCallback=function(A,F){return H.H.useCallback(A,F)},Ce.useContext=function(A){return H.H.useContext(A)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(A,F){return H.H.useDeferredValue(A,F)},Ce.useEffect=function(A,F){return H.H.useEffect(A,F)},Ce.useEffectEvent=function(A){return H.H.useEffectEvent(A)},Ce.useId=function(){return H.H.useId()},Ce.useImperativeHandle=function(A,F,ee){return H.H.useImperativeHandle(A,F,ee)},Ce.useInsertionEffect=function(A,F){return H.H.useInsertionEffect(A,F)},Ce.useLayoutEffect=function(A,F){return H.H.useLayoutEffect(A,F)},Ce.useMemo=function(A,F){return H.H.useMemo(A,F)},Ce.useOptimistic=function(A,F){return H.H.useOptimistic(A,F)},Ce.useReducer=function(A,F,ee){return H.H.useReducer(A,F,ee)},Ce.useRef=function(A){return H.H.useRef(A)},Ce.useState=function(A){return H.H.useState(A)},Ce.useSyncExternalStore=function(A,F,ee){return H.H.useSyncExternalStore(A,F,ee)},Ce.useTransition=function(){return H.H.useTransition()},Ce.version="19.2.3",Ce}var K0;function Cm(){return K0||(K0=1,hh.exports=qN()),hh.exports}var v=Cm();const st=cb(v),wb=pN({__proto__:null,default:st},[v]);var Sb=v.createContext(void 0),_m=n=>{const a=v.useContext(Sb);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},HN=({client:n,children:a})=>(v.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),u.jsx(Sb.Provider,{value:n,children:a})),jb=v.createContext(!1),BN=()=>v.useContext(jb);jb.Provider;function QN(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var GN=v.createContext(QN()),$N=()=>v.useContext(GN);function Eb(n,a){return typeof n=="function"?n(...a):!!n}function Zh(){}var YN=(n,a)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(a.isReset()||(n.retryOnMount=!1))},VN=n=>{v.useEffect(()=>{n.clearReset()},[n])},KN=({result:n,errorResetBoundary:a,throwOnError:r,query:i,suspense:s})=>n.isError&&!a.isReset()&&!n.isFetching&&i&&(s&&n.data===void 0||Eb(r,[n.error,i])),XN=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)))},FN=(n,a)=>n.isLoading&&n.isFetching&&!a,ZN=(n,a)=>(n==null?void 0:n.suspense)&&a.isPending,X0=(n,a,r)=>a.fetchOptimistic(n).catch(()=>{r.clearReset()});function PN(n,a,r){var x,w,j,E,S;const i=_m(),s=BN(),c=$N(),h=i.defaultQueryOptions(n);(w=(x=i.getDefaultOptions().queries)==null?void 0:x._experimental_beforeQuery)==null||w.call(x,h),h._optimisticResults=s?"isRestoring":"optimistic",XN(h),YN(h,c),VN(c);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 _=y?p.subscribe(bt.batchCalls(C)):Zh;return p.updateResult(),_},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),v.useEffect(()=>{p.setOptions(h)},[h,p]),ZN(h,g))throw X0(h,p,c);if(KN({result:g,errorResetBoundary:c,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&&!ur&&FN(g,s)){const C=m?X0(h,p,c):(S=i.getQueryCache().get(h.queryHash))==null?void 0:S.promise;C==null||C.catch(Zh).finally(()=>{p.updateResult()})}return h.notifyOnChangeProps?g:p.trackResult(g)}function vt(n,a){return PN(n,ON)}function Ph(n,a){const r=_m(),[i]=v.useState(()=>new UN(r,n));v.useEffect(()=>{i.setOptions(n)},[i,n]);const s=v.useSyncExternalStore(v.useCallback(h=>i.subscribe(bt.batchCalls(h)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),c=v.useCallback((h,m)=>{i.mutate(h,m).catch(Zh)},[i]);if(s.error&&Eb(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:c,mutateAsync:s.mutate}}var mh={exports:{}},$o={},ph={exports:{}},vh={};/**
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 F0;function JN(){return F0||(F0=1,(function(n){function a(U,I){var Y=U.length;U.push(I);e:for(;0<Y;){var X=Y-1>>>1,de=U[X];if(0<s(de,I))U[X]=I,U[Y]=de,Y=X;else break e}}function r(U){return U.length===0?null:U[0]}function i(U){if(U.length===0)return null;var I=U[0],Y=U.pop();if(Y!==I){U[0]=Y;e:for(var X=0,de=U.length,A=de>>>1;X<A;){var F=2*(X+1)-1,ee=U[F],le=F+1,ve=U[le];if(0>s(ee,Y))le<de&&0>s(ve,ee)?(U[X]=ve,U[le]=Y,X=le):(U[X]=ee,U[F]=Y,X=F);else if(le<de&&0>s(ve,Y))U[X]=ve,U[le]=Y,X=le;else break e}}return I}function s(U,I){var Y=U.sortIndex-I.sortIndex;return Y!==0?Y:U.id-I.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var h=Date,m=h.now();n.unstable_now=function(){return h.now()-m}}var p=[],g=[],y=1,x=null,w=3,j=!1,E=!1,S=!1,C=!1,_=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function D(U){for(var I=r(g);I!==null;){if(I.callback===null)i(g);else if(I.startTime<=U)i(g),I.sortIndex=I.expirationTime,a(p,I);else break;I=r(g)}}function L(U){if(S=!1,D(U),!E)if(r(p)!==null)E=!0,K||(K=!0,ce());else{var I=r(g);I!==null&&re(L,I.startTime-U)}}var K=!1,H=-1,q=5,$=-1;function te(){return C?!0:!(n.unstable_now()-$<q)}function ue(){if(C=!1,K){var U=n.unstable_now();$=U;var I=!0;try{e:{E=!1,S&&(S=!1,T(H),H=-1),j=!0;var Y=w;try{t:{for(D(U),x=r(p);x!==null&&!(x.expirationTime>U&&te());){var X=x.callback;if(typeof X=="function"){x.callback=null,w=x.priorityLevel;var de=X(x.expirationTime<=U);if(U=n.unstable_now(),typeof de=="function"){x.callback=de,D(U),I=!0;break t}x===r(p)&&i(p),D(U)}else i(p);x=r(p)}if(x!==null)I=!0;else{var A=r(g);A!==null&&re(L,A.startTime-U),I=!1}}break e}finally{x=null,w=Y,j=!1}I=void 0}}finally{I?ce():K=!1}}}var ce;if(typeof R=="function")ce=function(){R(ue)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,ie=W.port2;W.port1.onmessage=ue,ce=function(){ie.postMessage(null)}}else ce=function(){_(ue,0)};function re(U,I){H=_(function(){U(n.unstable_now())},I)}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"):q=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 I=3;break;default:I=w}var Y=w;w=I;try{return U()}finally{w=Y}},n.unstable_requestPaint=function(){C=!0},n.unstable_runWithPriority=function(U,I){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var Y=w;w=U;try{return I()}finally{w=Y}},n.unstable_scheduleCallback=function(U,I,Y){var X=n.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?X+Y:X):Y=X,U){case 1:var de=-1;break;case 2:de=250;break;case 5:de=1073741823;break;case 4:de=1e4;break;default:de=5e3}return de=Y+de,U={id:y++,callback:I,priorityLevel:U,startTime:Y,expirationTime:de,sortIndex:-1},Y>X?(U.sortIndex=Y,a(g,U),r(p)===null&&U===r(g)&&(S?(T(H),H=-1):S=!0,re(L,Y-X))):(U.sortIndex=de,a(p,U),E||j||(E=!0,K||(K=!0,ce()))),U},n.unstable_shouldYield=te,n.unstable_wrapCallback=function(U){var I=w;return function(){var Y=w;w=I;try{return U.apply(this,arguments)}finally{w=Y}}}})(vh)),vh}var Z0;function IN(){return Z0||(Z0=1,ph.exports=JN()),ph.exports}var gh={exports:{}},zt={};/**
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 P0;function WN(){if(P0)return zt;P0=1;var n=Cm();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 c(p,g,y){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:x==null?null:""+x,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 zt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,zt.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 c(p,g,null,y)},zt.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()}},zt.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))},zt.prefetchDNS=function(p){typeof p=="string"&&i.d.D(p)},zt.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var y=g.as,x=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:x,integrity:w,fetchPriority:j}):y==="script"&&i.d.X(p,{crossOrigin:x,integrity:w,fetchPriority:j,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},zt.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)},zt.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,x=m(y,g.crossOrigin);i.d.L(p,y,{crossOrigin:x,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})}},zt.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)},zt.requestFormReset=function(p){i.d.r(p)},zt.unstable_batchedUpdates=function(p,g){return p(g)},zt.useFormState=function(p,g,y){return h.H.useFormState(p,g,y)},zt.useFormStatus=function(){return h.H.useHostTransitionStatus()},zt.version="19.2.3",zt}var J0;function Nb(){if(J0)return gh.exports;J0=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(),gh.exports=WN(),gh.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 I0;function eC(){if(I0)return $o;I0=1;var n=IN(),a=Cm(),r=Nb();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 c(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(c(e)!==e)throw Error(i(188))}function g(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(i(188));return t!==e?null:e}for(var l=e,o=t;;){var d=l.return;if(d===null)break;var f=d.alternate;if(f===null){if(o=d.return,o!==null){l=o;continue}break}if(d.child===f.child){for(f=d.child;f;){if(f===l)return p(d),e;if(f===o)return p(d),t;f=f.sibling}throw Error(i(188))}if(l.return!==o.return)l=d,o=f;else{for(var b=!1,N=d.child;N;){if(N===l){b=!0,l=d,o=f;break}if(N===o){b=!0,o=d,l=f;break}N=N.sibling}if(!b){for(N=f.child;N;){if(N===l){b=!0,l=f,o=d;break}if(N===o){b=!0,o=f,l=d;break}N=N.sibling}if(!b)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 x=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"),_=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),R=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),te=Symbol.for("react.memo_cache_sentinel"),ue=Symbol.iterator;function ce(e){return e===null||typeof e!="object"?null:(e=ue&&e[ue]||e["@@iterator"],typeof e=="function"?e:null)}var W=Symbol.for("react.client.reference");function ie(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===W?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case S:return"Fragment";case _:return"Profiler";case C:return"StrictMode";case L:return"Suspense";case K:return"SuspenseList";case $:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case R:return e.displayName||"Context";case T:return(e._context.displayName||"Context")+".Consumer";case D:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case H:return t=e.displayName||null,t!==null?t:ie(e.type)||"Memo";case q: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,I=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y={pending:!1,data:null,method:null,action:null},X=[],de=-1;function A(e){return{current:e}}function F(e){0>de||(e.current=X[de],X[de]=null,de--)}function ee(e,t){de++,X[de]=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)?a0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=a0(t),e=l0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}F(le),ee(le,e)}function ye(){F(le),F(ve),F(je)}function Ne(e){e.memoizedState!==null&&ee(ne,e);var t=le.current,l=l0(t,e.type);t!==l&&(ee(ve,e),ee(le,l))}function He(e){ve.current===e&&(F(le),F(ve)),ne.current===e&&(F(ne),qo._currentValue=Y)}var Ve,Ot;function Pt(e){if(Ve===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ve=t&&t[1]||"",Ot=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Ve+e+Ot}var ia=!1;function oa(e,t){if(!e||ia)return"";ia=!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(V){var G=V}Reflect.construct(e,[],J)}else{try{J.call()}catch(V){G=V}e.call(J.prototype)}}else{try{throw Error()}catch(V){G=V}(J=e())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(V){if(V&&G&&typeof V.stack=="string")return[V.stack,G.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=o.DetermineComponentFrameRoot(),b=f[0],N=f[1];if(b&&N){var M=b.split(`
44
+ `),Q=N.split(`
45
+ `);for(d=o=0;o<M.length&&!M[o].includes("DetermineComponentFrameRoot");)o++;for(;d<Q.length&&!Q[d].includes("DetermineComponentFrameRoot");)d++;if(o===M.length||d===Q.length)for(o=M.length-1,d=Q.length-1;1<=o&&0<=d&&M[o]!==Q[d];)d--;for(;1<=o&&0<=d;o--,d--)if(M[o]!==Q[d]){if(o!==1||d!==1)do if(o--,d--,0>d||M[o]!==Q[d]){var Z=`
46
+ `+M[o].replace(" at new "," at ");return e.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",e.displayName)),Z}while(1<=o&&0<=d);break}}}finally{ia=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Pt(l):""}function Fc(e,t){switch(e.tag){case 26:case 27:case 5:return Pt(e.type);case 16:return Pt("Lazy");case 13:return e.child!==t&&t!==null?Pt("Suspense Fallback"):Pt("Suspense");case 19:return Pt("SuspenseList");case 0:case 15:return oa(e.type,!1);case 11:return oa(e.type.render,!1);case 1:return oa(e.type,!0);case 31:return Pt("Activity");default:return""}}function xs(e){try{var t="",l=null;do t+=Fc(e,l),l=e,e=e.return;while(e);return t}catch(o){return`
47
+ Error generating stack: `+o.message+`
48
+ `+o.stack}}var Ba=Object.prototype.hasOwnProperty,Zc=n.unstable_scheduleCallback,Pc=n.unstable_cancelCallback,Xj=n.unstable_shouldYield,Fj=n.unstable_requestPaint,Jt=n.unstable_now,Zj=n.unstable_getCurrentPriorityLevel,zp=n.unstable_ImmediatePriority,Lp=n.unstable_UserBlockingPriority,bs=n.unstable_NormalPriority,Pj=n.unstable_LowPriority,Up=n.unstable_IdlePriority,Jj=n.log,Ij=n.unstable_setDisableYieldValue,Zi=null,It=null;function Qa(e){if(typeof Jj=="function"&&Ij(e),It&&typeof It.setStrictMode=="function")try{It.setStrictMode(Zi,e)}catch{}}var Wt=Math.clz32?Math.clz32:t2,Wj=Math.log,e2=Math.LN2;function t2(e){return e>>>=0,e===0?32:31-(Wj(e)/e2|0)|0}var ws=256,Ss=262144,js=4194304;function zl(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 Es(e,t,l){var o=e.pendingLanes;if(o===0)return 0;var d=0,f=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var N=o&134217727;return N!==0?(o=N&~f,o!==0?d=zl(o):(b&=N,b!==0?d=zl(b):l||(l=N&~e,l!==0&&(d=zl(l))))):(N=o&~f,N!==0?d=zl(N):b!==0?d=zl(b):l||(l=o&~e,l!==0&&(d=zl(l)))),d===0?0:t!==0&&t!==d&&(t&f)===0&&(f=d&-d,l=t&-t,f>=l||f===32&&(l&4194048)!==0)?t:d}function Pi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function n2(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 qp(){var e=js;return js<<=1,(js&62914560)===0&&(js=4194304),e}function Jc(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ji(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function a2(e,t,l,o,d,f){var b=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=b&~l;0<l;){var Z=31-Wt(l),J=1<<Z;N[Z]=0,M[Z]=-1;var G=Q[Z];if(G!==null)for(Q[Z]=null,Z=0;Z<G.length;Z++){var V=G[Z];V!==null&&(V.lane&=-536870913)}l&=~J}o!==0&&Hp(e,o,0),f!==0&&d===0&&e.tag!==0&&(e.suspendedLanes|=f&~(b&~t))}function Hp(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-Wt(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|l&261930}function Bp(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var o=31-Wt(l),d=1<<o;d&t|e[o]&t&&(e[o]|=t),l&=~d}}function Qp(e,t){var l=t&-t;return l=(l&42)!==0?1:Ic(l),(l&(e.suspendedLanes|t))!==0?0:l}function Ic(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 Wc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Gp(){var e=I.p;return e!==0?e:(e=window.event,e===void 0?32:_0(e.type))}function $p(e,t){var l=I.p;try{return I.p=e,t()}finally{I.p=l}}var Ga=Math.random().toString(36).slice(2),_t="__reactFiber$"+Ga,Bt="__reactProps$"+Ga,br="__reactContainer$"+Ga,ed="__reactEvents$"+Ga,l2="__reactListeners$"+Ga,r2="__reactHandles$"+Ga,Yp="__reactResources$"+Ga,Ii="__reactMarker$"+Ga;function td(e){delete e[_t],delete e[Bt],delete e[ed],delete e[l2],delete e[r2]}function wr(e){var t=e[_t];if(t)return t;for(var l=e.parentNode;l;){if(t=l[br]||l[_t]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=d0(e);e!==null;){if(l=e[_t])return l;e=d0(e)}return t}e=l,l=e.parentNode}return null}function Sr(e){if(e=e[_t]||e[br]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Wi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function jr(e){var t=e[Yp];return t||(t=e[Yp]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Et(e){e[Ii]=!0}var Vp=new Set,Kp={};function Ll(e,t){Er(e,t),Er(e+"Capture",t)}function Er(e,t){for(Kp[e]=t,e=0;e<t.length;e++)Vp.add(t[e])}var i2=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]*$"),Xp={},Fp={};function o2(e){return Ba.call(Fp,e)?!0:Ba.call(Xp,e)?!1:i2.test(e)?Fp[e]=!0:(Xp[e]=!0,!1)}function Ns(e,t,l){if(o2(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 sa(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 hn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function s2(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 d=o.get,f=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return d.call(this)},set:function(b){l=""+b,f.call(this,b)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return l},setValue:function(b){l=""+b},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function nd(e){if(!e._valueTracker){var t=Zp(e)?"checked":"value";e._valueTracker=s2(e,t,""+e[t])}}function Pp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),o="";return e&&(o=Zp(e)?e.checked?"true":"false":e.value),e=o,e!==l?(t.setValue(e),!0):!1}function _s(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 u2=/[\n"\\]/g;function mn(e){return e.replace(u2,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ad(e,t,l,o,d,f,b,N){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),t!=null?b==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+hn(t)):e.value!==""+hn(t)&&(e.value=""+hn(t)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),t!=null?ld(e,b,hn(t)):l!=null?ld(e,b,hn(l)):o!=null&&e.removeAttribute("value"),d==null&&f!=null&&(e.defaultChecked=!!f),d!=null&&(e.checked=d&&typeof d!="function"&&typeof d!="symbol"),N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?e.name=""+hn(N):e.removeAttribute("name")}function Jp(e,t,l,o,d,f,b,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)){nd(e);return}l=l!=null?""+hn(l):"",t=t!=null?""+hn(t):l,N||t===e.value||(e.value=t),e.defaultValue=t}o=o??d,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=N?e.checked:!!o,e.defaultChecked=!!o,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),nd(e)}function ld(e,t,l){t==="number"&&_s(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Nr(e,t,l,o){if(e=e.options,t){t={};for(var d=0;d<l.length;d++)t["$"+l[d]]=!0;for(l=0;l<e.length;l++)d=t.hasOwnProperty("$"+e[l].value),e[l].selected!==d&&(e[l].selected=d),d&&o&&(e[l].defaultSelected=!0)}else{for(l=""+hn(l),t=null,d=0;d<e.length;d++){if(e[d].value===l){e[d].selected=!0,o&&(e[d].defaultSelected=!0);return}t!==null||e[d].disabled||(t=e[d])}t!==null&&(t.selected=!0)}}function Ip(e,t,l){if(t!=null&&(t=""+hn(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+hn(l):""}function Wp(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=hn(t),e.defaultValue=l,o=e.textContent,o===l&&o!==""&&o!==null&&(e.value=o),nd(e)}function Cr(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 ev(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 tv(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 d in t)o=t[d],t.hasOwnProperty(d)&&l[d]!==o&&ev(e,d,o)}else for(var f in t)t.hasOwnProperty(f)&&ev(e,f,t[f])}function rd(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 d2=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"]]),f2=/^[\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 Ts(e){return f2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ua(){}var id=null;function od(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var _r=null,Tr=null;function nv(e){var t=Sr(e);if(t&&(e=t.stateNode)){var l=e[Bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ad(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="'+mn(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var o=l[t];if(o!==e&&o.form===e.form){var d=o[Bt]||null;if(!d)throw Error(i(90));ad(o,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(t=0;t<l.length;t++)o=l[t],o.form===e.form&&Pp(o)}break e;case"textarea":Ip(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Nr(e,!!l.multiple,t,!1)}}}var sd=!1;function av(e,t,l){if(sd)return e(t,l);sd=!0;try{var o=e(t);return o}finally{if(sd=!1,(_r!==null||Tr!==null)&&(pu(),_r&&(t=_r,e=Tr,Tr=_r=null,nv(t),e)))for(t=0;t<e.length;t++)nv(e[t])}}function eo(e,t){var l=e.stateNode;if(l===null)return null;var o=l[Bt]||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 ca=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ud=!1;if(ca)try{var to={};Object.defineProperty(to,"passive",{get:function(){ud=!0}}),window.addEventListener("test",to,to),window.removeEventListener("test",to,to)}catch{ud=!1}var $a=null,cd=null,Rs=null;function lv(){if(Rs)return Rs;var e,t=cd,l=t.length,o,d="value"in $a?$a.value:$a.textContent,f=d.length;for(e=0;e<l&&t[e]===d[e];e++);var b=l-e;for(o=1;o<=b&&t[l-o]===d[f-o];o++);return Rs=d.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 As(){return!0}function rv(){return!1}function Qt(e){function t(l,o,d,f,b){this._reactName=l,this._targetInst=d,this.type=o,this.nativeEvent=f,this.target=b,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)?As:rv,this.isPropagationStopped=rv,this}return x(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=As)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=As)},persist:function(){},isPersistent:As}),t}var Ul={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ks=Qt(Ul),no=x({},Ul,{view:0,detail:0}),h2=Qt(no),dd,fd,ao,Ds=x({},no,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:md,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!==ao&&(ao&&e.type==="mousemove"?(dd=e.screenX-ao.screenX,fd=e.screenY-ao.screenY):fd=dd=0,ao=e),dd)},movementY:function(e){return"movementY"in e?e.movementY:fd}}),iv=Qt(Ds),m2=x({},Ds,{dataTransfer:0}),p2=Qt(m2),v2=x({},no,{relatedTarget:0}),hd=Qt(v2),g2=x({},Ul,{animationName:0,elapsedTime:0,pseudoElement:0}),y2=Qt(g2),x2=x({},Ul,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),b2=Qt(x2),w2=x({},Ul,{data:0}),ov=Qt(w2),S2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},j2={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"},E2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function N2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=E2[e])?!!t[e]:!1}function md(){return N2}var C2=x({},no,{key:function(e){if(e.key){var t=S2[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"?j2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:md,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}}),_2=Qt(C2),T2=x({},Ds,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sv=Qt(T2),R2=x({},no,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:md}),M2=Qt(R2),A2=x({},Ul,{propertyName:0,elapsedTime:0,pseudoElement:0}),k2=Qt(A2),D2=x({},Ds,{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}),O2=Qt(D2),z2=x({},Ul,{newState:0,oldState:0}),L2=Qt(z2),U2=[9,13,27,32],pd=ca&&"CompositionEvent"in window,lo=null;ca&&"documentMode"in document&&(lo=document.documentMode);var q2=ca&&"TextEvent"in window&&!lo,uv=ca&&(!pd||lo&&8<lo&&11>=lo),cv=" ",dv=!1;function fv(e,t){switch(e){case"keyup":return U2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Rr=!1;function H2(e,t){switch(e){case"compositionend":return hv(t);case"keypress":return t.which!==32?null:(dv=!0,cv);case"textInput":return e=t.data,e===cv&&dv?null:e;default:return null}}function B2(e,t){if(Rr)return e==="compositionend"||!pd&&fv(e,t)?(e=lv(),Rs=cd=$a=null,Rr=!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 uv&&t.locale!=="ko"?null:t.data;default:return null}}var Q2={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 mv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Q2[e.type]:t==="textarea"}function pv(e,t,l,o){_r?Tr?Tr.push(o):Tr=[o]:_r=o,t=Su(t,"onChange"),0<t.length&&(l=new ks("onChange","change",null,l,o),e.push({event:l,listeners:t}))}var ro=null,io=null;function G2(e){Jy(e,0)}function Os(e){var t=Wi(e);if(Pp(t))return e}function vv(e,t){if(e==="change")return t}var gv=!1;if(ca){var vd;if(ca){var gd="oninput"in document;if(!gd){var yv=document.createElement("div");yv.setAttribute("oninput","return;"),gd=typeof yv.oninput=="function"}vd=gd}else vd=!1;gv=vd&&(!document.documentMode||9<document.documentMode)}function xv(){ro&&(ro.detachEvent("onpropertychange",bv),io=ro=null)}function bv(e){if(e.propertyName==="value"&&Os(io)){var t=[];pv(t,io,e,od(e)),av(G2,t)}}function $2(e,t,l){e==="focusin"?(xv(),ro=t,io=l,ro.attachEvent("onpropertychange",bv)):e==="focusout"&&xv()}function Y2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Os(io)}function V2(e,t){if(e==="click")return Os(t)}function K2(e,t){if(e==="input"||e==="change")return Os(t)}function X2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var en=typeof Object.is=="function"?Object.is:X2;function oo(e,t){if(en(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 d=l[o];if(!Ba.call(t,d)||!en(e[d],t[d]))return!1}return!0}function wv(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Sv(e,t){var l=wv(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=wv(l)}}function jv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ev(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=_s(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=_s(e.document)}return t}function yd(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 F2=ca&&"documentMode"in document&&11>=document.documentMode,Mr=null,xd=null,so=null,bd=!1;function Nv(e,t,l){var o=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;bd||Mr==null||Mr!==_s(o)||(o=Mr,"selectionStart"in o&&yd(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}),so&&oo(so,o)||(so=o,o=Su(xd,"onSelect"),0<o.length&&(t=new ks("onSelect","select",null,t,l),e.push({event:t,listeners:o}),t.target=Mr)))}function ql(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Ar={animationend:ql("Animation","AnimationEnd"),animationiteration:ql("Animation","AnimationIteration"),animationstart:ql("Animation","AnimationStart"),transitionrun:ql("Transition","TransitionRun"),transitionstart:ql("Transition","TransitionStart"),transitioncancel:ql("Transition","TransitionCancel"),transitionend:ql("Transition","TransitionEnd")},wd={},Cv={};ca&&(Cv=document.createElement("div").style,"AnimationEvent"in window||(delete Ar.animationend.animation,delete Ar.animationiteration.animation,delete Ar.animationstart.animation),"TransitionEvent"in window||delete Ar.transitionend.transition);function Hl(e){if(wd[e])return wd[e];if(!Ar[e])return e;var t=Ar[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Cv)return wd[e]=t[l];return e}var _v=Hl("animationend"),Tv=Hl("animationiteration"),Rv=Hl("animationstart"),Z2=Hl("transitionrun"),P2=Hl("transitionstart"),J2=Hl("transitioncancel"),Mv=Hl("transitionend"),Av=new Map,Sd="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(" ");Sd.push("scrollEnd");function Rn(e,t){Av.set(e,t),Ll(t,[e])}var zs=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)},pn=[],kr=0,jd=0;function Ls(){for(var e=kr,t=jd=kr=0;t<e;){var l=pn[t];pn[t++]=null;var o=pn[t];pn[t++]=null;var d=pn[t];pn[t++]=null;var f=pn[t];if(pn[t++]=null,o!==null&&d!==null){var b=o.pending;b===null?d.next=d:(d.next=b.next,b.next=d),o.pending=d}f!==0&&kv(l,d,f)}}function Us(e,t,l,o){pn[kr++]=e,pn[kr++]=t,pn[kr++]=l,pn[kr++]=o,jd|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Ed(e,t,l,o){return Us(e,t,l,o),qs(e)}function Bl(e,t){return Us(e,null,null,t),qs(e)}function kv(e,t,l){e.lanes|=l;var o=e.alternate;o!==null&&(o.lanes|=l);for(var d=!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||(d=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,d&&t!==null&&(d=31-Wt(l),e=f.hiddenUpdates,o=e[d],o===null?e[d]=[t]:o.push(t),t.lane=l|536870912),f):null}function qs(e){if(50<Ao)throw Ao=0,Of=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Dr={};function I2(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 tn(e,t,l,o){return new I2(e,t,l,o)}function Nd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function da(e,t){var l=e.alternate;return l===null?(l=tn(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 Dv(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 Hs(e,t,l,o,d,f){var b=0;if(o=e,typeof e=="function")Nd(e)&&(b=1);else if(typeof e=="string")b=aN(e,l,le.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case $:return e=tn(31,l,t,d),e.elementType=$,e.lanes=f,e;case S:return Ql(l.children,d,f,t);case C:b=8,d|=24;break;case _:return e=tn(12,l,t,d|2),e.elementType=_,e.lanes=f,e;case L:return e=tn(13,l,t,d),e.elementType=L,e.lanes=f,e;case K:return e=tn(19,l,t,d),e.elementType=K,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case R:b=10;break e;case T:b=9;break e;case D:b=11;break e;case H:b=14;break e;case q:b=16,o=null;break e}b=29,l=Error(i(130,e===null?"null":typeof e,"")),o=null}return t=tn(b,l,t,d),t.elementType=e,t.type=o,t.lanes=f,t}function Ql(e,t,l,o){return e=tn(7,e,o,t),e.lanes=l,e}function Cd(e,t,l){return e=tn(6,e,null,t),e.lanes=l,e}function Ov(e){var t=tn(18,null,null,0);return t.stateNode=e,t}function _d(e,t,l){return t=tn(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var zv=new WeakMap;function vn(e,t){if(typeof e=="object"&&e!==null){var l=zv.get(e);return l!==void 0?l:(t={value:e,source:t,stack:xs(t)},zv.set(e,t),t)}return{value:e,source:t,stack:xs(t)}}var Or=[],zr=0,Bs=null,uo=0,gn=[],yn=0,Ya=null,Vn=1,Kn="";function fa(e,t){Or[zr++]=uo,Or[zr++]=Bs,Bs=e,uo=t}function Lv(e,t,l){gn[yn++]=Vn,gn[yn++]=Kn,gn[yn++]=Ya,Ya=e;var o=Vn;e=Kn;var d=32-Wt(o)-1;o&=~(1<<d),l+=1;var f=32-Wt(t)+d;if(30<f){var b=d-d%5;f=(o&(1<<b)-1).toString(32),o>>=b,d-=b,Vn=1<<32-Wt(t)+d|l<<d|o,Kn=f+e}else Vn=1<<f|l<<d|o,Kn=e}function Td(e){e.return!==null&&(fa(e,1),Lv(e,1,0))}function Rd(e){for(;e===Bs;)Bs=Or[--zr],Or[zr]=null,uo=Or[--zr],Or[zr]=null;for(;e===Ya;)Ya=gn[--yn],gn[yn]=null,Kn=gn[--yn],gn[yn]=null,Vn=gn[--yn],gn[yn]=null}function Uv(e,t){gn[yn++]=Vn,gn[yn++]=Kn,gn[yn++]=Ya,Vn=t.id,Kn=t.overflow,Ya=e}var Tt=null,We=null,Ue=!1,Va=null,xn=!1,Md=Error(i(519));function Ka(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw co(vn(t,e)),Md}function qv(e){var t=e.stateNode,l=e.type,o=e.memoizedProps;switch(t[_t]=e,t[Bt]=o,l){case"dialog":ke("cancel",t),ke("close",t);break;case"iframe":case"object":case"embed":ke("load",t);break;case"video":case"audio":for(l=0;l<Do.length;l++)ke(Do[l],t);break;case"source":ke("error",t);break;case"img":case"image":case"link":ke("error",t),ke("load",t);break;case"details":ke("toggle",t);break;case"input":ke("invalid",t),Jp(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":ke("invalid",t);break;case"textarea":ke("invalid",t),Wp(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||t0(t.textContent,l)?(o.popover!=null&&(ke("beforetoggle",t),ke("toggle",t)),o.onScroll!=null&&ke("scroll",t),o.onScrollEnd!=null&&ke("scrollend",t),o.onClick!=null&&(t.onclick=ua),t=!0):t=!1,t||Ka(e,!0)}function Hv(e){for(Tt=e.return;Tt;)switch(Tt.tag){case 5:case 31:case 13:xn=!1;return;case 27:case 3:xn=!0;return;default:Tt=Tt.return}}function Lr(e){if(e!==Tt)return!1;if(!Ue)return Hv(e),Ue=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Zf(e.type,e.memoizedProps)),l=!l),l&&We&&Ka(e),Hv(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));We=c0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));We=c0(e)}else t===27?(t=We,il(e.type)?(e=eh,eh=null,We=e):We=t):We=Tt?wn(e.stateNode.nextSibling):null;return!0}function Gl(){We=Tt=null,Ue=!1}function Ad(){var e=Va;return e!==null&&(Vt===null?Vt=e:Vt.push.apply(Vt,e),Va=null),e}function co(e){Va===null?Va=[e]:Va.push(e)}var kd=A(null),$l=null,ha=null;function Xa(e,t,l){ee(kd,t._currentValue),t._currentValue=l}function ma(e){e._currentValue=kd.current,F(kd)}function Dd(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 Od(e,t,l,o){var d=e.child;for(d!==null&&(d.return=e);d!==null;){var f=d.dependencies;if(f!==null){var b=d.child;f=f.firstContext;e:for(;f!==null;){var N=f;f=d;for(var M=0;M<t.length;M++)if(N.context===t[M]){f.lanes|=l,N=f.alternate,N!==null&&(N.lanes|=l),Dd(f.return,l,e),o||(b=null);break e}f=N.next}}else if(d.tag===18){if(b=d.return,b===null)throw Error(i(341));b.lanes|=l,f=b.alternate,f!==null&&(f.lanes|=l),Dd(b,l,e),b=null}else b=d.child;if(b!==null)b.return=d;else for(b=d;b!==null;){if(b===e){b=null;break}if(d=b.sibling,d!==null){d.return=b.return,b=d;break}b=b.return}d=b}}function Ur(e,t,l,o){e=null;for(var d=t,f=!1;d!==null;){if(!f){if((d.flags&524288)!==0)f=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var b=d.alternate;if(b===null)throw Error(i(387));if(b=b.memoizedProps,b!==null){var N=d.type;en(d.pendingProps.value,b.value)||(e!==null?e.push(N):e=[N])}}else if(d===ne.current){if(b=d.alternate,b===null)throw Error(i(387));b.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(e!==null?e.push(qo):e=[qo])}d=d.return}e!==null&&Od(t,e,l,o),t.flags|=262144}function Qs(e){for(e=e.firstContext;e!==null;){if(!en(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Yl(e){$l=e,ha=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Rt(e){return Bv($l,e)}function Gs(e,t){return $l===null&&Yl(e),Bv(e,t)}function Bv(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},ha===null){if(e===null)throw Error(i(308));ha=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ha=ha.next=t;return l}var W2=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()})}},eE=n.unstable_scheduleCallback,tE=n.unstable_NormalPriority,ft={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zd(){return{controller:new W2,data:new Map,refCount:0}}function fo(e){e.refCount--,e.refCount===0&&eE(tE,function(){e.controller.abort()})}var ho=null,Ld=0,qr=0,Hr=null;function nE(e,t){if(ho===null){var l=ho=[];Ld=0,qr=Bf(),Hr={status:"pending",value:void 0,then:function(o){l.push(o)}}}return Ld++,t.then(Qv,Qv),t}function Qv(){if(--Ld===0&&ho!==null){Hr!==null&&(Hr.status="fulfilled");var e=ho;ho=null,qr=0,Hr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function aE(e,t){var l=[],o={status:"pending",value:null,reason:null,then:function(d){l.push(d)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var d=0;d<l.length;d++)(0,l[d])(t)},function(d){for(o.status="rejected",o.reason=d,d=0;d<l.length;d++)(0,l[d])(void 0)}),o}var Gv=U.S;U.S=function(e,t){Ny=Jt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&nE(e,t),Gv!==null&&Gv(e,t)};var Vl=A(null);function Ud(){var e=Vl.current;return e!==null?e:Je.pooledCache}function $s(e,t){t===null?ee(Vl,Vl.current):ee(Vl,t.pool)}function $v(){var e=Ud();return e===null?null:{parent:ft._currentValue,pool:e}}var Br=Error(i(460)),qd=Error(i(474)),Ys=Error(i(542)),Vs={then:function(){}};function Yv(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Vv(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(ua,ua),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Xv(e),e;default:if(typeof t.status=="string")t.then(ua,ua);else{if(e=Je,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var d=t;d.status="fulfilled",d.value=o}},function(o){if(t.status==="pending"){var d=t;d.status="rejected",d.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Xv(e),e}throw Xl=t,Br}}function Kl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Xl=l,Br):l}}var Xl=null;function Kv(){if(Xl===null)throw Error(i(459));var e=Xl;return Xl=null,e}function Xv(e){if(e===Br||e===Ys)throw Error(i(483))}var Qr=null,mo=0;function Ks(e){var t=mo;return mo+=1,Qr===null&&(Qr=[]),Vv(Qr,e,t)}function po(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Xs(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 Fv(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 d(z,O){return z=da(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 b(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function N(z,O,B,P){return O===null||O.tag!==6?(O=Cd(B,z.mode,P),O.return=z,O):(O=d(O,B),O.return=z,O)}function M(z,O,B,P){var xe=B.type;return xe===S?Z(z,O,B.props.children,P,B.key):O!==null&&(O.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===q&&Kl(xe)===O.type)?(O=d(O,B.props),po(O,B),O.return=z,O):(O=Hs(B.type,B.key,B.props,null,z.mode,P),po(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=_d(B,z.mode,P),O.return=z,O):(O=d(O,B.children||[]),O.return=z,O)}function Z(z,O,B,P,xe){return O===null||O.tag!==7?(O=Ql(B,z.mode,P,xe),O.return=z,O):(O=d(O,B),O.return=z,O)}function J(z,O,B){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Cd(""+O,z.mode,B),O.return=z,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case j:return B=Hs(O.type,O.key,O.props,null,z.mode,B),po(B,O),B.return=z,B;case E:return O=_d(O,z.mode,B),O.return=z,O;case q:return O=Kl(O),J(z,O,B)}if(re(O)||ce(O))return O=Ql(O,z.mode,B,null),O.return=z,O;if(typeof O.then=="function")return J(z,Ks(O),B);if(O.$$typeof===R)return J(z,Gs(z,O),B);Xs(z,O)}return null}function G(z,O,B,P){var xe=O!==null?O.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return xe!==null?null:N(z,O,""+B,P);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case j:return B.key===xe?M(z,O,B,P):null;case E:return B.key===xe?Q(z,O,B,P):null;case q:return B=Kl(B),G(z,O,B,P)}if(re(B)||ce(B))return xe!==null?null:Z(z,O,B,P,null);if(typeof B.then=="function")return G(z,O,Ks(B),P);if(B.$$typeof===R)return G(z,O,Gs(z,B),P);Xs(z,B)}return null}function V(z,O,B,P,xe){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return z=z.get(B)||null,N(O,z,""+P,xe);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,xe);case E:return z=z.get(P.key===null?B:P.key)||null,Q(O,z,P,xe);case q:return P=Kl(P),V(z,O,B,P,xe)}if(re(P)||ce(P))return z=z.get(B)||null,Z(O,z,P,xe,null);if(typeof P.then=="function")return V(z,O,B,Ks(P),xe);if(P.$$typeof===R)return V(z,O,B,Gs(O,P),xe);Xs(O,P)}return null}function fe(z,O,B,P){for(var xe=null,Be=null,ge=O,Te=O=0,Le=null;ge!==null&&Te<B.length;Te++){ge.index>Te?(Le=ge,ge=null):Le=ge.sibling;var Qe=G(z,ge,B[Te],P);if(Qe===null){ge===null&&(ge=Le);break}e&&ge&&Qe.alternate===null&&t(z,ge),O=f(Qe,O,Te),Be===null?xe=Qe:Be.sibling=Qe,Be=Qe,ge=Le}if(Te===B.length)return l(z,ge),Ue&&fa(z,Te),xe;if(ge===null){for(;Te<B.length;Te++)ge=J(z,B[Te],P),ge!==null&&(O=f(ge,O,Te),Be===null?xe=ge:Be.sibling=ge,Be=ge);return Ue&&fa(z,Te),xe}for(ge=o(ge);Te<B.length;Te++)Le=V(ge,z,Te,B[Te],P),Le!==null&&(e&&Le.alternate!==null&&ge.delete(Le.key===null?Te:Le.key),O=f(Le,O,Te),Be===null?xe=Le:Be.sibling=Le,Be=Le);return e&&ge.forEach(function(dl){return t(z,dl)}),Ue&&fa(z,Te),xe}function Se(z,O,B,P){if(B==null)throw Error(i(151));for(var xe=null,Be=null,ge=O,Te=O=0,Le=null,Qe=B.next();ge!==null&&!Qe.done;Te++,Qe=B.next()){ge.index>Te?(Le=ge,ge=null):Le=ge.sibling;var dl=G(z,ge,Qe.value,P);if(dl===null){ge===null&&(ge=Le);break}e&&ge&&dl.alternate===null&&t(z,ge),O=f(dl,O,Te),Be===null?xe=dl:Be.sibling=dl,Be=dl,ge=Le}if(Qe.done)return l(z,ge),Ue&&fa(z,Te),xe;if(ge===null){for(;!Qe.done;Te++,Qe=B.next())Qe=J(z,Qe.value,P),Qe!==null&&(O=f(Qe,O,Te),Be===null?xe=Qe:Be.sibling=Qe,Be=Qe);return Ue&&fa(z,Te),xe}for(ge=o(ge);!Qe.done;Te++,Qe=B.next())Qe=V(ge,z,Te,Qe.value,P),Qe!==null&&(e&&Qe.alternate!==null&&ge.delete(Qe.key===null?Te:Qe.key),O=f(Qe,O,Te),Be===null?xe=Qe:Be.sibling=Qe,Be=Qe);return e&&ge.forEach(function(mN){return t(z,mN)}),Ue&&fa(z,Te),xe}function Pe(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 xe=B.key;O!==null;){if(O.key===xe){if(xe=B.type,xe===S){if(O.tag===7){l(z,O.sibling),P=d(O,B.props.children),P.return=z,z=P;break e}}else if(O.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===q&&Kl(xe)===O.type){l(z,O.sibling),P=d(O,B.props),po(P,B),P.return=z,z=P;break e}l(z,O);break}else t(z,O);O=O.sibling}B.type===S?(P=Ql(B.props.children,z.mode,P,B.key),P.return=z,z=P):(P=Hs(B.type,B.key,B.props,null,z.mode,P),po(P,B),P.return=z,z=P)}return b(z);case E:e:{for(xe=B.key;O!==null;){if(O.key===xe)if(O.tag===4&&O.stateNode.containerInfo===B.containerInfo&&O.stateNode.implementation===B.implementation){l(z,O.sibling),P=d(O,B.children||[]),P.return=z,z=P;break e}else{l(z,O);break}else t(z,O);O=O.sibling}P=_d(B,z.mode,P),P.return=z,z=P}return b(z);case q:return B=Kl(B),Pe(z,O,B,P)}if(re(B))return fe(z,O,B,P);if(ce(B)){if(xe=ce(B),typeof xe!="function")throw Error(i(150));return B=xe.call(B),Se(z,O,B,P)}if(typeof B.then=="function")return Pe(z,O,Ks(B),P);if(B.$$typeof===R)return Pe(z,O,Gs(z,B),P);Xs(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=d(O,B),P.return=z,z=P):(l(z,O),P=Cd(B,z.mode,P),P.return=z,z=P),b(z)):l(z,O)}return function(z,O,B,P){try{mo=0;var xe=Pe(z,O,B,P);return Qr=null,xe}catch(ge){if(ge===Br||ge===Ys)throw ge;var Be=tn(29,ge,null,z.mode);return Be.lanes=P,Be.return=z,Be}finally{}}}var Fl=Fv(!0),Zv=Fv(!1),Fa=!1;function Hd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Bd(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 Za(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Pa(e,t,l){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(Ge&2)!==0){var d=o.pending;return d===null?t.next=t:(t.next=d.next,d.next=t),o.pending=t,t=qs(e),kv(e,null,l),t}return Us(e,o,t,l),qs(e)}function vo(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,Bp(e,l)}}function Qd(e,t){var l=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,l===o)){var d=null,f=null;if(l=l.firstBaseUpdate,l!==null){do{var b={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};f===null?d=f=b:f=f.next=b,l=l.next}while(l!==null);f===null?d=f=t:f=f.next=t}else d=f=t;l={baseState:o.baseState,firstBaseUpdate:d,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 Gd=!1;function go(){if(Gd){var e=Hr;if(e!==null)throw e}}function yo(e,t,l,o){Gd=!1;var d=e.updateQueue;Fa=!1;var f=d.firstBaseUpdate,b=d.lastBaseUpdate,N=d.shared.pending;if(N!==null){d.shared.pending=null;var M=N,Q=M.next;M.next=null,b===null?f=Q:b.next=Q,b=M;var Z=e.alternate;Z!==null&&(Z=Z.updateQueue,N=Z.lastBaseUpdate,N!==b&&(N===null?Z.firstBaseUpdate=Q:N.next=Q,Z.lastBaseUpdate=M))}if(f!==null){var J=d.baseState;b=0,Z=Q=M=null,N=f;do{var G=N.lane&-536870913,V=G!==N.lane;if(V?(ze&G)===G:(o&G)===G){G!==0&&G===qr&&(Gd=!0),Z!==null&&(Z=Z.next={lane:0,tag:N.tag,payload:N.payload,callback:null,next:null});e:{var fe=e,Se=N;G=t;var Pe=l;switch(Se.tag){case 1:if(fe=Se.payload,typeof fe=="function"){J=fe.call(Pe,J,G);break e}J=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=Se.payload,G=typeof fe=="function"?fe.call(Pe,J,G):fe,G==null)break e;J=x({},J,G);break e;case 2:Fa=!0}}G=N.callback,G!==null&&(e.flags|=64,V&&(e.flags|=8192),V=d.callbacks,V===null?d.callbacks=[G]:V.push(G))}else V={lane:G,tag:N.tag,payload:N.payload,callback:N.callback,next:null},Z===null?(Q=Z=V,M=J):Z=Z.next=V,b|=G;if(N=N.next,N===null){if(N=d.shared.pending,N===null)break;V=N,N=V.next,V.next=null,d.lastBaseUpdate=V,d.shared.pending=null}}while(!0);Z===null&&(M=J),d.baseState=M,d.firstBaseUpdate=Q,d.lastBaseUpdate=Z,f===null&&(d.shared.lanes=0),tl|=b,e.lanes=b,e.memoizedState=J}}function Pv(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function Jv(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Pv(l[e],t)}var Gr=A(null),Fs=A(0);function Iv(e,t){e=ja,ee(Fs,e),ee(Gr,t),ja=e|t.baseLanes}function $d(){ee(Fs,ja),ee(Gr,Gr.current)}function Yd(){ja=Fs.current,F(Gr),F(Fs)}var nn=A(null),bn=null;function Ja(e){var t=e.alternate;ee(ut,ut.current&1),ee(nn,e),bn===null&&(t===null||Gr.current!==null||t.memoizedState!==null)&&(bn=e)}function Vd(e){ee(ut,ut.current),ee(nn,e),bn===null&&(bn=e)}function Wv(e){e.tag===22?(ee(ut,ut.current),ee(nn,e),bn===null&&(bn=e)):Ia()}function Ia(){ee(ut,ut.current),ee(nn,nn.current)}function an(e){F(nn),bn===e&&(bn=null),F(ut)}var ut=A(0);function Zs(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||If(l)||Wf(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 pa=0,_e=null,Fe=null,ht=null,Ps=!1,$r=!1,Zl=!1,Js=0,xo=0,Yr=null,lE=0;function rt(){throw Error(i(321))}function Kd(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!en(e[l],t[l]))return!1;return!0}function Xd(e,t,l,o,d,f){return pa=f,_e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?Lg:uf,Zl=!1,f=l(o,d),Zl=!1,$r&&(f=tg(t,l,o,d)),eg(e),f}function eg(e){U.H=So;var t=Fe!==null&&Fe.next!==null;if(pa=0,ht=Fe=_e=null,Ps=!1,xo=0,Yr=null,t)throw Error(i(300));e===null||mt||(e=e.dependencies,e!==null&&Qs(e)&&(mt=!0))}function tg(e,t,l,o){_e=e;var d=0;do{if($r&&(Yr=null),xo=0,$r=!1,25<=d)throw Error(i(301));if(d+=1,ht=Fe=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=Ug,f=t(l,o)}while($r);return f}function rE(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?bo(t):t,e=e.useState()[0],(Fe!==null?Fe.memoizedState:null)!==e&&(_e.flags|=1024),t}function Fd(){var e=Js!==0;return Js=0,e}function Zd(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Pd(e){if(Ps){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ps=!1}pa=0,ht=Fe=_e=null,$r=!1,xo=Js=0,Yr=null}function Ut(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ht===null?_e.memoizedState=ht=e:ht=ht.next=e,ht}function ct(){if(Fe===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=Fe.next;var t=ht===null?_e.memoizedState:ht.next;if(t!==null)ht=t,Fe=e;else{if(e===null)throw _e.alternate===null?Error(i(467)):Error(i(310));Fe=e,e={memoizedState:Fe.memoizedState,baseState:Fe.baseState,baseQueue:Fe.baseQueue,queue:Fe.queue,next:null},ht===null?_e.memoizedState=ht=e:ht=ht.next=e}return ht}function Is(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function bo(e){var t=xo;return xo+=1,Yr===null&&(Yr=[]),e=Vv(Yr,e,t),t=_e,(ht===null?t.memoizedState:ht.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?Lg:uf),e}function Ws(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return bo(e);if(e.$$typeof===R)return Rt(e)}throw Error(i(438,String(e)))}function Jd(e){var t=null,l=_e.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var o=_e.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(d){return d.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Is(),_e.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 va(e,t){return typeof t=="function"?t(e):t}function eu(e){var t=ct();return Id(t,Fe,e)}function Id(e,t,l){var o=e.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=l;var d=e.baseQueue,f=o.pending;if(f!==null){if(d!==null){var b=d.next;d.next=f.next,f.next=b}t.baseQueue=d=f,o.pending=null}if(f=e.baseState,d===null)e.memoizedState=f;else{t=d.next;var N=b=null,M=null,Q=t,Z=!1;do{var J=Q.lane&-536870913;if(J!==Q.lane?(ze&J)===J:(pa&J)===J){var G=Q.revertLane;if(G===0)M!==null&&(M=M.next={lane:0,revertLane:0,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null}),J===qr&&(Z=!0);else if((pa&G)===G){Q=Q.next,G===qr&&(Z=!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,b=f):M=M.next=J,_e.lanes|=G,tl|=G;J=Q.action,Zl&&l(f,J),f=Q.hasEagerState?Q.eagerState:l(f,J)}else G={lane:J,revertLane:Q.revertLane,gesture:Q.gesture,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},M===null?(N=M=G,b=f):M=M.next=G,_e.lanes|=J,tl|=J;Q=Q.next}while(Q!==null&&Q!==t);if(M===null?b=f:M.next=N,!en(f,e.memoizedState)&&(mt=!0,Z&&(l=Hr,l!==null)))throw l;e.memoizedState=f,e.baseState=b,e.baseQueue=M,o.lastRenderedState=f}return d===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Wd(e){var t=ct(),l=t.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=e;var o=l.dispatch,d=l.pending,f=t.memoizedState;if(d!==null){l.pending=null;var b=d=d.next;do f=e(f,b.action),b=b.next;while(b!==d);en(f,t.memoizedState)||(mt=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),l.lastRenderedState=f}return[f,o]}function ng(e,t,l){var o=_e,d=ct(),f=Ue;if(f){if(l===void 0)throw Error(i(407));l=l()}else l=t();var b=!en((Fe||d).memoizedState,l);if(b&&(d.memoizedState=l,mt=!0),d=d.queue,nf(rg.bind(null,o,d,e),[e]),d.getSnapshot!==t||b||ht!==null&&ht.memoizedState.tag&1){if(o.flags|=2048,Vr(9,{destroy:void 0},lg.bind(null,o,d,l,t),null),Je===null)throw Error(i(349));f||(pa&127)!==0||ag(o,t,l)}return l}function ag(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=_e.updateQueue,t===null?(t=Is(),_e.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function lg(e,t,l,o){t.value=l,t.getSnapshot=o,ig(t)&&og(e)}function rg(e,t,l){return l(function(){ig(t)&&og(e)})}function ig(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!en(e,l)}catch{return!0}}function og(e){var t=Bl(e,2);t!==null&&Kt(t,e,2)}function ef(e){var t=Ut();if(typeof e=="function"){var l=e;if(e=l(),Zl){Qa(!0);try{l()}finally{Qa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:va,lastRenderedState:e},t}function sg(e,t,l,o){return e.baseState=l,Id(e,Fe,typeof o=="function"?o:va)}function iE(e,t,l,o,d){if(au(e))throw Error(i(485));if(e=t.action,e!==null){var f={payload:d,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){f.listeners.push(b)}};U.T!==null?l(!0):f.isTransition=!1,o(f),l=t.pending,l===null?(f.next=t.pending=f,ug(t,f)):(f.next=l.next,t.pending=l.next=f)}}function ug(e,t){var l=t.action,o=t.payload,d=e.state;if(t.isTransition){var f=U.T,b={};U.T=b;try{var N=l(d,o),M=U.S;M!==null&&M(b,N),cg(e,t,N)}catch(Q){tf(e,t,Q)}finally{f!==null&&b.types!==null&&(f.types=b.types),U.T=f}}else try{f=l(d,o),cg(e,t,f)}catch(Q){tf(e,t,Q)}}function cg(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(o){dg(e,t,o)},function(o){return tf(e,t,o)}):dg(e,t,l)}function dg(e,t,l){t.status="fulfilled",t.value=l,fg(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,ug(e,l)))}function tf(e,t,l){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=l,fg(t),t=t.next;while(t!==o)}e.action=null}function fg(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function hg(e,t){return t}function mg(e,t){if(Ue){var l=Je.formState;if(l!==null){e:{var o=_e;if(Ue){if(We){t:{for(var d=We,f=xn;d.nodeType!==8;){if(!f){d=null;break t}if(d=wn(d.nextSibling),d===null){d=null;break t}}f=d.data,d=f==="F!"||f==="F"?d:null}if(d){We=wn(d.nextSibling),o=d.data==="F!";break e}}Ka(o)}o=!1}o&&(t=l[0])}}return l=Ut(),l.memoizedState=l.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hg,lastRenderedState:t},l.queue=o,l=Dg.bind(null,_e,o),o.dispatch=l,o=ef(!1),f=sf.bind(null,_e,!1,o.queue),o=Ut(),d={state:t,dispatch:null,action:e,pending:null},o.queue=d,l=iE.bind(null,_e,d,f,l),d.dispatch=l,o.memoizedState=e,[t,l,!1]}function pg(e){var t=ct();return vg(t,Fe,e)}function vg(e,t,l){if(t=Id(e,t,hg)[0],e=eu(va)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var o=bo(t)}catch(b){throw b===Br?Ys:b}else o=t;t=ct();var d=t.queue,f=d.dispatch;return l!==t.memoizedState&&(_e.flags|=2048,Vr(9,{destroy:void 0},oE.bind(null,d,l),null)),[o,f,e]}function oE(e,t){e.action=t}function gg(e){var t=ct(),l=Fe;if(l!==null)return vg(t,l,e);ct(),t=t.memoizedState,l=ct();var o=l.queue.dispatch;return l.memoizedState=e,[t,o,!1]}function Vr(e,t,l,o){return e={tag:e,create:l,deps:o,inst:t,next:null},t=_e.updateQueue,t===null&&(t=Is(),_e.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 yg(){return ct().memoizedState}function tu(e,t,l,o){var d=Ut();_e.flags|=e,d.memoizedState=Vr(1|t,{destroy:void 0},l,o===void 0?null:o)}function nu(e,t,l,o){var d=ct();o=o===void 0?null:o;var f=d.memoizedState.inst;Fe!==null&&o!==null&&Kd(o,Fe.memoizedState.deps)?d.memoizedState=Vr(t,f,l,o):(_e.flags|=e,d.memoizedState=Vr(1|t,f,l,o))}function xg(e,t){tu(8390656,8,e,t)}function nf(e,t){nu(2048,8,e,t)}function sE(e){_e.flags|=4;var t=_e.updateQueue;if(t===null)t=Is(),_e.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function bg(e){var t=ct().memoizedState;return sE({ref:t,nextImpl:e}),function(){if((Ge&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function wg(e,t){return nu(4,2,e,t)}function Sg(e,t){return nu(4,4,e,t)}function jg(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 Eg(e,t,l){l=l!=null?l.concat([e]):null,nu(4,4,jg.bind(null,t,e),l)}function af(){}function Ng(e,t){var l=ct();t=t===void 0?null:t;var o=l.memoizedState;return t!==null&&Kd(t,o[1])?o[0]:(l.memoizedState=[e,t],e)}function Cg(e,t){var l=ct();t=t===void 0?null:t;var o=l.memoizedState;if(t!==null&&Kd(t,o[1]))return o[0];if(o=e(),Zl){Qa(!0);try{e()}finally{Qa(!1)}}return l.memoizedState=[o,t],o}function lf(e,t,l){return l===void 0||(pa&1073741824)!==0&&(ze&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=_y(),_e.lanes|=e,tl|=e,l)}function _g(e,t,l,o){return en(l,t)?l:Gr.current!==null?(e=lf(e,l,o),en(e,t)||(mt=!0),e):(pa&42)===0||(pa&1073741824)!==0&&(ze&261930)===0?(mt=!0,e.memoizedState=l):(e=_y(),_e.lanes|=e,tl|=e,t)}function Tg(e,t,l,o,d){var f=I.p;I.p=f!==0&&8>f?f:8;var b=U.T,N={};U.T=N,sf(e,!1,t,l);try{var M=d(),Q=U.S;if(Q!==null&&Q(N,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var Z=aE(M,o);wo(e,t,Z,on(e))}else wo(e,t,o,on(e))}catch(J){wo(e,t,{then:function(){},status:"rejected",reason:J},on())}finally{I.p=f,b!==null&&N.types!==null&&(b.types=N.types),U.T=b}}function uE(){}function rf(e,t,l,o){if(e.tag!==5)throw Error(i(476));var d=Rg(e).queue;Tg(e,d,t,Y,l===null?uE:function(){return Mg(e),l(o)})}function Rg(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:va,lastRenderedState:Y},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:va,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Mg(e){var t=Rg(e);t.next===null&&(t=e.alternate.memoizedState),wo(e,t.next.queue,{},on())}function of(){return Rt(qo)}function Ag(){return ct().memoizedState}function kg(){return ct().memoizedState}function cE(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=on();e=Za(l);var o=Pa(t,e,l);o!==null&&(Kt(o,t,l),vo(o,t,l)),t={cache:zd()},e.payload=t;return}t=t.return}}function dE(e,t,l){var o=on();l={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},au(e)?Og(t,l):(l=Ed(e,t,l,o),l!==null&&(Kt(l,e,o),zg(l,t,o)))}function Dg(e,t,l){var o=on();wo(e,t,l,o)}function wo(e,t,l,o){var d={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(au(e))Og(t,d);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var b=t.lastRenderedState,N=f(b,l);if(d.hasEagerState=!0,d.eagerState=N,en(N,b))return Us(e,t,d,0),Je===null&&Ls(),!1}catch{}finally{}if(l=Ed(e,t,d,o),l!==null)return Kt(l,e,o),zg(l,t,o),!0}return!1}function sf(e,t,l,o){if(o={lane:2,revertLane:Bf(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},au(e)){if(t)throw Error(i(479))}else t=Ed(e,l,o,2),t!==null&&Kt(t,e,2)}function au(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function Og(e,t){$r=Ps=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function zg(e,t,l){if((l&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,l|=o,t.lanes=l,Bp(e,l)}}var So={readContext:Rt,use:Ws,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt,useHostTransitionStatus:rt,useFormState:rt,useActionState:rt,useOptimistic:rt,useMemoCache:rt,useCacheRefresh:rt};So.useEffectEvent=rt;var Lg={readContext:Rt,use:Ws,useCallback:function(e,t){return Ut().memoizedState=[e,t===void 0?null:t],e},useContext:Rt,useEffect:xg,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,tu(4194308,4,jg.bind(null,t,e),l)},useLayoutEffect:function(e,t){return tu(4194308,4,e,t)},useInsertionEffect:function(e,t){tu(4,2,e,t)},useMemo:function(e,t){var l=Ut();t=t===void 0?null:t;var o=e();if(Zl){Qa(!0);try{e()}finally{Qa(!1)}}return l.memoizedState=[o,t],o},useReducer:function(e,t,l){var o=Ut();if(l!==void 0){var d=l(t);if(Zl){Qa(!0);try{l(t)}finally{Qa(!1)}}}else d=t;return o.memoizedState=o.baseState=d,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:d},o.queue=e,e=e.dispatch=dE.bind(null,_e,e),[o.memoizedState,e]},useRef:function(e){var t=Ut();return e={current:e},t.memoizedState=e},useState:function(e){e=ef(e);var t=e.queue,l=Dg.bind(null,_e,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:af,useDeferredValue:function(e,t){var l=Ut();return lf(l,e,t)},useTransition:function(){var e=ef(!1);return e=Tg.bind(null,_e,e.queue,!0,!1),Ut().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var o=_e,d=Ut();if(Ue){if(l===void 0)throw Error(i(407));l=l()}else{if(l=t(),Je===null)throw Error(i(349));(ze&127)!==0||ag(o,t,l)}d.memoizedState=l;var f={value:l,getSnapshot:t};return d.queue=f,xg(rg.bind(null,o,f,e),[e]),o.flags|=2048,Vr(9,{destroy:void 0},lg.bind(null,o,f,l,t),null),l},useId:function(){var e=Ut(),t=Je.identifierPrefix;if(Ue){var l=Kn,o=Vn;l=(o&~(1<<32-Wt(o)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Js++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=lE++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:of,useFormState:mg,useActionState:mg,useOptimistic:function(e){var t=Ut();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=sf.bind(null,_e,!0,l),l.dispatch=t,[e,t]},useMemoCache:Jd,useCacheRefresh:function(){return Ut().memoizedState=cE.bind(null,_e)},useEffectEvent:function(e){var t=Ut(),l={impl:e};return t.memoizedState=l,function(){if((Ge&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}},uf={readContext:Rt,use:Ws,useCallback:Ng,useContext:Rt,useEffect:nf,useImperativeHandle:Eg,useInsertionEffect:wg,useLayoutEffect:Sg,useMemo:Cg,useReducer:eu,useRef:yg,useState:function(){return eu(va)},useDebugValue:af,useDeferredValue:function(e,t){var l=ct();return _g(l,Fe.memoizedState,e,t)},useTransition:function(){var e=eu(va)[0],t=ct().memoizedState;return[typeof e=="boolean"?e:bo(e),t]},useSyncExternalStore:ng,useId:Ag,useHostTransitionStatus:of,useFormState:pg,useActionState:pg,useOptimistic:function(e,t){var l=ct();return sg(l,Fe,e,t)},useMemoCache:Jd,useCacheRefresh:kg};uf.useEffectEvent=bg;var Ug={readContext:Rt,use:Ws,useCallback:Ng,useContext:Rt,useEffect:nf,useImperativeHandle:Eg,useInsertionEffect:wg,useLayoutEffect:Sg,useMemo:Cg,useReducer:Wd,useRef:yg,useState:function(){return Wd(va)},useDebugValue:af,useDeferredValue:function(e,t){var l=ct();return Fe===null?lf(l,e,t):_g(l,Fe.memoizedState,e,t)},useTransition:function(){var e=Wd(va)[0],t=ct().memoizedState;return[typeof e=="boolean"?e:bo(e),t]},useSyncExternalStore:ng,useId:Ag,useHostTransitionStatus:of,useFormState:gg,useActionState:gg,useOptimistic:function(e,t){var l=ct();return Fe!==null?sg(l,Fe,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Jd,useCacheRefresh:kg};Ug.useEffectEvent=bg;function cf(e,t,l,o){t=e.memoizedState,l=l(o,t),l=l==null?t:x({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var df={enqueueSetState:function(e,t,l){e=e._reactInternals;var o=on(),d=Za(o);d.payload=t,l!=null&&(d.callback=l),t=Pa(e,d,o),t!==null&&(Kt(t,e,o),vo(t,e,o))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var o=on(),d=Za(o);d.tag=1,d.payload=t,l!=null&&(d.callback=l),t=Pa(e,d,o),t!==null&&(Kt(t,e,o),vo(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=on(),o=Za(l);o.tag=2,t!=null&&(o.callback=t),t=Pa(e,o,l),t!==null&&(Kt(t,e,l),vo(t,e,l))}};function qg(e,t,l,o,d,f,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,f,b):t.prototype&&t.prototype.isPureReactComponent?!oo(l,o)||!oo(d,f):!0}function Hg(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&&df.enqueueReplaceState(t,t.state,null)}function Pl(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=x({},l));for(var d in e)l[d]===void 0&&(l[d]=e[d])}return l}function Bg(e){zs(e)}function Qg(e){console.error(e)}function Gg(e){zs(e)}function lu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function $g(e,t,l){try{var o=e.onCaughtError;o(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function ff(e,t,l){return l=Za(l),l.tag=3,l.payload={element:null},l.callback=function(){lu(e,t)},l}function Yg(e){return e=Za(e),e.tag=3,e}function Vg(e,t,l,o){var d=l.type.getDerivedStateFromError;if(typeof d=="function"){var f=o.value;e.payload=function(){return d(f)},e.callback=function(){$g(t,l,o)}}var b=l.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){$g(t,l,o),typeof d!="function"&&(nl===null?nl=new Set([this]):nl.add(this));var N=o.stack;this.componentDidCatch(o.value,{componentStack:N!==null?N:""})})}function fE(e,t,l,o,d){if(l.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=l.alternate,t!==null&&Ur(t,l,d,!0),l=nn.current,l!==null){switch(l.tag){case 31:case 13:return bn===null?vu():l.alternate===null&&it===0&&(it=3),l.flags&=-257,l.flags|=65536,l.lanes=d,o===Vs?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([o]):t.add(o),Uf(e,o,d)),!1;case 22:return l.flags|=65536,o===Vs?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)),Uf(e,o,d)),!1}throw Error(i(435,l.tag))}return Uf(e,o,d),vu(),!1}if(Ue)return t=nn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=d,o!==Md&&(e=Error(i(422),{cause:o}),co(vn(e,l)))):(o!==Md&&(t=Error(i(423),{cause:o}),co(vn(t,l))),e=e.current.alternate,e.flags|=65536,d&=-d,e.lanes|=d,o=vn(o,l),d=ff(e.stateNode,o,d),Qd(e,d),it!==4&&(it=2)),!1;var f=Error(i(520),{cause:o});if(f=vn(f,l),Mo===null?Mo=[f]:Mo.push(f),it!==4&&(it=2),t===null)return!0;o=vn(o,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=d&-d,l.lanes|=e,e=ff(l.stateNode,o,e),Qd(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"&&(nl===null||!nl.has(f))))return l.flags|=65536,d&=-d,l.lanes|=d,d=Yg(d),Vg(d,e,l,o),Qd(l,d),!1}l=l.return}while(l!==null);return!1}var hf=Error(i(461)),mt=!1;function Mt(e,t,l,o){t.child=e===null?Zv(t,null,l,o):Fl(t,e.child,l,o)}function Kg(e,t,l,o,d){l=l.render;var f=t.ref;if("ref"in o){var b={};for(var N in o)N!=="ref"&&(b[N]=o[N])}else b=o;return Yl(t),o=Xd(e,t,l,b,f,d),N=Fd(),e!==null&&!mt?(Zd(e,t,d),ga(e,t,d)):(Ue&&N&&Td(t),t.flags|=1,Mt(e,t,o,d),t.child)}function Xg(e,t,l,o,d){if(e===null){var f=l.type;return typeof f=="function"&&!Nd(f)&&f.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=f,Fg(e,t,f,o,d)):(e=Hs(l.type,null,o,t,t.mode,d),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!wf(e,d)){var b=f.memoizedProps;if(l=l.compare,l=l!==null?l:oo,l(b,o)&&e.ref===t.ref)return ga(e,t,d)}return t.flags|=1,e=da(f,o),e.ref=t.ref,e.return=t,t.child=e}function Fg(e,t,l,o,d){if(e!==null){var f=e.memoizedProps;if(oo(f,o)&&e.ref===t.ref)if(mt=!1,t.pendingProps=o=f,wf(e,d))(e.flags&131072)!==0&&(mt=!0);else return t.lanes=e.lanes,ga(e,t,d)}return mf(e,t,l,o,d)}function Zg(e,t,l,o){var d=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,d=0;o!==null;)d=d|o.lanes|o.childLanes,o=o.sibling;o=d&~f}else o=0,t.child=null;return Pg(e,t,f,l,o)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&$s(t,f!==null?f.cachePool:null),f!==null?Iv(t,f):$d(),Wv(t);else return o=t.lanes=536870912,Pg(e,t,f!==null?f.baseLanes|l:l,l,o)}else f!==null?($s(t,f.cachePool),Iv(t,f),Ia(),t.memoizedState=null):(e!==null&&$s(t,null),$d(),Ia());return Mt(e,t,d,l),t.child}function jo(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Pg(e,t,l,o,d){var f=Ud();return f=f===null?null:{parent:ft._currentValue,pool:f},t.memoizedState={baseLanes:l,cachePool:f},e!==null&&$s(t,null),$d(),Wv(t),e!==null&&Ur(e,t,o,!0),t.childLanes=d,null}function ru(e,t){return t=ou({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Jg(e,t,l){return Fl(t,e.child,null,l),e=ru(t,t.pendingProps),e.flags|=2,an(t),t.memoizedState=null,e}function hE(e,t,l){var o=t.pendingProps,d=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ue){if(o.mode==="hidden")return e=ru(t,o),t.lanes=536870912,jo(null,e);if(Vd(t),(e=We)?(e=u0(e,xn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ya!==null?{id:Vn,overflow:Kn}:null,retryLane:536870912,hydrationErrors:null},l=Ov(e),l.return=t,t.child=l,Tt=t,We=null)):e=null,e===null)throw Ka(t);return t.lanes=536870912,null}return ru(t,o)}var f=e.memoizedState;if(f!==null){var b=f.dehydrated;if(Vd(t),d)if(t.flags&256)t.flags&=-257,t=Jg(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(mt||Ur(e,t,l,!1),d=(l&e.childLanes)!==0,mt||d){if(o=Je,o!==null&&(b=Qp(o,l),b!==0&&b!==f.retryLane))throw f.retryLane=b,Bl(e,b),Kt(o,e,b),hf;vu(),t=Jg(e,t,l)}else e=f.treeContext,We=wn(b.nextSibling),Tt=t,Ue=!0,Va=null,xn=!1,e!==null&&Uv(t,e),t=ru(t,o),t.flags|=4096;return t}return e=da(e.child,{mode:o.mode,children:o.children}),e.ref=t.ref,t.child=e,e.return=t,e}function iu(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 mf(e,t,l,o,d){return Yl(t),l=Xd(e,t,l,o,void 0,d),o=Fd(),e!==null&&!mt?(Zd(e,t,d),ga(e,t,d)):(Ue&&o&&Td(t),t.flags|=1,Mt(e,t,l,d),t.child)}function Ig(e,t,l,o,d,f){return Yl(t),t.updateQueue=null,l=tg(t,o,l,d),eg(e),o=Fd(),e!==null&&!mt?(Zd(e,t,f),ga(e,t,f)):(Ue&&o&&Td(t),t.flags|=1,Mt(e,t,l,f),t.child)}function Wg(e,t,l,o,d){if(Yl(t),t.stateNode===null){var f=Dr,b=l.contextType;typeof b=="object"&&b!==null&&(f=Rt(b)),f=new l(o,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=df,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=o,f.state=t.memoizedState,f.refs={},Hd(t),b=l.contextType,f.context=typeof b=="object"&&b!==null?Rt(b):Dr,f.state=t.memoizedState,b=l.getDerivedStateFromProps,typeof b=="function"&&(cf(t,l,b,o),f.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(b=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),b!==f.state&&df.enqueueReplaceState(f,f.state,null),yo(t,o,f,d),go(),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=Pl(l,N);f.props=M;var Q=f.context,Z=l.contextType;b=Dr,typeof Z=="object"&&Z!==null&&(b=Rt(Z));var J=l.getDerivedStateFromProps;Z=typeof J=="function"||typeof f.getSnapshotBeforeUpdate=="function",N=t.pendingProps!==N,Z||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(N||Q!==b)&&Hg(t,f,o,b),Fa=!1;var G=t.memoizedState;f.state=G,yo(t,o,f,d),go(),Q=t.memoizedState,N||G!==Q||Fa?(typeof J=="function"&&(cf(t,l,J,o),Q=t.memoizedState),(M=Fa||qg(t,l,M,o,G,Q,b))?(Z||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=b,o=M):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{f=t.stateNode,Bd(e,t),b=t.memoizedProps,Z=Pl(l,b),f.props=Z,J=t.pendingProps,G=f.context,Q=l.contextType,M=Dr,typeof Q=="object"&&Q!==null&&(M=Rt(Q)),N=l.getDerivedStateFromProps,(Q=typeof N=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(b!==J||G!==M)&&Hg(t,f,o,M),Fa=!1,G=t.memoizedState,f.state=G,yo(t,o,f,d),go();var V=t.memoizedState;b!==J||G!==V||Fa||e!==null&&e.dependencies!==null&&Qs(e.dependencies)?(typeof N=="function"&&(cf(t,l,N,o),V=t.memoizedState),(Z=Fa||qg(t,l,Z,o,G,V,M)||e!==null&&e.dependencies!==null&&Qs(e.dependencies))?(Q||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(o,V,M),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(o,V,M)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||b===e.memoizedProps&&G===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&G===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=V),f.props=o,f.state=V,f.context=M,o=Z):(typeof f.componentDidUpdate!="function"||b===e.memoizedProps&&G===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&G===e.memoizedState||(t.flags|=1024),o=!1)}return f=o,iu(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=Fl(t,e.child,null,d),t.child=Fl(t,null,l,d)):Mt(e,t,l,d),t.memoizedState=f.state,e=t.child):e=ga(e,t,d),e}function ey(e,t,l,o){return Gl(),t.flags|=256,Mt(e,t,l,o),t.child}var pf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vf(e){return{baseLanes:e,cachePool:$v()}}function gf(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=rn),e}function ty(e,t,l){var o=t.pendingProps,d=!1,f=(t.flags&128)!==0,b;if((b=f)||(b=e!==null&&e.memoizedState===null?!1:(ut.current&2)!==0),b&&(d=!0,t.flags&=-129),b=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ue){if(d?Ja(t):Ia(),(e=We)?(e=u0(e,xn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ya!==null?{id:Vn,overflow:Kn}:null,retryLane:536870912,hydrationErrors:null},l=Ov(e),l.return=t,t.child=l,Tt=t,We=null)):e=null,e===null)throw Ka(t);return Wf(e)?t.lanes=32:t.lanes=536870912,null}var N=o.children;return o=o.fallback,d?(Ia(),d=t.mode,N=ou({mode:"hidden",children:N},d),o=Ql(o,d,l,null),N.return=t,o.return=t,N.sibling=o,t.child=N,o=t.child,o.memoizedState=vf(l),o.childLanes=gf(e,b,l),t.memoizedState=pf,jo(null,o)):(Ja(t),yf(t,N))}var M=e.memoizedState;if(M!==null&&(N=M.dehydrated,N!==null)){if(f)t.flags&256?(Ja(t),t.flags&=-257,t=xf(e,t,l)):t.memoizedState!==null?(Ia(),t.child=e.child,t.flags|=128,t=null):(Ia(),N=o.fallback,d=t.mode,o=ou({mode:"visible",children:o.children},d),N=Ql(N,d,l,null),N.flags|=2,o.return=t,N.return=t,o.sibling=N,t.child=o,Fl(t,e.child,null,l),o=t.child,o.memoizedState=vf(l),o.childLanes=gf(e,b,l),t.memoizedState=pf,t=jo(null,o));else if(Ja(t),Wf(N)){if(b=N.nextSibling&&N.nextSibling.dataset,b)var Q=b.dgst;b=Q,o=Error(i(419)),o.stack="",o.digest=b,co({value:o,source:null,stack:null}),t=xf(e,t,l)}else if(mt||Ur(e,t,l,!1),b=(l&e.childLanes)!==0,mt||b){if(b=Je,b!==null&&(o=Qp(b,l),o!==0&&o!==M.retryLane))throw M.retryLane=o,Bl(e,o),Kt(b,e,o),hf;If(N)||vu(),t=xf(e,t,l)}else If(N)?(t.flags|=192,t.child=e.child,t=null):(e=M.treeContext,We=wn(N.nextSibling),Tt=t,Ue=!0,Va=null,xn=!1,e!==null&&Uv(t,e),t=yf(t,o.children),t.flags|=4096);return t}return d?(Ia(),N=o.fallback,d=t.mode,M=e.child,Q=M.sibling,o=da(M,{mode:"hidden",children:o.children}),o.subtreeFlags=M.subtreeFlags&65011712,Q!==null?N=da(Q,N):(N=Ql(N,d,l,null),N.flags|=2),N.return=t,o.return=t,o.sibling=N,t.child=o,jo(null,o),o=t.child,N=e.child.memoizedState,N===null?N=vf(l):(d=N.cachePool,d!==null?(M=ft._currentValue,d=d.parent!==M?{parent:M,pool:M}:d):d=$v(),N={baseLanes:N.baseLanes|l,cachePool:d}),o.memoizedState=N,o.childLanes=gf(e,b,l),t.memoizedState=pf,jo(e.child,o)):(Ja(t),l=e.child,e=l.sibling,l=da(l,{mode:"visible",children:o.children}),l.return=t,l.sibling=null,e!==null&&(b=t.deletions,b===null?(t.deletions=[e],t.flags|=16):b.push(e)),t.child=l,t.memoizedState=null,l)}function yf(e,t){return t=ou({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ou(e,t){return e=tn(22,e,null,t),e.lanes=0,e}function xf(e,t,l){return Fl(t,e.child,null,l),e=yf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ny(e,t,l){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Dd(e.return,t,l)}function bf(e,t,l,o,d,f){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:l,tailMode:d,treeForkCount:f}:(b.isBackwards=t,b.rendering=null,b.renderingStartTime=0,b.last=o,b.tail=l,b.tailMode=d,b.treeForkCount=f)}function ay(e,t,l){var o=t.pendingProps,d=o.revealOrder,f=o.tail;o=o.children;var b=ut.current,N=(b&2)!==0;if(N?(b=b&1|2,t.flags|=128):b&=1,ee(ut,b),Mt(e,t,o,l),o=Ue?uo:0,!N&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ny(e,l,t);else if(e.tag===19)ny(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(d){case"forwards":for(l=t.child,d=null;l!==null;)e=l.alternate,e!==null&&Zs(e)===null&&(d=l),l=l.sibling;l=d,l===null?(d=t.child,t.child=null):(d=l.sibling,l.sibling=null),bf(t,!1,d,l,f,o);break;case"backwards":case"unstable_legacy-backwards":for(l=null,d=t.child,t.child=null;d!==null;){if(e=d.alternate,e!==null&&Zs(e)===null){t.child=d;break}e=d.sibling,d.sibling=l,l=d,d=e}bf(t,!0,l,null,f,o);break;case"together":bf(t,!1,null,null,void 0,o);break;default:t.memoizedState=null}return t.child}function ga(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),tl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Ur(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=da(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=da(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function wf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Qs(e)))}function mE(e,t,l){switch(t.tag){case 3:Ee(t,t.stateNode.containerInfo),Xa(t,ft,e.memoizedState.cache),Gl();break;case 27:case 5:Ne(t);break;case 4:Ee(t,t.stateNode.containerInfo);break;case 10:Xa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Vd(t),null;break;case 13:var o=t.memoizedState;if(o!==null)return o.dehydrated!==null?(Ja(t),t.flags|=128,null):(l&t.child.childLanes)!==0?ty(e,t,l):(Ja(t),e=ga(e,t,l),e!==null?e.sibling:null);Ja(t);break;case 19:var d=(e.flags&128)!==0;if(o=(l&t.childLanes)!==0,o||(Ur(e,t,l,!1),o=(l&t.childLanes)!==0),d){if(o)return ay(e,t,l);t.flags|=128}if(d=t.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),ee(ut,ut.current),o)break;return null;case 22:return t.lanes=0,Zg(e,t,l,t.pendingProps);case 24:Xa(t,ft,e.memoizedState.cache)}return ga(e,t,l)}function ly(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)mt=!0;else{if(!wf(e,l)&&(t.flags&128)===0)return mt=!1,mE(e,t,l);mt=(e.flags&131072)!==0}else mt=!1,Ue&&(t.flags&1048576)!==0&&Lv(t,uo,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=Kl(t.elementType),t.type=e,typeof e=="function")Nd(e)?(o=Pl(e,o),t.tag=1,t=Wg(null,t,e,o,l)):(t.tag=0,t=mf(null,t,e,o,l));else{if(e!=null){var d=e.$$typeof;if(d===D){t.tag=11,t=Kg(null,t,e,o,l);break e}else if(d===H){t.tag=14,t=Xg(null,t,e,o,l);break e}}throw t=ie(e)||e,Error(i(306,t,""))}}return t;case 0:return mf(e,t,t.type,t.pendingProps,l);case 1:return o=t.type,d=Pl(o,t.pendingProps),Wg(e,t,o,d,l);case 3:e:{if(Ee(t,t.stateNode.containerInfo),e===null)throw Error(i(387));o=t.pendingProps;var f=t.memoizedState;d=f.element,Bd(e,t),yo(t,o,null,l);var b=t.memoizedState;if(o=b.cache,Xa(t,ft,o),o!==f.cache&&Od(t,[ft],l,!0),go(),o=b.element,f.isDehydrated)if(f={element:o,isDehydrated:!1,cache:b.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=ey(e,t,o,l);break e}else if(o!==d){d=vn(Error(i(424)),t),co(d),t=ey(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(We=wn(e.firstChild),Tt=t,Ue=!0,Va=null,xn=!0,l=Zv(t,null,o,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Gl(),o===d){t=ga(e,t,l);break e}Mt(e,t,o,l)}t=t.child}return t;case 26:return iu(e,t),e===null?(l=p0(t.type,null,t.pendingProps,null))?t.memoizedState=l:Ue||(l=t.type,e=t.pendingProps,o=ju(je.current).createElement(l),o[_t]=t,o[Bt]=e,At(o,l,e),Et(o),t.stateNode=o):t.memoizedState=p0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ne(t),e===null&&Ue&&(o=t.stateNode=f0(t.type,t.pendingProps,je.current),Tt=t,xn=!0,d=We,il(t.type)?(eh=d,We=wn(o.firstChild)):We=d),Mt(e,t,t.pendingProps.children,l),iu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ue&&((d=o=We)&&(o=YE(o,t.type,t.pendingProps,xn),o!==null?(t.stateNode=o,Tt=t,We=wn(o.firstChild),xn=!1,d=!0):d=!1),d||Ka(t)),Ne(t),d=t.type,f=t.pendingProps,b=e!==null?e.memoizedProps:null,o=f.children,Zf(d,f)?o=null:b!==null&&Zf(d,b)&&(t.flags|=32),t.memoizedState!==null&&(d=Xd(e,t,rE,null,null,l),qo._currentValue=d),iu(e,t),Mt(e,t,o,l),t.child;case 6:return e===null&&Ue&&((e=l=We)&&(l=VE(l,t.pendingProps,xn),l!==null?(t.stateNode=l,Tt=t,We=null,e=!0):e=!1),e||Ka(t)),null;case 13:return ty(e,t,l);case 4:return Ee(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Fl(t,null,o,l):Mt(e,t,o,l),t.child;case 11:return Kg(e,t,t.type,t.pendingProps,l);case 7:return Mt(e,t,t.pendingProps,l),t.child;case 8:return Mt(e,t,t.pendingProps.children,l),t.child;case 12:return Mt(e,t,t.pendingProps.children,l),t.child;case 10:return o=t.pendingProps,Xa(t,t.type,o.value),Mt(e,t,o.children,l),t.child;case 9:return d=t.type._context,o=t.pendingProps.children,Yl(t),d=Rt(d),o=o(d),t.flags|=1,Mt(e,t,o,l),t.child;case 14:return Xg(e,t,t.type,t.pendingProps,l);case 15:return Fg(e,t,t.type,t.pendingProps,l);case 19:return ay(e,t,l);case 31:return hE(e,t,l);case 22:return Zg(e,t,l,t.pendingProps);case 24:return Yl(t),o=Rt(ft),e===null?(d=Ud(),d===null&&(d=Je,f=zd(),d.pooledCache=f,f.refCount++,f!==null&&(d.pooledCacheLanes|=l),d=f),t.memoizedState={parent:o,cache:d},Hd(t),Xa(t,ft,d)):((e.lanes&l)!==0&&(Bd(e,t),yo(t,null,null,l),go()),d=e.memoizedState,f=t.memoizedState,d.parent!==o?(d={parent:o,cache:o},t.memoizedState=d,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=d),Xa(t,ft,o)):(o=f.cache,Xa(t,ft,o),o!==d.cache&&Od(t,[ft],l,!0))),Mt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function ya(e){e.flags|=4}function Sf(e,t,l,o,d){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(d&335544128)===d)if(e.stateNode.complete)e.flags|=8192;else if(Ay())e.flags|=8192;else throw Xl=Vs,qd}else e.flags&=-16777217}function ry(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!b0(t))if(Ay())e.flags|=8192;else throw Xl=Vs,qd}function su(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?qp():536870912,e.lanes|=t,Zr|=t)}function Eo(e,t){if(!Ue)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 et(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,o=0;if(t)for(var d=e.child;d!==null;)l|=d.lanes|d.childLanes,o|=d.subtreeFlags&65011712,o|=d.flags&65011712,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)l|=d.lanes|d.childLanes,o|=d.subtreeFlags,o|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=o,e.childLanes=l,t}function pE(e,t,l){var o=t.pendingProps;switch(Rd(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return et(t),null;case 3:return l=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),ma(ft),ye(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Lr(t)?ya(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ad())),et(t),null;case 26:var d=t.type,f=t.memoizedState;return e===null?(ya(t),f!==null?(et(t),ry(t,f)):(et(t),Sf(t,d,null,o,l))):f?f!==e.memoizedState?(ya(t),et(t),ry(t,f)):(et(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&ya(t),et(t),Sf(t,d,e,o,l)),null;case 27:if(He(t),l=je.current,d=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&ya(t);else{if(!o){if(t.stateNode===null)throw Error(i(166));return et(t),null}e=le.current,Lr(t)?qv(t):(e=f0(d,o,l),t.stateNode=e,ya(t))}return et(t),null;case 5:if(He(t),d=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&ya(t);else{if(!o){if(t.stateNode===null)throw Error(i(166));return et(t),null}if(f=le.current,Lr(t))qv(t);else{var b=ju(je.current);switch(f){case 1:f=b.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:f=b.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":f=b.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":f=b.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":f=b.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof o.is=="string"?b.createElement("select",{is:o.is}):b.createElement("select"),o.multiple?f.multiple=!0:o.size&&(f.size=o.size);break;default:f=typeof o.is=="string"?b.createElement(d,{is:o.is}):b.createElement(d)}}f[_t]=t,f[Bt]=o;e:for(b=t.child;b!==null;){if(b.tag===5||b.tag===6)f.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===t)break e;for(;b.sibling===null;){if(b.return===null||b.return===t)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}t.stateNode=f;e:switch(At(f,d,o),d){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&ya(t)}}return et(t),Sf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&ya(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(i(166));if(e=je.current,Lr(t)){if(e=t.stateNode,l=t.memoizedProps,o=null,d=Tt,d!==null)switch(d.tag){case 27:case 5:o=d.memoizedProps}e[_t]=t,e=!!(e.nodeValue===l||o!==null&&o.suppressHydrationWarning===!0||t0(e.nodeValue,l)),e||Ka(t,!0)}else e=ju(e).createTextNode(o),e[_t]=t,t.stateNode=e}return et(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(o=Lr(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[_t]=t}else Gl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),e=!1}else l=Ad(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(an(t),t):(an(t),null);if((t.flags&128)!==0)throw Error(i(558))}return et(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(d=Lr(t),o!==null&&o.dehydrated!==null){if(e===null){if(!d)throw Error(i(318));if(d=t.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(i(317));d[_t]=t}else Gl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),d=!1}else d=Ad(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=d),d=!0;if(!d)return t.flags&256?(an(t),t):(an(t),null)}return an(t),(t.flags&128)!==0?(t.lanes=l,t):(l=o!==null,e=e!==null&&e.memoizedState!==null,l&&(o=t.child,d=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(d=o.alternate.memoizedState.cachePool.pool),f=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(f=o.memoizedState.cachePool.pool),f!==d&&(o.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),su(t,t.updateQueue),et(t),null);case 4:return ye(),e===null&&Yf(t.stateNode.containerInfo),et(t),null;case 10:return ma(t.type),et(t),null;case 19:if(F(ut),o=t.memoizedState,o===null)return et(t),null;if(d=(t.flags&128)!==0,f=o.rendering,f===null)if(d)Eo(o,!1);else{if(it!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=Zs(e),f!==null){for(t.flags|=128,Eo(o,!1),e=f.updateQueue,t.updateQueue=e,su(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Dv(l,e),l=l.sibling;return ee(ut,ut.current&1|2),Ue&&fa(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&Jt()>hu&&(t.flags|=128,d=!0,Eo(o,!1),t.lanes=4194304)}else{if(!d)if(e=Zs(f),e!==null){if(t.flags|=128,d=!0,e=e.updateQueue,t.updateQueue=e,su(t,e),Eo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!f.alternate&&!Ue)return et(t),null}else 2*Jt()-o.renderingStartTime>hu&&l!==536870912&&(t.flags|=128,d=!0,Eo(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=Jt(),e.sibling=null,l=ut.current,ee(ut,d?l&1|2:l&1),Ue&&fa(t,o.treeForkCount),e):(et(t),null);case 22:case 23:return an(t),Yd(),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&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),l=t.updateQueue,l!==null&&su(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&&F(Vl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ma(ft),et(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function vE(e,t){switch(Rd(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ma(ft),ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return He(t),null;case 31:if(t.memoizedState!==null){if(an(t),t.alternate===null)throw Error(i(340));Gl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(an(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Gl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return F(ut),null;case 4:return ye(),null;case 10:return ma(t.type),null;case 22:case 23:return an(t),Yd(),e!==null&&F(Vl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ma(ft),null;case 25:return null;default:return null}}function iy(e,t){switch(Rd(t),t.tag){case 3:ma(ft),ye();break;case 26:case 27:case 5:He(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&an(t);break;case 13:an(t);break;case 19:F(ut);break;case 10:ma(t.type);break;case 22:case 23:an(t),Yd(),e!==null&&F(Vl);break;case 24:ma(ft)}}function No(e,t){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var d=o.next;l=d;do{if((l.tag&e)===e){o=void 0;var f=l.create,b=l.inst;o=f(),b.destroy=o}l=l.next}while(l!==d)}}catch(N){Xe(t,t.return,N)}}function Wa(e,t,l){try{var o=t.updateQueue,d=o!==null?o.lastEffect:null;if(d!==null){var f=d.next;o=f;do{if((o.tag&e)===e){var b=o.inst,N=b.destroy;if(N!==void 0){b.destroy=void 0,d=t;var M=l,Q=N;try{Q()}catch(Z){Xe(d,M,Z)}}}o=o.next}while(o!==f)}}catch(Z){Xe(t,t.return,Z)}}function oy(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Jv(t,l)}catch(o){Xe(e,e.return,o)}}}function sy(e,t,l){l.props=Pl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(o){Xe(e,t,o)}}function Co(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(d){Xe(e,t,d)}}function Xn(e,t){var l=e.ref,o=e.refCleanup;if(l!==null)if(typeof o=="function")try{o()}catch(d){Xe(e,t,d)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(d){Xe(e,t,d)}else l.current=null}function uy(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(d){Xe(e,e.return,d)}}function jf(e,t,l){try{var o=e.stateNode;qE(o,e.type,l,t),o[Bt]=t}catch(d){Xe(e,e.return,d)}}function cy(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&il(e.type)||e.tag===4}function Ef(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cy(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&&il(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 Nf(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=ua));else if(o!==4&&(o===27&&il(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Nf(e,t,l),e=e.sibling;e!==null;)Nf(e,t,l),e=e.sibling}function uu(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&&il(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(uu(e,t,l),e=e.sibling;e!==null;)uu(e,t,l),e=e.sibling}function dy(e){var t=e.stateNode,l=e.memoizedProps;try{for(var o=e.type,d=t.attributes;d.length;)t.removeAttributeNode(d[0]);At(t,o,l),t[_t]=e,t[Bt]=l}catch(f){Xe(e,e.return,f)}}var xa=!1,pt=!1,Cf=!1,fy=typeof WeakSet=="function"?WeakSet:Set,Nt=null;function gE(e,t){if(e=e.containerInfo,Xf=Mu,e=Ev(e),yd(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 d=o.anchorOffset,f=o.focusNode;o=o.focusOffset;try{l.nodeType,f.nodeType}catch{l=null;break e}var b=0,N=-1,M=-1,Q=0,Z=0,J=e,G=null;t:for(;;){for(var V;J!==l||d!==0&&J.nodeType!==3||(N=b+d),J!==f||o!==0&&J.nodeType!==3||(M=b+o),J.nodeType===3&&(b+=J.nodeValue.length),(V=J.firstChild)!==null;)G=J,J=V;for(;;){if(J===e)break t;if(G===l&&++Q===d&&(N=b),G===f&&++Z===o&&(M=b),(V=J.nextSibling)!==null)break;J=G,G=J.parentNode}J=V}l=N===-1||M===-1?null:{start:N,end:M}}else l=null}l=l||{start:0,end:0}}else l=null;for(Ff={focusedElem:e,selectionRange:l},Mu=!1,Nt=t;Nt!==null;)if(t=Nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Nt=e;else for(;Nt!==null;){switch(t=Nt,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++)d=e[l],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,l=t,d=f.memoizedProps,f=f.memoizedState,o=l.stateNode;try{var fe=Pl(l.type,d);e=o.getSnapshotBeforeUpdate(fe,f),o.__reactInternalSnapshotBeforeUpdate=e}catch(Se){Xe(l,l.return,Se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Jf(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Jf(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,Nt=e;break}Nt=t.return}}function hy(e,t,l){var o=l.flags;switch(l.tag){case 0:case 11:case 15:wa(e,l),o&4&&No(5,l);break;case 1:if(wa(e,l),o&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(b){Xe(l,l.return,b)}else{var d=Pl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(d,t,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Xe(l,l.return,b)}}o&64&&oy(l),o&512&&Co(l,l.return);break;case 3:if(wa(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{Jv(e,t)}catch(b){Xe(l,l.return,b)}}break;case 27:t===null&&o&4&&dy(l);case 26:case 5:wa(e,l),t===null&&o&4&&uy(l),o&512&&Co(l,l.return);break;case 12:wa(e,l);break;case 31:wa(e,l),o&4&&vy(e,l);break;case 13:wa(e,l),o&4&&gy(e,l),o&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=CE.bind(null,l),KE(e,l))));break;case 22:if(o=l.memoizedState!==null||xa,!o){t=t!==null&&t.memoizedState!==null||pt,d=xa;var f=pt;xa=o,(pt=t)&&!f?Sa(e,l,(l.subtreeFlags&8772)!==0):wa(e,l),xa=d,pt=f}break;case 30:break;default:wa(e,l)}}function my(e){var t=e.alternate;t!==null&&(e.alternate=null,my(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&td(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 tt=null,Gt=!1;function ba(e,t,l){for(l=l.child;l!==null;)py(e,t,l),l=l.sibling}function py(e,t,l){if(It&&typeof It.onCommitFiberUnmount=="function")try{It.onCommitFiberUnmount(Zi,l)}catch{}switch(l.tag){case 26:pt||Xn(l,t),ba(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:pt||Xn(l,t);var o=tt,d=Gt;il(l.type)&&(tt=l.stateNode,Gt=!1),ba(e,t,l),zo(l.stateNode),tt=o,Gt=d;break;case 5:pt||Xn(l,t);case 6:if(o=tt,d=Gt,tt=null,ba(e,t,l),tt=o,Gt=d,tt!==null)if(Gt)try{(tt.nodeType===9?tt.body:tt.nodeName==="HTML"?tt.ownerDocument.body:tt).removeChild(l.stateNode)}catch(f){Xe(l,t,f)}else try{tt.removeChild(l.stateNode)}catch(f){Xe(l,t,f)}break;case 18:tt!==null&&(Gt?(e=tt,o0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),ai(e)):o0(tt,l.stateNode));break;case 4:o=tt,d=Gt,tt=l.stateNode.containerInfo,Gt=!0,ba(e,t,l),tt=o,Gt=d;break;case 0:case 11:case 14:case 15:Wa(2,l,t),pt||Wa(4,l,t),ba(e,t,l);break;case 1:pt||(Xn(l,t),o=l.stateNode,typeof o.componentWillUnmount=="function"&&sy(l,t,o)),ba(e,t,l);break;case 21:ba(e,t,l);break;case 22:pt=(o=pt)||l.memoizedState!==null,ba(e,t,l),pt=o;break;default:ba(e,t,l)}}function vy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ai(e)}catch(l){Xe(t,t.return,l)}}}function gy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ai(e)}catch(l){Xe(t,t.return,l)}}function yE(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new fy),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new fy),t;default:throw Error(i(435,e.tag))}}function cu(e,t){var l=yE(e);t.forEach(function(o){if(!l.has(o)){l.add(o);var d=_E.bind(null,e,o);o.then(d,d)}})}function $t(e,t){var l=t.deletions;if(l!==null)for(var o=0;o<l.length;o++){var d=l[o],f=e,b=t,N=b;e:for(;N!==null;){switch(N.tag){case 27:if(il(N.type)){tt=N.stateNode,Gt=!1;break e}break;case 5:tt=N.stateNode,Gt=!1;break e;case 3:case 4:tt=N.stateNode.containerInfo,Gt=!0;break e}N=N.return}if(tt===null)throw Error(i(160));py(f,b,d),tt=null,Gt=!1,f=d.alternate,f!==null&&(f.return=null),d.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)yy(t,e),t=t.sibling}var Mn=null;function yy(e,t){var l=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:$t(t,e),Yt(e),o&4&&(Wa(3,e,e.return),No(3,e),Wa(5,e,e.return));break;case 1:$t(t,e),Yt(e),o&512&&(pt||l===null||Xn(l,l.return)),o&64&&xa&&(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 d=Mn;if($t(t,e),Yt(e),o&512&&(pt||l===null||Xn(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,d=d.ownerDocument||d;t:switch(o){case"title":f=d.getElementsByTagName("title")[0],(!f||f[Ii]||f[_t]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=d.createElement(o),d.head.insertBefore(f,d.querySelector("head > title"))),At(f,o,l),f[_t]=e,Et(f),o=f;break e;case"link":var b=y0("link","href",d).get(o+(l.href||""));if(b){for(var N=0;N<b.length;N++)if(f=b[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)){b.splice(N,1);break t}}f=d.createElement(o),At(f,o,l),d.head.appendChild(f);break;case"meta":if(b=y0("meta","content",d).get(o+(l.content||""))){for(N=0;N<b.length;N++)if(f=b[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)){b.splice(N,1);break t}}f=d.createElement(o),At(f,o,l),d.head.appendChild(f);break;default:throw Error(i(468,o))}f[_t]=e,Et(f),o=f}e.stateNode=o}else x0(d,e.type,e.stateNode);else e.stateNode=g0(d,o,e.memoizedProps);else f!==o?(f===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):f.count--,o===null?x0(d,e.type,e.stateNode):g0(d,o,e.memoizedProps)):o===null&&e.stateNode!==null&&jf(e,e.memoizedProps,l.memoizedProps)}break;case 27:$t(t,e),Yt(e),o&512&&(pt||l===null||Xn(l,l.return)),l!==null&&o&4&&jf(e,e.memoizedProps,l.memoizedProps);break;case 5:if($t(t,e),Yt(e),o&512&&(pt||l===null||Xn(l,l.return)),e.flags&32){d=e.stateNode;try{Cr(d,"")}catch(fe){Xe(e,e.return,fe)}}o&4&&e.stateNode!=null&&(d=e.memoizedProps,jf(e,d,l!==null?l.memoizedProps:d)),o&1024&&(Cf=!0);break;case 6:if($t(t,e),Yt(e),o&4){if(e.stateNode===null)throw Error(i(162));o=e.memoizedProps,l=e.stateNode;try{l.nodeValue=o}catch(fe){Xe(e,e.return,fe)}}break;case 3:if(Cu=null,d=Mn,Mn=Eu(t.containerInfo),$t(t,e),Mn=d,Yt(e),o&4&&l!==null&&l.memoizedState.isDehydrated)try{ai(t.containerInfo)}catch(fe){Xe(e,e.return,fe)}Cf&&(Cf=!1,xy(e));break;case 4:o=Mn,Mn=Eu(e.stateNode.containerInfo),$t(t,e),Yt(e),Mn=o;break;case 12:$t(t,e),Yt(e);break;case 31:$t(t,e),Yt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,cu(e,o)));break;case 13:$t(t,e),Yt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(fu=Jt()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,cu(e,o)));break;case 22:d=e.memoizedState!==null;var M=l!==null&&l.memoizedState!==null,Q=xa,Z=pt;if(xa=Q||d,pt=Z||M,$t(t,e),pt=Z,xa=Q,Yt(e),o&8192)e:for(t=e.stateNode,t._visibility=d?t._visibility&-2:t._visibility|1,d&&(l===null||M||xa||pt||Jl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){M=l=t;try{if(f=M.stateNode,d)b=f.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{N=M.stateNode;var J=M.memoizedProps.style,G=J!=null&&J.hasOwnProperty("display")?J.display:null;N.style.display=G==null||typeof G=="boolean"?"":(""+G).trim()}}catch(fe){Xe(M,M.return,fe)}}}else if(t.tag===6){if(l===null){M=t;try{M.stateNode.nodeValue=d?"":M.memoizedProps}catch(fe){Xe(M,M.return,fe)}}}else if(t.tag===18){if(l===null){M=t;try{var V=M.stateNode;d?s0(V,!0):s0(M.stateNode,!1)}catch(fe){Xe(M,M.return,fe)}}}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,cu(e,l))));break;case 19:$t(t,e),Yt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,cu(e,o)));break;case 30:break;case 21:break;default:$t(t,e),Yt(e)}}function Yt(e){var t=e.flags;if(t&2){try{for(var l,o=e.return;o!==null;){if(cy(o)){l=o;break}o=o.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var d=l.stateNode,f=Ef(e);uu(e,f,d);break;case 5:var b=l.stateNode;l.flags&32&&(Cr(b,""),l.flags&=-33);var N=Ef(e);uu(e,N,b);break;case 3:case 4:var M=l.stateNode.containerInfo,Q=Ef(e);Nf(e,Q,M);break;default:throw Error(i(161))}}catch(Z){Xe(e,e.return,Z)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xy(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;xy(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function wa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)hy(e,t.alternate,t),t=t.sibling}function Jl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Wa(4,t,t.return),Jl(t);break;case 1:Xn(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&sy(t,t.return,l),Jl(t);break;case 27:zo(t.stateNode);case 26:case 5:Xn(t,t.return),Jl(t);break;case 22:t.memoizedState===null&&Jl(t);break;case 30:Jl(t);break;default:Jl(t)}e=e.sibling}}function Sa(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var o=t.alternate,d=e,f=t,b=f.flags;switch(f.tag){case 0:case 11:case 15:Sa(d,f,l),No(4,f);break;case 1:if(Sa(d,f,l),o=f,d=o.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(Q){Xe(o,o.return,Q)}if(o=f,d=o.updateQueue,d!==null){var N=o.stateNode;try{var M=d.shared.hiddenCallbacks;if(M!==null)for(d.shared.hiddenCallbacks=null,d=0;d<M.length;d++)Pv(M[d],N)}catch(Q){Xe(o,o.return,Q)}}l&&b&64&&oy(f),Co(f,f.return);break;case 27:dy(f);case 26:case 5:Sa(d,f,l),l&&o===null&&b&4&&uy(f),Co(f,f.return);break;case 12:Sa(d,f,l);break;case 31:Sa(d,f,l),l&&b&4&&vy(d,f);break;case 13:Sa(d,f,l),l&&b&4&&gy(d,f);break;case 22:f.memoizedState===null&&Sa(d,f,l),Co(f,f.return);break;case 30:break;default:Sa(d,f,l)}t=t.sibling}}function _f(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&&fo(l))}function Tf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fo(e))}function An(e,t,l,o){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)by(e,t,l,o),t=t.sibling}function by(e,t,l,o){var d=t.flags;switch(t.tag){case 0:case 11:case 15:An(e,t,l,o),d&2048&&No(9,t);break;case 1:An(e,t,l,o);break;case 3:An(e,t,l,o),d&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fo(e)));break;case 12:if(d&2048){An(e,t,l,o),e=t.stateNode;try{var f=t.memoizedProps,b=f.id,N=f.onPostCommit;typeof N=="function"&&N(b,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(M){Xe(t,t.return,M)}}else An(e,t,l,o);break;case 31:An(e,t,l,o);break;case 13:An(e,t,l,o);break;case 23:break;case 22:f=t.stateNode,b=t.alternate,t.memoizedState!==null?f._visibility&2?An(e,t,l,o):_o(e,t):f._visibility&2?An(e,t,l,o):(f._visibility|=2,Kr(e,t,l,o,(t.subtreeFlags&10256)!==0||!1)),d&2048&&_f(b,t);break;case 24:An(e,t,l,o),d&2048&&Tf(t.alternate,t);break;default:An(e,t,l,o)}}function Kr(e,t,l,o,d){for(d=d&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var f=e,b=t,N=l,M=o,Q=b.flags;switch(b.tag){case 0:case 11:case 15:Kr(f,b,N,M,d),No(8,b);break;case 23:break;case 22:var Z=b.stateNode;b.memoizedState!==null?Z._visibility&2?Kr(f,b,N,M,d):_o(f,b):(Z._visibility|=2,Kr(f,b,N,M,d)),d&&Q&2048&&_f(b.alternate,b);break;case 24:Kr(f,b,N,M,d),d&&Q&2048&&Tf(b.alternate,b);break;default:Kr(f,b,N,M,d)}t=t.sibling}}function _o(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,o=t,d=o.flags;switch(o.tag){case 22:_o(l,o),d&2048&&_f(o.alternate,o);break;case 24:_o(l,o),d&2048&&Tf(o.alternate,o);break;default:_o(l,o)}t=t.sibling}}var To=8192;function Xr(e,t,l){if(e.subtreeFlags&To)for(e=e.child;e!==null;)wy(e,t,l),e=e.sibling}function wy(e,t,l){switch(e.tag){case 26:Xr(e,t,l),e.flags&To&&e.memoizedState!==null&&lN(l,Mn,e.memoizedState,e.memoizedProps);break;case 5:Xr(e,t,l);break;case 3:case 4:var o=Mn;Mn=Eu(e.stateNode.containerInfo),Xr(e,t,l),Mn=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=To,To=16777216,Xr(e,t,l),To=o):Xr(e,t,l));break;default:Xr(e,t,l)}}function Sy(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 Ro(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];Nt=o,Ey(o,e)}Sy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)jy(e),e=e.sibling}function jy(e){switch(e.tag){case 0:case 11:case 15:Ro(e),e.flags&2048&&Wa(9,e,e.return);break;case 3:Ro(e);break;case 12:Ro(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,du(e)):Ro(e);break;default:Ro(e)}}function du(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];Nt=o,Ey(o,e)}Sy(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Wa(8,t,t.return),du(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,du(t));break;default:du(t)}e=e.sibling}}function Ey(e,t){for(;Nt!==null;){var l=Nt;switch(l.tag){case 0:case 11:case 15:Wa(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:fo(l.memoizedState.cache)}if(o=l.child,o!==null)o.return=l,Nt=o;else e:for(l=e;Nt!==null;){o=Nt;var d=o.sibling,f=o.return;if(my(o),o===l){Nt=null;break e}if(d!==null){d.return=f,Nt=d;break e}Nt=f}}}var xE={getCacheForType:function(e){var t=Rt(ft),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Rt(ft).controller.signal}},bE=typeof WeakMap=="function"?WeakMap:Map,Ge=0,Je=null,Ae=null,ze=0,Ke=0,ln=null,el=!1,Fr=!1,Rf=!1,ja=0,it=0,tl=0,Il=0,Mf=0,rn=0,Zr=0,Mo=null,Vt=null,Af=!1,fu=0,Ny=0,hu=1/0,mu=null,nl=null,yt=0,al=null,Pr=null,Ea=0,kf=0,Df=null,Cy=null,Ao=0,Of=null;function on(){return(Ge&2)!==0&&ze!==0?ze&-ze:U.T!==null?Bf():Gp()}function _y(){if(rn===0)if((ze&536870912)===0||Ue){var e=Ss;Ss<<=1,(Ss&3932160)===0&&(Ss=262144),rn=e}else rn=536870912;return e=nn.current,e!==null&&(e.flags|=32),rn}function Kt(e,t,l){(e===Je&&(Ke===2||Ke===9)||e.cancelPendingCommit!==null)&&(Jr(e,0),ll(e,ze,rn,!1)),Ji(e,l),((Ge&2)===0||e!==Je)&&(e===Je&&((Ge&2)===0&&(Il|=l),it===4&&ll(e,ze,rn,!1)),Fn(e))}function Ty(e,t,l){if((Ge&6)!==0)throw Error(i(327));var o=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Pi(e,t),d=o?jE(e,t):Lf(e,t,!0),f=o;do{if(d===0){Fr&&!o&&ll(e,t,0,!1);break}else{if(l=e.current.alternate,f&&!wE(l)){d=Lf(e,t,!1),f=!1;continue}if(d===2){if(f=t,e.errorRecoveryDisabledLanes&f)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){t=b;e:{var N=e;d=Mo;var M=N.current.memoizedState.isDehydrated;if(M&&(Jr(N,b).flags|=256),b=Lf(N,b,!1),b!==2){if(Rf&&!M){N.errorRecoveryDisabledLanes|=f,Il|=f,d=4;break e}f=Vt,Vt=d,f!==null&&(Vt===null?Vt=f:Vt.push.apply(Vt,f))}d=b}if(f=!1,d!==2)continue}}if(d===1){Jr(e,0),ll(e,t,0,!0);break}e:{switch(o=e,f=d,f){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:ll(o,t,rn,!el);break e;case 2:Vt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(d=fu+300-Jt(),10<d)){if(ll(o,t,rn,!el),Es(o,0,!0)!==0)break e;Ea=t,o.timeoutHandle=r0(Ry.bind(null,o,l,Vt,mu,Af,t,rn,Il,Zr,el,f,"Throttled",-0,0),d);break e}Ry(o,l,Vt,mu,Af,t,rn,Il,Zr,el,f,null,-0,0)}}break}while(!0);Fn(e)}function Ry(e,t,l,o,d,f,b,N,M,Q,Z,J,G,V){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:ua},wy(t,f,J);var fe=(f&62914560)===f?fu-Jt():(f&4194048)===f?Ny-Jt():0;if(fe=rN(J,fe),fe!==null){Ea=f,e.cancelPendingCommit=fe(Uy.bind(null,e,t,f,l,o,d,b,N,M,Z,J,null,G,V)),ll(e,f,b,!Q);return}}Uy(e,t,f,l,o,d,b,N,M)}function wE(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 d=l[o],f=d.getSnapshot;d=d.value;try{if(!en(f(),d))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 ll(e,t,l,o){t&=~Mf,t&=~Il,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var d=t;0<d;){var f=31-Wt(d),b=1<<f;o[f]=-1,d&=~b}l!==0&&Hp(e,l,t)}function pu(){return(Ge&6)===0?(ko(0),!1):!0}function zf(){if(Ae!==null){if(Ke===0)var e=Ae.return;else e=Ae,ha=$l=null,Pd(e),Qr=null,mo=0,e=Ae;for(;e!==null;)iy(e.alternate,e),e=e.return;Ae=null}}function Jr(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,QE(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Ea=0,zf(),Je=e,Ae=l=da(e.current,null),ze=t,Ke=0,ln=null,el=!1,Fr=Pi(e,t),Rf=!1,Zr=rn=Mf=Il=tl=it=0,Vt=Mo=null,Af=!1,(t&8)!==0&&(t|=t&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=t;0<o;){var d=31-Wt(o),f=1<<d;t|=e[d],o&=~f}return ja=t,Ls(),l}function My(e,t){_e=null,U.H=So,t===Br||t===Ys?(t=Kv(),Ke=3):t===qd?(t=Kv(),Ke=4):Ke=t===hf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ln=t,Ae===null&&(it=1,lu(e,vn(t,e.current)))}function Ay(){var e=nn.current;return e===null?!0:(ze&4194048)===ze?bn===null:(ze&62914560)===ze||(ze&536870912)!==0?e===bn:!1}function ky(){var e=U.H;return U.H=So,e===null?So:e}function Dy(){var e=U.A;return U.A=xE,e}function vu(){it=4,el||(ze&4194048)!==ze&&nn.current!==null||(Fr=!0),(tl&134217727)===0&&(Il&134217727)===0||Je===null||ll(Je,ze,rn,!1)}function Lf(e,t,l){var o=Ge;Ge|=2;var d=ky(),f=Dy();(Je!==e||ze!==t)&&(mu=null,Jr(e,t)),t=!1;var b=it;e:do try{if(Ke!==0&&Ae!==null){var N=Ae,M=ln;switch(Ke){case 8:zf(),b=6;break e;case 3:case 2:case 9:case 6:nn.current===null&&(t=!0);var Q=Ke;if(Ke=0,ln=null,Ir(e,N,M,Q),l&&Fr){b=0;break e}break;default:Q=Ke,Ke=0,ln=null,Ir(e,N,M,Q)}}SE(),b=it;break}catch(Z){My(e,Z)}while(!0);return t&&e.shellSuspendCounter++,ha=$l=null,Ge=o,U.H=d,U.A=f,Ae===null&&(Je=null,ze=0,Ls()),b}function SE(){for(;Ae!==null;)Oy(Ae)}function jE(e,t){var l=Ge;Ge|=2;var o=ky(),d=Dy();Je!==e||ze!==t?(mu=null,hu=Jt()+500,Jr(e,t)):Fr=Pi(e,t);e:do try{if(Ke!==0&&Ae!==null){t=Ae;var f=ln;t:switch(Ke){case 1:Ke=0,ln=null,Ir(e,t,f,1);break;case 2:case 9:if(Yv(f)){Ke=0,ln=null,zy(t);break}t=function(){Ke!==2&&Ke!==9||Je!==e||(Ke=7),Fn(e)},f.then(t,t);break e;case 3:Ke=7;break e;case 4:Ke=5;break e;case 7:Yv(f)?(Ke=0,ln=null,zy(t)):(Ke=0,ln=null,Ir(e,t,f,7));break;case 5:var b=null;switch(Ae.tag){case 26:b=Ae.memoizedState;case 5:case 27:var N=Ae;if(b?b0(b):N.stateNode.complete){Ke=0,ln=null;var M=N.sibling;if(M!==null)Ae=M;else{var Q=N.return;Q!==null?(Ae=Q,gu(Q)):Ae=null}break t}}Ke=0,ln=null,Ir(e,t,f,5);break;case 6:Ke=0,ln=null,Ir(e,t,f,6);break;case 8:zf(),it=6;break e;default:throw Error(i(462))}}EE();break}catch(Z){My(e,Z)}while(!0);return ha=$l=null,U.H=o,U.A=d,Ge=l,Ae!==null?0:(Je=null,ze=0,Ls(),it)}function EE(){for(;Ae!==null&&!Xj();)Oy(Ae)}function Oy(e){var t=ly(e.alternate,e,ja);e.memoizedProps=e.pendingProps,t===null?gu(e):Ae=t}function zy(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Ig(l,t,t.pendingProps,t.type,void 0,ze);break;case 11:t=Ig(l,t,t.pendingProps,t.type.render,t.ref,ze);break;case 5:Pd(t);default:iy(l,t),t=Ae=Dv(t,ja),t=ly(l,t,ja)}e.memoizedProps=e.pendingProps,t===null?gu(e):Ae=t}function Ir(e,t,l,o){ha=$l=null,Pd(t),Qr=null,mo=0;var d=t.return;try{if(fE(e,d,t,l,ze)){it=1,lu(e,vn(l,e.current)),Ae=null;return}}catch(f){if(d!==null)throw Ae=d,f;it=1,lu(e,vn(l,e.current)),Ae=null;return}t.flags&32768?(Ue||o===1?e=!0:Fr||(ze&536870912)!==0?e=!1:(el=e=!0,(o===2||o===9||o===3||o===6)&&(o=nn.current,o!==null&&o.tag===13&&(o.flags|=16384))),Ly(t,e)):gu(t)}function gu(e){var t=e;do{if((t.flags&32768)!==0){Ly(t,el);return}e=t.return;var l=pE(t.alternate,t,ja);if(l!==null){Ae=l;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);it===0&&(it=5)}function Ly(e,t){do{var l=vE(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);it=6,Ae=null}function Uy(e,t,l,o,d,f,b,N,M){e.cancelPendingCommit=null;do yu();while(yt!==0);if((Ge&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(f=t.lanes|t.childLanes,f|=jd,a2(e,l,f,b,N,M),e===Je&&(Ae=Je=null,ze=0),Pr=t,al=e,Ea=l,kf=f,Df=d,Cy=o,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,TE(bs,function(){return Gy(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=U.T,U.T=null,d=I.p,I.p=2,b=Ge,Ge|=4;try{gE(e,t,l)}finally{Ge=b,I.p=d,U.T=o}}yt=1,qy(),Hy(),By()}}function qy(){if(yt===1){yt=0;var e=al,t=Pr,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=U.T,U.T=null;var o=I.p;I.p=2;var d=Ge;Ge|=4;try{yy(t,e);var f=Ff,b=Ev(e.containerInfo),N=f.focusedElem,M=f.selectionRange;if(b!==N&&N&&N.ownerDocument&&jv(N.ownerDocument.documentElement,N)){if(M!==null&&yd(N)){var Q=M.start,Z=M.end;if(Z===void 0&&(Z=Q),"selectionStart"in N)N.selectionStart=Q,N.selectionEnd=Math.min(Z,N.value.length);else{var J=N.ownerDocument||document,G=J&&J.defaultView||window;if(G.getSelection){var V=G.getSelection(),fe=N.textContent.length,Se=Math.min(M.start,fe),Pe=M.end===void 0?Se:Math.min(M.end,fe);!V.extend&&Se>Pe&&(b=Pe,Pe=Se,Se=b);var z=Sv(N,Se),O=Sv(N,Pe);if(z&&O&&(V.rangeCount!==1||V.anchorNode!==z.node||V.anchorOffset!==z.offset||V.focusNode!==O.node||V.focusOffset!==O.offset)){var B=J.createRange();B.setStart(z.node,z.offset),V.removeAllRanges(),Se>Pe?(V.addRange(B),V.extend(O.node,O.offset)):(B.setEnd(O.node,O.offset),V.addRange(B))}}}}for(J=[],V=N;V=V.parentNode;)V.nodeType===1&&J.push({element:V,left:V.scrollLeft,top:V.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=!!Xf,Ff=Xf=null}finally{Ge=d,I.p=o,U.T=l}}e.current=t,yt=2}}function Hy(){if(yt===2){yt=0;var e=al,t=Pr,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=U.T,U.T=null;var o=I.p;I.p=2;var d=Ge;Ge|=4;try{hy(e,t.alternate,t)}finally{Ge=d,I.p=o,U.T=l}}yt=3}}function By(){if(yt===4||yt===3){yt=0,Fj();var e=al,t=Pr,l=Ea,o=Cy;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?yt=5:(yt=0,Pr=al=null,Qy(e,e.pendingLanes));var d=e.pendingLanes;if(d===0&&(nl=null),Wc(l),t=t.stateNode,It&&typeof It.onCommitFiberRoot=="function")try{It.onCommitFiberRoot(Zi,t,void 0,(t.current.flags&128)===128)}catch{}if(o!==null){t=U.T,d=I.p,I.p=2,U.T=null;try{for(var f=e.onRecoverableError,b=0;b<o.length;b++){var N=o[b];f(N.value,{componentStack:N.stack})}}finally{U.T=t,I.p=d}}(Ea&3)!==0&&yu(),Fn(e),d=e.pendingLanes,(l&261930)!==0&&(d&42)!==0?e===Of?Ao++:(Ao=0,Of=e):Ao=0,ko(0)}}function Qy(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,fo(t)))}function yu(){return qy(),Hy(),By(),Gy()}function Gy(){if(yt!==5)return!1;var e=al,t=kf;kf=0;var l=Wc(Ea),o=U.T,d=I.p;try{I.p=32>l?32:l,U.T=null,l=Df,Df=null;var f=al,b=Ea;if(yt=0,Pr=al=null,Ea=0,(Ge&6)!==0)throw Error(i(331));var N=Ge;if(Ge|=4,jy(f.current),by(f,f.current,b,l),Ge=N,ko(0,!1),It&&typeof It.onPostCommitFiberRoot=="function")try{It.onPostCommitFiberRoot(Zi,f)}catch{}return!0}finally{I.p=d,U.T=o,Qy(e,t)}}function $y(e,t,l){t=vn(l,t),t=ff(e.stateNode,t,2),e=Pa(e,t,2),e!==null&&(Ji(e,2),Fn(e))}function Xe(e,t,l){if(e.tag===3)$y(e,e,l);else for(;t!==null;){if(t.tag===3){$y(t,e,l);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(nl===null||!nl.has(o))){e=vn(l,e),l=Yg(2),o=Pa(t,l,2),o!==null&&(Vg(l,o,t,e),Ji(o,2),Fn(o));break}}t=t.return}}function Uf(e,t,l){var o=e.pingCache;if(o===null){o=e.pingCache=new bE;var d=new Set;o.set(t,d)}else d=o.get(t),d===void 0&&(d=new Set,o.set(t,d));d.has(l)||(Rf=!0,d.add(l),e=NE.bind(null,e,t,l),t.then(e,e))}function NE(e,t,l){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Je===e&&(ze&l)===l&&(it===4||it===3&&(ze&62914560)===ze&&300>Jt()-fu?(Ge&2)===0&&Jr(e,0):Mf|=l,Zr===ze&&(Zr=0)),Fn(e)}function Yy(e,t){t===0&&(t=qp()),e=Bl(e,t),e!==null&&(Ji(e,t),Fn(e))}function CE(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Yy(e,l)}function _E(e,t){var l=0;switch(e.tag){case 31:case 13:var o=e.stateNode,d=e.memoizedState;d!==null&&(l=d.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),Yy(e,l)}function TE(e,t){return Zc(e,t)}var xu=null,Wr=null,qf=!1,bu=!1,Hf=!1,rl=0;function Fn(e){e!==Wr&&e.next===null&&(Wr===null?xu=Wr=e:Wr=Wr.next=e),bu=!0,qf||(qf=!0,ME())}function ko(e,t){if(!Hf&&bu){Hf=!0;do for(var l=!1,o=xu;o!==null;){if(e!==0){var d=o.pendingLanes;if(d===0)var f=0;else{var b=o.suspendedLanes,N=o.pingedLanes;f=(1<<31-Wt(42|e)+1)-1,f&=d&~(b&~N),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(l=!0,Fy(o,f))}else f=ze,f=Es(o,o===Je?f:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(f&3)===0||Pi(o,f)||(l=!0,Fy(o,f));o=o.next}while(l);Hf=!1}}function RE(){Vy()}function Vy(){bu=qf=!1;var e=0;rl!==0&&BE()&&(e=rl);for(var t=Jt(),l=null,o=xu;o!==null;){var d=o.next,f=Ky(o,t);f===0?(o.next=null,l===null?xu=d:l.next=d,d===null&&(Wr=l)):(l=o,(e!==0||(f&3)!==0)&&(bu=!0)),o=d}yt!==0&&yt!==5||ko(e),rl!==0&&(rl=0)}function Ky(e,t){for(var l=e.suspendedLanes,o=e.pingedLanes,d=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var b=31-Wt(f),N=1<<b,M=d[b];M===-1?((N&l)===0||(N&o)!==0)&&(d[b]=n2(N,t)):M<=t&&(e.expiredLanes|=N),f&=~N}if(t=Je,l=ze,l=Es(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,l===0||e===t&&(Ke===2||Ke===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&Pc(o),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Pi(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(o!==null&&Pc(o),Wc(l)){case 2:case 8:l=Lp;break;case 32:l=bs;break;case 268435456:l=Up;break;default:l=bs}return o=Xy.bind(null,e),l=Zc(l,o),e.callbackPriority=t,e.callbackNode=l,t}return o!==null&&o!==null&&Pc(o),e.callbackPriority=2,e.callbackNode=null,2}function Xy(e,t){if(yt!==0&&yt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(yu()&&e.callbackNode!==l)return null;var o=ze;return o=Es(e,e===Je?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(Ty(e,o,t),Ky(e,Jt()),e.callbackNode!=null&&e.callbackNode===l?Xy.bind(null,e):null)}function Fy(e,t){if(yu())return null;Ty(e,t,!0)}function ME(){GE(function(){(Ge&6)!==0?Zc(zp,RE):Vy()})}function Bf(){if(rl===0){var e=qr;e===0&&(e=ws,ws<<=1,(ws&261888)===0&&(ws=256)),rl=e}return rl}function Zy(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ts(""+e)}function Py(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 AE(e,t,l,o,d){if(t==="submit"&&l&&l.stateNode===d){var f=Zy((d[Bt]||null).action),b=o.submitter;b&&(t=(t=b[Bt]||null)?Zy(t.formAction):b.getAttribute("formAction"),t!==null&&(f=t,b=null));var N=new ks("action","action",null,o,d);e.push({event:N,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(rl!==0){var M=b?Py(d,b):new FormData(d);rf(l,{pending:!0,data:M,method:d.method,action:f},null,M)}}else typeof f=="function"&&(N.preventDefault(),M=b?Py(d,b):new FormData(d),rf(l,{pending:!0,data:M,method:d.method,action:f},f,M))},currentTarget:d}]})}}for(var Qf=0;Qf<Sd.length;Qf++){var Gf=Sd[Qf],kE=Gf.toLowerCase(),DE=Gf[0].toUpperCase()+Gf.slice(1);Rn(kE,"on"+DE)}Rn(_v,"onAnimationEnd"),Rn(Tv,"onAnimationIteration"),Rn(Rv,"onAnimationStart"),Rn("dblclick","onDoubleClick"),Rn("focusin","onFocus"),Rn("focusout","onBlur"),Rn(Z2,"onTransitionRun"),Rn(P2,"onTransitionStart"),Rn(J2,"onTransitionCancel"),Rn(Mv,"onTransitionEnd"),Er("onMouseEnter",["mouseout","mouseover"]),Er("onMouseLeave",["mouseout","mouseover"]),Er("onPointerEnter",["pointerout","pointerover"]),Er("onPointerLeave",["pointerout","pointerover"]),Ll("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ll("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ll("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ll("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ll("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ll("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Do="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(" "),OE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Do));function Jy(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var o=e[l],d=o.event;o=o.listeners;e:{var f=void 0;if(t)for(var b=o.length-1;0<=b;b--){var N=o[b],M=N.instance,Q=N.currentTarget;if(N=N.listener,M!==f&&d.isPropagationStopped())break e;f=N,d.currentTarget=Q;try{f(d)}catch(Z){zs(Z)}d.currentTarget=null,f=M}else for(b=0;b<o.length;b++){if(N=o[b],M=N.instance,Q=N.currentTarget,N=N.listener,M!==f&&d.isPropagationStopped())break e;f=N,d.currentTarget=Q;try{f(d)}catch(Z){zs(Z)}d.currentTarget=null,f=M}}}}function ke(e,t){var l=t[ed];l===void 0&&(l=t[ed]=new Set);var o=e+"__bubble";l.has(o)||(Iy(t,e,2,!1),l.add(o))}function $f(e,t,l){var o=0;t&&(o|=4),Iy(l,e,o,t)}var wu="_reactListening"+Math.random().toString(36).slice(2);function Yf(e){if(!e[wu]){e[wu]=!0,Vp.forEach(function(l){l!=="selectionchange"&&(OE.has(l)||$f(l,!1,e),$f(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wu]||(t[wu]=!0,$f("selectionchange",!1,t))}}function Iy(e,t,l,o){switch(_0(t)){case 2:var d=sN;break;case 8:d=uN;break;default:d=rh}l=d.bind(null,t,l,e),d=void 0,!ud||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(d=!0),o?d!==void 0?e.addEventListener(t,l,{capture:!0,passive:d}):e.addEventListener(t,l,!0):d!==void 0?e.addEventListener(t,l,{passive:d}):e.addEventListener(t,l,!1)}function Vf(e,t,l,o,d){var f=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var b=o.tag;if(b===3||b===4){var N=o.stateNode.containerInfo;if(N===d)break;if(b===4)for(b=o.return;b!==null;){var M=b.tag;if((M===3||M===4)&&b.stateNode.containerInfo===d)return;b=b.return}for(;N!==null;){if(b=wr(N),b===null)return;if(M=b.tag,M===5||M===6||M===26||M===27){o=f=b;continue e}N=N.parentNode}}o=o.return}av(function(){var Q=f,Z=od(l),J=[];e:{var G=Av.get(e);if(G!==void 0){var V=ks,fe=e;switch(e){case"keypress":if(Ms(l)===0)break e;case"keydown":case"keyup":V=_2;break;case"focusin":fe="focus",V=hd;break;case"focusout":fe="blur",V=hd;break;case"beforeblur":case"afterblur":V=hd;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":V=iv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=p2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=M2;break;case _v:case Tv:case Rv:V=y2;break;case Mv:V=k2;break;case"scroll":case"scrollend":V=h2;break;case"wheel":V=O2;break;case"copy":case"cut":case"paste":V=b2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=sv;break;case"toggle":case"beforetoggle":V=L2}var Se=(t&4)!==0,Pe=!Se&&(e==="scroll"||e==="scrollend"),z=Se?G!==null?G+"Capture":null:G;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=eo(O,z),P!=null&&Se.push(Oo(O,P,B))),Pe)break;O=O.return}0<Se.length&&(G=new V(G,fe,null,l,Z),J.push({event:G,listeners:Se}))}}if((t&7)===0){e:{if(G=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",G&&l!==id&&(fe=l.relatedTarget||l.fromElement)&&(wr(fe)||fe[br]))break e;if((V||G)&&(G=Z.window===Z?Z:(G=Z.ownerDocument)?G.defaultView||G.parentWindow:window,V?(fe=l.relatedTarget||l.toElement,V=Q,fe=fe?wr(fe):null,fe!==null&&(Pe=c(fe),Se=fe.tag,fe!==Pe||Se!==5&&Se!==27&&Se!==6)&&(fe=null)):(V=null,fe=Q),V!==fe)){if(Se=iv,P="onMouseLeave",z="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(Se=sv,P="onPointerLeave",z="onPointerEnter",O="pointer"),Pe=V==null?G:Wi(V),B=fe==null?G:Wi(fe),G=new Se(P,O+"leave",V,l,Z),G.target=Pe,G.relatedTarget=B,P=null,wr(Z)===Q&&(Se=new Se(z,O+"enter",fe,l,Z),Se.target=B,Se.relatedTarget=Pe,P=Se),Pe=P,V&&fe)t:{for(Se=zE,z=V,O=fe,B=0,P=z;P;P=Se(P))B++;P=0;for(var xe=O;xe;xe=Se(xe))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;V!==null&&Wy(J,G,V,Se,!1),fe!==null&&Pe!==null&&Wy(J,Pe,fe,Se,!0)}}e:{if(G=Q?Wi(Q):window,V=G.nodeName&&G.nodeName.toLowerCase(),V==="select"||V==="input"&&G.type==="file")var Be=vv;else if(mv(G))if(gv)Be=K2;else{Be=Y2;var ge=$2}else V=G.nodeName,!V||V.toLowerCase()!=="input"||G.type!=="checkbox"&&G.type!=="radio"?Q&&rd(Q.elementType)&&(Be=vv):Be=V2;if(Be&&(Be=Be(e,Q))){pv(J,Be,l,Z);break e}ge&&ge(e,G,Q),e==="focusout"&&Q&&G.type==="number"&&Q.memoizedProps.value!=null&&ld(G,"number",G.value)}switch(ge=Q?Wi(Q):window,e){case"focusin":(mv(ge)||ge.contentEditable==="true")&&(Mr=ge,xd=Q,so=null);break;case"focusout":so=xd=Mr=null;break;case"mousedown":bd=!0;break;case"contextmenu":case"mouseup":case"dragend":bd=!1,Nv(J,l,Z);break;case"selectionchange":if(F2)break;case"keydown":case"keyup":Nv(J,l,Z)}var Te;if(pd)e:{switch(e){case"compositionstart":var Le="onCompositionStart";break e;case"compositionend":Le="onCompositionEnd";break e;case"compositionupdate":Le="onCompositionUpdate";break e}Le=void 0}else Rr?fv(e,l)&&(Le="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Le="onCompositionStart");Le&&(uv&&l.locale!=="ko"&&(Rr||Le!=="onCompositionStart"?Le==="onCompositionEnd"&&Rr&&(Te=lv()):($a=Z,cd="value"in $a?$a.value:$a.textContent,Rr=!0)),ge=Su(Q,Le),0<ge.length&&(Le=new ov(Le,e,null,l,Z),J.push({event:Le,listeners:ge}),Te?Le.data=Te:(Te=hv(l),Te!==null&&(Le.data=Te)))),(Te=q2?H2(e,l):B2(e,l))&&(Le=Su(Q,"onBeforeInput"),0<Le.length&&(ge=new ov("onBeforeInput","beforeinput",null,l,Z),J.push({event:ge,listeners:Le}),ge.data=Te)),AE(J,e,Q,l,Z)}Jy(J,t)})}function Oo(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Su(e,t){for(var l=t+"Capture",o=[];e!==null;){var d=e,f=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||f===null||(d=eo(e,l),d!=null&&o.unshift(Oo(e,d,f)),d=eo(e,t),d!=null&&o.push(Oo(e,d,f))),e.tag===3)return o;e=e.return}return[]}function zE(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Wy(e,t,l,o,d){for(var f=t._reactName,b=[];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,d?(Q=eo(l,f),Q!=null&&b.unshift(Oo(l,Q,M))):d||(Q=eo(l,f),Q!=null&&b.push(Oo(l,Q,M)))),l=l.return}b.length!==0&&e.push({event:t,listeners:b})}var LE=/\r\n?/g,UE=/\u0000|\uFFFD/g;function e0(e){return(typeof e=="string"?e:""+e).replace(LE,`
49
+ `).replace(UE,"")}function t0(e,t){return t=e0(t),e0(e)===t}function Ze(e,t,l,o,d,f){switch(l){case"children":typeof o=="string"?t==="body"||t==="textarea"&&o===""||Cr(e,o):(typeof o=="number"||typeof o=="bigint")&&t!=="body"&&Cr(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":tv(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=Ts(""+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"&&Ze(e,t,"name",d.name,d,null),Ze(e,t,"formEncType",d.formEncType,d,null),Ze(e,t,"formMethod",d.formMethod,d,null),Ze(e,t,"formTarget",d.formTarget,d,null)):(Ze(e,t,"encType",d.encType,d,null),Ze(e,t,"method",d.method,d,null),Ze(e,t,"target",d.target,d,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(l);break}o=Ts(""+o),e.setAttribute(l,o);break;case"onClick":o!=null&&(e.onclick=ua);break;case"onScroll":o!=null&&ke("scroll",e);break;case"onScrollEnd":o!=null&&ke("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(d.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=Ts(""+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":ke("beforetoggle",e),ke("toggle",e),Ns(e,"popover",o);break;case"xlinkActuate":sa(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":sa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":sa(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":sa(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":sa(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":sa(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":sa(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":sa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":sa(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Ns(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=d2.get(l)||l,Ns(e,l,o))}}function Kf(e,t,l,o,d,f){switch(l){case"style":tv(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(d.children!=null)throw Error(i(60));e.innerHTML=l}}break;case"children":typeof o=="string"?Cr(e,o):(typeof o=="number"||typeof o=="bigint")&&Cr(e,""+o);break;case"onScroll":o!=null&&ke("scroll",e);break;case"onScrollEnd":o!=null&&ke("scrollend",e);break;case"onClick":o!=null&&(e.onclick=ua);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Kp.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(d=l.endsWith("Capture"),t=l.slice(2,d?l.length-7:void 0),f=e[Bt]||null,f=f!=null?f[l]:null,typeof f=="function"&&e.removeEventListener(t,f,d),typeof o=="function")){typeof f!="function"&&f!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,o,d);break e}l in e?e[l]=o:o===!0?e.setAttribute(l,""):Ns(e,l,o)}}}function At(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ke("error",e),ke("load",e);var o=!1,d=!1,f;for(f in l)if(l.hasOwnProperty(f)){var b=l[f];if(b!=null)switch(f){case"src":o=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Ze(e,t,f,b,l,null)}}d&&Ze(e,t,"srcSet",l.srcSet,l,null),o&&Ze(e,t,"src",l.src,l,null);return;case"input":ke("invalid",e);var N=f=b=d=null,M=null,Q=null;for(o in l)if(l.hasOwnProperty(o)){var Z=l[o];if(Z!=null)switch(o){case"name":d=Z;break;case"type":b=Z;break;case"checked":M=Z;break;case"defaultChecked":Q=Z;break;case"value":f=Z;break;case"defaultValue":N=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(i(137,t));break;default:Ze(e,t,o,Z,l,null)}}Jp(e,f,N,M,Q,b,d,!1);return;case"select":ke("invalid",e),o=b=f=null;for(d in l)if(l.hasOwnProperty(d)&&(N=l[d],N!=null))switch(d){case"value":f=N;break;case"defaultValue":b=N;break;case"multiple":o=N;default:Ze(e,t,d,N,l,null)}t=f,l=b,e.multiple=!!o,t!=null?Nr(e,!!o,t,!1):l!=null&&Nr(e,!!o,l,!0);return;case"textarea":ke("invalid",e),f=d=o=null;for(b in l)if(l.hasOwnProperty(b)&&(N=l[b],N!=null))switch(b){case"value":o=N;break;case"defaultValue":d=N;break;case"children":f=N;break;case"dangerouslySetInnerHTML":if(N!=null)throw Error(i(91));break;default:Ze(e,t,b,N,l,null)}Wp(e,o,d,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:Ze(e,t,M,o,l,null)}return;case"dialog":ke("beforetoggle",e),ke("toggle",e),ke("cancel",e),ke("close",e);break;case"iframe":case"object":ke("load",e);break;case"video":case"audio":for(o=0;o<Do.length;o++)ke(Do[o],e);break;case"image":ke("error",e),ke("load",e);break;case"details":ke("toggle",e);break;case"embed":case"source":case"link":ke("error",e),ke("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:Ze(e,t,Q,o,l,null)}return;default:if(rd(t)){for(Z in l)l.hasOwnProperty(Z)&&(o=l[Z],o!==void 0&&Kf(e,t,Z,o,l,void 0));return}}for(N in l)l.hasOwnProperty(N)&&(o=l[N],o!=null&&Ze(e,t,N,o,l,null))}function qE(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 d=null,f=null,b=null,N=null,M=null,Q=null,Z=null;for(V in l){var J=l[V];if(l.hasOwnProperty(V)&&J!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":M=J;default:o.hasOwnProperty(V)||Ze(e,t,V,null,o,J)}}for(var G in o){var V=o[G];if(J=l[G],o.hasOwnProperty(G)&&(V!=null||J!=null))switch(G){case"type":f=V;break;case"name":d=V;break;case"checked":Q=V;break;case"defaultChecked":Z=V;break;case"value":b=V;break;case"defaultValue":N=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(i(137,t));break;default:V!==J&&Ze(e,t,G,V,o,J)}}ad(e,b,N,M,Q,Z,f,d);return;case"select":V=b=N=G=null;for(f in l)if(M=l[f],l.hasOwnProperty(f)&&M!=null)switch(f){case"value":break;case"multiple":V=M;default:o.hasOwnProperty(f)||Ze(e,t,f,null,o,M)}for(d in o)if(f=o[d],M=l[d],o.hasOwnProperty(d)&&(f!=null||M!=null))switch(d){case"value":G=f;break;case"defaultValue":N=f;break;case"multiple":b=f;default:f!==M&&Ze(e,t,d,f,o,M)}t=N,l=b,o=V,G!=null?Nr(e,!!l,G,!1):!!o!=!!l&&(t!=null?Nr(e,!!l,t,!0):Nr(e,!!l,l?[]:"",!1));return;case"textarea":V=G=null;for(N in l)if(d=l[N],l.hasOwnProperty(N)&&d!=null&&!o.hasOwnProperty(N))switch(N){case"value":break;case"children":break;default:Ze(e,t,N,null,o,d)}for(b in o)if(d=o[b],f=l[b],o.hasOwnProperty(b)&&(d!=null||f!=null))switch(b){case"value":G=d;break;case"defaultValue":V=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(i(91));break;default:d!==f&&Ze(e,t,b,d,o,f)}Ip(e,G,V);return;case"option":for(var fe in l)if(G=l[fe],l.hasOwnProperty(fe)&&G!=null&&!o.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:Ze(e,t,fe,null,o,G)}for(M in o)if(G=o[M],V=l[M],o.hasOwnProperty(M)&&G!==V&&(G!=null||V!=null))switch(M){case"selected":e.selected=G&&typeof G!="function"&&typeof G!="symbol";break;default:Ze(e,t,M,G,o,V)}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)G=l[Se],l.hasOwnProperty(Se)&&G!=null&&!o.hasOwnProperty(Se)&&Ze(e,t,Se,null,o,G);for(Q in o)if(G=o[Q],V=l[Q],o.hasOwnProperty(Q)&&G!==V&&(G!=null||V!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(i(137,t));break;default:Ze(e,t,Q,G,o,V)}return;default:if(rd(t)){for(var Pe in l)G=l[Pe],l.hasOwnProperty(Pe)&&G!==void 0&&!o.hasOwnProperty(Pe)&&Kf(e,t,Pe,void 0,o,G);for(Z in o)G=o[Z],V=l[Z],!o.hasOwnProperty(Z)||G===V||G===void 0&&V===void 0||Kf(e,t,Z,G,o,V);return}}for(var z in l)G=l[z],l.hasOwnProperty(z)&&G!=null&&!o.hasOwnProperty(z)&&Ze(e,t,z,null,o,G);for(J in o)G=o[J],V=l[J],!o.hasOwnProperty(J)||G===V||G==null&&V==null||Ze(e,t,J,G,o,V)}function n0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function HE(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),o=0;o<l.length;o++){var d=l[o],f=d.transferSize,b=d.initiatorType,N=d.duration;if(f&&N&&n0(b)){for(b=0,N=d.responseEnd,o+=1;o<l.length;o++){var M=l[o],Q=M.startTime;if(Q>N)break;var Z=M.transferSize,J=M.initiatorType;Z&&n0(J)&&(M=M.responseEnd,b+=Z*(M<N?1:(N-Q)/(M-Q)))}if(--o,t+=8*(f+b)/(d.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 Xf=null,Ff=null;function ju(e){return e.nodeType===9?e:e.ownerDocument}function a0(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 l0(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 Zf(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 Pf=null;function BE(){var e=window.event;return e&&e.type==="popstate"?e===Pf?!1:(Pf=e,!0):(Pf=null,!1)}var r0=typeof setTimeout=="function"?setTimeout:void 0,QE=typeof clearTimeout=="function"?clearTimeout:void 0,i0=typeof Promise=="function"?Promise:void 0,GE=typeof queueMicrotask=="function"?queueMicrotask:typeof i0<"u"?function(e){return i0.resolve(null).then(e).catch($E)}:r0;function $E(e){setTimeout(function(){throw e})}function il(e){return e==="head"}function o0(e,t){var l=t,o=0;do{var d=l.nextSibling;if(e.removeChild(l),d&&d.nodeType===8)if(l=d.data,l==="/$"||l==="/&"){if(o===0){e.removeChild(d),ai(t);return}o--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")o++;else if(l==="html")zo(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,zo(l);for(var f=l.firstChild;f;){var b=f.nextSibling,N=f.nodeName;f[Ii]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&f.rel.toLowerCase()==="stylesheet"||l.removeChild(f),f=b}}else l==="body"&&zo(e.ownerDocument.body);l=d}while(l);ai(t)}function s0(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 Jf(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":Jf(l),td(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function YE(e,t,l,o){for(;e.nodeType===1;){var d=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[Ii])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!==d.rel||e.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||e.getAttribute("title")!==(d.title==null?null:d.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(d.src==null?null:d.src)||e.getAttribute("type")!==(d.type==null?null:d.type)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=d.name==null?null:""+d.name;if(d.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=wn(e.nextSibling),e===null)break}return null}function VE(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=wn(e.nextSibling),e===null))return null;return e}function u0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=wn(e.nextSibling),e===null))return null;return e}function If(e){return e.data==="$?"||e.data==="$~"}function Wf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function KE(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 wn(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 eh=null;function c0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return wn(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function d0(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 f0(e,t,l){switch(t=ju(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 zo(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);td(e)}var Sn=new Map,h0=new Set;function Eu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Na=I.d;I.d={f:XE,r:FE,D:ZE,C:PE,L:JE,m:IE,X:eN,S:WE,M:tN};function XE(){var e=Na.f(),t=pu();return e||t}function FE(e){var t=Sr(e);t!==null&&t.tag===5&&t.type==="form"?Mg(t):Na.r(e)}var ei=typeof document>"u"?null:document;function m0(e,t,l){var o=ei;if(o&&typeof t=="string"&&t){var d=mn(t);d='link[rel="'+e+'"][href="'+d+'"]',typeof l=="string"&&(d+='[crossorigin="'+l+'"]'),h0.has(d)||(h0.add(d),e={rel:e,crossOrigin:l,href:t},o.querySelector(d)===null&&(t=o.createElement("link"),At(t,"link",e),Et(t),o.head.appendChild(t)))}}function ZE(e){Na.D(e),m0("dns-prefetch",e,null)}function PE(e,t){Na.C(e,t),m0("preconnect",e,t)}function JE(e,t,l){Na.L(e,t,l);var o=ei;if(o&&e&&t){var d='link[rel="preload"][as="'+mn(t)+'"]';t==="image"&&l&&l.imageSrcSet?(d+='[imagesrcset="'+mn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(d+='[imagesizes="'+mn(l.imageSizes)+'"]')):d+='[href="'+mn(e)+'"]';var f=d;switch(t){case"style":f=ti(e);break;case"script":f=ni(e)}Sn.has(f)||(e=x({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Sn.set(f,e),o.querySelector(d)!==null||t==="style"&&o.querySelector(Lo(f))||t==="script"&&o.querySelector(Uo(f))||(t=o.createElement("link"),At(t,"link",e),Et(t),o.head.appendChild(t)))}}function IE(e,t){Na.m(e,t);var l=ei;if(l&&e){var o=t&&typeof t.as=="string"?t.as:"script",d='link[rel="modulepreload"][as="'+mn(o)+'"][href="'+mn(e)+'"]',f=d;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=ni(e)}if(!Sn.has(f)&&(e=x({rel:"modulepreload",href:e},t),Sn.set(f,e),l.querySelector(d)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Uo(f)))return}o=l.createElement("link"),At(o,"link",e),Et(o),l.head.appendChild(o)}}}function WE(e,t,l){Na.S(e,t,l);var o=ei;if(o&&e){var d=jr(o).hoistableStyles,f=ti(e);t=t||"default";var b=d.get(f);if(!b){var N={loading:0,preload:null};if(b=o.querySelector(Lo(f)))N.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Sn.get(f))&&th(e,l);var M=b=o.createElement("link");Et(M),At(M,"link",e),M._p=new Promise(function(Q,Z){M.onload=Q,M.onerror=Z}),M.addEventListener("load",function(){N.loading|=1}),M.addEventListener("error",function(){N.loading|=2}),N.loading|=4,Nu(b,t,o)}b={type:"stylesheet",instance:b,count:1,state:N},d.set(f,b)}}}function eN(e,t){Na.X(e,t);var l=ei;if(l&&e){var o=jr(l).hoistableScripts,d=ni(e),f=o.get(d);f||(f=l.querySelector(Uo(d)),f||(e=x({src:e,async:!0},t),(t=Sn.get(d))&&nh(e,t),f=l.createElement("script"),Et(f),At(f,"link",e),l.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(d,f))}}function tN(e,t){Na.M(e,t);var l=ei;if(l&&e){var o=jr(l).hoistableScripts,d=ni(e),f=o.get(d);f||(f=l.querySelector(Uo(d)),f||(e=x({src:e,async:!0,type:"module"},t),(t=Sn.get(d))&&nh(e,t),f=l.createElement("script"),Et(f),At(f,"link",e),l.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(d,f))}}function p0(e,t,l,o){var d=(d=je.current)?Eu(d):null;if(!d)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=ti(l.href),l=jr(d).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=ti(l.href);var f=jr(d).hoistableStyles,b=f.get(e);if(b||(d=d.ownerDocument||d,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,b),(f=d.querySelector(Lo(e)))&&!f._p&&(b.instance=f,b.state.loading=5),Sn.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},Sn.set(e,l),f||nN(d,e,l,b.state))),t&&o===null)throw Error(i(528,""));return b}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=ni(l),l=jr(d).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 ti(e){return'href="'+mn(e)+'"'}function Lo(e){return'link[rel="stylesheet"]['+e+"]"}function v0(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function nN(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}),At(t,"link",l),Et(t),e.head.appendChild(t))}function ni(e){return'[src="'+mn(e)+'"]'}function Uo(e){return"script[async]"+e}function g0(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+mn(l.href)+'"]');if(o)return t.instance=o,Et(o),o;var d=x({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),Et(o),At(o,"style",d),Nu(o,l.precedence,e),t.instance=o;case"stylesheet":d=ti(l.href);var f=e.querySelector(Lo(d));if(f)return t.state.loading|=4,t.instance=f,Et(f),f;o=v0(l),(d=Sn.get(d))&&th(o,d),f=(e.ownerDocument||e).createElement("link"),Et(f);var b=f;return b._p=new Promise(function(N,M){b.onload=N,b.onerror=M}),At(f,"link",o),t.state.loading|=4,Nu(f,l.precedence,e),t.instance=f;case"script":return f=ni(l.src),(d=e.querySelector(Uo(f)))?(t.instance=d,Et(d),d):(o=l,(d=Sn.get(f))&&(o=x({},l),nh(o,d)),e=e.ownerDocument||e,d=e.createElement("script"),Et(d),At(d,"link",o),e.head.appendChild(d),t.instance=d);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,Nu(o,l.precedence,e));return t.instance}function Nu(e,t,l){for(var o=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=o.length?o[o.length-1]:null,f=d,b=0;b<o.length;b++){var N=o[b];if(N.dataset.precedence===t)f=N;else if(f!==d)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function th(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function nh(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 y0(e,t,l){if(Cu===null){var o=new Map,d=Cu=new Map;d.set(l,o)}else d=Cu,o=d.get(l),o||(o=new Map,d.set(l,o));if(o.has(e))return o;for(o.set(e,null),l=l.getElementsByTagName(e),d=0;d<l.length;d++){var f=l[d];if(!(f[Ii]||f[_t]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var b=f.getAttribute(t)||"";b=e+b;var N=o.get(b);N?N.push(f):o.set(b,[f])}}return o}function x0(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function aN(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 b0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function lN(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 d=ti(o.href),f=t.querySelector(Lo(d));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=_u.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=f,Et(f);return}f=t.ownerDocument||t,o=v0(o),(d=Sn.get(d))&&th(o,d),f=f.createElement("link"),Et(f);var b=f;b._p=new Promise(function(N,M){b.onload=N,b.onerror=M}),At(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=_u.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var ah=0;function rN(e,t){return e.stylesheets&&e.count===0&&Ru(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var o=setTimeout(function(){if(e.stylesheets&&Ru(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&ah===0&&(ah=62500*HE());var d=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ru(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>ah?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(d)}}:null}function _u(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ru(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Tu=null;function Ru(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Tu=new Map,t.forEach(iN,e),Tu=null,_u.call(e))}function iN(e,t){if(!(t.state.loading&4)){var l=Tu.get(e);if(l)var o=l.get(null);else{l=new Map,Tu.set(e,l);for(var d=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<d.length;f++){var b=d[f];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(l.set(b.dataset.precedence,b),o=b)}o&&l.set(null,o)}d=t.instance,b=d.getAttribute("data-precedence"),f=l.get(b)||o,f===o&&l.set(null,d),l.set(b,d),this.count++,o=_u.bind(this),d.addEventListener("load",o),d.addEventListener("error",o),f?f.parentNode.insertBefore(d,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(d,e.firstChild)),t.state.loading|=4}}var qo={$$typeof:R,Provider:null,Consumer:null,_currentValue:Y,_currentValue2:Y,_threadCount:0};function oN(e,t,l,o,d,f,b,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=Jc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Jc(0),this.hiddenUpdates=Jc(null),this.identifierPrefix=o,this.onUncaughtError=d,this.onCaughtError=f,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map}function w0(e,t,l,o,d,f,b,N,M,Q,Z,J){return e=new oN(e,t,l,b,M,Q,Z,J,N),t=1,f===!0&&(t|=24),f=tn(3,null,null,t),e.current=f,f.stateNode=e,t=zd(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:o,isDehydrated:l,cache:t},Hd(f),e}function S0(e){return e?(e=Dr,e):Dr}function j0(e,t,l,o,d,f){d=S0(d),o.context===null?o.context=d:o.pendingContext=d,o=Za(t),o.payload={element:l},f=f===void 0?null:f,f!==null&&(o.callback=f),l=Pa(e,o,t),l!==null&&(Kt(l,e,t),vo(l,e,t))}function E0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function lh(e,t){E0(e,t),(e=e.alternate)&&E0(e,t)}function N0(e){if(e.tag===13||e.tag===31){var t=Bl(e,67108864);t!==null&&Kt(t,e,67108864),lh(e,67108864)}}function C0(e){if(e.tag===13||e.tag===31){var t=on();t=Ic(t);var l=Bl(e,t);l!==null&&Kt(l,e,t),lh(e,t)}}var Mu=!0;function sN(e,t,l,o){var d=U.T;U.T=null;var f=I.p;try{I.p=2,rh(e,t,l,o)}finally{I.p=f,U.T=d}}function uN(e,t,l,o){var d=U.T;U.T=null;var f=I.p;try{I.p=8,rh(e,t,l,o)}finally{I.p=f,U.T=d}}function rh(e,t,l,o){if(Mu){var d=ih(o);if(d===null)Vf(e,t,o,Au,l),T0(e,o);else if(dN(d,e,t,l,o))o.stopPropagation();else if(T0(e,o),t&4&&-1<cN.indexOf(e)){for(;d!==null;){var f=Sr(d);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var b=zl(f.pendingLanes);if(b!==0){var N=f;for(N.pendingLanes|=2,N.entangledLanes|=2;b;){var M=1<<31-Wt(b);N.entanglements[1]|=M,b&=~M}Fn(f),(Ge&6)===0&&(hu=Jt()+500,ko(0))}}break;case 31:case 13:N=Bl(f,2),N!==null&&Kt(N,f,2),pu(),lh(f,2)}if(f=ih(o),f===null&&Vf(e,t,o,Au,l),f===d)break;d=f}d!==null&&o.stopPropagation()}else Vf(e,t,o,null,l)}}function ih(e){return e=od(e),oh(e)}var Au=null;function oh(e){if(Au=null,e=wr(e),e!==null){var t=c(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 Au=e,null}function _0(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(Zj()){case zp:return 2;case Lp:return 8;case bs:case Pj:return 32;case Up:return 268435456;default:return 32}default:return 32}}var sh=!1,ol=null,sl=null,ul=null,Ho=new Map,Bo=new Map,cl=[],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 T0(e,t){switch(e){case"focusin":case"focusout":ol=null;break;case"dragenter":case"dragleave":sl=null;break;case"mouseover":case"mouseout":ul=null;break;case"pointerover":case"pointerout":Ho.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bo.delete(t.pointerId)}}function Qo(e,t,l,o,d,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:l,eventSystemFlags:o,nativeEvent:f,targetContainers:[d]},t!==null&&(t=Sr(t),t!==null&&N0(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,d!==null&&t.indexOf(d)===-1&&t.push(d),e)}function dN(e,t,l,o,d){switch(t){case"focusin":return ol=Qo(ol,e,t,l,o,d),!0;case"dragenter":return sl=Qo(sl,e,t,l,o,d),!0;case"mouseover":return ul=Qo(ul,e,t,l,o,d),!0;case"pointerover":var f=d.pointerId;return Ho.set(f,Qo(Ho.get(f)||null,e,t,l,o,d)),!0;case"gotpointercapture":return f=d.pointerId,Bo.set(f,Qo(Bo.get(f)||null,e,t,l,o,d)),!0}return!1}function R0(e){var t=wr(e.target);if(t!==null){var l=c(t);if(l!==null){if(t=l.tag,t===13){if(t=h(l),t!==null){e.blockedOn=t,$p(e.priority,function(){C0(l)});return}}else if(t===31){if(t=m(l),t!==null){e.blockedOn=t,$p(e.priority,function(){C0(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 ku(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=ih(e.nativeEvent);if(l===null){l=e.nativeEvent;var o=new l.constructor(l.type,l);id=o,l.target.dispatchEvent(o),id=null}else return t=Sr(l),t!==null&&N0(t),e.blockedOn=l,!1;t.shift()}return!0}function M0(e,t,l){ku(e)&&l.delete(t)}function fN(){sh=!1,ol!==null&&ku(ol)&&(ol=null),sl!==null&&ku(sl)&&(sl=null),ul!==null&&ku(ul)&&(ul=null),Ho.forEach(M0),Bo.forEach(M0)}function Du(e,t){e.blockedOn===t&&(e.blockedOn=null,sh||(sh=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,fN)))}var Ou=null;function A0(e){Ou!==e&&(Ou=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Ou===e&&(Ou=null);for(var t=0;t<e.length;t+=3){var l=e[t],o=e[t+1],d=e[t+2];if(typeof o!="function"){if(oh(o||l)===null)continue;break}var f=Sr(l);f!==null&&(e.splice(t,3),t-=3,rf(f,{pending:!0,data:d,method:l.method,action:o},o,d))}}))}function ai(e){function t(M){return Du(M,e)}ol!==null&&Du(ol,e),sl!==null&&Du(sl,e),ul!==null&&Du(ul,e),Ho.forEach(t),Bo.forEach(t);for(var l=0;l<cl.length;l++){var o=cl[l];o.blockedOn===e&&(o.blockedOn=null)}for(;0<cl.length&&(l=cl[0],l.blockedOn===null);)R0(l),l.blockedOn===null&&cl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(o=0;o<l.length;o+=3){var d=l[o],f=l[o+1],b=d[Bt]||null;if(typeof f=="function")b||A0(l);else if(b){var N=null;if(f&&f.hasAttribute("formAction")){if(d=f,b=f[Bt]||null)N=b.formAction;else if(oh(d)!==null)continue}else N=b.action;typeof N=="function"?l[o+1]=N:(l.splice(o,3),o-=3),A0(l)}}}function k0(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(b){return d=b})},focusReset:"manual",scroll:"manual"})}function t(){d!==null&&(d(),d=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,d=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),d!==null&&(d(),d=null)}}}function uh(e){this._internalRoot=e}zu.prototype.render=uh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var l=t.current,o=on();j0(l,o,e,t,null,null)},zu.prototype.unmount=uh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;j0(e.current,2,null,e,null,null),pu(),t[br]=null}};function zu(e){this._internalRoot=e}zu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Gp();e={blockedOn:null,target:e,priority:t};for(var l=0;l<cl.length&&t!==0&&t<cl[l].priority;l++);cl.splice(l,0,e),l===0&&R0(e)}};var D0=a.version;if(D0!=="19.2.3")throw Error(i(527,D0,"19.2.3"));I.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 hN={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Lu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Lu.isDisabled&&Lu.supportsFiber)try{Zi=Lu.inject(hN),It=Lu}catch{}}return $o.createRoot=function(e,t){if(!s(e))throw Error(i(299));var l=!1,o="",d=Bg,f=Qg,b=Gg;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(d=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(b=t.onRecoverableError)),t=w0(e,1,!1,null,null,l,o,null,d,f,b,k0),e[br]=t.current,Yf(e),new uh(t)},$o.hydrateRoot=function(e,t,l){if(!s(e))throw Error(i(299));var o=!1,d="",f=Bg,b=Qg,N=Gg,M=null;return l!=null&&(l.unstable_strictMode===!0&&(o=!0),l.identifierPrefix!==void 0&&(d=l.identifierPrefix),l.onUncaughtError!==void 0&&(f=l.onUncaughtError),l.onCaughtError!==void 0&&(b=l.onCaughtError),l.onRecoverableError!==void 0&&(N=l.onRecoverableError),l.formState!==void 0&&(M=l.formState)),t=w0(e,1,!0,t,l??null,o,d,M,f,b,N,k0),t.context=S0(null),l=t.current,o=on(),o=Ic(o),d=Za(o),d.callback=null,Pa(l,d,o),l=o,t.current.lanes=l,Ji(t,l),Fn(t),e[br]=t.current,Yf(e),new zu(t)},$o.version="19.2.3",$o}var W0;function tC(){if(W0)return mh.exports;W0=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(),mh.exports=eC(),mh.exports}var nC=tC(),Yo={},ex;function aC(){if(ex)return Yo;ex=1,Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.parse=h,Yo.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,c=(()=>{const w=function(){};return w.prototype=Object.create(null),w})();function h(w,j){const E=new c,S=w.length;if(S<2)return E;const C=(j==null?void 0:j.decode)||y;let _=0;do{const T=w.indexOf("=",_);if(T===-1)break;const R=w.indexOf(";",_),D=R===-1?S:R;if(T>D){_=w.lastIndexOf(";",T-1)+1;continue}const L=m(w,_,T),K=p(w,T,L),H=w.slice(L,K);if(E[H]===void 0){let q=m(w,T+1,D),$=p(w,D,q);const te=C(w.slice(q,$));E[H]=te}_=D+1}while(_<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 _=w+"="+C;if(!E)return _;if(E.maxAge!==void 0){if(!Number.isInteger(E.maxAge))throw new TypeError(`option maxAge is invalid: ${E.maxAge}`);_+="; Max-Age="+E.maxAge}if(E.domain){if(!r.test(E.domain))throw new TypeError(`option domain is invalid: ${E.domain}`);_+="; Domain="+E.domain}if(E.path){if(!i.test(E.path))throw new TypeError(`option path is invalid: ${E.path}`);_+="; Path="+E.path}if(E.expires){if(!x(E.expires)||!Number.isFinite(E.expires.valueOf()))throw new TypeError(`option expires is invalid: ${E.expires}`);_+="; Expires="+E.expires.toUTCString()}if(E.httpOnly&&(_+="; HttpOnly"),E.secure&&(_+="; Secure"),E.partitioned&&(_+="; Partitioned"),E.priority)switch(typeof E.priority=="string"?E.priority.toLowerCase():void 0){case"low":_+="; Priority=Low";break;case"medium":_+="; Priority=Medium";break;case"high":_+="; 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":_+="; SameSite=Strict";break;case"lax":_+="; SameSite=Lax";break;case"none":_+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${E.sameSite}`)}return _}function y(w){if(w.indexOf("%")===-1)return w;try{return decodeURIComponent(w)}catch{return w}}function x(w){return s.call(w)==="[object Date]"}return Yo}aC();var tx="popstate";function lC(n={}){function a(s,c){let{pathname:h="/",search:m="",hash:p=""}=pr(s.location.hash.substring(1));return!h.startsWith("/")&&!h.startsWith(".")&&(h="/"+h),Jh("",{pathname:h,search:m,hash:p},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function r(s,c){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 c=="string"?c:ts(c))}function i(s,c){Cn(s.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(c)})`)}return iC(a,r,i,n)}function at(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function Cn(n,a){if(!n){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function rC(){return Math.random().toString(36).substring(2,10)}function nx(n,a){return{usr:n.state,key:n.key,idx:a}}function Jh(n,a,r=null,i){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof a=="string"?pr(a):a,state:r,key:a&&a.key||i||rC()}}function ts({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 pr(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 iC(n,a,r,i={}){let{window:s=document.defaultView,v5Compat:c=!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 x(){m="POP";let C=y(),_=C==null?null:C-g;g=C,p&&p({action:m,location:S.location,delta:_})}function w(C,_){m="PUSH";let T=Jh(S.location,C,_);r&&r(T,C),g=y()+1;let R=nx(T,g),D=S.createHref(T);try{h.pushState(R,"",D)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;s.location.assign(D)}c&&p&&p({action:m,location:S.location,delta:1})}function j(C,_){m="REPLACE";let T=Jh(S.location,C,_);r&&r(T,C),g=y();let R=nx(T,g),D=S.createHref(T);h.replaceState(R,"",D),c&&p&&p({action:m,location:S.location,delta:0})}function E(C){return oC(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(tx,x),p=C,()=>{s.removeEventListener(tx,x),p=null}},createHref(C){return a(s,C)},createURL:E,encodeLocation(C){let _=E(C);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:w,replace:j,go(C){return h.go(C)}};return S}function oC(n,a=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),at(r,"No window.location.(origin|href) available to create URL");let i=typeof n=="string"?n:ts(n);return i=i.replace(/ $/,"%20"),!a&&i.startsWith("//")&&(i=r+i),new URL(i,r)}function Cb(n,a,r="/"){return sC(n,a,r,!1)}function sC(n,a,r,i){let s=typeof a=="string"?pr(a):a,c=ka(s.pathname||"/",r);if(c==null)return null;let h=_b(n);uC(h);let m=null;for(let p=0;m==null&&p<h.length;++p){let g=bC(c);m=yC(h[p],g,i)}return m}function _b(n,a=[],r=[],i=""){let s=(c,h,m)=>{let p={relativePath:m===void 0?c.path||"":m,caseSensitive:c.caseSensitive===!0,childrenIndex:h,route:c};p.relativePath.startsWith("/")&&(at(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=Ma([i,p.relativePath]),y=r.concat(p);c.children&&c.children.length>0&&(at(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),_b(c.children,a,y,g)),!(c.path==null&&!c.index)&&a.push({path:g,score:vC(g,c.index),routesMeta:y})};return n.forEach((c,h)=>{var m;if(c.path===""||!((m=c.path)!=null&&m.includes("?")))s(c,h);else for(let p of Tb(c.path))s(c,h,p)}),a}function Tb(n){let a=n.split("/");if(a.length===0)return[];let[r,...i]=a,s=r.endsWith("?"),c=r.replace(/\?$/,"");if(i.length===0)return s?[c,""]:[c];let h=Tb(i.join("/")),m=[];return m.push(...h.map(p=>p===""?c:[c,p].join("/"))),s&&m.push(...h),m.map(p=>n.startsWith("/")&&p===""?"/":p)}function uC(n){n.sort((a,r)=>a.score!==r.score?r.score-a.score:gC(a.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var cC=/^:[\w-]+$/,dC=3,fC=2,hC=1,mC=10,pC=-2,ax=n=>n==="*";function vC(n,a){let r=n.split("/"),i=r.length;return r.some(ax)&&(i+=pC),a&&(i+=fC),r.filter(s=>!ax(s)).reduce((s,c)=>s+(cC.test(c)?dC:c===""?hC:mC),i)}function gC(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 yC(n,a,r=!1){let{routesMeta:i}=n,s={},c="/",h=[];for(let m=0;m<i.length;++m){let p=i[m],g=m===i.length-1,y=c==="/"?a:a.slice(c.length)||"/",x=lc({path:p.relativePath,caseSensitive:p.caseSensitive,end:g},y),w=p.route;if(!x&&g&&r&&!i[i.length-1].route.index&&(x=lc({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},y)),!x)return null;Object.assign(s,x.params),h.push({params:s,pathname:Ma([c,x.pathname]),pathnameBase:EC(Ma([c,x.pathnameBase])),route:w}),x.pathnameBase!=="/"&&(c=Ma([c,x.pathnameBase]))}return h}function lc(n,a){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,i]=xC(n.path,n.caseSensitive,n.end),s=a.match(r);if(!s)return null;let c=s[0],h=c.replace(/(.)\/+$/,"$1"),m=s.slice(1);return{params:i.reduce((g,{paramName:y,isOptional:x},w)=>{if(y==="*"){let E=m[w]||"";h=c.slice(0,c.length-E.length).replace(/(.)\/+$/,"$1")}const j=m[w];return x&&!j?g[y]=void 0:g[y]=(j||"").replace(/%2F/g,"/"),g},{}),pathname:c,pathnameBase:h,pattern:n}}function xC(n,a=!1,r=!0){Cn(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 bC(n){try{return n.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return Cn(!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 ka(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 wC(n,a="/"){let{pathname:r,search:i="",hash:s=""}=typeof n=="string"?pr(n):n;return{pathname:r?r.startsWith("/")?r:SC(r,a):a,search:NC(i),hash:CC(s)}}function SC(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 yh(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 jC(n){return n.filter((a,r)=>r===0||a.route.path&&a.route.path.length>0)}function Tm(n){let a=jC(n);return a.map((r,i)=>i===a.length-1?r.pathname:r.pathnameBase)}function Rm(n,a,r,i=!1){let s;typeof n=="string"?s=pr(n):(s={...n},at(!s.pathname||!s.pathname.includes("?"),yh("?","pathname","search",s)),at(!s.pathname||!s.pathname.includes("#"),yh("#","pathname","hash",s)),at(!s.search||!s.search.includes("#"),yh("#","search","hash",s)));let c=n===""||s.pathname==="",h=c?"/":s.pathname,m;if(h==null)m=r;else{let x=a.length-1;if(!i&&h.startsWith("..")){let w=h.split("/");for(;w[0]==="..";)w.shift(),x-=1;s.pathname=w.join("/")}m=x>=0?a[x]:"/"}let p=wC(s,m),g=h&&h!=="/"&&h.endsWith("/"),y=(c||h===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(g||y)&&(p.pathname+="/"),p}var Ma=n=>n.join("/").replace(/\/\/+/g,"/"),EC=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),NC=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,CC=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function _C(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var Rb=["POST","PUT","PATCH","DELETE"];new Set(Rb);var TC=["GET",...Rb];new Set(TC);var ki=v.createContext(null);ki.displayName="DataRouter";var wc=v.createContext(null);wc.displayName="DataRouterState";var Mb=v.createContext({isTransitioning:!1});Mb.displayName="ViewTransition";var RC=v.createContext(new Map);RC.displayName="Fetchers";var MC=v.createContext(null);MC.displayName="Await";var Qn=v.createContext(null);Qn.displayName="Navigation";var cs=v.createContext(null);cs.displayName="Location";var Gn=v.createContext({outlet:null,matches:[],isDataRoute:!1});Gn.displayName="Route";var Mm=v.createContext(null);Mm.displayName="RouteError";function AC(n,{relative:a}={}){at(Di(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=v.useContext(Qn),{hash:s,pathname:c,search:h}=ds(n,{relative:a}),m=c;return r!=="/"&&(m=c==="/"?r:Ma([r,c])),i.createHref({pathname:m,search:h,hash:s})}function Di(){return v.useContext(cs)!=null}function za(){return at(Di(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(cs).location}var Ab="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function kb(n){v.useContext(Qn).static||v.useLayoutEffect(n)}function Db(){let{isDataRoute:n}=v.useContext(Gn);return n?YC():kC()}function kC(){at(Di(),"useNavigate() may be used only in the context of a <Router> component.");let n=v.useContext(ki),{basename:a,navigator:r}=v.useContext(Qn),{matches:i}=v.useContext(Gn),{pathname:s}=za(),c=JSON.stringify(Tm(i)),h=v.useRef(!1);return kb(()=>{h.current=!0}),v.useCallback((p,g={})=>{if(Cn(h.current,Ab),!h.current)return;if(typeof p=="number"){r.go(p);return}let y=Rm(p,JSON.parse(c),s,g.relative==="path");n==null&&a!=="/"&&(y.pathname=y.pathname==="/"?a:Ma([a,y.pathname])),(g.replace?r.replace:r.push)(y,g.state,g)},[a,r,c,s,n])}v.createContext(null);function Ml(){let{matches:n}=v.useContext(Gn),a=n[n.length-1];return a?a.params:{}}function ds(n,{relative:a}={}){let{matches:r}=v.useContext(Gn),{pathname:i}=za(),s=JSON.stringify(Tm(r));return v.useMemo(()=>Rm(n,JSON.parse(s),i,a==="path"),[n,s,i,a])}function DC(n,a){return Ob(n,a)}function Ob(n,a,r,i){var _;at(Di(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=v.useContext(Qn),{matches:c}=v.useContext(Gn),h=c[c.length-1],m=h?h.params:{},p=h?h.pathname:"/",g=h?h.pathnameBase:"/",y=h&&h.route;{let T=y&&y.path||"";zb(p,!y||T.endsWith("*")||T.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${T}">) 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="${T}"> to <Route path="${T==="/"?"*":`${T}/*`}">.`)}let x=za(),w;if(a){let T=typeof a=="string"?pr(a):a;at(g==="/"||((_=T.pathname)==null?void 0:_.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 "${T.pathname}" was given in the \`location\` prop.`),w=T}else w=x;let j=w.pathname||"/",E=j;if(g!=="/"){let T=g.replace(/^\//,"").split("/");E="/"+j.replace(/^\//,"").split("/").slice(T.length).join("/")}let S=Cb(n,{pathname:E});Cn(y||S!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),Cn(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=qC(S&&S.map(T=>Object.assign({},T,{params:Object.assign({},m,T.params),pathname:Ma([g,s.encodeLocation?s.encodeLocation(T.pathname).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?g:Ma([g,s.encodeLocation?s.encodeLocation(T.pathnameBase).pathname:T.pathnameBase])})),c,r,i);return a&&C?v.createElement(cs.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},C):C}function OC(){let n=$C(),a=_C(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},c={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:c},"ErrorBoundary")," or"," ",v.createElement("code",{style:c},"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 zC=v.createElement(OC,null),LC=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(Gn.Provider,{value:this.props.routeContext},v.createElement(Mm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function UC({routeContext:n,match:a,children:r}){let i=v.useContext(ki);return i&&i.static&&i.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=a.route.id),v.createElement(Gn.Provider,{value:n},r)}function qC(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,c=r==null?void 0:r.errors;if(c!=null){let p=s.findIndex(g=>g.route.id&&(c==null?void 0:c[g.route.id])!==void 0);at(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).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:x}=r,w=g.route.loader&&!y.hasOwnProperty(g.route.id)&&(!x||x[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 x,w=!1,j=null,E=null;r&&(x=c&&g.route.id?c[g.route.id]:void 0,j=g.route.errorElement||zC,h&&(m<0&&y===0?(zb("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 _;return x?_=j:w?_=E:g.route.Component?_=v.createElement(g.route.Component,null):g.route.element?_=g.route.element:_=p,v.createElement(UC,{match:g,routeContext:{outlet:p,matches:S,isDataRoute:r!=null},children:_})};return r&&(g.route.ErrorBoundary||g.route.errorElement||y===0)?v.createElement(LC,{location:r.location,revalidation:r.revalidation,component:j,error:x,children:C(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):C()},null)}function Am(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function HC(n){let a=v.useContext(ki);return at(a,Am(n)),a}function BC(n){let a=v.useContext(wc);return at(a,Am(n)),a}function QC(n){let a=v.useContext(Gn);return at(a,Am(n)),a}function km(n){let a=QC(n),r=a.matches[a.matches.length-1];return at(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function GC(){return km("useRouteId")}function $C(){var i;let n=v.useContext(Mm),a=BC("useRouteError"),r=km("useRouteError");return n!==void 0?n:(i=a.errors)==null?void 0:i[r]}function YC(){let{router:n}=HC("useNavigate"),a=km("useNavigate"),r=v.useRef(!1);return kb(()=>{r.current=!0}),v.useCallback(async(s,c={})=>{Cn(r.current,Ab),r.current&&(typeof s=="number"?n.navigate(s):await n.navigate(s,{fromRouteId:a,...c}))},[n,a])}var lx={};function zb(n,a,r){!a&&!lx[n]&&(lx[n]=!0,Cn(!1,r))}v.memo(VC);function VC({routes:n,future:a,state:r}){return Ob(n,void 0,r,a)}function fl({to:n,replace:a,state:r,relative:i}){at(Di(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=v.useContext(Qn);Cn(!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:c}=v.useContext(Gn),{pathname:h}=za(),m=Db(),p=Rm(n,Tm(c),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 kn(n){at(!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 KC({basename:n="/",children:a=null,location:r,navigationType:i="POP",navigator:s,static:c=!1}){at(!Di(),"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:c,future:{}}),[h,s,c]);typeof r=="string"&&(r=pr(r));let{pathname:p="/",search:g="",hash:y="",state:x=null,key:w="default"}=r,j=v.useMemo(()=>{let E=ka(p,h);return E==null?null:{location:{pathname:E,search:g,hash:y,state:x,key:w},navigationType:i}},[h,p,g,y,x,w,i]);return Cn(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(Qn.Provider,{value:m},v.createElement(cs.Provider,{children:a,value:j}))}function XC({children:n,location:a}){return DC(Ih(n),a)}function Ih(n,a=[]){let r=[];return v.Children.forEach(n,(i,s)=>{if(!v.isValidElement(i))return;let c=[...a,s];if(i.type===v.Fragment){r.push.apply(r,Ih(i.props.children,c));return}at(i.type===kn,`[${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>`),at(!i.props.index||!i.props.children,"An index route cannot have child routes.");let h={id:i.props.id||c.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=Ih(i.props.children,c)),r.push(h)}),r}var Pu="get",Ju="application/x-www-form-urlencoded";function Sc(n){return n!=null&&typeof n.tagName=="string"}function FC(n){return Sc(n)&&n.tagName.toLowerCase()==="button"}function ZC(n){return Sc(n)&&n.tagName.toLowerCase()==="form"}function PC(n){return Sc(n)&&n.tagName.toLowerCase()==="input"}function JC(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function IC(n,a){return n.button===0&&(!a||a==="_self")&&!JC(n)}var Hu=null;function WC(){if(Hu===null)try{new FormData(document.createElement("form"),0),Hu=!1}catch{Hu=!0}return Hu}var e_=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function xh(n){return n!=null&&!e_.has(n)?(Cn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ju}"`),null):n}function t_(n,a){let r,i,s,c,h;if(ZC(n)){let m=n.getAttribute("action");i=m?ka(m,a):null,r=n.getAttribute("method")||Pu,s=xh(n.getAttribute("enctype"))||Ju,c=new FormData(n)}else if(FC(n)||PC(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?ka(p,a):null,r=n.getAttribute("formmethod")||m.getAttribute("method")||Pu,s=xh(n.getAttribute("formenctype"))||xh(m.getAttribute("enctype"))||Ju,c=new FormData(m,n),!WC()){let{name:g,type:y,value:x}=n;if(y==="image"){let w=g?`${g}.`:"";c.append(`${w}x`,"0"),c.append(`${w}y`,"0")}else g&&c.append(g,x)}}else{if(Sc(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Pu,i=null,s=Ju,h=n}return c&&s==="text/plain"&&(h=c,c=void 0),{action:i,method:r.toLowerCase(),encType:s,formData:c,body:h}}function Dm(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}async function n_(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 a_(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 l_(n,a,r){let i=await Promise.all(n.map(async s=>{let c=a.routes[s.route.id];if(c){let h=await n_(c,r);return h.links?h.links():[]}return[]}));return s_(i.flat(1).filter(a_).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function rx(n,a,r,i,s,c){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 c==="assets"?a.filter((p,g)=>h(p,g)||m(p,g)):c==="data"?a.filter((p,g)=>{var x;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:((x=r[0])==null?void 0:x.params)||{},nextUrl:new URL(n,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function r_(n,a,{includeHydrateFallback:r}={}){return i_(n.map(i=>{let s=a.routes[i.route.id];if(!s)return[];let c=[s.module];return s.clientActionModule&&(c=c.concat(s.clientActionModule)),s.clientLoaderModule&&(c=c.concat(s.clientLoaderModule)),r&&s.hydrateFallbackModule&&(c=c.concat(s.hydrateFallbackModule)),s.imports&&(c=c.concat(s.imports)),c}).flat(1))}function i_(n){return[...new Set(n)]}function o_(n){let a={},r=Object.keys(n).sort();for(let i of r)a[i]=n[i];return a}function s_(n,a){let r=new Set;return new Set(a),n.reduce((i,s)=>{let c=JSON.stringify(o_(s));return r.has(c)||(r.add(c),i.push({key:c,link:s})),i},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var u_=new Set([100,101,204,205]);function c_(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&&ka(r.pathname,a)==="/"?r.pathname=`${a.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function Lb(){let n=v.useContext(ki);return Dm(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function d_(){let n=v.useContext(wc);return Dm(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Om=v.createContext(void 0);Om.displayName="FrameworkContext";function Ub(){let n=v.useContext(Om);return Dm(n,"You must render this element inside a <HydratedRouter> element"),n}function f_(n,a){let r=v.useContext(Om),[i,s]=v.useState(!1),[c,h]=v.useState(!1),{onFocus:m,onBlur:p,onMouseEnter:g,onMouseLeave:y,onTouchStart:x}=a,w=v.useRef(null);v.useEffect(()=>{if(n==="render"&&h(!0),n==="viewport"){let S=_=>{_.forEach(T=>{h(T.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"?[c,w,{}]:[c,w,{onFocus:Vo(m,j),onBlur:Vo(p,E),onMouseEnter:Vo(g,j),onMouseLeave:Vo(y,E),onTouchStart:Vo(x,j)}]:[!1,w,{}]}function Vo(n,a){return r=>{n&&n(r),r.defaultPrevented||a(r)}}function h_({page:n,...a}){let{router:r}=Lb(),i=v.useMemo(()=>Cb(r.routes,n,r.basename),[r.routes,n,r.basename]);return i?v.createElement(p_,{page:n,matches:i,...a}):null}function m_(n){let{manifest:a,routeModules:r}=Ub(),[i,s]=v.useState([]);return v.useEffect(()=>{let c=!1;return l_(n,a,r).then(h=>{c||s(h)}),()=>{c=!0}},[n,a,r]),i}function p_({page:n,matches:a,...r}){let i=za(),{manifest:s,routeModules:c}=Ub(),{basename:h}=Lb(),{loaderData:m,matches:p}=d_(),g=v.useMemo(()=>rx(n,a,p,s,i,"data"),[n,a,p,s,i]),y=v.useMemo(()=>rx(n,a,p,s,i,"assets"),[n,a,p,s,i]),x=v.useMemo(()=>{if(n===i.pathname+i.search+i.hash)return[];let E=new Set,S=!1;if(a.forEach(_=>{var R;let T=s.routes[_.route.id];!T||!T.hasLoader||(!g.some(D=>D.route.id===_.route.id)&&_.route.id in m&&((R=c[_.route.id])!=null&&R.shouldRevalidate)||T.hasClientLoader?S=!0:E.add(_.route.id))}),E.size===0)return[];let C=c_(n,h);return S&&E.size>0&&C.searchParams.set("_routes",a.filter(_=>E.has(_.route.id)).map(_=>_.route.id).join(",")),[C.pathname+C.search]},[h,m,i,s,g,a,n,c]),w=v.useMemo(()=>r_(y,s),[y,s]),j=m_(y);return v.createElement(v.Fragment,null,x.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 v_(...n){return a=>{n.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a)})}}var qb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{qb&&(window.__reactRouterVersion="7.6.1")}catch{}function g_({basename:n,children:a,window:r}){let i=v.useRef();i.current==null&&(i.current=lC({window:r,v5Compat:!0}));let s=i.current,[c,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(KC,{basename:n,children:a,location:c.location,navigationType:c.action,navigator:s})}var Hb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sn=v.forwardRef(function({onClick:a,discover:r="render",prefetch:i="none",relative:s,reloadDocument:c,replace:h,state:m,target:p,to:g,preventScrollReset:y,viewTransition:x,...w},j){let{basename:E}=v.useContext(Qn),S=typeof g=="string"&&Hb.test(g),C,_=!1;if(typeof g=="string"&&S&&(C=g,qb))try{let $=new URL(window.location.href),te=g.startsWith("//")?new URL($.protocol+g):new URL(g),ue=ka(te.pathname,E);te.origin===$.origin&&ue!=null?g=ue+te.search+te.hash:_=!0}catch{Cn(!1,`<Link to="${g}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let T=AC(g,{relative:s}),[R,D,L]=f_(i,w),K=w_(g,{replace:h,state:m,target:p,preventScrollReset:y,relative:s,viewTransition:x});function H($){a&&a($),$.defaultPrevented||K($)}let q=v.createElement("a",{...w,...L,href:C||T,onClick:_||c?a:H,ref:v_(j,D),target:p,"data-discover":!S&&r==="render"?"true":void 0});return R&&!S?v.createElement(v.Fragment,null,q,v.createElement(h_,{page:T})):q});sn.displayName="Link";var y_=v.forwardRef(function({"aria-current":a="page",caseSensitive:r=!1,className:i="",end:s=!1,style:c,to:h,viewTransition:m,children:p,...g},y){let x=ds(h,{relative:g.relative}),w=za(),j=v.useContext(wc),{navigator:E,basename:S}=v.useContext(Qn),C=j!=null&&C_(x)&&m===!0,_=E.encodeLocation?E.encodeLocation(x).pathname:x.pathname,T=w.pathname,R=j&&j.navigation&&j.navigation.location?j.navigation.location.pathname:null;r||(T=T.toLowerCase(),R=R?R.toLowerCase():null,_=_.toLowerCase()),R&&S&&(R=ka(R,S)||R);const D=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let L=T===_||!s&&T.startsWith(_)&&T.charAt(D)==="/",K=R!=null&&(R===_||!s&&R.startsWith(_)&&R.charAt(_.length)==="/"),H={isActive:L,isPending:K,isTransitioning:C},q=L?a:void 0,$;typeof i=="function"?$=i(H):$=[i,L?"active":null,K?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let te=typeof c=="function"?c(H):c;return v.createElement(sn,{...g,"aria-current":q,className:$,ref:y,style:te,to:h,viewTransition:m},typeof p=="function"?p(H):p)});y_.displayName="NavLink";var x_=v.forwardRef(({discover:n="render",fetcherKey:a,navigate:r,reloadDocument:i,replace:s,state:c,method:h=Pu,action:m,onSubmit:p,relative:g,preventScrollReset:y,viewTransition:x,...w},j)=>{let E=E_(),S=N_(m,{relative:g}),C=h.toLowerCase()==="get"?"get":"post",_=typeof m=="string"&&Hb.test(m),T=R=>{if(p&&p(R),R.defaultPrevented)return;R.preventDefault();let D=R.nativeEvent.submitter,L=(D==null?void 0:D.getAttribute("formmethod"))||h;E(D||R.currentTarget,{fetcherKey:a,method:L,navigate:r,replace:s,state:c,relative:g,preventScrollReset:y,viewTransition:x})};return v.createElement("form",{ref:j,method:C,action:S,onSubmit:i?p:T,...w,"data-discover":!_&&n==="render"?"true":void 0})});x_.displayName="Form";function b_(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Bb(n){let a=v.useContext(ki);return at(a,b_(n)),a}function w_(n,{target:a,replace:r,state:i,preventScrollReset:s,relative:c,viewTransition:h}={}){let m=Db(),p=za(),g=ds(n,{relative:c});return v.useCallback(y=>{if(IC(y,a)){y.preventDefault();let x=r!==void 0?r:ts(p)===ts(g);m(n,{replace:x,state:i,preventScrollReset:s,relative:c,viewTransition:h})}},[p,m,g,r,i,a,n,s,c,h])}var S_=0,j_=()=>`__${String(++S_)}__`;function E_(){let{router:n}=Bb("useSubmit"),{basename:a}=v.useContext(Qn),r=GC();return v.useCallback(async(i,s={})=>{let{action:c,method:h,encType:m,formData:p,body:g}=t_(i,a);if(s.navigate===!1){let y=s.fetcherKey||j_();await n.fetch(y,r,s.action||c,{preventScrollReset:s.preventScrollReset,formData:p,body:g,formMethod:s.method||h,formEncType:s.encType||m,flushSync:s.flushSync})}else await n.navigate(s.action||c,{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 N_(n,{relative:a}={}){let{basename:r}=v.useContext(Qn),i=v.useContext(Gn);at(i,"useFormAction must be used inside a RouteContext");let[s]=i.matches.slice(-1),c={...ds(n||".",{relative:a})},h=za();if(n==null){c.search=h.search;let m=new URLSearchParams(c.search),p=m.getAll("index");if(p.some(y=>y==="")){m.delete("index"),p.filter(x=>x).forEach(x=>m.append("index",x));let y=m.toString();c.search=y?`?${y}`:""}}return(!n||n===".")&&s.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(c.pathname=c.pathname==="/"?r:Ma([r,c.pathname])),ts(c)}function C_(n,a={}){let r=v.useContext(Mb);at(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Bb("useViewTransitionState"),s=ds(n,{relative:a.relative});if(!r.isTransitioning)return!1;let c=ka(r.currentLocation.pathname,i)||r.currentLocation.pathname,h=ka(r.nextLocation.pathname,i)||r.nextLocation.pathname;return lc(s.pathname,h)!=null||lc(s.pathname,c)!=null}[...u_];var fs=Nb();const Qb=cb(fs);/**
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 __=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),T_=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,i)=>i?i.toUpperCase():r.toLowerCase()),ix=n=>{const a=T_(n);return a.charAt(0).toUpperCase()+a.slice(1)},Gb=(...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 R_={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 M_=v.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:c,iconNode:h,...m},p)=>v.createElement("svg",{ref:p,...R_,width:a,height:a,stroke:n,strokeWidth:i?Number(r)*24/Number(a):r,className:Gb("lucide",s),...m},[...h.map(([g,y])=>v.createElement(g,y)),...Array.isArray(c)?c:[c]]));/**
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 Ye=(n,a)=>{const r=v.forwardRef(({className:i,...s},c)=>v.createElement(M_,{ref:c,iconNode:a,className:Gb(`lucide-${__(ix(n))}`,`lucide-${n}`,i),...s}));return r.displayName=ix(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 A_=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],k_=Ye("archive",A_);/**
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 D_=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],O_=Ye("arrow-left",D_);/**
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 z_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]],L_=Ye("ban",z_);/**
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 U_=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],q_=Ye("bell",U_);/**
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 H_=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],$b=Ye("chevron-down",H_);/**
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 B_=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],jc=Ye("chevron-left",B_);/**
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 Q_=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Oi=Ye("chevron-right",Q_);/**
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 G_=[["path",{d:"m7 20 5-5 5 5",key:"13a0gw"}],["path",{d:"m7 4 5 5 5-5",key:"1kwcof"}]],$_=Ye("chevrons-down-up",G_);/**
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 Y_=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],V_=Ye("chevrons-up-down",Y_);/**
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 K_=[["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"}]],X_=Ye("circle-alert",K_);/**
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 F_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],_l=Ye("circle-check",F_);/**
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 Z_=[["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"}]],zi=Ye("circle-x",Z_);/**
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 P_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],vr=Ye("clock",P_);/**
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 J_=[["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"}]],Yb=Ye("columns-3",J_);/**
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 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"}]],W_=Ye("database",I_);/**
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 eT=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],tT=Ye("folder-open",eT);/**
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 nT=[["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"}]],aT=Ye("git-branch",nT);/**
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 lT=[["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"}]],rT=Ye("inbox",lT);/**
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 iT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Vb=Ye("info",iT);/**
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 oT=[["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"}]],Kb=Ye("key",oT);/**
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 sT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],qn=Ye("loader-circle",sT);/**
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 uT=[["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"}]],cT=Ye("mail-warning",uT);/**
182
+ * @license lucide-react v0.488.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 dT=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],Xb=Ye("play",dT);/**
187
+ * @license lucide-react v0.488.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
+ */const fT=[["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"}]],hs=Ye("refresh-cw",fT);/**
192
+ * @license lucide-react v0.488.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 hT=[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]],mT=Ye("repeat",hT);/**
197
+ * @license lucide-react v0.488.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 pT=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],vT=Ye("search",pT);/**
202
+ * @license lucide-react v0.488.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 gT=[["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"}]],yT=Ye("settings",gT);/**
207
+ * @license lucide-react v0.488.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 xT=[["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"}]],bT=Ye("shield",xT);/**
212
+ * @license lucide-react v0.488.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 wT=[["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"}]],Ec=Ye("table",wT);/**
217
+ * @license lucide-react v0.488.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 ST=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],jT=Ye("timer",ST);function Fb(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=Fb(n[a]))&&(i&&(i+=" "),i+=r);else for(a in n)n[a]&&(i&&(i+=" "),i+=a);return i}function ET(){for(var n,a,r=0,i="";r<arguments.length;)(n=arguments[r++])&&(a=Fb(n))&&(i&&(i+=" "),i+=a);return i}const zm="-",NT=n=>{const a=_T(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:s=>{const c=s.split(zm);return c[0]===""&&c.length!==1&&c.shift(),Zb(c,a)||CT(s)},getConflictingClassGroupIds:(s,c)=>{const h=r[s]||[];return c&&i[s]?[...h,...i[s]]:h}}},Zb=(n,a)=>{var r;if(n.length===0)return a.classGroupId;const i=n[0],s=a.nextPart.get(i),c=s?Zb(n.slice(1),s):void 0;if(c)return c;if(a.validators.length===0)return;const h=n.join(zm);return(r=a.validators.find(({validator:m})=>m(h)))==null?void 0:r.classGroupId},ox=/^\[(.+)\]$/,CT=n=>{if(ox.test(n)){const a=ox.exec(n)[1],r=a==null?void 0:a.substring(0,a.indexOf(":"));if(r)return"arbitrary.."+r}},_T=n=>{const{theme:a,classGroups:r}=n,i={nextPart:new Map,validators:[]};for(const s in r)Wh(r[s],i,s,a);return i},Wh=(n,a,r,i)=>{n.forEach(s=>{if(typeof s=="string"){const c=s===""?a:sx(a,s);c.classGroupId=r;return}if(typeof s=="function"){if(TT(s)){Wh(s(i),a,r,i);return}a.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([c,h])=>{Wh(h,sx(a,c),r,i)})})},sx=(n,a)=>{let r=n;return a.split(zm).forEach(i=>{r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r},TT=n=>n.isThemeGetter,RT=n=>{if(n<1)return{get:()=>{},set:()=>{}};let a=0,r=new Map,i=new Map;const s=(c,h)=>{r.set(c,h),a++,a>n&&(a=0,i=r,r=new Map)};return{get(c){let h=r.get(c);if(h!==void 0)return h;if((h=i.get(c))!==void 0)return s(c,h),h},set(c,h){r.has(c)?r.set(c,h):s(c,h)}}},em="!",tm=":",MT=tm.length,AT=n=>{const{prefix:a,experimentalParseClassName:r}=n;let i=s=>{const c=[];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===tm){c.push(s.slice(p,E)),p=E+MT;continue}if(S==="/"){g=E;continue}}S==="["?h++:S==="]"?h--:S==="("?m++:S===")"&&m--}const y=c.length===0?s:s.substring(p),x=kT(y),w=x!==y,j=g&&g>p?g-p:void 0;return{modifiers:c,hasImportantModifier:w,baseClassName:x,maybePostfixModifierPosition:j}};if(a){const s=a+tm,c=i;i=h=>h.startsWith(s)?c(h.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:h,maybePostfixModifierPosition:void 0}}if(r){const s=i;i=c=>r({className:c,parseClassName:s})}return i},kT=n=>n.endsWith(em)?n.substring(0,n.length-1):n.startsWith(em)?n.substring(1):n,DT=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(c=>{c[0]==="["||a[c]?(i.push(...s.sort(),c),s=[]):s.push(c)}),i.push(...s.sort()),i}},OT=n=>({cache:RT(n.cacheSize),parseClassName:AT(n),sortModifiers:DT(n),...NT(n)}),zT=/\s+/,LT=(n,a)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:c}=a,h=[],m=n.trim().split(zT);let p="";for(let g=m.length-1;g>=0;g-=1){const y=m[g],{isExternal:x,modifiers:w,hasImportantModifier:j,baseClassName:E,maybePostfixModifierPosition:S}=r(y);if(x){p=y+(p.length>0?" "+p:p);continue}let C=!!S,_=i(C?E.substring(0,S):E);if(!_){if(!C){p=y+(p.length>0?" "+p:p);continue}if(_=i(E),!_){p=y+(p.length>0?" "+p:p);continue}C=!1}const T=c(w).join(":"),R=j?T+em:T,D=R+_;if(h.includes(D))continue;h.push(D);const L=s(_,C);for(let K=0;K<L.length;++K){const H=L[K];h.push(R+H)}p=y+(p.length>0?" "+p:p)}return p};function UT(){let n=0,a,r,i="";for(;n<arguments.length;)(a=arguments[n++])&&(r=Pb(a))&&(i&&(i+=" "),i+=r);return i}const Pb=n=>{if(typeof n=="string")return n;let a,r="";for(let i=0;i<n.length;i++)n[i]&&(a=Pb(n[i]))&&(r&&(r+=" "),r+=a);return r};function qT(n,...a){let r,i,s,c=h;function h(p){const g=a.reduce((y,x)=>x(y),n());return r=OT(g),i=r.cache.get,s=r.cache.set,c=m,m(p)}function m(p){const g=i(p);if(g)return g;const y=LT(p,r);return s(p,y),y}return function(){return c(UT.apply(null,arguments))}}const xt=n=>{const a=r=>r[n]||[];return a.isThemeGetter=!0,a},Jb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ib=/^\((?:(\w[\w-]*):)?(.+)\)$/i,HT=/^\d+\/\d+$/,BT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,QT=/\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$/,GT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,$T=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,YT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,li=n=>HT.test(n),Me=n=>!!n&&!Number.isNaN(Number(n)),hl=n=>!!n&&Number.isInteger(Number(n)),bh=n=>n.endsWith("%")&&Me(n.slice(0,-1)),Ca=n=>BT.test(n),VT=()=>!0,KT=n=>QT.test(n)&&!GT.test(n),Wb=()=>!1,XT=n=>$T.test(n),FT=n=>YT.test(n),ZT=n=>!he(n)&&!me(n),PT=n=>Li(n,nw,Wb),he=n=>Jb.test(n),Wl=n=>Li(n,aw,KT),wh=n=>Li(n,tR,Me),ux=n=>Li(n,ew,Wb),JT=n=>Li(n,tw,FT),Bu=n=>Li(n,lw,XT),me=n=>Ib.test(n),Ko=n=>Ui(n,aw),IT=n=>Ui(n,nR),cx=n=>Ui(n,ew),WT=n=>Ui(n,nw),eR=n=>Ui(n,tw),Qu=n=>Ui(n,lw,!0),Li=(n,a,r)=>{const i=Jb.exec(n);return i?i[1]?a(i[1]):r(i[2]):!1},Ui=(n,a,r=!1)=>{const i=Ib.exec(n);return i?i[1]?a(i[1]):r:!1},ew=n=>n==="position"||n==="percentage",tw=n=>n==="image"||n==="url",nw=n=>n==="length"||n==="size"||n==="bg-size",aw=n=>n==="length",tR=n=>n==="number",nR=n=>n==="family-name",lw=n=>n==="shadow",aR=()=>{const n=xt("color"),a=xt("font"),r=xt("text"),i=xt("font-weight"),s=xt("tracking"),c=xt("leading"),h=xt("breakpoint"),m=xt("container"),p=xt("spacing"),g=xt("radius"),y=xt("shadow"),x=xt("inset-shadow"),w=xt("text-shadow"),j=xt("drop-shadow"),E=xt("blur"),S=xt("perspective"),C=xt("aspect"),_=xt("ease"),T=xt("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],L=()=>[...D(),me,he],K=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],q=()=>[me,he,p],$=()=>[li,"full","auto",...q()],te=()=>[hl,"none","subgrid",me,he],ue=()=>["auto",{span:["full",hl,me,he]},hl,me,he],ce=()=>[hl,"auto",me,he],W=()=>["auto","min","max","fr",me,he],ie=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],re=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",...q()],I=()=>[li,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...q()],Y=()=>[n,me,he],X=()=>[...D(),cx,ux,{position:[me,he]}],de=()=>["no-repeat",{repeat:["","x","y","space","round"]}],A=()=>["auto","cover","contain",WT,PT,{size:[me,he]}],F=()=>[bh,Ko,Wl],ee=()=>["","none","full",g,me,he],le=()=>["",Me,Ko,Wl],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,bh,cx,ux],Ee=()=>["","none",E,me,he],ye=()=>["none",Me,me,he],Ne=()=>["none",Me,me,he],He=()=>[Me,me,he],Ve=()=>[li,"full",...q()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ca],breakpoint:[Ca],color:[VT],container:[Ca],"drop-shadow":[Ca],ease:["in","out","in-out"],font:[ZT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ca],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ca],shadow:[Ca],spacing:["px",Me],text:[Ca],"text-shadow":[Ca],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",li,he,me,C]}],container:["container"],columns:[{columns:[Me,he,me,m]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"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:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{start:$()}],end:[{end:$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[hl,"auto",me,he]}],basis:[{basis:[li,"full","auto",m,...q()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Me,li,"auto","initial","none",he]}],grow:[{grow:["",Me,me,he]}],shrink:[{shrink:["",Me,me,he]}],order:[{order:[hl,"first","last","none",me,he]}],"grid-cols":[{"grid-cols":te()}],"col-start-end":[{col:ue()}],"col-start":[{"col-start":ce()}],"col-end":[{"col-end":ce()}],"grid-rows":[{"grid-rows":te()}],"row-start-end":[{row:ue()}],"row-start":[{"row-start":ce()}],"row-end":[{"row-end":ce()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:q()}],"gap-x":[{"gap-x":q()}],"gap-y":[{"gap-y":q()}],"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:q()}],px:[{px:q()}],py:[{py:q()}],ps:[{ps:q()}],pe:[{pe:q()}],pt:[{pt:q()}],pr:[{pr:q()}],pb:[{pb:q()}],pl:[{pl:q()}],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":q()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":q()}],"space-y-reverse":["space-y-reverse"],size:[{size:I()}],w:[{w:[m,"screen",...I()]}],"min-w":[{"min-w":[m,"screen","none",...I()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[h]},...I()]}],h:[{h:["screen",...I()]}],"min-h":[{"min-h":["screen","none",...I()]}],"max-h":[{"max-h":["screen",...I()]}],"font-size":[{text:["base",r,Ko,Wl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,me,wh]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",bh,he]}],"font-family":[{font:[IT,he,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,me,he]}],"line-clamp":[{"line-clamp":[Me,"none",me,wh]}],leading:[{leading:[c,...q()]}],"list-image":[{"list-image":["none",me,he]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",me,he]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Y()}],"text-color":[{text:Y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ve(),"wavy"]}],"text-decoration-thickness":[{decoration:[Me,"from-font","auto",me,Wl]}],"text-decoration-color":[{decoration:Y()}],"underline-offset":[{"underline-offset":[Me,"auto",me,he]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:q()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me,he]}],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",me,he]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:X()}],"bg-repeat":[{bg:de()}],"bg-size":[{bg:A()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},hl,me,he],radial:["",me,he],conic:[hl,me,he]},eR,JT]}],"bg-color":[{bg:Y()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:Y()}],"gradient-via":[{via:Y()}],"gradient-to":[{to:Y()}],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:Y()}],"border-color-x":[{"border-x":Y()}],"border-color-y":[{"border-y":Y()}],"border-color-s":[{"border-s":Y()}],"border-color-e":[{"border-e":Y()}],"border-color-t":[{"border-t":Y()}],"border-color-r":[{"border-r":Y()}],"border-color-b":[{"border-b":Y()}],"border-color-l":[{"border-l":Y()}],"divide-color":[{divide:Y()}],"outline-style":[{outline:[...ve(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Me,me,he]}],"outline-w":[{outline:["",Me,Ko,Wl]}],"outline-color":[{outline:Y()}],shadow:[{shadow:["","none",y,Qu,Bu]}],"shadow-color":[{shadow:Y()}],"inset-shadow":[{"inset-shadow":["none",x,Qu,Bu]}],"inset-shadow-color":[{"inset-shadow":Y()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Y()}],"ring-offset-w":[{"ring-offset":[Me,Wl]}],"ring-offset-color":[{"ring-offset":Y()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":Y()}],"text-shadow":[{"text-shadow":["none",w,Qu,Bu]}],"text-shadow-color":[{"text-shadow":Y()}],opacity:[{opacity:[Me,me,he]}],"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":Y()}],"mask-image-linear-to-color":[{"mask-linear-to":Y()}],"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":Y()}],"mask-image-t-to-color":[{"mask-t-to":Y()}],"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":Y()}],"mask-image-r-to-color":[{"mask-r-to":Y()}],"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":Y()}],"mask-image-b-to-color":[{"mask-b-to":Y()}],"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":Y()}],"mask-image-l-to-color":[{"mask-l-to":Y()}],"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":Y()}],"mask-image-x-to-color":[{"mask-x-to":Y()}],"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":Y()}],"mask-image-y-to-color":[{"mask-y-to":Y()}],"mask-image-radial":[{"mask-radial":[me,he]}],"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":Y()}],"mask-image-radial-to-color":[{"mask-radial-to":Y()}],"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":D()}],"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":Y()}],"mask-image-conic-to-color":[{"mask-conic-to":Y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:X()}],"mask-repeat":[{mask:de()}],"mask-size":[{mask:A()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",me,he]}],filter:[{filter:["","none",me,he]}],blur:[{blur:Ee()}],brightness:[{brightness:[Me,me,he]}],contrast:[{contrast:[Me,me,he]}],"drop-shadow":[{"drop-shadow":["","none",j,Qu,Bu]}],"drop-shadow-color":[{"drop-shadow":Y()}],grayscale:[{grayscale:["",Me,me,he]}],"hue-rotate":[{"hue-rotate":[Me,me,he]}],invert:[{invert:["",Me,me,he]}],saturate:[{saturate:[Me,me,he]}],sepia:[{sepia:["",Me,me,he]}],"backdrop-filter":[{"backdrop-filter":["","none",me,he]}],"backdrop-blur":[{"backdrop-blur":Ee()}],"backdrop-brightness":[{"backdrop-brightness":[Me,me,he]}],"backdrop-contrast":[{"backdrop-contrast":[Me,me,he]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Me,me,he]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Me,me,he]}],"backdrop-invert":[{"backdrop-invert":["",Me,me,he]}],"backdrop-opacity":[{"backdrop-opacity":[Me,me,he]}],"backdrop-saturate":[{"backdrop-saturate":[Me,me,he]}],"backdrop-sepia":[{"backdrop-sepia":["",Me,me,he]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":q()}],"border-spacing-x":[{"border-spacing-x":q()}],"border-spacing-y":[{"border-spacing-y":q()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",me,he]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Me,"initial",me,he]}],ease:[{ease:["linear","initial",_,me,he]}],delay:[{delay:[Me,me,he]}],animate:[{animate:["none",T,me,he]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,me,he]}],"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:He()}],"skew-x":[{"skew-x":He()}],"skew-y":[{"skew-y":He()}],transform:[{transform:[me,he,"","none","gpu","cpu"]}],"transform-origin":[{origin:L()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ve()}],"translate-x":[{"translate-x":Ve()}],"translate-y":[{"translate-y":Ve()}],"translate-z":[{"translate-z":Ve()}],"translate-none":["translate-none"],accent:[{accent:Y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Y()}],"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",me,he]}],"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":q()}],"scroll-mx":[{"scroll-mx":q()}],"scroll-my":[{"scroll-my":q()}],"scroll-ms":[{"scroll-ms":q()}],"scroll-me":[{"scroll-me":q()}],"scroll-mt":[{"scroll-mt":q()}],"scroll-mr":[{"scroll-mr":q()}],"scroll-mb":[{"scroll-mb":q()}],"scroll-ml":[{"scroll-ml":q()}],"scroll-p":[{"scroll-p":q()}],"scroll-px":[{"scroll-px":q()}],"scroll-py":[{"scroll-py":q()}],"scroll-ps":[{"scroll-ps":q()}],"scroll-pe":[{"scroll-pe":q()}],"scroll-pt":[{"scroll-pt":q()}],"scroll-pr":[{"scroll-pr":q()}],"scroll-pb":[{"scroll-pb":q()}],"scroll-pl":[{"scroll-pl":q()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",me,he]}],fill:[{fill:["none",...Y()]}],"stroke-w":[{stroke:[Me,Ko,Wl,wh]}],stroke:[{stroke:["none",...Y()]}],"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"]}},lR=qT(aR);function pe(...n){return lR(ET(n))}function si(n){return n===null?"-":n<1e3?`${String(n)}ms`:n<6e4?`${(n/1e3).toFixed(1)}s`:`${(n/6e4).toFixed(1)}m`}const rR={sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl"},iR={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 rc({children:n,className:a,rounded:r="lg",shadow:i="md",...s}){return u.jsxs("div",{"data-slot":"glass-container",className:pe("relative","bg-card","backdrop-blur-xl","border border-border",rR[r],iR[i],a),...s,children:[u.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%)"}}),u.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%)"}}),u.jsx("div",{className:"relative z-10",children:n})]})}function wt({className:n,rounded:a="2xl",shadow:r="lg",children:i,...s}){return u.jsx(rc,{"data-slot":"card",rounded:a,shadow:r,className:pe("p-6",n),...s,children:i})}function kt({className:n,...a}){return u.jsx("div",{"data-slot":"card-header",className:pe("flex flex-row items-center justify-between space-y-0 pb-2",n),...a})}function Dt({className:n,...a}){return u.jsx("h3",{"data-slot":"card-title",className:pe("font-semibold text-sm leading-none text-card-foreground",n),...a})}function Zt({className:n,...a}){return u.jsx("p",{"data-slot":"card-description",className:pe("text-muted-foreground text-sm",n),...a})}function St({className:n,...a}){return u.jsx("div",{"data-slot":"card-content",className:pe(n),...a})}/**
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 oR=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),sR=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,i)=>i?i.toUpperCase():r.toLowerCase()),dx=n=>{const a=sR(n);return a.charAt(0).toUpperCase()+a.slice(1)},rw=(...n)=>n.filter((a,r,i)=>!!a&&a.trim()!==""&&i.indexOf(a)===r).join(" ").trim(),uR=n=>{for(const a in n)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
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
+ */var cR={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"};/**
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 dR=v.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:c,iconNode:h,...m},p)=>v.createElement("svg",{ref:p,...cR,width:a,height:a,stroke:n,strokeWidth:i?Number(r)*24/Number(a):r,className:rw("lucide",s),...!c&&!uR(m)&&{"aria-hidden":"true"},...m},[...h.map(([g,y])=>v.createElement(g,y)),...Array.isArray(c)?c:[c]]));/**
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 $n=(n,a)=>{const r=v.forwardRef(({className:i,...s},c)=>v.createElement(dR,{ref:c,iconNode:a,className:rw(`lucide-${oR(dx(n))}`,`lucide-${n}`,i),...s}));return r.displayName=dx(n),r};/**
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 fR=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],iw=$n("check",fR);/**
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 hR=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mR=$n("chevron-down",hR);/**
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 pR=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],fx=$n("chevron-left",pR);/**
257
+ * @license lucide-react v0.511.0 - ISC
258
+ *
259
+ * This source code is licensed under the ISC license.
260
+ * See the LICENSE file in the root directory of this source tree.
261
+ */const vR=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],hx=$n("chevron-right",vR);/**
262
+ * @license lucide-react v0.511.0 - ISC
263
+ *
264
+ * This source code is licensed under the ISC license.
265
+ * See the LICENSE file in the root directory of this source tree.
266
+ */const gR=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],yR=$n("chevron-up",gR);/**
267
+ * @license lucide-react v0.511.0 - ISC
268
+ *
269
+ * This source code is licensed under the ISC license.
270
+ * See the LICENSE file in the root directory of this source tree.
271
+ */const xR=[["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"}]],bR=$n("clipboard",xR);/**
272
+ * @license lucide-react v0.511.0 - ISC
273
+ *
274
+ * This source code is licensed under the ISC license.
275
+ * See the LICENSE file in the root directory of this source tree.
276
+ */const wR=[["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"}]],SR=$n("file-json",wR);/**
277
+ * @license lucide-react v0.511.0 - ISC
278
+ *
279
+ * This source code is licensed under the ISC license.
280
+ * See the LICENSE file in the root directory of this source tree.
281
+ */const jR=[["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"}]],ER=$n("file-spreadsheet",jR);/**
282
+ * @license lucide-react v0.511.0 - ISC
283
+ *
284
+ * This source code is licensed under the ISC license.
285
+ * See the LICENSE file in the root directory of this source tree.
286
+ */const NR=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],CR=$n("loader-circle",NR);/**
287
+ * @license lucide-react v0.511.0 - ISC
288
+ *
289
+ * This source code is licensed under the ISC license.
290
+ * See the LICENSE file in the root directory of this source tree.
291
+ */const _R=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],TR=$n("search",_R);/**
292
+ * @license lucide-react v0.511.0 - ISC
293
+ *
294
+ * This source code is licensed under the ISC license.
295
+ * See the LICENSE file in the root directory of this source tree.
296
+ */const RR=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],MR=$n("x",RR);function AR(n){const a=Math.floor((new Date().getTime()-n.getTime())/1e3);return a<5?"just now":a<60?`${String(a)}s ago`:a<3600?`${String(Math.floor(a/60))}m ago`:a<86400?`${String(Math.floor(a/3600))}h ago`:a<604800?`${String(Math.floor(a/86400))}d ago`:n.toLocaleDateString()}function Sh({value:n}){const[a,r]=v.useState(!1);return u.jsx("button",{onClick:i=>{i.stopPropagation(),navigator.clipboard.writeText(n).then(()=>{r(!0),setTimeout(()=>{r(!1)},2e3)}).catch(()=>{const s=document.createElement("textarea");s.value=n,document.body.appendChild(s),s.select();try{document.execCommand("copy")}catch{}document.body.removeChild(s),r(!0),setTimeout(()=>{r(!1)},2e3)})},className:pe("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?u.jsx(iw,{className:"w-3 h-3"}):u.jsx(bR,{className:"w-3 h-3"})})}function cn({timestamp:n,className:a,rawValue:r,forceOpen:i=!1}){const[s,c]=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"}),x=AR(p);return u.jsxs("div",{className:pe("relative inline-block",a),onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},children:[u.jsx("time",{dateTime:g,className:"cursor-help border-b border-gray-400 dark:border-gray-400 text-gray-700 dark:text-gray-300",children:x}),u.jsx("div",{className:pe("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:u.jsx(rc,{rounded:"lg",shadow:"lg",className:"p-3 text-xs !bg-white dark:!bg-gray-900 !backdrop-blur-none",children:u.jsxs("div",{className:"space-y-2.5",children:[r!==void 0&&u.jsxs("div",{children:[u.jsx("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 dark:text-gray-400 font-semibold mb-0.5",children:"Raw Value"}),u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("span",{className:"font-mono text-gray-700 dark:text-gray-200 break-all leading-tight",children:typeof r=="object"?JSON.stringify(r):String(r)}),u.jsx(Sh,{value:typeof r=="object"?JSON.stringify(r):String(r)})]})]}),u.jsxs("div",{children:[u.jsx("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 dark:text-gray-400 font-semibold mb-0.5",children:"UTC ISO"}),u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("span",{className:"font-mono text-gray-700 dark:text-gray-200 break-all leading-tight",children:g}),u.jsx(Sh,{value:g})]})]}),u.jsxs("div",{children:[u.jsx("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 dark:text-gray-400 font-semibold mb-0.5",children:"Local Time"}),u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("span",{className:"text-gray-700 dark:text-gray-200 leading-tight",children:y}),u.jsx(Sh,{value:y})]})]})]})})})]})}function kR(n){return n<1e3?`${n.toFixed(2)}ms`:`${(n/1e3).toFixed(2)}s`}function DR(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 OR(n){const a=n.toLowerCase();return!!(a.includes("created")||a.includes("date")||a.includes("updated")||n.endsWith("At")||a.endsWith("_at"))}function zR(n,a){for(const r of a){const i=r[n];if(i!=null)return typeof i=="boolean"?"bool":typeof i=="number"&&OR(n)?"date":typeof i=="number"?"number":DR(i)?"date":"string"}return"string"}function ow({results:n,meta:a,columns:r,error:i,title:s="Results",pageSize:c=25,onExportCsv:h,onExportJson:m,serverPagination:p}){const[g,y]=v.useState(""),[x,w]=v.useState(null),[j,E]=v.useState(new Set),[S,C]=v.useState(1),_=!!p,T=p?Math.floor(p.offset/p.limit)+1:1,R=p?Math.ceil(p.total/p.limit):1,D=v.useMemo(()=>r||(n.length===0?[]:Object.keys(n[0]).map(W=>({key:W,label:W,type:zR(W,n)}))),[r,n]),L=v.useMemo(()=>g?n.filter(W=>Object.values(W).some(ie=>String(ie).toLowerCase().includes(g.toLowerCase()))):n,[n,g]),K=v.useMemo(()=>x?[...L].sort((W,ie)=>{const re=W[x.key],U=ie[x.key];return re==null?1:U==null?-1:re<U?x.direction==="asc"?-1:1:re>U?x.direction==="asc"?1:-1:0}):L,[L,x]),H=Math.ceil(K.length/c),q=v.useMemo(()=>{const W=(S-1)*c;return K.slice(W,W+c)},[K,S,c]);v.useMemo(()=>{C(1)},[g,x]);const $=W=>{w(ie=>(ie==null?void 0:ie.key)===W?ie.direction==="asc"?{key:W,direction:"desc"}:null:{key:W,direction:"asc"})},te=()=>{j.size===q.length?E(new Set):E(new Set(q.map((W,ie)=>ie)))},ue=W=>{const ie=new Set(j);ie.has(W)?ie.delete(W):ie.add(W),E(ie)},ce=(W,ie)=>{const re=W[ie.key];if(re==null)return u.jsx("span",{className:"text-xs italic dark:text-gray-600 text-gray-400",children:"NULL"});switch(ie.type??"string"){case"bool":return re===!0?u.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:u.jsx(iw,{className:"w-3.5 h-3.5"})}):u.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:u.jsx(MR,{className:"w-3.5 h-3.5"})});case"date":return u.jsx(cn,{timestamp:re,rawValue:typeof re=="number"?re:void 0});case"number":return u.jsx("span",{className:"text-sm font-mono dark:text-gray-300 text-gray-700",children:typeof re=="number"?re.toLocaleString():JSON.stringify(re)});default:return typeof re=="object"?u.jsx("span",{className:"text-sm font-mono dark:text-gray-300 text-gray-700",children:JSON.stringify(re)}):u.jsx("span",{className:"text-sm dark:text-gray-300 text-gray-700",children:typeof re=="object"?JSON.stringify(re):String(re)})}};return i?u.jsxs(rc,{rounded:"2xl",shadow:"lg",className:"border-red-500/30 dark:border-red-500/20",children:[u.jsx("div",{className:"p-5 border-b dark:border-white/[0.08] border-gray-200",children:u.jsx("h2",{className:"text-lg font-semibold text-red-500",children:"Query Error"})}),u.jsx("div",{className:"p-5",children:u.jsx("p",{className:"font-mono text-sm text-red-500",children:i})})]}):u.jsxs(rc,{rounded:"2xl",shadow:"lg",className:"flex flex-col",children:[u.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:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("h2",{className:"text-lg font-semibold dark:text-white text-gray-900",children:s}),a&&u.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:kR(a.duration)}),u.jsxs("span",{className:"text-sm dark:text-gray-500 text-gray-500",children:[n.length," row",n.length!==1?"s":""]})]}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsxs("div",{className:"relative group",children:[u.jsx(TR,{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"}),u.jsx("input",{type:"text",placeholder:"Search results...",value:g,onChange:W=>{y(W.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)&&u.jsxs("div",{className:"flex items-center gap-2 border-l dark:border-white/[0.08] border-gray-200 pl-3 ml-1",children:[h&&u.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:u.jsx(ER,{className:"w-4 h-4"})}),m&&u.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:u.jsx(SR,{className:"w-4 h-4"})})]})]})]}),u.jsx("div",{className:"overflow-x-auto overflow-y-visible",children:u.jsxs("table",{className:"w-full text-left border-collapse font-mono",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"border-b dark:border-white/[0.08] border-gray-200 bg-gray-50/50 dark:bg-white/[0.02]",children:[u.jsx("th",{className:"p-4 w-12",children:u.jsx("input",{type:"checkbox",checked:j.size===q.length&&q.length>0,onChange:te,className:"rounded border-gray-300 text-blue-600 focus:ring-blue-500 bg-transparent"})}),D.map(W=>u.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:()=>{$(W.key)},children:u.jsxs("div",{className:"flex items-center gap-1",children:[W.label,u.jsxs("div",{className:pe("flex flex-col opacity-0 group-hover:opacity-50",(x==null?void 0:x.key)===W.key&&"opacity-100"),children:[u.jsx(yR,{className:pe("w-2 h-2",(x==null?void 0:x.key)===W.key&&x.direction==="asc"&&"text-blue-500")}),u.jsx(mR,{className:pe("w-2 h-2",(x==null?void 0:x.key)===W.key&&x.direction==="desc"&&"text-blue-500")})]})]})},W.key))]})}),u.jsx("tbody",{className:"divide-y dark:divide-white/[0.04] divide-gray-100",children:q.length>0?q.map((W,ie)=>u.jsxs("tr",{className:pe("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:[u.jsx("td",{className:"p-4",children:u.jsx("input",{type:"checkbox",checked:j.has(ie),onChange:()=>{ue(ie)},className:"rounded border-gray-300 text-blue-600 focus:ring-blue-500 bg-transparent"})}),D.map(re=>u.jsx("td",{className:"p-4 whitespace-nowrap",children:ce(W,re)},`${String(ie)}-${re.key}`))]},ie)):u.jsx("tr",{children:u.jsx("td",{colSpan:D.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."})})})]})}),u.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:[u.jsxs("div",{children:[_?u.jsxs(u.Fragment,{children:["Showing"," ",u.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:p.offset+1}),"-",u.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:Math.min(p.offset+n.length,p.total)})," ","of"," ",u.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:p.total})," ","total"]}):u.jsxs(u.Fragment,{children:["Showing"," ",u.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:q.length})," ","of"," ",u.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:K.length})," ","results"]}),j.size>0&&u.jsxs("span",{className:"ml-3 text-blue-500 font-medium",children:[j.size," row",j.size!==1?"s":""," ","selected"]})]}),_&&R>1&&u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("button",{onClick:()=>{p.onPageChange(Math.max(0,p.offset-p.limit))},disabled:T===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:u.jsx(fx,{className:"w-4 h-4"})}),u.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:Math.min(R,5)},(W,ie)=>{let re;return R<=5||T<=3?re=ie+1:T>=R-2?re=R-4+ie:re=T-2+ie,u.jsx("button",{onClick:()=>{p.onPageChange((re-1)*p.limit)},className:pe("px-2.5 py-1 rounded-lg font-medium transition-colors",T===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)})}),u.jsx("button",{onClick:()=>{p.onPageChange(p.offset+p.limit)},disabled:T===R,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:u.jsx(hx,{className:"w-4 h-4"})})]}),!_&&H>1&&u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("button",{onClick:()=>{C(W=>Math.max(1,W-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:u.jsx(fx,{className:"w-4 h-4"})}),u.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:Math.min(H,5)},(W,ie)=>{let re;return H<=5||S<=3?re=ie+1:S>=H-2?re=H-4+ie:re=S-2+ie,u.jsx("button",{onClick:()=>{C(re)},className:pe("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)})}),u.jsx("button",{onClick:()=>{C(W=>Math.min(H,W+1))},disabled:S===H,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:u.jsx(hx,{className:"w-4 h-4"})})]})]})]})}function La({className:n,...a}){return u.jsx("table",{"data-slot":"table",className:pe("w-full caption-bottom text-sm",n),...a})}function Ua({className:n,...a}){return u.jsx("thead",{"data-slot":"table-header",className:pe("[&_tr]:border-b",n),...a})}function qa({className:n,...a}){return u.jsx("tbody",{"data-slot":"table-body",className:pe("[&_tr:last-child]:border-0",n),...a})}function Ct({className:n,...a}){return u.jsx("tr",{"data-slot":"table-row",className:pe("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",n),...a})}function De({className:n,...a}){return u.jsx("th",{"data-slot":"table-head",className:pe("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 Oe({className:n,...a}){return u.jsx("td",{"data-slot":"table-cell",className:pe("whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n),...a})}function mx(n,a){if(typeof n=="function")return n(a);n!=null&&(n.current=a)}function ms(...n){return a=>{let r=!1;const i=n.map(s=>{const c=mx(s,a);return!r&&typeof c=="function"&&(r=!0),c});if(r)return()=>{for(let s=0;s<i.length;s++){const c=i[s];typeof c=="function"?c():mx(n[s],null)}}}}function we(...n){return v.useCallback(ms(...n),n)}function dr(n){const a=LR(n),r=v.forwardRef((i,s)=>{const{children:c,...h}=i,m=v.Children.toArray(c),p=m.find(UR);if(p){const g=p.props.children,y=m.map(x=>x===p?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:x);return u.jsx(a,{...h,ref:s,children:v.isValidElement(g)?v.cloneElement(g,void 0,y):null})}return u.jsx(a,{...h,ref:s,children:c})});return r.displayName=`${n}.Slot`,r}var px=dr("Slot");function LR(n){const a=v.forwardRef((r,i)=>{const{children:s,...c}=r;if(v.isValidElement(s)){const h=HR(s),m=qR(c,s.props);return s.type!==v.Fragment&&(m.ref=i?ms(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 sw=Symbol("radix.slottable");function uw(n){const a=({children:r})=>u.jsx(u.Fragment,{children:r});return a.displayName=`${n}.Slottable`,a.__radixId=sw,a}function UR(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===sw}function qR(n,a){const r={...a};for(const i in a){const s=n[i],c=a[i];/^on[A-Z]/.test(i)?s&&c?r[i]=(...h)=>{const m=c(...h);return s(...h),m}:s&&(r[i]=s):i==="style"?r[i]={...s,...c}:i==="className"&&(r[i]=[s,c].filter(Boolean).join(" "))}return{...n,...r}}function HR(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 cw(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=cw(n[a]))&&(i&&(i+=" "),i+=r)}else for(r in n)n[r]&&(i&&(i+=" "),i+=r);return i}function BR(){for(var n,a,r=0,i="",s=arguments.length;r<s;r++)(n=arguments[r])&&(a=cw(n))&&(i&&(i+=" "),i+=a);return i}const vx=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,gx=BR,dw=(n,a)=>r=>{var i;if((a==null?void 0:a.variants)==null)return gx(n,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:c}=a,h=Object.keys(s).map(g=>{const y=r==null?void 0:r[g],x=c==null?void 0:c[g];if(y===null)return null;const w=vx(y)||vx(x);return s[g][w]}),m=r&&Object.entries(r).reduce((g,y)=>{let[x,w]=y;return w===void 0||(g[x]=w),g},{}),p=a==null||(i=a.compoundVariants)===null||i===void 0?void 0:i.reduce((g,y)=>{let{class:x,className:w,...j}=y;return Object.entries(j).every(E=>{let[S,C]=E;return Array.isArray(C)?C.includes({...c,...m}[S]):{...c,...m}[S]===C})?[...g,x,w]:g},[]);return gx(n,h,p,r==null?void 0:r.class,r==null?void 0:r.className)},QR={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 Ci({className:n,icon:a,variant:r="default",children:i,...s}){return u.jsxs("div",{className:pe("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",QR[r],n),...s,children:[a&&u.jsx("span",{className:"flex-shrink-0",children:a}),u.jsx("span",{className:"leading-none",children:i})]})}const yx=dw("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:pe("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:pe("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:pe("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:pe("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:pe("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:pe("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"}}),GR=["primary","secondary","danger","success","icon"];function Ie({className:n,variant:a,size:r,asChild:i=!1,isLoading:s=!1,children:c,disabled:h,...m}){const p=i?px:"button",g=a&&GR.includes(a);return i?u.jsx(px,{"data-slot":"button",className:pe(yx({variant:a,size:r,className:n})),...m,children:c}):u.jsxs(p,{"data-slot":"button",className:pe(yx({variant:a,size:r,className:n})),disabled:h===!0||s,...m,children:[g&&u.jsxs("div",{className:"absolute inset-0 pointer-events-none z-0",children:[u.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%)"}}),u.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%)"}})]}),u.jsxs("span",{className:"relative z-10 flex items-center justify-center gap-2",children:[s&&u.jsx(CR,{className:"size-4 animate-spin"}),c]})]})}const fw=({ref:n,className:a,active:r=!1,icon:i,children:s,"data-state":c,...h})=>{const m=r||c==="active";return u.jsxs("button",{ref:n,"data-slot":"tab-button","data-state":c,className:pe("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",a),...h,children:[i&&u.jsx(i,{className:"size-4"}),s,u.jsx("span",{className:pe("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")})]})};fw.displayName="TabButton";const $R={sm:"h-8 px-3 text-xs",md:"h-10 px-4 text-sm",lg:"h-12 px-5 text-base"};function hw({className:n,label:a,error:r,leftIcon:i,rightContent:s,inputSize:c="md",...h}){return u.jsxs("div",{className:"w-full",children:[a&&u.jsx("label",{className:"block text-sm font-medium dark:text-white text-gray-900 mb-2",children:a}),u.jsx("div",{className:"relative",children:u.jsxs("div",{className:pe("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:[u.jsxs("div",{className:"absolute inset-0 pointer-events-none z-0",children:[u.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%)"}}),u.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&&u.jsx("div",{className:"relative z-10 pl-4",children:u.jsx(i,{className:"w-4 h-4 dark:text-gray-400 text-gray-600 flex-shrink-0"})}),u.jsx("input",{className:pe("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",$R[c],i&&"pl-2",s!==null&&"pr-2"),...h}),s&&u.jsx("div",{className:"relative z-10 pr-3",children:s})]})}),r&&u.jsx("p",{className:"mt-2 text-xs dark:text-red-400 text-red-600",children:r})]})}var YR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],oe=YR.reduce((n,a)=>{const r=dr(`Primitive.${a}`),i=v.forwardRef((s,c)=>{const{asChild:h,...m}=s,p=h?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(p,{...m,ref:c})});return i.displayName=`Primitive.${a}`,{...n,[a]:i}},{});function ic(n,a){n&&fs.flushSync(()=>n.dispatchEvent(a))}var lt=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{};function VR(n,a){return v.useReducer((r,i)=>a[r][i]??r,n)}var jt=n=>{const{present:a,children:r}=n,i=KR(a),s=typeof r=="function"?r({present:i.isPresent}):v.Children.only(r),c=we(i.ref,XR(s));return typeof r=="function"||i.isPresent?v.cloneElement(s,{ref:c}):null};jt.displayName="Presence";function KR(n){const[a,r]=v.useState(),i=v.useRef(null),s=v.useRef(n),c=v.useRef("none"),h=n?"mounted":"unmounted",[m,p]=VR(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const g=Gu(i.current);c.current=m==="mounted"?g:"none"},[m]),lt(()=>{const g=i.current,y=s.current;if(y!==n){const x=c.current,w=Gu(g);n?p("MOUNT"):w==="none"||(g==null?void 0:g.display)==="none"?p("UNMOUNT"):p(y&&x!==w?"ANIMATION_OUT":"UNMOUNT"),s.current=n}},[n,p]),lt(()=>{if(a){let g;const y=a.ownerDocument.defaultView??window,x=j=>{const E=Gu(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&&(c.current=Gu(i.current))};return a.addEventListener("animationstart",w),a.addEventListener("animationcancel",x),a.addEventListener("animationend",x),()=>{y.clearTimeout(g),a.removeEventListener("animationstart",w),a.removeEventListener("animationcancel",x),a.removeEventListener("animationend",x)}}else p("ANIMATION_END")},[a,p]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:v.useCallback(g=>{i.current=g?getComputedStyle(g):null,r(g)},[])}}function Gu(n){return(n==null?void 0:n.animationName)||"none"}function XR(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 FR(n,a){const r=v.createContext(a),i=c=>{const{children:h,...m}=c,p=v.useMemo(()=>m,Object.values(m));return u.jsx(r.Provider,{value:p,children:h})};i.displayName=n+"Provider";function s(c){const h=v.useContext(r);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${n}\``)}return[i,s]}function gt(n,a=[]){let r=[];function i(c,h){const m=v.createContext(h),p=r.length;r=[...r,h];const g=x=>{var w;const{scope:j,children:E,...S}=x,C=((w=j==null?void 0:j[n])==null?void 0:w[p])||m,_=v.useMemo(()=>S,Object.values(S));return u.jsx(C.Provider,{value:_,children:E})};g.displayName=c+"Provider";function y(x,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(`\`${x}\` must be used within \`${c}\``)}return[g,y]}const s=()=>{const c=r.map(h=>v.createContext(h));return function(h){const m=(h==null?void 0:h[n])||c;return v.useMemo(()=>({[`__scope${n}`]:{...h,[n]:m}}),[h,m])}};return s.scopeName=n,[i,ZR(s,...a)]}function ZR(...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 c=i.reduce((h,{useScope:m,scopeName:p})=>{const g=m(s)[`__scope${p}`];return{...h,...g}},{});return v.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}function nt(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 PR=v.createContext(void 0);function qi(n){const a=v.useContext(PR);return n||a||"ltr"}function nm(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 JR(n,a){return v.useReducer((r,i)=>a[r][i]??r,n)}var Lm="ScrollArea",[mw,Uz]=gt(Lm),[IR,_n]=mw(Lm),pw=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,type:i="hover",dir:s,scrollHideDelay:c=600,...h}=n,[m,p]=v.useState(null),[g,y]=v.useState(null),[x,w]=v.useState(null),[j,E]=v.useState(null),[S,C]=v.useState(null),[_,T]=v.useState(0),[R,D]=v.useState(0),[L,K]=v.useState(!1),[H,q]=v.useState(!1),$=we(a,ue=>p(ue)),te=qi(s);return u.jsx(IR,{scope:r,type:i,dir:te,scrollHideDelay:c,scrollArea:m,viewport:g,onViewportChange:y,content:x,onContentChange:w,scrollbarX:j,onScrollbarXChange:E,scrollbarXEnabled:L,onScrollbarXEnabledChange:K,scrollbarY:S,onScrollbarYChange:C,scrollbarYEnabled:H,onScrollbarYEnabledChange:q,onCornerWidthChange:T,onCornerHeightChange:D,children:u.jsx(oe.div,{dir:te,...h,ref:$,style:{position:"relative","--radix-scroll-area-corner-width":_+"px","--radix-scroll-area-corner-height":R+"px",...n.style}})})});pw.displayName=Lm;var vw="ScrollAreaViewport",gw=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,children:i,nonce:s,...c}=n,h=_n(vw,r),m=v.useRef(null),p=we(a,m,h.onViewportChange);return u.jsxs(u.Fragment,{children:[u.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}),u.jsx(oe.div,{"data-radix-scroll-area-viewport":"",...c,ref:p,style:{overflowX:h.scrollbarXEnabled?"scroll":"hidden",overflowY:h.scrollbarYEnabled?"scroll":"hidden",...n.style},children:u.jsx("div",{ref:h.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});gw.displayName=vw;var na="ScrollAreaScrollbar",yw=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=_n(na,n.__scopeScrollArea),{onScrollbarXEnabledChange:c,onScrollbarYEnabledChange:h}=s,m=n.orientation==="horizontal";return v.useEffect(()=>(m?c(!0):h(!0),()=>{m?c(!1):h(!1)}),[m,c,h]),s.type==="hover"?u.jsx(WR,{...i,ref:a,forceMount:r}):s.type==="scroll"?u.jsx(eM,{...i,ref:a,forceMount:r}):s.type==="auto"?u.jsx(xw,{...i,ref:a,forceMount:r}):s.type==="always"?u.jsx(Um,{...i,ref:a}):null});yw.displayName=na;var WR=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=_n(na,n.__scopeScrollArea),[c,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]),u.jsx(jt,{present:r||c,children:u.jsx(xw,{"data-state":c?"visible":"hidden",...i,ref:a})})}),eM=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=_n(na,n.__scopeScrollArea),c=n.orientation==="horizontal",h=Cc(()=>p("SCROLL_END"),100),[m,p]=JR("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=c?"scrollLeft":"scrollTop";if(g){let x=g[y];const w=()=>{const j=g[y];x!==j&&(p("SCROLL"),h()),x=j};return g.addEventListener("scroll",w),()=>g.removeEventListener("scroll",w)}},[s.viewport,c,p,h]),u.jsx(jt,{present:r||m!=="hidden",children:u.jsx(Um,{"data-state":m==="hidden"?"hidden":"visible",...i,ref:a,onPointerEnter:ae(n.onPointerEnter,()=>p("POINTER_ENTER")),onPointerLeave:ae(n.onPointerLeave,()=>p("POINTER_LEAVE"))})})}),xw=v.forwardRef((n,a)=>{const r=_n(na,n.__scopeScrollArea),{forceMount:i,...s}=n,[c,h]=v.useState(!1),m=n.orientation==="horizontal",p=Cc(()=>{if(r.viewport){const g=r.viewport.offsetWidth<r.viewport.scrollWidth,y=r.viewport.offsetHeight<r.viewport.scrollHeight;h(m?g:y)}},10);return _i(r.viewport,p),_i(r.content,p),u.jsx(jt,{present:i||c,children:u.jsx(Um,{"data-state":c?"visible":"hidden",...s,ref:a})})}),Um=v.forwardRef((n,a)=>{const{orientation:r="vertical",...i}=n,s=_n(na,n.__scopeScrollArea),c=v.useRef(null),h=v.useRef(0),[m,p]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),g=Ew(m.viewport,m.content),y={...i,sizes:m,onSizesChange:p,hasThumb:g>0&&g<1,onThumbChange:w=>c.current=w,onThumbPointerUp:()=>h.current=0,onThumbPointerDown:w=>h.current=w};function x(w,j){return iM(w,h.current,m,j)}return r==="horizontal"?u.jsx(tM,{...y,ref:a,onThumbPositionChange:()=>{if(s.viewport&&c.current){const w=s.viewport.scrollLeft,j=xx(w,m,s.dir);c.current.style.transform=`translate3d(${j}px, 0, 0)`}},onWheelScroll:w=>{s.viewport&&(s.viewport.scrollLeft=w)},onDragScroll:w=>{s.viewport&&(s.viewport.scrollLeft=x(w,s.dir))}}):r==="vertical"?u.jsx(nM,{...y,ref:a,onThumbPositionChange:()=>{if(s.viewport&&c.current){const w=s.viewport.scrollTop,j=xx(w,m);c.current.style.transform=`translate3d(0, ${j}px, 0)`}},onWheelScroll:w=>{s.viewport&&(s.viewport.scrollTop=w)},onDragScroll:w=>{s.viewport&&(s.viewport.scrollTop=x(w))}}):null}),tM=v.forwardRef((n,a)=>{const{sizes:r,onSizesChange:i,...s}=n,c=_n(na,n.__scopeScrollArea),[h,m]=v.useState(),p=v.useRef(null),g=we(a,p,c.onScrollbarXChange);return v.useEffect(()=>{p.current&&m(getComputedStyle(p.current))},[p]),u.jsx(ww,{"data-orientation":"horizontal",...s,ref:g,sizes:r,style:{bottom:0,left:c.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:c.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Nc(r)+"px",...n.style},onThumbPointerDown:y=>n.onThumbPointerDown(y.x),onDragScroll:y=>n.onDragScroll(y.x),onWheelScroll:(y,x)=>{if(c.viewport){const w=c.viewport.scrollLeft+y.deltaX;n.onWheelScroll(w),Cw(w,x)&&y.preventDefault()}},onResize:()=>{p.current&&c.viewport&&h&&i({content:c.viewport.scrollWidth,viewport:c.viewport.offsetWidth,scrollbar:{size:p.current.clientWidth,paddingStart:sc(h.paddingLeft),paddingEnd:sc(h.paddingRight)}})}})}),nM=v.forwardRef((n,a)=>{const{sizes:r,onSizesChange:i,...s}=n,c=_n(na,n.__scopeScrollArea),[h,m]=v.useState(),p=v.useRef(null),g=we(a,p,c.onScrollbarYChange);return v.useEffect(()=>{p.current&&m(getComputedStyle(p.current))},[p]),u.jsx(ww,{"data-orientation":"vertical",...s,ref:g,sizes:r,style:{top:0,right:c.dir==="ltr"?0:void 0,left:c.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Nc(r)+"px",...n.style},onThumbPointerDown:y=>n.onThumbPointerDown(y.y),onDragScroll:y=>n.onDragScroll(y.y),onWheelScroll:(y,x)=>{if(c.viewport){const w=c.viewport.scrollTop+y.deltaY;n.onWheelScroll(w),Cw(w,x)&&y.preventDefault()}},onResize:()=>{p.current&&c.viewport&&h&&i({content:c.viewport.scrollHeight,viewport:c.viewport.offsetHeight,scrollbar:{size:p.current.clientHeight,paddingStart:sc(h.paddingTop),paddingEnd:sc(h.paddingBottom)}})}})}),[aM,bw]=mw(na),ww=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,sizes:i,hasThumb:s,onThumbChange:c,onThumbPointerUp:h,onThumbPointerDown:m,onThumbPositionChange:p,onDragScroll:g,onWheelScroll:y,onResize:x,...w}=n,j=_n(na,r),[E,S]=v.useState(null),C=we(a,$=>S($)),_=v.useRef(null),T=v.useRef(""),R=j.viewport,D=i.content-i.viewport,L=nt(y),K=nt(p),H=Cc(x,10);function q($){if(_.current){const te=$.clientX-_.current.left,ue=$.clientY-_.current.top;g({x:te,y:ue})}}return v.useEffect(()=>{const $=te=>{const ue=te.target;E!=null&&E.contains(ue)&&L(te,D)};return document.addEventListener("wheel",$,{passive:!1}),()=>document.removeEventListener("wheel",$,{passive:!1})},[R,E,D,L]),v.useEffect(K,[i,K]),_i(E,H),_i(j.content,H),u.jsx(aM,{scope:r,scrollbar:E,hasThumb:s,onThumbChange:nt(c),onThumbPointerUp:nt(h),onThumbPositionChange:K,onThumbPointerDown:nt(m),children:u.jsx(oe.div,{...w,ref:C,style:{position:"absolute",...w.style},onPointerDown:ae(n.onPointerDown,$=>{$.button===0&&($.target.setPointerCapture($.pointerId),_.current=E.getBoundingClientRect(),T.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",j.viewport&&(j.viewport.style.scrollBehavior="auto"),q($))}),onPointerMove:ae(n.onPointerMove,q),onPointerUp:ae(n.onPointerUp,$=>{const te=$.target;te.hasPointerCapture($.pointerId)&&te.releasePointerCapture($.pointerId),document.body.style.webkitUserSelect=T.current,j.viewport&&(j.viewport.style.scrollBehavior=""),_.current=null})})})}),oc="ScrollAreaThumb",Sw=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=bw(oc,n.__scopeScrollArea);return u.jsx(jt,{present:r||s.hasThumb,children:u.jsx(lM,{ref:a,...i})})}),lM=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,style:i,...s}=n,c=_n(oc,r),h=bw(oc,r),{onThumbPositionChange:m}=h,p=we(a,x=>h.onThumbChange(x)),g=v.useRef(void 0),y=Cc(()=>{g.current&&(g.current(),g.current=void 0)},100);return v.useEffect(()=>{const x=c.viewport;if(x){const w=()=>{if(y(),!g.current){const j=oM(x,m);g.current=j,m()}};return m(),x.addEventListener("scroll",w),()=>x.removeEventListener("scroll",w)}},[c.viewport,y,m]),u.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,x=>{const w=x.target.getBoundingClientRect(),j=x.clientX-w.left,E=x.clientY-w.top;h.onThumbPointerDown({x:j,y:E})}),onPointerUp:ae(n.onPointerUp,h.onThumbPointerUp)})});Sw.displayName=oc;var qm="ScrollAreaCorner",jw=v.forwardRef((n,a)=>{const r=_n(qm,n.__scopeScrollArea),i=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&i?u.jsx(rM,{...n,ref:a}):null});jw.displayName=qm;var rM=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,...i}=n,s=_n(qm,r),[c,h]=v.useState(0),[m,p]=v.useState(0),g=!!(c&&m);return _i(s.scrollbarX,()=>{var y;const x=((y=s.scrollbarX)==null?void 0:y.offsetHeight)||0;s.onCornerHeightChange(x),p(x)}),_i(s.scrollbarY,()=>{var y;const x=((y=s.scrollbarY)==null?void 0:y.offsetWidth)||0;s.onCornerWidthChange(x),h(x)}),g?u.jsx(oe.div,{...i,ref:a,style:{width:c,height:m,position:"absolute",right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:0,...n.style}}):null});function sc(n){return n?parseInt(n,10):0}function Ew(n,a){const r=n/a;return isNaN(r)?0:r}function Nc(n){const a=Ew(n.viewport,n.content),r=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,i=(n.scrollbar.size-r)*a;return Math.max(i,18)}function iM(n,a,r,i="ltr"){const s=Nc(r),c=s/2,h=a||c,m=s-h,p=r.scrollbar.paddingStart+h,g=r.scrollbar.size-r.scrollbar.paddingEnd-m,y=r.content-r.viewport,x=i==="ltr"?[0,y]:[y*-1,0];return Nw([p,g],x)(n)}function xx(n,a,r="ltr"){const i=Nc(a),s=a.scrollbar.paddingStart+a.scrollbar.paddingEnd,c=a.scrollbar.size-s,h=a.content-a.viewport,m=c-i,p=r==="ltr"?[0,h]:[h*-1,0],g=nm(n,p);return Nw([0,h],[0,m])(g)}function Nw(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 Cw(n,a){return n>0&&n<a}var oM=(n,a=()=>{})=>{let r={left:n.scrollLeft,top:n.scrollTop},i=0;return(function s(){const c={left:n.scrollLeft,top:n.scrollTop},h=r.left!==c.left,m=r.top!==c.top;(h||m)&&a(),r=c,i=window.requestAnimationFrame(s)})(),()=>window.cancelAnimationFrame(i)};function Cc(n,a){const r=nt(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 _i(n,a){const r=nt(a);lt(()=>{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 sM=pw,uM=gw,cM=jw;function _w({className:n,children:a,...r}){return u.jsxs(sM,{"data-slot":"scroll-area",className:pe("relative",n),...r,children:[u.jsx(uM,{"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}),u.jsx(dM,{}),u.jsx(cM,{})]})}function dM({className:n,orientation:a="vertical",...r}){return u.jsx(yw,{"data-slot":"scroll-area-scrollbar",orientation:a,className:pe("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:u.jsx(Sw,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}var fM=wb[" useInsertionEffect ".trim().toString()]||lt;function aa({prop:n,defaultProp:a,onChange:r=()=>{},caller:i}){const[s,c,h]=hM({defaultProp:a,onChange:r}),m=n!==void 0,p=m?n:s;{const y=v.useRef(n!==void 0);v.useEffect(()=>{const x=y.current;x!==m&&console.warn(`${i} is changing from ${x?"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 x;if(m){const w=mM(y)?y(n):y;w!==n&&((x=h.current)==null||x.call(h,w))}else c(y)},[m,n,c,h]);return[p,g]}function hM({defaultProp:n,onChange:a}){const[r,i]=v.useState(n),s=v.useRef(r),c=v.useRef(a);return fM(()=>{c.current=a},[a]),v.useEffect(()=>{var h;s.current!==r&&((h=c.current)==null||h.call(c,r),s.current=r)},[r,s]),[r,i,c]}function mM(n){return typeof n=="function"}function Hi(n){const a=n+"CollectionProvider",[r,i]=gt(a),[s,c]=r(a,{collectionRef:{current:null},itemMap:new Map}),h=S=>{const{scope:C,children:_}=S,T=st.useRef(null),R=st.useRef(new Map).current;return u.jsx(s,{scope:C,itemMap:R,collectionRef:T,children:_})};h.displayName=a;const m=n+"CollectionSlot",p=dr(m),g=st.forwardRef((S,C)=>{const{scope:_,children:T}=S,R=c(m,_),D=we(C,R.collectionRef);return u.jsx(p,{ref:D,children:T})});g.displayName=m;const y=n+"CollectionItemSlot",x="data-radix-collection-item",w=dr(y),j=st.forwardRef((S,C)=>{const{scope:_,children:T,...R}=S,D=st.useRef(null),L=we(C,D),K=c(y,_);return st.useEffect(()=>(K.itemMap.set(D,{ref:D,...R}),()=>void K.itemMap.delete(D))),u.jsx(w,{[x]:"",ref:L,children:T})});j.displayName=y;function E(S){const C=c(n+"CollectionConsumer",S);return st.useCallback(()=>{const _=C.collectionRef.current;if(!_)return[];const T=Array.from(_.querySelectorAll(`[${x}]`));return Array.from(C.itemMap.values()).sort((R,D)=>T.indexOf(R.ref.current)-T.indexOf(D.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:h,Slot:g,ItemSlot:j},E,i]}function pM(n,a=globalThis==null?void 0:globalThis.document){const r=nt(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 vM="DismissableLayer",am="dismissableLayer.update",gM="dismissableLayer.pointerDownOutside",yM="dismissableLayer.focusOutside",bx,Tw=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Bi=v.forwardRef((n,a)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:h,onDismiss:m,...p}=n,g=v.useContext(Tw),[y,x]=v.useState(null),w=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,j]=v.useState({}),E=we(a,H=>x(H)),S=Array.from(g.layers),[C]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),_=S.indexOf(C),T=y?S.indexOf(y):-1,R=g.layersWithOutsidePointerEventsDisabled.size>0,D=T>=_,L=wM(H=>{const q=H.target,$=[...g.branches].some(te=>te.contains(q));!D||$||(s==null||s(H),h==null||h(H),H.defaultPrevented||m==null||m())},w),K=SM(H=>{const q=H.target;[...g.branches].some($=>$.contains(q))||(c==null||c(H),h==null||h(H),H.defaultPrevented||m==null||m())},w);return pM(H=>{T===g.layers.size-1&&(i==null||i(H),!H.defaultPrevented&&m&&(H.preventDefault(),m()))},w),v.useEffect(()=>{if(y)return r&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(bx=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(y)),g.layers.add(y),wx(),()=>{r&&g.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=bx)}},[y,w,r,g]),v.useEffect(()=>()=>{y&&(g.layers.delete(y),g.layersWithOutsidePointerEventsDisabled.delete(y),wx())},[y,g]),v.useEffect(()=>{const H=()=>j({});return document.addEventListener(am,H),()=>document.removeEventListener(am,H)},[]),u.jsx(oe.div,{...p,ref:E,style:{pointerEvents:R?D?"auto":"none":void 0,...n.style},onFocusCapture:ae(n.onFocusCapture,K.onFocusCapture),onBlurCapture:ae(n.onBlurCapture,K.onBlurCapture),onPointerDownCapture:ae(n.onPointerDownCapture,L.onPointerDownCapture)})});Bi.displayName=vM;var xM="DismissableLayerBranch",bM=v.forwardRef((n,a)=>{const r=v.useContext(Tw),i=v.useRef(null),s=we(a,i);return v.useEffect(()=>{const c=i.current;if(c)return r.branches.add(c),()=>{r.branches.delete(c)}},[r.branches]),u.jsx(oe.div,{...n,ref:s})});bM.displayName=xM;function wM(n,a=globalThis==null?void 0:globalThis.document){const r=nt(n),i=v.useRef(!1),s=v.useRef(()=>{});return v.useEffect(()=>{const c=m=>{if(m.target&&!i.current){let p=function(){Rw(gM,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",c)},0);return()=>{window.clearTimeout(h),a.removeEventListener("pointerdown",c),a.removeEventListener("click",s.current)}},[a,r]),{onPointerDownCapture:()=>i.current=!0}}function SM(n,a=globalThis==null?void 0:globalThis.document){const r=nt(n),i=v.useRef(!1);return v.useEffect(()=>{const s=c=>{c.target&&!i.current&&Rw(yM,r,{originalEvent:c},{discrete:!1})};return a.addEventListener("focusin",s),()=>a.removeEventListener("focusin",s)},[a,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function wx(){const n=new CustomEvent(am);document.dispatchEvent(n)}function Rw(n,a,r,{discrete:i}){const s=r.originalEvent.target,c=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:r});a&&s.addEventListener(n,a,{once:!0}),i?ic(s,c):s.dispatchEvent(c)}var jh=0;function Hm(){v.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??Sx()),document.body.insertAdjacentElement("beforeend",n[1]??Sx()),jh++,()=>{jh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),jh--}},[])}function Sx(){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 Eh="focusScope.autoFocusOnMount",Nh="focusScope.autoFocusOnUnmount",jx={bubbles:!1,cancelable:!0},jM="FocusScope",_c=v.forwardRef((n,a)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:c,...h}=n,[m,p]=v.useState(null),g=nt(s),y=nt(c),x=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(R){if(j.paused||!m)return;const D=R.target;m.contains(D)?x.current=D:pl(x.current,{select:!0})},C=function(R){if(j.paused||!m)return;const D=R.relatedTarget;D!==null&&(m.contains(D)||pl(x.current,{select:!0}))},_=function(R){if(document.activeElement===document.body)for(const D of R)D.removedNodes.length>0&&pl(m)};document.addEventListener("focusin",S),document.addEventListener("focusout",C);const T=new MutationObserver(_);return m&&T.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",C),T.disconnect()}}},[i,m,j.paused]),v.useEffect(()=>{if(m){Nx.add(j);const S=document.activeElement;if(!m.contains(S)){const C=new CustomEvent(Eh,jx);m.addEventListener(Eh,g),m.dispatchEvent(C),C.defaultPrevented||(EM(RM(Mw(m)),{select:!0}),document.activeElement===S&&pl(m))}return()=>{m.removeEventListener(Eh,g),setTimeout(()=>{const C=new CustomEvent(Nh,jx);m.addEventListener(Nh,y),m.dispatchEvent(C),C.defaultPrevented||pl(S??document.body,{select:!0}),m.removeEventListener(Nh,y),Nx.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,_=document.activeElement;if(C&&_){const T=S.currentTarget,[R,D]=NM(T);R&&D?!S.shiftKey&&_===D?(S.preventDefault(),r&&pl(R,{select:!0})):S.shiftKey&&_===R&&(S.preventDefault(),r&&pl(D,{select:!0})):_===T&&S.preventDefault()}},[r,i,j.paused]);return u.jsx(oe.div,{tabIndex:-1,...h,ref:w,onKeyDown:E})});_c.displayName=jM;function EM(n,{select:a=!1}={}){const r=document.activeElement;for(const i of n)if(pl(i,{select:a}),document.activeElement!==r)return}function NM(n){const a=Mw(n),r=Ex(a,n),i=Ex(a.reverse(),n);return[r,i]}function Mw(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 Ex(n,a){for(const r of n)if(!CM(r,{upTo:a}))return r}function CM(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 pl(n,{select:a=!1}={}){if(n&&n.focus){const r=document.activeElement;n.focus({preventScroll:!0}),n!==r&&_M(n)&&a&&n.select()}}var Nx=TM();function TM(){let n=[];return{add(a){const r=n[0];a!==r&&(r==null||r.pause()),n=Cx(n,a),n.unshift(a)},remove(a){var r;n=Cx(n,a),(r=n[0])==null||r.resume()}}}function Cx(n,a){const r=[...n],i=r.indexOf(a);return i!==-1&&r.splice(i,1),r}function RM(n){return n.filter(a=>a.tagName!=="A")}var MM=wb[" useId ".trim().toString()]||(()=>{}),AM=0;function Al(n){const[a,r]=v.useState(MM());return lt(()=>{r(i=>i??String(AM++))},[n]),a?`radix-${a}`:""}const kM=["top","right","bottom","left"],Tl=Math.min,un=Math.max,uc=Math.round,$u=Math.floor,ea=n=>({x:n,y:n}),DM={left:"right",right:"left",bottom:"top",top:"bottom"},OM={start:"end",end:"start"};function lm(n,a,r){return un(n,Tl(a,r))}function Da(n,a){return typeof n=="function"?n(a):n}function Oa(n){return n.split("-")[0]}function Qi(n){return n.split("-")[1]}function Bm(n){return n==="x"?"y":"x"}function Qm(n){return n==="y"?"height":"width"}const zM=new Set(["top","bottom"]);function Wn(n){return zM.has(Oa(n))?"y":"x"}function Gm(n){return Bm(Wn(n))}function LM(n,a,r){r===void 0&&(r=!1);const i=Qi(n),s=Gm(n),c=Qm(s);let h=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return a.reference[c]>a.floating[c]&&(h=cc(h)),[h,cc(h)]}function UM(n){const a=cc(n);return[rm(n),a,rm(a)]}function rm(n){return n.replace(/start|end/g,a=>OM[a])}const _x=["left","right"],Tx=["right","left"],qM=["top","bottom"],HM=["bottom","top"];function BM(n,a,r){switch(n){case"top":case"bottom":return r?a?Tx:_x:a?_x:Tx;case"left":case"right":return a?qM:HM;default:return[]}}function QM(n,a,r,i){const s=Qi(n);let c=BM(Oa(n),r==="start",i);return s&&(c=c.map(h=>h+"-"+s),a&&(c=c.concat(c.map(rm)))),c}function cc(n){return n.replace(/left|right|bottom|top/g,a=>DM[a])}function GM(n){return{top:0,right:0,bottom:0,left:0,...n}}function Aw(n){return typeof n!="number"?GM(n):{top:n,right:n,bottom:n,left:n}}function dc(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 Rx(n,a,r){let{reference:i,floating:s}=n;const c=Wn(a),h=Gm(a),m=Qm(h),p=Oa(a),g=c==="y",y=i.x+i.width/2-s.width/2,x=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:x};break;case"left":j={x:i.x-s.width,y:x};break;default:j={x:i.x,y:i.y}}switch(Qi(a)){case"start":j[h]-=w*(r&&g?-1:1);break;case"end":j[h]+=w*(r&&g?-1:1);break}return j}const $M=async(n,a,r)=>{const{placement:i="bottom",strategy:s="absolute",middleware:c=[],platform:h}=r,m=c.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:x}=Rx(g,i,p),w=i,j={},E=0;for(let S=0;S<m.length;S++){const{name:C,fn:_}=m[S],{x:T,y:R,data:D,reset:L}=await _({x:y,y:x,initialPlacement:i,placement:w,strategy:s,middlewareData:j,rects:g,platform:h,elements:{reference:n,floating:a}});y=T??y,x=R??x,j={...j,[C]:{...j[C],...D}},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:x}=Rx(g,w,p)),S=-1)}return{x:y,y:x,placement:w,strategy:s,middlewareData:j}};async function ns(n,a){var r;a===void 0&&(a={});const{x:i,y:s,platform:c,rects:h,elements:m,strategy:p}=n,{boundary:g="clippingAncestors",rootBoundary:y="viewport",elementContext:x="floating",altBoundary:w=!1,padding:j=0}=Da(a,n),E=Aw(j),S=m[w?x==="floating"?"reference":"floating":x],C=dc(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(S)))==null||r?S:S.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(m.floating)),boundary:g,rootBoundary:y,strategy:p})),_=x==="floating"?{x:i,y:s,width:h.floating.width,height:h.floating.height}:h.reference,T=await(c.getOffsetParent==null?void 0:c.getOffsetParent(m.floating)),R=await(c.isElement==null?void 0:c.isElement(T))?await(c.getScale==null?void 0:c.getScale(T))||{x:1,y:1}:{x:1,y:1},D=dc(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:_,offsetParent:T,strategy:p}):_);return{top:(C.top-D.top+E.top)/R.y,bottom:(D.bottom-C.bottom+E.bottom)/R.y,left:(C.left-D.left+E.left)/R.x,right:(D.right-C.right+E.right)/R.x}}const YM=n=>({name:"arrow",options:n,async fn(a){const{x:r,y:i,placement:s,rects:c,platform:h,elements:m,middlewareData:p}=a,{element:g,padding:y=0}=Da(n,a)||{};if(g==null)return{};const x=Aw(y),w={x:r,y:i},j=Gm(s),E=Qm(j),S=await h.getDimensions(g),C=j==="y",_=C?"top":"left",T=C?"bottom":"right",R=C?"clientHeight":"clientWidth",D=c.reference[E]+c.reference[j]-w[j]-c.floating[E],L=w[j]-c.reference[j],K=await(h.getOffsetParent==null?void 0:h.getOffsetParent(g));let H=K?K[R]:0;(!H||!await(h.isElement==null?void 0:h.isElement(K)))&&(H=m.floating[R]||c.floating[E]);const q=D/2-L/2,$=H/2-S[E]/2-1,te=Tl(x[_],$),ue=Tl(x[T],$),ce=te,W=H-S[E]-ue,ie=H/2-S[E]/2+q,re=lm(ce,ie,W),U=!p.arrow&&Qi(s)!=null&&ie!==re&&c.reference[E]/2-(ie<ce?te:ue)-S[E]/2<0,I=U?ie<ce?ie-ce:ie-W:0;return{[j]:w[j]+I,data:{[j]:re,centerOffset:ie-re-I,...U&&{alignmentOffset:I}},reset:U}}}),VM=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(a){var r,i;const{placement:s,middlewareData:c,rects:h,initialPlacement:m,platform:p,elements:g}=a,{mainAxis:y=!0,crossAxis:x=!0,fallbackPlacements:w,fallbackStrategy:j="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:S=!0,...C}=Da(n,a);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const _=Oa(s),T=Wn(m),R=Oa(m)===m,D=await(p.isRTL==null?void 0:p.isRTL(g.floating)),L=w||(R||!S?[cc(m)]:UM(m)),K=E!=="none";!w&&K&&L.push(...QM(m,S,E,D));const H=[m,...L],q=await ns(a,C),$=[];let te=((i=c.flip)==null?void 0:i.overflows)||[];if(y&&$.push(q[_]),x){const ie=LM(s,h,D);$.push(q[ie[0]],q[ie[1]])}if(te=[...te,{placement:s,overflows:$}],!$.every(ie=>ie<=0)){var ue,ce;const ie=(((ue=c.flip)==null?void 0:ue.index)||0)+1,re=H[ie];if(re&&(!(x==="alignment"&&T!==Wn(re))||te.every(I=>Wn(I.placement)===T?I.overflows[0]>0:!0)))return{data:{index:ie,overflows:te},reset:{placement:re}};let U=(ce=te.filter(I=>I.overflows[0]<=0).sort((I,Y)=>I.overflows[1]-Y.overflows[1])[0])==null?void 0:ce.placement;if(!U)switch(j){case"bestFit":{var W;const I=(W=te.filter(Y=>{if(K){const X=Wn(Y.placement);return X===T||X==="y"}return!0}).map(Y=>[Y.placement,Y.overflows.filter(X=>X>0).reduce((X,de)=>X+de,0)]).sort((Y,X)=>Y[1]-X[1])[0])==null?void 0:W[0];I&&(U=I);break}case"initialPlacement":U=m;break}if(s!==U)return{reset:{placement:U}}}return{}}}};function Mx(n,a){return{top:n.top-a.height,right:n.right-a.width,bottom:n.bottom-a.height,left:n.left-a.width}}function Ax(n){return kM.some(a=>n[a]>=0)}const KM=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(a){const{rects:r}=a,{strategy:i="referenceHidden",...s}=Da(n,a);switch(i){case"referenceHidden":{const c=await ns(a,{...s,elementContext:"reference"}),h=Mx(c,r.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:Ax(h)}}}case"escaped":{const c=await ns(a,{...s,altBoundary:!0}),h=Mx(c,r.floating);return{data:{escapedOffsets:h,escaped:Ax(h)}}}default:return{}}}}},kw=new Set(["left","top"]);async function XM(n,a){const{placement:r,platform:i,elements:s}=n,c=await(i.isRTL==null?void 0:i.isRTL(s.floating)),h=Oa(r),m=Qi(r),p=Wn(r)==="y",g=kw.has(h)?-1:1,y=c&&p?-1:1,x=Da(a,n);let{mainAxis:w,crossAxis:j,alignmentAxis:E}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.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:c,placement:h,middlewareData:m}=a,p=await XM(a,n);return h===((r=m.offset)==null?void 0:r.placement)&&(i=m.arrow)!=null&&i.alignmentOffset?{}:{x:s+p.x,y:c+p.y,data:{...p,placement:h}}}}},ZM=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(a){const{x:r,y:i,placement:s}=a,{mainAxis:c=!0,crossAxis:h=!1,limiter:m={fn:C=>{let{x:_,y:T}=C;return{x:_,y:T}}},...p}=Da(n,a),g={x:r,y:i},y=await ns(a,p),x=Wn(Oa(s)),w=Bm(x);let j=g[w],E=g[x];if(c){const C=w==="y"?"top":"left",_=w==="y"?"bottom":"right",T=j+y[C],R=j-y[_];j=lm(T,j,R)}if(h){const C=x==="y"?"top":"left",_=x==="y"?"bottom":"right",T=E+y[C],R=E-y[_];E=lm(T,E,R)}const S=m.fn({...a,[w]:j,[x]:E});return{...S,data:{x:S.x-r,y:S.y-i,enabled:{[w]:c,[x]:h}}}}}},PM=function(n){return n===void 0&&(n={}),{options:n,fn(a){const{x:r,y:i,placement:s,rects:c,middlewareData:h}=a,{offset:m=0,mainAxis:p=!0,crossAxis:g=!0}=Da(n,a),y={x:r,y:i},x=Wn(s),w=Bm(x);let j=y[w],E=y[x];const S=Da(m,a),C=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(p){const R=w==="y"?"height":"width",D=c.reference[w]-c.floating[R]+C.mainAxis,L=c.reference[w]+c.reference[R]-C.mainAxis;j<D?j=D:j>L&&(j=L)}if(g){var _,T;const R=w==="y"?"width":"height",D=kw.has(Oa(s)),L=c.reference[x]-c.floating[R]+(D&&((_=h.offset)==null?void 0:_[x])||0)+(D?0:C.crossAxis),K=c.reference[x]+c.reference[R]+(D?0:((T=h.offset)==null?void 0:T[x])||0)-(D?C.crossAxis:0);E<L?E=L:E>K&&(E=K)}return{[w]:j,[x]:E}}}},JM=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(a){var r,i;const{placement:s,rects:c,platform:h,elements:m}=a,{apply:p=()=>{},...g}=Da(n,a),y=await ns(a,g),x=Oa(s),w=Qi(s),j=Wn(s)==="y",{width:E,height:S}=c.floating;let C,_;x==="top"||x==="bottom"?(C=x,_=w===(await(h.isRTL==null?void 0:h.isRTL(m.floating))?"start":"end")?"left":"right"):(_=x,C=w==="end"?"top":"bottom");const T=S-y.top-y.bottom,R=E-y.left-y.right,D=Tl(S-y[C],T),L=Tl(E-y[_],R),K=!a.middlewareData.shift;let H=D,q=L;if((r=a.middlewareData.shift)!=null&&r.enabled.x&&(q=R),(i=a.middlewareData.shift)!=null&&i.enabled.y&&(H=T),K&&!w){const te=un(y.left,0),ue=un(y.right,0),ce=un(y.top,0),W=un(y.bottom,0);j?q=E-2*(te!==0||ue!==0?te+ue:un(y.left,y.right)):H=S-2*(ce!==0||W!==0?ce+W:un(y.top,y.bottom))}await p({...a,availableWidth:q,availableHeight:H});const $=await h.getDimensions(m.floating);return E!==$.width||S!==$.height?{reset:{rects:!0}}:{}}}};function Tc(){return typeof window<"u"}function Gi(n){return Dw(n)?(n.nodeName||"").toLowerCase():"#document"}function dn(n){var a;return(n==null||(a=n.ownerDocument)==null?void 0:a.defaultView)||window}function la(n){var a;return(a=(Dw(n)?n.ownerDocument:n.document)||window.document)==null?void 0:a.documentElement}function Dw(n){return Tc()?n instanceof Node||n instanceof dn(n).Node:!1}function Hn(n){return Tc()?n instanceof Element||n instanceof dn(n).Element:!1}function ta(n){return Tc()?n instanceof HTMLElement||n instanceof dn(n).HTMLElement:!1}function kx(n){return!Tc()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof dn(n).ShadowRoot}const IM=new Set(["inline","contents"]);function ps(n){const{overflow:a,overflowX:r,overflowY:i,display:s}=Bn(n);return/auto|scroll|overlay|hidden|clip/.test(a+i+r)&&!IM.has(s)}const WM=new Set(["table","td","th"]);function eA(n){return WM.has(Gi(n))}const tA=[":popover-open",":modal"];function Rc(n){return tA.some(a=>{try{return n.matches(a)}catch{return!1}})}const nA=["transform","translate","scale","rotate","perspective"],aA=["transform","translate","scale","rotate","perspective","filter"],lA=["paint","layout","strict","content"];function $m(n){const a=Ym(),r=Hn(n)?Bn(n):n;return nA.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)||aA.some(i=>(r.willChange||"").includes(i))||lA.some(i=>(r.contain||"").includes(i))}function rA(n){let a=Rl(n);for(;ta(a)&&!Ti(a);){if($m(a))return a;if(Rc(a))return null;a=Rl(a)}return null}function Ym(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const iA=new Set(["html","body","#document"]);function Ti(n){return iA.has(Gi(n))}function Bn(n){return dn(n).getComputedStyle(n)}function Mc(n){return Hn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Rl(n){if(Gi(n)==="html")return n;const a=n.assignedSlot||n.parentNode||kx(n)&&n.host||la(n);return kx(a)?a.host:a}function Ow(n){const a=Rl(n);return Ti(a)?n.ownerDocument?n.ownerDocument.body:n.body:ta(a)&&ps(a)?a:Ow(a)}function as(n,a,r){var i;a===void 0&&(a=[]),r===void 0&&(r=!0);const s=Ow(n),c=s===((i=n.ownerDocument)==null?void 0:i.body),h=dn(s);if(c){const m=im(h);return a.concat(h,h.visualViewport||[],ps(s)?s:[],m&&r?as(m):[])}return a.concat(s,as(s,[],r))}function im(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function zw(n){const a=Bn(n);let r=parseFloat(a.width)||0,i=parseFloat(a.height)||0;const s=ta(n),c=s?n.offsetWidth:r,h=s?n.offsetHeight:i,m=uc(r)!==c||uc(i)!==h;return m&&(r=c,i=h),{width:r,height:i,$:m}}function Vm(n){return Hn(n)?n:n.contextElement}function ci(n){const a=Vm(n);if(!ta(a))return ea(1);const r=a.getBoundingClientRect(),{width:i,height:s,$:c}=zw(a);let h=(c?uc(r.width):r.width)/i,m=(c?uc(r.height):r.height)/s;return(!h||!Number.isFinite(h))&&(h=1),(!m||!Number.isFinite(m))&&(m=1),{x:h,y:m}}const oA=ea(0);function Lw(n){const a=dn(n);return!Ym()||!a.visualViewport?oA:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function sA(n,a,r){return a===void 0&&(a=!1),!r||a&&r!==dn(n)?!1:a}function fr(n,a,r,i){a===void 0&&(a=!1),r===void 0&&(r=!1);const s=n.getBoundingClientRect(),c=Vm(n);let h=ea(1);a&&(i?Hn(i)&&(h=ci(i)):h=ci(n));const m=sA(c,r,i)?Lw(c):ea(0);let p=(s.left+m.x)/h.x,g=(s.top+m.y)/h.y,y=s.width/h.x,x=s.height/h.y;if(c){const w=dn(c),j=i&&Hn(i)?dn(i):i;let E=w,S=im(E);for(;S&&i&&j!==E;){const C=ci(S),_=S.getBoundingClientRect(),T=Bn(S),R=_.left+(S.clientLeft+parseFloat(T.paddingLeft))*C.x,D=_.top+(S.clientTop+parseFloat(T.paddingTop))*C.y;p*=C.x,g*=C.y,y*=C.x,x*=C.y,p+=R,g+=D,E=dn(S),S=im(E)}}return dc({width:y,height:x,x:p,y:g})}function Ac(n,a){const r=Mc(n).scrollLeft;return a?a.left+r:fr(la(n)).left+r}function Uw(n,a){const r=n.getBoundingClientRect(),i=r.left+a.scrollLeft-Ac(n,r),s=r.top+a.scrollTop;return{x:i,y:s}}function uA(n){let{elements:a,rect:r,offsetParent:i,strategy:s}=n;const c=s==="fixed",h=la(i),m=a?Rc(a.floating):!1;if(i===h||m&&c)return r;let p={scrollLeft:0,scrollTop:0},g=ea(1);const y=ea(0),x=ta(i);if((x||!x&&!c)&&((Gi(i)!=="body"||ps(h))&&(p=Mc(i)),ta(i))){const j=fr(i);g=ci(i),y.x=j.x+i.clientLeft,y.y=j.y+i.clientTop}const w=h&&!x&&!c?Uw(h,p):ea(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 cA(n){return Array.from(n.getClientRects())}function dA(n){const a=la(n),r=Mc(n),i=n.ownerDocument.body,s=un(a.scrollWidth,a.clientWidth,i.scrollWidth,i.clientWidth),c=un(a.scrollHeight,a.clientHeight,i.scrollHeight,i.clientHeight);let h=-r.scrollLeft+Ac(n);const m=-r.scrollTop;return Bn(i).direction==="rtl"&&(h+=un(a.clientWidth,i.clientWidth)-s),{width:s,height:c,x:h,y:m}}const Dx=25;function fA(n,a){const r=dn(n),i=la(n),s=r.visualViewport;let c=i.clientWidth,h=i.clientHeight,m=0,p=0;if(s){c=s.width,h=s.height;const y=Ym();(!y||y&&a==="fixed")&&(m=s.offsetLeft,p=s.offsetTop)}const g=Ac(i);if(g<=0){const y=i.ownerDocument,x=y.body,w=getComputedStyle(x),j=y.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,E=Math.abs(i.clientWidth-x.clientWidth-j);E<=Dx&&(c-=E)}else g<=Dx&&(c+=g);return{width:c,height:h,x:m,y:p}}const hA=new Set(["absolute","fixed"]);function mA(n,a){const r=fr(n,!0,a==="fixed"),i=r.top+n.clientTop,s=r.left+n.clientLeft,c=ta(n)?ci(n):ea(1),h=n.clientWidth*c.x,m=n.clientHeight*c.y,p=s*c.x,g=i*c.y;return{width:h,height:m,x:p,y:g}}function Ox(n,a,r){let i;if(a==="viewport")i=fA(n,r);else if(a==="document")i=dA(la(n));else if(Hn(a))i=mA(a,r);else{const s=Lw(n);i={x:a.x-s.x,y:a.y-s.y,width:a.width,height:a.height}}return dc(i)}function qw(n,a){const r=Rl(n);return r===a||!Hn(r)||Ti(r)?!1:Bn(r).position==="fixed"||qw(r,a)}function pA(n,a){const r=a.get(n);if(r)return r;let i=as(n,[],!1).filter(m=>Hn(m)&&Gi(m)!=="body"),s=null;const c=Bn(n).position==="fixed";let h=c?Rl(n):n;for(;Hn(h)&&!Ti(h);){const m=Bn(h),p=$m(h);!p&&m.position==="fixed"&&(s=null),(c?!p&&!s:!p&&m.position==="static"&&s&&hA.has(s.position)||ps(h)&&!p&&qw(n,h))?i=i.filter(g=>g!==h):s=m,h=Rl(h)}return a.set(n,i),i}function vA(n){let{element:a,boundary:r,rootBoundary:i,strategy:s}=n;const c=[...r==="clippingAncestors"?Rc(a)?[]:pA(a,this._c):[].concat(r),i],h=c[0],m=c.reduce((p,g)=>{const y=Ox(a,g,s);return p.top=un(y.top,p.top),p.right=Tl(y.right,p.right),p.bottom=Tl(y.bottom,p.bottom),p.left=un(y.left,p.left),p},Ox(a,h,s));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function gA(n){const{width:a,height:r}=zw(n);return{width:a,height:r}}function yA(n,a,r){const i=ta(a),s=la(a),c=r==="fixed",h=fr(n,!0,c,a);let m={scrollLeft:0,scrollTop:0};const p=ea(0);function g(){p.x=Ac(s)}if(i||!i&&!c)if((Gi(a)!=="body"||ps(s))&&(m=Mc(a)),i){const j=fr(a,!0,c,a);p.x=j.x+a.clientLeft,p.y=j.y+a.clientTop}else s&&g();c&&!i&&s&&g();const y=s&&!i&&!c?Uw(s,m):ea(0),x=h.left+m.scrollLeft-p.x-y.x,w=h.top+m.scrollTop-p.y-y.y;return{x,y:w,width:h.width,height:h.height}}function Ch(n){return Bn(n).position==="static"}function zx(n,a){if(!ta(n)||Bn(n).position==="fixed")return null;if(a)return a(n);let r=n.offsetParent;return la(n)===r&&(r=r.ownerDocument.body),r}function Hw(n,a){const r=dn(n);if(Rc(n))return r;if(!ta(n)){let s=Rl(n);for(;s&&!Ti(s);){if(Hn(s)&&!Ch(s))return s;s=Rl(s)}return r}let i=zx(n,a);for(;i&&eA(i)&&Ch(i);)i=zx(i,a);return i&&Ti(i)&&Ch(i)&&!$m(i)?r:i||rA(n)||r}const xA=async function(n){const a=this.getOffsetParent||Hw,r=this.getDimensions,i=await r(n.floating);return{reference:yA(n.reference,await a(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function bA(n){return Bn(n).direction==="rtl"}const wA={convertOffsetParentRelativeRectToViewportRelativeRect:uA,getDocumentElement:la,getClippingRect:vA,getOffsetParent:Hw,getElementRects:xA,getClientRects:cA,getDimensions:gA,getScale:ci,isElement:Hn,isRTL:bA};function Bw(n,a){return n.x===a.x&&n.y===a.y&&n.width===a.width&&n.height===a.height}function SA(n,a){let r=null,i;const s=la(n);function c(){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),c();const g=n.getBoundingClientRect(),{left:y,top:x,width:w,height:j}=g;if(m||a(),!w||!j)return;const E=$u(x),S=$u(s.clientWidth-(y+w)),C=$u(s.clientHeight-(x+j)),_=$u(y),T={rootMargin:-E+"px "+-S+"px "+-C+"px "+-_+"px",threshold:un(0,Tl(1,p))||1};let R=!0;function D(L){const K=L[0].intersectionRatio;if(K!==p){if(!R)return h();K?h(!1,K):i=setTimeout(()=>{h(!1,1e-7)},1e3)}K===1&&!Bw(g,n.getBoundingClientRect())&&h(),R=!1}try{r=new IntersectionObserver(D,{...T,root:s.ownerDocument})}catch{r=new IntersectionObserver(D,T)}r.observe(n)}return h(!0),c}function jA(n,a,r,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:p=!1}=i,g=Vm(n),y=s||c?[...g?as(g):[],...as(a)]:[];y.forEach(_=>{s&&_.addEventListener("scroll",r,{passive:!0}),c&&_.addEventListener("resize",r)});const x=g&&m?SA(g,r):null;let w=-1,j=null;h&&(j=new ResizeObserver(_=>{let[T]=_;T&&T.target===g&&j&&(j.unobserve(a),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var R;(R=j)==null||R.observe(a)})),r()}),g&&!p&&j.observe(g),j.observe(a));let E,S=p?fr(n):null;p&&C();function C(){const _=fr(n);S&&!Bw(S,_)&&r(),S=_,E=requestAnimationFrame(C)}return r(),()=>{var _;y.forEach(T=>{s&&T.removeEventListener("scroll",r),c&&T.removeEventListener("resize",r)}),x==null||x(),(_=j)==null||_.disconnect(),j=null,p&&cancelAnimationFrame(E)}}const EA=FM,NA=ZM,CA=VM,_A=JM,TA=KM,Lx=YM,RA=PM,MA=(n,a,r)=>{const i=new Map,s={platform:wA,...r},c={...s.platform,_c:i};return $M(n,a,{...s,platform:c})};var AA=typeof document<"u",kA=function(){},Iu=AA?v.useLayoutEffect:kA;function fc(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(!fc(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 c=s[i];if(!(c==="_owner"&&n.$$typeof)&&!fc(n[c],a[c]))return!1}return!0}return n!==n&&a!==a}function Qw(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Ux(n,a){const r=Qw(n);return Math.round(a*r)/r}function _h(n){const a=v.useRef(n);return Iu(()=>{a.current=n}),a}function DA(n){n===void 0&&(n={});const{placement:a="bottom",strategy:r="absolute",middleware:i=[],platform:s,elements:{reference:c,floating:h}={},transform:m=!0,whileElementsMounted:p,open:g}=n,[y,x]=v.useState({x:0,y:0,strategy:r,placement:a,middlewareData:{},isPositioned:!1}),[w,j]=v.useState(i);fc(w,i)||j(i);const[E,S]=v.useState(null),[C,_]=v.useState(null),T=v.useCallback(Y=>{Y!==K.current&&(K.current=Y,S(Y))},[]),R=v.useCallback(Y=>{Y!==H.current&&(H.current=Y,_(Y))},[]),D=c||E,L=h||C,K=v.useRef(null),H=v.useRef(null),q=v.useRef(y),$=p!=null,te=_h(p),ue=_h(s),ce=_h(g),W=v.useCallback(()=>{if(!K.current||!H.current)return;const Y={placement:a,strategy:r,middleware:w};ue.current&&(Y.platform=ue.current),MA(K.current,H.current,Y).then(X=>{const de={...X,isPositioned:ce.current!==!1};ie.current&&!fc(q.current,de)&&(q.current=de,fs.flushSync(()=>{x(de)}))})},[w,a,r,ue,ce]);Iu(()=>{g===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,x(Y=>({...Y,isPositioned:!1})))},[g]);const ie=v.useRef(!1);Iu(()=>(ie.current=!0,()=>{ie.current=!1}),[]),Iu(()=>{if(D&&(K.current=D),L&&(H.current=L),D&&L){if(te.current)return te.current(D,L,W);W()}},[D,L,W,te,$]);const re=v.useMemo(()=>({reference:K,floating:H,setReference:T,setFloating:R}),[T,R]),U=v.useMemo(()=>({reference:D,floating:L}),[D,L]),I=v.useMemo(()=>{const Y={position:r,left:0,top:0};if(!U.floating)return Y;const X=Ux(U.floating,y.x),de=Ux(U.floating,y.y);return m?{...Y,transform:"translate("+X+"px, "+de+"px)",...Qw(U.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:X,top:de}},[r,m,U.floating,y.x,y.y]);return v.useMemo(()=>({...y,update:W,refs:re,elements:U,floatingStyles:I}),[y,W,re,U,I])}const OA=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?Lx({element:i.current,padding:s}).fn(r):{}:i?Lx({element:i,padding:s}).fn(r):{}}}},zA=(n,a)=>({...EA(n),options:[n,a]}),LA=(n,a)=>({...NA(n),options:[n,a]}),UA=(n,a)=>({...RA(n),options:[n,a]}),qA=(n,a)=>({...CA(n),options:[n,a]}),HA=(n,a)=>({..._A(n),options:[n,a]}),BA=(n,a)=>({...TA(n),options:[n,a]}),QA=(n,a)=>({...OA(n),options:[n,a]});var GA="Arrow",Gw=v.forwardRef((n,a)=>{const{children:r,width:i=10,height:s=5,...c}=n;return u.jsx(oe.svg,{...c,ref:a,width:i,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});Gw.displayName=GA;var $A=Gw;function kc(n){const[a,r]=v.useState(void 0);return lt(()=>{if(n){r({width:n.offsetWidth,height:n.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const c=s[0];let h,m;if("borderBoxSize"in c){const p=c.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 $w="Popper",[Yw,$i]=gt($w),[qz,Vw]=Yw($w),Kw="PopperAnchor",Xw=v.forwardRef((n,a)=>{const{__scopePopper:r,virtualRef:i,...s}=n,c=Vw(Kw,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&&c.onAnchorChange(p.current)}),i?null:u.jsx(oe.div,{...s,ref:m})});Xw.displayName=Kw;var Km="PopperContent",[YA,VA]=Yw(Km),Fw=v.forwardRef((n,a)=>{var r,i,s,c,h,m;const{__scopePopper:p,side:g="bottom",sideOffset:y=0,align:x="center",alignOffset:w=0,arrowPadding:j=0,avoidCollisions:E=!0,collisionBoundary:S=[],collisionPadding:C=0,sticky:_="partial",hideWhenDetached:T=!1,updatePositionStrategy:R="optimized",onPlaced:D,...L}=n,K=Vw(Km,p),[H,q]=v.useState(null),$=we(a,Ot=>q(Ot)),[te,ue]=v.useState(null),ce=kc(te),W=(ce==null?void 0:ce.width)??0,ie=(ce==null?void 0:ce.height)??0,re=g+(x!=="center"?"-"+x:""),U=typeof C=="number"?C:{top:0,right:0,bottom:0,left:0,...C},I=Array.isArray(S)?S:[S],Y=I.length>0,X={padding:U,boundary:I.filter(XA),altBoundary:Y},{refs:de,floatingStyles:A,placement:F,isPositioned:ee,middlewareData:le}=DA({strategy:"fixed",placement:re,whileElementsMounted:(...Ot)=>jA(...Ot,{animationFrame:R==="always"}),elements:{reference:K.anchor},middleware:[zA({mainAxis:y+ie,alignmentAxis:w}),E&&LA({mainAxis:!0,crossAxis:!1,limiter:_==="partial"?UA():void 0,...X}),E&&qA({...X}),HA({...X,apply:({elements:Ot,rects:Pt,availableWidth:ia,availableHeight:oa})=>{const{width:Fc,height:xs}=Pt.reference,Ba=Ot.floating.style;Ba.setProperty("--radix-popper-available-width",`${ia}px`),Ba.setProperty("--radix-popper-available-height",`${oa}px`),Ba.setProperty("--radix-popper-anchor-width",`${Fc}px`),Ba.setProperty("--radix-popper-anchor-height",`${xs}px`)}}),te&&QA({element:te,padding:j}),FA({arrowWidth:W,arrowHeight:ie}),T&&BA({strategy:"referenceHidden",...X})]}),[ve,je]=Jw(F),ne=nt(D);lt(()=>{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,[He,Ve]=v.useState();return lt(()=>{H&&Ve(window.getComputedStyle(H).zIndex)},[H]),u.jsx("div",{ref:de.setFloating,"data-radix-popper-content-wrapper":"",style:{...A,transform:ee?A.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:He,"--radix-popper-transform-origin":[(c=le.transformOrigin)==null?void 0:c.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:u.jsx(YA,{scope:p,placedSide:ve,onArrowChange:ue,arrowX:Ee,arrowY:ye,shouldHideArrow:Ne,children:u.jsx(oe.div,{"data-side":ve,"data-align":je,...L,ref:$,style:{...L.style,animation:ee?void 0:"none"}})})})});Fw.displayName=Km;var Zw="PopperArrow",KA={top:"bottom",right:"left",bottom:"top",left:"right"},Pw=v.forwardRef(function(n,a){const{__scopePopper:r,...i}=n,s=VA(Zw,r),c=KA[s.placedSide];return u.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[c]: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:u.jsx($A,{...i,ref:a,style:{...i.style,display:"block"}})})});Pw.displayName=Zw;function XA(n){return n!==null}var FA=n=>({name:"transformOrigin",options:n,fn(a){var r,i,s;const{placement:c,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,[x,w]=Jw(c),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="",_="";return x==="bottom"?(C=p?j:`${E}px`,_=`${-y}px`):x==="top"?(C=p?j:`${E}px`,_=`${h.floating.height+y}px`):x==="right"?(C=`${-y}px`,_=p?j:`${S}px`):x==="left"&&(C=`${h.floating.width+y}px`,_=p?j:`${S}px`),{data:{x:C,y:_}}}});function Jw(n){const[a,r="center"]=n.split("-");return[a,r]}var Xm=Xw,Fm=Fw,Zm=Pw,ZA="Portal",PA=v.forwardRef((n,a)=>{var r;const{container:i,...s}=n,[c,h]=v.useState(!1);lt(()=>h(!0),[]);const m=i||c&&((r=globalThis==null?void 0:globalThis.document)==null?void 0:r.body);return m?Qb.createPortal(u.jsx(oe.div,{...s,ref:a}),m):null});PA.displayName=ZA;var Th="rovingFocusGroup.onEntryFocus",JA={bubbles:!1,cancelable:!0},vs="RovingFocusGroup",[om,Iw,IA]=Hi(vs),[WA,Yi]=gt(vs,[IA]),[ek,tk]=WA(vs),Ww=v.forwardRef((n,a)=>u.jsx(om.Provider,{scope:n.__scopeRovingFocusGroup,children:u.jsx(om.Slot,{scope:n.__scopeRovingFocusGroup,children:u.jsx(nk,{...n,ref:a})})}));Ww.displayName=vs;var nk=v.forwardRef((n,a)=>{const{__scopeRovingFocusGroup:r,orientation:i,loop:s=!1,dir:c,currentTabStopId:h,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:p,onEntryFocus:g,preventScrollOnEntryFocus:y=!1,...x}=n,w=v.useRef(null),j=we(a,w),E=qi(c),[S,C]=aa({prop:h,defaultProp:m??null,onChange:p,caller:vs}),[_,T]=v.useState(!1),R=nt(g),D=Iw(r),L=v.useRef(!1),[K,H]=v.useState(0);return v.useEffect(()=>{const q=w.current;if(q)return q.addEventListener(Th,R),()=>q.removeEventListener(Th,R)},[R]),u.jsx(ek,{scope:r,orientation:i,dir:E,loop:s,currentTabStopId:S,onItemFocus:v.useCallback(q=>C(q),[C]),onItemShiftTab:v.useCallback(()=>T(!0),[]),onFocusableItemAdd:v.useCallback(()=>H(q=>q+1),[]),onFocusableItemRemove:v.useCallback(()=>H(q=>q-1),[]),children:u.jsx(oe.div,{tabIndex:_||K===0?-1:0,"data-orientation":i,...x,ref:j,style:{outline:"none",...n.style},onMouseDown:ae(n.onMouseDown,()=>{L.current=!0}),onFocus:ae(n.onFocus,q=>{const $=!L.current;if(q.target===q.currentTarget&&$&&!_){const te=new CustomEvent(Th,JA);if(q.currentTarget.dispatchEvent(te),!te.defaultPrevented){const ue=D().filter(re=>re.focusable),ce=ue.find(re=>re.active),W=ue.find(re=>re.id===S),ie=[ce,W,...ue].filter(Boolean).map(re=>re.ref.current);n1(ie,y)}}L.current=!1}),onBlur:ae(n.onBlur,()=>T(!1))})})}),e1="RovingFocusGroupItem",t1=v.forwardRef((n,a)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:s=!1,tabStopId:c,children:h,...m}=n,p=Al(),g=c||p,y=tk(e1,r),x=y.currentTabStopId===g,w=Iw(r),{onFocusableItemAdd:j,onFocusableItemRemove:E,currentTabStopId:S}=y;return v.useEffect(()=>{if(i)return j(),()=>E()},[i,j,E]),u.jsx(om.ItemSlot,{scope:r,id:g,focusable:i,active:s,children:u.jsx(oe.span,{tabIndex:x?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 _=rk(C,y.orientation,y.dir);if(_!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let T=w().filter(R=>R.focusable).map(R=>R.ref.current);if(_==="last")T.reverse();else if(_==="prev"||_==="next"){_==="prev"&&T.reverse();const R=T.indexOf(C.currentTarget);T=y.loop?ik(T,R+1):T.slice(R+1)}setTimeout(()=>n1(T))}}),children:typeof h=="function"?h({isCurrentTabStop:x,hasTabStop:S!=null}):h})})});t1.displayName=e1;var ak={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function lk(n,a){return a!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function rk(n,a,r){const i=lk(n.key,r);if(!(a==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(a==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return ak[i]}function n1(n,a=!1){const r=document.activeElement;for(const i of n)if(i===r||(i.focus({preventScroll:a}),document.activeElement!==r))return}function ik(n,a){return n.map((r,i)=>n[(a+i)%n.length])}var Pm=Ww,Jm=t1,ok=function(n){if(typeof document>"u")return null;var a=Array.isArray(n)?n[0]:n;return a.ownerDocument.body},ri=new WeakMap,Yu=new WeakMap,Vu={},Rh=0,a1=function(n){return n&&(n.host||a1(n.parentNode))},sk=function(n,a){return a.map(function(r){if(n.contains(r))return r;var i=a1(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})},uk=function(n,a,r,i){var s=sk(a,Array.isArray(n)?n:[n]);Vu[r]||(Vu[r]=new WeakMap);var c=Vu[r],h=[],m=new Set,p=new Set(s),g=function(x){!x||m.has(x)||(m.add(x),g(x.parentNode))};s.forEach(g);var y=function(x){!x||p.has(x)||Array.prototype.forEach.call(x.children,function(w){if(m.has(w))y(w);else try{var j=w.getAttribute(i),E=j!==null&&j!=="false",S=(ri.get(w)||0)+1,C=(c.get(w)||0)+1;ri.set(w,S),c.set(w,C),h.push(w),S===1&&E&&Yu.set(w,!0),C===1&&w.setAttribute(r,"true"),E||w.setAttribute(i,"true")}catch(_){console.error("aria-hidden: cannot operate on ",w,_)}})};return y(a),m.clear(),Rh++,function(){h.forEach(function(x){var w=ri.get(x)-1,j=c.get(x)-1;ri.set(x,w),c.set(x,j),w||(Yu.has(x)||x.removeAttribute(i),Yu.delete(x)),j||x.removeAttribute(r)}),Rh--,Rh||(ri=new WeakMap,ri=new WeakMap,Yu=new WeakMap,Vu={})}},Im=function(n,a,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),s=ok(n);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),uk(i,s,r,"aria-hidden")):function(){return null}},In=function(){return In=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},In.apply(this,arguments)};function l1(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 ck(n,a,r){for(var i=0,s=a.length,c;i<s;i++)(c||!(i in a))&&(c||(c=Array.prototype.slice.call(a,0,i)),c[i]=a[i]);return n.concat(c||Array.prototype.slice.call(a))}var Wu="right-scroll-bar-position",ec="width-before-scroll-bar",dk="with-scroll-bars-hidden",fk="--removed-body-scroll-bar-size";function Mh(n,a){return typeof n=="function"?n(a):n&&(n.current=a),n}function hk(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 mk=typeof window<"u"?v.useLayoutEffect:v.useEffect,qx=new WeakMap;function pk(n,a){var r=hk(null,function(i){return n.forEach(function(s){return Mh(s,i)})});return mk(function(){var i=qx.get(r);if(i){var s=new Set(i),c=new Set(n),h=r.current;s.forEach(function(m){c.has(m)||Mh(m,null)}),c.forEach(function(m){s.has(m)||Mh(m,h)})}qx.set(r,n)},[n]),r}function vk(n){return n}function gk(n,a){a===void 0&&(a=vk);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(c){var h=a(c,i);return r.push(h),function(){r=r.filter(function(m){return m!==h})}},assignSyncMedium:function(c){for(i=!0;r.length;){var h=r;r=[],h.forEach(c)}r={push:function(m){return c(m)},filter:function(){return r}}},assignMedium:function(c){i=!0;var h=[];if(r.length){var m=r;r=[],m.forEach(c),h=r}var p=function(){var y=h;h=[],y.forEach(c)},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 yk(n){n===void 0&&(n={});var a=gk(null);return a.options=In({async:!0,ssr:!1},n),a}var r1=function(n){var a=n.sideCar,r=l1(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,In({},r))};r1.isSideCarExport=!0;function xk(n,a){return n.useMedium(a),r1}var i1=yk(),Ah=function(){},Dc=v.forwardRef(function(n,a){var r=v.useRef(null),i=v.useState({onScrollCapture:Ah,onWheelCapture:Ah,onTouchMoveCapture:Ah}),s=i[0],c=i[1],h=n.forwardProps,m=n.children,p=n.className,g=n.removeScrollBar,y=n.enabled,x=n.shards,w=n.sideCar,j=n.noRelative,E=n.noIsolation,S=n.inert,C=n.allowPinchZoom,_=n.as,T=_===void 0?"div":_,R=n.gapMode,D=l1(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=w,K=pk([r,a]),H=In(In({},D),s);return v.createElement(v.Fragment,null,y&&v.createElement(L,{sideCar:i1,removeScrollBar:g,shards:x,noRelative:j,noIsolation:E,inert:S,setCallbacks:c,allowPinchZoom:!!C,lockRef:r,gapMode:R}),h?v.cloneElement(v.Children.only(m),In(In({},H),{ref:K})):v.createElement(T,In({},H,{className:p,ref:K}),m))});Dc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Dc.classNames={fullWidth:ec,zeroRight:Wu};var bk=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function wk(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var a=bk();return a&&n.setAttribute("nonce",a),n}function Sk(n,a){n.styleSheet?n.styleSheet.cssText=a:n.appendChild(document.createTextNode(a))}function jk(n){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(n)}var Ek=function(){var n=0,a=null;return{add:function(r){n==0&&(a=wk())&&(Sk(a,r),jk(a)),n++},remove:function(){n--,!n&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},Nk=function(){var n=Ek();return function(a,r){v.useEffect(function(){return n.add(a),function(){n.remove()}},[a&&r])}},o1=function(){var n=Nk(),a=function(r){var i=r.styles,s=r.dynamic;return n(i,s),null};return a},Ck={left:0,top:0,right:0,gap:0},kh=function(n){return parseInt(n||"",10)||0},_k=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[kh(r),kh(i),kh(s)]},Tk=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return Ck;var a=_k(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])}},Rk=o1(),di="data-scroll-locked",Mk=function(n,a,r,i){var s=n.left,c=n.top,h=n.right,m=n.gap;return r===void 0&&(r="margin"),`
297
+ .`.concat(dk,` {
298
+ overflow: hidden `).concat(i,`;
299
+ padding-right: `).concat(m,"px ").concat(i,`;
300
+ }
301
+ body[`).concat(di,`] {
302
+ overflow: hidden `).concat(i,`;
303
+ overscroll-behavior: contain;
304
+ `).concat([a&&"position: relative ".concat(i,";"),r==="margin"&&`
305
+ padding-left: `.concat(s,`px;
306
+ padding-top: `).concat(c,`px;
307
+ padding-right: `).concat(h,`px;
308
+ margin-left:0;
309
+ margin-top:0;
310
+ margin-right: `).concat(m,"px ").concat(i,`;
311
+ `),r==="padding"&&"padding-right: ".concat(m,"px ").concat(i,";")].filter(Boolean).join(""),`
312
+ }
313
+
314
+ .`).concat(Wu,` {
315
+ right: `).concat(m,"px ").concat(i,`;
316
+ }
317
+
318
+ .`).concat(ec,` {
319
+ margin-right: `).concat(m,"px ").concat(i,`;
320
+ }
321
+
322
+ .`).concat(Wu," .").concat(Wu,` {
323
+ right: 0 `).concat(i,`;
324
+ }
325
+
326
+ .`).concat(ec," .").concat(ec,` {
327
+ margin-right: 0 `).concat(i,`;
328
+ }
329
+
330
+ body[`).concat(di,`] {
331
+ `).concat(fk,": ").concat(m,`px;
332
+ }
333
+ `)},Hx=function(){var n=parseInt(document.body.getAttribute(di)||"0",10);return isFinite(n)?n:0},Ak=function(){v.useEffect(function(){return document.body.setAttribute(di,(Hx()+1).toString()),function(){var n=Hx()-1;n<=0?document.body.removeAttribute(di):document.body.setAttribute(di,n.toString())}},[])},kk=function(n){var a=n.noRelative,r=n.noImportant,i=n.gapMode,s=i===void 0?"margin":i;Ak();var c=v.useMemo(function(){return Tk(s)},[s]);return v.createElement(Rk,{styles:Mk(c,!a,s,r?"":"!important")})},sm=!1;if(typeof window<"u")try{var Ku=Object.defineProperty({},"passive",{get:function(){return sm=!0,!0}});window.addEventListener("test",Ku,Ku),window.removeEventListener("test",Ku,Ku)}catch{sm=!1}var ii=sm?{passive:!1}:!1,Dk=function(n){return n.tagName==="TEXTAREA"},s1=function(n,a){if(!(n instanceof Element))return!1;var r=window.getComputedStyle(n);return r[a]!=="hidden"&&!(r.overflowY===r.overflowX&&!Dk(n)&&r[a]==="visible")},Ok=function(n){return s1(n,"overflowY")},zk=function(n){return s1(n,"overflowX")},Bx=function(n,a){var r=a.ownerDocument,i=a;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=u1(n,i);if(s){var c=c1(n,i),h=c[1],m=c[2];if(h>m)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},Lk=function(n){var a=n.scrollTop,r=n.scrollHeight,i=n.clientHeight;return[a,r,i]},Uk=function(n){var a=n.scrollLeft,r=n.scrollWidth,i=n.clientWidth;return[a,r,i]},u1=function(n,a){return n==="v"?Ok(a):zk(a)},c1=function(n,a){return n==="v"?Lk(a):Uk(a)},qk=function(n,a){return n==="h"&&a==="rtl"?-1:1},Hk=function(n,a,r,i,s){var c=qk(n,window.getComputedStyle(a).direction),h=c*i,m=r.target,p=a.contains(m),g=!1,y=h>0,x=0,w=0;do{if(!m)break;var j=c1(n,m),E=j[0],S=j[1],C=j[2],_=S-C-c*E;(E||_)&&u1(n,m)&&(x+=_,w+=E);var T=m.parentNode;m=T&&T.nodeType===Node.DOCUMENT_FRAGMENT_NODE?T.host:T}while(!p&&m!==document.body||p&&(a.contains(m)||a===m));return(y&&Math.abs(x)<1||!y&&Math.abs(w)<1)&&(g=!0),g},Xu=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Qx=function(n){return[n.deltaX,n.deltaY]},Gx=function(n){return n&&"current"in n?n.current:n},Bk=function(n,a){return n[0]===a[0]&&n[1]===a[1]},Qk=function(n){return`
334
+ .block-interactivity-`.concat(n,` {pointer-events: none;}
335
+ .allow-interactivity-`).concat(n,` {pointer-events: all;}
336
+ `)},Gk=0,oi=[];function $k(n){var a=v.useRef([]),r=v.useRef([0,0]),i=v.useRef(),s=v.useState(Gk++)[0],c=v.useState(o1)[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=ck([n.lockRef.current],(n.shards||[]).map(Gx)).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 _=Xu(S),T=r.current,R="deltaX"in S?S.deltaX:T[0]-_[0],D="deltaY"in S?S.deltaY:T[1]-_[1],L,K=S.target,H=Math.abs(R)>Math.abs(D)?"h":"v";if("touches"in S&&H==="h"&&K.type==="range")return!1;var q=Bx(H,K);if(!q)return!0;if(q?L=H:(L=H==="v"?"h":"v",q=Bx(H,K)),!q)return!1;if(!i.current&&"changedTouches"in S&&(R||D)&&(i.current=L),!L)return!0;var $=i.current||L;return Hk($,C,S,$==="h"?R:D)},[]),p=v.useCallback(function(S){var C=S;if(!(!oi.length||oi[oi.length-1]!==c)){var _="deltaY"in C?Qx(C):Xu(C),T=a.current.filter(function(L){return L.name===C.type&&(L.target===C.target||C.target===L.shadowParent)&&Bk(L.delta,_)})[0];if(T&&T.should){C.cancelable&&C.preventDefault();return}if(!T){var R=(h.current.shards||[]).map(Gx).filter(Boolean).filter(function(L){return L.contains(C.target)}),D=R.length>0?m(C,R[0]):!h.current.noIsolation;D&&C.cancelable&&C.preventDefault()}}},[]),g=v.useCallback(function(S,C,_,T){var R={name:S,delta:C,target:_,should:T,shadowParent:Yk(_)};a.current.push(R),setTimeout(function(){a.current=a.current.filter(function(D){return D!==R})},1)},[]),y=v.useCallback(function(S){r.current=Xu(S),i.current=void 0},[]),x=v.useCallback(function(S){g(S.type,Qx(S),S.target,m(S,n.lockRef.current))},[]),w=v.useCallback(function(S){g(S.type,Xu(S),S.target,m(S,n.lockRef.current))},[]);v.useEffect(function(){return oi.push(c),n.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:w}),document.addEventListener("wheel",p,ii),document.addEventListener("touchmove",p,ii),document.addEventListener("touchstart",y,ii),function(){oi=oi.filter(function(S){return S!==c}),document.removeEventListener("wheel",p,ii),document.removeEventListener("touchmove",p,ii),document.removeEventListener("touchstart",y,ii)}},[]);var j=n.removeScrollBar,E=n.inert;return v.createElement(v.Fragment,null,E?v.createElement(c,{styles:Qk(s)}):null,j?v.createElement(kk,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function Yk(n){for(var a=null;n!==null;)n instanceof ShadowRoot&&(a=n.host,n=n.host),n=n.parentNode;return a}const Vk=xk(i1,$k);var Oc=v.forwardRef(function(n,a){return v.createElement(Dc,In({},n,{ref:a,sideCar:Vk}))});Oc.classNames=Dc.classNames;var um=["Enter"," "],Kk=["ArrowDown","PageUp","Home"],d1=["ArrowUp","PageDown","End"],Xk=[...Kk,...d1],Fk={ltr:[...um,"ArrowRight"],rtl:[...um,"ArrowLeft"]},Zk={ltr:["ArrowLeft"],rtl:["ArrowRight"]},zc="Menu",[ls,Pk,Jk]=Hi(zc),[gr,f1]=gt(zc,[Jk,$i,Yi]),Wm=$i(),h1=Yi(),[Hz,Vi]=gr(zc),[Bz,gs]=gr(zc),Ik="MenuAnchor",ep=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n,s=Wm(r);return u.jsx(Xm,{...s,...i,ref:a})});ep.displayName=Ik;var Wk="MenuPortal",[Qz,m1]=gr(Wk,{forceMount:void 0}),Nn="MenuContent",[e4,tp]=gr(Nn),p1=v.forwardRef((n,a)=>{const r=m1(Nn,n.__scopeMenu),{forceMount:i=r.forceMount,...s}=n,c=Vi(Nn,n.__scopeMenu),h=gs(Nn,n.__scopeMenu);return u.jsx(ls.Provider,{scope:n.__scopeMenu,children:u.jsx(jt,{present:i||c.open,children:u.jsx(ls.Slot,{scope:n.__scopeMenu,children:h.modal?u.jsx(t4,{...s,ref:a}):u.jsx(n4,{...s,ref:a})})})})}),t4=v.forwardRef((n,a)=>{const r=Vi(Nn,n.__scopeMenu),i=v.useRef(null),s=we(a,i);return v.useEffect(()=>{const c=i.current;if(c)return Im(c)},[]),u.jsx(np,{...n,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:ae(n.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),n4=v.forwardRef((n,a)=>{const r=Vi(Nn,n.__scopeMenu);return u.jsx(np,{...n,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),a4=dr("MenuContent.ScrollLock"),np=v.forwardRef((n,a)=>{const{__scopeMenu:r,loop:i=!1,trapFocus:s,onOpenAutoFocus:c,onCloseAutoFocus:h,disableOutsidePointerEvents:m,onEntryFocus:p,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:x,onInteractOutside:w,onDismiss:j,disableOutsideScroll:E,...S}=n,C=Vi(Nn,r),_=gs(Nn,r),T=Wm(r),R=h1(r),D=Pk(r),[L,K]=v.useState(null),H=v.useRef(null),q=we(a,H,C.onContentChange),$=v.useRef(0),te=v.useRef(""),ue=v.useRef(0),ce=v.useRef(null),W=v.useRef("right"),ie=v.useRef(0),re=E?Oc:v.Fragment,U=E?{as:a4,allowPinchZoom:!0}:void 0,I=X=>{var de,A;const F=te.current+X,ee=D().filter(ye=>!ye.disabled),le=document.activeElement,ve=(de=ee.find(ye=>ye.ref.current===le))==null?void 0:de.textValue,je=ee.map(ye=>ye.textValue),ne=p4(je,F,ve),Ee=(A=ee.find(ye=>ye.textValue===ne))==null?void 0:A.ref.current;(function ye(Ne){te.current=Ne,window.clearTimeout($.current),Ne!==""&&($.current=window.setTimeout(()=>ye(""),1e3))})(F),Ee&&setTimeout(()=>Ee.focus())};v.useEffect(()=>()=>window.clearTimeout($.current),[]),Hm();const Y=v.useCallback(X=>{var de,A;return W.current===((de=ce.current)==null?void 0:de.side)&&g4(X,(A=ce.current)==null?void 0:A.area)},[]);return u.jsx(e4,{scope:r,searchRef:te,onItemEnter:v.useCallback(X=>{Y(X)&&X.preventDefault()},[Y]),onItemLeave:v.useCallback(X=>{var de;Y(X)||((de=H.current)==null||de.focus(),K(null))},[Y]),onTriggerLeave:v.useCallback(X=>{Y(X)&&X.preventDefault()},[Y]),pointerGraceTimerRef:ue,onPointerGraceIntentChange:v.useCallback(X=>{ce.current=X},[]),children:u.jsx(re,{...U,children:u.jsx(_c,{asChild:!0,trapped:s,onMountAutoFocus:ae(c,X=>{var de;X.preventDefault(),(de=H.current)==null||de.focus({preventScroll:!0})}),onUnmountAutoFocus:h,children:u.jsx(Bi,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:x,onInteractOutside:w,onDismiss:j,children:u.jsx(Pm,{asChild:!0,...R,dir:_.dir,orientation:"vertical",loop:i,currentTabStopId:L,onCurrentTabStopIdChange:K,onEntryFocus:ae(p,X=>{_.isUsingKeyboardRef.current||X.preventDefault()}),preventScrollOnEntryFocus:!0,children:u.jsx(Fm,{role:"menu","aria-orientation":"vertical","data-state":A1(C.open),"data-radix-menu-content":"",dir:_.dir,...T,...S,ref:q,style:{outline:"none",...S.style},onKeyDown:ae(S.onKeyDown,X=>{const de=X.target.closest("[data-radix-menu-content]")===X.currentTarget,A=X.ctrlKey||X.altKey||X.metaKey,F=X.key.length===1;de&&(X.key==="Tab"&&X.preventDefault(),!A&&F&&I(X.key));const ee=H.current;if(X.target!==ee||!Xk.includes(X.key))return;X.preventDefault();const le=D().filter(ve=>!ve.disabled).map(ve=>ve.ref.current);d1.includes(X.key)&&le.reverse(),h4(le)}),onBlur:ae(n.onBlur,X=>{X.currentTarget.contains(X.target)||(window.clearTimeout($.current),te.current="")}),onPointerMove:ae(n.onPointerMove,rs(X=>{const de=X.target,A=ie.current!==X.clientX;if(X.currentTarget.contains(de)&&A){const F=X.clientX>ie.current?"right":"left";W.current=F,ie.current=X.clientX}}))})})})})})})});p1.displayName=Nn;var l4="MenuGroup",ap=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n;return u.jsx(oe.div,{role:"group",...i,ref:a})});ap.displayName=l4;var r4="MenuLabel",v1=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n;return u.jsx(oe.div,{...i,ref:a})});v1.displayName=r4;var hc="MenuItem",$x="menu.itemSelect",Lc=v.forwardRef((n,a)=>{const{disabled:r=!1,onSelect:i,...s}=n,c=v.useRef(null),h=gs(hc,n.__scopeMenu),m=tp(hc,n.__scopeMenu),p=we(a,c),g=v.useRef(!1),y=()=>{const x=c.current;if(!r&&x){const w=new CustomEvent($x,{bubbles:!0,cancelable:!0});x.addEventListener($x,j=>i==null?void 0:i(j),{once:!0}),ic(x,w),w.defaultPrevented?g.current=!1:h.onClose()}};return u.jsx(g1,{...s,ref:p,disabled:r,onClick:ae(n.onClick,y),onPointerDown:x=>{var w;(w=n.onPointerDown)==null||w.call(n,x),g.current=!0},onPointerUp:ae(n.onPointerUp,x=>{var w;g.current||(w=x.currentTarget)==null||w.click()}),onKeyDown:ae(n.onKeyDown,x=>{const w=m.searchRef.current!=="";r||w&&x.key===" "||um.includes(x.key)&&(x.currentTarget.click(),x.preventDefault())})})});Lc.displayName=hc;var g1=v.forwardRef((n,a)=>{const{__scopeMenu:r,disabled:i=!1,textValue:s,...c}=n,h=tp(hc,r),m=h1(r),p=v.useRef(null),g=we(a,p),[y,x]=v.useState(!1),[w,j]=v.useState("");return v.useEffect(()=>{const E=p.current;E&&j((E.textContent??"").trim())},[c.children]),u.jsx(ls.ItemSlot,{scope:r,disabled:i,textValue:s??w,children:u.jsx(Jm,{asChild:!0,...m,focusable:!i,children:u.jsx(oe.div,{role:"menuitem","data-highlighted":y?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...c,ref:g,onPointerMove:ae(n.onPointerMove,rs(E=>{i?h.onItemLeave(E):(h.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ae(n.onPointerLeave,rs(E=>h.onItemLeave(E))),onFocus:ae(n.onFocus,()=>x(!0)),onBlur:ae(n.onBlur,()=>x(!1))})})})}),i4="MenuCheckboxItem",y1=v.forwardRef((n,a)=>{const{checked:r=!1,onCheckedChange:i,...s}=n;return u.jsx(j1,{scope:n.__scopeMenu,checked:r,children:u.jsx(Lc,{role:"menuitemcheckbox","aria-checked":mc(r)?"mixed":r,...s,ref:a,"data-state":rp(r),onSelect:ae(s.onSelect,()=>i==null?void 0:i(mc(r)?!0:!r),{checkForDefaultPrevented:!1})})})});y1.displayName=i4;var x1="MenuRadioGroup",[o4,s4]=gr(x1,{value:void 0,onValueChange:()=>{}}),b1=v.forwardRef((n,a)=>{const{value:r,onValueChange:i,...s}=n,c=nt(i);return u.jsx(o4,{scope:n.__scopeMenu,value:r,onValueChange:c,children:u.jsx(ap,{...s,ref:a})})});b1.displayName=x1;var w1="MenuRadioItem",S1=v.forwardRef((n,a)=>{const{value:r,...i}=n,s=s4(w1,n.__scopeMenu),c=r===s.value;return u.jsx(j1,{scope:n.__scopeMenu,checked:c,children:u.jsx(Lc,{role:"menuitemradio","aria-checked":c,...i,ref:a,"data-state":rp(c),onSelect:ae(i.onSelect,()=>{var h;return(h=s.onValueChange)==null?void 0:h.call(s,r)},{checkForDefaultPrevented:!1})})})});S1.displayName=w1;var lp="MenuItemIndicator",[j1,u4]=gr(lp,{checked:!1}),E1=v.forwardRef((n,a)=>{const{__scopeMenu:r,forceMount:i,...s}=n,c=u4(lp,r);return u.jsx(jt,{present:i||mc(c.checked)||c.checked===!0,children:u.jsx(oe.span,{...s,ref:a,"data-state":rp(c.checked)})})});E1.displayName=lp;var c4="MenuSeparator",N1=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n;return u.jsx(oe.div,{role:"separator","aria-orientation":"horizontal",...i,ref:a})});N1.displayName=c4;var d4="MenuArrow",C1=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n,s=Wm(r);return u.jsx(Zm,{...s,...i,ref:a})});C1.displayName=d4;var f4="MenuSub",[Gz,_1]=gr(f4),Fo="MenuSubTrigger",T1=v.forwardRef((n,a)=>{const r=Vi(Fo,n.__scopeMenu),i=gs(Fo,n.__scopeMenu),s=_1(Fo,n.__scopeMenu),c=tp(Fo,n.__scopeMenu),h=v.useRef(null),{pointerGraceTimerRef:m,onPointerGraceIntentChange:p}=c,g={__scopeMenu:n.__scopeMenu},y=v.useCallback(()=>{h.current&&window.clearTimeout(h.current),h.current=null},[]);return v.useEffect(()=>y,[y]),v.useEffect(()=>{const x=m.current;return()=>{window.clearTimeout(x),p(null)}},[m,p]),u.jsx(ep,{asChild:!0,...g,children:u.jsx(g1,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":s.contentId,"data-state":A1(r.open),...n,ref:ms(a,s.onTriggerChange),onClick:x=>{var w;(w=n.onClick)==null||w.call(n,x),!(n.disabled||x.defaultPrevented)&&(x.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:ae(n.onPointerMove,rs(x=>{c.onItemEnter(x),!x.defaultPrevented&&!n.disabled&&!r.open&&!h.current&&(c.onPointerGraceIntentChange(null),h.current=window.setTimeout(()=>{r.onOpenChange(!0),y()},100))})),onPointerLeave:ae(n.onPointerLeave,rs(x=>{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",_=C?-5:5,T=E[C?"left":"right"],R=E[C?"right":"left"];c.onPointerGraceIntentChange({area:[{x:x.clientX+_,y:x.clientY},{x:T,y:E.top},{x:R,y:E.top},{x:R,y:E.bottom},{x:T,y:E.bottom}],side:S}),window.clearTimeout(m.current),m.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(x),x.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:ae(n.onKeyDown,x=>{var w;const j=c.searchRef.current!=="";n.disabled||j&&x.key===" "||Fk[i.dir].includes(x.key)&&(r.onOpenChange(!0),(w=r.content)==null||w.focus(),x.preventDefault())})})})});T1.displayName=Fo;var R1="MenuSubContent",M1=v.forwardRef((n,a)=>{const r=m1(Nn,n.__scopeMenu),{forceMount:i=r.forceMount,...s}=n,c=Vi(Nn,n.__scopeMenu),h=gs(Nn,n.__scopeMenu),m=_1(R1,n.__scopeMenu),p=v.useRef(null),g=we(a,p);return u.jsx(ls.Provider,{scope:n.__scopeMenu,children:u.jsx(jt,{present:i||c.open,children:u.jsx(ls.Slot,{scope:n.__scopeMenu,children:u.jsx(np,{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 x;h.isUsingKeyboardRef.current&&((x=p.current)==null||x.focus()),y.preventDefault()},onCloseAutoFocus:y=>y.preventDefault(),onFocusOutside:ae(n.onFocusOutside,y=>{y.target!==m.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:ae(n.onEscapeKeyDown,y=>{h.onClose(),y.preventDefault()}),onKeyDown:ae(n.onKeyDown,y=>{var x;const w=y.currentTarget.contains(y.target),j=Zk[h.dir].includes(y.key);w&&j&&(c.onOpenChange(!1),(x=m.trigger)==null||x.focus(),y.preventDefault())})})})})})});M1.displayName=R1;function A1(n){return n?"open":"closed"}function mc(n){return n==="indeterminate"}function rp(n){return mc(n)?"indeterminate":n?"checked":"unchecked"}function h4(n){const a=document.activeElement;for(const r of n)if(r===a||(r.focus(),document.activeElement!==a))return}function m4(n,a){return n.map((r,i)=>n[(a+i)%n.length])}function p4(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 c=m4(n,Math.max(s,0));i.length===1&&(c=c.filter(m=>m!==r));const h=c.find(m=>m.toLowerCase().startsWith(i.toLowerCase()));return h!==r?h:void 0}function v4(n,a){const{x:r,y:i}=n;let s=!1;for(let c=0,h=a.length-1;c<a.length;h=c++){const m=a[c],p=a[h],g=m.x,y=m.y,x=p.x,w=p.y;y>i!=w>i&&r<(x-g)*(i-y)/(w-y)+g&&(s=!s)}return s}function g4(n,a){if(!a)return!1;const r={x:n.clientX,y:n.clientY};return v4(r,a)}function rs(n){return a=>a.pointerType==="mouse"?n(a):void 0}var y4=ep,x4=p1,b4=ap,w4=v1,S4=Lc,j4=y1,E4=b1,N4=S1,C4=E1,_4=N1,T4=C1,R4=T1,M4=M1,k1="DropdownMenu",[A4,$z]=gt(k1,[f1]),fn=f1(),[Yz,D1]=A4(k1),O1="DropdownMenuTrigger",k4=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,disabled:i=!1,...s}=n,c=D1(O1,r),h=fn(r);return u.jsx(y4,{asChild:!0,...h,children:u.jsx(oe.button,{type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...s,ref:ms(a,c.triggerRef),onPointerDown:ae(n.onPointerDown,m=>{!i&&m.button===0&&m.ctrlKey===!1&&(c.onOpenToggle(),c.open||m.preventDefault())}),onKeyDown:ae(n.onKeyDown,m=>{i||(["Enter"," "].includes(m.key)&&c.onOpenToggle(),m.key==="ArrowDown"&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(m.key)&&m.preventDefault())})})})});k4.displayName=O1;var z1="DropdownMenuContent",L1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=D1(z1,r),c=fn(r),h=v.useRef(!1);return u.jsx(x4,{id:s.contentId,"aria-labelledby":s.triggerId,...c,...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)"}})});L1.displayName=z1;var D4="DropdownMenuGroup",O4=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=fn(r);return u.jsx(b4,{...s,...i,ref:a})});O4.displayName=D4;var z4="DropdownMenuLabel",U1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=fn(r);return u.jsx(w4,{...s,...i,ref:a})});U1.displayName=z4;var L4="DropdownMenuItem",q1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=fn(r);return u.jsx(S4,{...s,...i,ref:a})});q1.displayName=L4;var U4="DropdownMenuCheckboxItem",H1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=fn(r);return u.jsx(j4,{...s,...i,ref:a})});H1.displayName=U4;var q4="DropdownMenuRadioGroup",H4=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=fn(r);return u.jsx(E4,{...s,...i,ref:a})});H4.displayName=q4;var B4="DropdownMenuRadioItem",B1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=fn(r);return u.jsx(N4,{...s,...i,ref:a})});B1.displayName=B4;var Q4="DropdownMenuItemIndicator",G4=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=fn(r);return u.jsx(C4,{...s,...i,ref:a})});G4.displayName=Q4;var $4="DropdownMenuSeparator",Q1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=fn(r);return u.jsx(_4,{...s,...i,ref:a})});Q1.displayName=$4;var Y4="DropdownMenuArrow",V4=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=fn(r);return u.jsx(T4,{...s,...i,ref:a})});V4.displayName=Y4;var K4="DropdownMenuSubTrigger",G1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=fn(r);return u.jsx(R4,{...s,...i,ref:a})});G1.displayName=K4;var X4="DropdownMenuSubContent",$1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=fn(r);return u.jsx(M4,{...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)"}})});$1.displayName=X4;var F4=L1,Z4=U1,P4=q1,J4=H1,I4=B1,W4=Q1,e3=G1,t3=$1;const Y1=pe("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)]");pe("flex items-center justify-between gap-2","px-3 py-2 rounded-lg text-sm","transition-colors duration-200",Y1,"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");pe("z-50 min-w-[8rem] p-1 rounded-xl",Y1,"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");pe("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");pe("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");pe("px-3 py-2 text-xs font-medium","dark:text-gray-500 text-gray-400","select-none");pe("h-px my-1 -mx-1","dark:bg-white/[0.08] bg-gray-200");var V1="Dialog",[K1,X1]=gt(V1),[Vz,ra]=K1(V1),F1="DialogTrigger",Z1=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,s=ra(F1,r),c=we(a,s.triggerRef);return u.jsx(oe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":op(s.open),...i,ref:c,onClick:ae(n.onClick,s.onOpenToggle)})});Z1.displayName=F1;var n3="DialogPortal",[Kz,P1]=K1(n3,{forceMount:void 0}),pc="DialogOverlay",J1=v.forwardRef((n,a)=>{const r=P1(pc,n.__scopeDialog),{forceMount:i=r.forceMount,...s}=n,c=ra(pc,n.__scopeDialog);return c.modal?u.jsx(jt,{present:i||c.open,children:u.jsx(l3,{...s,ref:a})}):null});J1.displayName=pc;var a3=dr("DialogOverlay.RemoveScroll"),l3=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,s=ra(pc,r);return u.jsx(Oc,{as:a3,allowPinchZoom:!0,shards:[s.contentRef],children:u.jsx(oe.div,{"data-state":op(s.open),...i,ref:a,style:{pointerEvents:"auto",...i.style}})})}),hr="DialogContent",I1=v.forwardRef((n,a)=>{const r=P1(hr,n.__scopeDialog),{forceMount:i=r.forceMount,...s}=n,c=ra(hr,n.__scopeDialog);return u.jsx(jt,{present:i||c.open,children:c.modal?u.jsx(r3,{...s,ref:a}):u.jsx(i3,{...s,ref:a})})});I1.displayName=hr;var r3=v.forwardRef((n,a)=>{const r=ra(hr,n.__scopeDialog),i=v.useRef(null),s=we(a,r.contentRef,i);return v.useEffect(()=>{const c=i.current;if(c)return Im(c)},[]),u.jsx(W1,{...n,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ae(n.onCloseAutoFocus,c=>{var h;c.preventDefault(),(h=r.triggerRef.current)==null||h.focus()}),onPointerDownOutside:ae(n.onPointerDownOutside,c=>{const h=c.detail.originalEvent,m=h.button===0&&h.ctrlKey===!0;(h.button===2||m)&&c.preventDefault()}),onFocusOutside:ae(n.onFocusOutside,c=>c.preventDefault())})}),i3=v.forwardRef((n,a)=>{const r=ra(hr,n.__scopeDialog),i=v.useRef(!1),s=v.useRef(!1);return u.jsx(W1,{...n,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var h,m;(h=n.onCloseAutoFocus)==null||h.call(n,c),c.defaultPrevented||(i.current||(m=r.triggerRef.current)==null||m.focus(),c.preventDefault()),i.current=!1,s.current=!1},onInteractOutside:c=>{var h,m;(h=n.onInteractOutside)==null||h.call(n,c),c.defaultPrevented||(i.current=!0,c.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const p=c.target;(m=r.triggerRef.current)!=null&&m.contains(p)&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&s.current&&c.preventDefault()}})}),W1=v.forwardRef((n,a)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:c,...h}=n,m=ra(hr,r),p=v.useRef(null),g=we(a,p);return Hm(),u.jsxs(u.Fragment,{children:[u.jsx(_c,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:c,children:u.jsx(Bi,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":op(m.open),...h,ref:g,onDismiss:()=>m.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(s3,{titleId:m.titleId}),u.jsx(c3,{contentRef:p,descriptionId:m.descriptionId})]})]})}),ip="DialogTitle",eS=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,s=ra(ip,r);return u.jsx(oe.h2,{id:s.titleId,...i,ref:a})});eS.displayName=ip;var tS="DialogDescription",nS=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,s=ra(tS,r);return u.jsx(oe.p,{id:s.descriptionId,...i,ref:a})});nS.displayName=tS;var aS="DialogClose",lS=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,s=ra(aS,r);return u.jsx(oe.button,{type:"button",...i,ref:a,onClick:ae(n.onClick,()=>s.onOpenChange(!1))})});lS.displayName=aS;function op(n){return n?"open":"closed"}var rS="DialogTitleWarning",[o3,iS]=FR(rS,{contentName:hr,titleName:ip,docsSlug:"dialog"}),s3=({titleId:n})=>{const a=iS(rS),r=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users.
337
+
338
+ If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component.
339
+
340
+ 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},u3="DialogDescriptionWarning",c3=({contentRef:n,descriptionId:a})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${iS(u3).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},d3=Z1,f3=J1,h3=I1,m3=eS,p3=nS,oS=lS,v3="AlertDialog",[g3,Xz]=gt(v3,[X1]),yr=X1(),y3="AlertDialogTrigger",x3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,s=yr(r);return u.jsx(d3,{...s,...i,ref:a})});x3.displayName=y3;var b3="AlertDialogOverlay",w3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,s=yr(r);return u.jsx(f3,{...s,...i,ref:a})});w3.displayName=b3;var fi="AlertDialogContent",[S3,j3]=g3(fi),E3=uw("AlertDialogContent"),N3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,children:i,...s}=n,c=yr(r),h=v.useRef(null),m=we(a,h),p=v.useRef(null);return u.jsx(o3,{contentName:fi,titleName:sS,docsSlug:"alert-dialog",children:u.jsx(S3,{scope:r,cancelRef:p,children:u.jsxs(h3,{role:"alertdialog",...c,...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:[u.jsx(E3,{children:i}),u.jsx(A3,{contentRef:h})]})})})});N3.displayName=fi;var sS="AlertDialogTitle",C3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,s=yr(r);return u.jsx(m3,{...s,...i,ref:a})});C3.displayName=sS;var uS="AlertDialogDescription",_3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,s=yr(r);return u.jsx(p3,{...s,...i,ref:a})});_3.displayName=uS;var T3="AlertDialogAction",R3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,s=yr(r);return u.jsx(oS,{...s,...i,ref:a})});R3.displayName=T3;var cS="AlertDialogCancel",M3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,{cancelRef:s}=j3(cS,r),c=yr(r),h=we(a,s);return u.jsx(oS,{...c,...i,ref:h})});M3.displayName=cS;var A3=({contentRef:n})=>{const a=`\`${fi}\` requires a description for the component to be accessible for screen reader users.
341
+
342
+ You can add a description to the \`${fi}\` by passing a \`${uS}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
343
+
344
+ 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 \`${fi}\`. 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.
345
+
346
+ 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 ys(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 dS=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"}),k3="VisuallyHidden",fS=v.forwardRef((n,a)=>u.jsx(oe.span,{...n,ref:a,style:{...dS,...n.style}}));fS.displayName=k3;var hS=fS,D3=[" ","Enter","ArrowUp","ArrowDown"],O3=[" ","Enter"],Uc="Select",[sp,qc,z3]=Hi(Uc),[Ki,Fz]=gt(Uc,[z3,$i]),up=$i(),[Zz,kl]=Ki(Uc),[Pz,L3]=Ki(Uc),mS="SelectTrigger",U3=v.forwardRef((n,a)=>{const{__scopeSelect:r,disabled:i=!1,...s}=n,c=up(r),h=kl(mS,r),m=h.disabled||i,p=we(a,h.onTriggerChange),g=qc(r),y=v.useRef("touch"),[x,w,j]=NS(S=>{const C=g().filter(R=>!R.disabled),_=C.find(R=>R.value===h.value),T=CS(C,S,_);T!==void 0&&h.onValueChange(T.value)}),E=S=>{m||(h.onOpenChange(!0),j()),S&&(h.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return u.jsx(Xm,{asChild:!0,...c,children:u.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":ES(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=x.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&w(S.key),!(C&&S.key===" ")&&D3.includes(S.key)&&(E(),S.preventDefault())})})})});U3.displayName=mS;var pS="SelectValue",q3=v.forwardRef((n,a)=>{const{__scopeSelect:r,className:i,style:s,children:c,placeholder:h="",...m}=n,p=kl(pS,r),{onValueNodeHasChildrenChange:g}=p,y=c!==void 0,x=we(a,p.onValueNodeChange);return lt(()=>{g(y)},[g,y]),u.jsx(oe.span,{...m,ref:x,style:{pointerEvents:"none"},children:ES(p.value)?u.jsx(u.Fragment,{children:h}):c})});q3.displayName=pS;var H3="SelectIcon",B3=v.forwardRef((n,a)=>{const{__scopeSelect:r,children:i,...s}=n;return u.jsx(oe.span,{"aria-hidden":!0,...s,ref:a,children:i||"▼"})});B3.displayName=H3;var mr="SelectContent",Q3=v.forwardRef((n,a)=>{const r=kl(mr,n.__scopeSelect),[i,s]=v.useState();if(lt(()=>{s(new DocumentFragment)},[]),!r.open){const c=i;return c?fs.createPortal(u.jsx(vS,{scope:n.__scopeSelect,children:u.jsx(sp.Slot,{scope:n.__scopeSelect,children:u.jsx("div",{children:n.children})})}),c):null}return u.jsx(gS,{...n,ref:a})});Q3.displayName=mr;var Dn=10,[vS,Dl]=Ki(mr),G3="SelectContentImpl",$3=dr("SelectContent.RemoveScroll"),gS=v.forwardRef((n,a)=>{const{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:c,onPointerDownOutside:h,side:m,sideOffset:p,align:g,alignOffset:y,arrowPadding:x,collisionBoundary:w,collisionPadding:j,sticky:E,hideWhenDetached:S,avoidCollisions:C,..._}=n,T=kl(mr,r),[R,D]=v.useState(null),[L,K]=v.useState(null),H=we(a,ne=>D(ne)),[q,$]=v.useState(null),[te,ue]=v.useState(null),ce=qc(r),[W,ie]=v.useState(!1),re=v.useRef(!1);v.useEffect(()=>{if(R)return Im(R)},[R]),Hm();const U=v.useCallback(ne=>{const[Ee,...ye]=ce().map(Ve=>Ve.ref.current),[Ne]=ye.slice(-1),He=document.activeElement;for(const Ve of ne)if(Ve===He||(Ve==null||Ve.scrollIntoView({block:"nearest"}),Ve===Ee&&L&&(L.scrollTop=0),Ve===Ne&&L&&(L.scrollTop=L.scrollHeight),Ve==null||Ve.focus(),document.activeElement!==He))return},[ce,L]),I=v.useCallback(()=>U([q,R]),[U,q,R]);v.useEffect(()=>{W&&I()},[W,I]);const{onOpenChange:Y,triggerPointerDownPosRef:X}=T;v.useEffect(()=>{if(R){let ne={x:0,y:0};const Ee=Ne=>{var He,Ve;ne={x:Math.abs(Math.round(Ne.pageX)-(((He=X.current)==null?void 0:He.x)??0)),y:Math.abs(Math.round(Ne.pageY)-(((Ve=X.current)==null?void 0:Ve.y)??0))}},ye=Ne=>{ne.x<=10&&ne.y<=10?Ne.preventDefault():R.contains(Ne.target)||Y(!1),document.removeEventListener("pointermove",Ee),X.current=null};return X.current!==null&&(document.addEventListener("pointermove",Ee),document.addEventListener("pointerup",ye,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Ee),document.removeEventListener("pointerup",ye,{capture:!0})}}},[R,Y,X]),v.useEffect(()=>{const ne=()=>Y(!1);return window.addEventListener("blur",ne),window.addEventListener("resize",ne),()=>{window.removeEventListener("blur",ne),window.removeEventListener("resize",ne)}},[Y]);const[de,A]=NS(ne=>{const Ee=ce().filter(He=>!He.disabled),ye=Ee.find(He=>He.ref.current===document.activeElement),Ne=CS(Ee,ne,ye);Ne&&setTimeout(()=>Ne.ref.current.focus())}),F=v.useCallback((ne,Ee,ye)=>{const Ne=!re.current&&!ye;(T.value!==void 0&&T.value===Ee||Ne)&&($(ne),Ne&&(re.current=!0))},[T.value]),ee=v.useCallback(()=>R==null?void 0:R.focus(),[R]),le=v.useCallback((ne,Ee,ye)=>{const Ne=!re.current&&!ye;(T.value!==void 0&&T.value===Ee||Ne)&&ue(ne)},[T.value]),ve=i==="popper"?cm:yS,je=ve===cm?{side:m,sideOffset:p,align:g,alignOffset:y,arrowPadding:x,collisionBoundary:w,collisionPadding:j,sticky:E,hideWhenDetached:S,avoidCollisions:C}:{};return u.jsx(vS,{scope:r,content:R,viewport:L,onViewportChange:K,itemRefCallback:F,selectedItem:q,onItemLeave:ee,itemTextRefCallback:le,focusSelectedItem:I,selectedItemText:te,position:i,isPositioned:W,searchRef:de,children:u.jsx(Oc,{as:$3,allowPinchZoom:!0,children:u.jsx(_c,{asChild:!0,trapped:T.open,onMountAutoFocus:ne=>{ne.preventDefault()},onUnmountAutoFocus:ae(s,ne=>{var Ee;(Ee=T.trigger)==null||Ee.focus({preventScroll:!0}),ne.preventDefault()}),children:u.jsx(Bi,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:h,onFocusOutside:ne=>ne.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:u.jsx(ve,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:ne=>ne.preventDefault(),..._,...je,onPlaced:()=>ie(!0),ref:H,style:{display:"flex",flexDirection:"column",outline:"none",..._.style},onKeyDown:ae(_.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=ce().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,He=ye.indexOf(Ne);ye=ye.slice(He+1)}setTimeout(()=>U(ye)),ne.preventDefault()}})})})})})})});gS.displayName=G3;var Y3="SelectItemAlignedPosition",yS=v.forwardRef((n,a)=>{const{__scopeSelect:r,onPlaced:i,...s}=n,c=kl(mr,r),h=Dl(mr,r),[m,p]=v.useState(null),[g,y]=v.useState(null),x=we(a,H=>y(H)),w=qc(r),j=v.useRef(!1),E=v.useRef(!0),{viewport:S,selectedItem:C,selectedItemText:_,focusSelectedItem:T}=h,R=v.useCallback(()=>{if(c.trigger&&c.valueNode&&m&&g&&S&&C&&_){const H=c.trigger.getBoundingClientRect(),q=g.getBoundingClientRect(),$=c.valueNode.getBoundingClientRect(),te=_.getBoundingClientRect();if(c.dir!=="rtl"){const Ne=te.left-q.left,He=$.left-Ne,Ve=H.left-He,Ot=H.width+Ve,Pt=Math.max(Ot,q.width),ia=window.innerWidth-Dn,oa=nm(He,[Dn,Math.max(Dn,ia-Pt)]);m.style.minWidth=Ot+"px",m.style.left=oa+"px"}else{const Ne=q.right-te.right,He=window.innerWidth-$.right-Ne,Ve=window.innerWidth-H.right-He,Ot=H.width+Ve,Pt=Math.max(Ot,q.width),ia=window.innerWidth-Dn,oa=nm(He,[Dn,Math.max(Dn,ia-Pt)]);m.style.minWidth=Ot+"px",m.style.right=oa+"px"}const ue=w(),ce=window.innerHeight-Dn*2,W=S.scrollHeight,ie=window.getComputedStyle(g),re=parseInt(ie.borderTopWidth,10),U=parseInt(ie.paddingTop,10),I=parseInt(ie.borderBottomWidth,10),Y=parseInt(ie.paddingBottom,10),X=re+U+W+Y+I,de=Math.min(C.offsetHeight*5,X),A=window.getComputedStyle(S),F=parseInt(A.paddingTop,10),ee=parseInt(A.paddingBottom,10),le=H.top+H.height/2-Dn,ve=ce-le,je=C.offsetHeight/2,ne=C.offsetTop+je,Ee=re+U+ne,ye=X-Ee;if(Ee<=le){const Ne=ue.length>0&&C===ue[ue.length-1].ref.current;m.style.bottom="0px";const He=g.clientHeight-S.offsetTop-S.offsetHeight,Ve=Math.max(ve,je+(Ne?ee:0)+He+I),Ot=Ee+Ve;m.style.height=Ot+"px"}else{const Ne=ue.length>0&&C===ue[0].ref.current;m.style.top="0px";const He=Math.max(le,re+S.offsetTop+(Ne?F:0)+je)+ye;m.style.height=He+"px",S.scrollTop=Ee-le+S.offsetTop}m.style.margin=`${Dn}px 0`,m.style.minHeight=de+"px",m.style.maxHeight=ce+"px",i==null||i(),requestAnimationFrame(()=>j.current=!0)}},[w,c.trigger,c.valueNode,m,g,S,C,_,c.dir,i]);lt(()=>R(),[R]);const[D,L]=v.useState();lt(()=>{g&&L(window.getComputedStyle(g).zIndex)},[g]);const K=v.useCallback(H=>{H&&E.current===!0&&(R(),T==null||T(),E.current=!1)},[R,T]);return u.jsx(K3,{scope:r,contentWrapper:m,shouldExpandOnScrollRef:j,onScrollButtonChange:K,children:u.jsx("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:D},children:u.jsx(oe.div,{...s,ref:x,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});yS.displayName=Y3;var V3="SelectPopperPosition",cm=v.forwardRef((n,a)=>{const{__scopeSelect:r,align:i="start",collisionPadding:s=Dn,...c}=n,h=up(r);return u.jsx(Fm,{...h,...c,ref:a,align:i,collisionPadding:s,style:{boxSizing:"border-box",...c.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});cm.displayName=V3;var[K3,cp]=Ki(mr,{}),dm="SelectViewport",X3=v.forwardRef((n,a)=>{const{__scopeSelect:r,nonce:i,...s}=n,c=Dl(dm,r),h=cp(dm,r),m=we(a,c.onViewportChange),p=v.useRef(0);return u.jsxs(u.Fragment,{children:[u.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}),u.jsx(sp.Slot,{scope:r,children:u.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:x,shouldExpandOnScrollRef:w}=h;if(w!=null&&w.current&&x){const j=Math.abs(p.current-y.scrollTop);if(j>0){const E=window.innerHeight-Dn*2,S=parseFloat(x.style.minHeight),C=parseFloat(x.style.height),_=Math.max(S,C);if(_<E){const T=_+j,R=Math.min(E,T),D=T-R;x.style.height=R+"px",x.style.bottom==="0px"&&(y.scrollTop=D>0?D:0,x.style.justifyContent="flex-end")}}}p.current=y.scrollTop})})})]})});X3.displayName=dm;var xS="SelectGroup",[F3,Z3]=Ki(xS),P3=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n,s=Al();return u.jsx(F3,{scope:r,id:s,children:u.jsx(oe.div,{role:"group","aria-labelledby":s,...i,ref:a})})});P3.displayName=xS;var bS="SelectLabel",J3=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n,s=Z3(bS,r);return u.jsx(oe.div,{id:s.id,...i,ref:a})});J3.displayName=bS;var vc="SelectItem",[I3,wS]=Ki(vc),W3=v.forwardRef((n,a)=>{const{__scopeSelect:r,value:i,disabled:s=!1,textValue:c,...h}=n,m=kl(vc,r),p=Dl(vc,r),g=m.value===i,[y,x]=v.useState(c??""),[w,j]=v.useState(!1),E=we(a,T=>{var R;return(R=p.itemRefCallback)==null?void 0:R.call(p,T,i,s)}),S=Al(),C=v.useRef("touch"),_=()=>{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 u.jsx(I3,{scope:r,value:i,disabled:s,textId:S,isSelected:g,onItemTextChange:v.useCallback(T=>{x(R=>R||((T==null?void 0:T.textContent)??"").trim())},[]),children:u.jsx(sp.ItemSlot,{scope:r,value:i,disabled:s,textValue:y,children:u.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"&&_()}),onPointerUp:ae(h.onPointerUp,()=>{C.current==="mouse"&&_()}),onPointerDown:ae(h.onPointerDown,T=>{C.current=T.pointerType}),onPointerMove:ae(h.onPointerMove,T=>{var R;C.current=T.pointerType,s?(R=p.onItemLeave)==null||R.call(p):C.current==="mouse"&&T.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ae(h.onPointerLeave,T=>{var R;T.currentTarget===document.activeElement&&((R=p.onItemLeave)==null||R.call(p))}),onKeyDown:ae(h.onKeyDown,T=>{var R;((R=p.searchRef)==null?void 0:R.current)!==""&&T.key===" "||(O3.includes(T.key)&&_(),T.key===" "&&T.preventDefault())})})})})});W3.displayName=vc;var Zo="SelectItemText",eD=v.forwardRef((n,a)=>{const{__scopeSelect:r,className:i,style:s,...c}=n,h=kl(Zo,r),m=Dl(Zo,r),p=wS(Zo,r),g=L3(Zo,r),[y,x]=v.useState(null),w=we(a,_=>x(_),p.onItemTextChange,_=>{var T;return(T=m.itemTextRefCallback)==null?void 0:T.call(m,_,p.value,p.disabled)}),j=y==null?void 0:y.textContent,E=v.useMemo(()=>u.jsx("option",{value:p.value,disabled:p.disabled,children:j},p.value),[p.disabled,p.value,j]),{onNativeOptionAdd:S,onNativeOptionRemove:C}=g;return lt(()=>(S(E),()=>C(E)),[S,C,E]),u.jsxs(u.Fragment,{children:[u.jsx(oe.span,{id:p.textId,...c,ref:w}),p.isSelected&&h.valueNode&&!h.valueNodeHasChildren?fs.createPortal(c.children,h.valueNode):null]})});eD.displayName=Zo;var SS="SelectItemIndicator",tD=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n;return wS(SS,r).isSelected?u.jsx(oe.span,{"aria-hidden":!0,...i,ref:a}):null});tD.displayName=SS;var fm="SelectScrollUpButton",nD=v.forwardRef((n,a)=>{const r=Dl(fm,n.__scopeSelect),i=cp(fm,n.__scopeSelect),[s,c]=v.useState(!1),h=we(a,i.onScrollButtonChange);return lt(()=>{if(r.viewport&&r.isPositioned){let m=function(){const g=p.scrollTop>0;c(g)};const p=r.viewport;return m(),p.addEventListener("scroll",m),()=>p.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),s?u.jsx(jS,{...n,ref:h,onAutoScroll:()=>{const{viewport:m,selectedItem:p}=r;m&&p&&(m.scrollTop=m.scrollTop-p.offsetHeight)}}):null});nD.displayName=fm;var hm="SelectScrollDownButton",aD=v.forwardRef((n,a)=>{const r=Dl(hm,n.__scopeSelect),i=cp(hm,n.__scopeSelect),[s,c]=v.useState(!1),h=we(a,i.onScrollButtonChange);return lt(()=>{if(r.viewport&&r.isPositioned){let m=function(){const g=p.scrollHeight-p.clientHeight,y=Math.ceil(p.scrollTop)<g;c(y)};const p=r.viewport;return m(),p.addEventListener("scroll",m),()=>p.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),s?u.jsx(jS,{...n,ref:h,onAutoScroll:()=>{const{viewport:m,selectedItem:p}=r;m&&p&&(m.scrollTop=m.scrollTop+p.offsetHeight)}}):null});aD.displayName=hm;var jS=v.forwardRef((n,a)=>{const{__scopeSelect:r,onAutoScroll:i,...s}=n,c=Dl("SelectScrollButton",r),h=v.useRef(null),m=qc(r),p=v.useCallback(()=>{h.current!==null&&(window.clearInterval(h.current),h.current=null)},[]);return v.useEffect(()=>()=>p(),[p]),lt(()=>{var g;const y=m().find(x=>x.ref.current===document.activeElement);(g=y==null?void 0:y.ref.current)==null||g.scrollIntoView({block:"nearest"})},[m]),u.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=c.onItemLeave)==null||g.call(c),h.current===null&&(h.current=window.setInterval(i,50))}),onPointerLeave:ae(s.onPointerLeave,()=>{p()})})}),lD="SelectSeparator",rD=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n;return u.jsx(oe.div,{"aria-hidden":!0,...i,ref:a})});rD.displayName=lD;var mm="SelectArrow",iD=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n,s=up(r),c=kl(mm,r),h=Dl(mm,r);return c.open&&h.position==="popper"?u.jsx(Zm,{...s,...i,ref:a}):null});iD.displayName=mm;var oD="SelectBubbleInput",sD=v.forwardRef(({__scopeSelect:n,value:a,...r},i)=>{const s=v.useRef(null),c=we(i,s),h=ys(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]),u.jsx(oe.select,{...r,style:{...dS,...r.style},ref:c,defaultValue:a})});sD.displayName=oD;function ES(n){return n===""||n===void 0}function NS(n){const a=nt(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]),c=v.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,s,c]}function CS(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 c=uD(n,Math.max(s,0));i.length===1&&(c=c.filter(m=>m!==r));const h=c.find(m=>m.textValue.toLowerCase().startsWith(i.toLowerCase()));return h!==r?h:void 0}function uD(n,a){return n.map((r,i)=>n[(a+i)%n.length])}var[Hc,Jz]=gt("Tooltip",[$i]),dp=$i(),cD="TooltipProvider",Yx="tooltip.open",[Iz,_S]=Hc(cD),TS="Tooltip",[Wz,Bc]=Hc(TS),pm="TooltipTrigger",dD=v.forwardRef((n,a)=>{const{__scopeTooltip:r,...i}=n,s=Bc(pm,r),c=_S(pm,r),h=dp(r),m=v.useRef(null),p=we(a,m,s.onTriggerChange),g=v.useRef(!1),y=v.useRef(!1),x=v.useCallback(()=>g.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",x),[x]),u.jsx(Xm,{asChild:!0,...h,children:u.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&&!c.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",x,{once:!0})}),onFocus:ae(n.onFocus,()=>{g.current||s.onOpen()}),onBlur:ae(n.onBlur,s.onClose),onClick:ae(n.onClick,s.onClose)})})});dD.displayName=pm;var fD="TooltipPortal",[e6,hD]=Hc(fD,{forceMount:void 0}),Ri="TooltipContent",RS=v.forwardRef((n,a)=>{const r=hD(Ri,n.__scopeTooltip),{forceMount:i=r.forceMount,side:s="top",...c}=n,h=Bc(Ri,n.__scopeTooltip);return u.jsx(jt,{present:i||h.open,children:h.disableHoverableContent?u.jsx(MS,{side:s,...c,ref:a}):u.jsx(mD,{side:s,...c,ref:a})})}),mD=v.forwardRef((n,a)=>{const r=Bc(Ri,n.__scopeTooltip),i=_S(Ri,n.__scopeTooltip),s=v.useRef(null),c=we(a,s),[h,m]=v.useState(null),{trigger:p,onClose:g}=r,y=s.current,{onPointerInTransitChange:x}=i,w=v.useCallback(()=>{m(null),x(!1)},[x]),j=v.useCallback((E,S)=>{const C=E.currentTarget,_={x:E.clientX,y:E.clientY},T=xD(_,C.getBoundingClientRect()),R=bD(_,T),D=wD(S.getBoundingClientRect()),L=jD([...R,...D]);m(L),x(!0)},[x]);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,_={x:S.clientX,y:S.clientY},T=(p==null?void 0:p.contains(C))||(y==null?void 0:y.contains(C)),R=!SD(_,h);T?w():R&&(w(),g())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[p,y,h,g,w]),u.jsx(MS,{...n,ref:c})}),[pD,vD]=Hc(TS,{isInside:!1}),gD=uw("TooltipContent"),MS=v.forwardRef((n,a)=>{const{__scopeTooltip:r,children:i,"aria-label":s,onEscapeKeyDown:c,onPointerDownOutside:h,...m}=n,p=Bc(Ri,r),g=dp(r),{onClose:y}=p;return v.useEffect(()=>(document.addEventListener(Yx,y),()=>document.removeEventListener(Yx,y)),[y]),v.useEffect(()=>{if(p.trigger){const x=w=>{const j=w.target;j!=null&&j.contains(p.trigger)&&y()};return window.addEventListener("scroll",x,{capture:!0}),()=>window.removeEventListener("scroll",x,{capture:!0})}},[p.trigger,y]),u.jsx(Bi,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:h,onFocusOutside:x=>x.preventDefault(),onDismiss:y,children:u.jsxs(Fm,{"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:[u.jsx(gD,{children:i}),u.jsx(pD,{scope:r,isInside:!0,children:u.jsx(hS,{id:p.contentId,role:"tooltip",children:s||i})})]})})});RS.displayName=Ri;var AS="TooltipArrow",yD=v.forwardRef((n,a)=>{const{__scopeTooltip:r,...i}=n,s=dp(r);return vD(AS,r).isInside?null:u.jsx(Zm,{...s,...i,ref:a})});yD.displayName=AS;function xD(n,a){const r=Math.abs(a.top-n.y),i=Math.abs(a.bottom-n.y),s=Math.abs(a.right-n.x),c=Math.abs(a.left-n.x);switch(Math.min(r,i,s,c)){case c:return"left";case s:return"right";case r:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function bD(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 wD(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 SD(n,a){const{x:r,y:i}=n;let s=!1;for(let c=0,h=a.length-1;c<a.length;h=c++){const m=a[c],p=a[h],g=m.x,y=m.y,x=p.x,w=p.y;y>i!=w>i&&r<(x-g)*(i-y)/(w-y)+g&&(s=!s)}return s}function jD(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),ED(a)}function ED(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 c=a[a.length-1],h=a[a.length-2];if((c.x-h.x)*(s.y-h.y)>=(c.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 c=r[r.length-1],h=r[r.length-2];if((c.x-h.x)*(s.y-h.y)>=(c.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 ND=RS;ND.displayName;var Qc="Checkbox",[CD,t6]=gt(Qc),[_D,fp]=CD(Qc);function TD(n){const{__scopeCheckbox:a,checked:r,children:i,defaultChecked:s,disabled:c,form:h,name:m,onCheckedChange:p,required:g,value:y="on",internal_do_not_use_render:x}=n,[w,j]=aa({prop:r,defaultProp:s??!1,onChange:p,caller:Qc}),[E,S]=v.useState(null),[C,_]=v.useState(null),T=v.useRef(!1),R=E?!!h||!!E.closest("form"):!0,D={checked:w,disabled:c,setChecked:j,control:E,setControl:S,name:m,form:h,value:y,hasConsumerStoppedPropagationRef:T,required:g,defaultChecked:Cl(s)?!1:s,isFormControl:R,bubbleInput:C,setBubbleInput:_};return u.jsx(_D,{scope:a,...D,children:AD(x)?x(D):i})}var kS="CheckboxTrigger",DS=v.forwardRef(({__scopeCheckbox:n,onKeyDown:a,onClick:r,...i},s)=>{const{control:c,value:h,disabled:m,checked:p,required:g,setControl:y,setChecked:x,hasConsumerStoppedPropagationRef:w,isFormControl:j,bubbleInput:E}=fp(kS,n),S=we(s,y),C=v.useRef(p);return v.useEffect(()=>{const _=c==null?void 0:c.form;if(_){const T=()=>x(C.current);return _.addEventListener("reset",T),()=>_.removeEventListener("reset",T)}},[c,x]),u.jsx(oe.button,{type:"button",role:"checkbox","aria-checked":Cl(p)?"mixed":p,"aria-required":g,"data-state":US(p),"data-disabled":m?"":void 0,disabled:m,value:h,...i,ref:S,onKeyDown:ae(a,_=>{_.key==="Enter"&&_.preventDefault()}),onClick:ae(r,_=>{x(T=>Cl(T)?!0:!T),E&&j&&(w.current=_.isPropagationStopped(),w.current||_.stopPropagation())})})});DS.displayName=kS;var RD=v.forwardRef((n,a)=>{const{__scopeCheckbox:r,name:i,checked:s,defaultChecked:c,required:h,disabled:m,value:p,onCheckedChange:g,form:y,...x}=n;return u.jsx(TD,{__scopeCheckbox:r,checked:s,defaultChecked:c,disabled:m,required:h,onCheckedChange:g,name:i,form:y,value:p,internal_do_not_use_render:({isFormControl:w})=>u.jsxs(u.Fragment,{children:[u.jsx(DS,{...x,ref:a,__scopeCheckbox:r}),w&&u.jsx(LS,{__scopeCheckbox:r})]})})});RD.displayName=Qc;var OS="CheckboxIndicator",MD=v.forwardRef((n,a)=>{const{__scopeCheckbox:r,forceMount:i,...s}=n,c=fp(OS,r);return u.jsx(jt,{present:i||Cl(c.checked)||c.checked===!0,children:u.jsx(oe.span,{"data-state":US(c.checked),"data-disabled":c.disabled?"":void 0,...s,ref:a,style:{pointerEvents:"none",...n.style}})})});MD.displayName=OS;var zS="CheckboxBubbleInput",LS=v.forwardRef(({__scopeCheckbox:n,...a},r)=>{const{control:i,hasConsumerStoppedPropagationRef:s,checked:c,defaultChecked:h,required:m,disabled:p,name:g,value:y,form:x,bubbleInput:w,setBubbleInput:j}=fp(zS,n),E=we(r,j),S=ys(c),C=kc(i);v.useEffect(()=>{const T=w;if(!T)return;const R=window.HTMLInputElement.prototype,D=Object.getOwnPropertyDescriptor(R,"checked").set,L=!s.current;if(S!==c&&D){const K=new Event("click",{bubbles:L});T.indeterminate=Cl(c),D.call(T,Cl(c)?!1:c),T.dispatchEvent(K)}},[w,S,c,s]);const _=v.useRef(Cl(c)?!1:c);return u.jsx(oe.input,{type:"checkbox","aria-hidden":!0,defaultChecked:h??_.current,required:m,disabled:p,name:g,value:y,form:x,...a,tabIndex:-1,ref:E,style:{...a.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});LS.displayName=zS;function AD(n){return typeof n=="function"}function Cl(n){return n==="indeterminate"}function US(n){return Cl(n)?"indeterminate":n?"checked":"unchecked"}var hp="Radio",[kD,qS]=gt(hp),[DD,OD]=kD(hp),HS=v.forwardRef((n,a)=>{const{__scopeRadio:r,name:i,checked:s=!1,required:c,disabled:h,value:m="on",onCheck:p,form:g,...y}=n,[x,w]=v.useState(null),j=we(a,C=>w(C)),E=v.useRef(!1),S=x?g||!!x.closest("form"):!0;return u.jsxs(DD,{scope:r,checked:s,disabled:h,children:[u.jsx(oe.button,{type:"button",role:"radio","aria-checked":s,"data-state":$S(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&&u.jsx(GS,{control:x,bubbles:!E.current,name:i,value:m,checked:s,required:c,disabled:h,form:g,style:{transform:"translateX(-100%)"}})]})});HS.displayName=hp;var BS="RadioIndicator",QS=v.forwardRef((n,a)=>{const{__scopeRadio:r,forceMount:i,...s}=n,c=OD(BS,r);return u.jsx(jt,{present:i||c.checked,children:u.jsx(oe.span,{"data-state":$S(c.checked),"data-disabled":c.disabled?"":void 0,...s,ref:a})})});QS.displayName=BS;var zD="RadioBubbleInput",GS=v.forwardRef(({__scopeRadio:n,control:a,checked:r,bubbles:i=!0,...s},c)=>{const h=v.useRef(null),m=we(h,c),p=ys(r),g=kc(a);return v.useEffect(()=>{const y=h.current;if(!y)return;const x=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(x,"checked").set;if(p!==r&&w){const j=new Event("click",{bubbles:i});w.call(y,r),y.dispatchEvent(j)}},[p,r,i]),u.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}})});GS.displayName=zD;function $S(n){return n?"checked":"unchecked"}var LD=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Gc="RadioGroup",[UD,n6]=gt(Gc,[Yi,qS]),YS=Yi(),VS=qS(),[qD,HD]=UD(Gc),KS=v.forwardRef((n,a)=>{const{__scopeRadioGroup:r,name:i,defaultValue:s,value:c,required:h=!1,disabled:m=!1,orientation:p,dir:g,loop:y=!0,onValueChange:x,...w}=n,j=YS(r),E=qi(g),[S,C]=aa({prop:c,defaultProp:s??null,onChange:x,caller:Gc});return u.jsx(qD,{scope:r,name:i,required:h,disabled:m,value:S,onValueChange:C,children:u.jsx(Pm,{asChild:!0,...j,orientation:p,dir:E,loop:y,children:u.jsx(oe.div,{role:"radiogroup","aria-required":h,"aria-orientation":p,"data-disabled":m?"":void 0,dir:E,...w,ref:a})})})});KS.displayName=Gc;var XS="RadioGroupItem",FS=v.forwardRef((n,a)=>{const{__scopeRadioGroup:r,disabled:i,...s}=n,c=HD(XS,r),h=c.disabled||i,m=YS(r),p=VS(r),g=v.useRef(null),y=we(a,g),x=c.value===s.value,w=v.useRef(!1);return v.useEffect(()=>{const j=S=>{LD.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)}},[]),u.jsx(Jm,{asChild:!0,...m,focusable:!h,active:x,children:u.jsx(HS,{disabled:h,required:c.required,checked:x,...p,...s,name:c.name,ref:y,onCheck:()=>c.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())})})})});FS.displayName=XS;var BD="RadioGroupIndicator",QD=v.forwardRef((n,a)=>{const{__scopeRadioGroup:r,...i}=n,s=VS(r);return u.jsx(QS,{...s,...i,ref:a})});QD.displayName=BD;var GD=KS,$D=FS;GD.displayName;$D.displayName;var $c="Switch",[YD,a6]=gt($c),[VD,KD]=YD($c),ZS=v.forwardRef((n,a)=>{const{__scopeSwitch:r,name:i,checked:s,defaultChecked:c,required:h,disabled:m,value:p="on",onCheckedChange:g,form:y,...x}=n,[w,j]=v.useState(null),E=we(a,R=>j(R)),S=v.useRef(!1),C=w?y||!!w.closest("form"):!0,[_,T]=aa({prop:s,defaultProp:c??!1,onChange:g,caller:$c});return u.jsxs(VD,{scope:r,checked:_,disabled:m,children:[u.jsx(oe.button,{type:"button",role:"switch","aria-checked":_,"aria-required":h,"data-state":WS(_),"data-disabled":m?"":void 0,disabled:m,value:p,...x,ref:E,onClick:ae(n.onClick,R=>{T(D=>!D),C&&(S.current=R.isPropagationStopped(),S.current||R.stopPropagation())})}),C&&u.jsx(IS,{control:w,bubbles:!S.current,name:i,value:p,checked:_,required:h,disabled:m,form:y,style:{transform:"translateX(-100%)"}})]})});ZS.displayName=$c;var PS="SwitchThumb",JS=v.forwardRef((n,a)=>{const{__scopeSwitch:r,...i}=n,s=KD(PS,r);return u.jsx(oe.span,{"data-state":WS(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:a})});JS.displayName=PS;var XD="SwitchBubbleInput",IS=v.forwardRef(({__scopeSwitch:n,control:a,checked:r,bubbles:i=!0,...s},c)=>{const h=v.useRef(null),m=we(h,c),p=ys(r),g=kc(a);return v.useEffect(()=>{const y=h.current;if(!y)return;const x=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(x,"checked").set;if(p!==r&&w){const j=new Event("click",{bubbles:i});w.call(y,r),y.dispatchEvent(j)}},[p,r,i]),u.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}})});IS.displayName=XD;function WS(n){return n?"checked":"unchecked"}var FD=ZS,ZD=JS;function Dh({className:n,...a}){return u.jsx(FD,{"data-slot":"switch",className:pe("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:u.jsx(ZD,{"data-slot":"switch-thumb",className:pe("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 Yc="Tabs",[PD,l6]=gt(Yc,[Yi]),ej=Yi(),[JD,mp]=PD(Yc),tj=v.forwardRef((n,a)=>{const{__scopeTabs:r,value:i,onValueChange:s,defaultValue:c,orientation:h="horizontal",dir:m,activationMode:p="automatic",...g}=n,y=qi(m),[x,w]=aa({prop:i,onChange:s,defaultProp:c??"",caller:Yc});return u.jsx(JD,{scope:r,baseId:Al(),value:x,onValueChange:w,orientation:h,dir:y,activationMode:p,children:u.jsx(oe.div,{dir:y,"data-orientation":h,...g,ref:a})})});tj.displayName=Yc;var nj="TabsList",aj=v.forwardRef((n,a)=>{const{__scopeTabs:r,loop:i=!0,...s}=n,c=mp(nj,r),h=ej(r);return u.jsx(Pm,{asChild:!0,...h,orientation:c.orientation,dir:c.dir,loop:i,children:u.jsx(oe.div,{role:"tablist","aria-orientation":c.orientation,...s,ref:a})})});aj.displayName=nj;var lj="TabsTrigger",rj=v.forwardRef((n,a)=>{const{__scopeTabs:r,value:i,disabled:s=!1,...c}=n,h=mp(lj,r),m=ej(r),p=sj(h.baseId,i),g=uj(h.baseId,i),y=i===h.value;return u.jsx(Jm,{asChild:!0,...m,focusable:!s,active:y,children:u.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,...c,ref:a,onMouseDown:ae(n.onMouseDown,x=>{!s&&x.button===0&&x.ctrlKey===!1?h.onValueChange(i):x.preventDefault()}),onKeyDown:ae(n.onKeyDown,x=>{[" ","Enter"].includes(x.key)&&h.onValueChange(i)}),onFocus:ae(n.onFocus,()=>{const x=h.activationMode!=="manual";!y&&!s&&x&&h.onValueChange(i)})})})});rj.displayName=lj;var ij="TabsContent",oj=v.forwardRef((n,a)=>{const{__scopeTabs:r,value:i,forceMount:s,children:c,...h}=n,m=mp(ij,r),p=sj(m.baseId,i),g=uj(m.baseId,i),y=i===m.value,x=v.useRef(y);return v.useEffect(()=>{const w=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(w)},[]),u.jsx(jt,{present:s||y,children:({present:w})=>u.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:x.current?"0s":void 0},children:w&&c})})});oj.displayName=ij;function sj(n,a){return`${n}-trigger-${a}`}function uj(n,a){return`${n}-content-${a}`}var ID=tj,WD=aj,eO=rj,tO=oj;function cj({className:n,...a}){return u.jsx(ID,{"data-slot":"tabs",className:pe("flex flex-col gap-2",n),...a})}function dj({className:n,...a}){return u.jsx(WD,{"data-slot":"tabs-list",className:pe("flex border-b border-border",n),...a})}function Io({className:n,children:a,...r}){return u.jsx(eO,{asChild:!0,...r,children:u.jsx(fw,{className:n,children:a})})}function Wo({className:n,...a}){return u.jsx(tO,{"data-slot":"tabs-content",className:pe("flex-1 outline-none",n),...a})}function nO(n){const a=aO(n),r=v.forwardRef((i,s)=>{const{children:c,...h}=i,m=v.Children.toArray(c),p=m.find(rO);if(p){const g=p.props.children,y=m.map(x=>x===p?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:x);return u.jsx(a,{...h,ref:s,children:v.isValidElement(g)?v.cloneElement(g,void 0,y):null})}return u.jsx(a,{...h,ref:s,children:c})});return r.displayName=`${n}.Slot`,r}function aO(n){const a=v.forwardRef((r,i)=>{const{children:s,...c}=r,h=v.isValidElement(s)?oO(s):void 0,m=we(h,i);if(v.isValidElement(s)){const p=iO(c,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 lO=Symbol("radix.slottable");function rO(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===lO}function iO(n,a){const r={...a};for(const i in a){const s=n[i],c=a[i];/^on[A-Z]/.test(i)?s&&c?r[i]=(...h)=>{const m=c(...h);return s(...h),m}:s&&(r[i]=s):i==="style"?r[i]={...s,...c}:i==="className"&&(r[i]=[s,c].filter(Boolean).join(" "))}return{...n,...r}}function oO(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 sO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pp=sO.reduce((n,a)=>{const r=nO(`Primitive.${a}`),i=v.forwardRef((s,c)=>{const{asChild:h,...m}=s,p=h?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(p,{...m,ref:c})});return i.displayName=`Primitive.${a}`,{...n,[a]:i}},{}),vp="Progress",gp=100,[uO,r6]=gt(vp),[cO,dO]=uO(vp),fO=v.forwardRef((n,a)=>{const{__scopeProgress:r,value:i=null,max:s,getValueLabel:c=mO,...h}=n;(s||s===0)&&!Vx(s)&&console.error(pO(`${s}`,"Progress"));const m=Vx(s)?s:gp;i!==null&&!Kx(i,m)&&console.error(vO(`${i}`,"Progress"));const p=Kx(i,m)?i:null,g=gc(p)?c(p,m):void 0;return u.jsx(cO,{scope:r,value:p,max:m,children:u.jsx(pp.div,{"aria-valuemax":m,"aria-valuemin":0,"aria-valuenow":gc(p)?p:void 0,"aria-valuetext":g,role:"progressbar","data-state":hj(p,m),"data-value":p??void 0,"data-max":m,...h,ref:a})})});fO.displayName=vp;var fj="ProgressIndicator",hO=v.forwardRef((n,a)=>{const{__scopeProgress:r,...i}=n,s=dO(fj,r);return u.jsx(pp.div,{"data-state":hj(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...i,ref:a})});hO.displayName=fj;function mO(n,a){return`${Math.round(n/a*100)}%`}function hj(n,a){return n==null?"indeterminate":n===a?"complete":"loading"}function gc(n){return typeof n=="number"}function Vx(n){return gc(n)&&!isNaN(n)&&n>0}function Kx(n,a){return gc(n)&&!isNaN(n)&&n<=a&&n>=0}function pO(n,a){return`Invalid prop \`max\` of value \`${n}\` supplied to \`${a}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${gp}\`.`}function vO(n,a){return`Invalid prop \`value\` of value \`${n}\` supplied to \`${a}\`. The \`value\` prop must be:
347
+ - a positive number
348
+ - less than the value passed to \`max\` (or ${gp} if no \`max\` prop is set)
349
+ - \`null\` or \`undefined\` if the progress is indeterminate.
350
+
351
+ Defaulting to \`null\`.`}var gO="Separator",Xx="horizontal",yO=["horizontal","vertical"],xO=v.forwardRef((n,a)=>{const{decorative:r,orientation:i=Xx,...s}=n,c=bO(i)?i:Xx,h=r?{role:"none"}:{"aria-orientation":c==="vertical"?c:void 0,role:"separator"};return u.jsx(pp.div,{"data-orientation":c,...h,...s,ref:a})});xO.displayName=gO;function bO(n){return yO.includes(n)}var wO="Label",mj=v.forwardRef((n,a)=>u.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())}}));mj.displayName=wO;var pj=mj;const SO=dw("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Po=({ref:n,className:a,...r})=>u.jsx(pj,{ref:n,className:pe(SO(),a),...r});Po.displayName=pj.displayName;var Vc="Collapsible",[jO,vj]=gt(Vc),[EO,yp]=jO(Vc),gj=v.forwardRef((n,a)=>{const{__scopeCollapsible:r,open:i,defaultOpen:s,disabled:c,onOpenChange:h,...m}=n,[p,g]=aa({prop:i,defaultProp:s??!1,onChange:h,caller:Vc});return u.jsx(EO,{scope:r,disabled:c,contentId:Al(),open:p,onOpenToggle:v.useCallback(()=>g(y=>!y),[g]),children:u.jsx(oe.div,{"data-state":Sp(p),"data-disabled":c?"":void 0,...m,ref:a})})});gj.displayName=Vc;var yj="CollapsibleTrigger",xp=v.forwardRef((n,a)=>{const{__scopeCollapsible:r,...i}=n,s=yp(yj,r);return u.jsx(oe.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":Sp(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...i,ref:a,onClick:ae(n.onClick,s.onOpenToggle)})});xp.displayName=yj;var bp="CollapsibleContent",wp=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=yp(bp,n.__scopeCollapsible);return u.jsx(jt,{present:r||s.open,children:({present:c})=>u.jsx(NO,{...i,ref:a,present:c})})});wp.displayName=bp;var NO=v.forwardRef((n,a)=>{const{__scopeCollapsible:r,present:i,children:s,...c}=n,h=yp(bp,r),[m,p]=v.useState(i),g=v.useRef(null),y=we(a,g),x=v.useRef(0),w=x.current,j=v.useRef(0),E=j.current,S=h.open||m,C=v.useRef(S),_=v.useRef(void 0);return v.useEffect(()=>{const T=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(T)},[]),lt(()=>{const T=g.current;if(T){_.current=_.current||{transitionDuration:T.style.transitionDuration,animationName:T.style.animationName},T.style.transitionDuration="0s",T.style.animationName="none";const R=T.getBoundingClientRect();x.current=R.height,j.current=R.width,C.current||(T.style.transitionDuration=_.current.transitionDuration,T.style.animationName=_.current.animationName),p(i)}},[h.open,i]),u.jsx(oe.div,{"data-state":Sp(h.open),"data-disabled":h.disabled?"":void 0,id:h.contentId,hidden:!S,...c,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 Sp(n){return n?"open":"closed"}var xj=gj,CO=xp,_O=wp,Yn="Accordion",TO=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[jp,RO,MO]=Hi(Yn),[Kc,i6]=gt(Yn,[MO,vj]),Ep=vj(),AO=st.forwardRef((n,a)=>{const{type:r,...i}=n,s=i,c=i;return u.jsx(jp.Provider,{scope:n.__scopeAccordion,children:r==="multiple"?u.jsx(zO,{...c,ref:a}):u.jsx(OO,{...s,ref:a})})});AO.displayName=Yn;var[bj,kO]=Kc(Yn),[wj,DO]=Kc(Yn,{collapsible:!1}),OO=st.forwardRef((n,a)=>{const{value:r,defaultValue:i,onValueChange:s=()=>{},collapsible:c=!1,...h}=n,[m,p]=aa({prop:r,defaultProp:i??"",onChange:s,caller:Yn});return u.jsx(bj,{scope:n.__scopeAccordion,value:st.useMemo(()=>m?[m]:[],[m]),onItemOpen:p,onItemClose:st.useCallback(()=>c&&p(""),[c,p]),children:u.jsx(wj,{scope:n.__scopeAccordion,collapsible:c,children:u.jsx(Sj,{...h,ref:a})})})}),zO=st.forwardRef((n,a)=>{const{value:r,defaultValue:i,onValueChange:s=()=>{},...c}=n,[h,m]=aa({prop:r,defaultProp:i??[],onChange:s,caller:Yn}),p=st.useCallback(y=>m((x=[])=>[...x,y]),[m]),g=st.useCallback(y=>m((x=[])=>x.filter(w=>w!==y)),[m]);return u.jsx(bj,{scope:n.__scopeAccordion,value:h,onItemOpen:p,onItemClose:g,children:u.jsx(wj,{scope:n.__scopeAccordion,collapsible:!0,children:u.jsx(Sj,{...c,ref:a})})})}),[LO,Xc]=Kc(Yn),Sj=st.forwardRef((n,a)=>{const{__scopeAccordion:r,disabled:i,dir:s,orientation:c="vertical",...h}=n,m=st.useRef(null),p=we(m,a),g=RO(r),y=qi(s)==="ltr",x=ae(n.onKeyDown,w=>{var j;if(!TO.includes(w.key))return;const E=w.target,S=g().filter(q=>{var $;return!(($=q.ref.current)!=null&&$.disabled)}),C=S.findIndex(q=>q.ref.current===E),_=S.length;if(C===-1)return;w.preventDefault();let T=C;const R=0,D=_-1,L=()=>{T=C+1,T>D&&(T=R)},K=()=>{T=C-1,T<R&&(T=D)};switch(w.key){case"Home":T=R;break;case"End":T=D;break;case"ArrowRight":c==="horizontal"&&(y?L():K());break;case"ArrowDown":c==="vertical"&&L();break;case"ArrowLeft":c==="horizontal"&&(y?K():L());break;case"ArrowUp":c==="vertical"&&K();break}const H=T%_;(j=S[H].ref.current)==null||j.focus()});return u.jsx(LO,{scope:r,disabled:i,direction:s,orientation:c,children:u.jsx(jp.Slot,{scope:r,children:u.jsx(oe.div,{...h,"data-orientation":c,ref:p,onKeyDown:i?void 0:x})})})}),yc="AccordionItem",[UO,Np]=Kc(yc),qO=st.forwardRef((n,a)=>{const{__scopeAccordion:r,value:i,...s}=n,c=Xc(yc,r),h=kO(yc,r),m=Ep(r),p=Al(),g=i&&h.value.includes(i)||!1,y=c.disabled||n.disabled;return u.jsx(UO,{scope:r,open:g,disabled:y,triggerId:p,children:u.jsx(xj,{"data-orientation":c.orientation,"data-state":Nj(g),...m,...s,ref:a,disabled:y,open:g,onOpenChange:x=>{x?h.onItemOpen(i):h.onItemClose(i)}})})});qO.displayName=yc;var jj="AccordionHeader",HO=st.forwardRef((n,a)=>{const{__scopeAccordion:r,...i}=n,s=Xc(Yn,r),c=Np(jj,r);return u.jsx(oe.h3,{"data-orientation":s.orientation,"data-state":Nj(c.open),"data-disabled":c.disabled?"":void 0,...i,ref:a})});HO.displayName=jj;var vm="AccordionTrigger",BO=st.forwardRef((n,a)=>{const{__scopeAccordion:r,...i}=n,s=Xc(Yn,r),c=Np(vm,r),h=DO(vm,r),m=Ep(r);return u.jsx(jp.ItemSlot,{scope:r,children:u.jsx(CO,{"aria-disabled":c.open&&!h.collapsible||void 0,"data-orientation":s.orientation,id:c.triggerId,...m,...i,ref:a})})});BO.displayName=vm;var Ej="AccordionContent",QO=st.forwardRef((n,a)=>{const{__scopeAccordion:r,...i}=n,s=Xc(Yn,r),c=Np(Ej,r),h=Ep(r);return u.jsx(_O,{role:"region","aria-labelledby":c.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}})});QO.displayName=Ej;function Nj(n){return n?"open":"closed"}const Cj=xj,_j=xp,Tj=wp;var xr="NavigationMenu",[Cp,Rj,GO]=Hi(xr),[gm,$O,YO]=Hi(xr),[_p,o6]=gt(xr,[GO,YO]),[VO,Tn]=_p(xr),[KO,XO]=_p(xr),FO=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,onValueChange:s,defaultValue:c,delayDuration:h=200,skipDelayDuration:m=300,orientation:p="horizontal",dir:g,...y}=n,[x,w]=v.useState(null),j=we(a,$=>w($)),E=qi(g),S=v.useRef(0),C=v.useRef(0),_=v.useRef(0),[T,R]=v.useState(!0),[D,L]=aa({prop:i,onChange:$=>{const te=$!=="",ue=m>0;te?(window.clearTimeout(_.current),ue&&R(!1)):(window.clearTimeout(_.current),_.current=window.setTimeout(()=>R(!0),m)),s==null||s($)},defaultProp:c??"",caller:xr}),K=v.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>L(""),150)},[L]),H=v.useCallback($=>{window.clearTimeout(C.current),L($)},[L]),q=v.useCallback($=>{D===$?window.clearTimeout(C.current):S.current=window.setTimeout(()=>{window.clearTimeout(C.current),L($)},h)},[D,L,h]);return v.useEffect(()=>()=>{window.clearTimeout(S.current),window.clearTimeout(C.current),window.clearTimeout(_.current)},[]),u.jsx(Mj,{scope:r,isRootMenu:!0,value:D,dir:E,orientation:p,rootNavigationMenu:x,onTriggerEnter:$=>{window.clearTimeout(S.current),T?q($):H($)},onTriggerLeave:()=>{window.clearTimeout(S.current),K()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:K,onItemSelect:$=>{L(te=>te===$?"":$)},onItemDismiss:()=>L(""),children:u.jsx(oe.nav,{"aria-label":"Main","data-orientation":p,dir:E,...y,ref:j})})});FO.displayName=xr;var ym="NavigationMenuSub",ZO=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,onValueChange:s,defaultValue:c,orientation:h="horizontal",...m}=n,p=Tn(ym,r),[g,y]=aa({prop:i,onChange:s,defaultProp:c??"",caller:ym});return u.jsx(Mj,{scope:r,isRootMenu:!1,value:g,dir:p.dir,orientation:h,rootNavigationMenu:p.rootNavigationMenu,onTriggerEnter:x=>y(x),onItemSelect:x=>y(x),onItemDismiss:()=>y(""),children:u.jsx(oe.div,{"data-orientation":h,...m,ref:a})})});ZO.displayName=ym;var Mj=n=>{const{scope:a,isRootMenu:r,rootNavigationMenu:i,dir:s,orientation:c,children:h,value:m,onItemSelect:p,onItemDismiss:g,onTriggerEnter:y,onTriggerLeave:x,onContentEnter:w,onContentLeave:j}=n,[E,S]=v.useState(null),[C,_]=v.useState(new Map),[T,R]=v.useState(null);return u.jsx(VO,{scope:a,isRootMenu:r,rootNavigationMenu:i,value:m,previousValue:ys(m),baseId:Al(),dir:s,orientation:c,viewport:E,onViewportChange:S,indicatorTrack:T,onIndicatorTrackChange:R,onTriggerEnter:nt(y),onTriggerLeave:nt(x),onContentEnter:nt(w),onContentLeave:nt(j),onItemSelect:nt(p),onItemDismiss:nt(g),onViewportContentChange:v.useCallback((D,L)=>{_(K=>(K.set(D,L),new Map(K)))},[]),onViewportContentRemove:v.useCallback(D=>{_(L=>L.has(D)?(L.delete(D),new Map(L)):L)},[]),children:u.jsx(Cp.Provider,{scope:a,children:u.jsx(KO,{scope:a,items:C,children:h})})})},Aj="NavigationMenuList",PO=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,s=Tn(Aj,r),c=u.jsx(oe.ul,{"data-orientation":s.orientation,...i,ref:a});return u.jsx(oe.div,{style:{position:"relative"},ref:s.onIndicatorTrackChange,children:u.jsx(Cp.Slot,{scope:r,children:s.isRootMenu?u.jsx(zj,{asChild:!0,children:c}):c})})});PO.displayName=Aj;var kj="NavigationMenuItem",[JO,Dj]=_p(kj),IO=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,...s}=n,c=Al(),h=i||c||"LEGACY_REACT_AUTO_VALUE",m=v.useRef(null),p=v.useRef(null),g=v.useRef(null),y=v.useRef(()=>{}),x=v.useRef(!1),w=v.useCallback((E="start")=>{if(m.current){y.current();const S=bm(m.current);S.length&&Mp(E==="start"?S:S.reverse())}},[]),j=v.useCallback(()=>{if(m.current){const E=bm(m.current);E.length&&(y.current=c5(E))}},[]);return u.jsx(JO,{scope:r,value:h,triggerRef:p,contentRef:m,focusProxyRef:g,wasEscapeCloseRef:x,onEntryKeyDown:w,onFocusProxyEnter:w,onRootContentClose:j,onContentFocusOutside:j,children:u.jsx(oe.li,{...s,ref:a})})});IO.displayName=kj;var xm="NavigationMenuTrigger",WO=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,disabled:i,...s}=n,c=Tn(xm,n.__scopeNavigationMenu),h=Dj(xm,n.__scopeNavigationMenu),m=v.useRef(null),p=we(m,h.triggerRef,a),g=Uj(c.baseId,h.value),y=qj(c.baseId,h.value),x=v.useRef(!1),w=v.useRef(!1),j=h.value===c.value;return u.jsxs(u.Fragment,{children:[u.jsx(Cp.ItemSlot,{scope:r,value:h.value,children:u.jsx(Lj,{asChild:!0,children:u.jsx(oe.button,{id:g,disabled:i,"data-disabled":i?"":void 0,"data-state":Ap(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,xc(()=>{i||w.current||h.wasEscapeCloseRef.current||x.current||(c.onTriggerEnter(h.value),x.current=!0)})),onPointerLeave:ae(n.onPointerLeave,xc(()=>{i||(c.onTriggerLeave(),x.current=!1)})),onClick:ae(n.onClick,()=>{c.onItemSelect(h.value),w.current=j}),onKeyDown:ae(n.onKeyDown,E=>{const S={horizontal:"ArrowDown",vertical:c.dir==="rtl"?"ArrowLeft":"ArrowRight"}[c.orientation];j&&E.key===S&&(h.onEntryKeyDown(),E.preventDefault())})})})}),j&&u.jsxs(u.Fragment,{children:[u.jsx(hS,{"aria-hidden":!0,tabIndex:0,ref:h.focusProxyRef,onFocus:E=>{const S=h.contentRef.current,C=E.relatedTarget,_=C===m.current,T=S==null?void 0:S.contains(C);(_||!T)&&h.onFocusProxyEnter(_?"start":"end")}}),c.viewport&&u.jsx("span",{"aria-owns":y})]})]})});WO.displayName=xm;var e5="NavigationMenuLink",Fx="navigationMenu.linkSelect",t5=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,active:i,onSelect:s,...c}=n;return u.jsx(Lj,{asChild:!0,children:u.jsx(oe.a,{"data-active":i?"":void 0,"aria-current":i?"page":void 0,...c,ref:a,onClick:ae(n.onClick,h=>{const m=h.target,p=new CustomEvent(Fx,{bubbles:!0,cancelable:!0});if(m.addEventListener(Fx,g=>s==null?void 0:s(g),{once:!0}),ic(m,p),!p.defaultPrevented&&!h.metaKey){const g=new CustomEvent(tc,{bubbles:!0,cancelable:!0});ic(m,g)}},{checkForDefaultPrevented:!1})})})});t5.displayName=e5;var Tp="NavigationMenuIndicator",n5=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=Tn(Tp,n.__scopeNavigationMenu),c=!!s.value;return s.indicatorTrack?Qb.createPortal(u.jsx(jt,{present:r||c,children:u.jsx(a5,{...i,ref:a})}),s.indicatorTrack):null});n5.displayName=Tp;var a5=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,s=Tn(Tp,r),c=Rj(r),[h,m]=v.useState(null),[p,g]=v.useState(null),y=s.orientation==="horizontal",x=!!s.value;v.useEffect(()=>{var j;const E=(j=c().find(S=>S.value===s.value))==null?void 0:j.ref.current;E&&m(E)},[c,s.value]);const w=()=>{h&&g({size:y?h.offsetWidth:h.offsetHeight,offset:y?h.offsetLeft:h.offsetTop})};return wm(h,w),wm(s.indicatorTrack,w),p?u.jsx(oe.div,{"aria-hidden":!0,"data-state":x?"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}),Mi="NavigationMenuContent",l5=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=Tn(Mi,n.__scopeNavigationMenu),c=Dj(Mi,n.__scopeNavigationMenu),h=we(c.contentRef,a),m=c.value===s.value,p={value:c.value,triggerRef:c.triggerRef,focusProxyRef:c.focusProxyRef,wasEscapeCloseRef:c.wasEscapeCloseRef,onContentFocusOutside:c.onContentFocusOutside,onRootContentClose:c.onRootContentClose,...i};return s.viewport?u.jsx(r5,{forceMount:r,...p,ref:h}):u.jsx(jt,{present:r||m,children:u.jsx(Oj,{"data-state":Ap(m),...p,ref:h,onPointerEnter:ae(n.onPointerEnter,s.onContentEnter),onPointerLeave:ae(n.onPointerLeave,xc(s.onContentLeave)),style:{pointerEvents:!m&&s.isRootMenu?"none":void 0,...p.style}})})});l5.displayName=Mi;var r5=v.forwardRef((n,a)=>{const r=Tn(Mi,n.__scopeNavigationMenu),{onViewportContentChange:i,onViewportContentRemove:s}=r;return lt(()=>{i(n.value,{ref:a,...n})},[n,a,i]),lt(()=>()=>s(n.value),[n.value,s]),null}),tc="navigationMenu.rootContentDismiss",Oj=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,triggerRef:s,focusProxyRef:c,wasEscapeCloseRef:h,onRootContentClose:m,onContentFocusOutside:p,...g}=n,y=Tn(Mi,r),x=v.useRef(null),w=we(x,a),j=Uj(y.baseId,i),E=qj(y.baseId,i),S=Rj(r),C=v.useRef(null),{onItemDismiss:_}=y;v.useEffect(()=>{const R=x.current;if(y.isRootMenu&&R){const D=()=>{var L;_(),m(),R.contains(document.activeElement)&&((L=s.current)==null||L.focus())};return R.addEventListener(tc,D),()=>R.removeEventListener(tc,D)}},[y.isRootMenu,n.value,s,_,m]);const T=v.useMemo(()=>{const R=S().map($=>$.value);y.dir==="rtl"&&R.reverse();const D=R.indexOf(y.value),L=R.indexOf(y.previousValue),K=i===y.value,H=L===R.indexOf(i);if(!K&&!H)return C.current;const q=(()=>{if(D!==L){if(K&&L!==-1)return D>L?"from-end":"from-start";if(H&&D!==-1)return D>L?"to-start":"to-end"}return null})();return C.current=q,q},[y.previousValue,y.value,y.dir,S,i]);return u.jsx(zj,{asChild:!0,children:u.jsx(Bi,{id:E,"aria-labelledby":j,"data-motion":T,"data-orientation":y.orientation,...g,ref:w,disableOutsidePointerEvents:!1,onDismiss:()=>{var R;const D=new Event(tc,{bubbles:!0,cancelable:!0});(R=x.current)==null||R.dispatchEvent(D)},onFocusOutside:ae(n.onFocusOutside,R=>{var D;p();const L=R.target;(D=y.rootNavigationMenu)!=null&&D.contains(L)&&R.preventDefault()}),onPointerDownOutside:ae(n.onPointerDownOutside,R=>{var D;const L=R.target,K=S().some(q=>{var $;return($=q.ref.current)==null?void 0:$.contains(L)}),H=y.isRootMenu&&((D=y.viewport)==null?void 0:D.contains(L));(K||H||!y.isRootMenu)&&R.preventDefault()}),onKeyDown:ae(n.onKeyDown,R=>{var D;const L=R.altKey||R.ctrlKey||R.metaKey;if(R.key==="Tab"&&!L){const K=bm(R.currentTarget),H=document.activeElement,q=K.findIndex(te=>te===H),$=R.shiftKey?K.slice(0,q).reverse():K.slice(q+1,K.length);Mp($)?R.preventDefault():(D=c.current)==null||D.focus()}}),onEscapeKeyDown:ae(n.onEscapeKeyDown,R=>{h.current=!0})})})}),Rp="NavigationMenuViewport",i5=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=!!Tn(Rp,n.__scopeNavigationMenu).value;return u.jsx(jt,{present:r||s,children:u.jsx(o5,{...i,ref:a})})});i5.displayName=Rp;var o5=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,children:i,...s}=n,c=Tn(Rp,r),h=we(a,c.onViewportChange),m=XO(Mi,n.__scopeNavigationMenu),[p,g]=v.useState(null),[y,x]=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=!!c.value,S=E?c.value:c.previousValue;return wm(y,()=>{y&&g({width:y.offsetWidth,height:y.offsetHeight})}),u.jsx(oe.div,{"data-state":Ap(E),"data-orientation":c.orientation,...s,ref:h,style:{pointerEvents:!E&&c.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":w,"--radix-navigation-menu-viewport-height":j,...s.style},onPointerEnter:ae(n.onPointerEnter,c.onContentEnter),onPointerLeave:ae(n.onPointerLeave,xc(c.onContentLeave)),children:Array.from(m.items).map(([C,{ref:_,forceMount:T,...R}])=>{const D=S===C;return u.jsx(jt,{present:T||D,children:u.jsx(Oj,{...R,ref:ms(_,L=>{D&&L&&x(L)})})},C)})})}),s5="FocusGroup",zj=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,s=Tn(s5,r);return u.jsx(gm.Provider,{scope:r,children:u.jsx(gm.Slot,{scope:r,children:u.jsx(oe.div,{dir:s.dir,...i,ref:a})})})}),Zx=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],u5="FocusGroupItem",Lj=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,s=$O(r),c=Tn(u5,r);return u.jsx(gm.ItemSlot,{scope:r,children:u.jsx(oe.button,{...i,ref:a,onKeyDown:ae(n.onKeyDown,h=>{if(["Home","End",...Zx].includes(h.key)){let m=s().map(p=>p.ref.current);if([c.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(h.key)&&m.reverse(),Zx.includes(h.key)){const p=m.indexOf(h.currentTarget);m=m.slice(p+1)}setTimeout(()=>Mp(m)),h.preventDefault()}})})})});function bm(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 Mp(n){const a=document.activeElement;return n.some(r=>r===a?!0:(r.focus(),document.activeElement!==a))}function c5(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 wm(n,a){const r=nt(a);lt(()=>{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 Ap(n){return n?"open":"closed"}function Uj(n,a){return`${n}-trigger-${a}`}function qj(n,a){return`${n}-content-${a}`}function xc(n){return a=>a.pointerType==="mouse"?n(a):void 0}var Px={exports:{}},Oh={};/**
352
+ * @license React
353
+ * use-sync-external-store-shim.production.js
354
+ *
355
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
356
+ *
357
+ * This source code is licensed under the MIT license found in the
358
+ * LICENSE file in the root directory of this source tree.
359
+ */var Jx;function d5(){if(Jx)return Oh;Jx=1;var n=st;function a(x,w){return x===w&&(x!==0||1/x===1/w)||x!==x&&w!==w}var r=typeof Object.is=="function"?Object.is:a,i=n.useState,s=n.useEffect,c=n.useLayoutEffect,h=n.useDebugValue;function m(x,w){var j=w(),E=i({inst:{value:j,getSnapshot:w}}),S=E[0].inst,C=E[1];return c(function(){S.value=j,S.getSnapshot=w,p(S)&&C({inst:S})},[x,j,w]),s(function(){return p(S)&&C({inst:S}),x(function(){p(S)&&C({inst:S})})},[x]),h(j),j}function p(x){var w=x.getSnapshot;x=x.value;try{var j=w();return!r(x,j)}catch{return!0}}function g(x,w){return w()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:m;return Oh.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:y,Oh}var Ix;function f5(){return Ix||(Ix=1,Px.exports=d5()),Px.exports}var h5=f5();function m5(){return h5.useSyncExternalStore(p5,()=>!0,()=>!1)}function p5(){return()=>{}}var kp="Avatar",[v5,s6]=gt(kp),[g5,Hj]=v5(kp),Bj=v.forwardRef((n,a)=>{const{__scopeAvatar:r,...i}=n,[s,c]=v.useState("idle");return u.jsx(g5,{scope:r,imageLoadingStatus:s,onImageLoadingStatusChange:c,children:u.jsx(oe.span,{...i,ref:a})})});Bj.displayName=kp;var Qj="AvatarImage",Gj=v.forwardRef((n,a)=>{const{__scopeAvatar:r,src:i,onLoadingStatusChange:s=()=>{},...c}=n,h=Hj(Qj,r),m=y5(i,c),p=nt(g=>{s(g),h.onImageLoadingStatusChange(g)});return lt(()=>{m!=="idle"&&p(m)},[m,p]),m==="loaded"?u.jsx(oe.img,{...c,ref:a,src:i}):null});Gj.displayName=Qj;var $j="AvatarFallback",Yj=v.forwardRef((n,a)=>{const{__scopeAvatar:r,delayMs:i,...s}=n,c=Hj($j,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&&c.imageLoadingStatus!=="loaded"?u.jsx(oe.span,{...s,ref:a}):null});Yj.displayName=$j;function Wx(n,a){return n?a?(n.src!==a&&(n.src=a),n.complete&&n.naturalWidth>0?"loaded":"loading"):"error":"idle"}function y5(n,{referrerPolicy:a,crossOrigin:r}){const i=m5(),s=v.useRef(null),c=i?(s.current||(s.current=new window.Image),s.current):null,[h,m]=v.useState(()=>Wx(c,n));return lt(()=>{m(Wx(c,n))},[c,n]),lt(()=>{const p=x=>()=>{m(x)};if(!c)return;const g=p("loaded"),y=p("error");return c.addEventListener("load",g),c.addEventListener("error",y),a&&(c.referrerPolicy=a),typeof r=="string"&&(c.crossOrigin=r),()=>{c.removeEventListener("load",g),c.removeEventListener("error",y)}},[c,r,a]),h}var x5=Bj,b5=Gj,w5=Yj;x5.displayName;b5.displayName;w5.displayName;e3.displayName;t3.displayName;F4.displayName;P4.displayName;J4.displayName;I4.displayName;Z4.displayName;W4.displayName;pe("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 S5="";async function dt(n,a){const r=await fetch(`${S5}${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 await r.json()}async function Dp(){return await dt("/api/config")}async function j5(n,a){return await dt(`/api/db/${n}/query`,{method:"POST",body:JSON.stringify({query:a})})}async function E5(n){return await dt(`/api/db/${n}/tables`)}async function N5(n,a,r,i){return await dt(`/api/db/${n}/tables/${a}?limit=${r}&offset=${i}`)}async function C5(n){return await dt(`/api/db/${n}/schema`)}async function _5(n,a=20,r=0,i=""){const s=new URLSearchParams({limit:String(a),offset:String(r)});return i&&s.set("search",i),await dt(`/api/state/${n}/entries?${s.toString()}`)}async function T5(n){return await dt(`/api/queue/${n}/metrics`)}async function R5(n,a=10){return await dt(`/api/queue/${n}/messages?limit=${a}`)}async function M5(n,a=20,r=0,i,s){const c=new URLSearchParams({limit:String(a),offset:String(r)});return i&&c.set("status",i),s&&c.set("since",s),await dt(`/api/workflow/${n}/executions?${c.toString()}`)}async function A5(n,a){return await dt(`/api/workflow/${n}/executions/${a}`)}async function k5(n,a=20,r=0){return await dt(`/api/timer/${n}/entries?limit=${a}&offset=${r}`)}async function D5(n){return await dt(`/api/timer/${n}/metrics`)}async function O5(n,a=20){return await dt(`/api/timer/${n}/executions?limit=${a}`)}async function z5(n,a=20){return await dt(`/api/cron/${n}/executions?limit=${a}`)}async function L5(){return await dt("/api/auth/tables")}async function U5(n,a,r){return await dt(`/api/auth/tables/${n}?limit=${a}&offset=${r}`)}async function q5(){return await dt("/api/auth/schema")}async function H5(n){return await dt("/api/auth/query",{method:"POST",body:JSON.stringify({query:n})})}async function B5(){return await dt("/api/auth/settings")}async function Q5(n){return await dt("/api/auth/settings",{method:"PATCH",body:JSON.stringify(n)})}async function G5(n,a=20,r=0){return await dt(`/api/fs/${n}/entries?limit=${a}&offset=${r}`)}function Ol(){return u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(qn,{className:"h-6 w-6 animate-spin text-muted-foreground"})})}function Ha({children:n}){return u.jsx("div",{className:"flex items-center justify-center py-8 text-muted-foreground",children:n})}function Xi({id:n}){return u.jsxs("span",{className:"font-mono text-xs",children:[n.slice(0,8),"..."]})}function Un({title:n,value:a,icon:r,isLoading:i}){return u.jsxs(wt,{children:[u.jsxs(kt,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[u.jsx(Dt,{className:"text-sm font-medium",children:n}),r]}),u.jsx(St,{children:u.jsx("div",{className:"text-2xl font-bold",children:i?u.jsx(qn,{className:"h-5 w-5 animate-spin"}):a})})]})}function Fi({title:n,children:a}){return u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:n}),a]})}const $5={PENDING:{variant:"default",icon:u.jsx(vr,{className:"h-3 w-3"}),label:"Pending"},RUNNING:{variant:"blue",icon:u.jsx(qn,{className:"h-3 w-3 animate-spin"}),label:"Running"},COMPLETED:{variant:"success",icon:u.jsx(_l,{className:"h-3 w-3"}),label:"Completed"},FAILED:{variant:"error",icon:u.jsx(zi,{className:"h-3 w-3"}),label:"Failed"},CANCELLED:{variant:"default",icon:u.jsx(L_,{className:"h-3 w-3"}),label:"Cancelled"}},Y5={PENDING:{variant:"default",icon:u.jsx(vr,{className:"h-3 w-3"}),label:"Pending"},PROCESSING:{variant:"blue",icon:u.jsx(qn,{className:"h-3 w-3 animate-spin"}),label:"Processing"},ACKNOWLEDGED:{variant:"success",icon:u.jsx(_l,{className:"h-3 w-3"}),label:"Acknowledged"},FAILED:{variant:"error",icon:u.jsx(zi,{className:"h-3 w-3"}),label:"Failed"},DEAD_LETTER:{variant:"orange",icon:u.jsx(X_,{className:"h-3 w-3"}),label:"Dead Letter"}};function Op({status:n}){const a=$5[n];return a?u.jsx(Ci,{variant:a.variant,icon:a.icon,children:a.label}):u.jsx(Ci,{children:n})}const V5={PENDING:{variant:"default",icon:u.jsx(vr,{className:"h-3 w-3"}),label:"Pending"},FIRED:{variant:"success",icon:u.jsx(_l,{className:"h-3 w-3"}),label:"Fired"},COMPLETED:{variant:"success",icon:u.jsx(_l,{className:"h-3 w-3"}),label:"Completed"},FAILED:{variant:"error",icon:u.jsx(zi,{className:"h-3 w-3"}),label:"Failed"}};function Vj({status:n}){const a=V5[n];return a?u.jsx(Ci,{variant:a.variant,icon:a.icon,children:a.label}):u.jsx(Ci,{children:n})}function K5({status:n}){const a=Y5[n];return a?u.jsx(Ci,{variant:a.variant,icon:a.icon,children:a.label}):u.jsx(Ci,{children:n})}function X5(n){if(n<1e3)return`${n}ms`;const a=Math.floor(n/1e3);if(a<60)return`${a}s`;const r=Math.floor(a/60),i=a%60;if(r<60)return i===0?`${r}m`:`${r}m ${i}s`;const s=Math.floor(r/60),c=r%60;if(s<24)return c===0?`${s}h`:`${s}h ${c}m`;const h=Math.floor(s/24),m=s%24;return m===0?`${h}d`:`${h}d ${m}h`}function F5({metrics:n,isLoading:a}){return u.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[u.jsx(Un,{title:"Pending",value:(n==null?void 0:n.pending)??0,icon:u.jsx(vr,{className:"h-4 w-4 text-muted-foreground"}),isLoading:a}),u.jsx(Un,{title:"Fired",value:(n==null?void 0:n.fired)??0,icon:u.jsx(_l,{className:"h-4 w-4 text-green-500"}),isLoading:a})]})}function Z5({entries:n,isLoading:a}){return u.jsxs(wt,{children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:"Scheduled Timers"}),u.jsx(Zt,{children:"Timer entries scheduled by your worker (auto-refreshes every 5 seconds)"})]}),u.jsx(St,{children:a?u.jsx(Ol,{}):n!=null&&n.length?u.jsxs(La,{children:[u.jsx(Ua,{children:u.jsxs(Ct,{children:[u.jsx(De,{children:"ID"}),u.jsx(De,{children:"Status"}),u.jsx(De,{children:"Scheduled Time"}),u.jsx(De,{children:"Interval"}),u.jsx(De,{children:"Payload"}),u.jsx(De,{children:"Created"})]})}),u.jsx(qa,{children:n.map(r=>u.jsxs(Ct,{children:[u.jsx(Oe,{children:u.jsx(Xi,{id:r.id})}),u.jsx(Oe,{children:u.jsx(Vj,{status:r.status})}),u.jsx(Oe,{children:u.jsx(cn,{timestamp:r.scheduledTime})}),u.jsx(Oe,{className:"text-xs",children:r.intervalMs!=null?u.jsxs("span",{className:"inline-flex items-center gap-1",children:[u.jsx(mT,{className:"h-3 w-3"}),X5(r.intervalMs)]}):"-"}),u.jsx(Oe,{className:"max-w-[200px] truncate font-mono text-xs",children:r.payload!=null?JSON.stringify(r.payload):"-"}),u.jsx(Oe,{children:u.jsx(cn,{timestamp:r.createdAt})})]},r.id))})]}):u.jsx(Ha,{children:"No timers scheduled"})})]})}function P5({executions:n,isLoading:a}){return u.jsxs(wt,{children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:"Execution History"}),u.jsx(Zt,{children:"Recent timer handler executions"})]}),u.jsx(St,{children:a?u.jsx(Ol,{}):n!=null&&n.length?u.jsxs(La,{children:[u.jsx(Ua,{children:u.jsxs(Ct,{children:[u.jsx(De,{children:"Timer ID"}),u.jsx(De,{children:"Status"}),u.jsx(De,{children:"Scheduled Time"}),u.jsx(De,{children:"Duration"}),u.jsx(De,{children:"Error"}),u.jsx(De,{children:"Executed"})]})}),u.jsx(qa,{children:n.map(r=>u.jsxs(Ct,{children:[u.jsx(Oe,{children:u.jsx(Xi,{id:r.timerId})}),u.jsx(Oe,{children:u.jsx(Vj,{status:r.status})}),u.jsx(Oe,{children:u.jsx(cn,{timestamp:r.scheduledTime})}),u.jsx(Oe,{children:r.durationMs!=null?`${r.durationMs}ms`:"-"}),u.jsx(Oe,{className:"max-w-[200px] truncate text-xs text-red-500",children:r.error??"-"}),u.jsx(Oe,{children:u.jsx(cn,{timestamp:r.createdAt})})]},r.id))})]}):u.jsx(Ha,{children:"No timer executions yet"})})]})}function J5(){const{binding:n}=Ml(),a=n||"",{data:r,isLoading:i}=vt({queryKey:["timerMetrics",a],queryFn:()=>D5(a),enabled:!!a,refetchInterval:5e3}),{data:s,isLoading:c}=vt({queryKey:["timerEntries",a],queryFn:()=>k5(a,20),enabled:!!a,refetchInterval:5e3}),{data:h,isLoading:m}=vt({queryKey:["timerExecutions",a],queryFn:()=>O5(a,20),enabled:!!a,refetchInterval:5e3});return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(Fi,{title:`Timers: ${a}`}),u.jsx(F5,{metrics:r==null?void 0:r.metrics,isLoading:i}),u.jsx(Z5,{entries:s==null?void 0:s.entries,isLoading:c}),u.jsx(P5,{executions:h==null?void 0:h.executions,isLoading:m})]})})}function I5({column:n,onInsertText:a}){return u.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?u.jsx(Kb,{className:"h-3 w-3 shrink-0 text-yellow-500"}):u.jsx(Yb,{className:"h-3 w-3 shrink-0 text-muted-foreground"}),u.jsx("span",{className:"truncate font-mono",children:n.name}),u.jsxs("span",{className:"ml-auto truncate text-muted-foreground",children:[n.type,n.notNull&&!n.primaryKey&&" NOT NULL"]})]})}function W5({table:n,onInsertText:a}){const[r,i]=v.useState(!1);return u.jsxs(Cj,{open:r,onOpenChange:i,children:[u.jsxs(_j,{className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm hover:bg-muted",children:[r?u.jsx($b,{className:"h-4 w-4 shrink-0"}):u.jsx(Oi,{className:"h-4 w-4 shrink-0"}),u.jsx(Ec,{className:"h-4 w-4 shrink-0 text-blue-500"}),u.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}),u.jsxs("span",{className:"ml-auto text-xs text-muted-foreground",children:[n.columns.length," cols"]})]}),u.jsx(Tj,{children:u.jsx("div",{className:"ml-4 border-l pl-2",children:n.columns.map(s=>u.jsx(I5,{column:s,onInsertText:a},s.name))})})]})}function ez({onInsertText:n}){const{data:a,isLoading:r,refetch:i}=vt({queryKey:["auth-schema"],queryFn:q5,staleTime:3e4}),s=(a==null?void 0:a.tables)||[];return u.jsxs("div",{className:"flex h-full flex-col border-l bg-card",children:[u.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[u.jsx("h3",{className:"text-sm font-semibold",children:"Auth Tables"}),u.jsx(Ie,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>i(),disabled:r,children:u.jsx(hs,{className:pe("h-4 w-4",r&&"animate-spin")})})]}),u.jsx(_w,{className:"flex-1",children:u.jsx("div",{className:"p-2",children:r?u.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"Loading schema..."}):s.length===0?u.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No tables found"}):u.jsx("div",{className:"space-y-0.5",children:s.map(c=>u.jsx(W5,{table:c,onInsertText:n},c.name))})})}),u.jsx("div",{className:"border-t px-3 py-2 text-xs text-muted-foreground",children:"Click table/column names to insert"})]})}function tz(n){return n===null?"NULL":n===void 0?"":typeof n=="object"?JSON.stringify(n):String(n)}function nz(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 az({settings:n,onUpdate:a,isUpdating:r}){const[i,s]=v.useState(n.sessionTokenExpiry.toString()),[c,h]=v.useState(n.allowSignups),[m,p]=v.useState(n.requireEmailVerification),[g,y]=v.useState(n.requireName),x=()=>{a({sessionTokenExpiry:parseInt(i,10),allowSignups:c,requireEmailVerification:m,requireName:g})},w=parseInt(i,10)!==n.sessionTokenExpiry||c!==n.allowSignups||m!==n.requireEmailVerification||g!==n.requireName;return u.jsxs("div",{className:"space-y-6",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx(Po,{htmlFor:"sessionTokenExpiry",children:"Session Token Expiry (seconds)"}),u.jsx(hw,{id:"sessionTokenExpiry",type:"number",min:3600,max:7776e3,value:i,onChange:j=>s(j.target.value)}),u.jsxs("p",{className:"text-xs text-muted-foreground",children:["Current: ",nz(parseInt(i,10)||0)," (min: 1 hour, max: 90 days)"]})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"space-y-0.5",children:[u.jsx(Po,{children:"Allow Signups"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Allow new users to create accounts"})]}),u.jsx(Dh,{checked:c,onCheckedChange:h})]}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"space-y-0.5",children:[u.jsx(Po,{children:"Require Email Verification"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Users must verify their email before accessing the app"})]}),u.jsx(Dh,{checked:m,onCheckedChange:p})]}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"space-y-0.5",children:[u.jsx(Po,{children:"Require Name"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Require users to enter their name during sign up"})]}),u.jsx(Dh,{checked:g,onCheckedChange:y})]})]}),u.jsx("div",{className:"flex justify-end",children:u.jsx(Ie,{onClick:x,disabled:!w||r,children:r?"Saving...":"Save Settings"})})]})}function lz(){var W,ie,re,U,I,Y;const n=_m(),[a,r]=v.useState("settings"),[i,s]=v.useState(""),[c,h]=v.useState(null),[m,p]=v.useState(null),[g,y]=v.useState(null),[x,w]=v.useState(0),j=50,S=((ie=(W=vt({queryKey:["config"],queryFn:Dp,staleTime:6e4}).data)==null?void 0:W.auth)==null?void 0:ie.binding)||"AUTH",C=vt({queryKey:["auth-settings"],queryFn:B5,staleTime:0}),_=Ph({mutationFn:Q5,onSuccess:()=>{n.invalidateQueries({queryKey:["auth-settings"]})}}),T=X=>{_.mutate(X)},R=v.useCallback(X=>{s(de=>de+X)},[]),D=Ph({mutationFn:X=>H5(X),onSuccess:X=>{h(X),p(null)},onError:X=>{p(X instanceof Error?X.message:"Failed to execute query"),h(null)}}),L=()=>{i.trim()&&D.mutate(i)},K=vt({queryKey:["auth-tables"],queryFn:L5,staleTime:0,gcTime:0}),H=vt({queryKey:["auth-tableData",g,j,x],queryFn:()=>U5(g,j,x),staleTime:0,gcTime:0,enabled:!!g}),q=((re=K.data)==null?void 0:re.tables)||[],$=((U=H.data)==null?void 0:U.data)||[],te=((I=H.data)==null?void 0:I.columns)||[],ue=((Y=H.data)==null?void 0:Y.total)||0,ce=X=>{y(X),w(0)};return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Auth: ",S]}),u.jsxs("div",{className:"flex items-start gap-3 rounded-lg border bg-muted/50 p-4",children:[u.jsx(Vb,{className:"h-5 w-5 mt-0.5 text-blue-500 shrink-0"}),u.jsxs("div",{children:[u.jsx("p",{className:"font-medium",children:"Ploy Auth Database"}),u.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."})]})]}),u.jsxs(cj,{value:a,onValueChange:r,children:[u.jsxs(dj,{children:[u.jsxs(Io,{value:"settings",children:[u.jsx(yT,{className:"mr-2 h-4 w-4"}),"Settings"]}),u.jsx(Io,{value:"query",children:"SQL Editor"}),u.jsx(Io,{value:"tables",children:"Tables"})]}),u.jsx(Wo,{value:"settings",className:"mt-4",children:u.jsxs(wt,{children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:"Auth Settings"}),u.jsx(Zt,{children:"Configure authentication settings for local development."})]}),u.jsx(St,{children:C.isLoading?u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(qn,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):C.data?u.jsx(az,{settings:C.data,onUpdate:T,isUpdating:_.isPending}):u.jsx("p",{className:"text-muted-foreground",children:"Failed to load settings"})})]})}),u.jsx(Wo,{value:"query",className:"mt-4",children:u.jsxs("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-[1fr_280px]",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsxs(wt,{children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:"SQL Query"}),u.jsx(Zt,{children:"Execute read-only SELECT queries against auth tables"})]}),u.jsxs(St,{className:"space-y-4",children:[u.jsx("textarea",{value:i,onChange:X=>s(X.target.value),onKeyDown:X=>{(X.metaKey||X.ctrlKey)&&X.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"}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"text-xs text-muted-foreground",children:"Press Cmd/Ctrl + Enter to execute (SELECT only)"}),u.jsxs(Ie,{onClick:L,disabled:D.isPending||!i.trim(),children:[u.jsx(Xb,{className:"mr-2 h-4 w-4"}),D.isPending?"Executing...":"Execute"]})]})]})]}),m&&u.jsx(wt,{className:"border-destructive/50",children:u.jsx(St,{className:"pt-6",children:u.jsx("p",{className:"font-mono text-sm text-destructive",children:m})})}),c&&u.jsx(ow,{results:c.results,meta:c.meta,error:c.error})]}),u.jsx("div",{className:"hidden h-[500px] lg:block",children:u.jsx(ez,{onInsertText:R})})]})}),u.jsx(Wo,{value:"tables",className:"mt-4",children:u.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-4",children:[u.jsxs(wt,{className:"md:col-span-1",children:[u.jsxs(kt,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[u.jsx(Dt,{className:"text-base",children:"Tables"}),u.jsx(Ie,{variant:"ghost",size:"icon",onClick:()=>K.refetch(),className:"h-8 w-8",children:u.jsx(hs,{className:"h-4 w-4"})})]}),u.jsx(St,{children:K.isLoading?u.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):q.length===0?u.jsx("p",{className:"text-sm text-muted-foreground",children:"No tables found"}):u.jsx("div",{className:"space-y-1",children:q.map(X=>u.jsxs("button",{onClick:()=>ce(X.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===X.name?"bg-muted font-medium":""}`,children:[u.jsx(Ec,{className:"h-4 w-4 shrink-0"}),u.jsx("span",{className:"truncate",children:X.name})]},X.name))})})]}),u.jsxs(wt,{className:"md:col-span-3",children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:g||"Select a Table"}),g&&u.jsxs(Zt,{children:[ue," total rows"]})]}),u.jsx(St,{children:g?H.isLoading?u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(qn,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):$.length===0?u.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"No data in this table"}):u.jsxs("div",{className:"space-y-4",children:[u.jsx("div",{className:"overflow-x-auto rounded-md border",children:u.jsxs(La,{children:[u.jsx(Ua,{children:u.jsx(Ct,{children:te.map(X=>u.jsx(De,{className:"font-mono",children:X},X))})}),u.jsx(qa,{children:$.map((X,de)=>u.jsx(Ct,{children:te.map(A=>u.jsx(Oe,{className:"font-mono text-sm",children:tz(X[A])},A))},de))})]})}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("span",{className:"text-sm text-muted-foreground",children:["Showing ",x+1," -"," ",Math.min(x+j,ue)," of ",ue]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(Ie,{variant:"outline",size:"sm",disabled:x===0,onClick:()=>w(Math.max(0,x-j)),children:[u.jsx(jc,{className:"mr-1 h-4 w-4"}),"Previous"]}),u.jsxs(Ie,{variant:"outline",size:"sm",disabled:x+j>=ue,onClick:()=>w(x+j),children:["Next",u.jsx(Oi,{className:"ml-1 h-4 w-4"})]})]})]})]}):u.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"Select a table from the list to view its data"})})]})]})})]})]})})}function rz({executions:n,cronExpression:a,isLoading:r}){const i=(n==null?void 0:n.filter(c=>c.status==="COMPLETED").length)??0,s=(n==null?void 0:n.filter(c=>c.status==="FAILED").length)??0;return u.jsxs("div",{className:"grid gap-4 md:grid-cols-3",children:[u.jsx(Un,{title:"Schedule",value:a??"-",icon:u.jsx(vr,{className:"h-4 w-4 text-muted-foreground"}),isLoading:r}),u.jsx(Un,{title:"Completed",value:i,icon:u.jsx(_l,{className:"h-4 w-4 text-green-500"}),isLoading:r}),u.jsx(Un,{title:"Failed",value:s,icon:u.jsx(zi,{className:"h-4 w-4 text-red-500"}),isLoading:r})]})}function iz({executions:n,isLoading:a}){return u.jsxs(wt,{children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:"Execution History"}),u.jsx(Zt,{children:"Recent cron handler executions (auto-refreshes every 5 seconds)"})]}),u.jsx(St,{children:a?u.jsx(Ol,{}):n!=null&&n.length?u.jsxs(La,{children:[u.jsx(Ua,{children:u.jsxs(Ct,{children:[u.jsx(De,{children:"ID"}),u.jsx(De,{children:"Status"}),u.jsx(De,{children:"Triggered"}),u.jsx(De,{children:"Duration"}),u.jsx(De,{children:"Error"}),u.jsx(De,{children:"Completed"})]})}),u.jsx(qa,{children:n.map(r=>u.jsxs(Ct,{children:[u.jsx(Oe,{children:u.jsx(Xi,{id:r.id})}),u.jsx(Oe,{children:u.jsx(Op,{status:r.status})}),u.jsx(Oe,{children:u.jsx(cn,{timestamp:r.triggeredAt})}),u.jsx(Oe,{children:r.durationMs!=null?`${r.durationMs}ms`:"-"}),u.jsx(Oe,{className:"max-w-[200px] truncate text-xs text-red-500",children:r.error??"-"}),u.jsx(Oe,{children:r.completedAt?u.jsx(cn,{timestamp:r.completedAt}):"-"})]},r.id))})]}):u.jsx(Ha,{children:"No cron executions yet"})})]})}function oz(){const{binding:n}=Ml(),a=n||"",{data:r,isLoading:i}=vt({queryKey:["cronExecutions",a],queryFn:()=>z5(a,20),enabled:!!a,refetchInterval:5e3});return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(Fi,{title:`Cron: ${a}`}),u.jsx(rz,{executions:r==null?void 0:r.executions,cronExpression:r==null?void 0:r.cronExpression,isLoading:i}),u.jsx(iz,{executions:r==null?void 0:r.executions,isLoading:i})]})})}const er=20;function sz(n){return n<1024?`${n} B`:n<1024*1024?`${(n/1024).toFixed(1)} KB`:n<1024*1024*1024?`${(n/(1024*1024)).toFixed(1)} MB`:`${(n/(1024*1024*1024)).toFixed(1)} GB`}function uz({entries:n,isLoading:a}){return u.jsxs(wt,{children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:"Files"}),u.jsx(Zt,{children:"Stored files with metadata (auto-refreshes every 5 seconds)"})]}),u.jsx(St,{children:a?u.jsx(Ol,{}):n!=null&&n.length?u.jsxs(La,{children:[u.jsx(Ua,{children:u.jsxs(Ct,{children:[u.jsx(De,{children:"Key"}),u.jsx(De,{children:"Size"}),u.jsx(De,{children:"Content Type"}),u.jsx(De,{children:"Created At"})]})}),u.jsx(qa,{children:n.map(r=>u.jsxs(Ct,{children:[u.jsx(Oe,{className:"font-mono text-sm",children:r.key}),u.jsx(Oe,{className:"text-sm text-muted-foreground",children:sz(r.size)}),u.jsx(Oe,{className:"font-mono text-xs text-muted-foreground",children:r.contentType}),u.jsx(Oe,{className:"text-sm text-muted-foreground",children:r.createdAt})]},r.key))})]}):u.jsx(Ha,{children:"No files in this storage"})})]})}function cz(){const{binding:n}=Ml(),a=n||"",[r,i]=v.useState(0),{data:s,isLoading:c}=vt({queryKey:["fileStorageEntries",a,r],queryFn:()=>G5(a,er,r),enabled:!!a,refetchInterval:5e3}),h=(s==null?void 0:s.total)??0,m=Math.floor(r/er)+1,p=Math.ceil(h/er);return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(Fi,{title:`File Storage: ${a}`}),u.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:u.jsx(Un,{title:"Total Files",value:h})}),u.jsx(uz,{entries:s==null?void 0:s.entries,isLoading:c}),h>er&&u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("p",{className:"text-sm text-muted-foreground",children:["Page ",m," of ",p]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(Ie,{variant:"outline",size:"sm",onClick:()=>i(Math.max(0,r-er)),disabled:r===0,children:[u.jsx(jc,{className:"h-4 w-4"}),"Previous"]}),u.jsxs(Ie,{variant:"outline",size:"sm",onClick:()=>i(r+er),disabled:r+er>=h,children:["Next",u.jsx(Oi,{className:"h-4 w-4"})]})]})]})]})})}const Fu=20;function dz({entries:n,isLoading:a}){return u.jsxs(wt,{children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:"State Entries"}),u.jsx(Zt,{children:"Key-value entries in this state store (auto-refreshes every 5 seconds)"})]}),u.jsx(St,{children:a?u.jsx(Ol,{}):n!=null&&n.length?u.jsxs(La,{children:[u.jsx(Ua,{children:u.jsxs(Ct,{children:[u.jsx(De,{children:"Key"}),u.jsx(De,{children:"Value"})]})}),u.jsx(qa,{children:n.map(r=>u.jsxs(Ct,{children:[u.jsx(Oe,{className:"font-mono text-sm",children:r.key}),u.jsx(Oe,{className:"max-w-[400px] truncate font-mono text-xs text-muted-foreground",children:r.value})]},r.key))})]}):u.jsx(Ha,{children:"No entries in this state store"})})]})}function fz(){const{binding:n}=Ml(),a=n||"",[r,i]=v.useState(0),[s,c]=v.useState(""),[h,m]=v.useState(""),{data:p,isLoading:g}=vt({queryKey:["stateEntries",a,r,s],queryFn:()=>_5(a,Fu,r,s),enabled:!!a,refetchInterval:5e3}),y=(p==null?void 0:p.hasMore)??!1,x=Math.floor(r/Fu)+1,w=j=>{j.preventDefault(),c(h),i(0)};return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(Fi,{title:`State: ${a}`}),u.jsxs("form",{onSubmit:w,className:"flex gap-2",children:[u.jsx(hw,{placeholder:"Search by key...",value:h,onChange:j=>m(j.target.value),className:"max-w-sm"}),u.jsxs(Ie,{type:"submit",variant:"outline",size:"sm",children:[u.jsx(vT,{className:"h-4 w-4 mr-1"}),"Search"]}),s&&u.jsx(Ie,{type:"button",variant:"ghost",size:"sm",onClick:()=>{c(""),m(""),i(0)},children:"Clear"})]}),u.jsx(dz,{entries:p==null?void 0:p.entries,isLoading:g}),(r>0||y)&&u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("p",{className:"text-sm text-muted-foreground",children:["Page ",x]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(Ie,{variant:"outline",size:"sm",onClick:()=>i(Math.max(0,r-Fu)),disabled:r===0,children:[u.jsx(jc,{className:"h-4 w-4"}),"Previous"]}),u.jsxs(Ie,{variant:"outline",size:"sm",onClick:()=>i(r+Fu),disabled:!y,children:["Next",u.jsx(Oi,{className:"h-4 w-4"})]})]})]})]})})}function hz({column:n,onInsertText:a}){return u.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?u.jsx(Kb,{className:"h-3 w-3 shrink-0 text-yellow-500"}):u.jsx(Yb,{className:"h-3 w-3 shrink-0 text-muted-foreground"}),u.jsx("span",{className:"truncate font-mono",children:n.name}),u.jsxs("span",{className:"ml-auto truncate text-muted-foreground",children:[n.type,n.notNull&&!n.primaryKey&&" NOT NULL"]})]})}function mz({table:n,onInsertText:a}){const[r,i]=v.useState(!1);return u.jsxs(Cj,{open:r,onOpenChange:i,children:[u.jsxs(_j,{className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm hover:bg-muted",children:[r?u.jsx($b,{className:"h-4 w-4 shrink-0"}):u.jsx(Oi,{className:"h-4 w-4 shrink-0"}),u.jsx(Ec,{className:"h-4 w-4 shrink-0 text-blue-500"}),u.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}),u.jsxs("span",{className:"ml-auto text-xs text-muted-foreground",children:[n.columns.length," cols"]})]}),u.jsx(Tj,{children:u.jsx("div",{className:"ml-4 border-l pl-2",children:n.columns.map(s=>u.jsx(hz,{column:s,onInsertText:a},s.name))})})]})}function pz({bindingName:n,onInsertText:a}){const{data:r,isLoading:i,refetch:s}=vt({queryKey:["schema",n],queryFn:()=>C5(n),staleTime:3e4}),h=((r==null?void 0:r.tables)||[]).filter(m=>!m.name.startsWith("_litestream_"));return u.jsxs("div",{className:"flex h-full flex-col border-l bg-card",children:[u.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[u.jsx("h3",{className:"text-sm font-semibold",children:"Tables"}),u.jsx(Ie,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>s(),disabled:i,children:u.jsx(hs,{className:pe("h-4 w-4",i&&"animate-spin")})})]}),u.jsx(_w,{className:"flex-1",children:u.jsx("div",{className:"p-2",children:i?u.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"Loading schema..."}):h.length===0?u.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No tables found"}):u.jsx("div",{className:"space-y-0.5",children:h.map(m=>u.jsx(mz,{table:m,onInsertText:a},m.name))})})}),u.jsx("div",{className:"border-t px-3 py-2 text-xs text-muted-foreground",children:"Click table/column names to insert"})]})}function vz(n){return n===null?"NULL":n===void 0?"":typeof n=="object"?JSON.stringify(n):String(n)}function gz(){var $,te,ue,ce;const{binding:n}=Ml(),a=n||"",[r,i]=v.useState("query"),[s,c]=v.useState(""),[h,m]=v.useState(null),[p,g]=v.useState(null),[y,x]=v.useState(null),[w,j]=v.useState(0),E=50,S=v.useCallback(W=>{c(ie=>ie+W)},[]),C=Ph({mutationFn:W=>j5(a,W),onSuccess:W=>{m(W),g(null)},onError:W=>{g(W instanceof Error?W.message:"Failed to execute query"),m(null)}}),_=()=>{s.trim()&&C.mutate(s)},T=vt({queryKey:["tables",a],queryFn:()=>E5(a),staleTime:0,gcTime:0,enabled:!!a}),R=vt({queryKey:["tableData",a,y,E,w],queryFn:()=>N5(a,y,E,w),staleTime:0,gcTime:0,enabled:!!a&&!!y}),D=(($=T.data)==null?void 0:$.tables)||[],L=((te=R.data)==null?void 0:te.data)||[],K=((ue=R.data)==null?void 0:ue.columns)||[],H=((ce=R.data)==null?void 0:ce.total)||0,q=W=>{x(W),j(0)};return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Database: ",a]}),u.jsxs(cj,{value:r,onValueChange:i,children:[u.jsxs(dj,{children:[u.jsx(Io,{value:"query",children:"SQL Editor"}),u.jsx(Io,{value:"tables",children:"Tables"})]}),u.jsx(Wo,{value:"query",className:"mt-4",children:u.jsxs("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-[1fr_280px]",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsxs(wt,{children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:"SQL Query"}),u.jsx(Zt,{children:"Execute SQL queries against your database"})]}),u.jsxs(St,{className:"space-y-4",children:[u.jsx("textarea",{value:s,onChange:W=>c(W.target.value),onKeyDown:W=>{(W.metaKey||W.ctrlKey)&&W.key==="Enter"&&_()},placeholder:"SELECT * FROM users LIMIT 10;",className:"w-full h-32 p-2 font-mono text-sm border rounded bg-background"}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"text-xs text-muted-foreground",children:"Press Cmd/Ctrl + Enter to execute"}),u.jsxs(Ie,{onClick:_,disabled:C.isPending||!s.trim(),children:[u.jsx(Xb,{className:"mr-2 h-4 w-4"}),C.isPending?"Executing...":"Execute"]})]})]})]}),p&&u.jsx(wt,{className:"border-destructive/50",children:u.jsx(St,{className:"pt-6",children:u.jsx("p",{className:"font-mono text-sm text-destructive",children:p})})}),h&&u.jsx(ow,{results:h.results,meta:h.meta,error:h.error})]}),u.jsx("div",{className:"hidden h-[500px] lg:block",children:u.jsx(pz,{bindingName:a,onInsertText:S})})]})}),u.jsx(Wo,{value:"tables",className:"mt-4",children:u.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-4",children:[u.jsxs(wt,{className:"md:col-span-1",children:[u.jsxs(kt,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[u.jsx(Dt,{className:"text-base",children:"Tables"}),u.jsx(Ie,{variant:"ghost",size:"icon",onClick:()=>T.refetch(),className:"h-8 w-8",children:u.jsx(hs,{className:"h-4 w-4"})})]}),u.jsx(St,{children:T.isLoading?u.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):D.length===0?u.jsx("p",{className:"text-sm text-muted-foreground",children:"No tables found"}):u.jsx("div",{className:"space-y-1",children:D.map(W=>u.jsxs("button",{onClick:()=>q(W.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===W.name?"bg-muted font-medium":""}`,children:[u.jsx(Ec,{className:"h-4 w-4 shrink-0"}),u.jsx("span",{className:"truncate",children:W.name})]},W.name))})})]}),u.jsxs(wt,{className:"md:col-span-3",children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:y||"Select a Table"}),y&&u.jsxs(Zt,{children:[H," total rows"]})]}),u.jsx(St,{children:y?R.isLoading?u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(qn,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):L.length===0?u.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"No data in this table"}):u.jsxs("div",{className:"space-y-4",children:[u.jsx("div",{className:"overflow-x-auto rounded-md border",children:u.jsxs(La,{children:[u.jsx(Ua,{children:u.jsx(Ct,{children:K.map(W=>u.jsx(De,{className:"font-mono",children:W},W))})}),u.jsx(qa,{children:L.map((W,ie)=>u.jsx(Ct,{children:K.map(re=>u.jsx(Oe,{className:"font-mono text-sm",children:vz(W[re])},re))},ie))})]})}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("span",{className:"text-sm text-muted-foreground",children:["Showing ",w+1," -"," ",Math.min(w+E,H)," of ",H]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(Ie,{variant:"outline",size:"sm",disabled:w===0,onClick:()=>j(Math.max(0,w-E)),children:[u.jsx(jc,{className:"mr-1 h-4 w-4"}),"Previous"]}),u.jsxs(Ie,{variant:"outline",size:"sm",disabled:w+E>=H,onClick:()=>j(w+E),children:["Next",u.jsx(Oi,{className:"ml-1 h-4 w-4"})]})]})]})]}):u.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"Select a table from the list to view its data"})})]})]})})]})]})})}function yz({metrics:n,isLoading:a}){return u.jsxs("div",{className:"grid gap-4 md:grid-cols-5",children:[u.jsx(Un,{title:"Pending",value:(n==null?void 0:n.pending)??0,icon:u.jsx(vr,{className:"h-4 w-4 text-muted-foreground"}),isLoading:a}),u.jsx(Un,{title:"Processing",value:(n==null?void 0:n.processing)??0,icon:u.jsx(qn,{className:"h-4 w-4 text-muted-foreground"}),isLoading:a}),u.jsx(Un,{title:"Acknowledged",value:(n==null?void 0:n.acknowledged)??0,icon:u.jsx(_l,{className:"h-4 w-4 text-green-500"}),isLoading:a}),u.jsx(Un,{title:"Failed",value:(n==null?void 0:n.failed)??0,icon:u.jsx(zi,{className:"h-4 w-4 text-red-500"}),isLoading:a}),u.jsx(Un,{title:"Dead Letter",value:(n==null?void 0:n.deadLetter)??0,icon:u.jsx(cT,{className:"h-4 w-4 text-orange-500"}),isLoading:a})]})}function xz({messages:n,isLoading:a}){return u.jsxs(wt,{children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:"Recent Messages"}),u.jsx(Zt,{children:"Latest messages in this queue (auto-refreshes every 5 seconds)"})]}),u.jsx(St,{children:a?u.jsx(Ol,{}):n!=null&&n.length?u.jsxs(La,{children:[u.jsx(Ua,{children:u.jsxs(Ct,{children:[u.jsx(De,{children:"ID"}),u.jsx(De,{children:"Status"}),u.jsx(De,{children:"Payload"}),u.jsx(De,{children:"Attempt"}),u.jsx(De,{children:"Created"})]})}),u.jsx(qa,{children:n.map(r=>u.jsxs(Ct,{children:[u.jsx(Oe,{children:u.jsx(Xi,{id:r.id})}),u.jsx(Oe,{children:u.jsx(K5,{status:r.status})}),u.jsx(Oe,{className:"max-w-[200px] truncate font-mono text-xs",children:JSON.stringify(r.payload)}),u.jsx(Oe,{children:r.attempt}),u.jsx(Oe,{children:u.jsx(cn,{timestamp:r.createdAt})})]},r.id))})]}):u.jsx(Ha,{children:"No messages in this queue"})})]})}function bz(){const{binding:n}=Ml(),a=n||"",{data:r,isLoading:i}=vt({queryKey:["queueMetrics",a],queryFn:()=>T5(a),enabled:!!a,refetchInterval:5e3}),{data:s,isLoading:c}=vt({queryKey:["queueMessages",a],queryFn:()=>R5(a,10),enabled:!!a,refetchInterval:5e3});return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(Fi,{title:`Queue: ${a}`}),u.jsx(yz,{metrics:r==null?void 0:r.metrics,isLoading:i}),u.jsx(xz,{messages:s==null?void 0:s.messages,isLoading:c})]})})}function Jo(n){return n!=null}function wz(n,a){const r=[];n&&Jo(n.input)&&r.push("execution-input"),n&&Jo(n.output)&&r.push("execution-output");for(const i of a)Jo(i.input)&&r.push(`${i.id}-input`),Jo(i.output)&&r.push(`${i.id}-output`);return r}function bc({id:n,label:a,value:r,isOpen:i,onToggle:s}){return Jo(r)?u.jsxs("details",{className:"mt-2",open:i,onToggle:c=>{s(n,c.currentTarget.open)},children:[u.jsx("summary",{className:"text-xs text-muted-foreground cursor-pointer hover:text-foreground",children:a}),u.jsx("pre",{className:"mt-1 p-2 rounded bg-muted text-xs font-mono overflow-x-auto",children:JSON.stringify(r,null,2)})]}):null}function Sz({status:n}){switch(n){case"COMPLETED":return u.jsx(_l,{className:"h-5 w-5 text-green-500"});case"RUNNING":return u.jsx(qn,{className:"h-5 w-5 text-blue-500 animate-spin"});case"FAILED":return u.jsx(zi,{className:"h-5 w-5 text-red-500"});case"PENDING":default:return u.jsx(vr,{className:"h-5 w-5 text-gray-400"})}}function jz(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 Ez(n){return n.attempt!==null&&n.attempt!==void 0&&n.maxRetries!==null&&n.maxRetries!==void 0&&(n.attempt>1||n.status!=="COMPLETED")}function Nz({steps:n,openIoSectionIds:a,onToggleIoSection:r}){if(n.length===0)return u.jsx(Ha,{children:"No steps recorded for this execution"});const i=n.reduce((s,c)=>s+(c.durationMs||0),0);return u.jsxs("div",{className:"space-y-4",children:[i>0&&u.jsxs("div",{className:"mb-6",children:[u.jsxs("div",{className:"flex items-center justify-between text-sm text-muted-foreground mb-2",children:[u.jsx("span",{children:"Total Duration"}),u.jsx("span",{children:si(i)})]}),u.jsx("div",{className:"h-3 bg-muted rounded-full overflow-hidden flex",children:n.map((s,c)=>{const h=s.durationMs?s.durationMs/i*100:0;return u.jsx("div",{className:pe(jz(s.status),"h-full transition-all",c>0&&"border-l border-background"),style:{width:`${h}%`},title:`${s.stepName}: ${si(s.durationMs)}`},s.id)})})]}),u.jsx("div",{className:"relative",children:n.map((s,c)=>{const h=Ez(s);return u.jsxs("div",{className:"relative pb-6 last:pb-0",children:[c<n.length-1&&u.jsx("div",{className:pe("absolute left-[9px] top-6 w-0.5 h-full -ml-px",s.status==="COMPLETED"?"bg-green-200 dark:bg-green-900":"bg-muted")}),u.jsxs("div",{className:"flex gap-4",children:[u.jsx("div",{className:"flex-shrink-0 relative z-10 bg-background",children:u.jsx(Sz,{status:s.status})}),u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"font-medium",children:s.stepName}),u.jsxs("span",{className:"text-xs text-muted-foreground",children:["(Step ",s.stepIndex+1,")"]}),h&&u.jsxs("span",{className:pe("inline-flex items-center gap-1 text-xs px-1.5 py-0.5 rounded-full font-mono",s.attempt!==null&&s.attempt!==void 0&&s.attempt>1?s.status==="FAILED"?"bg-red-100 text-red-700 dark:bg-red-950 dark:text-red-300":"bg-yellow-100 text-yellow-700 dark:bg-yellow-950 dark:text-yellow-300":"bg-muted text-muted-foreground"),children:[u.jsx(hs,{className:"h-3 w-3"}),s.attempt,"/",(s.maxRetries??0)+1]})]}),u.jsx("span",{className:"text-sm font-mono text-muted-foreground",children:si(s.durationMs)})]}),s.errorMessage&&u.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:s.errorMessage}),s.retryAttempts&&s.retryAttempts.length>0&&u.jsxs("div",{className:"mt-2 space-y-2",children:[u.jsx("div",{className:"text-xs font-medium text-muted-foreground",children:"Previous failures"}),s.retryAttempts.map(m=>u.jsxs("div",{className:"rounded border border-yellow-200 bg-yellow-50 px-3 py-2 dark:border-yellow-900 dark:bg-yellow-950/40",children:[u.jsxs("div",{className:"mb-1 flex items-center justify-between gap-2 text-xs text-yellow-800 dark:text-yellow-200",children:[u.jsxs("span",{className:"font-medium",children:["Attempt ",m.attempt," failed"]}),u.jsx("span",{className:"font-mono",children:si(m.durationMs??null)})]}),u.jsx("pre",{className:"whitespace-pre-wrap text-xs font-mono text-yellow-900 dark:text-yellow-100",children:m.errorMessage})]},`${s.id}-${m.attempt}`))]}),u.jsx(bc,{id:`${s.id}-input`,label:"View input",value:s.input,isOpen:a.has(`${s.id}-input`),onToggle:r}),u.jsx(bc,{id:`${s.id}-output`,label:"View output",value:s.output,isOpen:a.has(`${s.id}-output`),onToggle:r}),u.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:u.jsx(cn,{timestamp:s.createdAt})})]})]})]},s.id)})})]})}function Cz(){const{binding:n,executionId:a}=Ml(),r=n||"",i=a||"",{data:s,isLoading:c}=vt({queryKey:["workflowExecution",r,i],queryFn:()=>A5(r,i),enabled:!!r&&!!i,refetchInterval:5e3}),h=s==null?void 0:s.execution,m=(s==null?void 0:s.steps)||[],p=wz(h??null,m),[g,y]=v.useState(()=>new Set),x=p.length>0&&p.every(E=>g.has(E));function w(E,S){y(C=>{const _=new Set(C);return S?_.add(E):_.delete(E),_})}function j(){y(()=>x?new Set:new Set(p))}return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsxs("div",{className:"flex items-start justify-between gap-4",children:[u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsx(sn,{to:`/workflows/${r}`,children:u.jsxs(Ie,{variant:"ghost",size:"sm",children:[u.jsx(O_,{className:"mr-2 h-4 w-4"}),"Back"]})}),u.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Execution: ",u.jsx(Xi,{id:i})]})]}),p.length>0&&u.jsxs(Ie,{variant:"ghost",size:"sm",onClick:j,children:[x?u.jsx($_,{className:"h-4 w-4"}):u.jsx(V_,{className:"h-4 w-4"}),x?"Collapse All I/O":"Expand All I/O"]})]}),c?u.jsx(Ol,{}):h?u.jsxs(u.Fragment,{children:[u.jsxs(wt,{children:[u.jsx(kt,{children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx(Dt,{children:"Execution Details"}),u.jsx(Zt,{children:h.startedAt?u.jsxs(u.Fragment,{children:["Started ",u.jsx(cn,{timestamp:h.startedAt})]}):"Not started yet"})]}),u.jsx(Op,{status:h.status})]})}),u.jsxs(St,{children:[u.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Duration"}),u.jsx("p",{className:"font-mono",children:si(h.durationMs)})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Steps Completed"}),u.jsxs("p",{className:"font-mono",children:[h.stepsCompleted," / ",h.stepsCount]})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Created"}),u.jsx("p",{className:"font-mono text-sm",children:u.jsx(cn,{timestamp:h.createdAt})})]}),h.completedAt&&u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Completed"}),u.jsx("p",{className:"font-mono text-sm",children:u.jsx(cn,{timestamp:h.completedAt})})]})]}),h.errorMessage&&u.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}),u.jsxs("div",{className:"mt-4 grid gap-3 md:grid-cols-2",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Execution Input"}),u.jsx(bc,{id:"execution-input",label:"View execution input",value:h.input,isOpen:g.has("execution-input"),onToggle:w})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Execution Output"}),u.jsx(bc,{id:"execution-output",label:"View execution output",value:h.output,isOpen:g.has("execution-output"),onToggle:w})]})]})]})]}),u.jsxs(wt,{children:[u.jsx(kt,{children:u.jsxs("div",{children:[u.jsx(Dt,{children:"Steps"}),u.jsx(Zt,{children:"Workflow step execution timeline"})]})}),u.jsx(St,{children:u.jsx(Nz,{steps:m,openIoSectionIds:g,onToggleIoSection:w})})]})]}):u.jsx(Ha,{children:"Execution not found"})]})})}const zh=20,_z=[{value:"",label:"All statuses"},{value:"pending",label:"Pending"},{value:"running",label:"Running"},{value:"completed",label:"Completed"},{value:"failed",label:"Failed"},{value:"cancelled",label:"Cancelled"}],Tz=[{value:"",label:"All time"},{value:"1h",label:"Last hour"},{value:"24h",label:"Last 24 hours"},{value:"7d",label:"Last 7 days"},{value:"30d",label:"Last 30 days"}];function Rz({executions:n,isLoading:a,bindingName:r}){return u.jsxs(wt,{children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:"Recent Executions"}),u.jsx(Zt,{children:"Workflow executions (auto-refreshes every 5 seconds)"})]}),u.jsx(St,{children:a?u.jsx(Ol,{}):n!=null&&n.length?u.jsxs(La,{children:[u.jsx(Ua,{children:u.jsxs(Ct,{children:[u.jsx(De,{children:"ID"}),u.jsx(De,{children:"Status"}),u.jsx(De,{children:"Steps"}),u.jsx(De,{children:"Duration"}),u.jsx(De,{children:"Started"}),u.jsx(De,{})]})}),u.jsx(qa,{children:n.map(i=>u.jsxs(Ct,{children:[u.jsx(Oe,{children:u.jsx(Xi,{id:i.id})}),u.jsx(Oe,{children:u.jsx(Op,{status:i.status})}),u.jsx(Oe,{children:u.jsxs("span",{className:"text-sm",children:[i.stepsCompleted,"/",i.stepsCount]})}),u.jsx(Oe,{className:"text-sm",children:si(i.durationMs)}),u.jsx(Oe,{children:i.startedAt?u.jsx(cn,{timestamp:i.startedAt}):"-"}),u.jsx(Oe,{children:u.jsx(sn,{to:`/workflows/${r}/${i.id}`,className:"flex items-center text-sm text-primary hover:underline",children:"View"})})]},i.id))})]}):u.jsx(Ha,{children:"No executions for this workflow"})})]})}function Mz(){const{binding:n}=Ml(),a=n||"",[r,i]=v.useState(""),[s,c]=v.useState(""),[h,m]=v.useState(0),p=h*zh,{data:g,isLoading:y}=vt({queryKey:["workflowExecutions",a,r,s,h],queryFn:()=>M5(a,zh,p,r||void 0,s||void 0),enabled:!!a,refetchInterval:5e3}),x=g?Math.ceil(g.total/zh):0,w=()=>m(0);return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(Fi,{title:`Workflow: ${a}`}),u.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[u.jsx("select",{value:r,onChange:j=>{i(j.target.value),w()},className:"text-sm border rounded px-2 py-1 bg-background",children:_z.map(j=>u.jsx("option",{value:j.value,children:j.label},j.value))}),u.jsx("select",{value:s,onChange:j=>{c(j.target.value),w()},className:"text-sm border rounded px-2 py-1 bg-background",children:Tz.map(j=>u.jsx("option",{value:j.value,children:j.label},j.value))}),g&&u.jsxs("span",{className:"text-sm text-muted-foreground",children:[g.total," total"]})]}),u.jsx(Rz,{executions:g==null?void 0:g.executions,isLoading:y,bindingName:a}),x>1&&u.jsxs("div",{className:"flex items-center justify-between pt-2",children:[u.jsx("button",{className:"text-sm px-3 py-1 border rounded disabled:opacity-40",disabled:h===0,onClick:()=>m(j=>j-1),children:"Previous"}),u.jsxs("span",{className:"text-sm text-muted-foreground",children:["Page ",h+1," of ",x]}),u.jsx("button",{className:"text-sm px-3 py-1 border rounded disabled:opacity-40",disabled:h>=x-1,onClick:()=>m(j=>j+1),children:"Next"})]})]})})}function Az(){const n=za(),{data:a,isLoading:r}=vt({queryKey:["config"],queryFn:Dp,staleTime:6e4}),i=a!=null&&a.db?Object.keys(a.db):[],s=a!=null&&a.queue?Object.keys(a.queue):[],c=a!=null&&a.state?Object.keys(a.state):[],h=a!=null&&a.fs?Object.keys(a.fs):[],m=a!=null&&a.workflow?Object.keys(a.workflow):[],p=a!=null&&a.cron?Object.keys(a.cron):[],g=a!=null&&a.timer?Object.keys(a.timer):[];return u.jsxs("aside",{className:"fixed inset-y-0 left-0 z-10 w-64 flex flex-col border-r bg-background",children:[u.jsx("div",{className:"flex h-14 items-center border-b px-4",children:u.jsxs(sn,{to:"/",className:"flex items-center gap-2 font-semibold",children:[u.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-md bg-primary text-primary-foreground",children:"P"}),u.jsx("span",{children:"Ploy Dev"})]})}),u.jsx("nav",{className:"flex-1 overflow-auto p-4",children:r?u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(qn,{className:"h-5 w-5 animate-spin text-muted-foreground"})}):u.jsxs("div",{className:"space-y-6",children:[i.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Database"}),u.jsx("div",{className:"space-y-1",children:i.map(y=>{const x=n.pathname===`/db/${y}`;return u.jsx(sn,{to:`/db/${y}`,children:u.jsxs(Ie,{variant:x?"secondary":"ghost",className:pe("w-full justify-start",x&&"bg-muted"),children:[u.jsx(W_,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),(a==null?void 0:a.auth)&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Auth"}),u.jsx("div",{className:"space-y-1",children:u.jsx(sn,{to:"/auth",children:u.jsxs(Ie,{variant:n.pathname==="/auth"?"secondary":"ghost",className:pe("w-full justify-start",n.pathname==="/auth"&&"bg-muted"),children:[u.jsx(bT,{className:"mr-2 h-4 w-4"}),u.jsx("span",{className:"flex-1 text-left",children:a.auth.binding}),u.jsx(Vb,{className:"h-3.5 w-3.5 text-muted-foreground",title:"Ploy Auth tables (users & sessions)"})]})})})]}),s.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Queues"}),u.jsx("div",{className:"space-y-1",children:s.map(y=>{const x=n.pathname===`/queues/${y}`;return u.jsx(sn,{to:`/queues/${y}`,children:u.jsxs(Ie,{variant:x?"secondary":"ghost",className:pe("w-full justify-start",x&&"bg-muted"),children:[u.jsx(rT,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),c.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"State"}),u.jsx("div",{className:"space-y-1",children:c.map(y=>{const x=n.pathname===`/state/${y}`;return u.jsx(sn,{to:`/state/${y}`,children:u.jsxs(Ie,{variant:x?"secondary":"ghost",className:pe("w-full justify-start",x&&"bg-muted"),children:[u.jsx(k_,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),h.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"File Storage"}),u.jsx("div",{className:"space-y-1",children:h.map(y=>{const x=n.pathname===`/fs/${y}`;return u.jsx(sn,{to:`/fs/${y}`,children:u.jsxs(Ie,{variant:x?"secondary":"ghost",className:pe("w-full justify-start",x&&"bg-muted"),children:[u.jsx(tT,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),m.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Workflows"}),u.jsx("div",{className:"space-y-1",children:m.map(y=>{const x=n.pathname.startsWith(`/workflows/${y}`);return u.jsx(sn,{to:`/workflows/${y}`,children:u.jsxs(Ie,{variant:x?"secondary":"ghost",className:pe("w-full justify-start",x&&"bg-muted"),children:[u.jsx(aT,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),p.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Cron"}),u.jsx("div",{className:"space-y-1",children:p.map(y=>{const x=n.pathname===`/cron/${y}`;return u.jsx(sn,{to:`/cron/${y}`,children:u.jsxs(Ie,{variant:x?"secondary":"ghost",className:pe("w-full justify-start",x&&"bg-muted"),children:[u.jsx(jT,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),g.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Timers"}),u.jsx("div",{className:"space-y-1",children:g.map(y=>{const x=n.pathname===`/timers/${y}`;return u.jsx(sn,{to:`/timers/${y}`,children:u.jsxs(Ie,{variant:x?"secondary":"ghost",className:pe("w-full justify-start",x&&"bg-muted"),children:[u.jsx(q_,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),i.length===0&&s.length===0&&c.length===0&&h.length===0&&m.length===0&&p.length===0&&g.length===0&&!(a!=null&&a.auth)&&u.jsx("div",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No bindings configured in ploy.yaml"})]})})]})}function kz(){const{data:n,isLoading:a}=vt({queryKey:["config"],queryFn:Dp,staleTime:6e4});if(!a&&n){const r=n.db?Object.keys(n.db):[],i=n.queue?Object.keys(n.queue):[],s=n.state?Object.keys(n.state):[],c=n.fs?Object.keys(n.fs):[],h=n.workflow?Object.keys(n.workflow):[];if(r.length>0)return u.jsx(fl,{to:`/db/${r[0]}`,replace:!0});if(n.auth)return u.jsx(fl,{to:"/auth",replace:!0});if(i.length>0)return u.jsx(fl,{to:`/queues/${i[0]}`,replace:!0});if(s.length>0)return u.jsx(fl,{to:`/state/${s[0]}`,replace:!0});if(c.length>0)return u.jsx(fl,{to:`/fs/${c[0]}`,replace:!0});if(h.length>0)return u.jsx(fl,{to:`/workflows/${h[0]}`,replace:!0});const m=n.cron?Object.keys(n.cron):[];if(m.length>0)return u.jsx(fl,{to:`/cron/${m[0]}`,replace:!0});const p=n.timer?Object.keys(n.timer):[];if(p.length>0)return u.jsx(fl,{to:`/timers/${p[0]}`,replace:!0})}return u.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[u.jsx("h1",{className:"text-2xl font-bold mb-4",children:"Ploy Dev Dashboard"}),a?u.jsx(qn,{className:"h-6 w-6 animate-spin text-muted-foreground"}):u.jsx("p",{className:"text-muted-foreground",children:"Configure database, queue, or workflow bindings in ploy.yaml to get started."})]})}function Dz(){return u.jsxs("div",{className:"min-h-screen bg-background",children:[u.jsx(Az,{}),u.jsx("main",{className:"pl-64",children:u.jsx("div",{className:"container mx-auto px-6 py-4",children:u.jsxs(XC,{children:[u.jsx(kn,{path:"/",element:u.jsx(kz,{})}),u.jsx(kn,{path:"/db/:binding",element:u.jsx(gz,{})}),u.jsx(kn,{path:"/auth",element:u.jsx(lz,{})}),u.jsx(kn,{path:"/queues/:binding",element:u.jsx(bz,{})}),u.jsx(kn,{path:"/state/:binding",element:u.jsx(fz,{})}),u.jsx(kn,{path:"/fs/:binding",element:u.jsx(cz,{})}),u.jsx(kn,{path:"/cron/:binding",element:u.jsx(oz,{})}),u.jsx(kn,{path:"/timers/:binding",element:u.jsx(J5,{})}),u.jsx(kn,{path:"/workflows/:binding",element:u.jsx(Mz,{})}),u.jsx(kn,{path:"/workflows/:binding/:executionId",element:u.jsx(Cz,{})})]})})})]})}function Kj(){const n=window.matchMedia("(prefers-color-scheme: dark)").matches;document.documentElement.classList.toggle("dark",n)}Kj();window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",Kj);const Oz=new DN({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});nC.createRoot(document.getElementById("root")).render(u.jsx(v.StrictMode,{children:u.jsx(HN,{client:Oz,children:u.jsx(g_,{children:u.jsx(Dz,{})})})}));