@modelcontextprotocol/inspector 0.1.7 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -15
- package/client/dist/assets/index-D0KYkwsv.js +190 -0
- package/client/dist/assets/{index-DJlejpJa.css → index-DSYhznMv.css} +1 -1
- package/client/dist/index.html +2 -2
- package/package.json +6 -5
- package/server/build/index.js +18 -2
- package/client/dist/assets/index-CfHoM4KT.js +0 -195
- package/server/build/client.js +0 -76
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
function yy(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function vp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yp={exports:{}},xa={},xp={exports:{}},te={};/**
|
|
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 Ls=Symbol.for("react.element"),xy=Symbol.for("react.portal"),wy=Symbol.for("react.fragment"),Sy=Symbol.for("react.strict_mode"),_y=Symbol.for("react.profiler"),Cy=Symbol.for("react.provider"),ky=Symbol.for("react.context"),Ey=Symbol.for("react.forward_ref"),by=Symbol.for("react.suspense"),Ny=Symbol.for("react.memo"),Ty=Symbol.for("react.lazy"),Pd=Symbol.iterator;function Ry(e){return e===null||typeof e!="object"?null:(e=Pd&&e[Pd]||e["@@iterator"],typeof e=="function"?e:null)}var wp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Sp=Object.assign,_p={};function yo(e,t,n){this.props=e,this.context=t,this.refs=_p,this.updater=n||wp}yo.prototype.isReactComponent={};yo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};yo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Cp(){}Cp.prototype=yo.prototype;function ou(e,t,n){this.props=e,this.context=t,this.refs=_p,this.updater=n||wp}var su=ou.prototype=new Cp;su.constructor=ou;Sp(su,yo.prototype);su.isPureReactComponent=!0;var jd=Array.isArray,kp=Object.prototype.hasOwnProperty,iu={current:null},Ep={key:!0,ref:!0,__self:!0,__source:!0};function bp(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)kp.call(t,r)&&!Ep.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:Ls,type:e,key:s,ref:i,props:o,_owner:iu.current}}function Py(e,t){return{$$typeof:Ls,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function au(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ls}function jy(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Id=/\/+/g;function ol(e,t){return typeof e=="object"&&e!==null&&e.key!=null?jy(""+e.key):t.toString(36)}function yi(e,t,n,r,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Ls:case xy:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+ol(i,0):r,jd(o)?(n="",e!=null&&(n=e.replace(Id,"$&/")+"/"),yi(o,t,n,"",function(c){return c})):o!=null&&(au(o)&&(o=Py(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Id,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",jd(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+ol(s,a);i+=yi(s,t,n,l,o)}else if(l=Ry(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+ol(s,a++),i+=yi(s,t,n,l,o);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function qs(e,t,n){if(e==null)return e;var r=[],o=0;return yi(e,r,"","",function(s){return t.call(n,s,o++)}),r}function Iy(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var tt={current:null},xi={transition:null},Oy={ReactCurrentDispatcher:tt,ReactCurrentBatchConfig:xi,ReactCurrentOwner:iu};function Np(){throw Error("act(...) is not supported in production builds of React.")}te.Children={map:qs,forEach:function(e,t,n){qs(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return qs(e,function(){t++}),t},toArray:function(e){return qs(e,function(t){return t})||[]},only:function(e){if(!au(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};te.Component=yo;te.Fragment=wy;te.Profiler=_y;te.PureComponent=ou;te.StrictMode=Sy;te.Suspense=by;te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Oy;te.act=Np;te.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Sp({},e.props),o=e.key,s=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,i=iu.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)kp.call(t,l)&&!Ep.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:Ls,type:e.type,key:o,ref:s,props:r,_owner:i}};te.createContext=function(e){return e={$$typeof:ky,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Cy,_context:e},e.Consumer=e};te.createElement=bp;te.createFactory=function(e){var t=bp.bind(null,e);return t.type=e,t};te.createRef=function(){return{current:null}};te.forwardRef=function(e){return{$$typeof:Ey,render:e}};te.isValidElement=au;te.lazy=function(e){return{$$typeof:Ty,_payload:{_status:-1,_result:e},_init:Iy}};te.memo=function(e,t){return{$$typeof:Ny,type:e,compare:t===void 0?null:t}};te.startTransition=function(e){var t=xi.transition;xi.transition={};try{e()}finally{xi.transition=t}};te.unstable_act=Np;te.useCallback=function(e,t){return tt.current.useCallback(e,t)};te.useContext=function(e){return tt.current.useContext(e)};te.useDebugValue=function(){};te.useDeferredValue=function(e){return tt.current.useDeferredValue(e)};te.useEffect=function(e,t){return tt.current.useEffect(e,t)};te.useId=function(){return tt.current.useId()};te.useImperativeHandle=function(e,t,n){return tt.current.useImperativeHandle(e,t,n)};te.useInsertionEffect=function(e,t){return tt.current.useInsertionEffect(e,t)};te.useLayoutEffect=function(e,t){return tt.current.useLayoutEffect(e,t)};te.useMemo=function(e,t){return tt.current.useMemo(e,t)};te.useReducer=function(e,t,n){return tt.current.useReducer(e,t,n)};te.useRef=function(e){return tt.current.useRef(e)};te.useState=function(e){return tt.current.useState(e)};te.useSyncExternalStore=function(e,t,n){return tt.current.useSyncExternalStore(e,t,n)};te.useTransition=function(){return tt.current.useTransition()};te.version="18.3.1";xp.exports=te;var h=xp.exports;const ne=vp(h),My=yy({__proto__:null,default:ne},[h]);/**
|
|
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 Ay=h,Ly=Symbol.for("react.element"),Dy=Symbol.for("react.fragment"),zy=Object.prototype.hasOwnProperty,$y=Ay.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Fy={key:!0,ref:!0,__self:!0,__source:!0};function Tp(e,t,n){var r,o={},s=null,i=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)zy.call(t,r)&&!Fy.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Ly,type:e,key:s,ref:i,props:o,_owner:$y.current}}xa.Fragment=Dy;xa.jsx=Tp;xa.jsxs=Tp;yp.exports=xa;var p=yp.exports,Rp={exports:{}},vt={},Pp={exports:{}},jp={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.min.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/(function(e){function t(N,O){var D=N.length;N.push(O);e:for(;0<D;){var H=D-1>>>1,ee=N[H];if(0<o(ee,O))N[H]=O,N[D]=ee,D=H;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var O=N[0],D=N.pop();if(D!==O){N[0]=D;e:for(var H=0,ee=N.length,he=ee>>>1;H<he;){var ae=2*(H+1)-1,_e=N[ae],ve=ae+1,B=N[ve];if(0>o(_e,D))ve<ee&&0>o(B,_e)?(N[H]=B,N[ve]=D,H=ve):(N[H]=_e,N[ae]=D,H=ae);else if(ve<ee&&0>o(B,D))N[H]=B,N[ve]=D,H=ve;else break e}}return O}function o(N,O){var D=N.sortIndex-O.sortIndex;return D!==0?D:N.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],c=[],u=1,f=null,g=3,x=!1,w=!1,v=!1,_=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(N){for(var O=n(c);O!==null;){if(O.callback===null)r(c);else if(O.startTime<=N)r(c),O.sortIndex=O.expirationTime,t(l,O);else break;O=n(c)}}function C(N){if(v=!1,y(N),!w)if(n(l)!==null)w=!0,F(k);else{var O=n(c);O!==null&&K(C,O.startTime-N)}}function k(N,O){w=!1,v&&(v=!1,m(E),E=-1),x=!0;var D=g;try{for(y(O),f=n(l);f!==null&&(!(f.expirationTime>O)||N&&!V());){var H=f.callback;if(typeof H=="function"){f.callback=null,g=f.priorityLevel;var ee=H(f.expirationTime<=O);O=e.unstable_now(),typeof ee=="function"?f.callback=ee:f===n(l)&&r(l),y(O)}else r(l);f=n(l)}if(f!==null)var he=!0;else{var ae=n(c);ae!==null&&K(C,ae.startTime-O),he=!1}return he}finally{f=null,g=D,x=!1}}var T=!1,b=null,E=-1,I=5,j=-1;function V(){return!(e.unstable_now()-j<I)}function M(){if(b!==null){var N=e.unstable_now();j=N;var O=!0;try{O=b(!0,N)}finally{O?q():(T=!1,b=null)}}else T=!1}var q;if(typeof d=="function")q=function(){d(M)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,J=W.port2;W.port1.onmessage=M,q=function(){J.postMessage(null)}}else q=function(){_(M,0)};function F(N){b=N,T||(T=!0,q())}function K(N,O){E=_(function(){N(e.unstable_now())},O)}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(N){N.callback=null},e.unstable_continueExecution=function(){w||x||(w=!0,F(k))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(N){switch(g){case 1:case 2:case 3:var O=3;break;default:O=g}var D=g;g=O;try{return N()}finally{g=D}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,O){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var D=g;g=N;try{return O()}finally{g=D}},e.unstable_scheduleCallback=function(N,O,D){var H=e.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?H+D:H):D=H,N){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=D+ee,N={id:u++,callback:O,priorityLevel:N,startTime:D,expirationTime:ee,sortIndex:-1},D>H?(N.sortIndex=D,t(c,N),n(l)===null&&N===n(c)&&(v?(m(E),E=-1):v=!0,K(C,D-H))):(N.sortIndex=ee,t(l,N),w||x||(w=!0,F(k))),N},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(N){var O=g;return function(){var D=g;g=O;try{return N.apply(this,arguments)}finally{g=D}}}})(jp);Pp.exports=jp;var Vy=Pp.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 By=h,gt=Vy;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Ip=new Set,ts={};function Tr(e,t){so(e,t),so(e+"Capture",t)}function so(e,t){for(ts[e]=t,e=0;e<t.length;e++)Ip.add(t[e])}var mn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hl=Object.prototype.hasOwnProperty,Uy=/^[: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]*$/,Od={},Md={};function Hy(e){return Hl.call(Md,e)?!0:Hl.call(Od,e)?!1:Uy.test(e)?Md[e]=!0:(Od[e]=!0,!1)}function Wy(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Zy(e,t,n,r){if(t===null||typeof t>"u"||Wy(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function nt(e,t,n,r,o,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var Be={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Be[e]=new nt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Be[t]=new nt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Be[e]=new nt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Be[e]=new nt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Be[e]=new nt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Be[e]=new nt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Be[e]=new nt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Be[e]=new nt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Be[e]=new nt(e,5,!1,e.toLowerCase(),null,!1,!1)});var lu=/[\-:]([a-z])/g;function cu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(lu,cu);Be[t]=new nt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(lu,cu);Be[t]=new nt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(lu,cu);Be[t]=new nt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Be[e]=new nt(e,1,!1,e.toLowerCase(),null,!1,!1)});Be.xlinkHref=new nt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Be[e]=new nt(e,1,!1,e.toLowerCase(),null,!0,!0)});function uu(e,t,n,r){var o=Be.hasOwnProperty(t)?Be[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Zy(t,n,o,r)&&(n=null),r||o===null?Hy(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Cn=By.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ks=Symbol.for("react.element"),Lr=Symbol.for("react.portal"),Dr=Symbol.for("react.fragment"),du=Symbol.for("react.strict_mode"),Wl=Symbol.for("react.profiler"),Op=Symbol.for("react.provider"),Mp=Symbol.for("react.context"),fu=Symbol.for("react.forward_ref"),Zl=Symbol.for("react.suspense"),ql=Symbol.for("react.suspense_list"),pu=Symbol.for("react.memo"),Rn=Symbol.for("react.lazy"),Ap=Symbol.for("react.offscreen"),Ad=Symbol.iterator;function No(e){return e===null||typeof e!="object"?null:(e=Ad&&e[Ad]||e["@@iterator"],typeof e=="function"?e:null)}var be=Object.assign,sl;function Do(e){if(sl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);sl=t&&t[1]||""}return`
|
|
34
|
-
`+sl+e}var il=!1;function al(e,t){if(!e||il)return"";il=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var o=c.stack.split(`
|
|
35
|
-
`),s=r.stack.split(`
|
|
36
|
-
`),i=o.length-1,a=s.length-1;1<=i&&0<=a&&o[i]!==s[a];)a--;for(;1<=i&&0<=a;i--,a--)if(o[i]!==s[a]){if(i!==1||a!==1)do if(i--,a--,0>a||o[i]!==s[a]){var l=`
|
|
37
|
-
`+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{il=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Do(e):""}function qy(e){switch(e.tag){case 5:return Do(e.type);case 16:return Do("Lazy");case 13:return Do("Suspense");case 19:return Do("SuspenseList");case 0:case 2:case 15:return e=al(e.type,!1),e;case 11:return e=al(e.type.render,!1),e;case 1:return e=al(e.type,!0),e;default:return""}}function Kl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Dr:return"Fragment";case Lr:return"Portal";case Wl:return"Profiler";case du:return"StrictMode";case Zl:return"Suspense";case ql:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Mp:return(e.displayName||"Context")+".Consumer";case Op:return(e._context.displayName||"Context")+".Provider";case fu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case pu:return t=e.displayName||null,t!==null?t:Kl(e.type)||"Memo";case Rn:t=e._payload,e=e._init;try{return Kl(e(t))}catch{}}return null}function Ky(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Kl(t);case 8:return t===du?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Hn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Lp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gy(e){var t=Lp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Gs(e){e._valueTracker||(e._valueTracker=Gy(e))}function Dp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Lp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Mi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Gl(e,t){var n=t.checked;return be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ld(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Hn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function zp(e,t){t=t.checked,t!=null&&uu(e,"checked",t,!1)}function Ql(e,t){zp(e,t);var n=Hn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Yl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Yl(e,t.type,Hn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Dd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Yl(e,t,n){(t!=="number"||Mi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var zo=Array.isArray;function Gr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Hn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Xl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return be({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function zd(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(R(92));if(zo(n)){if(1<n.length)throw Error(R(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Hn(n)}}function $p(e,t){var n=Hn(t.value),r=Hn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function $d(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Fp(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Jl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Fp(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Qs,Vp=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Qs=Qs||document.createElement("div"),Qs.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Qs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ns(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ho={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},Qy=["Webkit","ms","Moz","O"];Object.keys(Ho).forEach(function(e){Qy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ho[t]=Ho[e]})});function Bp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ho.hasOwnProperty(e)&&Ho[e]?(""+t).trim():t+"px"}function Up(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Bp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Yy=be({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ec(e,t){if(t){if(Yy[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function tc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var nc=null;function mu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rc=null,Qr=null,Yr=null;function Fd(e){if(e=$s(e)){if(typeof rc!="function")throw Error(R(280));var t=e.stateNode;t&&(t=ka(t),rc(e.stateNode,e.type,t))}}function Hp(e){Qr?Yr?Yr.push(e):Yr=[e]:Qr=e}function Wp(){if(Qr){var e=Qr,t=Yr;if(Yr=Qr=null,Fd(e),t)for(e=0;e<t.length;e++)Fd(t[e])}}function Zp(e,t){return e(t)}function qp(){}var ll=!1;function Kp(e,t,n){if(ll)return e(t,n);ll=!0;try{return Zp(e,t,n)}finally{ll=!1,(Qr!==null||Yr!==null)&&(qp(),Wp())}}function rs(e,t){var n=e.stateNode;if(n===null)return null;var r=ka(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(R(231,t,typeof n));return n}var oc=!1;if(mn)try{var To={};Object.defineProperty(To,"passive",{get:function(){oc=!0}}),window.addEventListener("test",To,To),window.removeEventListener("test",To,To)}catch{oc=!1}function Xy(e,t,n,r,o,s,i,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Wo=!1,Ai=null,Li=!1,sc=null,Jy={onError:function(e){Wo=!0,Ai=e}};function e0(e,t,n,r,o,s,i,a,l){Wo=!1,Ai=null,Xy.apply(Jy,arguments)}function t0(e,t,n,r,o,s,i,a,l){if(e0.apply(this,arguments),Wo){if(Wo){var c=Ai;Wo=!1,Ai=null}else throw Error(R(198));Li||(Li=!0,sc=c)}}function Rr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Gp(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Vd(e){if(Rr(e)!==e)throw Error(R(188))}function n0(e){var t=e.alternate;if(!t){if(t=Rr(e),t===null)throw Error(R(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var s=o.alternate;if(s===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return Vd(o),e;if(s===r)return Vd(o),t;s=s.sibling}throw Error(R(188))}if(n.return!==r.return)n=o,r=s;else{for(var i=!1,a=o.child;a;){if(a===n){i=!0,n=o,r=s;break}if(a===r){i=!0,r=o,n=s;break}a=a.sibling}if(!i){for(a=s.child;a;){if(a===n){i=!0,n=s,r=o;break}if(a===r){i=!0,r=s,n=o;break}a=a.sibling}if(!i)throw Error(R(189))}}if(n.alternate!==r)throw Error(R(190))}if(n.tag!==3)throw Error(R(188));return n.stateNode.current===n?e:t}function Qp(e){return e=n0(e),e!==null?Yp(e):null}function Yp(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Yp(e);if(t!==null)return t;e=e.sibling}return null}var Xp=gt.unstable_scheduleCallback,Bd=gt.unstable_cancelCallback,r0=gt.unstable_shouldYield,o0=gt.unstable_requestPaint,Re=gt.unstable_now,s0=gt.unstable_getCurrentPriorityLevel,hu=gt.unstable_ImmediatePriority,Jp=gt.unstable_UserBlockingPriority,Di=gt.unstable_NormalPriority,i0=gt.unstable_LowPriority,em=gt.unstable_IdlePriority,wa=null,Kt=null;function a0(e){if(Kt&&typeof Kt.onCommitFiberRoot=="function")try{Kt.onCommitFiberRoot(wa,e,void 0,(e.current.flags&128)===128)}catch{}}var Mt=Math.clz32?Math.clz32:u0,l0=Math.log,c0=Math.LN2;function u0(e){return e>>>=0,e===0?32:31-(l0(e)/c0|0)|0}var Ys=64,Xs=4194304;function $o(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function zi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~o;a!==0?r=$o(a):(s&=i,s!==0&&(r=$o(s)))}else i=n&~o,i!==0?r=$o(i):s!==0&&(r=$o(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Mt(t),o=1<<n,r|=e[n],t&=~o;return r}function d0(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function f0(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var i=31-Mt(s),a=1<<i,l=o[i];l===-1?(!(a&n)||a&r)&&(o[i]=d0(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function ic(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function tm(){var e=Ys;return Ys<<=1,!(Ys&4194240)&&(Ys=64),e}function cl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ds(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Mt(t),e[t]=n}function p0(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Mt(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function gu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Mt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var de=0;function nm(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var rm,vu,om,sm,im,ac=!1,Js=[],Ln=null,Dn=null,zn=null,os=new Map,ss=new Map,jn=[],m0="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 Ud(e,t){switch(e){case"focusin":case"focusout":Ln=null;break;case"dragenter":case"dragleave":Dn=null;break;case"mouseover":case"mouseout":zn=null;break;case"pointerover":case"pointerout":os.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ss.delete(t.pointerId)}}function Ro(e,t,n,r,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},t!==null&&(t=$s(t),t!==null&&vu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function h0(e,t,n,r,o){switch(t){case"focusin":return Ln=Ro(Ln,e,t,n,r,o),!0;case"dragenter":return Dn=Ro(Dn,e,t,n,r,o),!0;case"mouseover":return zn=Ro(zn,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return os.set(s,Ro(os.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,ss.set(s,Ro(ss.get(s)||null,e,t,n,r,o)),!0}return!1}function am(e){var t=dr(e.target);if(t!==null){var n=Rr(t);if(n!==null){if(t=n.tag,t===13){if(t=Gp(n),t!==null){e.blockedOn=t,im(e.priority,function(){om(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function wi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=lc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);nc=r,n.target.dispatchEvent(r),nc=null}else return t=$s(n),t!==null&&vu(t),e.blockedOn=n,!1;t.shift()}return!0}function Hd(e,t,n){wi(e)&&n.delete(t)}function g0(){ac=!1,Ln!==null&&wi(Ln)&&(Ln=null),Dn!==null&&wi(Dn)&&(Dn=null),zn!==null&&wi(zn)&&(zn=null),os.forEach(Hd),ss.forEach(Hd)}function Po(e,t){e.blockedOn===t&&(e.blockedOn=null,ac||(ac=!0,gt.unstable_scheduleCallback(gt.unstable_NormalPriority,g0)))}function is(e){function t(o){return Po(o,e)}if(0<Js.length){Po(Js[0],e);for(var n=1;n<Js.length;n++){var r=Js[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ln!==null&&Po(Ln,e),Dn!==null&&Po(Dn,e),zn!==null&&Po(zn,e),os.forEach(t),ss.forEach(t),n=0;n<jn.length;n++)r=jn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<jn.length&&(n=jn[0],n.blockedOn===null);)am(n),n.blockedOn===null&&jn.shift()}var Xr=Cn.ReactCurrentBatchConfig,$i=!0;function v0(e,t,n,r){var o=de,s=Xr.transition;Xr.transition=null;try{de=1,yu(e,t,n,r)}finally{de=o,Xr.transition=s}}function y0(e,t,n,r){var o=de,s=Xr.transition;Xr.transition=null;try{de=4,yu(e,t,n,r)}finally{de=o,Xr.transition=s}}function yu(e,t,n,r){if($i){var o=lc(e,t,n,r);if(o===null)xl(e,t,r,Fi,n),Ud(e,r);else if(h0(o,e,t,n,r))r.stopPropagation();else if(Ud(e,r),t&4&&-1<m0.indexOf(e)){for(;o!==null;){var s=$s(o);if(s!==null&&rm(s),s=lc(e,t,n,r),s===null&&xl(e,t,r,Fi,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else xl(e,t,r,null,n)}}var Fi=null;function lc(e,t,n,r){if(Fi=null,e=mu(r),e=dr(e),e!==null)if(t=Rr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Gp(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Fi=e,null}function lm(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(s0()){case hu:return 1;case Jp:return 4;case Di:case i0:return 16;case em:return 536870912;default:return 16}default:return 16}}var Mn=null,xu=null,Si=null;function cm(){if(Si)return Si;var e,t=xu,n=t.length,r,o="value"in Mn?Mn.value:Mn.textContent,s=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[s-r];r++);return Si=o.slice(e,1<r?1-r:void 0)}function _i(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ei(){return!0}function Wd(){return!1}function yt(e){function t(n,r,o,s,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=s,this.target=i,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?ei:Wd,this.isPropagationStopped=Wd,this}return be(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ei)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ei)},persist:function(){},isPersistent:ei}),t}var xo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wu=yt(xo),zs=be({},xo,{view:0,detail:0}),x0=yt(zs),ul,dl,jo,Sa=be({},zs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Su,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==jo&&(jo&&e.type==="mousemove"?(ul=e.screenX-jo.screenX,dl=e.screenY-jo.screenY):dl=ul=0,jo=e),ul)},movementY:function(e){return"movementY"in e?e.movementY:dl}}),Zd=yt(Sa),w0=be({},Sa,{dataTransfer:0}),S0=yt(w0),_0=be({},zs,{relatedTarget:0}),fl=yt(_0),C0=be({},xo,{animationName:0,elapsedTime:0,pseudoElement:0}),k0=yt(C0),E0=be({},xo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),b0=yt(E0),N0=be({},xo,{data:0}),qd=yt(N0),T0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},R0={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"},P0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function j0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=P0[e])?!!t[e]:!1}function Su(){return j0}var I0=be({},zs,{key:function(e){if(e.key){var t=T0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=_i(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?R0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Su,charCode:function(e){return e.type==="keypress"?_i(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?_i(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),O0=yt(I0),M0=be({},Sa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Kd=yt(M0),A0=be({},zs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Su}),L0=yt(A0),D0=be({},xo,{propertyName:0,elapsedTime:0,pseudoElement:0}),z0=yt(D0),$0=be({},Sa,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),F0=yt($0),V0=[9,13,27,32],_u=mn&&"CompositionEvent"in window,Zo=null;mn&&"documentMode"in document&&(Zo=document.documentMode);var B0=mn&&"TextEvent"in window&&!Zo,um=mn&&(!_u||Zo&&8<Zo&&11>=Zo),Gd=" ",Qd=!1;function dm(e,t){switch(e){case"keyup":return V0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var zr=!1;function U0(e,t){switch(e){case"compositionend":return fm(t);case"keypress":return t.which!==32?null:(Qd=!0,Gd);case"textInput":return e=t.data,e===Gd&&Qd?null:e;default:return null}}function H0(e,t){if(zr)return e==="compositionend"||!_u&&dm(e,t)?(e=cm(),Si=xu=Mn=null,zr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return um&&t.locale!=="ko"?null:t.data;default:return null}}var W0={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 Yd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!W0[e.type]:t==="textarea"}function pm(e,t,n,r){Hp(r),t=Vi(t,"onChange"),0<t.length&&(n=new wu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qo=null,as=null;function Z0(e){km(e,0)}function _a(e){var t=Vr(e);if(Dp(t))return e}function q0(e,t){if(e==="change")return t}var mm=!1;if(mn){var pl;if(mn){var ml="oninput"in document;if(!ml){var Xd=document.createElement("div");Xd.setAttribute("oninput","return;"),ml=typeof Xd.oninput=="function"}pl=ml}else pl=!1;mm=pl&&(!document.documentMode||9<document.documentMode)}function Jd(){qo&&(qo.detachEvent("onpropertychange",hm),as=qo=null)}function hm(e){if(e.propertyName==="value"&&_a(as)){var t=[];pm(t,as,e,mu(e)),Kp(Z0,t)}}function K0(e,t,n){e==="focusin"?(Jd(),qo=t,as=n,qo.attachEvent("onpropertychange",hm)):e==="focusout"&&Jd()}function G0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return _a(as)}function Q0(e,t){if(e==="click")return _a(t)}function Y0(e,t){if(e==="input"||e==="change")return _a(t)}function X0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dt=typeof Object.is=="function"?Object.is:X0;function ls(e,t){if(Dt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Hl.call(t,o)||!Dt(e[o],t[o]))return!1}return!0}function ef(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tf(e,t){var n=ef(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ef(n)}}function gm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vm(){for(var e=window,t=Mi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Mi(e.document)}return t}function Cu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function J0(e){var t=vm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&gm(n.ownerDocument.documentElement,n)){if(r!==null&&Cu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=tf(n,s);var i=tf(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var e1=mn&&"documentMode"in document&&11>=document.documentMode,$r=null,cc=null,Ko=null,uc=!1;function nf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;uc||$r==null||$r!==Mi(r)||(r=$r,"selectionStart"in r&&Cu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ko&&ls(Ko,r)||(Ko=r,r=Vi(cc,"onSelect"),0<r.length&&(t=new wu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=$r)))}function ti(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Fr={animationend:ti("Animation","AnimationEnd"),animationiteration:ti("Animation","AnimationIteration"),animationstart:ti("Animation","AnimationStart"),transitionend:ti("Transition","TransitionEnd")},hl={},ym={};mn&&(ym=document.createElement("div").style,"AnimationEvent"in window||(delete Fr.animationend.animation,delete Fr.animationiteration.animation,delete Fr.animationstart.animation),"TransitionEvent"in window||delete Fr.transitionend.transition);function Ca(e){if(hl[e])return hl[e];if(!Fr[e])return e;var t=Fr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ym)return hl[e]=t[n];return e}var xm=Ca("animationend"),wm=Ca("animationiteration"),Sm=Ca("animationstart"),_m=Ca("transitionend"),Cm=new Map,rf="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 er(e,t){Cm.set(e,t),Tr(t,[e])}for(var gl=0;gl<rf.length;gl++){var vl=rf[gl],t1=vl.toLowerCase(),n1=vl[0].toUpperCase()+vl.slice(1);er(t1,"on"+n1)}er(xm,"onAnimationEnd");er(wm,"onAnimationIteration");er(Sm,"onAnimationStart");er("dblclick","onDoubleClick");er("focusin","onFocus");er("focusout","onBlur");er(_m,"onTransitionEnd");so("onMouseEnter",["mouseout","mouseover"]);so("onMouseLeave",["mouseout","mouseover"]);so("onPointerEnter",["pointerout","pointerover"]);so("onPointerLeave",["pointerout","pointerover"]);Tr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Tr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Tr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Tr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Tr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Tr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fo="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(" "),r1=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fo));function of(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,t0(r,t,void 0,e),e.currentTarget=null}function km(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var i=r.length-1;0<=i;i--){var a=r[i],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==s&&o.isPropagationStopped())break e;of(o,a,c),s=l}else for(i=0;i<r.length;i++){if(a=r[i],l=a.instance,c=a.currentTarget,a=a.listener,l!==s&&o.isPropagationStopped())break e;of(o,a,c),s=l}}}if(Li)throw e=sc,Li=!1,sc=null,e}function xe(e,t){var n=t[hc];n===void 0&&(n=t[hc]=new Set);var r=e+"__bubble";n.has(r)||(Em(t,e,2,!1),n.add(r))}function yl(e,t,n){var r=0;t&&(r|=4),Em(n,e,r,t)}var ni="_reactListening"+Math.random().toString(36).slice(2);function cs(e){if(!e[ni]){e[ni]=!0,Ip.forEach(function(n){n!=="selectionchange"&&(r1.has(n)||yl(n,!1,e),yl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ni]||(t[ni]=!0,yl("selectionchange",!1,t))}}function Em(e,t,n,r){switch(lm(t)){case 1:var o=v0;break;case 4:o=y0;break;default:o=yu}n=o.bind(null,t,n,e),o=void 0,!oc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function xl(e,t,n,r,o){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;i=i.return}for(;a!==null;){if(i=dr(a),i===null)return;if(l=i.tag,l===5||l===6){r=s=i;continue e}a=a.parentNode}}r=r.return}Kp(function(){var c=s,u=mu(n),f=[];e:{var g=Cm.get(e);if(g!==void 0){var x=wu,w=e;switch(e){case"keypress":if(_i(n)===0)break e;case"keydown":case"keyup":x=O0;break;case"focusin":w="focus",x=fl;break;case"focusout":w="blur",x=fl;break;case"beforeblur":case"afterblur":x=fl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":x=Zd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=S0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=L0;break;case xm:case wm:case Sm:x=k0;break;case _m:x=z0;break;case"scroll":x=x0;break;case"wheel":x=F0;break;case"copy":case"cut":case"paste":x=b0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=Kd}var v=(t&4)!==0,_=!v&&e==="scroll",m=v?g!==null?g+"Capture":null:g;v=[];for(var d=c,y;d!==null;){y=d;var C=y.stateNode;if(y.tag===5&&C!==null&&(y=C,m!==null&&(C=rs(d,m),C!=null&&v.push(us(d,C,y)))),_)break;d=d.return}0<v.length&&(g=new x(g,w,null,n,u),f.push({event:g,listeners:v}))}}if(!(t&7)){e:{if(g=e==="mouseover"||e==="pointerover",x=e==="mouseout"||e==="pointerout",g&&n!==nc&&(w=n.relatedTarget||n.fromElement)&&(dr(w)||w[hn]))break e;if((x||g)&&(g=u.window===u?u:(g=u.ownerDocument)?g.defaultView||g.parentWindow:window,x?(w=n.relatedTarget||n.toElement,x=c,w=w?dr(w):null,w!==null&&(_=Rr(w),w!==_||w.tag!==5&&w.tag!==6)&&(w=null)):(x=null,w=c),x!==w)){if(v=Zd,C="onMouseLeave",m="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(v=Kd,C="onPointerLeave",m="onPointerEnter",d="pointer"),_=x==null?g:Vr(x),y=w==null?g:Vr(w),g=new v(C,d+"leave",x,n,u),g.target=_,g.relatedTarget=y,C=null,dr(u)===c&&(v=new v(m,d+"enter",w,n,u),v.target=y,v.relatedTarget=_,C=v),_=C,x&&w)t:{for(v=x,m=w,d=0,y=v;y;y=jr(y))d++;for(y=0,C=m;C;C=jr(C))y++;for(;0<d-y;)v=jr(v),d--;for(;0<y-d;)m=jr(m),y--;for(;d--;){if(v===m||m!==null&&v===m.alternate)break t;v=jr(v),m=jr(m)}v=null}else v=null;x!==null&&sf(f,g,x,v,!1),w!==null&&_!==null&&sf(f,_,w,v,!0)}}e:{if(g=c?Vr(c):window,x=g.nodeName&&g.nodeName.toLowerCase(),x==="select"||x==="input"&&g.type==="file")var k=q0;else if(Yd(g))if(mm)k=Y0;else{k=G0;var T=K0}else(x=g.nodeName)&&x.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(k=Q0);if(k&&(k=k(e,c))){pm(f,k,n,u);break e}T&&T(e,g,c),e==="focusout"&&(T=g._wrapperState)&&T.controlled&&g.type==="number"&&Yl(g,"number",g.value)}switch(T=c?Vr(c):window,e){case"focusin":(Yd(T)||T.contentEditable==="true")&&($r=T,cc=c,Ko=null);break;case"focusout":Ko=cc=$r=null;break;case"mousedown":uc=!0;break;case"contextmenu":case"mouseup":case"dragend":uc=!1,nf(f,n,u);break;case"selectionchange":if(e1)break;case"keydown":case"keyup":nf(f,n,u)}var b;if(_u)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else zr?dm(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(um&&n.locale!=="ko"&&(zr||E!=="onCompositionStart"?E==="onCompositionEnd"&&zr&&(b=cm()):(Mn=u,xu="value"in Mn?Mn.value:Mn.textContent,zr=!0)),T=Vi(c,E),0<T.length&&(E=new qd(E,e,null,n,u),f.push({event:E,listeners:T}),b?E.data=b:(b=fm(n),b!==null&&(E.data=b)))),(b=B0?U0(e,n):H0(e,n))&&(c=Vi(c,"onBeforeInput"),0<c.length&&(u=new qd("onBeforeInput","beforeinput",null,n,u),f.push({event:u,listeners:c}),u.data=b))}km(f,t)})}function us(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vi(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=rs(e,n),s!=null&&r.unshift(us(e,s,o)),s=rs(e,t),s!=null&&r.push(us(e,s,o))),e=e.return}return r}function jr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function sf(e,t,n,r,o){for(var s=t._reactName,i=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,o?(l=rs(n,s),l!=null&&i.unshift(us(n,l,a))):o||(l=rs(n,s),l!=null&&i.push(us(n,l,a)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var o1=/\r\n?/g,s1=/\u0000|\uFFFD/g;function af(e){return(typeof e=="string"?e:""+e).replace(o1,`
|
|
38
|
-
`).replace(s1,"")}function ri(e,t,n){if(t=af(t),af(e)!==t&&n)throw Error(R(425))}function Bi(){}var dc=null,fc=null;function pc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var mc=typeof setTimeout=="function"?setTimeout:void 0,i1=typeof clearTimeout=="function"?clearTimeout:void 0,lf=typeof Promise=="function"?Promise:void 0,a1=typeof queueMicrotask=="function"?queueMicrotask:typeof lf<"u"?function(e){return lf.resolve(null).then(e).catch(l1)}:mc;function l1(e){setTimeout(function(){throw e})}function wl(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),is(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);is(t)}function $n(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function cf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var wo=Math.random().toString(36).slice(2),Wt="__reactFiber$"+wo,ds="__reactProps$"+wo,hn="__reactContainer$"+wo,hc="__reactEvents$"+wo,c1="__reactListeners$"+wo,u1="__reactHandles$"+wo;function dr(e){var t=e[Wt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hn]||n[Wt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=cf(e);e!==null;){if(n=e[Wt])return n;e=cf(e)}return t}e=n,n=e.parentNode}return null}function $s(e){return e=e[Wt]||e[hn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Vr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function ka(e){return e[ds]||null}var gc=[],Br=-1;function tr(e){return{current:e}}function we(e){0>Br||(e.current=gc[Br],gc[Br]=null,Br--)}function ge(e,t){Br++,gc[Br]=e.current,e.current=t}var Wn={},qe=tr(Wn),it=tr(!1),xr=Wn;function io(e,t){var n=e.type.contextTypes;if(!n)return Wn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function at(e){return e=e.childContextTypes,e!=null}function Ui(){we(it),we(qe)}function uf(e,t,n){if(qe.current!==Wn)throw Error(R(168));ge(qe,t),ge(it,n)}function bm(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(R(108,Ky(e)||"Unknown",o));return be({},n,r)}function Hi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wn,xr=qe.current,ge(qe,e),ge(it,it.current),!0}function df(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=bm(e,t,xr),r.__reactInternalMemoizedMergedChildContext=e,we(it),we(qe),ge(qe,e)):we(it),ge(it,n)}var cn=null,Ea=!1,Sl=!1;function Nm(e){cn===null?cn=[e]:cn.push(e)}function d1(e){Ea=!0,Nm(e)}function nr(){if(!Sl&&cn!==null){Sl=!0;var e=0,t=de;try{var n=cn;for(de=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}cn=null,Ea=!1}catch(o){throw cn!==null&&(cn=cn.slice(e+1)),Xp(hu,nr),o}finally{de=t,Sl=!1}}return null}var Ur=[],Hr=0,Wi=null,Zi=0,St=[],_t=0,wr=null,un=1,dn="";function cr(e,t){Ur[Hr++]=Zi,Ur[Hr++]=Wi,Wi=e,Zi=t}function Tm(e,t,n){St[_t++]=un,St[_t++]=dn,St[_t++]=wr,wr=e;var r=un;e=dn;var o=32-Mt(r)-1;r&=~(1<<o),n+=1;var s=32-Mt(t)+o;if(30<s){var i=o-o%5;s=(r&(1<<i)-1).toString(32),r>>=i,o-=i,un=1<<32-Mt(t)+o|n<<o|r,dn=s+e}else un=1<<s|n<<o|r,dn=e}function ku(e){e.return!==null&&(cr(e,1),Tm(e,1,0))}function Eu(e){for(;e===Wi;)Wi=Ur[--Hr],Ur[Hr]=null,Zi=Ur[--Hr],Ur[Hr]=null;for(;e===wr;)wr=St[--_t],St[_t]=null,dn=St[--_t],St[_t]=null,un=St[--_t],St[_t]=null}var pt=null,dt=null,Se=!1,It=null;function Rm(e,t){var n=Ct(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function ff(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,pt=e,dt=$n(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,pt=e,dt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=wr!==null?{id:un,overflow:dn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ct(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,pt=e,dt=null,!0):!1;default:return!1}}function vc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function yc(e){if(Se){var t=dt;if(t){var n=t;if(!ff(e,t)){if(vc(e))throw Error(R(418));t=$n(n.nextSibling);var r=pt;t&&ff(e,t)?Rm(r,n):(e.flags=e.flags&-4097|2,Se=!1,pt=e)}}else{if(vc(e))throw Error(R(418));e.flags=e.flags&-4097|2,Se=!1,pt=e}}}function pf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;pt=e}function oi(e){if(e!==pt)return!1;if(!Se)return pf(e),Se=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!pc(e.type,e.memoizedProps)),t&&(t=dt)){if(vc(e))throw Pm(),Error(R(418));for(;t;)Rm(e,t),t=$n(t.nextSibling)}if(pf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){dt=$n(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}dt=null}}else dt=pt?$n(e.stateNode.nextSibling):null;return!0}function Pm(){for(var e=dt;e;)e=$n(e.nextSibling)}function ao(){dt=pt=null,Se=!1}function bu(e){It===null?It=[e]:It.push(e)}var f1=Cn.ReactCurrentBatchConfig;function Io(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(R(309));var r=n.stateNode}if(!r)throw Error(R(147,e));var o=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(i){var a=o.refs;i===null?delete a[s]:a[s]=i},t._stringRef=s,t)}if(typeof e!="string")throw Error(R(284));if(!n._owner)throw Error(R(290,e))}return e}function si(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function mf(e){var t=e._init;return t(e._payload)}function jm(e){function t(m,d){if(e){var y=m.deletions;y===null?(m.deletions=[d],m.flags|=16):y.push(d)}}function n(m,d){if(!e)return null;for(;d!==null;)t(m,d),d=d.sibling;return null}function r(m,d){for(m=new Map;d!==null;)d.key!==null?m.set(d.key,d):m.set(d.index,d),d=d.sibling;return m}function o(m,d){return m=Un(m,d),m.index=0,m.sibling=null,m}function s(m,d,y){return m.index=y,e?(y=m.alternate,y!==null?(y=y.index,y<d?(m.flags|=2,d):y):(m.flags|=2,d)):(m.flags|=1048576,d)}function i(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,d,y,C){return d===null||d.tag!==6?(d=Tl(y,m.mode,C),d.return=m,d):(d=o(d,y),d.return=m,d)}function l(m,d,y,C){var k=y.type;return k===Dr?u(m,d,y.props.children,C,y.key):d!==null&&(d.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Rn&&mf(k)===d.type)?(C=o(d,y.props),C.ref=Io(m,d,y),C.return=m,C):(C=Ri(y.type,y.key,y.props,null,m.mode,C),C.ref=Io(m,d,y),C.return=m,C)}function c(m,d,y,C){return d===null||d.tag!==4||d.stateNode.containerInfo!==y.containerInfo||d.stateNode.implementation!==y.implementation?(d=Rl(y,m.mode,C),d.return=m,d):(d=o(d,y.children||[]),d.return=m,d)}function u(m,d,y,C,k){return d===null||d.tag!==7?(d=gr(y,m.mode,C,k),d.return=m,d):(d=o(d,y),d.return=m,d)}function f(m,d,y){if(typeof d=="string"&&d!==""||typeof d=="number")return d=Tl(""+d,m.mode,y),d.return=m,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case Ks:return y=Ri(d.type,d.key,d.props,null,m.mode,y),y.ref=Io(m,null,d),y.return=m,y;case Lr:return d=Rl(d,m.mode,y),d.return=m,d;case Rn:var C=d._init;return f(m,C(d._payload),y)}if(zo(d)||No(d))return d=gr(d,m.mode,y,null),d.return=m,d;si(m,d)}return null}function g(m,d,y,C){var k=d!==null?d.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return k!==null?null:a(m,d,""+y,C);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Ks:return y.key===k?l(m,d,y,C):null;case Lr:return y.key===k?c(m,d,y,C):null;case Rn:return k=y._init,g(m,d,k(y._payload),C)}if(zo(y)||No(y))return k!==null?null:u(m,d,y,C,null);si(m,y)}return null}function x(m,d,y,C,k){if(typeof C=="string"&&C!==""||typeof C=="number")return m=m.get(y)||null,a(d,m,""+C,k);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Ks:return m=m.get(C.key===null?y:C.key)||null,l(d,m,C,k);case Lr:return m=m.get(C.key===null?y:C.key)||null,c(d,m,C,k);case Rn:var T=C._init;return x(m,d,y,T(C._payload),k)}if(zo(C)||No(C))return m=m.get(y)||null,u(d,m,C,k,null);si(d,C)}return null}function w(m,d,y,C){for(var k=null,T=null,b=d,E=d=0,I=null;b!==null&&E<y.length;E++){b.index>E?(I=b,b=null):I=b.sibling;var j=g(m,b,y[E],C);if(j===null){b===null&&(b=I);break}e&&b&&j.alternate===null&&t(m,b),d=s(j,d,E),T===null?k=j:T.sibling=j,T=j,b=I}if(E===y.length)return n(m,b),Se&&cr(m,E),k;if(b===null){for(;E<y.length;E++)b=f(m,y[E],C),b!==null&&(d=s(b,d,E),T===null?k=b:T.sibling=b,T=b);return Se&&cr(m,E),k}for(b=r(m,b);E<y.length;E++)I=x(b,m,E,y[E],C),I!==null&&(e&&I.alternate!==null&&b.delete(I.key===null?E:I.key),d=s(I,d,E),T===null?k=I:T.sibling=I,T=I);return e&&b.forEach(function(V){return t(m,V)}),Se&&cr(m,E),k}function v(m,d,y,C){var k=No(y);if(typeof k!="function")throw Error(R(150));if(y=k.call(y),y==null)throw Error(R(151));for(var T=k=null,b=d,E=d=0,I=null,j=y.next();b!==null&&!j.done;E++,j=y.next()){b.index>E?(I=b,b=null):I=b.sibling;var V=g(m,b,j.value,C);if(V===null){b===null&&(b=I);break}e&&b&&V.alternate===null&&t(m,b),d=s(V,d,E),T===null?k=V:T.sibling=V,T=V,b=I}if(j.done)return n(m,b),Se&&cr(m,E),k;if(b===null){for(;!j.done;E++,j=y.next())j=f(m,j.value,C),j!==null&&(d=s(j,d,E),T===null?k=j:T.sibling=j,T=j);return Se&&cr(m,E),k}for(b=r(m,b);!j.done;E++,j=y.next())j=x(b,m,E,j.value,C),j!==null&&(e&&j.alternate!==null&&b.delete(j.key===null?E:j.key),d=s(j,d,E),T===null?k=j:T.sibling=j,T=j);return e&&b.forEach(function(M){return t(m,M)}),Se&&cr(m,E),k}function _(m,d,y,C){if(typeof y=="object"&&y!==null&&y.type===Dr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Ks:e:{for(var k=y.key,T=d;T!==null;){if(T.key===k){if(k=y.type,k===Dr){if(T.tag===7){n(m,T.sibling),d=o(T,y.props.children),d.return=m,m=d;break e}}else if(T.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Rn&&mf(k)===T.type){n(m,T.sibling),d=o(T,y.props),d.ref=Io(m,T,y),d.return=m,m=d;break e}n(m,T);break}else t(m,T);T=T.sibling}y.type===Dr?(d=gr(y.props.children,m.mode,C,y.key),d.return=m,m=d):(C=Ri(y.type,y.key,y.props,null,m.mode,C),C.ref=Io(m,d,y),C.return=m,m=C)}return i(m);case Lr:e:{for(T=y.key;d!==null;){if(d.key===T)if(d.tag===4&&d.stateNode.containerInfo===y.containerInfo&&d.stateNode.implementation===y.implementation){n(m,d.sibling),d=o(d,y.children||[]),d.return=m,m=d;break e}else{n(m,d);break}else t(m,d);d=d.sibling}d=Rl(y,m.mode,C),d.return=m,m=d}return i(m);case Rn:return T=y._init,_(m,d,T(y._payload),C)}if(zo(y))return w(m,d,y,C);if(No(y))return v(m,d,y,C);si(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,d!==null&&d.tag===6?(n(m,d.sibling),d=o(d,y),d.return=m,m=d):(n(m,d),d=Tl(y,m.mode,C),d.return=m,m=d),i(m)):n(m,d)}return _}var lo=jm(!0),Im=jm(!1),qi=tr(null),Ki=null,Wr=null,Nu=null;function Tu(){Nu=Wr=Ki=null}function Ru(e){var t=qi.current;we(qi),e._currentValue=t}function xc(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Jr(e,t){Ki=e,Nu=Wr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(st=!0),e.firstContext=null)}function Et(e){var t=e._currentValue;if(Nu!==e)if(e={context:e,memoizedValue:t,next:null},Wr===null){if(Ki===null)throw Error(R(308));Wr=e,Ki.dependencies={lanes:0,firstContext:e}}else Wr=Wr.next=e;return t}var fr=null;function Pu(e){fr===null?fr=[e]:fr.push(e)}function Om(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Pu(t)):(n.next=o.next,o.next=n),t.interleaved=n,gn(e,r)}function gn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Pn=!1;function ju(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Mm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function pn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,se&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,gn(e,n)}return o=r.interleaved,o===null?(t.next=t,Pu(r)):(t.next=o.next,o.next=t),r.interleaved=t,gn(e,n)}function Ci(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,gu(e,n)}}function hf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Gi(e,t,n,r){var o=e.updateQueue;Pn=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,c=l.next;l.next=null,i===null?s=c:i.next=c,i=l;var u=e.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==i&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(s!==null){var f=o.baseState;i=0,u=c=l=null,a=s;do{var g=a.lane,x=a.eventTime;if((r&g)===g){u!==null&&(u=u.next={eventTime:x,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,v=a;switch(g=t,x=n,v.tag){case 1:if(w=v.payload,typeof w=="function"){f=w.call(x,f,g);break e}f=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=v.payload,g=typeof w=="function"?w.call(x,f,g):w,g==null)break e;f=be({},f,g);break e;case 2:Pn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,g=o.effects,g===null?o.effects=[a]:g.push(a))}else x={eventTime:x,lane:g,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=x,l=f):u=u.next=x,i|=g;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;g=a,a=g.next,g.next=null,o.lastBaseUpdate=g,o.shared.pending=null}}while(!0);if(u===null&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);_r|=i,e.lanes=i,e.memoizedState=f}}function gf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(R(191,o));o.call(r)}}}var Fs={},Gt=tr(Fs),fs=tr(Fs),ps=tr(Fs);function pr(e){if(e===Fs)throw Error(R(174));return e}function Iu(e,t){switch(ge(ps,t),ge(fs,e),ge(Gt,Fs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Jl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Jl(t,e)}we(Gt),ge(Gt,t)}function co(){we(Gt),we(fs),we(ps)}function Am(e){pr(ps.current);var t=pr(Gt.current),n=Jl(t,e.type);t!==n&&(ge(fs,e),ge(Gt,n))}function Ou(e){fs.current===e&&(we(Gt),we(fs))}var ke=tr(0);function Qi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var _l=[];function Mu(){for(var e=0;e<_l.length;e++)_l[e]._workInProgressVersionPrimary=null;_l.length=0}var ki=Cn.ReactCurrentDispatcher,Cl=Cn.ReactCurrentBatchConfig,Sr=0,Ee=null,je=null,De=null,Yi=!1,Go=!1,ms=0,p1=0;function Ue(){throw Error(R(321))}function Au(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Dt(e[n],t[n]))return!1;return!0}function Lu(e,t,n,r,o,s){if(Sr=s,Ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ki.current=e===null||e.memoizedState===null?v1:y1,e=n(r,o),Go){s=0;do{if(Go=!1,ms=0,25<=s)throw Error(R(301));s+=1,De=je=null,t.updateQueue=null,ki.current=x1,e=n(r,o)}while(Go)}if(ki.current=Xi,t=je!==null&&je.next!==null,Sr=0,De=je=Ee=null,Yi=!1,t)throw Error(R(300));return e}function Du(){var e=ms!==0;return ms=0,e}function Ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return De===null?Ee.memoizedState=De=e:De=De.next=e,De}function bt(){if(je===null){var e=Ee.alternate;e=e!==null?e.memoizedState:null}else e=je.next;var t=De===null?Ee.memoizedState:De.next;if(t!==null)De=t,je=e;else{if(e===null)throw Error(R(310));je=e,e={memoizedState:je.memoizedState,baseState:je.baseState,baseQueue:je.baseQueue,queue:je.queue,next:null},De===null?Ee.memoizedState=De=e:De=De.next=e}return De}function hs(e,t){return typeof t=="function"?t(e):t}function kl(e){var t=bt(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=je,o=r.baseQueue,s=n.pending;if(s!==null){if(o!==null){var i=o.next;o.next=s.next,s.next=i}r.baseQueue=o=s,n.pending=null}if(o!==null){s=o.next,r=r.baseState;var a=i=null,l=null,c=s;do{var u=c.lane;if((Sr&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=f,i=r):l=l.next=f,Ee.lanes|=u,_r|=u}c=c.next}while(c!==null&&c!==s);l===null?i=r:l.next=a,Dt(r,t.memoizedState)||(st=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do s=o.lane,Ee.lanes|=s,_r|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function El(e){var t=bt(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do s=e(s,i.action),i=i.next;while(i!==o);Dt(s,t.memoizedState)||(st=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Lm(){}function Dm(e,t){var n=Ee,r=bt(),o=t(),s=!Dt(r.memoizedState,o);if(s&&(r.memoizedState=o,st=!0),r=r.queue,zu(Fm.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||De!==null&&De.memoizedState.tag&1){if(n.flags|=2048,gs(9,$m.bind(null,n,r,o,t),void 0,null),ze===null)throw Error(R(349));Sr&30||zm(n,t,o)}return o}function zm(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ee.updateQueue,t===null?(t={lastEffect:null,stores:null},Ee.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function $m(e,t,n,r){t.value=n,t.getSnapshot=r,Vm(t)&&Bm(e)}function Fm(e,t,n){return n(function(){Vm(t)&&Bm(e)})}function Vm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Dt(e,n)}catch{return!0}}function Bm(e){var t=gn(e,1);t!==null&&At(t,e,1,-1)}function vf(e){var t=Ht();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:hs,lastRenderedState:e},t.queue=e,e=e.dispatch=g1.bind(null,Ee,e),[t.memoizedState,e]}function gs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ee.updateQueue,t===null?(t={lastEffect:null,stores:null},Ee.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Um(){return bt().memoizedState}function Ei(e,t,n,r){var o=Ht();Ee.flags|=e,o.memoizedState=gs(1|t,n,void 0,r===void 0?null:r)}function ba(e,t,n,r){var o=bt();r=r===void 0?null:r;var s=void 0;if(je!==null){var i=je.memoizedState;if(s=i.destroy,r!==null&&Au(r,i.deps)){o.memoizedState=gs(t,n,s,r);return}}Ee.flags|=e,o.memoizedState=gs(1|t,n,s,r)}function yf(e,t){return Ei(8390656,8,e,t)}function zu(e,t){return ba(2048,8,e,t)}function Hm(e,t){return ba(4,2,e,t)}function Wm(e,t){return ba(4,4,e,t)}function Zm(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function qm(e,t,n){return n=n!=null?n.concat([e]):null,ba(4,4,Zm.bind(null,t,e),n)}function $u(){}function Km(e,t){var n=bt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Au(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Gm(e,t){var n=bt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Au(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Qm(e,t,n){return Sr&21?(Dt(n,t)||(n=tm(),Ee.lanes|=n,_r|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,st=!0),e.memoizedState=n)}function m1(e,t){var n=de;de=n!==0&&4>n?n:4,e(!0);var r=Cl.transition;Cl.transition={};try{e(!1),t()}finally{de=n,Cl.transition=r}}function Ym(){return bt().memoizedState}function h1(e,t,n){var r=Bn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Xm(e))Jm(t,n);else if(n=Om(e,t,n,r),n!==null){var o=Xe();At(n,e,r,o),eh(n,t,r)}}function g1(e,t,n){var r=Bn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xm(e))Jm(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,a=s(i,n);if(o.hasEagerState=!0,o.eagerState=a,Dt(a,i)){var l=t.interleaved;l===null?(o.next=o,Pu(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Om(e,t,o,r),n!==null&&(o=Xe(),At(n,e,r,o),eh(n,t,r))}}function Xm(e){var t=e.alternate;return e===Ee||t!==null&&t===Ee}function Jm(e,t){Go=Yi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function eh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,gu(e,n)}}var Xi={readContext:Et,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useInsertionEffect:Ue,useLayoutEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useMutableSource:Ue,useSyncExternalStore:Ue,useId:Ue,unstable_isNewReconciler:!1},v1={readContext:Et,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:Et,useEffect:yf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ei(4194308,4,Zm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ei(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ei(4,2,e,t)},useMemo:function(e,t){var n=Ht();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ht();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=h1.bind(null,Ee,e),[r.memoizedState,e]},useRef:function(e){var t=Ht();return e={current:e},t.memoizedState=e},useState:vf,useDebugValue:$u,useDeferredValue:function(e){return Ht().memoizedState=e},useTransition:function(){var e=vf(!1),t=e[0];return e=m1.bind(null,e[1]),Ht().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ee,o=Ht();if(Se){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),ze===null)throw Error(R(349));Sr&30||zm(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,yf(Fm.bind(null,r,s,e),[e]),r.flags|=2048,gs(9,$m.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Ht(),t=ze.identifierPrefix;if(Se){var n=dn,r=un;n=(r&~(1<<32-Mt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ms++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=p1++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},y1={readContext:Et,useCallback:Km,useContext:Et,useEffect:zu,useImperativeHandle:qm,useInsertionEffect:Hm,useLayoutEffect:Wm,useMemo:Gm,useReducer:kl,useRef:Um,useState:function(){return kl(hs)},useDebugValue:$u,useDeferredValue:function(e){var t=bt();return Qm(t,je.memoizedState,e)},useTransition:function(){var e=kl(hs)[0],t=bt().memoizedState;return[e,t]},useMutableSource:Lm,useSyncExternalStore:Dm,useId:Ym,unstable_isNewReconciler:!1},x1={readContext:Et,useCallback:Km,useContext:Et,useEffect:zu,useImperativeHandle:qm,useInsertionEffect:Hm,useLayoutEffect:Wm,useMemo:Gm,useReducer:El,useRef:Um,useState:function(){return El(hs)},useDebugValue:$u,useDeferredValue:function(e){var t=bt();return je===null?t.memoizedState=e:Qm(t,je.memoizedState,e)},useTransition:function(){var e=El(hs)[0],t=bt().memoizedState;return[e,t]},useMutableSource:Lm,useSyncExternalStore:Dm,useId:Ym,unstable_isNewReconciler:!1};function Pt(e,t){if(e&&e.defaultProps){t=be({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function wc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:be({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Na={isMounted:function(e){return(e=e._reactInternals)?Rr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Xe(),o=Bn(e),s=pn(r,o);s.payload=t,n!=null&&(s.callback=n),t=Fn(e,s,o),t!==null&&(At(t,e,o,r),Ci(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Xe(),o=Bn(e),s=pn(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Fn(e,s,o),t!==null&&(At(t,e,o,r),Ci(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Xe(),r=Bn(e),o=pn(n,r);o.tag=2,t!=null&&(o.callback=t),t=Fn(e,o,r),t!==null&&(At(t,e,r,n),Ci(t,e,r))}};function xf(e,t,n,r,o,s,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,i):t.prototype&&t.prototype.isPureReactComponent?!ls(n,r)||!ls(o,s):!0}function th(e,t,n){var r=!1,o=Wn,s=t.contextType;return typeof s=="object"&&s!==null?s=Et(s):(o=at(t)?xr:qe.current,r=t.contextTypes,s=(r=r!=null)?io(e,o):Wn),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Na,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function wf(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Na.enqueueReplaceState(t,t.state,null)}function Sc(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},ju(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=Et(s):(s=at(t)?xr:qe.current,o.context=io(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(wc(e,t,s,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Na.enqueueReplaceState(o,o.state,null),Gi(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function uo(e,t){try{var n="",r=t;do n+=qy(r),r=r.return;while(r);var o=n}catch(s){o=`
|
|
39
|
-
Error generating stack: `+s.message+`
|
|
40
|
-
`+s.stack}return{value:e,source:t,stack:o,digest:null}}function bl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function _c(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var w1=typeof WeakMap=="function"?WeakMap:Map;function nh(e,t,n){n=pn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ea||(ea=!0,Ic=r),_c(e,t)},n}function rh(e,t,n){n=pn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){_c(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){_c(e,t),typeof r!="function"&&(Vn===null?Vn=new Set([this]):Vn.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Sf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new w1;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=M1.bind(null,e,t,n),t.then(e,e))}function _f(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Cf(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=pn(-1,1),t.tag=2,Fn(n,t,1))),n.lanes|=1),e)}var S1=Cn.ReactCurrentOwner,st=!1;function Qe(e,t,n,r){t.child=e===null?Im(t,null,n,r):lo(t,e.child,n,r)}function kf(e,t,n,r,o){n=n.render;var s=t.ref;return Jr(t,o),r=Lu(e,t,n,r,s,o),n=Du(),e!==null&&!st?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,vn(e,t,o)):(Se&&n&&ku(t),t.flags|=1,Qe(e,t,r,o),t.child)}function Ef(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!qu(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,oh(e,t,s,r,o)):(e=Ri(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var i=s.memoizedProps;if(n=n.compare,n=n!==null?n:ls,n(i,r)&&e.ref===t.ref)return vn(e,t,o)}return t.flags|=1,e=Un(s,r),e.ref=t.ref,e.return=t,t.child=e}function oh(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(ls(s,r)&&e.ref===t.ref)if(st=!1,t.pendingProps=r=s,(e.lanes&o)!==0)e.flags&131072&&(st=!0);else return t.lanes=e.lanes,vn(e,t,o)}return Cc(e,t,n,r,o)}function sh(e,t,n){var r=t.pendingProps,o=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ge(qr,ct),ct|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ge(qr,ct),ct|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,ge(qr,ct),ct|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,ge(qr,ct),ct|=r;return Qe(e,t,o,n),t.child}function ih(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cc(e,t,n,r,o){var s=at(n)?xr:qe.current;return s=io(t,s),Jr(t,o),n=Lu(e,t,n,r,s,o),r=Du(),e!==null&&!st?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,vn(e,t,o)):(Se&&r&&ku(t),t.flags|=1,Qe(e,t,n,o),t.child)}function bf(e,t,n,r,o){if(at(n)){var s=!0;Hi(t)}else s=!1;if(Jr(t,o),t.stateNode===null)bi(e,t),th(t,n,r),Sc(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var l=i.context,c=n.contextType;typeof c=="object"&&c!==null?c=Et(c):(c=at(n)?xr:qe.current,c=io(t,c));var u=n.getDerivedStateFromProps,f=typeof u=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||l!==c)&&wf(t,i,r,c),Pn=!1;var g=t.memoizedState;i.state=g,Gi(t,r,i,o),l=t.memoizedState,a!==r||g!==l||it.current||Pn?(typeof u=="function"&&(wc(t,n,u,r),l=t.memoizedState),(a=Pn||xf(t,n,a,r,g,l,c))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=c,r=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Mm(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Pt(t.type,a),i.props=c,f=t.pendingProps,g=i.context,l=n.contextType,typeof l=="object"&&l!==null?l=Et(l):(l=at(n)?xr:qe.current,l=io(t,l));var x=n.getDerivedStateFromProps;(u=typeof x=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==f||g!==l)&&wf(t,i,r,l),Pn=!1,g=t.memoizedState,i.state=g,Gi(t,r,i,o);var w=t.memoizedState;a!==f||g!==w||it.current||Pn?(typeof x=="function"&&(wc(t,n,x,r),w=t.memoizedState),(c=Pn||xf(t,n,c,r,g,w,l)||!1)?(u||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,w,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,w,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),i.props=r,i.state=w,i.context=l,r=c):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),r=!1)}return kc(e,t,n,r,s,o)}function kc(e,t,n,r,o,s){ih(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&df(t,n,!1),vn(e,t,s);r=t.stateNode,S1.current=t;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=lo(t,e.child,null,s),t.child=lo(t,null,a,s)):Qe(e,t,a,s),t.memoizedState=r.state,o&&df(t,n,!0),t.child}function ah(e){var t=e.stateNode;t.pendingContext?uf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&uf(e,t.context,!1),Iu(e,t.containerInfo)}function Nf(e,t,n,r,o){return ao(),bu(o),t.flags|=256,Qe(e,t,n,r),t.child}var Ec={dehydrated:null,treeContext:null,retryLane:0};function bc(e){return{baseLanes:e,cachePool:null,transitions:null}}function lh(e,t,n){var r=t.pendingProps,o=ke.current,s=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ge(ke,o&1),e===null)return yc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,s?(r=t.mode,s=t.child,i={mode:"hidden",children:i},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=i):s=Pa(i,r,0,null),e=gr(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=bc(n),t.memoizedState=Ec,e):Fu(t,i));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return _1(e,t,i,r,a,o,n);if(s){s=r.fallback,i=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Un(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?s=Un(a,s):(s=gr(s,i,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,i=e.child.memoizedState,i=i===null?bc(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=Ec,r}return s=e.child,e=s.sibling,r=Un(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Fu(e,t){return t=Pa({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ii(e,t,n,r){return r!==null&&bu(r),lo(t,e.child,null,n),e=Fu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function _1(e,t,n,r,o,s,i){if(n)return t.flags&256?(t.flags&=-257,r=bl(Error(R(422))),ii(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=Pa({mode:"visible",children:r.children},o,0,null),s=gr(s,o,i,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&lo(t,e.child,null,i),t.child.memoizedState=bc(i),t.memoizedState=Ec,s);if(!(t.mode&1))return ii(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(R(419)),r=bl(s,r,void 0),ii(e,t,i,r)}if(a=(i&e.childLanes)!==0,st||a){if(r=ze,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,gn(e,o),At(r,e,o,-1))}return Zu(),r=bl(Error(R(421))),ii(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=A1.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,dt=$n(o.nextSibling),pt=t,Se=!0,It=null,e!==null&&(St[_t++]=un,St[_t++]=dn,St[_t++]=wr,un=e.id,dn=e.overflow,wr=t),t=Fu(t,r.children),t.flags|=4096,t)}function Tf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),xc(e.return,t,n)}function Nl(e,t,n,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function ch(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(Qe(e,t,r.children,n),r=ke.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Tf(e,n,t);else if(e.tag===19)Tf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ge(ke,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Qi(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Nl(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Qi(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Nl(t,!0,n,null,s);break;case"together":Nl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function bi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function vn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),_r|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,n=Un(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Un(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function C1(e,t,n){switch(t.tag){case 3:ah(t),ao();break;case 5:Am(t);break;case 1:at(t.type)&&Hi(t);break;case 4:Iu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ge(qi,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ge(ke,ke.current&1),t.flags|=128,null):n&t.child.childLanes?lh(e,t,n):(ge(ke,ke.current&1),e=vn(e,t,n),e!==null?e.sibling:null);ge(ke,ke.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return ch(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ge(ke,ke.current),r)break;return null;case 22:case 23:return t.lanes=0,sh(e,t,n)}return vn(e,t,n)}var uh,Nc,dh,fh;uh=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Nc=function(){};dh=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,pr(Gt.current);var s=null;switch(n){case"input":o=Gl(e,o),r=Gl(e,r),s=[];break;case"select":o=be({},o,{value:void 0}),r=be({},r,{value:void 0}),s=[];break;case"textarea":o=Xl(e,o),r=Xl(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Bi)}ec(n,r);var i;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var a=o[c];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(ts.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var l=r[c];if(a=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(i in a)!a.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&a[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(s||(s=[]),s.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(ts.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&xe("scroll",e),s||a===l||(s=[])):(s=s||[]).push(c,l))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}};fh=function(e,t,n,r){n!==r&&(t.flags|=4)};function Oo(e,t){if(!Se)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function He(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function k1(e,t,n){var r=t.pendingProps;switch(Eu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return He(t),null;case 1:return at(t.type)&&Ui(),He(t),null;case 3:return r=t.stateNode,co(),we(it),we(qe),Mu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(oi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,It!==null&&(Ac(It),It=null))),Nc(e,t),He(t),null;case 5:Ou(t);var o=pr(ps.current);if(n=t.type,e!==null&&t.stateNode!=null)dh(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(R(166));return He(t),null}if(e=pr(Gt.current),oi(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Wt]=t,r[ds]=s,e=(t.mode&1)!==0,n){case"dialog":xe("cancel",r),xe("close",r);break;case"iframe":case"object":case"embed":xe("load",r);break;case"video":case"audio":for(o=0;o<Fo.length;o++)xe(Fo[o],r);break;case"source":xe("error",r);break;case"img":case"image":case"link":xe("error",r),xe("load",r);break;case"details":xe("toggle",r);break;case"input":Ld(r,s),xe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},xe("invalid",r);break;case"textarea":zd(r,s),xe("invalid",r)}ec(n,s),o=null;for(var i in s)if(s.hasOwnProperty(i)){var a=s[i];i==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&ri(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&ri(r.textContent,a,e),o=["children",""+a]):ts.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&xe("scroll",r)}switch(n){case"input":Gs(r),Dd(r,s,!0);break;case"textarea":Gs(r),$d(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Bi)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Fp(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Wt]=t,e[ds]=r,uh(e,t,!1,!1),t.stateNode=e;e:{switch(i=tc(n,r),n){case"dialog":xe("cancel",e),xe("close",e),o=r;break;case"iframe":case"object":case"embed":xe("load",e),o=r;break;case"video":case"audio":for(o=0;o<Fo.length;o++)xe(Fo[o],e);o=r;break;case"source":xe("error",e),o=r;break;case"img":case"image":case"link":xe("error",e),xe("load",e),o=r;break;case"details":xe("toggle",e),o=r;break;case"input":Ld(e,r),o=Gl(e,r),xe("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=be({},r,{value:void 0}),xe("invalid",e);break;case"textarea":zd(e,r),o=Xl(e,r),xe("invalid",e);break;default:o=r}ec(n,o),a=o;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?Up(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Vp(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&ns(e,l):typeof l=="number"&&ns(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(ts.hasOwnProperty(s)?l!=null&&s==="onScroll"&&xe("scroll",e):l!=null&&uu(e,s,l,i))}switch(n){case"input":Gs(e),Dd(e,r,!1);break;case"textarea":Gs(e),$d(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Hn(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Gr(e,!!r.multiple,s,!1):r.defaultValue!=null&&Gr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Bi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return He(t),null;case 6:if(e&&t.stateNode!=null)fh(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(R(166));if(n=pr(ps.current),pr(Gt.current),oi(t)){if(r=t.stateNode,n=t.memoizedProps,r[Wt]=t,(s=r.nodeValue!==n)&&(e=pt,e!==null))switch(e.tag){case 3:ri(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ri(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Wt]=t,t.stateNode=r}return He(t),null;case 13:if(we(ke),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Se&&dt!==null&&t.mode&1&&!(t.flags&128))Pm(),ao(),t.flags|=98560,s=!1;else if(s=oi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(R(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(R(317));s[Wt]=t}else ao(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;He(t),s=!1}else It!==null&&(Ac(It),It=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ke.current&1?Ie===0&&(Ie=3):Zu())),t.updateQueue!==null&&(t.flags|=4),He(t),null);case 4:return co(),Nc(e,t),e===null&&cs(t.stateNode.containerInfo),He(t),null;case 10:return Ru(t.type._context),He(t),null;case 17:return at(t.type)&&Ui(),He(t),null;case 19:if(we(ke),s=t.memoizedState,s===null)return He(t),null;if(r=(t.flags&128)!==0,i=s.rendering,i===null)if(r)Oo(s,!1);else{if(Ie!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Qi(e),i!==null){for(t.flags|=128,Oo(s,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,i=s.alternate,i===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,s.type=i.type,e=i.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ge(ke,ke.current&1|2),t.child}e=e.sibling}s.tail!==null&&Re()>fo&&(t.flags|=128,r=!0,Oo(s,!1),t.lanes=4194304)}else{if(!r)if(e=Qi(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Oo(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!Se)return He(t),null}else 2*Re()-s.renderingStartTime>fo&&n!==1073741824&&(t.flags|=128,r=!0,Oo(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Re(),t.sibling=null,n=ke.current,ge(ke,r?n&1|2:n&1),t):(He(t),null);case 22:case 23:return Wu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ct&1073741824&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function E1(e,t){switch(Eu(t),t.tag){case 1:return at(t.type)&&Ui(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return co(),we(it),we(qe),Mu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ou(t),null;case 13:if(we(ke),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));ao()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return we(ke),null;case 4:return co(),null;case 10:return Ru(t.type._context),null;case 22:case 23:return Wu(),null;case 24:return null;default:return null}}var ai=!1,We=!1,b1=typeof WeakSet=="function"?WeakSet:Set,$=null;function Zr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ne(e,t,r)}else n.current=null}function Tc(e,t,n){try{n()}catch(r){Ne(e,t,r)}}var Rf=!1;function N1(e,t){if(dc=$i,e=vm(),Cu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,a=-1,l=-1,c=0,u=0,f=e,g=null;t:for(;;){for(var x;f!==n||o!==0&&f.nodeType!==3||(a=i+o),f!==s||r!==0&&f.nodeType!==3||(l=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(x=f.firstChild)!==null;)g=f,f=x;for(;;){if(f===e)break t;if(g===n&&++c===o&&(a=i),g===s&&++u===r&&(l=i),(x=f.nextSibling)!==null)break;f=g,g=f.parentNode}f=x}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(fc={focusedElem:e,selectionRange:n},$i=!1,$=t;$!==null;)if(t=$,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var v=w.memoizedProps,_=w.memoizedState,m=t.stateNode,d=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:Pt(t.type,v),_);m.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(C){Ne(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return w=Rf,Rf=!1,w}function Qo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&Tc(t,n,s)}o=o.next}while(o!==r)}}function Ta(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Rc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function ph(e){var t=e.alternate;t!==null&&(e.alternate=null,ph(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Wt],delete t[ds],delete t[hc],delete t[c1],delete t[u1])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function mh(e){return e.tag===5||e.tag===3||e.tag===4}function Pf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Pc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Bi));else if(r!==4&&(e=e.child,e!==null))for(Pc(e,t,n),e=e.sibling;e!==null;)Pc(e,t,n),e=e.sibling}function jc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(jc(e,t,n),e=e.sibling;e!==null;)jc(e,t,n),e=e.sibling}var Fe=null,jt=!1;function En(e,t,n){for(n=n.child;n!==null;)hh(e,t,n),n=n.sibling}function hh(e,t,n){if(Kt&&typeof Kt.onCommitFiberUnmount=="function")try{Kt.onCommitFiberUnmount(wa,n)}catch{}switch(n.tag){case 5:We||Zr(n,t);case 6:var r=Fe,o=jt;Fe=null,En(e,t,n),Fe=r,jt=o,Fe!==null&&(jt?(e=Fe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Fe.removeChild(n.stateNode));break;case 18:Fe!==null&&(jt?(e=Fe,n=n.stateNode,e.nodeType===8?wl(e.parentNode,n):e.nodeType===1&&wl(e,n),is(e)):wl(Fe,n.stateNode));break;case 4:r=Fe,o=jt,Fe=n.stateNode.containerInfo,jt=!0,En(e,t,n),Fe=r,jt=o;break;case 0:case 11:case 14:case 15:if(!We&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&Tc(n,t,i),o=o.next}while(o!==r)}En(e,t,n);break;case 1:if(!We&&(Zr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ne(n,t,a)}En(e,t,n);break;case 21:En(e,t,n);break;case 22:n.mode&1?(We=(r=We)||n.memoizedState!==null,En(e,t,n),We=r):En(e,t,n);break;default:En(e,t,n)}}function jf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new b1),t.forEach(function(r){var o=L1.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Tt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,i=t,a=i;e:for(;a!==null;){switch(a.tag){case 5:Fe=a.stateNode,jt=!1;break e;case 3:Fe=a.stateNode.containerInfo,jt=!0;break e;case 4:Fe=a.stateNode.containerInfo,jt=!0;break e}a=a.return}if(Fe===null)throw Error(R(160));hh(s,i,o),Fe=null,jt=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(c){Ne(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)gh(t,e),t=t.sibling}function gh(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Tt(t,e),Ut(e),r&4){try{Qo(3,e,e.return),Ta(3,e)}catch(v){Ne(e,e.return,v)}try{Qo(5,e,e.return)}catch(v){Ne(e,e.return,v)}}break;case 1:Tt(t,e),Ut(e),r&512&&n!==null&&Zr(n,n.return);break;case 5:if(Tt(t,e),Ut(e),r&512&&n!==null&&Zr(n,n.return),e.flags&32){var o=e.stateNode;try{ns(o,"")}catch(v){Ne(e,e.return,v)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,i=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&zp(o,s),tc(a,i);var c=tc(a,s);for(i=0;i<l.length;i+=2){var u=l[i],f=l[i+1];u==="style"?Up(o,f):u==="dangerouslySetInnerHTML"?Vp(o,f):u==="children"?ns(o,f):uu(o,u,f,c)}switch(a){case"input":Ql(o,s);break;case"textarea":$p(o,s);break;case"select":var g=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var x=s.value;x!=null?Gr(o,!!s.multiple,x,!1):g!==!!s.multiple&&(s.defaultValue!=null?Gr(o,!!s.multiple,s.defaultValue,!0):Gr(o,!!s.multiple,s.multiple?[]:"",!1))}o[ds]=s}catch(v){Ne(e,e.return,v)}}break;case 6:if(Tt(t,e),Ut(e),r&4){if(e.stateNode===null)throw Error(R(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(v){Ne(e,e.return,v)}}break;case 3:if(Tt(t,e),Ut(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{is(t.containerInfo)}catch(v){Ne(e,e.return,v)}break;case 4:Tt(t,e),Ut(e);break;case 13:Tt(t,e),Ut(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(Uu=Re())),r&4&&jf(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(We=(c=We)||u,Tt(t,e),We=c):Tt(t,e),Ut(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for($=e,u=e.child;u!==null;){for(f=$=u;$!==null;){switch(g=$,x=g.child,g.tag){case 0:case 11:case 14:case 15:Qo(4,g,g.return);break;case 1:Zr(g,g.return);var w=g.stateNode;if(typeof w.componentWillUnmount=="function"){r=g,n=g.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(v){Ne(r,n,v)}}break;case 5:Zr(g,g.return);break;case 22:if(g.memoizedState!==null){Of(f);continue}}x!==null?(x.return=g,$=x):Of(f)}u=u.sibling}e:for(u=null,f=e;;){if(f.tag===5){if(u===null){u=f;try{o=f.stateNode,c?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=f.stateNode,l=f.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Bp("display",i))}catch(v){Ne(e,e.return,v)}}}else if(f.tag===6){if(u===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(v){Ne(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;u===f&&(u=null),f=f.return}u===f&&(u=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Tt(t,e),Ut(e),r&4&&jf(e);break;case 21:break;default:Tt(t,e),Ut(e)}}function Ut(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(mh(n)){var r=n;break e}n=n.return}throw Error(R(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(ns(o,""),r.flags&=-33);var s=Pf(e);jc(e,s,o);break;case 3:case 4:var i=r.stateNode.containerInfo,a=Pf(e);Pc(e,a,i);break;default:throw Error(R(161))}}catch(l){Ne(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function T1(e,t,n){$=e,vh(e)}function vh(e,t,n){for(var r=(e.mode&1)!==0;$!==null;){var o=$,s=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||ai;if(!i){var a=o.alternate,l=a!==null&&a.memoizedState!==null||We;a=ai;var c=We;if(ai=i,(We=l)&&!c)for($=o;$!==null;)i=$,l=i.child,i.tag===22&&i.memoizedState!==null?Mf(o):l!==null?(l.return=i,$=l):Mf(o);for(;s!==null;)$=s,vh(s),s=s.sibling;$=o,ai=a,We=c}If(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,$=s):If(e)}}function If(e){for(;$!==null;){var t=$;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:We||Ta(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!We)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Pt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&gf(t,s,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}gf(t,i,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var f=u.dehydrated;f!==null&&is(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}We||t.flags&512&&Rc(t)}catch(g){Ne(t,t.return,g)}}if(t===e){$=null;break}if(n=t.sibling,n!==null){n.return=t.return,$=n;break}$=t.return}}function Of(e){for(;$!==null;){var t=$;if(t===e){$=null;break}var n=t.sibling;if(n!==null){n.return=t.return,$=n;break}$=t.return}}function Mf(e){for(;$!==null;){var t=$;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ta(4,t)}catch(l){Ne(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){Ne(t,o,l)}}var s=t.return;try{Rc(t)}catch(l){Ne(t,s,l)}break;case 5:var i=t.return;try{Rc(t)}catch(l){Ne(t,i,l)}}}catch(l){Ne(t,t.return,l)}if(t===e){$=null;break}var a=t.sibling;if(a!==null){a.return=t.return,$=a;break}$=t.return}}var R1=Math.ceil,Ji=Cn.ReactCurrentDispatcher,Vu=Cn.ReactCurrentOwner,kt=Cn.ReactCurrentBatchConfig,se=0,ze=null,Pe=null,Ve=0,ct=0,qr=tr(0),Ie=0,vs=null,_r=0,Ra=0,Bu=0,Yo=null,ot=null,Uu=0,fo=1/0,ln=null,ea=!1,Ic=null,Vn=null,li=!1,An=null,ta=0,Xo=0,Oc=null,Ni=-1,Ti=0;function Xe(){return se&6?Re():Ni!==-1?Ni:Ni=Re()}function Bn(e){return e.mode&1?se&2&&Ve!==0?Ve&-Ve:f1.transition!==null?(Ti===0&&(Ti=tm()),Ti):(e=de,e!==0||(e=window.event,e=e===void 0?16:lm(e.type)),e):1}function At(e,t,n,r){if(50<Xo)throw Xo=0,Oc=null,Error(R(185));Ds(e,n,r),(!(se&2)||e!==ze)&&(e===ze&&(!(se&2)&&(Ra|=n),Ie===4&&In(e,Ve)),lt(e,r),n===1&&se===0&&!(t.mode&1)&&(fo=Re()+500,Ea&&nr()))}function lt(e,t){var n=e.callbackNode;f0(e,t);var r=zi(e,e===ze?Ve:0);if(r===0)n!==null&&Bd(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Bd(n),t===1)e.tag===0?d1(Af.bind(null,e)):Nm(Af.bind(null,e)),a1(function(){!(se&6)&&nr()}),n=null;else{switch(nm(r)){case 1:n=hu;break;case 4:n=Jp;break;case 16:n=Di;break;case 536870912:n=em;break;default:n=Di}n=Eh(n,yh.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function yh(e,t){if(Ni=-1,Ti=0,se&6)throw Error(R(327));var n=e.callbackNode;if(eo()&&e.callbackNode!==n)return null;var r=zi(e,e===ze?Ve:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=na(e,r);else{t=r;var o=se;se|=2;var s=wh();(ze!==e||Ve!==t)&&(ln=null,fo=Re()+500,hr(e,t));do try{I1();break}catch(a){xh(e,a)}while(!0);Tu(),Ji.current=s,se=o,Pe!==null?t=0:(ze=null,Ve=0,t=Ie)}if(t!==0){if(t===2&&(o=ic(e),o!==0&&(r=o,t=Mc(e,o))),t===1)throw n=vs,hr(e,0),In(e,r),lt(e,Re()),n;if(t===6)In(e,r);else{if(o=e.current.alternate,!(r&30)&&!P1(o)&&(t=na(e,r),t===2&&(s=ic(e),s!==0&&(r=s,t=Mc(e,s))),t===1))throw n=vs,hr(e,0),In(e,r),lt(e,Re()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(R(345));case 2:ur(e,ot,ln);break;case 3:if(In(e,r),(r&130023424)===r&&(t=Uu+500-Re(),10<t)){if(zi(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Xe(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=mc(ur.bind(null,e,ot,ln),t);break}ur(e,ot,ln);break;case 4:if(In(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-Mt(r);s=1<<i,i=t[i],i>o&&(o=i),r&=~s}if(r=o,r=Re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*R1(r/1960))-r,10<r){e.timeoutHandle=mc(ur.bind(null,e,ot,ln),r);break}ur(e,ot,ln);break;case 5:ur(e,ot,ln);break;default:throw Error(R(329))}}}return lt(e,Re()),e.callbackNode===n?yh.bind(null,e):null}function Mc(e,t){var n=Yo;return e.current.memoizedState.isDehydrated&&(hr(e,t).flags|=256),e=na(e,t),e!==2&&(t=ot,ot=n,t!==null&&Ac(t)),e}function Ac(e){ot===null?ot=e:ot.push.apply(ot,e)}function P1(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],s=o.getSnapshot;o=o.value;try{if(!Dt(s(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function In(e,t){for(t&=~Bu,t&=~Ra,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Mt(t),r=1<<n;e[n]=-1,t&=~r}}function Af(e){if(se&6)throw Error(R(327));eo();var t=zi(e,0);if(!(t&1))return lt(e,Re()),null;var n=na(e,t);if(e.tag!==0&&n===2){var r=ic(e);r!==0&&(t=r,n=Mc(e,r))}if(n===1)throw n=vs,hr(e,0),In(e,t),lt(e,Re()),n;if(n===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ur(e,ot,ln),lt(e,Re()),null}function Hu(e,t){var n=se;se|=1;try{return e(t)}finally{se=n,se===0&&(fo=Re()+500,Ea&&nr())}}function Cr(e){An!==null&&An.tag===0&&!(se&6)&&eo();var t=se;se|=1;var n=kt.transition,r=de;try{if(kt.transition=null,de=1,e)return e()}finally{de=r,kt.transition=n,se=t,!(se&6)&&nr()}}function Wu(){ct=qr.current,we(qr)}function hr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,i1(n)),Pe!==null)for(n=Pe.return;n!==null;){var r=n;switch(Eu(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ui();break;case 3:co(),we(it),we(qe),Mu();break;case 5:Ou(r);break;case 4:co();break;case 13:we(ke);break;case 19:we(ke);break;case 10:Ru(r.type._context);break;case 22:case 23:Wu()}n=n.return}if(ze=e,Pe=e=Un(e.current,null),Ve=ct=t,Ie=0,vs=null,Bu=Ra=_r=0,ot=Yo=null,fr!==null){for(t=0;t<fr.length;t++)if(n=fr[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,s=n.pending;if(s!==null){var i=s.next;s.next=o,r.next=i}n.pending=r}fr=null}return e}function xh(e,t){do{var n=Pe;try{if(Tu(),ki.current=Xi,Yi){for(var r=Ee.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Yi=!1}if(Sr=0,De=je=Ee=null,Go=!1,ms=0,Vu.current=null,n===null||n.return===null){Ie=1,vs=t,Pe=null;break}e:{var s=e,i=n.return,a=n,l=t;if(t=Ve,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=a,f=u.tag;if(!(u.mode&1)&&(f===0||f===11||f===15)){var g=u.alternate;g?(u.updateQueue=g.updateQueue,u.memoizedState=g.memoizedState,u.lanes=g.lanes):(u.updateQueue=null,u.memoizedState=null)}var x=_f(i);if(x!==null){x.flags&=-257,Cf(x,i,a,s,t),x.mode&1&&Sf(s,c,t),t=x,l=c;var w=t.updateQueue;if(w===null){var v=new Set;v.add(l),t.updateQueue=v}else w.add(l);break e}else{if(!(t&1)){Sf(s,c,t),Zu();break e}l=Error(R(426))}}else if(Se&&a.mode&1){var _=_f(i);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Cf(_,i,a,s,t),bu(uo(l,a));break e}}s=l=uo(l,a),Ie!==4&&(Ie=2),Yo===null?Yo=[s]:Yo.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var m=nh(s,l,t);hf(s,m);break e;case 1:a=l;var d=s.type,y=s.stateNode;if(!(s.flags&128)&&(typeof d.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Vn===null||!Vn.has(y)))){s.flags|=65536,t&=-t,s.lanes|=t;var C=rh(s,a,t);hf(s,C);break e}}s=s.return}while(s!==null)}_h(n)}catch(k){t=k,Pe===n&&n!==null&&(Pe=n=n.return);continue}break}while(!0)}function wh(){var e=Ji.current;return Ji.current=Xi,e===null?Xi:e}function Zu(){(Ie===0||Ie===3||Ie===2)&&(Ie=4),ze===null||!(_r&268435455)&&!(Ra&268435455)||In(ze,Ve)}function na(e,t){var n=se;se|=2;var r=wh();(ze!==e||Ve!==t)&&(ln=null,hr(e,t));do try{j1();break}catch(o){xh(e,o)}while(!0);if(Tu(),se=n,Ji.current=r,Pe!==null)throw Error(R(261));return ze=null,Ve=0,Ie}function j1(){for(;Pe!==null;)Sh(Pe)}function I1(){for(;Pe!==null&&!r0();)Sh(Pe)}function Sh(e){var t=kh(e.alternate,e,ct);e.memoizedProps=e.pendingProps,t===null?_h(e):Pe=t,Vu.current=null}function _h(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=E1(n,t),n!==null){n.flags&=32767,Pe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ie=6,Pe=null;return}}else if(n=k1(n,t,ct),n!==null){Pe=n;return}if(t=t.sibling,t!==null){Pe=t;return}Pe=t=e}while(t!==null);Ie===0&&(Ie=5)}function ur(e,t,n){var r=de,o=kt.transition;try{kt.transition=null,de=1,O1(e,t,n,r)}finally{kt.transition=o,de=r}return null}function O1(e,t,n,r){do eo();while(An!==null);if(se&6)throw Error(R(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(R(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(p0(e,s),e===ze&&(Pe=ze=null,Ve=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||li||(li=!0,Eh(Di,function(){return eo(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=kt.transition,kt.transition=null;var i=de;de=1;var a=se;se|=4,Vu.current=null,N1(e,n),gh(n,e),J0(fc),$i=!!dc,fc=dc=null,e.current=n,T1(n),o0(),se=a,de=i,kt.transition=s}else e.current=n;if(li&&(li=!1,An=e,ta=o),s=e.pendingLanes,s===0&&(Vn=null),a0(n.stateNode),lt(e,Re()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(ea)throw ea=!1,e=Ic,Ic=null,e;return ta&1&&e.tag!==0&&eo(),s=e.pendingLanes,s&1?e===Oc?Xo++:(Xo=0,Oc=e):Xo=0,nr(),null}function eo(){if(An!==null){var e=nm(ta),t=kt.transition,n=de;try{if(kt.transition=null,de=16>e?16:e,An===null)var r=!1;else{if(e=An,An=null,ta=0,se&6)throw Error(R(331));var o=se;for(se|=4,$=e.current;$!==null;){var s=$,i=s.child;if($.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for($=c;$!==null;){var u=$;switch(u.tag){case 0:case 11:case 15:Qo(8,u,s)}var f=u.child;if(f!==null)f.return=u,$=f;else for(;$!==null;){u=$;var g=u.sibling,x=u.return;if(ph(u),u===c){$=null;break}if(g!==null){g.return=x,$=g;break}$=x}}}var w=s.alternate;if(w!==null){var v=w.child;if(v!==null){w.child=null;do{var _=v.sibling;v.sibling=null,v=_}while(v!==null)}}$=s}}if(s.subtreeFlags&2064&&i!==null)i.return=s,$=i;else e:for(;$!==null;){if(s=$,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Qo(9,s,s.return)}var m=s.sibling;if(m!==null){m.return=s.return,$=m;break e}$=s.return}}var d=e.current;for($=d;$!==null;){i=$;var y=i.child;if(i.subtreeFlags&2064&&y!==null)y.return=i,$=y;else e:for(i=d;$!==null;){if(a=$,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Ta(9,a)}}catch(k){Ne(a,a.return,k)}if(a===i){$=null;break e}var C=a.sibling;if(C!==null){C.return=a.return,$=C;break e}$=a.return}}if(se=o,nr(),Kt&&typeof Kt.onPostCommitFiberRoot=="function")try{Kt.onPostCommitFiberRoot(wa,e)}catch{}r=!0}return r}finally{de=n,kt.transition=t}}return!1}function Lf(e,t,n){t=uo(n,t),t=nh(e,t,1),e=Fn(e,t,1),t=Xe(),e!==null&&(Ds(e,1,t),lt(e,t))}function Ne(e,t,n){if(e.tag===3)Lf(e,e,n);else for(;t!==null;){if(t.tag===3){Lf(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Vn===null||!Vn.has(r))){e=uo(n,e),e=rh(t,e,1),t=Fn(t,e,1),e=Xe(),t!==null&&(Ds(t,1,e),lt(t,e));break}}t=t.return}}function M1(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Xe(),e.pingedLanes|=e.suspendedLanes&n,ze===e&&(Ve&n)===n&&(Ie===4||Ie===3&&(Ve&130023424)===Ve&&500>Re()-Uu?hr(e,0):Bu|=n),lt(e,t)}function Ch(e,t){t===0&&(e.mode&1?(t=Xs,Xs<<=1,!(Xs&130023424)&&(Xs=4194304)):t=1);var n=Xe();e=gn(e,t),e!==null&&(Ds(e,t,n),lt(e,n))}function A1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ch(e,n)}function L1(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),Ch(e,n)}var kh;kh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||it.current)st=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return st=!1,C1(e,t,n);st=!!(e.flags&131072)}else st=!1,Se&&t.flags&1048576&&Tm(t,Zi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;bi(e,t),e=t.pendingProps;var o=io(t,qe.current);Jr(t,n),o=Lu(null,t,r,e,o,n);var s=Du();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,at(r)?(s=!0,Hi(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ju(t),o.updater=Na,t.stateNode=o,o._reactInternals=t,Sc(t,r,e,n),t=kc(null,t,r,!0,s,n)):(t.tag=0,Se&&s&&ku(t),Qe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(bi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=z1(r),e=Pt(r,e),o){case 0:t=Cc(null,t,r,e,n);break e;case 1:t=bf(null,t,r,e,n);break e;case 11:t=kf(null,t,r,e,n);break e;case 14:t=Ef(null,t,r,Pt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Pt(r,o),Cc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Pt(r,o),bf(e,t,r,o,n);case 3:e:{if(ah(t),e===null)throw Error(R(387));r=t.pendingProps,s=t.memoizedState,o=s.element,Mm(e,t),Gi(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=uo(Error(R(423)),t),t=Nf(e,t,r,n,o);break e}else if(r!==o){o=uo(Error(R(424)),t),t=Nf(e,t,r,n,o);break e}else for(dt=$n(t.stateNode.containerInfo.firstChild),pt=t,Se=!0,It=null,n=Im(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ao(),r===o){t=vn(e,t,n);break e}Qe(e,t,r,n)}t=t.child}return t;case 5:return Am(t),e===null&&yc(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,pc(r,o)?i=null:s!==null&&pc(r,s)&&(t.flags|=32),ih(e,t),Qe(e,t,i,n),t.child;case 6:return e===null&&yc(t),null;case 13:return lh(e,t,n);case 4:return Iu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=lo(t,null,r,n):Qe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Pt(r,o),kf(e,t,r,o,n);case 7:return Qe(e,t,t.pendingProps,n),t.child;case 8:return Qe(e,t,t.pendingProps.children,n),t.child;case 12:return Qe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,ge(qi,r._currentValue),r._currentValue=i,s!==null)if(Dt(s.value,i)){if(s.children===o.children&&!it.current){t=vn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){i=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=pn(-1,n&-n),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),xc(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(R(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),xc(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}Qe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Jr(t,n),o=Et(o),r=r(o),t.flags|=1,Qe(e,t,r,n),t.child;case 14:return r=t.type,o=Pt(r,t.pendingProps),o=Pt(r.type,o),Ef(e,t,r,o,n);case 15:return oh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Pt(r,o),bi(e,t),t.tag=1,at(r)?(e=!0,Hi(t)):e=!1,Jr(t,n),th(t,r,o),Sc(t,r,o,n),kc(null,t,r,!0,e,n);case 19:return ch(e,t,n);case 22:return sh(e,t,n)}throw Error(R(156,t.tag))};function Eh(e,t){return Xp(e,t)}function D1(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ct(e,t,n,r){return new D1(e,t,n,r)}function qu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function z1(e){if(typeof e=="function")return qu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===fu)return 11;if(e===pu)return 14}return 2}function Un(e,t){var n=e.alternate;return n===null?(n=Ct(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ri(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")qu(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Dr:return gr(n.children,o,s,t);case du:i=8,o|=8;break;case Wl:return e=Ct(12,n,t,o|2),e.elementType=Wl,e.lanes=s,e;case Zl:return e=Ct(13,n,t,o),e.elementType=Zl,e.lanes=s,e;case ql:return e=Ct(19,n,t,o),e.elementType=ql,e.lanes=s,e;case Ap:return Pa(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Op:i=10;break e;case Mp:i=9;break e;case fu:i=11;break e;case pu:i=14;break e;case Rn:i=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=Ct(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function gr(e,t,n,r){return e=Ct(7,e,r,t),e.lanes=n,e}function Pa(e,t,n,r){return e=Ct(22,e,r,t),e.elementType=Ap,e.lanes=n,e.stateNode={isHidden:!1},e}function Tl(e,t,n){return e=Ct(6,e,null,t),e.lanes=n,e}function Rl(e,t,n){return t=Ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $1(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=cl(0),this.expirationTimes=cl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ku(e,t,n,r,o,s,i,a,l){return e=new $1(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Ct(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ju(s),e}function F1(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Lr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function bh(e){if(!e)return Wn;e=e._reactInternals;e:{if(Rr(e)!==e||e.tag!==1)throw Error(R(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(at(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(R(171))}if(e.tag===1){var n=e.type;if(at(n))return bm(e,n,t)}return t}function Nh(e,t,n,r,o,s,i,a,l){return e=Ku(n,r,!0,e,o,s,i,a,l),e.context=bh(null),n=e.current,r=Xe(),o=Bn(n),s=pn(r,o),s.callback=t??null,Fn(n,s,o),e.current.lanes=o,Ds(e,o,r),lt(e,r),e}function ja(e,t,n,r){var o=t.current,s=Xe(),i=Bn(o);return n=bh(n),t.context===null?t.context=n:t.pendingContext=n,t=pn(s,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Fn(o,t,i),e!==null&&(At(e,o,i,s),Ci(e,o,i)),i}function ra(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Df(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Gu(e,t){Df(e,t),(e=e.alternate)&&Df(e,t)}function V1(){return null}var Th=typeof reportError=="function"?reportError:function(e){console.error(e)};function Qu(e){this._internalRoot=e}Ia.prototype.render=Qu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));ja(e,t,null,null)};Ia.prototype.unmount=Qu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Cr(function(){ja(null,e,null,null)}),t[hn]=null}};function Ia(e){this._internalRoot=e}Ia.prototype.unstable_scheduleHydration=function(e){if(e){var t=sm();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jn.length&&t!==0&&t<jn[n].priority;n++);jn.splice(n,0,e),n===0&&am(e)}};function Yu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Oa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function zf(){}function B1(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var c=ra(i);s.call(c)}}var i=Nh(t,r,e,0,null,!1,!1,"",zf);return e._reactRootContainer=i,e[hn]=i.current,cs(e.nodeType===8?e.parentNode:e),Cr(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var c=ra(l);a.call(c)}}var l=Ku(e,0,!1,null,null,!1,!1,"",zf);return e._reactRootContainer=l,e[hn]=l.current,cs(e.nodeType===8?e.parentNode:e),Cr(function(){ja(t,l,n,r)}),l}function Ma(e,t,n,r,o){var s=n._reactRootContainer;if(s){var i=s;if(typeof o=="function"){var a=o;o=function(){var l=ra(i);a.call(l)}}ja(t,i,e,o)}else i=B1(n,t,e,o,r);return ra(i)}rm=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=$o(t.pendingLanes);n!==0&&(gu(t,n|1),lt(t,Re()),!(se&6)&&(fo=Re()+500,nr()))}break;case 13:Cr(function(){var r=gn(e,1);if(r!==null){var o=Xe();At(r,e,1,o)}}),Gu(e,1)}};vu=function(e){if(e.tag===13){var t=gn(e,134217728);if(t!==null){var n=Xe();At(t,e,134217728,n)}Gu(e,134217728)}};om=function(e){if(e.tag===13){var t=Bn(e),n=gn(e,t);if(n!==null){var r=Xe();At(n,e,t,r)}Gu(e,t)}};sm=function(){return de};im=function(e,t){var n=de;try{return de=e,t()}finally{de=n}};rc=function(e,t,n){switch(t){case"input":if(Ql(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=ka(r);if(!o)throw Error(R(90));Dp(r),Ql(r,o)}}}break;case"textarea":$p(e,n);break;case"select":t=n.value,t!=null&&Gr(e,!!n.multiple,t,!1)}};Zp=Hu;qp=Cr;var U1={usingClientEntryPoint:!1,Events:[$s,Vr,ka,Hp,Wp,Hu]},Mo={findFiberByHostInstance:dr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},H1={bundleType:Mo.bundleType,version:Mo.version,rendererPackageName:Mo.rendererPackageName,rendererConfig:Mo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Cn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Qp(e),e===null?null:e.stateNode},findFiberByHostInstance:Mo.findFiberByHostInstance||V1,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 ci=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ci.isDisabled&&ci.supportsFiber)try{wa=ci.inject(H1),Kt=ci}catch{}}vt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U1;vt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Yu(t))throw Error(R(200));return F1(e,t,null,n)};vt.createRoot=function(e,t){if(!Yu(e))throw Error(R(299));var n=!1,r="",o=Th;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Ku(e,1,!1,null,null,n,!1,r,o),e[hn]=t.current,cs(e.nodeType===8?e.parentNode:e),new Qu(t)};vt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=Qp(t),e=e===null?null:e.stateNode,e};vt.flushSync=function(e){return Cr(e)};vt.hydrate=function(e,t,n){if(!Oa(t))throw Error(R(200));return Ma(null,e,t,!0,n)};vt.hydrateRoot=function(e,t,n){if(!Yu(e))throw Error(R(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",i=Th;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Nh(t,null,e,1,n??null,o,!1,s,i),e[hn]=t.current,cs(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Ia(t)};vt.render=function(e,t,n){if(!Oa(t))throw Error(R(200));return Ma(null,e,t,!1,n)};vt.unmountComponentAtNode=function(e){if(!Oa(e))throw Error(R(40));return e._reactRootContainer?(Cr(function(){Ma(null,null,e,!1,function(){e._reactRootContainer=null,e[hn]=null})}),!0):!1};vt.unstable_batchedUpdates=Hu;vt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Oa(n))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return Ma(e,t,n,!1,r)};vt.version="18.3.1-next-f1338f8080-20240426";function Rh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Rh)}catch(e){console.error(e)}}Rh(),Rp.exports=vt;var So=Rp.exports;const W1=vp(So);var Ph,$f=So;Ph=$f.createRoot,$f.hydrateRoot;function jh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=jh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function fn(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=jh(e))&&(r&&(r+=" "),r+=t);return r}const ys=e=>typeof e=="number"&&!isNaN(e),vr=e=>typeof e=="string",ft=e=>typeof e=="function",Pi=e=>vr(e)||ft(e)?e:null,Lc=e=>h.isValidElement(e)||vr(e)||ft(e)||ys(e);function Z1(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${n}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)})})}function Aa(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:o=!0,collapseDuration:s=300}=e;return function(i){let{children:a,position:l,preventExitTransition:c,done:u,nodeRef:f,isIn:g,playToast:x}=i;const w=r?`${t}--${l}`:t,v=r?`${n}--${l}`:n,_=h.useRef(0);return h.useLayoutEffect(()=>{const m=f.current,d=w.split(" "),y=C=>{C.target===f.current&&(x(),m.removeEventListener("animationend",y),m.removeEventListener("animationcancel",y),_.current===0&&C.type!=="animationcancel"&&m.classList.remove(...d))};m.classList.add(...d),m.addEventListener("animationend",y),m.addEventListener("animationcancel",y)},[]),h.useEffect(()=>{const m=f.current,d=()=>{m.removeEventListener("animationend",d),o?Z1(m,u,s):u()};g||(c?d():(_.current=1,m.className+=` ${v}`,m.addEventListener("animationend",d)))},[g]),ne.createElement(ne.Fragment,null,a)}}function Ff(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Ye=new Map;let xs=[];const Dc=new Set,q1=e=>Dc.forEach(t=>t(e)),Ih=()=>Ye.size>0;function Oh(e,t){var n;if(t)return!((n=Ye.get(t))==null||!n.isToastActive(e));let r=!1;return Ye.forEach(o=>{o.isToastActive(e)&&(r=!0)}),r}function Mh(e,t){Lc(e)&&(Ih()||xs.push({content:e,options:t}),Ye.forEach(n=>{n.buildToast(e,t)}))}function Vf(e,t){Ye.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function K1(e){const{subscribe:t,getSnapshot:n,setProps:r}=h.useRef(function(s){const i=s.containerId||1;return{subscribe(a){const l=function(u,f,g){let x=1,w=0,v=[],_=[],m=[],d=f;const y=new Map,C=new Set,k=()=>{m=Array.from(y.values()),C.forEach(E=>E())},T=E=>{_=E==null?[]:_.filter(I=>I!==E),k()},b=E=>{const{toastId:I,onOpen:j,updateId:V,children:M}=E.props,q=V==null;E.staleId&&y.delete(E.staleId),y.set(I,E),_=[..._,E.props.toastId].filter(W=>W!==E.staleId),k(),g(Ff(E,q?"added":"updated")),q&&ft(j)&&j(h.isValidElement(M)&&M.props)};return{id:u,props:d,observe:E=>(C.add(E),()=>C.delete(E)),toggle:(E,I)=>{y.forEach(j=>{I!=null&&I!==j.props.toastId||ft(j.toggle)&&j.toggle(E)})},removeToast:T,toasts:y,clearQueue:()=>{w-=v.length,v=[]},buildToast:(E,I)=>{if((ee=>{let{containerId:he,toastId:ae,updateId:_e}=ee;const ve=he?he!==u:u!==1,B=y.has(ae)&&_e==null;return ve||B})(I))return;const{toastId:j,updateId:V,data:M,staleId:q,delay:W}=I,J=()=>{T(j)},F=V==null;F&&w++;const K={...d,style:d.toastStyle,key:x++,...Object.fromEntries(Object.entries(I).filter(ee=>{let[he,ae]=ee;return ae!=null})),toastId:j,updateId:V,data:M,closeToast:J,isIn:!1,className:Pi(I.className||d.toastClassName),bodyClassName:Pi(I.bodyClassName||d.bodyClassName),progressClassName:Pi(I.progressClassName||d.progressClassName),autoClose:!I.isLoading&&(N=I.autoClose,O=d.autoClose,N===!1||ys(N)&&N>0?N:O),deleteToast(){const ee=y.get(j),{onClose:he,children:ae}=ee.props;ft(he)&&he(h.isValidElement(ae)&&ae.props),g(Ff(ee,"removed")),y.delete(j),w--,w<0&&(w=0),v.length>0?b(v.shift()):k()}};var N,O;K.closeButton=d.closeButton,I.closeButton===!1||Lc(I.closeButton)?K.closeButton=I.closeButton:I.closeButton===!0&&(K.closeButton=!Lc(d.closeButton)||d.closeButton);let D=E;h.isValidElement(E)&&!vr(E.type)?D=h.cloneElement(E,{closeToast:J,toastProps:K,data:M}):ft(E)&&(D=E({closeToast:J,toastProps:K,data:M}));const H={content:D,props:K,staleId:q};d.limit&&d.limit>0&&w>d.limit&&F?v.push(H):ys(W)?setTimeout(()=>{b(H)},W):b(H)},setProps(E){d=E},setToggle:(E,I)=>{y.get(E).toggle=I},isToastActive:E=>_.some(I=>I===E),getSnapshot:()=>m}}(i,s,q1);Ye.set(i,l);const c=l.observe(a);return xs.forEach(u=>Mh(u.content,u.options)),xs=[],()=>{c(),Ye.delete(i)}},setProps(a){var l;(l=Ye.get(i))==null||l.setProps(a)},getSnapshot(){var a;return(a=Ye.get(i))==null?void 0:a.getSnapshot()}}}(e)).current;r(e);const o=h.useSyncExternalStore(t,n,n);return{getToastToRender:function(s){if(!o)return[];const i=new Map;return e.newestOnTop&&o.reverse(),o.forEach(a=>{const{position:l}=a.props;i.has(l)||i.set(l,[]),i.get(l).push(a)}),Array.from(i,a=>s(a[0],a[1]))},isToastActive:Oh,count:o==null?void 0:o.length}}function G1(e){const[t,n]=h.useState(!1),[r,o]=h.useState(!1),s=h.useRef(null),i=h.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:a,pauseOnHover:l,closeToast:c,onClick:u,closeOnClick:f}=e;var g,x;function w(){n(!0)}function v(){n(!1)}function _(y){const C=s.current;i.canDrag&&C&&(i.didMove=!0,t&&v(),i.delta=e.draggableDirection==="x"?y.clientX-i.start:y.clientY-i.start,i.start!==y.clientX&&(i.canCloseOnClick=!1),C.style.transform=`translate3d(${e.draggableDirection==="x"?`${i.delta}px, var(--y)`:`0, calc(${i.delta}px + var(--y))`},0)`,C.style.opacity=""+(1-Math.abs(i.delta/i.removalDistance)))}function m(){document.removeEventListener("pointermove",_),document.removeEventListener("pointerup",m);const y=s.current;if(i.canDrag&&i.didMove&&y){if(i.canDrag=!1,Math.abs(i.delta)>i.removalDistance)return o(!0),e.closeToast(),void e.collapseAll();y.style.transition="transform 0.2s, opacity 0.2s",y.style.removeProperty("transform"),y.style.removeProperty("opacity")}}(x=Ye.get((g={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||x.setToggle(g.id,g.fn),h.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||v(),window.addEventListener("focus",w),window.addEventListener("blur",v),()=>{window.removeEventListener("focus",w),window.removeEventListener("blur",v)}},[e.pauseOnFocusLoss]);const d={onPointerDown:function(y){if(e.draggable===!0||e.draggable===y.pointerType){i.didMove=!1,document.addEventListener("pointermove",_),document.addEventListener("pointerup",m);const C=s.current;i.canCloseOnClick=!0,i.canDrag=!0,C.style.transition="none",e.draggableDirection==="x"?(i.start=y.clientX,i.removalDistance=C.offsetWidth*(e.draggablePercent/100)):(i.start=y.clientY,i.removalDistance=C.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(y){const{top:C,bottom:k,left:T,right:b}=s.current.getBoundingClientRect();y.nativeEvent.type!=="touchend"&&e.pauseOnHover&&y.clientX>=T&&y.clientX<=b&&y.clientY>=C&&y.clientY<=k?v():w()}};return a&&l&&(d.onMouseEnter=v,e.stacked||(d.onMouseLeave=w)),f&&(d.onClick=y=>{u&&u(y),i.canCloseOnClick&&c()}),{playToast:w,pauseToast:v,isRunning:t,preventExitTransition:r,toastRef:s,eventHandlers:d}}function Q1(e){let{delay:t,isRunning:n,closeToast:r,type:o="default",hide:s,className:i,style:a,controlledProgress:l,progress:c,rtl:u,isIn:f,theme:g}=e;const x=s||l&&c===0,w={...a,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};l&&(w.transform=`scaleX(${c})`);const v=fn("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${g}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":u}),_=ft(i)?i({rtl:u,type:o,defaultClassName:v}):fn(v,i),m={[l&&c>=1?"onTransitionEnd":"onAnimationEnd"]:l&&c<1?null:()=>{f&&r()}};return ne.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":x},ne.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${g} Toastify__progress-bar--${o}`}),ne.createElement("div",{role:"progressbar","aria-hidden":x?"true":"false","aria-label":"notification timer",className:_,style:w,...m}))}let Y1=1;const Ah=()=>""+Y1++;function X1(e){return e&&(vr(e.toastId)||ys(e.toastId))?e.toastId:Ah()}function Jo(e,t){return Mh(e,t),t.toastId}function oa(e,t){return{...t,type:t&&t.type||e,toastId:X1(t)}}function ui(e){return(t,n)=>Jo(t,oa(e,n))}function pe(e,t){return Jo(e,oa("default",t))}pe.loading=(e,t)=>Jo(e,oa("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),pe.promise=function(e,t,n){let r,{pending:o,error:s,success:i}=t;o&&(r=vr(o)?pe.loading(o,n):pe.loading(o.render,{...n,...o}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(u,f,g)=>{if(f==null)return void pe.dismiss(r);const x={type:u,...a,...n,data:g},w=vr(f)?{render:f}:f;return r?pe.update(r,{...x,...w}):pe(w.render,{...x,...w}),g},c=ft(e)?e():e;return c.then(u=>l("success",i,u)).catch(u=>l("error",s,u)),c},pe.success=ui("success"),pe.info=ui("info"),pe.error=ui("error"),pe.warning=ui("warning"),pe.warn=pe.warning,pe.dark=(e,t)=>Jo(e,oa("default",{theme:"dark",...t})),pe.dismiss=function(e){(function(t){var n;if(Ih()){if(t==null||vr(n=t)||ys(n))Ye.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=Ye.get(t.containerId);r?r.removeToast(t.id):Ye.forEach(o=>{o.removeToast(t.id)})}}else xs=xs.filter(r=>t!=null&&r.options.toastId!==t)})(e)},pe.clearWaitingQueue=function(e){e===void 0&&(e={}),Ye.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},pe.isActive=Oh,pe.update=function(e,t){t===void 0&&(t={});const n=((r,o)=>{var s;let{containerId:i}=o;return(s=Ye.get(i||1))==null?void 0:s.toasts.get(r)})(e,t);if(n){const{props:r,content:o}=n,s={delay:100,...r,...t,toastId:t.toastId||e,updateId:Ah()};s.toastId!==e&&(s.staleId=e);const i=s.render||o;delete s.render,Jo(i,s)}},pe.done=e=>{pe.update(e,{progress:1})},pe.onChange=function(e){return Dc.add(e),()=>{Dc.delete(e)}},pe.play=e=>Vf(!0,e),pe.pause=e=>Vf(!1,e);const J1=typeof window<"u"?h.useLayoutEffect:h.useEffect,di=e=>{let{theme:t,type:n,isLoading:r,...o}=e;return ne.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...o})},Pl={info:function(e){return ne.createElement(di,{...e},ne.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return ne.createElement(di,{...e},ne.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return ne.createElement(di,{...e},ne.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return ne.createElement(di,{...e},ne.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return ne.createElement("div",{className:"Toastify__spinner"})}},ex=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:o,playToast:s}=G1(e),{closeButton:i,children:a,autoClose:l,onClick:c,type:u,hideProgressBar:f,closeToast:g,transition:x,position:w,className:v,style:_,bodyClassName:m,bodyStyle:d,progressClassName:y,progressStyle:C,updateId:k,role:T,progress:b,rtl:E,toastId:I,deleteToast:j,isIn:V,isLoading:M,closeOnClick:q,theme:W}=e,J=fn("Toastify__toast",`Toastify__toast-theme--${W}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":E},{"Toastify__toast--close-on-click":q}),F=ft(v)?v({rtl:E,position:w,type:u,defaultClassName:J}):fn(J,v),K=function(H){let{theme:ee,type:he,isLoading:ae,icon:_e}=H,ve=null;const B={theme:ee,type:he};return _e===!1||(ft(_e)?ve=_e({...B,isLoading:ae}):h.isValidElement(_e)?ve=h.cloneElement(_e,B):ae?ve=Pl.spinner():(ce=>ce in Pl)(he)&&(ve=Pl[he](B))),ve}(e),N=!!b||!l,O={closeToast:g,type:u,theme:W};let D=null;return i===!1||(D=ft(i)?i(O):h.isValidElement(i)?h.cloneElement(i,O):function(H){let{closeToast:ee,theme:he,ariaLabel:ae="close"}=H;return ne.createElement("button",{className:`Toastify__close-button Toastify__close-button--${he}`,type:"button",onClick:_e=>{_e.stopPropagation(),ee(_e)},"aria-label":ae},ne.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},ne.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(O)),ne.createElement(x,{isIn:V,done:j,position:w,preventExitTransition:n,nodeRef:r,playToast:s},ne.createElement("div",{id:I,onClick:c,"data-in":V,className:F,...o,style:_,ref:r},ne.createElement("div",{...V&&{role:T},className:ft(m)?m({type:u}):fn("Toastify__toast-body",m),style:d},K!=null&&ne.createElement("div",{className:fn("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!M})},K),ne.createElement("div",null,a)),D,ne.createElement(Q1,{...k&&!N?{key:`pb-${k}`}:{},rtl:E,theme:W,delay:l,isRunning:t,isIn:V,closeToast:g,hide:f,type:u,style:C,className:y,controlledProgress:N,progress:b||0})))},La=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},tx=Aa(La("bounce",!0));Aa(La("slide",!0));Aa(La("zoom"));Aa(La("flip"));const nx={position:"top-right",transition:tx,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function rx(e){let t={...nx,...e};const n=e.stacked,[r,o]=h.useState(!0),s=h.useRef(null),{getToastToRender:i,isToastActive:a,count:l}=K1(t),{className:c,style:u,rtl:f,containerId:g}=t;function x(v){const _=fn("Toastify__toast-container",`Toastify__toast-container--${v}`,{"Toastify__toast-container--rtl":f});return ft(c)?c({position:v,rtl:f,defaultClassName:_}):fn(_,Pi(c))}function w(){n&&(o(!0),pe.play())}return J1(()=>{if(n){var v;const _=s.current.querySelectorAll('[data-in="true"]'),m=12,d=(v=t.position)==null?void 0:v.includes("top");let y=0,C=0;Array.from(_).reverse().forEach((k,T)=>{const b=k;b.classList.add("Toastify__toast--stacked"),T>0&&(b.dataset.collapsed=`${r}`),b.dataset.pos||(b.dataset.pos=d?"top":"bot");const E=y*(r?.2:1)+(r?0:m*T);b.style.setProperty("--y",`${d?E:-1*E}px`),b.style.setProperty("--g",`${m}`),b.style.setProperty("--s",""+(1-(r?C:0))),y+=b.offsetHeight,C+=.025})}},[r,l,n]),ne.createElement("div",{ref:s,className:"Toastify",id:g,onMouseEnter:()=>{n&&(o(!1),pe.pause())},onMouseLeave:w},i((v,_)=>{const m=_.length?{...u}:{...u,pointerEvents:"none"};return ne.createElement("div",{className:x(v),style:m,key:`container-${v}`},_.map(d=>{let{content:y,props:C}=d;return ne.createElement(ex,{...C,stacked:n,collapseAll:w,isIn:a(C.toastId,C.containerId),style:C.style,key:`toast-${C.key}`},y)}))}))}var oe;(function(e){e.assertEqual=o=>o;function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{const s={};for(const i of o)s[i]=i;return s},e.getValidEnumValues=o=>{const s=e.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),i={};for(const a of s)i[a]=o[a];return e.objectValues(i)},e.objectValues=o=>e.objectKeys(o).map(function(s){return o[s]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const s=[];for(const i in o)Object.prototype.hasOwnProperty.call(o,i)&&s.push(i);return s},e.find=(o,s)=>{for(const i of o)if(s(i))return i},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&isFinite(o)&&Math.floor(o)===o;function r(o,s=" | "){return o.map(i=>typeof i=="string"?`'${i}'`:i).join(s)}e.joinValues=r,e.jsonStringifyReplacer=(o,s)=>typeof s=="bigint"?s.toString():s})(oe||(oe={}));var zc;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(zc||(zc={}));const L=oe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),On=e=>{switch(typeof e){case"undefined":return L.undefined;case"string":return L.string;case"number":return isNaN(e)?L.nan:L.number;case"boolean":return L.boolean;case"function":return L.function;case"bigint":return L.bigint;case"symbol":return L.symbol;case"object":return Array.isArray(e)?L.array:e===null?L.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?L.promise:typeof Map<"u"&&e instanceof Map?L.map:typeof Set<"u"&&e instanceof Set?L.set:typeof Date<"u"&&e instanceof Date?L.date:L.object;default:return L.unknown}},P=oe.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"]),ox=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class mt extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(s){return s.message},r={_errors:[]},o=s=>{for(const i of s.issues)if(i.code==="invalid_union")i.unionErrors.map(o);else if(i.code==="invalid_return_type")o(i.returnTypeError);else if(i.code==="invalid_arguments")o(i.argumentsError);else if(i.path.length===0)r._errors.push(n(i));else{let a=r,l=0;for(;l<i.path.length;){const c=i.path[l];l===i.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(n(i))):a[c]=a[c]||{_errors:[]},a=a[c],l++}}};return o(this),r}static assert(t){if(!(t instanceof mt))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,oe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const o of this.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}mt.create=e=>new mt(e);const po=(e,t)=>{let n;switch(e.code){case P.invalid_type:e.received===L.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case P.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,oe.jsonStringifyReplacer)}`;break;case P.unrecognized_keys:n=`Unrecognized key(s) in object: ${oe.joinValues(e.keys,", ")}`;break;case P.invalid_union:n="Invalid input";break;case P.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${oe.joinValues(e.options)}`;break;case P.invalid_enum_value:n=`Invalid enum value. Expected ${oe.joinValues(e.options)}, received '${e.received}'`;break;case P.invalid_arguments:n="Invalid function arguments";break;case P.invalid_return_type:n="Invalid function return type";break;case P.invalid_date:n="Invalid date";break;case P.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}"`:oe.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case P.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==="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 P.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 P.custom:n="Invalid input";break;case P.invalid_intersection_types:n="Intersection results could not be merged";break;case P.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case P.not_finite:n="Number must be finite";break;default:n=t.defaultError,oe.assertNever(e)}return{message:n}};let Lh=po;function sx(e){Lh=e}function sa(){return Lh}const ia=e=>{const{data:t,path:n,errorMaps:r,issueData:o}=e,s=[...n,...o.path||[]],i={...o,path:s};if(o.message!==void 0)return{...o,path:s,message:o.message};let a="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)a=c(i,{data:t,defaultError:a}).message;return{...o,path:s,message:a}},ix=[];function A(e,t){const n=sa(),r=ia({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===po?void 0:po].filter(o=>!!o)});e.common.issues.push(r)}class Ke{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const o of n){if(o.status==="aborted")return G;o.status==="dirty"&&t.dirty(),r.push(o.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const o of n){const s=await o.key,i=await o.value;r.push({key:s,value:i})}return Ke.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const o of n){const{key:s,value:i}=o;if(s.status==="aborted"||i.status==="aborted")return G;s.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof i.value<"u"||o.alwaysSet)&&(r[s.value]=i.value)}return{status:t.value,value:r}}}const G=Object.freeze({status:"aborted"}),Kr=e=>({status:"dirty",value:e}),Je=e=>({status:"valid",value:e}),$c=e=>e.status==="aborted",Fc=e=>e.status==="dirty",ws=e=>e.status==="valid",Ss=e=>typeof Promise<"u"&&e instanceof Promise;function aa(e,t,n,r){if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function Dh(e,t,n,r,o){if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var U;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(U||(U={}));var Vo,Bo;class Yt{constructor(t,n,r,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=o}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Bf=(e,t)=>{if(ws(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 mt(e.common.issues);return this._error=n,this._error}}};function Q(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))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:(i,a)=>{var l,c;const{message:u}=e;return i.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:(l=u??r)!==null&&l!==void 0?l:a.defaultError}:i.code!=="invalid_type"?{message:a.defaultError}:{message:(c=u??n)!==null&&c!==void 0?c:a.defaultError}},description:o}}class X{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)}get description(){return this._def.description}_getType(t){return On(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:On(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Ke,ctx:{common:t.parent.common,data:t.data,parsedType:On(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Ss(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 r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const o={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:On(t)},s=this._parseSync({data:t,path:o.path,parent:o});return Bf(o,s)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={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:On(t)},o=this._parse({data:t,path:r.path,parent:r}),s=await(Ss(o)?o:Promise.resolve(o));return Bf(r,s)}refine(t,n){const r=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,s)=>{const i=t(o),a=()=>s.addIssue({code:P.custom,...r(o)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,o)=>t(r)?!0:(o.addIssue(typeof n=="function"?n(r,o):n),!1))}_refinement(t){return new zt({schema:this,typeName:Z.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Qt.create(this,this._def)}nullable(){return Gn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Lt.create(this,this._def)}promise(){return ho.create(this,this._def)}or(t){return Es.create([this,t],this._def)}and(t){return bs.create(this,t,this._def)}transform(t){return new zt({...Q(this._def),schema:this,typeName:Z.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new js({...Q(this._def),innerType:this,defaultValue:n,typeName:Z.ZodDefault})}brand(){return new Xu({typeName:Z.ZodBranded,type:this,...Q(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Is({...Q(this._def),innerType:this,catchValue:n,typeName:Z.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Vs.create(this,t)}readonly(){return Os.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const ax=/^c[^\s-]{8,}$/i,lx=/^[0-9a-z]+$/,cx=/^[0-9A-HJKMNP-TV-Z]{26}$/,ux=/^[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,dx=/^[a-z0-9_-]{21}$/i,fx=/^[-+]?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)?)??$/,px=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,mx="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let jl;const hx=/^(?:(?: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])$/,gx=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,vx=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,zh="((\\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])))",yx=new RegExp(`^${zh}$`);function $h(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function xx(e){return new RegExp(`^${$h(e)}$`)}function Fh(e){let t=`${zh}T${$h(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 wx(e,t){return!!((t==="v4"||!t)&&hx.test(e)||(t==="v6"||!t)&&gx.test(e))}class Ot extends X{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==L.string){const s=this._getOrReturnCtx(t);return A(s,{code:P.invalid_type,expected:L.string,received:s.parsedType}),G}const r=new Ke;let o;for(const s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(o=this._getOrReturnCtx(t,o),A(o,{code:P.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="max")t.data.length>s.value&&(o=this._getOrReturnCtx(t,o),A(o,{code:P.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="length"){const i=t.data.length>s.value,a=t.data.length<s.value;(i||a)&&(o=this._getOrReturnCtx(t,o),i?A(o,{code:P.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&A(o,{code:P.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),r.dirty())}else if(s.kind==="email")px.test(t.data)||(o=this._getOrReturnCtx(t,o),A(o,{validation:"email",code:P.invalid_string,message:s.message}),r.dirty());else if(s.kind==="emoji")jl||(jl=new RegExp(mx,"u")),jl.test(t.data)||(o=this._getOrReturnCtx(t,o),A(o,{validation:"emoji",code:P.invalid_string,message:s.message}),r.dirty());else if(s.kind==="uuid")ux.test(t.data)||(o=this._getOrReturnCtx(t,o),A(o,{validation:"uuid",code:P.invalid_string,message:s.message}),r.dirty());else if(s.kind==="nanoid")dx.test(t.data)||(o=this._getOrReturnCtx(t,o),A(o,{validation:"nanoid",code:P.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid")ax.test(t.data)||(o=this._getOrReturnCtx(t,o),A(o,{validation:"cuid",code:P.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid2")lx.test(t.data)||(o=this._getOrReturnCtx(t,o),A(o,{validation:"cuid2",code:P.invalid_string,message:s.message}),r.dirty());else if(s.kind==="ulid")cx.test(t.data)||(o=this._getOrReturnCtx(t,o),A(o,{validation:"ulid",code:P.invalid_string,message:s.message}),r.dirty());else if(s.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),A(o,{validation:"url",code:P.invalid_string,message:s.message}),r.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),A(o,{validation:"regex",code:P.invalid_string,message:s.message}),r.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(o=this._getOrReturnCtx(t,o),A(o,{code:P.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),r.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(o=this._getOrReturnCtx(t,o),A(o,{code:P.invalid_string,validation:{startsWith:s.value},message:s.message}),r.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(o=this._getOrReturnCtx(t,o),A(o,{code:P.invalid_string,validation:{endsWith:s.value},message:s.message}),r.dirty()):s.kind==="datetime"?Fh(s).test(t.data)||(o=this._getOrReturnCtx(t,o),A(o,{code:P.invalid_string,validation:"datetime",message:s.message}),r.dirty()):s.kind==="date"?yx.test(t.data)||(o=this._getOrReturnCtx(t,o),A(o,{code:P.invalid_string,validation:"date",message:s.message}),r.dirty()):s.kind==="time"?xx(s).test(t.data)||(o=this._getOrReturnCtx(t,o),A(o,{code:P.invalid_string,validation:"time",message:s.message}),r.dirty()):s.kind==="duration"?fx.test(t.data)||(o=this._getOrReturnCtx(t,o),A(o,{validation:"duration",code:P.invalid_string,message:s.message}),r.dirty()):s.kind==="ip"?wx(t.data,s.version)||(o=this._getOrReturnCtx(t,o),A(o,{validation:"ip",code:P.invalid_string,message:s.message}),r.dirty()):s.kind==="base64"?vx.test(t.data)||(o=this._getOrReturnCtx(t,o),A(o,{validation:"base64",code:P.invalid_string,message:s.message}),r.dirty()):oe.assertNever(s);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(o=>t.test(o),{validation:n,code:P.invalid_string,...U.errToObj(r)})}_addCheck(t){return new Ot({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...U.errToObj(t)})}url(t){return this._addCheck({kind:"url",...U.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...U.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...U.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...U.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...U.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...U.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...U.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...U.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...U.errToObj(t)})}datetime(t){var n,r;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:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...U.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,...U.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...U.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...U.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...U.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...U.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...U.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...U.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...U.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...U.errToObj(n)})}nonempty(t){return this.min(1,U.errToObj(t))}trim(){return new Ot({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ot({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ot({...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 isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}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}}Ot.create=e=>{var t;return new Ot({checks:[],typeName:Z.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Q(e)})};function Sx(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r,s=parseInt(e.toFixed(o).replace(".","")),i=parseInt(t.toFixed(o).replace(".",""));return s%i/Math.pow(10,o)}class Zn extends X{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)!==L.number){const s=this._getOrReturnCtx(t);return A(s,{code:P.invalid_type,expected:L.number,received:s.parsedType}),G}let r;const o=new Ke;for(const s of this._def.checks)s.kind==="int"?oe.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),A(r,{code:P.invalid_type,expected:"integer",received:"float",message:s.message}),o.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(r=this._getOrReturnCtx(t,r),A(r,{code:P.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),A(r,{code:P.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="multipleOf"?Sx(t.data,s.value)!==0&&(r=this._getOrReturnCtx(t,r),A(r,{code:P.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),A(r,{code:P.not_finite,message:s.message}),o.dirty()):oe.assertNever(s);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,U.toString(n))}gt(t,n){return this.setLimit("min",t,!1,U.toString(n))}lte(t,n){return this.setLimit("max",t,!0,U.toString(n))}lt(t,n){return this.setLimit("max",t,!1,U.toString(n))}setLimit(t,n,r,o){return new Zn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:U.toString(o)}]})}_addCheck(t){return new Zn({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:U.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:U.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:U.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:U.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:U.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:U.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:U.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:U.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:U.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"&&oe.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Zn.create=e=>new Zn({checks:[],typeName:Z.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Q(e)});class qn extends X{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==L.bigint){const s=this._getOrReturnCtx(t);return A(s,{code:P.invalid_type,expected:L.bigint,received:s.parsedType}),G}let r;const o=new Ke;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(r=this._getOrReturnCtx(t,r),A(r,{code:P.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),A(r,{code:P.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),A(r,{code:P.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):oe.assertNever(s);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,U.toString(n))}gt(t,n){return this.setLimit("min",t,!1,U.toString(n))}lte(t,n){return this.setLimit("max",t,!0,U.toString(n))}lt(t,n){return this.setLimit("max",t,!1,U.toString(n))}setLimit(t,n,r,o){return new qn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:U.toString(o)}]})}_addCheck(t){return new qn({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:U.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:U.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:U.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:U.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:U.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}}qn.create=e=>{var t;return new qn({checks:[],typeName:Z.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Q(e)})};class _s extends X{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==L.boolean){const r=this._getOrReturnCtx(t);return A(r,{code:P.invalid_type,expected:L.boolean,received:r.parsedType}),G}return Je(t.data)}}_s.create=e=>new _s({typeName:Z.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Q(e)});class kr extends X{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==L.date){const s=this._getOrReturnCtx(t);return A(s,{code:P.invalid_type,expected:L.date,received:s.parsedType}),G}if(isNaN(t.data.getTime())){const s=this._getOrReturnCtx(t);return A(s,{code:P.invalid_date}),G}const r=new Ke;let o;for(const s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(o=this._getOrReturnCtx(t,o),A(o,{code:P.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),r.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(o=this._getOrReturnCtx(t,o),A(o,{code:P.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),r.dirty()):oe.assertNever(s);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new kr({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:U.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:U.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}}kr.create=e=>new kr({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Z.ZodDate,...Q(e)});class la extends X{_parse(t){if(this._getType(t)!==L.symbol){const r=this._getOrReturnCtx(t);return A(r,{code:P.invalid_type,expected:L.symbol,received:r.parsedType}),G}return Je(t.data)}}la.create=e=>new la({typeName:Z.ZodSymbol,...Q(e)});class Cs extends X{_parse(t){if(this._getType(t)!==L.undefined){const r=this._getOrReturnCtx(t);return A(r,{code:P.invalid_type,expected:L.undefined,received:r.parsedType}),G}return Je(t.data)}}Cs.create=e=>new Cs({typeName:Z.ZodUndefined,...Q(e)});class ks extends X{_parse(t){if(this._getType(t)!==L.null){const r=this._getOrReturnCtx(t);return A(r,{code:P.invalid_type,expected:L.null,received:r.parsedType}),G}return Je(t.data)}}ks.create=e=>new ks({typeName:Z.ZodNull,...Q(e)});class mo extends X{constructor(){super(...arguments),this._any=!0}_parse(t){return Je(t.data)}}mo.create=e=>new mo({typeName:Z.ZodAny,...Q(e)});class yr extends X{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Je(t.data)}}yr.create=e=>new yr({typeName:Z.ZodUnknown,...Q(e)});class yn extends X{_parse(t){const n=this._getOrReturnCtx(t);return A(n,{code:P.invalid_type,expected:L.never,received:n.parsedType}),G}}yn.create=e=>new yn({typeName:Z.ZodNever,...Q(e)});class ca extends X{_parse(t){if(this._getType(t)!==L.undefined){const r=this._getOrReturnCtx(t);return A(r,{code:P.invalid_type,expected:L.void,received:r.parsedType}),G}return Je(t.data)}}ca.create=e=>new ca({typeName:Z.ZodVoid,...Q(e)});class Lt extends X{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),o=this._def;if(n.parsedType!==L.array)return A(n,{code:P.invalid_type,expected:L.array,received:n.parsedType}),G;if(o.exactLength!==null){const i=n.data.length>o.exactLength.value,a=n.data.length<o.exactLength.value;(i||a)&&(A(n,{code:i?P.too_big:P.too_small,minimum:a?o.exactLength.value:void 0,maximum:i?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),r.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(A(n,{code:P.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),r.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(A(n,{code:P.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,a)=>o.type._parseAsync(new Yt(n,i,n.path,a)))).then(i=>Ke.mergeArray(r,i));const s=[...n.data].map((i,a)=>o.type._parseSync(new Yt(n,i,n.path,a)));return Ke.mergeArray(r,s)}get element(){return this._def.type}min(t,n){return new Lt({...this._def,minLength:{value:t,message:U.toString(n)}})}max(t,n){return new Lt({...this._def,maxLength:{value:t,message:U.toString(n)}})}length(t,n){return new Lt({...this._def,exactLength:{value:t,message:U.toString(n)}})}nonempty(t){return this.min(1,t)}}Lt.create=(e,t)=>new Lt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Z.ZodArray,...Q(t)});function Ar(e){if(e instanceof Ce){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Qt.create(Ar(r))}return new Ce({...e._def,shape:()=>t})}else return e instanceof Lt?new Lt({...e._def,type:Ar(e.element)}):e instanceof Qt?Qt.create(Ar(e.unwrap())):e instanceof Gn?Gn.create(Ar(e.unwrap())):e instanceof Xt?Xt.create(e.items.map(t=>Ar(t))):e}class Ce extends X{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=oe.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==L.object){const c=this._getOrReturnCtx(t);return A(c,{code:P.invalid_type,expected:L.object,received:c.parsedType}),G}const{status:r,ctx:o}=this._processInputParams(t),{shape:s,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof yn&&this._def.unknownKeys==="strip"))for(const c in o.data)i.includes(c)||a.push(c);const l=[];for(const c of i){const u=s[c],f=o.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new Yt(o,f,o.path,c)),alwaysSet:c in o.data})}if(this._def.catchall instanceof yn){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of a)l.push({key:{status:"valid",value:u},value:{status:"valid",value:o.data[u]}});else if(c==="strict")a.length>0&&(A(o,{code:P.unrecognized_keys,keys:a}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of a){const f=o.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new Yt(o,f,o.path,u)),alwaysSet:u in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const f=await u.key,g=await u.value;c.push({key:f,value:g,alwaysSet:u.alwaysSet})}return c}).then(c=>Ke.mergeObjectSync(r,c)):Ke.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return U.errToObj,new Ce({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var o,s,i,a;const l=(i=(s=(o=this._def).errorMap)===null||s===void 0?void 0:s.call(o,n,r).message)!==null&&i!==void 0?i:r.defaultError;return n.code==="unrecognized_keys"?{message:(a=U.errToObj(t).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new Ce({...this._def,unknownKeys:"strip"})}passthrough(){return new Ce({...this._def,unknownKeys:"passthrough"})}extend(t){return new Ce({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Ce({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Z.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Ce({...this._def,catchall:t})}pick(t){const n={};return oe.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Ce({...this._def,shape:()=>n})}omit(t){const n={};return oe.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Ce({...this._def,shape:()=>n})}deepPartial(){return Ar(this)}partial(t){const n={};return oe.objectKeys(this.shape).forEach(r=>{const o=this.shape[r];t&&!t[r]?n[r]=o:n[r]=o.optional()}),new Ce({...this._def,shape:()=>n})}required(t){const n={};return oe.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof Qt;)s=s._def.innerType;n[r]=s}}),new Ce({...this._def,shape:()=>n})}keyof(){return Vh(oe.objectKeys(this.shape))}}Ce.create=(e,t)=>new Ce({shape:()=>e,unknownKeys:"strip",catchall:yn.create(),typeName:Z.ZodObject,...Q(t)});Ce.strictCreate=(e,t)=>new Ce({shape:()=>e,unknownKeys:"strict",catchall:yn.create(),typeName:Z.ZodObject,...Q(t)});Ce.lazycreate=(e,t)=>new Ce({shape:e,unknownKeys:"strip",catchall:yn.create(),typeName:Z.ZodObject,...Q(t)});class Es extends X{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function o(s){for(const a of s)if(a.result.status==="valid")return a.result;for(const a of s)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const i=s.map(a=>new mt(a.ctx.common.issues));return A(n,{code:P.invalid_union,unionErrors:i}),G}if(n.common.async)return Promise.all(r.map(async s=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(o);{let s;const i=[];for(const l of r){const c={...n,common:{...n.common,issues:[]},parent:null},u=l._parseSync({data:n.data,path:n.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!s&&(s={result:u,ctx:c}),c.common.issues.length&&i.push(c.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;const a=i.map(l=>new mt(l));return A(n,{code:P.invalid_union,unionErrors:a}),G}}get options(){return this._def.options}}Es.create=(e,t)=>new Es({options:e,typeName:Z.ZodUnion,...Q(t)});const sn=e=>e instanceof Ts?sn(e.schema):e instanceof zt?sn(e.innerType()):e instanceof Rs?[e.value]:e instanceof Kn?e.options:e instanceof Ps?oe.objectValues(e.enum):e instanceof js?sn(e._def.innerType):e instanceof Cs?[void 0]:e instanceof ks?[null]:e instanceof Qt?[void 0,...sn(e.unwrap())]:e instanceof Gn?[null,...sn(e.unwrap())]:e instanceof Xu||e instanceof Os?sn(e.unwrap()):e instanceof Is?sn(e._def.innerType):[];class Da extends X{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==L.object)return A(n,{code:P.invalid_type,expected:L.object,received:n.parsedType}),G;const r=this.discriminator,o=n.data[r],s=this.optionsMap.get(o);return s?n.common.async?s._parseAsync({data:n.data,path:n.path,parent:n}):s._parseSync({data:n.data,path:n.path,parent:n}):(A(n,{code:P.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),G)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const o=new Map;for(const s of n){const i=sn(s.shape[t]);if(!i.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of i){if(o.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);o.set(a,s)}}return new Da({typeName:Z.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...Q(r)})}}function Vc(e,t){const n=On(e),r=On(t);if(e===t)return{valid:!0,data:e};if(n===L.object&&r===L.object){const o=oe.objectKeys(t),s=oe.objectKeys(e).filter(a=>o.indexOf(a)!==-1),i={...e,...t};for(const a of s){const l=Vc(e[a],t[a]);if(!l.valid)return{valid:!1};i[a]=l.data}return{valid:!0,data:i}}else if(n===L.array&&r===L.array){if(e.length!==t.length)return{valid:!1};const o=[];for(let s=0;s<e.length;s++){const i=e[s],a=t[s],l=Vc(i,a);if(!l.valid)return{valid:!1};o.push(l.data)}return{valid:!0,data:o}}else return n===L.date&&r===L.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class bs extends X{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),o=(s,i)=>{if($c(s)||$c(i))return G;const a=Vc(s.value,i.value);return a.valid?((Fc(s)||Fc(i))&&n.dirty(),{status:n.value,value:a.data}):(A(r,{code:P.invalid_intersection_types}),G)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([s,i])=>o(s,i)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}bs.create=(e,t,n)=>new bs({left:e,right:t,typeName:Z.ZodIntersection,...Q(n)});class Xt extends X{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==L.array)return A(r,{code:P.invalid_type,expected:L.array,received:r.parsedType}),G;if(r.data.length<this._def.items.length)return A(r,{code:P.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),G;!this._def.rest&&r.data.length>this._def.items.length&&(A(r,{code:P.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const s=[...r.data].map((i,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new Yt(r,i,r.path,a)):null}).filter(i=>!!i);return r.common.async?Promise.all(s).then(i=>Ke.mergeArray(n,i)):Ke.mergeArray(n,s)}get items(){return this._def.items}rest(t){return new Xt({...this._def,rest:t})}}Xt.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Xt({items:e,typeName:Z.ZodTuple,rest:null,...Q(t)})};class Ns extends X{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==L.object)return A(r,{code:P.invalid_type,expected:L.object,received:r.parsedType}),G;const o=[],s=this._def.keyType,i=this._def.valueType;for(const a in r.data)o.push({key:s._parse(new Yt(r,a,r.path,a)),value:i._parse(new Yt(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?Ke.mergeObjectAsync(n,o):Ke.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof X?new Ns({keyType:t,valueType:n,typeName:Z.ZodRecord,...Q(r)}):new Ns({keyType:Ot.create(),valueType:t,typeName:Z.ZodRecord,...Q(n)})}}class ua extends X{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==L.map)return A(r,{code:P.invalid_type,expected:L.map,received:r.parsedType}),G;const o=this._def.keyType,s=this._def.valueType,i=[...r.data.entries()].map(([a,l],c)=>({key:o._parse(new Yt(r,a,r.path,[c,"key"])),value:s._parse(new Yt(r,l,r.path,[c,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of i){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return G;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of i){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return G;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}}}}ua.create=(e,t,n)=>new ua({valueType:t,keyType:e,typeName:Z.ZodMap,...Q(n)});class Er extends X{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==L.set)return A(r,{code:P.invalid_type,expected:L.set,received:r.parsedType}),G;const o=this._def;o.minSize!==null&&r.data.size<o.minSize.value&&(A(r,{code:P.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&r.data.size>o.maxSize.value&&(A(r,{code:P.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());const s=this._def.valueType;function i(l){const c=new Set;for(const u of l){if(u.status==="aborted")return G;u.status==="dirty"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}const a=[...r.data.values()].map((l,c)=>s._parse(new Yt(r,l,r.path,c)));return r.common.async?Promise.all(a).then(l=>i(l)):i(a)}min(t,n){return new Er({...this._def,minSize:{value:t,message:U.toString(n)}})}max(t,n){return new Er({...this._def,maxSize:{value:t,message:U.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Er.create=(e,t)=>new Er({valueType:e,minSize:null,maxSize:null,typeName:Z.ZodSet,...Q(t)});class to extends X{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==L.function)return A(n,{code:P.invalid_type,expected:L.function,received:n.parsedType}),G;function r(a,l){return ia({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,sa(),po].filter(c=>!!c),issueData:{code:P.invalid_arguments,argumentsError:l}})}function o(a,l){return ia({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,sa(),po].filter(c=>!!c),issueData:{code:P.invalid_return_type,returnTypeError:l}})}const s={errorMap:n.common.contextualErrorMap},i=n.data;if(this._def.returns instanceof ho){const a=this;return Je(async function(...l){const c=new mt([]),u=await a._def.args.parseAsync(l,s).catch(x=>{throw c.addIssue(r(l,x)),c}),f=await Reflect.apply(i,this,u);return await a._def.returns._def.type.parseAsync(f,s).catch(x=>{throw c.addIssue(o(f,x)),c})})}else{const a=this;return Je(function(...l){const c=a._def.args.safeParse(l,s);if(!c.success)throw new mt([r(l,c.error)]);const u=Reflect.apply(i,this,c.data),f=a._def.returns.safeParse(u,s);if(!f.success)throw new mt([o(u,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new to({...this._def,args:Xt.create(t).rest(yr.create())})}returns(t){return new to({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new to({args:t||Xt.create([]).rest(yr.create()),returns:n||yr.create(),typeName:Z.ZodFunction,...Q(r)})}}class Ts extends X{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})}}Ts.create=(e,t)=>new Ts({getter:e,typeName:Z.ZodLazy,...Q(t)});class Rs extends X{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return A(n,{received:n.data,code:P.invalid_literal,expected:this._def.value}),G}return{status:"valid",value:t.data}}get value(){return this._def.value}}Rs.create=(e,t)=>new Rs({value:e,typeName:Z.ZodLiteral,...Q(t)});function Vh(e,t){return new Kn({values:e,typeName:Z.ZodEnum,...Q(t)})}class Kn extends X{constructor(){super(...arguments),Vo.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return A(n,{expected:oe.joinValues(r),received:n.parsedType,code:P.invalid_type}),G}if(aa(this,Vo)||Dh(this,Vo,new Set(this._def.values)),!aa(this,Vo).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return A(n,{received:n.data,code:P.invalid_enum_value,options:r}),G}return Je(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 Kn.create(t,{...this._def,...n})}exclude(t,n=this._def){return Kn.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Vo=new WeakMap;Kn.create=Vh;class Ps extends X{constructor(){super(...arguments),Bo.set(this,void 0)}_parse(t){const n=oe.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==L.string&&r.parsedType!==L.number){const o=oe.objectValues(n);return A(r,{expected:oe.joinValues(o),received:r.parsedType,code:P.invalid_type}),G}if(aa(this,Bo)||Dh(this,Bo,new Set(oe.getValidEnumValues(this._def.values))),!aa(this,Bo).has(t.data)){const o=oe.objectValues(n);return A(r,{received:r.data,code:P.invalid_enum_value,options:o}),G}return Je(t.data)}get enum(){return this._def.values}}Bo=new WeakMap;Ps.create=(e,t)=>new Ps({values:e,typeName:Z.ZodNativeEnum,...Q(t)});class ho extends X{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==L.promise&&n.common.async===!1)return A(n,{code:P.invalid_type,expected:L.promise,received:n.parsedType}),G;const r=n.parsedType===L.promise?n.data:Promise.resolve(n.data);return Je(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}}ho.create=(e,t)=>new ho({type:e,typeName:Z.ZodPromise,...Q(t)});class zt extends X{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Z.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),o=this._def.effect||null,s={addIssue:i=>{A(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),o.type==="preprocess"){const i=o.transform(r.data,s);if(r.common.async)return Promise.resolve(i).then(async a=>{if(n.value==="aborted")return G;const l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?G:l.status==="dirty"||n.value==="dirty"?Kr(l.value):l});{if(n.value==="aborted")return G;const a=this._def.schema._parseSync({data:i,path:r.path,parent:r});return a.status==="aborted"?G:a.status==="dirty"||n.value==="dirty"?Kr(a.value):a}}if(o.type==="refinement"){const i=a=>{const l=o.refinement(a,s);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?G:(a.status==="dirty"&&n.dirty(),i(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?G:(a.status==="dirty"&&n.dirty(),i(a.value).then(()=>({status:n.value,value:a.value}))))}if(o.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!ws(i))return i;const a=o.transform(i.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>ws(i)?Promise.resolve(o.transform(i.value,s)).then(a=>({status:n.value,value:a})):i);oe.assertNever(o)}}zt.create=(e,t,n)=>new zt({schema:e,typeName:Z.ZodEffects,effect:t,...Q(n)});zt.createWithPreprocess=(e,t,n)=>new zt({schema:t,effect:{type:"preprocess",transform:e},typeName:Z.ZodEffects,...Q(n)});class Qt extends X{_parse(t){return this._getType(t)===L.undefined?Je(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Qt.create=(e,t)=>new Qt({innerType:e,typeName:Z.ZodOptional,...Q(t)});class Gn extends X{_parse(t){return this._getType(t)===L.null?Je(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Gn.create=(e,t)=>new Gn({innerType:e,typeName:Z.ZodNullable,...Q(t)});class js extends X{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===L.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}js.create=(e,t)=>new js({innerType:e,typeName:Z.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Q(t)});class Is extends X{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Ss(o)?o.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new mt(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new mt(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Is.create=(e,t)=>new Is({innerType:e,typeName:Z.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Q(t)});class da extends X{_parse(t){if(this._getType(t)!==L.nan){const r=this._getOrReturnCtx(t);return A(r,{code:P.invalid_type,expected:L.nan,received:r.parsedType}),G}return{status:"valid",value:t.data}}}da.create=e=>new da({typeName:Z.ZodNaN,...Q(e)});const _x=Symbol("zod_brand");class Xu extends X{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Vs extends X{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?G:s.status==="dirty"?(n.dirty(),Kr(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{const o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?G:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(t,n){return new Vs({in:t,out:n,typeName:Z.ZodPipeline})}}class Os extends X{_parse(t){const n=this._def.innerType._parse(t),r=o=>(ws(o)&&(o.value=Object.freeze(o.value)),o);return Ss(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}}Os.create=(e,t)=>new Os({innerType:e,typeName:Z.ZodReadonly,...Q(t)});function Bh(e,t={},n){return e?mo.create().superRefine((r,o)=>{var s,i;if(!e(r)){const a=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,l=(i=(s=a.fatal)!==null&&s!==void 0?s:n)!==null&&i!==void 0?i:!0,c=typeof a=="string"?{message:a}:a;o.addIssue({code:"custom",...c,fatal:l})}}):mo.create()}const Cx={object:Ce.lazycreate};var Z;(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"})(Z||(Z={}));const kx=(e,t={message:`Input not instance of ${e.name}`})=>Bh(n=>n instanceof e,t),Uh=Ot.create,Hh=Zn.create,Ex=da.create,bx=qn.create,Wh=_s.create,Nx=kr.create,Tx=la.create,Rx=Cs.create,Px=ks.create,jx=mo.create,Ix=yr.create,Ox=yn.create,Mx=ca.create,Ax=Lt.create,Lx=Ce.create,Dx=Ce.strictCreate,zx=Es.create,$x=Da.create,Fx=bs.create,Vx=Xt.create,Bx=Ns.create,Ux=ua.create,Hx=Er.create,Wx=to.create,Zx=Ts.create,qx=Rs.create,Kx=Kn.create,Gx=Ps.create,Qx=ho.create,Uf=zt.create,Yx=Qt.create,Xx=Gn.create,Jx=zt.createWithPreprocess,ew=Vs.create,tw=()=>Uh().optional(),nw=()=>Hh().optional(),rw=()=>Wh().optional(),ow={string:e=>Ot.create({...e,coerce:!0}),number:e=>Zn.create({...e,coerce:!0}),boolean:e=>_s.create({...e,coerce:!0}),bigint:e=>qn.create({...e,coerce:!0}),date:e=>kr.create({...e,coerce:!0})},sw=G;var S=Object.freeze({__proto__:null,defaultErrorMap:po,setErrorMap:sx,getErrorMap:sa,makeIssue:ia,EMPTY_PATH:ix,addIssueToContext:A,ParseStatus:Ke,INVALID:G,DIRTY:Kr,OK:Je,isAborted:$c,isDirty:Fc,isValid:ws,isAsync:Ss,get util(){return oe},get objectUtil(){return zc},ZodParsedType:L,getParsedType:On,ZodType:X,datetimeRegex:Fh,ZodString:Ot,ZodNumber:Zn,ZodBigInt:qn,ZodBoolean:_s,ZodDate:kr,ZodSymbol:la,ZodUndefined:Cs,ZodNull:ks,ZodAny:mo,ZodUnknown:yr,ZodNever:yn,ZodVoid:ca,ZodArray:Lt,ZodObject:Ce,ZodUnion:Es,ZodDiscriminatedUnion:Da,ZodIntersection:bs,ZodTuple:Xt,ZodRecord:Ns,ZodMap:ua,ZodSet:Er,ZodFunction:to,ZodLazy:Ts,ZodLiteral:Rs,ZodEnum:Kn,ZodNativeEnum:Ps,ZodPromise:ho,ZodEffects:zt,ZodTransformer:zt,ZodOptional:Qt,ZodNullable:Gn,ZodDefault:js,ZodCatch:Is,ZodNaN:da,BRAND:_x,ZodBranded:Xu,ZodPipeline:Vs,ZodReadonly:Os,custom:Bh,Schema:X,ZodSchema:X,late:Cx,get ZodFirstPartyTypeKind(){return Z},coerce:ow,any:jx,array:Ax,bigint:bx,boolean:Wh,date:Nx,discriminatedUnion:$x,effect:Uf,enum:Kx,function:Wx,instanceof:kx,intersection:Fx,lazy:Zx,literal:qx,map:Ux,nan:Ex,nativeEnum:Gx,never:Ox,null:Px,nullable:Xx,number:Hh,object:Lx,oboolean:rw,onumber:nw,optional:Yx,ostring:tw,pipeline:ew,preprocess:Jx,promise:Qx,record:Bx,set:Hx,strictObject:Dx,string:Uh,symbol:Tx,transformer:Uf,tuple:Vx,undefined:Rx,union:zx,unknown:Ix,void:Mx,NEVER:sw,ZodIssueCode:P,quotelessJson:ox,ZodError:mt});const Zh="2024-11-05",iw=[Zh,"2024-10-07"],za="2.0",qh=S.union([S.string(),S.number().int()]),Kh=S.string(),Vt=S.object({_meta:S.optional(S.object({progressToken:S.optional(qh)}).passthrough())}).passthrough(),xt=S.object({method:S.string(),params:S.optional(Vt)}),Bs=S.object({_meta:S.optional(S.object({}).passthrough())}).passthrough(),tn=S.object({method:S.string(),params:S.optional(Bs)}),Bt=S.object({_meta:S.optional(S.object({}).passthrough())}).passthrough(),$a=S.union([S.string(),S.number().int()]),aw=S.object({jsonrpc:S.literal(za),id:$a}).merge(xt).strict(),lw=S.object({jsonrpc:S.literal(za)}).merge(tn).strict(),cw=S.object({jsonrpc:S.literal(za),id:$a,result:Bt}).strict();var es;(function(e){e[e.ConnectionClosed=-1]="ConnectionClosed",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError"})(es||(es={}));const uw=S.object({jsonrpc:S.literal(za),id:$a,error:S.object({code:S.number().int(),message:S.string(),data:S.optional(S.unknown())})}).strict(),dw=S.union([aw,lw,cw,uw]),mr=Bt.strict(),Ju=tn.extend({method:S.literal("notifications/cancelled"),params:Bs.extend({requestId:$a,reason:S.string().optional()})}),Gh=S.object({name:S.string(),version:S.string()}).passthrough(),fw=S.object({experimental:S.optional(S.object({}).passthrough()),sampling:S.optional(S.object({}).passthrough()),roots:S.optional(S.object({listChanged:S.optional(S.boolean())}).passthrough())}).passthrough(),pw=xt.extend({method:S.literal("initialize"),params:Vt.extend({protocolVersion:S.string(),capabilities:fw,clientInfo:Gh})}),mw=S.object({experimental:S.optional(S.object({}).passthrough()),logging:S.optional(S.object({}).passthrough()),prompts:S.optional(S.object({listChanged:S.optional(S.boolean())}).passthrough()),resources:S.optional(S.object({subscribe:S.optional(S.boolean()),listChanged:S.optional(S.boolean())}).passthrough()),tools:S.optional(S.object({listChanged:S.optional(S.boolean())}).passthrough())}).passthrough(),Qh=Bt.extend({protocolVersion:S.string(),capabilities:mw,serverInfo:Gh}),hw=tn.extend({method:S.literal("notifications/initialized")}),ed=xt.extend({method:S.literal("ping")}),gw=S.object({progress:S.number(),total:S.optional(S.number())}).passthrough(),Fa=tn.extend({method:S.literal("notifications/progress"),params:Bs.merge(gw).extend({progressToken:qh})}),Va=xt.extend({params:Vt.extend({cursor:S.optional(Kh)}).optional()}),Ba=Bt.extend({nextCursor:S.optional(Kh)}),Yh=S.object({uri:S.string(),mimeType:S.optional(S.string())}).passthrough(),Xh=Yh.extend({text:S.string()}),Jh=Yh.extend({blob:S.string().base64()}),vw=S.object({uri:S.string(),name:S.string(),description:S.optional(S.string()),mimeType:S.optional(S.string())}).passthrough(),yw=S.object({uriTemplate:S.string(),name:S.string(),description:S.optional(S.string()),mimeType:S.optional(S.string())}).passthrough(),xw=Va.extend({method:S.literal("resources/list")}),td=Ba.extend({resources:S.array(vw)}),ww=Va.extend({method:S.literal("resources/templates/list")}),nd=Ba.extend({resourceTemplates:S.array(yw)}),Sw=xt.extend({method:S.literal("resources/read"),params:Vt.extend({uri:S.string()})}),rd=Bt.extend({contents:S.array(S.union([Xh,Jh]))}),_w=tn.extend({method:S.literal("notifications/resources/list_changed")}),Cw=xt.extend({method:S.literal("resources/subscribe"),params:Vt.extend({uri:S.string()})}),kw=xt.extend({method:S.literal("resources/unsubscribe"),params:Vt.extend({uri:S.string()})}),Ew=tn.extend({method:S.literal("notifications/resources/updated"),params:Bs.extend({uri:S.string()})}),bw=S.object({name:S.string(),description:S.optional(S.string()),required:S.optional(S.boolean())}).passthrough(),Nw=S.object({name:S.string(),description:S.optional(S.string()),arguments:S.optional(S.array(bw))}).passthrough(),Tw=Va.extend({method:S.literal("prompts/list")}),od=Ba.extend({prompts:S.array(Nw)}),Rw=xt.extend({method:S.literal("prompts/get"),params:Vt.extend({name:S.string(),arguments:S.optional(S.record(S.string()))})}),Ua=S.object({type:S.literal("text"),text:S.string()}).passthrough(),Ha=S.object({type:S.literal("image"),data:S.string().base64(),mimeType:S.string()}).passthrough(),eg=S.object({type:S.literal("resource"),resource:S.union([Xh,Jh])}).passthrough(),Pw=S.object({role:S.enum(["user","assistant"]),content:S.union([Ua,Ha,eg])}).passthrough(),sd=Bt.extend({description:S.optional(S.string()),messages:S.array(Pw)}),jw=tn.extend({method:S.literal("notifications/prompts/list_changed")}),Iw=S.object({name:S.string(),description:S.optional(S.string()),inputSchema:S.object({type:S.literal("object"),properties:S.optional(S.object({}).passthrough())}).passthrough()}).passthrough(),Ow=Va.extend({method:S.literal("tools/list")}),id=Ba.extend({tools:S.array(Iw)}),ad=Bt.extend({content:S.array(S.union([Ua,Ha,eg])),isError:S.boolean().default(!1).optional()}),Mw=ad.or(Bt.extend({toolResult:S.unknown()})),Aw=xt.extend({method:S.literal("tools/call"),params:Vt.extend({name:S.string(),arguments:S.optional(S.record(S.unknown()))})}),Lw=tn.extend({method:S.literal("notifications/tools/list_changed")}),tg=S.enum(["debug","info","notice","warning","error","critical","alert","emergency"]),Dw=xt.extend({method:S.literal("logging/setLevel"),params:Vt.extend({level:tg})}),zw=tn.extend({method:S.literal("notifications/message"),params:Bs.extend({level:tg,logger:S.optional(S.string()),data:S.unknown()})}),$w=S.object({name:S.string().optional()}).passthrough(),Fw=S.object({hints:S.optional(S.array($w)),costPriority:S.optional(S.number().min(0).max(1)),speedPriority:S.optional(S.number().min(0).max(1)),intelligencePriority:S.optional(S.number().min(0).max(1))}).passthrough(),Vw=S.object({role:S.enum(["user","assistant"]),content:S.union([Ua,Ha])}).passthrough(),ng=xt.extend({method:S.literal("sampling/createMessage"),params:Vt.extend({messages:S.array(Vw),systemPrompt:S.optional(S.string()),includeContext:S.optional(S.enum(["none","thisServer","allServers"])),temperature:S.optional(S.number()),maxTokens:S.number().int(),stopSequences:S.optional(S.array(S.string())),metadata:S.optional(S.object({}).passthrough()),modelPreferences:S.optional(Fw)})}),Bw=Bt.extend({model:S.string(),stopReason:S.optional(S.enum(["endTurn","stopSequence","maxTokens"]).or(S.string())),role:S.enum(["user","assistant"]),content:S.discriminatedUnion("type",[Ua,Ha])}),Uw=S.object({type:S.literal("ref/resource"),uri:S.string()}).passthrough(),Hw=S.object({type:S.literal("ref/prompt"),name:S.string()}).passthrough(),Ww=xt.extend({method:S.literal("completion/complete"),params:Vt.extend({ref:S.union([Hw,Uw]),argument:S.object({name:S.string(),value:S.string()}).passthrough()})}),rg=Bt.extend({completion:S.object({values:S.array(S.string()).max(100),total:S.optional(S.number().int()),hasMore:S.optional(S.boolean())}).passthrough()}),Zw=S.object({uri:S.string().startsWith("file://"),name:S.optional(S.string())}).passthrough(),og=xt.extend({method:S.literal("roots/list")}),qw=Bt.extend({roots:S.array(Zw)}),Kw=tn.extend({method:S.literal("notifications/roots/list_changed")});S.union([ed,pw,Ww,Dw,Rw,Tw,xw,ww,Sw,Cw,kw,Aw,Ow]);S.union([Ju,Fa,hw,Kw]);S.union([mr,Bw,qw]);S.union([ed,ng,og]);S.union([Ju,Fa,zw,Ew,_w,Lw,jw]);S.union([mr,Qh,rg,sd,od,td,nd,rd,ad,id]);class Hf extends Error{constructor(t,n,r){super(`MCP error ${t}: ${n}`),this.code=t,this.data=r}}class Gw{constructor(t){this._options=t,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this.setNotificationHandler(Ju,n=>{const r=this._requestHandlerAbortControllers.get(n.params.requestId);r==null||r.abort(n.params.reason)}),this.setNotificationHandler(Fa,n=>{this._onprogress(n)}),this.setRequestHandler(ed,n=>({}))}async connect(t){this._transport=t,this._transport.onclose=()=>{this._onclose()},this._transport.onerror=n=>{this._onerror(n)},this._transport.onmessage=n=>{"method"in n?"id"in n?this._onrequest(n):this._onnotification(n):this._onresponse(n)},await this._transport.start()}_onclose(){var t;const n=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._transport=void 0,(t=this.onclose)===null||t===void 0||t.call(this);const r=new Hf(es.ConnectionClosed,"Connection closed");for(const o of n.values())o(r)}_onerror(t){var n;(n=this.onerror)===null||n===void 0||n.call(this,t)}_onnotification(t){var n;const r=(n=this._notificationHandlers.get(t.method))!==null&&n!==void 0?n:this.fallbackNotificationHandler;r!==void 0&&Promise.resolve().then(()=>r(t)).catch(o=>this._onerror(new Error(`Uncaught error in notification handler: ${o}`)))}_onrequest(t){var n,r;const o=(n=this._requestHandlers.get(t.method))!==null&&n!==void 0?n:this.fallbackRequestHandler;if(o===void 0){(r=this._transport)===null||r===void 0||r.send({jsonrpc:"2.0",id:t.id,error:{code:es.MethodNotFound,message:"Method not found"}}).catch(i=>this._onerror(new Error(`Failed to send an error response: ${i}`)));return}const s=new AbortController;this._requestHandlerAbortControllers.set(t.id,s),Promise.resolve().then(()=>o(t,{signal:s.signal})).then(i=>{var a;if(!s.signal.aborted)return(a=this._transport)===null||a===void 0?void 0:a.send({result:i,jsonrpc:"2.0",id:t.id})},i=>{var a,l;if(!s.signal.aborted)return(a=this._transport)===null||a===void 0?void 0:a.send({jsonrpc:"2.0",id:t.id,error:{code:Number.isSafeInteger(i.code)?i.code:es.InternalError,message:(l=i.message)!==null&&l!==void 0?l:"Internal error"}})}).catch(i=>this._onerror(new Error(`Failed to send response: ${i}`))).finally(()=>{this._requestHandlerAbortControllers.delete(t.id)})}_onprogress(t){const{progress:n,total:r,progressToken:o}=t.params,s=this._progressHandlers.get(Number(o));if(s===void 0){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(t)}`));return}s({progress:n,total:r})}_onresponse(t){const n=t.id,r=this._responseHandlers.get(Number(n));if(r===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(t)}`));return}if(this._responseHandlers.delete(Number(n)),this._progressHandlers.delete(Number(n)),"result"in t)r(t);else{const o=new Hf(t.error.code,t.error.message,t.error.data);r(o)}}get transport(){return this._transport}async close(){var t;await((t=this._transport)===null||t===void 0?void 0:t.close())}request(t,n,r){return new Promise((o,s)=>{var i,a,l;if(!this._transport){s(new Error("Not connected"));return}((i=this._options)===null||i===void 0?void 0:i.enforceStrictCapabilities)===!0&&this.assertCapabilityForMethod(t.method),(a=r==null?void 0:r.signal)===null||a===void 0||a.throwIfAborted();const c=this._requestMessageId++,u={...t,jsonrpc:"2.0",id:c};r!=null&&r.onprogress&&(this._progressHandlers.set(c,r.onprogress),u.params={...t.params,_meta:{progressToken:c}}),this._responseHandlers.set(c,f=>{var g;if(!(!((g=r==null?void 0:r.signal)===null||g===void 0)&&g.aborted)){if(f instanceof Error)return s(f);try{const x=n.parse(f.result);o(x)}catch(x){s(x)}}}),(l=r==null?void 0:r.signal)===null||l===void 0||l.addEventListener("abort",()=>{var f,g;const x=(f=r==null?void 0:r.signal)===null||f===void 0?void 0:f.reason;this._responseHandlers.delete(c),this._progressHandlers.delete(c),(g=this._transport)===null||g===void 0||g.send({jsonrpc:"2.0",method:"cancelled",params:{requestId:c,reason:String(x)}}),s(x)}),this._transport.send(u).catch(s)})}async notification(t){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(t.method);const n={...t,jsonrpc:"2.0"};await this._transport.send(n)}setRequestHandler(t,n){const r=t.shape.method.value;this.assertRequestHandlerCapability(r),this._requestHandlers.set(r,(o,s)=>Promise.resolve(n(t.parse(o),s)))}removeRequestHandler(t){this._requestHandlers.delete(t)}setNotificationHandler(t,n){this._notificationHandlers.set(t.shape.method.value,r=>Promise.resolve(n(t.parse(r))))}removeNotificationHandler(t){this._notificationHandlers.delete(t)}}class Qw extends Gw{constructor(t,n){super(n),this._clientInfo=t,this._capabilities=n.capabilities}assertCapability(t,n){var r;if(!(!((r=this._serverCapabilities)===null||r===void 0)&&r[t]))throw new Error(`Server does not support ${t} (required for ${n})`)}async connect(t){await super.connect(t);try{const n=await this.request({method:"initialize",params:{protocolVersion:Zh,capabilities:this._capabilities,clientInfo:this._clientInfo}},Qh);if(n===void 0)throw new Error(`Server sent invalid initialize result: ${n}`);if(!iw.includes(n.protocolVersion))throw new Error(`Server's protocol version is not supported: ${n.protocolVersion}`);this._serverCapabilities=n.capabilities,this._serverVersion=n.serverInfo,await this.notification({method:"notifications/initialized"})}catch(n){throw this.close(),n}}getServerCapabilities(){return this._serverCapabilities}getServerVersion(){return this._serverVersion}assertCapabilityForMethod(t){var n,r,o,s,i;switch(t){case"logging/setLevel":if(!(!((n=this._serverCapabilities)===null||n===void 0)&&n.logging))throw new Error(`Server does not support logging (required for ${t})`);break;case"prompts/get":case"prompts/list":if(!(!((r=this._serverCapabilities)===null||r===void 0)&&r.prompts))throw new Error(`Server does not support prompts (required for ${t})`);break;case"resources/list":case"resources/templates/list":case"resources/read":case"resources/subscribe":case"resources/unsubscribe":if(!(!((o=this._serverCapabilities)===null||o===void 0)&&o.resources))throw new Error(`Server does not support resources (required for ${t})`);if(t==="resources/subscribe"&&!this._serverCapabilities.resources.subscribe)throw new Error(`Server does not support resource subscriptions (required for ${t})`);break;case"tools/call":case"tools/list":if(!(!((s=this._serverCapabilities)===null||s===void 0)&&s.tools))throw new Error(`Server does not support tools (required for ${t})`);break;case"completion/complete":if(!(!((i=this._serverCapabilities)===null||i===void 0)&&i.prompts))throw new Error(`Server does not support prompts (required for ${t})`);break}}assertNotificationCapability(t){var n;switch(t){case"notifications/roots/list_changed":if(!(!((n=this._capabilities.roots)===null||n===void 0)&&n.listChanged))throw new Error(`Client does not support roots list changed notifications (required for ${t})`);break}}assertRequestHandlerCapability(t){switch(t){case"sampling/createMessage":if(!this._capabilities.sampling)throw new Error(`Client does not support sampling capability (required for ${t})`);break;case"roots/list":if(!this._capabilities.roots)throw new Error(`Client does not support roots capability (required for ${t})`);break}}async ping(){return this.request({method:"ping"},mr)}async complete(t,n){return this.request({method:"completion/complete",params:t},rg,n)}async setLoggingLevel(t){return this.request({method:"logging/setLevel",params:{level:t}},mr)}async getPrompt(t,n){return this.request({method:"prompts/get",params:t},sd,n)}async listPrompts(t,n){return this.request({method:"prompts/list",params:t},od,n)}async listResources(t,n){return this.request({method:"resources/list",params:t},td,n)}async listResourceTemplates(t,n){return this.request({method:"resources/templates/list",params:t},nd,n)}async readResource(t,n){return this.request({method:"resources/read",params:t},rd,n)}async subscribeResource(t){return this.request({method:"resources/subscribe",params:t},mr)}async unsubscribeResource(t){return this.request({method:"resources/unsubscribe",params:t},mr)}async callTool(t,n=ad,r){return this.request({method:"tools/call",params:t},n,r)}async listTools(t,n){return this.request({method:"tools/list",params:t},id,n)}async sendRootsListChanged(){return this.notification({method:"notifications/roots/list_changed"})}}class Yw{constructor(t){this._url=t}start(){if(this._eventSource)throw new Error("SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((t,n)=>{this._eventSource=new EventSource(this._url.href),this._abortController=new AbortController,this._eventSource.onerror=r=>{var o;const s=new Error(`SSE error: ${JSON.stringify(r)}`);n(s),(o=this.onerror)===null||o===void 0||o.call(this,s)},this._eventSource.onopen=()=>{},this._eventSource.addEventListener("endpoint",r=>{var o;const s=r;try{if(this._endpoint=new URL(s.data,this._url),this._endpoint.origin!==this._url.origin)throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`)}catch(i){n(i),(o=this.onerror)===null||o===void 0||o.call(this,i),this.close();return}t()}),this._eventSource.onmessage=r=>{var o,s;const i=r;let a;try{a=dw.parse(JSON.parse(i.data))}catch(l){(o=this.onerror)===null||o===void 0||o.call(this,l);return}(s=this.onmessage)===null||s===void 0||s.call(this,a)}})}async close(){var t,n,r;(t=this._abortController)===null||t===void 0||t.abort(),(n=this._eventSource)===null||n===void 0||n.close(),(r=this.onclose)===null||r===void 0||r.call(this)}async send(t){var n,r;if(!this._endpoint)throw new Error("Not connected");try{const o=await fetch(this._endpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),signal:(n=this._abortController)===null||n===void 0?void 0:n.signal});if(!o.ok){const s=await o.text().catch(()=>null);throw new Error(`Error POSTing to endpoint (HTTP ${o.status}): ${s}`)}}catch(o){throw(r=this.onerror)===null||r===void 0||r.call(this,o),o}}}function ue(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 Xw(e,t=[]){let n=[];function r(s,i){const a=h.createContext(i),l=n.length;n=[...n,i];const c=f=>{var m;const{scope:g,children:x,...w}=f,v=((m=g==null?void 0:g[e])==null?void 0:m[l])||a,_=h.useMemo(()=>w,Object.values(w));return p.jsx(v.Provider,{value:_,children:x})};c.displayName=s+"Provider";function u(f,g){var v;const x=((v=g==null?void 0:g[e])==null?void 0:v[l])||a,w=h.useContext(x);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[c,u]}const o=()=>{const s=n.map(i=>h.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return h.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,Jw(o,...t)]}function Jw(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const f=l(s)[`__scope${c}`];return{...a,...f}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function ld(e,t=[]){let n=[];function r(s,i){const a=h.createContext(i),l=n.length;n=[...n,i];function c(f){const{scope:g,children:x,...w}=f,v=(g==null?void 0:g[e][l])||a,_=h.useMemo(()=>w,Object.values(w));return p.jsx(v.Provider,{value:_,children:x})}function u(f,g){const x=(g==null?void 0:g[e][l])||a,w=h.useContext(x);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return c.displayName=s+"Provider",[c,u]}const o=()=>{const s=n.map(i=>h.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return h.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,eS(o,...t)]}function eS(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const f=l(s)[`__scope${c}`];return{...a,...f}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function tS(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function sg(...e){return t=>e.forEach(n=>tS(n,t))}function Oe(...e){return h.useCallback(sg(...e),e)}var go=h.forwardRef((e,t)=>{const{children:n,...r}=e,o=h.Children.toArray(n),s=o.find(rS);if(s){const i=s.props.children,a=o.map(l=>l===s?h.Children.count(i)>1?h.Children.only(null):h.isValidElement(i)?i.props.children:null:l);return p.jsx(Bc,{...r,ref:t,children:h.isValidElement(i)?h.cloneElement(i,void 0,a):null})}return p.jsx(Bc,{...r,ref:t,children:n})});go.displayName="Slot";var Bc=h.forwardRef((e,t)=>{const{children:n,...r}=e;if(h.isValidElement(n)){const o=sS(n);return h.cloneElement(n,{...oS(r,n.props),ref:t?sg(t,o):o})}return h.Children.count(n)>1?h.Children.only(null):null});Bc.displayName="SlotClone";var nS=({children:e})=>p.jsx(p.Fragment,{children:e});function rS(e){return h.isValidElement(e)&&e.type===nS}function oS(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{s(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function sS(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function ig(e){const t=e+"CollectionProvider",[n,r]=ld(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=x=>{const{scope:w,children:v}=x,_=ne.useRef(null),m=ne.useRef(new Map).current;return p.jsx(o,{scope:w,itemMap:m,collectionRef:_,children:v})};i.displayName=t;const a=e+"CollectionSlot",l=ne.forwardRef((x,w)=>{const{scope:v,children:_}=x,m=s(a,v),d=Oe(w,m.collectionRef);return p.jsx(go,{ref:d,children:_})});l.displayName=a;const c=e+"CollectionItemSlot",u="data-radix-collection-item",f=ne.forwardRef((x,w)=>{const{scope:v,children:_,...m}=x,d=ne.useRef(null),y=Oe(w,d),C=s(c,v);return ne.useEffect(()=>(C.itemMap.set(d,{ref:d,...m}),()=>void C.itemMap.delete(d))),p.jsx(go,{[u]:"",ref:y,children:_})});f.displayName=c;function g(x){const w=s(e+"CollectionConsumer",x);return ne.useCallback(()=>{const _=w.collectionRef.current;if(!_)return[];const m=Array.from(_.querySelectorAll(`[${u}]`));return Array.from(w.itemMap.values()).sort((C,k)=>m.indexOf(C.ref.current)-m.indexOf(k.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:i,Slot:l,ItemSlot:f},g,r]}var et=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},iS=My.useId||(()=>{}),aS=0;function Us(e){const[t,n]=h.useState(iS());return et(()=>{e||n(r=>r??String(aS++))},[e]),e||(t?`radix-${t}`:"")}var lS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],me=lS.reduce((e,t)=>{const n=h.forwardRef((r,o)=>{const{asChild:s,...i}=r,a=s?go:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(a,{...i,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function cS(e,t){e&&So.flushSync(()=>e.dispatchEvent(t))}function Jt(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function fa({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=uS({defaultProp:t,onChange:n}),s=e!==void 0,i=s?e:r,a=Jt(n),l=h.useCallback(c=>{if(s){const f=typeof c=="function"?c(e):c;f!==e&&a(f)}else o(c)},[s,e,o,a]);return[i,l]}function uS({defaultProp:e,onChange:t}){const n=h.useState(e),[r]=n,o=h.useRef(r),s=Jt(t);return h.useEffect(()=>{o.current!==r&&(s(r),o.current=r)},[r,o,s]),n}var dS=h.createContext(void 0);function cd(e){const t=h.useContext(dS);return e||t||"ltr"}var Il="rovingFocusGroup.onEntryFocus",fS={bubbles:!1,cancelable:!0},Wa="RovingFocusGroup",[Uc,ag,pS]=ig(Wa),[mS,lg]=ld(Wa,[pS]),[hS,gS]=mS(Wa),cg=h.forwardRef((e,t)=>p.jsx(Uc.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(Uc.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(vS,{...e,ref:t})})}));cg.displayName=Wa;var vS=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...f}=e,g=h.useRef(null),x=Oe(t,g),w=cd(s),[v=null,_]=fa({prop:i,defaultProp:a,onChange:l}),[m,d]=h.useState(!1),y=Jt(c),C=ag(n),k=h.useRef(!1),[T,b]=h.useState(0);return h.useEffect(()=>{const E=g.current;if(E)return E.addEventListener(Il,y),()=>E.removeEventListener(Il,y)},[y]),p.jsx(hS,{scope:n,orientation:r,dir:w,loop:o,currentTabStopId:v,onItemFocus:h.useCallback(E=>_(E),[_]),onItemShiftTab:h.useCallback(()=>d(!0),[]),onFocusableItemAdd:h.useCallback(()=>b(E=>E+1),[]),onFocusableItemRemove:h.useCallback(()=>b(E=>E-1),[]),children:p.jsx(me.div,{tabIndex:m||T===0?-1:0,"data-orientation":r,...f,ref:x,style:{outline:"none",...e.style},onMouseDown:ue(e.onMouseDown,()=>{k.current=!0}),onFocus:ue(e.onFocus,E=>{const I=!k.current;if(E.target===E.currentTarget&&I&&!m){const j=new CustomEvent(Il,fS);if(E.currentTarget.dispatchEvent(j),!j.defaultPrevented){const V=C().filter(F=>F.focusable),M=V.find(F=>F.active),q=V.find(F=>F.id===v),J=[M,q,...V].filter(Boolean).map(F=>F.ref.current);fg(J,u)}}k.current=!1}),onBlur:ue(e.onBlur,()=>d(!1))})})}),ug="RovingFocusGroupItem",dg=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,...i}=e,a=Us(),l=s||a,c=gS(ug,n),u=c.currentTabStopId===l,f=ag(n),{onFocusableItemAdd:g,onFocusableItemRemove:x}=c;return h.useEffect(()=>{if(r)return g(),()=>x()},[r,g,x]),p.jsx(Uc.ItemSlot,{scope:n,id:l,focusable:r,active:o,children:p.jsx(me.span,{tabIndex:u?0:-1,"data-orientation":c.orientation,...i,ref:t,onMouseDown:ue(e.onMouseDown,w=>{r?c.onItemFocus(l):w.preventDefault()}),onFocus:ue(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:ue(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){c.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const v=wS(w,c.orientation,c.dir);if(v!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let m=f().filter(d=>d.focusable).map(d=>d.ref.current);if(v==="last")m.reverse();else if(v==="prev"||v==="next"){v==="prev"&&m.reverse();const d=m.indexOf(w.currentTarget);m=c.loop?SS(m,d+1):m.slice(d+1)}setTimeout(()=>fg(m))}})})})});dg.displayName=ug;var yS={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function xS(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function wS(e,t,n){const r=xS(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return yS[r]}function fg(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function SS(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var _S=cg,CS=dg;function kS(e,t){return h.useReducer((n,r)=>t[n][r]??n,e)}var pg=e=>{const{present:t,children:n}=e,r=ES(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),s=Oe(r.ref,bS(o));return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:s}):null};pg.displayName="Presence";function ES(e){const[t,n]=h.useState(),r=h.useRef({}),o=h.useRef(e),s=h.useRef("none"),i=e?"mounted":"unmounted",[a,l]=kS(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const c=fi(r.current);s.current=a==="mounted"?c:"none"},[a]),et(()=>{const c=r.current,u=o.current;if(u!==e){const g=s.current,x=fi(c);e?l("MOUNT"):x==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&g!==x?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),et(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,f=x=>{const v=fi(r.current).includes(x.animationName);if(x.target===t&&v&&(l("ANIMATION_END"),!o.current)){const _=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=_)})}},g=x=>{x.target===t&&(s.current=fi(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:h.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function fi(e){return(e==null?void 0:e.animationName)||"none"}function bS(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ud="Tabs",[NS,U2]=Xw(ud,[lg]),mg=lg(),[TS,dd]=NS(ud),hg=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:s,orientation:i="horizontal",dir:a,activationMode:l="automatic",...c}=e,u=cd(a),[f,g]=fa({prop:r,onChange:o,defaultProp:s});return p.jsx(TS,{scope:n,baseId:Us(),value:f,onValueChange:g,orientation:i,dir:u,activationMode:l,children:p.jsx(me.div,{dir:u,"data-orientation":i,...c,ref:t})})});hg.displayName=ud;var gg="TabsList",vg=h.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,s=dd(gg,n),i=mg(n);return p.jsx(_S,{asChild:!0,...i,orientation:s.orientation,dir:s.dir,loop:r,children:p.jsx(me.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:t})})});vg.displayName=gg;var yg="TabsTrigger",xg=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...s}=e,i=dd(yg,n),a=mg(n),l=_g(i.baseId,r),c=Cg(i.baseId,r),u=r===i.value;return p.jsx(CS,{asChild:!0,...a,focusable:!o,active:u,children:p.jsx(me.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...s,ref:t,onMouseDown:ue(e.onMouseDown,f=>{!o&&f.button===0&&f.ctrlKey===!1?i.onValueChange(r):f.preventDefault()}),onKeyDown:ue(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&i.onValueChange(r)}),onFocus:ue(e.onFocus,()=>{const f=i.activationMode!=="manual";!u&&!o&&f&&i.onValueChange(r)})})})});xg.displayName=yg;var wg="TabsContent",Sg=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:s,...i}=e,a=dd(wg,n),l=_g(a.baseId,r),c=Cg(a.baseId,r),u=r===a.value,f=h.useRef(u);return h.useEffect(()=>{const g=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(g)},[]),p.jsx(pg,{present:o||u,children:({present:g})=>p.jsx(me.div,{"data-state":u?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":l,hidden:!g,id:c,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:g&&s})})});Sg.displayName=wg;function _g(e,t){return`${e}-trigger-${t}`}function Cg(e,t){return`${e}-content-${t}`}var RS=hg,kg=vg,Eg=xg,bg=Sg;const fd="-",PS=e=>{const t=IS(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(fd);return a[0]===""&&a.length!==1&&a.shift(),Ng(a,t)||jS(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},Ng=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Ng(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(fd);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId},Wf=/^\[(.+)\]$/,jS=e=>{if(Wf.test(e)){const t=Wf.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},IS=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return MS(Object.entries(e.classGroups),n).forEach(([s,i])=>{Hc(i,r,s,t)}),r},Hc=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:Zf(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(OS(o)){Hc(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{Hc(i,Zf(t,s),n,r)})})},Zf=(e,t)=>{let n=e;return t.split(fd).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},OS=e=>e.isThemeGetter,MS=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,a])=>[t+i,a])):s);return[n,o]}):e,AS=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},Tg="!",LS=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,i=a=>{const l=[];let c=0,u=0,f;for(let _=0;_<a.length;_++){let m=a[_];if(c===0){if(m===o&&(r||a.slice(_,_+s)===t)){l.push(a.slice(u,_)),u=_+s;continue}if(m==="/"){f=_;continue}}m==="["?c++:m==="]"&&c--}const g=l.length===0?a:a.substring(u),x=g.startsWith(Tg),w=x?g.substring(1):g,v=f&&f>u?f-u:void 0;return{modifiers:l,hasImportantModifier:x,baseClassName:w,maybePostfixModifierPosition:v}};return n?a=>n({className:a,parseClassName:i}):i},DS=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},zS=e=>({cache:AS(e.cacheSize),parseClassName:LS(e),...PS(e)}),$S=/\s+/,FS=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split($S);let a="";for(let l=i.length-1;l>=0;l-=1){const c=i[l],{modifiers:u,hasImportantModifier:f,baseClassName:g,maybePostfixModifierPosition:x}=n(c);let w=!!x,v=r(w?g.substring(0,x):g);if(!v){if(!w){a=c+(a.length>0?" "+a:a);continue}if(v=r(g),!v){a=c+(a.length>0?" "+a:a);continue}w=!1}const _=DS(u).join(":"),m=f?_+Tg:_,d=m+v;if(s.includes(d))continue;s.push(d);const y=o(v,w);for(let C=0;C<y.length;++C){const k=y[C];s.push(m+k)}a=c+(a.length>0?" "+a:a)}return a};function VS(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Rg(t))&&(r&&(r+=" "),r+=n);return r}const Rg=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Rg(e[r]))&&(n&&(n+=" "),n+=t);return n};function BS(e,...t){let n,r,o,s=i;function i(l){const c=t.reduce((u,f)=>f(u),e());return n=zS(c),r=n.cache.get,o=n.cache.set,s=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=FS(l,n);return o(l,u),u}return function(){return s(VS.apply(null,arguments))}}const ye=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Pg=/^\[(?:([a-z-]+):)?(.+)\]$/i,US=/^\d+\/\d+$/,HS=new Set(["px","full","screen"]),WS=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ZS=/\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$/,qS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,KS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,GS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,on=e=>no(e)||HS.has(e)||US.test(e),bn=e=>_o(e,"length",r_),no=e=>!!e&&!Number.isNaN(Number(e)),Ol=e=>_o(e,"number",no),Ao=e=>!!e&&Number.isInteger(Number(e)),QS=e=>e.endsWith("%")&&no(e.slice(0,-1)),Y=e=>Pg.test(e),Nn=e=>WS.test(e),YS=new Set(["length","size","percentage"]),XS=e=>_o(e,YS,jg),JS=e=>_o(e,"position",jg),e_=new Set(["image","url"]),t_=e=>_o(e,e_,s_),n_=e=>_o(e,"",o_),Lo=()=>!0,_o=(e,t,n)=>{const r=Pg.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},r_=e=>ZS.test(e)&&!qS.test(e),jg=()=>!1,o_=e=>KS.test(e),s_=e=>GS.test(e),i_=()=>{const e=ye("colors"),t=ye("spacing"),n=ye("blur"),r=ye("brightness"),o=ye("borderColor"),s=ye("borderRadius"),i=ye("borderSpacing"),a=ye("borderWidth"),l=ye("contrast"),c=ye("grayscale"),u=ye("hueRotate"),f=ye("invert"),g=ye("gap"),x=ye("gradientColorStops"),w=ye("gradientColorStopPositions"),v=ye("inset"),_=ye("margin"),m=ye("opacity"),d=ye("padding"),y=ye("saturate"),C=ye("scale"),k=ye("sepia"),T=ye("skew"),b=ye("space"),E=ye("translate"),I=()=>["auto","contain","none"],j=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto",Y,t],M=()=>[Y,t],q=()=>["",on,bn],W=()=>["auto",no,Y],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["solid","dashed","dotted","double","none"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",Y],D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[no,Y];return{cacheSize:500,separator:":",theme:{colors:[Lo],spacing:[on,bn],blur:["none","",Nn,Y],brightness:H(),borderColor:[e],borderRadius:["none","","full",Nn,Y],borderSpacing:M(),borderWidth:q(),contrast:H(),grayscale:O(),hueRotate:H(),invert:O(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[QS,bn],inset:V(),margin:V(),opacity:H(),padding:M(),saturate:H(),scale:H(),sepia:O(),skew:H(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",Y]}],container:["container"],columns:[{columns:[Nn]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"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:[...J(),Y]}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ao,Y]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Y]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",Ao,Y]}],"grid-cols":[{"grid-cols":[Lo]}],"col-start-end":[{col:["auto",{span:["full",Ao,Y]},Y]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[Lo]}],"row-start-end":[{row:["auto",{span:[Ao,Y]},Y]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Y]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Y]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...N()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...N(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...N(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[d]}],px:[{px:[d]}],py:[{py:[d]}],ps:[{ps:[d]}],pe:[{pe:[d]}],pt:[{pt:[d]}],pr:[{pr:[d]}],pb:[{pb:[d]}],pl:[{pl:[d]}],m:[{m:[_]}],mx:[{mx:[_]}],my:[{my:[_]}],ms:[{ms:[_]}],me:[{me:[_]}],mt:[{mt:[_]}],mr:[{mr:[_]}],mb:[{mb:[_]}],ml:[{ml:[_]}],"space-x":[{"space-x":[b]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[b]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Y,t]}],"min-w":[{"min-w":[Y,t,"min","max","fit"]}],"max-w":[{"max-w":[Y,t,"none","full","min","max","fit","prose",{screen:[Nn]},Nn]}],h:[{h:[Y,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Y,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Nn,bn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ol]}],"font-family":[{font:[Lo]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Y]}],"line-clamp":[{"line-clamp":["none",no,Ol]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",on,Y]}],"list-image":[{"list-image":["none",Y]}],"list-style-type":[{list:["none","disc","decimal",Y]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",on,bn]}],"underline-offset":[{"underline-offset":["auto",on,Y]}],"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:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y]}],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",Y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),JS]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",XS]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},t_]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...F(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:F()}],"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:["",...F()]}],"outline-offset":[{"outline-offset":[on,Y]}],"outline-w":[{outline:[on,bn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[on,bn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Nn,n_]}],"shadow-color":[{shadow:[Lo]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...K(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":K()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Nn,Y]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[y]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Y]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",Y]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",Y]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[Ao,Y]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"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",Y]}],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",Y]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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",Y]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[on,bn,Ol]}],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"]}}},a_=BS(i_);function $e(...e){return a_(fn(e))}const l_=RS,Ig=h.forwardRef(({className:e,...t},n)=>p.jsx(kg,{ref:n,className:$e("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));Ig.displayName=kg.displayName;const an=h.forwardRef(({className:e,...t},n)=>p.jsx(Eg,{ref:n,className:$e("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 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",e),...t}));an.displayName=Eg.displayName;const rr=h.forwardRef(({className:e,...t},n)=>p.jsx(bg,{ref:n,className:$e("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));rr.displayName=bg.displayName;/**
|
|
41
|
-
* @license lucide-react v0.447.0 - ISC
|
|
42
|
-
*
|
|
43
|
-
* This source code is licensed under the ISC license.
|
|
44
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
45
|
-
*/const c_=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Og=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
|
|
46
|
-
* @license lucide-react v0.447.0 - ISC
|
|
47
|
-
*
|
|
48
|
-
* This source code is licensed under the ISC license.
|
|
49
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
50
|
-
*/var u_={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
51
|
-
* @license lucide-react v0.447.0 - ISC
|
|
52
|
-
*
|
|
53
|
-
* This source code is licensed under the ISC license.
|
|
54
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
55
|
-
*/const d_=h.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},l)=>h.createElement("svg",{ref:l,...u_,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Og("lucide",o),...a},[...i.map(([c,u])=>h.createElement(c,u)),...Array.isArray(s)?s:[s]]));/**
|
|
56
|
-
* @license lucide-react v0.447.0 - ISC
|
|
57
|
-
*
|
|
58
|
-
* This source code is licensed under the ISC license.
|
|
59
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
60
|
-
*/const Me=(e,t)=>{const n=h.forwardRef(({className:r,...o},s)=>h.createElement(d_,{ref:s,iconNode:t,className:Og(`lucide-${c_(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
|
|
61
|
-
* @license lucide-react v0.447.0 - ISC
|
|
62
|
-
*
|
|
63
|
-
* This source code is licensed under the ISC license.
|
|
64
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/const f_=Me("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
|
|
66
|
-
* @license lucide-react v0.447.0 - ISC
|
|
67
|
-
*
|
|
68
|
-
* This source code is licensed under the ISC license.
|
|
69
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
-
*/const p_=Me("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
71
|
-
* @license lucide-react v0.447.0 - ISC
|
|
72
|
-
*
|
|
73
|
-
* This source code is licensed under the ISC license.
|
|
74
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
-
*/const Wc=Me("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
76
|
-
* @license lucide-react v0.447.0 - ISC
|
|
77
|
-
*
|
|
78
|
-
* This source code is licensed under the ISC license.
|
|
79
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
-
*/const pd=Me("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"}]]);/**
|
|
81
|
-
* @license lucide-react v0.447.0 - ISC
|
|
82
|
-
*
|
|
83
|
-
* This source code is licensed under the ISC license.
|
|
84
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
-
*/const Ml=Me("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"}]]);/**
|
|
86
|
-
* @license lucide-react v0.447.0 - ISC
|
|
87
|
-
*
|
|
88
|
-
* This source code is licensed under the ISC license.
|
|
89
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
-
*/const qf=Me("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"}]]);/**
|
|
91
|
-
* @license lucide-react v0.447.0 - ISC
|
|
92
|
-
*
|
|
93
|
-
* This source code is licensed under the ISC license.
|
|
94
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
-
*/const m_=Me("Files",[["path",{d:"M20 7h-3a2 2 0 0 1-2-2V2",key:"x099mo"}],["path",{d:"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z",key:"18t6ie"}],["path",{d:"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8",key:"1nja0z"}]]);/**
|
|
96
|
-
* @license lucide-react v0.447.0 - ISC
|
|
97
|
-
*
|
|
98
|
-
* This source code is licensed under the ISC license.
|
|
99
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
-
*/const h_=Me("FolderTree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]);/**
|
|
101
|
-
* @license lucide-react v0.447.0 - ISC
|
|
102
|
-
*
|
|
103
|
-
* This source code is licensed under the ISC license.
|
|
104
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
-
*/const g_=Me("Hammer",[["path",{d:"m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9",key:"eefl8a"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172V7l-2.26-2.26a6 6 0 0 0-4.202-1.756L9 2.96l.92.82A6.18 6.18 0 0 1 12 8.4V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"b7pghm"}]]);/**
|
|
106
|
-
* @license lucide-react v0.447.0 - ISC
|
|
107
|
-
*
|
|
108
|
-
* This source code is licensed under the ISC license.
|
|
109
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
-
*/const v_=Me("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/**
|
|
111
|
-
* @license lucide-react v0.447.0 - ISC
|
|
112
|
-
*
|
|
113
|
-
* This source code is licensed under the ISC license.
|
|
114
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
-
*/const y_=Me("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
|
|
116
|
-
* @license lucide-react v0.447.0 - ISC
|
|
117
|
-
*
|
|
118
|
-
* This source code is licensed under the ISC license.
|
|
119
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
-
*/const x_=Me("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
|
|
121
|
-
* @license lucide-react v0.447.0 - ISC
|
|
122
|
-
*
|
|
123
|
-
* This source code is licensed under the ISC license.
|
|
124
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
-
*/const w_=Me("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
126
|
-
* @license lucide-react v0.447.0 - ISC
|
|
127
|
-
*
|
|
128
|
-
* This source code is licensed under the ISC license.
|
|
129
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
-
*/const S_=Me("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
131
|
-
* @license lucide-react v0.447.0 - ISC
|
|
132
|
-
*
|
|
133
|
-
* This source code is licensed under the ISC license.
|
|
134
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
-
*/const __=Me("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
136
|
-
* @license lucide-react v0.447.0 - ISC
|
|
137
|
-
*
|
|
138
|
-
* This source code is licensed under the ISC license.
|
|
139
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
-
*/const C_=Me("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
|
|
141
|
-
* @license lucide-react v0.447.0 - ISC
|
|
142
|
-
*
|
|
143
|
-
* This source code is licensed under the ISC license.
|
|
144
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
-
*/const Mg=Me("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
|
146
|
-
* @license lucide-react v0.447.0 - ISC
|
|
147
|
-
*
|
|
148
|
-
* This source code is licensed under the ISC license.
|
|
149
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
-
*/const k_=Me("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
151
|
-
* @license lucide-react v0.447.0 - ISC
|
|
152
|
-
*
|
|
153
|
-
* This source code is licensed under the ISC license.
|
|
154
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
-
*/const E_=Me("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]),b_=()=>p.jsx(rr,{value:"console",className:"h-96",children:p.jsx("div",{className:"bg-gray-900 text-gray-100 p-4 rounded-lg h-full font-mono text-sm overflow-auto",children:p.jsx("div",{className:"opacity-50",children:"Welcome to MCP Client Console"})})}),N_=({requestHistory:e,serverNotifications:t})=>{const[n,r]=h.useState({}),[o,s]=h.useState({}),i=c=>{r(u=>({...u,[c]:!u[c]}))},a=c=>{s(u=>({...u,[c]:!u[c]}))},l=c=>{navigator.clipboard.writeText(c)};return p.jsxs("div",{className:"bg-card overflow-hidden flex h-full",children:[p.jsxs("div",{className:"flex-1 overflow-y-auto p-4 border-r",children:[p.jsx("h2",{className:"text-lg font-semibold mb-4",children:"History"}),e.length===0?p.jsx("p",{className:"text-sm text-gray-500 italic",children:"No history yet"}):p.jsx("ul",{className:"space-y-3",children:e.slice().reverse().map((c,u)=>p.jsxs("li",{className:"text-sm text-foreground bg-secondary p-2 rounded",children:[p.jsxs("div",{className:"flex justify-between items-center cursor-pointer",onClick:()=>i(e.length-1-u),children:[p.jsxs("span",{className:"font-mono",children:[e.length-u,"."," ",JSON.parse(c.request).method]}),p.jsx("span",{children:n[e.length-1-u]?"▼":"▶"})]}),n[e.length-1-u]&&p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"mt-2",children:[p.jsxs("div",{className:"flex justify-between items-center mb-1",children:[p.jsx("span",{className:"font-semibold text-blue-600",children:"Request:"}),p.jsx("button",{onClick:()=>l(c.request),className:"text-blue-500 hover:text-blue-700",children:p.jsx(Ml,{size:16})})]}),p.jsx("pre",{className:"whitespace-pre-wrap break-words bg-background p-2 rounded",children:JSON.stringify(JSON.parse(c.request),null,2)})]}),c.response&&p.jsxs("div",{className:"mt-2",children:[p.jsxs("div",{className:"flex justify-between items-center mb-1",children:[p.jsx("span",{className:"font-semibold text-green-600",children:"Response:"}),p.jsx("button",{onClick:()=>l(c.response),className:"text-blue-500 hover:text-blue-700",children:p.jsx(Ml,{size:16})})]}),p.jsx("pre",{className:"whitespace-pre-wrap break-words bg-background p-2 rounded",children:JSON.stringify(JSON.parse(c.response),null,2)})]})]})]},u))})]}),p.jsxs("div",{className:"flex-1 overflow-y-auto p-4",children:[p.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Server Notifications"}),t.length===0?p.jsx("p",{className:"text-sm text-gray-500 italic",children:"No notifications yet"}):p.jsx("ul",{className:"space-y-3",children:t.slice().reverse().map((c,u)=>p.jsxs("li",{className:"text-sm text-foreground bg-secondary p-2 rounded",children:[p.jsxs("div",{className:"flex justify-between items-center cursor-pointer",onClick:()=>a(u),children:[p.jsxs("span",{className:"font-mono",children:[t.length-u,"."," ",c.method]}),p.jsx("span",{children:o[u]?"▼":"▶"})]}),o[u]&&p.jsxs("div",{className:"mt-2",children:[p.jsxs("div",{className:"flex justify-between items-center mb-1",children:[p.jsx("span",{className:"font-semibold text-purple-600",children:"Details:"}),p.jsx("button",{onClick:()=>l(JSON.stringify(c)),className:"text-blue-500 hover:text-blue-700",children:p.jsx(Ml,{size:16})})]}),p.jsx("pre",{className:"whitespace-pre-wrap break-words bg-background p-2 rounded",children:JSON.stringify(c,null,2)})]})]},u))})]})]})};function Ag(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Ag(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function T_(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ag(e))&&(r&&(r+=" "),r+=t);return r}const Kf=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,Gf=T_,md=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Gf(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(c=>{const u=n==null?void 0:n[c],f=s==null?void 0:s[c];if(u===null)return null;const g=Kf(u)||Kf(f);return o[c][g]}),a=n&&Object.entries(n).reduce((c,u)=>{let[f,g]=u;return g===void 0||(c[f]=g),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:f,className:g,...x}=u;return Object.entries(x).every(w=>{let[v,_]=w;return Array.isArray(_)?_.includes({...s,...a}[v]):{...s,...a}[v]===_})?[...c,f,g]:c},[]);return Gf(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)},R_=md("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Ze=h.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const i=r?go:"button";return p.jsx(i,{className:$e(R_({variant:t,size:n,className:e})),ref:s,...o})});Ze.displayName="Button";const P_=({onPingClick:e})=>p.jsx(rr,{value:"ping",className:"grid grid-cols-2 gap-4",children:p.jsx("div",{className:"col-span-2 flex justify-center items-center",children:p.jsxs(Ze,{onClick:e,className:"bg-gradient-to-r from-purple-500 to-pink-500 hover:from-purple-600 hover:to-pink-600 text-white font-bold py-6 px-12 rounded-full shadow-lg transform transition duration-300 hover:scale-110 focus:outline-none focus:ring-4 focus:ring-purple-300 animate-pulse",children:[p.jsx("span",{className:"text-3xl mr-2",children:"🚀"}),"MEGA PING",p.jsx("span",{className:"text-3xl ml-2",children:"💥"})]})})}),j_=md("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),xn=h.forwardRef(({className:e,variant:t,...n},r)=>p.jsx("div",{ref:r,role:"alert",className:$e(j_({variant:t}),e),...n}));xn.displayName="Alert";const Za=h.forwardRef(({className:e,...t},n)=>p.jsx("h5",{ref:n,className:$e("mb-1 font-medium leading-none tracking-tight",e),...t}));Za.displayName="AlertTitle";const wn=h.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:$e("text-sm [&_p]:leading-relaxed",e),...t}));wn.displayName="AlertDescription";const Zt=h.forwardRef(({className:e,type:t,...n},r)=>p.jsx("input",{type:t,className:$e("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));Zt.displayName="Input";var I_="Label",Lg=h.forwardRef((e,t)=>p.jsx(me.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Lg.displayName=I_;var Dg=Lg;const O_=md("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),hd=h.forwardRef(({className:e,...t},n)=>p.jsx(Dg,{ref:n,className:$e(O_(),e),...t}));hd.displayName=Dg.displayName;const gd=h.forwardRef(({className:e,...t},n)=>p.jsx("textarea",{className:$e("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));gd.displayName="Textarea";const pa=({items:e,listItems:t,setSelectedItem:n,renderItem:r,title:o,buttonText:s,isButtonDisabled:i})=>p.jsxs("div",{className:"bg-card rounded-lg shadow",children:[p.jsx("div",{className:"p-4 border-b border-gray-200",children:p.jsx("h3",{className:"font-semibold",children:o})}),p.jsxs("div",{className:"p-4",children:[p.jsx(Ze,{variant:"outline",className:"w-full mb-4",onClick:t,disabled:i,children:s}),p.jsx("div",{className:"space-y-2 overflow-y-auto max-h-96",children:e.map((a,l)=>p.jsx("div",{className:"flex items-center p-2 rounded hover:bg-gray-50 cursor-pointer",onClick:()=>n(a),children:r(a)},l))})]})]}),M_=({prompts:e,listPrompts:t,getPrompt:n,selectedPrompt:r,setSelectedPrompt:o,promptContent:s,nextCursor:i,error:a})=>{var g;const[l,c]=h.useState({}),u=(x,w)=>{c(v=>({...v,[x]:w}))},f=()=>{r&&n(r.name,l)};return p.jsxs(rr,{value:"prompts",className:"grid grid-cols-2 gap-4",children:[p.jsx(pa,{items:e,listItems:t,setSelectedItem:x=>{o(x),c({})},renderItem:x=>p.jsxs(p.Fragment,{children:[p.jsx("span",{className:"flex-1",children:x.name}),p.jsx("span",{className:"text-sm text-gray-500",children:x.description})]}),title:"Prompts",buttonText:i?"List More Prompts":"List Prompts",isButtonDisabled:!i&&e.length>0}),p.jsxs("div",{className:"bg-card rounded-lg shadow",children:[p.jsx("div",{className:"p-4 border-b border-gray-200",children:p.jsx("h3",{className:"font-semibold",children:r?r.name:"Select a prompt"})}),p.jsx("div",{className:"p-4",children:a?p.jsxs(xn,{variant:"destructive",children:[p.jsx(pd,{className:"h-4 w-4"}),p.jsx(Za,{children:"Error"}),p.jsx(wn,{children:a})]}):r?p.jsxs("div",{className:"space-y-4",children:[r.description&&p.jsx("p",{className:"text-sm text-gray-600",children:r.description}),(g=r.arguments)==null?void 0:g.map(x=>p.jsxs("div",{children:[p.jsx(hd,{htmlFor:x.name,children:x.name}),p.jsx(Zt,{id:x.name,placeholder:`Enter ${x.name}`,value:l[x.name]||"",onChange:w=>u(x.name,w.target.value)}),x.description&&p.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:[x.description,x.required&&p.jsx("span",{className:"text-xs mt-1 ml-1",children:"(Required)"})]})]},x.name)),p.jsx(Ze,{onClick:f,className:"w-full",children:"Get Prompt"}),s&&p.jsx(gd,{value:s,readOnly:!0,className:"h-64 font-mono"})]}):p.jsx(xn,{children:p.jsx(wn,{children:"Select a prompt from the list to view and use it"})})})]})]})},A_=({resources:e,resourceTemplates:t,listResources:n,listResourceTemplates:r,readResource:o,selectedResource:s,setSelectedResource:i,resourceContent:a,nextCursor:l,nextTemplateCursor:c,error:u})=>{var m;const[f,g]=h.useState(null),[x,w]=h.useState({}),v=(d,y)=>d.replace(/{([^}]+)}/g,(C,k)=>y[k]||`{${k}}`),_=()=>{if(f){const d=v(f.uriTemplate,x);o(d),g(null),i({uri:d,name:d})}};return p.jsxs(rr,{value:"resources",className:"grid grid-cols-3 gap-4",children:[p.jsx(pa,{items:e,listItems:n,setSelectedItem:d=>{i(d),o(d.uri),g(null)},renderItem:d=>p.jsxs("div",{className:"flex items-center w-full",children:[p.jsx(qf,{className:"w-4 h-4 mr-2 flex-shrink-0 text-gray-500"}),p.jsx("span",{className:"flex-1 truncate",title:d.uri.toString(),children:d.name}),p.jsx(Wc,{className:"w-4 h-4 flex-shrink-0 text-gray-400"})]}),title:"Resources",buttonText:l?"List More Resources":"List Resources",isButtonDisabled:!l&&e.length>0}),p.jsx(pa,{items:t,listItems:r,setSelectedItem:d=>{g(d),i(null),w({})},renderItem:d=>p.jsxs("div",{className:"flex items-center w-full",children:[p.jsx(qf,{className:"w-4 h-4 mr-2 flex-shrink-0 text-gray-500"}),p.jsx("span",{className:"flex-1 truncate",title:d.uriTemplate,children:d.name}),p.jsx(Wc,{className:"w-4 h-4 flex-shrink-0 text-gray-400"})]}),title:"Resource Templates",buttonText:c?"List More Templates":"List Templates",isButtonDisabled:!c&&t.length>0}),p.jsxs("div",{className:"bg-card rounded-lg shadow",children:[p.jsxs("div",{className:"p-4 border-b border-gray-200 flex justify-between items-center",children:[p.jsx("h3",{className:"font-semibold truncate",title:(s==null?void 0:s.name)||(f==null?void 0:f.name),children:s?s.name:f?f.name:"Select a resource or template"}),s&&p.jsxs(Ze,{variant:"outline",size:"sm",onClick:()=>o(s.uri),children:[p.jsx(__,{className:"w-4 h-4 mr-2"}),"Refresh"]})]}),p.jsx("div",{className:"p-4",children:u?p.jsxs(xn,{variant:"destructive",children:[p.jsx(pd,{className:"h-4 w-4"}),p.jsx(Za,{children:"Error"}),p.jsx(wn,{children:u})]}):s?p.jsx("pre",{className:"bg-gray-50 p-4 rounded text-sm overflow-auto max-h-96 whitespace-pre-wrap break-words",children:a}):f?p.jsxs("div",{className:"space-y-4",children:[p.jsx("p",{className:"text-sm text-gray-600",children:f.description}),(m=f.uriTemplate.match(/{([^}]+)}/g))==null?void 0:m.map(d=>{const y=d.slice(1,-1);return p.jsxs("div",{children:[p.jsx("label",{htmlFor:y,className:"block text-sm font-medium text-gray-700",children:y}),p.jsx(Zt,{id:y,value:x[y]||"",onChange:C=>w({...x,[y]:C.target.value}),className:"mt-1"})]},y)}),p.jsx(Ze,{onClick:_,disabled:Object.keys(x).length===0,children:"Read Resource"})]}):p.jsx(xn,{children:p.jsx(wn,{children:"Select a resource or template from the list to view its contents"})})})]})]})},L_=({roots:e,setRoots:t,onRootsChange:n})=>{const r=()=>{t(a=>[...a,{uri:"file://",name:""}])},o=a=>{t(l=>l.filter((c,u)=>u!==a))},s=(a,l,c)=>{t(u=>u.map((f,g)=>g===a?{...f,[l]:c}:f))},i=()=>{n()};return p.jsxs(rr,{value:"roots",className:"space-y-4",children:[p.jsx(xn,{children:p.jsx(wn,{children:"Configure the root directories that the server can access"})}),e.map((a,l)=>p.jsxs("div",{className:"flex gap-2 items-center",children:[p.jsx(Zt,{placeholder:"file:// URI",value:a.uri,onChange:c=>s(l,"uri",c.target.value),className:"flex-1"}),p.jsx(Ze,{variant:"destructive",size:"sm",onClick:()=>o(l),children:p.jsx(x_,{className:"h-4 w-4"})})]},l)),p.jsxs("div",{className:"flex gap-2",children:[p.jsxs(Ze,{variant:"outline",onClick:r,children:[p.jsx(S_,{className:"h-4 w-4 mr-2"}),"Add Root"]}),p.jsxs(Ze,{onClick:i,children:[p.jsx(C_,{className:"h-4 w-4 mr-2"}),"Save Changes"]})]})]})},D_=({pendingRequests:e,onApprove:t,onReject:n})=>{const r=o=>{t(o,{model:"stub-model",stopReason:"endTurn",role:"assistant",content:{type:"text",text:"This is a stub response."}})};return p.jsxs(rr,{value:"sampling",className:"h-96",children:[p.jsx(xn,{children:p.jsx(wn,{children:"When the server requests LLM sampling, requests will appear here for approval."})}),p.jsxs("div",{className:"mt-4 space-y-4",children:[p.jsx("h3",{className:"text-lg font-semibold",children:"Recent Requests"}),e.map(o=>p.jsxs("div",{className:"p-4 border rounded-lg space-y-4",children:[p.jsx("pre",{className:"bg-gray-50 p-2 rounded",children:JSON.stringify(o.request,null,2)}),p.jsxs("div",{className:"flex space-x-2",children:[p.jsx(Ze,{onClick:()=>r(o.id),children:"Approve"}),p.jsx(Ze,{variant:"outline",onClick:()=>n(o.id),children:"Reject"})]})]},o.id)),e.length===0&&p.jsx("p",{className:"text-gray-500",children:"No pending requests"})]})]})};function qa(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var z_=["color"],$_=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=qa(e,z_);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),F_=["color"],V_=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=qa(e,F_);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),B_=["color"],U_=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=qa(e,B_);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),H_=["color"],W_=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=qa(e,H_);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});function Qf(e,[t,n]){return Math.min(n,Math.max(t,e))}function Z_(e,t=[]){let n=[];function r(s,i){const a=h.createContext(i),l=n.length;n=[...n,i];const c=f=>{var m;const{scope:g,children:x,...w}=f,v=((m=g==null?void 0:g[e])==null?void 0:m[l])||a,_=h.useMemo(()=>w,Object.values(w));return p.jsx(v.Provider,{value:_,children:x})};c.displayName=s+"Provider";function u(f,g){var v;const x=((v=g==null?void 0:g[e])==null?void 0:v[l])||a,w=h.useContext(x);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[c,u]}const o=()=>{const s=n.map(i=>h.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return h.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,q_(o,...t)]}function q_(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const f=l(s)[`__scope${c}`];return{...a,...f}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function K_(e,t=globalThis==null?void 0:globalThis.document){const n=Jt(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var G_="DismissableLayer",Zc="dismissableLayer.update",Q_="dismissableLayer.pointerDownOutside",Y_="dismissableLayer.focusOutside",Yf,zg=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$g=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,c=h.useContext(zg),[u,f]=h.useState(null),g=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,x]=h.useState({}),w=Oe(t,b=>f(b)),v=Array.from(c.layers),[_]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),m=v.indexOf(_),d=u?v.indexOf(u):-1,y=c.layersWithOutsidePointerEventsDisabled.size>0,C=d>=m,k=eC(b=>{const E=b.target,I=[...c.branches].some(j=>j.contains(E));!C||I||(o==null||o(b),i==null||i(b),b.defaultPrevented||a==null||a())},g),T=tC(b=>{const E=b.target;[...c.branches].some(j=>j.contains(E))||(s==null||s(b),i==null||i(b),b.defaultPrevented||a==null||a())},g);return K_(b=>{d===c.layers.size-1&&(r==null||r(b),!b.defaultPrevented&&a&&(b.preventDefault(),a()))},g),h.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Yf=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),Xf(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Yf)}},[u,g,n,c]),h.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),Xf())},[u,c]),h.useEffect(()=>{const b=()=>x({});return document.addEventListener(Zc,b),()=>document.removeEventListener(Zc,b)},[]),p.jsx(me.div,{...l,ref:w,style:{pointerEvents:y?C?"auto":"none":void 0,...e.style},onFocusCapture:ue(e.onFocusCapture,T.onFocusCapture),onBlurCapture:ue(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:ue(e.onPointerDownCapture,k.onPointerDownCapture)})});$g.displayName=G_;var X_="DismissableLayerBranch",J_=h.forwardRef((e,t)=>{const n=h.useContext(zg),r=h.useRef(null),o=Oe(t,r);return h.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),p.jsx(me.div,{...e,ref:o})});J_.displayName=X_;function eC(e,t=globalThis==null?void 0:globalThis.document){const n=Jt(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){Fg(Q_,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function tC(e,t=globalThis==null?void 0:globalThis.document){const n=Jt(e),r=h.useRef(!1);return h.useEffect(()=>{const o=s=>{s.target&&!r.current&&Fg(Y_,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Xf(){const e=new CustomEvent(Zc);document.dispatchEvent(e)}function Fg(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?cS(o,s):o.dispatchEvent(s)}var Al=0;function nC(){h.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Jf()),document.body.insertAdjacentElement("beforeend",e[1]??Jf()),Al++,()=>{Al===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Al--}},[])}function Jf(){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 Ll="focusScope.autoFocusOnMount",Dl="focusScope.autoFocusOnUnmount",ep={bubbles:!1,cancelable:!0},rC="FocusScope",Vg=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,l]=h.useState(null),c=Jt(o),u=Jt(s),f=h.useRef(null),g=Oe(t,v=>l(v)),x=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let v=function(y){if(x.paused||!a)return;const C=y.target;a.contains(C)?f.current=C:Tn(f.current,{select:!0})},_=function(y){if(x.paused||!a)return;const C=y.relatedTarget;C!==null&&(a.contains(C)||Tn(f.current,{select:!0}))},m=function(y){if(document.activeElement===document.body)for(const k of y)k.removedNodes.length>0&&Tn(a)};document.addEventListener("focusin",v),document.addEventListener("focusout",_);const d=new MutationObserver(m);return a&&d.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",_),d.disconnect()}}},[r,a,x.paused]),h.useEffect(()=>{if(a){np.add(x);const v=document.activeElement;if(!a.contains(v)){const m=new CustomEvent(Ll,ep);a.addEventListener(Ll,c),a.dispatchEvent(m),m.defaultPrevented||(oC(cC(Bg(a)),{select:!0}),document.activeElement===v&&Tn(a))}return()=>{a.removeEventListener(Ll,c),setTimeout(()=>{const m=new CustomEvent(Dl,ep);a.addEventListener(Dl,u),a.dispatchEvent(m),m.defaultPrevented||Tn(v??document.body,{select:!0}),a.removeEventListener(Dl,u),np.remove(x)},0)}}},[a,c,u,x]);const w=h.useCallback(v=>{if(!n&&!r||x.paused)return;const _=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,m=document.activeElement;if(_&&m){const d=v.currentTarget,[y,C]=sC(d);y&&C?!v.shiftKey&&m===C?(v.preventDefault(),n&&Tn(y,{select:!0})):v.shiftKey&&m===y&&(v.preventDefault(),n&&Tn(C,{select:!0})):m===d&&v.preventDefault()}},[n,r,x.paused]);return p.jsx(me.div,{tabIndex:-1,...i,ref:g,onKeyDown:w})});Vg.displayName=rC;function oC(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Tn(r,{select:t}),document.activeElement!==n)return}function sC(e){const t=Bg(e),n=tp(t,e),r=tp(t.reverse(),e);return[n,r]}function Bg(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function tp(e,t){for(const n of e)if(!iC(n,{upTo:t}))return n}function iC(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 aC(e){return e instanceof HTMLInputElement&&"select"in e}function Tn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&aC(e)&&t&&e.select()}}var np=lC();function lC(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=rp(e,t),e.unshift(t)},remove(t){var n;e=rp(e,t),(n=e[0])==null||n.resume()}}}function rp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function cC(e){return e.filter(t=>t.tagName!=="A")}const uC=["top","right","bottom","left"],Qn=Math.min,ut=Math.max,ma=Math.round,pi=Math.floor,Yn=e=>({x:e,y:e}),dC={left:"right",right:"left",bottom:"top",top:"bottom"},fC={start:"end",end:"start"};function qc(e,t,n){return ut(e,Qn(t,n))}function Sn(e,t){return typeof e=="function"?e(t):e}function _n(e){return e.split("-")[0]}function Co(e){return e.split("-")[1]}function vd(e){return e==="x"?"y":"x"}function yd(e){return e==="y"?"height":"width"}function Xn(e){return["top","bottom"].includes(_n(e))?"y":"x"}function xd(e){return vd(Xn(e))}function pC(e,t,n){n===void 0&&(n=!1);const r=Co(e),o=xd(e),s=yd(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=ha(i)),[i,ha(i)]}function mC(e){const t=ha(e);return[Kc(e),t,Kc(t)]}function Kc(e){return e.replace(/start|end/g,t=>fC[t])}function hC(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:i;default:return[]}}function gC(e,t,n,r){const o=Co(e);let s=hC(_n(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Kc)))),s}function ha(e){return e.replace(/left|right|bottom|top/g,t=>dC[t])}function vC(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ug(e){return typeof e!="number"?vC(e):{top:e,right:e,bottom:e,left:e}}function ga(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function op(e,t,n){let{reference:r,floating:o}=e;const s=Xn(t),i=xd(t),a=yd(i),l=_n(t),c=s==="y",u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,g=r[a]/2-o[a]/2;let x;switch(l){case"top":x={x:u,y:r.y-o.height};break;case"bottom":x={x:u,y:r.y+r.height};break;case"right":x={x:r.x+r.width,y:f};break;case"left":x={x:r.x-o.width,y:f};break;default:x={x:r.x,y:r.y}}switch(Co(t)){case"start":x[i]-=g*(n&&c?-1:1);break;case"end":x[i]+=g*(n&&c?-1:1);break}return x}const yC=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=op(c,r,l),g=r,x={},w=0;for(let v=0;v<a.length;v++){const{name:_,fn:m}=a[v],{x:d,y,data:C,reset:k}=await m({x:u,y:f,initialPlacement:r,placement:g,strategy:o,middlewareData:x,rects:c,platform:i,elements:{reference:e,floating:t}});u=d??u,f=y??f,x={...x,[_]:{...x[_],...C}},k&&w<=50&&(w++,typeof k=="object"&&(k.placement&&(g=k.placement),k.rects&&(c=k.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:u,y:f}=op(c,g,l)),v=-1)}return{x:u,y:f,placement:g,strategy:o,middlewareData:x}};async function Ms(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:g=!1,padding:x=0}=Sn(t,e),w=Ug(x),_=a[g?f==="floating"?"reference":"floating":f],m=ga(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(_)))==null||n?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),d=f==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),C=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},k=ga(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:d,offsetParent:y,strategy:l}):d);return{top:(m.top-k.top+w.top)/C.y,bottom:(k.bottom-m.bottom+w.bottom)/C.y,left:(m.left-k.left+w.left)/C.x,right:(k.right-m.right+w.right)/C.x}}const xC=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=Sn(e,t)||{};if(c==null)return{};const f=Ug(u),g={x:n,y:r},x=xd(o),w=yd(x),v=await i.getDimensions(c),_=x==="y",m=_?"top":"left",d=_?"bottom":"right",y=_?"clientHeight":"clientWidth",C=s.reference[w]+s.reference[x]-g[x]-s.floating[w],k=g[x]-s.reference[x],T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let b=T?T[y]:0;(!b||!await(i.isElement==null?void 0:i.isElement(T)))&&(b=a.floating[y]||s.floating[w]);const E=C/2-k/2,I=b/2-v[w]/2-1,j=Qn(f[m],I),V=Qn(f[d],I),M=j,q=b-v[w]-V,W=b/2-v[w]/2+E,J=qc(M,W,q),F=!l.arrow&&Co(o)!=null&&W!==J&&s.reference[w]/2-(W<M?j:V)-v[w]/2<0,K=F?W<M?W-M:W-q:0;return{[x]:g[x]+K,data:{[x]:J,centerOffset:W-J-K,...F&&{alignmentOffset:K}},reset:F}}}),wC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:v=!0,..._}=Sn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const m=_n(o),d=Xn(a),y=_n(a)===a,C=await(l.isRTL==null?void 0:l.isRTL(c.floating)),k=g||(y||!v?[ha(a)]:mC(a)),T=w!=="none";!g&&T&&k.push(...gC(a,v,w,C));const b=[a,...k],E=await Ms(t,_),I=[];let j=((r=s.flip)==null?void 0:r.overflows)||[];if(u&&I.push(E[m]),f){const W=pC(o,i,C);I.push(E[W[0]],E[W[1]])}if(j=[...j,{placement:o,overflows:I}],!I.every(W=>W<=0)){var V,M;const W=(((V=s.flip)==null?void 0:V.index)||0)+1,J=b[W];if(J)return{data:{index:W,overflows:j},reset:{placement:J}};let F=(M=j.filter(K=>K.overflows[0]<=0).sort((K,N)=>K.overflows[1]-N.overflows[1])[0])==null?void 0:M.placement;if(!F)switch(x){case"bestFit":{var q;const K=(q=j.filter(N=>{if(T){const O=Xn(N.placement);return O===d||O==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(O=>O>0).reduce((O,D)=>O+D,0)]).sort((N,O)=>N[1]-O[1])[0])==null?void 0:q[0];K&&(F=K);break}case"initialPlacement":F=a;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function sp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ip(e){return uC.some(t=>e[t]>=0)}const SC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Sn(e,t);switch(r){case"referenceHidden":{const s=await Ms(t,{...o,elementContext:"reference"}),i=sp(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:ip(i)}}}case"escaped":{const s=await Ms(t,{...o,altBoundary:!0}),i=sp(s,n.floating);return{data:{escapedOffsets:i,escaped:ip(i)}}}default:return{}}}}};async function _C(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=_n(n),a=Co(n),l=Xn(n)==="y",c=["left","top"].includes(i)?-1:1,u=s&&l?-1:1,f=Sn(t,e);let{mainAxis:g,crossAxis:x,alignmentAxis:w}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof w=="number"&&(x=a==="end"?w*-1:w),l?{x:x*u,y:g*c}:{x:g*c,y:x*u}}const CC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await _C(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},kC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:_=>{let{x:m,y:d}=_;return{x:m,y:d}}},...l}=Sn(e,t),c={x:n,y:r},u=await Ms(t,l),f=Xn(_n(o)),g=vd(f);let x=c[g],w=c[f];if(s){const _=g==="y"?"top":"left",m=g==="y"?"bottom":"right",d=x+u[_],y=x-u[m];x=qc(d,x,y)}if(i){const _=f==="y"?"top":"left",m=f==="y"?"bottom":"right",d=w+u[_],y=w-u[m];w=qc(d,w,y)}const v=a.fn({...t,[g]:x,[f]:w});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[g]:s,[f]:i}}}}}},EC=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Sn(e,t),u={x:n,y:r},f=Xn(o),g=vd(f);let x=u[g],w=u[f];const v=Sn(a,t),_=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const y=g==="y"?"height":"width",C=s.reference[g]-s.floating[y]+_.mainAxis,k=s.reference[g]+s.reference[y]-_.mainAxis;x<C?x=C:x>k&&(x=k)}if(c){var m,d;const y=g==="y"?"width":"height",C=["top","left"].includes(_n(o)),k=s.reference[f]-s.floating[y]+(C&&((m=i.offset)==null?void 0:m[f])||0)+(C?0:_.crossAxis),T=s.reference[f]+s.reference[y]+(C?0:((d=i.offset)==null?void 0:d[f])||0)-(C?_.crossAxis:0);w<k?w=k:w>T&&(w=T)}return{[g]:x,[f]:w}}}},bC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...c}=Sn(e,t),u=await Ms(t,c),f=_n(o),g=Co(o),x=Xn(o)==="y",{width:w,height:v}=s.floating;let _,m;f==="top"||f==="bottom"?(_=f,m=g===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(m=f,_=g==="end"?"top":"bottom");const d=v-u.top-u.bottom,y=w-u.left-u.right,C=Qn(v-u[_],d),k=Qn(w-u[m],y),T=!t.middlewareData.shift;let b=C,E=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(b=d),T&&!g){const j=ut(u.left,0),V=ut(u.right,0),M=ut(u.top,0),q=ut(u.bottom,0);x?E=w-2*(j!==0||V!==0?j+V:ut(u.left,u.right)):b=v-2*(M!==0||q!==0?M+q:ut(u.top,u.bottom))}await l({...t,availableWidth:E,availableHeight:b});const I=await i.getDimensions(a.floating);return w!==I.width||v!==I.height?{reset:{rects:!0}}:{}}}};function Ka(){return typeof window<"u"}function ko(e){return Hg(e)?(e.nodeName||"").toLowerCase():"#document"}function ht(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function nn(e){var t;return(t=(Hg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Hg(e){return Ka()?e instanceof Node||e instanceof ht(e).Node:!1}function $t(e){return Ka()?e instanceof Element||e instanceof ht(e).Element:!1}function en(e){return Ka()?e instanceof HTMLElement||e instanceof ht(e).HTMLElement:!1}function ap(e){return!Ka()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ht(e).ShadowRoot}function Hs(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ft(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function NC(e){return["table","td","th"].includes(ko(e))}function Ga(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function wd(e){const t=Sd(),n=$t(e)?Ft(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function TC(e){let t=Jn(e);for(;en(t)&&!vo(t);){if(wd(t))return t;if(Ga(t))return null;t=Jn(t)}return null}function Sd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function vo(e){return["html","body","#document"].includes(ko(e))}function Ft(e){return ht(e).getComputedStyle(e)}function Qa(e){return $t(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Jn(e){if(ko(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ap(e)&&e.host||nn(e);return ap(t)?t.host:t}function Wg(e){const t=Jn(e);return vo(t)?e.ownerDocument?e.ownerDocument.body:e.body:en(t)&&Hs(t)?t:Wg(t)}function As(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Wg(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=ht(o);if(s){const a=Gc(i);return t.concat(i,i.visualViewport||[],Hs(o)?o:[],a&&n?As(a):[])}return t.concat(o,As(o,[],n))}function Gc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Zg(e){const t=Ft(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=en(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=ma(n)!==s||ma(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function _d(e){return $t(e)?e:e.contextElement}function ro(e){const t=_d(e);if(!en(t))return Yn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Zg(t);let i=(s?ma(n.width):n.width)/r,a=(s?ma(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const RC=Yn(0);function qg(e){const t=ht(e);return!Sd()||!t.visualViewport?RC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function PC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ht(e)?!1:t}function br(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=_d(e);let i=Yn(1);t&&(r?$t(r)&&(i=ro(r)):i=ro(e));const a=PC(s,n,r)?qg(s):Yn(0);let l=(o.left+a.x)/i.x,c=(o.top+a.y)/i.y,u=o.width/i.x,f=o.height/i.y;if(s){const g=ht(s),x=r&&$t(r)?ht(r):r;let w=g,v=Gc(w);for(;v&&r&&x!==w;){const _=ro(v),m=v.getBoundingClientRect(),d=Ft(v),y=m.left+(v.clientLeft+parseFloat(d.paddingLeft))*_.x,C=m.top+(v.clientTop+parseFloat(d.paddingTop))*_.y;l*=_.x,c*=_.y,u*=_.x,f*=_.y,l+=y,c+=C,w=ht(v),v=Gc(w)}}return ga({width:u,height:f,x:l,y:c})}function jC(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=nn(r),a=t?Ga(t.floating):!1;if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=Yn(1);const u=Yn(0),f=en(r);if((f||!f&&!s)&&((ko(r)!=="body"||Hs(i))&&(l=Qa(r)),en(r))){const g=br(r);c=ro(r),u.x=g.x+r.clientLeft,u.y=g.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}}function IC(e){return Array.from(e.getClientRects())}function Qc(e,t){const n=Qa(e).scrollLeft;return t?t.left+n:br(nn(e)).left+n}function OC(e){const t=nn(e),n=Qa(e),r=e.ownerDocument.body,o=ut(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ut(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Qc(e);const a=-n.scrollTop;return Ft(r).direction==="rtl"&&(i+=ut(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}function MC(e,t){const n=ht(e),r=nn(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const c=Sd();(!c||c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a,y:l}}function AC(e,t){const n=br(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=en(e)?ro(e):Yn(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=o*s.x,c=r*s.y;return{width:i,height:a,x:l,y:c}}function lp(e,t,n){let r;if(t==="viewport")r=MC(e,n);else if(t==="document")r=OC(nn(e));else if($t(t))r=AC(t,n);else{const o=qg(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return ga(r)}function Kg(e,t){const n=Jn(e);return n===t||!$t(n)||vo(n)?!1:Ft(n).position==="fixed"||Kg(n,t)}function LC(e,t){const n=t.get(e);if(n)return n;let r=As(e,[],!1).filter(a=>$t(a)&&ko(a)!=="body"),o=null;const s=Ft(e).position==="fixed";let i=s?Jn(e):e;for(;$t(i)&&!vo(i);){const a=Ft(i),l=wd(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Hs(i)&&!l&&Kg(e,i))?r=r.filter(u=>u!==i):o=a,i=Jn(i)}return t.set(e,r),r}function DC(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Ga(t)?[]:LC(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((c,u)=>{const f=lp(t,u,o);return c.top=ut(f.top,c.top),c.right=Qn(f.right,c.right),c.bottom=Qn(f.bottom,c.bottom),c.left=ut(f.left,c.left),c},lp(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function zC(e){const{width:t,height:n}=Zg(e);return{width:t,height:n}}function $C(e,t,n){const r=en(t),o=nn(t),s=n==="fixed",i=br(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Yn(0);if(r||!r&&!s)if((ko(t)!=="body"||Hs(o))&&(a=Qa(t)),r){const x=br(t,!0,s,t);l.x=x.x+t.clientLeft,l.y=x.y+t.clientTop}else o&&(l.x=Qc(o));let c=0,u=0;if(o&&!r&&!s){const x=o.getBoundingClientRect();u=x.top+a.scrollTop,c=x.left+a.scrollLeft-Qc(o,x)}const f=i.left+a.scrollLeft-l.x-c,g=i.top+a.scrollTop-l.y-u;return{x:f,y:g,width:i.width,height:i.height}}function zl(e){return Ft(e).position==="static"}function cp(e,t){if(!en(e)||Ft(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return nn(e)===n&&(n=n.ownerDocument.body),n}function Gg(e,t){const n=ht(e);if(Ga(e))return n;if(!en(e)){let o=Jn(e);for(;o&&!vo(o);){if($t(o)&&!zl(o))return o;o=Jn(o)}return n}let r=cp(e,t);for(;r&&NC(r)&&zl(r);)r=cp(r,t);return r&&vo(r)&&zl(r)&&!wd(r)?n:r||TC(e)||n}const FC=async function(e){const t=this.getOffsetParent||Gg,n=this.getDimensions,r=await n(e.floating);return{reference:$C(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function VC(e){return Ft(e).direction==="rtl"}const BC={convertOffsetParentRelativeRectToViewportRelativeRect:jC,getDocumentElement:nn,getClippingRect:DC,getOffsetParent:Gg,getElementRects:FC,getClientRects:IC,getDimensions:zC,getScale:ro,isElement:$t,isRTL:VC};function UC(e,t){let n=null,r;const o=nn(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const{left:c,top:u,width:f,height:g}=e.getBoundingClientRect();if(a||t(),!f||!g)return;const x=pi(u),w=pi(o.clientWidth-(c+f)),v=pi(o.clientHeight-(u+g)),_=pi(c),d={rootMargin:-x+"px "+-w+"px "+-v+"px "+-_+"px",threshold:ut(0,Qn(1,l))||1};let y=!0;function C(k){const T=k[0].intersectionRatio;if(T!==l){if(!y)return i();T?i(!1,T):r=setTimeout(()=>{i(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(C,{...d,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,d)}n.observe(e)}return i(!0),s}function HC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=_d(e),u=o||s?[...c?As(c):[],...As(t)]:[];u.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),s&&m.addEventListener("resize",n)});const f=c&&a?UC(c,n):null;let g=-1,x=null;i&&(x=new ResizeObserver(m=>{let[d]=m;d&&d.target===c&&x&&(x.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var y;(y=x)==null||y.observe(t)})),n()}),c&&!l&&x.observe(c),x.observe(t));let w,v=l?br(e):null;l&&_();function _(){const m=br(e);v&&(m.x!==v.x||m.y!==v.y||m.width!==v.width||m.height!==v.height)&&n(),v=m,w=requestAnimationFrame(_)}return n(),()=>{var m;u.forEach(d=>{o&&d.removeEventListener("scroll",n),s&&d.removeEventListener("resize",n)}),f==null||f(),(m=x)==null||m.disconnect(),x=null,l&&cancelAnimationFrame(w)}}const WC=CC,ZC=kC,qC=wC,KC=bC,GC=SC,up=xC,QC=EC,YC=(e,t,n)=>{const r=new Map,o={platform:BC,...n},s={...o.platform,_c:r};return yC(e,t,{...o,platform:s})};var ji=typeof document<"u"?h.useLayoutEffect:h.useEffect;function va(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!va(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!va(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Qg(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function dp(e,t){const n=Qg(e);return Math.round(t*n)/n}function $l(e){const t=h.useRef(e);return ji(()=>{t.current=e}),t}function XC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,f]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,x]=h.useState(r);va(g,r)||x(r);const[w,v]=h.useState(null),[_,m]=h.useState(null),d=h.useCallback(N=>{N!==T.current&&(T.current=N,v(N))},[]),y=h.useCallback(N=>{N!==b.current&&(b.current=N,m(N))},[]),C=s||w,k=i||_,T=h.useRef(null),b=h.useRef(null),E=h.useRef(u),I=l!=null,j=$l(l),V=$l(o),M=$l(c),q=h.useCallback(()=>{if(!T.current||!b.current)return;const N={placement:t,strategy:n,middleware:g};V.current&&(N.platform=V.current),YC(T.current,b.current,N).then(O=>{const D={...O,isPositioned:M.current!==!1};W.current&&!va(E.current,D)&&(E.current=D,So.flushSync(()=>{f(D)}))})},[g,t,n,V,M]);ji(()=>{c===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f(N=>({...N,isPositioned:!1})))},[c]);const W=h.useRef(!1);ji(()=>(W.current=!0,()=>{W.current=!1}),[]),ji(()=>{if(C&&(T.current=C),k&&(b.current=k),C&&k){if(j.current)return j.current(C,k,q);q()}},[C,k,q,j,I]);const J=h.useMemo(()=>({reference:T,floating:b,setReference:d,setFloating:y}),[d,y]),F=h.useMemo(()=>({reference:C,floating:k}),[C,k]),K=h.useMemo(()=>{const N={position:n,left:0,top:0};if(!F.floating)return N;const O=dp(F.floating,u.x),D=dp(F.floating,u.y);return a?{...N,transform:"translate("+O+"px, "+D+"px)",...Qg(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:D}},[n,a,F.floating,u.x,u.y]);return h.useMemo(()=>({...u,update:q,refs:J,elements:F,floatingStyles:K}),[u,q,J,F,K])}const JC=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?up({element:r.current,padding:o}).fn(n):{}:r?up({element:r,padding:o}).fn(n):{}}}},ek=(e,t)=>({...WC(e),options:[e,t]}),tk=(e,t)=>({...ZC(e),options:[e,t]}),nk=(e,t)=>({...QC(e),options:[e,t]}),rk=(e,t)=>({...qC(e),options:[e,t]}),ok=(e,t)=>({...KC(e),options:[e,t]}),sk=(e,t)=>({...GC(e),options:[e,t]}),ik=(e,t)=>({...JC(e),options:[e,t]});var ak="Arrow",Yg=h.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return p.jsx(me.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});Yg.displayName=ak;var lk=Yg;function ck(e){const[t,n]=h.useState(void 0);return et(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,c=Array.isArray(l)?l[0]:l;i=c.inlineSize,a=c.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Cd="Popper",[Xg,Jg]=ld(Cd),[uk,ev]=Xg(Cd),tv=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return p.jsx(uk,{scope:t,anchor:r,onAnchorChange:o,children:n})};tv.displayName=Cd;var nv="PopperAnchor",rv=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=ev(nv,n),i=h.useRef(null),a=Oe(t,i);return h.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:p.jsx(me.div,{...o,ref:a})});rv.displayName=nv;var kd="PopperContent",[dk,fk]=Xg(kd),ov=h.forwardRef((e,t)=>{var B,ce,Ae,fe,le,ie;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:f="partial",hideWhenDetached:g=!1,updatePositionStrategy:x="optimized",onPlaced:w,...v}=e,_=ev(kd,n),[m,d]=h.useState(null),y=Oe(t,Ge=>d(Ge)),[C,k]=h.useState(null),T=ck(C),b=(T==null?void 0:T.width)??0,E=(T==null?void 0:T.height)??0,I=r+(s!=="center"?"-"+s:""),j=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},V=Array.isArray(c)?c:[c],M=V.length>0,q={padding:j,boundary:V.filter(mk),altBoundary:M},{refs:W,floatingStyles:J,placement:F,isPositioned:K,middlewareData:N}=XC({strategy:"fixed",placement:I,whileElementsMounted:(...Ge)=>HC(...Ge,{animationFrame:x==="always"}),elements:{reference:_.anchor},middleware:[ek({mainAxis:o+E,alignmentAxis:i}),l&&tk({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?nk():void 0,...q}),l&&rk({...q}),ok({...q,apply:({elements:Ge,rects:rt,availableWidth:ir,availableHeight:rn})=>{const{width:ar,height:bo}=rt.reference,Pr=Ge.floating.style;Pr.setProperty("--radix-popper-available-width",`${ir}px`),Pr.setProperty("--radix-popper-available-height",`${rn}px`),Pr.setProperty("--radix-popper-anchor-width",`${ar}px`),Pr.setProperty("--radix-popper-anchor-height",`${bo}px`)}}),C&&ik({element:C,padding:a}),hk({arrowWidth:b,arrowHeight:E}),g&&sk({strategy:"referenceHidden",...q})]}),[O,D]=av(F),H=Jt(w);et(()=>{K&&(H==null||H())},[K,H]);const ee=(B=N.arrow)==null?void 0:B.x,he=(ce=N.arrow)==null?void 0:ce.y,ae=((Ae=N.arrow)==null?void 0:Ae.centerOffset)!==0,[_e,ve]=h.useState();return et(()=>{m&&ve(window.getComputedStyle(m).zIndex)},[m]),p.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:K?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:_e,"--radix-popper-transform-origin":[(fe=N.transformOrigin)==null?void 0:fe.x,(le=N.transformOrigin)==null?void 0:le.y].join(" "),...((ie=N.hide)==null?void 0:ie.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(dk,{scope:n,placedSide:O,onArrowChange:k,arrowX:ee,arrowY:he,shouldHideArrow:ae,children:p.jsx(me.div,{"data-side":O,"data-align":D,...v,ref:y,style:{...v.style,animation:K?void 0:"none"}})})})});ov.displayName=kd;var sv="PopperArrow",pk={top:"bottom",right:"left",bottom:"top",left:"right"},iv=h.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=fk(sv,r),i=pk[s.placedSide];return p.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:p.jsx(lk,{...o,ref:n,style:{...o.style,display:"block"}})})});iv.displayName=sv;function mk(e){return e!==null}var hk=e=>({name:"transformOrigin",options:e,fn(t){var _,m,d;const{placement:n,rects:r,middlewareData:o}=t,i=((_=o.arrow)==null?void 0:_.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[c,u]=av(n),f={start:"0%",center:"50%",end:"100%"}[u],g=(((m=o.arrow)==null?void 0:m.x)??0)+a/2,x=(((d=o.arrow)==null?void 0:d.y)??0)+l/2;let w="",v="";return c==="bottom"?(w=i?f:`${g}px`,v=`${-l}px`):c==="top"?(w=i?f:`${g}px`,v=`${r.floating.height+l}px`):c==="right"?(w=`${-l}px`,v=i?f:`${x}px`):c==="left"&&(w=`${r.floating.width+l}px`,v=i?f:`${x}px`),{data:{x:w,y:v}}}});function av(e){const[t,n="center"]=e.split("-");return[t,n]}var gk=tv,vk=rv,yk=ov,xk=iv,wk="Portal",lv=h.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=h.useState(!1);et(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?W1.createPortal(p.jsx(me.div,{...r,ref:t}),i):null});lv.displayName=wk;function Sk(e){const t=h.useRef({value:e,previous:e});return h.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var _k="VisuallyHidden",cv=h.forwardRef((e,t)=>p.jsx(me.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));cv.displayName=_k;var Ck=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ir=new WeakMap,mi=new WeakMap,hi={},Fl=0,uv=function(e){return e&&(e.host||uv(e.parentNode))},kk=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=uv(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Ek=function(e,t,n,r){var o=kk(t,Array.isArray(e)?e:[e]);hi[n]||(hi[n]=new WeakMap);var s=hi[n],i=[],a=new Set,l=new Set(o),c=function(f){!f||a.has(f)||(a.add(f),c(f.parentNode))};o.forEach(c);var u=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(g){if(a.has(g))u(g);else try{var x=g.getAttribute(r),w=x!==null&&x!=="false",v=(Ir.get(g)||0)+1,_=(s.get(g)||0)+1;Ir.set(g,v),s.set(g,_),i.push(g),v===1&&w&&mi.set(g,!0),_===1&&g.setAttribute(n,"true"),w||g.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",g,m)}})};return u(t),a.clear(),Fl++,function(){i.forEach(function(f){var g=Ir.get(f)-1,x=s.get(f)-1;Ir.set(f,g),s.set(f,x),g||(mi.has(f)||f.removeAttribute(r),mi.delete(f)),x||f.removeAttribute(n)}),Fl--,Fl||(Ir=new WeakMap,Ir=new WeakMap,mi=new WeakMap,hi={})}},bk=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Ck(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Ek(r,o,n,"aria-hidden")):function(){return null}},qt=function(){return qt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},qt.apply(this,arguments)};function dv(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Nk(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var Ii="right-scroll-bar-position",Oi="width-before-scroll-bar",Tk="with-scroll-bars-hidden",Rk="--removed-body-scroll-bar-size";function Vl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Pk(e,t){var n=h.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var jk=typeof window<"u"?h.useLayoutEffect:h.useEffect,fp=new WeakMap;function Ik(e,t){var n=Pk(null,function(r){return e.forEach(function(o){return Vl(o,r)})});return jk(function(){var r=fp.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||Vl(a,null)}),s.forEach(function(a){o.has(a)||Vl(a,i)})}fp.set(n,e)},[e]),n}function Ok(e){return e}function Mk(e,t){t===void 0&&(t=Ok);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var l=function(){var u=i;i=[],u.forEach(s)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(u){i.push(u),c()},filter:function(u){return i=i.filter(u),n}}}};return o}function Ak(e){e===void 0&&(e={});var t=Mk(null);return t.options=qt({async:!0,ssr:!1},e),t}var fv=function(e){var t=e.sideCar,n=dv(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return h.createElement(r,qt({},n))};fv.isSideCarExport=!0;function Lk(e,t){return e.useMedium(t),fv}var pv=Ak(),Bl=function(){},Ya=h.forwardRef(function(e,t){var n=h.useRef(null),r=h.useState({onScrollCapture:Bl,onWheelCapture:Bl,onTouchMoveCapture:Bl}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,f=e.shards,g=e.sideCar,x=e.noIsolation,w=e.inert,v=e.allowPinchZoom,_=e.as,m=_===void 0?"div":_,d=e.gapMode,y=dv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=g,k=Ik([n,t]),T=qt(qt({},y),o);return h.createElement(h.Fragment,null,u&&h.createElement(C,{sideCar:pv,removeScrollBar:c,shards:f,noIsolation:x,inert:w,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:d}),i?h.cloneElement(h.Children.only(a),qt(qt({},T),{ref:k})):h.createElement(m,qt({},T,{className:l,ref:k}),a))});Ya.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ya.classNames={fullWidth:Oi,zeroRight:Ii};var Dk=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function zk(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Dk();return t&&e.setAttribute("nonce",t),e}function $k(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Fk(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Vk=function(){var e=0,t=null;return{add:function(n){e==0&&(t=zk())&&($k(t,n),Fk(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Bk=function(){var e=Vk();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},mv=function(){var e=Bk(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Uk={left:0,top:0,right:0,gap:0},Ul=function(e){return parseInt(e||"",10)||0},Hk=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ul(n),Ul(r),Ul(o)]},Wk=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Uk;var t=Hk(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Zk=mv(),oo="data-scroll-locked",qk=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
156
|
-
.`.concat(Tk,` {
|
|
157
|
-
overflow: hidden `).concat(r,`;
|
|
158
|
-
padding-right: `).concat(a,"px ").concat(r,`;
|
|
159
|
-
}
|
|
160
|
-
body[`).concat(oo,`] {
|
|
161
|
-
overflow: hidden `).concat(r,`;
|
|
162
|
-
overscroll-behavior: contain;
|
|
163
|
-
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
164
|
-
padding-left: `.concat(o,`px;
|
|
165
|
-
padding-top: `).concat(s,`px;
|
|
166
|
-
padding-right: `).concat(i,`px;
|
|
167
|
-
margin-left:0;
|
|
168
|
-
margin-top:0;
|
|
169
|
-
margin-right: `).concat(a,"px ").concat(r,`;
|
|
170
|
-
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.`).concat(Ii,` {
|
|
174
|
-
right: `).concat(a,"px ").concat(r,`;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.`).concat(Oi,` {
|
|
178
|
-
margin-right: `).concat(a,"px ").concat(r,`;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.`).concat(Ii," .").concat(Ii,` {
|
|
182
|
-
right: 0 `).concat(r,`;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.`).concat(Oi," .").concat(Oi,` {
|
|
186
|
-
margin-right: 0 `).concat(r,`;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
body[`).concat(oo,`] {
|
|
190
|
-
`).concat(Rk,": ").concat(a,`px;
|
|
191
|
-
}
|
|
192
|
-
`)},pp=function(){var e=parseInt(document.body.getAttribute(oo)||"0",10);return isFinite(e)?e:0},Kk=function(){h.useEffect(function(){return document.body.setAttribute(oo,(pp()+1).toString()),function(){var e=pp()-1;e<=0?document.body.removeAttribute(oo):document.body.setAttribute(oo,e.toString())}},[])},Gk=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Kk();var s=h.useMemo(function(){return Wk(o)},[o]);return h.createElement(Zk,{styles:qk(s,!t,o,n?"":"!important")})},Yc=!1;if(typeof window<"u")try{var gi=Object.defineProperty({},"passive",{get:function(){return Yc=!0,!0}});window.addEventListener("test",gi,gi),window.removeEventListener("test",gi,gi)}catch{Yc=!1}var Or=Yc?{passive:!1}:!1,Qk=function(e){return e.tagName==="TEXTAREA"},hv=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Qk(e)&&n[t]==="visible")},Yk=function(e){return hv(e,"overflowY")},Xk=function(e){return hv(e,"overflowX")},mp=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=gv(e,r);if(o){var s=vv(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Jk=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},e2=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},gv=function(e,t){return e==="v"?Yk(t):Xk(t)},vv=function(e,t){return e==="v"?Jk(t):e2(t)},t2=function(e,t){return e==="h"&&t==="rtl"?-1:1},n2=function(e,t,n,r,o){var s=t2(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,l=t.contains(a),c=!1,u=i>0,f=0,g=0;do{var x=vv(e,a),w=x[0],v=x[1],_=x[2],m=v-_-s*w;(w||m)&&gv(e,a)&&(f+=m,g+=w),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&(Math.abs(f)<1||!o)||!u&&(Math.abs(g)<1||!o))&&(c=!0),c},vi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},hp=function(e){return[e.deltaX,e.deltaY]},gp=function(e){return e&&"current"in e?e.current:e},r2=function(e,t){return e[0]===t[0]&&e[1]===t[1]},o2=function(e){return`
|
|
193
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
194
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
195
|
-
`)},s2=0,Mr=[];function i2(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),o=h.useState(s2++)[0],s=h.useState(mv)[0],i=h.useRef(e);h.useEffect(function(){i.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=Nk([e.lockRef.current],(e.shards||[]).map(gp),!0).filter(Boolean);return v.forEach(function(_){return _.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=h.useCallback(function(v,_){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!i.current.allowPinchZoom;var m=vi(v),d=n.current,y="deltaX"in v?v.deltaX:d[0]-m[0],C="deltaY"in v?v.deltaY:d[1]-m[1],k,T=v.target,b=Math.abs(y)>Math.abs(C)?"h":"v";if("touches"in v&&b==="h"&&T.type==="range")return!1;var E=mp(b,T);if(!E)return!0;if(E?k=b:(k=b==="v"?"h":"v",E=mp(b,T)),!E)return!1;if(!r.current&&"changedTouches"in v&&(y||C)&&(r.current=k),!k)return!0;var I=r.current||k;return n2(I,_,v,I==="h"?y:C,!0)},[]),l=h.useCallback(function(v){var _=v;if(!(!Mr.length||Mr[Mr.length-1]!==s)){var m="deltaY"in _?hp(_):vi(_),d=t.current.filter(function(k){return k.name===_.type&&(k.target===_.target||_.target===k.shadowParent)&&r2(k.delta,m)})[0];if(d&&d.should){_.cancelable&&_.preventDefault();return}if(!d){var y=(i.current.shards||[]).map(gp).filter(Boolean).filter(function(k){return k.contains(_.target)}),C=y.length>0?a(_,y[0]):!i.current.noIsolation;C&&_.cancelable&&_.preventDefault()}}},[]),c=h.useCallback(function(v,_,m,d){var y={name:v,delta:_,target:m,should:d,shadowParent:a2(m)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(C){return C!==y})},1)},[]),u=h.useCallback(function(v){n.current=vi(v),r.current=void 0},[]),f=h.useCallback(function(v){c(v.type,hp(v),v.target,a(v,e.lockRef.current))},[]),g=h.useCallback(function(v){c(v.type,vi(v),v.target,a(v,e.lockRef.current))},[]);h.useEffect(function(){return Mr.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:g}),document.addEventListener("wheel",l,Or),document.addEventListener("touchmove",l,Or),document.addEventListener("touchstart",u,Or),function(){Mr=Mr.filter(function(v){return v!==s}),document.removeEventListener("wheel",l,Or),document.removeEventListener("touchmove",l,Or),document.removeEventListener("touchstart",u,Or)}},[]);var x=e.removeScrollBar,w=e.inert;return h.createElement(h.Fragment,null,w?h.createElement(s,{styles:o2(o)}):null,x?h.createElement(Gk,{gapMode:e.gapMode}):null)}function a2(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const l2=Lk(pv,i2);var yv=h.forwardRef(function(e,t){return h.createElement(Ya,qt({},e,{ref:t,sideCar:l2}))});yv.classNames=Ya.classNames;var c2=[" ","Enter","ArrowUp","ArrowDown"],u2=[" ","Enter"],Ws="Select",[Xa,Ja,d2]=ig(Ws),[Eo,H2]=Z_(Ws,[d2,Jg]),el=Jg(),[f2,or]=Eo(Ws),[p2,m2]=Eo(Ws),xv=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:i,defaultValue:a,onValueChange:l,dir:c,name:u,autoComplete:f,disabled:g,required:x,form:w}=e,v=el(t),[_,m]=h.useState(null),[d,y]=h.useState(null),[C,k]=h.useState(!1),T=cd(c),[b=!1,E]=fa({prop:r,defaultProp:o,onChange:s}),[I,j]=fa({prop:i,defaultProp:a,onChange:l}),V=h.useRef(null),M=_?w||!!_.closest("form"):!0,[q,W]=h.useState(new Set),J=Array.from(q).map(F=>F.props.value).join(";");return p.jsx(gk,{...v,children:p.jsxs(f2,{required:x,scope:t,trigger:_,onTriggerChange:m,valueNode:d,onValueNodeChange:y,valueNodeHasChildren:C,onValueNodeHasChildrenChange:k,contentId:Us(),value:I,onValueChange:j,open:b,onOpenChange:E,dir:T,triggerPointerDownPosRef:V,disabled:g,children:[p.jsx(Xa.Provider,{scope:t,children:p.jsx(p2,{scope:e.__scopeSelect,onNativeOptionAdd:h.useCallback(F=>{W(K=>new Set(K).add(F))},[]),onNativeOptionRemove:h.useCallback(F=>{W(K=>{const N=new Set(K);return N.delete(F),N})},[]),children:n})}),M?p.jsxs(Hv,{"aria-hidden":!0,required:x,tabIndex:-1,name:u,autoComplete:f,value:I,onChange:F=>j(F.target.value),disabled:g,form:w,children:[I===void 0?p.jsx("option",{value:""}):null,Array.from(q)]},J):null]})})};xv.displayName=Ws;var wv="SelectTrigger",Sv=h.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=el(n),i=or(wv,n),a=i.disabled||r,l=Oe(t,i.onTriggerChange),c=Ja(n),u=h.useRef("touch"),[f,g,x]=Wv(v=>{const _=c().filter(y=>!y.disabled),m=_.find(y=>y.value===i.value),d=Zv(_,v,m);d!==void 0&&i.onValueChange(d.value)}),w=v=>{a||(i.onOpenChange(!0),x()),v&&(i.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)})};return p.jsx(vk,{asChild:!0,...s,children:p.jsx(me.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":Uv(i.value)?"":void 0,...o,ref:l,onClick:ue(o.onClick,v=>{v.currentTarget.focus(),u.current!=="mouse"&&w(v)}),onPointerDown:ue(o.onPointerDown,v=>{u.current=v.pointerType;const _=v.target;_.hasPointerCapture(v.pointerId)&&_.releasePointerCapture(v.pointerId),v.button===0&&v.ctrlKey===!1&&v.pointerType==="mouse"&&(w(v),v.preventDefault())}),onKeyDown:ue(o.onKeyDown,v=>{const _=f.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&g(v.key),!(_&&v.key===" ")&&c2.includes(v.key)&&(w(),v.preventDefault())})})})});Sv.displayName=wv;var _v="SelectValue",Cv=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:i="",...a}=e,l=or(_v,n),{onValueNodeHasChildrenChange:c}=l,u=s!==void 0,f=Oe(t,l.onValueNodeChange);return et(()=>{c(u)},[c,u]),p.jsx(me.span,{...a,ref:f,style:{pointerEvents:"none"},children:Uv(l.value)?p.jsx(p.Fragment,{children:i}):s})});Cv.displayName=_v;var h2="SelectIcon",kv=h.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return p.jsx(me.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});kv.displayName=h2;var g2="SelectPortal",Ev=e=>p.jsx(lv,{asChild:!0,...e});Ev.displayName=g2;var Nr="SelectContent",bv=h.forwardRef((e,t)=>{const n=or(Nr,e.__scopeSelect),[r,o]=h.useState();if(et(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?So.createPortal(p.jsx(Nv,{scope:e.__scopeSelect,children:p.jsx(Xa.Slot,{scope:e.__scopeSelect,children:p.jsx("div",{children:e.children})})}),s):null}return p.jsx(Tv,{...e,ref:t})});bv.displayName=Nr;var Rt=10,[Nv,sr]=Eo(Nr),v2="SelectContentImpl",Tv=h.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:i,side:a,sideOffset:l,align:c,alignOffset:u,arrowPadding:f,collisionBoundary:g,collisionPadding:x,sticky:w,hideWhenDetached:v,avoidCollisions:_,...m}=e,d=or(Nr,n),[y,C]=h.useState(null),[k,T]=h.useState(null),b=Oe(t,B=>C(B)),[E,I]=h.useState(null),[j,V]=h.useState(null),M=Ja(n),[q,W]=h.useState(!1),J=h.useRef(!1);h.useEffect(()=>{if(y)return bk(y)},[y]),nC();const F=h.useCallback(B=>{const[ce,...Ae]=M().map(ie=>ie.ref.current),[fe]=Ae.slice(-1),le=document.activeElement;for(const ie of B)if(ie===le||(ie==null||ie.scrollIntoView({block:"nearest"}),ie===ce&&k&&(k.scrollTop=0),ie===fe&&k&&(k.scrollTop=k.scrollHeight),ie==null||ie.focus(),document.activeElement!==le))return},[M,k]),K=h.useCallback(()=>F([E,y]),[F,E,y]);h.useEffect(()=>{q&&K()},[q,K]);const{onOpenChange:N,triggerPointerDownPosRef:O}=d;h.useEffect(()=>{if(y){let B={x:0,y:0};const ce=fe=>{var le,ie;B={x:Math.abs(Math.round(fe.pageX)-(((le=O.current)==null?void 0:le.x)??0)),y:Math.abs(Math.round(fe.pageY)-(((ie=O.current)==null?void 0:ie.y)??0))}},Ae=fe=>{B.x<=10&&B.y<=10?fe.preventDefault():y.contains(fe.target)||N(!1),document.removeEventListener("pointermove",ce),O.current=null};return O.current!==null&&(document.addEventListener("pointermove",ce),document.addEventListener("pointerup",Ae,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ce),document.removeEventListener("pointerup",Ae,{capture:!0})}}},[y,N,O]),h.useEffect(()=>{const B=()=>N(!1);return window.addEventListener("blur",B),window.addEventListener("resize",B),()=>{window.removeEventListener("blur",B),window.removeEventListener("resize",B)}},[N]);const[D,H]=Wv(B=>{const ce=M().filter(le=>!le.disabled),Ae=ce.find(le=>le.ref.current===document.activeElement),fe=Zv(ce,B,Ae);fe&&setTimeout(()=>fe.ref.current.focus())}),ee=h.useCallback((B,ce,Ae)=>{const fe=!J.current&&!Ae;(d.value!==void 0&&d.value===ce||fe)&&(I(B),fe&&(J.current=!0))},[d.value]),he=h.useCallback(()=>y==null?void 0:y.focus(),[y]),ae=h.useCallback((B,ce,Ae)=>{const fe=!J.current&&!Ae;(d.value!==void 0&&d.value===ce||fe)&&V(B)},[d.value]),_e=r==="popper"?Xc:Rv,ve=_e===Xc?{side:a,sideOffset:l,align:c,alignOffset:u,arrowPadding:f,collisionBoundary:g,collisionPadding:x,sticky:w,hideWhenDetached:v,avoidCollisions:_}:{};return p.jsx(Nv,{scope:n,content:y,viewport:k,onViewportChange:T,itemRefCallback:ee,selectedItem:E,onItemLeave:he,itemTextRefCallback:ae,focusSelectedItem:K,selectedItemText:j,position:r,isPositioned:q,searchRef:D,children:p.jsx(yv,{as:go,allowPinchZoom:!0,children:p.jsx(Vg,{asChild:!0,trapped:d.open,onMountAutoFocus:B=>{B.preventDefault()},onUnmountAutoFocus:ue(o,B=>{var ce;(ce=d.trigger)==null||ce.focus({preventScroll:!0}),B.preventDefault()}),children:p.jsx($g,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:B=>B.preventDefault(),onDismiss:()=>d.onOpenChange(!1),children:p.jsx(_e,{role:"listbox",id:d.contentId,"data-state":d.open?"open":"closed",dir:d.dir,onContextMenu:B=>B.preventDefault(),...m,...ve,onPlaced:()=>W(!0),ref:b,style:{display:"flex",flexDirection:"column",outline:"none",...m.style},onKeyDown:ue(m.onKeyDown,B=>{const ce=B.ctrlKey||B.altKey||B.metaKey;if(B.key==="Tab"&&B.preventDefault(),!ce&&B.key.length===1&&H(B.key),["ArrowUp","ArrowDown","Home","End"].includes(B.key)){let fe=M().filter(le=>!le.disabled).map(le=>le.ref.current);if(["ArrowUp","End"].includes(B.key)&&(fe=fe.slice().reverse()),["ArrowUp","ArrowDown"].includes(B.key)){const le=B.target,ie=fe.indexOf(le);fe=fe.slice(ie+1)}setTimeout(()=>F(fe)),B.preventDefault()}})})})})})})});Tv.displayName=v2;var y2="SelectItemAlignedPosition",Rv=h.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=or(Nr,n),i=sr(Nr,n),[a,l]=h.useState(null),[c,u]=h.useState(null),f=Oe(t,b=>u(b)),g=Ja(n),x=h.useRef(!1),w=h.useRef(!0),{viewport:v,selectedItem:_,selectedItemText:m,focusSelectedItem:d}=i,y=h.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&c&&v&&_&&m){const b=s.trigger.getBoundingClientRect(),E=c.getBoundingClientRect(),I=s.valueNode.getBoundingClientRect(),j=m.getBoundingClientRect();if(s.dir!=="rtl"){const le=j.left-E.left,ie=I.left-le,Ge=b.left-ie,rt=b.width+Ge,ir=Math.max(rt,E.width),rn=window.innerWidth-Rt,ar=Qf(ie,[Rt,Math.max(Rt,rn-ir)]);a.style.minWidth=rt+"px",a.style.left=ar+"px"}else{const le=E.right-j.right,ie=window.innerWidth-I.right-le,Ge=window.innerWidth-b.right-ie,rt=b.width+Ge,ir=Math.max(rt,E.width),rn=window.innerWidth-Rt,ar=Qf(ie,[Rt,Math.max(Rt,rn-ir)]);a.style.minWidth=rt+"px",a.style.right=ar+"px"}const V=g(),M=window.innerHeight-Rt*2,q=v.scrollHeight,W=window.getComputedStyle(c),J=parseInt(W.borderTopWidth,10),F=parseInt(W.paddingTop,10),K=parseInt(W.borderBottomWidth,10),N=parseInt(W.paddingBottom,10),O=J+F+q+N+K,D=Math.min(_.offsetHeight*5,O),H=window.getComputedStyle(v),ee=parseInt(H.paddingTop,10),he=parseInt(H.paddingBottom,10),ae=b.top+b.height/2-Rt,_e=M-ae,ve=_.offsetHeight/2,B=_.offsetTop+ve,ce=J+F+B,Ae=O-ce;if(ce<=ae){const le=V.length>0&&_===V[V.length-1].ref.current;a.style.bottom="0px";const ie=c.clientHeight-v.offsetTop-v.offsetHeight,Ge=Math.max(_e,ve+(le?he:0)+ie+K),rt=ce+Ge;a.style.height=rt+"px"}else{const le=V.length>0&&_===V[0].ref.current;a.style.top="0px";const Ge=Math.max(ae,J+v.offsetTop+(le?ee:0)+ve)+Ae;a.style.height=Ge+"px",v.scrollTop=ce-ae+v.offsetTop}a.style.margin=`${Rt}px 0`,a.style.minHeight=D+"px",a.style.maxHeight=M+"px",r==null||r(),requestAnimationFrame(()=>x.current=!0)}},[g,s.trigger,s.valueNode,a,c,v,_,m,s.dir,r]);et(()=>y(),[y]);const[C,k]=h.useState();et(()=>{c&&k(window.getComputedStyle(c).zIndex)},[c]);const T=h.useCallback(b=>{b&&w.current===!0&&(y(),d==null||d(),w.current=!1)},[y,d]);return p.jsx(w2,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:x,onScrollButtonChange:T,children:p.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:p.jsx(me.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Rv.displayName=y2;var x2="SelectPopperPosition",Xc=h.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Rt,...s}=e,i=el(n);return p.jsx(yk,{...i,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Xc.displayName=x2;var[w2,Ed]=Eo(Nr,{}),Jc="SelectViewport",Pv=h.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=sr(Jc,n),i=Ed(Jc,n),a=Oe(t,s.onViewportChange),l=h.useRef(0);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),p.jsx(Xa.Slot,{scope:n,children:p.jsx(me.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:ue(o.onScroll,c=>{const u=c.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:g}=i;if(g!=null&&g.current&&f){const x=Math.abs(l.current-u.scrollTop);if(x>0){const w=window.innerHeight-Rt*2,v=parseFloat(f.style.minHeight),_=parseFloat(f.style.height),m=Math.max(v,_);if(m<w){const d=m+x,y=Math.min(w,d),C=d-y;f.style.height=y+"px",f.style.bottom==="0px"&&(u.scrollTop=C>0?C:0,f.style.justifyContent="flex-end")}}}l.current=u.scrollTop})})})]})});Pv.displayName=Jc;var jv="SelectGroup",[S2,_2]=Eo(jv),C2=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Us();return p.jsx(S2,{scope:n,id:o,children:p.jsx(me.div,{role:"group","aria-labelledby":o,...r,ref:t})})});C2.displayName=jv;var Iv="SelectLabel",Ov=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=_2(Iv,n);return p.jsx(me.div,{id:o.id,...r,ref:t})});Ov.displayName=Iv;var ya="SelectItem",[k2,Mv]=Eo(ya),Av=h.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...i}=e,a=or(ya,n),l=sr(ya,n),c=a.value===r,[u,f]=h.useState(s??""),[g,x]=h.useState(!1),w=Oe(t,d=>{var y;return(y=l.itemRefCallback)==null?void 0:y.call(l,d,r,o)}),v=Us(),_=h.useRef("touch"),m=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return p.jsx(k2,{scope:n,value:r,disabled:o,textId:v,isSelected:c,onItemTextChange:h.useCallback(d=>{f(y=>y||((d==null?void 0:d.textContent)??"").trim())},[]),children:p.jsx(Xa.ItemSlot,{scope:n,value:r,disabled:o,textValue:u,children:p.jsx(me.div,{role:"option","aria-labelledby":v,"data-highlighted":g?"":void 0,"aria-selected":c&&g,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:w,onFocus:ue(i.onFocus,()=>x(!0)),onBlur:ue(i.onBlur,()=>x(!1)),onClick:ue(i.onClick,()=>{_.current!=="mouse"&&m()}),onPointerUp:ue(i.onPointerUp,()=>{_.current==="mouse"&&m()}),onPointerDown:ue(i.onPointerDown,d=>{_.current=d.pointerType}),onPointerMove:ue(i.onPointerMove,d=>{var y;_.current=d.pointerType,o?(y=l.onItemLeave)==null||y.call(l):_.current==="mouse"&&d.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ue(i.onPointerLeave,d=>{var y;d.currentTarget===document.activeElement&&((y=l.onItemLeave)==null||y.call(l))}),onKeyDown:ue(i.onKeyDown,d=>{var C;((C=l.searchRef)==null?void 0:C.current)!==""&&d.key===" "||(u2.includes(d.key)&&m(),d.key===" "&&d.preventDefault())})})})})});Av.displayName=ya;var Uo="SelectItemText",Lv=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,i=or(Uo,n),a=sr(Uo,n),l=Mv(Uo,n),c=m2(Uo,n),[u,f]=h.useState(null),g=Oe(t,m=>f(m),l.onItemTextChange,m=>{var d;return(d=a.itemTextRefCallback)==null?void 0:d.call(a,m,l.value,l.disabled)}),x=u==null?void 0:u.textContent,w=h.useMemo(()=>p.jsx("option",{value:l.value,disabled:l.disabled,children:x},l.value),[l.disabled,l.value,x]),{onNativeOptionAdd:v,onNativeOptionRemove:_}=c;return et(()=>(v(w),()=>_(w)),[v,_,w]),p.jsxs(p.Fragment,{children:[p.jsx(me.span,{id:l.textId,...s,ref:g}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?So.createPortal(s.children,i.valueNode):null]})});Lv.displayName=Uo;var Dv="SelectItemIndicator",zv=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Mv(Dv,n).isSelected?p.jsx(me.span,{"aria-hidden":!0,...r,ref:t}):null});zv.displayName=Dv;var eu="SelectScrollUpButton",$v=h.forwardRef((e,t)=>{const n=sr(eu,e.__scopeSelect),r=Ed(eu,e.__scopeSelect),[o,s]=h.useState(!1),i=Oe(t,r.onScrollButtonChange);return et(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=l.scrollTop>0;s(c)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?p.jsx(Vv,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});$v.displayName=eu;var tu="SelectScrollDownButton",Fv=h.forwardRef((e,t)=>{const n=sr(tu,e.__scopeSelect),r=Ed(tu,e.__scopeSelect),[o,s]=h.useState(!1),i=Oe(t,r.onScrollButtonChange);return et(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=l.scrollHeight-l.clientHeight,u=Math.ceil(l.scrollTop)<c;s(u)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?p.jsx(Vv,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});Fv.displayName=tu;var Vv=h.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=sr("SelectScrollButton",n),i=h.useRef(null),a=Ja(n),l=h.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return h.useEffect(()=>()=>l(),[l]),et(()=>{var u;const c=a().find(f=>f.ref.current===document.activeElement);(u=c==null?void 0:c.ref.current)==null||u.scrollIntoView({block:"nearest"})},[a]),p.jsx(me.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:ue(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:ue(o.onPointerMove,()=>{var c;(c=s.onItemLeave)==null||c.call(s),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:ue(o.onPointerLeave,()=>{l()})})}),E2="SelectSeparator",Bv=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return p.jsx(me.div,{"aria-hidden":!0,...r,ref:t})});Bv.displayName=E2;var nu="SelectArrow",b2=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=el(n),s=or(nu,n),i=sr(nu,n);return s.open&&i.position==="popper"?p.jsx(xk,{...o,...r,ref:t}):null});b2.displayName=nu;function Uv(e){return e===""||e===void 0}var Hv=h.forwardRef((e,t)=>{const{value:n,...r}=e,o=h.useRef(null),s=Oe(t,o),i=Sk(n);return h.useEffect(()=>{const a=o.current,l=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==n&&u){const f=new Event("change",{bubbles:!0});u.call(a,n),a.dispatchEvent(f)}},[i,n]),p.jsx(cv,{asChild:!0,children:p.jsx("select",{...r,ref:s,defaultValue:n})})});Hv.displayName="BubbleSelect";function Wv(e){const t=Jt(e),n=h.useRef(""),r=h.useRef(0),o=h.useCallback(i=>{const a=n.current+i;t(a),function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),s=h.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return h.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function Zv(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=N2(e,Math.max(s,0));o.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function N2(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var T2=xv,qv=Sv,R2=Cv,P2=kv,j2=Ev,Kv=bv,I2=Pv,Gv=Ov,Qv=Av,O2=Lv,M2=zv,Yv=$v,Xv=Fv,Jv=Bv;const A2=T2,L2=R2,ey=h.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(qv,{ref:r,className:$e("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,p.jsx(P2,{asChild:!0,children:p.jsx($_,{className:"h-4 w-4 opacity-50"})})]}));ey.displayName=qv.displayName;const ty=h.forwardRef(({className:e,...t},n)=>p.jsx(Yv,{ref:n,className:$e("flex cursor-default items-center justify-center py-1",e),...t,children:p.jsx(W_,{})}));ty.displayName=Yv.displayName;const ny=h.forwardRef(({className:e,...t},n)=>p.jsx(Xv,{ref:n,className:$e("flex cursor-default items-center justify-center py-1",e),...t,children:p.jsx(U_,{})}));ny.displayName=Xv.displayName;const ry=h.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>p.jsx(j2,{children:p.jsxs(Kv,{ref:o,className:$e("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[p.jsx(ty,{}),p.jsx(I2,{className:$e("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),p.jsx(ny,{})]})}));ry.displayName=Kv.displayName;const D2=h.forwardRef(({className:e,...t},n)=>p.jsx(Gv,{ref:n,className:$e("px-2 py-1.5 text-sm font-semibold",e),...t}));D2.displayName=Gv.displayName;const ru=h.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(Qv,{ref:r,className:$e("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[p.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(M2,{children:p.jsx(V_,{className:"h-4 w-4"})})}),p.jsx(O2,{children:t})]}));ru.displayName=Qv.displayName;const z2=h.forwardRef(({className:e,...t},n)=>p.jsx(Jv,{ref:n,className:$e("-mx-1 my-1 h-px bg-muted",e),...t}));z2.displayName=Jv.displayName;const $2=({connectionStatus:e,transportType:t,setTransportType:n,command:r,setCommand:o,args:s,setArgs:i,url:a,setUrl:l,env:c,setEnv:u,onConnect:f})=>{const[g,x]=h.useState(!1);return p.jsxs("div",{className:"w-80 bg-card border-r border-border flex flex-col h-full",children:[p.jsxs("div",{className:"flex items-center p-4 border-b border-gray-200",children:[p.jsx(k_,{className:"w-6 h-6 text-gray-500"}),p.jsx("h1",{className:"ml-2 text-lg font-semibold",children:"MCP Inspector"})]}),p.jsx("div",{className:"p-4 flex-1 overflow-auto",children:p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{className:"text-sm font-medium",children:"Transport Type"}),p.jsxs(A2,{value:t,onValueChange:w=>n(w),children:[p.jsx(ey,{children:p.jsx(L2,{placeholder:"Select transport type"})}),p.jsxs(ry,{children:[p.jsx(ru,{value:"stdio",children:"STDIO"}),p.jsx(ru,{value:"sse",children:"SSE"})]})]})]}),t==="stdio"?p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{className:"text-sm font-medium",children:"Command"}),p.jsx(Zt,{placeholder:"Command",value:r,onChange:w=>o(w.target.value)})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{className:"text-sm font-medium",children:"Arguments"}),p.jsx(Zt,{placeholder:"Arguments (space-separated)",value:s,onChange:w=>i(w.target.value)})]})]}):p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{className:"text-sm font-medium",children:"URL"}),p.jsx(Zt,{placeholder:"URL",value:a,onChange:w=>l(w.target.value)})]}),t==="stdio"&&p.jsxs("div",{className:"space-y-2",children:[p.jsxs(Ze,{variant:"outline",onClick:()=>x(!g),className:"flex items-center w-full",children:[g?p.jsx(p_,{className:"w-4 h-4 mr-2"}):p.jsx(Wc,{className:"w-4 h-4 mr-2"}),"Environment Variables"]}),g&&p.jsxs("div",{className:"space-y-2",children:[Object.entries(c).map(([w,v],_)=>p.jsxs("div",{className:"grid grid-cols-[1fr,auto] gap-2",children:[p.jsxs("div",{className:"space-y-1",children:[p.jsx(Zt,{placeholder:"Key",value:w,onChange:m=>{const d={...c};delete d[w],d[m.target.value]=v,u(d)}}),p.jsx(Zt,{placeholder:"Value",value:v,onChange:m=>{const d={...c};d[w]=m.target.value,u(d)}})]}),p.jsx(Ze,{variant:"destructive",onClick:()=>{const{[w]:m,...d}=c;u(d)},children:"Remove"})]},_)),p.jsx(Ze,{variant:"outline",onClick:()=>{const w={...c};w[""]="",u(w)},children:"Add Environment Variable"})]})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsxs(Ze,{className:"w-full",onClick:f,children:[p.jsx(w_,{className:"w-4 h-4 mr-2"}),"Connect"]}),p.jsxs("div",{className:"flex items-center justify-center space-x-2 mb-4",children:[p.jsx("div",{className:`w-2 h-2 rounded-full ${e==="connected"?"bg-green-500":e==="error"?"bg-red-500":"bg-gray-500"}`}),p.jsx("span",{className:"text-sm text-gray-600",children:e==="connected"?"Connected":e==="error"?"Connection Error":"Disconnected"})]})]})]})})]})},F2=({tools:e,listTools:t,callTool:n,selectedTool:r,setSelectedTool:o,toolResult:s,nextCursor:i,error:a})=>{const[l,c]=h.useState({}),u=()=>{if(!s)return null;if("content"in s){const f=s,g=f.isError??!1;return p.jsxs(p.Fragment,{children:[p.jsxs("h4",{className:"font-semibold mb-2",children:["Tool Result: ",g?"Error":"Success"]}),f.content.map((x,w)=>p.jsxs("div",{className:"mb-2",children:[x.type==="text"&&p.jsx("pre",{className:"bg-gray-50 p-4 rounded text-sm overflow-auto max-h-64",children:x.text}),x.type==="image"&&p.jsx("img",{src:`data:${x.mimeType};base64,${x.data}`,alt:"Tool result image",className:"max-w-full h-auto"}),x.type==="resource"&&p.jsx("pre",{className:"bg-gray-50 p-4 rounded text-sm overflow-auto max-h-64",children:JSON.stringify(x.resource,null,2)})]},w))]})}else if("toolResult"in s)return p.jsxs(p.Fragment,{children:[p.jsx("h4",{className:"font-semibold mb-2",children:"Tool Result (Legacy):"}),p.jsx("pre",{className:"bg-gray-50 p-4 rounded text-sm overflow-auto max-h-64",children:JSON.stringify(s.toolResult,null,2)})]})};return p.jsxs(rr,{value:"tools",className:"grid grid-cols-2 gap-4",children:[p.jsx(pa,{items:e,listItems:t,setSelectedItem:o,renderItem:f=>p.jsxs(p.Fragment,{children:[p.jsx("span",{className:"flex-1",children:f.name}),p.jsx("span",{className:"text-sm text-gray-500 text-right",children:f.description})]}),title:"Tools",buttonText:i?"List More Tools":"List Tools",isButtonDisabled:!i&&e.length>0}),p.jsxs("div",{className:"bg-card rounded-lg shadow",children:[p.jsx("div",{className:"p-4 border-b border-gray-200",children:p.jsx("h3",{className:"font-semibold",children:r?r.name:"Select a tool"})}),p.jsx("div",{className:"p-4",children:a?p.jsxs(xn,{variant:"destructive",children:[p.jsx(pd,{className:"h-4 w-4"}),p.jsx(Za,{children:"Error"}),p.jsx(wn,{children:a})]}):r?p.jsxs("div",{className:"space-y-4",children:[p.jsx("p",{className:"text-sm text-gray-600",children:r.description}),Object.entries(r.inputSchema.properties??[]).map(([f,g])=>p.jsxs("div",{children:[p.jsx(hd,{htmlFor:f,className:"block text-sm font-medium text-gray-700",children:f}),g.type==="string"?p.jsx(gd,{id:f,name:f,placeholder:g.description,onChange:x=>c({...l,[f]:x.target.value}),className:"mt-1"}):p.jsx(Zt,{type:g.type==="number"?"number":"text",id:f,name:f,placeholder:g.description,onChange:x=>c({...l,[f]:g.type==="number"?Number(x.target.value):x.target.value}),className:"mt-1"})]},f)),p.jsxs(Ze,{onClick:()=>n(r.name,l),children:[p.jsx(Mg,{className:"w-4 h-4 mr-2"}),"Run Tool"]}),s&&u()]}):p.jsx(xn,{children:p.jsx(wn,{children:"Select a tool from the list to view its details and run it"})})})]})]})};window.matchMedia("(prefers-color-scheme: dark)").matches&&document.documentElement.classList.add("dark");const V2=1e4,B2=()=>{const[e,t]=h.useState("disconnected"),[n,r]=h.useState([]),[o,s]=h.useState([]),[i,a]=h.useState(""),[l,c]=h.useState([]),[u,f]=h.useState(""),[g,x]=h.useState([]),[w,v]=h.useState(null),[_,m]=h.useState({resources:null,prompts:null,tools:null}),[d,y]=h.useState(()=>localStorage.getItem("lastCommand")||"mcp-server-everything"),[C,k]=h.useState(()=>localStorage.getItem("lastArgs")||""),[T,b]=h.useState("http://localhost:3001/sse"),[E,I]=h.useState("stdio"),[j,V]=h.useState([]),[M,q]=h.useState(null),[W,J]=h.useState([]),[F,K]=h.useState([]),[N,O]=h.useState({}),[D,H]=h.useState([]),ee=h.useRef(0),he=h.useRef([]),ae=(z,re)=>{H(Te=>{const Le=Te.find(wt=>wt.id===z);return Le==null||Le.resolve(re),Te.filter(wt=>wt.id!==z)})},_e=z=>{H(re=>{const Te=re.find(Le=>Le.id===z);return Te==null||Te.reject(new Error("Sampling request rejected")),re.filter(Le=>Le.id!==z)})},[ve,B]=h.useState(null),[ce,Ae]=h.useState(null),[fe,le]=h.useState(null),[ie,Ge]=h.useState(),[rt,ir]=h.useState(),[rn,ar]=h.useState(),[bo,Pr]=h.useState(),oy=h.useRef(0),[tl,sy]=h.useState(300),[Zs,bd]=h.useState(!1),Nd=h.useRef(0),Td=h.useRef(0),iy=h.useCallback(z=>{bd(!0),Nd.current=z.clientY,Td.current=tl,document.body.style.userSelect="none"},[tl]),nl=h.useCallback(z=>{if(!Zs)return;const re=Nd.current-z.clientY,Te=Math.max(100,Math.min(800,Td.current+re));sy(Te)},[Zs]),rl=h.useCallback(()=>{bd(!1),document.body.style.userSelect=""},[]);h.useEffect(()=>{if(Zs)return window.addEventListener("mousemove",nl),window.addEventListener("mouseup",rl),()=>{window.removeEventListener("mousemove",nl),window.removeEventListener("mouseup",rl)}},[Zs,nl,rl]),h.useEffect(()=>{localStorage.setItem("lastCommand",d)},[d]),h.useEffect(()=>{localStorage.setItem("lastArgs",C)},[C]),h.useEffect(()=>{fetch("http://localhost:3000/config").then(z=>z.json()).then(z=>{O(z.defaultEnvironment),z.defaultCommand&&y(z.defaultCommand),z.defaultArgs&&k(z.defaultArgs)}).catch(z=>console.error("Error fetching default environment:",z))},[]),h.useEffect(()=>{he.current=F},[F]);const Rd=(z,re)=>{V(Te=>[...Te,{request:JSON.stringify(z),response:re!==void 0?JSON.stringify(re):void 0}])},Nt=z=>{m(re=>({...re,[z]:null}))},kn=async(z,re,Te)=>{if(!M)throw new Error("MCP client not connected");try{const Le=new AbortController,wt=setTimeout(()=>{Le.abort("Request timed out")},V2);let lr;try{lr=await M.request(z,re,{signal:Le.signal})}finally{clearTimeout(wt)}return Rd(z,lr),Te!==void 0&&Nt(Te),lr}catch(Le){const wt=Le.message??String(Le);throw Te===void 0?pe.error(wt):m(lr=>({...lr,[Te]:wt})),Le}},ay=async z=>{if(!M)throw new Error("MCP client not connected");try{await M.notification(z),Rd(z)}catch(re){throw pe.error(re.message??String(re)),re}},ly=async()=>{const z=await kn({method:"resources/list",params:ie?{cursor:ie}:{}},td,"resources");r(n.concat(z.resources??[])),Ge(z.nextCursor)},cy=async()=>{const z=await kn({method:"resources/templates/list",params:rt?{cursor:rt}:{}},nd,"resources");s(o.concat(z.resourceTemplates??[])),ir(z.nextCursor)},uy=async z=>{const re=await kn({method:"resources/read",params:{uri:z}},rd,"resources");a(JSON.stringify(re,null,2))},dy=async()=>{const z=await kn({method:"prompts/list",params:rn?{cursor:rn}:{}},od,"prompts");c(z.prompts),ar(z.nextCursor)},fy=async(z,re={})=>{const Te=await kn({method:"prompts/get",params:{name:z,arguments:re}},sd,"prompts");f(JSON.stringify(Te,null,2))},py=async()=>{const z=await kn({method:"tools/list",params:bo?{cursor:bo}:{}},id,"tools");x(z.tools),Pr(z.nextCursor)},my=async(z,re)=>{const Te=await kn({method:"tools/call",params:{name:z,arguments:re,_meta:{progressToken:oy.current++}}},Mw,"tools");v(Te)},hy=async()=>{await ay({method:"notifications/roots/list_changed"})},gy=async()=>{try{const z=new Qw({name:"mcp-inspector",version:"0.0.1"},{capabilities:{sampling:{},roots:{listChanged:!0}}}),re=new URL("http://localhost:3000/sse");re.searchParams.append("transportType",E),E==="stdio"?(re.searchParams.append("command",d),re.searchParams.append("args",C),re.searchParams.append("env",JSON.stringify(N))):re.searchParams.append("url",T);const Te=new Yw(re);await z.connect(Te),z.setNotificationHandler(Fa,Le=>{J(wt=>[...wt,Le])}),z.setRequestHandler(ng,Le=>new Promise((wt,lr)=>{H(vy=>[...vy,{id:ee.current++,request:Le,resolve:wt,reject:lr}])})),z.setRequestHandler(og,async()=>({roots:he.current})),q(z),t("connected")}catch(z){console.error(z),t("error")}};return p.jsxs("div",{className:"flex h-screen bg-background",children:[p.jsx($2,{connectionStatus:e,transportType:E,setTransportType:I,command:d,setCommand:y,args:C,setArgs:k,url:T,setUrl:b,env:N,setEnv:O,onConnect:gy}),p.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[p.jsx("div",{className:"flex-1 overflow-auto",children:M?p.jsxs(l_,{defaultValue:"resources",className:"w-full p-4",children:[p.jsxs(Ig,{className:"mb-4 p-0",children:[p.jsxs(an,{value:"resources",children:[p.jsx(m_,{className:"w-4 h-4 mr-2"}),"Resources"]}),p.jsxs(an,{value:"prompts",children:[p.jsx(y_,{className:"w-4 h-4 mr-2"}),"Prompts"]}),p.jsxs(an,{value:"requests",disabled:!0,children:[p.jsx(Mg,{className:"w-4 h-4 mr-2"}),"Requests"]}),p.jsxs(an,{value:"tools",children:[p.jsx(g_,{className:"w-4 h-4 mr-2"}),"Tools"]}),p.jsxs(an,{value:"console",disabled:!0,children:[p.jsx(E_,{className:"w-4 h-4 mr-2"}),"Console"]}),p.jsxs(an,{value:"ping",children:[p.jsx(f_,{className:"w-4 h-4 mr-2"}),"Ping"]}),p.jsxs(an,{value:"sampling",className:"relative",children:[p.jsx(v_,{className:"w-4 h-4 mr-2"}),"Sampling",D.length>0&&p.jsx("span",{className:"absolute -top-1 -right-1 bg-red-500 text-white text-xs rounded-full h-4 w-4 flex items-center justify-center",children:D.length})]}),p.jsxs(an,{value:"roots",children:[p.jsx(h_,{className:"w-4 h-4 mr-2"}),"Roots"]})]}),p.jsxs("div",{className:"w-full",children:[p.jsx(A_,{resources:n,resourceTemplates:o,listResources:()=>{Nt("resources"),ly()},listResourceTemplates:()=>{Nt("resources"),cy()},readResource:z=>{Nt("resources"),uy(z)},selectedResource:ve,setSelectedResource:z=>{Nt("resources"),B(z)},resourceContent:i,nextCursor:ie,nextTemplateCursor:rt,error:_.resources}),p.jsx(M_,{prompts:l,listPrompts:()=>{Nt("prompts"),dy()},getPrompt:(z,re)=>{Nt("prompts"),fy(z,re)},selectedPrompt:ce,setSelectedPrompt:z=>{Nt("prompts"),Ae(z)},promptContent:u,nextCursor:rn,error:_.prompts}),p.jsx(F2,{tools:g,listTools:()=>{Nt("tools"),py()},callTool:(z,re)=>{Nt("tools"),my(z,re)},selectedTool:fe,setSelectedTool:z=>{Nt("tools"),le(z),v(null)},toolResult:w,nextCursor:bo,error:_.tools}),p.jsx(b_,{}),p.jsx(P_,{onPingClick:()=>{kn({method:"ping"},mr)}}),p.jsx(D_,{pendingRequests:D,onApprove:ae,onReject:_e}),p.jsx(L_,{roots:F,setRoots:K,onRootsChange:hy})]})]}):p.jsx("div",{className:"flex items-center justify-center h-full",children:p.jsx("p",{className:"text-lg text-gray-500",children:"Connect to an MCP server to start inspecting"})})}),p.jsxs("div",{className:"relative border-t border-border",style:{height:`${tl}px`},children:[p.jsx("div",{className:"absolute w-full h-4 -top-2 cursor-row-resize flex items-center justify-center hover:bg-accent/50",onMouseDown:iy,children:p.jsx("div",{className:"w-8 h-1 rounded-full bg-border"})}),p.jsx("div",{className:"h-full overflow-auto",children:p.jsx(N_,{requestHistory:j,serverNotifications:W})})]})]})]})};Ph(document.getElementById("root")).render(p.jsxs(h.StrictMode,{children:[p.jsx(B2,{}),p.jsx(rx,{})]}));
|