@meetploy/emulator 1.28.0 → 1.29.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,399 @@
1
+ var U0=n=>{throw TypeError(n)};var hh=(n,a,r)=>a.has(n)||U0("Cannot "+r);var A=(n,a,r)=>(hh(n,a,"read from private field"),r?r.call(n):a.get(n)),be=(n,a,r)=>a.has(n)?U0("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(n):a.set(n,r),oe=(n,a,r,i)=>(hh(n,a,"write to private field"),i?i.call(n,r):a.set(n,r),r),ke=(n,a,r)=>(hh(n,a,"access private method"),r);var qu=(n,a,r,i)=>({set _(o){oe(n,a,o,r)},get _(){return A(n,a,i)}});function wE(n,a){for(var r=0;r<a.length;r++){const i=a[r];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in n)){const c=Object.getOwnPropertyDescriptor(i,o);c&&Object.defineProperty(n,o,c.get?c:{enumerable:!0,get:()=>i[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const c of o)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(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(o){if(o.ep)return;o.ep=!0;const c=r(o);fetch(o.href,c)}})();function hb(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var mh={exports:{}},$s={};/**
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 q0;function jE(){if(q0)return $s;q0=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(i,o,c){var h=null;if(c!==void 0&&(h=""+c),o.key!==void 0&&(h=""+o.key),"key"in o){c={};for(var m in o)m!=="key"&&(c[m]=o[m])}else c=o;return o=c.ref,{$$typeof:n,type:i,key:h,ref:o!==void 0?o:null,props:c}}return $s.Fragment=a,$s.jsx=r,$s.jsxs=r,$s}var H0;function SE(){return H0||(H0=1,mh.exports=jE()),mh.exports}var u=SE(),Oi=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(){}},dr=typeof window>"u"||"Deno"in globalThis;function Cn(){}function NE(n,a){return typeof n=="function"?n(a):n}function Hh(n){return typeof n=="number"&&n>=0&&n!==1/0}function mb(n,a){return Math.max(n+(a||0)-Date.now(),0)}function hi(n,a){return typeof n=="function"?n(a):n}function qn(n,a){return typeof n=="function"?n(a):n}function B0(n,a){const{type:r="all",exact:i,fetchStatus:o,predicate:c,queryKey:h,stale:m}=n;if(h){if(i){if(a.queryHash!==Nm(h,a.options))return!1}else if(!Ws(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||o&&o!==a.state.fetchStatus||c&&!c(a))}function $0(n,a){const{exact:r,status:i,predicate:o,mutationKey:c}=n;if(c){if(!a.options.mutationKey)return!1;if(r){if(fr(a.options.mutationKey)!==fr(c))return!1}else if(!Ws(a.options.mutationKey,c))return!1}return!(i&&a.state.status!==i||o&&!o(a))}function Nm(n,a){return((a==null?void 0:a.queryKeyHashFn)||fr)(n)}function fr(n){return JSON.stringify(n,(a,r)=>Bh(r)?Object.keys(r).sort().reduce((i,o)=>(i[o]=r[o],i),{}):r)}function Ws(n,a){return n===a?!0:typeof n!=typeof a?!1:n&&a&&typeof n=="object"&&typeof a=="object"?Object.keys(a).every(r=>Ws(n[r],a[r])):!1}function pb(n,a){if(n===a)return n;const r=Q0(n)&&Q0(a);if(r||Bh(n)&&Bh(a)){const i=r?n:Object.keys(n),o=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]=pb(n[y],a[y]),m[y]===n[y]&&n[y]!==void 0&&p++)}return o===h&&p===o?n:m}return a}function lc(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 Q0(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Bh(n){if(!G0(n))return!1;const a=n.constructor;if(a===void 0)return!0;const r=a.prototype;return!(!G0(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function G0(n){return Object.prototype.toString.call(n)==="[object Object]"}function EE(n){return new Promise(a=>{setTimeout(a,n)})}function $h(n,a,r){return typeof r.structuralSharing=="function"?r.structuralSharing(n,a):r.structuralSharing!==!1?pb(n,a):a}function CE(n,a,r=0){const i=[...n,a];return r&&i.length>r?i.slice(1):i}function _E(n,a,r=0){const i=[a,...n];return r&&i.length>r?i.slice(0,-1):i}var Em=Symbol();function vb(n,a){return!n.queryFn&&(a!=null&&a.initialPromise)?()=>a.initialPromise:!n.queryFn||n.queryFn===Em?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}var ar,yl,gi,ab,TE=(ab=class extends Oi{constructor(){super();be(this,ar);be(this,yl);be(this,gi);oe(this,gi,a=>{if(!dr&&window.addEventListener){const r=()=>a();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){A(this,yl)||this.setEventListener(A(this,gi))}onUnsubscribe(){var a;this.hasListeners()||((a=A(this,yl))==null||a.call(this),oe(this,yl,void 0))}setEventListener(a){var r;oe(this,gi,a),(r=A(this,yl))==null||r.call(this),oe(this,yl,a(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(a){A(this,ar)!==a&&(oe(this,ar,a),this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(r=>{r(a)})}isFocused(){var a;return typeof A(this,ar)=="boolean"?A(this,ar):((a=globalThis.document)==null?void 0:a.visibilityState)!=="hidden"}},ar=new WeakMap,yl=new WeakMap,gi=new WeakMap,ab),Cm=new TE,yi,xl,xi,lb,RE=(lb=class extends Oi{constructor(){super();be(this,yi,!0);be(this,xl);be(this,xi);oe(this,xi,a=>{if(!dr&&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(){A(this,xl)||this.setEventListener(A(this,xi))}onUnsubscribe(){var a;this.hasListeners()||((a=A(this,xl))==null||a.call(this),oe(this,xl,void 0))}setEventListener(a){var r;oe(this,xi,a),(r=A(this,xl))==null||r.call(this),oe(this,xl,a(this.setOnline.bind(this)))}setOnline(a){A(this,yi)!==a&&(oe(this,yi,a),this.listeners.forEach(i=>{i(a)}))}isOnline(){return A(this,yi)}},yi=new WeakMap,xl=new WeakMap,xi=new WeakMap,lb),rc=new RE;function Qh(){let n,a;const r=new Promise((o,c)=>{n=o,a=c});r.status="pending",r.catch(()=>{});function i(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{i({status:"fulfilled",value:o}),n(o)},r.reject=o=>{i({status:"rejected",reason:o}),a(o)},r}function ME(n){return Math.min(1e3*2**n,3e4)}function gb(n){return(n??"online")==="online"?rc.isOnline():!0}var yb=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function ph(n){return n instanceof yb}function xb(n){let a=!1,r=0,i=!1,o;const c=Qh(),h=S=>{var C;i||(b(new yb(S)),(C=n.abort)==null||C.call(n))},m=()=>{a=!0},p=()=>{a=!1},g=()=>Cm.isFocused()&&(n.networkMode==="always"||rc.isOnline())&&n.canRun(),y=()=>gb(n.networkMode)&&n.canRun(),x=S=>{var C;i||(i=!0,(C=n.onSuccess)==null||C.call(n,S),o==null||o(),c.resolve(S))},b=S=>{var C;i||(i=!0,(C=n.onError)==null||C.call(n,S),o==null||o(),c.reject(S))},j=()=>new Promise(S=>{var C;o=_=>{(i||g())&&S(_)},(C=n.onPause)==null||C.call(n)}).then(()=>{var S;o=void 0,i||(S=n.onContinue)==null||S.call(n)}),N=()=>{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??(dr?0:3),R=n.retryDelay??ME,D=typeof R=="function"?R(r,_):R,U=T===!0||typeof T=="number"&&r<T||typeof T=="function"&&T(r,_);if(a||!U){b(_);return}r++,(K=n.onFail)==null||K.call(n,r,_),EE(D).then(()=>g()?void 0:j()).then(()=>{a?b(_):N()})})};return{promise:c,cancel:h,continue:()=>(o==null||o(),c),cancelRetry:m,continueRetry:p,canStart:y,start:()=>(y()?N():j().then(N),c)}}var kE=n=>setTimeout(n,0);function AE(){let n=[],a=0,r=m=>{m()},i=m=>{m()},o=kE;const c=m=>{a?n.push(m):o(()=>{r(m)})},h=()=>{const m=n;n=[],m.length&&o(()=>{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=>{o=m}}}var St=AE(),lr,rb,bb=(rb=class{constructor(){be(this,lr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Hh(this.gcTime)&&oe(this,lr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(dr?1/0:300*1e3))}clearGcTimeout(){A(this,lr)&&(clearTimeout(A(this,lr)),oe(this,lr,void 0))}},lr=new WeakMap,rb),bi,wi,En,rr,Lt,ro,ir,Ln,Da,ib,DE=(ib=class extends bb{constructor(a){super();be(this,Ln);be(this,bi);be(this,wi);be(this,En);be(this,rr);be(this,Lt);be(this,ro);be(this,ir);oe(this,ir,!1),oe(this,ro,a.defaultOptions),this.setOptions(a.options),this.observers=[],oe(this,rr,a.client),oe(this,En,A(this,rr).getQueryCache()),this.queryKey=a.queryKey,this.queryHash=a.queryHash,oe(this,bi,OE(this.options)),this.state=a.state??A(this,bi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var a;return(a=A(this,Lt))==null?void 0:a.promise}setOptions(a){this.options={...A(this,ro),...a},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&A(this,En).remove(this)}setData(a,r){const i=$h(this.state.data,a,this.options);return ke(this,Ln,Da).call(this,{data:i,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),i}setState(a,r){ke(this,Ln,Da).call(this,{type:"setState",state:a,setStateOptions:r})}cancel(a){var i,o;const r=(i=A(this,Lt))==null?void 0:i.promise;return(o=A(this,Lt))==null||o.cancel(a),r?r.then(Cn).catch(Cn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(A(this,bi))}isActive(){return this.observers.some(a=>qn(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Em||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||!mb(this.state.dataUpdatedAt,a)}onFocus(){var r;const a=this.observers.find(i=>i.shouldFetchOnWindowFocus());a==null||a.refetch({cancelRefetch:!1}),(r=A(this,Lt))==null||r.continue()}onOnline(){var r;const a=this.observers.find(i=>i.shouldFetchOnReconnect());a==null||a.refetch({cancelRefetch:!1}),(r=A(this,Lt))==null||r.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),A(this,En).notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(r=>r!==a),this.observers.length||(A(this,Lt)&&(A(this,ir)?A(this,Lt).cancel({revert:!0}):A(this,Lt).cancelRetry()),this.scheduleGc()),A(this,En).notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ke(this,Ln,Da).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(A(this,Lt))return A(this,Lt).continueRetry(),A(this,Lt).promise}if(a&&this.setOptions(a),!this.options.queryFn){const x=this.observers.find(b=>b.options.queryFn);x&&this.setOptions(x.options)}const i=new AbortController,o=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(oe(this,ir,!0),i.signal)})},c=()=>{const x=vb(this.options,r),b={client:A(this,rr),queryKey:this.queryKey,meta:this.meta};return o(b),oe(this,ir,!1),this.options.persister?this.options.persister(x,b,this):x(b)},h={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:A(this,rr),state:this.state,fetchFn:c};o(h),(p=this.options.behavior)==null||p.onFetch(h,this),oe(this,wi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=h.fetchOptions)==null?void 0:g.meta))&&ke(this,Ln,Da).call(this,{type:"fetch",meta:(y=h.fetchOptions)==null?void 0:y.meta});const m=x=>{var b,j,N,S;ph(x)&&x.silent||ke(this,Ln,Da).call(this,{type:"error",error:x}),ph(x)||((j=(b=A(this,En).config).onError)==null||j.call(b,x,this),(S=(N=A(this,En).config).onSettled)==null||S.call(N,this.state.data,x,this)),this.scheduleGc()};return oe(this,Lt,xb({initialPromise:r==null?void 0:r.initialPromise,fn:h.fetchFn,abort:i.abort.bind(i),onSuccess:x=>{var b,j,N,S;if(x===void 0){m(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(x)}catch(C){m(C);return}(j=(b=A(this,En).config).onSuccess)==null||j.call(b,x,this),(S=(N=A(this,En).config).onSettled)==null||S.call(N,x,this.state.error,this),this.scheduleGc()},onError:m,onFail:(x,b)=>{ke(this,Ln,Da).call(this,{type:"failed",failureCount:x,error:b})},onPause:()=>{ke(this,Ln,Da).call(this,{type:"pause"})},onContinue:()=>{ke(this,Ln,Da).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0})),A(this,Lt).start()}},bi=new WeakMap,wi=new WeakMap,En=new WeakMap,rr=new WeakMap,Lt=new WeakMap,ro=new WeakMap,ir=new WeakMap,Ln=new WeakSet,Da=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,...wb(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 o=a.error;return ph(o)&&o.revert&&A(this,wi)?{...A(this,wi),fetchStatus:"idle"}:{...i,error:o,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...a.state}}};this.state=r(this.state),St.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),A(this,En).notify({query:this,type:"updated",action:a})})},ib);function wb(n,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:gb(a.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function OE(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 ea,sb,zE=(sb=class extends Oi{constructor(a={}){super();be(this,ea);this.config=a,oe(this,ea,new Map)}build(a,r,i){const o=r.queryKey,c=r.queryHash??Nm(o,r);let h=this.get(c);return h||(h=new DE({client:a,queryKey:o,queryHash:c,options:a.defaultQueryOptions(r),state:i,defaultOptions:a.getQueryDefaults(o)}),this.add(h)),h}add(a){A(this,ea).has(a.queryHash)||(A(this,ea).set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const r=A(this,ea).get(a.queryHash);r&&(a.destroy(),r===a&&A(this,ea).delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){St.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return A(this,ea).get(a)}getAll(){return[...A(this,ea).values()]}find(a){const r={exact:!0,...a};return this.getAll().find(i=>B0(r,i))}findAll(a={}){const r=this.getAll();return Object.keys(a).length>0?r.filter(i=>B0(a,i)):r}notify(a){St.batch(()=>{this.listeners.forEach(r=>{r(a)})})}onFocus(){St.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){St.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},ea=new WeakMap,sb),ta,Bt,sr,na,vl,ob,LE=(ob=class extends bb{constructor(a){super();be(this,na);be(this,ta);be(this,Bt);be(this,sr);this.mutationId=a.mutationId,oe(this,Bt,a.mutationCache),oe(this,ta,[]),this.state=a.state||jb(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){A(this,ta).includes(a)||(A(this,ta).push(a),this.clearGcTimeout(),A(this,Bt).notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){oe(this,ta,A(this,ta).filter(r=>r!==a)),this.scheduleGc(),A(this,Bt).notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){A(this,ta).length||(this.state.status==="pending"?this.scheduleGc():A(this,Bt).remove(this))}continue(){var a;return((a=A(this,sr))==null?void 0:a.continue())??this.execute(this.state.variables)}async execute(a){var c,h,m,p,g,y,x,b,j,N,S,C,_,T,R,D,U,K,H,q;const r=()=>{ke(this,na,vl).call(this,{type:"continue"})};oe(this,sr,xb({fn:()=>this.options.mutationFn?this.options.mutationFn(a):Promise.reject(new Error("No mutationFn found")),onFail:(G,ee)=>{ke(this,na,vl).call(this,{type:"failed",failureCount:G,error:ee})},onPause:()=>{ke(this,na,vl).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>A(this,Bt).canRun(this)}));const i=this.state.status==="pending",o=!A(this,sr).canStart();try{if(i)r();else{ke(this,na,vl).call(this,{type:"pending",variables:a,isPaused:o}),await((h=(c=A(this,Bt).config).onMutate)==null?void 0:h.call(c,a,this));const ee=await((p=(m=this.options).onMutate)==null?void 0:p.call(m,a));ee!==this.state.context&&ke(this,na,vl).call(this,{type:"pending",context:ee,variables:a,isPaused:o})}const G=await A(this,sr).start();return await((y=(g=A(this,Bt).config).onSuccess)==null?void 0:y.call(g,G,a,this.state.context,this)),await((b=(x=this.options).onSuccess)==null?void 0:b.call(x,G,a,this.state.context)),await((N=(j=A(this,Bt).config).onSettled)==null?void 0:N.call(j,G,null,this.state.variables,this.state.context,this)),await((C=(S=this.options).onSettled)==null?void 0:C.call(S,G,null,a,this.state.context)),ke(this,na,vl).call(this,{type:"success",data:G}),G}catch(G){try{throw await((T=(_=A(this,Bt).config).onError)==null?void 0:T.call(_,G,a,this.state.context,this)),await((D=(R=this.options).onError)==null?void 0:D.call(R,G,a,this.state.context)),await((K=(U=A(this,Bt).config).onSettled)==null?void 0:K.call(U,void 0,G,this.state.variables,this.state.context,this)),await((q=(H=this.options).onSettled)==null?void 0:q.call(H,void 0,G,a,this.state.context)),G}finally{ke(this,na,vl).call(this,{type:"error",error:G})}}finally{A(this,Bt).runNext(this)}}},ta=new WeakMap,Bt=new WeakMap,sr=new WeakMap,na=new WeakSet,vl=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),St.batch(()=>{A(this,ta).forEach(i=>{i.onMutationUpdate(a)}),A(this,Bt).notify({mutation:this,type:"updated",action:a})})},ob);function jb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Oa,Un,io,ub,UE=(ub=class extends Oi{constructor(a={}){super();be(this,Oa);be(this,Un);be(this,io);this.config=a,oe(this,Oa,new Set),oe(this,Un,new Map),oe(this,io,0)}build(a,r,i){const o=new LE({mutationCache:this,mutationId:++qu(this,io)._,options:a.defaultMutationOptions(r),state:i});return this.add(o),o}add(a){A(this,Oa).add(a);const r=Hu(a);if(typeof r=="string"){const i=A(this,Un).get(r);i?i.push(a):A(this,Un).set(r,[a])}this.notify({type:"added",mutation:a})}remove(a){if(A(this,Oa).delete(a)){const r=Hu(a);if(typeof r=="string"){const i=A(this,Un).get(r);if(i)if(i.length>1){const o=i.indexOf(a);o!==-1&&i.splice(o,1)}else i[0]===a&&A(this,Un).delete(r)}}this.notify({type:"removed",mutation:a})}canRun(a){const r=Hu(a);if(typeof r=="string"){const i=A(this,Un).get(r),o=i==null?void 0:i.find(c=>c.state.status==="pending");return!o||o===a}else return!0}runNext(a){var i;const r=Hu(a);if(typeof r=="string"){const o=(i=A(this,Un).get(r))==null?void 0:i.find(c=>c!==a&&c.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){St.batch(()=>{A(this,Oa).forEach(a=>{this.notify({type:"removed",mutation:a})}),A(this,Oa).clear(),A(this,Un).clear()})}getAll(){return Array.from(A(this,Oa))}find(a){const r={exact:!0,...a};return this.getAll().find(i=>$0(r,i))}findAll(a={}){return this.getAll().filter(r=>$0(a,r))}notify(a){St.batch(()=>{this.listeners.forEach(r=>{r(a)})})}resumePausedMutations(){const a=this.getAll().filter(r=>r.state.isPaused);return St.batch(()=>Promise.all(a.map(r=>r.continue().catch(Cn))))}},Oa=new WeakMap,Un=new WeakMap,io=new WeakMap,ub);function Hu(n){var a;return(a=n.options.scope)==null?void 0:a.id}function Y0(n){return{onFetch:(a,r)=>{var y,x,b,j,N;const i=a.options,o=(b=(x=(y=a.fetchOptions)==null?void 0:y.meta)==null?void 0:x.fetchMore)==null?void 0:b.direction,c=((j=a.state.data)==null?void 0:j.pages)||[],h=((N=a.state.data)==null?void 0:N.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)})},_=vb(a.options,a.fetchOptions),T=async(R,D,U)=>{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:U?"backward":"forward",meta:a.options.meta};C(K);const H=await _(K),{maxPages:q}=a.options,G=U?_E:CE;return{pages:G(R.pages,H,q),pageParams:G(R.pageParams,D,q)}};if(o&&c.length){const R=o==="backward",D=R?qE:V0,U={pages:c,pageParams:h},K=D(i,U);m=await T(U,K,R)}else{const R=n??c.length;do{const D=p===0?h[0]??i.initialPageParam:V0(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 V0(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 qE(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,bl,wl,ji,Si,jl,Ni,Ei,cb,HE=(cb=class{constructor(n={}){be(this,ot);be(this,bl);be(this,wl);be(this,ji);be(this,Si);be(this,jl);be(this,Ni);be(this,Ei);oe(this,ot,n.queryCache||new zE),oe(this,bl,n.mutationCache||new UE),oe(this,wl,n.defaultOptions||{}),oe(this,ji,new Map),oe(this,Si,new Map),oe(this,jl,0)}mount(){qu(this,jl)._++,A(this,jl)===1&&(oe(this,Ni,Cm.subscribe(async n=>{n&&(await this.resumePausedMutations(),A(this,ot).onFocus())})),oe(this,Ei,rc.subscribe(async n=>{n&&(await this.resumePausedMutations(),A(this,ot).onOnline())})))}unmount(){var n,a;qu(this,jl)._--,A(this,jl)===0&&((n=A(this,Ni))==null||n.call(this),oe(this,Ni,void 0),(a=A(this,Ei))==null||a.call(this),oe(this,Ei,void 0))}isFetching(n){return A(this,ot).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return A(this,bl).findAll({...n,status:"pending"}).length}getQueryData(n){var r;const a=this.defaultQueryOptions({queryKey:n});return(r=A(this,ot).get(a.queryHash))==null?void 0:r.state.data}ensureQueryData(n){const a=this.defaultQueryOptions(n),r=A(this,ot).build(this,a),i=r.state.data;return i===void 0?this.fetchQuery(n):(n.revalidateIfStale&&r.isStaleByTime(hi(a.staleTime,r))&&this.prefetchQuery(a),Promise.resolve(i))}getQueriesData(n){return A(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}),o=A(this,ot).get(i.queryHash),c=o==null?void 0:o.state.data,h=NE(a,c);if(h!==void 0)return A(this,ot).build(this,i).setData(h,{...r,manual:!0})}setQueriesData(n,a,r){return St.batch(()=>A(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=A(this,ot).get(a.queryHash))==null?void 0:r.state}removeQueries(n){const a=A(this,ot);St.batch(()=>{a.findAll(n).forEach(r=>{a.remove(r)})})}resetQueries(n,a){const r=A(this,ot);return St.batch(()=>(r.findAll(n).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...n},a)))}cancelQueries(n,a={}){const r={revert:!0,...a},i=St.batch(()=>A(this,ot).findAll(n).map(o=>o.cancel(r)));return Promise.all(i).then(Cn).catch(Cn)}invalidateQueries(n,a={}){return St.batch(()=>(A(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=St.batch(()=>A(this,ot).findAll(n).filter(o=>!o.isDisabled()).map(o=>{let c=o.fetch(void 0,r);return r.throwOnError||(c=c.catch(Cn)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(i).then(Cn)}fetchQuery(n){const a=this.defaultQueryOptions(n);a.retry===void 0&&(a.retry=!1);const r=A(this,ot).build(this,a);return r.isStaleByTime(hi(a.staleTime,r))?r.fetch(a):Promise.resolve(r.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(Cn).catch(Cn)}fetchInfiniteQuery(n){return n.behavior=Y0(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(Cn).catch(Cn)}ensureInfiniteQueryData(n){return n.behavior=Y0(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return rc.isOnline()?A(this,bl).resumePausedMutations():Promise.resolve()}getQueryCache(){return A(this,ot)}getMutationCache(){return A(this,bl)}getDefaultOptions(){return A(this,wl)}setDefaultOptions(n){oe(this,wl,n)}setQueryDefaults(n,a){A(this,ji).set(fr(n),{queryKey:n,defaultOptions:a})}getQueryDefaults(n){const a=[...A(this,ji).values()],r={};return a.forEach(i=>{Ws(n,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(n,a){A(this,Si).set(fr(n),{mutationKey:n,defaultOptions:a})}getMutationDefaults(n){const a=[...A(this,Si).values()],r={};return a.forEach(i=>{Ws(n,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(n){if(n._defaulted)return n;const a={...A(this,wl).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return a.queryHash||(a.queryHash=Nm(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===Em&&(a.enabled=!1),a}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...A(this,wl).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){A(this,ot).clear(),A(this,bl).clear()}},ot=new WeakMap,bl=new WeakMap,wl=new WeakMap,ji=new WeakMap,Si=new WeakMap,jl=new WeakMap,Ni=new WeakMap,Ei=new WeakMap,cb),Pt,He,so,$t,or,Ci,Sl,Nl,oo,_i,Ti,ur,cr,El,Ri,Ve,Ks,Gh,Yh,Vh,Kh,Xh,Fh,Zh,Sb,db,BE=(db=class extends Oi{constructor(a,r){super();be(this,Ve);be(this,Pt);be(this,He);be(this,so);be(this,$t);be(this,or);be(this,Ci);be(this,Sl);be(this,Nl);be(this,oo);be(this,_i);be(this,Ti);be(this,ur);be(this,cr);be(this,El);be(this,Ri,new Set);this.options=r,oe(this,Pt,a),oe(this,Nl,null),oe(this,Sl,Qh()),this.options.experimental_prefetchInRender||A(this,Sl).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&&(A(this,He).addObserver(this),K0(A(this,He),this.options)?ke(this,Ve,Ks).call(this):this.updateResult(),ke(this,Ve,Kh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ph(A(this,He),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ph(A(this,He),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ke(this,Ve,Xh).call(this),ke(this,Ve,Fh).call(this),A(this,He).removeObserver(this)}setOptions(a){const r=this.options,i=A(this,He);if(this.options=A(this,Pt).defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof qn(this.options.enabled,A(this,He))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ke(this,Ve,Zh).call(this),A(this,He).setOptions(this.options),r._defaulted&&!lc(this.options,r)&&A(this,Pt).getQueryCache().notify({type:"observerOptionsUpdated",query:A(this,He),observer:this});const o=this.hasListeners();o&&X0(A(this,He),i,this.options,r)&&ke(this,Ve,Ks).call(this),this.updateResult(),o&&(A(this,He)!==i||qn(this.options.enabled,A(this,He))!==qn(r.enabled,A(this,He))||hi(this.options.staleTime,A(this,He))!==hi(r.staleTime,A(this,He)))&&ke(this,Ve,Gh).call(this);const c=ke(this,Ve,Yh).call(this);o&&(A(this,He)!==i||qn(this.options.enabled,A(this,He))!==qn(r.enabled,A(this,He))||c!==A(this,El))&&ke(this,Ve,Vh).call(this,c)}getOptimisticResult(a){const r=A(this,Pt).getQueryCache().build(A(this,Pt),a),i=this.createResult(r,a);return QE(this,i)&&(oe(this,$t,i),oe(this,Ci,this.options),oe(this,or,A(this,He).state)),i}getCurrentResult(){return A(this,$t)}trackResult(a,r){const i={};return Object.keys(a).forEach(o=>{Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),r==null||r(o),a[o])})}),i}trackProp(a){A(this,Ri).add(a)}getCurrentQuery(){return A(this,He)}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const r=A(this,Pt).defaultQueryOptions(a),i=A(this,Pt).getQueryCache().build(A(this,Pt),r);return i.fetch().then(()=>this.createResult(i,r))}fetch(a){return ke(this,Ve,Ks).call(this,{...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),A(this,$t)))}createResult(a,r){var G;const i=A(this,He),o=this.options,c=A(this,$t),h=A(this,or),m=A(this,Ci),g=a!==i?a.state:A(this,so),{state:y}=a;let x={...y},b=!1,j;if(r._optimisticResults){const ee=this.hasListeners(),ue=!ee&&K0(a,r),ce=ee&&X0(a,i,r,o);(ue||ce)&&(x={...x,...wb(y.data,a.options)}),r._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:N,errorUpdatedAt:S,status:C}=x;j=x.data;let _=!1;if(r.placeholderData!==void 0&&j===void 0&&C==="pending"){let ee;c!=null&&c.isPlaceholderData&&r.placeholderData===(m==null?void 0:m.placeholderData)?(ee=c.data,_=!0):ee=typeof r.placeholderData=="function"?r.placeholderData((G=A(this,Ti))==null?void 0:G.state.data,A(this,Ti)):r.placeholderData,ee!==void 0&&(C="success",j=$h(c==null?void 0:c.data,ee,r),b=!0)}if(r.select&&j!==void 0&&!_)if(c&&j===(h==null?void 0:h.data)&&r.select===A(this,oo))j=A(this,_i);else try{oe(this,oo,r.select),j=r.select(j),j=$h(c==null?void 0:c.data,j,r),oe(this,_i,j),oe(this,Nl,null)}catch(ee){oe(this,Nl,ee)}A(this,Nl)&&(N=A(this,Nl),j=A(this,_i),S=Date.now(),C="error");const T=x.fetchStatus==="fetching",R=C==="pending",D=C==="error",U=R&&T,K=j!==void 0,q={status:C,fetchStatus:x.fetchStatus,isPending:R,isSuccess:C==="success",isError:D,isInitialLoading:U,isLoading:U,data:j,dataUpdatedAt:x.dataUpdatedAt,error:N,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:b,isRefetchError:D&&K,isStale:_m(a,r),refetch:this.refetch,promise:A(this,Sl)};if(this.options.experimental_prefetchInRender){const ee=ie=>{q.status==="error"?ie.reject(q.error):q.data!==void 0&&ie.resolve(q.data)},ue=()=>{const ie=oe(this,Sl,q.promise=Qh());ee(ie)},ce=A(this,Sl);switch(ce.status){case"pending":a.queryHash===i.queryHash&&ee(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=A(this,$t),r=this.createResult(A(this,He),this.options);if(oe(this,or,A(this,He).state),oe(this,Ci,this.options),A(this,or).data!==void 0&&oe(this,Ti,A(this,He)),lc(r,a))return;oe(this,$t,r);const i=()=>{if(!a)return!0;const{notifyOnChangeProps:o}=this.options,c=typeof o=="function"?o():o;if(c==="all"||!c&&!A(this,Ri).size)return!0;const h=new Set(c??A(this,Ri));return this.options.throwOnError&&h.add("error"),Object.keys(A(this,$t)).some(m=>{const p=m;return A(this,$t)[p]!==a[p]&&h.has(p)})};ke(this,Ve,Sb).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ke(this,Ve,Kh).call(this)}},Pt=new WeakMap,He=new WeakMap,so=new WeakMap,$t=new WeakMap,or=new WeakMap,Ci=new WeakMap,Sl=new WeakMap,Nl=new WeakMap,oo=new WeakMap,_i=new WeakMap,Ti=new WeakMap,ur=new WeakMap,cr=new WeakMap,El=new WeakMap,Ri=new WeakMap,Ve=new WeakSet,Ks=function(a){ke(this,Ve,Zh).call(this);let r=A(this,He).fetch(this.options,a);return a!=null&&a.throwOnError||(r=r.catch(Cn)),r},Gh=function(){ke(this,Ve,Xh).call(this);const a=hi(this.options.staleTime,A(this,He));if(dr||A(this,$t).isStale||!Hh(a))return;const i=mb(A(this,$t).dataUpdatedAt,a)+1;oe(this,ur,setTimeout(()=>{A(this,$t).isStale||this.updateResult()},i))},Yh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(A(this,He)):this.options.refetchInterval)??!1},Vh=function(a){ke(this,Ve,Fh).call(this),oe(this,El,a),!(dr||qn(this.options.enabled,A(this,He))===!1||!Hh(A(this,El))||A(this,El)===0)&&oe(this,cr,setInterval(()=>{(this.options.refetchIntervalInBackground||Cm.isFocused())&&ke(this,Ve,Ks).call(this)},A(this,El)))},Kh=function(){ke(this,Ve,Gh).call(this),ke(this,Ve,Vh).call(this,ke(this,Ve,Yh).call(this))},Xh=function(){A(this,ur)&&(clearTimeout(A(this,ur)),oe(this,ur,void 0))},Fh=function(){A(this,cr)&&(clearInterval(A(this,cr)),oe(this,cr,void 0))},Zh=function(){const a=A(this,Pt).getQueryCache().build(A(this,Pt),this.options);if(a===A(this,He))return;const r=A(this,He);oe(this,He,a),oe(this,so,a.state),this.hasListeners()&&(r==null||r.removeObserver(this),a.addObserver(this))},Sb=function(a){St.batch(()=>{a.listeners&&this.listeners.forEach(r=>{r(A(this,$t))}),A(this,Pt).getQueryCache().notify({query:A(this,He),type:"observerResultsUpdated"})})},db);function $E(n,a){return qn(a.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&a.retryOnMount===!1)}function K0(n,a){return $E(n,a)||n.state.data!==void 0&&Ph(n,a,a.refetchOnMount)}function Ph(n,a,r){if(qn(a.enabled,n)!==!1){const i=typeof r=="function"?r(n):r;return i==="always"||i!==!1&&_m(n,a)}return!1}function X0(n,a,r,i){return(n!==a||qn(i.enabled,n)===!1)&&(!r.suspense||n.state.status!=="error")&&_m(n,r)}function _m(n,a){return qn(a.enabled,n)!==!1&&n.isStaleByTime(hi(a.staleTime,n))}function QE(n,a){return!lc(n.getCurrentResult(),a)}var Cl,_l,Jt,za,Ua,Ju,Jh,fb,GE=(fb=class extends Oi{constructor(r,i){super();be(this,Ua);be(this,Cl);be(this,_l);be(this,Jt);be(this,za);oe(this,Cl,r),this.setOptions(i),this.bindMethods(),ke(this,Ua,Ju).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var o;const i=this.options;this.options=A(this,Cl).defaultMutationOptions(r),lc(this.options,i)||A(this,Cl).getMutationCache().notify({type:"observerOptionsUpdated",mutation:A(this,Jt),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&fr(i.mutationKey)!==fr(this.options.mutationKey)?this.reset():((o=A(this,Jt))==null?void 0:o.state.status)==="pending"&&A(this,Jt).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=A(this,Jt))==null||r.removeObserver(this)}onMutationUpdate(r){ke(this,Ua,Ju).call(this),ke(this,Ua,Jh).call(this,r)}getCurrentResult(){return A(this,_l)}reset(){var r;(r=A(this,Jt))==null||r.removeObserver(this),oe(this,Jt,void 0),ke(this,Ua,Ju).call(this),ke(this,Ua,Jh).call(this)}mutate(r,i){var o;return oe(this,za,i),(o=A(this,Jt))==null||o.removeObserver(this),oe(this,Jt,A(this,Cl).getMutationCache().build(A(this,Cl),this.options)),A(this,Jt).addObserver(this),A(this,Jt).execute(r)}},Cl=new WeakMap,_l=new WeakMap,Jt=new WeakMap,za=new WeakMap,Ua=new WeakSet,Ju=function(){var i;const r=((i=A(this,Jt))==null?void 0:i.state)??jb();oe(this,_l,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Jh=function(r){St.batch(()=>{var i,o,c,h,m,p,g,y;if(A(this,za)&&this.hasListeners()){const x=A(this,_l).variables,b=A(this,_l).context;(r==null?void 0:r.type)==="success"?((o=(i=A(this,za)).onSuccess)==null||o.call(i,r.data,x,b),(h=(c=A(this,za)).onSettled)==null||h.call(c,r.data,null,x,b)):(r==null?void 0:r.type)==="error"&&((p=(m=A(this,za)).onError)==null||p.call(m,r.error,x,b),(y=(g=A(this,za)).onSettled)==null||y.call(g,void 0,r.error,x,b))}this.listeners.forEach(x=>{x(A(this,_l))})})},fb),vh={exports:{}},Te={};/**
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 F0;function YE(){if(F0)return Te;F0=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=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"),b=Symbol.iterator;function j(k){return k===null||typeof k!="object"?null:(k=b&&k[b]||k["@@iterator"],typeof k=="function"?k:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,C={};function _(k,F,W){this.props=k,this.context=F,this.refs=C,this.updater=W||N}_.prototype.isReactComponent={},_.prototype.setState=function(k,F){if(typeof k!="object"&&typeof k!="function"&&k!=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,k,F,"setState")},_.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function T(){}T.prototype=_.prototype;function R(k,F,W){this.props=k,this.context=F,this.refs=C,this.updater=W||N}var D=R.prototype=new T;D.constructor=R,S(D,_.prototype),D.isPureReactComponent=!0;var U=Array.isArray;function K(){}var H={H:null,A:null,T:null,S:null},q=Object.prototype.hasOwnProperty;function G(k,F,W){var le=W.ref;return{$$typeof:n,type:k,key:F,ref:le!==void 0?le:null,props:W}}function ee(k,F){return G(k.type,F,k.props)}function ue(k){return typeof k=="object"&&k!==null&&k.$$typeof===n}function ce(k){var F={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(W){return F[W]})}var ie=/\/+/g;function ae(k,F){return typeof k=="object"&&k!==null&&k.key!=null?ce(""+k.key):F.toString(36)}function re(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(K,K):(k.status="pending",k.then(function(F){k.status==="pending"&&(k.status="fulfilled",k.value=F)},function(F){k.status==="pending"&&(k.status="rejected",k.reason=F)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function z(k,F,W,le,ve){var Se=typeof k;(Se==="undefined"||Se==="boolean")&&(k=null);var te=!1;if(k===null)te=!0;else switch(Se){case"bigint":case"string":case"number":te=!0;break;case"object":switch(k.$$typeof){case n:case a:te=!0;break;case y:return te=k._init,z(te(k._payload),F,W,le,ve)}}if(te)return ve=ve(k),te=le===""?"."+ae(k,0):le,U(ve)?(W="",te!=null&&(W=te.replace(ie,"$&/")+"/"),z(ve,F,W,"",function(Ee){return Ee})):ve!=null&&(ue(ve)&&(ve=ee(ve,W+(ve.key==null||k&&k.key===ve.key?"":(""+ve.key).replace(ie,"$&/")+"/")+te)),F.push(ve)),1;te=0;var Ne=le===""?".":le+":";if(U(k))for(var ye=0;ye<k.length;ye++)le=k[ye],Se=Ne+ae(le,ye),te+=z(le,F,W,Se,ve);else if(ye=j(k),typeof ye=="function")for(k=ye.call(k),ye=0;!(le=k.next()).done;)le=le.value,Se=Ne+ae(le,ye++),te+=z(le,F,W,Se,ve);else if(Se==="object"){if(typeof k.then=="function")return z(re(k),F,W,le,ve);throw F=String(k),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return te}function J(k,F,W){if(k==null)return k;var le=[],ve=0;return z(k,le,"","",function(Se){return F.call(W,Se,ve++)}),le}function Y(k){if(k._status===-1){var F=k._result;F=F(),F.then(function(W){(k._status===0||k._status===-1)&&(k._status=1,k._result=W)},function(W){(k._status===0||k._status===-1)&&(k._status=2,k._result=W)}),k._status===-1&&(k._status=0,k._result=F)}if(k._status===1)return k._result.default;throw k._result}var X=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},de={map:J,forEach:function(k,F,W){J(k,function(){F.apply(this,arguments)},W)},count:function(k){var F=0;return J(k,function(){F++}),F},toArray:function(k){return J(k,function(F){return F})||[]},only:function(k){if(!ue(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return Te.Activity=x,Te.Children=de,Te.Component=_,Te.Fragment=r,Te.Profiler=o,Te.PureComponent=R,Te.StrictMode=i,Te.Suspense=p,Te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,Te.__COMPILER_RUNTIME={__proto__:null,c:function(k){return H.H.useMemoCache(k)}},Te.cache=function(k){return function(){return k.apply(null,arguments)}},Te.cacheSignal=function(){return null},Te.cloneElement=function(k,F,W){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var le=S({},k.props),ve=k.key;if(F!=null)for(Se in F.key!==void 0&&(ve=""+F.key),F)!q.call(F,Se)||Se==="key"||Se==="__self"||Se==="__source"||Se==="ref"&&F.ref===void 0||(le[Se]=F[Se]);var Se=arguments.length-2;if(Se===1)le.children=W;else if(1<Se){for(var te=Array(Se),Ne=0;Ne<Se;Ne++)te[Ne]=arguments[Ne+2];le.children=te}return G(k.type,ve,le)},Te.createContext=function(k){return k={$$typeof:h,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:c,_context:k},k},Te.createElement=function(k,F,W){var le,ve={},Se=null;if(F!=null)for(le in F.key!==void 0&&(Se=""+F.key),F)q.call(F,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(ve[le]=F[le]);var te=arguments.length-2;if(te===1)ve.children=W;else if(1<te){for(var Ne=Array(te),ye=0;ye<te;ye++)Ne[ye]=arguments[ye+2];ve.children=Ne}if(k&&k.defaultProps)for(le in te=k.defaultProps,te)ve[le]===void 0&&(ve[le]=te[le]);return G(k,Se,ve)},Te.createRef=function(){return{current:null}},Te.forwardRef=function(k){return{$$typeof:m,render:k}},Te.isValidElement=ue,Te.lazy=function(k){return{$$typeof:y,_payload:{_status:-1,_result:k},_init:Y}},Te.memo=function(k,F){return{$$typeof:g,type:k,compare:F===void 0?null:F}},Te.startTransition=function(k){var F=H.T,W={};H.T=W;try{var le=k(),ve=H.S;ve!==null&&ve(W,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(K,X)}catch(Se){X(Se)}finally{F!==null&&W.types!==null&&(F.types=W.types),H.T=F}},Te.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},Te.use=function(k){return H.H.use(k)},Te.useActionState=function(k,F,W){return H.H.useActionState(k,F,W)},Te.useCallback=function(k,F){return H.H.useCallback(k,F)},Te.useContext=function(k){return H.H.useContext(k)},Te.useDebugValue=function(){},Te.useDeferredValue=function(k,F){return H.H.useDeferredValue(k,F)},Te.useEffect=function(k,F){return H.H.useEffect(k,F)},Te.useEffectEvent=function(k){return H.H.useEffectEvent(k)},Te.useId=function(){return H.H.useId()},Te.useImperativeHandle=function(k,F,W){return H.H.useImperativeHandle(k,F,W)},Te.useInsertionEffect=function(k,F){return H.H.useInsertionEffect(k,F)},Te.useLayoutEffect=function(k,F){return H.H.useLayoutEffect(k,F)},Te.useMemo=function(k,F){return H.H.useMemo(k,F)},Te.useOptimistic=function(k,F){return H.H.useOptimistic(k,F)},Te.useReducer=function(k,F,W){return H.H.useReducer(k,F,W)},Te.useRef=function(k){return H.H.useRef(k)},Te.useState=function(k){return H.H.useState(k)},Te.useSyncExternalStore=function(k,F,W){return H.H.useSyncExternalStore(k,F,W)},Te.useTransition=function(){return H.H.useTransition()},Te.version="19.2.3",Te}var Z0;function Tm(){return Z0||(Z0=1,vh.exports=YE()),vh.exports}var v=Tm();const ut=hb(v),Nb=wE({__proto__:null,default:ut},[v]);var Eb=v.createContext(void 0),Nc=n=>{const a=v.useContext(Eb);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},VE=({client:n,children:a})=>(v.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),u.jsx(Eb.Provider,{value:n,children:a})),Cb=v.createContext(!1),KE=()=>v.useContext(Cb);Cb.Provider;function XE(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var FE=v.createContext(XE()),ZE=()=>v.useContext(FE);function _b(n,a){return typeof n=="function"?n(...a):!!n}function Ih(){}var PE=(n,a)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(a.isReset()||(n.retryOnMount=!1))},JE=n=>{v.useEffect(()=>{n.clearReset()},[n])},IE=({result:n,errorResetBoundary:a,throwOnError:r,query:i,suspense:o})=>n.isError&&!a.isReset()&&!n.isFetching&&i&&(o&&n.data===void 0||_b(r,[n.error,i])),WE=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)))},eC=(n,a)=>n.isLoading&&n.isFetching&&!a,tC=(n,a)=>(n==null?void 0:n.suspense)&&a.isPending,P0=(n,a,r)=>a.fetchOptimistic(n).catch(()=>{r.clearReset()});function nC(n,a,r){var x,b,j,N,S;const i=Nc(),o=KE(),c=ZE(),h=i.defaultQueryOptions(n);(b=(x=i.getDefaultOptions().queries)==null?void 0:x._experimental_beforeQuery)==null||b.call(x,h),h._optimisticResults=o?"isRestoring":"optimistic",WE(h),PE(h,c),JE(c);const m=!i.getQueryCache().get(h.queryHash),[p]=v.useState(()=>new a(i,h)),g=p.getOptimisticResult(h),y=!o&&n.subscribed!==!1;if(v.useSyncExternalStore(v.useCallback(C=>{const _=y?p.subscribe(St.batchCalls(C)):Ih;return p.updateResult(),_},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),v.useEffect(()=>{p.setOptions(h)},[h,p]),tC(h,g))throw P0(h,p,c);if(IE({result:g,errorResetBoundary:c,throwOnError:h.throwOnError,query:i.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw g.error;if((N=(j=i.getDefaultOptions().queries)==null?void 0:j._experimental_afterQuery)==null||N.call(j,h,g),h.experimental_prefetchInRender&&!dr&&eC(g,o)){const C=m?P0(h,p,c):(S=i.getQueryCache().get(h.queryHash))==null?void 0:S.promise;C==null||C.catch(Ih).finally(()=>{p.updateResult()})}return h.notifyOnChangeProps?g:p.trackResult(g)}function ct(n,a){return nC(n,BE)}function ic(n,a){const r=Nc(),[i]=v.useState(()=>new GE(r,n));v.useEffect(()=>{i.setOptions(n)},[i,n]);const o=v.useSyncExternalStore(v.useCallback(h=>i.subscribe(St.batchCalls(h)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),c=v.useCallback((h,m)=>{i.mutate(h,m).catch(Ih)},[i]);if(o.error&&_b(i.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:c,mutateAsync:o.mutate}}var gh={exports:{}},Qs={},yh={exports:{}},xh={};/**
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 J0;function aC(){return J0||(J0=1,(function(n){function a(z,J){var Y=z.length;z.push(J);e:for(;0<Y;){var X=Y-1>>>1,de=z[X];if(0<o(de,J))z[X]=J,z[Y]=de,Y=X;else break e}}function r(z){return z.length===0?null:z[0]}function i(z){if(z.length===0)return null;var J=z[0],Y=z.pop();if(Y!==J){z[0]=Y;e:for(var X=0,de=z.length,k=de>>>1;X<k;){var F=2*(X+1)-1,W=z[F],le=F+1,ve=z[le];if(0>o(W,Y))le<de&&0>o(ve,W)?(z[X]=ve,z[le]=Y,X=le):(z[X]=W,z[F]=Y,X=F);else if(le<de&&0>o(ve,Y))z[X]=ve,z[le]=Y,X=le;else break e}}return J}function o(z,J){var Y=z.sortIndex-J.sortIndex;return Y!==0?Y:z.id-J.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,b=3,j=!1,N=!1,S=!1,C=!1,_=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function D(z){for(var J=r(g);J!==null;){if(J.callback===null)i(g);else if(J.startTime<=z)i(g),J.sortIndex=J.expirationTime,a(p,J);else break;J=r(g)}}function U(z){if(S=!1,D(z),!N)if(r(p)!==null)N=!0,K||(K=!0,ce());else{var J=r(g);J!==null&&re(U,J.startTime-z)}}var K=!1,H=-1,q=5,G=-1;function ee(){return C?!0:!(n.unstable_now()-G<q)}function ue(){if(C=!1,K){var z=n.unstable_now();G=z;var J=!0;try{e:{N=!1,S&&(S=!1,T(H),H=-1),j=!0;var Y=b;try{t:{for(D(z),x=r(p);x!==null&&!(x.expirationTime>z&&ee());){var X=x.callback;if(typeof X=="function"){x.callback=null,b=x.priorityLevel;var de=X(x.expirationTime<=z);if(z=n.unstable_now(),typeof de=="function"){x.callback=de,D(z),J=!0;break t}x===r(p)&&i(p),D(z)}else i(p);x=r(p)}if(x!==null)J=!0;else{var k=r(g);k!==null&&re(U,k.startTime-z),J=!1}}break e}finally{x=null,b=Y,j=!1}J=void 0}}finally{J?ce():K=!1}}}var ce;if(typeof R=="function")ce=function(){R(ue)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,ae=ie.port2;ie.port1.onmessage=ue,ce=function(){ae.postMessage(null)}}else ce=function(){_(ue,0)};function re(z,J){H=_(function(){z(n.unstable_now())},J)}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(z){z.callback=null},n.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<z?Math.floor(1e3/z):5},n.unstable_getCurrentPriorityLevel=function(){return b},n.unstable_next=function(z){switch(b){case 1:case 2:case 3:var J=3;break;default:J=b}var Y=b;b=J;try{return z()}finally{b=Y}},n.unstable_requestPaint=function(){C=!0},n.unstable_runWithPriority=function(z,J){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var Y=b;b=z;try{return J()}finally{b=Y}},n.unstable_scheduleCallback=function(z,J,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,z){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,z={id:y++,callback:J,priorityLevel:z,startTime:Y,expirationTime:de,sortIndex:-1},Y>X?(z.sortIndex=Y,a(g,z),r(p)===null&&z===r(g)&&(S?(T(H),H=-1):S=!0,re(U,Y-X))):(z.sortIndex=de,a(p,z),N||j||(N=!0,K||(K=!0,ce()))),z},n.unstable_shouldYield=ee,n.unstable_wrapCallback=function(z){var J=b;return function(){var Y=b;b=J;try{return z.apply(this,arguments)}finally{b=Y}}}})(xh)),xh}var I0;function lC(){return I0||(I0=1,yh.exports=aC()),yh.exports}var bh={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 W0;function rC(){if(W0)return zt;W0=1;var n=Tm();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},o=Symbol.for("react.portal");function c(p,g,y){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,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),b=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:b,fetchPriority:j}):y==="script"&&i.d.X(p,{crossOrigin:x,integrity:b,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 ex;function Tb(){if(ex)return bh.exports;ex=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(),bh.exports=rC(),bh.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 tx;function iC(){if(tx)return Qs;tx=1;var n=lC(),a=Tm(),r=Tb();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 o(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,s=t;;){var d=l.return;if(d===null)break;var f=d.alternate;if(f===null){if(s=d.return,s!==null){l=s;continue}break}if(d.child===f.child){for(f=d.child;f;){if(f===l)return p(d),e;if(f===s)return p(d),t;f=f.sibling}throw Error(i(188))}if(l.return!==s.return)l=d,s=f;else{for(var w=!1,E=d.child;E;){if(E===l){w=!0,l=d,s=f;break}if(E===s){w=!0,s=d,l=f;break}E=E.sibling}if(!w){for(E=f.child;E;){if(E===l){w=!0,l=f,s=d;break}if(E===s){w=!0,s=f,l=d;break}E=E.sibling}if(!w)throw Error(i(189))}}if(l.alternate!==s)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,b=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),N=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"),U=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),ee=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 ie=Symbol.for("react.client.reference");function ae(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ie?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 U:return"Suspense";case K:return"SuspenseList";case G:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case N: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:ae(e.type)||"Memo";case q:t=e._payload,e=e._init;try{return ae(e(t))}catch{}}return null}var re=Array.isArray,z=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=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 k(e){return{current:e}}function F(e){0>de||(e.current=X[de],X[de]=null,de--)}function W(e,t){de++,X[de]=e.current,e.current=t}var le=k(null),ve=k(null),Se=k(null),te=k(null);function Ne(e,t){switch(W(Se,t),W(ve,e),W(le,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?i0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=i0(t),e=s0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}F(le),W(le,e)}function ye(){F(le),F(ve),F(Se)}function Ee(e){e.memoizedState!==null&&W(te,e);var t=le.current,l=s0(t,e.type);t!==l&&(W(ve,e),W(le,l))}function $e(e){ve.current===e&&(F(le),F(ve)),te.current===e&&(F(te),Us._currentValue=Y)}var Ke,Ot;function It(e){if(Ke===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ke=t&&t[1]||"",Ot=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Ke+e+Ot}var fa=!1;function ha(e,t){if(!e||fa)return"";fa=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(t){var I=function(){throw Error()};if(Object.defineProperty(I.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(I,[])}catch(V){var Q=V}Reflect.construct(e,[],I)}else{try{I.call()}catch(V){Q=V}e.call(I.prototype)}}else{try{throw Error()}catch(V){Q=V}(I=e())&&typeof I.catch=="function"&&I.catch(function(){})}}catch(V){if(V&&Q&&typeof V.stack=="string")return[V.stack,Q.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=s.DetermineComponentFrameRoot(),w=f[0],E=f[1];if(w&&E){var M=w.split(`
44
+ `),$=E.split(`
45
+ `);for(d=s=0;s<M.length&&!M[s].includes("DetermineComponentFrameRoot");)s++;for(;d<$.length&&!$[d].includes("DetermineComponentFrameRoot");)d++;if(s===M.length||d===$.length)for(s=M.length-1,d=$.length-1;1<=s&&0<=d&&M[s]!==$[d];)d--;for(;1<=s&&0<=d;s--,d--)if(M[s]!==$[d]){if(s!==1||d!==1)do if(s--,d--,0>d||M[s]!==$[d]){var Z=`
46
+ `+M[s].replace(" at new "," at ");return e.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",e.displayName)),Z}while(1<=s&&0<=d);break}}}finally{fa=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?It(l):""}function Jc(e,t){switch(e.tag){case 26:case 27:case 5:return It(e.type);case 16:return It("Lazy");case 13:return e.child!==t&&t!==null?It("Suspense Fallback"):It("Suspense");case 19:return It("SuspenseList");case 0:case 15:return ha(e.type,!1);case 11:return ha(e.type.render,!1);case 1:return ha(e.type,!0);case 31:return It("Activity");default:return""}}function bo(e){try{var t="",l=null;do t+=Jc(e,l),l=e,e=e.return;while(e);return t}catch(s){return`
47
+ Error generating stack: `+s.message+`
48
+ `+s.stack}}var Ga=Object.prototype.hasOwnProperty,Ic=n.unstable_scheduleCallback,Wc=n.unstable_cancelCallback,WS=n.unstable_shouldYield,e2=n.unstable_requestPaint,Wt=n.unstable_now,t2=n.unstable_getCurrentPriorityLevel,qp=n.unstable_ImmediatePriority,Hp=n.unstable_UserBlockingPriority,wo=n.unstable_NormalPriority,n2=n.unstable_LowPriority,Bp=n.unstable_IdlePriority,a2=n.log,l2=n.unstable_setDisableYieldValue,Zi=null,en=null;function Ya(e){if(typeof a2=="function"&&l2(e),en&&typeof en.setStrictMode=="function")try{en.setStrictMode(Zi,e)}catch{}}var tn=Math.clz32?Math.clz32:s2,r2=Math.log,i2=Math.LN2;function s2(e){return e>>>=0,e===0?32:31-(r2(e)/i2|0)|0}var jo=256,So=262144,No=4194304;function Ul(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 Eo(e,t,l){var s=e.pendingLanes;if(s===0)return 0;var d=0,f=e.suspendedLanes,w=e.pingedLanes;e=e.warmLanes;var E=s&134217727;return E!==0?(s=E&~f,s!==0?d=Ul(s):(w&=E,w!==0?d=Ul(w):l||(l=E&~e,l!==0&&(d=Ul(l))))):(E=s&~f,E!==0?d=Ul(E):w!==0?d=Ul(w):l||(l=s&~e,l!==0&&(d=Ul(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 o2(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 $p(){var e=No;return No<<=1,(No&62914560)===0&&(No=4194304),e}function ed(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 u2(e,t,l,s,d,f){var w=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 E=e.entanglements,M=e.expirationTimes,$=e.hiddenUpdates;for(l=w&~l;0<l;){var Z=31-tn(l),I=1<<Z;E[Z]=0,M[Z]=-1;var Q=$[Z];if(Q!==null)for($[Z]=null,Z=0;Z<Q.length;Z++){var V=Q[Z];V!==null&&(V.lane&=-536870913)}l&=~I}s!==0&&Qp(e,s,0),f!==0&&d===0&&e.tag!==0&&(e.suspendedLanes|=f&~(w&~t))}function Qp(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-tn(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|l&261930}function Gp(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var s=31-tn(l),d=1<<s;d&t|e[s]&t&&(e[s]|=t),l&=~d}}function Yp(e,t){var l=t&-t;return l=(l&42)!==0?1:td(l),(l&(e.suspendedLanes|t))!==0?0:l}function td(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 nd(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Vp(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:M0(e.type))}function Kp(e,t){var l=J.p;try{return J.p=e,t()}finally{J.p=l}}var Va=Math.random().toString(36).slice(2),Rt="__reactFiber$"+Va,Gt="__reactProps$"+Va,Nr="__reactContainer$"+Va,ad="__reactEvents$"+Va,c2="__reactListeners$"+Va,d2="__reactHandles$"+Va,Xp="__reactResources$"+Va,Ii="__reactMarker$"+Va;function ld(e){delete e[Rt],delete e[Gt],delete e[ad],delete e[c2],delete e[d2]}function Er(e){var t=e[Rt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Nr]||l[Rt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=m0(e);e!==null;){if(l=e[Rt])return l;e=m0(e)}return t}e=l,l=e.parentNode}return null}function Cr(e){if(e=e[Rt]||e[Nr]){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 _r(e){var t=e[Xp];return t||(t=e[Xp]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function _t(e){e[Ii]=!0}var Fp=new Set,Zp={};function ql(e,t){Tr(e,t),Tr(e+"Capture",t)}function Tr(e,t){for(Zp[e]=t,e=0;e<t.length;e++)Fp.add(t[e])}var f2=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]*$"),Pp={},Jp={};function h2(e){return Ga.call(Jp,e)?!0:Ga.call(Pp,e)?!1:f2.test(e)?Jp[e]=!0:(Pp[e]=!0,!1)}function Co(e,t,l){if(h2(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function _o(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 ma(e,t,l,s){if(s===null)e.removeAttribute(l);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+s)}}function pn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ip(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function m2(e,t,l){var s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var d=s.get,f=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return d.call(this)},set:function(w){l=""+w,f.call(this,w)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return l},setValue:function(w){l=""+w},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function rd(e){if(!e._valueTracker){var t=Ip(e)?"checked":"value";e._valueTracker=m2(e,t,""+e[t])}}function Wp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),s="";return e&&(s=Ip(e)?e.checked?"true":"false":e.value),e=s,e!==l?(t.setValue(e),!0):!1}function To(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 p2=/[\n"\\]/g;function vn(e){return e.replace(p2,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function id(e,t,l,s,d,f,w,E){e.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?e.type=w:e.removeAttribute("type"),t!=null?w==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+pn(t)):e.value!==""+pn(t)&&(e.value=""+pn(t)):w!=="submit"&&w!=="reset"||e.removeAttribute("value"),t!=null?sd(e,w,pn(t)):l!=null?sd(e,w,pn(l)):s!=null&&e.removeAttribute("value"),d==null&&f!=null&&(e.defaultChecked=!!f),d!=null&&(e.checked=d&&typeof d!="function"&&typeof d!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?e.name=""+pn(E):e.removeAttribute("name")}function ev(e,t,l,s,d,f,w,E){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)){rd(e);return}l=l!=null?""+pn(l):"",t=t!=null?""+pn(t):l,E||t===e.value||(e.value=t),e.defaultValue=t}s=s??d,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=E?e.checked:!!s,e.defaultChecked=!!s,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(e.name=w),rd(e)}function sd(e,t,l){t==="number"&&To(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Rr(e,t,l,s){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&&s&&(e[l].defaultSelected=!0)}else{for(l=""+pn(l),t=null,d=0;d<e.length;d++){if(e[d].value===l){e[d].selected=!0,s&&(e[d].defaultSelected=!0);return}t!==null||e[d].disabled||(t=e[d])}t!==null&&(t.selected=!0)}}function tv(e,t,l){if(t!=null&&(t=""+pn(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+pn(l):""}function nv(e,t,l,s){if(t==null){if(s!=null){if(l!=null)throw Error(i(92));if(re(s)){if(1<s.length)throw Error(i(93));s=s[0]}l=s}l==null&&(l=""),t=l}l=pn(t),e.defaultValue=l,s=e.textContent,s===l&&s!==""&&s!==null&&(e.value=s),rd(e)}function Mr(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var v2=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 av(e,t,l){var s=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,l):typeof l!="number"||l===0||v2.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function lv(e,t,l){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,l!=null){for(var s in l)!l.hasOwnProperty(s)||t!=null&&t.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var d in t)s=t[d],t.hasOwnProperty(d)&&l[d]!==s&&av(e,d,s)}else for(var f in t)t.hasOwnProperty(f)&&av(e,f,t[f])}function od(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 g2=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"]]),y2=/^[\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 Ro(e){return y2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function pa(){}var ud=null;function cd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kr=null,Ar=null;function rv(e){var t=Cr(e);if(t&&(e=t.stateNode)){var l=e[Gt]||null;e:switch(e=t.stateNode,t.type){case"input":if(id(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="'+vn(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var s=l[t];if(s!==e&&s.form===e.form){var d=s[Gt]||null;if(!d)throw Error(i(90));id(s,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(t=0;t<l.length;t++)s=l[t],s.form===e.form&&Wp(s)}break e;case"textarea":tv(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Rr(e,!!l.multiple,t,!1)}}}var dd=!1;function iv(e,t,l){if(dd)return e(t,l);dd=!0;try{var s=e(t);return s}finally{if(dd=!1,(kr!==null||Ar!==null)&&(vu(),kr&&(t=kr,e=Ar,Ar=kr=null,rv(t),e)))for(t=0;t<e.length;t++)rv(e[t])}}function es(e,t){var l=e.stateNode;if(l===null)return null;var s=l[Gt]||null;if(s===null)return null;l=s[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":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(i(231,t,typeof l));return l}var va=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fd=!1;if(va)try{var ts={};Object.defineProperty(ts,"passive",{get:function(){fd=!0}}),window.addEventListener("test",ts,ts),window.removeEventListener("test",ts,ts)}catch{fd=!1}var Ka=null,hd=null,Mo=null;function sv(){if(Mo)return Mo;var e,t=hd,l=t.length,s,d="value"in Ka?Ka.value:Ka.textContent,f=d.length;for(e=0;e<l&&t[e]===d[e];e++);var w=l-e;for(s=1;s<=w&&t[l-s]===d[f-s];s++);return Mo=d.slice(e,1<s?1-s:void 0)}function ko(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 Ao(){return!0}function ov(){return!1}function Yt(e){function t(l,s,d,f,w){this._reactName=l,this._targetInst=d,this.type=s,this.nativeEvent=f,this.target=w,this.currentTarget=null;for(var E in e)e.hasOwnProperty(E)&&(l=e[E],this[E]=l?l(f):f[E]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Ao:ov,this.isPropagationStopped=ov,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=Ao)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ao)},persist:function(){},isPersistent:Ao}),t}var Hl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Do=Yt(Hl),ns=x({},Hl,{view:0,detail:0}),x2=Yt(ns),md,pd,as,Oo=x({},ns,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gd,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!==as&&(as&&e.type==="mousemove"?(md=e.screenX-as.screenX,pd=e.screenY-as.screenY):pd=md=0,as=e),md)},movementY:function(e){return"movementY"in e?e.movementY:pd}}),uv=Yt(Oo),b2=x({},Oo,{dataTransfer:0}),w2=Yt(b2),j2=x({},ns,{relatedTarget:0}),vd=Yt(j2),S2=x({},Hl,{animationName:0,elapsedTime:0,pseudoElement:0}),N2=Yt(S2),E2=x({},Hl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),C2=Yt(E2),_2=x({},Hl,{data:0}),cv=Yt(_2),T2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},R2={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"},M2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function k2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=M2[e])?!!t[e]:!1}function gd(){return k2}var A2=x({},ns,{key:function(e){if(e.key){var t=T2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ko(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?R2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gd,charCode:function(e){return e.type==="keypress"?ko(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ko(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),D2=Yt(A2),O2=x({},Oo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dv=Yt(O2),z2=x({},ns,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gd}),L2=Yt(z2),U2=x({},Hl,{propertyName:0,elapsedTime:0,pseudoElement:0}),q2=Yt(U2),H2=x({},Oo,{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}),B2=Yt(H2),$2=x({},Hl,{newState:0,oldState:0}),Q2=Yt($2),G2=[9,13,27,32],yd=va&&"CompositionEvent"in window,ls=null;va&&"documentMode"in document&&(ls=document.documentMode);var Y2=va&&"TextEvent"in window&&!ls,fv=va&&(!yd||ls&&8<ls&&11>=ls),hv=" ",mv=!1;function pv(e,t){switch(e){case"keyup":return G2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dr=!1;function V2(e,t){switch(e){case"compositionend":return vv(t);case"keypress":return t.which!==32?null:(mv=!0,hv);case"textInput":return e=t.data,e===hv&&mv?null:e;default:return null}}function K2(e,t){if(Dr)return e==="compositionend"||!yd&&pv(e,t)?(e=sv(),Mo=hd=Ka=null,Dr=!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 fv&&t.locale!=="ko"?null:t.data;default:return null}}var X2={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 gv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!X2[e.type]:t==="textarea"}function yv(e,t,l,s){kr?Ar?Ar.push(s):Ar=[s]:kr=s,t=Su(t,"onChange"),0<t.length&&(l=new Do("onChange","change",null,l,s),e.push({event:l,listeners:t}))}var rs=null,is=null;function F2(e){e0(e,0)}function zo(e){var t=Wi(e);if(Wp(t))return e}function xv(e,t){if(e==="change")return t}var bv=!1;if(va){var xd;if(va){var bd="oninput"in document;if(!bd){var wv=document.createElement("div");wv.setAttribute("oninput","return;"),bd=typeof wv.oninput=="function"}xd=bd}else xd=!1;bv=xd&&(!document.documentMode||9<document.documentMode)}function jv(){rs&&(rs.detachEvent("onpropertychange",Sv),is=rs=null)}function Sv(e){if(e.propertyName==="value"&&zo(is)){var t=[];yv(t,is,e,cd(e)),iv(F2,t)}}function Z2(e,t,l){e==="focusin"?(jv(),rs=t,is=l,rs.attachEvent("onpropertychange",Sv)):e==="focusout"&&jv()}function P2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return zo(is)}function J2(e,t){if(e==="click")return zo(t)}function I2(e,t){if(e==="input"||e==="change")return zo(t)}function W2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nn=typeof Object.is=="function"?Object.is:W2;function ss(e,t){if(nn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),s=Object.keys(t);if(l.length!==s.length)return!1;for(s=0;s<l.length;s++){var d=l[s];if(!Ga.call(t,d)||!nn(e[d],t[d]))return!1}return!0}function Nv(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ev(e,t){var l=Nv(e);e=0;for(var s;l;){if(l.nodeType===3){if(s=e+l.textContent.length,e<=t&&s>=t)return{node:l,offset:t-e};e=s}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Nv(l)}}function Cv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _v(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=To(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=To(e.document)}return t}function wd(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 eN=va&&"documentMode"in document&&11>=document.documentMode,Or=null,jd=null,os=null,Sd=!1;function Tv(e,t,l){var s=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Sd||Or==null||Or!==To(s)||(s=Or,"selectionStart"in s&&wd(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),os&&ss(os,s)||(os=s,s=Su(jd,"onSelect"),0<s.length&&(t=new Do("onSelect","select",null,t,l),e.push({event:t,listeners:s}),t.target=Or)))}function Bl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var zr={animationend:Bl("Animation","AnimationEnd"),animationiteration:Bl("Animation","AnimationIteration"),animationstart:Bl("Animation","AnimationStart"),transitionrun:Bl("Transition","TransitionRun"),transitionstart:Bl("Transition","TransitionStart"),transitioncancel:Bl("Transition","TransitionCancel"),transitionend:Bl("Transition","TransitionEnd")},Nd={},Rv={};va&&(Rv=document.createElement("div").style,"AnimationEvent"in window||(delete zr.animationend.animation,delete zr.animationiteration.animation,delete zr.animationstart.animation),"TransitionEvent"in window||delete zr.transitionend.transition);function $l(e){if(Nd[e])return Nd[e];if(!zr[e])return e;var t=zr[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Rv)return Nd[e]=t[l];return e}var Mv=$l("animationend"),kv=$l("animationiteration"),Av=$l("animationstart"),tN=$l("transitionrun"),nN=$l("transitionstart"),aN=$l("transitioncancel"),Dv=$l("transitionend"),Ov=new Map,Ed="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(" ");Ed.push("scrollEnd");function An(e,t){Ov.set(e,t),ql(t,[e])}var Lo=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)},gn=[],Lr=0,Cd=0;function Uo(){for(var e=Lr,t=Cd=Lr=0;t<e;){var l=gn[t];gn[t++]=null;var s=gn[t];gn[t++]=null;var d=gn[t];gn[t++]=null;var f=gn[t];if(gn[t++]=null,s!==null&&d!==null){var w=s.pending;w===null?d.next=d:(d.next=w.next,w.next=d),s.pending=d}f!==0&&zv(l,d,f)}}function qo(e,t,l,s){gn[Lr++]=e,gn[Lr++]=t,gn[Lr++]=l,gn[Lr++]=s,Cd|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function _d(e,t,l,s){return qo(e,t,l,s),Ho(e)}function Ql(e,t){return qo(e,null,null,t),Ho(e)}function zv(e,t,l){e.lanes|=l;var s=e.alternate;s!==null&&(s.lanes|=l);for(var d=!1,f=e.return;f!==null;)f.childLanes|=l,s=f.alternate,s!==null&&(s.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-tn(l),e=f.hiddenUpdates,s=e[d],s===null?e[d]=[t]:s.push(t),t.lane=l|536870912),f):null}function Ho(e){if(50<Ms)throw Ms=0,Uf=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ur={};function lN(e,t,l,s){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=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function an(e,t,l,s){return new lN(e,t,l,s)}function Td(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ga(e,t){var l=e.alternate;return l===null?(l=an(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 Lv(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 Bo(e,t,l,s,d,f){var w=0;if(s=e,typeof e=="function")Td(e)&&(w=1);else if(typeof e=="string")w=uE(e,l,le.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case G:return e=an(31,l,t,d),e.elementType=G,e.lanes=f,e;case S:return Gl(l.children,d,f,t);case C:w=8,d|=24;break;case _:return e=an(12,l,t,d|2),e.elementType=_,e.lanes=f,e;case U:return e=an(13,l,t,d),e.elementType=U,e.lanes=f,e;case K:return e=an(19,l,t,d),e.elementType=K,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case R:w=10;break e;case T:w=9;break e;case D:w=11;break e;case H:w=14;break e;case q:w=16,s=null;break e}w=29,l=Error(i(130,e===null?"null":typeof e,"")),s=null}return t=an(w,l,t,d),t.elementType=e,t.type=s,t.lanes=f,t}function Gl(e,t,l,s){return e=an(7,e,s,t),e.lanes=l,e}function Rd(e,t,l){return e=an(6,e,null,t),e.lanes=l,e}function Uv(e){var t=an(18,null,null,0);return t.stateNode=e,t}function Md(e,t,l){return t=an(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var qv=new WeakMap;function yn(e,t){if(typeof e=="object"&&e!==null){var l=qv.get(e);return l!==void 0?l:(t={value:e,source:t,stack:bo(t)},qv.set(e,t),t)}return{value:e,source:t,stack:bo(t)}}var qr=[],Hr=0,$o=null,us=0,xn=[],bn=0,Xa=null,Zn=1,Pn="";function ya(e,t){qr[Hr++]=us,qr[Hr++]=$o,$o=e,us=t}function Hv(e,t,l){xn[bn++]=Zn,xn[bn++]=Pn,xn[bn++]=Xa,Xa=e;var s=Zn;e=Pn;var d=32-tn(s)-1;s&=~(1<<d),l+=1;var f=32-tn(t)+d;if(30<f){var w=d-d%5;f=(s&(1<<w)-1).toString(32),s>>=w,d-=w,Zn=1<<32-tn(t)+d|l<<d|s,Pn=f+e}else Zn=1<<f|l<<d|s,Pn=e}function kd(e){e.return!==null&&(ya(e,1),Hv(e,1,0))}function Ad(e){for(;e===$o;)$o=qr[--Hr],qr[Hr]=null,us=qr[--Hr],qr[Hr]=null;for(;e===Xa;)Xa=xn[--bn],xn[bn]=null,Pn=xn[--bn],xn[bn]=null,Zn=xn[--bn],xn[bn]=null}function Bv(e,t){xn[bn++]=Zn,xn[bn++]=Pn,xn[bn++]=Xa,Zn=t.id,Pn=t.overflow,Xa=e}var Mt=null,We=null,qe=!1,Fa=null,wn=!1,Dd=Error(i(519));function Za(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw cs(yn(t,e)),Dd}function $v(e){var t=e.stateNode,l=e.type,s=e.memoizedProps;switch(t[Rt]=e,t[Gt]=s,l){case"dialog":ze("cancel",t),ze("close",t);break;case"iframe":case"object":case"embed":ze("load",t);break;case"video":case"audio":for(l=0;l<As.length;l++)ze(As[l],t);break;case"source":ze("error",t);break;case"img":case"image":case"link":ze("error",t),ze("load",t);break;case"details":ze("toggle",t);break;case"input":ze("invalid",t),ev(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":ze("invalid",t);break;case"textarea":ze("invalid",t),nv(t,s.value,s.defaultValue,s.children)}l=s.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||s.suppressHydrationWarning===!0||l0(t.textContent,l)?(s.popover!=null&&(ze("beforetoggle",t),ze("toggle",t)),s.onScroll!=null&&ze("scroll",t),s.onScrollEnd!=null&&ze("scrollend",t),s.onClick!=null&&(t.onclick=pa),t=!0):t=!1,t||Za(e,!0)}function Qv(e){for(Mt=e.return;Mt;)switch(Mt.tag){case 5:case 31:case 13:wn=!1;return;case 27:case 3:wn=!0;return;default:Mt=Mt.return}}function Br(e){if(e!==Mt)return!1;if(!qe)return Qv(e),qe=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||If(e.type,e.memoizedProps)),l=!l),l&&We&&Za(e),Qv(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));We=h0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));We=h0(e)}else t===27?(t=We,ul(e.type)?(e=ah,ah=null,We=e):We=t):We=Mt?Sn(e.stateNode.nextSibling):null;return!0}function Yl(){We=Mt=null,qe=!1}function Od(){var e=Fa;return e!==null&&(Ft===null?Ft=e:Ft.push.apply(Ft,e),Fa=null),e}function cs(e){Fa===null?Fa=[e]:Fa.push(e)}var zd=k(null),Vl=null,xa=null;function Pa(e,t,l){W(zd,t._currentValue),t._currentValue=l}function ba(e){e._currentValue=zd.current,F(zd)}function Ld(e,t,l){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===l)break;e=e.return}}function Ud(e,t,l,s){var d=e.child;for(d!==null&&(d.return=e);d!==null;){var f=d.dependencies;if(f!==null){var w=d.child;f=f.firstContext;e:for(;f!==null;){var E=f;f=d;for(var M=0;M<t.length;M++)if(E.context===t[M]){f.lanes|=l,E=f.alternate,E!==null&&(E.lanes|=l),Ld(f.return,l,e),s||(w=null);break e}f=E.next}}else if(d.tag===18){if(w=d.return,w===null)throw Error(i(341));w.lanes|=l,f=w.alternate,f!==null&&(f.lanes|=l),Ld(w,l,e),w=null}else w=d.child;if(w!==null)w.return=d;else for(w=d;w!==null;){if(w===e){w=null;break}if(d=w.sibling,d!==null){d.return=w.return,w=d;break}w=w.return}d=w}}function $r(e,t,l,s){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 w=d.alternate;if(w===null)throw Error(i(387));if(w=w.memoizedProps,w!==null){var E=d.type;nn(d.pendingProps.value,w.value)||(e!==null?e.push(E):e=[E])}}else if(d===te.current){if(w=d.alternate,w===null)throw Error(i(387));w.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(e!==null?e.push(Us):e=[Us])}d=d.return}e!==null&&Ud(t,e,l,s),t.flags|=262144}function Qo(e){for(e=e.firstContext;e!==null;){if(!nn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Kl(e){Vl=e,xa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function kt(e){return Gv(Vl,e)}function Go(e,t){return Vl===null&&Kl(e),Gv(e,t)}function Gv(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},xa===null){if(e===null)throw Error(i(308));xa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else xa=xa.next=t;return l}var rN=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},iN=n.unstable_scheduleCallback,sN=n.unstable_NormalPriority,vt={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function qd(){return{controller:new rN,data:new Map,refCount:0}}function ds(e){e.refCount--,e.refCount===0&&iN(sN,function(){e.controller.abort()})}var fs=null,Hd=0,Qr=0,Gr=null;function oN(e,t){if(fs===null){var l=fs=[];Hd=0,Qr=Gf(),Gr={status:"pending",value:void 0,then:function(s){l.push(s)}}}return Hd++,t.then(Yv,Yv),t}function Yv(){if(--Hd===0&&fs!==null){Gr!==null&&(Gr.status="fulfilled");var e=fs;fs=null,Qr=0,Gr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function uN(e,t){var l=[],s={status:"pending",value:null,reason:null,then:function(d){l.push(d)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var d=0;d<l.length;d++)(0,l[d])(t)},function(d){for(s.status="rejected",s.reason=d,d=0;d<l.length;d++)(0,l[d])(void 0)}),s}var Vv=z.S;z.S=function(e,t){Ty=Wt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&oN(e,t),Vv!==null&&Vv(e,t)};var Xl=k(null);function Bd(){var e=Xl.current;return e!==null?e:Ie.pooledCache}function Yo(e,t){t===null?W(Xl,Xl.current):W(Xl,t.pool)}function Kv(){var e=Bd();return e===null?null:{parent:vt._currentValue,pool:e}}var Yr=Error(i(460)),$d=Error(i(474)),Vo=Error(i(542)),Ko={then:function(){}};function Xv(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Fv(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(pa,pa),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Pv(e),e;default:if(typeof t.status=="string")t.then(pa,pa);else{if(e=Ie,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(s){if(t.status==="pending"){var d=t;d.status="fulfilled",d.value=s}},function(s){if(t.status==="pending"){var d=t;d.status="rejected",d.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Pv(e),e}throw Zl=t,Yr}}function Fl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Zl=l,Yr):l}}var Zl=null;function Zv(){if(Zl===null)throw Error(i(459));var e=Zl;return Zl=null,e}function Pv(e){if(e===Yr||e===Vo)throw Error(i(483))}var Vr=null,hs=0;function Xo(e){var t=hs;return hs+=1,Vr===null&&(Vr=[]),Fv(Vr,e,t)}function ms(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Fo(e,t){throw t.$$typeof===b?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Jv(e){function t(L,O){if(e){var B=L.deletions;B===null?(L.deletions=[O],L.flags|=16):B.push(O)}}function l(L,O){if(!e)return null;for(;O!==null;)t(L,O),O=O.sibling;return null}function s(L){for(var O=new Map;L!==null;)L.key!==null?O.set(L.key,L):O.set(L.index,L),L=L.sibling;return O}function d(L,O){return L=ga(L,O),L.index=0,L.sibling=null,L}function f(L,O,B){return L.index=B,e?(B=L.alternate,B!==null?(B=B.index,B<O?(L.flags|=67108866,O):B):(L.flags|=67108866,O)):(L.flags|=1048576,O)}function w(L){return e&&L.alternate===null&&(L.flags|=67108866),L}function E(L,O,B,P){return O===null||O.tag!==6?(O=Rd(B,L.mode,P),O.return=L,O):(O=d(O,B),O.return=L,O)}function M(L,O,B,P){var xe=B.type;return xe===S?Z(L,O,B.props.children,P,B.key):O!==null&&(O.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===q&&Fl(xe)===O.type)?(O=d(O,B.props),ms(O,B),O.return=L,O):(O=Bo(B.type,B.key,B.props,null,L.mode,P),ms(O,B),O.return=L,O)}function $(L,O,B,P){return O===null||O.tag!==4||O.stateNode.containerInfo!==B.containerInfo||O.stateNode.implementation!==B.implementation?(O=Md(B,L.mode,P),O.return=L,O):(O=d(O,B.children||[]),O.return=L,O)}function Z(L,O,B,P,xe){return O===null||O.tag!==7?(O=Gl(B,L.mode,P,xe),O.return=L,O):(O=d(O,B),O.return=L,O)}function I(L,O,B){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Rd(""+O,L.mode,B),O.return=L,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case j:return B=Bo(O.type,O.key,O.props,null,L.mode,B),ms(B,O),B.return=L,B;case N:return O=Md(O,L.mode,B),O.return=L,O;case q:return O=Fl(O),I(L,O,B)}if(re(O)||ce(O))return O=Gl(O,L.mode,B,null),O.return=L,O;if(typeof O.then=="function")return I(L,Xo(O),B);if(O.$$typeof===R)return I(L,Go(L,O),B);Fo(L,O)}return null}function Q(L,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:E(L,O,""+B,P);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case j:return B.key===xe?M(L,O,B,P):null;case N:return B.key===xe?$(L,O,B,P):null;case q:return B=Fl(B),Q(L,O,B,P)}if(re(B)||ce(B))return xe!==null?null:Z(L,O,B,P,null);if(typeof B.then=="function")return Q(L,O,Xo(B),P);if(B.$$typeof===R)return Q(L,O,Go(L,B),P);Fo(L,B)}return null}function V(L,O,B,P,xe){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return L=L.get(B)||null,E(O,L,""+P,xe);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case j:return L=L.get(P.key===null?B:P.key)||null,M(O,L,P,xe);case N:return L=L.get(P.key===null?B:P.key)||null,$(O,L,P,xe);case q:return P=Fl(P),V(L,O,B,P,xe)}if(re(P)||ce(P))return L=L.get(B)||null,Z(O,L,P,xe,null);if(typeof P.then=="function")return V(L,O,B,Xo(P),xe);if(P.$$typeof===R)return V(L,O,B,Go(O,P),xe);Fo(O,P)}return null}function fe(L,O,B,P){for(var xe=null,Qe=null,ge=O,Me=O=0,Ue=null;ge!==null&&Me<B.length;Me++){ge.index>Me?(Ue=ge,ge=null):Ue=ge.sibling;var Ge=Q(L,ge,B[Me],P);if(Ge===null){ge===null&&(ge=Ue);break}e&&ge&&Ge.alternate===null&&t(L,ge),O=f(Ge,O,Me),Qe===null?xe=Ge:Qe.sibling=Ge,Qe=Ge,ge=Ue}if(Me===B.length)return l(L,ge),qe&&ya(L,Me),xe;if(ge===null){for(;Me<B.length;Me++)ge=I(L,B[Me],P),ge!==null&&(O=f(ge,O,Me),Qe===null?xe=ge:Qe.sibling=ge,Qe=ge);return qe&&ya(L,Me),xe}for(ge=s(ge);Me<B.length;Me++)Ue=V(ge,L,Me,B[Me],P),Ue!==null&&(e&&Ue.alternate!==null&&ge.delete(Ue.key===null?Me:Ue.key),O=f(Ue,O,Me),Qe===null?xe=Ue:Qe.sibling=Ue,Qe=Ue);return e&&ge.forEach(function(ml){return t(L,ml)}),qe&&ya(L,Me),xe}function je(L,O,B,P){if(B==null)throw Error(i(151));for(var xe=null,Qe=null,ge=O,Me=O=0,Ue=null,Ge=B.next();ge!==null&&!Ge.done;Me++,Ge=B.next()){ge.index>Me?(Ue=ge,ge=null):Ue=ge.sibling;var ml=Q(L,ge,Ge.value,P);if(ml===null){ge===null&&(ge=Ue);break}e&&ge&&ml.alternate===null&&t(L,ge),O=f(ml,O,Me),Qe===null?xe=ml:Qe.sibling=ml,Qe=ml,ge=Ue}if(Ge.done)return l(L,ge),qe&&ya(L,Me),xe;if(ge===null){for(;!Ge.done;Me++,Ge=B.next())Ge=I(L,Ge.value,P),Ge!==null&&(O=f(Ge,O,Me),Qe===null?xe=Ge:Qe.sibling=Ge,Qe=Ge);return qe&&ya(L,Me),xe}for(ge=s(ge);!Ge.done;Me++,Ge=B.next())Ge=V(ge,L,Me,Ge.value,P),Ge!==null&&(e&&Ge.alternate!==null&&ge.delete(Ge.key===null?Me:Ge.key),O=f(Ge,O,Me),Qe===null?xe=Ge:Qe.sibling=Ge,Qe=Ge);return e&&ge.forEach(function(bE){return t(L,bE)}),qe&&ya(L,Me),xe}function Je(L,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(L,O.sibling),P=d(O,B.props.children),P.return=L,L=P;break e}}else if(O.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===q&&Fl(xe)===O.type){l(L,O.sibling),P=d(O,B.props),ms(P,B),P.return=L,L=P;break e}l(L,O);break}else t(L,O);O=O.sibling}B.type===S?(P=Gl(B.props.children,L.mode,P,B.key),P.return=L,L=P):(P=Bo(B.type,B.key,B.props,null,L.mode,P),ms(P,B),P.return=L,L=P)}return w(L);case N: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(L,O.sibling),P=d(O,B.children||[]),P.return=L,L=P;break e}else{l(L,O);break}else t(L,O);O=O.sibling}P=Md(B,L.mode,P),P.return=L,L=P}return w(L);case q:return B=Fl(B),Je(L,O,B,P)}if(re(B))return fe(L,O,B,P);if(ce(B)){if(xe=ce(B),typeof xe!="function")throw Error(i(150));return B=xe.call(B),je(L,O,B,P)}if(typeof B.then=="function")return Je(L,O,Xo(B),P);if(B.$$typeof===R)return Je(L,O,Go(L,B),P);Fo(L,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,O!==null&&O.tag===6?(l(L,O.sibling),P=d(O,B),P.return=L,L=P):(l(L,O),P=Rd(B,L.mode,P),P.return=L,L=P),w(L)):l(L,O)}return function(L,O,B,P){try{hs=0;var xe=Je(L,O,B,P);return Vr=null,xe}catch(ge){if(ge===Yr||ge===Vo)throw ge;var Qe=an(29,ge,null,L.mode);return Qe.lanes=P,Qe.return=L,Qe}finally{}}}var Pl=Jv(!0),Iv=Jv(!1),Ja=!1;function Qd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Gd(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 Ia(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Wa(e,t,l){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Ye&2)!==0){var d=s.pending;return d===null?t.next=t:(t.next=d.next,d.next=t),s.pending=t,t=Ho(e),zv(e,null,l),t}return qo(e,s,t,l),Ho(e)}function ps(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,l|=s,t.lanes=l,Gp(e,l)}}function Yd(e,t){var l=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,l===s)){var d=null,f=null;if(l=l.firstBaseUpdate,l!==null){do{var w={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};f===null?d=f=w:f=f.next=w,l=l.next}while(l!==null);f===null?d=f=t:f=f.next=t}else d=f=t;l={baseState:s.baseState,firstBaseUpdate:d,lastBaseUpdate:f,shared:s.shared,callbacks:s.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Vd=!1;function vs(){if(Vd){var e=Gr;if(e!==null)throw e}}function gs(e,t,l,s){Vd=!1;var d=e.updateQueue;Ja=!1;var f=d.firstBaseUpdate,w=d.lastBaseUpdate,E=d.shared.pending;if(E!==null){d.shared.pending=null;var M=E,$=M.next;M.next=null,w===null?f=$:w.next=$,w=M;var Z=e.alternate;Z!==null&&(Z=Z.updateQueue,E=Z.lastBaseUpdate,E!==w&&(E===null?Z.firstBaseUpdate=$:E.next=$,Z.lastBaseUpdate=M))}if(f!==null){var I=d.baseState;w=0,Z=$=M=null,E=f;do{var Q=E.lane&-536870913,V=Q!==E.lane;if(V?(Le&Q)===Q:(s&Q)===Q){Q!==0&&Q===Qr&&(Vd=!0),Z!==null&&(Z=Z.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var fe=e,je=E;Q=t;var Je=l;switch(je.tag){case 1:if(fe=je.payload,typeof fe=="function"){I=fe.call(Je,I,Q);break e}I=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=je.payload,Q=typeof fe=="function"?fe.call(Je,I,Q):fe,Q==null)break e;I=x({},I,Q);break e;case 2:Ja=!0}}Q=E.callback,Q!==null&&(e.flags|=64,V&&(e.flags|=8192),V=d.callbacks,V===null?d.callbacks=[Q]:V.push(Q))}else V={lane:Q,tag:E.tag,payload:E.payload,callback:E.callback,next:null},Z===null?($=Z=V,M=I):Z=Z.next=V,w|=Q;if(E=E.next,E===null){if(E=d.shared.pending,E===null)break;V=E,E=V.next,V.next=null,d.lastBaseUpdate=V,d.shared.pending=null}}while(!0);Z===null&&(M=I),d.baseState=M,d.firstBaseUpdate=$,d.lastBaseUpdate=Z,f===null&&(d.shared.lanes=0),ll|=w,e.lanes=w,e.memoizedState=I}}function Wv(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function eg(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Wv(l[e],t)}var Kr=k(null),Zo=k(0);function tg(e,t){e=Ra,W(Zo,e),W(Kr,t),Ra=e|t.baseLanes}function Kd(){W(Zo,Ra),W(Kr,Kr.current)}function Xd(){Ra=Zo.current,F(Kr),F(Zo)}var ln=k(null),jn=null;function el(e){var t=e.alternate;W(ft,ft.current&1),W(ln,e),jn===null&&(t===null||Kr.current!==null||t.memoizedState!==null)&&(jn=e)}function Fd(e){W(ft,ft.current),W(ln,e),jn===null&&(jn=e)}function ng(e){e.tag===22?(W(ft,ft.current),W(ln,e),jn===null&&(jn=e)):tl()}function tl(){W(ft,ft.current),W(ln,ln.current)}function rn(e){F(ln),jn===e&&(jn=null),F(ft)}var ft=k(0);function Po(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||th(l)||nh(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 wa=0,Re=null,Ze=null,gt=null,Jo=!1,Xr=!1,Jl=!1,Io=0,ys=0,Fr=null,cN=0;function it(){throw Error(i(321))}function Zd(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!nn(e[l],t[l]))return!1;return!0}function Pd(e,t,l,s,d,f){return wa=f,Re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,z.H=e===null||e.memoizedState===null?Hg:ff,Jl=!1,f=l(s,d),Jl=!1,Xr&&(f=lg(t,l,s,d)),ag(e),f}function ag(e){z.H=ws;var t=Ze!==null&&Ze.next!==null;if(wa=0,gt=Ze=Re=null,Jo=!1,ys=0,Fr=null,t)throw Error(i(300));e===null||yt||(e=e.dependencies,e!==null&&Qo(e)&&(yt=!0))}function lg(e,t,l,s){Re=e;var d=0;do{if(Xr&&(Fr=null),ys=0,Xr=!1,25<=d)throw Error(i(301));if(d+=1,gt=Ze=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}z.H=Bg,f=t(l,s)}while(Xr);return f}function dN(){var e=z.H,t=e.useState()[0];return t=typeof t.then=="function"?xs(t):t,e=e.useState()[0],(Ze!==null?Ze.memoizedState:null)!==e&&(Re.flags|=1024),t}function Jd(){var e=Io!==0;return Io=0,e}function Id(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Wd(e){if(Jo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Jo=!1}wa=0,gt=Ze=Re=null,Xr=!1,ys=Io=0,Fr=null}function Ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gt===null?Re.memoizedState=gt=e:gt=gt.next=e,gt}function ht(){if(Ze===null){var e=Re.alternate;e=e!==null?e.memoizedState:null}else e=Ze.next;var t=gt===null?Re.memoizedState:gt.next;if(t!==null)gt=t,Ze=e;else{if(e===null)throw Re.alternate===null?Error(i(467)):Error(i(310));Ze=e,e={memoizedState:Ze.memoizedState,baseState:Ze.baseState,baseQueue:Ze.baseQueue,queue:Ze.queue,next:null},gt===null?Re.memoizedState=gt=e:gt=gt.next=e}return gt}function Wo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function xs(e){var t=ys;return ys+=1,Fr===null&&(Fr=[]),e=Fv(Fr,e,t),t=Re,(gt===null?t.memoizedState:gt.next)===null&&(t=t.alternate,z.H=t===null||t.memoizedState===null?Hg:ff),e}function eu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return xs(e);if(e.$$typeof===R)return kt(e)}throw Error(i(438,String(e)))}function ef(e){var t=null,l=Re.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var s=Re.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(d){return d.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Wo(),Re.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),s=0;s<e;s++)l[s]=ee;return t.index++,l}function ja(e,t){return typeof t=="function"?t(e):t}function tu(e){var t=ht();return tf(t,Ze,e)}function tf(e,t,l){var s=e.queue;if(s===null)throw Error(i(311));s.lastRenderedReducer=l;var d=e.baseQueue,f=s.pending;if(f!==null){if(d!==null){var w=d.next;d.next=f.next,f.next=w}t.baseQueue=d=f,s.pending=null}if(f=e.baseState,d===null)e.memoizedState=f;else{t=d.next;var E=w=null,M=null,$=t,Z=!1;do{var I=$.lane&-536870913;if(I!==$.lane?(Le&I)===I:(wa&I)===I){var Q=$.revertLane;if(Q===0)M!==null&&(M=M.next={lane:0,revertLane:0,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),I===Qr&&(Z=!0);else if((wa&Q)===Q){$=$.next,Q===Qr&&(Z=!0);continue}else I={lane:0,revertLane:$.revertLane,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},M===null?(E=M=I,w=f):M=M.next=I,Re.lanes|=Q,ll|=Q;I=$.action,Jl&&l(f,I),f=$.hasEagerState?$.eagerState:l(f,I)}else Q={lane:I,revertLane:$.revertLane,gesture:$.gesture,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},M===null?(E=M=Q,w=f):M=M.next=Q,Re.lanes|=I,ll|=I;$=$.next}while($!==null&&$!==t);if(M===null?w=f:M.next=E,!nn(f,e.memoizedState)&&(yt=!0,Z&&(l=Gr,l!==null)))throw l;e.memoizedState=f,e.baseState=w,e.baseQueue=M,s.lastRenderedState=f}return d===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function nf(e){var t=ht(),l=t.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=e;var s=l.dispatch,d=l.pending,f=t.memoizedState;if(d!==null){l.pending=null;var w=d=d.next;do f=e(f,w.action),w=w.next;while(w!==d);nn(f,t.memoizedState)||(yt=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),l.lastRenderedState=f}return[f,s]}function rg(e,t,l){var s=Re,d=ht(),f=qe;if(f){if(l===void 0)throw Error(i(407));l=l()}else l=t();var w=!nn((Ze||d).memoizedState,l);if(w&&(d.memoizedState=l,yt=!0),d=d.queue,rf(og.bind(null,s,d,e),[e]),d.getSnapshot!==t||w||gt!==null&&gt.memoizedState.tag&1){if(s.flags|=2048,Zr(9,{destroy:void 0},sg.bind(null,s,d,l,t),null),Ie===null)throw Error(i(349));f||(wa&127)!==0||ig(s,t,l)}return l}function ig(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=Re.updateQueue,t===null?(t=Wo(),Re.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function sg(e,t,l,s){t.value=l,t.getSnapshot=s,ug(t)&&cg(e)}function og(e,t,l){return l(function(){ug(t)&&cg(e)})}function ug(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!nn(e,l)}catch{return!0}}function cg(e){var t=Ql(e,2);t!==null&&Zt(t,e,2)}function af(e){var t=Ht();if(typeof e=="function"){var l=e;if(e=l(),Jl){Ya(!0);try{l()}finally{Ya(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ja,lastRenderedState:e},t}function dg(e,t,l,s){return e.baseState=l,tf(e,Ze,typeof s=="function"?s:ja)}function fN(e,t,l,s,d){if(lu(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(w){f.listeners.push(w)}};z.T!==null?l(!0):f.isTransition=!1,s(f),l=t.pending,l===null?(f.next=t.pending=f,fg(t,f)):(f.next=l.next,t.pending=l.next=f)}}function fg(e,t){var l=t.action,s=t.payload,d=e.state;if(t.isTransition){var f=z.T,w={};z.T=w;try{var E=l(d,s),M=z.S;M!==null&&M(w,E),hg(e,t,E)}catch($){lf(e,t,$)}finally{f!==null&&w.types!==null&&(f.types=w.types),z.T=f}}else try{f=l(d,s),hg(e,t,f)}catch($){lf(e,t,$)}}function hg(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(s){mg(e,t,s)},function(s){return lf(e,t,s)}):mg(e,t,l)}function mg(e,t,l){t.status="fulfilled",t.value=l,pg(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,fg(e,l)))}function lf(e,t,l){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=l,pg(t),t=t.next;while(t!==s)}e.action=null}function pg(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function vg(e,t){return t}function gg(e,t){if(qe){var l=Ie.formState;if(l!==null){e:{var s=Re;if(qe){if(We){t:{for(var d=We,f=wn;d.nodeType!==8;){if(!f){d=null;break t}if(d=Sn(d.nextSibling),d===null){d=null;break t}}f=d.data,d=f==="F!"||f==="F"?d:null}if(d){We=Sn(d.nextSibling),s=d.data==="F!";break e}}Za(s)}s=!1}s&&(t=l[0])}}return l=Ht(),l.memoizedState=l.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vg,lastRenderedState:t},l.queue=s,l=Lg.bind(null,Re,s),s.dispatch=l,s=af(!1),f=df.bind(null,Re,!1,s.queue),s=Ht(),d={state:t,dispatch:null,action:e,pending:null},s.queue=d,l=fN.bind(null,Re,d,f,l),d.dispatch=l,s.memoizedState=e,[t,l,!1]}function yg(e){var t=ht();return xg(t,Ze,e)}function xg(e,t,l){if(t=tf(e,t,vg)[0],e=tu(ja)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=xs(t)}catch(w){throw w===Yr?Vo:w}else s=t;t=ht();var d=t.queue,f=d.dispatch;return l!==t.memoizedState&&(Re.flags|=2048,Zr(9,{destroy:void 0},hN.bind(null,d,l),null)),[s,f,e]}function hN(e,t){e.action=t}function bg(e){var t=ht(),l=Ze;if(l!==null)return xg(t,l,e);ht(),t=t.memoizedState,l=ht();var s=l.queue.dispatch;return l.memoizedState=e,[t,s,!1]}function Zr(e,t,l,s){return e={tag:e,create:l,deps:s,inst:t,next:null},t=Re.updateQueue,t===null&&(t=Wo(),Re.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(s=l.next,l.next=e,e.next=s,t.lastEffect=e),e}function wg(){return ht().memoizedState}function nu(e,t,l,s){var d=Ht();Re.flags|=e,d.memoizedState=Zr(1|t,{destroy:void 0},l,s===void 0?null:s)}function au(e,t,l,s){var d=ht();s=s===void 0?null:s;var f=d.memoizedState.inst;Ze!==null&&s!==null&&Zd(s,Ze.memoizedState.deps)?d.memoizedState=Zr(t,f,l,s):(Re.flags|=e,d.memoizedState=Zr(1|t,f,l,s))}function jg(e,t){nu(8390656,8,e,t)}function rf(e,t){au(2048,8,e,t)}function mN(e){Re.flags|=4;var t=Re.updateQueue;if(t===null)t=Wo(),Re.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Sg(e){var t=ht().memoizedState;return mN({ref:t,nextImpl:e}),function(){if((Ye&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Ng(e,t){return au(4,2,e,t)}function Eg(e,t){return au(4,4,e,t)}function Cg(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 _g(e,t,l){l=l!=null?l.concat([e]):null,au(4,4,Cg.bind(null,t,e),l)}function sf(){}function Tg(e,t){var l=ht();t=t===void 0?null:t;var s=l.memoizedState;return t!==null&&Zd(t,s[1])?s[0]:(l.memoizedState=[e,t],e)}function Rg(e,t){var l=ht();t=t===void 0?null:t;var s=l.memoizedState;if(t!==null&&Zd(t,s[1]))return s[0];if(s=e(),Jl){Ya(!0);try{e()}finally{Ya(!1)}}return l.memoizedState=[s,t],s}function of(e,t,l){return l===void 0||(wa&1073741824)!==0&&(Le&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=My(),Re.lanes|=e,ll|=e,l)}function Mg(e,t,l,s){return nn(l,t)?l:Kr.current!==null?(e=of(e,l,s),nn(e,t)||(yt=!0),e):(wa&42)===0||(wa&1073741824)!==0&&(Le&261930)===0?(yt=!0,e.memoizedState=l):(e=My(),Re.lanes|=e,ll|=e,t)}function kg(e,t,l,s,d){var f=J.p;J.p=f!==0&&8>f?f:8;var w=z.T,E={};z.T=E,df(e,!1,t,l);try{var M=d(),$=z.S;if($!==null&&$(E,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var Z=uN(M,s);bs(e,t,Z,un(e))}else bs(e,t,s,un(e))}catch(I){bs(e,t,{then:function(){},status:"rejected",reason:I},un())}finally{J.p=f,w!==null&&E.types!==null&&(w.types=E.types),z.T=w}}function pN(){}function uf(e,t,l,s){if(e.tag!==5)throw Error(i(476));var d=Ag(e).queue;kg(e,d,t,Y,l===null?pN:function(){return Dg(e),l(s)})}function Ag(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:ja,lastRenderedState:Y},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ja,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Dg(e){var t=Ag(e);t.next===null&&(t=e.alternate.memoizedState),bs(e,t.next.queue,{},un())}function cf(){return kt(Us)}function Og(){return ht().memoizedState}function zg(){return ht().memoizedState}function vN(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=un();e=Ia(l);var s=Wa(t,e,l);s!==null&&(Zt(s,t,l),ps(s,t,l)),t={cache:qd()},e.payload=t;return}t=t.return}}function gN(e,t,l){var s=un();l={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},lu(e)?Ug(t,l):(l=_d(e,t,l,s),l!==null&&(Zt(l,e,s),qg(l,t,s)))}function Lg(e,t,l){var s=un();bs(e,t,l,s)}function bs(e,t,l,s){var d={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(lu(e))Ug(t,d);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var w=t.lastRenderedState,E=f(w,l);if(d.hasEagerState=!0,d.eagerState=E,nn(E,w))return qo(e,t,d,0),Ie===null&&Uo(),!1}catch{}finally{}if(l=_d(e,t,d,s),l!==null)return Zt(l,e,s),qg(l,t,s),!0}return!1}function df(e,t,l,s){if(s={lane:2,revertLane:Gf(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},lu(e)){if(t)throw Error(i(479))}else t=_d(e,l,s,2),t!==null&&Zt(t,e,2)}function lu(e){var t=e.alternate;return e===Re||t!==null&&t===Re}function Ug(e,t){Xr=Jo=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function qg(e,t,l){if((l&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,l|=s,t.lanes=l,Gp(e,l)}}var ws={readContext:kt,use:eu,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useLayoutEffect:it,useInsertionEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useSyncExternalStore:it,useId:it,useHostTransitionStatus:it,useFormState:it,useActionState:it,useOptimistic:it,useMemoCache:it,useCacheRefresh:it};ws.useEffectEvent=it;var Hg={readContext:kt,use:eu,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:kt,useEffect:jg,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,nu(4194308,4,Cg.bind(null,t,e),l)},useLayoutEffect:function(e,t){return nu(4194308,4,e,t)},useInsertionEffect:function(e,t){nu(4,2,e,t)},useMemo:function(e,t){var l=Ht();t=t===void 0?null:t;var s=e();if(Jl){Ya(!0);try{e()}finally{Ya(!1)}}return l.memoizedState=[s,t],s},useReducer:function(e,t,l){var s=Ht();if(l!==void 0){var d=l(t);if(Jl){Ya(!0);try{l(t)}finally{Ya(!1)}}}else d=t;return s.memoizedState=s.baseState=d,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:d},s.queue=e,e=e.dispatch=gN.bind(null,Re,e),[s.memoizedState,e]},useRef:function(e){var t=Ht();return e={current:e},t.memoizedState=e},useState:function(e){e=af(e);var t=e.queue,l=Lg.bind(null,Re,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:sf,useDeferredValue:function(e,t){var l=Ht();return of(l,e,t)},useTransition:function(){var e=af(!1);return e=kg.bind(null,Re,e.queue,!0,!1),Ht().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var s=Re,d=Ht();if(qe){if(l===void 0)throw Error(i(407));l=l()}else{if(l=t(),Ie===null)throw Error(i(349));(Le&127)!==0||ig(s,t,l)}d.memoizedState=l;var f={value:l,getSnapshot:t};return d.queue=f,jg(og.bind(null,s,f,e),[e]),s.flags|=2048,Zr(9,{destroy:void 0},sg.bind(null,s,f,l,t),null),l},useId:function(){var e=Ht(),t=Ie.identifierPrefix;if(qe){var l=Pn,s=Zn;l=(s&~(1<<32-tn(s)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Io++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=cN++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:cf,useFormState:gg,useActionState:gg,useOptimistic:function(e){var t=Ht();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=df.bind(null,Re,!0,l),l.dispatch=t,[e,t]},useMemoCache:ef,useCacheRefresh:function(){return Ht().memoizedState=vN.bind(null,Re)},useEffectEvent:function(e){var t=Ht(),l={impl:e};return t.memoizedState=l,function(){if((Ye&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}},ff={readContext:kt,use:eu,useCallback:Tg,useContext:kt,useEffect:rf,useImperativeHandle:_g,useInsertionEffect:Ng,useLayoutEffect:Eg,useMemo:Rg,useReducer:tu,useRef:wg,useState:function(){return tu(ja)},useDebugValue:sf,useDeferredValue:function(e,t){var l=ht();return Mg(l,Ze.memoizedState,e,t)},useTransition:function(){var e=tu(ja)[0],t=ht().memoizedState;return[typeof e=="boolean"?e:xs(e),t]},useSyncExternalStore:rg,useId:Og,useHostTransitionStatus:cf,useFormState:yg,useActionState:yg,useOptimistic:function(e,t){var l=ht();return dg(l,Ze,e,t)},useMemoCache:ef,useCacheRefresh:zg};ff.useEffectEvent=Sg;var Bg={readContext:kt,use:eu,useCallback:Tg,useContext:kt,useEffect:rf,useImperativeHandle:_g,useInsertionEffect:Ng,useLayoutEffect:Eg,useMemo:Rg,useReducer:nf,useRef:wg,useState:function(){return nf(ja)},useDebugValue:sf,useDeferredValue:function(e,t){var l=ht();return Ze===null?of(l,e,t):Mg(l,Ze.memoizedState,e,t)},useTransition:function(){var e=nf(ja)[0],t=ht().memoizedState;return[typeof e=="boolean"?e:xs(e),t]},useSyncExternalStore:rg,useId:Og,useHostTransitionStatus:cf,useFormState:bg,useActionState:bg,useOptimistic:function(e,t){var l=ht();return Ze!==null?dg(l,Ze,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:ef,useCacheRefresh:zg};Bg.useEffectEvent=Sg;function hf(e,t,l,s){t=e.memoizedState,l=l(s,t),l=l==null?t:x({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var mf={enqueueSetState:function(e,t,l){e=e._reactInternals;var s=un(),d=Ia(s);d.payload=t,l!=null&&(d.callback=l),t=Wa(e,d,s),t!==null&&(Zt(t,e,s),ps(t,e,s))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var s=un(),d=Ia(s);d.tag=1,d.payload=t,l!=null&&(d.callback=l),t=Wa(e,d,s),t!==null&&(Zt(t,e,s),ps(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=un(),s=Ia(l);s.tag=2,t!=null&&(s.callback=t),t=Wa(e,s,l),t!==null&&(Zt(t,e,l),ps(t,e,l))}};function $g(e,t,l,s,d,f,w){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,f,w):t.prototype&&t.prototype.isPureReactComponent?!ss(l,s)||!ss(d,f):!0}function Qg(e,t,l,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,s),t.state!==e&&mf.enqueueReplaceState(t,t.state,null)}function Il(e,t){var l=t;if("ref"in t){l={};for(var s in t)s!=="ref"&&(l[s]=t[s])}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 Gg(e){Lo(e)}function Yg(e){console.error(e)}function Vg(e){Lo(e)}function ru(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function Kg(e,t,l){try{var s=e.onCaughtError;s(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function pf(e,t,l){return l=Ia(l),l.tag=3,l.payload={element:null},l.callback=function(){ru(e,t)},l}function Xg(e){return e=Ia(e),e.tag=3,e}function Fg(e,t,l,s){var d=l.type.getDerivedStateFromError;if(typeof d=="function"){var f=s.value;e.payload=function(){return d(f)},e.callback=function(){Kg(t,l,s)}}var w=l.stateNode;w!==null&&typeof w.componentDidCatch=="function"&&(e.callback=function(){Kg(t,l,s),typeof d!="function"&&(rl===null?rl=new Set([this]):rl.add(this));var E=s.stack;this.componentDidCatch(s.value,{componentStack:E!==null?E:""})})}function yN(e,t,l,s,d){if(l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=l.alternate,t!==null&&$r(t,l,d,!0),l=ln.current,l!==null){switch(l.tag){case 31:case 13:return jn===null?gu():l.alternate===null&&st===0&&(st=3),l.flags&=-257,l.flags|=65536,l.lanes=d,s===Ko?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([s]):t.add(s),Bf(e,s,d)),!1;case 22:return l.flags|=65536,s===Ko?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([s]):l.add(s)),Bf(e,s,d)),!1}throw Error(i(435,l.tag))}return Bf(e,s,d),gu(),!1}if(qe)return t=ln.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=d,s!==Dd&&(e=Error(i(422),{cause:s}),cs(yn(e,l)))):(s!==Dd&&(t=Error(i(423),{cause:s}),cs(yn(t,l))),e=e.current.alternate,e.flags|=65536,d&=-d,e.lanes|=d,s=yn(s,l),d=pf(e.stateNode,s,d),Yd(e,d),st!==4&&(st=2)),!1;var f=Error(i(520),{cause:s});if(f=yn(f,l),Rs===null?Rs=[f]:Rs.push(f),st!==4&&(st=2),t===null)return!0;s=yn(s,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=d&-d,l.lanes|=e,e=pf(l.stateNode,s,e),Yd(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"&&(rl===null||!rl.has(f))))return l.flags|=65536,d&=-d,l.lanes|=d,d=Xg(d),Fg(d,e,l,s),Yd(l,d),!1}l=l.return}while(l!==null);return!1}var vf=Error(i(461)),yt=!1;function At(e,t,l,s){t.child=e===null?Iv(t,null,l,s):Pl(t,e.child,l,s)}function Zg(e,t,l,s,d){l=l.render;var f=t.ref;if("ref"in s){var w={};for(var E in s)E!=="ref"&&(w[E]=s[E])}else w=s;return Kl(t),s=Pd(e,t,l,w,f,d),E=Jd(),e!==null&&!yt?(Id(e,t,d),Sa(e,t,d)):(qe&&E&&kd(t),t.flags|=1,At(e,t,s,d),t.child)}function Pg(e,t,l,s,d){if(e===null){var f=l.type;return typeof f=="function"&&!Td(f)&&f.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=f,Jg(e,t,f,s,d)):(e=Bo(l.type,null,s,t,t.mode,d),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!Nf(e,d)){var w=f.memoizedProps;if(l=l.compare,l=l!==null?l:ss,l(w,s)&&e.ref===t.ref)return Sa(e,t,d)}return t.flags|=1,e=ga(f,s),e.ref=t.ref,e.return=t,t.child=e}function Jg(e,t,l,s,d){if(e!==null){var f=e.memoizedProps;if(ss(f,s)&&e.ref===t.ref)if(yt=!1,t.pendingProps=s=f,Nf(e,d))(e.flags&131072)!==0&&(yt=!0);else return t.lanes=e.lanes,Sa(e,t,d)}return gf(e,t,l,s,d)}function Ig(e,t,l,s){var d=s.children,f=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((t.flags&128)!==0){if(f=f!==null?f.baseLanes|l:l,e!==null){for(s=t.child=e.child,d=0;s!==null;)d=d|s.lanes|s.childLanes,s=s.sibling;s=d&~f}else s=0,t.child=null;return Wg(e,t,f,l,s)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Yo(t,f!==null?f.cachePool:null),f!==null?tg(t,f):Kd(),ng(t);else return s=t.lanes=536870912,Wg(e,t,f!==null?f.baseLanes|l:l,l,s)}else f!==null?(Yo(t,f.cachePool),tg(t,f),tl(),t.memoizedState=null):(e!==null&&Yo(t,null),Kd(),tl());return At(e,t,d,l),t.child}function js(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Wg(e,t,l,s,d){var f=Bd();return f=f===null?null:{parent:vt._currentValue,pool:f},t.memoizedState={baseLanes:l,cachePool:f},e!==null&&Yo(t,null),Kd(),ng(t),e!==null&&$r(e,t,s,!0),t.childLanes=d,null}function iu(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 ey(e,t,l){return Pl(t,e.child,null,l),e=iu(t,t.pendingProps),e.flags|=2,rn(t),t.memoizedState=null,e}function xN(e,t,l){var s=t.pendingProps,d=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(qe){if(s.mode==="hidden")return e=iu(t,s),t.lanes=536870912,js(null,e);if(Fd(t),(e=We)?(e=f0(e,wn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Xa!==null?{id:Zn,overflow:Pn}:null,retryLane:536870912,hydrationErrors:null},l=Uv(e),l.return=t,t.child=l,Mt=t,We=null)):e=null,e===null)throw Za(t);return t.lanes=536870912,null}return iu(t,s)}var f=e.memoizedState;if(f!==null){var w=f.dehydrated;if(Fd(t),d)if(t.flags&256)t.flags&=-257,t=ey(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(yt||$r(e,t,l,!1),d=(l&e.childLanes)!==0,yt||d){if(s=Ie,s!==null&&(w=Yp(s,l),w!==0&&w!==f.retryLane))throw f.retryLane=w,Ql(e,w),Zt(s,e,w),vf;gu(),t=ey(e,t,l)}else e=f.treeContext,We=Sn(w.nextSibling),Mt=t,qe=!0,Fa=null,wn=!1,e!==null&&Bv(t,e),t=iu(t,s),t.flags|=4096;return t}return e=ga(e.child,{mode:s.mode,children:s.children}),e.ref=t.ref,t.child=e,e.return=t,e}function su(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 gf(e,t,l,s,d){return Kl(t),l=Pd(e,t,l,s,void 0,d),s=Jd(),e!==null&&!yt?(Id(e,t,d),Sa(e,t,d)):(qe&&s&&kd(t),t.flags|=1,At(e,t,l,d),t.child)}function ty(e,t,l,s,d,f){return Kl(t),t.updateQueue=null,l=lg(t,s,l,d),ag(e),s=Jd(),e!==null&&!yt?(Id(e,t,f),Sa(e,t,f)):(qe&&s&&kd(t),t.flags|=1,At(e,t,l,f),t.child)}function ny(e,t,l,s,d){if(Kl(t),t.stateNode===null){var f=Ur,w=l.contextType;typeof w=="object"&&w!==null&&(f=kt(w)),f=new l(s,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=mf,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=s,f.state=t.memoizedState,f.refs={},Qd(t),w=l.contextType,f.context=typeof w=="object"&&w!==null?kt(w):Ur,f.state=t.memoizedState,w=l.getDerivedStateFromProps,typeof w=="function"&&(hf(t,l,w,s),f.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(w=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),w!==f.state&&mf.enqueueReplaceState(f,f.state,null),gs(t,s,f,d),vs(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(e===null){f=t.stateNode;var E=t.memoizedProps,M=Il(l,E);f.props=M;var $=f.context,Z=l.contextType;w=Ur,typeof Z=="object"&&Z!==null&&(w=kt(Z));var I=l.getDerivedStateFromProps;Z=typeof I=="function"||typeof f.getSnapshotBeforeUpdate=="function",E=t.pendingProps!==E,Z||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(E||$!==w)&&Qg(t,f,s,w),Ja=!1;var Q=t.memoizedState;f.state=Q,gs(t,s,f,d),vs(),$=t.memoizedState,E||Q!==$||Ja?(typeof I=="function"&&(hf(t,l,I,s),$=t.memoizedState),(M=Ja||$g(t,l,M,s,Q,$,w))?(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=s,t.memoizedState=$),f.props=s,f.state=$,f.context=w,s=M):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{f=t.stateNode,Gd(e,t),w=t.memoizedProps,Z=Il(l,w),f.props=Z,I=t.pendingProps,Q=f.context,$=l.contextType,M=Ur,typeof $=="object"&&$!==null&&(M=kt($)),E=l.getDerivedStateFromProps,($=typeof E=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(w!==I||Q!==M)&&Qg(t,f,s,M),Ja=!1,Q=t.memoizedState,f.state=Q,gs(t,s,f,d),vs();var V=t.memoizedState;w!==I||Q!==V||Ja||e!==null&&e.dependencies!==null&&Qo(e.dependencies)?(typeof E=="function"&&(hf(t,l,E,s),V=t.memoizedState),(Z=Ja||$g(t,l,Z,s,Q,V,M)||e!==null&&e.dependencies!==null&&Qo(e.dependencies))?($||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(s,V,M),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(s,V,M)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||w===e.memoizedProps&&Q===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&Q===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=V),f.props=s,f.state=V,f.context=M,s=Z):(typeof f.componentDidUpdate!="function"||w===e.memoizedProps&&Q===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&Q===e.memoizedState||(t.flags|=1024),s=!1)}return f=s,su(e,t),s=(t.flags&128)!==0,f||s?(f=t.stateNode,l=s&&typeof l.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&s?(t.child=Pl(t,e.child,null,d),t.child=Pl(t,null,l,d)):At(e,t,l,d),t.memoizedState=f.state,e=t.child):e=Sa(e,t,d),e}function ay(e,t,l,s){return Yl(),t.flags|=256,At(e,t,l,s),t.child}var yf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xf(e){return{baseLanes:e,cachePool:Kv()}}function bf(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=on),e}function ly(e,t,l){var s=t.pendingProps,d=!1,f=(t.flags&128)!==0,w;if((w=f)||(w=e!==null&&e.memoizedState===null?!1:(ft.current&2)!==0),w&&(d=!0,t.flags&=-129),w=(t.flags&32)!==0,t.flags&=-33,e===null){if(qe){if(d?el(t):tl(),(e=We)?(e=f0(e,wn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Xa!==null?{id:Zn,overflow:Pn}:null,retryLane:536870912,hydrationErrors:null},l=Uv(e),l.return=t,t.child=l,Mt=t,We=null)):e=null,e===null)throw Za(t);return nh(e)?t.lanes=32:t.lanes=536870912,null}var E=s.children;return s=s.fallback,d?(tl(),d=t.mode,E=ou({mode:"hidden",children:E},d),s=Gl(s,d,l,null),E.return=t,s.return=t,E.sibling=s,t.child=E,s=t.child,s.memoizedState=xf(l),s.childLanes=bf(e,w,l),t.memoizedState=yf,js(null,s)):(el(t),wf(t,E))}var M=e.memoizedState;if(M!==null&&(E=M.dehydrated,E!==null)){if(f)t.flags&256?(el(t),t.flags&=-257,t=jf(e,t,l)):t.memoizedState!==null?(tl(),t.child=e.child,t.flags|=128,t=null):(tl(),E=s.fallback,d=t.mode,s=ou({mode:"visible",children:s.children},d),E=Gl(E,d,l,null),E.flags|=2,s.return=t,E.return=t,s.sibling=E,t.child=s,Pl(t,e.child,null,l),s=t.child,s.memoizedState=xf(l),s.childLanes=bf(e,w,l),t.memoizedState=yf,t=js(null,s));else if(el(t),nh(E)){if(w=E.nextSibling&&E.nextSibling.dataset,w)var $=w.dgst;w=$,s=Error(i(419)),s.stack="",s.digest=w,cs({value:s,source:null,stack:null}),t=jf(e,t,l)}else if(yt||$r(e,t,l,!1),w=(l&e.childLanes)!==0,yt||w){if(w=Ie,w!==null&&(s=Yp(w,l),s!==0&&s!==M.retryLane))throw M.retryLane=s,Ql(e,s),Zt(w,e,s),vf;th(E)||gu(),t=jf(e,t,l)}else th(E)?(t.flags|=192,t.child=e.child,t=null):(e=M.treeContext,We=Sn(E.nextSibling),Mt=t,qe=!0,Fa=null,wn=!1,e!==null&&Bv(t,e),t=wf(t,s.children),t.flags|=4096);return t}return d?(tl(),E=s.fallback,d=t.mode,M=e.child,$=M.sibling,s=ga(M,{mode:"hidden",children:s.children}),s.subtreeFlags=M.subtreeFlags&65011712,$!==null?E=ga($,E):(E=Gl(E,d,l,null),E.flags|=2),E.return=t,s.return=t,s.sibling=E,t.child=s,js(null,s),s=t.child,E=e.child.memoizedState,E===null?E=xf(l):(d=E.cachePool,d!==null?(M=vt._currentValue,d=d.parent!==M?{parent:M,pool:M}:d):d=Kv(),E={baseLanes:E.baseLanes|l,cachePool:d}),s.memoizedState=E,s.childLanes=bf(e,w,l),t.memoizedState=yf,js(e.child,s)):(el(t),l=e.child,e=l.sibling,l=ga(l,{mode:"visible",children:s.children}),l.return=t,l.sibling=null,e!==null&&(w=t.deletions,w===null?(t.deletions=[e],t.flags|=16):w.push(e)),t.child=l,t.memoizedState=null,l)}function wf(e,t){return t=ou({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ou(e,t){return e=an(22,e,null,t),e.lanes=0,e}function jf(e,t,l){return Pl(t,e.child,null,l),e=wf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ry(e,t,l){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),Ld(e.return,t,l)}function Sf(e,t,l,s,d,f){var w=e.memoizedState;w===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:l,tailMode:d,treeForkCount:f}:(w.isBackwards=t,w.rendering=null,w.renderingStartTime=0,w.last=s,w.tail=l,w.tailMode=d,w.treeForkCount=f)}function iy(e,t,l){var s=t.pendingProps,d=s.revealOrder,f=s.tail;s=s.children;var w=ft.current,E=(w&2)!==0;if(E?(w=w&1|2,t.flags|=128):w&=1,W(ft,w),At(e,t,s,l),s=qe?us:0,!E&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ry(e,l,t);else if(e.tag===19)ry(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&&Po(e)===null&&(d=l),l=l.sibling;l=d,l===null?(d=t.child,t.child=null):(d=l.sibling,l.sibling=null),Sf(t,!1,d,l,f,s);break;case"backwards":case"unstable_legacy-backwards":for(l=null,d=t.child,t.child=null;d!==null;){if(e=d.alternate,e!==null&&Po(e)===null){t.child=d;break}e=d.sibling,d.sibling=l,l=d,d=e}Sf(t,!0,l,null,f,s);break;case"together":Sf(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function Sa(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),ll|=t.lanes,(l&t.childLanes)===0)if(e!==null){if($r(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=ga(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=ga(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Nf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Qo(e)))}function bN(e,t,l){switch(t.tag){case 3:Ne(t,t.stateNode.containerInfo),Pa(t,vt,e.memoizedState.cache),Yl();break;case 27:case 5:Ee(t);break;case 4:Ne(t,t.stateNode.containerInfo);break;case 10:Pa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Fd(t),null;break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(el(t),t.flags|=128,null):(l&t.child.childLanes)!==0?ly(e,t,l):(el(t),e=Sa(e,t,l),e!==null?e.sibling:null);el(t);break;case 19:var d=(e.flags&128)!==0;if(s=(l&t.childLanes)!==0,s||($r(e,t,l,!1),s=(l&t.childLanes)!==0),d){if(s)return iy(e,t,l);t.flags|=128}if(d=t.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),W(ft,ft.current),s)break;return null;case 22:return t.lanes=0,Ig(e,t,l,t.pendingProps);case 24:Pa(t,vt,e.memoizedState.cache)}return Sa(e,t,l)}function sy(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)yt=!0;else{if(!Nf(e,l)&&(t.flags&128)===0)return yt=!1,bN(e,t,l);yt=(e.flags&131072)!==0}else yt=!1,qe&&(t.flags&1048576)!==0&&Hv(t,us,t.index);switch(t.lanes=0,t.tag){case 16:e:{var s=t.pendingProps;if(e=Fl(t.elementType),t.type=e,typeof e=="function")Td(e)?(s=Il(e,s),t.tag=1,t=ny(null,t,e,s,l)):(t.tag=0,t=gf(null,t,e,s,l));else{if(e!=null){var d=e.$$typeof;if(d===D){t.tag=11,t=Zg(null,t,e,s,l);break e}else if(d===H){t.tag=14,t=Pg(null,t,e,s,l);break e}}throw t=ae(e)||e,Error(i(306,t,""))}}return t;case 0:return gf(e,t,t.type,t.pendingProps,l);case 1:return s=t.type,d=Il(s,t.pendingProps),ny(e,t,s,d,l);case 3:e:{if(Ne(t,t.stateNode.containerInfo),e===null)throw Error(i(387));s=t.pendingProps;var f=t.memoizedState;d=f.element,Gd(e,t),gs(t,s,null,l);var w=t.memoizedState;if(s=w.cache,Pa(t,vt,s),s!==f.cache&&Ud(t,[vt],l,!0),vs(),s=w.element,f.isDehydrated)if(f={element:s,isDehydrated:!1,cache:w.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=ay(e,t,s,l);break e}else if(s!==d){d=yn(Error(i(424)),t),cs(d),t=ay(e,t,s,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=Sn(e.firstChild),Mt=t,qe=!0,Fa=null,wn=!0,l=Iv(t,null,s,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Yl(),s===d){t=Sa(e,t,l);break e}At(e,t,s,l)}t=t.child}return t;case 26:return su(e,t),e===null?(l=y0(t.type,null,t.pendingProps,null))?t.memoizedState=l:qe||(l=t.type,e=t.pendingProps,s=Nu(Se.current).createElement(l),s[Rt]=t,s[Gt]=e,Dt(s,l,e),_t(s),t.stateNode=s):t.memoizedState=y0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ee(t),e===null&&qe&&(s=t.stateNode=p0(t.type,t.pendingProps,Se.current),Mt=t,wn=!0,d=We,ul(t.type)?(ah=d,We=Sn(s.firstChild)):We=d),At(e,t,t.pendingProps.children,l),su(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&qe&&((d=s=We)&&(s=PN(s,t.type,t.pendingProps,wn),s!==null?(t.stateNode=s,Mt=t,We=Sn(s.firstChild),wn=!1,d=!0):d=!1),d||Za(t)),Ee(t),d=t.type,f=t.pendingProps,w=e!==null?e.memoizedProps:null,s=f.children,If(d,f)?s=null:w!==null&&If(d,w)&&(t.flags|=32),t.memoizedState!==null&&(d=Pd(e,t,dN,null,null,l),Us._currentValue=d),su(e,t),At(e,t,s,l),t.child;case 6:return e===null&&qe&&((e=l=We)&&(l=JN(l,t.pendingProps,wn),l!==null?(t.stateNode=l,Mt=t,We=null,e=!0):e=!1),e||Za(t)),null;case 13:return ly(e,t,l);case 4:return Ne(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Pl(t,null,s,l):At(e,t,s,l),t.child;case 11:return Zg(e,t,t.type,t.pendingProps,l);case 7:return At(e,t,t.pendingProps,l),t.child;case 8:return At(e,t,t.pendingProps.children,l),t.child;case 12:return At(e,t,t.pendingProps.children,l),t.child;case 10:return s=t.pendingProps,Pa(t,t.type,s.value),At(e,t,s.children,l),t.child;case 9:return d=t.type._context,s=t.pendingProps.children,Kl(t),d=kt(d),s=s(d),t.flags|=1,At(e,t,s,l),t.child;case 14:return Pg(e,t,t.type,t.pendingProps,l);case 15:return Jg(e,t,t.type,t.pendingProps,l);case 19:return iy(e,t,l);case 31:return xN(e,t,l);case 22:return Ig(e,t,l,t.pendingProps);case 24:return Kl(t),s=kt(vt),e===null?(d=Bd(),d===null&&(d=Ie,f=qd(),d.pooledCache=f,f.refCount++,f!==null&&(d.pooledCacheLanes|=l),d=f),t.memoizedState={parent:s,cache:d},Qd(t),Pa(t,vt,d)):((e.lanes&l)!==0&&(Gd(e,t),gs(t,null,null,l),vs()),d=e.memoizedState,f=t.memoizedState,d.parent!==s?(d={parent:s,cache:s},t.memoizedState=d,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=d),Pa(t,vt,s)):(s=f.cache,Pa(t,vt,s),s!==d.cache&&Ud(t,[vt],l,!0))),At(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Na(e){e.flags|=4}function Ef(e,t,l,s,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(Oy())e.flags|=8192;else throw Zl=Ko,$d}else e.flags&=-16777217}function oy(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!S0(t))if(Oy())e.flags|=8192;else throw Zl=Ko,$d}function uu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?$p():536870912,e.lanes|=t,Wr|=t)}function Ss(e,t){if(!qe)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 s=null;l!==null;)l.alternate!==null&&(s=l),l=l.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function et(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,s=0;if(t)for(var d=e.child;d!==null;)l|=d.lanes|d.childLanes,s|=d.subtreeFlags&65011712,s|=d.flags&65011712,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)l|=d.lanes|d.childLanes,s|=d.subtreeFlags,s|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=s,e.childLanes=l,t}function wN(e,t,l){var s=t.pendingProps;switch(Ad(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,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),ba(vt),ye(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Br(t)?Na(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Od())),et(t),null;case 26:var d=t.type,f=t.memoizedState;return e===null?(Na(t),f!==null?(et(t),oy(t,f)):(et(t),Ef(t,d,null,s,l))):f?f!==e.memoizedState?(Na(t),et(t),oy(t,f)):(et(t),t.flags&=-16777217):(e=e.memoizedProps,e!==s&&Na(t),et(t),Ef(t,d,e,s,l)),null;case 27:if($e(t),l=Se.current,d=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Na(t);else{if(!s){if(t.stateNode===null)throw Error(i(166));return et(t),null}e=le.current,Br(t)?$v(t):(e=p0(d,s,l),t.stateNode=e,Na(t))}return et(t),null;case 5:if($e(t),d=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Na(t);else{if(!s){if(t.stateNode===null)throw Error(i(166));return et(t),null}if(f=le.current,Br(t))$v(t);else{var w=Nu(Se.current);switch(f){case 1:f=w.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:f=w.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":f=w.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":f=w.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":f=w.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof s.is=="string"?w.createElement("select",{is:s.is}):w.createElement("select"),s.multiple?f.multiple=!0:s.size&&(f.size=s.size);break;default:f=typeof s.is=="string"?w.createElement(d,{is:s.is}):w.createElement(d)}}f[Rt]=t,f[Gt]=s;e:for(w=t.child;w!==null;){if(w.tag===5||w.tag===6)f.appendChild(w.stateNode);else if(w.tag!==4&&w.tag!==27&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===t)break e;for(;w.sibling===null;){if(w.return===null||w.return===t)break e;w=w.return}w.sibling.return=w.return,w=w.sibling}t.stateNode=f;e:switch(Dt(f,d,s),d){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Na(t)}}return et(t),Ef(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&Na(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(i(166));if(e=Se.current,Br(t)){if(e=t.stateNode,l=t.memoizedProps,s=null,d=Mt,d!==null)switch(d.tag){case 27:case 5:s=d.memoizedProps}e[Rt]=t,e=!!(e.nodeValue===l||s!==null&&s.suppressHydrationWarning===!0||l0(e.nodeValue,l)),e||Za(t,!0)}else e=Nu(e).createTextNode(s),e[Rt]=t,t.stateNode=e}return et(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(s=Br(t),l!==null){if(e===null){if(!s)throw Error(i(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[Rt]=t}else Yl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),e=!1}else l=Od(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(rn(t),t):(rn(t),null);if((t.flags&128)!==0)throw Error(i(558))}return et(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(d=Br(t),s!==null&&s.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[Rt]=t}else Yl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),d=!1}else d=Od(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=d),d=!0;if(!d)return t.flags&256?(rn(t),t):(rn(t),null)}return rn(t),(t.flags&128)!==0?(t.lanes=l,t):(l=s!==null,e=e!==null&&e.memoizedState!==null,l&&(s=t.child,d=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(d=s.alternate.memoizedState.cachePool.pool),f=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(f=s.memoizedState.cachePool.pool),f!==d&&(s.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),uu(t,t.updateQueue),et(t),null);case 4:return ye(),e===null&&Xf(t.stateNode.containerInfo),et(t),null;case 10:return ba(t.type),et(t),null;case 19:if(F(ft),s=t.memoizedState,s===null)return et(t),null;if(d=(t.flags&128)!==0,f=s.rendering,f===null)if(d)Ss(s,!1);else{if(st!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=Po(e),f!==null){for(t.flags|=128,Ss(s,!1),e=f.updateQueue,t.updateQueue=e,uu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Lv(l,e),l=l.sibling;return W(ft,ft.current&1|2),qe&&ya(t,s.treeForkCount),t.child}e=e.sibling}s.tail!==null&&Wt()>mu&&(t.flags|=128,d=!0,Ss(s,!1),t.lanes=4194304)}else{if(!d)if(e=Po(f),e!==null){if(t.flags|=128,d=!0,e=e.updateQueue,t.updateQueue=e,uu(t,e),Ss(s,!0),s.tail===null&&s.tailMode==="hidden"&&!f.alternate&&!qe)return et(t),null}else 2*Wt()-s.renderingStartTime>mu&&l!==536870912&&(t.flags|=128,d=!0,Ss(s,!1),t.lanes=4194304);s.isBackwards?(f.sibling=t.child,t.child=f):(e=s.last,e!==null?e.sibling=f:t.child=f,s.last=f)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=Wt(),e.sibling=null,l=ft.current,W(ft,d?l&1|2:l&1),qe&&ya(t,s.treeForkCount),e):(et(t),null);case 22:case 23:return rn(t),Xd(),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(l&536870912)!==0&&(t.flags&128)===0&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),l=t.updateQueue,l!==null&&uu(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==l&&(t.flags|=2048),e!==null&&F(Xl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ba(vt),et(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function jN(e,t){switch(Ad(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ba(vt),ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return $e(t),null;case 31:if(t.memoizedState!==null){if(rn(t),t.alternate===null)throw Error(i(340));Yl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(rn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Yl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return F(ft),null;case 4:return ye(),null;case 10:return ba(t.type),null;case 22:case 23:return rn(t),Xd(),e!==null&&F(Xl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ba(vt),null;case 25:return null;default:return null}}function uy(e,t){switch(Ad(t),t.tag){case 3:ba(vt),ye();break;case 26:case 27:case 5:$e(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&rn(t);break;case 13:rn(t);break;case 19:F(ft);break;case 10:ba(t.type);break;case 22:case 23:rn(t),Xd(),e!==null&&F(Xl);break;case 24:ba(vt)}}function Ns(e,t){try{var l=t.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var d=s.next;l=d;do{if((l.tag&e)===e){s=void 0;var f=l.create,w=l.inst;s=f(),w.destroy=s}l=l.next}while(l!==d)}}catch(E){Fe(t,t.return,E)}}function nl(e,t,l){try{var s=t.updateQueue,d=s!==null?s.lastEffect:null;if(d!==null){var f=d.next;s=f;do{if((s.tag&e)===e){var w=s.inst,E=w.destroy;if(E!==void 0){w.destroy=void 0,d=t;var M=l,$=E;try{$()}catch(Z){Fe(d,M,Z)}}}s=s.next}while(s!==f)}}catch(Z){Fe(t,t.return,Z)}}function cy(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{eg(t,l)}catch(s){Fe(e,e.return,s)}}}function dy(e,t,l){l.props=Il(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(s){Fe(e,t,s)}}function Es(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof l=="function"?e.refCleanup=l(s):l.current=s}}catch(d){Fe(e,t,d)}}function Jn(e,t){var l=e.ref,s=e.refCleanup;if(l!==null)if(typeof s=="function")try{s()}catch(d){Fe(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){Fe(e,t,d)}else l.current=null}function fy(e){var t=e.type,l=e.memoizedProps,s=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&s.focus();break e;case"img":l.src?s.src=l.src:l.srcSet&&(s.srcset=l.srcSet)}}catch(d){Fe(e,e.return,d)}}function Cf(e,t,l){try{var s=e.stateNode;YN(s,e.type,l,t),s[Gt]=t}catch(d){Fe(e,e.return,d)}}function hy(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ul(e.type)||e.tag===4}function _f(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hy(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&&ul(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 Tf(e,t,l){var s=e.tag;if(s===5||s===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=pa));else if(s!==4&&(s===27&&ul(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Tf(e,t,l),e=e.sibling;e!==null;)Tf(e,t,l),e=e.sibling}function cu(e,t,l){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(s!==4&&(s===27&&ul(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(cu(e,t,l),e=e.sibling;e!==null;)cu(e,t,l),e=e.sibling}function my(e){var t=e.stateNode,l=e.memoizedProps;try{for(var s=e.type,d=t.attributes;d.length;)t.removeAttributeNode(d[0]);Dt(t,s,l),t[Rt]=e,t[Gt]=l}catch(f){Fe(e,e.return,f)}}var Ea=!1,xt=!1,Rf=!1,py=typeof WeakSet=="function"?WeakSet:Set,Tt=null;function SN(e,t){if(e=e.containerInfo,Pf=ku,e=_v(e),wd(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var s=l.getSelection&&l.getSelection();if(s&&s.rangeCount!==0){l=s.anchorNode;var d=s.anchorOffset,f=s.focusNode;s=s.focusOffset;try{l.nodeType,f.nodeType}catch{l=null;break e}var w=0,E=-1,M=-1,$=0,Z=0,I=e,Q=null;t:for(;;){for(var V;I!==l||d!==0&&I.nodeType!==3||(E=w+d),I!==f||s!==0&&I.nodeType!==3||(M=w+s),I.nodeType===3&&(w+=I.nodeValue.length),(V=I.firstChild)!==null;)Q=I,I=V;for(;;){if(I===e)break t;if(Q===l&&++$===d&&(E=w),Q===f&&++Z===s&&(M=w),(V=I.nextSibling)!==null)break;I=Q,Q=I.parentNode}I=V}l=E===-1||M===-1?null:{start:E,end:M}}else l=null}l=l||{start:0,end:0}}else l=null;for(Jf={focusedElem:e,selectionRange:l},ku=!1,Tt=t;Tt!==null;)if(t=Tt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Tt=e;else for(;Tt!==null;){switch(t=Tt,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,s=l.stateNode;try{var fe=Il(l.type,d);e=s.getSnapshotBeforeUpdate(fe,f),s.__reactInternalSnapshotBeforeUpdate=e}catch(je){Fe(l,l.return,je)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)eh(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":eh(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,Tt=e;break}Tt=t.return}}function vy(e,t,l){var s=l.flags;switch(l.tag){case 0:case 11:case 15:_a(e,l),s&4&&Ns(5,l);break;case 1:if(_a(e,l),s&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(w){Fe(l,l.return,w)}else{var d=Il(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(d,t,e.__reactInternalSnapshotBeforeUpdate)}catch(w){Fe(l,l.return,w)}}s&64&&cy(l),s&512&&Es(l,l.return);break;case 3:if(_a(e,l),s&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{eg(e,t)}catch(w){Fe(l,l.return,w)}}break;case 27:t===null&&s&4&&my(l);case 26:case 5:_a(e,l),t===null&&s&4&&fy(l),s&512&&Es(l,l.return);break;case 12:_a(e,l);break;case 31:_a(e,l),s&4&&xy(e,l);break;case 13:_a(e,l),s&4&&by(e,l),s&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=AN.bind(null,l),IN(e,l))));break;case 22:if(s=l.memoizedState!==null||Ea,!s){t=t!==null&&t.memoizedState!==null||xt,d=Ea;var f=xt;Ea=s,(xt=t)&&!f?Ta(e,l,(l.subtreeFlags&8772)!==0):_a(e,l),Ea=d,xt=f}break;case 30:break;default:_a(e,l)}}function gy(e){var t=e.alternate;t!==null&&(e.alternate=null,gy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ld(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,Vt=!1;function Ca(e,t,l){for(l=l.child;l!==null;)yy(e,t,l),l=l.sibling}function yy(e,t,l){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount(Zi,l)}catch{}switch(l.tag){case 26:xt||Jn(l,t),Ca(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:xt||Jn(l,t);var s=tt,d=Vt;ul(l.type)&&(tt=l.stateNode,Vt=!1),Ca(e,t,l),Os(l.stateNode),tt=s,Vt=d;break;case 5:xt||Jn(l,t);case 6:if(s=tt,d=Vt,tt=null,Ca(e,t,l),tt=s,Vt=d,tt!==null)if(Vt)try{(tt.nodeType===9?tt.body:tt.nodeName==="HTML"?tt.ownerDocument.body:tt).removeChild(l.stateNode)}catch(f){Fe(l,t,f)}else try{tt.removeChild(l.stateNode)}catch(f){Fe(l,t,f)}break;case 18:tt!==null&&(Vt?(e=tt,c0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),si(e)):c0(tt,l.stateNode));break;case 4:s=tt,d=Vt,tt=l.stateNode.containerInfo,Vt=!0,Ca(e,t,l),tt=s,Vt=d;break;case 0:case 11:case 14:case 15:nl(2,l,t),xt||nl(4,l,t),Ca(e,t,l);break;case 1:xt||(Jn(l,t),s=l.stateNode,typeof s.componentWillUnmount=="function"&&dy(l,t,s)),Ca(e,t,l);break;case 21:Ca(e,t,l);break;case 22:xt=(s=xt)||l.memoizedState!==null,Ca(e,t,l),xt=s;break;default:Ca(e,t,l)}}function xy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{si(e)}catch(l){Fe(t,t.return,l)}}}function by(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{si(e)}catch(l){Fe(t,t.return,l)}}function NN(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new py),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new py),t;default:throw Error(i(435,e.tag))}}function du(e,t){var l=NN(e);t.forEach(function(s){if(!l.has(s)){l.add(s);var d=DN.bind(null,e,s);s.then(d,d)}})}function Kt(e,t){var l=t.deletions;if(l!==null)for(var s=0;s<l.length;s++){var d=l[s],f=e,w=t,E=w;e:for(;E!==null;){switch(E.tag){case 27:if(ul(E.type)){tt=E.stateNode,Vt=!1;break e}break;case 5:tt=E.stateNode,Vt=!1;break e;case 3:case 4:tt=E.stateNode.containerInfo,Vt=!0;break e}E=E.return}if(tt===null)throw Error(i(160));yy(f,w,d),tt=null,Vt=!1,f=d.alternate,f!==null&&(f.return=null),d.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)wy(t,e),t=t.sibling}var Dn=null;function wy(e,t){var l=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Kt(t,e),Xt(e),s&4&&(nl(3,e,e.return),Ns(3,e),nl(5,e,e.return));break;case 1:Kt(t,e),Xt(e),s&512&&(xt||l===null||Jn(l,l.return)),s&64&&Ea&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?s:l.concat(s))));break;case 26:var d=Dn;if(Kt(t,e),Xt(e),s&512&&(xt||l===null||Jn(l,l.return)),s&4){var f=l!==null?l.memoizedState:null;if(s=e.memoizedState,l===null)if(s===null)if(e.stateNode===null){e:{s=e.type,l=e.memoizedProps,d=d.ownerDocument||d;t:switch(s){case"title":f=d.getElementsByTagName("title")[0],(!f||f[Ii]||f[Rt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=d.createElement(s),d.head.insertBefore(f,d.querySelector("head > title"))),Dt(f,s,l),f[Rt]=e,_t(f),s=f;break e;case"link":var w=w0("link","href",d).get(s+(l.href||""));if(w){for(var E=0;E<w.length;E++)if(f=w[E],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)){w.splice(E,1);break t}}f=d.createElement(s),Dt(f,s,l),d.head.appendChild(f);break;case"meta":if(w=w0("meta","content",d).get(s+(l.content||""))){for(E=0;E<w.length;E++)if(f=w[E],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)){w.splice(E,1);break t}}f=d.createElement(s),Dt(f,s,l),d.head.appendChild(f);break;default:throw Error(i(468,s))}f[Rt]=e,_t(f),s=f}e.stateNode=s}else j0(d,e.type,e.stateNode);else e.stateNode=b0(d,s,e.memoizedProps);else f!==s?(f===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):f.count--,s===null?j0(d,e.type,e.stateNode):b0(d,s,e.memoizedProps)):s===null&&e.stateNode!==null&&Cf(e,e.memoizedProps,l.memoizedProps)}break;case 27:Kt(t,e),Xt(e),s&512&&(xt||l===null||Jn(l,l.return)),l!==null&&s&4&&Cf(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Kt(t,e),Xt(e),s&512&&(xt||l===null||Jn(l,l.return)),e.flags&32){d=e.stateNode;try{Mr(d,"")}catch(fe){Fe(e,e.return,fe)}}s&4&&e.stateNode!=null&&(d=e.memoizedProps,Cf(e,d,l!==null?l.memoizedProps:d)),s&1024&&(Rf=!0);break;case 6:if(Kt(t,e),Xt(e),s&4){if(e.stateNode===null)throw Error(i(162));s=e.memoizedProps,l=e.stateNode;try{l.nodeValue=s}catch(fe){Fe(e,e.return,fe)}}break;case 3:if(_u=null,d=Dn,Dn=Eu(t.containerInfo),Kt(t,e),Dn=d,Xt(e),s&4&&l!==null&&l.memoizedState.isDehydrated)try{si(t.containerInfo)}catch(fe){Fe(e,e.return,fe)}Rf&&(Rf=!1,jy(e));break;case 4:s=Dn,Dn=Eu(e.stateNode.containerInfo),Kt(t,e),Xt(e),Dn=s;break;case 12:Kt(t,e),Xt(e);break;case 31:Kt(t,e),Xt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,du(e,s)));break;case 13:Kt(t,e),Xt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(hu=Wt()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,du(e,s)));break;case 22:d=e.memoizedState!==null;var M=l!==null&&l.memoizedState!==null,$=Ea,Z=xt;if(Ea=$||d,xt=Z||M,Kt(t,e),xt=Z,Ea=$,Xt(e),s&8192)e:for(t=e.stateNode,t._visibility=d?t._visibility&-2:t._visibility|1,d&&(l===null||M||Ea||xt||Wl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){M=l=t;try{if(f=M.stateNode,d)w=f.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none";else{E=M.stateNode;var I=M.memoizedProps.style,Q=I!=null&&I.hasOwnProperty("display")?I.display:null;E.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(fe){Fe(M,M.return,fe)}}}else if(t.tag===6){if(l===null){M=t;try{M.stateNode.nodeValue=d?"":M.memoizedProps}catch(fe){Fe(M,M.return,fe)}}}else if(t.tag===18){if(l===null){M=t;try{var V=M.stateNode;d?d0(V,!0):d0(M.stateNode,!1)}catch(fe){Fe(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}s&4&&(s=e.updateQueue,s!==null&&(l=s.retryQueue,l!==null&&(s.retryQueue=null,du(e,l))));break;case 19:Kt(t,e),Xt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,du(e,s)));break;case 30:break;case 21:break;default:Kt(t,e),Xt(e)}}function Xt(e){var t=e.flags;if(t&2){try{for(var l,s=e.return;s!==null;){if(hy(s)){l=s;break}s=s.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var d=l.stateNode,f=_f(e);cu(e,f,d);break;case 5:var w=l.stateNode;l.flags&32&&(Mr(w,""),l.flags&=-33);var E=_f(e);cu(e,E,w);break;case 3:case 4:var M=l.stateNode.containerInfo,$=_f(e);Tf(e,$,M);break;default:throw Error(i(161))}}catch(Z){Fe(e,e.return,Z)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function jy(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;jy(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function _a(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)vy(e,t.alternate,t),t=t.sibling}function Wl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:nl(4,t,t.return),Wl(t);break;case 1:Jn(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&dy(t,t.return,l),Wl(t);break;case 27:Os(t.stateNode);case 26:case 5:Jn(t,t.return),Wl(t);break;case 22:t.memoizedState===null&&Wl(t);break;case 30:Wl(t);break;default:Wl(t)}e=e.sibling}}function Ta(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var s=t.alternate,d=e,f=t,w=f.flags;switch(f.tag){case 0:case 11:case 15:Ta(d,f,l),Ns(4,f);break;case 1:if(Ta(d,f,l),s=f,d=s.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch($){Fe(s,s.return,$)}if(s=f,d=s.updateQueue,d!==null){var E=s.stateNode;try{var M=d.shared.hiddenCallbacks;if(M!==null)for(d.shared.hiddenCallbacks=null,d=0;d<M.length;d++)Wv(M[d],E)}catch($){Fe(s,s.return,$)}}l&&w&64&&cy(f),Es(f,f.return);break;case 27:my(f);case 26:case 5:Ta(d,f,l),l&&s===null&&w&4&&fy(f),Es(f,f.return);break;case 12:Ta(d,f,l);break;case 31:Ta(d,f,l),l&&w&4&&xy(d,f);break;case 13:Ta(d,f,l),l&&w&4&&by(d,f);break;case 22:f.memoizedState===null&&Ta(d,f,l),Es(f,f.return);break;case 30:break;default:Ta(d,f,l)}t=t.sibling}}function Mf(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&&ds(l))}function kf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ds(e))}function On(e,t,l,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Sy(e,t,l,s),t=t.sibling}function Sy(e,t,l,s){var d=t.flags;switch(t.tag){case 0:case 11:case 15:On(e,t,l,s),d&2048&&Ns(9,t);break;case 1:On(e,t,l,s);break;case 3:On(e,t,l,s),d&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ds(e)));break;case 12:if(d&2048){On(e,t,l,s),e=t.stateNode;try{var f=t.memoizedProps,w=f.id,E=f.onPostCommit;typeof E=="function"&&E(w,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(M){Fe(t,t.return,M)}}else On(e,t,l,s);break;case 31:On(e,t,l,s);break;case 13:On(e,t,l,s);break;case 23:break;case 22:f=t.stateNode,w=t.alternate,t.memoizedState!==null?f._visibility&2?On(e,t,l,s):Cs(e,t):f._visibility&2?On(e,t,l,s):(f._visibility|=2,Pr(e,t,l,s,(t.subtreeFlags&10256)!==0||!1)),d&2048&&Mf(w,t);break;case 24:On(e,t,l,s),d&2048&&kf(t.alternate,t);break;default:On(e,t,l,s)}}function Pr(e,t,l,s,d){for(d=d&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var f=e,w=t,E=l,M=s,$=w.flags;switch(w.tag){case 0:case 11:case 15:Pr(f,w,E,M,d),Ns(8,w);break;case 23:break;case 22:var Z=w.stateNode;w.memoizedState!==null?Z._visibility&2?Pr(f,w,E,M,d):Cs(f,w):(Z._visibility|=2,Pr(f,w,E,M,d)),d&&$&2048&&Mf(w.alternate,w);break;case 24:Pr(f,w,E,M,d),d&&$&2048&&kf(w.alternate,w);break;default:Pr(f,w,E,M,d)}t=t.sibling}}function Cs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,s=t,d=s.flags;switch(s.tag){case 22:Cs(l,s),d&2048&&Mf(s.alternate,s);break;case 24:Cs(l,s),d&2048&&kf(s.alternate,s);break;default:Cs(l,s)}t=t.sibling}}var _s=8192;function Jr(e,t,l){if(e.subtreeFlags&_s)for(e=e.child;e!==null;)Ny(e,t,l),e=e.sibling}function Ny(e,t,l){switch(e.tag){case 26:Jr(e,t,l),e.flags&_s&&e.memoizedState!==null&&cE(l,Dn,e.memoizedState,e.memoizedProps);break;case 5:Jr(e,t,l);break;case 3:case 4:var s=Dn;Dn=Eu(e.stateNode.containerInfo),Jr(e,t,l),Dn=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=_s,_s=16777216,Jr(e,t,l),_s=s):Jr(e,t,l));break;default:Jr(e,t,l)}}function Ey(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 Ts(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var s=t[l];Tt=s,_y(s,e)}Ey(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Cy(e),e=e.sibling}function Cy(e){switch(e.tag){case 0:case 11:case 15:Ts(e),e.flags&2048&&nl(9,e,e.return);break;case 3:Ts(e);break;case 12:Ts(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,fu(e)):Ts(e);break;default:Ts(e)}}function fu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var s=t[l];Tt=s,_y(s,e)}Ey(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:nl(8,t,t.return),fu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,fu(t));break;default:fu(t)}e=e.sibling}}function _y(e,t){for(;Tt!==null;){var l=Tt;switch(l.tag){case 0:case 11:case 15:nl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var s=l.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:ds(l.memoizedState.cache)}if(s=l.child,s!==null)s.return=l,Tt=s;else e:for(l=e;Tt!==null;){s=Tt;var d=s.sibling,f=s.return;if(gy(s),s===l){Tt=null;break e}if(d!==null){d.return=f,Tt=d;break e}Tt=f}}}var EN={getCacheForType:function(e){var t=kt(vt),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return kt(vt).controller.signal}},CN=typeof WeakMap=="function"?WeakMap:Map,Ye=0,Ie=null,Oe=null,Le=0,Xe=0,sn=null,al=!1,Ir=!1,Af=!1,Ra=0,st=0,ll=0,er=0,Df=0,on=0,Wr=0,Rs=null,Ft=null,Of=!1,hu=0,Ty=0,mu=1/0,pu=null,rl=null,wt=0,il=null,ei=null,Ma=0,zf=0,Lf=null,Ry=null,Ms=0,Uf=null;function un(){return(Ye&2)!==0&&Le!==0?Le&-Le:z.T!==null?Gf():Vp()}function My(){if(on===0)if((Le&536870912)===0||qe){var e=So;So<<=1,(So&3932160)===0&&(So=262144),on=e}else on=536870912;return e=ln.current,e!==null&&(e.flags|=32),on}function Zt(e,t,l){(e===Ie&&(Xe===2||Xe===9)||e.cancelPendingCommit!==null)&&(ti(e,0),sl(e,Le,on,!1)),Ji(e,l),((Ye&2)===0||e!==Ie)&&(e===Ie&&((Ye&2)===0&&(er|=l),st===4&&sl(e,Le,on,!1)),In(e))}function ky(e,t,l){if((Ye&6)!==0)throw Error(i(327));var s=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Pi(e,t),d=s?RN(e,t):Hf(e,t,!0),f=s;do{if(d===0){Ir&&!s&&sl(e,t,0,!1);break}else{if(l=e.current.alternate,f&&!_N(l)){d=Hf(e,t,!1),f=!1;continue}if(d===2){if(f=t,e.errorRecoveryDisabledLanes&f)var w=0;else w=e.pendingLanes&-536870913,w=w!==0?w:w&536870912?536870912:0;if(w!==0){t=w;e:{var E=e;d=Rs;var M=E.current.memoizedState.isDehydrated;if(M&&(ti(E,w).flags|=256),w=Hf(E,w,!1),w!==2){if(Af&&!M){E.errorRecoveryDisabledLanes|=f,er|=f,d=4;break e}f=Ft,Ft=d,f!==null&&(Ft===null?Ft=f:Ft.push.apply(Ft,f))}d=w}if(f=!1,d!==2)continue}}if(d===1){ti(e,0),sl(e,t,0,!0);break}e:{switch(s=e,f=d,f){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:sl(s,t,on,!al);break e;case 2:Ft=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(d=hu+300-Wt(),10<d)){if(sl(s,t,on,!al),Eo(s,0,!0)!==0)break e;Ma=t,s.timeoutHandle=o0(Ay.bind(null,s,l,Ft,pu,Of,t,on,er,Wr,al,f,"Throttled",-0,0),d);break e}Ay(s,l,Ft,pu,Of,t,on,er,Wr,al,f,null,-0,0)}}break}while(!0);In(e)}function Ay(e,t,l,s,d,f,w,E,M,$,Z,I,Q,V){if(e.timeoutHandle=-1,I=t.subtreeFlags,I&8192||(I&16785408)===16785408){I={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:pa},Ny(t,f,I);var fe=(f&62914560)===f?hu-Wt():(f&4194048)===f?Ty-Wt():0;if(fe=dE(I,fe),fe!==null){Ma=f,e.cancelPendingCommit=fe(By.bind(null,e,t,f,l,s,d,w,E,M,Z,I,null,Q,V)),sl(e,f,w,!$);return}}By(e,t,f,l,s,d,w,E,M)}function _N(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 s=0;s<l.length;s++){var d=l[s],f=d.getSnapshot;d=d.value;try{if(!nn(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 sl(e,t,l,s){t&=~Df,t&=~er,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var d=t;0<d;){var f=31-tn(d),w=1<<f;s[f]=-1,d&=~w}l!==0&&Qp(e,l,t)}function vu(){return(Ye&6)===0?(ks(0),!1):!0}function qf(){if(Oe!==null){if(Xe===0)var e=Oe.return;else e=Oe,xa=Vl=null,Wd(e),Vr=null,hs=0,e=Oe;for(;e!==null;)uy(e.alternate,e),e=e.return;Oe=null}}function ti(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,XN(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Ma=0,qf(),Ie=e,Oe=l=ga(e.current,null),Le=t,Xe=0,sn=null,al=!1,Ir=Pi(e,t),Af=!1,Wr=on=Df=er=ll=st=0,Ft=Rs=null,Of=!1,(t&8)!==0&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var d=31-tn(s),f=1<<d;t|=e[d],s&=~f}return Ra=t,Uo(),l}function Dy(e,t){Re=null,z.H=ws,t===Yr||t===Vo?(t=Zv(),Xe=3):t===$d?(t=Zv(),Xe=4):Xe=t===vf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,sn=t,Oe===null&&(st=1,ru(e,yn(t,e.current)))}function Oy(){var e=ln.current;return e===null?!0:(Le&4194048)===Le?jn===null:(Le&62914560)===Le||(Le&536870912)!==0?e===jn:!1}function zy(){var e=z.H;return z.H=ws,e===null?ws:e}function Ly(){var e=z.A;return z.A=EN,e}function gu(){st=4,al||(Le&4194048)!==Le&&ln.current!==null||(Ir=!0),(ll&134217727)===0&&(er&134217727)===0||Ie===null||sl(Ie,Le,on,!1)}function Hf(e,t,l){var s=Ye;Ye|=2;var d=zy(),f=Ly();(Ie!==e||Le!==t)&&(pu=null,ti(e,t)),t=!1;var w=st;e:do try{if(Xe!==0&&Oe!==null){var E=Oe,M=sn;switch(Xe){case 8:qf(),w=6;break e;case 3:case 2:case 9:case 6:ln.current===null&&(t=!0);var $=Xe;if(Xe=0,sn=null,ni(e,E,M,$),l&&Ir){w=0;break e}break;default:$=Xe,Xe=0,sn=null,ni(e,E,M,$)}}TN(),w=st;break}catch(Z){Dy(e,Z)}while(!0);return t&&e.shellSuspendCounter++,xa=Vl=null,Ye=s,z.H=d,z.A=f,Oe===null&&(Ie=null,Le=0,Uo()),w}function TN(){for(;Oe!==null;)Uy(Oe)}function RN(e,t){var l=Ye;Ye|=2;var s=zy(),d=Ly();Ie!==e||Le!==t?(pu=null,mu=Wt()+500,ti(e,t)):Ir=Pi(e,t);e:do try{if(Xe!==0&&Oe!==null){t=Oe;var f=sn;t:switch(Xe){case 1:Xe=0,sn=null,ni(e,t,f,1);break;case 2:case 9:if(Xv(f)){Xe=0,sn=null,qy(t);break}t=function(){Xe!==2&&Xe!==9||Ie!==e||(Xe=7),In(e)},f.then(t,t);break e;case 3:Xe=7;break e;case 4:Xe=5;break e;case 7:Xv(f)?(Xe=0,sn=null,qy(t)):(Xe=0,sn=null,ni(e,t,f,7));break;case 5:var w=null;switch(Oe.tag){case 26:w=Oe.memoizedState;case 5:case 27:var E=Oe;if(w?S0(w):E.stateNode.complete){Xe=0,sn=null;var M=E.sibling;if(M!==null)Oe=M;else{var $=E.return;$!==null?(Oe=$,yu($)):Oe=null}break t}}Xe=0,sn=null,ni(e,t,f,5);break;case 6:Xe=0,sn=null,ni(e,t,f,6);break;case 8:qf(),st=6;break e;default:throw Error(i(462))}}MN();break}catch(Z){Dy(e,Z)}while(!0);return xa=Vl=null,z.H=s,z.A=d,Ye=l,Oe!==null?0:(Ie=null,Le=0,Uo(),st)}function MN(){for(;Oe!==null&&!WS();)Uy(Oe)}function Uy(e){var t=sy(e.alternate,e,Ra);e.memoizedProps=e.pendingProps,t===null?yu(e):Oe=t}function qy(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=ty(l,t,t.pendingProps,t.type,void 0,Le);break;case 11:t=ty(l,t,t.pendingProps,t.type.render,t.ref,Le);break;case 5:Wd(t);default:uy(l,t),t=Oe=Lv(t,Ra),t=sy(l,t,Ra)}e.memoizedProps=e.pendingProps,t===null?yu(e):Oe=t}function ni(e,t,l,s){xa=Vl=null,Wd(t),Vr=null,hs=0;var d=t.return;try{if(yN(e,d,t,l,Le)){st=1,ru(e,yn(l,e.current)),Oe=null;return}}catch(f){if(d!==null)throw Oe=d,f;st=1,ru(e,yn(l,e.current)),Oe=null;return}t.flags&32768?(qe||s===1?e=!0:Ir||(Le&536870912)!==0?e=!1:(al=e=!0,(s===2||s===9||s===3||s===6)&&(s=ln.current,s!==null&&s.tag===13&&(s.flags|=16384))),Hy(t,e)):yu(t)}function yu(e){var t=e;do{if((t.flags&32768)!==0){Hy(t,al);return}e=t.return;var l=wN(t.alternate,t,Ra);if(l!==null){Oe=l;return}if(t=t.sibling,t!==null){Oe=t;return}Oe=t=e}while(t!==null);st===0&&(st=5)}function Hy(e,t){do{var l=jN(e.alternate,e);if(l!==null){l.flags&=32767,Oe=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Oe=e;return}Oe=e=l}while(e!==null);st=6,Oe=null}function By(e,t,l,s,d,f,w,E,M){e.cancelPendingCommit=null;do xu();while(wt!==0);if((Ye&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(f=t.lanes|t.childLanes,f|=Cd,u2(e,l,f,w,E,M),e===Ie&&(Oe=Ie=null,Le=0),ei=t,il=e,Ma=l,zf=f,Lf=d,Ry=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ON(wo,function(){return Vy(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=z.T,z.T=null,d=J.p,J.p=2,w=Ye,Ye|=4;try{SN(e,t,l)}finally{Ye=w,J.p=d,z.T=s}}wt=1,$y(),Qy(),Gy()}}function $y(){if(wt===1){wt=0;var e=il,t=ei,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=z.T,z.T=null;var s=J.p;J.p=2;var d=Ye;Ye|=4;try{wy(t,e);var f=Jf,w=_v(e.containerInfo),E=f.focusedElem,M=f.selectionRange;if(w!==E&&E&&E.ownerDocument&&Cv(E.ownerDocument.documentElement,E)){if(M!==null&&wd(E)){var $=M.start,Z=M.end;if(Z===void 0&&(Z=$),"selectionStart"in E)E.selectionStart=$,E.selectionEnd=Math.min(Z,E.value.length);else{var I=E.ownerDocument||document,Q=I&&I.defaultView||window;if(Q.getSelection){var V=Q.getSelection(),fe=E.textContent.length,je=Math.min(M.start,fe),Je=M.end===void 0?je:Math.min(M.end,fe);!V.extend&&je>Je&&(w=Je,Je=je,je=w);var L=Ev(E,je),O=Ev(E,Je);if(L&&O&&(V.rangeCount!==1||V.anchorNode!==L.node||V.anchorOffset!==L.offset||V.focusNode!==O.node||V.focusOffset!==O.offset)){var B=I.createRange();B.setStart(L.node,L.offset),V.removeAllRanges(),je>Je?(V.addRange(B),V.extend(O.node,O.offset)):(B.setEnd(O.node,O.offset),V.addRange(B))}}}}for(I=[],V=E;V=V.parentNode;)V.nodeType===1&&I.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<I.length;E++){var P=I[E];P.element.scrollLeft=P.left,P.element.scrollTop=P.top}}ku=!!Pf,Jf=Pf=null}finally{Ye=d,J.p=s,z.T=l}}e.current=t,wt=2}}function Qy(){if(wt===2){wt=0;var e=il,t=ei,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=z.T,z.T=null;var s=J.p;J.p=2;var d=Ye;Ye|=4;try{vy(e,t.alternate,t)}finally{Ye=d,J.p=s,z.T=l}}wt=3}}function Gy(){if(wt===4||wt===3){wt=0,e2();var e=il,t=ei,l=Ma,s=Ry;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?wt=5:(wt=0,ei=il=null,Yy(e,e.pendingLanes));var d=e.pendingLanes;if(d===0&&(rl=null),nd(l),t=t.stateNode,en&&typeof en.onCommitFiberRoot=="function")try{en.onCommitFiberRoot(Zi,t,void 0,(t.current.flags&128)===128)}catch{}if(s!==null){t=z.T,d=J.p,J.p=2,z.T=null;try{for(var f=e.onRecoverableError,w=0;w<s.length;w++){var E=s[w];f(E.value,{componentStack:E.stack})}}finally{z.T=t,J.p=d}}(Ma&3)!==0&&xu(),In(e),d=e.pendingLanes,(l&261930)!==0&&(d&42)!==0?e===Uf?Ms++:(Ms=0,Uf=e):Ms=0,ks(0)}}function Yy(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ds(t)))}function xu(){return $y(),Qy(),Gy(),Vy()}function Vy(){if(wt!==5)return!1;var e=il,t=zf;zf=0;var l=nd(Ma),s=z.T,d=J.p;try{J.p=32>l?32:l,z.T=null,l=Lf,Lf=null;var f=il,w=Ma;if(wt=0,ei=il=null,Ma=0,(Ye&6)!==0)throw Error(i(331));var E=Ye;if(Ye|=4,Cy(f.current),Sy(f,f.current,w,l),Ye=E,ks(0,!1),en&&typeof en.onPostCommitFiberRoot=="function")try{en.onPostCommitFiberRoot(Zi,f)}catch{}return!0}finally{J.p=d,z.T=s,Yy(e,t)}}function Ky(e,t,l){t=yn(l,t),t=pf(e.stateNode,t,2),e=Wa(e,t,2),e!==null&&(Ji(e,2),In(e))}function Fe(e,t,l){if(e.tag===3)Ky(e,e,l);else for(;t!==null;){if(t.tag===3){Ky(t,e,l);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(rl===null||!rl.has(s))){e=yn(l,e),l=Xg(2),s=Wa(t,l,2),s!==null&&(Fg(l,s,t,e),Ji(s,2),In(s));break}}t=t.return}}function Bf(e,t,l){var s=e.pingCache;if(s===null){s=e.pingCache=new CN;var d=new Set;s.set(t,d)}else d=s.get(t),d===void 0&&(d=new Set,s.set(t,d));d.has(l)||(Af=!0,d.add(l),e=kN.bind(null,e,t,l),t.then(e,e))}function kN(e,t,l){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ie===e&&(Le&l)===l&&(st===4||st===3&&(Le&62914560)===Le&&300>Wt()-hu?(Ye&2)===0&&ti(e,0):Df|=l,Wr===Le&&(Wr=0)),In(e)}function Xy(e,t){t===0&&(t=$p()),e=Ql(e,t),e!==null&&(Ji(e,t),In(e))}function AN(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Xy(e,l)}function DN(e,t){var l=0;switch(e.tag){case 31:case 13:var s=e.stateNode,d=e.memoizedState;d!==null&&(l=d.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(i(314))}s!==null&&s.delete(t),Xy(e,l)}function ON(e,t){return Ic(e,t)}var bu=null,ai=null,$f=!1,wu=!1,Qf=!1,ol=0;function In(e){e!==ai&&e.next===null&&(ai===null?bu=ai=e:ai=ai.next=e),wu=!0,$f||($f=!0,LN())}function ks(e,t){if(!Qf&&wu){Qf=!0;do for(var l=!1,s=bu;s!==null;){if(e!==0){var d=s.pendingLanes;if(d===0)var f=0;else{var w=s.suspendedLanes,E=s.pingedLanes;f=(1<<31-tn(42|e)+1)-1,f&=d&~(w&~E),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(l=!0,Jy(s,f))}else f=Le,f=Eo(s,s===Ie?f:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(f&3)===0||Pi(s,f)||(l=!0,Jy(s,f));s=s.next}while(l);Qf=!1}}function zN(){Fy()}function Fy(){wu=$f=!1;var e=0;ol!==0&&KN()&&(e=ol);for(var t=Wt(),l=null,s=bu;s!==null;){var d=s.next,f=Zy(s,t);f===0?(s.next=null,l===null?bu=d:l.next=d,d===null&&(ai=l)):(l=s,(e!==0||(f&3)!==0)&&(wu=!0)),s=d}wt!==0&&wt!==5||ks(e),ol!==0&&(ol=0)}function Zy(e,t){for(var l=e.suspendedLanes,s=e.pingedLanes,d=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var w=31-tn(f),E=1<<w,M=d[w];M===-1?((E&l)===0||(E&s)!==0)&&(d[w]=o2(E,t)):M<=t&&(e.expiredLanes|=E),f&=~E}if(t=Ie,l=Le,l=Eo(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,l===0||e===t&&(Xe===2||Xe===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&Wc(s),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Pi(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(s!==null&&Wc(s),nd(l)){case 2:case 8:l=Hp;break;case 32:l=wo;break;case 268435456:l=Bp;break;default:l=wo}return s=Py.bind(null,e),l=Ic(l,s),e.callbackPriority=t,e.callbackNode=l,t}return s!==null&&s!==null&&Wc(s),e.callbackPriority=2,e.callbackNode=null,2}function Py(e,t){if(wt!==0&&wt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(xu()&&e.callbackNode!==l)return null;var s=Le;return s=Eo(e,e===Ie?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(ky(e,s,t),Zy(e,Wt()),e.callbackNode!=null&&e.callbackNode===l?Py.bind(null,e):null)}function Jy(e,t){if(xu())return null;ky(e,t,!0)}function LN(){FN(function(){(Ye&6)!==0?Ic(qp,zN):Fy()})}function Gf(){if(ol===0){var e=Qr;e===0&&(e=jo,jo<<=1,(jo&261888)===0&&(jo=256)),ol=e}return ol}function Iy(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ro(""+e)}function Wy(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 UN(e,t,l,s,d){if(t==="submit"&&l&&l.stateNode===d){var f=Iy((d[Gt]||null).action),w=s.submitter;w&&(t=(t=w[Gt]||null)?Iy(t.formAction):w.getAttribute("formAction"),t!==null&&(f=t,w=null));var E=new Do("action","action",null,s,d);e.push({event:E,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(ol!==0){var M=w?Wy(d,w):new FormData(d);uf(l,{pending:!0,data:M,method:d.method,action:f},null,M)}}else typeof f=="function"&&(E.preventDefault(),M=w?Wy(d,w):new FormData(d),uf(l,{pending:!0,data:M,method:d.method,action:f},f,M))},currentTarget:d}]})}}for(var Yf=0;Yf<Ed.length;Yf++){var Vf=Ed[Yf],qN=Vf.toLowerCase(),HN=Vf[0].toUpperCase()+Vf.slice(1);An(qN,"on"+HN)}An(Mv,"onAnimationEnd"),An(kv,"onAnimationIteration"),An(Av,"onAnimationStart"),An("dblclick","onDoubleClick"),An("focusin","onFocus"),An("focusout","onBlur"),An(tN,"onTransitionRun"),An(nN,"onTransitionStart"),An(aN,"onTransitionCancel"),An(Dv,"onTransitionEnd"),Tr("onMouseEnter",["mouseout","mouseover"]),Tr("onMouseLeave",["mouseout","mouseover"]),Tr("onPointerEnter",["pointerout","pointerover"]),Tr("onPointerLeave",["pointerout","pointerover"]),ql("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ql("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ql("onBeforeInput",["compositionend","keypress","textInput","paste"]),ql("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ql("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ql("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var As="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(" "),BN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(As));function e0(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var s=e[l],d=s.event;s=s.listeners;e:{var f=void 0;if(t)for(var w=s.length-1;0<=w;w--){var E=s[w],M=E.instance,$=E.currentTarget;if(E=E.listener,M!==f&&d.isPropagationStopped())break e;f=E,d.currentTarget=$;try{f(d)}catch(Z){Lo(Z)}d.currentTarget=null,f=M}else for(w=0;w<s.length;w++){if(E=s[w],M=E.instance,$=E.currentTarget,E=E.listener,M!==f&&d.isPropagationStopped())break e;f=E,d.currentTarget=$;try{f(d)}catch(Z){Lo(Z)}d.currentTarget=null,f=M}}}}function ze(e,t){var l=t[ad];l===void 0&&(l=t[ad]=new Set);var s=e+"__bubble";l.has(s)||(t0(t,e,2,!1),l.add(s))}function Kf(e,t,l){var s=0;t&&(s|=4),t0(l,e,s,t)}var ju="_reactListening"+Math.random().toString(36).slice(2);function Xf(e){if(!e[ju]){e[ju]=!0,Fp.forEach(function(l){l!=="selectionchange"&&(BN.has(l)||Kf(l,!1,e),Kf(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ju]||(t[ju]=!0,Kf("selectionchange",!1,t))}}function t0(e,t,l,s){switch(M0(t)){case 2:var d=mE;break;case 8:d=pE;break;default:d=oh}l=d.bind(null,t,l,e),d=void 0,!fd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(d=!0),s?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 Ff(e,t,l,s,d){var f=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var w=s.tag;if(w===3||w===4){var E=s.stateNode.containerInfo;if(E===d)break;if(w===4)for(w=s.return;w!==null;){var M=w.tag;if((M===3||M===4)&&w.stateNode.containerInfo===d)return;w=w.return}for(;E!==null;){if(w=Er(E),w===null)return;if(M=w.tag,M===5||M===6||M===26||M===27){s=f=w;continue e}E=E.parentNode}}s=s.return}iv(function(){var $=f,Z=cd(l),I=[];e:{var Q=Ov.get(e);if(Q!==void 0){var V=Do,fe=e;switch(e){case"keypress":if(ko(l)===0)break e;case"keydown":case"keyup":V=D2;break;case"focusin":fe="focus",V=vd;break;case"focusout":fe="blur",V=vd;break;case"beforeblur":case"afterblur":V=vd;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=uv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=w2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=L2;break;case Mv:case kv:case Av:V=N2;break;case Dv:V=q2;break;case"scroll":case"scrollend":V=x2;break;case"wheel":V=B2;break;case"copy":case"cut":case"paste":V=C2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=dv;break;case"toggle":case"beforetoggle":V=Q2}var je=(t&4)!==0,Je=!je&&(e==="scroll"||e==="scrollend"),L=je?Q!==null?Q+"Capture":null:Q;je=[];for(var O=$,B;O!==null;){var P=O;if(B=P.stateNode,P=P.tag,P!==5&&P!==26&&P!==27||B===null||L===null||(P=es(O,L),P!=null&&je.push(Ds(O,P,B))),Je)break;O=O.return}0<je.length&&(Q=new V(Q,fe,null,l,Z),I.push({event:Q,listeners:je}))}}if((t&7)===0){e:{if(Q=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",Q&&l!==ud&&(fe=l.relatedTarget||l.fromElement)&&(Er(fe)||fe[Nr]))break e;if((V||Q)&&(Q=Z.window===Z?Z:(Q=Z.ownerDocument)?Q.defaultView||Q.parentWindow:window,V?(fe=l.relatedTarget||l.toElement,V=$,fe=fe?Er(fe):null,fe!==null&&(Je=c(fe),je=fe.tag,fe!==Je||je!==5&&je!==27&&je!==6)&&(fe=null)):(V=null,fe=$),V!==fe)){if(je=uv,P="onMouseLeave",L="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(je=dv,P="onPointerLeave",L="onPointerEnter",O="pointer"),Je=V==null?Q:Wi(V),B=fe==null?Q:Wi(fe),Q=new je(P,O+"leave",V,l,Z),Q.target=Je,Q.relatedTarget=B,P=null,Er(Z)===$&&(je=new je(L,O+"enter",fe,l,Z),je.target=B,je.relatedTarget=Je,P=je),Je=P,V&&fe)t:{for(je=$N,L=V,O=fe,B=0,P=L;P;P=je(P))B++;P=0;for(var xe=O;xe;xe=je(xe))P++;for(;0<B-P;)L=je(L),B--;for(;0<P-B;)O=je(O),P--;for(;B--;){if(L===O||O!==null&&L===O.alternate){je=L;break t}L=je(L),O=je(O)}je=null}else je=null;V!==null&&n0(I,Q,V,je,!1),fe!==null&&Je!==null&&n0(I,Je,fe,je,!0)}}e:{if(Q=$?Wi($):window,V=Q.nodeName&&Q.nodeName.toLowerCase(),V==="select"||V==="input"&&Q.type==="file")var Qe=xv;else if(gv(Q))if(bv)Qe=I2;else{Qe=P2;var ge=Z2}else V=Q.nodeName,!V||V.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?$&&od($.elementType)&&(Qe=xv):Qe=J2;if(Qe&&(Qe=Qe(e,$))){yv(I,Qe,l,Z);break e}ge&&ge(e,Q,$),e==="focusout"&&$&&Q.type==="number"&&$.memoizedProps.value!=null&&sd(Q,"number",Q.value)}switch(ge=$?Wi($):window,e){case"focusin":(gv(ge)||ge.contentEditable==="true")&&(Or=ge,jd=$,os=null);break;case"focusout":os=jd=Or=null;break;case"mousedown":Sd=!0;break;case"contextmenu":case"mouseup":case"dragend":Sd=!1,Tv(I,l,Z);break;case"selectionchange":if(eN)break;case"keydown":case"keyup":Tv(I,l,Z)}var Me;if(yd)e:{switch(e){case"compositionstart":var Ue="onCompositionStart";break e;case"compositionend":Ue="onCompositionEnd";break e;case"compositionupdate":Ue="onCompositionUpdate";break e}Ue=void 0}else Dr?pv(e,l)&&(Ue="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Ue="onCompositionStart");Ue&&(fv&&l.locale!=="ko"&&(Dr||Ue!=="onCompositionStart"?Ue==="onCompositionEnd"&&Dr&&(Me=sv()):(Ka=Z,hd="value"in Ka?Ka.value:Ka.textContent,Dr=!0)),ge=Su($,Ue),0<ge.length&&(Ue=new cv(Ue,e,null,l,Z),I.push({event:Ue,listeners:ge}),Me?Ue.data=Me:(Me=vv(l),Me!==null&&(Ue.data=Me)))),(Me=Y2?V2(e,l):K2(e,l))&&(Ue=Su($,"onBeforeInput"),0<Ue.length&&(ge=new cv("onBeforeInput","beforeinput",null,l,Z),I.push({event:ge,listeners:Ue}),ge.data=Me)),UN(I,e,$,l,Z)}e0(I,t)})}function Ds(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Su(e,t){for(var l=t+"Capture",s=[];e!==null;){var d=e,f=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||f===null||(d=es(e,l),d!=null&&s.unshift(Ds(e,d,f)),d=es(e,t),d!=null&&s.push(Ds(e,d,f))),e.tag===3)return s;e=e.return}return[]}function $N(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function n0(e,t,l,s,d){for(var f=t._reactName,w=[];l!==null&&l!==s;){var E=l,M=E.alternate,$=E.stateNode;if(E=E.tag,M!==null&&M===s)break;E!==5&&E!==26&&E!==27||$===null||(M=$,d?($=es(l,f),$!=null&&w.unshift(Ds(l,$,M))):d||($=es(l,f),$!=null&&w.push(Ds(l,$,M)))),l=l.return}w.length!==0&&e.push({event:t,listeners:w})}var QN=/\r\n?/g,GN=/\u0000|\uFFFD/g;function a0(e){return(typeof e=="string"?e:""+e).replace(QN,`
49
+ `).replace(GN,"")}function l0(e,t){return t=a0(t),a0(e)===t}function Pe(e,t,l,s,d,f){switch(l){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||Mr(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&Mr(e,""+s);break;case"className":_o(e,"class",s);break;case"tabIndex":_o(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":_o(e,l,s);break;case"style":lv(e,s,f);break;case"data":if(t!=="object"){_o(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(l);break}s=Ro(""+s),e.setAttribute(l,s);break;case"action":case"formAction":if(typeof s=="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"&&Pe(e,t,"name",d.name,d,null),Pe(e,t,"formEncType",d.formEncType,d,null),Pe(e,t,"formMethod",d.formMethod,d,null),Pe(e,t,"formTarget",d.formTarget,d,null)):(Pe(e,t,"encType",d.encType,d,null),Pe(e,t,"method",d.method,d,null),Pe(e,t,"target",d.target,d,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(l);break}s=Ro(""+s),e.setAttribute(l,s);break;case"onClick":s!=null&&(e.onclick=pa);break;case"onScroll":s!=null&&ze("scroll",e);break;case"onScrollEnd":s!=null&&ze("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(i(61));if(l=s.__html,l!=null){if(d.children!=null)throw Error(i(60));e.innerHTML=l}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}l=Ro(""+s),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":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,""+s):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":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":s===!0?e.setAttribute(l,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,s):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(l,s):e.removeAttribute(l);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(l):e.setAttribute(l,s);break;case"popover":ze("beforetoggle",e),ze("toggle",e),Co(e,"popover",s);break;case"xlinkActuate":ma(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":ma(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":ma(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":ma(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":ma(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":ma(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":ma(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":ma(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":ma(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":Co(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=g2.get(l)||l,Co(e,l,s))}}function Zf(e,t,l,s,d,f){switch(l){case"style":lv(e,s,f);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(i(61));if(l=s.__html,l!=null){if(d.children!=null)throw Error(i(60));e.innerHTML=l}}break;case"children":typeof s=="string"?Mr(e,s):(typeof s=="number"||typeof s=="bigint")&&Mr(e,""+s);break;case"onScroll":s!=null&&ze("scroll",e);break;case"onScrollEnd":s!=null&&ze("scrollend",e);break;case"onClick":s!=null&&(e.onclick=pa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Zp.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[Gt]||null,f=f!=null?f[l]:null,typeof f=="function"&&e.removeEventListener(t,f,d),typeof s=="function")){typeof f!="function"&&f!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,s,d);break e}l in e?e[l]=s:s===!0?e.setAttribute(l,""):Co(e,l,s)}}}function Dt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ze("error",e),ze("load",e);var s=!1,d=!1,f;for(f in l)if(l.hasOwnProperty(f)){var w=l[f];if(w!=null)switch(f){case"src":s=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Pe(e,t,f,w,l,null)}}d&&Pe(e,t,"srcSet",l.srcSet,l,null),s&&Pe(e,t,"src",l.src,l,null);return;case"input":ze("invalid",e);var E=f=w=d=null,M=null,$=null;for(s in l)if(l.hasOwnProperty(s)){var Z=l[s];if(Z!=null)switch(s){case"name":d=Z;break;case"type":w=Z;break;case"checked":M=Z;break;case"defaultChecked":$=Z;break;case"value":f=Z;break;case"defaultValue":E=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(i(137,t));break;default:Pe(e,t,s,Z,l,null)}}ev(e,f,E,M,$,w,d,!1);return;case"select":ze("invalid",e),s=w=f=null;for(d in l)if(l.hasOwnProperty(d)&&(E=l[d],E!=null))switch(d){case"value":f=E;break;case"defaultValue":w=E;break;case"multiple":s=E;default:Pe(e,t,d,E,l,null)}t=f,l=w,e.multiple=!!s,t!=null?Rr(e,!!s,t,!1):l!=null&&Rr(e,!!s,l,!0);return;case"textarea":ze("invalid",e),f=d=s=null;for(w in l)if(l.hasOwnProperty(w)&&(E=l[w],E!=null))switch(w){case"value":s=E;break;case"defaultValue":d=E;break;case"children":f=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(i(91));break;default:Pe(e,t,w,E,l,null)}nv(e,s,d,f);return;case"option":for(M in l)if(l.hasOwnProperty(M)&&(s=l[M],s!=null))switch(M){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Pe(e,t,M,s,l,null)}return;case"dialog":ze("beforetoggle",e),ze("toggle",e),ze("cancel",e),ze("close",e);break;case"iframe":case"object":ze("load",e);break;case"video":case"audio":for(s=0;s<As.length;s++)ze(As[s],e);break;case"image":ze("error",e),ze("load",e);break;case"details":ze("toggle",e);break;case"embed":case"source":case"link":ze("error",e),ze("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($ in l)if(l.hasOwnProperty($)&&(s=l[$],s!=null))switch($){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Pe(e,t,$,s,l,null)}return;default:if(od(t)){for(Z in l)l.hasOwnProperty(Z)&&(s=l[Z],s!==void 0&&Zf(e,t,Z,s,l,void 0));return}}for(E in l)l.hasOwnProperty(E)&&(s=l[E],s!=null&&Pe(e,t,E,s,l,null))}function YN(e,t,l,s){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,w=null,E=null,M=null,$=null,Z=null;for(V in l){var I=l[V];if(l.hasOwnProperty(V)&&I!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":M=I;default:s.hasOwnProperty(V)||Pe(e,t,V,null,s,I)}}for(var Q in s){var V=s[Q];if(I=l[Q],s.hasOwnProperty(Q)&&(V!=null||I!=null))switch(Q){case"type":f=V;break;case"name":d=V;break;case"checked":$=V;break;case"defaultChecked":Z=V;break;case"value":w=V;break;case"defaultValue":E=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(i(137,t));break;default:V!==I&&Pe(e,t,Q,V,s,I)}}id(e,w,E,M,$,Z,f,d);return;case"select":V=w=E=Q=null;for(f in l)if(M=l[f],l.hasOwnProperty(f)&&M!=null)switch(f){case"value":break;case"multiple":V=M;default:s.hasOwnProperty(f)||Pe(e,t,f,null,s,M)}for(d in s)if(f=s[d],M=l[d],s.hasOwnProperty(d)&&(f!=null||M!=null))switch(d){case"value":Q=f;break;case"defaultValue":E=f;break;case"multiple":w=f;default:f!==M&&Pe(e,t,d,f,s,M)}t=E,l=w,s=V,Q!=null?Rr(e,!!l,Q,!1):!!s!=!!l&&(t!=null?Rr(e,!!l,t,!0):Rr(e,!!l,l?[]:"",!1));return;case"textarea":V=Q=null;for(E in l)if(d=l[E],l.hasOwnProperty(E)&&d!=null&&!s.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:Pe(e,t,E,null,s,d)}for(w in s)if(d=s[w],f=l[w],s.hasOwnProperty(w)&&(d!=null||f!=null))switch(w){case"value":Q=d;break;case"defaultValue":V=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(i(91));break;default:d!==f&&Pe(e,t,w,d,s,f)}tv(e,Q,V);return;case"option":for(var fe in l)if(Q=l[fe],l.hasOwnProperty(fe)&&Q!=null&&!s.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:Pe(e,t,fe,null,s,Q)}for(M in s)if(Q=s[M],V=l[M],s.hasOwnProperty(M)&&Q!==V&&(Q!=null||V!=null))switch(M){case"selected":e.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:Pe(e,t,M,Q,s,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 je in l)Q=l[je],l.hasOwnProperty(je)&&Q!=null&&!s.hasOwnProperty(je)&&Pe(e,t,je,null,s,Q);for($ in s)if(Q=s[$],V=l[$],s.hasOwnProperty($)&&Q!==V&&(Q!=null||V!=null))switch($){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(i(137,t));break;default:Pe(e,t,$,Q,s,V)}return;default:if(od(t)){for(var Je in l)Q=l[Je],l.hasOwnProperty(Je)&&Q!==void 0&&!s.hasOwnProperty(Je)&&Zf(e,t,Je,void 0,s,Q);for(Z in s)Q=s[Z],V=l[Z],!s.hasOwnProperty(Z)||Q===V||Q===void 0&&V===void 0||Zf(e,t,Z,Q,s,V);return}}for(var L in l)Q=l[L],l.hasOwnProperty(L)&&Q!=null&&!s.hasOwnProperty(L)&&Pe(e,t,L,null,s,Q);for(I in s)Q=s[I],V=l[I],!s.hasOwnProperty(I)||Q===V||Q==null&&V==null||Pe(e,t,I,Q,s,V)}function r0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function VN(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),s=0;s<l.length;s++){var d=l[s],f=d.transferSize,w=d.initiatorType,E=d.duration;if(f&&E&&r0(w)){for(w=0,E=d.responseEnd,s+=1;s<l.length;s++){var M=l[s],$=M.startTime;if($>E)break;var Z=M.transferSize,I=M.initiatorType;Z&&r0(I)&&(M=M.responseEnd,w+=Z*(M<E?1:(E-$)/(M-$)))}if(--s,t+=8*(f+w)/(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 Pf=null,Jf=null;function Nu(e){return e.nodeType===9?e:e.ownerDocument}function i0(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 s0(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 If(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 Wf=null;function KN(){var e=window.event;return e&&e.type==="popstate"?e===Wf?!1:(Wf=e,!0):(Wf=null,!1)}var o0=typeof setTimeout=="function"?setTimeout:void 0,XN=typeof clearTimeout=="function"?clearTimeout:void 0,u0=typeof Promise=="function"?Promise:void 0,FN=typeof queueMicrotask=="function"?queueMicrotask:typeof u0<"u"?function(e){return u0.resolve(null).then(e).catch(ZN)}:o0;function ZN(e){setTimeout(function(){throw e})}function ul(e){return e==="head"}function c0(e,t){var l=t,s=0;do{var d=l.nextSibling;if(e.removeChild(l),d&&d.nodeType===8)if(l=d.data,l==="/$"||l==="/&"){if(s===0){e.removeChild(d),si(t);return}s--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")s++;else if(l==="html")Os(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Os(l);for(var f=l.firstChild;f;){var w=f.nextSibling,E=f.nodeName;f[Ii]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&f.rel.toLowerCase()==="stylesheet"||l.removeChild(f),f=w}}else l==="body"&&Os(e.ownerDocument.body);l=d}while(l);si(t)}function d0(e,t){var l=e;e=0;do{var s=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||""),s&&s.nodeType===8)if(l=s.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=s}while(l)}function eh(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":eh(l),ld(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function PN(e,t,l,s){for(;e.nodeType===1;){var d=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){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=Sn(e.nextSibling),e===null)break}return null}function JN(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Sn(e.nextSibling),e===null))return null;return e}function f0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Sn(e.nextSibling),e===null))return null;return e}function th(e){return e.data==="$?"||e.data==="$~"}function nh(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function IN(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var s=function(){t(),l.removeEventListener("DOMContentLoaded",s)};l.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function Sn(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 ah=null;function h0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Sn(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function m0(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 p0(e,t,l){switch(t=Nu(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 Os(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ld(e)}var Nn=new Map,v0=new Set;function Eu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ka=J.d;J.d={f:WN,r:eE,D:tE,C:nE,L:aE,m:lE,X:iE,S:rE,M:sE};function WN(){var e=ka.f(),t=vu();return e||t}function eE(e){var t=Cr(e);t!==null&&t.tag===5&&t.type==="form"?Dg(t):ka.r(e)}var li=typeof document>"u"?null:document;function g0(e,t,l){var s=li;if(s&&typeof t=="string"&&t){var d=vn(t);d='link[rel="'+e+'"][href="'+d+'"]',typeof l=="string"&&(d+='[crossorigin="'+l+'"]'),v0.has(d)||(v0.add(d),e={rel:e,crossOrigin:l,href:t},s.querySelector(d)===null&&(t=s.createElement("link"),Dt(t,"link",e),_t(t),s.head.appendChild(t)))}}function tE(e){ka.D(e),g0("dns-prefetch",e,null)}function nE(e,t){ka.C(e,t),g0("preconnect",e,t)}function aE(e,t,l){ka.L(e,t,l);var s=li;if(s&&e&&t){var d='link[rel="preload"][as="'+vn(t)+'"]';t==="image"&&l&&l.imageSrcSet?(d+='[imagesrcset="'+vn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(d+='[imagesizes="'+vn(l.imageSizes)+'"]')):d+='[href="'+vn(e)+'"]';var f=d;switch(t){case"style":f=ri(e);break;case"script":f=ii(e)}Nn.has(f)||(e=x({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Nn.set(f,e),s.querySelector(d)!==null||t==="style"&&s.querySelector(zs(f))||t==="script"&&s.querySelector(Ls(f))||(t=s.createElement("link"),Dt(t,"link",e),_t(t),s.head.appendChild(t)))}}function lE(e,t){ka.m(e,t);var l=li;if(l&&e){var s=t&&typeof t.as=="string"?t.as:"script",d='link[rel="modulepreload"][as="'+vn(s)+'"][href="'+vn(e)+'"]',f=d;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=ii(e)}if(!Nn.has(f)&&(e=x({rel:"modulepreload",href:e},t),Nn.set(f,e),l.querySelector(d)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ls(f)))return}s=l.createElement("link"),Dt(s,"link",e),_t(s),l.head.appendChild(s)}}}function rE(e,t,l){ka.S(e,t,l);var s=li;if(s&&e){var d=_r(s).hoistableStyles,f=ri(e);t=t||"default";var w=d.get(f);if(!w){var E={loading:0,preload:null};if(w=s.querySelector(zs(f)))E.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Nn.get(f))&&lh(e,l);var M=w=s.createElement("link");_t(M),Dt(M,"link",e),M._p=new Promise(function($,Z){M.onload=$,M.onerror=Z}),M.addEventListener("load",function(){E.loading|=1}),M.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Cu(w,t,s)}w={type:"stylesheet",instance:w,count:1,state:E},d.set(f,w)}}}function iE(e,t){ka.X(e,t);var l=li;if(l&&e){var s=_r(l).hoistableScripts,d=ii(e),f=s.get(d);f||(f=l.querySelector(Ls(d)),f||(e=x({src:e,async:!0},t),(t=Nn.get(d))&&rh(e,t),f=l.createElement("script"),_t(f),Dt(f,"link",e),l.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},s.set(d,f))}}function sE(e,t){ka.M(e,t);var l=li;if(l&&e){var s=_r(l).hoistableScripts,d=ii(e),f=s.get(d);f||(f=l.querySelector(Ls(d)),f||(e=x({src:e,async:!0,type:"module"},t),(t=Nn.get(d))&&rh(e,t),f=l.createElement("script"),_t(f),Dt(f,"link",e),l.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},s.set(d,f))}}function y0(e,t,l,s){var d=(d=Se.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=ri(l.href),l=_r(d).hoistableStyles,s=l.get(t),s||(s={type:"style",instance:null,count:0,state:null},l.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=ri(l.href);var f=_r(d).hoistableStyles,w=f.get(e);if(w||(d=d.ownerDocument||d,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,w),(f=d.querySelector(zs(e)))&&!f._p&&(w.instance=f,w.state.loading=5),Nn.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},Nn.set(e,l),f||oE(d,e,l,w.state))),t&&s===null)throw Error(i(528,""));return w}if(t&&s!==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=ii(l),l=_r(d).hoistableScripts,s=l.get(t),s||(s={type:"script",instance:null,count:0,state:null},l.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function ri(e){return'href="'+vn(e)+'"'}function zs(e){return'link[rel="stylesheet"]['+e+"]"}function x0(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function oE(e,t,l,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),Dt(t,"link",l),_t(t),e.head.appendChild(t))}function ii(e){return'[src="'+vn(e)+'"]'}function Ls(e){return"script[async]"+e}function b0(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+vn(l.href)+'"]');if(s)return t.instance=s,_t(s),s;var d=x({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),_t(s),Dt(s,"style",d),Cu(s,l.precedence,e),t.instance=s;case"stylesheet":d=ri(l.href);var f=e.querySelector(zs(d));if(f)return t.state.loading|=4,t.instance=f,_t(f),f;s=x0(l),(d=Nn.get(d))&&lh(s,d),f=(e.ownerDocument||e).createElement("link"),_t(f);var w=f;return w._p=new Promise(function(E,M){w.onload=E,w.onerror=M}),Dt(f,"link",s),t.state.loading|=4,Cu(f,l.precedence,e),t.instance=f;case"script":return f=ii(l.src),(d=e.querySelector(Ls(f)))?(t.instance=d,_t(d),d):(s=l,(d=Nn.get(f))&&(s=x({},l),rh(s,d)),e=e.ownerDocument||e,d=e.createElement("script"),_t(d),Dt(d,"link",s),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&&(s=t.instance,t.state.loading|=4,Cu(s,l.precedence,e));return t.instance}function Cu(e,t,l){for(var s=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=s.length?s[s.length-1]:null,f=d,w=0;w<s.length;w++){var E=s[w];if(E.dataset.precedence===t)f=E;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 lh(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function rh(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var _u=null;function w0(e,t,l){if(_u===null){var s=new Map,d=_u=new Map;d.set(l,s)}else d=_u,s=d.get(l),s||(s=new Map,d.set(l,s));if(s.has(e))return s;for(s.set(e,null),l=l.getElementsByTagName(e),d=0;d<l.length;d++){var f=l[d];if(!(f[Ii]||f[Rt]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var w=f.getAttribute(t)||"";w=e+w;var E=s.get(w);E?E.push(f):s.set(w,[f])}}return s}function j0(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function uE(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 S0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function cE(e,t,l,s){if(l.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var d=ri(s.href),f=t.querySelector(zs(d));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Tu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=f,_t(f);return}f=t.ownerDocument||t,s=x0(s),(d=Nn.get(d))&&lh(s,d),f=f.createElement("link"),_t(f);var w=f;w._p=new Promise(function(E,M){w.onload=E,w.onerror=M}),Dt(f,"link",s),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=Tu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var ih=0;function dE(e,t){return e.stylesheets&&e.count===0&&Mu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var s=setTimeout(function(){if(e.stylesheets&&Mu(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&ih===0&&(ih=62500*VN());var d=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Mu(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>ih?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(d)}}:null}function Tu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Mu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ru=null;function Mu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ru=new Map,t.forEach(fE,e),Ru=null,Tu.call(e))}function fE(e,t){if(!(t.state.loading&4)){var l=Ru.get(e);if(l)var s=l.get(null);else{l=new Map,Ru.set(e,l);for(var d=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<d.length;f++){var w=d[f];(w.nodeName==="LINK"||w.getAttribute("media")!=="not all")&&(l.set(w.dataset.precedence,w),s=w)}s&&l.set(null,s)}d=t.instance,w=d.getAttribute("data-precedence"),f=l.get(w)||s,f===s&&l.set(null,d),l.set(w,d),this.count++,s=Tu.bind(this),d.addEventListener("load",s),d.addEventListener("error",s),f?f.parentNode.insertBefore(d,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(d,e.firstChild)),t.state.loading|=4}}var Us={$$typeof:R,Provider:null,Consumer:null,_currentValue:Y,_currentValue2:Y,_threadCount:0};function hE(e,t,l,s,d,f,w,E,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=ed(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ed(0),this.hiddenUpdates=ed(null),this.identifierPrefix=s,this.onUncaughtError=d,this.onCaughtError=f,this.onRecoverableError=w,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map}function N0(e,t,l,s,d,f,w,E,M,$,Z,I){return e=new hE(e,t,l,w,M,$,Z,I,E),t=1,f===!0&&(t|=24),f=an(3,null,null,t),e.current=f,f.stateNode=e,t=qd(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:s,isDehydrated:l,cache:t},Qd(f),e}function E0(e){return e?(e=Ur,e):Ur}function C0(e,t,l,s,d,f){d=E0(d),s.context===null?s.context=d:s.pendingContext=d,s=Ia(t),s.payload={element:l},f=f===void 0?null:f,f!==null&&(s.callback=f),l=Wa(e,s,t),l!==null&&(Zt(l,e,t),ps(l,e,t))}function _0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function sh(e,t){_0(e,t),(e=e.alternate)&&_0(e,t)}function T0(e){if(e.tag===13||e.tag===31){var t=Ql(e,67108864);t!==null&&Zt(t,e,67108864),sh(e,67108864)}}function R0(e){if(e.tag===13||e.tag===31){var t=un();t=td(t);var l=Ql(e,t);l!==null&&Zt(l,e,t),sh(e,t)}}var ku=!0;function mE(e,t,l,s){var d=z.T;z.T=null;var f=J.p;try{J.p=2,oh(e,t,l,s)}finally{J.p=f,z.T=d}}function pE(e,t,l,s){var d=z.T;z.T=null;var f=J.p;try{J.p=8,oh(e,t,l,s)}finally{J.p=f,z.T=d}}function oh(e,t,l,s){if(ku){var d=uh(s);if(d===null)Ff(e,t,s,Au,l),k0(e,s);else if(gE(d,e,t,l,s))s.stopPropagation();else if(k0(e,s),t&4&&-1<vE.indexOf(e)){for(;d!==null;){var f=Cr(d);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var w=Ul(f.pendingLanes);if(w!==0){var E=f;for(E.pendingLanes|=2,E.entangledLanes|=2;w;){var M=1<<31-tn(w);E.entanglements[1]|=M,w&=~M}In(f),(Ye&6)===0&&(mu=Wt()+500,ks(0))}}break;case 31:case 13:E=Ql(f,2),E!==null&&Zt(E,f,2),vu(),sh(f,2)}if(f=uh(s),f===null&&Ff(e,t,s,Au,l),f===d)break;d=f}d!==null&&s.stopPropagation()}else Ff(e,t,s,null,l)}}function uh(e){return e=cd(e),ch(e)}var Au=null;function ch(e){if(Au=null,e=Er(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 M0(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(t2()){case qp:return 2;case Hp:return 8;case wo:case n2:return 32;case Bp:return 268435456;default:return 32}default:return 32}}var dh=!1,cl=null,dl=null,fl=null,qs=new Map,Hs=new Map,hl=[],vE="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 k0(e,t){switch(e){case"focusin":case"focusout":cl=null;break;case"dragenter":case"dragleave":dl=null;break;case"mouseover":case"mouseout":fl=null;break;case"pointerover":case"pointerout":qs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hs.delete(t.pointerId)}}function Bs(e,t,l,s,d,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:l,eventSystemFlags:s,nativeEvent:f,targetContainers:[d]},t!==null&&(t=Cr(t),t!==null&&T0(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,d!==null&&t.indexOf(d)===-1&&t.push(d),e)}function gE(e,t,l,s,d){switch(t){case"focusin":return cl=Bs(cl,e,t,l,s,d),!0;case"dragenter":return dl=Bs(dl,e,t,l,s,d),!0;case"mouseover":return fl=Bs(fl,e,t,l,s,d),!0;case"pointerover":var f=d.pointerId;return qs.set(f,Bs(qs.get(f)||null,e,t,l,s,d)),!0;case"gotpointercapture":return f=d.pointerId,Hs.set(f,Bs(Hs.get(f)||null,e,t,l,s,d)),!0}return!1}function A0(e){var t=Er(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,Kp(e.priority,function(){R0(l)});return}}else if(t===31){if(t=m(l),t!==null){e.blockedOn=t,Kp(e.priority,function(){R0(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 Du(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=uh(e.nativeEvent);if(l===null){l=e.nativeEvent;var s=new l.constructor(l.type,l);ud=s,l.target.dispatchEvent(s),ud=null}else return t=Cr(l),t!==null&&T0(t),e.blockedOn=l,!1;t.shift()}return!0}function D0(e,t,l){Du(e)&&l.delete(t)}function yE(){dh=!1,cl!==null&&Du(cl)&&(cl=null),dl!==null&&Du(dl)&&(dl=null),fl!==null&&Du(fl)&&(fl=null),qs.forEach(D0),Hs.forEach(D0)}function Ou(e,t){e.blockedOn===t&&(e.blockedOn=null,dh||(dh=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,yE)))}var zu=null;function O0(e){zu!==e&&(zu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){zu===e&&(zu=null);for(var t=0;t<e.length;t+=3){var l=e[t],s=e[t+1],d=e[t+2];if(typeof s!="function"){if(ch(s||l)===null)continue;break}var f=Cr(l);f!==null&&(e.splice(t,3),t-=3,uf(f,{pending:!0,data:d,method:l.method,action:s},s,d))}}))}function si(e){function t(M){return Ou(M,e)}cl!==null&&Ou(cl,e),dl!==null&&Ou(dl,e),fl!==null&&Ou(fl,e),qs.forEach(t),Hs.forEach(t);for(var l=0;l<hl.length;l++){var s=hl[l];s.blockedOn===e&&(s.blockedOn=null)}for(;0<hl.length&&(l=hl[0],l.blockedOn===null);)A0(l),l.blockedOn===null&&hl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(s=0;s<l.length;s+=3){var d=l[s],f=l[s+1],w=d[Gt]||null;if(typeof f=="function")w||O0(l);else if(w){var E=null;if(f&&f.hasAttribute("formAction")){if(d=f,w=f[Gt]||null)E=w.formAction;else if(ch(d)!==null)continue}else E=w.action;typeof E=="function"?l[s+1]=E:(l.splice(s,3),s-=3),O0(l)}}}function z0(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(w){return d=w})},focusReset:"manual",scroll:"manual"})}function t(){d!==null&&(d(),d=null),s||setTimeout(l,20)}function l(){if(!s&&!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 s=!1,d=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){s=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),d!==null&&(d(),d=null)}}}function fh(e){this._internalRoot=e}Lu.prototype.render=fh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var l=t.current,s=un();C0(l,s,e,t,null,null)},Lu.prototype.unmount=fh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;C0(e.current,2,null,e,null,null),vu(),t[Nr]=null}};function Lu(e){this._internalRoot=e}Lu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Vp();e={blockedOn:null,target:e,priority:t};for(var l=0;l<hl.length&&t!==0&&t<hl[l].priority;l++);hl.splice(l,0,e),l===0&&A0(e)}};var L0=a.version;if(L0!=="19.2.3")throw Error(i(527,L0,"19.2.3"));J.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 xE={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Uu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Uu.isDisabled&&Uu.supportsFiber)try{Zi=Uu.inject(xE),en=Uu}catch{}}return Qs.createRoot=function(e,t){if(!o(e))throw Error(i(299));var l=!1,s="",d=Gg,f=Yg,w=Vg;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(d=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(w=t.onRecoverableError)),t=N0(e,1,!1,null,null,l,s,null,d,f,w,z0),e[Nr]=t.current,Xf(e),new fh(t)},Qs.hydrateRoot=function(e,t,l){if(!o(e))throw Error(i(299));var s=!1,d="",f=Gg,w=Yg,E=Vg,M=null;return l!=null&&(l.unstable_strictMode===!0&&(s=!0),l.identifierPrefix!==void 0&&(d=l.identifierPrefix),l.onUncaughtError!==void 0&&(f=l.onUncaughtError),l.onCaughtError!==void 0&&(w=l.onCaughtError),l.onRecoverableError!==void 0&&(E=l.onRecoverableError),l.formState!==void 0&&(M=l.formState)),t=N0(e,1,!0,t,l??null,s,d,M,f,w,E,z0),t.context=E0(null),l=t.current,s=un(),s=td(s),d=Ia(s),d.callback=null,Wa(l,d,s),l=s,t.current.lanes=l,Ji(t,l),In(t),e[Nr]=t.current,Xf(e),new Lu(t)},Qs.version="19.2.3",Qs}var nx;function sC(){if(nx)return gh.exports;nx=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=iC(),gh.exports}var oC=sC(),Gs={},ax;function uC(){if(ax)return Gs;ax=1,Object.defineProperty(Gs,"__esModule",{value:!0}),Gs.parse=h,Gs.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]*$/,o=Object.prototype.toString,c=(()=>{const b=function(){};return b.prototype=Object.create(null),b})();function h(b,j){const N=new c,S=b.length;if(S<2)return N;const C=(j==null?void 0:j.decode)||y;let _=0;do{const T=b.indexOf("=",_);if(T===-1)break;const R=b.indexOf(";",_),D=R===-1?S:R;if(T>D){_=b.lastIndexOf(";",T-1)+1;continue}const U=m(b,_,T),K=p(b,T,U),H=b.slice(U,K);if(N[H]===void 0){let q=m(b,T+1,D),G=p(b,D,q);const ee=C(b.slice(q,G));N[H]=ee}_=D+1}while(_<S);return N}function m(b,j,N){do{const S=b.charCodeAt(j);if(S!==32&&S!==9)return j}while(++j<N);return N}function p(b,j,N){for(;j>N;){const S=b.charCodeAt(--j);if(S!==32&&S!==9)return j+1}return N}function g(b,j,N){const S=(N==null?void 0:N.encode)||encodeURIComponent;if(!n.test(b))throw new TypeError(`argument name is invalid: ${b}`);const C=S(j);if(!a.test(C))throw new TypeError(`argument val is invalid: ${j}`);let _=b+"="+C;if(!N)return _;if(N.maxAge!==void 0){if(!Number.isInteger(N.maxAge))throw new TypeError(`option maxAge is invalid: ${N.maxAge}`);_+="; Max-Age="+N.maxAge}if(N.domain){if(!r.test(N.domain))throw new TypeError(`option domain is invalid: ${N.domain}`);_+="; Domain="+N.domain}if(N.path){if(!i.test(N.path))throw new TypeError(`option path is invalid: ${N.path}`);_+="; Path="+N.path}if(N.expires){if(!x(N.expires)||!Number.isFinite(N.expires.valueOf()))throw new TypeError(`option expires is invalid: ${N.expires}`);_+="; Expires="+N.expires.toUTCString()}if(N.httpOnly&&(_+="; HttpOnly"),N.secure&&(_+="; Secure"),N.partitioned&&(_+="; Partitioned"),N.priority)switch(typeof N.priority=="string"?N.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: ${N.priority}`)}if(N.sameSite)switch(typeof N.sameSite=="string"?N.sameSite.toLowerCase():N.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: ${N.sameSite}`)}return _}function y(b){if(b.indexOf("%")===-1)return b;try{return decodeURIComponent(b)}catch{return b}}function x(b){return o.call(b)==="[object Date]"}return Gs}uC();var lx="popstate";function cC(n={}){function a(o,c){let{pathname:h="/",search:m="",hash:p=""}=gr(o.location.hash.substring(1));return!h.startsWith("/")&&!h.startsWith(".")&&(h="/"+h),Wh("",{pathname:h,search:m,hash:p},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function r(o,c){let h=o.document.querySelector("base"),m="";if(h&&h.getAttribute("href")){let p=o.location.href,g=p.indexOf("#");m=g===-1?p:p.slice(0,g)}return m+"#"+(typeof c=="string"?c:eo(c))}function i(o,c){Tn(o.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(c)})`)}return fC(a,r,i,n)}function at(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function Tn(n,a){if(!n){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function dC(){return Math.random().toString(36).substring(2,10)}function rx(n,a){return{usr:n.state,key:n.key,idx:a}}function Wh(n,a,r=null,i){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof a=="string"?gr(a):a,state:r,key:a&&a.key||i||dC()}}function eo({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 gr(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 fC(n,a,r,i={}){let{window:o=document.defaultView,v5Compat:c=!1}=i,h=o.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 b(C,_){m="PUSH";let T=Wh(S.location,C,_);r&&r(T,C),g=y()+1;let R=rx(T,g),D=S.createHref(T);try{h.pushState(R,"",D)}catch(U){if(U instanceof DOMException&&U.name==="DataCloneError")throw U;o.location.assign(D)}c&&p&&p({action:m,location:S.location,delta:1})}function j(C,_){m="REPLACE";let T=Wh(S.location,C,_);r&&r(T,C),g=y();let R=rx(T,g),D=S.createHref(T);h.replaceState(R,"",D),c&&p&&p({action:m,location:S.location,delta:0})}function N(C){return hC(C)}let S={get action(){return m},get location(){return n(o,h)},listen(C){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(lx,x),p=C,()=>{o.removeEventListener(lx,x),p=null}},createHref(C){return a(o,C)},createURL:N,encodeLocation(C){let _=N(C);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:b,replace:j,go(C){return h.go(C)}};return S}function hC(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:eo(n);return i=i.replace(/ $/,"%20"),!a&&i.startsWith("//")&&(i=r+i),new URL(i,r)}function Rb(n,a,r="/"){return mC(n,a,r,!1)}function mC(n,a,r,i){let o=typeof a=="string"?gr(a):a,c=qa(o.pathname||"/",r);if(c==null)return null;let h=Mb(n);pC(h);let m=null;for(let p=0;m==null&&p<h.length;++p){let g=CC(c);m=NC(h[p],g,i)}return m}function Mb(n,a=[],r=[],i=""){let o=(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=La([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}".`),Mb(c.children,a,y,g)),!(c.path==null&&!c.index)&&a.push({path:g,score:jC(g,c.index),routesMeta:y})};return n.forEach((c,h)=>{var m;if(c.path===""||!((m=c.path)!=null&&m.includes("?")))o(c,h);else for(let p of kb(c.path))o(c,h,p)}),a}function kb(n){let a=n.split("/");if(a.length===0)return[];let[r,...i]=a,o=r.endsWith("?"),c=r.replace(/\?$/,"");if(i.length===0)return o?[c,""]:[c];let h=kb(i.join("/")),m=[];return m.push(...h.map(p=>p===""?c:[c,p].join("/"))),o&&m.push(...h),m.map(p=>n.startsWith("/")&&p===""?"/":p)}function pC(n){n.sort((a,r)=>a.score!==r.score?r.score-a.score:SC(a.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var vC=/^:[\w-]+$/,gC=3,yC=2,xC=1,bC=10,wC=-2,ix=n=>n==="*";function jC(n,a){let r=n.split("/"),i=r.length;return r.some(ix)&&(i+=wC),a&&(i+=yC),r.filter(o=>!ix(o)).reduce((o,c)=>o+(vC.test(c)?gC:c===""?xC:bC),i)}function SC(n,a){return n.length===a.length&&n.slice(0,-1).every((i,o)=>i===a[o])?n[n.length-1]-a[a.length-1]:0}function NC(n,a,r=!1){let{routesMeta:i}=n,o={},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=sc({path:p.relativePath,caseSensitive:p.caseSensitive,end:g},y),b=p.route;if(!x&&g&&r&&!i[i.length-1].route.index&&(x=sc({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},y)),!x)return null;Object.assign(o,x.params),h.push({params:o,pathname:La([c,x.pathname]),pathnameBase:MC(La([c,x.pathnameBase])),route:b}),x.pathnameBase!=="/"&&(c=La([c,x.pathnameBase]))}return h}function sc(n,a){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,i]=EC(n.path,n.caseSensitive,n.end),o=a.match(r);if(!o)return null;let c=o[0],h=c.replace(/(.)\/+$/,"$1"),m=o.slice(1);return{params:i.reduce((g,{paramName:y,isOptional:x},b)=>{if(y==="*"){let N=m[b]||"";h=c.slice(0,c.length-N.length).replace(/(.)\/+$/,"$1")}const j=m[b];return x&&!j?g[y]=void 0:g[y]=(j||"").replace(/%2F/g,"/"),g},{}),pathname:c,pathnameBase:h,pattern:n}}function EC(n,a=!1,r=!0){Tn(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=[],o="^"+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:"*"}),o+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":n!==""&&n!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,a?void 0:"i"),i]}function CC(n){try{return n.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return Tn(!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 qa(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 _C(n,a="/"){let{pathname:r,search:i="",hash:o=""}=typeof n=="string"?gr(n):n;return{pathname:r?r.startsWith("/")?r:TC(r,a):a,search:kC(i),hash:AC(o)}}function TC(n,a){let r=a.replace(/\/+$/,"").split("/");return n.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function wh(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 RC(n){return n.filter((a,r)=>r===0||a.route.path&&a.route.path.length>0)}function Rm(n){let a=RC(n);return a.map((r,i)=>i===a.length-1?r.pathname:r.pathnameBase)}function Mm(n,a,r,i=!1){let o;typeof n=="string"?o=gr(n):(o={...n},at(!o.pathname||!o.pathname.includes("?"),wh("?","pathname","search",o)),at(!o.pathname||!o.pathname.includes("#"),wh("#","pathname","hash",o)),at(!o.search||!o.search.includes("#"),wh("#","search","hash",o)));let c=n===""||o.pathname==="",h=c?"/":o.pathname,m;if(h==null)m=r;else{let x=a.length-1;if(!i&&h.startsWith("..")){let b=h.split("/");for(;b[0]==="..";)b.shift(),x-=1;o.pathname=b.join("/")}m=x>=0?a[x]:"/"}let p=_C(o,m),g=h&&h!=="/"&&h.endsWith("/"),y=(c||h===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(g||y)&&(p.pathname+="/"),p}var La=n=>n.join("/").replace(/\/\/+/g,"/"),MC=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),kC=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,AC=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function DC(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var Ab=["POST","PUT","PATCH","DELETE"];new Set(Ab);var OC=["GET",...Ab];new Set(OC);var zi=v.createContext(null);zi.displayName="DataRouter";var Ec=v.createContext(null);Ec.displayName="DataRouterState";var Db=v.createContext({isTransitioning:!1});Db.displayName="ViewTransition";var zC=v.createContext(new Map);zC.displayName="Fetchers";var LC=v.createContext(null);LC.displayName="Await";var $n=v.createContext(null);$n.displayName="Navigation";var uo=v.createContext(null);uo.displayName="Location";var Qn=v.createContext({outlet:null,matches:[],isDataRoute:!1});Qn.displayName="Route";var km=v.createContext(null);km.displayName="RouteError";function UC(n,{relative:a}={}){at(Li(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=v.useContext($n),{hash:o,pathname:c,search:h}=co(n,{relative:a}),m=c;return r!=="/"&&(m=c==="/"?r:La([r,c])),i.createHref({pathname:m,search:h,hash:o})}function Li(){return v.useContext(uo)!=null}function $a(){return at(Li(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(uo).location}var Ob="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function zb(n){v.useContext($n).static||v.useLayoutEffect(n)}function Lb(){let{isDataRoute:n}=v.useContext(Qn);return n?PC():qC()}function qC(){at(Li(),"useNavigate() may be used only in the context of a <Router> component.");let n=v.useContext(zi),{basename:a,navigator:r}=v.useContext($n),{matches:i}=v.useContext(Qn),{pathname:o}=$a(),c=JSON.stringify(Rm(i)),h=v.useRef(!1);return zb(()=>{h.current=!0}),v.useCallback((p,g={})=>{if(Tn(h.current,Ob),!h.current)return;if(typeof p=="number"){r.go(p);return}let y=Mm(p,JSON.parse(c),o,g.relative==="path");n==null&&a!=="/"&&(y.pathname=y.pathname==="/"?a:La([a,y.pathname])),(g.replace?r.replace:r.push)(y,g.state,g)},[a,r,c,o,n])}v.createContext(null);function Qa(){let{matches:n}=v.useContext(Qn),a=n[n.length-1];return a?a.params:{}}function co(n,{relative:a}={}){let{matches:r}=v.useContext(Qn),{pathname:i}=$a(),o=JSON.stringify(Rm(r));return v.useMemo(()=>Mm(n,JSON.parse(o),i,a==="path"),[n,o,i,a])}function HC(n,a){return Ub(n,a)}function Ub(n,a,r,i){var _;at(Li(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=v.useContext($n),{matches:c}=v.useContext(Qn),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||"";qb(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=$a(),b;if(a){let T=typeof a=="string"?gr(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.`),b=T}else b=x;let j=b.pathname||"/",N=j;if(g!=="/"){let T=g.replace(/^\//,"").split("/");N="/"+j.replace(/^\//,"").split("/").slice(T.length).join("/")}let S=Rb(n,{pathname:N});Tn(y||S!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),Tn(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 "${b.pathname}${b.search}${b.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=YC(S&&S.map(T=>Object.assign({},T,{params:Object.assign({},m,T.params),pathname:La([g,o.encodeLocation?o.encodeLocation(T.pathname).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?g:La([g,o.encodeLocation?o.encodeLocation(T.pathnameBase).pathname:T.pathnameBase])})),c,r,i);return a&&C?v.createElement(uo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},C):C}function BC(){let n=ZC(),a=DC(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)",o={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:o},r):null,h)}var $C=v.createElement(BC,null),QC=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(Qn.Provider,{value:this.props.routeContext},v.createElement(km.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function GC({routeContext:n,match:a,children:r}){let i=v.useContext(zi);return i&&i.static&&i.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=a.route.id),v.createElement(Qn.Provider,{value:n},r)}function YC(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 o=n,c=r==null?void 0:r.errors;if(c!=null){let p=o.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(",")}`),o=o.slice(0,Math.min(o.length,p+1))}let h=!1,m=-1;if(r)for(let p=0;p<o.length;p++){let g=o[p];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(m=p),g.route.id){let{loaderData:y,errors:x}=r,b=g.route.loader&&!y.hasOwnProperty(g.route.id)&&(!x||x[g.route.id]===void 0);if(g.route.lazy||b){h=!0,m>=0?o=o.slice(0,m+1):o=[o[0]];break}}}return o.reduceRight((p,g,y)=>{let x,b=!1,j=null,N=null;r&&(x=c&&g.route.id?c[g.route.id]:void 0,j=g.route.errorElement||$C,h&&(m<0&&y===0?(qb("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,N=null):m===y&&(b=!0,N=g.route.hydrateFallbackElement||null)));let S=a.concat(o.slice(0,y+1)),C=()=>{let _;return x?_=j:b?_=N:g.route.Component?_=v.createElement(g.route.Component,null):g.route.element?_=g.route.element:_=p,v.createElement(GC,{match:g,routeContext:{outlet:p,matches:S,isDataRoute:r!=null},children:_})};return r&&(g.route.ErrorBoundary||g.route.errorElement||y===0)?v.createElement(QC,{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 VC(n){let a=v.useContext(zi);return at(a,Am(n)),a}function KC(n){let a=v.useContext(Ec);return at(a,Am(n)),a}function XC(n){let a=v.useContext(Qn);return at(a,Am(n)),a}function Dm(n){let a=XC(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 FC(){return Dm("useRouteId")}function ZC(){var i;let n=v.useContext(km),a=KC("useRouteError"),r=Dm("useRouteError");return n!==void 0?n:(i=a.errors)==null?void 0:i[r]}function PC(){let{router:n}=VC("useNavigate"),a=Dm("useNavigate"),r=v.useRef(!1);return zb(()=>{r.current=!0}),v.useCallback(async(o,c={})=>{Tn(r.current,Ob),r.current&&(typeof o=="number"?n.navigate(o):await n.navigate(o,{fromRouteId:a,...c}))},[n,a])}var sx={};function qb(n,a,r){!a&&!sx[n]&&(sx[n]=!0,Tn(!1,r))}v.memo(JC);function JC({routes:n,future:a,state:r}){return Ub(n,void 0,r,a)}function Wn({to:n,replace:a,state:r,relative:i}){at(Li(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=v.useContext($n);Tn(!o,"<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(Qn),{pathname:h}=$a(),m=Lb(),p=Mm(n,Rm(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 cn(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 IC({basename:n="/",children:a=null,location:r,navigationType:i="POP",navigator:o,static:c=!1}){at(!Li(),"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:o,static:c,future:{}}),[h,o,c]);typeof r=="string"&&(r=gr(r));let{pathname:p="/",search:g="",hash:y="",state:x=null,key:b="default"}=r,j=v.useMemo(()=>{let N=qa(p,h);return N==null?null:{location:{pathname:N,search:g,hash:y,state:x,key:b},navigationType:i}},[h,p,g,y,x,b,i]);return Tn(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($n.Provider,{value:m},v.createElement(uo.Provider,{children:a,value:j}))}function WC({children:n,location:a}){return HC(em(n),a)}function em(n,a=[]){let r=[];return v.Children.forEach(n,(i,o)=>{if(!v.isValidElement(i))return;let c=[...a,o];if(i.type===v.Fragment){r.push.apply(r,em(i.props.children,c));return}at(i.type===cn,`[${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=em(i.props.children,c)),r.push(h)}),r}var Iu="get",Wu="application/x-www-form-urlencoded";function Cc(n){return n!=null&&typeof n.tagName=="string"}function e_(n){return Cc(n)&&n.tagName.toLowerCase()==="button"}function t_(n){return Cc(n)&&n.tagName.toLowerCase()==="form"}function n_(n){return Cc(n)&&n.tagName.toLowerCase()==="input"}function a_(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function l_(n,a){return n.button===0&&(!a||a==="_self")&&!a_(n)}var Bu=null;function r_(){if(Bu===null)try{new FormData(document.createElement("form"),0),Bu=!1}catch{Bu=!0}return Bu}var i_=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function jh(n){return n!=null&&!i_.has(n)?(Tn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Wu}"`),null):n}function s_(n,a){let r,i,o,c,h;if(t_(n)){let m=n.getAttribute("action");i=m?qa(m,a):null,r=n.getAttribute("method")||Iu,o=jh(n.getAttribute("enctype"))||Wu,c=new FormData(n)}else if(e_(n)||n_(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?qa(p,a):null,r=n.getAttribute("formmethod")||m.getAttribute("method")||Iu,o=jh(n.getAttribute("formenctype"))||jh(m.getAttribute("enctype"))||Wu,c=new FormData(m,n),!r_()){let{name:g,type:y,value:x}=n;if(y==="image"){let b=g?`${g}.`:"";c.append(`${b}x`,"0"),c.append(`${b}y`,"0")}else g&&c.append(g,x)}}else{if(Cc(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Iu,i=null,o=Wu,h=n}return c&&o==="text/plain"&&(h=c,c=void 0),{action:i,method:r.toLowerCase(),encType:o,formData:c,body:h}}function Om(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}async function o_(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 u_(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 c_(n,a,r){let i=await Promise.all(n.map(async o=>{let c=a.routes[o.route.id];if(c){let h=await o_(c,r);return h.links?h.links():[]}return[]}));return m_(i.flat(1).filter(u_).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function ox(n,a,r,i,o,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 b=p.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.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 b=="boolean")return b}return!0}):[]}function d_(n,a,{includeHydrateFallback:r}={}){return f_(n.map(i=>{let o=a.routes[i.route.id];if(!o)return[];let c=[o.module];return o.clientActionModule&&(c=c.concat(o.clientActionModule)),o.clientLoaderModule&&(c=c.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(c=c.concat(o.hydrateFallbackModule)),o.imports&&(c=c.concat(o.imports)),c}).flat(1))}function f_(n){return[...new Set(n)]}function h_(n){let a={},r=Object.keys(n).sort();for(let i of r)a[i]=n[i];return a}function m_(n,a){let r=new Set;return new Set(a),n.reduce((i,o)=>{let c=JSON.stringify(h_(o));return r.has(c)||(r.add(c),i.push({key:c,link:o})),i},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var p_=new Set([100,101,204,205]);function v_(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&&qa(r.pathname,a)==="/"?r.pathname=`${a.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function Hb(){let n=v.useContext(zi);return Om(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function g_(){let n=v.useContext(Ec);return Om(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var zm=v.createContext(void 0);zm.displayName="FrameworkContext";function Bb(){let n=v.useContext(zm);return Om(n,"You must render this element inside a <HydratedRouter> element"),n}function y_(n,a){let r=v.useContext(zm),[i,o]=v.useState(!1),[c,h]=v.useState(!1),{onFocus:m,onBlur:p,onMouseEnter:g,onMouseLeave:y,onTouchStart:x}=a,b=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 b.current&&C.observe(b.current),()=>{C.disconnect()}}},[n]),v.useEffect(()=>{if(i){let S=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(S)}}},[i]);let j=()=>{o(!0)},N=()=>{o(!1),h(!1)};return r?n!=="intent"?[c,b,{}]:[c,b,{onFocus:Ys(m,j),onBlur:Ys(p,N),onMouseEnter:Ys(g,j),onMouseLeave:Ys(y,N),onTouchStart:Ys(x,j)}]:[!1,b,{}]}function Ys(n,a){return r=>{n&&n(r),r.defaultPrevented||a(r)}}function x_({page:n,...a}){let{router:r}=Hb(),i=v.useMemo(()=>Rb(r.routes,n,r.basename),[r.routes,n,r.basename]);return i?v.createElement(w_,{page:n,matches:i,...a}):null}function b_(n){let{manifest:a,routeModules:r}=Bb(),[i,o]=v.useState([]);return v.useEffect(()=>{let c=!1;return c_(n,a,r).then(h=>{c||o(h)}),()=>{c=!0}},[n,a,r]),i}function w_({page:n,matches:a,...r}){let i=$a(),{manifest:o,routeModules:c}=Bb(),{basename:h}=Hb(),{loaderData:m,matches:p}=g_(),g=v.useMemo(()=>ox(n,a,p,o,i,"data"),[n,a,p,o,i]),y=v.useMemo(()=>ox(n,a,p,o,i,"assets"),[n,a,p,o,i]),x=v.useMemo(()=>{if(n===i.pathname+i.search+i.hash)return[];let N=new Set,S=!1;if(a.forEach(_=>{var R;let T=o.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:N.add(_.route.id))}),N.size===0)return[];let C=v_(n,h);return S&&N.size>0&&C.searchParams.set("_routes",a.filter(_=>N.has(_.route.id)).map(_=>_.route.id).join(",")),[C.pathname+C.search]},[h,m,i,o,g,a,n,c]),b=v.useMemo(()=>d_(y,o),[y,o]),j=b_(y);return v.createElement(v.Fragment,null,x.map(N=>v.createElement("link",{key:N,rel:"prefetch",as:"fetch",href:N,...r})),b.map(N=>v.createElement("link",{key:N,rel:"modulepreload",href:N,...r})),j.map(({key:N,link:S})=>v.createElement("link",{key:N,...S})))}function j_(...n){return a=>{n.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a)})}}var $b=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{$b&&(window.__reactRouterVersion="7.6.1")}catch{}function S_({basename:n,children:a,window:r}){let i=v.useRef();i.current==null&&(i.current=cC({window:r,v5Compat:!0}));let o=i.current,[c,h]=v.useState({action:o.action,location:o.location}),m=v.useCallback(p=>{v.startTransition(()=>h(p))},[h]);return v.useLayoutEffect(()=>o.listen(m),[o,m]),v.createElement(IC,{basename:n,children:a,location:c.location,navigationType:c.action,navigator:o})}var Qb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Qt=v.forwardRef(function({onClick:a,discover:r="render",prefetch:i="none",relative:o,reloadDocument:c,replace:h,state:m,target:p,to:g,preventScrollReset:y,viewTransition:x,...b},j){let{basename:N}=v.useContext($n),S=typeof g=="string"&&Qb.test(g),C,_=!1;if(typeof g=="string"&&S&&(C=g,$b))try{let G=new URL(window.location.href),ee=g.startsWith("//")?new URL(G.protocol+g):new URL(g),ue=qa(ee.pathname,N);ee.origin===G.origin&&ue!=null?g=ue+ee.search+ee.hash:_=!0}catch{Tn(!1,`<Link to="${g}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let T=UC(g,{relative:o}),[R,D,U]=y_(i,b),K=__(g,{replace:h,state:m,target:p,preventScrollReset:y,relative:o,viewTransition:x});function H(G){a&&a(G),G.defaultPrevented||K(G)}let q=v.createElement("a",{...b,...U,href:C||T,onClick:_||c?a:H,ref:j_(j,D),target:p,"data-discover":!S&&r==="render"?"true":void 0});return R&&!S?v.createElement(v.Fragment,null,q,v.createElement(x_,{page:T})):q});Qt.displayName="Link";var N_=v.forwardRef(function({"aria-current":a="page",caseSensitive:r=!1,className:i="",end:o=!1,style:c,to:h,viewTransition:m,children:p,...g},y){let x=co(h,{relative:g.relative}),b=$a(),j=v.useContext(Ec),{navigator:N,basename:S}=v.useContext($n),C=j!=null&&A_(x)&&m===!0,_=N.encodeLocation?N.encodeLocation(x).pathname:x.pathname,T=b.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=qa(R,S)||R);const D=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let U=T===_||!o&&T.startsWith(_)&&T.charAt(D)==="/",K=R!=null&&(R===_||!o&&R.startsWith(_)&&R.charAt(_.length)==="/"),H={isActive:U,isPending:K,isTransitioning:C},q=U?a:void 0,G;typeof i=="function"?G=i(H):G=[i,U?"active":null,K?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let ee=typeof c=="function"?c(H):c;return v.createElement(Qt,{...g,"aria-current":q,className:G,ref:y,style:ee,to:h,viewTransition:m},typeof p=="function"?p(H):p)});N_.displayName="NavLink";var E_=v.forwardRef(({discover:n="render",fetcherKey:a,navigate:r,reloadDocument:i,replace:o,state:c,method:h=Iu,action:m,onSubmit:p,relative:g,preventScrollReset:y,viewTransition:x,...b},j)=>{let N=M_(),S=k_(m,{relative:g}),C=h.toLowerCase()==="get"?"get":"post",_=typeof m=="string"&&Qb.test(m),T=R=>{if(p&&p(R),R.defaultPrevented)return;R.preventDefault();let D=R.nativeEvent.submitter,U=(D==null?void 0:D.getAttribute("formmethod"))||h;N(D||R.currentTarget,{fetcherKey:a,method:U,navigate:r,replace:o,state:c,relative:g,preventScrollReset:y,viewTransition:x})};return v.createElement("form",{ref:j,method:C,action:S,onSubmit:i?p:T,...b,"data-discover":!_&&n==="render"?"true":void 0})});E_.displayName="Form";function C_(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Gb(n){let a=v.useContext(zi);return at(a,C_(n)),a}function __(n,{target:a,replace:r,state:i,preventScrollReset:o,relative:c,viewTransition:h}={}){let m=Lb(),p=$a(),g=co(n,{relative:c});return v.useCallback(y=>{if(l_(y,a)){y.preventDefault();let x=r!==void 0?r:eo(p)===eo(g);m(n,{replace:x,state:i,preventScrollReset:o,relative:c,viewTransition:h})}},[p,m,g,r,i,a,n,o,c,h])}var T_=0,R_=()=>`__${String(++T_)}__`;function M_(){let{router:n}=Gb("useSubmit"),{basename:a}=v.useContext($n),r=FC();return v.useCallback(async(i,o={})=>{let{action:c,method:h,encType:m,formData:p,body:g}=s_(i,a);if(o.navigate===!1){let y=o.fetcherKey||R_();await n.fetch(y,r,o.action||c,{preventScrollReset:o.preventScrollReset,formData:p,body:g,formMethod:o.method||h,formEncType:o.encType||m,flushSync:o.flushSync})}else await n.navigate(o.action||c,{preventScrollReset:o.preventScrollReset,formData:p,body:g,formMethod:o.method||h,formEncType:o.encType||m,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})},[n,a,r])}function k_(n,{relative:a}={}){let{basename:r}=v.useContext($n),i=v.useContext(Qn);at(i,"useFormAction must be used inside a RouteContext");let[o]=i.matches.slice(-1),c={...co(n||".",{relative:a})},h=$a();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===".")&&o.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(c.pathname=c.pathname==="/"?r:La([r,c.pathname])),eo(c)}function A_(n,a={}){let r=v.useContext(Db);at(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Gb("useViewTransitionState"),o=co(n,{relative:a.relative});if(!r.isTransitioning)return!1;let c=qa(r.currentLocation.pathname,i)||r.currentLocation.pathname,h=qa(r.nextLocation.pathname,i)||r.nextLocation.pathname;return sc(o.pathname,h)!=null||sc(o.pathname,c)!=null}[...p_];var fo=Tb();const Yb=hb(fo);/**
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 D_=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),O_=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,i)=>i?i.toUpperCase():r.toLowerCase()),ux=n=>{const a=O_(n);return a.charAt(0).toUpperCase()+a.slice(1)},Vb=(...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 z_={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 L_=v.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:o="",children:c,iconNode:h,...m},p)=>v.createElement("svg",{ref:p,...z_,width:a,height:a,stroke:n,strokeWidth:i?Number(r)*24/Number(a):r,className:Vb("lucide",o),...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 De=(n,a)=>{const r=v.forwardRef(({className:i,...o},c)=>v.createElement(L_,{ref:c,iconNode:a,className:Vb(`lucide-${D_(ux(n))}`,`lucide-${n}`,i),...o}));return r.displayName=ux(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 U_=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Kb=De("activity",U_);/**
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 q_=[["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"}]],H_=De("archive",q_);/**
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 B_=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],$_=De("arrow-left",B_);/**
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 Q_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]],G_=De("ban",Q_);/**
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 Y_=[["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"}]],V_=De("bell",Y_);/**
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 K_=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],Xb=De("boxes",K_);/**
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 X_=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Fb=De("chevron-down",X_);/**
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 F_=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ho=De("chevron-left",F_);/**
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 Z_=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],yr=De("chevron-right",Z_);/**
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 P_=[["path",{d:"m7 20 5-5 5 5",key:"13a0gw"}],["path",{d:"m7 4 5 5 5-5",key:"1kwcof"}]],J_=De("chevrons-down-up",P_);/**
122
+ * @license lucide-react v0.488.0 - ISC
123
+ *
124
+ * This source code is licensed under the ISC license.
125
+ * See the LICENSE file in the root directory of this source tree.
126
+ */const I_=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],W_=De("chevrons-up-down",I_);/**
127
+ * @license lucide-react v0.488.0 - ISC
128
+ *
129
+ * This source code is licensed under the ISC license.
130
+ * See the LICENSE file in the root directory of this source tree.
131
+ */const eT=[["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"}]],tT=De("circle-alert",eT);/**
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 nT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Rl=De("circle-check",nT);/**
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 aT=[["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"}]],Ui=De("circle-x",aT);/**
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 lT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],xr=De("clock",lT);/**
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 rT=[["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"}]],Zb=De("columns-3",rT);/**
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 iT=[["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"}]],sT=De("database",iT);/**
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 oT=[["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"}]],uT=De("folder-open",oT);/**
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 cT=[["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"}]],dT=De("git-branch",cT);/**
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 fT=[["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"}]],hT=De("inbox",fT);/**
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 mT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Pb=De("info",mT);/**
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 pT=[["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"}]],Jb=De("key",pT);/**
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 vT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Rn=De("loader-circle",vT);/**
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 gT=[["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"}]],yT=De("mail-warning",gT);/**
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 xT=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],Ib=De("moon",xT);/**
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 bT=[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]],Wb=De("pause",bT);/**
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 wT=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],Lm=De("play",wT);/**
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 jT=[["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"}]],mo=De("refresh-cw",jT);/**
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 ST=[["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"}]],NT=De("repeat",ST);/**
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 ET=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],e1=De("search",ET);/**
222
+ * @license lucide-react v0.488.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 CT=[["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"}]],_T=De("settings",CT);/**
227
+ * @license lucide-react v0.488.0 - ISC
228
+ *
229
+ * This source code is licensed under the ISC license.
230
+ * See the LICENSE file in the root directory of this source tree.
231
+ */const TT=[["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"}]],RT=De("shield",TT);/**
232
+ * @license lucide-react v0.488.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 MT=[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],kT=De("square-terminal",MT);/**
237
+ * @license lucide-react v0.488.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 AT=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],DT=De("square",AT);/**
242
+ * @license lucide-react v0.488.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 OT=[["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"}]],_c=De("table",OT);/**
247
+ * @license lucide-react v0.488.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 zT=[["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"}]],LT=De("timer",zT);/**
252
+ * @license lucide-react v0.488.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 UT=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],qT=De("trash-2",UT);/**
257
+ * @license lucide-react v0.488.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 HT=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],BT=De("zap",HT),$T="";async function rt(n,a){const r=await fetch(`${$T}${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 Um(){return await rt("/api/config")}async function QT(){return await rt("/api/sandboxes")}async function GT(n,a){return await rt(`/api/db/${n}/query`,{method:"POST",body:JSON.stringify({query:a})})}async function YT(n){return await rt(`/api/db/${n}/tables`)}async function VT(n,a,r,i){return await rt(`/api/db/${n}/tables/${a}?limit=${r}&offset=${i}`)}async function KT(n){return await rt(`/api/db/${n}/schema`)}async function XT(n,a=20,r=0,i=""){const o=new URLSearchParams({limit:String(a),offset:String(r)});return i&&o.set("search",i),await rt(`/api/state/${n}/entries?${o.toString()}`)}async function FT(n,a=20,r=0,i=""){const o=new URLSearchParams({limit:String(a),offset:String(r)});return i&&o.set("search",i),await rt(`/api/cache/${n}/entries?${o.toString()}`)}async function ZT(n){return await rt(`/api/queue/${n}/metrics`)}async function PT(n,a=10){return await rt(`/api/queue/${n}/messages?limit=${a}`)}async function JT(n,a=20,r=0,i,o){const c=new URLSearchParams({limit:String(a),offset:String(r)});return i&&c.set("status",i),o&&c.set("since",o),await rt(`/api/workflow/${n}/executions?${c.toString()}`)}async function IT(n,a){return await rt(`/api/workflow/${n}/executions/${a}`)}async function WT(n,a=20,r=0){return await rt(`/api/timer/${n}/entries?limit=${a}&offset=${r}`)}async function eR(n){return await rt(`/api/timer/${n}/metrics`)}async function tR(n,a=20){return await rt(`/api/timer/${n}/executions?limit=${a}`)}async function nR(n,a=20){return await rt(`/api/cron/${n}/executions?limit=${a}`)}async function aR(n){return await rt(`/api/cron/${n}/trigger`,{method:"POST"})}async function lR(){return await rt("/api/auth/tables")}async function rR(n,a,r){return await rt(`/api/auth/tables/${n}?limit=${a}&offset=${r}`)}async function iR(){return await rt("/api/auth/schema")}async function sR(n){return await rt("/api/auth/query",{method:"POST",body:JSON.stringify({query:n})})}async function oR(){return await rt("/api/auth/settings")}async function uR(n){return await rt("/api/auth/settings",{method:"PATCH",body:JSON.stringify(n)})}async function cR(n,a=20,r=0){return await rt(`/api/fs/${n}/entries?limit=${a}&offset=${r}`)}function t1(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=t1(n[a]))&&(i&&(i+=" "),i+=r);else for(a in n)n[a]&&(i&&(i+=" "),i+=a);return i}function dR(){for(var n,a,r=0,i="";r<arguments.length;)(n=arguments[r++])&&(a=t1(n))&&(i&&(i+=" "),i+=a);return i}const qm="-",fR=n=>{const a=mR(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:o=>{const c=o.split(qm);return c[0]===""&&c.length!==1&&c.shift(),n1(c,a)||hR(o)},getConflictingClassGroupIds:(o,c)=>{const h=r[o]||[];return c&&i[o]?[...h,...i[o]]:h}}},n1=(n,a)=>{var r;if(n.length===0)return a.classGroupId;const i=n[0],o=a.nextPart.get(i),c=o?n1(n.slice(1),o):void 0;if(c)return c;if(a.validators.length===0)return;const h=n.join(qm);return(r=a.validators.find(({validator:m})=>m(h)))==null?void 0:r.classGroupId},cx=/^\[(.+)\]$/,hR=n=>{if(cx.test(n)){const a=cx.exec(n)[1],r=a==null?void 0:a.substring(0,a.indexOf(":"));if(r)return"arbitrary.."+r}},mR=n=>{const{theme:a,classGroups:r}=n,i={nextPart:new Map,validators:[]};for(const o in r)tm(r[o],i,o,a);return i},tm=(n,a,r,i)=>{n.forEach(o=>{if(typeof o=="string"){const c=o===""?a:dx(a,o);c.classGroupId=r;return}if(typeof o=="function"){if(pR(o)){tm(o(i),a,r,i);return}a.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([c,h])=>{tm(h,dx(a,c),r,i)})})},dx=(n,a)=>{let r=n;return a.split(qm).forEach(i=>{r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r},pR=n=>n.isThemeGetter,vR=n=>{if(n<1)return{get:()=>{},set:()=>{}};let a=0,r=new Map,i=new Map;const o=(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 o(c,h),h},set(c,h){r.has(c)?r.set(c,h):o(c,h)}}},nm="!",am=":",gR=am.length,yR=n=>{const{prefix:a,experimentalParseClassName:r}=n;let i=o=>{const c=[];let h=0,m=0,p=0,g;for(let N=0;N<o.length;N++){let S=o[N];if(h===0&&m===0){if(S===am){c.push(o.slice(p,N)),p=N+gR;continue}if(S==="/"){g=N;continue}}S==="["?h++:S==="]"?h--:S==="("?m++:S===")"&&m--}const y=c.length===0?o:o.substring(p),x=xR(y),b=x!==y,j=g&&g>p?g-p:void 0;return{modifiers:c,hasImportantModifier:b,baseClassName:x,maybePostfixModifierPosition:j}};if(a){const o=a+am,c=i;i=h=>h.startsWith(o)?c(h.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:h,maybePostfixModifierPosition:void 0}}if(r){const o=i;i=c=>r({className:c,parseClassName:o})}return i},xR=n=>n.endsWith(nm)?n.substring(0,n.length-1):n.startsWith(nm)?n.substring(1):n,bR=n=>{const a=Object.fromEntries(n.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const i=[];let o=[];return r.forEach(c=>{c[0]==="["||a[c]?(i.push(...o.sort(),c),o=[]):o.push(c)}),i.push(...o.sort()),i}},wR=n=>({cache:vR(n.cacheSize),parseClassName:yR(n),sortModifiers:bR(n),...fR(n)}),jR=/\s+/,SR=(n,a)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:o,sortModifiers:c}=a,h=[],m=n.trim().split(jR);let p="";for(let g=m.length-1;g>=0;g-=1){const y=m[g],{isExternal:x,modifiers:b,hasImportantModifier:j,baseClassName:N,maybePostfixModifierPosition:S}=r(y);if(x){p=y+(p.length>0?" "+p:p);continue}let C=!!S,_=i(C?N.substring(0,S):N);if(!_){if(!C){p=y+(p.length>0?" "+p:p);continue}if(_=i(N),!_){p=y+(p.length>0?" "+p:p);continue}C=!1}const T=c(b).join(":"),R=j?T+nm:T,D=R+_;if(h.includes(D))continue;h.push(D);const U=o(_,C);for(let K=0;K<U.length;++K){const H=U[K];h.push(R+H)}p=y+(p.length>0?" "+p:p)}return p};function NR(){let n=0,a,r,i="";for(;n<arguments.length;)(a=arguments[n++])&&(r=a1(a))&&(i&&(i+=" "),i+=r);return i}const a1=n=>{if(typeof n=="string")return n;let a,r="";for(let i=0;i<n.length;i++)n[i]&&(a=a1(n[i]))&&(r&&(r+=" "),r+=a);return r};function ER(n,...a){let r,i,o,c=h;function h(p){const g=a.reduce((y,x)=>x(y),n());return r=wR(g),i=r.cache.get,o=r.cache.set,c=m,m(p)}function m(p){const g=i(p);if(g)return g;const y=SR(p,r);return o(p,y),y}return function(){return c(NR.apply(null,arguments))}}const jt=n=>{const a=r=>r[n]||[];return a.isThemeGetter=!0,a},l1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,r1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,CR=/^\d+\/\d+$/,_R=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,TR=/\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$/,RR=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,MR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,kR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,oi=n=>CR.test(n),Ae=n=>!!n&&!Number.isNaN(Number(n)),pl=n=>!!n&&Number.isInteger(Number(n)),Sh=n=>n.endsWith("%")&&Ae(n.slice(0,-1)),Aa=n=>_R.test(n),AR=()=>!0,DR=n=>TR.test(n)&&!RR.test(n),i1=()=>!1,OR=n=>MR.test(n),zR=n=>kR.test(n),LR=n=>!me(n)&&!pe(n),UR=n=>qi(n,u1,i1),me=n=>l1.test(n),tr=n=>qi(n,c1,DR),Nh=n=>qi(n,QR,Ae),fx=n=>qi(n,s1,i1),qR=n=>qi(n,o1,zR),$u=n=>qi(n,d1,OR),pe=n=>r1.test(n),Vs=n=>Hi(n,c1),HR=n=>Hi(n,GR),hx=n=>Hi(n,s1),BR=n=>Hi(n,u1),$R=n=>Hi(n,o1),Qu=n=>Hi(n,d1,!0),qi=(n,a,r)=>{const i=l1.exec(n);return i?i[1]?a(i[1]):r(i[2]):!1},Hi=(n,a,r=!1)=>{const i=r1.exec(n);return i?i[1]?a(i[1]):r:!1},s1=n=>n==="position"||n==="percentage",o1=n=>n==="image"||n==="url",u1=n=>n==="length"||n==="size"||n==="bg-size",c1=n=>n==="length",QR=n=>n==="number",GR=n=>n==="family-name",d1=n=>n==="shadow",YR=()=>{const n=jt("color"),a=jt("font"),r=jt("text"),i=jt("font-weight"),o=jt("tracking"),c=jt("leading"),h=jt("breakpoint"),m=jt("container"),p=jt("spacing"),g=jt("radius"),y=jt("shadow"),x=jt("inset-shadow"),b=jt("text-shadow"),j=jt("drop-shadow"),N=jt("blur"),S=jt("perspective"),C=jt("aspect"),_=jt("ease"),T=jt("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"],U=()=>[...D(),pe,me],K=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],q=()=>[pe,me,p],G=()=>[oi,"full","auto",...q()],ee=()=>[pl,"none","subgrid",pe,me],ue=()=>["auto",{span:["full",pl,pe,me]},pl,pe,me],ce=()=>[pl,"auto",pe,me],ie=()=>["auto","min","max","fr",pe,me],ae=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],re=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...q()],J=()=>[oi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...q()],Y=()=>[n,pe,me],X=()=>[...D(),hx,fx,{position:[pe,me]}],de=()=>["no-repeat",{repeat:["","x","y","space","round"]}],k=()=>["auto","cover","contain",BR,UR,{size:[pe,me]}],F=()=>[Sh,Vs,tr],W=()=>["","none","full",g,pe,me],le=()=>["",Ae,Vs,tr],ve=()=>["solid","dashed","dotted","double"],Se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>[Ae,Sh,hx,fx],Ne=()=>["","none",N,pe,me],ye=()=>["none",Ae,pe,me],Ee=()=>["none",Ae,pe,me],$e=()=>[Ae,pe,me],Ke=()=>[oi,"full",...q()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Aa],breakpoint:[Aa],color:[AR],container:[Aa],"drop-shadow":[Aa],ease:["in","out","in-out"],font:[LR],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Aa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Aa],shadow:[Aa],spacing:["px",Ae],text:[Aa],"text-shadow":[Aa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",oi,me,pe,C]}],container:["container"],columns:[{columns:[Ae,me,pe,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:U()}],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:G()}],"inset-x":[{"inset-x":G()}],"inset-y":[{"inset-y":G()}],start:[{start:G()}],end:[{end:G()}],top:[{top:G()}],right:[{right:G()}],bottom:[{bottom:G()}],left:[{left:G()}],visibility:["visible","invisible","collapse"],z:[{z:[pl,"auto",pe,me]}],basis:[{basis:[oi,"full","auto",m,...q()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ae,oi,"auto","initial","none",me]}],grow:[{grow:["",Ae,pe,me]}],shrink:[{shrink:["",Ae,pe,me]}],order:[{order:[pl,"first","last","none",pe,me]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:ue()}],"col-start":[{"col-start":ce()}],"col-end":[{"col-end":ce()}],"grid-rows":[{"grid-rows":ee()}],"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":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:q()}],"gap-x":[{"gap-x":q()}],"gap-y":[{"gap-y":q()}],"justify-content":[{justify:[...ae(),"normal"]}],"justify-items":[{"justify-items":[...re(),"normal"]}],"justify-self":[{"justify-self":["auto",...re()]}],"align-content":[{content:["normal",...ae()]}],"align-items":[{items:[...re(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...re(),{baseline:["","last"]}]}],"place-content":[{"place-content":ae()}],"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:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":q()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":q()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],w:[{w:[m,"screen",...J()]}],"min-w":[{"min-w":[m,"screen","none",...J()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[h]},...J()]}],h:[{h:["screen",...J()]}],"min-h":[{"min-h":["screen","none",...J()]}],"max-h":[{"max-h":["screen",...J()]}],"font-size":[{text:["base",r,Vs,tr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,pe,Nh]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Sh,me]}],"font-family":[{font:[HR,me,a]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,pe,me]}],"line-clamp":[{"line-clamp":[Ae,"none",pe,Nh]}],leading:[{leading:[c,...q()]}],"list-image":[{"list-image":["none",pe,me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",pe,me]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Y()}],"text-color":[{text:Y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ve(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ae,"from-font","auto",pe,tr]}],"text-decoration-color":[{decoration:Y()}],"underline-offset":[{"underline-offset":[Ae,"auto",pe,me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:q()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe,me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",pe,me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:X()}],"bg-repeat":[{bg:de()}],"bg-size":[{bg:k()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},pl,pe,me],radial:["",pe,me],conic:[pl,pe,me]},$R,qR]}],"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:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"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":[Ae,pe,me]}],"outline-w":[{outline:["",Ae,Vs,tr]}],"outline-color":[{outline:Y()}],shadow:[{shadow:["","none",y,Qu,$u]}],"shadow-color":[{shadow:Y()}],"inset-shadow":[{"inset-shadow":["none",x,Qu,$u]}],"inset-shadow-color":[{"inset-shadow":Y()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Y()}],"ring-offset-w":[{"ring-offset":[Ae,tr]}],"ring-offset-color":[{"ring-offset":Y()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":Y()}],"text-shadow":[{"text-shadow":["none",b,Qu,$u]}],"text-shadow-color":[{"text-shadow":Y()}],opacity:[{opacity:[Ae,pe,me]}],"mix-blend":[{"mix-blend":[...Se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Se()}],"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":[Ae]}],"mask-image-linear-from-pos":[{"mask-linear-from":te()}],"mask-image-linear-to-pos":[{"mask-linear-to":te()}],"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":te()}],"mask-image-t-to-pos":[{"mask-t-to":te()}],"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":te()}],"mask-image-r-to-pos":[{"mask-r-to":te()}],"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":te()}],"mask-image-b-to-pos":[{"mask-b-to":te()}],"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":te()}],"mask-image-l-to-pos":[{"mask-l-to":te()}],"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":te()}],"mask-image-x-to-pos":[{"mask-x-to":te()}],"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":te()}],"mask-image-y-to-pos":[{"mask-y-to":te()}],"mask-image-y-from-color":[{"mask-y-from":Y()}],"mask-image-y-to-color":[{"mask-y-to":Y()}],"mask-image-radial":[{"mask-radial":[pe,me]}],"mask-image-radial-from-pos":[{"mask-radial-from":te()}],"mask-image-radial-to-pos":[{"mask-radial-to":te()}],"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":[Ae]}],"mask-image-conic-from-pos":[{"mask-conic-from":te()}],"mask-image-conic-to-pos":[{"mask-conic-to":te()}],"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:k()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",pe,me]}],filter:[{filter:["","none",pe,me]}],blur:[{blur:Ne()}],brightness:[{brightness:[Ae,pe,me]}],contrast:[{contrast:[Ae,pe,me]}],"drop-shadow":[{"drop-shadow":["","none",j,Qu,$u]}],"drop-shadow-color":[{"drop-shadow":Y()}],grayscale:[{grayscale:["",Ae,pe,me]}],"hue-rotate":[{"hue-rotate":[Ae,pe,me]}],invert:[{invert:["",Ae,pe,me]}],saturate:[{saturate:[Ae,pe,me]}],sepia:[{sepia:["",Ae,pe,me]}],"backdrop-filter":[{"backdrop-filter":["","none",pe,me]}],"backdrop-blur":[{"backdrop-blur":Ne()}],"backdrop-brightness":[{"backdrop-brightness":[Ae,pe,me]}],"backdrop-contrast":[{"backdrop-contrast":[Ae,pe,me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ae,pe,me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ae,pe,me]}],"backdrop-invert":[{"backdrop-invert":["",Ae,pe,me]}],"backdrop-opacity":[{"backdrop-opacity":[Ae,pe,me]}],"backdrop-saturate":[{"backdrop-saturate":[Ae,pe,me]}],"backdrop-sepia":[{"backdrop-sepia":["",Ae,pe,me]}],"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",pe,me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ae,"initial",pe,me]}],ease:[{ease:["linear","initial",_,pe,me]}],delay:[{delay:[Ae,pe,me]}],animate:[{animate:["none",T,pe,me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,pe,me]}],"perspective-origin":[{"perspective-origin":U()}],rotate:[{rotate:ye()}],"rotate-x":[{"rotate-x":ye()}],"rotate-y":[{"rotate-y":ye()}],"rotate-z":[{"rotate-z":ye()}],scale:[{scale:Ee()}],"scale-x":[{"scale-x":Ee()}],"scale-y":[{"scale-y":Ee()}],"scale-z":[{"scale-z":Ee()}],"scale-3d":["scale-3d"],skew:[{skew:$e()}],"skew-x":[{"skew-x":$e()}],"skew-y":[{"skew-y":$e()}],transform:[{transform:[pe,me,"","none","gpu","cpu"]}],"transform-origin":[{origin:U()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ke()}],"translate-x":[{"translate-x":Ke()}],"translate-y":[{"translate-y":Ke()}],"translate-z":[{"translate-z":Ke()}],"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",pe,me]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":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",pe,me]}],fill:[{fill:["none",...Y()]}],"stroke-w":[{stroke:[Ae,Vs,tr,Nh]}],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"]}},VR=ER(YR);function he(...n){return VR(dR(n))}function fi(n){return n===null?"-":n<1e3?`${String(n)}ms`:n<6e4?`${(n/1e3).toFixed(1)}s`:`${(n/6e4).toFixed(1)}m`}const KR={sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl"},XR={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 oc({children:n,className:a,rounded:r="lg",shadow:i="md",...o}){return u.jsxs("div",{"data-slot":"glass-container",className:he("relative","bg-card","backdrop-blur-xl","border border-border",KR[r],XR[i],a),...o,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 mt({className:n,rounded:a="2xl",shadow:r="lg",children:i,...o}){return u.jsx(oc,{"data-slot":"card",rounded:a,shadow:r,className:he("p-6",n),...o,children:i})}function Nt({className:n,...a}){return u.jsx("div",{"data-slot":"card-header",className:he("flex flex-row items-center justify-between space-y-0 pb-2",n),...a})}function Et({className:n,...a}){return u.jsx("h3",{"data-slot":"card-title",className:he("font-semibold text-sm leading-none text-card-foreground",n),...a})}function qt({className:n,...a}){return u.jsx("p",{"data-slot":"card-description",className:he("text-muted-foreground text-sm",n),...a})}function pt({className:n,...a}){return u.jsx("div",{"data-slot":"card-content",className:he(n),...a})}/**
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 FR=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ZR=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,i)=>i?i.toUpperCase():r.toLowerCase()),mx=n=>{const a=ZR(n);return a.charAt(0).toUpperCase()+a.slice(1)},f1=(...n)=>n.filter((a,r,i)=>!!a&&a.trim()!==""&&i.indexOf(a)===r).join(" ").trim(),PR=n=>{for(const a in n)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
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
+ */var JR={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"};/**
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 IR=v.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:o="",children:c,iconNode:h,...m},p)=>v.createElement("svg",{ref:p,...JR,width:a,height:a,stroke:n,strokeWidth:i?Number(r)*24/Number(a):r,className:f1("lucide",o),...!c&&!PR(m)&&{"aria-hidden":"true"},...m},[...h.map(([g,y])=>v.createElement(g,y)),...Array.isArray(c)?c:[c]]));/**
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 Gn=(n,a)=>{const r=v.forwardRef(({className:i,...o},c)=>v.createElement(IR,{ref:c,iconNode:a,className:f1(`lucide-${FR(mx(n))}`,`lucide-${n}`,i),...o}));return r.displayName=mx(n),r};/**
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 WR=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],h1=Gn("check",WR);/**
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 eM=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],tM=Gn("chevron-down",eM);/**
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 nM=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],px=Gn("chevron-left",nM);/**
297
+ * @license lucide-react v0.511.0 - ISC
298
+ *
299
+ * This source code is licensed under the ISC license.
300
+ * See the LICENSE file in the root directory of this source tree.
301
+ */const aM=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],vx=Gn("chevron-right",aM);/**
302
+ * @license lucide-react v0.511.0 - ISC
303
+ *
304
+ * This source code is licensed under the ISC license.
305
+ * See the LICENSE file in the root directory of this source tree.
306
+ */const lM=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],rM=Gn("chevron-up",lM);/**
307
+ * @license lucide-react v0.511.0 - ISC
308
+ *
309
+ * This source code is licensed under the ISC license.
310
+ * See the LICENSE file in the root directory of this source tree.
311
+ */const iM=[["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"}]],sM=Gn("clipboard",iM);/**
312
+ * @license lucide-react v0.511.0 - ISC
313
+ *
314
+ * This source code is licensed under the ISC license.
315
+ * See the LICENSE file in the root directory of this source tree.
316
+ */const oM=[["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"}]],uM=Gn("file-json",oM);/**
317
+ * @license lucide-react v0.511.0 - ISC
318
+ *
319
+ * This source code is licensed under the ISC license.
320
+ * See the LICENSE file in the root directory of this source tree.
321
+ */const cM=[["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"}]],dM=Gn("file-spreadsheet",cM);/**
322
+ * @license lucide-react v0.511.0 - ISC
323
+ *
324
+ * This source code is licensed under the ISC license.
325
+ * See the LICENSE file in the root directory of this source tree.
326
+ */const fM=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],hM=Gn("loader-circle",fM);/**
327
+ * @license lucide-react v0.511.0 - ISC
328
+ *
329
+ * This source code is licensed under the ISC license.
330
+ * See the LICENSE file in the root directory of this source tree.
331
+ */const mM=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],pM=Gn("search",mM);/**
332
+ * @license lucide-react v0.511.0 - ISC
333
+ *
334
+ * This source code is licensed under the ISC license.
335
+ * See the LICENSE file in the root directory of this source tree.
336
+ */const vM=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],gM=Gn("x",vM);function yM(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 Eh({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 o=document.createElement("textarea");o.value=n,document.body.appendChild(o),o.select();try{document.execCommand("copy")}catch{}document.body.removeChild(o),r(!0),setTimeout(()=>{r(!1)},2e3)})},className:he("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(h1,{className:"w-3 h-3"}):u.jsx(sM,{className:"w-3 h-3"})})}function fn({timestamp:n,className:a,rawValue:r,forceOpen:i=!1}){const[o,c]=v.useState(!1),[,h]=v.useState(0),m=i||o;if(v.useEffect(()=>{const b=setInterval(()=>{h(j=>j+1)},1e3);return()=>{clearInterval(b)}},[]),!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=yM(p);return u.jsxs("div",{className:he("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:he("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(oc,{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(Eh,{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(Eh,{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(Eh,{value:y})]})]})]})})})]})}function xM(n){return n<1e3?`${n.toFixed(2)}ms`:`${(n/1e3).toFixed(2)}s`}function bM(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 wM(n){const a=n.toLowerCase();return!!(a.includes("created")||a.includes("date")||a.includes("updated")||n.endsWith("At")||a.endsWith("_at"))}function jM(n,a){for(const r of a){const i=r[n];if(i!=null)return typeof i=="boolean"?"bool":typeof i=="number"&&wM(n)?"date":typeof i=="number"?"number":bM(i)?"date":"string"}return"string"}function m1({results:n,meta:a,columns:r,error:i,title:o="Results",pageSize:c=25,onExportCsv:h,onExportJson:m,serverPagination:p}){const g=n??[],[y,x]=v.useState(""),[b,j]=v.useState(null),[N,S]=v.useState(new Set),[C,_]=v.useState(1),T=!!p,R=p?Math.floor(p.offset/p.limit)+1:1,D=p?Math.ceil(p.total/p.limit):1,U=v.useMemo(()=>r||(g.length===0?[]:Object.keys(g[0]).map(ae=>({key:ae,label:ae,type:jM(ae,g)}))),[r,g]),K=v.useMemo(()=>y?g.filter(ae=>Object.values(ae).some(re=>String(re).toLowerCase().includes(y.toLowerCase()))):g,[g,y]),H=v.useMemo(()=>b?[...K].sort((ae,re)=>{const z=ae[b.key],J=re[b.key];return z==null?1:J==null?-1:z<J?b.direction==="asc"?-1:1:z>J?b.direction==="asc"?1:-1:0}):K,[K,b]),q=Math.ceil(H.length/c),G=v.useMemo(()=>{const ae=(C-1)*c;return H.slice(ae,ae+c)},[H,C,c]);v.useMemo(()=>{_(1)},[y,b]);const ee=ae=>{j(re=>(re==null?void 0:re.key)===ae?re.direction==="asc"?{key:ae,direction:"desc"}:null:{key:ae,direction:"asc"})},ue=()=>{N.size===G.length?S(new Set):S(new Set(G.map((ae,re)=>re)))},ce=ae=>{const re=new Set(N);re.has(ae)?re.delete(ae):re.add(ae),S(re)},ie=(ae,re)=>{const z=ae[re.key];if(z==null)return u.jsx("span",{className:"text-xs italic dark:text-gray-600 text-gray-400",children:"NULL"});switch(re.type??"string"){case"bool":return z===!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(h1,{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(gM,{className:"w-3.5 h-3.5"})});case"date":return u.jsx(fn,{timestamp:z,rawValue:typeof z=="number"?z:void 0});case"number":return u.jsx("span",{className:"text-sm font-mono dark:text-gray-300 text-gray-700",children:typeof z=="number"?z.toLocaleString():JSON.stringify(z)});default:return typeof z=="object"?u.jsx("span",{className:"text-sm font-mono dark:text-gray-300 text-gray-700",children:JSON.stringify(z)}):u.jsx("span",{className:"text-sm dark:text-gray-300 text-gray-700",children:typeof z=="object"?JSON.stringify(z):String(z)})}};return i?u.jsxs(oc,{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(oc,{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:o}),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:xM(a.duration)}),u.jsxs("span",{className:"text-sm dark:text-gray-500 text-gray-500",children:[g.length," row",g.length!==1?"s":""]})]}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsxs("div",{className:"relative group",children:[u.jsx(pM,{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:y,onChange:ae=>{x(ae.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(dM,{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(uM,{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:N.size===G.length&&G.length>0,onChange:ue,className:"rounded border-gray-300 text-blue-600 focus:ring-blue-500 bg-transparent"})}),U.map(ae=>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:()=>{ee(ae.key)},children:u.jsxs("div",{className:"flex items-center gap-1",children:[ae.label,u.jsxs("div",{className:he("flex flex-col opacity-0 group-hover:opacity-50",(b==null?void 0:b.key)===ae.key&&"opacity-100"),children:[u.jsx(rM,{className:he("w-2 h-2",(b==null?void 0:b.key)===ae.key&&b.direction==="asc"&&"text-blue-500")}),u.jsx(tM,{className:he("w-2 h-2",(b==null?void 0:b.key)===ae.key&&b.direction==="desc"&&"text-blue-500")})]})]})},ae.key))]})}),u.jsx("tbody",{className:"divide-y dark:divide-white/[0.04] divide-gray-100",children:G.length>0?G.map((ae,re)=>u.jsxs("tr",{className:he("group transition-colors",N.has(re)?"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:N.has(re),onChange:()=>{ce(re)},className:"rounded border-gray-300 text-blue-600 focus:ring-blue-500 bg-transparent"})}),U.map(z=>u.jsx("td",{className:"p-4 whitespace-nowrap",children:ie(ae,z)},`${String(re)}-${z.key}`))]},re)):u.jsx("tr",{children:u.jsx("td",{colSpan:U.length+1,className:"p-8 text-center text-gray-500 dark:text-gray-400",children:y?`No results found matching "${y}"`:"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:[T?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+g.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:G.length})," ","of"," ",u.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:H.length})," ","results"]}),N.size>0&&u.jsxs("span",{className:"ml-3 text-blue-500 font-medium",children:[N.size," row",N.size!==1?"s":""," ","selected"]})]}),T&&D>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:R===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(px,{className:"w-4 h-4"})}),u.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:Math.min(D,5)},(ae,re)=>{let z;return D<=5||R<=3?z=re+1:R>=D-2?z=D-4+re:z=R-2+re,u.jsx("button",{onClick:()=>{p.onPageChange((z-1)*p.limit)},className:he("px-2.5 py-1 rounded-lg font-medium transition-colors",R===z?"bg-blue-500/10 text-blue-600 dark:text-blue-400":"hover:bg-gray-100 dark:hover:bg-white/[0.06]"),children:z},z)})}),u.jsx("button",{onClick:()=>{p.onPageChange(p.offset+p.limit)},disabled:R===D,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(vx,{className:"w-4 h-4"})})]}),!T&&q>1&&u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("button",{onClick:()=>{_(ae=>Math.max(1,ae-1))},disabled:C===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(px,{className:"w-4 h-4"})}),u.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:Math.min(q,5)},(ae,re)=>{let z;return q<=5||C<=3?z=re+1:C>=q-2?z=q-4+re:z=C-2+re,u.jsx("button",{onClick:()=>{_(z)},className:he("px-2.5 py-1 rounded-lg font-medium transition-colors",C===z?"bg-blue-500/10 text-blue-600 dark:text-blue-400":"hover:bg-gray-100 dark:hover:bg-white/[0.06]"),children:z},z)})}),u.jsx("button",{onClick:()=>{_(ae=>Math.min(q,ae+1))},disabled:C===q,className:"p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:u.jsx(vx,{className:"w-4 h-4"})})]})]})]})}function Yn({className:n,...a}){return u.jsx("table",{"data-slot":"table",className:he("w-full caption-bottom text-sm",n),...a})}function Vn({className:n,...a}){return u.jsx("thead",{"data-slot":"table-header",className:he("[&_tr]:border-b",n),...a})}function Kn({className:n,...a}){return u.jsx("tbody",{"data-slot":"table-body",className:he("[&_tr:last-child]:border-0",n),...a})}function dt({className:n,...a}){return u.jsx("tr",{"data-slot":"table-row",className:he("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",n),...a})}function Ce({className:n,...a}){return u.jsx("th",{"data-slot":"table-head",className:he("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 _e({className:n,...a}){return u.jsx("td",{"data-slot":"table-cell",className:he("whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n),...a})}function gx(n,a){if(typeof n=="function")return n(a);n!=null&&(n.current=a)}function po(...n){return a=>{let r=!1;const i=n.map(o=>{const c=gx(o,a);return!r&&typeof c=="function"&&(r=!0),c});if(r)return()=>{for(let o=0;o<i.length;o++){const c=i[o];typeof c=="function"?c():gx(n[o],null)}}}}function we(...n){return v.useCallback(po(...n),n)}function hr(n){const a=SM(n),r=v.forwardRef((i,o)=>{const{children:c,...h}=i,m=v.Children.toArray(c),p=m.find(NM);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:o,children:v.isValidElement(g)?v.cloneElement(g,void 0,y):null})}return u.jsx(a,{...h,ref:o,children:c})});return r.displayName=`${n}.Slot`,r}var yx=hr("Slot");function SM(n){const a=v.forwardRef((r,i)=>{const{children:o,...c}=r;if(v.isValidElement(o)){const h=CM(o),m=EM(c,o.props);return o.type!==v.Fragment&&(m.ref=i?po(i,h):h),v.cloneElement(o,m)}return v.Children.count(o)>1?v.Children.only(null):null});return a.displayName=`${n}.SlotClone`,a}var p1=Symbol("radix.slottable");function v1(n){const a=({children:r})=>u.jsx(u.Fragment,{children:r});return a.displayName=`${n}.Slottable`,a.__radixId=p1,a}function NM(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===p1}function EM(n,a){const r={...a};for(const i in a){const o=n[i],c=a[i];/^on[A-Z]/.test(i)?o&&c?r[i]=(...h)=>{const m=c(...h);return o(...h),m}:o&&(r[i]=o):i==="style"?r[i]={...o,...c}:i==="className"&&(r[i]=[o,c].filter(Boolean).join(" "))}return{...n,...r}}function CM(n){var a,r;let i=(a=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:a.get,o=i&&"isReactWarning"in i&&i.isReactWarning;return o?n.ref:(i=(r=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:r.get,o=i&&"isReactWarning"in i&&i.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}function g1(n){var a,r,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var o=n.length;for(a=0;a<o;a++)n[a]&&(r=g1(n[a]))&&(i&&(i+=" "),i+=r)}else for(r in n)n[r]&&(i&&(i+=" "),i+=r);return i}function _M(){for(var n,a,r=0,i="",o=arguments.length;r<o;r++)(n=arguments[r])&&(a=g1(n))&&(i&&(i+=" "),i+=a);return i}const xx=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,bx=_M,y1=(n,a)=>r=>{var i;if((a==null?void 0:a.variants)==null)return bx(n,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:c}=a,h=Object.keys(o).map(g=>{const y=r==null?void 0:r[g],x=c==null?void 0:c[g];if(y===null)return null;const b=xx(y)||xx(x);return o[g][b]}),m=r&&Object.entries(r).reduce((g,y)=>{let[x,b]=y;return b===void 0||(g[x]=b),g},{}),p=a==null||(i=a.compoundVariants)===null||i===void 0?void 0:i.reduce((g,y)=>{let{class:x,className:b,...j}=y;return Object.entries(j).every(N=>{let[S,C]=N;return Array.isArray(C)?C.includes({...c,...m}[S]):{...c,...m}[S]===C})?[...g,x,b]:g},[]);return bx(n,h,p,r==null?void 0:r.class,r==null?void 0:r.className)},TM={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 Ml({className:n,icon:a,variant:r="default",children:i,...o}){return u.jsxs("div",{className:he("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",TM[r],n),...o,children:[a&&u.jsx("span",{className:"flex-shrink-0",children:a}),u.jsx("span",{className:"leading-none",children:i})]})}const wx=y1("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:he("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:he("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:he("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:he("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:he("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:he("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"}}),RM=["primary","secondary","danger","success","icon"];function Be({className:n,variant:a,size:r,asChild:i=!1,isLoading:o=!1,children:c,disabled:h,...m}){const p=i?yx:"button",g=a&&RM.includes(a);return i?u.jsx(yx,{"data-slot":"button",className:he(wx({variant:a,size:r,className:n})),...m,children:c}):u.jsxs(p,{"data-slot":"button",className:he(wx({variant:a,size:r,className:n})),disabled:h===!0||o,...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:[o&&u.jsx(hM,{className:"size-4 animate-spin"}),c]})]})}const x1=({ref:n,className:a,active:r=!1,icon:i,children:o,"data-state":c,...h})=>{const m=r||c==="active";return u.jsxs("button",{ref:n,"data-slot":"tab-button","data-state":c,className:he("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"}),o,u.jsx("span",{className:he("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")})]})};x1.displayName="TabButton";const MM={sm:"h-8 px-3 text-xs",md:"h-10 px-4 text-sm",lg:"h-12 px-5 text-base"};function Hm({className:n,label:a,error:r,leftIcon:i,rightContent:o,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:he("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:he("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",MM[c],i&&"pl-2",o!==null&&"pr-2"),...h}),o&&u.jsx("div",{className:"relative z-10 pr-3",children:o})]})}),r&&u.jsx("p",{className:"mt-2 text-xs dark:text-red-400 text-red-600",children:r})]})}var kM=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],se=kM.reduce((n,a)=>{const r=hr(`Primitive.${a}`),i=v.forwardRef((o,c)=>{const{asChild:h,...m}=o,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 uc(n,a){n&&fo.flushSync(()=>n.dispatchEvent(a))}var lt=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{};function AM(n,a){return v.useReducer((r,i)=>a[r][i]??r,n)}var Ct=n=>{const{present:a,children:r}=n,i=DM(a),o=typeof r=="function"?r({present:i.isPresent}):v.Children.only(r),c=we(i.ref,OM(o));return typeof r=="function"||i.isPresent?v.cloneElement(o,{ref:c}):null};Ct.displayName="Presence";function DM(n){const[a,r]=v.useState(),i=v.useRef(null),o=v.useRef(n),c=v.useRef("none"),h=n?"mounted":"unmounted",[m,p]=AM(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=o.current;if(y!==n){const x=c.current,b=Gu(g);n?p("MOUNT"):b==="none"||(g==null?void 0:g.display)==="none"?p("UNMOUNT"):p(y&&x!==b?"ANIMATION_OUT":"UNMOUNT"),o.current=n}},[n,p]),lt(()=>{if(a){let g;const y=a.ownerDocument.defaultView??window,x=j=>{const N=Gu(i.current).includes(CSS.escape(j.animationName));if(j.target===a&&N&&(p("ANIMATION_END"),!o.current)){const S=a.style.animationFillMode;a.style.animationFillMode="forwards",g=y.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=S)})}},b=j=>{j.target===a&&(c.current=Gu(i.current))};return a.addEventListener("animationstart",b),a.addEventListener("animationcancel",x),a.addEventListener("animationend",x),()=>{y.clearTimeout(g),a.removeEventListener("animationstart",b),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 OM(n){var a,r;let i=(a=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:a.get,o=i&&"isReactWarning"in i&&i.isReactWarning;return o?n.ref:(i=(r=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:r.get,o=i&&"isReactWarning"in i&&i.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}function zM(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 o(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,o]}function bt(n,a=[]){let r=[];function i(c,h){const m=v.createContext(h),p=r.length;r=[...r,h];const g=x=>{var b;const{scope:j,children:N,...S}=x,C=((b=j==null?void 0:j[n])==null?void 0:b[p])||m,_=v.useMemo(()=>S,Object.values(S));return u.jsx(C.Provider,{value:_,children:N})};g.displayName=c+"Provider";function y(x,b){var j;const N=((j=b==null?void 0:b[n])==null?void 0:j[p])||m,S=v.useContext(N);if(S)return S;if(h!==void 0)return h;throw new Error(`\`${x}\` must be used within \`${c}\``)}return[g,y]}const o=()=>{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 o.scopeName=n,[i,LM(o,...a)]}function LM(...n){const a=n[0];if(n.length===1)return a;const r=()=>{const i=n.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const c=i.reduce((h,{useScope:m,scopeName:p})=>{const g=m(o)[`__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 UM=v.createContext(void 0);function Bi(n){const a=v.useContext(UM);return n||a||"ltr"}function lm(n,[a,r]){return Math.min(r,Math.max(a,n))}function ne(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 qM(n,a){return v.useReducer((r,i)=>a[r][i]??r,n)}var Bm="ScrollArea",[b1,d6]=bt(Bm),[HM,Mn]=b1(Bm),w1=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,type:i="hover",dir:o,scrollHideDelay:c=600,...h}=n,[m,p]=v.useState(null),[g,y]=v.useState(null),[x,b]=v.useState(null),[j,N]=v.useState(null),[S,C]=v.useState(null),[_,T]=v.useState(0),[R,D]=v.useState(0),[U,K]=v.useState(!1),[H,q]=v.useState(!1),G=we(a,ue=>p(ue)),ee=Bi(o);return u.jsx(HM,{scope:r,type:i,dir:ee,scrollHideDelay:c,scrollArea:m,viewport:g,onViewportChange:y,content:x,onContentChange:b,scrollbarX:j,onScrollbarXChange:N,scrollbarXEnabled:U,onScrollbarXEnabledChange:K,scrollbarY:S,onScrollbarYChange:C,scrollbarYEnabled:H,onScrollbarYEnabledChange:q,onCornerWidthChange:T,onCornerHeightChange:D,children:u.jsx(se.div,{dir:ee,...h,ref:G,style:{position:"relative","--radix-scroll-area-corner-width":_+"px","--radix-scroll-area-corner-height":R+"px",...n.style}})})});w1.displayName=Bm;var j1="ScrollAreaViewport",S1=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,children:i,nonce:o,...c}=n,h=Mn(j1,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:o}),u.jsx(se.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})})]})});S1.displayName=j1;var sa="ScrollAreaScrollbar",N1=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,o=Mn(sa,n.__scopeScrollArea),{onScrollbarXEnabledChange:c,onScrollbarYEnabledChange:h}=o,m=n.orientation==="horizontal";return v.useEffect(()=>(m?c(!0):h(!0),()=>{m?c(!1):h(!1)}),[m,c,h]),o.type==="hover"?u.jsx(BM,{...i,ref:a,forceMount:r}):o.type==="scroll"?u.jsx($M,{...i,ref:a,forceMount:r}):o.type==="auto"?u.jsx(E1,{...i,ref:a,forceMount:r}):o.type==="always"?u.jsx($m,{...i,ref:a}):null});N1.displayName=sa;var BM=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,o=Mn(sa,n.__scopeScrollArea),[c,h]=v.useState(!1);return v.useEffect(()=>{const m=o.scrollArea;let p=0;if(m){const g=()=>{window.clearTimeout(p),h(!0)},y=()=>{p=window.setTimeout(()=>h(!1),o.scrollHideDelay)};return m.addEventListener("pointerenter",g),m.addEventListener("pointerleave",y),()=>{window.clearTimeout(p),m.removeEventListener("pointerenter",g),m.removeEventListener("pointerleave",y)}}},[o.scrollArea,o.scrollHideDelay]),u.jsx(Ct,{present:r||c,children:u.jsx(E1,{"data-state":c?"visible":"hidden",...i,ref:a})})}),$M=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,o=Mn(sa,n.__scopeScrollArea),c=n.orientation==="horizontal",h=Rc(()=>p("SCROLL_END"),100),[m,p]=qM("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"),o.scrollHideDelay);return()=>window.clearTimeout(g)}},[m,o.scrollHideDelay,p]),v.useEffect(()=>{const g=o.viewport,y=c?"scrollLeft":"scrollTop";if(g){let x=g[y];const b=()=>{const j=g[y];x!==j&&(p("SCROLL"),h()),x=j};return g.addEventListener("scroll",b),()=>g.removeEventListener("scroll",b)}},[o.viewport,c,p,h]),u.jsx(Ct,{present:r||m!=="hidden",children:u.jsx($m,{"data-state":m==="hidden"?"hidden":"visible",...i,ref:a,onPointerEnter:ne(n.onPointerEnter,()=>p("POINTER_ENTER")),onPointerLeave:ne(n.onPointerLeave,()=>p("POINTER_LEAVE"))})})}),E1=v.forwardRef((n,a)=>{const r=Mn(sa,n.__scopeScrollArea),{forceMount:i,...o}=n,[c,h]=v.useState(!1),m=n.orientation==="horizontal",p=Rc(()=>{if(r.viewport){const g=r.viewport.offsetWidth<r.viewport.scrollWidth,y=r.viewport.offsetHeight<r.viewport.scrollHeight;h(m?g:y)}},10);return Mi(r.viewport,p),Mi(r.content,p),u.jsx(Ct,{present:i||c,children:u.jsx($m,{"data-state":c?"visible":"hidden",...o,ref:a})})}),$m=v.forwardRef((n,a)=>{const{orientation:r="vertical",...i}=n,o=Mn(sa,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=M1(m.viewport,m.content),y={...i,sizes:m,onSizesChange:p,hasThumb:g>0&&g<1,onThumbChange:b=>c.current=b,onThumbPointerUp:()=>h.current=0,onThumbPointerDown:b=>h.current=b};function x(b,j){return XM(b,h.current,m,j)}return r==="horizontal"?u.jsx(QM,{...y,ref:a,onThumbPositionChange:()=>{if(o.viewport&&c.current){const b=o.viewport.scrollLeft,j=jx(b,m,o.dir);c.current.style.transform=`translate3d(${j}px, 0, 0)`}},onWheelScroll:b=>{o.viewport&&(o.viewport.scrollLeft=b)},onDragScroll:b=>{o.viewport&&(o.viewport.scrollLeft=x(b,o.dir))}}):r==="vertical"?u.jsx(GM,{...y,ref:a,onThumbPositionChange:()=>{if(o.viewport&&c.current){const b=o.viewport.scrollTop,j=jx(b,m);c.current.style.transform=`translate3d(0, ${j}px, 0)`}},onWheelScroll:b=>{o.viewport&&(o.viewport.scrollTop=b)},onDragScroll:b=>{o.viewport&&(o.viewport.scrollTop=x(b))}}):null}),QM=v.forwardRef((n,a)=>{const{sizes:r,onSizesChange:i,...o}=n,c=Mn(sa,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(_1,{"data-orientation":"horizontal",...o,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":Tc(r)+"px",...n.style},onThumbPointerDown:y=>n.onThumbPointerDown(y.x),onDragScroll:y=>n.onDragScroll(y.x),onWheelScroll:(y,x)=>{if(c.viewport){const b=c.viewport.scrollLeft+y.deltaX;n.onWheelScroll(b),A1(b,x)&&y.preventDefault()}},onResize:()=>{p.current&&c.viewport&&h&&i({content:c.viewport.scrollWidth,viewport:c.viewport.offsetWidth,scrollbar:{size:p.current.clientWidth,paddingStart:dc(h.paddingLeft),paddingEnd:dc(h.paddingRight)}})}})}),GM=v.forwardRef((n,a)=>{const{sizes:r,onSizesChange:i,...o}=n,c=Mn(sa,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(_1,{"data-orientation":"vertical",...o,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":Tc(r)+"px",...n.style},onThumbPointerDown:y=>n.onThumbPointerDown(y.y),onDragScroll:y=>n.onDragScroll(y.y),onWheelScroll:(y,x)=>{if(c.viewport){const b=c.viewport.scrollTop+y.deltaY;n.onWheelScroll(b),A1(b,x)&&y.preventDefault()}},onResize:()=>{p.current&&c.viewport&&h&&i({content:c.viewport.scrollHeight,viewport:c.viewport.offsetHeight,scrollbar:{size:p.current.clientHeight,paddingStart:dc(h.paddingTop),paddingEnd:dc(h.paddingBottom)}})}})}),[YM,C1]=b1(sa),_1=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,sizes:i,hasThumb:o,onThumbChange:c,onThumbPointerUp:h,onThumbPointerDown:m,onThumbPositionChange:p,onDragScroll:g,onWheelScroll:y,onResize:x,...b}=n,j=Mn(sa,r),[N,S]=v.useState(null),C=we(a,G=>S(G)),_=v.useRef(null),T=v.useRef(""),R=j.viewport,D=i.content-i.viewport,U=nt(y),K=nt(p),H=Rc(x,10);function q(G){if(_.current){const ee=G.clientX-_.current.left,ue=G.clientY-_.current.top;g({x:ee,y:ue})}}return v.useEffect(()=>{const G=ee=>{const ue=ee.target;N!=null&&N.contains(ue)&&U(ee,D)};return document.addEventListener("wheel",G,{passive:!1}),()=>document.removeEventListener("wheel",G,{passive:!1})},[R,N,D,U]),v.useEffect(K,[i,K]),Mi(N,H),Mi(j.content,H),u.jsx(YM,{scope:r,scrollbar:N,hasThumb:o,onThumbChange:nt(c),onThumbPointerUp:nt(h),onThumbPositionChange:K,onThumbPointerDown:nt(m),children:u.jsx(se.div,{...b,ref:C,style:{position:"absolute",...b.style},onPointerDown:ne(n.onPointerDown,G=>{G.button===0&&(G.target.setPointerCapture(G.pointerId),_.current=N.getBoundingClientRect(),T.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",j.viewport&&(j.viewport.style.scrollBehavior="auto"),q(G))}),onPointerMove:ne(n.onPointerMove,q),onPointerUp:ne(n.onPointerUp,G=>{const ee=G.target;ee.hasPointerCapture(G.pointerId)&&ee.releasePointerCapture(G.pointerId),document.body.style.webkitUserSelect=T.current,j.viewport&&(j.viewport.style.scrollBehavior=""),_.current=null})})})}),cc="ScrollAreaThumb",T1=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,o=C1(cc,n.__scopeScrollArea);return u.jsx(Ct,{present:r||o.hasThumb,children:u.jsx(VM,{ref:a,...i})})}),VM=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,style:i,...o}=n,c=Mn(cc,r),h=C1(cc,r),{onThumbPositionChange:m}=h,p=we(a,x=>h.onThumbChange(x)),g=v.useRef(void 0),y=Rc(()=>{g.current&&(g.current(),g.current=void 0)},100);return v.useEffect(()=>{const x=c.viewport;if(x){const b=()=>{if(y(),!g.current){const j=FM(x,m);g.current=j,m()}};return m(),x.addEventListener("scroll",b),()=>x.removeEventListener("scroll",b)}},[c.viewport,y,m]),u.jsx(se.div,{"data-state":h.hasThumb?"visible":"hidden",...o,ref:p,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:ne(n.onPointerDownCapture,x=>{const b=x.target.getBoundingClientRect(),j=x.clientX-b.left,N=x.clientY-b.top;h.onThumbPointerDown({x:j,y:N})}),onPointerUp:ne(n.onPointerUp,h.onThumbPointerUp)})});T1.displayName=cc;var Qm="ScrollAreaCorner",R1=v.forwardRef((n,a)=>{const r=Mn(Qm,n.__scopeScrollArea),i=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&i?u.jsx(KM,{...n,ref:a}):null});R1.displayName=Qm;var KM=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,...i}=n,o=Mn(Qm,r),[c,h]=v.useState(0),[m,p]=v.useState(0),g=!!(c&&m);return Mi(o.scrollbarX,()=>{var y;const x=((y=o.scrollbarX)==null?void 0:y.offsetHeight)||0;o.onCornerHeightChange(x),p(x)}),Mi(o.scrollbarY,()=>{var y;const x=((y=o.scrollbarY)==null?void 0:y.offsetWidth)||0;o.onCornerWidthChange(x),h(x)}),g?u.jsx(se.div,{...i,ref:a,style:{width:c,height:m,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...n.style}}):null});function dc(n){return n?parseInt(n,10):0}function M1(n,a){const r=n/a;return isNaN(r)?0:r}function Tc(n){const a=M1(n.viewport,n.content),r=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,i=(n.scrollbar.size-r)*a;return Math.max(i,18)}function XM(n,a,r,i="ltr"){const o=Tc(r),c=o/2,h=a||c,m=o-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 k1([p,g],x)(n)}function jx(n,a,r="ltr"){const i=Tc(a),o=a.scrollbar.paddingStart+a.scrollbar.paddingEnd,c=a.scrollbar.size-o,h=a.content-a.viewport,m=c-i,p=r==="ltr"?[0,h]:[h*-1,0],g=lm(n,p);return k1([0,h],[0,m])(g)}function k1(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 A1(n,a){return n>0&&n<a}var FM=(n,a=()=>{})=>{let r={left:n.scrollLeft,top:n.scrollTop},i=0;return(function o(){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(o)})(),()=>window.cancelAnimationFrame(i)};function Rc(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 Mi(n,a){const r=nt(a);lt(()=>{let i=0;if(n){const o=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(r)});return o.observe(n),()=>{window.cancelAnimationFrame(i),o.unobserve(n)}}},[n,r])}var ZM=w1,PM=S1,JM=R1;function D1({className:n,children:a,...r}){return u.jsxs(ZM,{"data-slot":"scroll-area",className:he("relative",n),...r,children:[u.jsx(PM,{"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(IM,{}),u.jsx(JM,{})]})}function IM({className:n,orientation:a="vertical",...r}){return u.jsx(N1,{"data-slot":"scroll-area-scrollbar",orientation:a,className:he("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(T1,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}var WM=Nb[" useInsertionEffect ".trim().toString()]||lt;function oa({prop:n,defaultProp:a,onChange:r=()=>{},caller:i}){const[o,c,h]=e4({defaultProp:a,onChange:r}),m=n!==void 0,p=m?n:o;{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 b=t4(y)?y(n):y;b!==n&&((x=h.current)==null||x.call(h,b))}else c(y)},[m,n,c,h]);return[p,g]}function e4({defaultProp:n,onChange:a}){const[r,i]=v.useState(n),o=v.useRef(r),c=v.useRef(a);return WM(()=>{c.current=a},[a]),v.useEffect(()=>{var h;o.current!==r&&((h=c.current)==null||h.call(c,r),o.current=r)},[r,o]),[r,i,c]}function t4(n){return typeof n=="function"}function $i(n){const a=n+"CollectionProvider",[r,i]=bt(a),[o,c]=r(a,{collectionRef:{current:null},itemMap:new Map}),h=S=>{const{scope:C,children:_}=S,T=ut.useRef(null),R=ut.useRef(new Map).current;return u.jsx(o,{scope:C,itemMap:R,collectionRef:T,children:_})};h.displayName=a;const m=n+"CollectionSlot",p=hr(m),g=ut.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",b=hr(y),j=ut.forwardRef((S,C)=>{const{scope:_,children:T,...R}=S,D=ut.useRef(null),U=we(C,D),K=c(y,_);return ut.useEffect(()=>(K.itemMap.set(D,{ref:D,...R}),()=>void K.itemMap.delete(D))),u.jsx(b,{[x]:"",ref:U,children:T})});j.displayName=y;function N(S){const C=c(n+"CollectionConsumer",S);return ut.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},N,i]}function n4(n,a=globalThis==null?void 0:globalThis.document){const r=nt(n);v.useEffect(()=>{const i=o=>{o.key==="Escape"&&r(o)};return a.addEventListener("keydown",i,{capture:!0}),()=>a.removeEventListener("keydown",i,{capture:!0})},[r,a])}var a4="DismissableLayer",rm="dismissableLayer.update",l4="dismissableLayer.pointerDownOutside",r4="dismissableLayer.focusOutside",Sx,O1=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qi=v.forwardRef((n,a)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:c,onInteractOutside:h,onDismiss:m,...p}=n,g=v.useContext(O1),[y,x]=v.useState(null),b=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,j]=v.useState({}),N=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>=_,U=o4(H=>{const q=H.target,G=[...g.branches].some(ee=>ee.contains(q));!D||G||(o==null||o(H),h==null||h(H),H.defaultPrevented||m==null||m())},b),K=u4(H=>{const q=H.target;[...g.branches].some(G=>G.contains(q))||(c==null||c(H),h==null||h(H),H.defaultPrevented||m==null||m())},b);return n4(H=>{T===g.layers.size-1&&(i==null||i(H),!H.defaultPrevented&&m&&(H.preventDefault(),m()))},b),v.useEffect(()=>{if(y)return r&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(Sx=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(y)),g.layers.add(y),Nx(),()=>{r&&g.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=Sx)}},[y,b,r,g]),v.useEffect(()=>()=>{y&&(g.layers.delete(y),g.layersWithOutsidePointerEventsDisabled.delete(y),Nx())},[y,g]),v.useEffect(()=>{const H=()=>j({});return document.addEventListener(rm,H),()=>document.removeEventListener(rm,H)},[]),u.jsx(se.div,{...p,ref:N,style:{pointerEvents:R?D?"auto":"none":void 0,...n.style},onFocusCapture:ne(n.onFocusCapture,K.onFocusCapture),onBlurCapture:ne(n.onBlurCapture,K.onBlurCapture),onPointerDownCapture:ne(n.onPointerDownCapture,U.onPointerDownCapture)})});Qi.displayName=a4;var i4="DismissableLayerBranch",s4=v.forwardRef((n,a)=>{const r=v.useContext(O1),i=v.useRef(null),o=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(se.div,{...n,ref:o})});s4.displayName=i4;function o4(n,a=globalThis==null?void 0:globalThis.document){const r=nt(n),i=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const c=m=>{if(m.target&&!i.current){let p=function(){z1(l4,r,g,{discrete:!0})};const g={originalEvent:m};m.pointerType==="touch"?(a.removeEventListener("click",o.current),o.current=p,a.addEventListener("click",o.current,{once:!0})):p()}else a.removeEventListener("click",o.current);i.current=!1},h=window.setTimeout(()=>{a.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(h),a.removeEventListener("pointerdown",c),a.removeEventListener("click",o.current)}},[a,r]),{onPointerDownCapture:()=>i.current=!0}}function u4(n,a=globalThis==null?void 0:globalThis.document){const r=nt(n),i=v.useRef(!1);return v.useEffect(()=>{const o=c=>{c.target&&!i.current&&z1(r4,r,{originalEvent:c},{discrete:!1})};return a.addEventListener("focusin",o),()=>a.removeEventListener("focusin",o)},[a,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Nx(){const n=new CustomEvent(rm);document.dispatchEvent(n)}function z1(n,a,r,{discrete:i}){const o=r.originalEvent.target,c=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:r});a&&o.addEventListener(n,a,{once:!0}),i?uc(o,c):o.dispatchEvent(c)}var Ch=0;function Gm(){v.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??Ex()),document.body.insertAdjacentElement("beforeend",n[1]??Ex()),Ch++,()=>{Ch===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),Ch--}},[])}function Ex(){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 _h="focusScope.autoFocusOnMount",Th="focusScope.autoFocusOnUnmount",Cx={bubbles:!1,cancelable:!0},c4="FocusScope",Mc=v.forwardRef((n,a)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:o,onUnmountAutoFocus:c,...h}=n,[m,p]=v.useState(null),g=nt(o),y=nt(c),x=v.useRef(null),b=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:gl(x.current,{select:!0})},C=function(R){if(j.paused||!m)return;const D=R.relatedTarget;D!==null&&(m.contains(D)||gl(x.current,{select:!0}))},_=function(R){if(document.activeElement===document.body)for(const D of R)D.removedNodes.length>0&&gl(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){Tx.add(j);const S=document.activeElement;if(!m.contains(S)){const C=new CustomEvent(_h,Cx);m.addEventListener(_h,g),m.dispatchEvent(C),C.defaultPrevented||(d4(v4(L1(m)),{select:!0}),document.activeElement===S&&gl(m))}return()=>{m.removeEventListener(_h,g),setTimeout(()=>{const C=new CustomEvent(Th,Cx);m.addEventListener(Th,y),m.dispatchEvent(C),C.defaultPrevented||gl(S??document.body,{select:!0}),m.removeEventListener(Th,y),Tx.remove(j)},0)}}},[m,g,y,j]);const N=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]=f4(T);R&&D?!S.shiftKey&&_===D?(S.preventDefault(),r&&gl(R,{select:!0})):S.shiftKey&&_===R&&(S.preventDefault(),r&&gl(D,{select:!0})):_===T&&S.preventDefault()}},[r,i,j.paused]);return u.jsx(se.div,{tabIndex:-1,...h,ref:b,onKeyDown:N})});Mc.displayName=c4;function d4(n,{select:a=!1}={}){const r=document.activeElement;for(const i of n)if(gl(i,{select:a}),document.activeElement!==r)return}function f4(n){const a=L1(n),r=_x(a,n),i=_x(a.reverse(),n);return[r,i]}function L1(n){const a=[],r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)a.push(r.currentNode);return a}function _x(n,a){for(const r of n)if(!h4(r,{upTo:a}))return r}function h4(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 m4(n){return n instanceof HTMLInputElement&&"select"in n}function gl(n,{select:a=!1}={}){if(n&&n.focus){const r=document.activeElement;n.focus({preventScroll:!0}),n!==r&&m4(n)&&a&&n.select()}}var Tx=p4();function p4(){let n=[];return{add(a){const r=n[0];a!==r&&(r==null||r.pause()),n=Rx(n,a),n.unshift(a)},remove(a){var r;n=Rx(n,a),(r=n[0])==null||r.resume()}}}function Rx(n,a){const r=[...n],i=r.indexOf(a);return i!==-1&&r.splice(i,1),r}function v4(n){return n.filter(a=>a.tagName!=="A")}var g4=Nb[" useId ".trim().toString()]||(()=>{}),y4=0;function Dl(n){const[a,r]=v.useState(g4());return lt(()=>{r(i=>i??String(y4++))},[n]),a?`radix-${a}`:""}const x4=["top","right","bottom","left"],kl=Math.min,dn=Math.max,fc=Math.round,Yu=Math.floor,ra=n=>({x:n,y:n}),b4={left:"right",right:"left",bottom:"top",top:"bottom"},w4={start:"end",end:"start"};function im(n,a,r){return dn(n,kl(a,r))}function Ha(n,a){return typeof n=="function"?n(a):n}function Ba(n){return n.split("-")[0]}function Gi(n){return n.split("-")[1]}function Ym(n){return n==="x"?"y":"x"}function Vm(n){return n==="y"?"height":"width"}const j4=new Set(["top","bottom"]);function la(n){return j4.has(Ba(n))?"y":"x"}function Km(n){return Ym(la(n))}function S4(n,a,r){r===void 0&&(r=!1);const i=Gi(n),o=Km(n),c=Vm(o);let h=o==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return a.reference[c]>a.floating[c]&&(h=hc(h)),[h,hc(h)]}function N4(n){const a=hc(n);return[sm(n),a,sm(a)]}function sm(n){return n.replace(/start|end/g,a=>w4[a])}const Mx=["left","right"],kx=["right","left"],E4=["top","bottom"],C4=["bottom","top"];function _4(n,a,r){switch(n){case"top":case"bottom":return r?a?kx:Mx:a?Mx:kx;case"left":case"right":return a?E4:C4;default:return[]}}function T4(n,a,r,i){const o=Gi(n);let c=_4(Ba(n),r==="start",i);return o&&(c=c.map(h=>h+"-"+o),a&&(c=c.concat(c.map(sm)))),c}function hc(n){return n.replace(/left|right|bottom|top/g,a=>b4[a])}function R4(n){return{top:0,right:0,bottom:0,left:0,...n}}function U1(n){return typeof n!="number"?R4(n):{top:n,right:n,bottom:n,left:n}}function mc(n){const{x:a,y:r,width:i,height:o}=n;return{width:i,height:o,top:r,left:a,right:a+i,bottom:r+o,x:a,y:r}}function Ax(n,a,r){let{reference:i,floating:o}=n;const c=la(a),h=Km(a),m=Vm(h),p=Ba(a),g=c==="y",y=i.x+i.width/2-o.width/2,x=i.y+i.height/2-o.height/2,b=i[m]/2-o[m]/2;let j;switch(p){case"top":j={x:y,y:i.y-o.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-o.width,y:x};break;default:j={x:i.x,y:i.y}}switch(Gi(a)){case"start":j[h]-=b*(r&&g?-1:1);break;case"end":j[h]+=b*(r&&g?-1:1);break}return j}const M4=async(n,a,r)=>{const{placement:i="bottom",strategy:o="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:o}),{x:y,y:x}=Ax(g,i,p),b=i,j={},N=0;for(let S=0;S<m.length;S++){const{name:C,fn:_}=m[S],{x:T,y:R,data:D,reset:U}=await _({x:y,y:x,initialPlacement:i,placement:b,strategy:o,middlewareData:j,rects:g,platform:h,elements:{reference:n,floating:a}});y=T??y,x=R??x,j={...j,[C]:{...j[C],...D}},U&&N<=50&&(N++,typeof U=="object"&&(U.placement&&(b=U.placement),U.rects&&(g=U.rects===!0?await h.getElementRects({reference:n,floating:a,strategy:o}):U.rects),{x:y,y:x}=Ax(g,b,p)),S=-1)}return{x:y,y:x,placement:b,strategy:o,middlewareData:j}};async function to(n,a){var r;a===void 0&&(a={});const{x:i,y:o,platform:c,rects:h,elements:m,strategy:p}=n,{boundary:g="clippingAncestors",rootBoundary:y="viewport",elementContext:x="floating",altBoundary:b=!1,padding:j=0}=Ha(a,n),N=U1(j),S=m[b?x==="floating"?"reference":"floating":x],C=mc(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:o,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=mc(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:_,offsetParent:T,strategy:p}):_);return{top:(C.top-D.top+N.top)/R.y,bottom:(D.bottom-C.bottom+N.bottom)/R.y,left:(C.left-D.left+N.left)/R.x,right:(D.right-C.right+N.right)/R.x}}const k4=n=>({name:"arrow",options:n,async fn(a){const{x:r,y:i,placement:o,rects:c,platform:h,elements:m,middlewareData:p}=a,{element:g,padding:y=0}=Ha(n,a)||{};if(g==null)return{};const x=U1(y),b={x:r,y:i},j=Km(o),N=Vm(j),S=await h.getDimensions(g),C=j==="y",_=C?"top":"left",T=C?"bottom":"right",R=C?"clientHeight":"clientWidth",D=c.reference[N]+c.reference[j]-b[j]-c.floating[N],U=b[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[N]);const q=D/2-U/2,G=H/2-S[N]/2-1,ee=kl(x[_],G),ue=kl(x[T],G),ce=ee,ie=H-S[N]-ue,ae=H/2-S[N]/2+q,re=im(ce,ae,ie),z=!p.arrow&&Gi(o)!=null&&ae!==re&&c.reference[N]/2-(ae<ce?ee:ue)-S[N]/2<0,J=z?ae<ce?ae-ce:ae-ie:0;return{[j]:b[j]+J,data:{[j]:re,centerOffset:ae-re-J,...z&&{alignmentOffset:J}},reset:z}}}),A4=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(a){var r,i;const{placement:o,middlewareData:c,rects:h,initialPlacement:m,platform:p,elements:g}=a,{mainAxis:y=!0,crossAxis:x=!0,fallbackPlacements:b,fallbackStrategy:j="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:S=!0,...C}=Ha(n,a);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const _=Ba(o),T=la(m),R=Ba(m)===m,D=await(p.isRTL==null?void 0:p.isRTL(g.floating)),U=b||(R||!S?[hc(m)]:N4(m)),K=N!=="none";!b&&K&&U.push(...T4(m,S,N,D));const H=[m,...U],q=await to(a,C),G=[];let ee=((i=c.flip)==null?void 0:i.overflows)||[];if(y&&G.push(q[_]),x){const ae=S4(o,h,D);G.push(q[ae[0]],q[ae[1]])}if(ee=[...ee,{placement:o,overflows:G}],!G.every(ae=>ae<=0)){var ue,ce;const ae=(((ue=c.flip)==null?void 0:ue.index)||0)+1,re=H[ae];if(re&&(!(x==="alignment"&&T!==la(re))||ee.every(J=>la(J.placement)===T?J.overflows[0]>0:!0)))return{data:{index:ae,overflows:ee},reset:{placement:re}};let z=(ce=ee.filter(J=>J.overflows[0]<=0).sort((J,Y)=>J.overflows[1]-Y.overflows[1])[0])==null?void 0:ce.placement;if(!z)switch(j){case"bestFit":{var ie;const J=(ie=ee.filter(Y=>{if(K){const X=la(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:ie[0];J&&(z=J);break}case"initialPlacement":z=m;break}if(o!==z)return{reset:{placement:z}}}return{}}}};function Dx(n,a){return{top:n.top-a.height,right:n.right-a.width,bottom:n.bottom-a.height,left:n.left-a.width}}function Ox(n){return x4.some(a=>n[a]>=0)}const D4=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(a){const{rects:r}=a,{strategy:i="referenceHidden",...o}=Ha(n,a);switch(i){case"referenceHidden":{const c=await to(a,{...o,elementContext:"reference"}),h=Dx(c,r.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:Ox(h)}}}case"escaped":{const c=await to(a,{...o,altBoundary:!0}),h=Dx(c,r.floating);return{data:{escapedOffsets:h,escaped:Ox(h)}}}default:return{}}}}},q1=new Set(["left","top"]);async function O4(n,a){const{placement:r,platform:i,elements:o}=n,c=await(i.isRTL==null?void 0:i.isRTL(o.floating)),h=Ba(r),m=Gi(r),p=la(r)==="y",g=q1.has(h)?-1:1,y=c&&p?-1:1,x=Ha(a,n);let{mainAxis:b,crossAxis:j,alignmentAxis:N}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.alignmentAxis};return m&&typeof N=="number"&&(j=m==="end"?N*-1:N),p?{x:j*y,y:b*g}:{x:b*g,y:j*y}}const z4=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(a){var r,i;const{x:o,y:c,placement:h,middlewareData:m}=a,p=await O4(a,n);return h===((r=m.offset)==null?void 0:r.placement)&&(i=m.arrow)!=null&&i.alignmentOffset?{}:{x:o+p.x,y:c+p.y,data:{...p,placement:h}}}}},L4=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(a){const{x:r,y:i,placement:o}=a,{mainAxis:c=!0,crossAxis:h=!1,limiter:m={fn:C=>{let{x:_,y:T}=C;return{x:_,y:T}}},...p}=Ha(n,a),g={x:r,y:i},y=await to(a,p),x=la(Ba(o)),b=Ym(x);let j=g[b],N=g[x];if(c){const C=b==="y"?"top":"left",_=b==="y"?"bottom":"right",T=j+y[C],R=j-y[_];j=im(T,j,R)}if(h){const C=x==="y"?"top":"left",_=x==="y"?"bottom":"right",T=N+y[C],R=N-y[_];N=im(T,N,R)}const S=m.fn({...a,[b]:j,[x]:N});return{...S,data:{x:S.x-r,y:S.y-i,enabled:{[b]:c,[x]:h}}}}}},U4=function(n){return n===void 0&&(n={}),{options:n,fn(a){const{x:r,y:i,placement:o,rects:c,middlewareData:h}=a,{offset:m=0,mainAxis:p=!0,crossAxis:g=!0}=Ha(n,a),y={x:r,y:i},x=la(o),b=Ym(x);let j=y[b],N=y[x];const S=Ha(m,a),C=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(p){const R=b==="y"?"height":"width",D=c.reference[b]-c.floating[R]+C.mainAxis,U=c.reference[b]+c.reference[R]-C.mainAxis;j<D?j=D:j>U&&(j=U)}if(g){var _,T;const R=b==="y"?"width":"height",D=q1.has(Ba(o)),U=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);N<U?N=U:N>K&&(N=K)}return{[b]:j,[x]:N}}}},q4=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(a){var r,i;const{placement:o,rects:c,platform:h,elements:m}=a,{apply:p=()=>{},...g}=Ha(n,a),y=await to(a,g),x=Ba(o),b=Gi(o),j=la(o)==="y",{width:N,height:S}=c.floating;let C,_;x==="top"||x==="bottom"?(C=x,_=b===(await(h.isRTL==null?void 0:h.isRTL(m.floating))?"start":"end")?"left":"right"):(_=x,C=b==="end"?"top":"bottom");const T=S-y.top-y.bottom,R=N-y.left-y.right,D=kl(S-y[C],T),U=kl(N-y[_],R),K=!a.middlewareData.shift;let H=D,q=U;if((r=a.middlewareData.shift)!=null&&r.enabled.x&&(q=R),(i=a.middlewareData.shift)!=null&&i.enabled.y&&(H=T),K&&!b){const ee=dn(y.left,0),ue=dn(y.right,0),ce=dn(y.top,0),ie=dn(y.bottom,0);j?q=N-2*(ee!==0||ue!==0?ee+ue:dn(y.left,y.right)):H=S-2*(ce!==0||ie!==0?ce+ie:dn(y.top,y.bottom))}await p({...a,availableWidth:q,availableHeight:H});const G=await h.getDimensions(m.floating);return N!==G.width||S!==G.height?{reset:{rects:!0}}:{}}}};function kc(){return typeof window<"u"}function Yi(n){return H1(n)?(n.nodeName||"").toLowerCase():"#document"}function hn(n){var a;return(n==null||(a=n.ownerDocument)==null?void 0:a.defaultView)||window}function ua(n){var a;return(a=(H1(n)?n.ownerDocument:n.document)||window.document)==null?void 0:a.documentElement}function H1(n){return kc()?n instanceof Node||n instanceof hn(n).Node:!1}function Hn(n){return kc()?n instanceof Element||n instanceof hn(n).Element:!1}function ia(n){return kc()?n instanceof HTMLElement||n instanceof hn(n).HTMLElement:!1}function zx(n){return!kc()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof hn(n).ShadowRoot}const H4=new Set(["inline","contents"]);function vo(n){const{overflow:a,overflowX:r,overflowY:i,display:o}=Bn(n);return/auto|scroll|overlay|hidden|clip/.test(a+i+r)&&!H4.has(o)}const B4=new Set(["table","td","th"]);function $4(n){return B4.has(Yi(n))}const Q4=[":popover-open",":modal"];function Ac(n){return Q4.some(a=>{try{return n.matches(a)}catch{return!1}})}const G4=["transform","translate","scale","rotate","perspective"],Y4=["transform","translate","scale","rotate","perspective","filter"],V4=["paint","layout","strict","content"];function Xm(n){const a=Fm(),r=Hn(n)?Bn(n):n;return G4.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)||Y4.some(i=>(r.willChange||"").includes(i))||V4.some(i=>(r.contain||"").includes(i))}function K4(n){let a=Al(n);for(;ia(a)&&!ki(a);){if(Xm(a))return a;if(Ac(a))return null;a=Al(a)}return null}function Fm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const X4=new Set(["html","body","#document"]);function ki(n){return X4.has(Yi(n))}function Bn(n){return hn(n).getComputedStyle(n)}function Dc(n){return Hn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Al(n){if(Yi(n)==="html")return n;const a=n.assignedSlot||n.parentNode||zx(n)&&n.host||ua(n);return zx(a)?a.host:a}function B1(n){const a=Al(n);return ki(a)?n.ownerDocument?n.ownerDocument.body:n.body:ia(a)&&vo(a)?a:B1(a)}function no(n,a,r){var i;a===void 0&&(a=[]),r===void 0&&(r=!0);const o=B1(n),c=o===((i=n.ownerDocument)==null?void 0:i.body),h=hn(o);if(c){const m=om(h);return a.concat(h,h.visualViewport||[],vo(o)?o:[],m&&r?no(m):[])}return a.concat(o,no(o,[],r))}function om(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function $1(n){const a=Bn(n);let r=parseFloat(a.width)||0,i=parseFloat(a.height)||0;const o=ia(n),c=o?n.offsetWidth:r,h=o?n.offsetHeight:i,m=fc(r)!==c||fc(i)!==h;return m&&(r=c,i=h),{width:r,height:i,$:m}}function Zm(n){return Hn(n)?n:n.contextElement}function mi(n){const a=Zm(n);if(!ia(a))return ra(1);const r=a.getBoundingClientRect(),{width:i,height:o,$:c}=$1(a);let h=(c?fc(r.width):r.width)/i,m=(c?fc(r.height):r.height)/o;return(!h||!Number.isFinite(h))&&(h=1),(!m||!Number.isFinite(m))&&(m=1),{x:h,y:m}}const F4=ra(0);function Q1(n){const a=hn(n);return!Fm()||!a.visualViewport?F4:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function Z4(n,a,r){return a===void 0&&(a=!1),!r||a&&r!==hn(n)?!1:a}function mr(n,a,r,i){a===void 0&&(a=!1),r===void 0&&(r=!1);const o=n.getBoundingClientRect(),c=Zm(n);let h=ra(1);a&&(i?Hn(i)&&(h=mi(i)):h=mi(n));const m=Z4(c,r,i)?Q1(c):ra(0);let p=(o.left+m.x)/h.x,g=(o.top+m.y)/h.y,y=o.width/h.x,x=o.height/h.y;if(c){const b=hn(c),j=i&&Hn(i)?hn(i):i;let N=b,S=om(N);for(;S&&i&&j!==N;){const C=mi(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,N=hn(S),S=om(N)}}return mc({width:y,height:x,x:p,y:g})}function Oc(n,a){const r=Dc(n).scrollLeft;return a?a.left+r:mr(ua(n)).left+r}function G1(n,a){const r=n.getBoundingClientRect(),i=r.left+a.scrollLeft-Oc(n,r),o=r.top+a.scrollTop;return{x:i,y:o}}function P4(n){let{elements:a,rect:r,offsetParent:i,strategy:o}=n;const c=o==="fixed",h=ua(i),m=a?Ac(a.floating):!1;if(i===h||m&&c)return r;let p={scrollLeft:0,scrollTop:0},g=ra(1);const y=ra(0),x=ia(i);if((x||!x&&!c)&&((Yi(i)!=="body"||vo(h))&&(p=Dc(i)),ia(i))){const j=mr(i);g=mi(i),y.x=j.x+i.clientLeft,y.y=j.y+i.clientTop}const b=h&&!x&&!c?G1(h,p):ra(0);return{width:r.width*g.x,height:r.height*g.y,x:r.x*g.x-p.scrollLeft*g.x+y.x+b.x,y:r.y*g.y-p.scrollTop*g.y+y.y+b.y}}function J4(n){return Array.from(n.getClientRects())}function I4(n){const a=ua(n),r=Dc(n),i=n.ownerDocument.body,o=dn(a.scrollWidth,a.clientWidth,i.scrollWidth,i.clientWidth),c=dn(a.scrollHeight,a.clientHeight,i.scrollHeight,i.clientHeight);let h=-r.scrollLeft+Oc(n);const m=-r.scrollTop;return Bn(i).direction==="rtl"&&(h+=dn(a.clientWidth,i.clientWidth)-o),{width:o,height:c,x:h,y:m}}const Lx=25;function W4(n,a){const r=hn(n),i=ua(n),o=r.visualViewport;let c=i.clientWidth,h=i.clientHeight,m=0,p=0;if(o){c=o.width,h=o.height;const y=Fm();(!y||y&&a==="fixed")&&(m=o.offsetLeft,p=o.offsetTop)}const g=Oc(i);if(g<=0){const y=i.ownerDocument,x=y.body,b=getComputedStyle(x),j=y.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,N=Math.abs(i.clientWidth-x.clientWidth-j);N<=Lx&&(c-=N)}else g<=Lx&&(c+=g);return{width:c,height:h,x:m,y:p}}const ek=new Set(["absolute","fixed"]);function tk(n,a){const r=mr(n,!0,a==="fixed"),i=r.top+n.clientTop,o=r.left+n.clientLeft,c=ia(n)?mi(n):ra(1),h=n.clientWidth*c.x,m=n.clientHeight*c.y,p=o*c.x,g=i*c.y;return{width:h,height:m,x:p,y:g}}function Ux(n,a,r){let i;if(a==="viewport")i=W4(n,r);else if(a==="document")i=I4(ua(n));else if(Hn(a))i=tk(a,r);else{const o=Q1(n);i={x:a.x-o.x,y:a.y-o.y,width:a.width,height:a.height}}return mc(i)}function Y1(n,a){const r=Al(n);return r===a||!Hn(r)||ki(r)?!1:Bn(r).position==="fixed"||Y1(r,a)}function nk(n,a){const r=a.get(n);if(r)return r;let i=no(n,[],!1).filter(m=>Hn(m)&&Yi(m)!=="body"),o=null;const c=Bn(n).position==="fixed";let h=c?Al(n):n;for(;Hn(h)&&!ki(h);){const m=Bn(h),p=Xm(h);!p&&m.position==="fixed"&&(o=null),(c?!p&&!o:!p&&m.position==="static"&&o&&ek.has(o.position)||vo(h)&&!p&&Y1(n,h))?i=i.filter(g=>g!==h):o=m,h=Al(h)}return a.set(n,i),i}function ak(n){let{element:a,boundary:r,rootBoundary:i,strategy:o}=n;const c=[...r==="clippingAncestors"?Ac(a)?[]:nk(a,this._c):[].concat(r),i],h=c[0],m=c.reduce((p,g)=>{const y=Ux(a,g,o);return p.top=dn(y.top,p.top),p.right=kl(y.right,p.right),p.bottom=kl(y.bottom,p.bottom),p.left=dn(y.left,p.left),p},Ux(a,h,o));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function lk(n){const{width:a,height:r}=$1(n);return{width:a,height:r}}function rk(n,a,r){const i=ia(a),o=ua(a),c=r==="fixed",h=mr(n,!0,c,a);let m={scrollLeft:0,scrollTop:0};const p=ra(0);function g(){p.x=Oc(o)}if(i||!i&&!c)if((Yi(a)!=="body"||vo(o))&&(m=Dc(a)),i){const j=mr(a,!0,c,a);p.x=j.x+a.clientLeft,p.y=j.y+a.clientTop}else o&&g();c&&!i&&o&&g();const y=o&&!i&&!c?G1(o,m):ra(0),x=h.left+m.scrollLeft-p.x-y.x,b=h.top+m.scrollTop-p.y-y.y;return{x,y:b,width:h.width,height:h.height}}function Rh(n){return Bn(n).position==="static"}function qx(n,a){if(!ia(n)||Bn(n).position==="fixed")return null;if(a)return a(n);let r=n.offsetParent;return ua(n)===r&&(r=r.ownerDocument.body),r}function V1(n,a){const r=hn(n);if(Ac(n))return r;if(!ia(n)){let o=Al(n);for(;o&&!ki(o);){if(Hn(o)&&!Rh(o))return o;o=Al(o)}return r}let i=qx(n,a);for(;i&&$4(i)&&Rh(i);)i=qx(i,a);return i&&ki(i)&&Rh(i)&&!Xm(i)?r:i||K4(n)||r}const ik=async function(n){const a=this.getOffsetParent||V1,r=this.getDimensions,i=await r(n.floating);return{reference:rk(n.reference,await a(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function sk(n){return Bn(n).direction==="rtl"}const ok={convertOffsetParentRelativeRectToViewportRelativeRect:P4,getDocumentElement:ua,getClippingRect:ak,getOffsetParent:V1,getElementRects:ik,getClientRects:J4,getDimensions:lk,getScale:mi,isElement:Hn,isRTL:sk};function K1(n,a){return n.x===a.x&&n.y===a.y&&n.width===a.width&&n.height===a.height}function uk(n,a){let r=null,i;const o=ua(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:b,height:j}=g;if(m||a(),!b||!j)return;const N=Yu(x),S=Yu(o.clientWidth-(y+b)),C=Yu(o.clientHeight-(x+j)),_=Yu(y),T={rootMargin:-N+"px "+-S+"px "+-C+"px "+-_+"px",threshold:dn(0,kl(1,p))||1};let R=!0;function D(U){const K=U[0].intersectionRatio;if(K!==p){if(!R)return h();K?h(!1,K):i=setTimeout(()=>{h(!1,1e-7)},1e3)}K===1&&!K1(g,n.getBoundingClientRect())&&h(),R=!1}try{r=new IntersectionObserver(D,{...T,root:o.ownerDocument})}catch{r=new IntersectionObserver(D,T)}r.observe(n)}return h(!0),c}function ck(n,a,r,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:c=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:p=!1}=i,g=Zm(n),y=o||c?[...g?no(g):[],...no(a)]:[];y.forEach(_=>{o&&_.addEventListener("scroll",r,{passive:!0}),c&&_.addEventListener("resize",r)});const x=g&&m?uk(g,r):null;let b=-1,j=null;h&&(j=new ResizeObserver(_=>{let[T]=_;T&&T.target===g&&j&&(j.unobserve(a),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var R;(R=j)==null||R.observe(a)})),r()}),g&&!p&&j.observe(g),j.observe(a));let N,S=p?mr(n):null;p&&C();function C(){const _=mr(n);S&&!K1(S,_)&&r(),S=_,N=requestAnimationFrame(C)}return r(),()=>{var _;y.forEach(T=>{o&&T.removeEventListener("scroll",r),c&&T.removeEventListener("resize",r)}),x==null||x(),(_=j)==null||_.disconnect(),j=null,p&&cancelAnimationFrame(N)}}const dk=z4,fk=L4,hk=A4,mk=q4,pk=D4,Hx=k4,vk=U4,gk=(n,a,r)=>{const i=new Map,o={platform:ok,...r},c={...o.platform,_c:i};return M4(n,a,{...o,platform:c})};var yk=typeof document<"u",xk=function(){},ec=yk?v.useLayoutEffect:xk;function pc(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,o;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(!pc(n[i],a[i]))return!1;return!0}if(o=Object.keys(n),r=o.length,r!==Object.keys(a).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(a,o[i]))return!1;for(i=r;i--!==0;){const c=o[i];if(!(c==="_owner"&&n.$$typeof)&&!pc(n[c],a[c]))return!1}return!0}return n!==n&&a!==a}function X1(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Bx(n,a){const r=X1(n);return Math.round(a*r)/r}function Mh(n){const a=v.useRef(n);return ec(()=>{a.current=n}),a}function bk(n){n===void 0&&(n={});const{placement:a="bottom",strategy:r="absolute",middleware:i=[],platform:o,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}),[b,j]=v.useState(i);pc(b,i)||j(i);const[N,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||N,U=h||C,K=v.useRef(null),H=v.useRef(null),q=v.useRef(y),G=p!=null,ee=Mh(p),ue=Mh(o),ce=Mh(g),ie=v.useCallback(()=>{if(!K.current||!H.current)return;const Y={placement:a,strategy:r,middleware:b};ue.current&&(Y.platform=ue.current),gk(K.current,H.current,Y).then(X=>{const de={...X,isPositioned:ce.current!==!1};ae.current&&!pc(q.current,de)&&(q.current=de,fo.flushSync(()=>{x(de)}))})},[b,a,r,ue,ce]);ec(()=>{g===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,x(Y=>({...Y,isPositioned:!1})))},[g]);const ae=v.useRef(!1);ec(()=>(ae.current=!0,()=>{ae.current=!1}),[]),ec(()=>{if(D&&(K.current=D),U&&(H.current=U),D&&U){if(ee.current)return ee.current(D,U,ie);ie()}},[D,U,ie,ee,G]);const re=v.useMemo(()=>({reference:K,floating:H,setReference:T,setFloating:R}),[T,R]),z=v.useMemo(()=>({reference:D,floating:U}),[D,U]),J=v.useMemo(()=>{const Y={position:r,left:0,top:0};if(!z.floating)return Y;const X=Bx(z.floating,y.x),de=Bx(z.floating,y.y);return m?{...Y,transform:"translate("+X+"px, "+de+"px)",...X1(z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:X,top:de}},[r,m,z.floating,y.x,y.y]);return v.useMemo(()=>({...y,update:ie,refs:re,elements:z,floatingStyles:J}),[y,ie,re,z,J])}const wk=n=>{function a(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:n,fn(r){const{element:i,padding:o}=typeof n=="function"?n(r):n;return i&&a(i)?i.current!=null?Hx({element:i.current,padding:o}).fn(r):{}:i?Hx({element:i,padding:o}).fn(r):{}}}},jk=(n,a)=>({...dk(n),options:[n,a]}),Sk=(n,a)=>({...fk(n),options:[n,a]}),Nk=(n,a)=>({...vk(n),options:[n,a]}),Ek=(n,a)=>({...hk(n),options:[n,a]}),Ck=(n,a)=>({...mk(n),options:[n,a]}),_k=(n,a)=>({...pk(n),options:[n,a]}),Tk=(n,a)=>({...wk(n),options:[n,a]});var Rk="Arrow",F1=v.forwardRef((n,a)=>{const{children:r,width:i=10,height:o=5,...c}=n;return u.jsx(se.svg,{...c,ref:a,width:i,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});F1.displayName=Rk;var Mk=F1;function zc(n){const[a,r]=v.useState(void 0);return lt(()=>{if(n){r({width:n.offsetWidth,height:n.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const c=o[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 Z1="Popper",[P1,Vi]=bt(Z1),[f6,J1]=P1(Z1),I1="PopperAnchor",W1=v.forwardRef((n,a)=>{const{__scopePopper:r,virtualRef:i,...o}=n,c=J1(I1,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(se.div,{...o,ref:m})});W1.displayName=I1;var Pm="PopperContent",[kk,Ak]=P1(Pm),ew=v.forwardRef((n,a)=>{var r,i,o,c,h,m;const{__scopePopper:p,side:g="bottom",sideOffset:y=0,align:x="center",alignOffset:b=0,arrowPadding:j=0,avoidCollisions:N=!0,collisionBoundary:S=[],collisionPadding:C=0,sticky:_="partial",hideWhenDetached:T=!1,updatePositionStrategy:R="optimized",onPlaced:D,...U}=n,K=J1(Pm,p),[H,q]=v.useState(null),G=we(a,Ot=>q(Ot)),[ee,ue]=v.useState(null),ce=zc(ee),ie=(ce==null?void 0:ce.width)??0,ae=(ce==null?void 0:ce.height)??0,re=g+(x!=="center"?"-"+x:""),z=typeof C=="number"?C:{top:0,right:0,bottom:0,left:0,...C},J=Array.isArray(S)?S:[S],Y=J.length>0,X={padding:z,boundary:J.filter(Ok),altBoundary:Y},{refs:de,floatingStyles:k,placement:F,isPositioned:W,middlewareData:le}=bk({strategy:"fixed",placement:re,whileElementsMounted:(...Ot)=>ck(...Ot,{animationFrame:R==="always"}),elements:{reference:K.anchor},middleware:[jk({mainAxis:y+ae,alignmentAxis:b}),N&&Sk({mainAxis:!0,crossAxis:!1,limiter:_==="partial"?Nk():void 0,...X}),N&&Ek({...X}),Ck({...X,apply:({elements:Ot,rects:It,availableWidth:fa,availableHeight:ha})=>{const{width:Jc,height:bo}=It.reference,Ga=Ot.floating.style;Ga.setProperty("--radix-popper-available-width",`${fa}px`),Ga.setProperty("--radix-popper-available-height",`${ha}px`),Ga.setProperty("--radix-popper-anchor-width",`${Jc}px`),Ga.setProperty("--radix-popper-anchor-height",`${bo}px`)}}),ee&&Tk({element:ee,padding:j}),zk({arrowWidth:ie,arrowHeight:ae}),T&&_k({strategy:"referenceHidden",...X})]}),[ve,Se]=aw(F),te=nt(D);lt(()=>{W&&(te==null||te())},[W,te]);const Ne=(r=le.arrow)==null?void 0:r.x,ye=(i=le.arrow)==null?void 0:i.y,Ee=((o=le.arrow)==null?void 0:o.centerOffset)!==0,[$e,Ke]=v.useState();return lt(()=>{H&&Ke(window.getComputedStyle(H).zIndex)},[H]),u.jsx("div",{ref:de.setFloating,"data-radix-popper-content-wrapper":"",style:{...k,transform:W?k.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$e,"--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(kk,{scope:p,placedSide:ve,onArrowChange:ue,arrowX:Ne,arrowY:ye,shouldHideArrow:Ee,children:u.jsx(se.div,{"data-side":ve,"data-align":Se,...U,ref:G,style:{...U.style,animation:W?void 0:"none"}})})})});ew.displayName=Pm;var tw="PopperArrow",Dk={top:"bottom",right:"left",bottom:"top",left:"right"},nw=v.forwardRef(function(n,a){const{__scopePopper:r,...i}=n,o=Ak(tw,r),c=Dk[o.placedSide];return u.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:u.jsx(Mk,{...i,ref:a,style:{...i.style,display:"block"}})})});nw.displayName=tw;function Ok(n){return n!==null}var zk=n=>({name:"transformOrigin",options:n,fn(a){var r,i,o;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,b]=aw(c),j={start:"0%",center:"50%",end:"100%"}[b],N=(((i=m.arrow)==null?void 0:i.x)??0)+g/2,S=(((o=m.arrow)==null?void 0:o.y)??0)+y/2;let C="",_="";return x==="bottom"?(C=p?j:`${N}px`,_=`${-y}px`):x==="top"?(C=p?j:`${N}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 aw(n){const[a,r="center"]=n.split("-");return[a,r]}var Jm=W1,Im=ew,Wm=nw,Lk="Portal",Uk=v.forwardRef((n,a)=>{var r;const{container:i,...o}=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?Yb.createPortal(u.jsx(se.div,{...o,ref:a}),m):null});Uk.displayName=Lk;var kh="rovingFocusGroup.onEntryFocus",qk={bubbles:!1,cancelable:!0},go="RovingFocusGroup",[um,lw,Hk]=$i(go),[Bk,Ki]=bt(go,[Hk]),[$k,Qk]=Bk(go),rw=v.forwardRef((n,a)=>u.jsx(um.Provider,{scope:n.__scopeRovingFocusGroup,children:u.jsx(um.Slot,{scope:n.__scopeRovingFocusGroup,children:u.jsx(Gk,{...n,ref:a})})}));rw.displayName=go;var Gk=v.forwardRef((n,a)=>{const{__scopeRovingFocusGroup:r,orientation:i,loop:o=!1,dir:c,currentTabStopId:h,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:p,onEntryFocus:g,preventScrollOnEntryFocus:y=!1,...x}=n,b=v.useRef(null),j=we(a,b),N=Bi(c),[S,C]=oa({prop:h,defaultProp:m??null,onChange:p,caller:go}),[_,T]=v.useState(!1),R=nt(g),D=lw(r),U=v.useRef(!1),[K,H]=v.useState(0);return v.useEffect(()=>{const q=b.current;if(q)return q.addEventListener(kh,R),()=>q.removeEventListener(kh,R)},[R]),u.jsx($k,{scope:r,orientation:i,dir:N,loop:o,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(se.div,{tabIndex:_||K===0?-1:0,"data-orientation":i,...x,ref:j,style:{outline:"none",...n.style},onMouseDown:ne(n.onMouseDown,()=>{U.current=!0}),onFocus:ne(n.onFocus,q=>{const G=!U.current;if(q.target===q.currentTarget&&G&&!_){const ee=new CustomEvent(kh,qk);if(q.currentTarget.dispatchEvent(ee),!ee.defaultPrevented){const ue=D().filter(re=>re.focusable),ce=ue.find(re=>re.active),ie=ue.find(re=>re.id===S),ae=[ce,ie,...ue].filter(Boolean).map(re=>re.ref.current);ow(ae,y)}}U.current=!1}),onBlur:ne(n.onBlur,()=>T(!1))})})}),iw="RovingFocusGroupItem",sw=v.forwardRef((n,a)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:o=!1,tabStopId:c,children:h,...m}=n,p=Dl(),g=c||p,y=Qk(iw,r),x=y.currentTabStopId===g,b=lw(r),{onFocusableItemAdd:j,onFocusableItemRemove:N,currentTabStopId:S}=y;return v.useEffect(()=>{if(i)return j(),()=>N()},[i,j,N]),u.jsx(um.ItemSlot,{scope:r,id:g,focusable:i,active:o,children:u.jsx(se.span,{tabIndex:x?0:-1,"data-orientation":y.orientation,...m,ref:a,onMouseDown:ne(n.onMouseDown,C=>{i?y.onItemFocus(g):C.preventDefault()}),onFocus:ne(n.onFocus,()=>y.onItemFocus(g)),onKeyDown:ne(n.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){y.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const _=Kk(C,y.orientation,y.dir);if(_!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let T=b().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?Xk(T,R+1):T.slice(R+1)}setTimeout(()=>ow(T))}}),children:typeof h=="function"?h({isCurrentTabStop:x,hasTabStop:S!=null}):h})})});sw.displayName=iw;var Yk={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Vk(n,a){return a!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function Kk(n,a,r){const i=Vk(n.key,r);if(!(a==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(a==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return Yk[i]}function ow(n,a=!1){const r=document.activeElement;for(const i of n)if(i===r||(i.focus({preventScroll:a}),document.activeElement!==r))return}function Xk(n,a){return n.map((r,i)=>n[(a+i)%n.length])}var ep=rw,tp=sw,Fk=function(n){if(typeof document>"u")return null;var a=Array.isArray(n)?n[0]:n;return a.ownerDocument.body},ui=new WeakMap,Vu=new WeakMap,Ku={},Ah=0,uw=function(n){return n&&(n.host||uw(n.parentNode))},Zk=function(n,a){return a.map(function(r){if(n.contains(r))return r;var i=uw(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})},Pk=function(n,a,r,i){var o=Zk(a,Array.isArray(n)?n:[n]);Ku[r]||(Ku[r]=new WeakMap);var c=Ku[r],h=[],m=new Set,p=new Set(o),g=function(x){!x||m.has(x)||(m.add(x),g(x.parentNode))};o.forEach(g);var y=function(x){!x||p.has(x)||Array.prototype.forEach.call(x.children,function(b){if(m.has(b))y(b);else try{var j=b.getAttribute(i),N=j!==null&&j!=="false",S=(ui.get(b)||0)+1,C=(c.get(b)||0)+1;ui.set(b,S),c.set(b,C),h.push(b),S===1&&N&&Vu.set(b,!0),C===1&&b.setAttribute(r,"true"),N||b.setAttribute(i,"true")}catch(_){console.error("aria-hidden: cannot operate on ",b,_)}})};return y(a),m.clear(),Ah++,function(){h.forEach(function(x){var b=ui.get(x)-1,j=c.get(x)-1;ui.set(x,b),c.set(x,j),b||(Vu.has(x)||x.removeAttribute(i),Vu.delete(x)),j||x.removeAttribute(r)}),Ah--,Ah||(ui=new WeakMap,ui=new WeakMap,Vu=new WeakMap,Ku={})}},np=function(n,a,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),o=Fk(n);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live], script"))),Pk(i,o,r,"aria-hidden")):function(){return null}},aa=function(){return aa=Object.assign||function(n){for(var a,r=1,i=arguments.length;r<i;r++){a=arguments[r];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},aa.apply(this,arguments)};function cw(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 o=0,i=Object.getOwnPropertySymbols(n);o<i.length;o++)a.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(n,i[o])&&(r[i[o]]=n[i[o]]);return r}function Jk(n,a,r){for(var i=0,o=a.length,c;i<o;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 tc="right-scroll-bar-position",nc="width-before-scroll-bar",Ik="with-scroll-bars-hidden",Wk="--removed-body-scroll-bar-size";function Dh(n,a){return typeof n=="function"?n(a):n&&(n.current=a),n}function e3(n,a){var r=v.useState(function(){return{value:n,callback:a,facade:{get current(){return r.value},set current(i){var o=r.value;o!==i&&(r.value=i,r.callback(i,o))}}}})[0];return r.callback=a,r.facade}var t3=typeof window<"u"?v.useLayoutEffect:v.useEffect,$x=new WeakMap;function n3(n,a){var r=e3(null,function(i){return n.forEach(function(o){return Dh(o,i)})});return t3(function(){var i=$x.get(r);if(i){var o=new Set(i),c=new Set(n),h=r.current;o.forEach(function(m){c.has(m)||Dh(m,null)}),c.forEach(function(m){o.has(m)||Dh(m,h)})}$x.set(r,n)},[n]),r}function a3(n){return n}function l3(n,a){a===void 0&&(a=a3);var r=[],i=!1,o={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 o}function r3(n){n===void 0&&(n={});var a=l3(null);return a.options=aa({async:!0,ssr:!1},n),a}var dw=function(n){var a=n.sideCar,r=cw(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,aa({},r))};dw.isSideCarExport=!0;function i3(n,a){return n.useMedium(a),dw}var fw=r3(),Oh=function(){},Lc=v.forwardRef(function(n,a){var r=v.useRef(null),i=v.useState({onScrollCapture:Oh,onWheelCapture:Oh,onTouchMoveCapture:Oh}),o=i[0],c=i[1],h=n.forwardProps,m=n.children,p=n.className,g=n.removeScrollBar,y=n.enabled,x=n.shards,b=n.sideCar,j=n.noRelative,N=n.noIsolation,S=n.inert,C=n.allowPinchZoom,_=n.as,T=_===void 0?"div":_,R=n.gapMode,D=cw(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),U=b,K=n3([r,a]),H=aa(aa({},D),o);return v.createElement(v.Fragment,null,y&&v.createElement(U,{sideCar:fw,removeScrollBar:g,shards:x,noRelative:j,noIsolation:N,inert:S,setCallbacks:c,allowPinchZoom:!!C,lockRef:r,gapMode:R}),h?v.cloneElement(v.Children.only(m),aa(aa({},H),{ref:K})):v.createElement(T,aa({},H,{className:p,ref:K}),m))});Lc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Lc.classNames={fullWidth:nc,zeroRight:tc};var s3=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function o3(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var a=s3();return a&&n.setAttribute("nonce",a),n}function u3(n,a){n.styleSheet?n.styleSheet.cssText=a:n.appendChild(document.createTextNode(a))}function c3(n){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(n)}var d3=function(){var n=0,a=null;return{add:function(r){n==0&&(a=o3())&&(u3(a,r),c3(a)),n++},remove:function(){n--,!n&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},f3=function(){var n=d3();return function(a,r){v.useEffect(function(){return n.add(a),function(){n.remove()}},[a&&r])}},hw=function(){var n=f3(),a=function(r){var i=r.styles,o=r.dynamic;return n(i,o),null};return a},h3={left:0,top:0,right:0,gap:0},zh=function(n){return parseInt(n||"",10)||0},m3=function(n){var a=window.getComputedStyle(document.body),r=a[n==="padding"?"paddingLeft":"marginLeft"],i=a[n==="padding"?"paddingTop":"marginTop"],o=a[n==="padding"?"paddingRight":"marginRight"];return[zh(r),zh(i),zh(o)]},p3=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return h3;var a=m3(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])}},v3=hw(),pi="data-scroll-locked",g3=function(n,a,r,i){var o=n.left,c=n.top,h=n.right,m=n.gap;return r===void 0&&(r="margin"),`
337
+ .`.concat(Ik,` {
338
+ overflow: hidden `).concat(i,`;
339
+ padding-right: `).concat(m,"px ").concat(i,`;
340
+ }
341
+ body[`).concat(pi,`] {
342
+ overflow: hidden `).concat(i,`;
343
+ overscroll-behavior: contain;
344
+ `).concat([a&&"position: relative ".concat(i,";"),r==="margin"&&`
345
+ padding-left: `.concat(o,`px;
346
+ padding-top: `).concat(c,`px;
347
+ padding-right: `).concat(h,`px;
348
+ margin-left:0;
349
+ margin-top:0;
350
+ margin-right: `).concat(m,"px ").concat(i,`;
351
+ `),r==="padding"&&"padding-right: ".concat(m,"px ").concat(i,";")].filter(Boolean).join(""),`
352
+ }
353
+
354
+ .`).concat(tc,` {
355
+ right: `).concat(m,"px ").concat(i,`;
356
+ }
357
+
358
+ .`).concat(nc,` {
359
+ margin-right: `).concat(m,"px ").concat(i,`;
360
+ }
361
+
362
+ .`).concat(tc," .").concat(tc,` {
363
+ right: 0 `).concat(i,`;
364
+ }
365
+
366
+ .`).concat(nc," .").concat(nc,` {
367
+ margin-right: 0 `).concat(i,`;
368
+ }
369
+
370
+ body[`).concat(pi,`] {
371
+ `).concat(Wk,": ").concat(m,`px;
372
+ }
373
+ `)},Qx=function(){var n=parseInt(document.body.getAttribute(pi)||"0",10);return isFinite(n)?n:0},y3=function(){v.useEffect(function(){return document.body.setAttribute(pi,(Qx()+1).toString()),function(){var n=Qx()-1;n<=0?document.body.removeAttribute(pi):document.body.setAttribute(pi,n.toString())}},[])},x3=function(n){var a=n.noRelative,r=n.noImportant,i=n.gapMode,o=i===void 0?"margin":i;y3();var c=v.useMemo(function(){return p3(o)},[o]);return v.createElement(v3,{styles:g3(c,!a,o,r?"":"!important")})},cm=!1;if(typeof window<"u")try{var Xu=Object.defineProperty({},"passive",{get:function(){return cm=!0,!0}});window.addEventListener("test",Xu,Xu),window.removeEventListener("test",Xu,Xu)}catch{cm=!1}var ci=cm?{passive:!1}:!1,b3=function(n){return n.tagName==="TEXTAREA"},mw=function(n,a){if(!(n instanceof Element))return!1;var r=window.getComputedStyle(n);return r[a]!=="hidden"&&!(r.overflowY===r.overflowX&&!b3(n)&&r[a]==="visible")},w3=function(n){return mw(n,"overflowY")},j3=function(n){return mw(n,"overflowX")},Gx=function(n,a){var r=a.ownerDocument,i=a;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var o=pw(n,i);if(o){var c=vw(n,i),h=c[1],m=c[2];if(h>m)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},S3=function(n){var a=n.scrollTop,r=n.scrollHeight,i=n.clientHeight;return[a,r,i]},N3=function(n){var a=n.scrollLeft,r=n.scrollWidth,i=n.clientWidth;return[a,r,i]},pw=function(n,a){return n==="v"?w3(a):j3(a)},vw=function(n,a){return n==="v"?S3(a):N3(a)},E3=function(n,a){return n==="h"&&a==="rtl"?-1:1},C3=function(n,a,r,i,o){var c=E3(n,window.getComputedStyle(a).direction),h=c*i,m=r.target,p=a.contains(m),g=!1,y=h>0,x=0,b=0;do{if(!m)break;var j=vw(n,m),N=j[0],S=j[1],C=j[2],_=S-C-c*N;(N||_)&&pw(n,m)&&(x+=_,b+=N);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(b)<1)&&(g=!0),g},Fu=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Yx=function(n){return[n.deltaX,n.deltaY]},Vx=function(n){return n&&"current"in n?n.current:n},_3=function(n,a){return n[0]===a[0]&&n[1]===a[1]},T3=function(n){return`
374
+ .block-interactivity-`.concat(n,` {pointer-events: none;}
375
+ .allow-interactivity-`).concat(n,` {pointer-events: all;}
376
+ `)},R3=0,di=[];function M3(n){var a=v.useRef([]),r=v.useRef([0,0]),i=v.useRef(),o=v.useState(R3++)[0],c=v.useState(hw)[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(o));var S=Jk([n.lockRef.current],(n.shards||[]).map(Vx)).filter(Boolean);return S.forEach(function(C){return C.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),S.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(o))})}}},[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 _=Fu(S),T=r.current,R="deltaX"in S?S.deltaX:T[0]-_[0],D="deltaY"in S?S.deltaY:T[1]-_[1],U,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=Gx(H,K);if(!q)return!0;if(q?U=H:(U=H==="v"?"h":"v",q=Gx(H,K)),!q)return!1;if(!i.current&&"changedTouches"in S&&(R||D)&&(i.current=U),!U)return!0;var G=i.current||U;return C3(G,C,S,G==="h"?R:D)},[]),p=v.useCallback(function(S){var C=S;if(!(!di.length||di[di.length-1]!==c)){var _="deltaY"in C?Yx(C):Fu(C),T=a.current.filter(function(U){return U.name===C.type&&(U.target===C.target||C.target===U.shadowParent)&&_3(U.delta,_)})[0];if(T&&T.should){C.cancelable&&C.preventDefault();return}if(!T){var R=(h.current.shards||[]).map(Vx).filter(Boolean).filter(function(U){return U.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:k3(_)};a.current.push(R),setTimeout(function(){a.current=a.current.filter(function(D){return D!==R})},1)},[]),y=v.useCallback(function(S){r.current=Fu(S),i.current=void 0},[]),x=v.useCallback(function(S){g(S.type,Yx(S),S.target,m(S,n.lockRef.current))},[]),b=v.useCallback(function(S){g(S.type,Fu(S),S.target,m(S,n.lockRef.current))},[]);v.useEffect(function(){return di.push(c),n.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:b}),document.addEventListener("wheel",p,ci),document.addEventListener("touchmove",p,ci),document.addEventListener("touchstart",y,ci),function(){di=di.filter(function(S){return S!==c}),document.removeEventListener("wheel",p,ci),document.removeEventListener("touchmove",p,ci),document.removeEventListener("touchstart",y,ci)}},[]);var j=n.removeScrollBar,N=n.inert;return v.createElement(v.Fragment,null,N?v.createElement(c,{styles:T3(o)}):null,j?v.createElement(x3,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function k3(n){for(var a=null;n!==null;)n instanceof ShadowRoot&&(a=n.host,n=n.host),n=n.parentNode;return a}const A3=i3(fw,M3);var Uc=v.forwardRef(function(n,a){return v.createElement(Lc,aa({},n,{ref:a,sideCar:A3}))});Uc.classNames=Lc.classNames;var dm=["Enter"," "],D3=["ArrowDown","PageUp","Home"],gw=["ArrowUp","PageDown","End"],O3=[...D3,...gw],z3={ltr:[...dm,"ArrowRight"],rtl:[...dm,"ArrowLeft"]},L3={ltr:["ArrowLeft"],rtl:["ArrowRight"]},qc="Menu",[ao,U3,q3]=$i(qc),[br,yw]=bt(qc,[q3,Vi,Ki]),ap=Vi(),xw=Ki(),[h6,Xi]=br(qc),[m6,yo]=br(qc),H3="MenuAnchor",lp=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n,o=ap(r);return u.jsx(Jm,{...o,...i,ref:a})});lp.displayName=H3;var B3="MenuPortal",[p6,bw]=br(B3,{forceMount:void 0}),_n="MenuContent",[$3,rp]=br(_n),ww=v.forwardRef((n,a)=>{const r=bw(_n,n.__scopeMenu),{forceMount:i=r.forceMount,...o}=n,c=Xi(_n,n.__scopeMenu),h=yo(_n,n.__scopeMenu);return u.jsx(ao.Provider,{scope:n.__scopeMenu,children:u.jsx(Ct,{present:i||c.open,children:u.jsx(ao.Slot,{scope:n.__scopeMenu,children:h.modal?u.jsx(Q3,{...o,ref:a}):u.jsx(G3,{...o,ref:a})})})})}),Q3=v.forwardRef((n,a)=>{const r=Xi(_n,n.__scopeMenu),i=v.useRef(null),o=we(a,i);return v.useEffect(()=>{const c=i.current;if(c)return np(c)},[]),u.jsx(ip,{...n,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:ne(n.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),G3=v.forwardRef((n,a)=>{const r=Xi(_n,n.__scopeMenu);return u.jsx(ip,{...n,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),Y3=hr("MenuContent.ScrollLock"),ip=v.forwardRef((n,a)=>{const{__scopeMenu:r,loop:i=!1,trapFocus:o,onOpenAutoFocus:c,onCloseAutoFocus:h,disableOutsidePointerEvents:m,onEntryFocus:p,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:x,onInteractOutside:b,onDismiss:j,disableOutsideScroll:N,...S}=n,C=Xi(_n,r),_=yo(_n,r),T=ap(r),R=xw(r),D=U3(r),[U,K]=v.useState(null),H=v.useRef(null),q=we(a,H,C.onContentChange),G=v.useRef(0),ee=v.useRef(""),ue=v.useRef(0),ce=v.useRef(null),ie=v.useRef("right"),ae=v.useRef(0),re=N?Uc:v.Fragment,z=N?{as:Y3,allowPinchZoom:!0}:void 0,J=X=>{var de,k;const F=ee.current+X,W=D().filter(ye=>!ye.disabled),le=document.activeElement,ve=(de=W.find(ye=>ye.ref.current===le))==null?void 0:de.textValue,Se=W.map(ye=>ye.textValue),te=nA(Se,F,ve),Ne=(k=W.find(ye=>ye.textValue===te))==null?void 0:k.ref.current;(function ye(Ee){ee.current=Ee,window.clearTimeout(G.current),Ee!==""&&(G.current=window.setTimeout(()=>ye(""),1e3))})(F),Ne&&setTimeout(()=>Ne.focus())};v.useEffect(()=>()=>window.clearTimeout(G.current),[]),Gm();const Y=v.useCallback(X=>{var de,k;return ie.current===((de=ce.current)==null?void 0:de.side)&&lA(X,(k=ce.current)==null?void 0:k.area)},[]);return u.jsx($3,{scope:r,searchRef:ee,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,{...z,children:u.jsx(Mc,{asChild:!0,trapped:o,onMountAutoFocus:ne(c,X=>{var de;X.preventDefault(),(de=H.current)==null||de.focus({preventScroll:!0})}),onUnmountAutoFocus:h,children:u.jsx(Qi,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:x,onInteractOutside:b,onDismiss:j,children:u.jsx(ep,{asChild:!0,...R,dir:_.dir,orientation:"vertical",loop:i,currentTabStopId:U,onCurrentTabStopIdChange:K,onEntryFocus:ne(p,X=>{_.isUsingKeyboardRef.current||X.preventDefault()}),preventScrollOnEntryFocus:!0,children:u.jsx(Im,{role:"menu","aria-orientation":"vertical","data-state":Uw(C.open),"data-radix-menu-content":"",dir:_.dir,...T,...S,ref:q,style:{outline:"none",...S.style},onKeyDown:ne(S.onKeyDown,X=>{const de=X.target.closest("[data-radix-menu-content]")===X.currentTarget,k=X.ctrlKey||X.altKey||X.metaKey,F=X.key.length===1;de&&(X.key==="Tab"&&X.preventDefault(),!k&&F&&J(X.key));const W=H.current;if(X.target!==W||!O3.includes(X.key))return;X.preventDefault();const le=D().filter(ve=>!ve.disabled).map(ve=>ve.ref.current);gw.includes(X.key)&&le.reverse(),eA(le)}),onBlur:ne(n.onBlur,X=>{X.currentTarget.contains(X.target)||(window.clearTimeout(G.current),ee.current="")}),onPointerMove:ne(n.onPointerMove,lo(X=>{const de=X.target,k=ae.current!==X.clientX;if(X.currentTarget.contains(de)&&k){const F=X.clientX>ae.current?"right":"left";ie.current=F,ae.current=X.clientX}}))})})})})})})});ww.displayName=_n;var V3="MenuGroup",sp=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n;return u.jsx(se.div,{role:"group",...i,ref:a})});sp.displayName=V3;var K3="MenuLabel",jw=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n;return u.jsx(se.div,{...i,ref:a})});jw.displayName=K3;var vc="MenuItem",Kx="menu.itemSelect",Hc=v.forwardRef((n,a)=>{const{disabled:r=!1,onSelect:i,...o}=n,c=v.useRef(null),h=yo(vc,n.__scopeMenu),m=rp(vc,n.__scopeMenu),p=we(a,c),g=v.useRef(!1),y=()=>{const x=c.current;if(!r&&x){const b=new CustomEvent(Kx,{bubbles:!0,cancelable:!0});x.addEventListener(Kx,j=>i==null?void 0:i(j),{once:!0}),uc(x,b),b.defaultPrevented?g.current=!1:h.onClose()}};return u.jsx(Sw,{...o,ref:p,disabled:r,onClick:ne(n.onClick,y),onPointerDown:x=>{var b;(b=n.onPointerDown)==null||b.call(n,x),g.current=!0},onPointerUp:ne(n.onPointerUp,x=>{var b;g.current||(b=x.currentTarget)==null||b.click()}),onKeyDown:ne(n.onKeyDown,x=>{const b=m.searchRef.current!=="";r||b&&x.key===" "||dm.includes(x.key)&&(x.currentTarget.click(),x.preventDefault())})})});Hc.displayName=vc;var Sw=v.forwardRef((n,a)=>{const{__scopeMenu:r,disabled:i=!1,textValue:o,...c}=n,h=rp(vc,r),m=xw(r),p=v.useRef(null),g=we(a,p),[y,x]=v.useState(!1),[b,j]=v.useState("");return v.useEffect(()=>{const N=p.current;N&&j((N.textContent??"").trim())},[c.children]),u.jsx(ao.ItemSlot,{scope:r,disabled:i,textValue:o??b,children:u.jsx(tp,{asChild:!0,...m,focusable:!i,children:u.jsx(se.div,{role:"menuitem","data-highlighted":y?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...c,ref:g,onPointerMove:ne(n.onPointerMove,lo(N=>{i?h.onItemLeave(N):(h.onItemEnter(N),N.defaultPrevented||N.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ne(n.onPointerLeave,lo(N=>h.onItemLeave(N))),onFocus:ne(n.onFocus,()=>x(!0)),onBlur:ne(n.onBlur,()=>x(!1))})})})}),X3="MenuCheckboxItem",Nw=v.forwardRef((n,a)=>{const{checked:r=!1,onCheckedChange:i,...o}=n;return u.jsx(Rw,{scope:n.__scopeMenu,checked:r,children:u.jsx(Hc,{role:"menuitemcheckbox","aria-checked":gc(r)?"mixed":r,...o,ref:a,"data-state":up(r),onSelect:ne(o.onSelect,()=>i==null?void 0:i(gc(r)?!0:!r),{checkForDefaultPrevented:!1})})})});Nw.displayName=X3;var Ew="MenuRadioGroup",[F3,Z3]=br(Ew,{value:void 0,onValueChange:()=>{}}),Cw=v.forwardRef((n,a)=>{const{value:r,onValueChange:i,...o}=n,c=nt(i);return u.jsx(F3,{scope:n.__scopeMenu,value:r,onValueChange:c,children:u.jsx(sp,{...o,ref:a})})});Cw.displayName=Ew;var _w="MenuRadioItem",Tw=v.forwardRef((n,a)=>{const{value:r,...i}=n,o=Z3(_w,n.__scopeMenu),c=r===o.value;return u.jsx(Rw,{scope:n.__scopeMenu,checked:c,children:u.jsx(Hc,{role:"menuitemradio","aria-checked":c,...i,ref:a,"data-state":up(c),onSelect:ne(i.onSelect,()=>{var h;return(h=o.onValueChange)==null?void 0:h.call(o,r)},{checkForDefaultPrevented:!1})})})});Tw.displayName=_w;var op="MenuItemIndicator",[Rw,P3]=br(op,{checked:!1}),Mw=v.forwardRef((n,a)=>{const{__scopeMenu:r,forceMount:i,...o}=n,c=P3(op,r);return u.jsx(Ct,{present:i||gc(c.checked)||c.checked===!0,children:u.jsx(se.span,{...o,ref:a,"data-state":up(c.checked)})})});Mw.displayName=op;var J3="MenuSeparator",kw=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n;return u.jsx(se.div,{role:"separator","aria-orientation":"horizontal",...i,ref:a})});kw.displayName=J3;var I3="MenuArrow",Aw=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n,o=ap(r);return u.jsx(Wm,{...o,...i,ref:a})});Aw.displayName=I3;var W3="MenuSub",[v6,Dw]=br(W3),Xs="MenuSubTrigger",Ow=v.forwardRef((n,a)=>{const r=Xi(Xs,n.__scopeMenu),i=yo(Xs,n.__scopeMenu),o=Dw(Xs,n.__scopeMenu),c=rp(Xs,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(lp,{asChild:!0,...g,children:u.jsx(Sw,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":Uw(r.open),...n,ref:po(a,o.onTriggerChange),onClick:x=>{var b;(b=n.onClick)==null||b.call(n,x),!(n.disabled||x.defaultPrevented)&&(x.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:ne(n.onPointerMove,lo(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:ne(n.onPointerLeave,lo(x=>{var b,j;y();const N=(b=r.content)==null?void 0:b.getBoundingClientRect();if(N){const S=(j=r.content)==null?void 0:j.dataset.side,C=S==="right",_=C?-5:5,T=N[C?"left":"right"],R=N[C?"right":"left"];c.onPointerGraceIntentChange({area:[{x:x.clientX+_,y:x.clientY},{x:T,y:N.top},{x:R,y:N.top},{x:R,y:N.bottom},{x:T,y:N.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:ne(n.onKeyDown,x=>{var b;const j=c.searchRef.current!=="";n.disabled||j&&x.key===" "||z3[i.dir].includes(x.key)&&(r.onOpenChange(!0),(b=r.content)==null||b.focus(),x.preventDefault())})})})});Ow.displayName=Xs;var zw="MenuSubContent",Lw=v.forwardRef((n,a)=>{const r=bw(_n,n.__scopeMenu),{forceMount:i=r.forceMount,...o}=n,c=Xi(_n,n.__scopeMenu),h=yo(_n,n.__scopeMenu),m=Dw(zw,n.__scopeMenu),p=v.useRef(null),g=we(a,p);return u.jsx(ao.Provider,{scope:n.__scopeMenu,children:u.jsx(Ct,{present:i||c.open,children:u.jsx(ao.Slot,{scope:n.__scopeMenu,children:u.jsx(ip,{id:m.contentId,"aria-labelledby":m.triggerId,...o,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:ne(n.onFocusOutside,y=>{y.target!==m.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:ne(n.onEscapeKeyDown,y=>{h.onClose(),y.preventDefault()}),onKeyDown:ne(n.onKeyDown,y=>{var x;const b=y.currentTarget.contains(y.target),j=L3[h.dir].includes(y.key);b&&j&&(c.onOpenChange(!1),(x=m.trigger)==null||x.focus(),y.preventDefault())})})})})})});Lw.displayName=zw;function Uw(n){return n?"open":"closed"}function gc(n){return n==="indeterminate"}function up(n){return gc(n)?"indeterminate":n?"checked":"unchecked"}function eA(n){const a=document.activeElement;for(const r of n)if(r===a||(r.focus(),document.activeElement!==a))return}function tA(n,a){return n.map((r,i)=>n[(a+i)%n.length])}function nA(n,a,r){const i=a.length>1&&Array.from(a).every(m=>m===a[0])?a[0]:a,o=r?n.indexOf(r):-1;let c=tA(n,Math.max(o,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 aA(n,a){const{x:r,y:i}=n;let o=!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,b=p.y;y>i!=b>i&&r<(x-g)*(i-y)/(b-y)+g&&(o=!o)}return o}function lA(n,a){if(!a)return!1;const r={x:n.clientX,y:n.clientY};return aA(r,a)}function lo(n){return a=>a.pointerType==="mouse"?n(a):void 0}var rA=lp,iA=ww,sA=sp,oA=jw,uA=Hc,cA=Nw,dA=Cw,fA=Tw,hA=Mw,mA=kw,pA=Aw,vA=Ow,gA=Lw,qw="DropdownMenu",[yA,g6]=bt(qw,[yw]),mn=yw(),[y6,Hw]=yA(qw),Bw="DropdownMenuTrigger",xA=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,disabled:i=!1,...o}=n,c=Hw(Bw,r),h=mn(r);return u.jsx(rA,{asChild:!0,...h,children:u.jsx(se.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,...o,ref:po(a,c.triggerRef),onPointerDown:ne(n.onPointerDown,m=>{!i&&m.button===0&&m.ctrlKey===!1&&(c.onOpenToggle(),c.open||m.preventDefault())}),onKeyDown:ne(n.onKeyDown,m=>{i||(["Enter"," "].includes(m.key)&&c.onOpenToggle(),m.key==="ArrowDown"&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(m.key)&&m.preventDefault())})})})});xA.displayName=Bw;var $w="DropdownMenuContent",Qw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=Hw($w,r),c=mn(r),h=v.useRef(!1);return u.jsx(iA,{id:o.contentId,"aria-labelledby":o.triggerId,...c,...i,ref:a,onCloseAutoFocus:ne(n.onCloseAutoFocus,m=>{var p;h.current||(p=o.triggerRef.current)==null||p.focus(),h.current=!1,m.preventDefault()}),onInteractOutside:ne(n.onInteractOutside,m=>{const p=m.detail.originalEvent,g=p.button===0&&p.ctrlKey===!0,y=p.button===2||g;(!o.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)"}})});Qw.displayName=$w;var bA="DropdownMenuGroup",wA=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=mn(r);return u.jsx(sA,{...o,...i,ref:a})});wA.displayName=bA;var jA="DropdownMenuLabel",Gw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=mn(r);return u.jsx(oA,{...o,...i,ref:a})});Gw.displayName=jA;var SA="DropdownMenuItem",Yw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=mn(r);return u.jsx(uA,{...o,...i,ref:a})});Yw.displayName=SA;var NA="DropdownMenuCheckboxItem",Vw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=mn(r);return u.jsx(cA,{...o,...i,ref:a})});Vw.displayName=NA;var EA="DropdownMenuRadioGroup",CA=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=mn(r);return u.jsx(dA,{...o,...i,ref:a})});CA.displayName=EA;var _A="DropdownMenuRadioItem",Kw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=mn(r);return u.jsx(fA,{...o,...i,ref:a})});Kw.displayName=_A;var TA="DropdownMenuItemIndicator",RA=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=mn(r);return u.jsx(hA,{...o,...i,ref:a})});RA.displayName=TA;var MA="DropdownMenuSeparator",Xw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=mn(r);return u.jsx(mA,{...o,...i,ref:a})});Xw.displayName=MA;var kA="DropdownMenuArrow",AA=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=mn(r);return u.jsx(pA,{...o,...i,ref:a})});AA.displayName=kA;var DA="DropdownMenuSubTrigger",Fw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=mn(r);return u.jsx(vA,{...o,...i,ref:a})});Fw.displayName=DA;var OA="DropdownMenuSubContent",Zw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=mn(r);return u.jsx(gA,{...o,...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)"}})});Zw.displayName=OA;var zA=Qw,LA=Gw,UA=Yw,qA=Vw,HA=Kw,BA=Xw,$A=Fw,QA=Zw;const Pw=he("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)]");he("flex items-center justify-between gap-2","px-3 py-2 rounded-lg text-sm","transition-colors duration-200",Pw,"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");he("z-50 min-w-[8rem] p-1 rounded-xl",Pw,"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");he("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");he("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");he("px-3 py-2 text-xs font-medium","dark:text-gray-500 text-gray-400","select-none");he("h-px my-1 -mx-1","dark:bg-white/[0.08] bg-gray-200");var Jw="Dialog",[Iw,Ww]=bt(Jw),[x6,ca]=Iw(Jw),ej="DialogTrigger",tj=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,o=ca(ej,r),c=we(a,o.triggerRef);return u.jsx(se.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":dp(o.open),...i,ref:c,onClick:ne(n.onClick,o.onOpenToggle)})});tj.displayName=ej;var GA="DialogPortal",[b6,nj]=Iw(GA,{forceMount:void 0}),yc="DialogOverlay",aj=v.forwardRef((n,a)=>{const r=nj(yc,n.__scopeDialog),{forceMount:i=r.forceMount,...o}=n,c=ca(yc,n.__scopeDialog);return c.modal?u.jsx(Ct,{present:i||c.open,children:u.jsx(VA,{...o,ref:a})}):null});aj.displayName=yc;var YA=hr("DialogOverlay.RemoveScroll"),VA=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,o=ca(yc,r);return u.jsx(Uc,{as:YA,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(se.div,{"data-state":dp(o.open),...i,ref:a,style:{pointerEvents:"auto",...i.style}})})}),pr="DialogContent",lj=v.forwardRef((n,a)=>{const r=nj(pr,n.__scopeDialog),{forceMount:i=r.forceMount,...o}=n,c=ca(pr,n.__scopeDialog);return u.jsx(Ct,{present:i||c.open,children:c.modal?u.jsx(KA,{...o,ref:a}):u.jsx(XA,{...o,ref:a})})});lj.displayName=pr;var KA=v.forwardRef((n,a)=>{const r=ca(pr,n.__scopeDialog),i=v.useRef(null),o=we(a,r.contentRef,i);return v.useEffect(()=>{const c=i.current;if(c)return np(c)},[]),u.jsx(rj,{...n,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ne(n.onCloseAutoFocus,c=>{var h;c.preventDefault(),(h=r.triggerRef.current)==null||h.focus()}),onPointerDownOutside:ne(n.onPointerDownOutside,c=>{const h=c.detail.originalEvent,m=h.button===0&&h.ctrlKey===!0;(h.button===2||m)&&c.preventDefault()}),onFocusOutside:ne(n.onFocusOutside,c=>c.preventDefault())})}),XA=v.forwardRef((n,a)=>{const r=ca(pr,n.__scopeDialog),i=v.useRef(!1),o=v.useRef(!1);return u.jsx(rj,{...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,o.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"&&(o.current=!0));const p=c.target;(m=r.triggerRef.current)!=null&&m.contains(p)&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&o.current&&c.preventDefault()}})}),rj=v.forwardRef((n,a)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:c,...h}=n,m=ca(pr,r),p=v.useRef(null),g=we(a,p);return Gm(),u.jsxs(u.Fragment,{children:[u.jsx(Mc,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:c,children:u.jsx(Qi,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":dp(m.open),...h,ref:g,onDismiss:()=>m.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(ZA,{titleId:m.titleId}),u.jsx(JA,{contentRef:p,descriptionId:m.descriptionId})]})]})}),cp="DialogTitle",ij=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,o=ca(cp,r);return u.jsx(se.h2,{id:o.titleId,...i,ref:a})});ij.displayName=cp;var sj="DialogDescription",oj=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,o=ca(sj,r);return u.jsx(se.p,{id:o.descriptionId,...i,ref:a})});oj.displayName=sj;var uj="DialogClose",cj=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,o=ca(uj,r);return u.jsx(se.button,{type:"button",...i,ref:a,onClick:ne(n.onClick,()=>o.onOpenChange(!1))})});cj.displayName=uj;function dp(n){return n?"open":"closed"}var dj="DialogTitleWarning",[FA,fj]=zM(dj,{contentName:pr,titleName:cp,docsSlug:"dialog"}),ZA=({titleId:n})=>{const a=fj(dj),r=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users.
377
+
378
+ If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component.
379
+
380
+ 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},PA="DialogDescriptionWarning",JA=({contentRef:n,descriptionId:a})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${fj(PA).contentName}}.`;return v.useEffect(()=>{var i;const o=(i=n.current)==null?void 0:i.getAttribute("aria-describedby");a&&o&&(document.getElementById(a)||console.warn(r))},[r,n,a]),null},IA=tj,WA=aj,eD=lj,tD=ij,nD=oj,hj=cj,aD="AlertDialog",[lD,w6]=bt(aD,[Ww]),wr=Ww(),rD="AlertDialogTrigger",iD=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,o=wr(r);return u.jsx(IA,{...o,...i,ref:a})});iD.displayName=rD;var sD="AlertDialogOverlay",oD=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,o=wr(r);return u.jsx(WA,{...o,...i,ref:a})});oD.displayName=sD;var vi="AlertDialogContent",[uD,cD]=lD(vi),dD=v1("AlertDialogContent"),fD=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,children:i,...o}=n,c=wr(r),h=v.useRef(null),m=we(a,h),p=v.useRef(null);return u.jsx(FA,{contentName:vi,titleName:mj,docsSlug:"alert-dialog",children:u.jsx(uD,{scope:r,cancelRef:p,children:u.jsxs(eD,{role:"alertdialog",...c,...o,ref:m,onOpenAutoFocus:ne(o.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(dD,{children:i}),u.jsx(yD,{contentRef:h})]})})})});fD.displayName=vi;var mj="AlertDialogTitle",hD=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,o=wr(r);return u.jsx(tD,{...o,...i,ref:a})});hD.displayName=mj;var pj="AlertDialogDescription",mD=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,o=wr(r);return u.jsx(nD,{...o,...i,ref:a})});mD.displayName=pj;var pD="AlertDialogAction",vD=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,o=wr(r);return u.jsx(hj,{...o,...i,ref:a})});vD.displayName=pD;var vj="AlertDialogCancel",gD=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,{cancelRef:o}=cD(vj,r),c=wr(r),h=we(a,o);return u.jsx(hj,{...c,...i,ref:h})});gD.displayName=vj;var yD=({contentRef:n})=>{const a=`\`${vi}\` requires a description for the component to be accessible for screen reader users.
381
+
382
+ You can add a description to the \`${vi}\` by passing a \`${pj}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
383
+
384
+ 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 \`${vi}\`. 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.
385
+
386
+ 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 xo(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 gj=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"}),xD="VisuallyHidden",yj=v.forwardRef((n,a)=>u.jsx(se.span,{...n,ref:a,style:{...gj,...n.style}}));yj.displayName=xD;var xj=yj,bD=[" ","Enter","ArrowUp","ArrowDown"],wD=[" ","Enter"],Bc="Select",[fp,$c,jD]=$i(Bc),[Fi,j6]=bt(Bc,[jD,Vi]),hp=Vi(),[S6,Ol]=Fi(Bc),[N6,SD]=Fi(Bc),bj="SelectTrigger",ND=v.forwardRef((n,a)=>{const{__scopeSelect:r,disabled:i=!1,...o}=n,c=hp(r),h=Ol(bj,r),m=h.disabled||i,p=we(a,h.onTriggerChange),g=$c(r),y=v.useRef("touch"),[x,b,j]=kj(S=>{const C=g().filter(R=>!R.disabled),_=C.find(R=>R.value===h.value),T=Aj(C,S,_);T!==void 0&&h.onValueChange(T.value)}),N=S=>{m||(h.onOpenChange(!0),j()),S&&(h.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return u.jsx(Jm,{asChild:!0,...c,children:u.jsx(se.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":Mj(h.value)?"":void 0,...o,ref:p,onClick:ne(o.onClick,S=>{S.currentTarget.focus(),y.current!=="mouse"&&N(S)}),onPointerDown:ne(o.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"&&(N(S),S.preventDefault())}),onKeyDown:ne(o.onKeyDown,S=>{const C=x.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&b(S.key),!(C&&S.key===" ")&&bD.includes(S.key)&&(N(),S.preventDefault())})})})});ND.displayName=bj;var wj="SelectValue",ED=v.forwardRef((n,a)=>{const{__scopeSelect:r,className:i,style:o,children:c,placeholder:h="",...m}=n,p=Ol(wj,r),{onValueNodeHasChildrenChange:g}=p,y=c!==void 0,x=we(a,p.onValueNodeChange);return lt(()=>{g(y)},[g,y]),u.jsx(se.span,{...m,ref:x,style:{pointerEvents:"none"},children:Mj(p.value)?u.jsx(u.Fragment,{children:h}):c})});ED.displayName=wj;var CD="SelectIcon",_D=v.forwardRef((n,a)=>{const{__scopeSelect:r,children:i,...o}=n;return u.jsx(se.span,{"aria-hidden":!0,...o,ref:a,children:i||"▼"})});_D.displayName=CD;var vr="SelectContent",TD=v.forwardRef((n,a)=>{const r=Ol(vr,n.__scopeSelect),[i,o]=v.useState();if(lt(()=>{o(new DocumentFragment)},[]),!r.open){const c=i;return c?fo.createPortal(u.jsx(jj,{scope:n.__scopeSelect,children:u.jsx(fp.Slot,{scope:n.__scopeSelect,children:u.jsx("div",{children:n.children})})}),c):null}return u.jsx(Sj,{...n,ref:a})});TD.displayName=vr;var zn=10,[jj,zl]=Fi(vr),RD="SelectContentImpl",MD=hr("SelectContent.RemoveScroll"),Sj=v.forwardRef((n,a)=>{const{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:c,onPointerDownOutside:h,side:m,sideOffset:p,align:g,alignOffset:y,arrowPadding:x,collisionBoundary:b,collisionPadding:j,sticky:N,hideWhenDetached:S,avoidCollisions:C,..._}=n,T=Ol(vr,r),[R,D]=v.useState(null),[U,K]=v.useState(null),H=we(a,te=>D(te)),[q,G]=v.useState(null),[ee,ue]=v.useState(null),ce=$c(r),[ie,ae]=v.useState(!1),re=v.useRef(!1);v.useEffect(()=>{if(R)return np(R)},[R]),Gm();const z=v.useCallback(te=>{const[Ne,...ye]=ce().map(Ke=>Ke.ref.current),[Ee]=ye.slice(-1),$e=document.activeElement;for(const Ke of te)if(Ke===$e||(Ke==null||Ke.scrollIntoView({block:"nearest"}),Ke===Ne&&U&&(U.scrollTop=0),Ke===Ee&&U&&(U.scrollTop=U.scrollHeight),Ke==null||Ke.focus(),document.activeElement!==$e))return},[ce,U]),J=v.useCallback(()=>z([q,R]),[z,q,R]);v.useEffect(()=>{ie&&J()},[ie,J]);const{onOpenChange:Y,triggerPointerDownPosRef:X}=T;v.useEffect(()=>{if(R){let te={x:0,y:0};const Ne=Ee=>{var $e,Ke;te={x:Math.abs(Math.round(Ee.pageX)-((($e=X.current)==null?void 0:$e.x)??0)),y:Math.abs(Math.round(Ee.pageY)-(((Ke=X.current)==null?void 0:Ke.y)??0))}},ye=Ee=>{te.x<=10&&te.y<=10?Ee.preventDefault():R.contains(Ee.target)||Y(!1),document.removeEventListener("pointermove",Ne),X.current=null};return X.current!==null&&(document.addEventListener("pointermove",Ne),document.addEventListener("pointerup",ye,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Ne),document.removeEventListener("pointerup",ye,{capture:!0})}}},[R,Y,X]),v.useEffect(()=>{const te=()=>Y(!1);return window.addEventListener("blur",te),window.addEventListener("resize",te),()=>{window.removeEventListener("blur",te),window.removeEventListener("resize",te)}},[Y]);const[de,k]=kj(te=>{const Ne=ce().filter($e=>!$e.disabled),ye=Ne.find($e=>$e.ref.current===document.activeElement),Ee=Aj(Ne,te,ye);Ee&&setTimeout(()=>Ee.ref.current.focus())}),F=v.useCallback((te,Ne,ye)=>{const Ee=!re.current&&!ye;(T.value!==void 0&&T.value===Ne||Ee)&&(G(te),Ee&&(re.current=!0))},[T.value]),W=v.useCallback(()=>R==null?void 0:R.focus(),[R]),le=v.useCallback((te,Ne,ye)=>{const Ee=!re.current&&!ye;(T.value!==void 0&&T.value===Ne||Ee)&&ue(te)},[T.value]),ve=i==="popper"?fm:Nj,Se=ve===fm?{side:m,sideOffset:p,align:g,alignOffset:y,arrowPadding:x,collisionBoundary:b,collisionPadding:j,sticky:N,hideWhenDetached:S,avoidCollisions:C}:{};return u.jsx(jj,{scope:r,content:R,viewport:U,onViewportChange:K,itemRefCallback:F,selectedItem:q,onItemLeave:W,itemTextRefCallback:le,focusSelectedItem:J,selectedItemText:ee,position:i,isPositioned:ie,searchRef:de,children:u.jsx(Uc,{as:MD,allowPinchZoom:!0,children:u.jsx(Mc,{asChild:!0,trapped:T.open,onMountAutoFocus:te=>{te.preventDefault()},onUnmountAutoFocus:ne(o,te=>{var Ne;(Ne=T.trigger)==null||Ne.focus({preventScroll:!0}),te.preventDefault()}),children:u.jsx(Qi,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:h,onFocusOutside:te=>te.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:u.jsx(ve,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:te=>te.preventDefault(),..._,...Se,onPlaced:()=>ae(!0),ref:H,style:{display:"flex",flexDirection:"column",outline:"none",..._.style},onKeyDown:ne(_.onKeyDown,te=>{const Ne=te.ctrlKey||te.altKey||te.metaKey;if(te.key==="Tab"&&te.preventDefault(),!Ne&&te.key.length===1&&k(te.key),["ArrowUp","ArrowDown","Home","End"].includes(te.key)){let ye=ce().filter(Ee=>!Ee.disabled).map(Ee=>Ee.ref.current);if(["ArrowUp","End"].includes(te.key)&&(ye=ye.slice().reverse()),["ArrowUp","ArrowDown"].includes(te.key)){const Ee=te.target,$e=ye.indexOf(Ee);ye=ye.slice($e+1)}setTimeout(()=>z(ye)),te.preventDefault()}})})})})})})});Sj.displayName=RD;var kD="SelectItemAlignedPosition",Nj=v.forwardRef((n,a)=>{const{__scopeSelect:r,onPlaced:i,...o}=n,c=Ol(vr,r),h=zl(vr,r),[m,p]=v.useState(null),[g,y]=v.useState(null),x=we(a,H=>y(H)),b=$c(r),j=v.useRef(!1),N=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(),G=c.valueNode.getBoundingClientRect(),ee=_.getBoundingClientRect();if(c.dir!=="rtl"){const Ee=ee.left-q.left,$e=G.left-Ee,Ke=H.left-$e,Ot=H.width+Ke,It=Math.max(Ot,q.width),fa=window.innerWidth-zn,ha=lm($e,[zn,Math.max(zn,fa-It)]);m.style.minWidth=Ot+"px",m.style.left=ha+"px"}else{const Ee=q.right-ee.right,$e=window.innerWidth-G.right-Ee,Ke=window.innerWidth-H.right-$e,Ot=H.width+Ke,It=Math.max(Ot,q.width),fa=window.innerWidth-zn,ha=lm($e,[zn,Math.max(zn,fa-It)]);m.style.minWidth=Ot+"px",m.style.right=ha+"px"}const ue=b(),ce=window.innerHeight-zn*2,ie=S.scrollHeight,ae=window.getComputedStyle(g),re=parseInt(ae.borderTopWidth,10),z=parseInt(ae.paddingTop,10),J=parseInt(ae.borderBottomWidth,10),Y=parseInt(ae.paddingBottom,10),X=re+z+ie+Y+J,de=Math.min(C.offsetHeight*5,X),k=window.getComputedStyle(S),F=parseInt(k.paddingTop,10),W=parseInt(k.paddingBottom,10),le=H.top+H.height/2-zn,ve=ce-le,Se=C.offsetHeight/2,te=C.offsetTop+Se,Ne=re+z+te,ye=X-Ne;if(Ne<=le){const Ee=ue.length>0&&C===ue[ue.length-1].ref.current;m.style.bottom="0px";const $e=g.clientHeight-S.offsetTop-S.offsetHeight,Ke=Math.max(ve,Se+(Ee?W:0)+$e+J),Ot=Ne+Ke;m.style.height=Ot+"px"}else{const Ee=ue.length>0&&C===ue[0].ref.current;m.style.top="0px";const $e=Math.max(le,re+S.offsetTop+(Ee?F:0)+Se)+ye;m.style.height=$e+"px",S.scrollTop=Ne-le+S.offsetTop}m.style.margin=`${zn}px 0`,m.style.minHeight=de+"px",m.style.maxHeight=ce+"px",i==null||i(),requestAnimationFrame(()=>j.current=!0)}},[b,c.trigger,c.valueNode,m,g,S,C,_,c.dir,i]);lt(()=>R(),[R]);const[D,U]=v.useState();lt(()=>{g&&U(window.getComputedStyle(g).zIndex)},[g]);const K=v.useCallback(H=>{H&&N.current===!0&&(R(),T==null||T(),N.current=!1)},[R,T]);return u.jsx(DD,{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(se.div,{...o,ref:x,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Nj.displayName=kD;var AD="SelectPopperPosition",fm=v.forwardRef((n,a)=>{const{__scopeSelect:r,align:i="start",collisionPadding:o=zn,...c}=n,h=hp(r);return u.jsx(Im,{...h,...c,ref:a,align:i,collisionPadding:o,style:{boxSizing:"border-box",...c.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});fm.displayName=AD;var[DD,mp]=Fi(vr,{}),hm="SelectViewport",OD=v.forwardRef((n,a)=>{const{__scopeSelect:r,nonce:i,...o}=n,c=zl(hm,r),h=mp(hm,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(fp.Slot,{scope:r,children:u.jsx(se.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:m,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:ne(o.onScroll,g=>{const y=g.currentTarget,{contentWrapper:x,shouldExpandOnScrollRef:b}=h;if(b!=null&&b.current&&x){const j=Math.abs(p.current-y.scrollTop);if(j>0){const N=window.innerHeight-zn*2,S=parseFloat(x.style.minHeight),C=parseFloat(x.style.height),_=Math.max(S,C);if(_<N){const T=_+j,R=Math.min(N,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})})})]})});OD.displayName=hm;var Ej="SelectGroup",[zD,LD]=Fi(Ej),UD=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n,o=Dl();return u.jsx(zD,{scope:r,id:o,children:u.jsx(se.div,{role:"group","aria-labelledby":o,...i,ref:a})})});UD.displayName=Ej;var Cj="SelectLabel",qD=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n,o=LD(Cj,r);return u.jsx(se.div,{id:o.id,...i,ref:a})});qD.displayName=Cj;var xc="SelectItem",[HD,_j]=Fi(xc),BD=v.forwardRef((n,a)=>{const{__scopeSelect:r,value:i,disabled:o=!1,textValue:c,...h}=n,m=Ol(xc,r),p=zl(xc,r),g=m.value===i,[y,x]=v.useState(c??""),[b,j]=v.useState(!1),N=we(a,T=>{var R;return(R=p.itemRefCallback)==null?void 0:R.call(p,T,i,o)}),S=Dl(),C=v.useRef("touch"),_=()=>{o||(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(HD,{scope:r,value:i,disabled:o,textId:S,isSelected:g,onItemTextChange:v.useCallback(T=>{x(R=>R||((T==null?void 0:T.textContent)??"").trim())},[]),children:u.jsx(fp.ItemSlot,{scope:r,value:i,disabled:o,textValue:y,children:u.jsx(se.div,{role:"option","aria-labelledby":S,"data-highlighted":b?"":void 0,"aria-selected":g&&b,"data-state":g?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...h,ref:N,onFocus:ne(h.onFocus,()=>j(!0)),onBlur:ne(h.onBlur,()=>j(!1)),onClick:ne(h.onClick,()=>{C.current!=="mouse"&&_()}),onPointerUp:ne(h.onPointerUp,()=>{C.current==="mouse"&&_()}),onPointerDown:ne(h.onPointerDown,T=>{C.current=T.pointerType}),onPointerMove:ne(h.onPointerMove,T=>{var R;C.current=T.pointerType,o?(R=p.onItemLeave)==null||R.call(p):C.current==="mouse"&&T.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ne(h.onPointerLeave,T=>{var R;T.currentTarget===document.activeElement&&((R=p.onItemLeave)==null||R.call(p))}),onKeyDown:ne(h.onKeyDown,T=>{var R;((R=p.searchRef)==null?void 0:R.current)!==""&&T.key===" "||(wD.includes(T.key)&&_(),T.key===" "&&T.preventDefault())})})})})});BD.displayName=xc;var Fs="SelectItemText",$D=v.forwardRef((n,a)=>{const{__scopeSelect:r,className:i,style:o,...c}=n,h=Ol(Fs,r),m=zl(Fs,r),p=_j(Fs,r),g=SD(Fs,r),[y,x]=v.useState(null),b=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,N=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(N),()=>C(N)),[S,C,N]),u.jsxs(u.Fragment,{children:[u.jsx(se.span,{id:p.textId,...c,ref:b}),p.isSelected&&h.valueNode&&!h.valueNodeHasChildren?fo.createPortal(c.children,h.valueNode):null]})});$D.displayName=Fs;var Tj="SelectItemIndicator",QD=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n;return _j(Tj,r).isSelected?u.jsx(se.span,{"aria-hidden":!0,...i,ref:a}):null});QD.displayName=Tj;var mm="SelectScrollUpButton",GD=v.forwardRef((n,a)=>{const r=zl(mm,n.__scopeSelect),i=mp(mm,n.__scopeSelect),[o,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]),o?u.jsx(Rj,{...n,ref:h,onAutoScroll:()=>{const{viewport:m,selectedItem:p}=r;m&&p&&(m.scrollTop=m.scrollTop-p.offsetHeight)}}):null});GD.displayName=mm;var pm="SelectScrollDownButton",YD=v.forwardRef((n,a)=>{const r=zl(pm,n.__scopeSelect),i=mp(pm,n.__scopeSelect),[o,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]),o?u.jsx(Rj,{...n,ref:h,onAutoScroll:()=>{const{viewport:m,selectedItem:p}=r;m&&p&&(m.scrollTop=m.scrollTop+p.offsetHeight)}}):null});YD.displayName=pm;var Rj=v.forwardRef((n,a)=>{const{__scopeSelect:r,onAutoScroll:i,...o}=n,c=zl("SelectScrollButton",r),h=v.useRef(null),m=$c(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(se.div,{"aria-hidden":!0,...o,ref:a,style:{flexShrink:0,...o.style},onPointerDown:ne(o.onPointerDown,()=>{h.current===null&&(h.current=window.setInterval(i,50))}),onPointerMove:ne(o.onPointerMove,()=>{var g;(g=c.onItemLeave)==null||g.call(c),h.current===null&&(h.current=window.setInterval(i,50))}),onPointerLeave:ne(o.onPointerLeave,()=>{p()})})}),VD="SelectSeparator",KD=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n;return u.jsx(se.div,{"aria-hidden":!0,...i,ref:a})});KD.displayName=VD;var vm="SelectArrow",XD=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n,o=hp(r),c=Ol(vm,r),h=zl(vm,r);return c.open&&h.position==="popper"?u.jsx(Wm,{...o,...i,ref:a}):null});XD.displayName=vm;var FD="SelectBubbleInput",ZD=v.forwardRef(({__scopeSelect:n,value:a,...r},i)=>{const o=v.useRef(null),c=we(i,o),h=xo(a);return v.useEffect(()=>{const m=o.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(se.select,{...r,style:{...gj,...r.style},ref:c,defaultValue:a})});ZD.displayName=FD;function Mj(n){return n===""||n===void 0}function kj(n){const a=nt(n),r=v.useRef(""),i=v.useRef(0),o=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,o,c]}function Aj(n,a,r){const i=a.length>1&&Array.from(a).every(m=>m===a[0])?a[0]:a,o=r?n.indexOf(r):-1;let c=PD(n,Math.max(o,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 PD(n,a){return n.map((r,i)=>n[(a+i)%n.length])}var[Qc,E6]=bt("Tooltip",[Vi]),pp=Vi(),JD="TooltipProvider",Xx="tooltip.open",[C6,Dj]=Qc(JD),Oj="Tooltip",[_6,Gc]=Qc(Oj),gm="TooltipTrigger",ID=v.forwardRef((n,a)=>{const{__scopeTooltip:r,...i}=n,o=Gc(gm,r),c=Dj(gm,r),h=pp(r),m=v.useRef(null),p=we(a,m,o.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(Jm,{asChild:!0,...h,children:u.jsx(se.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...i,ref:p,onPointerMove:ne(n.onPointerMove,b=>{b.pointerType!=="touch"&&!y.current&&!c.isPointerInTransitRef.current&&(o.onTriggerEnter(),y.current=!0)}),onPointerLeave:ne(n.onPointerLeave,()=>{o.onTriggerLeave(),y.current=!1}),onPointerDown:ne(n.onPointerDown,()=>{o.open&&o.onClose(),g.current=!0,document.addEventListener("pointerup",x,{once:!0})}),onFocus:ne(n.onFocus,()=>{g.current||o.onOpen()}),onBlur:ne(n.onBlur,o.onClose),onClick:ne(n.onClick,o.onClose)})})});ID.displayName=gm;var WD="TooltipPortal",[T6,eO]=Qc(WD,{forceMount:void 0}),Ai="TooltipContent",zj=v.forwardRef((n,a)=>{const r=eO(Ai,n.__scopeTooltip),{forceMount:i=r.forceMount,side:o="top",...c}=n,h=Gc(Ai,n.__scopeTooltip);return u.jsx(Ct,{present:i||h.open,children:h.disableHoverableContent?u.jsx(Lj,{side:o,...c,ref:a}):u.jsx(tO,{side:o,...c,ref:a})})}),tO=v.forwardRef((n,a)=>{const r=Gc(Ai,n.__scopeTooltip),i=Dj(Ai,n.__scopeTooltip),o=v.useRef(null),c=we(a,o),[h,m]=v.useState(null),{trigger:p,onClose:g}=r,y=o.current,{onPointerInTransitChange:x}=i,b=v.useCallback(()=>{m(null),x(!1)},[x]),j=v.useCallback((N,S)=>{const C=N.currentTarget,_={x:N.clientX,y:N.clientY},T=iO(_,C.getBoundingClientRect()),R=sO(_,T),D=oO(S.getBoundingClientRect()),U=cO([...R,...D]);m(U),x(!0)},[x]);return v.useEffect(()=>()=>b(),[b]),v.useEffect(()=>{if(p&&y){const N=C=>j(C,y),S=C=>j(C,p);return p.addEventListener("pointerleave",N),y.addEventListener("pointerleave",S),()=>{p.removeEventListener("pointerleave",N),y.removeEventListener("pointerleave",S)}}},[p,y,j,b]),v.useEffect(()=>{if(h){const N=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=!uO(_,h);T?b():R&&(b(),g())};return document.addEventListener("pointermove",N),()=>document.removeEventListener("pointermove",N)}},[p,y,h,g,b]),u.jsx(Lj,{...n,ref:c})}),[nO,aO]=Qc(Oj,{isInside:!1}),lO=v1("TooltipContent"),Lj=v.forwardRef((n,a)=>{const{__scopeTooltip:r,children:i,"aria-label":o,onEscapeKeyDown:c,onPointerDownOutside:h,...m}=n,p=Gc(Ai,r),g=pp(r),{onClose:y}=p;return v.useEffect(()=>(document.addEventListener(Xx,y),()=>document.removeEventListener(Xx,y)),[y]),v.useEffect(()=>{if(p.trigger){const x=b=>{const j=b.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(Qi,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:h,onFocusOutside:x=>x.preventDefault(),onDismiss:y,children:u.jsxs(Im,{"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(lO,{children:i}),u.jsx(nO,{scope:r,isInside:!0,children:u.jsx(xj,{id:p.contentId,role:"tooltip",children:o||i})})]})})});zj.displayName=Ai;var Uj="TooltipArrow",rO=v.forwardRef((n,a)=>{const{__scopeTooltip:r,...i}=n,o=pp(r);return aO(Uj,r).isInside?null:u.jsx(Wm,{...o,...i,ref:a})});rO.displayName=Uj;function iO(n,a){const r=Math.abs(a.top-n.y),i=Math.abs(a.bottom-n.y),o=Math.abs(a.right-n.x),c=Math.abs(a.left-n.x);switch(Math.min(r,i,o,c)){case c:return"left";case o:return"right";case r:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function sO(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 oO(n){const{top:a,right:r,bottom:i,left:o}=n;return[{x:o,y:a},{x:r,y:a},{x:r,y:i},{x:o,y:i}]}function uO(n,a){const{x:r,y:i}=n;let o=!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,b=p.y;y>i!=b>i&&r<(x-g)*(i-y)/(b-y)+g&&(o=!o)}return o}function cO(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),dO(a)}function dO(n){if(n.length<=1)return n.slice();const a=[];for(let i=0;i<n.length;i++){const o=n[i];for(;a.length>=2;){const c=a[a.length-1],h=a[a.length-2];if((c.x-h.x)*(o.y-h.y)>=(c.y-h.y)*(o.x-h.x))a.pop();else break}a.push(o)}a.pop();const r=[];for(let i=n.length-1;i>=0;i--){const o=n[i];for(;r.length>=2;){const c=r[r.length-1],h=r[r.length-2];if((c.x-h.x)*(o.y-h.y)>=(c.y-h.y)*(o.x-h.x))r.pop();else break}r.push(o)}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 fO=zj;fO.displayName;var Yc="Checkbox",[hO,R6]=bt(Yc),[mO,vp]=hO(Yc);function pO(n){const{__scopeCheckbox:a,checked:r,children:i,defaultChecked:o,disabled:c,form:h,name:m,onCheckedChange:p,required:g,value:y="on",internal_do_not_use_render:x}=n,[b,j]=oa({prop:r,defaultProp:o??!1,onChange:p,caller:Yc}),[N,S]=v.useState(null),[C,_]=v.useState(null),T=v.useRef(!1),R=N?!!h||!!N.closest("form"):!0,D={checked:b,disabled:c,setChecked:j,control:N,setControl:S,name:m,form:h,value:y,hasConsumerStoppedPropagationRef:T,required:g,defaultChecked:Tl(o)?!1:o,isFormControl:R,bubbleInput:C,setBubbleInput:_};return u.jsx(mO,{scope:a,...D,children:yO(x)?x(D):i})}var qj="CheckboxTrigger",Hj=v.forwardRef(({__scopeCheckbox:n,onKeyDown:a,onClick:r,...i},o)=>{const{control:c,value:h,disabled:m,checked:p,required:g,setControl:y,setChecked:x,hasConsumerStoppedPropagationRef:b,isFormControl:j,bubbleInput:N}=vp(qj,n),S=we(o,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(se.button,{type:"button",role:"checkbox","aria-checked":Tl(p)?"mixed":p,"aria-required":g,"data-state":Gj(p),"data-disabled":m?"":void 0,disabled:m,value:h,...i,ref:S,onKeyDown:ne(a,_=>{_.key==="Enter"&&_.preventDefault()}),onClick:ne(r,_=>{x(T=>Tl(T)?!0:!T),N&&j&&(b.current=_.isPropagationStopped(),b.current||_.stopPropagation())})})});Hj.displayName=qj;var vO=v.forwardRef((n,a)=>{const{__scopeCheckbox:r,name:i,checked:o,defaultChecked:c,required:h,disabled:m,value:p,onCheckedChange:g,form:y,...x}=n;return u.jsx(pO,{__scopeCheckbox:r,checked:o,defaultChecked:c,disabled:m,required:h,onCheckedChange:g,name:i,form:y,value:p,internal_do_not_use_render:({isFormControl:b})=>u.jsxs(u.Fragment,{children:[u.jsx(Hj,{...x,ref:a,__scopeCheckbox:r}),b&&u.jsx(Qj,{__scopeCheckbox:r})]})})});vO.displayName=Yc;var Bj="CheckboxIndicator",gO=v.forwardRef((n,a)=>{const{__scopeCheckbox:r,forceMount:i,...o}=n,c=vp(Bj,r);return u.jsx(Ct,{present:i||Tl(c.checked)||c.checked===!0,children:u.jsx(se.span,{"data-state":Gj(c.checked),"data-disabled":c.disabled?"":void 0,...o,ref:a,style:{pointerEvents:"none",...n.style}})})});gO.displayName=Bj;var $j="CheckboxBubbleInput",Qj=v.forwardRef(({__scopeCheckbox:n,...a},r)=>{const{control:i,hasConsumerStoppedPropagationRef:o,checked:c,defaultChecked:h,required:m,disabled:p,name:g,value:y,form:x,bubbleInput:b,setBubbleInput:j}=vp($j,n),N=we(r,j),S=xo(c),C=zc(i);v.useEffect(()=>{const T=b;if(!T)return;const R=window.HTMLInputElement.prototype,D=Object.getOwnPropertyDescriptor(R,"checked").set,U=!o.current;if(S!==c&&D){const K=new Event("click",{bubbles:U});T.indeterminate=Tl(c),D.call(T,Tl(c)?!1:c),T.dispatchEvent(K)}},[b,S,c,o]);const _=v.useRef(Tl(c)?!1:c);return u.jsx(se.input,{type:"checkbox","aria-hidden":!0,defaultChecked:h??_.current,required:m,disabled:p,name:g,value:y,form:x,...a,tabIndex:-1,ref:N,style:{...a.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Qj.displayName=$j;function yO(n){return typeof n=="function"}function Tl(n){return n==="indeterminate"}function Gj(n){return Tl(n)?"indeterminate":n?"checked":"unchecked"}var gp="Radio",[xO,Yj]=bt(gp),[bO,wO]=xO(gp),Vj=v.forwardRef((n,a)=>{const{__scopeRadio:r,name:i,checked:o=!1,required:c,disabled:h,value:m="on",onCheck:p,form:g,...y}=n,[x,b]=v.useState(null),j=we(a,C=>b(C)),N=v.useRef(!1),S=x?g||!!x.closest("form"):!0;return u.jsxs(bO,{scope:r,checked:o,disabled:h,children:[u.jsx(se.button,{type:"button",role:"radio","aria-checked":o,"data-state":Zj(o),"data-disabled":h?"":void 0,disabled:h,value:m,...y,ref:j,onClick:ne(n.onClick,C=>{o||p==null||p(),S&&(N.current=C.isPropagationStopped(),N.current||C.stopPropagation())})}),S&&u.jsx(Fj,{control:x,bubbles:!N.current,name:i,value:m,checked:o,required:c,disabled:h,form:g,style:{transform:"translateX(-100%)"}})]})});Vj.displayName=gp;var Kj="RadioIndicator",Xj=v.forwardRef((n,a)=>{const{__scopeRadio:r,forceMount:i,...o}=n,c=wO(Kj,r);return u.jsx(Ct,{present:i||c.checked,children:u.jsx(se.span,{"data-state":Zj(c.checked),"data-disabled":c.disabled?"":void 0,...o,ref:a})})});Xj.displayName=Kj;var jO="RadioBubbleInput",Fj=v.forwardRef(({__scopeRadio:n,control:a,checked:r,bubbles:i=!0,...o},c)=>{const h=v.useRef(null),m=we(h,c),p=xo(r),g=zc(a);return v.useEffect(()=>{const y=h.current;if(!y)return;const x=window.HTMLInputElement.prototype,b=Object.getOwnPropertyDescriptor(x,"checked").set;if(p!==r&&b){const j=new Event("click",{bubbles:i});b.call(y,r),y.dispatchEvent(j)}},[p,r,i]),u.jsx(se.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:m,style:{...o.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Fj.displayName=jO;function Zj(n){return n?"checked":"unchecked"}var SO=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Vc="RadioGroup",[NO,M6]=bt(Vc,[Ki,Yj]),Pj=Ki(),Jj=Yj(),[EO,CO]=NO(Vc),Ij=v.forwardRef((n,a)=>{const{__scopeRadioGroup:r,name:i,defaultValue:o,value:c,required:h=!1,disabled:m=!1,orientation:p,dir:g,loop:y=!0,onValueChange:x,...b}=n,j=Pj(r),N=Bi(g),[S,C]=oa({prop:c,defaultProp:o??null,onChange:x,caller:Vc});return u.jsx(EO,{scope:r,name:i,required:h,disabled:m,value:S,onValueChange:C,children:u.jsx(ep,{asChild:!0,...j,orientation:p,dir:N,loop:y,children:u.jsx(se.div,{role:"radiogroup","aria-required":h,"aria-orientation":p,"data-disabled":m?"":void 0,dir:N,...b,ref:a})})})});Ij.displayName=Vc;var Wj="RadioGroupItem",eS=v.forwardRef((n,a)=>{const{__scopeRadioGroup:r,disabled:i,...o}=n,c=CO(Wj,r),h=c.disabled||i,m=Pj(r),p=Jj(r),g=v.useRef(null),y=we(a,g),x=c.value===o.value,b=v.useRef(!1);return v.useEffect(()=>{const j=S=>{SO.includes(S.key)&&(b.current=!0)},N=()=>b.current=!1;return document.addEventListener("keydown",j),document.addEventListener("keyup",N),()=>{document.removeEventListener("keydown",j),document.removeEventListener("keyup",N)}},[]),u.jsx(tp,{asChild:!0,...m,focusable:!h,active:x,children:u.jsx(Vj,{disabled:h,required:c.required,checked:x,...p,...o,name:c.name,ref:y,onCheck:()=>c.onValueChange(o.value),onKeyDown:ne(j=>{j.key==="Enter"&&j.preventDefault()}),onFocus:ne(o.onFocus,()=>{var j;b.current&&((j=g.current)==null||j.click())})})})});eS.displayName=Wj;var _O="RadioGroupIndicator",TO=v.forwardRef((n,a)=>{const{__scopeRadioGroup:r,...i}=n,o=Jj(r);return u.jsx(Xj,{...o,...i,ref:a})});TO.displayName=_O;var RO=Ij,MO=eS;RO.displayName;MO.displayName;var Kc="Switch",[kO,k6]=bt(Kc),[AO,DO]=kO(Kc),tS=v.forwardRef((n,a)=>{const{__scopeSwitch:r,name:i,checked:o,defaultChecked:c,required:h,disabled:m,value:p="on",onCheckedChange:g,form:y,...x}=n,[b,j]=v.useState(null),N=we(a,R=>j(R)),S=v.useRef(!1),C=b?y||!!b.closest("form"):!0,[_,T]=oa({prop:o,defaultProp:c??!1,onChange:g,caller:Kc});return u.jsxs(AO,{scope:r,checked:_,disabled:m,children:[u.jsx(se.button,{type:"button",role:"switch","aria-checked":_,"aria-required":h,"data-state":rS(_),"data-disabled":m?"":void 0,disabled:m,value:p,...x,ref:N,onClick:ne(n.onClick,R=>{T(D=>!D),C&&(S.current=R.isPropagationStopped(),S.current||R.stopPropagation())})}),C&&u.jsx(lS,{control:b,bubbles:!S.current,name:i,value:p,checked:_,required:h,disabled:m,form:y,style:{transform:"translateX(-100%)"}})]})});tS.displayName=Kc;var nS="SwitchThumb",aS=v.forwardRef((n,a)=>{const{__scopeSwitch:r,...i}=n,o=DO(nS,r);return u.jsx(se.span,{"data-state":rS(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:a})});aS.displayName=nS;var OO="SwitchBubbleInput",lS=v.forwardRef(({__scopeSwitch:n,control:a,checked:r,bubbles:i=!0,...o},c)=>{const h=v.useRef(null),m=we(h,c),p=xo(r),g=zc(a);return v.useEffect(()=>{const y=h.current;if(!y)return;const x=window.HTMLInputElement.prototype,b=Object.getOwnPropertyDescriptor(x,"checked").set;if(p!==r&&b){const j=new Event("click",{bubbles:i});b.call(y,r),y.dispatchEvent(j)}},[p,r,i]),u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:m,style:{...o.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});lS.displayName=OO;function rS(n){return n?"checked":"unchecked"}var zO=tS,LO=aS;function Lh({className:n,...a}){return u.jsx(zO,{"data-slot":"switch",className:he("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(LO,{"data-slot":"switch-thumb",className:he("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 Xc="Tabs",[UO,A6]=bt(Xc,[Ki]),iS=Ki(),[qO,yp]=UO(Xc),sS=v.forwardRef((n,a)=>{const{__scopeTabs:r,value:i,onValueChange:o,defaultValue:c,orientation:h="horizontal",dir:m,activationMode:p="automatic",...g}=n,y=Bi(m),[x,b]=oa({prop:i,onChange:o,defaultProp:c??"",caller:Xc});return u.jsx(qO,{scope:r,baseId:Dl(),value:x,onValueChange:b,orientation:h,dir:y,activationMode:p,children:u.jsx(se.div,{dir:y,"data-orientation":h,...g,ref:a})})});sS.displayName=Xc;var oS="TabsList",uS=v.forwardRef((n,a)=>{const{__scopeTabs:r,loop:i=!0,...o}=n,c=yp(oS,r),h=iS(r);return u.jsx(ep,{asChild:!0,...h,orientation:c.orientation,dir:c.dir,loop:i,children:u.jsx(se.div,{role:"tablist","aria-orientation":c.orientation,...o,ref:a})})});uS.displayName=oS;var cS="TabsTrigger",dS=v.forwardRef((n,a)=>{const{__scopeTabs:r,value:i,disabled:o=!1,...c}=n,h=yp(cS,r),m=iS(r),p=mS(h.baseId,i),g=pS(h.baseId,i),y=i===h.value;return u.jsx(tp,{asChild:!0,...m,focusable:!o,active:y,children:u.jsx(se.button,{type:"button",role:"tab","aria-selected":y,"aria-controls":g,"data-state":y?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:p,...c,ref:a,onMouseDown:ne(n.onMouseDown,x=>{!o&&x.button===0&&x.ctrlKey===!1?h.onValueChange(i):x.preventDefault()}),onKeyDown:ne(n.onKeyDown,x=>{[" ","Enter"].includes(x.key)&&h.onValueChange(i)}),onFocus:ne(n.onFocus,()=>{const x=h.activationMode!=="manual";!y&&!o&&x&&h.onValueChange(i)})})})});dS.displayName=cS;var fS="TabsContent",hS=v.forwardRef((n,a)=>{const{__scopeTabs:r,value:i,forceMount:o,children:c,...h}=n,m=yp(fS,r),p=mS(m.baseId,i),g=pS(m.baseId,i),y=i===m.value,x=v.useRef(y);return v.useEffect(()=>{const b=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(b)},[]),u.jsx(Ct,{present:o||y,children:({present:b})=>u.jsx(se.div,{"data-state":y?"active":"inactive","data-orientation":m.orientation,role:"tabpanel","aria-labelledby":p,hidden:!b,id:g,tabIndex:0,...h,ref:a,style:{...n.style,animationDuration:x.current?"0s":void 0},children:b&&c})})});hS.displayName=fS;function mS(n,a){return`${n}-trigger-${a}`}function pS(n,a){return`${n}-content-${a}`}var HO=sS,BO=uS,$O=dS,QO=hS;function vS({className:n,...a}){return u.jsx(HO,{"data-slot":"tabs",className:he("flex flex-col gap-2",n),...a})}function gS({className:n,...a}){return u.jsx(BO,{"data-slot":"tabs-list",className:he("flex border-b border-border",n),...a})}function Js({className:n,children:a,...r}){return u.jsx($O,{asChild:!0,...r,children:u.jsx(x1,{className:n,children:a})})}function Is({className:n,...a}){return u.jsx(QO,{"data-slot":"tabs-content",className:he("flex-1 outline-none",n),...a})}function GO(n){const a=YO(n),r=v.forwardRef((i,o)=>{const{children:c,...h}=i,m=v.Children.toArray(c),p=m.find(KO);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:o,children:v.isValidElement(g)?v.cloneElement(g,void 0,y):null})}return u.jsx(a,{...h,ref:o,children:c})});return r.displayName=`${n}.Slot`,r}function YO(n){const a=v.forwardRef((r,i)=>{const{children:o,...c}=r,h=v.isValidElement(o)?FO(o):void 0,m=we(h,i);if(v.isValidElement(o)){const p=XO(c,o.props);return o.type!==v.Fragment&&(p.ref=m),v.cloneElement(o,p)}return v.Children.count(o)>1?v.Children.only(null):null});return a.displayName=`${n}.SlotClone`,a}var VO=Symbol("radix.slottable");function KO(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===VO}function XO(n,a){const r={...a};for(const i in a){const o=n[i],c=a[i];/^on[A-Z]/.test(i)?o&&c?r[i]=(...h)=>{const m=c(...h);return o(...h),m}:o&&(r[i]=o):i==="style"?r[i]={...o,...c}:i==="className"&&(r[i]=[o,c].filter(Boolean).join(" "))}return{...n,...r}}function FO(n){var a,r;let i=(a=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:a.get,o=i&&"isReactWarning"in i&&i.isReactWarning;return o?n.ref:(i=(r=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:r.get,o=i&&"isReactWarning"in i&&i.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var ZO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],xp=ZO.reduce((n,a)=>{const r=GO(`Primitive.${a}`),i=v.forwardRef((o,c)=>{const{asChild:h,...m}=o,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}},{}),bp="Progress",wp=100,[PO,D6]=bt(bp),[JO,IO]=PO(bp),WO=v.forwardRef((n,a)=>{const{__scopeProgress:r,value:i=null,max:o,getValueLabel:c=t5,...h}=n;(o||o===0)&&!Fx(o)&&console.error(n5(`${o}`,"Progress"));const m=Fx(o)?o:wp;i!==null&&!Zx(i,m)&&console.error(a5(`${i}`,"Progress"));const p=Zx(i,m)?i:null,g=bc(p)?c(p,m):void 0;return u.jsx(JO,{scope:r,value:p,max:m,children:u.jsx(xp.div,{"aria-valuemax":m,"aria-valuemin":0,"aria-valuenow":bc(p)?p:void 0,"aria-valuetext":g,role:"progressbar","data-state":xS(p,m),"data-value":p??void 0,"data-max":m,...h,ref:a})})});WO.displayName=bp;var yS="ProgressIndicator",e5=v.forwardRef((n,a)=>{const{__scopeProgress:r,...i}=n,o=IO(yS,r);return u.jsx(xp.div,{"data-state":xS(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...i,ref:a})});e5.displayName=yS;function t5(n,a){return`${Math.round(n/a*100)}%`}function xS(n,a){return n==null?"indeterminate":n===a?"complete":"loading"}function bc(n){return typeof n=="number"}function Fx(n){return bc(n)&&!isNaN(n)&&n>0}function Zx(n,a){return bc(n)&&!isNaN(n)&&n<=a&&n>=0}function n5(n,a){return`Invalid prop \`max\` of value \`${n}\` supplied to \`${a}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${wp}\`.`}function a5(n,a){return`Invalid prop \`value\` of value \`${n}\` supplied to \`${a}\`. The \`value\` prop must be:
387
+ - a positive number
388
+ - less than the value passed to \`max\` (or ${wp} if no \`max\` prop is set)
389
+ - \`null\` or \`undefined\` if the progress is indeterminate.
390
+
391
+ Defaulting to \`null\`.`}var l5="Separator",Px="horizontal",r5=["horizontal","vertical"],i5=v.forwardRef((n,a)=>{const{decorative:r,orientation:i=Px,...o}=n,c=s5(i)?i:Px,h=r?{role:"none"}:{"aria-orientation":c==="vertical"?c:void 0,role:"separator"};return u.jsx(xp.div,{"data-orientation":c,...h,...o,ref:a})});i5.displayName=l5;function s5(n){return r5.includes(n)}var o5="Label",bS=v.forwardRef((n,a)=>u.jsx(se.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())}}));bS.displayName=o5;var wS=bS;const u5=y1("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Zs=({ref:n,className:a,...r})=>u.jsx(wS,{ref:n,className:he(u5(),a),...r});Zs.displayName=wS.displayName;var Fc="Collapsible",[c5,jS]=bt(Fc),[d5,jp]=c5(Fc),SS=v.forwardRef((n,a)=>{const{__scopeCollapsible:r,open:i,defaultOpen:o,disabled:c,onOpenChange:h,...m}=n,[p,g]=oa({prop:i,defaultProp:o??!1,onChange:h,caller:Fc});return u.jsx(d5,{scope:r,disabled:c,contentId:Dl(),open:p,onOpenToggle:v.useCallback(()=>g(y=>!y),[g]),children:u.jsx(se.div,{"data-state":Cp(p),"data-disabled":c?"":void 0,...m,ref:a})})});SS.displayName=Fc;var NS="CollapsibleTrigger",Sp=v.forwardRef((n,a)=>{const{__scopeCollapsible:r,...i}=n,o=jp(NS,r);return u.jsx(se.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Cp(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...i,ref:a,onClick:ne(n.onClick,o.onOpenToggle)})});Sp.displayName=NS;var Np="CollapsibleContent",Ep=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,o=jp(Np,n.__scopeCollapsible);return u.jsx(Ct,{present:r||o.open,children:({present:c})=>u.jsx(f5,{...i,ref:a,present:c})})});Ep.displayName=Np;var f5=v.forwardRef((n,a)=>{const{__scopeCollapsible:r,present:i,children:o,...c}=n,h=jp(Np,r),[m,p]=v.useState(i),g=v.useRef(null),y=we(a,g),x=v.useRef(0),b=x.current,j=v.useRef(0),N=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(se.div,{"data-state":Cp(h.open),"data-disabled":h.disabled?"":void 0,id:h.contentId,hidden:!S,...c,ref:y,style:{"--radix-collapsible-content-height":b?`${b}px`:void 0,"--radix-collapsible-content-width":N?`${N}px`:void 0,...n.style},children:S&&o})});function Cp(n){return n?"open":"closed"}var ES=SS,h5=Sp,m5=Ep,Xn="Accordion",p5=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[_p,v5,g5]=$i(Xn),[Zc,O6]=bt(Xn,[g5,jS]),Tp=jS(),y5=ut.forwardRef((n,a)=>{const{type:r,...i}=n,o=i,c=i;return u.jsx(_p.Provider,{scope:n.__scopeAccordion,children:r==="multiple"?u.jsx(j5,{...c,ref:a}):u.jsx(w5,{...o,ref:a})})});y5.displayName=Xn;var[CS,x5]=Zc(Xn),[_S,b5]=Zc(Xn,{collapsible:!1}),w5=ut.forwardRef((n,a)=>{const{value:r,defaultValue:i,onValueChange:o=()=>{},collapsible:c=!1,...h}=n,[m,p]=oa({prop:r,defaultProp:i??"",onChange:o,caller:Xn});return u.jsx(CS,{scope:n.__scopeAccordion,value:ut.useMemo(()=>m?[m]:[],[m]),onItemOpen:p,onItemClose:ut.useCallback(()=>c&&p(""),[c,p]),children:u.jsx(_S,{scope:n.__scopeAccordion,collapsible:c,children:u.jsx(TS,{...h,ref:a})})})}),j5=ut.forwardRef((n,a)=>{const{value:r,defaultValue:i,onValueChange:o=()=>{},...c}=n,[h,m]=oa({prop:r,defaultProp:i??[],onChange:o,caller:Xn}),p=ut.useCallback(y=>m((x=[])=>[...x,y]),[m]),g=ut.useCallback(y=>m((x=[])=>x.filter(b=>b!==y)),[m]);return u.jsx(CS,{scope:n.__scopeAccordion,value:h,onItemOpen:p,onItemClose:g,children:u.jsx(_S,{scope:n.__scopeAccordion,collapsible:!0,children:u.jsx(TS,{...c,ref:a})})})}),[S5,Pc]=Zc(Xn),TS=ut.forwardRef((n,a)=>{const{__scopeAccordion:r,disabled:i,dir:o,orientation:c="vertical",...h}=n,m=ut.useRef(null),p=we(m,a),g=v5(r),y=Bi(o)==="ltr",x=ne(n.onKeyDown,b=>{var j;if(!p5.includes(b.key))return;const N=b.target,S=g().filter(q=>{var G;return!((G=q.ref.current)!=null&&G.disabled)}),C=S.findIndex(q=>q.ref.current===N),_=S.length;if(C===-1)return;b.preventDefault();let T=C;const R=0,D=_-1,U=()=>{T=C+1,T>D&&(T=R)},K=()=>{T=C-1,T<R&&(T=D)};switch(b.key){case"Home":T=R;break;case"End":T=D;break;case"ArrowRight":c==="horizontal"&&(y?U():K());break;case"ArrowDown":c==="vertical"&&U();break;case"ArrowLeft":c==="horizontal"&&(y?K():U());break;case"ArrowUp":c==="vertical"&&K();break}const H=T%_;(j=S[H].ref.current)==null||j.focus()});return u.jsx(S5,{scope:r,disabled:i,direction:o,orientation:c,children:u.jsx(_p.Slot,{scope:r,children:u.jsx(se.div,{...h,"data-orientation":c,ref:p,onKeyDown:i?void 0:x})})})}),wc="AccordionItem",[N5,Rp]=Zc(wc),E5=ut.forwardRef((n,a)=>{const{__scopeAccordion:r,value:i,...o}=n,c=Pc(wc,r),h=x5(wc,r),m=Tp(r),p=Dl(),g=i&&h.value.includes(i)||!1,y=c.disabled||n.disabled;return u.jsx(N5,{scope:r,open:g,disabled:y,triggerId:p,children:u.jsx(ES,{"data-orientation":c.orientation,"data-state":kS(g),...m,...o,ref:a,disabled:y,open:g,onOpenChange:x=>{x?h.onItemOpen(i):h.onItemClose(i)}})})});E5.displayName=wc;var RS="AccordionHeader",C5=ut.forwardRef((n,a)=>{const{__scopeAccordion:r,...i}=n,o=Pc(Xn,r),c=Rp(RS,r);return u.jsx(se.h3,{"data-orientation":o.orientation,"data-state":kS(c.open),"data-disabled":c.disabled?"":void 0,...i,ref:a})});C5.displayName=RS;var ym="AccordionTrigger",_5=ut.forwardRef((n,a)=>{const{__scopeAccordion:r,...i}=n,o=Pc(Xn,r),c=Rp(ym,r),h=b5(ym,r),m=Tp(r);return u.jsx(_p.ItemSlot,{scope:r,children:u.jsx(h5,{"aria-disabled":c.open&&!h.collapsible||void 0,"data-orientation":o.orientation,id:c.triggerId,...m,...i,ref:a})})});_5.displayName=ym;var MS="AccordionContent",T5=ut.forwardRef((n,a)=>{const{__scopeAccordion:r,...i}=n,o=Pc(Xn,r),c=Rp(MS,r),h=Tp(r);return u.jsx(m5,{role:"region","aria-labelledby":c.triggerId,"data-orientation":o.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}})});T5.displayName=MS;function kS(n){return n?"open":"closed"}const AS=ES,DS=Sp,OS=Ep;var jr="NavigationMenu",[Mp,zS,R5]=$i(jr),[xm,M5,k5]=$i(jr),[kp,z6]=bt(jr,[R5,k5]),[A5,kn]=kp(jr),[D5,O5]=kp(jr),z5=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,onValueChange:o,defaultValue:c,delayDuration:h=200,skipDelayDuration:m=300,orientation:p="horizontal",dir:g,...y}=n,[x,b]=v.useState(null),j=we(a,G=>b(G)),N=Bi(g),S=v.useRef(0),C=v.useRef(0),_=v.useRef(0),[T,R]=v.useState(!0),[D,U]=oa({prop:i,onChange:G=>{const ee=G!=="",ue=m>0;ee?(window.clearTimeout(_.current),ue&&R(!1)):(window.clearTimeout(_.current),_.current=window.setTimeout(()=>R(!0),m)),o==null||o(G)},defaultProp:c??"",caller:jr}),K=v.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>U(""),150)},[U]),H=v.useCallback(G=>{window.clearTimeout(C.current),U(G)},[U]),q=v.useCallback(G=>{D===G?window.clearTimeout(C.current):S.current=window.setTimeout(()=>{window.clearTimeout(C.current),U(G)},h)},[D,U,h]);return v.useEffect(()=>()=>{window.clearTimeout(S.current),window.clearTimeout(C.current),window.clearTimeout(_.current)},[]),u.jsx(LS,{scope:r,isRootMenu:!0,value:D,dir:N,orientation:p,rootNavigationMenu:x,onTriggerEnter:G=>{window.clearTimeout(S.current),T?q(G):H(G)},onTriggerLeave:()=>{window.clearTimeout(S.current),K()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:K,onItemSelect:G=>{U(ee=>ee===G?"":G)},onItemDismiss:()=>U(""),children:u.jsx(se.nav,{"aria-label":"Main","data-orientation":p,dir:N,...y,ref:j})})});z5.displayName=jr;var bm="NavigationMenuSub",L5=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,onValueChange:o,defaultValue:c,orientation:h="horizontal",...m}=n,p=kn(bm,r),[g,y]=oa({prop:i,onChange:o,defaultProp:c??"",caller:bm});return u.jsx(LS,{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(se.div,{"data-orientation":h,...m,ref:a})})});L5.displayName=bm;var LS=n=>{const{scope:a,isRootMenu:r,rootNavigationMenu:i,dir:o,orientation:c,children:h,value:m,onItemSelect:p,onItemDismiss:g,onTriggerEnter:y,onTriggerLeave:x,onContentEnter:b,onContentLeave:j}=n,[N,S]=v.useState(null),[C,_]=v.useState(new Map),[T,R]=v.useState(null);return u.jsx(A5,{scope:a,isRootMenu:r,rootNavigationMenu:i,value:m,previousValue:xo(m),baseId:Dl(),dir:o,orientation:c,viewport:N,onViewportChange:S,indicatorTrack:T,onIndicatorTrackChange:R,onTriggerEnter:nt(y),onTriggerLeave:nt(x),onContentEnter:nt(b),onContentLeave:nt(j),onItemSelect:nt(p),onItemDismiss:nt(g),onViewportContentChange:v.useCallback((D,U)=>{_(K=>(K.set(D,U),new Map(K)))},[]),onViewportContentRemove:v.useCallback(D=>{_(U=>U.has(D)?(U.delete(D),new Map(U)):U)},[]),children:u.jsx(Mp.Provider,{scope:a,children:u.jsx(D5,{scope:a,items:C,children:h})})})},US="NavigationMenuList",U5=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,o=kn(US,r),c=u.jsx(se.ul,{"data-orientation":o.orientation,...i,ref:a});return u.jsx(se.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:u.jsx(Mp.Slot,{scope:r,children:o.isRootMenu?u.jsx($S,{asChild:!0,children:c}):c})})});U5.displayName=US;var qS="NavigationMenuItem",[q5,HS]=kp(qS),H5=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,...o}=n,c=Dl(),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),b=v.useCallback((N="start")=>{if(m.current){y.current();const S=jm(m.current);S.length&&Op(N==="start"?S:S.reverse())}},[]),j=v.useCallback(()=>{if(m.current){const N=jm(m.current);N.length&&(y.current=J5(N))}},[]);return u.jsx(q5,{scope:r,value:h,triggerRef:p,contentRef:m,focusProxyRef:g,wasEscapeCloseRef:x,onEntryKeyDown:b,onFocusProxyEnter:b,onRootContentClose:j,onContentFocusOutside:j,children:u.jsx(se.li,{...o,ref:a})})});H5.displayName=qS;var wm="NavigationMenuTrigger",B5=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,disabled:i,...o}=n,c=kn(wm,n.__scopeNavigationMenu),h=HS(wm,n.__scopeNavigationMenu),m=v.useRef(null),p=we(m,h.triggerRef,a),g=GS(c.baseId,h.value),y=YS(c.baseId,h.value),x=v.useRef(!1),b=v.useRef(!1),j=h.value===c.value;return u.jsxs(u.Fragment,{children:[u.jsx(Mp.ItemSlot,{scope:r,value:h.value,children:u.jsx(QS,{asChild:!0,children:u.jsx(se.button,{id:g,disabled:i,"data-disabled":i?"":void 0,"data-state":zp(j),"aria-expanded":j,"aria-controls":y,...o,ref:p,onPointerEnter:ne(n.onPointerEnter,()=>{b.current=!1,h.wasEscapeCloseRef.current=!1}),onPointerMove:ne(n.onPointerMove,jc(()=>{i||b.current||h.wasEscapeCloseRef.current||x.current||(c.onTriggerEnter(h.value),x.current=!0)})),onPointerLeave:ne(n.onPointerLeave,jc(()=>{i||(c.onTriggerLeave(),x.current=!1)})),onClick:ne(n.onClick,()=>{c.onItemSelect(h.value),b.current=j}),onKeyDown:ne(n.onKeyDown,N=>{const S={horizontal:"ArrowDown",vertical:c.dir==="rtl"?"ArrowLeft":"ArrowRight"}[c.orientation];j&&N.key===S&&(h.onEntryKeyDown(),N.preventDefault())})})})}),j&&u.jsxs(u.Fragment,{children:[u.jsx(xj,{"aria-hidden":!0,tabIndex:0,ref:h.focusProxyRef,onFocus:N=>{const S=h.contentRef.current,C=N.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})]})]})});B5.displayName=wm;var $5="NavigationMenuLink",Jx="navigationMenu.linkSelect",Q5=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,active:i,onSelect:o,...c}=n;return u.jsx(QS,{asChild:!0,children:u.jsx(se.a,{"data-active":i?"":void 0,"aria-current":i?"page":void 0,...c,ref:a,onClick:ne(n.onClick,h=>{const m=h.target,p=new CustomEvent(Jx,{bubbles:!0,cancelable:!0});if(m.addEventListener(Jx,g=>o==null?void 0:o(g),{once:!0}),uc(m,p),!p.defaultPrevented&&!h.metaKey){const g=new CustomEvent(ac,{bubbles:!0,cancelable:!0});uc(m,g)}},{checkForDefaultPrevented:!1})})})});Q5.displayName=$5;var Ap="NavigationMenuIndicator",G5=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,o=kn(Ap,n.__scopeNavigationMenu),c=!!o.value;return o.indicatorTrack?Yb.createPortal(u.jsx(Ct,{present:r||c,children:u.jsx(Y5,{...i,ref:a})}),o.indicatorTrack):null});G5.displayName=Ap;var Y5=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,o=kn(Ap,r),c=zS(r),[h,m]=v.useState(null),[p,g]=v.useState(null),y=o.orientation==="horizontal",x=!!o.value;v.useEffect(()=>{var j;const N=(j=c().find(S=>S.value===o.value))==null?void 0:j.ref.current;N&&m(N)},[c,o.value]);const b=()=>{h&&g({size:y?h.offsetWidth:h.offsetHeight,offset:y?h.offsetLeft:h.offsetTop})};return Sm(h,b),Sm(o.indicatorTrack,b),p?u.jsx(se.div,{"aria-hidden":!0,"data-state":x?"visible":"hidden","data-orientation":o.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}),Di="NavigationMenuContent",V5=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,o=kn(Di,n.__scopeNavigationMenu),c=HS(Di,n.__scopeNavigationMenu),h=we(c.contentRef,a),m=c.value===o.value,p={value:c.value,triggerRef:c.triggerRef,focusProxyRef:c.focusProxyRef,wasEscapeCloseRef:c.wasEscapeCloseRef,onContentFocusOutside:c.onContentFocusOutside,onRootContentClose:c.onRootContentClose,...i};return o.viewport?u.jsx(K5,{forceMount:r,...p,ref:h}):u.jsx(Ct,{present:r||m,children:u.jsx(BS,{"data-state":zp(m),...p,ref:h,onPointerEnter:ne(n.onPointerEnter,o.onContentEnter),onPointerLeave:ne(n.onPointerLeave,jc(o.onContentLeave)),style:{pointerEvents:!m&&o.isRootMenu?"none":void 0,...p.style}})})});V5.displayName=Di;var K5=v.forwardRef((n,a)=>{const r=kn(Di,n.__scopeNavigationMenu),{onViewportContentChange:i,onViewportContentRemove:o}=r;return lt(()=>{i(n.value,{ref:a,...n})},[n,a,i]),lt(()=>()=>o(n.value),[n.value,o]),null}),ac="navigationMenu.rootContentDismiss",BS=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,triggerRef:o,focusProxyRef:c,wasEscapeCloseRef:h,onRootContentClose:m,onContentFocusOutside:p,...g}=n,y=kn(Di,r),x=v.useRef(null),b=we(x,a),j=GS(y.baseId,i),N=YS(y.baseId,i),S=zS(r),C=v.useRef(null),{onItemDismiss:_}=y;v.useEffect(()=>{const R=x.current;if(y.isRootMenu&&R){const D=()=>{var U;_(),m(),R.contains(document.activeElement)&&((U=o.current)==null||U.focus())};return R.addEventListener(ac,D),()=>R.removeEventListener(ac,D)}},[y.isRootMenu,n.value,o,_,m]);const T=v.useMemo(()=>{const R=S().map(G=>G.value);y.dir==="rtl"&&R.reverse();const D=R.indexOf(y.value),U=R.indexOf(y.previousValue),K=i===y.value,H=U===R.indexOf(i);if(!K&&!H)return C.current;const q=(()=>{if(D!==U){if(K&&U!==-1)return D>U?"from-end":"from-start";if(H&&D!==-1)return D>U?"to-start":"to-end"}return null})();return C.current=q,q},[y.previousValue,y.value,y.dir,S,i]);return u.jsx($S,{asChild:!0,children:u.jsx(Qi,{id:N,"aria-labelledby":j,"data-motion":T,"data-orientation":y.orientation,...g,ref:b,disableOutsidePointerEvents:!1,onDismiss:()=>{var R;const D=new Event(ac,{bubbles:!0,cancelable:!0});(R=x.current)==null||R.dispatchEvent(D)},onFocusOutside:ne(n.onFocusOutside,R=>{var D;p();const U=R.target;(D=y.rootNavigationMenu)!=null&&D.contains(U)&&R.preventDefault()}),onPointerDownOutside:ne(n.onPointerDownOutside,R=>{var D;const U=R.target,K=S().some(q=>{var G;return(G=q.ref.current)==null?void 0:G.contains(U)}),H=y.isRootMenu&&((D=y.viewport)==null?void 0:D.contains(U));(K||H||!y.isRootMenu)&&R.preventDefault()}),onKeyDown:ne(n.onKeyDown,R=>{var D;const U=R.altKey||R.ctrlKey||R.metaKey;if(R.key==="Tab"&&!U){const K=jm(R.currentTarget),H=document.activeElement,q=K.findIndex(ee=>ee===H),G=R.shiftKey?K.slice(0,q).reverse():K.slice(q+1,K.length);Op(G)?R.preventDefault():(D=c.current)==null||D.focus()}}),onEscapeKeyDown:ne(n.onEscapeKeyDown,R=>{h.current=!0})})})}),Dp="NavigationMenuViewport",X5=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,o=!!kn(Dp,n.__scopeNavigationMenu).value;return u.jsx(Ct,{present:r||o,children:u.jsx(F5,{...i,ref:a})})});X5.displayName=Dp;var F5=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,children:i,...o}=n,c=kn(Dp,r),h=we(a,c.onViewportChange),m=O5(Di,n.__scopeNavigationMenu),[p,g]=v.useState(null),[y,x]=v.useState(null),b=p?(p==null?void 0:p.width)+"px":void 0,j=p?(p==null?void 0:p.height)+"px":void 0,N=!!c.value,S=N?c.value:c.previousValue;return Sm(y,()=>{y&&g({width:y.offsetWidth,height:y.offsetHeight})}),u.jsx(se.div,{"data-state":zp(N),"data-orientation":c.orientation,...o,ref:h,style:{pointerEvents:!N&&c.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":b,"--radix-navigation-menu-viewport-height":j,...o.style},onPointerEnter:ne(n.onPointerEnter,c.onContentEnter),onPointerLeave:ne(n.onPointerLeave,jc(c.onContentLeave)),children:Array.from(m.items).map(([C,{ref:_,forceMount:T,...R}])=>{const D=S===C;return u.jsx(Ct,{present:T||D,children:u.jsx(BS,{...R,ref:po(_,U=>{D&&U&&x(U)})})},C)})})}),Z5="FocusGroup",$S=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,o=kn(Z5,r);return u.jsx(xm.Provider,{scope:r,children:u.jsx(xm.Slot,{scope:r,children:u.jsx(se.div,{dir:o.dir,...i,ref:a})})})}),Ix=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],P5="FocusGroupItem",QS=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,o=M5(r),c=kn(P5,r);return u.jsx(xm.ItemSlot,{scope:r,children:u.jsx(se.button,{...i,ref:a,onKeyDown:ne(n.onKeyDown,h=>{if(["Home","End",...Ix].includes(h.key)){let m=o().map(p=>p.ref.current);if([c.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(h.key)&&m.reverse(),Ix.includes(h.key)){const p=m.indexOf(h.currentTarget);m=m.slice(p+1)}setTimeout(()=>Op(m)),h.preventDefault()}})})})});function jm(n){const a=[],r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)a.push(r.currentNode);return a}function Op(n){const a=document.activeElement;return n.some(r=>r===a?!0:(r.focus(),document.activeElement!==a))}function J5(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 Sm(n,a){const r=nt(a);lt(()=>{let i=0;if(n){const o=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(r)});return o.observe(n),()=>{window.cancelAnimationFrame(i),o.unobserve(n)}}},[n,r])}function zp(n){return n?"open":"closed"}function GS(n,a){return`${n}-trigger-${a}`}function YS(n,a){return`${n}-content-${a}`}function jc(n){return a=>a.pointerType==="mouse"?n(a):void 0}var Wx={exports:{}},Uh={};/**
392
+ * @license React
393
+ * use-sync-external-store-shim.production.js
394
+ *
395
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
396
+ *
397
+ * This source code is licensed under the MIT license found in the
398
+ * LICENSE file in the root directory of this source tree.
399
+ */var eb;function I5(){if(eb)return Uh;eb=1;var n=ut;function a(x,b){return x===b&&(x!==0||1/x===1/b)||x!==x&&b!==b}var r=typeof Object.is=="function"?Object.is:a,i=n.useState,o=n.useEffect,c=n.useLayoutEffect,h=n.useDebugValue;function m(x,b){var j=b(),N=i({inst:{value:j,getSnapshot:b}}),S=N[0].inst,C=N[1];return c(function(){S.value=j,S.getSnapshot=b,p(S)&&C({inst:S})},[x,j,b]),o(function(){return p(S)&&C({inst:S}),x(function(){p(S)&&C({inst:S})})},[x]),h(j),j}function p(x){var b=x.getSnapshot;x=x.value;try{var j=b();return!r(x,j)}catch{return!0}}function g(x,b){return b()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:m;return Uh.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:y,Uh}var tb;function W5(){return tb||(tb=1,Wx.exports=I5()),Wx.exports}var ez=W5();function tz(){return ez.useSyncExternalStore(nz,()=>!0,()=>!1)}function nz(){return()=>{}}var Lp="Avatar",[az,L6]=bt(Lp),[lz,VS]=az(Lp),KS=v.forwardRef((n,a)=>{const{__scopeAvatar:r,...i}=n,[o,c]=v.useState("idle");return u.jsx(lz,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:c,children:u.jsx(se.span,{...i,ref:a})})});KS.displayName=Lp;var XS="AvatarImage",FS=v.forwardRef((n,a)=>{const{__scopeAvatar:r,src:i,onLoadingStatusChange:o=()=>{},...c}=n,h=VS(XS,r),m=rz(i,c),p=nt(g=>{o(g),h.onImageLoadingStatusChange(g)});return lt(()=>{m!=="idle"&&p(m)},[m,p]),m==="loaded"?u.jsx(se.img,{...c,ref:a,src:i}):null});FS.displayName=XS;var ZS="AvatarFallback",PS=v.forwardRef((n,a)=>{const{__scopeAvatar:r,delayMs:i,...o}=n,c=VS(ZS,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(se.span,{...o,ref:a}):null});PS.displayName=ZS;function nb(n,a){return n?a?(n.src!==a&&(n.src=a),n.complete&&n.naturalWidth>0?"loaded":"loading"):"error":"idle"}function rz(n,{referrerPolicy:a,crossOrigin:r}){const i=tz(),o=v.useRef(null),c=i?(o.current||(o.current=new window.Image),o.current):null,[h,m]=v.useState(()=>nb(c,n));return lt(()=>{m(nb(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 iz=KS,sz=FS,oz=PS;iz.displayName;sz.displayName;oz.displayName;$A.displayName;QA.displayName;zA.displayName;UA.displayName;qA.displayName;HA.displayName;LA.displayName;BA.displayName;he("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)]");function uz({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(Jb,{className:"h-3 w-3 shrink-0 text-yellow-500"}):u.jsx(Zb,{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 cz({table:n,onInsertText:a}){const[r,i]=v.useState(!1);return u.jsxs(AS,{open:r,onOpenChange:i,children:[u.jsxs(DS,{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(Fb,{className:"h-4 w-4 shrink-0"}):u.jsx(yr,{className:"h-4 w-4 shrink-0"}),u.jsx(_c,{className:"h-4 w-4 shrink-0 text-blue-500"}),u.jsx("span",{className:"truncate font-medium cursor-pointer",onClick:o=>{o.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(OS,{children:u.jsx("div",{className:"ml-4 border-l pl-2",children:n.columns.map(o=>u.jsx(uz,{column:o,onInsertText:a},o.name))})})]})}function dz({onInsertText:n}){const{data:a,isLoading:r,refetch:i}=ct({queryKey:["auth-schema"],queryFn:iR,staleTime:3e4}),o=(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(Be,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>i(),disabled:r,children:u.jsx(mo,{className:he("h-4 w-4",r&&"animate-spin")})})]}),u.jsx(D1,{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..."}):o.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:o.map(c=>u.jsx(cz,{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 fz(n){return n===null?"NULL":n===void 0?"":typeof n=="object"?JSON.stringify(n):String(n)}function hz(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 mz({settings:n,onUpdate:a,isUpdating:r}){const[i,o]=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})},b=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(Zs,{htmlFor:"sessionTokenExpiry",children:"Session Token Expiry (seconds)"}),u.jsx(Hm,{id:"sessionTokenExpiry",type:"number",min:3600,max:7776e3,value:i,onChange:j=>o(j.target.value)}),u.jsxs("p",{className:"text-xs text-muted-foreground",children:["Current: ",hz(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(Zs,{children:"Allow Signups"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Allow new users to create accounts"})]}),u.jsx(Lh,{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(Zs,{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(Lh,{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(Zs,{children:"Require Name"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Require users to enter their name during sign up"})]}),u.jsx(Lh,{checked:g,onCheckedChange:y})]})]}),u.jsx("div",{className:"flex justify-end",children:u.jsx(Be,{onClick:x,disabled:!b||r,children:r?"Saving...":"Save Settings"})})]})}function pz(){var ie,ae,re,z,J,Y;const n=Nc(),[a,r]=v.useState("settings"),[i,o]=v.useState(""),[c,h]=v.useState(null),[m,p]=v.useState(null),[g,y]=v.useState(null),[x,b]=v.useState(0),j=50,S=((ae=(ie=ct({queryKey:["config"],queryFn:Um,staleTime:6e4}).data)==null?void 0:ie.auth)==null?void 0:ae.binding)||"AUTH",C=ct({queryKey:["auth-settings"],queryFn:oR,staleTime:0}),_=ic({mutationFn:uR,onSuccess:()=>{n.invalidateQueries({queryKey:["auth-settings"]})}}),T=X=>{_.mutate(X)},R=v.useCallback(X=>{o(de=>de+X)},[]),D=ic({mutationFn:X=>sR(X),onSuccess:X=>{h(X),p(null)},onError:X=>{p(X instanceof Error?X.message:"Failed to execute query"),h(null)}}),U=()=>{i.trim()&&D.mutate(i)},K=ct({queryKey:["auth-tables"],queryFn:lR,staleTime:0,gcTime:0}),H=ct({queryKey:["auth-tableData",g,j,x],queryFn:()=>rR(g,j,x),staleTime:0,gcTime:0,enabled:!!g}),q=((re=K.data)==null?void 0:re.tables)||[],G=((z=H.data)==null?void 0:z.data)||[],ee=((J=H.data)==null?void 0:J.columns)||[],ue=((Y=H.data)==null?void 0:Y.total)||0,ce=X=>{y(X),b(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(Pb,{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(vS,{value:a,onValueChange:r,children:[u.jsxs(gS,{children:[u.jsxs(Js,{value:"settings",children:[u.jsx(_T,{className:"mr-2 h-4 w-4"}),"Settings"]}),u.jsx(Js,{value:"query",children:"SQL Editor"}),u.jsx(Js,{value:"tables",children:"Tables"})]}),u.jsx(Is,{value:"settings",className:"mt-4",children:u.jsxs(mt,{children:[u.jsxs(Nt,{children:[u.jsx(Et,{children:"Auth Settings"}),u.jsx(qt,{children:"Configure authentication settings for local development."})]}),u.jsx(pt,{children:C.isLoading?u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(Rn,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):C.data?u.jsx(mz,{settings:C.data,onUpdate:T,isUpdating:_.isPending}):u.jsx("p",{className:"text-muted-foreground",children:"Failed to load settings"})})]})}),u.jsx(Is,{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(mt,{children:[u.jsxs(Nt,{children:[u.jsx(Et,{children:"SQL Query"}),u.jsx(qt,{children:"Execute read-only SELECT queries against auth tables"})]}),u.jsxs(pt,{className:"space-y-4",children:[u.jsx("textarea",{value:i,onChange:X=>o(X.target.value),onKeyDown:X=>{(X.metaKey||X.ctrlKey)&&X.key==="Enter"&&U()},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(Be,{onClick:U,disabled:D.isPending||!i.trim(),children:[u.jsx(Lm,{className:"mr-2 h-4 w-4"}),D.isPending?"Executing...":"Execute"]})]})]})]}),m&&u.jsx(mt,{className:"border-destructive/50",children:u.jsx(pt,{className:"pt-6",children:u.jsx("p",{className:"font-mono text-sm text-destructive",children:m})})}),c&&u.jsx(m1,{results:c.results,meta:c.meta,error:c.error})]}),u.jsx("div",{className:"hidden h-[500px] lg:block",children:u.jsx(dz,{onInsertText:R})})]})}),u.jsx(Is,{value:"tables",className:"mt-4",children:u.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-4",children:[u.jsxs(mt,{className:"md:col-span-1",children:[u.jsxs(Nt,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[u.jsx(Et,{className:"text-base",children:"Tables"}),u.jsx(Be,{variant:"ghost",size:"icon",onClick:()=>K.refetch(),className:"h-8 w-8",children:u.jsx(mo,{className:"h-4 w-4"})})]}),u.jsx(pt,{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(_c,{className:"h-4 w-4 shrink-0"}),u.jsx("span",{className:"truncate",children:X.name})]},X.name))})})]}),u.jsxs(mt,{className:"md:col-span-3",children:[u.jsxs(Nt,{children:[u.jsx(Et,{children:g||"Select a Table"}),g&&u.jsxs(qt,{children:[ue," total rows"]})]}),u.jsx(pt,{children:g?H.isLoading?u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(Rn,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):G.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(Yn,{children:[u.jsx(Vn,{children:u.jsx(dt,{children:ee.map(X=>u.jsx(Ce,{className:"font-mono",children:X},X))})}),u.jsx(Kn,{children:G.map((X,de)=>u.jsx(dt,{children:ee.map(k=>u.jsx(_e,{className:"font-mono text-sm",children:fz(X[k])},k))},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(Be,{variant:"outline",size:"sm",disabled:x===0,onClick:()=>b(Math.max(0,x-j)),children:[u.jsx(ho,{className:"mr-1 h-4 w-4"}),"Previous"]}),u.jsxs(Be,{variant:"outline",size:"sm",disabled:x+j>=ue,onClick:()=>b(x+j),children:["Next",u.jsx(yr,{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 da(){return u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(Rn,{className:"h-6 w-6 animate-spin text-muted-foreground"})})}function Fn({children:n}){return u.jsx("div",{className:"flex items-center justify-center py-8 text-muted-foreground",children:n})}function Sr({id:n}){return u.jsxs("span",{className:"font-mono text-xs",children:[n.slice(0,8),"..."]})}function Ut({title:n,value:a,icon:r,isLoading:i}){return u.jsxs(mt,{children:[u.jsxs(Nt,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[u.jsx(Et,{className:"text-sm font-medium",children:n}),r]}),u.jsx(pt,{children:u.jsx("div",{className:"text-2xl font-bold",children:i?u.jsx(Rn,{className:"h-5 w-5 animate-spin"}):a})})]})}function Ll({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 Zu=20;function vz(n){if(n===null)return"Never";const a=n-Math.floor(Date.now()/1e3);return a<=0?"Expired":a<60?`${a}s`:a<3600?`${Math.floor(a/60)}m`:a<86400?`${Math.floor(a/3600)}h`:`${Math.floor(a/86400)}d`}function gz({entries:n,isLoading:a}){return u.jsxs(mt,{children:[u.jsxs(Nt,{children:[u.jsx(Et,{children:"Cache Entries"}),u.jsx(qt,{children:"Key-value entries in this cache store (auto-refreshes every 5 seconds)"})]}),u.jsx(pt,{children:a?u.jsx(da,{}):n!=null&&n.length?u.jsxs(Yn,{children:[u.jsx(Vn,{children:u.jsxs(dt,{children:[u.jsx(Ce,{children:"Key"}),u.jsx(Ce,{children:"Value"}),u.jsx(Ce,{children:"Expires"})]})}),u.jsx(Kn,{children:n.map(r=>u.jsxs(dt,{children:[u.jsx(_e,{className:"font-mono text-sm",children:r.key}),u.jsx(_e,{className:"max-w-[400px] truncate font-mono text-xs text-muted-foreground",children:r.value}),u.jsx(_e,{className:"font-mono text-xs text-muted-foreground",children:vz(r.expiresAt)})]},r.key))})]}):u.jsx(Fn,{children:"No entries in this cache store"})})]})}function yz(){const{binding:n}=Qa(),a=n||"",[r,i]=v.useState(0),[o,c]=v.useState(""),[h,m]=v.useState(""),{data:p,isLoading:g}=ct({queryKey:["cacheEntries",a,r,o],queryFn:()=>FT(a,Zu,r,o),enabled:!!a,refetchInterval:5e3}),y=(p==null?void 0:p.hasMore)??!1,x=Math.floor(r/Zu)+1,b=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(Ll,{title:`Cache: ${a}`}),u.jsxs("form",{onSubmit:b,className:"flex gap-2",children:[u.jsx(Hm,{placeholder:"Search by key...",value:h,onChange:j=>m(j.target.value),className:"max-w-sm"}),u.jsxs(Be,{type:"submit",variant:"outline",size:"sm",children:[u.jsx(e1,{className:"h-4 w-4 mr-1"}),"Search"]}),o&&u.jsx(Be,{type:"button",variant:"ghost",size:"sm",onClick:()=>{c(""),m(""),i(0)},children:"Clear"})]}),u.jsx(gz,{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(Be,{variant:"outline",size:"sm",onClick:()=>i(Math.max(0,r-Zu)),disabled:r===0,children:[u.jsx(ho,{className:"h-4 w-4"}),"Previous"]}),u.jsxs(Be,{variant:"outline",size:"sm",onClick:()=>i(r+Zu),disabled:!y,children:["Next",u.jsx(yr,{className:"h-4 w-4"})]})]})]})]})})}const xz={PENDING:{variant:"default",icon:u.jsx(xr,{className:"h-3 w-3"}),label:"Pending"},RUNNING:{variant:"blue",icon:u.jsx(Rn,{className:"h-3 w-3 animate-spin"}),label:"Running"},COMPLETED:{variant:"success",icon:u.jsx(Rl,{className:"h-3 w-3"}),label:"Completed"},FAILED:{variant:"error",icon:u.jsx(Ui,{className:"h-3 w-3"}),label:"Failed"},CANCELLED:{variant:"default",icon:u.jsx(G_,{className:"h-3 w-3"}),label:"Cancelled"}},bz={PENDING:{variant:"default",icon:u.jsx(xr,{className:"h-3 w-3"}),label:"Pending"},PROCESSING:{variant:"blue",icon:u.jsx(Rn,{className:"h-3 w-3 animate-spin"}),label:"Processing"},ACKNOWLEDGED:{variant:"success",icon:u.jsx(Rl,{className:"h-3 w-3"}),label:"Acknowledged"},FAILED:{variant:"error",icon:u.jsx(Ui,{className:"h-3 w-3"}),label:"Failed"},DEAD_LETTER:{variant:"orange",icon:u.jsx(tT,{className:"h-3 w-3"}),label:"Dead Letter"}};function Up({status:n}){const a=xz[n];return a?u.jsx(Ml,{variant:a.variant,icon:a.icon,children:a.label}):u.jsx(Ml,{children:n})}const wz={PENDING:{variant:"default",icon:u.jsx(xr,{className:"h-3 w-3"}),label:"Pending"},FIRED:{variant:"success",icon:u.jsx(Rl,{className:"h-3 w-3"}),label:"Fired"},COMPLETED:{variant:"success",icon:u.jsx(Rl,{className:"h-3 w-3"}),label:"Completed"},FAILED:{variant:"error",icon:u.jsx(Ui,{className:"h-3 w-3"}),label:"Failed"}};function JS({status:n}){const a=wz[n];return a?u.jsx(Ml,{variant:a.variant,icon:a.icon,children:a.label}):u.jsx(Ml,{children:n})}function jz({status:n}){const a=bz[n];return a?u.jsx(Ml,{variant:a.variant,icon:a.icon,children:a.label}):u.jsx(Ml,{children:n})}const Sz={provisioning:{variant:"blue",icon:u.jsx(Rn,{className:"h-3 w-3 animate-spin"}),label:"Provisioning"},active:{variant:"success",icon:u.jsx(Kb,{className:"h-3 w-3"}),label:"Active"},idle:{variant:"default",icon:u.jsx(Wb,{className:"h-3 w-3"}),label:"Idle"},sleeping:{variant:"warning",icon:u.jsx(Ib,{className:"h-3 w-3"}),label:"Sleeping"},stopped:{variant:"default",icon:u.jsx(DT,{className:"h-3 w-3"}),label:"Stopped"},destroyed:{variant:"error",icon:u.jsx(qT,{className:"h-3 w-3"}),label:"Destroyed"}};function Nz({status:n,active:a}){const i=Sz[n==="running"?a?"active":"idle":n];return i?u.jsx(Ml,{variant:i.variant,icon:i.icon,children:i.label}):u.jsx(Ml,{children:n})}function Ez({executions:n,cronExpression:a,isLoading:r}){const i=(n==null?void 0:n.filter(c=>c.status==="COMPLETED").length)??0,o=(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(Ut,{title:"Schedule",value:a??"-",icon:u.jsx(xr,{className:"h-4 w-4 text-muted-foreground"}),isLoading:r}),u.jsx(Ut,{title:"Completed",value:i,icon:u.jsx(Rl,{className:"h-4 w-4 text-green-500"}),isLoading:r}),u.jsx(Ut,{title:"Failed",value:o,icon:u.jsx(Ui,{className:"h-4 w-4 text-red-500"}),isLoading:r})]})}function Cz({executions:n,isLoading:a}){return u.jsxs(mt,{children:[u.jsxs(Nt,{children:[u.jsx(Et,{children:"Execution History"}),u.jsx(qt,{children:"Recent cron handler executions (auto-refreshes every 5 seconds)"})]}),u.jsx(pt,{children:a?u.jsx(da,{}):n!=null&&n.length?u.jsxs(Yn,{children:[u.jsx(Vn,{children:u.jsxs(dt,{children:[u.jsx(Ce,{children:"ID"}),u.jsx(Ce,{children:"Status"}),u.jsx(Ce,{children:"Triggered"}),u.jsx(Ce,{children:"Duration"}),u.jsx(Ce,{children:"Error"}),u.jsx(Ce,{children:"Completed"})]})}),u.jsx(Kn,{children:n.map(r=>u.jsxs(dt,{children:[u.jsx(_e,{children:u.jsx(Sr,{id:r.id})}),u.jsx(_e,{children:u.jsx(Up,{status:r.status})}),u.jsx(_e,{children:u.jsx(fn,{timestamp:r.triggeredAt})}),u.jsx(_e,{children:r.durationMs!==void 0&&r.durationMs!==null?`${r.durationMs}ms`:"-"}),u.jsx(_e,{className:"max-w-[200px] truncate text-xs text-red-500",children:r.error??"-"}),u.jsx(_e,{children:r.completedAt?u.jsx(fn,{timestamp:r.completedAt}):"-"})]},r.id))})]}):u.jsx(Fn,{children:"No cron executions yet"})})]})}function _z(){const{binding:n}=Qa(),a=n||"",r=Nc(),{data:i,isLoading:o}=ct({queryKey:["cronExecutions",a],queryFn:()=>nR(a,20),enabled:!!a,refetchInterval:5e3}),c=ic({mutationFn:()=>aR(a),onSettled:()=>{r.invalidateQueries({queryKey:["cronExecutions",a]})}});return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(Ll,{title:`Cron: ${a}`,children:u.jsxs(Be,{size:"sm",disabled:!a||c.isPending,onClick:()=>{c.mutate()},children:[u.jsx(Lm,{className:"h-4 w-4 mr-1"}),c.isPending?"Running...":"Run now"]})}),u.jsx(Ez,{executions:i==null?void 0:i.executions,cronExpression:i==null?void 0:i.cronExpression,isLoading:o}),u.jsx(Cz,{executions:i==null?void 0:i.executions,isLoading:o})]})})}function Tz({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(Jb,{className:"h-3 w-3 shrink-0 text-yellow-500"}):u.jsx(Zb,{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 Rz({table:n,onInsertText:a}){const[r,i]=v.useState(!1);return u.jsxs(AS,{open:r,onOpenChange:i,children:[u.jsxs(DS,{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(Fb,{className:"h-4 w-4 shrink-0"}):u.jsx(yr,{className:"h-4 w-4 shrink-0"}),u.jsx(_c,{className:"h-4 w-4 shrink-0 text-blue-500"}),u.jsx("span",{className:"truncate font-medium cursor-pointer",onClick:o=>{o.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(OS,{children:u.jsx("div",{className:"ml-4 border-l pl-2",children:n.columns.map(o=>u.jsx(Tz,{column:o,onInsertText:a},o.name))})})]})}function Mz({bindingName:n,onInsertText:a}){const{data:r,isLoading:i,refetch:o}=ct({queryKey:["schema",n],queryFn:()=>KT(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(Be,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>o(),disabled:i,children:u.jsx(mo,{className:he("h-4 w-4",i&&"animate-spin")})})]}),u.jsx(D1,{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(Rz,{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 kz(n){return n===null?"NULL":n===void 0?"":typeof n=="object"?JSON.stringify(n):String(n)}function Az(){var G,ee,ue,ce;const{binding:n}=Qa(),a=n||"",[r,i]=v.useState("query"),[o,c]=v.useState(""),[h,m]=v.useState(null),[p,g]=v.useState(null),[y,x]=v.useState(null),[b,j]=v.useState(0),N=50,S=v.useCallback(ie=>{c(ae=>ae+ie)},[]),C=ic({mutationFn:ie=>GT(a,ie),onSuccess:ie=>{m(ie),g(null)},onError:ie=>{g(ie instanceof Error?ie.message:"Failed to execute query"),m(null)}}),_=()=>{o.trim()&&C.mutate(o)},T=ct({queryKey:["tables",a],queryFn:()=>YT(a),staleTime:0,gcTime:0,enabled:!!a}),R=ct({queryKey:["tableData",a,y,N,b],queryFn:()=>VT(a,y,N,b),staleTime:0,gcTime:0,enabled:!!a&&!!y}),D=((G=T.data)==null?void 0:G.tables)||[],U=((ee=R.data)==null?void 0:ee.data)||[],K=((ue=R.data)==null?void 0:ue.columns)||[],H=((ce=R.data)==null?void 0:ce.total)||0,q=ie=>{x(ie),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(vS,{value:r,onValueChange:i,children:[u.jsxs(gS,{children:[u.jsx(Js,{value:"query",children:"SQL Editor"}),u.jsx(Js,{value:"tables",children:"Tables"})]}),u.jsx(Is,{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(mt,{children:[u.jsxs(Nt,{children:[u.jsx(Et,{children:"SQL Query"}),u.jsx(qt,{children:"Execute SQL queries against your database"})]}),u.jsxs(pt,{className:"space-y-4",children:[u.jsx("textarea",{value:o,onChange:ie=>c(ie.target.value),onKeyDown:ie=>{(ie.metaKey||ie.ctrlKey)&&ie.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(Be,{onClick:_,disabled:C.isPending||!o.trim(),children:[u.jsx(Lm,{className:"mr-2 h-4 w-4"}),C.isPending?"Executing...":"Execute"]})]})]})]}),p&&u.jsx(mt,{className:"border-destructive/50",children:u.jsx(pt,{className:"pt-6",children:u.jsx("p",{className:"font-mono text-sm text-destructive",children:p})})}),h&&u.jsx(m1,{results:h.results,meta:h.meta,error:h.error})]}),u.jsx("div",{className:"hidden h-[500px] lg:block",children:u.jsx(Mz,{bindingName:a,onInsertText:S})})]})}),u.jsx(Is,{value:"tables",className:"mt-4",children:u.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-4",children:[u.jsxs(mt,{className:"md:col-span-1",children:[u.jsxs(Nt,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[u.jsx(Et,{className:"text-base",children:"Tables"}),u.jsx(Be,{variant:"ghost",size:"icon",onClick:()=>T.refetch(),className:"h-8 w-8",children:u.jsx(mo,{className:"h-4 w-4"})})]}),u.jsx(pt,{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(ie=>u.jsxs("button",{onClick:()=>q(ie.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===ie.name?"bg-muted font-medium":""}`,children:[u.jsx(_c,{className:"h-4 w-4 shrink-0"}),u.jsx("span",{className:"truncate",children:ie.name})]},ie.name))})})]}),u.jsxs(mt,{className:"md:col-span-3",children:[u.jsxs(Nt,{children:[u.jsx(Et,{children:y||"Select a Table"}),y&&u.jsxs(qt,{children:[H," total rows"]})]}),u.jsx(pt,{children:y?R.isLoading?u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(Rn,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):U.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(Yn,{children:[u.jsx(Vn,{children:u.jsx(dt,{children:K.map(ie=>u.jsx(Ce,{className:"font-mono",children:ie},ie))})}),u.jsx(Kn,{children:U.map((ie,ae)=>u.jsx(dt,{children:K.map(re=>u.jsx(_e,{className:"font-mono text-sm",children:kz(ie[re])},re))},ae))})]})}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("span",{className:"text-sm text-muted-foreground",children:["Showing ",b+1," -"," ",Math.min(b+N,H)," of ",H]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(Be,{variant:"outline",size:"sm",disabled:b===0,onClick:()=>j(Math.max(0,b-N)),children:[u.jsx(ho,{className:"mr-1 h-4 w-4"}),"Previous"]}),u.jsxs(Be,{variant:"outline",size:"sm",disabled:b+N>=H,onClick:()=>j(b+N),children:["Next",u.jsx(yr,{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"})})]})]})})]})]})})}const nr=20;function Dz(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 Oz({entries:n,isLoading:a}){return u.jsxs(mt,{children:[u.jsxs(Nt,{children:[u.jsx(Et,{children:"Files"}),u.jsx(qt,{children:"Stored files with metadata (auto-refreshes every 5 seconds)"})]}),u.jsx(pt,{children:a?u.jsx(da,{}):n!=null&&n.length?u.jsxs(Yn,{children:[u.jsx(Vn,{children:u.jsxs(dt,{children:[u.jsx(Ce,{children:"Key"}),u.jsx(Ce,{children:"Size"}),u.jsx(Ce,{children:"Content Type"}),u.jsx(Ce,{children:"Created At"})]})}),u.jsx(Kn,{children:n.map(r=>u.jsxs(dt,{children:[u.jsx(_e,{className:"font-mono text-sm",children:r.key}),u.jsx(_e,{className:"text-sm text-muted-foreground",children:Dz(r.size)}),u.jsx(_e,{className:"font-mono text-xs text-muted-foreground",children:r.contentType}),u.jsx(_e,{className:"text-sm text-muted-foreground",children:r.createdAt})]},r.key))})]}):u.jsx(Fn,{children:"No files in this storage"})})]})}function zz(){const{binding:n}=Qa(),a=n||"",[r,i]=v.useState(0),{data:o,isLoading:c}=ct({queryKey:["fileStorageEntries",a,r],queryFn:()=>cR(a,nr,r),enabled:!!a,refetchInterval:5e3}),h=(o==null?void 0:o.total)??0,m=Math.floor(r/nr)+1,p=Math.ceil(h/nr);return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(Ll,{title:`File Storage: ${a}`}),u.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:u.jsx(Ut,{title:"Total Files",value:h})}),u.jsx(Oz,{entries:o==null?void 0:o.entries,isLoading:c}),h>nr&&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(Be,{variant:"outline",size:"sm",onClick:()=>i(Math.max(0,r-nr)),disabled:r===0,children:[u.jsx(ho,{className:"h-4 w-4"}),"Previous"]}),u.jsxs(Be,{variant:"outline",size:"sm",onClick:()=>i(r+nr),disabled:r+nr>=h,children:["Next",u.jsx(yr,{className:"h-4 w-4"})]})]})]})]})})}function Lz({metrics:n,isLoading:a}){return u.jsxs("div",{className:"grid gap-4 md:grid-cols-5",children:[u.jsx(Ut,{title:"Pending",value:(n==null?void 0:n.pending)??0,icon:u.jsx(xr,{className:"h-4 w-4 text-muted-foreground"}),isLoading:a}),u.jsx(Ut,{title:"Processing",value:(n==null?void 0:n.processing)??0,icon:u.jsx(Rn,{className:"h-4 w-4 text-muted-foreground"}),isLoading:a}),u.jsx(Ut,{title:"Acknowledged",value:(n==null?void 0:n.acknowledged)??0,icon:u.jsx(Rl,{className:"h-4 w-4 text-green-500"}),isLoading:a}),u.jsx(Ut,{title:"Failed",value:(n==null?void 0:n.failed)??0,icon:u.jsx(Ui,{className:"h-4 w-4 text-red-500"}),isLoading:a}),u.jsx(Ut,{title:"Dead Letter",value:(n==null?void 0:n.deadLetter)??0,icon:u.jsx(yT,{className:"h-4 w-4 text-orange-500"}),isLoading:a})]})}function Uz({messages:n,isLoading:a}){return u.jsxs(mt,{children:[u.jsxs(Nt,{children:[u.jsx(Et,{children:"Recent Messages"}),u.jsx(qt,{children:"Latest messages in this queue (auto-refreshes every 5 seconds)"})]}),u.jsx(pt,{children:a?u.jsx(da,{}):n!=null&&n.length?u.jsxs(Yn,{children:[u.jsx(Vn,{children:u.jsxs(dt,{children:[u.jsx(Ce,{children:"ID"}),u.jsx(Ce,{children:"Status"}),u.jsx(Ce,{children:"Payload"}),u.jsx(Ce,{children:"Attempt"}),u.jsx(Ce,{children:"Created"})]})}),u.jsx(Kn,{children:n.map(r=>u.jsxs(dt,{children:[u.jsx(_e,{children:u.jsx(Sr,{id:r.id})}),u.jsx(_e,{children:u.jsx(jz,{status:r.status})}),u.jsx(_e,{className:"max-w-[200px] truncate font-mono text-xs",children:JSON.stringify(r.payload)}),u.jsx(_e,{children:r.attempt}),u.jsx(_e,{children:u.jsx(fn,{timestamp:r.createdAt})})]},r.id))})]}):u.jsx(Fn,{children:"No messages in this queue"})})]})}function qz(){const{binding:n}=Qa(),a=n||"",{data:r,isLoading:i}=ct({queryKey:["queueMetrics",a],queryFn:()=>ZT(a),enabled:!!a,refetchInterval:5e3}),{data:o,isLoading:c}=ct({queryKey:["queueMessages",a],queryFn:()=>PT(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(Ll,{title:`Queue: ${a}`}),u.jsx(Lz,{metrics:r==null?void 0:r.metrics,isLoading:i}),u.jsx(Uz,{messages:o==null?void 0:o.messages,isLoading:c})]})})}function Hz({sandboxes:n,isLoading:a}){const r=(n==null?void 0:n.length)??0,i=(n==null?void 0:n.filter(m=>m.active).length)??0,o=(n==null?void 0:n.filter(m=>m.status==="running"&&!m.active).length)??0,c=(n==null?void 0:n.filter(m=>m.status==="sleeping").length)??0,h=(n==null?void 0:n.reduce((m,p)=>m+p.sessionCount,0))??0;return u.jsxs("div",{className:"grid gap-4 md:grid-cols-5",children:[u.jsx(Ut,{title:"Sandboxes",value:r,icon:u.jsx(Xb,{className:"h-4 w-4 text-muted-foreground"}),isLoading:a}),u.jsx(Ut,{title:"Active",value:i,icon:u.jsx(Kb,{className:"h-4 w-4 text-green-500"}),isLoading:a}),u.jsx(Ut,{title:"Idle",value:o,icon:u.jsx(Wb,{className:"h-4 w-4 text-muted-foreground"}),isLoading:a}),u.jsx(Ut,{title:"Sleeping",value:c,icon:u.jsx(Ib,{className:"h-4 w-4 text-orange-500"}),isLoading:a}),u.jsx(Ut,{title:"Sessions",value:h,icon:u.jsx(kT,{className:"h-4 w-4 text-muted-foreground"}),isLoading:a})]})}function Bz({sandboxes:n,isLoading:a}){return u.jsxs(mt,{children:[u.jsxs(Nt,{children:[u.jsx(Et,{children:"Sandboxes"}),u.jsx(qt,{children:"Live sandbox instances launched via env.<binding>.get(id) (auto-refreshes every 5 seconds)"})]}),u.jsx(pt,{children:a?u.jsx(da,{}):n!=null&&n.length?u.jsxs(Yn,{children:[u.jsx(Vn,{children:u.jsxs(dt,{children:[u.jsx(Ce,{children:"ID"}),u.jsx(Ce,{children:"Status"}),u.jsx(Ce,{children:"Image"}),u.jsx(Ce,{children:"Sessions"}),u.jsx(Ce,{children:"Container"})]})}),u.jsx(Kn,{children:n.map(r=>u.jsxs(dt,{children:[u.jsx(_e,{className:"font-mono text-xs",children:r.externalId}),u.jsx(_e,{children:u.jsx(Nz,{status:r.status,active:r.active})}),u.jsx(_e,{className:"font-mono text-xs",children:r.image}),u.jsx(_e,{children:r.sessionCount}),u.jsx(_e,{children:r.containerId?u.jsx(Sr,{id:r.containerId}):u.jsx("span",{className:"text-muted-foreground",children:"—"})})]},r.id))})]}):u.jsx(Fn,{children:"No sandboxes yet — call env.<binding>.get(id) from your worker to launch one"})})]})}function $z(){const{data:n,isLoading:a}=ct({queryKey:["sandboxes"],queryFn:QT,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(Ll,{title:"Sandboxes"}),u.jsx(Hz,{sandboxes:n==null?void 0:n.sandboxes,isLoading:a}),u.jsx(Bz,{sandboxes:n==null?void 0:n.sandboxes,isLoading:a})]})})}const Pu=20;function Qz({entries:n,isLoading:a}){return u.jsxs(mt,{children:[u.jsxs(Nt,{children:[u.jsx(Et,{children:"State Entries"}),u.jsx(qt,{children:"Key-value entries in this state store (auto-refreshes every 5 seconds)"})]}),u.jsx(pt,{children:a?u.jsx(da,{}):n!=null&&n.length?u.jsxs(Yn,{children:[u.jsx(Vn,{children:u.jsxs(dt,{children:[u.jsx(Ce,{children:"Key"}),u.jsx(Ce,{children:"Value"})]})}),u.jsx(Kn,{children:n.map(r=>u.jsxs(dt,{children:[u.jsx(_e,{className:"font-mono text-sm",children:r.key}),u.jsx(_e,{className:"max-w-[400px] truncate font-mono text-xs text-muted-foreground",children:r.value})]},r.key))})]}):u.jsx(Fn,{children:"No entries in this state store"})})]})}function Gz(){const{binding:n}=Qa(),a=n||"",[r,i]=v.useState(0),[o,c]=v.useState(""),[h,m]=v.useState(""),{data:p,isLoading:g}=ct({queryKey:["stateEntries",a,r,o],queryFn:()=>XT(a,Pu,r,o),enabled:!!a,refetchInterval:5e3}),y=(p==null?void 0:p.hasMore)??!1,x=Math.floor(r/Pu)+1,b=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(Ll,{title:`State: ${a}`}),u.jsxs("form",{onSubmit:b,className:"flex gap-2",children:[u.jsx(Hm,{placeholder:"Search by key...",value:h,onChange:j=>m(j.target.value),className:"max-w-sm"}),u.jsxs(Be,{type:"submit",variant:"outline",size:"sm",children:[u.jsx(e1,{className:"h-4 w-4 mr-1"}),"Search"]}),o&&u.jsx(Be,{type:"button",variant:"ghost",size:"sm",onClick:()=>{c(""),m(""),i(0)},children:"Clear"})]}),u.jsx(Qz,{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(Be,{variant:"outline",size:"sm",onClick:()=>i(Math.max(0,r-Pu)),disabled:r===0,children:[u.jsx(ho,{className:"h-4 w-4"}),"Previous"]}),u.jsxs(Be,{variant:"outline",size:"sm",onClick:()=>i(r+Pu),disabled:!y,children:["Next",u.jsx(yr,{className:"h-4 w-4"})]})]})]})]})})}function Yz(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 o=Math.floor(r/60),c=r%60;if(o<24)return c===0?`${o}h`:`${o}h ${c}m`;const h=Math.floor(o/24),m=o%24;return m===0?`${h}d`:`${h}d ${m}h`}function Vz({metrics:n,isLoading:a}){return u.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[u.jsx(Ut,{title:"Pending",value:(n==null?void 0:n.pending)??0,icon:u.jsx(xr,{className:"h-4 w-4 text-muted-foreground"}),isLoading:a}),u.jsx(Ut,{title:"Fired",value:(n==null?void 0:n.fired)??0,icon:u.jsx(Rl,{className:"h-4 w-4 text-green-500"}),isLoading:a})]})}function Kz({entries:n,isLoading:a}){return u.jsxs(mt,{children:[u.jsxs(Nt,{children:[u.jsx(Et,{children:"Scheduled Timers"}),u.jsx(qt,{children:"Timer entries scheduled by your worker (auto-refreshes every 5 seconds)"})]}),u.jsx(pt,{children:a?u.jsx(da,{}):n!=null&&n.length?u.jsxs(Yn,{children:[u.jsx(Vn,{children:u.jsxs(dt,{children:[u.jsx(Ce,{children:"ID"}),u.jsx(Ce,{children:"Status"}),u.jsx(Ce,{children:"Scheduled Time"}),u.jsx(Ce,{children:"Interval"}),u.jsx(Ce,{children:"Payload"}),u.jsx(Ce,{children:"Created"})]})}),u.jsx(Kn,{children:n.map(r=>u.jsxs(dt,{children:[u.jsx(_e,{children:u.jsx(Sr,{id:r.id})}),u.jsx(_e,{children:u.jsx(JS,{status:r.status})}),u.jsx(_e,{children:u.jsx(fn,{timestamp:r.scheduledTime})}),u.jsx(_e,{className:"text-xs",children:r.intervalMs!==void 0&&r.intervalMs!==null?u.jsxs("span",{className:"inline-flex items-center gap-1",children:[u.jsx(NT,{className:"h-3 w-3"}),Yz(r.intervalMs)]}):"-"}),u.jsx(_e,{className:"max-w-[200px] truncate font-mono text-xs",children:r.payload!==void 0&&r.payload!==null?JSON.stringify(r.payload):"-"}),u.jsx(_e,{children:u.jsx(fn,{timestamp:r.createdAt})})]},r.id))})]}):u.jsx(Fn,{children:"No timers scheduled"})})]})}function Xz({executions:n,isLoading:a}){return u.jsxs(mt,{children:[u.jsxs(Nt,{children:[u.jsx(Et,{children:"Execution History"}),u.jsx(qt,{children:"Recent timer handler executions"})]}),u.jsx(pt,{children:a?u.jsx(da,{}):n!=null&&n.length?u.jsxs(Yn,{children:[u.jsx(Vn,{children:u.jsxs(dt,{children:[u.jsx(Ce,{children:"Timer ID"}),u.jsx(Ce,{children:"Status"}),u.jsx(Ce,{children:"Scheduled Time"}),u.jsx(Ce,{children:"Duration"}),u.jsx(Ce,{children:"Error"}),u.jsx(Ce,{children:"Executed"})]})}),u.jsx(Kn,{children:n.map(r=>u.jsxs(dt,{children:[u.jsx(_e,{children:u.jsx(Sr,{id:r.timerId})}),u.jsx(_e,{children:u.jsx(JS,{status:r.status})}),u.jsx(_e,{children:u.jsx(fn,{timestamp:r.scheduledTime})}),u.jsx(_e,{children:r.durationMs!==void 0&&r.durationMs!==null?`${r.durationMs}ms`:"-"}),u.jsx(_e,{className:"max-w-[200px] truncate text-xs text-red-500",children:r.error??"-"}),u.jsx(_e,{children:u.jsx(fn,{timestamp:r.createdAt})})]},r.id))})]}):u.jsx(Fn,{children:"No timer executions yet"})})]})}function Fz(){const{binding:n}=Qa(),a=n||"",{data:r,isLoading:i}=ct({queryKey:["timerMetrics",a],queryFn:()=>eR(a),enabled:!!a,refetchInterval:5e3}),{data:o,isLoading:c}=ct({queryKey:["timerEntries",a],queryFn:()=>WT(a,20),enabled:!!a,refetchInterval:5e3}),{data:h,isLoading:m}=ct({queryKey:["timerExecutions",a],queryFn:()=>tR(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(Ll,{title:`Timers: ${a}`}),u.jsx(Vz,{metrics:r==null?void 0:r.metrics,isLoading:i}),u.jsx(Kz,{entries:o==null?void 0:o.entries,isLoading:c}),u.jsx(Xz,{executions:h==null?void 0:h.executions,isLoading:m})]})})}function Ps(n){return n!=null}function Zz(n,a){const r=[];n&&Ps(n.input)&&r.push("execution-input"),n&&Ps(n.output)&&r.push("execution-output");for(const i of a)Ps(i.input)&&r.push(`${i.id}-input`),Ps(i.output)&&r.push(`${i.id}-output`);return r}function Sc({id:n,label:a,value:r,isOpen:i,onToggle:o}){return Ps(r)?u.jsxs("details",{className:"mt-2",open:i,onToggle:c=>{o(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 Pz({status:n}){switch(n){case"COMPLETED":return u.jsx(Rl,{className:"h-5 w-5 text-green-500"});case"RUNNING":return u.jsx(Rn,{className:"h-5 w-5 text-blue-500 animate-spin"});case"FAILED":return u.jsx(Ui,{className:"h-5 w-5 text-red-500"});case"PENDING":default:return u.jsx(xr,{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 Iz(n){return n.attempt!==null&&n.attempt!==void 0&&n.maxRetries!==null&&n.maxRetries!==void 0&&(n.attempt>1||n.status!=="COMPLETED")}function Wz({steps:n,openIoSectionIds:a,onToggleIoSection:r}){if(n.length===0)return u.jsx(Fn,{children:"No steps recorded for this execution"});const i=n.reduce((o,c)=>o+(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:fi(i)})]}),u.jsx("div",{className:"h-3 bg-muted rounded-full overflow-hidden flex",children:n.map((o,c)=>{const h=o.durationMs?o.durationMs/i*100:0;return u.jsx("div",{className:he(Jz(o.status),"h-full transition-all",c>0&&"border-l border-background"),style:{width:`${h}%`},title:`${o.stepName}: ${fi(o.durationMs)}`},o.id)})})]}),u.jsx("div",{className:"relative",children:n.map((o,c)=>{const h=Iz(o);return u.jsxs("div",{className:"relative pb-6 last:pb-0",children:[c<n.length-1&&u.jsx("div",{className:he("absolute left-[9px] top-6 w-0.5 h-full -ml-px",o.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(Pz,{status:o.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:o.stepName}),u.jsxs("span",{className:"text-xs text-muted-foreground",children:["(Step ",o.stepIndex+1,")"]}),h&&u.jsxs("span",{className:he("inline-flex items-center gap-1 text-xs px-1.5 py-0.5 rounded-full font-mono",o.attempt!==null&&o.attempt!==void 0&&o.attempt>1?o.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(mo,{className:"h-3 w-3"}),o.attempt,"/",(o.maxRetries??0)+1]})]}),u.jsx("span",{className:"text-sm font-mono text-muted-foreground",children:fi(o.durationMs)})]}),o.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:o.errorMessage}),o.retryAttempts&&o.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"}),o.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:fi(m.durationMs??null)})]}),u.jsx("pre",{className:"whitespace-pre-wrap text-xs font-mono text-yellow-900 dark:text-yellow-100",children:m.errorMessage})]},`${o.id}-${m.attempt}`))]}),u.jsx(Sc,{id:`${o.id}-input`,label:"View input",value:o.input,isOpen:a.has(`${o.id}-input`),onToggle:r}),u.jsx(Sc,{id:`${o.id}-output`,label:"View output",value:o.output,isOpen:a.has(`${o.id}-output`),onToggle:r}),u.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:u.jsx(fn,{timestamp:o.createdAt})})]})]})]},o.id)})})]})}function e6(){const{binding:n,executionId:a}=Qa(),r=n||"",i=a||"",{data:o,isLoading:c}=ct({queryKey:["workflowExecution",r,i],queryFn:()=>IT(r,i),enabled:!!r&&!!i,refetchInterval:5e3}),h=o==null?void 0:o.execution,m=(o==null?void 0:o.steps)||[],p=Zz(h??null,m),[g,y]=v.useState(()=>new Set),x=p.length>0&&p.every(N=>g.has(N));function b(N,S){y(C=>{const _=new Set(C);return S?_.add(N):_.delete(N),_})}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(Qt,{to:`/workflows/${r}`,children:u.jsxs(Be,{variant:"ghost",size:"sm",children:[u.jsx($_,{className:"mr-2 h-4 w-4"}),"Back"]})}),u.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Execution: ",u.jsx(Sr,{id:i})]})]}),p.length>0&&u.jsxs(Be,{variant:"ghost",size:"sm",onClick:j,children:[x?u.jsx(J_,{className:"h-4 w-4"}):u.jsx(W_,{className:"h-4 w-4"}),x?"Collapse All I/O":"Expand All I/O"]})]}),c?u.jsx(da,{}):h?u.jsxs(u.Fragment,{children:[u.jsxs(mt,{children:[u.jsx(Nt,{children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx(Et,{children:"Execution Details"}),u.jsx(qt,{children:h.startedAt?u.jsxs(u.Fragment,{children:["Started ",u.jsx(fn,{timestamp:h.startedAt})]}):"Not started yet"})]}),u.jsx(Up,{status:h.status})]})}),u.jsxs(pt,{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:fi(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(fn,{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(fn,{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(Sc,{id:"execution-input",label:"View execution input",value:h.input,isOpen:g.has("execution-input"),onToggle:b})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Execution Output"}),u.jsx(Sc,{id:"execution-output",label:"View execution output",value:h.output,isOpen:g.has("execution-output"),onToggle:b})]})]})]})]}),u.jsxs(mt,{children:[u.jsx(Nt,{children:u.jsxs("div",{children:[u.jsx(Et,{children:"Steps"}),u.jsx(qt,{children:"Workflow step execution timeline"})]})}),u.jsx(pt,{children:u.jsx(Wz,{steps:m,openIoSectionIds:g,onToggleIoSection:b})})]})]}):u.jsx(Fn,{children:"Execution not found"})]})})}const qh=20,t6=[{value:"",label:"All statuses"},{value:"pending",label:"Pending"},{value:"running",label:"Running"},{value:"completed",label:"Completed"},{value:"failed",label:"Failed"},{value:"cancelled",label:"Cancelled"}],n6=[{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 a6({executions:n,isLoading:a,bindingName:r}){return u.jsxs(mt,{children:[u.jsxs(Nt,{children:[u.jsx(Et,{children:"Recent Executions"}),u.jsx(qt,{children:"Workflow executions (auto-refreshes every 5 seconds)"})]}),u.jsx(pt,{children:a?u.jsx(da,{}):n!=null&&n.length?u.jsxs(Yn,{children:[u.jsx(Vn,{children:u.jsxs(dt,{children:[u.jsx(Ce,{children:"ID"}),u.jsx(Ce,{children:"Status"}),u.jsx(Ce,{children:"Steps"}),u.jsx(Ce,{children:"Duration"}),u.jsx(Ce,{children:"Started"}),u.jsx(Ce,{})]})}),u.jsx(Kn,{children:n.map(i=>u.jsxs(dt,{children:[u.jsx(_e,{children:u.jsx(Sr,{id:i.id})}),u.jsx(_e,{children:u.jsx(Up,{status:i.status})}),u.jsx(_e,{children:u.jsxs("span",{className:"text-sm",children:[i.stepsCompleted,"/",i.stepsCount]})}),u.jsx(_e,{className:"text-sm",children:fi(i.durationMs)}),u.jsx(_e,{children:i.startedAt?u.jsx(fn,{timestamp:i.startedAt}):"-"}),u.jsx(_e,{children:u.jsx(Qt,{to:`/workflows/${r}/${i.id}`,className:"flex items-center text-sm text-primary hover:underline",children:"View"})})]},i.id))})]}):u.jsx(Fn,{children:"No executions for this workflow"})})]})}function l6(){const{binding:n}=Qa(),a=n||"",[r,i]=v.useState(""),[o,c]=v.useState(""),[h,m]=v.useState(0),p=h*qh,{data:g,isLoading:y}=ct({queryKey:["workflowExecutions",a,r,o,h],queryFn:()=>JT(a,qh,p,r||void 0,o||void 0),enabled:!!a,refetchInterval:5e3}),x=g?Math.ceil(g.total/qh):0,b=()=>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(Ll,{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),b()},className:"text-sm border rounded px-2 py-1 bg-background",children:t6.map(j=>u.jsx("option",{value:j.value,children:j.label},j.value))}),u.jsx("select",{value:o,onChange:j=>{c(j.target.value),b()},className:"text-sm border rounded px-2 py-1 bg-background",children:n6.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(a6,{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 r6(){const n=$a(),{data:a,isLoading:r}=ct({queryKey:["config"],queryFn:Um,staleTime:6e4}),i=a!=null&&a.db?Object.keys(a.db):[],o=a!=null&&a.queue?Object.keys(a.queue):[],c=a!=null&&a.state?Object.keys(a.state):[],h=a!=null&&a.cache?Object.keys(a.cache):[],m=a!=null&&a.fs?Object.keys(a.fs):[],p=a!=null&&a.workflow?Object.keys(a.workflow):[],g=a!=null&&a.cron?Object.keys(a.cron):[],y=a!=null&&a.timer?Object.keys(a.timer):[],x=a!=null&&a.sandbox?Object.keys(a.sandbox):[];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(Qt,{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(Rn,{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(b=>{const j=n.pathname===`/db/${b}`;return u.jsx(Qt,{to:`/db/${b}`,children:u.jsxs(Be,{variant:j?"secondary":"ghost",className:he("w-full justify-start",j&&"bg-muted"),children:[u.jsx(sT,{className:"mr-2 h-4 w-4"}),b]})},b)})})]}),(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(Qt,{to:"/auth",children:u.jsxs(Be,{variant:n.pathname==="/auth"?"secondary":"ghost",className:he("w-full justify-start",n.pathname==="/auth"&&"bg-muted"),children:[u.jsx(RT,{className:"mr-2 h-4 w-4"}),u.jsx("span",{className:"flex-1 text-left",children:a.auth.binding}),u.jsx(Pb,{className:"h-3.5 w-3.5 text-muted-foreground",title:"Ploy Auth tables (users & sessions)"})]})})})]}),o.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:o.map(b=>{const j=n.pathname===`/queues/${b}`;return u.jsx(Qt,{to:`/queues/${b}`,children:u.jsxs(Be,{variant:j?"secondary":"ghost",className:he("w-full justify-start",j&&"bg-muted"),children:[u.jsx(hT,{className:"mr-2 h-4 w-4"}),b]})},b)})})]}),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(b=>{const j=n.pathname===`/state/${b}`;return u.jsx(Qt,{to:`/state/${b}`,children:u.jsxs(Be,{variant:j?"secondary":"ghost",className:he("w-full justify-start",j&&"bg-muted"),children:[u.jsx(H_,{className:"mr-2 h-4 w-4"}),b]})},b)})})]}),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:"Cache"}),u.jsx("div",{className:"space-y-1",children:h.map(b=>{const j=n.pathname===`/cache/${b}`;return u.jsx(Qt,{to:`/cache/${b}`,children:u.jsxs(Be,{variant:j?"secondary":"ghost",className:he("w-full justify-start",j&&"bg-muted"),children:[u.jsx(BT,{className:"mr-2 h-4 w-4"}),b]})},b)})})]}),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:"File Storage"}),u.jsx("div",{className:"space-y-1",children:m.map(b=>{const j=n.pathname===`/fs/${b}`;return u.jsx(Qt,{to:`/fs/${b}`,children:u.jsxs(Be,{variant:j?"secondary":"ghost",className:he("w-full justify-start",j&&"bg-muted"),children:[u.jsx(uT,{className:"mr-2 h-4 w-4"}),b]})},b)})})]}),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:"Workflows"}),u.jsx("div",{className:"space-y-1",children:p.map(b=>{const j=n.pathname.startsWith(`/workflows/${b}`);return u.jsx(Qt,{to:`/workflows/${b}`,children:u.jsxs(Be,{variant:j?"secondary":"ghost",className:he("w-full justify-start",j&&"bg-muted"),children:[u.jsx(dT,{className:"mr-2 h-4 w-4"}),b]})},b)})})]}),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:"Cron"}),u.jsx("div",{className:"space-y-1",children:g.map(b=>{const j=n.pathname===`/cron/${b}`;return u.jsx(Qt,{to:`/cron/${b}`,children:u.jsxs(Be,{variant:j?"secondary":"ghost",className:he("w-full justify-start",j&&"bg-muted"),children:[u.jsx(LT,{className:"mr-2 h-4 w-4"}),b]})},b)})})]}),y.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:y.map(b=>{const j=n.pathname===`/timers/${b}`;return u.jsx(Qt,{to:`/timers/${b}`,children:u.jsxs(Be,{variant:j?"secondary":"ghost",className:he("w-full justify-start",j&&"bg-muted"),children:[u.jsx(V_,{className:"mr-2 h-4 w-4"}),b]})},b)})})]}),x.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:"Sandboxes"}),u.jsx("div",{className:"space-y-1",children:u.jsx(Qt,{to:"/sandboxes",children:u.jsxs(Be,{variant:n.pathname==="/sandboxes"?"secondary":"ghost",className:he("w-full justify-start",n.pathname==="/sandboxes"&&"bg-muted"),children:[u.jsx(Xb,{className:"mr-2 h-4 w-4"}),"Sandboxes"]})})})]}),i.length===0&&o.length===0&&c.length===0&&h.length===0&&m.length===0&&p.length===0&&g.length===0&&y.length===0&&x.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 i6(){const{data:n,isLoading:a}=ct({queryKey:["config"],queryFn:Um,staleTime:6e4});if(!a&&n){const r=n.db?Object.keys(n.db):[],i=n.queue?Object.keys(n.queue):[],o=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(Wn,{to:`/db/${r[0]}`,replace:!0});if(n.auth)return u.jsx(Wn,{to:"/auth",replace:!0});if(i.length>0)return u.jsx(Wn,{to:`/queues/${i[0]}`,replace:!0});if(o.length>0)return u.jsx(Wn,{to:`/state/${o[0]}`,replace:!0});const m=n.cache?Object.keys(n.cache):[];if(m.length>0)return u.jsx(Wn,{to:`/cache/${m[0]}`,replace:!0});if(c.length>0)return u.jsx(Wn,{to:`/fs/${c[0]}`,replace:!0});if(h.length>0)return u.jsx(Wn,{to:`/workflows/${h[0]}`,replace:!0});const p=n.cron?Object.keys(n.cron):[];if(p.length>0)return u.jsx(Wn,{to:`/cron/${p[0]}`,replace:!0});const g=n.timer?Object.keys(n.timer):[];if(g.length>0)return u.jsx(Wn,{to:`/timers/${g[0]}`,replace:!0});if((n.sandbox?Object.keys(n.sandbox):[]).length>0)return u.jsx(Wn,{to:"/sandboxes",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(Rn,{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 s6(){return u.jsxs("div",{className:"min-h-screen bg-background",children:[u.jsx(r6,{}),u.jsx("main",{className:"pl-64",children:u.jsx("div",{className:"container mx-auto px-6 py-4",children:u.jsxs(WC,{children:[u.jsx(cn,{path:"/",element:u.jsx(i6,{})}),u.jsx(cn,{path:"/db/:binding",element:u.jsx(Az,{})}),u.jsx(cn,{path:"/auth",element:u.jsx(pz,{})}),u.jsx(cn,{path:"/queues/:binding",element:u.jsx(qz,{})}),u.jsx(cn,{path:"/state/:binding",element:u.jsx(Gz,{})}),u.jsx(cn,{path:"/cache/:binding",element:u.jsx(yz,{})}),u.jsx(cn,{path:"/fs/:binding",element:u.jsx(zz,{})}),u.jsx(cn,{path:"/cron/:binding",element:u.jsx(_z,{})}),u.jsx(cn,{path:"/timers/:binding",element:u.jsx(Fz,{})}),u.jsx(cn,{path:"/workflows/:binding",element:u.jsx(l6,{})}),u.jsx(cn,{path:"/workflows/:binding/:executionId",element:u.jsx(e6,{})}),u.jsx(cn,{path:"/sandboxes",element:u.jsx($z,{})})]})})})]})}function IS(){const n=window.matchMedia("(prefers-color-scheme: dark)").matches;document.documentElement.classList.toggle("dark",n)}IS();window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",IS);const o6=new HE({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});oC.createRoot(document.getElementById("root")).render(u.jsx(v.StrictMode,{children:u.jsx(VE,{client:o6,children:u.jsx(S_,{children:u.jsx(s6,{})})})}));