@protonradio/proton-ui 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/proton-ui.es.js +3176 -0
- package/dist/proton-ui.umd.js +65 -0
- package/package.json +1 -1
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
(function(Ue,et){typeof exports=="object"&&typeof module<"u"?et(exports):typeof define=="function"&&define.amd?define(["exports"],et):(Ue=typeof globalThis<"u"?globalThis:Ue||self,et(Ue["proton-ui"]={}))})(this,function(Ue){"use strict";function et(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var It={exports:{}},tt={},Nt={exports:{}},x={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var mr;function bn(){if(mr)return x;mr=1;var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),b=Symbol.for("react.provider"),v=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),K=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),re=Symbol.iterator;function ce(i){return i===null||typeof i!="object"?null:(i=re&&i[re]||i["@@iterator"],typeof i=="function"?i:null)}var fe={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ve=Object.assign,ye={};function ne(i,h,S){this.props=i,this.context=h,this.refs=ye,this.updater=S||fe}ne.prototype.isReactComponent={},ne.prototype.setState=function(i,h){if(typeof i!="object"&&typeof i!="function"&&i!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,i,h,"setState")},ne.prototype.forceUpdate=function(i){this.updater.enqueueForceUpdate(this,i,"forceUpdate")};function ae(){}ae.prototype=ne.prototype;function j(i,h,S){this.props=i,this.context=h,this.refs=ye,this.updater=S||fe}var X=j.prototype=new ae;X.constructor=j,ve(X,ne.prototype),X.isPureReactComponent=!0;var oe=Array.isArray,U=Object.prototype.hasOwnProperty,ie={current:null},he={key:!0,ref:!0,__self:!0,__source:!0};function u(i,h,S){var N,D={},G=null,q=null;if(h!=null)for(N in h.ref!==void 0&&(q=h.ref),h.key!==void 0&&(G=""+h.key),h)U.call(h,N)&&!he.hasOwnProperty(N)&&(D[N]=h[N]);var H=arguments.length-2;if(H===1)D.children=S;else if(1<H){for(var Y=Array(H),le=0;le<H;le++)Y[le]=arguments[le+2];D.children=Y}if(i&&i.defaultProps)for(N in H=i.defaultProps,H)D[N]===void 0&&(D[N]=H[N]);return{$$typeof:t,type:i,key:G,ref:q,props:D,_owner:ie.current}}function O(i,h){return{$$typeof:t,type:i.type,key:h,ref:i.ref,props:i.props,_owner:i._owner}}function ue(i){return typeof i=="object"&&i!==null&&i.$$typeof===t}function E(i){var h={"=":"=0",":":"=2"};return"$"+i.replace(/[=:]/g,function(S){return h[S]})}var V=/\/+/g;function d(i,h){return typeof i=="object"&&i!==null&&i.key!=null?E(""+i.key):h.toString(36)}function g(i,h,S,N,D){var G=typeof i;(G==="undefined"||G==="boolean")&&(i=null);var q=!1;if(i===null)q=!0;else switch(G){case"string":case"number":q=!0;break;case"object":switch(i.$$typeof){case t:case r:q=!0}}if(q)return q=i,D=D(q),i=N===""?"."+d(q,0):N,oe(D)?(S="",i!=null&&(S=i.replace(V,"$&/")+"/"),g(D,h,S,"",function(le){return le})):D!=null&&(ue(D)&&(D=O(D,S+(!D.key||q&&q.key===D.key?"":(""+D.key).replace(V,"$&/")+"/")+i)),h.push(D)),1;if(q=0,N=N===""?".":N+":",oe(i))for(var H=0;H<i.length;H++){G=i[H];var Y=N+d(G,H);q+=g(G,h,S,Y,D)}else if(Y=ce(i),typeof Y=="function")for(i=Y.call(i),H=0;!(G=i.next()).done;)G=G.value,Y=N+d(G,H++),q+=g(G,h,S,Y,D);else if(G==="object")throw h=String(i),Error("Objects are not valid as a React child (found: "+(h==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.");return q}function A(i,h,S){if(i==null)return i;var N=[],D=0;return g(i,N,"","",function(G){return h.call(S,G,D++)}),N}function be(i){if(i._status===-1){var h=i._result;h=h(),h.then(function(S){(i._status===0||i._status===-1)&&(i._status=1,i._result=S)},function(S){(i._status===0||i._status===-1)&&(i._status=2,i._result=S)}),i._status===-1&&(i._status=0,i._result=h)}if(i._status===1)return i._result.default;throw i._result}var $={current:null},Ee={transition:null},Fe={ReactCurrentDispatcher:$,ReactCurrentBatchConfig:Ee,ReactCurrentOwner:ie};return x.Children={map:A,forEach:function(i,h,S){A(i,function(){h.apply(this,arguments)},S)},count:function(i){var h=0;return A(i,function(){h++}),h},toArray:function(i){return A(i,function(h){return h})||[]},only:function(i){if(!ue(i))throw Error("React.Children.only expected to receive a single React element child.");return i}},x.Component=ne,x.Fragment=o,x.Profiler=f,x.PureComponent=j,x.StrictMode=l,x.Suspense=P,x.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Fe,x.cloneElement=function(i,h,S){if(i==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+i+".");var N=ve({},i.props),D=i.key,G=i.ref,q=i._owner;if(h!=null){if(h.ref!==void 0&&(G=h.ref,q=ie.current),h.key!==void 0&&(D=""+h.key),i.type&&i.type.defaultProps)var H=i.type.defaultProps;for(Y in h)U.call(h,Y)&&!he.hasOwnProperty(Y)&&(N[Y]=h[Y]===void 0&&H!==void 0?H[Y]:h[Y])}var Y=arguments.length-2;if(Y===1)N.children=S;else if(1<Y){H=Array(Y);for(var le=0;le<Y;le++)H[le]=arguments[le+2];N.children=H}return{$$typeof:t,type:i.type,key:D,ref:G,props:N,_owner:q}},x.createContext=function(i){return i={$$typeof:v,_currentValue:i,_currentValue2:i,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},i.Provider={$$typeof:b,_context:i},i.Consumer=i},x.createElement=u,x.createFactory=function(i){var h=u.bind(null,i);return h.type=i,h},x.createRef=function(){return{current:null}},x.forwardRef=function(i){return{$$typeof:C,render:i}},x.isValidElement=ue,x.lazy=function(i){return{$$typeof:I,_payload:{_status:-1,_result:i},_init:be}},x.memo=function(i,h){return{$$typeof:K,type:i,compare:h===void 0?null:h}},x.startTransition=function(i){var h=Ee.transition;Ee.transition={};try{i()}finally{Ee.transition=h}},x.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},x.useCallback=function(i,h){return $.current.useCallback(i,h)},x.useContext=function(i){return $.current.useContext(i)},x.useDebugValue=function(){},x.useDeferredValue=function(i){return $.current.useDeferredValue(i)},x.useEffect=function(i,h){return $.current.useEffect(i,h)},x.useId=function(){return $.current.useId()},x.useImperativeHandle=function(i,h,S){return $.current.useImperativeHandle(i,h,S)},x.useInsertionEffect=function(i,h){return $.current.useInsertionEffect(i,h)},x.useLayoutEffect=function(i,h){return $.current.useLayoutEffect(i,h)},x.useMemo=function(i,h){return $.current.useMemo(i,h)},x.useReducer=function(i,h,S){return $.current.useReducer(i,h,S)},x.useRef=function(i){return $.current.useRef(i)},x.useState=function(i){return $.current.useState(i)},x.useSyncExternalStore=function(i,h,S){return $.current.useSyncExternalStore(i,h,S)},x.useTransition=function(){return $.current.useTransition()},x.version="18.2.0",x}var rt={exports:{}};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/rt.exports;var Er;function mn(){return Er||(Er=1,function(t,r){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var o="18.2.0",l=Symbol.for("react.element"),f=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),K=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),re=Symbol.for("react.suspense"),ce=Symbol.for("react.suspense_list"),fe=Symbol.for("react.memo"),ve=Symbol.for("react.lazy"),ye=Symbol.for("react.offscreen"),ne=Symbol.iterator,ae="@@iterator";function j(e){if(e===null||typeof e!="object")return null;var n=ne&&e[ne]||e[ae];return typeof n=="function"?n:null}var X={current:null},oe={transition:null},U={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},ie={current:null},he={},u=null;function O(e){u=e}he.setExtraStackFrame=function(e){u=e},he.getCurrentStack=null,he.getStackAddendum=function(){var e="";u&&(e+=u);var n=he.getCurrentStack;return n&&(e+=n()||""),e};var ue=!1,E=!1,V=!1,d=!1,g=!1,A={ReactCurrentDispatcher:X,ReactCurrentBatchConfig:oe,ReactCurrentOwner:ie};A.ReactDebugCurrentFrame=he,A.ReactCurrentActQueue=U;function be(e){{for(var n=arguments.length,s=new Array(n>1?n-1:0),c=1;c<n;c++)s[c-1]=arguments[c];Ee("warn",e,s)}}function $(e){{for(var n=arguments.length,s=new Array(n>1?n-1:0),c=1;c<n;c++)s[c-1]=arguments[c];Ee("error",e,s)}}function Ee(e,n,s){{var c=A.ReactDebugCurrentFrame,y=c.getStackAddendum();y!==""&&(n+="%s",s=s.concat([y]));var w=s.map(function(T){return String(T)});w.unshift("Warning: "+n),Function.prototype.apply.call(console[e],console,w)}}var Fe={};function i(e,n){{var s=e.constructor,c=s&&(s.displayName||s.name)||"ReactClass",y=c+"."+n;if(Fe[y])return;$("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,c),Fe[y]=!0}}var h={isMounted:function(e){return!1},enqueueForceUpdate:function(e,n,s){i(e,"forceUpdate")},enqueueReplaceState:function(e,n,s,c){i(e,"replaceState")},enqueueSetState:function(e,n,s,c){i(e,"setState")}},S=Object.assign,N={};Object.freeze(N);function D(e,n,s){this.props=e,this.context=n,this.refs=N,this.updater=s||h}D.prototype.isReactComponent={},D.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")},D.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};{var G={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)."]},q=function(e,n){Object.defineProperty(D.prototype,e,{get:function(){be("%s(...) is deprecated in plain JavaScript React classes. %s",n[0],n[1])}})};for(var H in G)G.hasOwnProperty(H)&&q(H,G[H])}function Y(){}Y.prototype=D.prototype;function le(e,n,s){this.props=e,this.context=n,this.refs=N,this.updater=s||h}var $e=le.prototype=new Y;$e.constructor=le,S($e,D.prototype),$e.isPureReactComponent=!0;function Jt(){var e={current:null};return Object.seal(e),e}var mt=Array.isArray;function ze(e){return mt(e)}function Qt(e){{var n=typeof Symbol=="function"&&Symbol.toStringTag,s=n&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s}}function Ge(e){try{return Ae(e),!1}catch{return!0}}function Ae(e){return""+e}function je(e){if(Ge(e))return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Qt(e)),Ae(e)}function Et(e,n,s){var c=e.displayName;if(c)return c;var y=n.displayName||n.name||"";return y!==""?s+"("+y+")":s}function Le(e){return e.displayName||"Context"}function _e(e){if(e==null)return null;if(typeof e.tag=="number"&&$("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 b:return"Fragment";case f:return"Portal";case C:return"Profiler";case v:return"StrictMode";case re:return"Suspense";case ce:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case K:var n=e;return Le(n)+".Consumer";case P:var s=e;return Le(s._context)+".Provider";case I:return Et(e,e.render,"ForwardRef");case fe:var c=e.displayName||null;return c!==null?c:_e(e.type)||"Memo";case ve:{var y=e,w=y._payload,T=y._init;try{return _e(T(w))}catch{return null}}}return null}var Me=Object.prototype.hasOwnProperty,qe={key:!0,ref:!0,__self:!0,__source:!0},_t,Tt,Xe;Xe={};function ut(e){if(Me.call(e,"ref")){var n=Object.getOwnPropertyDescriptor(e,"ref").get;if(n&&n.isReactWarning)return!1}return e.ref!==void 0}function we(e){if(Me.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return e.key!==void 0}function Zt(e,n){var s=function(){_t||(_t=!0,$("%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))};s.isReactWarning=!0,Object.defineProperty(e,"key",{get:s,configurable:!0})}function Pt(e,n){var s=function(){Tt||(Tt=!0,$("%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))};s.isReactWarning=!0,Object.defineProperty(e,"ref",{get:s,configurable:!0})}function $t(e){if(typeof e.ref=="string"&&ie.current&&e.__self&&ie.current.stateNode!==e.__self){var n=_e(ie.current.type);Xe[n]||($('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),Xe[n]=!0)}}var Ie=function(e,n,s,c,y,w,T){var R={$$typeof:l,type:e,key:n,ref:s,props:T,_owner:w};return R._store={},Object.defineProperty(R._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(R,"_self",{configurable:!1,enumerable:!1,writable:!1,value:c}),Object.defineProperty(R,"_source",{configurable:!1,enumerable:!1,writable:!1,value:y}),Object.freeze&&(Object.freeze(R.props),Object.freeze(R)),R};function er(e,n,s){var c,y={},w=null,T=null,R=null,L=null;if(n!=null){ut(n)&&(T=n.ref,$t(n)),we(n)&&(je(n.key),w=""+n.key),R=n.__self===void 0?null:n.__self,L=n.__source===void 0?null:n.__source;for(c in n)Me.call(n,c)&&!qe.hasOwnProperty(c)&&(y[c]=n[c])}var z=arguments.length-2;if(z===1)y.children=s;else if(z>1){for(var J=Array(z),Q=0;Q<z;Q++)J[Q]=arguments[Q+2];Object.freeze&&Object.freeze(J),y.children=J}if(e&&e.defaultProps){var ee=e.defaultProps;for(c in ee)y[c]===void 0&&(y[c]=ee[c])}if(w||T){var se=typeof e=="function"?e.displayName||e.name||"Unknown":e;w&&Zt(y,se),T&&Pt(y,se)}return Ie(e,w,T,R,L,ie.current,y)}function tr(e,n){var s=Ie(e.type,n,e.ref,e._self,e._source,e._owner,e.props);return s}function rr(e,n,s){if(e==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var c,y=S({},e.props),w=e.key,T=e.ref,R=e._self,L=e._source,z=e._owner;if(n!=null){ut(n)&&(T=n.ref,z=ie.current),we(n)&&(je(n.key),w=""+n.key);var J;e.type&&e.type.defaultProps&&(J=e.type.defaultProps);for(c in n)Me.call(n,c)&&!qe.hasOwnProperty(c)&&(n[c]===void 0&&J!==void 0?y[c]=J[c]:y[c]=n[c])}var Q=arguments.length-2;if(Q===1)y.children=s;else if(Q>1){for(var ee=Array(Q),se=0;se<Q;se++)ee[se]=arguments[se+2];y.children=ee}return Ie(e.type,w,T,R,L,z,y)}function Re(e){return typeof e=="object"&&e!==null&&e.$$typeof===l}var wt=".",nr=":";function ar(e){var n=/[=:]/g,s={"=":"=0",":":"=2"},c=e.replace(n,function(y){return s[y]});return"$"+c}var Je=!1,Rt=/\/+/g;function Pe(e){return e.replace(Rt,"$&/")}function Ne(e,n){return typeof e=="object"&&e!==null&&e.key!=null?(je(e.key),ar(""+e.key)):n.toString(36)}function Se(e,n,s,c,y){var w=typeof e;(w==="undefined"||w==="boolean")&&(e=null);var T=!1;if(e===null)T=!0;else switch(w){case"string":case"number":T=!0;break;case"object":switch(e.$$typeof){case l:case f:T=!0}}if(T){var R=e,L=y(R),z=c===""?wt+Ne(R,0):c;if(ze(L)){var J="";z!=null&&(J=Pe(z)+"/"),Se(L,n,J,"",function(Ua){return Ua})}else L!=null&&(Re(L)&&(L.key&&(!R||R.key!==L.key)&&je(L.key),L=tr(L,s+(L.key&&(!R||R.key!==L.key)?Pe(""+L.key)+"/":"")+z)),n.push(L));return 1}var Q,ee,se=0,pe=c===""?wt:c+nr;if(ze(e))for(var Mt=0;Mt<e.length;Mt++)Q=e[Mt],ee=pe+Ne(Q,Mt),se+=Se(Q,n,s,ee,y);else{var br=j(e);if(typeof br=="function"){var yn=e;br===yn.entries&&(Je||be("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Je=!0);for(var Wa=br.call(yn),gn,Ka=0;!(gn=Wa.next()).done;)Q=gn.value,ee=pe+Ne(Q,Ka++),se+=Se(Q,n,s,ee,y)}else if(w==="object"){var hn=String(e);throw new Error("Objects are not valid as a React child (found: "+(hn==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":hn)+"). If you meant to render a collection of children, use an array instead.")}}return se}function We(e,n,s){if(e==null)return e;var c=[],y=0;return Se(e,c,"","",function(w){return n.call(s,w,y++)}),c}function or(e){var n=0;return We(e,function(){n++}),n}function St(e,n,s){We(e,function(){n.apply(this,arguments)},s)}function ir(e){return We(e,function(n){return n})||[]}function Ct(e){if(!Re(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}function Ot(e){var n={$$typeof:K,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};n.Provider={$$typeof:P,_context:n};var s=!1,c=!1,y=!1;{var w={$$typeof:K,_context:n};Object.defineProperties(w,{Provider:{get:function(){return c||(c=!0,$("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(T){n.Provider=T}},_currentValue:{get:function(){return n._currentValue},set:function(T){n._currentValue=T}},_currentValue2:{get:function(){return n._currentValue2},set:function(T){n._currentValue2=T}},_threadCount:{get:function(){return n._threadCount},set:function(T){n._threadCount=T}},Consumer:{get:function(){return s||(s=!0,$("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(T){y||(be("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",T),y=!0)}}}),n.Consumer=w}return n._currentRenderer=null,n._currentRenderer2=null,n}var Ke=-1,lt=0,ct=1,sr=2;function ur(e){if(e._status===Ke){var n=e._result,s=n();if(s.then(function(w){if(e._status===lt||e._status===Ke){var T=e;T._status=ct,T._result=w}},function(w){if(e._status===lt||e._status===Ke){var T=e;T._status=sr,T._result=w}}),e._status===Ke){var c=e;c._status=lt,c._result=s}}if(e._status===ct){var y=e._result;return y===void 0&&$(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
18
|
+
|
|
19
|
+
Your code should look like:
|
|
20
|
+
const MyComponent = lazy(() => import('./MyComponent'))
|
|
21
|
+
|
|
22
|
+
Did you accidentally put curly braces around the import?`,y),"default"in y||$(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
23
|
+
|
|
24
|
+
Your code should look like:
|
|
25
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,y),y.default}else throw e._result}function lr(e){var n={_status:Ke,_result:e},s={$$typeof:ve,_payload:n,_init:ur};{var c,y;Object.defineProperties(s,{defaultProps:{configurable:!0,get:function(){return c},set:function(w){$("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."),c=w,Object.defineProperty(s,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return y},set:function(w){$("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=w,Object.defineProperty(s,"propTypes",{enumerable:!0})}}})}return s}function cr(e){e!=null&&e.$$typeof===fe?$("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e!="function"?$("forwardRef requires a render function but was given %s.",e===null?"null":typeof e):e.length!==0&&e.length!==2&&$("forwardRef render functions accept exactly two parameters: props and ref. %s",e.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),e!=null&&(e.defaultProps!=null||e.propTypes!=null)&&$("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var n={$$typeof:I,render:e};{var s;Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return s},set:function(c){s=c,!e.name&&!e.displayName&&(e.displayName=c)}})}return n}var a;a=Symbol.for("react.module.reference");function p(e){return!!(typeof e=="string"||typeof e=="function"||e===b||e===C||g||e===v||e===re||e===ce||d||e===ye||ue||E||V||typeof e=="object"&&e!==null&&(e.$$typeof===ve||e.$$typeof===fe||e.$$typeof===P||e.$$typeof===K||e.$$typeof===I||e.$$typeof===a||e.getModuleId!==void 0))}function m(e,n){p(e)||$("memo: The first argument must be a component. Instead received: %s",e===null?"null":typeof e);var s={$$typeof:fe,type:e,compare:n===void 0?null:n};{var c;Object.defineProperty(s,"displayName",{enumerable:!1,configurable:!0,get:function(){return c},set:function(y){c=y,!e.name&&!e.displayName&&(e.displayName=y)}})}return s}function _(){var e=X.current;return e===null&&$(`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:
|
|
26
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
27
|
+
2. You might be breaking the Rules of Hooks
|
|
28
|
+
3. You might have more than one copy of React in the same app
|
|
29
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function M(e){var n=_();if(e._context!==void 0){var s=e._context;s.Consumer===e?$("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?"):s.Provider===e&&$("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return n.useContext(e)}function B(e){var n=_();return n.useState(e)}function F(e,n,s){var c=_();return c.useReducer(e,n,s)}function k(e){var n=_();return n.useRef(e)}function de(e,n){var s=_();return s.useEffect(e,n)}function Z(e,n){var s=_();return s.useInsertionEffect(e,n)}function te(e,n){var s=_();return s.useLayoutEffect(e,n)}function ge(e,n){var s=_();return s.useCallback(e,n)}function Ce(e,n){var s=_();return s.useMemo(e,n)}function kt(e,n,s){var c=_();return c.useImperativeHandle(e,n,s)}function me(e,n){{var s=_();return s.useDebugValue(e,n)}}function ha(){var e=_();return e.useTransition()}function ba(e){var n=_();return n.useDeferredValue(e)}function ma(){var e=_();return e.useId()}function Ea(e,n,s){var c=_();return c.useSyncExternalStore(e,n,s)}var ft=0,Gr,qr,Xr,Jr,Qr,Zr,en;function tn(){}tn.__reactDisabledLog=!0;function _a(){{if(ft===0){Gr=console.log,qr=console.info,Xr=console.warn,Jr=console.error,Qr=console.group,Zr=console.groupCollapsed,en=console.groupEnd;var e={configurable:!0,enumerable:!0,value:tn,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ft++}}function Ta(){{if(ft--,ft===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:S({},e,{value:Gr}),info:S({},e,{value:qr}),warn:S({},e,{value:Xr}),error:S({},e,{value:Jr}),group:S({},e,{value:Qr}),groupCollapsed:S({},e,{value:Zr}),groupEnd:S({},e,{value:en})})}ft<0&&$("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var fr=A.ReactCurrentDispatcher,dr;function xt(e,n,s){{if(dr===void 0)try{throw Error()}catch(y){var c=y.stack.trim().match(/\n( *(at )?)/);dr=c&&c[1]||""}return`
|
|
30
|
+
`+dr+e}}var pr=!1,Dt;{var Pa=typeof WeakMap=="function"?WeakMap:Map;Dt=new Pa}function rn(e,n){if(!e||pr)return"";{var s=Dt.get(e);if(s!==void 0)return s}var c;pr=!0;var y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var w;w=fr.current,fr.current=null,_a();try{if(n){var T=function(){throw Error()};if(Object.defineProperty(T.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(T,[])}catch(pe){c=pe}Reflect.construct(e,[],T)}else{try{T.call()}catch(pe){c=pe}e.call(T.prototype)}}else{try{throw Error()}catch(pe){c=pe}e()}}catch(pe){if(pe&&c&&typeof pe.stack=="string"){for(var R=pe.stack.split(`
|
|
31
|
+
`),L=c.stack.split(`
|
|
32
|
+
`),z=R.length-1,J=L.length-1;z>=1&&J>=0&&R[z]!==L[J];)J--;for(;z>=1&&J>=0;z--,J--)if(R[z]!==L[J]){if(z!==1||J!==1)do if(z--,J--,J<0||R[z]!==L[J]){var Q=`
|
|
33
|
+
`+R[z].replace(" at new "," at ");return e.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",e.displayName)),typeof e=="function"&&Dt.set(e,Q),Q}while(z>=1&&J>=0);break}}}finally{pr=!1,fr.current=w,Ta(),Error.prepareStackTrace=y}var ee=e?e.displayName||e.name:"",se=ee?xt(ee):"";return typeof e=="function"&&Dt.set(e,se),se}function $a(e,n,s){return rn(e,!1)}function wa(e){var n=e.prototype;return!!(n&&n.isReactComponent)}function Ft(e,n,s){if(e==null)return"";if(typeof e=="function")return rn(e,wa(e));if(typeof e=="string")return xt(e);switch(e){case re:return xt("Suspense");case ce:return xt("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case I:return $a(e.render);case fe:return Ft(e.type,n,s);case ve:{var c=e,y=c._payload,w=c._init;try{return Ft(w(y),n,s)}catch{}}}return""}var nn={},an=A.ReactDebugCurrentFrame;function At(e){if(e){var n=e._owner,s=Ft(e.type,e._source,n?n.type:null);an.setExtraStackFrame(s)}else an.setExtraStackFrame(null)}function Ra(e,n,s,c,y){{var w=Function.call.bind(Me);for(var T in e)if(w(e,T)){var R=void 0;try{if(typeof e[T]!="function"){var L=Error((c||"React class")+": "+s+" type `"+T+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[T]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw L.name="Invariant Violation",L}R=e[T](n,T,c,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(z){R=z}R&&!(R instanceof Error)&&(At(y),$("%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).",c||"React class",s,T,typeof R),At(null)),R instanceof Error&&!(R.message in nn)&&(nn[R.message]=!0,At(y),$("Failed %s type: %s",s,R.message),At(null))}}}function Qe(e){if(e){var n=e._owner,s=Ft(e.type,e._source,n?n.type:null);O(s)}else O(null)}var vr;vr=!1;function on(){if(ie.current){var e=_e(ie.current.type);if(e)return`
|
|
34
|
+
|
|
35
|
+
Check the render method of \``+e+"`."}return""}function Sa(e){if(e!==void 0){var n=e.fileName.replace(/^.*[\\\/]/,""),s=e.lineNumber;return`
|
|
36
|
+
|
|
37
|
+
Check your code at `+n+":"+s+"."}return""}function Ca(e){return e!=null?Sa(e.__source):""}var sn={};function Oa(e){var n=on();if(!n){var s=typeof e=="string"?e:e.displayName||e.name;s&&(n=`
|
|
38
|
+
|
|
39
|
+
Check the top-level render call using <`+s+">.")}return n}function un(e,n){if(!(!e._store||e._store.validated||e.key!=null)){e._store.validated=!0;var s=Oa(n);if(!sn[s]){sn[s]=!0;var c="";e&&e._owner&&e._owner!==ie.current&&(c=" It was passed a child from "+_e(e._owner.type)+"."),Qe(e),$('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',s,c),Qe(null)}}}function ln(e,n){if(typeof e=="object"){if(ze(e))for(var s=0;s<e.length;s++){var c=e[s];Re(c)&&un(c,n)}else if(Re(e))e._store&&(e._store.validated=!0);else if(e){var y=j(e);if(typeof y=="function"&&y!==e.entries)for(var w=y.call(e),T;!(T=w.next()).done;)Re(T.value)&&un(T.value,n)}}}function cn(e){{var n=e.type;if(n==null||typeof n=="string")return;var s;if(typeof n=="function")s=n.propTypes;else if(typeof n=="object"&&(n.$$typeof===I||n.$$typeof===fe))s=n.propTypes;else return;if(s){var c=_e(n);Ra(s,e.props,"prop",c,e)}else if(n.PropTypes!==void 0&&!vr){vr=!0;var y=_e(n);$("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",y||"Unknown")}typeof n.getDefaultProps=="function"&&!n.getDefaultProps.isReactClassApproved&&$("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ka(e){{for(var n=Object.keys(e.props),s=0;s<n.length;s++){var c=n[s];if(c!=="children"&&c!=="key"){Qe(e),$("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",c),Qe(null);break}}e.ref!==null&&(Qe(e),$("Invalid attribute `ref` supplied to `React.Fragment`."),Qe(null))}}function fn(e,n,s){var c=p(e);if(!c){var y="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).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 w=Ca(n);w?y+=w:y+=on();var T;e===null?T="null":ze(e)?T="array":e!==void 0&&e.$$typeof===l?(T="<"+(_e(e.type)||"Unknown")+" />",y=" Did you accidentally export a JSX literal instead of a component?"):T=typeof e,$("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",T,y)}var R=er.apply(this,arguments);if(R==null)return R;if(c)for(var L=2;L<arguments.length;L++)ln(arguments[L],e);return e===b?ka(R):cn(R),R}var dn=!1;function xa(e){var n=fn.bind(null,e);return n.type=e,dn||(dn=!0,be("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 be("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),n}function Da(e,n,s){for(var c=rr.apply(this,arguments),y=2;y<arguments.length;y++)ln(arguments[y],c.type);return cn(c),c}function Fa(e,n){var s=oe.transition;oe.transition={};var c=oe.transition;oe.transition._updatedFibers=new Set;try{e()}finally{if(oe.transition=s,s===null&&c._updatedFibers){var y=c._updatedFibers.size;y>10&&be("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."),c._updatedFibers.clear()}}}var pn=!1,jt=null;function Aa(e){if(jt===null)try{var n=("require"+Math.random()).slice(0,7),s=t&&t[n];jt=s.call(t,"timers").setImmediate}catch{jt=function(y){pn===!1&&(pn=!0,typeof MessageChannel>"u"&&$("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 w=new MessageChannel;w.port1.onmessage=y,w.port2.postMessage(void 0)}}return jt(e)}var Ze=0,vn=!1;function ja(e){{var n=Ze;Ze++,U.current===null&&(U.current=[]);var s=U.isBatchingLegacy,c;try{if(U.isBatchingLegacy=!0,c=e(),!s&&U.didScheduleLegacyUpdate){var y=U.current;y!==null&&(U.didScheduleLegacyUpdate=!1,hr(y))}}catch(ee){throw Lt(n),ee}finally{U.isBatchingLegacy=s}if(c!==null&&typeof c=="object"&&typeof c.then=="function"){var w=c,T=!1,R={then:function(ee,se){T=!0,w.then(function(pe){Lt(n),Ze===0?yr(pe,ee,se):ee(pe)},function(pe){Lt(n),se(pe)})}};return!vn&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){T||(vn=!0,$("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 () => ...);"))}),R}else{var L=c;if(Lt(n),Ze===0){var z=U.current;z!==null&&(hr(z),U.current=null);var J={then:function(ee,se){U.current===null?(U.current=[],yr(L,ee,se)):ee(L)}};return J}else{var Q={then:function(ee,se){ee(L)}};return Q}}}}function Lt(e){e!==Ze-1&&$("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Ze=e}function yr(e,n,s){{var c=U.current;if(c!==null)try{hr(c),Aa(function(){c.length===0?(U.current=null,n(e)):yr(e,n,s)})}catch(y){s(y)}else n(e)}}var gr=!1;function hr(e){if(!gr){gr=!0;var n=0;try{for(;n<e.length;n++){var s=e[n];do s=s(!0);while(s!==null)}e.length=0}catch(c){throw e=e.slice(n+1),c}finally{gr=!1}}}var La=fn,Ma=Da,Ia=xa,Na={map:We,forEach:St,count:or,toArray:ir,only:Ct};r.Children=Na,r.Component=D,r.Fragment=b,r.Profiler=C,r.PureComponent=le,r.StrictMode=v,r.Suspense=re,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,r.cloneElement=Ma,r.createContext=Ot,r.createElement=La,r.createFactory=Ia,r.createRef=Jt,r.forwardRef=cr,r.isValidElement=Re,r.lazy=lr,r.memo=m,r.startTransition=Fa,r.unstable_act=ja,r.useCallback=ge,r.useContext=M,r.useDebugValue=me,r.useDeferredValue=ba,r.useEffect=de,r.useId=ma,r.useImperativeHandle=kt,r.useInsertionEffect=Z,r.useLayoutEffect=te,r.useMemo=Ce,r.useReducer=F,r.useRef=k,r.useState=B,r.useSyncExternalStore=Ea,r.useTransition=ha,r.version=o,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(rt,rt.exports)),rt.exports}process.env.NODE_ENV==="production"?Nt.exports=bn():Nt.exports=mn();var W=Nt.exports;const dt=et(W);/**
|
|
40
|
+
* @license React
|
|
41
|
+
* react-jsx-runtime.production.min.js
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the MIT license found in the
|
|
46
|
+
* LICENSE file in the root directory of this source tree.
|
|
47
|
+
*/var _r;function En(){if(_r)return tt;_r=1;var t=W,r=Symbol.for("react.element"),o=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,f=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,b={key:!0,ref:!0,__self:!0,__source:!0};function v(C,P,K){var I,re={},ce=null,fe=null;K!==void 0&&(ce=""+K),P.key!==void 0&&(ce=""+P.key),P.ref!==void 0&&(fe=P.ref);for(I in P)l.call(P,I)&&!b.hasOwnProperty(I)&&(re[I]=P[I]);if(C&&C.defaultProps)for(I in P=C.defaultProps,P)re[I]===void 0&&(re[I]=P[I]);return{$$typeof:r,type:C,key:ce,ref:fe,props:re,_owner:f.current}}return tt.Fragment=o,tt.jsx=v,tt.jsxs=v,tt}var nt={};/**
|
|
48
|
+
* @license React
|
|
49
|
+
* react-jsx-runtime.development.js
|
|
50
|
+
*
|
|
51
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
52
|
+
*
|
|
53
|
+
* This source code is licensed under the MIT license found in the
|
|
54
|
+
* LICENSE file in the root directory of this source tree.
|
|
55
|
+
*/var Tr;function _n(){return Tr||(Tr=1,process.env.NODE_ENV!=="production"&&function(){var t=W,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),C=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),re=Symbol.for("react.memo"),ce=Symbol.for("react.lazy"),fe=Symbol.for("react.offscreen"),ve=Symbol.iterator,ye="@@iterator";function ne(a){if(a===null||typeof a!="object")return null;var p=ve&&a[ve]||a[ye];return typeof p=="function"?p:null}var ae=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(a){{for(var p=arguments.length,m=new Array(p>1?p-1:0),_=1;_<p;_++)m[_-1]=arguments[_];X("error",a,m)}}function X(a,p,m){{var _=ae.ReactDebugCurrentFrame,M=_.getStackAddendum();M!==""&&(p+="%s",m=m.concat([M]));var B=m.map(function(F){return String(F)});B.unshift("Warning: "+p),Function.prototype.apply.call(console[a],console,B)}}var oe=!1,U=!1,ie=!1,he=!1,u=!1,O;O=Symbol.for("react.module.reference");function ue(a){return!!(typeof a=="string"||typeof a=="function"||a===l||a===b||u||a===f||a===K||a===I||he||a===fe||oe||U||ie||typeof a=="object"&&a!==null&&(a.$$typeof===ce||a.$$typeof===re||a.$$typeof===v||a.$$typeof===C||a.$$typeof===P||a.$$typeof===O||a.getModuleId!==void 0))}function E(a,p,m){var _=a.displayName;if(_)return _;var M=p.displayName||p.name||"";return M!==""?m+"("+M+")":m}function V(a){return a.displayName||"Context"}function d(a){if(a==null)return null;if(typeof a.tag=="number"&&j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case l:return"Fragment";case o:return"Portal";case b:return"Profiler";case f:return"StrictMode";case K:return"Suspense";case I:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case C:var p=a;return V(p)+".Consumer";case v:var m=a;return V(m._context)+".Provider";case P:return E(a,a.render,"ForwardRef");case re:var _=a.displayName||null;return _!==null?_:d(a.type)||"Memo";case ce:{var M=a,B=M._payload,F=M._init;try{return d(F(B))}catch{return null}}}return null}var g=Object.assign,A=0,be,$,Ee,Fe,i,h,S;function N(){}N.__reactDisabledLog=!0;function D(){{if(A===0){be=console.log,$=console.info,Ee=console.warn,Fe=console.error,i=console.group,h=console.groupCollapsed,S=console.groupEnd;var a={configurable:!0,enumerable:!0,value:N,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}A++}}function G(){{if(A--,A===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:g({},a,{value:be}),info:g({},a,{value:$}),warn:g({},a,{value:Ee}),error:g({},a,{value:Fe}),group:g({},a,{value:i}),groupCollapsed:g({},a,{value:h}),groupEnd:g({},a,{value:S})})}A<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=ae.ReactCurrentDispatcher,H;function Y(a,p,m){{if(H===void 0)try{throw Error()}catch(M){var _=M.stack.trim().match(/\n( *(at )?)/);H=_&&_[1]||""}return`
|
|
56
|
+
`+H+a}}var le=!1,$e;{var Jt=typeof WeakMap=="function"?WeakMap:Map;$e=new Jt}function mt(a,p){if(!a||le)return"";{var m=$e.get(a);if(m!==void 0)return m}var _;le=!0;var M=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var B;B=q.current,q.current=null,D();try{if(p){var F=function(){throw Error()};if(Object.defineProperty(F.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(F,[])}catch(me){_=me}Reflect.construct(a,[],F)}else{try{F.call()}catch(me){_=me}a.call(F.prototype)}}else{try{throw Error()}catch(me){_=me}a()}}catch(me){if(me&&_&&typeof me.stack=="string"){for(var k=me.stack.split(`
|
|
57
|
+
`),de=_.stack.split(`
|
|
58
|
+
`),Z=k.length-1,te=de.length-1;Z>=1&&te>=0&&k[Z]!==de[te];)te--;for(;Z>=1&&te>=0;Z--,te--)if(k[Z]!==de[te]){if(Z!==1||te!==1)do if(Z--,te--,te<0||k[Z]!==de[te]){var ge=`
|
|
59
|
+
`+k[Z].replace(" at new "," at ");return a.displayName&&ge.includes("<anonymous>")&&(ge=ge.replace("<anonymous>",a.displayName)),typeof a=="function"&&$e.set(a,ge),ge}while(Z>=1&&te>=0);break}}}finally{le=!1,q.current=B,G(),Error.prepareStackTrace=M}var Ce=a?a.displayName||a.name:"",kt=Ce?Y(Ce):"";return typeof a=="function"&&$e.set(a,kt),kt}function ze(a,p,m){return mt(a,!1)}function Qt(a){var p=a.prototype;return!!(p&&p.isReactComponent)}function Ge(a,p,m){if(a==null)return"";if(typeof a=="function")return mt(a,Qt(a));if(typeof a=="string")return Y(a);switch(a){case K:return Y("Suspense");case I:return Y("SuspenseList")}if(typeof a=="object")switch(a.$$typeof){case P:return ze(a.render);case re:return Ge(a.type,p,m);case ce:{var _=a,M=_._payload,B=_._init;try{return Ge(B(M),p,m)}catch{}}}return""}var Ae=Object.prototype.hasOwnProperty,je={},Et=ae.ReactDebugCurrentFrame;function Le(a){if(a){var p=a._owner,m=Ge(a.type,a._source,p?p.type:null);Et.setExtraStackFrame(m)}else Et.setExtraStackFrame(null)}function _e(a,p,m,_,M){{var B=Function.call.bind(Ae);for(var F in a)if(B(a,F)){var k=void 0;try{if(typeof a[F]!="function"){var de=Error((_||"React class")+": "+m+" type `"+F+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[F]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw de.name="Invariant Violation",de}k=a[F](p,F,_,m,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Z){k=Z}k&&!(k instanceof Error)&&(Le(M),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).",_||"React class",m,F,typeof k),Le(null)),k instanceof Error&&!(k.message in je)&&(je[k.message]=!0,Le(M),j("Failed %s type: %s",m,k.message),Le(null))}}}var Me=Array.isArray;function qe(a){return Me(a)}function _t(a){{var p=typeof Symbol=="function"&&Symbol.toStringTag,m=p&&a[Symbol.toStringTag]||a.constructor.name||"Object";return m}}function Tt(a){try{return Xe(a),!1}catch{return!0}}function Xe(a){return""+a}function ut(a){if(Tt(a))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",_t(a)),Xe(a)}var we=ae.ReactCurrentOwner,Zt={key:!0,ref:!0,__self:!0,__source:!0},Pt,$t,Ie;Ie={};function er(a){if(Ae.call(a,"ref")){var p=Object.getOwnPropertyDescriptor(a,"ref").get;if(p&&p.isReactWarning)return!1}return a.ref!==void 0}function tr(a){if(Ae.call(a,"key")){var p=Object.getOwnPropertyDescriptor(a,"key").get;if(p&&p.isReactWarning)return!1}return a.key!==void 0}function rr(a,p){if(typeof a.ref=="string"&&we.current&&p&&we.current.stateNode!==p){var m=d(we.current.type);Ie[m]||(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',d(we.current.type),a.ref),Ie[m]=!0)}}function Re(a,p){{var m=function(){Pt||(Pt=!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)",p))};m.isReactWarning=!0,Object.defineProperty(a,"key",{get:m,configurable:!0})}}function wt(a,p){{var m=function(){$t||($t=!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)",p))};m.isReactWarning=!0,Object.defineProperty(a,"ref",{get:m,configurable:!0})}}var nr=function(a,p,m,_,M,B,F){var k={$$typeof:r,type:a,key:p,ref:m,props:F,_owner:B};return k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(k,"_self",{configurable:!1,enumerable:!1,writable:!1,value:_}),Object.defineProperty(k,"_source",{configurable:!1,enumerable:!1,writable:!1,value:M}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k};function ar(a,p,m,_,M){{var B,F={},k=null,de=null;m!==void 0&&(ut(m),k=""+m),tr(p)&&(ut(p.key),k=""+p.key),er(p)&&(de=p.ref,rr(p,M));for(B in p)Ae.call(p,B)&&!Zt.hasOwnProperty(B)&&(F[B]=p[B]);if(a&&a.defaultProps){var Z=a.defaultProps;for(B in Z)F[B]===void 0&&(F[B]=Z[B])}if(k||de){var te=typeof a=="function"?a.displayName||a.name||"Unknown":a;k&&Re(F,te),de&&wt(F,te)}return nr(a,k,de,M,_,we.current,F)}}var Je=ae.ReactCurrentOwner,Rt=ae.ReactDebugCurrentFrame;function Pe(a){if(a){var p=a._owner,m=Ge(a.type,a._source,p?p.type:null);Rt.setExtraStackFrame(m)}else Rt.setExtraStackFrame(null)}var Ne;Ne=!1;function Se(a){return typeof a=="object"&&a!==null&&a.$$typeof===r}function We(){{if(Je.current){var a=d(Je.current.type);if(a)return`
|
|
60
|
+
|
|
61
|
+
Check the render method of \``+a+"`."}return""}}function or(a){{if(a!==void 0){var p=a.fileName.replace(/^.*[\\\/]/,""),m=a.lineNumber;return`
|
|
62
|
+
|
|
63
|
+
Check your code at `+p+":"+m+"."}return""}}var St={};function ir(a){{var p=We();if(!p){var m=typeof a=="string"?a:a.displayName||a.name;m&&(p=`
|
|
64
|
+
|
|
65
|
+
Check the top-level render call using <`+m+">.")}return p}}function Ct(a,p){{if(!a._store||a._store.validated||a.key!=null)return;a._store.validated=!0;var m=ir(p);if(St[m])return;St[m]=!0;var _="";a&&a._owner&&a._owner!==Je.current&&(_=" It was passed a child from "+d(a._owner.type)+"."),Pe(a),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',m,_),Pe(null)}}function Ot(a,p){{if(typeof a!="object")return;if(qe(a))for(var m=0;m<a.length;m++){var _=a[m];Se(_)&&Ct(_,p)}else if(Se(a))a._store&&(a._store.validated=!0);else if(a){var M=ne(a);if(typeof M=="function"&&M!==a.entries)for(var B=M.call(a),F;!(F=B.next()).done;)Se(F.value)&&Ct(F.value,p)}}}function Ke(a){{var p=a.type;if(p==null||typeof p=="string")return;var m;if(typeof p=="function")m=p.propTypes;else if(typeof p=="object"&&(p.$$typeof===P||p.$$typeof===re))m=p.propTypes;else return;if(m){var _=d(p);_e(m,a.props,"prop",_,a)}else if(p.PropTypes!==void 0&&!Ne){Ne=!0;var M=d(p);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",M||"Unknown")}typeof p.getDefaultProps=="function"&&!p.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function lt(a){{for(var p=Object.keys(a.props),m=0;m<p.length;m++){var _=p[m];if(_!=="children"&&_!=="key"){Pe(a),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",_),Pe(null);break}}a.ref!==null&&(Pe(a),j("Invalid attribute `ref` supplied to `React.Fragment`."),Pe(null))}}function ct(a,p,m,_,M,B){{var F=ue(a);if(!F){var k="";(a===void 0||typeof a=="object"&&a!==null&&Object.keys(a).length===0)&&(k+=" 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 de=or(M);de?k+=de:k+=We();var Z;a===null?Z="null":qe(a)?Z="array":a!==void 0&&a.$$typeof===r?(Z="<"+(d(a.type)||"Unknown")+" />",k=" Did you accidentally export a JSX literal instead of a component?"):Z=typeof a,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Z,k)}var te=ar(a,p,m,M,B);if(te==null)return te;if(F){var ge=p.children;if(ge!==void 0)if(_)if(qe(ge)){for(var Ce=0;Ce<ge.length;Ce++)Ot(ge[Ce],a);Object.freeze&&Object.freeze(ge)}else j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ot(ge,a)}return a===l?lt(te):Ke(te),te}}function sr(a,p,m){return ct(a,p,m,!0)}function ur(a,p,m){return ct(a,p,m,!1)}var lr=ur,cr=sr;nt.Fragment=l,nt.jsx=lr,nt.jsxs=cr}()),nt}process.env.NODE_ENV==="production"?It.exports=En():It.exports=_n();var at=It.exports;function Pr(t){var r,o,l="";if(typeof t=="string"||typeof t=="number")l+=t;else if(typeof t=="object")if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(o=Pr(t[r]))&&(l&&(l+=" "),l+=o);else for(r in t)t[r]&&(l&&(l+=" "),l+=r);return l}function Tn(){for(var t,r,o=0,l="";o<arguments.length;)(t=arguments[o++])&&(r=Pr(t))&&(l&&(l+=" "),l+=r);return l}const Wt=typeof document<"u"?dt.useLayoutEffect:()=>{};function Oe(t){const r=W.useRef(null);return Wt(()=>{r.current=t},[t]),W.useCallback((...o)=>{const l=r.current;return l(...o)},[])}let $r=new Map;function Pn(t,r){if(t===r)return t;let o=$r.get(t);if(o)return o(r),r;let l=$r.get(r);return l?(l(t),t):r}function $n(...t){return(...r)=>{for(let o of t)typeof o=="function"&&o(...r)}}function ke(...t){let r={...t[0]};for(let o=1;o<t.length;o++){let l=t[o];for(let f in l){let b=r[f],v=l[f];typeof b=="function"&&typeof v=="function"&&f[0]==="o"&&f[1]==="n"&&f.charCodeAt(2)>=65&&f.charCodeAt(2)<=90?r[f]=$n(b,v):(f==="className"||f==="UNSAFE_className")&&typeof b=="string"&&typeof v=="string"?r[f]=Tn(b,v):f==="id"&&b&&v?r.id=Pn(b,v):r[f]=v!==void 0?v:b}}return r}const wn=new Set(["id"]),Rn=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Sn=new Set(["href","target","rel","download","ping","referrerPolicy"]),Cn=/^(data-.*)$/;function On(t,r={}){let{labelable:o,isLink:l,propNames:f}=r,b={};for(const v in t)Object.prototype.hasOwnProperty.call(t,v)&&(wn.has(v)||o&&Rn.has(v)||l&&Sn.has(v)||f!=null&&f.has(v)||Cn.test(v))&&(b[v]=t[v]);return b}function xe(t){if(kn())t.focus({preventScroll:!0});else{let r=xn(t);t.focus(),Dn(r)}}let pt=null;function kn(){if(pt==null){pt=!1;try{var t=document.createElement("div");t.focus({get preventScroll(){return pt=!0,!0}})}catch{}}return pt}function xn(t){for(var r=t.parentNode,o=[],l=document.scrollingElement||document.documentElement;r instanceof HTMLElement&&r!==l;)(r.offsetHeight<r.scrollHeight||r.offsetWidth<r.scrollWidth)&&o.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),r=r.parentNode;return l instanceof HTMLElement&&o.push({element:l,scrollTop:l.scrollTop,scrollLeft:l.scrollLeft}),o}function Dn(t){for(let{element:r,scrollTop:o,scrollLeft:l}of t)r.scrollTop=o,r.scrollLeft=l}function vt(t){var r;return typeof window>"u"||window.navigator==null?!1:((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.brands.some(o=>t.test(o.brand)))||t.test(window.navigator.userAgent)}function Kt(t){var r;return typeof window<"u"&&window.navigator!=null?t.test(((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.platform)||window.navigator.platform):!1}function ot(){return Kt(/^Mac/i)}function Fn(){return Kt(/^iPhone/i)}function wr(){return Kt(/^iPad/i)||ot()&&navigator.maxTouchPoints>1}function Rr(){return Fn()||wr()}function An(){return vt(/AppleWebKit/i)&&!jn()}function jn(){return vt(/Chrome/i)}function Sr(){return vt(/Android/i)}function Ln(){return vt(/Firefox/i)}function it(t,r,o=!0){var l,f;let{metaKey:b,ctrlKey:v,altKey:C,shiftKey:P}=r;Ln()&&(!((l=window.event)===null||l===void 0||(f=l.type)===null||f===void 0)&&f.startsWith("key"))&&t.target==="_blank"&&(ot()?b=!0:v=!0);let K=An()&&ot()&&!wr()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:b,ctrlKey:v,altKey:C,shiftKey:P}):new MouseEvent("click",{metaKey:b,ctrlKey:v,altKey:C,shiftKey:P,bubbles:!0,cancelable:!0});it.isOpening=o,xe(t),t.dispatchEvent(K),it.isOpening=!1}it.isOpening=!1;let Ve=new Map,Ut=new Set;function Cr(){if(typeof window>"u")return;let t=o=>{let l=Ve.get(o.target);l||(l=new Set,Ve.set(o.target,l),o.target.addEventListener("transitioncancel",r)),l.add(o.propertyName)},r=o=>{let l=Ve.get(o.target);if(l&&(l.delete(o.propertyName),l.size===0&&(o.target.removeEventListener("transitioncancel",r),Ve.delete(o.target)),Ve.size===0)){for(let f of Ut)f();Ut.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Cr():document.addEventListener("DOMContentLoaded",Cr));function Or(t){requestAnimationFrame(()=>{Ve.size===0?t():Ut.add(t)})}function Mn(){let t=W.useRef(new Map),r=W.useCallback((f,b,v,C)=>{let P=C!=null&&C.once?(...K)=>{t.current.delete(v),v(...K)}:v;t.current.set(v,{type:b,eventTarget:f,fn:P,options:C}),f.addEventListener(b,v,C)},[]),o=W.useCallback((f,b,v,C)=>{var P;let K=((P=t.current.get(v))===null||P===void 0?void 0:P.fn)||v;f.removeEventListener(b,K,C),t.current.delete(v)},[]),l=W.useCallback(()=>{t.current.forEach((f,b)=>{o(f.eventTarget,f.type,b,f.options)})},[o]);return W.useEffect(()=>l,[l]),{addGlobalListener:r,removeGlobalListener:o,removeAllGlobalListeners:l}}function kr(t,r){Wt(()=>{if(t&&t.ref&&r)return t.ref.current=r.current,()=>{t.ref.current=null}})}function Vt(t){return t.mozInputSource===0&&t.isTrusted?!0:Sr()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function In(t){return!Sr()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function Nn(t,r,o){let l=W.useRef(r),f=Oe(()=>{o&&o(l.current)});W.useEffect(()=>{var b;let v=t==null||(b=t.current)===null||b===void 0?void 0:b.form;return v==null||v.addEventListener("reset",f),()=>{v==null||v.removeEventListener("reset",f)}},[t,f])}function Wn(t,r){return r.get?r.get.call(t):r.value}function xr(t,r,o){if(!r.has(t))throw new TypeError("attempted to "+o+" private field on non-instance");return r.get(t)}function Kn(t,r){var o=xr(t,r,"get");return Wn(t,o)}function Un(t,r){if(r.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Vn(t,r,o){Un(t,r),r.set(t,o)}function Yn(t,r,o){if(r.set)r.set.call(t,o);else{if(!r.writable)throw new TypeError("attempted to set read only private field");r.value=o}}function Dr(t,r,o){var l=xr(t,r,"set");return Yn(t,l,o),o}let Ye="default",Yt="",yt=new WeakMap;function Fr(t){Rr()?(Ye==="default"&&(Yt=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),Ye="disabled"):(t instanceof HTMLElement||t instanceof SVGElement)&&(yt.set(t,t.style.userSelect),t.style.userSelect="none")}function gt(t){if(Rr()){if(Ye!=="disabled")return;Ye="restoring",setTimeout(()=>{Or(()=>{Ye==="restoring"&&(document.documentElement.style.webkitUserSelect==="none"&&(document.documentElement.style.webkitUserSelect=Yt||""),Yt="",Ye="default")})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&yt.has(t)){let r=yt.get(t);t.style.userSelect==="none"&&(t.style.userSelect=r),t.getAttribute("style")===""&&t.removeAttribute("style"),yt.delete(t)}}const Ar=dt.createContext(null);Ar.displayName="PressResponderContext";function Bn(t){let r=W.useContext(Ar);if(r){let{register:o,...l}=r;t=ke(l,t),o()}return kr(r,t.ref),t}var ht=new WeakMap;class bt{continuePropagation(){Dr(this,ht,!1)}get shouldStopPropagation(){return Kn(this,ht)}constructor(r,o,l){Vn(this,ht,{writable:!0,value:void 0}),Dr(this,ht,!0),this.type=r,this.pointerType=o,this.target=l.currentTarget,this.shiftKey=l.shiftKey,this.metaKey=l.metaKey,this.ctrlKey=l.ctrlKey,this.altKey=l.altKey}}const jr=Symbol("linkClicked");function Hn(t){let{onPress:r,onPressChange:o,onPressStart:l,onPressEnd:f,onPressUp:b,isDisabled:v,isPressed:C,preventFocusOnPress:P,shouldCancelOnPointerExit:K,allowTextSelectionOnPress:I,ref:re,...ce}=Bn(t),[fe,ve]=W.useState(!1),ye=W.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:ne,removeAllGlobalListeners:ae}=Mn(),j=Oe((u,O)=>{let ue=ye.current;if(v||ue.didFirePressStart)return;let E=!0;if(ue.isTriggeringEvent=!0,l){let V=new bt("pressstart",O,u);l(V),E=V.shouldStopPropagation}return o&&o(!0),ue.isTriggeringEvent=!1,ue.didFirePressStart=!0,ve(!0),E}),X=Oe((u,O,ue=!0)=>{let E=ye.current;if(!E.didFirePressStart)return;E.ignoreClickAfterPress=!0,E.didFirePressStart=!1,E.isTriggeringEvent=!0;let V=!0;if(f){let d=new bt("pressend",O,u);f(d),V=d.shouldStopPropagation}if(o&&o(!1),ve(!1),r&&ue&&!v){let d=new bt("press",O,u);r(d),V&&(V=d.shouldStopPropagation)}return E.isTriggeringEvent=!1,V}),oe=Oe((u,O)=>{let ue=ye.current;if(!v){if(b){ue.isTriggeringEvent=!0;let E=new bt("pressup",O,u);return b(E),ue.isTriggeringEvent=!1,E.shouldStopPropagation}return!0}}),U=Oe(u=>{let O=ye.current;O.isPressed&&(O.isOverTarget&&X(Te(O.target,u),O.pointerType,!1),O.isPressed=!1,O.isOverTarget=!1,O.activePointerId=null,O.pointerType=null,ae(),I||gt(O.target))}),ie=Oe(u=>{K&&U(u)}),he=W.useMemo(()=>{let u=ye.current,O={onKeyDown(E){if(Ht(E.nativeEvent,E.currentTarget)&&E.currentTarget.contains(E.target)){Mr(E.target,E.key)&&E.preventDefault();let V=!0;!u.isPressed&&!E.repeat&&(u.target=E.currentTarget,u.isPressed=!0,V=j(E,"keyboard"),ne(document,"keyup",ue,!1)),V&&E.stopPropagation(),E.metaKey&&ot()&&u.metaKeyEvents.set(E.key,E.nativeEvent)}else E.key==="Meta"&&(u.metaKeyEvents=new Map)},onKeyUp(E){Ht(E.nativeEvent,E.currentTarget)&&!E.repeat&&E.currentTarget.contains(E.target)&&oe(Te(u.target,E),"keyboard")},onClick(E){if(!(E&&!E.currentTarget.contains(E.target))&&E&&E.button===0&&!u.isTriggeringEvent&&!it.isOpening){let V=!0;if(v&&E.preventDefault(),!u.ignoreClickAfterPress&&!u.ignoreEmulatedMouseEvents&&!u.isPressed&&(u.pointerType==="virtual"||Vt(E.nativeEvent))){!v&&!P&&xe(E.currentTarget);let d=j(E,"virtual"),g=oe(E,"virtual"),A=X(E,"virtual");V=d&&g&&A}u.ignoreEmulatedMouseEvents=!1,u.ignoreClickAfterPress=!1,V&&E.stopPropagation()}}},ue=E=>{var V;if(u.isPressed&&Ht(E,u.target)){var d;Mr(E.target,E.key)&&E.preventDefault();let g=E.target,A=X(Te(u.target,E),"keyboard",u.target.contains(g));ae(),A&&E.stopPropagation(),E.key!=="Enter"&&Bt(u.target)&&u.target.contains(g)&&!E[jr]&&(E[jr]=!0,it(u.target,E,!1)),u.isPressed=!1,(d=u.metaKeyEvents)===null||d===void 0||d.delete(E.key)}else if(E.key==="Meta"&&(!((V=u.metaKeyEvents)===null||V===void 0)&&V.size)){let g=u.metaKeyEvents;u.metaKeyEvents=null;for(let A of g.values())u.target.dispatchEvent(new KeyboardEvent("keyup",A))}};if(typeof PointerEvent<"u"){O.onPointerDown=g=>{if(g.button!==0||!g.currentTarget.contains(g.target))return;if(In(g.nativeEvent)){u.pointerType="virtual";return}zt(g.currentTarget)&&g.preventDefault(),u.pointerType=g.pointerType;let A=!0;u.isPressed||(u.isPressed=!0,u.isOverTarget=!0,u.activePointerId=g.pointerId,u.target=g.currentTarget,!v&&!P&&xe(g.currentTarget),I||Fr(u.target),A=j(g,u.pointerType),ne(document,"pointermove",E,!1),ne(document,"pointerup",V,!1),ne(document,"pointercancel",d,!1)),A&&g.stopPropagation()},O.onMouseDown=g=>{g.currentTarget.contains(g.target)&&g.button===0&&(zt(g.currentTarget)&&g.preventDefault(),g.stopPropagation())},O.onPointerUp=g=>{!g.currentTarget.contains(g.target)||u.pointerType==="virtual"||g.button===0&&Be(g,g.currentTarget)&&oe(g,u.pointerType||g.pointerType)};let E=g=>{g.pointerId===u.activePointerId&&(Be(g,u.target)?u.isOverTarget||(u.isOverTarget=!0,j(Te(u.target,g),u.pointerType)):u.isOverTarget&&(u.isOverTarget=!1,X(Te(u.target,g),u.pointerType,!1),ie(g)))},V=g=>{g.pointerId===u.activePointerId&&u.isPressed&&g.button===0&&(Be(g,u.target)?X(Te(u.target,g),u.pointerType):u.isOverTarget&&X(Te(u.target,g),u.pointerType,!1),u.isPressed=!1,u.isOverTarget=!1,u.activePointerId=null,u.pointerType=null,ae(),I||gt(u.target))},d=g=>{U(g)};O.onDragStart=g=>{g.currentTarget.contains(g.target)&&U(g)}}else{O.onMouseDown=d=>{if(d.button!==0||!d.currentTarget.contains(d.target))return;if(zt(d.currentTarget)&&d.preventDefault(),u.ignoreEmulatedMouseEvents){d.stopPropagation();return}u.isPressed=!0,u.isOverTarget=!0,u.target=d.currentTarget,u.pointerType=Vt(d.nativeEvent)?"virtual":"mouse",!v&&!P&&xe(d.currentTarget),j(d,u.pointerType)&&d.stopPropagation(),ne(document,"mouseup",E,!1)},O.onMouseEnter=d=>{if(!d.currentTarget.contains(d.target))return;let g=!0;u.isPressed&&!u.ignoreEmulatedMouseEvents&&(u.isOverTarget=!0,g=j(d,u.pointerType)),g&&d.stopPropagation()},O.onMouseLeave=d=>{if(!d.currentTarget.contains(d.target))return;let g=!0;u.isPressed&&!u.ignoreEmulatedMouseEvents&&(u.isOverTarget=!1,g=X(d,u.pointerType,!1),ie(d)),g&&d.stopPropagation()},O.onMouseUp=d=>{d.currentTarget.contains(d.target)&&!u.ignoreEmulatedMouseEvents&&d.button===0&&oe(d,u.pointerType||"mouse")};let E=d=>{if(d.button===0){if(u.isPressed=!1,ae(),u.ignoreEmulatedMouseEvents){u.ignoreEmulatedMouseEvents=!1;return}Be(d,u.target)?X(Te(u.target,d),u.pointerType):u.isOverTarget&&X(Te(u.target,d),u.pointerType,!1),u.isOverTarget=!1}};O.onTouchStart=d=>{if(!d.currentTarget.contains(d.target))return;let g=zn(d.nativeEvent);if(!g)return;u.activePointerId=g.identifier,u.ignoreEmulatedMouseEvents=!0,u.isOverTarget=!0,u.isPressed=!0,u.target=d.currentTarget,u.pointerType="touch",!v&&!P&&xe(d.currentTarget),I||Fr(u.target),j(d,u.pointerType)&&d.stopPropagation(),ne(window,"scroll",V,!0)},O.onTouchMove=d=>{if(!d.currentTarget.contains(d.target))return;if(!u.isPressed){d.stopPropagation();return}let g=Lr(d.nativeEvent,u.activePointerId),A=!0;g&&Be(g,d.currentTarget)?u.isOverTarget||(u.isOverTarget=!0,A=j(d,u.pointerType)):u.isOverTarget&&(u.isOverTarget=!1,A=X(d,u.pointerType,!1),ie(d)),A&&d.stopPropagation()},O.onTouchEnd=d=>{if(!d.currentTarget.contains(d.target))return;if(!u.isPressed){d.stopPropagation();return}let g=Lr(d.nativeEvent,u.activePointerId),A=!0;g&&Be(g,d.currentTarget)?(oe(d,u.pointerType),A=X(d,u.pointerType)):u.isOverTarget&&(A=X(d,u.pointerType,!1)),A&&d.stopPropagation(),u.isPressed=!1,u.activePointerId=null,u.isOverTarget=!1,u.ignoreEmulatedMouseEvents=!0,I||gt(u.target),ae()},O.onTouchCancel=d=>{d.currentTarget.contains(d.target)&&(d.stopPropagation(),u.isPressed&&U(d))};let V=d=>{u.isPressed&&d.target.contains(u.target)&&U({currentTarget:u.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};O.onDragStart=d=>{d.currentTarget.contains(d.target)&&U(d)}}return O},[ne,v,P,ae,I,U,ie,X,j,oe]);return W.useEffect(()=>()=>{I||gt(ye.current.target)},[I]),{isPressed:C||fe,pressProps:ke(ce,he)}}function Bt(t){return t.tagName==="A"&&t.hasAttribute("href")}function Ht(t,r){const{key:o,code:l}=t,f=r,b=f.getAttribute("role");return(o==="Enter"||o===" "||o==="Spacebar"||l==="Space")&&!(f instanceof HTMLInputElement&&!Ir(f,o)||f instanceof HTMLTextAreaElement||f.isContentEditable)&&!((b==="link"||!b&&Bt(f))&&o!=="Enter")}function zn(t){const{targetTouches:r}=t;return r.length>0?r[0]:null}function Lr(t,r){const o=t.changedTouches;for(let l=0;l<o.length;l++){const f=o[l];if(f.identifier===r)return f}return null}function Te(t,r){return{currentTarget:t,shiftKey:r.shiftKey,ctrlKey:r.ctrlKey,metaKey:r.metaKey,altKey:r.altKey}}function Gn(t){let r=t.width/2||t.radiusX||0,o=t.height/2||t.radiusY||0;return{top:t.clientY-o,right:t.clientX+r,bottom:t.clientY+o,left:t.clientX-r}}function qn(t,r){return!(t.left>r.right||r.left>t.right||t.top>r.bottom||r.top>t.bottom)}function Be(t,r){let o=r.getBoundingClientRect(),l=Gn(t);return qn(o,l)}function zt(t){return!(t instanceof HTMLElement)||!t.hasAttribute("draggable")}function Mr(t,r){return t instanceof HTMLInputElement?!Ir(t,r):t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!Bt(t)}const Xn=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ir(t,r){return t.type==="checkbox"||t.type==="radio"?r===" ":Xn.has(t.type)}class Jn{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(r,o){this.nativeEvent=o,this.target=o.target,this.currentTarget=o.currentTarget,this.relatedTarget=o.relatedTarget,this.bubbles=o.bubbles,this.cancelable=o.cancelable,this.defaultPrevented=o.defaultPrevented,this.eventPhase=o.eventPhase,this.isTrusted=o.isTrusted,this.timeStamp=o.timeStamp,this.type=r}}function Nr(t){let r=W.useRef({isFocused:!1,observer:null});Wt(()=>{const l=r.current;return()=>{l.observer&&(l.observer.disconnect(),l.observer=null)}},[]);let o=Oe(l=>{t==null||t(l)});return W.useCallback(l=>{if(l.target instanceof HTMLButtonElement||l.target instanceof HTMLInputElement||l.target instanceof HTMLTextAreaElement||l.target instanceof HTMLSelectElement){r.current.isFocused=!0;let f=l.target,b=v=>{r.current.isFocused=!1,f.disabled&&o(new Jn("blur",v)),r.current.observer&&(r.current.observer.disconnect(),r.current.observer=null)};f.addEventListener("focusout",b,{once:!0}),r.current.observer=new MutationObserver(()=>{if(r.current.isFocused&&f.disabled){r.current.observer.disconnect();let v=f===document.activeElement?null:document.activeElement;f.dispatchEvent(new FocusEvent("blur",{relatedTarget:v})),f.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:v}))}}),r.current.observer.observe(f,{attributes:!0,attributeFilter:["disabled"]})}},[o])}function Qn(t){let{isDisabled:r,onFocus:o,onBlur:l,onFocusChange:f}=t;const b=W.useCallback(P=>{if(P.target===P.currentTarget)return l&&l(P),f&&f(!1),!0},[l,f]),v=Nr(b),C=W.useCallback(P=>{P.target===P.currentTarget&&document.activeElement===P.target&&(o&&o(P),f&&f(!0),v(P))},[f,o,v]);return{focusProps:{onFocus:!r&&(o||f||l)?C:void 0,onBlur:!r&&(l||f)?b:void 0}}}let st=null,Zn=new Set,Wr=!1,De=!1,Gt=!1;function qt(t,r){for(let o of Zn)o(t,r)}function ea(t){return!(t.metaKey||!ot()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Kr(t){De=!0,ea(t)&&(st="keyboard",qt("keyboard",t))}function He(t){st="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(De=!0,qt("pointer",t))}function ta(t){Vt(t)&&(De=!0,st="virtual")}function ra(t){t.target===window||t.target===document||(!De&&!Gt&&(st="virtual",qt("virtual",t)),De=!1,Gt=!1)}function na(){De=!1,Gt=!0}function Ur(){if(typeof window>"u"||Wr)return;let t=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){De=!0,t.apply(this,arguments)},document.addEventListener("keydown",Kr,!0),document.addEventListener("keyup",Kr,!0),document.addEventListener("click",ta,!0),window.addEventListener("focus",ra,!0),window.addEventListener("blur",na,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",He,!0),document.addEventListener("pointermove",He,!0),document.addEventListener("pointerup",He,!0)):(document.addEventListener("mousedown",He,!0),document.addEventListener("mousemove",He,!0),document.addEventListener("mouseup",He,!0)),Wr=!0}typeof document<"u"&&(document.readyState!=="loading"?Ur():document.addEventListener("DOMContentLoaded",Ur));function aa(){return st}function oa(t){let{isDisabled:r,onBlurWithin:o,onFocusWithin:l,onFocusWithinChange:f}=t,b=W.useRef({isFocusWithin:!1}),v=W.useCallback(K=>{b.current.isFocusWithin&&!K.currentTarget.contains(K.relatedTarget)&&(b.current.isFocusWithin=!1,o&&o(K),f&&f(!1))},[o,f,b]),C=Nr(v),P=W.useCallback(K=>{!b.current.isFocusWithin&&document.activeElement===K.target&&(l&&l(K),f&&f(!0),b.current.isFocusWithin=!0,C(K))},[l,f,C]);return r?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:P,onBlur:v}}}function Vr(t){if(!t)return;let r=!0;return o=>{let l={...o,preventDefault(){o.preventDefault()},isDefaultPrevented(){return o.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){r=!1}};t(l),r&&o.stopPropagation()}}function ia(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:Vr(t.onKeyDown),onKeyUp:Vr(t.onKeyUp)}}}function sa(t){if(aa()==="virtual"){let r=document.activeElement;Or(()=>{document.activeElement===r&&document.contains(t)&&xe(t)})}else xe(t)}function ua(t,r){return r.some(o=>o.contains(t))}class Xt{get size(){return this.fastMap.size}getTreeNode(r){return this.fastMap.get(r)}addTreeNode(r,o,l){let f=this.fastMap.get(o??null),b=new Yr({scopeRef:r});f.addChild(b),b.parent=f,this.fastMap.set(r,b),l&&(b.nodeToRestore=l)}addNode(r){this.fastMap.set(r.scopeRef,r)}removeTreeNode(r){if(r===null)return;let o=this.fastMap.get(r),l=o.parent;for(let b of this.traverse())b!==o&&o.nodeToRestore&&b.nodeToRestore&&o.scopeRef.current&&ua(b.nodeToRestore,o.scopeRef.current)&&(b.nodeToRestore=o.nodeToRestore);let f=o.children;l.removeChild(o),f.size>0&&f.forEach(b=>l.addChild(b)),this.fastMap.delete(o.scopeRef)}*traverse(r=this.root){if(r.scopeRef!=null&&(yield r),r.children.size>0)for(let o of r.children)yield*this.traverse(o)}clone(){let r=new Xt;for(let o of this.traverse())r.addTreeNode(o.scopeRef,o.parent.scopeRef,o.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new Yr({scopeRef:null}),this.fastMap.set(null,this.root)}}class Yr{addChild(r){this.children.add(r),r.parent=this}removeChild(r){this.children.delete(r),r.parent=void 0}constructor(r){this.children=new Set,this.contain=!1,this.scopeRef=r.scopeRef}}new Xt;let la=dt.createContext(null);function ca(t){let r=W.useContext(la)||{};kr(r,t);let{ref:o,...l}=r;return l}function fa(t,r){let{focusProps:o}=Qn(t),{keyboardProps:l}=ia(t),f=ke(o,l),b=ca(r),v=t.isDisabled?{}:b,C=W.useRef(t.autoFocus);return W.useEffect(()=>{C.current&&r.current&&sa(r.current),C.current=!1},[r]),{focusableProps:ke({...f,tabIndex:t.excludeFromTabOrder&&!t.isDisabled?-1:void 0},v)}}function da(t,r,o){let{isDisabled:l=!1,isRequired:f=!1,isReadOnly:b=!1,value:v,name:C,children:P,"aria-label":K,"aria-labelledby":I,validationState:re="valid",isInvalid:ce}=t,fe=U=>{U.stopPropagation(),r.setSelected(U.target.checked)},ve=P!=null,ye=K!=null||I!=null;!ve&&!ye&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:ne,isPressed:ae}=Hn({isDisabled:l}),{focusableProps:j}=fa(t,o),X=ke(ne,j),oe=On(t,{labelable:!0});return Nn(o,r.isSelected,r.setSelected),{inputProps:ke(oe,{"aria-invalid":ce||re==="invalid"||void 0,"aria-errormessage":t["aria-errormessage"],"aria-controls":t["aria-controls"],"aria-readonly":b||void 0,"aria-required":f||void 0,onChange:fe,disabled:l,...v==null?{}:{value:v},name:C,type:"checkbox",...X}),isSelected:r.isSelected,isPressed:ae,isDisabled:l,isReadOnly:b,isInvalid:ce||re==="invalid"}}const Br={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function pa(t={}){let{style:r,isFocusable:o}=t,[l,f]=W.useState(!1),{focusWithinProps:b}=oa({isDisabled:!o,onFocusWithinChange:C=>f(C)}),v=W.useMemo(()=>l?r:r?{...Br,...r}:Br,[l]);return{visuallyHiddenProps:{...b,style:v}}}function va(t){let{children:r,elementType:o="div",isFocusable:l,style:f,...b}=t,{visuallyHiddenProps:v}=pa(t);return dt.createElement(o,ke(b,v),r)}function ya(t,r,o){let{inputProps:l,isSelected:f,isPressed:b,isDisabled:v,isReadOnly:C}=da(t,r,o);return{inputProps:{...l,role:"switch",checked:f},isSelected:f,isPressed:b,isDisabled:v,isReadOnly:C}}const Hr={Primary:"#e26014",Grey:"#dddddd"};function ga(t,r,o){const l=t!==void 0,[f,b]=W.useState(t||r);let v=l?t:f;return[v,P=>{o&&(Object.is(v,P)||o(P)),l||b(P)}]}zr.defaultProps={defaultOn:!1,isDisabled:!1};function zr(t){let r=W.useRef(null),[o,l]=ga(t.isOn,t.defaultOn,t.onChange),f={isSelected:o,setSelected:l,toggle:()=>l(!o)},{inputProps:b}=ya(t,f,r);return at.jsxs("label",{"data-on":o||void 0,"data-disabled":t.isDisabled||void 0,style:{display:"flex",alignItems:"center",opacity:t.isDisabled?.4:1},children:[at.jsx(va,{children:at.jsx("input",{...b,ref:r})}),at.jsx("div",{style:{position:"relative",width:50,height:26,borderRadius:50,backgroundColor:f.isSelected?Hr.Primary:Hr.Grey,cursor:t.isDisabled?"not-allowed":"pointer"},children:at.jsx("div",{style:{position:"absolute",width:22,height:22,borderRadius:22,backgroundColor:"white",top:2,left:f.isSelected?26:2,transition:"left .2s ease"}})})]})}Ue.Switch=zr,Object.defineProperty(Ue,Symbol.toStringTag,{value:"Module"})});
|