@meetploy/emulator 1.41.0 → 1.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/dashboard-dist/assets/main-Bm3paeQh.js +341 -0
  2. package/dist/dashboard-dist/index.html +1 -1
  3. package/dist/runtime/workflow-runtime.spec.js +4 -1
  4. package/dist/runtime/workflow-runtime.spec.js.map +1 -1
  5. package/dist/runtime/workflow-suspension.spec.d.ts +1 -0
  6. package/dist/runtime/workflow-suspension.spec.js +154 -0
  7. package/dist/runtime/workflow-suspension.spec.js.map +1 -0
  8. package/dist/services/auth-service.d.ts +0 -13
  9. package/dist/services/auth-service.js +9 -30
  10. package/dist/services/auth-service.js.map +1 -1
  11. package/dist/services/auth-service.spec.js +2 -1
  12. package/dist/services/auth-service.spec.js.map +1 -1
  13. package/dist/services/dashboard-routes.js +13 -3
  14. package/dist/services/dashboard-routes.js.map +1 -1
  15. package/dist/services/dashboard-routes.spec.js +4 -1
  16. package/dist/services/dashboard-routes.spec.js.map +1 -1
  17. package/dist/services/email-service.d.ts +33 -0
  18. package/dist/services/email-service.js +83 -0
  19. package/dist/services/email-service.js.map +1 -0
  20. package/dist/services/email-service.spec.d.ts +1 -0
  21. package/dist/services/email-service.spec.js +79 -0
  22. package/dist/services/email-service.spec.js.map +1 -0
  23. package/dist/services/mock-server.js +16 -5
  24. package/dist/services/mock-server.js.map +1 -1
  25. package/dist/services/workflow-service.d.ts +10 -6
  26. package/dist/services/workflow-service.js +141 -81
  27. package/dist/services/workflow-service.js.map +1 -1
  28. package/dist/services/workflow-service.spec.js +134 -8
  29. package/dist/services/workflow-service.spec.js.map +1 -1
  30. package/dist/utils/sqlite.js +38 -25
  31. package/dist/utils/sqlite.js.map +1 -1
  32. package/package.json +1 -1
  33. package/dist/dashboard-dist/assets/main-Dbf655G4.js +0 -341
@@ -0,0 +1,341 @@
1
+ var G1=Object.defineProperty;var Ny=a=>{throw TypeError(a)};var V1=(a,l,s)=>l in a?G1(a,l,{enumerable:!0,configurable:!0,writable:!0,value:s}):a[l]=s;var pn=(a,l,s)=>V1(a,typeof l!="symbol"?l+"":l,s),Wf=(a,l,s)=>l.has(a)||Ny("Cannot "+s);var T=(a,l,s)=>(Wf(a,l,"read from private field"),s?s.call(a):l.get(a)),ve=(a,l,s)=>l.has(a)?Ny("Cannot add the same private member more than once"):l instanceof WeakSet?l.add(a):l.set(a,s),fe=(a,l,s,o)=>(Wf(a,l,"write to private field"),o?o.call(a,s):l.set(a,s),s),Me=(a,l,s)=>(Wf(a,l,"access private method"),s);var to=(a,l,s,o)=>({set _(f){fe(a,l,f,s)},get _(){return T(a,l,o)}});function X1(a,l){for(var s=0;s<l.length;s++){const o=l[s];if(typeof o!="string"&&!Array.isArray(o)){for(const f in o)if(f!=="default"&&!(f in a)){const d=Object.getOwnPropertyDescriptor(o,f);d&&Object.defineProperty(a,f,d.get?d:{enumerable:!0,get:()=>o[f]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))o(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&o(m)}).observe(document,{childList:!0,subtree:!0});function s(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function o(f){if(f.ep)return;f.ep=!0;const d=s(f);fetch(f.href,d)}})();function K1(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var ed={exports:{}},xr={};/**
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 wy;function $1(){if(wy)return xr;wy=1;var a=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function s(o,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var y in f)y!=="key"&&(d[y]=f[y])}else d=f;return f=d.ref,{$$typeof:a,type:o,key:m,ref:f!==void 0?f:null,props:d}}return xr.Fragment=l,xr.jsx=s,xr.jsxs=s,xr}var Ey;function Z1(){return Ey||(Ey=1,ed.exports=$1()),ed.exports}var r=Z1(),ys=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(a){return this.listeners.add(a),this.onSubscribe(),()=>{this.listeners.delete(a),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ni=typeof window>"u"||"Deno"in globalThis;function Rn(){}function F1(a,l){return typeof a=="function"?a(l):a}function yd(a){return typeof a=="number"&&a>=0&&a!==1/0}function L0(a,l){return Math.max(a+(l||0)-Date.now(),0)}function ns(a,l){return typeof a=="function"?a(l):a}function Vn(a,l){return typeof a=="function"?a(l):a}function Cy(a,l){const{type:s="all",exact:o,fetchStatus:f,predicate:d,queryKey:m,stale:y}=a;if(m){if(o){if(l.queryHash!==Zd(m,l.options))return!1}else if(!Rr(l.queryKey,m))return!1}if(s!=="all"){const g=l.isActive();if(s==="active"&&!g||s==="inactive"&&g)return!1}return!(typeof y=="boolean"&&l.isStale()!==y||f&&f!==l.state.fetchStatus||d&&!d(l))}function Ty(a,l){const{exact:s,status:o,predicate:f,mutationKey:d}=a;if(d){if(!l.options.mutationKey)return!1;if(s){if(ai(l.options.mutationKey)!==ai(d))return!1}else if(!Rr(l.options.mutationKey,d))return!1}return!(o&&l.state.status!==o||f&&!f(l))}function Zd(a,l){return((l==null?void 0:l.queryKeyHashFn)||ai)(a)}function ai(a){return JSON.stringify(a,(l,s)=>xd(s)?Object.keys(s).sort().reduce((o,f)=>(o[f]=s[f],o),{}):s)}function Rr(a,l){return a===l?!0:typeof a!=typeof l?!1:a&&l&&typeof a=="object"&&typeof l=="object"?Object.keys(l).every(s=>Rr(a[s],l[s])):!1}function U0(a,l){if(a===l)return a;const s=My(a)&&My(l);if(s||xd(a)&&xd(l)){const o=s?a:Object.keys(a),f=o.length,d=s?l:Object.keys(l),m=d.length,y=s?[]:{};let g=0;for(let p=0;p<m;p++){const b=s?p:d[p];(!s&&o.includes(b)||s)&&a[b]===void 0&&l[b]===void 0?(y[b]=void 0,g++):(y[b]=U0(a[b],l[b]),y[b]===a[b]&&a[b]!==void 0&&g++)}return f===m&&g===f?a:y}return l}function So(a,l){if(!l||Object.keys(a).length!==Object.keys(l).length)return!1;for(const s in a)if(a[s]!==l[s])return!1;return!0}function My(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function xd(a){if(!Ay(a))return!1;const l=a.constructor;if(l===void 0)return!0;const s=l.prototype;return!(!Ay(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(a)!==Object.prototype)}function Ay(a){return Object.prototype.toString.call(a)==="[object Object]"}function J1(a){return new Promise(l=>{setTimeout(l,a)})}function vd(a,l,s){return typeof s.structuralSharing=="function"?s.structuralSharing(a,l):s.structuralSharing!==!1?U0(a,l):l}function P1(a,l,s=0){const o=[...a,l];return s&&o.length>s?o.slice(1):o}function I1(a,l,s=0){const o=[l,...a];return s&&o.length>s?o.slice(0,-1):o}var Fd=Symbol();function H0(a,l){return!a.queryFn&&(l!=null&&l.initialPromise)?()=>l.initialPromise:!a.queryFn||a.queryFn===Fd?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}var Zl,pl,as,E0,W1=(E0=class extends ys{constructor(){super();ve(this,Zl);ve(this,pl);ve(this,as);fe(this,as,l=>{if(!ni&&window.addEventListener){const s=()=>l();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){T(this,pl)||this.setEventListener(T(this,as))}onUnsubscribe(){var l;this.hasListeners()||((l=T(this,pl))==null||l.call(this),fe(this,pl,void 0))}setEventListener(l){var s;fe(this,as,l),(s=T(this,pl))==null||s.call(this),fe(this,pl,l(o=>{typeof o=="boolean"?this.setFocused(o):this.onFocus()}))}setFocused(l){T(this,Zl)!==l&&(fe(this,Zl,l),this.onFocus())}onFocus(){const l=this.isFocused();this.listeners.forEach(s=>{s(l)})}isFocused(){var l;return typeof T(this,Zl)=="boolean"?T(this,Zl):((l=globalThis.document)==null?void 0:l.visibilityState)!=="hidden"}},Zl=new WeakMap,pl=new WeakMap,as=new WeakMap,E0),Jd=new W1,ls,gl,is,C0,e2=(C0=class extends ys{constructor(){super();ve(this,ls,!0);ve(this,gl);ve(this,is);fe(this,is,l=>{if(!ni&&window.addEventListener){const s=()=>l(!0),o=()=>l(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",o,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",o)}}})}onSubscribe(){T(this,gl)||this.setEventListener(T(this,is))}onUnsubscribe(){var l;this.hasListeners()||((l=T(this,gl))==null||l.call(this),fe(this,gl,void 0))}setEventListener(l){var s;fe(this,is,l),(s=T(this,gl))==null||s.call(this),fe(this,gl,l(this.setOnline.bind(this)))}setOnline(l){T(this,ls)!==l&&(fe(this,ls,l),this.listeners.forEach(o=>{o(l)}))}isOnline(){return T(this,ls)}},ls=new WeakMap,gl=new WeakMap,is=new WeakMap,C0),jo=new e2;function bd(){let a,l;const s=new Promise((f,d)=>{a=f,l=d});s.status="pending",s.catch(()=>{});function o(f){Object.assign(s,f),delete s.resolve,delete s.reject}return s.resolve=f=>{o({status:"fulfilled",value:f}),a(f)},s.reject=f=>{o({status:"rejected",reason:f}),l(f)},s}function t2(a){return Math.min(1e3*2**a,3e4)}function q0(a){return(a??"online")==="online"?jo.isOnline():!0}var B0=class extends Error{constructor(a){super("CancelledError"),this.revert=a==null?void 0:a.revert,this.silent=a==null?void 0:a.silent}};function td(a){return a instanceof B0}function Q0(a){let l=!1,s=0,o=!1,f;const d=bd(),m=M=>{var O;o||(S(new B0(M)),(O=a.abort)==null||O.call(a))},y=()=>{l=!0},g=()=>{l=!1},p=()=>Jd.isFocused()&&(a.networkMode==="always"||jo.isOnline())&&a.canRun(),b=()=>q0(a.networkMode)&&a.canRun(),j=M=>{var O;o||(o=!0,(O=a.onSuccess)==null||O.call(a,M),f==null||f(),d.resolve(M))},S=M=>{var O;o||(o=!0,(O=a.onError)==null||O.call(a,M),f==null||f(),d.reject(M))},w=()=>new Promise(M=>{var O;f=z=>{(o||p())&&M(z)},(O=a.onPause)==null||O.call(a)}).then(()=>{var M;f=void 0,o||(M=a.onContinue)==null||M.call(a)}),E=()=>{if(o)return;let M;const O=s===0?a.initialPromise:void 0;try{M=O??a.fn()}catch(z){M=Promise.reject(z)}Promise.resolve(M).then(j).catch(z=>{var ae;if(o)return;const D=a.retry??(ni?0:3),$=a.retryDelay??t2,_=typeof $=="function"?$(s,z):$,V=D===!0||typeof D=="number"&&s<D||typeof D=="function"&&D(s,z);if(l||!V){S(z);return}s++,(ae=a.onFail)==null||ae.call(a,s,z),J1(_).then(()=>p()?void 0:w()).then(()=>{l?S(z):E()})})};return{promise:d,cancel:m,continue:()=>(f==null||f(),d),cancelRetry:y,continueRetry:g,canStart:b,start:()=>(b()?E():w().then(E),d)}}var n2=a=>setTimeout(a,0);function a2(){let a=[],l=0,s=y=>{y()},o=y=>{y()},f=n2;const d=y=>{l?a.push(y):f(()=>{s(y)})},m=()=>{const y=a;a=[],y.length&&f(()=>{o(()=>{y.forEach(g=>{s(g)})})})};return{batch:y=>{let g;l++;try{g=y()}finally{l--,l||m()}return g},batchCalls:y=>(...g)=>{d(()=>{y(...g)})},schedule:d,setNotifyFunction:y=>{s=y},setBatchNotifyFunction:y=>{o=y},setScheduler:y=>{f=y}}}var Tt=a2(),Fl,T0,Y0=(T0=class{constructor(){ve(this,Fl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),yd(this.gcTime)&&fe(this,Fl,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??(ni?1/0:300*1e3))}clearGcTimeout(){T(this,Fl)&&(clearTimeout(T(this,Fl)),fe(this,Fl,void 0))}},Fl=new WeakMap,T0),ss,rs,An,Jl,Yt,kr,Pl,Yn,Oa,M0,l2=(M0=class extends Y0{constructor(l){super();ve(this,Yn);ve(this,ss);ve(this,rs);ve(this,An);ve(this,Jl);ve(this,Yt);ve(this,kr);ve(this,Pl);fe(this,Pl,!1),fe(this,kr,l.defaultOptions),this.setOptions(l.options),this.observers=[],fe(this,Jl,l.client),fe(this,An,T(this,Jl).getQueryCache()),this.queryKey=l.queryKey,this.queryHash=l.queryHash,fe(this,ss,i2(this.options)),this.state=l.state??T(this,ss),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var l;return(l=T(this,Yt))==null?void 0:l.promise}setOptions(l){this.options={...T(this,kr),...l},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,An).remove(this)}setData(l,s){const o=vd(this.state.data,l,this.options);return Me(this,Yn,Oa).call(this,{data:o,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),o}setState(l,s){Me(this,Yn,Oa).call(this,{type:"setState",state:l,setStateOptions:s})}cancel(l){var o,f;const s=(o=T(this,Yt))==null?void 0:o.promise;return(f=T(this,Yt))==null||f.cancel(l),s?s.then(Rn).catch(Rn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,ss))}isActive(){return this.observers.some(l=>Vn(l.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Fd||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(l=>l.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(l=0){return this.state.isInvalidated||this.state.data===void 0||!L0(this.state.dataUpdatedAt,l)}onFocus(){var s;const l=this.observers.find(o=>o.shouldFetchOnWindowFocus());l==null||l.refetch({cancelRefetch:!1}),(s=T(this,Yt))==null||s.continue()}onOnline(){var s;const l=this.observers.find(o=>o.shouldFetchOnReconnect());l==null||l.refetch({cancelRefetch:!1}),(s=T(this,Yt))==null||s.continue()}addObserver(l){this.observers.includes(l)||(this.observers.push(l),this.clearGcTimeout(),T(this,An).notify({type:"observerAdded",query:this,observer:l}))}removeObserver(l){this.observers.includes(l)&&(this.observers=this.observers.filter(s=>s!==l),this.observers.length||(T(this,Yt)&&(T(this,Pl)?T(this,Yt).cancel({revert:!0}):T(this,Yt).cancelRetry()),this.scheduleGc()),T(this,An).notify({type:"observerRemoved",query:this,observer:l}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Me(this,Yn,Oa).call(this,{type:"invalidate"})}fetch(l,s){var g,p,b;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(T(this,Yt))return T(this,Yt).continueRetry(),T(this,Yt).promise}if(l&&this.setOptions(l),!this.options.queryFn){const j=this.observers.find(S=>S.options.queryFn);j&&this.setOptions(j.options)}const o=new AbortController,f=j=>{Object.defineProperty(j,"signal",{enumerable:!0,get:()=>(fe(this,Pl,!0),o.signal)})},d=()=>{const j=H0(this.options,s),S={client:T(this,Jl),queryKey:this.queryKey,meta:this.meta};return f(S),fe(this,Pl,!1),this.options.persister?this.options.persister(j,S,this):j(S)},m={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:T(this,Jl),state:this.state,fetchFn:d};f(m),(g=this.options.behavior)==null||g.onFetch(m,this),fe(this,rs,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=m.fetchOptions)==null?void 0:p.meta))&&Me(this,Yn,Oa).call(this,{type:"fetch",meta:(b=m.fetchOptions)==null?void 0:b.meta});const y=j=>{var S,w,E,M;td(j)&&j.silent||Me(this,Yn,Oa).call(this,{type:"error",error:j}),td(j)||((w=(S=T(this,An).config).onError)==null||w.call(S,j,this),(M=(E=T(this,An).config).onSettled)==null||M.call(E,this.state.data,j,this)),this.scheduleGc()};return fe(this,Yt,Q0({initialPromise:s==null?void 0:s.initialPromise,fn:m.fetchFn,abort:o.abort.bind(o),onSuccess:j=>{var S,w,E,M;if(j===void 0){y(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(j)}catch(O){y(O);return}(w=(S=T(this,An).config).onSuccess)==null||w.call(S,j,this),(M=(E=T(this,An).config).onSettled)==null||M.call(E,j,this.state.error,this),this.scheduleGc()},onError:y,onFail:(j,S)=>{Me(this,Yn,Oa).call(this,{type:"failed",failureCount:j,error:S})},onPause:()=>{Me(this,Yn,Oa).call(this,{type:"pause"})},onContinue:()=>{Me(this,Yn,Oa).call(this,{type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:()=>!0})),T(this,Yt).start()}},ss=new WeakMap,rs=new WeakMap,An=new WeakMap,Jl=new WeakMap,Yt=new WeakMap,kr=new WeakMap,Pl=new WeakMap,Yn=new WeakSet,Oa=function(l){const s=o=>{switch(l.type){case"failed":return{...o,fetchFailureCount:l.failureCount,fetchFailureReason:l.error};case"pause":return{...o,fetchStatus:"paused"};case"continue":return{...o,fetchStatus:"fetching"};case"fetch":return{...o,...G0(o.data,this.options),fetchMeta:l.meta??null};case"success":return{...o,data:l.data,dataUpdateCount:o.dataUpdateCount+1,dataUpdatedAt:l.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!l.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const f=l.error;return td(f)&&f.revert&&T(this,rs)?{...T(this,rs),fetchStatus:"idle"}:{...o,error:f,errorUpdateCount:o.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:o.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error"};case"invalidate":return{...o,isInvalidated:!0};case"setState":return{...o,...l.state}}};this.state=s(this.state),Tt.batch(()=>{this.observers.forEach(o=>{o.onQueryUpdate()}),T(this,An).notify({query:this,type:"updated",action:l})})},M0);function G0(a,l){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:q0(l.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function i2(a){const l=typeof a.initialData=="function"?a.initialData():a.initialData,s=l!==void 0,o=s?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:l,dataUpdateCount:0,dataUpdatedAt:s?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var aa,A0,s2=(A0=class extends ys{constructor(l={}){super();ve(this,aa);this.config=l,fe(this,aa,new Map)}build(l,s,o){const f=s.queryKey,d=s.queryHash??Zd(f,s);let m=this.get(d);return m||(m=new l2({client:l,queryKey:f,queryHash:d,options:l.defaultQueryOptions(s),state:o,defaultOptions:l.getQueryDefaults(f)}),this.add(m)),m}add(l){T(this,aa).has(l.queryHash)||(T(this,aa).set(l.queryHash,l),this.notify({type:"added",query:l}))}remove(l){const s=T(this,aa).get(l.queryHash);s&&(l.destroy(),s===l&&T(this,aa).delete(l.queryHash),this.notify({type:"removed",query:l}))}clear(){Tt.batch(()=>{this.getAll().forEach(l=>{this.remove(l)})})}get(l){return T(this,aa).get(l)}getAll(){return[...T(this,aa).values()]}find(l){const s={exact:!0,...l};return this.getAll().find(o=>Cy(s,o))}findAll(l={}){const s=this.getAll();return Object.keys(l).length>0?s.filter(o=>Cy(l,o)):s}notify(l){Tt.batch(()=>{this.listeners.forEach(s=>{s(l)})})}onFocus(){Tt.batch(()=>{this.getAll().forEach(l=>{l.onFocus()})})}onOnline(){Tt.batch(()=>{this.getAll().forEach(l=>{l.onOnline()})})}},aa=new WeakMap,A0),la,Kt,Il,ia,ml,R0,r2=(R0=class extends Y0{constructor(l){super();ve(this,ia);ve(this,la);ve(this,Kt);ve(this,Il);this.mutationId=l.mutationId,fe(this,Kt,l.mutationCache),fe(this,la,[]),this.state=l.state||V0(),this.setOptions(l.options),this.scheduleGc()}setOptions(l){this.options=l,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(l){T(this,la).includes(l)||(T(this,la).push(l),this.clearGcTimeout(),T(this,Kt).notify({type:"observerAdded",mutation:this,observer:l}))}removeObserver(l){fe(this,la,T(this,la).filter(s=>s!==l)),this.scheduleGc(),T(this,Kt).notify({type:"observerRemoved",mutation:this,observer:l})}optionalRemove(){T(this,la).length||(this.state.status==="pending"?this.scheduleGc():T(this,Kt).remove(this))}continue(){var l;return((l=T(this,Il))==null?void 0:l.continue())??this.execute(this.state.variables)}async execute(l){var d,m,y,g,p,b,j,S,w,E,M,O,z,D,$,_,V,ae,Z,q;const s=()=>{Me(this,ia,ml).call(this,{type:"continue"})};fe(this,Il,Q0({fn:()=>this.options.mutationFn?this.options.mutationFn(l):Promise.reject(new Error("No mutationFn found")),onFail:(J,Q)=>{Me(this,ia,ml).call(this,{type:"failed",failureCount:J,error:Q})},onPause:()=>{Me(this,ia,ml).call(this,{type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,Kt).canRun(this)}));const o=this.state.status==="pending",f=!T(this,Il).canStart();try{if(o)s();else{Me(this,ia,ml).call(this,{type:"pending",variables:l,isPaused:f}),await((m=(d=T(this,Kt).config).onMutate)==null?void 0:m.call(d,l,this));const Q=await((g=(y=this.options).onMutate)==null?void 0:g.call(y,l));Q!==this.state.context&&Me(this,ia,ml).call(this,{type:"pending",context:Q,variables:l,isPaused:f})}const J=await T(this,Il).start();return await((b=(p=T(this,Kt).config).onSuccess)==null?void 0:b.call(p,J,l,this.state.context,this)),await((S=(j=this.options).onSuccess)==null?void 0:S.call(j,J,l,this.state.context)),await((E=(w=T(this,Kt).config).onSettled)==null?void 0:E.call(w,J,null,this.state.variables,this.state.context,this)),await((O=(M=this.options).onSettled)==null?void 0:O.call(M,J,null,l,this.state.context)),Me(this,ia,ml).call(this,{type:"success",data:J}),J}catch(J){try{throw await((D=(z=T(this,Kt).config).onError)==null?void 0:D.call(z,J,l,this.state.context,this)),await((_=($=this.options).onError)==null?void 0:_.call($,J,l,this.state.context)),await((ae=(V=T(this,Kt).config).onSettled)==null?void 0:ae.call(V,void 0,J,this.state.variables,this.state.context,this)),await((q=(Z=this.options).onSettled)==null?void 0:q.call(Z,void 0,J,l,this.state.context)),J}finally{Me(this,ia,ml).call(this,{type:"error",error:J})}}finally{T(this,Kt).runNext(this)}}},la=new WeakMap,Kt=new WeakMap,Il=new WeakMap,ia=new WeakSet,ml=function(l){const s=o=>{switch(l.type){case"failed":return{...o,failureCount:l.failureCount,failureReason:l.error};case"pause":return{...o,isPaused:!0};case"continue":return{...o,isPaused:!1};case"pending":return{...o,context:l.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:l.isPaused,status:"pending",variables:l.variables,submittedAt:Date.now()};case"success":return{...o,data:l.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...o,data:void 0,error:l.error,failureCount:o.failureCount+1,failureReason:l.error,isPaused:!1,status:"error"}}};this.state=s(this.state),Tt.batch(()=>{T(this,la).forEach(o=>{o.onMutationUpdate(l)}),T(this,Kt).notify({mutation:this,type:"updated",action:l})})},R0);function V0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var za,Gn,Dr,O0,u2=(O0=class extends ys{constructor(l={}){super();ve(this,za);ve(this,Gn);ve(this,Dr);this.config=l,fe(this,za,new Set),fe(this,Gn,new Map),fe(this,Dr,0)}build(l,s,o){const f=new r2({mutationCache:this,mutationId:++to(this,Dr)._,options:l.defaultMutationOptions(s),state:o});return this.add(f),f}add(l){T(this,za).add(l);const s=no(l);if(typeof s=="string"){const o=T(this,Gn).get(s);o?o.push(l):T(this,Gn).set(s,[l])}this.notify({type:"added",mutation:l})}remove(l){if(T(this,za).delete(l)){const s=no(l);if(typeof s=="string"){const o=T(this,Gn).get(s);if(o)if(o.length>1){const f=o.indexOf(l);f!==-1&&o.splice(f,1)}else o[0]===l&&T(this,Gn).delete(s)}}this.notify({type:"removed",mutation:l})}canRun(l){const s=no(l);if(typeof s=="string"){const o=T(this,Gn).get(s),f=o==null?void 0:o.find(d=>d.state.status==="pending");return!f||f===l}else return!0}runNext(l){var o;const s=no(l);if(typeof s=="string"){const f=(o=T(this,Gn).get(s))==null?void 0:o.find(d=>d!==l&&d.state.isPaused);return(f==null?void 0:f.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Tt.batch(()=>{T(this,za).forEach(l=>{this.notify({type:"removed",mutation:l})}),T(this,za).clear(),T(this,Gn).clear()})}getAll(){return Array.from(T(this,za))}find(l){const s={exact:!0,...l};return this.getAll().find(o=>Ty(s,o))}findAll(l={}){return this.getAll().filter(s=>Ty(l,s))}notify(l){Tt.batch(()=>{this.listeners.forEach(s=>{s(l)})})}resumePausedMutations(){const l=this.getAll().filter(s=>s.state.isPaused);return Tt.batch(()=>Promise.all(l.map(s=>s.continue().catch(Rn))))}},za=new WeakMap,Gn=new WeakMap,Dr=new WeakMap,O0);function no(a){var l;return(l=a.options.scope)==null?void 0:l.id}function Ry(a){return{onFetch:(l,s)=>{var b,j,S,w,E;const o=l.options,f=(S=(j=(b=l.fetchOptions)==null?void 0:b.meta)==null?void 0:j.fetchMore)==null?void 0:S.direction,d=((w=l.state.data)==null?void 0:w.pages)||[],m=((E=l.state.data)==null?void 0:E.pageParams)||[];let y={pages:[],pageParams:[]},g=0;const p=async()=>{let M=!1;const O=$=>{Object.defineProperty($,"signal",{enumerable:!0,get:()=>(l.signal.aborted?M=!0:l.signal.addEventListener("abort",()=>{M=!0}),l.signal)})},z=H0(l.options,l.fetchOptions),D=async($,_,V)=>{if(M)return Promise.reject();if(_==null&&$.pages.length)return Promise.resolve($);const ae={client:l.client,queryKey:l.queryKey,pageParam:_,direction:V?"backward":"forward",meta:l.options.meta};O(ae);const Z=await z(ae),{maxPages:q}=l.options,J=V?I1:P1;return{pages:J($.pages,Z,q),pageParams:J($.pageParams,_,q)}};if(f&&d.length){const $=f==="backward",_=$?o2:Oy,V={pages:d,pageParams:m},ae=_(o,V);y=await D(V,ae,$)}else{const $=a??d.length;do{const _=g===0?m[0]??o.initialPageParam:Oy(o,y);if(g>0&&_==null)break;y=await D(y,_),g++}while(g<$)}return y};l.options.persister?l.fetchFn=()=>{var M,O;return(O=(M=l.options).persister)==null?void 0:O.call(M,p,{client:l.client,queryKey:l.queryKey,meta:l.options.meta,signal:l.signal},s)}:l.fetchFn=p}}}function Oy(a,{pages:l,pageParams:s}){const o=l.length-1;return l.length>0?a.getNextPageParam(l[o],l,s[o],s):void 0}function o2(a,{pages:l,pageParams:s}){var o;return l.length>0?(o=a.getPreviousPageParam)==null?void 0:o.call(a,l[0],l,s[0],s):void 0}var mt,yl,xl,us,os,vl,cs,fs,z0,c2=(z0=class{constructor(a={}){ve(this,mt);ve(this,yl);ve(this,xl);ve(this,us);ve(this,os);ve(this,vl);ve(this,cs);ve(this,fs);fe(this,mt,a.queryCache||new s2),fe(this,yl,a.mutationCache||new u2),fe(this,xl,a.defaultOptions||{}),fe(this,us,new Map),fe(this,os,new Map),fe(this,vl,0)}mount(){to(this,vl)._++,T(this,vl)===1&&(fe(this,cs,Jd.subscribe(async a=>{a&&(await this.resumePausedMutations(),T(this,mt).onFocus())})),fe(this,fs,jo.subscribe(async a=>{a&&(await this.resumePausedMutations(),T(this,mt).onOnline())})))}unmount(){var a,l;to(this,vl)._--,T(this,vl)===0&&((a=T(this,cs))==null||a.call(this),fe(this,cs,void 0),(l=T(this,fs))==null||l.call(this),fe(this,fs,void 0))}isFetching(a){return T(this,mt).findAll({...a,fetchStatus:"fetching"}).length}isMutating(a){return T(this,yl).findAll({...a,status:"pending"}).length}getQueryData(a){var s;const l=this.defaultQueryOptions({queryKey:a});return(s=T(this,mt).get(l.queryHash))==null?void 0:s.state.data}ensureQueryData(a){const l=this.defaultQueryOptions(a),s=T(this,mt).build(this,l),o=s.state.data;return o===void 0?this.fetchQuery(a):(a.revalidateIfStale&&s.isStaleByTime(ns(l.staleTime,s))&&this.prefetchQuery(l),Promise.resolve(o))}getQueriesData(a){return T(this,mt).findAll(a).map(({queryKey:l,state:s})=>{const o=s.data;return[l,o]})}setQueryData(a,l,s){const o=this.defaultQueryOptions({queryKey:a}),f=T(this,mt).get(o.queryHash),d=f==null?void 0:f.state.data,m=F1(l,d);if(m!==void 0)return T(this,mt).build(this,o).setData(m,{...s,manual:!0})}setQueriesData(a,l,s){return Tt.batch(()=>T(this,mt).findAll(a).map(({queryKey:o})=>[o,this.setQueryData(o,l,s)]))}getQueryState(a){var s;const l=this.defaultQueryOptions({queryKey:a});return(s=T(this,mt).get(l.queryHash))==null?void 0:s.state}removeQueries(a){const l=T(this,mt);Tt.batch(()=>{l.findAll(a).forEach(s=>{l.remove(s)})})}resetQueries(a,l){const s=T(this,mt);return Tt.batch(()=>(s.findAll(a).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...a},l)))}cancelQueries(a,l={}){const s={revert:!0,...l},o=Tt.batch(()=>T(this,mt).findAll(a).map(f=>f.cancel(s)));return Promise.all(o).then(Rn).catch(Rn)}invalidateQueries(a,l={}){return Tt.batch(()=>(T(this,mt).findAll(a).forEach(s=>{s.invalidate()}),(a==null?void 0:a.refetchType)==="none"?Promise.resolve():this.refetchQueries({...a,type:(a==null?void 0:a.refetchType)??(a==null?void 0:a.type)??"active"},l)))}refetchQueries(a,l={}){const s={...l,cancelRefetch:l.cancelRefetch??!0},o=Tt.batch(()=>T(this,mt).findAll(a).filter(f=>!f.isDisabled()).map(f=>{let d=f.fetch(void 0,s);return s.throwOnError||(d=d.catch(Rn)),f.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(o).then(Rn)}fetchQuery(a){const l=this.defaultQueryOptions(a);l.retry===void 0&&(l.retry=!1);const s=T(this,mt).build(this,l);return s.isStaleByTime(ns(l.staleTime,s))?s.fetch(l):Promise.resolve(s.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(Rn).catch(Rn)}fetchInfiniteQuery(a){return a.behavior=Ry(a.pages),this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(Rn).catch(Rn)}ensureInfiniteQueryData(a){return a.behavior=Ry(a.pages),this.ensureQueryData(a)}resumePausedMutations(){return jo.isOnline()?T(this,yl).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,mt)}getMutationCache(){return T(this,yl)}getDefaultOptions(){return T(this,xl)}setDefaultOptions(a){fe(this,xl,a)}setQueryDefaults(a,l){T(this,us).set(ai(a),{queryKey:a,defaultOptions:l})}getQueryDefaults(a){const l=[...T(this,us).values()],s={};return l.forEach(o=>{Rr(a,o.queryKey)&&Object.assign(s,o.defaultOptions)}),s}setMutationDefaults(a,l){T(this,os).set(ai(a),{mutationKey:a,defaultOptions:l})}getMutationDefaults(a){const l=[...T(this,os).values()],s={};return l.forEach(o=>{Rr(a,o.mutationKey)&&Object.assign(s,o.defaultOptions)}),s}defaultQueryOptions(a){if(a._defaulted)return a;const l={...T(this,xl).queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return l.queryHash||(l.queryHash=Zd(l.queryKey,l)),l.refetchOnReconnect===void 0&&(l.refetchOnReconnect=l.networkMode!=="always"),l.throwOnError===void 0&&(l.throwOnError=!!l.suspense),!l.networkMode&&l.persister&&(l.networkMode="offlineFirst"),l.queryFn===Fd&&(l.enabled=!1),l}defaultMutationOptions(a){return a!=null&&a._defaulted?a:{...T(this,xl).mutations,...(a==null?void 0:a.mutationKey)&&this.getMutationDefaults(a.mutationKey),...a,_defaulted:!0}}clear(){T(this,mt).clear(),T(this,yl).clear()}},mt=new WeakMap,yl=new WeakMap,xl=new WeakMap,us=new WeakMap,os=new WeakMap,vl=new WeakMap,cs=new WeakMap,fs=new WeakMap,z0),an,He,_r,$t,Wl,ds,bl,Sl,Lr,hs,ms,ei,ti,jl,ps,$e,Er,Sd,jd,Nd,wd,Ed,Cd,Td,X0,k0,f2=(k0=class extends ys{constructor(l,s){super();ve(this,$e);ve(this,an);ve(this,He);ve(this,_r);ve(this,$t);ve(this,Wl);ve(this,ds);ve(this,bl);ve(this,Sl);ve(this,Lr);ve(this,hs);ve(this,ms);ve(this,ei);ve(this,ti);ve(this,jl);ve(this,ps,new Set);this.options=s,fe(this,an,l),fe(this,Sl,null),fe(this,bl,bd()),this.options.experimental_prefetchInRender||T(this,bl).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(T(this,He).addObserver(this),zy(T(this,He),this.options)?Me(this,$e,Er).call(this):this.updateResult(),Me(this,$e,wd).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Md(T(this,He),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Md(T(this,He),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Me(this,$e,Ed).call(this),Me(this,$e,Cd).call(this),T(this,He).removeObserver(this)}setOptions(l){const s=this.options,o=T(this,He);if(this.options=T(this,an).defaultQueryOptions(l),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Vn(this.options.enabled,T(this,He))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Me(this,$e,Td).call(this),T(this,He).setOptions(this.options),s._defaulted&&!So(this.options,s)&&T(this,an).getQueryCache().notify({type:"observerOptionsUpdated",query:T(this,He),observer:this});const f=this.hasListeners();f&&ky(T(this,He),o,this.options,s)&&Me(this,$e,Er).call(this),this.updateResult(),f&&(T(this,He)!==o||Vn(this.options.enabled,T(this,He))!==Vn(s.enabled,T(this,He))||ns(this.options.staleTime,T(this,He))!==ns(s.staleTime,T(this,He)))&&Me(this,$e,Sd).call(this);const d=Me(this,$e,jd).call(this);f&&(T(this,He)!==o||Vn(this.options.enabled,T(this,He))!==Vn(s.enabled,T(this,He))||d!==T(this,jl))&&Me(this,$e,Nd).call(this,d)}getOptimisticResult(l){const s=T(this,an).getQueryCache().build(T(this,an),l),o=this.createResult(s,l);return h2(this,o)&&(fe(this,$t,o),fe(this,ds,this.options),fe(this,Wl,T(this,He).state)),o}getCurrentResult(){return T(this,$t)}trackResult(l,s){const o={};return Object.keys(l).forEach(f=>{Object.defineProperty(o,f,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(f),s==null||s(f),l[f])})}),o}trackProp(l){T(this,ps).add(l)}getCurrentQuery(){return T(this,He)}refetch({...l}={}){return this.fetch({...l})}fetchOptimistic(l){const s=T(this,an).defaultQueryOptions(l),o=T(this,an).getQueryCache().build(T(this,an),s);return o.fetch().then(()=>this.createResult(o,s))}fetch(l){return Me(this,$e,Er).call(this,{...l,cancelRefetch:l.cancelRefetch??!0}).then(()=>(this.updateResult(),T(this,$t)))}createResult(l,s){var J;const o=T(this,He),f=this.options,d=T(this,$t),m=T(this,Wl),y=T(this,ds),p=l!==o?l.state:T(this,_r),{state:b}=l;let j={...b},S=!1,w;if(s._optimisticResults){const Q=this.hasListeners(),se=!Q&&zy(l,s),re=Q&&ky(l,o,s,f);(se||re)&&(j={...j,...G0(b.data,l.options)}),s._optimisticResults==="isRestoring"&&(j.fetchStatus="idle")}let{error:E,errorUpdatedAt:M,status:O}=j;w=j.data;let z=!1;if(s.placeholderData!==void 0&&w===void 0&&O==="pending"){let Q;d!=null&&d.isPlaceholderData&&s.placeholderData===(y==null?void 0:y.placeholderData)?(Q=d.data,z=!0):Q=typeof s.placeholderData=="function"?s.placeholderData((J=T(this,ms))==null?void 0:J.state.data,T(this,ms)):s.placeholderData,Q!==void 0&&(O="success",w=vd(d==null?void 0:d.data,Q,s),S=!0)}if(s.select&&w!==void 0&&!z)if(d&&w===(m==null?void 0:m.data)&&s.select===T(this,Lr))w=T(this,hs);else try{fe(this,Lr,s.select),w=s.select(w),w=vd(d==null?void 0:d.data,w,s),fe(this,hs,w),fe(this,Sl,null)}catch(Q){fe(this,Sl,Q)}T(this,Sl)&&(E=T(this,Sl),w=T(this,hs),M=Date.now(),O="error");const D=j.fetchStatus==="fetching",$=O==="pending",_=O==="error",V=$&&D,ae=w!==void 0,q={status:O,fetchStatus:j.fetchStatus,isPending:$,isSuccess:O==="success",isError:_,isInitialLoading:V,isLoading:V,data:w,dataUpdatedAt:j.dataUpdatedAt,error:E,errorUpdatedAt:M,failureCount:j.fetchFailureCount,failureReason:j.fetchFailureReason,errorUpdateCount:j.errorUpdateCount,isFetched:j.dataUpdateCount>0||j.errorUpdateCount>0,isFetchedAfterMount:j.dataUpdateCount>p.dataUpdateCount||j.errorUpdateCount>p.errorUpdateCount,isFetching:D,isRefetching:D&&!$,isLoadingError:_&&!ae,isPaused:j.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:_&&ae,isStale:Pd(l,s),refetch:this.refetch,promise:T(this,bl)};if(this.options.experimental_prefetchInRender){const Q=ue=>{q.status==="error"?ue.reject(q.error):q.data!==void 0&&ue.resolve(q.data)},se=()=>{const ue=fe(this,bl,q.promise=bd());Q(ue)},re=T(this,bl);switch(re.status){case"pending":l.queryHash===o.queryHash&&Q(re);break;case"fulfilled":(q.status==="error"||q.data!==re.value)&&se();break;case"rejected":(q.status!=="error"||q.error!==re.reason)&&se();break}}return q}updateResult(){const l=T(this,$t),s=this.createResult(T(this,He),this.options);if(fe(this,Wl,T(this,He).state),fe(this,ds,this.options),T(this,Wl).data!==void 0&&fe(this,ms,T(this,He)),So(s,l))return;fe(this,$t,s);const o=()=>{if(!l)return!0;const{notifyOnChangeProps:f}=this.options,d=typeof f=="function"?f():f;if(d==="all"||!d&&!T(this,ps).size)return!0;const m=new Set(d??T(this,ps));return this.options.throwOnError&&m.add("error"),Object.keys(T(this,$t)).some(y=>{const g=y;return T(this,$t)[g]!==l[g]&&m.has(g)})};Me(this,$e,X0).call(this,{listeners:o()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Me(this,$e,wd).call(this)}},an=new WeakMap,He=new WeakMap,_r=new WeakMap,$t=new WeakMap,Wl=new WeakMap,ds=new WeakMap,bl=new WeakMap,Sl=new WeakMap,Lr=new WeakMap,hs=new WeakMap,ms=new WeakMap,ei=new WeakMap,ti=new WeakMap,jl=new WeakMap,ps=new WeakMap,$e=new WeakSet,Er=function(l){Me(this,$e,Td).call(this);let s=T(this,He).fetch(this.options,l);return l!=null&&l.throwOnError||(s=s.catch(Rn)),s},Sd=function(){Me(this,$e,Ed).call(this);const l=ns(this.options.staleTime,T(this,He));if(ni||T(this,$t).isStale||!yd(l))return;const o=L0(T(this,$t).dataUpdatedAt,l)+1;fe(this,ei,setTimeout(()=>{T(this,$t).isStale||this.updateResult()},o))},jd=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(T(this,He)):this.options.refetchInterval)??!1},Nd=function(l){Me(this,$e,Cd).call(this),fe(this,jl,l),!(ni||Vn(this.options.enabled,T(this,He))===!1||!yd(T(this,jl))||T(this,jl)===0)&&fe(this,ti,setInterval(()=>{(this.options.refetchIntervalInBackground||Jd.isFocused())&&Me(this,$e,Er).call(this)},T(this,jl)))},wd=function(){Me(this,$e,Sd).call(this),Me(this,$e,Nd).call(this,Me(this,$e,jd).call(this))},Ed=function(){T(this,ei)&&(clearTimeout(T(this,ei)),fe(this,ei,void 0))},Cd=function(){T(this,ti)&&(clearInterval(T(this,ti)),fe(this,ti,void 0))},Td=function(){const l=T(this,an).getQueryCache().build(T(this,an),this.options);if(l===T(this,He))return;const s=T(this,He);fe(this,He,l),fe(this,_r,l.state),this.hasListeners()&&(s==null||s.removeObserver(this),l.addObserver(this))},X0=function(l){Tt.batch(()=>{l.listeners&&this.listeners.forEach(s=>{s(T(this,$t))}),T(this,an).getQueryCache().notify({query:T(this,He),type:"observerResultsUpdated"})})},k0);function d2(a,l){return Vn(l.enabled,a)!==!1&&a.state.data===void 0&&!(a.state.status==="error"&&l.retryOnMount===!1)}function zy(a,l){return d2(a,l)||a.state.data!==void 0&&Md(a,l,l.refetchOnMount)}function Md(a,l,s){if(Vn(l.enabled,a)!==!1){const o=typeof s=="function"?s(a):s;return o==="always"||o!==!1&&Pd(a,l)}return!1}function ky(a,l,s,o){return(a!==l||Vn(o.enabled,a)===!1)&&(!s.suspense||a.state.status!=="error")&&Pd(a,s)}function Pd(a,l){return Vn(l.enabled,a)!==!1&&a.isStaleByTime(ns(l.staleTime,a))}function h2(a,l){return!So(a.getCurrentResult(),l)}var Nl,wl,ln,ka,La,go,Ad,D0,m2=(D0=class extends ys{constructor(s,o){super();ve(this,La);ve(this,Nl);ve(this,wl);ve(this,ln);ve(this,ka);fe(this,Nl,s),this.setOptions(o),this.bindMethods(),Me(this,La,go).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(s){var f;const o=this.options;this.options=T(this,Nl).defaultMutationOptions(s),So(this.options,o)||T(this,Nl).getMutationCache().notify({type:"observerOptionsUpdated",mutation:T(this,ln),observer:this}),o!=null&&o.mutationKey&&this.options.mutationKey&&ai(o.mutationKey)!==ai(this.options.mutationKey)?this.reset():((f=T(this,ln))==null?void 0:f.state.status)==="pending"&&T(this,ln).setOptions(this.options)}onUnsubscribe(){var s;this.hasListeners()||(s=T(this,ln))==null||s.removeObserver(this)}onMutationUpdate(s){Me(this,La,go).call(this),Me(this,La,Ad).call(this,s)}getCurrentResult(){return T(this,wl)}reset(){var s;(s=T(this,ln))==null||s.removeObserver(this),fe(this,ln,void 0),Me(this,La,go).call(this),Me(this,La,Ad).call(this)}mutate(s,o){var f;return fe(this,ka,o),(f=T(this,ln))==null||f.removeObserver(this),fe(this,ln,T(this,Nl).getMutationCache().build(T(this,Nl),this.options)),T(this,ln).addObserver(this),T(this,ln).execute(s)}},Nl=new WeakMap,wl=new WeakMap,ln=new WeakMap,ka=new WeakMap,La=new WeakSet,go=function(){var o;const s=((o=T(this,ln))==null?void 0:o.state)??V0();fe(this,wl,{...s,isPending:s.status==="pending",isSuccess:s.status==="success",isError:s.status==="error",isIdle:s.status==="idle",mutate:this.mutate,reset:this.reset})},Ad=function(s){Tt.batch(()=>{var o,f,d,m,y,g,p,b;if(T(this,ka)&&this.hasListeners()){const j=T(this,wl).variables,S=T(this,wl).context;(s==null?void 0:s.type)==="success"?((f=(o=T(this,ka)).onSuccess)==null||f.call(o,s.data,j,S),(m=(d=T(this,ka)).onSettled)==null||m.call(d,s.data,null,j,S)):(s==null?void 0:s.type)==="error"&&((g=(y=T(this,ka)).onError)==null||g.call(y,s.error,j,S),(b=(p=T(this,ka)).onSettled)==null||b.call(p,void 0,s.error,j,S))}this.listeners.forEach(j=>{j(T(this,wl))})})},D0),nd={exports:{}},we={};/**
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 Dy;function p2(){if(Dy)return we;Dy=1;var a=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),S=Symbol.iterator;function w(N){return N===null||typeof N!="object"?null:(N=S&&N[S]||N["@@iterator"],typeof N=="function"?N:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,O={};function z(N,L,K){this.props=N,this.context=L,this.refs=O,this.updater=K||E}z.prototype.isReactComponent={},z.prototype.setState=function(N,L){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,L,"setState")},z.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function D(){}D.prototype=z.prototype;function $(N,L,K){this.props=N,this.context=L,this.refs=O,this.updater=K||E}var _=$.prototype=new D;_.constructor=$,M(_,z.prototype),_.isPureReactComponent=!0;var V=Array.isArray;function ae(){}var Z={H:null,A:null,T:null,S:null},q=Object.prototype.hasOwnProperty;function J(N,L,K){var ee=K.ref;return{$$typeof:a,type:N,key:L,ref:ee!==void 0?ee:null,props:K}}function Q(N,L){return J(N.type,L,N.props)}function se(N){return typeof N=="object"&&N!==null&&N.$$typeof===a}function re(N){var L={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(K){return L[K]})}var ue=/\/+/g;function le(N,L){return typeof N=="object"&&N!==null&&N.key!=null?re(""+N.key):L.toString(36)}function ne(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(ae,ae):(N.status="pending",N.then(function(L){N.status==="pending"&&(N.status="fulfilled",N.value=L)},function(L){N.status==="pending"&&(N.status="rejected",N.reason=L)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function A(N,L,K,ee,ie){var oe=typeof N;(oe==="undefined"||oe==="boolean")&&(N=null);var ce=!1;if(N===null)ce=!0;else switch(oe){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(N.$$typeof){case a:case l:ce=!0;break;case b:return ce=N._init,A(ce(N._payload),L,K,ee,ie)}}if(ce)return ie=ie(N),ce=ee===""?"."+le(N,0):ee,V(ie)?(K="",ce!=null&&(K=ce.replace(ue,"$&/")+"/"),A(ie,L,K,"",function(Xe){return Xe})):ie!=null&&(se(ie)&&(ie=Q(ie,K+(ie.key==null||N&&N.key===ie.key?"":(""+ie.key).replace(ue,"$&/")+"/")+ce)),L.push(ie)),1;ce=0;var ge=ee===""?".":ee+":";if(V(N))for(var ye=0;ye<N.length;ye++)ee=N[ye],oe=ge+le(ee,ye),ce+=A(ee,L,K,oe,ie);else if(ye=w(N),typeof ye=="function")for(N=ye.call(N),ye=0;!(ee=N.next()).done;)ee=ee.value,oe=ge+le(ee,ye++),ce+=A(ee,L,K,oe,ie);else if(oe==="object"){if(typeof N.then=="function")return A(ne(N),L,K,ee,ie);throw L=String(N),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return ce}function X(N,L,K){if(N==null)return N;var ee=[],ie=0;return A(N,ee,"","",function(oe){return L.call(K,oe,ie++)}),ee}function Y(N){if(N._status===-1){var L=N._result;L=L(),L.then(function(K){(N._status===0||N._status===-1)&&(N._status=1,N._result=K)},function(K){(N._status===0||N._status===-1)&&(N._status=2,N._result=K)}),N._status===-1&&(N._status=0,N._result=L)}if(N._status===1)return N._result.default;throw N._result}var F=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},I={map:X,forEach:function(N,L,K){X(N,function(){L.apply(this,arguments)},K)},count:function(N){var L=0;return X(N,function(){L++}),L},toArray:function(N){return X(N,function(L){return L})||[]},only:function(N){if(!se(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return we.Activity=j,we.Children=I,we.Component=z,we.Fragment=s,we.Profiler=f,we.PureComponent=$,we.StrictMode=o,we.Suspense=g,we.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,we.__COMPILER_RUNTIME={__proto__:null,c:function(N){return Z.H.useMemoCache(N)}},we.cache=function(N){return function(){return N.apply(null,arguments)}},we.cacheSignal=function(){return null},we.cloneElement=function(N,L,K){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var ee=M({},N.props),ie=N.key;if(L!=null)for(oe in L.key!==void 0&&(ie=""+L.key),L)!q.call(L,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&L.ref===void 0||(ee[oe]=L[oe]);var oe=arguments.length-2;if(oe===1)ee.children=K;else if(1<oe){for(var ce=Array(oe),ge=0;ge<oe;ge++)ce[ge]=arguments[ge+2];ee.children=ce}return J(N.type,ie,ee)},we.createContext=function(N){return N={$$typeof:m,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:d,_context:N},N},we.createElement=function(N,L,K){var ee,ie={},oe=null;if(L!=null)for(ee in L.key!==void 0&&(oe=""+L.key),L)q.call(L,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(ie[ee]=L[ee]);var ce=arguments.length-2;if(ce===1)ie.children=K;else if(1<ce){for(var ge=Array(ce),ye=0;ye<ce;ye++)ge[ye]=arguments[ye+2];ie.children=ge}if(N&&N.defaultProps)for(ee in ce=N.defaultProps,ce)ie[ee]===void 0&&(ie[ee]=ce[ee]);return J(N,oe,ie)},we.createRef=function(){return{current:null}},we.forwardRef=function(N){return{$$typeof:y,render:N}},we.isValidElement=se,we.lazy=function(N){return{$$typeof:b,_payload:{_status:-1,_result:N},_init:Y}},we.memo=function(N,L){return{$$typeof:p,type:N,compare:L===void 0?null:L}},we.startTransition=function(N){var L=Z.T,K={};Z.T=K;try{var ee=N(),ie=Z.S;ie!==null&&ie(K,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(ae,F)}catch(oe){F(oe)}finally{L!==null&&K.types!==null&&(L.types=K.types),Z.T=L}},we.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},we.use=function(N){return Z.H.use(N)},we.useActionState=function(N,L,K){return Z.H.useActionState(N,L,K)},we.useCallback=function(N,L){return Z.H.useCallback(N,L)},we.useContext=function(N){return Z.H.useContext(N)},we.useDebugValue=function(){},we.useDeferredValue=function(N,L){return Z.H.useDeferredValue(N,L)},we.useEffect=function(N,L){return Z.H.useEffect(N,L)},we.useEffectEvent=function(N){return Z.H.useEffectEvent(N)},we.useId=function(){return Z.H.useId()},we.useImperativeHandle=function(N,L,K){return Z.H.useImperativeHandle(N,L,K)},we.useInsertionEffect=function(N,L){return Z.H.useInsertionEffect(N,L)},we.useLayoutEffect=function(N,L){return Z.H.useLayoutEffect(N,L)},we.useMemo=function(N,L){return Z.H.useMemo(N,L)},we.useOptimistic=function(N,L){return Z.H.useOptimistic(N,L)},we.useReducer=function(N,L,K){return Z.H.useReducer(N,L,K)},we.useRef=function(N){return Z.H.useRef(N)},we.useState=function(N){return Z.H.useState(N)},we.useSyncExternalStore=function(N,L,K){return Z.H.useSyncExternalStore(N,L,K)},we.useTransition=function(){return Z.H.useTransition()},we.version="19.2.3",we}var _y;function Id(){return _y||(_y=1,nd.exports=p2()),nd.exports}var x=Id();const g2=K1(x),y2=X1({__proto__:null,default:g2},[x]);var K0=x.createContext(void 0),Ur=a=>{const l=x.useContext(K0);if(!l)throw new Error("No QueryClient set, use QueryClientProvider to set one");return l},x2=({client:a,children:l})=>(x.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),r.jsx(K0.Provider,{value:a,children:l})),$0=x.createContext(!1),v2=()=>x.useContext($0);$0.Provider;function b2(){let a=!1;return{clearReset:()=>{a=!1},reset:()=>{a=!0},isReset:()=>a}}var S2=x.createContext(b2()),j2=()=>x.useContext(S2);function Z0(a,l){return typeof a=="function"?a(...l):!!a}function Rd(){}var N2=(a,l)=>{(a.suspense||a.throwOnError||a.experimental_prefetchInRender)&&(l.isReset()||(a.retryOnMount=!1))},w2=a=>{x.useEffect(()=>{a.clearReset()},[a])},E2=({result:a,errorResetBoundary:l,throwOnError:s,query:o,suspense:f})=>a.isError&&!l.isReset()&&!a.isFetching&&o&&(f&&a.data===void 0||Z0(s,[a.error,o])),C2=a=>{const l=a.staleTime;a.suspense&&(a.staleTime=typeof l=="function"?(...s)=>Math.max(l(...s),1e3):Math.max(l??1e3,1e3),typeof a.gcTime=="number"&&(a.gcTime=Math.max(a.gcTime,1e3)))},T2=(a,l)=>a.isLoading&&a.isFetching&&!l,M2=(a,l)=>(a==null?void 0:a.suspense)&&l.isPending,Ly=(a,l,s)=>l.fetchOptimistic(a).catch(()=>{s.clearReset()});function A2(a,l,s){var j,S,w,E,M;const o=Ur(),f=v2(),d=j2(),m=o.defaultQueryOptions(a);(S=(j=o.getDefaultOptions().queries)==null?void 0:j._experimental_beforeQuery)==null||S.call(j,m),m._optimisticResults=f?"isRestoring":"optimistic",C2(m),N2(m,d),w2(d);const y=!o.getQueryCache().get(m.queryHash),[g]=x.useState(()=>new l(o,m)),p=g.getOptimisticResult(m),b=!f&&a.subscribed!==!1;if(x.useSyncExternalStore(x.useCallback(O=>{const z=b?g.subscribe(Tt.batchCalls(O)):Rd;return g.updateResult(),z},[g,b]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),x.useEffect(()=>{g.setOptions(m)},[m,g]),M2(m,p))throw Ly(m,g,d);if(E2({result:p,errorResetBoundary:d,throwOnError:m.throwOnError,query:o.getQueryCache().get(m.queryHash),suspense:m.suspense}))throw p.error;if((E=(w=o.getDefaultOptions().queries)==null?void 0:w._experimental_afterQuery)==null||E.call(w,m,p),m.experimental_prefetchInRender&&!ni&&T2(p,f)){const O=y?Ly(m,g,d):(M=o.getQueryCache().get(m.queryHash))==null?void 0:M.promise;O==null||O.catch(Rd).finally(()=>{g.updateResult()})}return m.notifyOnChangeProps?p:g.trackResult(p)}function st(a,l){return A2(a,f2)}function Or(a,l){const s=Ur(),[o]=x.useState(()=>new m2(s,a));x.useEffect(()=>{o.setOptions(a)},[o,a]);const f=x.useSyncExternalStore(x.useCallback(m=>o.subscribe(Tt.batchCalls(m)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),d=x.useCallback((m,y)=>{o.mutate(m,y).catch(Rd)},[o]);if(f.error&&Z0(o.options.throwOnError,[f.error]))throw f.error;return{...f,mutate:d,mutateAsync:f.mutate}}var ad={exports:{}},vr={},ld={exports:{}},id={};/**
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 Uy;function R2(){return Uy||(Uy=1,(function(a){function l(A,X){var Y=A.length;A.push(X);e:for(;0<Y;){var F=Y-1>>>1,I=A[F];if(0<f(I,X))A[F]=X,A[Y]=I,Y=F;else break e}}function s(A){return A.length===0?null:A[0]}function o(A){if(A.length===0)return null;var X=A[0],Y=A.pop();if(Y!==X){A[0]=Y;e:for(var F=0,I=A.length,N=I>>>1;F<N;){var L=2*(F+1)-1,K=A[L],ee=L+1,ie=A[ee];if(0>f(K,Y))ee<I&&0>f(ie,K)?(A[F]=ie,A[ee]=Y,F=ee):(A[F]=K,A[L]=Y,F=L);else if(ee<I&&0>f(ie,Y))A[F]=ie,A[ee]=Y,F=ee;else break e}}return X}function f(A,X){var Y=A.sortIndex-X.sortIndex;return Y!==0?Y:A.id-X.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;a.unstable_now=function(){return d.now()}}else{var m=Date,y=m.now();a.unstable_now=function(){return m.now()-y}}var g=[],p=[],b=1,j=null,S=3,w=!1,E=!1,M=!1,O=!1,z=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function _(A){for(var X=s(p);X!==null;){if(X.callback===null)o(p);else if(X.startTime<=A)o(p),X.sortIndex=X.expirationTime,l(g,X);else break;X=s(p)}}function V(A){if(M=!1,_(A),!E)if(s(g)!==null)E=!0,ae||(ae=!0,re());else{var X=s(p);X!==null&&ne(V,X.startTime-A)}}var ae=!1,Z=-1,q=5,J=-1;function Q(){return O?!0:!(a.unstable_now()-J<q)}function se(){if(O=!1,ae){var A=a.unstable_now();J=A;var X=!0;try{e:{E=!1,M&&(M=!1,D(Z),Z=-1),w=!0;var Y=S;try{t:{for(_(A),j=s(g);j!==null&&!(j.expirationTime>A&&Q());){var F=j.callback;if(typeof F=="function"){j.callback=null,S=j.priorityLevel;var I=F(j.expirationTime<=A);if(A=a.unstable_now(),typeof I=="function"){j.callback=I,_(A),X=!0;break t}j===s(g)&&o(g),_(A)}else o(g);j=s(g)}if(j!==null)X=!0;else{var N=s(p);N!==null&&ne(V,N.startTime-A),X=!1}}break e}finally{j=null,S=Y,w=!1}X=void 0}}finally{X?re():ae=!1}}}var re;if(typeof $=="function")re=function(){$(se)};else if(typeof MessageChannel<"u"){var ue=new MessageChannel,le=ue.port2;ue.port1.onmessage=se,re=function(){le.postMessage(null)}}else re=function(){z(se,0)};function ne(A,X){Z=z(function(){A(a.unstable_now())},X)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(A){A.callback=null},a.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<A?Math.floor(1e3/A):5},a.unstable_getCurrentPriorityLevel=function(){return S},a.unstable_next=function(A){switch(S){case 1:case 2:case 3:var X=3;break;default:X=S}var Y=S;S=X;try{return A()}finally{S=Y}},a.unstable_requestPaint=function(){O=!0},a.unstable_runWithPriority=function(A,X){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var Y=S;S=A;try{return X()}finally{S=Y}},a.unstable_scheduleCallback=function(A,X,Y){var F=a.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?F+Y:F):Y=F,A){case 1:var I=-1;break;case 2:I=250;break;case 5:I=1073741823;break;case 4:I=1e4;break;default:I=5e3}return I=Y+I,A={id:b++,callback:X,priorityLevel:A,startTime:Y,expirationTime:I,sortIndex:-1},Y>F?(A.sortIndex=Y,l(p,A),s(g)===null&&A===s(p)&&(M?(D(Z),Z=-1):M=!0,ne(V,Y-F))):(A.sortIndex=I,l(g,A),E||w||(E=!0,ae||(ae=!0,re()))),A},a.unstable_shouldYield=Q,a.unstable_wrapCallback=function(A){var X=S;return function(){var Y=S;S=X;try{return A.apply(this,arguments)}finally{S=Y}}}})(id)),id}var Hy;function O2(){return Hy||(Hy=1,ld.exports=R2()),ld.exports}var sd={exports:{}},Qt={};/**
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 qy;function z2(){if(qy)return Qt;qy=1;var a=Id();function l(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(l(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},f=Symbol.for("react.portal");function d(g,p,b){var j=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:j==null?null:""+j,children:g,containerInfo:p,implementation:b}}var m=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Qt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Qt.createPortal=function(g,p){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return d(g,p,null,b)},Qt.flushSync=function(g){var p=m.T,b=o.p;try{if(m.T=null,o.p=2,g)return g()}finally{m.T=p,o.p=b,o.d.f()}},Qt.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(g,p))},Qt.prefetchDNS=function(g){typeof g=="string"&&o.d.D(g)},Qt.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var b=p.as,j=y(b,p.crossOrigin),S=typeof p.integrity=="string"?p.integrity:void 0,w=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?o.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:j,integrity:S,fetchPriority:w}):b==="script"&&o.d.X(g,{crossOrigin:j,integrity:S,fetchPriority:w,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Qt.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=y(p.as,p.crossOrigin);o.d.M(g,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(g)},Qt.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,j=y(b,p.crossOrigin);o.d.L(g,b,{crossOrigin:j,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Qt.preloadModule=function(g,p){if(typeof g=="string")if(p){var b=y(p.as,p.crossOrigin);o.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(g)},Qt.requestFormReset=function(g){o.d.r(g)},Qt.unstable_batchedUpdates=function(g,p){return g(p)},Qt.useFormState=function(g,p,b){return m.H.useFormState(g,p,b)},Qt.useFormStatus=function(){return m.H.useHostTransitionStatus()},Qt.version="19.2.3",Qt}var By;function F0(){if(By)return sd.exports;By=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(l){console.error(l)}}return a(),sd.exports=z2(),sd.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 Qy;function k2(){if(Qy)return vr;Qy=1;var a=O2(),l=Id(),s=F0();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}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 f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function m(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 y(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 g(e){if(d(e)!==e)throw Error(o(188))}function p(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(o(188));return t!==e?null:e}for(var n=e,i=t;;){var u=n.return;if(u===null)break;var c=u.alternate;if(c===null){if(i=u.return,i!==null){n=i;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===n)return g(u),e;if(c===i)return g(u),t;c=c.sibling}throw Error(o(188))}if(n.return!==i.return)n=u,i=c;else{for(var h=!1,v=u.child;v;){if(v===n){h=!0,n=u,i=c;break}if(v===i){h=!0,i=u,n=c;break}v=v.sibling}if(!h){for(v=c.child;v;){if(v===n){h=!0,n=c,i=u;break}if(v===i){h=!0,i=c,n=u;break}v=v.sibling}if(!h)throw Error(o(189))}}if(n.alternate!==i)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var j=Object.assign,S=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),$=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),Q=Symbol.for("react.memo_cache_sentinel"),se=Symbol.iterator;function re(e){return e===null||typeof e!="object"?null:(e=se&&e[se]||e["@@iterator"],typeof e=="function"?e:null)}var ue=Symbol.for("react.client.reference");function le(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ue?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case z:return"Profiler";case O:return"StrictMode";case V:return"Suspense";case ae:return"SuspenseList";case J:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case $:return e.displayName||"Context";case D:return(e._context.displayName||"Context")+".Consumer";case _:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Z:return t=e.displayName||null,t!==null?t:le(e.type)||"Memo";case q:t=e._payload,e=e._init;try{return le(e(t))}catch{}}return null}var ne=Array.isArray,A=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y={pending:!1,data:null,method:null,action:null},F=[],I=-1;function N(e){return{current:e}}function L(e){0>I||(e.current=F[I],F[I]=null,I--)}function K(e,t){I++,F[I]=e.current,e.current=t}var ee=N(null),ie=N(null),oe=N(null),ce=N(null);function ge(e,t){switch(K(oe,t),K(ie,e),K(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Kg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Kg(t),e=$g(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}L(ee),K(ee,e)}function ye(){L(ee),L(ie),L(oe)}function Xe(e){e.memoizedState!==null&&K(ce,e);var t=ee.current,n=$g(t,e.type);t!==n&&(K(ie,e),K(ee,n))}function Be(e){ie.current===e&&(L(ee),L(ie)),ce.current===e&&(L(ce),mr._currentValue=Y)}var et,ot;function Ee(e){if(et===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);et=t&&t[1]||"",ot=-1<n.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+et+e+ot}var Nt=!1;function Bt(e,t){if(!e||Nt)return"";Nt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var te=function(){throw Error()};if(Object.defineProperty(te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(te,[])}catch(G){var B=G}Reflect.construct(e,[],te)}else{try{te.call()}catch(G){B=G}e.call(te.prototype)}}else{try{throw Error()}catch(G){B=G}(te=e())&&typeof te.catch=="function"&&te.catch(function(){})}}catch(G){if(G&&B&&typeof G.stack=="string")return[G.stack,B.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),h=c[0],v=c[1];if(h&&v){var C=h.split(`
44
+ `),H=v.split(`
45
+ `);for(u=i=0;i<C.length&&!C[i].includes("DetermineComponentFrameRoot");)i++;for(;u<H.length&&!H[u].includes("DetermineComponentFrameRoot");)u++;if(i===C.length||u===H.length)for(i=C.length-1,u=H.length-1;1<=i&&0<=u&&C[i]!==H[u];)u--;for(;1<=i&&0<=u;i--,u--)if(C[i]!==H[u]){if(i!==1||u!==1)do if(i--,u--,0>u||C[i]!==H[u]){var P=`
46
+ `+C[i].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),P}while(1<=i&&0<=u);break}}}finally{Nt=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ee(n):""}function oi(e,t){switch(e.tag){case 26:case 27:case 5:return Ee(e.type);case 16:return Ee("Lazy");case 13:return e.child!==t&&t!==null?Ee("Suspense Fallback"):Ee("Suspense");case 19:return Ee("SuspenseList");case 0:case 15:return Bt(e.type,!1);case 11:return Bt(e.type.render,!1);case 1:return Bt(e.type,!0);case 31:return Ee("Activity");default:return""}}function Ya(e){try{var t="",n=null;do t+=oi(e,n),n=e,e=e.return;while(e);return t}catch(i){return`
47
+ Error generating stack: `+i.message+`
48
+ `+i.stack}}var Zn=Object.prototype.hasOwnProperty,Fn=a.unstable_scheduleCallback,Un=a.unstable_cancelCallback,ra=a.unstable_shouldYield,Ml=a.unstable_requestPaint,Mt=a.unstable_now,Es=a.unstable_getCurrentPriorityLevel,Ae=a.unstable_ImmediatePriority,Ke=a.unstable_UserBlockingPriority,Je=a.unstable_NormalPriority,rn=a.unstable_LowPriority,ua=a.unstable_IdlePriority,ci=a.log,fi=a.unstable_setDisableYieldValue,Jn=null,At=null;function xn(e){if(typeof ci=="function"&&fi(e),At&&typeof At.setStrictMode=="function")try{At.setStrictMode(Jn,e)}catch{}}var wt=Math.clz32?Math.clz32:Ts,di=Math.log,Cs=Math.LN2;function Ts(e){return e>>>=0,e===0?32:31-(di(e)/Cs|0)|0}var Pn=256,oa=262144,ca=4194304;function fa(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 Rt(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var u=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var v=i&134217727;return v!==0?(i=v&~c,i!==0?u=fa(i):(h&=v,h!==0?u=fa(h):n||(n=v&~e,n!==0&&(u=fa(n))))):(v=i&~c,v!==0?u=fa(v):h!==0?u=fa(h):n||(n=i&~e,n!==0&&(u=fa(n)))),u===0?0:t!==0&&t!==u&&(t&c)===0&&(c=u&-u,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:u}function Hn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Yr(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 Th(){var e=ca;return ca<<=1,(ca&62914560)===0&&(ca=4194304),e}function Bo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ms(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ov(e,t,n,i,u,c){var h=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var v=e.entanglements,C=e.expirationTimes,H=e.hiddenUpdates;for(n=h&~n;0<n;){var P=31-wt(n),te=1<<P;v[P]=0,C[P]=-1;var B=H[P];if(B!==null)for(H[P]=null,P=0;P<B.length;P++){var G=B[P];G!==null&&(G.lane&=-536870913)}n&=~te}i!==0&&Mh(e,i,0),c!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function Mh(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-wt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function Ah(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-wt(n),u=1<<i;u&t|e[i]&t&&(e[i]|=t),n&=~u}}function Rh(e,t){var n=t&-t;return n=(n&42)!==0?1:Qo(n),(n&(e.suspendedLanes|t))!==0?0:n}function Qo(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 Yo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Oh(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:gy(e.type))}function zh(e,t){var n=X.p;try{return X.p=e,t()}finally{X.p=n}}var Ga=Math.random().toString(36).slice(2),kt="__reactFiber$"+Ga,Ft="__reactProps$"+Ga,hi="__reactContainer$"+Ga,Go="__reactEvents$"+Ga,zv="__reactListeners$"+Ga,kv="__reactHandles$"+Ga,kh="__reactResources$"+Ga,As="__reactMarker$"+Ga;function Vo(e){delete e[kt],delete e[Ft],delete e[Go],delete e[zv],delete e[kv]}function mi(e){var t=e[kt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hi]||n[kt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ey(e);e!==null;){if(n=e[kt])return n;e=ey(e)}return t}e=n,n=e.parentNode}return null}function pi(e){if(e=e[kt]||e[hi]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Rs(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function gi(e){var t=e[kh];return t||(t=e[kh]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ot(e){e[As]=!0}var Dh=new Set,_h={};function Al(e,t){yi(e,t),yi(e+"Capture",t)}function yi(e,t){for(_h[e]=t,e=0;e<t.length;e++)Dh.add(t[e])}var Dv=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]*$"),Lh={},Uh={};function _v(e){return Zn.call(Uh,e)?!0:Zn.call(Lh,e)?!1:Dv.test(e)?Uh[e]=!0:(Lh[e]=!0,!1)}function Gr(e,t,n){if(_v(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Vr(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function da(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+i)}}function vn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Hh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Lv(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var u=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(h){n=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xo(e){if(!e._valueTracker){var t=Hh(e)?"checked":"value";e._valueTracker=Lv(e,t,""+e[t])}}function qh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=Hh(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Xr(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 Uv=/[\n"\\]/g;function bn(e){return e.replace(Uv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ko(e,t,n,i,u,c,h,v){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+vn(t)):e.value!==""+vn(t)&&(e.value=""+vn(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?$o(e,h,vn(t)):n!=null?$o(e,h,vn(n)):i!=null&&e.removeAttribute("value"),u==null&&c!=null&&(e.defaultChecked=!!c),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+vn(v):e.removeAttribute("name")}function Bh(e,t,n,i,u,c,h,v){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Xo(e);return}n=n!=null?""+vn(n):"",t=t!=null?""+vn(t):n,v||t===e.value||(e.value=t),e.defaultValue=t}i=i??u,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=v?e.checked:!!i,e.defaultChecked=!!i,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Xo(e)}function $o(e,t,n){t==="number"&&Xr(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function xi(e,t,n,i){if(e=e.options,t){t={};for(var u=0;u<n.length;u++)t["$"+n[u]]=!0;for(n=0;n<e.length;n++)u=t.hasOwnProperty("$"+e[n].value),e[n].selected!==u&&(e[n].selected=u),u&&i&&(e[n].defaultSelected=!0)}else{for(n=""+vn(n),t=null,u=0;u<e.length;u++){if(e[u].value===n){e[u].selected=!0,i&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Qh(e,t,n){if(t!=null&&(t=""+vn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+vn(n):""}function Yh(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(o(92));if(ne(i)){if(1<i.length)throw Error(o(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=vn(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),Xo(e)}function vi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Hv=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 Gh(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||Hv.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Vh(e,t,n){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var u in t)i=t[u],t.hasOwnProperty(u)&&n[u]!==i&&Gh(e,u,i)}else for(var c in t)t.hasOwnProperty(c)&&Gh(e,c,t[c])}function Zo(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 qv=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"]]),Bv=/^[\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 Kr(e){return Bv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ha(){}var Fo=null;function Jo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bi=null,Si=null;function Xh(e){var t=pi(e);if(t&&(e=t.stateNode)){var n=e[Ft]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ko(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+bn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var u=i[Ft]||null;if(!u)throw Error(o(90));Ko(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&qh(i)}break e;case"textarea":Qh(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&xi(e,!!n.multiple,t,!1)}}}var Po=!1;function Kh(e,t,n){if(Po)return e(t,n);Po=!0;try{var i=e(t);return i}finally{if(Po=!1,(bi!==null||Si!==null)&&(ku(),bi&&(t=bi,e=Si,Si=bi=null,Xh(t),e)))for(t=0;t<e.length;t++)Xh(e[t])}}function Os(e,t){var n=e.stateNode;if(n===null)return null;var i=n[Ft]||null;if(i===null)return null;n=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(o(231,t,typeof n));return n}var ma=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Io=!1;if(ma)try{var zs={};Object.defineProperty(zs,"passive",{get:function(){Io=!0}}),window.addEventListener("test",zs,zs),window.removeEventListener("test",zs,zs)}catch{Io=!1}var Va=null,Wo=null,$r=null;function $h(){if($r)return $r;var e,t=Wo,n=t.length,i,u="value"in Va?Va.value:Va.textContent,c=u.length;for(e=0;e<n&&t[e]===u[e];e++);var h=n-e;for(i=1;i<=h&&t[n-i]===u[c-i];i++);return $r=u.slice(e,1<i?1-i:void 0)}function Zr(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 Fr(){return!0}function Zh(){return!1}function Jt(e){function t(n,i,u,c,h){this._reactName=n,this._targetInst=u,this.type=i,this.nativeEvent=c,this.target=h,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(n=e[v],this[v]=n?n(c):c[v]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Fr:Zh,this.isPropagationStopped=Zh,this}return j(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Fr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Fr)},persist:function(){},isPersistent:Fr}),t}var Rl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Jr=Jt(Rl),ks=j({},Rl,{view:0,detail:0}),Qv=Jt(ks),ec,tc,Ds,Pr=j({},ks,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ac,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!==Ds&&(Ds&&e.type==="mousemove"?(ec=e.screenX-Ds.screenX,tc=e.screenY-Ds.screenY):tc=ec=0,Ds=e),ec)},movementY:function(e){return"movementY"in e?e.movementY:tc}}),Fh=Jt(Pr),Yv=j({},Pr,{dataTransfer:0}),Gv=Jt(Yv),Vv=j({},ks,{relatedTarget:0}),nc=Jt(Vv),Xv=j({},Rl,{animationName:0,elapsedTime:0,pseudoElement:0}),Kv=Jt(Xv),$v=j({},Rl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Zv=Jt($v),Fv=j({},Rl,{data:0}),Jh=Jt(Fv),Jv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Pv={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"},Iv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Wv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Iv[e])?!!t[e]:!1}function ac(){return Wv}var eb=j({},ks,{key:function(e){if(e.key){var t=Jv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Zr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Pv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ac,charCode:function(e){return e.type==="keypress"?Zr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Zr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),tb=Jt(eb),nb=j({},Pr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ph=Jt(nb),ab=j({},ks,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ac}),lb=Jt(ab),ib=j({},Rl,{propertyName:0,elapsedTime:0,pseudoElement:0}),sb=Jt(ib),rb=j({},Pr,{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}),ub=Jt(rb),ob=j({},Rl,{newState:0,oldState:0}),cb=Jt(ob),fb=[9,13,27,32],lc=ma&&"CompositionEvent"in window,_s=null;ma&&"documentMode"in document&&(_s=document.documentMode);var db=ma&&"TextEvent"in window&&!_s,Ih=ma&&(!lc||_s&&8<_s&&11>=_s),Wh=" ",em=!1;function tm(e,t){switch(e){case"keyup":return fb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ji=!1;function hb(e,t){switch(e){case"compositionend":return nm(t);case"keypress":return t.which!==32?null:(em=!0,Wh);case"textInput":return e=t.data,e===Wh&&em?null:e;default:return null}}function mb(e,t){if(ji)return e==="compositionend"||!lc&&tm(e,t)?(e=$h(),$r=Wo=Va=null,ji=!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 Ih&&t.locale!=="ko"?null:t.data;default:return null}}var pb={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 am(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!pb[e.type]:t==="textarea"}function lm(e,t,n,i){bi?Si?Si.push(i):Si=[i]:bi=i,t=Bu(t,"onChange"),0<t.length&&(n=new Jr("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var Ls=null,Us=null;function gb(e){Bg(e,0)}function Ir(e){var t=Rs(e);if(qh(t))return e}function im(e,t){if(e==="change")return t}var sm=!1;if(ma){var ic;if(ma){var sc="oninput"in document;if(!sc){var rm=document.createElement("div");rm.setAttribute("oninput","return;"),sc=typeof rm.oninput=="function"}ic=sc}else ic=!1;sm=ic&&(!document.documentMode||9<document.documentMode)}function um(){Ls&&(Ls.detachEvent("onpropertychange",om),Us=Ls=null)}function om(e){if(e.propertyName==="value"&&Ir(Us)){var t=[];lm(t,Us,e,Jo(e)),Kh(gb,t)}}function yb(e,t,n){e==="focusin"?(um(),Ls=t,Us=n,Ls.attachEvent("onpropertychange",om)):e==="focusout"&&um()}function xb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ir(Us)}function vb(e,t){if(e==="click")return Ir(t)}function bb(e,t){if(e==="input"||e==="change")return Ir(t)}function Sb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var un=typeof Object.is=="function"?Object.is:Sb;function Hs(e,t){if(un(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var u=n[i];if(!Zn.call(t,u)||!un(e[u],t[u]))return!1}return!0}function cm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fm(e,t){var n=cm(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=cm(n)}}function dm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?dm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Xr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Xr(e.document)}return t}function rc(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 jb=ma&&"documentMode"in document&&11>=document.documentMode,Ni=null,uc=null,qs=null,oc=!1;function mm(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;oc||Ni==null||Ni!==Xr(i)||(i=Ni,"selectionStart"in i&&rc(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),qs&&Hs(qs,i)||(qs=i,i=Bu(uc,"onSelect"),0<i.length&&(t=new Jr("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=Ni)))}function Ol(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wi={animationend:Ol("Animation","AnimationEnd"),animationiteration:Ol("Animation","AnimationIteration"),animationstart:Ol("Animation","AnimationStart"),transitionrun:Ol("Transition","TransitionRun"),transitionstart:Ol("Transition","TransitionStart"),transitioncancel:Ol("Transition","TransitionCancel"),transitionend:Ol("Transition","TransitionEnd")},cc={},pm={};ma&&(pm=document.createElement("div").style,"AnimationEvent"in window||(delete wi.animationend.animation,delete wi.animationiteration.animation,delete wi.animationstart.animation),"TransitionEvent"in window||delete wi.transitionend.transition);function zl(e){if(cc[e])return cc[e];if(!wi[e])return e;var t=wi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in pm)return cc[e]=t[n];return e}var gm=zl("animationend"),ym=zl("animationiteration"),xm=zl("animationstart"),Nb=zl("transitionrun"),wb=zl("transitionstart"),Eb=zl("transitioncancel"),vm=zl("transitionend"),bm=new Map,fc="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(" ");fc.push("scrollEnd");function qn(e,t){bm.set(e,t),Al(t,[e])}var Wr=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)},Sn=[],Ei=0,dc=0;function eu(){for(var e=Ei,t=dc=Ei=0;t<e;){var n=Sn[t];Sn[t++]=null;var i=Sn[t];Sn[t++]=null;var u=Sn[t];Sn[t++]=null;var c=Sn[t];if(Sn[t++]=null,i!==null&&u!==null){var h=i.pending;h===null?u.next=u:(u.next=h.next,h.next=u),i.pending=u}c!==0&&Sm(n,u,c)}}function tu(e,t,n,i){Sn[Ei++]=e,Sn[Ei++]=t,Sn[Ei++]=n,Sn[Ei++]=i,dc|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function hc(e,t,n,i){return tu(e,t,n,i),nu(e)}function kl(e,t){return tu(e,null,null,t),nu(e)}function Sm(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var u=!1,c=e.return;c!==null;)c.childLanes|=n,i=c.alternate,i!==null&&(i.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(u=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,u&&t!==null&&(u=31-wt(n),e=c.hiddenUpdates,i=e[u],i===null?e[u]=[t]:i.push(t),t.lane=n|536870912),c):null}function nu(e){if(50<rr)throw rr=0,Nf=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ci={};function Cb(e,t,n,i){this.tag=e,this.key=n,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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function on(e,t,n,i){return new Cb(e,t,n,i)}function mc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pa(e,t){var n=e.alternate;return n===null?(n=on(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function jm(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function au(e,t,n,i,u,c){var h=0;if(i=e,typeof e=="function")mc(e)&&(h=1);else if(typeof e=="string")h=O1(e,n,ee.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case J:return e=on(31,n,t,u),e.elementType=J,e.lanes=c,e;case M:return Dl(n.children,u,c,t);case O:h=8,u|=24;break;case z:return e=on(12,n,t,u|2),e.elementType=z,e.lanes=c,e;case V:return e=on(13,n,t,u),e.elementType=V,e.lanes=c,e;case ae:return e=on(19,n,t,u),e.elementType=ae,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $:h=10;break e;case D:h=9;break e;case _:h=11;break e;case Z:h=14;break e;case q:h=16,i=null;break e}h=29,n=Error(o(130,e===null?"null":typeof e,"")),i=null}return t=on(h,n,t,u),t.elementType=e,t.type=i,t.lanes=c,t}function Dl(e,t,n,i){return e=on(7,e,i,t),e.lanes=n,e}function pc(e,t,n){return e=on(6,e,null,t),e.lanes=n,e}function Nm(e){var t=on(18,null,null,0);return t.stateNode=e,t}function gc(e,t,n){return t=on(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var wm=new WeakMap;function jn(e,t){if(typeof e=="object"&&e!==null){var n=wm.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Ya(t)},wm.set(e,t),t)}return{value:e,source:t,stack:Ya(t)}}var Ti=[],Mi=0,lu=null,Bs=0,Nn=[],wn=0,Xa=null,In=1,Wn="";function ga(e,t){Ti[Mi++]=Bs,Ti[Mi++]=lu,lu=e,Bs=t}function Em(e,t,n){Nn[wn++]=In,Nn[wn++]=Wn,Nn[wn++]=Xa,Xa=e;var i=In;e=Wn;var u=32-wt(i)-1;i&=~(1<<u),n+=1;var c=32-wt(t)+u;if(30<c){var h=u-u%5;c=(i&(1<<h)-1).toString(32),i>>=h,u-=h,In=1<<32-wt(t)+u|n<<u|i,Wn=c+e}else In=1<<c|n<<u|i,Wn=e}function yc(e){e.return!==null&&(ga(e,1),Em(e,1,0))}function xc(e){for(;e===lu;)lu=Ti[--Mi],Ti[Mi]=null,Bs=Ti[--Mi],Ti[Mi]=null;for(;e===Xa;)Xa=Nn[--wn],Nn[wn]=null,Wn=Nn[--wn],Nn[wn]=null,In=Nn[--wn],Nn[wn]=null}function Cm(e,t){Nn[wn++]=In,Nn[wn++]=Wn,Nn[wn++]=Xa,In=t.id,Wn=t.overflow,Xa=e}var Dt=null,at=null,Ue=!1,Ka=null,En=!1,vc=Error(o(519));function $a(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Qs(jn(t,e)),vc}function Tm(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[kt]=e,t[Ft]=i,n){case"dialog":ke("cancel",t),ke("close",t);break;case"iframe":case"object":case"embed":ke("load",t);break;case"video":case"audio":for(n=0;n<or.length;n++)ke(or[n],t);break;case"source":ke("error",t);break;case"img":case"image":case"link":ke("error",t),ke("load",t);break;case"details":ke("toggle",t);break;case"input":ke("invalid",t),Bh(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":ke("invalid",t);break;case"textarea":ke("invalid",t),Yh(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||Vg(t.textContent,n)?(i.popover!=null&&(ke("beforetoggle",t),ke("toggle",t)),i.onScroll!=null&&ke("scroll",t),i.onScrollEnd!=null&&ke("scrollend",t),i.onClick!=null&&(t.onclick=ha),t=!0):t=!1,t||$a(e,!0)}function Mm(e){for(Dt=e.return;Dt;)switch(Dt.tag){case 5:case 31:case 13:En=!1;return;case 27:case 3:En=!0;return;default:Dt=Dt.return}}function Ai(e){if(e!==Dt)return!1;if(!Ue)return Mm(e),Ue=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Hf(e.type,e.memoizedProps)),n=!n),n&&at&&$a(e),Mm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));at=Wg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));at=Wg(e)}else t===27?(t=at,rl(e.type)?(e=Gf,Gf=null,at=e):at=t):at=Dt?Tn(e.stateNode.nextSibling):null;return!0}function _l(){at=Dt=null,Ue=!1}function bc(){var e=Ka;return e!==null&&(en===null?en=e:en.push.apply(en,e),Ka=null),e}function Qs(e){Ka===null?Ka=[e]:Ka.push(e)}var Sc=N(null),Ll=null,ya=null;function Za(e,t,n){K(Sc,t._currentValue),t._currentValue=n}function xa(e){e._currentValue=Sc.current,L(Sc)}function jc(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Nc(e,t,n,i){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var c=u.dependencies;if(c!==null){var h=u.child;c=c.firstContext;e:for(;c!==null;){var v=c;c=u;for(var C=0;C<t.length;C++)if(v.context===t[C]){c.lanes|=n,v=c.alternate,v!==null&&(v.lanes|=n),jc(c.return,n,e),i||(h=null);break e}c=v.next}}else if(u.tag===18){if(h=u.return,h===null)throw Error(o(341));h.lanes|=n,c=h.alternate,c!==null&&(c.lanes|=n),jc(h,n,e),h=null}else h=u.child;if(h!==null)h.return=u;else for(h=u;h!==null;){if(h===e){h=null;break}if(u=h.sibling,u!==null){u.return=h.return,h=u;break}h=h.return}u=h}}function Ri(e,t,n,i){e=null;for(var u=t,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var h=u.alternate;if(h===null)throw Error(o(387));if(h=h.memoizedProps,h!==null){var v=u.type;un(u.pendingProps.value,h.value)||(e!==null?e.push(v):e=[v])}}else if(u===ce.current){if(h=u.alternate,h===null)throw Error(o(387));h.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(mr):e=[mr])}u=u.return}e!==null&&Nc(t,e,n,i),t.flags|=262144}function iu(e){for(e=e.firstContext;e!==null;){if(!un(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ul(e){Ll=e,ya=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function _t(e){return Am(Ll,e)}function su(e,t){return Ll===null&&Ul(e),Am(e,t)}function Am(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ya===null){if(e===null)throw Error(o(308));ya=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ya=ya.next=t;return n}var Tb=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Mb=a.unstable_scheduleCallback,Ab=a.unstable_NormalPriority,yt={$$typeof:$,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function wc(){return{controller:new Tb,data:new Map,refCount:0}}function Ys(e){e.refCount--,e.refCount===0&&Mb(Ab,function(){e.controller.abort()})}var Gs=null,Ec=0,Oi=0,zi=null;function Rb(e,t){if(Gs===null){var n=Gs=[];Ec=0,Oi=Af(),zi={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Ec++,t.then(Rm,Rm),t}function Rm(){if(--Ec===0&&Gs!==null){zi!==null&&(zi.status="fulfilled");var e=Gs;Gs=null,Oi=0,zi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ob(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(u){n.push(u)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var u=0;u<n.length;u++)(0,n[u])(t)},function(u){for(i.status="rejected",i.reason=u,u=0;u<n.length;u++)(0,n[u])(void 0)}),i}var Om=A.S;A.S=function(e,t){mg=Mt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Rb(e,t),Om!==null&&Om(e,t)};var Hl=N(null);function Cc(){var e=Hl.current;return e!==null?e:tt.pooledCache}function ru(e,t){t===null?K(Hl,Hl.current):K(Hl,t.pool)}function zm(){var e=Cc();return e===null?null:{parent:yt._currentValue,pool:e}}var ki=Error(o(460)),Tc=Error(o(474)),uu=Error(o(542)),ou={then:function(){}};function km(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Dm(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(ha,ha),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Lm(e),e;default:if(typeof t.status=="string")t.then(ha,ha);else{if(e=tt,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=i}},function(i){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Lm(e),e}throw Bl=t,ki}}function ql(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Bl=n,ki):n}}var Bl=null;function _m(){if(Bl===null)throw Error(o(459));var e=Bl;return Bl=null,e}function Lm(e){if(e===ki||e===uu)throw Error(o(483))}var Di=null,Vs=0;function cu(e){var t=Vs;return Vs+=1,Di===null&&(Di=[]),Dm(Di,e,t)}function Xs(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function fu(e,t){throw t.$$typeof===S?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Um(e){function t(k,R){if(e){var U=k.deletions;U===null?(k.deletions=[R],k.flags|=16):U.push(R)}}function n(k,R){if(!e)return null;for(;R!==null;)t(k,R),R=R.sibling;return null}function i(k){for(var R=new Map;k!==null;)k.key!==null?R.set(k.key,k):R.set(k.index,k),k=k.sibling;return R}function u(k,R){return k=pa(k,R),k.index=0,k.sibling=null,k}function c(k,R,U){return k.index=U,e?(U=k.alternate,U!==null?(U=U.index,U<R?(k.flags|=67108866,R):U):(k.flags|=67108866,R)):(k.flags|=1048576,R)}function h(k){return e&&k.alternate===null&&(k.flags|=67108866),k}function v(k,R,U,W){return R===null||R.tag!==6?(R=pc(U,k.mode,W),R.return=k,R):(R=u(R,U),R.return=k,R)}function C(k,R,U,W){var xe=U.type;return xe===M?P(k,R,U.props.children,W,U.key):R!==null&&(R.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===q&&ql(xe)===R.type)?(R=u(R,U.props),Xs(R,U),R.return=k,R):(R=au(U.type,U.key,U.props,null,k.mode,W),Xs(R,U),R.return=k,R)}function H(k,R,U,W){return R===null||R.tag!==4||R.stateNode.containerInfo!==U.containerInfo||R.stateNode.implementation!==U.implementation?(R=gc(U,k.mode,W),R.return=k,R):(R=u(R,U.children||[]),R.return=k,R)}function P(k,R,U,W,xe){return R===null||R.tag!==7?(R=Dl(U,k.mode,W,xe),R.return=k,R):(R=u(R,U),R.return=k,R)}function te(k,R,U){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=pc(""+R,k.mode,U),R.return=k,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case w:return U=au(R.type,R.key,R.props,null,k.mode,U),Xs(U,R),U.return=k,U;case E:return R=gc(R,k.mode,U),R.return=k,R;case q:return R=ql(R),te(k,R,U)}if(ne(R)||re(R))return R=Dl(R,k.mode,U,null),R.return=k,R;if(typeof R.then=="function")return te(k,cu(R),U);if(R.$$typeof===$)return te(k,su(k,R),U);fu(k,R)}return null}function B(k,R,U,W){var xe=R!==null?R.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return xe!==null?null:v(k,R,""+U,W);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case w:return U.key===xe?C(k,R,U,W):null;case E:return U.key===xe?H(k,R,U,W):null;case q:return U=ql(U),B(k,R,U,W)}if(ne(U)||re(U))return xe!==null?null:P(k,R,U,W,null);if(typeof U.then=="function")return B(k,R,cu(U),W);if(U.$$typeof===$)return B(k,R,su(k,U),W);fu(k,U)}return null}function G(k,R,U,W,xe){if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return k=k.get(U)||null,v(R,k,""+W,xe);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case w:return k=k.get(W.key===null?U:W.key)||null,C(R,k,W,xe);case E:return k=k.get(W.key===null?U:W.key)||null,H(R,k,W,xe);case q:return W=ql(W),G(k,R,U,W,xe)}if(ne(W)||re(W))return k=k.get(U)||null,P(R,k,W,xe,null);if(typeof W.then=="function")return G(k,R,U,cu(W),xe);if(W.$$typeof===$)return G(k,R,U,su(R,W),xe);fu(R,W)}return null}function de(k,R,U,W){for(var xe=null,Qe=null,pe=R,Te=R=0,_e=null;pe!==null&&Te<U.length;Te++){pe.index>Te?(_e=pe,pe=null):_e=pe.sibling;var Ye=B(k,pe,U[Te],W);if(Ye===null){pe===null&&(pe=_e);break}e&&pe&&Ye.alternate===null&&t(k,pe),R=c(Ye,R,Te),Qe===null?xe=Ye:Qe.sibling=Ye,Qe=Ye,pe=_e}if(Te===U.length)return n(k,pe),Ue&&ga(k,Te),xe;if(pe===null){for(;Te<U.length;Te++)pe=te(k,U[Te],W),pe!==null&&(R=c(pe,R,Te),Qe===null?xe=pe:Qe.sibling=pe,Qe=pe);return Ue&&ga(k,Te),xe}for(pe=i(pe);Te<U.length;Te++)_e=G(pe,k,Te,U[Te],W),_e!==null&&(e&&_e.alternate!==null&&pe.delete(_e.key===null?Te:_e.key),R=c(_e,R,Te),Qe===null?xe=_e:Qe.sibling=_e,Qe=_e);return e&&pe.forEach(function(dl){return t(k,dl)}),Ue&&ga(k,Te),xe}function Se(k,R,U,W){if(U==null)throw Error(o(151));for(var xe=null,Qe=null,pe=R,Te=R=0,_e=null,Ye=U.next();pe!==null&&!Ye.done;Te++,Ye=U.next()){pe.index>Te?(_e=pe,pe=null):_e=pe.sibling;var dl=B(k,pe,Ye.value,W);if(dl===null){pe===null&&(pe=_e);break}e&&pe&&dl.alternate===null&&t(k,pe),R=c(dl,R,Te),Qe===null?xe=dl:Qe.sibling=dl,Qe=dl,pe=_e}if(Ye.done)return n(k,pe),Ue&&ga(k,Te),xe;if(pe===null){for(;!Ye.done;Te++,Ye=U.next())Ye=te(k,Ye.value,W),Ye!==null&&(R=c(Ye,R,Te),Qe===null?xe=Ye:Qe.sibling=Ye,Qe=Ye);return Ue&&ga(k,Te),xe}for(pe=i(pe);!Ye.done;Te++,Ye=U.next())Ye=G(pe,k,Te,Ye.value,W),Ye!==null&&(e&&Ye.alternate!==null&&pe.delete(Ye.key===null?Te:Ye.key),R=c(Ye,R,Te),Qe===null?xe=Ye:Qe.sibling=Ye,Qe=Ye);return e&&pe.forEach(function(Y1){return t(k,Y1)}),Ue&&ga(k,Te),xe}function We(k,R,U,W){if(typeof U=="object"&&U!==null&&U.type===M&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case w:e:{for(var xe=U.key;R!==null;){if(R.key===xe){if(xe=U.type,xe===M){if(R.tag===7){n(k,R.sibling),W=u(R,U.props.children),W.return=k,k=W;break e}}else if(R.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===q&&ql(xe)===R.type){n(k,R.sibling),W=u(R,U.props),Xs(W,U),W.return=k,k=W;break e}n(k,R);break}else t(k,R);R=R.sibling}U.type===M?(W=Dl(U.props.children,k.mode,W,U.key),W.return=k,k=W):(W=au(U.type,U.key,U.props,null,k.mode,W),Xs(W,U),W.return=k,k=W)}return h(k);case E:e:{for(xe=U.key;R!==null;){if(R.key===xe)if(R.tag===4&&R.stateNode.containerInfo===U.containerInfo&&R.stateNode.implementation===U.implementation){n(k,R.sibling),W=u(R,U.children||[]),W.return=k,k=W;break e}else{n(k,R);break}else t(k,R);R=R.sibling}W=gc(U,k.mode,W),W.return=k,k=W}return h(k);case q:return U=ql(U),We(k,R,U,W)}if(ne(U))return de(k,R,U,W);if(re(U)){if(xe=re(U),typeof xe!="function")throw Error(o(150));return U=xe.call(U),Se(k,R,U,W)}if(typeof U.then=="function")return We(k,R,cu(U),W);if(U.$$typeof===$)return We(k,R,su(k,U),W);fu(k,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,R!==null&&R.tag===6?(n(k,R.sibling),W=u(R,U),W.return=k,k=W):(n(k,R),W=pc(U,k.mode,W),W.return=k,k=W),h(k)):n(k,R)}return function(k,R,U,W){try{Vs=0;var xe=We(k,R,U,W);return Di=null,xe}catch(pe){if(pe===ki||pe===uu)throw pe;var Qe=on(29,pe,null,k.mode);return Qe.lanes=W,Qe.return=k,Qe}finally{}}}var Ql=Um(!0),Hm=Um(!1),Fa=!1;function Mc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ac(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 Ja(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Pa(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Ge&2)!==0){var u=i.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),i.pending=t,t=nu(e),Sm(e,null,n),t}return tu(e,i,t,n),nu(e)}function Ks(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Ah(e,n)}}function Rc(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var u=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?u=c=h:c=c.next=h,n=n.next}while(n!==null);c===null?u=c=t:c=c.next=t}else u=c=t;n={baseState:i.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Oc=!1;function $s(){if(Oc){var e=zi;if(e!==null)throw e}}function Zs(e,t,n,i){Oc=!1;var u=e.updateQueue;Fa=!1;var c=u.firstBaseUpdate,h=u.lastBaseUpdate,v=u.shared.pending;if(v!==null){u.shared.pending=null;var C=v,H=C.next;C.next=null,h===null?c=H:h.next=H,h=C;var P=e.alternate;P!==null&&(P=P.updateQueue,v=P.lastBaseUpdate,v!==h&&(v===null?P.firstBaseUpdate=H:v.next=H,P.lastBaseUpdate=C))}if(c!==null){var te=u.baseState;h=0,P=H=C=null,v=c;do{var B=v.lane&-536870913,G=B!==v.lane;if(G?(De&B)===B:(i&B)===B){B!==0&&B===Oi&&(Oc=!0),P!==null&&(P=P.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var de=e,Se=v;B=t;var We=n;switch(Se.tag){case 1:if(de=Se.payload,typeof de=="function"){te=de.call(We,te,B);break e}te=de;break e;case 3:de.flags=de.flags&-65537|128;case 0:if(de=Se.payload,B=typeof de=="function"?de.call(We,te,B):de,B==null)break e;te=j({},te,B);break e;case 2:Fa=!0}}B=v.callback,B!==null&&(e.flags|=64,G&&(e.flags|=8192),G=u.callbacks,G===null?u.callbacks=[B]:G.push(B))}else G={lane:B,tag:v.tag,payload:v.payload,callback:v.callback,next:null},P===null?(H=P=G,C=te):P=P.next=G,h|=B;if(v=v.next,v===null){if(v=u.shared.pending,v===null)break;G=v,v=G.next,G.next=null,u.lastBaseUpdate=G,u.shared.pending=null}}while(!0);P===null&&(C=te),u.baseState=C,u.firstBaseUpdate=H,u.lastBaseUpdate=P,c===null&&(u.shared.lanes=0),nl|=h,e.lanes=h,e.memoizedState=te}}function qm(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Bm(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)qm(n[e],t)}var _i=N(null),du=N(0);function Qm(e,t){e=Ta,K(du,e),K(_i,t),Ta=e|t.baseLanes}function zc(){K(du,Ta),K(_i,_i.current)}function kc(){Ta=du.current,L(_i),L(du)}var cn=N(null),Cn=null;function Ia(e){var t=e.alternate;K(pt,pt.current&1),K(cn,e),Cn===null&&(t===null||_i.current!==null||t.memoizedState!==null)&&(Cn=e)}function Dc(e){K(pt,pt.current),K(cn,e),Cn===null&&(Cn=e)}function Ym(e){e.tag===22?(K(pt,pt.current),K(cn,e),Cn===null&&(Cn=e)):Wa()}function Wa(){K(pt,pt.current),K(cn,cn.current)}function fn(e){L(cn),Cn===e&&(Cn=null),L(pt)}var pt=N(0);function hu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Qf(n)||Yf(n)))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 va=0,Ce=null,Pe=null,xt=null,mu=!1,Li=!1,Yl=!1,pu=0,Fs=0,Ui=null,zb=0;function dt(){throw Error(o(321))}function _c(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!un(e[n],t[n]))return!1;return!0}function Lc(e,t,n,i,u,c){return va=c,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,A.H=e===null||e.memoizedState===null?Ep:Pc,Yl=!1,c=n(i,u),Yl=!1,Li&&(c=Vm(t,n,i,u)),Gm(e),c}function Gm(e){A.H=Is;var t=Pe!==null&&Pe.next!==null;if(va=0,xt=Pe=Ce=null,mu=!1,Fs=0,Ui=null,t)throw Error(o(300));e===null||vt||(e=e.dependencies,e!==null&&iu(e)&&(vt=!0))}function Vm(e,t,n,i){Ce=e;var u=0;do{if(Li&&(Ui=null),Fs=0,Li=!1,25<=u)throw Error(o(301));if(u+=1,xt=Pe=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}A.H=Cp,c=t(n,i)}while(Li);return c}function kb(){var e=A.H,t=e.useState()[0];return t=typeof t.then=="function"?Js(t):t,e=e.useState()[0],(Pe!==null?Pe.memoizedState:null)!==e&&(Ce.flags|=1024),t}function Uc(){var e=pu!==0;return pu=0,e}function Hc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function qc(e){if(mu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}mu=!1}va=0,xt=Pe=Ce=null,Li=!1,Fs=pu=0,Ui=null}function Xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xt===null?Ce.memoizedState=xt=e:xt=xt.next=e,xt}function gt(){if(Pe===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=Pe.next;var t=xt===null?Ce.memoizedState:xt.next;if(t!==null)xt=t,Pe=e;else{if(e===null)throw Ce.alternate===null?Error(o(467)):Error(o(310));Pe=e,e={memoizedState:Pe.memoizedState,baseState:Pe.baseState,baseQueue:Pe.baseQueue,queue:Pe.queue,next:null},xt===null?Ce.memoizedState=xt=e:xt=xt.next=e}return xt}function gu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Js(e){var t=Fs;return Fs+=1,Ui===null&&(Ui=[]),e=Dm(Ui,e,t),t=Ce,(xt===null?t.memoizedState:xt.next)===null&&(t=t.alternate,A.H=t===null||t.memoizedState===null?Ep:Pc),e}function yu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Js(e);if(e.$$typeof===$)return _t(e)}throw Error(o(438,String(e)))}function Bc(e){var t=null,n=Ce.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=Ce.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=gu(),Ce.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=Q;return t.index++,n}function ba(e,t){return typeof t=="function"?t(e):t}function xu(e){var t=gt();return Qc(t,Pe,e)}function Qc(e,t,n){var i=e.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=n;var u=e.baseQueue,c=i.pending;if(c!==null){if(u!==null){var h=u.next;u.next=c.next,c.next=h}t.baseQueue=u=c,i.pending=null}if(c=e.baseState,u===null)e.memoizedState=c;else{t=u.next;var v=h=null,C=null,H=t,P=!1;do{var te=H.lane&-536870913;if(te!==H.lane?(De&te)===te:(va&te)===te){var B=H.revertLane;if(B===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),te===Oi&&(P=!0);else if((va&B)===B){H=H.next,B===Oi&&(P=!0);continue}else te={lane:0,revertLane:H.revertLane,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},C===null?(v=C=te,h=c):C=C.next=te,Ce.lanes|=B,nl|=B;te=H.action,Yl&&n(c,te),c=H.hasEagerState?H.eagerState:n(c,te)}else B={lane:te,revertLane:H.revertLane,gesture:H.gesture,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},C===null?(v=C=B,h=c):C=C.next=B,Ce.lanes|=te,nl|=te;H=H.next}while(H!==null&&H!==t);if(C===null?h=c:C.next=v,!un(c,e.memoizedState)&&(vt=!0,P&&(n=zi,n!==null)))throw n;e.memoizedState=c,e.baseState=h,e.baseQueue=C,i.lastRenderedState=c}return u===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Yc(e){var t=gt(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var i=n.dispatch,u=n.pending,c=t.memoizedState;if(u!==null){n.pending=null;var h=u=u.next;do c=e(c,h.action),h=h.next;while(h!==u);un(c,t.memoizedState)||(vt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,i]}function Xm(e,t,n){var i=Ce,u=gt(),c=Ue;if(c){if(n===void 0)throw Error(o(407));n=n()}else n=t();var h=!un((Pe||u).memoizedState,n);if(h&&(u.memoizedState=n,vt=!0),u=u.queue,Xc(Zm.bind(null,i,u,e),[e]),u.getSnapshot!==t||h||xt!==null&&xt.memoizedState.tag&1){if(i.flags|=2048,Hi(9,{destroy:void 0},$m.bind(null,i,u,n,t),null),tt===null)throw Error(o(349));c||(va&127)!==0||Km(i,t,n)}return n}function Km(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ce.updateQueue,t===null?(t=gu(),Ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function $m(e,t,n,i){t.value=n,t.getSnapshot=i,Fm(t)&&Jm(e)}function Zm(e,t,n){return n(function(){Fm(t)&&Jm(e)})}function Fm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!un(e,n)}catch{return!0}}function Jm(e){var t=kl(e,2);t!==null&&tn(t,e,2)}function Gc(e){var t=Xt();if(typeof e=="function"){var n=e;if(e=n(),Yl){xn(!0);try{n()}finally{xn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:e},t}function Pm(e,t,n,i){return e.baseState=n,Qc(e,Pe,typeof i=="function"?i:ba)}function Db(e,t,n,i,u){if(Su(e))throw Error(o(485));if(e=t.action,e!==null){var c={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){c.listeners.push(h)}};A.T!==null?n(!0):c.isTransition=!1,i(c),n=t.pending,n===null?(c.next=t.pending=c,Im(t,c)):(c.next=n.next,t.pending=n.next=c)}}function Im(e,t){var n=t.action,i=t.payload,u=e.state;if(t.isTransition){var c=A.T,h={};A.T=h;try{var v=n(u,i),C=A.S;C!==null&&C(h,v),Wm(e,t,v)}catch(H){Vc(e,t,H)}finally{c!==null&&h.types!==null&&(c.types=h.types),A.T=c}}else try{c=n(u,i),Wm(e,t,c)}catch(H){Vc(e,t,H)}}function Wm(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){ep(e,t,i)},function(i){return Vc(e,t,i)}):ep(e,t,n)}function ep(e,t,n){t.status="fulfilled",t.value=n,tp(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Im(e,n)))}function Vc(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,tp(t),t=t.next;while(t!==i)}e.action=null}function tp(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function np(e,t){return t}function ap(e,t){if(Ue){var n=tt.formState;if(n!==null){e:{var i=Ce;if(Ue){if(at){t:{for(var u=at,c=En;u.nodeType!==8;){if(!c){u=null;break t}if(u=Tn(u.nextSibling),u===null){u=null;break t}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){at=Tn(u.nextSibling),i=u.data==="F!";break e}}$a(i)}i=!1}i&&(t=n[0])}}return n=Xt(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:np,lastRenderedState:t},n.queue=i,n=jp.bind(null,Ce,i),i.dispatch=n,i=Gc(!1),c=Jc.bind(null,Ce,!1,i.queue),i=Xt(),u={state:t,dispatch:null,action:e,pending:null},i.queue=u,n=Db.bind(null,Ce,u,c,n),u.dispatch=n,i.memoizedState=e,[t,n,!1]}function lp(e){var t=gt();return ip(t,Pe,e)}function ip(e,t,n){if(t=Qc(e,t,np)[0],e=xu(ba)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Js(t)}catch(h){throw h===ki?uu:h}else i=t;t=gt();var u=t.queue,c=u.dispatch;return n!==t.memoizedState&&(Ce.flags|=2048,Hi(9,{destroy:void 0},_b.bind(null,u,n),null)),[i,c,e]}function _b(e,t){e.action=t}function sp(e){var t=gt(),n=Pe;if(n!==null)return ip(t,n,e);gt(),t=t.memoizedState,n=gt();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function Hi(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=Ce.updateQueue,t===null&&(t=gu(),Ce.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function rp(){return gt().memoizedState}function vu(e,t,n,i){var u=Xt();Ce.flags|=e,u.memoizedState=Hi(1|t,{destroy:void 0},n,i===void 0?null:i)}function bu(e,t,n,i){var u=gt();i=i===void 0?null:i;var c=u.memoizedState.inst;Pe!==null&&i!==null&&_c(i,Pe.memoizedState.deps)?u.memoizedState=Hi(t,c,n,i):(Ce.flags|=e,u.memoizedState=Hi(1|t,c,n,i))}function up(e,t){vu(8390656,8,e,t)}function Xc(e,t){bu(2048,8,e,t)}function Lb(e){Ce.flags|=4;var t=Ce.updateQueue;if(t===null)t=gu(),Ce.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function op(e){var t=gt().memoizedState;return Lb({ref:t,nextImpl:e}),function(){if((Ge&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function cp(e,t){return bu(4,2,e,t)}function fp(e,t){return bu(4,4,e,t)}function dp(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function hp(e,t,n){n=n!=null?n.concat([e]):null,bu(4,4,dp.bind(null,t,e),n)}function Kc(){}function mp(e,t){var n=gt();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&_c(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function pp(e,t){var n=gt();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&_c(t,i[1]))return i[0];if(i=e(),Yl){xn(!0);try{e()}finally{xn(!1)}}return n.memoizedState=[i,t],i}function $c(e,t,n){return n===void 0||(va&1073741824)!==0&&(De&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=gg(),Ce.lanes|=e,nl|=e,n)}function gp(e,t,n,i){return un(n,t)?n:_i.current!==null?(e=$c(e,n,i),un(e,t)||(vt=!0),e):(va&42)===0||(va&1073741824)!==0&&(De&261930)===0?(vt=!0,e.memoizedState=n):(e=gg(),Ce.lanes|=e,nl|=e,t)}function yp(e,t,n,i,u){var c=X.p;X.p=c!==0&&8>c?c:8;var h=A.T,v={};A.T=v,Jc(e,!1,t,n);try{var C=u(),H=A.S;if(H!==null&&H(v,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var P=Ob(C,i);Ps(e,t,P,mn(e))}else Ps(e,t,i,mn(e))}catch(te){Ps(e,t,{then:function(){},status:"rejected",reason:te},mn())}finally{X.p=c,h!==null&&v.types!==null&&(h.types=v.types),A.T=h}}function Ub(){}function Zc(e,t,n,i){if(e.tag!==5)throw Error(o(476));var u=xp(e).queue;yp(e,u,t,Y,n===null?Ub:function(){return vp(e),n(i)})}function xp(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:ba,lastRenderedState:Y},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function vp(e){var t=xp(e);t.next===null&&(t=e.alternate.memoizedState),Ps(e,t.next.queue,{},mn())}function Fc(){return _t(mr)}function bp(){return gt().memoizedState}function Sp(){return gt().memoizedState}function Hb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=mn();e=Ja(n);var i=Pa(t,e,n);i!==null&&(tn(i,t,n),Ks(i,t,n)),t={cache:wc()},e.payload=t;return}t=t.return}}function qb(e,t,n){var i=mn();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Su(e)?Np(t,n):(n=hc(e,t,n,i),n!==null&&(tn(n,e,i),wp(n,t,i)))}function jp(e,t,n){var i=mn();Ps(e,t,n,i)}function Ps(e,t,n,i){var u={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Su(e))Np(t,u);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,v=c(h,n);if(u.hasEagerState=!0,u.eagerState=v,un(v,h))return tu(e,t,u,0),tt===null&&eu(),!1}catch{}finally{}if(n=hc(e,t,u,i),n!==null)return tn(n,e,i),wp(n,t,i),!0}return!1}function Jc(e,t,n,i){if(i={lane:2,revertLane:Af(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Su(e)){if(t)throw Error(o(479))}else t=hc(e,n,i,2),t!==null&&tn(t,e,2)}function Su(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function Np(e,t){Li=mu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wp(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Ah(e,n)}}var Is={readContext:_t,use:yu,useCallback:dt,useContext:dt,useEffect:dt,useImperativeHandle:dt,useLayoutEffect:dt,useInsertionEffect:dt,useMemo:dt,useReducer:dt,useRef:dt,useState:dt,useDebugValue:dt,useDeferredValue:dt,useTransition:dt,useSyncExternalStore:dt,useId:dt,useHostTransitionStatus:dt,useFormState:dt,useActionState:dt,useOptimistic:dt,useMemoCache:dt,useCacheRefresh:dt};Is.useEffectEvent=dt;var Ep={readContext:_t,use:yu,useCallback:function(e,t){return Xt().memoizedState=[e,t===void 0?null:t],e},useContext:_t,useEffect:up,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,vu(4194308,4,dp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vu(4194308,4,e,t)},useInsertionEffect:function(e,t){vu(4,2,e,t)},useMemo:function(e,t){var n=Xt();t=t===void 0?null:t;var i=e();if(Yl){xn(!0);try{e()}finally{xn(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=Xt();if(n!==void 0){var u=n(t);if(Yl){xn(!0);try{n(t)}finally{xn(!1)}}}else u=t;return i.memoizedState=i.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},i.queue=e,e=e.dispatch=qb.bind(null,Ce,e),[i.memoizedState,e]},useRef:function(e){var t=Xt();return e={current:e},t.memoizedState=e},useState:function(e){e=Gc(e);var t=e.queue,n=jp.bind(null,Ce,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Kc,useDeferredValue:function(e,t){var n=Xt();return $c(n,e,t)},useTransition:function(){var e=Gc(!1);return e=yp.bind(null,Ce,e.queue,!0,!1),Xt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=Ce,u=Xt();if(Ue){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),tt===null)throw Error(o(349));(De&127)!==0||Km(i,t,n)}u.memoizedState=n;var c={value:n,getSnapshot:t};return u.queue=c,up(Zm.bind(null,i,c,e),[e]),i.flags|=2048,Hi(9,{destroy:void 0},$m.bind(null,i,c,n,t),null),n},useId:function(){var e=Xt(),t=tt.identifierPrefix;if(Ue){var n=Wn,i=In;n=(i&~(1<<32-wt(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=pu++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=zb++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Fc,useFormState:ap,useActionState:ap,useOptimistic:function(e){var t=Xt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Jc.bind(null,Ce,!0,n),n.dispatch=t,[e,t]},useMemoCache:Bc,useCacheRefresh:function(){return Xt().memoizedState=Hb.bind(null,Ce)},useEffectEvent:function(e){var t=Xt(),n={impl:e};return t.memoizedState=n,function(){if((Ge&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},Pc={readContext:_t,use:yu,useCallback:mp,useContext:_t,useEffect:Xc,useImperativeHandle:hp,useInsertionEffect:cp,useLayoutEffect:fp,useMemo:pp,useReducer:xu,useRef:rp,useState:function(){return xu(ba)},useDebugValue:Kc,useDeferredValue:function(e,t){var n=gt();return gp(n,Pe.memoizedState,e,t)},useTransition:function(){var e=xu(ba)[0],t=gt().memoizedState;return[typeof e=="boolean"?e:Js(e),t]},useSyncExternalStore:Xm,useId:bp,useHostTransitionStatus:Fc,useFormState:lp,useActionState:lp,useOptimistic:function(e,t){var n=gt();return Pm(n,Pe,e,t)},useMemoCache:Bc,useCacheRefresh:Sp};Pc.useEffectEvent=op;var Cp={readContext:_t,use:yu,useCallback:mp,useContext:_t,useEffect:Xc,useImperativeHandle:hp,useInsertionEffect:cp,useLayoutEffect:fp,useMemo:pp,useReducer:Yc,useRef:rp,useState:function(){return Yc(ba)},useDebugValue:Kc,useDeferredValue:function(e,t){var n=gt();return Pe===null?$c(n,e,t):gp(n,Pe.memoizedState,e,t)},useTransition:function(){var e=Yc(ba)[0],t=gt().memoizedState;return[typeof e=="boolean"?e:Js(e),t]},useSyncExternalStore:Xm,useId:bp,useHostTransitionStatus:Fc,useFormState:sp,useActionState:sp,useOptimistic:function(e,t){var n=gt();return Pe!==null?Pm(n,Pe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Bc,useCacheRefresh:Sp};Cp.useEffectEvent=op;function Ic(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:j({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Wc={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=mn(),u=Ja(i);u.payload=t,n!=null&&(u.callback=n),t=Pa(e,u,i),t!==null&&(tn(t,e,i),Ks(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=mn(),u=Ja(i);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=Pa(e,u,i),t!==null&&(tn(t,e,i),Ks(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=mn(),i=Ja(n);i.tag=2,t!=null&&(i.callback=t),t=Pa(e,i,n),t!==null&&(tn(t,e,n),Ks(t,e,n))}};function Tp(e,t,n,i,u,c,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,c,h):t.prototype&&t.prototype.isPureReactComponent?!Hs(n,i)||!Hs(u,c):!0}function Mp(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&Wc.enqueueReplaceState(t,t.state,null)}function Gl(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=j({},n));for(var u in e)n[u]===void 0&&(n[u]=e[u])}return n}function Ap(e){Wr(e)}function Rp(e){console.error(e)}function Op(e){Wr(e)}function ju(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function zp(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function ef(e,t,n){return n=Ja(n),n.tag=3,n.payload={element:null},n.callback=function(){ju(e,t)},n}function kp(e){return e=Ja(e),e.tag=3,e}function Dp(e,t,n,i){var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var c=i.value;e.payload=function(){return u(c)},e.callback=function(){zp(t,n,i)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){zp(t,n,i),typeof u!="function"&&(al===null?al=new Set([this]):al.add(this));var v=i.stack;this.componentDidCatch(i.value,{componentStack:v!==null?v:""})})}function Bb(e,t,n,i,u){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&Ri(t,n,u,!0),n=cn.current,n!==null){switch(n.tag){case 31:case 13:return Cn===null?Du():n.alternate===null&&ht===0&&(ht=3),n.flags&=-257,n.flags|=65536,n.lanes=u,i===ou?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),Cf(e,i,u)),!1;case 22:return n.flags|=65536,i===ou?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),Cf(e,i,u)),!1}throw Error(o(435,n.tag))}return Cf(e,i,u),Du(),!1}if(Ue)return t=cn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,i!==vc&&(e=Error(o(422),{cause:i}),Qs(jn(e,n)))):(i!==vc&&(t=Error(o(423),{cause:i}),Qs(jn(t,n))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,i=jn(i,n),u=ef(e.stateNode,i,u),Rc(e,u),ht!==4&&(ht=2)),!1;var c=Error(o(520),{cause:i});if(c=jn(c,n),sr===null?sr=[c]:sr.push(c),ht!==4&&(ht=2),t===null)return!0;i=jn(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=u&-u,n.lanes|=e,e=ef(n.stateNode,i,e),Rc(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(al===null||!al.has(c))))return n.flags|=65536,u&=-u,n.lanes|=u,u=kp(u),Dp(u,e,n,i),Rc(n,u),!1}n=n.return}while(n!==null);return!1}var tf=Error(o(461)),vt=!1;function Lt(e,t,n,i){t.child=e===null?Hm(t,null,n,i):Ql(t,e.child,n,i)}function _p(e,t,n,i,u){n=n.render;var c=t.ref;if("ref"in i){var h={};for(var v in i)v!=="ref"&&(h[v]=i[v])}else h=i;return Ul(t),i=Lc(e,t,n,h,c,u),v=Uc(),e!==null&&!vt?(Hc(e,t,u),Sa(e,t,u)):(Ue&&v&&yc(t),t.flags|=1,Lt(e,t,i,u),t.child)}function Lp(e,t,n,i,u){if(e===null){var c=n.type;return typeof c=="function"&&!mc(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,Up(e,t,c,i,u)):(e=au(n.type,null,i,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!cf(e,u)){var h=c.memoizedProps;if(n=n.compare,n=n!==null?n:Hs,n(h,i)&&e.ref===t.ref)return Sa(e,t,u)}return t.flags|=1,e=pa(c,i),e.ref=t.ref,e.return=t,t.child=e}function Up(e,t,n,i,u){if(e!==null){var c=e.memoizedProps;if(Hs(c,i)&&e.ref===t.ref)if(vt=!1,t.pendingProps=i=c,cf(e,u))(e.flags&131072)!==0&&(vt=!0);else return t.lanes=e.lanes,Sa(e,t,u)}return nf(e,t,n,i,u)}function Hp(e,t,n,i){var u=i.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(i=t.child=e.child,u=0;i!==null;)u=u|i.lanes|i.childLanes,i=i.sibling;i=u&~c}else i=0,t.child=null;return qp(e,t,c,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ru(t,c!==null?c.cachePool:null),c!==null?Qm(t,c):zc(),Ym(t);else return i=t.lanes=536870912,qp(e,t,c!==null?c.baseLanes|n:n,n,i)}else c!==null?(ru(t,c.cachePool),Qm(t,c),Wa(),t.memoizedState=null):(e!==null&&ru(t,null),zc(),Wa());return Lt(e,t,u,n),t.child}function Ws(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function qp(e,t,n,i,u){var c=Cc();return c=c===null?null:{parent:yt._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&ru(t,null),zc(),Ym(t),e!==null&&Ri(e,t,i,!0),t.childLanes=u,null}function Nu(e,t){return t=Eu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Bp(e,t,n){return Ql(t,e.child,null,n),e=Nu(t,t.pendingProps),e.flags|=2,fn(t),t.memoizedState=null,e}function Qb(e,t,n){var i=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ue){if(i.mode==="hidden")return e=Nu(t,i),t.lanes=536870912,Ws(null,e);if(Dc(t),(e=at)?(e=Ig(e,En),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Xa!==null?{id:In,overflow:Wn}:null,retryLane:536870912,hydrationErrors:null},n=Nm(e),n.return=t,t.child=n,Dt=t,at=null)):e=null,e===null)throw $a(t);return t.lanes=536870912,null}return Nu(t,i)}var c=e.memoizedState;if(c!==null){var h=c.dehydrated;if(Dc(t),u)if(t.flags&256)t.flags&=-257,t=Bp(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(vt||Ri(e,t,n,!1),u=(n&e.childLanes)!==0,vt||u){if(i=tt,i!==null&&(h=Rh(i,n),h!==0&&h!==c.retryLane))throw c.retryLane=h,kl(e,h),tn(i,e,h),tf;Du(),t=Bp(e,t,n)}else e=c.treeContext,at=Tn(h.nextSibling),Dt=t,Ue=!0,Ka=null,En=!1,e!==null&&Cm(t,e),t=Nu(t,i),t.flags|=4096;return t}return e=pa(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function wu(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function nf(e,t,n,i,u){return Ul(t),n=Lc(e,t,n,i,void 0,u),i=Uc(),e!==null&&!vt?(Hc(e,t,u),Sa(e,t,u)):(Ue&&i&&yc(t),t.flags|=1,Lt(e,t,n,u),t.child)}function Qp(e,t,n,i,u,c){return Ul(t),t.updateQueue=null,n=Vm(t,i,n,u),Gm(e),i=Uc(),e!==null&&!vt?(Hc(e,t,c),Sa(e,t,c)):(Ue&&i&&yc(t),t.flags|=1,Lt(e,t,n,c),t.child)}function Yp(e,t,n,i,u){if(Ul(t),t.stateNode===null){var c=Ci,h=n.contextType;typeof h=="object"&&h!==null&&(c=_t(h)),c=new n(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Wc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},Mc(t),h=n.contextType,c.context=typeof h=="object"&&h!==null?_t(h):Ci,c.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(Ic(t,n,h,i),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(h=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),h!==c.state&&Wc.enqueueReplaceState(c,c.state,null),Zs(t,i,c,u),$s(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){c=t.stateNode;var v=t.memoizedProps,C=Gl(n,v);c.props=C;var H=c.context,P=n.contextType;h=Ci,typeof P=="object"&&P!==null&&(h=_t(P));var te=n.getDerivedStateFromProps;P=typeof te=="function"||typeof c.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,P||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v||H!==h)&&Mp(t,c,i,h),Fa=!1;var B=t.memoizedState;c.state=B,Zs(t,i,c,u),$s(),H=t.memoizedState,v||B!==H||Fa?(typeof te=="function"&&(Ic(t,n,te,i),H=t.memoizedState),(C=Fa||Tp(t,n,C,i,B,H,h))?(P||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=H),c.props=i,c.state=H,c.context=h,i=C):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{c=t.stateNode,Ac(e,t),h=t.memoizedProps,P=Gl(n,h),c.props=P,te=t.pendingProps,B=c.context,H=n.contextType,C=Ci,typeof H=="object"&&H!==null&&(C=_t(H)),v=n.getDerivedStateFromProps,(H=typeof v=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==te||B!==C)&&Mp(t,c,i,C),Fa=!1,B=t.memoizedState,c.state=B,Zs(t,i,c,u),$s();var G=t.memoizedState;h!==te||B!==G||Fa||e!==null&&e.dependencies!==null&&iu(e.dependencies)?(typeof v=="function"&&(Ic(t,n,v,i),G=t.memoizedState),(P=Fa||Tp(t,n,P,i,B,G,C)||e!==null&&e.dependencies!==null&&iu(e.dependencies))?(H||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,G,C),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,G,C)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=G),c.props=i,c.state=G,c.context=C,i=P):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),i=!1)}return c=i,wu(e,t),i=(t.flags&128)!==0,c||i?(c=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&i?(t.child=Ql(t,e.child,null,u),t.child=Ql(t,null,n,u)):Lt(e,t,n,u),t.memoizedState=c.state,e=t.child):e=Sa(e,t,u),e}function Gp(e,t,n,i){return _l(),t.flags|=256,Lt(e,t,n,i),t.child}var af={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function lf(e){return{baseLanes:e,cachePool:zm()}}function sf(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=hn),e}function Vp(e,t,n){var i=t.pendingProps,u=!1,c=(t.flags&128)!==0,h;if((h=c)||(h=e!==null&&e.memoizedState===null?!1:(pt.current&2)!==0),h&&(u=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ue){if(u?Ia(t):Wa(),(e=at)?(e=Ig(e,En),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Xa!==null?{id:In,overflow:Wn}:null,retryLane:536870912,hydrationErrors:null},n=Nm(e),n.return=t,t.child=n,Dt=t,at=null)):e=null,e===null)throw $a(t);return Yf(e)?t.lanes=32:t.lanes=536870912,null}var v=i.children;return i=i.fallback,u?(Wa(),u=t.mode,v=Eu({mode:"hidden",children:v},u),i=Dl(i,u,n,null),v.return=t,i.return=t,v.sibling=i,t.child=v,i=t.child,i.memoizedState=lf(n),i.childLanes=sf(e,h,n),t.memoizedState=af,Ws(null,i)):(Ia(t),rf(t,v))}var C=e.memoizedState;if(C!==null&&(v=C.dehydrated,v!==null)){if(c)t.flags&256?(Ia(t),t.flags&=-257,t=uf(e,t,n)):t.memoizedState!==null?(Wa(),t.child=e.child,t.flags|=128,t=null):(Wa(),v=i.fallback,u=t.mode,i=Eu({mode:"visible",children:i.children},u),v=Dl(v,u,n,null),v.flags|=2,i.return=t,v.return=t,i.sibling=v,t.child=i,Ql(t,e.child,null,n),i=t.child,i.memoizedState=lf(n),i.childLanes=sf(e,h,n),t.memoizedState=af,t=Ws(null,i));else if(Ia(t),Yf(v)){if(h=v.nextSibling&&v.nextSibling.dataset,h)var H=h.dgst;h=H,i=Error(o(419)),i.stack="",i.digest=h,Qs({value:i,source:null,stack:null}),t=uf(e,t,n)}else if(vt||Ri(e,t,n,!1),h=(n&e.childLanes)!==0,vt||h){if(h=tt,h!==null&&(i=Rh(h,n),i!==0&&i!==C.retryLane))throw C.retryLane=i,kl(e,i),tn(h,e,i),tf;Qf(v)||Du(),t=uf(e,t,n)}else Qf(v)?(t.flags|=192,t.child=e.child,t=null):(e=C.treeContext,at=Tn(v.nextSibling),Dt=t,Ue=!0,Ka=null,En=!1,e!==null&&Cm(t,e),t=rf(t,i.children),t.flags|=4096);return t}return u?(Wa(),v=i.fallback,u=t.mode,C=e.child,H=C.sibling,i=pa(C,{mode:"hidden",children:i.children}),i.subtreeFlags=C.subtreeFlags&65011712,H!==null?v=pa(H,v):(v=Dl(v,u,n,null),v.flags|=2),v.return=t,i.return=t,i.sibling=v,t.child=i,Ws(null,i),i=t.child,v=e.child.memoizedState,v===null?v=lf(n):(u=v.cachePool,u!==null?(C=yt._currentValue,u=u.parent!==C?{parent:C,pool:C}:u):u=zm(),v={baseLanes:v.baseLanes|n,cachePool:u}),i.memoizedState=v,i.childLanes=sf(e,h,n),t.memoizedState=af,Ws(e.child,i)):(Ia(t),n=e.child,e=n.sibling,n=pa(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=n,t.memoizedState=null,n)}function rf(e,t){return t=Eu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Eu(e,t){return e=on(22,e,null,t),e.lanes=0,e}function uf(e,t,n){return Ql(t,e.child,null,n),e=rf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xp(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),jc(e.return,t,n)}function of(e,t,n,i,u,c){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:u,treeForkCount:c}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=i,h.tail=n,h.tailMode=u,h.treeForkCount=c)}function Kp(e,t,n){var i=t.pendingProps,u=i.revealOrder,c=i.tail;i=i.children;var h=pt.current,v=(h&2)!==0;if(v?(h=h&1|2,t.flags|=128):h&=1,K(pt,h),Lt(e,t,i,n),i=Ue?Bs:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Xp(e,n,t);else if(e.tag===19)Xp(e,n,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(u){case"forwards":for(n=t.child,u=null;n!==null;)e=n.alternate,e!==null&&hu(e)===null&&(u=n),n=n.sibling;n=u,n===null?(u=t.child,t.child=null):(u=n.sibling,n.sibling=null),of(t,!1,u,n,c,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&hu(e)===null){t.child=u;break}e=u.sibling,u.sibling=n,n=u,u=e}of(t,!0,n,null,c,i);break;case"together":of(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function Sa(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),nl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ri(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=pa(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=pa(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function cf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&iu(e)))}function Yb(e,t,n){switch(t.tag){case 3:ge(t,t.stateNode.containerInfo),Za(t,yt,e.memoizedState.cache),_l();break;case 27:case 5:Xe(t);break;case 4:ge(t,t.stateNode.containerInfo);break;case 10:Za(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Dc(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Ia(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Vp(e,t,n):(Ia(t),e=Sa(e,t,n),e!==null?e.sibling:null);Ia(t);break;case 19:var u=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(Ri(e,t,n,!1),i=(n&t.childLanes)!==0),u){if(i)return Kp(e,t,n);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),K(pt,pt.current),i)break;return null;case 22:return t.lanes=0,Hp(e,t,n,t.pendingProps);case 24:Za(t,yt,e.memoizedState.cache)}return Sa(e,t,n)}function $p(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)vt=!0;else{if(!cf(e,n)&&(t.flags&128)===0)return vt=!1,Yb(e,t,n);vt=(e.flags&131072)!==0}else vt=!1,Ue&&(t.flags&1048576)!==0&&Em(t,Bs,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=ql(t.elementType),t.type=e,typeof e=="function")mc(e)?(i=Gl(e,i),t.tag=1,t=Yp(null,t,e,i,n)):(t.tag=0,t=nf(null,t,e,i,n));else{if(e!=null){var u=e.$$typeof;if(u===_){t.tag=11,t=_p(null,t,e,i,n);break e}else if(u===Z){t.tag=14,t=Lp(null,t,e,i,n);break e}}throw t=le(e)||e,Error(o(306,t,""))}}return t;case 0:return nf(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,u=Gl(i,t.pendingProps),Yp(e,t,i,u,n);case 3:e:{if(ge(t,t.stateNode.containerInfo),e===null)throw Error(o(387));i=t.pendingProps;var c=t.memoizedState;u=c.element,Ac(e,t),Zs(t,i,null,n);var h=t.memoizedState;if(i=h.cache,Za(t,yt,i),i!==c.cache&&Nc(t,[yt],n,!0),$s(),i=h.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Gp(e,t,i,n);break e}else if(i!==u){u=jn(Error(o(424)),t),Qs(u),t=Gp(e,t,i,n);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(at=Tn(e.firstChild),Dt=t,Ue=!0,Ka=null,En=!0,n=Hm(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(_l(),i===u){t=Sa(e,t,n);break e}Lt(e,t,i,n)}t=t.child}return t;case 26:return wu(e,t),e===null?(n=ly(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ue||(n=t.type,e=t.pendingProps,i=Qu(oe.current).createElement(n),i[kt]=t,i[Ft]=e,Ut(i,n,e),Ot(i),t.stateNode=i):t.memoizedState=ly(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Xe(t),e===null&&Ue&&(i=t.stateNode=ty(t.type,t.pendingProps,oe.current),Dt=t,En=!0,u=at,rl(t.type)?(Gf=u,at=Tn(i.firstChild)):at=u),Lt(e,t,t.pendingProps.children,n),wu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ue&&((u=i=at)&&(i=x1(i,t.type,t.pendingProps,En),i!==null?(t.stateNode=i,Dt=t,at=Tn(i.firstChild),En=!1,u=!0):u=!1),u||$a(t)),Xe(t),u=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,i=c.children,Hf(u,c)?i=null:h!==null&&Hf(u,h)&&(t.flags|=32),t.memoizedState!==null&&(u=Lc(e,t,kb,null,null,n),mr._currentValue=u),wu(e,t),Lt(e,t,i,n),t.child;case 6:return e===null&&Ue&&((e=n=at)&&(n=v1(n,t.pendingProps,En),n!==null?(t.stateNode=n,Dt=t,at=null,e=!0):e=!1),e||$a(t)),null;case 13:return Vp(e,t,n);case 4:return ge(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ql(t,null,i,n):Lt(e,t,i,n),t.child;case 11:return _p(e,t,t.type,t.pendingProps,n);case 7:return Lt(e,t,t.pendingProps,n),t.child;case 8:return Lt(e,t,t.pendingProps.children,n),t.child;case 12:return Lt(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,Za(t,t.type,i.value),Lt(e,t,i.children,n),t.child;case 9:return u=t.type._context,i=t.pendingProps.children,Ul(t),u=_t(u),i=i(u),t.flags|=1,Lt(e,t,i,n),t.child;case 14:return Lp(e,t,t.type,t.pendingProps,n);case 15:return Up(e,t,t.type,t.pendingProps,n);case 19:return Kp(e,t,n);case 31:return Qb(e,t,n);case 22:return Hp(e,t,n,t.pendingProps);case 24:return Ul(t),i=_t(yt),e===null?(u=Cc(),u===null&&(u=tt,c=wc(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=n),u=c),t.memoizedState={parent:i,cache:u},Mc(t),Za(t,yt,u)):((e.lanes&n)!==0&&(Ac(e,t),Zs(t,null,null,n),$s()),u=e.memoizedState,c=t.memoizedState,u.parent!==i?(u={parent:i,cache:i},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Za(t,yt,i)):(i=c.cache,Za(t,yt,i),i!==u.cache&&Nc(t,[yt],n,!0))),Lt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function ja(e){e.flags|=4}function ff(e,t,n,i,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(bg())e.flags|=8192;else throw Bl=ou,Tc}else e.flags&=-16777217}function Zp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!oy(t))if(bg())e.flags|=8192;else throw Bl=ou,Tc}function Cu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Th():536870912,e.lanes|=t,Yi|=t)}function er(e,t){if(!Ue)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function lt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var u=e.child;u!==null;)n|=u.lanes|u.childLanes,i|=u.subtreeFlags&65011712,i|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)n|=u.lanes|u.childLanes,i|=u.subtreeFlags,i|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function Gb(e,t,n){var i=t.pendingProps;switch(xc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(t),null;case 1:return lt(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),xa(yt),ye(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ai(t)?ja(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,bc())),lt(t),null;case 26:var u=t.type,c=t.memoizedState;return e===null?(ja(t),c!==null?(lt(t),Zp(t,c)):(lt(t),ff(t,u,null,i,n))):c?c!==e.memoizedState?(ja(t),lt(t),Zp(t,c)):(lt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&ja(t),lt(t),ff(t,u,e,i,n)),null;case 27:if(Be(t),n=oe.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ja(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return lt(t),null}e=ee.current,Ai(t)?Tm(t):(e=ty(u,i,n),t.stateNode=e,ja(t))}return lt(t),null;case 5:if(Be(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ja(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return lt(t),null}if(c=ee.current,Ai(t))Tm(t);else{var h=Qu(oe.current);switch(c){case 1:c=h.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:c=h.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":c=h.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":c=h.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":c=h.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?h.createElement("select",{is:i.is}):h.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?h.createElement(u,{is:i.is}):h.createElement(u)}}c[kt]=t,c[Ft]=i;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(Ut(c,u,i),u){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&ja(t)}}return lt(t),ff(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&ja(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(o(166));if(e=oe.current,Ai(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,u=Dt,u!==null)switch(u.tag){case 27:case 5:i=u.memoizedProps}e[kt]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||Vg(e.nodeValue,n)),e||$a(t,!0)}else e=Qu(e).createTextNode(i),e[kt]=t,t.stateNode=e}return lt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=Ai(t),n!==null){if(e===null){if(!i)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[kt]=t}else _l(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),e=!1}else n=bc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(fn(t),t):(fn(t),null);if((t.flags&128)!==0)throw Error(o(558))}return lt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Ai(t),i!==null&&i.dehydrated!==null){if(e===null){if(!u)throw Error(o(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[kt]=t}else _l(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),u=!1}else u=bc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(fn(t),t):(fn(t),null)}return fn(t),(t.flags&128)!==0?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,u=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(u=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==u&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Cu(t,t.updateQueue),lt(t),null);case 4:return ye(),e===null&&kf(t.stateNode.containerInfo),lt(t),null;case 10:return xa(t.type),lt(t),null;case 19:if(L(pt),i=t.memoizedState,i===null)return lt(t),null;if(u=(t.flags&128)!==0,c=i.rendering,c===null)if(u)er(i,!1);else{if(ht!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=hu(e),c!==null){for(t.flags|=128,er(i,!1),e=c.updateQueue,t.updateQueue=e,Cu(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)jm(n,e),n=n.sibling;return K(pt,pt.current&1|2),Ue&&ga(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Mt()>Ou&&(t.flags|=128,u=!0,er(i,!1),t.lanes=4194304)}else{if(!u)if(e=hu(c),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,Cu(t,e),er(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!Ue)return lt(t),null}else 2*Mt()-i.renderingStartTime>Ou&&n!==536870912&&(t.flags|=128,u=!0,er(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(e=i.last,e!==null?e.sibling=c:t.child=c,i.last=c)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Mt(),e.sibling=null,n=pt.current,K(pt,u?n&1|2:n&1),Ue&&ga(t,i.treeForkCount),e):(lt(t),null);case 22:case 23:return fn(t),kc(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(lt(t),t.subtreeFlags&6&&(t.flags|=8192)):lt(t),n=t.updateQueue,n!==null&&Cu(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&L(Hl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),xa(yt),lt(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Vb(e,t){switch(xc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xa(yt),ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Be(t),null;case 31:if(t.memoizedState!==null){if(fn(t),t.alternate===null)throw Error(o(340));_l()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(fn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));_l()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return L(pt),null;case 4:return ye(),null;case 10:return xa(t.type),null;case 22:case 23:return fn(t),kc(),e!==null&&L(Hl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return xa(yt),null;case 25:return null;default:return null}}function Fp(e,t){switch(xc(t),t.tag){case 3:xa(yt),ye();break;case 26:case 27:case 5:Be(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&fn(t);break;case 13:fn(t);break;case 19:L(pt);break;case 10:xa(t.type);break;case 22:case 23:fn(t),kc(),e!==null&&L(Hl);break;case 24:xa(yt)}}function tr(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var u=i.next;n=u;do{if((n.tag&e)===e){i=void 0;var c=n.create,h=n.inst;i=c(),h.destroy=i}n=n.next}while(n!==u)}}catch(v){Fe(t,t.return,v)}}function el(e,t,n){try{var i=t.updateQueue,u=i!==null?i.lastEffect:null;if(u!==null){var c=u.next;i=c;do{if((i.tag&e)===e){var h=i.inst,v=h.destroy;if(v!==void 0){h.destroy=void 0,u=t;var C=n,H=v;try{H()}catch(P){Fe(u,C,P)}}}i=i.next}while(i!==c)}}catch(P){Fe(t,t.return,P)}}function Jp(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Bm(t,n)}catch(i){Fe(e,e.return,i)}}}function Pp(e,t,n){n.props=Gl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){Fe(e,t,i)}}function nr(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(u){Fe(e,t,u)}}function ea(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(u){Fe(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(u){Fe(e,t,u)}else n.current=null}function Ip(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(u){Fe(e,e.return,u)}}function df(e,t,n){try{var i=e.stateNode;d1(i,e.type,n,t),i[Ft]=t}catch(u){Fe(e,e.return,u)}}function Wp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&rl(e.type)||e.tag===4}function hf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wp(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&&rl(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 mf(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ha));else if(i!==4&&(i===27&&rl(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(mf(e,t,n),e=e.sibling;e!==null;)mf(e,t,n),e=e.sibling}function Tu(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&rl(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Tu(e,t,n),e=e.sibling;e!==null;)Tu(e,t,n),e=e.sibling}function eg(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);Ut(t,i,n),t[kt]=e,t[Ft]=n}catch(c){Fe(e,e.return,c)}}var Na=!1,bt=!1,pf=!1,tg=typeof WeakSet=="function"?WeakSet:Set,zt=null;function Xb(e,t){if(e=e.containerInfo,Lf=Zu,e=hm(e),rc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var u=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var h=0,v=-1,C=-1,H=0,P=0,te=e,B=null;t:for(;;){for(var G;te!==n||u!==0&&te.nodeType!==3||(v=h+u),te!==c||i!==0&&te.nodeType!==3||(C=h+i),te.nodeType===3&&(h+=te.nodeValue.length),(G=te.firstChild)!==null;)B=te,te=G;for(;;){if(te===e)break t;if(B===n&&++H===u&&(v=h),B===c&&++P===i&&(C=h),(G=te.nextSibling)!==null)break;te=B,B=te.parentNode}te=G}n=v===-1||C===-1?null:{start:v,end:C}}else n=null}n=n||{start:0,end:0}}else n=null;for(Uf={focusedElem:e,selectionRange:n},Zu=!1,zt=t;zt!==null;)if(t=zt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,zt=e;else for(;zt!==null;){switch(t=zt,c=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(n=0;n<e.length;n++)u=e[n],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,u=c.memoizedProps,c=c.memoizedState,i=n.stateNode;try{var de=Gl(n.type,u);e=i.getSnapshotBeforeUpdate(de,c),i.__reactInternalSnapshotBeforeUpdate=e}catch(Se){Fe(n,n.return,Se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Bf(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Bf(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(o(163))}if(e=t.sibling,e!==null){e.return=t.return,zt=e;break}zt=t.return}}function ng(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Ea(e,n),i&4&&tr(5,n);break;case 1:if(Ea(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(h){Fe(n,n.return,h)}else{var u=Gl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){Fe(n,n.return,h)}}i&64&&Jp(n),i&512&&nr(n,n.return);break;case 3:if(Ea(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Bm(e,t)}catch(h){Fe(n,n.return,h)}}break;case 27:t===null&&i&4&&eg(n);case 26:case 5:Ea(e,n),t===null&&i&4&&Ip(n),i&512&&nr(n,n.return);break;case 12:Ea(e,n);break;case 31:Ea(e,n),i&4&&ig(e,n);break;case 13:Ea(e,n),i&4&&sg(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=e1.bind(null,n),b1(e,n))));break;case 22:if(i=n.memoizedState!==null||Na,!i){t=t!==null&&t.memoizedState!==null||bt,u=Na;var c=bt;Na=i,(bt=t)&&!c?Ca(e,n,(n.subtreeFlags&8772)!==0):Ea(e,n),Na=u,bt=c}break;case 30:break;default:Ea(e,n)}}function ag(e){var t=e.alternate;t!==null&&(e.alternate=null,ag(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Vo(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 it=null,Pt=!1;function wa(e,t,n){for(n=n.child;n!==null;)lg(e,t,n),n=n.sibling}function lg(e,t,n){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(Jn,n)}catch{}switch(n.tag){case 26:bt||ea(n,t),wa(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:bt||ea(n,t);var i=it,u=Pt;rl(n.type)&&(it=n.stateNode,Pt=!1),wa(e,t,n),fr(n.stateNode),it=i,Pt=u;break;case 5:bt||ea(n,t);case 6:if(i=it,u=Pt,it=null,wa(e,t,n),it=i,Pt=u,it!==null)if(Pt)try{(it.nodeType===9?it.body:it.nodeName==="HTML"?it.ownerDocument.body:it).removeChild(n.stateNode)}catch(c){Fe(n,t,c)}else try{it.removeChild(n.stateNode)}catch(c){Fe(n,t,c)}break;case 18:it!==null&&(Pt?(e=it,Jg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ji(e)):Jg(it,n.stateNode));break;case 4:i=it,u=Pt,it=n.stateNode.containerInfo,Pt=!0,wa(e,t,n),it=i,Pt=u;break;case 0:case 11:case 14:case 15:el(2,n,t),bt||el(4,n,t),wa(e,t,n);break;case 1:bt||(ea(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&Pp(n,t,i)),wa(e,t,n);break;case 21:wa(e,t,n);break;case 22:bt=(i=bt)||n.memoizedState!==null,wa(e,t,n),bt=i;break;default:wa(e,t,n)}}function ig(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ji(e)}catch(n){Fe(t,t.return,n)}}}function sg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ji(e)}catch(n){Fe(t,t.return,n)}}function Kb(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new tg),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new tg),t;default:throw Error(o(435,e.tag))}}function Mu(e,t){var n=Kb(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var u=t1.bind(null,e,i);i.then(u,u)}})}function It(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var u=n[i],c=e,h=t,v=h;e:for(;v!==null;){switch(v.tag){case 27:if(rl(v.type)){it=v.stateNode,Pt=!1;break e}break;case 5:it=v.stateNode,Pt=!1;break e;case 3:case 4:it=v.stateNode.containerInfo,Pt=!0;break e}v=v.return}if(it===null)throw Error(o(160));lg(c,h,u),it=null,Pt=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)rg(t,e),t=t.sibling}var Bn=null;function rg(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:It(t,e),Wt(e),i&4&&(el(3,e,e.return),tr(3,e),el(5,e,e.return));break;case 1:It(t,e),Wt(e),i&512&&(bt||n===null||ea(n,n.return)),i&64&&Na&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var u=Bn;if(It(t,e),Wt(e),i&512&&(bt||n===null||ea(n,n.return)),i&4){var c=n!==null?n.memoizedState:null;if(i=e.memoizedState,n===null)if(i===null)if(e.stateNode===null){e:{i=e.type,n=e.memoizedProps,u=u.ownerDocument||u;t:switch(i){case"title":c=u.getElementsByTagName("title")[0],(!c||c[As]||c[kt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(i),u.head.insertBefore(c,u.querySelector("head > title"))),Ut(c,i,n),c[kt]=e,Ot(c),i=c;break e;case"link":var h=ry("link","href",u).get(i+(n.href||""));if(h){for(var v=0;v<h.length;v++)if(c=h[v],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(v,1);break t}}c=u.createElement(i),Ut(c,i,n),u.head.appendChild(c);break;case"meta":if(h=ry("meta","content",u).get(i+(n.content||""))){for(v=0;v<h.length;v++)if(c=h[v],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(v,1);break t}}c=u.createElement(i),Ut(c,i,n),u.head.appendChild(c);break;default:throw Error(o(468,i))}c[kt]=e,Ot(c),i=c}e.stateNode=i}else uy(u,e.type,e.stateNode);else e.stateNode=sy(u,i,e.memoizedProps);else c!==i?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,i===null?uy(u,e.type,e.stateNode):sy(u,i,e.memoizedProps)):i===null&&e.stateNode!==null&&df(e,e.memoizedProps,n.memoizedProps)}break;case 27:It(t,e),Wt(e),i&512&&(bt||n===null||ea(n,n.return)),n!==null&&i&4&&df(e,e.memoizedProps,n.memoizedProps);break;case 5:if(It(t,e),Wt(e),i&512&&(bt||n===null||ea(n,n.return)),e.flags&32){u=e.stateNode;try{vi(u,"")}catch(de){Fe(e,e.return,de)}}i&4&&e.stateNode!=null&&(u=e.memoizedProps,df(e,u,n!==null?n.memoizedProps:u)),i&1024&&(pf=!0);break;case 6:if(It(t,e),Wt(e),i&4){if(e.stateNode===null)throw Error(o(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(de){Fe(e,e.return,de)}}break;case 3:if(Vu=null,u=Bn,Bn=Yu(t.containerInfo),It(t,e),Bn=u,Wt(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Ji(t.containerInfo)}catch(de){Fe(e,e.return,de)}pf&&(pf=!1,ug(e));break;case 4:i=Bn,Bn=Yu(e.stateNode.containerInfo),It(t,e),Wt(e),Bn=i;break;case 12:It(t,e),Wt(e);break;case 31:It(t,e),Wt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Mu(e,i)));break;case 13:It(t,e),Wt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ru=Mt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Mu(e,i)));break;case 22:u=e.memoizedState!==null;var C=n!==null&&n.memoizedState!==null,H=Na,P=bt;if(Na=H||u,bt=P||C,It(t,e),bt=P,Na=H,Wt(e),i&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(n===null||C||Na||bt||Vl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){C=n=t;try{if(c=C.stateNode,u)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{v=C.stateNode;var te=C.memoizedProps.style,B=te!=null&&te.hasOwnProperty("display")?te.display:null;v.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(de){Fe(C,C.return,de)}}}else if(t.tag===6){if(n===null){C=t;try{C.stateNode.nodeValue=u?"":C.memoizedProps}catch(de){Fe(C,C.return,de)}}}else if(t.tag===18){if(n===null){C=t;try{var G=C.stateNode;u?Pg(G,!0):Pg(C.stateNode,!1)}catch(de){Fe(C,C.return,de)}}}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;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,Mu(e,n))));break;case 19:It(t,e),Wt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Mu(e,i)));break;case 30:break;case 21:break;default:It(t,e),Wt(e)}}function Wt(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(Wp(i)){n=i;break}i=i.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var u=n.stateNode,c=hf(e);Tu(e,c,u);break;case 5:var h=n.stateNode;n.flags&32&&(vi(h,""),n.flags&=-33);var v=hf(e);Tu(e,v,h);break;case 3:case 4:var C=n.stateNode.containerInfo,H=hf(e);mf(e,H,C);break;default:throw Error(o(161))}}catch(P){Fe(e,e.return,P)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ug(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ug(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ea(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ng(e,t.alternate,t),t=t.sibling}function Vl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:el(4,t,t.return),Vl(t);break;case 1:ea(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Pp(t,t.return,n),Vl(t);break;case 27:fr(t.stateNode);case 26:case 5:ea(t,t.return),Vl(t);break;case 22:t.memoizedState===null&&Vl(t);break;case 30:Vl(t);break;default:Vl(t)}e=e.sibling}}function Ca(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,u=e,c=t,h=c.flags;switch(c.tag){case 0:case 11:case 15:Ca(u,c,n),tr(4,c);break;case 1:if(Ca(u,c,n),i=c,u=i.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(H){Fe(i,i.return,H)}if(i=c,u=i.updateQueue,u!==null){var v=i.stateNode;try{var C=u.shared.hiddenCallbacks;if(C!==null)for(u.shared.hiddenCallbacks=null,u=0;u<C.length;u++)qm(C[u],v)}catch(H){Fe(i,i.return,H)}}n&&h&64&&Jp(c),nr(c,c.return);break;case 27:eg(c);case 26:case 5:Ca(u,c,n),n&&i===null&&h&4&&Ip(c),nr(c,c.return);break;case 12:Ca(u,c,n);break;case 31:Ca(u,c,n),n&&h&4&&ig(u,c);break;case 13:Ca(u,c,n),n&&h&4&&sg(u,c);break;case 22:c.memoizedState===null&&Ca(u,c,n),nr(c,c.return);break;case 30:break;default:Ca(u,c,n)}t=t.sibling}}function gf(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Ys(n))}function yf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ys(e))}function Qn(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)og(e,t,n,i),t=t.sibling}function og(e,t,n,i){var u=t.flags;switch(t.tag){case 0:case 11:case 15:Qn(e,t,n,i),u&2048&&tr(9,t);break;case 1:Qn(e,t,n,i);break;case 3:Qn(e,t,n,i),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ys(e)));break;case 12:if(u&2048){Qn(e,t,n,i),e=t.stateNode;try{var c=t.memoizedProps,h=c.id,v=c.onPostCommit;typeof v=="function"&&v(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(C){Fe(t,t.return,C)}}else Qn(e,t,n,i);break;case 31:Qn(e,t,n,i);break;case 13:Qn(e,t,n,i);break;case 23:break;case 22:c=t.stateNode,h=t.alternate,t.memoizedState!==null?c._visibility&2?Qn(e,t,n,i):ar(e,t):c._visibility&2?Qn(e,t,n,i):(c._visibility|=2,qi(e,t,n,i,(t.subtreeFlags&10256)!==0||!1)),u&2048&&gf(h,t);break;case 24:Qn(e,t,n,i),u&2048&&yf(t.alternate,t);break;default:Qn(e,t,n,i)}}function qi(e,t,n,i,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,h=t,v=n,C=i,H=h.flags;switch(h.tag){case 0:case 11:case 15:qi(c,h,v,C,u),tr(8,h);break;case 23:break;case 22:var P=h.stateNode;h.memoizedState!==null?P._visibility&2?qi(c,h,v,C,u):ar(c,h):(P._visibility|=2,qi(c,h,v,C,u)),u&&H&2048&&gf(h.alternate,h);break;case 24:qi(c,h,v,C,u),u&&H&2048&&yf(h.alternate,h);break;default:qi(c,h,v,C,u)}t=t.sibling}}function ar(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,u=i.flags;switch(i.tag){case 22:ar(n,i),u&2048&&gf(i.alternate,i);break;case 24:ar(n,i),u&2048&&yf(i.alternate,i);break;default:ar(n,i)}t=t.sibling}}var lr=8192;function Bi(e,t,n){if(e.subtreeFlags&lr)for(e=e.child;e!==null;)cg(e,t,n),e=e.sibling}function cg(e,t,n){switch(e.tag){case 26:Bi(e,t,n),e.flags&lr&&e.memoizedState!==null&&z1(n,Bn,e.memoizedState,e.memoizedProps);break;case 5:Bi(e,t,n);break;case 3:case 4:var i=Bn;Bn=Yu(e.stateNode.containerInfo),Bi(e,t,n),Bn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=lr,lr=16777216,Bi(e,t,n),lr=i):Bi(e,t,n));break;default:Bi(e,t,n)}}function fg(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 ir(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];zt=i,hg(i,e)}fg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)dg(e),e=e.sibling}function dg(e){switch(e.tag){case 0:case 11:case 15:ir(e),e.flags&2048&&el(9,e,e.return);break;case 3:ir(e);break;case 12:ir(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Au(e)):ir(e);break;default:ir(e)}}function Au(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];zt=i,hg(i,e)}fg(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:el(8,t,t.return),Au(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Au(t));break;default:Au(t)}e=e.sibling}}function hg(e,t){for(;zt!==null;){var n=zt;switch(n.tag){case 0:case 11:case 15:el(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Ys(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,zt=i;else e:for(n=e;zt!==null;){i=zt;var u=i.sibling,c=i.return;if(ag(i),i===n){zt=null;break e}if(u!==null){u.return=c,zt=u;break e}zt=c}}}var $b={getCacheForType:function(e){var t=_t(yt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return _t(yt).controller.signal}},Zb=typeof WeakMap=="function"?WeakMap:Map,Ge=0,tt=null,ze=null,De=0,Ze=0,dn=null,tl=!1,Qi=!1,xf=!1,Ta=0,ht=0,nl=0,Xl=0,vf=0,hn=0,Yi=0,sr=null,en=null,bf=!1,Ru=0,mg=0,Ou=1/0,zu=null,al=null,Et=0,ll=null,Gi=null,Ma=0,Sf=0,jf=null,pg=null,rr=0,Nf=null;function mn(){return(Ge&2)!==0&&De!==0?De&-De:A.T!==null?Af():Oh()}function gg(){if(hn===0)if((De&536870912)===0||Ue){var e=oa;oa<<=1,(oa&3932160)===0&&(oa=262144),hn=e}else hn=536870912;return e=cn.current,e!==null&&(e.flags|=32),hn}function tn(e,t,n){(e===tt&&(Ze===2||Ze===9)||e.cancelPendingCommit!==null)&&(Vi(e,0),il(e,De,hn,!1)),Ms(e,n),((Ge&2)===0||e!==tt)&&(e===tt&&((Ge&2)===0&&(Xl|=n),ht===4&&il(e,De,hn,!1)),ta(e))}function yg(e,t,n){if((Ge&6)!==0)throw Error(o(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Hn(e,t),u=i?Pb(e,t):Ef(e,t,!0),c=i;do{if(u===0){Qi&&!i&&il(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!Fb(n)){u=Ef(e,t,!1),c=!1;continue}if(u===2){if(c=t,e.errorRecoveryDisabledLanes&c)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var v=e;u=sr;var C=v.current.memoizedState.isDehydrated;if(C&&(Vi(v,h).flags|=256),h=Ef(v,h,!1),h!==2){if(xf&&!C){v.errorRecoveryDisabledLanes|=c,Xl|=c,u=4;break e}c=en,en=u,c!==null&&(en===null?en=c:en.push.apply(en,c))}u=h}if(c=!1,u!==2)continue}}if(u===1){Vi(e,0),il(e,t,0,!0);break}e:{switch(i=e,c=u,c){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:il(i,t,hn,!tl);break e;case 2:en=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(u=Ru+300-Mt(),10<u)){if(il(i,t,hn,!tl),Rt(i,0,!0)!==0)break e;Ma=t,i.timeoutHandle=Zg(xg.bind(null,i,n,en,zu,bf,t,hn,Xl,Yi,tl,c,"Throttled",-0,0),u);break e}xg(i,n,en,zu,bf,t,hn,Xl,Yi,tl,c,null,-0,0)}}break}while(!0);ta(e)}function xg(e,t,n,i,u,c,h,v,C,H,P,te,B,G){if(e.timeoutHandle=-1,te=t.subtreeFlags,te&8192||(te&16785408)===16785408){te={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ha},cg(t,c,te);var de=(c&62914560)===c?Ru-Mt():(c&4194048)===c?mg-Mt():0;if(de=k1(te,de),de!==null){Ma=c,e.cancelPendingCommit=de(Cg.bind(null,e,t,c,n,i,u,h,v,C,P,te,null,B,G)),il(e,c,h,!H);return}}Cg(e,t,c,n,i,u,h,v,C)}function Fb(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var u=n[i],c=u.getSnapshot;u=u.value;try{if(!un(c(),u))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 il(e,t,n,i){t&=~vf,t&=~Xl,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var u=t;0<u;){var c=31-wt(u),h=1<<c;i[c]=-1,u&=~h}n!==0&&Mh(e,n,t)}function ku(){return(Ge&6)===0?(ur(0),!1):!0}function wf(){if(ze!==null){if(Ze===0)var e=ze.return;else e=ze,ya=Ll=null,qc(e),Di=null,Vs=0,e=ze;for(;e!==null;)Fp(e.alternate,e),e=e.return;ze=null}}function Vi(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,p1(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Ma=0,wf(),tt=e,ze=n=pa(e.current,null),De=t,Ze=0,dn=null,tl=!1,Qi=Hn(e,t),xf=!1,Yi=hn=vf=Xl=nl=ht=0,en=sr=null,bf=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var u=31-wt(i),c=1<<u;t|=e[u],i&=~c}return Ta=t,eu(),n}function vg(e,t){Ce=null,A.H=Is,t===ki||t===uu?(t=_m(),Ze=3):t===Tc?(t=_m(),Ze=4):Ze=t===tf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,dn=t,ze===null&&(ht=1,ju(e,jn(t,e.current)))}function bg(){var e=cn.current;return e===null?!0:(De&4194048)===De?Cn===null:(De&62914560)===De||(De&536870912)!==0?e===Cn:!1}function Sg(){var e=A.H;return A.H=Is,e===null?Is:e}function jg(){var e=A.A;return A.A=$b,e}function Du(){ht=4,tl||(De&4194048)!==De&&cn.current!==null||(Qi=!0),(nl&134217727)===0&&(Xl&134217727)===0||tt===null||il(tt,De,hn,!1)}function Ef(e,t,n){var i=Ge;Ge|=2;var u=Sg(),c=jg();(tt!==e||De!==t)&&(zu=null,Vi(e,t)),t=!1;var h=ht;e:do try{if(Ze!==0&&ze!==null){var v=ze,C=dn;switch(Ze){case 8:wf(),h=6;break e;case 3:case 2:case 9:case 6:cn.current===null&&(t=!0);var H=Ze;if(Ze=0,dn=null,Xi(e,v,C,H),n&&Qi){h=0;break e}break;default:H=Ze,Ze=0,dn=null,Xi(e,v,C,H)}}Jb(),h=ht;break}catch(P){vg(e,P)}while(!0);return t&&e.shellSuspendCounter++,ya=Ll=null,Ge=i,A.H=u,A.A=c,ze===null&&(tt=null,De=0,eu()),h}function Jb(){for(;ze!==null;)Ng(ze)}function Pb(e,t){var n=Ge;Ge|=2;var i=Sg(),u=jg();tt!==e||De!==t?(zu=null,Ou=Mt()+500,Vi(e,t)):Qi=Hn(e,t);e:do try{if(Ze!==0&&ze!==null){t=ze;var c=dn;t:switch(Ze){case 1:Ze=0,dn=null,Xi(e,t,c,1);break;case 2:case 9:if(km(c)){Ze=0,dn=null,wg(t);break}t=function(){Ze!==2&&Ze!==9||tt!==e||(Ze=7),ta(e)},c.then(t,t);break e;case 3:Ze=7;break e;case 4:Ze=5;break e;case 7:km(c)?(Ze=0,dn=null,wg(t)):(Ze=0,dn=null,Xi(e,t,c,7));break;case 5:var h=null;switch(ze.tag){case 26:h=ze.memoizedState;case 5:case 27:var v=ze;if(h?oy(h):v.stateNode.complete){Ze=0,dn=null;var C=v.sibling;if(C!==null)ze=C;else{var H=v.return;H!==null?(ze=H,_u(H)):ze=null}break t}}Ze=0,dn=null,Xi(e,t,c,5);break;case 6:Ze=0,dn=null,Xi(e,t,c,6);break;case 8:wf(),ht=6;break e;default:throw Error(o(462))}}Ib();break}catch(P){vg(e,P)}while(!0);return ya=Ll=null,A.H=i,A.A=u,Ge=n,ze!==null?0:(tt=null,De=0,eu(),ht)}function Ib(){for(;ze!==null&&!ra();)Ng(ze)}function Ng(e){var t=$p(e.alternate,e,Ta);e.memoizedProps=e.pendingProps,t===null?_u(e):ze=t}function wg(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Qp(n,t,t.pendingProps,t.type,void 0,De);break;case 11:t=Qp(n,t,t.pendingProps,t.type.render,t.ref,De);break;case 5:qc(t);default:Fp(n,t),t=ze=jm(t,Ta),t=$p(n,t,Ta)}e.memoizedProps=e.pendingProps,t===null?_u(e):ze=t}function Xi(e,t,n,i){ya=Ll=null,qc(t),Di=null,Vs=0;var u=t.return;try{if(Bb(e,u,t,n,De)){ht=1,ju(e,jn(n,e.current)),ze=null;return}}catch(c){if(u!==null)throw ze=u,c;ht=1,ju(e,jn(n,e.current)),ze=null;return}t.flags&32768?(Ue||i===1?e=!0:Qi||(De&536870912)!==0?e=!1:(tl=e=!0,(i===2||i===9||i===3||i===6)&&(i=cn.current,i!==null&&i.tag===13&&(i.flags|=16384))),Eg(t,e)):_u(t)}function _u(e){var t=e;do{if((t.flags&32768)!==0){Eg(t,tl);return}e=t.return;var n=Gb(t.alternate,t,Ta);if(n!==null){ze=n;return}if(t=t.sibling,t!==null){ze=t;return}ze=t=e}while(t!==null);ht===0&&(ht=5)}function Eg(e,t){do{var n=Vb(e.alternate,e);if(n!==null){n.flags&=32767,ze=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ze=e;return}ze=e=n}while(e!==null);ht=6,ze=null}function Cg(e,t,n,i,u,c,h,v,C){e.cancelPendingCommit=null;do Lu();while(Et!==0);if((Ge&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(c=t.lanes|t.childLanes,c|=dc,Ov(e,n,c,h,v,C),e===tt&&(ze=tt=null,De=0),Gi=t,ll=e,Ma=n,Sf=c,jf=u,pg=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,n1(Je,function(){return Og(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=A.T,A.T=null,u=X.p,X.p=2,h=Ge,Ge|=4;try{Xb(e,t,n)}finally{Ge=h,X.p=u,A.T=i}}Et=1,Tg(),Mg(),Ag()}}function Tg(){if(Et===1){Et=0;var e=ll,t=Gi,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=A.T,A.T=null;var i=X.p;X.p=2;var u=Ge;Ge|=4;try{rg(t,e);var c=Uf,h=hm(e.containerInfo),v=c.focusedElem,C=c.selectionRange;if(h!==v&&v&&v.ownerDocument&&dm(v.ownerDocument.documentElement,v)){if(C!==null&&rc(v)){var H=C.start,P=C.end;if(P===void 0&&(P=H),"selectionStart"in v)v.selectionStart=H,v.selectionEnd=Math.min(P,v.value.length);else{var te=v.ownerDocument||document,B=te&&te.defaultView||window;if(B.getSelection){var G=B.getSelection(),de=v.textContent.length,Se=Math.min(C.start,de),We=C.end===void 0?Se:Math.min(C.end,de);!G.extend&&Se>We&&(h=We,We=Se,Se=h);var k=fm(v,Se),R=fm(v,We);if(k&&R&&(G.rangeCount!==1||G.anchorNode!==k.node||G.anchorOffset!==k.offset||G.focusNode!==R.node||G.focusOffset!==R.offset)){var U=te.createRange();U.setStart(k.node,k.offset),G.removeAllRanges(),Se>We?(G.addRange(U),G.extend(R.node,R.offset)):(U.setEnd(R.node,R.offset),G.addRange(U))}}}}for(te=[],G=v;G=G.parentNode;)G.nodeType===1&&te.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<te.length;v++){var W=te[v];W.element.scrollLeft=W.left,W.element.scrollTop=W.top}}Zu=!!Lf,Uf=Lf=null}finally{Ge=u,X.p=i,A.T=n}}e.current=t,Et=2}}function Mg(){if(Et===2){Et=0;var e=ll,t=Gi,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=A.T,A.T=null;var i=X.p;X.p=2;var u=Ge;Ge|=4;try{ng(e,t.alternate,t)}finally{Ge=u,X.p=i,A.T=n}}Et=3}}function Ag(){if(Et===4||Et===3){Et=0,Ml();var e=ll,t=Gi,n=Ma,i=pg;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Et=5:(Et=0,Gi=ll=null,Rg(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(al=null),Yo(n),t=t.stateNode,At&&typeof At.onCommitFiberRoot=="function")try{At.onCommitFiberRoot(Jn,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=A.T,u=X.p,X.p=2,A.T=null;try{for(var c=e.onRecoverableError,h=0;h<i.length;h++){var v=i[h];c(v.value,{componentStack:v.stack})}}finally{A.T=t,X.p=u}}(Ma&3)!==0&&Lu(),ta(e),u=e.pendingLanes,(n&261930)!==0&&(u&42)!==0?e===Nf?rr++:(rr=0,Nf=e):rr=0,ur(0)}}function Rg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ys(t)))}function Lu(){return Tg(),Mg(),Ag(),Og()}function Og(){if(Et!==5)return!1;var e=ll,t=Sf;Sf=0;var n=Yo(Ma),i=A.T,u=X.p;try{X.p=32>n?32:n,A.T=null,n=jf,jf=null;var c=ll,h=Ma;if(Et=0,Gi=ll=null,Ma=0,(Ge&6)!==0)throw Error(o(331));var v=Ge;if(Ge|=4,dg(c.current),og(c,c.current,h,n),Ge=v,ur(0,!1),At&&typeof At.onPostCommitFiberRoot=="function")try{At.onPostCommitFiberRoot(Jn,c)}catch{}return!0}finally{X.p=u,A.T=i,Rg(e,t)}}function zg(e,t,n){t=jn(n,t),t=ef(e.stateNode,t,2),e=Pa(e,t,2),e!==null&&(Ms(e,2),ta(e))}function Fe(e,t,n){if(e.tag===3)zg(e,e,n);else for(;t!==null;){if(t.tag===3){zg(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(al===null||!al.has(i))){e=jn(n,e),n=kp(2),i=Pa(t,n,2),i!==null&&(Dp(n,i,t,e),Ms(i,2),ta(i));break}}t=t.return}}function Cf(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new Zb;var u=new Set;i.set(t,u)}else u=i.get(t),u===void 0&&(u=new Set,i.set(t,u));u.has(n)||(xf=!0,u.add(n),e=Wb.bind(null,e,t,n),t.then(e,e))}function Wb(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,tt===e&&(De&n)===n&&(ht===4||ht===3&&(De&62914560)===De&&300>Mt()-Ru?(Ge&2)===0&&Vi(e,0):vf|=n,Yi===De&&(Yi=0)),ta(e)}function kg(e,t){t===0&&(t=Th()),e=kl(e,t),e!==null&&(Ms(e,t),ta(e))}function e1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),kg(e,n)}function t1(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,u=e.memoizedState;u!==null&&(n=u.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(o(314))}i!==null&&i.delete(t),kg(e,n)}function n1(e,t){return Fn(e,t)}var Uu=null,Ki=null,Tf=!1,Hu=!1,Mf=!1,sl=0;function ta(e){e!==Ki&&e.next===null&&(Ki===null?Uu=Ki=e:Ki=Ki.next=e),Hu=!0,Tf||(Tf=!0,l1())}function ur(e,t){if(!Mf&&Hu){Mf=!0;do for(var n=!1,i=Uu;i!==null;){if(e!==0){var u=i.pendingLanes;if(u===0)var c=0;else{var h=i.suspendedLanes,v=i.pingedLanes;c=(1<<31-wt(42|e)+1)-1,c&=u&~(h&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Ug(i,c))}else c=De,c=Rt(i,i===tt?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||Hn(i,c)||(n=!0,Ug(i,c));i=i.next}while(n);Mf=!1}}function a1(){Dg()}function Dg(){Hu=Tf=!1;var e=0;sl!==0&&m1()&&(e=sl);for(var t=Mt(),n=null,i=Uu;i!==null;){var u=i.next,c=_g(i,t);c===0?(i.next=null,n===null?Uu=u:n.next=u,u===null&&(Ki=n)):(n=i,(e!==0||(c&3)!==0)&&(Hu=!0)),i=u}Et!==0&&Et!==5||ur(e),sl!==0&&(sl=0)}function _g(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,u=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-wt(c),v=1<<h,C=u[h];C===-1?((v&n)===0||(v&i)!==0)&&(u[h]=Yr(v,t)):C<=t&&(e.expiredLanes|=v),c&=~v}if(t=tt,n=De,n=Rt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(Ze===2||Ze===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Un(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Hn(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&Un(i),Yo(n)){case 2:case 8:n=Ke;break;case 32:n=Je;break;case 268435456:n=ua;break;default:n=Je}return i=Lg.bind(null,e),n=Fn(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&Un(i),e.callbackPriority=2,e.callbackNode=null,2}function Lg(e,t){if(Et!==0&&Et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Lu()&&e.callbackNode!==n)return null;var i=De;return i=Rt(e,e===tt?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(yg(e,i,t),_g(e,Mt()),e.callbackNode!=null&&e.callbackNode===n?Lg.bind(null,e):null)}function Ug(e,t){if(Lu())return null;yg(e,t,!0)}function l1(){g1(function(){(Ge&6)!==0?Fn(Ae,a1):Dg()})}function Af(){if(sl===0){var e=Oi;e===0&&(e=Pn,Pn<<=1,(Pn&261888)===0&&(Pn=256)),sl=e}return sl}function Hg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Kr(""+e)}function qg(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function i1(e,t,n,i,u){if(t==="submit"&&n&&n.stateNode===u){var c=Hg((u[Ft]||null).action),h=i.submitter;h&&(t=(t=h[Ft]||null)?Hg(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var v=new Jr("action","action",null,i,u);e.push({event:v,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(sl!==0){var C=h?qg(u,h):new FormData(u);Zc(n,{pending:!0,data:C,method:u.method,action:c},null,C)}}else typeof c=="function"&&(v.preventDefault(),C=h?qg(u,h):new FormData(u),Zc(n,{pending:!0,data:C,method:u.method,action:c},c,C))},currentTarget:u}]})}}for(var Rf=0;Rf<fc.length;Rf++){var Of=fc[Rf],s1=Of.toLowerCase(),r1=Of[0].toUpperCase()+Of.slice(1);qn(s1,"on"+r1)}qn(gm,"onAnimationEnd"),qn(ym,"onAnimationIteration"),qn(xm,"onAnimationStart"),qn("dblclick","onDoubleClick"),qn("focusin","onFocus"),qn("focusout","onBlur"),qn(Nb,"onTransitionRun"),qn(wb,"onTransitionStart"),qn(Eb,"onTransitionCancel"),qn(vm,"onTransitionEnd"),yi("onMouseEnter",["mouseout","mouseover"]),yi("onMouseLeave",["mouseout","mouseover"]),yi("onPointerEnter",["pointerout","pointerover"]),yi("onPointerLeave",["pointerout","pointerover"]),Al("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Al("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Al("onBeforeInput",["compositionend","keypress","textInput","paste"]),Al("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Al("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Al("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var or="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(" "),u1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(or));function Bg(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],u=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var h=i.length-1;0<=h;h--){var v=i[h],C=v.instance,H=v.currentTarget;if(v=v.listener,C!==c&&u.isPropagationStopped())break e;c=v,u.currentTarget=H;try{c(u)}catch(P){Wr(P)}u.currentTarget=null,c=C}else for(h=0;h<i.length;h++){if(v=i[h],C=v.instance,H=v.currentTarget,v=v.listener,C!==c&&u.isPropagationStopped())break e;c=v,u.currentTarget=H;try{c(u)}catch(P){Wr(P)}u.currentTarget=null,c=C}}}}function ke(e,t){var n=t[Go];n===void 0&&(n=t[Go]=new Set);var i=e+"__bubble";n.has(i)||(Qg(t,e,2,!1),n.add(i))}function zf(e,t,n){var i=0;t&&(i|=4),Qg(n,e,i,t)}var qu="_reactListening"+Math.random().toString(36).slice(2);function kf(e){if(!e[qu]){e[qu]=!0,Dh.forEach(function(n){n!=="selectionchange"&&(u1.has(n)||zf(n,!1,e),zf(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[qu]||(t[qu]=!0,zf("selectionchange",!1,t))}}function Qg(e,t,n,i){switch(gy(t)){case 2:var u=L1;break;case 8:u=U1;break;default:u=Zf}n=u.bind(null,t,n,e),u=void 0,!Io||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),i?u!==void 0?e.addEventListener(t,n,{capture:!0,passive:u}):e.addEventListener(t,n,!0):u!==void 0?e.addEventListener(t,n,{passive:u}):e.addEventListener(t,n,!1)}function Df(e,t,n,i,u){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var h=i.tag;if(h===3||h===4){var v=i.stateNode.containerInfo;if(v===u)break;if(h===4)for(h=i.return;h!==null;){var C=h.tag;if((C===3||C===4)&&h.stateNode.containerInfo===u)return;h=h.return}for(;v!==null;){if(h=mi(v),h===null)return;if(C=h.tag,C===5||C===6||C===26||C===27){i=c=h;continue e}v=v.parentNode}}i=i.return}Kh(function(){var H=c,P=Jo(n),te=[];e:{var B=bm.get(e);if(B!==void 0){var G=Jr,de=e;switch(e){case"keypress":if(Zr(n)===0)break e;case"keydown":case"keyup":G=tb;break;case"focusin":de="focus",G=nc;break;case"focusout":de="blur",G=nc;break;case"beforeblur":case"afterblur":G=nc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=Fh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=Gv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=lb;break;case gm:case ym:case xm:G=Kv;break;case vm:G=sb;break;case"scroll":case"scrollend":G=Qv;break;case"wheel":G=ub;break;case"copy":case"cut":case"paste":G=Zv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=Ph;break;case"toggle":case"beforetoggle":G=cb}var Se=(t&4)!==0,We=!Se&&(e==="scroll"||e==="scrollend"),k=Se?B!==null?B+"Capture":null:B;Se=[];for(var R=H,U;R!==null;){var W=R;if(U=W.stateNode,W=W.tag,W!==5&&W!==26&&W!==27||U===null||k===null||(W=Os(R,k),W!=null&&Se.push(cr(R,W,U))),We)break;R=R.return}0<Se.length&&(B=new G(B,de,null,n,P),te.push({event:B,listeners:Se}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",G=e==="mouseout"||e==="pointerout",B&&n!==Fo&&(de=n.relatedTarget||n.fromElement)&&(mi(de)||de[hi]))break e;if((G||B)&&(B=P.window===P?P:(B=P.ownerDocument)?B.defaultView||B.parentWindow:window,G?(de=n.relatedTarget||n.toElement,G=H,de=de?mi(de):null,de!==null&&(We=d(de),Se=de.tag,de!==We||Se!==5&&Se!==27&&Se!==6)&&(de=null)):(G=null,de=H),G!==de)){if(Se=Fh,W="onMouseLeave",k="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(Se=Ph,W="onPointerLeave",k="onPointerEnter",R="pointer"),We=G==null?B:Rs(G),U=de==null?B:Rs(de),B=new Se(W,R+"leave",G,n,P),B.target=We,B.relatedTarget=U,W=null,mi(P)===H&&(Se=new Se(k,R+"enter",de,n,P),Se.target=U,Se.relatedTarget=We,W=Se),We=W,G&&de)t:{for(Se=o1,k=G,R=de,U=0,W=k;W;W=Se(W))U++;W=0;for(var xe=R;xe;xe=Se(xe))W++;for(;0<U-W;)k=Se(k),U--;for(;0<W-U;)R=Se(R),W--;for(;U--;){if(k===R||R!==null&&k===R.alternate){Se=k;break t}k=Se(k),R=Se(R)}Se=null}else Se=null;G!==null&&Yg(te,B,G,Se,!1),de!==null&&We!==null&&Yg(te,We,de,Se,!0)}}e:{if(B=H?Rs(H):window,G=B.nodeName&&B.nodeName.toLowerCase(),G==="select"||G==="input"&&B.type==="file")var Qe=im;else if(am(B))if(sm)Qe=bb;else{Qe=xb;var pe=yb}else G=B.nodeName,!G||G.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?H&&Zo(H.elementType)&&(Qe=im):Qe=vb;if(Qe&&(Qe=Qe(e,H))){lm(te,Qe,n,P);break e}pe&&pe(e,B,H),e==="focusout"&&H&&B.type==="number"&&H.memoizedProps.value!=null&&$o(B,"number",B.value)}switch(pe=H?Rs(H):window,e){case"focusin":(am(pe)||pe.contentEditable==="true")&&(Ni=pe,uc=H,qs=null);break;case"focusout":qs=uc=Ni=null;break;case"mousedown":oc=!0;break;case"contextmenu":case"mouseup":case"dragend":oc=!1,mm(te,n,P);break;case"selectionchange":if(jb)break;case"keydown":case"keyup":mm(te,n,P)}var Te;if(lc)e:{switch(e){case"compositionstart":var _e="onCompositionStart";break e;case"compositionend":_e="onCompositionEnd";break e;case"compositionupdate":_e="onCompositionUpdate";break e}_e=void 0}else ji?tm(e,n)&&(_e="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(_e="onCompositionStart");_e&&(Ih&&n.locale!=="ko"&&(ji||_e!=="onCompositionStart"?_e==="onCompositionEnd"&&ji&&(Te=$h()):(Va=P,Wo="value"in Va?Va.value:Va.textContent,ji=!0)),pe=Bu(H,_e),0<pe.length&&(_e=new Jh(_e,e,null,n,P),te.push({event:_e,listeners:pe}),Te?_e.data=Te:(Te=nm(n),Te!==null&&(_e.data=Te)))),(Te=db?hb(e,n):mb(e,n))&&(_e=Bu(H,"onBeforeInput"),0<_e.length&&(pe=new Jh("onBeforeInput","beforeinput",null,n,P),te.push({event:pe,listeners:_e}),pe.data=Te)),i1(te,e,H,n,P)}Bg(te,t)})}function cr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Bu(e,t){for(var n=t+"Capture",i=[];e!==null;){var u=e,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=Os(e,n),u!=null&&i.unshift(cr(e,u,c)),u=Os(e,t),u!=null&&i.push(cr(e,u,c))),e.tag===3)return i;e=e.return}return[]}function o1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Yg(e,t,n,i,u){for(var c=t._reactName,h=[];n!==null&&n!==i;){var v=n,C=v.alternate,H=v.stateNode;if(v=v.tag,C!==null&&C===i)break;v!==5&&v!==26&&v!==27||H===null||(C=H,u?(H=Os(n,c),H!=null&&h.unshift(cr(n,H,C))):u||(H=Os(n,c),H!=null&&h.push(cr(n,H,C)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var c1=/\r\n?/g,f1=/\u0000|\uFFFD/g;function Gg(e){return(typeof e=="string"?e:""+e).replace(c1,`
49
+ `).replace(f1,"")}function Vg(e,t){return t=Gg(t),Gg(e)===t}function Ie(e,t,n,i,u,c){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||vi(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&vi(e,""+i);break;case"className":Vr(e,"class",i);break;case"tabIndex":Vr(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Vr(e,n,i);break;case"style":Vh(e,i,c);break;case"data":if(t!=="object"){Vr(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Kr(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"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 c=="function"&&(n==="formAction"?(t!=="input"&&Ie(e,t,"name",u.name,u,null),Ie(e,t,"formEncType",u.formEncType,u,null),Ie(e,t,"formMethod",u.formMethod,u,null),Ie(e,t,"formTarget",u.formTarget,u,null)):(Ie(e,t,"encType",u.encType,u,null),Ie(e,t,"method",u.method,u,null),Ie(e,t,"target",u.target,u,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Kr(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=ha);break;case"onScroll":i!=null&&ke("scroll",e);break;case"onScrollEnd":i!=null&&ke("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(n=i.__html,n!=null){if(u.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=Kr(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""+i):e.removeAttribute(n);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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":ke("beforetoggle",e),ke("toggle",e),Gr(e,"popover",i);break;case"xlinkActuate":da(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":da(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":da(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":da(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":da(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":da(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":da(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":da(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":da(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Gr(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=qv.get(n)||n,Gr(e,n,i))}}function _f(e,t,n,i,u,c){switch(n){case"style":Vh(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(n=i.__html,n!=null){if(u.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"children":typeof i=="string"?vi(e,i):(typeof i=="number"||typeof i=="bigint")&&vi(e,""+i);break;case"onScroll":i!=null&&ke("scroll",e);break;case"onScrollEnd":i!=null&&ke("scrollend",e);break;case"onClick":i!=null&&(e.onclick=ha);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!_h.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(u=n.endsWith("Capture"),t=n.slice(2,u?n.length-7:void 0),c=e[Ft]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,u),typeof i=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,u);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):Gr(e,n,i)}}}function Ut(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ke("error",e),ke("load",e);var i=!1,u=!1,c;for(c in n)if(n.hasOwnProperty(c)){var h=n[c];if(h!=null)switch(c){case"src":i=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ie(e,t,c,h,n,null)}}u&&Ie(e,t,"srcSet",n.srcSet,n,null),i&&Ie(e,t,"src",n.src,n,null);return;case"input":ke("invalid",e);var v=c=h=u=null,C=null,H=null;for(i in n)if(n.hasOwnProperty(i)){var P=n[i];if(P!=null)switch(i){case"name":u=P;break;case"type":h=P;break;case"checked":C=P;break;case"defaultChecked":H=P;break;case"value":c=P;break;case"defaultValue":v=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(o(137,t));break;default:Ie(e,t,i,P,n,null)}}Bh(e,c,v,C,H,h,u,!1);return;case"select":ke("invalid",e),i=h=c=null;for(u in n)if(n.hasOwnProperty(u)&&(v=n[u],v!=null))switch(u){case"value":c=v;break;case"defaultValue":h=v;break;case"multiple":i=v;default:Ie(e,t,u,v,n,null)}t=c,n=h,e.multiple=!!i,t!=null?xi(e,!!i,t,!1):n!=null&&xi(e,!!i,n,!0);return;case"textarea":ke("invalid",e),c=u=i=null;for(h in n)if(n.hasOwnProperty(h)&&(v=n[h],v!=null))switch(h){case"value":i=v;break;case"defaultValue":u=v;break;case"children":c=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(o(91));break;default:Ie(e,t,h,v,n,null)}Yh(e,i,u,c);return;case"option":for(C in n)if(n.hasOwnProperty(C)&&(i=n[C],i!=null))switch(C){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Ie(e,t,C,i,n,null)}return;case"dialog":ke("beforetoggle",e),ke("toggle",e),ke("cancel",e),ke("close",e);break;case"iframe":case"object":ke("load",e);break;case"video":case"audio":for(i=0;i<or.length;i++)ke(or[i],e);break;case"image":ke("error",e),ke("load",e);break;case"details":ke("toggle",e);break;case"embed":case"source":case"link":ke("error",e),ke("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(H in n)if(n.hasOwnProperty(H)&&(i=n[H],i!=null))switch(H){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ie(e,t,H,i,n,null)}return;default:if(Zo(t)){for(P in n)n.hasOwnProperty(P)&&(i=n[P],i!==void 0&&_f(e,t,P,i,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(i=n[v],i!=null&&Ie(e,t,v,i,n,null))}function d1(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,c=null,h=null,v=null,C=null,H=null,P=null;for(G in n){var te=n[G];if(n.hasOwnProperty(G)&&te!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":C=te;default:i.hasOwnProperty(G)||Ie(e,t,G,null,i,te)}}for(var B in i){var G=i[B];if(te=n[B],i.hasOwnProperty(B)&&(G!=null||te!=null))switch(B){case"type":c=G;break;case"name":u=G;break;case"checked":H=G;break;case"defaultChecked":P=G;break;case"value":h=G;break;case"defaultValue":v=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(o(137,t));break;default:G!==te&&Ie(e,t,B,G,i,te)}}Ko(e,h,v,C,H,P,c,u);return;case"select":G=h=v=B=null;for(c in n)if(C=n[c],n.hasOwnProperty(c)&&C!=null)switch(c){case"value":break;case"multiple":G=C;default:i.hasOwnProperty(c)||Ie(e,t,c,null,i,C)}for(u in i)if(c=i[u],C=n[u],i.hasOwnProperty(u)&&(c!=null||C!=null))switch(u){case"value":B=c;break;case"defaultValue":v=c;break;case"multiple":h=c;default:c!==C&&Ie(e,t,u,c,i,C)}t=v,n=h,i=G,B!=null?xi(e,!!n,B,!1):!!i!=!!n&&(t!=null?xi(e,!!n,t,!0):xi(e,!!n,n?[]:"",!1));return;case"textarea":G=B=null;for(v in n)if(u=n[v],n.hasOwnProperty(v)&&u!=null&&!i.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ie(e,t,v,null,i,u)}for(h in i)if(u=i[h],c=n[h],i.hasOwnProperty(h)&&(u!=null||c!=null))switch(h){case"value":B=u;break;case"defaultValue":G=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(o(91));break;default:u!==c&&Ie(e,t,h,u,i,c)}Qh(e,B,G);return;case"option":for(var de in n)if(B=n[de],n.hasOwnProperty(de)&&B!=null&&!i.hasOwnProperty(de))switch(de){case"selected":e.selected=!1;break;default:Ie(e,t,de,null,i,B)}for(C in i)if(B=i[C],G=n[C],i.hasOwnProperty(C)&&B!==G&&(B!=null||G!=null))switch(C){case"selected":e.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:Ie(e,t,C,B,i,G)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Se in n)B=n[Se],n.hasOwnProperty(Se)&&B!=null&&!i.hasOwnProperty(Se)&&Ie(e,t,Se,null,i,B);for(H in i)if(B=i[H],G=n[H],i.hasOwnProperty(H)&&B!==G&&(B!=null||G!=null))switch(H){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(o(137,t));break;default:Ie(e,t,H,B,i,G)}return;default:if(Zo(t)){for(var We in n)B=n[We],n.hasOwnProperty(We)&&B!==void 0&&!i.hasOwnProperty(We)&&_f(e,t,We,void 0,i,B);for(P in i)B=i[P],G=n[P],!i.hasOwnProperty(P)||B===G||B===void 0&&G===void 0||_f(e,t,P,B,i,G);return}}for(var k in n)B=n[k],n.hasOwnProperty(k)&&B!=null&&!i.hasOwnProperty(k)&&Ie(e,t,k,null,i,B);for(te in i)B=i[te],G=n[te],!i.hasOwnProperty(te)||B===G||B==null&&G==null||Ie(e,t,te,B,i,G)}function Xg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function h1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var u=n[i],c=u.transferSize,h=u.initiatorType,v=u.duration;if(c&&v&&Xg(h)){for(h=0,v=u.responseEnd,i+=1;i<n.length;i++){var C=n[i],H=C.startTime;if(H>v)break;var P=C.transferSize,te=C.initiatorType;P&&Xg(te)&&(C=C.responseEnd,h+=P*(C<v?1:(v-H)/(C-H)))}if(--i,t+=8*(c+h)/(u.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 Lf=null,Uf=null;function Qu(e){return e.nodeType===9?e:e.ownerDocument}function Kg(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 $g(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 Hf(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 qf=null;function m1(){var e=window.event;return e&&e.type==="popstate"?e===qf?!1:(qf=e,!0):(qf=null,!1)}var Zg=typeof setTimeout=="function"?setTimeout:void 0,p1=typeof clearTimeout=="function"?clearTimeout:void 0,Fg=typeof Promise=="function"?Promise:void 0,g1=typeof queueMicrotask=="function"?queueMicrotask:typeof Fg<"u"?function(e){return Fg.resolve(null).then(e).catch(y1)}:Zg;function y1(e){setTimeout(function(){throw e})}function rl(e){return e==="head"}function Jg(e,t){var n=t,i=0;do{var u=n.nextSibling;if(e.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(u),Ji(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")fr(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,fr(n);for(var c=n.firstChild;c;){var h=c.nextSibling,v=c.nodeName;c[As]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=h}}else n==="body"&&fr(e.ownerDocument.body);n=u}while(n);Ji(t)}function Pg(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function Bf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Bf(n),Vo(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function x1(e,t,n,i){for(;e.nodeType===1;){var u=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[As])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Tn(e.nextSibling),e===null)break}return null}function v1(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Tn(e.nextSibling),e===null))return null;return e}function Ig(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Tn(e.nextSibling),e===null))return null;return e}function Qf(e){return e.data==="$?"||e.data==="$~"}function Yf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function b1(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function Tn(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 Gf=null;function Wg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Tn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function ey(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function ty(e,t,n){switch(t=Qu(n),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function fr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Vo(e)}var Mn=new Map,ny=new Set;function Yu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Aa=X.d;X.d={f:S1,r:j1,D:N1,C:w1,L:E1,m:C1,X:M1,S:T1,M:A1};function S1(){var e=Aa.f(),t=ku();return e||t}function j1(e){var t=pi(e);t!==null&&t.tag===5&&t.type==="form"?vp(t):Aa.r(e)}var $i=typeof document>"u"?null:document;function ay(e,t,n){var i=$i;if(i&&typeof t=="string"&&t){var u=bn(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),ny.has(u)||(ny.add(u),e={rel:e,crossOrigin:n,href:t},i.querySelector(u)===null&&(t=i.createElement("link"),Ut(t,"link",e),Ot(t),i.head.appendChild(t)))}}function N1(e){Aa.D(e),ay("dns-prefetch",e,null)}function w1(e,t){Aa.C(e,t),ay("preconnect",e,t)}function E1(e,t,n){Aa.L(e,t,n);var i=$i;if(i&&e&&t){var u='link[rel="preload"][as="'+bn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+bn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+bn(n.imageSizes)+'"]')):u+='[href="'+bn(e)+'"]';var c=u;switch(t){case"style":c=Zi(e);break;case"script":c=Fi(e)}Mn.has(c)||(e=j({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Mn.set(c,e),i.querySelector(u)!==null||t==="style"&&i.querySelector(dr(c))||t==="script"&&i.querySelector(hr(c))||(t=i.createElement("link"),Ut(t,"link",e),Ot(t),i.head.appendChild(t)))}}function C1(e,t){Aa.m(e,t);var n=$i;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+bn(i)+'"][href="'+bn(e)+'"]',c=u;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Fi(e)}if(!Mn.has(c)&&(e=j({rel:"modulepreload",href:e},t),Mn.set(c,e),n.querySelector(u)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(hr(c)))return}i=n.createElement("link"),Ut(i,"link",e),Ot(i),n.head.appendChild(i)}}}function T1(e,t,n){Aa.S(e,t,n);var i=$i;if(i&&e){var u=gi(i).hoistableStyles,c=Zi(e);t=t||"default";var h=u.get(c);if(!h){var v={loading:0,preload:null};if(h=i.querySelector(dr(c)))v.loading=5;else{e=j({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Mn.get(c))&&Vf(e,n);var C=h=i.createElement("link");Ot(C),Ut(C,"link",e),C._p=new Promise(function(H,P){C.onload=H,C.onerror=P}),C.addEventListener("load",function(){v.loading|=1}),C.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Gu(h,t,i)}h={type:"stylesheet",instance:h,count:1,state:v},u.set(c,h)}}}function M1(e,t){Aa.X(e,t);var n=$i;if(n&&e){var i=gi(n).hoistableScripts,u=Fi(e),c=i.get(u);c||(c=n.querySelector(hr(u)),c||(e=j({src:e,async:!0},t),(t=Mn.get(u))&&Xf(e,t),c=n.createElement("script"),Ot(c),Ut(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(u,c))}}function A1(e,t){Aa.M(e,t);var n=$i;if(n&&e){var i=gi(n).hoistableScripts,u=Fi(e),c=i.get(u);c||(c=n.querySelector(hr(u)),c||(e=j({src:e,async:!0,type:"module"},t),(t=Mn.get(u))&&Xf(e,t),c=n.createElement("script"),Ot(c),Ut(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(u,c))}}function ly(e,t,n,i){var u=(u=oe.current)?Yu(u):null;if(!u)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Zi(n.href),n=gi(u).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Zi(n.href);var c=gi(u).hoistableStyles,h=c.get(e);if(h||(u=u.ownerDocument||u,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=u.querySelector(dr(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Mn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Mn.set(e,n),c||R1(u,e,n,h.state))),t&&i===null)throw Error(o(528,""));return h}if(t&&i!==null)throw Error(o(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Fi(n),n=gi(u).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Zi(e){return'href="'+bn(e)+'"'}function dr(e){return'link[rel="stylesheet"]['+e+"]"}function iy(e){return j({},e,{"data-precedence":e.precedence,precedence:null})}function R1(e,t,n,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),Ut(t,"link",n),Ot(t),e.head.appendChild(t))}function Fi(e){return'[src="'+bn(e)+'"]'}function hr(e){return"script[async]"+e}function sy(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+bn(n.href)+'"]');if(i)return t.instance=i,Ot(i),i;var u=j({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),Ot(i),Ut(i,"style",u),Gu(i,n.precedence,e),t.instance=i;case"stylesheet":u=Zi(n.href);var c=e.querySelector(dr(u));if(c)return t.state.loading|=4,t.instance=c,Ot(c),c;i=iy(n),(u=Mn.get(u))&&Vf(i,u),c=(e.ownerDocument||e).createElement("link"),Ot(c);var h=c;return h._p=new Promise(function(v,C){h.onload=v,h.onerror=C}),Ut(c,"link",i),t.state.loading|=4,Gu(c,n.precedence,e),t.instance=c;case"script":return c=Fi(n.src),(u=e.querySelector(hr(c)))?(t.instance=u,Ot(u),u):(i=n,(u=Mn.get(c))&&(i=j({},n),Xf(i,u)),e=e.ownerDocument||e,u=e.createElement("script"),Ot(u),Ut(u,"link",i),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Gu(i,n.precedence,e));return t.instance}function Gu(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=i.length?i[i.length-1]:null,c=u,h=0;h<i.length;h++){var v=i[h];if(v.dataset.precedence===t)c=v;else if(c!==u)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Vf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Xf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Vu=null;function ry(e,t,n){if(Vu===null){var i=new Map,u=Vu=new Map;u.set(n,i)}else u=Vu,i=u.get(n),i||(i=new Map,u.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),u=0;u<n.length;u++){var c=n[u];if(!(c[As]||c[kt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var h=c.getAttribute(t)||"";h=e+h;var v=i.get(h);v?v.push(c):i.set(h,[c])}}return i}function uy(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function O1(e,t,n){if(n===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 oy(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function z1(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var u=Zi(i.href),c=t.querySelector(dr(u));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Xu.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,Ot(c);return}c=t.ownerDocument||t,i=iy(i),(u=Mn.get(u))&&Vf(i,u),c=c.createElement("link"),Ot(c);var h=c;h._p=new Promise(function(v,C){h.onload=v,h.onerror=C}),Ut(c,"link",i),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Xu.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Kf=0;function k1(e,t){return e.stylesheets&&e.count===0&&$u(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&$u(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Kf===0&&(Kf=62500*h1());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&$u(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(u)}}:null}function Xu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)$u(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ku=null;function $u(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ku=new Map,t.forEach(D1,e),Ku=null,Xu.call(e))}function D1(e,t){if(!(t.state.loading&4)){var n=Ku.get(e);if(n)var i=n.get(null);else{n=new Map,Ku.set(e,n);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var h=u[c];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),i=h)}i&&n.set(null,i)}u=t.instance,h=u.getAttribute("data-precedence"),c=n.get(h)||i,c===i&&n.set(null,u),n.set(h,u),this.count++,i=Xu.bind(this),u.addEventListener("load",i),u.addEventListener("error",i),c?c.parentNode.insertBefore(u,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var mr={$$typeof:$,Provider:null,Consumer:null,_currentValue:Y,_currentValue2:Y,_threadCount:0};function _1(e,t,n,i,u,c,h,v,C){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=Bo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bo(0),this.hiddenUpdates=Bo(null),this.identifierPrefix=i,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function cy(e,t,n,i,u,c,h,v,C,H,P,te){return e=new _1(e,t,n,h,C,H,P,te,v),t=1,c===!0&&(t|=24),c=on(3,null,null,t),e.current=c,c.stateNode=e,t=wc(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:n,cache:t},Mc(c),e}function fy(e){return e?(e=Ci,e):Ci}function dy(e,t,n,i,u,c){u=fy(u),i.context===null?i.context=u:i.pendingContext=u,i=Ja(t),i.payload={element:n},c=c===void 0?null:c,c!==null&&(i.callback=c),n=Pa(e,i,t),n!==null&&(tn(n,e,t),Ks(n,e,t))}function hy(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function $f(e,t){hy(e,t),(e=e.alternate)&&hy(e,t)}function my(e){if(e.tag===13||e.tag===31){var t=kl(e,67108864);t!==null&&tn(t,e,67108864),$f(e,67108864)}}function py(e){if(e.tag===13||e.tag===31){var t=mn();t=Qo(t);var n=kl(e,t);n!==null&&tn(n,e,t),$f(e,t)}}var Zu=!0;function L1(e,t,n,i){var u=A.T;A.T=null;var c=X.p;try{X.p=2,Zf(e,t,n,i)}finally{X.p=c,A.T=u}}function U1(e,t,n,i){var u=A.T;A.T=null;var c=X.p;try{X.p=8,Zf(e,t,n,i)}finally{X.p=c,A.T=u}}function Zf(e,t,n,i){if(Zu){var u=Ff(i);if(u===null)Df(e,t,i,Fu,n),yy(e,i);else if(q1(u,e,t,n,i))i.stopPropagation();else if(yy(e,i),t&4&&-1<H1.indexOf(e)){for(;u!==null;){var c=pi(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=fa(c.pendingLanes);if(h!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;h;){var C=1<<31-wt(h);v.entanglements[1]|=C,h&=~C}ta(c),(Ge&6)===0&&(Ou=Mt()+500,ur(0))}}break;case 31:case 13:v=kl(c,2),v!==null&&tn(v,c,2),ku(),$f(c,2)}if(c=Ff(i),c===null&&Df(e,t,i,Fu,n),c===u)break;u=c}u!==null&&i.stopPropagation()}else Df(e,t,i,null,n)}}function Ff(e){return e=Jo(e),Jf(e)}var Fu=null;function Jf(e){if(Fu=null,e=mi(e),e!==null){var t=d(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=m(t),e!==null)return e;e=null}else if(n===31){if(e=y(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Fu=e,null}function gy(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(Es()){case Ae:return 2;case Ke:return 8;case Je:case rn:return 32;case ua:return 268435456;default:return 32}default:return 32}}var Pf=!1,ul=null,ol=null,cl=null,pr=new Map,gr=new Map,fl=[],H1="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 yy(e,t){switch(e){case"focusin":case"focusout":ul=null;break;case"dragenter":case"dragleave":ol=null;break;case"mouseover":case"mouseout":cl=null;break;case"pointerover":case"pointerout":pr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":gr.delete(t.pointerId)}}function yr(e,t,n,i,u,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:c,targetContainers:[u]},t!==null&&(t=pi(t),t!==null&&my(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function q1(e,t,n,i,u){switch(t){case"focusin":return ul=yr(ul,e,t,n,i,u),!0;case"dragenter":return ol=yr(ol,e,t,n,i,u),!0;case"mouseover":return cl=yr(cl,e,t,n,i,u),!0;case"pointerover":var c=u.pointerId;return pr.set(c,yr(pr.get(c)||null,e,t,n,i,u)),!0;case"gotpointercapture":return c=u.pointerId,gr.set(c,yr(gr.get(c)||null,e,t,n,i,u)),!0}return!1}function xy(e){var t=mi(e.target);if(t!==null){var n=d(t);if(n!==null){if(t=n.tag,t===13){if(t=m(n),t!==null){e.blockedOn=t,zh(e.priority,function(){py(n)});return}}else if(t===31){if(t=y(n),t!==null){e.blockedOn=t,zh(e.priority,function(){py(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ju(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ff(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);Fo=i,n.target.dispatchEvent(i),Fo=null}else return t=pi(n),t!==null&&my(t),e.blockedOn=n,!1;t.shift()}return!0}function vy(e,t,n){Ju(e)&&n.delete(t)}function B1(){Pf=!1,ul!==null&&Ju(ul)&&(ul=null),ol!==null&&Ju(ol)&&(ol=null),cl!==null&&Ju(cl)&&(cl=null),pr.forEach(vy),gr.forEach(vy)}function Pu(e,t){e.blockedOn===t&&(e.blockedOn=null,Pf||(Pf=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,B1)))}var Iu=null;function by(e){Iu!==e&&(Iu=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Iu===e&&(Iu=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],u=e[t+2];if(typeof i!="function"){if(Jf(i||n)===null)continue;break}var c=pi(n);c!==null&&(e.splice(t,3),t-=3,Zc(c,{pending:!0,data:u,method:n.method,action:i},i,u))}}))}function Ji(e){function t(C){return Pu(C,e)}ul!==null&&Pu(ul,e),ol!==null&&Pu(ol,e),cl!==null&&Pu(cl,e),pr.forEach(t),gr.forEach(t);for(var n=0;n<fl.length;n++){var i=fl[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<fl.length&&(n=fl[0],n.blockedOn===null);)xy(n),n.blockedOn===null&&fl.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var u=n[i],c=n[i+1],h=u[Ft]||null;if(typeof c=="function")h||by(n);else if(h){var v=null;if(c&&c.hasAttribute("formAction")){if(u=c,h=c[Ft]||null)v=h.formAction;else if(Jf(u)!==null)continue}else v=h.action;typeof v=="function"?n[i+1]=v:(n.splice(i,3),i-=3),by(n)}}}function Sy(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(h){return u=h})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function If(e){this._internalRoot=e}Wu.prototype.render=If.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var n=t.current,i=mn();dy(n,i,e,t,null,null)},Wu.prototype.unmount=If.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dy(e.current,2,null,e,null,null),ku(),t[hi]=null}};function Wu(e){this._internalRoot=e}Wu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Oh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<fl.length&&t!==0&&t<fl[n].priority;n++);fl.splice(n,0,e),n===0&&xy(e)}};var jy=l.version;if(jy!=="19.2.3")throw Error(o(527,jy,"19.2.3"));X.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=p(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var Q1={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var eo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!eo.isDisabled&&eo.supportsFiber)try{Jn=eo.inject(Q1),At=eo}catch{}}return vr.createRoot=function(e,t){if(!f(e))throw Error(o(299));var n=!1,i="",u=Ap,c=Rp,h=Op;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=cy(e,1,!1,null,null,n,i,null,u,c,h,Sy),e[hi]=t.current,kf(e),new If(t)},vr.hydrateRoot=function(e,t,n){if(!f(e))throw Error(o(299));var i=!1,u="",c=Ap,h=Rp,v=Op,C=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(C=n.formState)),t=cy(e,1,!0,t,n??null,i,u,C,c,h,v,Sy),t.context=fy(null),n=t.current,i=mn(),i=Qo(i),u=Ja(i),u.callback=null,Pa(n,u,i),n=i,t.current.lanes=n,Ms(t,n),ta(t),e[hi]=t.current,kf(e),new Wu(t)},vr.version="19.2.3",vr}var Yy;function D2(){if(Yy)return ad.exports;Yy=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(l){console.error(l)}}return a(),ad.exports=k2(),ad.exports}var _2=D2(),br={},Gy;function L2(){if(Gy)return br;Gy=1,Object.defineProperty(br,"__esModule",{value:!0}),br.parse=m,br.serialize=p;const a=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,l=/^[\u0021-\u003A\u003C-\u007E]*$/,s=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,o=/^[\u0020-\u003A\u003D-\u007E]*$/,f=Object.prototype.toString,d=(()=>{const S=function(){};return S.prototype=Object.create(null),S})();function m(S,w){const E=new d,M=S.length;if(M<2)return E;const O=(w==null?void 0:w.decode)||b;let z=0;do{const D=S.indexOf("=",z);if(D===-1)break;const $=S.indexOf(";",z),_=$===-1?M:$;if(D>_){z=S.lastIndexOf(";",D-1)+1;continue}const V=y(S,z,D),ae=g(S,D,V),Z=S.slice(V,ae);if(E[Z]===void 0){let q=y(S,D+1,_),J=g(S,_,q);const Q=O(S.slice(q,J));E[Z]=Q}z=_+1}while(z<M);return E}function y(S,w,E){do{const M=S.charCodeAt(w);if(M!==32&&M!==9)return w}while(++w<E);return E}function g(S,w,E){for(;w>E;){const M=S.charCodeAt(--w);if(M!==32&&M!==9)return w+1}return E}function p(S,w,E){const M=(E==null?void 0:E.encode)||encodeURIComponent;if(!a.test(S))throw new TypeError(`argument name is invalid: ${S}`);const O=M(w);if(!l.test(O))throw new TypeError(`argument val is invalid: ${w}`);let z=S+"="+O;if(!E)return z;if(E.maxAge!==void 0){if(!Number.isInteger(E.maxAge))throw new TypeError(`option maxAge is invalid: ${E.maxAge}`);z+="; Max-Age="+E.maxAge}if(E.domain){if(!s.test(E.domain))throw new TypeError(`option domain is invalid: ${E.domain}`);z+="; Domain="+E.domain}if(E.path){if(!o.test(E.path))throw new TypeError(`option path is invalid: ${E.path}`);z+="; Path="+E.path}if(E.expires){if(!j(E.expires)||!Number.isFinite(E.expires.valueOf()))throw new TypeError(`option expires is invalid: ${E.expires}`);z+="; Expires="+E.expires.toUTCString()}if(E.httpOnly&&(z+="; HttpOnly"),E.secure&&(z+="; Secure"),E.partitioned&&(z+="; Partitioned"),E.priority)switch(typeof E.priority=="string"?E.priority.toLowerCase():void 0){case"low":z+="; Priority=Low";break;case"medium":z+="; Priority=Medium";break;case"high":z+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${E.priority}`)}if(E.sameSite)switch(typeof E.sameSite=="string"?E.sameSite.toLowerCase():E.sameSite){case!0:case"strict":z+="; SameSite=Strict";break;case"lax":z+="; SameSite=Lax";break;case"none":z+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${E.sameSite}`)}return z}function b(S){if(S.indexOf("%")===-1)return S;try{return decodeURIComponent(S)}catch{return S}}function j(S){return f.call(S)==="[object Date]"}return br}L2();var Vy="popstate";function U2(a={}){function l(f,d){let{pathname:m="/",search:y="",hash:g=""}=li(f.location.hash.substring(1));return!m.startsWith("/")&&!m.startsWith(".")&&(m="/"+m),Od("",{pathname:m,search:y,hash:g},d.state&&d.state.usr||null,d.state&&d.state.key||"default")}function s(f,d){let m=f.document.querySelector("base"),y="";if(m&&m.getAttribute("href")){let g=f.location.href,p=g.indexOf("#");y=p===-1?g:g.slice(0,p)}return y+"#"+(typeof d=="string"?d:zr(d))}function o(f,d){On(f.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(d)})`)}return q2(l,s,o,a)}function rt(a,l){if(a===!1||a===null||typeof a>"u")throw new Error(l)}function On(a,l){if(!a){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function H2(){return Math.random().toString(36).substring(2,10)}function Xy(a,l){return{usr:a.state,key:a.key,idx:l}}function Od(a,l,s=null,o){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof l=="string"?li(l):l,state:s,key:l&&l.key||o||H2()}}function zr({pathname:a="/",search:l="",hash:s=""}){return l&&l!=="?"&&(a+=l.charAt(0)==="?"?l:"?"+l),s&&s!=="#"&&(a+=s.charAt(0)==="#"?s:"#"+s),a}function li(a){let l={};if(a){let s=a.indexOf("#");s>=0&&(l.hash=a.substring(s),a=a.substring(0,s));let o=a.indexOf("?");o>=0&&(l.search=a.substring(o),a=a.substring(0,o)),a&&(l.pathname=a)}return l}function q2(a,l,s,o={}){let{window:f=document.defaultView,v5Compat:d=!1}=o,m=f.history,y="POP",g=null,p=b();p==null&&(p=0,m.replaceState({...m.state,idx:p},""));function b(){return(m.state||{idx:null}).idx}function j(){y="POP";let O=b(),z=O==null?null:O-p;p=O,g&&g({action:y,location:M.location,delta:z})}function S(O,z){y="PUSH";let D=Od(M.location,O,z);s&&s(D,O),p=b()+1;let $=Xy(D,p),_=M.createHref(D);try{m.pushState($,"",_)}catch(V){if(V instanceof DOMException&&V.name==="DataCloneError")throw V;f.location.assign(_)}d&&g&&g({action:y,location:M.location,delta:1})}function w(O,z){y="REPLACE";let D=Od(M.location,O,z);s&&s(D,O),p=b();let $=Xy(D,p),_=M.createHref(D);m.replaceState($,"",_),d&&g&&g({action:y,location:M.location,delta:0})}function E(O){return B2(O)}let M={get action(){return y},get location(){return a(f,m)},listen(O){if(g)throw new Error("A history only accepts one active listener");return f.addEventListener(Vy,j),g=O,()=>{f.removeEventListener(Vy,j),g=null}},createHref(O){return l(f,O)},createURL:E,encodeLocation(O){let z=E(O);return{pathname:z.pathname,search:z.search,hash:z.hash}},push:S,replace:w,go(O){return m.go(O)}};return M}function B2(a,l=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),rt(s,"No window.location.(origin|href) available to create URL");let o=typeof a=="string"?a:zr(a);return o=o.replace(/ $/,"%20"),!l&&o.startsWith("//")&&(o=s+o),new URL(o,s)}function J0(a,l,s="/"){return Q2(a,l,s,!1)}function Q2(a,l,s,o){let f=typeof l=="string"?li(l):l,d=Ua(f.pathname||"/",s);if(d==null)return null;let m=P0(a);Y2(m);let y=null;for(let g=0;y==null&&g<m.length;++g){let p=W2(d);y=P2(m[g],p,o)}return y}function P0(a,l=[],s=[],o=""){let f=(d,m,y)=>{let g={relativePath:y===void 0?d.path||"":y,caseSensitive:d.caseSensitive===!0,childrenIndex:m,route:d};g.relativePath.startsWith("/")&&(rt(g.relativePath.startsWith(o),`Absolute route path "${g.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(o.length));let p=_a([o,g.relativePath]),b=s.concat(g);d.children&&d.children.length>0&&(rt(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),P0(d.children,l,b,p)),!(d.path==null&&!d.index)&&l.push({path:p,score:F2(p,d.index),routesMeta:b})};return a.forEach((d,m)=>{var y;if(d.path===""||!((y=d.path)!=null&&y.includes("?")))f(d,m);else for(let g of I0(d.path))f(d,m,g)}),l}function I0(a){let l=a.split("/");if(l.length===0)return[];let[s,...o]=l,f=s.endsWith("?"),d=s.replace(/\?$/,"");if(o.length===0)return f?[d,""]:[d];let m=I0(o.join("/")),y=[];return y.push(...m.map(g=>g===""?d:[d,g].join("/"))),f&&y.push(...m),y.map(g=>a.startsWith("/")&&g===""?"/":g)}function Y2(a){a.sort((l,s)=>l.score!==s.score?s.score-l.score:J2(l.routesMeta.map(o=>o.childrenIndex),s.routesMeta.map(o=>o.childrenIndex)))}var G2=/^:[\w-]+$/,V2=3,X2=2,K2=1,$2=10,Z2=-2,Ky=a=>a==="*";function F2(a,l){let s=a.split("/"),o=s.length;return s.some(Ky)&&(o+=Z2),l&&(o+=X2),s.filter(f=>!Ky(f)).reduce((f,d)=>f+(G2.test(d)?V2:d===""?K2:$2),o)}function J2(a,l){return a.length===l.length&&a.slice(0,-1).every((o,f)=>o===l[f])?a[a.length-1]-l[l.length-1]:0}function P2(a,l,s=!1){let{routesMeta:o}=a,f={},d="/",m=[];for(let y=0;y<o.length;++y){let g=o[y],p=y===o.length-1,b=d==="/"?l:l.slice(d.length)||"/",j=No({path:g.relativePath,caseSensitive:g.caseSensitive,end:p},b),S=g.route;if(!j&&p&&s&&!o[o.length-1].route.index&&(j=No({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},b)),!j)return null;Object.assign(f,j.params),m.push({params:f,pathname:_a([d,j.pathname]),pathnameBase:aS(_a([d,j.pathnameBase])),route:S}),j.pathnameBase!=="/"&&(d=_a([d,j.pathnameBase]))}return m}function No(a,l){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[s,o]=I2(a.path,a.caseSensitive,a.end),f=l.match(s);if(!f)return null;let d=f[0],m=d.replace(/(.)\/+$/,"$1"),y=f.slice(1);return{params:o.reduce((p,{paramName:b,isOptional:j},S)=>{if(b==="*"){let E=y[S]||"";m=d.slice(0,d.length-E.length).replace(/(.)\/+$/,"$1")}const w=y[S];return j&&!w?p[b]=void 0:p[b]=(w||"").replace(/%2F/g,"/"),p},{}),pathname:d,pathnameBase:m,pattern:a}}function I2(a,l=!1,s=!0){On(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let o=[],f="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,y,g)=>(o.push({paramName:y,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)"));return a.endsWith("*")?(o.push({paramName:"*"}),f+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?f+="\\/*$":a!==""&&a!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,l?void 0:"i"),o]}function W2(a){try{return a.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return On(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),a}}function Ua(a,l){if(l==="/")return a;if(!a.toLowerCase().startsWith(l.toLowerCase()))return null;let s=l.endsWith("/")?l.length-1:l.length,o=a.charAt(s);return o&&o!=="/"?null:a.slice(s)||"/"}function eS(a,l="/"){let{pathname:s,search:o="",hash:f=""}=typeof a=="string"?li(a):a;return{pathname:s?s.startsWith("/")?s:tS(s,l):l,search:lS(o),hash:iS(f)}}function tS(a,l){let s=l.replace(/\/+$/,"").split("/");return a.split("/").forEach(f=>{f===".."?s.length>1&&s.pop():f!=="."&&s.push(f)}),s.length>1?s.join("/"):"/"}function rd(a,l,s,o){return`Cannot include a '${a}' character in a manually specified \`to.${l}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function nS(a){return a.filter((l,s)=>s===0||l.route.path&&l.route.path.length>0)}function Wd(a){let l=nS(a);return l.map((s,o)=>o===l.length-1?s.pathname:s.pathnameBase)}function eh(a,l,s,o=!1){let f;typeof a=="string"?f=li(a):(f={...a},rt(!f.pathname||!f.pathname.includes("?"),rd("?","pathname","search",f)),rt(!f.pathname||!f.pathname.includes("#"),rd("#","pathname","hash",f)),rt(!f.search||!f.search.includes("#"),rd("#","search","hash",f)));let d=a===""||f.pathname==="",m=d?"/":f.pathname,y;if(m==null)y=s;else{let j=l.length-1;if(!o&&m.startsWith("..")){let S=m.split("/");for(;S[0]==="..";)S.shift(),j-=1;f.pathname=S.join("/")}y=j>=0?l[j]:"/"}let g=eS(f,y),p=m&&m!=="/"&&m.endsWith("/"),b=(d||m===".")&&s.endsWith("/");return!g.pathname.endsWith("/")&&(p||b)&&(g.pathname+="/"),g}var _a=a=>a.join("/").replace(/\/\/+/g,"/"),aS=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),lS=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,iS=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a;function sS(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}var W0=["POST","PUT","PATCH","DELETE"];new Set(W0);var rS=["GET",...W0];new Set(rS);var xs=x.createContext(null);xs.displayName="DataRouter";var Ro=x.createContext(null);Ro.displayName="DataRouterState";var ex=x.createContext({isTransitioning:!1});ex.displayName="ViewTransition";var uS=x.createContext(new Map);uS.displayName="Fetchers";var oS=x.createContext(null);oS.displayName="Await";var Xn=x.createContext(null);Xn.displayName="Navigation";var Hr=x.createContext(null);Hr.displayName="Location";var Kn=x.createContext({outlet:null,matches:[],isDataRoute:!1});Kn.displayName="Route";var th=x.createContext(null);th.displayName="RouteError";function cS(a,{relative:l}={}){rt(vs(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:o}=x.useContext(Xn),{hash:f,pathname:d,search:m}=qr(a,{relative:l}),y=d;return s!=="/"&&(y=d==="/"?s:_a([s,d])),o.createHref({pathname:y,search:m,hash:f})}function vs(){return x.useContext(Hr)!=null}function Ha(){return rt(vs(),"useLocation() may be used only in the context of a <Router> component."),x.useContext(Hr).location}var tx="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function nx(a){x.useContext(Xn).static||x.useLayoutEffect(a)}function ax(){let{isDataRoute:a}=x.useContext(Kn);return a?NS():fS()}function fS(){rt(vs(),"useNavigate() may be used only in the context of a <Router> component.");let a=x.useContext(xs),{basename:l,navigator:s}=x.useContext(Xn),{matches:o}=x.useContext(Kn),{pathname:f}=Ha(),d=JSON.stringify(Wd(o)),m=x.useRef(!1);return nx(()=>{m.current=!0}),x.useCallback((g,p={})=>{if(On(m.current,tx),!m.current)return;if(typeof g=="number"){s.go(g);return}let b=eh(g,JSON.parse(d),f,p.relative==="path");a==null&&l!=="/"&&(b.pathname=b.pathname==="/"?l:_a([l,b.pathname])),(p.replace?s.replace:s.push)(b,p.state,p)},[l,s,d,f,a])}x.createContext(null);function qa(){let{matches:a}=x.useContext(Kn),l=a[a.length-1];return l?l.params:{}}function qr(a,{relative:l}={}){let{matches:s}=x.useContext(Kn),{pathname:o}=Ha(),f=JSON.stringify(Wd(s));return x.useMemo(()=>eh(a,JSON.parse(f),o,l==="path"),[a,f,o,l])}function dS(a,l){return lx(a,l)}function lx(a,l,s,o){var z;rt(vs(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=x.useContext(Xn),{matches:d}=x.useContext(Kn),m=d[d.length-1],y=m?m.params:{},g=m?m.pathname:"/",p=m?m.pathnameBase:"/",b=m&&m.route;{let D=b&&b.path||"";ix(g,!b||D.endsWith("*")||D.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${D}">) 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="${D}"> to <Route path="${D==="/"?"*":`${D}/*`}">.`)}let j=Ha(),S;if(l){let D=typeof l=="string"?li(l):l;rt(p==="/"||((z=D.pathname)==null?void 0:z.startsWith(p)),`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 "${p}" but pathname "${D.pathname}" was given in the \`location\` prop.`),S=D}else S=j;let w=S.pathname||"/",E=w;if(p!=="/"){let D=p.replace(/^\//,"").split("/");E="/"+w.replace(/^\//,"").split("/").slice(D.length).join("/")}let M=J0(a,{pathname:E});On(b||M!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),On(M==null||M[M.length-1].route.element!==void 0||M[M.length-1].route.Component!==void 0||M[M.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.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 O=yS(M&&M.map(D=>Object.assign({},D,{params:Object.assign({},y,D.params),pathname:_a([p,f.encodeLocation?f.encodeLocation(D.pathname).pathname:D.pathname]),pathnameBase:D.pathnameBase==="/"?p:_a([p,f.encodeLocation?f.encodeLocation(D.pathnameBase).pathname:D.pathnameBase])})),d,s,o);return l&&O?x.createElement(Hr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...S},navigationType:"POP"}},O):O}function hS(){let a=jS(),l=sS(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),s=a instanceof Error?a.stack:null,o="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:o},d={padding:"2px 4px",backgroundColor:o},m=null;return console.error("Error handled by React Router default ErrorBoundary:",a),m=x.createElement(x.Fragment,null,x.createElement("p",null,"💿 Hey developer 👋"),x.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",x.createElement("code",{style:d},"ErrorBoundary")," or"," ",x.createElement("code",{style:d},"errorElement")," prop on your route.")),x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},l),s?x.createElement("pre",{style:f},s):null,m)}var mS=x.createElement(hS,null),pS=class extends x.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,l){return l.location!==a.location||l.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:l.error,location:l.location,revalidation:a.revalidation||l.revalidation}}componentDidCatch(a,l){console.error("React Router caught the following error during render",a,l)}render(){return this.state.error!==void 0?x.createElement(Kn.Provider,{value:this.props.routeContext},x.createElement(th.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function gS({routeContext:a,match:l,children:s}){let o=x.useContext(xs);return o&&o.static&&o.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=l.route.id),x.createElement(Kn.Provider,{value:a},s)}function yS(a,l=[],s=null,o=null){if(a==null){if(!s)return null;if(s.errors)a=s.matches;else if(l.length===0&&!s.initialized&&s.matches.length>0)a=s.matches;else return null}let f=a,d=s==null?void 0:s.errors;if(d!=null){let g=f.findIndex(p=>p.route.id&&(d==null?void 0:d[p.route.id])!==void 0);rt(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),f=f.slice(0,Math.min(f.length,g+1))}let m=!1,y=-1;if(s)for(let g=0;g<f.length;g++){let p=f[g];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(y=g),p.route.id){let{loaderData:b,errors:j}=s,S=p.route.loader&&!b.hasOwnProperty(p.route.id)&&(!j||j[p.route.id]===void 0);if(p.route.lazy||S){m=!0,y>=0?f=f.slice(0,y+1):f=[f[0]];break}}}return f.reduceRight((g,p,b)=>{let j,S=!1,w=null,E=null;s&&(j=d&&p.route.id?d[p.route.id]:void 0,w=p.route.errorElement||mS,m&&(y<0&&b===0?(ix("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,E=null):y===b&&(S=!0,E=p.route.hydrateFallbackElement||null)));let M=l.concat(f.slice(0,b+1)),O=()=>{let z;return j?z=w:S?z=E:p.route.Component?z=x.createElement(p.route.Component,null):p.route.element?z=p.route.element:z=g,x.createElement(gS,{match:p,routeContext:{outlet:g,matches:M,isDataRoute:s!=null},children:z})};return s&&(p.route.ErrorBoundary||p.route.errorElement||b===0)?x.createElement(pS,{location:s.location,revalidation:s.revalidation,component:w,error:j,children:O(),routeContext:{outlet:null,matches:M,isDataRoute:!0}}):O()},null)}function nh(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function xS(a){let l=x.useContext(xs);return rt(l,nh(a)),l}function vS(a){let l=x.useContext(Ro);return rt(l,nh(a)),l}function bS(a){let l=x.useContext(Kn);return rt(l,nh(a)),l}function ah(a){let l=bS(a),s=l.matches[l.matches.length-1];return rt(s.route.id,`${a} can only be used on routes that contain a unique "id"`),s.route.id}function SS(){return ah("useRouteId")}function jS(){var o;let a=x.useContext(th),l=vS("useRouteError"),s=ah("useRouteError");return a!==void 0?a:(o=l.errors)==null?void 0:o[s]}function NS(){let{router:a}=xS("useNavigate"),l=ah("useNavigate"),s=x.useRef(!1);return nx(()=>{s.current=!0}),x.useCallback(async(f,d={})=>{On(s.current,tx),s.current&&(typeof f=="number"?a.navigate(f):await a.navigate(f,{fromRouteId:l,...d}))},[a,l])}var $y={};function ix(a,l,s){!l&&!$y[a]&&($y[a]=!0,On(!1,s))}x.memo(wS);function wS({routes:a,future:l,state:s}){return lx(a,void 0,s,l)}function na({to:a,replace:l,state:s,relative:o}){rt(vs(),"<Navigate> may be used only in the context of a <Router> component.");let{static:f}=x.useContext(Xn);On(!f,"<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:d}=x.useContext(Kn),{pathname:m}=Ha(),y=ax(),g=eh(a,Wd(d),m,o==="path"),p=JSON.stringify(g);return x.useEffect(()=>{y(JSON.parse(p),{replace:l,state:s,relative:o})},[y,p,o,l,s]),null}function nn(a){rt(!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 ES({basename:a="/",children:l=null,location:s,navigationType:o="POP",navigator:f,static:d=!1}){rt(!vs(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=a.replace(/^\/*/,"/"),y=x.useMemo(()=>({basename:m,navigator:f,static:d,future:{}}),[m,f,d]);typeof s=="string"&&(s=li(s));let{pathname:g="/",search:p="",hash:b="",state:j=null,key:S="default"}=s,w=x.useMemo(()=>{let E=Ua(g,m);return E==null?null:{location:{pathname:E,search:p,hash:b,state:j,key:S},navigationType:o}},[m,g,p,b,j,S,o]);return On(w!=null,`<Router basename="${m}"> is not able to match the URL "${g}${p}${b}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:x.createElement(Xn.Provider,{value:y},x.createElement(Hr.Provider,{children:l,value:w}))}function CS({children:a,location:l}){return dS(zd(a),l)}function zd(a,l=[]){let s=[];return x.Children.forEach(a,(o,f)=>{if(!x.isValidElement(o))return;let d=[...l,f];if(o.type===x.Fragment){s.push.apply(s,zd(o.props.children,d));return}rt(o.type===nn,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),rt(!o.props.index||!o.props.children,"An index route cannot have child routes.");let m={id:o.props.id||d.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(m.children=zd(o.props.children,d)),s.push(m)}),s}var yo="get",xo="application/x-www-form-urlencoded";function Oo(a){return a!=null&&typeof a.tagName=="string"}function TS(a){return Oo(a)&&a.tagName.toLowerCase()==="button"}function MS(a){return Oo(a)&&a.tagName.toLowerCase()==="form"}function AS(a){return Oo(a)&&a.tagName.toLowerCase()==="input"}function RS(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function OS(a,l){return a.button===0&&(!l||l==="_self")&&!RS(a)}var ao=null;function zS(){if(ao===null)try{new FormData(document.createElement("form"),0),ao=!1}catch{ao=!0}return ao}var kS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ud(a){return a!=null&&!kS.has(a)?(On(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${xo}"`),null):a}function DS(a,l){let s,o,f,d,m;if(MS(a)){let y=a.getAttribute("action");o=y?Ua(y,l):null,s=a.getAttribute("method")||yo,f=ud(a.getAttribute("enctype"))||xo,d=new FormData(a)}else if(TS(a)||AS(a)&&(a.type==="submit"||a.type==="image")){let y=a.form;if(y==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=a.getAttribute("formaction")||y.getAttribute("action");if(o=g?Ua(g,l):null,s=a.getAttribute("formmethod")||y.getAttribute("method")||yo,f=ud(a.getAttribute("formenctype"))||ud(y.getAttribute("enctype"))||xo,d=new FormData(y,a),!zS()){let{name:p,type:b,value:j}=a;if(b==="image"){let S=p?`${p}.`:"";d.append(`${S}x`,"0"),d.append(`${S}y`,"0")}else p&&d.append(p,j)}}else{if(Oo(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=yo,o=null,f=xo,m=a}return d&&f==="text/plain"&&(m=d,d=void 0),{action:o,method:s.toLowerCase(),encType:f,formData:d,body:m}}function lh(a,l){if(a===!1||a===null||typeof a>"u")throw new Error(l)}async function _S(a,l){if(a.id in l)return l[a.id];try{let s=await import(a.module);return l[a.id]=s,s}catch(s){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function LS(a){return a==null?!1:a.href==null?a.rel==="preload"&&typeof a.imageSrcSet=="string"&&typeof a.imageSizes=="string":typeof a.rel=="string"&&typeof a.href=="string"}async function US(a,l,s){let o=await Promise.all(a.map(async f=>{let d=l.routes[f.route.id];if(d){let m=await _S(d,s);return m.links?m.links():[]}return[]}));return QS(o.flat(1).filter(LS).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function Zy(a,l,s,o,f,d){let m=(g,p)=>s[p]?g.route.id!==s[p].route.id:!0,y=(g,p)=>{var b;return s[p].pathname!==g.pathname||((b=s[p].route.path)==null?void 0:b.endsWith("*"))&&s[p].params["*"]!==g.params["*"]};return d==="assets"?l.filter((g,p)=>m(g,p)||y(g,p)):d==="data"?l.filter((g,p)=>{var j;let b=o.routes[g.route.id];if(!b||!b.hasLoader)return!1;if(m(g,p)||y(g,p))return!0;if(g.route.shouldRevalidate){let S=g.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:((j=s[0])==null?void 0:j.params)||{},nextUrl:new URL(a,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof S=="boolean")return S}return!0}):[]}function HS(a,l,{includeHydrateFallback:s}={}){return qS(a.map(o=>{let f=l.routes[o.route.id];if(!f)return[];let d=[f.module];return f.clientActionModule&&(d=d.concat(f.clientActionModule)),f.clientLoaderModule&&(d=d.concat(f.clientLoaderModule)),s&&f.hydrateFallbackModule&&(d=d.concat(f.hydrateFallbackModule)),f.imports&&(d=d.concat(f.imports)),d}).flat(1))}function qS(a){return[...new Set(a)]}function BS(a){let l={},s=Object.keys(a).sort();for(let o of s)l[o]=a[o];return l}function QS(a,l){let s=new Set;return new Set(l),a.reduce((o,f)=>{let d=JSON.stringify(BS(f));return s.has(d)||(s.add(d),o.push({key:d,link:f})),o},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var YS=new Set([100,101,204,205]);function GS(a,l){let s=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return s.pathname==="/"?s.pathname="_root.data":l&&Ua(s.pathname,l)==="/"?s.pathname=`${l.replace(/\/$/,"")}/_root.data`:s.pathname=`${s.pathname.replace(/\/$/,"")}.data`,s}function sx(){let a=x.useContext(xs);return lh(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function VS(){let a=x.useContext(Ro);return lh(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var ih=x.createContext(void 0);ih.displayName="FrameworkContext";function rx(){let a=x.useContext(ih);return lh(a,"You must render this element inside a <HydratedRouter> element"),a}function XS(a,l){let s=x.useContext(ih),[o,f]=x.useState(!1),[d,m]=x.useState(!1),{onFocus:y,onBlur:g,onMouseEnter:p,onMouseLeave:b,onTouchStart:j}=l,S=x.useRef(null);x.useEffect(()=>{if(a==="render"&&m(!0),a==="viewport"){let M=z=>{z.forEach(D=>{m(D.isIntersecting)})},O=new IntersectionObserver(M,{threshold:.5});return S.current&&O.observe(S.current),()=>{O.disconnect()}}},[a]),x.useEffect(()=>{if(o){let M=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(M)}}},[o]);let w=()=>{f(!0)},E=()=>{f(!1),m(!1)};return s?a!=="intent"?[d,S,{}]:[d,S,{onFocus:Sr(y,w),onBlur:Sr(g,E),onMouseEnter:Sr(p,w),onMouseLeave:Sr(b,E),onTouchStart:Sr(j,w)}]:[!1,S,{}]}function Sr(a,l){return s=>{a&&a(s),s.defaultPrevented||l(s)}}function KS({page:a,...l}){let{router:s}=sx(),o=x.useMemo(()=>J0(s.routes,a,s.basename),[s.routes,a,s.basename]);return o?x.createElement(ZS,{page:a,matches:o,...l}):null}function $S(a){let{manifest:l,routeModules:s}=rx(),[o,f]=x.useState([]);return x.useEffect(()=>{let d=!1;return US(a,l,s).then(m=>{d||f(m)}),()=>{d=!0}},[a,l,s]),o}function ZS({page:a,matches:l,...s}){let o=Ha(),{manifest:f,routeModules:d}=rx(),{basename:m}=sx(),{loaderData:y,matches:g}=VS(),p=x.useMemo(()=>Zy(a,l,g,f,o,"data"),[a,l,g,f,o]),b=x.useMemo(()=>Zy(a,l,g,f,o,"assets"),[a,l,g,f,o]),j=x.useMemo(()=>{if(a===o.pathname+o.search+o.hash)return[];let E=new Set,M=!1;if(l.forEach(z=>{var $;let D=f.routes[z.route.id];!D||!D.hasLoader||(!p.some(_=>_.route.id===z.route.id)&&z.route.id in y&&(($=d[z.route.id])!=null&&$.shouldRevalidate)||D.hasClientLoader?M=!0:E.add(z.route.id))}),E.size===0)return[];let O=GS(a,m);return M&&E.size>0&&O.searchParams.set("_routes",l.filter(z=>E.has(z.route.id)).map(z=>z.route.id).join(",")),[O.pathname+O.search]},[m,y,o,f,p,l,a,d]),S=x.useMemo(()=>HS(b,f),[b,f]),w=$S(b);return x.createElement(x.Fragment,null,j.map(E=>x.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...s})),S.map(E=>x.createElement("link",{key:E,rel:"modulepreload",href:E,...s})),w.map(({key:E,link:M})=>x.createElement("link",{key:E,...M})))}function FS(...a){return l=>{a.forEach(s=>{typeof s=="function"?s(l):s!=null&&(s.current=l)})}}var ux=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{ux&&(window.__reactRouterVersion="7.6.1")}catch{}function JS({basename:a,children:l,window:s}){let o=x.useRef();o.current==null&&(o.current=U2({window:s,v5Compat:!0}));let f=o.current,[d,m]=x.useState({action:f.action,location:f.location}),y=x.useCallback(g=>{x.startTransition(()=>m(g))},[m]);return x.useLayoutEffect(()=>f.listen(y),[f,y]),x.createElement(ES,{basename:a,children:l,location:d.location,navigationType:d.action,navigator:f})}var ox=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Gt=x.forwardRef(function({onClick:l,discover:s="render",prefetch:o="none",relative:f,reloadDocument:d,replace:m,state:y,target:g,to:p,preventScrollReset:b,viewTransition:j,...S},w){let{basename:E}=x.useContext(Xn),M=typeof p=="string"&&ox.test(p),O,z=!1;if(typeof p=="string"&&M&&(O=p,ux))try{let J=new URL(window.location.href),Q=p.startsWith("//")?new URL(J.protocol+p):new URL(p),se=Ua(Q.pathname,E);Q.origin===J.origin&&se!=null?p=se+Q.search+Q.hash:z=!0}catch{On(!1,`<Link to="${p}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let D=cS(p,{relative:f}),[$,_,V]=XS(o,S),ae=ej(p,{replace:m,state:y,target:g,preventScrollReset:b,relative:f,viewTransition:j});function Z(J){l&&l(J),J.defaultPrevented||ae(J)}let q=x.createElement("a",{...S,...V,href:O||D,onClick:z||d?l:Z,ref:FS(w,_),target:g,"data-discover":!M&&s==="render"?"true":void 0});return $&&!M?x.createElement(x.Fragment,null,q,x.createElement(KS,{page:D})):q});Gt.displayName="Link";var PS=x.forwardRef(function({"aria-current":l="page",caseSensitive:s=!1,className:o="",end:f=!1,style:d,to:m,viewTransition:y,children:g,...p},b){let j=qr(m,{relative:p.relative}),S=Ha(),w=x.useContext(Ro),{navigator:E,basename:M}=x.useContext(Xn),O=w!=null&&ij(j)&&y===!0,z=E.encodeLocation?E.encodeLocation(j).pathname:j.pathname,D=S.pathname,$=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;s||(D=D.toLowerCase(),$=$?$.toLowerCase():null,z=z.toLowerCase()),$&&M&&($=Ua($,M)||$);const _=z!=="/"&&z.endsWith("/")?z.length-1:z.length;let V=D===z||!f&&D.startsWith(z)&&D.charAt(_)==="/",ae=$!=null&&($===z||!f&&$.startsWith(z)&&$.charAt(z.length)==="/"),Z={isActive:V,isPending:ae,isTransitioning:O},q=V?l:void 0,J;typeof o=="function"?J=o(Z):J=[o,V?"active":null,ae?"pending":null,O?"transitioning":null].filter(Boolean).join(" ");let Q=typeof d=="function"?d(Z):d;return x.createElement(Gt,{...p,"aria-current":q,className:J,ref:b,style:Q,to:m,viewTransition:y},typeof g=="function"?g(Z):g)});PS.displayName="NavLink";var IS=x.forwardRef(({discover:a="render",fetcherKey:l,navigate:s,reloadDocument:o,replace:f,state:d,method:m=yo,action:y,onSubmit:g,relative:p,preventScrollReset:b,viewTransition:j,...S},w)=>{let E=aj(),M=lj(y,{relative:p}),O=m.toLowerCase()==="get"?"get":"post",z=typeof y=="string"&&ox.test(y),D=$=>{if(g&&g($),$.defaultPrevented)return;$.preventDefault();let _=$.nativeEvent.submitter,V=(_==null?void 0:_.getAttribute("formmethod"))||m;E(_||$.currentTarget,{fetcherKey:l,method:V,navigate:s,replace:f,state:d,relative:p,preventScrollReset:b,viewTransition:j})};return x.createElement("form",{ref:w,method:O,action:M,onSubmit:o?g:D,...S,"data-discover":!z&&a==="render"?"true":void 0})});IS.displayName="Form";function WS(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function cx(a){let l=x.useContext(xs);return rt(l,WS(a)),l}function ej(a,{target:l,replace:s,state:o,preventScrollReset:f,relative:d,viewTransition:m}={}){let y=ax(),g=Ha(),p=qr(a,{relative:d});return x.useCallback(b=>{if(OS(b,l)){b.preventDefault();let j=s!==void 0?s:zr(g)===zr(p);y(a,{replace:j,state:o,preventScrollReset:f,relative:d,viewTransition:m})}},[g,y,p,s,o,l,a,f,d,m])}var tj=0,nj=()=>`__${String(++tj)}__`;function aj(){let{router:a}=cx("useSubmit"),{basename:l}=x.useContext(Xn),s=SS();return x.useCallback(async(o,f={})=>{let{action:d,method:m,encType:y,formData:g,body:p}=DS(o,l);if(f.navigate===!1){let b=f.fetcherKey||nj();await a.fetch(b,s,f.action||d,{preventScrollReset:f.preventScrollReset,formData:g,body:p,formMethod:f.method||m,formEncType:f.encType||y,flushSync:f.flushSync})}else await a.navigate(f.action||d,{preventScrollReset:f.preventScrollReset,formData:g,body:p,formMethod:f.method||m,formEncType:f.encType||y,replace:f.replace,state:f.state,fromRouteId:s,flushSync:f.flushSync,viewTransition:f.viewTransition})},[a,l,s])}function lj(a,{relative:l}={}){let{basename:s}=x.useContext(Xn),o=x.useContext(Kn);rt(o,"useFormAction must be used inside a RouteContext");let[f]=o.matches.slice(-1),d={...qr(a||".",{relative:l})},m=Ha();if(a==null){d.search=m.search;let y=new URLSearchParams(d.search),g=y.getAll("index");if(g.some(b=>b==="")){y.delete("index"),g.filter(j=>j).forEach(j=>y.append("index",j));let b=y.toString();d.search=b?`?${b}`:""}}return(!a||a===".")&&f.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(d.pathname=d.pathname==="/"?s:_a([s,d.pathname])),zr(d)}function ij(a,l={}){let s=x.useContext(ex);rt(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=cx("useViewTransitionState"),f=qr(a,{relative:l.relative});if(!s.isTransitioning)return!1;let d=Ua(s.currentLocation.pathname,o)||s.currentLocation.pathname,m=Ua(s.nextLocation.pathname,o)||s.nextLocation.pathname;return No(f.pathname,m)!=null||No(f.pathname,d)!=null}[...YS];var sj=F0();/**
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 rj=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),uj=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,s,o)=>o?o.toUpperCase():s.toLowerCase()),Fy=a=>{const l=uj(a);return l.charAt(0).toUpperCase()+l.slice(1)},fx=(...a)=>a.filter((l,s,o)=>!!l&&l.trim()!==""&&o.indexOf(l)===s).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 oj={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 cj=x.forwardRef(({color:a="currentColor",size:l=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:f="",children:d,iconNode:m,...y},g)=>x.createElement("svg",{ref:g,...oj,width:l,height:l,stroke:a,strokeWidth:o?Number(s)*24/Number(l):s,className:fx("lucide",f),...y},[...m.map(([p,b])=>x.createElement(p,b)),...Array.isArray(d)?d:[d]]));/**
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 Oe=(a,l)=>{const s=x.forwardRef(({className:o,...f},d)=>x.createElement(cj,{ref:d,iconNode:l,className:fx(`lucide-${rj(Fy(a))}`,`lucide-${a}`,o),...f}));return s.displayName=Fy(a),s};/**
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 fj=[["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"}]],dx=Oe("activity",fj);/**
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 dj=[["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"}]],hj=Oe("archive",dj);/**
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 mj=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],pj=Oe("arrow-left",mj);/**
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 gj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]],yj=Oe("ban",gj);/**
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 xj=[["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"}]],vj=Oe("bell",xj);/**
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 bj=[["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"}]],hx=Oe("boxes",bj);/**
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 Sj=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mx=Oe("chevron-down",Sj);/**
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 jj=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Br=Oe("chevron-left",jj);/**
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 Nj=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ii=Oe("chevron-right",Nj);/**
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 wj=[["path",{d:"m7 20 5-5 5 5",key:"13a0gw"}],["path",{d:"m7 4 5 5 5-5",key:"1kwcof"}]],Ej=Oe("chevrons-down-up",wj);/**
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 Cj=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],Tj=Oe("chevrons-up-down",Cj);/**
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 Mj=[["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"}]],Aj=Oe("circle-alert",Mj);/**
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 Rj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Cl=Oe("circle-check",Rj);/**
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 Oj=[["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"}]],bs=Oe("circle-x",Oj);/**
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 zj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],si=Oe("clock",zj);/**
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 kj=[["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"}]],px=Oe("columns-3",kj);/**
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 Dj=[["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"}]],_j=Oe("database",Dj);/**
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 Lj=[["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"}]],Uj=Oe("folder-open",Lj);/**
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 Hj=[["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"}]],qj=Oe("git-branch",Hj);/**
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 Bj=[["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"}]],Qj=Oe("inbox",Bj);/**
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 Yj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],gx=Oe("info",Yj);/**
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 Gj=[["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"}]],yx=Oe("key",Gj);/**
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 Vj=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],zn=Oe("loader-circle",Vj);/**
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 Xj=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]],Kj=Oe("mail",Xj);/**
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 $j=[["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"}]],Zj=Oe("mail-warning",$j);/**
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 Fj=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],xx=Oe("moon",Fj);/**
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 Jj=[["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"}]],vx=Oe("pause",Jj);/**
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 Pj=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],sh=Oe("play",Pj);/**
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 Ij=[["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"}]],Qr=Oe("refresh-cw",Ij);/**
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 Wj=[["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"}]],eN=Oe("repeat",Wj);/**
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 tN=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],bx=Oe("search",tN);/**
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 nN=[["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"}]],aN=Oe("settings",nN);/**
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 lN=[["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"}]],iN=Oe("shield",lN);/**
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 sN=[["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"}]],rN=Oe("square-terminal",sN);/**
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 uN=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],oN=Oe("square",uN);/**
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 cN=[["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"}]],zo=Oe("table",cN);/**
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 fN=[["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"}]],dN=Oe("timer",fN);/**
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 hN=[["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"}]],Sx=Oe("trash-2",hN);/**
262
+ * @license lucide-react v0.488.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 mN=[["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"}]],pN=Oe("zap",mN),gN="";async function nt(a,l){const s=await fetch(`${gN}${a}`,{...l,headers:{"Content-Type":"application/json",...l==null?void 0:l.headers}});if(!s.ok){const o=await s.text();throw new Error(o||`Request failed: ${s.status}`)}return await s.json()}async function rh(){return await nt("/api/config")}async function yN(){return await nt("/api/sandboxes")}async function xN(a,l){return await nt(`/api/db/${a}/query`,{method:"POST",body:JSON.stringify({query:l})})}async function vN(a){return await nt(`/api/db/${a}/tables`)}async function bN(a,l,s,o){return await nt(`/api/db/${a}/tables/${l}?limit=${s}&offset=${o}`)}async function SN(a){return await nt(`/api/db/${a}/schema`)}async function jN(a,l=20,s=0,o=""){const f=new URLSearchParams({limit:String(l),offset:String(s)});return o&&f.set("search",o),await nt(`/api/state/${a}/entries?${f.toString()}`)}async function NN(a,l=20,s=0,o=""){const f=new URLSearchParams({limit:String(l),offset:String(s)});return o&&f.set("search",o),await nt(`/api/cache/${a}/entries?${f.toString()}`)}async function wN(a){return await nt(`/api/queue/${a}/metrics`)}async function EN(a,l=10){return await nt(`/api/queue/${a}/messages?limit=${l}`)}async function CN(a,l=20,s=0,o,f){const d=new URLSearchParams({limit:String(l),offset:String(s)});return o&&d.set("status",o),f&&d.set("since",f),await nt(`/api/workflow/${a}/executions?${d.toString()}`)}async function TN(a,l){return await nt(`/api/workflow/${a}/executions/${l}`)}async function MN(a,l=20,s=0){return await nt(`/api/timer/${a}/entries?limit=${l}&offset=${s}`)}async function AN(a){return await nt(`/api/timer/${a}/metrics`)}async function RN(a,l=20){return await nt(`/api/timer/${a}/executions?limit=${l}`)}async function ON(a,l=20){return await nt(`/api/cron/${a}/executions?limit=${l}`)}async function zN(a){return await nt(`/api/cron/${a}/trigger`,{method:"POST"})}async function kN(){return await nt("/api/auth/tables")}async function DN(a,l,s){return await nt(`/api/auth/tables/${a}?limit=${l}&offset=${s}`)}async function _N(){return await nt("/api/auth/schema")}async function LN(a){return await nt("/api/auth/query",{method:"POST",body:JSON.stringify({query:a})})}async function UN(){return await nt("/api/auth/settings")}async function HN(a){return await nt("/api/auth/settings",{method:"PATCH",body:JSON.stringify(a)})}async function qN(){return await nt("/api/auth/emails")}async function BN(a){return await nt(`/api/auth/emails/${encodeURIComponent(a)}`)}async function QN(){return await nt("/api/auth/emails",{method:"DELETE"})}async function YN(a,l=20,s=0){return await nt(`/api/fs/${a}/entries?limit=${l}&offset=${s}`)}function kd(a,l){if(a&&!l)return a;if(!a&&l)return l;if(a||l)return{...a,...l}}const uh={};function ko(a,l,s,o,f){if(!s&&!o&&!a)return wo(l);let d=wo(a);return l&&(d=vo(d,l)),s&&(d=vo(d,s)),o&&(d=vo(d,o)),d}function GN(a){if(a.length===0)return uh;if(a.length===1)return wo(a[0]);let l=wo(a[0]);for(let s=1;s<a.length;s+=1)l=vo(l,a[s]);return l}function wo(a){return oh(a)?{...Nx(a,uh)}:VN(a)}function vo(a,l){return oh(l)?Nx(l,a):XN(a,l)}function VN(a){const l={...a};for(const s in l){const o=l[s];jx(s,o)&&(l[s]=wx(o))}return l}function XN(a,l){if(!l)return a;for(const s in l){const o=l[s];switch(s){case"style":{a[s]=kd(a.style,o);break}case"className":{a[s]=Ex(a.className,o);break}default:jx(s,o)?a[s]=KN(a[s],o):a[s]=o}}return a}function jx(a,l){const s=a.charCodeAt(0),o=a.charCodeAt(1),f=a.charCodeAt(2);return s===111&&o===110&&f>=65&&f<=90&&(typeof l=="function"||typeof l>"u")}function oh(a){return typeof a=="function"}function Nx(a,l){return oh(a)?a(l):a??uh}function KN(a,l){return l?a?(...s)=>{const o=s[0];if(Cx(o)){const d=o;Eo(d);const m=l(...s);return d.baseUIHandlerPrevented||a==null||a(...s),m}const f=l(...s);return a==null||a(...s),f}:wx(l):a}function wx(a){return a&&((...l)=>{const s=l[0];return Cx(s)&&Eo(s),a(...l)})}function Eo(a){return a.preventBaseUIHandler=()=>{a.baseUIHandlerPrevented=!0},a}function Ex(a,l){return l?a?l+" "+a:l:a}function Cx(a){return a!=null&&typeof a=="object"&&"nativeEvent"in a}function $N(a,l){return function(o,...f){const d=new URL(a);return d.searchParams.set("code",o.toString()),f.forEach(m=>d.searchParams.append("args[]",m)),`${l} error #${o}; visit ${d} for the full message.`}}const Ba=$N("https://base-ui.com/production-error","Base UI"),Jy={};function sa(a,l){const s=x.useRef(Jy);return s.current===Jy&&(s.current=a(l)),s}function gs(a,l,s,o){const f=sa(Tx).current;return FN(f,a,l,s,o)&&Mx(f,[a,l,s,o]),f.callback}function ZN(a){const l=sa(Tx).current;return JN(l,a)&&Mx(l,a),l.callback}function Tx(){return{callback:null,cleanup:null,refs:[]}}function FN(a,l,s,o,f){return a.refs[0]!==l||a.refs[1]!==s||a.refs[2]!==o||a.refs[3]!==f}function JN(a,l){return a.refs.length!==l.length||a.refs.some((s,o)=>s!==l[o])}function Mx(a,l){if(a.refs=l,l.every(s=>s==null)){a.callback=null;return}a.callback=s=>{if(a.cleanup&&(a.cleanup(),a.cleanup=null),s!=null){const o=Array(l.length).fill(null);for(let f=0;f<l.length;f+=1){const d=l[f];if(d!=null)switch(typeof d){case"function":{const m=d(s);typeof m=="function"&&(o[f]=m);break}case"object":{d.current=s;break}}}a.cleanup=()=>{for(let f=0;f<l.length;f+=1){const d=l[f];if(d!=null)switch(typeof d){case"function":{const m=o[f];typeof m=="function"?m():d(null);break}case"object":{d.current=null;break}}}}}}}const PN=parseInt(x.version,10);function Ax(a){return PN>=a}function Py(a){if(!x.isValidElement(a))return null;const l=a,s=l.props;return(Ax(19)?s==null?void 0:s.ref:l.ref)??null}function Zt(){}const Co=Object.freeze([]),Da=Object.freeze({});function IN(a,l){const s={};for(const o in a){const f=a[o];if(l!=null&&l.hasOwnProperty(o)){const d=l[o](f);d!=null&&Object.assign(s,d);continue}f===!0?s[`data-${o.toLowerCase()}`]="":f&&(s[`data-${o.toLowerCase()}`]=f.toString())}return s}function WN(a,l){return typeof a=="function"?a(l):a}function Rx(a,l){return typeof a=="function"?a(l):a}function qt(a,l,s={}){const o=l.render,f=ew(l,s);if(s.enabled===!1)return null;const d=s.state??Da;return aw(a,o,f,d)}function ew(a,l={}){const{className:s,style:o,render:f}=a,{state:d=Da,ref:m,props:y,stateAttributesMapping:g,enabled:p=!0}=l,b=p?WN(s,d):void 0,j=p?Rx(o,d):void 0,S=p?IN(d,g):Da,w=p&&y?tw(y):void 0,E=p?kd(S,w)??{}:Da;return typeof document<"u"&&(p?Array.isArray(m)?E.ref=ZN([E.ref,Py(f),...m]):E.ref=gs(E.ref,Py(f),m):gs(null,null)),p?(b!==void 0&&(E.className=Ex(E.className,b)),j!==void 0&&(E.style=kd(E.style,j)),E):Da}function tw(a){return Array.isArray(a)?GN(a):ko(void 0,a)}const nw=Symbol.for("react.lazy");function aw(a,l,s,o){if(l){if(typeof l=="function")return l(s,o);const f=ko(s,l.props);f.ref=s.ref;let d=l;return(d==null?void 0:d.$$typeof)===nw&&(d=x.Children.toArray(l)[0]),x.cloneElement(d,f)}if(a&&typeof a=="string")return lw(a,s);throw new Error(Ba(8))}function lw(a,l){return a==="button"?x.createElement("button",{type:"button",...l,key:l.key}):a==="img"?x.createElement("img",{alt:"",...l,key:l.key}):x.createElement(a,l)}function iw(a){return qt(a.defaultTagName??"div",a,a)}function Ox(a){var l,s,o="";if(typeof a=="string"||typeof a=="number")o+=a;else if(typeof a=="object")if(Array.isArray(a))for(l=0;l<a.length;l++)a[l]&&(s=Ox(a[l]))&&(o&&(o+=" "),o+=s);else for(l in a)a[l]&&(o&&(o+=" "),o+=l);return o}function sw(){for(var a,l,s=0,o="";s<arguments.length;)(a=arguments[s++])&&(l=Ox(a))&&(o&&(o+=" "),o+=l);return o}const ch="-",rw=a=>{const l=ow(a),{conflictingClassGroups:s,conflictingClassGroupModifiers:o}=a;return{getClassGroupId:f=>{const d=f.split(ch);return d[0]===""&&d.length!==1&&d.shift(),zx(d,l)||uw(f)},getConflictingClassGroupIds:(f,d)=>{const m=s[f]||[];return d&&o[f]?[...m,...o[f]]:m}}},zx=(a,l)=>{var s;if(a.length===0)return l.classGroupId;const o=a[0],f=l.nextPart.get(o),d=f?zx(a.slice(1),f):void 0;if(d)return d;if(l.validators.length===0)return;const m=a.join(ch);return(s=l.validators.find(({validator:y})=>y(m)))==null?void 0:s.classGroupId},Iy=/^\[(.+)\]$/,uw=a=>{if(Iy.test(a)){const l=Iy.exec(a)[1],s=l==null?void 0:l.substring(0,l.indexOf(":"));if(s)return"arbitrary.."+s}},ow=a=>{const{theme:l,classGroups:s}=a,o={nextPart:new Map,validators:[]};for(const f in s)Dd(s[f],o,f,l);return o},Dd=(a,l,s,o)=>{a.forEach(f=>{if(typeof f=="string"){const d=f===""?l:Wy(l,f);d.classGroupId=s;return}if(typeof f=="function"){if(cw(f)){Dd(f(o),l,s,o);return}l.validators.push({validator:f,classGroupId:s});return}Object.entries(f).forEach(([d,m])=>{Dd(m,Wy(l,d),s,o)})})},Wy=(a,l)=>{let s=a;return l.split(ch).forEach(o=>{s.nextPart.has(o)||s.nextPart.set(o,{nextPart:new Map,validators:[]}),s=s.nextPart.get(o)}),s},cw=a=>a.isThemeGetter,fw=a=>{if(a<1)return{get:()=>{},set:()=>{}};let l=0,s=new Map,o=new Map;const f=(d,m)=>{s.set(d,m),l++,l>a&&(l=0,o=s,s=new Map)};return{get(d){let m=s.get(d);if(m!==void 0)return m;if((m=o.get(d))!==void 0)return f(d,m),m},set(d,m){s.has(d)?s.set(d,m):f(d,m)}}},_d="!",Ld=":",dw=Ld.length,hw=a=>{const{prefix:l,experimentalParseClassName:s}=a;let o=f=>{const d=[];let m=0,y=0,g=0,p;for(let E=0;E<f.length;E++){let M=f[E];if(m===0&&y===0){if(M===Ld){d.push(f.slice(g,E)),g=E+dw;continue}if(M==="/"){p=E;continue}}M==="["?m++:M==="]"?m--:M==="("?y++:M===")"&&y--}const b=d.length===0?f:f.substring(g),j=mw(b),S=j!==b,w=p&&p>g?p-g:void 0;return{modifiers:d,hasImportantModifier:S,baseClassName:j,maybePostfixModifierPosition:w}};if(l){const f=l+Ld,d=o;o=m=>m.startsWith(f)?d(m.substring(f.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:m,maybePostfixModifierPosition:void 0}}if(s){const f=o;o=d=>s({className:d,parseClassName:f})}return o},mw=a=>a.endsWith(_d)?a.substring(0,a.length-1):a.startsWith(_d)?a.substring(1):a,pw=a=>{const l=Object.fromEntries(a.orderSensitiveModifiers.map(s=>[s,!0]));return s=>{if(s.length<=1)return s;const o=[];let f=[];return s.forEach(d=>{d[0]==="["||l[d]?(o.push(...f.sort(),d),f=[]):f.push(d)}),o.push(...f.sort()),o}},gw=a=>({cache:fw(a.cacheSize),parseClassName:hw(a),sortModifiers:pw(a),...rw(a)}),yw=/\s+/,xw=(a,l)=>{const{parseClassName:s,getClassGroupId:o,getConflictingClassGroupIds:f,sortModifiers:d}=l,m=[],y=a.trim().split(yw);let g="";for(let p=y.length-1;p>=0;p-=1){const b=y[p],{isExternal:j,modifiers:S,hasImportantModifier:w,baseClassName:E,maybePostfixModifierPosition:M}=s(b);if(j){g=b+(g.length>0?" "+g:g);continue}let O=!!M,z=o(O?E.substring(0,M):E);if(!z){if(!O){g=b+(g.length>0?" "+g:g);continue}if(z=o(E),!z){g=b+(g.length>0?" "+g:g);continue}O=!1}const D=d(S).join(":"),$=w?D+_d:D,_=$+z;if(m.includes(_))continue;m.push(_);const V=f(z,O);for(let ae=0;ae<V.length;++ae){const Z=V[ae];m.push($+Z)}g=b+(g.length>0?" "+g:g)}return g};function vw(){let a=0,l,s,o="";for(;a<arguments.length;)(l=arguments[a++])&&(s=kx(l))&&(o&&(o+=" "),o+=s);return o}const kx=a=>{if(typeof a=="string")return a;let l,s="";for(let o=0;o<a.length;o++)a[o]&&(l=kx(a[o]))&&(s&&(s+=" "),s+=l);return s};function bw(a,...l){let s,o,f,d=m;function m(g){const p=l.reduce((b,j)=>j(b),a());return s=gw(p),o=s.cache.get,f=s.cache.set,d=y,y(g)}function y(g){const p=o(g);if(p)return p;const b=xw(g,s);return f(g,b),b}return function(){return d(vw.apply(null,arguments))}}const Ct=a=>{const l=s=>s[a]||[];return l.isThemeGetter=!0,l},Dx=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,_x=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Sw=/^\d+\/\d+$/,jw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Nw=/\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$/,ww=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ew=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Cw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Pi=a=>Sw.test(a),Re=a=>!!a&&!Number.isNaN(Number(a)),hl=a=>!!a&&Number.isInteger(Number(a)),od=a=>a.endsWith("%")&&Re(a.slice(0,-1)),Ra=a=>jw.test(a),Tw=()=>!0,Mw=a=>Nw.test(a)&&!ww.test(a),Lx=()=>!1,Aw=a=>Ew.test(a),Rw=a=>Cw.test(a),Ow=a=>!he(a)&&!me(a),zw=a=>Ss(a,qx,Lx),he=a=>Dx.test(a),Kl=a=>Ss(a,Bx,Mw),cd=a=>Ss(a,Uw,Re),e0=a=>Ss(a,Ux,Lx),kw=a=>Ss(a,Hx,Rw),lo=a=>Ss(a,Qx,Aw),me=a=>_x.test(a),jr=a=>js(a,Bx),Dw=a=>js(a,Hw),t0=a=>js(a,Ux),_w=a=>js(a,qx),Lw=a=>js(a,Hx),io=a=>js(a,Qx,!0),Ss=(a,l,s)=>{const o=Dx.exec(a);return o?o[1]?l(o[1]):s(o[2]):!1},js=(a,l,s=!1)=>{const o=_x.exec(a);return o?o[1]?l(o[1]):s:!1},Ux=a=>a==="position"||a==="percentage",Hx=a=>a==="image"||a==="url",qx=a=>a==="length"||a==="size"||a==="bg-size",Bx=a=>a==="length",Uw=a=>a==="number",Hw=a=>a==="family-name",Qx=a=>a==="shadow",qw=()=>{const a=Ct("color"),l=Ct("font"),s=Ct("text"),o=Ct("font-weight"),f=Ct("tracking"),d=Ct("leading"),m=Ct("breakpoint"),y=Ct("container"),g=Ct("spacing"),p=Ct("radius"),b=Ct("shadow"),j=Ct("inset-shadow"),S=Ct("text-shadow"),w=Ct("drop-shadow"),E=Ct("blur"),M=Ct("perspective"),O=Ct("aspect"),z=Ct("ease"),D=Ct("animate"),$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],V=()=>[..._(),me,he],ae=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto","contain","none"],q=()=>[me,he,g],J=()=>[Pi,"full","auto",...q()],Q=()=>[hl,"none","subgrid",me,he],se=()=>["auto",{span:["full",hl,me,he]},hl,me,he],re=()=>[hl,"auto",me,he],ue=()=>["auto","min","max","fr",me,he],le=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ne=()=>["start","end","center","stretch","center-safe","end-safe"],A=()=>["auto",...q()],X=()=>[Pi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...q()],Y=()=>[a,me,he],F=()=>[..._(),t0,e0,{position:[me,he]}],I=()=>["no-repeat",{repeat:["","x","y","space","round"]}],N=()=>["auto","cover","contain",_w,zw,{size:[me,he]}],L=()=>[od,jr,Kl],K=()=>["","none","full",p,me,he],ee=()=>["",Re,jr,Kl],ie=()=>["solid","dashed","dotted","double"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>[Re,od,t0,e0],ge=()=>["","none",E,me,he],ye=()=>["none",Re,me,he],Xe=()=>["none",Re,me,he],Be=()=>[Re,me,he],et=()=>[Pi,"full",...q()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ra],breakpoint:[Ra],color:[Tw],container:[Ra],"drop-shadow":[Ra],ease:["in","out","in-out"],font:[Ow],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ra],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ra],shadow:[Ra],spacing:["px",Re],text:[Ra],"text-shadow":[Ra],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Pi,he,me,O]}],container:["container"],columns:[{columns:[Re,he,me,y]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"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:V()}],overflow:[{overflow:ae()}],"overflow-x":[{"overflow-x":ae()}],"overflow-y":[{"overflow-y":ae()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:J()}],"inset-x":[{"inset-x":J()}],"inset-y":[{"inset-y":J()}],start:[{start:J()}],end:[{end:J()}],top:[{top:J()}],right:[{right:J()}],bottom:[{bottom:J()}],left:[{left:J()}],visibility:["visible","invisible","collapse"],z:[{z:[hl,"auto",me,he]}],basis:[{basis:[Pi,"full","auto",y,...q()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Re,Pi,"auto","initial","none",he]}],grow:[{grow:["",Re,me,he]}],shrink:[{shrink:["",Re,me,he]}],order:[{order:[hl,"first","last","none",me,he]}],"grid-cols":[{"grid-cols":Q()}],"col-start-end":[{col:se()}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":Q()}],"row-start-end":[{row:se()}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ue()}],"auto-rows":[{"auto-rows":ue()}],gap:[{gap:q()}],"gap-x":[{"gap-x":q()}],"gap-y":[{"gap-y":q()}],"justify-content":[{justify:[...le(),"normal"]}],"justify-items":[{"justify-items":[...ne(),"normal"]}],"justify-self":[{"justify-self":["auto",...ne()]}],"align-content":[{content:["normal",...le()]}],"align-items":[{items:[...ne(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ne(),{baseline:["","last"]}]}],"place-content":[{"place-content":le()}],"place-items":[{"place-items":[...ne(),"baseline"]}],"place-self":[{"place-self":["auto",...ne()]}],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:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":q()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":q()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],w:[{w:[y,"screen",...X()]}],"min-w":[{"min-w":[y,"screen","none",...X()]}],"max-w":[{"max-w":[y,"screen","none","prose",{screen:[m]},...X()]}],h:[{h:["screen",...X()]}],"min-h":[{"min-h":["screen","none",...X()]}],"max-h":[{"max-h":["screen",...X()]}],"font-size":[{text:["base",s,jr,Kl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,me,cd]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",od,he]}],"font-family":[{font:[Dw,he,l]}],"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:[f,me,he]}],"line-clamp":[{"line-clamp":[Re,"none",me,cd]}],leading:[{leading:[d,...q()]}],"list-image":[{"list-image":["none",me,he]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",me,he]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Y()}],"text-color":[{text:Y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ie(),"wavy"]}],"text-decoration-thickness":[{decoration:[Re,"from-font","auto",me,Kl]}],"text-decoration-color":[{decoration:Y()}],"underline-offset":[{"underline-offset":[Re,"auto",me,he]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:q()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me,he]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",me,he]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:F()}],"bg-repeat":[{bg:I()}],"bg-size":[{bg:N()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},hl,me,he],radial:["",me,he],conic:[hl,me,he]},Lw,kw]}],"bg-color":[{bg:Y()}],"gradient-from-pos":[{from:L()}],"gradient-via-pos":[{via:L()}],"gradient-to-pos":[{to:L()}],"gradient-from":[{from:Y()}],"gradient-via":[{via:Y()}],"gradient-to":[{to:Y()}],rounded:[{rounded:K()}],"rounded-s":[{"rounded-s":K()}],"rounded-e":[{"rounded-e":K()}],"rounded-t":[{"rounded-t":K()}],"rounded-r":[{"rounded-r":K()}],"rounded-b":[{"rounded-b":K()}],"rounded-l":[{"rounded-l":K()}],"rounded-ss":[{"rounded-ss":K()}],"rounded-se":[{"rounded-se":K()}],"rounded-ee":[{"rounded-ee":K()}],"rounded-es":[{"rounded-es":K()}],"rounded-tl":[{"rounded-tl":K()}],"rounded-tr":[{"rounded-tr":K()}],"rounded-br":[{"rounded-br":K()}],"rounded-bl":[{"rounded-bl":K()}],"border-w":[{border:ee()}],"border-w-x":[{"border-x":ee()}],"border-w-y":[{"border-y":ee()}],"border-w-s":[{"border-s":ee()}],"border-w-e":[{"border-e":ee()}],"border-w-t":[{"border-t":ee()}],"border-w-r":[{"border-r":ee()}],"border-w-b":[{"border-b":ee()}],"border-w-l":[{"border-l":ee()}],"divide-x":[{"divide-x":ee()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ee()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ie(),"hidden","none"]}],"divide-style":[{divide:[...ie(),"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:[...ie(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Re,me,he]}],"outline-w":[{outline:["",Re,jr,Kl]}],"outline-color":[{outline:Y()}],shadow:[{shadow:["","none",b,io,lo]}],"shadow-color":[{shadow:Y()}],"inset-shadow":[{"inset-shadow":["none",j,io,lo]}],"inset-shadow-color":[{"inset-shadow":Y()}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Y()}],"ring-offset-w":[{"ring-offset":[Re,Kl]}],"ring-offset-color":[{"ring-offset":Y()}],"inset-ring-w":[{"inset-ring":ee()}],"inset-ring-color":[{"inset-ring":Y()}],"text-shadow":[{"text-shadow":["none",S,io,lo]}],"text-shadow-color":[{"text-shadow":Y()}],opacity:[{opacity:[Re,me,he]}],"mix-blend":[{"mix-blend":[...oe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":oe()}],"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":[Re]}],"mask-image-linear-from-pos":[{"mask-linear-from":ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":ce()}],"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":ce()}],"mask-image-t-to-pos":[{"mask-t-to":ce()}],"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":ce()}],"mask-image-r-to-pos":[{"mask-r-to":ce()}],"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":ce()}],"mask-image-b-to-pos":[{"mask-b-to":ce()}],"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":ce()}],"mask-image-l-to-pos":[{"mask-l-to":ce()}],"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":ce()}],"mask-image-x-to-pos":[{"mask-x-to":ce()}],"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":ce()}],"mask-image-y-to-pos":[{"mask-y-to":ce()}],"mask-image-y-from-color":[{"mask-y-from":Y()}],"mask-image-y-to-color":[{"mask-y-to":Y()}],"mask-image-radial":[{"mask-radial":[me,he]}],"mask-image-radial-from-pos":[{"mask-radial-from":ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":ce()}],"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":_()}],"mask-image-conic-pos":[{"mask-conic":[Re]}],"mask-image-conic-from-pos":[{"mask-conic-from":ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":ce()}],"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:F()}],"mask-repeat":[{mask:I()}],"mask-size":[{mask:N()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",me,he]}],filter:[{filter:["","none",me,he]}],blur:[{blur:ge()}],brightness:[{brightness:[Re,me,he]}],contrast:[{contrast:[Re,me,he]}],"drop-shadow":[{"drop-shadow":["","none",w,io,lo]}],"drop-shadow-color":[{"drop-shadow":Y()}],grayscale:[{grayscale:["",Re,me,he]}],"hue-rotate":[{"hue-rotate":[Re,me,he]}],invert:[{invert:["",Re,me,he]}],saturate:[{saturate:[Re,me,he]}],sepia:[{sepia:["",Re,me,he]}],"backdrop-filter":[{"backdrop-filter":["","none",me,he]}],"backdrop-blur":[{"backdrop-blur":ge()}],"backdrop-brightness":[{"backdrop-brightness":[Re,me,he]}],"backdrop-contrast":[{"backdrop-contrast":[Re,me,he]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Re,me,he]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Re,me,he]}],"backdrop-invert":[{"backdrop-invert":["",Re,me,he]}],"backdrop-opacity":[{"backdrop-opacity":[Re,me,he]}],"backdrop-saturate":[{"backdrop-saturate":[Re,me,he]}],"backdrop-sepia":[{"backdrop-sepia":["",Re,me,he]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":q()}],"border-spacing-x":[{"border-spacing-x":q()}],"border-spacing-y":[{"border-spacing-y":q()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",me,he]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Re,"initial",me,he]}],ease:[{ease:["linear","initial",z,me,he]}],delay:[{delay:[Re,me,he]}],animate:[{animate:["none",D,me,he]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[M,me,he]}],"perspective-origin":[{"perspective-origin":V()}],rotate:[{rotate:ye()}],"rotate-x":[{"rotate-x":ye()}],"rotate-y":[{"rotate-y":ye()}],"rotate-z":[{"rotate-z":ye()}],scale:[{scale:Xe()}],"scale-x":[{"scale-x":Xe()}],"scale-y":[{"scale-y":Xe()}],"scale-z":[{"scale-z":Xe()}],"scale-3d":["scale-3d"],skew:[{skew:Be()}],"skew-x":[{"skew-x":Be()}],"skew-y":[{"skew-y":Be()}],transform:[{transform:[me,he,"","none","gpu","cpu"]}],"transform-origin":[{origin:V()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:et()}],"translate-x":[{"translate-x":et()}],"translate-y":[{"translate-y":et()}],"translate-z":[{"translate-z":et()}],"translate-none":["translate-none"],accent:[{accent:Y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",me,he]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":q()}],"scroll-mx":[{"scroll-mx":q()}],"scroll-my":[{"scroll-my":q()}],"scroll-ms":[{"scroll-ms":q()}],"scroll-me":[{"scroll-me":q()}],"scroll-mt":[{"scroll-mt":q()}],"scroll-mr":[{"scroll-mr":q()}],"scroll-mb":[{"scroll-mb":q()}],"scroll-ml":[{"scroll-ml":q()}],"scroll-p":[{"scroll-p":q()}],"scroll-px":[{"scroll-px":q()}],"scroll-py":[{"scroll-py":q()}],"scroll-ps":[{"scroll-ps":q()}],"scroll-pe":[{"scroll-pe":q()}],"scroll-pt":[{"scroll-pt":q()}],"scroll-pr":[{"scroll-pr":q()}],"scroll-pb":[{"scroll-pb":q()}],"scroll-pl":[{"scroll-pl":q()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",me,he]}],fill:[{fill:["none",...Y()]}],"stroke-w":[{stroke:[Re,jr,Kl,cd]}],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"]}},Bw=bw(qw);function be(...a){return Bw(sw(a))}function es(a){return a===null?"-":a<1e3?`${String(a)}ms`:a<6e4?`${(a/1e3).toFixed(1)}s`:`${(a/6e4).toFixed(1)}m`}const Qw={sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl"},Yw={sm:"shadow-none",md:"shadow-xs",lg:"shadow-sm"};function To({children:a,className:l,rounded:s="lg",shadow:o="md",...f}){return r.jsx("div",{"data-slot":"glass-container",className:be("relative bg-card text-card-foreground ring-1 ring-border",Qw[s],Yw[o],l),...f,children:a})}function ct({className:a,rounded:l="2xl",shadow:s="lg",children:o,...f}){return r.jsx(To,{"data-slot":"card",rounded:l,shadow:s,className:be("p-6",a),...f,children:o})}function St({className:a,...l}){return r.jsx("div",{"data-slot":"card-header",className:be("flex flex-row items-center justify-between space-y-0 pb-2",a),...l})}function jt({className:a,...l}){return r.jsx("h3",{"data-slot":"card-title",className:be("font-heading text-sm font-semibold uppercase leading-none tracking-wider text-card-foreground",a),...l})}function Ht({className:a,...l}){return r.jsx("p",{"data-slot":"card-description",className:be("text-sm leading-relaxed text-muted-foreground",a),...l})}function ft({className:a,...l}){return r.jsx("div",{"data-slot":"card-content",className:be(a),...l})}/**
267
+ * @license lucide-react v0.511.0 - ISC
268
+ *
269
+ * This source code is licensed under the ISC license.
270
+ * See the LICENSE file in the root directory of this source tree.
271
+ */const Gw=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Vw=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,s,o)=>o?o.toUpperCase():s.toLowerCase()),n0=a=>{const l=Vw(a);return l.charAt(0).toUpperCase()+l.slice(1)},Yx=(...a)=>a.filter((l,s,o)=>!!l&&l.trim()!==""&&o.indexOf(l)===s).join(" ").trim(),Xw=a=>{for(const l in a)if(l.startsWith("aria-")||l==="role"||l==="title")return!0};/**
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
+ */var Kw={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"};/**
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 $w=x.forwardRef(({color:a="currentColor",size:l=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:f="",children:d,iconNode:m,...y},g)=>x.createElement("svg",{ref:g,...Kw,width:l,height:l,stroke:a,strokeWidth:o?Number(s)*24/Number(l):s,className:Yx("lucide",f),...!d&&!Xw(y)&&{"aria-hidden":"true"},...y},[...m.map(([p,b])=>x.createElement(p,b)),...Array.isArray(d)?d:[d]]));/**
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 $n=(a,l)=>{const s=x.forwardRef(({className:o,...f},d)=>x.createElement($w,{ref:d,iconNode:l,className:Yx(`lucide-${Gw(n0(a))}`,`lucide-${a}`,o),...f}));return s.displayName=n0(a),s};/**
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 Zw=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Gx=$n("check",Zw);/**
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 Fw=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Jw=$n("chevron-down",Fw);/**
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 Pw=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],a0=$n("chevron-left",Pw);/**
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 Iw=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],l0=$n("chevron-right",Iw);/**
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 Ww=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],eE=$n("chevron-up",Ww);/**
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 tE=[["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"}]],nE=$n("clipboard",tE);/**
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 aE=[["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"}]],lE=$n("file-json",aE);/**
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 iE=[["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"}]],sE=$n("file-spreadsheet",iE);/**
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 rE=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],uE=$n("loader-circle",rE);/**
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 oE=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],cE=$n("search",oE);/**
337
+ * @license lucide-react v0.511.0 - ISC
338
+ *
339
+ * This source code is licensed under the ISC license.
340
+ * See the LICENSE file in the root directory of this source tree.
341
+ */const fE=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],dE=$n("x",fE);function hE(a){const l=Math.floor((new Date().getTime()-a.getTime())/1e3);return l<5?"just now":l<60?`${String(l)}s ago`:l<3600?`${String(Math.floor(l/60))}m ago`:l<86400?`${String(Math.floor(l/3600))}h ago`:l<604800?`${String(Math.floor(l/86400))}d ago`:a.toLocaleDateString()}function fd({value:a}){const[l,s]=x.useState(!1);return r.jsx("button",{onClick:o=>{o.stopPropagation(),navigator.clipboard.writeText(a).then(()=>{s(!0),setTimeout(()=>{s(!1)},2e3)}).catch(()=>{const f=document.createElement("textarea");f.value=a,document.body.appendChild(f),f.select();try{document.execCommand("copy")}catch{}document.body.removeChild(f),s(!0),setTimeout(()=>{s(!1)},2e3)})},className:be("p-1 rounded transition-colors flex-shrink-0",l?"text-green-500":"text-gray-400 hover:text-gray-600 dark:hover:text-gray-300"),title:l?"Copied!":"Copy to clipboard",children:l?r.jsx(Gx,{className:"w-3 h-3"}):r.jsx(nE,{className:"w-3 h-3"})})}function yn({timestamp:a,className:l,rawValue:s,forceOpen:o=!1}){const[f,d]=x.useState(!1),[,m]=x.useState(0),y=o||f;if(x.useEffect(()=>{const S=setInterval(()=>{m(w=>w+1)},1e3);return()=>{clearInterval(S)}},[]),!a)return null;let g;typeof a=="number"?g=new Date(a<1e10?a*1e3:a):g=new Date(a);const p=g.toISOString(),b=g.toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}),j=hE(g);return r.jsxs("div",{className:be("relative inline-block",l),onMouseEnter:()=>{d(!0)},onMouseLeave:()=>{d(!1)},children:[r.jsx("time",{dateTime:p,className:"cursor-help border-b border-gray-400 dark:border-gray-400 text-gray-700 dark:text-gray-300",children:j}),r.jsx("div",{className:be("absolute bottom-full left-1/2 -translate-x-1/2 mb-2 z-[9999] w-72","transition-all duration-200 ease-out origin-bottom",y?"opacity-100 scale-100 translate-y-0":"opacity-0 scale-95 translate-y-2 pointer-events-none"),children:r.jsx(To,{rounded:"lg",shadow:"lg",className:"p-3 text-xs !bg-white dark:!bg-gray-900 !backdrop-blur-none",children:r.jsxs("div",{className:"space-y-2.5",children:[s!==void 0&&r.jsxs("div",{children:[r.jsx("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 dark:text-gray-400 font-semibold mb-0.5",children:"Raw Value"}),r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsx("span",{className:"font-mono text-gray-700 dark:text-gray-200 break-all leading-tight",children:typeof s=="object"?JSON.stringify(s):String(s)}),r.jsx(fd,{value:typeof s=="object"?JSON.stringify(s):String(s)})]})]}),r.jsxs("div",{children:[r.jsx("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 dark:text-gray-400 font-semibold mb-0.5",children:"UTC ISO"}),r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsx("span",{className:"font-mono text-gray-700 dark:text-gray-200 break-all leading-tight",children:p}),r.jsx(fd,{value:p})]})]}),r.jsxs("div",{children:[r.jsx("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 dark:text-gray-400 font-semibold mb-0.5",children:"Local Time"}),r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsx("span",{className:"text-gray-700 dark:text-gray-200 leading-tight",children:b}),r.jsx(fd,{value:b})]})]})]})})})]})}function mE(a){return a<1e3?`${a.toFixed(2)}ms`:`${(a/1e3).toFixed(2)}s`}function pE(a){return typeof a!="string"?!1:[/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/,/^\d{4}-\d{2}-\d{2}$/].some(l=>l.test(a))}function gE(a){const l=a.toLowerCase();return!!(l.includes("created")||l.includes("date")||l.includes("updated")||a.endsWith("At")||l.endsWith("_at"))}function yE(a,l){for(const s of l){const o=s[a];if(o!=null)return typeof o=="boolean"?"bool":typeof o=="number"&&gE(a)?"date":typeof o=="number"?"number":pE(o)?"date":"string"}return"string"}function Vx({results:a,meta:l,columns:s,error:o,title:f="Results",pageSize:d=25,onExportCsv:m,onExportJson:y,serverPagination:g}){const p=a??[],[b,j]=x.useState(""),[S,w]=x.useState(null),[E,M]=x.useState(new Set),[O,z]=x.useState(1),D=!!g,$=g?Math.floor(g.offset/g.limit)+1:1,_=g?Math.ceil(g.total/g.limit):1,V=x.useMemo(()=>s||(p.length===0?[]:Object.keys(p[0]).map(le=>({key:le,label:le,type:yE(le,p)}))),[s,p]),ae=x.useMemo(()=>b?p.filter(le=>Object.values(le).some(ne=>String(ne).toLowerCase().includes(b.toLowerCase()))):p,[p,b]),Z=x.useMemo(()=>S?[...ae].sort((le,ne)=>{const A=le[S.key],X=ne[S.key];return A==null?1:X==null?-1:A<X?S.direction==="asc"?-1:1:A>X?S.direction==="asc"?1:-1:0}):ae,[ae,S]),q=Math.ceil(Z.length/d),J=x.useMemo(()=>{const le=(O-1)*d;return Z.slice(le,le+d)},[Z,O,d]);x.useMemo(()=>{z(1)},[b,S]);const Q=le=>{w(ne=>(ne==null?void 0:ne.key)===le?ne.direction==="asc"?{key:le,direction:"desc"}:null:{key:le,direction:"asc"})},se=()=>{E.size===J.length?M(new Set):M(new Set(J.map((le,ne)=>ne)))},re=le=>{const ne=new Set(E);ne.has(le)?ne.delete(le):ne.add(le),M(ne)},ue=(le,ne)=>{const A=le[ne.key];if(A==null)return r.jsx("span",{className:"text-xs italic dark:text-gray-600 text-gray-400",children:"NULL"});switch(ne.type??"string"){case"bool":return A===!0?r.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:r.jsx(Gx,{className:"w-3.5 h-3.5"})}):r.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:r.jsx(dE,{className:"w-3.5 h-3.5"})});case"date":return r.jsx(yn,{timestamp:A,rawValue:typeof A=="number"?A:void 0});case"number":return r.jsx("span",{className:"text-sm font-mono dark:text-gray-300 text-gray-700",children:typeof A=="number"?A.toLocaleString():JSON.stringify(A)});default:return typeof A=="object"?r.jsx("span",{className:"text-sm font-mono dark:text-gray-300 text-gray-700",children:JSON.stringify(A)}):r.jsx("span",{className:"text-sm dark:text-gray-300 text-gray-700",children:typeof A=="object"?JSON.stringify(A):String(A)})}};return o?r.jsxs(To,{rounded:"2xl",shadow:"lg",className:"border-red-500/30 dark:border-red-500/20",children:[r.jsx("div",{className:"p-5 border-b dark:border-white/[0.08] border-gray-200",children:r.jsx("h2",{className:"text-lg font-semibold text-red-500",children:"Query Error"})}),r.jsx("div",{className:"p-5",children:r.jsx("p",{className:"font-mono text-sm text-red-500",children:o})})]}):r.jsxs(To,{rounded:"2xl",shadow:"lg",className:"flex flex-col",children:[r.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:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("h2",{className:"text-lg font-semibold dark:text-white text-gray-900",children:f}),l&&r.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:mE(l.duration)}),r.jsxs("span",{className:"text-sm dark:text-gray-500 text-gray-500",children:[p.length," row",p.length!==1?"s":""]})]}),r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsxs("div",{className:"relative group",children:[r.jsx(cE,{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"}),r.jsx("input",{type:"text",placeholder:"Search results...",value:b,onChange:le=>{j(le.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"})]}),(m??y)&&r.jsxs("div",{className:"flex items-center gap-2 border-l dark:border-white/[0.08] border-gray-200 pl-3 ml-1",children:[m&&r.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 CSV",children:r.jsx(sE,{className:"w-4 h-4"})}),y&&r.jsx("button",{onClick:y,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:r.jsx(lE,{className:"w-4 h-4"})})]})]})]}),r.jsx("div",{className:"overflow-x-auto overflow-y-visible",children:r.jsxs("table",{className:"w-full text-left border-collapse font-mono",children:[r.jsx("thead",{children:r.jsxs("tr",{className:"border-b dark:border-white/[0.08] border-gray-200 bg-gray-50/50 dark:bg-white/[0.02]",children:[r.jsx("th",{className:"p-4 w-12",children:r.jsx("input",{type:"checkbox",checked:E.size===J.length&&J.length>0,onChange:se,className:"rounded border-gray-300 text-blue-600 focus:ring-blue-500 bg-transparent"})}),V.map(le=>r.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:()=>{Q(le.key)},children:r.jsxs("div",{className:"flex items-center gap-1",children:[le.label,r.jsxs("div",{className:be("flex flex-col opacity-0 group-hover:opacity-50",(S==null?void 0:S.key)===le.key&&"opacity-100"),children:[r.jsx(eE,{className:be("w-2 h-2",(S==null?void 0:S.key)===le.key&&S.direction==="asc"&&"text-blue-500")}),r.jsx(Jw,{className:be("w-2 h-2",(S==null?void 0:S.key)===le.key&&S.direction==="desc"&&"text-blue-500")})]})]})},le.key))]})}),r.jsx("tbody",{className:"divide-y dark:divide-white/[0.04] divide-gray-100",children:J.length>0?J.map((le,ne)=>r.jsxs("tr",{className:be("group transition-colors",E.has(ne)?"bg-blue-50/50 dark:bg-blue-500/10":"hover:bg-gray-50 dark:hover:bg-white/[0.02]"),children:[r.jsx("td",{className:"p-4",children:r.jsx("input",{type:"checkbox",checked:E.has(ne),onChange:()=>{re(ne)},className:"rounded border-gray-300 text-blue-600 focus:ring-blue-500 bg-transparent"})}),V.map(A=>r.jsx("td",{className:"p-4 whitespace-nowrap",children:ue(le,A)},`${String(ne)}-${A.key}`))]},ne)):r.jsx("tr",{children:r.jsx("td",{colSpan:V.length+1,className:"p-8 text-center text-gray-500 dark:text-gray-400",children:b?`No results found matching "${b}"`:"Query executed successfully. No rows returned."})})})]})}),r.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:[r.jsxs("div",{children:[D?r.jsxs(r.Fragment,{children:["Showing"," ",r.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:g.offset+1}),"-",r.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:Math.min(g.offset+p.length,g.total)})," ","of"," ",r.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:g.total})," ","total"]}):r.jsxs(r.Fragment,{children:["Showing"," ",r.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:J.length})," ","of"," ",r.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:Z.length})," ","results"]}),E.size>0&&r.jsxs("span",{className:"ml-3 text-blue-500 font-medium",children:[E.size," row",E.size!==1?"s":""," ","selected"]})]}),D&&_>1&&r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("button",{onClick:()=>{g.onPageChange(Math.max(0,g.offset-g.limit))},disabled:$===1,className:"p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:r.jsx(a0,{className:"w-4 h-4"})}),r.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:Math.min(_,5)},(le,ne)=>{let A;return _<=5||$<=3?A=ne+1:$>=_-2?A=_-4+ne:A=$-2+ne,r.jsx("button",{onClick:()=>{g.onPageChange((A-1)*g.limit)},className:be("px-2.5 py-1 rounded-lg font-medium transition-colors",$===A?"bg-blue-500/10 text-blue-600 dark:text-blue-400":"hover:bg-gray-100 dark:hover:bg-white/[0.06]"),children:A},A)})}),r.jsx("button",{onClick:()=>{g.onPageChange(g.offset+g.limit)},disabled:$===_,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:r.jsx(l0,{className:"w-4 h-4"})})]}),!D&&q>1&&r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("button",{onClick:()=>{z(le=>Math.max(1,le-1))},disabled:O===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:r.jsx(a0,{className:"w-4 h-4"})}),r.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:Math.min(q,5)},(le,ne)=>{let A;return q<=5||O<=3?A=ne+1:O>=q-2?A=q-4+ne:A=O-2+ne,r.jsx("button",{onClick:()=>{z(A)},className:be("px-2.5 py-1 rounded-lg font-medium transition-colors",O===A?"bg-blue-500/10 text-blue-600 dark:text-blue-400":"hover:bg-gray-100 dark:hover:bg-white/[0.06]"),children:A},A)})}),r.jsx("button",{onClick:()=>{z(le=>Math.min(q,le+1))},disabled:O===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:r.jsx(l0,{className:"w-4 h-4"})})]})]})]})}function fh(){return typeof window<"u"}function Ns(a){var l;return(a==null||(l=a.ownerDocument)==null?void 0:l.defaultView)||window}function xE(a){return fh()?a instanceof Element||a instanceof Ns(a).Element:!1}function Do(a){return fh()?a instanceof HTMLElement||a instanceof Ns(a).HTMLElement:!1}function vE(a){return!fh()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof Ns(a).ShadowRoot}function bE(a){return Ns(a).getComputedStyle(a)}const dh={...y2},dd=dh.useInsertionEffect,SE=dd&&dd!==dh.useLayoutEffect?dd:a=>a();function qe(a){const l=sa(jE).current;return l.next=a,SE(l.effect),l.trampoline}function jE(){const a={next:void 0,callback:NE,trampoline:(...l)=>{var s;return(s=a.callback)==null?void 0:s.call(a,...l)},effect:()=>{a.callback=a.next}};return a}function NE(){}const wE=()=>{},Ve=typeof document<"u"?x.useLayoutEffect:wE,Xx=x.createContext(void 0);function hh(a=!1){const l=x.useContext(Xx);if(l===void 0&&!a)throw new Error(Ba(16));return l}function EE(a){const{focusableWhenDisabled:l,disabled:s,composite:o=!1,tabIndex:f=0,isNativeButton:d}=a,m=o&&l!==!1,y=o&&l===!1;return{props:x.useMemo(()=>{const p={onKeyDown(b){s&&l&&b.key!=="Tab"&&b.preventDefault()}};return o||(p.tabIndex=f,!d&&s&&(p.tabIndex=l?f:-1)),(d&&(l||m)||!d&&s)&&(p["aria-disabled"]=s),d&&(!l||y)&&(p.disabled=s),p},[o,s,l,m,y,d,f])}}function Ud(a){return(a==null?void 0:a.ownerDocument)||document}function bo(a,l,{detail:s=0}={}){a.dispatchEvent(new(Ns(a)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:s,shiftKey:l.shiftKey,ctrlKey:l.ctrlKey,altKey:l.altKey,metaKey:l.metaKey}))}function _o(a={}){const{disabled:l=!1,focusableWhenDisabled:s,tabIndex:o=0,native:f=!0,composite:d}=a,m=x.useRef(null),y=hh(!0),g=d??y!==void 0,{props:p}=EE({focusableWhenDisabled:s,disabled:l,composite:g,tabIndex:o,isNativeButton:f}),b=x.useCallback(()=>{const w=m.current;hd(w)&&g&&l&&p.disabled===void 0&&w.disabled&&(w.disabled=!1)},[l,p.disabled,g]);Ve(b,[b]);const j=x.useCallback((w={})=>{const{onClick:E,onMouseDown:M,onKeyUp:O,onKeyDown:z,onPointerDown:D,...$}=w;return ko({onClick(_){if(l){_.preventDefault();return}E==null||E(_)},onMouseDown(_){l||M==null||M(_)},onKeyDown(_){if(l||(Eo(_),z==null||z(_),_.baseUIHandlerPrevented))return;const V=_.target===_.currentTarget,ae=_.currentTarget,Z=hd(ae),q=!f&&CE(ae),J=V&&(f?Z:!q),Q=_.key==="Enter",se=_.key===" ",re=ae.getAttribute("role"),ue=(re==null?void 0:re.startsWith("menuitem"))||re==="option"||re==="gridcell";if(V&&g&&se){if(_.defaultPrevented&&ue)return;_.preventDefault(),(!f||Z)&&(_.preventBaseUIHandler(),bo(ae,_));return}if(!J||f||!se&&!Q){V&&q&&se&&_.preventDefault();return}_.defaultPrevented||(_.preventDefault(),Q&&(_.preventBaseUIHandler(),bo(ae,_)))},onKeyUp(_){if(!l){if(Eo(_),O==null||O(_),_.target===_.currentTarget&&f&&g&&hd(_.currentTarget)&&_.key===" "){_.preventDefault();return}_.baseUIHandlerPrevented||_.target===_.currentTarget&&!f&&!g&&!_.defaultPrevented&&_.key===" "&&(_.preventBaseUIHandler(),bo(_.currentTarget,_))}},onPointerDown(_){if(l){_.preventDefault();return}D==null||D(_)}},f?{type:"button"}:{role:"button"},p,$)},[l,p,g,f]),S=qe(w=>{m.current=w,b()});return{getButtonProps:j,buttonRef:S}}function hd(a){return Do(a)&&a.tagName==="BUTTON"}function CE(a){return Do(a)&&a.tagName==="A"&&!!a.href}const TE=x.forwardRef(function(l,s){const{render:o,className:f,disabled:d=!1,focusableWhenDisabled:m=!1,nativeButton:y=!0,style:g,...p}=l,{getButtonProps:b,buttonRef:j}=_o({disabled:d,focusableWhenDisabled:m,native:y});return qt("button",l,{state:{disabled:d},ref:[s,j],props:[p,b]})}),ME={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},AE={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},RE={disabled:!1,...AE},Kx={valid(a){return a===null?null:a?{"data-valid":""}:{"data-invalid":""}}},OE={invalid:void 0,name:void 0,validityData:{state:ME,errors:[],error:"",value:"",initialValue:null},setValidityData:Zt,disabled:void 0,setTouched:Zt,setDirty:Zt,setFilled:Zt,setFocused:Zt,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:RE,registerFieldControl:Zt,validation:{getValidationProps:(a,l=Da)=>l,inputRef:{current:null},registeredInputs:new Map,registerInput:Zt,getInputControl:()=>null,commit:async()=>{},change:Zt}},zE=x.createContext(OE);function mh(a=!0){const l=x.useContext(zE);if(l.setValidityData===Zt&&!a)throw new Error(Ba(28));return l}const kE=x.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:Zt,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function $x(){return x.useContext(kE)}let i0=0;function DE(a,l="mui"){const[s,o]=x.useState(a),f=a||s;return x.useEffect(()=>{s==null&&(i0+=1,o(`${l}-${i0}`))},[s,l]),f}const s0=dh.useId;function _E(a,l){if(s0!==void 0){const s=s0();return a??`${l}-${s}`}return DE(a,l)}function ri(a){return _E(a,"base-ui")}const LE=x.createContext({controlId:void 0,registerControlId:Zt,labelId:void 0,setLabelId:Zt,messageIds:[],setMessageIds:Zt,getDescriptionProps:a=>a});function ph(){return x.useContext(LE)}function UE(a,l,s,o=!0,f){const[d,m]=x.useState(),y=ri(f?`${f}-label`:void 0),g=a??l??d;return Ve(()=>{const p=a||l||!o?void 0:HE(s.current,y);d!==p&&m(p)}),g}function HE(a,l){const s=qE(a);if(s)return!s.id&&l&&(s.id=l),s.id||void 0}function qE(a){if(!a)return;const l=a.parentElement;if(l&&l.tagName==="LABEL")return l;const s=a.id;if(s){const f=a.nextElementSibling;if(f&&f.htmlFor===s)return f}const o=a.labels;return o&&o[0]}function Zx(a={}){const{id:l,implicit:s=!1,controlRef:o}=a,{controlId:f,registerControlId:d}=ph(),m=ri(l),y=s?f:void 0,g=sa(()=>Symbol()),p=x.useRef(!1),b=x.useRef(l!=null),j=qe(()=>{!p.current||d===Zt||(p.current=!1,d(g.current,void 0))});return Ve(()=>{if(d===Zt)return;let S;if(s){const w=o==null?void 0:o.current;xE(w)&&w.closest("label")!=null?S=l??null:S=y??m}else if(l!=null)b.current=!0,S=l;else if(b.current)S=m;else{j();return}if(S===void 0){j();return}p.current=!0,d(g.current,S)},[l,o,y,d,s,m,g,j]),x.useEffect(()=>j,[j]),f??m}function BE(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}const{userAgent:QE,platform:YE,maxTouchPoints:EC}=BE(),Fx=QE.toLowerCase();YE.toLowerCase();var _0;const gh=typeof CSS<"u"&&!!((_0=CSS.supports)!=null&&_0.call(CSS,"-webkit-backdrop-filter:none"));!gh&&Fx.includes("firefox");!gh&&Fx.includes("chrom");function Jx(a){var s;let l=a.activeElement;for(;((s=l==null?void 0:l.shadowRoot)==null?void 0:s.activeElement)!=null;)l=l.shadowRoot.activeElement;return l}function yh(a,l){var o;if(!a||!l)return!1;const s=(o=l.getRootNode)==null?void 0:o.call(l);if(a.contains(l))return!0;if(s&&vE(s)){let f=l;for(;f;){if(a===f)return!0;f=f.parentNode||f.host}}return!1}function Hd(a){return"composedPath"in a?a.composedPath()[0]:a.target}function md(a,l){return l<0||l>=a.length}function GE(a,l){return Tr(a.current,{disabledIndices:l})}function VE(a,l){return Tr(a.current,{decrement:!0,startingIndex:a.current.length,disabledIndices:l})}function Tr(a,{startingIndex:l=-1,decrement:s=!1,disabledIndices:o,amount:f=1}={}){let d=l;do d+=s?-f:f;while(d>=0&&d<=a.length-1&&qd(a,d,o));return d}function qd(a,l,s){if(typeof s=="function"?s(l):(s==null?void 0:s.includes(l))??!1)return!0;const f=a[l];return f?!KE(f)||f.matches(":disabled")?!0:!s&&(f.hasAttribute("disabled")||f.getAttribute("aria-disabled")==="true"):!1}function XE(a){return a.visibility==="hidden"||a.visibility==="collapse"}function KE(a,l=a?bE(a):null){return!a||!a.isConnected||!l||XE(l)?!1:typeof a.checkVisibility=="function"?a.checkVisibility():l.display!=="none"&&l.display!=="contents"}function Px(a){x.useEffect(a,Co)}const Nr=0;class xh{constructor(){pn(this,"currentId",Nr);pn(this,"clear",()=>{this.currentId!==Nr&&(clearTimeout(this.currentId),this.currentId=Nr)});pn(this,"disposeEffect",()=>this.clear)}static create(){return new xh}start(l,s){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Nr,s()},l)}isStarted(){return this.currentId!==Nr}}function Mo(){const a=sa(xh.create).current;return Px(a.disposeEffect),a}const so=null;class $E{constructor(){pn(this,"callbacks",[]);pn(this,"callbacksCount",0);pn(this,"nextId",1);pn(this,"startId",1);pn(this,"isScheduled",!1);pn(this,"tick",l=>{var f;this.isScheduled=!1;const s=this.callbacks,o=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,o>0)for(let d=0;d<s.length;d+=1)(f=s[d])==null||f.call(s,l)})}request(l){const s=this.nextId;return this.nextId+=1,this.callbacks.push(l),this.callbacksCount+=1,(!this.isScheduled||!1)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),s}cancel(l){const s=l-this.startId;s<0||s>=this.callbacks.length||(this.callbacks[s]=null,this.callbacksCount-=1)}}let ro=new $E;class gn{constructor(){pn(this,"currentId",so);pn(this,"cancel",()=>{this.currentId!==so&&(ro.cancel(this.currentId),this.currentId=so)});pn(this,"disposeEffect",()=>this.cancel)}static create(){return new gn}static request(l){return ro.request(l)}static cancel(l){return ro.cancel(l)}request(l){this.cancel(),this.currentId=ro.request(()=>{this.currentId=so,l()})}}function ZE(){const a=sa(gn.create).current;return Px(a.disposeEffect),a}function FE(a){return a==null?a:"current"in a?a.current:a}function Ix(a,l=!1){const s=ZE();return qe((o,f=null)=>{s.cancel();const d=FE(a);if(d==null)return;const m=d,y=()=>{sj.flushSync(o)};if(typeof m.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){o();return}function g(){Promise.all(m.getAnimations().map(p=>p.finished)).then(()=>{f!=null&&f.aborted||y()},()=>{if(f!=null&&f.aborted)return;if(m.getAnimations().some(b=>b.pending||b.playState!=="finished")){g();return}y()})}if(l){const p="data-starting-style";if(!m.hasAttribute(p)){s.request(g);return}const b=new MutationObserver(()=>{m.hasAttribute(p)||(b.disconnect(),g())});b.observe(m,{attributes:!0,attributeFilter:[p]}),f==null||f.addEventListener("abort",()=>b.disconnect(),{once:!0});return}s.request(g)})}function Wx(a){const{enabled:l=!0,open:s,ref:o,onComplete:f}=a,d=qe(f),m=Ix(o,s);x.useEffect(()=>{if(!l)return;const y=new AbortController;return m(d,y.signal),()=>{y.abort()}},[l,s,d,m])}let r0=(function(a){return a.startingStyle="data-starting-style",a.endingStyle="data-ending-style",a})({});const JE={"data-starting-style":""},PE={"data-ending-style":""},vh={transitionStatus(a){return a==="starting"?JE:a==="ending"?PE:null}};function ev(a,l=!1,s=!1){const[o,f]=x.useState(a&&l?"idle":void 0),[d,m]=x.useState(a);return a&&!d&&(m(!0),f("starting")),!a&&d&&o!=="ending"&&!s&&f("ending"),!a&&!d&&o==="ending"&&f(void 0),Ve(()=>{if(!a&&d&&o!=="ending"&&s){const y=gn.request(()=>{f("ending")});return()=>{gn.cancel(y)}}},[a,d,o,s]),Ve(()=>{if(!a||l)return;const y=gn.request(()=>{f(void 0)});return()=>{gn.cancel(y)}},[l,a]),Ve(()=>{if(!a||!l)return;a&&d&&o!=="idle"&&f("starting");const y=gn.request(()=>{f("idle")});return()=>{gn.cancel(y)}},[l,a,d,o]),{mounted:d,setMounted:m,transitionStatus:o}}function Lo({controlled:a,default:l,name:s,state:o="value"}){const{current:f}=x.useRef(a!==void 0),[d,m]=x.useState(l),y=f?a:d,g=x.useCallback(p=>{f||m(p)},[]);return[y,g]}function tv(a,l,s,o,f=!0,d){const{registerFieldControl:m}=mh(),y=sa(()=>Symbol());Ve(()=>{const g=y.current;if(!f){m(g,void 0);return}m(g,{controlRef:a,getValue:o,id:l,name:d,value:s})},[a,f,o,l,d,m,y,s]),Ve(()=>{const g=y.current;return()=>{m(g,void 0)}},[m,y])}const Uo="none",IE="trigger-press",WE="disabled",u0="missing",o0="initial";function ws(a,l,s,o){let f=!1,d=!1;const m=o??Da;return{reason:a,event:l??new Event("base-ui"),cancel(){f=!0},allowPropagation(){d=!0},get isCanceled(){return f},get isPropagationAllowed(){return d},trigger:s,...m}}const e3=x.forwardRef(function(l,s){const{render:o,className:f,id:d,name:m,value:y,disabled:g=!1,onValueChange:p,defaultValue:b,autoFocus:j=!1,style:S,...w}=l,{state:E,name:M,disabled:O,setTouched:z,setDirty:D,validityData:$,setFocused:_,setFilled:V,validationMode:ae,validation:Z}=mh(),{clearErrors:q}=$x(),J=O||g,Q=M??m,se={...E,disabled:J},{labelId:re}=ph(),ue=Zx({id:d});Ve(()=>{var N;const I=y!=null;(N=Z.inputRef.current)!=null&&N.value||I&&y!==""?V(!0):I&&y===""&&V(!1)},[Z.inputRef,V,y]);const le=x.useRef(null);Ve(()=>{j&&le.current===Jx(Ud(le.current))&&_(!0)},[j,_]);const[ne]=Lo({controlled:y,default:b,name:"FieldControl",state:"value"}),A=y!==void 0,X=A?ne:void 0,Y=qe(()=>{var I;return(I=Z.inputRef.current)==null?void 0:I.value});return tv(Z.inputRef,ue,X,Y,!J,m),qt("input",l,{ref:[s,le],state:se,props:[{id:ue,disabled:J,name:Q,ref:Z.inputRef,"aria-labelledby":re,autoFocus:j,...A?{value:X}:{defaultValue:b},onChange(I){const N=I.currentTarget.value;p==null||p(N,ws(Uo,I.nativeEvent)),D(N!==($.initialValue??"")),V(N!==""),I.nativeEvent.defaultPrevented||(q(Q),Z.change(N))},onFocus(){_(!0)},onBlur(I){z(!0),_(!1),ae==="onBlur"&&Z.commit(I.currentTarget.value)},onKeyDown(I){I.currentTarget.tagName==="INPUT"&&I.key==="Enter"&&(z(!0),Z.commit(I.currentTarget.value))}},w,I=>Z.getValidationProps(J,I)],stateAttributesMapping:Kx})}),t3=x.forwardRef(function(l,s){return r.jsx(e3,{ref:s,...l})}),nv=x.createContext(void 0);function Ho(){const a=x.useContext(nv);if(a===void 0)throw new Error(Ba(53));return a}const n3=500,Bd=16;function El(a,l,s){if(!a)return 0;const o=getComputedStyle(a),f=`${l}${s==="x"?"Inline":"Block"}`,d=parseFloat(o[`${f}Start`]);return s==="x"&&l==="margin"?d*2:d+parseFloat(o[`${f}End`])}const uo="base-ui-disable-scrollbar",av={className:uo,getElement(a){return r.jsx("style",{nonce:a,href:uo,precedence:"base-ui:low",children:`.${uo}{scrollbar-width:none}.${uo}::-webkit-scrollbar{display:none}`})}},Ii=a=>l=>l?{[a]:""}:null,bh={hasOverflowX:Ii("data-has-overflow-x"),hasOverflowY:Ii("data-has-overflow-y"),overflowXStart:Ii("data-overflow-x-start"),overflowXEnd:Ii("data-overflow-x-end"),overflowYStart:Ii("data-overflow-y-start"),overflowYEnd:Ii("data-overflow-y-end"),cornerHidden:()=>null},a3=x.createContext(void 0),l3={disableStyleElements:!1};function i3(){return x.useContext(a3)??l3}const s3={x:0,y:0},c0={width:0,height:0},r3={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},u3={x:!0,y:!0,corner:!0},o3=x.forwardRef(function(l,s){const{render:o,className:f,overflowEdgeThreshold:d,style:m,...y}=l,{xStart:g,xEnd:p,yStart:b,yEnd:j}=c3(d),S=ri(),w=Mo(),E=Mo(),{nonce:M,disableStyleElements:O}=i3(),[z,D]=x.useState(!1),[$,_]=x.useState(!1),[V,ae]=x.useState(!1),[Z,q]=x.useState(!1),[J,Q]=x.useState(!1),[se,re]=x.useState(c0),[ue,le]=x.useState(c0),[ne,A]=x.useState(r3),[X,Y]=x.useState(u3),F=x.useRef(null),I=x.useRef(null),N=x.useRef(null),L=x.useRef(null),K=x.useRef(null),ee=x.useRef(null),ie=x.useRef(null),oe=x.useRef(null),ce=x.useRef(0),ge=x.useRef(0),ye=x.useRef(0),Xe=x.useRef(0),Be=x.useRef("vertical"),et=x.useRef(s3),ot=x.useRef(null);function Ee(Ae){const Ke=Ae?ae:_,Je=Ae?w:E;Ke(!0),Je.start(n3,()=>{Ke(!1)})}const Nt=qe(Ae=>{const Ke=Ae.x-et.current.x,Je=Ae.y-et.current.y;et.current=Ae,Je!==0&&Ee(!0),Ke!==0&&Ee(!1)}),Bt=qe(()=>{const Ae=I.current;Ae&&ot.current===null&&(ot.current=Ae.style.scrollSnapType,Ae.style.scrollSnapType="none")}),oi=qe(Ae=>{if(Ae.button!==0)return;if(oe.current!==null){const rn=Be.current==="vertical"?K.current:ee.current;if(rn!=null&&rn.hasPointerCapture(oe.current))return}oe.current=Ae.pointerId,ce.current=Ae.clientY,ge.current=Ae.clientX,Be.current=Ae.currentTarget.getAttribute("data-orientation");const Ke=I.current;Ke&&(ye.current=Ke.scrollTop,Xe.current=Ke.scrollLeft,Bt());const Je=Be.current==="vertical"?K.current:ee.current;Je==null||Je.setPointerCapture(Ae.pointerId)}),Ya=qe(Ae=>{if(Ae.pointerId!==oe.current)return;oe.current=null,(Be.current==="vertical"?ae:_)(!1),ot.current!==null&&(I.current&&(I.current.style.scrollSnapType=ot.current),ot.current=null);const Ke=Be.current==="vertical"?K.current:ee.current;Ke!=null&&Ke.hasPointerCapture(Ae.pointerId)&&Ke.releasePointerCapture(Ae.pointerId)}),Zn=qe(Ae=>{if(Ae.pointerId!==oe.current)return;if(Ae.buttons%2===0){Ya(Ae);return}const Ke=I.current;if(!Ke)return;const Je=Be.current==="vertical",rn=Je?K.current:ee.current,ua=Je?N.current:L.current;if(!rn||!ua)return;const ci=Je?"y":"x",fi=El(ua,"padding",ci),Jn=El(rn,"margin",ci),At=Je?rn.offsetHeight:rn.offsetWidth,wt=(Je?ua.offsetHeight:ua.offsetWidth)-At-fi-Jn,di=Je?Ae.clientY-ce.current:Ae.clientX-ge.current,Cs=wt<=0?0:di/wt,Ts=Je?Ke.scrollHeight:Ke.scrollWidth,Pn=Je?Ke.clientHeight:Ke.clientWidth,ca=(Je?ye.current:Xe.current)+Cs*(Ts-Pn);Je?Ke.scrollTop=ca:Ke.scrollLeft=ca,Ae.preventDefault(),Ee(Je)});function Fn(Ae){q(Ae.pointerType==="touch")}function Un(Ae){if(Fn(Ae),Ae.pointerType!=="touch"){const Ke=yh(F.current,Ae.target);D(Ke)}}const ra=x.useMemo(()=>({scrolling:$||V,hasOverflowX:!X.x,hasOverflowY:!X.y,overflowXStart:ne.xStart,overflowXEnd:ne.xEnd,overflowYStart:ne.yStart,overflowYEnd:ne.yEnd,cornerHidden:X.corner}),[$,V,X.x,X.y,X.corner,ne]),Ml={role:"presentation",onPointerEnter:Un,onPointerMove:Un,onPointerDown:Fn,onPointerLeave(){D(!1)},style:{position:"relative","--scroll-area-corner-height":`${se.height}px`,"--scroll-area-corner-width":`${se.width}px`}},Mt=qt("div",l,{state:ra,ref:[s,F],props:[Ml,y],stateAttributesMapping:bh}),Es=x.useMemo(()=>({handlePointerDown:oi,handlePointerMove:Zn,handlePointerUp:Ya,handleScroll:Nt,disableViewportSnap:Bt,cornerSize:se,setCornerSize:re,thumbSize:ue,setThumbSize:le,hasMeasuredScrollbar:J,setHasMeasuredScrollbar:Q,touchModality:Z,cornerRef:ie,scrollingX:$,scrollingY:V,hovering:z,setHovering:D,viewportRef:I,scrollbarYRef:N,scrollbarXRef:L,thumbYRef:K,thumbXRef:ee,rootId:S,hiddenState:X,setHiddenState:Y,overflowEdges:ne,setOverflowEdges:A,viewportState:ra,overflowEdgeThreshold:{xStart:g,xEnd:p,yStart:b,yEnd:j}}),[oi,Zn,Ya,Nt,Bt,se,ue,J,Z,$,V,z,S,X,ne,ra,g,p,b,j]);return r.jsxs(nv.Provider,{value:Es,children:[!O&&av.getElement(M),Mt]})});function c3(a){const l=typeof a=="number"?{xStart:a,xEnd:a,yStart:a,yEnd:a}:a;return{xStart:Math.max(0,(l==null?void 0:l.xStart)||0),xEnd:Math.max(0,(l==null?void 0:l.xEnd)||0),yStart:Math.max(0,(l==null?void 0:l.yStart)||0),yEnd:Math.max(0,(l==null?void 0:l.yEnd)||0)}}const f3=x.createContext(void 0),d3=x.createContext(void 0);function Sh(){const a=x.useContext(d3);return(a==null?void 0:a.direction)??"ltr"}function lv(a,l=Number.MIN_SAFE_INTEGER,s=Number.MAX_SAFE_INTEGER){return Math.max(l,Math.min(a,s))}const f0=1;function d0(a,l){if(l<=0)return 0;const s=lv(a,0,l),o=s,f=l-s,d=o<=f0,m=f<=f0;return d&&m?o<=f?0:l:d?0:m?l:s}const iv=["--scroll-area-overflow-x-start","--scroll-area-overflow-x-end","--scroll-area-overflow-y-start","--scroll-area-overflow-y-end"];let h0=!1;function h3(){h0||gh||(typeof CSS<"u"&&"registerProperty"in CSS&&iv.forEach(a=>{try{CSS.registerProperty({name:a,syntax:"<length>",inherits:!1,initialValue:"0px"})}catch{}}),h0=!0)}const m3=x.forwardRef(function(l,s){const{render:o,className:f,style:d,...m}=l,{viewportRef:y,scrollbarYRef:g,scrollbarXRef:p,thumbYRef:b,thumbXRef:j,cornerRef:S,cornerSize:w,setCornerSize:E,setThumbSize:M,rootId:O,setHiddenState:z,hiddenState:D,setHasMeasuredScrollbar:$,handleScroll:_,touchModality:V,setHovering:ae,setOverflowEdges:Z,overflowEdgeThreshold:q,viewportState:J}=Ho(),Q=Sh(),se=x.useRef(!0),re=x.useRef([NaN,NaN,NaN,NaN]),ue=Mo(),le=Mo(),ne=qe(()=>{const I=y.current,N=g.current,L=p.current,K=b.current,ee=j.current,ie=S.current;if(!I)return;const oe=I.scrollHeight,ce=I.scrollWidth,ge=I.clientHeight,ye=I.clientWidth,Xe=I.scrollTop,Be=I.scrollLeft,et=re.current,ot=Number.isNaN(et[0]);if(et[0]=ge,et[1]=oe,et[2]=ye,et[3]=ce,ot&&$(!0),oe===0||ce===0)return;const Ee=p3(I),Nt=Ee.y,Bt=Ee.x,oi=ye/ce,Ya=ge/oe,Zn=Math.max(0,ce-ye),Fn=Math.max(0,oe-ge);let Un=0,ra=0;Bt||(Un=d0(Q==="rtl"?-Be:Be,Zn),ra=Zn-Un);const Ml=Nt?0:d0(Xe,Fn),Mt=Nt?0:Fn-Ml,Es=Bt?0:ye,Ae=Nt?0:ge;let Ke=0,Je=0;!Bt&&!Nt&&(Ke=(N==null?void 0:N.offsetWidth)||0,Je=(L==null?void 0:L.offsetHeight)||0);const rn=w.width===0&&w.height===0,ua=rn?Ke:0,ci=rn?Je:0,fi=El(L,"padding","x"),Jn=El(N,"padding","y"),At=El(ee,"margin","x"),xn=El(K,"margin","y"),wt=Es-fi-At,di=Ae-Jn-xn,Cs=L?Math.min(L.offsetWidth-ua,wt):wt,Ts=N?Math.min(N.offsetHeight-ci,di):di,Pn=Math.max(Bd,Cs*oi),oa=Math.max(Bd,Ts*Ya);if(M(Rt=>oo(Rt,{width:Pn,height:oa})),N&&K){const Rt=N.offsetHeight-oa-Jn-xn,Hn=m0(K,"--scroll-area-thumb-height",Xe,Fn,oe,oa,Rt);K.style.transform=`translate3d(0,${Hn}px,0)`}if(L&&ee){const Rt=L.offsetWidth-Pn-fi-At,Hn=Q==="rtl"?-Be:Be,Yr=m0(ee,"--scroll-area-thumb-width",Hn,Zn,ce,Pn,Rt);ee.style.transform=`translate3d(${Q==="rtl"?-Yr:Yr}px,0,0)`}const ca=[Un,ra,Ml,Mt];iv.forEach((Rt,Hn)=>{I.style.setProperty(Rt,`${ca[Hn]}px`)}),ie&&E(Rt=>oo(Rt,{width:Ke,height:Je})),z(Rt=>oo(Rt,Ee));const fa={xStart:!Bt&&Un>q.xStart,xEnd:!Bt&&ra>q.xEnd,yStart:!Nt&&Ml>q.yStart,yEnd:!Nt&&Mt>q.yEnd};Z(Rt=>oo(Rt,fa))});Ve(()=>{h3()},[]),Ve(()=>{queueMicrotask(ne)},[ne,D,Q,q.xStart,q.xEnd,q.yStart,q.yEnd]),Ve(()=>{var I;(I=y.current)!=null&&I.matches(":hover")&&ae(!0)},[y,ae]),Ve(()=>{const I=y.current;if(typeof ResizeObserver>"u"||!I)return;let N=!1;const L=new ResizeObserver(()=>{if(!N){N=!0;const K=re.current;if(K[0]===I.clientHeight&&K[1]===I.scrollHeight&&K[2]===I.clientWidth&&K[3]===I.scrollWidth)return}ne()});return L.observe(I),le.start(0,()=>{const K=I.getAnimations({subtree:!0});K.length!==0&&Promise.allSettled(K.map(ee=>ee.finished)).then(ne).catch(()=>{})}),()=>{L.disconnect(),le.clear()}},[ne,y,le]);function A(){se.current=!1}const X={role:"presentation",...O&&{"data-id":`${O}-viewport`},tabIndex:D.x&&D.y?-1:0,className:av.className,style:{overflow:"scroll"},onScroll(){y.current&&(ne(),(V||!se.current)&&_({x:y.current.scrollLeft,y:y.current.scrollTop}),ue.start(100,()=>{se.current=!0}))},onWheel:A,onPointerMove:A,onPointerEnter:A,onKeyDown:A},Y=qt("div",l,{ref:[s,y],state:J,props:[X,m],stateAttributesMapping:bh}),F=x.useMemo(()=>({computeThumbPosition:ne}),[ne]);return r.jsx(f3.Provider,{value:F,children:Y})});function p3(a){const l=a.clientHeight>=a.scrollHeight,s=a.clientWidth>=a.scrollWidth;return{y:l,x:s,corner:l||s}}function oo(a,l){for(const s in l)if(a[s]!==l[s])return l;return a}function m0(a,l,s,o,f,d,m){const y=lv(s,0,o),g=s-y,p=Math.max(Bd,d*f/(f+Math.abs(g)));return a.style.setProperty(l,g?`${p}px`:""),(o?y/o*m:0)+(g>0?d-p:0)}function sv(a,l,s,o){return a.addEventListener(l,s,o),()=>{a.removeEventListener(l,s,o)}}const rv=x.createContext(void 0);function g3(){const a=x.useContext(rv);if(a===void 0)throw new Error(Ba(54));return a}const y3=x.forwardRef(function(l,s){const{render:o,className:f,orientation:d="vertical",keepMounted:m=!1,style:y,...g}=l,{hovering:p,scrollingX:b,scrollingY:j,hiddenState:S,scrollbarYRef:w,scrollbarXRef:E,viewportRef:M,thumbYRef:O,thumbXRef:z,handlePointerDown:D,handlePointerUp:$,handleScroll:_,disableViewportSnap:V,rootId:ae,thumbSize:Z,hasMeasuredScrollbar:q,viewportState:J}=Ho(),Q=d==="vertical",se={...J,hovering:p,scrolling:Q?j:b,orientation:d},re=Sh(),ue=!q&&!m,le=Q?S.y:S.x,ne=m||!le;x.useEffect(()=>{if(!ne)return;const Y=M.current,F=Q?w.current:E.current;if(!F)return;function I(N){if(!Y||N.ctrlKey)return;const L=!Q,K=L?"scrollLeft":"scrollTop",ee=L?N.deltaX:N.deltaY;if(ee===0)return;const ie=L?Y.scrollWidth-Y.clientWidth:Y.scrollHeight-Y.clientHeight,oe=L&&re==="rtl"?-ie:0,ce=L&&re==="rtl"?0:ie,ge=Y[K];ge<=oe&&ee<0||ge>=ce&&ee>0||(N.preventDefault(),Y[K]=Math.min(ce,Math.max(oe,ge+ee)),_({x:Y.scrollLeft,y:Y.scrollTop}))}return sv(F,"wheel",I,{passive:!1})},[re,_,Q,E,w,ne,M]);const A={...ae&&{"data-id":`${ae}-scrollbar`},onPointerDown(Y){if(Y.button!==0)return;const F=Hd(Y.nativeEvent),I=Q?O.current:z.current;if(I&&yh(I,F))return;const N=M.current;if(!N)return;const L=Q?w.current:E.current;if(!I||!L)return;const K=Q?"y":"x",ee=El(I,"margin",K),ie=El(L,"padding",K),oe=Q?I.offsetHeight:I.offsetWidth,ce=L.getBoundingClientRect(),ge=Q?Y.clientY-ce.top-oe/2-ie+ee/2:Y.clientX-ce.left-oe/2-ie+ee/2,ye=Q?N.scrollHeight:N.scrollWidth,Xe=Q?N.clientHeight:N.clientWidth,et=(Q?L.offsetHeight:L.offsetWidth)-oe-ie-ee;if(et<=0)return;const ot=ge/et,Ee=ye-Xe;V(),Q?N.scrollTop=ot*Ee:re==="rtl"?N.scrollLeft=-(1-ot)*Ee:N.scrollLeft=ot*Ee,_({x:N.scrollLeft,y:N.scrollTop}),D(Y)},onPointerUp:$,onPointerCancel:$,style:{position:"absolute",touchAction:"none",WebkitUserSelect:"none",userSelect:"none",visibility:ue?"hidden":void 0,...Q?{top:0,bottom:"var(--scroll-area-corner-height)",insetInlineEnd:0,"--scroll-area-thumb-height":`${Z.height}px`}:{insetInlineStart:0,insetInlineEnd:"var(--scroll-area-corner-width)",bottom:0,"--scroll-area-thumb-width":`${Z.width}px`}}},X=qt("div",l,{ref:[s,Q?w:E],state:se,props:[A,g],stateAttributesMapping:bh});return ne?r.jsx(rv.Provider,{value:d,children:X}):null}),x3=x.forwardRef(function(l,s){const{render:o,className:f,style:d,...m}=l,{thumbYRef:y,thumbXRef:g,handlePointerDown:p,handlePointerMove:b,handlePointerUp:j,scrollingX:S,scrollingY:w,hasMeasuredScrollbar:E}=Ho(),M=g3(),O=M==="vertical";return qt("div",l,{ref:[s,O?y:g],state:{scrolling:O?w:S,orientation:M},props:[{onPointerDown:p,onPointerMove:b,onPointerUp:j,onPointerCancel:j,style:{visibility:E?void 0:"hidden",...O?{height:"var(--scroll-area-thumb-height)"}:{width:"var(--scroll-area-thumb-width)"}}},m]})}),v3=x.forwardRef(function(l,s){const{render:o,className:f,style:d,...m}=l,{cornerRef:y,cornerSize:g,hiddenState:p}=Ho(),b=qt("div",l,{ref:[s,y],props:[{style:{position:"absolute",bottom:0,insetInlineEnd:0,width:g.width,height:g.height}},m]});return p.corner?null:b});function kn({className:a,...l}){return r.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:r.jsx("table",{"data-slot":"table",className:be("w-full caption-bottom text-sm",a),...l})})}function Dn({className:a,...l}){return r.jsx("thead",{"data-slot":"table-header",className:be("[&_tr]:border-b",a),...l})}function _n({className:a,...l}){return r.jsx("tbody",{"data-slot":"table-body",className:be("[&_tr:last-child]:border-0",a),...l})}function ut({className:a,...l}){return r.jsx("tr",{"data-slot":"table-row",className:be("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",a),...l})}function je({className:a,...l}){return r.jsx("th",{"data-slot":"table-head",className:be("h-12 px-3 text-left align-middle text-xs font-medium tracking-wider whitespace-nowrap text-muted-foreground uppercase [&:has([role=checkbox])]:pr-0",a),...l})}function Ne({className:a,...l}){return r.jsx("td",{"data-slot":"table-cell",className:be("p-3 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",a),...l})}const uv=x.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function b3(){return x.useContext(uv)}function ov(a={}){const{guess:l,label:s,metadata:o,textRef:f,index:d}=a,{register:m,unregister:y,subscribeMapChange:g,nextIndexRef:p}=b3(),b=x.useRef(-1),[j,S]=x.useState(d==null&&l?()=>{if(b.current===-1){const O=p.current;p.current+=1,b.current=O}return b.current}:-1),w=d??j,E=x.useRef(null),M=x.useCallback(O=>{const z=E.current;z&&y(z),E.current=O,O&&m(O,{metadata:o??null,index:d??null,label:s,textRef:f})},[d,m,y,o,s,f]);return Ve(()=>{if(d==null)return g(O=>{var D;const z=E.current?(D=O.get(E.current))==null?void 0:D.index:null;z!=null&&S(z)})},[d,g]),{ref:M,index:w}}function S3(a){const l=sa(j3,a).current;return l.next=a,Ve(l.effect),l}function j3(a){const l={current:a,next:a,effect:()=>{l.current=l.next}};return l}const cv={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},N3={...cv,position:"fixed",top:0,left:0},w3={...cv,position:"absolute"},Qd="ArrowUp",Yd="ArrowDown",Gd="ArrowLeft",Vd="ArrowRight",Xd="Home",Kd="End",E3=new Set([Qd,Yd,Gd,Vd,Xd,Kd]),C3="Shift",T3=[C3,"Control","Alt","Meta"];function M3(a){return Do(a)&&a.tagName==="INPUT"}function p0(a){return!!(M3(a)&&a.selectionStart!=null||Do(a)&&a.tagName==="TEXTAREA")}function g0(a,l,s,o){if(!a||!l||!l.scrollTo)return;let f=a.scrollLeft,d=a.scrollTop;const m=a.clientWidth<a.scrollWidth,y=a.clientHeight<a.scrollHeight;if(m&&o!=="vertical"){const g=y0(a,l,"left"),p=co(a),b=co(l);s==="ltr"&&(g+l.offsetWidth+b.scrollMarginRight>a.scrollLeft+a.clientWidth-p.scrollPaddingRight?f=g+l.offsetWidth+b.scrollMarginRight-a.clientWidth+p.scrollPaddingRight:g-b.scrollMarginLeft<a.scrollLeft+p.scrollPaddingLeft&&(f=g-b.scrollMarginLeft-p.scrollPaddingLeft)),s==="rtl"&&(g-b.scrollMarginLeft<a.scrollLeft+p.scrollPaddingLeft?f=g-b.scrollMarginLeft-p.scrollPaddingLeft:g+l.offsetWidth+b.scrollMarginRight>a.scrollLeft+a.clientWidth-p.scrollPaddingRight&&(f=g+l.offsetWidth+b.scrollMarginRight-a.clientWidth+p.scrollPaddingRight))}if(y&&o!=="horizontal"){const g=y0(a,l,"top"),p=co(a),b=co(l);g-b.scrollMarginTop<a.scrollTop+p.scrollPaddingTop?d=g-b.scrollMarginTop-p.scrollPaddingTop:g+l.offsetHeight+b.scrollMarginBottom>a.scrollTop+a.clientHeight-p.scrollPaddingBottom&&(d=g+l.offsetHeight+b.scrollMarginBottom-a.clientHeight+p.scrollPaddingBottom)}a.scrollTo({left:f,top:d,behavior:"auto"})}function y0(a,l,s){const o=s==="left"?"offsetLeft":"offsetTop";let f=0;for(;l.offsetParent&&(f+=l[o],l.offsetParent!==a);)l=l.offsetParent;return f}function co(a){const l=getComputedStyle(a);return{scrollMarginTop:parseFloat(l.scrollMarginTop)||0,scrollMarginRight:parseFloat(l.scrollMarginRight)||0,scrollMarginBottom:parseFloat(l.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(l.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(l.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(l.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(l.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(l.scrollPaddingLeft)||0}}function A3(a){return Ax(19)?a:a?"true":void 0}function fv(a){const{children:l,elementsRef:s,labelsRef:o,onMapChange:f}=a,d=qe(f),[,m]=x.useState(!1),y=sa(O3).current,g=sa(R3).current,p=x.useRef(0),b=x.useRef(!0),j=x.useRef([]),S=x.useRef(null),w=qe(()=>{b.current||(b.current=!0,m(V=>!V))}),E=qe((V,ae)=>{g.set(V,ae),w()}),M=qe(V=>{g.delete(V),w()}),O=qe(V=>{const ae=new Map;return s.current.length=0,o&&(o.current.length=0),V.forEach(Z=>{var q,J;ae.set(Z.element,{...Z.registration.metadata??{},index:Z.index}),s.current[Z.index]=Z.element,o&&(o.current[Z.index]=Z.registration.label!==void 0?Z.registration.label:((J=(q=Z.registration.textRef)==null?void 0:q.current)==null?void 0:J.textContent)??Z.element.textContent)}),p.current=s.current.length,ae});function z(V){var q;if((q=S.current)==null||q.disconnect(),S.current=null,typeof MutationObserver!="function"||V.length<2)return;const ae=new MutationObserver(J=>{if(!D3(J))return;let Q=null;for(const se of V)if(se.isConnected){if(Q&&dv(Q,se)>0){ae.disconnect(),w();return}Q=se}});S.current=ae;const Z=new Set;for(let J=1;J<V.length;J+=1){const Q=k3(V[J-1],V[J]);Q&&Z.add(Q)}Z.forEach(J=>ae.observe(J,{childList:!0}))}const D=qe(()=>{const[V,ae]=z3(g),Z=O(V);z(ae),j.current=V,b.current=!1,y.forEach(q=>q(Z)),d(Z)});Ve(()=>(b.current||O(j.current),()=>{s.current=[],o&&(o.current=[])}),[s,o,O]),Ve(()=>{b.current&&D()}),Ve(()=>()=>{var V;(V=S.current)==null||V.disconnect(),b.current=!0},[]);const $=qe(V=>(y.add(V),()=>{y.delete(V)})),_=x.useMemo(()=>({register:E,unregister:M,subscribeMapChange:$,nextIndexRef:p}),[E,M,$,p]);return r.jsx(uv.Provider,{value:_,children:l})}function R3(){return new Map}function O3(){return new Set}function z3(a){const l=new Set,s=[],o=[];a.forEach((d,m)=>{if(!m.isConnected)return;const y=d.index,g={index:y??-1,element:m,registration:d};y===null?o.push(g):y>=0&&(l.add(y),s.push(g))});let f=0;return o.sort((d,m)=>dv(d.element,m.element)),o.forEach(d=>{for(;l.has(f);)f+=1;d.index=f,s.push(d),f+=1}),l.size>0&&s.sort((d,m)=>d.index-m.index),[s,o.map(d=>d.element)]}function k3(a,l){let s=a.parentElement;for(;s&&!s.contains(l);)s=s.parentElement;return s}function D3(a){for(const l of a)for(let s=0;s<l.removedNodes.length;s+=1)if(l.removedNodes[s].isConnected)return!0;return!1}function dv(a,l){return a.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}function _3(a,l){const s=x.useRef(a),o=qe(l);Ve(()=>{s.current!==a&&o(s.current),s.current=a},[a,o])}function L3(a={}){const{highlightItemOnHover:l,highlightedIndex:s,onHighlightedIndexChange:o}=hh(),{ref:f,index:d}=ov(a),m=s===d,y=x.useRef(null),g=gs(f,y);return{compositeProps:{tabIndex:m?0:-1,onFocus(){o(d)},onMouseMove(){const b=y.current;if(!l||!b)return;const j=b.hasAttribute("disabled")||b.ariaDisabled==="true";!m&&!j&&b.focus()}},compositeRef:g,index:d}}function U3(a){return a==null||a.hasAttribute("disabled")||a.getAttribute("aria-disabled")==="true"}const hv="data-composite-item-active",H3=[];function q3(a){const{loopFocus:l=!0,orientation:s="both",grid:o,onLoop:f,direction:d,highlightedIndex:m,onHighlightedIndexChange:y,rootRef:g,enableHomeAndEndKeys:p=!1,stopEventPropagation:b,disabledIndices:j,modifierKeys:S=H3}=a,[w,E]=x.useState(0),M=o!=null,O=x.useRef(null),z=gs(O,g),D=x.useRef([]),$=x.useRef(!1),_=m??w,V=qe((Q,se=!1)=>{if((y??E)(Q),se){const re=D.current[Q];g0(O.current,re,d,s)}}),ae=qe(Q=>{var le;if(Q.size===0||$.current)return;$.current=!0;const se=Array.from(Q.keys()),re=se.find(ne=>ne==null?void 0:ne.hasAttribute(hv))??null,ue=re?((le=Q.get(re))==null?void 0:le.index)??-1:-1;if(ue!==-1)V(ue);else if(qd(se,_,j)){const ne=Tr(se,{disabledIndices:j});md(se,ne)||V(ne)}g0(O.current,re,d,s)});Ve(()=>{if(j==null||m!=null||!$.current)return;const Q=D.current;if(qd(Q,_,j)){const se=Tr(Q,{disabledIndices:j});md(Q,se)||V(se)}},[j,m,_,D,V]);const Z=qe((Q,se,re)=>f?f(Q,se,re,D):re),q=qe(Q=>{const se=Q.key===Xd||Q.key===Kd;if(!E3.has(Q.key)||!p&&se||B3(Q,S)||!O.current)return;const ue=d==="rtl",le=ue?Gd:Vd,ne=ue?Vd:Gd,A=s==="vertical"?Yd:le,X=s==="vertical"?Qd:ne,Y=Hd(Q.nativeEvent);if(Y!=null&&p0(Y)&&!U3(Y)){const ee=Y.selectionStart,ie=Y.selectionEnd,oe=Y.value;if(ee==null||Q.shiftKey||ee!==ie||Q.key!==X&&ee<oe.length||Q.key!==A&&ee>0)return}let F=_;const I=GE(D,j),N=VE(D,j);o!=null&&(F=o({disabledIndices:j,elementsRef:D,event:Q,highlightedIndex:_,loopFocus:l,maxIndex:N,minIndex:I,onLoop:Z,orientation:s,rtl:ue}));const L=s!=="vertical"&&Q.key===le||s!=="horizontal"&&Q.key===Yd,K=s!=="vertical"&&Q.key===ne||s!=="horizontal"&&Q.key===Qd;p&&(Q.key===Xd?F=I:Q.key===Kd&&(F=N)),F===_&&(L||K)&&(l&&F===N&&L?(F=I,f&&(F=f(Q,_,F,D))):l&&F===I&&K?(F=N,f&&(F=f(Q,_,F,D))):F=Tr(D.current,{startingIndex:F,decrement:K,disabledIndices:j})),F!==_&&!md(D.current,F)&&(b&&Q.stopPropagation(),(M||se||L||K)&&Q.preventDefault(),V(F,!0),queueMicrotask(()=>{var ee;(ee=D.current[F])==null||ee.focus()}))});return{props:{ref:z,onFocus(Q){const se=O.current,re=Hd(Q.nativeEvent);!se||re==null||!p0(re)||re.setSelectionRange(0,re.value.length)},onKeyDown:q},highlightedIndex:_,onHighlightedIndexChange:V,elementsRef:D,onMapChange:ae,relayKeyboardEvent:q}}function B3(a,l){for(const s of T3)if(!l.includes(s)&&a.getModifierState(s))return!0;return!1}function Q3(a){const{render:l,className:s,style:o,refs:f=Co,props:d=Co,state:m=Da,stateAttributesMapping:y,highlightedIndex:g,onHighlightedIndexChange:p,orientation:b,grid:j,loopFocus:S,onLoop:w,enableHomeAndEndKeys:E,onMapChange:M,stopEventPropagation:O=!0,rootRef:z,disabledIndices:D,modifierKeys:$,highlightItemOnHover:_=!1,tag:V="div",...ae}=a,Z=Sh(),{props:q,highlightedIndex:J,onHighlightedIndexChange:Q,elementsRef:se,onMapChange:re,relayKeyboardEvent:ue}=q3({grid:j,loopFocus:S,onLoop:w,orientation:b,highlightedIndex:g,onHighlightedIndexChange:p,rootRef:z,stopEventPropagation:O,enableHomeAndEndKeys:E,direction:Z,disabledIndices:D,modifierKeys:$}),le=qt(V,a,{state:m,ref:f,props:[q,...d,ae],stateAttributesMapping:y}),ne=x.useMemo(()=>({highlightedIndex:J,onHighlightedIndexChange:Q,highlightItemOnHover:_,relayKeyboardEvent:ue}),[J,Q,_,ue]);return r.jsx(Xx.Provider,{value:ne,children:r.jsx(fv,{elementsRef:se,onMapChange:A=>{M==null||M(A),re(A)},children:le})})}const mv=x.createContext(void 0);function Y3(){const a=x.useContext(mv);if(a===void 0)throw new Error(Ba(63));return a}const pv={...Kx,checked(a){return a?{"data-checked":""}:{"data-unchecked":""}}},G3=x.forwardRef(function(l,s){const{checked:o,className:f,defaultChecked:d,"aria-labelledby":m,form:y,id:g,inputRef:p,name:b,nativeButton:j=!1,onCheckedChange:S,readOnly:w=!1,required:E=!1,disabled:M=!1,render:O,uncheckedValue:z,value:D,style:$,..._}=l,{clearErrors:V}=$x(),{state:ae,setTouched:Z,setDirty:q,validityData:J,setFilled:Q,setFocused:se,validationMode:re,disabled:ue,name:le,validation:ne}=mh(),{labelId:A}=ph(),X=ue||M,Y=le??b,F=x.useRef(null),I=gs(F,p,ne.inputRef),N=x.useRef(null),L=ri(),K=Zx({id:g,implicit:!1,controlRef:N}),ee=j?void 0:K,[ie,oe]=Lo({controlled:o,default:!!d,name:"Switch",state:"checked"});tv(N,L,ie,void 0,!X,b),Ve(()=>{F.current&&Q(F.current.checked)},[Q]),_3(ie,()=>{V(Y),q(ie!==J.initialValue),Q(ie),ne.change(ie)});const{getButtonProps:ce,buttonRef:ge}=_o({disabled:X,native:j}),ye=UE(m,A,F,!j,ee),Xe={id:j?K:L,role:"switch","aria-checked":ie,"aria-readonly":w||void 0,"aria-required":E||void 0,"aria-labelledby":ye,onFocus(){X||se(!0)},onBlur(){const Ee=F.current;!Ee||X||(Z(!0),se(!1),re==="onBlur"&&ne.commit(Ee.checked))},onClick(Ee){if(w||X)return;Ee.preventDefault();const Nt=F.current;Nt&&bo(Nt,Ee)}},Be={...ne.getValidationProps(X),checked:ie,disabled:X,form:y,id:ee,name:Y,required:E,style:Y?w3:N3,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:I,onChange(Ee){if(Ee.nativeEvent.defaultPrevented)return;if(w){Ee.preventDefault();return}const Nt=Ee.currentTarget.checked,Bt=ws(Uo,Ee.nativeEvent);S==null||S(Nt,Bt),!Bt.isCanceled&&oe(Nt)},onClick(Ee){Ee.stopPropagation()},onFocus(){var Ee;(Ee=N.current)==null||Ee.focus()},...D!==void 0?{value:D}:Da},et=x.useMemo(()=>({...ae,checked:ie,disabled:X,readOnly:w,required:E}),[ae,ie,X,w,E]),ot=qt("span",l,{state:et,ref:[s,N,ge],props:[Xe,_,ce,Ee=>ne.getValidationProps(X,Ee)],stateAttributesMapping:pv});return r.jsxs(mv.Provider,{value:et,children:[ot,!ie&&Y&&z!==void 0&&r.jsx("input",{type:"hidden",form:y,name:Y,value:z,disabled:X}),r.jsx("input",{...Be,suppressHydrationWarning:!0})]})}),V3=x.forwardRef(function(l,s){const{render:o,className:f,style:d,...m}=l,y=Y3();return qt("span",l,{state:y,ref:s,stateAttributesMapping:pv,props:m})}),gv=x.createContext(void 0);function jh(){const a=x.useContext(gv);if(a===void 0)throw new Error(Ba(64));return a}const qo={tabActivationDirection:a=>({"data-activation-direction":a})},X3=x.forwardRef(function(l,s){const{className:o,defaultValue:f=0,onValueChange:d,orientation:m="horizontal",render:y,value:g,style:p,...b}=l,j=l.defaultValue!==void 0,S=x.useRef([]),[w,E]=x.useState(()=>new Map),[M,O]=Lo({controlled:g,default:f,name:"Tabs",state:"value"}),z=g!==void 0,[D,$]=x.useState(()=>new Map),_=x.useRef(void 0),V=x.useCallback(ge=>$d(D,ge),[D]),[ae,Z]=x.useState(()=>({previousValue:M,tabActivationDirection:"none"})),{previousValue:q,tabActivationDirection:J}=ae;let Q=J,se=!1;q!==M&&(Q=x0(q,M,m,D),se=q!=null&&M!=null&&V(M)==null);const re=se?q:M,ue=q!==re||J!==Q;Ve(()=>{ue&&Z({previousValue:re,tabActivationDirection:Q})},[re,ue,Q]);const le=qe((ge,ye)=>{const Xe=x0(M,ge,m,D);ye.activationDirection=Xe,d==null||d(ge,ye),!ye.isCanceled&&O(ge)}),ne=qe((ge,ye)=>{d==null||d(ge,ws(ye,void 0,void 0,{activationDirection:"none"}))}),A=qe((ge,ye)=>(E(Xe=>{const Be=new Map(Xe);return Be.set(ge,ye),Be}),()=>{E(Xe=>{if(Xe.get(ge)!==ye)return Xe;const Be=new Map(Xe);return Be.delete(ge),Be})})),X=x.useCallback(ge=>w.get(ge),[w]),Y=x.useCallback(ge=>{for(const ye of D.values())if(ge===ye.value)return ye.id},[D]),F=x.useMemo(()=>({getTabElementBySelectedValue:V,getTabIdByPanelValue:Y,getTabPanelIdByValue:X,onValueChange:le,orientation:m,registerMountedTabPanel:A,setTabMap:$,tabActivationDirection:Q,value:M}),[V,Y,X,le,m,A,$,Q,M]),I=x.useMemo(()=>{for(const ge of D.values())if(ge.value===M)return ge},[D,M]),N=x.useMemo(()=>{for(const ge of D.values())if(!ge.disabled)return ge.value},[D]),L=x.useRef(!j),K=x.useRef(f),ee=x.useRef(j),ie=x.useRef(!1);Ve(()=>{var et;if(z)return;function ge(ot,Ee){O(ot),Z({previousValue:ot,tabActivationDirection:"none"}),ne(ot,Ee),L.current=!1}if(D.size===0){ie.current&&M!==null&&!((et=_.current)!=null&&et.isConnected)&&ge(null,u0);return}ie.current=!0,_.current=D.keys().next().value;const ye=I==null?void 0:I.disabled,Xe=I==null&&M!==null;if(!ye&&M===K.current&&(ee.current=!1),ee.current&&ye&&M===K.current)return;const Be=L.current;if(ye||Xe){const ot=N??null;if(M===ot){L.current=!1;return}let Ee=u0;Be?Ee=o0:ye&&(Ee=WE),ge(ot,Ee);return}Be&&I!=null&&(ne(M,o0),L.current=!1)},[N,z,ne,I,O,D,M]);const ce=qt("div",l,{state:{orientation:m,tabActivationDirection:Q},ref:s,props:b,stateAttributesMapping:qo});return r.jsx(gv.Provider,{value:F,children:r.jsx(fv,{elementsRef:S,children:ce})})});function $d(a,l){for(const[s,o]of a.entries())if(l===o.value)return s;return null}function x0(a,l,s,o){if(a==null||l==null)return"none";const[f,d,m]=s==="horizontal"?["left","left","right"]:["top","up","down"],y=$d(o,a),g=$d(o,l);if(y==null||g==null)return y!==g&&(typeof a=="number"||typeof a=="string")&&typeof a==typeof l?l>a?m:d:"none";const p=y.getBoundingClientRect()[f],b=g.getBoundingClientRect()[f];return b<p?d:b>p?m:"none"}const yv=x.createContext(void 0);function K3(){const a=x.useContext(yv);if(a===void 0)throw new Error(Ba(65));return a}const $3=x.forwardRef(function(l,s){const{className:o,disabled:f=!1,render:d,value:m,id:y,nativeButton:g=!0,style:p,...b}=l,{value:j,getTabPanelIdByValue:S,onValueChange:w,orientation:E,tabActivationDirection:M}=jh(),{activateOnFocus:O,registerTabResizeObserverElement:z,tabsListElement:D}=K3(),{highlightedIndex:$,onHighlightedIndexChange:_}=hh(),V=ri(y),ae=x.useMemo(()=>({disabled:f,id:V,value:m}),[f,V,m]),{compositeProps:Z,compositeRef:q,index:J}=L3({metadata:ae}),Q=m===j,se=x.useRef(!1),re=x.useRef(null),ue=qe(ie=>{var oe;(oe=re.current)==null||oe.call(re),re.current=ie?z(ie):null});Ve(()=>{if(se.current){se.current=!1;return}if(!(Q&&J>-1&&$!==J))return;const ie=D;if(ie!=null){const oe=Jx(Ud(ie));if(oe&&yh(ie,oe))return}f||_(J)},[Q,J,$,_,f,D]);const{getButtonProps:le,buttonRef:ne}=_o({disabled:f,native:g,focusableWhenDisabled:!0}),A=S(m),X=x.useRef(!1),Y=x.useRef(!1);function F(ie){w(m,ws(Uo,ie.nativeEvent,void 0,{activationDirection:"none"}))}function I(ie){Q||f||F(ie)}function N(ie){Q||f||O&&(!X.current||Y.current)&&F(ie)}function L(ie){if(Q||f)return;X.current=!0,Y.current=ie.button===0;const oe=Ud(ie.currentTarget);function ce(){X.current=!1,Y.current=!1,oe.removeEventListener("pointerup",ce),oe.removeEventListener("pointercancel",ce)}oe.addEventListener("pointerup",ce),oe.addEventListener("pointercancel",ce)}return qt("button",l,{state:{disabled:f,active:Q,orientation:E,tabActivationDirection:M},ref:[s,ne,q,ue],props:[Z,{role:"tab","aria-controls":A,"aria-selected":Q,id:V,onClick:I,onFocus:N,onPointerDown:L,[hv]:Q?"":void 0,onKeyDownCapture(){se.current=!0}},b,le],stateAttributesMapping:qo})}),Z3={...qo,...vh},F3=x.forwardRef(function(l,s){const{className:o,value:f,render:d,keepMounted:m=!1,style:y,...g}=l,{value:p,getTabIdByPanelValue:b,orientation:j,tabActivationDirection:S,registerMountedTabPanel:w}=jh(),E=ri(),{ref:M,index:O}=ov(),z=f===p,{mounted:D,transitionStatus:$,setMounted:_}=ev(z),V=!D,ae=b(f),Z={hidden:V,orientation:j,tabActivationDirection:S,transitionStatus:$},q=x.useRef(null),J=qt("div",l,{state:Z,ref:[s,M,q],props:[{"aria-labelledby":ae,hidden:V,id:E,role:"tabpanel",tabIndex:z?0:-1,inert:A3(!z),"data-index":O},g],stateAttributesMapping:Z3});return Wx({open:z,ref:q,onComplete(){z||_(!1)}}),Ve(()=>{if(!(E==null||V&&!m))return w(f,E)},[V,m,f,E,w]),m||D?J:null}),J3=x.forwardRef(function(l,s){const{activateOnFocus:o=!1,className:f,loopFocus:d=!0,render:m,style:y,...g}=l,{orientation:p,setTabMap:b,tabActivationDirection:j}=jh(),[S,w]=x.useState(0),[E,M]=x.useState(null),O=x.useRef(new Set),z=x.useRef(new Set),D=x.useRef(null);Ve(()=>{if(typeof ResizeObserver>"u")return;const q=new ResizeObserver(()=>{O.current.forEach(J=>{J()})});return D.current=q,E&&q.observe(E),z.current.forEach(J=>{q.observe(J)}),()=>{q.disconnect(),D.current=null}},[E]);const $=qe(q=>(O.current.add(q),()=>{O.current.delete(q)})),_=qe(q=>{var J;return z.current.add(q),(J=D.current)==null||J.observe(q),()=>{var Q;z.current.delete(q),(Q=D.current)==null||Q.unobserve(q)}}),V={orientation:p,tabActivationDirection:j},ae={"aria-orientation":p==="vertical"?"vertical":void 0,role:"tablist"},Z=x.useMemo(()=>({activateOnFocus:o,registerIndicatorUpdateListener:$,registerTabResizeObserverElement:_,tabsListElement:E}),[o,$,_,E]);return r.jsx(yv.Provider,{value:Z,children:r.jsx(Q3,{render:m,className:f,style:y,state:V,refs:[s,M],props:[ae,g],stateAttributesMapping:qo,highlightedIndex:S,enableHomeAndEndKeys:!0,loopFocus:d,orientation:p,onHighlightedIndexChange:w,onMapChange:b,disabledIndices:Co})})});function P3(a){const{open:l,defaultOpen:s,onOpenChange:o,disabled:f}=a,[d,m]=Lo({controlled:l,default:s,name:"Collapsible",state:"open"}),{mounted:y,setMounted:g,transitionStatus:p}=ev(d,!0,!0),b=ri(),[j,S]=x.useState(),w=j===null?void 0:j??b,E=qe(M=>{const O=!d,z=ws(IE,M.nativeEvent);o(O,z),!z.isCanceled&&m(O)});return x.useMemo(()=>({defaultPanelId:b,disabled:f,handleTrigger:E,mounted:y,open:d,panelId:w,setMounted:g,setOpen:m,setPanelIdState:S,transitionStatus:p}),[b,f,E,y,d,w,g,m,S,p])}const xv=x.createContext(void 0);function vv(){const a=x.useContext(xv);if(a===void 0)throw new Error(Ba(15));return a}let Nh=(function(a){return a.open="data-open",a.closed="data-closed",a[a.startingStyle=r0.startingStyle]="startingStyle",a[a.endingStyle=r0.endingStyle]="endingStyle",a})({}),I3=(function(a){return a.panelOpen="data-panel-open",a})({});const W3={[Nh.open]:""},e4={[Nh.closed]:""},t4={open(a){return a?{[I3.panelOpen]:""}:null}},n4={open(a){return a?W3:e4}},wr={height:void 0,width:void 0};function a4(a){const{externalRef:l,hiddenUntilFound:s,id:o,keepMounted:f,mounted:d,onOpenChange:m,open:y,setMounted:g,setOpen:p,transitionStatus:b}=a,j=x.useRef(null),S=x.useRef(null),[w,E]=x.useState(wr),M=x.useRef(wr),O=x.useRef(!1),z=x.useRef(y),D=x.useRef(!1),[$,_]=x.useState(!1),V=x.useRef(null),ae=gs(l,j),Z=S3(y),q=Ix(j),J=!y&&!d,Q=$?"idle":b,se=y&&(z.current||D.current),re=!y&&d&&S.current==="css-animation"&&w.height===void 0&&w.width===void 0?M.current:w,ue=s&&J&&S.current!=="css-animation",le=qe((F,I=!0)=>{I&&(M.current=F),E(F)}),ne=qe(()=>{var F;(F=V.current)==null||F.call(V),V.current=null}),A=qe(F=>{ne(),V.current=()=>{V.current=null,F()}}),X=qe(()=>{y&&d&&S.current==="css-animation"&&(D.current=!0)});Ve(()=>{!$||b==="starting"||_(!1)},[$,b]),x.useEffect(()=>()=>{X(),ne()},[X,ne]),Ve(()=>{const F=j.current;if(!F)return;!y&&V.current&&ne();const I=l4(F,se);if(S.current=I,y&&b==="idle"&&z.current&&I==="css-animation"){M.current=Wi(F);return}if(y&&b==="starting"){const K=O.current;if(O.current=!1,I==="none"){le(Wi(F)),_(!0);return}if(I==="css-transition"){const oe=i4(F);if(le(Wi(F)),!K)return oe;const ce=fo(F,"transition-duration","0s");return A(ce),_(!0),oe}le(Wi(F));const ee=fo(F,"animation-name","none");if(!K){ee();return}const ie=fo(F,"animation-duration","0s");ee(),A(ie),_(!0);return}if(!y&&d&&(b==="idle"||b==="starting")){if(z.current=!1,D.current=!1,I==="none"){le(wr,!1),g(!1);return}le(Wi(F));return}if(b!=="ending")return;if(I==="none"){g(!1);return}const N=Wi(F);if(!(N.height>0||N.width>0)){g(!1);return}le(N),I==="css-animation"&&fo(F,"animation-name","none")()},[d,y,ne,le,g,A,se,b]),Wx({enabled:y&&d&&Q==="idle",open:!0,ref:j,onComplete(){y&&le(wr,!1)}}),x.useEffect(()=>{if(y||!d||Q!=="ending"||!j.current)return;const I=new AbortController;let N=-1;function L(){Z.current||(g(!1),le(wr,!1))}return N=gn.request(()=>{q(L,I.signal)}),()=>{gn.cancel(N),I.abort()}},[Z,d,y,Q,q,le,g]),Ve(()=>{const F=j.current;!F||!s||!J||F.setAttribute("hidden","until-found")},[J,s]),x.useEffect(function(){const I=j.current;if(!I)return;function N(L){const K=ws(Uo,L);m(!0,K),!K.isCanceled&&(O.current=!0,p(!0))}return sv(I,"beforematch",N)},[m,p]);const Y=f||s||d||y;return{height:re.height,props:{...ue?{[Nh.startingStyle]:""}:void 0,hidden:J,id:o},ref:ae,shouldPreventOpenAnimation:se,shouldRender:Y,transitionStatus:Q,width:re.width}}function Wi(a){return{height:a.scrollHeight,width:a.scrollWidth}}function l4(a,l){const s=Ns(a).getComputedStyle(a),o=(s.animationName.split(",").map(d=>d.trim()).some(d=>d!==""&&d!=="none")||l)&&v0(s.animationDuration),f=v0(s.transitionDuration);return o&&f||f?"css-transition":o?"css-animation":"none"}function v0(a){return a.split(",").map(l=>l.trim()).some(l=>l!==""&&Number.parseFloat(l)>0)}function fo(a,l,s){const o=a.style.getPropertyValue(l),f=a.style.getPropertyPriority(l);return a.style.setProperty(l,s),()=>{if(o===""){a.style.removeProperty(l);return}a.style.setProperty(l,o,f)}}function i4(a){const l={"justify-content":a.style.justifyContent,"align-items":a.style.alignItems,"align-content":a.style.alignContent,"justify-items":a.style.justifyItems};Object.keys(l).forEach(f=>{a.style.setProperty(f,"initial","important")});function s(){Object.entries(l).forEach(([f,d])=>{if(d===""){a.style.removeProperty(f);return}a.style.setProperty(f,d)})}const o=gn.request(s);return()=>{gn.cancel(o),s()}}const bv={...n4,...vh},s4=x.forwardRef(function(l,s){const{render:o,className:f,defaultOpen:d=!1,disabled:m=!1,onOpenChange:y,open:g,style:p,...b}=l,j=qe(y),S=P3({open:g,defaultOpen:d,onOpenChange:j,disabled:m}),w=x.useMemo(()=>({open:S.open,disabled:S.disabled,transitionStatus:S.transitionStatus}),[S.open,S.disabled,S.transitionStatus]),E=x.useMemo(()=>({...S,onOpenChange:j,state:w}),[S,j,w]),M=qt("div",l,{state:w,ref:s,props:b,stateAttributesMapping:bv});return r.jsx(xv.Provider,{value:E,children:M})}),r4={...t4,...vh},u4=x.forwardRef(function(l,s){const{panelId:o,open:f,handleTrigger:d,state:m,disabled:y}=vv(),{className:g,disabled:p=y,render:b,nativeButton:j=!0,style:S,...w}=l,{getButtonProps:E,buttonRef:M}=_o({disabled:p,focusableWhenDisabled:!0,native:j});return qt("button",l,{state:m,ref:[s,M],props:[{"aria-controls":f?o:void 0,"aria-expanded":f,onClick:d},w,E],stateAttributesMapping:r4})});let b0=(function(a){return a.collapsiblePanelHeight="--collapsible-panel-height",a.collapsiblePanelWidth="--collapsible-panel-width",a})({});const o4=x.forwardRef(function(l,s){const{className:o,hiddenUntilFound:f,keepMounted:d,render:m,id:y,style:g,...p}=l,{defaultPanelId:b,mounted:j,onOpenChange:S,open:w,setMounted:E,setPanelIdState:M,setOpen:O,state:z,transitionStatus:D}=vv(),$=f??!1,_=d??!1,V=y||void 0,ae=V??b;Ve(()=>(M(X=>V??(X===null?void 0:X)),()=>{M(X=>X===V?null:X)}),[V,M]);const{height:Z,props:q,ref:J,shouldPreventOpenAnimation:Q,shouldRender:se,transitionStatus:re,width:ue}=a4({externalRef:s,hiddenUntilFound:$,id:ae,keepMounted:_,mounted:j,onOpenChange:S,open:w,setMounted:E,setOpen:O,transitionStatus:D}),le={...z,transitionStatus:re},ne=Rx(g,le),A=qt("div",{...l,style:void 0},{state:le,ref:J,props:[q,{style:{[b0.collapsiblePanelHeight]:Z===void 0?"auto":`${Z}px`,[b0.collapsiblePanelWidth]:ue===void 0?"auto":`${ue}px`}},p,ne?{style:ne}:void 0,Q?{style:{animationName:"none"}}:void 0],stateAttributesMapping:bv});return se?A:null});function Sv(a){var l,s,o="";if(typeof a=="string"||typeof a=="number")o+=a;else if(typeof a=="object")if(Array.isArray(a)){var f=a.length;for(l=0;l<f;l++)a[l]&&(s=Sv(a[l]))&&(o&&(o+=" "),o+=s)}else for(s in a)a[s]&&(o&&(o+=" "),o+=s);return o}function c4(){for(var a,l,s=0,o="",f=arguments.length;s<f;s++)(a=arguments[s])&&(l=Sv(a))&&(o&&(o+=" "),o+=l);return o}const S0=a=>typeof a=="boolean"?`${a}`:a===0?"0":a,j0=c4,wh=(a,l)=>s=>{var o;if((l==null?void 0:l.variants)==null)return j0(a,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:f,defaultVariants:d}=l,m=Object.keys(f).map(p=>{const b=s==null?void 0:s[p],j=d==null?void 0:d[p];if(b===null)return null;const S=S0(b)||S0(j);return f[p][S]}),y=s&&Object.entries(s).reduce((p,b)=>{let[j,S]=b;return S===void 0||(p[j]=S),p},{}),g=l==null||(o=l.compoundVariants)===null||o===void 0?void 0:o.reduce((p,b)=>{let{class:j,className:S,...w}=b;return Object.entries(w).every(E=>{let[M,O]=E;return Array.isArray(O)?O.includes({...d,...y}[M]):{...d,...y}[M]===O})?[...p,j,S]:p},[]);return j0(a,m,g,s==null?void 0:s.class,s==null?void 0:s.className)},f4=wh("inline-flex w-fit shrink-0 items-center justify-center gap-1.5 overflow-hidden rounded-none border px-2 py-0.5 text-[0.625rem] font-semibold uppercase tracking-widest whitespace-nowrap transition-colors focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 aria-invalid:border-destructive [&>svg]:pointer-events-none [&>svg]:size-3",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/80",destructive:"border-destructive/20 bg-destructive/10 text-destructive [a&]:hover:bg-destructive/20",outline:"border-border text-foreground [a&]:hover:bg-muted [a&]:hover:text-foreground"}},defaultVariants:{variant:"default"}});function d4({className:a,variant:l="default",render:s,...o}){return iw({defaultTagName:"span",props:ko({className:be(f4({variant:l}),a)},o),render:s,state:{slot:"badge",variant:l}})}const h4={default:"text-muted-foreground bg-muted border-border",success:"text-emerald-700 bg-emerald-500/10 border-emerald-500/25 dark:text-emerald-400",error:"text-red-700 bg-red-500/10 border-red-500/25 dark:text-red-400",warning:"text-amber-700 bg-amber-500/10 border-amber-500/25 dark:text-amber-400",purple:"text-purple-700 bg-purple-500/10 border-purple-500/25 dark:text-purple-400",blue:"text-blue-700 bg-blue-500/10 border-blue-500/25 dark:text-blue-400",orange:"text-orange-700 bg-orange-500/10 border-orange-500/25 dark:text-orange-400",emerald:"text-emerald-700 bg-emerald-500/10 border-emerald-500/25 dark:text-emerald-400"};function Tl({className:a,icon:l,variant:s="default",children:o,...f}){return r.jsxs("div",{"data-slot":"tag",className:be("inline-flex items-center gap-1.5 rounded-none border px-2.5 py-1 text-[0.625rem] font-semibold uppercase tracking-widest [&_svg]:h-3 [&_svg]:w-3",h4[s],a),...f,children:[l&&r.jsx("span",{className:"flex-shrink-0",children:l}),r.jsx("span",{className:"leading-none",children:o})]})}const m4=wh("group/button relative inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-none border border-transparent bg-clip-padding text-xs font-semibold uppercase tracking-widest transition-all outline-none select-none cursor-pointer focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",primary:"bg-primary text-primary-foreground hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",outline:"border-border bg-transparent hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-input/30",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",danger:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",success:"bg-emerald-500/10 text-emerald-700 hover:bg-emerald-500/20 dark:bg-emerald-500/15 dark:text-emerald-400 dark:hover:bg-emerald-500/25",link:"text-primary underline underline-offset-4 hover:underline",icon:"border-border bg-transparent hover:bg-muted hover:text-foreground dark:hover:bg-input/30"},size:{default:"h-10 gap-1.5 px-6 has-data-[icon=inline-end]:pr-4 has-data-[icon=inline-start]:pl-4",xs:"h-7 gap-1 px-3 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-3",sm:"h-9 gap-1 px-4 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",md:"h-10 gap-1.5 px-6 has-data-[icon=inline-end]:pr-4 has-data-[icon=inline-start]:pl-4",lg:"h-11 gap-1.5 px-8 has-data-[icon=inline-end]:pr-5 has-data-[icon=inline-start]:pl-5",icon:"size-10","icon-xs":"size-7 [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-9","icon-md":"size-10","icon-lg":"size-11"}},defaultVariants:{variant:"default",size:"default"}});function Le({className:a,variant:l="default",size:s="default",isLoading:o=!1,children:f,disabled:d,render:m,nativeButton:y,...g}){const p=y??(m===void 0||x.isValidElement(m)&&m.type==="button");return r.jsxs(TE,{"data-slot":"button",className:be(m4({variant:l,size:s,className:a})),disabled:d===!0||o,render:m,nativeButton:p,...g,children:[o&&r.jsx(uE,{className:"size-3.5 animate-spin"}),f]})}const p4={sm:"h-9 text-xs",md:"h-10 text-sm",lg:"h-11 text-base"};function Eh({className:a,label:l,error:s,leftIcon:o,rightContent:f,inputSize:d="md","aria-invalid":m,...y}){const g=!!s||m!==void 0&&m!==!1&&m!=="false";return r.jsxs("div",{className:"w-full",children:[l&&r.jsx("label",{className:"mb-2 block text-xs font-semibold uppercase tracking-widest text-muted-foreground",children:l}),r.jsxs("div",{className:be("flex items-center gap-2 border border-transparent border-b-input bg-transparent transition-[color,border-color] focus-within:border-b-ring",g&&"border-b-destructive focus-within:border-b-destructive",a),children:[o&&r.jsx(o,{className:"size-3.5 shrink-0 text-muted-foreground"}),r.jsx(t3,{"data-slot":"input","aria-invalid":g||void 0,className:be("w-full min-w-0 flex-1 border-0 bg-transparent px-0 py-1 outline-none placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50","file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground",p4[d]),...y}),f&&r.jsx("div",{className:"shrink-0",children:f})]}),s&&r.jsx("p",{className:"mt-2 text-xs text-destructive",children:s})]})}function jv({className:a,children:l,...s}){return r.jsxs(o3,{"data-slot":"scroll-area",className:be("relative",a),...s,children:[r.jsx(m3,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",children:l}),r.jsx(g4,{}),r.jsx(v3,{})]})}function g4({className:a,orientation:l="vertical",...s}){return r.jsx(y3,{"data-slot":"scroll-area-scrollbar","data-orientation":l,orientation:l,className:be("flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent",a),...s,children:r.jsx(x3,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-none bg-border"})})}be("flex items-center justify-between gap-2 rounded-none border border-border bg-transparent px-3 py-2 text-xs font-semibold uppercase tracking-widest transition-colors","hover:bg-muted focus:outline-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 data-popup-open:bg-muted");function pd({className:a,size:l="default",...s}){return r.jsx(G3,{"data-slot":"switch","data-size":l,className:be("peer group/switch relative inline-flex shrink-0 items-center rounded-none border transition-all outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 data-[size=default]:h-4.5 data-[size=default]:w-8.25 data-[size=sm]:h-3.5 data-[size=sm]:w-6.25 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-unchecked:border-input/50 data-unchecked:bg-input data-disabled:cursor-not-allowed data-disabled:opacity-50",a),...s,children:r.jsx(V3,{"data-slot":"switch-thumb",className:"pointer-events-none block bg-background ring-0 transition-transform group-data-[size=default]/switch:size-3.5 group-data-[size=sm]/switch:size-2.5 data-checked:translate-x-[calc(100%+2px)] dark:data-checked:bg-primary-foreground data-unchecked:translate-x-0.25 dark:data-unchecked:bg-foreground"})})}function Nv({className:a,orientation:l="horizontal",...s}){return r.jsx(X3,{"data-slot":"tabs","data-orientation":l,className:be("group/tabs flex gap-2 data-horizontal:flex-col",a),...s})}const y4=wh("group/tabs-list inline-flex w-fit items-center justify-center p-1 text-muted-foreground group-data-horizontal/tabs:h-10 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function wv({className:a,variant:l="default",...s}){return r.jsx(J3,{"data-slot":"tabs-list","data-variant":l,className:be(y4({variant:l}),a),...s})}function Mr({className:a,...l}){return r.jsx($3,{"data-slot":"tabs-trigger",className:be("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-2 border border-transparent px-4 py-1.5 text-xs font-semibold tracking-wider whitespace-nowrap text-foreground/60 uppercase transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start group-data-vertical/tabs:px-4 group-data-vertical/tabs:py-2 hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-2.5 has-data-[icon=inline-start]:pl-2.5 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",a),...l})}function Ar({className:a,...l}){return r.jsx(F3,{"data-slot":"tabs-content",className:be("flex-1 text-sm outline-none",a),...l})}function ho({className:a,...l}){return r.jsx("label",{"data-slot":"label",className:be("flex items-center gap-2 text-xs font-semibold tracking-wide uppercase select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50 peer-data-[slot=checkbox]:text-sm peer-data-[slot=checkbox]:font-normal peer-data-[slot=checkbox]:tracking-normal peer-data-[slot=checkbox]:normal-case peer-data-[slot=radio-group-item]:text-sm peer-data-[slot=radio-group-item]:font-normal peer-data-[slot=radio-group-item]:tracking-normal peer-data-[slot=radio-group-item]:normal-case peer-data-[slot=switch]:text-sm peer-data-[slot=switch]:font-normal peer-data-[slot=switch]:tracking-normal peer-data-[slot=switch]:normal-case",a),...l})}function Ev({...a}){return r.jsx(s4,{"data-slot":"collapsible",...a})}function Cv({...a}){return r.jsx(u4,{"data-slot":"collapsible-trigger",...a})}function Tv({...a}){return r.jsx(o4,{"data-slot":"collapsible-content",...a})}const x4=["prompt_tokens","completion_tokens","input_tokens","output_tokens","inputTokens","outputTokens","inputTokens.total","outputTokens.total","cost","cost_usd_total","cost_details.total_cost"],v4=new Set(["model","modelId","provider","type","message.model","metadata.used_model","metadata.used_provider","providerMetadata.llmgateway.usedModel","providerMetadata.llmgateway.usedProvider","providerMetadata.llmgateway.provider",...x4.flatMap(a=>["usage","message.usage","providerMetadata.llmgateway.usage","providerMetadata.llmgateway","providerMetadata.gateway"].map(l=>`${l}.${a}`))]),Mv=new Set([...v4].flatMap(a=>{const l=a.split(".");return l.map((s,o)=>l.slice(0,o+1).join("."))}));Mv.add("choices");Mv.add("error");var N0;(function(a){a.STATIC="static",a.DYNAMIC="dynamic"})(N0||(N0={}));var ts;(function(a){a.SMALL="small",a.DEFAULT="default",a.LARGE="large",a.XLARGE="xlarge"})(ts||(ts={}));ts.SMALL+"",ts.DEFAULT+"",ts.LARGE+"",ts.XLARGE+"";var w0;(function(a){a.INFO="info",a.ERROR="error",a.WARNING="warning"})(w0||(w0={}));be("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 b4({column:a,onInsertText:l}){return r.jsxs("button",{onClick:()=>l==null?void 0:l(a.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 "${a.name}"`,children:[a.primaryKey?r.jsx(yx,{className:"h-3 w-3 shrink-0 text-yellow-500"}):r.jsx(px,{className:"h-3 w-3 shrink-0 text-muted-foreground"}),r.jsx("span",{className:"truncate font-mono",children:a.name}),r.jsxs("span",{className:"ml-auto truncate text-muted-foreground",children:[a.type,a.notNull&&!a.primaryKey&&" NOT NULL"]})]})}function S4({table:a,onInsertText:l}){const[s,o]=x.useState(!1);return r.jsxs(Ev,{open:s,onOpenChange:o,children:[r.jsxs(Cv,{className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm hover:bg-muted",children:[s?r.jsx(mx,{className:"h-4 w-4 shrink-0"}):r.jsx(ii,{className:"h-4 w-4 shrink-0"}),r.jsx(zo,{className:"h-4 w-4 shrink-0 text-blue-500"}),r.jsx("span",{className:"truncate font-medium cursor-pointer",onClick:f=>{f.stopPropagation(),l==null||l(a.name)},title:`Click to insert "${a.name}"`,children:a.name}),r.jsxs("span",{className:"ml-auto text-xs text-muted-foreground",children:[a.columns.length," cols"]})]}),r.jsx(Tv,{children:r.jsx("div",{className:"ml-4 border-l pl-2",children:a.columns.map(f=>r.jsx(b4,{column:f,onInsertText:l},f.name))})})]})}function j4({onInsertText:a}){const{data:l,isLoading:s,refetch:o}=st({queryKey:["auth-schema"],queryFn:_N,staleTime:3e4}),f=(l==null?void 0:l.tables)||[];return r.jsxs("div",{className:"flex h-full flex-col border-l bg-card",children:[r.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[r.jsx("h3",{className:"text-sm font-semibold",children:"Auth Tables"}),r.jsx(Le,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>o(),disabled:s,children:r.jsx(Qr,{className:be("h-4 w-4",s&&"animate-spin")})})]}),r.jsx(jv,{className:"flex-1",children:r.jsx("div",{className:"p-2",children:s?r.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"Loading schema..."}):f.length===0?r.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No tables found"}):r.jsx("div",{className:"space-y-0.5",children:f.map(d=>r.jsx(S4,{table:d,onInsertText:a},d.name))})})}),r.jsx("div",{className:"border-t px-3 py-2 text-xs text-muted-foreground",children:"Click table/column names to insert"})]})}function N4(a){return a===null?"NULL":a===void 0?"":typeof a=="object"?JSON.stringify(a):String(a)}function w4(a){if(a<60)return`${a} seconds`;if(a<3600)return`${Math.floor(a/60)} minutes`;if(a<86400){const s=Math.floor(a/3600);return`${s} hour${s>1?"s":""}`}const l=Math.floor(a/86400);return`${l} day${l>1?"s":""}`}function E4({settings:a,onUpdate:l,isUpdating:s}){const[o,f]=x.useState(a.sessionTokenExpiry.toString()),[d,m]=x.useState(a.allowSignups),[y,g]=x.useState(a.requireEmailVerification),[p,b]=x.useState(a.requireName),j=()=>{l({sessionTokenExpiry:parseInt(o,10),allowSignups:d,requireEmailVerification:y,requireName:p})},S=parseInt(o,10)!==a.sessionTokenExpiry||d!==a.allowSignups||y!==a.requireEmailVerification||p!==a.requireName;return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(ho,{htmlFor:"sessionTokenExpiry",children:"Session Token Expiry (seconds)"}),r.jsx(Eh,{id:"sessionTokenExpiry",type:"number",min:3600,max:7776e3,value:o,onChange:w=>f(w.target.value)}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:["Current: ",w4(parseInt(o,10)||0)," (min: 1 hour, max: 90 days)"]})]}),r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"space-y-0.5",children:[r.jsx(ho,{children:"Allow Signups"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Allow new users to create accounts"})]}),r.jsx(pd,{checked:d,onCheckedChange:m})]}),r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"space-y-0.5",children:[r.jsx(ho,{children:"Require Email Verification"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Users must verify their email before accessing the app"})]}),r.jsx(pd,{checked:y,onCheckedChange:g})]}),r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"space-y-0.5",children:[r.jsx(ho,{children:"Require Name"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Require users to enter their name during sign up"})]}),r.jsx(pd,{checked:p,onCheckedChange:b})]})]}),r.jsx("div",{className:"flex justify-end",children:r.jsx(Le,{onClick:j,disabled:!S||s,children:s?"Saving...":"Save Settings"})})]})}function C4(){var ue,le,ne,A,X,Y;const a=Ur(),[l,s]=x.useState("settings"),[o,f]=x.useState(""),[d,m]=x.useState(null),[y,g]=x.useState(null),[p,b]=x.useState(null),[j,S]=x.useState(0),w=50,M=((le=(ue=st({queryKey:["config"],queryFn:rh,staleTime:6e4}).data)==null?void 0:ue.auth)==null?void 0:le.binding)||"AUTH",O=st({queryKey:["auth-settings"],queryFn:UN,staleTime:0}),z=Or({mutationFn:HN,onSuccess:()=>{a.invalidateQueries({queryKey:["auth-settings"]})}}),D=F=>{z.mutate(F)},$=x.useCallback(F=>{f(I=>I+F)},[]),_=Or({mutationFn:F=>LN(F),onSuccess:F=>{m(F),g(null)},onError:F=>{g(F instanceof Error?F.message:"Failed to execute query"),m(null)}}),V=()=>{o.trim()&&_.mutate(o)},ae=st({queryKey:["auth-tables"],queryFn:kN,staleTime:0,gcTime:0}),Z=st({queryKey:["auth-tableData",p,w,j],queryFn:()=>DN(p,w,j),staleTime:0,gcTime:0,enabled:!!p}),q=((ne=ae.data)==null?void 0:ne.tables)||[],J=((A=Z.data)==null?void 0:A.data)||[],Q=((X=Z.data)==null?void 0:X.columns)||[],se=((Y=Z.data)==null?void 0:Y.total)||0,re=F=>{b(F),S(0)};return r.jsx("div",{className:"flex flex-col",children:r.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[r.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Auth: ",M]}),r.jsxs("div",{className:"flex items-start gap-3 rounded-lg border bg-muted/50 p-4",children:[r.jsx(gx,{className:"h-5 w-5 mt-0.5 text-blue-500 shrink-0"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-medium",children:"Ploy Auth Database"}),r.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."})]})]}),r.jsxs(Nv,{value:l,onValueChange:s,children:[r.jsxs(wv,{children:[r.jsxs(Mr,{value:"settings",children:[r.jsx(aN,{className:"mr-2 h-4 w-4"}),"Settings"]}),r.jsx(Mr,{value:"query",children:"SQL Editor"}),r.jsx(Mr,{value:"tables",children:"Tables"})]}),r.jsx(Ar,{value:"settings",className:"mt-4",children:r.jsxs(ct,{children:[r.jsxs(St,{children:[r.jsx(jt,{children:"Auth Settings"}),r.jsx(Ht,{children:"Configure authentication settings for local development."})]}),r.jsx(ft,{children:O.isLoading?r.jsx("div",{className:"flex items-center justify-center py-8",children:r.jsx(zn,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):O.data?r.jsx(E4,{settings:O.data,onUpdate:D,isUpdating:z.isPending}):r.jsx("p",{className:"text-muted-foreground",children:"Failed to load settings"})})]})}),r.jsx(Ar,{value:"query",className:"mt-4",children:r.jsxs("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-[1fr_280px]",children:[r.jsxs("div",{className:"space-y-4",children:[r.jsxs(ct,{children:[r.jsxs(St,{children:[r.jsx(jt,{children:"SQL Query"}),r.jsx(Ht,{children:"Execute read-only SELECT queries against auth tables"})]}),r.jsxs(ft,{className:"space-y-4",children:[r.jsx("textarea",{value:o,onChange:F=>f(F.target.value),onKeyDown:F=>{(F.metaKey||F.ctrlKey)&&F.key==="Enter"&&V()},placeholder:"SELECT * FROM auth_users LIMIT 10;",className:"w-full h-32 p-2 font-mono text-sm border rounded bg-background"}),r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-xs text-muted-foreground",children:"Press Cmd/Ctrl + Enter to execute (SELECT only)"}),r.jsxs(Le,{onClick:V,disabled:_.isPending||!o.trim(),children:[r.jsx(sh,{className:"mr-2 h-4 w-4"}),_.isPending?"Executing...":"Execute"]})]})]})]}),y&&r.jsx(ct,{className:"border-destructive/50",children:r.jsx(ft,{className:"pt-6",children:r.jsx("p",{className:"font-mono text-sm text-destructive",children:y})})}),d&&r.jsx(Vx,{results:d.results,meta:d.meta,error:d.error})]}),r.jsx("div",{className:"hidden h-[500px] lg:block",children:r.jsx(j4,{onInsertText:$})})]})}),r.jsx(Ar,{value:"tables",className:"mt-4",children:r.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-4",children:[r.jsxs(ct,{className:"md:col-span-1",children:[r.jsxs(St,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[r.jsx(jt,{className:"text-base",children:"Tables"}),r.jsx(Le,{variant:"ghost",size:"icon",onClick:()=>ae.refetch(),className:"h-8 w-8",children:r.jsx(Qr,{className:"h-4 w-4"})})]}),r.jsx(ft,{children:ae.isLoading?r.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):q.length===0?r.jsx("p",{className:"text-sm text-muted-foreground",children:"No tables found"}):r.jsx("div",{className:"space-y-1",children:q.map(F=>r.jsxs("button",{onClick:()=>re(F.name),className:`flex w-full items-center gap-2 rounded-md px-3 py-2 text-left text-sm transition-colors hover:bg-muted ${p===F.name?"bg-muted font-medium":""}`,children:[r.jsx(zo,{className:"h-4 w-4 shrink-0"}),r.jsx("span",{className:"truncate",children:F.name})]},F.name))})})]}),r.jsxs(ct,{className:"md:col-span-3",children:[r.jsxs(St,{children:[r.jsx(jt,{children:p||"Select a Table"}),p&&r.jsxs(Ht,{children:[se," total rows"]})]}),r.jsx(ft,{children:p?Z.isLoading?r.jsx("div",{className:"flex items-center justify-center py-8",children:r.jsx(zn,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):J.length===0?r.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"No data in this table"}):r.jsxs("div",{className:"space-y-4",children:[r.jsx("div",{className:"overflow-x-auto rounded-md border",children:r.jsxs(kn,{children:[r.jsx(Dn,{children:r.jsx(ut,{children:Q.map(F=>r.jsx(je,{className:"font-mono",children:F},F))})}),r.jsx(_n,{children:J.map((F,I)=>r.jsx(ut,{children:Q.map(N=>r.jsx(Ne,{className:"font-mono text-sm",children:N4(F[N])},N))},I))})]})}),r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("span",{className:"text-sm text-muted-foreground",children:["Showing ",j+1," -"," ",Math.min(j+w,se)," of ",se]}),r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(Le,{variant:"outline",size:"sm",disabled:j===0,onClick:()=>S(Math.max(0,j-w)),children:[r.jsx(Br,{className:"mr-1 h-4 w-4"}),"Previous"]}),r.jsxs(Le,{variant:"outline",size:"sm",disabled:j+w>=se,onClick:()=>S(j+w),children:["Next",r.jsx(ii,{className:"ml-1 h-4 w-4"})]})]})]})]}):r.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"Select a table from the list to view its data"})})]})]})})]})]})})}function Ln(){return r.jsx("div",{className:"flex items-center justify-center py-8",children:r.jsx(zn,{className:"h-6 w-6 animate-spin text-muted-foreground"})})}function sn({children:a}){return r.jsx("div",{className:"flex items-center justify-center py-8 text-muted-foreground",children:a})}function ui({id:a}){return r.jsxs("span",{className:"font-mono text-xs",children:[a.slice(0,8),"..."]})}function Vt({title:a,value:l,icon:s,isLoading:o}){return r.jsxs(ct,{children:[r.jsxs(St,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[r.jsx(jt,{className:"text-sm font-medium",children:a}),s]}),r.jsx(ft,{children:r.jsx("div",{className:"text-2xl font-bold",children:o?r.jsx(zn,{className:"h-5 w-5 animate-spin"}):l})})]})}function Qa({title:a,children:l}){return r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:a}),l]})}function T4(a){const l='<base target="_blank">';return/<head[^>]*>/i.test(a)?a.replace(/<head[^>]*>/i,s=>`${s}${l}`):`${l}${a}`}function M4({id:a}){const{data:l,isLoading:s}=st({queryKey:["auth-email",a],queryFn:()=>BN(a)});if(s)return r.jsx(Ln,{});if(!l)return r.jsx(sn,{children:"Email not found"});const{email:o}=l;return r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{className:"space-y-1 text-sm",children:[o.from&&r.jsxs("div",{children:[r.jsx("span",{className:"text-muted-foreground",children:"From: "}),o.from]}),r.jsxs("div",{children:[r.jsx("span",{className:"text-muted-foreground",children:"To: "}),o.to]}),o.cc&&r.jsxs("div",{children:[r.jsx("span",{className:"text-muted-foreground",children:"Cc: "}),o.cc]}),o.bcc&&r.jsxs("div",{children:[r.jsx("span",{className:"text-muted-foreground",children:"Bcc: "}),o.bcc]}),r.jsxs("div",{children:[r.jsx("span",{className:"text-muted-foreground",children:"Subject: "}),o.subject]}),r.jsx("div",{className:"text-muted-foreground",children:new Date(o.createdAt).toLocaleString()})]}),o.html?r.jsx("iframe",{title:o.subject,sandbox:"allow-popups allow-popups-to-escape-sandbox",srcDoc:T4(o.html),className:"h-[560px] w-full rounded-md border bg-white"}):null,r.jsxs("details",{className:"text-sm",open:!o.html,children:[r.jsx("summary",{className:"cursor-pointer text-muted-foreground",children:"Plain text"}),r.jsx("pre",{className:"mt-2 whitespace-pre-wrap rounded-md bg-muted p-3 font-mono text-xs",children:o.text})]})]})}function A4(){var g;const a=Ur(),[l,s]=x.useState(null),{data:o,isLoading:f}=st({queryKey:["auth-emails"],queryFn:qN,refetchInterval:3e3}),d=Or({mutationFn:QN,onSuccess:async()=>{s(null),await a.invalidateQueries({queryKey:["auth-emails"]})}}),m=(o==null?void 0:o.emails)??[],y=l??((g=m[0])==null?void 0:g.id)??null;return r.jsx("div",{className:"flex flex-col",children:r.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[r.jsx(Qa,{title:"Emails",children:r.jsxs(Le,{variant:"outline",size:"sm",disabled:m.length===0||d.isPending,onClick:()=>{d.mutate()},children:[r.jsx(Sx,{className:"mr-2 h-4 w-4"}),"Clear inbox"]})}),r.jsxs("div",{className:"grid gap-4 lg:grid-cols-[minmax(0,2fr)_minmax(0,3fr)]",children:[r.jsxs(ct,{children:[r.jsxs(St,{children:[r.jsx(jt,{children:"Inbox"}),r.jsx(Ht,{children:"Emails from Ploy Auth and from your worker's email binding. Under ploy dev nothing is sent; every email lands here."})]}),r.jsx(ft,{children:f?r.jsx(Ln,{}):m.length===0?r.jsx(sn,{children:"No emails yet. Send one from your worker, sign up or request a password reset to see one."}):r.jsxs(kn,{children:[r.jsx(Dn,{children:r.jsxs(ut,{children:[r.jsx(je,{children:"Time"}),r.jsx(je,{children:"Type"}),r.jsx(je,{children:"To"}),r.jsx(je,{children:"Subject"})]})}),r.jsx(_n,{children:m.map(p=>r.jsxs(ut,{className:be("cursor-pointer",p.id===y&&"bg-muted"),onClick:()=>{s(p.id)},children:[r.jsx(Ne,{className:"whitespace-nowrap text-xs text-muted-foreground",children:new Date(p.createdAt).toLocaleTimeString()}),r.jsx(Ne,{children:r.jsx(d4,{variant:"outline",children:p.purpose==="worker"?"Worker":"Auth"})}),r.jsx(Ne,{className:"text-sm",children:p.to}),r.jsx(Ne,{className:"text-sm",children:p.subject})]},p.id))})]})})]}),r.jsx(ct,{children:r.jsx(ft,{className:"pt-6",children:y?r.jsx(M4,{id:y}):r.jsx(sn,{children:"Select an email to preview it"})})})]})]})})}const mo=20;function R4(a){if(a===null)return"Never";const l=a-Math.floor(Date.now()/1e3);return l<=0?"Expired":l<60?`${l}s`:l<3600?`${Math.floor(l/60)}m`:l<86400?`${Math.floor(l/3600)}h`:`${Math.floor(l/86400)}d`}function O4({entries:a,isLoading:l}){return r.jsxs(ct,{children:[r.jsxs(St,{children:[r.jsx(jt,{children:"Cache Entries"}),r.jsx(Ht,{children:"Key-value entries in this cache store (auto-refreshes every 5 seconds)"})]}),r.jsx(ft,{children:l?r.jsx(Ln,{}):a!=null&&a.length?r.jsxs(kn,{children:[r.jsx(Dn,{children:r.jsxs(ut,{children:[r.jsx(je,{children:"Key"}),r.jsx(je,{children:"Value"}),r.jsx(je,{children:"Expires"})]})}),r.jsx(_n,{children:a.map(s=>r.jsxs(ut,{children:[r.jsx(Ne,{className:"font-mono text-sm",children:s.key}),r.jsx(Ne,{className:"max-w-[400px] truncate font-mono text-xs text-muted-foreground",children:s.value}),r.jsx(Ne,{className:"font-mono text-xs text-muted-foreground",children:R4(s.expiresAt)})]},s.key))})]}):r.jsx(sn,{children:"No entries in this cache store"})})]})}function z4(){const{binding:a}=qa(),l=a||"",[s,o]=x.useState(0),[f,d]=x.useState(""),[m,y]=x.useState(""),{data:g,isLoading:p}=st({queryKey:["cacheEntries",l,s,f],queryFn:()=>NN(l,mo,s,f),enabled:!!l,refetchInterval:5e3}),b=(g==null?void 0:g.hasMore)??!1,j=Math.floor(s/mo)+1,S=w=>{w.preventDefault(),d(m),o(0)};return r.jsx("div",{className:"flex flex-col",children:r.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[r.jsx(Qa,{title:`Cache: ${l}`}),r.jsxs("form",{onSubmit:S,className:"flex gap-2",children:[r.jsx(Eh,{placeholder:"Search by key...",value:m,onChange:w=>y(w.target.value),className:"max-w-sm"}),r.jsxs(Le,{type:"submit",variant:"outline",size:"sm",children:[r.jsx(bx,{className:"h-4 w-4 mr-1"}),"Search"]}),f&&r.jsx(Le,{type:"button",variant:"ghost",size:"sm",onClick:()=>{d(""),y(""),o(0)},children:"Clear"})]}),r.jsx(O4,{entries:g==null?void 0:g.entries,isLoading:p}),(s>0||b)&&r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("p",{className:"text-sm text-muted-foreground",children:["Page ",j]}),r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(Le,{variant:"outline",size:"sm",onClick:()=>o(Math.max(0,s-mo)),disabled:s===0,children:[r.jsx(Br,{className:"h-4 w-4"}),"Previous"]}),r.jsxs(Le,{variant:"outline",size:"sm",onClick:()=>o(s+mo),disabled:!b,children:["Next",r.jsx(ii,{className:"h-4 w-4"})]})]})]})]})})}const k4={PENDING:{variant:"default",icon:r.jsx(si,{className:"h-3 w-3"}),label:"Pending"},RUNNING:{variant:"blue",icon:r.jsx(zn,{className:"h-3 w-3 animate-spin"}),label:"Running"},COMPLETED:{variant:"success",icon:r.jsx(Cl,{className:"h-3 w-3"}),label:"Completed"},FAILED:{variant:"error",icon:r.jsx(bs,{className:"h-3 w-3"}),label:"Failed"},CANCELLED:{variant:"default",icon:r.jsx(yj,{className:"h-3 w-3"}),label:"Cancelled"}},D4={PENDING:{variant:"default",icon:r.jsx(si,{className:"h-3 w-3"}),label:"Pending"},PROCESSING:{variant:"blue",icon:r.jsx(zn,{className:"h-3 w-3 animate-spin"}),label:"Processing"},ACKNOWLEDGED:{variant:"success",icon:r.jsx(Cl,{className:"h-3 w-3"}),label:"Acknowledged"},FAILED:{variant:"error",icon:r.jsx(bs,{className:"h-3 w-3"}),label:"Failed"},DEAD_LETTER:{variant:"orange",icon:r.jsx(Aj,{className:"h-3 w-3"}),label:"Dead Letter"}};function Ch({status:a}){const l=k4[a];return l?r.jsx(Tl,{variant:l.variant,icon:l.icon,children:l.label}):r.jsx(Tl,{children:a})}const _4={PENDING:{variant:"default",icon:r.jsx(si,{className:"h-3 w-3"}),label:"Pending"},FIRED:{variant:"success",icon:r.jsx(Cl,{className:"h-3 w-3"}),label:"Fired"},COMPLETED:{variant:"success",icon:r.jsx(Cl,{className:"h-3 w-3"}),label:"Completed"},FAILED:{variant:"error",icon:r.jsx(bs,{className:"h-3 w-3"}),label:"Failed"}};function Av({status:a}){const l=_4[a];return l?r.jsx(Tl,{variant:l.variant,icon:l.icon,children:l.label}):r.jsx(Tl,{children:a})}function L4({status:a}){const l=D4[a];return l?r.jsx(Tl,{variant:l.variant,icon:l.icon,children:l.label}):r.jsx(Tl,{children:a})}const U4={provisioning:{variant:"blue",icon:r.jsx(zn,{className:"h-3 w-3 animate-spin"}),label:"Provisioning"},active:{variant:"success",icon:r.jsx(dx,{className:"h-3 w-3"}),label:"Active"},idle:{variant:"default",icon:r.jsx(vx,{className:"h-3 w-3"}),label:"Idle"},sleeping:{variant:"warning",icon:r.jsx(xx,{className:"h-3 w-3"}),label:"Sleeping"},stopped:{variant:"default",icon:r.jsx(oN,{className:"h-3 w-3"}),label:"Stopped"},destroyed:{variant:"error",icon:r.jsx(Sx,{className:"h-3 w-3"}),label:"Destroyed"}};function H4({status:a,active:l}){const o=U4[a==="running"?l?"active":"idle":a];return o?r.jsx(Tl,{variant:o.variant,icon:o.icon,children:o.label}):r.jsx(Tl,{children:a})}function q4({executions:a,cronExpression:l,isLoading:s}){const o=(a==null?void 0:a.filter(d=>d.status==="COMPLETED").length)??0,f=(a==null?void 0:a.filter(d=>d.status==="FAILED").length)??0;return r.jsxs("div",{className:"grid gap-4 md:grid-cols-3",children:[r.jsx(Vt,{title:"Schedule",value:l??"-",icon:r.jsx(si,{className:"h-4 w-4 text-muted-foreground"}),isLoading:s}),r.jsx(Vt,{title:"Completed",value:o,icon:r.jsx(Cl,{className:"h-4 w-4 text-green-500"}),isLoading:s}),r.jsx(Vt,{title:"Failed",value:f,icon:r.jsx(bs,{className:"h-4 w-4 text-red-500"}),isLoading:s})]})}function B4({executions:a,isLoading:l}){return r.jsxs(ct,{children:[r.jsxs(St,{children:[r.jsx(jt,{children:"Execution History"}),r.jsx(Ht,{children:"Recent cron handler executions (auto-refreshes every 5 seconds)"})]}),r.jsx(ft,{children:l?r.jsx(Ln,{}):a!=null&&a.length?r.jsxs(kn,{children:[r.jsx(Dn,{children:r.jsxs(ut,{children:[r.jsx(je,{children:"ID"}),r.jsx(je,{children:"Status"}),r.jsx(je,{children:"Triggered"}),r.jsx(je,{children:"Duration"}),r.jsx(je,{children:"Error"}),r.jsx(je,{children:"Completed"})]})}),r.jsx(_n,{children:a.map(s=>r.jsxs(ut,{children:[r.jsx(Ne,{children:r.jsx(ui,{id:s.id})}),r.jsx(Ne,{children:r.jsx(Ch,{status:s.status})}),r.jsx(Ne,{children:r.jsx(yn,{timestamp:s.triggeredAt})}),r.jsx(Ne,{children:s.durationMs!==void 0&&s.durationMs!==null?`${s.durationMs}ms`:"-"}),r.jsx(Ne,{className:"max-w-[200px] truncate text-xs text-red-500",children:s.error??"-"}),r.jsx(Ne,{children:s.completedAt?r.jsx(yn,{timestamp:s.completedAt}):"-"})]},s.id))})]}):r.jsx(sn,{children:"No cron executions yet"})})]})}function Q4(){const{binding:a}=qa(),l=a||"",s=Ur(),{data:o,isLoading:f}=st({queryKey:["cronExecutions",l],queryFn:()=>ON(l,20),enabled:!!l,refetchInterval:5e3}),d=Or({mutationFn:()=>zN(l),onSettled:()=>{s.invalidateQueries({queryKey:["cronExecutions",l]})}});return r.jsx("div",{className:"flex flex-col",children:r.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[r.jsx(Qa,{title:`Cron: ${l}`,children:r.jsxs(Le,{size:"sm",disabled:!l||d.isPending,onClick:()=>{d.mutate()},children:[r.jsx(sh,{className:"h-4 w-4 mr-1"}),d.isPending?"Running...":"Run now"]})}),r.jsx(q4,{executions:o==null?void 0:o.executions,cronExpression:o==null?void 0:o.cronExpression,isLoading:f}),r.jsx(B4,{executions:o==null?void 0:o.executions,isLoading:f})]})})}function Y4({column:a,onInsertText:l}){return r.jsxs("button",{onClick:()=>l==null?void 0:l(a.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 "${a.name}"`,children:[a.primaryKey?r.jsx(yx,{className:"h-3 w-3 shrink-0 text-yellow-500"}):r.jsx(px,{className:"h-3 w-3 shrink-0 text-muted-foreground"}),r.jsx("span",{className:"truncate font-mono",children:a.name}),r.jsxs("span",{className:"ml-auto truncate text-muted-foreground",children:[a.type,a.notNull&&!a.primaryKey&&" NOT NULL"]})]})}function G4({table:a,onInsertText:l}){const[s,o]=x.useState(!1);return r.jsxs(Ev,{open:s,onOpenChange:o,children:[r.jsxs(Cv,{className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm hover:bg-muted",children:[s?r.jsx(mx,{className:"h-4 w-4 shrink-0"}):r.jsx(ii,{className:"h-4 w-4 shrink-0"}),r.jsx(zo,{className:"h-4 w-4 shrink-0 text-blue-500"}),r.jsx("span",{className:"truncate font-medium cursor-pointer",onClick:f=>{f.stopPropagation(),l==null||l(a.name)},title:`Click to insert "${a.name}"`,children:a.name}),r.jsxs("span",{className:"ml-auto text-xs text-muted-foreground",children:[a.columns.length," cols"]})]}),r.jsx(Tv,{children:r.jsx("div",{className:"ml-4 border-l pl-2",children:a.columns.map(f=>r.jsx(Y4,{column:f,onInsertText:l},f.name))})})]})}function V4({bindingName:a,onInsertText:l}){const{data:s,isLoading:o,refetch:f}=st({queryKey:["schema",a],queryFn:()=>SN(a),staleTime:3e4}),d=(s==null?void 0:s.tables)||[];return r.jsxs("div",{className:"flex h-full flex-col border-l bg-card",children:[r.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[r.jsx("h3",{className:"text-sm font-semibold",children:"Tables"}),r.jsx(Le,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>f(),disabled:o,children:r.jsx(Qr,{className:be("h-4 w-4",o&&"animate-spin")})})]}),r.jsx(jv,{className:"flex-1",children:r.jsx("div",{className:"p-2",children:o?r.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"Loading schema..."}):d.length===0?r.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No tables found"}):r.jsx("div",{className:"space-y-0.5",children:d.map(m=>r.jsx(G4,{table:m,onInsertText:l},m.name))})})}),r.jsx("div",{className:"border-t px-3 py-2 text-xs text-muted-foreground",children:"Click table/column names to insert"})]})}function X4(a){return a===null?"NULL":a===void 0?"":typeof a=="object"?JSON.stringify(a):String(a)}function K4(){var J,Q,se,re;const{binding:a}=qa(),l=a||"",[s,o]=x.useState("query"),[f,d]=x.useState(""),[m,y]=x.useState(null),[g,p]=x.useState(null),[b,j]=x.useState(null),[S,w]=x.useState(0),E=50,M=x.useCallback(ue=>{d(le=>le+ue)},[]),O=Or({mutationFn:ue=>xN(l,ue),onSuccess:ue=>{y(ue),p(null)},onError:ue=>{p(ue instanceof Error?ue.message:"Failed to execute query"),y(null)}}),z=()=>{f.trim()&&O.mutate(f)},D=st({queryKey:["tables",l],queryFn:()=>vN(l),staleTime:0,gcTime:0,enabled:!!l}),$=st({queryKey:["tableData",l,b,E,S],queryFn:()=>bN(l,b,E,S),staleTime:0,gcTime:0,enabled:!!l&&!!b}),_=((J=D.data)==null?void 0:J.tables)||[],V=((Q=$.data)==null?void 0:Q.data)||[],ae=((se=$.data)==null?void 0:se.columns)||[],Z=((re=$.data)==null?void 0:re.total)||0,q=ue=>{j(ue),w(0)};return r.jsx("div",{className:"flex flex-col",children:r.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[r.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Database: ",l]}),r.jsxs(Nv,{value:s,onValueChange:o,children:[r.jsxs(wv,{children:[r.jsx(Mr,{value:"query",children:"SQL Editor"}),r.jsx(Mr,{value:"tables",children:"Tables"})]}),r.jsx(Ar,{value:"query",className:"mt-4",children:r.jsxs("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-[1fr_280px]",children:[r.jsxs("div",{className:"space-y-4",children:[r.jsxs(ct,{children:[r.jsxs(St,{children:[r.jsx(jt,{children:"SQL Query"}),r.jsx(Ht,{children:"Execute SQL queries against your database"})]}),r.jsxs(ft,{className:"space-y-4",children:[r.jsx("textarea",{value:f,onChange:ue=>d(ue.target.value),onKeyDown:ue=>{(ue.metaKey||ue.ctrlKey)&&ue.key==="Enter"&&z()},placeholder:"SELECT * FROM users LIMIT 10;",className:"w-full h-32 p-2 font-mono text-sm border rounded bg-background"}),r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-xs text-muted-foreground",children:"Press Cmd/Ctrl + Enter to execute"}),r.jsxs(Le,{onClick:z,disabled:O.isPending||!f.trim(),children:[r.jsx(sh,{className:"mr-2 h-4 w-4"}),O.isPending?"Executing...":"Execute"]})]})]})]}),g&&r.jsx(ct,{className:"border-destructive/50",children:r.jsx(ft,{className:"pt-6",children:r.jsx("p",{className:"font-mono text-sm text-destructive",children:g})})}),m&&r.jsx(Vx,{results:m.results,meta:m.meta,error:m.error})]}),r.jsx("div",{className:"hidden h-[500px] lg:block",children:r.jsx(V4,{bindingName:l,onInsertText:M})})]})}),r.jsx(Ar,{value:"tables",className:"mt-4",children:r.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-4",children:[r.jsxs(ct,{className:"md:col-span-1",children:[r.jsxs(St,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[r.jsx(jt,{className:"text-base",children:"Tables"}),r.jsx(Le,{variant:"ghost",size:"icon",onClick:()=>D.refetch(),className:"h-8 w-8",children:r.jsx(Qr,{className:"h-4 w-4"})})]}),r.jsx(ft,{children:D.isLoading?r.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):_.length===0?r.jsx("p",{className:"text-sm text-muted-foreground",children:"No tables found"}):r.jsx("div",{className:"space-y-1",children:_.map(ue=>r.jsxs("button",{onClick:()=>q(ue.name),className:`flex w-full items-center gap-2 rounded-md px-3 py-2 text-left text-sm transition-colors hover:bg-muted ${b===ue.name?"bg-muted font-medium":""}`,children:[r.jsx(zo,{className:"h-4 w-4 shrink-0"}),r.jsx("span",{className:"truncate",children:ue.name})]},ue.name))})})]}),r.jsxs(ct,{className:"md:col-span-3",children:[r.jsxs(St,{children:[r.jsx(jt,{children:b||"Select a Table"}),b&&r.jsxs(Ht,{children:[Z," total rows"]})]}),r.jsx(ft,{children:b?$.isLoading?r.jsx("div",{className:"flex items-center justify-center py-8",children:r.jsx(zn,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):V.length===0?r.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"No data in this table"}):r.jsxs("div",{className:"space-y-4",children:[r.jsx("div",{className:"overflow-x-auto rounded-md border",children:r.jsxs(kn,{children:[r.jsx(Dn,{children:r.jsx(ut,{children:ae.map(ue=>r.jsx(je,{className:"font-mono",children:ue},ue))})}),r.jsx(_n,{children:V.map((ue,le)=>r.jsx(ut,{children:ae.map(ne=>r.jsx(Ne,{className:"font-mono text-sm",children:X4(ue[ne])},ne))},le))})]})}),r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("span",{className:"text-sm text-muted-foreground",children:["Showing ",S+1," -"," ",Math.min(S+E,Z)," of ",Z]}),r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(Le,{variant:"outline",size:"sm",disabled:S===0,onClick:()=>w(Math.max(0,S-E)),children:[r.jsx(Br,{className:"mr-1 h-4 w-4"}),"Previous"]}),r.jsxs(Le,{variant:"outline",size:"sm",disabled:S+E>=Z,onClick:()=>w(S+E),children:["Next",r.jsx(ii,{className:"ml-1 h-4 w-4"})]})]})]})]}):r.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"Select a table from the list to view its data"})})]})]})})]})]})})}const $l=20;function $4(a){return a<1024?`${a} B`:a<1024*1024?`${(a/1024).toFixed(1)} KB`:a<1024*1024*1024?`${(a/(1024*1024)).toFixed(1)} MB`:`${(a/(1024*1024*1024)).toFixed(1)} GB`}function Z4({entries:a,isLoading:l}){return r.jsxs(ct,{children:[r.jsxs(St,{children:[r.jsx(jt,{children:"Files"}),r.jsx(Ht,{children:"Stored files with metadata (auto-refreshes every 5 seconds)"})]}),r.jsx(ft,{children:l?r.jsx(Ln,{}):a!=null&&a.length?r.jsxs(kn,{children:[r.jsx(Dn,{children:r.jsxs(ut,{children:[r.jsx(je,{children:"Key"}),r.jsx(je,{children:"Size"}),r.jsx(je,{children:"Content Type"}),r.jsx(je,{children:"Created At"})]})}),r.jsx(_n,{children:a.map(s=>r.jsxs(ut,{children:[r.jsx(Ne,{className:"font-mono text-sm",children:s.key}),r.jsx(Ne,{className:"text-sm text-muted-foreground",children:$4(s.size)}),r.jsx(Ne,{className:"font-mono text-xs text-muted-foreground",children:s.contentType}),r.jsx(Ne,{className:"text-sm text-muted-foreground",children:s.createdAt})]},s.key))})]}):r.jsx(sn,{children:"No files in this storage"})})]})}function F4(){const{binding:a}=qa(),l=a||"",[s,o]=x.useState(0),{data:f,isLoading:d}=st({queryKey:["fileStorageEntries",l,s],queryFn:()=>YN(l,$l,s),enabled:!!l,refetchInterval:5e3}),m=(f==null?void 0:f.total)??0,y=Math.floor(s/$l)+1,g=Math.ceil(m/$l);return r.jsx("div",{className:"flex flex-col",children:r.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[r.jsx(Qa,{title:`File Storage: ${l}`}),r.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:r.jsx(Vt,{title:"Total Files",value:m})}),r.jsx(Z4,{entries:f==null?void 0:f.entries,isLoading:d}),m>$l&&r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("p",{className:"text-sm text-muted-foreground",children:["Page ",y," of ",g]}),r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(Le,{variant:"outline",size:"sm",onClick:()=>o(Math.max(0,s-$l)),disabled:s===0,children:[r.jsx(Br,{className:"h-4 w-4"}),"Previous"]}),r.jsxs(Le,{variant:"outline",size:"sm",onClick:()=>o(s+$l),disabled:s+$l>=m,children:["Next",r.jsx(ii,{className:"h-4 w-4"})]})]})]})]})})}function J4({metrics:a,isLoading:l}){return r.jsxs("div",{className:"grid gap-4 md:grid-cols-5",children:[r.jsx(Vt,{title:"Pending",value:(a==null?void 0:a.pending)??0,icon:r.jsx(si,{className:"h-4 w-4 text-muted-foreground"}),isLoading:l}),r.jsx(Vt,{title:"Processing",value:(a==null?void 0:a.processing)??0,icon:r.jsx(zn,{className:"h-4 w-4 text-muted-foreground"}),isLoading:l}),r.jsx(Vt,{title:"Acknowledged",value:(a==null?void 0:a.acknowledged)??0,icon:r.jsx(Cl,{className:"h-4 w-4 text-green-500"}),isLoading:l}),r.jsx(Vt,{title:"Failed",value:(a==null?void 0:a.failed)??0,icon:r.jsx(bs,{className:"h-4 w-4 text-red-500"}),isLoading:l}),r.jsx(Vt,{title:"Dead Letter",value:(a==null?void 0:a.deadLetter)??0,icon:r.jsx(Zj,{className:"h-4 w-4 text-orange-500"}),isLoading:l})]})}function P4({messages:a,isLoading:l}){return r.jsxs(ct,{children:[r.jsxs(St,{children:[r.jsx(jt,{children:"Recent Messages"}),r.jsx(Ht,{children:"Latest messages in this queue (auto-refreshes every 5 seconds)"})]}),r.jsx(ft,{children:l?r.jsx(Ln,{}):a!=null&&a.length?r.jsxs(kn,{children:[r.jsx(Dn,{children:r.jsxs(ut,{children:[r.jsx(je,{children:"ID"}),r.jsx(je,{children:"Status"}),r.jsx(je,{children:"Payload"}),r.jsx(je,{children:"Attempt"}),r.jsx(je,{children:"Created"})]})}),r.jsx(_n,{children:a.map(s=>r.jsxs(ut,{children:[r.jsx(Ne,{children:r.jsx(ui,{id:s.id})}),r.jsx(Ne,{children:r.jsx(L4,{status:s.status})}),r.jsx(Ne,{className:"max-w-[200px] truncate font-mono text-xs",children:JSON.stringify(s.payload)}),r.jsx(Ne,{children:s.attempt}),r.jsx(Ne,{children:r.jsx(yn,{timestamp:s.createdAt})})]},s.id))})]}):r.jsx(sn,{children:"No messages in this queue"})})]})}function I4(){const{binding:a}=qa(),l=a||"",{data:s,isLoading:o}=st({queryKey:["queueMetrics",l],queryFn:()=>wN(l),enabled:!!l,refetchInterval:5e3}),{data:f,isLoading:d}=st({queryKey:["queueMessages",l],queryFn:()=>EN(l,10),enabled:!!l,refetchInterval:5e3});return r.jsx("div",{className:"flex flex-col",children:r.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[r.jsx(Qa,{title:`Queue: ${l}`}),r.jsx(J4,{metrics:s==null?void 0:s.metrics,isLoading:o}),r.jsx(P4,{messages:f==null?void 0:f.messages,isLoading:d})]})})}function W4({sandboxes:a,isLoading:l}){const s=(a==null?void 0:a.length)??0,o=(a==null?void 0:a.filter(y=>y.active).length)??0,f=(a==null?void 0:a.filter(y=>y.status==="running"&&!y.active).length)??0,d=(a==null?void 0:a.filter(y=>y.status==="sleeping").length)??0,m=(a==null?void 0:a.reduce((y,g)=>y+g.sessionCount,0))??0;return r.jsxs("div",{className:"grid gap-4 md:grid-cols-5",children:[r.jsx(Vt,{title:"Sandboxes",value:s,icon:r.jsx(hx,{className:"h-4 w-4 text-muted-foreground"}),isLoading:l}),r.jsx(Vt,{title:"Active",value:o,icon:r.jsx(dx,{className:"h-4 w-4 text-green-500"}),isLoading:l}),r.jsx(Vt,{title:"Idle",value:f,icon:r.jsx(vx,{className:"h-4 w-4 text-muted-foreground"}),isLoading:l}),r.jsx(Vt,{title:"Sleeping",value:d,icon:r.jsx(xx,{className:"h-4 w-4 text-orange-500"}),isLoading:l}),r.jsx(Vt,{title:"Sessions",value:m,icon:r.jsx(rN,{className:"h-4 w-4 text-muted-foreground"}),isLoading:l})]})}function eC({sandboxes:a,isLoading:l}){return r.jsxs(ct,{children:[r.jsxs(St,{children:[r.jsx(jt,{children:"Sandboxes"}),r.jsx(Ht,{children:"Live sandbox instances launched via env.<binding>.get(id) (auto-refreshes every 5 seconds)"})]}),r.jsx(ft,{children:l?r.jsx(Ln,{}):a!=null&&a.length?r.jsxs(kn,{children:[r.jsx(Dn,{children:r.jsxs(ut,{children:[r.jsx(je,{children:"ID"}),r.jsx(je,{children:"Status"}),r.jsx(je,{children:"Image"}),r.jsx(je,{children:"Sessions"}),r.jsx(je,{children:"Container"})]})}),r.jsx(_n,{children:a.map(s=>r.jsxs(ut,{children:[r.jsx(Ne,{className:"font-mono text-xs",children:s.externalId}),r.jsx(Ne,{children:r.jsx(H4,{status:s.status,active:s.active})}),r.jsx(Ne,{className:"font-mono text-xs",children:s.image}),r.jsx(Ne,{children:s.sessionCount}),r.jsx(Ne,{children:s.containerId?r.jsx(ui,{id:s.containerId}):r.jsx("span",{className:"text-muted-foreground",children:"—"})})]},s.id))})]}):r.jsx(sn,{children:"No sandboxes yet — call env.<binding>.get(id) from your worker to launch one"})})]})}function tC(){const{data:a,isLoading:l}=st({queryKey:["sandboxes"],queryFn:yN,refetchInterval:5e3});return r.jsx("div",{className:"flex flex-col",children:r.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[r.jsx(Qa,{title:"Sandboxes"}),r.jsx(W4,{sandboxes:a==null?void 0:a.sandboxes,isLoading:l}),r.jsx(eC,{sandboxes:a==null?void 0:a.sandboxes,isLoading:l})]})})}const po=20;function nC({entries:a,isLoading:l}){return r.jsxs(ct,{children:[r.jsxs(St,{children:[r.jsx(jt,{children:"State Entries"}),r.jsx(Ht,{children:"Key-value entries in this state store (auto-refreshes every 5 seconds)"})]}),r.jsx(ft,{children:l?r.jsx(Ln,{}):a!=null&&a.length?r.jsxs(kn,{children:[r.jsx(Dn,{children:r.jsxs(ut,{children:[r.jsx(je,{children:"Key"}),r.jsx(je,{children:"Value"})]})}),r.jsx(_n,{children:a.map(s=>r.jsxs(ut,{children:[r.jsx(Ne,{className:"font-mono text-sm",children:s.key}),r.jsx(Ne,{className:"max-w-[400px] truncate font-mono text-xs text-muted-foreground",children:s.value})]},s.key))})]}):r.jsx(sn,{children:"No entries in this state store"})})]})}function aC(){const{binding:a}=qa(),l=a||"",[s,o]=x.useState(0),[f,d]=x.useState(""),[m,y]=x.useState(""),{data:g,isLoading:p}=st({queryKey:["stateEntries",l,s,f],queryFn:()=>jN(l,po,s,f),enabled:!!l,refetchInterval:5e3}),b=(g==null?void 0:g.hasMore)??!1,j=Math.floor(s/po)+1,S=w=>{w.preventDefault(),d(m),o(0)};return r.jsx("div",{className:"flex flex-col",children:r.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[r.jsx(Qa,{title:`State: ${l}`}),r.jsxs("form",{onSubmit:S,className:"flex gap-2",children:[r.jsx(Eh,{placeholder:"Search by key...",value:m,onChange:w=>y(w.target.value),className:"max-w-sm"}),r.jsxs(Le,{type:"submit",variant:"outline",size:"sm",children:[r.jsx(bx,{className:"h-4 w-4 mr-1"}),"Search"]}),f&&r.jsx(Le,{type:"button",variant:"ghost",size:"sm",onClick:()=>{d(""),y(""),o(0)},children:"Clear"})]}),r.jsx(nC,{entries:g==null?void 0:g.entries,isLoading:p}),(s>0||b)&&r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("p",{className:"text-sm text-muted-foreground",children:["Page ",j]}),r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(Le,{variant:"outline",size:"sm",onClick:()=>o(Math.max(0,s-po)),disabled:s===0,children:[r.jsx(Br,{className:"h-4 w-4"}),"Previous"]}),r.jsxs(Le,{variant:"outline",size:"sm",onClick:()=>o(s+po),disabled:!b,children:["Next",r.jsx(ii,{className:"h-4 w-4"})]})]})]})]})})}function lC(a){if(a<1e3)return`${a}ms`;const l=Math.floor(a/1e3);if(l<60)return`${l}s`;const s=Math.floor(l/60),o=l%60;if(s<60)return o===0?`${s}m`:`${s}m ${o}s`;const f=Math.floor(s/60),d=s%60;if(f<24)return d===0?`${f}h`:`${f}h ${d}m`;const m=Math.floor(f/24),y=f%24;return y===0?`${m}d`:`${m}d ${y}h`}function iC({metrics:a,isLoading:l}){return r.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[r.jsx(Vt,{title:"Pending",value:(a==null?void 0:a.pending)??0,icon:r.jsx(si,{className:"h-4 w-4 text-muted-foreground"}),isLoading:l}),r.jsx(Vt,{title:"Fired",value:(a==null?void 0:a.fired)??0,icon:r.jsx(Cl,{className:"h-4 w-4 text-green-500"}),isLoading:l})]})}function sC({entries:a,isLoading:l}){return r.jsxs(ct,{children:[r.jsxs(St,{children:[r.jsx(jt,{children:"Scheduled Timers"}),r.jsx(Ht,{children:"Timer entries scheduled by your worker (auto-refreshes every 5 seconds)"})]}),r.jsx(ft,{children:l?r.jsx(Ln,{}):a!=null&&a.length?r.jsxs(kn,{children:[r.jsx(Dn,{children:r.jsxs(ut,{children:[r.jsx(je,{children:"ID"}),r.jsx(je,{children:"Status"}),r.jsx(je,{children:"Scheduled Time"}),r.jsx(je,{children:"Interval"}),r.jsx(je,{children:"Payload"}),r.jsx(je,{children:"Created"})]})}),r.jsx(_n,{children:a.map(s=>r.jsxs(ut,{children:[r.jsx(Ne,{children:r.jsx(ui,{id:s.id})}),r.jsx(Ne,{children:r.jsx(Av,{status:s.status})}),r.jsx(Ne,{children:r.jsx(yn,{timestamp:s.scheduledTime})}),r.jsx(Ne,{className:"text-xs",children:s.intervalMs!==void 0&&s.intervalMs!==null?r.jsxs("span",{className:"inline-flex items-center gap-1",children:[r.jsx(eN,{className:"h-3 w-3"}),lC(s.intervalMs)]}):"-"}),r.jsx(Ne,{className:"max-w-[200px] truncate font-mono text-xs",children:s.payload!==void 0&&s.payload!==null?JSON.stringify(s.payload):"-"}),r.jsx(Ne,{children:r.jsx(yn,{timestamp:s.createdAt})})]},s.id))})]}):r.jsx(sn,{children:"No timers scheduled"})})]})}function rC({executions:a,isLoading:l}){return r.jsxs(ct,{children:[r.jsxs(St,{children:[r.jsx(jt,{children:"Execution History"}),r.jsx(Ht,{children:"Recent timer handler executions"})]}),r.jsx(ft,{children:l?r.jsx(Ln,{}):a!=null&&a.length?r.jsxs(kn,{children:[r.jsx(Dn,{children:r.jsxs(ut,{children:[r.jsx(je,{children:"Timer ID"}),r.jsx(je,{children:"Status"}),r.jsx(je,{children:"Scheduled Time"}),r.jsx(je,{children:"Duration"}),r.jsx(je,{children:"Error"}),r.jsx(je,{children:"Executed"})]})}),r.jsx(_n,{children:a.map(s=>r.jsxs(ut,{children:[r.jsx(Ne,{children:r.jsx(ui,{id:s.timerId})}),r.jsx(Ne,{children:r.jsx(Av,{status:s.status})}),r.jsx(Ne,{children:r.jsx(yn,{timestamp:s.scheduledTime})}),r.jsx(Ne,{children:s.durationMs!==void 0&&s.durationMs!==null?`${s.durationMs}ms`:"-"}),r.jsx(Ne,{className:"max-w-[200px] truncate text-xs text-red-500",children:s.error??"-"}),r.jsx(Ne,{children:r.jsx(yn,{timestamp:s.createdAt})})]},s.id))})]}):r.jsx(sn,{children:"No timer executions yet"})})]})}function uC(){const{binding:a}=qa(),l=a||"",{data:s,isLoading:o}=st({queryKey:["timerMetrics",l],queryFn:()=>AN(l),enabled:!!l,refetchInterval:5e3}),{data:f,isLoading:d}=st({queryKey:["timerEntries",l],queryFn:()=>MN(l,20),enabled:!!l,refetchInterval:5e3}),{data:m,isLoading:y}=st({queryKey:["timerExecutions",l],queryFn:()=>RN(l,20),enabled:!!l,refetchInterval:5e3});return r.jsx("div",{className:"flex flex-col",children:r.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[r.jsx(Qa,{title:`Timers: ${l}`}),r.jsx(iC,{metrics:s==null?void 0:s.metrics,isLoading:o}),r.jsx(sC,{entries:f==null?void 0:f.entries,isLoading:d}),r.jsx(rC,{executions:m==null?void 0:m.executions,isLoading:y})]})})}function Cr(a){return a!=null}function oC(a,l){const s=[];a&&Cr(a.input)&&s.push("execution-input"),a&&Cr(a.output)&&s.push("execution-output");for(const o of l)Cr(o.input)&&s.push(`${o.id}-input`),Cr(o.output)&&s.push(`${o.id}-output`);return s}function Ao({id:a,label:l,value:s,isOpen:o,onToggle:f}){return Cr(s)?r.jsxs("details",{className:"mt-2",open:o,onToggle:d=>{f(a,d.currentTarget.open)},children:[r.jsx("summary",{className:"text-xs text-muted-foreground cursor-pointer hover:text-foreground",children:l}),r.jsx("pre",{className:"mt-1 p-2 rounded bg-muted text-xs font-mono overflow-x-auto",children:JSON.stringify(s,null,2)})]}):null}function cC({status:a}){switch(a){case"COMPLETED":return r.jsx(Cl,{className:"h-5 w-5 text-green-500"});case"RUNNING":return r.jsx(zn,{className:"h-5 w-5 text-blue-500 animate-spin"});case"FAILED":return r.jsx(bs,{className:"h-5 w-5 text-red-500"});case"PENDING":default:return r.jsx(si,{className:"h-5 w-5 text-gray-400"})}}function fC(a){switch(a){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 dC(a){return a.attempt!==null&&a.attempt!==void 0&&a.maxRetries!==null&&a.maxRetries!==void 0&&(a.attempt>1||a.status!=="COMPLETED")}function hC({steps:a,openIoSectionIds:l,onToggleIoSection:s}){if(a.length===0)return r.jsx(sn,{children:"No steps recorded for this execution"});const o=a.reduce((f,d)=>f+(d.durationMs||0),0);return r.jsxs("div",{className:"space-y-4",children:[o>0&&r.jsxs("div",{className:"mb-6",children:[r.jsxs("div",{className:"flex items-center justify-between text-sm text-muted-foreground mb-2",children:[r.jsx("span",{children:"Total Duration"}),r.jsx("span",{children:es(o)})]}),r.jsx("div",{className:"h-3 bg-muted rounded-full overflow-hidden flex",children:a.map((f,d)=>{const m=f.durationMs?f.durationMs/o*100:0;return r.jsx("div",{className:be(fC(f.status),"h-full transition-all",d>0&&"border-l border-background"),style:{width:`${m}%`},title:`${f.stepName}: ${es(f.durationMs)}`},f.id)})})]}),r.jsx("div",{className:"relative",children:a.map((f,d)=>{const m=dC(f);return r.jsxs("div",{className:"relative pb-6 last:pb-0",children:[d<a.length-1&&r.jsx("div",{className:be("absolute left-[9px] top-6 w-0.5 h-full -ml-px",f.status==="COMPLETED"?"bg-green-200 dark:bg-green-900":"bg-muted")}),r.jsxs("div",{className:"flex gap-4",children:[r.jsx("div",{className:"flex-shrink-0 relative z-10 bg-background",children:r.jsx(cC,{status:f.status})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("span",{className:"font-medium",children:f.stepName}),r.jsxs("span",{className:"text-xs text-muted-foreground",children:["(Step ",f.stepIndex+1,")"]}),m&&r.jsxs("span",{className:be("inline-flex items-center gap-1 text-xs px-1.5 py-0.5 rounded-full font-mono",f.attempt!==null&&f.attempt!==void 0&&f.attempt>1?f.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:[r.jsx(Qr,{className:"h-3 w-3"}),f.attempt,"/",(f.maxRetries??0)+1]})]}),r.jsx("span",{className:"text-sm font-mono text-muted-foreground",children:es(f.durationMs)})]}),f.errorMessage&&r.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:f.errorMessage}),f.retryAttempts&&f.retryAttempts.length>0&&r.jsxs("div",{className:"mt-2 space-y-2",children:[r.jsx("div",{className:"text-xs font-medium text-muted-foreground",children:"Previous failures"}),f.retryAttempts.map(y=>r.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:[r.jsxs("div",{className:"mb-1 flex items-center justify-between gap-2 text-xs text-yellow-800 dark:text-yellow-200",children:[r.jsxs("span",{className:"font-medium",children:["Attempt ",y.attempt," failed"]}),r.jsx("span",{className:"font-mono",children:es(y.durationMs??null)})]}),r.jsx("pre",{className:"whitespace-pre-wrap text-xs font-mono text-yellow-900 dark:text-yellow-100",children:y.errorMessage})]},`${f.id}-${y.attempt}`))]}),r.jsx(Ao,{id:`${f.id}-input`,label:"View input",value:f.input,isOpen:l.has(`${f.id}-input`),onToggle:s}),r.jsx(Ao,{id:`${f.id}-output`,label:"View output",value:f.output,isOpen:l.has(`${f.id}-output`),onToggle:s}),r.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:r.jsx(yn,{timestamp:f.createdAt})})]})]})]},f.id)})})]})}function mC(){const{binding:a,executionId:l}=qa(),s=a||"",o=l||"",{data:f,isLoading:d}=st({queryKey:["workflowExecution",s,o],queryFn:()=>TN(s,o),enabled:!!s&&!!o,refetchInterval:5e3}),m=f==null?void 0:f.execution,y=(f==null?void 0:f.steps)||[],g=oC(m??null,y),[p,b]=x.useState(()=>new Set),j=g.length>0&&g.every(E=>p.has(E));function S(E,M){b(O=>{const z=new Set(O);return M?z.add(E):z.delete(E),z})}function w(){b(()=>j?new Set:new Set(g))}return r.jsx("div",{className:"flex flex-col",children:r.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[r.jsxs("div",{className:"flex items-start justify-between gap-4",children:[r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsx(Gt,{to:`/workflows/${s}`,children:r.jsxs(Le,{variant:"ghost",size:"sm",children:[r.jsx(pj,{className:"mr-2 h-4 w-4"}),"Back"]})}),r.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Execution: ",r.jsx(ui,{id:o})]})]}),g.length>0&&r.jsxs(Le,{variant:"ghost",size:"sm",onClick:w,children:[j?r.jsx(Ej,{className:"h-4 w-4"}):r.jsx(Tj,{className:"h-4 w-4"}),j?"Collapse All I/O":"Expand All I/O"]})]}),d?r.jsx(Ln,{}):m?r.jsxs(r.Fragment,{children:[r.jsxs(ct,{children:[r.jsx(St,{children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx(jt,{children:"Execution Details"}),r.jsx(Ht,{children:m.startedAt?r.jsxs(r.Fragment,{children:["Started ",r.jsx(yn,{timestamp:m.startedAt})]}):"Not started yet"})]}),r.jsx(Ch,{status:m.status})]})}),r.jsxs(ft,{children:[r.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-sm text-muted-foreground",children:"Duration"}),r.jsx("p",{className:"font-mono",children:es(m.durationMs)})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm text-muted-foreground",children:"Steps Completed"}),r.jsxs("p",{className:"font-mono",children:[m.stepsCompleted," / ",m.stepsCount]})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm text-muted-foreground",children:"Created"}),r.jsx("p",{className:"font-mono text-sm",children:r.jsx(yn,{timestamp:m.createdAt})})]}),m.completedAt&&r.jsxs("div",{children:[r.jsx("p",{className:"text-sm text-muted-foreground",children:"Completed"}),r.jsx("p",{className:"font-mono text-sm",children:r.jsx(yn,{timestamp:m.completedAt})})]})]}),m.errorMessage&&r.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:m.errorMessage}),r.jsxs("div",{className:"mt-4 grid gap-3 md:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-sm text-muted-foreground",children:"Execution Input"}),r.jsx(Ao,{id:"execution-input",label:"View execution input",value:m.input,isOpen:p.has("execution-input"),onToggle:S})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm text-muted-foreground",children:"Execution Output"}),r.jsx(Ao,{id:"execution-output",label:"View execution output",value:m.output,isOpen:p.has("execution-output"),onToggle:S})]})]})]})]}),r.jsxs(ct,{children:[r.jsx(St,{children:r.jsxs("div",{children:[r.jsx(jt,{children:"Steps"}),r.jsx(Ht,{children:"Workflow step execution timeline"})]})}),r.jsx(ft,{children:r.jsx(hC,{steps:y,openIoSectionIds:p,onToggleIoSection:S})})]})]}):r.jsx(sn,{children:"Execution not found"})]})})}const gd=20,pC=[{value:"",label:"All statuses"},{value:"pending",label:"Pending"},{value:"running",label:"Running"},{value:"completed",label:"Completed"},{value:"failed",label:"Failed"},{value:"cancelled",label:"Cancelled"}],gC=[{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 yC({executions:a,isLoading:l,bindingName:s}){return r.jsxs(ct,{children:[r.jsxs(St,{children:[r.jsx(jt,{children:"Recent Executions"}),r.jsx(Ht,{children:"Workflow executions (auto-refreshes every 5 seconds)"})]}),r.jsx(ft,{children:l?r.jsx(Ln,{}):a!=null&&a.length?r.jsxs(kn,{children:[r.jsx(Dn,{children:r.jsxs(ut,{children:[r.jsx(je,{children:"ID"}),r.jsx(je,{children:"Status"}),r.jsx(je,{children:"Steps"}),r.jsx(je,{children:"Duration"}),r.jsx(je,{children:"Started"}),r.jsx(je,{})]})}),r.jsx(_n,{children:a.map(o=>r.jsxs(ut,{children:[r.jsx(Ne,{children:r.jsx(ui,{id:o.id})}),r.jsx(Ne,{children:r.jsx(Ch,{status:o.status})}),r.jsx(Ne,{children:r.jsxs("span",{className:"text-sm",children:[o.stepsCompleted,"/",o.stepsCount]})}),r.jsx(Ne,{className:"text-sm",children:es(o.durationMs)}),r.jsx(Ne,{children:o.startedAt?r.jsx(yn,{timestamp:o.startedAt}):"-"}),r.jsx(Ne,{children:r.jsx(Gt,{to:`/workflows/${s}/${o.id}`,className:"flex items-center text-sm text-primary hover:underline",children:"View"})})]},o.id))})]}):r.jsx(sn,{children:"No executions for this workflow"})})]})}function xC(){const{binding:a}=qa(),l=a||"",[s,o]=x.useState(""),[f,d]=x.useState(""),[m,y]=x.useState(0),g=m*gd,{data:p,isLoading:b}=st({queryKey:["workflowExecutions",l,s,f,m],queryFn:()=>CN(l,gd,g,s||void 0,f||void 0),enabled:!!l,refetchInterval:5e3}),j=p?Math.ceil(p.total/gd):0,S=()=>y(0);return r.jsx("div",{className:"flex flex-col",children:r.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[r.jsx(Qa,{title:`Workflow: ${l}`}),r.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[r.jsx("select",{value:s,onChange:w=>{o(w.target.value),S()},className:"text-sm border rounded px-2 py-1 bg-background",children:pC.map(w=>r.jsx("option",{value:w.value,children:w.label},w.value))}),r.jsx("select",{value:f,onChange:w=>{d(w.target.value),S()},className:"text-sm border rounded px-2 py-1 bg-background",children:gC.map(w=>r.jsx("option",{value:w.value,children:w.label},w.value))}),p&&r.jsxs("span",{className:"text-sm text-muted-foreground",children:[p.total," total"]})]}),r.jsx(yC,{executions:p==null?void 0:p.executions,isLoading:b,bindingName:l}),j>1&&r.jsxs("div",{className:"flex items-center justify-between pt-2",children:[r.jsx("button",{className:"text-sm px-3 py-1 border rounded disabled:opacity-40",disabled:m===0,onClick:()=>y(w=>w-1),children:"Previous"}),r.jsxs("span",{className:"text-sm text-muted-foreground",children:["Page ",m+1," of ",j]}),r.jsx("button",{className:"text-sm px-3 py-1 border rounded disabled:opacity-40",disabled:m>=j-1,onClick:()=>y(w=>w+1),children:"Next"})]})]})})}function vC(){const a=Ha(),{data:l,isLoading:s}=st({queryKey:["config"],queryFn:rh,staleTime:6e4}),o=l!=null&&l.db?Object.keys(l.db):[],f=l!=null&&l.queue?Object.keys(l.queue):[],d=l!=null&&l.state?Object.keys(l.state):[],m=l!=null&&l.cache?Object.keys(l.cache):[],y=l!=null&&l.fs?Object.keys(l.fs):[],g=l!=null&&l.workflow?Object.keys(l.workflow):[],p=l!=null&&l.cron?Object.keys(l.cron):[],b=l!=null&&l.timer?Object.keys(l.timer):[],j=l!=null&&l.sandbox?Object.keys(l.sandbox):[];return r.jsxs("aside",{className:"fixed inset-y-0 left-0 z-10 w-64 flex flex-col border-r bg-background",children:[r.jsx("div",{className:"flex h-14 items-center border-b px-4",children:r.jsxs(Gt,{to:"/",className:"flex items-center gap-2 font-semibold",children:[r.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-md bg-primary text-primary-foreground",children:"P"}),r.jsx("span",{children:"Ploy Dev"})]})}),r.jsx("nav",{className:"flex-1 overflow-auto p-4",children:s?r.jsx("div",{className:"flex items-center justify-center py-8",children:r.jsx(zn,{className:"h-5 w-5 animate-spin text-muted-foreground"})}):r.jsxs("div",{className:"space-y-6",children:[o.length>0&&r.jsxs("div",{children:[r.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Database"}),r.jsx("div",{className:"space-y-1",children:o.map(S=>{const w=a.pathname===`/db/${S}`;return r.jsx(Gt,{to:`/db/${S}`,children:r.jsxs(Le,{variant:w?"secondary":"ghost",className:be("w-full justify-start",w&&"bg-muted"),children:[r.jsx(_j,{className:"mr-2 h-4 w-4"}),S]})},S)})})]}),(l==null?void 0:l.auth)&&r.jsxs("div",{children:[r.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Auth"}),r.jsx("div",{className:"space-y-1",children:r.jsx(Gt,{to:"/auth",children:r.jsxs(Le,{variant:a.pathname==="/auth"?"secondary":"ghost",className:be("w-full justify-start",a.pathname==="/auth"&&"bg-muted"),children:[r.jsx(iN,{className:"mr-2 h-4 w-4"}),r.jsx("span",{className:"flex-1 text-left",children:l.auth.binding}),r.jsx(gx,{className:"h-3.5 w-3.5 text-muted-foreground",title:"Ploy Auth tables (users & sessions)"})]})})})]}),((l==null?void 0:l.auth)||(l==null?void 0:l.email))&&r.jsxs("div",{children:[r.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Email"}),r.jsx("div",{className:"space-y-1",children:r.jsx(Gt,{to:"/auth/emails",children:r.jsxs(Le,{variant:a.pathname==="/auth/emails"?"secondary":"ghost",className:be("w-full justify-start",a.pathname==="/auth/emails"&&"bg-muted"),children:[r.jsx(Kj,{className:"mr-2 h-4 w-4"}),"Emails"]})})})]}),f.length>0&&r.jsxs("div",{children:[r.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Queues"}),r.jsx("div",{className:"space-y-1",children:f.map(S=>{const w=a.pathname===`/queues/${S}`;return r.jsx(Gt,{to:`/queues/${S}`,children:r.jsxs(Le,{variant:w?"secondary":"ghost",className:be("w-full justify-start",w&&"bg-muted"),children:[r.jsx(Qj,{className:"mr-2 h-4 w-4"}),S]})},S)})})]}),d.length>0&&r.jsxs("div",{children:[r.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"State"}),r.jsx("div",{className:"space-y-1",children:d.map(S=>{const w=a.pathname===`/state/${S}`;return r.jsx(Gt,{to:`/state/${S}`,children:r.jsxs(Le,{variant:w?"secondary":"ghost",className:be("w-full justify-start",w&&"bg-muted"),children:[r.jsx(hj,{className:"mr-2 h-4 w-4"}),S]})},S)})})]}),m.length>0&&r.jsxs("div",{children:[r.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Cache"}),r.jsx("div",{className:"space-y-1",children:m.map(S=>{const w=a.pathname===`/cache/${S}`;return r.jsx(Gt,{to:`/cache/${S}`,children:r.jsxs(Le,{variant:w?"secondary":"ghost",className:be("w-full justify-start",w&&"bg-muted"),children:[r.jsx(pN,{className:"mr-2 h-4 w-4"}),S]})},S)})})]}),y.length>0&&r.jsxs("div",{children:[r.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"File Storage"}),r.jsx("div",{className:"space-y-1",children:y.map(S=>{const w=a.pathname===`/fs/${S}`;return r.jsx(Gt,{to:`/fs/${S}`,children:r.jsxs(Le,{variant:w?"secondary":"ghost",className:be("w-full justify-start",w&&"bg-muted"),children:[r.jsx(Uj,{className:"mr-2 h-4 w-4"}),S]})},S)})})]}),g.length>0&&r.jsxs("div",{children:[r.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Workflows"}),r.jsx("div",{className:"space-y-1",children:g.map(S=>{const w=a.pathname.startsWith(`/workflows/${S}`);return r.jsx(Gt,{to:`/workflows/${S}`,children:r.jsxs(Le,{variant:w?"secondary":"ghost",className:be("w-full justify-start",w&&"bg-muted"),children:[r.jsx(qj,{className:"mr-2 h-4 w-4"}),S]})},S)})})]}),p.length>0&&r.jsxs("div",{children:[r.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Cron"}),r.jsx("div",{className:"space-y-1",children:p.map(S=>{const w=a.pathname===`/cron/${S}`;return r.jsx(Gt,{to:`/cron/${S}`,children:r.jsxs(Le,{variant:w?"secondary":"ghost",className:be("w-full justify-start",w&&"bg-muted"),children:[r.jsx(dN,{className:"mr-2 h-4 w-4"}),S]})},S)})})]}),b.length>0&&r.jsxs("div",{children:[r.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Timers"}),r.jsx("div",{className:"space-y-1",children:b.map(S=>{const w=a.pathname===`/timers/${S}`;return r.jsx(Gt,{to:`/timers/${S}`,children:r.jsxs(Le,{variant:w?"secondary":"ghost",className:be("w-full justify-start",w&&"bg-muted"),children:[r.jsx(vj,{className:"mr-2 h-4 w-4"}),S]})},S)})})]}),j.length>0&&r.jsxs("div",{children:[r.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Sandboxes"}),r.jsx("div",{className:"space-y-1",children:r.jsx(Gt,{to:"/sandboxes",children:r.jsxs(Le,{variant:a.pathname==="/sandboxes"?"secondary":"ghost",className:be("w-full justify-start",a.pathname==="/sandboxes"&&"bg-muted"),children:[r.jsx(hx,{className:"mr-2 h-4 w-4"}),"Sandboxes"]})})})]}),o.length===0&&f.length===0&&d.length===0&&m.length===0&&y.length===0&&g.length===0&&p.length===0&&b.length===0&&j.length===0&&!(l!=null&&l.auth)&&r.jsx("div",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No bindings configured in ploy.yaml"})]})})]})}function bC(){const{data:a,isLoading:l}=st({queryKey:["config"],queryFn:rh,staleTime:6e4});if(!l&&a){const s=a.db?Object.keys(a.db):[],o=a.queue?Object.keys(a.queue):[],f=a.state?Object.keys(a.state):[],d=a.fs?Object.keys(a.fs):[],m=a.workflow?Object.keys(a.workflow):[];if(s.length>0)return r.jsx(na,{to:`/db/${s[0]}`,replace:!0});if(a.auth)return r.jsx(na,{to:"/auth",replace:!0});if(o.length>0)return r.jsx(na,{to:`/queues/${o[0]}`,replace:!0});if(f.length>0)return r.jsx(na,{to:`/state/${f[0]}`,replace:!0});const y=a.cache?Object.keys(a.cache):[];if(y.length>0)return r.jsx(na,{to:`/cache/${y[0]}`,replace:!0});if(d.length>0)return r.jsx(na,{to:`/fs/${d[0]}`,replace:!0});if(m.length>0)return r.jsx(na,{to:`/workflows/${m[0]}`,replace:!0});const g=a.cron?Object.keys(a.cron):[];if(g.length>0)return r.jsx(na,{to:`/cron/${g[0]}`,replace:!0});const p=a.timer?Object.keys(a.timer):[];if(p.length>0)return r.jsx(na,{to:`/timers/${p[0]}`,replace:!0});if((a.sandbox?Object.keys(a.sandbox):[]).length>0)return r.jsx(na,{to:"/sandboxes",replace:!0})}return r.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[r.jsx("h1",{className:"text-2xl font-bold mb-4",children:"Ploy Dev Dashboard"}),l?r.jsx(zn,{className:"h-6 w-6 animate-spin text-muted-foreground"}):r.jsx("p",{className:"text-muted-foreground",children:"Configure database, queue, or workflow bindings in ploy.yaml to get started."})]})}function SC(){return r.jsxs("div",{className:"min-h-screen bg-background",children:[r.jsx(vC,{}),r.jsx("main",{className:"pl-64",children:r.jsx("div",{className:"container mx-auto px-6 py-4",children:r.jsxs(CS,{children:[r.jsx(nn,{path:"/",element:r.jsx(bC,{})}),r.jsx(nn,{path:"/db/:binding",element:r.jsx(K4,{})}),r.jsx(nn,{path:"/auth",element:r.jsx(C4,{})}),r.jsx(nn,{path:"/auth/emails",element:r.jsx(A4,{})}),r.jsx(nn,{path:"/queues/:binding",element:r.jsx(I4,{})}),r.jsx(nn,{path:"/state/:binding",element:r.jsx(aC,{})}),r.jsx(nn,{path:"/cache/:binding",element:r.jsx(z4,{})}),r.jsx(nn,{path:"/fs/:binding",element:r.jsx(F4,{})}),r.jsx(nn,{path:"/cron/:binding",element:r.jsx(Q4,{})}),r.jsx(nn,{path:"/timers/:binding",element:r.jsx(uC,{})}),r.jsx(nn,{path:"/workflows/:binding",element:r.jsx(xC,{})}),r.jsx(nn,{path:"/workflows/:binding/:executionId",element:r.jsx(mC,{})}),r.jsx(nn,{path:"/sandboxes",element:r.jsx(tC,{})})]})})})]})}function Rv(){const a=window.matchMedia("(prefers-color-scheme: dark)").matches;document.documentElement.classList.toggle("dark",a)}Rv();window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",Rv);const jC=new c2({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});_2.createRoot(document.getElementById("root")).render(r.jsx(x.StrictMode,{children:r.jsx(x2,{client:jC,children:r.jsx(JS,{children:r.jsx(SC,{})})})}));