@vibecodeapp/cloud-studio 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,165 @@
1
+ var Id=e=>{throw TypeError(e)};var sa=(e,t,n)=>t.has(e)||Id("Cannot "+n);var C=(e,t,n)=>(sa(e,t,"read from private field"),n?n.call(e):t.get(e)),$=(e,t,n)=>t.has(e)?Id("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),L=(e,t,n,r)=>(sa(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Z=(e,t,n)=>(sa(e,t,"access private method"),n);var si=(e,t,n,r)=>({set _(o){L(e,t,o,n)},get _(){return C(e,t,r)}});function Py(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function Gp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xp={exports:{}},Rl={},Zp={exports:{}},ne={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its 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 Ys=Symbol.for("react.element"),Ry=Symbol.for("react.portal"),Ty=Symbol.for("react.fragment"),Oy=Symbol.for("react.strict_mode"),_y=Symbol.for("react.profiler"),jy=Symbol.for("react.provider"),My=Symbol.for("react.context"),Ay=Symbol.for("react.forward_ref"),Iy=Symbol.for("react.suspense"),Dy=Symbol.for("react.memo"),Ly=Symbol.for("react.lazy"),Dd=Symbol.iterator;function Fy(e){return e===null||typeof e!="object"?null:(e=Dd&&e[Dd]||e["@@iterator"],typeof e=="function"?e:null)}var Jp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},eh=Object.assign,th={};function Uo(e,t,n){this.props=e,this.context=t,this.refs=th,this.updater=n||Jp}Uo.prototype.isReactComponent={};Uo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Uo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function nh(){}nh.prototype=Uo.prototype;function cc(e,t,n){this.props=e,this.context=t,this.refs=th,this.updater=n||Jp}var dc=cc.prototype=new nh;dc.constructor=cc;eh(dc,Uo.prototype);dc.isPureReactComponent=!0;var Ld=Array.isArray,rh=Object.prototype.hasOwnProperty,fc={current:null},oh={key:!0,ref:!0,__self:!0,__source:!0};function sh(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)rh.call(t,r)&&!oh.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var a=Array(l),c=0;c<l;c++)a[c]=arguments[c+2];o.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:Ys,type:e,key:s,ref:i,props:o,_owner:fc.current}}function zy(e,t){return{$$typeof:Ys,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function pc(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ys}function By(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Fd=/\/+/g;function ia(e,t){return typeof e=="object"&&e!==null&&e.key!=null?By(""+e.key):t.toString(36)}function _i(e,t,n,r,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Ys:case Ry:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+ia(i,0):r,Ld(o)?(n="",e!=null&&(n=e.replace(Fd,"$&/")+"/"),_i(o,t,n,"",function(c){return c})):o!=null&&(pc(o)&&(o=zy(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Fd,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",Ld(e))for(var l=0;l<e.length;l++){s=e[l];var a=r+ia(s,l);i+=_i(s,t,n,a,o)}else if(a=Fy(e),typeof a=="function")for(e=a.call(e),l=0;!(s=e.next()).done;)s=s.value,a=r+ia(s,l++),i+=_i(s,t,n,a,o);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function ii(e,t,n){if(e==null)return e;var r=[],o=0;return _i(e,r,"","",function(s){return t.call(n,s,o++)}),r}function Uy(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Je={current:null},ji={transition:null},Hy={ReactCurrentDispatcher:Je,ReactCurrentBatchConfig:ji,ReactCurrentOwner:fc};function ih(){throw Error("act(...) is not supported in production builds of React.")}ne.Children={map:ii,forEach:function(e,t,n){ii(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ii(e,function(){t++}),t},toArray:function(e){return ii(e,function(t){return t})||[]},only:function(e){if(!pc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ne.Component=Uo;ne.Fragment=Ty;ne.Profiler=_y;ne.PureComponent=cc;ne.StrictMode=Oy;ne.Suspense=Iy;ne.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Hy;ne.act=ih;ne.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=eh({},e.props),o=e.key,s=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,i=fc.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)rh.call(t,a)&&!oh.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var c=0;c<a;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:Ys,type:e.type,key:o,ref:s,props:r,_owner:i}};ne.createContext=function(e){return e={$$typeof:My,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:jy,_context:e},e.Consumer=e};ne.createElement=sh;ne.createFactory=function(e){var t=sh.bind(null,e);return t.type=e,t};ne.createRef=function(){return{current:null}};ne.forwardRef=function(e){return{$$typeof:Ay,render:e}};ne.isValidElement=pc;ne.lazy=function(e){return{$$typeof:Ly,_payload:{_status:-1,_result:e},_init:Uy}};ne.memo=function(e,t){return{$$typeof:Dy,type:e,compare:t===void 0?null:t}};ne.startTransition=function(e){var t=ji.transition;ji.transition={};try{e()}finally{ji.transition=t}};ne.unstable_act=ih;ne.useCallback=function(e,t){return Je.current.useCallback(e,t)};ne.useContext=function(e){return Je.current.useContext(e)};ne.useDebugValue=function(){};ne.useDeferredValue=function(e){return Je.current.useDeferredValue(e)};ne.useEffect=function(e,t){return Je.current.useEffect(e,t)};ne.useId=function(){return Je.current.useId()};ne.useImperativeHandle=function(e,t,n){return Je.current.useImperativeHandle(e,t,n)};ne.useInsertionEffect=function(e,t){return Je.current.useInsertionEffect(e,t)};ne.useLayoutEffect=function(e,t){return Je.current.useLayoutEffect(e,t)};ne.useMemo=function(e,t){return Je.current.useMemo(e,t)};ne.useReducer=function(e,t,n){return Je.current.useReducer(e,t,n)};ne.useRef=function(e){return Je.current.useRef(e)};ne.useState=function(e){return Je.current.useState(e)};ne.useSyncExternalStore=function(e,t,n){return Je.current.useSyncExternalStore(e,t,n)};ne.useTransition=function(){return Je.current.useTransition()};ne.version="18.3.1";Zp.exports=ne;var x=Zp.exports;const M=Gp(x),lh=Py({__proto__:null,default:M},[x]);/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its 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 Vy=x,$y=Symbol.for("react.element"),Wy=Symbol.for("react.fragment"),Qy=Object.prototype.hasOwnProperty,Ky=Vy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Yy={key:!0,ref:!0,__self:!0,__source:!0};function ah(e,t,n){var r,o={},s=null,i=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)Qy.call(t,r)&&!Yy.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:$y,type:e,key:s,ref:i,props:o,_owner:Ky.current}}Rl.Fragment=Wy;Rl.jsx=ah;Rl.jsxs=ah;Xp.exports=Rl;var g=Xp.exports,uh={exports:{}},yt={},ch={exports:{}},dh={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its 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
+ */(function(e){function t(R,A){var F=R.length;R.push(A);e:for(;0<F;){var W=F-1>>>1,ae=R[W];if(0<o(ae,A))R[W]=A,R[F]=ae,F=W;else break e}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var A=R[0],F=R.pop();if(F!==A){R[0]=F;e:for(var W=0,ae=R.length,K=ae>>>1;W<K;){var G=2*(W+1)-1,oe=R[G],ue=G+1,V=R[ue];if(0>o(oe,F))ue<ae&&0>o(V,oe)?(R[W]=V,R[ue]=F,W=ue):(R[W]=oe,R[G]=F,W=G);else if(ue<ae&&0>o(V,F))R[W]=V,R[ue]=F,W=ue;else break e}}return A}function o(R,A){var F=R.sortIndex-A.sortIndex;return F!==0?F:R.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var a=[],c=[],f=1,u=null,h=3,y=!1,S=!1,m=!1,w=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(R){for(var A=n(c);A!==null;){if(A.callback===null)r(c);else if(A.startTime<=R)r(c),A.sortIndex=A.expirationTime,t(a,A);else break;A=n(c)}}function b(R){if(m=!1,v(R),!S)if(n(a)!==null)S=!0,I(E);else{var A=n(c);A!==null&&H(b,A.startTime-R)}}function E(R,A){S=!1,m&&(m=!1,d(T),T=-1),y=!0;var F=h;try{for(v(A),u=n(a);u!==null&&(!(u.expirationTime>A)||R&&!D());){var W=u.callback;if(typeof W=="function"){u.callback=null,h=u.priorityLevel;var ae=W(u.expirationTime<=A);A=e.unstable_now(),typeof ae=="function"?u.callback=ae:u===n(a)&&r(a),v(A)}else r(a);u=n(a)}if(u!==null)var K=!0;else{var G=n(c);G!==null&&H(b,G.startTime-A),K=!1}return K}finally{u=null,h=F,y=!1}}var k=!1,N=null,T=-1,O=5,P=-1;function D(){return!(e.unstable_now()-P<O)}function j(){if(N!==null){var R=e.unstable_now();P=R;var A=!0;try{A=N(!0,R)}finally{A?B():(k=!1,N=null)}}else k=!1}var B;if(typeof p=="function")B=function(){p(j)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,te=U.port2;U.port1.onmessage=j,B=function(){te.postMessage(null)}}else B=function(){w(j,0)};function I(R){N=R,k||(k=!0,B())}function H(R,A){T=w(function(){R(e.unstable_now())},A)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(R){R.callback=null},e.unstable_continueExecution=function(){S||y||(S=!0,I(E))},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(R){switch(h){case 1:case 2:case 3:var A=3;break;default:A=h}var F=h;h=A;try{return R()}finally{h=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,A){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var F=h;h=R;try{return A()}finally{h=F}},e.unstable_scheduleCallback=function(R,A,F){var W=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?W+F:W):F=W,R){case 1:var ae=-1;break;case 2:ae=250;break;case 5:ae=1073741823;break;case 4:ae=1e4;break;default:ae=5e3}return ae=F+ae,R={id:f++,callback:A,priorityLevel:R,startTime:F,expirationTime:ae,sortIndex:-1},F>W?(R.sortIndex=F,t(c,R),n(a)===null&&R===n(c)&&(m?(d(T),T=-1):m=!0,H(b,F-W))):(R.sortIndex=ae,t(a,R),S||y||(S=!0,I(E))),R},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(R){var A=h;return function(){var F=h;h=A;try{return R.apply(this,arguments)}finally{h=F}}}})(dh);ch.exports=dh;var qy=ch.exports;/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its 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 Gy=x,vt=qy;function _(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;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."}var fh=new Set,bs={};function Vr(e,t){jo(e,t),jo(e+"Capture",t)}function jo(e,t){for(bs[e]=t,e=0;e<t.length;e++)fh.add(t[e])}var xn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Va=Object.prototype.hasOwnProperty,Xy=/^[: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]*$/,zd={},Bd={};function Zy(e){return Va.call(Bd,e)?!0:Va.call(zd,e)?!1:Xy.test(e)?Bd[e]=!0:(zd[e]=!0,!1)}function Jy(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function e0(e,t,n,r){if(t===null||typeof t>"u"||Jy(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function et(e,t,n,r,o,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var Ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ue[e]=new et(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ue[t]=new et(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ue[e]=new et(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ue[e]=new et(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ue[e]=new et(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ue[e]=new et(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ue[e]=new et(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ue[e]=new et(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ue[e]=new et(e,5,!1,e.toLowerCase(),null,!1,!1)});var hc=/[\-:]([a-z])/g;function mc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(hc,mc);Ue[t]=new et(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(hc,mc);Ue[t]=new et(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(hc,mc);Ue[t]=new et(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ue[e]=new et(e,1,!1,e.toLowerCase(),null,!1,!1)});Ue.xlinkHref=new et("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ue[e]=new et(e,1,!1,e.toLowerCase(),null,!0,!0)});function gc(e,t,n,r){var o=Ue.hasOwnProperty(t)?Ue[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(e0(t,n,o,r)&&(n=null),r||o===null?Zy(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var kn=Gy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,li=Symbol.for("react.element"),Zr=Symbol.for("react.portal"),Jr=Symbol.for("react.fragment"),vc=Symbol.for("react.strict_mode"),$a=Symbol.for("react.profiler"),ph=Symbol.for("react.provider"),hh=Symbol.for("react.context"),yc=Symbol.for("react.forward_ref"),Wa=Symbol.for("react.suspense"),Qa=Symbol.for("react.suspense_list"),xc=Symbol.for("react.memo"),jn=Symbol.for("react.lazy"),mh=Symbol.for("react.offscreen"),Ud=Symbol.iterator;function Xo(e){return e===null||typeof e!="object"?null:(e=Ud&&e[Ud]||e["@@iterator"],typeof e=="function"?e:null)}var be=Object.assign,la;function ls(e){if(la===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);la=t&&t[1]||""}return`
34
+ `+la+e}var aa=!1;function ua(e,t){if(!e||aa)return"";aa=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var o=c.stack.split(`
35
+ `),s=r.stack.split(`
36
+ `),i=o.length-1,l=s.length-1;1<=i&&0<=l&&o[i]!==s[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==s[l]){if(i!==1||l!==1)do if(i--,l--,0>l||o[i]!==s[l]){var a=`
37
+ `+o[i].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=i&&0<=l);break}}}finally{aa=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ls(e):""}function t0(e){switch(e.tag){case 5:return ls(e.type);case 16:return ls("Lazy");case 13:return ls("Suspense");case 19:return ls("SuspenseList");case 0:case 2:case 15:return e=ua(e.type,!1),e;case 11:return e=ua(e.type.render,!1),e;case 1:return e=ua(e.type,!0),e;default:return""}}function Ka(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Jr:return"Fragment";case Zr:return"Portal";case $a:return"Profiler";case vc:return"StrictMode";case Wa:return"Suspense";case Qa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hh:return(e.displayName||"Context")+".Consumer";case ph:return(e._context.displayName||"Context")+".Provider";case yc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xc:return t=e.displayName||null,t!==null?t:Ka(e.type)||"Memo";case jn:t=e._payload,e=e._init;try{return Ka(e(t))}catch{}}return null}function n0(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ka(t);case 8:return t===vc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function nr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function r0(e){var t=gh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ai(e){e._valueTracker||(e._valueTracker=r0(e))}function vh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=gh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function qi(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}}function Ya(e,t){var n=t.checked;return be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Hd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=nr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function yh(e,t){t=t.checked,t!=null&&gc(e,"checked",t,!1)}function qa(e,t){yh(e,t);var n=nr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ga(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ga(e,t.type,nr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Vd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ga(e,t,n){(t!=="number"||qi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var as=Array.isArray;function co(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+nr(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Xa(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(_(91));return be({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function $d(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(_(92));if(as(n)){if(1<n.length)throw Error(_(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:nr(n)}}function xh(e,t){var n=nr(t.value),r=nr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Wd(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function wh(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Za(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?wh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ui,Sh=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ui=ui||document.createElement("div"),ui.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ui.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Cs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ps={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},o0=["Webkit","ms","Moz","O"];Object.keys(ps).forEach(function(e){o0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ps[t]=ps[e]})});function bh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ps.hasOwnProperty(e)&&ps[e]?(""+t).trim():t+"px"}function Ch(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=bh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var s0=be({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ja(e,t){if(t){if(s0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function eu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 tu=null;function wc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var nu=null,fo=null,po=null;function Qd(e){if(e=Xs(e)){if(typeof nu!="function")throw Error(_(280));var t=e.stateNode;t&&(t=Ml(t),nu(e.stateNode,e.type,t))}}function Eh(e){fo?po?po.push(e):po=[e]:fo=e}function kh(){if(fo){var e=fo,t=po;if(po=fo=null,Qd(e),t)for(e=0;e<t.length;e++)Qd(t[e])}}function Nh(e,t){return e(t)}function Ph(){}var ca=!1;function Rh(e,t,n){if(ca)return e(t,n);ca=!0;try{return Nh(e,t,n)}finally{ca=!1,(fo!==null||po!==null)&&(Ph(),kh())}}function Es(e,t){var n=e.stateNode;if(n===null)return null;var r=Ml(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(_(231,t,typeof n));return n}var ru=!1;if(xn)try{var Zo={};Object.defineProperty(Zo,"passive",{get:function(){ru=!0}}),window.addEventListener("test",Zo,Zo),window.removeEventListener("test",Zo,Zo)}catch{ru=!1}function i0(e,t,n,r,o,s,i,l,a){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(f){this.onError(f)}}var hs=!1,Gi=null,Xi=!1,ou=null,l0={onError:function(e){hs=!0,Gi=e}};function a0(e,t,n,r,o,s,i,l,a){hs=!1,Gi=null,i0.apply(l0,arguments)}function u0(e,t,n,r,o,s,i,l,a){if(a0.apply(this,arguments),hs){if(hs){var c=Gi;hs=!1,Gi=null}else throw Error(_(198));Xi||(Xi=!0,ou=c)}}function $r(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Th(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 Kd(e){if($r(e)!==e)throw Error(_(188))}function c0(e){var t=e.alternate;if(!t){if(t=$r(e),t===null)throw Error(_(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var s=o.alternate;if(s===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return Kd(o),e;if(s===r)return Kd(o),t;s=s.sibling}throw Error(_(188))}if(n.return!==r.return)n=o,r=s;else{for(var i=!1,l=o.child;l;){if(l===n){i=!0,n=o,r=s;break}if(l===r){i=!0,r=o,n=s;break}l=l.sibling}if(!i){for(l=s.child;l;){if(l===n){i=!0,n=s,r=o;break}if(l===r){i=!0,r=s,n=o;break}l=l.sibling}if(!i)throw Error(_(189))}}if(n.alternate!==r)throw Error(_(190))}if(n.tag!==3)throw Error(_(188));return n.stateNode.current===n?e:t}function Oh(e){return e=c0(e),e!==null?_h(e):null}function _h(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=_h(e);if(t!==null)return t;e=e.sibling}return null}var jh=vt.unstable_scheduleCallback,Yd=vt.unstable_cancelCallback,d0=vt.unstable_shouldYield,f0=vt.unstable_requestPaint,Ne=vt.unstable_now,p0=vt.unstable_getCurrentPriorityLevel,Sc=vt.unstable_ImmediatePriority,Mh=vt.unstable_UserBlockingPriority,Zi=vt.unstable_NormalPriority,h0=vt.unstable_LowPriority,Ah=vt.unstable_IdlePriority,Tl=null,tn=null;function m0(e){if(tn&&typeof tn.onCommitFiberRoot=="function")try{tn.onCommitFiberRoot(Tl,e,void 0,(e.current.flags&128)===128)}catch{}}var Bt=Math.clz32?Math.clz32:y0,g0=Math.log,v0=Math.LN2;function y0(e){return e>>>=0,e===0?32:31-(g0(e)/v0|0)|0}var ci=64,di=4194304;function us(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ji(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var l=i&~o;l!==0?r=us(l):(s&=i,s!==0&&(r=us(s)))}else i=n&~o,i!==0?r=us(i):s!==0&&(r=us(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Bt(t),o=1<<n,r|=e[n],t&=~o;return r}function x0(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function w0(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var i=31-Bt(s),l=1<<i,a=o[i];a===-1?(!(l&n)||l&r)&&(o[i]=x0(l,t)):a<=t&&(e.expiredLanes|=l),s&=~l}}function su(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ih(){var e=ci;return ci<<=1,!(ci&4194240)&&(ci=64),e}function da(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function qs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Bt(t),e[t]=n}function S0(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Bt(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function bc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Bt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var de=0;function Dh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Lh,Cc,Fh,zh,Bh,iu=!1,fi=[],Kn=null,Yn=null,qn=null,ks=new Map,Ns=new Map,An=[],b0="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 submit".split(" ");function qd(e,t){switch(e){case"focusin":case"focusout":Kn=null;break;case"dragenter":case"dragleave":Yn=null;break;case"mouseover":case"mouseout":qn=null;break;case"pointerover":case"pointerout":ks.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ns.delete(t.pointerId)}}function Jo(e,t,n,r,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},t!==null&&(t=Xs(t),t!==null&&Cc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function C0(e,t,n,r,o){switch(t){case"focusin":return Kn=Jo(Kn,e,t,n,r,o),!0;case"dragenter":return Yn=Jo(Yn,e,t,n,r,o),!0;case"mouseover":return qn=Jo(qn,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return ks.set(s,Jo(ks.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,Ns.set(s,Jo(Ns.get(s)||null,e,t,n,r,o)),!0}return!1}function Uh(e){var t=vr(e.target);if(t!==null){var n=$r(t);if(n!==null){if(t=n.tag,t===13){if(t=Th(n),t!==null){e.blockedOn=t,Bh(e.priority,function(){Fh(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 Mi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=lu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);tu=r,n.target.dispatchEvent(r),tu=null}else return t=Xs(n),t!==null&&Cc(t),e.blockedOn=n,!1;t.shift()}return!0}function Gd(e,t,n){Mi(e)&&n.delete(t)}function E0(){iu=!1,Kn!==null&&Mi(Kn)&&(Kn=null),Yn!==null&&Mi(Yn)&&(Yn=null),qn!==null&&Mi(qn)&&(qn=null),ks.forEach(Gd),Ns.forEach(Gd)}function es(e,t){e.blockedOn===t&&(e.blockedOn=null,iu||(iu=!0,vt.unstable_scheduleCallback(vt.unstable_NormalPriority,E0)))}function Ps(e){function t(o){return es(o,e)}if(0<fi.length){es(fi[0],e);for(var n=1;n<fi.length;n++){var r=fi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Kn!==null&&es(Kn,e),Yn!==null&&es(Yn,e),qn!==null&&es(qn,e),ks.forEach(t),Ns.forEach(t),n=0;n<An.length;n++)r=An[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<An.length&&(n=An[0],n.blockedOn===null);)Uh(n),n.blockedOn===null&&An.shift()}var ho=kn.ReactCurrentBatchConfig,el=!0;function k0(e,t,n,r){var o=de,s=ho.transition;ho.transition=null;try{de=1,Ec(e,t,n,r)}finally{de=o,ho.transition=s}}function N0(e,t,n,r){var o=de,s=ho.transition;ho.transition=null;try{de=4,Ec(e,t,n,r)}finally{de=o,ho.transition=s}}function Ec(e,t,n,r){if(el){var o=lu(e,t,n,r);if(o===null)Sa(e,t,r,tl,n),qd(e,r);else if(C0(o,e,t,n,r))r.stopPropagation();else if(qd(e,r),t&4&&-1<b0.indexOf(e)){for(;o!==null;){var s=Xs(o);if(s!==null&&Lh(s),s=lu(e,t,n,r),s===null&&Sa(e,t,r,tl,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else Sa(e,t,r,null,n)}}var tl=null;function lu(e,t,n,r){if(tl=null,e=wc(r),e=vr(e),e!==null)if(t=$r(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Th(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 tl=e,null}function Hh(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(p0()){case Sc:return 1;case Mh:return 4;case Zi:case h0:return 16;case Ah:return 536870912;default:return 16}default:return 16}}var Wn=null,kc=null,Ai=null;function Vh(){if(Ai)return Ai;var e,t=kc,n=t.length,r,o="value"in Wn?Wn.value:Wn.textContent,s=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[s-r];r++);return Ai=o.slice(e,1<r?1-r:void 0)}function Ii(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 pi(){return!0}function Xd(){return!1}function xt(e){function t(n,r,o,s,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=s,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?pi:Xd,this.isPropagationStopped=Xd,this}return be(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=pi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=pi)},persist:function(){},isPersistent:pi}),t}var Ho={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nc=xt(Ho),Gs=be({},Ho,{view:0,detail:0}),P0=xt(Gs),fa,pa,ts,Ol=be({},Gs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pc,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!==ts&&(ts&&e.type==="mousemove"?(fa=e.screenX-ts.screenX,pa=e.screenY-ts.screenY):pa=fa=0,ts=e),fa)},movementY:function(e){return"movementY"in e?e.movementY:pa}}),Zd=xt(Ol),R0=be({},Ol,{dataTransfer:0}),T0=xt(R0),O0=be({},Gs,{relatedTarget:0}),ha=xt(O0),_0=be({},Ho,{animationName:0,elapsedTime:0,pseudoElement:0}),j0=xt(_0),M0=be({},Ho,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),A0=xt(M0),I0=be({},Ho,{data:0}),Jd=xt(I0),D0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},L0={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"},F0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function z0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=F0[e])?!!t[e]:!1}function Pc(){return z0}var B0=be({},Gs,{key:function(e){if(e.key){var t=D0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ii(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?L0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pc,charCode:function(e){return e.type==="keypress"?Ii(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ii(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),U0=xt(B0),H0=be({},Ol,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ef=xt(H0),V0=be({},Gs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pc}),$0=xt(V0),W0=be({},Ho,{propertyName:0,elapsedTime:0,pseudoElement:0}),Q0=xt(W0),K0=be({},Ol,{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}),Y0=xt(K0),q0=[9,13,27,32],Rc=xn&&"CompositionEvent"in window,ms=null;xn&&"documentMode"in document&&(ms=document.documentMode);var G0=xn&&"TextEvent"in window&&!ms,$h=xn&&(!Rc||ms&&8<ms&&11>=ms),tf=" ",nf=!1;function Wh(e,t){switch(e){case"keyup":return q0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var eo=!1;function X0(e,t){switch(e){case"compositionend":return Qh(t);case"keypress":return t.which!==32?null:(nf=!0,tf);case"textInput":return e=t.data,e===tf&&nf?null:e;default:return null}}function Z0(e,t){if(eo)return e==="compositionend"||!Rc&&Wh(e,t)?(e=Vh(),Ai=kc=Wn=null,eo=!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 $h&&t.locale!=="ko"?null:t.data;default:return null}}var J0={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 rf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!J0[e.type]:t==="textarea"}function Kh(e,t,n,r){Eh(r),t=nl(t,"onChange"),0<t.length&&(n=new Nc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var gs=null,Rs=null;function ex(e){om(e,0)}function _l(e){var t=ro(e);if(vh(t))return e}function tx(e,t){if(e==="change")return t}var Yh=!1;if(xn){var ma;if(xn){var ga="oninput"in document;if(!ga){var of=document.createElement("div");of.setAttribute("oninput","return;"),ga=typeof of.oninput=="function"}ma=ga}else ma=!1;Yh=ma&&(!document.documentMode||9<document.documentMode)}function sf(){gs&&(gs.detachEvent("onpropertychange",qh),Rs=gs=null)}function qh(e){if(e.propertyName==="value"&&_l(Rs)){var t=[];Kh(t,Rs,e,wc(e)),Rh(ex,t)}}function nx(e,t,n){e==="focusin"?(sf(),gs=t,Rs=n,gs.attachEvent("onpropertychange",qh)):e==="focusout"&&sf()}function rx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return _l(Rs)}function ox(e,t){if(e==="click")return _l(t)}function sx(e,t){if(e==="input"||e==="change")return _l(t)}function ix(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ht=typeof Object.is=="function"?Object.is:ix;function Ts(e,t){if(Ht(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Va.call(t,o)||!Ht(e[o],t[o]))return!1}return!0}function lf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function af(e,t){var n=lf(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=lf(n)}}function Gh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Gh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xh(){for(var e=window,t=qi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=qi(e.document)}return t}function Tc(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")}function lx(e){var t=Xh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Gh(n.ownerDocument.documentElement,n)){if(r!==null&&Tc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=af(n,s);var i=af(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var ax=xn&&"documentMode"in document&&11>=document.documentMode,to=null,au=null,vs=null,uu=!1;function uf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;uu||to==null||to!==qi(r)||(r=to,"selectionStart"in r&&Tc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),vs&&Ts(vs,r)||(vs=r,r=nl(au,"onSelect"),0<r.length&&(t=new Nc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=to)))}function hi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var no={animationend:hi("Animation","AnimationEnd"),animationiteration:hi("Animation","AnimationIteration"),animationstart:hi("Animation","AnimationStart"),transitionend:hi("Transition","TransitionEnd")},va={},Zh={};xn&&(Zh=document.createElement("div").style,"AnimationEvent"in window||(delete no.animationend.animation,delete no.animationiteration.animation,delete no.animationstart.animation),"TransitionEvent"in window||delete no.transitionend.transition);function jl(e){if(va[e])return va[e];if(!no[e])return e;var t=no[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Zh)return va[e]=t[n];return e}var Jh=jl("animationend"),em=jl("animationiteration"),tm=jl("animationstart"),nm=jl("transitionend"),rm=new Map,cf="abort auxClick 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(" ");function ir(e,t){rm.set(e,t),Vr(t,[e])}for(var ya=0;ya<cf.length;ya++){var xa=cf[ya],ux=xa.toLowerCase(),cx=xa[0].toUpperCase()+xa.slice(1);ir(ux,"on"+cx)}ir(Jh,"onAnimationEnd");ir(em,"onAnimationIteration");ir(tm,"onAnimationStart");ir("dblclick","onDoubleClick");ir("focusin","onFocus");ir("focusout","onBlur");ir(nm,"onTransitionEnd");jo("onMouseEnter",["mouseout","mouseover"]);jo("onMouseLeave",["mouseout","mouseover"]);jo("onPointerEnter",["pointerout","pointerover"]);jo("onPointerLeave",["pointerout","pointerover"]);Vr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Vr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Vr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Vr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Vr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Vr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var cs="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(" "),dx=new Set("cancel close invalid load scroll toggle".split(" ").concat(cs));function df(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,u0(r,t,void 0,e),e.currentTarget=null}function om(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],a=l.instance,c=l.currentTarget;if(l=l.listener,a!==s&&o.isPropagationStopped())break e;df(o,l,c),s=a}else for(i=0;i<r.length;i++){if(l=r[i],a=l.instance,c=l.currentTarget,l=l.listener,a!==s&&o.isPropagationStopped())break e;df(o,l,c),s=a}}}if(Xi)throw e=ou,Xi=!1,ou=null,e}function ge(e,t){var n=t[hu];n===void 0&&(n=t[hu]=new Set);var r=e+"__bubble";n.has(r)||(sm(t,e,2,!1),n.add(r))}function wa(e,t,n){var r=0;t&&(r|=4),sm(n,e,r,t)}var mi="_reactListening"+Math.random().toString(36).slice(2);function Os(e){if(!e[mi]){e[mi]=!0,fh.forEach(function(n){n!=="selectionchange"&&(dx.has(n)||wa(n,!1,e),wa(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[mi]||(t[mi]=!0,wa("selectionchange",!1,t))}}function sm(e,t,n,r){switch(Hh(t)){case 1:var o=k0;break;case 4:o=N0;break;default:o=Ec}n=o.bind(null,t,n,e),o=void 0,!ru||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Sa(e,t,n,r,o){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var l=r.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var a=i.tag;if((a===3||a===4)&&(a=i.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;i=i.return}for(;l!==null;){if(i=vr(l),i===null)return;if(a=i.tag,a===5||a===6){r=s=i;continue e}l=l.parentNode}}r=r.return}Rh(function(){var c=s,f=wc(n),u=[];e:{var h=rm.get(e);if(h!==void 0){var y=Nc,S=e;switch(e){case"keypress":if(Ii(n)===0)break e;case"keydown":case"keyup":y=U0;break;case"focusin":S="focus",y=ha;break;case"focusout":S="blur",y=ha;break;case"beforeblur":case"afterblur":y=ha;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":y=Zd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=T0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=$0;break;case Jh:case em:case tm:y=j0;break;case nm:y=Q0;break;case"scroll":y=P0;break;case"wheel":y=Y0;break;case"copy":case"cut":case"paste":y=A0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=ef}var m=(t&4)!==0,w=!m&&e==="scroll",d=m?h!==null?h+"Capture":null:h;m=[];for(var p=c,v;p!==null;){v=p;var b=v.stateNode;if(v.tag===5&&b!==null&&(v=b,d!==null&&(b=Es(p,d),b!=null&&m.push(_s(p,b,v)))),w)break;p=p.return}0<m.length&&(h=new y(h,S,null,n,f),u.push({event:h,listeners:m}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",h&&n!==tu&&(S=n.relatedTarget||n.fromElement)&&(vr(S)||S[wn]))break e;if((y||h)&&(h=f.window===f?f:(h=f.ownerDocument)?h.defaultView||h.parentWindow:window,y?(S=n.relatedTarget||n.toElement,y=c,S=S?vr(S):null,S!==null&&(w=$r(S),S!==w||S.tag!==5&&S.tag!==6)&&(S=null)):(y=null,S=c),y!==S)){if(m=Zd,b="onMouseLeave",d="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(m=ef,b="onPointerLeave",d="onPointerEnter",p="pointer"),w=y==null?h:ro(y),v=S==null?h:ro(S),h=new m(b,p+"leave",y,n,f),h.target=w,h.relatedTarget=v,b=null,vr(f)===c&&(m=new m(d,p+"enter",S,n,f),m.target=v,m.relatedTarget=w,b=m),w=b,y&&S)t:{for(m=y,d=S,p=0,v=m;v;v=Yr(v))p++;for(v=0,b=d;b;b=Yr(b))v++;for(;0<p-v;)m=Yr(m),p--;for(;0<v-p;)d=Yr(d),v--;for(;p--;){if(m===d||d!==null&&m===d.alternate)break t;m=Yr(m),d=Yr(d)}m=null}else m=null;y!==null&&ff(u,h,y,m,!1),S!==null&&w!==null&&ff(u,w,S,m,!0)}}e:{if(h=c?ro(c):window,y=h.nodeName&&h.nodeName.toLowerCase(),y==="select"||y==="input"&&h.type==="file")var E=tx;else if(rf(h))if(Yh)E=sx;else{E=rx;var k=nx}else(y=h.nodeName)&&y.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(E=ox);if(E&&(E=E(e,c))){Kh(u,E,n,f);break e}k&&k(e,h,c),e==="focusout"&&(k=h._wrapperState)&&k.controlled&&h.type==="number"&&Ga(h,"number",h.value)}switch(k=c?ro(c):window,e){case"focusin":(rf(k)||k.contentEditable==="true")&&(to=k,au=c,vs=null);break;case"focusout":vs=au=to=null;break;case"mousedown":uu=!0;break;case"contextmenu":case"mouseup":case"dragend":uu=!1,uf(u,n,f);break;case"selectionchange":if(ax)break;case"keydown":case"keyup":uf(u,n,f)}var N;if(Rc)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else eo?Wh(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&($h&&n.locale!=="ko"&&(eo||T!=="onCompositionStart"?T==="onCompositionEnd"&&eo&&(N=Vh()):(Wn=f,kc="value"in Wn?Wn.value:Wn.textContent,eo=!0)),k=nl(c,T),0<k.length&&(T=new Jd(T,e,null,n,f),u.push({event:T,listeners:k}),N?T.data=N:(N=Qh(n),N!==null&&(T.data=N)))),(N=G0?X0(e,n):Z0(e,n))&&(c=nl(c,"onBeforeInput"),0<c.length&&(f=new Jd("onBeforeInput","beforeinput",null,n,f),u.push({event:f,listeners:c}),f.data=N))}om(u,t)})}function _s(e,t,n){return{instance:e,listener:t,currentTarget:n}}function nl(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=Es(e,n),s!=null&&r.unshift(_s(e,s,o)),s=Es(e,t),s!=null&&r.push(_s(e,s,o))),e=e.return}return r}function Yr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ff(e,t,n,r,o){for(var s=t._reactName,i=[];n!==null&&n!==r;){var l=n,a=l.alternate,c=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&c!==null&&(l=c,o?(a=Es(n,s),a!=null&&i.unshift(_s(n,a,l))):o||(a=Es(n,s),a!=null&&i.push(_s(n,a,l)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var fx=/\r\n?/g,px=/\u0000|\uFFFD/g;function pf(e){return(typeof e=="string"?e:""+e).replace(fx,`
38
+ `).replace(px,"")}function gi(e,t,n){if(t=pf(t),pf(e)!==t&&n)throw Error(_(425))}function rl(){}var cu=null,du=null;function fu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var pu=typeof setTimeout=="function"?setTimeout:void 0,hx=typeof clearTimeout=="function"?clearTimeout:void 0,hf=typeof Promise=="function"?Promise:void 0,mx=typeof queueMicrotask=="function"?queueMicrotask:typeof hf<"u"?function(e){return hf.resolve(null).then(e).catch(gx)}:pu;function gx(e){setTimeout(function(){throw e})}function ba(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Ps(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Ps(t)}function Gn(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==="$?")break;if(t==="/$")return null}}return e}function mf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Vo=Math.random().toString(36).slice(2),Zt="__reactFiber$"+Vo,js="__reactProps$"+Vo,wn="__reactContainer$"+Vo,hu="__reactEvents$"+Vo,vx="__reactListeners$"+Vo,yx="__reactHandles$"+Vo;function vr(e){var t=e[Zt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[wn]||n[Zt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=mf(e);e!==null;){if(n=e[Zt])return n;e=mf(e)}return t}e=n,n=e.parentNode}return null}function Xs(e){return e=e[Zt]||e[wn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ro(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(_(33))}function Ml(e){return e[js]||null}var mu=[],oo=-1;function lr(e){return{current:e}}function ye(e){0>oo||(e.current=mu[oo],mu[oo]=null,oo--)}function pe(e,t){oo++,mu[oo]=e.current,e.current=t}var rr={},Qe=lr(rr),lt=lr(!1),jr=rr;function Mo(e,t){var n=e.type.contextTypes;if(!n)return rr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function at(e){return e=e.childContextTypes,e!=null}function ol(){ye(lt),ye(Qe)}function gf(e,t,n){if(Qe.current!==rr)throw Error(_(168));pe(Qe,t),pe(lt,n)}function im(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(_(108,n0(e)||"Unknown",o));return be({},n,r)}function sl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rr,jr=Qe.current,pe(Qe,e),pe(lt,lt.current),!0}function vf(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=im(e,t,jr),r.__reactInternalMemoizedMergedChildContext=e,ye(lt),ye(Qe),pe(Qe,e)):ye(lt),pe(lt,n)}var cn=null,Al=!1,Ca=!1;function lm(e){cn===null?cn=[e]:cn.push(e)}function xx(e){Al=!0,lm(e)}function ar(){if(!Ca&&cn!==null){Ca=!0;var e=0,t=de;try{var n=cn;for(de=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}cn=null,Al=!1}catch(o){throw cn!==null&&(cn=cn.slice(e+1)),jh(Sc,ar),o}finally{de=t,Ca=!1}}return null}var so=[],io=0,il=null,ll=0,Et=[],kt=0,Mr=null,mn=1,gn="";function mr(e,t){so[io++]=ll,so[io++]=il,il=e,ll=t}function am(e,t,n){Et[kt++]=mn,Et[kt++]=gn,Et[kt++]=Mr,Mr=e;var r=mn;e=gn;var o=32-Bt(r)-1;r&=~(1<<o),n+=1;var s=32-Bt(t)+o;if(30<s){var i=o-o%5;s=(r&(1<<i)-1).toString(32),r>>=i,o-=i,mn=1<<32-Bt(t)+o|n<<o|r,gn=s+e}else mn=1<<s|n<<o|r,gn=e}function Oc(e){e.return!==null&&(mr(e,1),am(e,1,0))}function _c(e){for(;e===il;)il=so[--io],so[io]=null,ll=so[--io],so[io]=null;for(;e===Mr;)Mr=Et[--kt],Et[kt]=null,gn=Et[--kt],Et[kt]=null,mn=Et[--kt],Et[kt]=null}var mt=null,ht=null,xe=!1,zt=null;function um(e,t){var n=Nt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function yf(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,mt=e,ht=Gn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,mt=e,ht=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Mr!==null?{id:mn,overflow:gn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Nt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,mt=e,ht=null,!0):!1;default:return!1}}function gu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function vu(e){if(xe){var t=ht;if(t){var n=t;if(!yf(e,t)){if(gu(e))throw Error(_(418));t=Gn(n.nextSibling);var r=mt;t&&yf(e,t)?um(r,n):(e.flags=e.flags&-4097|2,xe=!1,mt=e)}}else{if(gu(e))throw Error(_(418));e.flags=e.flags&-4097|2,xe=!1,mt=e}}}function xf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;mt=e}function vi(e){if(e!==mt)return!1;if(!xe)return xf(e),xe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!fu(e.type,e.memoizedProps)),t&&(t=ht)){if(gu(e))throw cm(),Error(_(418));for(;t;)um(e,t),t=Gn(t.nextSibling)}if(xf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(_(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ht=Gn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ht=null}}else ht=mt?Gn(e.stateNode.nextSibling):null;return!0}function cm(){for(var e=ht;e;)e=Gn(e.nextSibling)}function Ao(){ht=mt=null,xe=!1}function jc(e){zt===null?zt=[e]:zt.push(e)}var wx=kn.ReactCurrentBatchConfig;function ns(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(_(309));var r=n.stateNode}if(!r)throw Error(_(147,e));var o=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(i){var l=o.refs;i===null?delete l[s]:l[s]=i},t._stringRef=s,t)}if(typeof e!="string")throw Error(_(284));if(!n._owner)throw Error(_(290,e))}return e}function yi(e,t){throw e=Object.prototype.toString.call(t),Error(_(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function wf(e){var t=e._init;return t(e._payload)}function dm(e){function t(d,p){if(e){var v=d.deletions;v===null?(d.deletions=[p],d.flags|=16):v.push(p)}}function n(d,p){if(!e)return null;for(;p!==null;)t(d,p),p=p.sibling;return null}function r(d,p){for(d=new Map;p!==null;)p.key!==null?d.set(p.key,p):d.set(p.index,p),p=p.sibling;return d}function o(d,p){return d=er(d,p),d.index=0,d.sibling=null,d}function s(d,p,v){return d.index=v,e?(v=d.alternate,v!==null?(v=v.index,v<p?(d.flags|=2,p):v):(d.flags|=2,p)):(d.flags|=1048576,p)}function i(d){return e&&d.alternate===null&&(d.flags|=2),d}function l(d,p,v,b){return p===null||p.tag!==6?(p=Oa(v,d.mode,b),p.return=d,p):(p=o(p,v),p.return=d,p)}function a(d,p,v,b){var E=v.type;return E===Jr?f(d,p,v.props.children,b,v.key):p!==null&&(p.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===jn&&wf(E)===p.type)?(b=o(p,v.props),b.ref=ns(d,p,v),b.return=d,b):(b=Hi(v.type,v.key,v.props,null,d.mode,b),b.ref=ns(d,p,v),b.return=d,b)}function c(d,p,v,b){return p===null||p.tag!==4||p.stateNode.containerInfo!==v.containerInfo||p.stateNode.implementation!==v.implementation?(p=_a(v,d.mode,b),p.return=d,p):(p=o(p,v.children||[]),p.return=d,p)}function f(d,p,v,b,E){return p===null||p.tag!==7?(p=_r(v,d.mode,b,E),p.return=d,p):(p=o(p,v),p.return=d,p)}function u(d,p,v){if(typeof p=="string"&&p!==""||typeof p=="number")return p=Oa(""+p,d.mode,v),p.return=d,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case li:return v=Hi(p.type,p.key,p.props,null,d.mode,v),v.ref=ns(d,null,p),v.return=d,v;case Zr:return p=_a(p,d.mode,v),p.return=d,p;case jn:var b=p._init;return u(d,b(p._payload),v)}if(as(p)||Xo(p))return p=_r(p,d.mode,v,null),p.return=d,p;yi(d,p)}return null}function h(d,p,v,b){var E=p!==null?p.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return E!==null?null:l(d,p,""+v,b);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case li:return v.key===E?a(d,p,v,b):null;case Zr:return v.key===E?c(d,p,v,b):null;case jn:return E=v._init,h(d,p,E(v._payload),b)}if(as(v)||Xo(v))return E!==null?null:f(d,p,v,b,null);yi(d,v)}return null}function y(d,p,v,b,E){if(typeof b=="string"&&b!==""||typeof b=="number")return d=d.get(v)||null,l(p,d,""+b,E);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case li:return d=d.get(b.key===null?v:b.key)||null,a(p,d,b,E);case Zr:return d=d.get(b.key===null?v:b.key)||null,c(p,d,b,E);case jn:var k=b._init;return y(d,p,v,k(b._payload),E)}if(as(b)||Xo(b))return d=d.get(v)||null,f(p,d,b,E,null);yi(p,b)}return null}function S(d,p,v,b){for(var E=null,k=null,N=p,T=p=0,O=null;N!==null&&T<v.length;T++){N.index>T?(O=N,N=null):O=N.sibling;var P=h(d,N,v[T],b);if(P===null){N===null&&(N=O);break}e&&N&&P.alternate===null&&t(d,N),p=s(P,p,T),k===null?E=P:k.sibling=P,k=P,N=O}if(T===v.length)return n(d,N),xe&&mr(d,T),E;if(N===null){for(;T<v.length;T++)N=u(d,v[T],b),N!==null&&(p=s(N,p,T),k===null?E=N:k.sibling=N,k=N);return xe&&mr(d,T),E}for(N=r(d,N);T<v.length;T++)O=y(N,d,T,v[T],b),O!==null&&(e&&O.alternate!==null&&N.delete(O.key===null?T:O.key),p=s(O,p,T),k===null?E=O:k.sibling=O,k=O);return e&&N.forEach(function(D){return t(d,D)}),xe&&mr(d,T),E}function m(d,p,v,b){var E=Xo(v);if(typeof E!="function")throw Error(_(150));if(v=E.call(v),v==null)throw Error(_(151));for(var k=E=null,N=p,T=p=0,O=null,P=v.next();N!==null&&!P.done;T++,P=v.next()){N.index>T?(O=N,N=null):O=N.sibling;var D=h(d,N,P.value,b);if(D===null){N===null&&(N=O);break}e&&N&&D.alternate===null&&t(d,N),p=s(D,p,T),k===null?E=D:k.sibling=D,k=D,N=O}if(P.done)return n(d,N),xe&&mr(d,T),E;if(N===null){for(;!P.done;T++,P=v.next())P=u(d,P.value,b),P!==null&&(p=s(P,p,T),k===null?E=P:k.sibling=P,k=P);return xe&&mr(d,T),E}for(N=r(d,N);!P.done;T++,P=v.next())P=y(N,d,T,P.value,b),P!==null&&(e&&P.alternate!==null&&N.delete(P.key===null?T:P.key),p=s(P,p,T),k===null?E=P:k.sibling=P,k=P);return e&&N.forEach(function(j){return t(d,j)}),xe&&mr(d,T),E}function w(d,p,v,b){if(typeof v=="object"&&v!==null&&v.type===Jr&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case li:e:{for(var E=v.key,k=p;k!==null;){if(k.key===E){if(E=v.type,E===Jr){if(k.tag===7){n(d,k.sibling),p=o(k,v.props.children),p.return=d,d=p;break e}}else if(k.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===jn&&wf(E)===k.type){n(d,k.sibling),p=o(k,v.props),p.ref=ns(d,k,v),p.return=d,d=p;break e}n(d,k);break}else t(d,k);k=k.sibling}v.type===Jr?(p=_r(v.props.children,d.mode,b,v.key),p.return=d,d=p):(b=Hi(v.type,v.key,v.props,null,d.mode,b),b.ref=ns(d,p,v),b.return=d,d=b)}return i(d);case Zr:e:{for(k=v.key;p!==null;){if(p.key===k)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(d,p.sibling),p=o(p,v.children||[]),p.return=d,d=p;break e}else{n(d,p);break}else t(d,p);p=p.sibling}p=_a(v,d.mode,b),p.return=d,d=p}return i(d);case jn:return k=v._init,w(d,p,k(v._payload),b)}if(as(v))return S(d,p,v,b);if(Xo(v))return m(d,p,v,b);yi(d,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(n(d,p.sibling),p=o(p,v),p.return=d,d=p):(n(d,p),p=Oa(v,d.mode,b),p.return=d,d=p),i(d)):n(d,p)}return w}var Io=dm(!0),fm=dm(!1),al=lr(null),ul=null,lo=null,Mc=null;function Ac(){Mc=lo=ul=null}function Ic(e){var t=al.current;ye(al),e._currentValue=t}function yu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function mo(e,t){ul=e,Mc=lo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(it=!0),e.firstContext=null)}function Rt(e){var t=e._currentValue;if(Mc!==e)if(e={context:e,memoizedValue:t,next:null},lo===null){if(ul===null)throw Error(_(308));lo=e,ul.dependencies={lanes:0,firstContext:e}}else lo=lo.next=e;return t}var yr=null;function Dc(e){yr===null?yr=[e]:yr.push(e)}function pm(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Dc(t)):(n.next=o.next,o.next=n),t.interleaved=n,Sn(e,r)}function Sn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Mn=!1;function Lc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function vn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Xn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,le&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Sn(e,n)}return o=r.interleaved,o===null?(t.next=t,Dc(r)):(t.next=o.next,o.next=t),r.interleaved=t,Sn(e,n)}function Di(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,bc(e,n)}}function Sf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function cl(e,t,n,r){var o=e.updateQueue;Mn=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,c=a.next;a.next=null,i===null?s=c:i.next=c,i=a;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==i&&(l===null?f.firstBaseUpdate=c:l.next=c,f.lastBaseUpdate=a))}if(s!==null){var u=o.baseState;i=0,f=c=a=null,l=s;do{var h=l.lane,y=l.eventTime;if((r&h)===h){f!==null&&(f=f.next={eventTime:y,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var S=e,m=l;switch(h=t,y=n,m.tag){case 1:if(S=m.payload,typeof S=="function"){u=S.call(y,u,h);break e}u=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=m.payload,h=typeof S=="function"?S.call(y,u,h):S,h==null)break e;u=be({},u,h);break e;case 2:Mn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[l]:h.push(l))}else y={eventTime:y,lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(c=f=y,a=u):f=f.next=y,i|=h;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;h=l,l=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(f===null&&(a=u),o.baseState=a,o.firstBaseUpdate=c,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);Ir|=i,e.lanes=i,e.memoizedState=u}}function bf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(_(191,o));o.call(r)}}}var Zs={},nn=lr(Zs),Ms=lr(Zs),As=lr(Zs);function xr(e){if(e===Zs)throw Error(_(174));return e}function Fc(e,t){switch(pe(As,t),pe(Ms,e),pe(nn,Zs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Za(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Za(t,e)}ye(nn),pe(nn,t)}function Do(){ye(nn),ye(Ms),ye(As)}function mm(e){xr(As.current);var t=xr(nn.current),n=Za(t,e.type);t!==n&&(pe(Ms,e),pe(nn,n))}function zc(e){Ms.current===e&&(ye(nn),ye(Ms))}var we=lr(0);function dl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 Ea=[];function Bc(){for(var e=0;e<Ea.length;e++)Ea[e]._workInProgressVersionPrimary=null;Ea.length=0}var Li=kn.ReactCurrentDispatcher,ka=kn.ReactCurrentBatchConfig,Ar=0,Se=null,Te=null,Ie=null,fl=!1,ys=!1,Is=0,Sx=0;function Ve(){throw Error(_(321))}function Uc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ht(e[n],t[n]))return!1;return!0}function Hc(e,t,n,r,o,s){if(Ar=s,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Li.current=e===null||e.memoizedState===null?kx:Nx,e=n(r,o),ys){s=0;do{if(ys=!1,Is=0,25<=s)throw Error(_(301));s+=1,Ie=Te=null,t.updateQueue=null,Li.current=Px,e=n(r,o)}while(ys)}if(Li.current=pl,t=Te!==null&&Te.next!==null,Ar=0,Ie=Te=Se=null,fl=!1,t)throw Error(_(300));return e}function Vc(){var e=Is!==0;return Is=0,e}function Yt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ie===null?Se.memoizedState=Ie=e:Ie=Ie.next=e,Ie}function Tt(){if(Te===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=Te.next;var t=Ie===null?Se.memoizedState:Ie.next;if(t!==null)Ie=t,Te=e;else{if(e===null)throw Error(_(310));Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},Ie===null?Se.memoizedState=Ie=e:Ie=Ie.next=e}return Ie}function Ds(e,t){return typeof t=="function"?t(e):t}function Na(e){var t=Tt(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=Te,o=r.baseQueue,s=n.pending;if(s!==null){if(o!==null){var i=o.next;o.next=s.next,s.next=i}r.baseQueue=o=s,n.pending=null}if(o!==null){s=o.next,r=r.baseState;var l=i=null,a=null,c=s;do{var f=c.lane;if((Ar&f)===f)a!==null&&(a=a.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var u={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};a===null?(l=a=u,i=r):a=a.next=u,Se.lanes|=f,Ir|=f}c=c.next}while(c!==null&&c!==s);a===null?i=r:a.next=l,Ht(r,t.memoizedState)||(it=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do s=o.lane,Se.lanes|=s,Ir|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Pa(e){var t=Tt(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do s=e(s,i.action),i=i.next;while(i!==o);Ht(s,t.memoizedState)||(it=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function gm(){}function vm(e,t){var n=Se,r=Tt(),o=t(),s=!Ht(r.memoizedState,o);if(s&&(r.memoizedState=o,it=!0),r=r.queue,$c(wm.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Ie!==null&&Ie.memoizedState.tag&1){if(n.flags|=2048,Ls(9,xm.bind(null,n,r,o,t),void 0,null),De===null)throw Error(_(349));Ar&30||ym(n,t,o)}return o}function ym(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Se.updateQueue,t===null?(t={lastEffect:null,stores:null},Se.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function xm(e,t,n,r){t.value=n,t.getSnapshot=r,Sm(t)&&bm(e)}function wm(e,t,n){return n(function(){Sm(t)&&bm(e)})}function Sm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ht(e,n)}catch{return!0}}function bm(e){var t=Sn(e,1);t!==null&&Ut(t,e,1,-1)}function Cf(e){var t=Yt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ds,lastRenderedState:e},t.queue=e,e=e.dispatch=Ex.bind(null,Se,e),[t.memoizedState,e]}function Ls(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Se.updateQueue,t===null?(t={lastEffect:null,stores:null},Se.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Cm(){return Tt().memoizedState}function Fi(e,t,n,r){var o=Yt();Se.flags|=e,o.memoizedState=Ls(1|t,n,void 0,r===void 0?null:r)}function Il(e,t,n,r){var o=Tt();r=r===void 0?null:r;var s=void 0;if(Te!==null){var i=Te.memoizedState;if(s=i.destroy,r!==null&&Uc(r,i.deps)){o.memoizedState=Ls(t,n,s,r);return}}Se.flags|=e,o.memoizedState=Ls(1|t,n,s,r)}function Ef(e,t){return Fi(8390656,8,e,t)}function $c(e,t){return Il(2048,8,e,t)}function Em(e,t){return Il(4,2,e,t)}function km(e,t){return Il(4,4,e,t)}function Nm(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Pm(e,t,n){return n=n!=null?n.concat([e]):null,Il(4,4,Nm.bind(null,t,e),n)}function Wc(){}function Rm(e,t){var n=Tt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Uc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Tm(e,t){var n=Tt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Uc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Om(e,t,n){return Ar&21?(Ht(n,t)||(n=Ih(),Se.lanes|=n,Ir|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,it=!0),e.memoizedState=n)}function bx(e,t){var n=de;de=n!==0&&4>n?n:4,e(!0);var r=ka.transition;ka.transition={};try{e(!1),t()}finally{de=n,ka.transition=r}}function _m(){return Tt().memoizedState}function Cx(e,t,n){var r=Jn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},jm(e))Mm(t,n);else if(n=pm(e,t,n,r),n!==null){var o=Ze();Ut(n,e,r,o),Am(n,t,r)}}function Ex(e,t,n){var r=Jn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(jm(e))Mm(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,l=s(i,n);if(o.hasEagerState=!0,o.eagerState=l,Ht(l,i)){var a=t.interleaved;a===null?(o.next=o,Dc(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=pm(e,t,o,r),n!==null&&(o=Ze(),Ut(n,e,r,o),Am(n,t,r))}}function jm(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function Mm(e,t){ys=fl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Am(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,bc(e,n)}}var pl={readContext:Rt,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useInsertionEffect:Ve,useLayoutEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useMutableSource:Ve,useSyncExternalStore:Ve,useId:Ve,unstable_isNewReconciler:!1},kx={readContext:Rt,useCallback:function(e,t){return Yt().memoizedState=[e,t===void 0?null:t],e},useContext:Rt,useEffect:Ef,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Fi(4194308,4,Nm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fi(4,2,e,t)},useMemo:function(e,t){var n=Yt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Yt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Cx.bind(null,Se,e),[r.memoizedState,e]},useRef:function(e){var t=Yt();return e={current:e},t.memoizedState=e},useState:Cf,useDebugValue:Wc,useDeferredValue:function(e){return Yt().memoizedState=e},useTransition:function(){var e=Cf(!1),t=e[0];return e=bx.bind(null,e[1]),Yt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Se,o=Yt();if(xe){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),De===null)throw Error(_(349));Ar&30||ym(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Ef(wm.bind(null,r,s,e),[e]),r.flags|=2048,Ls(9,xm.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Yt(),t=De.identifierPrefix;if(xe){var n=gn,r=mn;n=(r&~(1<<32-Bt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Is++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Sx++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Nx={readContext:Rt,useCallback:Rm,useContext:Rt,useEffect:$c,useImperativeHandle:Pm,useInsertionEffect:Em,useLayoutEffect:km,useMemo:Tm,useReducer:Na,useRef:Cm,useState:function(){return Na(Ds)},useDebugValue:Wc,useDeferredValue:function(e){var t=Tt();return Om(t,Te.memoizedState,e)},useTransition:function(){var e=Na(Ds)[0],t=Tt().memoizedState;return[e,t]},useMutableSource:gm,useSyncExternalStore:vm,useId:_m,unstable_isNewReconciler:!1},Px={readContext:Rt,useCallback:Rm,useContext:Rt,useEffect:$c,useImperativeHandle:Pm,useInsertionEffect:Em,useLayoutEffect:km,useMemo:Tm,useReducer:Pa,useRef:Cm,useState:function(){return Pa(Ds)},useDebugValue:Wc,useDeferredValue:function(e){var t=Tt();return Te===null?t.memoizedState=e:Om(t,Te.memoizedState,e)},useTransition:function(){var e=Pa(Ds)[0],t=Tt().memoizedState;return[e,t]},useMutableSource:gm,useSyncExternalStore:vm,useId:_m,unstable_isNewReconciler:!1};function It(e,t){if(e&&e.defaultProps){t=be({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function xu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:be({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Dl={isMounted:function(e){return(e=e._reactInternals)?$r(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ze(),o=Jn(e),s=vn(r,o);s.payload=t,n!=null&&(s.callback=n),t=Xn(e,s,o),t!==null&&(Ut(t,e,o,r),Di(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ze(),o=Jn(e),s=vn(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Xn(e,s,o),t!==null&&(Ut(t,e,o,r),Di(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ze(),r=Jn(e),o=vn(n,r);o.tag=2,t!=null&&(o.callback=t),t=Xn(e,o,r),t!==null&&(Ut(t,e,r,n),Di(t,e,r))}};function kf(e,t,n,r,o,s,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,i):t.prototype&&t.prototype.isPureReactComponent?!Ts(n,r)||!Ts(o,s):!0}function Im(e,t,n){var r=!1,o=rr,s=t.contextType;return typeof s=="object"&&s!==null?s=Rt(s):(o=at(t)?jr:Qe.current,r=t.contextTypes,s=(r=r!=null)?Mo(e,o):rr),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Dl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function Nf(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Dl.enqueueReplaceState(t,t.state,null)}function wu(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Lc(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=Rt(s):(s=at(t)?jr:Qe.current,o.context=Mo(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(xu(e,t,s,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Dl.enqueueReplaceState(o,o.state,null),cl(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Lo(e,t){try{var n="",r=t;do n+=t0(r),r=r.return;while(r);var o=n}catch(s){o=`
39
+ Error generating stack: `+s.message+`
40
+ `+s.stack}return{value:e,source:t,stack:o,digest:null}}function Ra(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Su(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Rx=typeof WeakMap=="function"?WeakMap:Map;function Dm(e,t,n){n=vn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ml||(ml=!0,_u=r),Su(e,t)},n}function Lm(e,t,n){n=vn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Su(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Su(e,t),typeof r!="function"&&(Zn===null?Zn=new Set([this]):Zn.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Pf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Rx;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Hx.bind(null,e,t,n),t.then(e,e))}function Rf(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Tf(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=vn(-1,1),t.tag=2,Xn(n,t,1))),n.lanes|=1),e)}var Tx=kn.ReactCurrentOwner,it=!1;function Ge(e,t,n,r){t.child=e===null?fm(t,null,n,r):Io(t,e.child,n,r)}function Of(e,t,n,r,o){n=n.render;var s=t.ref;return mo(t,o),r=Hc(e,t,n,r,s,o),n=Vc(),e!==null&&!it?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,bn(e,t,o)):(xe&&n&&Oc(t),t.flags|=1,Ge(e,t,r,o),t.child)}function _f(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!Jc(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,Fm(e,t,s,r,o)):(e=Hi(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var i=s.memoizedProps;if(n=n.compare,n=n!==null?n:Ts,n(i,r)&&e.ref===t.ref)return bn(e,t,o)}return t.flags|=1,e=er(s,r),e.ref=t.ref,e.return=t,t.child=e}function Fm(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(Ts(s,r)&&e.ref===t.ref)if(it=!1,t.pendingProps=r=s,(e.lanes&o)!==0)e.flags&131072&&(it=!0);else return t.lanes=e.lanes,bn(e,t,o)}return bu(e,t,n,r,o)}function zm(e,t,n){var r=t.pendingProps,o=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},pe(uo,ft),ft|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,pe(uo,ft),ft|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,pe(uo,ft),ft|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,pe(uo,ft),ft|=r;return Ge(e,t,o,n),t.child}function Bm(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function bu(e,t,n,r,o){var s=at(n)?jr:Qe.current;return s=Mo(t,s),mo(t,o),n=Hc(e,t,n,r,s,o),r=Vc(),e!==null&&!it?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,bn(e,t,o)):(xe&&r&&Oc(t),t.flags|=1,Ge(e,t,n,o),t.child)}function jf(e,t,n,r,o){if(at(n)){var s=!0;sl(t)}else s=!1;if(mo(t,o),t.stateNode===null)zi(e,t),Im(t,n,r),wu(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var a=i.context,c=n.contextType;typeof c=="object"&&c!==null?c=Rt(c):(c=at(n)?jr:Qe.current,c=Mo(t,c));var f=n.getDerivedStateFromProps,u=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function";u||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==r||a!==c)&&Nf(t,i,r,c),Mn=!1;var h=t.memoizedState;i.state=h,cl(t,r,i,o),a=t.memoizedState,l!==r||h!==a||lt.current||Mn?(typeof f=="function"&&(xu(t,n,f,r),a=t.memoizedState),(l=Mn||kf(t,n,l,r,h,a,c))?(u||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),i.props=r,i.state=a,i.context=c,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,hm(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:It(t.type,l),i.props=c,u=t.pendingProps,h=i.context,a=n.contextType,typeof a=="object"&&a!==null?a=Rt(a):(a=at(n)?jr:Qe.current,a=Mo(t,a));var y=n.getDerivedStateFromProps;(f=typeof y=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==u||h!==a)&&Nf(t,i,r,a),Mn=!1,h=t.memoizedState,i.state=h,cl(t,r,i,o);var S=t.memoizedState;l!==u||h!==S||lt.current||Mn?(typeof y=="function"&&(xu(t,n,y,r),S=t.memoizedState),(c=Mn||kf(t,n,c,r,h,S,a)||!1)?(f||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,S,a),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,S,a)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=S),i.props=r,i.state=S,i.context=a,r=c):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Cu(e,t,n,r,s,o)}function Cu(e,t,n,r,o,s){Bm(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&vf(t,n,!1),bn(e,t,s);r=t.stateNode,Tx.current=t;var l=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Io(t,e.child,null,s),t.child=Io(t,null,l,s)):Ge(e,t,l,s),t.memoizedState=r.state,o&&vf(t,n,!0),t.child}function Um(e){var t=e.stateNode;t.pendingContext?gf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&gf(e,t.context,!1),Fc(e,t.containerInfo)}function Mf(e,t,n,r,o){return Ao(),jc(o),t.flags|=256,Ge(e,t,n,r),t.child}var Eu={dehydrated:null,treeContext:null,retryLane:0};function ku(e){return{baseLanes:e,cachePool:null,transitions:null}}function Hm(e,t,n){var r=t.pendingProps,o=we.current,s=!1,i=(t.flags&128)!==0,l;if((l=i)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),pe(we,o&1),e===null)return vu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,s?(r=t.mode,s=t.child,i={mode:"hidden",children:i},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=i):s=zl(i,r,0,null),e=_r(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=ku(n),t.memoizedState=Eu,e):Qc(t,i));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return Ox(e,t,i,r,l,o,n);if(s){s=r.fallback,i=t.mode,o=e.child,l=o.sibling;var a={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=er(o,a),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?s=er(l,s):(s=_r(s,i,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,i=e.child.memoizedState,i=i===null?ku(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=Eu,r}return s=e.child,e=s.sibling,r=er(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Qc(e,t){return t=zl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function xi(e,t,n,r){return r!==null&&jc(r),Io(t,e.child,null,n),e=Qc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ox(e,t,n,r,o,s,i){if(n)return t.flags&256?(t.flags&=-257,r=Ra(Error(_(422))),xi(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=zl({mode:"visible",children:r.children},o,0,null),s=_r(s,o,i,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Io(t,e.child,null,i),t.child.memoizedState=ku(i),t.memoizedState=Eu,s);if(!(t.mode&1))return xi(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,s=Error(_(419)),r=Ra(s,r,void 0),xi(e,t,i,r)}if(l=(i&e.childLanes)!==0,it||l){if(r=De,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,Sn(e,o),Ut(r,e,o,-1))}return Zc(),r=Ra(Error(_(421))),xi(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Vx.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,ht=Gn(o.nextSibling),mt=t,xe=!0,zt=null,e!==null&&(Et[kt++]=mn,Et[kt++]=gn,Et[kt++]=Mr,mn=e.id,gn=e.overflow,Mr=t),t=Qc(t,r.children),t.flags|=4096,t)}function Af(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),yu(e.return,t,n)}function Ta(e,t,n,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function Vm(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(Ge(e,t,r.children,n),r=we.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Af(e,n,t);else if(e.tag===19)Af(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}r&=1}if(pe(we,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&dl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ta(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&dl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ta(t,!0,n,null,s);break;case"together":Ta(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function zi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function bn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ir|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(_(153));if(t.child!==null){for(e=t.child,n=er(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=er(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function _x(e,t,n){switch(t.tag){case 3:Um(t),Ao();break;case 5:mm(t);break;case 1:at(t.type)&&sl(t);break;case 4:Fc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;pe(al,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(pe(we,we.current&1),t.flags|=128,null):n&t.child.childLanes?Hm(e,t,n):(pe(we,we.current&1),e=bn(e,t,n),e!==null?e.sibling:null);pe(we,we.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Vm(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),pe(we,we.current),r)break;return null;case 22:case 23:return t.lanes=0,zm(e,t,n)}return bn(e,t,n)}var $m,Nu,Wm,Qm;$m=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Nu=function(){};Wm=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,xr(nn.current);var s=null;switch(n){case"input":o=Ya(e,o),r=Ya(e,r),s=[];break;case"select":o=be({},o,{value:void 0}),r=be({},r,{value:void 0}),s=[];break;case"textarea":o=Xa(e,o),r=Xa(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=rl)}Ja(n,r);var i;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var l=o[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(bs.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var a=r[c];if(l=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&a!==l&&(a!=null||l!=null))if(c==="style")if(l){for(i in l)!l.hasOwnProperty(i)||a&&a.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in a)a.hasOwnProperty(i)&&l[i]!==a[i]&&(n||(n={}),n[i]=a[i])}else n||(s||(s=[]),s.push(c,n)),n=a;else c==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(s=s||[]).push(c,a)):c==="children"?typeof a!="string"&&typeof a!="number"||(s=s||[]).push(c,""+a):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(bs.hasOwnProperty(c)?(a!=null&&c==="onScroll"&&ge("scroll",e),s||l===a||(s=[])):(s=s||[]).push(c,a))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}};Qm=function(e,t,n,r){n!==r&&(t.flags|=4)};function rs(e,t){if(!xe)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 r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function $e(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function jx(e,t,n){var r=t.pendingProps;switch(_c(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $e(t),null;case 1:return at(t.type)&&ol(),$e(t),null;case 3:return r=t.stateNode,Do(),ye(lt),ye(Qe),Bc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(vi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,zt!==null&&(Au(zt),zt=null))),Nu(e,t),$e(t),null;case 5:zc(t);var o=xr(As.current);if(n=t.type,e!==null&&t.stateNode!=null)Wm(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(_(166));return $e(t),null}if(e=xr(nn.current),vi(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Zt]=t,r[js]=s,e=(t.mode&1)!==0,n){case"dialog":ge("cancel",r),ge("close",r);break;case"iframe":case"object":case"embed":ge("load",r);break;case"video":case"audio":for(o=0;o<cs.length;o++)ge(cs[o],r);break;case"source":ge("error",r);break;case"img":case"image":case"link":ge("error",r),ge("load",r);break;case"details":ge("toggle",r);break;case"input":Hd(r,s),ge("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},ge("invalid",r);break;case"textarea":$d(r,s),ge("invalid",r)}Ja(n,s),o=null;for(var i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="children"?typeof l=="string"?r.textContent!==l&&(s.suppressHydrationWarning!==!0&&gi(r.textContent,l,e),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&gi(r.textContent,l,e),o=["children",""+l]):bs.hasOwnProperty(i)&&l!=null&&i==="onScroll"&&ge("scroll",r)}switch(n){case"input":ai(r),Vd(r,s,!0);break;case"textarea":ai(r),Wd(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=rl)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=wh(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Zt]=t,e[js]=r,$m(e,t,!1,!1),t.stateNode=e;e:{switch(i=eu(n,r),n){case"dialog":ge("cancel",e),ge("close",e),o=r;break;case"iframe":case"object":case"embed":ge("load",e),o=r;break;case"video":case"audio":for(o=0;o<cs.length;o++)ge(cs[o],e);o=r;break;case"source":ge("error",e),o=r;break;case"img":case"image":case"link":ge("error",e),ge("load",e),o=r;break;case"details":ge("toggle",e),o=r;break;case"input":Hd(e,r),o=Ya(e,r),ge("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=be({},r,{value:void 0}),ge("invalid",e);break;case"textarea":$d(e,r),o=Xa(e,r),ge("invalid",e);break;default:o=r}Ja(n,o),l=o;for(s in l)if(l.hasOwnProperty(s)){var a=l[s];s==="style"?Ch(e,a):s==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Sh(e,a)):s==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Cs(e,a):typeof a=="number"&&Cs(e,""+a):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(bs.hasOwnProperty(s)?a!=null&&s==="onScroll"&&ge("scroll",e):a!=null&&gc(e,s,a,i))}switch(n){case"input":ai(e),Vd(e,r,!1);break;case"textarea":ai(e),Wd(e);break;case"option":r.value!=null&&e.setAttribute("value",""+nr(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?co(e,!!r.multiple,s,!1):r.defaultValue!=null&&co(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=rl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return $e(t),null;case 6:if(e&&t.stateNode!=null)Qm(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(_(166));if(n=xr(As.current),xr(nn.current),vi(t)){if(r=t.stateNode,n=t.memoizedProps,r[Zt]=t,(s=r.nodeValue!==n)&&(e=mt,e!==null))switch(e.tag){case 3:gi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&gi(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Zt]=t,t.stateNode=r}return $e(t),null;case 13:if(ye(we),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(xe&&ht!==null&&t.mode&1&&!(t.flags&128))cm(),Ao(),t.flags|=98560,s=!1;else if(s=vi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(_(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(_(317));s[Zt]=t}else Ao(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;$e(t),s=!1}else zt!==null&&(Au(zt),zt=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||we.current&1?_e===0&&(_e=3):Zc())),t.updateQueue!==null&&(t.flags|=4),$e(t),null);case 4:return Do(),Nu(e,t),e===null&&Os(t.stateNode.containerInfo),$e(t),null;case 10:return Ic(t.type._context),$e(t),null;case 17:return at(t.type)&&ol(),$e(t),null;case 19:if(ye(we),s=t.memoizedState,s===null)return $e(t),null;if(r=(t.flags&128)!==0,i=s.rendering,i===null)if(r)rs(s,!1);else{if(_e!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=dl(e),i!==null){for(t.flags|=128,rs(s,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,i=s.alternate,i===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,s.type=i.type,e=i.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return pe(we,we.current&1|2),t.child}e=e.sibling}s.tail!==null&&Ne()>Fo&&(t.flags|=128,r=!0,rs(s,!1),t.lanes=4194304)}else{if(!r)if(e=dl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),rs(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!xe)return $e(t),null}else 2*Ne()-s.renderingStartTime>Fo&&n!==1073741824&&(t.flags|=128,r=!0,rs(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ne(),t.sibling=null,n=we.current,pe(we,r?n&1|2:n&1),t):($e(t),null);case 22:case 23:return Xc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ft&1073741824&&($e(t),t.subtreeFlags&6&&(t.flags|=8192)):$e(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function Mx(e,t){switch(_c(t),t.tag){case 1:return at(t.type)&&ol(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Do(),ye(lt),ye(Qe),Bc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return zc(t),null;case 13:if(ye(we),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));Ao()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ye(we),null;case 4:return Do(),null;case 10:return Ic(t.type._context),null;case 22:case 23:return Xc(),null;case 24:return null;default:return null}}var wi=!1,We=!1,Ax=typeof WeakSet=="function"?WeakSet:Set,z=null;function ao(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ke(e,t,r)}else n.current=null}function Pu(e,t,n){try{n()}catch(r){ke(e,t,r)}}var If=!1;function Ix(e,t){if(cu=el,e=Xh(),Tc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,l=-1,a=-1,c=0,f=0,u=e,h=null;t:for(;;){for(var y;u!==n||o!==0&&u.nodeType!==3||(l=i+o),u!==s||r!==0&&u.nodeType!==3||(a=i+r),u.nodeType===3&&(i+=u.nodeValue.length),(y=u.firstChild)!==null;)h=u,u=y;for(;;){if(u===e)break t;if(h===n&&++c===o&&(l=i),h===s&&++f===r&&(a=i),(y=u.nextSibling)!==null)break;u=h,h=u.parentNode}u=y}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(du={focusedElem:e,selectionRange:n},el=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var m=S.memoizedProps,w=S.memoizedState,d=t.stateNode,p=d.getSnapshotBeforeUpdate(t.elementType===t.type?m:It(t.type,m),w);d.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_(163))}}catch(b){ke(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return S=If,If=!1,S}function xs(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&Pu(t,n,s)}o=o.next}while(o!==r)}}function Ll(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ru(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Km(e){var t=e.alternate;t!==null&&(e.alternate=null,Km(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Zt],delete t[js],delete t[hu],delete t[vx],delete t[yx])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ym(e){return e.tag===5||e.tag===3||e.tag===4}function Df(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ym(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.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 Tu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=rl));else if(r!==4&&(e=e.child,e!==null))for(Tu(e,t,n),e=e.sibling;e!==null;)Tu(e,t,n),e=e.sibling}function Ou(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ou(e,t,n),e=e.sibling;e!==null;)Ou(e,t,n),e=e.sibling}var ze=null,Ft=!1;function Pn(e,t,n){for(n=n.child;n!==null;)qm(e,t,n),n=n.sibling}function qm(e,t,n){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(Tl,n)}catch{}switch(n.tag){case 5:We||ao(n,t);case 6:var r=ze,o=Ft;ze=null,Pn(e,t,n),ze=r,Ft=o,ze!==null&&(Ft?(e=ze,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ze.removeChild(n.stateNode));break;case 18:ze!==null&&(Ft?(e=ze,n=n.stateNode,e.nodeType===8?ba(e.parentNode,n):e.nodeType===1&&ba(e,n),Ps(e)):ba(ze,n.stateNode));break;case 4:r=ze,o=Ft,ze=n.stateNode.containerInfo,Ft=!0,Pn(e,t,n),ze=r,Ft=o;break;case 0:case 11:case 14:case 15:if(!We&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&Pu(n,t,i),o=o.next}while(o!==r)}Pn(e,t,n);break;case 1:if(!We&&(ao(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ke(n,t,l)}Pn(e,t,n);break;case 21:Pn(e,t,n);break;case 22:n.mode&1?(We=(r=We)||n.memoizedState!==null,Pn(e,t,n),We=r):Pn(e,t,n);break;default:Pn(e,t,n)}}function Lf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ax),t.forEach(function(r){var o=$x.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Mt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,i=t,l=i;e:for(;l!==null;){switch(l.tag){case 5:ze=l.stateNode,Ft=!1;break e;case 3:ze=l.stateNode.containerInfo,Ft=!0;break e;case 4:ze=l.stateNode.containerInfo,Ft=!0;break e}l=l.return}if(ze===null)throw Error(_(160));qm(s,i,o),ze=null,Ft=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(c){ke(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Gm(t,e),t=t.sibling}function Gm(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Mt(t,e),Qt(e),r&4){try{xs(3,e,e.return),Ll(3,e)}catch(m){ke(e,e.return,m)}try{xs(5,e,e.return)}catch(m){ke(e,e.return,m)}}break;case 1:Mt(t,e),Qt(e),r&512&&n!==null&&ao(n,n.return);break;case 5:if(Mt(t,e),Qt(e),r&512&&n!==null&&ao(n,n.return),e.flags&32){var o=e.stateNode;try{Cs(o,"")}catch(m){ke(e,e.return,m)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,i=n!==null?n.memoizedProps:s,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&yh(o,s),eu(l,i);var c=eu(l,s);for(i=0;i<a.length;i+=2){var f=a[i],u=a[i+1];f==="style"?Ch(o,u):f==="dangerouslySetInnerHTML"?Sh(o,u):f==="children"?Cs(o,u):gc(o,f,u,c)}switch(l){case"input":qa(o,s);break;case"textarea":xh(o,s);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var y=s.value;y!=null?co(o,!!s.multiple,y,!1):h!==!!s.multiple&&(s.defaultValue!=null?co(o,!!s.multiple,s.defaultValue,!0):co(o,!!s.multiple,s.multiple?[]:"",!1))}o[js]=s}catch(m){ke(e,e.return,m)}}break;case 6:if(Mt(t,e),Qt(e),r&4){if(e.stateNode===null)throw Error(_(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(m){ke(e,e.return,m)}}break;case 3:if(Mt(t,e),Qt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ps(t.containerInfo)}catch(m){ke(e,e.return,m)}break;case 4:Mt(t,e),Qt(e);break;case 13:Mt(t,e),Qt(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(qc=Ne())),r&4&&Lf(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(We=(c=We)||f,Mt(t,e),We=c):Mt(t,e),Qt(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!f&&e.mode&1)for(z=e,f=e.child;f!==null;){for(u=z=f;z!==null;){switch(h=z,y=h.child,h.tag){case 0:case 11:case 14:case 15:xs(4,h,h.return);break;case 1:ao(h,h.return);var S=h.stateNode;if(typeof S.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,S.props=t.memoizedProps,S.state=t.memoizedState,S.componentWillUnmount()}catch(m){ke(r,n,m)}}break;case 5:ao(h,h.return);break;case 22:if(h.memoizedState!==null){zf(u);continue}}y!==null?(y.return=h,z=y):zf(u)}f=f.sibling}e:for(f=null,u=e;;){if(u.tag===5){if(f===null){f=u;try{o=u.stateNode,c?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=u.stateNode,a=u.memoizedProps.style,i=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=bh("display",i))}catch(m){ke(e,e.return,m)}}}else if(u.tag===6){if(f===null)try{u.stateNode.nodeValue=c?"":u.memoizedProps}catch(m){ke(e,e.return,m)}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===e)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)break e;for(;u.sibling===null;){if(u.return===null||u.return===e)break e;f===u&&(f=null),u=u.return}f===u&&(f=null),u.sibling.return=u.return,u=u.sibling}}break;case 19:Mt(t,e),Qt(e),r&4&&Lf(e);break;case 21:break;default:Mt(t,e),Qt(e)}}function Qt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Ym(n)){var r=n;break e}n=n.return}throw Error(_(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Cs(o,""),r.flags&=-33);var s=Df(e);Ou(e,s,o);break;case 3:case 4:var i=r.stateNode.containerInfo,l=Df(e);Tu(e,l,i);break;default:throw Error(_(161))}}catch(a){ke(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Dx(e,t,n){z=e,Xm(e)}function Xm(e,t,n){for(var r=(e.mode&1)!==0;z!==null;){var o=z,s=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||wi;if(!i){var l=o.alternate,a=l!==null&&l.memoizedState!==null||We;l=wi;var c=We;if(wi=i,(We=a)&&!c)for(z=o;z!==null;)i=z,a=i.child,i.tag===22&&i.memoizedState!==null?Bf(o):a!==null?(a.return=i,z=a):Bf(o);for(;s!==null;)z=s,Xm(s),s=s.sibling;z=o,wi=l,We=c}Ff(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,z=s):Ff(e)}}function Ff(e){for(;z!==null;){var t=z;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:We||Ll(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!We)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:It(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&bf(t,s,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}bf(t,i,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var f=c.memoizedState;if(f!==null){var u=f.dehydrated;u!==null&&Ps(u)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(_(163))}We||t.flags&512&&Ru(t)}catch(h){ke(t,t.return,h)}}if(t===e){z=null;break}if(n=t.sibling,n!==null){n.return=t.return,z=n;break}z=t.return}}function zf(e){for(;z!==null;){var t=z;if(t===e){z=null;break}var n=t.sibling;if(n!==null){n.return=t.return,z=n;break}z=t.return}}function Bf(e){for(;z!==null;){var t=z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ll(4,t)}catch(a){ke(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){ke(t,o,a)}}var s=t.return;try{Ru(t)}catch(a){ke(t,s,a)}break;case 5:var i=t.return;try{Ru(t)}catch(a){ke(t,i,a)}}}catch(a){ke(t,t.return,a)}if(t===e){z=null;break}var l=t.sibling;if(l!==null){l.return=t.return,z=l;break}z=t.return}}var Lx=Math.ceil,hl=kn.ReactCurrentDispatcher,Kc=kn.ReactCurrentOwner,Pt=kn.ReactCurrentBatchConfig,le=0,De=null,Pe=null,Be=0,ft=0,uo=lr(0),_e=0,Fs=null,Ir=0,Fl=0,Yc=0,ws=null,st=null,qc=0,Fo=1/0,un=null,ml=!1,_u=null,Zn=null,Si=!1,Qn=null,gl=0,Ss=0,ju=null,Bi=-1,Ui=0;function Ze(){return le&6?Ne():Bi!==-1?Bi:Bi=Ne()}function Jn(e){return e.mode&1?le&2&&Be!==0?Be&-Be:wx.transition!==null?(Ui===0&&(Ui=Ih()),Ui):(e=de,e!==0||(e=window.event,e=e===void 0?16:Hh(e.type)),e):1}function Ut(e,t,n,r){if(50<Ss)throw Ss=0,ju=null,Error(_(185));qs(e,n,r),(!(le&2)||e!==De)&&(e===De&&(!(le&2)&&(Fl|=n),_e===4&&In(e,Be)),ut(e,r),n===1&&le===0&&!(t.mode&1)&&(Fo=Ne()+500,Al&&ar()))}function ut(e,t){var n=e.callbackNode;w0(e,t);var r=Ji(e,e===De?Be:0);if(r===0)n!==null&&Yd(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Yd(n),t===1)e.tag===0?xx(Uf.bind(null,e)):lm(Uf.bind(null,e)),mx(function(){!(le&6)&&ar()}),n=null;else{switch(Dh(r)){case 1:n=Sc;break;case 4:n=Mh;break;case 16:n=Zi;break;case 536870912:n=Ah;break;default:n=Zi}n=sg(n,Zm.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Zm(e,t){if(Bi=-1,Ui=0,le&6)throw Error(_(327));var n=e.callbackNode;if(go()&&e.callbackNode!==n)return null;var r=Ji(e,e===De?Be:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=vl(e,r);else{t=r;var o=le;le|=2;var s=eg();(De!==e||Be!==t)&&(un=null,Fo=Ne()+500,Or(e,t));do try{Bx();break}catch(l){Jm(e,l)}while(!0);Ac(),hl.current=s,le=o,Pe!==null?t=0:(De=null,Be=0,t=_e)}if(t!==0){if(t===2&&(o=su(e),o!==0&&(r=o,t=Mu(e,o))),t===1)throw n=Fs,Or(e,0),In(e,r),ut(e,Ne()),n;if(t===6)In(e,r);else{if(o=e.current.alternate,!(r&30)&&!Fx(o)&&(t=vl(e,r),t===2&&(s=su(e),s!==0&&(r=s,t=Mu(e,s))),t===1))throw n=Fs,Or(e,0),In(e,r),ut(e,Ne()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(_(345));case 2:gr(e,st,un);break;case 3:if(In(e,r),(r&130023424)===r&&(t=qc+500-Ne(),10<t)){if(Ji(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Ze(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=pu(gr.bind(null,e,st,un),t);break}gr(e,st,un);break;case 4:if(In(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-Bt(r);s=1<<i,i=t[i],i>o&&(o=i),r&=~s}if(r=o,r=Ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Lx(r/1960))-r,10<r){e.timeoutHandle=pu(gr.bind(null,e,st,un),r);break}gr(e,st,un);break;case 5:gr(e,st,un);break;default:throw Error(_(329))}}}return ut(e,Ne()),e.callbackNode===n?Zm.bind(null,e):null}function Mu(e,t){var n=ws;return e.current.memoizedState.isDehydrated&&(Or(e,t).flags|=256),e=vl(e,t),e!==2&&(t=st,st=n,t!==null&&Au(t)),e}function Au(e){st===null?st=e:st.push.apply(st,e)}function Fx(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],s=o.getSnapshot;o=o.value;try{if(!Ht(s(),o))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 In(e,t){for(t&=~Yc,t&=~Fl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Bt(t),r=1<<n;e[n]=-1,t&=~r}}function Uf(e){if(le&6)throw Error(_(327));go();var t=Ji(e,0);if(!(t&1))return ut(e,Ne()),null;var n=vl(e,t);if(e.tag!==0&&n===2){var r=su(e);r!==0&&(t=r,n=Mu(e,r))}if(n===1)throw n=Fs,Or(e,0),In(e,t),ut(e,Ne()),n;if(n===6)throw Error(_(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,gr(e,st,un),ut(e,Ne()),null}function Gc(e,t){var n=le;le|=1;try{return e(t)}finally{le=n,le===0&&(Fo=Ne()+500,Al&&ar())}}function Dr(e){Qn!==null&&Qn.tag===0&&!(le&6)&&go();var t=le;le|=1;var n=Pt.transition,r=de;try{if(Pt.transition=null,de=1,e)return e()}finally{de=r,Pt.transition=n,le=t,!(le&6)&&ar()}}function Xc(){ft=uo.current,ye(uo)}function Or(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,hx(n)),Pe!==null)for(n=Pe.return;n!==null;){var r=n;switch(_c(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ol();break;case 3:Do(),ye(lt),ye(Qe),Bc();break;case 5:zc(r);break;case 4:Do();break;case 13:ye(we);break;case 19:ye(we);break;case 10:Ic(r.type._context);break;case 22:case 23:Xc()}n=n.return}if(De=e,Pe=e=er(e.current,null),Be=ft=t,_e=0,Fs=null,Yc=Fl=Ir=0,st=ws=null,yr!==null){for(t=0;t<yr.length;t++)if(n=yr[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,s=n.pending;if(s!==null){var i=s.next;s.next=o,r.next=i}n.pending=r}yr=null}return e}function Jm(e,t){do{var n=Pe;try{if(Ac(),Li.current=pl,fl){for(var r=Se.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}fl=!1}if(Ar=0,Ie=Te=Se=null,ys=!1,Is=0,Kc.current=null,n===null||n.return===null){_e=1,Fs=t,Pe=null;break}e:{var s=e,i=n.return,l=n,a=t;if(t=Be,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var c=a,f=l,u=f.tag;if(!(f.mode&1)&&(u===0||u===11||u===15)){var h=f.alternate;h?(f.updateQueue=h.updateQueue,f.memoizedState=h.memoizedState,f.lanes=h.lanes):(f.updateQueue=null,f.memoizedState=null)}var y=Rf(i);if(y!==null){y.flags&=-257,Tf(y,i,l,s,t),y.mode&1&&Pf(s,c,t),t=y,a=c;var S=t.updateQueue;if(S===null){var m=new Set;m.add(a),t.updateQueue=m}else S.add(a);break e}else{if(!(t&1)){Pf(s,c,t),Zc();break e}a=Error(_(426))}}else if(xe&&l.mode&1){var w=Rf(i);if(w!==null){!(w.flags&65536)&&(w.flags|=256),Tf(w,i,l,s,t),jc(Lo(a,l));break e}}s=a=Lo(a,l),_e!==4&&(_e=2),ws===null?ws=[s]:ws.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var d=Dm(s,a,t);Sf(s,d);break e;case 1:l=a;var p=s.type,v=s.stateNode;if(!(s.flags&128)&&(typeof p.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Zn===null||!Zn.has(v)))){s.flags|=65536,t&=-t,s.lanes|=t;var b=Lm(s,l,t);Sf(s,b);break e}}s=s.return}while(s!==null)}ng(n)}catch(E){t=E,Pe===n&&n!==null&&(Pe=n=n.return);continue}break}while(!0)}function eg(){var e=hl.current;return hl.current=pl,e===null?pl:e}function Zc(){(_e===0||_e===3||_e===2)&&(_e=4),De===null||!(Ir&268435455)&&!(Fl&268435455)||In(De,Be)}function vl(e,t){var n=le;le|=2;var r=eg();(De!==e||Be!==t)&&(un=null,Or(e,t));do try{zx();break}catch(o){Jm(e,o)}while(!0);if(Ac(),le=n,hl.current=r,Pe!==null)throw Error(_(261));return De=null,Be=0,_e}function zx(){for(;Pe!==null;)tg(Pe)}function Bx(){for(;Pe!==null&&!d0();)tg(Pe)}function tg(e){var t=og(e.alternate,e,ft);e.memoizedProps=e.pendingProps,t===null?ng(e):Pe=t,Kc.current=null}function ng(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Mx(n,t),n!==null){n.flags&=32767,Pe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{_e=6,Pe=null;return}}else if(n=jx(n,t,ft),n!==null){Pe=n;return}if(t=t.sibling,t!==null){Pe=t;return}Pe=t=e}while(t!==null);_e===0&&(_e=5)}function gr(e,t,n){var r=de,o=Pt.transition;try{Pt.transition=null,de=1,Ux(e,t,n,r)}finally{Pt.transition=o,de=r}return null}function Ux(e,t,n,r){do go();while(Qn!==null);if(le&6)throw Error(_(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(_(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(S0(e,s),e===De&&(Pe=De=null,Be=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Si||(Si=!0,sg(Zi,function(){return go(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Pt.transition,Pt.transition=null;var i=de;de=1;var l=le;le|=4,Kc.current=null,Ix(e,n),Gm(n,e),lx(du),el=!!cu,du=cu=null,e.current=n,Dx(n),f0(),le=l,de=i,Pt.transition=s}else e.current=n;if(Si&&(Si=!1,Qn=e,gl=o),s=e.pendingLanes,s===0&&(Zn=null),m0(n.stateNode),ut(e,Ne()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(ml)throw ml=!1,e=_u,_u=null,e;return gl&1&&e.tag!==0&&go(),s=e.pendingLanes,s&1?e===ju?Ss++:(Ss=0,ju=e):Ss=0,ar(),null}function go(){if(Qn!==null){var e=Dh(gl),t=Pt.transition,n=de;try{if(Pt.transition=null,de=16>e?16:e,Qn===null)var r=!1;else{if(e=Qn,Qn=null,gl=0,le&6)throw Error(_(331));var o=le;for(le|=4,z=e.current;z!==null;){var s=z,i=s.child;if(z.flags&16){var l=s.deletions;if(l!==null){for(var a=0;a<l.length;a++){var c=l[a];for(z=c;z!==null;){var f=z;switch(f.tag){case 0:case 11:case 15:xs(8,f,s)}var u=f.child;if(u!==null)u.return=f,z=u;else for(;z!==null;){f=z;var h=f.sibling,y=f.return;if(Km(f),f===c){z=null;break}if(h!==null){h.return=y,z=h;break}z=y}}}var S=s.alternate;if(S!==null){var m=S.child;if(m!==null){S.child=null;do{var w=m.sibling;m.sibling=null,m=w}while(m!==null)}}z=s}}if(s.subtreeFlags&2064&&i!==null)i.return=s,z=i;else e:for(;z!==null;){if(s=z,s.flags&2048)switch(s.tag){case 0:case 11:case 15:xs(9,s,s.return)}var d=s.sibling;if(d!==null){d.return=s.return,z=d;break e}z=s.return}}var p=e.current;for(z=p;z!==null;){i=z;var v=i.child;if(i.subtreeFlags&2064&&v!==null)v.return=i,z=v;else e:for(i=p;z!==null;){if(l=z,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Ll(9,l)}}catch(E){ke(l,l.return,E)}if(l===i){z=null;break e}var b=l.sibling;if(b!==null){b.return=l.return,z=b;break e}z=l.return}}if(le=o,ar(),tn&&typeof tn.onPostCommitFiberRoot=="function")try{tn.onPostCommitFiberRoot(Tl,e)}catch{}r=!0}return r}finally{de=n,Pt.transition=t}}return!1}function Hf(e,t,n){t=Lo(n,t),t=Dm(e,t,1),e=Xn(e,t,1),t=Ze(),e!==null&&(qs(e,1,t),ut(e,t))}function ke(e,t,n){if(e.tag===3)Hf(e,e,n);else for(;t!==null;){if(t.tag===3){Hf(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Zn===null||!Zn.has(r))){e=Lo(n,e),e=Lm(t,e,1),t=Xn(t,e,1),e=Ze(),t!==null&&(qs(t,1,e),ut(t,e));break}}t=t.return}}function Hx(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ze(),e.pingedLanes|=e.suspendedLanes&n,De===e&&(Be&n)===n&&(_e===4||_e===3&&(Be&130023424)===Be&&500>Ne()-qc?Or(e,0):Yc|=n),ut(e,t)}function rg(e,t){t===0&&(e.mode&1?(t=di,di<<=1,!(di&130023424)&&(di=4194304)):t=1);var n=Ze();e=Sn(e,t),e!==null&&(qs(e,t,n),ut(e,n))}function Vx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),rg(e,n)}function $x(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(t),rg(e,n)}var og;og=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||lt.current)it=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return it=!1,_x(e,t,n);it=!!(e.flags&131072)}else it=!1,xe&&t.flags&1048576&&am(t,ll,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;zi(e,t),e=t.pendingProps;var o=Mo(t,Qe.current);mo(t,n),o=Hc(null,t,r,e,o,n);var s=Vc();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,at(r)?(s=!0,sl(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Lc(t),o.updater=Dl,t.stateNode=o,o._reactInternals=t,wu(t,r,e,n),t=Cu(null,t,r,!0,s,n)):(t.tag=0,xe&&s&&Oc(t),Ge(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(zi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Qx(r),e=It(r,e),o){case 0:t=bu(null,t,r,e,n);break e;case 1:t=jf(null,t,r,e,n);break e;case 11:t=Of(null,t,r,e,n);break e;case 14:t=_f(null,t,r,It(r.type,e),n);break e}throw Error(_(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:It(r,o),bu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:It(r,o),jf(e,t,r,o,n);case 3:e:{if(Um(t),e===null)throw Error(_(387));r=t.pendingProps,s=t.memoizedState,o=s.element,hm(e,t),cl(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=Lo(Error(_(423)),t),t=Mf(e,t,r,n,o);break e}else if(r!==o){o=Lo(Error(_(424)),t),t=Mf(e,t,r,n,o);break e}else for(ht=Gn(t.stateNode.containerInfo.firstChild),mt=t,xe=!0,zt=null,n=fm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ao(),r===o){t=bn(e,t,n);break e}Ge(e,t,r,n)}t=t.child}return t;case 5:return mm(t),e===null&&vu(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,fu(r,o)?i=null:s!==null&&fu(r,s)&&(t.flags|=32),Bm(e,t),Ge(e,t,i,n),t.child;case 6:return e===null&&vu(t),null;case 13:return Hm(e,t,n);case 4:return Fc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Io(t,null,r,n):Ge(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:It(r,o),Of(e,t,r,o,n);case 7:return Ge(e,t,t.pendingProps,n),t.child;case 8:return Ge(e,t,t.pendingProps.children,n),t.child;case 12:return Ge(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,pe(al,r._currentValue),r._currentValue=i,s!==null)if(Ht(s.value,i)){if(s.children===o.children&&!lt.current){t=bn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){i=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=vn(-1,n&-n),a.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?a.next=a:(a.next=f.next,f.next=a),c.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),yu(s.return,n,t),l.lanes|=n;break}a=a.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(_(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),yu(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}Ge(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,mo(t,n),o=Rt(o),r=r(o),t.flags|=1,Ge(e,t,r,n),t.child;case 14:return r=t.type,o=It(r,t.pendingProps),o=It(r.type,o),_f(e,t,r,o,n);case 15:return Fm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:It(r,o),zi(e,t),t.tag=1,at(r)?(e=!0,sl(t)):e=!1,mo(t,n),Im(t,r,o),wu(t,r,o,n),Cu(null,t,r,!0,e,n);case 19:return Vm(e,t,n);case 22:return zm(e,t,n)}throw Error(_(156,t.tag))};function sg(e,t){return jh(e,t)}function Wx(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nt(e,t,n,r){return new Wx(e,t,n,r)}function Jc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Qx(e){if(typeof e=="function")return Jc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===yc)return 11;if(e===xc)return 14}return 2}function er(e,t){var n=e.alternate;return n===null?(n=Nt(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&14680064,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}function Hi(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")Jc(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Jr:return _r(n.children,o,s,t);case vc:i=8,o|=8;break;case $a:return e=Nt(12,n,t,o|2),e.elementType=$a,e.lanes=s,e;case Wa:return e=Nt(13,n,t,o),e.elementType=Wa,e.lanes=s,e;case Qa:return e=Nt(19,n,t,o),e.elementType=Qa,e.lanes=s,e;case mh:return zl(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ph:i=10;break e;case hh:i=9;break e;case yc:i=11;break e;case xc:i=14;break e;case jn:i=16,r=null;break e}throw Error(_(130,e==null?e:typeof e,""))}return t=Nt(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function _r(e,t,n,r){return e=Nt(7,e,r,t),e.lanes=n,e}function zl(e,t,n,r){return e=Nt(22,e,r,t),e.elementType=mh,e.lanes=n,e.stateNode={isHidden:!1},e}function Oa(e,t,n){return e=Nt(6,e,null,t),e.lanes=n,e}function _a(e,t,n){return t=Nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Kx(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=da(0),this.expirationTimes=da(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=da(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ed(e,t,n,r,o,s,i,l,a){return e=new Kx(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Nt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Lc(s),e}function Yx(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Zr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function ig(e){if(!e)return rr;e=e._reactInternals;e:{if($r(e)!==e||e.tag!==1)throw Error(_(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(at(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(_(171))}if(e.tag===1){var n=e.type;if(at(n))return im(e,n,t)}return t}function lg(e,t,n,r,o,s,i,l,a){return e=ed(n,r,!0,e,o,s,i,l,a),e.context=ig(null),n=e.current,r=Ze(),o=Jn(n),s=vn(r,o),s.callback=t??null,Xn(n,s,o),e.current.lanes=o,qs(e,o,r),ut(e,r),e}function Bl(e,t,n,r){var o=t.current,s=Ze(),i=Jn(o);return n=ig(n),t.context===null?t.context=n:t.pendingContext=n,t=vn(s,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Xn(o,t,i),e!==null&&(Ut(e,o,i,s),Di(e,o,i)),i}function yl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Vf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function td(e,t){Vf(e,t),(e=e.alternate)&&Vf(e,t)}function qx(){return null}var ag=typeof reportError=="function"?reportError:function(e){console.error(e)};function nd(e){this._internalRoot=e}Ul.prototype.render=nd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(_(409));Bl(e,t,null,null)};Ul.prototype.unmount=nd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Dr(function(){Bl(null,e,null,null)}),t[wn]=null}};function Ul(e){this._internalRoot=e}Ul.prototype.unstable_scheduleHydration=function(e){if(e){var t=zh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<An.length&&t!==0&&t<An[n].priority;n++);An.splice(n,0,e),n===0&&Uh(e)}};function rd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Hl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function $f(){}function Gx(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var c=yl(i);s.call(c)}}var i=lg(t,r,e,0,null,!1,!1,"",$f);return e._reactRootContainer=i,e[wn]=i.current,Os(e.nodeType===8?e.parentNode:e),Dr(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var l=r;r=function(){var c=yl(a);l.call(c)}}var a=ed(e,0,!1,null,null,!1,!1,"",$f);return e._reactRootContainer=a,e[wn]=a.current,Os(e.nodeType===8?e.parentNode:e),Dr(function(){Bl(t,a,n,r)}),a}function Vl(e,t,n,r,o){var s=n._reactRootContainer;if(s){var i=s;if(typeof o=="function"){var l=o;o=function(){var a=yl(i);l.call(a)}}Bl(t,i,e,o)}else i=Gx(n,t,e,o,r);return yl(i)}Lh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=us(t.pendingLanes);n!==0&&(bc(t,n|1),ut(t,Ne()),!(le&6)&&(Fo=Ne()+500,ar()))}break;case 13:Dr(function(){var r=Sn(e,1);if(r!==null){var o=Ze();Ut(r,e,1,o)}}),td(e,1)}};Cc=function(e){if(e.tag===13){var t=Sn(e,134217728);if(t!==null){var n=Ze();Ut(t,e,134217728,n)}td(e,134217728)}};Fh=function(e){if(e.tag===13){var t=Jn(e),n=Sn(e,t);if(n!==null){var r=Ze();Ut(n,e,t,r)}td(e,t)}};zh=function(){return de};Bh=function(e,t){var n=de;try{return de=e,t()}finally{de=n}};nu=function(e,t,n){switch(t){case"input":if(qa(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Ml(r);if(!o)throw Error(_(90));vh(r),qa(r,o)}}}break;case"textarea":xh(e,n);break;case"select":t=n.value,t!=null&&co(e,!!n.multiple,t,!1)}};Nh=Gc;Ph=Dr;var Xx={usingClientEntryPoint:!1,Events:[Xs,ro,Ml,Eh,kh,Gc]},os={findFiberByHostInstance:vr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Zx={bundleType:os.bundleType,version:os.version,rendererPackageName:os.rendererPackageName,rendererConfig:os.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:kn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Oh(e),e===null?null:e.stateNode},findFiberByHostInstance:os.findFiberByHostInstance||qx,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bi.isDisabled&&bi.supportsFiber)try{Tl=bi.inject(Zx),tn=bi}catch{}}yt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xx;yt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!rd(t))throw Error(_(200));return Yx(e,t,null,n)};yt.createRoot=function(e,t){if(!rd(e))throw Error(_(299));var n=!1,r="",o=ag;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=ed(e,1,!1,null,null,n,!1,r,o),e[wn]=t.current,Os(e.nodeType===8?e.parentNode:e),new nd(t)};yt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(_(188)):(e=Object.keys(e).join(","),Error(_(268,e)));return e=Oh(t),e=e===null?null:e.stateNode,e};yt.flushSync=function(e){return Dr(e)};yt.hydrate=function(e,t,n){if(!Hl(t))throw Error(_(200));return Vl(null,e,t,!0,n)};yt.hydrateRoot=function(e,t,n){if(!rd(e))throw Error(_(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",i=ag;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=lg(t,null,e,1,n??null,o,!1,s,i),e[wn]=t.current,Os(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Ul(t)};yt.render=function(e,t,n){if(!Hl(t))throw Error(_(200));return Vl(null,e,t,!1,n)};yt.unmountComponentAtNode=function(e){if(!Hl(e))throw Error(_(40));return e._reactRootContainer?(Dr(function(){Vl(null,null,e,!1,function(){e._reactRootContainer=null,e[wn]=null})}),!0):!1};yt.unstable_batchedUpdates=Gc;yt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Hl(n))throw Error(_(200));if(e==null||e._reactInternals===void 0)throw Error(_(38));return Vl(e,t,n,!1,r)};yt.version="18.3.1-next-f1338f8080-20240426";function ug(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ug)}catch(e){console.error(e)}}ug(),uh.exports=yt;var $o=uh.exports;const cg=Gp($o);var dg,Wf=$o;dg=Wf.createRoot,Wf.hydrateRoot;var Wo=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Jx={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Dn,uc,zp,ew=(zp=class{constructor(){$(this,Dn,Jx);$(this,uc,!1)}setTimeoutProvider(e){L(this,Dn,e)}setTimeout(e,t){return C(this,Dn).setTimeout(e,t)}clearTimeout(e){C(this,Dn).clearTimeout(e)}setInterval(e,t){return C(this,Dn).setInterval(e,t)}clearInterval(e){C(this,Dn).clearInterval(e)}},Dn=new WeakMap,uc=new WeakMap,zp),wr=new ew;function tw(e){setTimeout(e,0)}var Lr=typeof window>"u"||"Deno"in globalThis;function Xe(){}function nw(e,t){return typeof e=="function"?e(t):e}function Iu(e){return typeof e=="number"&&e>=0&&e!==1/0}function fg(e,t){return Math.max(e+(t||0)-Date.now(),0)}function tr(e,t){return typeof e=="function"?e(t):e}function Ct(e,t){return typeof e=="function"?e(t):e}function Qf(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:l}=e;if(i){if(r){if(t.queryHash!==od(i,t.options))return!1}else if(!zs(t.queryKey,i))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||s&&!s(t))}function Kf(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Fr(t.options.mutationKey)!==Fr(s))return!1}else if(!zs(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function od(e,t){return((t==null?void 0:t.queryKeyHashFn)||Fr)(e)}function Fr(e){return JSON.stringify(e,(t,n)=>Du(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function zs(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>zs(e[n],t[n])):!1}var rw=Object.prototype.hasOwnProperty;function pg(e,t){if(e===t)return e;const n=Yf(e)&&Yf(t);if(!n&&!(Du(e)&&Du(t)))return t;const o=(n?e:Object.keys(e)).length,s=n?t:Object.keys(t),i=s.length,l=n?new Array(i):{};let a=0;for(let c=0;c<i;c++){const f=n?c:s[c],u=e[f],h=t[f];if(u===h){l[f]=u,(n?c<o:rw.call(e,f))&&a++;continue}if(u===null||h===null||typeof u!="object"||typeof h!="object"){l[f]=h;continue}const y=pg(u,h);l[f]=y,y===u&&a++}return o===i&&a===o?e:l}function xl(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Yf(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Du(e){if(!qf(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!qf(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function qf(e){return Object.prototype.toString.call(e)==="[object Object]"}function ow(e){return new Promise(t=>{wr.setTimeout(t,e)})}function Lu(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?pg(e,t):t}function sw(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function iw(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var sd=Symbol();function hg(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===sd?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function mg(e,t){return typeof e=="function"?e(...t):!!e}var Sr,Ln,wo,Bp,lw=(Bp=class extends Wo{constructor(){super();$(this,Sr);$(this,Ln);$(this,wo);L(this,wo,t=>{if(!Lr&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,Ln)||this.setEventListener(C(this,wo))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,Ln))==null||t.call(this),L(this,Ln,void 0))}setEventListener(t){var n;L(this,wo,t),(n=C(this,Ln))==null||n.call(this),L(this,Ln,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){C(this,Sr)!==t&&(L(this,Sr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,Sr)=="boolean"?C(this,Sr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Sr=new WeakMap,Ln=new WeakMap,wo=new WeakMap,Bp),id=new lw;function Fu(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var aw=tw;function uw(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=aw;const s=l=>{t?e.push(l):o(()=>{n(l)})},i=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(a=>{n(a)})})})};return{batch:l=>{let a;t++;try{a=l()}finally{t--,t||i()}return a},batchCalls:l=>(...a)=>{s(()=>{l(...a)})},schedule:s,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var Oe=uw(),So,Fn,bo,Up,cw=(Up=class extends Wo{constructor(){super();$(this,So,!0);$(this,Fn);$(this,bo);L(this,bo,t=>{if(!Lr&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){C(this,Fn)||this.setEventListener(C(this,bo))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,Fn))==null||t.call(this),L(this,Fn,void 0))}setEventListener(t){var n;L(this,bo,t),(n=C(this,Fn))==null||n.call(this),L(this,Fn,t(this.setOnline.bind(this)))}setOnline(t){C(this,So)!==t&&(L(this,So,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return C(this,So)}},So=new WeakMap,Fn=new WeakMap,bo=new WeakMap,Up),wl=new cw;function dw(e){return Math.min(1e3*2**e,3e4)}function gg(e){return(e??"online")==="online"?wl.isOnline():!0}var zu=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function vg(e){let t=!1,n=0,r;const o=Fu(),s=()=>o.status!=="pending",i=m=>{var w;if(!s()){const d=new zu(m);h(d),(w=e.onCancel)==null||w.call(e,d)}},l=()=>{t=!0},a=()=>{t=!1},c=()=>id.isFocused()&&(e.networkMode==="always"||wl.isOnline())&&e.canRun(),f=()=>gg(e.networkMode)&&e.canRun(),u=m=>{s()||(r==null||r(),o.resolve(m))},h=m=>{s()||(r==null||r(),o.reject(m))},y=()=>new Promise(m=>{var w;r=d=>{(s()||c())&&m(d)},(w=e.onPause)==null||w.call(e)}).then(()=>{var m;r=void 0,s()||(m=e.onContinue)==null||m.call(e)}),S=()=>{if(s())return;let m;const w=n===0?e.initialPromise:void 0;try{m=w??e.fn()}catch(d){m=Promise.reject(d)}Promise.resolve(m).then(u).catch(d=>{var k;if(s())return;const p=e.retry??(Lr?0:3),v=e.retryDelay??dw,b=typeof v=="function"?v(n,d):v,E=p===!0||typeof p=="number"&&n<p||typeof p=="function"&&p(n,d);if(t||!E){h(d);return}n++,(k=e.onFail)==null||k.call(e,n,d),ow(b).then(()=>c()?void 0:y()).then(()=>{t?h(d):S()})})};return{promise:o,status:()=>o.status,cancel:i,continue:()=>(r==null||r(),o),cancelRetry:l,continueRetry:a,canStart:f,start:()=>(f()?S():y().then(S),o)}}var br,Hp,yg=(Hp=class{constructor(){$(this,br)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Iu(this.gcTime)&&L(this,br,wr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Lr?1/0:5*60*1e3))}clearGcTimeout(){C(this,br)&&(wr.clearTimeout(C(this,br)),L(this,br,void 0))}},br=new WeakMap,Hp),Cr,Co,bt,Er,Ae,Vs,kr,Dt,an,Vp,fw=(Vp=class extends yg{constructor(t){super();$(this,Dt);$(this,Cr);$(this,Co);$(this,bt);$(this,Er);$(this,Ae);$(this,Vs);$(this,kr);L(this,kr,!1),L(this,Vs,t.defaultOptions),this.setOptions(t.options),this.observers=[],L(this,Er,t.client),L(this,bt,C(this,Er).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,L(this,Cr,Xf(this.options)),this.state=t.state??C(this,Cr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=C(this,Ae))==null?void 0:t.promise}setOptions(t){if(this.options={...C(this,Vs),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Xf(this.options);n.data!==void 0&&(this.setState(Gf(n.data,n.dataUpdatedAt)),L(this,Cr,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,bt).remove(this)}setData(t,n){const r=Lu(this.state.data,t,this.options);return Z(this,Dt,an).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Z(this,Dt,an).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=C(this,Ae))==null?void 0:r.promise;return(o=C(this,Ae))==null||o.cancel(t),n?n.then(Xe).catch(Xe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,Cr))}isActive(){return this.observers.some(t=>Ct(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===sd||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>tr(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!fg(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Ae))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Ae))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,bt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(C(this,Ae)&&(C(this,kr)?C(this,Ae).cancel({revert:!0}):C(this,Ae).cancelRetry()),this.scheduleGc()),C(this,bt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Z(this,Dt,an).call(this,{type:"invalidate"})}async fetch(t,n){var a,c,f,u,h,y,S,m,w,d,p,v;if(this.state.fetchStatus!=="idle"&&((a=C(this,Ae))==null?void 0:a.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(C(this,Ae))return C(this,Ae).continueRetry(),C(this,Ae).promise}if(t&&this.setOptions(t),!this.options.queryFn){const b=this.observers.find(E=>E.options.queryFn);b&&this.setOptions(b.options)}const r=new AbortController,o=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(L(this,kr,!0),r.signal)})},s=()=>{const b=hg(this.options,n),k=(()=>{const N={client:C(this,Er),queryKey:this.queryKey,meta:this.meta};return o(N),N})();return L(this,kr,!1),this.options.persister?this.options.persister(b,k,this):b(k)},l=(()=>{const b={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:C(this,Er),state:this.state,fetchFn:s};return o(b),b})();(c=this.options.behavior)==null||c.onFetch(l,this),L(this,Co,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=l.fetchOptions)==null?void 0:f.meta))&&Z(this,Dt,an).call(this,{type:"fetch",meta:(u=l.fetchOptions)==null?void 0:u.meta}),L(this,Ae,vg({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,onCancel:b=>{b instanceof zu&&b.revert&&this.setState({...C(this,Co),fetchStatus:"idle"}),r.abort()},onFail:(b,E)=>{Z(this,Dt,an).call(this,{type:"failed",failureCount:b,error:E})},onPause:()=>{Z(this,Dt,an).call(this,{type:"pause"})},onContinue:()=>{Z(this,Dt,an).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const b=await C(this,Ae).start();if(b===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(b),(y=(h=C(this,bt).config).onSuccess)==null||y.call(h,b,this),(m=(S=C(this,bt).config).onSettled)==null||m.call(S,b,this.state.error,this),b}catch(b){if(b instanceof zu){if(b.silent)return C(this,Ae).promise;if(b.revert){if(this.state.data===void 0)throw b;return this.state.data}}throw Z(this,Dt,an).call(this,{type:"error",error:b}),(d=(w=C(this,bt).config).onError)==null||d.call(w,b,this),(v=(p=C(this,bt).config).onSettled)==null||v.call(p,this.state.data,b,this),b}finally{this.scheduleGc()}}},Cr=new WeakMap,Co=new WeakMap,bt=new WeakMap,Er=new WeakMap,Ae=new WeakMap,Vs=new WeakMap,kr=new WeakMap,Dt=new WeakSet,an=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...xg(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,...Gf(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return L(this,Co,t.manual?o:void 0),o;case"error":const s=t.error;return{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Oe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,bt).notify({query:this,type:"updated",action:t})})},Vp);function xg(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:gg(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Gf(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Xf(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var nt,se,$s,Ye,Nr,Eo,dn,zn,Ws,ko,No,Pr,Rr,Bn,Po,ce,ds,Bu,Uu,Hu,Vu,$u,Wu,Qu,wg,$p,pw=($p=class extends Wo{constructor(t,n){super();$(this,ce);$(this,nt);$(this,se);$(this,$s);$(this,Ye);$(this,Nr);$(this,Eo);$(this,dn);$(this,zn);$(this,Ws);$(this,ko);$(this,No);$(this,Pr);$(this,Rr);$(this,Bn);$(this,Po,new Set);this.options=n,L(this,nt,t),L(this,zn,null),L(this,dn,Fu()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,se).addObserver(this),Zf(C(this,se),this.options)?Z(this,ce,ds).call(this):this.updateResult(),Z(this,ce,Vu).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ku(C(this,se),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ku(C(this,se),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Z(this,ce,$u).call(this),Z(this,ce,Wu).call(this),C(this,se).removeObserver(this)}setOptions(t){const n=this.options,r=C(this,se);if(this.options=C(this,nt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ct(this.options.enabled,C(this,se))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Z(this,ce,Qu).call(this),C(this,se).setOptions(this.options),n._defaulted&&!xl(this.options,n)&&C(this,nt).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,se),observer:this});const o=this.hasListeners();o&&Jf(C(this,se),r,this.options,n)&&Z(this,ce,ds).call(this),this.updateResult(),o&&(C(this,se)!==r||Ct(this.options.enabled,C(this,se))!==Ct(n.enabled,C(this,se))||tr(this.options.staleTime,C(this,se))!==tr(n.staleTime,C(this,se)))&&Z(this,ce,Bu).call(this);const s=Z(this,ce,Uu).call(this);o&&(C(this,se)!==r||Ct(this.options.enabled,C(this,se))!==Ct(n.enabled,C(this,se))||s!==C(this,Bn))&&Z(this,ce,Hu).call(this,s)}getOptimisticResult(t){const n=C(this,nt).getQueryCache().build(C(this,nt),t),r=this.createResult(n,t);return mw(this,r)&&(L(this,Ye,r),L(this,Eo,this.options),L(this,Nr,C(this,se).state)),r}getCurrentResult(){return C(this,Ye)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&C(this,dn).status==="pending"&&C(this,dn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(t){C(this,Po).add(t)}getCurrentQuery(){return C(this,se)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,nt).defaultQueryOptions(t),r=C(this,nt).getQueryCache().build(C(this,nt),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Z(this,ce,ds).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,Ye)))}createResult(t,n){var O;const r=C(this,se),o=this.options,s=C(this,Ye),i=C(this,Nr),l=C(this,Eo),c=t!==r?t.state:C(this,$s),{state:f}=t;let u={...f},h=!1,y;if(n._optimisticResults){const P=this.hasListeners(),D=!P&&Zf(t,n),j=P&&Jf(t,r,n,o);(D||j)&&(u={...u,...xg(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:S,errorUpdatedAt:m,status:w}=u;y=u.data;let d=!1;if(n.placeholderData!==void 0&&y===void 0&&w==="pending"){let P;s!=null&&s.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData)?(P=s.data,d=!0):P=typeof n.placeholderData=="function"?n.placeholderData((O=C(this,No))==null?void 0:O.state.data,C(this,No)):n.placeholderData,P!==void 0&&(w="success",y=Lu(s==null?void 0:s.data,P,n),h=!0)}if(n.select&&y!==void 0&&!d)if(s&&y===(i==null?void 0:i.data)&&n.select===C(this,Ws))y=C(this,ko);else try{L(this,Ws,n.select),y=n.select(y),y=Lu(s==null?void 0:s.data,y,n),L(this,ko,y),L(this,zn,null)}catch(P){L(this,zn,P)}C(this,zn)&&(S=C(this,zn),y=C(this,ko),m=Date.now(),w="error");const p=u.fetchStatus==="fetching",v=w==="pending",b=w==="error",E=v&&p,k=y!==void 0,T={status:w,fetchStatus:u.fetchStatus,isPending:v,isSuccess:w==="success",isError:b,isInitialLoading:E,isLoading:E,data:y,dataUpdatedAt:u.dataUpdatedAt,error:S,errorUpdatedAt:m,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>c.dataUpdateCount||u.errorUpdateCount>c.errorUpdateCount,isFetching:p,isRefetching:p&&!v,isLoadingError:b&&!k,isPaused:u.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:b&&k,isStale:ld(t,n),refetch:this.refetch,promise:C(this,dn),isEnabled:Ct(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const P=B=>{T.status==="error"?B.reject(T.error):T.data!==void 0&&B.resolve(T.data)},D=()=>{const B=L(this,dn,T.promise=Fu());P(B)},j=C(this,dn);switch(j.status){case"pending":t.queryHash===r.queryHash&&P(j);break;case"fulfilled":(T.status==="error"||T.data!==j.value)&&D();break;case"rejected":(T.status!=="error"||T.error!==j.reason)&&D();break}}return T}updateResult(){const t=C(this,Ye),n=this.createResult(C(this,se),this.options);if(L(this,Nr,C(this,se).state),L(this,Eo,this.options),C(this,Nr).data!==void 0&&L(this,No,C(this,se)),xl(n,t))return;L(this,Ye,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!C(this,Po).size)return!0;const i=new Set(s??C(this,Po));return this.options.throwOnError&&i.add("error"),Object.keys(C(this,Ye)).some(l=>{const a=l;return C(this,Ye)[a]!==t[a]&&i.has(a)})};Z(this,ce,wg).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Z(this,ce,Vu).call(this)}},nt=new WeakMap,se=new WeakMap,$s=new WeakMap,Ye=new WeakMap,Nr=new WeakMap,Eo=new WeakMap,dn=new WeakMap,zn=new WeakMap,Ws=new WeakMap,ko=new WeakMap,No=new WeakMap,Pr=new WeakMap,Rr=new WeakMap,Bn=new WeakMap,Po=new WeakMap,ce=new WeakSet,ds=function(t){Z(this,ce,Qu).call(this);let n=C(this,se).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Xe)),n},Bu=function(){Z(this,ce,$u).call(this);const t=tr(this.options.staleTime,C(this,se));if(Lr||C(this,Ye).isStale||!Iu(t))return;const r=fg(C(this,Ye).dataUpdatedAt,t)+1;L(this,Pr,wr.setTimeout(()=>{C(this,Ye).isStale||this.updateResult()},r))},Uu=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,se)):this.options.refetchInterval)??!1},Hu=function(t){Z(this,ce,Wu).call(this),L(this,Bn,t),!(Lr||Ct(this.options.enabled,C(this,se))===!1||!Iu(C(this,Bn))||C(this,Bn)===0)&&L(this,Rr,wr.setInterval(()=>{(this.options.refetchIntervalInBackground||id.isFocused())&&Z(this,ce,ds).call(this)},C(this,Bn)))},Vu=function(){Z(this,ce,Bu).call(this),Z(this,ce,Hu).call(this,Z(this,ce,Uu).call(this))},$u=function(){C(this,Pr)&&(wr.clearTimeout(C(this,Pr)),L(this,Pr,void 0))},Wu=function(){C(this,Rr)&&(wr.clearInterval(C(this,Rr)),L(this,Rr,void 0))},Qu=function(){const t=C(this,nt).getQueryCache().build(C(this,nt),this.options);if(t===C(this,se))return;const n=C(this,se);L(this,se,t),L(this,$s,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},wg=function(t){Oe.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,Ye))}),C(this,nt).getQueryCache().notify({query:C(this,se),type:"observerResultsUpdated"})})},$p);function hw(e,t){return Ct(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Zf(e,t){return hw(e,t)||e.state.data!==void 0&&Ku(e,t,t.refetchOnMount)}function Ku(e,t,n){if(Ct(t.enabled,e)!==!1&&tr(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&ld(e,t)}return!1}function Jf(e,t,n,r){return(e!==t||Ct(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&ld(e,n)}function ld(e,t){return Ct(t.enabled,e)!==!1&&e.isStaleByTime(tr(t.staleTime,e))}function mw(e,t){return!xl(e.getCurrentResult(),t)}function ep(e){return{onFetch:(t,n)=>{var f,u,h,y,S;const r=t.options,o=(h=(u=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:u.fetchMore)==null?void 0:h.direction,s=((y=t.state.data)==null?void 0:y.pages)||[],i=((S=t.state.data)==null?void 0:S.pageParams)||[];let l={pages:[],pageParams:[]},a=0;const c=async()=>{let m=!1;const w=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},d=hg(t.options,t.fetchOptions),p=async(v,b,E)=>{if(m)return Promise.reject();if(b==null&&v.pages.length)return Promise.resolve(v);const N=(()=>{const D={client:t.client,queryKey:t.queryKey,pageParam:b,direction:E?"backward":"forward",meta:t.options.meta};return w(D),D})(),T=await d(N),{maxPages:O}=t.options,P=E?iw:sw;return{pages:P(v.pages,T,O),pageParams:P(v.pageParams,b,O)}};if(o&&s.length){const v=o==="backward",b=v?gw:tp,E={pages:s,pageParams:i},k=b(r,E);l=await p(E,k,v)}else{const v=e??s.length;do{const b=a===0?i[0]??r.initialPageParam:tp(r,l);if(a>0&&b==null)break;l=await p(l,b),a++}while(a<v)}return l};t.options.persister?t.fetchFn=()=>{var m,w;return(w=(m=t.options).persister)==null?void 0:w.call(m,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function tp(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function gw(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Qs,qt,qe,Tr,Gt,On,Wp,vw=(Wp=class extends yg{constructor(t){super();$(this,Gt);$(this,Qs);$(this,qt);$(this,qe);$(this,Tr);L(this,Qs,t.client),this.mutationId=t.mutationId,L(this,qe,t.mutationCache),L(this,qt,[]),this.state=t.state||Sg(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){C(this,qt).includes(t)||(C(this,qt).push(t),this.clearGcTimeout(),C(this,qe).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){L(this,qt,C(this,qt).filter(n=>n!==t)),this.scheduleGc(),C(this,qe).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,qt).length||(this.state.status==="pending"?this.scheduleGc():C(this,qe).remove(this))}continue(){var t;return((t=C(this,Tr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,l,a,c,f,u,h,y,S,m,w,d,p,v,b,E,k,N,T,O;const n=()=>{Z(this,Gt,On).call(this,{type:"continue"})},r={client:C(this,Qs),meta:this.options.meta,mutationKey:this.options.mutationKey};L(this,Tr,vg({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(P,D)=>{Z(this,Gt,On).call(this,{type:"failed",failureCount:P,error:D})},onPause:()=>{Z(this,Gt,On).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,qe).canRun(this)}));const o=this.state.status==="pending",s=!C(this,Tr).canStart();try{if(o)n();else{Z(this,Gt,On).call(this,{type:"pending",variables:t,isPaused:s}),await((l=(i=C(this,qe).config).onMutate)==null?void 0:l.call(i,t,this,r));const D=await((c=(a=this.options).onMutate)==null?void 0:c.call(a,t,r));D!==this.state.context&&Z(this,Gt,On).call(this,{type:"pending",context:D,variables:t,isPaused:s})}const P=await C(this,Tr).start();return await((u=(f=C(this,qe).config).onSuccess)==null?void 0:u.call(f,P,t,this.state.context,this,r)),await((y=(h=this.options).onSuccess)==null?void 0:y.call(h,P,t,this.state.context,r)),await((m=(S=C(this,qe).config).onSettled)==null?void 0:m.call(S,P,null,this.state.variables,this.state.context,this,r)),await((d=(w=this.options).onSettled)==null?void 0:d.call(w,P,null,t,this.state.context,r)),Z(this,Gt,On).call(this,{type:"success",data:P}),P}catch(P){try{throw await((v=(p=C(this,qe).config).onError)==null?void 0:v.call(p,P,t,this.state.context,this,r)),await((E=(b=this.options).onError)==null?void 0:E.call(b,P,t,this.state.context,r)),await((N=(k=C(this,qe).config).onSettled)==null?void 0:N.call(k,void 0,P,this.state.variables,this.state.context,this,r)),await((O=(T=this.options).onSettled)==null?void 0:O.call(T,void 0,P,t,this.state.context,r)),P}finally{Z(this,Gt,On).call(this,{type:"error",error:P})}}finally{C(this,qe).runNext(this)}}},Qs=new WeakMap,qt=new WeakMap,qe=new WeakMap,Tr=new WeakMap,Gt=new WeakSet,On=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Oe.batch(()=>{C(this,qt).forEach(r=>{r.onMutationUpdate(t)}),C(this,qe).notify({mutation:this,type:"updated",action:t})})},Wp);function Sg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var fn,Lt,Ks,Qp,yw=(Qp=class extends Wo{constructor(t={}){super();$(this,fn);$(this,Lt);$(this,Ks);this.config=t,L(this,fn,new Set),L(this,Lt,new Map),L(this,Ks,0)}build(t,n,r){const o=new vw({client:t,mutationCache:this,mutationId:++si(this,Ks)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){C(this,fn).add(t);const n=Ci(t);if(typeof n=="string"){const r=C(this,Lt).get(n);r?r.push(t):C(this,Lt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(C(this,fn).delete(t)){const n=Ci(t);if(typeof n=="string"){const r=C(this,Lt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&C(this,Lt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Ci(t);if(typeof n=="string"){const r=C(this,Lt).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=Ci(t);if(typeof n=="string"){const o=(r=C(this,Lt).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Oe.batch(()=>{C(this,fn).forEach(t=>{this.notify({type:"removed",mutation:t})}),C(this,fn).clear(),C(this,Lt).clear()})}getAll(){return Array.from(C(this,fn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Kf(n,r))}findAll(t={}){return this.getAll().filter(n=>Kf(t,n))}notify(t){Oe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Oe.batch(()=>Promise.all(t.map(n=>n.continue().catch(Xe))))}},fn=new WeakMap,Lt=new WeakMap,Ks=new WeakMap,Qp);function Ci(e){var t;return(t=e.options.scope)==null?void 0:t.id}var pn,Un,rt,hn,yn,Vi,Yu,Kp,xw=(Kp=class extends Wo{constructor(n,r){super();$(this,yn);$(this,pn);$(this,Un);$(this,rt);$(this,hn);L(this,pn,n),this.setOptions(r),this.bindMethods(),Z(this,yn,Vi).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=C(this,pn).defaultMutationOptions(n),xl(this.options,r)||C(this,pn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:C(this,rt),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Fr(r.mutationKey)!==Fr(this.options.mutationKey)?this.reset():((o=C(this,rt))==null?void 0:o.state.status)==="pending"&&C(this,rt).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=C(this,rt))==null||n.removeObserver(this)}onMutationUpdate(n){Z(this,yn,Vi).call(this),Z(this,yn,Yu).call(this,n)}getCurrentResult(){return C(this,Un)}reset(){var n;(n=C(this,rt))==null||n.removeObserver(this),L(this,rt,void 0),Z(this,yn,Vi).call(this),Z(this,yn,Yu).call(this)}mutate(n,r){var o;return L(this,hn,r),(o=C(this,rt))==null||o.removeObserver(this),L(this,rt,C(this,pn).getMutationCache().build(C(this,pn),this.options)),C(this,rt).addObserver(this),C(this,rt).execute(n)}},pn=new WeakMap,Un=new WeakMap,rt=new WeakMap,hn=new WeakMap,yn=new WeakSet,Vi=function(){var r;const n=((r=C(this,rt))==null?void 0:r.state)??Sg();L(this,Un,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Yu=function(n){Oe.batch(()=>{var r,o,s,i,l,a,c,f;if(C(this,hn)&&this.hasListeners()){const u=C(this,Un).variables,h=C(this,Un).context,y={client:C(this,pn),meta:this.options.meta,mutationKey:this.options.mutationKey};(n==null?void 0:n.type)==="success"?((o=(r=C(this,hn)).onSuccess)==null||o.call(r,n.data,u,h,y),(i=(s=C(this,hn)).onSettled)==null||i.call(s,n.data,null,u,h,y)):(n==null?void 0:n.type)==="error"&&((a=(l=C(this,hn)).onError)==null||a.call(l,n.error,u,h,y),(f=(c=C(this,hn)).onSettled)==null||f.call(c,void 0,n.error,u,h,y))}this.listeners.forEach(u=>{u(C(this,Un))})})},Kp),Xt,Yp,ww=(Yp=class extends Wo{constructor(t={}){super();$(this,Xt);this.config=t,L(this,Xt,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??od(o,n);let i=this.get(s);return i||(i=new fw({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){C(this,Xt).has(t.queryHash)||(C(this,Xt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,Xt).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,Xt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Oe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,Xt).get(t)}getAll(){return[...C(this,Xt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Qf(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Qf(t,r)):n}notify(t){Oe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Oe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Oe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Xt=new WeakMap,Yp),Ee,Hn,Vn,Ro,To,$n,Oo,_o,qp,Sw=(qp=class{constructor(e={}){$(this,Ee);$(this,Hn);$(this,Vn);$(this,Ro);$(this,To);$(this,$n);$(this,Oo);$(this,_o);L(this,Ee,e.queryCache||new ww),L(this,Hn,e.mutationCache||new yw),L(this,Vn,e.defaultOptions||{}),L(this,Ro,new Map),L(this,To,new Map),L(this,$n,0)}mount(){si(this,$n)._++,C(this,$n)===1&&(L(this,Oo,id.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,Ee).onFocus())})),L(this,_o,wl.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,Ee).onOnline())})))}unmount(){var e,t;si(this,$n)._--,C(this,$n)===0&&((e=C(this,Oo))==null||e.call(this),L(this,Oo,void 0),(t=C(this,_o))==null||t.call(this),L(this,_o,void 0))}isFetching(e){return C(this,Ee).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,Hn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,Ee).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=C(this,Ee).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(tr(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return C(this,Ee).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=C(this,Ee).get(r.queryHash),s=o==null?void 0:o.state.data,i=nw(t,s);if(i!==void 0)return C(this,Ee).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Oe.batch(()=>C(this,Ee).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,Ee).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,Ee);Oe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,Ee);return Oe.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Oe.batch(()=>C(this,Ee).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Xe).catch(Xe)}invalidateQueries(e,t={}){return Oe.batch(()=>(C(this,Ee).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Oe.batch(()=>C(this,Ee).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(Xe)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Xe)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,Ee).build(this,t);return n.isStaleByTime(tr(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Xe).catch(Xe)}fetchInfiniteQuery(e){return e.behavior=ep(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Xe).catch(Xe)}ensureInfiniteQueryData(e){return e.behavior=ep(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return wl.isOnline()?C(this,Hn).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,Ee)}getMutationCache(){return C(this,Hn)}getDefaultOptions(){return C(this,Vn)}setDefaultOptions(e){L(this,Vn,e)}setQueryDefaults(e,t){C(this,Ro).set(Fr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,Ro).values()],n={};return t.forEach(r=>{zs(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){C(this,To).set(Fr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,To).values()],n={};return t.forEach(r=>{zs(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,Vn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=od(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===sd&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,Vn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,Ee).clear(),C(this,Hn).clear()}},Ee=new WeakMap,Hn=new WeakMap,Vn=new WeakMap,Ro=new WeakMap,To=new WeakMap,$n=new WeakMap,Oo=new WeakMap,_o=new WeakMap,qp),bg=x.createContext(void 0),Js=e=>{const t=x.useContext(bg);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},bw=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),g.jsx(bg.Provider,{value:e,children:t})),Cg=x.createContext(!1),Cw=()=>x.useContext(Cg);Cg.Provider;function Ew(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var kw=x.createContext(Ew()),Nw=()=>x.useContext(kw),Pw=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Rw=e=>{x.useEffect(()=>{e.clearReset()},[e])},Tw=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||mg(n,[e.error,r])),Ow=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},_w=(e,t)=>e.isLoading&&e.isFetching&&!t,jw=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,np=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Mw(e,t,n){var u,h,y,S,m;const r=Cw(),o=Nw(),s=Js(),i=s.defaultQueryOptions(e);(h=(u=s.getDefaultOptions().queries)==null?void 0:u._experimental_beforeQuery)==null||h.call(u,i),i._optimisticResults=r?"isRestoring":"optimistic",Ow(i),Pw(i,o),Rw(o);const l=!s.getQueryCache().get(i.queryHash),[a]=x.useState(()=>new t(s,i)),c=a.getOptimisticResult(i),f=!r&&e.subscribed!==!1;if(x.useSyncExternalStore(x.useCallback(w=>{const d=f?a.subscribe(Oe.batchCalls(w)):Xe;return a.updateResult(),d},[a,f]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),x.useEffect(()=>{a.setOptions(i)},[i,a]),jw(i,c))throw np(i,a,o);if(Tw({result:c,errorResetBoundary:o,throwOnError:i.throwOnError,query:s.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw c.error;if((S=(y=s.getDefaultOptions().queries)==null?void 0:y._experimental_afterQuery)==null||S.call(y,i,c),i.experimental_prefetchInRender&&!Lr&&_w(c,r)){const w=l?np(i,a,o):(m=s.getQueryCache().get(i.queryHash))==null?void 0:m.promise;w==null||w.catch(Xe).finally(()=>{a.updateResult()})}return i.notifyOnChangeProps?c:a.trackResult(c)}function ad(e,t){return Mw(e,pw)}function ud(e,t){const n=Js(),[r]=x.useState(()=>new xw(n,e));x.useEffect(()=>{r.setOptions(e)},[r,e]);const o=x.useSyncExternalStore(x.useCallback(i=>r.subscribe(Oe.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=x.useCallback((i,l)=>{r.mutate(i,l).catch(Xe)},[r]);if(o.error&&mg(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}function Aw(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const Iw=e=>{switch(e){case"success":return Fw;case"info":return Bw;case"warning":return zw;case"error":return Uw;default:return null}},Dw=Array(12).fill(0),Lw=({visible:e,className:t})=>M.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},M.createElement("div",{className:"sonner-spinner"},Dw.map((n,r)=>M.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Fw=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),zw=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Bw=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Uw=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Hw=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},M.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),M.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Vw=()=>{const[e,t]=M.useState(document.hidden);return M.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let qu=1;class $w{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,s=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:qu++,i=this.toasts.find(a=>a.id===s),l=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...t,id:s,title:r}),{...a,...t,id:s,dismissible:l,title:r}):a):this.addToast({title:r,...o,dismissible:l,id:s}),s},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let s=r!==void 0,i;const l=o.then(async c=>{if(i=["resolve",c],M.isValidElement(c))s=!1,this.create({id:r,type:"default",message:c});else if(Qw(c)&&!c.ok){s=!1;const u=typeof n.error=="function"?await n.error(`HTTP error! status: ${c.status}`):n.error,h=typeof n.description=="function"?await n.description(`HTTP error! status: ${c.status}`):n.description,S=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:r,type:"error",description:h,...S})}else if(c instanceof Error){s=!1;const u=typeof n.error=="function"?await n.error(c):n.error,h=typeof n.description=="function"?await n.description(c):n.description,S=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:r,type:"error",description:h,...S})}else if(n.success!==void 0){s=!1;const u=typeof n.success=="function"?await n.success(c):n.success,h=typeof n.description=="function"?await n.description(c):n.description,S=typeof u=="object"&&!M.isValidElement(u)?u:{message:u};this.create({id:r,type:"success",description:h,...S})}}).catch(async c=>{if(i=["reject",c],n.error!==void 0){s=!1;const f=typeof n.error=="function"?await n.error(c):n.error,u=typeof n.description=="function"?await n.description(c):n.description,y=typeof f=="object"&&!M.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:u,...y})}}).finally(()=>{s&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),a=()=>new Promise((c,f)=>l.then(()=>i[0]==="reject"?f(i[1]):c(i[1])).catch(f));return typeof r!="string"&&typeof r!="number"?{unwrap:a}:Object.assign(r,{unwrap:a})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||qu++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const ot=new $w,Ww=(e,t)=>{const n=(t==null?void 0:t.id)||qu++;return ot.addToast({title:e,...t,id:n}),n},Qw=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Kw=Ww,Yw=()=>ot.toasts,qw=()=>ot.getActiveToasts(),$i=Object.assign(Kw,{success:ot.success,info:ot.info,warning:ot.warning,error:ot.error,custom:ot.custom,message:ot.message,promise:ot.promise,dismiss:ot.dismiss,loading:ot.loading},{getHistory:Yw,getToasts:qw});Aw("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Ei(e){return e.label!==void 0}const Gw=3,Xw="24px",Zw="16px",rp=4e3,Jw=356,e1=14,t1=45,n1=200;function Kt(...e){return e.filter(Boolean).join(" ")}function r1(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const o1=e=>{var t,n,r,o,s,i,l,a,c;const{invert:f,toast:u,unstyled:h,interacting:y,setHeights:S,visibleToasts:m,heights:w,index:d,toasts:p,expanded:v,removeToast:b,defaultRichColors:E,closeButton:k,style:N,cancelButtonStyle:T,actionButtonStyle:O,className:P="",descriptionClassName:D="",duration:j,position:B,gap:U,expandByDefault:te,classNames:I,icons:H,closeButtonAriaLabel:R="Close toast"}=e,[A,F]=M.useState(null),[W,ae]=M.useState(null),[K,G]=M.useState(!1),[oe,ue]=M.useState(!1),[V,Q]=M.useState(!1),[he,ie]=M.useState(!1),[re,J]=M.useState(!1),[je,Le]=M.useState(0),[Wt,Ot]=M.useState(0),X=M.useRef(u.duration||j||rp),tt=M.useRef(null),fe=M.useRef(null),fr=d===0,yy=d+1<=m,ct=u.type,Wr=u.dismissible!==!1,xy=u.className||"",wy=u.descriptionClassName||"",ni=M.useMemo(()=>w.findIndex(Y=>Y.toastId===u.id)||0,[w,u.id]),Sy=M.useMemo(()=>{var Y;return(Y=u.closeButton)!=null?Y:k},[u.closeButton,k]),Rd=M.useMemo(()=>u.duration||j||rp,[u.duration,j]),ra=M.useRef(0),Qr=M.useRef(0),Td=M.useRef(0),Kr=M.useRef(null),[by,Cy]=B.split("-"),Od=M.useMemo(()=>w.reduce((Y,Me,He)=>He>=ni?Y:Y+Me.height,0),[w,ni]),_d=Vw(),Ey=u.invert||f,oa=ct==="loading";Qr.current=M.useMemo(()=>ni*U+Od,[ni,Od]),M.useEffect(()=>{X.current=Rd},[Rd]),M.useEffect(()=>{G(!0)},[]),M.useEffect(()=>{const Y=fe.current;if(Y){const Me=Y.getBoundingClientRect().height;return Ot(Me),S(He=>[{toastId:u.id,height:Me,position:u.position},...He]),()=>S(He=>He.filter(dt=>dt.toastId!==u.id))}},[S,u.id]),M.useLayoutEffect(()=>{if(!K)return;const Y=fe.current,Me=Y.style.height;Y.style.height="auto";const He=Y.getBoundingClientRect().height;Y.style.height=Me,Ot(He),S(dt=>dt.find(Fe=>Fe.toastId===u.id)?dt.map(Fe=>Fe.toastId===u.id?{...Fe,height:He}:Fe):[{toastId:u.id,height:He,position:u.position},...dt])},[K,u.title,u.description,S,u.id,u.jsx,u.action,u.cancel]);const Nn=M.useCallback(()=>{ue(!0),Le(Qr.current),S(Y=>Y.filter(Me=>Me.toastId!==u.id)),setTimeout(()=>{b(u)},n1)},[u,b,S,Qr]);M.useEffect(()=>{if(u.promise&&ct==="loading"||u.duration===1/0||u.type==="loading")return;let Y;return v||y||_d?(()=>{if(Td.current<ra.current){const dt=new Date().getTime()-ra.current;X.current=X.current-dt}Td.current=new Date().getTime()})():(()=>{X.current!==1/0&&(ra.current=new Date().getTime(),Y=setTimeout(()=>{u.onAutoClose==null||u.onAutoClose.call(u,u),Nn()},X.current))})(),()=>clearTimeout(Y)},[v,y,u,ct,_d,Nn]),M.useEffect(()=>{u.delete&&(Nn(),u.onDismiss==null||u.onDismiss.call(u,u))},[Nn,u.delete]);function ky(){var Y;if(H!=null&&H.loading){var Me;return M.createElement("div",{className:Kt(I==null?void 0:I.loader,u==null||(Me=u.classNames)==null?void 0:Me.loader,"sonner-loader"),"data-visible":ct==="loading"},H.loading)}return M.createElement(Lw,{className:Kt(I==null?void 0:I.loader,u==null||(Y=u.classNames)==null?void 0:Y.loader),visible:ct==="loading"})}const Ny=u.icon||(H==null?void 0:H[ct])||Iw(ct);var jd,Md;return M.createElement("li",{tabIndex:0,ref:fe,className:Kt(P,xy,I==null?void 0:I.toast,u==null||(t=u.classNames)==null?void 0:t.toast,I==null?void 0:I.default,I==null?void 0:I[ct],u==null||(n=u.classNames)==null?void 0:n[ct]),"data-sonner-toast":"","data-rich-colors":(jd=u.richColors)!=null?jd:E,"data-styled":!(u.jsx||u.unstyled||h),"data-mounted":K,"data-promise":!!u.promise,"data-swiped":re,"data-removed":oe,"data-visible":yy,"data-y-position":by,"data-x-position":Cy,"data-index":d,"data-front":fr,"data-swiping":V,"data-dismissible":Wr,"data-type":ct,"data-invert":Ey,"data-swipe-out":he,"data-swipe-direction":W,"data-expanded":!!(v||te&&K),"data-testid":u.testId,style:{"--index":d,"--toasts-before":d,"--z-index":p.length-d,"--offset":`${oe?je:Qr.current}px`,"--initial-height":te?"auto":`${Wt}px`,...N,...u.style},onDragEnd:()=>{Q(!1),F(null),Kr.current=null},onPointerDown:Y=>{Y.button!==2&&(oa||!Wr||(tt.current=new Date,Le(Qr.current),Y.target.setPointerCapture(Y.pointerId),Y.target.tagName!=="BUTTON"&&(Q(!0),Kr.current={x:Y.clientX,y:Y.clientY})))},onPointerUp:()=>{var Y,Me,He;if(he||!Wr)return;Kr.current=null;const dt=Number(((Y=fe.current)==null?void 0:Y.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ri=Number(((Me=fe.current)==null?void 0:Me.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Fe=new Date().getTime()-((He=tt.current)==null?void 0:He.getTime()),St=A==="x"?dt:ri,oi=Math.abs(St)/Fe;if(Math.abs(St)>=t1||oi>.11){Le(Qr.current),u.onDismiss==null||u.onDismiss.call(u,u),ae(A==="x"?dt>0?"right":"left":ri>0?"down":"up"),Nn(),ie(!0);return}else{var _t,jt;(_t=fe.current)==null||_t.style.setProperty("--swipe-amount-x","0px"),(jt=fe.current)==null||jt.style.setProperty("--swipe-amount-y","0px")}J(!1),Q(!1),F(null)},onPointerMove:Y=>{var Me,He,dt;if(!Kr.current||!Wr||((Me=window.getSelection())==null?void 0:Me.toString().length)>0)return;const Fe=Y.clientY-Kr.current.y,St=Y.clientX-Kr.current.x;var oi;const _t=(oi=e.swipeDirections)!=null?oi:r1(B);!A&&(Math.abs(St)>1||Math.abs(Fe)>1)&&F(Math.abs(St)>Math.abs(Fe)?"x":"y");let jt={x:0,y:0};const Ad=pr=>1/(1.5+Math.abs(pr)/20);if(A==="y"){if(_t.includes("top")||_t.includes("bottom"))if(_t.includes("top")&&Fe<0||_t.includes("bottom")&&Fe>0)jt.y=Fe;else{const pr=Fe*Ad(Fe);jt.y=Math.abs(pr)<Math.abs(Fe)?pr:Fe}}else if(A==="x"&&(_t.includes("left")||_t.includes("right")))if(_t.includes("left")&&St<0||_t.includes("right")&&St>0)jt.x=St;else{const pr=St*Ad(St);jt.x=Math.abs(pr)<Math.abs(St)?pr:St}(Math.abs(jt.x)>0||Math.abs(jt.y)>0)&&J(!0),(He=fe.current)==null||He.style.setProperty("--swipe-amount-x",`${jt.x}px`),(dt=fe.current)==null||dt.style.setProperty("--swipe-amount-y",`${jt.y}px`)}},Sy&&!u.jsx&&ct!=="loading"?M.createElement("button",{"aria-label":R,"data-disabled":oa,"data-close-button":!0,onClick:oa||!Wr?()=>{}:()=>{Nn(),u.onDismiss==null||u.onDismiss.call(u,u)},className:Kt(I==null?void 0:I.closeButton,u==null||(r=u.classNames)==null?void 0:r.closeButton)},(Md=H==null?void 0:H.close)!=null?Md:Hw):null,(ct||u.icon||u.promise)&&u.icon!==null&&((H==null?void 0:H[ct])!==null||u.icon)?M.createElement("div",{"data-icon":"",className:Kt(I==null?void 0:I.icon,u==null||(o=u.classNames)==null?void 0:o.icon)},u.promise||u.type==="loading"&&!u.icon?u.icon||ky():null,u.type!=="loading"?Ny:null):null,M.createElement("div",{"data-content":"",className:Kt(I==null?void 0:I.content,u==null||(s=u.classNames)==null?void 0:s.content)},M.createElement("div",{"data-title":"",className:Kt(I==null?void 0:I.title,u==null||(i=u.classNames)==null?void 0:i.title)},u.jsx?u.jsx:typeof u.title=="function"?u.title():u.title),u.description?M.createElement("div",{"data-description":"",className:Kt(D,wy,I==null?void 0:I.description,u==null||(l=u.classNames)==null?void 0:l.description)},typeof u.description=="function"?u.description():u.description):null),M.isValidElement(u.cancel)?u.cancel:u.cancel&&Ei(u.cancel)?M.createElement("button",{"data-button":!0,"data-cancel":!0,style:u.cancelButtonStyle||T,onClick:Y=>{Ei(u.cancel)&&Wr&&(u.cancel.onClick==null||u.cancel.onClick.call(u.cancel,Y),Nn())},className:Kt(I==null?void 0:I.cancelButton,u==null||(a=u.classNames)==null?void 0:a.cancelButton)},u.cancel.label):null,M.isValidElement(u.action)?u.action:u.action&&Ei(u.action)?M.createElement("button",{"data-button":!0,"data-action":!0,style:u.actionButtonStyle||O,onClick:Y=>{Ei(u.action)&&(u.action.onClick==null||u.action.onClick.call(u.action,Y),!Y.defaultPrevented&&Nn())},className:Kt(I==null?void 0:I.actionButton,u==null||(c=u.classNames)==null?void 0:c.actionButton)},u.action.label):null)};function op(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function s1(e,t){const n={};return[e,t].forEach((r,o)=>{const s=o===1,i=s?"--mobile-offset":"--offset",l=s?Zw:Xw;function a(c){["top","right","bottom","left"].forEach(f=>{n[`${i}-${f}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?a(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${i}-${c}`]=l:n[`${i}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):a(l)}),n}const i1=M.forwardRef(function(t,n){const{id:r,invert:o,position:s="bottom-right",hotkey:i=["altKey","KeyT"],expand:l,closeButton:a,className:c,offset:f,mobileOffset:u,theme:h="light",richColors:y,duration:S,style:m,visibleToasts:w=Gw,toastOptions:d,dir:p=op(),gap:v=e1,icons:b,containerAriaLabel:E="Notifications"}=t,[k,N]=M.useState([]),T=M.useMemo(()=>r?k.filter(K=>K.toasterId===r):k.filter(K=>!K.toasterId),[k,r]),O=M.useMemo(()=>Array.from(new Set([s].concat(T.filter(K=>K.position).map(K=>K.position)))),[T,s]),[P,D]=M.useState([]),[j,B]=M.useState(!1),[U,te]=M.useState(!1),[I,H]=M.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),R=M.useRef(null),A=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),F=M.useRef(null),W=M.useRef(!1),ae=M.useCallback(K=>{N(G=>{var oe;return(oe=G.find(ue=>ue.id===K.id))!=null&&oe.delete||ot.dismiss(K.id),G.filter(({id:ue})=>ue!==K.id)})},[]);return M.useEffect(()=>ot.subscribe(K=>{if(K.dismiss){requestAnimationFrame(()=>{N(G=>G.map(oe=>oe.id===K.id?{...oe,delete:!0}:oe))});return}setTimeout(()=>{cg.flushSync(()=>{N(G=>{const oe=G.findIndex(ue=>ue.id===K.id);return oe!==-1?[...G.slice(0,oe),{...G[oe],...K},...G.slice(oe+1)]:[K,...G]})})})}),[k]),M.useEffect(()=>{if(h!=="system"){H(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?H("dark"):H("light")),typeof window>"u")return;const K=window.matchMedia("(prefers-color-scheme: dark)");try{K.addEventListener("change",({matches:G})=>{H(G?"dark":"light")})}catch{K.addListener(({matches:oe})=>{try{H(oe?"dark":"light")}catch(ue){console.error(ue)}})}},[h]),M.useEffect(()=>{k.length<=1&&B(!1)},[k]),M.useEffect(()=>{const K=G=>{var oe;if(i.every(Q=>G[Q]||G.code===Q)){var V;B(!0),(V=R.current)==null||V.focus()}G.code==="Escape"&&(document.activeElement===R.current||(oe=R.current)!=null&&oe.contains(document.activeElement))&&B(!1)};return document.addEventListener("keydown",K),()=>document.removeEventListener("keydown",K)},[i]),M.useEffect(()=>{if(R.current)return()=>{F.current&&(F.current.focus({preventScroll:!0}),F.current=null,W.current=!1)}},[R.current]),M.createElement("section",{ref:n,"aria-label":`${E} ${A}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},O.map((K,G)=>{var oe;const[ue,V]=K.split("-");return T.length?M.createElement("ol",{key:K,dir:p==="auto"?op():p,tabIndex:-1,ref:R,className:c,"data-sonner-toaster":!0,"data-sonner-theme":I,"data-y-position":ue,"data-x-position":V,style:{"--front-toast-height":`${((oe=P[0])==null?void 0:oe.height)||0}px`,"--width":`${Jw}px`,"--gap":`${v}px`,...m,...s1(f,u)},onBlur:Q=>{W.current&&!Q.currentTarget.contains(Q.relatedTarget)&&(W.current=!1,F.current&&(F.current.focus({preventScroll:!0}),F.current=null))},onFocus:Q=>{Q.target instanceof HTMLElement&&Q.target.dataset.dismissible==="false"||W.current||(W.current=!0,F.current=Q.relatedTarget)},onMouseEnter:()=>B(!0),onMouseMove:()=>B(!0),onMouseLeave:()=>{U||B(!1)},onDragEnd:()=>B(!1),onPointerDown:Q=>{Q.target instanceof HTMLElement&&Q.target.dataset.dismissible==="false"||te(!0)},onPointerUp:()=>te(!1)},T.filter(Q=>!Q.position&&G===0||Q.position===K).map((Q,he)=>{var ie,re;return M.createElement(o1,{key:Q.id,icons:b,index:he,toast:Q,defaultRichColors:y,duration:(ie=d==null?void 0:d.duration)!=null?ie:S,className:d==null?void 0:d.className,descriptionClassName:d==null?void 0:d.descriptionClassName,invert:o,visibleToasts:w,closeButton:(re=d==null?void 0:d.closeButton)!=null?re:a,interacting:U,position:K,style:d==null?void 0:d.style,unstyled:d==null?void 0:d.unstyled,classNames:d==null?void 0:d.classNames,cancelButtonStyle:d==null?void 0:d.cancelButtonStyle,actionButtonStyle:d==null?void 0:d.actionButtonStyle,closeButtonAriaLabel:d==null?void 0:d.closeButtonAriaLabel,removeToast:ae,toasts:T.filter(J=>J.position==Q.position),heights:P.filter(J=>J.position==Q.position),setHeights:D,expandByDefault:l,gap:v,expanded:j,swipeDirections:t.swipeDirections})})):null}))});function Eg(){return`nav-${Date.now()}-${Math.random().toString(36).slice(2,9)}`}function kg(){return{id:Eg(),type:"overview",label:"All Tables",timestamp:Date.now()}}function l1(e,t){const n=t&&t.conditions.length>0;return{id:Eg(),type:"table",tableName:e,filters:t,label:n?`${e} (filtered)`:e,timestamp:Date.now()}}const Ng={history:[kg()],currentIndex:0};function a1(e,t){switch(t.type){case"NAVIGATE_TO_TABLE":{const n=l1(t.tableName,t.filters),r=e.history.slice(0,e.currentIndex+1);return{history:[...r,n],currentIndex:r.length}}case"NAVIGATE_TO_OVERVIEW":{const n=kg(),r=e.history.slice(0,e.currentIndex+1);return{history:[...r,n],currentIndex:r.length}}case"GO_BACK":return e.currentIndex<=0?e:{...e,currentIndex:e.currentIndex-1};case"GO_FORWARD":return e.currentIndex>=e.history.length-1?e:{...e,currentIndex:e.currentIndex+1};case"CLEAR_HISTORY":return Ng;default:return e}}const Pg=x.createContext(null);function u1({children:e}){const[t,n]=x.useReducer(a1,Ng),r=x.useCallback((c,f)=>{n({type:"NAVIGATE_TO_TABLE",tableName:c,filters:f})},[]),o=x.useCallback(()=>{n({type:"NAVIGATE_TO_OVERVIEW"})},[]),s=x.useCallback(()=>{n({type:"GO_BACK"})},[]),i=x.useCallback(()=>{n({type:"GO_FORWARD"})},[]),l=x.useCallback(()=>{n({type:"CLEAR_HISTORY"})},[]),a=x.useMemo(()=>({currentEntry:t.history[t.currentIndex]||null,history:t.history,breadcrumbs:t.history.slice(0,t.currentIndex+1),navigateToTable:r,navigateToOverview:o,goBack:s,goForward:i,clearHistory:l,canGoBack:t.currentIndex>0,canGoForward:t.currentIndex<t.history.length-1}),[t,r,o,s,i,l]);return g.jsx(Pg.Provider,{value:a,children:e})}function Rg(){const e=x.useContext(Pg);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}const c1="/api";class Wi extends Error{constructor(t,n,r,o,s){super(t),this.status=n,this.code=r,this.meta=o,this.response=s,this.name="ApiError"}}async function hr(e,t){const n=`${c1}${e}`;try{const r=await fetch(n,{...t,headers:{"Content-Type":"application/json",...t==null?void 0:t.headers}}),o=await r.json();if(!r.ok)throw new Wi(o.error||o.message||"Request failed",r.status,o.code,o.meta,o);return o}catch(r){throw r instanceof Wi?r:new Wi(r instanceof Error?r.message:"Network error",0)}}const Qo={getSchema:()=>hr("/schema"),getTableData:(e,t)=>{const n=new URLSearchParams;(t==null?void 0:t.offset)!==void 0&&n.set("offset",String(t.offset)),(t==null?void 0:t.limit)!==void 0&&n.set("limit",String(t.limit)),t!=null&&t.orderBy&&n.set("orderBy",t.orderBy),t!=null&&t.orderDir&&n.set("orderDir",t.orderDir),t!=null&&t.filters&&t.filters.conditions.length>0&&n.set("filters",JSON.stringify(t.filters));const r=n.toString();return hr(`/tables/${e}${r?`?${r}`:""}`)},getRecord:(e,t)=>hr(`/tables/${e}/${t}`),createRecord:(e,t)=>hr(`/tables/${e}`,{method:"POST",body:JSON.stringify(t)}),updateRecord:(e,t,n)=>hr(`/tables/${e}/${t}`,{method:"PATCH",body:JSON.stringify(n)}),deleteRecord:(e,t)=>hr(`/tables/${e}/${t}`,{method:"DELETE"}),batchDeleteRecords:(e,t)=>hr(`/tables/${e}`,{method:"DELETE",body:JSON.stringify({ids:t})})};function Tg(){return ad({queryKey:["schema"],queryFn:()=>Qo.getSchema(),staleTime:3e4,refetchInterval:3e4})}function d1(e,t){return ad({queryKey:["table",e,t],queryFn:()=>Qo.getTableData(e,t),enabled:!!e})}function f1(e){const t=Js();return ud({mutationFn:n=>Qo.createRecord(e,n),onSuccess:()=>{t.invalidateQueries({queryKey:["table",e]})}})}function p1(e){const t=Js();return ud({mutationFn:({id:n,data:r})=>Qo.updateRecord(e,n,r),onSuccess:()=>{t.invalidateQueries({queryKey:["table",e]})}})}function h1(e){const t=Js();return ud({mutationFn:n=>Qo.batchDeleteRecords(e,n),onSuccess:()=>{t.invalidateQueries({queryKey:["table",e]})}})}function m1(e){return ad({queryKey:["tableCounts",e],queryFn:async()=>{const t={};return await Promise.all(e.map(async n=>{var o;const r=await Qo.getTableData(n,{limit:0});t[n]=((o=r.data)==null?void 0:o.total)||0})),t},enabled:e.length>0})}function Og(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Og(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function g1(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Og(e))&&(r&&(r+=" "),r+=t);return r}const cd="-",v1=e=>{const t=x1(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const l=i.split(cd);return l[0]===""&&l.length!==1&&l.shift(),_g(l,t)||y1(i)},getConflictingClassGroupIds:(i,l)=>{const a=n[i]||[];return l&&r[i]?[...a,...r[i]]:a}}},_g=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?_g(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(cd);return(i=t.validators.find(({validator:l})=>l(s)))==null?void 0:i.classGroupId},sp=/^\[(.+)\]$/,y1=e=>{if(sp.test(e)){const t=sp.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},x1=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return S1(Object.entries(e.classGroups),n).forEach(([s,i])=>{Gu(i,r,s,t)}),r},Gu=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:ip(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(w1(o)){Gu(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{Gu(i,ip(t,s),n,r)})})},ip=(e,t)=>{let n=e;return t.split(cd).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},w1=e=>e.isThemeGetter,S1=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,l])=>[t+i,l])):s);return[n,o]}):e,b1=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},jg="!",C1=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,i=l=>{const a=[];let c=0,f=0,u;for(let w=0;w<l.length;w++){let d=l[w];if(c===0){if(d===o&&(r||l.slice(w,w+s)===t)){a.push(l.slice(f,w)),f=w+s;continue}if(d==="/"){u=w;continue}}d==="["?c++:d==="]"&&c--}const h=a.length===0?l:l.substring(f),y=h.startsWith(jg),S=y?h.substring(1):h,m=u&&u>f?u-f:void 0;return{modifiers:a,hasImportantModifier:y,baseClassName:S,maybePostfixModifierPosition:m}};return n?l=>n({className:l,parseClassName:i}):i},E1=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},k1=e=>({cache:b1(e.cacheSize),parseClassName:C1(e),...v1(e)}),N1=/\s+/,P1=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(N1);let l="";for(let a=i.length-1;a>=0;a-=1){const c=i[a],{modifiers:f,hasImportantModifier:u,baseClassName:h,maybePostfixModifierPosition:y}=n(c);let S=!!y,m=r(S?h.substring(0,y):h);if(!m){if(!S){l=c+(l.length>0?" "+l:l);continue}if(m=r(h),!m){l=c+(l.length>0?" "+l:l);continue}S=!1}const w=E1(f).join(":"),d=u?w+jg:w,p=d+m;if(s.includes(p))continue;s.push(p);const v=o(m,S);for(let b=0;b<v.length;++b){const E=v[b];s.push(d+E)}l=c+(l.length>0?" "+l:l)}return l};function R1(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Mg(t))&&(r&&(r+=" "),r+=n);return r}const Mg=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Mg(e[r]))&&(n&&(n+=" "),n+=t);return n};function T1(e,...t){let n,r,o,s=i;function i(a){const c=t.reduce((f,u)=>u(f),e());return n=k1(c),r=n.cache.get,o=n.cache.set,s=l,l(a)}function l(a){const c=r(a);if(c)return c;const f=P1(a,n);return o(a,f),f}return function(){return s(R1.apply(null,arguments))}}const me=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Ag=/^\[(?:([a-z-]+):)?(.+)\]$/i,O1=/^\d+\/\d+$/,_1=new Set(["px","full","screen"]),j1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,M1=/\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$/,A1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,I1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,D1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ln=e=>vo(e)||_1.has(e)||O1.test(e),Rn=e=>Ko(e,"length",$1),vo=e=>!!e&&!Number.isNaN(Number(e)),ja=e=>Ko(e,"number",vo),ss=e=>!!e&&Number.isInteger(Number(e)),L1=e=>e.endsWith("%")&&vo(e.slice(0,-1)),q=e=>Ag.test(e),Tn=e=>j1.test(e),F1=new Set(["length","size","percentage"]),z1=e=>Ko(e,F1,Ig),B1=e=>Ko(e,"position",Ig),U1=new Set(["image","url"]),H1=e=>Ko(e,U1,Q1),V1=e=>Ko(e,"",W1),is=()=>!0,Ko=(e,t,n)=>{const r=Ag.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},$1=e=>M1.test(e)&&!A1.test(e),Ig=()=>!1,W1=e=>I1.test(e),Q1=e=>D1.test(e),K1=()=>{const e=me("colors"),t=me("spacing"),n=me("blur"),r=me("brightness"),o=me("borderColor"),s=me("borderRadius"),i=me("borderSpacing"),l=me("borderWidth"),a=me("contrast"),c=me("grayscale"),f=me("hueRotate"),u=me("invert"),h=me("gap"),y=me("gradientColorStops"),S=me("gradientColorStopPositions"),m=me("inset"),w=me("margin"),d=me("opacity"),p=me("padding"),v=me("saturate"),b=me("scale"),E=me("sepia"),k=me("skew"),N=me("space"),T=me("translate"),O=()=>["auto","contain","none"],P=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto",q,t],j=()=>[q,t],B=()=>["",ln,Rn],U=()=>["auto",vo,q],te=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],I=()=>["solid","dashed","dotted","double","none"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>["start","end","center","between","around","evenly","stretch"],A=()=>["","0",q],F=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[vo,q];return{cacheSize:500,separator:":",theme:{colors:[is],spacing:[ln,Rn],blur:["none","",Tn,q],brightness:W(),borderColor:[e],borderRadius:["none","","full",Tn,q],borderSpacing:j(),borderWidth:B(),contrast:W(),grayscale:A(),hueRotate:W(),invert:A(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[L1,Rn],inset:D(),margin:D(),opacity:W(),padding:j(),saturate:W(),scale:W(),sepia:A(),skew:W(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",q]}],container:["container"],columns:[{columns:[Tn]}],"break-after":[{"break-after":F()}],"break-before":[{"break-before":F()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],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:[...te(),q]}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ss,q]}],basis:[{basis:D()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",q]}],grow:[{grow:A()}],shrink:[{shrink:A()}],order:[{order:["first","last","none",ss,q]}],"grid-cols":[{"grid-cols":[is]}],"col-start-end":[{col:["auto",{span:["full",ss,q]},q]}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":[is]}],"row-start-end":[{row:["auto",{span:[ss,q]},q]}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",q]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",q]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...R()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...R(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...R(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",q,t]}],"min-w":[{"min-w":[q,t,"min","max","fit"]}],"max-w":[{"max-w":[q,t,"none","full","min","max","fit","prose",{screen:[Tn]},Tn]}],h:[{h:[q,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[q,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Tn,Rn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ja]}],"font-family":[{font:[is]}],"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:["tighter","tight","normal","wide","wider","widest",q]}],"line-clamp":[{"line-clamp":["none",vo,ja]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ln,q]}],"list-image":[{"list-image":["none",q]}],"list-style-type":[{list:["none","disc","decimal",q]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[d]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[d]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...I(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ln,Rn]}],"underline-offset":[{"underline-offset":["auto",ln,q]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[d]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...te(),B1]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",z1]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},H1]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[d]}],"border-style":[{border:[...I(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[d]}],"divide-style":[{divide:I()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...I()]}],"outline-offset":[{"outline-offset":[ln,q]}],"outline-w":[{outline:[ln,Rn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[d]}],"ring-offset-w":[{"ring-offset":[ln,Rn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Tn,V1]}],"shadow-color":[{shadow:[is]}],opacity:[{opacity:[d]}],"mix-blend":[{"mix-blend":[...H(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":H()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",Tn,q]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[u]}],saturate:[{saturate:[v]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[d]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",q]}],duration:[{duration:W()}],ease:[{ease:["linear","in","out","in-out",q]}],delay:[{delay:W()}],animate:[{animate:["none","spin","ping","pulse","bounce",q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[ss,q]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",q]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",q]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"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",q]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ln,Rn,ja]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},Y1=T1(K1);function ee(...e){return Y1(g1(e))}function q1({tables:e,selectedTable:t,onSelectTable:n}){return g.jsx("div",{className:"sticky top-0 z-10 sm:hidden",children:g.jsx("div",{className:"flex items-center gap-2 p-3 overflow-x-auto scrollbar-hide",children:e.map(r=>g.jsx("button",{onClick:()=>n(r.name),className:ee("px-2 py-1 rounded-lg text-xs font-semibold font-mono whitespace-nowrap transition-colors",t===r.name?"bg-bg-secondary text-text-primary":"text-text-secondary hover:text-text-primary hover:bg-bg-secondary/50"),children:r.name},r.name))})})}/**
41
+ * @license lucide-react v0.462.0 - ISC
42
+ *
43
+ * This source code is licensed under the ISC license.
44
+ * See the LICENSE file in the root directory of this source tree.
45
+ */const G1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Dg=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
46
+ * @license lucide-react v0.462.0 - ISC
47
+ *
48
+ * This source code is licensed under the ISC license.
49
+ * See the LICENSE file in the root directory of this source tree.
50
+ */var X1={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"};/**
51
+ * @license lucide-react v0.462.0 - ISC
52
+ *
53
+ * This source code is licensed under the ISC license.
54
+ * See the LICENSE file in the root directory of this source tree.
55
+ */const Z1=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...l},a)=>x.createElement("svg",{ref:a,...X1,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Dg("lucide",o),...l},[...i.map(([c,f])=>x.createElement(c,f)),...Array.isArray(s)?s:[s]]));/**
56
+ * @license lucide-react v0.462.0 - ISC
57
+ *
58
+ * This source code is licensed under the ISC license.
59
+ * See the LICENSE file in the root directory of this source tree.
60
+ */const wt=(e,t)=>{const n=x.forwardRef(({className:r,...o},s)=>x.createElement(Z1,{ref:s,iconNode:t,className:Dg(`lucide-${G1(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
61
+ * @license lucide-react v0.462.0 - ISC
62
+ *
63
+ * This source code is licensed under the ISC license.
64
+ * See the LICENSE file in the root directory of this source tree.
65
+ */const Sl=wt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
66
+ * @license lucide-react v0.462.0 - ISC
67
+ *
68
+ * This source code is licensed under the ISC license.
69
+ * See the LICENSE file in the root directory of this source tree.
70
+ */const Lg=wt("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
71
+ * @license lucide-react v0.462.0 - ISC
72
+ *
73
+ * This source code is licensed under the ISC license.
74
+ * See the LICENSE file in the root directory of this source tree.
75
+ */const Fg=wt("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
76
+ * @license lucide-react v0.462.0 - ISC
77
+ *
78
+ * This source code is licensed under the ISC license.
79
+ * See the LICENSE file in the root directory of this source tree.
80
+ */const zg=wt("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
81
+ * @license lucide-react v0.462.0 - ISC
82
+ *
83
+ * This source code is licensed under the ISC license.
84
+ * See the LICENSE file in the root directory of this source tree.
85
+ */const J1=wt("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
86
+ * @license lucide-react v0.462.0 - ISC
87
+ *
88
+ * This source code is licensed under the ISC license.
89
+ * See the LICENSE file in the root directory of this source tree.
90
+ */const eS=wt("Database",[["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"}]]);/**
91
+ * @license lucide-react v0.462.0 - ISC
92
+ *
93
+ * This source code is licensed under the ISC license.
94
+ * See the LICENSE file in the root directory of this source tree.
95
+ */const tS=wt("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
96
+ * @license lucide-react v0.462.0 - ISC
97
+ *
98
+ * This source code is licensed under the ISC license.
99
+ * See the LICENSE file in the root directory of this source tree.
100
+ */const Bg=wt("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
101
+ * @license lucide-react v0.462.0 - ISC
102
+ *
103
+ * This source code is licensed under the ISC license.
104
+ * See the LICENSE file in the root directory of this source tree.
105
+ */const nS=wt("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
106
+ * @license lucide-react v0.462.0 - ISC
107
+ *
108
+ * This source code is licensed under the ISC license.
109
+ * See the LICENSE file in the root directory of this source tree.
110
+ */const rS=wt("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
111
+ * @license lucide-react v0.462.0 - ISC
112
+ *
113
+ * This source code is licensed under the ISC license.
114
+ * See the LICENSE file in the root directory of this source tree.
115
+ */const oS=wt("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
116
+ * @license lucide-react v0.462.0 - ISC
117
+ *
118
+ * This source code is licensed under the ISC license.
119
+ * See the LICENSE file in the root directory of this source tree.
120
+ */const sS=wt("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
121
+ * @license lucide-react v0.462.0 - ISC
122
+ *
123
+ * This source code is licensed under the ISC license.
124
+ * See the LICENSE file in the root directory of this source tree.
125
+ */const Ug=wt("Trash2",[["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"}]]);function iS(e,t,n,r){var i,l,a;const o=n.type,s=e.models.find(c=>c.name===o);if(!s)return null;if(!((i=n.relationFromFields)!=null&&i.length)){const c=s.fields.find(f=>f.relationName===n.relationName&&f.relationFromFields&&f.relationFromFields.length>0);if(c&&c.relationFromFields&&c.relationToFields){const f=c.relationFromFields[0],u=c.relationToFields[0],h=r[u];return h==null?null:{targetTable:o,filterField:f,filterValue:String(h)}}}if((l=n.relationFromFields)!=null&&l.length&&((a=n.relationToFields)!=null&&a.length)){const c=n.relationFromFields[0],f=n.relationToFields[0],u=r[c];return u==null?null:{targetTable:o,filterField:f,filterValue:String(u)}}return null}function lS(e){return e.kind==="object"}const $l=x.forwardRef(function({children:t,icon:n="chevron-down",variant:r="filled",size:o="default",mono:s=!1,placeholder:i=!1,className:l,...a},c){const f=n==="chevron-down"?Lg:n==="chevron-right"?zg:null;return g.jsxs("button",{ref:c,className:ee("rounded-lg inline-flex items-center outline-none","disabled:opacity-50 disabled:cursor-not-allowed",o==="default"&&"h-8 pl-2.5 pr-1.5 py-1.5 gap-1 text-xs font-semibold",o==="compact"&&"h-6 pl-2 pr-1 py-0.5 gap-0.5 text-xs font-medium",r==="filled"&&"bg-bg-secondary hover:bg-bg-tertiary transition-colors",r==="outlined"&&"bg-background border border-border-secondary",s&&"font-mono",i?"text-text-tertiary":"text-text-primary",l),...a,children:[t,f&&g.jsx(f,{className:ee("shrink-0",o==="default"&&"w-5 h-5",o==="compact"&&"w-4 h-4",i?"text-icon-tertiary":"text-icon-secondary")})]})});function aS(e){return e==null?{text:"null",isNull:!0}:typeof e=="boolean"?{text:e?"true":"false",isNull:!1}:typeof e=="object"?{text:JSON.stringify(e),isNull:!1}:{text:String(e),isNull:!1}}function uS({columns:e,rows:t,selectedRows:n,onToggleRow:r,onSelectAll:o,onRowClick:s,onNavigateToRelation:i,schema:l,tableName:a,isPreview:c=!1,orderBy:f,orderDir:u,onSort:h,isDestructive:y=!1}){const S=y?{bg:"bg-destructive",bgLight:"bg-destructive/10",borderL:"!border-l-destructive/20",borderT:"!border-t-destructive/20",borderB:"!border-b-destructive/20",text:"text-destructive"}:{bg:"bg-kiwi-600",bgLight:"bg-kiwi-600/10",borderL:"!border-l-kiwi-600/20",borderT:"!border-t-kiwi-600/20",borderB:"!border-b-kiwi-600/20",text:"text-kiwi-800"},m=c?e.slice(0,10):e,w=c?t.slice(0,4):t,p=(()=>{if(w.length===0)return"none";const b=w.filter((E,k)=>n.has(k)).length;return b===0?"none":b===w.length?"all":"some"})(),v=b=>{if(!n.has(b))return null;const k=n.has(b-1),N=n.has(b+1);return{isFirst:!k,isLast:!N}};return g.jsxs("div",{className:ee("select-none",!c&&"min-w-max"),children:[g.jsxs("div",{className:"flex items-center",children:[g.jsx("div",{onClick:o,className:ee("w-9 shrink-0 p-2 flex items-center justify-center",o&&"cursor-pointer"),children:g.jsxs("div",{className:ee("w-5 h-5 rounded-md flex items-center justify-center",p==="none"&&"border border-border-tertiary",p==="some"&&S.bg,p==="all"&&S.bg),children:[p==="some"&&g.jsx(nS,{className:"w-4 h-4 text-white"}),p==="all"&&g.jsx(Sl,{className:"w-4 h-4 text-white"})]})}),m.map(b=>g.jsxs("div",{onClick:()=>h==null?void 0:h(b.name),className:ee("px-3 py-2 shrink-0 flex items-center gap-1",c?"w-28 min-w-20 max-w-40":"w-40",h&&"cursor-pointer hover:bg-bg-secondary rounded-lg"),children:[g.jsx("span",{className:"text-text-secondary text-xs font-semibold font-mono truncate",children:b.name}),f===b.name&&(u==="asc"?g.jsx(J1,{className:"w-3 h-3 text-text-secondary shrink-0"}):g.jsx(Lg,{className:"w-3 h-3 text-text-secondary shrink-0"}))]},b.name))]}),w.map((b,E)=>{const k=n.has(E),N=E===0,T=E===w.length-1,O=v(E);return g.jsxs("div",{className:"flex items-stretch",children:[g.jsx("div",{onClick:()=>r==null?void 0:r(E),className:ee("w-9 shrink-0 flex items-center justify-center border-y border-l border-transparent",r&&"cursor-pointer",k&&S.bgLight,k&&S.borderL,k&&(O==null?void 0:O.isFirst)&&S.borderT,k&&(O==null?void 0:O.isLast)&&S.borderB,(O==null?void 0:O.isFirst)&&"rounded-tl-lg",(O==null?void 0:O.isLast)&&"rounded-bl-lg"),children:g.jsx("div",{className:ee("w-5 h-5 rounded-md flex items-center justify-center",k?S.bg:"border border-border-tertiary"),children:k&&g.jsx(Sl,{className:"w-4 h-4 text-white"})})}),m.map((P,D)=>{const j=D===0,B=D===m.length-1,U="kind"in P?P:null,I=(U?lS(U):!1)&&U&&l&&a?iS(l,a,U,b):null,H=R=>{I&&i?(R.stopPropagation(),i(I)):s==null||s(b,E,P.name)};return g.jsx("div",{onClick:H,className:ee("px-3 shrink-0",I?"py-1":"py-2",c?"w-28 min-w-20 max-w-40":"w-40",(s||I)&&"cursor-pointer",j&&"border-l border-l-border-tertiary","border-r border-r-border-tertiary",N?"border-t border-t-border-tertiary":"border-t border-t-transparent","border-b",k&&!(O!=null&&O.isLast)?"border-b-transparent":"border-b-border-tertiary",N&&j&&!k&&"rounded-tl-xl",N&&B&&"rounded-tr-xl",T&&j&&!k&&"rounded-bl-xl",T&&B&&"rounded-br-xl",k&&S.bgLight,k&&(O==null?void 0:O.isFirst)&&S.borderT,k&&(O==null?void 0:O.isLast)&&S.borderB),children:I&&U?g.jsx($l,{icon:"chevron-right",size:"compact",children:U.type}):(()=>{const{text:R,isNull:A}=aS(b[P.name]);return g.jsx("span",{className:ee("font-medium truncate block text-sm",A?"text-text-tertiary":k?S.text:"text-text-primary"),children:R})})()},P.name)})]},E)})]})}function dd({title:e,subtitle:t,onBack:n,showBackButton:r=!1,rightActions:o}){return g.jsxs("div",{className:"h-14 flex justify-between items-center px-4 py-3",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[r&&n&&g.jsx("button",{onClick:n,className:"w-7 h-7 rounded-lg flex justify-center items-center hover:bg-button-primary",children:g.jsx(Fg,{className:"w-7 h-7 text-icon-primary"})}),g.jsxs("div",{className:"flex items-baseline gap-2",children:[g.jsx("span",{className:"text-text-primary text-base font-semibold",children:e}),t&&g.jsx("span",{className:"text-text-tertiary text-xs font-medium",children:t})]})]}),g.jsx("div",{className:"flex items-center gap-1",children:o})]})}const cS={primary:"bg-blackberry-1000 text-coconut-1000",secondary:"bg-bg-secondary text-text-primary",disabled:"bg-button-disabled text-text-disabled cursor-not-allowed"};function dS({variant:e="primary",children:t,onClick:n,disabled:r,className:o}){const s=r?"disabled":e;return g.jsx("button",{onClick:r?void 0:n,disabled:r,className:ee("h-9 px-3 py-2 rounded-[10px] inline-flex justify-center items-center gap-0.5","text-sm font-medium transition-opacity","hover:opacity-90 active:opacity-80",cS[s],r&&"hover:opacity-100 active:opacity-100",o),children:t})}const fS={"kiwi-600":"text-kiwi-600","kiwi-500":"text-kiwi-500","blueberry-500":"text-blueberry-500","blackberry-1000":"text-blackberry-1000"};function pS({icon:e,active:t=!1,activeColor:n="kiwi-600",badge:r,onClick:o,className:s}){const i=fS[n]||"text-kiwi-600";return g.jsxs("button",{onClick:o,className:ee("w-14 h-14 rounded-full flex items-center gap-1","bg-bg-secondary transition-all",r?"justify-start pl-3":"justify-center",t&&"ring-1 ring-primary/20",s),children:[g.jsx("div",{className:ee("w-5 h-5 shrink-0",t?i:"text-icon-primary"),children:e}),r!==void 0&&r>0&&g.jsx("span",{className:ee("text-sm font-semibold",t?i:"text-text-primary"),children:r})]})}function Hg({primaryButton:e,secondaryButton:t}){return g.jsx("div",{className:"absolute bottom-0 left-0 right-0 px-5 pt-5 pb-6",children:g.jsxs("div",{className:"flex justify-center items-center gap-2",children:[t&&g.jsx(pS,{icon:t.icon,active:t.active,activeColor:t.activeColor,badge:t.badge,onClick:t.onClick}),g.jsx(dS,{onClick:e.onClick,disabled:e.disabled,children:e.label})]})})}function lp(e,[t,n]){return Math.min(n,Math.max(t,e))}function ve(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Wl(e,t=[]){let n=[];function r(s,i){const l=x.createContext(i),a=n.length;n=[...n,i];const c=u=>{var d;const{scope:h,children:y,...S}=u,m=((d=h==null?void 0:h[e])==null?void 0:d[a])||l,w=x.useMemo(()=>S,Object.values(S));return g.jsx(m.Provider,{value:w,children:y})};c.displayName=s+"Provider";function f(u,h){var m;const y=((m=h==null?void 0:h[e])==null?void 0:m[a])||l,S=x.useContext(y);if(S)return S;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[c,f]}const o=()=>{const s=n.map(i=>x.createContext(i));return function(l){const a=(l==null?void 0:l[e])||s;return x.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,hS(o,...t)]}function hS(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((l,{useScope:a,scopeName:c})=>{const u=a(s)[`__scope${c}`];return{...l,...u}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function ap(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Vg(...e){return t=>{let n=!1;const r=e.map(o=>{const s=ap(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():ap(e[o],null)}}}}function Re(...e){return x.useCallback(Vg(...e),e)}function Bs(e){const t=mS(e),n=x.forwardRef((r,o)=>{const{children:s,...i}=r,l=x.Children.toArray(s),a=l.find(vS);if(a){const c=a.props.children,f=l.map(u=>u===a?x.Children.count(c)>1?x.Children.only(null):x.isValidElement(c)?c.props.children:null:u);return g.jsx(t,{...i,ref:o,children:x.isValidElement(c)?x.cloneElement(c,void 0,f):null})}return g.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function mS(e){const t=x.forwardRef((n,r)=>{const{children:o,...s}=n;if(x.isValidElement(o)){const i=xS(o),l=yS(s,o.props);return o.type!==x.Fragment&&(l.ref=r?Vg(r,i):i),x.cloneElement(o,l)}return x.Children.count(o)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var gS=Symbol("radix.slottable");function vS(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===gS}function yS(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...l)=>{const a=s(...l);return o(...l),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function xS(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function wS(e){const t=e+"CollectionProvider",[n,r]=Wl(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:w,children:d}=m,p=M.useRef(null),v=M.useRef(new Map).current;return g.jsx(o,{scope:w,itemMap:v,collectionRef:p,children:d})};i.displayName=t;const l=e+"CollectionSlot",a=Bs(l),c=M.forwardRef((m,w)=>{const{scope:d,children:p}=m,v=s(l,d),b=Re(w,v.collectionRef);return g.jsx(a,{ref:b,children:p})});c.displayName=l;const f=e+"CollectionItemSlot",u="data-radix-collection-item",h=Bs(f),y=M.forwardRef((m,w)=>{const{scope:d,children:p,...v}=m,b=M.useRef(null),E=Re(w,b),k=s(f,d);return M.useEffect(()=>(k.itemMap.set(b,{ref:b,...v}),()=>void k.itemMap.delete(b))),g.jsx(h,{[u]:"",ref:E,children:p})});y.displayName=f;function S(m){const w=s(e+"CollectionConsumer",m);return M.useCallback(()=>{const p=w.collectionRef.current;if(!p)return[];const v=Array.from(p.querySelectorAll(`[${u}]`));return Array.from(w.itemMap.values()).sort((k,N)=>v.indexOf(k.ref.current)-v.indexOf(N.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:i,Slot:c,ItemSlot:y},S,r]}var SS=x.createContext(void 0);function bS(e){const t=x.useContext(SS);return e||t||"ltr"}var CS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ce=CS.reduce((e,t)=>{const n=Bs(`Primitive.${t}`),r=x.forwardRef((o,s)=>{const{asChild:i,...l}=o,a=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(a,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ES(e,t){e&&$o.flushSync(()=>e.dispatchEvent(t))}function zr(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function kS(e,t=globalThis==null?void 0:globalThis.document){const n=zr(e);x.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var NS="DismissableLayer",Xu="dismissableLayer.update",PS="dismissableLayer.pointerDownOutside",RS="dismissableLayer.focusOutside",up,$g=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),fd=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:l,...a}=e,c=x.useContext($g),[f,u]=x.useState(null),h=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=x.useState({}),S=Re(t,N=>u(N)),m=Array.from(c.layers),[w]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),d=m.indexOf(w),p=f?m.indexOf(f):-1,v=c.layersWithOutsidePointerEventsDisabled.size>0,b=p>=d,E=_S(N=>{const T=N.target,O=[...c.branches].some(P=>P.contains(T));!b||O||(o==null||o(N),i==null||i(N),N.defaultPrevented||l==null||l())},h),k=jS(N=>{const T=N.target;[...c.branches].some(P=>P.contains(T))||(s==null||s(N),i==null||i(N),N.defaultPrevented||l==null||l())},h);return kS(N=>{p===c.layers.size-1&&(r==null||r(N),!N.defaultPrevented&&l&&(N.preventDefault(),l()))},h),x.useEffect(()=>{if(f)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(up=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),cp(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=up)}},[f,h,n,c]),x.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),cp())},[f,c]),x.useEffect(()=>{const N=()=>y({});return document.addEventListener(Xu,N),()=>document.removeEventListener(Xu,N)},[]),g.jsx(Ce.div,{...a,ref:S,style:{pointerEvents:v?b?"auto":"none":void 0,...e.style},onFocusCapture:ve(e.onFocusCapture,k.onFocusCapture),onBlurCapture:ve(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:ve(e.onPointerDownCapture,E.onPointerDownCapture)})});fd.displayName=NS;var TS="DismissableLayerBranch",OS=x.forwardRef((e,t)=>{const n=x.useContext($g),r=x.useRef(null),o=Re(t,r);return x.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),g.jsx(Ce.div,{...e,ref:o})});OS.displayName=TS;function _S(e,t=globalThis==null?void 0:globalThis.document){const n=zr(e),r=x.useRef(!1),o=x.useRef(()=>{});return x.useEffect(()=>{const s=l=>{if(l.target&&!r.current){let a=function(){Wg(PS,n,c,{discrete:!0})};const c={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function jS(e,t=globalThis==null?void 0:globalThis.document){const n=zr(e),r=x.useRef(!1);return x.useEffect(()=>{const o=s=>{s.target&&!r.current&&Wg(RS,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function cp(){const e=new CustomEvent(Xu);document.dispatchEvent(e)}function Wg(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ES(o,s):o.dispatchEvent(s)}var Ma=0;function Qg(){x.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??dp()),document.body.insertAdjacentElement("beforeend",e[1]??dp()),Ma++,()=>{Ma===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ma--}},[])}function dp(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Aa="focusScope.autoFocusOnMount",Ia="focusScope.autoFocusOnUnmount",fp={bubbles:!1,cancelable:!0},MS="FocusScope",pd=x.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[l,a]=x.useState(null),c=zr(o),f=zr(s),u=x.useRef(null),h=Re(t,m=>a(m)),y=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(r){let m=function(v){if(y.paused||!l)return;const b=v.target;l.contains(b)?u.current=b:_n(u.current,{select:!0})},w=function(v){if(y.paused||!l)return;const b=v.relatedTarget;b!==null&&(l.contains(b)||_n(u.current,{select:!0}))},d=function(v){if(document.activeElement===document.body)for(const E of v)E.removedNodes.length>0&&_n(l)};document.addEventListener("focusin",m),document.addEventListener("focusout",w);const p=new MutationObserver(d);return l&&p.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",w),p.disconnect()}}},[r,l,y.paused]),x.useEffect(()=>{if(l){hp.add(y);const m=document.activeElement;if(!l.contains(m)){const d=new CustomEvent(Aa,fp);l.addEventListener(Aa,c),l.dispatchEvent(d),d.defaultPrevented||(AS(zS(Kg(l)),{select:!0}),document.activeElement===m&&_n(l))}return()=>{l.removeEventListener(Aa,c),setTimeout(()=>{const d=new CustomEvent(Ia,fp);l.addEventListener(Ia,f),l.dispatchEvent(d),d.defaultPrevented||_n(m??document.body,{select:!0}),l.removeEventListener(Ia,f),hp.remove(y)},0)}}},[l,c,f,y]);const S=x.useCallback(m=>{if(!n&&!r||y.paused)return;const w=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,d=document.activeElement;if(w&&d){const p=m.currentTarget,[v,b]=IS(p);v&&b?!m.shiftKey&&d===b?(m.preventDefault(),n&&_n(v,{select:!0})):m.shiftKey&&d===v&&(m.preventDefault(),n&&_n(b,{select:!0})):d===p&&m.preventDefault()}},[n,r,y.paused]);return g.jsx(Ce.div,{tabIndex:-1,...i,ref:h,onKeyDown:S})});pd.displayName=MS;function AS(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(_n(r,{select:t}),document.activeElement!==n)return}function IS(e){const t=Kg(e),n=pp(t,e),r=pp(t.reverse(),e);return[n,r]}function Kg(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function pp(e,t){for(const n of e)if(!DS(n,{upTo:t}))return n}function DS(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function LS(e){return e instanceof HTMLInputElement&&"select"in e}function _n(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&LS(e)&&t&&e.select()}}var hp=FS();function FS(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=mp(e,t),e.unshift(t)},remove(t){var n;e=mp(e,t),(n=e[0])==null||n.resume()}}}function mp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function zS(e){return e.filter(t=>t.tagName!=="A")}var Ke=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},BS=lh[" useId ".trim().toString()]||(()=>{}),US=0;function Ql(e){const[t,n]=x.useState(BS());return Ke(()=>{n(r=>r??String(US++))},[e]),e||(t?`radix-${t}`:"")}const HS=["top","right","bottom","left"],or=Math.min,pt=Math.max,bl=Math.round,ki=Math.floor,rn=e=>({x:e,y:e}),VS={left:"right",right:"left",bottom:"top",top:"bottom"},$S={start:"end",end:"start"};function Zu(e,t,n){return pt(e,or(t,n))}function Cn(e,t){return typeof e=="function"?e(t):e}function En(e){return e.split("-")[0]}function Yo(e){return e.split("-")[1]}function hd(e){return e==="x"?"y":"x"}function md(e){return e==="y"?"height":"width"}const WS=new Set(["top","bottom"]);function en(e){return WS.has(En(e))?"y":"x"}function gd(e){return hd(en(e))}function QS(e,t,n){n===void 0&&(n=!1);const r=Yo(e),o=gd(e),s=md(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Cl(i)),[i,Cl(i)]}function KS(e){const t=Cl(e);return[Ju(e),t,Ju(t)]}function Ju(e){return e.replace(/start|end/g,t=>$S[t])}const gp=["left","right"],vp=["right","left"],YS=["top","bottom"],qS=["bottom","top"];function GS(e,t,n){switch(e){case"top":case"bottom":return n?t?vp:gp:t?gp:vp;case"left":case"right":return t?YS:qS;default:return[]}}function XS(e,t,n,r){const o=Yo(e);let s=GS(En(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Ju)))),s}function Cl(e){return e.replace(/left|right|bottom|top/g,t=>VS[t])}function ZS(e){return{top:0,right:0,bottom:0,left:0,...e}}function Yg(e){return typeof e!="number"?ZS(e):{top:e,right:e,bottom:e,left:e}}function El(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function yp(e,t,n){let{reference:r,floating:o}=e;const s=en(t),i=gd(t),l=md(i),a=En(t),c=s==="y",f=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,h=r[l]/2-o[l]/2;let y;switch(a){case"top":y={x:f,y:r.y-o.height};break;case"bottom":y={x:f,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:u};break;case"left":y={x:r.x-o.width,y:u};break;default:y={x:r.x,y:r.y}}switch(Yo(t)){case"start":y[i]-=h*(n&&c?-1:1);break;case"end":y[i]+=h*(n&&c?-1:1);break}return y}const JS=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,l=s.filter(Boolean),a=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:u}=yp(c,r,a),h=r,y={},S=0;for(let m=0;m<l.length;m++){const{name:w,fn:d}=l[m],{x:p,y:v,data:b,reset:E}=await d({x:f,y:u,initialPlacement:r,placement:h,strategy:o,middlewareData:y,rects:c,platform:i,elements:{reference:e,floating:t}});f=p??f,u=v??u,y={...y,[w]:{...y[w],...b}},E&&S<=50&&(S++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(c=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:f,y:u}=yp(c,h,a)),m=-1)}return{x:f,y:u,placement:h,strategy:o,middlewareData:y}};async function Us(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:l,strategy:a}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:h=!1,padding:y=0}=Cn(t,e),S=Yg(y),w=l[h?u==="floating"?"reference":"floating":u],d=El(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:c,rootBoundary:f,strategy:a})),p=u==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),b=await(s.isElement==null?void 0:s.isElement(v))?await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1}:{x:1,y:1},E=El(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:p,offsetParent:v,strategy:a}):p);return{top:(d.top-E.top+S.top)/b.y,bottom:(E.bottom-d.bottom+S.bottom)/b.y,left:(d.left-E.left+S.left)/b.x,right:(E.right-d.right+S.right)/b.x}}const eb=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:l,middlewareData:a}=t,{element:c,padding:f=0}=Cn(e,t)||{};if(c==null)return{};const u=Yg(f),h={x:n,y:r},y=gd(o),S=md(y),m=await i.getDimensions(c),w=y==="y",d=w?"top":"left",p=w?"bottom":"right",v=w?"clientHeight":"clientWidth",b=s.reference[S]+s.reference[y]-h[y]-s.floating[S],E=h[y]-s.reference[y],k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let N=k?k[v]:0;(!N||!await(i.isElement==null?void 0:i.isElement(k)))&&(N=l.floating[v]||s.floating[S]);const T=b/2-E/2,O=N/2-m[S]/2-1,P=or(u[d],O),D=or(u[p],O),j=P,B=N-m[S]-D,U=N/2-m[S]/2+T,te=Zu(j,U,B),I=!a.arrow&&Yo(o)!=null&&U!==te&&s.reference[S]/2-(U<j?P:D)-m[S]/2<0,H=I?U<j?U-j:U-B:0;return{[y]:h[y]+H,data:{[y]:te,centerOffset:U-te-H,...I&&{alignmentOffset:H}},reset:I}}}),tb=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:l,platform:a,elements:c}=t,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:m=!0,...w}=Cn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const d=En(o),p=en(l),v=En(l)===l,b=await(a.isRTL==null?void 0:a.isRTL(c.floating)),E=h||(v||!m?[Cl(l)]:KS(l)),k=S!=="none";!h&&k&&E.push(...XS(l,m,S,b));const N=[l,...E],T=await Us(t,w),O=[];let P=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&O.push(T[d]),u){const U=QS(o,i,b);O.push(T[U[0]],T[U[1]])}if(P=[...P,{placement:o,overflows:O}],!O.every(U=>U<=0)){var D,j;const U=(((D=s.flip)==null?void 0:D.index)||0)+1,te=N[U];if(te&&(!(u==="alignment"?p!==en(te):!1)||P.every(R=>en(R.placement)===p?R.overflows[0]>0:!0)))return{data:{index:U,overflows:P},reset:{placement:te}};let I=(j=P.filter(H=>H.overflows[0]<=0).sort((H,R)=>H.overflows[1]-R.overflows[1])[0])==null?void 0:j.placement;if(!I)switch(y){case"bestFit":{var B;const H=(B=P.filter(R=>{if(k){const A=en(R.placement);return A===p||A==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(A=>A>0).reduce((A,F)=>A+F,0)]).sort((R,A)=>R[1]-A[1])[0])==null?void 0:B[0];H&&(I=H);break}case"initialPlacement":I=l;break}if(o!==I)return{reset:{placement:I}}}return{}}}};function xp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function wp(e){return HS.some(t=>e[t]>=0)}const nb=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Cn(e,t);switch(r){case"referenceHidden":{const s=await Us(t,{...o,elementContext:"reference"}),i=xp(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:wp(i)}}}case"escaped":{const s=await Us(t,{...o,altBoundary:!0}),i=xp(s,n.floating);return{data:{escapedOffsets:i,escaped:wp(i)}}}default:return{}}}}},qg=new Set(["left","top"]);async function rb(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=En(n),l=Yo(n),a=en(n)==="y",c=qg.has(i)?-1:1,f=s&&a?-1:1,u=Cn(t,e);let{mainAxis:h,crossAxis:y,alignmentAxis:S}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&typeof S=="number"&&(y=l==="end"?S*-1:S),a?{x:y*f,y:h*c}:{x:h*c,y:y*f}}const ob=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:l}=t,a=await rb(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:s+a.y,data:{...a,placement:i}}}}},sb=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:w=>{let{x:d,y:p}=w;return{x:d,y:p}}},...a}=Cn(e,t),c={x:n,y:r},f=await Us(t,a),u=en(En(o)),h=hd(u);let y=c[h],S=c[u];if(s){const w=h==="y"?"top":"left",d=h==="y"?"bottom":"right",p=y+f[w],v=y-f[d];y=Zu(p,y,v)}if(i){const w=u==="y"?"top":"left",d=u==="y"?"bottom":"right",p=S+f[w],v=S-f[d];S=Zu(p,S,v)}const m=l.fn({...t,[h]:y,[u]:S});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[h]:s,[u]:i}}}}}},ib=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:l=0,mainAxis:a=!0,crossAxis:c=!0}=Cn(e,t),f={x:n,y:r},u=en(o),h=hd(u);let y=f[h],S=f[u];const m=Cn(l,t),w=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(a){const v=h==="y"?"height":"width",b=s.reference[h]-s.floating[v]+w.mainAxis,E=s.reference[h]+s.reference[v]-w.mainAxis;y<b?y=b:y>E&&(y=E)}if(c){var d,p;const v=h==="y"?"width":"height",b=qg.has(En(o)),E=s.reference[u]-s.floating[v]+(b&&((d=i.offset)==null?void 0:d[u])||0)+(b?0:w.crossAxis),k=s.reference[u]+s.reference[v]+(b?0:((p=i.offset)==null?void 0:p[u])||0)-(b?w.crossAxis:0);S<E?S=E:S>k&&(S=k)}return{[h]:y,[u]:S}}}},lb=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:l}=t,{apply:a=()=>{},...c}=Cn(e,t),f=await Us(t,c),u=En(o),h=Yo(o),y=en(o)==="y",{width:S,height:m}=s.floating;let w,d;u==="top"||u==="bottom"?(w=u,d=h===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(d=u,w=h==="end"?"top":"bottom");const p=m-f.top-f.bottom,v=S-f.left-f.right,b=or(m-f[w],p),E=or(S-f[d],v),k=!t.middlewareData.shift;let N=b,T=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(N=p),k&&!h){const P=pt(f.left,0),D=pt(f.right,0),j=pt(f.top,0),B=pt(f.bottom,0);y?T=S-2*(P!==0||D!==0?P+D:pt(f.left,f.right)):N=m-2*(j!==0||B!==0?j+B:pt(f.top,f.bottom))}await a({...t,availableWidth:T,availableHeight:N});const O=await i.getDimensions(l.floating);return S!==O.width||m!==O.height?{reset:{rects:!0}}:{}}}};function Kl(){return typeof window<"u"}function qo(e){return Gg(e)?(e.nodeName||"").toLowerCase():"#document"}function gt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function sn(e){var t;return(t=(Gg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Gg(e){return Kl()?e instanceof Node||e instanceof gt(e).Node:!1}function Vt(e){return Kl()?e instanceof Element||e instanceof gt(e).Element:!1}function on(e){return Kl()?e instanceof HTMLElement||e instanceof gt(e).HTMLElement:!1}function Sp(e){return!Kl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof gt(e).ShadowRoot}const ab=new Set(["inline","contents"]);function ei(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=$t(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!ab.has(o)}const ub=new Set(["table","td","th"]);function cb(e){return ub.has(qo(e))}const db=[":popover-open",":modal"];function Yl(e){return db.some(t=>{try{return e.matches(t)}catch{return!1}})}const fb=["transform","translate","scale","rotate","perspective"],pb=["transform","translate","scale","rotate","perspective","filter"],hb=["paint","layout","strict","content"];function vd(e){const t=yd(),n=Vt(e)?$t(e):e;return fb.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||pb.some(r=>(n.willChange||"").includes(r))||hb.some(r=>(n.contain||"").includes(r))}function mb(e){let t=sr(e);for(;on(t)&&!zo(t);){if(vd(t))return t;if(Yl(t))return null;t=sr(t)}return null}function yd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const gb=new Set(["html","body","#document"]);function zo(e){return gb.has(qo(e))}function $t(e){return gt(e).getComputedStyle(e)}function ql(e){return Vt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function sr(e){if(qo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Sp(e)&&e.host||sn(e);return Sp(t)?t.host:t}function Xg(e){const t=sr(e);return zo(t)?e.ownerDocument?e.ownerDocument.body:e.body:on(t)&&ei(t)?t:Xg(t)}function Hs(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Xg(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=gt(o);if(s){const l=ec(i);return t.concat(i,i.visualViewport||[],ei(o)?o:[],l&&n?Hs(l):[])}return t.concat(o,Hs(o,[],n))}function ec(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Zg(e){const t=$t(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=on(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=bl(n)!==s||bl(r)!==i;return l&&(n=s,r=i),{width:n,height:r,$:l}}function xd(e){return Vt(e)?e:e.contextElement}function yo(e){const t=xd(e);if(!on(t))return rn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Zg(t);let i=(s?bl(n.width):n.width)/r,l=(s?bl(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const vb=rn(0);function Jg(e){const t=gt(e);return!yd()||!t.visualViewport?vb:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function yb(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==gt(e)?!1:t}function Br(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=xd(e);let i=rn(1);t&&(r?Vt(r)&&(i=yo(r)):i=yo(e));const l=yb(s,n,r)?Jg(s):rn(0);let a=(o.left+l.x)/i.x,c=(o.top+l.y)/i.y,f=o.width/i.x,u=o.height/i.y;if(s){const h=gt(s),y=r&&Vt(r)?gt(r):r;let S=h,m=ec(S);for(;m&&r&&y!==S;){const w=yo(m),d=m.getBoundingClientRect(),p=$t(m),v=d.left+(m.clientLeft+parseFloat(p.paddingLeft))*w.x,b=d.top+(m.clientTop+parseFloat(p.paddingTop))*w.y;a*=w.x,c*=w.y,f*=w.x,u*=w.y,a+=v,c+=b,S=gt(m),m=ec(S)}}return El({width:f,height:u,x:a,y:c})}function Gl(e,t){const n=ql(e).scrollLeft;return t?t.left+n:Br(sn(e)).left+n}function ev(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Gl(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function xb(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=sn(r),l=t?Yl(t.floating):!1;if(r===i||l&&s)return n;let a={scrollLeft:0,scrollTop:0},c=rn(1);const f=rn(0),u=on(r);if((u||!u&&!s)&&((qo(r)!=="body"||ei(i))&&(a=ql(r)),on(r))){const y=Br(r);c=yo(r),f.x=y.x+r.clientLeft,f.y=y.y+r.clientTop}const h=i&&!u&&!s?ev(i,a):rn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+f.x+h.x,y:n.y*c.y-a.scrollTop*c.y+f.y+h.y}}function wb(e){return Array.from(e.getClientRects())}function Sb(e){const t=sn(e),n=ql(e),r=e.ownerDocument.body,o=pt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=pt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Gl(e);const l=-n.scrollTop;return $t(r).direction==="rtl"&&(i+=pt(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:l}}const bp=25;function bb(e,t){const n=gt(e),r=sn(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,l=0,a=0;if(o){s=o.width,i=o.height;const f=yd();(!f||f&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}const c=Gl(r);if(c<=0){const f=r.ownerDocument,u=f.body,h=getComputedStyle(u),y=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,S=Math.abs(r.clientWidth-u.clientWidth-y);S<=bp&&(s-=S)}else c<=bp&&(s+=c);return{width:s,height:i,x:l,y:a}}const Cb=new Set(["absolute","fixed"]);function Eb(e,t){const n=Br(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=on(e)?yo(e):rn(1),i=e.clientWidth*s.x,l=e.clientHeight*s.y,a=o*s.x,c=r*s.y;return{width:i,height:l,x:a,y:c}}function Cp(e,t,n){let r;if(t==="viewport")r=bb(e,n);else if(t==="document")r=Sb(sn(e));else if(Vt(t))r=Eb(t,n);else{const o=Jg(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return El(r)}function tv(e,t){const n=sr(e);return n===t||!Vt(n)||zo(n)?!1:$t(n).position==="fixed"||tv(n,t)}function kb(e,t){const n=t.get(e);if(n)return n;let r=Hs(e,[],!1).filter(l=>Vt(l)&&qo(l)!=="body"),o=null;const s=$t(e).position==="fixed";let i=s?sr(e):e;for(;Vt(i)&&!zo(i);){const l=$t(i),a=vd(i);!a&&l.position==="fixed"&&(o=null),(s?!a&&!o:!a&&l.position==="static"&&!!o&&Cb.has(o.position)||ei(i)&&!a&&tv(e,i))?r=r.filter(f=>f!==i):o=l,i=sr(i)}return t.set(e,r),r}function Nb(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Yl(t)?[]:kb(t,this._c):[].concat(n),r],l=i[0],a=i.reduce((c,f)=>{const u=Cp(t,f,o);return c.top=pt(u.top,c.top),c.right=or(u.right,c.right),c.bottom=or(u.bottom,c.bottom),c.left=pt(u.left,c.left),c},Cp(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Pb(e){const{width:t,height:n}=Zg(e);return{width:t,height:n}}function Rb(e,t,n){const r=on(t),o=sn(t),s=n==="fixed",i=Br(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const a=rn(0);function c(){a.x=Gl(o)}if(r||!r&&!s)if((qo(t)!=="body"||ei(o))&&(l=ql(t)),r){const y=Br(t,!0,s,t);a.x=y.x+t.clientLeft,a.y=y.y+t.clientTop}else o&&c();s&&!r&&o&&c();const f=o&&!r&&!s?ev(o,l):rn(0),u=i.left+l.scrollLeft-a.x-f.x,h=i.top+l.scrollTop-a.y-f.y;return{x:u,y:h,width:i.width,height:i.height}}function Da(e){return $t(e).position==="static"}function Ep(e,t){if(!on(e)||$t(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return sn(e)===n&&(n=n.ownerDocument.body),n}function nv(e,t){const n=gt(e);if(Yl(e))return n;if(!on(e)){let o=sr(e);for(;o&&!zo(o);){if(Vt(o)&&!Da(o))return o;o=sr(o)}return n}let r=Ep(e,t);for(;r&&cb(r)&&Da(r);)r=Ep(r,t);return r&&zo(r)&&Da(r)&&!vd(r)?n:r||mb(e)||n}const Tb=async function(e){const t=this.getOffsetParent||nv,n=this.getDimensions,r=await n(e.floating);return{reference:Rb(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ob(e){return $t(e).direction==="rtl"}const _b={convertOffsetParentRelativeRectToViewportRelativeRect:xb,getDocumentElement:sn,getClippingRect:Nb,getOffsetParent:nv,getElementRects:Tb,getClientRects:wb,getDimensions:Pb,getScale:yo,isElement:Vt,isRTL:Ob};function rv(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function jb(e,t){let n=null,r;const o=sn(e);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function i(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),s();const c=e.getBoundingClientRect(),{left:f,top:u,width:h,height:y}=c;if(l||t(),!h||!y)return;const S=ki(u),m=ki(o.clientWidth-(f+h)),w=ki(o.clientHeight-(u+y)),d=ki(f),v={rootMargin:-S+"px "+-m+"px "+-w+"px "+-d+"px",threshold:pt(0,or(1,a))||1};let b=!0;function E(k){const N=k[0].intersectionRatio;if(N!==a){if(!b)return i();N?i(!1,N):r=setTimeout(()=>{i(!1,1e-7)},1e3)}N===1&&!rv(c,e.getBoundingClientRect())&&i(),b=!1}try{n=new IntersectionObserver(E,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,v)}n.observe(e)}return i(!0),s}function Mb(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,c=xd(e),f=o||s?[...c?Hs(c):[],...Hs(t)]:[];f.forEach(d=>{o&&d.addEventListener("scroll",n,{passive:!0}),s&&d.addEventListener("resize",n)});const u=c&&l?jb(c,n):null;let h=-1,y=null;i&&(y=new ResizeObserver(d=>{let[p]=d;p&&p.target===c&&y&&(y.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var v;(v=y)==null||v.observe(t)})),n()}),c&&!a&&y.observe(c),y.observe(t));let S,m=a?Br(e):null;a&&w();function w(){const d=Br(e);m&&!rv(m,d)&&n(),m=d,S=requestAnimationFrame(w)}return n(),()=>{var d;f.forEach(p=>{o&&p.removeEventListener("scroll",n),s&&p.removeEventListener("resize",n)}),u==null||u(),(d=y)==null||d.disconnect(),y=null,a&&cancelAnimationFrame(S)}}const Ab=ob,Ib=sb,Db=tb,Lb=lb,Fb=nb,kp=eb,zb=ib,Bb=(e,t,n)=>{const r=new Map,o={platform:_b,...n},s={...o.platform,_c:r};return JS(e,t,{...o,platform:s})};var Ub=typeof document<"u",Hb=function(){},Qi=Ub?x.useLayoutEffect:Hb;function kl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!kl(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!kl(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function ov(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Np(e,t){const n=ov(e);return Math.round(t*n)/n}function La(e){const t=x.useRef(e);return Qi(()=>{t.current=e}),t}function Vb(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:l=!0,whileElementsMounted:a,open:c}=e,[f,u]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,y]=x.useState(r);kl(h,r)||y(r);const[S,m]=x.useState(null),[w,d]=x.useState(null),p=x.useCallback(R=>{R!==k.current&&(k.current=R,m(R))},[]),v=x.useCallback(R=>{R!==N.current&&(N.current=R,d(R))},[]),b=s||S,E=i||w,k=x.useRef(null),N=x.useRef(null),T=x.useRef(f),O=a!=null,P=La(a),D=La(o),j=La(c),B=x.useCallback(()=>{if(!k.current||!N.current)return;const R={placement:t,strategy:n,middleware:h};D.current&&(R.platform=D.current),Bb(k.current,N.current,R).then(A=>{const F={...A,isPositioned:j.current!==!1};U.current&&!kl(T.current,F)&&(T.current=F,$o.flushSync(()=>{u(F)}))})},[h,t,n,D,j]);Qi(()=>{c===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,u(R=>({...R,isPositioned:!1})))},[c]);const U=x.useRef(!1);Qi(()=>(U.current=!0,()=>{U.current=!1}),[]),Qi(()=>{if(b&&(k.current=b),E&&(N.current=E),b&&E){if(P.current)return P.current(b,E,B);B()}},[b,E,B,P,O]);const te=x.useMemo(()=>({reference:k,floating:N,setReference:p,setFloating:v}),[p,v]),I=x.useMemo(()=>({reference:b,floating:E}),[b,E]),H=x.useMemo(()=>{const R={position:n,left:0,top:0};if(!I.floating)return R;const A=Np(I.floating,f.x),F=Np(I.floating,f.y);return l?{...R,transform:"translate("+A+"px, "+F+"px)",...ov(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:A,top:F}},[n,l,I.floating,f.x,f.y]);return x.useMemo(()=>({...f,update:B,refs:te,elements:I,floatingStyles:H}),[f,B,te,I,H])}const $b=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?kp({element:r.current,padding:o}).fn(n):{}:r?kp({element:r,padding:o}).fn(n):{}}}},Wb=(e,t)=>({...Ab(e),options:[e,t]}),Qb=(e,t)=>({...Ib(e),options:[e,t]}),Kb=(e,t)=>({...zb(e),options:[e,t]}),Yb=(e,t)=>({...Db(e),options:[e,t]}),qb=(e,t)=>({...Lb(e),options:[e,t]}),Gb=(e,t)=>({...Fb(e),options:[e,t]}),Xb=(e,t)=>({...$b(e),options:[e,t]});var Zb="Arrow",sv=x.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return g.jsx(Ce.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});sv.displayName=Zb;var Jb=sv;function eC(e){const[t,n]=x.useState(void 0);return Ke(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,l;if("borderBoxSize"in s){const a=s.borderBoxSize,c=Array.isArray(a)?a[0]:a;i=c.inlineSize,l=c.blockSize}else i=e.offsetWidth,l=e.offsetHeight;n({width:i,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var wd="Popper",[iv,Xl]=Wl(wd),[tC,lv]=iv(wd),av=e=>{const{__scopePopper:t,children:n}=e,[r,o]=x.useState(null);return g.jsx(tC,{scope:t,anchor:r,onAnchorChange:o,children:n})};av.displayName=wd;var uv="PopperAnchor",cv=x.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=lv(uv,n),i=x.useRef(null),l=Re(t,i),a=x.useRef(null);return x.useEffect(()=>{const c=a.current;a.current=(r==null?void 0:r.current)||i.current,c!==a.current&&s.onAnchorChange(a.current)}),r?null:g.jsx(Ce.div,{...o,ref:l})});cv.displayName=uv;var Sd="PopperContent",[nC,rC]=iv(Sd),dv=x.forwardRef((e,t)=>{var V,Q,he,ie,re,J;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:c=[],collisionPadding:f=0,sticky:u="partial",hideWhenDetached:h=!1,updatePositionStrategy:y="optimized",onPlaced:S,...m}=e,w=lv(Sd,n),[d,p]=x.useState(null),v=Re(t,je=>p(je)),[b,E]=x.useState(null),k=eC(b),N=(k==null?void 0:k.width)??0,T=(k==null?void 0:k.height)??0,O=r+(s!=="center"?"-"+s:""),P=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},D=Array.isArray(c)?c:[c],j=D.length>0,B={padding:P,boundary:D.filter(sC),altBoundary:j},{refs:U,floatingStyles:te,placement:I,isPositioned:H,middlewareData:R}=Vb({strategy:"fixed",placement:O,whileElementsMounted:(...je)=>Mb(...je,{animationFrame:y==="always"}),elements:{reference:w.anchor},middleware:[Wb({mainAxis:o+T,alignmentAxis:i}),a&&Qb({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?Kb():void 0,...B}),a&&Yb({...B}),qb({...B,apply:({elements:je,rects:Le,availableWidth:Wt,availableHeight:Ot})=>{const{width:X,height:tt}=Le.reference,fe=je.floating.style;fe.setProperty("--radix-popper-available-width",`${Wt}px`),fe.setProperty("--radix-popper-available-height",`${Ot}px`),fe.setProperty("--radix-popper-anchor-width",`${X}px`),fe.setProperty("--radix-popper-anchor-height",`${tt}px`)}}),b&&Xb({element:b,padding:l}),iC({arrowWidth:N,arrowHeight:T}),h&&Gb({strategy:"referenceHidden",...B})]}),[A,F]=hv(I),W=zr(S);Ke(()=>{H&&(W==null||W())},[H,W]);const ae=(V=R.arrow)==null?void 0:V.x,K=(Q=R.arrow)==null?void 0:Q.y,G=((he=R.arrow)==null?void 0:he.centerOffset)!==0,[oe,ue]=x.useState();return Ke(()=>{d&&ue(window.getComputedStyle(d).zIndex)},[d]),g.jsx("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...te,transform:H?te.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[(ie=R.transformOrigin)==null?void 0:ie.x,(re=R.transformOrigin)==null?void 0:re.y].join(" "),...((J=R.hide)==null?void 0:J.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:g.jsx(nC,{scope:n,placedSide:A,onArrowChange:E,arrowX:ae,arrowY:K,shouldHideArrow:G,children:g.jsx(Ce.div,{"data-side":A,"data-align":F,...m,ref:v,style:{...m.style,animation:H?void 0:"none"}})})})});dv.displayName=Sd;var fv="PopperArrow",oC={top:"bottom",right:"left",bottom:"top",left:"right"},pv=x.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=rC(fv,r),i=oC[s.placedSide];return g.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:g.jsx(Jb,{...o,ref:n,style:{...o.style,display:"block"}})})});pv.displayName=fv;function sC(e){return e!==null}var iC=e=>({name:"transformOrigin",options:e,fn(t){var w,d,p;const{placement:n,rects:r,middlewareData:o}=t,i=((w=o.arrow)==null?void 0:w.centerOffset)!==0,l=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[c,f]=hv(n),u={start:"0%",center:"50%",end:"100%"}[f],h=(((d=o.arrow)==null?void 0:d.x)??0)+l/2,y=(((p=o.arrow)==null?void 0:p.y)??0)+a/2;let S="",m="";return c==="bottom"?(S=i?u:`${h}px`,m=`${-a}px`):c==="top"?(S=i?u:`${h}px`,m=`${r.floating.height+a}px`):c==="right"?(S=`${-a}px`,m=i?u:`${y}px`):c==="left"&&(S=`${r.floating.width+a}px`,m=i?u:`${y}px`),{data:{x:S,y:m}}}});function hv(e){const[t,n="center"]=e.split("-");return[t,n]}var mv=av,bd=cv,gv=dv,vv=pv,lC="Portal",Cd=x.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,s]=x.useState(!1);Ke(()=>s(!0),[]);const i=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return i?cg.createPortal(g.jsx(Ce.div,{...r,ref:t}),i):null});Cd.displayName=lC;var aC=lh[" useInsertionEffect ".trim().toString()]||Ke;function tc({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=uC({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:o;{const f=x.useRef(e!==void 0);x.useEffect(()=>{const u=f.current;u!==l&&console.warn(`${r} is changing from ${u?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=l},[l,r])}const c=x.useCallback(f=>{var u;if(l){const h=cC(f)?f(e):f;h!==e&&((u=i.current)==null||u.call(i,h))}else s(f)},[l,e,s,i]);return[a,c]}function uC({defaultProp:e,onChange:t}){const[n,r]=x.useState(e),o=x.useRef(n),s=x.useRef(t);return aC(()=>{s.current=t},[t]),x.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function cC(e){return typeof e=="function"}function dC(e){const t=x.useRef({value:e,previous:e});return x.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var yv=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),fC="VisuallyHidden",pC=x.forwardRef((e,t)=>g.jsx(Ce.span,{...e,ref:t,style:{...yv,...e.style}}));pC.displayName=fC;var hC=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},qr=new WeakMap,Ni=new WeakMap,Pi={},Fa=0,xv=function(e){return e&&(e.host||xv(e.parentNode))},mC=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=xv(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},gC=function(e,t,n,r){var o=mC(t,Array.isArray(e)?e:[e]);Pi[n]||(Pi[n]=new WeakMap);var s=Pi[n],i=[],l=new Set,a=new Set(o),c=function(u){!u||l.has(u)||(l.add(u),c(u.parentNode))};o.forEach(c);var f=function(u){!u||a.has(u)||Array.prototype.forEach.call(u.children,function(h){if(l.has(h))f(h);else try{var y=h.getAttribute(r),S=y!==null&&y!=="false",m=(qr.get(h)||0)+1,w=(s.get(h)||0)+1;qr.set(h,m),s.set(h,w),i.push(h),m===1&&S&&Ni.set(h,!0),w===1&&h.setAttribute(n,"true"),S||h.setAttribute(r,"true")}catch(d){console.error("aria-hidden: cannot operate on ",h,d)}})};return f(t),l.clear(),Fa++,function(){i.forEach(function(u){var h=qr.get(u)-1,y=s.get(u)-1;qr.set(u,h),s.set(u,y),h||(Ni.has(u)||u.removeAttribute(r),Ni.delete(u)),y||u.removeAttribute(n)}),Fa--,Fa||(qr=new WeakMap,qr=new WeakMap,Ni=new WeakMap,Pi={})}},wv=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=hC(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),gC(r,o,n,"aria-hidden")):function(){return null}},Jt=function(){return Jt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Jt.apply(this,arguments)};function Sv(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function vC(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var Ki="right-scroll-bar-position",Yi="width-before-scroll-bar",yC="with-scroll-bars-hidden",xC="--removed-body-scroll-bar-size";function za(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function wC(e,t){var n=x.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var SC=typeof window<"u"?x.useLayoutEffect:x.useEffect,Pp=new WeakMap;function bC(e,t){var n=wC(null,function(r){return e.forEach(function(o){return za(o,r)})});return SC(function(){var r=Pp.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(l){s.has(l)||za(l,null)}),s.forEach(function(l){o.has(l)||za(l,i)})}Pp.set(n,e)},[e]),n}function CC(e){return e}function EC(e,t){t===void 0&&(t=CC);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(l){return l!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(l){return s(l)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var l=n;n=[],l.forEach(s),i=n}var a=function(){var f=i;i=[],f.forEach(s)},c=function(){return Promise.resolve().then(a)};c(),n={push:function(f){i.push(f),c()},filter:function(f){return i=i.filter(f),n}}}};return o}function kC(e){e===void 0&&(e={});var t=EC(null);return t.options=Jt({async:!0,ssr:!1},e),t}var bv=function(e){var t=e.sideCar,n=Sv(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return x.createElement(r,Jt({},n))};bv.isSideCarExport=!0;function NC(e,t){return e.useMedium(t),bv}var Cv=kC(),Ba=function(){},Zl=x.forwardRef(function(e,t){var n=x.useRef(null),r=x.useState({onScrollCapture:Ba,onWheelCapture:Ba,onTouchMoveCapture:Ba}),o=r[0],s=r[1],i=e.forwardProps,l=e.children,a=e.className,c=e.removeScrollBar,f=e.enabled,u=e.shards,h=e.sideCar,y=e.noRelative,S=e.noIsolation,m=e.inert,w=e.allowPinchZoom,d=e.as,p=d===void 0?"div":d,v=e.gapMode,b=Sv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=h,k=bC([n,t]),N=Jt(Jt({},b),o);return x.createElement(x.Fragment,null,f&&x.createElement(E,{sideCar:Cv,removeScrollBar:c,shards:u,noRelative:y,noIsolation:S,inert:m,setCallbacks:s,allowPinchZoom:!!w,lockRef:n,gapMode:v}),i?x.cloneElement(x.Children.only(l),Jt(Jt({},N),{ref:k})):x.createElement(p,Jt({},N,{className:a,ref:k}),l))});Zl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Zl.classNames={fullWidth:Yi,zeroRight:Ki};var PC=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function RC(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=PC();return t&&e.setAttribute("nonce",t),e}function TC(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function OC(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var _C=function(){var e=0,t=null;return{add:function(n){e==0&&(t=RC())&&(TC(t,n),OC(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},jC=function(){var e=_C();return function(t,n){x.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ev=function(){var e=jC(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},MC={left:0,top:0,right:0,gap:0},Ua=function(e){return parseInt(e||"",10)||0},AC=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ua(n),Ua(r),Ua(o)]},IC=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return MC;var t=AC(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},DC=Ev(),xo="data-scroll-locked",LC=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,l=e.gap;return n===void 0&&(n="margin"),`
126
+ .`.concat(yC,` {
127
+ overflow: hidden `).concat(r,`;
128
+ padding-right: `).concat(l,"px ").concat(r,`;
129
+ }
130
+ body[`).concat(xo,`] {
131
+ overflow: hidden `).concat(r,`;
132
+ overscroll-behavior: contain;
133
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
134
+ padding-left: `.concat(o,`px;
135
+ padding-top: `).concat(s,`px;
136
+ padding-right: `).concat(i,`px;
137
+ margin-left:0;
138
+ margin-top:0;
139
+ margin-right: `).concat(l,"px ").concat(r,`;
140
+ `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),`
141
+ }
142
+
143
+ .`).concat(Ki,` {
144
+ right: `).concat(l,"px ").concat(r,`;
145
+ }
146
+
147
+ .`).concat(Yi,` {
148
+ margin-right: `).concat(l,"px ").concat(r,`;
149
+ }
150
+
151
+ .`).concat(Ki," .").concat(Ki,` {
152
+ right: 0 `).concat(r,`;
153
+ }
154
+
155
+ .`).concat(Yi," .").concat(Yi,` {
156
+ margin-right: 0 `).concat(r,`;
157
+ }
158
+
159
+ body[`).concat(xo,`] {
160
+ `).concat(xC,": ").concat(l,`px;
161
+ }
162
+ `)},Rp=function(){var e=parseInt(document.body.getAttribute(xo)||"0",10);return isFinite(e)?e:0},FC=function(){x.useEffect(function(){return document.body.setAttribute(xo,(Rp()+1).toString()),function(){var e=Rp()-1;e<=0?document.body.removeAttribute(xo):document.body.setAttribute(xo,e.toString())}},[])},zC=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;FC();var s=x.useMemo(function(){return IC(o)},[o]);return x.createElement(DC,{styles:LC(s,!t,o,n?"":"!important")})},nc=!1;if(typeof window<"u")try{var Ri=Object.defineProperty({},"passive",{get:function(){return nc=!0,!0}});window.addEventListener("test",Ri,Ri),window.removeEventListener("test",Ri,Ri)}catch{nc=!1}var Gr=nc?{passive:!1}:!1,BC=function(e){return e.tagName==="TEXTAREA"},kv=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!BC(e)&&n[t]==="visible")},UC=function(e){return kv(e,"overflowY")},HC=function(e){return kv(e,"overflowX")},Tp=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Nv(e,r);if(o){var s=Pv(e,r),i=s[1],l=s[2];if(i>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},VC=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},$C=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Nv=function(e,t){return e==="v"?UC(t):HC(t)},Pv=function(e,t){return e==="v"?VC(t):$C(t)},WC=function(e,t){return e==="h"&&t==="rtl"?-1:1},QC=function(e,t,n,r,o){var s=WC(e,window.getComputedStyle(t).direction),i=s*r,l=n.target,a=t.contains(l),c=!1,f=i>0,u=0,h=0;do{if(!l)break;var y=Pv(e,l),S=y[0],m=y[1],w=y[2],d=m-w-s*S;(S||d)&&Nv(e,l)&&(u+=d,h+=S);var p=l.parentNode;l=p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE?p.host:p}while(!a&&l!==document.body||a&&(t.contains(l)||t===l));return(f&&Math.abs(u)<1||!f&&Math.abs(h)<1)&&(c=!0),c},Ti=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Op=function(e){return[e.deltaX,e.deltaY]},_p=function(e){return e&&"current"in e?e.current:e},KC=function(e,t){return e[0]===t[0]&&e[1]===t[1]},YC=function(e){return`
163
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
164
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
165
+ `)},qC=0,Xr=[];function GC(e){var t=x.useRef([]),n=x.useRef([0,0]),r=x.useRef(),o=x.useState(qC++)[0],s=x.useState(Ev)[0],i=x.useRef(e);x.useEffect(function(){i.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=vC([e.lockRef.current],(e.shards||[]).map(_p),!0).filter(Boolean);return m.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=x.useCallback(function(m,w){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!i.current.allowPinchZoom;var d=Ti(m),p=n.current,v="deltaX"in m?m.deltaX:p[0]-d[0],b="deltaY"in m?m.deltaY:p[1]-d[1],E,k=m.target,N=Math.abs(v)>Math.abs(b)?"h":"v";if("touches"in m&&N==="h"&&k.type==="range")return!1;var T=window.getSelection(),O=T&&T.anchorNode,P=O?O===k||O.contains(k):!1;if(P)return!1;var D=Tp(N,k);if(!D)return!0;if(D?E=N:(E=N==="v"?"h":"v",D=Tp(N,k)),!D)return!1;if(!r.current&&"changedTouches"in m&&(v||b)&&(r.current=E),!E)return!0;var j=r.current||E;return QC(j,w,m,j==="h"?v:b)},[]),a=x.useCallback(function(m){var w=m;if(!(!Xr.length||Xr[Xr.length-1]!==s)){var d="deltaY"in w?Op(w):Ti(w),p=t.current.filter(function(E){return E.name===w.type&&(E.target===w.target||w.target===E.shadowParent)&&KC(E.delta,d)})[0];if(p&&p.should){w.cancelable&&w.preventDefault();return}if(!p){var v=(i.current.shards||[]).map(_p).filter(Boolean).filter(function(E){return E.contains(w.target)}),b=v.length>0?l(w,v[0]):!i.current.noIsolation;b&&w.cancelable&&w.preventDefault()}}},[]),c=x.useCallback(function(m,w,d,p){var v={name:m,delta:w,target:d,should:p,shadowParent:XC(d)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(b){return b!==v})},1)},[]),f=x.useCallback(function(m){n.current=Ti(m),r.current=void 0},[]),u=x.useCallback(function(m){c(m.type,Op(m),m.target,l(m,e.lockRef.current))},[]),h=x.useCallback(function(m){c(m.type,Ti(m),m.target,l(m,e.lockRef.current))},[]);x.useEffect(function(){return Xr.push(s),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:h}),document.addEventListener("wheel",a,Gr),document.addEventListener("touchmove",a,Gr),document.addEventListener("touchstart",f,Gr),function(){Xr=Xr.filter(function(m){return m!==s}),document.removeEventListener("wheel",a,Gr),document.removeEventListener("touchmove",a,Gr),document.removeEventListener("touchstart",f,Gr)}},[]);var y=e.removeScrollBar,S=e.inert;return x.createElement(x.Fragment,null,S?x.createElement(s,{styles:YC(o)}):null,y?x.createElement(zC,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function XC(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ZC=NC(Cv,GC);var Ed=x.forwardRef(function(e,t){return x.createElement(Zl,Jt({},e,{ref:t,sideCar:ZC}))});Ed.classNames=Zl.classNames;var JC=[" ","Enter","ArrowUp","ArrowDown"],eE=[" ","Enter"],Ur="Select",[Jl,ea,tE]=wS(Ur),[Go]=Wl(Ur,[tE,Xl]),ta=Xl(),[nE,ur]=Go(Ur),[rE,oE]=Go(Ur),Rv=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:i,defaultValue:l,onValueChange:a,dir:c,name:f,autoComplete:u,disabled:h,required:y,form:S}=e,m=ta(t),[w,d]=x.useState(null),[p,v]=x.useState(null),[b,E]=x.useState(!1),k=bS(c),[N,T]=tc({prop:r,defaultProp:o??!1,onChange:s,caller:Ur}),[O,P]=tc({prop:i,defaultProp:l,onChange:a,caller:Ur}),D=x.useRef(null),j=w?S||!!w.closest("form"):!0,[B,U]=x.useState(new Set),te=Array.from(B).map(I=>I.props.value).join(";");return g.jsx(mv,{...m,children:g.jsxs(nE,{required:y,scope:t,trigger:w,onTriggerChange:d,valueNode:p,onValueNodeChange:v,valueNodeHasChildren:b,onValueNodeHasChildrenChange:E,contentId:Ql(),value:O,onValueChange:P,open:N,onOpenChange:T,dir:k,triggerPointerDownPosRef:D,disabled:h,children:[g.jsx(Jl.Provider,{scope:t,children:g.jsx(rE,{scope:e.__scopeSelect,onNativeOptionAdd:x.useCallback(I=>{U(H=>new Set(H).add(I))},[]),onNativeOptionRemove:x.useCallback(I=>{U(H=>{const R=new Set(H);return R.delete(I),R})},[]),children:n})}),j?g.jsxs(Kv,{"aria-hidden":!0,required:y,tabIndex:-1,name:f,autoComplete:u,value:O,onChange:I=>P(I.target.value),disabled:h,form:S,children:[O===void 0?g.jsx("option",{value:""}):null,Array.from(B)]},te):null]})})};Rv.displayName=Ur;var Tv="SelectTrigger",Ov=x.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=ta(n),i=ur(Tv,n),l=i.disabled||r,a=Re(t,i.onTriggerChange),c=ea(n),f=x.useRef("touch"),[u,h,y]=qv(m=>{const w=c().filter(v=>!v.disabled),d=w.find(v=>v.value===i.value),p=Gv(w,m,d);p!==void 0&&i.onValueChange(p.value)}),S=m=>{l||(i.onOpenChange(!0),y()),m&&(i.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return g.jsx(bd,{asChild:!0,...s,children:g.jsx(Ce.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Yv(i.value)?"":void 0,...o,ref:a,onClick:ve(o.onClick,m=>{m.currentTarget.focus(),f.current!=="mouse"&&S(m)}),onPointerDown:ve(o.onPointerDown,m=>{f.current=m.pointerType;const w=m.target;w.hasPointerCapture(m.pointerId)&&w.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(S(m),m.preventDefault())}),onKeyDown:ve(o.onKeyDown,m=>{const w=u.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&h(m.key),!(w&&m.key===" ")&&JC.includes(m.key)&&(S(),m.preventDefault())})})})});Ov.displayName=Tv;var _v="SelectValue",jv=x.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:i="",...l}=e,a=ur(_v,n),{onValueNodeHasChildrenChange:c}=a,f=s!==void 0,u=Re(t,a.onValueNodeChange);return Ke(()=>{c(f)},[c,f]),g.jsx(Ce.span,{...l,ref:u,style:{pointerEvents:"none"},children:Yv(a.value)?g.jsx(g.Fragment,{children:i}):s})});jv.displayName=_v;var sE="SelectIcon",iE=x.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return g.jsx(Ce.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});iE.displayName=sE;var lE="SelectPortal",Mv=e=>g.jsx(Cd,{asChild:!0,...e});Mv.displayName=lE;var Hr="SelectContent",Av=x.forwardRef((e,t)=>{const n=ur(Hr,e.__scopeSelect),[r,o]=x.useState();if(Ke(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?$o.createPortal(g.jsx(Iv,{scope:e.__scopeSelect,children:g.jsx(Jl.Slot,{scope:e.__scopeSelect,children:g.jsx("div",{children:e.children})})}),s):null}return g.jsx(Dv,{...e,ref:t})});Av.displayName=Hr;var At=10,[Iv,cr]=Go(Hr),aE="SelectContentImpl",uE=Bs("SelectContent.RemoveScroll"),Dv=x.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:i,side:l,sideOffset:a,align:c,alignOffset:f,arrowPadding:u,collisionBoundary:h,collisionPadding:y,sticky:S,hideWhenDetached:m,avoidCollisions:w,...d}=e,p=ur(Hr,n),[v,b]=x.useState(null),[E,k]=x.useState(null),N=Re(t,V=>b(V)),[T,O]=x.useState(null),[P,D]=x.useState(null),j=ea(n),[B,U]=x.useState(!1),te=x.useRef(!1);x.useEffect(()=>{if(v)return wv(v)},[v]),Qg();const I=x.useCallback(V=>{const[Q,...he]=j().map(J=>J.ref.current),[ie]=he.slice(-1),re=document.activeElement;for(const J of V)if(J===re||(J==null||J.scrollIntoView({block:"nearest"}),J===Q&&E&&(E.scrollTop=0),J===ie&&E&&(E.scrollTop=E.scrollHeight),J==null||J.focus(),document.activeElement!==re))return},[j,E]),H=x.useCallback(()=>I([T,v]),[I,T,v]);x.useEffect(()=>{B&&H()},[B,H]);const{onOpenChange:R,triggerPointerDownPosRef:A}=p;x.useEffect(()=>{if(v){let V={x:0,y:0};const Q=ie=>{var re,J;V={x:Math.abs(Math.round(ie.pageX)-(((re=A.current)==null?void 0:re.x)??0)),y:Math.abs(Math.round(ie.pageY)-(((J=A.current)==null?void 0:J.y)??0))}},he=ie=>{V.x<=10&&V.y<=10?ie.preventDefault():v.contains(ie.target)||R(!1),document.removeEventListener("pointermove",Q),A.current=null};return A.current!==null&&(document.addEventListener("pointermove",Q),document.addEventListener("pointerup",he,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Q),document.removeEventListener("pointerup",he,{capture:!0})}}},[v,R,A]),x.useEffect(()=>{const V=()=>R(!1);return window.addEventListener("blur",V),window.addEventListener("resize",V),()=>{window.removeEventListener("blur",V),window.removeEventListener("resize",V)}},[R]);const[F,W]=qv(V=>{const Q=j().filter(re=>!re.disabled),he=Q.find(re=>re.ref.current===document.activeElement),ie=Gv(Q,V,he);ie&&setTimeout(()=>ie.ref.current.focus())}),ae=x.useCallback((V,Q,he)=>{const ie=!te.current&&!he;(p.value!==void 0&&p.value===Q||ie)&&(O(V),ie&&(te.current=!0))},[p.value]),K=x.useCallback(()=>v==null?void 0:v.focus(),[v]),G=x.useCallback((V,Q,he)=>{const ie=!te.current&&!he;(p.value!==void 0&&p.value===Q||ie)&&D(V)},[p.value]),oe=r==="popper"?rc:Lv,ue=oe===rc?{side:l,sideOffset:a,align:c,alignOffset:f,arrowPadding:u,collisionBoundary:h,collisionPadding:y,sticky:S,hideWhenDetached:m,avoidCollisions:w}:{};return g.jsx(Iv,{scope:n,content:v,viewport:E,onViewportChange:k,itemRefCallback:ae,selectedItem:T,onItemLeave:K,itemTextRefCallback:G,focusSelectedItem:H,selectedItemText:P,position:r,isPositioned:B,searchRef:F,children:g.jsx(Ed,{as:uE,allowPinchZoom:!0,children:g.jsx(pd,{asChild:!0,trapped:p.open,onMountAutoFocus:V=>{V.preventDefault()},onUnmountAutoFocus:ve(o,V=>{var Q;(Q=p.trigger)==null||Q.focus({preventScroll:!0}),V.preventDefault()}),children:g.jsx(fd,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:V=>V.preventDefault(),onDismiss:()=>p.onOpenChange(!1),children:g.jsx(oe,{role:"listbox",id:p.contentId,"data-state":p.open?"open":"closed",dir:p.dir,onContextMenu:V=>V.preventDefault(),...d,...ue,onPlaced:()=>U(!0),ref:N,style:{display:"flex",flexDirection:"column",outline:"none",...d.style},onKeyDown:ve(d.onKeyDown,V=>{const Q=V.ctrlKey||V.altKey||V.metaKey;if(V.key==="Tab"&&V.preventDefault(),!Q&&V.key.length===1&&W(V.key),["ArrowUp","ArrowDown","Home","End"].includes(V.key)){let ie=j().filter(re=>!re.disabled).map(re=>re.ref.current);if(["ArrowUp","End"].includes(V.key)&&(ie=ie.slice().reverse()),["ArrowUp","ArrowDown"].includes(V.key)){const re=V.target,J=ie.indexOf(re);ie=ie.slice(J+1)}setTimeout(()=>I(ie)),V.preventDefault()}})})})})})})});Dv.displayName=aE;var cE="SelectItemAlignedPosition",Lv=x.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=ur(Hr,n),i=cr(Hr,n),[l,a]=x.useState(null),[c,f]=x.useState(null),u=Re(t,N=>f(N)),h=ea(n),y=x.useRef(!1),S=x.useRef(!0),{viewport:m,selectedItem:w,selectedItemText:d,focusSelectedItem:p}=i,v=x.useCallback(()=>{if(s.trigger&&s.valueNode&&l&&c&&m&&w&&d){const N=s.trigger.getBoundingClientRect(),T=c.getBoundingClientRect(),O=s.valueNode.getBoundingClientRect(),P=d.getBoundingClientRect();if(s.dir!=="rtl"){const re=P.left-T.left,J=O.left-re,je=N.left-J,Le=N.width+je,Wt=Math.max(Le,T.width),Ot=window.innerWidth-At,X=lp(J,[At,Math.max(At,Ot-Wt)]);l.style.minWidth=Le+"px",l.style.left=X+"px"}else{const re=T.right-P.right,J=window.innerWidth-O.right-re,je=window.innerWidth-N.right-J,Le=N.width+je,Wt=Math.max(Le,T.width),Ot=window.innerWidth-At,X=lp(J,[At,Math.max(At,Ot-Wt)]);l.style.minWidth=Le+"px",l.style.right=X+"px"}const D=h(),j=window.innerHeight-At*2,B=m.scrollHeight,U=window.getComputedStyle(c),te=parseInt(U.borderTopWidth,10),I=parseInt(U.paddingTop,10),H=parseInt(U.borderBottomWidth,10),R=parseInt(U.paddingBottom,10),A=te+I+B+R+H,F=Math.min(w.offsetHeight*5,A),W=window.getComputedStyle(m),ae=parseInt(W.paddingTop,10),K=parseInt(W.paddingBottom,10),G=N.top+N.height/2-At,oe=j-G,ue=w.offsetHeight/2,V=w.offsetTop+ue,Q=te+I+V,he=A-Q;if(Q<=G){const re=D.length>0&&w===D[D.length-1].ref.current;l.style.bottom="0px";const J=c.clientHeight-m.offsetTop-m.offsetHeight,je=Math.max(oe,ue+(re?K:0)+J+H),Le=Q+je;l.style.height=Le+"px"}else{const re=D.length>0&&w===D[0].ref.current;l.style.top="0px";const je=Math.max(G,te+m.offsetTop+(re?ae:0)+ue)+he;l.style.height=je+"px",m.scrollTop=Q-G+m.offsetTop}l.style.margin=`${At}px 0`,l.style.minHeight=F+"px",l.style.maxHeight=j+"px",r==null||r(),requestAnimationFrame(()=>y.current=!0)}},[h,s.trigger,s.valueNode,l,c,m,w,d,s.dir,r]);Ke(()=>v(),[v]);const[b,E]=x.useState();Ke(()=>{c&&E(window.getComputedStyle(c).zIndex)},[c]);const k=x.useCallback(N=>{N&&S.current===!0&&(v(),p==null||p(),S.current=!1)},[v,p]);return g.jsx(fE,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:y,onScrollButtonChange:k,children:g.jsx("div",{ref:a,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:b},children:g.jsx(Ce.div,{...o,ref:u,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Lv.displayName=cE;var dE="SelectPopperPosition",rc=x.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=At,...s}=e,i=ta(n);return g.jsx(gv,{...i,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});rc.displayName=dE;var[fE,kd]=Go(Hr,{}),oc="SelectViewport",Fv=x.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=cr(oc,n),i=kd(oc,n),l=Re(t,s.onViewportChange),a=x.useRef(0);return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),g.jsx(Jl.Slot,{scope:n,children:g.jsx(Ce.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:ve(o.onScroll,c=>{const f=c.currentTarget,{contentWrapper:u,shouldExpandOnScrollRef:h}=i;if(h!=null&&h.current&&u){const y=Math.abs(a.current-f.scrollTop);if(y>0){const S=window.innerHeight-At*2,m=parseFloat(u.style.minHeight),w=parseFloat(u.style.height),d=Math.max(m,w);if(d<S){const p=d+y,v=Math.min(S,p),b=p-v;u.style.height=v+"px",u.style.bottom==="0px"&&(f.scrollTop=b>0?b:0,u.style.justifyContent="flex-end")}}}a.current=f.scrollTop})})})]})});Fv.displayName=oc;var zv="SelectGroup",[pE,hE]=Go(zv),mE=x.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ql();return g.jsx(pE,{scope:n,id:o,children:g.jsx(Ce.div,{role:"group","aria-labelledby":o,...r,ref:t})})});mE.displayName=zv;var Bv="SelectLabel",gE=x.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=hE(Bv,n);return g.jsx(Ce.div,{id:o.id,...r,ref:t})});gE.displayName=Bv;var Nl="SelectItem",[vE,Uv]=Go(Nl),Hv=x.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...i}=e,l=ur(Nl,n),a=cr(Nl,n),c=l.value===r,[f,u]=x.useState(s??""),[h,y]=x.useState(!1),S=Re(t,p=>{var v;return(v=a.itemRefCallback)==null?void 0:v.call(a,p,r,o)}),m=Ql(),w=x.useRef("touch"),d=()=>{o||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return g.jsx(vE,{scope:n,value:r,disabled:o,textId:m,isSelected:c,onItemTextChange:x.useCallback(p=>{u(v=>v||((p==null?void 0:p.textContent)??"").trim())},[]),children:g.jsx(Jl.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:g.jsx(Ce.div,{role:"option","aria-labelledby":m,"data-highlighted":h?"":void 0,"aria-selected":c&&h,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:S,onFocus:ve(i.onFocus,()=>y(!0)),onBlur:ve(i.onBlur,()=>y(!1)),onClick:ve(i.onClick,()=>{w.current!=="mouse"&&d()}),onPointerUp:ve(i.onPointerUp,()=>{w.current==="mouse"&&d()}),onPointerDown:ve(i.onPointerDown,p=>{w.current=p.pointerType}),onPointerMove:ve(i.onPointerMove,p=>{var v;w.current=p.pointerType,o?(v=a.onItemLeave)==null||v.call(a):w.current==="mouse"&&p.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ve(i.onPointerLeave,p=>{var v;p.currentTarget===document.activeElement&&((v=a.onItemLeave)==null||v.call(a))}),onKeyDown:ve(i.onKeyDown,p=>{var b;((b=a.searchRef)==null?void 0:b.current)!==""&&p.key===" "||(eE.includes(p.key)&&d(),p.key===" "&&p.preventDefault())})})})})});Hv.displayName=Nl;var fs="SelectItemText",Vv=x.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,i=ur(fs,n),l=cr(fs,n),a=Uv(fs,n),c=oE(fs,n),[f,u]=x.useState(null),h=Re(t,d=>u(d),a.onItemTextChange,d=>{var p;return(p=l.itemTextRefCallback)==null?void 0:p.call(l,d,a.value,a.disabled)}),y=f==null?void 0:f.textContent,S=x.useMemo(()=>g.jsx("option",{value:a.value,disabled:a.disabled,children:y},a.value),[a.disabled,a.value,y]),{onNativeOptionAdd:m,onNativeOptionRemove:w}=c;return Ke(()=>(m(S),()=>w(S)),[m,w,S]),g.jsxs(g.Fragment,{children:[g.jsx(Ce.span,{id:a.textId,...s,ref:h}),a.isSelected&&i.valueNode&&!i.valueNodeHasChildren?$o.createPortal(s.children,i.valueNode):null]})});Vv.displayName=fs;var $v="SelectItemIndicator",Wv=x.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Uv($v,n).isSelected?g.jsx(Ce.span,{"aria-hidden":!0,...r,ref:t}):null});Wv.displayName=$v;var sc="SelectScrollUpButton",yE=x.forwardRef((e,t)=>{const n=cr(sc,e.__scopeSelect),r=kd(sc,e.__scopeSelect),[o,s]=x.useState(!1),i=Re(t,r.onScrollButtonChange);return Ke(()=>{if(n.viewport&&n.isPositioned){let l=function(){const c=a.scrollTop>0;s(c)};const a=n.viewport;return l(),a.addEventListener("scroll",l),()=>a.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?g.jsx(Qv,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=n;l&&a&&(l.scrollTop=l.scrollTop-a.offsetHeight)}}):null});yE.displayName=sc;var ic="SelectScrollDownButton",xE=x.forwardRef((e,t)=>{const n=cr(ic,e.__scopeSelect),r=kd(ic,e.__scopeSelect),[o,s]=x.useState(!1),i=Re(t,r.onScrollButtonChange);return Ke(()=>{if(n.viewport&&n.isPositioned){let l=function(){const c=a.scrollHeight-a.clientHeight,f=Math.ceil(a.scrollTop)<c;s(f)};const a=n.viewport;return l(),a.addEventListener("scroll",l),()=>a.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?g.jsx(Qv,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=n;l&&a&&(l.scrollTop=l.scrollTop+a.offsetHeight)}}):null});xE.displayName=ic;var Qv=x.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=cr("SelectScrollButton",n),i=x.useRef(null),l=ea(n),a=x.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return x.useEffect(()=>()=>a(),[a]),Ke(()=>{var f;const c=l().find(u=>u.ref.current===document.activeElement);(f=c==null?void 0:c.ref.current)==null||f.scrollIntoView({block:"nearest"})},[l]),g.jsx(Ce.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:ve(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:ve(o.onPointerMove,()=>{var c;(c=s.onItemLeave)==null||c.call(s),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:ve(o.onPointerLeave,()=>{a()})})}),wE="SelectSeparator",SE=x.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return g.jsx(Ce.div,{"aria-hidden":!0,...r,ref:t})});SE.displayName=wE;var lc="SelectArrow",bE=x.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ta(n),s=ur(lc,n),i=cr(lc,n);return s.open&&i.position==="popper"?g.jsx(vv,{...o,...r,ref:t}):null});bE.displayName=lc;var CE="SelectBubbleInput",Kv=x.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=x.useRef(null),s=Re(r,o),i=dC(t);return x.useEffect(()=>{const l=o.current;if(!l)return;const a=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(a,"value").set;if(i!==t&&f){const u=new Event("change",{bubbles:!0});f.call(l,t),l.dispatchEvent(u)}},[i,t]),g.jsx(Ce.select,{...n,style:{...yv,...n.style},ref:s,defaultValue:t})});Kv.displayName=CE;function Yv(e){return e===""||e===void 0}function qv(e){const t=zr(e),n=x.useRef(""),r=x.useRef(0),o=x.useCallback(i=>{const l=n.current+i;t(l),function a(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>a(""),1e3))}(l)},[t]),s=x.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return x.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function Gv(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=EE(e,Math.max(s,0));o.length===1&&(i=i.filter(c=>c!==n));const a=i.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}function EE(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Xv=Rv,Zv=Ov,kE=jv,Jv=Mv,ey=Av,ty=Fv,ny=Hv,ry=Vv,oy=Wv;function Pl({value:e,placeholder:t,options:n,onChange:r,mono:o=!1,disabled:s=!1}){const i=n.find(l=>l.value===e);return g.jsxs(Xv,{value:e||void 0,onValueChange:r,disabled:s,children:[g.jsx(Zv,{asChild:!0,children:g.jsx($l,{mono:o,placeholder:!i,icon:"chevron-down",children:g.jsx(kE,{placeholder:t})})}),g.jsx(Jv,{children:g.jsx(ey,{className:ee("bg-bg-tertiary backdrop-blur-xl rounded-xl shadow-lg border border-border-tertiary","overflow-hidden z-50 min-w-[160px]"),position:"popper",sideOffset:4,children:g.jsx(ty,{className:"p-1",children:n.map(l=>g.jsxs(ny,{value:l.value,className:ee("relative flex items-center justify-between","px-3 py-1.5 rounded-lg cursor-pointer outline-none","text-sm font-medium text-text-primary","data-[highlighted]:bg-bg-secondary",o&&"font-mono text-xs"),children:[g.jsx(ry,{children:l.label}),g.jsx(oy,{children:g.jsx(Sl,{className:"w-4 h-4 text-icon-primary"})})]},l.value))})})})]})}function NE(e,t){return x.useReducer((n,r)=>t[n][r]??n,e)}var Nd=e=>{const{present:t,children:n}=e,r=PE(t),o=typeof n=="function"?n({present:r.isPresent}):x.Children.only(n),s=Re(r.ref,RE(o));return typeof n=="function"||r.isPresent?x.cloneElement(o,{ref:s}):null};Nd.displayName="Presence";function PE(e){const[t,n]=x.useState(),r=x.useRef(null),o=x.useRef(e),s=x.useRef("none"),i=e?"mounted":"unmounted",[l,a]=NE(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const c=Oi(r.current);s.current=l==="mounted"?c:"none"},[l]),Ke(()=>{const c=r.current,f=o.current;if(f!==e){const h=s.current,y=Oi(c);e?a("MOUNT"):y==="none"||(c==null?void 0:c.display)==="none"?a("UNMOUNT"):a(f&&h!==y?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),Ke(()=>{if(t){let c;const f=t.ownerDocument.defaultView??window,u=y=>{const m=Oi(r.current).includes(CSS.escape(y.animationName));if(y.target===t&&m&&(a("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",c=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},h=y=>{y.target===t&&(s.current=Oi(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{f.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:x.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function Oi(e){return(e==null?void 0:e.animationName)||"none"}function RE(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var na="Popover",[sy]=Wl(na,[Xl]),ti=Xl(),[TE,dr]=sy(na),iy=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!1}=e,l=ti(t),a=x.useRef(null),[c,f]=x.useState(!1),[u,h]=tc({prop:r,defaultProp:o??!1,onChange:s,caller:na});return g.jsx(mv,{...l,children:g.jsx(TE,{scope:t,contentId:Ql(),triggerRef:a,open:u,onOpenChange:h,onOpenToggle:x.useCallback(()=>h(y=>!y),[h]),hasCustomAnchor:c,onCustomAnchorAdd:x.useCallback(()=>f(!0),[]),onCustomAnchorRemove:x.useCallback(()=>f(!1),[]),modal:i,children:n})})};iy.displayName=na;var ly="PopoverAnchor",OE=x.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=dr(ly,n),s=ti(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:l}=o;return x.useEffect(()=>(i(),()=>l()),[i,l]),g.jsx(bd,{...s,...r,ref:t})});OE.displayName=ly;var ay="PopoverTrigger",uy=x.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=dr(ay,n),s=ti(n),i=Re(t,o.triggerRef),l=g.jsx(Ce.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":hy(o.open),...r,ref:i,onClick:ve(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?l:g.jsx(bd,{asChild:!0,...s,children:l})});uy.displayName=ay;var Pd="PopoverPortal",[_E,jE]=sy(Pd,{forceMount:void 0}),cy=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=dr(Pd,t);return g.jsx(_E,{scope:t,forceMount:n,children:g.jsx(Nd,{present:n||s.open,children:g.jsx(Cd,{asChild:!0,container:o,children:r})})})};cy.displayName=Pd;var Bo="PopoverContent",dy=x.forwardRef((e,t)=>{const n=jE(Bo,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=dr(Bo,e.__scopePopover);return g.jsx(Nd,{present:r||s.open,children:s.modal?g.jsx(AE,{...o,ref:t}):g.jsx(IE,{...o,ref:t})})});dy.displayName=Bo;var ME=Bs("PopoverContent.RemoveScroll"),AE=x.forwardRef((e,t)=>{const n=dr(Bo,e.__scopePopover),r=x.useRef(null),o=Re(t,r),s=x.useRef(!1);return x.useEffect(()=>{const i=r.current;if(i)return wv(i)},[]),g.jsx(Ed,{as:ME,allowPinchZoom:!0,children:g.jsx(fy,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ve(e.onCloseAutoFocus,i=>{var l;i.preventDefault(),s.current||(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:ve(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,a=l.button===0&&l.ctrlKey===!0,c=l.button===2||a;s.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:ve(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),IE=x.forwardRef((e,t)=>{const n=dr(Bo,e.__scopePopover),r=x.useRef(!1),o=x.useRef(!1);return g.jsx(fy,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,l;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var a,c;(a=e.onInteractOutside)==null||a.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((c=n.triggerRef.current)==null?void 0:c.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),fy=x.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:c,onInteractOutside:f,...u}=e,h=dr(Bo,n),y=ti(n);return Qg(),g.jsx(pd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:g.jsx(fd,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1),children:g.jsx(gv,{"data-state":hy(h.open),role:"dialog",id:h.contentId,...y,...u,ref:t,style:{...u.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),py="PopoverClose",DE=x.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=dr(py,n);return g.jsx(Ce.button,{type:"button",...r,ref:t,onClick:ve(e.onClick,()=>o.onOpenChange(!1))})});DE.displayName=py;var LE="PopoverArrow",FE=x.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=ti(n);return g.jsx(vv,{...o,...r,ref:t})});FE.displayName=LE;function hy(e){return e?"open":"closed"}var zE=iy,BE=uy,UE=cy,HE=dy;const my="[&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]",VE=["January","February","March","April","May","June","July","August","September","October","November","December"],$E=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],WE=["Su","Mo","Tu","We","Th","Fr","Sa"];function Ha({count:e,selected:t,onSelect:n,scrollRef:r}){return g.jsx("div",{ref:r,className:ee("h-64 overflow-y-auto w-10",my),children:Array.from({length:e}).map((o,s)=>g.jsx("button",{"data-selected":t===s,onClick:()=>n(s),className:ee("w-full py-1 text-sm font-medium rounded transition-colors",t===s?"bg-kiwi-800 text-white":"hover:bg-bg-secondary text-text-secondary"),children:String(s).padStart(2,"0")},s))})}function QE({hour:e,minute:t,second:n,onChange:r,hoursRef:o,minutesRef:s,secondsRef:i}){return g.jsxs("div",{className:"p-2 flex gap-1 justify-center",children:[g.jsx(Ha,{count:24,selected:e,onSelect:l=>r(l,t,n),scrollRef:o}),g.jsx(Ha,{count:60,selected:t,onSelect:l=>r(e,l,n),scrollRef:s}),g.jsx(Ha,{count:60,selected:n,onSelect:l=>r(e,t,l),scrollRef:i})]})}function KE({viewDate:e,setViewDate:t,view:n,setView:r,selectedDate:o,onSelectDate:s,yearsRef:i}){const l=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),a=new Date(e.getFullYear(),e.getMonth(),1).getDay(),c=new Date().getFullYear(),f=Array.from({length:101},(u,h)=>c-50+h);return g.jsxs("div",{className:"p-3 w-64",children:[g.jsxs("div",{className:"flex items-center justify-between mb-3",children:[g.jsx("button",{onClick:()=>t(new Date(e.getFullYear(),e.getMonth()-1)),className:"p-1.5 hover:bg-bg-secondary rounded-lg transition-colors",children:g.jsx(Fg,{className:"w-4 h-4 text-icon-secondary"})}),g.jsxs("div",{className:"flex gap-1",children:[g.jsx("button",{onClick:()=>r(n==="months"?"days":"months"),className:"px-2 py-1 hover:bg-bg-secondary rounded-lg text-sm font-medium transition-colors",children:VE[e.getMonth()]}),g.jsx("button",{onClick:()=>r(n==="years"?"days":"years"),className:"px-2 py-1 hover:bg-bg-secondary rounded-lg text-sm font-medium transition-colors",children:e.getFullYear()})]}),g.jsx("button",{onClick:()=>t(new Date(e.getFullYear(),e.getMonth()+1)),className:"p-1.5 hover:bg-bg-secondary rounded-lg transition-colors",children:g.jsx(zg,{className:"w-4 h-4 text-icon-secondary"})})]}),n==="days"&&g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"grid grid-cols-7 gap-1 mb-1",children:WE.map(u=>g.jsx("div",{className:"text-center text-xs text-text-tertiary py-1 font-medium",children:u},u))}),g.jsxs("div",{className:"grid grid-cols-7 gap-1",children:[Array.from({length:a}).map((u,h)=>g.jsx("div",{},`empty-${h}`)),Array.from({length:l}).map((u,h)=>{const y=h+1,S=o&&o.getFullYear()===e.getFullYear()&&o.getMonth()===e.getMonth()&&o.getDate()===y,m=new Date().getFullYear()===e.getFullYear()&&new Date().getMonth()===e.getMonth()&&new Date().getDate()===y;return g.jsx("button",{onClick:()=>s(e.getFullYear(),e.getMonth(),y),className:ee("w-8 h-8 rounded-lg text-sm font-medium transition-colors",S?"bg-kiwi-800 text-white":m?"bg-bg-secondary text-text-primary":"hover:bg-bg-secondary text-text-primary"),children:y},y)})]})]}),n==="months"&&g.jsx("div",{className:"grid grid-cols-3 gap-2",children:$E.map((u,h)=>g.jsx("button",{onClick:()=>{t(new Date(e.getFullYear(),h)),r("days")},className:ee("px-2 py-2 rounded-lg text-sm font-medium transition-colors",e.getMonth()===h?"bg-kiwi-800 text-white":"hover:bg-bg-secondary text-text-primary"),children:u},u))}),n==="years"&&g.jsx("div",{ref:i,className:ee("h-48 overflow-y-auto grid grid-cols-3 gap-1",my),children:f.map(u=>g.jsx("button",{"data-selected":e.getFullYear()===u,onClick:()=>{t(new Date(u,e.getMonth())),r("days")},className:ee("px-2 py-1.5 rounded-lg text-sm font-medium transition-colors",e.getFullYear()===u?"bg-kiwi-800 text-white":"hover:bg-bg-secondary text-text-primary"),children:u},u))})]})}function gy({value:e,onChange:t,placeholder:n="null",defaultOpen:r=!1}){const[o,s]=x.useState(r),[i,l]=x.useState("days"),[a,c]=x.useState(()=>e?new Date(e):new Date),[f,u]=x.useState("date"),h=x.useRef(null),y=x.useRef(null),S=x.useRef(null),m=x.useRef(null);x.useEffect(()=>{var O;i==="years"&&h.current&&((O=h.current.querySelector('[data-selected="true"]'))==null||O.scrollIntoView({block:"center"}))},[i]),x.useEffect(()=>{o&&setTimeout(()=>{var O,P,D,j,B,U;(P=(O=y.current)==null?void 0:O.querySelector('[data-selected="true"]'))==null||P.scrollIntoView({block:"center"}),(j=(D=S.current)==null?void 0:D.querySelector('[data-selected="true"]'))==null||j.scrollIntoView({block:"center"}),(U=(B=m.current)==null?void 0:B.querySelector('[data-selected="true"]'))==null||U.scrollIntoView({block:"center"})},0)},[o,f]);const w=e?new Date(e):null,d=new Date,p=(w==null?void 0:w.getHours())??d.getHours(),v=(w==null?void 0:w.getMinutes())??d.getMinutes(),b=(w==null?void 0:w.getSeconds())??d.getSeconds(),E=w?`${w.getFullYear()}-${w.getMonth()+1}-${w.getDate()} ${String(w.getHours()).padStart(2,"0")}:${String(w.getMinutes()).padStart(2,"0")}:${String(w.getSeconds()).padStart(2,"0")}`:null,k=(O,P,D)=>{const j=new Date(O,P,D,p,v,b);t(j.toISOString())},N=(O,P,D)=>{const j=w||new Date,B=new Date(j.getFullYear(),j.getMonth(),j.getDate(),O,P,D);t(B.toISOString())},T=[{label:"NULL",action:()=>t(null)},{label:"now",action:()=>t(new Date().toISOString())},{label:"today",action:()=>{const O=new Date;O.setHours(0,0,0,0),t(O.toISOString())}},{label:"tomorrow",action:()=>{const O=new Date;O.setDate(O.getDate()+1),O.setHours(0,0,0,0),t(O.toISOString())}},{label:"yesterday",action:()=>{const O=new Date;O.setDate(O.getDate()-1),O.setHours(0,0,0,0),t(O.toISOString())}}];return g.jsxs(zE,{open:o,onOpenChange:s,children:[g.jsx(BE,{asChild:!0,children:g.jsx($l,{placeholder:!E,icon:"chevron-down",children:E||n})}),g.jsx(UE,{children:g.jsxs(HE,{className:"bg-bg-tertiary backdrop-blur-xl border border-border-tertiary rounded-xl shadow-lg z-50 flex max-h-[80vh]",sideOffset:4,align:"start",children:[g.jsx("div",{className:"p-2 border-r border-border-tertiary flex flex-col gap-1",children:T.map(({label:O,action:P})=>g.jsx("button",{onClick:P,className:"px-3 py-1.5 text-sm text-text-secondary text-left hover:bg-bg-secondary rounded-lg transition-colors whitespace-nowrap",children:O},O))}),g.jsxs("div",{className:"flex flex-col flex-1",children:[g.jsxs("div",{className:"flex border-b border-border-tertiary sm:hidden",children:[g.jsx("button",{onClick:()=>u("date"),className:ee("flex-1 px-4 py-2 text-sm font-medium transition-colors",f==="date"?"text-text-primary border-b-2 border-kiwi-800":"text-text-secondary"),children:"Date"}),g.jsx("button",{onClick:()=>u("time"),className:ee("flex-1 px-4 py-2 text-sm font-medium transition-colors",f==="time"?"text-text-primary border-b-2 border-kiwi-800":"text-text-secondary"),children:"Time"})]}),g.jsxs("div",{className:"flex flex-col sm:flex-row",children:[g.jsx("div",{className:ee(f==="time"&&"hidden sm:block"),children:g.jsx(KE,{viewDate:a,setViewDate:c,view:i,setView:l,selectedDate:w,onSelectDate:k,yearsRef:h})}),g.jsx("div",{className:ee("sm:border-l border-border-tertiary w-64 sm:w-auto",f==="date"&&"hidden sm:block"),children:g.jsx(QE,{hour:p,minute:v,second:b,onChange:N,hoursRef:y,minutesRef:S,secondsRef:m})})]})]})]})})]})}const YE=[{value:"true",label:"true"},{value:"false",label:"false"}];function qE({value:e,onChange:t,type:n="text",placeholder:r="Enter value",disabled:o=!1,autoFocus:s=!1}){return n==="boolean"?g.jsx(Pl,{value:e||"true",placeholder:"Select value",options:YE,onChange:t,disabled:o}):n==="date"?g.jsx(gy,{value:e||null,onChange:i=>t(i||""),placeholder:r,defaultOpen:s}):g.jsx("input",{type:n,value:e,onChange:i=>t(i.target.value),placeholder:r,disabled:o,autoFocus:s,className:ee("h-8 px-2.5 py-1.5 rounded-lg w-full flex-1 min-w-32","text-sm font-medium text-text-primary","bg-transparent border border-border-tertiary","outline-none focus:border-primary","placeholder:text-text-tertiary",o&&"opacity-50 cursor-not-allowed")})}const jp={String:[{value:"equals",label:"equals"},{value:"not",label:"does not equal"},{value:"contains",label:"contains"},{value:"startsWith",label:"starts with"},{value:"endsWith",label:"ends with"}],Int:[{value:"equals",label:"equals"},{value:"not",label:"does not equal"},{value:"gt",label:"greater than"},{value:"gte",label:"greater or equal"},{value:"lt",label:"less than"},{value:"lte",label:"less or equal"}],BigInt:[{value:"equals",label:"equals"},{value:"not",label:"does not equal"},{value:"gt",label:"greater than"},{value:"gte",label:"greater or equal"},{value:"lt",label:"less than"},{value:"lte",label:"less or equal"}],Float:[{value:"equals",label:"equals"},{value:"not",label:"does not equal"},{value:"gt",label:"greater than"},{value:"gte",label:"greater or equal"},{value:"lt",label:"less than"},{value:"lte",label:"less or equal"}],Decimal:[{value:"equals",label:"equals"},{value:"not",label:"does not equal"},{value:"gt",label:"greater than"},{value:"gte",label:"greater or equal"},{value:"lt",label:"less than"},{value:"lte",label:"less or equal"}],Boolean:[{value:"equals",label:"is"}],DateTime:[{value:"equals",label:"equals"},{value:"not",label:"does not equal"},{value:"gt",label:"after"},{value:"gte",label:"on or after"},{value:"lt",label:"before"},{value:"lte",label:"on or before"}]};function Mp(e){return jp[e]||jp.String}function GE(e){switch(e){case"Int":case"BigInt":case"Float":case"Decimal":return"number";case"Boolean":return"boolean";case"DateTime":return"date";default:return"text"}}function XE(e){return!!(e.field&&e.operator&&e.value!==void 0&&e.value!=="")}function ac(e){return e.conditions.some(XE)}function vy(){return`filter-${Date.now()}-${Math.random().toString(36).slice(2,9)}`}function ZE(){return{conditions:[],logic:"AND"}}function JE(){return{id:vy(),field:"",operator:void 0,value:""}}function ek({index:e,condition:t,fields:n,onChange:r,onRemove:o}){const s=n.find(y=>y.name===t.field),i=s?Mp(s.type):[],l=s?GE(s.type):"text",a=n.map(y=>({value:y.name,label:y.name})),c=i.map(y=>({value:y.value,label:y.label})),f=y=>{const S=n.find(p=>p.name===y),m=S?Mp(S.type):[],w=m.length===1?m[0].value:void 0,d=(S==null?void 0:S.type)==="Boolean"&&w?"true":"";r({...t,field:y,operator:w,value:d})},u=y=>{r({...t,operator:y})},h=y=>{r({...t,value:y})};return g.jsxs("div",{className:"flex items-start gap-3",children:[g.jsx("div",{className:"w-2.5 h-8 py-1.5 flex justify-center items-center shrink-0",children:g.jsx("span",{className:"text-text-disabled text-sm font-medium",children:e+1})}),g.jsxs("div",{className:"flex-1 flex items-center gap-1 flex-wrap",children:[g.jsx(Pl,{value:t.field,placeholder:"Select property",options:a,onChange:f,mono:!0}),t.field&&g.jsx(Pl,{value:t.operator,placeholder:"Select condition",options:c,onChange:u}),t.field&&t.operator&&g.jsx(qE,{value:t.value||"",onChange:h,type:l,placeholder:"Enter value",autoFocus:!0})]}),g.jsx("button",{type:"button",onClick:o,className:ee("w-8 h-8 flex items-center justify-center shrink-0","text-icon-tertiary hover:text-icon-primary transition-colors"),children:g.jsx(Ug,{className:"w-5 h-5"})})]})}const Ap=[{value:"AND",label:"and"},{value:"OR",label:"or"}];function tk({value:e,onChange:t}){const n=Ap.find(r=>r.value===e);return g.jsxs("div",{className:"relative flex items-center px-6 py-4",children:[g.jsx("div",{className:"absolute left-0 right-0 h-px bg-border-tertiary"}),g.jsxs(Xv,{value:e,onValueChange:t,children:[g.jsx(Zv,{asChild:!0,children:g.jsx($l,{variant:"outlined",icon:"chevron-down",className:"relative z-10",children:g.jsx("span",{className:"text-sm font-medium text-text-primary",children:n==null?void 0:n.label})})}),g.jsx(Jv,{children:g.jsx(ey,{className:ee("bg-background rounded-xl shadow-lg border border-border-tertiary","overflow-hidden z-50 min-w-[100px]"),position:"popper",sideOffset:4,children:g.jsx(ty,{className:"p-1",children:Ap.map(r=>g.jsxs(ny,{value:r.value,className:ee("relative flex items-center justify-between","px-3 py-1.5 rounded-lg cursor-pointer outline-none","text-sm font-medium text-text-primary","data-[highlighted]:bg-bg-secondary"),children:[g.jsx(ry,{children:r.label}),g.jsx(oy,{children:g.jsx(Sl,{className:"w-4 h-4 text-icon-primary"})})]},r.value))})})})]})]})}function nk({fields:e,initialFilters:t,onBack:n,onApply:r}){const[o,s]=x.useState(()=>t||{conditions:[],logic:"AND"}),i=ac(o),l=t?ac(t):!1,a=i||l&&!i&&o.conditions.length===0,c=e.filter(w=>w.kind==="scalar"),f=()=>{const w=JE();s(d=>({...d,conditions:[...d.conditions,w]}))},u=w=>{s(d=>({...d,conditions:d.conditions.filter(p=>p.id!==w)}))},h=(w,d)=>{s(p=>({...p,conditions:p.conditions.map(v=>v.id===w?{...v,...d}:v)}))},y=w=>{s(d=>({...d,logic:w}))},S=()=>{const w={...o,conditions:o.conditions.filter(d=>d.field&&d.operator&&d.value!==void 0&&d.value!=="")};r(w)},m=o.conditions.length===0;return g.jsxs("div",{className:"flex flex-col h-full relative pt-3",children:[g.jsx("div",{className:"pr-3",children:g.jsx(dd,{title:"Filter",onBack:n,showBackButton:!0,rightActions:g.jsx("button",{onClick:f,className:"h-8 px-2 py-1 bg-coconut-100 rounded-lg border border-primary/20 flex items-center gap-1 hover:bg-coconut-100/10 transition-colors text-sm",children:"+ Add filter"})})}),g.jsx("div",{className:"flex-1 overflow-auto p-4 pb-32",children:m?g.jsx("div",{className:"h-full flex items-center justify-center",children:g.jsx("p",{className:"text-text-tertiary text-sm font-semibold",children:"No filters yet"})}):g.jsx("div",{className:"space-y-0",children:o.conditions.map((w,d)=>g.jsxs("div",{children:[g.jsx(ek,{index:d,condition:w,fields:c,onChange:p=>h(w.id,p),onRemove:()=>u(w.id)}),d<o.conditions.length-1&&g.jsx(tk,{value:o.logic,onChange:y})]},w.id))})}),g.jsx(Hg,{primaryButton:{label:i?"Apply filters":"Exit filter",onClick:S,disabled:!a}})]})}function rk({value:e,onChange:t,placeholder:n="null",autoFocus:r=!1}){const o=e?typeof e=="string"?e:JSON.stringify(e,null,2):"",s=l=>{if(!l){t(null);return}try{t(JSON.parse(l))}catch{t(l)}},i=!e;return g.jsx("textarea",{value:o,onChange:l=>s(l.target.value),placeholder:n,autoFocus:r,rows:3,className:ee("w-full bg-transparent outline-none resize-none font-mono text-xs","focus:outline focus:outline-2 focus:outline-offset-2 focus:outline-ring",i?"text-text-disabled":"text-text-primary")})}const ok={Int:{type:"number",step:"1",parse:e=>e?parseInt(e,10):null},BigInt:{type:"number",step:"1",parse:e=>e?parseInt(e,10):null},Float:{type:"number",step:"any",parse:e=>e?parseFloat(e):null},Decimal:{type:"number",step:"any",parse:e=>e?parseFloat(e):null}};function sk({value:e,onChange:t,fieldType:n="String",placeholder:r="null",autoFocus:o=!1}){const s=x.useRef(null);x.useEffect(()=>{o&&s.current&&s.current.focus()},[o]);const i=ok[n],l=e==null||e==="",a=c=>{t(i?i.parse(c.target.value):c.target.value||null)};return g.jsx("input",{ref:s,type:(i==null?void 0:i.type)??"text",step:i==null?void 0:i.step,value:e??"",onChange:a,placeholder:r,className:ee("w-full bg-transparent outline-none text-sm font-normal","focus:outline-none",l?"text-text-disabled":"text-text-primary")})}function ik({field:e,value:t,onChange:n,placeholder:r="null",autoFocus:o=!1}){const s={value:t,onChange:n,placeholder:r,autoFocus:o},i=e.type==="Boolean"||e.type==="DateTime",l=()=>{switch(e.type){case"Boolean":return g.jsx(Pl,{value:t===!0?"true":t===!1?"false":void 0,placeholder:r,options:[{value:"true",label:"true"},{value:"false",label:"false"}],onChange:a=>n(a==="true")});case"DateTime":return g.jsx(gy,{value:t,onChange:n,placeholder:r,defaultOpen:o});case"Json":return g.jsx(rk,{...s});default:return g.jsx(sk,{...s,fieldType:e.type})}};return g.jsxs("div",{className:"pl-3 flex justify-between items-center",children:[g.jsxs("span",{className:"text-xs font-normal font-mono text-text-secondary leading-4",children:[e.name,e.isRequired&&g.jsx("span",{className:"text-destructive ml-0.5",children:"*"})]}),i?g.jsx("div",{className:"w-1/2 min-w-48 flex justify-start",children:l()}):g.jsx("div",{className:"w-1/2 min-w-48 px-3 py-2 bg-bg-tertiary rounded-lg flex items-center",children:l()})]})}function lk(e,t){return!t&&e.hasDefaultValue?"(auto-generated)":"null"}function Ip(e,t){const n={};for(const r of t)r.kind!=="object"&&(e?n[r.name]=e[r.name]:n[r.name]=r.type==="Boolean"?!1:null);return n}function ak({tableName:e,record:t,fields:n,focusField:r,onBack:o}){var b;const s=!!t,i=s?"Edit Entry":"Add Entry",l=x.useMemo(()=>n.filter(E=>E.kind!=="object"),[n]),a=r??(s||(b=l.find(E=>!E.hasDefaultValue))==null?void 0:b.name),[c,f]=x.useState(()=>Ip(t,n)),[u]=x.useState(()=>Ip(t,n)),[h,y]=x.useState(!1),S=f1(e),m=p1(e),w=x.useMemo(()=>Object.keys(c).some(E=>c[E]!==u[E]),[c,u]),d=x.useMemo(()=>{const E=l.filter(k=>k.isRequired&&!(k.hasDefaultValue&&!s)).every(k=>{const N=c[k.name];return N!=null&&N!==""});return s?E&&w:E},[l,c,s,w]),p=(E,k)=>{f(N=>({...N,[E]:k}))},v=async()=>{if(!h){y(!0);try{if(s&&t){const E={};for(const k of Object.keys(c))c[k]!==u[k]&&(E[k]=c[k]);await m.mutateAsync({id:String(t.id),data:E}),$i.success("Entry updated")}else{const E={};for(const k of l){const N=c[k.name];k.hasDefaultValue&&N==null||(E[k.name]=N)}await S.mutateAsync(E),$i.success("Entry created")}o()}catch(E){$i.error(E instanceof Error?E.message:"Failed to save entry")}finally{y(!1)}}};return g.jsxs("div",{className:"flex flex-col h-full relative pt-3",children:[g.jsx(dd,{title:i,onBack:o,showBackButton:!0}),g.jsxs("div",{className:"flex-1 overflow-auto p-4 pb-12",children:[g.jsx("div",{className:"h-px bg-border-tertiary pb"}),g.jsx("div",{className:"flex flex-col gap-2 pt-2",children:l.map(E=>g.jsx(ik,{field:E,value:c[E.name],onChange:k=>p(E.name,k),placeholder:lk(E,s),autoFocus:a===E.name},E.name))})]}),g.jsx(Hg,{primaryButton:{label:h?"Saving...":s?"Save Entry":"Add Entry",onClick:v,disabled:!d||h}})]})}function uk({tableName:e,initialFilters:t,onBack:n}){var re,J,je,Le,Wt,Ot;const{navigateToTable:r}=Rg(),[o,s]=x.useState(0),i=50,[l,a]=x.useState(!1),[c,f]=x.useState(null),[u,h]=x.useState(void 0),[y,S]=x.useState(new Set),[m,w]=x.useState(!1),[d,p]=x.useState(()=>t||ZE()),[v,b]=x.useState(),[E,k]=x.useState(),[N,T]=x.useState(!1),O=ac(d),{data:P,isLoading:D,error:j,refetch:B}=d1(e,{offset:o*i,limit:i,filters:O?d:void 0,orderBy:v,orderDir:E}),{data:U}=Tg(),te=h1(e),I=((re=P==null?void 0:P.data)==null?void 0:re.rows)||[],H=((J=P==null?void 0:P.data)==null?void 0:J.total)||0,R=Math.ceil(H/i),A=(Wt=(Le=(je=U==null?void 0:U.data)==null?void 0:je.schema)==null?void 0:Le.models)==null?void 0:Wt.find(X=>X.name===e),F=(A==null?void 0:A.fields)||[],W=d.conditions.filter(X=>X.field&&X.operator&&X.value!==void 0&&X.value!=="").length,ae=X=>{S(tt=>{const fe=new Set(tt);return fe.has(X)?fe.delete(X):fe.add(X),fe})},K=()=>{S(X=>I.every((fe,fr)=>X.has(fr))?new Set:new Set(I.map((fe,fr)=>fr)))},G=X=>{v!==X?(b(X),k("asc")):E==="asc"?k("desc"):(b(void 0),k(void 0))},oe=(X,tt,fe)=>{f(X),h(fe),a(!0)},ue=()=>{f(null),h(void 0),a(!0)},V=()=>{a(!1),f(null),h(void 0)},Q=async()=>{const tt=I.filter((fe,fr)=>y.has(fr)).map(fe=>String(fe.id));await te.mutateAsync(tt),$i.success(`Deleted ${tt.length} record${tt.length!==1?"s":""}`),S(new Set),T(!1)},he=X=>{p(X),w(!1),s(0)},ie=X=>{const tt={conditions:[{id:vy(),field:X.filterField,operator:"equals",value:X.filterValue}],logic:"AND"};r(X.targetTable,tt)};return l?g.jsx(ak,{tableName:e,record:c,fields:F,focusField:u,onBack:V}):m?g.jsx(nk,{fields:F,initialFilters:d,onBack:()=>w(!1),onApply:he}):D?g.jsx("div",{className:"h-full flex items-center justify-center",children:g.jsx(Bg,{className:"h-8 w-8 animate-spin text-text-secondary"})}):j?g.jsxs("div",{className:"flex flex-col h-full",children:[g.jsx(dd,{title:e}),g.jsx("div",{className:"flex-1 flex items-center justify-center",children:g.jsxs("div",{className:"text-center max-w-md",children:[g.jsx("p",{className:"text-destructive font-semibold mb-2",children:"Error loading table"}),g.jsx("p",{className:"text-sm text-text-secondary",children:j instanceof Error?j.message:"Unknown error"}),g.jsx("button",{onClick:()=>B(),className:"mt-4 px-4 py-2 bg-button-primary rounded-md hover:bg-bg-secondary",children:"Retry"})]})})]}):g.jsxs("div",{className:"flex flex-col h-full pr-8",children:[g.jsxs("div",{className:"flex flex-col gap-5 pl-3 pt-6",children:[g.jsxs("div",{className:"flex justify-between items-center",children:[g.jsxs("div",{className:"flex flex-col gap-1 pl-8",children:[g.jsx("h1",{className:"text-text-primary text-base font-semibold leading-4",children:e}),g.jsxs("span",{className:"text-text-tertiary text-xs font-medium leading-3",children:[H," ",H===1?"entry":"entries"]})]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsxs("button",{onClick:()=>w(!0),className:ee("relative w-8 h-8 rounded-lg flex justify-center items-center transition-colors",O?"bg-blueberry-500/20 text-blueberry-400":"hover:bg-button-primary text-icon-primary"),children:[g.jsx(tS,{className:"w-4 h-4"}),W>0&&g.jsx("span",{className:"absolute -top-1 -right-1 min-w-4 h-4 px-1 bg-blueberry-500 text-white text-[10px] rounded-full flex items-center justify-center font-medium",children:W})]}),y.size>0&&g.jsxs("button",{onClick:()=>T(!0),className:"relative w-8 h-8 rounded-lg flex justify-center items-center transition-colors hover:bg-button-primary text-icon-primary",children:[g.jsx(Ug,{className:"w-4 h-4"}),g.jsx("span",{className:"absolute -top-1 -right-1 min-w-4 h-4 px-1 bg-blackberry-1000 text-coconut-1000 text-[10px] rounded-full flex items-center justify-center font-medium",children:y.size})]}),g.jsxs("button",{onClick:ue,className:"h-8 px-2 py-1 bg-coconut-100 rounded-lg border border-primary/20 flex items-center gap-1 hover:bg-coconut-100/10 transition-colors",children:[g.jsx("span",{className:"text-text-primary text-xs font-medium",children:"Add"}),g.jsx(rS,{className:"w-4 h-4 text-icon-primary"})]})]})]}),g.jsx("div",{className:"h-px bg-border-tertiary"})]}),g.jsxs("div",{className:"flex-1 overflow-auto pr-2 py-2 pl-1 pb-4",children:[g.jsx(uS,{columns:F,rows:I,selectedRows:y,onToggleRow:ae,onSelectAll:K,onRowClick:oe,onNavigateToRelation:ie,schema:(Ot=U==null?void 0:U.data)==null?void 0:Ot.schema,tableName:e,orderBy:v,orderDir:E,onSort:G}),I.length===0&&g.jsx("div",{className:"py-12 flex items-center justify-center",children:g.jsx("p",{className:"text-text-tertiary text-sm",children:"No records found"})}),R>1&&g.jsxs("div",{className:"sticky left-0 mt-6 mb-8 flex items-center justify-center gap-3",children:[g.jsx("button",{onClick:()=>s(X=>Math.max(0,X-1)),disabled:o===0,className:"px-4 py-2 text-sm font-medium bg-button-primary rounded-lg hover:bg-bg-secondary disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:"Previous"}),g.jsxs("span",{className:"text-sm text-text-secondary px-2",children:[o+1," / ",R]}),g.jsx("button",{onClick:()=>s(X=>Math.min(R-1,X+1)),disabled:o>=R-1,className:"px-4 py-2 text-sm font-medium bg-button-primary rounded-lg hover:bg-bg-secondary disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:"Next"})]})]}),N&&g.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[g.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:()=>T(!1)}),g.jsxs("div",{className:"relative bg-background border border-border-tertiary rounded-xl p-6 max-w-sm w-full mx-4 shadow-xl",children:[g.jsxs("h3",{className:"text-lg font-semibold text-text-primary mb-2",children:["Delete ",y.size," record",y.size!==1?"s":"","?"]}),g.jsx("p",{className:"text-sm text-text-secondary mb-6",children:"This action cannot be undone. The selected records will be permanently removed."}),g.jsxs("div",{className:"flex gap-3 justify-end",children:[g.jsx("button",{onClick:()=>T(!1),className:"px-4 py-2 text-sm font-medium rounded-lg hover:bg-button-primary transition-colors",children:"Cancel"}),g.jsx("button",{onClick:Q,className:"px-4 py-2 text-sm font-medium bg-destructive text-white rounded-lg hover:bg-destructive/90 transition-colors",children:"Delete"})]})]})]})]})}function ck({minWidth:e,maxWidth:t,width:n,onWidthChange:r,onResizeEnd:o,containerRef:s}){const[i,l]=x.useState(!1),a=x.useCallback(u=>{u.preventDefault(),l(!0)},[]),c=x.useCallback(u=>{if(!i||!s.current)return;const h=s.current.getBoundingClientRect(),y=u.clientX-h.left,S=Math.min(Math.max(y,e),t);r(S)},[i,s,e,t,r]),f=x.useCallback(()=>{i&&(l(!1),o==null||o(n))},[i,n,o]);return x.useEffect(()=>(i&&(document.addEventListener("mousemove",c),document.addEventListener("mouseup",f),document.body.style.cursor="col-resize",document.body.style.userSelect="none"),()=>{document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",f),document.body.style.cursor="",document.body.style.userSelect=""}),[i,c,f]),g.jsx("div",{onMouseDown:a,className:ee("absolute top-2 bottom-2 -right-3 w-1.5 cursor-col-resize transition-colors rounded-full","hover:bg-border-tertiary",i&&"bg-kiwi-600")})}const Dp=200,Lp=400,dk=256,Fp="sidebar-width";function fk({tables:e,selectedTable:t,onSelectTable:n,tableCounts:r}){const[o,s]=x.useState(""),[i,l]=x.useState(()=>{const u=localStorage.getItem(Fp);return u?Math.min(Math.max(parseInt(u),Dp),Lp):dk}),a=x.useRef(null),c=x.useMemo(()=>{if(!o.trim())return e;const u=o.toLowerCase();return e.filter(h=>h.name.toLowerCase().includes(u))},[e,o]),f=x.useCallback(u=>{localStorage.setItem(Fp,u.toString())},[]);return g.jsxs("aside",{ref:a,style:{width:i},className:"hidden sm:flex flex-col shrink-0 py-5 pl-2 relative",children:[g.jsxs("div",{className:"p-1 mb-3 bg-bg-tertiary rounded-lg flex items-center gap-2",children:[g.jsx("div",{className:"w-7 h-7 flex items-center justify-center",children:g.jsx(oS,{className:"w-4 h-4 text-icon-secondary"})}),g.jsx("input",{type:"text",placeholder:"Search",value:o,onChange:u=>s(u.target.value),className:"flex-1 bg-transparent text-sm text-text-primary placeholder:text-text-disabled outline-none"})]}),g.jsx("nav",{className:"flex flex-col gap-1.5",children:c.map(u=>{const h=t===u.name,y=r==null?void 0:r[u.name];return g.jsxs("button",{onClick:()=>n(u.name),className:ee("p-3 rounded-xl flex justify-between items-center transition-colors text-left",h?"bg-bg-secondary":"hover:bg-bg-tertiary"),children:[g.jsx("span",{className:ee("text-sm leading-5 truncate",h?"text-text-primary":"text-text-secondary"),children:u.name}),y!==void 0&&g.jsxs("span",{className:ee("text-xs font-medium leading-3 ml-2 shrink-0",h?"text-text-tertiary":"text-text-disabled"),children:[y," ",y===1?"entry":"entries"]})]},u.name)})}),g.jsx(ck,{minWidth:Dp,maxWidth:Lp,width:i,onWidthChange:l,onResizeEnd:f,containerRef:a})]})}function pk(){var y,S;const{currentEntry:e,navigateToTable:t,goBack:n}=Rg(),{data:r,isLoading:o,error:s,refetch:i}=Tg(),l=(e==null?void 0:e.type)==="table"?e.tableName:null,a=(e==null?void 0:e.type)==="table"?e.filters:void 0,c=((S=(y=r==null?void 0:r.data)==null?void 0:y.schema)==null?void 0:S.models)||[],f=x.useMemo(()=>c.map(m=>m.name),[c]),{data:u}=m1(f);return x.useEffect(()=>{c.length>0&&!l&&t(c[0].name)},[c,l,t]),o?g.jsx("div",{className:"h-screen flex items-center justify-center",children:g.jsxs("div",{className:"text-center",children:[g.jsx(Bg,{className:"h-8 w-8 animate-spin mx-auto mb-4 text-primary"}),g.jsx("p",{className:"text-muted-foreground",children:"Loading database schema..."})]})}):s instanceof Wi&&s.code==="PRISMA_NOT_CONFIGURED"?g.jsx("div",{className:"h-screen flex items-center justify-center bg-gradient-to-br from-background via-background to-amber-950/20",children:g.jsxs("div",{className:"text-center max-w-lg px-6",children:[g.jsxs("div",{className:"relative inline-block mb-6",children:[g.jsx("div",{className:"absolute inset-0 bg-amber-500/20 blur-2xl rounded-full"}),g.jsx("div",{className:"relative bg-gradient-to-br from-amber-500/10 to-orange-500/10 p-5 rounded-2xl border border-amber-500/20",children:g.jsx(sS,{className:"h-10 w-10 text-amber-400"})})]}),g.jsx("h1",{className:"text-2xl font-semibold mb-3 text-foreground",children:"Database Not Configured"}),g.jsxs("p",{className:"text-text-secondary mb-6 leading-relaxed",children:["No Prisma client was found in this project. Ask the ",g.jsx("span",{className:"text-amber-400 font-medium",children:"AI Agent"})," to enable database and authentication for your app."]}),g.jsxs("div",{className:"bg-bg-secondary/50 border border-border rounded-xl p-4 text-left",children:[g.jsx("p",{className:"text-xs text-text-tertiary uppercase tracking-wider mb-2",children:"Try saying:"}),g.jsx("p",{className:"text-sm text-foreground font-mono",children:'"Add a SQLite database with Prisma and create a User model"'})]}),g.jsx("button",{onClick:()=>i(),className:"mt-6 px-5 py-2.5 bg-amber-500/10 border border-amber-500/30 text-amber-400 rounded-lg hover:bg-amber-500/20 transition-colors text-sm font-medium",children:"Check Again"})]})}):s?g.jsx("div",{className:"h-screen flex items-center justify-center",children:g.jsxs("div",{className:"text-center max-w-md",children:[g.jsx(eS,{className:"h-12 w-12 mx-auto mb-4 text-destructive"}),g.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Connection Error"}),g.jsx("p",{className:"text-text-secondary text-sm",children:s instanceof Error?s.message:"Failed to connect to the database."}),g.jsx("button",{onClick:()=>i(),className:"mt-4 px-4 py-2 bg-button-primary rounded-md hover:bg-bg-secondary",children:"Retry"})]})}):g.jsx("div",{className:"h-screen",children:g.jsxs("div",{className:"h-full bg-bg-elevated flex gap-3 overflow-hidden",children:[g.jsx(fk,{tables:c,selectedTable:l??null,onSelectTable:t,tableCounts:u}),g.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden py-2 pr-2 pl-2 sm:pl-0",children:[g.jsx(q1,{tables:c,selectedTable:l??null,onSelectTable:t}),g.jsx("div",{className:"flex-1 overflow-hidden bg-bg-tertiary rounded-xl",children:l&&g.jsx(uk,{tableName:l,initialFilters:a,onBack:n},e==null?void 0:e.id)})]})]})})}const hk=new Sw({defaultOptions:{queries:{refetchInterval:5e3,staleTime:2e3,retry:2}}});dg(document.getElementById("root")).render(g.jsx(x.StrictMode,{children:g.jsxs(bw,{client:hk,children:[g.jsx(u1,{children:g.jsx(pk,{})}),g.jsx(i1,{position:"bottom-right",mobileOffset:{bottom:6},visibleToasts:2,theme:"system"})]})}));