extra-react-hooks 0.1.4 → 0.1.8
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/CHANGELOG.md +61 -0
- package/README.md +32 -0
- package/dist/es2015/index.min.mjs +2 -2
- package/dist/es2015/index.min.mjs.map +1 -1
- package/dist/es2015/index.mjs +103 -66
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +108 -67
- package/dist/es2015/index.umd.js.map +1 -1
- package/dist/es2015/index.umd.min.js +2 -2
- package/dist/es2015/index.umd.min.js.map +1 -1
- package/dist/es2018/index.min.mjs +2 -2
- package/dist/es2018/index.min.mjs.map +1 -1
- package/dist/es2018/index.mjs +103 -66
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +108 -67
- package/dist/es2018/index.umd.js.map +1 -1
- package/dist/es2018/index.umd.min.js +2 -2
- package/dist/es2018/index.umd.min.js.map +1 -1
- package/lib/es2015/index.d.ts +4 -0
- package/lib/es2015/index.js +4 -0
- package/lib/es2015/index.js.map +1 -1
- package/lib/es2015/use-force-update.d.ts +1 -0
- package/lib/es2015/use-force-update.js +10 -0
- package/lib/es2015/use-force-update.js.map +1 -0
- package/lib/es2015/use-increment.d.ts +1 -0
- package/lib/es2015/use-increment.js +16 -0
- package/lib/es2015/use-increment.js.map +1 -0
- package/lib/es2015/use-is-mounted.js +2 -2
- package/lib/es2015/use-is-mounted.js.map +1 -1
- package/lib/es2015/use-mount.js +1 -1
- package/lib/es2015/use-mount.js.map +1 -1
- package/lib/es2015/use-resize-observer.d.ts +2 -0
- package/lib/es2015/use-resize-observer.js +18 -0
- package/lib/es2015/use-resize-observer.js.map +1 -0
- package/lib/es2015/use-single-selection.js +5 -5
- package/lib/es2015/use-single-selection.js.map +1 -1
- package/lib/es2015/use-state-cycle.js +8 -5
- package/lib/es2015/use-state-cycle.js.map +1 -1
- package/lib/es2015/use-step.d.ts +1 -0
- package/lib/es2015/use-step.js +32 -0
- package/lib/es2015/use-step.js.map +1 -0
- package/lib/es2015/use-toggle.js +1 -1
- package/lib/es2015/use-toggle.js.map +1 -1
- package/lib/es2018/index.d.ts +4 -0
- package/lib/es2018/index.js +4 -0
- package/lib/es2018/index.js.map +1 -1
- package/lib/es2018/use-force-update.d.ts +1 -0
- package/lib/es2018/use-force-update.js +10 -0
- package/lib/es2018/use-force-update.js.map +1 -0
- package/lib/es2018/use-increment.d.ts +1 -0
- package/lib/es2018/use-increment.js +16 -0
- package/lib/es2018/use-increment.js.map +1 -0
- package/lib/es2018/use-is-mounted.js +2 -2
- package/lib/es2018/use-is-mounted.js.map +1 -1
- package/lib/es2018/use-mount.js +1 -1
- package/lib/es2018/use-mount.js.map +1 -1
- package/lib/es2018/use-resize-observer.d.ts +2 -0
- package/lib/es2018/use-resize-observer.js +18 -0
- package/lib/es2018/use-resize-observer.js.map +1 -0
- package/lib/es2018/use-single-selection.js +5 -5
- package/lib/es2018/use-single-selection.js.map +1 -1
- package/lib/es2018/use-state-cycle.js +8 -5
- package/lib/es2018/use-state-cycle.js.map +1 -1
- package/lib/es2018/use-step.d.ts +1 -0
- package/lib/es2018/use-step.js +32 -0
- package/lib/es2018/use-step.js.map +1 -0
- package/lib/es2018/use-toggle.js +1 -1
- package/lib/es2018/use-toggle.js.map +1 -1
- package/package.json +28 -22
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
|
+
|
|
5
|
+
### [0.1.8](https://github.com/BlackGlory/extra-react-hooks/compare/v0.1.7...v0.1.8) (2021-12-13)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* add useForceUpdate ([f747227](https://github.com/BlackGlory/extra-react-hooks/commit/f747227c02c5bb2f0a0f1889de1c022bc9ca1e4d))
|
|
11
|
+
|
|
12
|
+
### [0.1.7](https://github.com/BlackGlory/extra-react-hooks/compare/v0.1.6...v0.1.7) (2021-12-10)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* add useStep ([f404846](https://github.com/BlackGlory/extra-react-hooks/commit/f4048462cc254499d7fd06cd51e16e98acd978ca))
|
|
18
|
+
|
|
19
|
+
### [0.1.6](https://github.com/BlackGlory/extra-react-hooks/compare/v0.1.5...v0.1.6) (2021-11-15)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* add useResizeObserver ([8a4e317](https://github.com/BlackGlory/extra-react-hooks/commit/8a4e317921387fa26e768796e52c8fe44e9b347e))
|
|
25
|
+
|
|
26
|
+
### [0.1.5](https://github.com/BlackGlory/extra-react-hooks/compare/v0.1.4...v0.1.5) (2021-10-04)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Features
|
|
30
|
+
|
|
31
|
+
* add useIncrement ([e5f1fc4](https://github.com/BlackGlory/extra-react-hooks/commit/e5f1fc442a2c69aa490fed873cc21fe4ad9ff76b))
|
|
32
|
+
|
|
33
|
+
### [0.1.4](https://github.com/BlackGlory/extra-react-hooks/compare/v0.1.3...v0.1.4) (2021-08-18)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Features
|
|
37
|
+
|
|
38
|
+
* add useIsMounted ([32a1295](https://github.com/BlackGlory/extra-react-hooks/commit/32a12951aab92ae5734f4caddf45021e2bbed793))
|
|
39
|
+
|
|
40
|
+
### [0.1.3](https://github.com/BlackGlory/extra-react-hooks/compare/v0.1.2...v0.1.3) (2021-08-18)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Features
|
|
44
|
+
|
|
45
|
+
* add useStateCycle ([a48da21](https://github.com/BlackGlory/extra-react-hooks/commit/a48da211f364688daa63a0bd5406fa2f2c61eba7))
|
|
46
|
+
|
|
47
|
+
### [0.1.2](https://github.com/BlackGlory/extra-react-hooks/compare/v0.1.1...v0.1.2) (2021-07-03)
|
|
48
|
+
|
|
49
|
+
### [0.1.1](https://github.com/BlackGlory/extra-react-hooks/compare/v0.1.0...v0.1.1) (2021-06-29)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### Features
|
|
53
|
+
|
|
54
|
+
* add useMount ([070045a](https://github.com/BlackGlory/extra-react-hooks/commit/070045ac0f209712eadd0f4e79c1328d20745b04))
|
|
55
|
+
|
|
56
|
+
## 0.1.0 (2021-06-04)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### Features
|
|
60
|
+
|
|
61
|
+
* add useToggle, useSingleSelection ([0b9ee92](https://github.com/BlackGlory/extra-react-hooks/commit/0b9ee92597a230989b51b7242f529f0a36590d1f))
|
package/README.md
CHANGED
|
@@ -56,3 +56,35 @@ function useStateCycle<T>(
|
|
|
56
56
|
```ts
|
|
57
57
|
function useIsMounted(): () => boolean
|
|
58
58
|
```
|
|
59
|
+
|
|
60
|
+
### useIncrement
|
|
61
|
+
|
|
62
|
+
```ts
|
|
63
|
+
function useIncrement(
|
|
64
|
+
initialValue: number
|
|
65
|
+
): [value: number, increment: (step?: number) => void, reset: () => void]
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### useResizeObserver
|
|
69
|
+
|
|
70
|
+
```ts
|
|
71
|
+
function useResizeObserver(
|
|
72
|
+
callback: ResizeObserverCallback
|
|
73
|
+
, refs: Array<RefObject<HTMLElement> | MutableRefObject<HTMLElement>>
|
|
74
|
+
): void
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### useStep
|
|
78
|
+
|
|
79
|
+
```ts
|
|
80
|
+
function useStep<T>(
|
|
81
|
+
steps: [T, ...T[]]
|
|
82
|
+
, initialStepIndex: number = 0
|
|
83
|
+
): [currentStep: T, next: () => void, previous: () => void]
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### useForceUpdate
|
|
87
|
+
|
|
88
|
+
```ts
|
|
89
|
+
function useForceUpdate(): () => void
|
|
90
|
+
```
|
|
@@ -6,7 +6,7 @@ var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?windo
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/r.Fragment=60107,r.StrictMode=60108,r.Profiler=60114;var l=60109,p=60110,d=60112;r.Suspense=60113;var y=60115,v=60116;if("function"==typeof Symbol&&Symbol.for){var m=Symbol.for;c=m("react.element"),f=m("react.portal"),r.Fragment=m("react.fragment"),r.StrictMode=m("react.strict_mode"),r.Profiler=m("react.profiler"),l=m("react.provider"),p=m("react.context"),d=m("react.forward_ref"),r.Suspense=m("react.suspense"),y=m("react.memo"),v=m("react.lazy")}var h="function"==typeof Symbol&&Symbol.iterator;function g(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_={};function
|
|
9
|
+
*/r.Fragment=60107,r.StrictMode=60108,r.Profiler=60114;var l=60109,p=60110,d=60112;r.Suspense=60113;var y=60115,v=60116;if("function"==typeof Symbol&&Symbol.for){var m=Symbol.for;c=m("react.element"),f=m("react.portal"),r.Fragment=m("react.fragment"),r.StrictMode=m("react.strict_mode"),r.Profiler=m("react.profiler"),l=m("react.provider"),p=m("react.context"),d=m("react.forward_ref"),r.Suspense=m("react.suspense"),y=m("react.memo"),v=m("react.lazy")}var h="function"==typeof Symbol&&Symbol.iterator;function g(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_={};function w(e,t,r){this.props=e,this.context=t,this.refs=_,this.updater=r||b}function R(){}function j(e,t,r){this.props=e,this.context=t,this.refs=_,this.updater=r||b}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(g(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},R.prototype=w.prototype;var S=j.prototype=new R;S.constructor=j,s(S,w.prototype),S.isPureReactComponent=!0;var C={current:null},E=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function O(e,t,r){var n,o={},i=null,a=null;if(null!=t)for(n in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)E.call(t,n)&&!k.hasOwnProperty(n)&&(o[n]=t[n]);var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){for(var s=Array(u),f=0;f<u;f++)s[f]=arguments[f+2];o.children=s}if(e&&e.defaultProps)for(n in u=e.defaultProps)void 0===o[n]&&(o[n]=u[n]);return{$$typeof:c,type:e,key:i,ref:a,props:o,_owner:C.current}}function P(e){return"object"==typeof e&&null!==e&&e.$$typeof===c}var x=/\/+/g;function $(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function N(e,t,r,n,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case c:case f:a=!0}}if(a)return o=o(a=e),e=""===n?"."+$(a,0):n,Array.isArray(o)?(r="",null!=e&&(r=e.replace(x,"$&/")+"/"),N(o,t,r,"",(function(e){return e}))):null!=o&&(P(o)&&(o=function(e,t){return{$$typeof:c,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,r+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(x,"$&/")+"/")+e)),t.push(o)),1;if(a=0,n=""===n?".":n+":",Array.isArray(e))for(var u=0;u<e.length;u++){var s=n+$(i=e[u],u);a+=N(i,t,r,s,o)}else if("function"==typeof(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e)))for(e=s.call(e),u=0;!(i=e.next()).done;)a+=N(i=i.value,t,r,s=n+$(i,u++),o);else if("object"===i)throw t=""+e,Error(g(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return a}function A(e,t,r){if(null==e)return e;var n=[],o=0;return N(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function I(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var F={current:null};function T(){var e=F.current;if(null===e)throw Error(g(321));return e}var D={ReactCurrentDispatcher:F,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:C,IsSomeRendererActing:{current:!1},assign:s};r.Children={map:A,forEach:function(e,t,r){A(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return A(e,(function(){t++})),t},toArray:function(e){return A(e,(function(e){return e}))||[]},only:function(e){if(!P(e))throw Error(g(143));return e}},r.Component=w,r.PureComponent=j,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,r.cloneElement=function(e,t,r){if(null==e)throw Error(g(267,e));var n=s({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=C.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(f in t)E.call(t,f)&&!k.hasOwnProperty(f)&&(n[f]=void 0===t[f]&&void 0!==u?u[f]:t[f])}var f=arguments.length-2;if(1===f)n.children=r;else if(1<f){u=Array(f);for(var l=0;l<f;l++)u[l]=arguments[l+2];n.children=u}return{$$typeof:c,type:e.type,key:o,ref:i,props:n,_owner:a}},r.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:p,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},r.createElement=O,r.createFactory=function(e){var t=O.bind(null,e);return t.type=e,t},r.createRef=function(){return{current:null}},r.forwardRef=function(e){return{$$typeof:d,render:e}},r.isValidElement=P,r.lazy=function(e){return{$$typeof:v,_payload:{_status:-1,_result:e},_init:I}},r.memo=function(e,t){return{$$typeof:y,type:e,compare:void 0===t?null:t}},r.useCallback=function(e,t){return T().useCallback(e,t)},r.useContext=function(e,t){return T().useContext(e,t)},r.useDebugValue=function(){},r.useEffect=function(e,t){return T().useEffect(e,t)},r.useImperativeHandle=function(e,t,r){return T().useImperativeHandle(e,t,r)},r.useLayoutEffect=function(e,t){return T().useLayoutEffect(e,t)},r.useMemo=function(e,t){return T().useMemo(e,t)},r.useReducer=function(e,t,r){return T().useReducer(e,t,r)},r.useRef=function(e){return T().useRef(e)},r.useState=function(e){return T().useState(e)},r.version="17.0.2";var U,J={};
|
|
10
10
|
/** @license React v17.0.2
|
|
11
11
|
* react.development.js
|
|
12
12
|
*
|
|
@@ -14,5 +14,5 @@ var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?windo
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/function M(e){t.exports.useEffect(e,[])}function q(){const e=t.exports.useRef(!1);return M((()=>(e.current=!0,()=>{e.current=!1}))),()=>e.current}U=J,"production"!==process.env.NODE_ENV&&function(){var e=u,t=60103,r=60106;U.Fragment=60107,U.StrictMode=60108,U.Profiler=60114;var n=60109,o=60110,i=60112;U.Suspense=60113;var a=60120,s=60115,c=60116,f=60121,l=60122,p=60117,d=60129,y=60131;if("function"==typeof Symbol&&Symbol.for){var v=Symbol.for;t=v("react.element"),r=v("react.portal"),U.Fragment=v("react.fragment"),U.StrictMode=v("react.strict_mode"),U.Profiler=v("react.profiler"),n=v("react.provider"),o=v("react.context"),i=v("react.forward_ref"),U.Suspense=v("react.suspense"),a=v("react.suspense_list"),s=v("react.memo"),c=v("react.lazy"),f=v("react.block"),l=v("react.server.block"),p=v("react.fundamental"),v("react.scope"),v("react.opaque.id"),d=v("react.debug_trace_mode"),v("react.offscreen"),y=v("react.legacy_hidden")}var m="function"==typeof Symbol&&Symbol.iterator;function h(e){if(null===e||"object"!=typeof e)return null;var t=m&&e[m]||e["@@iterator"];return"function"==typeof t?t:null}var g={current:null},b={current:null},_={},j=null;function w(e){j=e}_.setExtraStackFrame=function(e){j=e},_.getCurrentStack=null,_.getStackAddendum=function(){var e="";j&&(e+=j);var t=_.getCurrentStack;return t&&(e+=t()||""),e};var R={ReactCurrentDispatcher:g,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:b,IsSomeRendererActing:{current:!1},assign:e};function S(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];O("warn",e,r)}function C(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];O("error",e,r)}function O(e,t,r){var n=R.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(t+="%s",r=r.concat([n]));var o=r.map((function(e){return""+e}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}R.ReactDebugCurrentFrame=_;var k={};function E(e,t){var r=e.constructor,n=r&&(r.displayName||r.name)||"ReactClass",o=n+"."+t;k[o]||(C("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.",t,n),k[o]=!0)}var P={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){E(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){E(e,"replaceState")},enqueueSetState:function(e,t,r,n){E(e,"setState")}},x={};function $(e,t,r){this.props=e,this.context=t,this.refs=x,this.updater=r||P}Object.freeze(x),$.prototype.isReactComponent={},$.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)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")},$.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var A={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)."]},N=function(e,t){Object.defineProperty($.prototype,e,{get:function(){S("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var I in A)A.hasOwnProperty(I)&&N(I,A[I]);function F(){}function T(e,t,r){this.props=e,this.context=t,this.refs=x,this.updater=r||P}F.prototype=$.prototype;var D=T.prototype=new F;function J(e){return e.displayName||"Context"}function M(e){if(null==e)return null;if("number"==typeof e.tag&&C("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case U.Fragment:return"Fragment";case r:return"Portal";case U.Profiler:return"Profiler";case U.StrictMode:return"StrictMode";case U.Suspense:return"Suspense";case a:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case o:return J(e)+".Consumer";case n:return J(e._context)+".Provider";case i:return p=e,d=e.render,y="ForwardRef",v=d.displayName||d.name||"",p.displayName||(""!==v?y+"("+v+")":y);case s:return M(e.type);case f:return M(e._render);case c:var t=e,u=t._payload,l=t._init;try{return M(l(u))}catch(e){return null}}var p,d,y,v;return null}D.constructor=T,e(D,$.prototype),D.isPureReactComponent=!0;var q,z,L,B=Object.prototype.hasOwnProperty,V={key:!0,ref:!0,__self:!0,__source:!0};function W(e){if(B.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function Y(e){if(B.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function H(e,t){var r=function(){q||(q=!0,C("%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)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}function X(e,t){var r=function(){z||(z=!0,C("%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)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}function G(e){if("string"==typeof e.ref&&b.current&&e.__self&&b.current.stateNode!==e.__self){var t=M(b.current.type);L[t]||(C('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',t,e.ref),L[t]=!0)}}L={};var K=function(e,r,n,o,i,a,u){var s={$$typeof:t,type:e,key:r,ref:n,props:u,_owner:a,_store:{}};return Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function Q(e,t,r){var n,o={},i=null,a=null,u=null,s=null;if(null!=t)for(n in W(t)&&(a=t.ref,G(t)),Y(t)&&(i=""+t.key),u=void 0===t.__self?null:t.__self,s=void 0===t.__source?null:t.__source,t)B.call(t,n)&&!V.hasOwnProperty(n)&&(o[n]=t[n]);var c=arguments.length-2;if(1===c)o.children=r;else if(c>1){for(var f=Array(c),l=0;l<c;l++)f[l]=arguments[l+2];Object.freeze&&Object.freeze(f),o.children=f}if(e&&e.defaultProps){var p=e.defaultProps;for(n in p)void 0===o[n]&&(o[n]=p[n])}if(i||a){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;i&&H(o,d),a&&X(o,d)}return K(e,i,a,u,s,b.current,o)}function Z(t,r,n){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o,i,a=e({},t.props),u=t.key,s=t.ref,c=t._self,f=t._source,l=t._owner;if(null!=r)for(o in W(r)&&(s=r.ref,l=b.current),Y(r)&&(u=""+r.key),t.type&&t.type.defaultProps&&(i=t.type.defaultProps),r)B.call(r,o)&&!V.hasOwnProperty(o)&&(void 0===r[o]&&void 0!==i?a[o]=i[o]:a[o]=r[o]);var p=arguments.length-2;if(1===p)a.children=n;else if(p>1){for(var d=Array(p),y=0;y<p;y++)d[y]=arguments[y+2];a.children=d}return K(t.type,u,s,c,f,l,a)}function ee(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var te=!1,re=/\/+/g;function ne(e){return e.replace(re,"$&/")}function oe(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,(function(e){return n[e]}))):t.toString(36);var r,n}function ie(e,n,o,i,a){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var s,c,f,l=!1;if(null===e)l=!0;else switch(u){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case t:case r:l=!0}}if(l){var p=e,d=a(p),y=""===i?"."+oe(p,0):i;if(Array.isArray(d)){var v="";null!=y&&(v=ne(y)+"/"),ie(d,n,v,"",(function(e){return e}))}else null!=d&&(ee(d)&&(s=d,c=o+(!d.key||p&&p.key===d.key?"":ne(""+d.key)+"/")+y,d=K(s.type,c,s.ref,s._self,s._source,s._owner,s.props)),n.push(d));return 1}var m=0,g=""===i?".":i+":";if(Array.isArray(e))for(var b=0;b<e.length;b++)m+=ie(f=e[b],n,o,g+oe(f,b),a);else{var _=h(e);if("function"==typeof _){var j=e;_===j.entries&&(te||S("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),te=!0);for(var w,R=_.call(j),C=0;!(w=R.next()).done;)m+=ie(f=w.value,n,o,g+oe(f,C++),a)}else if("object"===u){var O=""+e;throw Error("Objects are not valid as a React child (found: "+("[object Object]"===O?"object with keys {"+Object.keys(e).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.")}}return m}function ae(e,t,r){if(null==e)return e;var n=[],o=0;return ie(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function ue(e){if(-1===e._status){var t=(0,e._result)(),r=e;r._status=0,r._result=t,t.then((function(t){if(0===e._status){var r=t.default;void 0===r&&C("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",t);var n=e;n._status=1,n._result=r}}),(function(t){if(0===e._status){var r=e;r._status=2,r._result=t}}))}if(1===e._status)return e._result;throw e._result}function se(e){return"string"==typeof e||"function"==typeof e||e===U.Fragment||e===U.Profiler||e===d||e===U.StrictMode||e===U.Suspense||e===a||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===c||e.$$typeof===s||e.$$typeof===n||e.$$typeof===o||e.$$typeof===i||e.$$typeof===p||e.$$typeof===f||e[0]===l)}function ce(){var e=g.current;if(null===e)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");return e}var fe,le,pe,de,ye,ve,me,he=0;function ge(){}ge.__reactDisabledLog=!0;var be,_e=R.ReactCurrentDispatcher;function je(e,t,r){if(void 0===be)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);be=n&&n[1]||""}return"\n"+be+e}var we,Re=!1,Se="function"==typeof WeakMap?WeakMap:Map;function Ce(t,r){if(!t||Re)return"";var n,o=we.get(t);if(void 0!==o)return o;Re=!0;var i,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,i=_e.current,_e.current=null,function(){if(0===he){fe=console.log,le=console.info,pe=console.warn,de=console.error,ye=console.group,ve=console.groupCollapsed,me=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ge,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}he++}();try{if(r){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(u,[])}catch(e){n=e}Reflect.construct(t,[],u)}else{try{u.call()}catch(e){n=e}t.call(u.prototype)}}else{try{throw Error()}catch(e){n=e}t()}}catch(e){if(e&&n&&"string"==typeof e.stack){for(var s=e.stack.split("\n"),c=n.stack.split("\n"),f=s.length-1,l=c.length-1;f>=1&&l>=0&&s[f]!==c[l];)l--;for(;f>=1&&l>=0;f--,l--)if(s[f]!==c[l]){if(1!==f||1!==l)do{if(f--,--l<0||s[f]!==c[l]){var p="\n"+s[f].replace(" at new "," at ");return"function"==typeof t&&we.set(t,p),p}}while(f>=1&&l>=0);break}}}finally{Re=!1,_e.current=i,function(){if(0==--he){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:e({},t,{value:fe}),info:e({},t,{value:le}),warn:e({},t,{value:pe}),error:e({},t,{value:de}),group:e({},t,{value:ye}),groupCollapsed:e({},t,{value:ve}),groupEnd:e({},t,{value:me})})}he<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=a}var d=t?t.displayName||t.name:"",y=d?je(d):"";return"function"==typeof t&&we.set(t,y),y}function Oe(e,t,r){return Ce(e,!1)}function ke(e,t,r){if(null==e)return"";if("function"==typeof e)return Ce(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return je(e);switch(e){case U.Suspense:return je("Suspense");case a:return je("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case i:return Oe(e.render);case s:return ke(e.type,t,r);case f:return Oe(e._render);case c:var n=e,o=n._payload,u=n._init;try{return ke(u(o),t,r)}catch(e){}}return""}we=new Se;var Ee,Pe={},xe=R.ReactDebugCurrentFrame;function $e(e){if(e){var t=e._owner,r=ke(e.type,e._source,t?t.type:null);xe.setExtraStackFrame(r)}else xe.setExtraStackFrame(null)}function Ae(e){if(e){var t=e._owner;w(ke(e.type,e._source,t?t.type:null))}else w(null)}function Ne(){if(b.current){var e=M(b.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function Ie(e){return null!=e&&void 0!==(t=e.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":"";var t}Ee=!1;var Fe={};function Te(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=function(e){var t=Ne();if(!t){var r="string"==typeof e?e:e.displayName||e.name;r&&(t="\n\nCheck the top-level render call using <"+r+">.")}return t}(t);if(!Fe[r]){Fe[r]=!0;var n="";e&&e._owner&&e._owner!==b.current&&(n=" It was passed a child from "+M(e._owner.type)+"."),Ae(e),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),Ae(null)}}}function De(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];ee(n)&&Te(n,t)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var o=h(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)ee(i.value)&&Te(i.value,t)}}function Ue(e){var t,r=e.type;if(null!=r&&"string"!=typeof r){if("function"==typeof r)t=r.propTypes;else{if("object"!=typeof r||r.$$typeof!==i&&r.$$typeof!==s)return;t=r.propTypes}if(t){var n=M(r);!function(e,t,r,n,o){var i=Function.call.bind(Object.prototype.hasOwnProperty);for(var a in e)if(i(e,a)){var u=void 0;try{if("function"!=typeof e[a]){var s=Error((n||"React class")+": "+r+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}u=e[a](t,a,n,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){u=e}!u||u instanceof Error||($e(o),C("%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).",n||"React class",r,a,typeof u),$e(null)),u instanceof Error&&!(u.message in Pe)&&(Pe[u.message]=!0,$e(o),C("Failed %s type: %s",r,u.message),$e(null))}}(t,e.props,"prop",n,e)}else void 0===r.PropTypes||Ee||(Ee=!0,C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",M(r)||"Unknown"));"function"!=typeof r.getDefaultProps||r.getDefaultProps.isReactClassApproved||C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Je(e){for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){Ae(e),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),Ae(null);break}}null!==e.ref&&(Ae(e),C("Invalid attribute `ref` supplied to `React.Fragment`."),Ae(null))}function Me(e,r,n){var o=se(e);if(!o){var i="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(i+=" 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 a,u=Ie(r);i+=u||Ne(),null===e?a="null":Array.isArray(e)?a="array":void 0!==e&&e.$$typeof===t?(a="<"+(M(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,C("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",a,i)}var s=Q.apply(this,arguments);if(null==s)return s;if(o)for(var c=2;c<arguments.length;c++)De(arguments[c],e);return e===U.Fragment?Je(s):Ue(s),s}var qe=!1;try{var ze=Object.freeze({});new Map([[ze,null]]),new Set([ze])}catch(e){}var Le=Me,Be=function(e,t,r){for(var n=Z.apply(this,arguments),o=2;o<arguments.length;o++)De(arguments[o],n.type);return Ue(n),n},Ve=function(e){var t=Me.bind(null,e);return t.type=e,qe||(qe=!0,S("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return S("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},We={map:ae,forEach:function(e,t,r){ae(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return ae(e,(function(){t++})),t},toArray:function(e){return ae(e,(function(e){return e}))||[]},only:function(e){if(!ee(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};U.Children=We,U.Component=$,U.PureComponent=T,U.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,U.cloneElement=Be,U.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&C("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:o,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null};r.Provider={$$typeof:n,_context:r};var i=!1,a=!1,u=!1,s={$$typeof:o,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(s,{Provider:{get:function(){return a||(a=!0,C("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),r.Provider},set:function(e){r.Provider=e}},_currentValue:{get:function(){return r._currentValue},set:function(e){r._currentValue=e}},_currentValue2:{get:function(){return r._currentValue2},set:function(e){r._currentValue2=e}},_threadCount:{get:function(){return r._threadCount},set:function(e){r._threadCount=e}},Consumer:{get:function(){return i||(i=!0,C("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}},displayName:{get:function(){return r.displayName},set:function(e){u||(S("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),u=!0)}}}),r.Consumer=s,r._currentRenderer=null,r._currentRenderer2=null,r},U.createElement=Le,U.createFactory=Ve,U.createRef=function(){var e={current:null};return Object.seal(e),e},U.forwardRef=function(e){null!=e&&e.$$typeof===s?C("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?C("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&C("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||C("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,r={$$typeof:i,render:e};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(r){t=r,null==e.displayName&&(e.displayName=r)}}),r},U.isValidElement=ee,U.lazy=function(e){var t,r,n={$$typeof:c,_payload:{_status:-1,_result:e},_init:ue};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){C("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."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){C("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."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},U.memo=function(e,t){se(e)||C("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var r,n={$$typeof:s,type:e,compare:void 0===t?null:t};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(t){r=t,null==e.displayName&&(e.displayName=t)}}),n},U.useCallback=function(e,t){return ce().useCallback(e,t)},U.useContext=function(e,t){var r=ce();if(void 0!==t&&C("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://reactjs.org/link/rules-of-hooks":""),void 0!==e._context){var n=e._context;n.Consumer===e?C("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?"):n.Provider===e&&C("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return r.useContext(e,t)},U.useDebugValue=function(e,t){return ce().useDebugValue(e,t)},U.useEffect=function(e,t){return ce().useEffect(e,t)},U.useImperativeHandle=function(e,t,r){return ce().useImperativeHandle(e,t,r)},U.useLayoutEffect=function(e,t){return ce().useLayoutEffect(e,t)},U.useMemo=function(e,t){return ce().useMemo(e,t)},U.useReducer=function(e,t,r){return ce().useReducer(e,t,r)},U.useRef=function(e){return ce().useRef(e)},U.useState=function(e){return ce().useState(e)},U.version="17.0.2"}(),"production"===process.env.NODE_ENV?t.exports=r:t.exports=J;var z={},L={};function B(e){return Array.isArray(e)}L.isntEmptyArray=L.isEmptyArray=L.isntArray=L.isArray=void 0,L.isArray=B,L.isntArray=function(e){return!B(e)},L.isEmptyArray=function(e){return 0===e.length},L.isntEmptyArray=function(e){return 0!==e.length};var V={},W={};function Y(e){return null===e}W.isntNull=W.isNull=void 0,W.isNull=Y,W.isntNull=function(e){return!Y(e)};var H={};function X(e){return void 0===e}H.isntUndefined=H.isUndefined=void 0,H.isUndefined=X,H.isntUndefined=function(e){return!X(e)},V.isntAsyncIterable=V.isAsyncIterable=void 0;const G=W,K=H;function Q(e){return G.isntNull(e)&&K.isntUndefined(e)&&"function"==typeof e[Symbol.asyncIterator]}V.isAsyncIterable=Q,V.isntAsyncIterable=function(e){return!Q(e)};var Z={};function ee(e){return"bigint"==typeof e}Z.isntBigInt=Z.isBigInt=void 0,Z.isBigInt=ee,Z.isntBigInt=function(e){return!ee(e)};var te={};function re(e){return"boolean"==typeof e}te.isntBoolean=te.isBoolean=void 0,te.isBoolean=re,te.isntBoolean=function(e){return!re(e)};var ne={},oe={};function ie(e){return ae(e)||ue(e)}function ae(e){return"string"==typeof e}function ue(e){return"object"==typeof e&&e instanceof String}oe.isntStringObject=oe.isStringObject=oe.isntStringPrimitive=oe.isStringPrimitive=oe.isntString=oe.isString=void 0,oe.isString=ie,oe.isntString=function(e){return!ie(e)},oe.isStringPrimitive=ae,oe.isntStringPrimitive=function(e){return!ae(e)},oe.isStringObject=ue,oe.isntStringObject=function(e){return!ue(e)},ne.isntCharObject=ne.isCharObject=ne.isntCharPrimitive=ne.isCharPrimitive=ne.isntChar=ne.isChar=void 0;const se=oe;function ce(e){return(se.isString(e)||se.isStringObject(e))&&1===e.length}function fe(e){return se.isString(e)&&1===e.length}function le(e){return se.isStringObject(e)&&1===e.length}ne.isChar=ce,ne.isntChar=function(e){return!ce(e)},ne.isCharPrimitive=fe,ne.isntCharPrimitive=function(e){return!fe(e)},ne.isCharObject=le,ne.isntCharObject=function(e){return!le(e)};var pe={};function de(e){return e instanceof Date}pe.isntDate=pe.isDate=void 0,pe.isDate=de,pe.isntDate=function(e){return!de(e)};var ye={};ye.inEnum=void 0,ye.inEnum=function(e,t){return Object.values(t).includes(e)};var ve={};function me(e){return!e}ve.isntFalsy=ve.isFalsy=void 0,ve.isFalsy=me,ve.isntFalsy=function(e){return!me(e)};var he={};function ge(e){return"function"==typeof e}he.isntFunction=he.isFunction=void 0,he.isFunction=ge,he.isntFunction=function(e){return!ge(e)};var be={};be.isntIterable=be.isIterable=void 0;const _e=W,je=H;function we(e){return _e.isntNull(e)&&je.isntUndefined(e)&&"function"==typeof e[Symbol.iterator]}be.isIterable=we,be.isntIterable=function(e){return!we(e)};var Re={},Se={};function Ce(e){return null!==e&&"object"==typeof e}Se.isntEmptyObject=Se.isEmptyObject=Se.isRecord=Se.isntObject=Se.isObject=void 0,Se.isObject=Ce,Se.isntObject=function(e){return!Ce(e)},Se.isRecord=function(e){return Ce(e)},Se.isEmptyObject=function(e){return 0===Object.keys(e).length},Se.isntEmptyObject=function(e){return 0!==Object.keys(e).length};var Oe={};function ke(e){return"number"==typeof e}Oe.isntNumber=Oe.isNumber=void 0,Oe.isNumber=ke,Oe.isntNumber=function(e){return!ke(e)},Re.isntJsonRpcError=Re.isJsonRpcError=Re.isntJsonRpcSuccess=Re.isJsonRpcSuccess=Re.isntJsonRpcRequest=Re.isJsonRpcRequest=Re.isntJsonRpcNotification=Re.isJsonRpcNotification=void 0;const Ee=L,Pe=Se,xe=oe,$e=Oe,Ae=H;function Ne(e){return xe.isString(e)||$e.isNumber(e)}function Ie(e){return Ee.isArray(e)||Pe.isObject(e)}function Fe(e){return Pe.isRecord(e)&&xe.isString(e.jsonrpc)&&xe.isString(e.method)&&Ae.isUndefined(e.id)&&Ie(e.params)}function Te(e){return Pe.isRecord(e)&&xe.isString(e.jsonrpc)&&xe.isString(e.method)&&Ne(e.id)&&Ie(e.params)}function De(e){return Pe.isRecord(e)&&xe.isString(e.jsonrpc)&&xe.isString(e.id)&&Ae.isntUndefined(e.result)}function Ue(e){return Pe.isRecord(e)&&xe.isString(e.jsonrpc)&&Ne(e.id)&&function(e){return Pe.isRecord(e)&&$e.isNumber(e.code)&&xe.isString(e.message)&&(Ae.isUndefined(e.data)||Pe.isObject(e.data))}(e.error)}Re.isJsonRpcNotification=Fe,Re.isntJsonRpcNotification=function(e){return!Fe(e)},Re.isJsonRpcRequest=Te,Re.isntJsonRpcRequest=function(e){return!Te(e)},Re.isJsonRpcSuccess=De,Re.isntJsonRpcSuccess=function(e){return!De(e)},Re.isJsonRpcError=Ue,Re.isntJsonRpcError=function(e){return!Ue(e)};var Je={};Je.isntJson=Je.isJson=void 0,Je.isJson=function(e){try{return JSON.stringify(e),!0}catch(e){return!1}},Je.isntJson=function e(t){return!e()};var Me={};Me.isAbsoluteURL=void 0,Me.isAbsoluteURL=function(e){try{return new URL(e),!0}catch(e){return!1}},function(t){var r=e&&e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=e&&e.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};n(L,t),n(V,t),n(Z,t),n(te,t),n(ne,t),n(pe,t),n(ye,t),n(ve,t),n(he,t),n(be,t),n(Re,t),n(Je,t),n(W,t),n(Oe,t),n(Se,t),n(oe,t),n(H,t),n(Me,t)}(z);var qe={},ze={CustomError:void 0};class Le extends Error{get name(){return this.constructor.name}}ze.CustomError=Le;var Be={ExpectedError:void 0};const Ve=ze;class We extends Ve.CustomError{}Be.ExpectedError=We;var Ye={AssertionError:void 0};const He=ze;class Xe extends He.CustomError{}Ye.AssertionError=Xe;var Ge={};Ge.normalize=void 0,Ge.normalize=function(e){var t;return{name:e.name,message:e.message,stack:null!==(t=e.stack)&&void 0!==t?t:null}};var Ke={refute:void 0};const Qe=Be;Ke.refute=function(e,t){if(e)throw new Qe.ExpectedError(t)};var Ze={assert:void 0};const et=Ye;function tt(e,r){qe.assert(e.length>0,"The parameter values must be a non-empty array"),z.isntUndefined(r)&&qe.assert(r>=0&&r<e.length,"The parameter defaultIndex must be in the range of 0 to values.length");const[n,o]=t.exports.useState(r);return{value:z.isUndefined(n)?void 0:e[n],options:e.map(((e,t)=>({value:e,index:t,selected:t===n,select:()=>o(t)})))}}function rt(e,r=0){const[n,o]=t.exports.useState(r);return[e[n],()=>{n+1<e.length?o(n+1):o(0)}]}function nt(e=!1){const[r,n]=t.exports.useState(e);return[r,()=>n((e=>!e))]}Ze.assert=function(e,t){if(!e)throw new et.AssertionError(t)},function(t){var r=e&&e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=e&&e.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};n(ze,t),n(Be,t),n(Ye,t),n(Ge,t),n(Ke,t),n(Ze,t)}(qe);export{q as useIsMounted,M as useMount,tt as useSingleSelection,rt as useStateCycle,nt as useToggle};
|
|
17
|
+
*/function M(e){const[r,n]=t.exports.useState(e);return[r,t.exports.useCallback(((e=1)=>{n((t=>t+e))}),[]),t.exports.useCallback((()=>{n(e)}),[])]}function q(e){t.exports.useEffect(e,[])}function z(){const e=t.exports.useRef(!1);return q((()=>(e.current=!0,()=>{e.current=!1}))),()=>e.current}U=J,"production"!==process.env.NODE_ENV&&function(){var e=u,t=60103,r=60106;U.Fragment=60107,U.StrictMode=60108,U.Profiler=60114;var n=60109,o=60110,i=60112;U.Suspense=60113;var a=60120,s=60115,c=60116,f=60121,l=60122,p=60117,d=60129,y=60131;if("function"==typeof Symbol&&Symbol.for){var v=Symbol.for;t=v("react.element"),r=v("react.portal"),U.Fragment=v("react.fragment"),U.StrictMode=v("react.strict_mode"),U.Profiler=v("react.profiler"),n=v("react.provider"),o=v("react.context"),i=v("react.forward_ref"),U.Suspense=v("react.suspense"),a=v("react.suspense_list"),s=v("react.memo"),c=v("react.lazy"),f=v("react.block"),l=v("react.server.block"),p=v("react.fundamental"),v("react.scope"),v("react.opaque.id"),d=v("react.debug_trace_mode"),v("react.offscreen"),y=v("react.legacy_hidden")}var m="function"==typeof Symbol&&Symbol.iterator;function h(e){if(null===e||"object"!=typeof e)return null;var t=m&&e[m]||e["@@iterator"];return"function"==typeof t?t:null}var g={current:null},b={current:null},_={},w=null;function R(e){w=e}_.setExtraStackFrame=function(e){w=e},_.getCurrentStack=null,_.getStackAddendum=function(){var e="";w&&(e+=w);var t=_.getCurrentStack;return t&&(e+=t()||""),e};var j={ReactCurrentDispatcher:g,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:b,IsSomeRendererActing:{current:!1},assign:e};function S(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];E("warn",e,r)}function C(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];E("error",e,r)}function E(e,t,r){var n=j.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(t+="%s",r=r.concat([n]));var o=r.map((function(e){return""+e}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}j.ReactDebugCurrentFrame=_;var k={};function O(e,t){var r=e.constructor,n=r&&(r.displayName||r.name)||"ReactClass",o=n+"."+t;k[o]||(C("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.",t,n),k[o]=!0)}var P={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){O(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){O(e,"replaceState")},enqueueSetState:function(e,t,r,n){O(e,"setState")}},x={};function $(e,t,r){this.props=e,this.context=t,this.refs=x,this.updater=r||P}Object.freeze(x),$.prototype.isReactComponent={},$.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)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")},$.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var N={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)."]},A=function(e,t){Object.defineProperty($.prototype,e,{get:function(){S("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var I in N)N.hasOwnProperty(I)&&A(I,N[I]);function F(){}function T(e,t,r){this.props=e,this.context=t,this.refs=x,this.updater=r||P}F.prototype=$.prototype;var D=T.prototype=new F;function J(e){return e.displayName||"Context"}function M(e){if(null==e)return null;if("number"==typeof e.tag&&C("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case U.Fragment:return"Fragment";case r:return"Portal";case U.Profiler:return"Profiler";case U.StrictMode:return"StrictMode";case U.Suspense:return"Suspense";case a:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case o:return J(e)+".Consumer";case n:return J(e._context)+".Provider";case i:return p=e,d=e.render,y="ForwardRef",v=d.displayName||d.name||"",p.displayName||(""!==v?y+"("+v+")":y);case s:return M(e.type);case f:return M(e._render);case c:var t=e,u=t._payload,l=t._init;try{return M(l(u))}catch(e){return null}}var p,d,y,v;return null}D.constructor=T,e(D,$.prototype),D.isPureReactComponent=!0;var q,z,L,B=Object.prototype.hasOwnProperty,V={key:!0,ref:!0,__self:!0,__source:!0};function W(e){if(B.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function Y(e){if(B.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function H(e,t){var r=function(){q||(q=!0,C("%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)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}function X(e,t){var r=function(){z||(z=!0,C("%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)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}function G(e){if("string"==typeof e.ref&&b.current&&e.__self&&b.current.stateNode!==e.__self){var t=M(b.current.type);L[t]||(C('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',t,e.ref),L[t]=!0)}}L={};var K=function(e,r,n,o,i,a,u){var s={$$typeof:t,type:e,key:r,ref:n,props:u,_owner:a,_store:{}};return Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function Q(e,t,r){var n,o={},i=null,a=null,u=null,s=null;if(null!=t)for(n in W(t)&&(a=t.ref,G(t)),Y(t)&&(i=""+t.key),u=void 0===t.__self?null:t.__self,s=void 0===t.__source?null:t.__source,t)B.call(t,n)&&!V.hasOwnProperty(n)&&(o[n]=t[n]);var c=arguments.length-2;if(1===c)o.children=r;else if(c>1){for(var f=Array(c),l=0;l<c;l++)f[l]=arguments[l+2];Object.freeze&&Object.freeze(f),o.children=f}if(e&&e.defaultProps){var p=e.defaultProps;for(n in p)void 0===o[n]&&(o[n]=p[n])}if(i||a){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;i&&H(o,d),a&&X(o,d)}return K(e,i,a,u,s,b.current,o)}function Z(t,r,n){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o,i,a=e({},t.props),u=t.key,s=t.ref,c=t._self,f=t._source,l=t._owner;if(null!=r)for(o in W(r)&&(s=r.ref,l=b.current),Y(r)&&(u=""+r.key),t.type&&t.type.defaultProps&&(i=t.type.defaultProps),r)B.call(r,o)&&!V.hasOwnProperty(o)&&(void 0===r[o]&&void 0!==i?a[o]=i[o]:a[o]=r[o]);var p=arguments.length-2;if(1===p)a.children=n;else if(p>1){for(var d=Array(p),y=0;y<p;y++)d[y]=arguments[y+2];a.children=d}return K(t.type,u,s,c,f,l,a)}function ee(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var te=!1,re=/\/+/g;function ne(e){return e.replace(re,"$&/")}function oe(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,(function(e){return n[e]}))):t.toString(36);var r,n}function ie(e,n,o,i,a){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var s,c,f,l=!1;if(null===e)l=!0;else switch(u){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case t:case r:l=!0}}if(l){var p=e,d=a(p),y=""===i?"."+oe(p,0):i;if(Array.isArray(d)){var v="";null!=y&&(v=ne(y)+"/"),ie(d,n,v,"",(function(e){return e}))}else null!=d&&(ee(d)&&(s=d,c=o+(!d.key||p&&p.key===d.key?"":ne(""+d.key)+"/")+y,d=K(s.type,c,s.ref,s._self,s._source,s._owner,s.props)),n.push(d));return 1}var m=0,g=""===i?".":i+":";if(Array.isArray(e))for(var b=0;b<e.length;b++)m+=ie(f=e[b],n,o,g+oe(f,b),a);else{var _=h(e);if("function"==typeof _){var w=e;_===w.entries&&(te||S("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),te=!0);for(var R,j=_.call(w),C=0;!(R=j.next()).done;)m+=ie(f=R.value,n,o,g+oe(f,C++),a)}else if("object"===u){var E=""+e;throw Error("Objects are not valid as a React child (found: "+("[object Object]"===E?"object with keys {"+Object.keys(e).join(", ")+"}":E)+"). If you meant to render a collection of children, use an array instead.")}}return m}function ae(e,t,r){if(null==e)return e;var n=[],o=0;return ie(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function ue(e){if(-1===e._status){var t=(0,e._result)(),r=e;r._status=0,r._result=t,t.then((function(t){if(0===e._status){var r=t.default;void 0===r&&C("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",t);var n=e;n._status=1,n._result=r}}),(function(t){if(0===e._status){var r=e;r._status=2,r._result=t}}))}if(1===e._status)return e._result;throw e._result}function se(e){return"string"==typeof e||"function"==typeof e||e===U.Fragment||e===U.Profiler||e===d||e===U.StrictMode||e===U.Suspense||e===a||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===c||e.$$typeof===s||e.$$typeof===n||e.$$typeof===o||e.$$typeof===i||e.$$typeof===p||e.$$typeof===f||e[0]===l)}function ce(){var e=g.current;if(null===e)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");return e}var fe,le,pe,de,ye,ve,me,he=0;function ge(){}ge.__reactDisabledLog=!0;var be,_e=j.ReactCurrentDispatcher;function we(e,t,r){if(void 0===be)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);be=n&&n[1]||""}return"\n"+be+e}var Re,je=!1,Se="function"==typeof WeakMap?WeakMap:Map;function Ce(t,r){if(!t||je)return"";var n,o=Re.get(t);if(void 0!==o)return o;je=!0;var i,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,i=_e.current,_e.current=null,function(){if(0===he){fe=console.log,le=console.info,pe=console.warn,de=console.error,ye=console.group,ve=console.groupCollapsed,me=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ge,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}he++}();try{if(r){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(u,[])}catch(e){n=e}Reflect.construct(t,[],u)}else{try{u.call()}catch(e){n=e}t.call(u.prototype)}}else{try{throw Error()}catch(e){n=e}t()}}catch(e){if(e&&n&&"string"==typeof e.stack){for(var s=e.stack.split("\n"),c=n.stack.split("\n"),f=s.length-1,l=c.length-1;f>=1&&l>=0&&s[f]!==c[l];)l--;for(;f>=1&&l>=0;f--,l--)if(s[f]!==c[l]){if(1!==f||1!==l)do{if(f--,--l<0||s[f]!==c[l]){var p="\n"+s[f].replace(" at new "," at ");return"function"==typeof t&&Re.set(t,p),p}}while(f>=1&&l>=0);break}}}finally{je=!1,_e.current=i,function(){if(0==--he){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:e({},t,{value:fe}),info:e({},t,{value:le}),warn:e({},t,{value:pe}),error:e({},t,{value:de}),group:e({},t,{value:ye}),groupCollapsed:e({},t,{value:ve}),groupEnd:e({},t,{value:me})})}he<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=a}var d=t?t.displayName||t.name:"",y=d?we(d):"";return"function"==typeof t&&Re.set(t,y),y}function Ee(e,t,r){return Ce(e,!1)}function ke(e,t,r){if(null==e)return"";if("function"==typeof e)return Ce(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return we(e);switch(e){case U.Suspense:return we("Suspense");case a:return we("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case i:return Ee(e.render);case s:return ke(e.type,t,r);case f:return Ee(e._render);case c:var n=e,o=n._payload,u=n._init;try{return ke(u(o),t,r)}catch(e){}}return""}Re=new Se;var Oe,Pe={},xe=j.ReactDebugCurrentFrame;function $e(e){if(e){var t=e._owner,r=ke(e.type,e._source,t?t.type:null);xe.setExtraStackFrame(r)}else xe.setExtraStackFrame(null)}function Ne(e){if(e){var t=e._owner;R(ke(e.type,e._source,t?t.type:null))}else R(null)}function Ae(){if(b.current){var e=M(b.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function Ie(e){return null!=e&&void 0!==(t=e.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":"";var t}Oe=!1;var Fe={};function Te(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=function(e){var t=Ae();if(!t){var r="string"==typeof e?e:e.displayName||e.name;r&&(t="\n\nCheck the top-level render call using <"+r+">.")}return t}(t);if(!Fe[r]){Fe[r]=!0;var n="";e&&e._owner&&e._owner!==b.current&&(n=" It was passed a child from "+M(e._owner.type)+"."),Ne(e),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),Ne(null)}}}function De(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];ee(n)&&Te(n,t)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var o=h(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)ee(i.value)&&Te(i.value,t)}}function Ue(e){var t,r=e.type;if(null!=r&&"string"!=typeof r){if("function"==typeof r)t=r.propTypes;else{if("object"!=typeof r||r.$$typeof!==i&&r.$$typeof!==s)return;t=r.propTypes}if(t){var n=M(r);!function(e,t,r,n,o){var i=Function.call.bind(Object.prototype.hasOwnProperty);for(var a in e)if(i(e,a)){var u=void 0;try{if("function"!=typeof e[a]){var s=Error((n||"React class")+": "+r+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}u=e[a](t,a,n,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){u=e}!u||u instanceof Error||($e(o),C("%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).",n||"React class",r,a,typeof u),$e(null)),u instanceof Error&&!(u.message in Pe)&&(Pe[u.message]=!0,$e(o),C("Failed %s type: %s",r,u.message),$e(null))}}(t,e.props,"prop",n,e)}else void 0===r.PropTypes||Oe||(Oe=!0,C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",M(r)||"Unknown"));"function"!=typeof r.getDefaultProps||r.getDefaultProps.isReactClassApproved||C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Je(e){for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){Ne(e),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),Ne(null);break}}null!==e.ref&&(Ne(e),C("Invalid attribute `ref` supplied to `React.Fragment`."),Ne(null))}function Me(e,r,n){var o=se(e);if(!o){var i="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(i+=" 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 a,u=Ie(r);i+=u||Ae(),null===e?a="null":Array.isArray(e)?a="array":void 0!==e&&e.$$typeof===t?(a="<"+(M(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,C("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",a,i)}var s=Q.apply(this,arguments);if(null==s)return s;if(o)for(var c=2;c<arguments.length;c++)De(arguments[c],e);return e===U.Fragment?Je(s):Ue(s),s}var qe=!1;try{var ze=Object.freeze({});new Map([[ze,null]]),new Set([ze])}catch(e){}var Le=Me,Be=function(e,t,r){for(var n=Z.apply(this,arguments),o=2;o<arguments.length;o++)De(arguments[o],n.type);return Ue(n),n},Ve=function(e){var t=Me.bind(null,e);return t.type=e,qe||(qe=!0,S("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return S("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},We={map:ae,forEach:function(e,t,r){ae(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return ae(e,(function(){t++})),t},toArray:function(e){return ae(e,(function(e){return e}))||[]},only:function(e){if(!ee(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};U.Children=We,U.Component=$,U.PureComponent=T,U.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,U.cloneElement=Be,U.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&C("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:o,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null};r.Provider={$$typeof:n,_context:r};var i=!1,a=!1,u=!1,s={$$typeof:o,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(s,{Provider:{get:function(){return a||(a=!0,C("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),r.Provider},set:function(e){r.Provider=e}},_currentValue:{get:function(){return r._currentValue},set:function(e){r._currentValue=e}},_currentValue2:{get:function(){return r._currentValue2},set:function(e){r._currentValue2=e}},_threadCount:{get:function(){return r._threadCount},set:function(e){r._threadCount=e}},Consumer:{get:function(){return i||(i=!0,C("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}},displayName:{get:function(){return r.displayName},set:function(e){u||(S("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),u=!0)}}}),r.Consumer=s,r._currentRenderer=null,r._currentRenderer2=null,r},U.createElement=Le,U.createFactory=Ve,U.createRef=function(){var e={current:null};return Object.seal(e),e},U.forwardRef=function(e){null!=e&&e.$$typeof===s?C("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?C("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&C("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||C("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,r={$$typeof:i,render:e};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(r){t=r,null==e.displayName&&(e.displayName=r)}}),r},U.isValidElement=ee,U.lazy=function(e){var t,r,n={$$typeof:c,_payload:{_status:-1,_result:e},_init:ue};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){C("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."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){C("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."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},U.memo=function(e,t){se(e)||C("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var r,n={$$typeof:s,type:e,compare:void 0===t?null:t};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(t){r=t,null==e.displayName&&(e.displayName=t)}}),n},U.useCallback=function(e,t){return ce().useCallback(e,t)},U.useContext=function(e,t){var r=ce();if(void 0!==t&&C("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://reactjs.org/link/rules-of-hooks":""),void 0!==e._context){var n=e._context;n.Consumer===e?C("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?"):n.Provider===e&&C("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return r.useContext(e,t)},U.useDebugValue=function(e,t){return ce().useDebugValue(e,t)},U.useEffect=function(e,t){return ce().useEffect(e,t)},U.useImperativeHandle=function(e,t,r){return ce().useImperativeHandle(e,t,r)},U.useLayoutEffect=function(e,t){return ce().useLayoutEffect(e,t)},U.useMemo=function(e,t){return ce().useMemo(e,t)},U.useReducer=function(e,t,r){return ce().useReducer(e,t,r)},U.useRef=function(e){return ce().useRef(e)},U.useState=function(e){return ce().useState(e)},U.version="17.0.2"}(),"production"===process.env.NODE_ENV?t.exports=r:t.exports=J;var L={},B={};function V(e){return Array.isArray(e)}B.isntEmptyArray=B.isEmptyArray=B.isntArray=B.isArray=void 0,B.isArray=V,B.isntArray=function(e){return!V(e)},B.isEmptyArray=function(e){return 0===e.length},B.isntEmptyArray=function(e){return 0!==e.length};var W={},Y={};function H(e){return null===e}Y.isntNull=Y.isNull=void 0,Y.isNull=H,Y.isntNull=function(e){return!H(e)};var X={};function G(e){return void 0===e}X.isntUndefined=X.isUndefined=void 0,X.isUndefined=G,X.isntUndefined=function(e){return!G(e)},W.isntAsyncIterable=W.isAsyncIterable=void 0;const K=Y,Q=X;function Z(e){return(0,K.isntNull)(e)&&(0,Q.isntUndefined)(e)&&"function"==typeof e[Symbol.asyncIterator]}W.isAsyncIterable=Z,W.isntAsyncIterable=function(e){return!Z(e)};var ee={};function te(e){return"bigint"==typeof e}ee.isntBigInt=ee.isBigInt=void 0,ee.isBigInt=te,ee.isntBigInt=function(e){return!te(e)};var re={};function ne(e){return"boolean"==typeof e}re.isntBoolean=re.isBoolean=void 0,re.isBoolean=ne,re.isntBoolean=function(e){return!ne(e)};var oe={},ie={};function ae(e){return"string"==typeof e}ie.isntString=ie.isString=void 0,ie.isString=ae,ie.isntString=function(e){return!ae(e)},oe.isntChar=oe.isChar=void 0;const ue=ie;function se(e){return(0,ue.isString)(e)&&1===e.length}oe.isChar=se,oe.isntChar=function(e){return!se(e)};var ce={};function fe(e){return e instanceof Date}ce.isntDate=ce.isDate=void 0,ce.isDate=fe,ce.isntDate=function(e){return!fe(e)};var le={};le.inEnum=void 0,le.inEnum=function(e,t){return Object.values(t).includes(e)};var pe={};function de(e){return e instanceof Error}pe.isntError=pe.isError=void 0,pe.isError=de,pe.isntError=function(e){return!de(e)};var ye={};function ve(e){return!e}ye.isntFalsy=ye.isFalsy=void 0,ye.isFalsy=ve,ye.isntFalsy=function(e){return!ve(e)};var me={};function he(e){return"function"==typeof e}me.isntFunction=me.isFunction=void 0,me.isFunction=he,me.isntFunction=function(e){return!he(e)};var ge={};ge.isntIterable=ge.isIterable=void 0;const be=Y,_e=X;function we(e){return(0,be.isntNull)(e)&&(0,_e.isntUndefined)(e)&&"function"==typeof e[Symbol.iterator]}ge.isIterable=we,ge.isntIterable=function(e){return!we(e)};var Re={},je={};function Se(e){return null!==e&&"object"==typeof e}je.isntEmptyObject=je.isEmptyObject=je.isRecord=je.isntObject=je.isObject=void 0,je.isObject=Se,je.isntObject=function(e){return!Se(e)},je.isRecord=function(e){return Se(e)},je.isEmptyObject=function(e){return 0===Object.keys(e).length},je.isntEmptyObject=function(e){return 0!==Object.keys(e).length};var Ce={};function Ee(e){return"number"==typeof e}Ce.isntNumber=Ce.isNumber=void 0,Ce.isNumber=Ee,Ce.isntNumber=function(e){return!Ee(e)},Re.isntJsonRpcError=Re.isJsonRpcError=Re.isntJsonRpcSuccess=Re.isJsonRpcSuccess=Re.isntJsonRpcRequest=Re.isJsonRpcRequest=Re.isntJsonRpcNotification=Re.isJsonRpcNotification=void 0;const ke=B,Oe=je,Pe=ie,xe=Ce,$e=X;function Ne(e){return(0,Pe.isString)(e)||(0,xe.isNumber)(e)}function Ae(e){return(0,ke.isArray)(e)||(0,Oe.isObject)(e)}function Ie(e){return(0,Oe.isRecord)(e)&&(0,Pe.isString)(e.jsonrpc)&&(0,Pe.isString)(e.method)&&(0,$e.isUndefined)(e.id)&&Ae(e.params)}function Fe(e){return(0,Oe.isRecord)(e)&&(0,Pe.isString)(e.jsonrpc)&&(0,Pe.isString)(e.method)&&Ne(e.id)&&Ae(e.params)}function Te(e){return(0,Oe.isRecord)(e)&&(0,Pe.isString)(e.jsonrpc)&&(0,Pe.isString)(e.id)&&"result"in e}function De(e){return(0,Oe.isRecord)(e)&&(0,Pe.isString)(e.jsonrpc)&&Ne(e.id)&&function(e){return(0,Oe.isRecord)(e)&&(0,xe.isNumber)(e.code)&&(0,Pe.isString)(e.message)&&((0,$e.isUndefined)(e.data)||(0,Oe.isObject)(e.data))}(e.error)}Re.isJsonRpcNotification=Ie,Re.isntJsonRpcNotification=function(e){return!Ie(e)},Re.isJsonRpcRequest=Fe,Re.isntJsonRpcRequest=function(e){return!Fe(e)},Re.isJsonRpcSuccess=Te,Re.isntJsonRpcSuccess=function(e){return!Te(e)},Re.isJsonRpcError=De,Re.isntJsonRpcError=function(e){return!De(e)};var Ue={};Ue.isntJson=Ue.isJson=void 0,Ue.isJson=function(e){try{return JSON.stringify(e),!0}catch(e){return!1}},Ue.isntJson=function e(t){return!e()};var Je={};Je.isAbsoluteURL=void 0,Je.isAbsoluteURL=function(e){try{return new URL(e),!0}catch(e){return!1}},function(t){var r=e&&e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=e&&e.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};n(B,t),n(W,t),n(ee,t),n(re,t),n(oe,t),n(ce,t),n(le,t),n(pe,t),n(ye,t),n(me,t),n(ge,t),n(Re,t),n(Ue,t),n(Y,t),n(Ce,t),n(je,t),n(ie,t),n(X,t),n(Je,t)}(L);var Me={},qe={CustomError:void 0};class ze extends Error{get name(){return this.constructor.name}}qe.CustomError=ze;var Le={ExpectedError:void 0};const Be=qe;class Ve extends Be.CustomError{}Le.ExpectedError=Ve;var We={AssertionError:void 0};const Ye=qe;class He extends Ye.CustomError{}We.AssertionError=He;var Xe={};Xe.normalize=void 0,Xe.normalize=function(e){var t;return{name:e.name,message:e.message,stack:null!==(t=e.stack)&&void 0!==t?t:null}};var Ge={refute:void 0};const Ke=Le;Ge.refute=function(e,t){if(e)throw new Ke.ExpectedError(t)};var Qe={assert:void 0};const Ze=We;function et(e,r){Me.assert(e.length>0,"The parameter values must be a non-empty array"),L.isntUndefined(r)&&Me.assert(r>=0&&r<e.length,"The parameter defaultIndex must be in the range of 0 to values.length");const[n,o]=t.exports.useState(r);return{value:L.isUndefined(n)?void 0:e[n],options:e.map(((e,t)=>({value:e,index:t,selected:t===n,select:()=>o(t)})))}}function tt(e,r=0){const[n,o]=t.exports.useState(r);return[e[n],()=>o((t=>t+1<e.length?t+1:0))]}function rt(e=!1){const[r,n]=t.exports.useState(e);return[r,()=>n((e=>!e))]}function nt(e,r){const n=r.map((e=>e.current));t.exports.useEffect((()=>{const t=new ResizeObserver(e);return r.map((e=>e.current)).filter(L.isntNull).forEach((e=>t.observe(e))),()=>t.disconnect()}),n)}function ot(e,r=0){const[n,o]=t.exports.useState(r);return[e[n],()=>{o((t=>t===e.length-1?t:t+1))},()=>{o((e=>0===e?e:e-1))}]}function it(){const[,e]=t.exports.useState({});return()=>e({})}Qe.assert=function(e,t){if(!e)throw new Ze.AssertionError(t)},function(t){var r=e&&e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=e&&e.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};n(qe,t),n(Le,t),n(We,t),n(Xe,t),n(Ge,t),n(Qe,t)}(Me);export{it as useForceUpdate,M as useIncrement,z as useIsMounted,q as useMount,nt as useResizeObserver,et as useSingleSelection,tt as useStateCycle,ot as useStep,rt as useToggle};
|
|
18
18
|
//# sourceMappingURL=index.min.mjs.map
|