@mcpspec/server 1.0.1 → 1.0.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.
- package/dist/index.js +41 -1
- package/package.json +4 -4
- package/ui-dist/assets/index-Bo7hG4mU.css +1 -0
- package/ui-dist/assets/index-DxT3O3nb.js +351 -0
- package/ui-dist/assets/index-DxT3O3nb.js.map +1 -0
- package/ui-dist/index.html +2 -2
- package/ui-dist/assets/index-Bet505kH.js +0 -346
- package/ui-dist/assets/index-Bet505kH.js.map +0 -1
- package/ui-dist/assets/index-DHdza0Ve.css +0 -1
|
@@ -1,346 +0,0 @@
|
|
|
1
|
-
var Mv=e=>{throw TypeError(e)};var Wf=(e,t,n)=>t.has(e)||Mv("Cannot "+n);var F=(e,t,n)=>(Wf(e,t,"read from private field"),n?n.call(e):t.get(e)),Pe=(e,t,n)=>t.has(e)?Mv("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ge=(e,t,n,i)=>(Wf(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),He=(e,t,n)=>(Wf(e,t,"access private method"),n);var Wc=(e,t,n,i)=>({set _(o){ge(e,t,o,n)},get _(){return F(e,t,i)}});function X1(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in e)){const l=Object.getOwnPropertyDescriptor(i,o);l&&Object.defineProperty(e,o,l.get?l:{enumerable:!0,get:()=>i[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"]'))i(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();var Lv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hf={exports:{}},Ya={},Kf={exports:{}},Ke={};/**
|
|
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 Fv;function J1(){if(Fv)return Ke;Fv=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.iterator;function x(I){return I===null||typeof I!="object"?null:(I=v&&I[v]||I["@@iterator"],typeof I=="function"?I:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,S={};function C(I,X,Re){this.props=I,this.context=X,this.refs=S,this.updater=Re||w}C.prototype.isReactComponent={},C.prototype.setState=function(I,X){if(typeof I!="object"&&typeof I!="function"&&I!=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,I,X,"setState")},C.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function P(){}P.prototype=C.prototype;function _(I,X,Re){this.props=I,this.context=X,this.refs=S,this.updater=Re||w}var E=_.prototype=new P;E.constructor=_,k(E,C.prototype),E.isPureReactComponent=!0;var R=Array.isArray,N=Object.prototype.hasOwnProperty,T={current:null},A={key:!0,ref:!0,__self:!0,__source:!0};function z(I,X,Re){var me,Te={},Se=null,ce=null;if(X!=null)for(me in X.ref!==void 0&&(ce=X.ref),X.key!==void 0&&(Se=""+X.key),X)N.call(X,me)&&!A.hasOwnProperty(me)&&(Te[me]=X[me]);var ve=arguments.length-2;if(ve===1)Te.children=Re;else if(1<ve){for(var Ae=Array(ve),Ne=0;Ne<ve;Ne++)Ae[Ne]=arguments[Ne+2];Te.children=Ae}if(I&&I.defaultProps)for(me in ve=I.defaultProps,ve)Te[me]===void 0&&(Te[me]=ve[me]);return{$$typeof:e,type:I,key:Se,ref:ce,props:Te,_owner:T.current}}function L(I,X){return{$$typeof:e,type:I.type,key:X,ref:I.ref,props:I.props,_owner:I._owner}}function M(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function Q(I){var X={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(Re){return X[Re]})}var H=/\/+/g;function ee(I,X){return typeof I=="object"&&I!==null&&I.key!=null?Q(""+I.key):X.toString(36)}function ne(I,X,Re,me,Te){var Se=typeof I;(Se==="undefined"||Se==="boolean")&&(I=null);var ce=!1;if(I===null)ce=!0;else switch(Se){case"string":case"number":ce=!0;break;case"object":switch(I.$$typeof){case e:case t:ce=!0}}if(ce)return ce=I,Te=Te(ce),I=me===""?"."+ee(ce,0):me,R(Te)?(Re="",I!=null&&(Re=I.replace(H,"$&/")+"/"),ne(Te,X,Re,"",function(Ne){return Ne})):Te!=null&&(M(Te)&&(Te=L(Te,Re+(!Te.key||ce&&ce.key===Te.key?"":(""+Te.key).replace(H,"$&/")+"/")+I)),X.push(Te)),1;if(ce=0,me=me===""?".":me+":",R(I))for(var ve=0;ve<I.length;ve++){Se=I[ve];var Ae=me+ee(Se,ve);ce+=ne(Se,X,Re,Ae,Te)}else if(Ae=x(I),typeof Ae=="function")for(I=Ae.call(I),ve=0;!(Se=I.next()).done;)Se=Se.value,Ae=me+ee(Se,ve++),ce+=ne(Se,X,Re,Ae,Te);else if(Se==="object")throw X=String(I),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.");return ce}function Y(I,X,Re){if(I==null)return I;var me=[],Te=0;return ne(I,me,"","",function(Se){return X.call(Re,Se,Te++)}),me}function Z(I){if(I._status===-1){var X=I._result;X=X(),X.then(function(Re){(I._status===0||I._status===-1)&&(I._status=1,I._result=Re)},function(Re){(I._status===0||I._status===-1)&&(I._status=2,I._result=Re)}),I._status===-1&&(I._status=0,I._result=X)}if(I._status===1)return I._result.default;throw I._result}var se={current:null},B={transition:null},te={ReactCurrentDispatcher:se,ReactCurrentBatchConfig:B,ReactCurrentOwner:T};function q(){throw Error("act(...) is not supported in production builds of React.")}return Ke.Children={map:Y,forEach:function(I,X,Re){Y(I,function(){X.apply(this,arguments)},Re)},count:function(I){var X=0;return Y(I,function(){X++}),X},toArray:function(I){return Y(I,function(X){return X})||[]},only:function(I){if(!M(I))throw Error("React.Children.only expected to receive a single React element child.");return I}},Ke.Component=C,Ke.Fragment=n,Ke.Profiler=o,Ke.PureComponent=_,Ke.StrictMode=i,Ke.Suspense=h,Ke.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=te,Ke.act=q,Ke.cloneElement=function(I,X,Re){if(I==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+I+".");var me=k({},I.props),Te=I.key,Se=I.ref,ce=I._owner;if(X!=null){if(X.ref!==void 0&&(Se=X.ref,ce=T.current),X.key!==void 0&&(Te=""+X.key),I.type&&I.type.defaultProps)var ve=I.type.defaultProps;for(Ae in X)N.call(X,Ae)&&!A.hasOwnProperty(Ae)&&(me[Ae]=X[Ae]===void 0&&ve!==void 0?ve[Ae]:X[Ae])}var Ae=arguments.length-2;if(Ae===1)me.children=Re;else if(1<Ae){ve=Array(Ae);for(var Ne=0;Ne<Ae;Ne++)ve[Ne]=arguments[Ne+2];me.children=ve}return{$$typeof:e,type:I.type,key:Te,ref:Se,props:me,_owner:ce}},Ke.createContext=function(I){return I={$$typeof:u,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},I.Provider={$$typeof:l,_context:I},I.Consumer=I},Ke.createElement=z,Ke.createFactory=function(I){var X=z.bind(null,I);return X.type=I,X},Ke.createRef=function(){return{current:null}},Ke.forwardRef=function(I){return{$$typeof:c,render:I}},Ke.isValidElement=M,Ke.lazy=function(I){return{$$typeof:y,_payload:{_status:-1,_result:I},_init:Z}},Ke.memo=function(I,X){return{$$typeof:m,type:I,compare:X===void 0?null:X}},Ke.startTransition=function(I){var X=B.transition;B.transition={};try{I()}finally{B.transition=X}},Ke.unstable_act=q,Ke.useCallback=function(I,X){return se.current.useCallback(I,X)},Ke.useContext=function(I){return se.current.useContext(I)},Ke.useDebugValue=function(){},Ke.useDeferredValue=function(I){return se.current.useDeferredValue(I)},Ke.useEffect=function(I,X){return se.current.useEffect(I,X)},Ke.useId=function(){return se.current.useId()},Ke.useImperativeHandle=function(I,X,Re){return se.current.useImperativeHandle(I,X,Re)},Ke.useInsertionEffect=function(I,X){return se.current.useInsertionEffect(I,X)},Ke.useLayoutEffect=function(I,X){return se.current.useLayoutEffect(I,X)},Ke.useMemo=function(I,X){return se.current.useMemo(I,X)},Ke.useReducer=function(I,X,Re){return se.current.useReducer(I,X,Re)},Ke.useRef=function(I){return se.current.useRef(I)},Ke.useState=function(I){return se.current.useState(I)},Ke.useSyncExternalStore=function(I,X,Re){return se.current.useSyncExternalStore(I,X,Re)},Ke.useTransition=function(){return se.current.useTransition()},Ke.version="18.3.1",Ke}var Dv;function ua(){return Dv||(Dv=1,Kf.exports=J1()),Kf.exports}/**
|
|
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 zv;function eC(){if(zv)return Ya;zv=1;var e=ua(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(c,h,m){var y,v={},x=null,w=null;m!==void 0&&(x=""+m),h.key!==void 0&&(x=""+h.key),h.ref!==void 0&&(w=h.ref);for(y in h)i.call(h,y)&&!l.hasOwnProperty(y)&&(v[y]=h[y]);if(c&&c.defaultProps)for(y in h=c.defaultProps,h)v[y]===void 0&&(v[y]=h[y]);return{$$typeof:t,type:c,key:x,ref:w,props:v,_owner:o.current}}return Ya.Fragment=n,Ya.jsx=u,Ya.jsxs=u,Ya}var Vv;function tC(){return Vv||(Vv=1,Hf.exports=eC()),Hf.exports}var f=tC(),b=ua();const st=zu(b),up=X1({__proto__:null,default:st},[b]);var Hc={},Qf={exports:{}},Cn={},Zf={exports:{}},qf={};/**
|
|
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
|
-
*/var $v;function nC(){return $v||($v=1,(function(e){function t(B,te){var q=B.length;B.push(te);e:for(;0<q;){var I=q-1>>>1,X=B[I];if(0<o(X,te))B[I]=te,B[q]=X,q=I;else break e}}function n(B){return B.length===0?null:B[0]}function i(B){if(B.length===0)return null;var te=B[0],q=B.pop();if(q!==te){B[0]=q;e:for(var I=0,X=B.length,Re=X>>>1;I<Re;){var me=2*(I+1)-1,Te=B[me],Se=me+1,ce=B[Se];if(0>o(Te,q))Se<X&&0>o(ce,Te)?(B[I]=ce,B[Se]=q,I=Se):(B[I]=Te,B[me]=q,I=me);else if(Se<X&&0>o(ce,q))B[I]=ce,B[Se]=q,I=Se;else break e}}return te}function o(B,te){var q=B.sortIndex-te.sortIndex;return q!==0?q:B.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var u=Date,c=u.now();e.unstable_now=function(){return u.now()-c}}var h=[],m=[],y=1,v=null,x=3,w=!1,k=!1,S=!1,C=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(B){for(var te=n(m);te!==null;){if(te.callback===null)i(m);else if(te.startTime<=B)i(m),te.sortIndex=te.expirationTime,t(h,te);else break;te=n(m)}}function R(B){if(S=!1,E(B),!k)if(n(h)!==null)k=!0,Z(N);else{var te=n(m);te!==null&&se(R,te.startTime-B)}}function N(B,te){k=!1,S&&(S=!1,P(z),z=-1),w=!0;var q=x;try{for(E(te),v=n(h);v!==null&&(!(v.expirationTime>te)||B&&!Q());){var I=v.callback;if(typeof I=="function"){v.callback=null,x=v.priorityLevel;var X=I(v.expirationTime<=te);te=e.unstable_now(),typeof X=="function"?v.callback=X:v===n(h)&&i(h),E(te)}else i(h);v=n(h)}if(v!==null)var Re=!0;else{var me=n(m);me!==null&&se(R,me.startTime-te),Re=!1}return Re}finally{v=null,x=q,w=!1}}var T=!1,A=null,z=-1,L=5,M=-1;function Q(){return!(e.unstable_now()-M<L)}function H(){if(A!==null){var B=e.unstable_now();M=B;var te=!0;try{te=A(!0,B)}finally{te?ee():(T=!1,A=null)}}else T=!1}var ee;if(typeof _=="function")ee=function(){_(H)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,Y=ne.port2;ne.port1.onmessage=H,ee=function(){Y.postMessage(null)}}else ee=function(){C(H,0)};function Z(B){A=B,T||(T=!0,ee())}function se(B,te){z=C(function(){B(e.unstable_now())},te)}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(B){B.callback=null},e.unstable_continueExecution=function(){k||w||(k=!0,Z(N))},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_getFirstCallbackNode=function(){return n(h)},e.unstable_next=function(B){switch(x){case 1:case 2:case 3:var te=3;break;default:te=x}var q=x;x=te;try{return B()}finally{x=q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(B,te){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var q=x;x=B;try{return te()}finally{x=q}},e.unstable_scheduleCallback=function(B,te,q){var I=e.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?I+q:I):q=I,B){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=q+X,B={id:y++,callback:te,priorityLevel:B,startTime:q,expirationTime:X,sortIndex:-1},q>I?(B.sortIndex=q,t(m,B),n(h)===null&&B===n(m)&&(S?(P(z),z=-1):S=!0,se(R,q-I))):(B.sortIndex=X,t(h,B),k||w||(k=!0,Z(N))),B},e.unstable_shouldYield=Q,e.unstable_wrapCallback=function(B){var te=x;return function(){var q=x;x=te;try{return B.apply(this,arguments)}finally{x=q}}}})(qf)),qf}var Bv;function rC(){return Bv||(Bv=1,Zf.exports=nC()),Zf.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 Uv;function sC(){if(Uv)return Cn;Uv=1;var e=ua(),t=rC();function n(r){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+r,a=1;a<arguments.length;a++)s+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+r+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,o={};function l(r,s){u(r,s),u(r+"Capture",s)}function u(r,s){for(o[r]=s,r=0;r<s.length;r++)i.add(s[r])}var c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,m=/^[: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]*$/,y={},v={};function x(r){return h.call(v,r)?!0:h.call(y,r)?!1:m.test(r)?v[r]=!0:(y[r]=!0,!1)}function w(r,s,a,d){if(a!==null&&a.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return d?!1:a!==null?!a.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function k(r,s,a,d){if(s===null||typeof s>"u"||w(r,s,a,d))return!0;if(d)return!1;if(a!==null)switch(a.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function S(r,s,a,d,p,g,j){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=d,this.attributeNamespace=p,this.mustUseProperty=a,this.propertyName=r,this.type=s,this.sanitizeURL=g,this.removeEmptyString=j}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){C[r]=new S(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var s=r[0];C[s]=new S(s,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){C[r]=new S(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){C[r]=new S(r,2,!1,r,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(r){C[r]=new S(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){C[r]=new S(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){C[r]=new S(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){C[r]=new S(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){C[r]=new S(r,5,!1,r.toLowerCase(),null,!1,!1)});var P=/[\-:]([a-z])/g;function _(r){return r[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(r){var s=r.replace(P,_);C[s]=new S(s,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var s=r.replace(P,_);C[s]=new S(s,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var s=r.replace(P,_);C[s]=new S(s,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){C[r]=new S(r,1,!1,r.toLowerCase(),null,!1,!1)}),C.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){C[r]=new S(r,1,!1,r.toLowerCase(),null,!0,!0)});function E(r,s,a,d){var p=C.hasOwnProperty(s)?C[s]:null;(p!==null?p.type!==0:d||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(k(s,a,p,d)&&(a=null),d||p===null?x(s)&&(a===null?r.removeAttribute(s):r.setAttribute(s,""+a)):p.mustUseProperty?r[p.propertyName]=a===null?p.type===3?!1:"":a:(s=p.attributeName,d=p.attributeNamespace,a===null?r.removeAttribute(s):(p=p.type,a=p===3||p===4&&a===!0?"":""+a,d?r.setAttributeNS(d,s,a):r.setAttribute(s,a))))}var R=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,N=Symbol.for("react.element"),T=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),M=Symbol.for("react.provider"),Q=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),se=Symbol.for("react.offscreen"),B=Symbol.iterator;function te(r){return r===null||typeof r!="object"?null:(r=B&&r[B]||r["@@iterator"],typeof r=="function"?r:null)}var q=Object.assign,I;function X(r){if(I===void 0)try{throw Error()}catch(a){var s=a.stack.trim().match(/\n( *(at )?)/);I=s&&s[1]||""}return`
|
|
34
|
-
`+I+r}var Re=!1;function me(r,s){if(!r||Re)return"";Re=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(G){var d=G}Reflect.construct(r,[],s)}else{try{s.call()}catch(G){d=G}r.call(s.prototype)}else{try{throw Error()}catch(G){d=G}r()}}catch(G){if(G&&d&&typeof G.stack=="string"){for(var p=G.stack.split(`
|
|
35
|
-
`),g=d.stack.split(`
|
|
36
|
-
`),j=p.length-1,O=g.length-1;1<=j&&0<=O&&p[j]!==g[O];)O--;for(;1<=j&&0<=O;j--,O--)if(p[j]!==g[O]){if(j!==1||O!==1)do if(j--,O--,0>O||p[j]!==g[O]){var V=`
|
|
37
|
-
`+p[j].replace(" at new "," at ");return r.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",r.displayName)),V}while(1<=j&&0<=O);break}}}finally{Re=!1,Error.prepareStackTrace=a}return(r=r?r.displayName||r.name:"")?X(r):""}function Te(r){switch(r.tag){case 5:return X(r.type);case 16:return X("Lazy");case 13:return X("Suspense");case 19:return X("SuspenseList");case 0:case 2:case 15:return r=me(r.type,!1),r;case 11:return r=me(r.type.render,!1),r;case 1:return r=me(r.type,!0),r;default:return""}}function Se(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case A:return"Fragment";case T:return"Portal";case L:return"Profiler";case z:return"StrictMode";case ee:return"Suspense";case ne:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case Q:return(r.displayName||"Context")+".Consumer";case M:return(r._context.displayName||"Context")+".Provider";case H:var s=r.render;return r=r.displayName,r||(r=s.displayName||s.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case Y:return s=r.displayName||null,s!==null?s:Se(r.type)||"Memo";case Z:s=r._payload,r=r._init;try{return Se(r(s))}catch{}}return null}function ce(r){var s=r.type;switch(r.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=s.render,r=r.displayName||r.name||"",s.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Se(s);case 8:return s===z?"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 s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function ve(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Ae(r){var s=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function Ne(r){var s=Ae(r)?"checked":"value",a=Object.getOwnPropertyDescriptor(r.constructor.prototype,s),d=""+r[s];if(!r.hasOwnProperty(s)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var p=a.get,g=a.set;return Object.defineProperty(r,s,{configurable:!0,get:function(){return p.call(this)},set:function(j){d=""+j,g.call(this,j)}}),Object.defineProperty(r,s,{enumerable:a.enumerable}),{getValue:function(){return d},setValue:function(j){d=""+j},stopTracking:function(){r._valueTracker=null,delete r[s]}}}}function Le(r){r._valueTracker||(r._valueTracker=Ne(r))}function Ue(r){if(!r)return!1;var s=r._valueTracker;if(!s)return!0;var a=s.getValue(),d="";return r&&(d=Ae(r)?r.checked?"true":"false":r.value),r=d,r!==a?(s.setValue(r),!0):!1}function ut(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function Mt(r,s){var a=s.checked;return q({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??r._wrapperState.initialChecked})}function en(r,s){var a=s.defaultValue==null?"":s.defaultValue,d=s.checked!=null?s.checked:s.defaultChecked;a=ve(s.value!=null?s.value:a),r._wrapperState={initialChecked:d,initialValue:a,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function Yt(r,s){s=s.checked,s!=null&&E(r,"checked",s,!1)}function Dt(r,s){Yt(r,s);var a=ve(s.value),d=s.type;if(a!=null)d==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+a):r.value!==""+a&&(r.value=""+a);else if(d==="submit"||d==="reset"){r.removeAttribute("value");return}s.hasOwnProperty("value")?Rt(r,s.type,a):s.hasOwnProperty("defaultValue")&&Rt(r,s.type,ve(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(r.defaultChecked=!!s.defaultChecked)}function et(r,s,a){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var d=s.type;if(!(d!=="submit"&&d!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+r._wrapperState.initialValue,a||s===r.value||(r.value=s),r.defaultValue=s}a=r.name,a!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,a!==""&&(r.name=a)}function Rt(r,s,a){(s!=="number"||ut(r.ownerDocument)!==r)&&(a==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+a&&(r.defaultValue=""+a))}var Nn=Array.isArray;function D(r,s,a,d){if(r=r.options,s){s={};for(var p=0;p<a.length;p++)s["$"+a[p]]=!0;for(a=0;a<r.length;a++)p=s.hasOwnProperty("$"+r[a].value),r[a].selected!==p&&(r[a].selected=p),p&&d&&(r[a].defaultSelected=!0)}else{for(a=""+ve(a),s=null,p=0;p<r.length;p++){if(r[p].value===a){r[p].selected=!0,d&&(r[p].defaultSelected=!0);return}s!==null||r[p].disabled||(s=r[p])}s!==null&&(s.selected=!0)}}function W(r,s){if(s.dangerouslySetInnerHTML!=null)throw Error(n(91));return q({},s,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function J(r,s){var a=s.value;if(a==null){if(a=s.children,s=s.defaultValue,a!=null){if(s!=null)throw Error(n(92));if(Nn(a)){if(1<a.length)throw Error(n(93));a=a[0]}s=a}s==null&&(s=""),a=s}r._wrapperState={initialValue:ve(a)}}function pe(r,s){var a=ve(s.value),d=ve(s.defaultValue);a!=null&&(a=""+a,a!==r.value&&(r.value=a),s.defaultValue==null&&r.defaultValue!==a&&(r.defaultValue=a)),d!=null&&(r.defaultValue=""+d)}function le(r){var s=r.textContent;s===r._wrapperState.initialValue&&s!==""&&s!==null&&(r.value=s)}function re(r){switch(r){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 he(r,s){return r==null||r==="http://www.w3.org/1999/xhtml"?re(s):r==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var Me,$e=(function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,a,d,p){MSApp.execUnsafeLocalFunction(function(){return r(s,a,d,p)})}:r})(function(r,s){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=s;else{for(Me=Me||document.createElement("div"),Me.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=Me.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;s.firstChild;)r.appendChild(s.firstChild)}});function _t(r,s){if(s){var a=r.firstChild;if(a&&a===r.lastChild&&a.nodeType===3){a.nodeValue=s;return}}r.textContent=s}var fn={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},Kn=["Webkit","ms","Moz","O"];Object.keys(fn).forEach(function(r){Kn.forEach(function(s){s=s+r.charAt(0).toUpperCase()+r.substring(1),fn[s]=fn[r]})});function lo(r,s,a){return s==null||typeof s=="boolean"||s===""?"":a||typeof s!="number"||s===0||fn.hasOwnProperty(r)&&fn[r]?(""+s).trim():s+"px"}function fe(r,s){r=r.style;for(var a in s)if(s.hasOwnProperty(a)){var d=a.indexOf("--")===0,p=lo(a,s[a],d);a==="float"&&(a="cssFloat"),d?r.setProperty(a,p):r[a]=p}}var qe=q({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 Ve(r,s){if(s){if(qe[r]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(n(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(n(61))}if(s.style!=null&&typeof s.style!="object")throw Error(n(62))}}function Be(r,s){if(r.indexOf("-")===-1)return typeof s.is=="string";switch(r){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 vt=null;function Pt(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Tn=null,Qn=null,Zn=null;function Wr(r){if(r=La(r)){if(typeof Tn!="function")throw Error(n(280));var s=r.stateNode;s&&(s=ic(s),Tn(r.stateNode,r.type,s))}}function An(r){Qn?Zn?Zn.push(r):Zn=[r]:Qn=r}function ar(){if(Qn){var r=Qn,s=Zn;if(Zn=Qn=null,Wr(r),s)for(r=0;r<s.length;r++)Wr(s[r])}}function ws(r,s){return r(s)}function tn(){}var Hr=!1;function Dl(r,s,a){if(Hr)return r(s,a);Hr=!0;try{return ws(r,s,a)}finally{Hr=!1,(Qn!==null||Zn!==null)&&(tn(),ar())}}function Kr(r,s){var a=r.stateNode;if(a===null)return null;var d=ic(a);if(d===null)return null;a=d[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(r=r.type,d=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!d;break e;default:r=!1}if(r)return null;if(a&&typeof a!="function")throw Error(n(231,s,typeof a));return a}var Ss=!1;if(c)try{var bs={};Object.defineProperty(bs,"passive",{get:function(){Ss=!0}}),window.addEventListener("test",bs,bs),window.removeEventListener("test",bs,bs)}catch{Ss=!1}function lr(r,s,a,d,p,g,j,O,V){var G=Array.prototype.slice.call(arguments,3);try{s.apply(a,G)}catch(oe){this.onError(oe)}}var cr=!1,wi=null,Si=!1,co=null,ib={onError:function(r){cr=!0,wi=r}};function ob(r,s,a,d,p,g,j,O,V){cr=!1,wi=null,lr.apply(ib,arguments)}function ab(r,s,a,d,p,g,j,O,V){if(ob.apply(this,arguments),cr){if(cr){var G=wi;cr=!1,wi=null}else throw Error(n(198));Si||(Si=!0,co=G)}}function bi(r){var s=r,a=r;if(r.alternate)for(;s.return;)s=s.return;else{r=s;do s=r,(s.flags&4098)!==0&&(a=s.return),r=s.return;while(r)}return s.tag===3?a:null}function sm(r){if(r.tag===13){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function im(r){if(bi(r)!==r)throw Error(n(188))}function lb(r){var s=r.alternate;if(!s){if(s=bi(r),s===null)throw Error(n(188));return s!==r?null:r}for(var a=r,d=s;;){var p=a.return;if(p===null)break;var g=p.alternate;if(g===null){if(d=p.return,d!==null){a=d;continue}break}if(p.child===g.child){for(g=p.child;g;){if(g===a)return im(p),r;if(g===d)return im(p),s;g=g.sibling}throw Error(n(188))}if(a.return!==d.return)a=p,d=g;else{for(var j=!1,O=p.child;O;){if(O===a){j=!0,a=p,d=g;break}if(O===d){j=!0,d=p,a=g;break}O=O.sibling}if(!j){for(O=g.child;O;){if(O===a){j=!0,a=g,d=p;break}if(O===d){j=!0,d=g,a=p;break}O=O.sibling}if(!j)throw Error(n(189))}}if(a.alternate!==d)throw Error(n(190))}if(a.tag!==3)throw Error(n(188));return a.stateNode.current===a?r:s}function om(r){return r=lb(r),r!==null?am(r):null}function am(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var s=am(r);if(s!==null)return s;r=r.sibling}return null}var lm=t.unstable_scheduleCallback,cm=t.unstable_cancelCallback,cb=t.unstable_shouldYield,ub=t.unstable_requestPaint,Lt=t.unstable_now,db=t.unstable_getCurrentPriorityLevel,cd=t.unstable_ImmediatePriority,um=t.unstable_UserBlockingPriority,zl=t.unstable_NormalPriority,fb=t.unstable_LowPriority,dm=t.unstable_IdlePriority,Vl=null,jr=null;function hb(r){if(jr&&typeof jr.onCommitFiberRoot=="function")try{jr.onCommitFiberRoot(Vl,r,void 0,(r.current.flags&128)===128)}catch{}}var ur=Math.clz32?Math.clz32:gb,pb=Math.log,mb=Math.LN2;function gb(r){return r>>>=0,r===0?32:31-(pb(r)/mb|0)|0}var $l=64,Bl=4194304;function ya(r){switch(r&-r){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 r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function Ul(r,s){var a=r.pendingLanes;if(a===0)return 0;var d=0,p=r.suspendedLanes,g=r.pingedLanes,j=a&268435455;if(j!==0){var O=j&~p;O!==0?d=ya(O):(g&=j,g!==0&&(d=ya(g)))}else j=a&~p,j!==0?d=ya(j):g!==0&&(d=ya(g));if(d===0)return 0;if(s!==0&&s!==d&&(s&p)===0&&(p=d&-d,g=s&-s,p>=g||p===16&&(g&4194240)!==0))return s;if((d&4)!==0&&(d|=a&16),s=r.entangledLanes,s!==0)for(r=r.entanglements,s&=d;0<s;)a=31-ur(s),p=1<<a,d|=r[a],s&=~p;return d}function vb(r,s){switch(r){case 1:case 2:case 4:return s+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 s+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 yb(r,s){for(var a=r.suspendedLanes,d=r.pingedLanes,p=r.expirationTimes,g=r.pendingLanes;0<g;){var j=31-ur(g),O=1<<j,V=p[j];V===-1?((O&a)===0||(O&d)!==0)&&(p[j]=vb(O,s)):V<=s&&(r.expiredLanes|=O),g&=~O}}function ud(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function fm(){var r=$l;return $l<<=1,($l&4194240)===0&&($l=64),r}function dd(r){for(var s=[],a=0;31>a;a++)s.push(r);return s}function xa(r,s,a){r.pendingLanes|=s,s!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,s=31-ur(s),r[s]=a}function xb(r,s){var a=r.pendingLanes&~s;r.pendingLanes=s,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=s,r.mutableReadLanes&=s,r.entangledLanes&=s,s=r.entanglements;var d=r.eventTimes;for(r=r.expirationTimes;0<a;){var p=31-ur(a),g=1<<p;s[p]=0,d[p]=-1,r[p]=-1,a&=~g}}function fd(r,s){var a=r.entangledLanes|=s;for(r=r.entanglements;a;){var d=31-ur(a),p=1<<d;p&s|r[d]&s&&(r[d]|=s),a&=~p}}var pt=0;function hm(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var pm,hd,mm,gm,vm,pd=!1,Wl=[],Cs=null,_s=null,ks=null,wa=new Map,Sa=new Map,Es=[],wb="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 ym(r,s){switch(r){case"focusin":case"focusout":Cs=null;break;case"dragenter":case"dragleave":_s=null;break;case"mouseover":case"mouseout":ks=null;break;case"pointerover":case"pointerout":wa.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sa.delete(s.pointerId)}}function ba(r,s,a,d,p,g){return r===null||r.nativeEvent!==g?(r={blockedOn:s,domEventName:a,eventSystemFlags:d,nativeEvent:g,targetContainers:[p]},s!==null&&(s=La(s),s!==null&&hd(s)),r):(r.eventSystemFlags|=d,s=r.targetContainers,p!==null&&s.indexOf(p)===-1&&s.push(p),r)}function Sb(r,s,a,d,p){switch(s){case"focusin":return Cs=ba(Cs,r,s,a,d,p),!0;case"dragenter":return _s=ba(_s,r,s,a,d,p),!0;case"mouseover":return ks=ba(ks,r,s,a,d,p),!0;case"pointerover":var g=p.pointerId;return wa.set(g,ba(wa.get(g)||null,r,s,a,d,p)),!0;case"gotpointercapture":return g=p.pointerId,Sa.set(g,ba(Sa.get(g)||null,r,s,a,d,p)),!0}return!1}function xm(r){var s=Ci(r.target);if(s!==null){var a=bi(s);if(a!==null){if(s=a.tag,s===13){if(s=sm(a),s!==null){r.blockedOn=s,vm(r.priority,function(){mm(a)});return}}else if(s===3&&a.stateNode.current.memoizedState.isDehydrated){r.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Hl(r){if(r.blockedOn!==null)return!1;for(var s=r.targetContainers;0<s.length;){var a=gd(r.domEventName,r.eventSystemFlags,s[0],r.nativeEvent);if(a===null){a=r.nativeEvent;var d=new a.constructor(a.type,a);vt=d,a.target.dispatchEvent(d),vt=null}else return s=La(a),s!==null&&hd(s),r.blockedOn=a,!1;s.shift()}return!0}function wm(r,s,a){Hl(r)&&a.delete(s)}function bb(){pd=!1,Cs!==null&&Hl(Cs)&&(Cs=null),_s!==null&&Hl(_s)&&(_s=null),ks!==null&&Hl(ks)&&(ks=null),wa.forEach(wm),Sa.forEach(wm)}function Ca(r,s){r.blockedOn===s&&(r.blockedOn=null,pd||(pd=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,bb)))}function _a(r){function s(p){return Ca(p,r)}if(0<Wl.length){Ca(Wl[0],r);for(var a=1;a<Wl.length;a++){var d=Wl[a];d.blockedOn===r&&(d.blockedOn=null)}}for(Cs!==null&&Ca(Cs,r),_s!==null&&Ca(_s,r),ks!==null&&Ca(ks,r),wa.forEach(s),Sa.forEach(s),a=0;a<Es.length;a++)d=Es[a],d.blockedOn===r&&(d.blockedOn=null);for(;0<Es.length&&(a=Es[0],a.blockedOn===null);)xm(a),a.blockedOn===null&&Es.shift()}var uo=R.ReactCurrentBatchConfig,Kl=!0;function Cb(r,s,a,d){var p=pt,g=uo.transition;uo.transition=null;try{pt=1,md(r,s,a,d)}finally{pt=p,uo.transition=g}}function _b(r,s,a,d){var p=pt,g=uo.transition;uo.transition=null;try{pt=4,md(r,s,a,d)}finally{pt=p,uo.transition=g}}function md(r,s,a,d){if(Kl){var p=gd(r,s,a,d);if(p===null)Od(r,s,d,Ql,a),ym(r,d);else if(Sb(p,r,s,a,d))d.stopPropagation();else if(ym(r,d),s&4&&-1<wb.indexOf(r)){for(;p!==null;){var g=La(p);if(g!==null&&pm(g),g=gd(r,s,a,d),g===null&&Od(r,s,d,Ql,a),g===p)break;p=g}p!==null&&d.stopPropagation()}else Od(r,s,d,null,a)}}var Ql=null;function gd(r,s,a,d){if(Ql=null,r=Pt(d),r=Ci(r),r!==null)if(s=bi(r),s===null)r=null;else if(a=s.tag,a===13){if(r=sm(s),r!==null)return r;r=null}else if(a===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;r=null}else s!==r&&(r=null);return Ql=r,null}function Sm(r){switch(r){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(db()){case cd:return 1;case um:return 4;case zl:case fb:return 16;case dm:return 536870912;default:return 16}default:return 16}}var js=null,vd=null,Zl=null;function bm(){if(Zl)return Zl;var r,s=vd,a=s.length,d,p="value"in js?js.value:js.textContent,g=p.length;for(r=0;r<a&&s[r]===p[r];r++);var j=a-r;for(d=1;d<=j&&s[a-d]===p[g-d];d++);return Zl=p.slice(r,1<d?1-d:void 0)}function ql(r){var s=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&s===13&&(r=13)):r=s,r===10&&(r=13),32<=r||r===13?r:0}function Gl(){return!0}function Cm(){return!1}function On(r){function s(a,d,p,g,j){this._reactName=a,this._targetInst=p,this.type=d,this.nativeEvent=g,this.target=j,this.currentTarget=null;for(var O in r)r.hasOwnProperty(O)&&(a=r[O],this[O]=a?a(g):g[O]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Gl:Cm,this.isPropagationStopped=Cm,this}return q(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Gl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Gl)},persist:function(){},isPersistent:Gl}),s}var fo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yd=On(fo),ka=q({},fo,{view:0,detail:0}),kb=On(ka),xd,wd,Ea,Yl=q({},ka,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bd,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Ea&&(Ea&&r.type==="mousemove"?(xd=r.screenX-Ea.screenX,wd=r.screenY-Ea.screenY):wd=xd=0,Ea=r),xd)},movementY:function(r){return"movementY"in r?r.movementY:wd}}),_m=On(Yl),Eb=q({},Yl,{dataTransfer:0}),jb=On(Eb),Rb=q({},ka,{relatedTarget:0}),Sd=On(Rb),Pb=q({},fo,{animationName:0,elapsedTime:0,pseudoElement:0}),Nb=On(Pb),Tb=q({},fo,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),Ab=On(Tb),Ob=q({},fo,{data:0}),km=On(Ob),Ib={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Mb={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"},Lb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Fb(r){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(r):(r=Lb[r])?!!s[r]:!1}function bd(){return Fb}var Db=q({},ka,{key:function(r){if(r.key){var s=Ib[r.key]||r.key;if(s!=="Unidentified")return s}return r.type==="keypress"?(r=ql(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?Mb[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bd,charCode:function(r){return r.type==="keypress"?ql(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?ql(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),zb=On(Db),Vb=q({},Yl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Em=On(Vb),$b=q({},ka,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bd}),Bb=On($b),Ub=q({},fo,{propertyName:0,elapsedTime:0,pseudoElement:0}),Wb=On(Ub),Hb=q({},Yl,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),Kb=On(Hb),Qb=[9,13,27,32],Cd=c&&"CompositionEvent"in window,ja=null;c&&"documentMode"in document&&(ja=document.documentMode);var Zb=c&&"TextEvent"in window&&!ja,jm=c&&(!Cd||ja&&8<ja&&11>=ja),Rm=" ",Pm=!1;function Nm(r,s){switch(r){case"keyup":return Qb.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tm(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var ho=!1;function qb(r,s){switch(r){case"compositionend":return Tm(s);case"keypress":return s.which!==32?null:(Pm=!0,Rm);case"textInput":return r=s.data,r===Rm&&Pm?null:r;default:return null}}function Gb(r,s){if(ho)return r==="compositionend"||!Cd&&Nm(r,s)?(r=bm(),Zl=vd=js=null,ho=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return jm&&s.locale!=="ko"?null:s.data;default:return null}}var Yb={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Am(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s==="input"?!!Yb[r.type]:s==="textarea"}function Om(r,s,a,d){An(d),s=nc(s,"onChange"),0<s.length&&(a=new yd("onChange","change",null,a,d),r.push({event:a,listeners:s}))}var Ra=null,Pa=null;function Xb(r){Ym(r,0)}function Xl(r){var s=yo(r);if(Ue(s))return r}function Jb(r,s){if(r==="change")return s}var Im=!1;if(c){var _d;if(c){var kd="oninput"in document;if(!kd){var Mm=document.createElement("div");Mm.setAttribute("oninput","return;"),kd=typeof Mm.oninput=="function"}_d=kd}else _d=!1;Im=_d&&(!document.documentMode||9<document.documentMode)}function Lm(){Ra&&(Ra.detachEvent("onpropertychange",Fm),Pa=Ra=null)}function Fm(r){if(r.propertyName==="value"&&Xl(Pa)){var s=[];Om(s,Pa,r,Pt(r)),Dl(Xb,s)}}function e1(r,s,a){r==="focusin"?(Lm(),Ra=s,Pa=a,Ra.attachEvent("onpropertychange",Fm)):r==="focusout"&&Lm()}function t1(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Xl(Pa)}function n1(r,s){if(r==="click")return Xl(s)}function r1(r,s){if(r==="input"||r==="change")return Xl(s)}function s1(r,s){return r===s&&(r!==0||1/r===1/s)||r!==r&&s!==s}var dr=typeof Object.is=="function"?Object.is:s1;function Na(r,s){if(dr(r,s))return!0;if(typeof r!="object"||r===null||typeof s!="object"||s===null)return!1;var a=Object.keys(r),d=Object.keys(s);if(a.length!==d.length)return!1;for(d=0;d<a.length;d++){var p=a[d];if(!h.call(s,p)||!dr(r[p],s[p]))return!1}return!0}function Dm(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function zm(r,s){var a=Dm(r);r=0;for(var d;a;){if(a.nodeType===3){if(d=r+a.textContent.length,r<=s&&d>=s)return{node:a,offset:s-r};r=d}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Dm(a)}}function Vm(r,s){return r&&s?r===s?!0:r&&r.nodeType===3?!1:s&&s.nodeType===3?Vm(r,s.parentNode):"contains"in r?r.contains(s):r.compareDocumentPosition?!!(r.compareDocumentPosition(s)&16):!1:!1}function $m(){for(var r=window,s=ut();s instanceof r.HTMLIFrameElement;){try{var a=typeof s.contentWindow.location.href=="string"}catch{a=!1}if(a)r=s.contentWindow;else break;s=ut(r.document)}return s}function Ed(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s&&(s==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||s==="textarea"||r.contentEditable==="true")}function i1(r){var s=$m(),a=r.focusedElem,d=r.selectionRange;if(s!==a&&a&&a.ownerDocument&&Vm(a.ownerDocument.documentElement,a)){if(d!==null&&Ed(a)){if(s=d.start,r=d.end,r===void 0&&(r=s),"selectionStart"in a)a.selectionStart=s,a.selectionEnd=Math.min(r,a.value.length);else if(r=(s=a.ownerDocument||document)&&s.defaultView||window,r.getSelection){r=r.getSelection();var p=a.textContent.length,g=Math.min(d.start,p);d=d.end===void 0?g:Math.min(d.end,p),!r.extend&&g>d&&(p=d,d=g,g=p),p=zm(a,g);var j=zm(a,d);p&&j&&(r.rangeCount!==1||r.anchorNode!==p.node||r.anchorOffset!==p.offset||r.focusNode!==j.node||r.focusOffset!==j.offset)&&(s=s.createRange(),s.setStart(p.node,p.offset),r.removeAllRanges(),g>d?(r.addRange(s),r.extend(j.node,j.offset)):(s.setEnd(j.node,j.offset),r.addRange(s)))}}for(s=[],r=a;r=r.parentNode;)r.nodeType===1&&s.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<s.length;a++)r=s[a],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var o1=c&&"documentMode"in document&&11>=document.documentMode,po=null,jd=null,Ta=null,Rd=!1;function Bm(r,s,a){var d=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Rd||po==null||po!==ut(d)||(d=po,"selectionStart"in d&&Ed(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Ta&&Na(Ta,d)||(Ta=d,d=nc(jd,"onSelect"),0<d.length&&(s=new yd("onSelect","select",null,s,a),r.push({event:s,listeners:d}),s.target=po)))}function Jl(r,s){var a={};return a[r.toLowerCase()]=s.toLowerCase(),a["Webkit"+r]="webkit"+s,a["Moz"+r]="moz"+s,a}var mo={animationend:Jl("Animation","AnimationEnd"),animationiteration:Jl("Animation","AnimationIteration"),animationstart:Jl("Animation","AnimationStart"),transitionend:Jl("Transition","TransitionEnd")},Pd={},Um={};c&&(Um=document.createElement("div").style,"AnimationEvent"in window||(delete mo.animationend.animation,delete mo.animationiteration.animation,delete mo.animationstart.animation),"TransitionEvent"in window||delete mo.transitionend.transition);function ec(r){if(Pd[r])return Pd[r];if(!mo[r])return r;var s=mo[r],a;for(a in s)if(s.hasOwnProperty(a)&&a in Um)return Pd[r]=s[a];return r}var Wm=ec("animationend"),Hm=ec("animationiteration"),Km=ec("animationstart"),Qm=ec("transitionend"),Zm=new Map,qm="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 Rs(r,s){Zm.set(r,s),l(s,[r])}for(var Nd=0;Nd<qm.length;Nd++){var Td=qm[Nd],a1=Td.toLowerCase(),l1=Td[0].toUpperCase()+Td.slice(1);Rs(a1,"on"+l1)}Rs(Wm,"onAnimationEnd"),Rs(Hm,"onAnimationIteration"),Rs(Km,"onAnimationStart"),Rs("dblclick","onDoubleClick"),Rs("focusin","onFocus"),Rs("focusout","onBlur"),Rs(Qm,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Aa="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(" "),c1=new Set("cancel close invalid load scroll toggle".split(" ").concat(Aa));function Gm(r,s,a){var d=r.type||"unknown-event";r.currentTarget=a,ab(d,s,void 0,r),r.currentTarget=null}function Ym(r,s){s=(s&4)!==0;for(var a=0;a<r.length;a++){var d=r[a],p=d.event;d=d.listeners;e:{var g=void 0;if(s)for(var j=d.length-1;0<=j;j--){var O=d[j],V=O.instance,G=O.currentTarget;if(O=O.listener,V!==g&&p.isPropagationStopped())break e;Gm(p,O,G),g=V}else for(j=0;j<d.length;j++){if(O=d[j],V=O.instance,G=O.currentTarget,O=O.listener,V!==g&&p.isPropagationStopped())break e;Gm(p,O,G),g=V}}}if(Si)throw r=co,Si=!1,co=null,r}function xt(r,s){var a=s[zd];a===void 0&&(a=s[zd]=new Set);var d=r+"__bubble";a.has(d)||(Xm(s,r,2,!1),a.add(d))}function Ad(r,s,a){var d=0;s&&(d|=4),Xm(a,r,d,s)}var tc="_reactListening"+Math.random().toString(36).slice(2);function Oa(r){if(!r[tc]){r[tc]=!0,i.forEach(function(a){a!=="selectionchange"&&(c1.has(a)||Ad(a,!1,r),Ad(a,!0,r))});var s=r.nodeType===9?r:r.ownerDocument;s===null||s[tc]||(s[tc]=!0,Ad("selectionchange",!1,s))}}function Xm(r,s,a,d){switch(Sm(s)){case 1:var p=Cb;break;case 4:p=_b;break;default:p=md}a=p.bind(null,s,a,r),p=void 0,!Ss||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(p=!0),d?p!==void 0?r.addEventListener(s,a,{capture:!0,passive:p}):r.addEventListener(s,a,!0):p!==void 0?r.addEventListener(s,a,{passive:p}):r.addEventListener(s,a,!1)}function Od(r,s,a,d,p){var g=d;if((s&1)===0&&(s&2)===0&&d!==null)e:for(;;){if(d===null)return;var j=d.tag;if(j===3||j===4){var O=d.stateNode.containerInfo;if(O===p||O.nodeType===8&&O.parentNode===p)break;if(j===4)for(j=d.return;j!==null;){var V=j.tag;if((V===3||V===4)&&(V=j.stateNode.containerInfo,V===p||V.nodeType===8&&V.parentNode===p))return;j=j.return}for(;O!==null;){if(j=Ci(O),j===null)return;if(V=j.tag,V===5||V===6){d=g=j;continue e}O=O.parentNode}}d=d.return}Dl(function(){var G=g,oe=Pt(a),ae=[];e:{var ie=Zm.get(r);if(ie!==void 0){var ye=yd,be=r;switch(r){case"keypress":if(ql(a)===0)break e;case"keydown":case"keyup":ye=zb;break;case"focusin":be="focus",ye=Sd;break;case"focusout":be="blur",ye=Sd;break;case"beforeblur":case"afterblur":ye=Sd;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ye=_m;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ye=jb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ye=Bb;break;case Wm:case Hm:case Km:ye=Nb;break;case Qm:ye=Wb;break;case"scroll":ye=kb;break;case"wheel":ye=Kb;break;case"copy":case"cut":case"paste":ye=Ab;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ye=Em}var _e=(s&4)!==0,Ft=!_e&&r==="scroll",U=_e?ie!==null?ie+"Capture":null:ie;_e=[];for(var $=G,K;$!==null;){K=$;var ue=K.stateNode;if(K.tag===5&&ue!==null&&(K=ue,U!==null&&(ue=Kr($,U),ue!=null&&_e.push(Ia($,ue,K)))),Ft)break;$=$.return}0<_e.length&&(ie=new ye(ie,be,null,a,oe),ae.push({event:ie,listeners:_e}))}}if((s&7)===0){e:{if(ie=r==="mouseover"||r==="pointerover",ye=r==="mouseout"||r==="pointerout",ie&&a!==vt&&(be=a.relatedTarget||a.fromElement)&&(Ci(be)||be[Qr]))break e;if((ye||ie)&&(ie=oe.window===oe?oe:(ie=oe.ownerDocument)?ie.defaultView||ie.parentWindow:window,ye?(be=a.relatedTarget||a.toElement,ye=G,be=be?Ci(be):null,be!==null&&(Ft=bi(be),be!==Ft||be.tag!==5&&be.tag!==6)&&(be=null)):(ye=null,be=G),ye!==be)){if(_e=_m,ue="onMouseLeave",U="onMouseEnter",$="mouse",(r==="pointerout"||r==="pointerover")&&(_e=Em,ue="onPointerLeave",U="onPointerEnter",$="pointer"),Ft=ye==null?ie:yo(ye),K=be==null?ie:yo(be),ie=new _e(ue,$+"leave",ye,a,oe),ie.target=Ft,ie.relatedTarget=K,ue=null,Ci(oe)===G&&(_e=new _e(U,$+"enter",be,a,oe),_e.target=K,_e.relatedTarget=Ft,ue=_e),Ft=ue,ye&&be)t:{for(_e=ye,U=be,$=0,K=_e;K;K=go(K))$++;for(K=0,ue=U;ue;ue=go(ue))K++;for(;0<$-K;)_e=go(_e),$--;for(;0<K-$;)U=go(U),K--;for(;$--;){if(_e===U||U!==null&&_e===U.alternate)break t;_e=go(_e),U=go(U)}_e=null}else _e=null;ye!==null&&Jm(ae,ie,ye,_e,!1),be!==null&&Ft!==null&&Jm(ae,Ft,be,_e,!0)}}e:{if(ie=G?yo(G):window,ye=ie.nodeName&&ie.nodeName.toLowerCase(),ye==="select"||ye==="input"&&ie.type==="file")var Ee=Jb;else if(Am(ie))if(Im)Ee=r1;else{Ee=t1;var Oe=e1}else(ye=ie.nodeName)&&ye.toLowerCase()==="input"&&(ie.type==="checkbox"||ie.type==="radio")&&(Ee=n1);if(Ee&&(Ee=Ee(r,G))){Om(ae,Ee,a,oe);break e}Oe&&Oe(r,ie,G),r==="focusout"&&(Oe=ie._wrapperState)&&Oe.controlled&&ie.type==="number"&&Rt(ie,"number",ie.value)}switch(Oe=G?yo(G):window,r){case"focusin":(Am(Oe)||Oe.contentEditable==="true")&&(po=Oe,jd=G,Ta=null);break;case"focusout":Ta=jd=po=null;break;case"mousedown":Rd=!0;break;case"contextmenu":case"mouseup":case"dragend":Rd=!1,Bm(ae,a,oe);break;case"selectionchange":if(o1)break;case"keydown":case"keyup":Bm(ae,a,oe)}var Ie;if(Cd)e:{switch(r){case"compositionstart":var Fe="onCompositionStart";break e;case"compositionend":Fe="onCompositionEnd";break e;case"compositionupdate":Fe="onCompositionUpdate";break e}Fe=void 0}else ho?Nm(r,a)&&(Fe="onCompositionEnd"):r==="keydown"&&a.keyCode===229&&(Fe="onCompositionStart");Fe&&(jm&&a.locale!=="ko"&&(ho||Fe!=="onCompositionStart"?Fe==="onCompositionEnd"&&ho&&(Ie=bm()):(js=oe,vd="value"in js?js.value:js.textContent,ho=!0)),Oe=nc(G,Fe),0<Oe.length&&(Fe=new km(Fe,r,null,a,oe),ae.push({event:Fe,listeners:Oe}),Ie?Fe.data=Ie:(Ie=Tm(a),Ie!==null&&(Fe.data=Ie)))),(Ie=Zb?qb(r,a):Gb(r,a))&&(G=nc(G,"onBeforeInput"),0<G.length&&(oe=new km("onBeforeInput","beforeinput",null,a,oe),ae.push({event:oe,listeners:G}),oe.data=Ie))}Ym(ae,s)})}function Ia(r,s,a){return{instance:r,listener:s,currentTarget:a}}function nc(r,s){for(var a=s+"Capture",d=[];r!==null;){var p=r,g=p.stateNode;p.tag===5&&g!==null&&(p=g,g=Kr(r,a),g!=null&&d.unshift(Ia(r,g,p)),g=Kr(r,s),g!=null&&d.push(Ia(r,g,p))),r=r.return}return d}function go(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function Jm(r,s,a,d,p){for(var g=s._reactName,j=[];a!==null&&a!==d;){var O=a,V=O.alternate,G=O.stateNode;if(V!==null&&V===d)break;O.tag===5&&G!==null&&(O=G,p?(V=Kr(a,g),V!=null&&j.unshift(Ia(a,V,O))):p||(V=Kr(a,g),V!=null&&j.push(Ia(a,V,O)))),a=a.return}j.length!==0&&r.push({event:s,listeners:j})}var u1=/\r\n?/g,d1=/\u0000|\uFFFD/g;function eg(r){return(typeof r=="string"?r:""+r).replace(u1,`
|
|
38
|
-
`).replace(d1,"")}function rc(r,s,a){if(s=eg(s),eg(r)!==s&&a)throw Error(n(425))}function sc(){}var Id=null,Md=null;function Ld(r,s){return r==="textarea"||r==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Fd=typeof setTimeout=="function"?setTimeout:void 0,f1=typeof clearTimeout=="function"?clearTimeout:void 0,tg=typeof Promise=="function"?Promise:void 0,h1=typeof queueMicrotask=="function"?queueMicrotask:typeof tg<"u"?function(r){return tg.resolve(null).then(r).catch(p1)}:Fd;function p1(r){setTimeout(function(){throw r})}function Dd(r,s){var a=s,d=0;do{var p=a.nextSibling;if(r.removeChild(a),p&&p.nodeType===8)if(a=p.data,a==="/$"){if(d===0){r.removeChild(p),_a(s);return}d--}else a!=="$"&&a!=="$?"&&a!=="$!"||d++;a=p}while(a);_a(s)}function Ps(r){for(;r!=null;r=r.nextSibling){var s=r.nodeType;if(s===1||s===3)break;if(s===8){if(s=r.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return r}function ng(r){r=r.previousSibling;for(var s=0;r;){if(r.nodeType===8){var a=r.data;if(a==="$"||a==="$!"||a==="$?"){if(s===0)return r;s--}else a==="/$"&&s++}r=r.previousSibling}return null}var vo=Math.random().toString(36).slice(2),Rr="__reactFiber$"+vo,Ma="__reactProps$"+vo,Qr="__reactContainer$"+vo,zd="__reactEvents$"+vo,m1="__reactListeners$"+vo,g1="__reactHandles$"+vo;function Ci(r){var s=r[Rr];if(s)return s;for(var a=r.parentNode;a;){if(s=a[Qr]||a[Rr]){if(a=s.alternate,s.child!==null||a!==null&&a.child!==null)for(r=ng(r);r!==null;){if(a=r[Rr])return a;r=ng(r)}return s}r=a,a=r.parentNode}return null}function La(r){return r=r[Rr]||r[Qr],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function yo(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function ic(r){return r[Ma]||null}var Vd=[],xo=-1;function Ns(r){return{current:r}}function wt(r){0>xo||(r.current=Vd[xo],Vd[xo]=null,xo--)}function yt(r,s){xo++,Vd[xo]=r.current,r.current=s}var Ts={},nn=Ns(Ts),yn=Ns(!1),_i=Ts;function wo(r,s){var a=r.type.contextTypes;if(!a)return Ts;var d=r.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===s)return d.__reactInternalMemoizedMaskedChildContext;var p={},g;for(g in a)p[g]=s[g];return d&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=s,r.__reactInternalMemoizedMaskedChildContext=p),p}function xn(r){return r=r.childContextTypes,r!=null}function oc(){wt(yn),wt(nn)}function rg(r,s,a){if(nn.current!==Ts)throw Error(n(168));yt(nn,s),yt(yn,a)}function sg(r,s,a){var d=r.stateNode;if(s=s.childContextTypes,typeof d.getChildContext!="function")return a;d=d.getChildContext();for(var p in d)if(!(p in s))throw Error(n(108,ce(r)||"Unknown",p));return q({},a,d)}function ac(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||Ts,_i=nn.current,yt(nn,r),yt(yn,yn.current),!0}function ig(r,s,a){var d=r.stateNode;if(!d)throw Error(n(169));a?(r=sg(r,s,_i),d.__reactInternalMemoizedMergedChildContext=r,wt(yn),wt(nn),yt(nn,r)):wt(yn),yt(yn,a)}var Zr=null,lc=!1,$d=!1;function og(r){Zr===null?Zr=[r]:Zr.push(r)}function v1(r){lc=!0,og(r)}function As(){if(!$d&&Zr!==null){$d=!0;var r=0,s=pt;try{var a=Zr;for(pt=1;r<a.length;r++){var d=a[r];do d=d(!0);while(d!==null)}Zr=null,lc=!1}catch(p){throw Zr!==null&&(Zr=Zr.slice(r+1)),lm(cd,As),p}finally{pt=s,$d=!1}}return null}var So=[],bo=0,cc=null,uc=0,qn=[],Gn=0,ki=null,qr=1,Gr="";function Ei(r,s){So[bo++]=uc,So[bo++]=cc,cc=r,uc=s}function ag(r,s,a){qn[Gn++]=qr,qn[Gn++]=Gr,qn[Gn++]=ki,ki=r;var d=qr;r=Gr;var p=32-ur(d)-1;d&=~(1<<p),a+=1;var g=32-ur(s)+p;if(30<g){var j=p-p%5;g=(d&(1<<j)-1).toString(32),d>>=j,p-=j,qr=1<<32-ur(s)+p|a<<p|d,Gr=g+r}else qr=1<<g|a<<p|d,Gr=r}function Bd(r){r.return!==null&&(Ei(r,1),ag(r,1,0))}function Ud(r){for(;r===cc;)cc=So[--bo],So[bo]=null,uc=So[--bo],So[bo]=null;for(;r===ki;)ki=qn[--Gn],qn[Gn]=null,Gr=qn[--Gn],qn[Gn]=null,qr=qn[--Gn],qn[Gn]=null}var In=null,Mn=null,bt=!1,fr=null;function lg(r,s){var a=er(5,null,null,0);a.elementType="DELETED",a.stateNode=s,a.return=r,s=r.deletions,s===null?(r.deletions=[a],r.flags|=16):s.push(a)}function cg(r,s){switch(r.tag){case 5:var a=r.type;return s=s.nodeType!==1||a.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(r.stateNode=s,In=r,Mn=Ps(s.firstChild),!0):!1;case 6:return s=r.pendingProps===""||s.nodeType!==3?null:s,s!==null?(r.stateNode=s,In=r,Mn=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(a=ki!==null?{id:qr,overflow:Gr}:null,r.memoizedState={dehydrated:s,treeContext:a,retryLane:1073741824},a=er(18,null,null,0),a.stateNode=s,a.return=r,r.child=a,In=r,Mn=null,!0):!1;default:return!1}}function Wd(r){return(r.mode&1)!==0&&(r.flags&128)===0}function Hd(r){if(bt){var s=Mn;if(s){var a=s;if(!cg(r,s)){if(Wd(r))throw Error(n(418));s=Ps(a.nextSibling);var d=In;s&&cg(r,s)?lg(d,a):(r.flags=r.flags&-4097|2,bt=!1,In=r)}}else{if(Wd(r))throw Error(n(418));r.flags=r.flags&-4097|2,bt=!1,In=r}}}function ug(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;In=r}function dc(r){if(r!==In)return!1;if(!bt)return ug(r),bt=!0,!1;var s;if((s=r.tag!==3)&&!(s=r.tag!==5)&&(s=r.type,s=s!=="head"&&s!=="body"&&!Ld(r.type,r.memoizedProps)),s&&(s=Mn)){if(Wd(r))throw dg(),Error(n(418));for(;s;)lg(r,s),s=Ps(s.nextSibling)}if(ug(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,s=0;r;){if(r.nodeType===8){var a=r.data;if(a==="/$"){if(s===0){Mn=Ps(r.nextSibling);break e}s--}else a!=="$"&&a!=="$!"&&a!=="$?"||s++}r=r.nextSibling}Mn=null}}else Mn=In?Ps(r.stateNode.nextSibling):null;return!0}function dg(){for(var r=Mn;r;)r=Ps(r.nextSibling)}function Co(){Mn=In=null,bt=!1}function Kd(r){fr===null?fr=[r]:fr.push(r)}var y1=R.ReactCurrentBatchConfig;function Fa(r,s,a){if(r=a.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(n(309));var d=a.stateNode}if(!d)throw Error(n(147,r));var p=d,g=""+r;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===g?s.ref:(s=function(j){var O=p.refs;j===null?delete O[g]:O[g]=j},s._stringRef=g,s)}if(typeof r!="string")throw Error(n(284));if(!a._owner)throw Error(n(290,r))}return r}function fc(r,s){throw r=Object.prototype.toString.call(s),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":r))}function fg(r){var s=r._init;return s(r._payload)}function hg(r){function s(U,$){if(r){var K=U.deletions;K===null?(U.deletions=[$],U.flags|=16):K.push($)}}function a(U,$){if(!r)return null;for(;$!==null;)s(U,$),$=$.sibling;return null}function d(U,$){for(U=new Map;$!==null;)$.key!==null?U.set($.key,$):U.set($.index,$),$=$.sibling;return U}function p(U,$){return U=Vs(U,$),U.index=0,U.sibling=null,U}function g(U,$,K){return U.index=K,r?(K=U.alternate,K!==null?(K=K.index,K<$?(U.flags|=2,$):K):(U.flags|=2,$)):(U.flags|=1048576,$)}function j(U){return r&&U.alternate===null&&(U.flags|=2),U}function O(U,$,K,ue){return $===null||$.tag!==6?($=Df(K,U.mode,ue),$.return=U,$):($=p($,K),$.return=U,$)}function V(U,$,K,ue){var Ee=K.type;return Ee===A?oe(U,$,K.props.children,ue,K.key):$!==null&&($.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===Z&&fg(Ee)===$.type)?(ue=p($,K.props),ue.ref=Fa(U,$,K),ue.return=U,ue):(ue=Lc(K.type,K.key,K.props,null,U.mode,ue),ue.ref=Fa(U,$,K),ue.return=U,ue)}function G(U,$,K,ue){return $===null||$.tag!==4||$.stateNode.containerInfo!==K.containerInfo||$.stateNode.implementation!==K.implementation?($=zf(K,U.mode,ue),$.return=U,$):($=p($,K.children||[]),$.return=U,$)}function oe(U,$,K,ue,Ee){return $===null||$.tag!==7?($=Ii(K,U.mode,ue,Ee),$.return=U,$):($=p($,K),$.return=U,$)}function ae(U,$,K){if(typeof $=="string"&&$!==""||typeof $=="number")return $=Df(""+$,U.mode,K),$.return=U,$;if(typeof $=="object"&&$!==null){switch($.$$typeof){case N:return K=Lc($.type,$.key,$.props,null,U.mode,K),K.ref=Fa(U,null,$),K.return=U,K;case T:return $=zf($,U.mode,K),$.return=U,$;case Z:var ue=$._init;return ae(U,ue($._payload),K)}if(Nn($)||te($))return $=Ii($,U.mode,K,null),$.return=U,$;fc(U,$)}return null}function ie(U,$,K,ue){var Ee=$!==null?$.key:null;if(typeof K=="string"&&K!==""||typeof K=="number")return Ee!==null?null:O(U,$,""+K,ue);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case N:return K.key===Ee?V(U,$,K,ue):null;case T:return K.key===Ee?G(U,$,K,ue):null;case Z:return Ee=K._init,ie(U,$,Ee(K._payload),ue)}if(Nn(K)||te(K))return Ee!==null?null:oe(U,$,K,ue,null);fc(U,K)}return null}function ye(U,$,K,ue,Ee){if(typeof ue=="string"&&ue!==""||typeof ue=="number")return U=U.get(K)||null,O($,U,""+ue,Ee);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case N:return U=U.get(ue.key===null?K:ue.key)||null,V($,U,ue,Ee);case T:return U=U.get(ue.key===null?K:ue.key)||null,G($,U,ue,Ee);case Z:var Oe=ue._init;return ye(U,$,K,Oe(ue._payload),Ee)}if(Nn(ue)||te(ue))return U=U.get(K)||null,oe($,U,ue,Ee,null);fc($,ue)}return null}function be(U,$,K,ue){for(var Ee=null,Oe=null,Ie=$,Fe=$=0,qt=null;Ie!==null&&Fe<K.length;Fe++){Ie.index>Fe?(qt=Ie,Ie=null):qt=Ie.sibling;var rt=ie(U,Ie,K[Fe],ue);if(rt===null){Ie===null&&(Ie=qt);break}r&&Ie&&rt.alternate===null&&s(U,Ie),$=g(rt,$,Fe),Oe===null?Ee=rt:Oe.sibling=rt,Oe=rt,Ie=qt}if(Fe===K.length)return a(U,Ie),bt&&Ei(U,Fe),Ee;if(Ie===null){for(;Fe<K.length;Fe++)Ie=ae(U,K[Fe],ue),Ie!==null&&($=g(Ie,$,Fe),Oe===null?Ee=Ie:Oe.sibling=Ie,Oe=Ie);return bt&&Ei(U,Fe),Ee}for(Ie=d(U,Ie);Fe<K.length;Fe++)qt=ye(Ie,U,Fe,K[Fe],ue),qt!==null&&(r&&qt.alternate!==null&&Ie.delete(qt.key===null?Fe:qt.key),$=g(qt,$,Fe),Oe===null?Ee=qt:Oe.sibling=qt,Oe=qt);return r&&Ie.forEach(function($s){return s(U,$s)}),bt&&Ei(U,Fe),Ee}function _e(U,$,K,ue){var Ee=te(K);if(typeof Ee!="function")throw Error(n(150));if(K=Ee.call(K),K==null)throw Error(n(151));for(var Oe=Ee=null,Ie=$,Fe=$=0,qt=null,rt=K.next();Ie!==null&&!rt.done;Fe++,rt=K.next()){Ie.index>Fe?(qt=Ie,Ie=null):qt=Ie.sibling;var $s=ie(U,Ie,rt.value,ue);if($s===null){Ie===null&&(Ie=qt);break}r&&Ie&&$s.alternate===null&&s(U,Ie),$=g($s,$,Fe),Oe===null?Ee=$s:Oe.sibling=$s,Oe=$s,Ie=qt}if(rt.done)return a(U,Ie),bt&&Ei(U,Fe),Ee;if(Ie===null){for(;!rt.done;Fe++,rt=K.next())rt=ae(U,rt.value,ue),rt!==null&&($=g(rt,$,Fe),Oe===null?Ee=rt:Oe.sibling=rt,Oe=rt);return bt&&Ei(U,Fe),Ee}for(Ie=d(U,Ie);!rt.done;Fe++,rt=K.next())rt=ye(Ie,U,Fe,rt.value,ue),rt!==null&&(r&&rt.alternate!==null&&Ie.delete(rt.key===null?Fe:rt.key),$=g(rt,$,Fe),Oe===null?Ee=rt:Oe.sibling=rt,Oe=rt);return r&&Ie.forEach(function(Y1){return s(U,Y1)}),bt&&Ei(U,Fe),Ee}function Ft(U,$,K,ue){if(typeof K=="object"&&K!==null&&K.type===A&&K.key===null&&(K=K.props.children),typeof K=="object"&&K!==null){switch(K.$$typeof){case N:e:{for(var Ee=K.key,Oe=$;Oe!==null;){if(Oe.key===Ee){if(Ee=K.type,Ee===A){if(Oe.tag===7){a(U,Oe.sibling),$=p(Oe,K.props.children),$.return=U,U=$;break e}}else if(Oe.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===Z&&fg(Ee)===Oe.type){a(U,Oe.sibling),$=p(Oe,K.props),$.ref=Fa(U,Oe,K),$.return=U,U=$;break e}a(U,Oe);break}else s(U,Oe);Oe=Oe.sibling}K.type===A?($=Ii(K.props.children,U.mode,ue,K.key),$.return=U,U=$):(ue=Lc(K.type,K.key,K.props,null,U.mode,ue),ue.ref=Fa(U,$,K),ue.return=U,U=ue)}return j(U);case T:e:{for(Oe=K.key;$!==null;){if($.key===Oe)if($.tag===4&&$.stateNode.containerInfo===K.containerInfo&&$.stateNode.implementation===K.implementation){a(U,$.sibling),$=p($,K.children||[]),$.return=U,U=$;break e}else{a(U,$);break}else s(U,$);$=$.sibling}$=zf(K,U.mode,ue),$.return=U,U=$}return j(U);case Z:return Oe=K._init,Ft(U,$,Oe(K._payload),ue)}if(Nn(K))return be(U,$,K,ue);if(te(K))return _e(U,$,K,ue);fc(U,K)}return typeof K=="string"&&K!==""||typeof K=="number"?(K=""+K,$!==null&&$.tag===6?(a(U,$.sibling),$=p($,K),$.return=U,U=$):(a(U,$),$=Df(K,U.mode,ue),$.return=U,U=$),j(U)):a(U,$)}return Ft}var _o=hg(!0),pg=hg(!1),hc=Ns(null),pc=null,ko=null,Qd=null;function Zd(){Qd=ko=pc=null}function qd(r){var s=hc.current;wt(hc),r._currentValue=s}function Gd(r,s,a){for(;r!==null;){var d=r.alternate;if((r.childLanes&s)!==s?(r.childLanes|=s,d!==null&&(d.childLanes|=s)):d!==null&&(d.childLanes&s)!==s&&(d.childLanes|=s),r===a)break;r=r.return}}function Eo(r,s){pc=r,Qd=ko=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&s)!==0&&(wn=!0),r.firstContext=null)}function Yn(r){var s=r._currentValue;if(Qd!==r)if(r={context:r,memoizedValue:s,next:null},ko===null){if(pc===null)throw Error(n(308));ko=r,pc.dependencies={lanes:0,firstContext:r}}else ko=ko.next=r;return s}var ji=null;function Yd(r){ji===null?ji=[r]:ji.push(r)}function mg(r,s,a,d){var p=s.interleaved;return p===null?(a.next=a,Yd(s)):(a.next=p.next,p.next=a),s.interleaved=a,Yr(r,d)}function Yr(r,s){r.lanes|=s;var a=r.alternate;for(a!==null&&(a.lanes|=s),a=r,r=r.return;r!==null;)r.childLanes|=s,a=r.alternate,a!==null&&(a.childLanes|=s),a=r,r=r.return;return a.tag===3?a.stateNode:null}var Os=!1;function Xd(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function gg(r,s){r=r.updateQueue,s.updateQueue===r&&(s.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function Xr(r,s){return{eventTime:r,lane:s,tag:0,payload:null,callback:null,next:null}}function Is(r,s,a){var d=r.updateQueue;if(d===null)return null;if(d=d.shared,(tt&2)!==0){var p=d.pending;return p===null?s.next=s:(s.next=p.next,p.next=s),d.pending=s,Yr(r,a)}return p=d.interleaved,p===null?(s.next=s,Yd(d)):(s.next=p.next,p.next=s),d.interleaved=s,Yr(r,a)}function mc(r,s,a){if(s=s.updateQueue,s!==null&&(s=s.shared,(a&4194240)!==0)){var d=s.lanes;d&=r.pendingLanes,a|=d,s.lanes=a,fd(r,a)}}function vg(r,s){var a=r.updateQueue,d=r.alternate;if(d!==null&&(d=d.updateQueue,a===d)){var p=null,g=null;if(a=a.firstBaseUpdate,a!==null){do{var j={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};g===null?p=g=j:g=g.next=j,a=a.next}while(a!==null);g===null?p=g=s:g=g.next=s}else p=g=s;a={baseState:d.baseState,firstBaseUpdate:p,lastBaseUpdate:g,shared:d.shared,effects:d.effects},r.updateQueue=a;return}r=a.lastBaseUpdate,r===null?a.firstBaseUpdate=s:r.next=s,a.lastBaseUpdate=s}function gc(r,s,a,d){var p=r.updateQueue;Os=!1;var g=p.firstBaseUpdate,j=p.lastBaseUpdate,O=p.shared.pending;if(O!==null){p.shared.pending=null;var V=O,G=V.next;V.next=null,j===null?g=G:j.next=G,j=V;var oe=r.alternate;oe!==null&&(oe=oe.updateQueue,O=oe.lastBaseUpdate,O!==j&&(O===null?oe.firstBaseUpdate=G:O.next=G,oe.lastBaseUpdate=V))}if(g!==null){var ae=p.baseState;j=0,oe=G=V=null,O=g;do{var ie=O.lane,ye=O.eventTime;if((d&ie)===ie){oe!==null&&(oe=oe.next={eventTime:ye,lane:0,tag:O.tag,payload:O.payload,callback:O.callback,next:null});e:{var be=r,_e=O;switch(ie=s,ye=a,_e.tag){case 1:if(be=_e.payload,typeof be=="function"){ae=be.call(ye,ae,ie);break e}ae=be;break e;case 3:be.flags=be.flags&-65537|128;case 0:if(be=_e.payload,ie=typeof be=="function"?be.call(ye,ae,ie):be,ie==null)break e;ae=q({},ae,ie);break e;case 2:Os=!0}}O.callback!==null&&O.lane!==0&&(r.flags|=64,ie=p.effects,ie===null?p.effects=[O]:ie.push(O))}else ye={eventTime:ye,lane:ie,tag:O.tag,payload:O.payload,callback:O.callback,next:null},oe===null?(G=oe=ye,V=ae):oe=oe.next=ye,j|=ie;if(O=O.next,O===null){if(O=p.shared.pending,O===null)break;ie=O,O=ie.next,ie.next=null,p.lastBaseUpdate=ie,p.shared.pending=null}}while(!0);if(oe===null&&(V=ae),p.baseState=V,p.firstBaseUpdate=G,p.lastBaseUpdate=oe,s=p.shared.interleaved,s!==null){p=s;do j|=p.lane,p=p.next;while(p!==s)}else g===null&&(p.shared.lanes=0);Ni|=j,r.lanes=j,r.memoizedState=ae}}function yg(r,s,a){if(r=s.effects,s.effects=null,r!==null)for(s=0;s<r.length;s++){var d=r[s],p=d.callback;if(p!==null){if(d.callback=null,d=a,typeof p!="function")throw Error(n(191,p));p.call(d)}}}var Da={},Pr=Ns(Da),za=Ns(Da),Va=Ns(Da);function Ri(r){if(r===Da)throw Error(n(174));return r}function Jd(r,s){switch(yt(Va,s),yt(za,r),yt(Pr,Da),r=s.nodeType,r){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:he(null,"");break;default:r=r===8?s.parentNode:s,s=r.namespaceURI||null,r=r.tagName,s=he(s,r)}wt(Pr),yt(Pr,s)}function jo(){wt(Pr),wt(za),wt(Va)}function xg(r){Ri(Va.current);var s=Ri(Pr.current),a=he(s,r.type);s!==a&&(yt(za,r),yt(Pr,a))}function ef(r){za.current===r&&(wt(Pr),wt(za))}var kt=Ns(0);function vc(r){for(var s=r;s!==null;){if(s.tag===13){var a=s.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var tf=[];function nf(){for(var r=0;r<tf.length;r++)tf[r]._workInProgressVersionPrimary=null;tf.length=0}var yc=R.ReactCurrentDispatcher,rf=R.ReactCurrentBatchConfig,Pi=0,Et=null,Ut=null,Qt=null,xc=!1,$a=!1,Ba=0,x1=0;function rn(){throw Error(n(321))}function sf(r,s){if(s===null)return!1;for(var a=0;a<s.length&&a<r.length;a++)if(!dr(r[a],s[a]))return!1;return!0}function of(r,s,a,d,p,g){if(Pi=g,Et=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,yc.current=r===null||r.memoizedState===null?C1:_1,r=a(d,p),$a){g=0;do{if($a=!1,Ba=0,25<=g)throw Error(n(301));g+=1,Qt=Ut=null,s.updateQueue=null,yc.current=k1,r=a(d,p)}while($a)}if(yc.current=bc,s=Ut!==null&&Ut.next!==null,Pi=0,Qt=Ut=Et=null,xc=!1,s)throw Error(n(300));return r}function af(){var r=Ba!==0;return Ba=0,r}function Nr(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qt===null?Et.memoizedState=Qt=r:Qt=Qt.next=r,Qt}function Xn(){if(Ut===null){var r=Et.alternate;r=r!==null?r.memoizedState:null}else r=Ut.next;var s=Qt===null?Et.memoizedState:Qt.next;if(s!==null)Qt=s,Ut=r;else{if(r===null)throw Error(n(310));Ut=r,r={memoizedState:Ut.memoizedState,baseState:Ut.baseState,baseQueue:Ut.baseQueue,queue:Ut.queue,next:null},Qt===null?Et.memoizedState=Qt=r:Qt=Qt.next=r}return Qt}function Ua(r,s){return typeof s=="function"?s(r):s}function lf(r){var s=Xn(),a=s.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=r;var d=Ut,p=d.baseQueue,g=a.pending;if(g!==null){if(p!==null){var j=p.next;p.next=g.next,g.next=j}d.baseQueue=p=g,a.pending=null}if(p!==null){g=p.next,d=d.baseState;var O=j=null,V=null,G=g;do{var oe=G.lane;if((Pi&oe)===oe)V!==null&&(V=V.next={lane:0,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null}),d=G.hasEagerState?G.eagerState:r(d,G.action);else{var ae={lane:oe,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null};V===null?(O=V=ae,j=d):V=V.next=ae,Et.lanes|=oe,Ni|=oe}G=G.next}while(G!==null&&G!==g);V===null?j=d:V.next=O,dr(d,s.memoizedState)||(wn=!0),s.memoizedState=d,s.baseState=j,s.baseQueue=V,a.lastRenderedState=d}if(r=a.interleaved,r!==null){p=r;do g=p.lane,Et.lanes|=g,Ni|=g,p=p.next;while(p!==r)}else p===null&&(a.lanes=0);return[s.memoizedState,a.dispatch]}function cf(r){var s=Xn(),a=s.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=r;var d=a.dispatch,p=a.pending,g=s.memoizedState;if(p!==null){a.pending=null;var j=p=p.next;do g=r(g,j.action),j=j.next;while(j!==p);dr(g,s.memoizedState)||(wn=!0),s.memoizedState=g,s.baseQueue===null&&(s.baseState=g),a.lastRenderedState=g}return[g,d]}function wg(){}function Sg(r,s){var a=Et,d=Xn(),p=s(),g=!dr(d.memoizedState,p);if(g&&(d.memoizedState=p,wn=!0),d=d.queue,uf(_g.bind(null,a,d,r),[r]),d.getSnapshot!==s||g||Qt!==null&&Qt.memoizedState.tag&1){if(a.flags|=2048,Wa(9,Cg.bind(null,a,d,p,s),void 0,null),Zt===null)throw Error(n(349));(Pi&30)!==0||bg(a,s,p)}return p}function bg(r,s,a){r.flags|=16384,r={getSnapshot:s,value:a},s=Et.updateQueue,s===null?(s={lastEffect:null,stores:null},Et.updateQueue=s,s.stores=[r]):(a=s.stores,a===null?s.stores=[r]:a.push(r))}function Cg(r,s,a,d){s.value=a,s.getSnapshot=d,kg(s)&&Eg(r)}function _g(r,s,a){return a(function(){kg(s)&&Eg(r)})}function kg(r){var s=r.getSnapshot;r=r.value;try{var a=s();return!dr(r,a)}catch{return!0}}function Eg(r){var s=Yr(r,1);s!==null&&gr(s,r,1,-1)}function jg(r){var s=Nr();return typeof r=="function"&&(r=r()),s.memoizedState=s.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ua,lastRenderedState:r},s.queue=r,r=r.dispatch=b1.bind(null,Et,r),[s.memoizedState,r]}function Wa(r,s,a,d){return r={tag:r,create:s,destroy:a,deps:d,next:null},s=Et.updateQueue,s===null?(s={lastEffect:null,stores:null},Et.updateQueue=s,s.lastEffect=r.next=r):(a=s.lastEffect,a===null?s.lastEffect=r.next=r:(d=a.next,a.next=r,r.next=d,s.lastEffect=r)),r}function Rg(){return Xn().memoizedState}function wc(r,s,a,d){var p=Nr();Et.flags|=r,p.memoizedState=Wa(1|s,a,void 0,d===void 0?null:d)}function Sc(r,s,a,d){var p=Xn();d=d===void 0?null:d;var g=void 0;if(Ut!==null){var j=Ut.memoizedState;if(g=j.destroy,d!==null&&sf(d,j.deps)){p.memoizedState=Wa(s,a,g,d);return}}Et.flags|=r,p.memoizedState=Wa(1|s,a,g,d)}function Pg(r,s){return wc(8390656,8,r,s)}function uf(r,s){return Sc(2048,8,r,s)}function Ng(r,s){return Sc(4,2,r,s)}function Tg(r,s){return Sc(4,4,r,s)}function Ag(r,s){if(typeof s=="function")return r=r(),s(r),function(){s(null)};if(s!=null)return r=r(),s.current=r,function(){s.current=null}}function Og(r,s,a){return a=a!=null?a.concat([r]):null,Sc(4,4,Ag.bind(null,s,r),a)}function df(){}function Ig(r,s){var a=Xn();s=s===void 0?null:s;var d=a.memoizedState;return d!==null&&s!==null&&sf(s,d[1])?d[0]:(a.memoizedState=[r,s],r)}function Mg(r,s){var a=Xn();s=s===void 0?null:s;var d=a.memoizedState;return d!==null&&s!==null&&sf(s,d[1])?d[0]:(r=r(),a.memoizedState=[r,s],r)}function Lg(r,s,a){return(Pi&21)===0?(r.baseState&&(r.baseState=!1,wn=!0),r.memoizedState=a):(dr(a,s)||(a=fm(),Et.lanes|=a,Ni|=a,r.baseState=!0),s)}function w1(r,s){var a=pt;pt=a!==0&&4>a?a:4,r(!0);var d=rf.transition;rf.transition={};try{r(!1),s()}finally{pt=a,rf.transition=d}}function Fg(){return Xn().memoizedState}function S1(r,s,a){var d=Ds(r);if(a={lane:d,action:a,hasEagerState:!1,eagerState:null,next:null},Dg(r))zg(s,a);else if(a=mg(r,s,a,d),a!==null){var p=pn();gr(a,r,d,p),Vg(a,s,d)}}function b1(r,s,a){var d=Ds(r),p={lane:d,action:a,hasEagerState:!1,eagerState:null,next:null};if(Dg(r))zg(s,p);else{var g=r.alternate;if(r.lanes===0&&(g===null||g.lanes===0)&&(g=s.lastRenderedReducer,g!==null))try{var j=s.lastRenderedState,O=g(j,a);if(p.hasEagerState=!0,p.eagerState=O,dr(O,j)){var V=s.interleaved;V===null?(p.next=p,Yd(s)):(p.next=V.next,V.next=p),s.interleaved=p;return}}catch{}finally{}a=mg(r,s,p,d),a!==null&&(p=pn(),gr(a,r,d,p),Vg(a,s,d))}}function Dg(r){var s=r.alternate;return r===Et||s!==null&&s===Et}function zg(r,s){$a=xc=!0;var a=r.pending;a===null?s.next=s:(s.next=a.next,a.next=s),r.pending=s}function Vg(r,s,a){if((a&4194240)!==0){var d=s.lanes;d&=r.pendingLanes,a|=d,s.lanes=a,fd(r,a)}}var bc={readContext:Yn,useCallback:rn,useContext:rn,useEffect:rn,useImperativeHandle:rn,useInsertionEffect:rn,useLayoutEffect:rn,useMemo:rn,useReducer:rn,useRef:rn,useState:rn,useDebugValue:rn,useDeferredValue:rn,useTransition:rn,useMutableSource:rn,useSyncExternalStore:rn,useId:rn,unstable_isNewReconciler:!1},C1={readContext:Yn,useCallback:function(r,s){return Nr().memoizedState=[r,s===void 0?null:s],r},useContext:Yn,useEffect:Pg,useImperativeHandle:function(r,s,a){return a=a!=null?a.concat([r]):null,wc(4194308,4,Ag.bind(null,s,r),a)},useLayoutEffect:function(r,s){return wc(4194308,4,r,s)},useInsertionEffect:function(r,s){return wc(4,2,r,s)},useMemo:function(r,s){var a=Nr();return s=s===void 0?null:s,r=r(),a.memoizedState=[r,s],r},useReducer:function(r,s,a){var d=Nr();return s=a!==void 0?a(s):s,d.memoizedState=d.baseState=s,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:s},d.queue=r,r=r.dispatch=S1.bind(null,Et,r),[d.memoizedState,r]},useRef:function(r){var s=Nr();return r={current:r},s.memoizedState=r},useState:jg,useDebugValue:df,useDeferredValue:function(r){return Nr().memoizedState=r},useTransition:function(){var r=jg(!1),s=r[0];return r=w1.bind(null,r[1]),Nr().memoizedState=r,[s,r]},useMutableSource:function(){},useSyncExternalStore:function(r,s,a){var d=Et,p=Nr();if(bt){if(a===void 0)throw Error(n(407));a=a()}else{if(a=s(),Zt===null)throw Error(n(349));(Pi&30)!==0||bg(d,s,a)}p.memoizedState=a;var g={value:a,getSnapshot:s};return p.queue=g,Pg(_g.bind(null,d,g,r),[r]),d.flags|=2048,Wa(9,Cg.bind(null,d,g,a,s),void 0,null),a},useId:function(){var r=Nr(),s=Zt.identifierPrefix;if(bt){var a=Gr,d=qr;a=(d&~(1<<32-ur(d)-1)).toString(32)+a,s=":"+s+"R"+a,a=Ba++,0<a&&(s+="H"+a.toString(32)),s+=":"}else a=x1++,s=":"+s+"r"+a.toString(32)+":";return r.memoizedState=s},unstable_isNewReconciler:!1},_1={readContext:Yn,useCallback:Ig,useContext:Yn,useEffect:uf,useImperativeHandle:Og,useInsertionEffect:Ng,useLayoutEffect:Tg,useMemo:Mg,useReducer:lf,useRef:Rg,useState:function(){return lf(Ua)},useDebugValue:df,useDeferredValue:function(r){var s=Xn();return Lg(s,Ut.memoizedState,r)},useTransition:function(){var r=lf(Ua)[0],s=Xn().memoizedState;return[r,s]},useMutableSource:wg,useSyncExternalStore:Sg,useId:Fg,unstable_isNewReconciler:!1},k1={readContext:Yn,useCallback:Ig,useContext:Yn,useEffect:uf,useImperativeHandle:Og,useInsertionEffect:Ng,useLayoutEffect:Tg,useMemo:Mg,useReducer:cf,useRef:Rg,useState:function(){return cf(Ua)},useDebugValue:df,useDeferredValue:function(r){var s=Xn();return Ut===null?s.memoizedState=r:Lg(s,Ut.memoizedState,r)},useTransition:function(){var r=cf(Ua)[0],s=Xn().memoizedState;return[r,s]},useMutableSource:wg,useSyncExternalStore:Sg,useId:Fg,unstable_isNewReconciler:!1};function hr(r,s){if(r&&r.defaultProps){s=q({},s),r=r.defaultProps;for(var a in r)s[a]===void 0&&(s[a]=r[a]);return s}return s}function ff(r,s,a,d){s=r.memoizedState,a=a(d,s),a=a==null?s:q({},s,a),r.memoizedState=a,r.lanes===0&&(r.updateQueue.baseState=a)}var Cc={isMounted:function(r){return(r=r._reactInternals)?bi(r)===r:!1},enqueueSetState:function(r,s,a){r=r._reactInternals;var d=pn(),p=Ds(r),g=Xr(d,p);g.payload=s,a!=null&&(g.callback=a),s=Is(r,g,p),s!==null&&(gr(s,r,p,d),mc(s,r,p))},enqueueReplaceState:function(r,s,a){r=r._reactInternals;var d=pn(),p=Ds(r),g=Xr(d,p);g.tag=1,g.payload=s,a!=null&&(g.callback=a),s=Is(r,g,p),s!==null&&(gr(s,r,p,d),mc(s,r,p))},enqueueForceUpdate:function(r,s){r=r._reactInternals;var a=pn(),d=Ds(r),p=Xr(a,d);p.tag=2,s!=null&&(p.callback=s),s=Is(r,p,d),s!==null&&(gr(s,r,d,a),mc(s,r,d))}};function $g(r,s,a,d,p,g,j){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(d,g,j):s.prototype&&s.prototype.isPureReactComponent?!Na(a,d)||!Na(p,g):!0}function Bg(r,s,a){var d=!1,p=Ts,g=s.contextType;return typeof g=="object"&&g!==null?g=Yn(g):(p=xn(s)?_i:nn.current,d=s.contextTypes,g=(d=d!=null)?wo(r,p):Ts),s=new s(a,g),r.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Cc,r.stateNode=s,s._reactInternals=r,d&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=p,r.__reactInternalMemoizedMaskedChildContext=g),s}function Ug(r,s,a,d){r=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(a,d),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(a,d),s.state!==r&&Cc.enqueueReplaceState(s,s.state,null)}function hf(r,s,a,d){var p=r.stateNode;p.props=a,p.state=r.memoizedState,p.refs={},Xd(r);var g=s.contextType;typeof g=="object"&&g!==null?p.context=Yn(g):(g=xn(s)?_i:nn.current,p.context=wo(r,g)),p.state=r.memoizedState,g=s.getDerivedStateFromProps,typeof g=="function"&&(ff(r,s,g,a),p.state=r.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(s=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),s!==p.state&&Cc.enqueueReplaceState(p,p.state,null),gc(r,a,p,d),p.state=r.memoizedState),typeof p.componentDidMount=="function"&&(r.flags|=4194308)}function Ro(r,s){try{var a="",d=s;do a+=Te(d),d=d.return;while(d);var p=a}catch(g){p=`
|
|
39
|
-
Error generating stack: `+g.message+`
|
|
40
|
-
`+g.stack}return{value:r,source:s,stack:p,digest:null}}function pf(r,s,a){return{value:r,source:null,stack:a??null,digest:s??null}}function mf(r,s){try{console.error(s.value)}catch(a){setTimeout(function(){throw a})}}var E1=typeof WeakMap=="function"?WeakMap:Map;function Wg(r,s,a){a=Xr(-1,a),a.tag=3,a.payload={element:null};var d=s.value;return a.callback=function(){Nc||(Nc=!0,Nf=d),mf(r,s)},a}function Hg(r,s,a){a=Xr(-1,a),a.tag=3;var d=r.type.getDerivedStateFromError;if(typeof d=="function"){var p=s.value;a.payload=function(){return d(p)},a.callback=function(){mf(r,s)}}var g=r.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(a.callback=function(){mf(r,s),typeof d!="function"&&(Ls===null?Ls=new Set([this]):Ls.add(this));var j=s.stack;this.componentDidCatch(s.value,{componentStack:j!==null?j:""})}),a}function Kg(r,s,a){var d=r.pingCache;if(d===null){d=r.pingCache=new E1;var p=new Set;d.set(s,p)}else p=d.get(s),p===void 0&&(p=new Set,d.set(s,p));p.has(a)||(p.add(a),r=V1.bind(null,r,s,a),s.then(r,r))}function Qg(r){do{var s;if((s=r.tag===13)&&(s=r.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return r;r=r.return}while(r!==null);return null}function Zg(r,s,a,d,p){return(r.mode&1)===0?(r===s?r.flags|=65536:(r.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(s=Xr(-1,1),s.tag=2,Is(a,s,1))),a.lanes|=1),r):(r.flags|=65536,r.lanes=p,r)}var j1=R.ReactCurrentOwner,wn=!1;function hn(r,s,a,d){s.child=r===null?pg(s,null,a,d):_o(s,r.child,a,d)}function qg(r,s,a,d,p){a=a.render;var g=s.ref;return Eo(s,p),d=of(r,s,a,d,g,p),a=af(),r!==null&&!wn?(s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~p,Jr(r,s,p)):(bt&&a&&Bd(s),s.flags|=1,hn(r,s,d,p),s.child)}function Gg(r,s,a,d,p){if(r===null){var g=a.type;return typeof g=="function"&&!Ff(g)&&g.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(s.tag=15,s.type=g,Yg(r,s,g,d,p)):(r=Lc(a.type,null,d,s,s.mode,p),r.ref=s.ref,r.return=s,s.child=r)}if(g=r.child,(r.lanes&p)===0){var j=g.memoizedProps;if(a=a.compare,a=a!==null?a:Na,a(j,d)&&r.ref===s.ref)return Jr(r,s,p)}return s.flags|=1,r=Vs(g,d),r.ref=s.ref,r.return=s,s.child=r}function Yg(r,s,a,d,p){if(r!==null){var g=r.memoizedProps;if(Na(g,d)&&r.ref===s.ref)if(wn=!1,s.pendingProps=d=g,(r.lanes&p)!==0)(r.flags&131072)!==0&&(wn=!0);else return s.lanes=r.lanes,Jr(r,s,p)}return gf(r,s,a,d,p)}function Xg(r,s,a){var d=s.pendingProps,p=d.children,g=r!==null?r.memoizedState:null;if(d.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},yt(No,Ln),Ln|=a;else{if((a&1073741824)===0)return r=g!==null?g.baseLanes|a:a,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:r,cachePool:null,transitions:null},s.updateQueue=null,yt(No,Ln),Ln|=r,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=g!==null?g.baseLanes:a,yt(No,Ln),Ln|=d}else g!==null?(d=g.baseLanes|a,s.memoizedState=null):d=a,yt(No,Ln),Ln|=d;return hn(r,s,p,a),s.child}function Jg(r,s){var a=s.ref;(r===null&&a!==null||r!==null&&r.ref!==a)&&(s.flags|=512,s.flags|=2097152)}function gf(r,s,a,d,p){var g=xn(a)?_i:nn.current;return g=wo(s,g),Eo(s,p),a=of(r,s,a,d,g,p),d=af(),r!==null&&!wn?(s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~p,Jr(r,s,p)):(bt&&d&&Bd(s),s.flags|=1,hn(r,s,a,p),s.child)}function ev(r,s,a,d,p){if(xn(a)){var g=!0;ac(s)}else g=!1;if(Eo(s,p),s.stateNode===null)kc(r,s),Bg(s,a,d),hf(s,a,d,p),d=!0;else if(r===null){var j=s.stateNode,O=s.memoizedProps;j.props=O;var V=j.context,G=a.contextType;typeof G=="object"&&G!==null?G=Yn(G):(G=xn(a)?_i:nn.current,G=wo(s,G));var oe=a.getDerivedStateFromProps,ae=typeof oe=="function"||typeof j.getSnapshotBeforeUpdate=="function";ae||typeof j.UNSAFE_componentWillReceiveProps!="function"&&typeof j.componentWillReceiveProps!="function"||(O!==d||V!==G)&&Ug(s,j,d,G),Os=!1;var ie=s.memoizedState;j.state=ie,gc(s,d,j,p),V=s.memoizedState,O!==d||ie!==V||yn.current||Os?(typeof oe=="function"&&(ff(s,a,oe,d),V=s.memoizedState),(O=Os||$g(s,a,O,d,ie,V,G))?(ae||typeof j.UNSAFE_componentWillMount!="function"&&typeof j.componentWillMount!="function"||(typeof j.componentWillMount=="function"&&j.componentWillMount(),typeof j.UNSAFE_componentWillMount=="function"&&j.UNSAFE_componentWillMount()),typeof j.componentDidMount=="function"&&(s.flags|=4194308)):(typeof j.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=d,s.memoizedState=V),j.props=d,j.state=V,j.context=G,d=O):(typeof j.componentDidMount=="function"&&(s.flags|=4194308),d=!1)}else{j=s.stateNode,gg(r,s),O=s.memoizedProps,G=s.type===s.elementType?O:hr(s.type,O),j.props=G,ae=s.pendingProps,ie=j.context,V=a.contextType,typeof V=="object"&&V!==null?V=Yn(V):(V=xn(a)?_i:nn.current,V=wo(s,V));var ye=a.getDerivedStateFromProps;(oe=typeof ye=="function"||typeof j.getSnapshotBeforeUpdate=="function")||typeof j.UNSAFE_componentWillReceiveProps!="function"&&typeof j.componentWillReceiveProps!="function"||(O!==ae||ie!==V)&&Ug(s,j,d,V),Os=!1,ie=s.memoizedState,j.state=ie,gc(s,d,j,p);var be=s.memoizedState;O!==ae||ie!==be||yn.current||Os?(typeof ye=="function"&&(ff(s,a,ye,d),be=s.memoizedState),(G=Os||$g(s,a,G,d,ie,be,V)||!1)?(oe||typeof j.UNSAFE_componentWillUpdate!="function"&&typeof j.componentWillUpdate!="function"||(typeof j.componentWillUpdate=="function"&&j.componentWillUpdate(d,be,V),typeof j.UNSAFE_componentWillUpdate=="function"&&j.UNSAFE_componentWillUpdate(d,be,V)),typeof j.componentDidUpdate=="function"&&(s.flags|=4),typeof j.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof j.componentDidUpdate!="function"||O===r.memoizedProps&&ie===r.memoizedState||(s.flags|=4),typeof j.getSnapshotBeforeUpdate!="function"||O===r.memoizedProps&&ie===r.memoizedState||(s.flags|=1024),s.memoizedProps=d,s.memoizedState=be),j.props=d,j.state=be,j.context=V,d=G):(typeof j.componentDidUpdate!="function"||O===r.memoizedProps&&ie===r.memoizedState||(s.flags|=4),typeof j.getSnapshotBeforeUpdate!="function"||O===r.memoizedProps&&ie===r.memoizedState||(s.flags|=1024),d=!1)}return vf(r,s,a,d,g,p)}function vf(r,s,a,d,p,g){Jg(r,s);var j=(s.flags&128)!==0;if(!d&&!j)return p&&ig(s,a,!1),Jr(r,s,g);d=s.stateNode,j1.current=s;var O=j&&typeof a.getDerivedStateFromError!="function"?null:d.render();return s.flags|=1,r!==null&&j?(s.child=_o(s,r.child,null,g),s.child=_o(s,null,O,g)):hn(r,s,O,g),s.memoizedState=d.state,p&&ig(s,a,!0),s.child}function tv(r){var s=r.stateNode;s.pendingContext?rg(r,s.pendingContext,s.pendingContext!==s.context):s.context&&rg(r,s.context,!1),Jd(r,s.containerInfo)}function nv(r,s,a,d,p){return Co(),Kd(p),s.flags|=256,hn(r,s,a,d),s.child}var yf={dehydrated:null,treeContext:null,retryLane:0};function xf(r){return{baseLanes:r,cachePool:null,transitions:null}}function rv(r,s,a){var d=s.pendingProps,p=kt.current,g=!1,j=(s.flags&128)!==0,O;if((O=j)||(O=r!==null&&r.memoizedState===null?!1:(p&2)!==0),O?(g=!0,s.flags&=-129):(r===null||r.memoizedState!==null)&&(p|=1),yt(kt,p&1),r===null)return Hd(s),r=s.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((s.mode&1)===0?s.lanes=1:r.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(j=d.children,r=d.fallback,g?(d=s.mode,g=s.child,j={mode:"hidden",children:j},(d&1)===0&&g!==null?(g.childLanes=0,g.pendingProps=j):g=Fc(j,d,0,null),r=Ii(r,d,a,null),g.return=s,r.return=s,g.sibling=r,s.child=g,s.child.memoizedState=xf(a),s.memoizedState=yf,r):wf(s,j));if(p=r.memoizedState,p!==null&&(O=p.dehydrated,O!==null))return R1(r,s,j,d,O,p,a);if(g){g=d.fallback,j=s.mode,p=r.child,O=p.sibling;var V={mode:"hidden",children:d.children};return(j&1)===0&&s.child!==p?(d=s.child,d.childLanes=0,d.pendingProps=V,s.deletions=null):(d=Vs(p,V),d.subtreeFlags=p.subtreeFlags&14680064),O!==null?g=Vs(O,g):(g=Ii(g,j,a,null),g.flags|=2),g.return=s,d.return=s,d.sibling=g,s.child=d,d=g,g=s.child,j=r.child.memoizedState,j=j===null?xf(a):{baseLanes:j.baseLanes|a,cachePool:null,transitions:j.transitions},g.memoizedState=j,g.childLanes=r.childLanes&~a,s.memoizedState=yf,d}return g=r.child,r=g.sibling,d=Vs(g,{mode:"visible",children:d.children}),(s.mode&1)===0&&(d.lanes=a),d.return=s,d.sibling=null,r!==null&&(a=s.deletions,a===null?(s.deletions=[r],s.flags|=16):a.push(r)),s.child=d,s.memoizedState=null,d}function wf(r,s){return s=Fc({mode:"visible",children:s},r.mode,0,null),s.return=r,r.child=s}function _c(r,s,a,d){return d!==null&&Kd(d),_o(s,r.child,null,a),r=wf(s,s.pendingProps.children),r.flags|=2,s.memoizedState=null,r}function R1(r,s,a,d,p,g,j){if(a)return s.flags&256?(s.flags&=-257,d=pf(Error(n(422))),_c(r,s,j,d)):s.memoizedState!==null?(s.child=r.child,s.flags|=128,null):(g=d.fallback,p=s.mode,d=Fc({mode:"visible",children:d.children},p,0,null),g=Ii(g,p,j,null),g.flags|=2,d.return=s,g.return=s,d.sibling=g,s.child=d,(s.mode&1)!==0&&_o(s,r.child,null,j),s.child.memoizedState=xf(j),s.memoizedState=yf,g);if((s.mode&1)===0)return _c(r,s,j,null);if(p.data==="$!"){if(d=p.nextSibling&&p.nextSibling.dataset,d)var O=d.dgst;return d=O,g=Error(n(419)),d=pf(g,d,void 0),_c(r,s,j,d)}if(O=(j&r.childLanes)!==0,wn||O){if(d=Zt,d!==null){switch(j&-j){case 4:p=2;break;case 16:p=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:p=32;break;case 536870912:p=268435456;break;default:p=0}p=(p&(d.suspendedLanes|j))!==0?0:p,p!==0&&p!==g.retryLane&&(g.retryLane=p,Yr(r,p),gr(d,r,p,-1))}return Lf(),d=pf(Error(n(421))),_c(r,s,j,d)}return p.data==="$?"?(s.flags|=128,s.child=r.child,s=$1.bind(null,r),p._reactRetry=s,null):(r=g.treeContext,Mn=Ps(p.nextSibling),In=s,bt=!0,fr=null,r!==null&&(qn[Gn++]=qr,qn[Gn++]=Gr,qn[Gn++]=ki,qr=r.id,Gr=r.overflow,ki=s),s=wf(s,d.children),s.flags|=4096,s)}function sv(r,s,a){r.lanes|=s;var d=r.alternate;d!==null&&(d.lanes|=s),Gd(r.return,s,a)}function Sf(r,s,a,d,p){var g=r.memoizedState;g===null?r.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:d,tail:a,tailMode:p}:(g.isBackwards=s,g.rendering=null,g.renderingStartTime=0,g.last=d,g.tail=a,g.tailMode=p)}function iv(r,s,a){var d=s.pendingProps,p=d.revealOrder,g=d.tail;if(hn(r,s,d.children,a),d=kt.current,(d&2)!==0)d=d&1|2,s.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=s.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&sv(r,a,s);else if(r.tag===19)sv(r,a,s);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===s)break e;for(;r.sibling===null;){if(r.return===null||r.return===s)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}d&=1}if(yt(kt,d),(s.mode&1)===0)s.memoizedState=null;else switch(p){case"forwards":for(a=s.child,p=null;a!==null;)r=a.alternate,r!==null&&vc(r)===null&&(p=a),a=a.sibling;a=p,a===null?(p=s.child,s.child=null):(p=a.sibling,a.sibling=null),Sf(s,!1,p,a,g);break;case"backwards":for(a=null,p=s.child,s.child=null;p!==null;){if(r=p.alternate,r!==null&&vc(r)===null){s.child=p;break}r=p.sibling,p.sibling=a,a=p,p=r}Sf(s,!0,a,null,g);break;case"together":Sf(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function kc(r,s){(s.mode&1)===0&&r!==null&&(r.alternate=null,s.alternate=null,s.flags|=2)}function Jr(r,s,a){if(r!==null&&(s.dependencies=r.dependencies),Ni|=s.lanes,(a&s.childLanes)===0)return null;if(r!==null&&s.child!==r.child)throw Error(n(153));if(s.child!==null){for(r=s.child,a=Vs(r,r.pendingProps),s.child=a,a.return=s;r.sibling!==null;)r=r.sibling,a=a.sibling=Vs(r,r.pendingProps),a.return=s;a.sibling=null}return s.child}function P1(r,s,a){switch(s.tag){case 3:tv(s),Co();break;case 5:xg(s);break;case 1:xn(s.type)&&ac(s);break;case 4:Jd(s,s.stateNode.containerInfo);break;case 10:var d=s.type._context,p=s.memoizedProps.value;yt(hc,d._currentValue),d._currentValue=p;break;case 13:if(d=s.memoizedState,d!==null)return d.dehydrated!==null?(yt(kt,kt.current&1),s.flags|=128,null):(a&s.child.childLanes)!==0?rv(r,s,a):(yt(kt,kt.current&1),r=Jr(r,s,a),r!==null?r.sibling:null);yt(kt,kt.current&1);break;case 19:if(d=(a&s.childLanes)!==0,(r.flags&128)!==0){if(d)return iv(r,s,a);s.flags|=128}if(p=s.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),yt(kt,kt.current),d)break;return null;case 22:case 23:return s.lanes=0,Xg(r,s,a)}return Jr(r,s,a)}var ov,bf,av,lv;ov=function(r,s){for(var a=s.child;a!==null;){if(a.tag===5||a.tag===6)r.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===s)break;for(;a.sibling===null;){if(a.return===null||a.return===s)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},bf=function(){},av=function(r,s,a,d){var p=r.memoizedProps;if(p!==d){r=s.stateNode,Ri(Pr.current);var g=null;switch(a){case"input":p=Mt(r,p),d=Mt(r,d),g=[];break;case"select":p=q({},p,{value:void 0}),d=q({},d,{value:void 0}),g=[];break;case"textarea":p=W(r,p),d=W(r,d),g=[];break;default:typeof p.onClick!="function"&&typeof d.onClick=="function"&&(r.onclick=sc)}Ve(a,d);var j;a=null;for(G in p)if(!d.hasOwnProperty(G)&&p.hasOwnProperty(G)&&p[G]!=null)if(G==="style"){var O=p[G];for(j in O)O.hasOwnProperty(j)&&(a||(a={}),a[j]="")}else G!=="dangerouslySetInnerHTML"&&G!=="children"&&G!=="suppressContentEditableWarning"&&G!=="suppressHydrationWarning"&&G!=="autoFocus"&&(o.hasOwnProperty(G)?g||(g=[]):(g=g||[]).push(G,null));for(G in d){var V=d[G];if(O=p!=null?p[G]:void 0,d.hasOwnProperty(G)&&V!==O&&(V!=null||O!=null))if(G==="style")if(O){for(j in O)!O.hasOwnProperty(j)||V&&V.hasOwnProperty(j)||(a||(a={}),a[j]="");for(j in V)V.hasOwnProperty(j)&&O[j]!==V[j]&&(a||(a={}),a[j]=V[j])}else a||(g||(g=[]),g.push(G,a)),a=V;else G==="dangerouslySetInnerHTML"?(V=V?V.__html:void 0,O=O?O.__html:void 0,V!=null&&O!==V&&(g=g||[]).push(G,V)):G==="children"?typeof V!="string"&&typeof V!="number"||(g=g||[]).push(G,""+V):G!=="suppressContentEditableWarning"&&G!=="suppressHydrationWarning"&&(o.hasOwnProperty(G)?(V!=null&&G==="onScroll"&&xt("scroll",r),g||O===V||(g=[])):(g=g||[]).push(G,V))}a&&(g=g||[]).push("style",a);var G=g;(s.updateQueue=G)&&(s.flags|=4)}},lv=function(r,s,a,d){a!==d&&(s.flags|=4)};function Ha(r,s){if(!bt)switch(r.tailMode){case"hidden":s=r.tail;for(var a=null;s!==null;)s.alternate!==null&&(a=s),s=s.sibling;a===null?r.tail=null:a.sibling=null;break;case"collapsed":a=r.tail;for(var d=null;a!==null;)a.alternate!==null&&(d=a),a=a.sibling;d===null?s||r.tail===null?r.tail=null:r.tail.sibling=null:d.sibling=null}}function sn(r){var s=r.alternate!==null&&r.alternate.child===r.child,a=0,d=0;if(s)for(var p=r.child;p!==null;)a|=p.lanes|p.childLanes,d|=p.subtreeFlags&14680064,d|=p.flags&14680064,p.return=r,p=p.sibling;else for(p=r.child;p!==null;)a|=p.lanes|p.childLanes,d|=p.subtreeFlags,d|=p.flags,p.return=r,p=p.sibling;return r.subtreeFlags|=d,r.childLanes=a,s}function N1(r,s,a){var d=s.pendingProps;switch(Ud(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return sn(s),null;case 1:return xn(s.type)&&oc(),sn(s),null;case 3:return d=s.stateNode,jo(),wt(yn),wt(nn),nf(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(r===null||r.child===null)&&(dc(s)?s.flags|=4:r===null||r.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,fr!==null&&(Of(fr),fr=null))),bf(r,s),sn(s),null;case 5:ef(s);var p=Ri(Va.current);if(a=s.type,r!==null&&s.stateNode!=null)av(r,s,a,d,p),r.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!d){if(s.stateNode===null)throw Error(n(166));return sn(s),null}if(r=Ri(Pr.current),dc(s)){d=s.stateNode,a=s.type;var g=s.memoizedProps;switch(d[Rr]=s,d[Ma]=g,r=(s.mode&1)!==0,a){case"dialog":xt("cancel",d),xt("close",d);break;case"iframe":case"object":case"embed":xt("load",d);break;case"video":case"audio":for(p=0;p<Aa.length;p++)xt(Aa[p],d);break;case"source":xt("error",d);break;case"img":case"image":case"link":xt("error",d),xt("load",d);break;case"details":xt("toggle",d);break;case"input":en(d,g),xt("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!g.multiple},xt("invalid",d);break;case"textarea":J(d,g),xt("invalid",d)}Ve(a,g),p=null;for(var j in g)if(g.hasOwnProperty(j)){var O=g[j];j==="children"?typeof O=="string"?d.textContent!==O&&(g.suppressHydrationWarning!==!0&&rc(d.textContent,O,r),p=["children",O]):typeof O=="number"&&d.textContent!==""+O&&(g.suppressHydrationWarning!==!0&&rc(d.textContent,O,r),p=["children",""+O]):o.hasOwnProperty(j)&&O!=null&&j==="onScroll"&&xt("scroll",d)}switch(a){case"input":Le(d),et(d,g,!0);break;case"textarea":Le(d),le(d);break;case"select":case"option":break;default:typeof g.onClick=="function"&&(d.onclick=sc)}d=p,s.updateQueue=d,d!==null&&(s.flags|=4)}else{j=p.nodeType===9?p:p.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=re(a)),r==="http://www.w3.org/1999/xhtml"?a==="script"?(r=j.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof d.is=="string"?r=j.createElement(a,{is:d.is}):(r=j.createElement(a),a==="select"&&(j=r,d.multiple?j.multiple=!0:d.size&&(j.size=d.size))):r=j.createElementNS(r,a),r[Rr]=s,r[Ma]=d,ov(r,s,!1,!1),s.stateNode=r;e:{switch(j=Be(a,d),a){case"dialog":xt("cancel",r),xt("close",r),p=d;break;case"iframe":case"object":case"embed":xt("load",r),p=d;break;case"video":case"audio":for(p=0;p<Aa.length;p++)xt(Aa[p],r);p=d;break;case"source":xt("error",r),p=d;break;case"img":case"image":case"link":xt("error",r),xt("load",r),p=d;break;case"details":xt("toggle",r),p=d;break;case"input":en(r,d),p=Mt(r,d),xt("invalid",r);break;case"option":p=d;break;case"select":r._wrapperState={wasMultiple:!!d.multiple},p=q({},d,{value:void 0}),xt("invalid",r);break;case"textarea":J(r,d),p=W(r,d),xt("invalid",r);break;default:p=d}Ve(a,p),O=p;for(g in O)if(O.hasOwnProperty(g)){var V=O[g];g==="style"?fe(r,V):g==="dangerouslySetInnerHTML"?(V=V?V.__html:void 0,V!=null&&$e(r,V)):g==="children"?typeof V=="string"?(a!=="textarea"||V!=="")&&_t(r,V):typeof V=="number"&&_t(r,""+V):g!=="suppressContentEditableWarning"&&g!=="suppressHydrationWarning"&&g!=="autoFocus"&&(o.hasOwnProperty(g)?V!=null&&g==="onScroll"&&xt("scroll",r):V!=null&&E(r,g,V,j))}switch(a){case"input":Le(r),et(r,d,!1);break;case"textarea":Le(r),le(r);break;case"option":d.value!=null&&r.setAttribute("value",""+ve(d.value));break;case"select":r.multiple=!!d.multiple,g=d.value,g!=null?D(r,!!d.multiple,g,!1):d.defaultValue!=null&&D(r,!!d.multiple,d.defaultValue,!0);break;default:typeof p.onClick=="function"&&(r.onclick=sc)}switch(a){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}}d&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return sn(s),null;case 6:if(r&&s.stateNode!=null)lv(r,s,r.memoizedProps,d);else{if(typeof d!="string"&&s.stateNode===null)throw Error(n(166));if(a=Ri(Va.current),Ri(Pr.current),dc(s)){if(d=s.stateNode,a=s.memoizedProps,d[Rr]=s,(g=d.nodeValue!==a)&&(r=In,r!==null))switch(r.tag){case 3:rc(d.nodeValue,a,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&rc(d.nodeValue,a,(r.mode&1)!==0)}g&&(s.flags|=4)}else d=(a.nodeType===9?a:a.ownerDocument).createTextNode(d),d[Rr]=s,s.stateNode=d}return sn(s),null;case 13:if(wt(kt),d=s.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(bt&&Mn!==null&&(s.mode&1)!==0&&(s.flags&128)===0)dg(),Co(),s.flags|=98560,g=!1;else if(g=dc(s),d!==null&&d.dehydrated!==null){if(r===null){if(!g)throw Error(n(318));if(g=s.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(n(317));g[Rr]=s}else Co(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;sn(s),g=!1}else fr!==null&&(Of(fr),fr=null),g=!0;if(!g)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=a,s):(d=d!==null,d!==(r!==null&&r.memoizedState!==null)&&d&&(s.child.flags|=8192,(s.mode&1)!==0&&(r===null||(kt.current&1)!==0?Wt===0&&(Wt=3):Lf())),s.updateQueue!==null&&(s.flags|=4),sn(s),null);case 4:return jo(),bf(r,s),r===null&&Oa(s.stateNode.containerInfo),sn(s),null;case 10:return qd(s.type._context),sn(s),null;case 17:return xn(s.type)&&oc(),sn(s),null;case 19:if(wt(kt),g=s.memoizedState,g===null)return sn(s),null;if(d=(s.flags&128)!==0,j=g.rendering,j===null)if(d)Ha(g,!1);else{if(Wt!==0||r!==null&&(r.flags&128)!==0)for(r=s.child;r!==null;){if(j=vc(r),j!==null){for(s.flags|=128,Ha(g,!1),d=j.updateQueue,d!==null&&(s.updateQueue=d,s.flags|=4),s.subtreeFlags=0,d=a,a=s.child;a!==null;)g=a,r=d,g.flags&=14680066,j=g.alternate,j===null?(g.childLanes=0,g.lanes=r,g.child=null,g.subtreeFlags=0,g.memoizedProps=null,g.memoizedState=null,g.updateQueue=null,g.dependencies=null,g.stateNode=null):(g.childLanes=j.childLanes,g.lanes=j.lanes,g.child=j.child,g.subtreeFlags=0,g.deletions=null,g.memoizedProps=j.memoizedProps,g.memoizedState=j.memoizedState,g.updateQueue=j.updateQueue,g.type=j.type,r=j.dependencies,g.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),a=a.sibling;return yt(kt,kt.current&1|2),s.child}r=r.sibling}g.tail!==null&&Lt()>To&&(s.flags|=128,d=!0,Ha(g,!1),s.lanes=4194304)}else{if(!d)if(r=vc(j),r!==null){if(s.flags|=128,d=!0,a=r.updateQueue,a!==null&&(s.updateQueue=a,s.flags|=4),Ha(g,!0),g.tail===null&&g.tailMode==="hidden"&&!j.alternate&&!bt)return sn(s),null}else 2*Lt()-g.renderingStartTime>To&&a!==1073741824&&(s.flags|=128,d=!0,Ha(g,!1),s.lanes=4194304);g.isBackwards?(j.sibling=s.child,s.child=j):(a=g.last,a!==null?a.sibling=j:s.child=j,g.last=j)}return g.tail!==null?(s=g.tail,g.rendering=s,g.tail=s.sibling,g.renderingStartTime=Lt(),s.sibling=null,a=kt.current,yt(kt,d?a&1|2:a&1),s):(sn(s),null);case 22:case 23:return Mf(),d=s.memoizedState!==null,r!==null&&r.memoizedState!==null!==d&&(s.flags|=8192),d&&(s.mode&1)!==0?(Ln&1073741824)!==0&&(sn(s),s.subtreeFlags&6&&(s.flags|=8192)):sn(s),null;case 24:return null;case 25:return null}throw Error(n(156,s.tag))}function T1(r,s){switch(Ud(s),s.tag){case 1:return xn(s.type)&&oc(),r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 3:return jo(),wt(yn),wt(nn),nf(),r=s.flags,(r&65536)!==0&&(r&128)===0?(s.flags=r&-65537|128,s):null;case 5:return ef(s),null;case 13:if(wt(kt),r=s.memoizedState,r!==null&&r.dehydrated!==null){if(s.alternate===null)throw Error(n(340));Co()}return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 19:return wt(kt),null;case 4:return jo(),null;case 10:return qd(s.type._context),null;case 22:case 23:return Mf(),null;case 24:return null;default:return null}}var Ec=!1,on=!1,A1=typeof WeakSet=="function"?WeakSet:Set,we=null;function Po(r,s){var a=r.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(d){Nt(r,s,d)}else a.current=null}function Cf(r,s,a){try{a()}catch(d){Nt(r,s,d)}}var cv=!1;function O1(r,s){if(Id=Kl,r=$m(),Ed(r)){if("selectionStart"in r)var a={start:r.selectionStart,end:r.selectionEnd};else e:{a=(a=r.ownerDocument)&&a.defaultView||window;var d=a.getSelection&&a.getSelection();if(d&&d.rangeCount!==0){a=d.anchorNode;var p=d.anchorOffset,g=d.focusNode;d=d.focusOffset;try{a.nodeType,g.nodeType}catch{a=null;break e}var j=0,O=-1,V=-1,G=0,oe=0,ae=r,ie=null;t:for(;;){for(var ye;ae!==a||p!==0&&ae.nodeType!==3||(O=j+p),ae!==g||d!==0&&ae.nodeType!==3||(V=j+d),ae.nodeType===3&&(j+=ae.nodeValue.length),(ye=ae.firstChild)!==null;)ie=ae,ae=ye;for(;;){if(ae===r)break t;if(ie===a&&++G===p&&(O=j),ie===g&&++oe===d&&(V=j),(ye=ae.nextSibling)!==null)break;ae=ie,ie=ae.parentNode}ae=ye}a=O===-1||V===-1?null:{start:O,end:V}}else a=null}a=a||{start:0,end:0}}else a=null;for(Md={focusedElem:r,selectionRange:a},Kl=!1,we=s;we!==null;)if(s=we,r=s.child,(s.subtreeFlags&1028)!==0&&r!==null)r.return=s,we=r;else for(;we!==null;){s=we;try{var be=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(be!==null){var _e=be.memoizedProps,Ft=be.memoizedState,U=s.stateNode,$=U.getSnapshotBeforeUpdate(s.elementType===s.type?_e:hr(s.type,_e),Ft);U.__reactInternalSnapshotBeforeUpdate=$}break;case 3:var K=s.stateNode.containerInfo;K.nodeType===1?K.textContent="":K.nodeType===9&&K.documentElement&&K.removeChild(K.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(ue){Nt(s,s.return,ue)}if(r=s.sibling,r!==null){r.return=s.return,we=r;break}we=s.return}return be=cv,cv=!1,be}function Ka(r,s,a){var d=s.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var p=d=d.next;do{if((p.tag&r)===r){var g=p.destroy;p.destroy=void 0,g!==void 0&&Cf(s,a,g)}p=p.next}while(p!==d)}}function jc(r,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var a=s=s.next;do{if((a.tag&r)===r){var d=a.create;a.destroy=d()}a=a.next}while(a!==s)}}function _f(r){var s=r.ref;if(s!==null){var a=r.stateNode;switch(r.tag){case 5:r=a;break;default:r=a}typeof s=="function"?s(r):s.current=r}}function uv(r){var s=r.alternate;s!==null&&(r.alternate=null,uv(s)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(s=r.stateNode,s!==null&&(delete s[Rr],delete s[Ma],delete s[zd],delete s[m1],delete s[g1])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function dv(r){return r.tag===5||r.tag===3||r.tag===4}function fv(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||dv(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function kf(r,s,a){var d=r.tag;if(d===5||d===6)r=r.stateNode,s?a.nodeType===8?a.parentNode.insertBefore(r,s):a.insertBefore(r,s):(a.nodeType===8?(s=a.parentNode,s.insertBefore(r,a)):(s=a,s.appendChild(r)),a=a._reactRootContainer,a!=null||s.onclick!==null||(s.onclick=sc));else if(d!==4&&(r=r.child,r!==null))for(kf(r,s,a),r=r.sibling;r!==null;)kf(r,s,a),r=r.sibling}function Ef(r,s,a){var d=r.tag;if(d===5||d===6)r=r.stateNode,s?a.insertBefore(r,s):a.appendChild(r);else if(d!==4&&(r=r.child,r!==null))for(Ef(r,s,a),r=r.sibling;r!==null;)Ef(r,s,a),r=r.sibling}var Xt=null,pr=!1;function Ms(r,s,a){for(a=a.child;a!==null;)hv(r,s,a),a=a.sibling}function hv(r,s,a){if(jr&&typeof jr.onCommitFiberUnmount=="function")try{jr.onCommitFiberUnmount(Vl,a)}catch{}switch(a.tag){case 5:on||Po(a,s);case 6:var d=Xt,p=pr;Xt=null,Ms(r,s,a),Xt=d,pr=p,Xt!==null&&(pr?(r=Xt,a=a.stateNode,r.nodeType===8?r.parentNode.removeChild(a):r.removeChild(a)):Xt.removeChild(a.stateNode));break;case 18:Xt!==null&&(pr?(r=Xt,a=a.stateNode,r.nodeType===8?Dd(r.parentNode,a):r.nodeType===1&&Dd(r,a),_a(r)):Dd(Xt,a.stateNode));break;case 4:d=Xt,p=pr,Xt=a.stateNode.containerInfo,pr=!0,Ms(r,s,a),Xt=d,pr=p;break;case 0:case 11:case 14:case 15:if(!on&&(d=a.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){p=d=d.next;do{var g=p,j=g.destroy;g=g.tag,j!==void 0&&((g&2)!==0||(g&4)!==0)&&Cf(a,s,j),p=p.next}while(p!==d)}Ms(r,s,a);break;case 1:if(!on&&(Po(a,s),d=a.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=a.memoizedProps,d.state=a.memoizedState,d.componentWillUnmount()}catch(O){Nt(a,s,O)}Ms(r,s,a);break;case 21:Ms(r,s,a);break;case 22:a.mode&1?(on=(d=on)||a.memoizedState!==null,Ms(r,s,a),on=d):Ms(r,s,a);break;default:Ms(r,s,a)}}function pv(r){var s=r.updateQueue;if(s!==null){r.updateQueue=null;var a=r.stateNode;a===null&&(a=r.stateNode=new A1),s.forEach(function(d){var p=B1.bind(null,r,d);a.has(d)||(a.add(d),d.then(p,p))})}}function mr(r,s){var a=s.deletions;if(a!==null)for(var d=0;d<a.length;d++){var p=a[d];try{var g=r,j=s,O=j;e:for(;O!==null;){switch(O.tag){case 5:Xt=O.stateNode,pr=!1;break e;case 3:Xt=O.stateNode.containerInfo,pr=!0;break e;case 4:Xt=O.stateNode.containerInfo,pr=!0;break e}O=O.return}if(Xt===null)throw Error(n(160));hv(g,j,p),Xt=null,pr=!1;var V=p.alternate;V!==null&&(V.return=null),p.return=null}catch(G){Nt(p,s,G)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)mv(s,r),s=s.sibling}function mv(r,s){var a=r.alternate,d=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(mr(s,r),Tr(r),d&4){try{Ka(3,r,r.return),jc(3,r)}catch(_e){Nt(r,r.return,_e)}try{Ka(5,r,r.return)}catch(_e){Nt(r,r.return,_e)}}break;case 1:mr(s,r),Tr(r),d&512&&a!==null&&Po(a,a.return);break;case 5:if(mr(s,r),Tr(r),d&512&&a!==null&&Po(a,a.return),r.flags&32){var p=r.stateNode;try{_t(p,"")}catch(_e){Nt(r,r.return,_e)}}if(d&4&&(p=r.stateNode,p!=null)){var g=r.memoizedProps,j=a!==null?a.memoizedProps:g,O=r.type,V=r.updateQueue;if(r.updateQueue=null,V!==null)try{O==="input"&&g.type==="radio"&&g.name!=null&&Yt(p,g),Be(O,j);var G=Be(O,g);for(j=0;j<V.length;j+=2){var oe=V[j],ae=V[j+1];oe==="style"?fe(p,ae):oe==="dangerouslySetInnerHTML"?$e(p,ae):oe==="children"?_t(p,ae):E(p,oe,ae,G)}switch(O){case"input":Dt(p,g);break;case"textarea":pe(p,g);break;case"select":var ie=p._wrapperState.wasMultiple;p._wrapperState.wasMultiple=!!g.multiple;var ye=g.value;ye!=null?D(p,!!g.multiple,ye,!1):ie!==!!g.multiple&&(g.defaultValue!=null?D(p,!!g.multiple,g.defaultValue,!0):D(p,!!g.multiple,g.multiple?[]:"",!1))}p[Ma]=g}catch(_e){Nt(r,r.return,_e)}}break;case 6:if(mr(s,r),Tr(r),d&4){if(r.stateNode===null)throw Error(n(162));p=r.stateNode,g=r.memoizedProps;try{p.nodeValue=g}catch(_e){Nt(r,r.return,_e)}}break;case 3:if(mr(s,r),Tr(r),d&4&&a!==null&&a.memoizedState.isDehydrated)try{_a(s.containerInfo)}catch(_e){Nt(r,r.return,_e)}break;case 4:mr(s,r),Tr(r);break;case 13:mr(s,r),Tr(r),p=r.child,p.flags&8192&&(g=p.memoizedState!==null,p.stateNode.isHidden=g,!g||p.alternate!==null&&p.alternate.memoizedState!==null||(Pf=Lt())),d&4&&pv(r);break;case 22:if(oe=a!==null&&a.memoizedState!==null,r.mode&1?(on=(G=on)||oe,mr(s,r),on=G):mr(s,r),Tr(r),d&8192){if(G=r.memoizedState!==null,(r.stateNode.isHidden=G)&&!oe&&(r.mode&1)!==0)for(we=r,oe=r.child;oe!==null;){for(ae=we=oe;we!==null;){switch(ie=we,ye=ie.child,ie.tag){case 0:case 11:case 14:case 15:Ka(4,ie,ie.return);break;case 1:Po(ie,ie.return);var be=ie.stateNode;if(typeof be.componentWillUnmount=="function"){d=ie,a=ie.return;try{s=d,be.props=s.memoizedProps,be.state=s.memoizedState,be.componentWillUnmount()}catch(_e){Nt(d,a,_e)}}break;case 5:Po(ie,ie.return);break;case 22:if(ie.memoizedState!==null){yv(ae);continue}}ye!==null?(ye.return=ie,we=ye):yv(ae)}oe=oe.sibling}e:for(oe=null,ae=r;;){if(ae.tag===5){if(oe===null){oe=ae;try{p=ae.stateNode,G?(g=p.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none"):(O=ae.stateNode,V=ae.memoizedProps.style,j=V!=null&&V.hasOwnProperty("display")?V.display:null,O.style.display=lo("display",j))}catch(_e){Nt(r,r.return,_e)}}}else if(ae.tag===6){if(oe===null)try{ae.stateNode.nodeValue=G?"":ae.memoizedProps}catch(_e){Nt(r,r.return,_e)}}else if((ae.tag!==22&&ae.tag!==23||ae.memoizedState===null||ae===r)&&ae.child!==null){ae.child.return=ae,ae=ae.child;continue}if(ae===r)break e;for(;ae.sibling===null;){if(ae.return===null||ae.return===r)break e;oe===ae&&(oe=null),ae=ae.return}oe===ae&&(oe=null),ae.sibling.return=ae.return,ae=ae.sibling}}break;case 19:mr(s,r),Tr(r),d&4&&pv(r);break;case 21:break;default:mr(s,r),Tr(r)}}function Tr(r){var s=r.flags;if(s&2){try{e:{for(var a=r.return;a!==null;){if(dv(a)){var d=a;break e}a=a.return}throw Error(n(160))}switch(d.tag){case 5:var p=d.stateNode;d.flags&32&&(_t(p,""),d.flags&=-33);var g=fv(r);Ef(r,g,p);break;case 3:case 4:var j=d.stateNode.containerInfo,O=fv(r);kf(r,O,j);break;default:throw Error(n(161))}}catch(V){Nt(r,r.return,V)}r.flags&=-3}s&4096&&(r.flags&=-4097)}function I1(r,s,a){we=r,gv(r)}function gv(r,s,a){for(var d=(r.mode&1)!==0;we!==null;){var p=we,g=p.child;if(p.tag===22&&d){var j=p.memoizedState!==null||Ec;if(!j){var O=p.alternate,V=O!==null&&O.memoizedState!==null||on;O=Ec;var G=on;if(Ec=j,(on=V)&&!G)for(we=p;we!==null;)j=we,V=j.child,j.tag===22&&j.memoizedState!==null?xv(p):V!==null?(V.return=j,we=V):xv(p);for(;g!==null;)we=g,gv(g),g=g.sibling;we=p,Ec=O,on=G}vv(r)}else(p.subtreeFlags&8772)!==0&&g!==null?(g.return=p,we=g):vv(r)}}function vv(r){for(;we!==null;){var s=we;if((s.flags&8772)!==0){var a=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:on||jc(5,s);break;case 1:var d=s.stateNode;if(s.flags&4&&!on)if(a===null)d.componentDidMount();else{var p=s.elementType===s.type?a.memoizedProps:hr(s.type,a.memoizedProps);d.componentDidUpdate(p,a.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var g=s.updateQueue;g!==null&&yg(s,g,d);break;case 3:var j=s.updateQueue;if(j!==null){if(a=null,s.child!==null)switch(s.child.tag){case 5:a=s.child.stateNode;break;case 1:a=s.child.stateNode}yg(s,j,a)}break;case 5:var O=s.stateNode;if(a===null&&s.flags&4){a=O;var V=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":V.autoFocus&&a.focus();break;case"img":V.src&&(a.src=V.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var G=s.alternate;if(G!==null){var oe=G.memoizedState;if(oe!==null){var ae=oe.dehydrated;ae!==null&&_a(ae)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}on||s.flags&512&&_f(s)}catch(ie){Nt(s,s.return,ie)}}if(s===r){we=null;break}if(a=s.sibling,a!==null){a.return=s.return,we=a;break}we=s.return}}function yv(r){for(;we!==null;){var s=we;if(s===r){we=null;break}var a=s.sibling;if(a!==null){a.return=s.return,we=a;break}we=s.return}}function xv(r){for(;we!==null;){var s=we;try{switch(s.tag){case 0:case 11:case 15:var a=s.return;try{jc(4,s)}catch(V){Nt(s,a,V)}break;case 1:var d=s.stateNode;if(typeof d.componentDidMount=="function"){var p=s.return;try{d.componentDidMount()}catch(V){Nt(s,p,V)}}var g=s.return;try{_f(s)}catch(V){Nt(s,g,V)}break;case 5:var j=s.return;try{_f(s)}catch(V){Nt(s,j,V)}}}catch(V){Nt(s,s.return,V)}if(s===r){we=null;break}var O=s.sibling;if(O!==null){O.return=s.return,we=O;break}we=s.return}}var M1=Math.ceil,Rc=R.ReactCurrentDispatcher,jf=R.ReactCurrentOwner,Jn=R.ReactCurrentBatchConfig,tt=0,Zt=null,zt=null,Jt=0,Ln=0,No=Ns(0),Wt=0,Qa=null,Ni=0,Pc=0,Rf=0,Za=null,Sn=null,Pf=0,To=1/0,es=null,Nc=!1,Nf=null,Ls=null,Tc=!1,Fs=null,Ac=0,qa=0,Tf=null,Oc=-1,Ic=0;function pn(){return(tt&6)!==0?Lt():Oc!==-1?Oc:Oc=Lt()}function Ds(r){return(r.mode&1)===0?1:(tt&2)!==0&&Jt!==0?Jt&-Jt:y1.transition!==null?(Ic===0&&(Ic=fm()),Ic):(r=pt,r!==0||(r=window.event,r=r===void 0?16:Sm(r.type)),r)}function gr(r,s,a,d){if(50<qa)throw qa=0,Tf=null,Error(n(185));xa(r,a,d),((tt&2)===0||r!==Zt)&&(r===Zt&&((tt&2)===0&&(Pc|=a),Wt===4&&zs(r,Jt)),bn(r,d),a===1&&tt===0&&(s.mode&1)===0&&(To=Lt()+500,lc&&As()))}function bn(r,s){var a=r.callbackNode;yb(r,s);var d=Ul(r,r===Zt?Jt:0);if(d===0)a!==null&&cm(a),r.callbackNode=null,r.callbackPriority=0;else if(s=d&-d,r.callbackPriority!==s){if(a!=null&&cm(a),s===1)r.tag===0?v1(Sv.bind(null,r)):og(Sv.bind(null,r)),h1(function(){(tt&6)===0&&As()}),a=null;else{switch(hm(d)){case 1:a=cd;break;case 4:a=um;break;case 16:a=zl;break;case 536870912:a=dm;break;default:a=zl}a=Pv(a,wv.bind(null,r))}r.callbackPriority=s,r.callbackNode=a}}function wv(r,s){if(Oc=-1,Ic=0,(tt&6)!==0)throw Error(n(327));var a=r.callbackNode;if(Ao()&&r.callbackNode!==a)return null;var d=Ul(r,r===Zt?Jt:0);if(d===0)return null;if((d&30)!==0||(d&r.expiredLanes)!==0||s)s=Mc(r,d);else{s=d;var p=tt;tt|=2;var g=Cv();(Zt!==r||Jt!==s)&&(es=null,To=Lt()+500,Ai(r,s));do try{D1();break}catch(O){bv(r,O)}while(!0);Zd(),Rc.current=g,tt=p,zt!==null?s=0:(Zt=null,Jt=0,s=Wt)}if(s!==0){if(s===2&&(p=ud(r),p!==0&&(d=p,s=Af(r,p))),s===1)throw a=Qa,Ai(r,0),zs(r,d),bn(r,Lt()),a;if(s===6)zs(r,d);else{if(p=r.current.alternate,(d&30)===0&&!L1(p)&&(s=Mc(r,d),s===2&&(g=ud(r),g!==0&&(d=g,s=Af(r,g))),s===1))throw a=Qa,Ai(r,0),zs(r,d),bn(r,Lt()),a;switch(r.finishedWork=p,r.finishedLanes=d,s){case 0:case 1:throw Error(n(345));case 2:Oi(r,Sn,es);break;case 3:if(zs(r,d),(d&130023424)===d&&(s=Pf+500-Lt(),10<s)){if(Ul(r,0)!==0)break;if(p=r.suspendedLanes,(p&d)!==d){pn(),r.pingedLanes|=r.suspendedLanes&p;break}r.timeoutHandle=Fd(Oi.bind(null,r,Sn,es),s);break}Oi(r,Sn,es);break;case 4:if(zs(r,d),(d&4194240)===d)break;for(s=r.eventTimes,p=-1;0<d;){var j=31-ur(d);g=1<<j,j=s[j],j>p&&(p=j),d&=~g}if(d=p,d=Lt()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*M1(d/1960))-d,10<d){r.timeoutHandle=Fd(Oi.bind(null,r,Sn,es),d);break}Oi(r,Sn,es);break;case 5:Oi(r,Sn,es);break;default:throw Error(n(329))}}}return bn(r,Lt()),r.callbackNode===a?wv.bind(null,r):null}function Af(r,s){var a=Za;return r.current.memoizedState.isDehydrated&&(Ai(r,s).flags|=256),r=Mc(r,s),r!==2&&(s=Sn,Sn=a,s!==null&&Of(s)),r}function Of(r){Sn===null?Sn=r:Sn.push.apply(Sn,r)}function L1(r){for(var s=r;;){if(s.flags&16384){var a=s.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var d=0;d<a.length;d++){var p=a[d],g=p.getSnapshot;p=p.value;try{if(!dr(g(),p))return!1}catch{return!1}}}if(a=s.child,s.subtreeFlags&16384&&a!==null)a.return=s,s=a;else{if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function zs(r,s){for(s&=~Rf,s&=~Pc,r.suspendedLanes|=s,r.pingedLanes&=~s,r=r.expirationTimes;0<s;){var a=31-ur(s),d=1<<a;r[a]=-1,s&=~d}}function Sv(r){if((tt&6)!==0)throw Error(n(327));Ao();var s=Ul(r,0);if((s&1)===0)return bn(r,Lt()),null;var a=Mc(r,s);if(r.tag!==0&&a===2){var d=ud(r);d!==0&&(s=d,a=Af(r,d))}if(a===1)throw a=Qa,Ai(r,0),zs(r,s),bn(r,Lt()),a;if(a===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=s,Oi(r,Sn,es),bn(r,Lt()),null}function If(r,s){var a=tt;tt|=1;try{return r(s)}finally{tt=a,tt===0&&(To=Lt()+500,lc&&As())}}function Ti(r){Fs!==null&&Fs.tag===0&&(tt&6)===0&&Ao();var s=tt;tt|=1;var a=Jn.transition,d=pt;try{if(Jn.transition=null,pt=1,r)return r()}finally{pt=d,Jn.transition=a,tt=s,(tt&6)===0&&As()}}function Mf(){Ln=No.current,wt(No)}function Ai(r,s){r.finishedWork=null,r.finishedLanes=0;var a=r.timeoutHandle;if(a!==-1&&(r.timeoutHandle=-1,f1(a)),zt!==null)for(a=zt.return;a!==null;){var d=a;switch(Ud(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&oc();break;case 3:jo(),wt(yn),wt(nn),nf();break;case 5:ef(d);break;case 4:jo();break;case 13:wt(kt);break;case 19:wt(kt);break;case 10:qd(d.type._context);break;case 22:case 23:Mf()}a=a.return}if(Zt=r,zt=r=Vs(r.current,null),Jt=Ln=s,Wt=0,Qa=null,Rf=Pc=Ni=0,Sn=Za=null,ji!==null){for(s=0;s<ji.length;s++)if(a=ji[s],d=a.interleaved,d!==null){a.interleaved=null;var p=d.next,g=a.pending;if(g!==null){var j=g.next;g.next=p,d.next=j}a.pending=d}ji=null}return r}function bv(r,s){do{var a=zt;try{if(Zd(),yc.current=bc,xc){for(var d=Et.memoizedState;d!==null;){var p=d.queue;p!==null&&(p.pending=null),d=d.next}xc=!1}if(Pi=0,Qt=Ut=Et=null,$a=!1,Ba=0,jf.current=null,a===null||a.return===null){Wt=1,Qa=s,zt=null;break}e:{var g=r,j=a.return,O=a,V=s;if(s=Jt,O.flags|=32768,V!==null&&typeof V=="object"&&typeof V.then=="function"){var G=V,oe=O,ae=oe.tag;if((oe.mode&1)===0&&(ae===0||ae===11||ae===15)){var ie=oe.alternate;ie?(oe.updateQueue=ie.updateQueue,oe.memoizedState=ie.memoizedState,oe.lanes=ie.lanes):(oe.updateQueue=null,oe.memoizedState=null)}var ye=Qg(j);if(ye!==null){ye.flags&=-257,Zg(ye,j,O,g,s),ye.mode&1&&Kg(g,G,s),s=ye,V=G;var be=s.updateQueue;if(be===null){var _e=new Set;_e.add(V),s.updateQueue=_e}else be.add(V);break e}else{if((s&1)===0){Kg(g,G,s),Lf();break e}V=Error(n(426))}}else if(bt&&O.mode&1){var Ft=Qg(j);if(Ft!==null){(Ft.flags&65536)===0&&(Ft.flags|=256),Zg(Ft,j,O,g,s),Kd(Ro(V,O));break e}}g=V=Ro(V,O),Wt!==4&&(Wt=2),Za===null?Za=[g]:Za.push(g),g=j;do{switch(g.tag){case 3:g.flags|=65536,s&=-s,g.lanes|=s;var U=Wg(g,V,s);vg(g,U);break e;case 1:O=V;var $=g.type,K=g.stateNode;if((g.flags&128)===0&&(typeof $.getDerivedStateFromError=="function"||K!==null&&typeof K.componentDidCatch=="function"&&(Ls===null||!Ls.has(K)))){g.flags|=65536,s&=-s,g.lanes|=s;var ue=Hg(g,O,s);vg(g,ue);break e}}g=g.return}while(g!==null)}kv(a)}catch(Ee){s=Ee,zt===a&&a!==null&&(zt=a=a.return);continue}break}while(!0)}function Cv(){var r=Rc.current;return Rc.current=bc,r===null?bc:r}function Lf(){(Wt===0||Wt===3||Wt===2)&&(Wt=4),Zt===null||(Ni&268435455)===0&&(Pc&268435455)===0||zs(Zt,Jt)}function Mc(r,s){var a=tt;tt|=2;var d=Cv();(Zt!==r||Jt!==s)&&(es=null,Ai(r,s));do try{F1();break}catch(p){bv(r,p)}while(!0);if(Zd(),tt=a,Rc.current=d,zt!==null)throw Error(n(261));return Zt=null,Jt=0,Wt}function F1(){for(;zt!==null;)_v(zt)}function D1(){for(;zt!==null&&!cb();)_v(zt)}function _v(r){var s=Rv(r.alternate,r,Ln);r.memoizedProps=r.pendingProps,s===null?kv(r):zt=s,jf.current=null}function kv(r){var s=r;do{var a=s.alternate;if(r=s.return,(s.flags&32768)===0){if(a=N1(a,s,Ln),a!==null){zt=a;return}}else{if(a=T1(a,s),a!==null){a.flags&=32767,zt=a;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{Wt=6,zt=null;return}}if(s=s.sibling,s!==null){zt=s;return}zt=s=r}while(s!==null);Wt===0&&(Wt=5)}function Oi(r,s,a){var d=pt,p=Jn.transition;try{Jn.transition=null,pt=1,z1(r,s,a,d)}finally{Jn.transition=p,pt=d}return null}function z1(r,s,a,d){do Ao();while(Fs!==null);if((tt&6)!==0)throw Error(n(327));a=r.finishedWork;var p=r.finishedLanes;if(a===null)return null;if(r.finishedWork=null,r.finishedLanes=0,a===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var g=a.lanes|a.childLanes;if(xb(r,g),r===Zt&&(zt=Zt=null,Jt=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||Tc||(Tc=!0,Pv(zl,function(){return Ao(),null})),g=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||g){g=Jn.transition,Jn.transition=null;var j=pt;pt=1;var O=tt;tt|=4,jf.current=null,O1(r,a),mv(a,r),i1(Md),Kl=!!Id,Md=Id=null,r.current=a,I1(a),ub(),tt=O,pt=j,Jn.transition=g}else r.current=a;if(Tc&&(Tc=!1,Fs=r,Ac=p),g=r.pendingLanes,g===0&&(Ls=null),hb(a.stateNode),bn(r,Lt()),s!==null)for(d=r.onRecoverableError,a=0;a<s.length;a++)p=s[a],d(p.value,{componentStack:p.stack,digest:p.digest});if(Nc)throw Nc=!1,r=Nf,Nf=null,r;return(Ac&1)!==0&&r.tag!==0&&Ao(),g=r.pendingLanes,(g&1)!==0?r===Tf?qa++:(qa=0,Tf=r):qa=0,As(),null}function Ao(){if(Fs!==null){var r=hm(Ac),s=Jn.transition,a=pt;try{if(Jn.transition=null,pt=16>r?16:r,Fs===null)var d=!1;else{if(r=Fs,Fs=null,Ac=0,(tt&6)!==0)throw Error(n(331));var p=tt;for(tt|=4,we=r.current;we!==null;){var g=we,j=g.child;if((we.flags&16)!==0){var O=g.deletions;if(O!==null){for(var V=0;V<O.length;V++){var G=O[V];for(we=G;we!==null;){var oe=we;switch(oe.tag){case 0:case 11:case 15:Ka(8,oe,g)}var ae=oe.child;if(ae!==null)ae.return=oe,we=ae;else for(;we!==null;){oe=we;var ie=oe.sibling,ye=oe.return;if(uv(oe),oe===G){we=null;break}if(ie!==null){ie.return=ye,we=ie;break}we=ye}}}var be=g.alternate;if(be!==null){var _e=be.child;if(_e!==null){be.child=null;do{var Ft=_e.sibling;_e.sibling=null,_e=Ft}while(_e!==null)}}we=g}}if((g.subtreeFlags&2064)!==0&&j!==null)j.return=g,we=j;else e:for(;we!==null;){if(g=we,(g.flags&2048)!==0)switch(g.tag){case 0:case 11:case 15:Ka(9,g,g.return)}var U=g.sibling;if(U!==null){U.return=g.return,we=U;break e}we=g.return}}var $=r.current;for(we=$;we!==null;){j=we;var K=j.child;if((j.subtreeFlags&2064)!==0&&K!==null)K.return=j,we=K;else e:for(j=$;we!==null;){if(O=we,(O.flags&2048)!==0)try{switch(O.tag){case 0:case 11:case 15:jc(9,O)}}catch(Ee){Nt(O,O.return,Ee)}if(O===j){we=null;break e}var ue=O.sibling;if(ue!==null){ue.return=O.return,we=ue;break e}we=O.return}}if(tt=p,As(),jr&&typeof jr.onPostCommitFiberRoot=="function")try{jr.onPostCommitFiberRoot(Vl,r)}catch{}d=!0}return d}finally{pt=a,Jn.transition=s}}return!1}function Ev(r,s,a){s=Ro(a,s),s=Wg(r,s,1),r=Is(r,s,1),s=pn(),r!==null&&(xa(r,1,s),bn(r,s))}function Nt(r,s,a){if(r.tag===3)Ev(r,r,a);else for(;s!==null;){if(s.tag===3){Ev(s,r,a);break}else if(s.tag===1){var d=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Ls===null||!Ls.has(d))){r=Ro(a,r),r=Hg(s,r,1),s=Is(s,r,1),r=pn(),s!==null&&(xa(s,1,r),bn(s,r));break}}s=s.return}}function V1(r,s,a){var d=r.pingCache;d!==null&&d.delete(s),s=pn(),r.pingedLanes|=r.suspendedLanes&a,Zt===r&&(Jt&a)===a&&(Wt===4||Wt===3&&(Jt&130023424)===Jt&&500>Lt()-Pf?Ai(r,0):Rf|=a),bn(r,s)}function jv(r,s){s===0&&((r.mode&1)===0?s=1:(s=Bl,Bl<<=1,(Bl&130023424)===0&&(Bl=4194304)));var a=pn();r=Yr(r,s),r!==null&&(xa(r,s,a),bn(r,a))}function $1(r){var s=r.memoizedState,a=0;s!==null&&(a=s.retryLane),jv(r,a)}function B1(r,s){var a=0;switch(r.tag){case 13:var d=r.stateNode,p=r.memoizedState;p!==null&&(a=p.retryLane);break;case 19:d=r.stateNode;break;default:throw Error(n(314))}d!==null&&d.delete(s),jv(r,a)}var Rv;Rv=function(r,s,a){if(r!==null)if(r.memoizedProps!==s.pendingProps||yn.current)wn=!0;else{if((r.lanes&a)===0&&(s.flags&128)===0)return wn=!1,P1(r,s,a);wn=(r.flags&131072)!==0}else wn=!1,bt&&(s.flags&1048576)!==0&&ag(s,uc,s.index);switch(s.lanes=0,s.tag){case 2:var d=s.type;kc(r,s),r=s.pendingProps;var p=wo(s,nn.current);Eo(s,a),p=of(null,s,d,r,p,a);var g=af();return s.flags|=1,typeof p=="object"&&p!==null&&typeof p.render=="function"&&p.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,xn(d)?(g=!0,ac(s)):g=!1,s.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,Xd(s),p.updater=Cc,s.stateNode=p,p._reactInternals=s,hf(s,d,r,a),s=vf(null,s,d,!0,g,a)):(s.tag=0,bt&&g&&Bd(s),hn(null,s,p,a),s=s.child),s;case 16:d=s.elementType;e:{switch(kc(r,s),r=s.pendingProps,p=d._init,d=p(d._payload),s.type=d,p=s.tag=W1(d),r=hr(d,r),p){case 0:s=gf(null,s,d,r,a);break e;case 1:s=ev(null,s,d,r,a);break e;case 11:s=qg(null,s,d,r,a);break e;case 14:s=Gg(null,s,d,hr(d.type,r),a);break e}throw Error(n(306,d,""))}return s;case 0:return d=s.type,p=s.pendingProps,p=s.elementType===d?p:hr(d,p),gf(r,s,d,p,a);case 1:return d=s.type,p=s.pendingProps,p=s.elementType===d?p:hr(d,p),ev(r,s,d,p,a);case 3:e:{if(tv(s),r===null)throw Error(n(387));d=s.pendingProps,g=s.memoizedState,p=g.element,gg(r,s),gc(s,d,null,a);var j=s.memoizedState;if(d=j.element,g.isDehydrated)if(g={element:d,isDehydrated:!1,cache:j.cache,pendingSuspenseBoundaries:j.pendingSuspenseBoundaries,transitions:j.transitions},s.updateQueue.baseState=g,s.memoizedState=g,s.flags&256){p=Ro(Error(n(423)),s),s=nv(r,s,d,a,p);break e}else if(d!==p){p=Ro(Error(n(424)),s),s=nv(r,s,d,a,p);break e}else for(Mn=Ps(s.stateNode.containerInfo.firstChild),In=s,bt=!0,fr=null,a=pg(s,null,d,a),s.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Co(),d===p){s=Jr(r,s,a);break e}hn(r,s,d,a)}s=s.child}return s;case 5:return xg(s),r===null&&Hd(s),d=s.type,p=s.pendingProps,g=r!==null?r.memoizedProps:null,j=p.children,Ld(d,p)?j=null:g!==null&&Ld(d,g)&&(s.flags|=32),Jg(r,s),hn(r,s,j,a),s.child;case 6:return r===null&&Hd(s),null;case 13:return rv(r,s,a);case 4:return Jd(s,s.stateNode.containerInfo),d=s.pendingProps,r===null?s.child=_o(s,null,d,a):hn(r,s,d,a),s.child;case 11:return d=s.type,p=s.pendingProps,p=s.elementType===d?p:hr(d,p),qg(r,s,d,p,a);case 7:return hn(r,s,s.pendingProps,a),s.child;case 8:return hn(r,s,s.pendingProps.children,a),s.child;case 12:return hn(r,s,s.pendingProps.children,a),s.child;case 10:e:{if(d=s.type._context,p=s.pendingProps,g=s.memoizedProps,j=p.value,yt(hc,d._currentValue),d._currentValue=j,g!==null)if(dr(g.value,j)){if(g.children===p.children&&!yn.current){s=Jr(r,s,a);break e}}else for(g=s.child,g!==null&&(g.return=s);g!==null;){var O=g.dependencies;if(O!==null){j=g.child;for(var V=O.firstContext;V!==null;){if(V.context===d){if(g.tag===1){V=Xr(-1,a&-a),V.tag=2;var G=g.updateQueue;if(G!==null){G=G.shared;var oe=G.pending;oe===null?V.next=V:(V.next=oe.next,oe.next=V),G.pending=V}}g.lanes|=a,V=g.alternate,V!==null&&(V.lanes|=a),Gd(g.return,a,s),O.lanes|=a;break}V=V.next}}else if(g.tag===10)j=g.type===s.type?null:g.child;else if(g.tag===18){if(j=g.return,j===null)throw Error(n(341));j.lanes|=a,O=j.alternate,O!==null&&(O.lanes|=a),Gd(j,a,s),j=g.sibling}else j=g.child;if(j!==null)j.return=g;else for(j=g;j!==null;){if(j===s){j=null;break}if(g=j.sibling,g!==null){g.return=j.return,j=g;break}j=j.return}g=j}hn(r,s,p.children,a),s=s.child}return s;case 9:return p=s.type,d=s.pendingProps.children,Eo(s,a),p=Yn(p),d=d(p),s.flags|=1,hn(r,s,d,a),s.child;case 14:return d=s.type,p=hr(d,s.pendingProps),p=hr(d.type,p),Gg(r,s,d,p,a);case 15:return Yg(r,s,s.type,s.pendingProps,a);case 17:return d=s.type,p=s.pendingProps,p=s.elementType===d?p:hr(d,p),kc(r,s),s.tag=1,xn(d)?(r=!0,ac(s)):r=!1,Eo(s,a),Bg(s,d,p),hf(s,d,p,a),vf(null,s,d,!0,r,a);case 19:return iv(r,s,a);case 22:return Xg(r,s,a)}throw Error(n(156,s.tag))};function Pv(r,s){return lm(r,s)}function U1(r,s,a,d){this.tag=r,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function er(r,s,a,d){return new U1(r,s,a,d)}function Ff(r){return r=r.prototype,!(!r||!r.isReactComponent)}function W1(r){if(typeof r=="function")return Ff(r)?1:0;if(r!=null){if(r=r.$$typeof,r===H)return 11;if(r===Y)return 14}return 2}function Vs(r,s){var a=r.alternate;return a===null?(a=er(r.tag,s,r.key,r.mode),a.elementType=r.elementType,a.type=r.type,a.stateNode=r.stateNode,a.alternate=r,r.alternate=a):(a.pendingProps=s,a.type=r.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=r.flags&14680064,a.childLanes=r.childLanes,a.lanes=r.lanes,a.child=r.child,a.memoizedProps=r.memoizedProps,a.memoizedState=r.memoizedState,a.updateQueue=r.updateQueue,s=r.dependencies,a.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},a.sibling=r.sibling,a.index=r.index,a.ref=r.ref,a}function Lc(r,s,a,d,p,g){var j=2;if(d=r,typeof r=="function")Ff(r)&&(j=1);else if(typeof r=="string")j=5;else e:switch(r){case A:return Ii(a.children,p,g,s);case z:j=8,p|=8;break;case L:return r=er(12,a,s,p|2),r.elementType=L,r.lanes=g,r;case ee:return r=er(13,a,s,p),r.elementType=ee,r.lanes=g,r;case ne:return r=er(19,a,s,p),r.elementType=ne,r.lanes=g,r;case se:return Fc(a,p,g,s);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case M:j=10;break e;case Q:j=9;break e;case H:j=11;break e;case Y:j=14;break e;case Z:j=16,d=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return s=er(j,a,s,p),s.elementType=r,s.type=d,s.lanes=g,s}function Ii(r,s,a,d){return r=er(7,r,d,s),r.lanes=a,r}function Fc(r,s,a,d){return r=er(22,r,d,s),r.elementType=se,r.lanes=a,r.stateNode={isHidden:!1},r}function Df(r,s,a){return r=er(6,r,null,s),r.lanes=a,r}function zf(r,s,a){return s=er(4,r.children!==null?r.children:[],r.key,s),s.lanes=a,s.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},s}function H1(r,s,a,d,p){this.tag=s,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=dd(0),this.expirationTimes=dd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dd(0),this.identifierPrefix=d,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null}function Vf(r,s,a,d,p,g,j,O,V){return r=new H1(r,s,a,O,V),s===1?(s=1,g===!0&&(s|=8)):s=0,g=er(3,null,null,s),r.current=g,g.stateNode=r,g.memoizedState={element:d,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xd(g),r}function K1(r,s,a){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:T,key:d==null?null:""+d,children:r,containerInfo:s,implementation:a}}function Nv(r){if(!r)return Ts;r=r._reactInternals;e:{if(bi(r)!==r||r.tag!==1)throw Error(n(170));var s=r;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(xn(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(n(171))}if(r.tag===1){var a=r.type;if(xn(a))return sg(r,a,s)}return s}function Tv(r,s,a,d,p,g,j,O,V){return r=Vf(a,d,!0,r,p,g,j,O,V),r.context=Nv(null),a=r.current,d=pn(),p=Ds(a),g=Xr(d,p),g.callback=s??null,Is(a,g,p),r.current.lanes=p,xa(r,p,d),bn(r,d),r}function Dc(r,s,a,d){var p=s.current,g=pn(),j=Ds(p);return a=Nv(a),s.context===null?s.context=a:s.pendingContext=a,s=Xr(g,j),s.payload={element:r},d=d===void 0?null:d,d!==null&&(s.callback=d),r=Is(p,s,j),r!==null&&(gr(r,p,j,g),mc(r,p,j)),j}function zc(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function Av(r,s){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var a=r.retryLane;r.retryLane=a!==0&&a<s?a:s}}function $f(r,s){Av(r,s),(r=r.alternate)&&Av(r,s)}function Q1(){return null}var Ov=typeof reportError=="function"?reportError:function(r){console.error(r)};function Bf(r){this._internalRoot=r}Vc.prototype.render=Bf.prototype.render=function(r){var s=this._internalRoot;if(s===null)throw Error(n(409));Dc(r,s,null,null)},Vc.prototype.unmount=Bf.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var s=r.containerInfo;Ti(function(){Dc(null,r,null,null)}),s[Qr]=null}};function Vc(r){this._internalRoot=r}Vc.prototype.unstable_scheduleHydration=function(r){if(r){var s=gm();r={blockedOn:null,target:r,priority:s};for(var a=0;a<Es.length&&s!==0&&s<Es[a].priority;a++);Es.splice(a,0,r),a===0&&xm(r)}};function Uf(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function $c(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function Iv(){}function Z1(r,s,a,d,p){if(p){if(typeof d=="function"){var g=d;d=function(){var G=zc(j);g.call(G)}}var j=Tv(s,d,r,0,null,!1,!1,"",Iv);return r._reactRootContainer=j,r[Qr]=j.current,Oa(r.nodeType===8?r.parentNode:r),Ti(),j}for(;p=r.lastChild;)r.removeChild(p);if(typeof d=="function"){var O=d;d=function(){var G=zc(V);O.call(G)}}var V=Vf(r,0,!1,null,null,!1,!1,"",Iv);return r._reactRootContainer=V,r[Qr]=V.current,Oa(r.nodeType===8?r.parentNode:r),Ti(function(){Dc(s,V,a,d)}),V}function Bc(r,s,a,d,p){var g=a._reactRootContainer;if(g){var j=g;if(typeof p=="function"){var O=p;p=function(){var V=zc(j);O.call(V)}}Dc(s,j,r,p)}else j=Z1(a,s,r,p,d);return zc(j)}pm=function(r){switch(r.tag){case 3:var s=r.stateNode;if(s.current.memoizedState.isDehydrated){var a=ya(s.pendingLanes);a!==0&&(fd(s,a|1),bn(s,Lt()),(tt&6)===0&&(To=Lt()+500,As()))}break;case 13:Ti(function(){var d=Yr(r,1);if(d!==null){var p=pn();gr(d,r,1,p)}}),$f(r,1)}},hd=function(r){if(r.tag===13){var s=Yr(r,134217728);if(s!==null){var a=pn();gr(s,r,134217728,a)}$f(r,134217728)}},mm=function(r){if(r.tag===13){var s=Ds(r),a=Yr(r,s);if(a!==null){var d=pn();gr(a,r,s,d)}$f(r,s)}},gm=function(){return pt},vm=function(r,s){var a=pt;try{return pt=r,s()}finally{pt=a}},Tn=function(r,s,a){switch(s){case"input":if(Dt(r,a),s=a.name,a.type==="radio"&&s!=null){for(a=r;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<a.length;s++){var d=a[s];if(d!==r&&d.form===r.form){var p=ic(d);if(!p)throw Error(n(90));Ue(d),Dt(d,p)}}}break;case"textarea":pe(r,a);break;case"select":s=a.value,s!=null&&D(r,!!a.multiple,s,!1)}},ws=If,tn=Ti;var q1={usingClientEntryPoint:!1,Events:[La,yo,ic,An,ar,If]},Ga={findFiberByHostInstance:Ci,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},G1={bundleType:Ga.bundleType,version:Ga.version,rendererPackageName:Ga.rendererPackageName,rendererConfig:Ga.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:R.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=om(r),r===null?null:r.stateNode},findFiberByHostInstance:Ga.findFiberByHostInstance||Q1,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 Uc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Uc.isDisabled&&Uc.supportsFiber)try{Vl=Uc.inject(G1),jr=Uc}catch{}}return Cn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q1,Cn.createPortal=function(r,s){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Uf(s))throw Error(n(200));return K1(r,s,null,a)},Cn.createRoot=function(r,s){if(!Uf(r))throw Error(n(299));var a=!1,d="",p=Ov;return s!=null&&(s.unstable_strictMode===!0&&(a=!0),s.identifierPrefix!==void 0&&(d=s.identifierPrefix),s.onRecoverableError!==void 0&&(p=s.onRecoverableError)),s=Vf(r,1,!1,null,null,a,!1,d,p),r[Qr]=s.current,Oa(r.nodeType===8?r.parentNode:r),new Bf(s)},Cn.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var s=r._reactInternals;if(s===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=om(s),r=r===null?null:r.stateNode,r},Cn.flushSync=function(r){return Ti(r)},Cn.hydrate=function(r,s,a){if(!$c(s))throw Error(n(200));return Bc(null,r,s,!0,a)},Cn.hydrateRoot=function(r,s,a){if(!Uf(r))throw Error(n(405));var d=a!=null&&a.hydratedSources||null,p=!1,g="",j=Ov;if(a!=null&&(a.unstable_strictMode===!0&&(p=!0),a.identifierPrefix!==void 0&&(g=a.identifierPrefix),a.onRecoverableError!==void 0&&(j=a.onRecoverableError)),s=Tv(s,null,r,1,a??null,p,!1,g,j),r[Qr]=s.current,Oa(r),d)for(r=0;r<d.length;r++)a=d[r],p=a._getVersion,p=p(a._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[a,p]:s.mutableSourceEagerHydrationData.push(a,p);return new Vc(s)},Cn.render=function(r,s,a){if(!$c(s))throw Error(n(200));return Bc(null,r,s,!1,a)},Cn.unmountComponentAtNode=function(r){if(!$c(r))throw Error(n(40));return r._reactRootContainer?(Ti(function(){Bc(null,null,r,!1,function(){r._reactRootContainer=null,r[Qr]=null})}),!0):!1},Cn.unstable_batchedUpdates=If,Cn.unstable_renderSubtreeIntoContainer=function(r,s,a,d){if(!$c(a))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return Bc(r,s,a,!1,d)},Cn.version="18.3.1-next-f1338f8080-20240426",Cn}var Wv;function ew(){if(Wv)return Qf.exports;Wv=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Qf.exports=sC(),Qf.exports}var Hv;function iC(){if(Hv)return Hc;Hv=1;var e=ew();return Hc.createRoot=e.createRoot,Hc.hydrateRoot=e.hydrateRoot,Hc}var oC=iC(),da=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(){}},aC={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Gs,cp,Ux,lC=(Ux=class{constructor(){Pe(this,Gs,aC);Pe(this,cp,!1)}setTimeoutProvider(e){ge(this,Gs,e)}setTimeout(e,t){return F(this,Gs).setTimeout(e,t)}clearTimeout(e){F(this,Gs).clearTimeout(e)}setInterval(e,t){return F(this,Gs).setInterval(e,t)}clearInterval(e){F(this,Gs).clearInterval(e)}},Gs=new WeakMap,cp=new WeakMap,Ux),Li=new lC;function cC(e){setTimeout(e,0)}var Yi=typeof window>"u"||"Deno"in globalThis;function vn(){}function uC(e,t){return typeof e=="function"?e(t):e}function _h(e){return typeof e=="number"&&e>=0&&e!==1/0}function tw(e,t){return Math.max(e+(t||0)-Date.now(),0)}function li(e,t){return typeof e=="function"?e(t):e}function nr(e,t){return typeof e=="function"?e(t):e}function Kv(e,t){const{type:n="all",exact:i,fetchStatus:o,predicate:l,queryKey:u,stale:c}=e;if(u){if(i){if(t.queryHash!==dp(u,t.options))return!1}else if(!hl(t.queryKey,u))return!1}if(n!=="all"){const h=t.isActive();if(n==="active"&&!h||n==="inactive"&&h)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||o&&o!==t.state.fetchStatus||l&&!l(t))}function Qv(e,t){const{exact:n,status:i,predicate:o,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(Xi(t.options.mutationKey)!==Xi(l))return!1}else if(!hl(t.options.mutationKey,l))return!1}return!(i&&t.state.status!==i||o&&!o(t))}function dp(e,t){return((t==null?void 0:t.queryKeyHashFn)||Xi)(e)}function Xi(e){return JSON.stringify(e,(t,n)=>kh(n)?Object.keys(n).sort().reduce((i,o)=>(i[o]=n[o],i),{}):n)}function hl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>hl(e[n],t[n])):!1}var dC=Object.prototype.hasOwnProperty;function nw(e,t,n=0){if(e===t)return e;if(n>500)return t;const i=Zv(e)&&Zv(t);if(!i&&!(kh(e)&&kh(t)))return t;const l=(i?e:Object.keys(e)).length,u=i?t:Object.keys(t),c=u.length,h=i?new Array(c):{};let m=0;for(let y=0;y<c;y++){const v=i?y:u[y],x=e[v],w=t[v];if(x===w){h[v]=x,(i?y<l:dC.call(e,v))&&m++;continue}if(x===null||w===null||typeof x!="object"||typeof w!="object"){h[v]=w;continue}const k=nw(x,w,n+1);h[v]=k,k===x&&m++}return l===c&&m===l?e:h}function du(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 Zv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function kh(e){if(!qv(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!qv(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function qv(e){return Object.prototype.toString.call(e)==="[object Object]"}function fC(e){return new Promise(t=>{Li.setTimeout(t,e)})}function Eh(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?nw(e,t):t}function hC(e,t,n=0){const i=[...e,t];return n&&i.length>n?i.slice(1):i}function pC(e,t,n=0){const i=[t,...e];return n&&i.length>n?i.slice(0,-1):i}var fp=Symbol();function rw(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===fp?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function hp(e,t){return typeof e=="function"?e(...t):!!e}function mC(e,t,n){let i=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??(o=t()),i||(i=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),e}var Vi,Ys,Ho,Wx,gC=(Wx=class extends da{constructor(){super();Pe(this,Vi);Pe(this,Ys);Pe(this,Ho);ge(this,Ho,t=>{if(!Yi&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){F(this,Ys)||this.setEventListener(F(this,Ho))}onUnsubscribe(){var t;this.hasListeners()||((t=F(this,Ys))==null||t.call(this),ge(this,Ys,void 0))}setEventListener(t){var n;ge(this,Ho,t),(n=F(this,Ys))==null||n.call(this),ge(this,Ys,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){F(this,Vi)!==t&&(ge(this,Vi,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof F(this,Vi)=="boolean"?F(this,Vi):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Vi=new WeakMap,Ys=new WeakMap,Ho=new WeakMap,Wx),pp=new gC;function jh(){let e,t;const n=new Promise((o,l)=>{e=o,t=l});n.status="pending",n.catch(()=>{});function i(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{i({status:"fulfilled",value:o}),e(o)},n.reject=o=>{i({status:"rejected",reason:o}),t(o)},n}var vC=cC;function yC(){let e=[],t=0,n=c=>{c()},i=c=>{c()},o=vC;const l=c=>{t?e.push(c):o(()=>{n(c)})},u=()=>{const c=e;e=[],c.length&&o(()=>{i(()=>{c.forEach(h=>{n(h)})})})};return{batch:c=>{let h;t++;try{h=c()}finally{t--,t||u()}return h},batchCalls:c=>(...h)=>{l(()=>{c(...h)})},schedule:l,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{i=c},setScheduler:c=>{o=c}}}var Kt=yC(),Ko,Xs,Qo,Hx,xC=(Hx=class extends da{constructor(){super();Pe(this,Ko,!0);Pe(this,Xs);Pe(this,Qo);ge(this,Qo,t=>{if(!Yi&&window.addEventListener){const n=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",i)}}})}onSubscribe(){F(this,Xs)||this.setEventListener(F(this,Qo))}onUnsubscribe(){var t;this.hasListeners()||((t=F(this,Xs))==null||t.call(this),ge(this,Xs,void 0))}setEventListener(t){var n;ge(this,Qo,t),(n=F(this,Xs))==null||n.call(this),ge(this,Xs,t(this.setOnline.bind(this)))}setOnline(t){F(this,Ko)!==t&&(ge(this,Ko,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return F(this,Ko)}},Ko=new WeakMap,Xs=new WeakMap,Qo=new WeakMap,Hx),fu=new xC;function wC(e){return Math.min(1e3*2**e,3e4)}function sw(e){return(e??"online")==="online"?fu.isOnline():!0}var Rh=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function iw(e){let t=!1,n=0,i;const o=jh(),l=()=>o.status!=="pending",u=S=>{var C;if(!l()){const P=new Rh(S);x(P),(C=e.onCancel)==null||C.call(e,P)}},c=()=>{t=!0},h=()=>{t=!1},m=()=>pp.isFocused()&&(e.networkMode==="always"||fu.isOnline())&&e.canRun(),y=()=>sw(e.networkMode)&&e.canRun(),v=S=>{l()||(i==null||i(),o.resolve(S))},x=S=>{l()||(i==null||i(),o.reject(S))},w=()=>new Promise(S=>{var C;i=P=>{(l()||m())&&S(P)},(C=e.onPause)==null||C.call(e)}).then(()=>{var S;i=void 0,l()||(S=e.onContinue)==null||S.call(e)}),k=()=>{if(l())return;let S;const C=n===0?e.initialPromise:void 0;try{S=C??e.fn()}catch(P){S=Promise.reject(P)}Promise.resolve(S).then(v).catch(P=>{var T;if(l())return;const _=e.retry??(Yi?0:3),E=e.retryDelay??wC,R=typeof E=="function"?E(n,P):E,N=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,P);if(t||!N){x(P);return}n++,(T=e.onFail)==null||T.call(e,n,P),fC(R).then(()=>m()?void 0:w()).then(()=>{t?x(P):k()})})};return{promise:o,status:()=>o.status,cancel:u,continue:()=>(i==null||i(),o),cancelRetry:c,continueRetry:h,canStart:y,start:()=>(y()?k():w().then(k),o)}}var $i,Kx,ow=(Kx=class{constructor(){Pe(this,$i)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),_h(this.gcTime)&&ge(this,$i,Li.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Yi?1/0:300*1e3))}clearGcTimeout(){F(this,$i)&&(Li.clearTimeout(F(this,$i)),ge(this,$i,void 0))}},$i=new WeakMap,Kx),Bi,Zo,tr,Ui,Gt,El,Wi,yr,rs,Qx,SC=(Qx=class extends ow{constructor(t){super();Pe(this,yr);Pe(this,Bi);Pe(this,Zo);Pe(this,tr);Pe(this,Ui);Pe(this,Gt);Pe(this,El);Pe(this,Wi);ge(this,Wi,!1),ge(this,El,t.defaultOptions),this.setOptions(t.options),this.observers=[],ge(this,Ui,t.client),ge(this,tr,F(this,Ui).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ge(this,Bi,Yv(this.options)),this.state=t.state??F(this,Bi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=F(this,Gt))==null?void 0:t.promise}setOptions(t){if(this.options={...F(this,El),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Yv(this.options);n.data!==void 0&&(this.setState(Gv(n.data,n.dataUpdatedAt)),ge(this,Bi,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&F(this,tr).remove(this)}setData(t,n){const i=Eh(this.state.data,t,this.options);return He(this,yr,rs).call(this,{data:i,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),i}setState(t,n){He(this,yr,rs).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var i,o;const n=(i=F(this,Gt))==null?void 0:i.promise;return(o=F(this,Gt))==null||o.cancel(t),n?n.then(vn).catch(vn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(F(this,Bi))}isActive(){return this.observers.some(t=>nr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fp||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>li(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:!tw(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=F(this,Gt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=F(this,Gt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),F(this,tr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(F(this,Gt)&&(F(this,Wi)?F(this,Gt).cancel({revert:!0}):F(this,Gt).cancelRetry()),this.scheduleGc()),F(this,tr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||He(this,yr,rs).call(this,{type:"invalidate"})}async fetch(t,n){var h,m,y,v,x,w,k,S,C,P,_,E;if(this.state.fetchStatus!=="idle"&&((h=F(this,Gt))==null?void 0:h.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(F(this,Gt))return F(this,Gt).continueRetry(),F(this,Gt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const R=this.observers.find(N=>N.options.queryFn);R&&this.setOptions(R.options)}const i=new AbortController,o=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>(ge(this,Wi,!0),i.signal)})},l=()=>{const R=rw(this.options,n),T=(()=>{const A={client:F(this,Ui),queryKey:this.queryKey,meta:this.meta};return o(A),A})();return ge(this,Wi,!1),this.options.persister?this.options.persister(R,T,this):R(T)},c=(()=>{const R={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:F(this,Ui),state:this.state,fetchFn:l};return o(R),R})();(m=this.options.behavior)==null||m.onFetch(c,this),ge(this,Zo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((y=c.fetchOptions)==null?void 0:y.meta))&&He(this,yr,rs).call(this,{type:"fetch",meta:(v=c.fetchOptions)==null?void 0:v.meta}),ge(this,Gt,iw({initialPromise:n==null?void 0:n.initialPromise,fn:c.fetchFn,onCancel:R=>{R instanceof Rh&&R.revert&&this.setState({...F(this,Zo),fetchStatus:"idle"}),i.abort()},onFail:(R,N)=>{He(this,yr,rs).call(this,{type:"failed",failureCount:R,error:N})},onPause:()=>{He(this,yr,rs).call(this,{type:"pause"})},onContinue:()=>{He(this,yr,rs).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}));try{const R=await F(this,Gt).start();if(R===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(R),(w=(x=F(this,tr).config).onSuccess)==null||w.call(x,R,this),(S=(k=F(this,tr).config).onSettled)==null||S.call(k,R,this.state.error,this),R}catch(R){if(R instanceof Rh){if(R.silent)return F(this,Gt).promise;if(R.revert){if(this.state.data===void 0)throw R;return this.state.data}}throw He(this,yr,rs).call(this,{type:"error",error:R}),(P=(C=F(this,tr).config).onError)==null||P.call(C,R,this),(E=(_=F(this,tr).config).onSettled)==null||E.call(_,this.state.data,R,this),R}finally{this.scheduleGc()}}},Bi=new WeakMap,Zo=new WeakMap,tr=new WeakMap,Ui=new WeakMap,Gt=new WeakMap,El=new WeakMap,Wi=new WeakMap,yr=new WeakSet,rs=function(t){const n=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...aw(i.data,this.options),fetchMeta:t.meta??null};case"success":const o={...i,...Gv(t.data,t.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ge(this,Zo,t.manual?o:void 0),o;case"error":const l=t.error;return{...i,error:l,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=n(this.state),Kt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),F(this,tr).notify({query:this,type:"updated",action:t})})},Qx);function aw(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:sw(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Gv(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Yv(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,i=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var kn,Ge,jl,mn,Hi,qo,os,Js,Rl,Go,Yo,Ki,Qi,ei,Xo,ft,ol,Ph,Nh,Th,Ah,Oh,Ih,Mh,lw,Zx,bC=(Zx=class extends da{constructor(t,n){super();Pe(this,ft);Pe(this,kn);Pe(this,Ge);Pe(this,jl);Pe(this,mn);Pe(this,Hi);Pe(this,qo);Pe(this,os);Pe(this,Js);Pe(this,Rl);Pe(this,Go);Pe(this,Yo);Pe(this,Ki);Pe(this,Qi);Pe(this,ei);Pe(this,Xo,new Set);this.options=n,ge(this,kn,t),ge(this,Js,null),ge(this,os,jh()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(F(this,Ge).addObserver(this),Xv(F(this,Ge),this.options)?He(this,ft,ol).call(this):this.updateResult(),He(this,ft,Ah).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Lh(F(this,Ge),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Lh(F(this,Ge),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,He(this,ft,Oh).call(this),He(this,ft,Ih).call(this),F(this,Ge).removeObserver(this)}setOptions(t){const n=this.options,i=F(this,Ge);if(this.options=F(this,kn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof nr(this.options.enabled,F(this,Ge))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");He(this,ft,Mh).call(this),F(this,Ge).setOptions(this.options),n._defaulted&&!du(this.options,n)&&F(this,kn).getQueryCache().notify({type:"observerOptionsUpdated",query:F(this,Ge),observer:this});const o=this.hasListeners();o&&Jv(F(this,Ge),i,this.options,n)&&He(this,ft,ol).call(this),this.updateResult(),o&&(F(this,Ge)!==i||nr(this.options.enabled,F(this,Ge))!==nr(n.enabled,F(this,Ge))||li(this.options.staleTime,F(this,Ge))!==li(n.staleTime,F(this,Ge)))&&He(this,ft,Ph).call(this);const l=He(this,ft,Nh).call(this);o&&(F(this,Ge)!==i||nr(this.options.enabled,F(this,Ge))!==nr(n.enabled,F(this,Ge))||l!==F(this,ei))&&He(this,ft,Th).call(this,l)}getOptimisticResult(t){const n=F(this,kn).getQueryCache().build(F(this,kn),t),i=this.createResult(n,t);return _C(this,i)&&(ge(this,mn,i),ge(this,qo,this.options),ge(this,Hi,F(this,Ge).state)),i}getCurrentResult(){return F(this,mn)}trackResult(t,n){return new Proxy(t,{get:(i,o)=>(this.trackProp(o),n==null||n(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&F(this,os).status==="pending"&&F(this,os).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,o))})}trackProp(t){F(this,Xo).add(t)}getCurrentQuery(){return F(this,Ge)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=F(this,kn).defaultQueryOptions(t),i=F(this,kn).getQueryCache().build(F(this,kn),n);return i.fetch().then(()=>this.createResult(i,n))}fetch(t){return He(this,ft,ol).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),F(this,mn)))}createResult(t,n){var L;const i=F(this,Ge),o=this.options,l=F(this,mn),u=F(this,Hi),c=F(this,qo),m=t!==i?t.state:F(this,jl),{state:y}=t;let v={...y},x=!1,w;if(n._optimisticResults){const M=this.hasListeners(),Q=!M&&Xv(t,n),H=M&&Jv(t,i,n,o);(Q||H)&&(v={...v,...aw(y.data,t.options)}),n._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:k,errorUpdatedAt:S,status:C}=v;w=v.data;let P=!1;if(n.placeholderData!==void 0&&w===void 0&&C==="pending"){let M;l!=null&&l.isPlaceholderData&&n.placeholderData===(c==null?void 0:c.placeholderData)?(M=l.data,P=!0):M=typeof n.placeholderData=="function"?n.placeholderData((L=F(this,Yo))==null?void 0:L.state.data,F(this,Yo)):n.placeholderData,M!==void 0&&(C="success",w=Eh(l==null?void 0:l.data,M,n),x=!0)}if(n.select&&w!==void 0&&!P)if(l&&w===(u==null?void 0:u.data)&&n.select===F(this,Rl))w=F(this,Go);else try{ge(this,Rl,n.select),w=n.select(w),w=Eh(l==null?void 0:l.data,w,n),ge(this,Go,w),ge(this,Js,null)}catch(M){ge(this,Js,M)}F(this,Js)&&(k=F(this,Js),w=F(this,Go),S=Date.now(),C="error");const _=v.fetchStatus==="fetching",E=C==="pending",R=C==="error",N=E&&_,T=w!==void 0,z={status:C,fetchStatus:v.fetchStatus,isPending:E,isSuccess:C==="success",isError:R,isInitialLoading:N,isLoading:N,data:w,dataUpdatedAt:v.dataUpdatedAt,error:k,errorUpdatedAt:S,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>m.dataUpdateCount||v.errorUpdateCount>m.errorUpdateCount,isFetching:_,isRefetching:_&&!E,isLoadingError:R&&!T,isPaused:v.fetchStatus==="paused",isPlaceholderData:x,isRefetchError:R&&T,isStale:mp(t,n),refetch:this.refetch,promise:F(this,os),isEnabled:nr(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const M=z.data!==void 0,Q=z.status==="error"&&!M,H=Y=>{Q?Y.reject(z.error):M&&Y.resolve(z.data)},ee=()=>{const Y=ge(this,os,z.promise=jh());H(Y)},ne=F(this,os);switch(ne.status){case"pending":t.queryHash===i.queryHash&&H(ne);break;case"fulfilled":(Q||z.data!==ne.value)&&ee();break;case"rejected":(!Q||z.error!==ne.reason)&&ee();break}}return z}updateResult(){const t=F(this,mn),n=this.createResult(F(this,Ge),this.options);if(ge(this,Hi,F(this,Ge).state),ge(this,qo,this.options),F(this,Hi).data!==void 0&&ge(this,Yo,F(this,Ge)),du(n,t))return;ge(this,mn,n);const i=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,l=typeof o=="function"?o():o;if(l==="all"||!l&&!F(this,Xo).size)return!0;const u=new Set(l??F(this,Xo));return this.options.throwOnError&&u.add("error"),Object.keys(F(this,mn)).some(c=>{const h=c;return F(this,mn)[h]!==t[h]&&u.has(h)})};He(this,ft,lw).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&He(this,ft,Ah).call(this)}},kn=new WeakMap,Ge=new WeakMap,jl=new WeakMap,mn=new WeakMap,Hi=new WeakMap,qo=new WeakMap,os=new WeakMap,Js=new WeakMap,Rl=new WeakMap,Go=new WeakMap,Yo=new WeakMap,Ki=new WeakMap,Qi=new WeakMap,ei=new WeakMap,Xo=new WeakMap,ft=new WeakSet,ol=function(t){He(this,ft,Mh).call(this);let n=F(this,Ge).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(vn)),n},Ph=function(){He(this,ft,Oh).call(this);const t=li(this.options.staleTime,F(this,Ge));if(Yi||F(this,mn).isStale||!_h(t))return;const i=tw(F(this,mn).dataUpdatedAt,t)+1;ge(this,Ki,Li.setTimeout(()=>{F(this,mn).isStale||this.updateResult()},i))},Nh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(F(this,Ge)):this.options.refetchInterval)??!1},Th=function(t){He(this,ft,Ih).call(this),ge(this,ei,t),!(Yi||nr(this.options.enabled,F(this,Ge))===!1||!_h(F(this,ei))||F(this,ei)===0)&&ge(this,Qi,Li.setInterval(()=>{(this.options.refetchIntervalInBackground||pp.isFocused())&&He(this,ft,ol).call(this)},F(this,ei)))},Ah=function(){He(this,ft,Ph).call(this),He(this,ft,Th).call(this,He(this,ft,Nh).call(this))},Oh=function(){F(this,Ki)&&(Li.clearTimeout(F(this,Ki)),ge(this,Ki,void 0))},Ih=function(){F(this,Qi)&&(Li.clearInterval(F(this,Qi)),ge(this,Qi,void 0))},Mh=function(){const t=F(this,kn).getQueryCache().build(F(this,kn),this.options);if(t===F(this,Ge))return;const n=F(this,Ge);ge(this,Ge,t),ge(this,jl,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},lw=function(t){Kt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(F(this,mn))}),F(this,kn).getQueryCache().notify({query:F(this,Ge),type:"observerResultsUpdated"})})},Zx);function CC(e,t){return nr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Xv(e,t){return CC(e,t)||e.state.data!==void 0&&Lh(e,t,t.refetchOnMount)}function Lh(e,t,n){if(nr(t.enabled,e)!==!1&&li(t.staleTime,e)!=="static"){const i=typeof n=="function"?n(e):n;return i==="always"||i!==!1&&mp(e,t)}return!1}function Jv(e,t,n,i){return(e!==t||nr(i.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&mp(e,n)}function mp(e,t){return nr(t.enabled,e)!==!1&&e.isStaleByTime(li(t.staleTime,e))}function _C(e,t){return!du(e.getCurrentResult(),t)}function ey(e){return{onFetch:(t,n)=>{var y,v,x,w,k;const i=t.options,o=(x=(v=(y=t.fetchOptions)==null?void 0:y.meta)==null?void 0:v.fetchMore)==null?void 0:x.direction,l=((w=t.state.data)==null?void 0:w.pages)||[],u=((k=t.state.data)==null?void 0:k.pageParams)||[];let c={pages:[],pageParams:[]},h=0;const m=async()=>{let S=!1;const C=E=>{mC(E,()=>t.signal,()=>S=!0)},P=rw(t.options,t.fetchOptions),_=async(E,R,N)=>{if(S)return Promise.reject();if(R==null&&E.pages.length)return Promise.resolve(E);const A=(()=>{const Q={client:t.client,queryKey:t.queryKey,pageParam:R,direction:N?"backward":"forward",meta:t.options.meta};return C(Q),Q})(),z=await P(A),{maxPages:L}=t.options,M=N?pC:hC;return{pages:M(E.pages,z,L),pageParams:M(E.pageParams,R,L)}};if(o&&l.length){const E=o==="backward",R=E?kC:ty,N={pages:l,pageParams:u},T=R(i,N);c=await _(N,T,E)}else{const E=e??l.length;do{const R=h===0?u[0]??i.initialPageParam:ty(i,c);if(h>0&&R==null)break;c=await _(c,R),h++}while(h<E)}return c};t.options.persister?t.fetchFn=()=>{var S,C;return(C=(S=t.options).persister)==null?void 0:C.call(S,m,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=m}}}function ty(e,{pages:t,pageParams:n}){const i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,n[i],n):void 0}function kC(e,{pages:t,pageParams:n}){var i;return t.length>0?(i=e.getPreviousPageParam)==null?void 0:i.call(e,t[0],t,n[0],n):void 0}var Pl,Ir,an,Zi,Mr,Hs,qx,EC=(qx=class extends ow{constructor(t){super();Pe(this,Mr);Pe(this,Pl);Pe(this,Ir);Pe(this,an);Pe(this,Zi);ge(this,Pl,t.client),this.mutationId=t.mutationId,ge(this,an,t.mutationCache),ge(this,Ir,[]),this.state=t.state||cw(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){F(this,Ir).includes(t)||(F(this,Ir).push(t),this.clearGcTimeout(),F(this,an).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ge(this,Ir,F(this,Ir).filter(n=>n!==t)),this.scheduleGc(),F(this,an).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){F(this,Ir).length||(this.state.status==="pending"?this.scheduleGc():F(this,an).remove(this))}continue(){var t;return((t=F(this,Zi))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var u,c,h,m,y,v,x,w,k,S,C,P,_,E,R,N,T,A;const n=()=>{He(this,Mr,Hs).call(this,{type:"continue"})},i={client:F(this,Pl),meta:this.options.meta,mutationKey:this.options.mutationKey};ge(this,Zi,iw({fn:()=>this.options.mutationFn?this.options.mutationFn(t,i):Promise.reject(new Error("No mutationFn found")),onFail:(z,L)=>{He(this,Mr,Hs).call(this,{type:"failed",failureCount:z,error:L})},onPause:()=>{He(this,Mr,Hs).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>F(this,an).canRun(this)}));const o=this.state.status==="pending",l=!F(this,Zi).canStart();try{if(o)n();else{He(this,Mr,Hs).call(this,{type:"pending",variables:t,isPaused:l}),F(this,an).config.onMutate&&await F(this,an).config.onMutate(t,this,i);const L=await((c=(u=this.options).onMutate)==null?void 0:c.call(u,t,i));L!==this.state.context&&He(this,Mr,Hs).call(this,{type:"pending",context:L,variables:t,isPaused:l})}const z=await F(this,Zi).start();return await((m=(h=F(this,an).config).onSuccess)==null?void 0:m.call(h,z,t,this.state.context,this,i)),await((v=(y=this.options).onSuccess)==null?void 0:v.call(y,z,t,this.state.context,i)),await((w=(x=F(this,an).config).onSettled)==null?void 0:w.call(x,z,null,this.state.variables,this.state.context,this,i)),await((S=(k=this.options).onSettled)==null?void 0:S.call(k,z,null,t,this.state.context,i)),He(this,Mr,Hs).call(this,{type:"success",data:z}),z}catch(z){try{await((P=(C=F(this,an).config).onError)==null?void 0:P.call(C,z,t,this.state.context,this,i))}catch(L){Promise.reject(L)}try{await((E=(_=this.options).onError)==null?void 0:E.call(_,z,t,this.state.context,i))}catch(L){Promise.reject(L)}try{await((N=(R=F(this,an).config).onSettled)==null?void 0:N.call(R,void 0,z,this.state.variables,this.state.context,this,i))}catch(L){Promise.reject(L)}try{await((A=(T=this.options).onSettled)==null?void 0:A.call(T,void 0,z,t,this.state.context,i))}catch(L){Promise.reject(L)}throw He(this,Mr,Hs).call(this,{type:"error",error:z}),z}finally{F(this,an).runNext(this)}}},Pl=new WeakMap,Ir=new WeakMap,an=new WeakMap,Zi=new WeakMap,Mr=new WeakSet,Hs=function(t){const n=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,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{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Kt.batch(()=>{F(this,Ir).forEach(i=>{i.onMutationUpdate(t)}),F(this,an).notify({mutation:this,type:"updated",action:t})})},qx);function cw(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var as,xr,Nl,Gx,jC=(Gx=class extends da{constructor(t={}){super();Pe(this,as);Pe(this,xr);Pe(this,Nl);this.config=t,ge(this,as,new Set),ge(this,xr,new Map),ge(this,Nl,0)}build(t,n,i){const o=new EC({client:t,mutationCache:this,mutationId:++Wc(this,Nl)._,options:t.defaultMutationOptions(n),state:i});return this.add(o),o}add(t){F(this,as).add(t);const n=Kc(t);if(typeof n=="string"){const i=F(this,xr).get(n);i?i.push(t):F(this,xr).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(F(this,as).delete(t)){const n=Kc(t);if(typeof n=="string"){const i=F(this,xr).get(n);if(i)if(i.length>1){const o=i.indexOf(t);o!==-1&&i.splice(o,1)}else i[0]===t&&F(this,xr).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Kc(t);if(typeof n=="string"){const i=F(this,xr).get(n),o=i==null?void 0:i.find(l=>l.state.status==="pending");return!o||o===t}else return!0}runNext(t){var i;const n=Kc(t);if(typeof n=="string"){const o=(i=F(this,xr).get(n))==null?void 0:i.find(l=>l!==t&&l.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Kt.batch(()=>{F(this,as).forEach(t=>{this.notify({type:"removed",mutation:t})}),F(this,as).clear(),F(this,xr).clear()})}getAll(){return Array.from(F(this,as))}find(t){const n={exact:!0,...t};return this.getAll().find(i=>Qv(n,i))}findAll(t={}){return this.getAll().filter(n=>Qv(t,n))}notify(t){Kt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Kt.batch(()=>Promise.all(t.map(n=>n.continue().catch(vn))))}},as=new WeakMap,xr=new WeakMap,Nl=new WeakMap,Gx);function Kc(e){var t;return(t=e.options.scope)==null?void 0:t.id}var ls,ti,En,cs,hs,ru,Fh,Yx,RC=(Yx=class extends da{constructor(n,i){super();Pe(this,hs);Pe(this,ls);Pe(this,ti);Pe(this,En);Pe(this,cs);ge(this,ls,n),this.setOptions(i),this.bindMethods(),He(this,hs,ru).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const i=this.options;this.options=F(this,ls).defaultMutationOptions(n),du(this.options,i)||F(this,ls).getMutationCache().notify({type:"observerOptionsUpdated",mutation:F(this,En),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&Xi(i.mutationKey)!==Xi(this.options.mutationKey)?this.reset():((o=F(this,En))==null?void 0:o.state.status)==="pending"&&F(this,En).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=F(this,En))==null||n.removeObserver(this)}onMutationUpdate(n){He(this,hs,ru).call(this),He(this,hs,Fh).call(this,n)}getCurrentResult(){return F(this,ti)}reset(){var n;(n=F(this,En))==null||n.removeObserver(this),ge(this,En,void 0),He(this,hs,ru).call(this),He(this,hs,Fh).call(this)}mutate(n,i){var o;return ge(this,cs,i),(o=F(this,En))==null||o.removeObserver(this),ge(this,En,F(this,ls).getMutationCache().build(F(this,ls),this.options)),F(this,En).addObserver(this),F(this,En).execute(n)}},ls=new WeakMap,ti=new WeakMap,En=new WeakMap,cs=new WeakMap,hs=new WeakSet,ru=function(){var i;const n=((i=F(this,En))==null?void 0:i.state)??cw();ge(this,ti,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Fh=function(n){Kt.batch(()=>{var i,o,l,u,c,h,m,y;if(F(this,cs)&&this.hasListeners()){const v=F(this,ti).variables,x=F(this,ti).context,w={client:F(this,ls),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(o=(i=F(this,cs)).onSuccess)==null||o.call(i,n.data,v,x,w)}catch(k){Promise.reject(k)}try{(u=(l=F(this,cs)).onSettled)==null||u.call(l,n.data,null,v,x,w)}catch(k){Promise.reject(k)}}else if((n==null?void 0:n.type)==="error"){try{(h=(c=F(this,cs)).onError)==null||h.call(c,n.error,v,x,w)}catch(k){Promise.reject(k)}try{(y=(m=F(this,cs)).onSettled)==null||y.call(m,void 0,n.error,v,x,w)}catch(k){Promise.reject(k)}}}this.listeners.forEach(v=>{v(F(this,ti))})})},Yx),Lr,Xx,PC=(Xx=class extends da{constructor(t={}){super();Pe(this,Lr);this.config=t,ge(this,Lr,new Map)}build(t,n,i){const o=n.queryKey,l=n.queryHash??dp(o,n);let u=this.get(l);return u||(u=new SC({client:t,queryKey:o,queryHash:l,options:t.defaultQueryOptions(n),state:i,defaultOptions:t.getQueryDefaults(o)}),this.add(u)),u}add(t){F(this,Lr).has(t.queryHash)||(F(this,Lr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=F(this,Lr).get(t.queryHash);n&&(t.destroy(),n===t&&F(this,Lr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Kt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return F(this,Lr).get(t)}getAll(){return[...F(this,Lr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(i=>Kv(n,i))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(i=>Kv(t,i)):n}notify(t){Kt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Kt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Kt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Lr=new WeakMap,Xx),Tt,ni,ri,Jo,ea,si,ta,na,Jx,NC=(Jx=class{constructor(e={}){Pe(this,Tt);Pe(this,ni);Pe(this,ri);Pe(this,Jo);Pe(this,ea);Pe(this,si);Pe(this,ta);Pe(this,na);ge(this,Tt,e.queryCache||new PC),ge(this,ni,e.mutationCache||new jC),ge(this,ri,e.defaultOptions||{}),ge(this,Jo,new Map),ge(this,ea,new Map),ge(this,si,0)}mount(){Wc(this,si)._++,F(this,si)===1&&(ge(this,ta,pp.subscribe(async e=>{e&&(await this.resumePausedMutations(),F(this,Tt).onFocus())})),ge(this,na,fu.subscribe(async e=>{e&&(await this.resumePausedMutations(),F(this,Tt).onOnline())})))}unmount(){var e,t;Wc(this,si)._--,F(this,si)===0&&((e=F(this,ta))==null||e.call(this),ge(this,ta,void 0),(t=F(this,na))==null||t.call(this),ge(this,na,void 0))}isFetching(e){return F(this,Tt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return F(this,ni).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=F(this,Tt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=F(this,Tt).build(this,t),i=n.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(li(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return F(this,Tt).findAll(e).map(({queryKey:t,state:n})=>{const i=n.data;return[t,i]})}setQueryData(e,t,n){const i=this.defaultQueryOptions({queryKey:e}),o=F(this,Tt).get(i.queryHash),l=o==null?void 0:o.state.data,u=uC(t,l);if(u!==void 0)return F(this,Tt).build(this,i).setData(u,{...n,manual:!0})}setQueriesData(e,t,n){return Kt.batch(()=>F(this,Tt).findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=F(this,Tt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=F(this,Tt);Kt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=F(this,Tt);return Kt.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},i=Kt.batch(()=>F(this,Tt).findAll(e).map(o=>o.cancel(n)));return Promise.all(i).then(vn).catch(vn)}invalidateQueries(e,t={}){return Kt.batch(()=>(F(this,Tt).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},i=Kt.batch(()=>F(this,Tt).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let l=o.fetch(void 0,n);return n.throwOnError||(l=l.catch(vn)),o.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(i).then(vn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=F(this,Tt).build(this,t);return n.isStaleByTime(li(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(vn).catch(vn)}fetchInfiniteQuery(e){return e.behavior=ey(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(vn).catch(vn)}ensureInfiniteQueryData(e){return e.behavior=ey(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return fu.isOnline()?F(this,ni).resumePausedMutations():Promise.resolve()}getQueryCache(){return F(this,Tt)}getMutationCache(){return F(this,ni)}getDefaultOptions(){return F(this,ri)}setDefaultOptions(e){ge(this,ri,e)}setQueryDefaults(e,t){F(this,Jo).set(Xi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...F(this,Jo).values()],n={};return t.forEach(i=>{hl(e,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(e,t){F(this,ea).set(Xi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...F(this,ea).values()],n={};return t.forEach(i=>{hl(e,i.mutationKey)&&Object.assign(n,i.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...F(this,ri).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=dp(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===fp&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...F(this,ri).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){F(this,Tt).clear(),F(this,ni).clear()}},Tt=new WeakMap,ni=new WeakMap,ri=new WeakMap,Jo=new WeakMap,ea=new WeakMap,si=new WeakMap,ta=new WeakMap,na=new WeakMap,Jx),uw=b.createContext(void 0),ys=e=>{const t=b.useContext(uw);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},TC=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),f.jsx(uw.Provider,{value:e,children:t})),dw=b.createContext(!1),AC=()=>b.useContext(dw);dw.Provider;function OC(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var IC=b.createContext(OC()),MC=()=>b.useContext(IC),LC=(e,t,n)=>{const i=n!=null&&n.state.error&&typeof e.throwOnError=="function"?hp(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||i)&&(t.isReset()||(e.retryOnMount=!1))},FC=e=>{b.useEffect(()=>{e.clearReset()},[e])},DC=({result:e,errorResetBoundary:t,throwOnError:n,query:i,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(o&&e.data===void 0||hp(n,[e.error,i])),zC=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),i=e.staleTime;e.staleTime=typeof i=="function"?(...o)=>n(i(...o)):n(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},VC=(e,t)=>e.isLoading&&e.isFetching&&!t,$C=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,ny=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function BC(e,t,n){var x,w,k,S;const i=AC(),o=MC(),l=ys(),u=l.defaultQueryOptions(e);(w=(x=l.getDefaultOptions().queries)==null?void 0:x._experimental_beforeQuery)==null||w.call(x,u);const c=l.getQueryCache().get(u.queryHash);u._optimisticResults=i?"isRestoring":"optimistic",zC(u),LC(u,o,c),FC(o);const h=!l.getQueryCache().get(u.queryHash),[m]=b.useState(()=>new t(l,u)),y=m.getOptimisticResult(u),v=!i&&e.subscribed!==!1;if(b.useSyncExternalStore(b.useCallback(C=>{const P=v?m.subscribe(Kt.batchCalls(C)):vn;return m.updateResult(),P},[m,v]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),b.useEffect(()=>{m.setOptions(u)},[u,m]),$C(u,y))throw ny(u,m,o);if(DC({result:y,errorResetBoundary:o,throwOnError:u.throwOnError,query:c,suspense:u.suspense}))throw y.error;if((S=(k=l.getDefaultOptions().queries)==null?void 0:k._experimental_afterQuery)==null||S.call(k,u,y),u.experimental_prefetchInRender&&!Yi&&VC(y,i)){const C=h?ny(u,m,o):c==null?void 0:c.promise;C==null||C.catch(vn).finally(()=>{m.updateResult()})}return u.notifyOnChangeProps?y:m.trackResult(y)}function Vu(e,t){return BC(e,bC)}function xs(e,t){const n=ys(),[i]=b.useState(()=>new RC(n,e));b.useEffect(()=>{i.setOptions(e)},[i,e]);const o=b.useSyncExternalStore(b.useCallback(u=>i.subscribe(Kt.batchCalls(u)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),l=b.useCallback((u,c)=>{i.mutate(u,c).catch(vn)},[i]);if(o.error&&hp(i.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:l,mutateAsync:o.mutate}}var Ct=(e=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(Ct||{});function fw({update:e,notify:t,unwatched:n}){return{link:i,unlink:o,propagate:l,checkDirty:u,shallowPropagate:c};function i(m,y,v){const x=y.depsTail;if(x!==void 0&&x.dep===m)return;const w=x!==void 0?x.nextDep:y.deps;if(w!==void 0&&w.dep===m){w.version=v,y.depsTail=w;return}const k=m.subsTail;if(k!==void 0&&k.version===v&&k.sub===y)return;const S=y.depsTail=m.subsTail={version:v,dep:m,sub:y,prevDep:x,nextDep:w,prevSub:k,nextSub:void 0};w!==void 0&&(w.prevDep=S),x!==void 0?x.nextDep=S:y.deps=S,k!==void 0?k.nextSub=S:m.subs=S}function o(m,y=m.sub){const v=m.dep,x=m.prevDep,w=m.nextDep,k=m.nextSub,S=m.prevSub;return w!==void 0?w.prevDep=x:y.depsTail=x,x!==void 0?x.nextDep=w:y.deps=w,k!==void 0?k.prevSub=S:v.subsTail=S,S!==void 0?S.nextSub=k:(v.subs=k)===void 0&&n(v),w}function l(m){let y=m.nextSub,v;e:do{const x=m.sub;let w=x.flags;if(w&60?w&12?w&4?!(w&48)&&h(m,x)?(x.flags=w|40,w&=1):w=0:x.flags=w&-9|32:w=0:x.flags=w|32,w&2&&t(x),w&1){const k=x.subs;if(k!==void 0){const S=(m=k).nextSub;S!==void 0&&(v={value:y,prev:v},y=S);continue}}if((m=y)!==void 0){y=m.nextSub;continue}for(;v!==void 0;)if(m=v.value,v=v.prev,m!==void 0){y=m.nextSub;continue e}break}while(!0)}function u(m,y){let v,x=0,w=!1;e:do{const k=m.dep,S=k.flags;if(y.flags&16)w=!0;else if((S&17)===17){if(e(k)){const C=k.subs;C.nextSub!==void 0&&c(C),w=!0}}else if((S&33)===33){(m.nextSub!==void 0||m.prevSub!==void 0)&&(v={value:m,prev:v}),m=k.deps,y=k,++x;continue}if(!w){const C=m.nextDep;if(C!==void 0){m=C;continue}}for(;x--;){const C=y.subs,P=C.nextSub!==void 0;if(P?(m=v.value,v=v.prev):m=C,w){if(e(y)){P&&c(C),y=m.sub;continue}w=!1}else y.flags&=-33;y=m.sub;const _=m.nextDep;if(_!==void 0){m=_;continue e}}return w}while(!0)}function c(m){do{const y=m.sub,v=y.flags;(v&48)===32&&(y.flags=v|16,(v&6)===2&&t(y))}while((m=m.nextSub)!==void 0)}function h(m,y){let v=y.depsTail;for(;v!==void 0;){if(v===m)return!0;v=v.prevDep}return!1}}let gp=0,Mi=0,cl=0;const us=[],{link:SO,unlink:hw,propagate:bO,checkDirty:UC,shallowPropagate:CO}=fw({update(e){return e.depsTail!==void 0?QC(e):ZC(e)},notify(e){var i;let t=cl,n=t;do if(us[t++]=e,e.flags&=-3,e=(i=e.subs)==null?void 0:i.sub,e===void 0||!(e.flags&2))break;while(!0);for(cl=t;n<--t;){const o=us[n];us[n++]=us[t],us[t]=o}},unwatched(e){e.flags&1?e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,$u(e)):YC.call(e)}});function WC(){return gp}function HC(){++gp}function KC(){--gp||GC()}function QC(e){e.depsTail=void 0,e.flags=5;try{const t=e.value;return t!==(e.value=e.getter(t))}finally{e.flags&=-5,$u(e)}}function ZC(e){return e.flags=1,e.currentValue!==(e.currentValue=e.pendingValue)}function qC(e){const t=e.flags;if(t&16||t&32&&UC(e.deps,e)){e.depsTail=void 0,e.flags=6;try{e.fn()}finally{e.flags&=-5,$u(e)}}else e.flags=2}function GC(){try{for(;Mi<cl;){const e=us[Mi];us[Mi++]=void 0,qC(e)}}finally{for(;Mi<cl;){const e=us[Mi];us[Mi++]=void 0,e.flags|=10}Mi=0,cl=0}}function YC(){this.depsTail=void 0,this.flags=0,$u(this);const e=this.subs;e!==void 0&&hw(e)}function $u(e){const t=e.depsTail;let n=t!==void 0?t.nextDep:e.deps;for(;n!==void 0;)n=hw(n,e)}function pw(e,t,n){var l,u,c;const i=typeof e=="object",o=i?e:void 0;return{next:(l=i?e.next:e)==null?void 0:l.bind(o),error:(u=i?e.error:t)==null?void 0:u.bind(o),complete:(c=i?e.complete:n)==null?void 0:c.bind(o)}}const Dh=[];let su=0;const{link:ry,unlink:XC,propagate:JC,checkDirty:mw,shallowPropagate:sy}=fw({update(e){return e._update()},notify(e){Dh[zh++]=e,e.flags&=~Ct.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=Ct.Mutable|Ct.Dirty,hu(e))}});let Qc=0,zh=0,Ar;function hu(e){const t=e.depsTail;let n=t!==void 0?t.nextDep:e.deps;for(;n!==void 0;)n=XC(n,e)}function gw(){if(!(WC()>0)){for(;Qc<zh;){const e=Dh[Qc];Dh[Qc++]=void 0,e.notify()}Qc=0,zh=0}}function e_(e,t){const n=typeof e=="function",i=e,o={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?Ct.None:Ct.Mutable,get(){return Ar!==void 0&&ry(o,Ar,su),o._snapshot},subscribe(l){const u=pw(l),c={current:!1},h=t_(()=>{var m;o.get(),c.current?(m=u.next)==null||m.call(u,o._snapshot):c.current=!0});return{unsubscribe:()=>{h.stop()}}},_update(l){const u=Ar,c=Object.is;Ar=o,++su,o.depsTail=void 0,n&&(o.flags=Ct.Mutable|Ct.RecursedCheck);try{const h=o._snapshot,m=typeof l=="function"?l(h):l===void 0&&n?i(h):l;return h===void 0||!c(h,m)?(o._snapshot=m,!0):!1}finally{Ar=u,n&&(o.flags&=~Ct.RecursedCheck),hu(o)}}};return n?(o.flags=Ct.Mutable|Ct.Dirty,o.get=function(){const l=o.flags;if(l&Ct.Dirty||l&Ct.Pending&&mw(o.deps,o)){if(o._update()){const u=o.subs;u!==void 0&&sy(u)}}else l&Ct.Pending&&(o.flags=l&~Ct.Pending);return Ar!==void 0&&ry(o,Ar,su),o._snapshot}):o.set=function(l){if(o._update(l)){const u=o.subs;u!==void 0&&(JC(u),sy(u),gw())}},o}function t_(e){const t=()=>{const i=Ar;Ar=n,++su,n.depsTail=void 0,n.flags=Ct.Watching|Ct.RecursedCheck;try{return e()}finally{Ar=i,n.flags&=~Ct.RecursedCheck,hu(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Ct.Watching|Ct.RecursedCheck,notify(){const i=this.flags;i&Ct.Dirty||i&Ct.Pending&&mw(this.deps,this)?t():this.flags=Ct.Watching},stop(){this.flags=Ct.None,this.depsTail=void 0,hu(this)}};return t(),n}class n_{constructor(t){this.atom=e_(t)}setState(t){this.atom.set(t)}get state(){return this.atom.get()}get(){return this.state}subscribe(t){return this.atom.subscribe(pw(t))}}function r_(e){try{HC(),e()}finally{KC(),gw()}}const ci="__TSR_index",iy="popstate",oy="beforeunload";function s_(e){let t=e.getLocation();const n=new Set,i=u=>{t=e.getLocation(),n.forEach(c=>c({location:t,action:u}))},o=u=>{e.notifyOnIndexChange??!0?i(u):t=e.getLocation()},l=async({task:u,navigateOpts:c,...h})=>{var x,w;if((c==null?void 0:c.ignoreBlocker)??!1){u();return}const y=((x=e.getBlockers)==null?void 0:x.call(e))??[],v=h.type==="PUSH"||h.type==="REPLACE";if(typeof document<"u"&&y.length&&v)for(const k of y){const S=pu(h.path,h.state);if(await k.blockerFn({currentLocation:t,nextLocation:S,action:h.type})){(w=e.onBlocked)==null||w.call(e);return}}u()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:u=>(n.add(u),()=>{n.delete(u)}),push:(u,c,h)=>{const m=t.state[ci];c=ay(m+1,c),l({task:()=>{e.pushState(u,c),i({type:"PUSH"})},navigateOpts:h,type:"PUSH",path:u,state:c})},replace:(u,c,h)=>{const m=t.state[ci];c=ay(m,c),l({task:()=>{e.replaceState(u,c),i({type:"REPLACE"})},navigateOpts:h,type:"REPLACE",path:u,state:c})},go:(u,c)=>{l({task:()=>{e.go(u),o({type:"GO",index:u})},navigateOpts:c,type:"GO"})},back:u=>{l({task:()=>{e.back((u==null?void 0:u.ignoreBlocker)??!1),o({type:"BACK"})},navigateOpts:u,type:"BACK"})},forward:u=>{l({task:()=>{e.forward((u==null?void 0:u.ignoreBlocker)??!1),o({type:"FORWARD"})},navigateOpts:u,type:"FORWARD"})},canGoBack:()=>t.state[ci]!==0,createHref:u=>e.createHref(u),block:u=>{var h;if(!e.setBlockers)return()=>{};const c=((h=e.getBlockers)==null?void 0:h.call(e))??[];return e.setBlockers([...c,u]),()=>{var y,v;const m=((y=e.getBlockers)==null?void 0:y.call(e))??[];(v=e.setBlockers)==null||v.call(e,m.filter(x=>x!==u))}},flush:()=>{var u;return(u=e.flush)==null?void 0:u.call(e)},destroy:()=>{var u;return(u=e.destroy)==null?void 0:u.call(e)},notify:i}}function ay(e,t){t||(t={});const n=vp();return{...t,key:n,__TSR_key:n,[ci]:e}}function i_(e){var z,L;const t=typeof document<"u"?window:void 0,n=t.history.pushState,i=t.history.replaceState;let o=[];const l=()=>o,u=M=>o=M,c=(M=>M),h=(()=>pu(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!((z=t.history.state)!=null&&z.__TSR_key)&&!((L=t.history.state)!=null&&L.key)){const M=vp();t.history.replaceState({[ci]:0,key:M,__TSR_key:M},"")}let m=h(),y,v=!1,x=!1,w=!1,k=!1;const S=()=>m;let C,P;const _=()=>{C&&(A._ignoreSubscribers=!0,(C.isPush?t.history.pushState:t.history.replaceState)(C.state,"",C.href),A._ignoreSubscribers=!1,C=void 0,P=void 0,y=void 0)},E=(M,Q,H)=>{const ee=c(Q);P||(y=m),m=pu(Q,H),C={href:ee,state:H,isPush:(C==null?void 0:C.isPush)||M==="push"},P||(P=Promise.resolve().then(()=>_()))},R=M=>{m=h(),A.notify({type:M})},N=async()=>{if(x){x=!1;return}const M=h(),Q=M.state[ci]-m.state[ci],H=Q===1,ee=Q===-1,ne=!H&&!ee||v;v=!1;const Y=ne?"GO":ee?"BACK":"FORWARD",Z=ne?{type:"GO",index:Q}:{type:ee?"BACK":"FORWARD"};if(w)w=!1;else{const se=l();if(typeof document<"u"&&se.length){for(const B of se)if(await B.blockerFn({currentLocation:m,nextLocation:M,action:Y})){x=!0,t.history.go(1),A.notify(Z);return}}}m=h(),A.notify(Z)},T=M=>{if(k){k=!1;return}let Q=!1;const H=l();if(typeof document<"u"&&H.length)for(const ee of H){const ne=ee.enableBeforeUnload??!0;if(ne===!0){Q=!0;break}if(typeof ne=="function"&&ne()===!0){Q=!0;break}}if(Q)return M.preventDefault(),M.returnValue=""},A=s_({getLocation:S,getLength:()=>t.history.length,pushState:(M,Q)=>E("push",M,Q),replaceState:(M,Q)=>E("replace",M,Q),back:M=>(M&&(w=!0),k=!0,t.history.back()),forward:M=>{M&&(w=!0),k=!0,t.history.forward()},go:M=>{v=!0,t.history.go(M)},createHref:M=>c(M),flush:_,destroy:()=>{t.history.pushState=n,t.history.replaceState=i,t.removeEventListener(oy,T,{capture:!0}),t.removeEventListener(iy,N)},onBlocked:()=>{y&&m!==y&&(m=y)},getBlockers:l,setBlockers:u,notifyOnIndexChange:!1});return t.addEventListener(oy,T,{capture:!0}),t.addEventListener(iy,N),t.history.pushState=function(...M){const Q=n.apply(t.history,M);return A._ignoreSubscribers||R("PUSH"),Q},t.history.replaceState=function(...M){const Q=i.apply(t.history,M);return A._ignoreSubscribers||R("REPLACE"),Q},A}function o_(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function pu(e,t){const n=o_(e),i=n.indexOf("#"),o=n.indexOf("?"),l=vp();return{href:n,pathname:n.substring(0,i>0?o>0?Math.min(i,o):i:o>0?o:n.length),hash:i>-1?n.substring(i):"",search:o>-1?n.slice(o,i===-1?void 0:i):"",state:t||{[ci]:0,key:l,__TSR_key:l}}}function vp(){return(Math.random()+1).toString(36).substring(7)}const a_=!1;function ul(e){let t;return r_(()=>{t=e()}),t}function pl(e){return e[e.length-1]}function l_(e){return typeof e=="function"}function ii(e,t){return l_(e)?e(t):e}const c_=Object.prototype.hasOwnProperty,ly=Object.prototype.propertyIsEnumerable;function Fn(e,t,n=0){if(e===t)return e;if(n>500)return t;const i=t,o=dy(e)&&dy(i);if(!o&&!(mu(e)&&mu(i)))return i;const l=o?e:cy(e);if(!l)return i;const u=o?i:cy(i);if(!u)return i;const c=l.length,h=u.length,m=o?new Array(h):{};let y=0;for(let v=0;v<h;v++){const x=o?v:u[v],w=e[x],k=i[x];if(w===k){m[x]=w,(o?v<c:c_.call(e,x))&&y++;continue}if(w===null||k===null||typeof w!="object"||typeof k!="object"){m[x]=k;continue}const S=Fn(w,k,n+1);m[x]=S,S===w&&y++}return c===h&&y===c?e:m}function cy(e){const t=Object.getOwnPropertyNames(e);for(const o of t)if(!ly.call(e,o))return!1;const n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;const i=t;for(const o of n){if(!ly.call(e,o))return!1;i.push(o)}return i}function mu(e){if(!uy(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!uy(n)||!n.hasOwnProperty("isPrototypeOf"))}function uy(e){return Object.prototype.toString.call(e)==="[object Object]"}function dy(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function qi(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0,o=e.length;i<o;i++)if(!qi(e[i],t[i],n))return!1;return!0}if(mu(e)&&mu(t)){const i=(n==null?void 0:n.ignoreUndefined)??!0;if(n!=null&&n.partial){for(const u in t)if((!i||t[u]!==void 0)&&!qi(e[u],t[u],n))return!1;return!0}let o=0;if(!i)o=Object.keys(e).length;else for(const u in e)e[u]!==void 0&&o++;let l=0;for(const u in t)if((!i||t[u]!==void 0)&&(l++,l>o||!qi(e[u],t[u],n)))return!1;return o===l}return!1}function ra(e){let t,n;const i=new Promise((o,l)=>{t=o,n=l});return i.status="pending",i.resolve=o=>{i.status="resolved",i.value=o,t(o),e==null||e(o)},i.reject=o=>{i.status="rejected",n(o)},i}function Vo(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function u_(e){return e.replace(/[\x00-\x1f\x7f]/g,"")}function fy(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,n=>{try{return decodeURI(n)}catch{return n}})}return u_(t)}const d_=["http:","https:","mailto:","tel:"];function gu(e,t){if(!e)return!1;try{const n=new URL(e);return!t.has(n.protocol)}catch{return!1}}function Xa(e){if(!e)return{path:e,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith("//"))return{path:e,handledProtocolRelativeURL:!1};const t=/%25|%5C/gi;let n=0,i="",o;for(;(o=t.exec(e))!==null;)i+=fy(e.slice(n,o.index))+o[0],n=t.lastIndex;i=i+fy(n?e.slice(n):e);let l=!1;return i.startsWith("//")&&(l=!0,i="/"+i.replace(/^\/+/,"")),{path:i,handledProtocolRelativeURL:l}}function f_(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}var h_="Invariant failed";function ps(e,t){if(!e)throw new Error(h_)}function vu(e){const t=new Map;let n,i;const o=l=>{l.next&&(l.prev?(l.prev.next=l.next,l.next.prev=l.prev,l.next=void 0,i&&(i.next=l,l.prev=i)):(l.next.prev=void 0,n=l.next,l.next=void 0,i&&(l.prev=i,i.next=l)),i=l)};return{get(l){const u=t.get(l);if(u)return o(u),u.value},set(l,u){if(t.size>=e&&n){const h=n;t.delete(h.key),h.next&&(n=h.next,h.next.prev=void 0),h===i&&(i=void 0)}const c=t.get(l);if(c)c.value=u,o(c);else{const h={key:l,value:u,prev:i};i&&(i.next=h),i=h,n||(n=h),t.set(l,h)}},clear(){t.clear(),n=void 0,i=void 0}}}const sa=0,Ji=1,eo=2,ml=3,Fi=4,vw=5;function p_(e){const t=e.indexOf("{");if(t===-1)return null;const n=e.indexOf("}",t);return n===-1||t+1>=e.length?null:[t,n]}function yp(e,t,n=new Uint16Array(6)){const i=e.indexOf("/",t),o=i===-1?e.length:i,l=e.substring(t,o);if(!l||!l.includes("$"))return n[0]=sa,n[1]=t,n[2]=t,n[3]=o,n[4]=o,n[5]=o,n;if(l==="$"){const c=e.length;return n[0]=eo,n[1]=t,n[2]=t,n[3]=c,n[4]=c,n[5]=c,n}if(l.charCodeAt(0)===36)return n[0]=Ji,n[1]=t,n[2]=t+1,n[3]=o,n[4]=o,n[5]=o,n;const u=p_(l);if(u){const[c,h]=u,m=l.charCodeAt(c+1);if(m===45){if(c+2<l.length&&l.charCodeAt(c+2)===36){const y=c+3,v=h;if(y<v)return n[0]=ml,n[1]=t+c,n[2]=t+y,n[3]=t+v,n[4]=t+h+1,n[5]=o,n}}else if(m===36){const y=c+1,v=c+2;return v===h?(n[0]=eo,n[1]=t+c,n[2]=t+y,n[3]=t+v,n[4]=t+h+1,n[5]=e.length,n):(n[0]=Ji,n[1]=t+c,n[2]=t+v,n[3]=t+h,n[4]=t+h+1,n[5]=o,n)}}return n[0]=sa,n[1]=t,n[2]=t,n[3]=o,n[4]=o,n[5]=o,n}function Bu(e,t,n,i,o,l,u){var h,m,y,v,x,w,k,S,C,P,_,E,R;u==null||u(n);let c=i;{const N=n.fullPath??n.from,T=N.length,A=((h=n.options)==null?void 0:h.caseSensitive)??e,z=!!((y=(m=n.options)==null?void 0:m.params)!=null&&y.parse&&((x=(v=n.options)==null?void 0:v.skipRouteOnParseError)!=null&&x.params));for(;c<T;){const M=yp(N,c,t);let Q;const H=c,ee=M[5];switch(c=ee+1,l++,M[0]){case sa:{const Y=N.substring(M[2],M[3]);if(A){const Z=(w=o.static)==null?void 0:w.get(Y);if(Z)Q=Z;else{o.static??(o.static=new Map);const se=Di(n.fullPath??n.from);se.parent=o,se.depth=l,Q=se,o.static.set(Y,se)}}else{const Z=Y.toLowerCase(),se=(k=o.staticInsensitive)==null?void 0:k.get(Z);if(se)Q=se;else{o.staticInsensitive??(o.staticInsensitive=new Map);const B=Di(n.fullPath??n.from);B.parent=o,B.depth=l,Q=B,o.staticInsensitive.set(Z,B)}}break}case Ji:{const Y=N.substring(H,M[1]),Z=N.substring(M[4],ee),se=A&&!!(Y||Z),B=Y?se?Y:Y.toLowerCase():void 0,te=Z?se?Z:Z.toLowerCase():void 0,q=!z&&((S=o.dynamic)==null?void 0:S.find(I=>!I.skipOnParamError&&I.caseSensitive===se&&I.prefix===B&&I.suffix===te));if(q)Q=q;else{const I=Yf(Ji,n.fullPath??n.from,se,B,te);Q=I,I.depth=l,I.parent=o,o.dynamic??(o.dynamic=[]),o.dynamic.push(I)}break}case ml:{const Y=N.substring(H,M[1]),Z=N.substring(M[4],ee),se=A&&!!(Y||Z),B=Y?se?Y:Y.toLowerCase():void 0,te=Z?se?Z:Z.toLowerCase():void 0,q=!z&&((C=o.optional)==null?void 0:C.find(I=>!I.skipOnParamError&&I.caseSensitive===se&&I.prefix===B&&I.suffix===te));if(q)Q=q;else{const I=Yf(ml,n.fullPath??n.from,se,B,te);Q=I,I.parent=o,I.depth=l,o.optional??(o.optional=[]),o.optional.push(I)}break}case eo:{const Y=N.substring(H,M[1]),Z=N.substring(M[4],ee),se=A&&!!(Y||Z),B=Y?se?Y:Y.toLowerCase():void 0,te=Z?se?Z:Z.toLowerCase():void 0,q=Yf(eo,n.fullPath??n.from,se,B,te);Q=q,q.parent=o,q.depth=l,o.wildcard??(o.wildcard=[]),o.wildcard.push(q)}}o=Q}if(z&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf("/")+1)===95){const M=Di(n.fullPath??n.from);M.kind=vw,M.parent=o,l++,M.depth=l,o.pathless??(o.pathless=[]),o.pathless.push(M),o=M}const L=(n.path||!n.children)&&!n.isRoot;if(L&&N.endsWith("/")){const M=Di(n.fullPath??n.from);M.kind=Fi,M.parent=o,l++,M.depth=l,o.index=M,o=M}o.parse=((_=(P=n.options)==null?void 0:P.params)==null?void 0:_.parse)??null,o.skipOnParamError=z,o.parsingPriority=((R=(E=n.options)==null?void 0:E.skipRouteOnParseError)==null?void 0:R.priority)??0,L&&!o.route&&(o.route=n,o.fullPath=n.fullPath??n.from)}if(n.children)for(const N of n.children)Bu(e,t,N,c,o,l,u)}function Gf(e,t){if(e.skipOnParamError&&!t.skipOnParamError)return-1;if(!e.skipOnParamError&&t.skipOnParamError)return 1;if(e.skipOnParamError&&t.skipOnParamError&&(e.parsingPriority||t.parsingPriority))return t.parsingPriority-e.parsingPriority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function Qs(e){var t,n,i;if(e.pathless)for(const o of e.pathless)Qs(o);if(e.static)for(const o of e.static.values())Qs(o);if(e.staticInsensitive)for(const o of e.staticInsensitive.values())Qs(o);if((t=e.dynamic)!=null&&t.length){e.dynamic.sort(Gf);for(const o of e.dynamic)Qs(o)}if((n=e.optional)!=null&&n.length){e.optional.sort(Gf);for(const o of e.optional)Qs(o)}if((i=e.wildcard)!=null&&i.length){e.wildcard.sort(Gf);for(const o of e.wildcard)Qs(o)}}function Di(e){return{kind:sa,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0}}function Yf(e,t,n,i,o){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:n,prefix:i,suffix:o}}function m_(e,t){const n=Di("/"),i=new Uint16Array(6);for(const o of e)Bu(!1,i,o,1,n,0);Qs(n),t.masksTree=n,t.flatCache=vu(1e3)}function g_(e,t){e||(e="/");const n=t.flatCache.get(e);if(n)return n;const i=xp(e,t.masksTree);return t.flatCache.set(e,i),i}function v_(e,t,n,i,o){e||(e="/"),i||(i="/");const l=t?`case\0${e}`:e;let u=o.singleCache.get(l);if(!u){u=Di("/");const c=new Uint16Array(6);Bu(t,c,{from:e},1,u,0),o.singleCache.set(l,u)}return xp(i,u,n)}function y_(e,t,n=!1){const i=n?e:`nofuzz\0${e}`,o=t.matchCache.get(i);if(o!==void 0)return o;e||(e="/");let l;try{l=xp(e,t.segmentTree,n)}catch(u){if(u instanceof URIError)l=null;else throw u}return l&&(l.branch=S_(l.route)),t.matchCache.set(i,l),l}function x_(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function w_(e,t=!1,n){const i=Di(e.fullPath),o=new Uint16Array(6),l={},u={};let c=0;return Bu(t,o,e,1,i,0,m=>{if(n==null||n(m,c),ps(!(m.id in l),`Duplicate routes found with id: ${String(m.id)}`),l[m.id]=m,c!==0&&m.path){const y=x_(m.fullPath);(!u[y]||m.fullPath.endsWith("/"))&&(u[y]=m)}c++}),Qs(i),{processedTree:{segmentTree:i,singleCache:vu(1e3),matchCache:vu(1e3),flatCache:null,masksTree:null},routesById:l,routesByPath:u}}function xp(e,t,n=!1){const i=e.split("/"),o=C_(e,i,t,n);if(!o)return null;const[l]=yw(e,i,o);return{route:o.node.route,rawParams:l,parsedParams:o.parsedParams}}function yw(e,t,n){var y,v,x,w,k,S,C,P,_,E;const i=b_(n.node);let o=null;const l={};let u=((y=n.extract)==null?void 0:y.part)??0,c=((v=n.extract)==null?void 0:v.node)??0,h=((x=n.extract)==null?void 0:x.path)??0,m=((w=n.extract)==null?void 0:w.segment)??0;for(;c<i.length;u++,c++,h++,m++){const R=i[c];if(R.kind===Fi)break;if(R.kind===vw){m--,u--,h--;continue}const N=t[u],T=h;if(N&&(h+=N.length),R.kind===Ji){o??(o=n.node.fullPath.split("/"));const A=o[m],z=((k=R.prefix)==null?void 0:k.length)??0;if(A.charCodeAt(z)===123){const M=((S=R.suffix)==null?void 0:S.length)??0,Q=A.substring(z+2,A.length-M-1),H=N.substring(z,N.length-M);l[Q]=decodeURIComponent(H)}else{const M=A.substring(1);l[M]=decodeURIComponent(N)}}else if(R.kind===ml){if(n.skipped&1<<c){u--,h=T-1;continue}o??(o=n.node.fullPath.split("/"));const A=o[m],z=((C=R.prefix)==null?void 0:C.length)??0,L=((P=R.suffix)==null?void 0:P.length)??0,M=A.substring(z+3,A.length-L-1),Q=R.suffix||R.prefix?N.substring(z,N.length-L):N;Q&&(l[M]=decodeURIComponent(Q))}else if(R.kind===eo){const A=R,z=e.substring(T+(((_=A.prefix)==null?void 0:_.length)??0),e.length-(((E=A.suffix)==null?void 0:E.length)??0)),L=decodeURIComponent(z);l["*"]=L,l._splat=L;break}}return n.rawParams&&Object.assign(l,n.rawParams),[l,{part:u,node:c,path:h,segment:m}]}function S_(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function b_(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function C_(e,t,n,i){if(e==="/"&&n.index)return{node:n.index,skipped:0};const o=!pl(t),l=o&&e!=="/",u=t.length-(o?1:0),c=[{node:n,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let h=null,m=null,y=null;for(;c.length;){const v=c.pop(),{node:x,index:w,skipped:k,depth:S,statics:C,dynamics:P,optionals:_}=v;let{extract:E,rawParams:R,parsedParams:N}=v;if(x.skipOnParamError){if(!Xf(e,t,v))continue;R=v.rawParams,E=v.extract,N=v.parsedParams}i&&x.route&&x.kind!==Fi&&Ja(m,v)&&(m=v);const T=w===u;if(T&&(x.route&&!l&&Ja(y,v)&&(y=v),!x.optional&&!x.wildcard&&!x.index&&!x.pathless))continue;const A=T?void 0:t[w];let z;if(T&&x.index){const L={node:x.index,index:w,skipped:k,depth:S+1,statics:C,dynamics:P,optionals:_,extract:E,rawParams:R,parsedParams:N};let M=!0;if(x.index.skipOnParamError&&(Xf(e,t,L)||(M=!1)),M){if(C===u&&!P&&!_&&!k)return L;Ja(y,L)&&(y=L)}}if(x.wildcard&&Ja(h,v))for(const L of x.wildcard){const{prefix:M,suffix:Q}=L;if(M&&(T||!(L.caseSensitive?A:z??(z=A.toLowerCase())).startsWith(M)))continue;if(Q){if(T)continue;const ee=t.slice(w).join("/").slice(-Q.length);if((L.caseSensitive?ee:ee.toLowerCase())!==Q)continue}const H={node:L,index:u,skipped:k,depth:S,statics:C,dynamics:P,optionals:_,extract:E,rawParams:R,parsedParams:N};if(!(L.skipOnParamError&&!Xf(e,t,H))){h=H;break}}if(x.optional){const L=k|1<<S,M=S+1;for(let Q=x.optional.length-1;Q>=0;Q--){const H=x.optional[Q];c.push({node:H,index:w,skipped:L,depth:M,statics:C,dynamics:P,optionals:_,extract:E,rawParams:R,parsedParams:N})}if(!T)for(let Q=x.optional.length-1;Q>=0;Q--){const H=x.optional[Q],{prefix:ee,suffix:ne}=H;if(ee||ne){const Y=H.caseSensitive?A:z??(z=A.toLowerCase());if(ee&&!Y.startsWith(ee)||ne&&!Y.endsWith(ne))continue}c.push({node:H,index:w+1,skipped:k,depth:M,statics:C,dynamics:P,optionals:_+1,extract:E,rawParams:R,parsedParams:N})}}if(!T&&x.dynamic&&A)for(let L=x.dynamic.length-1;L>=0;L--){const M=x.dynamic[L],{prefix:Q,suffix:H}=M;if(Q||H){const ee=M.caseSensitive?A:z??(z=A.toLowerCase());if(Q&&!ee.startsWith(Q)||H&&!ee.endsWith(H))continue}c.push({node:M,index:w+1,skipped:k,depth:S+1,statics:C,dynamics:P+1,optionals:_,extract:E,rawParams:R,parsedParams:N})}if(!T&&x.staticInsensitive){const L=x.staticInsensitive.get(z??(z=A.toLowerCase()));L&&c.push({node:L,index:w+1,skipped:k,depth:S+1,statics:C+1,dynamics:P,optionals:_,extract:E,rawParams:R,parsedParams:N})}if(!T&&x.static){const L=x.static.get(A);L&&c.push({node:L,index:w+1,skipped:k,depth:S+1,statics:C+1,dynamics:P,optionals:_,extract:E,rawParams:R,parsedParams:N})}if(x.pathless){const L=S+1;for(let M=x.pathless.length-1;M>=0;M--){const Q=x.pathless[M];c.push({node:Q,index:w,skipped:k,depth:L,statics:C,dynamics:P,optionals:_,extract:E,rawParams:R,parsedParams:N})}}}if(y&&h)return Ja(h,y)?y:h;if(y)return y;if(h)return h;if(i&&m){let v=m.index;for(let w=0;w<m.index;w++)v+=t[w].length;const x=v===e.length?"/":e.slice(v);return m.rawParams??(m.rawParams={}),m.rawParams["**"]=decodeURIComponent(x),m}return null}function Xf(e,t,n){try{const[i,o]=yw(e,t,n);n.rawParams=i,n.extract=o;const l=n.node.parse(i);return n.parsedParams=Object.assign({},n.parsedParams,l),!0}catch{return null}}function Ja(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===Fi)>(e.node.kind===Fi)||t.node.kind===Fi==(e.node.kind===Fi)&&t.depth>e.depth))):!0}function iu(e){return wp(e.filter(t=>t!==void 0).join("/"))}function wp(e){return e.replace(/\/{2,}/g,"/")}function xw(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function ds(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function ww(e){return ds(xw(e))}function yu(e,t){return e!=null&&e.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function __(e,t,n){return yu(e,n)===yu(t,n)}function k_({base:e,to:t,trailingSlash:n="never",cache:i}){const o=t.startsWith("/"),l=!o&&t===".";let u;if(i){u=o?t:l?e:e+"\0"+t;const v=i.get(u);if(v)return v}let c;if(l)c=e.split("/");else if(o)c=t.split("/");else{for(c=e.split("/");c.length>1&&pl(c)==="";)c.pop();const v=t.split("/");for(let x=0,w=v.length;x<w;x++){const k=v[x];k===""?x?x===w-1&&c.push(k):c=[k]:k===".."?c.pop():k==="."||c.push(k)}}c.length>1&&(pl(c)===""?n==="never"&&c.pop():n==="always"&&c.push(""));let h,m="";for(let v=0;v<c.length;v++){v>0&&(m+="/");const x=c[v];if(!x)continue;h=yp(x,0,h);const w=h[0];if(w===sa){m+=x;continue}const k=h[5],S=x.substring(0,h[1]),C=x.substring(h[4],k),P=x.substring(h[2],h[3]);w===Ji?m+=S||C?`${S}{$${P}}${C}`:`$${P}`:w===eo?m+=S||C?`${S}{$}${C}`:"$":m+=`${S}{-$${P}}${C}`}m=wp(m);const y=m||"/";return u&&i&&i.set(u,y),y}function E_(e){const t=new Map(e.map(o=>[encodeURIComponent(o),o])),n=Array.from(t.keys()).map(o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),i=new RegExp(n,"g");return o=>o.replace(i,l=>t.get(l)??l)}function Jf(e,t,n){const i=t[e];return typeof i!="string"?i:e==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(i)?i:i.split("/").map(o=>hy(o,n)).join("/"):hy(i,n)}function eh({path:e,params:t,decoder:n,...i}){let o=!1;const l={};if(!e||e==="/")return{interpolatedPath:"/",usedParams:l,isMissingParams:o};if(!e.includes("$"))return{interpolatedPath:e,usedParams:l,isMissingParams:o};const u=e.length;let c=0,h,m="";for(;c<u;){const v=c;h=yp(e,v,h);const x=h[5];if(c=x+1,v===x)continue;const w=h[0];if(w===sa){m+="/"+e.substring(v,x);continue}if(w===eo){const k=t._splat;l._splat=k,l["*"]=k;const S=e.substring(v,h[1]),C=e.substring(h[4],x);if(!k){o=!0,(S||C)&&(m+="/"+S+C);continue}const P=Jf("_splat",t,n);m+="/"+S+P+C;continue}if(w===Ji){const k=e.substring(h[2],h[3]);!o&&!(k in t)&&(o=!0),l[k]=t[k];const S=e.substring(v,h[1]),C=e.substring(h[4],x),P=Jf(k,t,n)??"undefined";m+="/"+S+P+C;continue}if(w===ml){const k=e.substring(h[2],h[3]),S=t[k];if(S==null)continue;l[k]=S;const C=e.substring(v,h[1]),P=e.substring(h[4],x),_=Jf(k,t,n)??"";m+="/"+C+_+P;continue}}return e.endsWith("/")&&(m+="/"),{usedParams:l,interpolatedPath:m||"/",isMissingParams:o}}function hy(e,t){const n=encodeURIComponent(e);return(t==null?void 0:t(n))??n}function Vn(e){return!!(e!=null&&e.isNotFound)}function j_(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const Vh="tsr-scroll-restoration-v1_3",R_=(e,t)=>{let n;return(...i)=>{n||(n=setTimeout(()=>{e(...i),n=null},t))}};function P_(){const e=j_();if(!e)return null;const t=e.getItem(Vh);let n=t?JSON.parse(t):{};return{state:n,set:i=>{n=ii(i,n)||n;try{e.setItem(Vh,JSON.stringify(n))}catch{console.warn("[ts-router] Could not persist scroll restoration state to sessionStorage.")}}}}const Zc=P_(),N_=e=>e.state.__TSR_key||e.href;function T_(e){const t=[];let n;for(;n=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`),e=n;return`${t.reverse().join(" > ")}`.toLowerCase()}let xu=!1;function A_({storageKey:e,key:t,behavior:n,shouldScrollRestoration:i,scrollToTopSelectors:o,location:l}){var m,y;let u;try{u=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(v){console.error(v);return}const c=t||((m=window.history.state)==null?void 0:m.__TSR_key),h=u[c];xu=!0;e:{if(i&&h&&Object.keys(h).length>0){for(const w in h){const k=h[w];if(w==="window")window.scrollTo({top:k.scrollY,left:k.scrollX,behavior:n});else if(w){const S=document.querySelector(w);S&&(S.scrollLeft=k.scrollX,S.scrollTop=k.scrollY)}}break e}const v=(l??window.location).hash.split("#",2)[1];if(v){const w=((y=window.history.state)==null?void 0:y.__hashScrollIntoViewOptions)??!0;if(w){const k=document.getElementById(v);k&&k.scrollIntoView(w)}break e}const x={top:0,left:0,behavior:n};if(window.scrollTo(x),o)for(const w of o){if(w==="window")continue;const k=typeof w=="function"?w():document.querySelector(w);k&&k.scrollTo(x)}}xu=!1}function O_(e,t){if(!Zc||((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup||!Zc))return;e.isScrollRestorationSetup=!0,xu=!1;const i=e.options.getScrollRestorationKey||N_;window.history.scrollRestoration="manual";const o=l=>{if(xu||!e.isScrollRestoring)return;let u="";if(l.target===document||l.target===window)u="window";else{const h=l.target.getAttribute("data-scroll-restoration-id");h?u=`[data-scroll-restoration-id="${h}"]`:u=T_(l.target)}const c=i(e.state.location);Zc.set(h=>{const m=h[c]||(h[c]={}),y=m[u]||(m[u]={});if(u==="window")y.scrollX=window.scrollX||0,y.scrollY=window.scrollY||0;else if(u){const v=document.querySelector(u);v&&(y.scrollX=v.scrollLeft||0,y.scrollY=v.scrollTop||0)}return h})};typeof document<"u"&&document.addEventListener("scroll",R_(o,100),!0),e.subscribe("onRendered",l=>{const u=i(l.toLocation);if(!e.resetNextScroll){e.resetNextScroll=!0;return}typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation})||(A_({storageKey:Vh,key:u,behavior:e.options.scrollRestorationBehavior,shouldScrollRestoration:e.isScrollRestoring,scrollToTopSelectors:e.options.scrollToTopSelectors,location:e.history.location}),e.isScrollRestoring&&Zc.set(c=>(c[u]||(c[u]={}),c)))})}function I_(e){if(typeof document<"u"&&document.querySelector){const t=e.state.location.state.__hashScrollIntoViewOptions??!0;if(t&&e.state.location.hash!==""){const n=document.getElementById(e.state.location.hash);n&&n.scrollIntoView(t)}}}function M_(e,t=String){const n=new URLSearchParams;for(const i in e){const o=e[i];o!==void 0&&n.set(i,t(o))}return n.toString()}function th(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function L_(e){const t=new URLSearchParams(e),n={};for(const[i,o]of t.entries()){const l=n[i];l==null?n[i]=th(o):Array.isArray(l)?l.push(th(o)):n[i]=[l,th(o)]}return n}const F_=z_(JSON.parse),D_=V_(JSON.stringify,JSON.parse);function z_(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=L_(t);for(const i in n){const o=n[i];if(typeof o=="string")try{n[i]=e(o)}catch{}}return n}}function V_(e,t){const n=typeof t=="function";function i(o){if(typeof o=="object"&&o!==null)try{return e(o)}catch{}else if(n&&typeof o=="string")try{return t(o),e(o)}catch{}return o}return o=>{const l=M_(o,i);return l?`?${l}`:""}}const rr="__root__";function $_(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function sr(e){return e instanceof Response&&!!e.options}const ou=e=>{var t;if(!e.rendered)return e.rendered=!0,(t=e.onReady)==null?void 0:t.call(e)},Uu=(e,t)=>!!(e.preload&&!e.router.state.matches.some(n=>n.id===t)),$o=(e,t,n=!0)=>{const i={...e.router.options.context??{}},o=n?t:t-1;for(let l=0;l<=o;l++){const u=e.matches[l];if(!u)continue;const c=e.router.getMatch(u.id);c&&Object.assign(i,c.__routeContext,c.__beforeLoadContext)}return i},Sw=(e,t,n)=>{var u;const i=e.router.routesById[t.routeId??""]??e.router.routeTree;!i.options.notFoundComponent&&((u=e.router.options)!=null&&u.defaultNotFoundComponent)&&(i.options.notFoundComponent=e.router.options.defaultNotFoundComponent);const o=n==="BEFORE_LOAD"&&i.parentRoute;o||ps(i.options.notFoundComponent);const l=e.matches.find(c=>c.routeId===i.id);ps(l,"Could not find match for route: "+i.id),e.updateMatch(l.id,c=>({...c,status:"notFound",error:t,isFetching:!1})),o&&(t.routeId=i.parentRoute.id,Sw(e,t,n))},oi=(e,t,n,i)=>{var o,l,u;if(!(!sr(n)&&!Vn(n))){if(sr(n)&&n.redirectHandled&&!n.options.reloadDocument)throw n;if(t){(o=t._nonReactive.beforeLoadPromise)==null||o.resolve(),(l=t._nonReactive.loaderPromise)==null||l.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0;const c=sr(n)?"redirected":"notFound";t._nonReactive.error=n,e.updateMatch(t.id,h=>({...h,status:c,context:$o(e,t.index),isFetching:!1,error:n})),Vn(n)&&!n.routeId&&(n.routeId=t.routeId),(u=t._nonReactive.loadPromise)==null||u.resolve()}throw sr(n)?(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n),n):(Sw(e,n,i),n)}},bw=(e,t)=>!!e.router.getMatch(t)._nonReactive.dehydrated,el=(e,t,n,i)=>{var c,h;const{id:o,routeId:l}=e.matches[t],u=e.router.looseRoutesById[l];if(n instanceof Promise)throw n;n.routerCode=i,e.firstBadMatchIndex??(e.firstBadMatchIndex=t),oi(e,e.router.getMatch(o),n,i);try{(h=(c=u.options).onError)==null||h.call(c,n)}catch(m){n=m,oi(e,e.router.getMatch(o),n,i)}e.updateMatch(o,m=>{var y,v;return(y=m._nonReactive.beforeLoadPromise)==null||y.resolve(),m._nonReactive.beforeLoadPromise=void 0,(v=m._nonReactive.loadPromise)==null||v.resolve(),{...m,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}})},Cw=(e,t,n,i)=>{var u;if(i._nonReactive.pendingTimeout!==void 0)return;const o=n.options.pendingMs??e.router.options.defaultPendingMs;if(!!(e.onReady&&!Uu(e,t)&&(n.options.loader||n.options.beforeLoad||Ew(n))&&typeof o=="number"&&o!==1/0&&(n.options.pendingComponent??((u=e.router.options)==null?void 0:u.defaultPendingComponent)))){const c=setTimeout(()=>{ou(e)},o);i._nonReactive.pendingTimeout=c}},B_=(e,t,n)=>{const i=e.router.getMatch(t);if(!i._nonReactive.beforeLoadPromise&&!i._nonReactive.loaderPromise)return;Cw(e,t,n,i);const o=()=>{const l=e.router.getMatch(t);l.preload&&(l.status==="redirected"||l.status==="notFound")&&oi(e,l,l.error)};return i._nonReactive.beforeLoadPromise?i._nonReactive.beforeLoadPromise.then(o):o()},U_=(e,t,n,i)=>{const o=e.router.getMatch(t),l=o._nonReactive.loadPromise;o._nonReactive.loadPromise=ra(()=>{l==null||l.resolve()});const{paramsError:u,searchError:c}=o;u&&el(e,n,u,"PARSE_PARAMS"),c&&el(e,n,c,"VALIDATE_SEARCH"),Cw(e,t,i,o);const h=new AbortController;let m=!1;const y=()=>{m||(m=!0,e.updateMatch(t,R=>({...R,isFetching:"beforeLoad",fetchCount:R.fetchCount+1,abortController:h})))},v=()=>{var R;(R=o._nonReactive.beforeLoadPromise)==null||R.resolve(),o._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,N=>({...N,isFetching:!1}))};if(!i.options.beforeLoad){ul(()=>{y(),v()});return}o._nonReactive.beforeLoadPromise=ra();const x={...$o(e,n,!1),...o.__routeContext},{search:w,params:k,cause:S}=o,C=Uu(e,t),P={search:w,abortController:h,params:k,preload:C,context:x,location:e.location,navigate:R=>e.router.navigate({...R,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:C?"preload":S,matches:e.matches,routeId:i.id,...e.router.options.additionalContext},_=R=>{if(R===void 0){ul(()=>{y(),v()});return}(sr(R)||Vn(R))&&(y(),el(e,n,R,"BEFORE_LOAD")),ul(()=>{y(),e.updateMatch(t,N=>({...N,__beforeLoadContext:R})),v()})};let E;try{if(E=i.options.beforeLoad(P),Vo(E))return y(),E.catch(R=>{el(e,n,R,"BEFORE_LOAD")}).then(_)}catch(R){y(),el(e,n,R,"BEFORE_LOAD")}_(E)},W_=(e,t)=>{const{id:n,routeId:i}=e.matches[t],o=e.router.looseRoutesById[i],l=()=>c(),u=()=>U_(e,n,t,o),c=()=>{if(bw(e,n))return;const h=B_(e,n,o);return Vo(h)?h.then(u):u()};return l()},H_=(e,t,n)=>{var l,u,c,h,m,y;const i=e.router.getMatch(t);if(!i||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const o={ssr:e.router.options.ssr,matches:e.matches,match:i,params:i.params,loaderData:i.loaderData};return Promise.all([(u=(l=n.options).head)==null?void 0:u.call(l,o),(h=(c=n.options).scripts)==null?void 0:h.call(c,o),(y=(m=n.options).headers)==null?void 0:y.call(m,o)]).then(([v,x,w])=>{const k=v==null?void 0:v.meta,S=v==null?void 0:v.links,C=v==null?void 0:v.scripts,P=v==null?void 0:v.styles;return{meta:k,links:S,headScripts:C,headers:w,scripts:x,styles:P}})},_w=(e,t,n,i)=>{const o=e.matchPromises[n-1],{params:l,loaderDeps:u,abortController:c,cause:h}=e.router.getMatch(t),m=$o(e,n),y=Uu(e,t);return{params:l,deps:u,preload:!!y,parentMatchPromise:o,abortController:c,context:m,location:e.location,navigate:v=>e.router.navigate({...v,_fromLocation:e.location}),cause:y?"preload":h,route:i,...e.router.options.additionalContext}},py=async(e,t,n,i)=>{var o,l,u,c,h,m,y;try{const v=e.router.getMatch(t);try{(!(a_??e.router.isServer)||v.ssr===!0)&&kw(i);const x=(l=(o=i.options).loader)==null?void 0:l.call(o,_w(e,t,n,i)),w=i.options.loader&&Vo(x);if(!!(w||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||v._nonReactive.minPendingPromise)&&e.updateMatch(t,C=>({...C,isFetching:"loader"})),i.options.loader){const C=w?await x:x;oi(e,e.router.getMatch(t),C),C!==void 0&&e.updateMatch(t,P=>({...P,loaderData:C}))}i._lazyPromise&&await i._lazyPromise;const S=v._nonReactive.minPendingPromise;S&&await S,i._componentsPromise&&await i._componentsPromise,e.updateMatch(t,C=>({...C,error:void 0,context:$o(e,n),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(x){let w=x;if((w==null?void 0:w.name)==="AbortError"){if(v.abortController.signal.aborted){(u=v._nonReactive.loaderPromise)==null||u.resolve(),v._nonReactive.loaderPromise=void 0;return}e.updateMatch(t,S=>({...S,status:S.status==="pending"?"success":S.status,isFetching:!1,context:$o(e,n)}));return}const k=v._nonReactive.minPendingPromise;k&&await k,Vn(x)&&await((h=(c=i.options.notFoundComponent)==null?void 0:c.preload)==null?void 0:h.call(c)),oi(e,e.router.getMatch(t),x);try{(y=(m=i.options).onError)==null||y.call(m,x)}catch(S){w=S,oi(e,e.router.getMatch(t),S)}e.updateMatch(t,S=>({...S,error:w,context:$o(e,n),status:"error",isFetching:!1}))}}catch(v){const x=e.router.getMatch(t);x&&(x._nonReactive.loaderPromise=void 0),oi(e,x,v)}},K_=async(e,t)=>{var y,v;async function n(x,w,k,S){const C=Date.now()-w.updatedAt,P=x?S.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:S.options.staleTime??e.router.options.defaultStaleTime??0,_=S.options.shouldReload,E=typeof _=="function"?_(_w(e,i,t,S)):_,{status:R,invalid:N}=k;l=R==="success"&&(N||(E??C>P)),x&&S.options.preload===!1||(l&&!e.sync?(u=!0,(async()=>{var T,A;try{await py(e,i,t,S);const z=e.router.getMatch(i);(T=z._nonReactive.loaderPromise)==null||T.resolve(),(A=z._nonReactive.loadPromise)==null||A.resolve(),z._nonReactive.loaderPromise=void 0}catch(z){sr(z)&&await e.router.navigate(z.options)}})()):(R!=="success"||l&&e.sync)&&await py(e,i,t,S))}const{id:i,routeId:o}=e.matches[t];let l=!1,u=!1;const c=e.router.looseRoutesById[o];if(!bw(e,i)){const x=e.router.getMatch(i),w=Uu(e,i);if(x._nonReactive.loaderPromise){if(x.status==="success"&&!e.sync&&!x.preload)return x;await x._nonReactive.loaderPromise;const k=e.router.getMatch(i),S=k._nonReactive.error||k.error;S&&oi(e,k,S),k.status==="pending"&&await n(w,x,k,c)}else{const k=w&&!e.router.state.matches.some(C=>C.id===i),S=e.router.getMatch(i);S._nonReactive.loaderPromise=ra(),k!==S.preload&&e.updateMatch(i,C=>({...C,preload:k})),await n(w,x,S,c)}}const h=e.router.getMatch(i);u||((y=h._nonReactive.loaderPromise)==null||y.resolve(),(v=h._nonReactive.loadPromise)==null||v.resolve()),clearTimeout(h._nonReactive.pendingTimeout),h._nonReactive.pendingTimeout=void 0,u||(h._nonReactive.loaderPromise=void 0),h._nonReactive.dehydrated=void 0;const m=u?h.isFetching:!1;return m!==h.isFetching||h.invalid!==!1?(e.updateMatch(i,x=>({...x,isFetching:m,invalid:!1})),e.router.getMatch(i)):h};async function my(e){const t=Object.assign(e,{matchPromises:[]});t.router.state.matches.some(n=>n._forcePending)&&ou(t);try{for(let c=0;c<t.matches.length;c++){const h=W_(t,c);Vo(h)&&await h}const n=t.firstBadMatchIndex??t.matches.length;for(let c=0;c<n;c++)t.matchPromises.push(K_(t,c));const o=(await Promise.allSettled(t.matchPromises)).filter(c=>c.status==="rejected").map(c=>c.reason);let l;for(const c of o){if(sr(c))throw c;!l&&Vn(c)&&(l=c)}for(const c of t.matches){const{id:h,routeId:m}=c,y=t.router.looseRoutesById[m];try{const v=H_(t,h,y);if(v){const x=await v;t.updateMatch(h,w=>({...w,...x}))}}catch(v){console.error(`Error executing head for route ${m}:`,v)}}if(l)throw l;const u=ou(t);Vo(u)&&await u}catch(n){if(Vn(n)&&!t.preload){const i=ou(t);throw Vo(i)&&await i,n}if(sr(n))throw n}return t.matches}async function kw(e){if(!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{const{id:n,...i}=t.options;Object.assign(e.options,i),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0),!e._componentsLoaded&&e._componentsPromise===void 0){const t=()=>{var i;const n=[];for(const o of jw){const l=(i=e.options[o])==null?void 0:i.preload;l&&n.push(l())}if(n.length)return Promise.all(n).then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0});e._componentsLoaded=!0,e._componentsPromise=void 0};e._componentsPromise=e._lazyPromise?e._lazyPromise.then(t):t()}return e._componentsPromise}function Ew(e){var t;for(const n of jw)if((t=e.options[n])!=null&&t.preload)return!0;return!1}const jw=["component","errorComponent","pendingComponent","notFoundComponent"];function Q_(e){return{input:({url:t})=>{for(const n of e)t=$h(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=Rw(e[n],t);return t}}}function Z_(e){const t=ww(e.basepath),n=`/${t}`,i=`${n}/`,o=e.caseSensitive?n:n.toLowerCase(),l=e.caseSensitive?i:i.toLowerCase();return{input:({url:u})=>{const c=e.caseSensitive?u.pathname:u.pathname.toLowerCase();return c===o?u.pathname="/":c.startsWith(l)&&(u.pathname=u.pathname.slice(n.length)),u},output:({url:u})=>(u.pathname=iu(["/",t,u.pathname]),u)}}function $h(e,t){var i;const n=(i=e==null?void 0:e.input)==null?void 0:i.call(e,{url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function Rw(e,t){var i;const n=(i=e==null?void 0:e.output)==null?void 0:i.call(e,{url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function Gi(e){const t=e.resolvedLocation,n=e.location,i=(t==null?void 0:t.pathname)!==n.pathname,o=(t==null?void 0:t.href)!==n.href,l=(t==null?void 0:t.hash)!==n.hash;return{fromLocation:t,toLocation:n,pathChanged:i,hrefChanged:o,hashChanged:l}}function q_(e){const t=e.filter(n=>n.status!=="redirected");return t.length===e.length?e:t}class G_{constructor(t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=n=>n(),this.update=n=>{var x;n.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const i=this.options,o=this.basepath??(i==null?void 0:i.basepath)??"/",l=this.basepath===void 0,u=i==null?void 0:i.rewrite;if(this.options={...i,...n},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=E_(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=i_()),this.origin=this.options.origin,this.origin||(window!=null&&window.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let w;this.resolvePathCache=vu(1e3),w=this.buildRouteTree(),this.setRoutes(w)}!this.__store&&this.latestLocation&&(this.__store=new n_(X_(this.latestLocation)),O_(this));let c=!1;const h=this.options.basepath??"/",m=this.options.rewrite;if(l||o!==h||u!==m){this.basepath=h;const w=[],k=ww(h);k&&k!=="/"&&w.push(Z_({basepath:h})),m&&w.push(m),this.rewrite=w.length===0?void 0:w.length===1?w[0]:Q_(w),this.history&&this.updateLatestLocation(),c=!0}c&&this.__store&&this.__store.setState(w=>({...w,location:this.latestLocation})),typeof window<"u"&&"CSS"in window&&typeof((x=window.CSS)==null?void 0:x.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const n=w_(this.routeTree,this.options.caseSensitive,(i,o)=>{i.init({originalIndex:o})});return this.options.routeMasks&&m_(this.options.routeMasks,n.processedTree),n},this.subscribe=(n,i)=>{const o={eventType:n,fn:i};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}},this.emit=n=>{this.subscribers.forEach(i=>{i.eventType===n.type&&i.fn(n)})},this.parseLocation=(n,i)=>{const o=({pathname:h,search:m,hash:y,href:v,state:x})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(h)){const _=this.options.parseSearch(m),E=this.options.stringifySearch(_);return{href:h+E+y,publicHref:v,pathname:Xa(h).path,external:!1,searchStr:E,search:Fn(i==null?void 0:i.search,_),hash:Xa(y.slice(1)).path,state:Fn(i==null?void 0:i.state,x)}}const w=new URL(v,this.origin),k=$h(this.rewrite,w),S=this.options.parseSearch(k.search),C=this.options.stringifySearch(S);return k.search=C,{href:k.href.replace(k.origin,""),publicHref:v,pathname:Xa(k.pathname).path,external:!!this.rewrite&&k.origin!==this.origin,searchStr:C,search:Fn(i==null?void 0:i.search,S),hash:Xa(k.hash.slice(1)).path,state:Fn(i==null?void 0:i.state,x)}},l=o(n),{__tempLocation:u,__tempKey:c}=l.state;if(u&&(!c||c===this.tempLocationKey)){const h=o(u);return h.state.key=l.state.key,h.state.__TSR_key=l.state.__TSR_key,delete h.state.__tempLocation,{...h,maskedLocation:l}}return l},this.resolvePathWithBase=(n,i)=>k_({base:n,to:wp(i),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,i,o)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:i},o):this.matchRoutesInternal(n,i),this.getMatchedRoutes=n=>J_({pathname:n,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=n=>{const i=this.getMatch(n);i&&(i.abortController.abort(),clearTimeout(i._nonReactive.pendingTimeout),i._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const n=this.state.matches.filter(l=>l.status==="pending"),i=this.state.matches.filter(l=>l.isFetching==="loader");new Set([...this.state.pendingMatches??[],...n,...i]).forEach(l=>{this.cancelMatch(l.id)})},this.buildLocation=n=>{const i=(l={})=>{var ee,ne;const u=l._fromLocation||this.pendingBuiltLocation||this.latestLocation,c=this.matchRoutesLightweight(u);l.from;const h=l.unsafeRelative==="path"?u.pathname:l.from??c.fullPath,m=this.resolvePathWithBase(h,"."),y=c.search,v={...c.params},x=l.to?this.resolvePathWithBase(m,`${l.to}`):this.resolvePathWithBase(m,"."),w=l.params===!1||l.params===null?{}:(l.params??!0)===!0?v:Object.assign(v,ii(l.params,v)),k=eh({path:x,params:w,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath,S=this.getMatchedRoutes(k);let C=S.matchedRoutes;(S.foundRoute?S.foundRoute.path!=="/"&&S.routeParams["**"]:ds(k))&&this.options.notFoundRoute&&(C=[...C,this.options.notFoundRoute]);let _=!1;if(Object.keys(w).length>0)for(const Y of C){const Z=((ee=Y.options.params)==null?void 0:ee.stringify)??Y.options.stringifyParams;Z&&(_=!0,Object.assign(w,Z(w)))}const E=n.leaveParams?x:Xa(_?eh({path:x,params:w,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath:k).path;let R=y;if(n._includeValidateSearch&&((ne=this.options.search)!=null&&ne.strict)){const Y={};C.forEach(Z=>{if(Z.options.validateSearch)try{Object.assign(Y,au(Z.options.validateSearch,{...Y,...R}))}catch{}}),R=Y}R=ek({search:R,dest:l,destRoutes:C,_includeValidateSearch:n._includeValidateSearch}),R=Fn(y,R);const N=this.options.stringifySearch(R),T=l.hash===!0?u.hash:l.hash?ii(l.hash,u.hash):void 0,A=T?`#${T}`:"";let z=l.state===!0?u.state:l.state?ii(l.state,u.state):{};z=Fn(u.state,z);const L=`${E}${N}${A}`;let M,Q,H=!1;if(this.rewrite){const Y=new URL(L,this.origin),Z=Rw(this.rewrite,Y);M=Y.href.replace(Y.origin,""),Z.origin!==this.origin?(Q=Z.href,H=!0):Q=Z.pathname+Z.search+Z.hash}else M=f_(L),Q=M;return{publicHref:Q,href:M,pathname:E,search:R,searchStr:N,state:z,hash:T??"",external:H,unmaskOnReload:l.unmaskOnReload}},o=(l={},u)=>{const c=i(l);let h=u?i(u):void 0;if(!h){const m={};if(this.options.routeMasks){const y=g_(c.pathname,this.processedTree);if(y){Object.assign(m,y.rawParams);const{from:v,params:x,...w}=y.route,k=x===!1||x===null?{}:(x??!0)===!0?m:Object.assign(m,ii(x,m));u={from:n.from,...w,params:k},h=i(u)}}}return h&&(c.maskedLocation=h),c};return n.mask?o(n,{from:n.from,...n.mask}):o(n)},this.commitLocation=async({viewTransition:n,ignoreBlocker:i,...o})=>{const l=()=>{const h=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];h.forEach(y=>{o.state[y]=this.latestLocation.state[y]});const m=qi(o.state,this.latestLocation.state);return h.forEach(y=>{delete o.state[y]}),m},u=ds(this.latestLocation.href)===ds(o.href),c=this.commitLocationPromise;if(this.commitLocationPromise=ra(()=>{c==null||c.resolve()}),u&&l())this.load();else{let{maskedLocation:h,hashScrollIntoView:m,...y}=o;h&&(y={...h,state:{...h.state,__tempKey:void 0,__tempLocation:{...y,search:y.searchStr,state:{...y.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(y.unmaskOnReload??this.options.unmaskOnReload??!1)&&(y.state.__tempKey=this.tempLocationKey)),y.state.__hashScrollIntoViewOptions=m??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,this.history[o.replace?"replace":"push"](y.publicHref,y.state,{ignoreBlocker:i})}return this.resetNextScroll=o.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:i,hashScrollIntoView:o,viewTransition:l,ignoreBlocker:u,href:c,...h}={})=>{if(c){const v=this.history.location.state.__TSR_index,x=pu(c,{__TSR_index:n?v:v+1}),w=new URL(x.pathname,this.origin),k=$h(this.rewrite,w);h.to=k.pathname,h.search=this.options.parseSearch(x.search),h.hash=x.hash.slice(1)}const m=this.buildLocation({...h,_includeValidateSearch:!0});this.pendingBuiltLocation=m;const y=this.commitLocation({...m,viewTransition:l,replace:n,resetScroll:i,hashScrollIntoView:o,ignoreBlocker:u});return Promise.resolve().then(()=>{this.pendingBuiltLocation===m&&(this.pendingBuiltLocation=void 0)}),y},this.navigate=async({to:n,reloadDocument:i,href:o,publicHref:l,...u})=>{var h;let c=!1;if(o)try{new URL(`${o}`),c=!0}catch{}if(c&&!i&&(i=!0),i){if(n!==void 0||!o){const y=this.buildLocation({to:n,...u});o=o??y.publicHref,l=l??y.publicHref}const m=!c&&l?l:o;if(gu(m,this.protocolAllowlist))return Promise.resolve();if(!u.ignoreBlocker){const y=this.history,v=((h=y.getBlockers)==null?void 0:h.call(y))??[];for(const x of v)if(x!=null&&x.blockerFn&&await x.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return u.replace?window.location.replace(m):window.location.href=m,Promise.resolve()}return this.buildAndCommitLocation({...u,href:o,to:n,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const n=this.matchRoutes(this.latestLocation);this.__store.setState(i=>({...i,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:n,cachedMatches:i.cachedMatches.filter(o=>!n.some(l=>l.id===o.id))}))},this.load=async n=>{let i,o,l;for(l=new Promise(c=>{this.startTransition(async()=>{var h;try{this.beforeLoad();const m=this.latestLocation,y=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Gi({resolvedLocation:y,location:m})}),this.emit({type:"onBeforeLoad",...Gi({resolvedLocation:y,location:m})}),await my({router:this,sync:n==null?void 0:n.sync,matches:this.state.pendingMatches,location:m,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let v=[],x=[],w=[];ul(()=>{this.__store.setState(k=>{const S=k.matches,C=k.pendingMatches||k.matches;return v=S.filter(P=>!C.some(_=>_.id===P.id)),x=C.filter(P=>!S.some(_=>_.id===P.id)),w=C.filter(P=>S.some(_=>_.id===P.id)),{...k,isLoading:!1,loadedAt:Date.now(),matches:C,pendingMatches:void 0,cachedMatches:[...k.cachedMatches,...v.filter(P=>P.status!=="error"&&P.status!=="notFound"&&P.status!=="redirected")]}}),this.clearExpiredCache()}),[[v,"onLeave"],[x,"onEnter"],[w,"onStay"]].forEach(([k,S])=>{k.forEach(C=>{var P,_;(_=(P=this.looseRoutesById[C.routeId].options)[S])==null||_.call(P,C)})})})})}})}catch(m){sr(m)?(i=m,this.navigate({...i.options,replace:!0,ignoreBlocker:!0})):Vn(m)&&(o=m),this.__store.setState(y=>({...y,statusCode:i?i.status:o?404:y.matches.some(v=>v.status==="error")?500:200,redirect:i}))}this.latestLoadPromise===l&&((h=this.commitLocationPromise)==null||h.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),c()})}),this.latestLoadPromise=l,await l;this.latestLoadPromise&&l!==this.latestLoadPromise;)await this.latestLoadPromise;let u;this.hasNotFoundMatch()?u=404:this.__store.state.matches.some(c=>c.status==="error")&&(u=500),u!==void 0&&this.__store.setState(c=>({...c,statusCode:u}))},this.startViewTransition=n=>{const i=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,i&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let o;if(typeof i=="object"&&this.isViewTransitionTypesSupported){const l=this.latestLocation,u=this.state.resolvedLocation,c=typeof i.types=="function"?i.types(Gi({resolvedLocation:u,location:l})):i.types;if(c===!1){n();return}o={update:n,types:c}}else o=n;document.startViewTransition(o)}else n()},this.updateMatch=(n,i)=>{this.startTransition(()=>{var l;const o=(l=this.state.pendingMatches)!=null&&l.some(u=>u.id===n)?"pendingMatches":this.state.matches.some(u=>u.id===n)?"matches":this.state.cachedMatches.some(u=>u.id===n)?"cachedMatches":"";o&&(o==="cachedMatches"?this.__store.setState(u=>({...u,cachedMatches:q_(u.cachedMatches.map(c=>c.id===n?i(c):c))})):this.__store.setState(u=>{var c;return{...u,[o]:(c=u[o])==null?void 0:c.map(h=>h.id===n?i(h):h)}}))})},this.getMatch=n=>{var o;const i=l=>l.id===n;return this.state.cachedMatches.find(i)??((o=this.state.pendingMatches)==null?void 0:o.find(i))??this.state.matches.find(i)},this.invalidate=n=>{const i=o=>{var l;return((l=n==null?void 0:n.filter)==null?void 0:l.call(n,o))??!0?{...o,invalid:!0,...n!=null&&n.forcePending||o.status==="error"||o.status==="notFound"?{status:"pending",error:void 0}:void 0}:o};return this.__store.setState(o=>{var l;return{...o,matches:o.matches.map(i),cachedMatches:o.cachedMatches.map(i),pendingMatches:(l=o.pendingMatches)==null?void 0:l.map(i)}}),this.shouldViewTransition=!1,this.load({sync:n==null?void 0:n.sync})},this.getParsedLocationHref=n=>n.publicHref||"/",this.resolveRedirect=n=>{const i=n.headers.get("Location");if(!n.options.href||n.options._builtLocation){const o=n.options._builtLocation??this.buildLocation(n.options),l=this.getParsedLocationHref(o);n.options.href=l,n.headers.set("Location",l)}else if(i)try{const o=new URL(i);if(this.origin&&o.origin===this.origin){const l=o.pathname+o.search+o.hash;n.options.href=l,n.headers.set("Location",l)}}catch{}if(n.options.href&&!n.options._builtLocation&&gu(n.options.href,this.protocolAllowlist))throw new Error(`Redirect blocked: unsafe protocol in href "${n.options.href}". Allowed protocols: ${Array.from(this.protocolAllowlist).join(", ")}.`);return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const i=n==null?void 0:n.filter;i!==void 0?this.__store.setState(o=>({...o,cachedMatches:o.cachedMatches.filter(l=>!i(l))})):this.__store.setState(o=>({...o,cachedMatches:[]}))},this.clearExpiredCache=()=>{const n=i=>{const o=this.looseRoutesById[i.routeId];if(!o.options.loader)return!0;const l=(i.preload?o.options.preloadGcTime??this.options.defaultPreloadGcTime:o.options.gcTime??this.options.defaultGcTime)??300*1e3;return i.status==="error"?!0:Date.now()-i.updatedAt>=l};this.clearCache({filter:n})},this.loadRouteChunk=kw,this.preloadRoute=async n=>{const i=n._builtLocation??this.buildLocation(n);let o=this.matchRoutes(i,{throwOnError:!0,preload:!0,dest:n});const l=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(c=>c.id)),u=new Set([...l,...this.state.cachedMatches.map(c=>c.id)]);ul(()=>{o.forEach(c=>{u.has(c.id)||this.__store.setState(h=>({...h,cachedMatches:[...h.cachedMatches,c]}))})});try{return o=await my({router:this,matches:o,location:i,preload:!0,updateMatch:(c,h)=>{l.has(c)?o=o.map(m=>m.id===c?h(m):m):this.updateMatch(c,h)}}),o}catch(c){if(sr(c))return c.options.reloadDocument?void 0:await this.preloadRoute({...c.options,_fromLocation:i});Vn(c)||console.error(c);return}},this.matchRoute=(n,i)=>{const o={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},l=this.buildLocation(o);if(i!=null&&i.pending&&this.state.status!=="pending")return!1;const c=((i==null?void 0:i.pending)===void 0?!this.state.isLoading:i.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,h=v_(l.pathname,(i==null?void 0:i.caseSensitive)??!1,(i==null?void 0:i.fuzzy)??!1,c.pathname,this.processedTree);return!h||n.params&&!qi(h.rawParams,n.params,{partial:!0})?!1:(i==null?void 0:i.includeSearch)??!0?qi(c.search,l.search,{partial:!0})?h.rawParams:!1:h.rawParams},this.hasNotFoundMatch=()=>this.__store.state.matches.some(n=>n.status==="notFound"||n.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??D_,parseSearch:t.parseSearch??F_,protocolAllowlist:t.protocolAllowlist??d_}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}setRoutes({routesById:t,routesByPath:n,processedTree:i}){this.routesById=t,this.routesByPath=n,this.processedTree=i;const o=this.options.notFoundRoute;o&&(o.init({originalIndex:99999999999}),this.routesById[o.id]=o)}get looseRoutesById(){return this.routesById}getParentContext(t){return(t==null?void 0:t.id)?t.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(t,n){var x,w;const i=this.getMatchedRoutes(t.pathname),{foundRoute:o,routeParams:l,parsedParams:u}=i;let{matchedRoutes:c}=i,h=!1;(o?o.path!=="/"&&l["**"]:ds(t.pathname))&&(this.options.notFoundRoute?c=[...c,this.options.notFoundRoute]:h=!0);const m=h?nk(this.options.notFoundMode,c):void 0,y=new Array(c.length),v=new Map(this.state.matches.map(k=>[k.routeId,k]));for(let k=0;k<c.length;k++){const S=c[k],C=y[k-1];let P,_,E;{const Z=(C==null?void 0:C.search)??t.search,se=(C==null?void 0:C._strictSearch)??void 0;try{const B=au(S.options.validateSearch,{...Z})??void 0;P={...Z,...B},_={...se,...B},E=void 0}catch(B){let te=B;if(B instanceof wu||(te=new wu(B.message,{cause:B})),n!=null&&n.throwOnError)throw te;P=Z,_={},E=te}}const R=((w=(x=S.options).loaderDeps)==null?void 0:w.call(x,{search:P}))??"",N=R?JSON.stringify(R):"",{interpolatedPath:T,usedParams:A}=eh({path:S.fullPath,params:l,decoder:this.pathParamsDecoder,server:this.isServer}),z=S.id+T+N,L=this.getMatch(z),M=v.get(S.id),Q=(L==null?void 0:L._strictParams)??A;let H;if(!L)try{gy(S,A,u,Q)}catch(Z){if(Vn(Z)||sr(Z)?H=Z:H=new Y_(Z.message,{cause:Z}),n!=null&&n.throwOnError)throw H}Object.assign(l,Q);const ee=M?"stay":"enter";let ne;if(L)ne={...L,cause:ee,params:(M==null?void 0:M.params)??l,_strictParams:Q,search:Fn(M?M.search:L.search,P),_strictSearch:_};else{const Z=S.options.loader||S.options.beforeLoad||S.lazyFn||Ew(S)?"pending":"success";ne={id:z,ssr:S.options.ssr,index:k,routeId:S.id,params:(M==null?void 0:M.params)??l,_strictParams:Q,pathname:T,updatedAt:Date.now(),search:M?Fn(M.search,P):P,_strictSearch:_,searchError:void 0,status:Z,isFetching:!1,error:void 0,paramsError:H,__routeContext:void 0,_nonReactive:{loadPromise:ra()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:ee,loaderDeps:M?Fn(M.loaderDeps,R):R,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:S.options.staticData||{},fullPath:S.fullPath}}n!=null&&n.preload||(ne.globalNotFound=m===S.id),ne.searchError=E;const Y=this.getParentContext(C);ne.context={...Y,...ne.__routeContext,...ne.__beforeLoadContext},y[k]=ne}for(let k=0;k<y.length;k++){const S=y[k],C=this.looseRoutesById[S.routeId],P=this.getMatch(S.id),_=v.get(S.routeId);if(S.params=_?Fn(_.params,l):l,!P){const E=y[k-1],R=this.getParentContext(E);if(C.options.context){const N={deps:S.loaderDeps,params:S.params,context:R??{},location:t,navigate:T=>this.navigate({...T,_fromLocation:t}),buildLocation:this.buildLocation,cause:S.cause,abortController:S.abortController,preload:!!S.preload,matches:y,routeId:C.id};S.__routeContext=C.options.context(N)??void 0}S.context={...R,...S.__routeContext,...S.__beforeLoadContext}}}return y}matchRoutesLightweight(t){const{matchedRoutes:n,routeParams:i,parsedParams:o}=this.getMatchedRoutes(t.pathname),l=pl(n),u={...t.search};for(const y of n)try{Object.assign(u,au(y.options.validateSearch,u))}catch{}const c=pl(this.state.matches),h=c&&c.routeId===l.id&&t.pathname===this.state.location.pathname;let m;if(h)m=c.params;else{const y={...i};for(const v of n)try{gy(v,i,o??{},y)}catch{}m=y}return{matchedRoutes:n,fullPath:l.fullPath,search:u,params:m}}}class wu extends Error{}class Y_ extends Error{}function X_(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function au(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new wu("Async validation not supported");if(n.issues)throw new wu(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function J_({pathname:e,routesById:t,processedTree:n}){const i={},o=ds(e);let l,u;const c=y_(o,n,!0);return c&&(l=c.route,Object.assign(i,c.rawParams),u=Object.assign({},c.parsedParams)),{matchedRoutes:(c==null?void 0:c.branch)||[t[rr]],routeParams:i,foundRoute:l,parsedParams:u}}function ek({search:e,dest:t,destRoutes:n,_includeValidateSearch:i}){return tk(n)(e,t,i??!1)}function tk(e){var o;const t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const l of e){if("search"in l.options)(o=l.options.search)!=null&&o.middlewares&&t.middlewares.push(...l.options.search.middlewares);else if(l.options.preSearchFilters||l.options.postSearchFilters){const u=({search:c,next:h})=>{let m=c;"preSearchFilters"in l.options&&l.options.preSearchFilters&&(m=l.options.preSearchFilters.reduce((v,x)=>x(v),c));const y=h(m);return"postSearchFilters"in l.options&&l.options.postSearchFilters?l.options.postSearchFilters.reduce((v,x)=>x(v),y):y};t.middlewares.push(u)}if(l.options.validateSearch){const u=({search:c,next:h})=>{const m=h(c);if(!t._includeValidateSearch)return m;try{return{...m,...au(l.options.validateSearch,m)??void 0}}catch{return m}};t.middlewares.push(u)}}const n=({search:l})=>{const u=t.dest;return u.search?u.search===!0?l:ii(u.search,l):{}};t.middlewares.push(n);const i=(l,u,c)=>{if(l>=c.length)return u;const h=c[l];return h({search:u,next:y=>i(l+1,y,c)})};return function(u,c,h){return t.dest=c,t._includeValidateSearch=h,i(0,u,t.middlewares)}}function nk(e,t){if(e!=="root")for(let n=t.length-1;n>=0;n--){const i=t[n];if(i.children)return i.id}return rr}function gy(e,t,n,i){var l;const o=((l=e.options.params)==null?void 0:l.parse)??e.options.parseParams;if(o)if(e.options.skipRouteOnParseError)for(const u in t)u in n&&(i[u]=n[u]);else{const u=o(i);Object.assign(i,u)}}const rk="Error preloading route! ☝️";class Pw{constructor(t){if(this.init=n=>{var m,y;this.originalIndex=n.originalIndex;const i=this.options,o=!(i!=null&&i.path)&&!(i!=null&&i.id);this.parentRoute=(y=(m=this.options).getParentRoute)==null?void 0:y.call(m),o?this._path=rr:this.parentRoute||ps(!1);let l=o?rr:i==null?void 0:i.path;l&&l!=="/"&&(l=xw(l));const u=(i==null?void 0:i.id)||l;let c=o?rr:iu([this.parentRoute.id===rr?"":this.parentRoute.id,u]);l===rr&&(l="/"),c!==rr&&(c=iu(["/",c]));const h=c===rr?"/":iu([this.parentRoute.fullPath,l]);this._path=l,this._id=c,this._fullPath=h,this._to=ds(h)},this.addChildren=n=>this._addFileChildren(n),this._addFileChildren=n=>(Array.isArray(n)&&(this.children=n),typeof n=="object"&&n!==null&&(this.children=Object.values(n)),this),this._addFileTypes=()=>this,this.updateLoader=n=>(Object.assign(this.options,n),this),this.update=n=>(Object.assign(this.options,n),this),this.lazy=n=>(this.lazyFn=n,this),this.redirect=n=>$_({from:this.fullPath,...n}),this.options=t||{},this.isRoot=!(t!=null&&t.getParentRoute),t!=null&&t.id&&(t!=null&&t.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class sk extends Pw{constructor(t){super(t)}}const qc=typeof window<"u"?b.useLayoutEffect:b.useEffect;function nh(e){const t=b.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function ik(e,t,n={},i={}){b.useEffect(()=>{if(!e.current||i.disabled||typeof IntersectionObserver!="function")return;const o=new IntersectionObserver(([l])=>{t(l)},n);return o.observe(e.current),()=>{o.disconnect()}},[t,n,i.disabled,e])}function ok(e){const t=b.useRef(null);return b.useImperativeHandle(e,()=>t.current,[]),t}function Sp(e){const t=e.errorComponent??bp;return f.jsx(ak,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:i})=>n?b.createElement(t,{error:n,reset:i}):e.children})}class ak extends b.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(t){return{resetKey:t.getResetKey()}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidUpdate(t,n){n.error&&n.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(t,n){this.props.onCatch&&this.props.onCatch(t,n)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function bp({error:e}){const[t,n]=b.useState(!1);return f.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[f.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),f.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(i=>!i),children:t?"Hide Error":"Show Error"})]}),f.jsx("div",{style:{height:".25rem"}}),t?f.jsx("div",{children:f.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?f.jsx("code",{children:e.message}):null})}):null]})}function lk({children:e,fallback:t=null}){return Nw()?f.jsx(st.Fragment,{children:e}):f.jsx(st.Fragment,{children:t})}function Nw(){return st.useSyncExternalStore(ck,()=>!0,()=>!1)}function ck(){return()=>{}}var rh={exports:{}},sh={},ih={exports:{}},oh={};/**
|
|
41
|
-
* @license React
|
|
42
|
-
* use-sync-external-store-shim.production.js
|
|
43
|
-
*
|
|
44
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
45
|
-
*
|
|
46
|
-
* This source code is licensed under the MIT license found in the
|
|
47
|
-
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/var vy;function uk(){if(vy)return oh;vy=1;var e=ua();function t(v,x){return v===x&&(v!==0||1/v===1/x)||v!==v&&x!==x}var n=typeof Object.is=="function"?Object.is:t,i=e.useState,o=e.useEffect,l=e.useLayoutEffect,u=e.useDebugValue;function c(v,x){var w=x(),k=i({inst:{value:w,getSnapshot:x}}),S=k[0].inst,C=k[1];return l(function(){S.value=w,S.getSnapshot=x,h(S)&&C({inst:S})},[v,w,x]),o(function(){return h(S)&&C({inst:S}),v(function(){h(S)&&C({inst:S})})},[v]),u(w),w}function h(v){var x=v.getSnapshot;v=v.value;try{var w=x();return!n(v,w)}catch{return!0}}function m(v,x){return x()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:c;return oh.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:y,oh}var yy;function dk(){return yy||(yy=1,ih.exports=uk()),ih.exports}/**
|
|
49
|
-
* @license React
|
|
50
|
-
* use-sync-external-store-shim/with-selector.production.js
|
|
51
|
-
*
|
|
52
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the MIT license found in the
|
|
55
|
-
* LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/var xy;function fk(){if(xy)return sh;xy=1;var e=ua(),t=dk();function n(m,y){return m===y&&(m!==0||1/m===1/y)||m!==m&&y!==y}var i=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,l=e.useRef,u=e.useEffect,c=e.useMemo,h=e.useDebugValue;return sh.useSyncExternalStoreWithSelector=function(m,y,v,x,w){var k=l(null);if(k.current===null){var S={hasValue:!1,value:null};k.current=S}else S=k.current;k=c(function(){function P(T){if(!_){if(_=!0,E=T,T=x(T),w!==void 0&&S.hasValue){var A=S.value;if(w(A,T))return R=A}return R=T}if(A=R,i(E,T))return A;var z=x(T);return w!==void 0&&w(A,z)?(E=T,A):(E=T,R=z)}var _=!1,E,R,N=v===void 0?null:v;return[function(){return P(y())},N===null?void 0:function(){return P(N())}]},[y,v,x,w]);var C=o(m,k[0],k[1]);return u(function(){S.hasValue=!0,S.value=C},[C]),h(C),C},sh}var wy;function hk(){return wy||(wy=1,rh.exports=fk()),rh.exports}var pk=hk();function mk(e,t){return e===t}function gk(e,t,n=mk){const i=b.useCallback(u=>{if(!e)return()=>{};const{unsubscribe:c}=e.subscribe(u);return c},[e]),o=b.useCallback(()=>e==null?void 0:e.get(),[e]);return pk.useSyncExternalStoreWithSelector(i,o,o,t,n)}const ah=b.createContext(null);function Tw(){return typeof document>"u"?ah:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=ah,ah)}function Hn(e){const t=b.useContext(Tw());return e==null||e.warn,t}function ir(e){const t=Hn({warn:(e==null?void 0:e.router)===void 0}),n=(e==null?void 0:e.router)||t,i=b.useRef(void 0);return gk(n.__store,o=>{if(e!=null&&e.select){if(e.structuralSharing??n.options.defaultStructuralSharing){const l=Fn(i.current,e.select(o));return i.current=l,l}return e.select(o)}return o})}const Wu=b.createContext(void 0),vk=b.createContext(void 0);function $r(e){const t=b.useContext(e.from?vk:Wu);return ir({select:i=>{const o=i.matches.find(l=>e.from?e.from===l.routeId:l.id===t);if(ps(!((e.shouldThrow??!0)&&!o),`Could not find ${e.from?`an active match from "${e.from}"`:"a nearest match!"}`),o!==void 0)return e.select?e.select(o):o},structuralSharing:e.structuralSharing})}function Cp(e){return $r({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function _p(e){const{select:t,...n}=e;return $r({...n,select:i=>t?t(i.loaderDeps):i.loaderDeps})}function Hu(e){return $r({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function kp(e){return $r({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Ep(e){const t=Hn();return b.useCallback(n=>t.navigate({...n,from:n.from??(e==null?void 0:e.from)}),[e==null?void 0:e.from,t])}var fa=ew();const yk=zu(fa);function xk(e,t){const n=Hn(),i=ok(t),{activeProps:o,inactiveProps:l,activeOptions:u,to:c,preload:h,preloadDelay:m,hashScrollIntoView:y,replace:v,startTransition:x,resetScroll:w,viewTransition:k,children:S,target:C,disabled:P,style:_,className:E,onClick:R,onFocus:N,onMouseEnter:T,onMouseLeave:A,onTouchStart:z,ignoreBlocker:L,params:M,search:Q,hash:H,state:ee,mask:ne,reloadDocument:Y,unsafeRelative:Z,from:se,_fromLocation:B,...te}=e,q=Nw(),I=ir({select:re=>{const he=re.matches[re.matches.length-1];return{search:he==null?void 0:he.search,hash:re.location.hash,path:he==null?void 0:he.pathname}},structuralSharing:!0}),X=e.from,Re=b.useMemo(()=>({...e,from:X}),[n,I,X,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),me=b.useMemo(()=>n.buildLocation({...Re}),[n,Re]),Te=me.maskedLocation?me.maskedLocation.publicHref:me.publicHref,Se=me.maskedLocation?me.maskedLocation.external:me.external,ce=b.useMemo(()=>kk(Te,Se,n.history,P),[P,Se,Te,n.history]),ve=b.useMemo(()=>{if(ce!=null&&ce.external)return gu(ce.href,n.protocolAllowlist)?void 0:ce.href;if(!Ek(c)&&!(typeof c!="string"||c.indexOf(":")===-1))try{return new URL(c),gu(c,n.protocolAllowlist)?void 0:c}catch{}},[c,ce,n.protocolAllowlist]),Ae=ir({select:re=>{if(ve)return!1;if(u!=null&&u.exact){if(!__(re.location.pathname,me.pathname,n.basepath))return!1}else{const he=yu(re.location.pathname,n.basepath),Me=yu(me.pathname,n.basepath);if(!(he.startsWith(Me)&&(he.length===Me.length||he[Me.length]==="/")))return!1}return((u==null?void 0:u.includeSearch)??!0)&&!qi(re.location.search,me.search,{partial:!(u!=null&&u.exact),ignoreUndefined:!(u!=null&&u.explicitUndefined)})?!1:u!=null&&u.includeHash?q&&re.location.hash===me.hash:!0}}),Ne=Ae?ii(o,{})??wk:lh,Le=Ae?lh:ii(l,{})??lh,Ue=[E,Ne.className,Le.className].filter(Boolean).join(" "),ut=(_||Ne.style||Le.style)&&{..._,...Ne.style,...Le.style},[Mt,en]=b.useState(!1),Yt=b.useRef(!1),Dt=e.reloadDocument||ve?!1:h??n.options.defaultPreload,et=m??n.options.defaultPreloadDelay??0,Rt=b.useCallback(()=>{n.preloadRoute({...Re,_builtLocation:me}).catch(re=>{console.warn(re),console.warn(rk)})},[n,Re,me]),Nn=b.useCallback(re=>{re!=null&&re.isIntersecting&&Rt()},[Rt]);ik(i,Nn,_k,{disabled:!!P||Dt!=="viewport"}),b.useEffect(()=>{Yt.current||!P&&Dt==="render"&&(Rt(),Yt.current=!0)},[P,Rt,Dt]);const D=re=>{const he=re.currentTarget.getAttribute("target"),Me=C!==void 0?C:he;if(!P&&!jk(re)&&!re.defaultPrevented&&(!Me||Me==="_self")&&re.button===0){re.preventDefault(),fa.flushSync(()=>{en(!0)});const $e=n.subscribe("onResolved",()=>{$e(),en(!1)});n.navigate({...Re,replace:v,resetScroll:w,hashScrollIntoView:y,startTransition:x,viewTransition:k,ignoreBlocker:L})}};if(ve)return{...te,ref:i,href:ve,...S&&{children:S},...C&&{target:C},...P&&{disabled:P},..._&&{style:_},...E&&{className:E},...R&&{onClick:R},...N&&{onFocus:N},...T&&{onMouseEnter:T},...A&&{onMouseLeave:A},...z&&{onTouchStart:z}};const W=re=>{P||Dt&&Rt()},J=W,pe=re=>{if(!(P||!Dt))if(!et)Rt();else{const he=re.target;if(tl.has(he))return;const Me=setTimeout(()=>{tl.delete(he),Rt()},et);tl.set(he,Me)}},le=re=>{if(P||!Dt||!et)return;const he=re.target,Me=tl.get(he);Me&&(clearTimeout(Me),tl.delete(he))};return{...te,...Ne,...Le,href:ce==null?void 0:ce.href,ref:i,onClick:nl([R,D]),onFocus:nl([N,W]),onMouseEnter:nl([T,pe]),onMouseLeave:nl([A,le]),onTouchStart:nl([z,J]),disabled:!!P,target:C,...ut&&{style:ut},...Ue&&{className:Ue},...P&&Sk,...Ae&&bk,...q&&Mt&&Ck}}const lh={},wk={className:"active"},Sk={role:"link","aria-disabled":!0},bk={"data-status":"active","aria-current":"page"},Ck={"data-transitioning":"transitioning"},tl=new WeakMap,_k={rootMargin:"100px"},nl=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}};function kk(e,t,n,i){if(!i)return t?{href:e,external:!0}:{href:n.createHref(e)||"/",external:!1}}function Ek(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}const Aw=b.forwardRef((e,t)=>{const{_asChild:n,...i}=e,{type:o,...l}=xk(i,t),u=typeof i.children=="function"?i.children({isActive:l["data-status"]==="active"}):i.children;if(!n){const{disabled:c,...h}=l;return b.createElement("a",h,u)}return b.createElement(n,l,u)});function jk(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}class Rk extends Pw{constructor(t){super(t),this.useMatch=n=>$r({select:n==null?void 0:n.select,from:this.id,structuralSharing:n==null?void 0:n.structuralSharing}),this.useRouteContext=n=>$r({...n,from:this.id,select:i=>n!=null&&n.select?n.select(i.context):i.context}),this.useSearch=n=>kp({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useParams=n=>Hu({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useLoaderDeps=n=>_p({...n,from:this.id}),this.useLoaderData=n=>Cp({...n,from:this.id}),this.useNavigate=()=>Ep({from:this.fullPath}),this.Link=st.forwardRef((n,i)=>f.jsx(Aw,{ref:i,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}}function _r(e){return new Rk(e)}class Pk extends sk{constructor(t){super(t),this.useMatch=n=>$r({select:n==null?void 0:n.select,from:this.id,structuralSharing:n==null?void 0:n.structuralSharing}),this.useRouteContext=n=>$r({...n,from:this.id,select:i=>n!=null&&n.select?n.select(i.context):i.context}),this.useSearch=n=>kp({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useParams=n=>Hu({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useLoaderDeps=n=>_p({...n,from:this.id}),this.useLoaderData=n=>Cp({...n,from:this.id}),this.useNavigate=()=>Ep({from:this.fullPath}),this.Link=st.forwardRef((n,i)=>f.jsx(Aw,{ref:i,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}}function Nk(e){return new Pk(e)}function Sy(e){return typeof e=="object"?new by(e,{silent:!0}).createRoute(e):new by(e,{silent:!0}).createRoute}class by{constructor(t,n){this.path=t,this.createRoute=i=>{this.silent;const o=_r(i);return o.isRoot=!1,o},this.silent=n==null?void 0:n.silent}}class Cy{constructor(t){this.useMatch=n=>$r({select:n==null?void 0:n.select,from:this.options.id,structuralSharing:n==null?void 0:n.structuralSharing}),this.useRouteContext=n=>$r({from:this.options.id,select:i=>n!=null&&n.select?n.select(i.context):i.context}),this.useSearch=n=>kp({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.options.id}),this.useParams=n=>Hu({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.options.id}),this.useLoaderDeps=n=>_p({...n,from:this.options.id}),this.useLoaderData=n=>Cp({...n,from:this.options.id}),this.useNavigate=()=>{const n=Hn();return Ep({from:n.routesById[this.options.id].fullPath})},this.options=t,this.$$typeof=Symbol.for("react.memo")}}function _y(e){return typeof e=="object"?new Cy(e):t=>new Cy({id:e,...t})}function Tk(){const e=Hn(),t=b.useRef({router:e,mounted:!1}),[n,i]=b.useState(!1),{hasPendingMatches:o,isLoading:l}=ir({select:v=>({isLoading:v.isLoading,hasPendingMatches:v.matches.some(x=>x.status==="pending")}),structuralSharing:!0}),u=nh(l),c=l||n||o,h=nh(c),m=l||o,y=nh(m);return e.startTransition=v=>{i(!0),b.startTransition(()=>{v(),i(!1)})},b.useEffect(()=>{const v=e.history.subscribe(e.load),x=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return ds(e.latestLocation.publicHref)!==ds(x.publicHref)&&e.commitLocation({...x,replace:!0}),()=>{v()}},[e,e.history]),qc(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(x){console.error(x)}})()},[e]),qc(()=>{u&&!l&&e.emit({type:"onLoad",...Gi(e.state)})},[u,e,l]),qc(()=>{y&&!m&&e.emit({type:"onBeforeRouteMount",...Gi(e.state)})},[m,y,e]),qc(()=>{if(h&&!c){const v=Gi(e.state);e.emit({type:"onResolved",...v}),e.__store.setState(x=>({...x,status:"idle",resolvedLocation:x.location})),v.hrefChanged&&I_(e)}},[c,h,e]),null}function Ak(e){const t=ir({select:n=>`not-found-${n.location.pathname}-${n.status}`});return f.jsx(Sp,{getResetKey:()=>t,onCatch:(n,i)=>{var o;if(Vn(n))(o=e.onCatch)==null||o.call(e,n,i);else throw n},errorComponent:({error:n})=>{var i;if(Vn(n))return(i=e.fallback)==null?void 0:i.call(e,n);throw n},children:e.children})}function Ok(){return f.jsx("p",{children:"Not Found"})}function Fo(e){return f.jsx(f.Fragment,{children:e.children})}function Ow(e,t,n){return t.options.notFoundComponent?f.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?f.jsx(e.options.defaultNotFoundComponent,{...n}):f.jsx(Ok,{})}function Ik(){return Hn().isScrollRestoring,null}const Iw=b.memo(function({matchId:t}){var S,C;const n=Hn(),i=ir({select:P=>{var R;const _=P.matches.findIndex(N=>N.id===t),E=P.matches[_];return ps(E),{routeId:E.routeId,ssr:E.ssr,_displayPending:E._displayPending,resetKey:P.loadedAt,parentRouteId:(R=P.matches[_-1])==null?void 0:R.routeId}},structuralSharing:!0}),o=n.routesById[i.routeId],l=o.options.pendingComponent??n.options.defaultPendingComponent,u=l?f.jsx(l,{}):null,c=o.options.errorComponent??n.options.defaultErrorComponent,h=o.options.onCatch??n.options.defaultOnCatch,m=o.isRoot?o.options.notFoundComponent??((S=n.options.notFoundRoute)==null?void 0:S.options.component):o.options.notFoundComponent,y=i.ssr===!1||i.ssr==="data-only",v=(!o.isRoot||o.options.wrapInSuspense||y)&&(o.options.wrapInSuspense??l??(((C=o.options.errorComponent)==null?void 0:C.preload)||y))?b.Suspense:Fo,x=c?Sp:Fo,w=m?Ak:Fo,k=o.isRoot?o.options.shellComponent??Fo:Fo;return f.jsxs(k,{children:[f.jsx(Wu.Provider,{value:t,children:f.jsx(v,{fallback:u,children:f.jsx(x,{getResetKey:()=>i.resetKey,errorComponent:c||bp,onCatch:(P,_)=>{if(Vn(P))throw P;h==null||h(P,_)},children:f.jsx(w,{fallback:P=>{if(!m||P.routeId&&P.routeId!==i.routeId||!P.routeId&&!o.isRoot)throw P;return b.createElement(m,P)},children:y||i._displayPending?f.jsx(lk,{fallback:u,children:f.jsx(ky,{matchId:t})}):f.jsx(ky,{matchId:t})})})})}),i.parentRouteId===rr&&n.options.scrollRestoration?f.jsxs(f.Fragment,{children:[f.jsx(Mk,{}),f.jsx(Ik,{})]}):null]})});function Mk(){const e=Hn(),t=b.useRef(void 0);return f.jsx("script",{suppressHydrationWarning:!0,ref:n=>{n&&(t.current===void 0||t.current.href!==e.latestLocation.href)&&(e.emit({type:"onRendered",...Gi(e.state)}),t.current=e.latestLocation)}},e.latestLocation.state.__TSR_key)}const ky=b.memo(function({matchId:t}){var h,m,y,v;const n=Hn(),{match:i,key:o,routeId:l}=ir({select:x=>{const w=x.matches.find(_=>_.id===t),k=w.routeId,S=n.routesById[k].options.remountDeps??n.options.defaultRemountDeps,C=S==null?void 0:S({routeId:k,loaderDeps:w.loaderDeps,params:w._strictParams,search:w._strictSearch});return{key:C?JSON.stringify(C):void 0,routeId:k,match:{id:w.id,status:w.status,error:w.error,invalid:w.invalid,_forcePending:w._forcePending,_displayPending:w._displayPending}}},structuralSharing:!0}),u=n.routesById[l],c=b.useMemo(()=>{const x=u.options.component??n.options.defaultComponent;return x?f.jsx(x,{},o):f.jsx(Mw,{})},[o,u.options.component,n.options.defaultComponent]);if(i._displayPending)throw(h=n.getMatch(i.id))==null?void 0:h._nonReactive.displayPendingPromise;if(i._forcePending)throw(m=n.getMatch(i.id))==null?void 0:m._nonReactive.minPendingPromise;if(i.status==="pending"){const x=u.options.pendingMinMs??n.options.defaultPendingMinMs;if(x){const w=n.getMatch(i.id);if(w&&!w._nonReactive.minPendingPromise){const k=ra();w._nonReactive.minPendingPromise=k,setTimeout(()=>{k.resolve(),w._nonReactive.minPendingPromise=void 0},x)}}throw(y=n.getMatch(i.id))==null?void 0:y._nonReactive.loadPromise}if(i.status==="notFound")return ps(Vn(i.error)),Ow(n,u,i.error);if(i.status==="redirected")throw ps(sr(i.error)),(v=n.getMatch(i.id))==null?void 0:v._nonReactive.loadPromise;if(i.status==="error")throw i.error;return c}),Mw=b.memo(function(){const t=Hn(),n=b.useContext(Wu),i=ir({select:m=>{var y;return(y=m.matches.find(v=>v.id===n))==null?void 0:y.routeId}}),o=t.routesById[i],l=ir({select:m=>{const v=m.matches.find(x=>x.id===n);return ps(v),v.globalNotFound}}),u=ir({select:m=>{var x;const y=m.matches,v=y.findIndex(w=>w.id===n);return(x=y[v+1])==null?void 0:x.id}}),c=t.options.defaultPendingComponent?f.jsx(t.options.defaultPendingComponent,{}):null;if(l)return Ow(t,o,void 0);if(!u)return null;const h=f.jsx(Iw,{matchId:u});return i===rr?f.jsx(b.Suspense,{fallback:c,children:h}):h});function Lk(){const e=Hn(),n=e.routesById[rr].options.pendingComponent??e.options.defaultPendingComponent,i=n?f.jsx(n,{}):null,o=typeof document<"u"&&e.ssr?Fo:b.Suspense,l=f.jsxs(o,{fallback:i,children:[f.jsx(Tk,{}),f.jsx(Fk,{})]});return e.options.InnerWrap?f.jsx(e.options.InnerWrap,{children:l}):l}function Fk(){const e=Hn(),t=ir({select:o=>{var l;return(l=o.matches[0])==null?void 0:l.id}}),n=ir({select:o=>o.loadedAt}),i=t?f.jsx(Iw,{matchId:t}):null;return f.jsx(Wu.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?i:f.jsx(Sp,{getResetKey:()=>n,errorComponent:bp,onCatch:o=>{o.message||o.toString()},children:i})})}const Dk=e=>new zk(e);class zk extends G_{constructor(t){super(t)}}typeof globalThis<"u"?(globalThis.createFileRoute=Sy,globalThis.createLazyFileRoute=_y):typeof window<"u"&&(window.createFileRoute=Sy,window.createLazyFileRoute=_y);function Vk({router:e,children:t,...n}){Object.keys(n).length>0&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const i=Tw(),o=f.jsx(i.Provider,{value:e,children:t});return e.options.Wrap?f.jsx(e.options.Wrap,{children:o}):o}function $k({router:e,...t}){return f.jsx(Vk,{router:e,...t,children:f.jsx(Lk,{})})}/**
|
|
57
|
-
* @license lucide-react v0.460.0 - ISC
|
|
58
|
-
*
|
|
59
|
-
* This source code is licensed under the ISC license.
|
|
60
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
-
*/const Bk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Lw=(...e)=>e.filter((t,n,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===n).join(" ").trim();/**
|
|
62
|
-
* @license lucide-react v0.460.0 - ISC
|
|
63
|
-
*
|
|
64
|
-
* This source code is licensed under the ISC license.
|
|
65
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
-
*/var Uk={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"};/**
|
|
67
|
-
* @license lucide-react v0.460.0 - ISC
|
|
68
|
-
*
|
|
69
|
-
* This source code is licensed under the ISC license.
|
|
70
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
-
*/const Wk=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:o="",children:l,iconNode:u,...c},h)=>b.createElement("svg",{ref:h,...Uk,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:Lw("lucide",o),...c},[...u.map(([m,y])=>b.createElement(m,y)),...Array.isArray(l)?l:[l]]));/**
|
|
72
|
-
* @license lucide-react v0.460.0 - ISC
|
|
73
|
-
*
|
|
74
|
-
* This source code is licensed under the ISC license.
|
|
75
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/const Ye=(e,t)=>{const n=b.forwardRef(({className:i,...o},l)=>b.createElement(Wk,{ref:l,iconNode:t,className:Lw(`lucide-${Bk(e)}`,i),...o}));return n.displayName=`${e}`,n};/**
|
|
77
|
-
* @license lucide-react v0.460.0 - ISC
|
|
78
|
-
*
|
|
79
|
-
* This source code is licensed under the ISC license.
|
|
80
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
-
*/const Hk=Ye("ArrowDownToLine",[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]]);/**
|
|
82
|
-
* @license lucide-react v0.460.0 - ISC
|
|
83
|
-
*
|
|
84
|
-
* This source code is licensed under the ISC license.
|
|
85
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/const Kk=Ye("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/**
|
|
87
|
-
* @license lucide-react v0.460.0 - ISC
|
|
88
|
-
*
|
|
89
|
-
* This source code is licensed under the ISC license.
|
|
90
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
-
*/const jp=Ye("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
|
92
|
-
* @license lucide-react v0.460.0 - ISC
|
|
93
|
-
*
|
|
94
|
-
* This source code is licensed under the ISC license.
|
|
95
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
-
*/const Qk=Ye("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
|
|
97
|
-
* @license lucide-react v0.460.0 - ISC
|
|
98
|
-
*
|
|
99
|
-
* This source code is licensed under the ISC license.
|
|
100
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
-
*/const Zk=Ye("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
102
|
-
* @license lucide-react v0.460.0 - ISC
|
|
103
|
-
*
|
|
104
|
-
* This source code is licensed under the ISC license.
|
|
105
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
-
*/const Fw=Ye("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
107
|
-
* @license lucide-react v0.460.0 - ISC
|
|
108
|
-
*
|
|
109
|
-
* This source code is licensed under the ISC license.
|
|
110
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
-
*/const qk=Ye("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
112
|
-
* @license lucide-react v0.460.0 - ISC
|
|
113
|
-
*
|
|
114
|
-
* This source code is licensed under the ISC license.
|
|
115
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
-
*/const Rp=Ye("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
117
|
-
* @license lucide-react v0.460.0 - ISC
|
|
118
|
-
*
|
|
119
|
-
* This source code is licensed under the ISC license.
|
|
120
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
-
*/const Tl=Ye("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
122
|
-
* @license lucide-react v0.460.0 - ISC
|
|
123
|
-
*
|
|
124
|
-
* This source code is licensed under the ISC license.
|
|
125
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
-
*/const Dw=Ye("CircleStop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]]);/**
|
|
127
|
-
* @license lucide-react v0.460.0 - ISC
|
|
128
|
-
*
|
|
129
|
-
* This source code is licensed under the ISC license.
|
|
130
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
-
*/const Al=Ye("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
132
|
-
* @license lucide-react v0.460.0 - ISC
|
|
133
|
-
*
|
|
134
|
-
* This source code is licensed under the ISC license.
|
|
135
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
-
*/const Su=Ye("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
137
|
-
* @license lucide-react v0.460.0 - ISC
|
|
138
|
-
*
|
|
139
|
-
* This source code is licensed under the ISC license.
|
|
140
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
-
*/const Gk=Ye("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/**
|
|
142
|
-
* @license lucide-react v0.460.0 - ISC
|
|
143
|
-
*
|
|
144
|
-
* This source code is licensed under the ISC license.
|
|
145
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
-
*/const Yk=Ye("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
147
|
-
* @license lucide-react v0.460.0 - ISC
|
|
148
|
-
*
|
|
149
|
-
* This source code is licensed under the ISC license.
|
|
150
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
-
*/const zw=Ye("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
|
|
152
|
-
* @license lucide-react v0.460.0 - ISC
|
|
153
|
-
*
|
|
154
|
-
* This source code is licensed under the ISC license.
|
|
155
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
-
*/const Vw=Ye("FileOutput",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4 7V4a2 2 0 0 1 2-2 2 2 0 0 0-2 2",key:"1vk7w2"}],["path",{d:"M4.063 20.999a2 2 0 0 0 2 1L18 22a2 2 0 0 0 2-2V7l-5-5H6",key:"1jink5"}],["path",{d:"m5 11-3 3",key:"1dgrs4"}],["path",{d:"m5 17-3-3h10",key:"1mvvaf"}]]);/**
|
|
157
|
-
* @license lucide-react v0.460.0 - ISC
|
|
158
|
-
*
|
|
159
|
-
* This source code is licensed under the ISC license.
|
|
160
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
-
*/const $w=Ye("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|
162
|
-
* @license lucide-react v0.460.0 - ISC
|
|
163
|
-
*
|
|
164
|
-
* This source code is licensed under the ISC license.
|
|
165
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
-
*/const Xk=Ye("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
|
|
167
|
-
* @license lucide-react v0.460.0 - ISC
|
|
168
|
-
*
|
|
169
|
-
* This source code is licensed under the ISC license.
|
|
170
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
-
*/const fi=Ye("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
172
|
-
* @license lucide-react v0.460.0 - ISC
|
|
173
|
-
*
|
|
174
|
-
* This source code is licensed under the ISC license.
|
|
175
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
-
*/const Jk=Ye("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
177
|
-
* @license lucide-react v0.460.0 - ISC
|
|
178
|
-
*
|
|
179
|
-
* This source code is licensed under the ISC license.
|
|
180
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
-
*/const to=Ye("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
182
|
-
* @license lucide-react v0.460.0 - ISC
|
|
183
|
-
*
|
|
184
|
-
* This source code is licensed under the ISC license.
|
|
185
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
-
*/const Bw=Ye("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/**
|
|
187
|
-
* @license lucide-react v0.460.0 - ISC
|
|
188
|
-
*
|
|
189
|
-
* This source code is licensed under the ISC license.
|
|
190
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
-
*/const Uw=Ye("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
192
|
-
* @license lucide-react v0.460.0 - ISC
|
|
193
|
-
*
|
|
194
|
-
* This source code is licensed under the ISC license.
|
|
195
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
-
*/const eE=Ye("RectangleEllipsis",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M17 12h.01",key:"1m0b6t"}],["path",{d:"M7 12h.01",key:"eqddd0"}]]);/**
|
|
197
|
-
* @license lucide-react v0.460.0 - ISC
|
|
198
|
-
*
|
|
199
|
-
* This source code is licensed under the ISC license.
|
|
200
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
-
*/const tE=Ye("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
202
|
-
* @license lucide-react v0.460.0 - ISC
|
|
203
|
-
*
|
|
204
|
-
* This source code is licensed under the ISC license.
|
|
205
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
-
*/const Ww=Ye("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
|
|
207
|
-
* @license lucide-react v0.460.0 - ISC
|
|
208
|
-
*
|
|
209
|
-
* This source code is licensed under the ISC license.
|
|
210
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
-
*/const Hw=Ye("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
|
|
212
|
-
* @license lucide-react v0.460.0 - ISC
|
|
213
|
-
*
|
|
214
|
-
* This source code is licensed under the ISC license.
|
|
215
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
-
*/const nE=Ye("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);/**
|
|
217
|
-
* @license lucide-react v0.460.0 - ISC
|
|
218
|
-
*
|
|
219
|
-
* This source code is licensed under the ISC license.
|
|
220
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
-
*/const Kw=Ye("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
|
|
222
|
-
* @license lucide-react v0.460.0 - ISC
|
|
223
|
-
*
|
|
224
|
-
* This source code is licensed under the ISC license.
|
|
225
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
226
|
-
*/const rE=Ye("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
227
|
-
* @license lucide-react v0.460.0 - ISC
|
|
228
|
-
*
|
|
229
|
-
* This source code is licensed under the ISC license.
|
|
230
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
231
|
-
*/const Qw=Ye("Timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]);/**
|
|
232
|
-
* @license lucide-react v0.460.0 - ISC
|
|
233
|
-
*
|
|
234
|
-
* This source code is licensed under the ISC license.
|
|
235
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
236
|
-
*/const Ol=Ye("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"}]]);/**
|
|
237
|
-
* @license lucide-react v0.460.0 - ISC
|
|
238
|
-
*
|
|
239
|
-
* This source code is licensed under the ISC license.
|
|
240
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
241
|
-
*/const sE=Ye("Unplug",[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]]);/**
|
|
242
|
-
* @license lucide-react v0.460.0 - ISC
|
|
243
|
-
*
|
|
244
|
-
* This source code is licensed under the ISC license.
|
|
245
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
246
|
-
*/const iE=Ye("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
|
|
247
|
-
* @license lucide-react v0.460.0 - ISC
|
|
248
|
-
*
|
|
249
|
-
* This source code is licensed under the ISC license.
|
|
250
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
251
|
-
*/const oE=Ye("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Zw(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Zw(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function qw(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Zw(e))&&(i&&(i+=" "),i+=t);return i}const Pp="-",aE=e=>{const t=cE(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:u=>{const c=u.split(Pp);return c[0]===""&&c.length!==1&&c.shift(),Gw(c,t)||lE(u)},getConflictingClassGroupIds:(u,c)=>{const h=n[u]||[];return c&&i[u]?[...h,...i[u]]:h}}},Gw=(e,t)=>{var u;if(e.length===0)return t.classGroupId;const n=e[0],i=t.nextPart.get(n),o=i?Gw(e.slice(1),i):void 0;if(o)return o;if(t.validators.length===0)return;const l=e.join(Pp);return(u=t.validators.find(({validator:c})=>c(l)))==null?void 0:u.classGroupId},Ey=/^\[(.+)\]$/,lE=e=>{if(Ey.test(e)){const t=Ey.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},cE=e=>{const{theme:t,prefix:n}=e,i={nextPart:new Map,validators:[]};return dE(Object.entries(e.classGroups),n).forEach(([l,u])=>{Bh(u,i,l,t)}),i},Bh=(e,t,n,i)=>{e.forEach(o=>{if(typeof o=="string"){const l=o===""?t:jy(t,o);l.classGroupId=n;return}if(typeof o=="function"){if(uE(o)){Bh(o(i),t,n,i);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([l,u])=>{Bh(u,jy(t,l),n,i)})})},jy=(e,t)=>{let n=e;return t.split(Pp).forEach(i=>{n.nextPart.has(i)||n.nextPart.set(i,{nextPart:new Map,validators:[]}),n=n.nextPart.get(i)}),n},uE=e=>e.isThemeGetter,dE=(e,t)=>t?e.map(([n,i])=>{const o=i.map(l=>typeof l=="string"?t+l:typeof l=="object"?Object.fromEntries(Object.entries(l).map(([u,c])=>[t+u,c])):l);return[n,o]}):e,fE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,i=new Map;const o=(l,u)=>{n.set(l,u),t++,t>e&&(t=0,i=n,n=new Map)};return{get(l){let u=n.get(l);if(u!==void 0)return u;if((u=i.get(l))!==void 0)return o(l,u),u},set(l,u){n.has(l)?n.set(l,u):o(l,u)}}},Yw="!",hE=e=>{const{separator:t,experimentalParseClassName:n}=e,i=t.length===1,o=t[0],l=t.length,u=c=>{const h=[];let m=0,y=0,v;for(let C=0;C<c.length;C++){let P=c[C];if(m===0){if(P===o&&(i||c.slice(C,C+l)===t)){h.push(c.slice(y,C)),y=C+l;continue}if(P==="/"){v=C;continue}}P==="["?m++:P==="]"&&m--}const x=h.length===0?c:c.substring(y),w=x.startsWith(Yw),k=w?x.substring(1):x,S=v&&v>y?v-y:void 0;return{modifiers:h,hasImportantModifier:w,baseClassName:k,maybePostfixModifierPosition:S}};return n?c=>n({className:c,parseClassName:u}):u},pE=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(i=>{i[0]==="["?(t.push(...n.sort(),i),n=[]):n.push(i)}),t.push(...n.sort()),t},mE=e=>({cache:fE(e.cacheSize),parseClassName:hE(e),...aE(e)}),gE=/\s+/,vE=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:o}=t,l=[],u=e.trim().split(gE);let c="";for(let h=u.length-1;h>=0;h-=1){const m=u[h],{modifiers:y,hasImportantModifier:v,baseClassName:x,maybePostfixModifierPosition:w}=n(m);let k=!!w,S=i(k?x.substring(0,w):x);if(!S){if(!k){c=m+(c.length>0?" "+c:c);continue}if(S=i(x),!S){c=m+(c.length>0?" "+c:c);continue}k=!1}const C=pE(y).join(":"),P=v?C+Yw:C,_=P+S;if(l.includes(_))continue;l.push(_);const E=o(S,k);for(let R=0;R<E.length;++R){const N=E[R];l.push(P+N)}c=m+(c.length>0?" "+c:c)}return c};function yE(){let e=0,t,n,i="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Xw(t))&&(i&&(i+=" "),i+=n);return i}const Xw=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=Xw(e[i]))&&(n&&(n+=" "),n+=t);return n};function xE(e,...t){let n,i,o,l=u;function u(h){const m=t.reduce((y,v)=>v(y),e());return n=mE(m),i=n.cache.get,o=n.cache.set,l=c,c(h)}function c(h){const m=i(h);if(m)return m;const y=vE(h,n);return o(h,y),y}return function(){return l(yE.apply(null,arguments))}}const St=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Jw=/^\[(?:([a-z-]+):)?(.+)\]$/i,wE=/^\d+\/\d+$/,SE=new Set(["px","full","screen"]),bE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,CE=/\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$/,_E=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,kE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,EE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ts=e=>Bo(e)||SE.has(e)||wE.test(e),Bs=e=>ha(e,"length",IE),Bo=e=>!!e&&!Number.isNaN(Number(e)),ch=e=>ha(e,"number",Bo),rl=e=>!!e&&Number.isInteger(Number(e)),jE=e=>e.endsWith("%")&&Bo(e.slice(0,-1)),We=e=>Jw.test(e),Us=e=>bE.test(e),RE=new Set(["length","size","percentage"]),PE=e=>ha(e,RE,e0),NE=e=>ha(e,"position",e0),TE=new Set(["image","url"]),AE=e=>ha(e,TE,LE),OE=e=>ha(e,"",ME),sl=()=>!0,ha=(e,t,n)=>{const i=Jw.exec(e);return i?i[1]?typeof t=="string"?i[1]===t:t.has(i[1]):n(i[2]):!1},IE=e=>CE.test(e)&&!_E.test(e),e0=()=>!1,ME=e=>kE.test(e),LE=e=>EE.test(e),FE=()=>{const e=St("colors"),t=St("spacing"),n=St("blur"),i=St("brightness"),o=St("borderColor"),l=St("borderRadius"),u=St("borderSpacing"),c=St("borderWidth"),h=St("contrast"),m=St("grayscale"),y=St("hueRotate"),v=St("invert"),x=St("gap"),w=St("gradientColorStops"),k=St("gradientColorStopPositions"),S=St("inset"),C=St("margin"),P=St("opacity"),_=St("padding"),E=St("saturate"),R=St("scale"),N=St("sepia"),T=St("skew"),A=St("space"),z=St("translate"),L=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],Q=()=>["auto",We,t],H=()=>[We,t],ee=()=>["",ts,Bs],ne=()=>["auto",Bo,We],Y=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Z=()=>["solid","dashed","dotted","double","none"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],B=()=>["start","end","center","between","around","evenly","stretch"],te=()=>["","0",We],q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>[Bo,We];return{cacheSize:500,separator:":",theme:{colors:[sl],spacing:[ts,Bs],blur:["none","",Us,We],brightness:I(),borderColor:[e],borderRadius:["none","","full",Us,We],borderSpacing:H(),borderWidth:ee(),contrast:I(),grayscale:te(),hueRotate:I(),invert:te(),gap:H(),gradientColorStops:[e],gradientColorStopPositions:[jE,Bs],inset:Q(),margin:Q(),opacity:I(),padding:H(),saturate:I(),scale:I(),sepia:te(),skew:I(),space:H(),translate:H()},classGroups:{aspect:[{aspect:["auto","square","video",We]}],container:["container"],columns:[{columns:[Us]}],"break-after":[{"break-after":q()}],"break-before":[{"break-before":q()}],"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:[...Y(),We]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-y":[{"inset-y":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",rl,We]}],basis:[{basis:Q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",We]}],grow:[{grow:te()}],shrink:[{shrink:te()}],order:[{order:["first","last","none",rl,We]}],"grid-cols":[{"grid-cols":[sl]}],"col-start-end":[{col:["auto",{span:["full",rl,We]},We]}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":[sl]}],"row-start-end":[{row:["auto",{span:[rl,We]},We]}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",We]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",We]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...B()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...B(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...B(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[_]}],px:[{px:[_]}],py:[{py:[_]}],ps:[{ps:[_]}],pe:[{pe:[_]}],pt:[{pt:[_]}],pr:[{pr:[_]}],pb:[{pb:[_]}],pl:[{pl:[_]}],m:[{m:[C]}],mx:[{mx:[C]}],my:[{my:[C]}],ms:[{ms:[C]}],me:[{me:[C]}],mt:[{mt:[C]}],mr:[{mr:[C]}],mb:[{mb:[C]}],ml:[{ml:[C]}],"space-x":[{"space-x":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",We,t]}],"min-w":[{"min-w":[We,t,"min","max","fit"]}],"max-w":[{"max-w":[We,t,"none","full","min","max","fit","prose",{screen:[Us]},Us]}],h:[{h:[We,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[We,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[We,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[We,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Us,Bs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ch]}],"font-family":[{font:[sl]}],"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",We]}],"line-clamp":[{"line-clamp":["none",Bo,ch]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ts,We]}],"list-image":[{"list-image":["none",We]}],"list-style-type":[{list:["none","disc","decimal",We]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ts,Bs]}],"underline-offset":[{"underline-offset":["auto",ts,We]}],"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:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",We]}],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",We]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Y(),NE]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",PE]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},AE]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...Z(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:Z()}],"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:["",...Z()]}],"outline-offset":[{"outline-offset":[ts,We]}],"outline-w":[{outline:[ts,Bs]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[ts,Bs]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Us,OE]}],"shadow-color":[{shadow:[sl]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...se(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":se()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[i]}],contrast:[{contrast:[h]}],"drop-shadow":[{"drop-shadow":["","none",Us,We]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[v]}],saturate:[{saturate:[E]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[h]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[u]}],"border-spacing-x":[{"border-spacing-x":[u]}],"border-spacing-y":[{"border-spacing-y":[u]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",We]}],duration:[{duration:I()}],ease:[{ease:["linear","in","out","in-out",We]}],delay:[{delay:I()}],animate:[{animate:["none","spin","ping","pulse","bounce",We]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[R]}],"scale-x":[{"scale-x":[R]}],"scale-y":[{"scale-y":[R]}],rotate:[{rotate:[rl,We]}],"translate-x":[{"translate-x":[z]}],"translate-y":[{"translate-y":[z]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",We]}],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",We]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",We]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ts,Bs,ch]}],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"]}}},DE=xE(FE);function ht(...e){return DE(qw(e))}const Ry=e=>{let t;const n=new Set,i=(m,y)=>{const v=typeof m=="function"?m(t):m;if(!Object.is(v,t)){const x=t;t=y??(typeof v!="object"||v===null)?v:Object.assign({},t,v),n.forEach(w=>w(t,x))}},o=()=>t,c={setState:i,getState:o,getInitialState:()=>h,subscribe:m=>(n.add(m),()=>n.delete(m))},h=t=e(i,o,c);return c},zE=(e=>e?Ry(e):Ry),VE=e=>e;function $E(e,t=VE){const n=st.useSyncExternalStore(e.subscribe,st.useCallback(()=>t(e.getState()),[e,t]),st.useCallback(()=>t(e.getInitialState()),[e,t]));return st.useDebugValue(n),n}const Py=e=>{const t=zE(e),n=i=>$E(t,i);return Object.assign(n,t),n},BE=(e=>e?Py(e):Py);function Ny(e){e?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")}const Uh=BE(e=>({sidebarCollapsed:!1,darkMode:!1,toggleSidebar:()=>e(t=>({sidebarCollapsed:!t.sidebarCollapsed})),toggleDarkMode:()=>e(t=>{const n=!t.darkMode;return Ny(n),localStorage.setItem("mcpspec-theme",n?"dark":"light"),{darkMode:n}}),initTheme:()=>{const t=localStorage.getItem("mcpspec-theme");let n;t?n=t==="dark":n=window.matchMedia("(prefers-color-scheme: dark)").matches,Ny(n),e({darkMode:n})}})),UE=[{href:"/",label:"Dashboard",icon:Xk},{href:"/servers",label:"Servers",icon:Ww},{href:"/collections",label:"Collections",icon:$w},{href:"/runs",label:"Runs",icon:to},{href:"/inspect",label:"Inspect",icon:tE},{href:"/audit",label:"Audit",icon:Hw},{href:"/benchmark",label:"Benchmark",icon:Qw},{href:"/docs",label:"Docs",icon:Vw},{href:"/score",label:"Score",icon:Kw}];function WE({currentPath:e,onNavigate:t}){const n=Uh(o=>o.darkMode),i=Uh(o=>o.toggleDarkMode);return f.jsxs("aside",{className:"flex h-full w-56 flex-col border-r bg-card",children:[f.jsx("div",{className:"flex h-14 items-center border-b px-4",children:f.jsx("h1",{className:"text-lg font-bold text-primary",children:"MCPSpec"})}),f.jsx("nav",{className:"flex-1 space-y-1 p-2",children:UE.map(o=>{const l=e===o.href||o.href!=="/"&&e.startsWith(o.href);return f.jsxs("button",{onClick:()=>t(o.href),className:ht("flex w-full items-center gap-3 rounded-md px-3 py-2 text-sm font-medium transition-colors",l?"bg-primary/10 text-primary":"text-muted-foreground hover:bg-muted hover:text-foreground"),children:[f.jsx(o.icon,{className:"h-4 w-4"}),o.label]},o.href)})}),f.jsxs("div",{className:"border-t p-4",children:[f.jsxs("button",{onClick:i,className:"flex w-full items-center gap-3 rounded-md px-3 py-2 text-sm font-medium text-muted-foreground hover:bg-muted hover:text-foreground transition-colors",children:[n?f.jsx(rE,{className:"h-4 w-4"}):f.jsx(Jk,{className:"h-4 w-4"}),n?"Light Mode":"Dark Mode"]}),f.jsx("div",{className:"mt-2 px-3 text-xs text-muted-foreground",children:"v1.0.0"})]})]})}function HE({children:e,currentPath:t,onNavigate:n}){return f.jsxs("div",{className:"flex h-screen",children:[f.jsx(WE,{currentPath:t,onNavigate:n}),f.jsx("main",{className:"flex-1 overflow-auto p-6",children:e})]})}const at=b.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,className:ht("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));at.displayName="Card";const At=b.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,className:ht("flex flex-col space-y-1.5 p-6",e),...t}));At.displayName="CardHeader";const Ot=b.forwardRef(({className:e,...t},n)=>f.jsx("h3",{ref:n,className:ht("text-2xl font-semibold leading-none tracking-tight",e),...t}));Ot.displayName="CardTitle";const KE=b.forwardRef(({className:e,...t},n)=>f.jsx("p",{ref:n,className:ht("text-sm text-muted-foreground",e),...t}));KE.displayName="CardDescription";const lt=b.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,className:ht("p-6 pt-0",e),...t}));lt.displayName="CardContent";function Ty(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Np(...e){return t=>{let n=!1;const i=e.map(o=>{const l=Ty(o,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let o=0;o<i.length;o++){const l=i[o];typeof l=="function"?l():Ty(e[o],null)}}}}function It(...e){return b.useCallback(Np(...e),e)}var QE=Symbol.for("react.lazy"),bu=up[" use ".trim().toString()];function ZE(e){return typeof e=="object"&&e!==null&&"then"in e}function t0(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===QE&&"_payload"in e&&ZE(e._payload)}function qE(e){const t=YE(e),n=b.forwardRef((i,o)=>{let{children:l,...u}=i;t0(l)&&typeof bu=="function"&&(l=bu(l._payload));const c=b.Children.toArray(l),h=c.find(JE);if(h){const m=h.props.children,y=c.map(v=>v===h?b.Children.count(m)>1?b.Children.only(null):b.isValidElement(m)?m.props.children:null:v);return f.jsx(t,{...u,ref:o,children:b.isValidElement(m)?b.cloneElement(m,void 0,y):null})}return f.jsx(t,{...u,ref:o,children:l})});return n.displayName=`${e}.Slot`,n}var GE=qE("Slot");function YE(e){const t=b.forwardRef((n,i)=>{let{children:o,...l}=n;if(t0(o)&&typeof bu=="function"&&(o=bu(o._payload)),b.isValidElement(o)){const u=tj(o),c=ej(l,o.props);return o.type!==b.Fragment&&(c.ref=i?Np(i,u):u),b.cloneElement(o,c)}return b.Children.count(o)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var XE=Symbol("radix.slottable");function JE(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===XE}function ej(e,t){const n={...t};for(const i in t){const o=e[i],l=t[i];/^on[A-Z]/.test(i)?o&&l?n[i]=(...c)=>{const h=l(...c);return o(...c),h}:o&&(n[i]=o):i==="style"?n[i]={...o,...l}:i==="className"&&(n[i]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}function tj(e){var i,o;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.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)}const Ay=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Oy=qw,n0=(e,t)=>n=>{var i;if((t==null?void 0:t.variants)==null)return Oy(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:l}=t,u=Object.keys(o).map(m=>{const y=n==null?void 0:n[m],v=l==null?void 0:l[m];if(y===null)return null;const x=Ay(y)||Ay(v);return o[m][x]}),c=n&&Object.entries(n).reduce((m,y)=>{let[v,x]=y;return x===void 0||(m[v]=x),m},{}),h=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((m,y)=>{let{class:v,className:x,...w}=y;return Object.entries(w).every(k=>{let[S,C]=k;return Array.isArray(C)?C.includes({...l,...c}[S]):{...l,...c}[S]===C})?[...m,v,x]:m},[]);return Oy(e,u,h,n==null?void 0:n.class,n==null?void 0:n.className)},nj=n0("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Qe=b.forwardRef(({className:e,variant:t,size:n,asChild:i=!1,...o},l)=>{const u=i?GE:"button";return f.jsx(u,{className:ht(nj({variant:t,size:n,className:e})),ref:l,...o})});Qe.displayName="Button";const rj=n0("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground",outline:"text-foreground",success:"border-transparent bg-green-100 text-green-800",warning:"border-transparent bg-yellow-100 text-yellow-800"}},defaultVariants:{variant:"default"}});function mt({className:e,variant:t,...n}){return f.jsx("div",{className:ht(rj({variant:t}),e),...n})}const sj="/api";async function Xe(e,t){const n=await fetch(`${sj}${e}`,{...t,headers:{"Content-Type":"application/json",...t==null?void 0:t.headers}});if(!n.ok){const i=await n.json().catch(()=>({message:n.statusText}));throw new Error(i.message??`Request failed: ${n.status}`)}return n.json()}const ct={servers:{list:()=>Xe("/servers"),get:e=>Xe(`/servers/${e}`),create:e=>Xe("/servers",{method:"POST",body:JSON.stringify(e)}),update:(e,t)=>Xe(`/servers/${e}`,{method:"PUT",body:JSON.stringify(t)}),delete:e=>Xe(`/servers/${e}`,{method:"DELETE"}),test:e=>Xe(`/servers/${e}/test`,{method:"POST"})},collections:{list:()=>Xe("/collections"),get:e=>Xe(`/collections/${e}`),create:e=>Xe("/collections",{method:"POST",body:JSON.stringify(e)}),update:(e,t)=>Xe(`/collections/${e}`,{method:"PUT",body:JSON.stringify(t)}),delete:e=>Xe(`/collections/${e}`,{method:"DELETE"}),validate:e=>Xe(`/collections/${e}/validate`,{method:"POST"})},runs:{list:e=>Xe(`/runs${e?`?limit=${e}`:""}`),get:e=>Xe(`/runs/${e}`),trigger:e=>Xe("/runs",{method:"POST",body:JSON.stringify(e)}),delete:e=>Xe(`/runs/${e}`,{method:"DELETE"})},inspect:{connect:e=>Xe("/inspect/connect",{method:"POST",body:JSON.stringify(e)}),tools:e=>Xe("/inspect/tools",{method:"POST",body:JSON.stringify({sessionId:e})}),call:(e,t,n)=>Xe("/inspect/call",{method:"POST",body:JSON.stringify({sessionId:e,tool:t,input:n})}),resources:e=>Xe("/inspect/resources",{method:"POST",body:JSON.stringify({sessionId:e})}),messages:(e,t)=>Xe("/inspect/messages",{method:"POST",body:JSON.stringify({sessionId:e,after:t})}),disconnect:e=>Xe("/inspect/disconnect",{method:"POST",body:JSON.stringify({sessionId:e})})},audit:{start:e=>Xe("/audit/start",{method:"POST",body:JSON.stringify(e)}),status:e=>Xe(`/audit/status/${e}`),result:e=>Xe(`/audit/result/${e}`),stop:e=>Xe(`/audit/stop/${e}`,{method:"POST"})},benchmark:{start:e=>Xe("/benchmark/start",{method:"POST",body:JSON.stringify(e)}),status:e=>Xe(`/benchmark/status/${e}`),result:e=>Xe(`/benchmark/result/${e}`),tools:e=>Xe(`/benchmark/tools/${e}`),stop:e=>Xe(`/benchmark/stop/${e}`,{method:"POST"})},docs:{generate:e=>Xe("/docs/generate",{method:"POST",body:JSON.stringify(e)})},score:{calculate:e=>Xe("/score/calculate",{method:"POST",body:JSON.stringify(e)}),badge:e=>Xe("/score/badge",{method:"POST",body:JSON.stringify({score:e})})}};function Ku(){return Vu({queryKey:["servers"],queryFn:()=>ct.servers.list()})}function ij(){const e=ys();return xs({mutationFn:t=>ct.servers.create(t),onSuccess:()=>e.invalidateQueries({queryKey:["servers"]})})}function oj(){const e=ys();return xs({mutationFn:t=>ct.servers.delete(t),onSuccess:()=>e.invalidateQueries({queryKey:["servers"]})})}function aj(){return xs({mutationFn:e=>ct.servers.test(e)})}function Tp(){return Vu({queryKey:["collections"],queryFn:()=>ct.collections.list()})}function lj(){const e=ys();return xs({mutationFn:t=>ct.collections.create(t),onSuccess:()=>e.invalidateQueries({queryKey:["collections"]})})}function cj(){const e=ys();return xs({mutationFn:({id:t,data:n})=>ct.collections.update(t,n),onSuccess:()=>e.invalidateQueries({queryKey:["collections"]})})}function uj(){const e=ys();return xs({mutationFn:t=>ct.collections.delete(t),onSuccess:()=>e.invalidateQueries({queryKey:["collections"]})})}function dj(){return xs({mutationFn:e=>ct.collections.validate(e)})}function r0(e){return Vu({queryKey:["runs",e],queryFn:()=>ct.runs.list(e),refetchInterval:5e3})}function fj(e){return Vu({queryKey:["runs",e],queryFn:()=>ct.runs.get(e),enabled:!!e,refetchInterval:t=>{var i,o;return((o=(i=t.state.data)==null?void 0:i.data)==null?void 0:o.status)==="running"?2e3:!1}})}function s0(){const e=ys();return xs({mutationFn:t=>ct.runs.trigger(t),onSuccess:()=>e.invalidateQueries({queryKey:["runs"]})})}function hj(){const e=ys();return xs({mutationFn:t=>ct.runs.delete(t),onSuccess:()=>e.invalidateQueries({queryKey:["runs"]})})}function pj({status:e}){switch(e){case"completed":return f.jsxs(mt,{variant:"success",children:[f.jsx(Tl,{className:"mr-1 h-3 w-3"}),"Completed"]});case"failed":return f.jsxs(mt,{variant:"destructive",children:[f.jsx(Al,{className:"mr-1 h-3 w-3"}),"Failed"]});case"running":return f.jsxs(mt,{variant:"warning",children:[f.jsx(Rp,{className:"mr-1 h-3 w-3"}),"Running"]});default:return f.jsx(mt,{variant:"secondary",children:e})}}function mj(){var i,o,l,u,c;const e=Ku(),t=Tp(),n=r0(5);return f.jsxs("div",{className:"space-y-6",children:[f.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:"Dashboard"}),f.jsxs("div",{className:"grid gap-4 md:grid-cols-3",children:[f.jsxs(at,{children:[f.jsxs(At,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[f.jsx(Ot,{className:"text-sm font-medium",children:"Servers"}),f.jsx(Ww,{className:"h-4 w-4 text-muted-foreground"})]}),f.jsx(lt,{children:f.jsx("div",{className:"text-2xl font-bold",children:((i=e.data)==null?void 0:i.total)??0})})]}),f.jsxs(at,{children:[f.jsxs(At,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[f.jsx(Ot,{className:"text-sm font-medium",children:"Collections"}),f.jsx($w,{className:"h-4 w-4 text-muted-foreground"})]}),f.jsx(lt,{children:f.jsx("div",{className:"text-2xl font-bold",children:((o=t.data)==null?void 0:o.total)??0})})]}),f.jsxs(at,{children:[f.jsxs(At,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[f.jsx(Ot,{className:"text-sm font-medium",children:"Test Runs"}),f.jsx(to,{className:"h-4 w-4 text-muted-foreground"})]}),f.jsx(lt,{children:f.jsx("div",{className:"text-2xl font-bold",children:((l=n.data)==null?void 0:l.total)??0})})]})]}),f.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[f.jsxs(at,{children:[f.jsx(At,{children:f.jsx(Ot,{className:"text-lg",children:"Quick Actions"})}),f.jsxs(lt,{className:"flex flex-wrap gap-2",children:[f.jsx(Qe,{size:"sm",onClick:()=>fs.navigate({to:"/servers"}),children:"Add Server"}),f.jsx(Qe,{size:"sm",variant:"outline",onClick:()=>fs.navigate({to:"/collections"}),children:"New Collection"}),f.jsx(Qe,{size:"sm",variant:"outline",onClick:()=>fs.navigate({to:"/inspect"}),children:"Inspect Server"})]})]}),f.jsxs(at,{children:[f.jsx(At,{children:f.jsx(Ot,{className:"text-lg",children:"Recent Runs"})}),f.jsx(lt,{children:((u=n.data)==null?void 0:u.data.length)===0?f.jsx("p",{className:"text-sm text-muted-foreground",children:"No test runs yet"}):f.jsx("div",{className:"space-y-2",children:(c=n.data)==null?void 0:c.data.map(h=>f.jsxs("div",{className:"flex items-center justify-between rounded-md border p-2 cursor-pointer hover:bg-muted/50",onClick:()=>fs.navigate({to:"/runs/$runId",params:{runId:h.id}}),children:[f.jsxs("div",{children:[f.jsx("p",{className:"text-sm font-medium",children:h.collectionName}),f.jsx("p",{className:"text-xs text-muted-foreground",children:h.duration?`${h.duration}ms`:"In progress..."})]}),f.jsx(pj,{status:h.status})]},h.id))})})]})]})]})}const Qu=b.forwardRef(({className:e,...t},n)=>f.jsx("div",{className:"relative w-full overflow-auto",children:f.jsx("table",{ref:n,className:ht("w-full caption-bottom text-sm",e),...t})}));Qu.displayName="Table";const Zu=b.forwardRef(({className:e,...t},n)=>f.jsx("thead",{ref:n,className:ht("[&_tr]:border-b",e),...t}));Zu.displayName="TableHeader";const qu=b.forwardRef(({className:e,...t},n)=>f.jsx("tbody",{ref:n,className:ht("[&_tr:last-child]:border-0",e),...t}));qu.displayName="TableBody";const no=b.forwardRef(({className:e,...t},n)=>f.jsx("tr",{ref:n,className:ht("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));no.displayName="TableRow";const ln=b.forwardRef(({className:e,...t},n)=>f.jsx("th",{ref:n,className:ht("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));ln.displayName="TableHead";const cn=b.forwardRef(({className:e,...t},n)=>f.jsx("td",{ref:n,className:ht("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));cn.displayName="TableCell";function Je(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 gj(e,t){const n=b.createContext(t),i=l=>{const{children:u,...c}=l,h=b.useMemo(()=>c,Object.values(c));return f.jsx(n.Provider,{value:h,children:u})};i.displayName=e+"Provider";function o(l){const u=b.useContext(n);if(u)return u;if(t!==void 0)return t;throw new Error(`\`${l}\` must be used within \`${e}\``)}return[i,o]}function pa(e,t=[]){let n=[];function i(l,u){const c=b.createContext(u),h=n.length;n=[...n,u];const m=v=>{var P;const{scope:x,children:w,...k}=v,S=((P=x==null?void 0:x[e])==null?void 0:P[h])||c,C=b.useMemo(()=>k,Object.values(k));return f.jsx(S.Provider,{value:C,children:w})};m.displayName=l+"Provider";function y(v,x){var S;const w=((S=x==null?void 0:x[e])==null?void 0:S[h])||c,k=b.useContext(w);if(k)return k;if(u!==void 0)return u;throw new Error(`\`${v}\` must be used within \`${l}\``)}return[m,y]}const o=()=>{const l=n.map(u=>b.createContext(u));return function(c){const h=(c==null?void 0:c[e])||l;return b.useMemo(()=>({[`__scope${e}`]:{...c,[e]:h}}),[c,h])}};return o.scopeName=e,[i,vj(o,...t)]}function vj(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(l){const u=i.reduce((c,{useScope:h,scopeName:m})=>{const v=h(l)[`__scope${m}`];return{...c,...v}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return n.scopeName=t.scopeName,n}var dn=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},yj=up[" useId ".trim().toString()]||(()=>{}),xj=0;function ui(e){const[t,n]=b.useState(yj());return dn(()=>{n(i=>i??String(xj++))},[e]),t?`radix-${t}`:""}var wj=up[" useInsertionEffect ".trim().toString()]||dn;function gl({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){const[o,l,u]=Sj({defaultProp:t,onChange:n}),c=e!==void 0,h=c?e:o;{const y=b.useRef(e!==void 0);b.useEffect(()=>{const v=y.current;v!==c&&console.warn(`${i} is changing from ${v?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),y.current=c},[c,i])}const m=b.useCallback(y=>{var v;if(c){const x=bj(y)?y(e):y;x!==e&&((v=u.current)==null||v.call(u,x))}else l(y)},[c,e,l,u]);return[h,m]}function Sj({defaultProp:e,onChange:t}){const[n,i]=b.useState(e),o=b.useRef(n),l=b.useRef(t);return wj(()=>{l.current=t},[t]),b.useEffect(()=>{var u;o.current!==n&&((u=l.current)==null||u.call(l,n),o.current=n)},[n,o]),[n,i,l]}function bj(e){return typeof e=="function"}function vl(e){const t=Cj(e),n=b.forwardRef((i,o)=>{const{children:l,...u}=i,c=b.Children.toArray(l),h=c.find(kj);if(h){const m=h.props.children,y=c.map(v=>v===h?b.Children.count(m)>1?b.Children.only(null):b.isValidElement(m)?m.props.children:null:v);return f.jsx(t,{...u,ref:o,children:b.isValidElement(m)?b.cloneElement(m,void 0,y):null})}return f.jsx(t,{...u,ref:o,children:l})});return n.displayName=`${e}.Slot`,n}function Cj(e){const t=b.forwardRef((n,i)=>{const{children:o,...l}=n;if(b.isValidElement(o)){const u=jj(o),c=Ej(l,o.props);return o.type!==b.Fragment&&(c.ref=i?Np(i,u):u),b.cloneElement(o,c)}return b.Children.count(o)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var _j=Symbol("radix.slottable");function kj(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===_j}function Ej(e,t){const n={...t};for(const i in t){const o=e[i],l=t[i];/^on[A-Z]/.test(i)?o&&l?n[i]=(...c)=>{const h=l(...c);return o(...c),h}:o&&(n[i]=o):i==="style"?n[i]={...o,...l}:i==="className"&&(n[i]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}function jj(e){var i,o;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.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 Rj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ot=Rj.reduce((e,t)=>{const n=vl(`Primitive.${t}`),i=b.forwardRef((o,l)=>{const{asChild:u,...c}=o,h=u?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(h,{...c,ref:l})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function Pj(e,t){e&&fa.flushSync(()=>e.dispatchEvent(t))}function hi(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...n)=>{var i;return(i=t.current)==null?void 0:i.call(t,...n)},[])}function Nj(e,t=globalThis==null?void 0:globalThis.document){const n=hi(e);b.useEffect(()=>{const i=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[n,t])}var Tj="DismissableLayer",Wh="dismissableLayer.update",Aj="dismissableLayer.pointerDownOutside",Oj="dismissableLayer.focusOutside",Iy,i0=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ap=b.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:u,onDismiss:c,...h}=e,m=b.useContext(i0),[y,v]=b.useState(null),x=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=b.useState({}),k=It(t,A=>v(A)),S=Array.from(m.layers),[C]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),P=S.indexOf(C),_=y?S.indexOf(y):-1,E=m.layersWithOutsidePointerEventsDisabled.size>0,R=_>=P,N=Lj(A=>{const z=A.target,L=[...m.branches].some(M=>M.contains(z));!R||L||(o==null||o(A),u==null||u(A),A.defaultPrevented||c==null||c())},x),T=Fj(A=>{const z=A.target;[...m.branches].some(M=>M.contains(z))||(l==null||l(A),u==null||u(A),A.defaultPrevented||c==null||c())},x);return Nj(A=>{_===m.layers.size-1&&(i==null||i(A),!A.defaultPrevented&&c&&(A.preventDefault(),c()))},x),b.useEffect(()=>{if(y)return n&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(Iy=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(y)),m.layers.add(y),My(),()=>{n&&m.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=Iy)}},[y,x,n,m]),b.useEffect(()=>()=>{y&&(m.layers.delete(y),m.layersWithOutsidePointerEventsDisabled.delete(y),My())},[y,m]),b.useEffect(()=>{const A=()=>w({});return document.addEventListener(Wh,A),()=>document.removeEventListener(Wh,A)},[]),f.jsx(ot.div,{...h,ref:k,style:{pointerEvents:E?R?"auto":"none":void 0,...e.style},onFocusCapture:Je(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Je(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Je(e.onPointerDownCapture,N.onPointerDownCapture)})});Ap.displayName=Tj;var Ij="DismissableLayerBranch",Mj=b.forwardRef((e,t)=>{const n=b.useContext(i0),i=b.useRef(null),o=It(t,i);return b.useEffect(()=>{const l=i.current;if(l)return n.branches.add(l),()=>{n.branches.delete(l)}},[n.branches]),f.jsx(ot.div,{...e,ref:o})});Mj.displayName=Ij;function Lj(e,t=globalThis==null?void 0:globalThis.document){const n=hi(e),i=b.useRef(!1),o=b.useRef(()=>{});return b.useEffect(()=>{const l=c=>{if(c.target&&!i.current){let h=function(){o0(Aj,n,m,{discrete:!0})};const m={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=h,t.addEventListener("click",o.current,{once:!0})):h()}else t.removeEventListener("click",o.current);i.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",l),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}function Fj(e,t=globalThis==null?void 0:globalThis.document){const n=hi(e),i=b.useRef(!1);return b.useEffect(()=>{const o=l=>{l.target&&!i.current&&o0(Oj,n,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function My(){const e=new CustomEvent(Wh);document.dispatchEvent(e)}function o0(e,t,n,{discrete:i}){const o=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),i?Pj(o,l):o.dispatchEvent(l)}var uh="focusScope.autoFocusOnMount",dh="focusScope.autoFocusOnUnmount",Ly={bubbles:!1,cancelable:!0},Dj="FocusScope",Op=b.forwardRef((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...u}=e,[c,h]=b.useState(null),m=hi(o),y=hi(l),v=b.useRef(null),x=It(t,S=>h(S)),w=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(i){let S=function(E){if(w.paused||!c)return;const R=E.target;c.contains(R)?v.current=R:Ks(v.current,{select:!0})},C=function(E){if(w.paused||!c)return;const R=E.relatedTarget;R!==null&&(c.contains(R)||Ks(v.current,{select:!0}))},P=function(E){if(document.activeElement===document.body)for(const N of E)N.removedNodes.length>0&&Ks(c)};document.addEventListener("focusin",S),document.addEventListener("focusout",C);const _=new MutationObserver(P);return c&&_.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",C),_.disconnect()}}},[i,c,w.paused]),b.useEffect(()=>{if(c){Dy.add(w);const S=document.activeElement;if(!c.contains(S)){const P=new CustomEvent(uh,Ly);c.addEventListener(uh,m),c.dispatchEvent(P),P.defaultPrevented||(zj(Wj(a0(c)),{select:!0}),document.activeElement===S&&Ks(c))}return()=>{c.removeEventListener(uh,m),setTimeout(()=>{const P=new CustomEvent(dh,Ly);c.addEventListener(dh,y),c.dispatchEvent(P),P.defaultPrevented||Ks(S??document.body,{select:!0}),c.removeEventListener(dh,y),Dy.remove(w)},0)}}},[c,m,y,w]);const k=b.useCallback(S=>{if(!n&&!i||w.paused)return;const C=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,P=document.activeElement;if(C&&P){const _=S.currentTarget,[E,R]=Vj(_);E&&R?!S.shiftKey&&P===R?(S.preventDefault(),n&&Ks(E,{select:!0})):S.shiftKey&&P===E&&(S.preventDefault(),n&&Ks(R,{select:!0})):P===_&&S.preventDefault()}},[n,i,w.paused]);return f.jsx(ot.div,{tabIndex:-1,...u,ref:x,onKeyDown:k})});Op.displayName=Dj;function zj(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(Ks(i,{select:t}),document.activeElement!==n)return}function Vj(e){const t=a0(e),n=Fy(t,e),i=Fy(t.reverse(),e);return[n,i]}function a0(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Fy(e,t){for(const n of e)if(!$j(n,{upTo:t}))return n}function $j(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 Bj(e){return e instanceof HTMLInputElement&&"select"in e}function Ks(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Bj(e)&&t&&e.select()}}var Dy=Uj();function Uj(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=zy(e,t),e.unshift(t)},remove(t){var n;e=zy(e,t),(n=e[0])==null||n.resume()}}}function zy(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function Wj(e){return e.filter(t=>t.tagName!=="A")}var Hj="Portal",Ip=b.forwardRef((e,t)=>{var c;const{container:n,...i}=e,[o,l]=b.useState(!1);dn(()=>l(!0),[]);const u=n||o&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return u?yk.createPortal(f.jsx(ot.div,{...i,ref:t}),u):null});Ip.displayName=Hj;function Kj(e,t){return b.useReducer((n,i)=>t[n][i]??n,e)}var Il=e=>{const{present:t,children:n}=e,i=Qj(t),o=typeof n=="function"?n({present:i.isPresent}):b.Children.only(n),l=It(i.ref,Zj(o));return typeof n=="function"||i.isPresent?b.cloneElement(o,{ref:l}):null};Il.displayName="Presence";function Qj(e){const[t,n]=b.useState(),i=b.useRef(null),o=b.useRef(e),l=b.useRef("none"),u=e?"mounted":"unmounted",[c,h]=Kj(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const m=Gc(i.current);l.current=c==="mounted"?m:"none"},[c]),dn(()=>{const m=i.current,y=o.current;if(y!==e){const x=l.current,w=Gc(m);e?h("MOUNT"):w==="none"||(m==null?void 0:m.display)==="none"?h("UNMOUNT"):h(y&&x!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,h]),dn(()=>{if(t){let m;const y=t.ownerDocument.defaultView??window,v=w=>{const S=Gc(i.current).includes(CSS.escape(w.animationName));if(w.target===t&&S&&(h("ANIMATION_END"),!o.current)){const C=t.style.animationFillMode;t.style.animationFillMode="forwards",m=y.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=C)})}},x=w=>{w.target===t&&(l.current=Gc(i.current))};return t.addEventListener("animationstart",x),t.addEventListener("animationcancel",v),t.addEventListener("animationend",v),()=>{y.clearTimeout(m),t.removeEventListener("animationstart",x),t.removeEventListener("animationcancel",v),t.removeEventListener("animationend",v)}}else h("ANIMATION_END")},[t,h]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:b.useCallback(m=>{i.current=m?getComputedStyle(m):null,n(m)},[])}}function Gc(e){return(e==null?void 0:e.animationName)||"none"}function Zj(e){var i,o;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.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 fh=0;function l0(){b.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Vy()),document.body.insertAdjacentElement("beforeend",e[1]??Vy()),fh++,()=>{fh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),fh--}},[])}function Vy(){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 Fr=function(){return Fr=Object.assign||function(t){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},Fr.apply(this,arguments)};function c0(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n}function qj(e,t,n){if(n||arguments.length===2)for(var i=0,o=t.length,l;i<o;i++)(l||!(i in t))&&(l||(l=Array.prototype.slice.call(t,0,i)),l[i]=t[i]);return e.concat(l||Array.prototype.slice.call(t))}var lu="right-scroll-bar-position",cu="width-before-scroll-bar",Gj="with-scroll-bars-hidden",Yj="--removed-body-scroll-bar-size";function hh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Xj(e,t){var n=b.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var o=n.value;o!==i&&(n.value=i,n.callback(i,o))}}}})[0];return n.callback=t,n.facade}var Jj=typeof window<"u"?b.useLayoutEffect:b.useEffect,$y=new WeakMap;function eR(e,t){var n=Xj(null,function(i){return e.forEach(function(o){return hh(o,i)})});return Jj(function(){var i=$y.get(n);if(i){var o=new Set(i),l=new Set(e),u=n.current;o.forEach(function(c){l.has(c)||hh(c,null)}),l.forEach(function(c){o.has(c)||hh(c,u)})}$y.set(n,e)},[e]),n}function tR(e){return e}function nR(e,t){t===void 0&&(t=tR);var n=[],i=!1,o={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(l){var u=t(l,i);return n.push(u),function(){n=n.filter(function(c){return c!==u})}},assignSyncMedium:function(l){for(i=!0;n.length;){var u=n;n=[],u.forEach(l)}n={push:function(c){return l(c)},filter:function(){return n}}},assignMedium:function(l){i=!0;var u=[];if(n.length){var c=n;n=[],c.forEach(l),u=n}var h=function(){var y=u;u=[],y.forEach(l)},m=function(){return Promise.resolve().then(h)};m(),n={push:function(y){u.push(y),m()},filter:function(y){return u=u.filter(y),n}}}};return o}function rR(e){e===void 0&&(e={});var t=nR(null);return t.options=Fr({async:!0,ssr:!1},e),t}var u0=function(e){var t=e.sideCar,n=c0(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return b.createElement(i,Fr({},n))};u0.isSideCarExport=!0;function sR(e,t){return e.useMedium(t),u0}var d0=rR(),ph=function(){},Gu=b.forwardRef(function(e,t){var n=b.useRef(null),i=b.useState({onScrollCapture:ph,onWheelCapture:ph,onTouchMoveCapture:ph}),o=i[0],l=i[1],u=e.forwardProps,c=e.children,h=e.className,m=e.removeScrollBar,y=e.enabled,v=e.shards,x=e.sideCar,w=e.noRelative,k=e.noIsolation,S=e.inert,C=e.allowPinchZoom,P=e.as,_=P===void 0?"div":P,E=e.gapMode,R=c0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=x,T=eR([n,t]),A=Fr(Fr({},R),o);return b.createElement(b.Fragment,null,y&&b.createElement(N,{sideCar:d0,removeScrollBar:m,shards:v,noRelative:w,noIsolation:k,inert:S,setCallbacks:l,allowPinchZoom:!!C,lockRef:n,gapMode:E}),u?b.cloneElement(b.Children.only(c),Fr(Fr({},A),{ref:T})):b.createElement(_,Fr({},A,{className:h,ref:T}),c))});Gu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Gu.classNames={fullWidth:cu,zeroRight:lu};var iR=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function oR(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=iR();return t&&e.setAttribute("nonce",t),e}function aR(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function lR(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var cR=function(){var e=0,t=null;return{add:function(n){e==0&&(t=oR())&&(aR(t,n),lR(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},uR=function(){var e=cR();return function(t,n){b.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},f0=function(){var e=uR(),t=function(n){var i=n.styles,o=n.dynamic;return e(i,o),null};return t},dR={left:0,top:0,right:0,gap:0},mh=function(e){return parseInt(e||"",10)||0},fR=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[mh(n),mh(i),mh(o)]},hR=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return dR;var t=fR(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},pR=f0(),Uo="data-scroll-locked",mR=function(e,t,n,i){var o=e.left,l=e.top,u=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
252
|
-
.`.concat(Gj,` {
|
|
253
|
-
overflow: hidden `).concat(i,`;
|
|
254
|
-
padding-right: `).concat(c,"px ").concat(i,`;
|
|
255
|
-
}
|
|
256
|
-
body[`).concat(Uo,`] {
|
|
257
|
-
overflow: hidden `).concat(i,`;
|
|
258
|
-
overscroll-behavior: contain;
|
|
259
|
-
`).concat([t&&"position: relative ".concat(i,";"),n==="margin"&&`
|
|
260
|
-
padding-left: `.concat(o,`px;
|
|
261
|
-
padding-top: `).concat(l,`px;
|
|
262
|
-
padding-right: `).concat(u,`px;
|
|
263
|
-
margin-left:0;
|
|
264
|
-
margin-top:0;
|
|
265
|
-
margin-right: `).concat(c,"px ").concat(i,`;
|
|
266
|
-
`),n==="padding"&&"padding-right: ".concat(c,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.`).concat(lu,` {
|
|
270
|
-
right: `).concat(c,"px ").concat(i,`;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.`).concat(cu,` {
|
|
274
|
-
margin-right: `).concat(c,"px ").concat(i,`;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
.`).concat(lu," .").concat(lu,` {
|
|
278
|
-
right: 0 `).concat(i,`;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
.`).concat(cu," .").concat(cu,` {
|
|
282
|
-
margin-right: 0 `).concat(i,`;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
body[`).concat(Uo,`] {
|
|
286
|
-
`).concat(Yj,": ").concat(c,`px;
|
|
287
|
-
}
|
|
288
|
-
`)},By=function(){var e=parseInt(document.body.getAttribute(Uo)||"0",10);return isFinite(e)?e:0},gR=function(){b.useEffect(function(){return document.body.setAttribute(Uo,(By()+1).toString()),function(){var e=By()-1;e<=0?document.body.removeAttribute(Uo):document.body.setAttribute(Uo,e.toString())}},[])},vR=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,o=i===void 0?"margin":i;gR();var l=b.useMemo(function(){return hR(o)},[o]);return b.createElement(pR,{styles:mR(l,!t,o,n?"":"!important")})},Hh=!1;if(typeof window<"u")try{var Yc=Object.defineProperty({},"passive",{get:function(){return Hh=!0,!0}});window.addEventListener("test",Yc,Yc),window.removeEventListener("test",Yc,Yc)}catch{Hh=!1}var Oo=Hh?{passive:!1}:!1,yR=function(e){return e.tagName==="TEXTAREA"},h0=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!yR(e)&&n[t]==="visible")},xR=function(e){return h0(e,"overflowY")},wR=function(e){return h0(e,"overflowX")},Uy=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var o=p0(e,i);if(o){var l=m0(e,i),u=l[1],c=l[2];if(u>c)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},SR=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},bR=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},p0=function(e,t){return e==="v"?xR(t):wR(t)},m0=function(e,t){return e==="v"?SR(t):bR(t)},CR=function(e,t){return e==="h"&&t==="rtl"?-1:1},_R=function(e,t,n,i,o){var l=CR(e,window.getComputedStyle(t).direction),u=l*i,c=n.target,h=t.contains(c),m=!1,y=u>0,v=0,x=0;do{if(!c)break;var w=m0(e,c),k=w[0],S=w[1],C=w[2],P=S-C-l*k;(k||P)&&p0(e,c)&&(v+=P,x+=k);var _=c.parentNode;c=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!h&&c!==document.body||h&&(t.contains(c)||t===c));return(y&&Math.abs(v)<1||!y&&Math.abs(x)<1)&&(m=!0),m},Xc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Wy=function(e){return[e.deltaX,e.deltaY]},Hy=function(e){return e&&"current"in e?e.current:e},kR=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ER=function(e){return`
|
|
289
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
290
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
291
|
-
`)},jR=0,Io=[];function RR(e){var t=b.useRef([]),n=b.useRef([0,0]),i=b.useRef(),o=b.useState(jR++)[0],l=b.useState(f0)[0],u=b.useRef(e);b.useEffect(function(){u.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var S=qj([e.lockRef.current],(e.shards||[]).map(Hy),!0).filter(Boolean);return S.forEach(function(C){return C.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),S.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=b.useCallback(function(S,C){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!u.current.allowPinchZoom;var P=Xc(S),_=n.current,E="deltaX"in S?S.deltaX:_[0]-P[0],R="deltaY"in S?S.deltaY:_[1]-P[1],N,T=S.target,A=Math.abs(E)>Math.abs(R)?"h":"v";if("touches"in S&&A==="h"&&T.type==="range")return!1;var z=window.getSelection(),L=z&&z.anchorNode,M=L?L===T||L.contains(T):!1;if(M)return!1;var Q=Uy(A,T);if(!Q)return!0;if(Q?N=A:(N=A==="v"?"h":"v",Q=Uy(A,T)),!Q)return!1;if(!i.current&&"changedTouches"in S&&(E||R)&&(i.current=N),!N)return!0;var H=i.current||N;return _R(H,C,S,H==="h"?E:R)},[]),h=b.useCallback(function(S){var C=S;if(!(!Io.length||Io[Io.length-1]!==l)){var P="deltaY"in C?Wy(C):Xc(C),_=t.current.filter(function(N){return N.name===C.type&&(N.target===C.target||C.target===N.shadowParent)&&kR(N.delta,P)})[0];if(_&&_.should){C.cancelable&&C.preventDefault();return}if(!_){var E=(u.current.shards||[]).map(Hy).filter(Boolean).filter(function(N){return N.contains(C.target)}),R=E.length>0?c(C,E[0]):!u.current.noIsolation;R&&C.cancelable&&C.preventDefault()}}},[]),m=b.useCallback(function(S,C,P,_){var E={name:S,delta:C,target:P,should:_,shadowParent:PR(P)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(R){return R!==E})},1)},[]),y=b.useCallback(function(S){n.current=Xc(S),i.current=void 0},[]),v=b.useCallback(function(S){m(S.type,Wy(S),S.target,c(S,e.lockRef.current))},[]),x=b.useCallback(function(S){m(S.type,Xc(S),S.target,c(S,e.lockRef.current))},[]);b.useEffect(function(){return Io.push(l),e.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:x}),document.addEventListener("wheel",h,Oo),document.addEventListener("touchmove",h,Oo),document.addEventListener("touchstart",y,Oo),function(){Io=Io.filter(function(S){return S!==l}),document.removeEventListener("wheel",h,Oo),document.removeEventListener("touchmove",h,Oo),document.removeEventListener("touchstart",y,Oo)}},[]);var w=e.removeScrollBar,k=e.inert;return b.createElement(b.Fragment,null,k?b.createElement(l,{styles:ER(o)}):null,w?b.createElement(vR,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function PR(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const NR=sR(d0,RR);var Mp=b.forwardRef(function(e,t){return b.createElement(Gu,Fr({},e,{ref:t,sideCar:NR}))});Mp.classNames=Gu.classNames;var TR=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Mo=new WeakMap,Jc=new WeakMap,eu={},gh=0,g0=function(e){return e&&(e.host||g0(e.parentNode))},AR=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=g0(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},OR=function(e,t,n,i){var o=AR(t,Array.isArray(e)?e:[e]);eu[n]||(eu[n]=new WeakMap);var l=eu[n],u=[],c=new Set,h=new Set(o),m=function(v){!v||c.has(v)||(c.add(v),m(v.parentNode))};o.forEach(m);var y=function(v){!v||h.has(v)||Array.prototype.forEach.call(v.children,function(x){if(c.has(x))y(x);else try{var w=x.getAttribute(i),k=w!==null&&w!=="false",S=(Mo.get(x)||0)+1,C=(l.get(x)||0)+1;Mo.set(x,S),l.set(x,C),u.push(x),S===1&&k&&Jc.set(x,!0),C===1&&x.setAttribute(n,"true"),k||x.setAttribute(i,"true")}catch(P){console.error("aria-hidden: cannot operate on ",x,P)}})};return y(t),c.clear(),gh++,function(){u.forEach(function(v){var x=Mo.get(v)-1,w=l.get(v)-1;Mo.set(v,x),l.set(v,w),x||(Jc.has(v)||v.removeAttribute(i),Jc.delete(v)),w||v.removeAttribute(n)}),gh--,gh||(Mo=new WeakMap,Mo=new WeakMap,Jc=new WeakMap,eu={})}},v0=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),o=TR(e);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live], script"))),OR(i,o,n,"aria-hidden")):function(){return null}},Yu="Dialog",[y0]=pa(Yu),[IR,kr]=y0(Yu),x0=e=>{const{__scopeDialog:t,children:n,open:i,defaultOpen:o,onOpenChange:l,modal:u=!0}=e,c=b.useRef(null),h=b.useRef(null),[m,y]=gl({prop:i,defaultProp:o??!1,onChange:l,caller:Yu});return f.jsx(IR,{scope:t,triggerRef:c,contentRef:h,contentId:ui(),titleId:ui(),descriptionId:ui(),open:m,onOpenChange:y,onOpenToggle:b.useCallback(()=>y(v=>!v),[y]),modal:u,children:n})};x0.displayName=Yu;var w0="DialogTrigger",S0=b.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,o=kr(w0,n),l=It(t,o.triggerRef);return f.jsx(ot.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Dp(o.open),...i,ref:l,onClick:Je(e.onClick,o.onOpenToggle)})});S0.displayName=w0;var Lp="DialogPortal",[MR,b0]=y0(Lp,{forceMount:void 0}),C0=e=>{const{__scopeDialog:t,forceMount:n,children:i,container:o}=e,l=kr(Lp,t);return f.jsx(MR,{scope:t,forceMount:n,children:b.Children.map(i,u=>f.jsx(Il,{present:n||l.open,children:f.jsx(Ip,{asChild:!0,container:o,children:u})}))})};C0.displayName=Lp;var Cu="DialogOverlay",_0=b.forwardRef((e,t)=>{const n=b0(Cu,e.__scopeDialog),{forceMount:i=n.forceMount,...o}=e,l=kr(Cu,e.__scopeDialog);return l.modal?f.jsx(Il,{present:i||l.open,children:f.jsx(FR,{...o,ref:t})}):null});_0.displayName=Cu;var LR=vl("DialogOverlay.RemoveScroll"),FR=b.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,o=kr(Cu,n);return f.jsx(Mp,{as:LR,allowPinchZoom:!0,shards:[o.contentRef],children:f.jsx(ot.div,{"data-state":Dp(o.open),...i,ref:t,style:{pointerEvents:"auto",...i.style}})})}),ro="DialogContent",k0=b.forwardRef((e,t)=>{const n=b0(ro,e.__scopeDialog),{forceMount:i=n.forceMount,...o}=e,l=kr(ro,e.__scopeDialog);return f.jsx(Il,{present:i||l.open,children:l.modal?f.jsx(DR,{...o,ref:t}):f.jsx(zR,{...o,ref:t})})});k0.displayName=ro;var DR=b.forwardRef((e,t)=>{const n=kr(ro,e.__scopeDialog),i=b.useRef(null),o=It(t,n.contentRef,i);return b.useEffect(()=>{const l=i.current;if(l)return v0(l)},[]),f.jsx(E0,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Je(e.onCloseAutoFocus,l=>{var u;l.preventDefault(),(u=n.triggerRef.current)==null||u.focus()}),onPointerDownOutside:Je(e.onPointerDownOutside,l=>{const u=l.detail.originalEvent,c=u.button===0&&u.ctrlKey===!0;(u.button===2||c)&&l.preventDefault()}),onFocusOutside:Je(e.onFocusOutside,l=>l.preventDefault())})}),zR=b.forwardRef((e,t)=>{const n=kr(ro,e.__scopeDialog),i=b.useRef(!1),o=b.useRef(!1);return f.jsx(E0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var u,c;(u=e.onCloseAutoFocus)==null||u.call(e,l),l.defaultPrevented||(i.current||(c=n.triggerRef.current)==null||c.focus(),l.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:l=>{var h,m;(h=e.onInteractOutside)==null||h.call(e,l),l.defaultPrevented||(i.current=!0,l.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const u=l.target;((m=n.triggerRef.current)==null?void 0:m.contains(u))&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&o.current&&l.preventDefault()}})}),E0=b.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:l,...u}=e,c=kr(ro,n),h=b.useRef(null),m=It(t,h);return l0(),f.jsxs(f.Fragment,{children:[f.jsx(Op,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:l,children:f.jsx(Ap,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Dp(c.open),...u,ref:m,onDismiss:()=>c.onOpenChange(!1)})}),f.jsxs(f.Fragment,{children:[f.jsx(VR,{titleId:c.titleId}),f.jsx(BR,{contentRef:h,descriptionId:c.descriptionId})]})]})}),Fp="DialogTitle",j0=b.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,o=kr(Fp,n);return f.jsx(ot.h2,{id:o.titleId,...i,ref:t})});j0.displayName=Fp;var R0="DialogDescription",P0=b.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,o=kr(R0,n);return f.jsx(ot.p,{id:o.descriptionId,...i,ref:t})});P0.displayName=R0;var N0="DialogClose",T0=b.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,o=kr(N0,n);return f.jsx(ot.button,{type:"button",...i,ref:t,onClick:Je(e.onClick,()=>o.onOpenChange(!1))})});T0.displayName=N0;function Dp(e){return e?"open":"closed"}var A0="DialogTitleWarning",[_O,O0]=gj(A0,{contentName:ro,titleName:Fp,docsSlug:"dialog"}),VR=({titleId:e})=>{const t=O0(A0),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
292
|
-
|
|
293
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
294
|
-
|
|
295
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return b.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},$R="DialogDescriptionWarning",BR=({contentRef:e,descriptionId:t})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${O0($R).contentName}}.`;return b.useEffect(()=>{var l;const o=(l=e.current)==null?void 0:l.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(i))},[i,e,t]),null},UR=x0,WR=S0,HR=C0,KR=_0,QR=k0,ZR=j0,qR=P0,GR=T0;const _u=UR,zp=WR,YR=HR,I0=b.forwardRef(({className:e,...t},n)=>f.jsx(KR,{ref:n,className:ht("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));I0.displayName="DialogOverlay";const yl=b.forwardRef(({className:e,children:t,...n},i)=>f.jsxs(YR,{children:[f.jsx(I0,{}),f.jsxs(QR,{ref:i,className:ht("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,f.jsxs(GR,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[f.jsx(oE,{className:"h-4 w-4"}),f.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));yl.displayName="DialogContent";const ku=({className:e,...t})=>f.jsx("div",{className:ht("flex flex-col space-y-1.5 text-center sm:text-left",e),...t}),xl=b.forwardRef(({className:e,...t},n)=>f.jsx(ZR,{ref:n,className:ht("text-lg font-semibold leading-none tracking-tight",e),...t}));xl.displayName="DialogTitle";const XR=b.forwardRef(({className:e,...t},n)=>f.jsx(qR,{ref:n,className:ht("text-sm text-muted-foreground",e),...t}));XR.displayName="DialogDescription";var Ml=e=>e.type==="checkbox",zi=e=>e instanceof Date,jn=e=>e==null;const M0=e=>typeof e=="object";var Bt=e=>!jn(e)&&!Array.isArray(e)&&M0(e)&&!zi(e),JR=e=>Bt(e)&&e.target?Ml(e.target)?e.target.checked:e.target.value:e,eP=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,tP=(e,t)=>e.has(eP(t)),nP=e=>{const t=e.constructor&&e.constructor.prototype;return Bt(t)&&t.hasOwnProperty("isPrototypeOf")},Vp=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ht(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(Vp&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(Bt(e)&&nP(e)))return e;const i=n?[]:Object.create(Object.getPrototypeOf(e));for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=Ht(e[o]));return i}var Xu=e=>/^\w*$/.test(e),jt=e=>e===void 0,$p=e=>Array.isArray(e)?e.filter(Boolean):[],Bp=e=>$p(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ce=(e,t,n)=>{if(!t||!Bt(e))return n;const i=(Xu(t)?[t]:Bp(t)).reduce((o,l)=>jn(o)?o:o[l],e);return jt(i)||i===e?jt(e[t])?n:e[t]:i},Or=e=>typeof e=="boolean",wr=e=>typeof e=="function",gt=(e,t,n)=>{let i=-1;const o=Xu(t)?[t]:Bp(t),l=o.length,u=l-1;for(;++i<l;){const c=o[i];let h=n;if(i!==u){const m=e[c];h=Bt(m)||Array.isArray(m)?m:isNaN(+o[i+1])?{}:[]}if(c==="__proto__"||c==="constructor"||c==="prototype")return;e[c]=h,e=e[c]}};const Ky={BLUR:"blur",FOCUS_OUT:"focusout"},Sr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ns={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},rP=st.createContext(null);rP.displayName="HookFormControlContext";var sP=(e,t,n,i=!0)=>{const o={defaultValues:t._defaultValues};for(const l in e)Object.defineProperty(o,l,{get:()=>{const u=l;return t._proxyFormState[u]!==Sr.all&&(t._proxyFormState[u]=!i||Sr.all),e[u]}});return o};const iP=typeof window<"u"?st.useLayoutEffect:st.useEffect;var zn=e=>typeof e=="string",oP=(e,t,n,i,o)=>zn(e)?(i&&t.watch.add(e),Ce(n,e,o)):Array.isArray(e)?e.map(l=>(i&&t.watch.add(l),Ce(n,l))):(i&&(t.watchAll=!0),n),Kh=e=>jn(e)||!M0(e);function qs(e,t,n=new WeakSet){if(Kh(e)||Kh(t))return Object.is(e,t);if(zi(e)&&zi(t))return Object.is(e.getTime(),t.getTime());const i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const l of i){const u=e[l];if(!o.includes(l))return!1;if(l!=="ref"){const c=t[l];if(zi(u)&&zi(c)||Bt(u)&&Bt(c)||Array.isArray(u)&&Array.isArray(c)?!qs(u,c,n):!Object.is(u,c))return!1}}return!0}const aP=st.createContext(null);aP.displayName="HookFormContext";var L0=(e,t,n,i,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[i]:o||!0}}:{},dl=e=>Array.isArray(e)?e:[e],Qy=()=>{let e=[];return{get observers(){return e},next:o=>{for(const l of e)l.next&&l.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(l=>l!==o)}}),unsubscribe:()=>{e=[]}}};function F0(e,t){const n={};for(const i in e)if(e.hasOwnProperty(i)){const o=e[i],l=t[i];if(o&&Bt(o)&&l){const u=F0(o,l);Bt(u)&&(n[i]=u)}else e[i]&&(n[i]=l)}return n}var gn=e=>Bt(e)&&!Object.keys(e).length,Up=e=>e.type==="file",Eu=e=>{if(!Vp)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},D0=e=>e.type==="select-multiple",Wp=e=>e.type==="radio",lP=e=>Wp(e)||Ml(e),vh=e=>Eu(e)&&e.isConnected;function cP(e,t){const n=t.slice(0,-1).length;let i=0;for(;i<n;)e=jt(e)?i++:e[t[i++]];return e}function uP(e){for(const t in e)if(e.hasOwnProperty(t)&&!jt(e[t]))return!1;return!0}function Vt(e,t){const n=Array.isArray(t)?t:Xu(t)?[t]:Bp(t),i=n.length===1?e:cP(e,n),o=n.length-1,l=n[o];return i&&delete i[l],o!==0&&(Bt(i)&&gn(i)||Array.isArray(i)&&uP(i))&&Vt(e,n.slice(0,-1)),e}var dP=e=>{for(const t in e)if(wr(e[t]))return!0;return!1};function z0(e){return Array.isArray(e)||Bt(e)&&!dP(e)}function Qh(e,t={}){for(const n in e){const i=e[n];z0(i)?(t[n]=Array.isArray(i)?[]:{},Qh(i,t[n])):jt(i)||(t[n]=!0)}return t}function Do(e,t,n){n||(n=Qh(t));for(const i in e){const o=e[i];if(z0(o))jt(t)||Kh(n[i])?n[i]=Qh(o,Array.isArray(o)?[]:{}):Do(o,jn(t)?{}:t[i],n[i]);else{const l=t[i];n[i]=!qs(o,l)}}return n}const Zy={value:!1,isValid:!1},qy={value:!0,isValid:!0};var V0=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!jt(e[0].attributes.value)?jt(e[0].value)||e[0].value===""?qy:{value:e[0].value,isValid:!0}:qy:Zy}return Zy},$0=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:i})=>jt(e)?e:t?e===""?NaN:e&&+e:n&&zn(e)?new Date(e):i?i(e):e;const Gy={isValid:!1,value:null};var B0=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Gy):Gy;function Yy(e){const t=e.ref;return Up(t)?t.files:Wp(t)?B0(e.refs).value:D0(t)?[...t.selectedOptions].map(({value:n})=>n):Ml(t)?V0(e.refs).value:$0(jt(t.value)?e.ref.value:t.value,e)}var fP=(e,t,n,i)=>{const o={};for(const l of e){const u=Ce(t,l);u&>(o,l,u._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:i}},ju=e=>e instanceof RegExp,il=e=>jt(e)?e:ju(e)?e.source:Bt(e)?ju(e.value)?e.value.source:e.value:e,Xy=e=>({isOnSubmit:!e||e===Sr.onSubmit,isOnBlur:e===Sr.onBlur,isOnChange:e===Sr.onChange,isOnAll:e===Sr.all,isOnTouch:e===Sr.onTouched});const Jy="AsyncFunction";var hP=e=>!!e&&!!e.validate&&!!(wr(e.validate)&&e.validate.constructor.name===Jy||Bt(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Jy)),pP=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),ex=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(i=>e.startsWith(i)&&/^\.\w+/.test(e.slice(i.length))));const fl=(e,t,n,i)=>{for(const o of n||Object.keys(e)){const l=Ce(e,o);if(l){const{_f:u,...c}=l;if(u){if(u.refs&&u.refs[0]&&t(u.refs[0],o)&&!i)return!0;if(u.ref&&t(u.ref,u.name)&&!i)return!0;if(fl(c,t))break}else if(Bt(c)&&fl(c,t))break}}};function tx(e,t,n){const i=Ce(e,n);if(i||Xu(n))return{error:i,name:n};const o=n.split(".");for(;o.length;){const l=o.join("."),u=Ce(t,l),c=Ce(e,l);if(u&&!Array.isArray(u)&&n!==l)return{name:n};if(c&&c.type)return{name:l,error:c};if(c&&c.root&&c.root.type)return{name:`${l}.root`,error:c.root};o.pop()}return{name:n}}var mP=(e,t,n,i)=>{n(e);const{name:o,...l}=e;return gn(l)||Object.keys(l).length>=Object.keys(t).length||Object.keys(l).find(u=>t[u]===(!i||Sr.all))},gP=(e,t,n)=>!e||!t||e===t||dl(e).some(i=>i&&(n?i===t:i.startsWith(t)||t.startsWith(i))),vP=(e,t,n,i,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(t||e):(n?i.isOnBlur:o.isOnBlur)?!e:(n?i.isOnChange:o.isOnChange)?e:!0,yP=(e,t)=>!$p(Ce(e,t)).length&&Vt(e,t),xP=(e,t,n)=>{const i=dl(Ce(e,n));return gt(i,"root",t[n]),gt(e,n,i),e};function nx(e,t,n="validate"){if(zn(e)||Array.isArray(e)&&e.every(zn)||Or(e)&&!e)return{type:n,message:zn(e)?e:"",ref:t}}var Lo=e=>Bt(e)&&!ju(e)?e:{value:e,message:""},rx=async(e,t,n,i,o,l)=>{const{ref:u,refs:c,required:h,maxLength:m,minLength:y,min:v,max:x,pattern:w,validate:k,name:S,valueAsNumber:C,mount:P}=e._f,_=Ce(n,S);if(!P||t.has(S))return{};const E=c?c[0]:u,R=H=>{o&&E.reportValidity&&(E.setCustomValidity(Or(H)?"":H||""),E.reportValidity())},N={},T=Wp(u),A=Ml(u),z=T||A,L=(C||Up(u))&&jt(u.value)&&jt(_)||Eu(u)&&u.value===""||_===""||Array.isArray(_)&&!_.length,M=L0.bind(null,S,i,N),Q=(H,ee,ne,Y=ns.maxLength,Z=ns.minLength)=>{const se=H?ee:ne;N[S]={type:H?Y:Z,message:se,ref:u,...M(H?Y:Z,se)}};if(l?!Array.isArray(_)||!_.length:h&&(!z&&(L||jn(_))||Or(_)&&!_||A&&!V0(c).isValid||T&&!B0(c).isValid)){const{value:H,message:ee}=zn(h)?{value:!!h,message:h}:Lo(h);if(H&&(N[S]={type:ns.required,message:ee,ref:E,...M(ns.required,ee)},!i))return R(ee),N}if(!L&&(!jn(v)||!jn(x))){let H,ee;const ne=Lo(x),Y=Lo(v);if(!jn(_)&&!isNaN(_)){const Z=u.valueAsNumber||_&&+_;jn(ne.value)||(H=Z>ne.value),jn(Y.value)||(ee=Z<Y.value)}else{const Z=u.valueAsDate||new Date(_),se=q=>new Date(new Date().toDateString()+" "+q),B=u.type=="time",te=u.type=="week";zn(ne.value)&&_&&(H=B?se(_)>se(ne.value):te?_>ne.value:Z>new Date(ne.value)),zn(Y.value)&&_&&(ee=B?se(_)<se(Y.value):te?_<Y.value:Z<new Date(Y.value))}if((H||ee)&&(Q(!!H,ne.message,Y.message,ns.max,ns.min),!i))return R(N[S].message),N}if((m||y)&&!L&&(zn(_)||l&&Array.isArray(_))){const H=Lo(m),ee=Lo(y),ne=!jn(H.value)&&_.length>+H.value,Y=!jn(ee.value)&&_.length<+ee.value;if((ne||Y)&&(Q(ne,H.message,ee.message),!i))return R(N[S].message),N}if(w&&!L&&zn(_)){const{value:H,message:ee}=Lo(w);if(ju(H)&&!_.match(H)&&(N[S]={type:ns.pattern,message:ee,ref:u,...M(ns.pattern,ee)},!i))return R(ee),N}if(k){if(wr(k)){const H=await k(_,n),ee=nx(H,E);if(ee&&(N[S]={...ee,...M(ns.validate,ee.message)},!i))return R(ee.message),N}else if(Bt(k)){let H={};for(const ee in k){if(!gn(H)&&!i)break;const ne=nx(await k[ee](_,n),E,ee);ne&&(H={...ne,...M(ee,ne.message)},R(ne.message),i&&(N[S]=H))}if(!gn(H)&&(N[S]={ref:E,...H},!i))return N}}return R(!0),N};const wP={mode:Sr.onSubmit,reValidateMode:Sr.onChange,shouldFocusError:!0};function SP(e={}){let t={...wP,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:wr(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},i={},o=Bt(t.defaultValues)||Bt(t.values)?Ht(t.defaultValues||t.values)||{}:{},l=t.shouldUnregister?{}:Ht(o),u={action:!1,mount:!1,watch:!1,keepIsValid:!1},c={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},h,m=0;const y={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},v={...y};let x={...v};const w={array:Qy(),state:Qy()},k=t.criteriaMode===Sr.all,S=D=>W=>{clearTimeout(m),m=setTimeout(D,W)},C=async D=>{if(!u.keepIsValid&&!t.disabled&&(v.isValid||x.isValid||D)){let W;t.resolver?(W=gn((await z()).errors),P()):W=await M(i,!0),W!==n.isValid&&w.state.next({isValid:W})}},P=(D,W)=>{!t.disabled&&(v.isValidating||v.validatingFields||x.isValidating||x.validatingFields)&&((D||Array.from(c.mount)).forEach(J=>{J&&(W?gt(n.validatingFields,J,W):Vt(n.validatingFields,J))}),w.state.next({validatingFields:n.validatingFields,isValidating:!gn(n.validatingFields)}))},_=(D,W=[],J,pe,le=!0,re=!0)=>{if(pe&&J&&!t.disabled){if(u.action=!0,re&&Array.isArray(Ce(i,D))){const he=J(Ce(i,D),pe.argA,pe.argB);le&>(i,D,he)}if(re&&Array.isArray(Ce(n.errors,D))){const he=J(Ce(n.errors,D),pe.argA,pe.argB);le&>(n.errors,D,he),yP(n.errors,D)}if((v.touchedFields||x.touchedFields)&&re&&Array.isArray(Ce(n.touchedFields,D))){const he=J(Ce(n.touchedFields,D),pe.argA,pe.argB);le&>(n.touchedFields,D,he)}(v.dirtyFields||x.dirtyFields)&&(n.dirtyFields=Do(o,l)),w.state.next({name:D,isDirty:H(D,W),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else gt(l,D,W)},E=(D,W)=>{gt(n.errors,D,W),w.state.next({errors:n.errors})},R=D=>{n.errors=D,w.state.next({errors:n.errors,isValid:!1})},N=(D,W,J,pe)=>{const le=Ce(i,D);if(le){const re=Ce(l,D,jt(J)?Ce(o,D):J);jt(re)||pe&&pe.defaultChecked||W?gt(l,D,W?re:Yy(le._f)):Y(D,re),u.mount&&!u.action&&C()}},T=(D,W,J,pe,le)=>{let re=!1,he=!1;const Me={name:D};if(!t.disabled){if(!J||pe){(v.isDirty||x.isDirty)&&(he=n.isDirty,n.isDirty=Me.isDirty=H(),re=he!==Me.isDirty);const $e=qs(Ce(o,D),W);he=!!Ce(n.dirtyFields,D),$e?Vt(n.dirtyFields,D):gt(n.dirtyFields,D,!0),Me.dirtyFields=n.dirtyFields,re=re||(v.dirtyFields||x.dirtyFields)&&he!==!$e}if(J){const $e=Ce(n.touchedFields,D);$e||(gt(n.touchedFields,D,J),Me.touchedFields=n.touchedFields,re=re||(v.touchedFields||x.touchedFields)&&$e!==J)}re&&le&&w.state.next(Me)}return re?Me:{}},A=(D,W,J,pe)=>{const le=Ce(n.errors,D),re=(v.isValid||x.isValid)&&Or(W)&&n.isValid!==W;if(t.delayError&&J?(h=S(()=>E(D,J)),h(t.delayError)):(clearTimeout(m),h=null,J?gt(n.errors,D,J):Vt(n.errors,D)),(J?!qs(le,J):le)||!gn(pe)||re){const he={...pe,...re&&Or(W)?{isValid:W}:{},errors:n.errors,name:D};n={...n,...he},w.state.next(he)}},z=async D=>(P(D,!0),await t.resolver(l,t.context,fP(D||c.mount,i,t.criteriaMode,t.shouldUseNativeValidation))),L=async D=>{const{errors:W}=await z(D);if(P(D),D)for(const J of D){const pe=Ce(W,J);pe?gt(n.errors,J,pe):Vt(n.errors,J)}else n.errors=W;return W},M=async(D,W,J={valid:!0})=>{for(const pe in D){const le=D[pe];if(le){const{_f:re,...he}=le;if(re){const Me=c.array.has(re.name),$e=le._f&&hP(le._f);$e&&v.validatingFields&&P([re.name],!0);const _t=await rx(le,c.disabled,l,k,t.shouldUseNativeValidation&&!W,Me);if($e&&v.validatingFields&&P([re.name]),_t[re.name]&&(J.valid=!1,W||e.shouldUseNativeValidation))break;!W&&(Ce(_t,re.name)?Me?xP(n.errors,_t,re.name):gt(n.errors,re.name,_t[re.name]):Vt(n.errors,re.name))}!gn(he)&&await M(he,W,J)}}return J.valid},Q=()=>{for(const D of c.unMount){const W=Ce(i,D);W&&(W._f.refs?W._f.refs.every(J=>!vh(J)):!vh(W._f.ref))&&ve(D)}c.unMount=new Set},H=(D,W)=>!t.disabled&&(D&&W&>(l,D,W),!qs(I(),o)),ee=(D,W,J)=>oP(D,c,{...u.mount?l:jt(W)?o:zn(D)?{[D]:W}:W},J,W),ne=D=>$p(Ce(u.mount?l:o,D,t.shouldUnregister?Ce(o,D,[]):[])),Y=(D,W,J={})=>{const pe=Ce(i,D);let le=W;if(pe){const re=pe._f;re&&(!re.disabled&>(l,D,$0(W,re)),le=Eu(re.ref)&&jn(W)?"":W,D0(re.ref)?[...re.ref.options].forEach(he=>he.selected=le.includes(he.value)):re.refs?Ml(re.ref)?re.refs.forEach(he=>{(!he.defaultChecked||!he.disabled)&&(Array.isArray(le)?he.checked=!!le.find(Me=>Me===he.value):he.checked=le===he.value||!!le)}):re.refs.forEach(he=>he.checked=he.value===le):Up(re.ref)?re.ref.value="":(re.ref.value=le,re.ref.type||w.state.next({name:D,values:Ht(l)})))}(J.shouldDirty||J.shouldTouch)&&T(D,le,J.shouldTouch,J.shouldDirty,!0),J.shouldValidate&&q(D)},Z=(D,W,J)=>{for(const pe in W){if(!W.hasOwnProperty(pe))return;const le=W[pe],re=D+"."+pe,he=Ce(i,re);(c.array.has(D)||Bt(le)||he&&!he._f)&&!zi(le)?Z(re,le,J):Y(re,le,J)}},se=(D,W,J={})=>{const pe=Ce(i,D),le=c.array.has(D),re=Ht(W);gt(l,D,re),le?(w.array.next({name:D,values:Ht(l)}),(v.isDirty||v.dirtyFields||x.isDirty||x.dirtyFields)&&J.shouldDirty&&w.state.next({name:D,dirtyFields:Do(o,l),isDirty:H(D,re)})):pe&&!pe._f&&!jn(re)?Z(D,re,J):Y(D,re,J),ex(D,c)?w.state.next({...n,name:D,values:Ht(l)}):w.state.next({name:u.mount?D:void 0,values:Ht(l)})},B=async D=>{u.mount=!0;const W=D.target;let J=W.name,pe=!0;const le=Ce(i,J),re=$e=>{pe=Number.isNaN($e)||zi($e)&&isNaN($e.getTime())||qs($e,Ce(l,J,$e))},he=Xy(t.mode),Me=Xy(t.reValidateMode);if(le){let $e,_t;const fn=W.type?Yy(le._f):JR(D),Kn=D.type===Ky.BLUR||D.type===Ky.FOCUS_OUT,lo=!pP(le._f)&&!t.resolver&&!Ce(n.errors,J)&&!le._f.deps||vP(Kn,Ce(n.touchedFields,J),n.isSubmitted,Me,he),fe=ex(J,c,Kn);gt(l,J,fn),Kn?(!W||!W.readOnly)&&(le._f.onBlur&&le._f.onBlur(D),h&&h(0)):le._f.onChange&&le._f.onChange(D);const qe=T(J,fn,Kn),Ve=!gn(qe)||fe;if(!Kn&&w.state.next({name:J,type:D.type,values:Ht(l)}),lo)return(v.isValid||x.isValid)&&(t.mode==="onBlur"?Kn&&C():Kn||C()),Ve&&w.state.next({name:J,...fe?{}:qe});if(!Kn&&fe&&w.state.next({...n}),t.resolver){const{errors:Be}=await z([J]);if(P([J]),re(fn),pe){const vt=tx(n.errors,i,J),Pt=tx(Be,i,vt.name||J);$e=Pt.error,J=Pt.name,_t=gn(Be)}}else P([J],!0),$e=(await rx(le,c.disabled,l,k,t.shouldUseNativeValidation))[J],P([J]),re(fn),pe&&($e?_t=!1:(v.isValid||x.isValid)&&(_t=await M(i,!0)));pe&&(le._f.deps&&(!Array.isArray(le._f.deps)||le._f.deps.length>0)&&q(le._f.deps),A(J,_t,$e,qe))}},te=(D,W)=>{if(Ce(n.errors,W)&&D.focus)return D.focus(),1},q=async(D,W={})=>{let J,pe;const le=dl(D);if(t.resolver){const re=await L(jt(D)?D:le);J=gn(re),pe=D?!le.some(he=>Ce(re,he)):J}else D?(pe=(await Promise.all(le.map(async re=>{const he=Ce(i,re);return await M(he&&he._f?{[re]:he}:he)}))).every(Boolean),!(!pe&&!n.isValid)&&C()):pe=J=await M(i);return w.state.next({...!zn(D)||(v.isValid||x.isValid)&&J!==n.isValid?{}:{name:D},...t.resolver||!D?{isValid:J}:{},errors:n.errors}),W.shouldFocus&&!pe&&fl(i,te,D?le:c.mount),pe},I=(D,W)=>{let J={...u.mount?l:o};return W&&(J=F0(W.dirtyFields?n.dirtyFields:n.touchedFields,J)),jt(D)?J:zn(D)?Ce(J,D):D.map(pe=>Ce(J,pe))},X=(D,W)=>({invalid:!!Ce((W||n).errors,D),isDirty:!!Ce((W||n).dirtyFields,D),error:Ce((W||n).errors,D),isValidating:!!Ce(n.validatingFields,D),isTouched:!!Ce((W||n).touchedFields,D)}),Re=D=>{D&&dl(D).forEach(W=>Vt(n.errors,W)),w.state.next({errors:D?n.errors:{}})},me=(D,W,J)=>{const pe=(Ce(i,D,{_f:{}})._f||{}).ref,le=Ce(n.errors,D)||{},{ref:re,message:he,type:Me,...$e}=le;gt(n.errors,D,{...$e,...W,ref:pe}),w.state.next({name:D,errors:n.errors,isValid:!1}),J&&J.shouldFocus&&pe&&pe.focus&&pe.focus()},Te=(D,W)=>wr(D)?w.state.subscribe({next:J=>"values"in J&&D(ee(void 0,W),J)}):ee(D,W,!0),Se=D=>w.state.subscribe({next:W=>{gP(D.name,W.name,D.exact)&&mP(W,D.formState||v,et,D.reRenderRoot)&&D.callback({values:{...l},...n,...W,defaultValues:o})}}).unsubscribe,ce=D=>(u.mount=!0,x={...x,...D.formState},Se({...D,formState:{...y,...D.formState}})),ve=(D,W={})=>{for(const J of D?dl(D):c.mount)c.mount.delete(J),c.array.delete(J),W.keepValue||(Vt(i,J),Vt(l,J)),!W.keepError&&Vt(n.errors,J),!W.keepDirty&&Vt(n.dirtyFields,J),!W.keepTouched&&Vt(n.touchedFields,J),!W.keepIsValidating&&Vt(n.validatingFields,J),!t.shouldUnregister&&!W.keepDefaultValue&&Vt(o,J);w.state.next({values:Ht(l)}),w.state.next({...n,...W.keepDirty?{isDirty:H()}:{}}),!W.keepIsValid&&C()},Ae=({disabled:D,name:W})=>{if(Or(D)&&u.mount||D||c.disabled.has(W)){const le=c.disabled.has(W)!==!!D;D?c.disabled.add(W):c.disabled.delete(W),le&&u.mount&&!u.action&&C()}},Ne=(D,W={})=>{let J=Ce(i,D);const pe=Or(W.disabled)||Or(t.disabled);return gt(i,D,{...J||{},_f:{...J&&J._f?J._f:{ref:{name:D}},name:D,mount:!0,...W}}),c.mount.add(D),J?Ae({disabled:Or(W.disabled)?W.disabled:t.disabled,name:D}):N(D,!0,W.value),{...pe?{disabled:W.disabled||t.disabled}:{},...t.progressive?{required:!!W.required,min:il(W.min),max:il(W.max),minLength:il(W.minLength),maxLength:il(W.maxLength),pattern:il(W.pattern)}:{},name:D,onChange:B,onBlur:B,ref:le=>{if(le){Ne(D,W),J=Ce(i,D);const re=jt(le.value)&&le.querySelectorAll&&le.querySelectorAll("input,select,textarea")[0]||le,he=lP(re),Me=J._f.refs||[];if(he?Me.find($e=>$e===re):re===J._f.ref)return;gt(i,D,{_f:{...J._f,...he?{refs:[...Me.filter(vh),re,...Array.isArray(Ce(o,D))?[{}]:[]],ref:{type:re.type,name:D}}:{ref:re}}}),N(D,!1,void 0,re)}else J=Ce(i,D,{}),J._f&&(J._f.mount=!1),(t.shouldUnregister||W.shouldUnregister)&&!(tP(c.array,D)&&u.action)&&c.unMount.add(D)}}},Le=()=>t.shouldFocusError&&fl(i,te,c.mount),Ue=D=>{Or(D)&&(w.state.next({disabled:D}),fl(i,(W,J)=>{const pe=Ce(i,J);pe&&(W.disabled=pe._f.disabled||D,Array.isArray(pe._f.refs)&&pe._f.refs.forEach(le=>{le.disabled=pe._f.disabled||D}))},0,!1))},ut=(D,W)=>async J=>{let pe;J&&(J.preventDefault&&J.preventDefault(),J.persist&&J.persist());let le=Ht(l);if(w.state.next({isSubmitting:!0}),t.resolver){const{errors:re,values:he}=await z();P(),n.errors=re,le=Ht(he)}else await M(i);if(c.disabled.size)for(const re of c.disabled)Vt(le,re);if(Vt(n.errors,"root"),gn(n.errors)){w.state.next({errors:{}});try{await D(le,J)}catch(re){pe=re}}else W&&await W({...n.errors},J),Le(),setTimeout(Le);if(w.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:gn(n.errors)&&!pe,submitCount:n.submitCount+1,errors:n.errors}),pe)throw pe},Mt=(D,W={})=>{Ce(i,D)&&(jt(W.defaultValue)?se(D,Ht(Ce(o,D))):(se(D,W.defaultValue),gt(o,D,Ht(W.defaultValue))),W.keepTouched||Vt(n.touchedFields,D),W.keepDirty||(Vt(n.dirtyFields,D),n.isDirty=W.defaultValue?H(D,Ht(Ce(o,D))):H()),W.keepError||(Vt(n.errors,D),v.isValid&&C()),w.state.next({...n}))},en=(D,W={})=>{const J=D?Ht(D):o,pe=Ht(J),le=gn(D),re=le?o:pe;if(W.keepDefaultValues||(o=J),!W.keepValues){if(W.keepDirtyValues){const he=new Set([...c.mount,...Object.keys(Do(o,l))]);for(const Me of Array.from(he)){const $e=Ce(n.dirtyFields,Me),_t=Ce(l,Me),fn=Ce(re,Me);$e&&!jt(_t)?gt(re,Me,_t):!$e&&!jt(fn)&&se(Me,fn)}}else{if(Vp&&jt(D))for(const he of c.mount){const Me=Ce(i,he);if(Me&&Me._f){const $e=Array.isArray(Me._f.refs)?Me._f.refs[0]:Me._f.ref;if(Eu($e)){const _t=$e.closest("form");if(_t){_t.reset();break}}}}if(W.keepFieldsRef)for(const he of c.mount)se(he,Ce(re,he));else i={}}l=t.shouldUnregister?W.keepDefaultValues?Ht(o):{}:Ht(re),w.array.next({values:{...re}}),w.state.next({values:{...re}})}c={mount:W.keepDirtyValues?c.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},u.mount=!v.isValid||!!W.keepIsValid||!!W.keepDirtyValues||!t.shouldUnregister&&!gn(re),u.watch=!!t.shouldUnregister,u.keepIsValid=!!W.keepIsValid,u.action=!1,W.keepErrors||(n.errors={}),w.state.next({submitCount:W.keepSubmitCount?n.submitCount:0,isDirty:le?!1:W.keepDirty?n.isDirty:!!(W.keepDefaultValues&&!qs(D,o)),isSubmitted:W.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:le?{}:W.keepDirtyValues?W.keepDefaultValues&&l?Do(o,l):n.dirtyFields:W.keepDefaultValues&&D?Do(o,D):W.keepDirty?n.dirtyFields:{},touchedFields:W.keepTouched?n.touchedFields:{},errors:W.keepErrors?n.errors:{},isSubmitSuccessful:W.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},Yt=(D,W)=>en(wr(D)?D(l):D,{...t.resetOptions,...W}),Dt=(D,W={})=>{const J=Ce(i,D),pe=J&&J._f;if(pe){const le=pe.refs?pe.refs[0]:pe.ref;le.focus&&setTimeout(()=>{le.focus(),W.shouldSelect&&wr(le.select)&&le.select()})}},et=D=>{n={...n,...D}},Nn={control:{register:Ne,unregister:ve,getFieldState:X,handleSubmit:ut,setError:me,_subscribe:Se,_runSchema:z,_updateIsValidating:P,_focusError:Le,_getWatch:ee,_getDirty:H,_setValid:C,_setFieldArray:_,_setDisabledField:Ae,_setErrors:R,_getFieldArray:ne,_reset:en,_resetDefaultValues:()=>wr(t.defaultValues)&&t.defaultValues().then(D=>{Yt(D,t.resetOptions),w.state.next({isLoading:!1})}),_removeUnmounted:Q,_disableForm:Ue,_subjects:w,_proxyFormState:v,get _fields(){return i},get _formValues(){return l},get _state(){return u},set _state(D){u=D},get _defaultValues(){return o},get _names(){return c},set _names(D){c=D},get _formState(){return n},get _options(){return t},set _options(D){t={...t,...D}}},subscribe:ce,trigger:q,register:Ne,handleSubmit:ut,watch:Te,setValue:se,getValues:I,reset:Yt,resetField:Mt,clearErrors:Re,unregister:ve,setError:me,setFocus:Dt,getFieldState:X};return{...Nn,formControl:Nn}}function bP(e={}){const t=st.useRef(void 0),n=st.useRef(void 0),[i,o]=st.useState({isDirty:!1,isValidating:!1,isLoading:wr(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:wr(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:i},e.defaultValues&&!wr(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:u,...c}=SP(e);t.current={...c,formState:i}}const l=t.current.control;return l._options=e,iP(()=>{const u=l._subscribe({formState:l._proxyFormState,callback:()=>o({...l._formState}),reRenderRoot:!0});return o(c=>({...c,isReady:!0})),l._formState.isReady=!0,u},[l]),st.useEffect(()=>l._disableForm(e.disabled),[l,e.disabled]),st.useEffect(()=>{e.mode&&(l._options.mode=e.mode),e.reValidateMode&&(l._options.reValidateMode=e.reValidateMode)},[l,e.mode,e.reValidateMode]),st.useEffect(()=>{e.errors&&(l._setErrors(e.errors),l._focusError())},[l,e.errors]),st.useEffect(()=>{e.shouldUnregister&&l._subjects.state.next({values:l._getWatch()})},[l,e.shouldUnregister]),st.useEffect(()=>{if(l._proxyFormState.isDirty){const u=l._getDirty();u!==i.isDirty&&l._subjects.state.next({isDirty:u})}},[l,i.isDirty]),st.useEffect(()=>{var u;e.values&&!qs(e.values,n.current)?(l._reset(e.values,{keepFieldsRef:!0,...l._options.resetOptions}),!((u=l._options.resetOptions)===null||u===void 0)&&u.keepIsValid||l._setValid(),n.current=e.values,o(c=>({...c}))):l._resetDefaultValues()},[l,e.values]),st.useEffect(()=>{l._state.mount||(l._setValid(),l._state.mount=!0),l._state.watch&&(l._state.watch=!1,l._subjects.state.next({...l._formState})),l._removeUnmounted()}),t.current.formState=st.useMemo(()=>sP(i,l),[l,i]),t.current}const sx=(e,t,n)=>{if(e&&"reportValidity"in e){const i=Ce(n,t);e.setCustomValidity(i&&i.message||""),e.reportValidity()}},U0=(e,t)=>{for(const n in t.fields){const i=t.fields[n];i&&i.ref&&"reportValidity"in i.ref?sx(i.ref,n,e):i.refs&&i.refs.forEach(o=>sx(o,n,e))}},CP=(e,t)=>{t.shouldUseNativeValidation&&U0(e,t);const n={};for(const i in e){const o=Ce(t.fields,i),l=Object.assign(e[i]||{},{ref:o&&o.ref});if(_P(t.names||Object.keys(e),i)){const u=Object.assign({},Ce(n,i));gt(u,"root",l),gt(n,i,u)}else gt(n,i,l)}return n},_P=(e,t)=>e.some(n=>n.startsWith(t+"."));var kP=function(e,t){for(var n={};e.length;){var i=e[0],o=i.code,l=i.message,u=i.path.join(".");if(!n[u])if("unionErrors"in i){var c=i.unionErrors[0].errors[0];n[u]={message:c.message,type:c.code}}else n[u]={message:l,type:o};if("unionErrors"in i&&i.unionErrors.forEach(function(y){return y.errors.forEach(function(v){return e.push(v)})}),t){var h=n[u].types,m=h&&h[i.code];n[u]=L0(u,t,n,o,m?[].concat(m,i.message):i.message)}e.shift()}return n},EP=function(e,t,n){return n===void 0&&(n={}),function(i,o,l){try{return Promise.resolve((function(u,c){try{var h=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](i,t)).then(function(m){return l.shouldUseNativeValidation&&U0({},l),{errors:{},values:n.raw?i:m}})}catch(m){return c(m)}return h&&h.then?h.then(void 0,c):h})(0,function(u){if((function(c){return Array.isArray(c==null?void 0:c.errors)})(u))return{values:{},errors:CP(kP(u.errors,!l.shouldUseNativeValidation&&l.criteriaMode==="all"),l)};throw u}))}catch(u){return Promise.reject(u)}}},it;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{const l={};for(const u of o)l[u]=u;return l},e.getValidEnumValues=o=>{const l=e.objectKeys(o).filter(c=>typeof o[o[c]]!="number"),u={};for(const c of l)u[c]=o[c];return e.objectValues(u)},e.objectValues=o=>e.objectKeys(o).map(function(l){return o[l]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const l=[];for(const u in o)Object.prototype.hasOwnProperty.call(o,u)&&l.push(u);return l},e.find=(o,l)=>{for(const u of o)if(l(u))return u},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function i(o,l=" | "){return o.map(u=>typeof u=="string"?`'${u}'`:u).join(l)}e.joinValues=i,e.jsonStringifyReplacer=(o,l)=>typeof l=="bigint"?l.toString():l})(it||(it={}));var ix;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(ix||(ix={}));const ke=it.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Zs=e=>{switch(typeof e){case"undefined":return ke.undefined;case"string":return ke.string;case"number":return Number.isNaN(e)?ke.nan:ke.number;case"boolean":return ke.boolean;case"function":return ke.function;case"bigint":return ke.bigint;case"symbol":return ke.symbol;case"object":return Array.isArray(e)?ke.array:e===null?ke.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ke.promise:typeof Map<"u"&&e instanceof Map?ke.map:typeof Set<"u"&&e instanceof Set?ke.set:typeof Date<"u"&&e instanceof Date?ke.date:ke.object;default:return ke.unknown}},de=it.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ms extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(l){return l.message},i={_errors:[]},o=l=>{for(const u of l.issues)if(u.code==="invalid_union")u.unionErrors.map(o);else if(u.code==="invalid_return_type")o(u.returnTypeError);else if(u.code==="invalid_arguments")o(u.argumentsError);else if(u.path.length===0)i._errors.push(n(u));else{let c=i,h=0;for(;h<u.path.length;){const m=u.path[h];h===u.path.length-1?(c[m]=c[m]||{_errors:[]},c[m]._errors.push(n(u))):c[m]=c[m]||{_errors:[]},c=c[m],h++}}};return o(this),i}static assert(t){if(!(t instanceof ms))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,it.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},i=[];for(const o of this.issues)if(o.path.length>0){const l=o.path[0];n[l]=n[l]||[],n[l].push(t(o))}else i.push(t(o));return{formErrors:i,fieldErrors:n}}get formErrors(){return this.flatten()}}ms.create=e=>new ms(e);const Zh=(e,t)=>{let n;switch(e.code){case de.invalid_type:e.received===ke.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case de.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,it.jsonStringifyReplacer)}`;break;case de.unrecognized_keys:n=`Unrecognized key(s) in object: ${it.joinValues(e.keys,", ")}`;break;case de.invalid_union:n="Invalid input";break;case de.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${it.joinValues(e.options)}`;break;case de.invalid_enum_value:n=`Invalid enum value. Expected ${it.joinValues(e.options)}, received '${e.received}'`;break;case de.invalid_arguments:n="Invalid function arguments";break;case de.invalid_return_type:n="Invalid function return type";break;case de.invalid_date:n="Invalid date";break;case de.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:it.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case de.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case de.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case de.custom:n="Invalid input";break;case de.invalid_intersection_types:n="Intersection results could not be merged";break;case de.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case de.not_finite:n="Number must be finite";break;default:n=t.defaultError,it.assertNever(e)}return{message:n}};let jP=Zh;function RP(){return jP}const PP=e=>{const{data:t,path:n,errorMaps:i,issueData:o}=e,l=[...n,...o.path||[]],u={...o,path:l};if(o.message!==void 0)return{...o,path:l,message:o.message};let c="";const h=i.filter(m=>!!m).slice().reverse();for(const m of h)c=m(u,{data:t,defaultError:c}).message;return{...o,path:l,message:c}};function xe(e,t){const n=RP(),i=PP({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Zh?void 0:Zh].filter(o=>!!o)});e.common.issues.push(i)}class Bn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const i=[];for(const o of n){if(o.status==="aborted")return De;o.status==="dirty"&&t.dirty(),i.push(o.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,n){const i=[];for(const o of n){const l=await o.key,u=await o.value;i.push({key:l,value:u})}return Bn.mergeObjectSync(t,i)}static mergeObjectSync(t,n){const i={};for(const o of n){const{key:l,value:u}=o;if(l.status==="aborted"||u.status==="aborted")return De;l.status==="dirty"&&t.dirty(),u.status==="dirty"&&t.dirty(),l.value!=="__proto__"&&(typeof u.value<"u"||o.alwaysSet)&&(i[l.value]=u.value)}return{status:t.value,value:i}}}const De=Object.freeze({status:"aborted"}),al=e=>({status:"dirty",value:e}),or=e=>({status:"valid",value:e}),ox=e=>e.status==="aborted",ax=e=>e.status==="dirty",ia=e=>e.status==="valid",Ru=e=>typeof Promise<"u"&&e instanceof Promise;var je;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(je||(je={}));class pi{constructor(t,n,i,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=i,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const lx=(e,t)=>{if(ia(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new ms(e.common.issues);return this._error=n,this._error}}};function Ze(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:i,description:o}=e;if(t&&(n||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(u,c)=>{const{message:h}=e;return u.code==="invalid_enum_value"?{message:h??c.defaultError}:typeof c.data>"u"?{message:h??i??c.defaultError}:u.code!=="invalid_type"?{message:c.defaultError}:{message:h??n??c.defaultError}},description:o}}class nt{get description(){return this._def.description}_getType(t){return Zs(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Zs(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Bn,ctx:{common:t.parent.common,data:t.data,parsedType:Zs(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Ru(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const i=this.safeParse(t,n);if(i.success)return i.data;throw i.error}safeParse(t,n){const i={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Zs(t)},o=this._parseSync({data:t,path:i.path,parent:i});return lx(i,o)}"~validate"(t){var i,o;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Zs(t)};if(!this["~standard"].async)try{const l=this._parseSync({data:t,path:[],parent:n});return ia(l)?{value:l.value}:{issues:n.common.issues}}catch(l){(o=(i=l==null?void 0:l.message)==null?void 0:i.toLowerCase())!=null&&o.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(l=>ia(l)?{value:l.value}:{issues:n.common.issues})}async parseAsync(t,n){const i=await this.safeParseAsync(t,n);if(i.success)return i.data;throw i.error}async safeParseAsync(t,n){const i={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Zs(t)},o=this._parse({data:t,path:i.path,parent:i}),l=await(Ru(o)?o:Promise.resolve(o));return lx(i,l)}refine(t,n){const i=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,l)=>{const u=t(o),c=()=>l.addIssue({code:de.custom,...i(o)});return typeof Promise<"u"&&u instanceof Promise?u.then(h=>h?!0:(c(),!1)):u?!0:(c(),!1)})}refinement(t,n){return this._refinement((i,o)=>t(i)?!0:(o.addIssue(typeof n=="function"?n(i,o):n),!1))}_refinement(t){return new aa({schema:this,typeName:ze.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return di.create(this,this._def)}nullable(){return la.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return zr.create(this)}promise(){return Au.create(this,this._def)}or(t){return Nu.create([this,t],this._def)}and(t){return Tu.create(this,t,this._def)}transform(t){return new aa({...Ze(this._def),schema:this,typeName:ze.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Gh({...Ze(this._def),innerType:this,defaultValue:n,typeName:ze.ZodDefault})}brand(){return new XP({typeName:ze.ZodBranded,type:this,...Ze(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Yh({...Ze(this._def),innerType:this,catchValue:n,typeName:ze.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Hp.create(this,t)}readonly(){return Xh.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const NP=/^c[^\s-]{8,}$/i,TP=/^[0-9a-z]+$/,AP=/^[0-9A-HJKMNP-TV-Z]{26}$/i,OP=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,IP=/^[a-z0-9_-]{21}$/i,MP=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,LP=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,FP=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,DP="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let yh;const zP=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,VP=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,$P=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,BP=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,UP=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,WP=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,W0="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",HP=new RegExp(`^${W0}$`);function H0(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function KP(e){return new RegExp(`^${H0(e)}$`)}function QP(e){let t=`${W0}T${H0(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function ZP(e,t){return!!((t==="v4"||!t)&&zP.test(e)||(t==="v6"||!t)&&$P.test(e))}function qP(e,t){if(!MP.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const i=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),o=JSON.parse(atob(i));return!(typeof o!="object"||o===null||"typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||t&&o.alg!==t)}catch{return!1}}function GP(e,t){return!!((t==="v4"||!t)&&VP.test(e)||(t==="v6"||!t)&&BP.test(e))}class ai extends nt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ke.string){const l=this._getOrReturnCtx(t);return xe(l,{code:de.invalid_type,expected:ke.string,received:l.parsedType}),De}const i=new Bn;let o;for(const l of this._def.checks)if(l.kind==="min")t.data.length<l.value&&(o=this._getOrReturnCtx(t,o),xe(o,{code:de.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),i.dirty());else if(l.kind==="max")t.data.length>l.value&&(o=this._getOrReturnCtx(t,o),xe(o,{code:de.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),i.dirty());else if(l.kind==="length"){const u=t.data.length>l.value,c=t.data.length<l.value;(u||c)&&(o=this._getOrReturnCtx(t,o),u?xe(o,{code:de.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}):c&&xe(o,{code:de.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}),i.dirty())}else if(l.kind==="email")FP.test(t.data)||(o=this._getOrReturnCtx(t,o),xe(o,{validation:"email",code:de.invalid_string,message:l.message}),i.dirty());else if(l.kind==="emoji")yh||(yh=new RegExp(DP,"u")),yh.test(t.data)||(o=this._getOrReturnCtx(t,o),xe(o,{validation:"emoji",code:de.invalid_string,message:l.message}),i.dirty());else if(l.kind==="uuid")OP.test(t.data)||(o=this._getOrReturnCtx(t,o),xe(o,{validation:"uuid",code:de.invalid_string,message:l.message}),i.dirty());else if(l.kind==="nanoid")IP.test(t.data)||(o=this._getOrReturnCtx(t,o),xe(o,{validation:"nanoid",code:de.invalid_string,message:l.message}),i.dirty());else if(l.kind==="cuid")NP.test(t.data)||(o=this._getOrReturnCtx(t,o),xe(o,{validation:"cuid",code:de.invalid_string,message:l.message}),i.dirty());else if(l.kind==="cuid2")TP.test(t.data)||(o=this._getOrReturnCtx(t,o),xe(o,{validation:"cuid2",code:de.invalid_string,message:l.message}),i.dirty());else if(l.kind==="ulid")AP.test(t.data)||(o=this._getOrReturnCtx(t,o),xe(o,{validation:"ulid",code:de.invalid_string,message:l.message}),i.dirty());else if(l.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),xe(o,{validation:"url",code:de.invalid_string,message:l.message}),i.dirty()}else l.kind==="regex"?(l.regex.lastIndex=0,l.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),xe(o,{validation:"regex",code:de.invalid_string,message:l.message}),i.dirty())):l.kind==="trim"?t.data=t.data.trim():l.kind==="includes"?t.data.includes(l.value,l.position)||(o=this._getOrReturnCtx(t,o),xe(o,{code:de.invalid_string,validation:{includes:l.value,position:l.position},message:l.message}),i.dirty()):l.kind==="toLowerCase"?t.data=t.data.toLowerCase():l.kind==="toUpperCase"?t.data=t.data.toUpperCase():l.kind==="startsWith"?t.data.startsWith(l.value)||(o=this._getOrReturnCtx(t,o),xe(o,{code:de.invalid_string,validation:{startsWith:l.value},message:l.message}),i.dirty()):l.kind==="endsWith"?t.data.endsWith(l.value)||(o=this._getOrReturnCtx(t,o),xe(o,{code:de.invalid_string,validation:{endsWith:l.value},message:l.message}),i.dirty()):l.kind==="datetime"?QP(l).test(t.data)||(o=this._getOrReturnCtx(t,o),xe(o,{code:de.invalid_string,validation:"datetime",message:l.message}),i.dirty()):l.kind==="date"?HP.test(t.data)||(o=this._getOrReturnCtx(t,o),xe(o,{code:de.invalid_string,validation:"date",message:l.message}),i.dirty()):l.kind==="time"?KP(l).test(t.data)||(o=this._getOrReturnCtx(t,o),xe(o,{code:de.invalid_string,validation:"time",message:l.message}),i.dirty()):l.kind==="duration"?LP.test(t.data)||(o=this._getOrReturnCtx(t,o),xe(o,{validation:"duration",code:de.invalid_string,message:l.message}),i.dirty()):l.kind==="ip"?ZP(t.data,l.version)||(o=this._getOrReturnCtx(t,o),xe(o,{validation:"ip",code:de.invalid_string,message:l.message}),i.dirty()):l.kind==="jwt"?qP(t.data,l.alg)||(o=this._getOrReturnCtx(t,o),xe(o,{validation:"jwt",code:de.invalid_string,message:l.message}),i.dirty()):l.kind==="cidr"?GP(t.data,l.version)||(o=this._getOrReturnCtx(t,o),xe(o,{validation:"cidr",code:de.invalid_string,message:l.message}),i.dirty()):l.kind==="base64"?UP.test(t.data)||(o=this._getOrReturnCtx(t,o),xe(o,{validation:"base64",code:de.invalid_string,message:l.message}),i.dirty()):l.kind==="base64url"?WP.test(t.data)||(o=this._getOrReturnCtx(t,o),xe(o,{validation:"base64url",code:de.invalid_string,message:l.message}),i.dirty()):it.assertNever(l);return{status:i.value,value:t.data}}_regex(t,n,i){return this.refinement(o=>t.test(o),{validation:n,code:de.invalid_string,...je.errToObj(i)})}_addCheck(t){return new ai({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...je.errToObj(t)})}url(t){return this._addCheck({kind:"url",...je.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...je.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...je.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...je.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...je.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...je.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...je.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...je.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...je.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...je.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...je.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...je.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...je.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...je.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...je.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...je.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...je.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...je.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...je.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...je.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...je.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...je.errToObj(n)})}nonempty(t){return this.min(1,je.errToObj(t))}trim(){return new ai({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ai({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ai({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}ai.create=e=>new ai({checks:[],typeName:ze.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...Ze(e)});function YP(e,t){const n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,o=n>i?n:i,l=Number.parseInt(e.toFixed(o).replace(".","")),u=Number.parseInt(t.toFixed(o).replace(".",""));return l%u/10**o}class wl extends nt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ke.number){const l=this._getOrReturnCtx(t);return xe(l,{code:de.invalid_type,expected:ke.number,received:l.parsedType}),De}let i;const o=new Bn;for(const l of this._def.checks)l.kind==="int"?it.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),xe(i,{code:de.invalid_type,expected:"integer",received:"float",message:l.message}),o.dirty()):l.kind==="min"?(l.inclusive?t.data<l.value:t.data<=l.value)&&(i=this._getOrReturnCtx(t,i),xe(i,{code:de.too_small,minimum:l.value,type:"number",inclusive:l.inclusive,exact:!1,message:l.message}),o.dirty()):l.kind==="max"?(l.inclusive?t.data>l.value:t.data>=l.value)&&(i=this._getOrReturnCtx(t,i),xe(i,{code:de.too_big,maximum:l.value,type:"number",inclusive:l.inclusive,exact:!1,message:l.message}),o.dirty()):l.kind==="multipleOf"?YP(t.data,l.value)!==0&&(i=this._getOrReturnCtx(t,i),xe(i,{code:de.not_multiple_of,multipleOf:l.value,message:l.message}),o.dirty()):l.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),xe(i,{code:de.not_finite,message:l.message}),o.dirty()):it.assertNever(l);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,je.toString(n))}gt(t,n){return this.setLimit("min",t,!1,je.toString(n))}lte(t,n){return this.setLimit("max",t,!0,je.toString(n))}lt(t,n){return this.setLimit("max",t,!1,je.toString(n))}setLimit(t,n,i,o){return new wl({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:je.toString(o)}]})}_addCheck(t){return new wl({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:je.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:je.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:je.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:je.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:je.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:je.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:je.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:je.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:je.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&it.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(n===null||i.value>n)&&(n=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(n)&&Number.isFinite(t)}}wl.create=e=>new wl({checks:[],typeName:ze.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Ze(e)});class Sl extends nt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==ke.bigint)return this._getInvalidInput(t);let i;const o=new Bn;for(const l of this._def.checks)l.kind==="min"?(l.inclusive?t.data<l.value:t.data<=l.value)&&(i=this._getOrReturnCtx(t,i),xe(i,{code:de.too_small,type:"bigint",minimum:l.value,inclusive:l.inclusive,message:l.message}),o.dirty()):l.kind==="max"?(l.inclusive?t.data>l.value:t.data>=l.value)&&(i=this._getOrReturnCtx(t,i),xe(i,{code:de.too_big,type:"bigint",maximum:l.value,inclusive:l.inclusive,message:l.message}),o.dirty()):l.kind==="multipleOf"?t.data%l.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),xe(i,{code:de.not_multiple_of,multipleOf:l.value,message:l.message}),o.dirty()):it.assertNever(l);return{status:o.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return xe(n,{code:de.invalid_type,expected:ke.bigint,received:n.parsedType}),De}gte(t,n){return this.setLimit("min",t,!0,je.toString(n))}gt(t,n){return this.setLimit("min",t,!1,je.toString(n))}lte(t,n){return this.setLimit("max",t,!0,je.toString(n))}lt(t,n){return this.setLimit("max",t,!1,je.toString(n))}setLimit(t,n,i,o){return new Sl({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:je.toString(o)}]})}_addCheck(t){return new Sl({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:je.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:je.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:je.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:je.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:je.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Sl.create=e=>new Sl({checks:[],typeName:ze.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...Ze(e)});class cx extends nt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ke.boolean){const i=this._getOrReturnCtx(t);return xe(i,{code:de.invalid_type,expected:ke.boolean,received:i.parsedType}),De}return or(t.data)}}cx.create=e=>new cx({typeName:ze.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Ze(e)});class Pu extends nt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ke.date){const l=this._getOrReturnCtx(t);return xe(l,{code:de.invalid_type,expected:ke.date,received:l.parsedType}),De}if(Number.isNaN(t.data.getTime())){const l=this._getOrReturnCtx(t);return xe(l,{code:de.invalid_date}),De}const i=new Bn;let o;for(const l of this._def.checks)l.kind==="min"?t.data.getTime()<l.value&&(o=this._getOrReturnCtx(t,o),xe(o,{code:de.too_small,message:l.message,inclusive:!0,exact:!1,minimum:l.value,type:"date"}),i.dirty()):l.kind==="max"?t.data.getTime()>l.value&&(o=this._getOrReturnCtx(t,o),xe(o,{code:de.too_big,message:l.message,inclusive:!0,exact:!1,maximum:l.value,type:"date"}),i.dirty()):it.assertNever(l);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Pu({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:je.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:je.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Pu.create=e=>new Pu({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:ze.ZodDate,...Ze(e)});class ux extends nt{_parse(t){if(this._getType(t)!==ke.symbol){const i=this._getOrReturnCtx(t);return xe(i,{code:de.invalid_type,expected:ke.symbol,received:i.parsedType}),De}return or(t.data)}}ux.create=e=>new ux({typeName:ze.ZodSymbol,...Ze(e)});class dx extends nt{_parse(t){if(this._getType(t)!==ke.undefined){const i=this._getOrReturnCtx(t);return xe(i,{code:de.invalid_type,expected:ke.undefined,received:i.parsedType}),De}return or(t.data)}}dx.create=e=>new dx({typeName:ze.ZodUndefined,...Ze(e)});class fx extends nt{_parse(t){if(this._getType(t)!==ke.null){const i=this._getOrReturnCtx(t);return xe(i,{code:de.invalid_type,expected:ke.null,received:i.parsedType}),De}return or(t.data)}}fx.create=e=>new fx({typeName:ze.ZodNull,...Ze(e)});class hx extends nt{constructor(){super(...arguments),this._any=!0}_parse(t){return or(t.data)}}hx.create=e=>new hx({typeName:ze.ZodAny,...Ze(e)});class px extends nt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return or(t.data)}}px.create=e=>new px({typeName:ze.ZodUnknown,...Ze(e)});class mi extends nt{_parse(t){const n=this._getOrReturnCtx(t);return xe(n,{code:de.invalid_type,expected:ke.never,received:n.parsedType}),De}}mi.create=e=>new mi({typeName:ze.ZodNever,...Ze(e)});class mx extends nt{_parse(t){if(this._getType(t)!==ke.undefined){const i=this._getOrReturnCtx(t);return xe(i,{code:de.invalid_type,expected:ke.void,received:i.parsedType}),De}return or(t.data)}}mx.create=e=>new mx({typeName:ze.ZodVoid,...Ze(e)});class zr extends nt{_parse(t){const{ctx:n,status:i}=this._processInputParams(t),o=this._def;if(n.parsedType!==ke.array)return xe(n,{code:de.invalid_type,expected:ke.array,received:n.parsedType}),De;if(o.exactLength!==null){const u=n.data.length>o.exactLength.value,c=n.data.length<o.exactLength.value;(u||c)&&(xe(n,{code:u?de.too_big:de.too_small,minimum:c?o.exactLength.value:void 0,maximum:u?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),i.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(xe(n,{code:de.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),i.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(xe(n,{code:de.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),i.dirty()),n.common.async)return Promise.all([...n.data].map((u,c)=>o.type._parseAsync(new pi(n,u,n.path,c)))).then(u=>Bn.mergeArray(i,u));const l=[...n.data].map((u,c)=>o.type._parseSync(new pi(n,u,n.path,c)));return Bn.mergeArray(i,l)}get element(){return this._def.type}min(t,n){return new zr({...this._def,minLength:{value:t,message:je.toString(n)}})}max(t,n){return new zr({...this._def,maxLength:{value:t,message:je.toString(n)}})}length(t,n){return new zr({...this._def,exactLength:{value:t,message:je.toString(n)}})}nonempty(t){return this.min(1,t)}}zr.create=(e,t)=>new zr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ze.ZodArray,...Ze(t)});function zo(e){if(e instanceof $t){const t={};for(const n in e.shape){const i=e.shape[n];t[n]=di.create(zo(i))}return new $t({...e._def,shape:()=>t})}else return e instanceof zr?new zr({...e._def,type:zo(e.element)}):e instanceof di?di.create(zo(e.unwrap())):e instanceof la?la.create(zo(e.unwrap())):e instanceof so?so.create(e.items.map(t=>zo(t))):e}class $t extends nt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=it.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==ke.object){const m=this._getOrReturnCtx(t);return xe(m,{code:de.invalid_type,expected:ke.object,received:m.parsedType}),De}const{status:i,ctx:o}=this._processInputParams(t),{shape:l,keys:u}=this._getCached(),c=[];if(!(this._def.catchall instanceof mi&&this._def.unknownKeys==="strip"))for(const m in o.data)u.includes(m)||c.push(m);const h=[];for(const m of u){const y=l[m],v=o.data[m];h.push({key:{status:"valid",value:m},value:y._parse(new pi(o,v,o.path,m)),alwaysSet:m in o.data})}if(this._def.catchall instanceof mi){const m=this._def.unknownKeys;if(m==="passthrough")for(const y of c)h.push({key:{status:"valid",value:y},value:{status:"valid",value:o.data[y]}});else if(m==="strict")c.length>0&&(xe(o,{code:de.unrecognized_keys,keys:c}),i.dirty());else if(m!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const m=this._def.catchall;for(const y of c){const v=o.data[y];h.push({key:{status:"valid",value:y},value:m._parse(new pi(o,v,o.path,y)),alwaysSet:y in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const m=[];for(const y of h){const v=await y.key,x=await y.value;m.push({key:v,value:x,alwaysSet:y.alwaysSet})}return m}).then(m=>Bn.mergeObjectSync(i,m)):Bn.mergeObjectSync(i,h)}get shape(){return this._def.shape()}strict(t){return je.errToObj,new $t({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,i)=>{var l,u;const o=((u=(l=this._def).errorMap)==null?void 0:u.call(l,n,i).message)??i.defaultError;return n.code==="unrecognized_keys"?{message:je.errToObj(t).message??o}:{message:o}}}:{}})}strip(){return new $t({...this._def,unknownKeys:"strip"})}passthrough(){return new $t({...this._def,unknownKeys:"passthrough"})}extend(t){return new $t({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new $t({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:ze.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new $t({...this._def,catchall:t})}pick(t){const n={};for(const i of it.objectKeys(t))t[i]&&this.shape[i]&&(n[i]=this.shape[i]);return new $t({...this._def,shape:()=>n})}omit(t){const n={};for(const i of it.objectKeys(this.shape))t[i]||(n[i]=this.shape[i]);return new $t({...this._def,shape:()=>n})}deepPartial(){return zo(this)}partial(t){const n={};for(const i of it.objectKeys(this.shape)){const o=this.shape[i];t&&!t[i]?n[i]=o:n[i]=o.optional()}return new $t({...this._def,shape:()=>n})}required(t){const n={};for(const i of it.objectKeys(this.shape))if(t&&!t[i])n[i]=this.shape[i];else{let l=this.shape[i];for(;l instanceof di;)l=l._def.innerType;n[i]=l}return new $t({...this._def,shape:()=>n})}keyof(){return K0(it.objectKeys(this.shape))}}$t.create=(e,t)=>new $t({shape:()=>e,unknownKeys:"strip",catchall:mi.create(),typeName:ze.ZodObject,...Ze(t)});$t.strictCreate=(e,t)=>new $t({shape:()=>e,unknownKeys:"strict",catchall:mi.create(),typeName:ze.ZodObject,...Ze(t)});$t.lazycreate=(e,t)=>new $t({shape:e,unknownKeys:"strip",catchall:mi.create(),typeName:ze.ZodObject,...Ze(t)});class Nu extends nt{_parse(t){const{ctx:n}=this._processInputParams(t),i=this._def.options;function o(l){for(const c of l)if(c.result.status==="valid")return c.result;for(const c of l)if(c.result.status==="dirty")return n.common.issues.push(...c.ctx.common.issues),c.result;const u=l.map(c=>new ms(c.ctx.common.issues));return xe(n,{code:de.invalid_union,unionErrors:u}),De}if(n.common.async)return Promise.all(i.map(async l=>{const u={...n,common:{...n.common,issues:[]},parent:null};return{result:await l._parseAsync({data:n.data,path:n.path,parent:u}),ctx:u}})).then(o);{let l;const u=[];for(const h of i){const m={...n,common:{...n.common,issues:[]},parent:null},y=h._parseSync({data:n.data,path:n.path,parent:m});if(y.status==="valid")return y;y.status==="dirty"&&!l&&(l={result:y,ctx:m}),m.common.issues.length&&u.push(m.common.issues)}if(l)return n.common.issues.push(...l.ctx.common.issues),l.result;const c=u.map(h=>new ms(h));return xe(n,{code:de.invalid_union,unionErrors:c}),De}}get options(){return this._def.options}}Nu.create=(e,t)=>new Nu({options:e,typeName:ze.ZodUnion,...Ze(t)});function qh(e,t){const n=Zs(e),i=Zs(t);if(e===t)return{valid:!0,data:e};if(n===ke.object&&i===ke.object){const o=it.objectKeys(t),l=it.objectKeys(e).filter(c=>o.indexOf(c)!==-1),u={...e,...t};for(const c of l){const h=qh(e[c],t[c]);if(!h.valid)return{valid:!1};u[c]=h.data}return{valid:!0,data:u}}else if(n===ke.array&&i===ke.array){if(e.length!==t.length)return{valid:!1};const o=[];for(let l=0;l<e.length;l++){const u=e[l],c=t[l],h=qh(u,c);if(!h.valid)return{valid:!1};o.push(h.data)}return{valid:!0,data:o}}else return n===ke.date&&i===ke.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Tu extends nt{_parse(t){const{status:n,ctx:i}=this._processInputParams(t),o=(l,u)=>{if(ox(l)||ox(u))return De;const c=qh(l.value,u.value);return c.valid?((ax(l)||ax(u))&&n.dirty(),{status:n.value,value:c.data}):(xe(i,{code:de.invalid_intersection_types}),De)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([l,u])=>o(l,u)):o(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}Tu.create=(e,t,n)=>new Tu({left:e,right:t,typeName:ze.ZodIntersection,...Ze(n)});class so extends nt{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==ke.array)return xe(i,{code:de.invalid_type,expected:ke.array,received:i.parsedType}),De;if(i.data.length<this._def.items.length)return xe(i,{code:de.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),De;!this._def.rest&&i.data.length>this._def.items.length&&(xe(i,{code:de.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const l=[...i.data].map((u,c)=>{const h=this._def.items[c]||this._def.rest;return h?h._parse(new pi(i,u,i.path,c)):null}).filter(u=>!!u);return i.common.async?Promise.all(l).then(u=>Bn.mergeArray(n,u)):Bn.mergeArray(n,l)}get items(){return this._def.items}rest(t){return new so({...this._def,rest:t})}}so.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new so({items:e,typeName:ze.ZodTuple,rest:null,...Ze(t)})};class gx extends nt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==ke.map)return xe(i,{code:de.invalid_type,expected:ke.map,received:i.parsedType}),De;const o=this._def.keyType,l=this._def.valueType,u=[...i.data.entries()].map(([c,h],m)=>({key:o._parse(new pi(i,c,i.path,[m,"key"])),value:l._parse(new pi(i,h,i.path,[m,"value"]))}));if(i.common.async){const c=new Map;return Promise.resolve().then(async()=>{for(const h of u){const m=await h.key,y=await h.value;if(m.status==="aborted"||y.status==="aborted")return De;(m.status==="dirty"||y.status==="dirty")&&n.dirty(),c.set(m.value,y.value)}return{status:n.value,value:c}})}else{const c=new Map;for(const h of u){const m=h.key,y=h.value;if(m.status==="aborted"||y.status==="aborted")return De;(m.status==="dirty"||y.status==="dirty")&&n.dirty(),c.set(m.value,y.value)}return{status:n.value,value:c}}}}gx.create=(e,t,n)=>new gx({valueType:t,keyType:e,typeName:ze.ZodMap,...Ze(n)});class bl extends nt{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==ke.set)return xe(i,{code:de.invalid_type,expected:ke.set,received:i.parsedType}),De;const o=this._def;o.minSize!==null&&i.data.size<o.minSize.value&&(xe(i,{code:de.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&i.data.size>o.maxSize.value&&(xe(i,{code:de.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());const l=this._def.valueType;function u(h){const m=new Set;for(const y of h){if(y.status==="aborted")return De;y.status==="dirty"&&n.dirty(),m.add(y.value)}return{status:n.value,value:m}}const c=[...i.data.values()].map((h,m)=>l._parse(new pi(i,h,i.path,m)));return i.common.async?Promise.all(c).then(h=>u(h)):u(c)}min(t,n){return new bl({...this._def,minSize:{value:t,message:je.toString(n)}})}max(t,n){return new bl({...this._def,maxSize:{value:t,message:je.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}bl.create=(e,t)=>new bl({valueType:e,minSize:null,maxSize:null,typeName:ze.ZodSet,...Ze(t)});class vx extends nt{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}vx.create=(e,t)=>new vx({getter:e,typeName:ze.ZodLazy,...Ze(t)});class yx extends nt{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return xe(n,{received:n.data,code:de.invalid_literal,expected:this._def.value}),De}return{status:"valid",value:t.data}}get value(){return this._def.value}}yx.create=(e,t)=>new yx({value:e,typeName:ze.ZodLiteral,...Ze(t)});function K0(e,t){return new oa({values:e,typeName:ze.ZodEnum,...Ze(t)})}class oa extends nt{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),i=this._def.values;return xe(n,{expected:it.joinValues(i),received:n.parsedType,code:de.invalid_type}),De}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),i=this._def.values;return xe(n,{received:n.data,code:de.invalid_enum_value,options:i}),De}return or(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return oa.create(t,{...this._def,...n})}exclude(t,n=this._def){return oa.create(this.options.filter(i=>!t.includes(i)),{...this._def,...n})}}oa.create=K0;class xx extends nt{_parse(t){const n=it.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==ke.string&&i.parsedType!==ke.number){const o=it.objectValues(n);return xe(i,{expected:it.joinValues(o),received:i.parsedType,code:de.invalid_type}),De}if(this._cache||(this._cache=new Set(it.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const o=it.objectValues(n);return xe(i,{received:i.data,code:de.invalid_enum_value,options:o}),De}return or(t.data)}get enum(){return this._def.values}}xx.create=(e,t)=>new xx({values:e,typeName:ze.ZodNativeEnum,...Ze(t)});class Au extends nt{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ke.promise&&n.common.async===!1)return xe(n,{code:de.invalid_type,expected:ke.promise,received:n.parsedType}),De;const i=n.parsedType===ke.promise?n.data:Promise.resolve(n.data);return or(i.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Au.create=(e,t)=>new Au({type:e,typeName:ze.ZodPromise,...Ze(t)});class aa extends nt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ze.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:i}=this._processInputParams(t),o=this._def.effect||null,l={addIssue:u=>{xe(i,u),u.fatal?n.abort():n.dirty()},get path(){return i.path}};if(l.addIssue=l.addIssue.bind(l),o.type==="preprocess"){const u=o.transform(i.data,l);if(i.common.async)return Promise.resolve(u).then(async c=>{if(n.value==="aborted")return De;const h=await this._def.schema._parseAsync({data:c,path:i.path,parent:i});return h.status==="aborted"?De:h.status==="dirty"||n.value==="dirty"?al(h.value):h});{if(n.value==="aborted")return De;const c=this._def.schema._parseSync({data:u,path:i.path,parent:i});return c.status==="aborted"?De:c.status==="dirty"||n.value==="dirty"?al(c.value):c}}if(o.type==="refinement"){const u=c=>{const h=o.refinement(c,l);if(i.common.async)return Promise.resolve(h);if(h instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return c};if(i.common.async===!1){const c=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return c.status==="aborted"?De:(c.status==="dirty"&&n.dirty(),u(c.value),{status:n.value,value:c.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(c=>c.status==="aborted"?De:(c.status==="dirty"&&n.dirty(),u(c.value).then(()=>({status:n.value,value:c.value}))))}if(o.type==="transform")if(i.common.async===!1){const u=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!ia(u))return De;const c=o.transform(u.value,l);if(c instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:c}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(u=>ia(u)?Promise.resolve(o.transform(u.value,l)).then(c=>({status:n.value,value:c})):De);it.assertNever(o)}}aa.create=(e,t,n)=>new aa({schema:e,typeName:ze.ZodEffects,effect:t,...Ze(n)});aa.createWithPreprocess=(e,t,n)=>new aa({schema:t,effect:{type:"preprocess",transform:e},typeName:ze.ZodEffects,...Ze(n)});class di extends nt{_parse(t){return this._getType(t)===ke.undefined?or(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}di.create=(e,t)=>new di({innerType:e,typeName:ze.ZodOptional,...Ze(t)});class la extends nt{_parse(t){return this._getType(t)===ke.null?or(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}la.create=(e,t)=>new la({innerType:e,typeName:ze.ZodNullable,...Ze(t)});class Gh extends nt{_parse(t){const{ctx:n}=this._processInputParams(t);let i=n.data;return n.parsedType===ke.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Gh.create=(e,t)=>new Gh({innerType:e,typeName:ze.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ze(t)});class Yh extends nt{_parse(t){const{ctx:n}=this._processInputParams(t),i={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return Ru(o)?o.then(l=>({status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new ms(i.common.issues)},input:i.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new ms(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}Yh.create=(e,t)=>new Yh({innerType:e,typeName:ze.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ze(t)});class wx extends nt{_parse(t){if(this._getType(t)!==ke.nan){const i=this._getOrReturnCtx(t);return xe(i,{code:de.invalid_type,expected:ke.nan,received:i.parsedType}),De}return{status:"valid",value:t.data}}}wx.create=e=>new wx({typeName:ze.ZodNaN,...Ze(e)});class XP extends nt{_parse(t){const{ctx:n}=this._processInputParams(t),i=n.data;return this._def.type._parse({data:i,path:n.path,parent:n})}unwrap(){return this._def.type}}class Hp extends nt{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{const l=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return l.status==="aborted"?De:l.status==="dirty"?(n.dirty(),al(l.value)):this._def.out._parseAsync({data:l.value,path:i.path,parent:i})})();{const o=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return o.status==="aborted"?De:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:i.path,parent:i})}}static create(t,n){return new Hp({in:t,out:n,typeName:ze.ZodPipeline})}}class Xh extends nt{_parse(t){const n=this._def.innerType._parse(t),i=o=>(ia(o)&&(o.value=Object.freeze(o.value)),o);return Ru(n)?n.then(o=>i(o)):i(n)}unwrap(){return this._def.innerType}}Xh.create=(e,t)=>new Xh({innerType:e,typeName:ze.ZodReadonly,...Ze(t)});var ze;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(ze||(ze={}));const tu=ai.create;mi.create;zr.create;const JP=$t.create;Nu.create;Tu.create;so.create;const eN=oa.create;Au.create;di.create;la.create;const un=b.forwardRef(({className:e,type:t,...n},i)=>f.jsx("input",{type:t,className:ht("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:i,...n}));un.displayName="Input";function Sx(e,[t,n]){return Math.min(n,Math.max(t,e))}function Q0(e){const t=e+"CollectionProvider",[n,i]=pa(t),[o,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=S=>{const{scope:C,children:P}=S,_=st.useRef(null),E=st.useRef(new Map).current;return f.jsx(o,{scope:C,itemMap:E,collectionRef:_,children:P})};u.displayName=t;const c=e+"CollectionSlot",h=vl(c),m=st.forwardRef((S,C)=>{const{scope:P,children:_}=S,E=l(c,P),R=It(C,E.collectionRef);return f.jsx(h,{ref:R,children:_})});m.displayName=c;const y=e+"CollectionItemSlot",v="data-radix-collection-item",x=vl(y),w=st.forwardRef((S,C)=>{const{scope:P,children:_,...E}=S,R=st.useRef(null),N=It(C,R),T=l(y,P);return st.useEffect(()=>(T.itemMap.set(R,{ref:R,...E}),()=>void T.itemMap.delete(R))),f.jsx(x,{[v]:"",ref:N,children:_})});w.displayName=y;function k(S){const C=l(e+"CollectionConsumer",S);return st.useCallback(()=>{const _=C.collectionRef.current;if(!_)return[];const E=Array.from(_.querySelectorAll(`[${v}]`));return Array.from(C.itemMap.values()).sort((T,A)=>E.indexOf(T.ref.current)-E.indexOf(A.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:u,Slot:m,ItemSlot:w},k,i]}var tN=b.createContext(void 0);function Kp(e){const t=b.useContext(tN);return e||t||"ltr"}const nN=["top","right","bottom","left"],gi=Math.min,Dn=Math.max,Ou=Math.round,nu=Math.floor,Vr=e=>({x:e,y:e}),rN={left:"right",right:"left",bottom:"top",top:"bottom"},sN={start:"end",end:"start"};function Jh(e,t,n){return Dn(e,gi(t,n))}function gs(e,t){return typeof e=="function"?e(t):e}function vs(e){return e.split("-")[0]}function ma(e){return e.split("-")[1]}function Qp(e){return e==="x"?"y":"x"}function Zp(e){return e==="y"?"height":"width"}const iN=new Set(["top","bottom"]);function Dr(e){return iN.has(vs(e))?"y":"x"}function qp(e){return Qp(Dr(e))}function oN(e,t,n){n===void 0&&(n=!1);const i=ma(e),o=qp(e),l=Zp(o);let u=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=Iu(u)),[u,Iu(u)]}function aN(e){const t=Iu(e);return[ep(e),t,ep(t)]}function ep(e){return e.replace(/start|end/g,t=>sN[t])}const bx=["left","right"],Cx=["right","left"],lN=["top","bottom"],cN=["bottom","top"];function uN(e,t,n){switch(e){case"top":case"bottom":return n?t?Cx:bx:t?bx:Cx;case"left":case"right":return t?lN:cN;default:return[]}}function dN(e,t,n,i){const o=ma(e);let l=uN(vs(e),n==="start",i);return o&&(l=l.map(u=>u+"-"+o),t&&(l=l.concat(l.map(ep)))),l}function Iu(e){return e.replace(/left|right|bottom|top/g,t=>rN[t])}function fN(e){return{top:0,right:0,bottom:0,left:0,...e}}function Z0(e){return typeof e!="number"?fN(e):{top:e,right:e,bottom:e,left:e}}function Mu(e){const{x:t,y:n,width:i,height:o}=e;return{width:i,height:o,top:n,left:t,right:t+i,bottom:n+o,x:t,y:n}}function _x(e,t,n){let{reference:i,floating:o}=e;const l=Dr(t),u=qp(t),c=Zp(u),h=vs(t),m=l==="y",y=i.x+i.width/2-o.width/2,v=i.y+i.height/2-o.height/2,x=i[c]/2-o[c]/2;let w;switch(h){case"top":w={x:y,y:i.y-o.height};break;case"bottom":w={x:y,y:i.y+i.height};break;case"right":w={x:i.x+i.width,y:v};break;case"left":w={x:i.x-o.width,y:v};break;default:w={x:i.x,y:i.y}}switch(ma(t)){case"start":w[u]-=x*(n&&m?-1:1);break;case"end":w[u]+=x*(n&&m?-1:1);break}return w}async function hN(e,t){var n;t===void 0&&(t={});const{x:i,y:o,platform:l,rects:u,elements:c,strategy:h}=e,{boundary:m="clippingAncestors",rootBoundary:y="viewport",elementContext:v="floating",altBoundary:x=!1,padding:w=0}=gs(t,e),k=Z0(w),C=c[x?v==="floating"?"reference":"floating":v],P=Mu(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(C)))==null||n?C:C.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(c.floating)),boundary:m,rootBoundary:y,strategy:h})),_=v==="floating"?{x:i,y:o,width:u.floating.width,height:u.floating.height}:u.reference,E=await(l.getOffsetParent==null?void 0:l.getOffsetParent(c.floating)),R=await(l.isElement==null?void 0:l.isElement(E))?await(l.getScale==null?void 0:l.getScale(E))||{x:1,y:1}:{x:1,y:1},N=Mu(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:_,offsetParent:E,strategy:h}):_);return{top:(P.top-N.top+k.top)/R.y,bottom:(N.bottom-P.bottom+k.bottom)/R.y,left:(P.left-N.left+k.left)/R.x,right:(N.right-P.right+k.right)/R.x}}const pN=async(e,t,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:l=[],platform:u}=n,c=l.filter(Boolean),h=await(u.isRTL==null?void 0:u.isRTL(t));let m=await u.getElementRects({reference:e,floating:t,strategy:o}),{x:y,y:v}=_x(m,i,h),x=i,w={},k=0;for(let C=0;C<c.length;C++){var S;const{name:P,fn:_}=c[C],{x:E,y:R,data:N,reset:T}=await _({x:y,y:v,initialPlacement:i,placement:x,strategy:o,middlewareData:w,rects:m,platform:{...u,detectOverflow:(S=u.detectOverflow)!=null?S:hN},elements:{reference:e,floating:t}});y=E??y,v=R??v,w={...w,[P]:{...w[P],...N}},T&&k<=50&&(k++,typeof T=="object"&&(T.placement&&(x=T.placement),T.rects&&(m=T.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:o}):T.rects),{x:y,y:v}=_x(m,x,h)),C=-1)}return{x:y,y:v,placement:x,strategy:o,middlewareData:w}},mN=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:o,rects:l,platform:u,elements:c,middlewareData:h}=t,{element:m,padding:y=0}=gs(e,t)||{};if(m==null)return{};const v=Z0(y),x={x:n,y:i},w=qp(o),k=Zp(w),S=await u.getDimensions(m),C=w==="y",P=C?"top":"left",_=C?"bottom":"right",E=C?"clientHeight":"clientWidth",R=l.reference[k]+l.reference[w]-x[w]-l.floating[k],N=x[w]-l.reference[w],T=await(u.getOffsetParent==null?void 0:u.getOffsetParent(m));let A=T?T[E]:0;(!A||!await(u.isElement==null?void 0:u.isElement(T)))&&(A=c.floating[E]||l.floating[k]);const z=R/2-N/2,L=A/2-S[k]/2-1,M=gi(v[P],L),Q=gi(v[_],L),H=M,ee=A-S[k]-Q,ne=A/2-S[k]/2+z,Y=Jh(H,ne,ee),Z=!h.arrow&&ma(o)!=null&&ne!==Y&&l.reference[k]/2-(ne<H?M:Q)-S[k]/2<0,se=Z?ne<H?ne-H:ne-ee:0;return{[w]:x[w]+se,data:{[w]:Y,centerOffset:ne-Y-se,...Z&&{alignmentOffset:se}},reset:Z}}}),gN=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:o,middlewareData:l,rects:u,initialPlacement:c,platform:h,elements:m}=t,{mainAxis:y=!0,crossAxis:v=!0,fallbackPlacements:x,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:S=!0,...C}=gs(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const P=vs(o),_=Dr(c),E=vs(c)===c,R=await(h.isRTL==null?void 0:h.isRTL(m.floating)),N=x||(E||!S?[Iu(c)]:aN(c)),T=k!=="none";!x&&T&&N.push(...dN(c,S,k,R));const A=[c,...N],z=await h.detectOverflow(t,C),L=[];let M=((i=l.flip)==null?void 0:i.overflows)||[];if(y&&L.push(z[P]),v){const ne=oN(o,u,R);L.push(z[ne[0]],z[ne[1]])}if(M=[...M,{placement:o,overflows:L}],!L.every(ne=>ne<=0)){var Q,H;const ne=(((Q=l.flip)==null?void 0:Q.index)||0)+1,Y=A[ne];if(Y&&(!(v==="alignment"?_!==Dr(Y):!1)||M.every(B=>Dr(B.placement)===_?B.overflows[0]>0:!0)))return{data:{index:ne,overflows:M},reset:{placement:Y}};let Z=(H=M.filter(se=>se.overflows[0]<=0).sort((se,B)=>se.overflows[1]-B.overflows[1])[0])==null?void 0:H.placement;if(!Z)switch(w){case"bestFit":{var ee;const se=(ee=M.filter(B=>{if(T){const te=Dr(B.placement);return te===_||te==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(te=>te>0).reduce((te,q)=>te+q,0)]).sort((B,te)=>B[1]-te[1])[0])==null?void 0:ee[0];se&&(Z=se);break}case"initialPlacement":Z=c;break}if(o!==Z)return{reset:{placement:Z}}}return{}}}};function kx(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ex(e){return nN.some(t=>e[t]>=0)}const vN=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:i}=t,{strategy:o="referenceHidden",...l}=gs(e,t);switch(o){case"referenceHidden":{const u=await i.detectOverflow(t,{...l,elementContext:"reference"}),c=kx(u,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Ex(c)}}}case"escaped":{const u=await i.detectOverflow(t,{...l,altBoundary:!0}),c=kx(u,n.floating);return{data:{escapedOffsets:c,escaped:Ex(c)}}}default:return{}}}}},q0=new Set(["left","top"]);async function yN(e,t){const{placement:n,platform:i,elements:o}=e,l=await(i.isRTL==null?void 0:i.isRTL(o.floating)),u=vs(n),c=ma(n),h=Dr(n)==="y",m=q0.has(u)?-1:1,y=l&&h?-1:1,v=gs(t,e);let{mainAxis:x,crossAxis:w,alignmentAxis:k}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return c&&typeof k=="number"&&(w=c==="end"?k*-1:k),h?{x:w*y,y:x*m}:{x:x*m,y:w*y}}const xN=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:o,y:l,placement:u,middlewareData:c}=t,h=await yN(t,e);return u===((n=c.offset)==null?void 0:n.placement)&&(i=c.arrow)!=null&&i.alignmentOffset?{}:{x:o+h.x,y:l+h.y,data:{...h,placement:u}}}}},wN=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:o,platform:l}=t,{mainAxis:u=!0,crossAxis:c=!1,limiter:h={fn:P=>{let{x:_,y:E}=P;return{x:_,y:E}}},...m}=gs(e,t),y={x:n,y:i},v=await l.detectOverflow(t,m),x=Dr(vs(o)),w=Qp(x);let k=y[w],S=y[x];if(u){const P=w==="y"?"top":"left",_=w==="y"?"bottom":"right",E=k+v[P],R=k-v[_];k=Jh(E,k,R)}if(c){const P=x==="y"?"top":"left",_=x==="y"?"bottom":"right",E=S+v[P],R=S-v[_];S=Jh(E,S,R)}const C=h.fn({...t,[w]:k,[x]:S});return{...C,data:{x:C.x-n,y:C.y-i,enabled:{[w]:u,[x]:c}}}}}},SN=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:o,rects:l,middlewareData:u}=t,{offset:c=0,mainAxis:h=!0,crossAxis:m=!0}=gs(e,t),y={x:n,y:i},v=Dr(o),x=Qp(v);let w=y[x],k=y[v];const S=gs(c,t),C=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(h){const E=x==="y"?"height":"width",R=l.reference[x]-l.floating[E]+C.mainAxis,N=l.reference[x]+l.reference[E]-C.mainAxis;w<R?w=R:w>N&&(w=N)}if(m){var P,_;const E=x==="y"?"width":"height",R=q0.has(vs(o)),N=l.reference[v]-l.floating[E]+(R&&((P=u.offset)==null?void 0:P[v])||0)+(R?0:C.crossAxis),T=l.reference[v]+l.reference[E]+(R?0:((_=u.offset)==null?void 0:_[v])||0)-(R?C.crossAxis:0);k<N?k=N:k>T&&(k=T)}return{[x]:w,[v]:k}}}},bN=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:o,rects:l,platform:u,elements:c}=t,{apply:h=()=>{},...m}=gs(e,t),y=await u.detectOverflow(t,m),v=vs(o),x=ma(o),w=Dr(o)==="y",{width:k,height:S}=l.floating;let C,P;v==="top"||v==="bottom"?(C=v,P=x===(await(u.isRTL==null?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(P=v,C=x==="end"?"top":"bottom");const _=S-y.top-y.bottom,E=k-y.left-y.right,R=gi(S-y[C],_),N=gi(k-y[P],E),T=!t.middlewareData.shift;let A=R,z=N;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(z=E),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(A=_),T&&!x){const M=Dn(y.left,0),Q=Dn(y.right,0),H=Dn(y.top,0),ee=Dn(y.bottom,0);w?z=k-2*(M!==0||Q!==0?M+Q:Dn(y.left,y.right)):A=S-2*(H!==0||ee!==0?H+ee:Dn(y.top,y.bottom))}await h({...t,availableWidth:z,availableHeight:A});const L=await u.getDimensions(c.floating);return k!==L.width||S!==L.height?{reset:{rects:!0}}:{}}}};function Ju(){return typeof window<"u"}function ga(e){return G0(e)?(e.nodeName||"").toLowerCase():"#document"}function $n(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ur(e){var t;return(t=(G0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function G0(e){return Ju()?e instanceof Node||e instanceof $n(e).Node:!1}function br(e){return Ju()?e instanceof Element||e instanceof $n(e).Element:!1}function Br(e){return Ju()?e instanceof HTMLElement||e instanceof $n(e).HTMLElement:!1}function jx(e){return!Ju()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $n(e).ShadowRoot}const CN=new Set(["inline","contents"]);function Ll(e){const{overflow:t,overflowX:n,overflowY:i,display:o}=Cr(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!CN.has(o)}const _N=new Set(["table","td","th"]);function kN(e){return _N.has(ga(e))}const EN=[":popover-open",":modal"];function ed(e){return EN.some(t=>{try{return e.matches(t)}catch{return!1}})}const jN=["transform","translate","scale","rotate","perspective"],RN=["transform","translate","scale","rotate","perspective","filter"],PN=["paint","layout","strict","content"];function Gp(e){const t=Yp(),n=br(e)?Cr(e):e;return jN.some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||RN.some(i=>(n.willChange||"").includes(i))||PN.some(i=>(n.contain||"").includes(i))}function NN(e){let t=vi(e);for(;Br(t)&&!ca(t);){if(Gp(t))return t;if(ed(t))return null;t=vi(t)}return null}function Yp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const TN=new Set(["html","body","#document"]);function ca(e){return TN.has(ga(e))}function Cr(e){return $n(e).getComputedStyle(e)}function td(e){return br(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function vi(e){if(ga(e)==="html")return e;const t=e.assignedSlot||e.parentNode||jx(e)&&e.host||Ur(e);return jx(t)?t.host:t}function Y0(e){const t=vi(e);return ca(t)?e.ownerDocument?e.ownerDocument.body:e.body:Br(t)&&Ll(t)?t:Y0(t)}function Cl(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Y0(e),l=o===((i=e.ownerDocument)==null?void 0:i.body),u=$n(o);if(l){const c=tp(u);return t.concat(u,u.visualViewport||[],Ll(o)?o:[],c&&n?Cl(c):[])}return t.concat(o,Cl(o,[],n))}function tp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function X0(e){const t=Cr(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=Br(e),l=o?e.offsetWidth:n,u=o?e.offsetHeight:i,c=Ou(n)!==l||Ou(i)!==u;return c&&(n=l,i=u),{width:n,height:i,$:c}}function Xp(e){return br(e)?e:e.contextElement}function Wo(e){const t=Xp(e);if(!Br(t))return Vr(1);const n=t.getBoundingClientRect(),{width:i,height:o,$:l}=X0(t);let u=(l?Ou(n.width):n.width)/i,c=(l?Ou(n.height):n.height)/o;return(!u||!Number.isFinite(u))&&(u=1),(!c||!Number.isFinite(c))&&(c=1),{x:u,y:c}}const AN=Vr(0);function J0(e){const t=$n(e);return!Yp()||!t.visualViewport?AN:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ON(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==$n(e)?!1:t}function io(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),l=Xp(e);let u=Vr(1);t&&(i?br(i)&&(u=Wo(i)):u=Wo(e));const c=ON(l,n,i)?J0(l):Vr(0);let h=(o.left+c.x)/u.x,m=(o.top+c.y)/u.y,y=o.width/u.x,v=o.height/u.y;if(l){const x=$n(l),w=i&&br(i)?$n(i):i;let k=x,S=tp(k);for(;S&&i&&w!==k;){const C=Wo(S),P=S.getBoundingClientRect(),_=Cr(S),E=P.left+(S.clientLeft+parseFloat(_.paddingLeft))*C.x,R=P.top+(S.clientTop+parseFloat(_.paddingTop))*C.y;h*=C.x,m*=C.y,y*=C.x,v*=C.y,h+=E,m+=R,k=$n(S),S=tp(k)}}return Mu({width:y,height:v,x:h,y:m})}function nd(e,t){const n=td(e).scrollLeft;return t?t.left+n:io(Ur(e)).left+n}function eS(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-nd(e,n),o=n.top+t.scrollTop;return{x:i,y:o}}function IN(e){let{elements:t,rect:n,offsetParent:i,strategy:o}=e;const l=o==="fixed",u=Ur(i),c=t?ed(t.floating):!1;if(i===u||c&&l)return n;let h={scrollLeft:0,scrollTop:0},m=Vr(1);const y=Vr(0),v=Br(i);if((v||!v&&!l)&&((ga(i)!=="body"||Ll(u))&&(h=td(i)),Br(i))){const w=io(i);m=Wo(i),y.x=w.x+i.clientLeft,y.y=w.y+i.clientTop}const x=u&&!v&&!l?eS(u,h):Vr(0);return{width:n.width*m.x,height:n.height*m.y,x:n.x*m.x-h.scrollLeft*m.x+y.x+x.x,y:n.y*m.y-h.scrollTop*m.y+y.y+x.y}}function MN(e){return Array.from(e.getClientRects())}function LN(e){const t=Ur(e),n=td(e),i=e.ownerDocument.body,o=Dn(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),l=Dn(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let u=-n.scrollLeft+nd(e);const c=-n.scrollTop;return Cr(i).direction==="rtl"&&(u+=Dn(t.clientWidth,i.clientWidth)-o),{width:o,height:l,x:u,y:c}}const Rx=25;function FN(e,t){const n=$n(e),i=Ur(e),o=n.visualViewport;let l=i.clientWidth,u=i.clientHeight,c=0,h=0;if(o){l=o.width,u=o.height;const y=Yp();(!y||y&&t==="fixed")&&(c=o.offsetLeft,h=o.offsetTop)}const m=nd(i);if(m<=0){const y=i.ownerDocument,v=y.body,x=getComputedStyle(v),w=y.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,k=Math.abs(i.clientWidth-v.clientWidth-w);k<=Rx&&(l-=k)}else m<=Rx&&(l+=m);return{width:l,height:u,x:c,y:h}}const DN=new Set(["absolute","fixed"]);function zN(e,t){const n=io(e,!0,t==="fixed"),i=n.top+e.clientTop,o=n.left+e.clientLeft,l=Br(e)?Wo(e):Vr(1),u=e.clientWidth*l.x,c=e.clientHeight*l.y,h=o*l.x,m=i*l.y;return{width:u,height:c,x:h,y:m}}function Px(e,t,n){let i;if(t==="viewport")i=FN(e,n);else if(t==="document")i=LN(Ur(e));else if(br(t))i=zN(t,n);else{const o=J0(e);i={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Mu(i)}function tS(e,t){const n=vi(e);return n===t||!br(n)||ca(n)?!1:Cr(n).position==="fixed"||tS(n,t)}function VN(e,t){const n=t.get(e);if(n)return n;let i=Cl(e,[],!1).filter(c=>br(c)&&ga(c)!=="body"),o=null;const l=Cr(e).position==="fixed";let u=l?vi(e):e;for(;br(u)&&!ca(u);){const c=Cr(u),h=Gp(u);!h&&c.position==="fixed"&&(o=null),(l?!h&&!o:!h&&c.position==="static"&&!!o&&DN.has(o.position)||Ll(u)&&!h&&tS(e,u))?i=i.filter(y=>y!==u):o=c,u=vi(u)}return t.set(e,i),i}function $N(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e;const u=[...n==="clippingAncestors"?ed(t)?[]:VN(t,this._c):[].concat(n),i],c=u[0],h=u.reduce((m,y)=>{const v=Px(t,y,o);return m.top=Dn(v.top,m.top),m.right=gi(v.right,m.right),m.bottom=gi(v.bottom,m.bottom),m.left=Dn(v.left,m.left),m},Px(t,c,o));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function BN(e){const{width:t,height:n}=X0(e);return{width:t,height:n}}function UN(e,t,n){const i=Br(t),o=Ur(t),l=n==="fixed",u=io(e,!0,l,t);let c={scrollLeft:0,scrollTop:0};const h=Vr(0);function m(){h.x=nd(o)}if(i||!i&&!l)if((ga(t)!=="body"||Ll(o))&&(c=td(t)),i){const w=io(t,!0,l,t);h.x=w.x+t.clientLeft,h.y=w.y+t.clientTop}else o&&m();l&&!i&&o&&m();const y=o&&!i&&!l?eS(o,c):Vr(0),v=u.left+c.scrollLeft-h.x-y.x,x=u.top+c.scrollTop-h.y-y.y;return{x:v,y:x,width:u.width,height:u.height}}function xh(e){return Cr(e).position==="static"}function Nx(e,t){if(!Br(e)||Cr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ur(e)===n&&(n=n.ownerDocument.body),n}function nS(e,t){const n=$n(e);if(ed(e))return n;if(!Br(e)){let o=vi(e);for(;o&&!ca(o);){if(br(o)&&!xh(o))return o;o=vi(o)}return n}let i=Nx(e,t);for(;i&&kN(i)&&xh(i);)i=Nx(i,t);return i&&ca(i)&&xh(i)&&!Gp(i)?n:i||NN(e)||n}const WN=async function(e){const t=this.getOffsetParent||nS,n=this.getDimensions,i=await n(e.floating);return{reference:UN(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function HN(e){return Cr(e).direction==="rtl"}const KN={convertOffsetParentRelativeRectToViewportRelativeRect:IN,getDocumentElement:Ur,getClippingRect:$N,getOffsetParent:nS,getElementRects:WN,getClientRects:MN,getDimensions:BN,getScale:Wo,isElement:br,isRTL:HN};function rS(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function QN(e,t){let n=null,i;const o=Ur(e);function l(){var c;clearTimeout(i),(c=n)==null||c.disconnect(),n=null}function u(c,h){c===void 0&&(c=!1),h===void 0&&(h=1),l();const m=e.getBoundingClientRect(),{left:y,top:v,width:x,height:w}=m;if(c||t(),!x||!w)return;const k=nu(v),S=nu(o.clientWidth-(y+x)),C=nu(o.clientHeight-(v+w)),P=nu(y),E={rootMargin:-k+"px "+-S+"px "+-C+"px "+-P+"px",threshold:Dn(0,gi(1,h))||1};let R=!0;function N(T){const A=T[0].intersectionRatio;if(A!==h){if(!R)return u();A?u(!1,A):i=setTimeout(()=>{u(!1,1e-7)},1e3)}A===1&&!rS(m,e.getBoundingClientRect())&&u(),R=!1}try{n=new IntersectionObserver(N,{...E,root:o.ownerDocument})}catch{n=new IntersectionObserver(N,E)}n.observe(e)}return u(!0),l}function ZN(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:h=!1}=i,m=Xp(e),y=o||l?[...m?Cl(m):[],...Cl(t)]:[];y.forEach(P=>{o&&P.addEventListener("scroll",n,{passive:!0}),l&&P.addEventListener("resize",n)});const v=m&&c?QN(m,n):null;let x=-1,w=null;u&&(w=new ResizeObserver(P=>{let[_]=P;_&&_.target===m&&w&&(w.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var E;(E=w)==null||E.observe(t)})),n()}),m&&!h&&w.observe(m),w.observe(t));let k,S=h?io(e):null;h&&C();function C(){const P=io(e);S&&!rS(S,P)&&n(),S=P,k=requestAnimationFrame(C)}return n(),()=>{var P;y.forEach(_=>{o&&_.removeEventListener("scroll",n),l&&_.removeEventListener("resize",n)}),v==null||v(),(P=w)==null||P.disconnect(),w=null,h&&cancelAnimationFrame(k)}}const qN=xN,GN=wN,YN=gN,XN=bN,JN=vN,Tx=mN,eT=SN,tT=(e,t,n)=>{const i=new Map,o={platform:KN,...n},l={...o.platform,_c:i};return pN(e,t,{...o,platform:l})};var nT=typeof document<"u",rT=function(){},uu=nT?b.useLayoutEffect:rT;function Lu(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,i,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(!Lu(e[i],t[i]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,o[i]))return!1;for(i=n;i--!==0;){const l=o[i];if(!(l==="_owner"&&e.$$typeof)&&!Lu(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function sS(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ax(e,t){const n=sS(e);return Math.round(t*n)/n}function wh(e){const t=b.useRef(e);return uu(()=>{t.current=e}),t}function sT(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:o,elements:{reference:l,floating:u}={},transform:c=!0,whileElementsMounted:h,open:m}=e,[y,v]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[x,w]=b.useState(i);Lu(x,i)||w(i);const[k,S]=b.useState(null),[C,P]=b.useState(null),_=b.useCallback(B=>{B!==T.current&&(T.current=B,S(B))},[]),E=b.useCallback(B=>{B!==A.current&&(A.current=B,P(B))},[]),R=l||k,N=u||C,T=b.useRef(null),A=b.useRef(null),z=b.useRef(y),L=h!=null,M=wh(h),Q=wh(o),H=wh(m),ee=b.useCallback(()=>{if(!T.current||!A.current)return;const B={placement:t,strategy:n,middleware:x};Q.current&&(B.platform=Q.current),tT(T.current,A.current,B).then(te=>{const q={...te,isPositioned:H.current!==!1};ne.current&&!Lu(z.current,q)&&(z.current=q,fa.flushSync(()=>{v(q)}))})},[x,t,n,Q,H]);uu(()=>{m===!1&&z.current.isPositioned&&(z.current.isPositioned=!1,v(B=>({...B,isPositioned:!1})))},[m]);const ne=b.useRef(!1);uu(()=>(ne.current=!0,()=>{ne.current=!1}),[]),uu(()=>{if(R&&(T.current=R),N&&(A.current=N),R&&N){if(M.current)return M.current(R,N,ee);ee()}},[R,N,ee,M,L]);const Y=b.useMemo(()=>({reference:T,floating:A,setReference:_,setFloating:E}),[_,E]),Z=b.useMemo(()=>({reference:R,floating:N}),[R,N]),se=b.useMemo(()=>{const B={position:n,left:0,top:0};if(!Z.floating)return B;const te=Ax(Z.floating,y.x),q=Ax(Z.floating,y.y);return c?{...B,transform:"translate("+te+"px, "+q+"px)",...sS(Z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:te,top:q}},[n,c,Z.floating,y.x,y.y]);return b.useMemo(()=>({...y,update:ee,refs:Y,elements:Z,floatingStyles:se}),[y,ee,Y,Z,se])}const iT=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:i,padding:o}=typeof e=="function"?e(n):e;return i&&t(i)?i.current!=null?Tx({element:i.current,padding:o}).fn(n):{}:i?Tx({element:i,padding:o}).fn(n):{}}}},oT=(e,t)=>({...qN(e),options:[e,t]}),aT=(e,t)=>({...GN(e),options:[e,t]}),lT=(e,t)=>({...eT(e),options:[e,t]}),cT=(e,t)=>({...YN(e),options:[e,t]}),uT=(e,t)=>({...XN(e),options:[e,t]}),dT=(e,t)=>({...JN(e),options:[e,t]}),fT=(e,t)=>({...iT(e),options:[e,t]});var hT="Arrow",iS=b.forwardRef((e,t)=>{const{children:n,width:i=10,height:o=5,...l}=e;return f.jsx(ot.svg,{...l,ref:t,width:i,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});iS.displayName=hT;var pT=iS;function mT(e){const[t,n]=b.useState(void 0);return dn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const l=o[0];let u,c;if("borderBoxSize"in l){const h=l.borderBoxSize,m=Array.isArray(h)?h[0]:h;u=m.inlineSize,c=m.blockSize}else u=e.offsetWidth,c=e.offsetHeight;n({width:u,height:c})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else n(void 0)},[e]),t}var Jp="Popper",[oS,aS]=pa(Jp),[gT,lS]=oS(Jp),cS=e=>{const{__scopePopper:t,children:n}=e,[i,o]=b.useState(null);return f.jsx(gT,{scope:t,anchor:i,onAnchorChange:o,children:n})};cS.displayName=Jp;var uS="PopperAnchor",dS=b.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:i,...o}=e,l=lS(uS,n),u=b.useRef(null),c=It(t,u),h=b.useRef(null);return b.useEffect(()=>{const m=h.current;h.current=(i==null?void 0:i.current)||u.current,m!==h.current&&l.onAnchorChange(h.current)}),i?null:f.jsx(ot.div,{...o,ref:c})});dS.displayName=uS;var em="PopperContent",[vT,yT]=oS(em),fS=b.forwardRef((e,t)=>{var ce,ve,Ae,Ne,Le,Ue;const{__scopePopper:n,side:i="bottom",sideOffset:o=0,align:l="center",alignOffset:u=0,arrowPadding:c=0,avoidCollisions:h=!0,collisionBoundary:m=[],collisionPadding:y=0,sticky:v="partial",hideWhenDetached:x=!1,updatePositionStrategy:w="optimized",onPlaced:k,...S}=e,C=lS(em,n),[P,_]=b.useState(null),E=It(t,ut=>_(ut)),[R,N]=b.useState(null),T=mT(R),A=(T==null?void 0:T.width)??0,z=(T==null?void 0:T.height)??0,L=i+(l!=="center"?"-"+l:""),M=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},Q=Array.isArray(m)?m:[m],H=Q.length>0,ee={padding:M,boundary:Q.filter(wT),altBoundary:H},{refs:ne,floatingStyles:Y,placement:Z,isPositioned:se,middlewareData:B}=sT({strategy:"fixed",placement:L,whileElementsMounted:(...ut)=>ZN(...ut,{animationFrame:w==="always"}),elements:{reference:C.anchor},middleware:[oT({mainAxis:o+z,alignmentAxis:u}),h&&aT({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?lT():void 0,...ee}),h&&cT({...ee}),uT({...ee,apply:({elements:ut,rects:Mt,availableWidth:en,availableHeight:Yt})=>{const{width:Dt,height:et}=Mt.reference,Rt=ut.floating.style;Rt.setProperty("--radix-popper-available-width",`${en}px`),Rt.setProperty("--radix-popper-available-height",`${Yt}px`),Rt.setProperty("--radix-popper-anchor-width",`${Dt}px`),Rt.setProperty("--radix-popper-anchor-height",`${et}px`)}}),R&&fT({element:R,padding:c}),ST({arrowWidth:A,arrowHeight:z}),x&&dT({strategy:"referenceHidden",...ee})]}),[te,q]=mS(Z),I=hi(k);dn(()=>{se&&(I==null||I())},[se,I]);const X=(ce=B.arrow)==null?void 0:ce.x,Re=(ve=B.arrow)==null?void 0:ve.y,me=((Ae=B.arrow)==null?void 0:Ae.centerOffset)!==0,[Te,Se]=b.useState();return dn(()=>{P&&Se(window.getComputedStyle(P).zIndex)},[P]),f.jsx("div",{ref:ne.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:se?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Te,"--radix-popper-transform-origin":[(Ne=B.transformOrigin)==null?void 0:Ne.x,(Le=B.transformOrigin)==null?void 0:Le.y].join(" "),...((Ue=B.hide)==null?void 0:Ue.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:f.jsx(vT,{scope:n,placedSide:te,onArrowChange:N,arrowX:X,arrowY:Re,shouldHideArrow:me,children:f.jsx(ot.div,{"data-side":te,"data-align":q,...S,ref:E,style:{...S.style,animation:se?void 0:"none"}})})})});fS.displayName=em;var hS="PopperArrow",xT={top:"bottom",right:"left",bottom:"top",left:"right"},pS=b.forwardRef(function(t,n){const{__scopePopper:i,...o}=t,l=yT(hS,i),u=xT[l.placedSide];return f.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:f.jsx(pT,{...o,ref:n,style:{...o.style,display:"block"}})})});pS.displayName=hS;function wT(e){return e!==null}var ST=e=>({name:"transformOrigin",options:e,fn(t){var C,P,_;const{placement:n,rects:i,middlewareData:o}=t,u=((C=o.arrow)==null?void 0:C.centerOffset)!==0,c=u?0:e.arrowWidth,h=u?0:e.arrowHeight,[m,y]=mS(n),v={start:"0%",center:"50%",end:"100%"}[y],x=(((P=o.arrow)==null?void 0:P.x)??0)+c/2,w=(((_=o.arrow)==null?void 0:_.y)??0)+h/2;let k="",S="";return m==="bottom"?(k=u?v:`${x}px`,S=`${-h}px`):m==="top"?(k=u?v:`${x}px`,S=`${i.floating.height+h}px`):m==="right"?(k=`${-h}px`,S=u?v:`${w}px`):m==="left"&&(k=`${i.floating.width+h}px`,S=u?v:`${w}px`),{data:{x:k,y:S}}}});function mS(e){const[t,n="center"]=e.split("-");return[t,n]}var bT=cS,CT=dS,_T=fS,kT=pS;function ET(e){const t=b.useRef({value:e,previous:e});return b.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var gS=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"}),jT="VisuallyHidden",RT=b.forwardRef((e,t)=>f.jsx(ot.span,{...e,ref:t,style:{...gS,...e.style}}));RT.displayName=jT;var PT=[" ","Enter","ArrowUp","ArrowDown"],NT=[" ","Enter"],oo="Select",[rd,sd,TT]=Q0(oo),[va]=pa(oo,[TT,aS]),id=aS(),[AT,yi]=va(oo),[OT,IT]=va(oo),vS=e=>{const{__scopeSelect:t,children:n,open:i,defaultOpen:o,onOpenChange:l,value:u,defaultValue:c,onValueChange:h,dir:m,name:y,autoComplete:v,disabled:x,required:w,form:k}=e,S=id(t),[C,P]=b.useState(null),[_,E]=b.useState(null),[R,N]=b.useState(!1),T=Kp(m),[A,z]=gl({prop:i,defaultProp:o??!1,onChange:l,caller:oo}),[L,M]=gl({prop:u,defaultProp:c,onChange:h,caller:oo}),Q=b.useRef(null),H=C?k||!!C.closest("form"):!0,[ee,ne]=b.useState(new Set),Y=Array.from(ee).map(Z=>Z.props.value).join(";");return f.jsx(bT,{...S,children:f.jsxs(AT,{required:w,scope:t,trigger:C,onTriggerChange:P,valueNode:_,onValueNodeChange:E,valueNodeHasChildren:R,onValueNodeHasChildrenChange:N,contentId:ui(),value:L,onValueChange:M,open:A,onOpenChange:z,dir:T,triggerPointerDownPosRef:Q,disabled:x,children:[f.jsx(rd.Provider,{scope:t,children:f.jsx(OT,{scope:e.__scopeSelect,onNativeOptionAdd:b.useCallback(Z=>{ne(se=>new Set(se).add(Z))},[]),onNativeOptionRemove:b.useCallback(Z=>{ne(se=>{const B=new Set(se);return B.delete(Z),B})},[]),children:n})}),H?f.jsxs(FS,{"aria-hidden":!0,required:w,tabIndex:-1,name:y,autoComplete:v,value:L,onChange:Z=>M(Z.target.value),disabled:x,form:k,children:[L===void 0?f.jsx("option",{value:""}):null,Array.from(ee)]},Y):null]})})};vS.displayName=oo;var yS="SelectTrigger",xS=b.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:i=!1,...o}=e,l=id(n),u=yi(yS,n),c=u.disabled||i,h=It(t,u.onTriggerChange),m=sd(n),y=b.useRef("touch"),[v,x,w]=zS(S=>{const C=m().filter(E=>!E.disabled),P=C.find(E=>E.value===u.value),_=VS(C,S,P);_!==void 0&&u.onValueChange(_.value)}),k=S=>{c||(u.onOpenChange(!0),w()),S&&(u.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return f.jsx(CT,{asChild:!0,...l,children:f.jsx(ot.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":DS(u.value)?"":void 0,...o,ref:h,onClick:Je(o.onClick,S=>{S.currentTarget.focus(),y.current!=="mouse"&&k(S)}),onPointerDown:Je(o.onPointerDown,S=>{y.current=S.pointerType;const C=S.target;C.hasPointerCapture(S.pointerId)&&C.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(k(S),S.preventDefault())}),onKeyDown:Je(o.onKeyDown,S=>{const C=v.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&x(S.key),!(C&&S.key===" ")&&PT.includes(S.key)&&(k(),S.preventDefault())})})})});xS.displayName=yS;var wS="SelectValue",SS=b.forwardRef((e,t)=>{const{__scopeSelect:n,className:i,style:o,children:l,placeholder:u="",...c}=e,h=yi(wS,n),{onValueNodeHasChildrenChange:m}=h,y=l!==void 0,v=It(t,h.onValueNodeChange);return dn(()=>{m(y)},[m,y]),f.jsx(ot.span,{...c,ref:v,style:{pointerEvents:"none"},children:DS(h.value)?f.jsx(f.Fragment,{children:u}):l})});SS.displayName=wS;var MT="SelectIcon",bS=b.forwardRef((e,t)=>{const{__scopeSelect:n,children:i,...o}=e;return f.jsx(ot.span,{"aria-hidden":!0,...o,ref:t,children:i||"▼"})});bS.displayName=MT;var LT="SelectPortal",CS=e=>f.jsx(Ip,{asChild:!0,...e});CS.displayName=LT;var ao="SelectContent",_S=b.forwardRef((e,t)=>{const n=yi(ao,e.__scopeSelect),[i,o]=b.useState();if(dn(()=>{o(new DocumentFragment)},[]),!n.open){const l=i;return l?fa.createPortal(f.jsx(kS,{scope:e.__scopeSelect,children:f.jsx(rd.Slot,{scope:e.__scopeSelect,children:f.jsx("div",{children:e.children})})}),l):null}return f.jsx(ES,{...e,ref:t})});_S.displayName=ao;var vr=10,[kS,xi]=va(ao),FT="SelectContentImpl",DT=vl("SelectContent.RemoveScroll"),ES=b.forwardRef((e,t)=>{const{__scopeSelect:n,position:i="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:l,onPointerDownOutside:u,side:c,sideOffset:h,align:m,alignOffset:y,arrowPadding:v,collisionBoundary:x,collisionPadding:w,sticky:k,hideWhenDetached:S,avoidCollisions:C,...P}=e,_=yi(ao,n),[E,R]=b.useState(null),[N,T]=b.useState(null),A=It(t,ce=>R(ce)),[z,L]=b.useState(null),[M,Q]=b.useState(null),H=sd(n),[ee,ne]=b.useState(!1),Y=b.useRef(!1);b.useEffect(()=>{if(E)return v0(E)},[E]),l0();const Z=b.useCallback(ce=>{const[ve,...Ae]=H().map(Ue=>Ue.ref.current),[Ne]=Ae.slice(-1),Le=document.activeElement;for(const Ue of ce)if(Ue===Le||(Ue==null||Ue.scrollIntoView({block:"nearest"}),Ue===ve&&N&&(N.scrollTop=0),Ue===Ne&&N&&(N.scrollTop=N.scrollHeight),Ue==null||Ue.focus(),document.activeElement!==Le))return},[H,N]),se=b.useCallback(()=>Z([z,E]),[Z,z,E]);b.useEffect(()=>{ee&&se()},[ee,se]);const{onOpenChange:B,triggerPointerDownPosRef:te}=_;b.useEffect(()=>{if(E){let ce={x:0,y:0};const ve=Ne=>{var Le,Ue;ce={x:Math.abs(Math.round(Ne.pageX)-(((Le=te.current)==null?void 0:Le.x)??0)),y:Math.abs(Math.round(Ne.pageY)-(((Ue=te.current)==null?void 0:Ue.y)??0))}},Ae=Ne=>{ce.x<=10&&ce.y<=10?Ne.preventDefault():E.contains(Ne.target)||B(!1),document.removeEventListener("pointermove",ve),te.current=null};return te.current!==null&&(document.addEventListener("pointermove",ve),document.addEventListener("pointerup",Ae,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ve),document.removeEventListener("pointerup",Ae,{capture:!0})}}},[E,B,te]),b.useEffect(()=>{const ce=()=>B(!1);return window.addEventListener("blur",ce),window.addEventListener("resize",ce),()=>{window.removeEventListener("blur",ce),window.removeEventListener("resize",ce)}},[B]);const[q,I]=zS(ce=>{const ve=H().filter(Le=>!Le.disabled),Ae=ve.find(Le=>Le.ref.current===document.activeElement),Ne=VS(ve,ce,Ae);Ne&&setTimeout(()=>Ne.ref.current.focus())}),X=b.useCallback((ce,ve,Ae)=>{const Ne=!Y.current&&!Ae;(_.value!==void 0&&_.value===ve||Ne)&&(L(ce),Ne&&(Y.current=!0))},[_.value]),Re=b.useCallback(()=>E==null?void 0:E.focus(),[E]),me=b.useCallback((ce,ve,Ae)=>{const Ne=!Y.current&&!Ae;(_.value!==void 0&&_.value===ve||Ne)&&Q(ce)},[_.value]),Te=i==="popper"?np:jS,Se=Te===np?{side:c,sideOffset:h,align:m,alignOffset:y,arrowPadding:v,collisionBoundary:x,collisionPadding:w,sticky:k,hideWhenDetached:S,avoidCollisions:C}:{};return f.jsx(kS,{scope:n,content:E,viewport:N,onViewportChange:T,itemRefCallback:X,selectedItem:z,onItemLeave:Re,itemTextRefCallback:me,focusSelectedItem:se,selectedItemText:M,position:i,isPositioned:ee,searchRef:q,children:f.jsx(Mp,{as:DT,allowPinchZoom:!0,children:f.jsx(Op,{asChild:!0,trapped:_.open,onMountAutoFocus:ce=>{ce.preventDefault()},onUnmountAutoFocus:Je(o,ce=>{var ve;(ve=_.trigger)==null||ve.focus({preventScroll:!0}),ce.preventDefault()}),children:f.jsx(Ap,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:ce=>ce.preventDefault(),onDismiss:()=>_.onOpenChange(!1),children:f.jsx(Te,{role:"listbox",id:_.contentId,"data-state":_.open?"open":"closed",dir:_.dir,onContextMenu:ce=>ce.preventDefault(),...P,...Se,onPlaced:()=>ne(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...P.style},onKeyDown:Je(P.onKeyDown,ce=>{const ve=ce.ctrlKey||ce.altKey||ce.metaKey;if(ce.key==="Tab"&&ce.preventDefault(),!ve&&ce.key.length===1&&I(ce.key),["ArrowUp","ArrowDown","Home","End"].includes(ce.key)){let Ne=H().filter(Le=>!Le.disabled).map(Le=>Le.ref.current);if(["ArrowUp","End"].includes(ce.key)&&(Ne=Ne.slice().reverse()),["ArrowUp","ArrowDown"].includes(ce.key)){const Le=ce.target,Ue=Ne.indexOf(Le);Ne=Ne.slice(Ue+1)}setTimeout(()=>Z(Ne)),ce.preventDefault()}})})})})})})});ES.displayName=FT;var zT="SelectItemAlignedPosition",jS=b.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:i,...o}=e,l=yi(ao,n),u=xi(ao,n),[c,h]=b.useState(null),[m,y]=b.useState(null),v=It(t,A=>y(A)),x=sd(n),w=b.useRef(!1),k=b.useRef(!0),{viewport:S,selectedItem:C,selectedItemText:P,focusSelectedItem:_}=u,E=b.useCallback(()=>{if(l.trigger&&l.valueNode&&c&&m&&S&&C&&P){const A=l.trigger.getBoundingClientRect(),z=m.getBoundingClientRect(),L=l.valueNode.getBoundingClientRect(),M=P.getBoundingClientRect();if(l.dir!=="rtl"){const Le=M.left-z.left,Ue=L.left-Le,ut=A.left-Ue,Mt=A.width+ut,en=Math.max(Mt,z.width),Yt=window.innerWidth-vr,Dt=Sx(Ue,[vr,Math.max(vr,Yt-en)]);c.style.minWidth=Mt+"px",c.style.left=Dt+"px"}else{const Le=z.right-M.right,Ue=window.innerWidth-L.right-Le,ut=window.innerWidth-A.right-Ue,Mt=A.width+ut,en=Math.max(Mt,z.width),Yt=window.innerWidth-vr,Dt=Sx(Ue,[vr,Math.max(vr,Yt-en)]);c.style.minWidth=Mt+"px",c.style.right=Dt+"px"}const Q=x(),H=window.innerHeight-vr*2,ee=S.scrollHeight,ne=window.getComputedStyle(m),Y=parseInt(ne.borderTopWidth,10),Z=parseInt(ne.paddingTop,10),se=parseInt(ne.borderBottomWidth,10),B=parseInt(ne.paddingBottom,10),te=Y+Z+ee+B+se,q=Math.min(C.offsetHeight*5,te),I=window.getComputedStyle(S),X=parseInt(I.paddingTop,10),Re=parseInt(I.paddingBottom,10),me=A.top+A.height/2-vr,Te=H-me,Se=C.offsetHeight/2,ce=C.offsetTop+Se,ve=Y+Z+ce,Ae=te-ve;if(ve<=me){const Le=Q.length>0&&C===Q[Q.length-1].ref.current;c.style.bottom="0px";const Ue=m.clientHeight-S.offsetTop-S.offsetHeight,ut=Math.max(Te,Se+(Le?Re:0)+Ue+se),Mt=ve+ut;c.style.height=Mt+"px"}else{const Le=Q.length>0&&C===Q[0].ref.current;c.style.top="0px";const ut=Math.max(me,Y+S.offsetTop+(Le?X:0)+Se)+Ae;c.style.height=ut+"px",S.scrollTop=ve-me+S.offsetTop}c.style.margin=`${vr}px 0`,c.style.minHeight=q+"px",c.style.maxHeight=H+"px",i==null||i(),requestAnimationFrame(()=>w.current=!0)}},[x,l.trigger,l.valueNode,c,m,S,C,P,l.dir,i]);dn(()=>E(),[E]);const[R,N]=b.useState();dn(()=>{m&&N(window.getComputedStyle(m).zIndex)},[m]);const T=b.useCallback(A=>{A&&k.current===!0&&(E(),_==null||_(),k.current=!1)},[E,_]);return f.jsx($T,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:w,onScrollButtonChange:T,children:f.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:f.jsx(ot.div,{...o,ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});jS.displayName=zT;var VT="SelectPopperPosition",np=b.forwardRef((e,t)=>{const{__scopeSelect:n,align:i="start",collisionPadding:o=vr,...l}=e,u=id(n);return f.jsx(_T,{...u,...l,ref:t,align:i,collisionPadding:o,style:{boxSizing:"border-box",...l.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)"}})});np.displayName=VT;var[$T,tm]=va(ao,{}),rp="SelectViewport",RS=b.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:i,...o}=e,l=xi(rp,n),u=tm(rp,n),c=It(t,l.onViewportChange),h=b.useRef(0);return f.jsxs(f.Fragment,{children:[f.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),f.jsx(rd.Slot,{scope:n,children:f.jsx(ot.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Je(o.onScroll,m=>{const y=m.currentTarget,{contentWrapper:v,shouldExpandOnScrollRef:x}=u;if(x!=null&&x.current&&v){const w=Math.abs(h.current-y.scrollTop);if(w>0){const k=window.innerHeight-vr*2,S=parseFloat(v.style.minHeight),C=parseFloat(v.style.height),P=Math.max(S,C);if(P<k){const _=P+w,E=Math.min(k,_),R=_-E;v.style.height=E+"px",v.style.bottom==="0px"&&(y.scrollTop=R>0?R:0,v.style.justifyContent="flex-end")}}}h.current=y.scrollTop})})})]})});RS.displayName=rp;var PS="SelectGroup",[BT,UT]=va(PS),WT=b.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e,o=ui();return f.jsx(BT,{scope:n,id:o,children:f.jsx(ot.div,{role:"group","aria-labelledby":o,...i,ref:t})})});WT.displayName=PS;var NS="SelectLabel",HT=b.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e,o=UT(NS,n);return f.jsx(ot.div,{id:o.id,...i,ref:t})});HT.displayName=NS;var Fu="SelectItem",[KT,TS]=va(Fu),AS=b.forwardRef((e,t)=>{const{__scopeSelect:n,value:i,disabled:o=!1,textValue:l,...u}=e,c=yi(Fu,n),h=xi(Fu,n),m=c.value===i,[y,v]=b.useState(l??""),[x,w]=b.useState(!1),k=It(t,_=>{var E;return(E=h.itemRefCallback)==null?void 0:E.call(h,_,i,o)}),S=ui(),C=b.useRef("touch"),P=()=>{o||(c.onValueChange(i),c.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return f.jsx(KT,{scope:n,value:i,disabled:o,textId:S,isSelected:m,onItemTextChange:b.useCallback(_=>{v(E=>E||((_==null?void 0:_.textContent)??"").trim())},[]),children:f.jsx(rd.ItemSlot,{scope:n,value:i,disabled:o,textValue:y,children:f.jsx(ot.div,{role:"option","aria-labelledby":S,"data-highlighted":x?"":void 0,"aria-selected":m&&x,"data-state":m?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...u,ref:k,onFocus:Je(u.onFocus,()=>w(!0)),onBlur:Je(u.onBlur,()=>w(!1)),onClick:Je(u.onClick,()=>{C.current!=="mouse"&&P()}),onPointerUp:Je(u.onPointerUp,()=>{C.current==="mouse"&&P()}),onPointerDown:Je(u.onPointerDown,_=>{C.current=_.pointerType}),onPointerMove:Je(u.onPointerMove,_=>{var E;C.current=_.pointerType,o?(E=h.onItemLeave)==null||E.call(h):C.current==="mouse"&&_.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Je(u.onPointerLeave,_=>{var E;_.currentTarget===document.activeElement&&((E=h.onItemLeave)==null||E.call(h))}),onKeyDown:Je(u.onKeyDown,_=>{var R;((R=h.searchRef)==null?void 0:R.current)!==""&&_.key===" "||(NT.includes(_.key)&&P(),_.key===" "&&_.preventDefault())})})})})});AS.displayName=Fu;var ll="SelectItemText",OS=b.forwardRef((e,t)=>{const{__scopeSelect:n,className:i,style:o,...l}=e,u=yi(ll,n),c=xi(ll,n),h=TS(ll,n),m=IT(ll,n),[y,v]=b.useState(null),x=It(t,P=>v(P),h.onItemTextChange,P=>{var _;return(_=c.itemTextRefCallback)==null?void 0:_.call(c,P,h.value,h.disabled)}),w=y==null?void 0:y.textContent,k=b.useMemo(()=>f.jsx("option",{value:h.value,disabled:h.disabled,children:w},h.value),[h.disabled,h.value,w]),{onNativeOptionAdd:S,onNativeOptionRemove:C}=m;return dn(()=>(S(k),()=>C(k)),[S,C,k]),f.jsxs(f.Fragment,{children:[f.jsx(ot.span,{id:h.textId,...l,ref:x}),h.isSelected&&u.valueNode&&!u.valueNodeHasChildren?fa.createPortal(l.children,u.valueNode):null]})});OS.displayName=ll;var IS="SelectItemIndicator",MS=b.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e;return TS(IS,n).isSelected?f.jsx(ot.span,{"aria-hidden":!0,...i,ref:t}):null});MS.displayName=IS;var sp="SelectScrollUpButton",QT=b.forwardRef((e,t)=>{const n=xi(sp,e.__scopeSelect),i=tm(sp,e.__scopeSelect),[o,l]=b.useState(!1),u=It(t,i.onScrollButtonChange);return dn(()=>{if(n.viewport&&n.isPositioned){let c=function(){const m=h.scrollTop>0;l(m)};const h=n.viewport;return c(),h.addEventListener("scroll",c),()=>h.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?f.jsx(LS,{...e,ref:u,onAutoScroll:()=>{const{viewport:c,selectedItem:h}=n;c&&h&&(c.scrollTop=c.scrollTop-h.offsetHeight)}}):null});QT.displayName=sp;var ip="SelectScrollDownButton",ZT=b.forwardRef((e,t)=>{const n=xi(ip,e.__scopeSelect),i=tm(ip,e.__scopeSelect),[o,l]=b.useState(!1),u=It(t,i.onScrollButtonChange);return dn(()=>{if(n.viewport&&n.isPositioned){let c=function(){const m=h.scrollHeight-h.clientHeight,y=Math.ceil(h.scrollTop)<m;l(y)};const h=n.viewport;return c(),h.addEventListener("scroll",c),()=>h.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?f.jsx(LS,{...e,ref:u,onAutoScroll:()=>{const{viewport:c,selectedItem:h}=n;c&&h&&(c.scrollTop=c.scrollTop+h.offsetHeight)}}):null});ZT.displayName=ip;var LS=b.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:i,...o}=e,l=xi("SelectScrollButton",n),u=b.useRef(null),c=sd(n),h=b.useCallback(()=>{u.current!==null&&(window.clearInterval(u.current),u.current=null)},[]);return b.useEffect(()=>()=>h(),[h]),dn(()=>{var y;const m=c().find(v=>v.ref.current===document.activeElement);(y=m==null?void 0:m.ref.current)==null||y.scrollIntoView({block:"nearest"})},[c]),f.jsx(ot.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Je(o.onPointerDown,()=>{u.current===null&&(u.current=window.setInterval(i,50))}),onPointerMove:Je(o.onPointerMove,()=>{var m;(m=l.onItemLeave)==null||m.call(l),u.current===null&&(u.current=window.setInterval(i,50))}),onPointerLeave:Je(o.onPointerLeave,()=>{h()})})}),qT="SelectSeparator",GT=b.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e;return f.jsx(ot.div,{"aria-hidden":!0,...i,ref:t})});GT.displayName=qT;var op="SelectArrow",YT=b.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e,o=id(n),l=yi(op,n),u=xi(op,n);return l.open&&u.position==="popper"?f.jsx(kT,{...o,...i,ref:t}):null});YT.displayName=op;var XT="SelectBubbleInput",FS=b.forwardRef(({__scopeSelect:e,value:t,...n},i)=>{const o=b.useRef(null),l=It(i,o),u=ET(t);return b.useEffect(()=>{const c=o.current;if(!c)return;const h=window.HTMLSelectElement.prototype,y=Object.getOwnPropertyDescriptor(h,"value").set;if(u!==t&&y){const v=new Event("change",{bubbles:!0});y.call(c,t),c.dispatchEvent(v)}},[u,t]),f.jsx(ot.select,{...n,style:{...gS,...n.style},ref:l,defaultValue:t})});FS.displayName=XT;function DS(e){return e===""||e===void 0}function zS(e){const t=hi(e),n=b.useRef(""),i=b.useRef(0),o=b.useCallback(u=>{const c=n.current+u;t(c),(function h(m){n.current=m,window.clearTimeout(i.current),m!==""&&(i.current=window.setTimeout(()=>h(""),1e3))})(c)},[t]),l=b.useCallback(()=>{n.current="",window.clearTimeout(i.current)},[]);return b.useEffect(()=>()=>window.clearTimeout(i.current),[]),[n,o,l]}function VS(e,t,n){const o=t.length>1&&Array.from(t).every(m=>m===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let u=JT(e,Math.max(l,0));o.length===1&&(u=u.filter(m=>m!==n));const h=u.find(m=>m.textValue.toLowerCase().startsWith(o.toLowerCase()));return h!==n?h:void 0}function JT(e,t){return e.map((n,i)=>e[(t+i)%e.length])}var eA=vS,tA=xS,nA=SS,rA=bS,sA=CS,iA=_S,oA=RS,aA=AS,lA=OS,cA=MS;const Un=eA,Wn=nA,Rn=b.forwardRef(({className:e,children:t,...n},i)=>f.jsxs(tA,{ref:i,className:ht("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,f.jsx(rA,{asChild:!0,children:f.jsx(Fw,{className:"h-4 w-4 opacity-50"})})]}));Rn.displayName="SelectTrigger";const Pn=b.forwardRef(({className:e,children:t,position:n="popper",...i},o)=>f.jsx(sA,{children:f.jsx(iA,{ref:o,className:ht("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-background text-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1",e),position:n,...i,children:f.jsx(oA,{className:ht("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t})})}));Pn.displayName="SelectContent";const dt=b.forwardRef(({className:e,children:t,...n},i)=>f.jsxs(aA,{ref:i,className:ht("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[f.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(cA,{children:f.jsx(Zk,{className:"h-4 w-4"})})}),f.jsx(lA,{children:t})]}));dt.displayName="SelectItem";const uA=JP({name:tu().min(1,"Name is required"),transport:eN(["stdio","sse","streamable-http"]),command:tu().optional(),args:tu().optional(),url:tu().optional()});function dA({defaultValues:e,onSubmit:t,loading:n}){const i=bP({resolver:EP(uA),defaultValues:{name:"",transport:"stdio",...e}}),o=i.watch("transport");function l(u){t({name:u.name,transport:u.transport,command:u.command||void 0,args:u.args?u.args.split(",").map(c=>c.trim()).filter(Boolean):void 0,url:u.url||void 0})}return f.jsxs("form",{onSubmit:i.handleSubmit(l),className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("label",{className:"text-sm font-medium",children:"Name"}),f.jsx(un,{...i.register("name"),placeholder:"My MCP Server"}),i.formState.errors.name&&f.jsx("p",{className:"text-sm text-destructive mt-1",children:i.formState.errors.name.message})]}),f.jsxs("div",{children:[f.jsx("label",{className:"text-sm font-medium",children:"Transport"}),f.jsxs(Un,{value:o,onValueChange:u=>i.setValue("transport",u),children:[f.jsx(Rn,{children:f.jsx(Wn,{})}),f.jsxs(Pn,{children:[f.jsx(dt,{value:"stdio",children:"stdio"}),f.jsx(dt,{value:"sse",children:"SSE"}),f.jsx(dt,{value:"streamable-http",children:"Streamable HTTP"})]})]})]}),o==="stdio"?f.jsxs(f.Fragment,{children:[f.jsxs("div",{children:[f.jsx("label",{className:"text-sm font-medium",children:"Command"}),f.jsx(un,{...i.register("command"),placeholder:"npx"})]}),f.jsxs("div",{children:[f.jsx("label",{className:"text-sm font-medium",children:"Arguments (comma-separated)"}),f.jsx(un,{...i.register("args"),placeholder:"@modelcontextprotocol/server-filesystem, /tmp"})]})]}):f.jsxs("div",{children:[f.jsx("label",{className:"text-sm font-medium",children:"URL"}),f.jsx(un,{...i.register("url"),placeholder:"http://localhost:3000/sse"})]}),f.jsx(Qe,{type:"submit",disabled:n,className:"w-full",children:n?"Saving...":"Save Server"})]})}function fA(){var v,x;const[e,t]=b.useState(!1),[n,i]=b.useState(null),[o,l]=b.useState({}),u=Ku(),c=ij(),h=oj(),m=aj();async function y(w){i(w);try{const k=await m.mutateAsync(w);l(S=>({...S,[w]:k.data}))}catch{l(k=>({...k,[w]:{connected:!1,error:"Request failed"}}))}i(null)}return f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:"Servers"}),f.jsxs(_u,{open:e,onOpenChange:t,children:[f.jsx(zp,{asChild:!0,children:f.jsxs(Qe,{children:[f.jsx(Uw,{className:"mr-2 h-4 w-4"}),"Add Server"]})}),f.jsxs(yl,{children:[f.jsx(ku,{children:f.jsx(xl,{children:"Add Server Connection"})}),f.jsx(dA,{loading:c.isPending,onSubmit:async w=>{await c.mutateAsync(w),t(!1)}})]})]})]}),f.jsxs(at,{children:[f.jsx(At,{children:f.jsx(Ot,{children:"Saved Connections"})}),f.jsx(lt,{children:((v=u.data)==null?void 0:v.data.length)===0?f.jsx("p",{className:"text-sm text-muted-foreground py-4 text-center",children:"No servers configured yet"}):f.jsxs(Qu,{children:[f.jsx(Zu,{children:f.jsxs(no,{children:[f.jsx(ln,{children:"Name"}),f.jsx(ln,{children:"Transport"}),f.jsx(ln,{children:"Endpoint"}),f.jsx(ln,{children:"Status"}),f.jsx(ln,{className:"text-right",children:"Actions"})]})}),f.jsx(qu,{children:(x=u.data)==null?void 0:x.data.map(w=>{var k;return f.jsxs(no,{children:[f.jsx(cn,{className:"font-medium",children:w.name}),f.jsx(cn,{children:f.jsx(mt,{variant:"outline",children:w.transport})}),f.jsx(cn,{className:"text-sm text-muted-foreground",children:w.command?`${w.command} ${((k=w.args)==null?void 0:k.join(" "))??""}`:w.url??"-"}),f.jsx(cn,{children:o[w.id]?o[w.id].connected?f.jsxs(mt,{variant:"success",children:["Connected (",o[w.id].toolCount," tools)"]}):f.jsx(mt,{variant:"destructive",children:o[w.id].error??"Failed"}):null}),f.jsxs(cn,{className:"text-right space-x-2",children:[f.jsx(Qe,{size:"sm",variant:"outline",onClick:()=>y(w.id),disabled:n===w.id,children:n===w.id?f.jsx(fi,{className:"h-4 w-4 animate-spin"}):f.jsx(iE,{className:"h-4 w-4"})}),f.jsx(Qe,{size:"sm",variant:"ghost",onClick:()=>h.mutate(w.id),children:f.jsx(Ol,{className:"h-4 w-4 text-destructive"})})]})]},w.id)})})]})})]})]})}var _n={},Ox;function hA(){if(Ox)return _n;Ox=1;var e=_n&&_n.__assign||function(){return e=Object.assign||function(N){for(var T,A=1,z=arguments.length;A<z;A++){T=arguments[A];for(var L in T)Object.prototype.hasOwnProperty.call(T,L)&&(N[L]=T[L])}return N},e.apply(this,arguments)},t=_n&&_n.__createBinding||(Object.create?(function(N,T,A,z){z===void 0&&(z=A);var L=Object.getOwnPropertyDescriptor(T,A);(!L||("get"in L?!T.__esModule:L.writable||L.configurable))&&(L={enumerable:!0,get:function(){return T[A]}}),Object.defineProperty(N,z,L)}):(function(N,T,A,z){z===void 0&&(z=A),N[z]=T[A]})),n=_n&&_n.__setModuleDefault||(Object.create?(function(N,T){Object.defineProperty(N,"default",{enumerable:!0,value:T})}):function(N,T){N.default=T}),i=_n&&_n.__importStar||function(N){if(N&&N.__esModule)return N;var T={};if(N!=null)for(var A in N)A!=="default"&&Object.prototype.hasOwnProperty.call(N,A)&&t(T,N,A);return n(T,N),T},o=_n&&_n.__rest||function(N,T){var A={};for(var z in N)Object.prototype.hasOwnProperty.call(N,z)&&T.indexOf(z)<0&&(A[z]=N[z]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var L=0,z=Object.getOwnPropertySymbols(N);L<z.length;L++)T.indexOf(z[L])<0&&Object.prototype.propertyIsEnumerable.call(N,z[L])&&(A[z[L]]=N[z[L]]);return A};Object.defineProperty(_n,"__esModule",{value:!0});var l=i(ua()),u=89,c=90,h=77,m=57,y=219,v=222,x=192,w=100,k=3e3,S=typeof window<"u"&&"navigator"in window&&/Win/i.test(navigator.platform),C=typeof window<"u"&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),P="npm__react-simple-code-editor__textarea",_=`
|
|
296
|
-
/**
|
|
297
|
-
* Reset the text fill color so that placeholder is visible
|
|
298
|
-
*/
|
|
299
|
-
.`.concat(P,`:empty {
|
|
300
|
-
-webkit-text-fill-color: inherit !important;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
/**
|
|
304
|
-
* Hack to apply on some CSS on IE10 and IE11
|
|
305
|
-
*/
|
|
306
|
-
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
|
307
|
-
/**
|
|
308
|
-
* IE doesn't support '-webkit-text-fill-color'
|
|
309
|
-
* So we use 'color: transparent' to make the text transparent on IE
|
|
310
|
-
* Unlike other browsers, it doesn't affect caret color in IE
|
|
311
|
-
*/
|
|
312
|
-
.`).concat(P,` {
|
|
313
|
-
color: transparent !important;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
.`).concat(P,`::selection {
|
|
317
|
-
background-color: #accef7 !important;
|
|
318
|
-
color: transparent !important;
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
`),E=l.forwardRef(function(T,A){var z=T.autoFocus,L=T.disabled,M=T.form,Q=T.highlight,H=T.ignoreTabKey,ee=H===void 0?!1:H,ne=T.insertSpaces,Y=ne===void 0?!0:ne,Z=T.maxLength,se=T.minLength,B=T.name,te=T.onBlur,q=T.onClick,I=T.onFocus,X=T.onKeyDown,Re=T.onKeyUp,me=T.onValueChange,Te=T.padding,Se=Te===void 0?0:Te,ce=T.placeholder,ve=T.preClassName,Ae=T.readOnly,Ne=T.required,Le=T.style,Ue=T.tabSize,ut=Ue===void 0?2:Ue,Mt=T.textareaClassName,en=T.textareaId,Yt=T.value,Dt=o(T,["autoFocus","disabled","form","highlight","ignoreTabKey","insertSpaces","maxLength","minLength","name","onBlur","onClick","onFocus","onKeyDown","onKeyUp","onValueChange","padding","placeholder","preClassName","readOnly","required","style","tabSize","textareaClassName","textareaId","value"]),et=l.useRef({stack:[],offset:-1}),Rt=l.useRef(null),Nn=l.useState(!0),D=Nn[0],W=Nn[1],J={paddingTop:typeof Se=="object"?Se.top:Se,paddingRight:typeof Se=="object"?Se.right:Se,paddingBottom:typeof Se=="object"?Se.bottom:Se,paddingLeft:typeof Se=="object"?Se.left:Se},pe=Q(Yt),le=function(fe,qe){return fe.substring(0,qe).split(`
|
|
322
|
-
`)},re=l.useCallback(function(fe,qe){var Ve,Be,vt;qe===void 0&&(qe=!1);var Pt=et.current,Tn=Pt.stack,Qn=Pt.offset;if(Tn.length&&Qn>-1){et.current.stack=Tn.slice(0,Qn+1);var Zn=et.current.stack.length;if(Zn>w){var Wr=Zn-w;et.current.stack=Tn.slice(Wr,Zn),et.current.offset=Math.max(et.current.offset-Wr,0)}}var An=Date.now();if(qe){var ar=et.current.stack[et.current.offset];if(ar&&An-ar.timestamp<k){var ws=/[^a-z0-9]([a-z0-9]+)$/i,tn=(Ve=le(ar.value,ar.selectionStart).pop())===null||Ve===void 0?void 0:Ve.match(ws),Hr=(Be=le(fe.value,fe.selectionStart).pop())===null||Be===void 0?void 0:Be.match(ws);if(tn!=null&&tn[1]&&(!((vt=Hr==null?void 0:Hr[1])===null||vt===void 0)&&vt.startsWith(tn[1]))){et.current.stack[et.current.offset]=e(e({},fe),{timestamp:An});return}}}et.current.stack.push(e(e({},fe),{timestamp:An})),et.current.offset++},[]),he=l.useCallback(function(){var fe=Rt.current;if(fe){var qe=fe.value,Ve=fe.selectionStart,Be=fe.selectionEnd;re({value:qe,selectionStart:Ve,selectionEnd:Be})}},[re]),Me=function(fe){var qe=Rt.current;qe&&(qe.value=fe.value,qe.selectionStart=fe.selectionStart,qe.selectionEnd=fe.selectionEnd,me==null||me(fe.value))},$e=function(fe){var qe=Rt.current,Ve=et.current.stack[et.current.offset];Ve&&qe&&(et.current.stack[et.current.offset]=e(e({},Ve),{selectionStart:qe.selectionStart,selectionEnd:qe.selectionEnd})),re(fe),Me(fe)},_t=function(){var fe=et.current,qe=fe.stack,Ve=fe.offset,Be=qe[Ve-1];Be&&(Me(Be),et.current.offset=Math.max(Ve-1,0))},fn=function(){var fe=et.current,qe=fe.stack,Ve=fe.offset,Be=qe[Ve+1];Be&&(Me(Be),et.current.offset=Math.min(Ve+1,qe.length-1))},Kn=function(fe){if(!(X&&(X(fe),fe.defaultPrevented))){fe.key==="Escape"&&fe.currentTarget.blur();var qe=fe.currentTarget,Ve=qe.value,Be=qe.selectionStart,vt=qe.selectionEnd,Pt=(Y?" ":" ").repeat(ut);if(fe.key==="Tab"&&!ee&&D)if(fe.preventDefault(),fe.shiftKey){var Tn=le(Ve,Be),Qn=Tn.length-1,Zn=le(Ve,vt).length-1,Wr=Ve.split(`
|
|
323
|
-
`).map(function(cr,wi){return wi>=Qn&&wi<=Zn&&cr.startsWith(Pt)?cr.substring(Pt.length):cr}).join(`
|
|
324
|
-
`);if(Ve!==Wr){var An=Tn[Qn];$e({value:Wr,selectionStart:An!=null&&An.startsWith(Pt)?Be-Pt.length:Be,selectionEnd:vt-(Ve.length-Wr.length)})}}else if(Be!==vt){var Tn=le(Ve,Be),ar=Tn.length-1,ws=le(Ve,vt).length-1,An=Tn[ar];$e({value:Ve.split(`
|
|
325
|
-
`).map(function(Si,co){return co>=ar&&co<=ws?Pt+Si:Si}).join(`
|
|
326
|
-
`),selectionStart:An&&/\S/.test(An)?Be+Pt.length:Be,selectionEnd:vt+Pt.length*(ws-ar+1)})}else{var tn=Be+Pt.length;$e({value:Ve.substring(0,Be)+Pt+Ve.substring(vt),selectionStart:tn,selectionEnd:tn})}else if(fe.key==="Backspace"){var Hr=Be!==vt,Dl=Ve.substring(0,Be);if(Dl.endsWith(Pt)&&!Hr){fe.preventDefault();var tn=Be-Pt.length;$e({value:Ve.substring(0,Be-Pt.length)+Ve.substring(vt),selectionStart:tn,selectionEnd:tn})}}else if(fe.key==="Enter"){if(Be===vt){var Kr=le(Ve,Be).pop(),Ss=Kr==null?void 0:Kr.match(/^\s+/);if(Ss!=null&&Ss[0]){fe.preventDefault();var bs=`
|
|
327
|
-
`+Ss[0],tn=Be+bs.length;$e({value:Ve.substring(0,Be)+bs+Ve.substring(vt),selectionStart:tn,selectionEnd:tn})}}}else if(fe.keyCode===m||fe.keyCode===y||fe.keyCode===v||fe.keyCode===x){var lr=void 0;fe.keyCode===m&&fe.shiftKey?lr=["(",")"]:fe.keyCode===y?fe.shiftKey?lr=["{","}"]:lr=["[","]"]:fe.keyCode===v?fe.shiftKey?lr=['"','"']:lr=["'","'"]:fe.keyCode===x&&!fe.shiftKey&&(lr=["`","`"]),Be!==vt&&lr&&(fe.preventDefault(),$e({value:Ve.substring(0,Be)+lr[0]+Ve.substring(Be,vt)+lr[1]+Ve.substring(vt),selectionStart:Be,selectionEnd:vt+2}))}else(C?fe.metaKey&&fe.keyCode===c:fe.ctrlKey&&fe.keyCode===c)&&!fe.shiftKey&&!fe.altKey?(fe.preventDefault(),_t()):(C?fe.metaKey&&fe.keyCode===c&&fe.shiftKey:S?fe.ctrlKey&&fe.keyCode===u:fe.ctrlKey&&fe.keyCode===c&&fe.shiftKey)&&!fe.altKey?(fe.preventDefault(),fn()):fe.keyCode===h&&fe.ctrlKey&&(!C||fe.shiftKey)&&(fe.preventDefault(),W(function(cr){return!cr}))}},lo=function(fe){var qe=fe.currentTarget,Ve=qe.value,Be=qe.selectionStart,vt=qe.selectionEnd;re({value:Ve,selectionStart:Be,selectionEnd:vt},!0),me(Ve)};return l.useEffect(function(){he()},[he]),l.useImperativeHandle(A,function(){return{get session(){return{history:et.current}},set session(fe){et.current=fe.history}}},[]),l.createElement("div",e({},Dt,{style:e(e({},R.container),Le)}),l.createElement("pre",e({className:ve,"aria-hidden":"true",style:e(e(e({},R.editor),R.highlight),J)},typeof pe=="string"?{dangerouslySetInnerHTML:{__html:pe+"<br />"}}:{children:pe})),l.createElement("textarea",{ref:function(fe){return Rt.current=fe},style:e(e(e({},R.editor),R.textarea),J),className:P+(Mt?" ".concat(Mt):""),id:en,value:Yt,onChange:lo,onKeyDown:Kn,onClick:q,onKeyUp:Re,onFocus:I,onBlur:te,disabled:L,form:M,maxLength:Z,minLength:se,name:B,placeholder:ce,readOnly:Ae,required:Ne,autoFocus:z,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),l.createElement("style",{dangerouslySetInnerHTML:{__html:_}}))}),R={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}};return _n.default=E,_n}var pA=hA();const mA=zu(pA);var Sh={exports:{}},Ix;function gA(){return Ix||(Ix=1,(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
328
|
-
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
329
|
-
*
|
|
330
|
-
* @license MIT <https://opensource.org/licenses/MIT>
|
|
331
|
-
* @author Lea Verou <https://lea.verou.me>
|
|
332
|
-
* @namespace
|
|
333
|
-
* @public
|
|
334
|
-
*/var n=(function(i){var o=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,l=0,u={},c={manual:i.Prism&&i.Prism.manual,disableWorkerMessageHandler:i.Prism&&i.Prism.disableWorkerMessageHandler,util:{encode:function _(E){return E instanceof h?new h(E.type,_(E.content),E.alias):Array.isArray(E)?E.map(_):E.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(_){return Object.prototype.toString.call(_).slice(8,-1)},objId:function(_){return _.__id||Object.defineProperty(_,"__id",{value:++l}),_.__id},clone:function _(E,R){R=R||{};var N,T;switch(c.util.type(E)){case"Object":if(T=c.util.objId(E),R[T])return R[T];N={},R[T]=N;for(var A in E)E.hasOwnProperty(A)&&(N[A]=_(E[A],R));return N;case"Array":return T=c.util.objId(E),R[T]?R[T]:(N=[],R[T]=N,E.forEach(function(z,L){N[L]=_(z,R)}),N);default:return E}},getLanguage:function(_){for(;_;){var E=o.exec(_.className);if(E)return E[1].toLowerCase();_=_.parentElement}return"none"},setLanguage:function(_,E){_.className=_.className.replace(RegExp(o,"gi"),""),_.classList.add("language-"+E)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(N){var _=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(N.stack)||[])[1];if(_){var E=document.getElementsByTagName("script");for(var R in E)if(E[R].src==_)return E[R]}return null}},isActive:function(_,E,R){for(var N="no-"+E;_;){var T=_.classList;if(T.contains(E))return!0;if(T.contains(N))return!1;_=_.parentElement}return!!R}},languages:{plain:u,plaintext:u,text:u,txt:u,extend:function(_,E){var R=c.util.clone(c.languages[_]);for(var N in E)R[N]=E[N];return R},insertBefore:function(_,E,R,N){N=N||c.languages;var T=N[_],A={};for(var z in T)if(T.hasOwnProperty(z)){if(z==E)for(var L in R)R.hasOwnProperty(L)&&(A[L]=R[L]);R.hasOwnProperty(z)||(A[z]=T[z])}var M=N[_];return N[_]=A,c.languages.DFS(c.languages,function(Q,H){H===M&&Q!=_&&(this[Q]=A)}),A},DFS:function _(E,R,N,T){T=T||{};var A=c.util.objId;for(var z in E)if(E.hasOwnProperty(z)){R.call(E,z,E[z],N||z);var L=E[z],M=c.util.type(L);M==="Object"&&!T[A(L)]?(T[A(L)]=!0,_(L,R,null,T)):M==="Array"&&!T[A(L)]&&(T[A(L)]=!0,_(L,R,z,T))}}},plugins:{},highlightAll:function(_,E){c.highlightAllUnder(document,_,E)},highlightAllUnder:function(_,E,R){var N={callback:R,container:_,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};c.hooks.run("before-highlightall",N),N.elements=Array.prototype.slice.apply(N.container.querySelectorAll(N.selector)),c.hooks.run("before-all-elements-highlight",N);for(var T=0,A;A=N.elements[T++];)c.highlightElement(A,E===!0,N.callback)},highlightElement:function(_,E,R){var N=c.util.getLanguage(_),T=c.languages[N];c.util.setLanguage(_,N);var A=_.parentElement;A&&A.nodeName.toLowerCase()==="pre"&&c.util.setLanguage(A,N);var z=_.textContent,L={element:_,language:N,grammar:T,code:z};function M(H){L.highlightedCode=H,c.hooks.run("before-insert",L),L.element.innerHTML=L.highlightedCode,c.hooks.run("after-highlight",L),c.hooks.run("complete",L),R&&R.call(L.element)}if(c.hooks.run("before-sanity-check",L),A=L.element.parentElement,A&&A.nodeName.toLowerCase()==="pre"&&!A.hasAttribute("tabindex")&&A.setAttribute("tabindex","0"),!L.code){c.hooks.run("complete",L),R&&R.call(L.element);return}if(c.hooks.run("before-highlight",L),!L.grammar){M(c.util.encode(L.code));return}if(E&&i.Worker){var Q=new Worker(c.filename);Q.onmessage=function(H){M(H.data)},Q.postMessage(JSON.stringify({language:L.language,code:L.code,immediateClose:!0}))}else M(c.highlight(L.code,L.grammar,L.language))},highlight:function(_,E,R){var N={code:_,grammar:E,language:R};if(c.hooks.run("before-tokenize",N),!N.grammar)throw new Error('The language "'+N.language+'" has no grammar.');return N.tokens=c.tokenize(N.code,N.grammar),c.hooks.run("after-tokenize",N),h.stringify(c.util.encode(N.tokens),N.language)},tokenize:function(_,E){var R=E.rest;if(R){for(var N in R)E[N]=R[N];delete E.rest}var T=new v;return x(T,T.head,_),y(_,T,E,T.head,0),k(T)},hooks:{all:{},add:function(_,E){var R=c.hooks.all;R[_]=R[_]||[],R[_].push(E)},run:function(_,E){var R=c.hooks.all[_];if(!(!R||!R.length))for(var N=0,T;T=R[N++];)T(E)}},Token:h};i.Prism=c;function h(_,E,R,N){this.type=_,this.content=E,this.alias=R,this.length=(N||"").length|0}h.stringify=function _(E,R){if(typeof E=="string")return E;if(Array.isArray(E)){var N="";return E.forEach(function(M){N+=_(M,R)}),N}var T={type:E.type,content:_(E.content,R),tag:"span",classes:["token",E.type],attributes:{},language:R},A=E.alias;A&&(Array.isArray(A)?Array.prototype.push.apply(T.classes,A):T.classes.push(A)),c.hooks.run("wrap",T);var z="";for(var L in T.attributes)z+=" "+L+'="'+(T.attributes[L]||"").replace(/"/g,""")+'"';return"<"+T.tag+' class="'+T.classes.join(" ")+'"'+z+">"+T.content+"</"+T.tag+">"};function m(_,E,R,N){_.lastIndex=E;var T=_.exec(R);if(T&&N&&T[1]){var A=T[1].length;T.index+=A,T[0]=T[0].slice(A)}return T}function y(_,E,R,N,T,A){for(var z in R)if(!(!R.hasOwnProperty(z)||!R[z])){var L=R[z];L=Array.isArray(L)?L:[L];for(var M=0;M<L.length;++M){if(A&&A.cause==z+","+M)return;var Q=L[M],H=Q.inside,ee=!!Q.lookbehind,ne=!!Q.greedy,Y=Q.alias;if(ne&&!Q.pattern.global){var Z=Q.pattern.toString().match(/[imsuy]*$/)[0];Q.pattern=RegExp(Q.pattern.source,Z+"g")}for(var se=Q.pattern||Q,B=N.next,te=T;B!==E.tail&&!(A&&te>=A.reach);te+=B.value.length,B=B.next){var q=B.value;if(E.length>_.length)return;if(!(q instanceof h)){var I=1,X;if(ne){if(X=m(se,te,_,ee),!X||X.index>=_.length)break;var Se=X.index,Re=X.index+X[0].length,me=te;for(me+=B.value.length;Se>=me;)B=B.next,me+=B.value.length;if(me-=B.value.length,te=me,B.value instanceof h)continue;for(var Te=B;Te!==E.tail&&(me<Re||typeof Te.value=="string");Te=Te.next)I++,me+=Te.value.length;I--,q=_.slice(te,me),X.index-=te}else if(X=m(se,0,q,ee),!X)continue;var Se=X.index,ce=X[0],ve=q.slice(0,Se),Ae=q.slice(Se+ce.length),Ne=te+q.length;A&&Ne>A.reach&&(A.reach=Ne);var Le=B.prev;ve&&(Le=x(E,Le,ve),te+=ve.length),w(E,Le,I);var Ue=new h(z,H?c.tokenize(ce,H):ce,Y,ce);if(B=x(E,Le,Ue),Ae&&x(E,B,Ae),I>1){var ut={cause:z+","+M,reach:Ne};y(_,E,R,B.prev,te,ut),A&&ut.reach>A.reach&&(A.reach=ut.reach)}}}}}}function v(){var _={value:null,prev:null,next:null},E={value:null,prev:_,next:null};_.next=E,this.head=_,this.tail=E,this.length=0}function x(_,E,R){var N=E.next,T={value:R,prev:E,next:N};return E.next=T,N.prev=T,_.length++,T}function w(_,E,R){for(var N=E.next,T=0;T<R&&N!==_.tail;T++)N=N.next;E.next=N,N.prev=E,_.length-=T}function k(_){for(var E=[],R=_.head.next;R!==_.tail;)E.push(R.value),R=R.next;return E}if(!i.document)return i.addEventListener&&(c.disableWorkerMessageHandler||i.addEventListener("message",function(_){var E=JSON.parse(_.data),R=E.language,N=E.code,T=E.immediateClose;i.postMessage(c.highlight(N,c.languages[R],R)),T&&i.close()},!1)),c;var S=c.util.currentScript();S&&(c.filename=S.src,S.hasAttribute("data-manual")&&(c.manual=!0));function C(){c.manual||c.highlightAll()}if(!c.manual){var P=document.readyState;P==="loading"||P==="interactive"&&S&&S.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return c})(t);e.exports&&(e.exports=n),typeof Lv<"u"&&(Lv.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(i){i.type==="entity"&&(i.attributes.title=i.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(o,l){var u={};u["language-"+l]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[l]},u.cdata=/^<!\[CDATA\[|\]\]>$/i;var c={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:u}};c["language-"+l]={pattern:/[\s\S]+/,inside:n.languages[l]};var h={};h[o]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return o}),"i"),lookbehind:!0,greedy:!0,inside:c},n.languages.insertBefore("markup","cdata",h)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(i,o){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+i+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[o,"language-"+o],inside:n.languages[o]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,(function(i){var o=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;i.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+o.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+o.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+o.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+o.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:o,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},i.languages.css.atrule.inside.rest=i.languages.css;var l=i.languages.markup;l&&(l.tag.addInlined("style","css"),l.tag.addAttribute("style","css"))})(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,(function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var i="Loading…",o=function(S,C){return"✖ Error "+S+" while fetching file: "+C},l="✖ Error: File does not exist or is empty",u={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},c="data-src-status",h="loading",m="loaded",y="failed",v="pre[data-src]:not(["+c+'="'+m+'"]):not(['+c+'="'+h+'"])';function x(S,C,P){var _=new XMLHttpRequest;_.open("GET",S,!0),_.onreadystatechange=function(){_.readyState==4&&(_.status<400&&_.responseText?C(_.responseText):_.status>=400?P(o(_.status,_.statusText)):P(l))},_.send(null)}function w(S){var C=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(S||"");if(C){var P=Number(C[1]),_=C[2],E=C[3];return _?E?[P,Number(E)]:[P,void 0]:[P,P]}}n.hooks.add("before-highlightall",function(S){S.selector+=", "+v}),n.hooks.add("before-sanity-check",function(S){var C=S.element;if(C.matches(v)){S.code="",C.setAttribute(c,h);var P=C.appendChild(document.createElement("CODE"));P.textContent=i;var _=C.getAttribute("data-src"),E=S.language;if(E==="none"){var R=(/\.(\w+)$/.exec(_)||[,"none"])[1];E=u[R]||R}n.util.setLanguage(P,E),n.util.setLanguage(C,E);var N=n.plugins.autoloader;N&&N.loadLanguages(E),x(_,function(T){C.setAttribute(c,m);var A=w(C.getAttribute("data-range"));if(A){var z=T.split(/\r\n?|\n/g),L=A[0],M=A[1]==null?z.length:A[1];L<0&&(L+=z.length),L=Math.max(0,Math.min(L-1,z.length)),M<0&&(M+=z.length),M=Math.max(0,Math.min(M,z.length)),T=z.slice(L,M).join(`
|
|
335
|
-
`),C.hasAttribute("data-start")||C.setAttribute("data-start",String(L+1))}P.textContent=T,n.highlightElement(P)},function(T){C.setAttribute(c,y),P.textContent=T})}}),n.plugins.fileHighlight={highlight:function(C){for(var P=(C||document).querySelectorAll(v),_=0,E;E=P[_++];)n.highlightElement(E)}};var k=!1;n.fileHighlight=function(){k||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),k=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}})()})(Sh)),Sh.exports}var vA=gA();const Mx=zu(vA);(function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+n.source+"(?:[ ]+"+t.source+")?|"+t.source+"(?:[ ]+"+n.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),l=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function u(c,h){h=(h||"").replace(/m/g,"")+"m";var m=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return i}).replace(/<<value>>/g,function(){return c});return RegExp(m,h)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return i}).replace(/<<key>>/g,function(){return"(?:"+o+"|"+l+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:u(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:u(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:u(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:u(l),lookbehind:!0,greedy:!0},number:{pattern:u(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml})(Prism);function Lx({value:e,onChange:t,onValidate:n,onSave:i,onRun:o,validating:l,saving:u}){return f.jsxs("div",{className:"space-y-2",children:[f.jsx("div",{className:"rounded-md border bg-background",children:f.jsx(mA,{value:e,onValueChange:t,highlight:c=>Mx.highlight(c,Mx.languages.yaml,"yaml"),padding:16,style:{fontFamily:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace',fontSize:13,minHeight:300}})}),f.jsxs("div",{className:"flex gap-2",children:[n&&f.jsx(Qe,{size:"sm",variant:"outline",onClick:n,disabled:l,children:l?"Validating...":"Validate"}),i&&f.jsx(Qe,{size:"sm",onClick:i,disabled:u,children:u?"Saving...":"Save"}),o&&f.jsx(Qe,{size:"sm",variant:"secondary",onClick:o,children:"Run"})]})]})}const Fx=`name: My Tests
|
|
336
|
-
server: npx @modelcontextprotocol/server-filesystem /tmp
|
|
337
|
-
|
|
338
|
-
tests:
|
|
339
|
-
- name: List tools
|
|
340
|
-
call: list_directory
|
|
341
|
-
with:
|
|
342
|
-
path: /tmp
|
|
343
|
-
expect:
|
|
344
|
-
- exists: $.content
|
|
345
|
-
`;function yA(){var N,T;const[e,t]=b.useState(!1),[n,i]=b.useState(null),[o,l]=b.useState(""),[u,c]=b.useState(Fx),[h,m]=b.useState(""),[y,v]=b.useState(null),x=Tp(),w=lj(),k=cj(),S=uj(),C=dj(),P=s0();async function _(){await w.mutateAsync({name:o,yaml:u}),t(!1),l(""),c(Fx)}async function E(A){const z=await C.mutateAsync(A);v(z.data)}async function R(A){const z=await P.mutateAsync({collectionId:A});fs.navigate({to:"/runs/$runId",params:{runId:z.data.id}})}return f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:"Collections"}),f.jsxs(_u,{open:e,onOpenChange:t,children:[f.jsx(zp,{asChild:!0,children:f.jsxs(Qe,{children:[f.jsx(Uw,{className:"mr-2 h-4 w-4"}),"New Collection"]})}),f.jsxs(yl,{className:"max-w-2xl",children:[f.jsx(ku,{children:f.jsx(xl,{children:"Create Collection"})}),f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("label",{className:"text-sm font-medium",children:"Name"}),f.jsx(un,{value:o,onChange:A=>l(A.target.value),placeholder:"Collection name"})]}),f.jsxs("div",{children:[f.jsx("label",{className:"text-sm font-medium",children:"YAML"}),f.jsx(Lx,{value:u,onChange:c})]}),f.jsx(Qe,{onClick:_,disabled:!o||w.isPending,className:"w-full",children:w.isPending?"Creating...":"Create Collection"})]})]})]})]}),f.jsxs(at,{children:[f.jsx(At,{children:f.jsx(Ot,{children:"Saved Collections"})}),f.jsx(lt,{children:((N=x.data)==null?void 0:N.data.length)===0?f.jsx("p",{className:"text-sm text-muted-foreground py-4 text-center",children:"No collections yet"}):f.jsxs(Qu,{children:[f.jsx(Zu,{children:f.jsxs(no,{children:[f.jsx(ln,{children:"Name"}),f.jsx(ln,{children:"Description"}),f.jsx(ln,{children:"Updated"}),f.jsx(ln,{className:"text-right",children:"Actions"})]})}),f.jsx(qu,{children:(T=x.data)==null?void 0:T.data.map(A=>f.jsxs(no,{children:[f.jsx(cn,{className:"font-medium",children:A.name}),f.jsx(cn,{className:"text-sm text-muted-foreground",children:A.description??"-"}),f.jsx(cn,{className:"text-sm text-muted-foreground",children:new Date(A.updatedAt).toLocaleDateString()}),f.jsxs(cn,{className:"text-right space-x-2",children:[f.jsx(Qe,{size:"sm",variant:"outline",onClick:()=>{i(A.id),m(A.yaml)},children:f.jsx(nE,{className:"h-4 w-4"})}),f.jsx(Qe,{size:"sm",variant:"secondary",onClick:()=>R(A.id),children:f.jsx(to,{className:"h-4 w-4"})}),f.jsx(Qe,{size:"sm",variant:"ghost",onClick:()=>S.mutate(A.id),children:f.jsx(Ol,{className:"h-4 w-4 text-destructive"})})]})]},A.id))})]})})]}),f.jsx(_u,{open:!!n,onOpenChange:A=>{A||i(null)},children:f.jsxs(yl,{className:"max-w-2xl",children:[f.jsx(ku,{children:f.jsx(xl,{children:"Edit Collection"})}),f.jsx(Lx,{value:h,onChange:m,onValidate:()=>n&&E(n),validating:C.isPending,onSave:async()=>{n&&(await k.mutateAsync({id:n,data:{yaml:h}}),i(null))},saving:k.isPending,onRun:()=>n&&R(n)}),y&&f.jsx("div",{className:"flex items-center gap-2 mt-2",children:y.valid?f.jsxs(mt,{variant:"success",children:[f.jsx(Tl,{className:"mr-1 h-3 w-3"}),"Valid"]}):f.jsxs(mt,{variant:"destructive",children:[f.jsx(Al,{className:"mr-1 h-3 w-3"}),"Invalid"]})})]})})]})}function xA({status:e}){switch(e){case"completed":return f.jsxs(mt,{variant:"success",children:[f.jsx(Tl,{className:"mr-1 h-3 w-3"}),"Completed"]});case"failed":return f.jsxs(mt,{variant:"destructive",children:[f.jsx(Al,{className:"mr-1 h-3 w-3"}),"Failed"]});case"running":return f.jsxs(mt,{variant:"warning",children:[f.jsx(Su,{className:"mr-1 h-3 w-3 animate-spin"}),"Running"]});case"cancelled":return f.jsxs(mt,{variant:"secondary",children:[f.jsx(Rp,{className:"mr-1 h-3 w-3"}),"Cancelled"]});default:return f.jsx(mt,{variant:"secondary",children:e})}}function wA(){var m,y,v;const[e,t]=b.useState(!1),[n,i]=b.useState(""),o=r0(),l=Tp(),u=s0(),c=hj();async function h(){if(!n)return;const x=await u.mutateAsync({collectionId:n});t(!1),fs.navigate({to:"/runs/$runId",params:{runId:x.data.id}})}return f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:"Test Runs"}),f.jsxs(_u,{open:e,onOpenChange:t,children:[f.jsx(zp,{asChild:!0,children:f.jsxs(Qe,{children:[f.jsx(to,{className:"mr-2 h-4 w-4"}),"Run Collection"]})}),f.jsxs(yl,{children:[f.jsx(ku,{children:f.jsx(xl,{children:"Run Collection"})}),f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("label",{className:"text-sm font-medium",children:"Collection"}),f.jsxs(Un,{value:n,onValueChange:i,children:[f.jsx(Rn,{children:f.jsx(Wn,{placeholder:"Select a collection"})}),f.jsx(Pn,{children:(m=l.data)==null?void 0:m.data.map(x=>f.jsx(dt,{value:x.id,children:x.name},x.id))})]})]}),f.jsx(Qe,{onClick:h,disabled:!n||u.isPending,className:"w-full",children:u.isPending?"Starting...":"Start Run"})]})]})]})]}),f.jsxs(at,{children:[f.jsx(At,{children:f.jsx(Ot,{children:"Run History"})}),f.jsx(lt,{children:((y=o.data)==null?void 0:y.data.length)===0?f.jsx("p",{className:"text-sm text-muted-foreground py-4 text-center",children:"No runs yet"}):f.jsxs(Qu,{children:[f.jsx(Zu,{children:f.jsxs(no,{children:[f.jsx(ln,{children:"Collection"}),f.jsx(ln,{children:"Status"}),f.jsx(ln,{children:"Tests"}),f.jsx(ln,{children:"Duration"}),f.jsx(ln,{children:"Started"}),f.jsx(ln,{className:"text-right",children:"Actions"})]})}),f.jsx(qu,{children:(v=o.data)==null?void 0:v.data.map(x=>f.jsxs(no,{className:"cursor-pointer",onClick:()=>fs.navigate({to:"/runs/$runId",params:{runId:x.id}}),children:[f.jsx(cn,{className:"font-medium",children:x.collectionName}),f.jsx(cn,{children:f.jsx(xA,{status:x.status})}),f.jsx(cn,{children:x.summary?f.jsxs("span",{className:"text-sm",children:[f.jsx("span",{className:"text-green-600",children:x.summary.passed})," / ",f.jsx("span",{children:x.summary.total}),x.summary.failed>0&&f.jsxs("span",{className:"text-red-600",children:[" (",x.summary.failed," failed)"]})]}):"-"}),f.jsx(cn,{children:x.duration?`${x.duration}ms`:"-"}),f.jsx(cn,{className:"text-sm text-muted-foreground",children:new Date(x.startedAt).toLocaleString()}),f.jsx(cn,{className:"text-right",onClick:w=>w.stopPropagation(),children:f.jsx(Qe,{size:"sm",variant:"ghost",onClick:()=>c.mutate(x.id),children:f.jsx(Ol,{className:"h-4 w-4 text-destructive"})})})]},x.id))})]})})]})]})}function SA({status:e}){switch(e){case"passed":return f.jsx(Tl,{className:"h-4 w-4 text-green-600"});case"failed":return f.jsx(Al,{className:"h-4 w-4 text-red-600"});case"error":return f.jsx(Rp,{className:"h-4 w-4 text-red-600"});case"skipped":return f.jsx(Su,{className:"h-4 w-4 text-yellow-600"});default:return null}}function bA({result:e}){const[t,n]=b.useState(!1);return f.jsxs("div",{className:"rounded-md border p-3 cursor-pointer hover:bg-muted/30 transition-colors",onClick:()=>n(!t),children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(SA,{status:e.status}),f.jsx("span",{className:"text-sm font-medium",children:e.testName})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsxs("span",{className:"text-xs text-muted-foreground",children:[e.duration,"ms"]}),f.jsx(mt,{variant:e.status==="passed"?"success":e.status==="failed"?"destructive":"secondary",children:e.status})]})]}),t&&f.jsxs("div",{className:"mt-3 space-y-2 text-sm",children:[e.error&&f.jsx("div",{className:"rounded bg-red-50 p-2 text-red-700 font-mono text-xs",children:e.error}),e.assertions.length>0&&f.jsxs("div",{className:"space-y-1",children:[f.jsx("p",{className:"font-medium text-xs text-muted-foreground",children:"Assertions:"}),e.assertions.map((i,o)=>f.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[i.passed?f.jsx(Tl,{className:"h-3 w-3 text-green-600"}):f.jsx(Al,{className:"h-3 w-3 text-red-600"}),f.jsx("span",{children:i.message})]},o))]})]})]})}function CA(){const{runId:e}=Hu({from:"/runs/$runId"}),{data:t,isLoading:n}=fj(e),i=t==null?void 0:t.data;return n?f.jsx("div",{className:"flex items-center justify-center h-64",children:f.jsx(Su,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):i?f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsxs(Qe,{variant:"ghost",size:"sm",onClick:()=>fs.navigate({to:"/runs"}),children:[f.jsx(jp,{className:"h-4 w-4 mr-1"}),"Back"]}),f.jsx("h2",{className:"text-2xl font-bold",children:i.collectionName}),f.jsx(mt,{variant:i.status==="completed"?"success":i.status==="failed"?"destructive":"warning",children:i.status})]}),i.summary&&f.jsxs("div",{className:"grid gap-4 grid-cols-2 md:grid-cols-5",children:[f.jsx(at,{children:f.jsxs(lt,{className:"pt-4 text-center",children:[f.jsx("p",{className:"text-2xl font-bold",children:i.summary.total}),f.jsx("p",{className:"text-xs text-muted-foreground",children:"Total"})]})}),f.jsx(at,{children:f.jsxs(lt,{className:"pt-4 text-center",children:[f.jsx("p",{className:"text-2xl font-bold text-green-600",children:i.summary.passed}),f.jsx("p",{className:"text-xs text-muted-foreground",children:"Passed"})]})}),f.jsx(at,{children:f.jsxs(lt,{className:"pt-4 text-center",children:[f.jsx("p",{className:"text-2xl font-bold text-red-600",children:i.summary.failed}),f.jsx("p",{className:"text-xs text-muted-foreground",children:"Failed"})]})}),f.jsx(at,{children:f.jsxs(lt,{className:"pt-4 text-center",children:[f.jsx("p",{className:"text-2xl font-bold text-yellow-600",children:i.summary.skipped}),f.jsx("p",{className:"text-xs text-muted-foreground",children:"Skipped"})]})}),f.jsx(at,{children:f.jsxs(lt,{className:"pt-4 text-center",children:[f.jsxs("p",{className:"text-2xl font-bold",children:[i.summary.duration,"ms"]}),f.jsx("p",{className:"text-xs text-muted-foreground",children:"Duration"})]})})]}),f.jsxs(at,{children:[f.jsx(At,{children:f.jsx(Ot,{children:"Test Results"})}),f.jsx(lt,{className:"space-y-2",children:i.results&&i.results.length>0?i.results.map((o,l)=>f.jsx(bA,{result:o},l)):i.status==="running"?f.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground py-4 justify-center",children:[f.jsx(Su,{className:"h-4 w-4 animate-spin"}),"Running tests..."]}):f.jsx("p",{className:"text-sm text-muted-foreground py-4 text-center",children:"No results"})})]})]}):f.jsx("p",{className:"text-muted-foreground",children:"Run not found"})}var bh="rovingFocusGroup.onEntryFocus",_A={bubbles:!1,cancelable:!0},Fl="RovingFocusGroup",[ap,$S,kA]=Q0(Fl),[EA,BS]=pa(Fl,[kA]),[jA,RA]=EA(Fl),US=b.forwardRef((e,t)=>f.jsx(ap.Provider,{scope:e.__scopeRovingFocusGroup,children:f.jsx(ap.Slot,{scope:e.__scopeRovingFocusGroup,children:f.jsx(PA,{...e,ref:t})})}));US.displayName=Fl;var PA=b.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:i,loop:o=!1,dir:l,currentTabStopId:u,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:h,onEntryFocus:m,preventScrollOnEntryFocus:y=!1,...v}=e,x=b.useRef(null),w=It(t,x),k=Kp(l),[S,C]=gl({prop:u,defaultProp:c??null,onChange:h,caller:Fl}),[P,_]=b.useState(!1),E=hi(m),R=$S(n),N=b.useRef(!1),[T,A]=b.useState(0);return b.useEffect(()=>{const z=x.current;if(z)return z.addEventListener(bh,E),()=>z.removeEventListener(bh,E)},[E]),f.jsx(jA,{scope:n,orientation:i,dir:k,loop:o,currentTabStopId:S,onItemFocus:b.useCallback(z=>C(z),[C]),onItemShiftTab:b.useCallback(()=>_(!0),[]),onFocusableItemAdd:b.useCallback(()=>A(z=>z+1),[]),onFocusableItemRemove:b.useCallback(()=>A(z=>z-1),[]),children:f.jsx(ot.div,{tabIndex:P||T===0?-1:0,"data-orientation":i,...v,ref:w,style:{outline:"none",...e.style},onMouseDown:Je(e.onMouseDown,()=>{N.current=!0}),onFocus:Je(e.onFocus,z=>{const L=!N.current;if(z.target===z.currentTarget&&L&&!P){const M=new CustomEvent(bh,_A);if(z.currentTarget.dispatchEvent(M),!M.defaultPrevented){const Q=R().filter(Z=>Z.focusable),H=Q.find(Z=>Z.active),ee=Q.find(Z=>Z.id===S),Y=[H,ee,...Q].filter(Boolean).map(Z=>Z.ref.current);KS(Y,y)}}N.current=!1}),onBlur:Je(e.onBlur,()=>_(!1))})})}),WS="RovingFocusGroupItem",HS=b.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:i=!0,active:o=!1,tabStopId:l,children:u,...c}=e,h=ui(),m=l||h,y=RA(WS,n),v=y.currentTabStopId===m,x=$S(n),{onFocusableItemAdd:w,onFocusableItemRemove:k,currentTabStopId:S}=y;return b.useEffect(()=>{if(i)return w(),()=>k()},[i,w,k]),f.jsx(ap.ItemSlot,{scope:n,id:m,focusable:i,active:o,children:f.jsx(ot.span,{tabIndex:v?0:-1,"data-orientation":y.orientation,...c,ref:t,onMouseDown:Je(e.onMouseDown,C=>{i?y.onItemFocus(m):C.preventDefault()}),onFocus:Je(e.onFocus,()=>y.onItemFocus(m)),onKeyDown:Je(e.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){y.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const P=AA(C,y.orientation,y.dir);if(P!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let E=x().filter(R=>R.focusable).map(R=>R.ref.current);if(P==="last")E.reverse();else if(P==="prev"||P==="next"){P==="prev"&&E.reverse();const R=E.indexOf(C.currentTarget);E=y.loop?OA(E,R+1):E.slice(R+1)}setTimeout(()=>KS(E))}}),children:typeof u=="function"?u({isCurrentTabStop:v,hasTabStop:S!=null}):u})})});HS.displayName=WS;var NA={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function TA(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function AA(e,t,n){const i=TA(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return NA[i]}function KS(e,t=!1){const n=document.activeElement;for(const i of e)if(i===n||(i.focus({preventScroll:t}),document.activeElement!==n))return}function OA(e,t){return e.map((n,i)=>e[(t+i)%e.length])}var IA=US,MA=HS,od="Tabs",[LA]=pa(od,[BS]),QS=BS(),[FA,nm]=LA(od),ZS=b.forwardRef((e,t)=>{const{__scopeTabs:n,value:i,onValueChange:o,defaultValue:l,orientation:u="horizontal",dir:c,activationMode:h="automatic",...m}=e,y=Kp(c),[v,x]=gl({prop:i,onChange:o,defaultProp:l??"",caller:od});return f.jsx(FA,{scope:n,baseId:ui(),value:v,onValueChange:x,orientation:u,dir:y,activationMode:h,children:f.jsx(ot.div,{dir:y,"data-orientation":u,...m,ref:t})})});ZS.displayName=od;var qS="TabsList",GS=b.forwardRef((e,t)=>{const{__scopeTabs:n,loop:i=!0,...o}=e,l=nm(qS,n),u=QS(n);return f.jsx(IA,{asChild:!0,...u,orientation:l.orientation,dir:l.dir,loop:i,children:f.jsx(ot.div,{role:"tablist","aria-orientation":l.orientation,...o,ref:t})})});GS.displayName=qS;var YS="TabsTrigger",XS=b.forwardRef((e,t)=>{const{__scopeTabs:n,value:i,disabled:o=!1,...l}=e,u=nm(YS,n),c=QS(n),h=tb(u.baseId,i),m=nb(u.baseId,i),y=i===u.value;return f.jsx(MA,{asChild:!0,...c,focusable:!o,active:y,children:f.jsx(ot.button,{type:"button",role:"tab","aria-selected":y,"aria-controls":m,"data-state":y?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:h,...l,ref:t,onMouseDown:Je(e.onMouseDown,v=>{!o&&v.button===0&&v.ctrlKey===!1?u.onValueChange(i):v.preventDefault()}),onKeyDown:Je(e.onKeyDown,v=>{[" ","Enter"].includes(v.key)&&u.onValueChange(i)}),onFocus:Je(e.onFocus,()=>{const v=u.activationMode!=="manual";!y&&!o&&v&&u.onValueChange(i)})})})});XS.displayName=YS;var JS="TabsContent",eb=b.forwardRef((e,t)=>{const{__scopeTabs:n,value:i,forceMount:o,children:l,...u}=e,c=nm(JS,n),h=tb(c.baseId,i),m=nb(c.baseId,i),y=i===c.value,v=b.useRef(y);return b.useEffect(()=>{const x=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(x)},[]),f.jsx(Il,{present:o||y,children:({present:x})=>f.jsx(ot.div,{"data-state":y?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":h,hidden:!x,id:m,tabIndex:0,...u,ref:t,style:{...e.style,animationDuration:v.current?"0s":void 0},children:x&&l})})});eb.displayName=JS;function tb(e,t){return`${e}-trigger-${t}`}function nb(e,t){return`${e}-content-${t}`}var DA=ZS,zA=GS,VA=XS,$A=eb;const lp=DA,Du=b.forwardRef(({className:e,...t},n)=>f.jsx(zA,{ref:n,className:ht("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));Du.displayName="TabsList";const ss=b.forwardRef(({className:e,...t},n)=>f.jsx(VA,{ref:n,className:ht("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));ss.displayName="TabsTrigger";const is=b.forwardRef(({className:e,...t},n)=>f.jsx($A,{ref:n,className:ht("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));is.displayName="TabsContent";const _l=b.forwardRef(({className:e,...t},n)=>f.jsx("textarea",{className:ht("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));_l.displayName="Textarea";const rb=b.forwardRef(({className:e,...t},n)=>f.jsx("input",{type:"checkbox",className:ht("h-4 w-4 shrink-0 rounded border border-input ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));rb.displayName="Checkbox";const kl=b.forwardRef(({className:e,...t},n)=>f.jsx("label",{className:ht("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",e),ref:n,...t}));kl.displayName="Label";function BA(e,t){return e.default!==void 0?e.default:e.type==="boolean"?!1:e.type==="number"||e.type==="integer"?t?0:"":(e.type==="object"||e.type==="array","")}function UA(e,t){const n={};for(const[i,o]of Object.entries(e))n[i]=BA(o,t.includes(i));return n}function Dx(e,t){if(t.type==="number"||t.type==="integer"){const i=String(e);if(i==="")return;const o=Number(i);return isNaN(o)?void 0:o}if(t.type==="boolean")return!!e;if(t.type==="object"||t.type==="array"){const i=String(e).trim();if(!i)return;try{return JSON.parse(i)}catch{return}}const n=String(e);return n===""?void 0:n}function WA(e){return!!(e.maxLength&&e.maxLength>200||e.format==="textarea")}function HA(e){return e.format==="uri"||e.format==="url"?"url":e.format==="email"?"email":e.format==="date"?"date":e.format==="date-time"?"datetime-local":"text"}function KA({name:e,prop:t,required:n,value:i,onChange:o}){const l=`field-${e}`,u=f.jsxs(kl,{htmlFor:l,children:[e,n&&f.jsx("span",{className:"text-red-500 ml-0.5",children:"*"})]}),c=t.description?f.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:t.description}):null;return t.enum&&t.enum.length>0?f.jsxs("div",{className:"space-y-1.5",children:[u,f.jsxs(Un,{value:String(i??""),onValueChange:h=>o(e,h),children:[f.jsx(Rn,{id:l,children:f.jsx(Wn,{placeholder:`Select ${e}`})}),f.jsx(Pn,{children:t.enum.map(h=>f.jsx(dt,{value:h,children:h},h))})]}),c]}):t.type==="boolean"?f.jsxs("div",{className:"space-y-1.5",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(rb,{id:l,checked:!!i,onChange:h=>o(e,h.target.checked)}),f.jsxs(kl,{htmlFor:l,children:[e,n&&f.jsx("span",{className:"text-red-500 ml-0.5",children:"*"})]})]}),c]}):t.type==="number"||t.type==="integer"?f.jsxs("div",{className:"space-y-1.5",children:[u,f.jsx(un,{id:l,type:"number",value:i===void 0?"":String(i),onChange:h=>o(e,h.target.value),min:t.minimum,max:t.maximum,step:t.type==="integer"?1:void 0,required:n}),c]}):t.type==="object"||t.type==="array"||t.type&&!["string","number","integer","boolean"].includes(t.type)?f.jsxs("div",{className:"space-y-1.5",children:[u,f.jsx(_l,{id:l,value:String(i??""),onChange:h=>o(e,h.target.value),className:"font-mono text-xs",rows:3,placeholder:t.type==="array"?'["item1", "item2"]':'{"key": "value"}',required:n}),c]}):WA(t)?f.jsxs("div",{className:"space-y-1.5",children:[u,f.jsx(_l,{id:l,value:String(i??""),onChange:h=>o(e,h.target.value),rows:3,minLength:t.minLength,maxLength:t.maxLength,required:n}),c]}):f.jsxs("div",{className:"space-y-1.5",children:[u,f.jsx(un,{id:l,type:HA(t),value:String(i??""),onChange:h=>o(e,h.target.value),minLength:t.minLength,maxLength:t.maxLength,required:n}),c]})}function QA({schema:e,onSubmit:t,loading:n}){const i=e.properties??{},o=e.required??[],l=Object.keys(i),[u,c]=b.useState(()=>UA(i,o)),[h,m]=b.useState(!1),[y,v]=b.useState("{}"),x=b.useCallback((C,P)=>{c(_=>({..._,[C]:P}))},[]);function w(C){if(C.preventDefault(),h){try{t(JSON.parse(y))}catch{}return}const P={};for(const[_,E]of Object.entries(i)){const R=Dx(u[_],E);R!==void 0&&(P[_]=R)}t(P)}function k(){const C={};for(const[P,_]of Object.entries(i)){const E=Dx(u[P],_);E!==void 0&&(C[P]=E)}v(JSON.stringify(C,null,2)),m(!0)}function S(){try{const C=JSON.parse(y);typeof C=="object"&&C!==null&&c(P=>({...P,...C}))}catch{}m(!1)}return l.length===0?f.jsxs("form",{onSubmit:w,className:"space-y-4",children:[f.jsxs("div",{className:"space-y-1.5",children:[f.jsx(kl,{children:"Input (JSON)"}),f.jsx(_l,{value:y,onChange:C=>v(C.target.value),className:"font-mono text-xs",rows:4})]}),f.jsxs(Qe,{type:"submit",disabled:n,children:[n?f.jsx(fi,{className:"mr-2 h-4 w-4 animate-spin"}):f.jsx(to,{className:"mr-2 h-4 w-4"}),"Call Tool"]})]}):f.jsxs("form",{onSubmit:w,className:"space-y-4",children:[h?f.jsxs("div",{className:"space-y-1.5",children:[f.jsx(kl,{children:"Input (JSON)"}),f.jsx(_l,{value:y,onChange:C=>v(C.target.value),className:"font-mono text-xs",rows:8})]}):f.jsx("div",{className:"space-y-3",children:l.map(C=>f.jsx(KA,{name:C,prop:i[C],required:o.includes(C),value:u[C],onChange:x},C))}),f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs(Qe,{type:"submit",disabled:n,children:[n?f.jsx(fi,{className:"mr-2 h-4 w-4 animate-spin"}):f.jsx(to,{className:"mr-2 h-4 w-4"}),"Call Tool"]}),f.jsx("button",{type:"button",onClick:h?S:k,className:"inline-flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors",children:h?f.jsxs(f.Fragment,{children:[f.jsx(eE,{className:"h-3.5 w-3.5"}),"Form view"]}):f.jsxs(f.Fragment,{children:[f.jsx(Gk,{className:"h-3.5 w-3.5"}),"Raw JSON"]})})]})]})}function rm({data:e}){return f.jsx("pre",{className:"rounded-md border bg-muted/50 p-4 text-xs font-mono overflow-auto max-h-96",children:JSON.stringify(e,null,2)})}function ZA({sessionId:e,tools:t}){const[n,i]=b.useState(""),[o,l]=b.useState(null),[u,c]=b.useState(null),[h,m]=b.useState(!1),y=t.find(w=>w.name===n);async function v(w){if(n){m(!0),c(null),l(null);try{const k=await ct.inspect.call(e,n,w);l(k.data)}catch(k){c(k instanceof Error?k.message:"Call failed")}m(!1)}}const x=(y==null?void 0:y.inputSchema)??{type:"object",properties:{}};return f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("label",{className:"text-sm font-medium",children:"Tool"}),f.jsxs(Un,{value:n,onValueChange:w=>{i(w),l(null),c(null)},children:[f.jsx(Rn,{children:f.jsx(Wn,{placeholder:"Select a tool"})}),f.jsx(Pn,{children:t.map(w=>f.jsx(dt,{value:w.name,children:w.name},w.name))})]}),(y==null?void 0:y.description)&&f.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:y.description})]}),y&&f.jsx(QA,{schema:x,onSubmit:v,loading:h},y.name),u!=null&&f.jsx("div",{className:"rounded-md border border-red-200 bg-red-50 p-3 text-sm text-red-700",children:u}),o!=null&&f.jsxs("div",{children:[f.jsx("label",{className:"text-sm font-medium",children:"Result"}),f.jsx(rm,{data:o})]})]})}function qA({entries:e}){const[t,n]=b.useState(null),[i,o]=b.useState("all"),[l,u]=b.useState(""),[c,h]=b.useState(!0),[m,y]=b.useState(0),v=b.useRef(null),x=m?e.filter(k=>k.timestamp>m):e;b.useEffect(()=>{c&&v.current&&(v.current.scrollTop=v.current.scrollHeight)},[x,c]);const w=x.filter(k=>!(i!=="all"&&k.direction!==i||l&&!(k.method??"").toLowerCase().includes(l.toLowerCase())));return f.jsxs("div",{className:"space-y-3",children:[f.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[f.jsxs(Un,{value:i,onValueChange:k=>o(k),children:[f.jsx(Rn,{className:"w-[130px]",children:f.jsx(Wn,{})}),f.jsxs(Pn,{children:[f.jsx(dt,{value:"all",children:"All"}),f.jsx(dt,{value:"outgoing",children:"Outgoing"}),f.jsx(dt,{value:"incoming",children:"Incoming"})]})]}),f.jsx(un,{className:"w-[200px]",placeholder:"Filter by method...",value:l,onChange:k=>u(k.target.value)}),f.jsx("div",{className:"flex-1"}),f.jsx(Qe,{size:"sm",variant:c?"default":"outline",onClick:()=>h(!c),title:"Auto-scroll",children:f.jsx(Hk,{className:"h-4 w-4"})}),f.jsx(Qe,{size:"sm",variant:"outline",onClick:()=>y(Date.now()),title:"Clear log",children:f.jsx(Ol,{className:"h-4 w-4"})}),f.jsxs("span",{className:"text-xs text-muted-foreground",children:[w.length," / ",x.length," messages"]})]}),f.jsx("div",{ref:v,className:"rounded-md border overflow-auto max-h-[600px]",children:f.jsx(sb,{entries:w,expandedId:t,onToggle:k=>n(t===k?null:k)})})]})}function sb({entries:e,expandedId:t,onToggle:n}){return f.jsxs("table",{className:"w-full text-xs",children:[f.jsx("thead",{className:"sticky top-0 bg-muted/80 backdrop-blur",children:f.jsxs("tr",{className:"border-b",children:[f.jsx("th",{className:"text-left px-3 py-2 font-medium",children:"Time"}),f.jsx("th",{className:"text-left px-3 py-2 font-medium w-10",children:"Dir"}),f.jsx("th",{className:"text-left px-3 py-2 font-medium",children:"Method"}),f.jsx("th",{className:"text-left px-3 py-2 font-medium w-16",children:"ID"}),f.jsx("th",{className:"text-right px-3 py-2 font-medium w-16",children:"RTT"}),f.jsx("th",{className:"text-right px-3 py-2 font-medium w-16",children:"Size"})]})}),f.jsx("tbody",{children:e.length===0?f.jsx("tr",{children:f.jsx("td",{colSpan:6,className:"text-center py-8 text-muted-foreground",children:"No protocol messages yet."})}):e.map(i=>f.jsx("tr",{className:"group",children:f.jsxs("td",{colSpan:6,className:"p-0",children:[f.jsx("button",{onClick:()=>n==null?void 0:n(i.id),className:"w-full text-left hover:bg-muted/50 transition-colors",children:f.jsxs("div",{className:"grid grid-cols-[auto_40px_1fr_64px_64px_64px] items-center px-3 py-1.5",children:[f.jsx("span",{className:"font-mono text-muted-foreground pr-3",children:GA(i.timestamp)}),f.jsx("span",{children:i.direction==="outgoing"?f.jsx(Qk,{className:"h-3 w-3 text-blue-500"}):f.jsx(Kk,{className:`h-3 w-3 ${i.isError?"text-red-500":"text-green-500"}`})}),f.jsx("span",{className:"truncate",children:i.method?f.jsx("span",{className:"font-medium",children:i.method}):i.isError?f.jsx(mt,{variant:"destructive",className:"text-[10px] px-1 py-0",children:"error"}):f.jsx("span",{className:"text-muted-foreground",children:"response"})}),f.jsx("span",{className:"text-right font-mono text-muted-foreground",children:i.jsonrpcId!=null?String(i.jsonrpcId):""}),f.jsx("span",{className:"text-right font-mono text-muted-foreground",children:i.roundTripMs!=null?`${i.roundTripMs}ms`:""}),f.jsx("span",{className:"text-right font-mono text-muted-foreground",children:XA(YA(i.message))})]})}),t===i.id&&f.jsx("div",{className:"px-3 pb-3",children:f.jsx(rm,{data:i.message})})]})},i.id))})]})}function GA(e){return new Date(e).toLocaleTimeString([],{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:3})}function YA(e){try{return new Blob([JSON.stringify(e)]).size}catch{return 0}}function XA(e){return e<1024?`${e} B`:`${(e/1024).toFixed(1)} KB`}const zx=20;function JA({entries:e}){const[t,n]=b.useState(null),[i,o]=b.useState(0),l=b.useRef(null),c=(i?e.filter(h=>h.timestamp>i):e).slice(-zx);return b.useEffect(()=>{l.current&&(l.current.scrollTop=l.current.scrollHeight)},[e]),f.jsxs("div",{children:[f.jsxs("div",{className:"flex items-center justify-between mb-2",children:[f.jsxs("p",{className:"text-xs font-medium text-muted-foreground",children:["Protocol Log (last ",zx,")"]}),f.jsx(Qe,{size:"sm",variant:"ghost",onClick:()=>o(Date.now()),title:"Clear log",className:"h-6 px-2",children:f.jsx(Ol,{className:"h-3 w-3"})})]}),f.jsx("div",{ref:l,className:"rounded-md border overflow-auto max-h-[250px]",children:f.jsx(sb,{entries:c,expandedId:t,onToggle:h=>n(t===h?null:h)})})]})}function ad({url:e,onMessage:t,enabled:n=!0}){const i=b.useRef(null),o=b.useRef(0),l=b.useRef(),[u,c]=b.useState(!1),h=e??`ws://${window.location.host}/ws`,m=b.useCallback(()=>{var w;if(((w=i.current)==null?void 0:w.readyState)===WebSocket.OPEN)return;const x=new WebSocket(h);x.onopen=()=>{c(!0),o.current=0},x.onmessage=k=>{try{const S=JSON.parse(k.data);t==null||t(S)}catch{}},x.onclose=()=>{c(!1);const k=Math.min(1e3*2**o.current,3e4);o.current++,o.current<10&&(l.current=setTimeout(m,k))},x.onerror=()=>{x.close()},i.current=x},[h,t]);b.useEffect(()=>(n&&m(),()=>{var x;clearTimeout(l.current),(x=i.current)==null||x.close()}),[n,m]);const y=b.useCallback(x=>{const w=i.current;(w==null?void 0:w.readyState)===WebSocket.OPEN&&w.send(JSON.stringify({type:"subscribe",channel:x}))},[]),v=b.useCallback(x=>{const w=i.current;(w==null?void 0:w.readyState)===WebSocket.OPEN&&w.send(JSON.stringify({type:"unsubscribe",channel:x}))},[]);return{connected:u,subscribe:y,unsubscribe:v}}const Vx=1e4;function eO(e){const[t,n]=b.useState([]);b.useEffect(()=>{if(!e){n([]);return}ct.inspect.messages(e).then(h=>{n(h.data)}).catch(()=>{})},[e]);const i=b.useCallback(h=>{if(e&&h.type==="event"&&h.event==="protocol-message"&&h.channel===`inspect:${e}`){const m=h.data;n(y=>{const v=[...y,m];return v.length>Vx?v.slice(v.length-Vx):v})}},[e]),{subscribe:o,unsubscribe:l,connected:u}=ad({onMessage:i,enabled:!!e});b.useEffect(()=>(u&&e&&o(`inspect:${e}`),()=>{e&&l(`inspect:${e}`)}),[u,e,o,l]);const c=b.useCallback(()=>n([]),[]);return{entries:t,clear:c}}function tO(){var z;const[e,t]=b.useState("saved"),[n,i]=b.useState(""),[o,l]=b.useState(""),[u,c]=b.useState(""),[h,m]=b.useState("stdio"),[y,v]=b.useState(null),[x,w]=b.useState(!1),[k,S]=b.useState([]),[C,P]=b.useState([]),[_,E]=b.useState(null),R=Ku(),{entries:N}=eO(y);async function T(){var L;w(!0),E(null);try{let M;if(e==="saved"){const ne=(L=R.data)==null?void 0:L.data.find(Y=>Y.id===n);if(!ne)throw new Error("Server not found");M={transport:ne.transport,command:ne.command,args:ne.args,url:ne.url,env:ne.env}}else if(h==="stdio"){const ne=o.split(/\s+/);M={transport:"stdio",command:ne[0],args:ne.slice(1)}}else M={transport:h,url:u};const Q=await ct.inspect.connect(M);v(Q.data.sessionId);const[H,ee]=await Promise.all([ct.inspect.tools(Q.data.sessionId),ct.inspect.resources(Q.data.sessionId).catch(()=>({data:[]}))]);S(H.data),P(ee.data)}catch(M){E(M instanceof Error?M.message:"Connection failed")}w(!1)}async function A(){y&&(await ct.inspect.disconnect(y).catch(()=>{}),v(null),S([]),P([]))}return f.jsxs("div",{className:"space-y-6",children:[f.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:"Inspector"}),y?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(mt,{variant:"success",children:"Connected"}),f.jsxs("span",{className:"text-sm text-muted-foreground",children:[k.length," tools, ",C.length," resources"]}),f.jsxs(Qe,{size:"sm",variant:"outline",onClick:A,children:[f.jsx(sE,{className:"mr-2 h-4 w-4"}),"Disconnect"]})]}),f.jsxs(lp,{defaultValue:"tools",children:[f.jsxs(Du,{children:[f.jsxs(ss,{value:"tools",children:["Tools (",k.length,")"]}),f.jsxs(ss,{value:"resources",children:["Resources (",C.length,")"]}),f.jsx(ss,{value:"call",children:"Call Tool"}),f.jsx(ss,{value:"protocol",children:"Protocol Log"})]}),f.jsx(is,{value:"tools",className:"mt-4 space-y-3",children:k.map(L=>f.jsx(at,{children:f.jsxs(lt,{className:"pt-4",children:[f.jsx("p",{className:"font-medium text-sm",children:L.name}),L.description&&f.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:L.description}),L.inputSchema&&f.jsxs("details",{className:"mt-2",children:[f.jsx("summary",{className:"text-xs text-muted-foreground cursor-pointer",children:"Input Schema"}),f.jsx(rm,{data:L.inputSchema})]})]})},L.name))}),f.jsx(is,{value:"resources",className:"mt-4 space-y-3",children:C.length===0?f.jsx("p",{className:"text-sm text-muted-foreground",children:"No resources exposed"}):C.map(L=>f.jsx(at,{children:f.jsxs(lt,{className:"pt-4",children:[f.jsx("p",{className:"font-medium text-sm",children:L.name??L.uri}),f.jsx("p",{className:"text-xs text-muted-foreground",children:L.uri}),L.description&&f.jsx("p",{className:"text-xs mt-1",children:L.description})]})},L.uri))}),f.jsxs(is,{value:"call",className:"mt-4 space-y-4",children:[f.jsx(at,{children:f.jsx(lt,{className:"pt-4",children:f.jsx(ZA,{sessionId:y,tools:k})})}),f.jsx(JA,{entries:N})]}),f.jsx(is,{value:"protocol",className:"mt-4",children:f.jsx(at,{children:f.jsx(lt,{className:"pt-4",children:f.jsx(qA,{entries:N})})})})]})]}):f.jsxs(at,{children:[f.jsx(At,{children:f.jsx(Ot,{children:"Connect to Server"})}),f.jsxs(lt,{className:"space-y-4",children:[f.jsxs(lp,{value:e,onValueChange:L=>t(L),children:[f.jsxs(Du,{children:[f.jsx(ss,{value:"saved",children:"Saved Server"}),f.jsx(ss,{value:"custom",children:"Custom"})]}),f.jsx(is,{value:"saved",className:"space-y-3 mt-3",children:f.jsxs(Un,{value:n,onValueChange:i,children:[f.jsx(Rn,{children:f.jsx(Wn,{placeholder:"Select a server"})}),f.jsx(Pn,{children:(z=R.data)==null?void 0:z.data.map(L=>f.jsxs(dt,{value:L.id,children:[L.name," (",L.transport,")"]},L.id))})]})}),f.jsxs(is,{value:"custom",className:"space-y-3 mt-3",children:[f.jsxs(Un,{value:h,onValueChange:L=>m(L),children:[f.jsx(Rn,{children:f.jsx(Wn,{})}),f.jsxs(Pn,{children:[f.jsx(dt,{value:"stdio",children:"stdio"}),f.jsx(dt,{value:"sse",children:"SSE"}),f.jsx(dt,{value:"streamable-http",children:"Streamable HTTP"})]})]}),h==="stdio"?f.jsx(un,{value:o,onChange:L=>l(L.target.value),placeholder:"npx @modelcontextprotocol/server-filesystem /tmp"}):f.jsx(un,{value:u,onChange:L=>c(L.target.value),placeholder:"http://localhost:3000/sse"})]})]}),_&&f.jsx("div",{className:"rounded-md border border-red-200 bg-red-50 p-3 text-sm text-red-700",children:_}),f.jsxs(Qe,{onClick:T,disabled:x,className:"w-full",children:[x?f.jsx(fi,{className:"mr-2 h-4 w-4 animate-spin"}):f.jsx(Bw,{className:"mr-2 h-4 w-4"}),"Connect"]})]})]})]})}function ld({title:e="Connect to Server",onConnect:t,connecting:n,error:i,children:o}){var _;const[l,u]=b.useState("saved"),[c,h]=b.useState(""),[m,y]=b.useState(""),[v,x]=b.useState(""),[w,k]=b.useState("stdio"),S=Ku();async function C(){var R;let E;if(l==="saved"){const N=(R=S.data)==null?void 0:R.data.find(T=>T.id===c);if(!N)return;E={transport:N.transport,command:N.command,args:N.args,url:N.url,env:N.env}}else if(w==="stdio"){const N=m.split(/\s+/);E={transport:"stdio",command:N[0],args:N.slice(1)}}else E={transport:w,url:v};await t(E)}const P=l==="saved"?!!c:w==="stdio"?!!m:!!v;return f.jsxs(at,{children:[f.jsx(At,{children:f.jsx(Ot,{children:e})}),f.jsxs(lt,{className:"space-y-4",children:[f.jsxs(lp,{value:l,onValueChange:E=>u(E),children:[f.jsxs(Du,{children:[f.jsx(ss,{value:"saved",children:"Saved Server"}),f.jsx(ss,{value:"custom",children:"Custom"})]}),f.jsx(is,{value:"saved",className:"space-y-3 mt-3",children:f.jsxs(Un,{value:c,onValueChange:h,children:[f.jsx(Rn,{children:f.jsx(Wn,{placeholder:"Select a server"})}),f.jsx(Pn,{children:(_=S.data)==null?void 0:_.data.map(E=>f.jsxs(dt,{value:E.id,children:[E.name," (",E.transport,")"]},E.id))})]})}),f.jsxs(is,{value:"custom",className:"space-y-3 mt-3",children:[f.jsxs(Un,{value:w,onValueChange:E=>k(E),children:[f.jsx(Rn,{children:f.jsx(Wn,{})}),f.jsxs(Pn,{children:[f.jsx(dt,{value:"stdio",children:"stdio"}),f.jsx(dt,{value:"sse",children:"SSE"}),f.jsx(dt,{value:"streamable-http",children:"Streamable HTTP"})]})]}),w==="stdio"?f.jsx(un,{value:m,onChange:E=>y(E.target.value),placeholder:"npx @modelcontextprotocol/server-filesystem /tmp"}):f.jsx(un,{value:v,onChange:E=>x(E.target.value),placeholder:"http://localhost:3000/sse"})]})]}),o,i&&f.jsx("div",{className:"rounded-md border border-red-200 bg-red-50 p-3 text-sm text-red-700",children:i}),f.jsxs(Qe,{onClick:C,disabled:n||!P,className:"w-full",children:[n?f.jsx(fi,{className:"mr-2 h-4 w-4 animate-spin"}):f.jsx(Bw,{className:"mr-2 h-4 w-4"}),"Connect & Start"]})]})]})}const Ch={critical:"bg-red-600 text-white",high:"bg-red-500 text-white",medium:"bg-orange-500 text-white",low:"bg-yellow-500 text-black",info:"bg-blue-500 text-white"};function nO(){const[e,t]=b.useState("setup"),[n,i]=b.useState("passive"),[o,l]=b.useState(!1),[u,c]=b.useState(null),[h,m]=b.useState(null),[y,v]=b.useState(null),[x,w]=b.useState(0),[k,S]=b.useState(0),[C,P]=b.useState([]),[_,E]=b.useState(null),[R,N]=b.useState("all"),[T,A]=b.useState(null),z=b.useCallback(Y=>{if(!(Y.type!=="event"||!h||Y.channel!==`scan:${h}`))switch(Y.event){case"rule-start":{const Z=Y.data;v(Z.ruleName);break}case"rule-complete":{w(Z=>Z+1);break}case"finding":{const Z=Y.data;P(se=>[...se,Z.finding]);break}case"completed":{h&&ct.audit.result(h).then(Z=>{E(Z.data),t("results")}).catch(()=>{t("results")});break}case"error":{const Z=Y.data;c(Z.message),t("setup");break}}},[h]),{subscribe:L,connected:M}=ad({onMessage:z,enabled:!!h});b.useEffect(()=>{M&&h&&L(`scan:${h}`)},[M,h,L]);async function Q(Y){l(!0),c(null),P([]),w(0),v(null);try{const Z=await ct.audit.start({...Y,mode:n});m(Z.data.sessionId);const se=await ct.audit.status(Z.data.sessionId);se.data.progress&&S(se.data.progress.totalRules),t("scanning")}catch(Z){c(Z instanceof Error?Z.message:"Failed to start audit")}l(!1)}async function H(){h&&(await ct.audit.stop(h).catch(()=>{}),m(null),t("setup"))}function ee(){m(null),E(null),P([]),w(0),v(null),c(null),t("setup")}const ne=(_==null?void 0:_.findings.filter(Y=>R==="all"||Y.severity===R))??[];return f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(Hw,{className:"h-8 w-8 text-primary"}),f.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:"Security Audit"})]}),e==="setup"&&f.jsx(ld,{title:"Start Security Audit",onConnect:Q,connecting:o,error:u,children:f.jsxs("div",{className:"space-y-2",children:[f.jsx("label",{className:"text-sm font-medium",children:"Scan Mode"}),f.jsxs(Un,{value:n,onValueChange:Y=>i(Y),children:[f.jsx(Rn,{children:f.jsx(Wn,{})}),f.jsxs(Pn,{children:[f.jsx(dt,{value:"passive",children:"Passive (safe, read-only probes)"}),f.jsx(dt,{value:"active",children:"Active (sends test payloads)"}),f.jsx(dt,{value:"aggressive",children:"Aggressive (extensive probing)"})]})]}),n!=="passive"&&f.jsxs("div",{className:"rounded-md border border-amber-200 bg-amber-50 p-3 text-sm text-amber-800",children:[f.jsx("strong",{children:"Warning:"})," ",n==="active"?"Active":"Aggressive"," mode sends potentially harmful payloads. Only use against test environments."]})]})}),e==="scanning"&&f.jsxs(at,{children:[f.jsx(At,{children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs(Ot,{className:"flex items-center gap-2",children:[f.jsx(fi,{className:"h-5 w-5 animate-spin"}),"Scanning..."]}),f.jsxs(Qe,{variant:"outline",size:"sm",onClick:H,children:[f.jsx(Dw,{className:"mr-2 h-4 w-4"}),"Stop"]})]})}),f.jsxs(lt,{className:"space-y-4",children:[f.jsxs("div",{className:"space-y-2",children:[f.jsxs("div",{className:"flex justify-between text-sm text-muted-foreground",children:[f.jsx("span",{children:y?`Running: ${y}`:"Starting..."}),f.jsxs("span",{children:[x," / ",k," rules"]})]}),f.jsx("div",{className:"h-2 w-full rounded-full bg-muted",children:f.jsx("div",{className:"h-2 rounded-full bg-primary transition-all",style:{width:k>0?`${x/k*100}%`:"0%"}})})]}),f.jsxs("div",{className:"flex gap-2 flex-wrap",children:[["critical","high","medium","low","info"].map(Y=>{const Z=C.filter(se=>se.severity===Y).length;return Z===0?null:f.jsxs(mt,{className:Ch[Y],children:[Y,": ",Z]},Y)}),C.length===0&&f.jsx("span",{className:"text-sm text-muted-foreground",children:"No findings yet"})]})]})]}),e==="results"&&_&&f.jsxs(f.Fragment,{children:[f.jsxs(at,{children:[f.jsx(At,{children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs(Ot,{children:["Scan Results - ",_.serverName]}),f.jsx(Qe,{variant:"outline",size:"sm",onClick:ee,children:"New Scan"})]})}),f.jsxs(lt,{className:"space-y-4",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"text-sm font-medium",children:"Mode:"}),f.jsx(mt,{variant:"outline",children:_.mode}),f.jsx("span",{className:"text-sm font-medium ml-4",children:"Total Findings:"}),f.jsx(mt,{variant:"secondary",children:_.summary.totalFindings})]}),f.jsxs("div",{className:"flex gap-2 flex-wrap",children:[["critical","high","medium","low","info"].map(Y=>{const Z=_.summary.bySeverity[Y];return Z===0?null:f.jsxs(mt,{className:Ch[Y],children:[Y,": ",Z]},Y)}),_.summary.totalFindings===0&&f.jsx("span",{className:"text-sm text-green-600 font-medium",children:"No vulnerabilities found"})]})]})]}),_.findings.length>0&&f.jsxs(at,{children:[f.jsx(At,{children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx(Ot,{children:"Findings"}),f.jsxs(Un,{value:R,onValueChange:N,children:[f.jsx(Rn,{className:"w-40",children:f.jsx(Wn,{})}),f.jsxs(Pn,{children:[f.jsx(dt,{value:"all",children:"All Severities"}),f.jsx(dt,{value:"critical",children:"Critical"}),f.jsx(dt,{value:"high",children:"High"}),f.jsx(dt,{value:"medium",children:"Medium"}),f.jsx(dt,{value:"low",children:"Low"}),f.jsx(dt,{value:"info",children:"Info"})]})]})]})}),f.jsx(lt,{children:f.jsx("div",{className:"space-y-2",children:ne.map(Y=>f.jsxs("div",{className:"rounded-md border",children:[f.jsxs("button",{className:"flex w-full items-center gap-3 p-3 text-left hover:bg-muted/50 transition-colors",onClick:()=>A(T===Y.id?null:Y.id),children:[T===Y.id?f.jsx(Fw,{className:"h-4 w-4 flex-shrink-0"}):f.jsx(qk,{className:"h-4 w-4 flex-shrink-0"}),f.jsx(mt,{className:`${Ch[Y.severity]} flex-shrink-0`,children:Y.severity}),f.jsx("span",{className:"text-xs text-muted-foreground flex-shrink-0",children:Y.rule}),f.jsx("span",{className:"text-sm font-medium truncate",children:Y.title})]}),T===Y.id&&f.jsxs("div",{className:"border-t px-3 py-3 space-y-2 bg-muted/20",children:[f.jsx("p",{className:"text-sm",children:Y.description}),Y.evidence&&f.jsxs("div",{children:[f.jsx("p",{className:"text-xs font-medium text-muted-foreground mb-1",children:"Evidence"}),f.jsx("pre",{className:"rounded bg-muted p-2 text-xs overflow-x-auto",children:Y.evidence})]}),Y.remediation&&f.jsxs("div",{children:[f.jsx("p",{className:"text-xs font-medium text-muted-foreground mb-1",children:"Remediation"}),f.jsx("p",{className:"text-sm",children:Y.remediation})]})]})]},Y.id))})})]})]})]})}function rO(){const[e,t]=b.useState("connect"),[n,i]=b.useState(!1),[o,l]=b.useState(null),[u,c]=b.useState(null),[h,m]=b.useState([]),[y,v]=b.useState(""),[x,w]=b.useState("{}"),[k,S]=b.useState("100"),[C,P]=b.useState("5"),[_,E]=b.useState(null),[R,N]=b.useState("warmup"),[T,A]=b.useState(0),[z,L]=b.useState(0),[M,Q]=b.useState(null),H=b.useCallback(q=>{if(!(q.type!=="event"||!_||q.channel!==`benchmark:${_}`))switch(q.event){case"warmup-start":{N("warmup");break}case"iteration":{const I=q.data;N("measuring"),A(I.iteration);break}case"completed":{const I=q.data;Q(I.result),t("results");break}case"error":{const I=q.data;l(I.message),t("connect");break}}},[_]),{subscribe:ee,connected:ne}=ad({onMessage:H,enabled:!!_});b.useEffect(()=>{ne&&_&&ee(`benchmark:${_}`)},[ne,_,ee]);async function Y(q){i(!0),l(null);try{const I=await ct.inspect.connect({transport:q.transport,command:q.command,args:q.args,url:q.url,env:q.env}),X=await ct.inspect.tools(I.data.sessionId);m(X.data),c(q),await ct.inspect.disconnect(I.data.sessionId).catch(()=>{}),X.data.length>0&&v(X.data[0].name),t("setup")}catch(I){l(I instanceof Error?I.message:"Failed to connect")}i(!1)}async function Z(){if(!(!u||!y)){l(null),A(0),L(parseInt(k,10)),N("warmup");try{let q={};try{q=JSON.parse(x)}catch{l("Invalid JSON in tool arguments");return}const I=await ct.benchmark.start({...u,tool:y,toolArgs:q,iterations:parseInt(k,10),warmup:parseInt(C,10)});E(I.data.sessionId),t("running")}catch(q){l(q instanceof Error?q.message:"Failed to start benchmark")}}}async function se(){_&&(await ct.benchmark.stop(_).catch(()=>{}),E(null),t("setup"))}function B(){E(null),Q(null),A(0),l(null),t("connect"),c(null),m([]),v("")}function te(q){return q.toFixed(2)}return f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(Qw,{className:"h-8 w-8 text-primary"}),f.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:"Performance Benchmark"})]}),e==="connect"&&f.jsx(ld,{title:"Connect to Server",onConnect:Y,connecting:n,error:o}),e==="setup"&&f.jsxs(at,{children:[f.jsx(At,{children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx(Ot,{children:"Configure Benchmark"}),f.jsxs(mt,{variant:"success",children:[h.length," tools available"]})]})}),f.jsxs(lt,{className:"space-y-4",children:[f.jsxs("div",{className:"space-y-2",children:[f.jsx("label",{className:"text-sm font-medium",children:"Tool"}),f.jsxs(Un,{value:y,onValueChange:v,children:[f.jsx(Rn,{children:f.jsx(Wn,{placeholder:"Select a tool"})}),f.jsx(Pn,{children:h.map(q=>f.jsxs(dt,{value:q.name,children:[q.name,q.description?` - ${q.description}`:""]},q.name))})]})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsx("label",{className:"text-sm font-medium",children:"Tool Arguments (JSON)"}),f.jsx(un,{value:x,onChange:q=>w(q.target.value),placeholder:'{"path": "/tmp"}',className:"font-mono text-sm"})]}),f.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[f.jsxs("div",{className:"space-y-2",children:[f.jsx("label",{className:"text-sm font-medium",children:"Iterations"}),f.jsx(un,{type:"number",value:k,onChange:q=>S(q.target.value),min:"1"})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsx("label",{className:"text-sm font-medium",children:"Warmup Iterations"}),f.jsx(un,{type:"number",value:C,onChange:q=>P(q.target.value),min:"0"})]})]}),o&&f.jsx("div",{className:"rounded-md border border-red-200 bg-red-50 p-3 text-sm text-red-700",children:o}),f.jsxs(Qe,{onClick:Z,disabled:!y,className:"w-full",children:[f.jsx(to,{className:"mr-2 h-4 w-4"}),"Run Benchmark"]})]})]}),e==="running"&&f.jsxs(at,{children:[f.jsx(At,{children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs(Ot,{className:"flex items-center gap-2",children:[f.jsx(fi,{className:"h-5 w-5 animate-spin"}),"Running Benchmark"]}),f.jsxs(Qe,{variant:"outline",size:"sm",onClick:se,children:[f.jsx(Dw,{className:"mr-2 h-4 w-4"}),"Stop"]})]})}),f.jsxs(lt,{className:"space-y-4",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"text-sm font-medium",children:"Tool:"}),f.jsx(mt,{variant:"outline",children:y}),f.jsx("span",{className:"text-sm font-medium ml-4",children:"Phase:"}),f.jsx(mt,{variant:R==="warmup"?"secondary":"default",children:R==="warmup"?"Warmup":"Measuring"})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsxs("div",{className:"flex justify-between text-sm text-muted-foreground",children:[f.jsx("span",{children:R==="warmup"?"Warming up...":`Iteration ${T} / ${z}`}),z>0&&R==="measuring"&&f.jsxs("span",{children:[(T/z*100).toFixed(0),"%"]})]}),f.jsx("div",{className:"h-2 w-full rounded-full bg-muted",children:f.jsx("div",{className:"h-2 rounded-full bg-primary transition-all",style:{width:R==="warmup"?"0%":z>0?`${T/z*100}%`:"0%"}})})]})]})]}),e==="results"&&M&&f.jsx(f.Fragment,{children:f.jsxs(at,{children:[f.jsx(At,{children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs(Ot,{children:["Benchmark Results - ",M.toolName]}),f.jsx(Qe,{variant:"outline",size:"sm",onClick:B,children:"New Benchmark"})]})}),f.jsxs(lt,{className:"space-y-6",children:[f.jsxs("div",{className:"flex gap-3 flex-wrap",children:[f.jsxs(mt,{variant:"outline",children:[M.iterations," iterations"]}),f.jsxs(mt,{variant:"outline",children:[M.errors," errors"]}),M.iterations>0&&f.jsxs(mt,{variant:"outline",children:[(M.errors/M.iterations*100).toFixed(1),"% error rate"]})]}),f.jsxs("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-4",children:[f.jsx(Ws,{label:"Min",value:`${te(M.stats.min)} ms`}),f.jsx(Ws,{label:"Max",value:`${te(M.stats.max)} ms`}),f.jsx(Ws,{label:"Mean",value:`${te(M.stats.mean)} ms`}),f.jsx(Ws,{label:"Median",value:`${te(M.stats.median)} ms`}),f.jsx(Ws,{label:"P95",value:`${te(M.stats.p95)} ms`}),f.jsx(Ws,{label:"P99",value:`${te(M.stats.p99)} ms`}),f.jsx(Ws,{label:"Std Dev",value:`${te(M.stats.stddev)} ms`}),f.jsx(Ws,{label:"Throughput",value:(()=>{const q=new Date(M.startedAt).getTime(),X=(new Date(M.completedAt).getTime()-q)/1e3;return X>0?`${(M.iterations/X).toFixed(1)} calls/sec`:"N/A"})()})]})]})]})})]})}function Ws({label:e,value:t}){return f.jsxs("div",{className:"rounded-md border p-3",children:[f.jsx("p",{className:"text-xs text-muted-foreground",children:e}),f.jsx("p",{className:"text-lg font-semibold",children:t})]})}function sO(){const[e,t]=b.useState("setup"),[n,i]=b.useState("markdown"),[o,l]=b.useState(!1),[u,c]=b.useState(null),[h,m]=b.useState(""),[y,v]=b.useState(!1);async function x(C){l(!0),c(null);try{const P=await ct.docs.generate({...C,format:n});m(P.data.content),t("results")}catch(P){c(P instanceof Error?P.message:"Failed to generate documentation")}l(!1)}function w(){navigator.clipboard.writeText(h),v(!0),setTimeout(()=>v(!1),2e3)}function k(){const C=n==="html"?"index.html":"README.md",P=n==="html"?"text/html":"text/markdown",_=new Blob([h],{type:P}),E=URL.createObjectURL(_),R=document.createElement("a");R.href=E,R.download=C,R.click(),URL.revokeObjectURL(E)}function S(){t("setup"),m(""),c(null)}return f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(Vw,{className:"h-8 w-8 text-primary"}),f.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:"Documentation"})]}),e==="setup"&&f.jsx(ld,{title:"Generate Documentation",onConnect:x,connecting:o,error:u,children:f.jsxs("div",{className:"space-y-2",children:[f.jsx("label",{className:"text-sm font-medium",children:"Output Format"}),f.jsxs(Un,{value:n,onValueChange:C=>i(C),children:[f.jsx(Rn,{children:f.jsx(Wn,{})}),f.jsxs(Pn,{children:[f.jsx(dt,{value:"markdown",children:"Markdown"}),f.jsx(dt,{value:"html",children:"HTML"})]})]})]})}),e==="results"&&f.jsxs(at,{children:[f.jsx(At,{children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs(Ot,{children:["Generated Documentation (",n.toUpperCase(),")"]}),f.jsxs("div",{className:"flex gap-2",children:[f.jsxs(Qe,{variant:"outline",size:"sm",onClick:w,children:[f.jsx(Yk,{className:"mr-2 h-4 w-4"}),y?"Copied!":"Copy"]}),f.jsxs(Qe,{variant:"outline",size:"sm",onClick:k,children:[f.jsx(zw,{className:"mr-2 h-4 w-4"}),"Download"]}),f.jsxs(Qe,{variant:"outline",size:"sm",onClick:S,children:[f.jsx(jp,{className:"mr-2 h-4 w-4"}),"Back"]})]})]})}),f.jsx(lt,{children:f.jsx("pre",{className:"max-h-[600px] overflow-auto rounded-md bg-muted p-4 text-sm",children:f.jsx("code",{children:h})})})]})]})}function iO(e){return e>=80?"bg-green-500":e>=60?"bg-yellow-500":"bg-red-500"}function $x(e){return e>=80?"text-green-600":e>=60?"text-yellow-600":"text-red-600"}const Bx={documentation:"Documentation",schemaQuality:"Schema Quality",errorHandling:"Error Handling",performance:"Performance",security:"Security"};function oO(){const[e,t]=b.useState("setup"),[n,i]=b.useState(!1),[o,l]=b.useState(null),[u,c]=b.useState(null),[h,m]=b.useState(null),[y,v]=b.useState(null),x=b.useCallback(_=>{if(!(_.type!=="event"||!h||!_.channel.startsWith(`score:${h}`)))switch(_.event){case"category-start":{const E=_.data;c(E.category);break}}},[h]),{subscribe:w,connected:k}=ad({onMessage:x,enabled:!!h&&e==="calculating"});b.useEffect(()=>{k&&h&&w(`score:${h}`)},[k,h,w]);async function S(_){i(!0),l(null),c(null),t("calculating");try{const E=await ct.score.calculate(_);m(E.data.sessionId),v(E.data.score),t("results")}catch(E){l(E instanceof Error?E.message:"Failed to calculate score"),t("setup")}i(!1)}async function C(){if(y)try{const _=await ct.score.badge(y),E=new Blob([_.data.svg],{type:"image/svg+xml"}),R=URL.createObjectURL(E),N=document.createElement("a");N.href=R,N.download="mcp-score-badge.svg",N.click(),URL.revokeObjectURL(R)}catch{}}function P(){t("setup"),v(null),m(null),l(null),c(null)}return f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(Kw,{className:"h-8 w-8 text-primary"}),f.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:"MCP Score"})]}),e==="setup"&&f.jsx(ld,{title:"Calculate MCP Score",onConnect:S,connecting:n,error:o}),e==="calculating"&&f.jsxs(at,{children:[f.jsx(At,{children:f.jsxs(Ot,{className:"flex items-center gap-2",children:[f.jsx(fi,{className:"h-5 w-5 animate-spin"}),"Calculating Score..."]})}),f.jsx(lt,{children:f.jsx("p",{className:"text-sm text-muted-foreground",children:u?`Evaluating ${Bx[u]??u}...`:"Connecting to server..."})})]}),e==="results"&&y&&f.jsxs(f.Fragment,{children:[f.jsxs(at,{children:[f.jsx(At,{children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx(Ot,{children:"Overall Score"}),f.jsxs("div",{className:"flex gap-2",children:[f.jsxs(Qe,{variant:"outline",size:"sm",onClick:C,children:[f.jsx(zw,{className:"mr-2 h-4 w-4"}),"Download Badge"]}),f.jsxs(Qe,{variant:"outline",size:"sm",onClick:P,children:[f.jsx(jp,{className:"mr-2 h-4 w-4"}),"Back"]})]})]})}),f.jsx(lt,{children:f.jsx("div",{className:"flex items-center justify-center py-4",children:f.jsxs("div",{className:"text-center",children:[f.jsx("div",{className:`text-6xl font-bold ${$x(y.overall)}`,children:y.overall}),f.jsx("div",{className:"text-lg text-muted-foreground mt-1",children:"out of 100"})]})})})]}),f.jsxs(at,{children:[f.jsx(At,{children:f.jsx(Ot,{children:"Category Breakdown"})}),f.jsx(lt,{className:"space-y-4",children:Object.entries(y.categories).map(([_,E])=>f.jsxs("div",{className:"space-y-1",children:[f.jsxs("div",{className:"flex justify-between text-sm",children:[f.jsx("span",{className:"font-medium",children:Bx[_]??_}),f.jsxs("span",{className:$x(E),children:[E,"/100"]})]}),f.jsx("div",{className:"h-3 w-full rounded-full bg-muted",children:f.jsx("div",{className:`h-3 rounded-full transition-all ${iO(E)}`,style:{width:`${E}%`}})})]},_))})]})]})]})}const Er=Nk({component:function(){const t=Hn(),n=t.state.location.pathname;return f.jsx(HE,{currentPath:n,onNavigate:i=>t.navigate({to:i}),children:f.jsx(Mw,{})})}}),aO=_r({getParentRoute:()=>Er,path:"/",component:mj}),lO=_r({getParentRoute:()=>Er,path:"/servers",component:fA}),cO=_r({getParentRoute:()=>Er,path:"/collections",component:yA}),uO=_r({getParentRoute:()=>Er,path:"/runs",component:wA}),dO=_r({getParentRoute:()=>Er,path:"/runs/$runId",component:CA}),fO=_r({getParentRoute:()=>Er,path:"/inspect",component:tO}),hO=_r({getParentRoute:()=>Er,path:"/audit",component:nO}),pO=_r({getParentRoute:()=>Er,path:"/benchmark",component:rO}),mO=_r({getParentRoute:()=>Er,path:"/docs",component:sO}),gO=_r({getParentRoute:()=>Er,path:"/score",component:oO}),vO=Er.addChildren([aO,lO,cO,uO,dO,fO,hO,pO,mO,gO]),fs=Dk({routeTree:vO});Uh.getState().initTheme();const yO=new NC({defaultOptions:{queries:{staleTime:5e3,refetchOnWindowFocus:!1}}});oC.createRoot(document.getElementById("root")).render(f.jsx(b.StrictMode,{children:f.jsx(TC,{client:yO,children:f.jsx($k,{router:fs})})}));
|
|
346
|
-
//# sourceMappingURL=index-Bet505kH.js.map
|