@oxog/state 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +261 -55
- package/dist/iife/index.global.js +11 -11
- package/dist/index.cjs +2366 -518
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1784 -64
- package/dist/index.d.ts +1784 -64
- package/dist/index.js +2321 -518
- package/dist/index.js.map +1 -1
- package/package.json +11 -4
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
"use strict";var OxogState=(()=>{var Gn=Object.create;var be=Object.defineProperty;var Xn=Object.getOwnPropertyDescriptor;var Jn=Object.getOwnPropertyNames;var Qn=Object.getPrototypeOf,Zn=Object.prototype.hasOwnProperty;var Ye=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),eo=(t,r)=>{for(var o in r)be(t,o,{get:r[o],enumerable:!0})},lr=(t,r,o,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of Jn(r))!Zn.call(t,s)&&s!==o&&be(t,s,{get:()=>r[s],enumerable:!(a=Xn(r,s))||a.enumerable});return t};var to=(t,r,o)=>(o=t!=null?Gn(Qn(t)):{},lr(r||!t||!t.__esModule?be(o,"default",{value:t,enumerable:!0}):o,t)),ro=t=>lr(be({},"__esModule",{value:!0}),t);var Cr=Ye(g=>{"use strict";var ue=Symbol.for("react.element"),uo=Symbol.for("react.portal"),co=Symbol.for("react.fragment"),lo=Symbol.for("react.strict_mode"),fo=Symbol.for("react.profiler"),po=Symbol.for("react.provider"),yo=Symbol.for("react.context"),ho=Symbol.for("react.forward_ref"),So=Symbol.for("react.suspense"),vo=Symbol.for("react.memo"),go=Symbol.for("react.lazy"),vr=Symbol.iterator;function mo(t){return t===null||typeof t!="object"?null:(t=vr&&t[vr]||t["@@iterator"],typeof t=="function"?t:null)}var Tr={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},br=Object.assign,Er={};function G(t,r,o){this.props=t,this.context=r,this.refs=Er,this.updater=o||Tr}G.prototype.isReactComponent={};G.prototype.setState=function(t,r){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,r,"setState")};G.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function _r(){}_r.prototype=G.prototype;function rt(t,r,o){this.props=t,this.context=r,this.refs=Er,this.updater=o||Tr}var nt=rt.prototype=new _r;nt.constructor=rt;br(nt,G.prototype);nt.isPureReactComponent=!0;var gr=Array.isArray,wr=Object.prototype.hasOwnProperty,ot={current:null},kr={key:!0,ref:!0,__self:!0,__source:!0};function Or(t,r,o){var a,s={},c=null,d=null;if(r!=null)for(a in r.ref!==void 0&&(d=r.ref),r.key!==void 0&&(c=""+r.key),r)wr.call(r,a)&&!kr.hasOwnProperty(a)&&(s[a]=r[a]);var y=arguments.length-2;if(y===1)s.children=o;else if(1<y){for(var f=Array(y),h=0;h<y;h++)f[h]=arguments[h+2];s.children=f}if(t&&t.defaultProps)for(a in y=t.defaultProps,y)s[a]===void 0&&(s[a]=y[a]);return{$$typeof:ue,type:t,key:c,ref:d,props:s,_owner:ot.current}}function To(t,r){return{$$typeof:ue,type:t.type,key:r,ref:t.ref,props:t.props,_owner:t._owner}}function at(t){return typeof t=="object"&&t!==null&&t.$$typeof===ue}function bo(t){var r={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(o){return r[o]})}var mr=/\/+/g;function tt(t,r){return typeof t=="object"&&t!==null&&t.key!=null?bo(""+t.key):r.toString(36)}function ke(t,r,o,a,s){var c=typeof t;(c==="undefined"||c==="boolean")&&(t=null);var d=!1;if(t===null)d=!0;else switch(c){case"string":case"number":d=!0;break;case"object":switch(t.$$typeof){case ue:case uo:d=!0}}if(d)return d=t,s=s(d),t=a===""?"."+tt(d,0):a,gr(s)?(o="",t!=null&&(o=t.replace(mr,"$&/")+"/"),ke(s,r,o,"",function(h){return h})):s!=null&&(at(s)&&(s=To(s,o+(!s.key||d&&d.key===s.key?"":(""+s.key).replace(mr,"$&/")+"/")+t)),r.push(s)),1;if(d=0,a=a===""?".":a+":",gr(t))for(var y=0;y<t.length;y++){c=t[y];var f=a+tt(c,y);d+=ke(c,r,o,f,s)}else if(f=mo(t),typeof f=="function")for(t=f.call(t),y=0;!(c=t.next()).done;)c=c.value,f=a+tt(c,y++),d+=ke(c,r,o,f,s);else if(c==="object")throw r=String(t),Error("Objects are not valid as a React child (found: "+(r==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return d}function we(t,r,o){if(t==null)return t;var a=[],s=0;return ke(t,a,"","",function(c){return r.call(o,c,s++)}),a}function Eo(t){if(t._status===-1){var r=t._result;r=r(),r.then(function(o){(t._status===0||t._status===-1)&&(t._status=1,t._result=o)},function(o){(t._status===0||t._status===-1)&&(t._status=2,t._result=o)}),t._status===-1&&(t._status=0,t._result=r)}if(t._status===1)return t._result.default;throw t._result}var j={current:null},Oe={transition:null},_o={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:Oe,ReactCurrentOwner:ot};function Pr(){throw Error("act(...) is not supported in production builds of React.")}g.Children={map:we,forEach:function(t,r,o){we(t,function(){r.apply(this,arguments)},o)},count:function(t){var r=0;return we(t,function(){r++}),r},toArray:function(t){return we(t,function(r){return r})||[]},only:function(t){if(!at(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};g.Component=G;g.Fragment=co;g.Profiler=fo;g.PureComponent=rt;g.StrictMode=lo;g.Suspense=So;g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_o;g.act=Pr;g.cloneElement=function(t,r,o){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var a=br({},t.props),s=t.key,c=t.ref,d=t._owner;if(r!=null){if(r.ref!==void 0&&(c=r.ref,d=ot.current),r.key!==void 0&&(s=""+r.key),t.type&&t.type.defaultProps)var y=t.type.defaultProps;for(f in r)wr.call(r,f)&&!kr.hasOwnProperty(f)&&(a[f]=r[f]===void 0&&y!==void 0?y[f]:r[f])}var f=arguments.length-2;if(f===1)a.children=o;else if(1<f){y=Array(f);for(var h=0;h<f;h++)y[h]=arguments[h+2];a.children=y}return{$$typeof:ue,type:t.type,key:s,ref:c,props:a,_owner:d}};g.createContext=function(t){return t={$$typeof:yo,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:po,_context:t},t.Consumer=t};g.createElement=Or;g.createFactory=function(t){var r=Or.bind(null,t);return r.type=t,r};g.createRef=function(){return{current:null}};g.forwardRef=function(t){return{$$typeof:ho,render:t}};g.isValidElement=at;g.lazy=function(t){return{$$typeof:go,_payload:{_status:-1,_result:t},_init:Eo}};g.memo=function(t,r){return{$$typeof:vo,type:t,compare:r===void 0?null:r}};g.startTransition=function(t){var r=Oe.transition;Oe.transition={};try{t()}finally{Oe.transition=r}};g.unstable_act=Pr;g.useCallback=function(t,r){return j.current.useCallback(t,r)};g.useContext=function(t){return j.current.useContext(t)};g.useDebugValue=function(){};g.useDeferredValue=function(t){return j.current.useDeferredValue(t)};g.useEffect=function(t,r){return j.current.useEffect(t,r)};g.useId=function(){return j.current.useId()};g.useImperativeHandle=function(t,r,o){return j.current.useImperativeHandle(t,r,o)};g.useInsertionEffect=function(t,r){return j.current.useInsertionEffect(t,r)};g.useLayoutEffect=function(t,r){return j.current.useLayoutEffect(t,r)};g.useMemo=function(t,r){return j.current.useMemo(t,r)};g.useReducer=function(t,r,o){return j.current.useReducer(t,r,o)};g.useRef=function(t){return j.current.useRef(t)};g.useState=function(t){return j.current.useState(t)};g.useSyncExternalStore=function(t,r,o){return j.current.useSyncExternalStore(t,r,o)};g.useTransition=function(){return j.current.useTransition()};g.version="18.3.1"});var xr=Ye((m,Pe)=>{"use strict";process.env.NODE_ENV!=="production"&&(function(){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t="18.3.1",r=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),y=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),U=Symbol.for("react.offscreen"),mt=Symbol.iterator,Nr="@@iterator";function Tt(e){if(e===null||typeof e!="object")return null;var n=mt&&e[mt]||e[Nr];return typeof n=="function"?n:null}var bt={current:null},V={transition:null},A={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},L={current:null},X={},ce=null;function Et(e){ce=e}X.setExtraStackFrame=function(e){ce=e},X.getCurrentStack=null,X.getStackAddendum=function(){var e="";ce&&(e+=ce);var n=X.getCurrentStack;return n&&(e+=n()||""),e};var Lr=!1,Mr=!1,Br=!1,Fr=!1,$r=!1,q={ReactCurrentDispatcher:bt,ReactCurrentBatchConfig:V,ReactCurrentOwner:L};q.ReactDebugCurrentFrame=X,q.ReactCurrentActQueue=A;function K(e){{for(var n=arguments.length,i=new Array(n>1?n-1:0),u=1;u<n;u++)i[u-1]=arguments[u];_t("warn",e,i)}}function E(e){{for(var n=arguments.length,i=new Array(n>1?n-1:0),u=1;u<n;u++)i[u-1]=arguments[u];_t("error",e,i)}}function _t(e,n,i){{var u=q.ReactDebugCurrentFrame,l=u.getStackAddendum();l!==""&&(n+="%s",i=i.concat([l]));var S=i.map(function(p){return String(p)});S.unshift("Warning: "+n),Function.prototype.apply.call(console[e],console,S)}}var wt={};function xe(e,n){{var i=e.constructor,u=i&&(i.displayName||i.name)||"ReactClass",l=u+"."+n;if(wt[l])return;E("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.",n,u),wt[l]=!0}}var kt={isMounted:function(e){return!1},enqueueForceUpdate:function(e,n,i){xe(e,"forceUpdate")},enqueueReplaceState:function(e,n,i,u){xe(e,"replaceState")},enqueueSetState:function(e,n,i,u){xe(e,"setState")}},M=Object.assign,Re={};Object.freeze(Re);function F(e,n,i){this.props=e,this.context=n,this.refs=Re,this.updater=i||kt}F.prototype.isReactComponent={},F.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")},F.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};{var Ae={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)."]},Ur=function(e,n){Object.defineProperty(F.prototype,e,{get:function(){K("%s(...) is deprecated in plain JavaScript React classes. %s",n[0],n[1])}})};for(var De in Ae)Ae.hasOwnProperty(De)&&Ur(De,Ae[De])}function Ot(){}Ot.prototype=F.prototype;function je(e,n,i){this.props=e,this.context=n,this.refs=Re,this.updater=i||kt}var Ie=je.prototype=new Ot;Ie.constructor=je,M(Ie,F.prototype),Ie.isPureReactComponent=!0;function Vr(){var e={current:null};return Object.seal(e),e}var qr=Array.isArray;function le(e){return qr(e)}function Kr(e){{var n=typeof Symbol=="function"&&Symbol.toStringTag,i=n&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i}}function Hr(e){try{return Pt(e),!1}catch{return!0}}function Pt(e){return""+e}function fe(e){if(Hr(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Kr(e)),Pt(e)}function Wr(e,n,i){var u=e.displayName;if(u)return u;var l=n.displayName||n.name||"";return l!==""?i+"("+l+")":i}function Ct(e){return e.displayName||"Context"}function B(e){if(e==null)return null;if(typeof e.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case a:return"Fragment";case o:return"Portal";case c:return"Profiler";case s:return"StrictMode";case h:return"Suspense";case b:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case y:var n=e;return Ct(n)+".Consumer";case d:var i=e;return Ct(i._context)+".Provider";case f:return Wr(e,e.render,"ForwardRef");case C:var u=e.displayName||null;return u!==null?u:B(e.type)||"Memo";case R:{var l=e,S=l._payload,p=l._init;try{return B(p(S))}catch{return null}}}return null}var J=Object.prototype.hasOwnProperty,xt={key:!0,ref:!0,__self:!0,__source:!0},Rt,At,Ne;Ne={};function Dt(e){if(J.call(e,"ref")){var n=Object.getOwnPropertyDescriptor(e,"ref").get;if(n&&n.isReactWarning)return!1}return e.ref!==void 0}function jt(e){if(J.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return e.key!==void 0}function Yr(e,n){var i=function(){Rt||(Rt=!0,E("%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://reactjs.org/link/special-props)",n))};i.isReactWarning=!0,Object.defineProperty(e,"key",{get:i,configurable:!0})}function zr(e,n){var i=function(){At||(At=!0,E("%s: `ref` 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://reactjs.org/link/special-props)",n))};i.isReactWarning=!0,Object.defineProperty(e,"ref",{get:i,configurable:!0})}function Gr(e){if(typeof e.ref=="string"&&L.current&&e.__self&&L.current.stateNode!==e.__self){var n=B(L.current.type);Ne[n]||(E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',n,e.ref),Ne[n]=!0)}}var Le=function(e,n,i,u,l,S,p){var v={$$typeof:r,type:e,key:n,ref:i,props:p,_owner:S};return v._store={},Object.defineProperty(v._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(v,"_self",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.defineProperty(v,"_source",{configurable:!1,enumerable:!1,writable:!1,value:l}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v};function Xr(e,n,i){var u,l={},S=null,p=null,v=null,T=null;if(n!=null){Dt(n)&&(p=n.ref,Gr(n)),jt(n)&&(fe(n.key),S=""+n.key),v=n.__self===void 0?null:n.__self,T=n.__source===void 0?null:n.__source;for(u in n)J.call(n,u)&&!xt.hasOwnProperty(u)&&(l[u]=n[u])}var _=arguments.length-2;if(_===1)l.children=i;else if(_>1){for(var w=Array(_),k=0;k<_;k++)w[k]=arguments[k+2];Object.freeze&&Object.freeze(w),l.children=w}if(e&&e.defaultProps){var O=e.defaultProps;for(u in O)l[u]===void 0&&(l[u]=O[u])}if(S||p){var P=typeof e=="function"?e.displayName||e.name||"Unknown":e;S&&Yr(l,P),p&&zr(l,P)}return Le(e,S,p,v,T,L.current,l)}function Jr(e,n){var i=Le(e.type,n,e.ref,e._self,e._source,e._owner,e.props);return i}function Qr(e,n,i){if(e==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var u,l=M({},e.props),S=e.key,p=e.ref,v=e._self,T=e._source,_=e._owner;if(n!=null){Dt(n)&&(p=n.ref,_=L.current),jt(n)&&(fe(n.key),S=""+n.key);var w;e.type&&e.type.defaultProps&&(w=e.type.defaultProps);for(u in n)J.call(n,u)&&!xt.hasOwnProperty(u)&&(n[u]===void 0&&w!==void 0?l[u]=w[u]:l[u]=n[u])}var k=arguments.length-2;if(k===1)l.children=i;else if(k>1){for(var O=Array(k),P=0;P<k;P++)O[P]=arguments[P+2];l.children=O}return Le(e.type,S,p,v,T,_,l)}function H(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}var It=".",Zr=":";function en(e){var n=/[=:]/g,i={"=":"=0",":":"=2"},u=e.replace(n,function(l){return i[l]});return"$"+u}var Nt=!1,tn=/\/+/g;function Lt(e){return e.replace(tn,"$&/")}function Me(e,n){return typeof e=="object"&&e!==null&&e.key!=null?(fe(e.key),en(""+e.key)):n.toString(36)}function de(e,n,i,u,l){var S=typeof e;(S==="undefined"||S==="boolean")&&(e=null);var p=!1;if(e===null)p=!0;else switch(S){case"string":case"number":p=!0;break;case"object":switch(e.$$typeof){case r:case o:p=!0}}if(p){var v=e,T=l(v),_=u===""?It+Me(v,0):u;if(le(T)){var w="";_!=null&&(w=Lt(_)+"/"),de(T,n,w,"",function(zn){return zn})}else T!=null&&(H(T)&&(T.key&&(!v||v.key!==T.key)&&fe(T.key),T=Jr(T,i+(T.key&&(!v||v.key!==T.key)?Lt(""+T.key)+"/":"")+_)),n.push(T));return 1}var k,O,P=0,x=u===""?It:u+Zr;if(le(e))for(var Te=0;Te<e.length;Te++)k=e[Te],O=x+Me(k,Te),P+=de(k,n,i,O,l);else{var We=Tt(e);if(typeof We=="function"){var sr=e;We===sr.entries&&(Nt||K("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Nt=!0);for(var Wn=We.call(sr),ur,Yn=0;!(ur=Wn.next()).done;)k=ur.value,O=x+Me(k,Yn++),P+=de(k,n,i,O,l)}else if(S==="object"){var cr=String(e);throw new Error("Objects are not valid as a React child (found: "+(cr==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":cr)+"). If you meant to render a collection of children, use an array instead.")}}return P}function pe(e,n,i){if(e==null)return e;var u=[],l=0;return de(e,u,"","",function(S){return n.call(i,S,l++)}),u}function rn(e){var n=0;return pe(e,function(){n++}),n}function nn(e,n,i){pe(e,function(){n.apply(this,arguments)},i)}function on(e){return pe(e,function(n){return n})||[]}function an(e){if(!H(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}function sn(e){var n={$$typeof:y,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};n.Provider={$$typeof:d,_context:n};var i=!1,u=!1,l=!1;{var S={$$typeof:y,_context:n};Object.defineProperties(S,{Provider:{get:function(){return u||(u=!0,E("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),n.Provider},set:function(p){n.Provider=p}},_currentValue:{get:function(){return n._currentValue},set:function(p){n._currentValue=p}},_currentValue2:{get:function(){return n._currentValue2},set:function(p){n._currentValue2=p}},_threadCount:{get:function(){return n._threadCount},set:function(p){n._threadCount=p}},Consumer:{get:function(){return i||(i=!0,E("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),n.Consumer}},displayName:{get:function(){return n.displayName},set:function(p){l||(K("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",p),l=!0)}}}),n.Consumer=S}return n._currentRenderer=null,n._currentRenderer2=null,n}var Q=-1,Be=0,Mt=1,un=2;function cn(e){if(e._status===Q){var n=e._result,i=n();if(i.then(function(S){if(e._status===Be||e._status===Q){var p=e;p._status=Mt,p._result=S}},function(S){if(e._status===Be||e._status===Q){var p=e;p._status=un,p._result=S}}),e._status===Q){var u=e;u._status=Be,u._result=i}}if(e._status===Mt){var l=e._result;return l===void 0&&E(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
1
|
+
"use strict";var OxogState=(()=>{var la=Object.create;var Me=Object.defineProperty;var fa=Object.getOwnPropertyDescriptor;var da=Object.getOwnPropertyNames;var pa=Object.getPrototypeOf,Sa=Object.prototype.hasOwnProperty;var W=(e,t)=>()=>(e&&(t=e(e=0)),t);var ct=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Br=(e,t)=>{for(var n in t)Me(e,n,{get:t[n],enumerable:!0})},Kr=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of da(t))!Sa.call(e,a)&&a!==n&&Me(e,a,{get:()=>t[a],enumerable:!(o=fa(t,a))||o.enumerable});return e};var ya=(e,t,n)=>(n=e!=null?la(pa(e)):{},Kr(t||!e||!e.__esModule?Me(n,"default",{value:e,enumerable:!0}):n,e)),zr=e=>Kr(Me({},"__esModule",{value:!0}),e);function G(e,t){if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e.getTime());if(t||(t=new WeakMap),t.has(e))return t.get(e);if(t.set(e,e),Array.isArray(e)){let n=[];return t.set(e,n),e.forEach((o,a)=>{n[a]=G(o,t)}),n}if(e.constructor===Object){let n={};t.set(e,n);for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=G(e[o],t));return n}return e}var ut=W(()=>{"use strict"});function pe(e,t){if(Object.is(e,t))return!0;if(e===null||t===null||typeof e!="object"||typeof t!="object"||Array.isArray(e)!==Array.isArray(t))return!1;if(Array.isArray(e)){let a=t;if(e.length!==a.length)return!1;for(let s=0;s<e.length;s++)if(!pe(e[s],a[s]))return!1;return!0}let n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let a of n)if(!Object.prototype.hasOwnProperty.call(t,a)||!pe(e[a],t[a]))return!1;return!0}var Hr=W(()=>{"use strict"});function N(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;let n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let a of n)if(!o.includes(a)||!Object.is(e[a],t[a]))return!1;return!0}var lt=W(()=>{"use strict"});function ae(e,t){if(t===null)return e;if(typeof t!="object")return t;let n=G(e);for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o)){let a=t[o],s=n[o];if(a instanceof Date){n[o]=new Date(a.getTime());continue}a!==null&&typeof a=="object"&&!Array.isArray(a)&&!(a instanceof Date)&&s!==null&&typeof s=="object"&&!Array.isArray(s)&&!(s instanceof Date)?n[o]=ae(s,a):n[o]=ft(a)}return n}function ft(e){if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e.getTime());if(Array.isArray(e))return e.map(t=>ft(t));if(e.constructor===Object){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=ft(e[n]));return t}return e}var Wr=W(()=>{"use strict";ut()});function Se(e){return typeof e=="function"}var Gr=W(()=>{"use strict"});function ye(e,t){let n={};for(let o of t)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}var Yr=W(()=>{"use strict"});function Te(e,t){let n={...e};for(let o of t)delete n[o];return n}var Zr=W(()=>{"use strict"});function ge(e){return e}var dt=W(()=>{"use strict"});var X=W(()=>{"use strict";ut();Hr();lt();Wr();Gr();Yr();Zr();dt()});function Jr(e){return new St(e)}var pt,St,Xr=W(()=>{"use strict";pt=class{listeners=new Map;on(t,n){return this.listeners.has(t)||this.listeners.set(t,new Set),this.listeners.get(t).add(n),()=>{this.listeners.get(t)?.delete(n)}}emit(t,n){let o=this.listeners.get(t);if(o)for(let a of o)try{a(n)}catch(s){console.error(`Error in ${t} handler:`,s)}}destroy(){this.listeners.clear()}},St=class{plugins=new Map;eventBus=new pt;config;errorHandlers=new Set;initializing=!1;constructor(t){this.config=t||{}}register(t,n,o){if(!t.name||!t.version||typeof t.install!="function")throw new Error("Invalid plugin: must have name, version, and install function");if(this.plugins.has(t.name))throw new Error(`Plugin '${t.name}' is already registered`);if(t.dependencies){for(let s of t.dependencies)if(!this.plugins.has(s))throw new Error(`Plugin '${t.name}' requires '${s}' to be registered first`)}let a={plugin:t,options:n};try{t.install(o,n)}catch(s){throw new Error(`Failed to install plugin '${t.name}': ${s}`)}this.plugins.set(t.name,a),!this.initializing&&t.onInit&&this.runOnInit(t,o)}async initializeAll(t){this.initializing=!0;let n=Array.from(this.plugins.values());for(let{plugin:o}of n)o.onInit&&await this.runOnInit(o,t);this.initializing=!1}async runOnInit(t,n){try{await t.onInit(n)}catch(o){console.error(`Error in ${t.name} onInit:`,o)}}async unregister(t){let n=this.plugins.get(t);if(n){if(n.plugin.onDestroy)try{await n.plugin.onDestroy()}catch(o){console.error(`Error in ${t} onDestroy:`,o)}this.plugins.delete(t)}}emitStateChange(t,n){this.eventBus.emit("stateChange",{state:t,prevState:n});for(let{plugin:o}of this.plugins.values())if(o.onStateChange)try{o.onStateChange(t,n)}catch(a){console.error(`Error in ${o.name} onStateChange:`,a)}}emitError(t){this.eventBus.emit("error",t);for(let{plugin:n}of this.plugins.values())if(n.onError)try{n.onError(t)}catch(o){console.error(`Error in ${n.name} onError:`,o)}for(let n of this.errorHandlers)try{n(t)}catch(o){console.error("Error in error handler:",o)}}onError(t){return this.errorHandlers.add(t),()=>{this.errorHandlers.delete(t)}}on(t,n){return this.eventBus.on(t,n)}async destroy(){let t=Array.from(this.plugins.keys());for(let n of t)await this.unregister(n);this.eventBus.destroy(),this.errorHandlers.clear()}}});function Ta(){return me>0}function Qr(){return me}function ga(){return++me}function en(){return--me}function tn(){return he}function rn(){yt.clear(),he.clear()}function ma(e){yt.add(e)}function ha(e){he.add(e)}function va(e){return he.has(e)}var me,yt,he,Tt,nn=W(()=>{"use strict";me=0,yt=new Set,he=new Set;Tt={get depth(){return me},get stores(){return yt},get managedStores(){return he},isBatching:Ta,batch(e,t){let n=va(e);ga(),ma(e),!n&&"beginBatch"in e&&(e.beginBatch(),ha(e));try{let o=t();if(en(),Qr()===0){for(let a of tn())"flushNotifications"in a&&a.flushNotifications(),"endBatch"in a&&a.endBatch();rn()}return o}catch(o){if(en(),Qr()===0){for(let a of tn())"endBatch"in a&&a.endBatch();rn()}throw o}}}});var ve,ie,on=W(()=>{"use strict";ve=(s=>(s.STORE_DESTROYED="STORE_DESTROYED",s.PLUGIN_EXISTS="PLUGIN_EXISTS",s.PLUGIN_DEPENDENCY_MISSING="PLUGIN_DEPENDENCY_MISSING",s.INVALID_STATE_UPDATE="INVALID_STATE_UPDATE",s.ACTION_ERROR="ACTION_ERROR",s))(ve||{}),ie=class extends Error{constructor(n,o){super(o);this.code=n;this.name="StoreError"}}});var an={};Br(an,{StoreError:()=>ie,StoreErrorCode:()=>ve,StoreImpl:()=>Ie,batch:()=>mt,createStore:()=>Z});function Z(e,t){let n=Jr({name:"store"}),o={...e},a={};for(let u in o)Se(o[u])&&u.startsWith("$")&&(a[u.substring(1)]=o[u],delete o[u]);let s={...a,...t},c=new gt(o,n);if(s)for(let[u,d]of Object.entries(s))c.addAction(u,d);let f=c.getActions();for(let[u,d]of Object.entries(f))c[u]=(...S)=>{let T=c.getState(),g=d(T,...S);return g instanceof Promise?g.then(v=>(c.setState(v),v)):(c.setState(g),g)};return n.initializeAll(c).catch(u=>{console.error("Error initializing plugins:",u)}),new Proxy(c,{get(u,d){if(d in u)return u[d];let S=u.store;if(S&&typeof S[d]=="function")return S[d].bind(S);if(S&&d in S)return S[d]},set(u,d,S){if(d in u||typeof S=="function")return u[d]=S,!0;let T=u.store;return T?(T[d]=S,!0):!1}})}function mt(e){return e()}var Ie,gt,se=W(()=>{"use strict";X();Xr();nn();on();Ie=class{state;initialState;listeners=new Set;selectorSubscriptions=new Map;kernel;destroyed=!1;batchDepth=0;pendingNotify=!1;queuedState=null;queuedPrevState=null;actions={};constructor(t,n){this.state=G(t),this.initialState=G(t),this.kernel=n,this.kernel.onError(o=>{console.error("Store error:",o)})}getState(){return this.checkNotDestroyed(),this.state}setState(t){this.checkNotDestroyed();let n=this.state,o=typeof t=="function"?t(this.state):t;this.state={...this.state,...o},this.notifyOrQueue(this.state,n)}merge(t){this.checkNotDestroyed();let n=this.state;this.state=ae(this.state,t),this.notifyOrQueue(this.state,n)}reset(){this.checkNotDestroyed();let t=this.state;this.state=G(this.initialState),this.notifyOrQueue(this.state,t)}subscribe(t,n,o){if(this.checkNotDestroyed(),n===void 0&&typeof t=="function"){let u=t;return this.listeners.add(u),()=>{this.listeners.delete(u)}}let a=t,s=n,c=o||N,f=this.selectorSubscriptions.get(a);return f||(f={value:a(this.state),listeners:new Set,selector:a,equalityFn:c},this.selectorSubscriptions.set(a,f)),f.listeners.add(s),()=>{let u=this.selectorSubscriptions.get(a);u&&(u.listeners.delete(s),u.listeners.size===0&&this.selectorSubscriptions.delete(a))}}use(t,n){return this.checkNotDestroyed(),this.kernel.register(t,n,this),this}destroy(){this.destroyed||(this.destroyed=!0,this.kernel.destroy(),this.listeners.clear(),this.selectorSubscriptions.clear(),this.actions={})}addAction(t,n){return this.actions[t]=n,this}getActions(){return this.actions}checkNotDestroyed(){if(this.destroyed)throw new Error("Cannot use destroyed store")}notifyOrQueue(t,n){let o=Tt.isBatching();if(o){let a=Tt.managedStores;a.has(this)||a.add(this)}this.batchDepth>0||o?(this.queuedState=t,this.pendingNotify||(this.queuedPrevState=n),this.pendingNotify=!0):this.notify(t,n)}notify(t,n){this.kernel.emitStateChange(t,n);for(let o of this.listeners)try{o(t,n)}catch(a){this.kernel.emitError(a)}for(let o of this.selectorSubscriptions.values()){let a=o.selector(t);if(!o.equalityFn(a,o.value)){let s=o.value;o.value=a;for(let c of o.listeners)try{c(a,s)}catch(f){this.kernel.emitError(f)}}}}flushNotifications(){this.pendingNotify&&(this.notify(this.queuedState,this.queuedPrevState),this.pendingNotify=!1,this.queuedState=null,this.queuedPrevState=null)}beginBatch(){this.batchDepth++}endBatch(){this.batchDepth--,this.batchDepth===0&&this.flushNotifications()}},gt=class{store;constructor(t,n){this.store=new Ie(t,n)}getState(){return this.store.getState()}setState(t){this.store.setState(t)}merge(t){this.store.merge(t)}reset(){this.store.reset()}subscribe(t,n,o){return n===void 0?this.store.subscribe(t):this.store.subscribe(t,n,o)}use(t,n){return this.store.use(t,n),this}destroy(){this.store.destroy()}action(t,n){return this.store.addAction(t,n),this[t]=(...o)=>{let a=this.getState(),s=n(a,...o);return s instanceof Promise?s.then(c=>(this.setState(c),c)):(this.setState(s),s)},this}addAction(t,n){return this.store.addAction(t,n),this}getActions(){return this.store.getActions()}beginBatch(){this.store.beginBatch()}endBatch(){this.store.endBatch()}flushNotifications(){this.store.flushNotifications()}}});var mn=ct(k=>{"use strict";var be=Symbol.for("react.element"),ba=Symbol.for("react.portal"),wa=Symbol.for("react.fragment"),Ea=Symbol.for("react.strict_mode"),xa=Symbol.for("react.profiler"),ka=Symbol.for("react.provider"),Ca=Symbol.for("react.context"),Oa=Symbol.for("react.forward_ref"),Pa=Symbol.for("react.suspense"),Ra=Symbol.for("react.memo"),_a=Symbol.for("react.lazy"),sn=Symbol.iterator;function Aa(e){return e===null||typeof e!="object"?null:(e=sn&&e[sn]||e["@@iterator"],typeof e=="function"?e:null)}var ln={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fn=Object.assign,dn={};function ce(e,t,n){this.props=e,this.context=t,this.refs=dn,this.updater=n||ln}ce.prototype.isReactComponent={};ce.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ce.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function pn(){}pn.prototype=ce.prototype;function vt(e,t,n){this.props=e,this.context=t,this.refs=dn,this.updater=n||ln}var bt=vt.prototype=new pn;bt.constructor=vt;fn(bt,ce.prototype);bt.isPureReactComponent=!0;var cn=Array.isArray,Sn=Object.prototype.hasOwnProperty,wt={current:null},yn={key:!0,ref:!0,__self:!0,__source:!0};function Tn(e,t,n){var o,a={},s=null,c=null;if(t!=null)for(o in t.ref!==void 0&&(c=t.ref),t.key!==void 0&&(s=""+t.key),t)Sn.call(t,o)&&!yn.hasOwnProperty(o)&&(a[o]=t[o]);var f=arguments.length-2;if(f===1)a.children=n;else if(1<f){for(var u=Array(f),d=0;d<f;d++)u[d]=arguments[d+2];a.children=u}if(e&&e.defaultProps)for(o in f=e.defaultProps,f)a[o]===void 0&&(a[o]=f[o]);return{$$typeof:be,type:e,key:s,ref:c,props:a,_owner:wt.current}}function ja(e,t){return{$$typeof:be,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Et(e){return typeof e=="object"&&e!==null&&e.$$typeof===be}function Fa(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var un=/\/+/g;function ht(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Fa(""+e.key):t.toString(36)}function Le(e,t,n,o,a){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case be:case ba:c=!0}}if(c)return c=e,a=a(c),e=o===""?"."+ht(c,0):o,cn(a)?(n="",e!=null&&(n=e.replace(un,"$&/")+"/"),Le(a,t,n,"",function(d){return d})):a!=null&&(Et(a)&&(a=ja(a,n+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(un,"$&/")+"/")+e)),t.push(a)),1;if(c=0,o=o===""?".":o+":",cn(e))for(var f=0;f<e.length;f++){s=e[f];var u=o+ht(s,f);c+=Le(s,t,n,u,a)}else if(u=Aa(e),typeof u=="function")for(e=u.call(e),f=0;!(s=e.next()).done;)s=s.value,u=o+ht(s,f++),c+=Le(s,t,n,u,a);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return c}function Ve(e,t,n){if(e==null)return e;var o=[],a=0;return Le(e,o,"","",function(s){return t.call(n,s,a++)}),o}function Da(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var H={current:null},$e={transition:null},Ma={ReactCurrentDispatcher:H,ReactCurrentBatchConfig:$e,ReactCurrentOwner:wt};function gn(){throw Error("act(...) is not supported in production builds of React.")}k.Children={map:Ve,forEach:function(e,t,n){Ve(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ve(e,function(){t++}),t},toArray:function(e){return Ve(e,function(t){return t})||[]},only:function(e){if(!Et(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};k.Component=ce;k.Fragment=wa;k.Profiler=xa;k.PureComponent=vt;k.StrictMode=Ea;k.Suspense=Pa;k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ma;k.act=gn;k.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=fn({},e.props),a=e.key,s=e.ref,c=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,c=wt.current),t.key!==void 0&&(a=""+t.key),e.type&&e.type.defaultProps)var f=e.type.defaultProps;for(u in t)Sn.call(t,u)&&!yn.hasOwnProperty(u)&&(o[u]=t[u]===void 0&&f!==void 0?f[u]:t[u])}var u=arguments.length-2;if(u===1)o.children=n;else if(1<u){f=Array(u);for(var d=0;d<u;d++)f[d]=arguments[d+2];o.children=f}return{$$typeof:be,type:e.type,key:a,ref:s,props:o,_owner:c}};k.createContext=function(e){return e={$$typeof:Ca,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:ka,_context:e},e.Consumer=e};k.createElement=Tn;k.createFactory=function(e){var t=Tn.bind(null,e);return t.type=e,t};k.createRef=function(){return{current:null}};k.forwardRef=function(e){return{$$typeof:Oa,render:e}};k.isValidElement=Et;k.lazy=function(e){return{$$typeof:_a,_payload:{_status:-1,_result:e},_init:Da}};k.memo=function(e,t){return{$$typeof:Ra,type:e,compare:t===void 0?null:t}};k.startTransition=function(e){var t=$e.transition;$e.transition={};try{e()}finally{$e.transition=t}};k.unstable_act=gn;k.useCallback=function(e,t){return H.current.useCallback(e,t)};k.useContext=function(e){return H.current.useContext(e)};k.useDebugValue=function(){};k.useDeferredValue=function(e){return H.current.useDeferredValue(e)};k.useEffect=function(e,t){return H.current.useEffect(e,t)};k.useId=function(){return H.current.useId()};k.useImperativeHandle=function(e,t,n){return H.current.useImperativeHandle(e,t,n)};k.useInsertionEffect=function(e,t){return H.current.useInsertionEffect(e,t)};k.useLayoutEffect=function(e,t){return H.current.useLayoutEffect(e,t)};k.useMemo=function(e,t){return H.current.useMemo(e,t)};k.useReducer=function(e,t,n){return H.current.useReducer(e,t,n)};k.useRef=function(e){return H.current.useRef(e)};k.useState=function(e){return H.current.useState(e)};k.useSyncExternalStore=function(e,t,n){return H.current.useSyncExternalStore(e,t,n)};k.useTransition=function(){return H.current.useTransition()};k.version="18.3.1"});var hn=ct((C,Ne)=>{"use strict";process.env.NODE_ENV!=="production"&&(function(){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e="18.3.1",t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),h=Symbol.iterator,R="@@iterator";function O(r){if(r===null||typeof r!="object")return null;var i=h&&r[h]||r[R];return typeof i=="function"?i:null}var D={current:null},M={transition:null},A={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},w={current:null},x={},P=null;function U(r){P=r}x.setExtraStackFrame=function(r){P=r},x.getCurrentStack=null,x.getStackAddendum=function(){var r="";P&&(r+=P);var i=x.getCurrentStack;return i&&(r+=i()||""),r};var q=!1,ue=!1,Qn=!1,eo=!1,to=!1,ee={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:M,ReactCurrentOwner:w};ee.ReactDebugCurrentFrame=x,ee.ReactCurrentActQueue=A;function te(r){{for(var i=arguments.length,l=new Array(i>1?i-1:0),p=1;p<i;p++)l[p-1]=arguments[p];rr("warn",r,l)}}function j(r){{for(var i=arguments.length,l=new Array(i>1?i-1:0),p=1;p<i;p++)l[p-1]=arguments[p];rr("error",r,l)}}function rr(r,i,l){{var p=ee.ReactDebugCurrentFrame,y=p.getStackAddendum();y!==""&&(i+="%s",l=l.concat([y]));var b=l.map(function(m){return String(m)});b.unshift("Warning: "+i),Function.prototype.apply.call(console[r],console,b)}}var nr={};function Ke(r,i){{var l=r.constructor,p=l&&(l.displayName||l.name)||"ReactClass",y=p+"."+i;if(nr[y])return;j("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.",i,p),nr[y]=!0}}var or={isMounted:function(r){return!1},enqueueForceUpdate:function(r,i,l){Ke(r,"forceUpdate")},enqueueReplaceState:function(r,i,l,p){Ke(r,"replaceState")},enqueueSetState:function(r,i,l,p){Ke(r,"setState")}},Y=Object.assign,ze={};Object.freeze(ze);function Q(r,i,l){this.props=r,this.context=i,this.refs=ze,this.updater=l||or}Q.prototype.isReactComponent={},Q.prototype.setState=function(r,i){if(typeof r!="object"&&typeof r!="function"&&r!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,r,i,"setState")},Q.prototype.forceUpdate=function(r){this.updater.enqueueForceUpdate(this,r,"forceUpdate")};{var He={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)."]},ro=function(r,i){Object.defineProperty(Q.prototype,r,{get:function(){te("%s(...) is deprecated in plain JavaScript React classes. %s",i[0],i[1])}})};for(var We in He)He.hasOwnProperty(We)&&ro(We,He[We])}function ar(){}ar.prototype=Q.prototype;function Ge(r,i,l){this.props=r,this.context=i,this.refs=ze,this.updater=l||or}var Ye=Ge.prototype=new ar;Ye.constructor=Ge,Y(Ye,Q.prototype),Ye.isPureReactComponent=!0;function no(){var r={current:null};return Object.seal(r),r}var oo=Array.isArray;function xe(r){return oo(r)}function ao(r){{var i=typeof Symbol=="function"&&Symbol.toStringTag,l=i&&r[Symbol.toStringTag]||r.constructor.name||"Object";return l}}function io(r){try{return ir(r),!1}catch{return!0}}function ir(r){return""+r}function ke(r){if(io(r))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ao(r)),ir(r)}function so(r,i,l){var p=r.displayName;if(p)return p;var y=i.displayName||i.name||"";return y!==""?l+"("+y+")":l}function sr(r){return r.displayName||"Context"}function J(r){if(r==null)return null;if(typeof r.tag=="number"&&j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case o:return"Fragment";case n:return"Portal";case s:return"Profiler";case a:return"StrictMode";case d:return"Suspense";case S:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case f:var i=r;return sr(i)+".Consumer";case c:var l=r;return sr(l._context)+".Provider";case u:return so(r,r.render,"ForwardRef");case T:var p=r.displayName||null;return p!==null?p:J(r.type)||"Memo";case g:{var y=r,b=y._payload,m=y._init;try{return J(m(b))}catch{return null}}}return null}var le=Object.prototype.hasOwnProperty,cr={key:!0,ref:!0,__self:!0,__source:!0},ur,lr,Ze;Ze={};function fr(r){if(le.call(r,"ref")){var i=Object.getOwnPropertyDescriptor(r,"ref").get;if(i&&i.isReactWarning)return!1}return r.ref!==void 0}function dr(r){if(le.call(r,"key")){var i=Object.getOwnPropertyDescriptor(r,"key").get;if(i&&i.isReactWarning)return!1}return r.key!==void 0}function co(r,i){var l=function(){ur||(ur=!0,j("%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://reactjs.org/link/special-props)",i))};l.isReactWarning=!0,Object.defineProperty(r,"key",{get:l,configurable:!0})}function uo(r,i){var l=function(){lr||(lr=!0,j("%s: `ref` 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://reactjs.org/link/special-props)",i))};l.isReactWarning=!0,Object.defineProperty(r,"ref",{get:l,configurable:!0})}function lo(r){if(typeof r.ref=="string"&&w.current&&r.__self&&w.current.stateNode!==r.__self){var i=J(w.current.type);Ze[i]||(j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',i,r.ref),Ze[i]=!0)}}var Je=function(r,i,l,p,y,b,m){var E={$$typeof:t,type:r,key:i,ref:l,props:m,_owner:b};return E._store={},Object.defineProperty(E._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(E,"_self",{configurable:!1,enumerable:!1,writable:!1,value:p}),Object.defineProperty(E,"_source",{configurable:!1,enumerable:!1,writable:!1,value:y}),Object.freeze&&(Object.freeze(E.props),Object.freeze(E)),E};function fo(r,i,l){var p,y={},b=null,m=null,E=null,_=null;if(i!=null){fr(i)&&(m=i.ref,lo(i)),dr(i)&&(ke(i.key),b=""+i.key),E=i.__self===void 0?null:i.__self,_=i.__source===void 0?null:i.__source;for(p in i)le.call(i,p)&&!cr.hasOwnProperty(p)&&(y[p]=i[p])}var F=arguments.length-2;if(F===1)y.children=l;else if(F>1){for(var V=Array(F),L=0;L<F;L++)V[L]=arguments[L+2];Object.freeze&&Object.freeze(V),y.children=V}if(r&&r.defaultProps){var $=r.defaultProps;for(p in $)y[p]===void 0&&(y[p]=$[p])}if(b||m){var B=typeof r=="function"?r.displayName||r.name||"Unknown":r;b&&co(y,B),m&&uo(y,B)}return Je(r,b,m,E,_,w.current,y)}function po(r,i){var l=Je(r.type,i,r.ref,r._self,r._source,r._owner,r.props);return l}function So(r,i,l){if(r==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+r+".");var p,y=Y({},r.props),b=r.key,m=r.ref,E=r._self,_=r._source,F=r._owner;if(i!=null){fr(i)&&(m=i.ref,F=w.current),dr(i)&&(ke(i.key),b=""+i.key);var V;r.type&&r.type.defaultProps&&(V=r.type.defaultProps);for(p in i)le.call(i,p)&&!cr.hasOwnProperty(p)&&(i[p]===void 0&&V!==void 0?y[p]=V[p]:y[p]=i[p])}var L=arguments.length-2;if(L===1)y.children=l;else if(L>1){for(var $=Array(L),B=0;B<L;B++)$[B]=arguments[B+2];y.children=$}return Je(r.type,b,m,E,_,F,y)}function re(r){return typeof r=="object"&&r!==null&&r.$$typeof===t}var pr=".",yo=":";function To(r){var i=/[=:]/g,l={"=":"=0",":":"=2"},p=r.replace(i,function(y){return l[y]});return"$"+p}var Sr=!1,go=/\/+/g;function yr(r){return r.replace(go,"$&/")}function Xe(r,i){return typeof r=="object"&&r!==null&&r.key!=null?(ke(r.key),To(""+r.key)):i.toString(36)}function Ce(r,i,l,p,y){var b=typeof r;(b==="undefined"||b==="boolean")&&(r=null);var m=!1;if(r===null)m=!0;else switch(b){case"string":case"number":m=!0;break;case"object":switch(r.$$typeof){case t:case n:m=!0}}if(m){var E=r,_=y(E),F=p===""?pr+Xe(E,0):p;if(xe(_)){var V="";F!=null&&(V=yr(F)+"/"),Ce(_,i,V,"",function(ua){return ua})}else _!=null&&(re(_)&&(_.key&&(!E||E.key!==_.key)&&ke(_.key),_=po(_,l+(_.key&&(!E||E.key!==_.key)?yr(""+_.key)+"/":"")+F)),i.push(_));return 1}var L,$,B=0,K=p===""?pr:p+yo;if(xe(r))for(var De=0;De<r.length;De++)L=r[De],$=K+Xe(L,De),B+=Ce(L,i,l,$,y);else{var st=O(r);if(typeof st=="function"){var Nr=r;st===Nr.entries&&(Sr||te("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Sr=!0);for(var sa=st.call(Nr),Ur,ca=0;!(Ur=sa.next()).done;)L=Ur.value,$=K+Xe(L,ca++),B+=Ce(L,i,l,$,y)}else if(b==="object"){var qr=String(r);throw new Error("Objects are not valid as a React child (found: "+(qr==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":qr)+"). If you meant to render a collection of children, use an array instead.")}}return B}function Oe(r,i,l){if(r==null)return r;var p=[],y=0;return Ce(r,p,"","",function(b){return i.call(l,b,y++)}),p}function mo(r){var i=0;return Oe(r,function(){i++}),i}function ho(r,i,l){Oe(r,function(){i.apply(this,arguments)},l)}function vo(r){return Oe(r,function(i){return i})||[]}function bo(r){if(!re(r))throw new Error("React.Children.only expected to receive a single React element child.");return r}function wo(r){var i={$$typeof:f,_currentValue:r,_currentValue2:r,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};i.Provider={$$typeof:c,_context:i};var l=!1,p=!1,y=!1;{var b={$$typeof:f,_context:i};Object.defineProperties(b,{Provider:{get:function(){return p||(p=!0,j("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),i.Provider},set:function(m){i.Provider=m}},_currentValue:{get:function(){return i._currentValue},set:function(m){i._currentValue=m}},_currentValue2:{get:function(){return i._currentValue2},set:function(m){i._currentValue2=m}},_threadCount:{get:function(){return i._threadCount},set:function(m){i._threadCount=m}},Consumer:{get:function(){return l||(l=!0,j("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),i.Consumer}},displayName:{get:function(){return i.displayName},set:function(m){y||(te("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",m),y=!0)}}}),i.Consumer=b}return i._currentRenderer=null,i._currentRenderer2=null,i}var fe=-1,Qe=0,Tr=1,Eo=2;function xo(r){if(r._status===fe){var i=r._result,l=i();if(l.then(function(b){if(r._status===Qe||r._status===fe){var m=r;m._status=Tr,m._result=b}},function(b){if(r._status===Qe||r._status===fe){var m=r;m._status=Eo,m._result=b}}),r._status===fe){var p=r;p._status=Qe,p._result=l}}if(r._status===Tr){var y=r._result;return y===void 0&&j(`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'))
|
|
5
5
|
|
|
6
|
-
Did you accidentally put curly braces around the import?`,
|
|
6
|
+
Did you accidentally put curly braces around the import?`,y),"default"in y||j(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
7
7
|
|
|
8
8
|
Your code should look like:
|
|
9
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,
|
|
9
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,y),y.default}else throw r._result}function ko(r){var i={_status:fe,_result:r},l={$$typeof:g,_payload:i,_init:xo};{var p,y;Object.defineProperties(l,{defaultProps:{configurable:!0,get:function(){return p},set:function(b){j("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),p=b,Object.defineProperty(l,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return y},set:function(b){j("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),y=b,Object.defineProperty(l,"propTypes",{enumerable:!0})}}})}return l}function Co(r){r!=null&&r.$$typeof===T?j("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof r!="function"?j("forwardRef requires a render function but was given %s.",r===null?"null":typeof r):r.length!==0&&r.length!==2&&j("forwardRef render functions accept exactly two parameters: props and ref. %s",r.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),r!=null&&(r.defaultProps!=null||r.propTypes!=null)&&j("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var i={$$typeof:u,render:r};{var l;Object.defineProperty(i,"displayName",{enumerable:!1,configurable:!0,get:function(){return l},set:function(p){l=p,!r.name&&!r.displayName&&(r.displayName=p)}})}return i}var gr;gr=Symbol.for("react.module.reference");function mr(r){return!!(typeof r=="string"||typeof r=="function"||r===o||r===s||to||r===a||r===d||r===S||eo||r===v||q||ue||Qn||typeof r=="object"&&r!==null&&(r.$$typeof===g||r.$$typeof===T||r.$$typeof===c||r.$$typeof===f||r.$$typeof===u||r.$$typeof===gr||r.getModuleId!==void 0))}function Oo(r,i){mr(r)||j("memo: The first argument must be a component. Instead received: %s",r===null?"null":typeof r);var l={$$typeof:T,type:r,compare:i===void 0?null:i};{var p;Object.defineProperty(l,"displayName",{enumerable:!1,configurable:!0,get:function(){return p},set:function(y){p=y,!r.name&&!r.displayName&&(r.displayName=y)}})}return l}function z(){var r=D.current;return r===null&&j(`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:
|
|
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://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),
|
|
14
|
-
|
|
15
|
-
`),
|
|
16
|
-
`),
|
|
17
|
-
`+
|
|
13
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),r}function Po(r){var i=z();if(r._context!==void 0){var l=r._context;l.Consumer===r?j("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):l.Provider===r&&j("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return i.useContext(r)}function Ro(r){var i=z();return i.useState(r)}function _o(r,i,l){var p=z();return p.useReducer(r,i,l)}function Ao(r){var i=z();return i.useRef(r)}function jo(r,i){var l=z();return l.useEffect(r,i)}function Fo(r,i){var l=z();return l.useInsertionEffect(r,i)}function Do(r,i){var l=z();return l.useLayoutEffect(r,i)}function Mo(r,i){var l=z();return l.useCallback(r,i)}function Io(r,i){var l=z();return l.useMemo(r,i)}function Vo(r,i,l){var p=z();return p.useImperativeHandle(r,i,l)}function Lo(r,i){{var l=z();return l.useDebugValue(r,i)}}function $o(){var r=z();return r.useTransition()}function No(r){var i=z();return i.useDeferredValue(r)}function Uo(){var r=z();return r.useId()}function qo(r,i,l){var p=z();return p.useSyncExternalStore(r,i,l)}var de=0,hr,vr,br,wr,Er,xr,kr;function Cr(){}Cr.__reactDisabledLog=!0;function Bo(){{if(de===0){hr=console.log,vr=console.info,br=console.warn,wr=console.error,Er=console.group,xr=console.groupCollapsed,kr=console.groupEnd;var r={configurable:!0,enumerable:!0,value:Cr,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}de++}}function Ko(){{if(de--,de===0){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Y({},r,{value:hr}),info:Y({},r,{value:vr}),warn:Y({},r,{value:br}),error:Y({},r,{value:wr}),group:Y({},r,{value:Er}),groupCollapsed:Y({},r,{value:xr}),groupEnd:Y({},r,{value:kr})})}de<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var et=ee.ReactCurrentDispatcher,tt;function Pe(r,i,l){{if(tt===void 0)try{throw Error()}catch(y){var p=y.stack.trim().match(/\n( *(at )?)/);tt=p&&p[1]||""}return`
|
|
14
|
+
`+tt+r}}var rt=!1,Re;{var zo=typeof WeakMap=="function"?WeakMap:Map;Re=new zo}function Or(r,i){if(!r||rt)return"";{var l=Re.get(r);if(l!==void 0)return l}var p;rt=!0;var y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var b;b=et.current,et.current=null,Bo();try{if(i){var m=function(){throw Error()};if(Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(K){p=K}Reflect.construct(r,[],m)}else{try{m.call()}catch(K){p=K}r.call(m.prototype)}}else{try{throw Error()}catch(K){p=K}r()}}catch(K){if(K&&p&&typeof K.stack=="string"){for(var E=K.stack.split(`
|
|
15
|
+
`),_=p.stack.split(`
|
|
16
|
+
`),F=E.length-1,V=_.length-1;F>=1&&V>=0&&E[F]!==_[V];)V--;for(;F>=1&&V>=0;F--,V--)if(E[F]!==_[V]){if(F!==1||V!==1)do if(F--,V--,V<0||E[F]!==_[V]){var L=`
|
|
17
|
+
`+E[F].replace(" at new "," at ");return r.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",r.displayName)),typeof r=="function"&&Re.set(r,L),L}while(F>=1&&V>=0);break}}}finally{rt=!1,et.current=b,Ko(),Error.prepareStackTrace=y}var $=r?r.displayName||r.name:"",B=$?Pe($):"";return typeof r=="function"&&Re.set(r,B),B}function Ho(r,i,l){return Or(r,!1)}function Wo(r){var i=r.prototype;return!!(i&&i.isReactComponent)}function _e(r,i,l){if(r==null)return"";if(typeof r=="function")return Or(r,Wo(r));if(typeof r=="string")return Pe(r);switch(r){case d:return Pe("Suspense");case S:return Pe("SuspenseList")}if(typeof r=="object")switch(r.$$typeof){case u:return Ho(r.render);case T:return _e(r.type,i,l);case g:{var p=r,y=p._payload,b=p._init;try{return _e(b(y),i,l)}catch{}}}return""}var Pr={},Rr=ee.ReactDebugCurrentFrame;function Ae(r){if(r){var i=r._owner,l=_e(r.type,r._source,i?i.type:null);Rr.setExtraStackFrame(l)}else Rr.setExtraStackFrame(null)}function Go(r,i,l,p,y){{var b=Function.call.bind(le);for(var m in r)if(b(r,m)){var E=void 0;try{if(typeof r[m]!="function"){var _=Error((p||"React class")+": "+l+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _.name="Invariant Violation",_}E=r[m](i,m,p,l,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(F){E=F}E&&!(E instanceof Error)&&(Ae(y),j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",p||"React class",l,m,typeof E),Ae(null)),E instanceof Error&&!(E.message in Pr)&&(Pr[E.message]=!0,Ae(y),j("Failed %s type: %s",l,E.message),Ae(null))}}}function ne(r){if(r){var i=r._owner,l=_e(r.type,r._source,i?i.type:null);U(l)}else U(null)}var nt;nt=!1;function _r(){if(w.current){var r=J(w.current.type);if(r)return`
|
|
18
18
|
|
|
19
|
-
Check the render method of \``+
|
|
19
|
+
Check the render method of \``+r+"`."}return""}function Yo(r){if(r!==void 0){var i=r.fileName.replace(/^.*[\\\/]/,""),l=r.lineNumber;return`
|
|
20
20
|
|
|
21
|
-
Check your code at `+
|
|
21
|
+
Check your code at `+i+":"+l+"."}return""}function Zo(r){return r!=null?Yo(r.__source):""}var Ar={};function Jo(r){var i=_r();if(!i){var l=typeof r=="string"?r:r.displayName||r.name;l&&(i=`
|
|
22
22
|
|
|
23
|
-
Check the top-level render call using <`+i+">.")}return n}function Zt(e,n){if(!(!e._store||e._store.validated||e.key!=null)){e._store.validated=!0;var i=Ln(n);if(!Qt[i]){Qt[i]=!0;var u="";e&&e._owner&&e._owner!==L.current&&(u=" It was passed a child from "+B(e._owner.type)+"."),W(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',i,u),W(null)}}}function er(e,n){if(typeof e=="object"){if(le(e))for(var i=0;i<e.length;i++){var u=e[i];H(u)&&Zt(u,n)}else if(H(e))e._store&&(e._store.validated=!0);else if(e){var l=Tt(e);if(typeof l=="function"&&l!==e.entries)for(var S=l.call(e),p;!(p=S.next()).done;)H(p.value)&&Zt(p.value,n)}}}function tr(e){{var n=e.type;if(n==null||typeof n=="string")return;var i;if(typeof n=="function")i=n.propTypes;else if(typeof n=="object"&&(n.$$typeof===f||n.$$typeof===C))i=n.propTypes;else return;if(i){var u=B(n);jn(i,e.props,"prop",u,e)}else if(n.PropTypes!==void 0&&!Ve){Ve=!0;var l=B(n);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",l||"Unknown")}typeof n.getDefaultProps=="function"&&!n.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Mn(e){{for(var n=Object.keys(e.props),i=0;i<n.length;i++){var u=n[i];if(u!=="children"&&u!=="key"){W(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u),W(null);break}}e.ref!==null&&(W(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),W(null))}}function rr(e,n,i){var u=Ft(e);if(!u){var l="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(l+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var S=Nn(n);S?l+=S:l+=Jt();var p;e===null?p="null":le(e)?p="array":e!==void 0&&e.$$typeof===r?(p="<"+(B(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):p=typeof e,E("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",p,l)}var v=Xr.apply(this,arguments);if(v==null)return v;if(u)for(var T=2;T<arguments.length;T++)er(arguments[T],e);return e===a?Mn(v):tr(v),v}var nr=!1;function Bn(e){var n=rr.bind(null,e);return n.type=e,nr||(nr=!0,K("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(n,"type",{enumerable:!1,get:function(){return K("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),n}function Fn(e,n,i){for(var u=Qr.apply(this,arguments),l=2;l<arguments.length;l++)er(arguments[l],u.type);return tr(u),u}function $n(e,n){var i=V.transition;V.transition={};var u=V.transition;V.transition._updatedFibers=new Set;try{e()}finally{if(V.transition=i,i===null&&u._updatedFibers){var l=u._updatedFibers.size;l>10&&K("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._updatedFibers.clear()}}}var or=!1,ge=null;function Un(e){if(ge===null)try{var n=("require"+Math.random()).slice(0,7),i=Pe&&Pe[n];ge=i.call(Pe,"timers").setImmediate}catch{ge=function(l){or===!1&&(or=!0,typeof MessageChannel>"u"&&E("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 S=new MessageChannel;S.port1.onmessage=l,S.port2.postMessage(void 0)}}return ge(e)}var Y=0,ar=!1;function ir(e){{var n=Y;Y++,A.current===null&&(A.current=[]);var i=A.isBatchingLegacy,u;try{if(A.isBatchingLegacy=!0,u=e(),!i&&A.didScheduleLegacyUpdate){var l=A.current;l!==null&&(A.didScheduleLegacyUpdate=!1,He(l))}}catch(O){throw me(n),O}finally{A.isBatchingLegacy=i}if(u!==null&&typeof u=="object"&&typeof u.then=="function"){var S=u,p=!1,v={then:function(O,P){p=!0,S.then(function(x){me(n),Y===0?qe(x,O,P):O(x)},function(x){me(n),P(x)})}};return!ar&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){p||(ar=!0,E("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 () => ...);"))}),v}else{var T=u;if(me(n),Y===0){var _=A.current;_!==null&&(He(_),A.current=null);var w={then:function(O,P){A.current===null?(A.current=[],qe(T,O,P)):O(T)}};return w}else{var k={then:function(O,P){O(T)}};return k}}}}function me(e){e!==Y-1&&E("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Y=e}function qe(e,n,i){{var u=A.current;if(u!==null)try{He(u),Un(function(){u.length===0?(A.current=null,n(e)):qe(e,n,i)})}catch(l){i(l)}else n(e)}}var Ke=!1;function He(e){if(!Ke){Ke=!0;var n=0;try{for(;n<e.length;n++){var i=e[n];do i=i(!0);while(i!==null)}e.length=0}catch(u){throw e=e.slice(n+1),u}finally{Ke=!1}}}var Vn=rr,qn=Fn,Kn=Bn,Hn={map:pe,forEach:nn,count:rn,toArray:on,only:an};m.Children=Hn,m.Component=F,m.Fragment=a,m.Profiler=c,m.PureComponent=je,m.StrictMode=s,m.Suspense=h,m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q,m.act=ir,m.cloneElement=qn,m.createContext=sn,m.createElement=Vn,m.createFactory=Kn,m.createRef=Vr,m.forwardRef=fn,m.isValidElement=H,m.lazy=ln,m.memo=dn,m.startTransition=$n,m.unstable_act=ir,m.useCallback=Tn,m.useContext=pn,m.useDebugValue=_n,m.useDeferredValue=kn,m.useEffect=vn,m.useId=On,m.useImperativeHandle=En,m.useInsertionEffect=gn,m.useLayoutEffect=mn,m.useMemo=bn,m.useReducer=hn,m.useRef=Sn,m.useState=yn,m.useSyncExternalStore=Pn,m.useTransition=wn,m.version=t,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()});var Rr=Ye((oa,it)=>{"use strict";process.env.NODE_ENV==="production"?it.exports=Cr():it.exports=xr()});var Po={};eo(Po,{StoreError:()=>se,StoreErrorCode:()=>Ee,batch:()=>Sr,createStorage:()=>ct,createStore:()=>_e,deepClone:()=>N,deepEqual:()=>ee,deepMerge:()=>z,devtools:()=>lt,hasHistory:()=>dt,history:()=>ft,identity:()=>oe,immer:()=>vt,isFunction:()=>te,omit:()=>ne,persist:()=>ut,pick:()=>re,produce:()=>Ce,selector:()=>gt,sessionStorage:()=>st,shallowEqual:()=>$,sync:()=>pt,triggerSync:()=>yt,useAction:()=>jr,useCreateStore:()=>Dr,useStore:()=>Ar});function N(t,r){if(t===null||typeof t!="object")return t;if(t instanceof Date)return new Date(t.getTime());if(r||(r=new WeakMap),r.has(t))return r.get(t);if(r.set(t,t),Array.isArray(t)){let o=[];return r.set(t,o),t.forEach((a,s)=>{o[s]=N(a,r)}),o}if(t.constructor===Object){let o={};r.set(t,o);for(let a in t)Object.prototype.hasOwnProperty.call(t,a)&&(o[a]=N(t[a],r));return o}return t}function ee(t,r){if(Object.is(t,r))return!0;if(t===null||r===null||typeof t!="object"||typeof r!="object"||Array.isArray(t)!==Array.isArray(r))return!1;if(Array.isArray(t)){let s=r;if(t.length!==s.length)return!1;for(let c=0;c<t.length;c++)if(!ee(t[c],s[c]))return!1;return!0}let o=Object.keys(t),a=Object.keys(r);if(o.length!==a.length)return!1;for(let s of o)if(!Object.prototype.hasOwnProperty.call(r,s)||!ee(t[s],r[s]))return!1;return!0}function $(t,r){if(Object.is(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;let o=Object.keys(t),a=Object.keys(r);if(o.length!==a.length)return!1;for(let s of o)if(!a.includes(s)||!Object.is(t[s],r[s]))return!1;return!0}function z(t,r){if(r===null)return t;if(typeof r!="object")return r;let o=N(t);for(let a in r)if(Object.prototype.hasOwnProperty.call(r,a)){let s=r[a],c=o[a];if(s instanceof Date){o[a]=new Date(s.getTime());continue}s!==null&&typeof s=="object"&&!Array.isArray(s)&&!(s instanceof Date)&&c!==null&&typeof c=="object"&&!Array.isArray(c)&&!(c instanceof Date)?o[a]=z(c,s):o[a]=ze(s)}return o}function ze(t){if(t===null||typeof t!="object")return t;if(t instanceof Date)return new Date(t.getTime());if(Array.isArray(t))return t.map(r=>ze(r));if(t.constructor===Object){let r={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=ze(t[o]));return r}return t}function te(t){return typeof t=="function"}function re(t,r){let o={};for(let a of r)Object.prototype.hasOwnProperty.call(t,a)&&(o[a]=t[a]);return o}function ne(t,r){let o={...t};for(let a of r)delete o[a];return o}function oe(t){return t}var Ge=class{listeners=new Map;on(r,o){return this.listeners.has(r)||this.listeners.set(r,new Set),this.listeners.get(r).add(o),()=>{this.listeners.get(r)?.delete(o)}}emit(r,o){let a=this.listeners.get(r);if(a)for(let s of a)try{s(o)}catch(c){console.error(`Error in ${r} handler:`,c)}}destroy(){this.listeners.clear()}},Xe=class{plugins=new Map;eventBus=new Ge;config;errorHandlers=new Set;initializing=!1;constructor(r){this.config=r||{}}register(r,o,a){if(!r.name||!r.version||typeof r.install!="function")throw new Error("Invalid plugin: must have name, version, and install function");if(this.plugins.has(r.name))throw new Error(`Plugin '${r.name}' is already registered`);if(r.dependencies){for(let c of r.dependencies)if(!this.plugins.has(c))throw new Error(`Plugin '${r.name}' requires '${c}' to be registered first`)}let s={plugin:r,options:o};try{r.install(a,o)}catch(c){throw new Error(`Failed to install plugin '${r.name}': ${c}`)}this.plugins.set(r.name,s),!this.initializing&&r.onInit&&this.runOnInit(r,a)}async initializeAll(r){this.initializing=!0;let o=Array.from(this.plugins.values());for(let{plugin:a}of o)a.onInit&&await this.runOnInit(a,r);this.initializing=!1}async runOnInit(r,o){try{await r.onInit(o)}catch(a){console.error(`Error in ${r.name} onInit:`,a)}}async unregister(r){let o=this.plugins.get(r);if(o){if(o.plugin.onDestroy)try{await o.plugin.onDestroy()}catch(a){console.error(`Error in ${r} onDestroy:`,a)}this.plugins.delete(r)}}emitStateChange(r,o){this.eventBus.emit("stateChange",{state:r,prevState:o});for(let{plugin:a}of this.plugins.values())if(a.onStateChange)try{a.onStateChange(r,o)}catch(s){console.error(`Error in ${a.name} onStateChange:`,s)}}emitError(r){this.eventBus.emit("error",r);for(let{plugin:o}of this.plugins.values())if(o.onError)try{o.onError(r)}catch(a){console.error(`Error in ${o.name} onError:`,a)}for(let o of this.errorHandlers)try{o(r)}catch(a){console.error("Error in error handler:",a)}}onError(r){return this.errorHandlers.add(r),()=>{this.errorHandlers.delete(r)}}on(r,o){return this.eventBus.on(r,o)}async destroy(){let r=Array.from(this.plugins.keys());for(let o of r)await this.unregister(o);this.eventBus.destroy(),this.errorHandlers.clear()}};function fr(t){return new Xe(t)}var ae=0,Je=new Set,ie=new Set;function no(){return ae>0}function dr(){return ae}function oo(){return++ae}function pr(){return--ae}function yr(){return ie}function hr(){Je.clear(),ie.clear()}function ao(t){Je.add(t)}function io(t){ie.add(t)}function so(t){return ie.has(t)}var Qe={get depth(){return ae},get stores(){return Je},get managedStores(){return ie},isBatching:no,batch(t,r){let o=so(t);oo(),ao(t),!o&&"beginBatch"in t&&(t.beginBatch(),io(t));try{let a=r();if(pr(),dr()===0){for(let s of yr())"flushNotifications"in s&&s.flushNotifications(),"endBatch"in s&&s.endBatch();hr()}return a}catch(a){if(pr(),dr()===0){for(let s of yr())"endBatch"in s&&s.endBatch();hr()}throw a}}};var Ee=(c=>(c.STORE_DESTROYED="STORE_DESTROYED",c.PLUGIN_EXISTS="PLUGIN_EXISTS",c.PLUGIN_DEPENDENCY_MISSING="PLUGIN_DEPENDENCY_MISSING",c.INVALID_STATE_UPDATE="INVALID_STATE_UPDATE",c.ACTION_ERROR="ACTION_ERROR",c))(Ee||{}),se=class extends Error{constructor(o,a){super(a);this.code=o;this.name="StoreError"}};var Ze=class{state;initialState;listeners=new Set;selectorSubscriptions=new Map;kernel;destroyed=!1;batchDepth=0;pendingNotify=!1;queuedState=null;queuedPrevState=null;actions={};constructor(r,o){this.state=N(r),this.initialState=N(r),this.kernel=o,this.kernel.onError(a=>{console.error("Store error:",a)})}getState(){return this.checkNotDestroyed(),this.state}setState(r){this.checkNotDestroyed();let o=this.state,a=typeof r=="function"?r(this.state):r;this.state={...this.state,...a},this.notifyOrQueue(this.state,o)}merge(r){this.checkNotDestroyed();let o=this.state;this.state=z(this.state,r),this.notifyOrQueue(this.state,o)}reset(){this.checkNotDestroyed();let r=this.state;this.state=N(this.initialState),this.notifyOrQueue(this.state,r)}subscribe(r,o,a){if(this.checkNotDestroyed(),o===void 0&&typeof r=="function"){let f=r;return this.listeners.add(f),()=>{this.listeners.delete(f)}}let s=r,c=o,d=a||$,y=this.selectorSubscriptions.get(s);return y||(y={value:s(this.state),listeners:new Set,selector:s,equalityFn:d},this.selectorSubscriptions.set(s,y)),y.listeners.add(c),()=>{let f=this.selectorSubscriptions.get(s);f&&(f.listeners.delete(c),f.listeners.size===0&&this.selectorSubscriptions.delete(s))}}use(r,o){return this.checkNotDestroyed(),this.kernel.register(r,o,this),this}destroy(){this.destroyed||(this.destroyed=!0,this.kernel.destroy(),this.listeners.clear(),this.selectorSubscriptions.clear(),this.actions={})}addAction(r,o){return this.actions[r]=o,this}getActions(){return this.actions}checkNotDestroyed(){if(this.destroyed)throw new Error("Cannot use destroyed store")}notifyOrQueue(r,o){let a=Qe.isBatching();if(a){let s=Qe.managedStores;s.has(this)||s.add(this)}this.batchDepth>0||a?(this.queuedState=r,this.pendingNotify||(this.queuedPrevState=o),this.pendingNotify=!0):this.notify(r,o)}notify(r,o){this.kernel.emitStateChange(r,o);for(let a of this.listeners)try{a(r,o)}catch(s){this.kernel.emitError(s)}for(let a of this.selectorSubscriptions.values()){let s=a.selector(r);if(!a.equalityFn(s,a.value)){let c=a.value;a.value=s;for(let d of a.listeners)try{d(s,c)}catch(y){this.kernel.emitError(y)}}}}flushNotifications(){this.pendingNotify&&(this.notify(this.queuedState,this.queuedPrevState),this.pendingNotify=!1,this.queuedState=null,this.queuedPrevState=null)}beginBatch(){this.batchDepth++}endBatch(){this.batchDepth--,this.batchDepth===0&&this.flushNotifications()}},et=class{store;constructor(r,o){this.store=new Ze(r,o)}getState(){return this.store.getState()}setState(r){this.store.setState(r)}merge(r){this.store.merge(r)}reset(){this.store.reset()}subscribe(r,o,a){return o===void 0?this.store.subscribe(r):this.store.subscribe(r,o,a)}use(r,o){return this.store.use(r,o),this}destroy(){this.store.destroy()}action(r,o){return this.store.addAction(r,o),this[r]=(...a)=>{let s=this.getState(),c=o(s,...a);return c instanceof Promise?c.then(d=>(this.setState(d),d)):(this.setState(c),c)},this}addAction(r,o){return this.store.addAction(r,o),this}getActions(){return this.store.getActions()}beginBatch(){this.store.beginBatch()}endBatch(){this.store.endBatch()}flushNotifications(){this.store.flushNotifications()}};function _e(t,r){let o=fr({name:"store"}),a={...t},s={};for(let f in a)te(a[f])&&f.startsWith("$")&&(s[f.substring(1)]=a[f],delete a[f]);let c={...s,...r},d=new et(a,o);if(c)for(let[f,h]of Object.entries(c))d.addAction(f,h);let y=d.getActions();for(let[f,h]of Object.entries(y))d[f]=(...b)=>{let C=d.getState(),R=h(C,...b);return R instanceof Promise?R.then(U=>(d.setState(U),U)):(d.setState(R),R)};return o.initializeAll(d).catch(f=>{console.error("Error initializing plugins:",f)}),new Proxy(d,{get(f,h){if(h in f)return f[h];let b=f.store;if(b&&typeof b[h]=="function")return b[h].bind(b);if(b&&h in b)return b[h]},set(f,h,b){if(h in f||typeof b=="function")return f[h]=b,!0;let C=f.store;return C?(C[h]=b,!0):!1}})}function Sr(t){return t()}var I=to(Rr(),1);function Ar(t,r=oe,o=$){let a=(0,I.useRef)(r),s=(0,I.useRef)(o),c=(0,I.useRef)(t);a.current!==r&&(a.current=r),s.current!==o&&(s.current=o),c.current!==t&&(c.current=t);let d=()=>{let b=c.current.getState();return a.current(b)},h=(0,I.useSyncExternalStore)(b=>c.current.subscribe(R=>a.current(R),(R,U)=>{s.current(R,U)||b()},s.current),d,d);return(0,I.useDebugValue)(h),h}function Dr(t){let r=(0,I.useRef)();return r.current===void 0&&(r.current=_e(t)),(0,I.useEffect)(()=>()=>{r.current&&(r.current.destroy(),r.current=void 0)},[]),r.current}function jr(t,r){let o=(0,I.useRef)(t);o.current!==t&&(o.current=t);let a=o.current[r],s=(0,I.useRef)(a);return s.current!==a&&(s.current=a),s.current}var wo={getItem:t=>{if(typeof window>"u")return null;try{return window.localStorage.getItem(t)}catch{return null}},setItem:(t,r)=>{if(!(typeof window>"u"))try{window.localStorage.setItem(t,r)}catch{}},removeItem:()=>{}},st={getItem:t=>{if(typeof window>"u")return null;try{return window.sessionStorage.getItem(t)}catch{return null}},setItem:(t,r)=>{if(!(typeof window>"u"))try{window.sessionStorage.setItem(t,r)}catch{}},removeItem:t=>{if(!(typeof window>"u"))try{window.sessionStorage.removeItem(t)}catch{}}};function ut(t){let{key:r,storage:o=wo,whitelist:a,blacklist:s}=t;return{name:"persist",version:"1.0.0",install(c){try{let d=o.getItem(r);if(d){let y=JSON.parse(d);c.merge(y)}}catch(d){console.error(`Failed to hydrate state from '${r}':`,d)}c.subscribe(d=>{try{let y=d;a?y=re(d,a):s&&(y=ne(d,s)),o.setItem(r,JSON.stringify(y))}catch(y){console.error(`Failed to persist state to '${r}':`,y)}})},onDestroy(){}}}function ct(t){return t}function ko(){return typeof window<"u"&&!!window.__REDUX_DEVTOOLS_EXTENSION__}function Oo(){return typeof window>"u"?null:window.__REDUX_DEVTOOLS_EXTENSION__||null}function lt(t={}){let{name:r="OxogState Store",enabled:o=!0,maxAge:a=50}=t,s=null,c=[];return{name:"devtools",version:"1.0.0",install(d){if(!o||!ko())return;let y=Oo();y&&(s=y.connect({name:r}),s.init(d.getState()),d.subscribe((f,h)=>{s&&(c.push({state:f,action:"UPDATE"}),c.length>a&&c.shift(),s.send({type:"UPDATE",prev:h},f))}),s.subscribe(f=>{if(f.type==="DISPATCH"&&f.payload)switch(f.payload.type){case"JUMP_TO_STATE":case"JUMP_TO_ACTION":{let h=f.payload.type==="JUMP_TO_ACTION"?c.findIndex(b=>b.action===f.payload.action):f.payload.index;if(h>=0&&h<c.length){let b=c[h];b&&d.setState(b.state)}break}case"COMMIT":{s.init(d.getState()),c=[];break}case"ROLLBACK":{if(c.length>1){let h=c[c.length-2];h&&d.setState(h.state)}break}case"RESET":{d.reset();break}}}))},onDestroy(){s=null,c=[]}}}function ft(t={}){let{limit:r=50,keys:o}=t,a=null,s=null,c=!1;return{name:"history",version:"1.0.0",install(d){s=d,a={past:[],present:d.getState(),future:[]},d.subscribe(y=>{if(!a||c)return;let f=a.present,h=y,b=!0;o&&o.length>0?b=o.some(C=>f[C]!==h[C]):b=f!==h,b&&(a.past.push(f),a.past.length>r&&a.past.shift(),a.present=h,a.future=[])}),d.undo=()=>{if(!a||a.past.length===0)return;let y=a.past.pop();a.future.push(a.present),a.present=y,c=!0,d.setState(y),c=!1},d.redo=()=>{if(!a||a.future.length===0)return;let y=a.future.pop();a.past.push(a.present),a.present=y,c=!0,d.setState(y),c=!1},d.clearHistory=()=>{a&&(a.past=[],a.future=[])},d.canUndo=()=>a!==null&&a.past.length>0,d.canRedo=()=>a!==null&&a.future.length>0},onDestroy(){a=null,s=null}}}function dt(t){return typeof t.undo=="function"&&typeof t.redo=="function"}function pt(t={}){let{channel:r="oxog-state"}=t,o=null,a=null,s=!1;return{name:"sync",version:"1.0.0",install(c){if(a=c,typeof BroadcastChannel>"u"){console.warn("BroadcastChannel is not supported in this environment");return}o=new BroadcastChannel(r),o.onmessage=d=>{if(!s)try{c.setState(d.data)}catch(y){console.error("Error applying sync state:",y)}}},onInit(){if(o&&a){s=!0;try{o.postMessage(a.getState())}catch(c){console.error("Error broadcasting initial state:",c)}s=!1}},onDestroy(){o&&(o.close(),o=null),a=null}}}function yt(t,r="oxog-state"){if(typeof BroadcastChannel>"u"){console.warn("BroadcastChannel is not supported in this environment");return}let o=new BroadcastChannel(r);o.postMessage(t.getState()),o.close()}function ht(t,r){return new Proxy(t||{},{get(o,a){let s=o[a];return s!==null&&typeof s=="object"&&!Array.isArray(s)?r.has(s)?ht(r.get(s),r):ht(s,r):s},set(o,a,s){r.has(o)||r.set(o,{...o});let c=r.get(o);return c[a]=s,!0},deleteProperty(o,a){r.has(o)||r.set(o,{...o});let s=r.get(o);return delete s[a],!0}})}function Ir(t,r){if(!r.has(t))return St(t);let o=r.get(t);for(let a in o)if(Object.prototype.hasOwnProperty.call(o,a)){let s=o[a];s!==null&&typeof s=="object"&&!Array.isArray(s)&&(o[a]=Ir(s,r))}return o}function St(t){if(t===null||typeof t!="object")return t;if(Array.isArray(t))return t.map(o=>St(o));let r={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=St(t[o]));return r}function Ce(t,r){let o=new Map,a=ht(t,o);return r(a),Ir(t,o)}function vt(){return{name:"immer",version:"1.0.0",install(t){let r=t.setState.bind(t);t.setState=o=>{if(typeof o=="function"){let a=Ce(t.getState(),o);r(a)}else r(o)}}}}function gt(t){let{selectors:r}=t;return{name:"selector",version:"1.0.0",install(o){let a=o.getState.bind(o),s=new Map,c=new Proxy({},{get(d,y){let f=r[y];if(f){let h=a(),b=y,C=s.get(b);if(C&&C.state===h)return C.value;let R=f(h);return s.set(b,{value:R,state:h}),R}return a()[y]}});o.getState=()=>c,o.subscribe(()=>{s.clear()})}}}return ro(Po);})();
|
|
23
|
+
Check the top-level render call using <`+l+">.")}return i}function jr(r,i){if(!(!r._store||r._store.validated||r.key!=null)){r._store.validated=!0;var l=Jo(i);if(!Ar[l]){Ar[l]=!0;var p="";r&&r._owner&&r._owner!==w.current&&(p=" It was passed a child from "+J(r._owner.type)+"."),ne(r),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',l,p),ne(null)}}}function Fr(r,i){if(typeof r=="object"){if(xe(r))for(var l=0;l<r.length;l++){var p=r[l];re(p)&&jr(p,i)}else if(re(r))r._store&&(r._store.validated=!0);else if(r){var y=O(r);if(typeof y=="function"&&y!==r.entries)for(var b=y.call(r),m;!(m=b.next()).done;)re(m.value)&&jr(m.value,i)}}}function Dr(r){{var i=r.type;if(i==null||typeof i=="string")return;var l;if(typeof i=="function")l=i.propTypes;else if(typeof i=="object"&&(i.$$typeof===u||i.$$typeof===T))l=i.propTypes;else return;if(l){var p=J(i);Go(l,r.props,"prop",p,r)}else if(i.PropTypes!==void 0&&!nt){nt=!0;var y=J(i);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",y||"Unknown")}typeof i.getDefaultProps=="function"&&!i.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Xo(r){{for(var i=Object.keys(r.props),l=0;l<i.length;l++){var p=i[l];if(p!=="children"&&p!=="key"){ne(r),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",p),ne(null);break}}r.ref!==null&&(ne(r),j("Invalid attribute `ref` supplied to `React.Fragment`."),ne(null))}}function Mr(r,i,l){var p=mr(r);if(!p){var y="";(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(y+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var b=Zo(i);b?y+=b:y+=_r();var m;r===null?m="null":xe(r)?m="array":r!==void 0&&r.$$typeof===t?(m="<"+(J(r.type)||"Unknown")+" />",y=" Did you accidentally export a JSX literal instead of a component?"):m=typeof r,j("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",m,y)}var E=fo.apply(this,arguments);if(E==null)return E;if(p)for(var _=2;_<arguments.length;_++)Fr(arguments[_],r);return r===o?Xo(E):Dr(E),E}var Ir=!1;function Qo(r){var i=Mr.bind(null,r);return i.type=r,Ir||(Ir=!0,te("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(i,"type",{enumerable:!1,get:function(){return te("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:r}),r}}),i}function ea(r,i,l){for(var p=So.apply(this,arguments),y=2;y<arguments.length;y++)Fr(arguments[y],p.type);return Dr(p),p}function ta(r,i){var l=M.transition;M.transition={};var p=M.transition;M.transition._updatedFibers=new Set;try{r()}finally{if(M.transition=l,l===null&&p._updatedFibers){var y=p._updatedFibers.size;y>10&&te("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."),p._updatedFibers.clear()}}}var Vr=!1,je=null;function ra(r){if(je===null)try{var i=("require"+Math.random()).slice(0,7),l=Ne&&Ne[i];je=l.call(Ne,"timers").setImmediate}catch{je=function(y){Vr===!1&&(Vr=!0,typeof MessageChannel>"u"&&j("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 b=new MessageChannel;b.port1.onmessage=y,b.port2.postMessage(void 0)}}return je(r)}var oe=0,Lr=!1;function $r(r){{var i=oe;oe++,A.current===null&&(A.current=[]);var l=A.isBatchingLegacy,p;try{if(A.isBatchingLegacy=!0,p=r(),!l&&A.didScheduleLegacyUpdate){var y=A.current;y!==null&&(A.didScheduleLegacyUpdate=!1,it(y))}}catch($){throw Fe(i),$}finally{A.isBatchingLegacy=l}if(p!==null&&typeof p=="object"&&typeof p.then=="function"){var b=p,m=!1,E={then:function($,B){m=!0,b.then(function(K){Fe(i),oe===0?ot(K,$,B):$(K)},function(K){Fe(i),B(K)})}};return!Lr&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){m||(Lr=!0,j("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 () => ...);"))}),E}else{var _=p;if(Fe(i),oe===0){var F=A.current;F!==null&&(it(F),A.current=null);var V={then:function($,B){A.current===null?(A.current=[],ot(_,$,B)):$(_)}};return V}else{var L={then:function($,B){$(_)}};return L}}}}function Fe(r){r!==oe-1&&j("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),oe=r}function ot(r,i,l){{var p=A.current;if(p!==null)try{it(p),ra(function(){p.length===0?(A.current=null,i(r)):ot(r,i,l)})}catch(y){l(y)}else i(r)}}var at=!1;function it(r){if(!at){at=!0;var i=0;try{for(;i<r.length;i++){var l=r[i];do l=l(!0);while(l!==null)}r.length=0}catch(p){throw r=r.slice(i+1),p}finally{at=!1}}}var na=Mr,oa=ea,aa=Qo,ia={map:Oe,forEach:ho,count:mo,toArray:vo,only:bo};C.Children=ia,C.Component=Q,C.Fragment=o,C.Profiler=s,C.PureComponent=Ge,C.StrictMode=a,C.Suspense=d,C.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ee,C.act=$r,C.cloneElement=oa,C.createContext=wo,C.createElement=na,C.createFactory=aa,C.createRef=no,C.forwardRef=Co,C.isValidElement=re,C.lazy=ko,C.memo=Oo,C.startTransition=ta,C.unstable_act=$r,C.useCallback=Mo,C.useContext=Po,C.useDebugValue=Lo,C.useDeferredValue=No,C.useEffect=jo,C.useId=Uo,C.useImperativeHandle=Vo,C.useInsertionEffect=Fo,C.useLayoutEffect=Do,C.useMemo=Io,C.useReducer=_o,C.useRef=Ao,C.useState=Ro,C.useSyncExternalStore=qo,C.useTransition=$o,C.version=e,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()});var vn=ct((Oi,xt)=>{"use strict";process.env.NODE_ENV==="production"?xt.exports=mn():xt.exports=hn()});var Ja={};Br(Ja,{StoreError:()=>ie,StoreErrorCode:()=>ve,assertState:()=>Jt,batch:()=>mt,combineComputed:()=>jn,combineEffects:()=>Bt,combineSlices:()=>Dn,combineValidators:()=>Wt,compose:()=>tr,computed:()=>An,createAsyncValidator:()=>Yt,createDebouncedEffect:()=>Kt,createEffect:()=>Ut,createFederatedComputed:()=>Nn,createFederatedSelector:()=>$n,createFederation:()=>Ln,createFieldValidator:()=>Gt,createLogger:()=>$t,createMockStorage:()=>Hn,createNamespacedSlice:()=>Mn,createSimpleEffect:()=>qt,createSimpleMiddleware:()=>er,createSlice:()=>Ct,createStorage:()=>Rt,createStore:()=>Z,createSubscriber:()=>Pn,createTestStore:()=>Wn,createValidator:()=>Ht,createWithMiddleware:()=>Qt,deepClone:()=>G,deepEqual:()=>pe,deepMerge:()=>ae,delay:()=>Gn,devtools:()=>_t,effects:()=>Nt,extendStore:()=>In,flushMicrotasks:()=>Yn,hasHistory:()=>jt,history:()=>At,identity:()=>ge,immer:()=>Vt,isFunction:()=>Se,logger:()=>qe,memoizeSelector:()=>Fn,middlewareCompat:()=>Xt,mockAction:()=>Zn,omit:()=>Te,persist:()=>Pt,pick:()=>ye,produce:()=>Ue,resetSlices:()=>Vn,selector:()=>Lt,sessionStorage:()=>Ot,shallowEqual:()=>N,snapshot:()=>Jn,spyOnStore:()=>Zt,stateDiff:()=>Xn,subscribeOnce:()=>_n,subscribeToMany:()=>Rn,subscribeWithOptions:()=>we,sync:()=>Ft,toMiddlewareApi:()=>Be,triggerSync:()=>Dt,useAction:()=>wn,useCreateStore:()=>bn,useSetState:()=>On,useShallow:()=>En,useStore:()=>kt,useStoreActions:()=>xn,useStoreSelector:()=>kn,useTransientSubscribe:()=>Cn,validate:()=>zt,waitForFederated:()=>Un});se();var I=ya(vn(),1);dt();lt();se();function kt(e,t=ge,n=N){let o=(0,I.useRef)(t),a=(0,I.useRef)(n),s=(0,I.useRef)(e);o.current!==t&&(o.current=t),a.current!==n&&(a.current=n),s.current!==e&&(s.current=e);let c=()=>{let S=s.current.getState();return o.current(S)},d=(0,I.useSyncExternalStore)(S=>s.current.subscribe(g=>o.current(g),(g,v)=>{a.current(g,v)||S()},a.current),c,c);return(0,I.useDebugValue)(d),d}function bn(e){let t=(0,I.useRef)();return t.current===void 0&&(t.current=Z(e)),(0,I.useEffect)(()=>()=>{t.current&&(t.current.destroy(),t.current=void 0)},[]),t.current}function wn(e,t){let n=(0,I.useRef)(e);n.current!==e&&(n.current=e);let o=n.current[t],a=(0,I.useRef)(o);return a.current!==o&&(a.current=o),a.current}function En(e){let t=(0,I.useRef)();return n=>{let o=e(n);return t.current===void 0?(t.current=o,o):Ia(t.current,o)?t.current:(t.current=o,o)}}function Ia(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e===null||t===null)return!1;let n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let a of n)if(e[a]!==t[a])return!1;return!0}function xn(e,...t){let n=(0,I.useRef)(e),o=(0,I.useRef)({});n.current!==e&&(n.current=e,o.current={});let a={};for(let s of t)o.current[s]||(o.current[s]=n.current[s]),a[s]=o.current[s];return a}function kn(e,t){let n=(0,I.useRef)(t),o=(0,I.useRef)(Object.keys(t)),a=(0,I.useRef)(null);n.current!==t&&(n.current=t,o.current=Object.keys(t));let s=(0,I.useCallback)(c=>{let f=o.current,u=n.current,d={};for(let S of f){let T=u[S];T&&(d[S]=T(c))}if(a.current!==null){let S=!0;for(let T of f)if(!N(a.current[T],d[T])){S=!1;break}if(S)return a.current}return a.current=d,d},[]);return kt(e,s)}function Cn(e,t,n,o=N){let a=(0,I.useRef)(n);a.current=n,(0,I.useEffect)(()=>e.subscribe(t,(c,f)=>a.current(c,f),o),[e,t,o])}function On(e){let t=(0,I.useRef)(e);return t.current!==e&&(t.current=e),(0,I.useRef)(o=>{t.current.setState(o)}).current}X();function Va(e,t){let n=null,o=((...a)=>{n&&clearTimeout(n),n=setTimeout(()=>{e(...a),n=null},t)});return o.cancel=()=>{n&&(clearTimeout(n),n=null)},o}function La(e,t){let n=0,o=null,a=null,s=((...c)=>{let f=Date.now(),u=t-(f-n);a=c,u<=0?(o&&(clearTimeout(o),o=null),n=f,e(...c)):o||(o=setTimeout(()=>{n=Date.now(),o=null,a&&e(...a)},u))});return s.cancel=()=>{o&&(clearTimeout(o),o=null),a=null},s}function we(e,t,n,o={}){let{equalityFn:a=N,fireImmediately:s=!1,debounce:c,throttle:f,when:u}=o;if(c!==void 0&&f!==void 0)throw new Error("Cannot use both debounce and throttle options");let d=n,S=null;if(c!==void 0&&c>0){let h=Va(n,c);d=h,S=()=>h.cancel()}else if(f!==void 0&&f>0){let h=La(n,f);d=h,S=()=>h.cancel()}let T,g=e.getState();if(u?T=(h,R)=>{let O=e.getState();u(O,g)&&d(h,R),g=O}:T=d,s){let h=t(e.getState());T(h,h)}let v=e.subscribe(t,T,a);return()=>{v(),S&&S()}}function Pn(e={}){return(t,n,o,a={})=>we(t,n,o,{...e,...a})}function Rn(e,t,n,o={}){let a=Object.keys(t),s={},c=e.getState();for(let d of a){let S=t[d];S&&(s[d]=S(c))}return we(e,d=>{let S={};for(let T of a){let g=t[T];g&&(S[T]=g(d))}return S},n,{...o,equalityFn:(d,S)=>{for(let T of a)if(!N(d[T],S[T]))return!1;return!0}})}function _n(e,t,n,o={}){let a=null;return a=we(e,t,(c,f)=>{n(c,f),a&&a()},o),a}X();function An(e,t,n={}){let{equals:o=N,lazy:a=!1,cacheSize:s=1}=n,c=[],f,u=!1,d=!1,S=new Set,T=null,g=()=>{let w=e.getState();for(let P of c)if(P.input===w||N(P.input,w))return P.output;let x=t(w);for(c.unshift({input:w,output:x});c.length>s;)c.pop();return x},v=()=>{u||d||(u=!0,f=g(),T=e.subscribe((w,x)=>{let P=f,U=g();if(!o(U,P)){f=U;for(let q of S)try{q(U,P)}catch(ue){console.error("Computed listener error:",ue)}}}))};a||v();let h=()=>{if(d)throw new Error("Cannot access destroyed computed value");return u||v(),f},R=()=>{if(!d&&(c.length=0,u)){let w=f;if(f=g(),!o(f,w))for(let x of S)try{x(f,w)}catch(P){console.error("Computed listener error:",P)}}},O=w=>{if(d)throw new Error("Cannot subscribe to destroyed computed value");return u||v(),S.add(w),()=>{S.delete(w)}},D=()=>c.map(w=>w.output),M=()=>{d||(d=!0,T&&(T(),T=null),S.clear(),c.length=0,f=void 0)},A=h;return A.get=h,A.invalidate=R,A.subscribe=O,A.getHistory=D,A.destroy=M,A}function jn(e,t,n={}){let{equals:o=N,cacheSize:a=1}=n,s,c=!1,f=new Set,u=[],d=[],S=()=>{let D=e.map(M=>M());return t(D)};s=S(),d.push(s);for(let D of e){let M=D.subscribe(()=>{if(c)return;let A=s,w=S();if(!o(w,A)){for(s=w,d.unshift(w);d.length>a;)d.pop();for(let x of f)try{x(w,A)}catch(P){console.error("Combined computed listener error:",P)}}});u.push(M)}let T=()=>{if(c)throw new Error("Cannot access destroyed computed value");return s},g=()=>{if(!c)for(let D of e)D.invalidate()},v=D=>{if(c)throw new Error("Cannot subscribe to destroyed computed value");return f.add(D),()=>f.delete(D)},h=()=>[...d],R=()=>{if(!c){c=!0;for(let D of u)D();f.clear(),d.length=0}},O=T;return O.get=T,O.invalidate=g,O.subscribe=v,O.getHistory=h,O.destroy=R,O}function Fn(e,t=N){let n,o,a=!1;return s=>{if(!a||n!==s){let c=e(s);(!a||!t(c,o))&&(o=c),n=s,a=!0}return o}}se();function Ct(e,t){return{name:e,creator:t}}function Dn(...e){let t={},n={},o=null,a=u=>{o&&o.setState(u)},s=()=>o?o.getState():t,c={getState:()=>t,setState:()=>{},subscribe:()=>()=>{},merge:()=>{},reset:()=>{},use:()=>c,destroy:()=>{}};for(let u of e){let d=u.creator(a,s,c);for(let[S,T]of Object.entries(d))typeof T=="function"?n[S]=T:t[S]=T}o=Z(t);for(let u of e){let d=u.creator(S=>{o.setState(S)},()=>o.getState(),o);for(let[S,T]of Object.entries(d))typeof T=="function"&&(n[S]=T)}let f=o;for(let[u,d]of Object.entries(n))f[u]=d;return f}function Mn(e,t){return Ct(e,(n,o,a)=>{let f=t(S=>{let T=o()[e]||{},g=typeof S=="function"?S(T):S;n({[e]:{...T,...g}})},()=>o()[e]||{}),u={},d={};for(let[S,T]of Object.entries(f))typeof T=="function"?d[S]=T:u[S]=T;return{[e]:u,...d}})}function In(e,...t){let n={},o=c=>{e.setState(c)},a=()=>e.getState();for(let c of t){let f=c.creator(o,a,e);for(let[u,d]of Object.entries(f))typeof d=="function"?n[u]=d:e.setState({[u]:d})}let s=e;for(let[c,f]of Object.entries(n))s[c]=f;return s}function Vn(e,...t){console.warn("resetSlices: Use store.reset() to reset all state"),e.reset()}function Ln(e,t={}){let{name:n="federation",debug:o=!1}=t,a=new Set,s=[],c=!1,f=[],u=null,d=()=>{let g={};for(let v in e){let h=e[v];h&&(g[v]=h.getState())}return g},S=g=>{if(c){f.includes(g)||f.push(g);return}let v=d(),h=u||v;for(let R of a)try{R(v,h,g)}catch(O){console.error("Federation listener error:",O)}u=v};for(let g in e){let v=e[g];if(v){let h=v.subscribe(()=>{S(g)});s.push(h)}}u=d();let T=(g,...v)=>{o&&console.log(`[${n}] ${g}`,...v)};return{stores:e,getState:d,subscribe(g){return a.add(g),()=>{a.delete(g)}},transaction(g){if(c){g(e);return}c=!0,f=[];let v=d();T("Transaction started");try{if(g(e)instanceof Promise)throw new Error("Async operations in transaction() are not supported. Use transactionAsync() instead.");if(c=!1,f.length>0){T("Transaction committed, changed stores:",f);let R=d();for(let O of a)try{O(R,v,f[0])}catch(D){console.error("Federation listener error:",D)}u=R}}catch(h){c=!1,T("Transaction failed, rolling back");for(let R in e){let O=e[R];O&&O.setState(v[R])}throw h}},async transactionAsync(g){if(c){await g(e);return}c=!0,f=[];let v=d();T("Async transaction started");try{if(await g(e),c=!1,f.length>0){T("Async transaction committed, changed stores:",f);let h=d();for(let R of a)try{R(h,v,f[0])}catch(O){console.error("Federation listener error:",O)}u=h}}catch(h){c=!1,T("Async transaction failed, rolling back");for(let R in e){let O=e[R];O&&O.setState(v[R])}throw h}},getStore(g){return e[g]},destroy(){T("Destroying federation");for(let g of s)g();a.clear()}}}function $n(e,t){return()=>t(e.getState())}function Nn(e,t,n=Object.is){let o=t(e.getState()),a=new Set;return e.subscribe(s=>{let c=t(s);if(!n(c,o)){let f=o;o=c;for(let u of a)u(c,f)}}),{get(){return o},subscribe(s){return a.add(s),()=>{a.delete(s)}}}}function Un(e,t,n){return new Promise((o,a)=>{let s=e.getState();if(t(s)){o(s);return}let c,f,u=()=>{c&&clearTimeout(c),f&&f()};n&&(c=setTimeout(()=>{u(),a(new Error(`waitForFederated timed out after ${n}ms`))},n)),f=e.subscribe(d=>{t(d)&&(u(),o(d))})})}X();var $a={getItem:e=>{if(typeof window>"u")return null;try{return window.localStorage.getItem(e)}catch{return null}},setItem:(e,t)=>{if(!(typeof window>"u"))try{window.localStorage.setItem(e,t)}catch{}},removeItem:()=>{}},Ot={getItem:e=>{if(typeof window>"u")return null;try{return window.sessionStorage.getItem(e)}catch{return null}},setItem:(e,t)=>{if(!(typeof window>"u"))try{window.sessionStorage.setItem(e,t)}catch{}},removeItem:e=>{if(!(typeof window>"u"))try{window.sessionStorage.removeItem(e)}catch{}}};function Na(e,t){let n=null,o=((...a)=>{n&&clearTimeout(n),n=setTimeout(()=>{e(...a),n=null},t)});return o.cancel=()=>{n&&(clearTimeout(n),n=null)},o}function Pt(e){let{key:t,storage:n=$a,whitelist:o,blacklist:a,partialize:s,merge:c,version:f=0,migrate:u,serialize:d=JSON.stringify,deserialize:S=JSON.parse,encrypt:T,decrypt:g,writeDebounce:v,onRehydrateStorage:h,onHydrationComplete:R,onPersistError:O}=e,D=null;return{name:"persist",version:"1.0.0",install(M){try{let x=n.getItem(t);if(x&&g)try{x=g(x)}catch{x=null}if(x){let P,U=0;try{let q=S(x);q&&typeof q=="object"&&"state"in q&&"version"in q?(P=q.state,U=q.version):P=q}catch{P=S(x)}if(h&&h(P),u&&U<f&&(P=u(P,U)),c){let q=M.getState(),ue=c(P,q);M.setState(ue)}else M.merge(P);R&&R(M.getState())}}catch(x){O?O(x):console.error(`Failed to hydrate state from '${t}':`,x)}let A=x=>{try{let P=x;s?P=s(x):o?P=ye(x,o):a&&(P=Te(x,a));let q=d({state:P,version:f});T&&(q=T(q)),n.setItem(t,q)}catch(P){O?O(P):console.error(`Failed to persist state to '${t}':`,P)}},w=v&&v>0?Na(A,v):A;v&&v>0&&(D=()=>w.cancel?.()),M.subscribe(w)},onDestroy(){D&&D()}}}function Rt(e){return e}function Ua(){return typeof window<"u"&&!!window.__REDUX_DEVTOOLS_EXTENSION__}function qa(){return typeof window>"u"?null:window.__REDUX_DEVTOOLS_EXTENSION__||null}function _t(e={}){let{name:t="OxogState Store",enabled:n=!0,maxAge:o=50}=e,a=null,s=[];return{name:"devtools",version:"1.0.0",install(c){if(!n||!Ua())return;let f=qa();f&&(a=f.connect({name:t}),a.init(c.getState()),c.subscribe((u,d)=>{a&&(s.push({state:u,action:"UPDATE"}),s.length>o&&s.shift(),a.send({type:"UPDATE",prev:d},u))}),a.subscribe(u=>{if(u.type==="DISPATCH"&&u.payload)switch(u.payload.type){case"JUMP_TO_STATE":case"JUMP_TO_ACTION":{let d=u.payload.type==="JUMP_TO_ACTION"?s.findIndex(S=>S.action===u.payload.action):u.payload.index;if(d>=0&&d<s.length){let S=s[d];S&&c.setState(S.state)}break}case"COMMIT":{a.init(c.getState()),s=[];break}case"ROLLBACK":{if(s.length>1){let d=s[s.length-2];d&&c.setState(d.state)}break}case"RESET":{c.reset();break}}}))},onDestroy(){a=null,s=[]}}}function At(e={}){let{limit:t=50,keys:n}=e,o=null,a=null,s=!1;return{name:"history",version:"1.0.0",install(c){a=c,o={past:[],present:c.getState(),future:[]},c.subscribe(f=>{if(!o||s)return;let u=o.present,d=f,S=!0;n&&n.length>0?S=n.some(T=>u[T]!==d[T]):S=u!==d,S&&(o.past.push(u),o.past.length>t&&o.past.shift(),o.present=d,o.future=[])}),c.undo=()=>{if(!o||o.past.length===0)return;let f=o.past.pop();o.future.push(o.present),o.present=f,s=!0,c.setState(f),s=!1},c.redo=()=>{if(!o||o.future.length===0)return;let f=o.future.pop();o.past.push(o.present),o.present=f,s=!0,c.setState(f),s=!1},c.clearHistory=()=>{o&&(o.past=[],o.future=[])},c.canUndo=()=>o!==null&&o.past.length>0,c.canRedo=()=>o!==null&&o.future.length>0},onDestroy(){o=null,a=null}}}function jt(e){return typeof e.undo=="function"&&typeof e.redo=="function"}function Ft(e={}){let{channel:t="oxog-state"}=e,n=null,o=null,a=!1;return{name:"sync",version:"1.0.0",install(s){if(o=s,typeof BroadcastChannel>"u"){console.warn("BroadcastChannel is not supported in this environment");return}n=new BroadcastChannel(t),n.onmessage=c=>{if(!a)try{s.setState(c.data)}catch(f){console.error("Error applying sync state:",f)}}},onInit(){if(n&&o){a=!0;try{n.postMessage(o.getState())}catch(s){console.error("Error broadcasting initial state:",s)}a=!1}},onDestroy(){n&&(n.close(),n=null),o=null}}}function Dt(e,t="oxog-state"){if(typeof BroadcastChannel>"u"){console.warn("BroadcastChannel is not supported in this environment");return}let n=new BroadcastChannel(t);n.postMessage(e.getState()),n.close()}function Mt(e,t){return new Proxy(e||{},{get(n,o){let a=n[o];return a!==null&&typeof a=="object"&&!Array.isArray(a)?t.has(a)?Mt(t.get(a),t):Mt(a,t):a},set(n,o,a){t.has(n)||t.set(n,{...n});let s=t.get(n);return s[o]=a,!0},deleteProperty(n,o){t.has(n)||t.set(n,{...n});let a=t.get(n);return delete a[o],!0}})}function qn(e,t){if(!t.has(e))return It(e);let n=t.get(e);for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o)){let a=n[o];a!==null&&typeof a=="object"&&!Array.isArray(a)&&(n[o]=qn(a,t))}return n}function It(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(n=>It(n));let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=It(e[n]));return t}function Ue(e,t){let n=new Map,o=Mt(e,n);return t(o),qn(e,n)}function Vt(){return{name:"immer",version:"1.0.0",install(e){let t=e.setState.bind(e);e.setState=n=>{if(typeof n=="function"){let o=Ue(e.getState(),n);t(o)}else t(n)}}}}function Lt(e){let{selectors:t}=e;return{name:"selector",version:"1.0.0",install(n){let o=n.getState.bind(n),a=new Map,s=new Proxy({},{get(c,f){let u=t[f];if(u){let d=o(),S=f,T=a.get(S);if(T&&T.state===d)return T.value;let g=u(d);return a.set(S,{value:g,state:d}),g}return o()[f]}});n.getState=()=>s,n.subscribe(()=>{a.clear()})}}}var Bn={debug:0,info:1,warn:2,error:3},Ee={title:"#9E9E9E",prevState:"#9E9E9E",action:"#03A9F4",nextState:"#4CAF50",error:"#F44336",diff:{added:"#4CAF50",removed:"#F44336",changed:"#2196F3"}};function Ba(e){let t=e.getHours().toString().padStart(2,"0"),n=e.getMinutes().toString().padStart(2,"0"),o=e.getSeconds().toString().padStart(2,"0"),a=e.getMilliseconds().toString().padStart(3,"0");return`${t}:${n}:${o}.${a}`}function Kn(e,t){let n={};if(typeof e!="object"||typeof t!="object")return e!==t&&(n.value={prev:e,next:t}),n;if(e===null||t===null)return e!==t&&(n.value={prev:e,next:t}),n;let o=new Set([...Object.keys(e),...Object.keys(t)]);for(let a of o){let s=e[a],c=t[a];s!==c&&(n[a]={prev:s,next:c})}return n}function zn(){return typeof window<"u"&&typeof window.document<"u"}function qe(e={}){let{level:t="debug",logger:n=console,collapsed:o=!0,diff:a=!0,colors:s=zn(),timestamp:c=!0,filter:f,stateTransformer:u,actionName:d="STATE_CHANGE",name:S="Store",enabled:T=!0}=e,g=Bn[t];return{name:"logger",version:"1.0.0",install(v){T&&v.subscribe((h,R)=>{if(f&&!f(h,R)||Bn.info<g)return;let O=new Date,D=typeof d=="function"?d(h,R):d,M=u?u(R):R,A=u?u(h):h,w=c?` @ ${Ba(O)}`:"",x=`${S} ${D}${w}`;s&&zn()?Ka(n,x,M,A,o,a?Kn(R,h):void 0):za(n,x,M,A,o,a?Kn(R,h):void 0)})}}}function Ka(e,t,n,o,a,s){let c=`color: ${Ee.title}; font-weight: lighter;`;if(e[a?"groupCollapsed":"group"](`%c${t}`,c),e.log("%cprev state",`color: ${Ee.prevState}; font-weight: bold;`,n),e.log("%cnext state",`color: ${Ee.nextState}; font-weight: bold;`,o),s&&Object.keys(s).length>0){e.log("%cdiff",`color: ${Ee.action}; font-weight: bold;`);for(let[u,{prev:d,next:S}]of Object.entries(s))e.log(` %c${u}:`,`color: ${Ee.diff.changed};`,d,"\u2192",S)}e.groupEnd()}function za(e,t,n,o,a,s){let c=typeof e.groupCollapsed=="function",f=a&&c?"groupCollapsed":"group",u=typeof e[f]=="function";if(u?e[f](t):e.log(`=== ${t} ===`),e.log("prev state:",n),e.log("next state:",o),s&&Object.keys(s).length>0){e.log("diff:");for(let[d,{prev:S,next:T}]of Object.entries(s))e.log(` ${d}:`,S,"\u2192",T)}u?e.groupEnd():e.log("===")}function $t(e={}){return(t={})=>qe({...e,...t})}X();function Ha(e,t){let n=null,o=((...a)=>{n&&clearTimeout(n),n=setTimeout(()=>{e(...a),n=null},t)});return o.cancel=()=>{n&&(clearTimeout(n),n=null)},o}function Nt(e){let{effects:t,onError:n}=e;return{name:"effects",version:"1.0.0",install(o){let a=[],s=new Map;for(let c=0;c<t.length;c++){let f=t[c];if(!f)continue;let{selector:u,effect:d,equalityFn:S=N,fireImmediately:T=!1,debounce:g,name:v}=f,h=!0,R=u(o.getState()),O=()=>({getState:()=>o.getState(),setState:w=>o.setState(w),isActive:()=>h,cancel:()=>{h=!1},onlyIfActive:w=>{if(h)return w()}}),D=async(w,x)=>{let P=s.get(c);if(P){try{P()}catch{}s.delete(c)}h=!0;try{let U=d(w,x,O());if(U instanceof Promise){let q=await U;q&&h&&s.set(c,q)}else U&&s.set(c,U)}catch(U){n?n(U,v):console.error(`Effect error${v?` in '${v}'`:""}:`,U)}},M=g&&g>0?Ha(D,g):D;T&&M(R,R);let A=o.subscribe(u,(w,x)=>{S(w,x)||(R=w,M(w,x))},S);a.push(()=>{A(),h=!1,"cancel"in M&&M.cancel();let w=s.get(c);if(w)try{w()}catch{}})}o.__effectsCleanup=()=>{for(let c of a)c();s.clear()}}}}function Ut(e,t,n,o={}){return{name:e,selector:t,effect:n,...o}}function qt(e,t={}){return{selector:n=>n,effect:e,equalityFn:()=>!1,...t}}function Bt(...e){return{effects:e}}function Kt(e,t,n,o={}){return{selector:t,effect:n,debounce:e,...o}}function Wa(e){return typeof e=="object"&&e!==null&&"safeParse"in e&&typeof e.safeParse=="function"}function Ga(e){return typeof e=="object"&&e!==null&&"validateSync"in e&&typeof e.validateSync=="function"}function Ya(e,t){let n={};for(let o of t)o in e&&(n[o]=e[o]);return n}function Za(e,t,n){let o=n?Ya(e,n):e;if(typeof t=="function"){let a=t(o);return typeof a=="boolean"?{valid:a,errors:a?[]:[{path:[],message:"Validation failed"}]}:"valid"in a&&"errors"in a?a:Array.isArray(a)?{valid:a.length===0,errors:a}:{valid:!0,errors:[]}}if(Wa(t)){let a=t.safeParse(o);return a.success?{valid:!0,errors:[]}:{valid:!1,errors:(a.error?.issues||[]).map(c=>({path:c.path.map(String),message:c.message,rule:c.code}))}}if(Ga(t))try{return t.validateSync(o,{abortEarly:!1}),{valid:!0,errors:[]}}catch(a){let s=[];if(a.inner&&Array.isArray(a.inner))for(let c of a.inner)s.push({path:c.path?c.path.split("."):[],message:c.message,rule:c.type,value:c.value});else s.push({path:a.path?a.path.split("."):[],message:a.message||"Validation failed",rule:a.type});return{valid:!1,errors:s}}return{valid:!0,errors:[]}}function zt(e){let{schema:t,on:n="change",onError:o,throwOnError:a=!1,paths:s,name:c="validate"}=e;return{name:c,version:"1.0.0",install(f){let u=[],d=()=>{let T=f.getState(),g=Za(T,t,s);if(u=g.errors,!g.valid&&(o&&o(g.errors),a)){let v=g.errors.map(h=>`${h.path.join(".")}: ${h.message}`).join(", ");throw new Error(`Validation failed: ${v}`)}return g};n==="change"&&f.subscribe(()=>{d()}),Object.assign(f,{validate:d,isValid:()=>u.length===0,getErrors:()=>[...u],clearErrors:()=>{u=[]}})}}}function Ht(e,t){return n=>{let o=e(n);return{valid:o,errors:o?[]:[{path:[],message:t}]}}}function Wt(...e){return t=>{let n=[];for(let o of e){let a=o(t);typeof a=="boolean"?a||n.push({path:[],message:"Validation failed"}):"valid"in a&&"errors"in a?n.push(...a.errors):Array.isArray(a)&&n.push(...a)}return{valid:n.length===0,errors:n}}}function Gt(e,t,n){return o=>{let a=t(o[e],o);return{valid:a,errors:a?[]:[{path:[String(e)],message:n,value:o[e]}]}}}function Yt(e){return async t=>{let n=await e(t);return{valid:n.length===0,errors:n}}}X();se();X();function Hn(){let e=new Map;return{getItem(t){return e.get(t)??null},setItem(t,n){e.set(t,n)},removeItem(t){e.delete(t)},clear(){e.clear()},getAll(){let t={};for(let[n,o]of e)t[n]=o;return t}}}function Zt(e){let t=[],n=[],o=e.subscribe((a,s)=>{t.push({state:a,prevState:s,timestamp:Date.now()});for(let c=n.length-1;c>=0;c--){let f=n[c];f&&f.predicate(a)&&(f.resolve(a),n.splice(c,1))}});return{changes:t,lastChange:()=>t[t.length-1],lastState:()=>t[t.length-1]?.state,reset:()=>{t.length=0},unsubscribe:o,waitFor:(a,s=5e3)=>new Promise((c,f)=>{let u=e.getState();if(a(u)){c(u);return}let d={resolve:c,predicate:a};n.push(d);let S=setTimeout(()=>{let g=n.indexOf(d);g>=0&&(n.splice(g,1),f(new Error(`waitFor timeout after ${s}ms`)))},s),T=d.resolve;d.resolve=g=>{clearTimeout(S),T(g)}}),waitForChanges:(a,s=5e3)=>new Promise((c,f)=>{let u=t.length,d=()=>t.length>=u+a?t.slice(u,u+a):null,S=d();if(S){c(S);return}let T=setInterval(()=>{let v=d();v&&(clearInterval(T),clearTimeout(g),c(v))},10),g=setTimeout(()=>{clearInterval(T),f(new Error(`waitForChanges timeout after ${s}ms`))},s)})}}function Jt(e){return{toEqual:t=>{let n=e.getState();for(let[o,a]of Object.entries(t))if(n[o]!==a)throw new Error(`Expected state.${o} to be ${JSON.stringify(a)}, but got ${JSON.stringify(n[o])}`)},toHaveSelected:(t,n)=>{let o=t(e.getState());if(!N(o,n))throw new Error(`Expected selector to return ${JSON.stringify(n)}, but got ${JSON.stringify(o)}`)},toMatch:t=>{let n=e.getState();if(!t(n))throw new Error(`State did not match predicate: ${JSON.stringify(n)}`)}}}function Wn(e){let{initialState:t,spy:n=!0}=e,o=Z(t),a=n?Zt(o):void 0,s=Jt(o);return{store:o,spy:a,assert:s,reset:()=>{o.reset(),a?.reset()},destroy:()=>{a?.unsubscribe(),o.destroy()}}}function Gn(e){return new Promise(t=>setTimeout(t,e))}async function Yn(e){e&&e(),await Promise.resolve()}function Zn(e){let t=[],n=((...o)=>(t.push(o),e(...o)));return Object.defineProperty(n,"callCount",{get:()=>t.length}),n.calls=t,n.reset=()=>{t.length=0},n}function Jn(e){return JSON.parse(JSON.stringify(e.getState()))}function Xn(e,t){let n={},o=new Set([...Object.keys(e),...Object.keys(t)]);for(let a of o)N(e[a],t[a])||(n[a]={before:e[a],after:t[a]});return n}function Be(e){return{setState:(t,n)=>{if(typeof t=="function"){let o=e.getState(),a=t(o);n?e.setState(a):e.merge(a)}else n?e.setState(t):e.merge(t)},getState:()=>e.getState(),subscribe:t=>e.subscribe(t),destroy:()=>e.destroy()}}function Xt(e,t){return{name:"middleware-compat",version:"1.0.0",install(n){let o=Be(n),c=e((f,u)=>u())(o.setState,o.getState,o);if(c&&typeof c=="object"){let f=n.getState(),u={};for(let d in c){let S=c[d];typeof S!="function"&&(u[d]=S)}Object.keys(u).length>0&&Object.keys(u).some(S=>f[S]!==u[S])&&n.merge(u)}}}}function Qt(e){let{createStore:t}=(se(),zr(an)),n=null,o=null,a=(u,d)=>{if(!o)throw new Error("Store not initialized");if(typeof u=="function"){let S=u(o.getState());d?o.setState(S):o.merge(S)}else d?o.setState(u):o.merge(u)},s=()=>{if(o)return o.getState();if(n)return n;throw new Error("Store not initialized")};n=e(a,s,{setState:a,getState:s,subscribe:()=>()=>{}}),o=t(n);let f={setState:(u,d)=>{if(typeof u=="function"){let S=u(o.getState());d?o.setState(S):o.merge(S)}else d?o.setState(u):o.merge(u)},getState:()=>o.getState(),subscribe:u=>o.subscribe(u),destroy:()=>o.destroy(),use:u=>(o.use(u),f)};return f}function er(e,t){let n=t;return Object.defineProperty(n,"name",{value:e}),n}function tr(...e){return t=>e.reduceRight((n,o)=>o(n),t)}return zr(Ja);})();
|
|
24
24
|
/*! Bundled license information:
|
|
25
25
|
|
|
26
26
|
react/cjs/react.production.min.js:
|