@necto-react/hooks 2.14.2 → 2.14.4

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.
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var so=Object.create;var _n=Object.defineProperty;var io=Object.getOwnPropertyDescriptor;var uo=Object.getOwnPropertyNames;var ao=Object.getPrototypeOf,co=Object.prototype.hasOwnProperty;var Le=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var lo=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of uo(t))!co.call(e,s)&&s!==r&&_n(e,s,{get:()=>t[s],enumerable:!(o=io(t,s))||o.enumerable});return e};var K=(e,t,r)=>(r=e!=null?so(ao(e)):{},lo(t||!e||!e.__esModule?_n(r,"default",{value:e,enumerable:!0}):r,e));var Dn=Le(w=>{"use strict";var Ct=Symbol.for("react.transitional.element"),fo=Symbol.for("react.portal"),po=Symbol.for("react.fragment"),yo=Symbol.for("react.strict_mode"),mo=Symbol.for("react.profiler"),go=Symbol.for("react.consumer"),Eo=Symbol.for("react.context"),vo=Symbol.for("react.forward_ref"),ho=Symbol.for("react.suspense"),To=Symbol.for("react.memo"),Cn=Symbol.for("react.lazy"),bo=Symbol.for("react.activity"),On=Symbol.iterator;function Ro(e){return e===null||typeof e!="object"?null:(e=On&&e[On]||e["@@iterator"],typeof e=="function"?e:null)}var Pn={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Mn=Object.assign,In={};function Pe(e,t,r){this.props=e,this.context=t,this.refs=In,this.updater=r||Pn}Pe.prototype.isReactComponent={};Pe.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Pe.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function xn(){}xn.prototype=Pe.prototype;function Pt(e,t,r){this.props=e,this.context=t,this.refs=In,this.updater=r||Pn}var Mt=Pt.prototype=new xn;Mt.constructor=Pt;Mn(Mt,Pe.prototype);Mt.isPureReactComponent=!0;var wn=Array.isArray;function Lt(){}var H={H:null,A:null,T:null,S:null},Un=Object.prototype.hasOwnProperty;function It(e,t,r){var o=r.ref;return{$$typeof:Ct,type:e,key:t,ref:o!==void 0?o:null,props:r}}function So(e,t){return It(e.type,t,e.props)}function xt(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ct}function _o(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var An=/\/+/g;function At(e,t){return typeof e=="object"&&e!==null&&e.key!=null?_o(""+e.key):t.toString(36)}function Oo(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Lt,Lt):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Ce(e,t,r,o,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(i){case"bigint":case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case Ct:case fo:l=!0;break;case Cn:return l=e._init,Ce(l(e._payload),t,r,o,s)}}if(l)return s=s(e),l=o===""?"."+At(e,0):o,wn(s)?(r="",l!=null&&(r=l.replace(An,"$&/")+"/"),Ce(s,t,r,"",function(p){return p})):s!=null&&(xt(s)&&(s=So(s,r+(s.key==null||e&&e.key===s.key?"":(""+s.key).replace(An,"$&/")+"/")+l)),t.push(s)),1;l=0;var d=o===""?".":o+":";if(wn(e))for(var f=0;f<e.length;f++)o=e[f],i=d+At(o,f),l+=Ce(o,t,r,i,s);else if(f=Ro(e),typeof f=="function")for(e=f.call(e),f=0;!(o=e.next()).done;)o=o.value,i=d+At(o,f++),l+=Ce(o,t,r,i,s);else if(i==="object"){if(typeof e.then=="function")return Ce(Oo(e),t,r,o,s);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 l}function tt(e,t,r){if(e==null)return e;var o=[],s=0;return Ce(e,o,"","",function(i){return t.call(r,i,s++)}),o}function wo(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ln=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ao={map:tt,forEach:function(e,t,r){tt(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return tt(e,function(){t++}),t},toArray:function(e){return tt(e,function(t){return t})||[]},only:function(e){if(!xt(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};w.Activity=bo;w.Children=Ao;w.Component=Pe;w.Fragment=po;w.Profiler=mo;w.PureComponent=Pt;w.StrictMode=yo;w.Suspense=ho;w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H;w.__COMPILER_RUNTIME={__proto__:null,c:function(e){return H.H.useMemoCache(e)}};w.cache=function(e){return function(){return e.apply(null,arguments)}};w.cacheSignal=function(){return null};w.cloneElement=function(e,t,r){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var o=Mn({},e.props),s=e.key;if(t!=null)for(i in t.key!==void 0&&(s=""+t.key),t)!Un.call(t,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&t.ref===void 0||(o[i]=t[i]);var i=arguments.length-2;if(i===1)o.children=r;else if(1<i){for(var l=Array(i),d=0;d<i;d++)l[d]=arguments[d+2];o.children=l}return It(e.type,s,o)};w.createContext=function(e){return e={$$typeof:Eo,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:go,_context:e},e};w.createElement=function(e,t,r){var o,s={},i=null;if(t!=null)for(o in t.key!==void 0&&(i=""+t.key),t)Un.call(t,o)&&o!=="key"&&o!=="__self"&&o!=="__source"&&(s[o]=t[o]);var l=arguments.length-2;if(l===1)s.children=r;else if(1<l){for(var d=Array(l),f=0;f<l;f++)d[f]=arguments[f+2];s.children=d}if(e&&e.defaultProps)for(o in l=e.defaultProps,l)s[o]===void 0&&(s[o]=l[o]);return It(e,i,s)};w.createRef=function(){return{current:null}};w.forwardRef=function(e){return{$$typeof:vo,render:e}};w.isValidElement=xt;w.lazy=function(e){return{$$typeof:Cn,_payload:{_status:-1,_result:e},_init:wo}};w.memo=function(e,t){return{$$typeof:To,type:e,compare:t===void 0?null:t}};w.startTransition=function(e){var t=H.T,r={};H.T=r;try{var o=e(),s=H.S;s!==null&&s(r,o),typeof o=="object"&&o!==null&&typeof o.then=="function"&&o.then(Lt,Ln)}catch(i){Ln(i)}finally{t!==null&&r.types!==null&&(t.types=r.types),H.T=t}};w.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()};w.use=function(e){return H.H.use(e)};w.useActionState=function(e,t,r){return H.H.useActionState(e,t,r)};w.useCallback=function(e,t){return H.H.useCallback(e,t)};w.useContext=function(e){return H.H.useContext(e)};w.useDebugValue=function(){};w.useDeferredValue=function(e,t){return H.H.useDeferredValue(e,t)};w.useEffect=function(e,t){return H.H.useEffect(e,t)};w.useEffectEvent=function(e){return H.H.useEffectEvent(e)};w.useId=function(){return H.H.useId()};w.useImperativeHandle=function(e,t,r){return H.H.useImperativeHandle(e,t,r)};w.useInsertionEffect=function(e,t){return H.H.useInsertionEffect(e,t)};w.useLayoutEffect=function(e,t){return H.H.useLayoutEffect(e,t)};w.useMemo=function(e,t){return H.H.useMemo(e,t)};w.useOptimistic=function(e,t){return H.H.useOptimistic(e,t)};w.useReducer=function(e,t,r){return H.H.useReducer(e,t,r)};w.useRef=function(e){return H.H.useRef(e)};w.useState=function(e){return H.H.useState(e)};w.useSyncExternalStore=function(e,t,r){return H.H.useSyncExternalStore(e,t,r)};w.useTransition=function(){return H.H.useTransition()};w.version="19.2.0"});var Fn=Le((O,nt)=>{"use strict";process.env.NODE_ENV!=="production"&&(function(){function e(n,u){Object.defineProperty(o.prototype,n,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",u[0],u[1])}})}function t(n){return n===null||typeof n!="object"?null:(n=ln&&n[ln]||n["@@iterator"],typeof n=="function"?n:null)}function r(n,u){n=(n=n.constructor)&&(n.displayName||n.name)||"ReactClass";var y=n+"."+u;fn[y]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",u,n),fn[y]=!0)}function o(n,u,y){this.props=n,this.context=u,this.refs=Ot,this.updater=y||dn}function s(){}function i(n,u,y){this.props=n,this.context=u,this.refs=Ot,this.updater=y||dn}function l(){}function d(n){return""+n}function f(n){try{d(n);var u=!1}catch{u=!0}if(u){u=console;var y=u.error,h=typeof Symbol=="function"&&Symbol.toStringTag&&n[Symbol.toStringTag]||n.constructor.name||"Object";return y.call(u,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",h),d(n)}}function p(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===eo?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case Rt:return"Fragment";case on:return"Profiler";case rn:return"StrictMode";case an:return"Suspense";case Jr:return"SuspenseList";case cn:return"Activity"}if(typeof n=="object")switch(typeof n.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),n.$$typeof){case ce:return"Portal";case sn:return n.displayName||"Context";case St:return(n._context.displayName||"Context")+".Consumer";case un:var u=n.render;return n=n.displayName,n||(n=u.displayName||u.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case _t:return u=n.displayName||null,u!==null?u:p(n.type)||"Memo";case ke:u=n._payload,n=n._init;try{return p(n(u))}catch{}}return null}function b(n){if(n===Rt)return"<>";if(typeof n=="object"&&n!==null&&n.$$typeof===ke)return"<...>";try{var u=p(n);return u?"<"+u+">":"<...>"}catch{return"<...>"}}function c(){var n=P.A;return n===null?null:n.getOwner()}function a(){return Error("react-stack-top-frame")}function g(n){if(Xe.call(n,"key")){var u=Object.getOwnPropertyDescriptor(n,"key").get;if(u&&u.isReactWarning)return!1}return n.key!==void 0}function S(n,u){function y(){gn||(gn=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",u))}y.isReactWarning=!0,Object.defineProperty(n,"key",{get:y,configurable:!0})}function T(){var n=p(this.type);return vn[n]||(vn[n]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),n=this.props.ref,n!==void 0?n:null}function v(n,u,y,h,R,M){var L=y.ref;return n={$$typeof:_,type:n,key:u,props:y,_owner:h},(L!==void 0?L:null)!==null?Object.defineProperty(n,"ref",{enumerable:!1,get:T}):Object.defineProperty(n,"ref",{enumerable:!1,value:null}),n._store={},Object.defineProperty(n._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(n,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(n,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:R}),Object.defineProperty(n,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:M}),Object.freeze&&(Object.freeze(n.props),Object.freeze(n)),n}function k(n,u){return u=v(n.type,u,n.props,n._owner,n._debugStack,n._debugTask),n._store&&(u._store.validated=n._store.validated),u}function x(n){C(n)?n._store&&(n._store.validated=1):typeof n=="object"&&n!==null&&n.$$typeof===ke&&(n._payload.status==="fulfilled"?C(n._payload.value)&&n._payload.value._store&&(n._payload.value._store.validated=1):n._store&&(n._store.validated=1))}function C(n){return typeof n=="object"&&n!==null&&n.$$typeof===_}function B(n){var u={"=":"=0",":":"=2"};return"$"+n.replace(/[=:]/g,function(y){return u[y]})}function D(n,u){return typeof n=="object"&&n!==null&&n.key!=null?(f(n.key),B(""+n.key)):u.toString(36)}function Y(n){switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:switch(typeof n.status=="string"?n.then(l,l):(n.status="pending",n.then(function(u){n.status==="pending"&&(n.status="fulfilled",n.value=u)},function(u){n.status==="pending"&&(n.status="rejected",n.reason=u)})),n.status){case"fulfilled":return n.value;case"rejected":throw n.reason}}throw n}function j(n,u,y,h,R){var M=typeof n;(M==="undefined"||M==="boolean")&&(n=null);var L=!1;if(n===null)L=!0;else switch(M){case"bigint":case"string":case"number":L=!0;break;case"object":switch(n.$$typeof){case _:case ce:L=!0;break;case ke:return L=n._init,j(L(n._payload),u,y,h,R)}}if(L){L=n,R=R(L);var N=h===""?"."+D(L,0):h;return yn(R)?(y="",N!=null&&(y=N.replace(Tn,"$&/")+"/"),j(R,u,y,"",function(fe){return fe})):R!=null&&(C(R)&&(R.key!=null&&(L&&L.key===R.key||f(R.key)),y=k(R,y+(R.key==null||L&&L.key===R.key?"":(""+R.key).replace(Tn,"$&/")+"/")+N),h!==""&&L!=null&&C(L)&&L.key==null&&L._store&&!L._store.validated&&(y._store.validated=2),R=y),u.push(R)),1}if(L=0,N=h===""?".":h+":",yn(n))for(var I=0;I<n.length;I++)h=n[I],M=N+D(h,I),L+=j(h,u,y,M,R);else if(I=t(n),typeof I=="function")for(I===n.entries&&(hn||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),hn=!0),n=I.call(n),I=0;!(h=n.next()).done;)h=h.value,M=N+D(h,I++),L+=j(h,u,y,M,R);else if(M==="object"){if(typeof n.then=="function")return j(Y(n),u,y,h,R);throw u=String(n),Error("Objects are not valid as a React child (found: "+(u==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":u)+"). If you meant to render a collection of children, use an array instead.")}return L}function G(n,u,y){if(n==null)return n;var h=[],R=0;return j(n,h,"","",function(M){return u.call(y,M,R++)}),h}function le(n){if(n._status===-1){var u=n._ioInfo;u!=null&&(u.start=u.end=performance.now()),u=n._result;var y=u();if(y.then(function(R){if(n._status===0||n._status===-1){n._status=1,n._result=R;var M=n._ioInfo;M!=null&&(M.end=performance.now()),y.status===void 0&&(y.status="fulfilled",y.value=R)}},function(R){if(n._status===0||n._status===-1){n._status=2,n._result=R;var M=n._ioInfo;M!=null&&(M.end=performance.now()),y.status===void 0&&(y.status="rejected",y.reason=R)}}),u=n._ioInfo,u!=null){u.value=y;var h=y.displayName;typeof h=="string"&&(u.name=h)}n._status===-1&&(n._status=0,n._result=y)}if(n._status===1)return u=n._result,u===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1
+ "use strict";(()=>{var fo=Object.create;var Cn=Object.defineProperty;var po=Object.getOwnPropertyDescriptor;var yo=Object.getOwnPropertyNames;var mo=Object.getPrototypeOf,go=Object.prototype.hasOwnProperty;var Ce=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Eo=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of yo(t))!go.call(e,s)&&s!==r&&Cn(e,s,{get:()=>t[s],enumerable:!(o=po(t,s))||o.enumerable});return e};var K=(e,t,r)=>(r=e!=null?fo(mo(e)):{},Eo(t||!e||!e.__esModule?Cn(r,"default",{value:e,enumerable:!0}):r,e));var Hn=Ce(w=>{"use strict";var It=Symbol.for("react.transitional.element"),vo=Symbol.for("react.portal"),ho=Symbol.for("react.fragment"),To=Symbol.for("react.strict_mode"),bo=Symbol.for("react.profiler"),Ro=Symbol.for("react.consumer"),So=Symbol.for("react.context"),Oo=Symbol.for("react.forward_ref"),_o=Symbol.for("react.suspense"),wo=Symbol.for("react.memo"),Dn=Symbol.for("react.lazy"),Ao=Symbol.for("react.activity"),Pn=Symbol.iterator;function Lo(e){return e===null||typeof e!="object"?null:(e=Pn&&e[Pn]||e["@@iterator"],typeof e=="function"?e:null)}var Un={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Fn=Object.assign,kn={};function Me(e,t,r){this.props=e,this.context=t,this.refs=kn,this.updater=r||Un}Me.prototype.isReactComponent={};Me.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Me.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Nn(){}Nn.prototype=Me.prototype;function xt(e,t,r){this.props=e,this.context=t,this.refs=kn,this.updater=r||Un}var Dt=xt.prototype=new Nn;Dt.constructor=xt;Fn(Dt,Me.prototype);Dt.isPureReactComponent=!0;var Mn=Array.isArray;function Mt(){}var H={H:null,A:null,T:null,S:null},Kn=Object.prototype.hasOwnProperty;function Ut(e,t,r){var o=r.ref;return{$$typeof:It,type:e,key:t,ref:o!==void 0?o:null,props:r}}function Co(e,t){return Ut(e.type,t,e.props)}function Ft(e){return typeof e=="object"&&e!==null&&e.$$typeof===It}function Po(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var In=/\/+/g;function Pt(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Po(""+e.key):t.toString(36)}function Mo(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Mt,Mt):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Pe(e,t,r,o,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(i){case"bigint":case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case It:case vo:l=!0;break;case Dn:return l=e._init,Pe(l(e._payload),t,r,o,s)}}if(l)return s=s(e),l=o===""?"."+Pt(e,0):o,Mn(s)?(r="",l!=null&&(r=l.replace(In,"$&/")+"/"),Pe(s,t,r,"",function(p){return p})):s!=null&&(Ft(s)&&(s=Co(s,r+(s.key==null||e&&e.key===s.key?"":(""+s.key).replace(In,"$&/")+"/")+l)),t.push(s)),1;l=0;var d=o===""?".":o+":";if(Mn(e))for(var f=0;f<e.length;f++)o=e[f],i=d+Pt(o,f),l+=Pe(o,t,r,i,s);else if(f=Lo(e),typeof f=="function")for(e=f.call(e),f=0;!(o=e.next()).done;)o=o.value,i=d+Pt(o,f++),l+=Pe(o,t,r,i,s);else if(i==="object"){if(typeof e.then=="function")return Pe(Mo(e),t,r,o,s);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 l}function ot(e,t,r){if(e==null)return e;var o=[],s=0;return Pe(e,o,"","",function(i){return t.call(r,i,s++)}),o}function Io(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var xn=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},xo={map:ot,forEach:function(e,t,r){ot(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return ot(e,function(){t++}),t},toArray:function(e){return ot(e,function(t){return t})||[]},only:function(e){if(!Ft(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};w.Activity=Ao;w.Children=xo;w.Component=Me;w.Fragment=ho;w.Profiler=bo;w.PureComponent=xt;w.StrictMode=To;w.Suspense=_o;w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H;w.__COMPILER_RUNTIME={__proto__:null,c:function(e){return H.H.useMemoCache(e)}};w.cache=function(e){return function(){return e.apply(null,arguments)}};w.cacheSignal=function(){return null};w.cloneElement=function(e,t,r){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var o=Fn({},e.props),s=e.key;if(t!=null)for(i in t.key!==void 0&&(s=""+t.key),t)!Kn.call(t,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&t.ref===void 0||(o[i]=t[i]);var i=arguments.length-2;if(i===1)o.children=r;else if(1<i){for(var l=Array(i),d=0;d<i;d++)l[d]=arguments[d+2];o.children=l}return Ut(e.type,s,o)};w.createContext=function(e){return e={$$typeof:So,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Ro,_context:e},e};w.createElement=function(e,t,r){var o,s={},i=null;if(t!=null)for(o in t.key!==void 0&&(i=""+t.key),t)Kn.call(t,o)&&o!=="key"&&o!=="__self"&&o!=="__source"&&(s[o]=t[o]);var l=arguments.length-2;if(l===1)s.children=r;else if(1<l){for(var d=Array(l),f=0;f<l;f++)d[f]=arguments[f+2];s.children=d}if(e&&e.defaultProps)for(o in l=e.defaultProps,l)s[o]===void 0&&(s[o]=l[o]);return Ut(e,i,s)};w.createRef=function(){return{current:null}};w.forwardRef=function(e){return{$$typeof:Oo,render:e}};w.isValidElement=Ft;w.lazy=function(e){return{$$typeof:Dn,_payload:{_status:-1,_result:e},_init:Io}};w.memo=function(e,t){return{$$typeof:wo,type:e,compare:t===void 0?null:t}};w.startTransition=function(e){var t=H.T,r={};H.T=r;try{var o=e(),s=H.S;s!==null&&s(r,o),typeof o=="object"&&o!==null&&typeof o.then=="function"&&o.then(Mt,xn)}catch(i){xn(i)}finally{t!==null&&r.types!==null&&(t.types=r.types),H.T=t}};w.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()};w.use=function(e){return H.H.use(e)};w.useActionState=function(e,t,r){return H.H.useActionState(e,t,r)};w.useCallback=function(e,t){return H.H.useCallback(e,t)};w.useContext=function(e){return H.H.useContext(e)};w.useDebugValue=function(){};w.useDeferredValue=function(e,t){return H.H.useDeferredValue(e,t)};w.useEffect=function(e,t){return H.H.useEffect(e,t)};w.useEffectEvent=function(e){return H.H.useEffectEvent(e)};w.useId=function(){return H.H.useId()};w.useImperativeHandle=function(e,t,r){return H.H.useImperativeHandle(e,t,r)};w.useInsertionEffect=function(e,t){return H.H.useInsertionEffect(e,t)};w.useLayoutEffect=function(e,t){return H.H.useLayoutEffect(e,t)};w.useMemo=function(e,t){return H.H.useMemo(e,t)};w.useOptimistic=function(e,t){return H.H.useOptimistic(e,t)};w.useReducer=function(e,t,r){return H.H.useReducer(e,t,r)};w.useRef=function(e){return H.H.useRef(e)};w.useState=function(e){return H.H.useState(e)};w.useSyncExternalStore=function(e,t,r){return H.H.useSyncExternalStore(e,t,r)};w.useTransition=function(){return H.H.useTransition()};w.version="19.2.0"});var Vn=Ce((_,st)=>{"use strict";process.env.NODE_ENV!=="production"&&(function(){function e(n,u){Object.defineProperty(o.prototype,n,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",u[0],u[1])}})}function t(n){return n===null||typeof n!="object"?null:(n=mn&&n[mn]||n["@@iterator"],typeof n=="function"?n:null)}function r(n,u){n=(n=n.constructor)&&(n.displayName||n.name)||"ReactClass";var y=n+"."+u;gn[y]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",u,n),gn[y]=!0)}function o(n,u,y){this.props=n,this.context=u,this.refs=Lt,this.updater=y||En}function s(){}function i(n,u,y){this.props=n,this.context=u,this.refs=Lt,this.updater=y||En}function l(){}function d(n){return""+n}function f(n){try{d(n);var u=!1}catch{u=!0}if(u){u=console;var y=u.error,h=typeof Symbol=="function"&&Symbol.toStringTag&&n[Symbol.toStringTag]||n.constructor.name||"Object";return y.call(u,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",h),d(n)}}function p(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===io?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case _t:return"Fragment";case ln:return"Profiler";case cn:return"StrictMode";case pn:return"Suspense";case so:return"SuspenseList";case yn:return"Activity"}if(typeof n=="object")switch(typeof n.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),n.$$typeof){case ce:return"Portal";case fn:return n.displayName||"Context";case wt:return(n._context.displayName||"Context")+".Consumer";case dn:var u=n.render;return n=n.displayName,n||(n=u.displayName||u.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case At:return u=n.displayName||null,u!==null?u:p(n.type)||"Memo";case Ne:u=n._payload,n=n._init;try{return p(n(u))}catch{}}return null}function b(n){if(n===_t)return"<>";if(typeof n=="object"&&n!==null&&n.$$typeof===Ne)return"<...>";try{var u=p(n);return u?"<"+u+">":"<...>"}catch{return"<...>"}}function c(){var n=P.A;return n===null?null:n.getOwner()}function a(){return Error("react-stack-top-frame")}function g(n){if(et.call(n,"key")){var u=Object.getOwnPropertyDescriptor(n,"key").get;if(u&&u.isReactWarning)return!1}return n.key!==void 0}function S(n,u){function y(){bn||(bn=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",u))}y.isReactWarning=!0,Object.defineProperty(n,"key",{get:y,configurable:!0})}function T(){var n=p(this.type);return Sn[n]||(Sn[n]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),n=this.props.ref,n!==void 0?n:null}function v(n,u,y,h,R,M){var L=y.ref;return n={$$typeof:O,type:n,key:u,props:y,_owner:h},(L!==void 0?L:null)!==null?Object.defineProperty(n,"ref",{enumerable:!1,get:T}):Object.defineProperty(n,"ref",{enumerable:!1,value:null}),n._store={},Object.defineProperty(n._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(n,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(n,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:R}),Object.defineProperty(n,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:M}),Object.freeze&&(Object.freeze(n.props),Object.freeze(n)),n}function k(n,u){return u=v(n.type,u,n.props,n._owner,n._debugStack,n._debugTask),n._store&&(u._store.validated=n._store.validated),u}function x(n){C(n)?n._store&&(n._store.validated=1):typeof n=="object"&&n!==null&&n.$$typeof===Ne&&(n._payload.status==="fulfilled"?C(n._payload.value)&&n._payload.value._store&&(n._payload.value._store.validated=1):n._store&&(n._store.validated=1))}function C(n){return typeof n=="object"&&n!==null&&n.$$typeof===O}function B(n){var u={"=":"=0",":":"=2"};return"$"+n.replace(/[=:]/g,function(y){return u[y]})}function U(n,u){return typeof n=="object"&&n!==null&&n.key!=null?(f(n.key),B(""+n.key)):u.toString(36)}function Y(n){switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:switch(typeof n.status=="string"?n.then(l,l):(n.status="pending",n.then(function(u){n.status==="pending"&&(n.status="fulfilled",n.value=u)},function(u){n.status==="pending"&&(n.status="rejected",n.reason=u)})),n.status){case"fulfilled":return n.value;case"rejected":throw n.reason}}throw n}function j(n,u,y,h,R){var M=typeof n;(M==="undefined"||M==="boolean")&&(n=null);var L=!1;if(n===null)L=!0;else switch(M){case"bigint":case"string":case"number":L=!0;break;case"object":switch(n.$$typeof){case O:case ce:L=!0;break;case Ne:return L=n._init,j(L(n._payload),u,y,h,R)}}if(L){L=n,R=R(L);var N=h===""?"."+U(L,0):h;return hn(R)?(y="",N!=null&&(y=N.replace(_n,"$&/")+"/"),j(R,u,y,"",function(de){return de})):R!=null&&(C(R)&&(R.key!=null&&(L&&L.key===R.key||f(R.key)),y=k(R,y+(R.key==null||L&&L.key===R.key?"":(""+R.key).replace(_n,"$&/")+"/")+N),h!==""&&L!=null&&C(L)&&L.key==null&&L._store&&!L._store.validated&&(y._store.validated=2),R=y),u.push(R)),1}if(L=0,N=h===""?".":h+":",hn(n))for(var I=0;I<n.length;I++)h=n[I],M=N+U(h,I),L+=j(h,u,y,M,R);else if(I=t(n),typeof I=="function")for(I===n.entries&&(On||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),On=!0),n=I.call(n),I=0;!(h=n.next()).done;)h=h.value,M=N+U(h,I++),L+=j(h,u,y,M,R);else if(M==="object"){if(typeof n.then=="function")return j(Y(n),u,y,h,R);throw u=String(n),Error("Objects are not valid as a React child (found: "+(u==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":u)+"). If you meant to render a collection of children, use an array instead.")}return L}function G(n,u,y){if(n==null)return n;var h=[],R=0;return j(n,h,"","",function(M){return u.call(y,M,R++)}),h}function fe(n){if(n._status===-1){var u=n._ioInfo;u!=null&&(u.start=u.end=performance.now()),u=n._result;var y=u();if(y.then(function(R){if(n._status===0||n._status===-1){n._status=1,n._result=R;var M=n._ioInfo;M!=null&&(M.end=performance.now()),y.status===void 0&&(y.status="fulfilled",y.value=R)}},function(R){if(n._status===0||n._status===-1){n._status=2,n._result=R;var M=n._ioInfo;M!=null&&(M.end=performance.now()),y.status===void 0&&(y.status="rejected",y.reason=R)}}),u=n._ioInfo,u!=null){u.value=y;var h=y.displayName;typeof h=="string"&&(u.name=h)}n._status===-1&&(n._status=0,n._result=y)}if(n._status===1)return u=n._result,u===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
2
 
3
3
  Your code should look like:
4
4
  const MyComponent = lazy(() => import('./MyComponent'))
@@ -10,12 +10,12 @@ Your code should look like:
10
10
  1. You might have mismatching versions of React and the renderer (such as React DOM)
11
11
  2. You might be breaking the Rules of Hooks
12
12
  3. You might have more than one copy of React in the same app
13
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),n}function Re(){P.asyncTransitions--}function ue(n){if(Ze===null)try{var u=("require"+Math.random()).slice(0,7);Ze=(nt&&nt[u]).call(nt,"timers").setImmediate}catch{Ze=function(h){Rn===!1&&(Rn=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var R=new MessageChannel;R.port1.onmessage=h,R.port2.postMessage(void 0)}}return Ze(n)}function ae(n){return 1<n.length&&typeof AggregateError=="function"?new AggregateError(n):n[0]}function E(n,u){u!==Je-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Je=u}function m(n,u,y){var h=P.actQueue;if(h!==null)if(h.length!==0)try{U(h),ue(function(){return m(n,u,y)});return}catch(R){P.thrownErrors.push(R)}else P.actQueue=null;0<P.thrownErrors.length?(h=ae(P.thrownErrors),P.thrownErrors.length=0,y(h)):u(n)}function U(n){if(!wt){wt=!0;var u=0;try{for(;u<n.length;u++){var y=n[u];do{P.didUsePromise=!1;var h=y(!1);if(h!==null){if(P.didUsePromise){n[u]=y,n.splice(0,u);return}y=h}else break}while(!0)}n.length=0}catch(R){n.splice(0,u+1),P.thrownErrors.push(R)}finally{wt=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var _=Symbol.for("react.transitional.element"),ce=Symbol.for("react.portal"),Rt=Symbol.for("react.fragment"),rn=Symbol.for("react.strict_mode"),on=Symbol.for("react.profiler"),St=Symbol.for("react.consumer"),sn=Symbol.for("react.context"),un=Symbol.for("react.forward_ref"),an=Symbol.for("react.suspense"),Jr=Symbol.for("react.suspense_list"),_t=Symbol.for("react.memo"),ke=Symbol.for("react.lazy"),cn=Symbol.for("react.activity"),ln=Symbol.iterator,fn={},dn={isMounted:function(){return!1},enqueueForceUpdate:function(n){r(n,"forceUpdate")},enqueueReplaceState:function(n){r(n,"replaceState")},enqueueSetState:function(n){r(n,"setState")}},pn=Object.assign,Ot={};Object.freeze(Ot),o.prototype.isReactComponent={},o.prototype.setState=function(n,u){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,u,"setState")},o.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};var re={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(Ne in re)re.hasOwnProperty(Ne)&&e(Ne,re[Ne]);s.prototype=o.prototype,re=i.prototype=new s,re.constructor=i,pn(re,o.prototype),re.isPureReactComponent=!0;var yn=Array.isArray,eo=Symbol.for("react.client.reference"),P={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Xe=Object.prototype.hasOwnProperty,mn=console.createTask?console.createTask:function(){return null};re={react_stack_bottom_frame:function(n){return n()}};var gn,En,vn={},to=re.react_stack_bottom_frame.bind(re,a)(),no=mn(b(a)),hn=!1,Tn=/\/+/g,bn=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},Rn=!1,Ze=null,Je=0,et=!1,wt=!1,Sn=typeof queueMicrotask=="function"?function(n){queueMicrotask(function(){return queueMicrotask(n)})}:ue;re=Object.freeze({__proto__:null,c:function(n){return A().useMemoCache(n)}});var Ne={map:G,forEach:function(n,u,y){G(n,function(){u.apply(this,arguments)},y)},count:function(n){var u=0;return G(n,function(){u++}),u},toArray:function(n){return G(n,function(u){return u})||[]},only:function(n){if(!C(n))throw Error("React.Children.only expected to receive a single React element child.");return n}};O.Activity=cn,O.Children=Ne,O.Component=o,O.Fragment=Rt,O.Profiler=on,O.PureComponent=i,O.StrictMode=rn,O.Suspense=an,O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,O.__COMPILER_RUNTIME=re,O.act=function(n){var u=P.actQueue,y=Je;Je++;var h=P.actQueue=u!==null?u:[],R=!1;try{var M=n()}catch(I){P.thrownErrors.push(I)}if(0<P.thrownErrors.length)throw E(u,y),n=ae(P.thrownErrors),P.thrownErrors.length=0,n;if(M!==null&&typeof M=="object"&&typeof M.then=="function"){var L=M;return Sn(function(){R||et||(et=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(I,fe){R=!0,L.then(function(Ae){if(E(u,y),y===0){try{U(h),ue(function(){return m(Ae,I,fe)})}catch(oo){P.thrownErrors.push(oo)}if(0<P.thrownErrors.length){var ro=ae(P.thrownErrors);P.thrownErrors.length=0,fe(ro)}}else I(Ae)},function(Ae){E(u,y),0<P.thrownErrors.length&&(Ae=ae(P.thrownErrors),P.thrownErrors.length=0),fe(Ae)})}}}var N=M;if(E(u,y),y===0&&(U(h),h.length!==0&&Sn(function(){R||et||(et=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),P.actQueue=null),0<P.thrownErrors.length)throw n=ae(P.thrownErrors),P.thrownErrors.length=0,n;return{then:function(I,fe){R=!0,y===0?(P.actQueue=h,ue(function(){return m(N,I,fe)})):I(N)}}},O.cache=function(n){return function(){return n.apply(null,arguments)}},O.cacheSignal=function(){return null},O.captureOwnerStack=function(){var n=P.getCurrentStack;return n===null?null:n()},O.cloneElement=function(n,u,y){if(n==null)throw Error("The argument must be a React element, but you passed "+n+".");var h=pn({},n.props),R=n.key,M=n._owner;if(u!=null){var L;e:{if(Xe.call(u,"ref")&&(L=Object.getOwnPropertyDescriptor(u,"ref").get)&&L.isReactWarning){L=!1;break e}L=u.ref!==void 0}L&&(M=c()),g(u)&&(f(u.key),R=""+u.key);for(N in u)!Xe.call(u,N)||N==="key"||N==="__self"||N==="__source"||N==="ref"&&u.ref===void 0||(h[N]=u[N])}var N=arguments.length-2;if(N===1)h.children=y;else if(1<N){L=Array(N);for(var I=0;I<N;I++)L[I]=arguments[I+2];h.children=L}for(h=v(n.type,R,h,M,n._debugStack,n._debugTask),R=2;R<arguments.length;R++)x(arguments[R]);return h},O.createContext=function(n){return n={$$typeof:sn,_currentValue:n,_currentValue2:n,_threadCount:0,Provider:null,Consumer:null},n.Provider=n,n.Consumer={$$typeof:St,_context:n},n._currentRenderer=null,n._currentRenderer2=null,n},O.createElement=function(n,u,y){for(var h=2;h<arguments.length;h++)x(arguments[h]);h={};var R=null;if(u!=null)for(I in En||!("__self"in u)||"key"in u||(En=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),g(u)&&(f(u.key),R=""+u.key),u)Xe.call(u,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(h[I]=u[I]);var M=arguments.length-2;if(M===1)h.children=y;else if(1<M){for(var L=Array(M),N=0;N<M;N++)L[N]=arguments[N+2];Object.freeze&&Object.freeze(L),h.children=L}if(n&&n.defaultProps)for(I in M=n.defaultProps,M)h[I]===void 0&&(h[I]=M[I]);R&&S(h,typeof n=="function"?n.displayName||n.name||"Unknown":n);var I=1e4>P.recentlyCreatedOwnerStacks++;return v(n,R,h,c(),I?Error("react-stack-top-frame"):to,I?mn(b(n)):no)},O.createRef=function(){var n={current:null};return Object.seal(n),n},O.forwardRef=function(n){n!=null&&n.$$typeof===_t?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof n!="function"?console.error("forwardRef requires a render function but was given %s.",n===null?"null":typeof n):n.length!==0&&n.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",n.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),n!=null&&n.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var u={$$typeof:un,render:n},y;return Object.defineProperty(u,"displayName",{enumerable:!1,configurable:!0,get:function(){return y},set:function(h){y=h,n.name||n.displayName||(Object.defineProperty(n,"name",{value:h}),n.displayName=h)}}),u},O.isValidElement=C,O.lazy=function(n){n={_status:-1,_result:n};var u={$$typeof:ke,_payload:n,_init:le},y={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return n._ioInfo=y,u._debugInfo=[{awaited:y}],u},O.memo=function(n,u){n==null&&console.error("memo: The first argument must be a component. Instead received: %s",n===null?"null":typeof n),u={$$typeof:_t,type:n,compare:u===void 0?null:u};var y;return Object.defineProperty(u,"displayName",{enumerable:!1,configurable:!0,get:function(){return y},set:function(h){y=h,n.name||n.displayName||(Object.defineProperty(n,"name",{value:h}),n.displayName=h)}}),u},O.startTransition=function(n){var u=P.T,y={};y._updatedFibers=new Set,P.T=y;try{var h=n(),R=P.S;R!==null&&R(y,h),typeof h=="object"&&h!==null&&typeof h.then=="function"&&(P.asyncTransitions++,h.then(Re,Re),h.then(l,bn))}catch(M){bn(M)}finally{u===null&&y._updatedFibers&&(n=y._updatedFibers.size,y._updatedFibers.clear(),10<n&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),u!==null&&y.types!==null&&(u.types!==null&&u.types!==y.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),u.types=y.types),P.T=u}},O.unstable_useCacheRefresh=function(){return A().useCacheRefresh()},O.use=function(n){return A().use(n)},O.useActionState=function(n,u,y){return A().useActionState(n,u,y)},O.useCallback=function(n,u){return A().useCallback(n,u)},O.useContext=function(n){var u=A();return n.$$typeof===St&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),u.useContext(n)},O.useDebugValue=function(n,u){return A().useDebugValue(n,u)},O.useDeferredValue=function(n,u){return A().useDeferredValue(n,u)},O.useEffect=function(n,u){return n==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),A().useEffect(n,u)},O.useEffectEvent=function(n){return A().useEffectEvent(n)},O.useId=function(){return A().useId()},O.useImperativeHandle=function(n,u,y){return A().useImperativeHandle(n,u,y)},O.useInsertionEffect=function(n,u){return n==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),A().useInsertionEffect(n,u)},O.useLayoutEffect=function(n,u){return n==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),A().useLayoutEffect(n,u)},O.useMemo=function(n,u){return A().useMemo(n,u)},O.useOptimistic=function(n,u){return A().useOptimistic(n,u)},O.useReducer=function(n,u,y){return A().useReducer(n,u,y)},O.useRef=function(n){return A().useRef(n)},O.useState=function(n){return A().useState(n)},O.useSyncExternalStore=function(n,u,y){return A().useSyncExternalStore(n,u,y)},O.useTransition=function(){return A().useTransition()},O.version="19.2.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var F=Le((Hs,Ut)=>{"use strict";process.env.NODE_ENV==="production"?Ut.exports=Dn():Ut.exports=Fn()});var Br=Le(J=>{"use strict";var Ls=F();function jr(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function be(){}var Z={d:{f:be,r:function(){throw Error(jr(522))},D:be,C:be,L:be,m:be,X:be,S:be,M:be},p:0,findDOMNode:null},Cs=Symbol.for("react.portal");function Ps(e,t,r){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Cs,key:o==null?null:""+o,children:e,containerInfo:t,implementation:r}}var Qe=Ls.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Tt(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}J.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z;J.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(jr(299));return Ps(e,t,null,r)};J.flushSync=function(e){var t=Qe.T,r=Z.p;try{if(Qe.T=null,Z.p=2,e)return e()}finally{Qe.T=t,Z.p=r,Z.d.f()}};J.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Z.d.C(e,t))};J.prefetchDNS=function(e){typeof e=="string"&&Z.d.D(e)};J.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var r=t.as,o=Tt(r,t.crossOrigin),s=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;r==="style"?Z.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:o,integrity:s,fetchPriority:i}):r==="script"&&Z.d.X(e,{crossOrigin:o,integrity:s,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};J.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var r=Tt(t.as,t.crossOrigin);Z.d.M(e,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Z.d.M(e)};J.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var r=t.as,o=Tt(r,t.crossOrigin);Z.d.L(e,r,{crossOrigin:o,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};J.preloadModule=function(e,t){if(typeof e=="string")if(t){var r=Tt(t.as,t.crossOrigin);Z.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Z.d.m(e)};J.requestFormReset=function(e){Z.d.r(e)};J.unstable_batchedUpdates=function(e,t){return e(t)};J.useFormState=function(e,t,r){return Qe.H.useFormState(e,t,r)};J.useFormStatus=function(){return Qe.H.useHostTransitionStatus()};J.version="19.2.0"});var Wr=Le(ee=>{"use strict";process.env.NODE_ENV!=="production"&&(function(){function e(){}function t(c){return""+c}function r(c,a,g){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(S);var T=!1}catch{T=!0}return T&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object"),t(S)),{$$typeof:p,key:S==null?null:""+S,children:c,containerInfo:a,implementation:g}}function o(c,a){if(c==="font")return"";if(typeof a=="string")return a==="use-credentials"?a:""}function s(c){return c===null?"`null`":c===void 0?"`undefined`":c===""?"an empty string":'something with type "'+typeof c+'"'}function i(c){return c===null?"`null`":c===void 0?"`undefined`":c===""?"an empty string":typeof c=="string"?JSON.stringify(c):typeof c=="number"?"`"+c+"`":'something with type "'+typeof c+'"'}function l(){var c=b.H;return c===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
13
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),n}function Se(){P.asyncTransitions--}function ue(n){if(tt===null)try{var u=("require"+Math.random()).slice(0,7);tt=(st&&st[u]).call(st,"timers").setImmediate}catch{tt=function(h){An===!1&&(An=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var R=new MessageChannel;R.port1.onmessage=h,R.port2.postMessage(void 0)}}return tt(n)}function ae(n){return 1<n.length&&typeof AggregateError=="function"?new AggregateError(n):n[0]}function E(n,u){u!==nt-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),nt=u}function m(n,u,y){var h=P.actQueue;if(h!==null)if(h.length!==0)try{D(h),ue(function(){return m(n,u,y)});return}catch(R){P.thrownErrors.push(R)}else P.actQueue=null;0<P.thrownErrors.length?(h=ae(P.thrownErrors),P.thrownErrors.length=0,y(h)):u(n)}function D(n){if(!Ct){Ct=!0;var u=0;try{for(;u<n.length;u++){var y=n[u];do{P.didUsePromise=!1;var h=y(!1);if(h!==null){if(P.didUsePromise){n[u]=y,n.splice(0,u);return}y=h}else break}while(!0)}n.length=0}catch(R){n.splice(0,u+1),P.thrownErrors.push(R)}finally{Ct=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var O=Symbol.for("react.transitional.element"),ce=Symbol.for("react.portal"),_t=Symbol.for("react.fragment"),cn=Symbol.for("react.strict_mode"),ln=Symbol.for("react.profiler"),wt=Symbol.for("react.consumer"),fn=Symbol.for("react.context"),dn=Symbol.for("react.forward_ref"),pn=Symbol.for("react.suspense"),so=Symbol.for("react.suspense_list"),At=Symbol.for("react.memo"),Ne=Symbol.for("react.lazy"),yn=Symbol.for("react.activity"),mn=Symbol.iterator,gn={},En={isMounted:function(){return!1},enqueueForceUpdate:function(n){r(n,"forceUpdate")},enqueueReplaceState:function(n){r(n,"replaceState")},enqueueSetState:function(n){r(n,"setState")}},vn=Object.assign,Lt={};Object.freeze(Lt),o.prototype.isReactComponent={},o.prototype.setState=function(n,u){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,u,"setState")},o.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};var re={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(Ke in re)re.hasOwnProperty(Ke)&&e(Ke,re[Ke]);s.prototype=o.prototype,re=i.prototype=new s,re.constructor=i,vn(re,o.prototype),re.isPureReactComponent=!0;var hn=Array.isArray,io=Symbol.for("react.client.reference"),P={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},et=Object.prototype.hasOwnProperty,Tn=console.createTask?console.createTask:function(){return null};re={react_stack_bottom_frame:function(n){return n()}};var bn,Rn,Sn={},uo=re.react_stack_bottom_frame.bind(re,a)(),ao=Tn(b(a)),On=!1,_n=/\/+/g,wn=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},An=!1,tt=null,nt=0,rt=!1,Ct=!1,Ln=typeof queueMicrotask=="function"?function(n){queueMicrotask(function(){return queueMicrotask(n)})}:ue;re=Object.freeze({__proto__:null,c:function(n){return A().useMemoCache(n)}});var Ke={map:G,forEach:function(n,u,y){G(n,function(){u.apply(this,arguments)},y)},count:function(n){var u=0;return G(n,function(){u++}),u},toArray:function(n){return G(n,function(u){return u})||[]},only:function(n){if(!C(n))throw Error("React.Children.only expected to receive a single React element child.");return n}};_.Activity=yn,_.Children=Ke,_.Component=o,_.Fragment=_t,_.Profiler=ln,_.PureComponent=i,_.StrictMode=cn,_.Suspense=pn,_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,_.__COMPILER_RUNTIME=re,_.act=function(n){var u=P.actQueue,y=nt;nt++;var h=P.actQueue=u!==null?u:[],R=!1;try{var M=n()}catch(I){P.thrownErrors.push(I)}if(0<P.thrownErrors.length)throw E(u,y),n=ae(P.thrownErrors),P.thrownErrors.length=0,n;if(M!==null&&typeof M=="object"&&typeof M.then=="function"){var L=M;return Ln(function(){R||rt||(rt=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(I,de){R=!0,L.then(function(Le){if(E(u,y),y===0){try{D(h),ue(function(){return m(Le,I,de)})}catch(lo){P.thrownErrors.push(lo)}if(0<P.thrownErrors.length){var co=ae(P.thrownErrors);P.thrownErrors.length=0,de(co)}}else I(Le)},function(Le){E(u,y),0<P.thrownErrors.length&&(Le=ae(P.thrownErrors),P.thrownErrors.length=0),de(Le)})}}}var N=M;if(E(u,y),y===0&&(D(h),h.length!==0&&Ln(function(){R||rt||(rt=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),P.actQueue=null),0<P.thrownErrors.length)throw n=ae(P.thrownErrors),P.thrownErrors.length=0,n;return{then:function(I,de){R=!0,y===0?(P.actQueue=h,ue(function(){return m(N,I,de)})):I(N)}}},_.cache=function(n){return function(){return n.apply(null,arguments)}},_.cacheSignal=function(){return null},_.captureOwnerStack=function(){var n=P.getCurrentStack;return n===null?null:n()},_.cloneElement=function(n,u,y){if(n==null)throw Error("The argument must be a React element, but you passed "+n+".");var h=vn({},n.props),R=n.key,M=n._owner;if(u!=null){var L;e:{if(et.call(u,"ref")&&(L=Object.getOwnPropertyDescriptor(u,"ref").get)&&L.isReactWarning){L=!1;break e}L=u.ref!==void 0}L&&(M=c()),g(u)&&(f(u.key),R=""+u.key);for(N in u)!et.call(u,N)||N==="key"||N==="__self"||N==="__source"||N==="ref"&&u.ref===void 0||(h[N]=u[N])}var N=arguments.length-2;if(N===1)h.children=y;else if(1<N){L=Array(N);for(var I=0;I<N;I++)L[I]=arguments[I+2];h.children=L}for(h=v(n.type,R,h,M,n._debugStack,n._debugTask),R=2;R<arguments.length;R++)x(arguments[R]);return h},_.createContext=function(n){return n={$$typeof:fn,_currentValue:n,_currentValue2:n,_threadCount:0,Provider:null,Consumer:null},n.Provider=n,n.Consumer={$$typeof:wt,_context:n},n._currentRenderer=null,n._currentRenderer2=null,n},_.createElement=function(n,u,y){for(var h=2;h<arguments.length;h++)x(arguments[h]);h={};var R=null;if(u!=null)for(I in Rn||!("__self"in u)||"key"in u||(Rn=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),g(u)&&(f(u.key),R=""+u.key),u)et.call(u,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(h[I]=u[I]);var M=arguments.length-2;if(M===1)h.children=y;else if(1<M){for(var L=Array(M),N=0;N<M;N++)L[N]=arguments[N+2];Object.freeze&&Object.freeze(L),h.children=L}if(n&&n.defaultProps)for(I in M=n.defaultProps,M)h[I]===void 0&&(h[I]=M[I]);R&&S(h,typeof n=="function"?n.displayName||n.name||"Unknown":n);var I=1e4>P.recentlyCreatedOwnerStacks++;return v(n,R,h,c(),I?Error("react-stack-top-frame"):uo,I?Tn(b(n)):ao)},_.createRef=function(){var n={current:null};return Object.seal(n),n},_.forwardRef=function(n){n!=null&&n.$$typeof===At?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof n!="function"?console.error("forwardRef requires a render function but was given %s.",n===null?"null":typeof n):n.length!==0&&n.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",n.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),n!=null&&n.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var u={$$typeof:dn,render:n},y;return Object.defineProperty(u,"displayName",{enumerable:!1,configurable:!0,get:function(){return y},set:function(h){y=h,n.name||n.displayName||(Object.defineProperty(n,"name",{value:h}),n.displayName=h)}}),u},_.isValidElement=C,_.lazy=function(n){n={_status:-1,_result:n};var u={$$typeof:Ne,_payload:n,_init:fe},y={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return n._ioInfo=y,u._debugInfo=[{awaited:y}],u},_.memo=function(n,u){n==null&&console.error("memo: The first argument must be a component. Instead received: %s",n===null?"null":typeof n),u={$$typeof:At,type:n,compare:u===void 0?null:u};var y;return Object.defineProperty(u,"displayName",{enumerable:!1,configurable:!0,get:function(){return y},set:function(h){y=h,n.name||n.displayName||(Object.defineProperty(n,"name",{value:h}),n.displayName=h)}}),u},_.startTransition=function(n){var u=P.T,y={};y._updatedFibers=new Set,P.T=y;try{var h=n(),R=P.S;R!==null&&R(y,h),typeof h=="object"&&h!==null&&typeof h.then=="function"&&(P.asyncTransitions++,h.then(Se,Se),h.then(l,wn))}catch(M){wn(M)}finally{u===null&&y._updatedFibers&&(n=y._updatedFibers.size,y._updatedFibers.clear(),10<n&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),u!==null&&y.types!==null&&(u.types!==null&&u.types!==y.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),u.types=y.types),P.T=u}},_.unstable_useCacheRefresh=function(){return A().useCacheRefresh()},_.use=function(n){return A().use(n)},_.useActionState=function(n,u,y){return A().useActionState(n,u,y)},_.useCallback=function(n,u){return A().useCallback(n,u)},_.useContext=function(n){var u=A();return n.$$typeof===wt&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),u.useContext(n)},_.useDebugValue=function(n,u){return A().useDebugValue(n,u)},_.useDeferredValue=function(n,u){return A().useDeferredValue(n,u)},_.useEffect=function(n,u){return n==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),A().useEffect(n,u)},_.useEffectEvent=function(n){return A().useEffectEvent(n)},_.useId=function(){return A().useId()},_.useImperativeHandle=function(n,u,y){return A().useImperativeHandle(n,u,y)},_.useInsertionEffect=function(n,u){return n==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),A().useInsertionEffect(n,u)},_.useLayoutEffect=function(n,u){return n==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),A().useLayoutEffect(n,u)},_.useMemo=function(n,u){return A().useMemo(n,u)},_.useOptimistic=function(n,u){return A().useOptimistic(n,u)},_.useReducer=function(n,u,y){return A().useReducer(n,u,y)},_.useRef=function(n){return A().useRef(n)},_.useState=function(n){return A().useState(n)},_.useSyncExternalStore=function(n,u,y){return A().useSyncExternalStore(n,u,y)},_.useTransition=function(){return A().useTransition()},_.version="19.2.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var F=Ce((Gs,kt)=>{"use strict";process.env.NODE_ENV==="production"?kt.exports=Hn():kt.exports=Vn()});var qr=Ce(J=>{"use strict";var xs=F();function zr(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Re(){}var Z={d:{f:Re,r:function(){throw Error(zr(522))},D:Re,C:Re,L:Re,m:Re,X:Re,S:Re,M:Re},p:0,findDOMNode:null},Ds=Symbol.for("react.portal");function Us(e,t,r){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ds,key:o==null?null:""+o,children:e,containerInfo:t,implementation:r}}var Je=xs.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function St(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}J.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z;J.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(zr(299));return Us(e,t,null,r)};J.flushSync=function(e){var t=Je.T,r=Z.p;try{if(Je.T=null,Z.p=2,e)return e()}finally{Je.T=t,Z.p=r,Z.d.f()}};J.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Z.d.C(e,t))};J.prefetchDNS=function(e){typeof e=="string"&&Z.d.D(e)};J.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var r=t.as,o=St(r,t.crossOrigin),s=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;r==="style"?Z.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:o,integrity:s,fetchPriority:i}):r==="script"&&Z.d.X(e,{crossOrigin:o,integrity:s,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};J.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var r=St(t.as,t.crossOrigin);Z.d.M(e,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Z.d.M(e)};J.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var r=t.as,o=St(r,t.crossOrigin);Z.d.L(e,r,{crossOrigin:o,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};J.preloadModule=function(e,t){if(typeof e=="string")if(t){var r=St(t.as,t.crossOrigin);Z.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Z.d.m(e)};J.requestFormReset=function(e){Z.d.r(e)};J.unstable_batchedUpdates=function(e,t){return e(t)};J.useFormState=function(e,t,r){return Je.H.useFormState(e,t,r)};J.useFormStatus=function(){return Je.H.useHostTransitionStatus()};J.version="19.2.0"});var Qr=Ce(ee=>{"use strict";process.env.NODE_ENV!=="production"&&(function(){function e(){}function t(c){return""+c}function r(c,a,g){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(S);var T=!1}catch{T=!0}return T&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object"),t(S)),{$$typeof:p,key:S==null?null:""+S,children:c,containerInfo:a,implementation:g}}function o(c,a){if(c==="font")return"";if(typeof a=="string")return a==="use-credentials"?a:""}function s(c){return c===null?"`null`":c===void 0?"`undefined`":c===""?"an empty string":'something with type "'+typeof c+'"'}function i(c){return c===null?"`null`":c===void 0?"`undefined`":c===""?"an empty string":typeof c=="string"?JSON.stringify(c):typeof c=="number"?"`"+c+"`":'something with type "'+typeof c+'"'}function l(){var c=b.H;return c===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
14
14
  1. You might have mismatching versions of React and the renderer (such as React DOM)
15
15
  2. You might be breaking the Rules of Hooks
16
16
  3. You might have more than one copy of React in the same app
17
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var d=F(),f={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},p=Symbol.for("react.portal"),b=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),ee.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,ee.createPortal=function(c,a){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)throw Error("Target container is not a DOM element.");return r(c,a,null,g)},ee.flushSync=function(c){var a=b.T,g=f.p;try{if(b.T=null,f.p=2,c)return c()}finally{b.T=a,f.p=g,f.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},ee.preconnect=function(c,a){typeof c=="string"&&c?a!=null&&typeof a!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",i(a)):a!=null&&typeof a.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",s(a.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",s(c)),typeof c=="string"&&(a?(a=a.crossOrigin,a=typeof a=="string"?a==="use-credentials"?a:"":void 0):a=null,f.d.C(c,a))},ee.prefetchDNS=function(c){if(typeof c!="string"||!c)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",s(c));else if(1<arguments.length){var a=arguments[1];typeof a=="object"&&a.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",i(a)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",i(a))}typeof c=="string"&&f.d.D(c)},ee.preinit=function(c,a){if(typeof c=="string"&&c?a==null||typeof a!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",i(a)):a.as!=="style"&&a.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',i(a.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",s(c)),typeof c=="string"&&a&&typeof a.as=="string"){var g=a.as,S=o(g,a.crossOrigin),T=typeof a.integrity=="string"?a.integrity:void 0,v=typeof a.fetchPriority=="string"?a.fetchPriority:void 0;g==="style"?f.d.S(c,typeof a.precedence=="string"?a.precedence:void 0,{crossOrigin:S,integrity:T,fetchPriority:v}):g==="script"&&f.d.X(c,{crossOrigin:S,integrity:T,fetchPriority:v,nonce:typeof a.nonce=="string"?a.nonce:void 0})}},ee.preinitModule=function(c,a){var g="";if(typeof c=="string"&&c||(g+=" The `href` argument encountered was "+s(c)+"."),a!==void 0&&typeof a!="object"?g+=" The `options` argument encountered was "+s(a)+".":a&&"as"in a&&a.as!=="script"&&(g+=" The `as` option encountered was "+i(a.as)+"."),g)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",g);else switch(g=a&&typeof a.as=="string"?a.as:"script",g){case"script":break;default:g=i(g),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',g,c)}typeof c=="string"&&(typeof a=="object"&&a!==null?(a.as==null||a.as==="script")&&(g=o(a.as,a.crossOrigin),f.d.M(c,{crossOrigin:g,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0})):a==null&&f.d.M(c))},ee.preload=function(c,a){var g="";if(typeof c=="string"&&c||(g+=" The `href` argument encountered was "+s(c)+"."),a==null||typeof a!="object"?g+=" The `options` argument encountered was "+s(a)+".":typeof a.as=="string"&&a.as||(g+=" The `as` option encountered was "+s(a.as)+"."),g&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',g),typeof c=="string"&&typeof a=="object"&&a!==null&&typeof a.as=="string"){g=a.as;var S=o(g,a.crossOrigin);f.d.L(c,g,{crossOrigin:S,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0,type:typeof a.type=="string"?a.type:void 0,fetchPriority:typeof a.fetchPriority=="string"?a.fetchPriority:void 0,referrerPolicy:typeof a.referrerPolicy=="string"?a.referrerPolicy:void 0,imageSrcSet:typeof a.imageSrcSet=="string"?a.imageSrcSet:void 0,imageSizes:typeof a.imageSizes=="string"?a.imageSizes:void 0,media:typeof a.media=="string"?a.media:void 0})}},ee.preloadModule=function(c,a){var g="";typeof c=="string"&&c||(g+=" The `href` argument encountered was "+s(c)+"."),a!==void 0&&typeof a!="object"?g+=" The `options` argument encountered was "+s(a)+".":a&&"as"in a&&typeof a.as!="string"&&(g+=" The `as` option encountered was "+s(a.as)+"."),g&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',g),typeof c=="string"&&(a?(g=o(a.as,a.crossOrigin),f.d.m(c,{as:typeof a.as=="string"&&a.as!=="script"?a.as:void 0,crossOrigin:g,integrity:typeof a.integrity=="string"?a.integrity:void 0})):f.d.m(c))},ee.requestFormReset=function(c){f.d.r(c)},ee.unstable_batchedUpdates=function(c,a){return c(a)},ee.useFormState=function(c,a,g){return l().useFormState(c,a,g)},ee.useFormStatus=function(){return l().useHostTransitionStatus()},ee.version="19.2.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Yr=Le((ma,Jt)=>{"use strict";function Gr(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Gr)}catch(e){console.error(e)}}}process.env.NODE_ENV==="production"?(Gr(),Jt.exports=Br()):Jt.exports=Wr()});var rt=K(F(),1);function Me(...e){if(e.length===0)return{};if(e.length===1)return typeof e[0]=="object"&&e[0]!==null?e[0]:{};let t={},r={};for(let o of e)if(!(typeof o!="object"||o===null)){for(let s in o)if(Object.hasOwn(o,s)){if(s==="children")continue;let i=o[s];s.startsWith("on")&&typeof i=="function"?(r[s]??=[],r[s].push(i)):t[s]=i}}for(let o in r)Object.hasOwn(r,o)&&r[o].length>0&&(t[o]=(...s)=>{for(let i of r[o])i?.(...s)});for(let o=e.length-1;o>=0;o--){let s=e[o];if(typeof s=="object"&&s!==null&&"children"in s){t.children=s.children;break}}return t}function Lo({props:e,ref:t,context:r}){let o=Dt({context:r,slot:e.slot})||{},{ref:s=null,...i}=o,l=(0,rt.useRef)(null),d=(0,rt.useCallback)(p=>{l.current=p,typeof t=="function"?t(p):t&&(t.current=p),typeof s=="function"?s(p):s&&typeof s=="object"&&(s.current=p)},[t,s]),f=Me(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?f.style=p=>{let b=typeof i.style=="function"?i.style(p):i.style,c={...p.defaultStyle,...b},a=typeof e.style=="function"?e.style({...p,defaultStyle:c}):e.style;return{...c,...a}}:f.style={...i.style,...e.style}),[f,d]}var se=K(F(),1);function Co(e={}){let{partialVisibility:t=!1,threshold:r=0,rootMargin:o="0px",root:s=null,active:i=!0,once:l=!1,onChange:d}=e,[f,p]=(0,se.useState)(null),[b,c]=(0,se.useState)(!1),[a,g]=(0,se.useState)(null),S=(0,se.useRef)(!1),T=(0,se.useRef)(null),v=Se(x=>{let C=x[0],B=C.isIntersecting,D={isIntersecting:C.isIntersecting,intersectionRatio:C.intersectionRatio,intersectionRect:C.intersectionRect,boundingClientRect:C.boundingClientRect,rootBounds:C.rootBounds,time:C.time};g(D),c(Y=>l&&S.current?!0:B&&l?(S.current=!0,Y!==!0&&d&&d(!0),!0):Y!==B?(d&&d(B),B):Y)}),k=(0,se.useCallback)(x=>{p(x)},[]);return(0,se.useEffect)(()=>{if(!i||!f)return;let x;return t===!0?x=[0,.1,.25,.5,.75,1]:typeof t=="string"?x=.01:x=r,T.current=new IntersectionObserver(v,{root:s,rootMargin:o,threshold:x}),T.current.observe(f),()=>{T.current&&T.current.disconnect()}},[i,f,s,o,r,t]),[k,b,a]}var ft=K(F(),1);var Po=Object.defineProperty,ot=(e,t)=>{for(var r in t)Po(e,r,{get:t[r],enumerable:!0})},Ie={};ot(Ie,{ARIA_ATTRIBUTES:()=>kn,HTML_TAGS:()=>Kn,PRIMITIVE_TAGS:()=>Nn,default:()=>Mo});var kn=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-dropeffect","aria-errormessage","aria-expanded","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],Nn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Kn=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],Mo={ARIA_ATTRIBUTES:kn,PRIMITIVE_TAGS:Nn,HTML_TAGS:Kn},Io={};ot(Io,{NUMERIC_DIGITS:()=>Hn,default:()=>xo});var Hn=["1","2","3","4","5","6","7","8","9","0"],xo={NUMERIC_DIGITS:Hn},Uo={};ot(Uo,{AMPERSAND:()=>Qn,ASTERISK:()=>Zn,BACKSLASH:()=>cr,BOM:()=>Vn,CARRIAGE_RETURN:()=>Wn,COLON:()=>rr,COMMA:()=>er,COMMERCIAL_AT:()=>ur,DOT:()=>nr,DOUBLE_QUOTE:()=>$n,EXCLAMATION:()=>Yn,GRAVE_ACCENT:()=>fr,GREATER_THAN:()=>sr,LEFT_CURLY_BRACKET:()=>dr,LEFT_SQUARE_BRACKET:()=>ar,LINE_FEED:()=>Bn,MINUS:()=>tr,PERCENT:()=>qn,PLUS:()=>Jn,QUESTION:()=>ir,RIGHT_CURLY_BRACKET:()=>yr,RIGHT_SQUARE_BRACKET:()=>lr,SHARP:()=>zn,SINGLE_QUOTE:()=>Xn,SMALLER_THAN:()=>or,SPACE:()=>Gn,TAB:()=>jn,VERTICAL_LINE:()=>pr,default:()=>Do});var Vn=65279,jn=9,Bn=10,Wn=13,Gn=32,Yn=33,$n=34,zn=35,qn=37,Qn=38,Xn=39,Zn=42,Jn=43,er=44,tr=45,nr=46,rr=58,or=60,sr=62,ir=63,ur=64,ar=91,cr=92,lr=93,fr=96,dr=123,pr=124,yr=125,Do={BOM:Vn,TAB:jn,LINE_FEED:Bn,CARRIAGE_RETURN:Wn,SPACE:Gn,EXCLAMATION:Yn,DOUBLE_QUOTE:$n,SHARP:zn,PERCENT:qn,AMPERSAND:Qn,SINGLE_QUOTE:Xn,ASTERISK:Zn,PLUS:Jn,COMMA:er,MINUS:tr,DOT:nr,COLON:rr,SMALLER_THAN:or,GREATER_THAN:sr,QUESTION:ir,COMMERCIAL_AT:ur,LEFT_SQUARE_BRACKET:ar,BACKSLASH:cr,RIGHT_SQUARE_BRACKET:lr,GRAVE_ACCENT:fr,LEFT_CURLY_BRACKET:dr,VERTICAL_LINE:pr,RIGHT_CURLY_BRACKET:yr},Fo={};ot(Fo,{CAPITALIZED:()=>mr,LOWERCASE:()=>gr,VOWELS:()=>Er,default:()=>ko});var mr=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],gr=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],Er=["A","E","I","O","U","a","e","i","o","u"],ko={CAPITALIZED:mr,LOWERCASE:gr,VOWELS:Er};function No(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):!1}var st=()=>No(/^Mac/i);function vr(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):!1}var Ko=()=>vr(/^iPhone/i),Ho=()=>vr(/^iPad/i)||st()&&navigator.maxTouchPoints>1,Ft=()=>Ko()||Ho();function it(e){return st()?e.metaKey??!1:e.ctrlKey??!1}function q(e){return e?.ownerDocument??document}function pe(e){return e&&"window"in e&&e.window===e?e:q(e).defaultView||window}var ut=null;function Vo(){if(ut==null){ut=!1;try{document.createElement("div").focus({get preventScroll(){return ut=!0,!0}})}catch{}}return ut}function Tr(e,t,r){let{block:o="nearest",inline:s="nearest"}=r??{},i=e.getBoundingClientRect(),l=t.getBoundingClientRect(),d=l.top<i.top,f=l.bottom>i.bottom,p=l.left<i.left,b=l.right>i.right;if(d||f){let c=e.scrollTop;if(o==="start"||o==="nearest"&&d)c=e.scrollTop+(l.top-i.top);else if(o==="end"||o==="nearest"&&f)c=e.scrollTop+(l.bottom-i.bottom);else if(o==="center"){let a=i.top+i.height/2,g=l.top+l.height/2;c=e.scrollTop+(g-a)}e.scrollTop=c}if(p||b){let c=e.scrollLeft;if(s==="start"||s==="nearest"&&p)c=e.scrollLeft+(l.left-i.left);else if(s==="end"||s==="nearest"&&b)c=e.scrollLeft+(l.right-i.right);else if(s==="center"){let a=i.left+i.width/2,g=l.left+l.width/2;c=e.scrollLeft+(g-a)}e.scrollLeft=c}}function jo(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}function at(e,t,r=!0){if(!e||!t)return!1;if(!r)return e.contains(t);let o=t;for(;o;){if(o===e)return!0;o=o instanceof Element&&o.tagName==="SLOT"&&o.assignedSlot?o.assignedSlot.parentNode:jo(o)?o.host:o.parentNode}return!1}var ye=(e=document,t=!0)=>{if(!t)return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&r.shadowRoot?.activeElement;)r=r.shadowRoot.activeElement;return r};function ct(e,t=!0){return t&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function He(e){if(Vo())e.focus({preventScroll:!0});else{let t=Bo(e);e.focus();for(let{element:r,scrollTop:o,scrollLeft:s}of t)r.scrollTop=o,r.scrollLeft=s}}function Bo(e){let t=e.parentNode,r=Array.from({length:0}),o=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==o;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return o instanceof HTMLElement&&r.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),r}var br="necto-style",hr=new WeakMap;function Wo(e){let t=hr.get(e);return t||(t=new Map,hr.set(e,t)),t}function Go(e,t={}){let{id:r=br,insertionPoint:o}=t,s=o?q(o):document,i=s.createElement("style");return i.setAttribute("type","text/css"),i.setAttribute("necto-style-id",r),i.textContent=e,o?s.head.insertBefore(i,o):s.head.appendChild(i),i}function Rr(e,t={}){let{id:r=br,window:o=typeof window<"u"?window:null,insertionPoint:s}=t;if(!o||!e)return()=>{};let i=Wo(o),l=`${r}:${e}`,d=i.get(l);return d?d.element&&(d.element.textContent=e,d.count++):(d={element:Go(e,{id:r,insertionPoint:s}),count:1},i.set(l,d)),()=>{let f=i.get(l);f?.element&&(f.count--,f.count<1&&(f.element.remove(),f.element=null,i.delete(l)))}}var de=new Map,kt=new Set;function Yo(e){if(!("propertyName"in e)||!e.target)return;let t=de.get(e.target);t||(t=new Set,de.set(e.target,t),e.target.addEventListener("transitioncancel",Kt,{once:!0})),t.add(e.propertyName)}function Kt(e){if(!("propertyName"in e)||!e.target)return;let t=de.get(e.target);if(t&&(t.delete(e.propertyName),t.size===0&&(e.target.removeEventListener("transitioncancel",Kt),de.delete(e.target)),de.size===0)){for(let r of kt)r();kt.clear()}}if(typeof window<"u"&&typeof document<"u"){let e=()=>{let t=document.body;t&&(t.addEventListener("transitionrun",Yo),t.addEventListener("transitionend",Kt))};document.readyState!=="loading"?e():document.addEventListener("DOMContentLoaded",e,{once:!0})}function Ht(e){requestAnimationFrame(()=>{for(let[t]of de)"isConnected"in t&&!t.isConnected&&de.delete(t);de.size===0?e():kt.add(e)})}var ei=Ie.HTML_TAGS.reduce((e,t)=>{var r;return e[r=t,r.charAt(0).toUpperCase()+r.slice(1)]=t,e},{}),Nt="",xe="default",Ke=new WeakMap;function lt(e){if(Ft()){if(xe==="default"){let t=q(e);t?.documentElement?.style.webkitUserSelect!==void 0&&(Nt=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none",xe="disabled")}}else if(e instanceof HTMLElement||e instanceof SVGElement){let t=e.style,r="userSelect"in t?"userSelect":"webkitUserSelect";Ke.has(e)||(Ke.set(e,t[r]??""),t[r]="none")}}function me(e){if(Ft()){if(xe!=="disabled")return;xe="restoring",setTimeout(()=>{Ht(()=>{if(xe==="restoring"){let t=q(e);t?.documentElement?.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Nt||""),Nt="",xe="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&Ke.has(e)){let t=Ke.get(e)??"",r=e.style,o="userSelect"in r?"userSelect":"webkitUserSelect";r[o]==="none"&&(r[o]=t),e.getAttribute("style")?.trim()===""&&e.removeAttribute("style"),Ke.delete(e)}}var W=Ie.ARIA_ATTRIBUTES.reduce((e,t)=>(e[(r=>{let o=r.replace("aria-","");return o.charAt(0).toUpperCase()+o.slice(1)})(t)]=t,e),{}),$o=Ie.ARIA_ATTRIBUTES,ri=new Set($o);function Ve(e={}){let{isDisabled:t,onFocus:r,onBlur:o,onFocusChange:s}=e,i=(0,ft.useCallback)((p,b)=>{p?(r?.(b),s?.(!0)):(o?.(b),s?.(!1))},[r,o,s]),l=(0,ft.useCallback)(p=>{p.target===p.currentTarget&&i(!1,p)},[i]),d=je({onBlur:l}),f=(0,ft.useCallback)(p=>{let b=q(p.target),c=b?ye(b):ye();p.target===p.currentTarget&&c===ct(p.nativeEvent)&&(i(!0,p),d(p))},[i,d]);return{focusProps:{...t?{}:{onFocus:f,onBlur:l}}}}var dt=K(F(),1);function zo(e,t){let{autoFocus:r,isDisabled:o,excludeFromTabOrder:s}=e,{focusProps:i}=Ve(e),{keyboardProps:l}=Vt(e),d=(0,dt.useRef)(r),f=q(t.current),p=ye(f);(0,dt.useEffect)(()=>{if(d.current&&t.current)if(Be()==="virtual"){let c=p;Ht(()=>{ye(f)===c&&t.current?.isConnected&&He(t.current)})}else He(t.current);d.current=!1},[t]);let b=s?-1:0;return o&&(b=void 0),{focusableProps:Me(i??{},l,{tabIndex:b})}}var ge=K(F(),1);var qo=null;function Qo(e={}){let{within:t=!1,isTextInput:r=!1,autoFocus:o=!1}=e,s=(0,ge.useRef)({isFocused:o,isFocusVisible:o||qo!=="pointer"}),[i,l]=(0,ge.useState)(o),[d,f]=(0,ge.useState)(()=>s.current.isFocused&&s.current.isFocusVisible),p=(0,ge.useCallback)(()=>{f(s.current.isFocused&&s.current.isFocusVisible)},[]),b=(0,ge.useCallback)(g=>{s.current.isFocused=g,l(g),p()},[p]);We({fn:g=>{s.current.isFocusVisible=g,p()},deps:[],opts:{isTextInput:r}});let{focusProps:c={}}=Ve({isDisabled:t,onFocusChange:b})||{},{focusWithinProps:a={}}=jt({isDisabled:!t,onFocusWithinChange:b})||{};return{isFocused:i,isFocusVisible:d,focusProps:t?a:c}}var Sr=K(F(),1);function Xo(e={}){let{isTextInput:t,autoFocus:r}=e,[o,s]=(0,Sr.useState)(r||Be()!=="pointer");return We({fn:i=>s(i),deps:[t],opts:{isTextInput:t}}),{isFocusVisible:o}}var Ue=new Map,pt=new Set,_r=!1,Bt=null,Or=!1,Q={get hasEventBeforeFocus(){return _r},set hasEventBeforeFocus(e){_r=e},get hasBlurredWindowRecently(){return Or},set hasBlurredWindowRecently(e){Or=e},get currentModality(){return Bt},set currentModality(e){Bt=e}};function Be(){return Bt}var ps={},yt=Object.create(null),Ge=e=>globalThis.process?.env||ps.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?yt:globalThis),Ee=new Proxy(yt,{get(e,t){return Ge()[t]??yt[t]},has(e,t){let r=Ge();return t in r||t in yt},set(e,t,r){let o=Ge(!0);return o[t]=r,!0},deleteProperty(e,t){if(!t)return!1;let r=Ge(!0);return delete r[t],!0},ownKeys(){let e=Ge(!0);return Object.keys(e)}}),Ar=typeof process<"u"&&process.env&&process.env.NODE_ENV||"",Zo=[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:!0}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:!0}],["CLOUDFLARE_WORKERS","WORKERS_CI",{ci:!0}],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["HUDSON","HUDSON_URL"],["JENKINS","JENKINS_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:!1}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:!1}],["VERCEL","VERCEL_ENV",{ci:!1}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:!1}],["CODESANDBOX","CODESANDBOX_HOST",{ci:!1}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:!0}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:!0}]];function Jo(){if(globalThis.process?.env)for(let e of Zo){let t=e[1]||e[0];if(globalThis.process?.env[t])return{name:e[0].toLowerCase(),...e[2]}}return globalThis.process?.env?.SHELL==="/bin/jsh"&&globalThis.process?.versions?.webcontainer?{name:"stackblitz",ci:!1}:{name:"",ci:!1}}var Lr=Jo(),Ai=Lr.name;function _e(e){return e?e!=="false":!1}var Wt=globalThis.process?.platform||"",Cr=_e(Ee.CI)||Lr.ci!==!1,Pr=_e(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY);var Li=_e(Ee.DEBUG),Oe=Ar==="test"||_e(Ee.TEST),Mr=Ar==="production";var Ci=_e(Ee.MINIMAL)||Cr||Oe||!Pr,es=/^win/i.test(Wt),Pi=/^linux/i.test(Wt),Ir=/^darwin/i.test(Wt),Mi=!_e(Ee.NO_COLOR)&&(_e(Ee.FORCE_COLOR)||(Pr||es)&&Ee.TERM!=="dumb"||Cr),ts=(globalThis.process?.versions?.node||"").replace(/^v/,"")||null,Ii=Number(ts?.split(".")[0])||null,ns=globalThis.process||Object.create(null),wr={versions:{}},xi=new Proxy(ns,{get(e,t){if(t==="env")return Ee;if(t in e)return e[t];if(t in wr)return wr[t]}}),rs=globalThis.process?.release?.name==="node",os=!!globalThis.Bun||!!globalThis.process?.versions?.bun,ss=!!globalThis.Deno,is=!!globalThis.fastly,us=!!globalThis.Netlify,as=!!globalThis.EdgeRuntime,cs=globalThis.navigator?.userAgent==="Cloudflare-Workers",ls=[[us,"netlify"],[as,"edge-light"],[cs,"workerd"],[is,"fastly"],[ss,"deno"],[os,"bun"],[rs,"node"]];function fs(){let e=ls.find(t=>t[0]);if(e)return{name:e[1]}}var ds=fs(),Ui=ds?.name||"";var Ur=K(F(),1);function Gt(e){if(!e)return;let t=!0;return r=>{let o={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t&&Mr?console.error("stopPropagation is now the default behavior for events in Necto. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(o),t&&r.stopPropagation()}}function mt(e){let t=e;return Object.assign(t,{nativeEvent:e,isDefaultPrevented:()=>t.defaultPrevented,isPropagationStopped:()=>t.cancelBubble,persist:()=>{}}),t}var ys=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),ms={Tab:!0,Escape:!0};function xr(e,t,r){if(!r||!("target"in r)||!r.target)return!1;let o=q(r.target),s=pe(r.target),i=typeof window<"u"?s.HTMLInputElement:HTMLInputElement,l=typeof window<"u"?s.HTMLTextAreaElement:HTMLTextAreaElement,d=typeof window<"u"?s.HTMLElement:HTMLElement,f=typeof window<"u"?s.KeyboardEvent:KeyboardEvent,p=o.activeElement;return e=e||p instanceof i&&!ys.has(p.type)||p instanceof l||p instanceof d&&p.isContentEditable,!(e&&t==="keyboard"&&r instanceof f&&!ms[r.key])}function $t(e,t){pt.forEach(r=>r(e,t))}function gs(e){return!(e.metaKey||Ir&&e.altKey||e.ctrlKey||["Control","Shift","Meta"].includes(e.key))}function Dr(e){gs(e)&&(Q.hasEventBeforeFocus=!0,Q.currentModality="keyboard",$t("keyboard",e))}function Yt(e){["mousedown","pointerdown"].includes(e.type)&&(Q.hasEventBeforeFocus=!0,Q.currentModality="pointer",$t("pointer",e))}function Fr(e){[window,document].includes(e.target)||!e.isTrusted||!Q.hasEventBeforeFocus&&!Q.hasBlurredWindowRecently||(!Q.hasEventBeforeFocus&&!Q.hasBlurredWindowRecently&&(Q.currentModality="virtual",$t("virtual",e)),Q.hasEventBeforeFocus=!1,Q.hasBlurredWindowRecently=!1)}function kr(){Q.hasEventBeforeFocus=!1,Q.hasBlurredWindowRecently=!0}function Es(e){let t=pe(e),r=q(e);if(typeof window>"u"||typeof document>"u"||Ue.has(t))return;let o=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(...s){Q.hasEventBeforeFocus=!0,o.apply(this,s)},r.addEventListener("keydown",Dr,!0),r.addEventListener("click",Yt,!0),t.addEventListener("focus",Fr,!0),t.addEventListener("blur",kr,!1),typeof PointerEvent<"u"&&r.addEventListener("pointerdown",Yt,!0),Ue.set(t,{focus:o})}function vs(e){let t=pe(e),r=q(e);if(!Ue.has(t))return;let{focus:o}=Ue.get(t);t.HTMLElement.prototype.focus=o,r.removeEventListener("keydown",Dr,!0),r.removeEventListener("click",Yt,!0),t.removeEventListener("focus",Fr,!0),t.removeEventListener("blur",kr,!1),Ue.delete(t)}function We(e){let{fn:t,deps:r,opts:o}=e;typeof window>"u"||typeof document>"u"||(Es(),(0,Ur.useEffect)(()=>{let s=(i,l)=>{xr(!!o?.isTextInput,i,l)&&t(Q.currentModality!=="pointer")};return pt.add(s),()=>{pt.delete(s),vs()}},r))}var Ye=K(F(),1);function jt(e){let{isDisabled:t,onFocusWithin:r,onBlurWithin:o,onFocusWithinChange:s}=e,i=(0,Ye.useRef)({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:d}=$e(),f=(0,Ye.useCallback)(c=>{c.currentTarget.contains(c.target)&&i.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(i.current.isFocusWithin=!1,d(),o&&o(c),s&&s(!1))},[o,s,d]),p=je({onBlur:f}),b=(0,Ye.useCallback)(c=>{if(!c.currentTarget.contains(c.target))return;let a=q(c.target),g=ye(a);if(!i.current.isFocusWithin&&g===ct(c.nativeEvent)){r&&r(c),s&&s(!0),i.current.isFocusWithin=!0,p(c);let S=c.currentTarget;l(a,"focus",T=>{if(i.current.isFocusWithin&&!at(S,T.target)&&a.defaultView&&typeof a.defaultView.FocusEvent=="function"){let v=new a.defaultView.FocusEvent("blur",{relatedTarget:T.target});Object.defineProperty(v,"target",{value:S}),Object.defineProperty(v,"currentTarget",{value:S});let k=mt(v);f(k)}},{capture:!0})}},[r,s,p,l,f]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:b,onBlur:f}}}var ve=K(F(),1);function $e(){let e=(0,ve.useRef)(new Map),t=(0,ve.useCallback)((s,i,l,d)=>{let f=typeof d=="object"&&d?.once?(...p)=>{e.current.delete(l),l(...p)}:l;e.current.set(l,{type:i,eventTarget:s,options:d}),s.addEventListener(i,f,d)},[]),r=(0,ve.useCallback)((s,i,l,d)=>{let f=e.current.get(l),p=f?.options?.once?f.fn:l;s.removeEventListener(i,p,d),e.current.delete(l)},[]),o=(0,ve.useCallback)(()=>{e.current.forEach((s,i)=>{s.eventTarget.removeEventListener(s.type,i,s.options)}),e.current.clear()},[]);return(0,ve.useEffect)(()=>()=>o(),[o]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:o}}var te=K(F(),1);function hs(e={}){let{onHoverStart:t,onHoverChange:r,onHoverEnd:o,isDisabled:s}=e,[i,l]=(0,te.useState)(!1),d=(0,te.useRef)({hoverCount:0,ignoreEmulated:!1}),f=(0,te.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current,{addGlobalListener:p,removeAllGlobalListeners:b}=$e(),c=(0,te.useCallback)(()=>{d.current.ignoreEmulated=!0,setTimeout(()=>{d.current.ignoreEmulated=!1},50)},[]);(0,te.useEffect)(()=>{let T=k=>{k.pointerType==="touch"&&c()};if(typeof document>"u")return;let v=d.current;return v.hoverCount++,typeof PointerEvent<"u"?document.addEventListener("pointerup",T):Oe&&document.addEventListener("touchend",c),()=>{v.hoverCount--,v.hoverCount===0&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",T):Oe&&document.removeEventListener("touchend",c))}},[c]);let a=(0,te.useCallback)((T,v)=>{s||v==="touch"||f.isHovered||!(T.currentTarget&&T.currentTarget.contains(T.target))||(f.isHovered=!0,f.pointerType=v,f.target=T.currentTarget,p(q(T.target instanceof Element?T.target:null),"pointerover",k=>{f.isHovered&&f.target&&!at(f.target,k.target)&&g(k,k.pointerType)},{capture:!0}),t?.({type:"hoverstart",target:T.currentTarget,pointerType:v}),r?.(!0),l(!0))},[s,t,r,p,f]),g=(0,te.useCallback)((T,v)=>{v==="touch"||!f.isHovered||!f.target||(f.isHovered=!1,f.pointerType="",f.target=null,b(),o?.({type:"hoverend",target:T.currentTarget,pointerType:v}),r?.(!1),l(!1))},[o,r,b,f.target,f]),S=(0,te.useMemo)(()=>{let T={};return typeof PointerEvent<"u"?(T.onPointerEnter=v=>{d.current.ignoreEmulated&&v.pointerType==="mouse"||a(v,v.pointerType)},T.onPointerLeave=v=>{!s&&v.currentTarget instanceof Element&&v.currentTarget.contains(v.target)&&g(v,v.pointerType)}):Oe&&(T.onTouchStart=()=>{f.ignoreEmulatedMouseEvents=!0},T.onMouseEnter=v=>{!f.ignoreEmulatedMouseEvents&&!d.current.ignoreEmulated&&a(v.nativeEvent,"mouse"),f.ignoreEmulatedMouseEvents=!1},T.onMouseLeave=v=>{!s&&v.currentTarget.contains(v.target)&&g(v.nativeEvent,"mouse")}),T},[s,a,g,f]);return(0,te.useEffect)(()=>{s&&f.isHovered&&g({currentTarget:f.target},f.pointerType)},[s,g,f.isHovered,f.pointerType,f.target]),{hoverProps:S,isHovered:i}}var zt={prefix:String(Math.round(Math.random()*1e10)),current:0},ze=new Map,qe=typeof FinalizationRegistry<"u"?new FinalizationRegistry(e=>{ze.delete(e)}):null;var oe=K(F(),1);function Ts(e={}){let{prefix:t="necto",defaultId:r}=e,[o,s]=(0,oe.useState)(()=>r),i=(0,oe.useRef)(null),l=(0,oe.useRef)({}),d=(()=>{if(r)return r;let f=typeof oe.default.useId=="function"?(0,oe.useId)():String(++zt.current);return`${Oe?t:`${t}${zt.prefix}`}-${f}`})();return(0,oe.useEffect)(()=>{if(typeof window<"u"&&window.document?.createElement){let f=ze.get(d)||[],p={current:i.current};f.some(b=>b===p)||ze.set(d,[...f,p])}return qe&&qe.register(l.current,d),()=>{qe&&qe.unregister(l.current),ze.delete(d)}},[d]),(0,oe.useEffect)(()=>{let f=i.current;f&&(s(f),i.current=null)},[]),d}function Vt(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:e.onKeyDown?Gt(t=>e.onKeyDown?.(t.nativeEvent)):void 0,onKeyUp:e.onKeyUp?Gt(t=>e.onKeyUp?.(t.nativeEvent)):void 0}}}var he=K(F(),1);function qt(e={}){let{type:t="function"}=e,r=(0,he.useRef)(!1),[o,s]=(0,he.useState)(!1),i=(0,he.useCallback)(()=>r.current,[]);return(0,he.useEffect)(()=>(r.current=!0,s(!0),()=>{r.current=!1,s(!1)}),[]),t==="ref"?r:t==="boolean"?o:i}var V=K(F(),1);function X(e,t,r){return{type:e,pointerType:t,target:r.currentTarget??r.target,shiftKey:r.shiftKey,ctrlKey:r.ctrlKey,metaKey:r.metaKey,altKey:r.altKey}}function bs(e={}){let{isDisabled:t,preventFocusOnPress:r,allowTextSelectionOnPress:o,ref:s,onPress:i,onPressStart:l,onPressEnd:d,onPressChange:f,onPressUp:p,onClick:b}=e,[c,a]=(0,V.useState)(!1),g=(0,V.useRef)(!1),S=(0,V.useRef)(null),T=(0,V.useRef)(!1),v=(0,V.useCallback)(E=>{c!==E&&(a(E),f?.(E))},[c,f]),k=(0,V.useCallback)(E=>{if(!T.current)return;let m=S.current&&S.current instanceof Node&&E.target instanceof Node&&S.current.contains(E.target);if(T.current=!1,v(!1),!o&&S.current instanceof HTMLElement&&me(S.current),E.target){let U={...X("pressend","mouse",E),target:E.target};d?.(U),p?.(U),m&&i?.(U)}},[d,p,i,v,o]),x=(0,V.useCallback)(E=>{if(t||E.button!==0||g.current)return;r&&E.preventDefault(),o||lt(E.currentTarget),T.current=!0,S.current=E.currentTarget,v(!0);let m=X("pressstart","mouse",E);l?.(m),window.addEventListener("mouseup",k,{once:!0})},[t,r,o,l,v,k]),C=(0,V.useCallback)(E=>{if(t||E.button!==0||!T.current)return;T.current=!1,v(!1),!o&&E.currentTarget instanceof HTMLElement&&me(E.currentTarget);let m=X("pressend","mouse",E);d?.(m),p?.(m),E.currentTarget instanceof Node&&E.currentTarget.contains(E.target)&&i?.(X("press","mouse",E))},[t,i,d,p,v,o]),B=(0,V.useCallback)(E=>{c&&(v(!1),d?.(X("pressend","mouse",E)),!o&&E.currentTarget instanceof HTMLElement&&me(E.currentTarget))},[c,v,d,o]),D=(0,V.useCallback)(E=>{T.current&&!c&&(v(!0),l?.(X("pressstart","mouse",E)))},[c,l,v]),Y=(0,V.useCallback)(E=>{if(!T.current)return;T.current=!1,v(!1),!o&&S.current instanceof HTMLElement&&me(S.current);let m={...X("pressend","touch",E),target:E.target};d?.(m),p?.(m)},[d,p,v,o]),j=(0,V.useCallback)(E=>{if(!T.current)return;T.current=!1,v(!1),!o&&S.current instanceof HTMLElement&&me(S.current);let m={...X("pressend","touch",E),target:E.target};d?.(m)},[d,v,o]),G=(0,V.useCallback)(E=>{t||(o||lt(E.currentTarget),g.current=!0,setTimeout(()=>{g.current=!1},100),T.current=!0,S.current=E.currentTarget,v(!0),l?.(X("pressstart","touch",E)),window.addEventListener("touchend",Y,{once:!0}),window.addEventListener("touchcancel",j,{once:!0}))},[t,l,v,o,Y,j]),le=(0,V.useCallback)(E=>{if(t||!T.current)return;T.current=!1,v(!1),!o&&E.currentTarget instanceof HTMLElement&&me(E.currentTarget);let m=X("pressend","touch",E);d?.(m),p?.(m),E.currentTarget instanceof Node&&E.currentTarget.contains(E.target)&&i?.(X("press","touch",E))},[t,i,d,p,v,o]),A=(0,V.useCallback)(E=>{if(t)return;(E.key==="Enter"||E.key===" ")&&!c&&(E.key===" "&&E.preventDefault(),o||lt(),v(!0),T.current=!0,l?.(X("pressstart","keyboard",E)))},[t,c,l,v,o]),Re=(0,V.useCallback)(E=>{if(t)return;if((E.key==="Enter"||E.key===" ")&&c){v(!1),T.current=!1,o||me();let U=X("pressend","keyboard",E);d?.(U),p?.(X("pressup","keyboard",E)),i?.(X("press","keyboard",E))}},[t,c,i,d,p,v,o]),ue=(0,V.useCallback)(E=>{if(t){E.preventDefault();return}g.current||b?.(E)},[t,b]);(0,V.useEffect)(()=>()=>{window.removeEventListener("mouseup",k),window.removeEventListener("touchend",Y),window.removeEventListener("touchcancel",j)},[k,Y,j]);let ae=(0,V.useMemo)(()=>({onMouseDown:x,onMouseUp:C,onMouseLeave:B,onMouseEnter:D,onTouchStart:G,onTouchEnd:le,onKeyDown:A,onKeyUp:Re,onClick:ue}),[x,C,B,D,G,le,A,Re,ue]);return(0,V.useEffect)(()=>{let E=s?.current;E&&E instanceof pe(E).Element&&pe(E).getComputedStyle(E).touchAction==="auto"&&(E.style.touchAction="pan-x pan-y pinch-zoom")},[s]),{pressProps:ae,isPressed:c}}var Nr=K(F(),1);function Rs(e){let{style:t,values:r,children:o,className:s,defaultStyle:i,defaultChildren:l,defaultClassName:d="necto"}=e;return(0,Nr.useMemo)(()=>{let f=typeof s=="function"?s({...r,defaultClassName:d}):s?`${d} ${s}`:d,p=typeof t=="function"?t({...r,defaultStyle:i||{}}):{...i,...t},b=typeof o=="function"?o({...r,defaultChildren:l}):o??l;return{className:f,style:p,children:b}},[s,t,o,d,l,i,r])}var Kr=K(F(),1);function Dt(e){let{context:t,slot:r}=e,o=(0,Kr.useContext)(t);if(r===null)return null;if(o&&typeof o=="object"&&"slots"in o&&o.slots){let s=r||Symbol("default");if(!o.slots[s]){let i=new Intl.ListFormat().format(Object.keys(o.slots).map(d=>`"${d}"`)),l=r?`Invalid slot name: "${r}". This slot is not recognized. Please refer to the component's documentation for valid slot names.`:"A slot prop is required. You must provide a valid slot name to render content in this area.";throw new Error(`${l} Valid slot names are ${i}.`)}return o.slots[s]}return o}var De=K(F(),1);function je(e){let{onBlur:t}=e,r=(0,De.useRef)({isFocused:!1,observer:null});(0,De.useLayoutEffect)(()=>{let s=r.current;return()=>{s.observer&&(s.observer.disconnect(),s.observer=null)}},[]);let o=Se(s=>{t?.(s)});return(0,De.useCallback)(s=>{if(s.target instanceof HTMLButtonElement||s.target instanceof HTMLInputElement||s.target instanceof HTMLTextAreaElement||s.target instanceof HTMLSelectElement){r.current.isFocused=!0;let i=s.target,l=d=>{if(r.current.isFocused=!1,i.disabled){let f=mt(d);o(f)}r.current.observer&&(r.current.observer.disconnect(),r.current.observer=null)};i.addEventListener("focusout",l,{once:!0}),r.current.observer=new MutationObserver(()=>{if(r.current.isFocused&&i.disabled){r.current.observer?.disconnect();let d=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:d})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:d}))}}),r.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[o])}var Te=K(F(),1);function Se(e){let t=(0,Te.useRef)(e);return(typeof window<"u"?Te.useLayoutEffect:Te.useEffect)(()=>{t.current=e},[e]),(0,Te.useCallback)(((...r)=>t.current(...r)),[])}var gt=K(F(),1);function Hu(e){let t=qt(),[r,o]=(0,gt.useState)(!1);return(0,gt.useEffect)(()=>{t()&&o(!!e())},[e,t]),r}var we=K(F(),1);function Ss(e={}){let{autoLock:t=!1,target:r,widthReflow:o=!0}=e,[s,i]=(0,we.useState)(!1),l=(0,we.useRef)(null),d=(0,we.useRef)(null),f=Se(()=>{if(typeof window>"u"||!l.current)return;let{overflow:b,paddingRight:c}=l.current.style;if(d.current={overflow:b,paddingRight:c},o){let a=l.current===document.body?window.innerWidth:l.current.offsetWidth,g=parseInt(window.getComputedStyle(l.current).paddingRight,10)||0,S=a-l.current.scrollWidth;l.current.style.paddingRight=`${S+g}px`}l.current.style.overflow="hidden",i(!0)}),p=Se(()=>{l.current&&d.current&&(l.current.style.overflow=d.current.overflow,o&&(l.current.style.paddingRight=d.current.paddingRight)),i(!1)});return(0,we.useEffect)(()=>{if(!(typeof window>"u"||typeof document>"u"))return r&&(l.current=typeof r=="string"?document.querySelector(r):r),l.current||(l.current=document.body),t&&f(),()=>{p()}},[t,r,o,f,p]),{isLocked:s,lock:f,unlock:p}}var Hr=K(F(),1);function _s(e={}){let{isInvalid:t,isDisabled:r,isReadOnly:o,isRequired:s,isBusy:i,isPressed:l,isExpanded:d,isSelected:f,isChecked:p,isHidden:b,hasPopup:c,valueCurrent:a,valueMin:g,valueMax:S,valueText:T,label:v,labelledBy:k,describedBy:x,controls:C,owns:B}=e;return(0,Hr.useMemo)(()=>{let D={},Y=[{value:t,attr:W.Invalid},{value:r,attr:W.Disabled},{value:o,attr:W.Readonly},{value:s,attr:W.Required},{value:i,attr:W.Busy},{value:d,attr:W.Expanded},{value:f,attr:W.Selected},{value:b,attr:W.Hidden}];for(let{value:j,attr:G}of Y)j!==void 0&&(D[G]=j||void 0);return l!==void 0&&(D[W.Pressed]=l===!1?void 0:l),p!==void 0&&(D[W.Checked]=p===!1?void 0:p),c!==void 0&&(D[W.Haspopup]=c===!1?void 0:c),a!==void 0&&(D[W.Valuenow]=a),g!==void 0&&(D[W.Valuemin]=g),S!==void 0&&(D[W.Valuemax]=S),T!==void 0&&(D[W.Valuetext]=T),v!==void 0&&(D[W.Label]=v),k!==void 0&&(D[W.Labelledby]=k),x!==void 0&&(D[W.Describedby]=x),C!==void 0&&(D[W.Controls]=C),B!==void 0&&(D[W.Owns]=B),D},[t,r,o,s,i,l,d,f,p,b,c,a,g,S,T,v,k,x,C,B])}function Os({id:e,css:t,insertionPoint:r,enabled:o=!0,window:s=typeof window<"u"?window:null}){let i=Array.isArray(t)?t.join(`
18
- `):t;Vr(()=>{if(!(!o||!i))return Rr(i,{id:e,window:s,insertionPoint:r})},[e,i,s,r,o])}var Et=K(F(),1);function ta(e){let t=(0,Et.useRef)(e);return(0,Et.useLayoutEffect)(()=>{t.current=e}),t}var vt=K(F(),1),Vr=vt.default.useInsertionEffect??vt.useLayoutEffect;function Qt(e){if(e===null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Xt(e,t,r=".",o){if(!Qt(t))return Xt(e,{},r,o);let s=Object.assign({},t);for(let i in e){if(i==="__proto__"||i==="constructor")continue;let l=e[i];l!=null&&(o&&o(s,i,l,r)||(Array.isArray(l)&&Array.isArray(s[i])?s[i]=[...l,...s[i]]:Qt(l)&&Qt(s[i])?s[i]=Xt(l,s[i],(r?`${r}.`:"")+i.toString(),o):s[i]=l))}return s}function Zt(e){return(...t)=>t.reduce((r,o)=>Xt(r,o,"",e),{})}var ht=Zt(),oa=Zt((e,t,r)=>{if(e[t]!==void 0&&typeof r=="function")return e[t]=r(e[t]),!0}),sa=Zt((e,t,r)=>{if(Array.isArray(e[t])&&typeof r=="function")return e[t]=r(e[t]),!0});var ne=K(F(),1);function As(e={}){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:o,onLongPress:s,accessibilityDescription:i,threshold:l}=ht(e,{threshold:500}),d=(0,ne.useRef)(null),f=(0,ne.useRef)(null),p=(0,ne.useRef)(null),b=(0,ne.useRef)(!1),c=(0,ne.useCallback)(()=>{d.current&&(clearTimeout(d.current),d.current=null)},[]);(0,ne.useEffect)(()=>c,[c]);let a=(0,ne.useCallback)(C=>({type:C,pointerType:f.current??"mouse",target:p.current}),[]),g=(0,ne.useCallback)(C=>{t||C.button!==0||C.pointerType!=="mouse"&&(f.current=C.pointerType,p.current=C.currentTarget,b.current=!1,r?.(a("longpressstart")),d.current=setTimeout(()=>{b.current=!0,C.currentTarget?.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),s?.(a("longpress")),d.current=null},l))},[t,l,r,s,a]),S=(0,ne.useCallback)(()=>{f.current!==null&&(c(),!b.current&&o&&o(a("longpressend")),f.current=null,p.current=null)},[c,o,a]),T=(0,ne.useCallback)(()=>{c(),f.current!==null&&o&&o(a("longpressend")),f.current=null,p.current=null},[c,o,a]),v=(0,ne.useCallback)(C=>{b.current&&C.preventDefault()},[]);return{longPressProps:t?{}:{onPointerDown:g,onPointerUp:S,onPointerCancel:T,onContextMenu:v,...!t&&!!s&&!!i&&{"aria-description":i}}}}var zr=K(Yr(),1),ie=K(F(),1);function Ms(e){let{ref:t,isOpen:r,isReady:o=!0}=e,[s,i]=(0,ie.useState)(r),l=s&&o;(0,ie.useLayoutEffect)(()=>{if(l&&t.current&&"getAnimations"in t.current)for(let a of t.current.getAnimations())a instanceof CSSTransition&&a.cancel()},[t,l]),$r(t,l,(0,ie.useCallback)(()=>i(!1),[]));let[d,f]=(0,ie.useState)(r);r&&!d?(i(!0),f(!0)):!r&&d&&f(!1);let[p,b]=(0,ie.useState)(r?"open":"closed");switch(p){case"open":r||b("exiting");break;case"closed":case"exiting":r&&b("open");break}let c=p==="exiting";return $r(t,c,(0,ie.useCallback)(()=>{b(a=>a==="exiting"?"closed":a)},[])),{isEntering:l,isExiting:c,isRendered:r||c}}function $r(e,t,r){(0,ie.useLayoutEffect)(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){r();return}let o=e.current.getAnimations();if(o.length===0){r();return}let s=!1;return Promise.all(o.map(i=>i.finished)).then(()=>{s||(0,zr.flushSync)(()=>{r()})}).catch(()=>{}),()=>{s=!0}}},[e,t,r])}var $=K(F(),1);function Is(e){return st()?e.metaKey:e.ctrlKey}function qr(e,t){return e.current?.querySelector(`[data-key="${t}"]`)??null}function xs(e){let{selectionManager:t,keyboardDelegate:r,ref:o,autoFocus:s,shouldFocusWrap:i,disallowEmptySelection:l,disallowSelectAll:d,escapeBehavior:f,selectOnFocus:p,disallowTypeAhead:b,shouldUseVirtualFocus:c,allowsTabNavigation:a,scrollRef:g,direction:S,orientation:T,onNavigate:v,onFocusItem:k}=ht(e,{autoFocus:!1,shouldFocusWrap:!1,disallowEmptySelection:!1,disallowSelectAll:!1,escapeBehavior:"clearSelection",selectOnFocus:!1,disallowTypeAhead:!1,shouldUseVirtualFocus:!1,allowsTabNavigation:!1,isVirtualized:!1,direction:"ltr",orientation:"vertical"}),x=g??o,C=(0,$.useRef)({top:0,left:0}),B=(0,$.useRef)(t.focusedKey),D=(0,$.useRef)(s),Y=(0,$.useRef)(""),j=(0,$.useRef)(null),G=(0,$.useCallback)((m,U,_)=>{m!=null&&(t.setFocusedKey(m,_),v?.(m),U?.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(m):p&&!Is(U)&&t.replaceSelection(m))},[t,p,v]),le=(0,$.useCallback)(m=>{if(k){k(m);return}let U=qr(o,m);U&&!c&&He(U)},[o,c,k]),A=(0,$.useCallback)(m=>{if(!b&&m.key.length===1&&!m.ctrlKey&&!m.metaKey&&!m.altKey){j.current&&clearTimeout(j.current),Y.current+=m.key;let _=r.getKeyForSearch?.(Y.current,t.focusedKey)??null;_!=null&&(m.preventDefault(),G(_,m)),j.current=setTimeout(()=>{Y.current=""},500);return}let U=S==="rtl";switch(m.key){case"ArrowDown":{if(r.getKeyBelow){let _=t.focusedKey!=null?r.getKeyBelow(t.focusedKey):r.getFirstKey?.()??null;_==null&&i&&(_=r.getFirstKey?.()??null),_!=null&&(m.preventDefault(),G(_,m))}break}case"ArrowUp":{if(r.getKeyAbove){let _=t.focusedKey!=null?r.getKeyAbove(t.focusedKey):r.getLastKey?.()??null;_==null&&i&&(_=r.getLastKey?.()??null),_!=null&&(m.preventDefault(),G(_,m))}break}case"ArrowLeft":{if(r.getKeyLeftOf){let _=t.focusedKey!=null?r.getKeyLeftOf(t.focusedKey):null;_==null&&i&&(_=U?r.getFirstKey?.()??null:r.getLastKey?.()??null),_!=null&&(m.preventDefault(),G(_,m,U?"first":"last"))}break}case"ArrowRight":{if(r.getKeyRightOf){let _=t.focusedKey!=null?r.getKeyRightOf(t.focusedKey):null;_==null&&i&&(_=U?r.getLastKey?.()??null:r.getFirstKey?.()??null),_!=null&&(m.preventDefault(),G(_,m,U?"last":"first"))}break}case"Home":{if(r.getFirstKey){m.preventDefault();let _=r.getFirstKey();t.setFocusedKey(_),_!=null&&(it(m)&&m.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(_):p&&t.replaceSelection(_))}break}case"End":{if(r.getLastKey){m.preventDefault();let _=r.getLastKey();t.setFocusedKey(_),_!=null&&(it(m)&&m.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(_):p&&t.replaceSelection(_))}break}case"PageDown":{if(r.getKeyPageBelow&&t.focusedKey!=null){let _=r.getKeyPageBelow(t.focusedKey);_!=null&&(m.preventDefault(),G(_,m))}break}case"PageUp":{if(r.getKeyPageAbove&&t.focusedKey!=null){let _=r.getKeyPageAbove(t.focusedKey);_!=null&&(m.preventDefault(),G(_,m))}break}case"a":{it(m)&&t.selectionMode==="multiple"&&!d&&(m.preventDefault(),t.selectAll());break}case"Escape":{f==="clearSelection"&&!l&&t.selectedKeys.size>0&&(m.stopPropagation(),m.preventDefault(),t.clearSelection());break}case"Tab":{!a&&o.current&&m.shiftKey&&o.current.focus();break}}},[r,t,o,S,i,p,b,d,l,f,a,G]),Re=(0,$.useCallback)(m=>{if(!t.isFocused){if(t.setFocused(!0),t.focusedKey==null){let U=m.relatedTarget,_=U!=null&&!!(m.currentTarget.compareDocumentPosition(U)&Node.DOCUMENT_POSITION_FOLLOWING),ce=null;_?ce=t.lastSelectedKey??r.getLastKey?.()??null:ce=t.firstSelectedKey??r.getFirstKey?.()??null,ce!=null&&(t.setFocusedKey(ce),p&&!t.isSelected(ce)&&t.replaceSelection(ce))}else x.current&&(x.current.scrollTop=C.current.top,x.current.scrollLeft=C.current.left);t.focusedKey!=null&&le(t.focusedKey)}},[t,r,p,x,le]),ue=(0,$.useCallback)(m=>{let U=m.relatedTarget;m.currentTarget.contains(U)||t.setFocused(!1)},[t]),ae=(0,$.useCallback)(m=>{x.current===m.target&&m.preventDefault()},[x]);(0,$.useEffect)(()=>{let m=x.current;if(!m)return()=>{};let U=()=>{C.current={top:m.scrollTop,left:m.scrollLeft}};return m.addEventListener("scroll",U,{passive:!0}),()=>{m.removeEventListener("scroll",U)}},[x]),(0,$.useEffect)(()=>{if(!D.current)return;let m=null;if(D.current==="first"?m=r.getFirstKey?.()??null:D.current==="last"&&(m=r.getLastKey?.()??null),t.selectedKeys.size>0){for(let U of t.selectedKeys)if(t.canSelectItem?.(U)!==!1){m=U;break}}t.setFocused(!0),t.setFocusedKey(m),m==null&&!c&&o.current&&o.current.focus(),D.current=!1},[r,t,o,c]),(0,$.useEffect)(()=>{if(!t.isFocused||t.focusedKey==null||t.focusedKey===B.current)return;let m=qr(o,t.focusedKey);m&&x.current&&Tr(x.current,m),B.current=t.focusedKey},[t.isFocused,t.focusedKey,o,x]),(0,$.useEffect)(()=>()=>{j.current&&clearTimeout(j.current)},[]);let E=c?void 0:t.focusedKey==null?0:-1;return{collectionProps:Me({onKeyDown:A,onFocus:Re,onBlur:ue,onMouseDown:ae,tabIndex:E,"data-orientation":T})}}var z=K(F(),1),bt={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Xr={...bt,customError:!0,valid:!1},Fe={isInvalid:!1,validationErrors:[],validationDetails:bt},Zr=(0,z.createContext)({}),tn="__formValidationState"+Date.now();function Us(e){if(e[tn]){let{realtimeValidation:t,displayValidation:r,updateValidation:o,resetValidation:s,commitValidation:i}=e[tn];return{realtimeValidation:t,displayValidation:r,updateValidation:o,resetValidation:s,commitValidation:i}}return Ds(e)}function Ds(e){let{isInvalid:t,validationState:r,name:o,value:s,builtinValidation:i,validate:l,validationBehavior:d="aria"}=e;r&&(t||=r==="invalid");let f=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:Xr}:null,p=(0,z.useMemo)(()=>{if(!l||s==null)return null;let A=Fs(l,s);return Qr(A)},[l,s]);i?.validationDetails.valid&&(i=void 0);let b=(0,z.useContext)(Zr),c=(0,z.useMemo)(()=>o?Array.isArray(o)?o.flatMap(A=>nn(b[A])):nn(b[o]):[],[b,o]),[a,g]=(0,z.useState)(b),[S,T]=(0,z.useState)(!1);b!==a&&(g(b),T(!1));let v=(0,z.useMemo)(()=>Qr(S?[]:c),[S,c]),k=(0,z.useRef)(Fe),[x,C]=(0,z.useState)(Fe),B=(0,z.useRef)(Fe),D=()=>{if(!Y)return;j(!1);let A=p||i||k.current;en(A,B.current)||(B.current=A,C(A))},[Y,j]=(0,z.useState)(!1);return(0,z.useEffect)(D),{realtimeValidation:f||v||p||i||Fe,displayValidation:d==="native"?f||v||x:f||v||p||i||x,updateValidation(A){d==="aria"&&!en(x,A)?C(A):k.current=A},resetValidation(){let A=Fe;en(A,B.current)||(B.current=A,C(A)),d==="native"&&j(!1),T(!0)},commitValidation(){d==="native"&&j(!0),T(!0)}}}function nn(e){return e?Array.isArray(e)?e:[e]:[]}function Fs(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return nn(r)}return[]}function Qr(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Xr}:null}function en(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,o)=>r===t.validationErrors[o])&&Object.entries(e.validationDetails).every(([r,o])=>t.validationDetails[r]===o)}function ks(...e){let t=new Set,r=!1,o={...bt};for(let s of e){for(let i of s.validationErrors)t.add(i);r||=s.isInvalid;for(let i in o)o[i]||=s.validationDetails[i]}return o.valid=!r,{isInvalid:r,validationErrors:[...t],validationDetails:o}}})();
17
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var d=F(),f={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},p=Symbol.for("react.portal"),b=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),ee.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,ee.createPortal=function(c,a){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)throw Error("Target container is not a DOM element.");return r(c,a,null,g)},ee.flushSync=function(c){var a=b.T,g=f.p;try{if(b.T=null,f.p=2,c)return c()}finally{b.T=a,f.p=g,f.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},ee.preconnect=function(c,a){typeof c=="string"&&c?a!=null&&typeof a!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",i(a)):a!=null&&typeof a.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",s(a.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",s(c)),typeof c=="string"&&(a?(a=a.crossOrigin,a=typeof a=="string"?a==="use-credentials"?a:"":void 0):a=null,f.d.C(c,a))},ee.prefetchDNS=function(c){if(typeof c!="string"||!c)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",s(c));else if(1<arguments.length){var a=arguments[1];typeof a=="object"&&a.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",i(a)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",i(a))}typeof c=="string"&&f.d.D(c)},ee.preinit=function(c,a){if(typeof c=="string"&&c?a==null||typeof a!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",i(a)):a.as!=="style"&&a.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',i(a.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",s(c)),typeof c=="string"&&a&&typeof a.as=="string"){var g=a.as,S=o(g,a.crossOrigin),T=typeof a.integrity=="string"?a.integrity:void 0,v=typeof a.fetchPriority=="string"?a.fetchPriority:void 0;g==="style"?f.d.S(c,typeof a.precedence=="string"?a.precedence:void 0,{crossOrigin:S,integrity:T,fetchPriority:v}):g==="script"&&f.d.X(c,{crossOrigin:S,integrity:T,fetchPriority:v,nonce:typeof a.nonce=="string"?a.nonce:void 0})}},ee.preinitModule=function(c,a){var g="";if(typeof c=="string"&&c||(g+=" The `href` argument encountered was "+s(c)+"."),a!==void 0&&typeof a!="object"?g+=" The `options` argument encountered was "+s(a)+".":a&&"as"in a&&a.as!=="script"&&(g+=" The `as` option encountered was "+i(a.as)+"."),g)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",g);else switch(g=a&&typeof a.as=="string"?a.as:"script",g){case"script":break;default:g=i(g),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',g,c)}typeof c=="string"&&(typeof a=="object"&&a!==null?(a.as==null||a.as==="script")&&(g=o(a.as,a.crossOrigin),f.d.M(c,{crossOrigin:g,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0})):a==null&&f.d.M(c))},ee.preload=function(c,a){var g="";if(typeof c=="string"&&c||(g+=" The `href` argument encountered was "+s(c)+"."),a==null||typeof a!="object"?g+=" The `options` argument encountered was "+s(a)+".":typeof a.as=="string"&&a.as||(g+=" The `as` option encountered was "+s(a.as)+"."),g&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',g),typeof c=="string"&&typeof a=="object"&&a!==null&&typeof a.as=="string"){g=a.as;var S=o(g,a.crossOrigin);f.d.L(c,g,{crossOrigin:S,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0,type:typeof a.type=="string"?a.type:void 0,fetchPriority:typeof a.fetchPriority=="string"?a.fetchPriority:void 0,referrerPolicy:typeof a.referrerPolicy=="string"?a.referrerPolicy:void 0,imageSrcSet:typeof a.imageSrcSet=="string"?a.imageSrcSet:void 0,imageSizes:typeof a.imageSizes=="string"?a.imageSizes:void 0,media:typeof a.media=="string"?a.media:void 0})}},ee.preloadModule=function(c,a){var g="";typeof c=="string"&&c||(g+=" The `href` argument encountered was "+s(c)+"."),a!==void 0&&typeof a!="object"?g+=" The `options` argument encountered was "+s(a)+".":a&&"as"in a&&typeof a.as!="string"&&(g+=" The `as` option encountered was "+s(a.as)+"."),g&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',g),typeof c=="string"&&(a?(g=o(a.as,a.crossOrigin),f.d.m(c,{as:typeof a.as=="string"&&a.as!=="script"?a.as:void 0,crossOrigin:g,integrity:typeof a.integrity=="string"?a.integrity:void 0})):f.d.m(c))},ee.requestFormReset=function(c){f.d.r(c)},ee.unstable_batchedUpdates=function(c,a){return c(a)},ee.useFormState=function(c,a,g){return l().useFormState(c,a,g)},ee.useFormStatus=function(){return l().useHostTransitionStatus()},ee.version="19.2.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Zr=Ce((ba,on)=>{"use strict";function Xr(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Xr)}catch(e){console.error(e)}}}process.env.NODE_ENV==="production"?(Xr(),on.exports=qr()):on.exports=Qr()});var it=K(F(),1);function Ie(...e){if(e.length===0)return{};if(e.length===1)return typeof e[0]=="object"&&e[0]!==null?e[0]:{};let t={},r={};for(let o of e)if(!(typeof o!="object"||o===null)){for(let s in o)if(Object.hasOwn(o,s)){if(s==="children")continue;let i=o[s];s.startsWith("on")&&typeof i=="function"?(r[s]??=[],r[s].push(i)):t[s]=i}}for(let o in r)Object.hasOwn(r,o)&&r[o].length>0&&(t[o]=(...s)=>{for(let i of r[o])i?.(...s)});for(let o=e.length-1;o>=0;o--){let s=e[o];if(typeof s=="object"&&s!==null&&"children"in s){t.children=s.children;break}}return t}function Do({props:e,ref:t,context:r}){let o=Nt({context:r,slot:e.slot})||{},{ref:s=null,...i}=o,l=(0,it.useRef)(null),d=(0,it.useCallback)(p=>{l.current=p,typeof t=="function"?t(p):t&&(t.current=p),typeof s=="function"?s(p):s&&typeof s=="object"&&(s.current=p)},[t,s]),f=Ie(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?f.style=p=>{let b=typeof i.style=="function"?i.style(p):i.style,c={...p.defaultStyle,...b},a=typeof e.style=="function"?e.style({...p,defaultStyle:c}):e.style;return{...c,...a}}:f.style={...i.style,...e.style}),[f,d]}var se=K(F(),1);function Uo(e={}){let{partialVisibility:t=!1,threshold:r=0,rootMargin:o="0px",root:s=null,active:i=!0,once:l=!1,onChange:d}=e,[f,p]=(0,se.useState)(null),[b,c]=(0,se.useState)(!1),[a,g]=(0,se.useState)(null),S=(0,se.useRef)(!1),T=(0,se.useRef)(null),v=Oe(x=>{let C=x[0],B=C.isIntersecting,U={isIntersecting:C.isIntersecting,intersectionRatio:C.intersectionRatio,intersectionRect:C.intersectionRect,boundingClientRect:C.boundingClientRect,rootBounds:C.rootBounds,time:C.time};g(U),c(Y=>l&&S.current?!0:B&&l?(S.current=!0,Y!==!0&&d&&d(!0),!0):Y!==B?(d&&d(B),B):Y)}),k=(0,se.useCallback)(x=>{p(x)},[]);return(0,se.useEffect)(()=>{if(!i||!f)return;let x;return t===!0?x=[0,.1,.25,.5,.75,1]:typeof t=="string"?x=.01:x=r,T.current=new IntersectionObserver(v,{root:s,rootMargin:o,threshold:x}),T.current.observe(f),()=>{T.current&&T.current.disconnect()}},[i,f,s,o,r,t]),[k,b,a]}var yt=K(F(),1);var Fo=Object.defineProperty,ut=(e,t)=>{for(var r in t)Fo(e,r,{get:t[r],enumerable:!0})},xe={};ut(xe,{ARIA_ATTRIBUTES:()=>jn,HTML_TAGS:()=>Wn,PRIMITIVE_TAGS:()=>Bn,default:()=>ko});var jn=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-dropeffect","aria-errormessage","aria-expanded","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],Bn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Wn=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],ko={ARIA_ATTRIBUTES:jn,PRIMITIVE_TAGS:Bn,HTML_TAGS:Wn},No={};ut(No,{NUMERIC_DIGITS:()=>Gn,default:()=>Ko});var Gn=["1","2","3","4","5","6","7","8","9","0"],Ko={NUMERIC_DIGITS:Gn},Ho={};ut(Ho,{AMPERSAND:()=>tr,ASTERISK:()=>rr,BACKSLASH:()=>yr,BOM:()=>Yn,CARRIAGE_RETURN:()=>qn,COLON:()=>ar,COMMA:()=>sr,COMMERCIAL_AT:()=>dr,DOT:()=>ur,DOUBLE_QUOTE:()=>Zn,EXCLAMATION:()=>Xn,GRAVE_ACCENT:()=>gr,GREATER_THAN:()=>lr,LEFT_CURLY_BRACKET:()=>Er,LEFT_SQUARE_BRACKET:()=>pr,LINE_FEED:()=>zn,MINUS:()=>ir,PERCENT:()=>er,PLUS:()=>or,QUESTION:()=>fr,RIGHT_CURLY_BRACKET:()=>hr,RIGHT_SQUARE_BRACKET:()=>mr,SHARP:()=>Jn,SINGLE_QUOTE:()=>nr,SMALLER_THAN:()=>cr,SPACE:()=>Qn,TAB:()=>$n,VERTICAL_LINE:()=>vr,default:()=>Vo});var Yn=65279,$n=9,zn=10,qn=13,Qn=32,Xn=33,Zn=34,Jn=35,er=37,tr=38,nr=39,rr=42,or=43,sr=44,ir=45,ur=46,ar=58,cr=60,lr=62,fr=63,dr=64,pr=91,yr=92,mr=93,gr=96,Er=123,vr=124,hr=125,Vo={BOM:Yn,TAB:$n,LINE_FEED:zn,CARRIAGE_RETURN:qn,SPACE:Qn,EXCLAMATION:Xn,DOUBLE_QUOTE:Zn,SHARP:Jn,PERCENT:er,AMPERSAND:tr,SINGLE_QUOTE:nr,ASTERISK:rr,PLUS:or,COMMA:sr,MINUS:ir,DOT:ur,COLON:ar,SMALLER_THAN:cr,GREATER_THAN:lr,QUESTION:fr,COMMERCIAL_AT:dr,LEFT_SQUARE_BRACKET:pr,BACKSLASH:yr,RIGHT_SQUARE_BRACKET:mr,GRAVE_ACCENT:gr,LEFT_CURLY_BRACKET:Er,VERTICAL_LINE:vr,RIGHT_CURLY_BRACKET:hr},jo={};ut(jo,{CAPITALIZED:()=>Tr,LOWERCASE:()=>br,VOWELS:()=>Rr,default:()=>Bo});var Tr=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],br=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],Rr=["A","E","I","O","U","a","e","i","o","u"],Bo={CAPITALIZED:Tr,LOWERCASE:br,VOWELS:Rr};function Wo(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):!1}var at=()=>Wo(/^Mac/i);function Sr(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):!1}var Go=()=>Sr(/^iPhone/i),Yo=()=>Sr(/^iPad/i)||at()&&navigator.maxTouchPoints>1,Kt=()=>Go()||Yo();function ct(e){return at()?e.metaKey??!1:e.ctrlKey??!1}function q(e){return e?.ownerDocument??document}function ye(e){return e&&"window"in e&&e.window===e?e:q(e).defaultView||window}var lt=null;function $o(){if(lt==null){lt=!1;try{document.createElement("div").focus({get preventScroll(){return lt=!0,!0}})}catch{}}return lt}function _r(e,t,r){let{block:o="nearest",inline:s="nearest"}=r??{},i=e.getBoundingClientRect(),l=t.getBoundingClientRect(),d=l.top<i.top,f=l.bottom>i.bottom,p=l.left<i.left,b=l.right>i.right;if(d||f){let c=e.scrollTop;if(o==="start"||o==="nearest"&&d)c=e.scrollTop+(l.top-i.top);else if(o==="end"||o==="nearest"&&f)c=e.scrollTop+(l.bottom-i.bottom);else if(o==="center"){let a=i.top+i.height/2,g=l.top+l.height/2;c=e.scrollTop+(g-a)}e.scrollTop=c}if(p||b){let c=e.scrollLeft;if(s==="start"||s==="nearest"&&p)c=e.scrollLeft+(l.left-i.left);else if(s==="end"||s==="nearest"&&b)c=e.scrollLeft+(l.right-i.right);else if(s==="center"){let a=i.left+i.width/2,g=l.left+l.width/2;c=e.scrollLeft+(g-a)}e.scrollLeft=c}}function zo(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}function ft(e,t,r=!0){if(!e||!t)return!1;if(!r)return e.contains(t);let o=t;for(;o;){if(o===e)return!0;o=o instanceof Element&&o.tagName==="SLOT"&&o.assignedSlot?o.assignedSlot.parentNode:zo(o)?o.host:o.parentNode}return!1}var me=(e=document,t=!0)=>{if(!t)return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&r.shadowRoot?.activeElement;)r=r.shadowRoot.activeElement;return r};function dt(e,t=!0){return t&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function Be(e){if($o())e.focus({preventScroll:!0});else{let t=qo(e);e.focus();for(let{element:r,scrollTop:o,scrollLeft:s}of t)r.scrollTop=o,r.scrollLeft=s}}function qo(e){let t=e.parentNode,r=Array.from({length:0}),o=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==o;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return o instanceof HTMLElement&&r.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),r}var wr="necto-style",Or=new WeakMap;function Qo(e){let t=Or.get(e);return t||(t=new Map,Or.set(e,t)),t}function Xo(e,t={}){let{id:r=wr,insertionPoint:o}=t,s=o?q(o):document,i=s.createElement("style");return i.setAttribute("type","text/css"),i.setAttribute("necto-style-id",r),i.textContent=e,o?s.head.insertBefore(i,o):s.head.appendChild(i),i}function Ar(e,t={}){let{id:r=wr,window:o=typeof window<"u"?window:null,insertionPoint:s}=t;if(!o||!e)return()=>{};let i=Qo(o),l=`${r}:${e}`,d=i.get(l);return d?d.element&&(d.element.textContent=e,d.count++):(d={element:Xo(e,{id:r,insertionPoint:s}),count:1},i.set(l,d)),()=>{let f=i.get(l);f?.element&&(f.count--,f.count<1&&(f.element.remove(),f.element=null,i.delete(l)))}}var pe=new Map,Vt=new Set;function Zo(e){if(!("propertyName"in e)||!e.target)return;let t=pe.get(e.target);t||(t=new Set,pe.set(e.target,t),e.target.addEventListener("transitioncancel",Wt,{once:!0})),t.add(e.propertyName)}function Wt(e){if(!("propertyName"in e)||!e.target)return;let t=pe.get(e.target);if(t&&(t.delete(e.propertyName),t.size===0&&(e.target.removeEventListener("transitioncancel",Wt),pe.delete(e.target)),pe.size===0)){for(let r of Vt)r();Vt.clear()}}if(typeof window<"u"&&typeof document<"u"){let e=()=>{let t=document.body;t&&(t.addEventListener("transitionrun",Zo),t.addEventListener("transitionend",Wt))};document.readyState!=="loading"?e():document.addEventListener("DOMContentLoaded",e,{once:!0})}function Gt(e){requestAnimationFrame(()=>{for(let[t]of pe)"isConnected"in t&&!t.isConnected&&pe.delete(t);pe.size===0?e():Vt.add(e)})}var le,Ht=()=>xe.HTML_TAGS.reduce((e,t)=>{var r;return e[r=t,r.charAt(0).toUpperCase()+r.slice(1)]=t,e},{}),si=new Proxy({},{get:(e,t,r)=>(le||(le=Ht()),Reflect.get(le,t,r)),ownKeys:()=>(le||(le=Ht()),Reflect.ownKeys(le)),getOwnPropertyDescriptor:(e,t)=>(le||(le=Ht()),Object.getOwnPropertyDescriptor(le,t))}),jt="",De="default",He=new WeakMap;function pt(e){if(Kt()){if(De==="default"){let t=q(e);t?.documentElement?.style.webkitUserSelect!==void 0&&(jt=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none",De="disabled")}}else if(e instanceof HTMLElement||e instanceof SVGElement){let t=e.style,r="userSelect"in t?"userSelect":"webkitUserSelect";He.has(e)||(He.set(e,t[r]??""),t[r]="none")}}function ge(e){if(Kt()){if(De!=="disabled")return;De="restoring",setTimeout(()=>{Gt(()=>{if(De==="restoring"){let t=q(e);t?.documentElement?.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=jt||""),jt="",De="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&He.has(e)){let t=He.get(e)??"",r=e.style,o="userSelect"in r?"userSelect":"webkitUserSelect";r[o]==="none"&&(r[o]=t),e.getAttribute("style")?.trim()===""&&e.removeAttribute("style"),He.delete(e)}}var Ve,Bt,Lr,je=()=>{Ve||(Ve=xe.ARIA_ATTRIBUTES.reduce((e,t)=>(e[(r=>{let o=r.replace("aria-","");return o.charAt(0).toUpperCase()+o.slice(1)})(t)]=t,e),{}),Bt=xe.ARIA_ATTRIBUTES,Lr=new Set(Bt))},W=new Proxy({},{get:(e,t,r)=>(je(),Reflect.get(Ve,t,r)),ownKeys:()=>(je(),Reflect.ownKeys(Ve)),getOwnPropertyDescriptor:(e,t)=>(je(),Object.getOwnPropertyDescriptor(Ve,t))}),ai=new Proxy([],{get:(e,t,r)=>(je(),Reflect.get(Bt,t,r))}),ci=new Proxy(new Set,{get:(e,t,r)=>(je(),Reflect.get(Lr,t,r))});function We(e={}){let{isDisabled:t,onFocus:r,onBlur:o,onFocusChange:s}=e,i=(0,yt.useCallback)((p,b)=>{p?(r?.(b),s?.(!0)):(o?.(b),s?.(!1))},[r,o,s]),l=(0,yt.useCallback)(p=>{p.target===p.currentTarget&&i(!1,p)},[i]),d=Ge({onBlur:l}),f=(0,yt.useCallback)(p=>{let b=q(p.target),c=b?me(b):me();p.target===p.currentTarget&&c===dt(p.nativeEvent)&&(i(!0,p),d(p))},[i,d]);return{focusProps:{...t?{}:{onFocus:f,onBlur:l}}}}var mt=K(F(),1);function Jo(e,t){let{autoFocus:r,isDisabled:o,excludeFromTabOrder:s}=e,{focusProps:i}=We(e),{keyboardProps:l}=Yt(e),d=(0,mt.useRef)(r),f=q(t.current),p=me(f);(0,mt.useEffect)(()=>{if(d.current&&t.current)if(Ye()==="virtual"){let c=p;Gt(()=>{me(f)===c&&t.current?.isConnected&&Be(t.current)})}else Be(t.current);d.current=!1},[t]);let b=s?-1:0;return o&&(b=void 0),{focusableProps:Ie(i??{},l,{tabIndex:b})}}var Ee=K(F(),1);var es=null;function ts(e={}){let{within:t=!1,isTextInput:r=!1,autoFocus:o=!1}=e,s=(0,Ee.useRef)({isFocused:o,isFocusVisible:o||es!=="pointer"}),[i,l]=(0,Ee.useState)(o),[d,f]=(0,Ee.useState)(()=>s.current.isFocused&&s.current.isFocusVisible),p=(0,Ee.useCallback)(()=>{f(s.current.isFocused&&s.current.isFocusVisible)},[]),b=(0,Ee.useCallback)(g=>{s.current.isFocused=g,l(g),p()},[p]);$e({fn:g=>{s.current.isFocusVisible=g,p()},deps:[],opts:{isTextInput:r}});let{focusProps:c={}}=We({isDisabled:t,onFocusChange:b})||{},{focusWithinProps:a={}}=$t({isDisabled:!t,onFocusWithinChange:b})||{};return{isFocused:i,isFocusVisible:d,focusProps:t?a:c}}var Cr=K(F(),1);function ns(e={}){let{isTextInput:t,autoFocus:r}=e,[o,s]=(0,Cr.useState)(r||Ye()!=="pointer");return $e({fn:i=>s(i),deps:[t],opts:{isTextInput:t}}),{isFocusVisible:o}}var Ue=new Map,gt=new Set,Pr=!1,zt=null,Mr=!1,Q={get hasEventBeforeFocus(){return Pr},set hasEventBeforeFocus(e){Pr=e},get hasBlurredWindowRecently(){return Mr},set hasBlurredWindowRecently(e){Mr=e},get currentModality(){return zt},set currentModality(e){zt=e}};function Ye(){return zt}var vs={},Et=Object.create(null),ze=e=>globalThis.process?.env||vs.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?Et:globalThis),ve=new Proxy(Et,{get(e,t){return ze()[t]??Et[t]},has(e,t){let r=ze();return t in r||t in Et},set(e,t,r){let o=ze(!0);return o[t]=r,!0},deleteProperty(e,t){if(!t)return!1;let r=ze(!0);return delete r[t],!0},ownKeys(){let e=ze(!0);return Object.keys(e)}}),xr=typeof process<"u"&&process.env&&process.env.NODE_ENV||"",rs=[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:!0}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:!0}],["CLOUDFLARE_WORKERS","WORKERS_CI",{ci:!0}],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["HUDSON","HUDSON_URL"],["JENKINS","JENKINS_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:!1}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:!1}],["VERCEL","VERCEL_ENV",{ci:!1}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:!1}],["CODESANDBOX","CODESANDBOX_HOST",{ci:!1}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:!0}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:!0}]];function os(){if(globalThis.process?.env)for(let e of rs){let t=e[1]||e[0];if(globalThis.process?.env[t])return{name:e[0].toLowerCase(),...e[2]}}return globalThis.process?.env?.SHELL==="/bin/jsh"&&globalThis.process?.versions?.webcontainer?{name:"stackblitz",ci:!1}:{name:"",ci:!1}}var Dr=os(),xi=Dr.name;function _e(e){return e?e!=="false":!1}var qt=globalThis.process?.platform||"",Ur=_e(ve.CI)||Dr.ci!==!1,Fr=_e(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY);var Di=_e(ve.DEBUG),we=xr==="test"||_e(ve.TEST),kr=xr==="production";var Ui=_e(ve.MINIMAL)||Ur||we||!Fr,ss=/^win/i.test(qt),Fi=/^linux/i.test(qt),Nr=/^darwin/i.test(qt),ki=!_e(ve.NO_COLOR)&&(_e(ve.FORCE_COLOR)||(Fr||ss)&&ve.TERM!=="dumb"||Ur),is=(globalThis.process?.versions?.node||"").replace(/^v/,"")||null,Ni=Number(is?.split(".")[0])||null,us=globalThis.process||Object.create(null),Ir={versions:{}},Ki=new Proxy(us,{get(e,t){if(t==="env")return ve;if(t in e)return e[t];if(t in Ir)return Ir[t]}}),as=globalThis.process?.release?.name==="node",cs=!!globalThis.Bun||!!globalThis.process?.versions?.bun,ls=!!globalThis.Deno,fs=!!globalThis.fastly,ds=!!globalThis.Netlify,ps=!!globalThis.EdgeRuntime,ys=globalThis.navigator?.userAgent==="Cloudflare-Workers",ms=[[ds,"netlify"],[ps,"edge-light"],[ys,"workerd"],[fs,"fastly"],[ls,"deno"],[cs,"bun"],[as,"node"]];function gs(){let e=ms.find(t=>t[0]);if(e)return{name:e[1]}}var Es=gs(),Hi=Es?.name||"";var Hr=K(F(),1);function Qt(e){if(!e)return;let t=!0;return r=>{let o={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t&&kr?console.error("stopPropagation is now the default behavior for events in Necto. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(o),t&&r.stopPropagation()}}function vt(e){let t=e;return Object.assign(t,{nativeEvent:e,isDefaultPrevented:()=>t.defaultPrevented,isPropagationStopped:()=>t.cancelBubble,persist:()=>{}}),t}var hs=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),Ts={Tab:!0,Escape:!0};function Kr(e,t,r){if(!r||!("target"in r)||!r.target)return!1;let o=q(r.target),s=ye(r.target),i=typeof window<"u"?s.HTMLInputElement:HTMLInputElement,l=typeof window<"u"?s.HTMLTextAreaElement:HTMLTextAreaElement,d=typeof window<"u"?s.HTMLElement:HTMLElement,f=typeof window<"u"?s.KeyboardEvent:KeyboardEvent,p=o.activeElement;return e=e||p instanceof i&&!hs.has(p.type)||p instanceof l||p instanceof d&&p.isContentEditable,!(e&&t==="keyboard"&&r instanceof f&&!Ts[r.key])}function Zt(e,t){gt.forEach(r=>r(e,t))}function bs(e){return!(e.metaKey||Nr&&e.altKey||e.ctrlKey||["Control","Shift","Meta"].includes(e.key))}function Vr(e){bs(e)&&(Q.hasEventBeforeFocus=!0,Q.currentModality="keyboard",Zt("keyboard",e))}function Xt(e){["mousedown","pointerdown"].includes(e.type)&&(Q.hasEventBeforeFocus=!0,Q.currentModality="pointer",Zt("pointer",e))}function jr(e){[window,document].includes(e.target)||!e.isTrusted||!Q.hasEventBeforeFocus&&!Q.hasBlurredWindowRecently||(!Q.hasEventBeforeFocus&&!Q.hasBlurredWindowRecently&&(Q.currentModality="virtual",Zt("virtual",e)),Q.hasEventBeforeFocus=!1,Q.hasBlurredWindowRecently=!1)}function Br(){Q.hasEventBeforeFocus=!1,Q.hasBlurredWindowRecently=!0}function Rs(e){let t=ye(e),r=q(e);if(typeof window>"u"||typeof document>"u"||Ue.has(t))return;let o=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(...s){Q.hasEventBeforeFocus=!0,o.apply(this,s)},r.addEventListener("keydown",Vr,!0),r.addEventListener("click",Xt,!0),t.addEventListener("focus",jr,!0),t.addEventListener("blur",Br,!1),typeof PointerEvent<"u"&&r.addEventListener("pointerdown",Xt,!0),Ue.set(t,{focus:o})}function Ss(e){let t=ye(e),r=q(e);if(!Ue.has(t))return;let{focus:o}=Ue.get(t);t.HTMLElement.prototype.focus=o,r.removeEventListener("keydown",Vr,!0),r.removeEventListener("click",Xt,!0),t.removeEventListener("focus",jr,!0),t.removeEventListener("blur",Br,!1),Ue.delete(t)}function $e(e){let{fn:t,deps:r,opts:o}=e;typeof window>"u"||typeof document>"u"||(Rs(),(0,Hr.useEffect)(()=>{let s=(i,l)=>{Kr(!!o?.isTextInput,i,l)&&t(Q.currentModality!=="pointer")};return gt.add(s),()=>{gt.delete(s),Ss()}},r))}var qe=K(F(),1);function $t(e){let{isDisabled:t,onFocusWithin:r,onBlurWithin:o,onFocusWithinChange:s}=e,i=(0,qe.useRef)({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:d}=Qe(),f=(0,qe.useCallback)(c=>{c.currentTarget.contains(c.target)&&i.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(i.current.isFocusWithin=!1,d(),o&&o(c),s&&s(!1))},[o,s,d]),p=Ge({onBlur:f}),b=(0,qe.useCallback)(c=>{if(!c.currentTarget.contains(c.target))return;let a=q(c.target),g=me(a);if(!i.current.isFocusWithin&&g===dt(c.nativeEvent)){r&&r(c),s&&s(!0),i.current.isFocusWithin=!0,p(c);let S=c.currentTarget;l(a,"focus",T=>{if(i.current.isFocusWithin&&!ft(S,T.target)&&a.defaultView&&typeof a.defaultView.FocusEvent=="function"){let v=new a.defaultView.FocusEvent("blur",{relatedTarget:T.target});Object.defineProperty(v,"target",{value:S}),Object.defineProperty(v,"currentTarget",{value:S});let k=vt(v);f(k)}},{capture:!0})}},[r,s,p,l,f]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:b,onBlur:f}}}var he=K(F(),1);function Qe(){let e=(0,he.useRef)(new Map),t=(0,he.useCallback)((s,i,l,d)=>{let f=typeof d=="object"&&d?.once?(...p)=>{e.current.delete(l),l(...p)}:l;e.current.set(l,{type:i,eventTarget:s,options:d}),s.addEventListener(i,f,d)},[]),r=(0,he.useCallback)((s,i,l,d)=>{let f=e.current.get(l),p=f?.options?.once?f.fn:l;s.removeEventListener(i,p,d),e.current.delete(l)},[]),o=(0,he.useCallback)(()=>{e.current.forEach((s,i)=>{s.eventTarget.removeEventListener(s.type,i,s.options)}),e.current.clear()},[]);return(0,he.useEffect)(()=>()=>o(),[o]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:o}}var te=K(F(),1);function Os(e={}){let{onHoverStart:t,onHoverChange:r,onHoverEnd:o,isDisabled:s}=e,[i,l]=(0,te.useState)(!1),d=(0,te.useRef)({hoverCount:0,ignoreEmulated:!1}),f=(0,te.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current,{addGlobalListener:p,removeAllGlobalListeners:b}=Qe(),c=(0,te.useCallback)(()=>{d.current.ignoreEmulated=!0,setTimeout(()=>{d.current.ignoreEmulated=!1},50)},[]);(0,te.useEffect)(()=>{let T=k=>{k.pointerType==="touch"&&c()};if(typeof document>"u")return;let v=d.current;return v.hoverCount++,typeof PointerEvent<"u"?document.addEventListener("pointerup",T):we&&document.addEventListener("touchend",c),()=>{v.hoverCount--,v.hoverCount===0&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",T):we&&document.removeEventListener("touchend",c))}},[c]);let a=(0,te.useCallback)((T,v)=>{s||v==="touch"||f.isHovered||!(T.currentTarget&&T.currentTarget.contains(T.target))||(f.isHovered=!0,f.pointerType=v,f.target=T.currentTarget,p(q(T.target instanceof Element?T.target:null),"pointerover",k=>{f.isHovered&&f.target&&!ft(f.target,k.target)&&g(k,k.pointerType)},{capture:!0}),t?.({type:"hoverstart",target:T.currentTarget,pointerType:v}),r?.(!0),l(!0))},[s,t,r,p,f]),g=(0,te.useCallback)((T,v)=>{v==="touch"||!f.isHovered||!f.target||(f.isHovered=!1,f.pointerType="",f.target=null,b(),o?.({type:"hoverend",target:T.currentTarget,pointerType:v}),r?.(!1),l(!1))},[o,r,b,f.target,f]),S=(0,te.useMemo)(()=>{let T={};return typeof PointerEvent<"u"?(T.onPointerEnter=v=>{d.current.ignoreEmulated&&v.pointerType==="mouse"||a(v,v.pointerType)},T.onPointerLeave=v=>{!s&&v.currentTarget instanceof Element&&v.currentTarget.contains(v.target)&&g(v,v.pointerType)}):we&&(T.onTouchStart=()=>{f.ignoreEmulatedMouseEvents=!0},T.onMouseEnter=v=>{!f.ignoreEmulatedMouseEvents&&!d.current.ignoreEmulated&&a(v.nativeEvent,"mouse"),f.ignoreEmulatedMouseEvents=!1},T.onMouseLeave=v=>{!s&&v.currentTarget.contains(v.target)&&g(v.nativeEvent,"mouse")}),T},[s,a,g,f]);return(0,te.useEffect)(()=>{s&&f.isHovered&&g({currentTarget:f.target},f.pointerType)},[s,g,f.isHovered,f.pointerType,f.target]),{hoverProps:S,isHovered:i}}var Jt={prefix:String(Math.round(Math.random()*1e10)),current:0},Xe=new Map,Ze=typeof FinalizationRegistry<"u"?new FinalizationRegistry(e=>{Xe.delete(e)}):null;var oe=K(F(),1);function _s(e={}){let{prefix:t="necto",defaultId:r}=e,[o,s]=(0,oe.useState)(()=>r),i=(0,oe.useRef)(null),l=(0,oe.useRef)({}),d=(()=>{if(r)return r;let f=typeof oe.default.useId=="function"?(0,oe.useId)():String(++Jt.current);return`${we?t:`${t}${Jt.prefix}`}-${f}`})();return(0,oe.useEffect)(()=>{if(typeof window<"u"&&window.document?.createElement){let f=Xe.get(d)||[],p={current:i.current};f.some(b=>b===p)||Xe.set(d,[...f,p])}return Ze&&Ze.register(l.current,d),()=>{Ze&&Ze.unregister(l.current),Xe.delete(d)}},[d]),(0,oe.useEffect)(()=>{let f=i.current;f&&(s(f),i.current=null)},[]),d}function Yt(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:e.onKeyDown?Qt(t=>e.onKeyDown?.(t.nativeEvent)):void 0,onKeyUp:e.onKeyUp?Qt(t=>e.onKeyUp?.(t.nativeEvent)):void 0}}}var Te=K(F(),1);function en(e={}){let{type:t="function"}=e,r=(0,Te.useRef)(!1),[o,s]=(0,Te.useState)(!1),i=(0,Te.useCallback)(()=>r.current,[]);return(0,Te.useEffect)(()=>(r.current=!0,s(!0),()=>{r.current=!1,s(!1)}),[]),t==="ref"?r:t==="boolean"?o:i}var V=K(F(),1);function X(e,t,r){return{type:e,pointerType:t,target:r.currentTarget??r.target,shiftKey:r.shiftKey,ctrlKey:r.ctrlKey,metaKey:r.metaKey,altKey:r.altKey}}function ws(e={}){let{isDisabled:t,preventFocusOnPress:r,allowTextSelectionOnPress:o,ref:s,onPress:i,onPressStart:l,onPressEnd:d,onPressChange:f,onPressUp:p,onClick:b}=e,[c,a]=(0,V.useState)(!1),g=(0,V.useRef)(!1),S=(0,V.useRef)(null),T=(0,V.useRef)(!1),v=(0,V.useCallback)(E=>{c!==E&&(a(E),f?.(E))},[c,f]),k=(0,V.useCallback)(E=>{if(!T.current)return;let m=S.current&&S.current instanceof Node&&E.target instanceof Node&&S.current.contains(E.target);if(T.current=!1,v(!1),!o&&S.current instanceof HTMLElement&&ge(S.current),E.target){let D={...X("pressend","mouse",E),target:E.target};d?.(D),p?.(D),m&&i?.(D)}},[d,p,i,v,o]),x=(0,V.useCallback)(E=>{if(t||E.button!==0||g.current)return;r&&E.preventDefault(),o||pt(E.currentTarget),T.current=!0,S.current=E.currentTarget,v(!0);let m=X("pressstart","mouse",E);l?.(m),window.addEventListener("mouseup",k,{once:!0})},[t,r,o,l,v,k]),C=(0,V.useCallback)(E=>{if(t||E.button!==0||!T.current)return;T.current=!1,v(!1),!o&&E.currentTarget instanceof HTMLElement&&ge(E.currentTarget);let m=X("pressend","mouse",E);d?.(m),p?.(m),E.currentTarget instanceof Node&&E.currentTarget.contains(E.target)&&i?.(X("press","mouse",E))},[t,i,d,p,v,o]),B=(0,V.useCallback)(E=>{c&&(v(!1),d?.(X("pressend","mouse",E)),!o&&E.currentTarget instanceof HTMLElement&&ge(E.currentTarget))},[c,v,d,o]),U=(0,V.useCallback)(E=>{T.current&&!c&&(v(!0),l?.(X("pressstart","mouse",E)))},[c,l,v]),Y=(0,V.useCallback)(E=>{if(!T.current)return;T.current=!1,v(!1),!o&&S.current instanceof HTMLElement&&ge(S.current);let m={...X("pressend","touch",E),target:E.target};d?.(m),p?.(m)},[d,p,v,o]),j=(0,V.useCallback)(E=>{if(!T.current)return;T.current=!1,v(!1),!o&&S.current instanceof HTMLElement&&ge(S.current);let m={...X("pressend","touch",E),target:E.target};d?.(m)},[d,v,o]),G=(0,V.useCallback)(E=>{t||(o||pt(E.currentTarget),g.current=!0,setTimeout(()=>{g.current=!1},100),T.current=!0,S.current=E.currentTarget,v(!0),l?.(X("pressstart","touch",E)),window.addEventListener("touchend",Y,{once:!0}),window.addEventListener("touchcancel",j,{once:!0}))},[t,l,v,o,Y,j]),fe=(0,V.useCallback)(E=>{if(t||!T.current)return;T.current=!1,v(!1),!o&&E.currentTarget instanceof HTMLElement&&ge(E.currentTarget);let m=X("pressend","touch",E);d?.(m),p?.(m),E.currentTarget instanceof Node&&E.currentTarget.contains(E.target)&&i?.(X("press","touch",E))},[t,i,d,p,v,o]),A=(0,V.useCallback)(E=>{if(t)return;(E.key==="Enter"||E.key===" ")&&!c&&(E.key===" "&&E.preventDefault(),o||pt(),v(!0),T.current=!0,l?.(X("pressstart","keyboard",E)))},[t,c,l,v,o]),Se=(0,V.useCallback)(E=>{if(t)return;if((E.key==="Enter"||E.key===" ")&&c){v(!1),T.current=!1,o||ge();let D=X("pressend","keyboard",E);d?.(D),p?.(X("pressup","keyboard",E)),i?.(X("press","keyboard",E))}},[t,c,i,d,p,v,o]),ue=(0,V.useCallback)(E=>{if(t){E.preventDefault();return}g.current||b?.(E)},[t,b]);(0,V.useEffect)(()=>()=>{window.removeEventListener("mouseup",k),window.removeEventListener("touchend",Y),window.removeEventListener("touchcancel",j)},[k,Y,j]);let ae=(0,V.useMemo)(()=>({onMouseDown:x,onMouseUp:C,onMouseLeave:B,onMouseEnter:U,onTouchStart:G,onTouchEnd:fe,onKeyDown:A,onKeyUp:Se,onClick:ue}),[x,C,B,U,G,fe,A,Se,ue]);return(0,V.useEffect)(()=>{let E=s?.current;E&&E instanceof ye(E).Element&&ye(E).getComputedStyle(E).touchAction==="auto"&&(E.style.touchAction="pan-x pan-y pinch-zoom")},[s]),{pressProps:ae,isPressed:c}}var Wr=K(F(),1);function As(e){let{style:t,values:r,children:o,className:s,defaultStyle:i,defaultChildren:l,defaultClassName:d="necto"}=e;return(0,Wr.useMemo)(()=>{let f=typeof s=="function"?s({...r,defaultClassName:d}):s?`${d} ${s}`:d,p=typeof t=="function"?t({...r,defaultStyle:i||{}}):{...i,...t},b=typeof o=="function"?o({...r,defaultChildren:l}):o??l;return{className:f,style:p,children:b}},[s,t,o,d,l,i,r])}var Gr=K(F(),1);function Nt(e){let{context:t,slot:r}=e,o=(0,Gr.useContext)(t);if(r===null)return null;if(o&&typeof o=="object"&&"slots"in o&&o.slots){let s=r||Symbol("default");if(!o.slots[s]){let i=new Intl.ListFormat().format(Object.keys(o.slots).map(d=>`"${d}"`)),l=r?`Invalid slot name: "${r}". This slot is not recognized. Please refer to the component's documentation for valid slot names.`:"A slot prop is required. You must provide a valid slot name to render content in this area.";throw new Error(`${l} Valid slot names are ${i}.`)}return o.slots[s]}return o}var Fe=K(F(),1);function Ge(e){let{onBlur:t}=e,r=(0,Fe.useRef)({isFocused:!1,observer:null});(0,Fe.useLayoutEffect)(()=>{let s=r.current;return()=>{s.observer&&(s.observer.disconnect(),s.observer=null)}},[]);let o=Oe(s=>{t?.(s)});return(0,Fe.useCallback)(s=>{if(s.target instanceof HTMLButtonElement||s.target instanceof HTMLInputElement||s.target instanceof HTMLTextAreaElement||s.target instanceof HTMLSelectElement){r.current.isFocused=!0;let i=s.target,l=d=>{if(r.current.isFocused=!1,i.disabled){let f=vt(d);o(f)}r.current.observer&&(r.current.observer.disconnect(),r.current.observer=null)};i.addEventListener("focusout",l,{once:!0}),r.current.observer=new MutationObserver(()=>{if(r.current.isFocused&&i.disabled){r.current.observer?.disconnect();let d=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:d})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:d}))}}),r.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[o])}var be=K(F(),1);function Oe(e){let t=(0,be.useRef)(e);return(typeof window<"u"?be.useLayoutEffect:be.useEffect)(()=>{t.current=e},[e]),(0,be.useCallback)(((...r)=>t.current(...r)),[])}var ht=K(F(),1);function Yu(e){let t=en(),[r,o]=(0,ht.useState)(!1);return(0,ht.useEffect)(()=>{t()&&o(!!e())},[e,t]),r}var Ae=K(F(),1);function Ls(e={}){let{autoLock:t=!1,target:r,widthReflow:o=!0}=e,[s,i]=(0,Ae.useState)(!1),l=(0,Ae.useRef)(null),d=(0,Ae.useRef)(null),f=Oe(()=>{if(typeof window>"u"||!l.current)return;let{overflow:b,paddingRight:c}=l.current.style;if(d.current={overflow:b,paddingRight:c},o){let a=l.current===document.body?window.innerWidth:l.current.offsetWidth,g=parseInt(window.getComputedStyle(l.current).paddingRight,10)||0,S=a-l.current.scrollWidth;l.current.style.paddingRight=`${S+g}px`}l.current.style.overflow="hidden",i(!0)}),p=Oe(()=>{l.current&&d.current&&(l.current.style.overflow=d.current.overflow,o&&(l.current.style.paddingRight=d.current.paddingRight)),i(!1)});return(0,Ae.useEffect)(()=>{if(!(typeof window>"u"||typeof document>"u"))return r&&(l.current=typeof r=="string"?document.querySelector(r):r),l.current||(l.current=document.body),t&&f(),()=>{p()}},[t,r,o,f,p]),{isLocked:s,lock:f,unlock:p}}var Yr=K(F(),1);function Cs(e={}){let{isInvalid:t,isDisabled:r,isReadOnly:o,isRequired:s,isBusy:i,isPressed:l,isExpanded:d,isSelected:f,isChecked:p,isHidden:b,hasPopup:c,valueCurrent:a,valueMin:g,valueMax:S,valueText:T,label:v,labelledBy:k,describedBy:x,controls:C,owns:B}=e;return(0,Yr.useMemo)(()=>{let U={},Y=[{value:t,attr:W.Invalid},{value:r,attr:W.Disabled},{value:o,attr:W.Readonly},{value:s,attr:W.Required},{value:i,attr:W.Busy},{value:d,attr:W.Expanded},{value:f,attr:W.Selected},{value:b,attr:W.Hidden}];for(let{value:j,attr:G}of Y)j!==void 0&&(U[G]=j||void 0);return l!==void 0&&(U[W.Pressed]=l===!1?void 0:l),p!==void 0&&(U[W.Checked]=p===!1?void 0:p),c!==void 0&&(U[W.Haspopup]=c===!1?void 0:c),a!==void 0&&(U[W.Valuenow]=a),g!==void 0&&(U[W.Valuemin]=g),S!==void 0&&(U[W.Valuemax]=S),T!==void 0&&(U[W.Valuetext]=T),v!==void 0&&(U[W.Label]=v),k!==void 0&&(U[W.Labelledby]=k),x!==void 0&&(U[W.Describedby]=x),C!==void 0&&(U[W.Controls]=C),B!==void 0&&(U[W.Owns]=B),U},[t,r,o,s,i,l,d,f,p,b,c,a,g,S,T,v,k,x,C,B])}function Ps({id:e,css:t,insertionPoint:r,enabled:o=!0,window:s=typeof window<"u"?window:null}){let i=Array.isArray(t)?t.join(`
18
+ `):t;$r(()=>{if(!(!o||!i))return Ar(i,{id:e,window:s,insertionPoint:r})},[e,i,s,r,o])}var Tt=K(F(),1);function ua(e){let t=(0,Tt.useRef)(e);return(0,Tt.useLayoutEffect)(()=>{t.current=e}),t}var bt=K(F(),1),$r=bt.default.useInsertionEffect??bt.useLayoutEffect;function tn(e){if(e===null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function nn(e,t,r=".",o){if(!tn(t))return nn(e,{},r,o);let s=Object.assign({},t);for(let i in e){if(i==="__proto__"||i==="constructor")continue;let l=e[i];l!=null&&(o&&o(s,i,l,r)||(Array.isArray(l)&&Array.isArray(s[i])?s[i]=[...l,...s[i]]:tn(l)&&tn(s[i])?s[i]=nn(l,s[i],(r?`${r}.`:"")+i.toString(),o):s[i]=l))}return s}function rn(e){return(...t)=>t.reduce((r,o)=>nn(r,o,"",e),{})}var Rt=rn(),la=rn((e,t,r)=>{if(e[t]!==void 0&&typeof r=="function")return e[t]=r(e[t]),!0}),fa=rn((e,t,r)=>{if(Array.isArray(e[t])&&typeof r=="function")return e[t]=r(e[t]),!0});var ne=K(F(),1);function Is(e={}){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:o,onLongPress:s,accessibilityDescription:i,threshold:l}=Rt(e,{threshold:500}),d=(0,ne.useRef)(null),f=(0,ne.useRef)(null),p=(0,ne.useRef)(null),b=(0,ne.useRef)(!1),c=(0,ne.useCallback)(()=>{d.current&&(clearTimeout(d.current),d.current=null)},[]);(0,ne.useEffect)(()=>c,[c]);let a=(0,ne.useCallback)(C=>({type:C,pointerType:f.current??"mouse",target:p.current}),[]),g=(0,ne.useCallback)(C=>{t||C.button!==0||C.pointerType!=="mouse"&&(f.current=C.pointerType,p.current=C.currentTarget,b.current=!1,r?.(a("longpressstart")),d.current=setTimeout(()=>{b.current=!0,C.currentTarget?.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),s?.(a("longpress")),d.current=null},l))},[t,l,r,s,a]),S=(0,ne.useCallback)(()=>{f.current!==null&&(c(),!b.current&&o&&o(a("longpressend")),f.current=null,p.current=null)},[c,o,a]),T=(0,ne.useCallback)(()=>{c(),f.current!==null&&o&&o(a("longpressend")),f.current=null,p.current=null},[c,o,a]),v=(0,ne.useCallback)(C=>{b.current&&C.preventDefault()},[]);return{longPressProps:t?{}:{onPointerDown:g,onPointerUp:S,onPointerCancel:T,onContextMenu:v,...!t&&!!s&&!!i&&{"aria-description":i}}}}var eo=K(Zr(),1),ie=K(F(),1);function Fs(e){let{ref:t,isOpen:r,isReady:o=!0}=e,[s,i]=(0,ie.useState)(r),l=s&&o;(0,ie.useLayoutEffect)(()=>{if(l&&t.current&&"getAnimations"in t.current)for(let a of t.current.getAnimations())a instanceof CSSTransition&&a.cancel()},[t,l]),Jr(t,l,(0,ie.useCallback)(()=>i(!1),[]));let[d,f]=(0,ie.useState)(r);r&&!d?(i(!0),f(!0)):!r&&d&&f(!1);let[p,b]=(0,ie.useState)(r?"open":"closed");switch(p){case"open":r||b("exiting");break;case"closed":case"exiting":r&&b("open");break}let c=p==="exiting";return Jr(t,c,(0,ie.useCallback)(()=>{b(a=>a==="exiting"?"closed":a)},[])),{isEntering:l,isExiting:c,isRendered:r||c}}function Jr(e,t,r){(0,ie.useLayoutEffect)(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){r();return}let o=e.current.getAnimations();if(o.length===0){r();return}let s=!1;return Promise.all(o.map(i=>i.finished)).then(()=>{s||(0,eo.flushSync)(()=>{r()})}).catch(()=>{}),()=>{s=!0}}},[e,t,r])}var $=K(F(),1);function ks(e){return at()?e.metaKey:e.ctrlKey}function to(e,t){return e.current?.querySelector(`[data-key="${t}"]`)??null}function Ns(e){let{selectionManager:t,keyboardDelegate:r,ref:o,autoFocus:s,shouldFocusWrap:i,disallowEmptySelection:l,disallowSelectAll:d,escapeBehavior:f,selectOnFocus:p,disallowTypeAhead:b,shouldUseVirtualFocus:c,allowsTabNavigation:a,scrollRef:g,direction:S,orientation:T,onNavigate:v,onFocusItem:k}=Rt(e,{autoFocus:!1,shouldFocusWrap:!1,disallowEmptySelection:!1,disallowSelectAll:!1,escapeBehavior:"clearSelection",selectOnFocus:!1,disallowTypeAhead:!1,shouldUseVirtualFocus:!1,allowsTabNavigation:!1,isVirtualized:!1,direction:"ltr",orientation:"vertical"}),x=g??o,C=(0,$.useRef)({top:0,left:0}),B=(0,$.useRef)(t.focusedKey),U=(0,$.useRef)(s),Y=(0,$.useRef)(""),j=(0,$.useRef)(null),G=(0,$.useCallback)((m,D,O)=>{m!=null&&(t.setFocusedKey(m,O),v?.(m),D?.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(m):p&&!ks(D)&&t.replaceSelection(m))},[t,p,v]),fe=(0,$.useCallback)(m=>{if(k){k(m);return}let D=to(o,m);D&&!c&&Be(D)},[o,c,k]),A=(0,$.useCallback)(m=>{if(!b&&m.key.length===1&&!m.ctrlKey&&!m.metaKey&&!m.altKey){j.current&&clearTimeout(j.current),Y.current+=m.key;let O=r.getKeyForSearch?.(Y.current,t.focusedKey)??null;O!=null&&(m.preventDefault(),G(O,m)),j.current=setTimeout(()=>{Y.current=""},500);return}let D=S==="rtl";switch(m.key){case"ArrowDown":{if(r.getKeyBelow){let O=t.focusedKey!=null?r.getKeyBelow(t.focusedKey):r.getFirstKey?.()??null;O==null&&i&&(O=r.getFirstKey?.()??null),O!=null&&(m.preventDefault(),G(O,m))}break}case"ArrowUp":{if(r.getKeyAbove){let O=t.focusedKey!=null?r.getKeyAbove(t.focusedKey):r.getLastKey?.()??null;O==null&&i&&(O=r.getLastKey?.()??null),O!=null&&(m.preventDefault(),G(O,m))}break}case"ArrowLeft":{if(r.getKeyLeftOf){let O=t.focusedKey!=null?r.getKeyLeftOf(t.focusedKey):null;O==null&&i&&(O=D?r.getFirstKey?.()??null:r.getLastKey?.()??null),O!=null&&(m.preventDefault(),G(O,m,D?"first":"last"))}break}case"ArrowRight":{if(r.getKeyRightOf){let O=t.focusedKey!=null?r.getKeyRightOf(t.focusedKey):null;O==null&&i&&(O=D?r.getLastKey?.()??null:r.getFirstKey?.()??null),O!=null&&(m.preventDefault(),G(O,m,D?"last":"first"))}break}case"Home":{if(r.getFirstKey){m.preventDefault();let O=r.getFirstKey();t.setFocusedKey(O),O!=null&&(ct(m)&&m.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(O):p&&t.replaceSelection(O))}break}case"End":{if(r.getLastKey){m.preventDefault();let O=r.getLastKey();t.setFocusedKey(O),O!=null&&(ct(m)&&m.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(O):p&&t.replaceSelection(O))}break}case"PageDown":{if(r.getKeyPageBelow&&t.focusedKey!=null){let O=r.getKeyPageBelow(t.focusedKey);O!=null&&(m.preventDefault(),G(O,m))}break}case"PageUp":{if(r.getKeyPageAbove&&t.focusedKey!=null){let O=r.getKeyPageAbove(t.focusedKey);O!=null&&(m.preventDefault(),G(O,m))}break}case"a":{ct(m)&&t.selectionMode==="multiple"&&!d&&(m.preventDefault(),t.selectAll());break}case"Escape":{f==="clearSelection"&&!l&&t.selectedKeys.size>0&&(m.stopPropagation(),m.preventDefault(),t.clearSelection());break}case"Tab":{!a&&o.current&&m.shiftKey&&o.current.focus();break}}},[r,t,o,S,i,p,b,d,l,f,a,G]),Se=(0,$.useCallback)(m=>{if(!t.isFocused){if(t.setFocused(!0),t.focusedKey==null){let D=m.relatedTarget,O=D!=null&&!!(m.currentTarget.compareDocumentPosition(D)&Node.DOCUMENT_POSITION_FOLLOWING),ce=null;O?ce=t.lastSelectedKey??r.getLastKey?.()??null:ce=t.firstSelectedKey??r.getFirstKey?.()??null,ce!=null&&(t.setFocusedKey(ce),p&&!t.isSelected(ce)&&t.replaceSelection(ce))}else x.current&&(x.current.scrollTop=C.current.top,x.current.scrollLeft=C.current.left);t.focusedKey!=null&&fe(t.focusedKey)}},[t,r,p,x,fe]),ue=(0,$.useCallback)(m=>{let D=m.relatedTarget;m.currentTarget.contains(D)||t.setFocused(!1)},[t]),ae=(0,$.useCallback)(m=>{x.current===m.target&&m.preventDefault()},[x]);(0,$.useEffect)(()=>{let m=x.current;if(!m)return()=>{};let D=()=>{C.current={top:m.scrollTop,left:m.scrollLeft}};return m.addEventListener("scroll",D,{passive:!0}),()=>{m.removeEventListener("scroll",D)}},[x]),(0,$.useEffect)(()=>{if(!U.current)return;let m=null;if(U.current==="first"?m=r.getFirstKey?.()??null:U.current==="last"&&(m=r.getLastKey?.()??null),t.selectedKeys.size>0){for(let D of t.selectedKeys)if(t.canSelectItem?.(D)!==!1){m=D;break}}t.setFocused(!0),t.setFocusedKey(m),m==null&&!c&&o.current&&o.current.focus(),U.current=!1},[r,t,o,c]),(0,$.useEffect)(()=>{if(!t.isFocused||t.focusedKey==null||t.focusedKey===B.current)return;let m=to(o,t.focusedKey);m&&x.current&&_r(x.current,m),B.current=t.focusedKey},[t.isFocused,t.focusedKey,o,x]),(0,$.useEffect)(()=>()=>{j.current&&clearTimeout(j.current)},[]);let E=c?void 0:t.focusedKey==null?0:-1;return{collectionProps:Ie({onKeyDown:A,onFocus:Se,onBlur:ue,onMouseDown:ae,tabIndex:E,"data-orientation":T})}}var z=K(F(),1),Ot={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},ro={...Ot,customError:!0,valid:!1},ke={isInvalid:!1,validationErrors:[],validationDetails:Ot},oo=(0,z.createContext)({}),un="__formValidationState"+Date.now();function Ks(e){if(e[un]){let{realtimeValidation:t,displayValidation:r,updateValidation:o,resetValidation:s,commitValidation:i}=e[un];return{realtimeValidation:t,displayValidation:r,updateValidation:o,resetValidation:s,commitValidation:i}}return Hs(e)}function Hs(e){let{isInvalid:t,validationState:r,name:o,value:s,builtinValidation:i,validate:l,validationBehavior:d="aria"}=e;r&&(t||=r==="invalid");let f=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:ro}:null,p=(0,z.useMemo)(()=>{if(!l||s==null)return null;let A=Vs(l,s);return no(A)},[l,s]);i?.validationDetails.valid&&(i=void 0);let b=(0,z.useContext)(oo),c=(0,z.useMemo)(()=>o?Array.isArray(o)?o.flatMap(A=>an(b[A])):an(b[o]):[],[b,o]),[a,g]=(0,z.useState)(b),[S,T]=(0,z.useState)(!1);b!==a&&(g(b),T(!1));let v=(0,z.useMemo)(()=>no(S?[]:c),[S,c]),k=(0,z.useRef)(ke),[x,C]=(0,z.useState)(ke),B=(0,z.useRef)(ke),U=()=>{if(!Y)return;j(!1);let A=p||i||k.current;sn(A,B.current)||(B.current=A,C(A))},[Y,j]=(0,z.useState)(!1);return(0,z.useEffect)(U),{realtimeValidation:f||v||p||i||ke,displayValidation:d==="native"?f||v||x:f||v||p||i||x,updateValidation(A){d==="aria"&&!sn(x,A)?C(A):k.current=A},resetValidation(){let A=ke;sn(A,B.current)||(B.current=A,C(A)),d==="native"&&j(!1),T(!0)},commitValidation(){d==="native"&&j(!0),T(!0)}}}function an(e){return e?Array.isArray(e)?e:[e]:[]}function Vs(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return an(r)}return[]}function no(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:ro}:null}function sn(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,o)=>r===t.validationErrors[o])&&Object.entries(e.validationDetails).every(([r,o])=>t.validationDetails[r]===o)}function js(...e){let t=new Set,r=!1,o={...Ot};for(let s of e){for(let i of s.validationErrors)t.add(i);r||=s.isInvalid;for(let i in o)o[i]||=s.validationDetails[i]}return o.valid=!r,{isInvalid:r,validationErrors:[...t],validationDetails:o}}})();
19
19
  /*! Bundled license information:
20
20
 
21
21
  react/cjs/react.production.js:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@necto-react/hooks",
3
- "version": "2.14.2",
3
+ "version": "2.14.4",
4
4
  "type": "module",
5
5
  "description": "Necto's standard library for providing utility hooks for React applications.",
6
6
  "files": [
@@ -41,14 +41,14 @@
41
41
  "defu": "^6.1.4",
42
42
  "react-aria": "^3.39.0",
43
43
  "std-env": "^3.9.0",
44
- "@necto-react/helpers": "2.6.1",
44
+ "@necto/dom": "1.6.3",
45
+ "@necto-react/helpers": "2.6.3",
46
+ "@necto-react/types": "2.4.0",
45
47
  "@necto/id": "1.6.3",
46
- "@necto/dom": "1.6.1",
47
48
  "@necto/mergers": "1.5.0",
48
- "@necto/types": "1.3.0",
49
49
  "@necto/platform": "1.5.0",
50
- "@necto-react/types": "2.4.0",
51
- "@necto/strings": "1.6.0"
50
+ "@necto/strings": "1.6.0",
51
+ "@necto/types": "1.3.0"
52
52
  },
53
53
  "scripts": {
54
54
  "test": "vitest",