@xras/ui 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/xras-ui.cjs +46 -46
- package/dist/xras-ui.js +1681 -1674
- package/package.json +1 -1
package/dist/xras-ui.cjs
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
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
|
-
*/var ON;function YB(){if(ON)return Xt;ON=1;var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),h=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),C=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),
|
|
9
|
+
*/var ON;function YB(){if(ON)return Xt;ON=1;var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),h=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),C=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),R=Symbol.iterator;function T(G){return G===null||typeof G!="object"?null:(G=R&&G[R]||G["@@iterator"],typeof G=="function"?G:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,O={};function _(G,Y,re){this.props=G,this.context=Y,this.refs=O,this.updater=re||A}_.prototype.isReactComponent={},_.prototype.setState=function(G,Y){if(typeof G!="object"&&typeof G!="function"&&G!=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,G,Y,"setState")},_.prototype.forceUpdate=function(G){this.updater.enqueueForceUpdate(this,G,"forceUpdate")};function L(){}L.prototype=_.prototype;function F(G,Y,re){this.props=G,this.context=Y,this.refs=O,this.updater=re||A}var V=F.prototype=new L;V.constructor=F,N(V,_.prototype),V.isPureReactComponent=!0;var H=Array.isArray,z=Object.prototype.hasOwnProperty,U={current:null},J={key:!0,ref:!0,__self:!0,__source:!0};function q(G,Y,re){var ye,Se={},Ne=null,le=null;if(Y!=null)for(ye in Y.ref!==void 0&&(le=Y.ref),Y.key!==void 0&&(Ne=""+Y.key),Y)z.call(Y,ye)&&!J.hasOwnProperty(ye)&&(Se[ye]=Y[ye]);var ve=arguments.length-2;if(ve===1)Se.children=re;else if(1<ve){for(var we=Array(ve),Ve=0;Ve<ve;Ve++)we[Ve]=arguments[Ve+2];Se.children=we}if(G&&G.defaultProps)for(ye in ve=G.defaultProps,ve)Se[ye]===void 0&&(Se[ye]=ve[ye]);return{$$typeof:n,type:G,key:Ne,ref:le,props:Se,_owner:U.current}}function Re(G,Y){return{$$typeof:n,type:G.type,key:Y,ref:G.ref,props:G.props,_owner:G._owner}}function he(G){return typeof G=="object"&&G!==null&&G.$$typeof===n}function ge(G){var Y={"=":"=0",":":"=2"};return"$"+G.replace(/[=:]/g,function(re){return Y[re]})}var fe=/\/+/g;function Oe(G,Y){return typeof G=="object"&&G!==null&&G.key!=null?ge(""+G.key):Y.toString(36)}function Te(G,Y,re,ye,Se){var Ne=typeof G;(Ne==="undefined"||Ne==="boolean")&&(G=null);var le=!1;if(G===null)le=!0;else switch(Ne){case"string":case"number":le=!0;break;case"object":switch(G.$$typeof){case n:case r:le=!0}}if(le)return le=G,Se=Se(le),G=ye===""?"."+Oe(le,0):ye,H(Se)?(re="",G!=null&&(re=G.replace(fe,"$&/")+"/"),Te(Se,Y,re,"",function(Ve){return Ve})):Se!=null&&(he(Se)&&(Se=Re(Se,re+(!Se.key||le&&le.key===Se.key?"":(""+Se.key).replace(fe,"$&/")+"/")+G)),Y.push(Se)),1;if(le=0,ye=ye===""?".":ye+":",H(G))for(var ve=0;ve<G.length;ve++){Ne=G[ve];var we=ye+Oe(Ne,ve);le+=Te(Ne,Y,re,we,Se)}else if(we=T(G),typeof we=="function")for(G=we.call(G),ve=0;!(Ne=G.next()).done;)Ne=Ne.value,we=ye+Oe(Ne,ve++),le+=Te(Ne,Y,re,we,Se);else if(Ne==="object")throw Y=String(G),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(G).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.");return le}function xe(G,Y,re){if(G==null)return G;var ye=[],Se=0;return Te(G,ye,"","",function(Ne){return Y.call(re,Ne,Se++)}),ye}function je(G){if(G._status===-1){var Y=G._result;Y=Y(),Y.then(function(re){(G._status===0||G._status===-1)&&(G._status=1,G._result=re)},function(re){(G._status===0||G._status===-1)&&(G._status=2,G._result=re)}),G._status===-1&&(G._status=0,G._result=Y)}if(G._status===1)return G._result.default;throw G._result}var Le={current:null},ne={transition:null},_e={ReactCurrentDispatcher:Le,ReactCurrentBatchConfig:ne,ReactCurrentOwner:U};return Xt.Children={map:xe,forEach:function(G,Y,re){xe(G,function(){Y.apply(this,arguments)},re)},count:function(G){var Y=0;return xe(G,function(){Y++}),Y},toArray:function(G){return xe(G,function(Y){return Y})||[]},only:function(G){if(!he(G))throw Error("React.Children.only expected to receive a single React element child.");return G}},Xt.Component=_,Xt.Fragment=i,Xt.Profiler=l,Xt.PureComponent=F,Xt.StrictMode=u,Xt.Suspense=y,Xt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_e,Xt.cloneElement=function(G,Y,re){if(G==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+G+".");var ye=N({},G.props),Se=G.key,Ne=G.ref,le=G._owner;if(Y!=null){if(Y.ref!==void 0&&(Ne=Y.ref,le=U.current),Y.key!==void 0&&(Se=""+Y.key),G.type&&G.type.defaultProps)var ve=G.type.defaultProps;for(we in Y)z.call(Y,we)&&!J.hasOwnProperty(we)&&(ye[we]=Y[we]===void 0&&ve!==void 0?ve[we]:Y[we])}var we=arguments.length-2;if(we===1)ye.children=re;else if(1<we){ve=Array(we);for(var Ve=0;Ve<we;Ve++)ve[Ve]=arguments[Ve+2];ye.children=ve}return{$$typeof:n,type:G.type,key:Se,ref:Ne,props:ye,_owner:le}},Xt.createContext=function(G){return G={$$typeof:h,_currentValue:G,_currentValue2:G,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},G.Provider={$$typeof:d,_context:G},G.Consumer=G},Xt.createElement=q,Xt.createFactory=function(G){var Y=q.bind(null,G);return Y.type=G,Y},Xt.createRef=function(){return{current:null}},Xt.forwardRef=function(G){return{$$typeof:v,render:G}},Xt.isValidElement=he,Xt.lazy=function(G){return{$$typeof:x,_payload:{_status:-1,_result:G},_init:je}},Xt.memo=function(G,Y){return{$$typeof:C,type:G,compare:Y===void 0?null:Y}},Xt.startTransition=function(G){var Y=ne.transition;ne.transition={};try{G()}finally{ne.transition=Y}},Xt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},Xt.useCallback=function(G,Y){return Le.current.useCallback(G,Y)},Xt.useContext=function(G){return Le.current.useContext(G)},Xt.useDebugValue=function(){},Xt.useDeferredValue=function(G){return Le.current.useDeferredValue(G)},Xt.useEffect=function(G,Y){return Le.current.useEffect(G,Y)},Xt.useId=function(){return Le.current.useId()},Xt.useImperativeHandle=function(G,Y,re){return Le.current.useImperativeHandle(G,Y,re)},Xt.useInsertionEffect=function(G,Y){return Le.current.useInsertionEffect(G,Y)},Xt.useLayoutEffect=function(G,Y){return Le.current.useLayoutEffect(G,Y)},Xt.useMemo=function(G,Y){return Le.current.useMemo(G,Y)},Xt.useReducer=function(G,Y,re){return Le.current.useReducer(G,Y,re)},Xt.useRef=function(G){return Le.current.useRef(G)},Xt.useState=function(G){return Le.current.useState(G)},Xt.useSyncExternalStore=function(G,Y,re){return Le.current.useSyncExternalStore(G,Y,re)},Xt.useTransition=function(){return Le.current.useTransition()},Xt.version="18.2.0",Xt}var cm={exports:{}};cm.exports;var AN;function ZB(){return AN||(AN=1,function(n,r){var i={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react.development.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
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
|
-
*/i.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 u="18.2.0",l=Symbol.for("react.element"),d=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),x=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),L=Symbol.iterator,F="@@iterator";function V(D){if(D===null||typeof D!="object")return null;var X=L&&D[L]||D[F];return typeof X=="function"?X:null}var H={current:null},z={transition:null},U={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},J={current:null},q={},Re=null;function he(D){Re=D}q.setExtraStackFrame=function(D){Re=D},q.getCurrentStack=null,q.getStackAddendum=function(){var D="";Re&&(D+=Re);var X=q.getCurrentStack;return X&&(D+=X()||""),D};var ge=!1,fe=!1,Oe=!1,Te=!1,xe=!1,je={ReactCurrentDispatcher:H,ReactCurrentBatchConfig:z,ReactCurrentOwner:J};je.ReactDebugCurrentFrame=q,je.ReactCurrentActQueue=U;function Le(D){{for(var X=arguments.length,ue=new Array(X>1?X-1:0),me=1;me<X;me++)ue[me-1]=arguments[me];_e("warn",D,ue)}}function ne(D){{for(var X=arguments.length,ue=new Array(X>1?X-1:0),me=1;me<X;me++)ue[me-1]=arguments[me];_e("error",D,ue)}}function _e(D,X,ue){{var me=je.ReactDebugCurrentFrame,Be=me.getStackAddendum();Be!==""&&(X+="%s",ue=ue.concat([Be]));var it=ue.map(function(Je){return String(Je)});it.unshift("Warning: "+X),Function.prototype.apply.call(console[D],console,it)}}var G={};function Y(D,X){{var ue=D.constructor,me=ue&&(ue.displayName||ue.name)||"ReactClass",Be=me+"."+X;if(G[Be])return;ne("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.",X,me),G[Be]=!0}}var re={isMounted:function(D){return!1},enqueueForceUpdate:function(D,X,ue){Y(D,"forceUpdate")},enqueueReplaceState:function(D,X,ue,me){Y(D,"replaceState")},enqueueSetState:function(D,X,ue,me){Y(D,"setState")}},ye=Object.assign,Se={};Object.freeze(Se);function Ne(D,X,ue){this.props=D,this.context=X,this.refs=Se,this.updater=ue||re}Ne.prototype.isReactComponent={},Ne.prototype.setState=function(D,X){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,X,"setState")},Ne.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};{var le={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)."]},ve=function(D,X){Object.defineProperty(Ne.prototype,D,{get:function(){Le("%s(...) is deprecated in plain JavaScript React classes. %s",X[0],X[1])}})};for(var we in le)le.hasOwnProperty(we)&&ve(we,le[we])}function Ve(){}Ve.prototype=Ne.prototype;function et(D,X,ue){this.props=D,this.context=X,this.refs=Se,this.updater=ue||re}var tt=et.prototype=new Ve;tt.constructor=et,ye(tt,Ne.prototype),tt.isPureReactComponent=!0;function ft(){var D={current:null};return Object.seal(D),D}var Ae=Array.isArray;function It(D){return Ae(D)}function pt(D){{var X=typeof Symbol=="function"&&Symbol.toStringTag,ue=X&&D[Symbol.toStringTag]||D.constructor.name||"Object";return ue}}function Kt(D){try{return on(D),!1}catch{return!0}}function on(D){return""+D}function sn(D){if(Kt(D))return ne("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",pt(D)),on(D)}function _n(D,X,ue){var me=D.displayName;if(me)return me;var Be=X.displayName||X.name||"";return Be!==""?ue+"("+Be+")":ue}function Vt(D){return D.displayName||"Context"}function Cn(D){if(D==null)return null;if(typeof D.tag=="number"&&ne("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof D=="function")return D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case h:return"Fragment";case d:return"Portal";case y:return"Profiler";case v:return"StrictMode";case T:return"Suspense";case A:return"SuspenseList"}if(typeof D=="object")switch(D.$$typeof){case x:var X=D;return Vt(X)+".Consumer";case C:var ue=D;return Vt(ue._context)+".Provider";case w:return _n(D,D.render,"ForwardRef");case N:var me=D.displayName||null;return me!==null?me:Cn(D.type)||"Memo";case O:{var Be=D,it=Be._payload,Je=Be._init;try{return Cn(Je(it))}catch{return null}}}return null}var Qn=Object.prototype.hasOwnProperty,Rr={key:!0,ref:!0,__self:!0,__source:!0},$n,Tr,xt;xt={};function Pn(D){if(Qn.call(D,"ref")){var X=Object.getOwnPropertyDescriptor(D,"ref").get;if(X&&X.isReactWarning)return!1}return D.ref!==void 0}function ln(D){if(Qn.call(D,"key")){var X=Object.getOwnPropertyDescriptor(D,"key").get;if(X&&X.isReactWarning)return!1}return D.key!==void 0}function Ba(D,X){var ue=function(){$n||($n=!0,ne("%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)",X))};ue.isReactWarning=!0,Object.defineProperty(D,"key",{get:ue,configurable:!0})}function za(D,X){var ue=function(){Tr||(Tr=!0,ne("%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)",X))};ue.isReactWarning=!0,Object.defineProperty(D,"ref",{get:ue,configurable:!0})}function Ha(D){if(typeof D.ref=="string"&&J.current&&D.__self&&J.current.stateNode!==D.__self){var X=Cn(J.current.type);xt[X]||(ne('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',X,D.ref),xt[X]=!0)}}var Ge=function(D,X,ue,me,Be,it,Je){var wt={$$typeof:l,type:D,key:X,ref:ue,props:Je,_owner:it};return wt._store={},Object.defineProperty(wt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(wt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:me}),Object.defineProperty(wt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Be}),Object.freeze&&(Object.freeze(wt.props),Object.freeze(wt)),wt};function dt(D,X,ue){var me,Be={},it=null,Je=null,wt=null,Pt=null;if(X!=null){Pn(X)&&(Je=X.ref,Ha(X)),ln(X)&&(sn(X.key),it=""+X.key),wt=X.__self===void 0?null:X.__self,Pt=X.__source===void 0?null:X.__source;for(me in X)Qn.call(X,me)&&!Rr.hasOwnProperty(me)&&(Be[me]=X[me])}var fn=arguments.length-2;if(fn===1)Be.children=ue;else if(fn>1){for(var vn=Array(fn),hn=0;hn<fn;hn++)vn[hn]=arguments[hn+2];Object.freeze&&Object.freeze(vn),Be.children=vn}if(D&&D.defaultProps){var mn=D.defaultProps;for(me in mn)Be[me]===void 0&&(Be[me]=mn[me])}if(it||Je){var Vn=typeof D=="function"?D.displayName||D.name||"Unknown":D;it&&Ba(Be,Vn),Je&&za(Be,Vn)}return Ge(D,it,Je,wt,Pt,J.current,Be)}function Mt(D,X){var ue=Ge(D.type,X,D.ref,D._self,D._source,D._owner,D.props);return ue}function un(D,X,ue){if(D==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var me,Be=ye({},D.props),it=D.key,Je=D.ref,wt=D._self,Pt=D._source,fn=D._owner;if(X!=null){Pn(X)&&(Je=X.ref,fn=J.current),ln(X)&&(sn(X.key),it=""+X.key);var vn;D.type&&D.type.defaultProps&&(vn=D.type.defaultProps);for(me in X)Qn.call(X,me)&&!Rr.hasOwnProperty(me)&&(X[me]===void 0&&vn!==void 0?Be[me]=vn[me]:Be[me]=X[me])}var hn=arguments.length-2;if(hn===1)Be.children=ue;else if(hn>1){for(var mn=Array(hn),Vn=0;Vn<hn;Vn++)mn[Vn]=arguments[Vn+2];Be.children=mn}return Ge(D.type,it,Je,wt,Pt,fn,Be)}function en(D){return typeof D=="object"&&D!==null&&D.$$typeof===l}var ir=".",Gn=":";function Xr(D){var X=/[=:]/g,ue={"=":"=0",":":"=2"},me=D.replace(X,function(Be){return ue[Be]});return"$"+me}var pn=!1,Ir=/\/+/g;function cn(D){return D.replace(Ir,"$&/")}function On(D,X){return typeof D=="object"&&D!==null&&D.key!=null?(sn(D.key),Xr(""+D.key)):X.toString(36)}function ki(D,X,ue,me,Be){var it=typeof D;(it==="undefined"||it==="boolean")&&(D=null);var Je=!1;if(D===null)Je=!0;else switch(it){case"string":case"number":Je=!0;break;case"object":switch(D.$$typeof){case l:case d:Je=!0}}if(Je){var wt=D,Pt=Be(wt),fn=me===""?ir+On(wt,0):me;if(It(Pt)){var vn="";fn!=null&&(vn=cn(fn)+"/"),ki(Pt,X,vn,"",function(av){return av})}else Pt!=null&&(en(Pt)&&(Pt.key&&(!wt||wt.key!==Pt.key)&&sn(Pt.key),Pt=Mt(Pt,ue+(Pt.key&&(!wt||wt.key!==Pt.key)?cn(""+Pt.key)+"/":"")+fn)),X.push(Pt));return 1}var hn,mn,Vn=0,Zt=me===""?ir:me+Gn;if(It(D))for(var Ss=0;Ss<D.length;Ss++)hn=D[Ss],mn=Zt+On(hn,Ss),Vn+=ki(hn,X,ue,mn,Be);else{var vu=V(D);if(typeof vu=="function"){var Ac=D;vu===Ac.entries&&(pn||Le("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),pn=!0);for(var jc=vu.call(Ac),Mo,Dc=0;!(Mo=jc.next()).done;)hn=Mo.value,mn=Zt+On(hn,Dc++),Vn+=ki(hn,X,ue,mn,Be)}else if(it==="object"){var kc=String(D);throw new Error("Objects are not valid as a React child (found: "+(kc==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":kc)+"). If you meant to render a collection of children, use an array instead.")}}return Vn}function ai(D,X,ue){if(D==null)return D;var me=[],Be=0;return ki(D,me,"","",function(it){return X.call(ue,it,Be++)}),me}function vs(D){var X=0;return ai(D,function(){X++}),X}function al(D,X,ue){ai(D,function(){X.apply(this,arguments)},ue)}function il(D){return ai(D,function(X){return X})||[]}function hs(D){if(!en(D))throw new Error("React.Children.only expected to receive a single React element child.");return D}function Mi(D){var X={$$typeof:x,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};X.Provider={$$typeof:C,_context:X};var ue=!1,me=!1,Be=!1;{var it={$$typeof:x,_context:X};Object.defineProperties(it,{Provider:{get:function(){return me||(me=!0,ne("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),X.Provider},set:function(Je){X.Provider=Je}},_currentValue:{get:function(){return X._currentValue},set:function(Je){X._currentValue=Je}},_currentValue2:{get:function(){return X._currentValue2},set:function(Je){X._currentValue2=Je}},_threadCount:{get:function(){return X._threadCount},set:function(Je){X._threadCount=Je}},Consumer:{get:function(){return ue||(ue=!0,ne("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),X.Consumer}},displayName:{get:function(){return X.displayName},set:function(Je){Be||(Le("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Je),Be=!0)}}}),X.Consumer=it}return X._currentRenderer=null,X._currentRenderer2=null,X}var Li=-1,ii=0,No=1,ga=2;function ya(D){if(D._status===Li){var X=D._result,ue=X();if(ue.then(function(it){if(D._status===ii||D._status===Li){var Je=D;Je._status=No,Je._result=it}},function(it){if(D._status===ii||D._status===Li){var Je=D;Je._status=ga,Je._result=it}}),D._status===Li){var me=D;me._status=ii,me._result=ue}}if(D._status===No){var Be=D._result;return Be===void 0&&ne(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
17
|
+
*/i.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 u="18.2.0",l=Symbol.for("react.element"),d=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),x=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),L=Symbol.iterator,F="@@iterator";function V(D){if(D===null||typeof D!="object")return null;var X=L&&D[L]||D[F];return typeof X=="function"?X:null}var H={current:null},z={transition:null},U={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},J={current:null},q={},Re=null;function he(D){Re=D}q.setExtraStackFrame=function(D){Re=D},q.getCurrentStack=null,q.getStackAddendum=function(){var D="";Re&&(D+=Re);var X=q.getCurrentStack;return X&&(D+=X()||""),D};var ge=!1,fe=!1,Oe=!1,Te=!1,xe=!1,je={ReactCurrentDispatcher:H,ReactCurrentBatchConfig:z,ReactCurrentOwner:J};je.ReactDebugCurrentFrame=q,je.ReactCurrentActQueue=U;function Le(D){{for(var X=arguments.length,ue=new Array(X>1?X-1:0),me=1;me<X;me++)ue[me-1]=arguments[me];_e("warn",D,ue)}}function ne(D){{for(var X=arguments.length,ue=new Array(X>1?X-1:0),me=1;me<X;me++)ue[me-1]=arguments[me];_e("error",D,ue)}}function _e(D,X,ue){{var me=je.ReactDebugCurrentFrame,Be=me.getStackAddendum();Be!==""&&(X+="%s",ue=ue.concat([Be]));var it=ue.map(function(Je){return String(Je)});it.unshift("Warning: "+X),Function.prototype.apply.call(console[D],console,it)}}var G={};function Y(D,X){{var ue=D.constructor,me=ue&&(ue.displayName||ue.name)||"ReactClass",Be=me+"."+X;if(G[Be])return;ne("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.",X,me),G[Be]=!0}}var re={isMounted:function(D){return!1},enqueueForceUpdate:function(D,X,ue){Y(D,"forceUpdate")},enqueueReplaceState:function(D,X,ue,me){Y(D,"replaceState")},enqueueSetState:function(D,X,ue,me){Y(D,"setState")}},ye=Object.assign,Se={};Object.freeze(Se);function Ne(D,X,ue){this.props=D,this.context=X,this.refs=Se,this.updater=ue||re}Ne.prototype.isReactComponent={},Ne.prototype.setState=function(D,X){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,X,"setState")},Ne.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};{var le={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)."]},ve=function(D,X){Object.defineProperty(Ne.prototype,D,{get:function(){Le("%s(...) is deprecated in plain JavaScript React classes. %s",X[0],X[1])}})};for(var we in le)le.hasOwnProperty(we)&&ve(we,le[we])}function Ve(){}Ve.prototype=Ne.prototype;function et(D,X,ue){this.props=D,this.context=X,this.refs=Se,this.updater=ue||re}var tt=et.prototype=new Ve;tt.constructor=et,ye(tt,Ne.prototype),tt.isPureReactComponent=!0;function ft(){var D={current:null};return Object.seal(D),D}var Ae=Array.isArray;function It(D){return Ae(D)}function pt(D){{var X=typeof Symbol=="function"&&Symbol.toStringTag,ue=X&&D[Symbol.toStringTag]||D.constructor.name||"Object";return ue}}function Kt(D){try{return on(D),!1}catch{return!0}}function on(D){return""+D}function sn(D){if(Kt(D))return ne("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",pt(D)),on(D)}function _n(D,X,ue){var me=D.displayName;if(me)return me;var Be=X.displayName||X.name||"";return Be!==""?ue+"("+Be+")":ue}function Vt(D){return D.displayName||"Context"}function Cn(D){if(D==null)return null;if(typeof D.tag=="number"&&ne("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof D=="function")return D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case h:return"Fragment";case d:return"Portal";case y:return"Profiler";case v:return"StrictMode";case T:return"Suspense";case A:return"SuspenseList"}if(typeof D=="object")switch(D.$$typeof){case x:var X=D;return Vt(X)+".Consumer";case C:var ue=D;return Vt(ue._context)+".Provider";case R:return _n(D,D.render,"ForwardRef");case N:var me=D.displayName||null;return me!==null?me:Cn(D.type)||"Memo";case O:{var Be=D,it=Be._payload,Je=Be._init;try{return Cn(Je(it))}catch{return null}}}return null}var Qn=Object.prototype.hasOwnProperty,Rr={key:!0,ref:!0,__self:!0,__source:!0},$n,Tr,xt;xt={};function Pn(D){if(Qn.call(D,"ref")){var X=Object.getOwnPropertyDescriptor(D,"ref").get;if(X&&X.isReactWarning)return!1}return D.ref!==void 0}function ln(D){if(Qn.call(D,"key")){var X=Object.getOwnPropertyDescriptor(D,"key").get;if(X&&X.isReactWarning)return!1}return D.key!==void 0}function Ba(D,X){var ue=function(){$n||($n=!0,ne("%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)",X))};ue.isReactWarning=!0,Object.defineProperty(D,"key",{get:ue,configurable:!0})}function za(D,X){var ue=function(){Tr||(Tr=!0,ne("%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)",X))};ue.isReactWarning=!0,Object.defineProperty(D,"ref",{get:ue,configurable:!0})}function Ha(D){if(typeof D.ref=="string"&&J.current&&D.__self&&J.current.stateNode!==D.__self){var X=Cn(J.current.type);xt[X]||(ne('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',X,D.ref),xt[X]=!0)}}var Ge=function(D,X,ue,me,Be,it,Je){var wt={$$typeof:l,type:D,key:X,ref:ue,props:Je,_owner:it};return wt._store={},Object.defineProperty(wt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(wt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:me}),Object.defineProperty(wt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Be}),Object.freeze&&(Object.freeze(wt.props),Object.freeze(wt)),wt};function dt(D,X,ue){var me,Be={},it=null,Je=null,wt=null,Pt=null;if(X!=null){Pn(X)&&(Je=X.ref,Ha(X)),ln(X)&&(sn(X.key),it=""+X.key),wt=X.__self===void 0?null:X.__self,Pt=X.__source===void 0?null:X.__source;for(me in X)Qn.call(X,me)&&!Rr.hasOwnProperty(me)&&(Be[me]=X[me])}var fn=arguments.length-2;if(fn===1)Be.children=ue;else if(fn>1){for(var vn=Array(fn),hn=0;hn<fn;hn++)vn[hn]=arguments[hn+2];Object.freeze&&Object.freeze(vn),Be.children=vn}if(D&&D.defaultProps){var mn=D.defaultProps;for(me in mn)Be[me]===void 0&&(Be[me]=mn[me])}if(it||Je){var Vn=typeof D=="function"?D.displayName||D.name||"Unknown":D;it&&Ba(Be,Vn),Je&&za(Be,Vn)}return Ge(D,it,Je,wt,Pt,J.current,Be)}function Mt(D,X){var ue=Ge(D.type,X,D.ref,D._self,D._source,D._owner,D.props);return ue}function un(D,X,ue){if(D==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var me,Be=ye({},D.props),it=D.key,Je=D.ref,wt=D._self,Pt=D._source,fn=D._owner;if(X!=null){Pn(X)&&(Je=X.ref,fn=J.current),ln(X)&&(sn(X.key),it=""+X.key);var vn;D.type&&D.type.defaultProps&&(vn=D.type.defaultProps);for(me in X)Qn.call(X,me)&&!Rr.hasOwnProperty(me)&&(X[me]===void 0&&vn!==void 0?Be[me]=vn[me]:Be[me]=X[me])}var hn=arguments.length-2;if(hn===1)Be.children=ue;else if(hn>1){for(var mn=Array(hn),Vn=0;Vn<hn;Vn++)mn[Vn]=arguments[Vn+2];Be.children=mn}return Ge(D.type,it,Je,wt,Pt,fn,Be)}function en(D){return typeof D=="object"&&D!==null&&D.$$typeof===l}var ir=".",Gn=":";function Xr(D){var X=/[=:]/g,ue={"=":"=0",":":"=2"},me=D.replace(X,function(Be){return ue[Be]});return"$"+me}var pn=!1,Ir=/\/+/g;function cn(D){return D.replace(Ir,"$&/")}function On(D,X){return typeof D=="object"&&D!==null&&D.key!=null?(sn(D.key),Xr(""+D.key)):X.toString(36)}function ki(D,X,ue,me,Be){var it=typeof D;(it==="undefined"||it==="boolean")&&(D=null);var Je=!1;if(D===null)Je=!0;else switch(it){case"string":case"number":Je=!0;break;case"object":switch(D.$$typeof){case l:case d:Je=!0}}if(Je){var wt=D,Pt=Be(wt),fn=me===""?ir+On(wt,0):me;if(It(Pt)){var vn="";fn!=null&&(vn=cn(fn)+"/"),ki(Pt,X,vn,"",function(av){return av})}else Pt!=null&&(en(Pt)&&(Pt.key&&(!wt||wt.key!==Pt.key)&&sn(Pt.key),Pt=Mt(Pt,ue+(Pt.key&&(!wt||wt.key!==Pt.key)?cn(""+Pt.key)+"/":"")+fn)),X.push(Pt));return 1}var hn,mn,Vn=0,Zt=me===""?ir:me+Gn;if(It(D))for(var Ss=0;Ss<D.length;Ss++)hn=D[Ss],mn=Zt+On(hn,Ss),Vn+=ki(hn,X,ue,mn,Be);else{var vu=V(D);if(typeof vu=="function"){var Ac=D;vu===Ac.entries&&(pn||Le("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),pn=!0);for(var jc=vu.call(Ac),Mo,Dc=0;!(Mo=jc.next()).done;)hn=Mo.value,mn=Zt+On(hn,Dc++),Vn+=ki(hn,X,ue,mn,Be)}else if(it==="object"){var kc=String(D);throw new Error("Objects are not valid as a React child (found: "+(kc==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":kc)+"). If you meant to render a collection of children, use an array instead.")}}return Vn}function ai(D,X,ue){if(D==null)return D;var me=[],Be=0;return ki(D,me,"","",function(it){return X.call(ue,it,Be++)}),me}function vs(D){var X=0;return ai(D,function(){X++}),X}function al(D,X,ue){ai(D,function(){X.apply(this,arguments)},ue)}function il(D){return ai(D,function(X){return X})||[]}function hs(D){if(!en(D))throw new Error("React.Children.only expected to receive a single React element child.");return D}function Mi(D){var X={$$typeof:x,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};X.Provider={$$typeof:C,_context:X};var ue=!1,me=!1,Be=!1;{var it={$$typeof:x,_context:X};Object.defineProperties(it,{Provider:{get:function(){return me||(me=!0,ne("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),X.Provider},set:function(Je){X.Provider=Je}},_currentValue:{get:function(){return X._currentValue},set:function(Je){X._currentValue=Je}},_currentValue2:{get:function(){return X._currentValue2},set:function(Je){X._currentValue2=Je}},_threadCount:{get:function(){return X._threadCount},set:function(Je){X._threadCount=Je}},Consumer:{get:function(){return ue||(ue=!0,ne("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),X.Consumer}},displayName:{get:function(){return X.displayName},set:function(Je){Be||(Le("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Je),Be=!0)}}}),X.Consumer=it}return X._currentRenderer=null,X._currentRenderer2=null,X}var Li=-1,ii=0,No=1,ga=2;function ya(D){if(D._status===Li){var X=D._result,ue=X();if(ue.then(function(it){if(D._status===ii||D._status===Li){var Je=D;Je._status=No,Je._result=it}},function(it){if(D._status===ii||D._status===Li){var Je=D;Je._status=ga,Je._result=it}}),D._status===Li){var me=D;me._status=ii,me._result=ue}}if(D._status===No){var Be=D._result;return Be===void 0&&ne(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
18
18
|
|
|
19
19
|
Your code should look like:
|
|
20
20
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -22,7 +22,7 @@ Your code should look like:
|
|
|
22
22
|
Did you accidentally put curly braces around the import?`,Be),"default"in Be||ne(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
23
23
|
|
|
24
24
|
Your code should look like:
|
|
25
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,Be),Be.default}else throw D._result}function Ua(D){var X={_status:Li,_result:D},ue={$$typeof:O,_payload:X,_init:ya};{var me,Be;Object.defineProperties(ue,{defaultProps:{configurable:!0,get:function(){return me},set:function(it){ne("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."),me=it,Object.defineProperty(ue,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return Be},set:function(it){ne("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."),Be=it,Object.defineProperty(ue,"propTypes",{enumerable:!0})}}})}return ue}function _o(D){D!=null&&D.$$typeof===N?ne("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof D!="function"?ne("forwardRef requires a render function but was given %s.",D===null?"null":typeof D):D.length!==0&&D.length!==2&&ne("forwardRef render functions accept exactly two parameters: props and ref. %s",D.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),D!=null&&(D.defaultProps!=null||D.propTypes!=null)&&ne("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var X={$$typeof:
|
|
25
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,Be),Be.default}else throw D._result}function Ua(D){var X={_status:Li,_result:D},ue={$$typeof:O,_payload:X,_init:ya};{var me,Be;Object.defineProperties(ue,{defaultProps:{configurable:!0,get:function(){return me},set:function(it){ne("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."),me=it,Object.defineProperty(ue,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return Be},set:function(it){ne("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."),Be=it,Object.defineProperty(ue,"propTypes",{enumerable:!0})}}})}return ue}function _o(D){D!=null&&D.$$typeof===N?ne("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof D!="function"?ne("forwardRef requires a render function but was given %s.",D===null?"null":typeof D):D.length!==0&&D.length!==2&&ne("forwardRef render functions accept exactly two parameters: props and ref. %s",D.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),D!=null&&(D.defaultProps!=null||D.propTypes!=null)&&ne("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var X={$$typeof:R,render:D};{var ue;Object.defineProperty(X,"displayName",{enumerable:!1,configurable:!0,get:function(){return ue},set:function(me){ue=me,!D.name&&!D.displayName&&(D.displayName=me)}})}return X}var Z;Z=Symbol.for("react.module.reference");function ke(D){return!!(typeof D=="string"||typeof D=="function"||D===h||D===y||xe||D===v||D===T||D===A||Te||D===_||ge||fe||Oe||typeof D=="object"&&D!==null&&(D.$$typeof===O||D.$$typeof===N||D.$$typeof===C||D.$$typeof===x||D.$$typeof===R||D.$$typeof===Z||D.getModuleId!==void 0))}function Ue(D,X){ke(D)||ne("memo: The first argument must be a component. Instead received: %s",D===null?"null":typeof D);var ue={$$typeof:N,type:D,compare:X===void 0?null:X};{var me;Object.defineProperty(ue,"displayName",{enumerable:!1,configurable:!0,get:function(){return me},set:function(Be){me=Be,!D.name&&!D.displayName&&(D.displayName=Be)}})}return ue}function We(){var D=H.current;return D===null&&ne(`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
26
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
27
27
|
2. You might be breaking the Rules of Hooks
|
|
28
28
|
3. You might have more than one copy of React in the same app
|
|
@@ -30,13 +30,13 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
30
30
|
`+oi+D}}var to=!1,ll;{var ul=typeof WeakMap=="function"?WeakMap:Map;ll=new ul}function ys(D,X){if(!D||to)return"";{var ue=ll.get(D);if(ue!==void 0)return ue}var me;to=!0;var Be=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var it;it=eo.current,eo.current=null,ou();try{if(X){var Je=function(){throw Error()};if(Object.defineProperty(Je.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Je,[])}catch(Zt){me=Zt}Reflect.construct(D,[],Je)}else{try{Je.call()}catch(Zt){me=Zt}D.call(Je.prototype)}}else{try{throw Error()}catch(Zt){me=Zt}D()}}catch(Zt){if(Zt&&me&&typeof Zt.stack=="string"){for(var wt=Zt.stack.split(`
|
|
31
31
|
`),Pt=me.stack.split(`
|
|
32
32
|
`),fn=wt.length-1,vn=Pt.length-1;fn>=1&&vn>=0&&wt[fn]!==Pt[vn];)vn--;for(;fn>=1&&vn>=0;fn--,vn--)if(wt[fn]!==Pt[vn]){if(fn!==1||vn!==1)do if(fn--,vn--,vn<0||wt[fn]!==Pt[vn]){var hn=`
|
|
33
|
-
`+wt[fn].replace(" at new "," at ");return D.displayName&&hn.includes("<anonymous>")&&(hn=hn.replace("<anonymous>",D.displayName)),typeof D=="function"&&ll.set(D,hn),hn}while(fn>=1&&vn>=0);break}}}finally{to=!1,eo.current=it,Ao(),Error.prepareStackTrace=Be}var mn=D?D.displayName||D.name:"",Vn=mn?gs(mn):"";return typeof D=="function"&&ll.set(D,Vn),Vn}function Rc(D,X,ue){return ys(D,!1)}function Tc(D){var X=D.prototype;return!!(X&&X.isReactComponent)}function Ut(D,X,ue){if(D==null)return"";if(typeof D=="function")return ys(D,Tc(D));if(typeof D=="string")return gs(D);switch(D){case T:return gs("Suspense");case A:return gs("SuspenseList")}if(typeof D=="object")switch(D.$$typeof){case
|
|
33
|
+
`+wt[fn].replace(" at new "," at ");return D.displayName&&hn.includes("<anonymous>")&&(hn=hn.replace("<anonymous>",D.displayName)),typeof D=="function"&&ll.set(D,hn),hn}while(fn>=1&&vn>=0);break}}}finally{to=!1,eo.current=it,Ao(),Error.prepareStackTrace=Be}var mn=D?D.displayName||D.name:"",Vn=mn?gs(mn):"";return typeof D=="function"&&ll.set(D,Vn),Vn}function Rc(D,X,ue){return ys(D,!1)}function Tc(D){var X=D.prototype;return!!(X&&X.isReactComponent)}function Ut(D,X,ue){if(D==null)return"";if(typeof D=="function")return ys(D,Tc(D));if(typeof D=="string")return gs(D);switch(D){case T:return gs("Suspense");case A:return gs("SuspenseList")}if(typeof D=="object")switch(D.$$typeof){case R:return Rc(D.render);case N:return Ut(D.type,X,ue);case O:{var me=D,Be=me._payload,it=me._init;try{return Ut(it(Be),X,ue)}catch{}}}return""}var Ic={},su=je.ReactDebugCurrentFrame;function bs(D){if(D){var X=D._owner,ue=Ut(D.type,D._source,X?X.type:null);su.setExtraStackFrame(ue)}else su.setExtraStackFrame(null)}function Nc(D,X,ue,me,Be){{var it=Function.call.bind(Qn);for(var Je in D)if(it(D,Je)){var wt=void 0;try{if(typeof D[Je]!="function"){var Pt=Error((me||"React class")+": "+ue+" type `"+Je+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof D[Je]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Pt.name="Invariant Violation",Pt}wt=D[Je](X,Je,me,ue,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(fn){wt=fn}wt&&!(wt instanceof Error)&&(bs(Be),ne("%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).",me||"React class",ue,Je,typeof wt),bs(null)),wt instanceof Error&&!(wt.message in Ic)&&(Ic[wt.message]=!0,bs(Be),ne("Failed %s type: %s",ue,wt.message),bs(null))}}}function Yt(D){if(D){var X=D._owner,ue=Ut(D.type,D._source,X?X.type:null);he(ue)}else he(null)}var lu;lu=!1;function cl(){if(J.current){var D=Cn(J.current.type);if(D)return`
|
|
34
34
|
|
|
35
35
|
Check the render method of \``+D+"`."}return""}function Nt(D){if(D!==void 0){var X=D.fileName.replace(/^.*[\\\/]/,""),ue=D.lineNumber;return`
|
|
36
36
|
|
|
37
37
|
Check your code at `+X+":"+ue+"."}return""}function Pi(D){return D!=null?Nt(D.__source):""}var Wn={};function xa(D){var X=cl();if(!X){var ue=typeof D=="string"?D:D.displayName||D.name;ue&&(X=`
|
|
38
38
|
|
|
39
|
-
Check the top-level render call using <`+ue+">.")}return X}function si(D,X){if(!(!D._store||D._store.validated||D.key!=null)){D._store.validated=!0;var ue=xa(X);if(!Wn[ue]){Wn[ue]=!0;var me="";D&&D._owner&&D._owner!==J.current&&(me=" It was passed a child from "+Cn(D._owner.type)+"."),Yt(D),ne('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ue,me),Yt(null)}}}function Cs(D,X){if(typeof D=="object"){if(It(D))for(var ue=0;ue<D.length;ue++){var me=D[ue];en(me)&&si(me,X)}else if(en(D))D._store&&(D._store.validated=!0);else if(D){var Be=V(D);if(typeof Be=="function"&&Be!==D.entries)for(var it=Be.call(D),Je;!(Je=it.next()).done;)en(Je.value)&&si(Je.value,X)}}}function Fn(D){{var X=D.type;if(X==null||typeof X=="string")return;var ue;if(typeof X=="function")ue=X.propTypes;else if(typeof X=="object"&&(X.$$typeof===
|
|
39
|
+
Check the top-level render call using <`+ue+">.")}return X}function si(D,X){if(!(!D._store||D._store.validated||D.key!=null)){D._store.validated=!0;var ue=xa(X);if(!Wn[ue]){Wn[ue]=!0;var me="";D&&D._owner&&D._owner!==J.current&&(me=" It was passed a child from "+Cn(D._owner.type)+"."),Yt(D),ne('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ue,me),Yt(null)}}}function Cs(D,X){if(typeof D=="object"){if(It(D))for(var ue=0;ue<D.length;ue++){var me=D[ue];en(me)&&si(me,X)}else if(en(D))D._store&&(D._store.validated=!0);else if(D){var Be=V(D);if(typeof Be=="function"&&Be!==D.entries)for(var it=Be.call(D),Je;!(Je=it.next()).done;)en(Je.value)&&si(Je.value,X)}}}function Fn(D){{var X=D.type;if(X==null||typeof X=="string")return;var ue;if(typeof X=="function")ue=X.propTypes;else if(typeof X=="object"&&(X.$$typeof===R||X.$$typeof===N))ue=X.propTypes;else return;if(ue){var me=Cn(X);Nc(ue,D.props,"prop",me,D)}else if(X.PropTypes!==void 0&&!lu){lu=!0;var Be=Cn(X);ne("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Be||"Unknown")}typeof X.getDefaultProps=="function"&&!X.getDefaultProps.isReactClassApproved&&ne("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Xn(D){{for(var X=Object.keys(D.props),ue=0;ue<X.length;ue++){var me=X[ue];if(me!=="children"&&me!=="key"){Yt(D),ne("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",me),Yt(null);break}}D.ref!==null&&(Yt(D),ne("Invalid attribute `ref` supplied to `React.Fragment`."),Yt(null))}}function _c(D,X,ue){var me=ke(D);if(!me){var Be="";(D===void 0||typeof D=="object"&&D!==null&&Object.keys(D).length===0)&&(Be+=" 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 it=Pi(X);it?Be+=it:Be+=cl();var Je;D===null?Je="null":It(D)?Je="array":D!==void 0&&D.$$typeof===l?(Je="<"+(Cn(D.type)||"Unknown")+" />",Be=" Did you accidentally export a JSX literal instead of a component?"):Je=typeof D,ne("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Je,Be)}var wt=dt.apply(this,arguments);if(wt==null)return wt;if(me)for(var Pt=2;Pt<arguments.length;Pt++)Cs(arguments[Pt],D);return D===h?Xn(wt):Fn(wt),wt}var Mr=!1;function Sa(D){var X=_c.bind(null,D);return X.type=D,Mr||(Mr=!0,Le("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(X,"type",{enumerable:!1,get:function(){return Le("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:D}),D}}),X}function Fi(D,X,ue){for(var me=un.apply(this,arguments),Be=2;Be<arguments.length;Be++)Cs(arguments[Be],me.type);return Fn(me),me}function uu(D,X){var ue=z.transition;z.transition={};var me=z.transition;z.transition._updatedFibers=new Set;try{D()}finally{if(z.transition=ue,ue===null&&me._updatedFibers){var Be=me._updatedFibers.size;Be>10&&Le("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."),me._updatedFibers.clear()}}}var fl=!1,dl=null;function xs(D){if(dl===null)try{var X=("require"+Math.random()).slice(0,7),ue=n&&n[X];dl=ue.call(n,"timers").setImmediate}catch{dl=function(Be){fl===!1&&(fl=!0,typeof MessageChannel>"u"&&ne("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 it=new MessageChannel;it.port1.onmessage=Be,it.port2.postMessage(void 0)}}return dl(D)}var li=0,jo=!1;function cu(D){{var X=li;li++,U.current===null&&(U.current=[]);var ue=U.isBatchingLegacy,me;try{if(U.isBatchingLegacy=!0,me=D(),!ue&&U.didScheduleLegacyUpdate){var Be=U.current;Be!==null&&(U.didScheduleLegacyUpdate=!1,ko(Be))}}catch(mn){throw Do(X),mn}finally{U.isBatchingLegacy=ue}if(me!==null&&typeof me=="object"&&typeof me.then=="function"){var it=me,Je=!1,wt={then:function(mn,Vn){Je=!0,it.then(function(Zt){Do(X),li===0?fu(Zt,mn,Vn):mn(Zt)},function(Zt){Do(X),Vn(Zt)})}};return!jo&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){Je||(jo=!0,ne("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 () => ...);"))}),wt}else{var Pt=me;if(Do(X),li===0){var fn=U.current;fn!==null&&(ko(fn),U.current=null);var vn={then:function(mn,Vn){U.current===null?(U.current=[],fu(Pt,mn,Vn)):mn(Pt)}};return vn}else{var hn={then:function(mn,Vn){mn(Pt)}};return hn}}}}function Do(D){D!==li-1&&ne("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),li=D}function fu(D,X,ue){{var me=U.current;if(me!==null)try{ko(me),xs(function(){me.length===0?(U.current=null,X(D)):fu(D,X,ue)})}catch(Be){ue(Be)}else X(D)}}var no=!1;function ko(D){if(!no){no=!0;var X=0;try{for(;X<D.length;X++){var ue=D[X];do ue=ue(!0);while(ue!==null)}D.length=0}catch(me){throw D=D.slice(X+1),me}finally{no=!1}}}var du=_c,Oc=Fi,Vi=Sa,pu={map:ai,forEach:al,count:vs,toArray:il,only:hs};r.Children=pu,r.Component=Ne,r.Fragment=h,r.Profiler=y,r.PureComponent=et,r.StrictMode=v,r.Suspense=T,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=je,r.cloneElement=Oc,r.createContext=Mi,r.createElement=du,r.createFactory=Vi,r.createRef=ft,r.forwardRef=_o,r.isValidElement=en,r.lazy=Ua,r.memo=Ue,r.startTransition=uu,r.unstable_act=cu,r.useCallback=Yr,r.useContext=Bt,r.useDebugValue=ba,r.useDeferredValue=Ki,r.useEffect=pr,r.useId=Lt,r.useImperativeHandle=Dn,r.useInsertionEffect=An,r.useLayoutEffect=jn,r.useMemo=Qi,r.useReducer=kt,r.useRef=vt,r.useState=$t,r.useSyncExternalStore=ol,r.useTransition=Cc,r.version=u,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(cm,cm.exports)),cm.exports}var jN;function Qf(){if(jN)return Rb.exports;jN=1;var n={};return n.NODE_ENV==="production"?Rb.exports=YB():Rb.exports=ZB(),Rb.exports}/**
|
|
40
40
|
* @license React
|
|
41
41
|
* react-jsx-runtime.production.min.js
|
|
42
42
|
*
|
|
@@ -44,7 +44,7 @@ Check the top-level render call using <`+ue+">.")}return X}function si(D,X){if(!
|
|
|
44
44
|
*
|
|
45
45
|
* This source code is licensed under the MIT license found in the
|
|
46
46
|
* LICENSE file in the root directory of this source tree.
|
|
47
|
-
*/var DN;function JB(){if(DN)return tm;DN=1;var n=Qf(),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function h(v,y,C){var x,
|
|
47
|
+
*/var DN;function JB(){if(DN)return tm;DN=1;var n=Qf(),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function h(v,y,C){var x,R={},T=null,A=null;C!==void 0&&(T=""+C),y.key!==void 0&&(T=""+y.key),y.ref!==void 0&&(A=y.ref);for(x in y)u.call(y,x)&&!d.hasOwnProperty(x)&&(R[x]=y[x]);if(v&&v.defaultProps)for(x in y=v.defaultProps,y)R[x]===void 0&&(R[x]=y[x]);return{$$typeof:r,type:v,key:T,ref:A,props:R,_owner:l.current}}return tm.Fragment=i,tm.jsx=h,tm.jsxs=h,tm}var nm={},kN;function qB(){if(kN)return nm;kN=1;var n={};/**
|
|
48
48
|
* @license React
|
|
49
49
|
* react-jsx-runtime.development.js
|
|
50
50
|
*
|
|
@@ -52,11 +52,11 @@ Check the top-level render call using <`+ue+">.")}return X}function si(D,X){if(!
|
|
|
52
52
|
*
|
|
53
53
|
* This source code is licensed under the MIT license found in the
|
|
54
54
|
* LICENSE file in the root directory of this source tree.
|
|
55
|
-
*/return n.NODE_ENV!=="production"&&function(){var r=Qf(),i=Symbol.for("react.element"),u=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),y=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),
|
|
55
|
+
*/return n.NODE_ENV!=="production"&&function(){var r=Qf(),i=Symbol.for("react.element"),u=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),y=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),N=Symbol.for("react.offscreen"),O=Symbol.iterator,_="@@iterator";function L(Z){if(Z===null||typeof Z!="object")return null;var ke=O&&Z[O]||Z[_];return typeof ke=="function"?ke:null}var F=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function V(Z){{for(var ke=arguments.length,Ue=new Array(ke>1?ke-1:0),We=1;We<ke;We++)Ue[We-1]=arguments[We];H("error",Z,Ue)}}function H(Z,ke,Ue){{var We=F.ReactDebugCurrentFrame,Bt=We.getStackAddendum();Bt!==""&&(ke+="%s",Ue=Ue.concat([Bt]));var $t=Ue.map(function(kt){return String(kt)});$t.unshift("Warning: "+ke),Function.prototype.apply.call(console[Z],console,$t)}}var z=!1,U=!1,J=!1,q=!1,Re=!1,he;he=Symbol.for("react.module.reference");function ge(Z){return!!(typeof Z=="string"||typeof Z=="function"||Z===l||Z===h||Re||Z===d||Z===x||Z===R||q||Z===N||z||U||J||typeof Z=="object"&&Z!==null&&(Z.$$typeof===A||Z.$$typeof===T||Z.$$typeof===v||Z.$$typeof===y||Z.$$typeof===C||Z.$$typeof===he||Z.getModuleId!==void 0))}function fe(Z,ke,Ue){var We=Z.displayName;if(We)return We;var Bt=ke.displayName||ke.name||"";return Bt!==""?Ue+"("+Bt+")":Ue}function Oe(Z){return Z.displayName||"Context"}function Te(Z){if(Z==null)return null;if(typeof Z.tag=="number"&&V("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof Z=="function")return Z.displayName||Z.name||null;if(typeof Z=="string")return Z;switch(Z){case l:return"Fragment";case u:return"Portal";case h:return"Profiler";case d:return"StrictMode";case x:return"Suspense";case R:return"SuspenseList"}if(typeof Z=="object")switch(Z.$$typeof){case y:var ke=Z;return Oe(ke)+".Consumer";case v:var Ue=Z;return Oe(Ue._context)+".Provider";case C:return fe(Z,Z.render,"ForwardRef");case T:var We=Z.displayName||null;return We!==null?We:Te(Z.type)||"Memo";case A:{var Bt=Z,$t=Bt._payload,kt=Bt._init;try{return Te(kt($t))}catch{return null}}}return null}var xe=Object.assign,je=0,Le,ne,_e,G,Y,re,ye;function Se(){}Se.__reactDisabledLog=!0;function Ne(){{if(je===0){Le=console.log,ne=console.info,_e=console.warn,G=console.error,Y=console.group,re=console.groupCollapsed,ye=console.groupEnd;var Z={configurable:!0,enumerable:!0,value:Se,writable:!0};Object.defineProperties(console,{info:Z,log:Z,warn:Z,error:Z,group:Z,groupCollapsed:Z,groupEnd:Z})}je++}}function le(){{if(je--,je===0){var Z={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:xe({},Z,{value:Le}),info:xe({},Z,{value:ne}),warn:xe({},Z,{value:_e}),error:xe({},Z,{value:G}),group:xe({},Z,{value:Y}),groupCollapsed:xe({},Z,{value:re}),groupEnd:xe({},Z,{value:ye})})}je<0&&V("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ve=F.ReactCurrentDispatcher,we;function Ve(Z,ke,Ue){{if(we===void 0)try{throw Error()}catch(Bt){var We=Bt.stack.trim().match(/\n( *(at )?)/);we=We&&We[1]||""}return`
|
|
56
56
|
`+we+Z}}var et=!1,tt;{var ft=typeof WeakMap=="function"?WeakMap:Map;tt=new ft}function Ae(Z,ke){if(!Z||et)return"";{var Ue=tt.get(Z);if(Ue!==void 0)return Ue}var We;et=!0;var Bt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var $t;$t=ve.current,ve.current=null,Ne();try{if(ke){var kt=function(){throw Error()};if(Object.defineProperty(kt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(kt,[])}catch(ba){We=ba}Reflect.construct(Z,[],kt)}else{try{kt.call()}catch(ba){We=ba}Z.call(kt.prototype)}}else{try{throw Error()}catch(ba){We=ba}Z()}}catch(ba){if(ba&&We&&typeof ba.stack=="string"){for(var vt=ba.stack.split(`
|
|
57
57
|
`),pr=We.stack.split(`
|
|
58
58
|
`),An=vt.length-1,jn=pr.length-1;An>=1&&jn>=0&&vt[An]!==pr[jn];)jn--;for(;An>=1&&jn>=0;An--,jn--)if(vt[An]!==pr[jn]){if(An!==1||jn!==1)do if(An--,jn--,jn<0||vt[An]!==pr[jn]){var Yr=`
|
|
59
|
-
`+vt[An].replace(" at new "," at ");return Z.displayName&&Yr.includes("<anonymous>")&&(Yr=Yr.replace("<anonymous>",Z.displayName)),typeof Z=="function"&&tt.set(Z,Yr),Yr}while(An>=1&&jn>=0);break}}}finally{et=!1,ve.current=$t,le(),Error.prepareStackTrace=Bt}var Qi=Z?Z.displayName||Z.name:"",Dn=Qi?Ve(Qi):"";return typeof Z=="function"&&tt.set(Z,Dn),Dn}function It(Z,ke,Ue){return Ae(Z,!1)}function pt(Z){var ke=Z.prototype;return!!(ke&&ke.isReactComponent)}function Kt(Z,ke,Ue){if(Z==null)return"";if(typeof Z=="function")return Ae(Z,pt(Z));if(typeof Z=="string")return Ve(Z);switch(Z){case x:return Ve("Suspense");case
|
|
59
|
+
`+vt[An].replace(" at new "," at ");return Z.displayName&&Yr.includes("<anonymous>")&&(Yr=Yr.replace("<anonymous>",Z.displayName)),typeof Z=="function"&&tt.set(Z,Yr),Yr}while(An>=1&&jn>=0);break}}}finally{et=!1,ve.current=$t,le(),Error.prepareStackTrace=Bt}var Qi=Z?Z.displayName||Z.name:"",Dn=Qi?Ve(Qi):"";return typeof Z=="function"&&tt.set(Z,Dn),Dn}function It(Z,ke,Ue){return Ae(Z,!1)}function pt(Z){var ke=Z.prototype;return!!(ke&&ke.isReactComponent)}function Kt(Z,ke,Ue){if(Z==null)return"";if(typeof Z=="function")return Ae(Z,pt(Z));if(typeof Z=="string")return Ve(Z);switch(Z){case x:return Ve("Suspense");case R:return Ve("SuspenseList")}if(typeof Z=="object")switch(Z.$$typeof){case C:return It(Z.render);case T:return Kt(Z.type,ke,Ue);case A:{var We=Z,Bt=We._payload,$t=We._init;try{return Kt($t(Bt),ke,Ue)}catch{}}}return""}var on=Object.prototype.hasOwnProperty,sn={},_n=F.ReactDebugCurrentFrame;function Vt(Z){if(Z){var ke=Z._owner,Ue=Kt(Z.type,Z._source,ke?ke.type:null);_n.setExtraStackFrame(Ue)}else _n.setExtraStackFrame(null)}function Cn(Z,ke,Ue,We,Bt){{var $t=Function.call.bind(on);for(var kt in Z)if($t(Z,kt)){var vt=void 0;try{if(typeof Z[kt]!="function"){var pr=Error((We||"React class")+": "+Ue+" type `"+kt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof Z[kt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw pr.name="Invariant Violation",pr}vt=Z[kt](ke,kt,We,Ue,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(An){vt=An}vt&&!(vt instanceof Error)&&(Vt(Bt),V("%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).",We||"React class",Ue,kt,typeof vt),Vt(null)),vt instanceof Error&&!(vt.message in sn)&&(sn[vt.message]=!0,Vt(Bt),V("Failed %s type: %s",Ue,vt.message),Vt(null))}}}var Qn=Array.isArray;function Rr(Z){return Qn(Z)}function $n(Z){{var ke=typeof Symbol=="function"&&Symbol.toStringTag,Ue=ke&&Z[Symbol.toStringTag]||Z.constructor.name||"Object";return Ue}}function Tr(Z){try{return xt(Z),!1}catch{return!0}}function xt(Z){return""+Z}function Pn(Z){if(Tr(Z))return V("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",$n(Z)),xt(Z)}var ln=F.ReactCurrentOwner,Ba={key:!0,ref:!0,__self:!0,__source:!0},za,Ha,Ge;Ge={};function dt(Z){if(on.call(Z,"ref")){var ke=Object.getOwnPropertyDescriptor(Z,"ref").get;if(ke&&ke.isReactWarning)return!1}return Z.ref!==void 0}function Mt(Z){if(on.call(Z,"key")){var ke=Object.getOwnPropertyDescriptor(Z,"key").get;if(ke&&ke.isReactWarning)return!1}return Z.key!==void 0}function un(Z,ke){if(typeof Z.ref=="string"&&ln.current&&ke&&ln.current.stateNode!==ke){var Ue=Te(ln.current.type);Ge[Ue]||(V('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',Te(ln.current.type),Z.ref),Ge[Ue]=!0)}}function en(Z,ke){{var Ue=function(){za||(za=!0,V("%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)",ke))};Ue.isReactWarning=!0,Object.defineProperty(Z,"key",{get:Ue,configurable:!0})}}function ir(Z,ke){{var Ue=function(){Ha||(Ha=!0,V("%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)",ke))};Ue.isReactWarning=!0,Object.defineProperty(Z,"ref",{get:Ue,configurable:!0})}}var Gn=function(Z,ke,Ue,We,Bt,$t,kt){var vt={$$typeof:i,type:Z,key:ke,ref:Ue,props:kt,_owner:$t};return vt._store={},Object.defineProperty(vt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(vt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:We}),Object.defineProperty(vt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Bt}),Object.freeze&&(Object.freeze(vt.props),Object.freeze(vt)),vt};function Xr(Z,ke,Ue,We,Bt){{var $t,kt={},vt=null,pr=null;Ue!==void 0&&(Pn(Ue),vt=""+Ue),Mt(ke)&&(Pn(ke.key),vt=""+ke.key),dt(ke)&&(pr=ke.ref,un(ke,Bt));for($t in ke)on.call(ke,$t)&&!Ba.hasOwnProperty($t)&&(kt[$t]=ke[$t]);if(Z&&Z.defaultProps){var An=Z.defaultProps;for($t in An)kt[$t]===void 0&&(kt[$t]=An[$t])}if(vt||pr){var jn=typeof Z=="function"?Z.displayName||Z.name||"Unknown":Z;vt&&en(kt,jn),pr&&ir(kt,jn)}return Gn(Z,vt,pr,Bt,We,ln.current,kt)}}var pn=F.ReactCurrentOwner,Ir=F.ReactDebugCurrentFrame;function cn(Z){if(Z){var ke=Z._owner,Ue=Kt(Z.type,Z._source,ke?ke.type:null);Ir.setExtraStackFrame(Ue)}else Ir.setExtraStackFrame(null)}var On;On=!1;function ki(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===i}function ai(){{if(pn.current){var Z=Te(pn.current.type);if(Z)return`
|
|
60
60
|
|
|
61
61
|
Check the render method of \``+Z+"`."}return""}}function vs(Z){{if(Z!==void 0){var ke=Z.fileName.replace(/^.*[\\\/]/,""),Ue=Z.lineNumber;return`
|
|
62
62
|
|
|
@@ -70,7 +70,7 @@ Check the top-level render call using <`+Ue+">.")}return ke}}function hs(Z,ke){{
|
|
|
70
70
|
*
|
|
71
71
|
* This source code is licensed under the MIT license found in the
|
|
72
72
|
* LICENSE file in the root directory of this source tree.
|
|
73
|
-
*/var MN;function KB(){return MN||(MN=1,function(n){function r(ne,_e){var G=ne.length;ne.push(_e);e:for(;0<G;){var Y=G-1>>>1,re=ne[Y];if(0<l(re,_e))ne[Y]=_e,ne[G]=re,G=Y;else break e}}function i(ne){return ne.length===0?null:ne[0]}function u(ne){if(ne.length===0)return null;var _e=ne[0],G=ne.pop();if(G!==_e){ne[0]=G;e:for(var Y=0,re=ne.length,ye=re>>>1;Y<ye;){var Se=2*(Y+1)-1,Ne=ne[Se],le=Se+1,ve=ne[le];if(0>l(Ne,G))le<re&&0>l(ve,Ne)?(ne[Y]=ve,ne[le]=G,Y=le):(ne[Y]=Ne,ne[Se]=G,Y=Se);else if(le<re&&0>l(ve,G))ne[Y]=ve,ne[le]=G,Y=le;else break e}}return _e}function l(ne,_e){var G=ne.sortIndex-_e.sortIndex;return G!==0?G:ne.id-_e.id}if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var h=Date,v=h.now();n.unstable_now=function(){return h.now()-v}}var y=[],C=[],x=1,
|
|
73
|
+
*/var MN;function KB(){return MN||(MN=1,function(n){function r(ne,_e){var G=ne.length;ne.push(_e);e:for(;0<G;){var Y=G-1>>>1,re=ne[Y];if(0<l(re,_e))ne[Y]=_e,ne[G]=re,G=Y;else break e}}function i(ne){return ne.length===0?null:ne[0]}function u(ne){if(ne.length===0)return null;var _e=ne[0],G=ne.pop();if(G!==_e){ne[0]=G;e:for(var Y=0,re=ne.length,ye=re>>>1;Y<ye;){var Se=2*(Y+1)-1,Ne=ne[Se],le=Se+1,ve=ne[le];if(0>l(Ne,G))le<re&&0>l(ve,Ne)?(ne[Y]=ve,ne[le]=G,Y=le):(ne[Y]=Ne,ne[Se]=G,Y=Se);else if(le<re&&0>l(ve,G))ne[Y]=ve,ne[le]=G,Y=le;else break e}}return _e}function l(ne,_e){var G=ne.sortIndex-_e.sortIndex;return G!==0?G:ne.id-_e.id}if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var h=Date,v=h.now();n.unstable_now=function(){return h.now()-v}}var y=[],C=[],x=1,R=null,T=3,A=!1,N=!1,O=!1,_=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function V(ne){for(var _e=i(C);_e!==null;){if(_e.callback===null)u(C);else if(_e.startTime<=ne)u(C),_e.sortIndex=_e.expirationTime,r(y,_e);else break;_e=i(C)}}function H(ne){if(O=!1,V(ne),!N)if(i(y)!==null)N=!0,je(z);else{var _e=i(C);_e!==null&&Le(H,_e.startTime-ne)}}function z(ne,_e){N=!1,O&&(O=!1,L(q),q=-1),A=!0;var G=T;try{for(V(_e),R=i(y);R!==null&&(!(R.expirationTime>_e)||ne&&!ge());){var Y=R.callback;if(typeof Y=="function"){R.callback=null,T=R.priorityLevel;var re=Y(R.expirationTime<=_e);_e=n.unstable_now(),typeof re=="function"?R.callback=re:R===i(y)&&u(y),V(_e)}else u(y);R=i(y)}if(R!==null)var ye=!0;else{var Se=i(C);Se!==null&&Le(H,Se.startTime-_e),ye=!1}return ye}finally{R=null,T=G,A=!1}}var U=!1,J=null,q=-1,Re=5,he=-1;function ge(){return!(n.unstable_now()-he<Re)}function fe(){if(J!==null){var ne=n.unstable_now();he=ne;var _e=!0;try{_e=J(!0,ne)}finally{_e?Oe():(U=!1,J=null)}}else U=!1}var Oe;if(typeof F=="function")Oe=function(){F(fe)};else if(typeof MessageChannel<"u"){var Te=new MessageChannel,xe=Te.port2;Te.port1.onmessage=fe,Oe=function(){xe.postMessage(null)}}else Oe=function(){_(fe,0)};function je(ne){J=ne,U||(U=!0,Oe())}function Le(ne,_e){q=_(function(){ne(n.unstable_now())},_e)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(ne){ne.callback=null},n.unstable_continueExecution=function(){N||A||(N=!0,je(z))},n.unstable_forceFrameRate=function(ne){0>ne||125<ne?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Re=0<ne?Math.floor(1e3/ne):5},n.unstable_getCurrentPriorityLevel=function(){return T},n.unstable_getFirstCallbackNode=function(){return i(y)},n.unstable_next=function(ne){switch(T){case 1:case 2:case 3:var _e=3;break;default:_e=T}var G=T;T=_e;try{return ne()}finally{T=G}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(ne,_e){switch(ne){case 1:case 2:case 3:case 4:case 5:break;default:ne=3}var G=T;T=ne;try{return _e()}finally{T=G}},n.unstable_scheduleCallback=function(ne,_e,G){var Y=n.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?Y+G:Y):G=Y,ne){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=G+re,ne={id:x++,callback:_e,priorityLevel:ne,startTime:G,expirationTime:re,sortIndex:-1},G>Y?(ne.sortIndex=G,r(C,ne),i(y)===null&&ne===i(C)&&(O?(L(q),q=-1):O=!0,Le(H,G-Y))):(ne.sortIndex=re,r(y,ne),N||A||(N=!0,je(z))),ne},n.unstable_shouldYield=ge,n.unstable_wrapCallback=function(ne){var _e=T;return function(){var G=T;T=_e;try{return ne.apply(this,arguments)}finally{T=G}}}}(xE)),xE}var SE={},LN;function ez(){return LN||(LN=1,function(n){var r={};/**
|
|
74
74
|
* @license React
|
|
75
75
|
* scheduler.development.js
|
|
76
76
|
*
|
|
@@ -78,7 +78,7 @@ Check the top-level render call using <`+Ue+">.")}return ke}}function hs(Z,ke){{
|
|
|
78
78
|
*
|
|
79
79
|
* This source code is licensed under the MIT license found in the
|
|
80
80
|
* LICENSE file in the root directory of this source tree.
|
|
81
|
-
*/r.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 i=!1,u=!1,l=5;function d(Ge,dt){var Mt=Ge.length;Ge.push(dt),y(Ge,dt,Mt)}function h(Ge){return Ge.length===0?null:Ge[0]}function v(Ge){if(Ge.length===0)return null;var dt=Ge[0],Mt=Ge.pop();return Mt!==dt&&(Ge[0]=Mt,C(Ge,Mt,0)),dt}function y(Ge,dt,Mt){for(var un=Mt;un>0;){var en=un-1>>>1,ir=Ge[en];if(x(ir,dt)>0)Ge[en]=dt,Ge[un]=ir,un=en;else return}}function C(Ge,dt,Mt){for(var un=Mt,en=Ge.length,ir=en>>>1;un<ir;){var Gn=(un+1)*2-1,Xr=Ge[Gn],pn=Gn+1,Ir=Ge[pn];if(x(Xr,dt)<0)pn<en&&x(Ir,Xr)<0?(Ge[un]=Ir,Ge[pn]=dt,un=pn):(Ge[un]=Xr,Ge[Gn]=dt,un=Gn);else if(pn<en&&x(Ir,dt)<0)Ge[un]=Ir,Ge[pn]=dt,un=pn;else return}}function x(Ge,dt){var Mt=Ge.sortIndex-dt.sortIndex;return Mt!==0?Mt:Ge.id-dt.id}var
|
|
81
|
+
*/r.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 i=!1,u=!1,l=5;function d(Ge,dt){var Mt=Ge.length;Ge.push(dt),y(Ge,dt,Mt)}function h(Ge){return Ge.length===0?null:Ge[0]}function v(Ge){if(Ge.length===0)return null;var dt=Ge[0],Mt=Ge.pop();return Mt!==dt&&(Ge[0]=Mt,C(Ge,Mt,0)),dt}function y(Ge,dt,Mt){for(var un=Mt;un>0;){var en=un-1>>>1,ir=Ge[en];if(x(ir,dt)>0)Ge[en]=dt,Ge[un]=ir,un=en;else return}}function C(Ge,dt,Mt){for(var un=Mt,en=Ge.length,ir=en>>>1;un<ir;){var Gn=(un+1)*2-1,Xr=Ge[Gn],pn=Gn+1,Ir=Ge[pn];if(x(Xr,dt)<0)pn<en&&x(Ir,Xr)<0?(Ge[un]=Ir,Ge[pn]=dt,un=pn):(Ge[un]=Xr,Ge[Gn]=dt,un=Gn);else if(pn<en&&x(Ir,dt)<0)Ge[un]=Ir,Ge[pn]=dt,un=pn;else return}}function x(Ge,dt){var Mt=Ge.sortIndex-dt.sortIndex;return Mt!==0?Mt:Ge.id-dt.id}var R=1,T=2,A=3,N=4,O=5;function _(Ge,dt){}var L=typeof performance=="object"&&typeof performance.now=="function";if(L){var F=performance;n.unstable_now=function(){return F.now()}}else{var V=Date,H=V.now();n.unstable_now=function(){return V.now()-H}}var z=1073741823,U=-1,J=250,q=5e3,Re=1e4,he=z,ge=[],fe=[],Oe=1,Te=null,xe=A,je=!1,Le=!1,ne=!1,_e=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function re(Ge){for(var dt=h(fe);dt!==null;){if(dt.callback===null)v(fe);else if(dt.startTime<=Ge)v(fe),dt.sortIndex=dt.expirationTime,d(ge,dt);else return;dt=h(fe)}}function ye(Ge){if(ne=!1,re(Ge),!Le)if(h(ge)!==null)Le=!0,Pn(Se);else{var dt=h(fe);dt!==null&&ln(ye,dt.startTime-Ge)}}function Se(Ge,dt){Le=!1,ne&&(ne=!1,Ba()),je=!0;var Mt=xe;try{var un;if(!u)return Ne(Ge,dt)}finally{Te=null,xe=Mt,je=!1}}function Ne(Ge,dt){var Mt=dt;for(re(Mt),Te=h(ge);Te!==null&&!i&&!(Te.expirationTime>Mt&&(!Ge||Vt()));){var un=Te.callback;if(typeof un=="function"){Te.callback=null,xe=Te.priorityLevel;var en=Te.expirationTime<=Mt,ir=un(en);Mt=n.unstable_now(),typeof ir=="function"?Te.callback=ir:Te===h(ge)&&v(ge),re(Mt)}else v(ge);Te=h(ge)}if(Te!==null)return!0;var Gn=h(fe);return Gn!==null&&ln(ye,Gn.startTime-Mt),!1}function le(Ge,dt){switch(Ge){case R:case T:case A:case N:case O:break;default:Ge=A}var Mt=xe;xe=Ge;try{return dt()}finally{xe=Mt}}function ve(Ge){var dt;switch(xe){case R:case T:case A:dt=A;break;default:dt=xe;break}var Mt=xe;xe=dt;try{return Ge()}finally{xe=Mt}}function we(Ge){var dt=xe;return function(){var Mt=xe;xe=dt;try{return Ge.apply(this,arguments)}finally{xe=Mt}}}function Ve(Ge,dt,Mt){var un=n.unstable_now(),en;if(typeof Mt=="object"&&Mt!==null){var ir=Mt.delay;typeof ir=="number"&&ir>0?en=un+ir:en=un}else en=un;var Gn;switch(Ge){case R:Gn=U;break;case T:Gn=J;break;case O:Gn=he;break;case N:Gn=Re;break;case A:default:Gn=q;break}var Xr=en+Gn,pn={id:Oe++,callback:dt,priorityLevel:Ge,startTime:en,expirationTime:Xr,sortIndex:-1};return en>un?(pn.sortIndex=en,d(fe,pn),h(ge)===null&&pn===h(fe)&&(ne?Ba():ne=!0,ln(ye,en-un))):(pn.sortIndex=Xr,d(ge,pn),!Le&&!je&&(Le=!0,Pn(Se))),pn}function et(){}function tt(){!Le&&!je&&(Le=!0,Pn(Se))}function ft(){return h(ge)}function Ae(Ge){Ge.callback=null}function It(){return xe}var pt=!1,Kt=null,on=-1,sn=l,_n=-1;function Vt(){var Ge=n.unstable_now()-_n;return!(Ge<sn)}function Cn(){}function Qn(Ge){if(Ge<0||Ge>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}Ge>0?sn=Math.floor(1e3/Ge):sn=l}var Rr=function(){if(Kt!==null){var Ge=n.unstable_now();_n=Ge;var dt=!0,Mt=!0;try{Mt=Kt(dt,Ge)}finally{Mt?$n():(pt=!1,Kt=null)}}else pt=!1},$n;if(typeof Y=="function")$n=function(){Y(Rr)};else if(typeof MessageChannel<"u"){var Tr=new MessageChannel,xt=Tr.port2;Tr.port1.onmessage=Rr,$n=function(){xt.postMessage(null)}}else $n=function(){_e(Rr,0)};function Pn(Ge){Kt=Ge,pt||(pt=!0,$n())}function ln(Ge,dt){on=_e(function(){Ge(n.unstable_now())},dt)}function Ba(){G(on),on=-1}var za=Cn,Ha=null;n.unstable_IdlePriority=O,n.unstable_ImmediatePriority=R,n.unstable_LowPriority=N,n.unstable_NormalPriority=A,n.unstable_Profiling=Ha,n.unstable_UserBlockingPriority=T,n.unstable_cancelCallback=Ae,n.unstable_continueExecution=tt,n.unstable_forceFrameRate=Qn,n.unstable_getCurrentPriorityLevel=It,n.unstable_getFirstCallbackNode=ft,n.unstable_next=ve,n.unstable_pauseExecution=et,n.unstable_requestPaint=za,n.unstable_runWithPriority=le,n.unstable_scheduleCallback=Ve,n.unstable_shouldYield=Vt,n.unstable_wrapCallback=we,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(SE)),SE}var PN;function YO(){if(PN)return Tb.exports;PN=1;var n={};return n.NODE_ENV==="production"?Tb.exports=KB():Tb.exports=ez(),Tb.exports}/**
|
|
82
82
|
* @license React
|
|
83
83
|
* react-dom.production.min.js
|
|
84
84
|
*
|
|
@@ -86,14 +86,14 @@ Check the top-level render call using <`+Ue+">.")}return ke}}function hs(Z,ke){{
|
|
|
86
86
|
*
|
|
87
87
|
* This source code is licensed under the MIT license found in the
|
|
88
88
|
* LICENSE file in the root directory of this source tree.
|
|
89
|
-
*/var FN;function tz(){if(FN)return Ii;FN=1;var n=Qf(),r=YO();function i(a){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+a,f=1;f<arguments.length;f++)o+="&args[]="+encodeURIComponent(arguments[f]);return"Minified React error #"+a+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var u=new Set,l={};function d(a,o){h(a,o),h(a+"Capture",o)}function h(a,o){for(l[a]=o,a=0;a<o.length;a++)u.add(o[a])}var v=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),y=Object.prototype.hasOwnProperty,C=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,x={},
|
|
89
|
+
*/var FN;function tz(){if(FN)return Ii;FN=1;var n=Qf(),r=YO();function i(a){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+a,f=1;f<arguments.length;f++)o+="&args[]="+encodeURIComponent(arguments[f]);return"Minified React error #"+a+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var u=new Set,l={};function d(a,o){h(a,o),h(a+"Capture",o)}function h(a,o){for(l[a]=o,a=0;a<o.length;a++)u.add(o[a])}var v=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),y=Object.prototype.hasOwnProperty,C=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,x={},R={};function T(a){return y.call(R,a)?!0:y.call(x,a)?!1:C.test(a)?R[a]=!0:(x[a]=!0,!1)}function A(a,o,f,m){if(f!==null&&f.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return m?!1:f!==null?!f.acceptsBooleans:(a=a.toLowerCase().slice(0,5),a!=="data-"&&a!=="aria-");default:return!1}}function N(a,o,f,m){if(o===null||typeof o>"u"||A(a,o,f,m))return!0;if(m)return!1;if(f!==null)switch(f.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function O(a,o,f,m,S,w,k){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=m,this.attributeNamespace=S,this.mustUseProperty=f,this.propertyName=a,this.type=o,this.sanitizeURL=w,this.removeEmptyString=k}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){_[a]=new O(a,0,!1,a,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var o=a[0];_[o]=new O(o,1,!1,a[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(a){_[a]=new O(a,2,!1,a.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){_[a]=new O(a,2,!1,a,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){_[a]=new O(a,3,!1,a.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(a){_[a]=new O(a,3,!0,a,null,!1,!1)}),["capture","download"].forEach(function(a){_[a]=new O(a,4,!1,a,null,!1,!1)}),["cols","rows","size","span"].forEach(function(a){_[a]=new O(a,6,!1,a,null,!1,!1)}),["rowSpan","start"].forEach(function(a){_[a]=new O(a,5,!1,a.toLowerCase(),null,!1,!1)});var L=/[\-:]([a-z])/g;function F(a){return a[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var o=a.replace(L,F);_[o]=new O(o,1,!1,a,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var o=a.replace(L,F);_[o]=new O(o,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(a){var o=a.replace(L,F);_[o]=new O(o,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(a){_[a]=new O(a,1,!1,a.toLowerCase(),null,!1,!1)}),_.xlinkHref=new O("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(a){_[a]=new O(a,1,!1,a.toLowerCase(),null,!0,!0)});function V(a,o,f,m){var S=_.hasOwnProperty(o)?_[o]:null;(S!==null?S.type!==0:m||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(N(o,f,S,m)&&(f=null),m||S===null?T(o)&&(f===null?a.removeAttribute(o):a.setAttribute(o,""+f)):S.mustUseProperty?a[S.propertyName]=f===null?S.type===3?!1:"":f:(o=S.attributeName,m=S.attributeNamespace,f===null?a.removeAttribute(o):(S=S.type,f=S===3||S===4&&f===!0?"":""+f,m?a.setAttributeNS(m,o,f):a.setAttribute(o,f))))}var H=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,z=Symbol.for("react.element"),U=Symbol.for("react.portal"),J=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),Re=Symbol.for("react.profiler"),he=Symbol.for("react.provider"),ge=Symbol.for("react.context"),fe=Symbol.for("react.forward_ref"),Oe=Symbol.for("react.suspense"),Te=Symbol.for("react.suspense_list"),xe=Symbol.for("react.memo"),je=Symbol.for("react.lazy"),Le=Symbol.for("react.offscreen"),ne=Symbol.iterator;function _e(a){return a===null||typeof a!="object"?null:(a=ne&&a[ne]||a["@@iterator"],typeof a=="function"?a:null)}var G=Object.assign,Y;function re(a){if(Y===void 0)try{throw Error()}catch(f){var o=f.stack.trim().match(/\n( *(at )?)/);Y=o&&o[1]||""}return`
|
|
90
90
|
`+Y+a}var ye=!1;function Se(a,o){if(!a||ye)return"";ye=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(pe){var m=pe}Reflect.construct(a,[],o)}else{try{o.call()}catch(pe){m=pe}a.call(o.prototype)}else{try{throw Error()}catch(pe){m=pe}a()}}catch(pe){if(pe&&m&&typeof pe.stack=="string"){for(var S=pe.stack.split(`
|
|
91
|
-
`),
|
|
92
|
-
`),k=S.length-1,W=
|
|
93
|
-
`+S[k].replace(" at new "," at ");return a.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",a.displayName)),Q}while(1<=k&&0<=W);break}}}finally{ye=!1,Error.prepareStackTrace=f}return(a=a?a.displayName||a.name:"")?re(a):""}function Ne(a){switch(a.tag){case 5:return re(a.type);case 16:return re("Lazy");case 13:return re("Suspense");case 19:return re("SuspenseList");case 0:case 2:case 15:return a=Se(a.type,!1),a;case 11:return a=Se(a.type.render,!1),a;case 1:return a=Se(a.type,!0),a;default:return""}}function le(a){if(a==null)return null;if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case J:return"Fragment";case U:return"Portal";case Re:return"Profiler";case q:return"StrictMode";case Oe:return"Suspense";case Te:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case ge:return(a.displayName||"Context")+".Consumer";case he:return(a._context.displayName||"Context")+".Provider";case fe:var o=a.render;return a=a.displayName,a||(a=o.displayName||o.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case xe:return o=a.displayName||null,o!==null?o:le(a.type)||"Memo";case je:o=a._payload,a=a._init;try{return le(a(o))}catch{}}return null}function ve(a){var o=a.type;switch(a.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=o.render,a=a.displayName||a.name||"",o.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return le(o);case 8:return o===q?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function we(a){switch(typeof a){case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Ve(a){var o=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function et(a){var o=Ve(a)?"checked":"value",f=Object.getOwnPropertyDescriptor(a.constructor.prototype,o),m=""+a[o];if(!a.hasOwnProperty(o)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var S=f.get,R=f.set;return Object.defineProperty(a,o,{configurable:!0,get:function(){return S.call(this)},set:function(k){m=""+k,R.call(this,k)}}),Object.defineProperty(a,o,{enumerable:f.enumerable}),{getValue:function(){return m},setValue:function(k){m=""+k},stopTracking:function(){a._valueTracker=null,delete a[o]}}}}function tt(a){a._valueTracker||(a._valueTracker=et(a))}function ft(a){if(!a)return!1;var o=a._valueTracker;if(!o)return!0;var f=o.getValue(),m="";return a&&(m=Ve(a)?a.checked?"true":"false":a.value),a=m,a!==f?(o.setValue(a),!0):!1}function Ae(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}function It(a,o){var f=o.checked;return G({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:f??a._wrapperState.initialChecked})}function pt(a,o){var f=o.defaultValue==null?"":o.defaultValue,m=o.checked!=null?o.checked:o.defaultChecked;f=we(o.value!=null?o.value:f),a._wrapperState={initialChecked:m,initialValue:f,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function Kt(a,o){o=o.checked,o!=null&&V(a,"checked",o,!1)}function on(a,o){Kt(a,o);var f=we(o.value),m=o.type;if(f!=null)m==="number"?(f===0&&a.value===""||a.value!=f)&&(a.value=""+f):a.value!==""+f&&(a.value=""+f);else if(m==="submit"||m==="reset"){a.removeAttribute("value");return}o.hasOwnProperty("value")?_n(a,o.type,f):o.hasOwnProperty("defaultValue")&&_n(a,o.type,we(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(a.defaultChecked=!!o.defaultChecked)}function sn(a,o,f){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var m=o.type;if(!(m!=="submit"&&m!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+a._wrapperState.initialValue,f||o===a.value||(a.value=o),a.defaultValue=o}f=a.name,f!==""&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,f!==""&&(a.name=f)}function _n(a,o,f){(o!=="number"||Ae(a.ownerDocument)!==a)&&(f==null?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+f&&(a.defaultValue=""+f))}var Vt=Array.isArray;function Cn(a,o,f,m){if(a=a.options,o){o={};for(var S=0;S<f.length;S++)o["$"+f[S]]=!0;for(f=0;f<a.length;f++)S=o.hasOwnProperty("$"+a[f].value),a[f].selected!==S&&(a[f].selected=S),S&&m&&(a[f].defaultSelected=!0)}else{for(f=""+we(f),o=null,S=0;S<a.length;S++){if(a[S].value===f){a[S].selected=!0,m&&(a[S].defaultSelected=!0);return}o!==null||a[S].disabled||(o=a[S])}o!==null&&(o.selected=!0)}}function Qn(a,o){if(o.dangerouslySetInnerHTML!=null)throw Error(i(91));return G({},o,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})}function Rr(a,o){var f=o.value;if(f==null){if(f=o.children,o=o.defaultValue,f!=null){if(o!=null)throw Error(i(92));if(Vt(f)){if(1<f.length)throw Error(i(93));f=f[0]}o=f}o==null&&(o=""),f=o}a._wrapperState={initialValue:we(f)}}function $n(a,o){var f=we(o.value),m=we(o.defaultValue);f!=null&&(f=""+f,f!==a.value&&(a.value=f),o.defaultValue==null&&a.defaultValue!==f&&(a.defaultValue=f)),m!=null&&(a.defaultValue=""+m)}function Tr(a){var o=a.textContent;o===a._wrapperState.initialValue&&o!==""&&o!==null&&(a.value=o)}function xt(a){switch(a){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Pn(a,o){return a==null||a==="http://www.w3.org/1999/xhtml"?xt(o):a==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":a}var ln,Ba=function(a){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,f,m,S){MSApp.execUnsafeLocalFunction(function(){return a(o,f,m,S)})}:a}(function(a,o){if(a.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in a)a.innerHTML=o;else{for(ln=ln||document.createElement("div"),ln.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=ln.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;o.firstChild;)a.appendChild(o.firstChild)}});function za(a,o){if(o){var f=a.firstChild;if(f&&f===a.lastChild&&f.nodeType===3){f.nodeValue=o;return}}a.textContent=o}var Ha={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ge=["Webkit","ms","Moz","O"];Object.keys(Ha).forEach(function(a){Ge.forEach(function(o){o=o+a.charAt(0).toUpperCase()+a.substring(1),Ha[o]=Ha[a]})});function dt(a,o,f){return o==null||typeof o=="boolean"||o===""?"":f||typeof o!="number"||o===0||Ha.hasOwnProperty(a)&&Ha[a]?(""+o).trim():o+"px"}function Mt(a,o){a=a.style;for(var f in o)if(o.hasOwnProperty(f)){var m=f.indexOf("--")===0,S=dt(f,o[f],m);f==="float"&&(f="cssFloat"),m?a.setProperty(f,S):a[f]=S}}var un=G({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function en(a,o){if(o){if(un[a]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(i(137,a));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(i(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(i(61))}if(o.style!=null&&typeof o.style!="object")throw Error(i(62))}}function ir(a,o){if(a.indexOf("-")===-1)return typeof o.is=="string";switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Gn=null;function Xr(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var pn=null,Ir=null,cn=null;function On(a){if(a=ao(a)){if(typeof pn!="function")throw Error(i(280));var o=a.stateNode;o&&(o=cd(o),pn(a.stateNode,a.type,o))}}function ki(a){Ir?cn?cn.push(a):cn=[a]:Ir=a}function ai(){if(Ir){var a=Ir,o=cn;if(cn=Ir=null,On(a),o)for(a=0;a<o.length;a++)On(o[a])}}function vs(a,o){return a(o)}function al(){}var il=!1;function hs(a,o,f){if(il)return a(o,f);il=!0;try{return vs(a,o,f)}finally{il=!1,(Ir!==null||cn!==null)&&(al(),ai())}}function Mi(a,o){var f=a.stateNode;if(f===null)return null;var m=cd(f);if(m===null)return null;f=m[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(a=a.type,m=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!m;break e;default:a=!1}if(a)return null;if(f&&typeof f!="function")throw Error(i(231,o,typeof f));return f}var Li=!1;if(v)try{var ii={};Object.defineProperty(ii,"passive",{get:function(){Li=!0}}),window.addEventListener("test",ii,ii),window.removeEventListener("test",ii,ii)}catch{Li=!1}function No(a,o,f,m,S,R,k,W,Q){var pe=Array.prototype.slice.call(arguments,3);try{o.apply(f,pe)}catch(Me){this.onError(Me)}}var ga=!1,ya=null,Ua=!1,_o=null,Z={onError:function(a){ga=!0,ya=a}};function ke(a,o,f,m,S,R,k,W,Q){ga=!1,ya=null,No.apply(Z,arguments)}function Ue(a,o,f,m,S,R,k,W,Q){if(ke.apply(this,arguments),ga){if(ga){var pe=ya;ga=!1,ya=null}else throw Error(i(198));Ua||(Ua=!0,_o=pe)}}function We(a){var o=a,f=a;if(a.alternate)for(;o.return;)o=o.return;else{a=o;do o=a,o.flags&4098&&(f=o.return),a=o.return;while(a)}return o.tag===3?f:null}function Bt(a){if(a.tag===13){var o=a.memoizedState;if(o===null&&(a=a.alternate,a!==null&&(o=a.memoizedState)),o!==null)return o.dehydrated}return null}function $t(a){if(We(a)!==a)throw Error(i(188))}function kt(a){var o=a.alternate;if(!o){if(o=We(a),o===null)throw Error(i(188));return o!==a?null:a}for(var f=a,m=o;;){var S=f.return;if(S===null)break;var R=S.alternate;if(R===null){if(m=S.return,m!==null){f=m;continue}break}if(S.child===R.child){for(R=S.child;R;){if(R===f)return $t(S),a;if(R===m)return $t(S),o;R=R.sibling}throw Error(i(188))}if(f.return!==m.return)f=S,m=R;else{for(var k=!1,W=S.child;W;){if(W===f){k=!0,f=S,m=R;break}if(W===m){k=!0,m=S,f=R;break}W=W.sibling}if(!k){for(W=R.child;W;){if(W===f){k=!0,f=R,m=S;break}if(W===m){k=!0,m=R,f=S;break}W=W.sibling}if(!k)throw Error(i(189))}}if(f.alternate!==m)throw Error(i(190))}if(f.tag!==3)throw Error(i(188));return f.stateNode.current===f?a:o}function vt(a){return a=kt(a),a!==null?pr(a):null}function pr(a){if(a.tag===5||a.tag===6)return a;for(a=a.child;a!==null;){var o=pr(a);if(o!==null)return o;a=a.sibling}return null}var An=r.unstable_scheduleCallback,jn=r.unstable_cancelCallback,Yr=r.unstable_shouldYield,Qi=r.unstable_requestPaint,Dn=r.unstable_now,ba=r.unstable_getCurrentPriorityLevel,Cc=r.unstable_ImmediatePriority,Ki=r.unstable_UserBlockingPriority,Lt=r.unstable_NormalPriority,ol=r.unstable_LowPriority,Oo=r.unstable_IdlePriority,ms=null,Ca=null;function xc(a){if(Ca&&typeof Ca.onCommitFiberRoot=="function")try{Ca.onCommitFiberRoot(ms,a,void 0,(a.current.flags&128)===128)}catch{}}var ra=Math.clz32?Math.clz32:wc,Sc=Math.log,Ec=Math.LN2;function wc(a){return a>>>=0,a===0?32:31-(Sc(a)/Ec|0)|0}var sl=64,ou=4194304;function Ao(a){switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a}}function eo(a,o){var f=a.pendingLanes;if(f===0)return 0;var m=0,S=a.suspendedLanes,R=a.pingedLanes,k=f&268435455;if(k!==0){var W=k&~S;W!==0?m=Ao(W):(R&=k,R!==0&&(m=Ao(R)))}else k=f&~S,k!==0?m=Ao(k):R!==0&&(m=Ao(R));if(m===0)return 0;if(o!==0&&o!==m&&!(o&S)&&(S=m&-m,R=o&-o,S>=R||S===16&&(R&4194240)!==0))return o;if(m&4&&(m|=f&16),o=a.entangledLanes,o!==0)for(a=a.entanglements,o&=m;0<o;)f=31-ra(o),S=1<<f,m|=a[f],o&=~S;return m}function oi(a,o){switch(a){case 1:case 2:case 4:return o+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function gs(a,o){for(var f=a.suspendedLanes,m=a.pingedLanes,S=a.expirationTimes,R=a.pendingLanes;0<R;){var k=31-ra(R),W=1<<k,Q=S[k];Q===-1?(!(W&f)||W&m)&&(S[k]=oi(W,o)):Q<=o&&(a.expiredLanes|=W),R&=~W}}function to(a){return a=a.pendingLanes&-1073741825,a!==0?a:a&1073741824?1073741824:0}function ll(){var a=sl;return sl<<=1,!(sl&4194240)&&(sl=64),a}function ul(a){for(var o=[],f=0;31>f;f++)o.push(a);return o}function ys(a,o,f){a.pendingLanes|=o,o!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,o=31-ra(o),a[o]=f}function Rc(a,o){var f=a.pendingLanes&~o;a.pendingLanes=o,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=o,a.mutableReadLanes&=o,a.entangledLanes&=o,o=a.entanglements;var m=a.eventTimes;for(a=a.expirationTimes;0<f;){var S=31-ra(f),R=1<<S;o[S]=0,m[S]=-1,a[S]=-1,f&=~R}}function Tc(a,o){var f=a.entangledLanes|=o;for(a=a.entanglements;f;){var m=31-ra(f),S=1<<m;S&o|a[m]&o&&(a[m]|=o),f&=~S}}var Ut=0;function Ic(a){return a&=-a,1<a?4<a?a&268435455?16:536870912:4:1}var su,bs,Nc,Yt,lu,cl=!1,Nt=[],Pi=null,Wn=null,xa=null,si=new Map,Cs=new Map,Fn=[],Xn="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function _c(a,o){switch(a){case"focusin":case"focusout":Pi=null;break;case"dragenter":case"dragleave":Wn=null;break;case"mouseover":case"mouseout":xa=null;break;case"pointerover":case"pointerout":si.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cs.delete(o.pointerId)}}function Mr(a,o,f,m,S,R){return a===null||a.nativeEvent!==R?(a={blockedOn:o,domEventName:f,eventSystemFlags:m,nativeEvent:R,targetContainers:[S]},o!==null&&(o=ao(o),o!==null&&bs(o)),a):(a.eventSystemFlags|=m,o=a.targetContainers,S!==null&&o.indexOf(S)===-1&&o.push(S),a)}function Sa(a,o,f,m,S){switch(o){case"focusin":return Pi=Mr(Pi,a,o,f,m,S),!0;case"dragenter":return Wn=Mr(Wn,a,o,f,m,S),!0;case"mouseover":return xa=Mr(xa,a,o,f,m,S),!0;case"pointerover":var R=S.pointerId;return si.set(R,Mr(si.get(R)||null,a,o,f,m,S)),!0;case"gotpointercapture":return R=S.pointerId,Cs.set(R,Mr(Cs.get(R)||null,a,o,f,m,S)),!0}return!1}function Fi(a){var o=Ho(a.target);if(o!==null){var f=We(o);if(f!==null){if(o=f.tag,o===13){if(o=Bt(f),o!==null){a.blockedOn=o,lu(a.priority,function(){Nc(f)});return}}else if(o===3&&f.stateNode.current.memoizedState.isDehydrated){a.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}a.blockedOn=null}function uu(a){if(a.blockedOn!==null)return!1;for(var o=a.targetContainers;0<o.length;){var f=du(a.domEventName,a.eventSystemFlags,o[0],a.nativeEvent);if(f===null){f=a.nativeEvent;var m=new f.constructor(f.type,f);Gn=m,f.target.dispatchEvent(m),Gn=null}else return o=ao(f),o!==null&&bs(o),a.blockedOn=f,!1;o.shift()}return!0}function fl(a,o,f){uu(a)&&f.delete(o)}function dl(){cl=!1,Pi!==null&&uu(Pi)&&(Pi=null),Wn!==null&&uu(Wn)&&(Wn=null),xa!==null&&uu(xa)&&(xa=null),si.forEach(fl),Cs.forEach(fl)}function xs(a,o){a.blockedOn===o&&(a.blockedOn=null,cl||(cl=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,dl)))}function li(a){function o(S){return xs(S,a)}if(0<Nt.length){xs(Nt[0],a);for(var f=1;f<Nt.length;f++){var m=Nt[f];m.blockedOn===a&&(m.blockedOn=null)}}for(Pi!==null&&xs(Pi,a),Wn!==null&&xs(Wn,a),xa!==null&&xs(xa,a),si.forEach(o),Cs.forEach(o),f=0;f<Fn.length;f++)m=Fn[f],m.blockedOn===a&&(m.blockedOn=null);for(;0<Fn.length&&(f=Fn[0],f.blockedOn===null);)Fi(f),f.blockedOn===null&&Fn.shift()}var jo=H.ReactCurrentBatchConfig,cu=!0;function Do(a,o,f,m){var S=Ut,R=jo.transition;jo.transition=null;try{Ut=1,no(a,o,f,m)}finally{Ut=S,jo.transition=R}}function fu(a,o,f,m){var S=Ut,R=jo.transition;jo.transition=null;try{Ut=4,no(a,o,f,m)}finally{Ut=S,jo.transition=R}}function no(a,o,f,m){if(cu){var S=du(a,o,f,m);if(S===null)mv(a,o,m,ko,f),_c(a,m);else if(Sa(S,a,o,f,m))m.stopPropagation();else if(_c(a,m),o&4&&-1<Xn.indexOf(a)){for(;S!==null;){var R=ao(S);if(R!==null&&su(R),R=du(a,o,f,m),R===null&&mv(a,o,m,ko,f),R===S)break;S=R}S!==null&&m.stopPropagation()}else mv(a,o,m,null,f)}}var ko=null;function du(a,o,f,m){if(ko=null,a=Xr(m),a=Ho(a),a!==null)if(o=We(a),o===null)a=null;else if(f=o.tag,f===13){if(a=Bt(o),a!==null)return a;a=null}else if(f===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;a=null}else o!==a&&(a=null);return ko=a,null}function Oc(a){switch(a){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ba()){case Cc:return 1;case Ki:return 4;case Lt:case ol:return 16;case Oo:return 536870912;default:return 16}default:return 16}}var Vi=null,pu=null,D=null;function X(){if(D)return D;var a,o=pu,f=o.length,m,S="value"in Vi?Vi.value:Vi.textContent,R=S.length;for(a=0;a<f&&o[a]===S[a];a++);var k=f-a;for(m=1;m<=k&&o[f-m]===S[R-m];m++);return D=S.slice(a,1<m?1-m:void 0)}function ue(a){var o=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&o===13&&(a=13)):a=o,a===10&&(a=13),32<=a||a===13?a:0}function me(){return!0}function Be(){return!1}function it(a){function o(f,m,S,R,k){this._reactName=f,this._targetInst=S,this.type=m,this.nativeEvent=R,this.target=k,this.currentTarget=null;for(var W in a)a.hasOwnProperty(W)&&(f=a[W],this[W]=f?f(R):R[W]);return this.isDefaultPrevented=(R.defaultPrevented!=null?R.defaultPrevented:R.returnValue===!1)?me:Be,this.isPropagationStopped=Be,this}return G(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var f=this.nativeEvent;f&&(f.preventDefault?f.preventDefault():typeof f.returnValue!="unknown"&&(f.returnValue=!1),this.isDefaultPrevented=me)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=me)},persist:function(){},isPersistent:me}),o}var Je={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wt=it(Je),Pt=G({},Je,{view:0,detail:0}),fn=it(Pt),vn,hn,mn,Vn=G({},Pt,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ed,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==mn&&(mn&&a.type==="mousemove"?(vn=a.screenX-mn.screenX,hn=a.screenY-mn.screenY):hn=vn=0,mn=a),vn)},movementY:function(a){return"movementY"in a?a.movementY:hn}}),Zt=it(Vn),Ss=G({},Vn,{dataTransfer:0}),vu=it(Ss),Ac=G({},Pt,{relatedTarget:0}),jc=it(Ac),Mo=G({},Je,{animationName:0,elapsedTime:0,pseudoElement:0}),Dc=it(Mo),kc=G({},Je,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),av=it(kc),Z0=G({},Je,{data:0}),Lm=it(Z0),Pm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},iv={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Fm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Vm(a){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(a):(a=Fm[a])?!!o[a]:!1}function ed(){return Vm}var J0=G({},Pt,{key:function(a){if(a.key){var o=Pm[a.key]||a.key;if(o!=="Unidentified")return o}return a.type==="keypress"?(a=ue(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?iv[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ed,charCode:function(a){return a.type==="keypress"?ue(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?ue(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),Lo=it(J0),q0=G({},Vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),td=it(q0),ov=G({},Pt,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ed}),sv=it(ov),Q0=G({},Je,{propertyName:0,elapsedTime:0,pseudoElement:0}),nd=it(Q0),Bm=G({},Vn,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),Ea=it(Bm),Po=[9,13,27,32],Kn=v&&"CompositionEvent"in window,$a=null;v&&"documentMode"in document&&($a=document.documentMode);var lv=v&&"TextEvent"in window&&!$a,Mc=v&&(!Kn||$a&&8<$a&&11>=$a),zm=" ",hu=!1;function Hm(a,o){switch(a){case"keyup":return Po.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Um(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Es=!1;function K0(a,o){switch(a){case"compositionend":return Um(o);case"keypress":return o.which!==32?null:(hu=!0,zm);case"textInput":return a=o.data,a===zm&&hu?null:a;default:return null}}function eC(a,o){if(Es)return a==="compositionend"||!Kn&&Hm(a,o)?(a=X(),D=pu=Vi=null,Es=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Mc&&o.locale!=="ko"?null:o.data;default:return null}}var tC={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function uv(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o==="input"?!!tC[a.type]:o==="textarea"}function $m(a,o,f,m){ki(m),o=ld(o,"onChange"),0<o.length&&(f=new wt("onChange","change",null,f,m),a.push({event:f,listeners:o}))}var Lc=null,Pc=null;function Gm(a){sg(a,0)}function Fo(a){var o=bu(a);if(ft(o))return a}function cv(a,o){if(a==="change")return o}var fv=!1;if(v){var rd;if(v){var dv="oninput"in document;if(!dv){var Wm=document.createElement("div");Wm.setAttribute("oninput","return;"),dv=typeof Wm.oninput=="function"}rd=dv}else rd=!1;fv=rd&&(!document.documentMode||9<document.documentMode)}function Xm(){Lc&&(Lc.detachEvent("onpropertychange",Ym),Pc=Lc=null)}function Ym(a){if(a.propertyName==="value"&&Fo(Pc)){var o=[];$m(o,Pc,a,Xr(a)),hs(Gm,o)}}function nC(a,o,f){a==="focusin"?(Xm(),Lc=o,Pc=f,Lc.attachEvent("onpropertychange",Ym)):a==="focusout"&&Xm()}function rC(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Fo(Pc)}function aC(a,o){if(a==="click")return Fo(o)}function iC(a,o){if(a==="input"||a==="change")return Fo(o)}function Zm(a,o){return a===o&&(a!==0||1/a===1/o)||a!==a&&o!==o}var Bi=typeof Object.is=="function"?Object.is:Zm;function mu(a,o){if(Bi(a,o))return!0;if(typeof a!="object"||a===null||typeof o!="object"||o===null)return!1;var f=Object.keys(a),m=Object.keys(o);if(f.length!==m.length)return!1;for(m=0;m<f.length;m++){var S=f[m];if(!y.call(o,S)||!Bi(a[S],o[S]))return!1}return!0}function Jm(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function qm(a,o){var f=Jm(a);a=0;for(var m;f;){if(f.nodeType===3){if(m=a+f.textContent.length,a<=o&&m>=o)return{node:f,offset:o-a};a=m}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=Jm(f)}}function Qm(a,o){return a&&o?a===o?!0:a&&a.nodeType===3?!1:o&&o.nodeType===3?Qm(a,o.parentNode):"contains"in a?a.contains(o):a.compareDocumentPosition?!!(a.compareDocumentPosition(o)&16):!1:!1}function Km(){for(var a=window,o=Ae();o instanceof a.HTMLIFrameElement;){try{var f=typeof o.contentWindow.location.href=="string"}catch{f=!1}if(f)a=o.contentWindow;else break;o=Ae(a.document)}return o}function Fc(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o&&(o==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||o==="textarea"||a.contentEditable==="true")}function pl(a){var o=Km(),f=a.focusedElem,m=a.selectionRange;if(o!==f&&f&&f.ownerDocument&&Qm(f.ownerDocument.documentElement,f)){if(m!==null&&Fc(f)){if(o=m.start,a=m.end,a===void 0&&(a=o),"selectionStart"in f)f.selectionStart=o,f.selectionEnd=Math.min(a,f.value.length);else if(a=(o=f.ownerDocument||document)&&o.defaultView||window,a.getSelection){a=a.getSelection();var S=f.textContent.length,R=Math.min(m.start,S);m=m.end===void 0?R:Math.min(m.end,S),!a.extend&&R>m&&(S=m,m=R,R=S),S=qm(f,R);var k=qm(f,m);S&&k&&(a.rangeCount!==1||a.anchorNode!==S.node||a.anchorOffset!==S.offset||a.focusNode!==k.node||a.focusOffset!==k.offset)&&(o=o.createRange(),o.setStart(S.node,S.offset),a.removeAllRanges(),R>m?(a.addRange(o),a.extend(k.node,k.offset)):(o.setEnd(k.node,k.offset),a.addRange(o)))}}for(o=[],a=f;a=a.parentNode;)a.nodeType===1&&o.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<o.length;f++)a=o[f],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}var ad=v&&"documentMode"in document&&11>=document.documentMode,vl=null,ws=null,Vc=null,pv=!1;function eg(a,o,f){var m=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;pv||vl==null||vl!==Ae(m)||(m=vl,"selectionStart"in m&&Fc(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),Vc&&mu(Vc,m)||(Vc=m,m=ld(ws,"onSelect"),0<m.length&&(o=new wt("onSelect","select",null,o,f),a.push({event:o,listeners:m}),o.target=vl)))}function id(a,o){var f={};return f[a.toLowerCase()]=o.toLowerCase(),f["Webkit"+a]="webkit"+o,f["Moz"+a]="moz"+o,f}var gu={animationend:id("Animation","AnimationEnd"),animationiteration:id("Animation","AnimationIteration"),animationstart:id("Animation","AnimationStart"),transitionend:id("Transition","TransitionEnd")},od={},tg={};v&&(tg=document.createElement("div").style,"AnimationEvent"in window||(delete gu.animationend.animation,delete gu.animationiteration.animation,delete gu.animationstart.animation),"TransitionEvent"in window||delete gu.transitionend.transition);function Bc(a){if(od[a])return od[a];if(!gu[a])return a;var o=gu[a],f;for(f in o)if(o.hasOwnProperty(f)&&f in tg)return od[a]=o[f];return a}var Zr=Bc("animationend"),vv=Bc("animationiteration"),ng=Bc("animationstart"),rg=Bc("transitionend"),ag=new Map,ig="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rs(a,o){ag.set(a,o),d(o,[a])}for(var sd=0;sd<ig.length;sd++){var zc=ig[sd],Hc=zc.toLowerCase(),oC=zc[0].toUpperCase()+zc.slice(1);Rs(Hc,"on"+oC)}Rs(Zr,"onAnimationEnd"),Rs(vv,"onAnimationIteration"),Rs(ng,"onAnimationStart"),Rs("dblclick","onDoubleClick"),Rs("focusin","onFocus"),Rs("focusout","onBlur"),Rs(rg,"onTransitionEnd"),h("onMouseEnter",["mouseout","mouseover"]),h("onMouseLeave",["mouseout","mouseover"]),h("onPointerEnter",["pointerout","pointerover"]),h("onPointerLeave",["pointerout","pointerover"]),d("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),d("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),d("onBeforeInput",["compositionend","keypress","textInput","paste"]),d("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),sC=new Set("cancel close invalid load scroll toggle".split(" ").concat(Vo));function og(a,o,f){var m=a.type||"unknown-event";a.currentTarget=f,Ue(m,o,void 0,a),a.currentTarget=null}function sg(a,o){o=(o&4)!==0;for(var f=0;f<a.length;f++){var m=a[f],S=m.event;m=m.listeners;e:{var R=void 0;if(o)for(var k=m.length-1;0<=k;k--){var W=m[k],Q=W.instance,pe=W.currentTarget;if(W=W.listener,Q!==R&&S.isPropagationStopped())break e;og(S,W,pe),R=Q}else for(k=0;k<m.length;k++){if(W=m[k],Q=W.instance,pe=W.currentTarget,W=W.listener,Q!==R&&S.isPropagationStopped())break e;og(S,W,pe),R=Q}}}if(Ua)throw a=_o,Ua=!1,_o=null,a}function Tn(a,o){var f=o[wv];f===void 0&&(f=o[wv]=new Set);var m=a+"__bubble";f.has(m)||(hv(o,a,2,!1),f.add(m))}function Uc(a,o,f){var m=0;o&&(m|=4),hv(f,a,m,o)}var Bo="_reactListening"+Math.random().toString(36).slice(2);function ro(a){if(!a[Bo]){a[Bo]=!0,u.forEach(function(f){f!=="selectionchange"&&(sC.has(f)||Uc(f,!1,a),Uc(f,!0,a))});var o=a.nodeType===9?a:a.ownerDocument;o===null||o[Bo]||(o[Bo]=!0,Uc("selectionchange",!1,o))}}function hv(a,o,f,m){switch(Oc(o)){case 1:var S=Do;break;case 4:S=fu;break;default:S=no}f=S.bind(null,o,f,a),S=void 0,!Li||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(S=!0),m?S!==void 0?a.addEventListener(o,f,{capture:!0,passive:S}):a.addEventListener(o,f,!0):S!==void 0?a.addEventListener(o,f,{passive:S}):a.addEventListener(o,f,!1)}function mv(a,o,f,m,S){var R=m;if(!(o&1)&&!(o&2)&&m!==null)e:for(;;){if(m===null)return;var k=m.tag;if(k===3||k===4){var W=m.stateNode.containerInfo;if(W===S||W.nodeType===8&&W.parentNode===S)break;if(k===4)for(k=m.return;k!==null;){var Q=k.tag;if((Q===3||Q===4)&&(Q=k.stateNode.containerInfo,Q===S||Q.nodeType===8&&Q.parentNode===S))return;k=k.return}for(;W!==null;){if(k=Ho(W),k===null)return;if(Q=k.tag,Q===5||Q===6){m=R=k;continue e}W=W.parentNode}}m=m.return}hs(function(){var pe=R,Me=Xr(f),Pe=[];e:{var De=ag.get(a);if(De!==void 0){var Ye=wt,nt=a;switch(a){case"keypress":if(ue(f)===0)break e;case"keydown":case"keyup":Ye=Lo;break;case"focusin":nt="focus",Ye=jc;break;case"focusout":nt="blur",Ye=jc;break;case"beforeblur":case"afterblur":Ye=jc;break;case"click":if(f.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ye=Zt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ye=vu;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ye=sv;break;case Zr:case vv:case ng:Ye=Dc;break;case rg:Ye=nd;break;case"scroll":Ye=fn;break;case"wheel":Ye=Ea;break;case"copy":case"cut":case"paste":Ye=av;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ye=td}var ot=(o&4)!==0,fr=!ot&&a==="scroll",ae=ot?De!==null?De+"Capture":null:De;ot=[];for(var ee=pe,se;ee!==null;){se=ee;var ze=se.stateNode;if(se.tag===5&&ze!==null&&(se=ze,ae!==null&&(ze=Mi(ee,ae),ze!=null&&ot.push(yu(ee,ze,se)))),fr)break;ee=ee.return}0<ot.length&&(De=new Ye(De,nt,null,f,Me),Pe.push({event:De,listeners:ot}))}}if(!(o&7)){e:{if(De=a==="mouseover"||a==="pointerover",Ye=a==="mouseout"||a==="pointerout",De&&f!==Gn&&(nt=f.relatedTarget||f.fromElement)&&(Ho(nt)||nt[zi]))break e;if((Ye||De)&&(De=Me.window===Me?Me:(De=Me.ownerDocument)?De.defaultView||De.parentWindow:window,Ye?(nt=f.relatedTarget||f.toElement,Ye=pe,nt=nt?Ho(nt):null,nt!==null&&(fr=We(nt),nt!==fr||nt.tag!==5&&nt.tag!==6)&&(nt=null)):(Ye=null,nt=pe),Ye!==nt)){if(ot=Zt,ze="onMouseLeave",ae="onMouseEnter",ee="mouse",(a==="pointerout"||a==="pointerover")&&(ot=td,ze="onPointerLeave",ae="onPointerEnter",ee="pointer"),fr=Ye==null?De:bu(Ye),se=nt==null?De:bu(nt),De=new ot(ze,ee+"leave",Ye,f,Me),De.target=fr,De.relatedTarget=se,ze=null,Ho(Me)===pe&&(ot=new ot(ae,ee+"enter",nt,f,Me),ot.target=se,ot.relatedTarget=fr,ze=ot),fr=ze,Ye&&nt)t:{for(ot=Ye,ae=nt,ee=0,se=ot;se;se=hl(se))ee++;for(se=0,ze=ae;ze;ze=hl(ze))se++;for(;0<ee-se;)ot=hl(ot),ee--;for(;0<se-ee;)ae=hl(ae),se--;for(;ee--;){if(ot===ae||ae!==null&&ot===ae.alternate)break t;ot=hl(ot),ae=hl(ae)}ot=null}else ot=null;Ye!==null&&gv(Pe,De,Ye,ot,!1),nt!==null&&fr!==null&&gv(Pe,fr,nt,ot,!0)}}e:{if(De=pe?bu(pe):window,Ye=De.nodeName&&De.nodeName.toLowerCase(),Ye==="select"||Ye==="input"&&De.type==="file")var lt=cv;else if(uv(De))if(fv)lt=iC;else{lt=rC;var Ct=nC}else(Ye=De.nodeName)&&Ye.toLowerCase()==="input"&&(De.type==="checkbox"||De.type==="radio")&&(lt=aC);if(lt&&(lt=lt(a,pe))){$m(Pe,lt,f,Me);break e}Ct&&Ct(a,De,pe),a==="focusout"&&(Ct=De._wrapperState)&&Ct.controlled&&De.type==="number"&&_n(De,"number",De.value)}switch(Ct=pe?bu(pe):window,a){case"focusin":(uv(Ct)||Ct.contentEditable==="true")&&(vl=Ct,ws=pe,Vc=null);break;case"focusout":Vc=ws=vl=null;break;case"mousedown":pv=!0;break;case"contextmenu":case"mouseup":case"dragend":pv=!1,eg(Pe,f,Me);break;case"selectionchange":if(ad)break;case"keydown":case"keyup":eg(Pe,f,Me)}var rt;if(Kn)e:{switch(a){case"compositionstart":var St="onCompositionStart";break e;case"compositionend":St="onCompositionEnd";break e;case"compositionupdate":St="onCompositionUpdate";break e}St=void 0}else Es?Hm(a,f)&&(St="onCompositionEnd"):a==="keydown"&&f.keyCode===229&&(St="onCompositionStart");St&&(Mc&&f.locale!=="ko"&&(Es||St!=="onCompositionStart"?St==="onCompositionEnd"&&Es&&(rt=X()):(Vi=Me,pu="value"in Vi?Vi.value:Vi.textContent,Es=!0)),Ct=ld(pe,St),0<Ct.length&&(St=new Lm(St,a,null,f,Me),Pe.push({event:St,listeners:Ct}),rt?St.data=rt:(rt=Um(f),rt!==null&&(St.data=rt)))),(rt=lv?K0(a,f):eC(a,f))&&(pe=ld(pe,"onBeforeInput"),0<pe.length&&(Me=new Lm("onBeforeInput","beforeinput",null,f,Me),Pe.push({event:Me,listeners:pe}),Me.data=rt))}sg(Pe,o)})}function yu(a,o,f){return{instance:a,listener:o,currentTarget:f}}function ld(a,o){for(var f=o+"Capture",m=[];a!==null;){var S=a,R=S.stateNode;S.tag===5&&R!==null&&(S=R,R=Mi(a,f),R!=null&&m.unshift(yu(a,R,S)),R=Mi(a,o),R!=null&&m.push(yu(a,R,S))),a=a.return}return m}function hl(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5);return a||null}function gv(a,o,f,m,S){for(var R=o._reactName,k=[];f!==null&&f!==m;){var W=f,Q=W.alternate,pe=W.stateNode;if(Q!==null&&Q===m)break;W.tag===5&&pe!==null&&(W=pe,S?(Q=Mi(f,R),Q!=null&&k.unshift(yu(f,Q,W))):S||(Q=Mi(f,R),Q!=null&&k.push(yu(f,Q,W)))),f=f.return}k.length!==0&&a.push({event:o,listeners:k})}var lg=/\r\n?/g,yv=/\u0000|\uFFFD/g;function ug(a){return(typeof a=="string"?a:""+a).replace(lg,`
|
|
94
|
-
`).replace(yv,"")}function $c(a,o,f){if(o=ug(o),ug(a)!==o&&f)throw Error(i(425))}function ud(){}var bv=null,Cv=null;function ml(a,o){return a==="textarea"||a==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Gc=typeof setTimeout=="function"?setTimeout:void 0,Wc=typeof clearTimeout=="function"?clearTimeout:void 0,xv=typeof Promise=="function"?Promise:void 0,cg=typeof queueMicrotask=="function"?queueMicrotask:typeof xv<"u"?function(a){return xv.resolve(null).then(a).catch(Sv)}:Gc;function Sv(a){setTimeout(function(){throw a})}function Ev(a,o){var f=o,m=0;do{var S=f.nextSibling;if(a.removeChild(f),S&&S.nodeType===8)if(f=S.data,f==="/$"){if(m===0){a.removeChild(S),li(o);return}m--}else f!=="$"&&f!=="$?"&&f!=="$!"||m++;f=S}while(f);li(o)}function Ga(a){for(;a!=null;a=a.nextSibling){var o=a.nodeType;if(o===1||o===3)break;if(o===8){if(o=a.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return a}function Xc(a){a=a.previousSibling;for(var o=0;a;){if(a.nodeType===8){var f=a.data;if(f==="$"||f==="$!"||f==="$?"){if(o===0)return a;o--}else f==="/$"&&o++}a=a.previousSibling}return null}var zo=Math.random().toString(36).slice(2),ui="__reactFiber$"+zo,Yc="__reactProps$"+zo,zi="__reactContainer$"+zo,wv="__reactEvents$"+zo,lC="__reactListeners$"+zo,uC="__reactHandles$"+zo;function Ho(a){var o=a[ui];if(o)return o;for(var f=a.parentNode;f;){if(o=f[zi]||f[ui]){if(f=o.alternate,o.child!==null||f!==null&&f.child!==null)for(a=Xc(a);a!==null;){if(f=a[ui])return f;a=Xc(a)}return o}a=f,f=a.parentNode}return null}function ao(a){return a=a[ui]||a[zi],!a||a.tag!==5&&a.tag!==6&&a.tag!==13&&a.tag!==3?null:a}function bu(a){if(a.tag===5||a.tag===6)return a.stateNode;throw Error(i(33))}function cd(a){return a[Yc]||null}var ht=[],Hi=-1;function In(a){return{current:a}}function st(a){0>Hi||(a.current=ht[Hi],ht[Hi]=null,Hi--)}function tn(a,o){Hi++,ht[Hi]=a.current,a.current=o}var ci={},Nr=In(ci),Ot=In(!1),aa=ci;function Wa(a,o){var f=a.type.contextTypes;if(!f)return ci;var m=a.stateNode;if(m&&m.__reactInternalMemoizedUnmaskedChildContext===o)return m.__reactInternalMemoizedMaskedChildContext;var S={},R;for(R in f)S[R]=o[R];return m&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=o,a.__reactInternalMemoizedMaskedChildContext=S),S}function vr(a){return a=a.childContextTypes,a!=null}function wa(){st(Ot),st(Nr)}function io(a,o,f){if(Nr.current!==ci)throw Error(i(168));tn(Nr,o),tn(Ot,f)}function Ts(a,o,f){var m=a.stateNode;if(o=o.childContextTypes,typeof m.getChildContext!="function")return f;m=m.getChildContext();for(var S in m)if(!(S in o))throw Error(i(108,ve(a)||"Unknown",S));return G({},f,m)}function gl(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||ci,aa=Nr.current,tn(Nr,a),tn(Ot,Ot.current),!0}function fg(a,o,f){var m=a.stateNode;if(!m)throw Error(i(169));f?(a=Ts(a,o,aa),m.__reactInternalMemoizedMergedChildContext=a,st(Ot),st(Nr),tn(Nr,a)):st(Ot),tn(Ot,f)}var Uo=null,Is=!1,Lr=!1;function fd(a){Uo===null?Uo=[a]:Uo.push(a)}function dg(a){Is=!0,fd(a)}function oo(){if(!Lr&&Uo!==null){Lr=!0;var a=0,o=Ut;try{var f=Uo;for(Ut=1;a<f.length;a++){var m=f[a];do m=m(!0);while(m!==null)}Uo=null,Is=!1}catch(S){throw Uo!==null&&(Uo=Uo.slice(a+1)),An(Cc,oo),S}finally{Ut=o,Lr=!1}}return null}var fi=[],Ns=0,di=null,yl=0,Ra=[],Ta=0,Ui=null,Ia=1,Pr="";function bl(a,o){fi[Ns++]=yl,fi[Ns++]=di,di=a,yl=o}function _s(a,o,f){Ra[Ta++]=Ia,Ra[Ta++]=Pr,Ra[Ta++]=Ui,Ui=a;var m=Ia;a=Pr;var S=32-ra(m)-1;m&=~(1<<S),f+=1;var R=32-ra(o)+S;if(30<R){var k=S-S%5;R=(m&(1<<k)-1).toString(32),m>>=k,S-=k,Ia=1<<32-ra(o)+S|f<<S|m,Pr=R+a}else Ia=1<<R|f<<S|m,Pr=a}function dd(a){a.return!==null&&(bl(a,1),_s(a,1,0))}function pd(a){for(;a===di;)di=fi[--Ns],fi[Ns]=null,yl=fi[--Ns],fi[Ns]=null;for(;a===Ui;)Ui=Ra[--Ta],Ra[Ta]=null,Pr=Ra[--Ta],Ra[Ta]=null,Ia=Ra[--Ta],Ra[Ta]=null}var Xa=null,Ya=null,Bn=!1,pi=null;function Rv(a,o){var f=xi(5,null,null,0);f.elementType="DELETED",f.stateNode=o,f.return=a,o=a.deletions,o===null?(a.deletions=[f],a.flags|=16):o.push(f)}function Tv(a,o){switch(a.tag){case 5:var f=a.type;return o=o.nodeType!==1||f.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(a.stateNode=o,Xa=a,Ya=Ga(o.firstChild),!0):!1;case 6:return o=a.pendingProps===""||o.nodeType!==3?null:o,o!==null?(a.stateNode=o,Xa=a,Ya=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(f=Ui!==null?{id:Ia,overflow:Pr}:null,a.memoizedState={dehydrated:o,treeContext:f,retryLane:1073741824},f=xi(18,null,null,0),f.stateNode=o,f.return=a,a.child=f,Xa=a,Ya=null,!0):!1;default:return!1}}function Iv(a){return(a.mode&1)!==0&&(a.flags&128)===0}function vd(a){if(Bn){var o=Ya;if(o){var f=o;if(!Tv(a,o)){if(Iv(a))throw Error(i(418));o=Ga(f.nextSibling);var m=Xa;o&&Tv(a,o)?Rv(m,f):(a.flags=a.flags&-4097|2,Bn=!1,Xa=a)}}else{if(Iv(a))throw Error(i(418));a.flags=a.flags&-4097|2,Bn=!1,Xa=a}}}function Nv(a){for(a=a.return;a!==null&&a.tag!==5&&a.tag!==3&&a.tag!==13;)a=a.return;Xa=a}function hd(a){if(a!==Xa)return!1;if(!Bn)return Nv(a),Bn=!0,!1;var o;if((o=a.tag!==3)&&!(o=a.tag!==5)&&(o=a.type,o=o!=="head"&&o!=="body"&&!ml(a.type,a.memoizedProps)),o&&(o=Ya)){if(Iv(a))throw pg(),Error(i(418));for(;o;)Rv(a,o),o=Ga(o.nextSibling)}if(Nv(a),a.tag===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(i(317));e:{for(a=a.nextSibling,o=0;a;){if(a.nodeType===8){var f=a.data;if(f==="/$"){if(o===0){Ya=Ga(a.nextSibling);break e}o--}else f!=="$"&&f!=="$!"&&f!=="$?"||o++}a=a.nextSibling}Ya=null}}else Ya=Xa?Ga(a.stateNode.nextSibling):null;return!0}function pg(){for(var a=Ya;a;)a=Ga(a.nextSibling)}function Cu(){Ya=Xa=null,Bn=!1}function hr(a){pi===null?pi=[a]:pi.push(a)}var cC=H.ReactCurrentBatchConfig;function Na(a,o){if(a&&a.defaultProps){o=G({},o),a=a.defaultProps;for(var f in a)o[f]===void 0&&(o[f]=a[f]);return o}return o}var xu=In(null),so=null,Su=null,Zc=null;function _v(){Zc=Su=so=null}function Ov(a){var o=xu.current;st(xu),a._currentValue=o}function Os(a,o,f){for(;a!==null;){var m=a.alternate;if((a.childLanes&o)!==o?(a.childLanes|=o,m!==null&&(m.childLanes|=o)):m!==null&&(m.childLanes&o)!==o&&(m.childLanes|=o),a===f)break;a=a.return}}function or(a,o){so=a,Zc=Su=null,a=a.dependencies,a!==null&&a.firstContext!==null&&(a.lanes&o&&(Aa=!0),a.firstContext=null)}function He(a){var o=a._currentValue;if(Zc!==a)if(a={context:a,memoizedValue:o,next:null},Su===null){if(so===null)throw Error(i(308));Su=a,so.dependencies={lanes:0,firstContext:a}}else Su=Su.next=a;return o}var Jr=null;function Za(a){Jr===null?Jr=[a]:Jr.push(a)}function vg(a,o,f,m){var S=o.interleaved;return S===null?(f.next=f,Za(o)):(f.next=S.next,S.next=f),o.interleaved=f,$o(a,m)}function $o(a,o){a.lanes|=o;var f=a.alternate;for(f!==null&&(f.lanes|=o),f=a,a=a.return;a!==null;)a.childLanes|=o,f=a.alternate,f!==null&&(f.childLanes|=o),f=a,a=a.return;return f.tag===3?f.stateNode:null}var As=!1;function Av(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hg(a,o){a=a.updateQueue,o.updateQueue===a&&(o.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects})}function kn(a,o){return{eventTime:a,lane:o,tag:0,payload:null,callback:null,next:null}}function js(a,o,f){var m=a.updateQueue;if(m===null)return null;if(m=m.shared,zt&2){var S=m.pending;return S===null?o.next=o:(o.next=S.next,S.next=o),m.pending=o,$o(a,f)}return S=m.interleaved,S===null?(o.next=o,Za(m)):(o.next=S.next,S.next=o),m.interleaved=o,$o(a,f)}function md(a,o,f){if(o=o.updateQueue,o!==null&&(o=o.shared,(f&4194240)!==0)){var m=o.lanes;m&=a.pendingLanes,f|=m,o.lanes=f,Tc(a,f)}}function mg(a,o){var f=a.updateQueue,m=a.alternate;if(m!==null&&(m=m.updateQueue,f===m)){var S=null,R=null;if(f=f.firstBaseUpdate,f!==null){do{var k={eventTime:f.eventTime,lane:f.lane,tag:f.tag,payload:f.payload,callback:f.callback,next:null};R===null?S=R=k:R=R.next=k,f=f.next}while(f!==null);R===null?S=R=o:R=R.next=o}else S=R=o;f={baseState:m.baseState,firstBaseUpdate:S,lastBaseUpdate:R,shared:m.shared,effects:m.effects},a.updateQueue=f;return}a=f.lastBaseUpdate,a===null?f.firstBaseUpdate=o:a.next=o,f.lastBaseUpdate=o}function Jc(a,o,f,m){var S=a.updateQueue;As=!1;var R=S.firstBaseUpdate,k=S.lastBaseUpdate,W=S.shared.pending;if(W!==null){S.shared.pending=null;var Q=W,pe=Q.next;Q.next=null,k===null?R=pe:k.next=pe,k=Q;var Me=a.alternate;Me!==null&&(Me=Me.updateQueue,W=Me.lastBaseUpdate,W!==k&&(W===null?Me.firstBaseUpdate=pe:W.next=pe,Me.lastBaseUpdate=Q))}if(R!==null){var Pe=S.baseState;k=0,Me=pe=Q=null,W=R;do{var De=W.lane,Ye=W.eventTime;if((m&De)===De){Me!==null&&(Me=Me.next={eventTime:Ye,lane:0,tag:W.tag,payload:W.payload,callback:W.callback,next:null});e:{var nt=a,ot=W;switch(De=o,Ye=f,ot.tag){case 1:if(nt=ot.payload,typeof nt=="function"){Pe=nt.call(Ye,Pe,De);break e}Pe=nt;break e;case 3:nt.flags=nt.flags&-65537|128;case 0:if(nt=ot.payload,De=typeof nt=="function"?nt.call(Ye,Pe,De):nt,De==null)break e;Pe=G({},Pe,De);break e;case 2:As=!0}}W.callback!==null&&W.lane!==0&&(a.flags|=64,De=S.effects,De===null?S.effects=[W]:De.push(W))}else Ye={eventTime:Ye,lane:De,tag:W.tag,payload:W.payload,callback:W.callback,next:null},Me===null?(pe=Me=Ye,Q=Pe):Me=Me.next=Ye,k|=De;if(W=W.next,W===null){if(W=S.shared.pending,W===null)break;De=W,W=De.next,De.next=null,S.lastBaseUpdate=De,S.shared.pending=null}}while(!0);if(Me===null&&(Q=Pe),S.baseState=Q,S.firstBaseUpdate=pe,S.lastBaseUpdate=Me,o=S.shared.interleaved,o!==null){S=o;do k|=S.lane,S=S.next;while(S!==o)}else R===null&&(S.shared.lanes=0);Al|=k,a.lanes=k,a.memoizedState=Pe}}function Eu(a,o,f){if(a=o.effects,o.effects=null,a!==null)for(o=0;o<a.length;o++){var m=a[o],S=m.callback;if(S!==null){if(m.callback=null,m=f,typeof S!="function")throw Error(i(191,S));S.call(m)}}}var Cl=new n.Component().refs;function jv(a,o,f,m){o=a.memoizedState,f=f(m,o),f=f==null?o:G({},o,f),a.memoizedState=f,a.lanes===0&&(a.updateQueue.baseState=f)}var gd={isMounted:function(a){return(a=a._reactInternals)?We(a)===a:!1},enqueueSetState:function(a,o,f){a=a._reactInternals;var m=Ar(),S=Yo(a),R=kn(m,S);R.payload=o,f!=null&&(R.callback=f),o=js(a,R,S),o!==null&&(Zn(o,a,S,m),md(o,a,S))},enqueueReplaceState:function(a,o,f){a=a._reactInternals;var m=Ar(),S=Yo(a),R=kn(m,S);R.tag=1,R.payload=o,f!=null&&(R.callback=f),o=js(a,R,S),o!==null&&(Zn(o,a,S,m),md(o,a,S))},enqueueForceUpdate:function(a,o){a=a._reactInternals;var f=Ar(),m=Yo(a),S=kn(f,m);S.tag=2,o!=null&&(S.callback=o),o=js(a,S,m),o!==null&&(Zn(o,a,m,f),md(o,a,m))}};function gg(a,o,f,m,S,R,k){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(m,R,k):o.prototype&&o.prototype.isPureReactComponent?!mu(f,m)||!mu(S,R):!0}function yg(a,o,f){var m=!1,S=ci,R=o.contextType;return typeof R=="object"&&R!==null?R=He(R):(S=vr(o)?aa:Nr.current,m=o.contextTypes,R=(m=m!=null)?Wa(a,S):ci),o=new o(f,R),a.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=gd,a.stateNode=o,o._reactInternals=a,m&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=S,a.__reactInternalMemoizedMaskedChildContext=R),o}function bg(a,o,f,m){a=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(f,m),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(f,m),o.state!==a&&gd.enqueueReplaceState(o,o.state,null)}function Dv(a,o,f,m){var S=a.stateNode;S.props=f,S.state=a.memoizedState,S.refs=Cl,Av(a);var R=o.contextType;typeof R=="object"&&R!==null?S.context=He(R):(R=vr(o)?aa:Nr.current,S.context=Wa(a,R)),S.state=a.memoizedState,R=o.getDerivedStateFromProps,typeof R=="function"&&(jv(a,o,R,f),S.state=a.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof S.getSnapshotBeforeUpdate=="function"||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(o=S.state,typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount(),o!==S.state&&gd.enqueueReplaceState(S,S.state,null),Jc(a,f,S,m),S.state=a.memoizedState),typeof S.componentDidMount=="function"&&(a.flags|=4194308)}function wu(a,o,f){if(a=f.ref,a!==null&&typeof a!="function"&&typeof a!="object"){if(f._owner){if(f=f._owner,f){if(f.tag!==1)throw Error(i(309));var m=f.stateNode}if(!m)throw Error(i(147,a));var S=m,R=""+a;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===R?o.ref:(o=function(k){var W=S.refs;W===Cl&&(W=S.refs={}),k===null?delete W[R]:W[R]=k},o._stringRef=R,o)}if(typeof a!="string")throw Error(i(284));if(!f._owner)throw Error(i(290,a))}return a}function qc(a,o){throw a=Object.prototype.toString.call(o),Error(i(31,a==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":a))}function Cg(a){var o=a._init;return o(a._payload)}function xg(a){function o(ae,ee){if(a){var se=ae.deletions;se===null?(ae.deletions=[ee],ae.flags|=16):se.push(ee)}}function f(ae,ee){if(!a)return null;for(;ee!==null;)o(ae,ee),ee=ee.sibling;return null}function m(ae,ee){for(ae=new Map;ee!==null;)ee.key!==null?ae.set(ee.key,ee):ae.set(ee.index,ee),ee=ee.sibling;return ae}function S(ae,ee){return ae=Bs(ae,ee),ae.index=0,ae.sibling=null,ae}function R(ae,ee,se){return ae.index=se,a?(se=ae.alternate,se!==null?(se=se.index,se<ee?(ae.flags|=2,ee):se):(ae.flags|=2,ee)):(ae.flags|=1048576,ee)}function k(ae){return a&&ae.alternate===null&&(ae.flags|=2),ae}function W(ae,ee,se,ze){return ee===null||ee.tag!==6?(ee=Qd(se,ae.mode,ze),ee.return=ae,ee):(ee=S(ee,se),ee.return=ae,ee)}function Q(ae,ee,se,ze){var lt=se.type;return lt===J?Me(ae,ee,se.props.children,ze,se.key):ee!==null&&(ee.elementType===lt||typeof lt=="object"&<!==null&<.$$typeof===je&&Cg(lt)===ee.type)?(ze=S(ee,se.props),ze.ref=wu(ae,ee,se),ze.return=ae,ze):(ze=Jd(se.type,se.key,se.props,null,ae.mode,ze),ze.ref=wu(ae,ee,se),ze.return=ae,ze)}function pe(ae,ee,se,ze){return ee===null||ee.tag!==4||ee.stateNode.containerInfo!==se.containerInfo||ee.stateNode.implementation!==se.implementation?(ee=gf(se,ae.mode,ze),ee.return=ae,ee):(ee=S(ee,se.children||[]),ee.return=ae,ee)}function Me(ae,ee,se,ze,lt){return ee===null||ee.tag!==7?(ee=Ml(se,ae.mode,ze,lt),ee.return=ae,ee):(ee=S(ee,se),ee.return=ae,ee)}function Pe(ae,ee,se){if(typeof ee=="string"&&ee!==""||typeof ee=="number")return ee=Qd(""+ee,ae.mode,se),ee.return=ae,ee;if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case z:return se=Jd(ee.type,ee.key,ee.props,null,ae.mode,se),se.ref=wu(ae,null,ee),se.return=ae,se;case U:return ee=gf(ee,ae.mode,se),ee.return=ae,ee;case je:var ze=ee._init;return Pe(ae,ze(ee._payload),se)}if(Vt(ee)||_e(ee))return ee=Ml(ee,ae.mode,se,null),ee.return=ae,ee;qc(ae,ee)}return null}function De(ae,ee,se,ze){var lt=ee!==null?ee.key:null;if(typeof se=="string"&&se!==""||typeof se=="number")return lt!==null?null:W(ae,ee,""+se,ze);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case z:return se.key===lt?Q(ae,ee,se,ze):null;case U:return se.key===lt?pe(ae,ee,se,ze):null;case je:return lt=se._init,De(ae,ee,lt(se._payload),ze)}if(Vt(se)||_e(se))return lt!==null?null:Me(ae,ee,se,ze,null);qc(ae,se)}return null}function Ye(ae,ee,se,ze,lt){if(typeof ze=="string"&&ze!==""||typeof ze=="number")return ae=ae.get(se)||null,W(ee,ae,""+ze,lt);if(typeof ze=="object"&&ze!==null){switch(ze.$$typeof){case z:return ae=ae.get(ze.key===null?se:ze.key)||null,Q(ee,ae,ze,lt);case U:return ae=ae.get(ze.key===null?se:ze.key)||null,pe(ee,ae,ze,lt);case je:var Ct=ze._init;return Ye(ae,ee,se,Ct(ze._payload),lt)}if(Vt(ze)||_e(ze))return ae=ae.get(se)||null,Me(ee,ae,ze,lt,null);qc(ee,ze)}return null}function nt(ae,ee,se,ze){for(var lt=null,Ct=null,rt=ee,St=ee=0,Sr=null;rt!==null&&St<se.length;St++){rt.index>St?(Sr=rt,rt=null):Sr=rt.sibling;var nn=De(ae,rt,se[St],ze);if(nn===null){rt===null&&(rt=Sr);break}a&&rt&&nn.alternate===null&&o(ae,rt),ee=R(nn,ee,St),Ct===null?lt=nn:Ct.sibling=nn,Ct=nn,rt=Sr}if(St===se.length)return f(ae,rt),Bn&&bl(ae,St),lt;if(rt===null){for(;St<se.length;St++)rt=Pe(ae,se[St],ze),rt!==null&&(ee=R(rt,ee,St),Ct===null?lt=rt:Ct.sibling=rt,Ct=rt);return Bn&&bl(ae,St),lt}for(rt=m(ae,rt);St<se.length;St++)Sr=Ye(rt,ae,St,se[St],ze),Sr!==null&&(a&&Sr.alternate!==null&&rt.delete(Sr.key===null?St:Sr.key),ee=R(Sr,ee,St),Ct===null?lt=Sr:Ct.sibling=Sr,Ct=Sr);return a&&rt.forEach(function(Zo){return o(ae,Zo)}),Bn&&bl(ae,St),lt}function ot(ae,ee,se,ze){var lt=_e(se);if(typeof lt!="function")throw Error(i(150));if(se=lt.call(se),se==null)throw Error(i(151));for(var Ct=lt=null,rt=ee,St=ee=0,Sr=null,nn=se.next();rt!==null&&!nn.done;St++,nn=se.next()){rt.index>St?(Sr=rt,rt=null):Sr=rt.sibling;var Zo=De(ae,rt,nn.value,ze);if(Zo===null){rt===null&&(rt=Sr);break}a&&rt&&Zo.alternate===null&&o(ae,rt),ee=R(Zo,ee,St),Ct===null?lt=Zo:Ct.sibling=Zo,Ct=Zo,rt=Sr}if(nn.done)return f(ae,rt),Bn&&bl(ae,St),lt;if(rt===null){for(;!nn.done;St++,nn=se.next())nn=Pe(ae,nn.value,ze),nn!==null&&(ee=R(nn,ee,St),Ct===null?lt=nn:Ct.sibling=nn,Ct=nn);return Bn&&bl(ae,St),lt}for(rt=m(ae,rt);!nn.done;St++,nn=se.next())nn=Ye(rt,ae,St,nn.value,ze),nn!==null&&(a&&nn.alternate!==null&&rt.delete(nn.key===null?St:nn.key),ee=R(nn,ee,St),Ct===null?lt=nn:Ct.sibling=nn,Ct=nn);return a&&rt.forEach(function(_C){return o(ae,_C)}),Bn&&bl(ae,St),lt}function fr(ae,ee,se,ze){if(typeof se=="object"&&se!==null&&se.type===J&&se.key===null&&(se=se.props.children),typeof se=="object"&&se!==null){switch(se.$$typeof){case z:e:{for(var lt=se.key,Ct=ee;Ct!==null;){if(Ct.key===lt){if(lt=se.type,lt===J){if(Ct.tag===7){f(ae,Ct.sibling),ee=S(Ct,se.props.children),ee.return=ae,ae=ee;break e}}else if(Ct.elementType===lt||typeof lt=="object"&<!==null&<.$$typeof===je&&Cg(lt)===Ct.type){f(ae,Ct.sibling),ee=S(Ct,se.props),ee.ref=wu(ae,Ct,se),ee.return=ae,ae=ee;break e}f(ae,Ct);break}else o(ae,Ct);Ct=Ct.sibling}se.type===J?(ee=Ml(se.props.children,ae.mode,ze,se.key),ee.return=ae,ae=ee):(ze=Jd(se.type,se.key,se.props,null,ae.mode,ze),ze.ref=wu(ae,ee,se),ze.return=ae,ae=ze)}return k(ae);case U:e:{for(Ct=se.key;ee!==null;){if(ee.key===Ct)if(ee.tag===4&&ee.stateNode.containerInfo===se.containerInfo&&ee.stateNode.implementation===se.implementation){f(ae,ee.sibling),ee=S(ee,se.children||[]),ee.return=ae,ae=ee;break e}else{f(ae,ee);break}else o(ae,ee);ee=ee.sibling}ee=gf(se,ae.mode,ze),ee.return=ae,ae=ee}return k(ae);case je:return Ct=se._init,fr(ae,ee,Ct(se._payload),ze)}if(Vt(se))return nt(ae,ee,se,ze);if(_e(se))return ot(ae,ee,se,ze);qc(ae,se)}return typeof se=="string"&&se!==""||typeof se=="number"?(se=""+se,ee!==null&&ee.tag===6?(f(ae,ee.sibling),ee=S(ee,se),ee.return=ae,ae=ee):(f(ae,ee),ee=Qd(se,ae.mode,ze),ee.return=ae,ae=ee),k(ae)):f(ae,ee)}return fr}var Ru=xg(!0),Sg=xg(!1),Qc={},lo=In(Qc),Tu=In(Qc),Kc=In(Qc);function Ds(a){if(a===Qc)throw Error(i(174));return a}function kv(a,o){switch(tn(Kc,o),tn(Tu,a),tn(lo,Qc),a=o.nodeType,a){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:Pn(null,"");break;default:a=a===8?o.parentNode:o,o=a.namespaceURI||null,a=a.tagName,o=Pn(o,a)}st(lo),tn(lo,o)}function Iu(){st(lo),st(Tu),st(Kc)}function yd(a){Ds(Kc.current);var o=Ds(lo.current),f=Pn(o,a.type);o!==f&&(tn(Tu,a),tn(lo,f))}function mt(a){Tu.current===a&&(st(lo),st(Tu))}var ut=In(0);function Qt(a){for(var o=a;o!==null;){if(o.tag===13){var f=o.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||f.data==="$?"||f.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if(o.flags&128)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var er=[];function hi(){for(var a=0;a<er.length;a++)er[a]._workInProgressVersionPrimary=null;er.length=0}var ef=H.ReactCurrentDispatcher,Mv=H.ReactCurrentBatchConfig,xl=0,Yn=null,sr=null,Ee=null,lr=!1,bt=!1,uo=0,Go=0;function tr(){throw Error(i(321))}function mi(a,o){if(o===null)return!1;for(var f=0;f<o.length&&f<a.length;f++)if(!Bi(a[f],o[f]))return!1;return!0}function Sl(a,o,f,m,S,R){if(xl=R,Yn=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,ef.current=a===null||a.memoizedState===null?fC:dC,a=f(m,S),bt){R=0;do{if(bt=!1,uo=0,25<=R)throw Error(i(301));R+=1,Ee=sr=null,o.updateQueue=null,ef.current=pC,a=f(m,S)}while(bt)}if(ef.current=jd,o=sr!==null&&sr.next!==null,xl=0,Ee=sr=Yn=null,lr=!1,o)throw Error(i(300));return a}function ks(){var a=uo!==0;return uo=0,a}function _a(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ee===null?Yn.memoizedState=Ee=a:Ee=Ee.next=a,Ee}function Oa(){if(sr===null){var a=Yn.alternate;a=a!==null?a.memoizedState:null}else a=sr.next;var o=Ee===null?Yn.memoizedState:Ee.next;if(o!==null)Ee=o,sr=a;else{if(a===null)throw Error(i(310));sr=a,a={memoizedState:sr.memoizedState,baseState:sr.baseState,baseQueue:sr.baseQueue,queue:sr.queue,next:null},Ee===null?Yn.memoizedState=Ee=a:Ee=Ee.next=a}return Ee}function El(a,o){return typeof o=="function"?o(a):o}function tf(a){var o=Oa(),f=o.queue;if(f===null)throw Error(i(311));f.lastRenderedReducer=a;var m=sr,S=m.baseQueue,R=f.pending;if(R!==null){if(S!==null){var k=S.next;S.next=R.next,R.next=k}m.baseQueue=S=R,f.pending=null}if(S!==null){R=S.next,m=m.baseState;var W=k=null,Q=null,pe=R;do{var Me=pe.lane;if((xl&Me)===Me)Q!==null&&(Q=Q.next={lane:0,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null}),m=pe.hasEagerState?pe.eagerState:a(m,pe.action);else{var Pe={lane:Me,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null};Q===null?(W=Q=Pe,k=m):Q=Q.next=Pe,Yn.lanes|=Me,Al|=Me}pe=pe.next}while(pe!==null&&pe!==R);Q===null?k=m:Q.next=W,Bi(m,o.memoizedState)||(Aa=!0),o.memoizedState=m,o.baseState=k,o.baseQueue=Q,f.lastRenderedState=m}if(a=f.interleaved,a!==null){S=a;do R=S.lane,Yn.lanes|=R,Al|=R,S=S.next;while(S!==a)}else S===null&&(f.lanes=0);return[o.memoizedState,f.dispatch]}function nf(a){var o=Oa(),f=o.queue;if(f===null)throw Error(i(311));f.lastRenderedReducer=a;var m=f.dispatch,S=f.pending,R=o.memoizedState;if(S!==null){f.pending=null;var k=S=S.next;do R=a(R,k.action),k=k.next;while(k!==S);Bi(R,o.memoizedState)||(Aa=!0),o.memoizedState=R,o.baseQueue===null&&(o.baseState=R),f.lastRenderedState=R}return[R,m]}function bd(){}function Cd(a,o){var f=Yn,m=Oa(),S=o(),R=!Bi(m.memoizedState,S);if(R&&(m.memoizedState=S,Aa=!0),m=m.queue,rf(Ed.bind(null,f,m,a),[a]),m.getSnapshot!==o||R||Ee!==null&&Ee.memoizedState.tag&1){if(f.flags|=2048,wl(9,Sd.bind(null,f,m,S,o),void 0,null),rr===null)throw Error(i(349));xl&30||xd(f,o,S)}return S}function xd(a,o,f){a.flags|=16384,a={getSnapshot:o,value:f},o=Yn.updateQueue,o===null?(o={lastEffect:null,stores:null},Yn.updateQueue=o,o.stores=[a]):(f=o.stores,f===null?o.stores=[a]:f.push(a))}function Sd(a,o,f,m){o.value=f,o.getSnapshot=m,wd(o)&&Rd(a)}function Ed(a,o,f){return f(function(){wd(o)&&Rd(a)})}function wd(a){var o=a.getSnapshot;a=a.value;try{var f=o();return!Bi(a,f)}catch{return!0}}function Rd(a){var o=$o(a,1);o!==null&&Zn(o,a,1,-1)}function Td(a){var o=_a();return typeof a=="function"&&(a=a()),o.memoizedState=o.baseState=a,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:El,lastRenderedState:a},o.queue=a,a=a.dispatch=Ad.bind(null,Yn,a),[o.memoizedState,a]}function wl(a,o,f,m){return a={tag:a,create:o,destroy:f,deps:m,next:null},o=Yn.updateQueue,o===null?(o={lastEffect:null,stores:null},Yn.updateQueue=o,o.lastEffect=a.next=a):(f=o.lastEffect,f===null?o.lastEffect=a.next=a:(m=f.next,f.next=a,a.next=m,o.lastEffect=a)),a}function Id(){return Oa().memoizedState}function Nu(a,o,f,m){var S=_a();Yn.flags|=a,S.memoizedState=wl(1|o,f,void 0,m===void 0?null:m)}function Rl(a,o,f,m){var S=Oa();m=m===void 0?null:m;var R=void 0;if(sr!==null){var k=sr.memoizedState;if(R=k.destroy,m!==null&&mi(m,k.deps)){S.memoizedState=wl(o,f,R,m);return}}Yn.flags|=a,S.memoizedState=wl(1|o,f,R,m)}function Tl(a,o){return Nu(8390656,8,a,o)}function rf(a,o){return Rl(2048,8,a,o)}function Nd(a,o){return Rl(4,2,a,o)}function _d(a,o){return Rl(4,4,a,o)}function Od(a,o){if(typeof o=="function")return a=a(),o(a),function(){o(null)};if(o!=null)return a=a(),o.current=a,function(){o.current=null}}function Lv(a,o,f){return f=f!=null?f.concat([a]):null,Rl(4,4,Od.bind(null,o,a),f)}function Il(){}function Pv(a,o){var f=Oa();o=o===void 0?null:o;var m=f.memoizedState;return m!==null&&o!==null&&mi(o,m[1])?m[0]:(f.memoizedState=[a,o],a)}function _u(a,o){var f=Oa();o=o===void 0?null:o;var m=f.memoizedState;return m!==null&&o!==null&&mi(o,m[1])?m[0]:(a=a(),f.memoizedState=[a,o],a)}function Ms(a,o,f){return xl&21?(Bi(f,o)||(f=ll(),Yn.lanes|=f,Al|=f,a.baseState=!0),o):(a.baseState&&(a.baseState=!1,Aa=!0),a.memoizedState=f)}function Ja(a,o){var f=Ut;Ut=f!==0&&4>f?f:4,a(!0);var m=Mv.transition;Mv.transition={};try{a(!1),o()}finally{Ut=f,Mv.transition=m}}function Eg(){return Oa().memoizedState}function Mn(a,o,f){var m=Yo(a);if(f={lane:m,action:f,hasEagerState:!1,eagerState:null,next:null},af(a))Ou(o,f);else if(f=vg(a,o,f,m),f!==null){var S=Ar();Zn(f,a,m,S),of(f,o,m)}}function Ad(a,o,f){var m=Yo(a),S={lane:m,action:f,hasEagerState:!1,eagerState:null,next:null};if(af(a))Ou(o,S);else{var R=a.alternate;if(a.lanes===0&&(R===null||R.lanes===0)&&(R=o.lastRenderedReducer,R!==null))try{var k=o.lastRenderedState,W=R(k,f);if(S.hasEagerState=!0,S.eagerState=W,Bi(W,k)){var Q=o.interleaved;Q===null?(S.next=S,Za(o)):(S.next=Q.next,Q.next=S),o.interleaved=S;return}}catch{}finally{}f=vg(a,o,S,m),f!==null&&(S=Ar(),Zn(f,a,m,S),of(f,o,m))}}function af(a){var o=a.alternate;return a===Yn||o!==null&&o===Yn}function Ou(a,o){bt=lr=!0;var f=a.pending;f===null?o.next=o:(o.next=f.next,f.next=o),a.pending=o}function of(a,o,f){if(f&4194240){var m=o.lanes;m&=a.pendingLanes,f|=m,o.lanes=f,Tc(a,f)}}var jd={readContext:He,useCallback:tr,useContext:tr,useEffect:tr,useImperativeHandle:tr,useInsertionEffect:tr,useLayoutEffect:tr,useMemo:tr,useReducer:tr,useRef:tr,useState:tr,useDebugValue:tr,useDeferredValue:tr,useTransition:tr,useMutableSource:tr,useSyncExternalStore:tr,useId:tr,unstable_isNewReconciler:!1},fC={readContext:He,useCallback:function(a,o){return _a().memoizedState=[a,o===void 0?null:o],a},useContext:He,useEffect:Tl,useImperativeHandle:function(a,o,f){return f=f!=null?f.concat([a]):null,Nu(4194308,4,Od.bind(null,o,a),f)},useLayoutEffect:function(a,o){return Nu(4194308,4,a,o)},useInsertionEffect:function(a,o){return Nu(4,2,a,o)},useMemo:function(a,o){var f=_a();return o=o===void 0?null:o,a=a(),f.memoizedState=[a,o],a},useReducer:function(a,o,f){var m=_a();return o=f!==void 0?f(o):o,m.memoizedState=m.baseState=o,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:o},m.queue=a,a=a.dispatch=Mn.bind(null,Yn,a),[m.memoizedState,a]},useRef:function(a){var o=_a();return a={current:a},o.memoizedState=a},useState:Td,useDebugValue:Il,useDeferredValue:function(a){return _a().memoizedState=a},useTransition:function(){var a=Td(!1),o=a[0];return a=Ja.bind(null,a[1]),_a().memoizedState=a,[o,a]},useMutableSource:function(){},useSyncExternalStore:function(a,o,f){var m=Yn,S=_a();if(Bn){if(f===void 0)throw Error(i(407));f=f()}else{if(f=o(),rr===null)throw Error(i(349));xl&30||xd(m,o,f)}S.memoizedState=f;var R={value:f,getSnapshot:o};return S.queue=R,Tl(Ed.bind(null,m,R,a),[a]),m.flags|=2048,wl(9,Sd.bind(null,m,R,f,o),void 0,null),f},useId:function(){var a=_a(),o=rr.identifierPrefix;if(Bn){var f=Pr,m=Ia;f=(m&~(1<<32-ra(m)-1)).toString(32)+f,o=":"+o+"R"+f,f=uo++,0<f&&(o+="H"+f.toString(32)),o+=":"}else f=Go++,o=":"+o+"r"+f.toString(32)+":";return a.memoizedState=o},unstable_isNewReconciler:!1},dC={readContext:He,useCallback:Pv,useContext:He,useEffect:rf,useImperativeHandle:Lv,useInsertionEffect:Nd,useLayoutEffect:_d,useMemo:_u,useReducer:tf,useRef:Id,useState:function(){return tf(El)},useDebugValue:Il,useDeferredValue:function(a){var o=Oa();return Ms(o,sr.memoizedState,a)},useTransition:function(){var a=tf(El)[0],o=Oa().memoizedState;return[a,o]},useMutableSource:bd,useSyncExternalStore:Cd,useId:Eg,unstable_isNewReconciler:!1},pC={readContext:He,useCallback:Pv,useContext:He,useEffect:rf,useImperativeHandle:Lv,useInsertionEffect:Nd,useLayoutEffect:_d,useMemo:_u,useReducer:nf,useRef:Id,useState:function(){return nf(El)},useDebugValue:Il,useDeferredValue:function(a){var o=Oa();return sr===null?o.memoizedState=a:Ms(o,sr.memoizedState,a)},useTransition:function(){var a=nf(El)[0],o=Oa().memoizedState;return[a,o]},useMutableSource:bd,useSyncExternalStore:Cd,useId:Eg,unstable_isNewReconciler:!1};function Ls(a,o){try{var f="",m=o;do f+=Ne(m),m=m.return;while(m);var S=f}catch(R){S=`
|
|
95
|
-
Error generating stack: `+
|
|
96
|
-
`+R.stack}return{value:a,source:o,stack:S,digest:null}}function Fv(a,o,f){return{value:a,source:null,stack:f??null,digest:o??null}}function sf(a,o){try{console.error(o.value)}catch(f){setTimeout(function(){throw f})}}var wg=typeof WeakMap=="function"?WeakMap:Map;function Rg(a,o,f){f=kn(-1,f),f.tag=3,f.payload={element:null};var m=o.value;return f.callback=function(){$d||($d=!0,Xv=m),sf(a,o)},f}function Tg(a,o,f){f=kn(-1,f),f.tag=3;var m=a.type.getDerivedStateFromError;if(typeof m=="function"){var S=o.value;f.payload=function(){return m(S)},f.callback=function(){sf(a,o)}}var R=a.stateNode;return R!==null&&typeof R.componentDidCatch=="function"&&(f.callback=function(){sf(a,o),typeof m!="function"&&(bi===null?bi=new Set([this]):bi.add(this));var k=o.stack;this.componentDidCatch(o.value,{componentStack:k!==null?k:""})}),f}function lf(a,o,f){var m=a.pingCache;if(m===null){m=a.pingCache=new wg;var S=new Set;m.set(o,S)}else S=m.get(o),S===void 0&&(S=new Set,m.set(o,S));S.has(f)||(S.add(f),a=EC.bind(null,a,o,f),o.then(a,a))}function Ig(a){do{var o;if((o=a.tag===13)&&(o=a.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return a;a=a.return}while(a!==null);return null}function Vv(a,o,f,m,S){return a.mode&1?(a.flags|=65536,a.lanes=S,a):(a===o?a.flags|=65536:(a.flags|=128,f.flags|=131072,f.flags&=-52805,f.tag===1&&(f.alternate===null?f.tag=17:(o=kn(-1,1),o.tag=2,js(f,o,1))),f.lanes|=1),a)}var Ng=H.ReactCurrentOwner,Aa=!1;function ur(a,o,f,m){o.child=a===null?Sg(o,null,f,m):Ru(o,a.child,f,m)}function Au(a,o,f,m,S){f=f.render;var R=o.ref;return or(o,S),m=Sl(a,o,f,m,R,S),f=ks(),a!==null&&!Aa?(o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~S,cr(a,o,S)):(Bn&&f&&dd(o),o.flags|=1,ur(a,o,m,S),o.child)}function Ps(a,o,f,m,S){if(a===null){var R=f.type;return typeof R=="function"&&!Qv(R)&&R.defaultProps===void 0&&f.compare===null&&f.defaultProps===void 0?(o.tag=15,o.type=R,Dd(a,o,R,m,S)):(a=Jd(f.type,null,m,o,o.mode,S),a.ref=o.ref,a.return=o,o.child=a)}if(R=a.child,!(a.lanes&S)){var k=R.memoizedProps;if(f=f.compare,f=f!==null?f:mu,f(k,m)&&a.ref===o.ref)return cr(a,o,S)}return o.flags|=1,a=Bs(R,m),a.ref=o.ref,a.return=o,o.child=a}function Dd(a,o,f,m,S){if(a!==null){var R=a.memoizedProps;if(mu(R,m)&&a.ref===o.ref)if(Aa=!1,o.pendingProps=m=R,(a.lanes&S)!==0)a.flags&131072&&(Aa=!0);else return o.lanes=a.lanes,cr(a,o,S)}return Dt(a,o,f,m,S)}function ja(a,o,f){var m=o.pendingProps,S=m.children,R=a!==null?a.memoizedState:null;if(m.mode==="hidden")if(!(o.mode&1))o.memoizedState={baseLanes:0,cachePool:null,transitions:null},tn(zu,Da),Da|=f;else{if(!(f&1073741824))return a=R!==null?R.baseLanes|f:f,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:a,cachePool:null,transitions:null},o.updateQueue=null,tn(zu,Da),Da|=a,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},m=R!==null?R.baseLanes:f,tn(zu,Da),Da|=m}else R!==null?(m=R.baseLanes|f,o.memoizedState=null):m=f,tn(zu,Da),Da|=m;return ur(a,o,S,f),o.child}function Nl(a,o){var f=o.ref;(a===null&&f!==null||a!==null&&a.ref!==f)&&(o.flags|=512,o.flags|=2097152)}function Dt(a,o,f,m,S){var R=vr(f)?aa:Nr.current;return R=Wa(o,R),or(o,S),f=Sl(a,o,f,m,R,S),m=ks(),a!==null&&!Aa?(o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~S,cr(a,o,S)):(Bn&&m&&dd(o),o.flags|=1,ur(a,o,f,S),o.child)}function uf(a,o,f,m,S){if(vr(f)){var R=!0;gl(o)}else R=!1;if(or(o,S),o.stateNode===null)ff(a,o),yg(o,f,m),Dv(o,f,m,S),m=!0;else if(a===null){var k=o.stateNode,W=o.memoizedProps;k.props=W;var Q=k.context,pe=f.contextType;typeof pe=="object"&&pe!==null?pe=He(pe):(pe=vr(f)?aa:Nr.current,pe=Wa(o,pe));var Me=f.getDerivedStateFromProps,Pe=typeof Me=="function"||typeof k.getSnapshotBeforeUpdate=="function";Pe||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(W!==m||Q!==pe)&&bg(o,k,m,pe),As=!1;var De=o.memoizedState;k.state=De,Jc(o,m,k,S),Q=o.memoizedState,W!==m||De!==Q||Ot.current||As?(typeof Me=="function"&&(jv(o,f,Me,m),Q=o.memoizedState),(W=As||gg(o,f,W,m,De,Q,pe))?(Pe||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(o.flags|=4194308)):(typeof k.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=m,o.memoizedState=Q),k.props=m,k.state=Q,k.context=pe,m=W):(typeof k.componentDidMount=="function"&&(o.flags|=4194308),m=!1)}else{k=o.stateNode,hg(a,o),W=o.memoizedProps,pe=o.type===o.elementType?W:Na(o.type,W),k.props=pe,Pe=o.pendingProps,De=k.context,Q=f.contextType,typeof Q=="object"&&Q!==null?Q=He(Q):(Q=vr(f)?aa:Nr.current,Q=Wa(o,Q));var Ye=f.getDerivedStateFromProps;(Me=typeof Ye=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(W!==Pe||De!==Q)&&bg(o,k,m,Q),As=!1,De=o.memoizedState,k.state=De,Jc(o,m,k,S);var nt=o.memoizedState;W!==Pe||De!==nt||Ot.current||As?(typeof Ye=="function"&&(jv(o,f,Ye,m),nt=o.memoizedState),(pe=As||gg(o,f,pe,m,De,nt,Q)||!1)?(Me||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(m,nt,Q),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(m,nt,Q)),typeof k.componentDidUpdate=="function"&&(o.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof k.componentDidUpdate!="function"||W===a.memoizedProps&&De===a.memoizedState||(o.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||W===a.memoizedProps&&De===a.memoizedState||(o.flags|=1024),o.memoizedProps=m,o.memoizedState=nt),k.props=m,k.state=nt,k.context=Q,m=pe):(typeof k.componentDidUpdate!="function"||W===a.memoizedProps&&De===a.memoizedState||(o.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||W===a.memoizedProps&&De===a.memoizedState||(o.flags|=1024),m=!1)}return kd(a,o,f,m,R,S)}function kd(a,o,f,m,S,R){Nl(a,o);var k=(o.flags&128)!==0;if(!m&&!k)return S&&fg(o,f,!1),cr(a,o,R);m=o.stateNode,Ng.current=o;var W=k&&typeof f.getDerivedStateFromError!="function"?null:m.render();return o.flags|=1,a!==null&&k?(o.child=Ru(o,a.child,null,R),o.child=Ru(o,null,W,R)):ur(a,o,W,R),o.memoizedState=m.state,S&&fg(o,f,!0),o.child}function vC(a){var o=a.stateNode;o.pendingContext?io(a,o.pendingContext,o.pendingContext!==o.context):o.context&&io(a,o.context,!1),kv(a,o.containerInfo)}function _g(a,o,f,m,S){return Cu(),hr(S),o.flags|=256,ur(a,o,f,m),o.child}var cf={dehydrated:null,treeContext:null,retryLane:0};function _l(a){return{baseLanes:a,cachePool:null,transitions:null}}function Og(a,o,f){var m=o.pendingProps,S=ut.current,R=!1,k=(o.flags&128)!==0,W;if((W=k)||(W=a!==null&&a.memoizedState===null?!1:(S&2)!==0),W?(R=!0,o.flags&=-129):(a===null||a.memoizedState!==null)&&(S|=1),tn(ut,S&1),a===null)return vd(o),a=o.memoizedState,a!==null&&(a=a.dehydrated,a!==null)?(o.mode&1?a.data==="$!"?o.lanes=8:o.lanes=1073741824:o.lanes=1,null):(k=m.children,a=m.fallback,R?(m=o.mode,R=o.child,k={mode:"hidden",children:k},!(m&1)&&R!==null?(R.childLanes=0,R.pendingProps=k):R=qd(k,m,0,null),a=Ml(a,m,f,null),R.return=o,a.return=o,R.sibling=a,o.child=R,o.child.memoizedState=_l(f),o.memoizedState=cf,a):Md(o,k));if(S=a.memoizedState,S!==null&&(W=S.dehydrated,W!==null))return Bv(a,o,k,m,W,S,f);if(R){R=m.fallback,k=o.mode,S=a.child,W=S.sibling;var Q={mode:"hidden",children:m.children};return!(k&1)&&o.child!==S?(m=o.child,m.childLanes=0,m.pendingProps=Q,o.deletions=null):(m=Bs(S,Q),m.subtreeFlags=S.subtreeFlags&14680064),W!==null?R=Bs(W,R):(R=Ml(R,k,f,null),R.flags|=2),R.return=o,m.return=o,m.sibling=R,o.child=m,m=R,R=o.child,k=a.child.memoizedState,k=k===null?_l(f):{baseLanes:k.baseLanes|f,cachePool:null,transitions:k.transitions},R.memoizedState=k,R.childLanes=a.childLanes&~f,o.memoizedState=cf,m}return R=a.child,a=R.sibling,m=Bs(R,{mode:"visible",children:m.children}),!(o.mode&1)&&(m.lanes=f),m.return=o,m.sibling=null,a!==null&&(f=o.deletions,f===null?(o.deletions=[a],o.flags|=16):f.push(a)),o.child=m,o.memoizedState=null,m}function Md(a,o){return o=qd({mode:"visible",children:o},a.mode,0,null),o.return=a,a.child=o}function Ld(a,o,f,m){return m!==null&&hr(m),Ru(o,a.child,null,f),a=Md(o,o.pendingProps.children),a.flags|=2,o.memoizedState=null,a}function Bv(a,o,f,m,S,R,k){if(f)return o.flags&256?(o.flags&=-257,m=Fv(Error(i(422))),Ld(a,o,k,m)):o.memoizedState!==null?(o.child=a.child,o.flags|=128,null):(R=m.fallback,S=o.mode,m=qd({mode:"visible",children:m.children},S,0,null),R=Ml(R,S,k,null),R.flags|=2,m.return=o,R.return=o,m.sibling=R,o.child=m,o.mode&1&&Ru(o,a.child,null,k),o.child.memoizedState=_l(k),o.memoizedState=cf,R);if(!(o.mode&1))return Ld(a,o,k,null);if(S.data==="$!"){if(m=S.nextSibling&&S.nextSibling.dataset,m)var W=m.dgst;return m=W,R=Error(i(419)),m=Fv(R,m,void 0),Ld(a,o,k,m)}if(W=(k&a.childLanes)!==0,Aa||W){if(m=rr,m!==null){switch(k&-k){case 4:S=2;break;case 16:S=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:S=32;break;case 536870912:S=268435456;break;default:S=0}S=S&(m.suspendedLanes|k)?0:S,S!==0&&S!==R.retryLane&&(R.retryLane=S,$o(a,S),Zn(m,a,S,-1))}return mf(),m=Fv(Error(i(421))),Ld(a,o,k,m)}return S.data==="$?"?(o.flags|=128,o.child=a.child,o=qv.bind(null,a),S._reactRetry=o,null):(a=R.treeContext,Ya=Ga(S.nextSibling),Xa=o,Bn=!0,pi=null,a!==null&&(Ra[Ta++]=Ia,Ra[Ta++]=Pr,Ra[Ta++]=Ui,Ia=a.id,Pr=a.overflow,Ui=o),o=Md(o,m.children),o.flags|=4096,o)}function Ag(a,o,f){a.lanes|=o;var m=a.alternate;m!==null&&(m.lanes|=o),Os(a.return,o,f)}function Pd(a,o,f,m,S){var R=a.memoizedState;R===null?a.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:m,tail:f,tailMode:S}:(R.isBackwards=o,R.rendering=null,R.renderingStartTime=0,R.last=m,R.tail=f,R.tailMode=S)}function zv(a,o,f){var m=o.pendingProps,S=m.revealOrder,R=m.tail;if(ur(a,o,m.children,f),m=ut.current,m&2)m=m&1|2,o.flags|=128;else{if(a!==null&&a.flags&128)e:for(a=o.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&Ag(a,f,o);else if(a.tag===19)Ag(a,f,o);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break e;for(;a.sibling===null;){if(a.return===null||a.return===o)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}m&=1}if(tn(ut,m),!(o.mode&1))o.memoizedState=null;else switch(S){case"forwards":for(f=o.child,S=null;f!==null;)a=f.alternate,a!==null&&Qt(a)===null&&(S=f),f=f.sibling;f=S,f===null?(S=o.child,o.child=null):(S=f.sibling,f.sibling=null),Pd(o,!1,S,f,R);break;case"backwards":for(f=null,S=o.child,o.child=null;S!==null;){if(a=S.alternate,a!==null&&Qt(a)===null){o.child=S;break}a=S.sibling,S.sibling=f,f=S,S=a}Pd(o,!0,f,null,R);break;case"together":Pd(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function ff(a,o){!(o.mode&1)&&a!==null&&(a.alternate=null,o.alternate=null,o.flags|=2)}function cr(a,o,f){if(a!==null&&(o.dependencies=a.dependencies),Al|=o.lanes,!(f&o.childLanes))return null;if(a!==null&&o.child!==a.child)throw Error(i(153));if(o.child!==null){for(a=o.child,f=Bs(a,a.pendingProps),o.child=f,f.return=o;a.sibling!==null;)a=a.sibling,f=f.sibling=Bs(a,a.pendingProps),f.return=o;f.sibling=null}return o.child}function Wo(a,o,f){switch(o.tag){case 3:vC(o),Cu();break;case 5:yd(o);break;case 1:vr(o.type)&&gl(o);break;case 4:kv(o,o.stateNode.containerInfo);break;case 10:var m=o.type._context,S=o.memoizedProps.value;tn(xu,m._currentValue),m._currentValue=S;break;case 13:if(m=o.memoizedState,m!==null)return m.dehydrated!==null?(tn(ut,ut.current&1),o.flags|=128,null):f&o.child.childLanes?Og(a,o,f):(tn(ut,ut.current&1),a=cr(a,o,f),a!==null?a.sibling:null);tn(ut,ut.current&1);break;case 19:if(m=(f&o.childLanes)!==0,a.flags&128){if(m)return zv(a,o,f);o.flags|=128}if(S=o.memoizedState,S!==null&&(S.rendering=null,S.tail=null,S.lastEffect=null),tn(ut,ut.current),m)break;return null;case 22:case 23:return o.lanes=0,ja(a,o,f)}return cr(a,o,f)}var co,ju,Du,gi;co=function(a,o){for(var f=o.child;f!==null;){if(f.tag===5||f.tag===6)a.appendChild(f.stateNode);else if(f.tag!==4&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===o)break;for(;f.sibling===null;){if(f.return===null||f.return===o)return;f=f.return}f.sibling.return=f.return,f=f.sibling}},ju=function(){},Du=function(a,o,f,m){var S=a.memoizedProps;if(S!==m){a=o.stateNode,Ds(lo.current);var R=null;switch(f){case"input":S=It(a,S),m=It(a,m),R=[];break;case"select":S=G({},S,{value:void 0}),m=G({},m,{value:void 0}),R=[];break;case"textarea":S=Qn(a,S),m=Qn(a,m),R=[];break;default:typeof S.onClick!="function"&&typeof m.onClick=="function"&&(a.onclick=ud)}en(f,m);var k;f=null;for(pe in S)if(!m.hasOwnProperty(pe)&&S.hasOwnProperty(pe)&&S[pe]!=null)if(pe==="style"){var W=S[pe];for(k in W)W.hasOwnProperty(k)&&(f||(f={}),f[k]="")}else pe!=="dangerouslySetInnerHTML"&&pe!=="children"&&pe!=="suppressContentEditableWarning"&&pe!=="suppressHydrationWarning"&&pe!=="autoFocus"&&(l.hasOwnProperty(pe)?R||(R=[]):(R=R||[]).push(pe,null));for(pe in m){var Q=m[pe];if(W=S!=null?S[pe]:void 0,m.hasOwnProperty(pe)&&Q!==W&&(Q!=null||W!=null))if(pe==="style")if(W){for(k in W)!W.hasOwnProperty(k)||Q&&Q.hasOwnProperty(k)||(f||(f={}),f[k]="");for(k in Q)Q.hasOwnProperty(k)&&W[k]!==Q[k]&&(f||(f={}),f[k]=Q[k])}else f||(R||(R=[]),R.push(pe,f)),f=Q;else pe==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,W=W?W.__html:void 0,Q!=null&&W!==Q&&(R=R||[]).push(pe,Q)):pe==="children"?typeof Q!="string"&&typeof Q!="number"||(R=R||[]).push(pe,""+Q):pe!=="suppressContentEditableWarning"&&pe!=="suppressHydrationWarning"&&(l.hasOwnProperty(pe)?(Q!=null&&pe==="onScroll"&&Tn("scroll",a),R||W===Q||(R=[])):(R=R||[]).push(pe,Q))}f&&(R=R||[]).push("style",f);var pe=R;(o.updateQueue=pe)&&(o.flags|=4)}},gi=function(a,o,f,m){f!==m&&(o.flags|=4)};function nr(a,o){if(!Bn)switch(a.tailMode){case"hidden":o=a.tail;for(var f=null;o!==null;)o.alternate!==null&&(f=o),o=o.sibling;f===null?a.tail=null:f.sibling=null;break;case"collapsed":f=a.tail;for(var m=null;f!==null;)f.alternate!==null&&(m=f),f=f.sibling;m===null?o||a.tail===null?a.tail=null:a.tail.sibling=null:m.sibling=null}}function qr(a){var o=a.alternate!==null&&a.alternate.child===a.child,f=0,m=0;if(o)for(var S=a.child;S!==null;)f|=S.lanes|S.childLanes,m|=S.subtreeFlags&14680064,m|=S.flags&14680064,S.return=a,S=S.sibling;else for(S=a.child;S!==null;)f|=S.lanes|S.childLanes,m|=S.subtreeFlags,m|=S.flags,S.return=a,S=S.sibling;return a.subtreeFlags|=m,a.childLanes=f,o}function hC(a,o,f){var m=o.pendingProps;switch(pd(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qr(o),null;case 1:return vr(o.type)&&wa(),qr(o),null;case 3:return m=o.stateNode,Iu(),st(Ot),st(Nr),hi(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(a===null||a.child===null)&&(hd(o)?o.flags|=4:a===null||a.memoizedState.isDehydrated&&!(o.flags&256)||(o.flags|=1024,pi!==null&&(Yv(pi),pi=null))),ju(a,o),qr(o),null;case 5:mt(o);var S=Ds(Kc.current);if(f=o.type,a!==null&&o.stateNode!=null)Du(a,o,f,m,S),a.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!m){if(o.stateNode===null)throw Error(i(166));return qr(o),null}if(a=Ds(lo.current),hd(o)){m=o.stateNode,f=o.type;var R=o.memoizedProps;switch(m[ui]=o,m[Yc]=R,a=(o.mode&1)!==0,f){case"dialog":Tn("cancel",m),Tn("close",m);break;case"iframe":case"object":case"embed":Tn("load",m);break;case"video":case"audio":for(S=0;S<Vo.length;S++)Tn(Vo[S],m);break;case"source":Tn("error",m);break;case"img":case"image":case"link":Tn("error",m),Tn("load",m);break;case"details":Tn("toggle",m);break;case"input":pt(m,R),Tn("invalid",m);break;case"select":m._wrapperState={wasMultiple:!!R.multiple},Tn("invalid",m);break;case"textarea":Rr(m,R),Tn("invalid",m)}en(f,R),S=null;for(var k in R)if(R.hasOwnProperty(k)){var W=R[k];k==="children"?typeof W=="string"?m.textContent!==W&&(R.suppressHydrationWarning!==!0&&$c(m.textContent,W,a),S=["children",W]):typeof W=="number"&&m.textContent!==""+W&&(R.suppressHydrationWarning!==!0&&$c(m.textContent,W,a),S=["children",""+W]):l.hasOwnProperty(k)&&W!=null&&k==="onScroll"&&Tn("scroll",m)}switch(f){case"input":tt(m),sn(m,R,!0);break;case"textarea":tt(m),Tr(m);break;case"select":case"option":break;default:typeof R.onClick=="function"&&(m.onclick=ud)}m=S,o.updateQueue=m,m!==null&&(o.flags|=4)}else{k=S.nodeType===9?S:S.ownerDocument,a==="http://www.w3.org/1999/xhtml"&&(a=xt(f)),a==="http://www.w3.org/1999/xhtml"?f==="script"?(a=k.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild)):typeof m.is=="string"?a=k.createElement(f,{is:m.is}):(a=k.createElement(f),f==="select"&&(k=a,m.multiple?k.multiple=!0:m.size&&(k.size=m.size))):a=k.createElementNS(a,f),a[ui]=o,a[Yc]=m,co(a,o,!1,!1),o.stateNode=a;e:{switch(k=ir(f,m),f){case"dialog":Tn("cancel",a),Tn("close",a),S=m;break;case"iframe":case"object":case"embed":Tn("load",a),S=m;break;case"video":case"audio":for(S=0;S<Vo.length;S++)Tn(Vo[S],a);S=m;break;case"source":Tn("error",a),S=m;break;case"img":case"image":case"link":Tn("error",a),Tn("load",a),S=m;break;case"details":Tn("toggle",a),S=m;break;case"input":pt(a,m),S=It(a,m),Tn("invalid",a);break;case"option":S=m;break;case"select":a._wrapperState={wasMultiple:!!m.multiple},S=G({},m,{value:void 0}),Tn("invalid",a);break;case"textarea":Rr(a,m),S=Qn(a,m),Tn("invalid",a);break;default:S=m}en(f,S),W=S;for(R in W)if(W.hasOwnProperty(R)){var Q=W[R];R==="style"?Mt(a,Q):R==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,Q!=null&&Ba(a,Q)):R==="children"?typeof Q=="string"?(f!=="textarea"||Q!=="")&&za(a,Q):typeof Q=="number"&&za(a,""+Q):R!=="suppressContentEditableWarning"&&R!=="suppressHydrationWarning"&&R!=="autoFocus"&&(l.hasOwnProperty(R)?Q!=null&&R==="onScroll"&&Tn("scroll",a):Q!=null&&V(a,R,Q,k))}switch(f){case"input":tt(a),sn(a,m,!1);break;case"textarea":tt(a),Tr(a);break;case"option":m.value!=null&&a.setAttribute("value",""+we(m.value));break;case"select":a.multiple=!!m.multiple,R=m.value,R!=null?Cn(a,!!m.multiple,R,!1):m.defaultValue!=null&&Cn(a,!!m.multiple,m.defaultValue,!0);break;default:typeof S.onClick=="function"&&(a.onclick=ud)}switch(f){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break e;case"img":m=!0;break e;default:m=!1}}m&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return qr(o),null;case 6:if(a&&o.stateNode!=null)gi(a,o,a.memoizedProps,m);else{if(typeof m!="string"&&o.stateNode===null)throw Error(i(166));if(f=Ds(Kc.current),Ds(lo.current),hd(o)){if(m=o.stateNode,f=o.memoizedProps,m[ui]=o,(R=m.nodeValue!==f)&&(a=Xa,a!==null))switch(a.tag){case 3:$c(m.nodeValue,f,(a.mode&1)!==0);break;case 5:a.memoizedProps.suppressHydrationWarning!==!0&&$c(m.nodeValue,f,(a.mode&1)!==0)}R&&(o.flags|=4)}else m=(f.nodeType===9?f:f.ownerDocument).createTextNode(m),m[ui]=o,o.stateNode=m}return qr(o),null;case 13:if(st(ut),m=o.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(Bn&&Ya!==null&&o.mode&1&&!(o.flags&128))pg(),Cu(),o.flags|=98560,R=!1;else if(R=hd(o),m!==null&&m.dehydrated!==null){if(a===null){if(!R)throw Error(i(318));if(R=o.memoizedState,R=R!==null?R.dehydrated:null,!R)throw Error(i(317));R[ui]=o}else Cu(),!(o.flags&128)&&(o.memoizedState=null),o.flags|=4;qr(o),R=!1}else pi!==null&&(Yv(pi),pi=null),R=!0;if(!R)return o.flags&65536?o:null}return o.flags&128?(o.lanes=f,o):(m=m!==null,m!==(a!==null&&a.memoizedState!==null)&&m&&(o.child.flags|=8192,o.mode&1&&(a===null||ut.current&1?Cr===0&&(Cr=3):mf())),o.updateQueue!==null&&(o.flags|=4),qr(o),null);case 4:return Iu(),ju(a,o),a===null&&ro(o.stateNode.containerInfo),qr(o),null;case 10:return Ov(o.type._context),qr(o),null;case 17:return vr(o.type)&&wa(),qr(o),null;case 19:if(st(ut),R=o.memoizedState,R===null)return qr(o),null;if(m=(o.flags&128)!==0,k=R.rendering,k===null)if(m)nr(R,!1);else{if(Cr!==0||a!==null&&a.flags&128)for(a=o.child;a!==null;){if(k=Qt(a),k!==null){for(o.flags|=128,nr(R,!1),m=k.updateQueue,m!==null&&(o.updateQueue=m,o.flags|=4),o.subtreeFlags=0,m=f,f=o.child;f!==null;)R=f,a=m,R.flags&=14680066,k=R.alternate,k===null?(R.childLanes=0,R.lanes=a,R.child=null,R.subtreeFlags=0,R.memoizedProps=null,R.memoizedState=null,R.updateQueue=null,R.dependencies=null,R.stateNode=null):(R.childLanes=k.childLanes,R.lanes=k.lanes,R.child=k.child,R.subtreeFlags=0,R.deletions=null,R.memoizedProps=k.memoizedProps,R.memoizedState=k.memoizedState,R.updateQueue=k.updateQueue,R.type=k.type,a=k.dependencies,R.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),f=f.sibling;return tn(ut,ut.current&1|2),o.child}a=a.sibling}R.tail!==null&&Dn()>Uu&&(o.flags|=128,m=!0,nr(R,!1),o.lanes=4194304)}else{if(!m)if(a=Qt(k),a!==null){if(o.flags|=128,m=!0,f=a.updateQueue,f!==null&&(o.updateQueue=f,o.flags|=4),nr(R,!0),R.tail===null&&R.tailMode==="hidden"&&!k.alternate&&!Bn)return qr(o),null}else 2*Dn()-R.renderingStartTime>Uu&&f!==1073741824&&(o.flags|=128,m=!0,nr(R,!1),o.lanes=4194304);R.isBackwards?(k.sibling=o.child,o.child=k):(f=R.last,f!==null?f.sibling=k:o.child=k,R.last=k)}return R.tail!==null?(o=R.tail,R.rendering=o,R.tail=o.sibling,R.renderingStartTime=Dn(),o.sibling=null,f=ut.current,tn(ut,m?f&1|2:f&1),o):(qr(o),null);case 22:case 23:return Yd(),m=o.memoizedState!==null,a!==null&&a.memoizedState!==null!==m&&(o.flags|=8192),m&&o.mode&1?Da&1073741824&&(qr(o),o.subtreeFlags&6&&(o.flags|=8192)):qr(o),null;case 24:return null;case 25:return null}throw Error(i(156,o.tag))}function mC(a,o){switch(pd(o),o.tag){case 1:return vr(o.type)&&wa(),a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 3:return Iu(),st(Ot),st(Nr),hi(),a=o.flags,a&65536&&!(a&128)?(o.flags=a&-65537|128,o):null;case 5:return mt(o),null;case 13:if(st(ut),a=o.memoizedState,a!==null&&a.dehydrated!==null){if(o.alternate===null)throw Error(i(340));Cu()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 19:return st(ut),null;case 4:return Iu(),null;case 10:return Ov(o.type._context),null;case 22:case 23:return Yd(),null;case 24:return null;default:return null}}var ku=!1,Fr=!1,Fd=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function Mu(a,o){var f=a.ref;if(f!==null)if(typeof f=="function")try{f(null)}catch(m){ar(a,o,m)}else f.current=null}function Hv(a,o,f){try{f()}catch(m){ar(a,o,m)}}var Vd=!1;function gC(a,o){if(bv=cu,a=Km(),Fc(a)){if("selectionStart"in a)var f={start:a.selectionStart,end:a.selectionEnd};else e:{f=(f=a.ownerDocument)&&f.defaultView||window;var m=f.getSelection&&f.getSelection();if(m&&m.rangeCount!==0){f=m.anchorNode;var S=m.anchorOffset,R=m.focusNode;m=m.focusOffset;try{f.nodeType,R.nodeType}catch{f=null;break e}var k=0,W=-1,Q=-1,pe=0,Me=0,Pe=a,De=null;t:for(;;){for(var Ye;Pe!==f||S!==0&&Pe.nodeType!==3||(W=k+S),Pe!==R||m!==0&&Pe.nodeType!==3||(Q=k+m),Pe.nodeType===3&&(k+=Pe.nodeValue.length),(Ye=Pe.firstChild)!==null;)De=Pe,Pe=Ye;for(;;){if(Pe===a)break t;if(De===f&&++pe===S&&(W=k),De===R&&++Me===m&&(Q=k),(Ye=Pe.nextSibling)!==null)break;Pe=De,De=Pe.parentNode}Pe=Ye}f=W===-1||Q===-1?null:{start:W,end:Q}}else f=null}f=f||{start:0,end:0}}else f=null;for(Cv={focusedElem:a,selectionRange:f},cu=!1,Ke=o;Ke!==null;)if(o=Ke,a=o.child,(o.subtreeFlags&1028)!==0&&a!==null)a.return=o,Ke=a;else for(;Ke!==null;){o=Ke;try{var nt=o.alternate;if(o.flags&1024)switch(o.tag){case 0:case 11:case 15:break;case 1:if(nt!==null){var ot=nt.memoizedProps,fr=nt.memoizedState,ae=o.stateNode,ee=ae.getSnapshotBeforeUpdate(o.elementType===o.type?ot:Na(o.type,ot),fr);ae.__reactInternalSnapshotBeforeUpdate=ee}break;case 3:var se=o.stateNode.containerInfo;se.nodeType===1?se.textContent="":se.nodeType===9&&se.documentElement&&se.removeChild(se.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(ze){ar(o,o.return,ze)}if(a=o.sibling,a!==null){a.return=o.return,Ke=a;break}Ke=o.return}return nt=Vd,Vd=!1,nt}function Lu(a,o,f){var m=o.updateQueue;if(m=m!==null?m.lastEffect:null,m!==null){var S=m=m.next;do{if((S.tag&a)===a){var R=S.destroy;S.destroy=void 0,R!==void 0&&Hv(o,f,R)}S=S.next}while(S!==m)}}function Bd(a,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var f=o=o.next;do{if((f.tag&a)===a){var m=f.create;f.destroy=m()}f=f.next}while(f!==o)}}function zd(a){var o=a.ref;if(o!==null){var f=a.stateNode;switch(a.tag){case 5:a=f;break;default:a=f}typeof o=="function"?o(a):o.current=a}}function jg(a){var o=a.alternate;o!==null&&(a.alternate=null,jg(o)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(o=a.stateNode,o!==null&&(delete o[ui],delete o[Yc],delete o[wv],delete o[lC],delete o[uC])),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function Uv(a){return a.tag===5||a.tag===3||a.tag===4}function Dg(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||Uv(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function df(a,o,f){var m=a.tag;if(m===5||m===6)a=a.stateNode,o?f.nodeType===8?f.parentNode.insertBefore(a,o):f.insertBefore(a,o):(f.nodeType===8?(o=f.parentNode,o.insertBefore(a,f)):(o=f,o.appendChild(a)),f=f._reactRootContainer,f!=null||o.onclick!==null||(o.onclick=ud));else if(m!==4&&(a=a.child,a!==null))for(df(a,o,f),a=a.sibling;a!==null;)df(a,o,f),a=a.sibling}function Pu(a,o,f){var m=a.tag;if(m===5||m===6)a=a.stateNode,o?f.insertBefore(a,o):f.appendChild(a);else if(m!==4&&(a=a.child,a!==null))for(Pu(a,o,f),a=a.sibling;a!==null;)Pu(a,o,f),a=a.sibling}var Un=null,_r=!1;function ia(a,o,f){for(f=f.child;f!==null;)Fu(a,o,f),f=f.sibling}function Fu(a,o,f){if(Ca&&typeof Ca.onCommitFiberUnmount=="function")try{Ca.onCommitFiberUnmount(ms,f)}catch{}switch(f.tag){case 5:Fr||Mu(f,o);case 6:var m=Un,S=_r;Un=null,ia(a,o,f),Un=m,_r=S,Un!==null&&(_r?(a=Un,f=f.stateNode,a.nodeType===8?a.parentNode.removeChild(f):a.removeChild(f)):Un.removeChild(f.stateNode));break;case 18:Un!==null&&(_r?(a=Un,f=f.stateNode,a.nodeType===8?Ev(a.parentNode,f):a.nodeType===1&&Ev(a,f),li(a)):Ev(Un,f.stateNode));break;case 4:m=Un,S=_r,Un=f.stateNode.containerInfo,_r=!0,ia(a,o,f),Un=m,_r=S;break;case 0:case 11:case 14:case 15:if(!Fr&&(m=f.updateQueue,m!==null&&(m=m.lastEffect,m!==null))){S=m=m.next;do{var R=S,k=R.destroy;R=R.tag,k!==void 0&&(R&2||R&4)&&Hv(f,o,k),S=S.next}while(S!==m)}ia(a,o,f);break;case 1:if(!Fr&&(Mu(f,o),m=f.stateNode,typeof m.componentWillUnmount=="function"))try{m.props=f.memoizedProps,m.state=f.memoizedState,m.componentWillUnmount()}catch(W){ar(f,o,W)}ia(a,o,f);break;case 21:ia(a,o,f);break;case 22:f.mode&1?(Fr=(m=Fr)||f.memoizedState!==null,ia(a,o,f),Fr=m):ia(a,o,f);break;default:ia(a,o,f)}}function Vu(a){var o=a.updateQueue;if(o!==null){a.updateQueue=null;var f=a.stateNode;f===null&&(f=a.stateNode=new Fd),o.forEach(function(m){var S=wC.bind(null,a,m);f.has(m)||(f.add(m),m.then(S,S))})}}function Or(a,o){var f=o.deletions;if(f!==null)for(var m=0;m<f.length;m++){var S=f[m];try{var R=a,k=o,W=k;e:for(;W!==null;){switch(W.tag){case 5:Un=W.stateNode,_r=!1;break e;case 3:Un=W.stateNode.containerInfo,_r=!0;break e;case 4:Un=W.stateNode.containerInfo,_r=!0;break e}W=W.return}if(Un===null)throw Error(i(160));Fu(R,k,S),Un=null,_r=!1;var Q=S.alternate;Q!==null&&(Q.return=null),S.return=null}catch(pe){ar(S,o,pe)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)kg(o,a),o=o.sibling}function kg(a,o){var f=a.alternate,m=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:if(Or(o,a),fo(a),m&4){try{Lu(3,a,a.return),Bd(3,a)}catch(ot){ar(a,a.return,ot)}try{Lu(5,a,a.return)}catch(ot){ar(a,a.return,ot)}}break;case 1:Or(o,a),fo(a),m&512&&f!==null&&Mu(f,f.return);break;case 5:if(Or(o,a),fo(a),m&512&&f!==null&&Mu(f,f.return),a.flags&32){var S=a.stateNode;try{za(S,"")}catch(ot){ar(a,a.return,ot)}}if(m&4&&(S=a.stateNode,S!=null)){var R=a.memoizedProps,k=f!==null?f.memoizedProps:R,W=a.type,Q=a.updateQueue;if(a.updateQueue=null,Q!==null)try{W==="input"&&R.type==="radio"&&R.name!=null&&Kt(S,R),ir(W,k);var pe=ir(W,R);for(k=0;k<Q.length;k+=2){var Me=Q[k],Pe=Q[k+1];Me==="style"?Mt(S,Pe):Me==="dangerouslySetInnerHTML"?Ba(S,Pe):Me==="children"?za(S,Pe):V(S,Me,Pe,pe)}switch(W){case"input":on(S,R);break;case"textarea":$n(S,R);break;case"select":var De=S._wrapperState.wasMultiple;S._wrapperState.wasMultiple=!!R.multiple;var Ye=R.value;Ye!=null?Cn(S,!!R.multiple,Ye,!1):De!==!!R.multiple&&(R.defaultValue!=null?Cn(S,!!R.multiple,R.defaultValue,!0):Cn(S,!!R.multiple,R.multiple?[]:"",!1))}S[Yc]=R}catch(ot){ar(a,a.return,ot)}}break;case 6:if(Or(o,a),fo(a),m&4){if(a.stateNode===null)throw Error(i(162));S=a.stateNode,R=a.memoizedProps;try{S.nodeValue=R}catch(ot){ar(a,a.return,ot)}}break;case 3:if(Or(o,a),fo(a),m&4&&f!==null&&f.memoizedState.isDehydrated)try{li(o.containerInfo)}catch(ot){ar(a,a.return,ot)}break;case 4:Or(o,a),fo(a);break;case 13:Or(o,a),fo(a),S=a.child,S.flags&8192&&(R=S.memoizedState!==null,S.stateNode.isHidden=R,!R||S.alternate!==null&&S.alternate.memoizedState!==null||(Ud=Dn())),m&4&&Vu(a);break;case 22:if(Me=f!==null&&f.memoizedState!==null,a.mode&1?(Fr=(pe=Fr)||Me,Or(o,a),Fr=pe):Or(o,a),fo(a),m&8192){if(pe=a.memoizedState!==null,(a.stateNode.isHidden=pe)&&!Me&&a.mode&1)for(Ke=a,Me=a.child;Me!==null;){for(Pe=Ke=Me;Ke!==null;){switch(De=Ke,Ye=De.child,De.tag){case 0:case 11:case 14:case 15:Lu(4,De,De.return);break;case 1:Mu(De,De.return);var nt=De.stateNode;if(typeof nt.componentWillUnmount=="function"){m=De,f=De.return;try{o=m,nt.props=o.memoizedProps,nt.state=o.memoizedState,nt.componentWillUnmount()}catch(ot){ar(m,f,ot)}}break;case 5:Mu(De,De.return);break;case 22:if(De.memoizedState!==null){Mg(Pe);continue}}Ye!==null?(Ye.return=De,Ke=Ye):Mg(Pe)}Me=Me.sibling}e:for(Me=null,Pe=a;;){if(Pe.tag===5){if(Me===null){Me=Pe;try{S=Pe.stateNode,pe?(R=S.style,typeof R.setProperty=="function"?R.setProperty("display","none","important"):R.display="none"):(W=Pe.stateNode,Q=Pe.memoizedProps.style,k=Q!=null&&Q.hasOwnProperty("display")?Q.display:null,W.style.display=dt("display",k))}catch(ot){ar(a,a.return,ot)}}}else if(Pe.tag===6){if(Me===null)try{Pe.stateNode.nodeValue=pe?"":Pe.memoizedProps}catch(ot){ar(a,a.return,ot)}}else if((Pe.tag!==22&&Pe.tag!==23||Pe.memoizedState===null||Pe===a)&&Pe.child!==null){Pe.child.return=Pe,Pe=Pe.child;continue}if(Pe===a)break e;for(;Pe.sibling===null;){if(Pe.return===null||Pe.return===a)break e;Me===Pe&&(Me=null),Pe=Pe.return}Me===Pe&&(Me=null),Pe.sibling.return=Pe.return,Pe=Pe.sibling}}break;case 19:Or(o,a),fo(a),m&4&&Vu(a);break;case 21:break;default:Or(o,a),fo(a)}}function fo(a){var o=a.flags;if(o&2){try{e:{for(var f=a.return;f!==null;){if(Uv(f)){var m=f;break e}f=f.return}throw Error(i(160))}switch(m.tag){case 5:var S=m.stateNode;m.flags&32&&(za(S,""),m.flags&=-33);var R=Dg(a);Pu(a,R,S);break;case 3:case 4:var k=m.stateNode.containerInfo,W=Dg(a);df(a,W,k);break;default:throw Error(i(161))}}catch(Q){ar(a,a.return,Q)}a.flags&=-3}o&4096&&(a.flags&=-4097)}function yC(a,o,f){Ke=a,$v(a)}function $v(a,o,f){for(var m=(a.mode&1)!==0;Ke!==null;){var S=Ke,R=S.child;if(S.tag===22&&m){var k=S.memoizedState!==null||ku;if(!k){var W=S.alternate,Q=W!==null&&W.memoizedState!==null||Fr;W=ku;var pe=Fr;if(ku=k,(Fr=Q)&&!pe)for(Ke=S;Ke!==null;)k=Ke,Q=k.child,k.tag===22&&k.memoizedState!==null?Gv(S):Q!==null?(Q.return=k,Ke=Q):Gv(S);for(;R!==null;)Ke=R,$v(R),R=R.sibling;Ke=S,ku=W,Fr=pe}Bu(a)}else S.subtreeFlags&8772&&R!==null?(R.return=S,Ke=R):Bu(a)}}function Bu(a){for(;Ke!==null;){var o=Ke;if(o.flags&8772){var f=o.alternate;try{if(o.flags&8772)switch(o.tag){case 0:case 11:case 15:Fr||Bd(5,o);break;case 1:var m=o.stateNode;if(o.flags&4&&!Fr)if(f===null)m.componentDidMount();else{var S=o.elementType===o.type?f.memoizedProps:Na(o.type,f.memoizedProps);m.componentDidUpdate(S,f.memoizedState,m.__reactInternalSnapshotBeforeUpdate)}var R=o.updateQueue;R!==null&&Eu(o,R,m);break;case 3:var k=o.updateQueue;if(k!==null){if(f=null,o.child!==null)switch(o.child.tag){case 5:f=o.child.stateNode;break;case 1:f=o.child.stateNode}Eu(o,k,f)}break;case 5:var W=o.stateNode;if(f===null&&o.flags&4){f=W;var Q=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":Q.autoFocus&&f.focus();break;case"img":Q.src&&(f.src=Q.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var pe=o.alternate;if(pe!==null){var Me=pe.memoizedState;if(Me!==null){var Pe=Me.dehydrated;Pe!==null&&li(Pe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}Fr||o.flags&512&&zd(o)}catch(De){ar(o,o.return,De)}}if(o===a){Ke=null;break}if(f=o.sibling,f!==null){f.return=o.return,Ke=f;break}Ke=o.return}}function Mg(a){for(;Ke!==null;){var o=Ke;if(o===a){Ke=null;break}var f=o.sibling;if(f!==null){f.return=o.return,Ke=f;break}Ke=o.return}}function Gv(a){for(;Ke!==null;){var o=Ke;try{switch(o.tag){case 0:case 11:case 15:var f=o.return;try{Bd(4,o)}catch(Q){ar(o,f,Q)}break;case 1:var m=o.stateNode;if(typeof m.componentDidMount=="function"){var S=o.return;try{m.componentDidMount()}catch(Q){ar(o,S,Q)}}var R=o.return;try{zd(o)}catch(Q){ar(o,R,Q)}break;case 5:var k=o.return;try{zd(o)}catch(Q){ar(o,k,Q)}}}catch(Q){ar(o,o.return,Q)}if(o===a){Ke=null;break}var W=o.sibling;if(W!==null){W.return=o.return,Ke=W;break}Ke=o.return}}var bC=Math.ceil,Ol=H.ReactCurrentDispatcher,Hd=H.ReactCurrentOwner,yi=H.ReactCurrentBatchConfig,zt=0,rr=null,zn=null,br=0,Da=0,zu=In(0),Cr=0,pf=null,Al=0,Hu=0,Wv=0,Fs=null,Qr=null,Ud=0,Uu=1/0,Xo=null,$d=!1,Xv=null,bi=null,$u=!1,Ci=null,Gd=0,vf=0,Wd=null,hf=-1,jl=0;function Ar(){return zt&6?Dn():hf!==-1?hf:hf=Dn()}function Yo(a){return a.mode&1?zt&2&&br!==0?br&-br:cC.transition!==null?(jl===0&&(jl=ll()),jl):(a=Ut,a!==0||(a=window.event,a=a===void 0?16:Oc(a.type)),a):1}function Zn(a,o,f,m){if(50<vf)throw vf=0,Wd=null,Error(i(185));ys(a,f,m),(!(zt&2)||a!==rr)&&(a===rr&&(!(zt&2)&&(Hu|=f),Cr===4&&po(a,br)),xr(a,m),f===1&&zt===0&&!(o.mode&1)&&(Uu=Dn()+500,Is&&oo()))}function xr(a,o){var f=a.callbackNode;gs(a,o);var m=eo(a,a===rr?br:0);if(m===0)f!==null&&jn(f),a.callbackNode=null,a.callbackPriority=0;else if(o=m&-m,a.callbackPriority!==o){if(f!=null&&jn(f),o===1)a.tag===0?dg(Gu.bind(null,a)):fd(Gu.bind(null,a)),cg(function(){!(zt&6)&&oo()}),f=null;else{switch(Ic(m)){case 1:f=Cc;break;case 4:f=Ki;break;case 16:f=Lt;break;case 536870912:f=Oo;break;default:f=Lt}f=Ug(f,Xd.bind(null,a))}a.callbackPriority=o,a.callbackNode=f}}function Xd(a,o){if(hf=-1,jl=0,zt&6)throw Error(i(327));var f=a.callbackNode;if(Wu()&&a.callbackNode!==f)return null;var m=eo(a,a===rr?br:0);if(m===0)return null;if(m&30||m&a.expiredLanes||o)o=Zd(a,m);else{o=m;var S=zt;zt|=2;var R=Pg();(rr!==a||br!==o)&&(Xo=null,Uu=Dn()+500,kl(a,o));do try{xC();break}catch(W){Lg(a,W)}while(!0);_v(),Ol.current=R,zt=S,zn!==null?o=0:(rr=null,br=0,o=Cr)}if(o!==0){if(o===2&&(S=to(a),S!==0&&(m=S,o=Dl(a,S))),o===1)throw f=pf,kl(a,0),po(a,m),xr(a,Dn()),f;if(o===6)po(a,m);else{if(S=a.current.alternate,!(m&30)&&!Zv(S)&&(o=Zd(a,m),o===2&&(R=to(a),R!==0&&(m=R,o=Dl(a,R))),o===1))throw f=pf,kl(a,0),po(a,m),xr(a,Dn()),f;switch(a.finishedWork=S,a.finishedLanes=m,o){case 0:case 1:throw Error(i(345));case 2:Vs(a,Qr,Xo);break;case 3:if(po(a,m),(m&130023424)===m&&(o=Ud+500-Dn(),10<o)){if(eo(a,0)!==0)break;if(S=a.suspendedLanes,(S&m)!==m){Ar(),a.pingedLanes|=a.suspendedLanes&S;break}a.timeoutHandle=Gc(Vs.bind(null,a,Qr,Xo),o);break}Vs(a,Qr,Xo);break;case 4:if(po(a,m),(m&4194240)===m)break;for(o=a.eventTimes,S=-1;0<m;){var k=31-ra(m);R=1<<k,k=o[k],k>S&&(S=k),m&=~R}if(m=S,m=Dn()-m,m=(120>m?120:480>m?480:1080>m?1080:1920>m?1920:3e3>m?3e3:4320>m?4320:1960*bC(m/1960))-m,10<m){a.timeoutHandle=Gc(Vs.bind(null,a,Qr,Xo),m);break}Vs(a,Qr,Xo);break;case 5:Vs(a,Qr,Xo);break;default:throw Error(i(329))}}}return xr(a,Dn()),a.callbackNode===f?Xd.bind(null,a):null}function Dl(a,o){var f=Fs;return a.current.memoizedState.isDehydrated&&(kl(a,o).flags|=256),a=Zd(a,o),a!==2&&(o=Qr,Qr=f,o!==null&&Yv(o)),a}function Yv(a){Qr===null?Qr=a:Qr.push.apply(Qr,a)}function Zv(a){for(var o=a;;){if(o.flags&16384){var f=o.updateQueue;if(f!==null&&(f=f.stores,f!==null))for(var m=0;m<f.length;m++){var S=f[m],R=S.getSnapshot;S=S.value;try{if(!Bi(R(),S))return!1}catch{return!1}}}if(f=o.child,o.subtreeFlags&16384&&f!==null)f.return=o,o=f;else{if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function po(a,o){for(o&=~Wv,o&=~Hu,a.suspendedLanes|=o,a.pingedLanes&=~o,a=a.expirationTimes;0<o;){var f=31-ra(o),m=1<<f;a[f]=-1,o&=~m}}function Gu(a){if(zt&6)throw Error(i(327));Wu();var o=eo(a,0);if(!(o&1))return xr(a,Dn()),null;var f=Zd(a,o);if(a.tag!==0&&f===2){var m=to(a);m!==0&&(o=m,f=Dl(a,m))}if(f===1)throw f=pf,kl(a,0),po(a,o),xr(a,Dn()),f;if(f===6)throw Error(i(345));return a.finishedWork=a.current.alternate,a.finishedLanes=o,Vs(a,Qr,Xo),xr(a,Dn()),null}function Jv(a,o){var f=zt;zt|=1;try{return a(o)}finally{zt=f,zt===0&&(Uu=Dn()+500,Is&&oo())}}function vo(a){Ci!==null&&Ci.tag===0&&!(zt&6)&&Wu();var o=zt;zt|=1;var f=yi.transition,m=Ut;try{if(yi.transition=null,Ut=1,a)return a()}finally{Ut=m,yi.transition=f,zt=o,!(zt&6)&&oo()}}function Yd(){Da=zu.current,st(zu)}function kl(a,o){a.finishedWork=null,a.finishedLanes=0;var f=a.timeoutHandle;if(f!==-1&&(a.timeoutHandle=-1,Wc(f)),zn!==null)for(f=zn.return;f!==null;){var m=f;switch(pd(m),m.tag){case 1:m=m.type.childContextTypes,m!=null&&wa();break;case 3:Iu(),st(Ot),st(Nr),hi();break;case 5:mt(m);break;case 4:Iu();break;case 13:st(ut);break;case 19:st(ut);break;case 10:Ov(m.type._context);break;case 22:case 23:Yd()}f=f.return}if(rr=a,zn=a=Bs(a.current,null),br=Da=o,Cr=0,pf=null,Wv=Hu=Al=0,Qr=Fs=null,Jr!==null){for(o=0;o<Jr.length;o++)if(f=Jr[o],m=f.interleaved,m!==null){f.interleaved=null;var S=m.next,R=f.pending;if(R!==null){var k=R.next;R.next=S,m.next=k}f.pending=m}Jr=null}return a}function Lg(a,o){do{var f=zn;try{if(_v(),ef.current=jd,lr){for(var m=Yn.memoizedState;m!==null;){var S=m.queue;S!==null&&(S.pending=null),m=m.next}lr=!1}if(xl=0,Ee=sr=Yn=null,bt=!1,uo=0,Hd.current=null,f===null||f.return===null){Cr=1,pf=o,zn=null;break}e:{var R=a,k=f.return,W=f,Q=o;if(o=br,W.flags|=32768,Q!==null&&typeof Q=="object"&&typeof Q.then=="function"){var pe=Q,Me=W,Pe=Me.tag;if(!(Me.mode&1)&&(Pe===0||Pe===11||Pe===15)){var De=Me.alternate;De?(Me.updateQueue=De.updateQueue,Me.memoizedState=De.memoizedState,Me.lanes=De.lanes):(Me.updateQueue=null,Me.memoizedState=null)}var Ye=Ig(k);if(Ye!==null){Ye.flags&=-257,Vv(Ye,k,W,R,o),Ye.mode&1&&lf(R,pe,o),o=Ye,Q=pe;var nt=o.updateQueue;if(nt===null){var ot=new Set;ot.add(Q),o.updateQueue=ot}else nt.add(Q);break e}else{if(!(o&1)){lf(R,pe,o),mf();break e}Q=Error(i(426))}}else if(Bn&&W.mode&1){var fr=Ig(k);if(fr!==null){!(fr.flags&65536)&&(fr.flags|=256),Vv(fr,k,W,R,o),hr(Ls(Q,W));break e}}R=Q=Ls(Q,W),Cr!==4&&(Cr=2),Fs===null?Fs=[R]:Fs.push(R),R=k;do{switch(R.tag){case 3:R.flags|=65536,o&=-o,R.lanes|=o;var ae=Rg(R,Q,o);mg(R,ae);break e;case 1:W=Q;var ee=R.type,se=R.stateNode;if(!(R.flags&128)&&(typeof ee.getDerivedStateFromError=="function"||se!==null&&typeof se.componentDidCatch=="function"&&(bi===null||!bi.has(se)))){R.flags|=65536,o&=-o,R.lanes|=o;var ze=Tg(R,W,o);mg(R,ze);break e}}R=R.return}while(R!==null)}Vg(f)}catch(lt){o=lt,zn===f&&f!==null&&(zn=f=f.return);continue}break}while(!0)}function Pg(){var a=Ol.current;return Ol.current=jd,a===null?jd:a}function mf(){(Cr===0||Cr===3||Cr===2)&&(Cr=4),rr===null||!(Al&268435455)&&!(Hu&268435455)||po(rr,br)}function Zd(a,o){var f=zt;zt|=2;var m=Pg();(rr!==a||br!==o)&&(Xo=null,kl(a,o));do try{CC();break}catch(S){Lg(a,S)}while(!0);if(_v(),zt=f,Ol.current=m,zn!==null)throw Error(i(261));return rr=null,br=0,Cr}function CC(){for(;zn!==null;)Fg(zn)}function xC(){for(;zn!==null&&!Yr();)Fg(zn)}function Fg(a){var o=Hg(a.alternate,a,Da);a.memoizedProps=a.pendingProps,o===null?Vg(a):zn=o,Hd.current=null}function Vg(a){var o=a;do{var f=o.alternate;if(a=o.return,o.flags&32768){if(f=mC(f,o),f!==null){f.flags&=32767,zn=f;return}if(a!==null)a.flags|=32768,a.subtreeFlags=0,a.deletions=null;else{Cr=6,zn=null;return}}else if(f=hC(f,o,Da),f!==null){zn=f;return}if(o=o.sibling,o!==null){zn=o;return}zn=o=a}while(o!==null);Cr===0&&(Cr=5)}function Vs(a,o,f){var m=Ut,S=yi.transition;try{yi.transition=null,Ut=1,SC(a,o,f,m)}finally{yi.transition=S,Ut=m}return null}function SC(a,o,f,m){do Wu();while(Ci!==null);if(zt&6)throw Error(i(327));f=a.finishedWork;var S=a.finishedLanes;if(f===null)return null;if(a.finishedWork=null,a.finishedLanes=0,f===a.current)throw Error(i(177));a.callbackNode=null,a.callbackPriority=0;var R=f.lanes|f.childLanes;if(Rc(a,R),a===rr&&(zn=rr=null,br=0),!(f.subtreeFlags&2064)&&!(f.flags&2064)||$u||($u=!0,Ug(Lt,function(){return Wu(),null})),R=(f.flags&15990)!==0,f.subtreeFlags&15990||R){R=yi.transition,yi.transition=null;var k=Ut;Ut=1;var W=zt;zt|=4,Hd.current=null,gC(a,f),kg(f,a),pl(Cv),cu=!!bv,Cv=bv=null,a.current=f,yC(f),Qi(),zt=W,Ut=k,yi.transition=R}else a.current=f;if($u&&($u=!1,Ci=a,Gd=S),R=a.pendingLanes,R===0&&(bi=null),xc(f.stateNode),xr(a,Dn()),o!==null)for(m=a.onRecoverableError,f=0;f<o.length;f++)S=o[f],m(S.value,{componentStack:S.stack,digest:S.digest});if($d)throw $d=!1,a=Xv,Xv=null,a;return Gd&1&&a.tag!==0&&Wu(),R=a.pendingLanes,R&1?a===Wd?vf++:(vf=0,Wd=a):vf=0,oo(),null}function Wu(){if(Ci!==null){var a=Ic(Gd),o=yi.transition,f=Ut;try{if(yi.transition=null,Ut=16>a?16:a,Ci===null)var m=!1;else{if(a=Ci,Ci=null,Gd=0,zt&6)throw Error(i(331));var S=zt;for(zt|=4,Ke=a.current;Ke!==null;){var R=Ke,k=R.child;if(Ke.flags&16){var W=R.deletions;if(W!==null){for(var Q=0;Q<W.length;Q++){var pe=W[Q];for(Ke=pe;Ke!==null;){var Me=Ke;switch(Me.tag){case 0:case 11:case 15:Lu(8,Me,R)}var Pe=Me.child;if(Pe!==null)Pe.return=Me,Ke=Pe;else for(;Ke!==null;){Me=Ke;var De=Me.sibling,Ye=Me.return;if(jg(Me),Me===pe){Ke=null;break}if(De!==null){De.return=Ye,Ke=De;break}Ke=Ye}}}var nt=R.alternate;if(nt!==null){var ot=nt.child;if(ot!==null){nt.child=null;do{var fr=ot.sibling;ot.sibling=null,ot=fr}while(ot!==null)}}Ke=R}}if(R.subtreeFlags&2064&&k!==null)k.return=R,Ke=k;else e:for(;Ke!==null;){if(R=Ke,R.flags&2048)switch(R.tag){case 0:case 11:case 15:Lu(9,R,R.return)}var ae=R.sibling;if(ae!==null){ae.return=R.return,Ke=ae;break e}Ke=R.return}}var ee=a.current;for(Ke=ee;Ke!==null;){k=Ke;var se=k.child;if(k.subtreeFlags&2064&&se!==null)se.return=k,Ke=se;else e:for(k=ee;Ke!==null;){if(W=Ke,W.flags&2048)try{switch(W.tag){case 0:case 11:case 15:Bd(9,W)}}catch(lt){ar(W,W.return,lt)}if(W===k){Ke=null;break e}var ze=W.sibling;if(ze!==null){ze.return=W.return,Ke=ze;break e}Ke=W.return}}if(zt=S,oo(),Ca&&typeof Ca.onPostCommitFiberRoot=="function")try{Ca.onPostCommitFiberRoot(ms,a)}catch{}m=!0}return m}finally{Ut=f,yi.transition=o}}return!1}function Bg(a,o,f){o=Ls(f,o),o=Rg(a,o,1),a=js(a,o,1),o=Ar(),a!==null&&(ys(a,1,o),xr(a,o))}function ar(a,o,f){if(a.tag===3)Bg(a,a,f);else for(;o!==null;){if(o.tag===3){Bg(o,a,f);break}else if(o.tag===1){var m=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(bi===null||!bi.has(m))){a=Ls(f,a),a=Tg(o,a,1),o=js(o,a,1),a=Ar(),o!==null&&(ys(o,1,a),xr(o,a));break}}o=o.return}}function EC(a,o,f){var m=a.pingCache;m!==null&&m.delete(o),o=Ar(),a.pingedLanes|=a.suspendedLanes&f,rr===a&&(br&f)===f&&(Cr===4||Cr===3&&(br&130023424)===br&&500>Dn()-Ud?kl(a,0):Wv|=f),xr(a,o)}function zg(a,o){o===0&&(a.mode&1?(o=ou,ou<<=1,!(ou&130023424)&&(ou=4194304)):o=1);var f=Ar();a=$o(a,o),a!==null&&(ys(a,o,f),xr(a,f))}function qv(a){var o=a.memoizedState,f=0;o!==null&&(f=o.retryLane),zg(a,f)}function wC(a,o){var f=0;switch(a.tag){case 13:var m=a.stateNode,S=a.memoizedState;S!==null&&(f=S.retryLane);break;case 19:m=a.stateNode;break;default:throw Error(i(314))}m!==null&&m.delete(o),zg(a,f)}var Hg;Hg=function(a,o,f){if(a!==null)if(a.memoizedProps!==o.pendingProps||Ot.current)Aa=!0;else{if(!(a.lanes&f)&&!(o.flags&128))return Aa=!1,Wo(a,o,f);Aa=!!(a.flags&131072)}else Aa=!1,Bn&&o.flags&1048576&&_s(o,yl,o.index);switch(o.lanes=0,o.tag){case 2:var m=o.type;ff(a,o),a=o.pendingProps;var S=Wa(o,Nr.current);or(o,f),S=Sl(null,o,m,a,S,f);var R=ks();return o.flags|=1,typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,vr(m)?(R=!0,gl(o)):R=!1,o.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,Av(o),S.updater=gd,o.stateNode=S,S._reactInternals=o,Dv(o,m,a,f),o=kd(null,o,m,!0,R,f)):(o.tag=0,Bn&&R&&dd(o),ur(null,o,S,f),o=o.child),o;case 16:m=o.elementType;e:{switch(ff(a,o),a=o.pendingProps,S=m._init,m=S(m._payload),o.type=m,S=o.tag=RC(m),a=Na(m,a),S){case 0:o=Dt(null,o,m,a,f);break e;case 1:o=uf(null,o,m,a,f);break e;case 11:o=Au(null,o,m,a,f);break e;case 14:o=Ps(null,o,m,Na(m.type,a),f);break e}throw Error(i(306,m,""))}return o;case 0:return m=o.type,S=o.pendingProps,S=o.elementType===m?S:Na(m,S),Dt(a,o,m,S,f);case 1:return m=o.type,S=o.pendingProps,S=o.elementType===m?S:Na(m,S),uf(a,o,m,S,f);case 3:e:{if(vC(o),a===null)throw Error(i(387));m=o.pendingProps,R=o.memoizedState,S=R.element,hg(a,o),Jc(o,m,null,f);var k=o.memoizedState;if(m=k.element,R.isDehydrated)if(R={element:m,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},o.updateQueue.baseState=R,o.memoizedState=R,o.flags&256){S=Ls(Error(i(423)),o),o=_g(a,o,m,f,S);break e}else if(m!==S){S=Ls(Error(i(424)),o),o=_g(a,o,m,f,S);break e}else for(Ya=Ga(o.stateNode.containerInfo.firstChild),Xa=o,Bn=!0,pi=null,f=Sg(o,null,m,f),o.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling;else{if(Cu(),m===S){o=cr(a,o,f);break e}ur(a,o,m,f)}o=o.child}return o;case 5:return yd(o),a===null&&vd(o),m=o.type,S=o.pendingProps,R=a!==null?a.memoizedProps:null,k=S.children,ml(m,S)?k=null:R!==null&&ml(m,R)&&(o.flags|=32),Nl(a,o),ur(a,o,k,f),o.child;case 6:return a===null&&vd(o),null;case 13:return Og(a,o,f);case 4:return kv(o,o.stateNode.containerInfo),m=o.pendingProps,a===null?o.child=Ru(o,null,m,f):ur(a,o,m,f),o.child;case 11:return m=o.type,S=o.pendingProps,S=o.elementType===m?S:Na(m,S),Au(a,o,m,S,f);case 7:return ur(a,o,o.pendingProps,f),o.child;case 8:return ur(a,o,o.pendingProps.children,f),o.child;case 12:return ur(a,o,o.pendingProps.children,f),o.child;case 10:e:{if(m=o.type._context,S=o.pendingProps,R=o.memoizedProps,k=S.value,tn(xu,m._currentValue),m._currentValue=k,R!==null)if(Bi(R.value,k)){if(R.children===S.children&&!Ot.current){o=cr(a,o,f);break e}}else for(R=o.child,R!==null&&(R.return=o);R!==null;){var W=R.dependencies;if(W!==null){k=R.child;for(var Q=W.firstContext;Q!==null;){if(Q.context===m){if(R.tag===1){Q=kn(-1,f&-f),Q.tag=2;var pe=R.updateQueue;if(pe!==null){pe=pe.shared;var Me=pe.pending;Me===null?Q.next=Q:(Q.next=Me.next,Me.next=Q),pe.pending=Q}}R.lanes|=f,Q=R.alternate,Q!==null&&(Q.lanes|=f),Os(R.return,f,o),W.lanes|=f;break}Q=Q.next}}else if(R.tag===10)k=R.type===o.type?null:R.child;else if(R.tag===18){if(k=R.return,k===null)throw Error(i(341));k.lanes|=f,W=k.alternate,W!==null&&(W.lanes|=f),Os(k,f,o),k=R.sibling}else k=R.child;if(k!==null)k.return=R;else for(k=R;k!==null;){if(k===o){k=null;break}if(R=k.sibling,R!==null){R.return=k.return,k=R;break}k=k.return}R=k}ur(a,o,S.children,f),o=o.child}return o;case 9:return S=o.type,m=o.pendingProps.children,or(o,f),S=He(S),m=m(S),o.flags|=1,ur(a,o,m,f),o.child;case 14:return m=o.type,S=Na(m,o.pendingProps),S=Na(m.type,S),Ps(a,o,m,S,f);case 15:return Dd(a,o,o.type,o.pendingProps,f);case 17:return m=o.type,S=o.pendingProps,S=o.elementType===m?S:Na(m,S),ff(a,o),o.tag=1,vr(m)?(a=!0,gl(o)):a=!1,or(o,f),yg(o,m,S),Dv(o,m,S,f),kd(null,o,m,!0,a,f);case 19:return zv(a,o,f);case 22:return ja(a,o,f)}throw Error(i(156,o.tag))};function Ug(a,o){return An(a,o)}function $g(a,o,f,m){this.tag=a,this.key=f,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xi(a,o,f,m){return new $g(a,o,f,m)}function Qv(a){return a=a.prototype,!(!a||!a.isReactComponent)}function RC(a){if(typeof a=="function")return Qv(a)?1:0;if(a!=null){if(a=a.$$typeof,a===fe)return 11;if(a===xe)return 14}return 2}function Bs(a,o){var f=a.alternate;return f===null?(f=xi(a.tag,o,a.key,a.mode),f.elementType=a.elementType,f.type=a.type,f.stateNode=a.stateNode,f.alternate=a,a.alternate=f):(f.pendingProps=o,f.type=a.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=a.flags&14680064,f.childLanes=a.childLanes,f.lanes=a.lanes,f.child=a.child,f.memoizedProps=a.memoizedProps,f.memoizedState=a.memoizedState,f.updateQueue=a.updateQueue,o=a.dependencies,f.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},f.sibling=a.sibling,f.index=a.index,f.ref=a.ref,f}function Jd(a,o,f,m,S,R){var k=2;if(m=a,typeof a=="function")Qv(a)&&(k=1);else if(typeof a=="string")k=5;else e:switch(a){case J:return Ml(f.children,S,R,o);case q:k=8,S|=8;break;case Re:return a=xi(12,f,o,S|2),a.elementType=Re,a.lanes=R,a;case Oe:return a=xi(13,f,o,S),a.elementType=Oe,a.lanes=R,a;case Te:return a=xi(19,f,o,S),a.elementType=Te,a.lanes=R,a;case Le:return qd(f,S,R,o);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case he:k=10;break e;case ge:k=9;break e;case fe:k=11;break e;case xe:k=14;break e;case je:k=16,m=null;break e}throw Error(i(130,a==null?a:typeof a,""))}return o=xi(k,f,o,S),o.elementType=a,o.type=m,o.lanes=R,o}function Ml(a,o,f,m){return a=xi(7,a,m,o),a.lanes=f,a}function qd(a,o,f,m){return a=xi(22,a,m,o),a.elementType=Le,a.lanes=f,a.stateNode={isHidden:!1},a}function Qd(a,o,f){return a=xi(6,a,null,o),a.lanes=f,a}function gf(a,o,f){return o=xi(4,a.children!==null?a.children:[],a.key,o),o.lanes=f,o.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},o}function yf(a,o,f,m,S){this.tag=o,this.containerInfo=a,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ul(0),this.expirationTimes=ul(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ul(0),this.identifierPrefix=m,this.onRecoverableError=S,this.mutableSourceEagerHydrationData=null}function Kv(a,o,f,m,S,R,k,W,Q){return a=new yf(a,o,f,W,Q),o===1?(o=1,R===!0&&(o|=8)):o=0,R=xi(3,null,null,o),a.current=R,R.stateNode=a,R.memoizedState={element:m,isDehydrated:f,cache:null,transitions:null,pendingSuspenseBoundaries:null},Av(R),a}function Gg(a,o,f){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:U,key:m==null?null:""+m,children:a,containerInfo:o,implementation:f}}function eh(a){if(!a)return ci;a=a._reactInternals;e:{if(We(a)!==a||a.tag!==1)throw Error(i(170));var o=a;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(vr(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(i(171))}if(a.tag===1){var f=a.type;if(vr(f))return Ts(a,f,o)}return o}function th(a,o,f,m,S,R,k,W,Q){return a=Kv(f,m,!0,a,S,R,k,W,Q),a.context=eh(null),f=a.current,m=Ar(),S=Yo(f),R=kn(m,S),R.callback=o??null,js(f,R,S),a.current.lanes=S,ys(a,S,m),xr(a,m),a}function Kd(a,o,f,m){var S=o.current,R=Ar(),k=Yo(S);return f=eh(f),o.context===null?o.context=f:o.pendingContext=f,o=kn(R,k),o.payload={element:a},m=m===void 0?null:m,m!==null&&(o.callback=m),a=js(S,o,k),a!==null&&(Zn(a,S,k,R),md(a,S,k)),k}function bf(a){if(a=a.current,!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function Wg(a,o){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var f=a.retryLane;a.retryLane=f!==0&&f<o?f:o}}function nh(a,o){Wg(a,o),(a=a.alternate)&&Wg(a,o)}function TC(){return null}var rh=typeof reportError=="function"?reportError:function(a){console.error(a)};function ep(a){this._internalRoot=a}Cf.prototype.render=ep.prototype.render=function(a){var o=this._internalRoot;if(o===null)throw Error(i(409));Kd(a,o,null,null)},Cf.prototype.unmount=ep.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var o=a.containerInfo;vo(function(){Kd(null,a,null,null)}),o[zi]=null}};function Cf(a){this._internalRoot=a}Cf.prototype.unstable_scheduleHydration=function(a){if(a){var o=Yt();a={blockedOn:null,target:a,priority:o};for(var f=0;f<Fn.length&&o!==0&&o<Fn[f].priority;f++);Fn.splice(f,0,a),f===0&&Fi(a)}};function zs(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function tp(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11&&(a.nodeType!==8||a.nodeValue!==" react-mount-point-unstable "))}function Xg(){}function IC(a,o,f,m,S){if(S){if(typeof m=="function"){var R=m;m=function(){var pe=bf(k);R.call(pe)}}var k=th(o,m,a,0,null,!1,!1,"",Xg);return a._reactRootContainer=k,a[zi]=k.current,ro(a.nodeType===8?a.parentNode:a),vo(),k}for(;S=a.lastChild;)a.removeChild(S);if(typeof m=="function"){var W=m;m=function(){var pe=bf(Q);W.call(pe)}}var Q=Kv(a,0,!1,null,null,!1,!1,"",Xg);return a._reactRootContainer=Q,a[zi]=Q.current,ro(a.nodeType===8?a.parentNode:a),vo(function(){Kd(o,Q,f,m)}),Q}function np(a,o,f,m,S){var R=f._reactRootContainer;if(R){var k=R;if(typeof S=="function"){var W=S;S=function(){var Q=bf(k);W.call(Q)}}Kd(o,k,a,S)}else k=IC(f,o,a,S,m);return bf(k)}su=function(a){switch(a.tag){case 3:var o=a.stateNode;if(o.current.memoizedState.isDehydrated){var f=Ao(o.pendingLanes);f!==0&&(Tc(o,f|1),xr(o,Dn()),!(zt&6)&&(Uu=Dn()+500,oo()))}break;case 13:vo(function(){var m=$o(a,1);if(m!==null){var S=Ar();Zn(m,a,1,S)}}),nh(a,1)}},bs=function(a){if(a.tag===13){var o=$o(a,134217728);if(o!==null){var f=Ar();Zn(o,a,134217728,f)}nh(a,134217728)}},Nc=function(a){if(a.tag===13){var o=Yo(a),f=$o(a,o);if(f!==null){var m=Ar();Zn(f,a,o,m)}nh(a,o)}},Yt=function(){return Ut},lu=function(a,o){var f=Ut;try{return Ut=a,o()}finally{Ut=f}},pn=function(a,o,f){switch(o){case"input":if(on(a,f),o=f.name,f.type==="radio"&&o!=null){for(f=a;f.parentNode;)f=f.parentNode;for(f=f.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<f.length;o++){var m=f[o];if(m!==a&&m.form===a.form){var S=cd(m);if(!S)throw Error(i(90));ft(m),on(m,S)}}}break;case"textarea":$n(a,f);break;case"select":o=f.value,o!=null&&Cn(a,!!f.multiple,o,!1)}},vs=Jv,al=vo;var NC={usingClientEntryPoint:!1,Events:[ao,bu,cd,ki,ai,Jv]},xf={findFiberByHostInstance:Ho,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Yg={bundleType:xf.bundleType,version:xf.version,rendererPackageName:xf.rendererPackageName,rendererConfig:xf.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:H.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){return a=vt(a),a===null?null:a.stateNode},findFiberByHostInstance:xf.findFiberByHostInstance||TC,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var rp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rp.isDisabled&&rp.supportsFiber)try{ms=rp.inject(Yg),Ca=rp}catch{}}return Ii.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=NC,Ii.createPortal=function(a,o){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!zs(o))throw Error(i(200));return Gg(a,o,null,f)},Ii.createRoot=function(a,o){if(!zs(a))throw Error(i(299));var f=!1,m="",S=rh;return o!=null&&(o.unstable_strictMode===!0&&(f=!0),o.identifierPrefix!==void 0&&(m=o.identifierPrefix),o.onRecoverableError!==void 0&&(S=o.onRecoverableError)),o=Kv(a,1,!1,null,null,f,!1,m,S),a[zi]=o.current,ro(a.nodeType===8?a.parentNode:a),new ep(o)},Ii.findDOMNode=function(a){if(a==null)return null;if(a.nodeType===1)return a;var o=a._reactInternals;if(o===void 0)throw typeof a.render=="function"?Error(i(188)):(a=Object.keys(a).join(","),Error(i(268,a)));return a=vt(o),a=a===null?null:a.stateNode,a},Ii.flushSync=function(a){return vo(a)},Ii.hydrate=function(a,o,f){if(!tp(o))throw Error(i(200));return np(null,a,o,!0,f)},Ii.hydrateRoot=function(a,o,f){if(!zs(a))throw Error(i(405));var m=f!=null&&f.hydratedSources||null,S=!1,R="",k=rh;if(f!=null&&(f.unstable_strictMode===!0&&(S=!0),f.identifierPrefix!==void 0&&(R=f.identifierPrefix),f.onRecoverableError!==void 0&&(k=f.onRecoverableError)),o=th(o,null,a,1,f??null,S,!1,R,k),a[zi]=o.current,ro(a),m)for(a=0;a<m.length;a++)f=m[a],S=f._getVersion,S=S(f._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[f,S]:o.mutableSourceEagerHydrationData.push(f,S);return new Cf(o)},Ii.render=function(a,o,f){if(!tp(o))throw Error(i(200));return np(null,a,o,!1,f)},Ii.unmountComponentAtNode=function(a){if(!tp(a))throw Error(i(40));return a._reactRootContainer?(vo(function(){np(null,null,a,!1,function(){a._reactRootContainer=null,a[zi]=null})}),!0):!1},Ii.unstable_batchedUpdates=Jv,Ii.unstable_renderSubtreeIntoContainer=function(a,o,f,m){if(!tp(f))throw Error(i(200));if(a==null||a._reactInternals===void 0)throw Error(i(38));return np(a,o,f,!1,m)},Ii.version="18.2.0-next-9e3b772b8-20220608",Ii}var Ni={},VN;function nz(){if(VN)return Ni;VN=1;var n={};/**
|
|
91
|
+
`),w=m.stack.split(`
|
|
92
|
+
`),k=S.length-1,W=w.length-1;1<=k&&0<=W&&S[k]!==w[W];)W--;for(;1<=k&&0<=W;k--,W--)if(S[k]!==w[W]){if(k!==1||W!==1)do if(k--,W--,0>W||S[k]!==w[W]){var Q=`
|
|
93
|
+
`+S[k].replace(" at new "," at ");return a.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",a.displayName)),Q}while(1<=k&&0<=W);break}}}finally{ye=!1,Error.prepareStackTrace=f}return(a=a?a.displayName||a.name:"")?re(a):""}function Ne(a){switch(a.tag){case 5:return re(a.type);case 16:return re("Lazy");case 13:return re("Suspense");case 19:return re("SuspenseList");case 0:case 2:case 15:return a=Se(a.type,!1),a;case 11:return a=Se(a.type.render,!1),a;case 1:return a=Se(a.type,!0),a;default:return""}}function le(a){if(a==null)return null;if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case J:return"Fragment";case U:return"Portal";case Re:return"Profiler";case q:return"StrictMode";case Oe:return"Suspense";case Te:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case ge:return(a.displayName||"Context")+".Consumer";case he:return(a._context.displayName||"Context")+".Provider";case fe:var o=a.render;return a=a.displayName,a||(a=o.displayName||o.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case xe:return o=a.displayName||null,o!==null?o:le(a.type)||"Memo";case je:o=a._payload,a=a._init;try{return le(a(o))}catch{}}return null}function ve(a){var o=a.type;switch(a.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=o.render,a=a.displayName||a.name||"",o.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return le(o);case 8:return o===q?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function we(a){switch(typeof a){case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Ve(a){var o=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function et(a){var o=Ve(a)?"checked":"value",f=Object.getOwnPropertyDescriptor(a.constructor.prototype,o),m=""+a[o];if(!a.hasOwnProperty(o)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var S=f.get,w=f.set;return Object.defineProperty(a,o,{configurable:!0,get:function(){return S.call(this)},set:function(k){m=""+k,w.call(this,k)}}),Object.defineProperty(a,o,{enumerable:f.enumerable}),{getValue:function(){return m},setValue:function(k){m=""+k},stopTracking:function(){a._valueTracker=null,delete a[o]}}}}function tt(a){a._valueTracker||(a._valueTracker=et(a))}function ft(a){if(!a)return!1;var o=a._valueTracker;if(!o)return!0;var f=o.getValue(),m="";return a&&(m=Ve(a)?a.checked?"true":"false":a.value),a=m,a!==f?(o.setValue(a),!0):!1}function Ae(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}function It(a,o){var f=o.checked;return G({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:f??a._wrapperState.initialChecked})}function pt(a,o){var f=o.defaultValue==null?"":o.defaultValue,m=o.checked!=null?o.checked:o.defaultChecked;f=we(o.value!=null?o.value:f),a._wrapperState={initialChecked:m,initialValue:f,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function Kt(a,o){o=o.checked,o!=null&&V(a,"checked",o,!1)}function on(a,o){Kt(a,o);var f=we(o.value),m=o.type;if(f!=null)m==="number"?(f===0&&a.value===""||a.value!=f)&&(a.value=""+f):a.value!==""+f&&(a.value=""+f);else if(m==="submit"||m==="reset"){a.removeAttribute("value");return}o.hasOwnProperty("value")?_n(a,o.type,f):o.hasOwnProperty("defaultValue")&&_n(a,o.type,we(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(a.defaultChecked=!!o.defaultChecked)}function sn(a,o,f){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var m=o.type;if(!(m!=="submit"&&m!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+a._wrapperState.initialValue,f||o===a.value||(a.value=o),a.defaultValue=o}f=a.name,f!==""&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,f!==""&&(a.name=f)}function _n(a,o,f){(o!=="number"||Ae(a.ownerDocument)!==a)&&(f==null?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+f&&(a.defaultValue=""+f))}var Vt=Array.isArray;function Cn(a,o,f,m){if(a=a.options,o){o={};for(var S=0;S<f.length;S++)o["$"+f[S]]=!0;for(f=0;f<a.length;f++)S=o.hasOwnProperty("$"+a[f].value),a[f].selected!==S&&(a[f].selected=S),S&&m&&(a[f].defaultSelected=!0)}else{for(f=""+we(f),o=null,S=0;S<a.length;S++){if(a[S].value===f){a[S].selected=!0,m&&(a[S].defaultSelected=!0);return}o!==null||a[S].disabled||(o=a[S])}o!==null&&(o.selected=!0)}}function Qn(a,o){if(o.dangerouslySetInnerHTML!=null)throw Error(i(91));return G({},o,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})}function Rr(a,o){var f=o.value;if(f==null){if(f=o.children,o=o.defaultValue,f!=null){if(o!=null)throw Error(i(92));if(Vt(f)){if(1<f.length)throw Error(i(93));f=f[0]}o=f}o==null&&(o=""),f=o}a._wrapperState={initialValue:we(f)}}function $n(a,o){var f=we(o.value),m=we(o.defaultValue);f!=null&&(f=""+f,f!==a.value&&(a.value=f),o.defaultValue==null&&a.defaultValue!==f&&(a.defaultValue=f)),m!=null&&(a.defaultValue=""+m)}function Tr(a){var o=a.textContent;o===a._wrapperState.initialValue&&o!==""&&o!==null&&(a.value=o)}function xt(a){switch(a){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Pn(a,o){return a==null||a==="http://www.w3.org/1999/xhtml"?xt(o):a==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":a}var ln,Ba=function(a){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,f,m,S){MSApp.execUnsafeLocalFunction(function(){return a(o,f,m,S)})}:a}(function(a,o){if(a.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in a)a.innerHTML=o;else{for(ln=ln||document.createElement("div"),ln.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=ln.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;o.firstChild;)a.appendChild(o.firstChild)}});function za(a,o){if(o){var f=a.firstChild;if(f&&f===a.lastChild&&f.nodeType===3){f.nodeValue=o;return}}a.textContent=o}var Ha={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ge=["Webkit","ms","Moz","O"];Object.keys(Ha).forEach(function(a){Ge.forEach(function(o){o=o+a.charAt(0).toUpperCase()+a.substring(1),Ha[o]=Ha[a]})});function dt(a,o,f){return o==null||typeof o=="boolean"||o===""?"":f||typeof o!="number"||o===0||Ha.hasOwnProperty(a)&&Ha[a]?(""+o).trim():o+"px"}function Mt(a,o){a=a.style;for(var f in o)if(o.hasOwnProperty(f)){var m=f.indexOf("--")===0,S=dt(f,o[f],m);f==="float"&&(f="cssFloat"),m?a.setProperty(f,S):a[f]=S}}var un=G({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function en(a,o){if(o){if(un[a]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(i(137,a));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(i(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(i(61))}if(o.style!=null&&typeof o.style!="object")throw Error(i(62))}}function ir(a,o){if(a.indexOf("-")===-1)return typeof o.is=="string";switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Gn=null;function Xr(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var pn=null,Ir=null,cn=null;function On(a){if(a=ao(a)){if(typeof pn!="function")throw Error(i(280));var o=a.stateNode;o&&(o=cd(o),pn(a.stateNode,a.type,o))}}function ki(a){Ir?cn?cn.push(a):cn=[a]:Ir=a}function ai(){if(Ir){var a=Ir,o=cn;if(cn=Ir=null,On(a),o)for(a=0;a<o.length;a++)On(o[a])}}function vs(a,o){return a(o)}function al(){}var il=!1;function hs(a,o,f){if(il)return a(o,f);il=!0;try{return vs(a,o,f)}finally{il=!1,(Ir!==null||cn!==null)&&(al(),ai())}}function Mi(a,o){var f=a.stateNode;if(f===null)return null;var m=cd(f);if(m===null)return null;f=m[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(a=a.type,m=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!m;break e;default:a=!1}if(a)return null;if(f&&typeof f!="function")throw Error(i(231,o,typeof f));return f}var Li=!1;if(v)try{var ii={};Object.defineProperty(ii,"passive",{get:function(){Li=!0}}),window.addEventListener("test",ii,ii),window.removeEventListener("test",ii,ii)}catch{Li=!1}function No(a,o,f,m,S,w,k,W,Q){var pe=Array.prototype.slice.call(arguments,3);try{o.apply(f,pe)}catch(Me){this.onError(Me)}}var ga=!1,ya=null,Ua=!1,_o=null,Z={onError:function(a){ga=!0,ya=a}};function ke(a,o,f,m,S,w,k,W,Q){ga=!1,ya=null,No.apply(Z,arguments)}function Ue(a,o,f,m,S,w,k,W,Q){if(ke.apply(this,arguments),ga){if(ga){var pe=ya;ga=!1,ya=null}else throw Error(i(198));Ua||(Ua=!0,_o=pe)}}function We(a){var o=a,f=a;if(a.alternate)for(;o.return;)o=o.return;else{a=o;do o=a,o.flags&4098&&(f=o.return),a=o.return;while(a)}return o.tag===3?f:null}function Bt(a){if(a.tag===13){var o=a.memoizedState;if(o===null&&(a=a.alternate,a!==null&&(o=a.memoizedState)),o!==null)return o.dehydrated}return null}function $t(a){if(We(a)!==a)throw Error(i(188))}function kt(a){var o=a.alternate;if(!o){if(o=We(a),o===null)throw Error(i(188));return o!==a?null:a}for(var f=a,m=o;;){var S=f.return;if(S===null)break;var w=S.alternate;if(w===null){if(m=S.return,m!==null){f=m;continue}break}if(S.child===w.child){for(w=S.child;w;){if(w===f)return $t(S),a;if(w===m)return $t(S),o;w=w.sibling}throw Error(i(188))}if(f.return!==m.return)f=S,m=w;else{for(var k=!1,W=S.child;W;){if(W===f){k=!0,f=S,m=w;break}if(W===m){k=!0,m=S,f=w;break}W=W.sibling}if(!k){for(W=w.child;W;){if(W===f){k=!0,f=w,m=S;break}if(W===m){k=!0,m=w,f=S;break}W=W.sibling}if(!k)throw Error(i(189))}}if(f.alternate!==m)throw Error(i(190))}if(f.tag!==3)throw Error(i(188));return f.stateNode.current===f?a:o}function vt(a){return a=kt(a),a!==null?pr(a):null}function pr(a){if(a.tag===5||a.tag===6)return a;for(a=a.child;a!==null;){var o=pr(a);if(o!==null)return o;a=a.sibling}return null}var An=r.unstable_scheduleCallback,jn=r.unstable_cancelCallback,Yr=r.unstable_shouldYield,Qi=r.unstable_requestPaint,Dn=r.unstable_now,ba=r.unstable_getCurrentPriorityLevel,Cc=r.unstable_ImmediatePriority,Ki=r.unstable_UserBlockingPriority,Lt=r.unstable_NormalPriority,ol=r.unstable_LowPriority,Oo=r.unstable_IdlePriority,ms=null,Ca=null;function xc(a){if(Ca&&typeof Ca.onCommitFiberRoot=="function")try{Ca.onCommitFiberRoot(ms,a,void 0,(a.current.flags&128)===128)}catch{}}var ra=Math.clz32?Math.clz32:wc,Sc=Math.log,Ec=Math.LN2;function wc(a){return a>>>=0,a===0?32:31-(Sc(a)/Ec|0)|0}var sl=64,ou=4194304;function Ao(a){switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a}}function eo(a,o){var f=a.pendingLanes;if(f===0)return 0;var m=0,S=a.suspendedLanes,w=a.pingedLanes,k=f&268435455;if(k!==0){var W=k&~S;W!==0?m=Ao(W):(w&=k,w!==0&&(m=Ao(w)))}else k=f&~S,k!==0?m=Ao(k):w!==0&&(m=Ao(w));if(m===0)return 0;if(o!==0&&o!==m&&!(o&S)&&(S=m&-m,w=o&-o,S>=w||S===16&&(w&4194240)!==0))return o;if(m&4&&(m|=f&16),o=a.entangledLanes,o!==0)for(a=a.entanglements,o&=m;0<o;)f=31-ra(o),S=1<<f,m|=a[f],o&=~S;return m}function oi(a,o){switch(a){case 1:case 2:case 4:return o+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function gs(a,o){for(var f=a.suspendedLanes,m=a.pingedLanes,S=a.expirationTimes,w=a.pendingLanes;0<w;){var k=31-ra(w),W=1<<k,Q=S[k];Q===-1?(!(W&f)||W&m)&&(S[k]=oi(W,o)):Q<=o&&(a.expiredLanes|=W),w&=~W}}function to(a){return a=a.pendingLanes&-1073741825,a!==0?a:a&1073741824?1073741824:0}function ll(){var a=sl;return sl<<=1,!(sl&4194240)&&(sl=64),a}function ul(a){for(var o=[],f=0;31>f;f++)o.push(a);return o}function ys(a,o,f){a.pendingLanes|=o,o!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,o=31-ra(o),a[o]=f}function Rc(a,o){var f=a.pendingLanes&~o;a.pendingLanes=o,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=o,a.mutableReadLanes&=o,a.entangledLanes&=o,o=a.entanglements;var m=a.eventTimes;for(a=a.expirationTimes;0<f;){var S=31-ra(f),w=1<<S;o[S]=0,m[S]=-1,a[S]=-1,f&=~w}}function Tc(a,o){var f=a.entangledLanes|=o;for(a=a.entanglements;f;){var m=31-ra(f),S=1<<m;S&o|a[m]&o&&(a[m]|=o),f&=~S}}var Ut=0;function Ic(a){return a&=-a,1<a?4<a?a&268435455?16:536870912:4:1}var su,bs,Nc,Yt,lu,cl=!1,Nt=[],Pi=null,Wn=null,xa=null,si=new Map,Cs=new Map,Fn=[],Xn="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function _c(a,o){switch(a){case"focusin":case"focusout":Pi=null;break;case"dragenter":case"dragleave":Wn=null;break;case"mouseover":case"mouseout":xa=null;break;case"pointerover":case"pointerout":si.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cs.delete(o.pointerId)}}function Mr(a,o,f,m,S,w){return a===null||a.nativeEvent!==w?(a={blockedOn:o,domEventName:f,eventSystemFlags:m,nativeEvent:w,targetContainers:[S]},o!==null&&(o=ao(o),o!==null&&bs(o)),a):(a.eventSystemFlags|=m,o=a.targetContainers,S!==null&&o.indexOf(S)===-1&&o.push(S),a)}function Sa(a,o,f,m,S){switch(o){case"focusin":return Pi=Mr(Pi,a,o,f,m,S),!0;case"dragenter":return Wn=Mr(Wn,a,o,f,m,S),!0;case"mouseover":return xa=Mr(xa,a,o,f,m,S),!0;case"pointerover":var w=S.pointerId;return si.set(w,Mr(si.get(w)||null,a,o,f,m,S)),!0;case"gotpointercapture":return w=S.pointerId,Cs.set(w,Mr(Cs.get(w)||null,a,o,f,m,S)),!0}return!1}function Fi(a){var o=Ho(a.target);if(o!==null){var f=We(o);if(f!==null){if(o=f.tag,o===13){if(o=Bt(f),o!==null){a.blockedOn=o,lu(a.priority,function(){Nc(f)});return}}else if(o===3&&f.stateNode.current.memoizedState.isDehydrated){a.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}a.blockedOn=null}function uu(a){if(a.blockedOn!==null)return!1;for(var o=a.targetContainers;0<o.length;){var f=du(a.domEventName,a.eventSystemFlags,o[0],a.nativeEvent);if(f===null){f=a.nativeEvent;var m=new f.constructor(f.type,f);Gn=m,f.target.dispatchEvent(m),Gn=null}else return o=ao(f),o!==null&&bs(o),a.blockedOn=f,!1;o.shift()}return!0}function fl(a,o,f){uu(a)&&f.delete(o)}function dl(){cl=!1,Pi!==null&&uu(Pi)&&(Pi=null),Wn!==null&&uu(Wn)&&(Wn=null),xa!==null&&uu(xa)&&(xa=null),si.forEach(fl),Cs.forEach(fl)}function xs(a,o){a.blockedOn===o&&(a.blockedOn=null,cl||(cl=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,dl)))}function li(a){function o(S){return xs(S,a)}if(0<Nt.length){xs(Nt[0],a);for(var f=1;f<Nt.length;f++){var m=Nt[f];m.blockedOn===a&&(m.blockedOn=null)}}for(Pi!==null&&xs(Pi,a),Wn!==null&&xs(Wn,a),xa!==null&&xs(xa,a),si.forEach(o),Cs.forEach(o),f=0;f<Fn.length;f++)m=Fn[f],m.blockedOn===a&&(m.blockedOn=null);for(;0<Fn.length&&(f=Fn[0],f.blockedOn===null);)Fi(f),f.blockedOn===null&&Fn.shift()}var jo=H.ReactCurrentBatchConfig,cu=!0;function Do(a,o,f,m){var S=Ut,w=jo.transition;jo.transition=null;try{Ut=1,no(a,o,f,m)}finally{Ut=S,jo.transition=w}}function fu(a,o,f,m){var S=Ut,w=jo.transition;jo.transition=null;try{Ut=4,no(a,o,f,m)}finally{Ut=S,jo.transition=w}}function no(a,o,f,m){if(cu){var S=du(a,o,f,m);if(S===null)mv(a,o,m,ko,f),_c(a,m);else if(Sa(S,a,o,f,m))m.stopPropagation();else if(_c(a,m),o&4&&-1<Xn.indexOf(a)){for(;S!==null;){var w=ao(S);if(w!==null&&su(w),w=du(a,o,f,m),w===null&&mv(a,o,m,ko,f),w===S)break;S=w}S!==null&&m.stopPropagation()}else mv(a,o,m,null,f)}}var ko=null;function du(a,o,f,m){if(ko=null,a=Xr(m),a=Ho(a),a!==null)if(o=We(a),o===null)a=null;else if(f=o.tag,f===13){if(a=Bt(o),a!==null)return a;a=null}else if(f===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;a=null}else o!==a&&(a=null);return ko=a,null}function Oc(a){switch(a){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ba()){case Cc:return 1;case Ki:return 4;case Lt:case ol:return 16;case Oo:return 536870912;default:return 16}default:return 16}}var Vi=null,pu=null,D=null;function X(){if(D)return D;var a,o=pu,f=o.length,m,S="value"in Vi?Vi.value:Vi.textContent,w=S.length;for(a=0;a<f&&o[a]===S[a];a++);var k=f-a;for(m=1;m<=k&&o[f-m]===S[w-m];m++);return D=S.slice(a,1<m?1-m:void 0)}function ue(a){var o=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&o===13&&(a=13)):a=o,a===10&&(a=13),32<=a||a===13?a:0}function me(){return!0}function Be(){return!1}function it(a){function o(f,m,S,w,k){this._reactName=f,this._targetInst=S,this.type=m,this.nativeEvent=w,this.target=k,this.currentTarget=null;for(var W in a)a.hasOwnProperty(W)&&(f=a[W],this[W]=f?f(w):w[W]);return this.isDefaultPrevented=(w.defaultPrevented!=null?w.defaultPrevented:w.returnValue===!1)?me:Be,this.isPropagationStopped=Be,this}return G(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var f=this.nativeEvent;f&&(f.preventDefault?f.preventDefault():typeof f.returnValue!="unknown"&&(f.returnValue=!1),this.isDefaultPrevented=me)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=me)},persist:function(){},isPersistent:me}),o}var Je={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wt=it(Je),Pt=G({},Je,{view:0,detail:0}),fn=it(Pt),vn,hn,mn,Vn=G({},Pt,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ed,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==mn&&(mn&&a.type==="mousemove"?(vn=a.screenX-mn.screenX,hn=a.screenY-mn.screenY):hn=vn=0,mn=a),vn)},movementY:function(a){return"movementY"in a?a.movementY:hn}}),Zt=it(Vn),Ss=G({},Vn,{dataTransfer:0}),vu=it(Ss),Ac=G({},Pt,{relatedTarget:0}),jc=it(Ac),Mo=G({},Je,{animationName:0,elapsedTime:0,pseudoElement:0}),Dc=it(Mo),kc=G({},Je,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),av=it(kc),Z0=G({},Je,{data:0}),Lm=it(Z0),Pm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},iv={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Fm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Vm(a){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(a):(a=Fm[a])?!!o[a]:!1}function ed(){return Vm}var J0=G({},Pt,{key:function(a){if(a.key){var o=Pm[a.key]||a.key;if(o!=="Unidentified")return o}return a.type==="keypress"?(a=ue(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?iv[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ed,charCode:function(a){return a.type==="keypress"?ue(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?ue(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),Lo=it(J0),q0=G({},Vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),td=it(q0),ov=G({},Pt,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ed}),sv=it(ov),Q0=G({},Je,{propertyName:0,elapsedTime:0,pseudoElement:0}),nd=it(Q0),Bm=G({},Vn,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),Ea=it(Bm),Po=[9,13,27,32],Kn=v&&"CompositionEvent"in window,$a=null;v&&"documentMode"in document&&($a=document.documentMode);var lv=v&&"TextEvent"in window&&!$a,Mc=v&&(!Kn||$a&&8<$a&&11>=$a),zm=" ",hu=!1;function Hm(a,o){switch(a){case"keyup":return Po.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Um(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Es=!1;function K0(a,o){switch(a){case"compositionend":return Um(o);case"keypress":return o.which!==32?null:(hu=!0,zm);case"textInput":return a=o.data,a===zm&&hu?null:a;default:return null}}function eC(a,o){if(Es)return a==="compositionend"||!Kn&&Hm(a,o)?(a=X(),D=pu=Vi=null,Es=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Mc&&o.locale!=="ko"?null:o.data;default:return null}}var tC={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function uv(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o==="input"?!!tC[a.type]:o==="textarea"}function $m(a,o,f,m){ki(m),o=ld(o,"onChange"),0<o.length&&(f=new wt("onChange","change",null,f,m),a.push({event:f,listeners:o}))}var Lc=null,Pc=null;function Gm(a){sg(a,0)}function Fo(a){var o=bu(a);if(ft(o))return a}function cv(a,o){if(a==="change")return o}var fv=!1;if(v){var rd;if(v){var dv="oninput"in document;if(!dv){var Wm=document.createElement("div");Wm.setAttribute("oninput","return;"),dv=typeof Wm.oninput=="function"}rd=dv}else rd=!1;fv=rd&&(!document.documentMode||9<document.documentMode)}function Xm(){Lc&&(Lc.detachEvent("onpropertychange",Ym),Pc=Lc=null)}function Ym(a){if(a.propertyName==="value"&&Fo(Pc)){var o=[];$m(o,Pc,a,Xr(a)),hs(Gm,o)}}function nC(a,o,f){a==="focusin"?(Xm(),Lc=o,Pc=f,Lc.attachEvent("onpropertychange",Ym)):a==="focusout"&&Xm()}function rC(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Fo(Pc)}function aC(a,o){if(a==="click")return Fo(o)}function iC(a,o){if(a==="input"||a==="change")return Fo(o)}function Zm(a,o){return a===o&&(a!==0||1/a===1/o)||a!==a&&o!==o}var Bi=typeof Object.is=="function"?Object.is:Zm;function mu(a,o){if(Bi(a,o))return!0;if(typeof a!="object"||a===null||typeof o!="object"||o===null)return!1;var f=Object.keys(a),m=Object.keys(o);if(f.length!==m.length)return!1;for(m=0;m<f.length;m++){var S=f[m];if(!y.call(o,S)||!Bi(a[S],o[S]))return!1}return!0}function Jm(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function qm(a,o){var f=Jm(a);a=0;for(var m;f;){if(f.nodeType===3){if(m=a+f.textContent.length,a<=o&&m>=o)return{node:f,offset:o-a};a=m}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=Jm(f)}}function Qm(a,o){return a&&o?a===o?!0:a&&a.nodeType===3?!1:o&&o.nodeType===3?Qm(a,o.parentNode):"contains"in a?a.contains(o):a.compareDocumentPosition?!!(a.compareDocumentPosition(o)&16):!1:!1}function Km(){for(var a=window,o=Ae();o instanceof a.HTMLIFrameElement;){try{var f=typeof o.contentWindow.location.href=="string"}catch{f=!1}if(f)a=o.contentWindow;else break;o=Ae(a.document)}return o}function Fc(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o&&(o==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||o==="textarea"||a.contentEditable==="true")}function pl(a){var o=Km(),f=a.focusedElem,m=a.selectionRange;if(o!==f&&f&&f.ownerDocument&&Qm(f.ownerDocument.documentElement,f)){if(m!==null&&Fc(f)){if(o=m.start,a=m.end,a===void 0&&(a=o),"selectionStart"in f)f.selectionStart=o,f.selectionEnd=Math.min(a,f.value.length);else if(a=(o=f.ownerDocument||document)&&o.defaultView||window,a.getSelection){a=a.getSelection();var S=f.textContent.length,w=Math.min(m.start,S);m=m.end===void 0?w:Math.min(m.end,S),!a.extend&&w>m&&(S=m,m=w,w=S),S=qm(f,w);var k=qm(f,m);S&&k&&(a.rangeCount!==1||a.anchorNode!==S.node||a.anchorOffset!==S.offset||a.focusNode!==k.node||a.focusOffset!==k.offset)&&(o=o.createRange(),o.setStart(S.node,S.offset),a.removeAllRanges(),w>m?(a.addRange(o),a.extend(k.node,k.offset)):(o.setEnd(k.node,k.offset),a.addRange(o)))}}for(o=[],a=f;a=a.parentNode;)a.nodeType===1&&o.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<o.length;f++)a=o[f],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}var ad=v&&"documentMode"in document&&11>=document.documentMode,vl=null,ws=null,Vc=null,pv=!1;function eg(a,o,f){var m=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;pv||vl==null||vl!==Ae(m)||(m=vl,"selectionStart"in m&&Fc(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),Vc&&mu(Vc,m)||(Vc=m,m=ld(ws,"onSelect"),0<m.length&&(o=new wt("onSelect","select",null,o,f),a.push({event:o,listeners:m}),o.target=vl)))}function id(a,o){var f={};return f[a.toLowerCase()]=o.toLowerCase(),f["Webkit"+a]="webkit"+o,f["Moz"+a]="moz"+o,f}var gu={animationend:id("Animation","AnimationEnd"),animationiteration:id("Animation","AnimationIteration"),animationstart:id("Animation","AnimationStart"),transitionend:id("Transition","TransitionEnd")},od={},tg={};v&&(tg=document.createElement("div").style,"AnimationEvent"in window||(delete gu.animationend.animation,delete gu.animationiteration.animation,delete gu.animationstart.animation),"TransitionEvent"in window||delete gu.transitionend.transition);function Bc(a){if(od[a])return od[a];if(!gu[a])return a;var o=gu[a],f;for(f in o)if(o.hasOwnProperty(f)&&f in tg)return od[a]=o[f];return a}var Zr=Bc("animationend"),vv=Bc("animationiteration"),ng=Bc("animationstart"),rg=Bc("transitionend"),ag=new Map,ig="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rs(a,o){ag.set(a,o),d(o,[a])}for(var sd=0;sd<ig.length;sd++){var zc=ig[sd],Hc=zc.toLowerCase(),oC=zc[0].toUpperCase()+zc.slice(1);Rs(Hc,"on"+oC)}Rs(Zr,"onAnimationEnd"),Rs(vv,"onAnimationIteration"),Rs(ng,"onAnimationStart"),Rs("dblclick","onDoubleClick"),Rs("focusin","onFocus"),Rs("focusout","onBlur"),Rs(rg,"onTransitionEnd"),h("onMouseEnter",["mouseout","mouseover"]),h("onMouseLeave",["mouseout","mouseover"]),h("onPointerEnter",["pointerout","pointerover"]),h("onPointerLeave",["pointerout","pointerover"]),d("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),d("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),d("onBeforeInput",["compositionend","keypress","textInput","paste"]),d("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),sC=new Set("cancel close invalid load scroll toggle".split(" ").concat(Vo));function og(a,o,f){var m=a.type||"unknown-event";a.currentTarget=f,Ue(m,o,void 0,a),a.currentTarget=null}function sg(a,o){o=(o&4)!==0;for(var f=0;f<a.length;f++){var m=a[f],S=m.event;m=m.listeners;e:{var w=void 0;if(o)for(var k=m.length-1;0<=k;k--){var W=m[k],Q=W.instance,pe=W.currentTarget;if(W=W.listener,Q!==w&&S.isPropagationStopped())break e;og(S,W,pe),w=Q}else for(k=0;k<m.length;k++){if(W=m[k],Q=W.instance,pe=W.currentTarget,W=W.listener,Q!==w&&S.isPropagationStopped())break e;og(S,W,pe),w=Q}}}if(Ua)throw a=_o,Ua=!1,_o=null,a}function Tn(a,o){var f=o[wv];f===void 0&&(f=o[wv]=new Set);var m=a+"__bubble";f.has(m)||(hv(o,a,2,!1),f.add(m))}function Uc(a,o,f){var m=0;o&&(m|=4),hv(f,a,m,o)}var Bo="_reactListening"+Math.random().toString(36).slice(2);function ro(a){if(!a[Bo]){a[Bo]=!0,u.forEach(function(f){f!=="selectionchange"&&(sC.has(f)||Uc(f,!1,a),Uc(f,!0,a))});var o=a.nodeType===9?a:a.ownerDocument;o===null||o[Bo]||(o[Bo]=!0,Uc("selectionchange",!1,o))}}function hv(a,o,f,m){switch(Oc(o)){case 1:var S=Do;break;case 4:S=fu;break;default:S=no}f=S.bind(null,o,f,a),S=void 0,!Li||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(S=!0),m?S!==void 0?a.addEventListener(o,f,{capture:!0,passive:S}):a.addEventListener(o,f,!0):S!==void 0?a.addEventListener(o,f,{passive:S}):a.addEventListener(o,f,!1)}function mv(a,o,f,m,S){var w=m;if(!(o&1)&&!(o&2)&&m!==null)e:for(;;){if(m===null)return;var k=m.tag;if(k===3||k===4){var W=m.stateNode.containerInfo;if(W===S||W.nodeType===8&&W.parentNode===S)break;if(k===4)for(k=m.return;k!==null;){var Q=k.tag;if((Q===3||Q===4)&&(Q=k.stateNode.containerInfo,Q===S||Q.nodeType===8&&Q.parentNode===S))return;k=k.return}for(;W!==null;){if(k=Ho(W),k===null)return;if(Q=k.tag,Q===5||Q===6){m=w=k;continue e}W=W.parentNode}}m=m.return}hs(function(){var pe=w,Me=Xr(f),Pe=[];e:{var De=ag.get(a);if(De!==void 0){var Ye=wt,nt=a;switch(a){case"keypress":if(ue(f)===0)break e;case"keydown":case"keyup":Ye=Lo;break;case"focusin":nt="focus",Ye=jc;break;case"focusout":nt="blur",Ye=jc;break;case"beforeblur":case"afterblur":Ye=jc;break;case"click":if(f.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ye=Zt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ye=vu;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ye=sv;break;case Zr:case vv:case ng:Ye=Dc;break;case rg:Ye=nd;break;case"scroll":Ye=fn;break;case"wheel":Ye=Ea;break;case"copy":case"cut":case"paste":Ye=av;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ye=td}var ot=(o&4)!==0,fr=!ot&&a==="scroll",ae=ot?De!==null?De+"Capture":null:De;ot=[];for(var ee=pe,se;ee!==null;){se=ee;var ze=se.stateNode;if(se.tag===5&&ze!==null&&(se=ze,ae!==null&&(ze=Mi(ee,ae),ze!=null&&ot.push(yu(ee,ze,se)))),fr)break;ee=ee.return}0<ot.length&&(De=new Ye(De,nt,null,f,Me),Pe.push({event:De,listeners:ot}))}}if(!(o&7)){e:{if(De=a==="mouseover"||a==="pointerover",Ye=a==="mouseout"||a==="pointerout",De&&f!==Gn&&(nt=f.relatedTarget||f.fromElement)&&(Ho(nt)||nt[zi]))break e;if((Ye||De)&&(De=Me.window===Me?Me:(De=Me.ownerDocument)?De.defaultView||De.parentWindow:window,Ye?(nt=f.relatedTarget||f.toElement,Ye=pe,nt=nt?Ho(nt):null,nt!==null&&(fr=We(nt),nt!==fr||nt.tag!==5&&nt.tag!==6)&&(nt=null)):(Ye=null,nt=pe),Ye!==nt)){if(ot=Zt,ze="onMouseLeave",ae="onMouseEnter",ee="mouse",(a==="pointerout"||a==="pointerover")&&(ot=td,ze="onPointerLeave",ae="onPointerEnter",ee="pointer"),fr=Ye==null?De:bu(Ye),se=nt==null?De:bu(nt),De=new ot(ze,ee+"leave",Ye,f,Me),De.target=fr,De.relatedTarget=se,ze=null,Ho(Me)===pe&&(ot=new ot(ae,ee+"enter",nt,f,Me),ot.target=se,ot.relatedTarget=fr,ze=ot),fr=ze,Ye&&nt)t:{for(ot=Ye,ae=nt,ee=0,se=ot;se;se=hl(se))ee++;for(se=0,ze=ae;ze;ze=hl(ze))se++;for(;0<ee-se;)ot=hl(ot),ee--;for(;0<se-ee;)ae=hl(ae),se--;for(;ee--;){if(ot===ae||ae!==null&&ot===ae.alternate)break t;ot=hl(ot),ae=hl(ae)}ot=null}else ot=null;Ye!==null&&gv(Pe,De,Ye,ot,!1),nt!==null&&fr!==null&&gv(Pe,fr,nt,ot,!0)}}e:{if(De=pe?bu(pe):window,Ye=De.nodeName&&De.nodeName.toLowerCase(),Ye==="select"||Ye==="input"&&De.type==="file")var lt=cv;else if(uv(De))if(fv)lt=iC;else{lt=rC;var Ct=nC}else(Ye=De.nodeName)&&Ye.toLowerCase()==="input"&&(De.type==="checkbox"||De.type==="radio")&&(lt=aC);if(lt&&(lt=lt(a,pe))){$m(Pe,lt,f,Me);break e}Ct&&Ct(a,De,pe),a==="focusout"&&(Ct=De._wrapperState)&&Ct.controlled&&De.type==="number"&&_n(De,"number",De.value)}switch(Ct=pe?bu(pe):window,a){case"focusin":(uv(Ct)||Ct.contentEditable==="true")&&(vl=Ct,ws=pe,Vc=null);break;case"focusout":Vc=ws=vl=null;break;case"mousedown":pv=!0;break;case"contextmenu":case"mouseup":case"dragend":pv=!1,eg(Pe,f,Me);break;case"selectionchange":if(ad)break;case"keydown":case"keyup":eg(Pe,f,Me)}var rt;if(Kn)e:{switch(a){case"compositionstart":var St="onCompositionStart";break e;case"compositionend":St="onCompositionEnd";break e;case"compositionupdate":St="onCompositionUpdate";break e}St=void 0}else Es?Hm(a,f)&&(St="onCompositionEnd"):a==="keydown"&&f.keyCode===229&&(St="onCompositionStart");St&&(Mc&&f.locale!=="ko"&&(Es||St!=="onCompositionStart"?St==="onCompositionEnd"&&Es&&(rt=X()):(Vi=Me,pu="value"in Vi?Vi.value:Vi.textContent,Es=!0)),Ct=ld(pe,St),0<Ct.length&&(St=new Lm(St,a,null,f,Me),Pe.push({event:St,listeners:Ct}),rt?St.data=rt:(rt=Um(f),rt!==null&&(St.data=rt)))),(rt=lv?K0(a,f):eC(a,f))&&(pe=ld(pe,"onBeforeInput"),0<pe.length&&(Me=new Lm("onBeforeInput","beforeinput",null,f,Me),Pe.push({event:Me,listeners:pe}),Me.data=rt))}sg(Pe,o)})}function yu(a,o,f){return{instance:a,listener:o,currentTarget:f}}function ld(a,o){for(var f=o+"Capture",m=[];a!==null;){var S=a,w=S.stateNode;S.tag===5&&w!==null&&(S=w,w=Mi(a,f),w!=null&&m.unshift(yu(a,w,S)),w=Mi(a,o),w!=null&&m.push(yu(a,w,S))),a=a.return}return m}function hl(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5);return a||null}function gv(a,o,f,m,S){for(var w=o._reactName,k=[];f!==null&&f!==m;){var W=f,Q=W.alternate,pe=W.stateNode;if(Q!==null&&Q===m)break;W.tag===5&&pe!==null&&(W=pe,S?(Q=Mi(f,w),Q!=null&&k.unshift(yu(f,Q,W))):S||(Q=Mi(f,w),Q!=null&&k.push(yu(f,Q,W)))),f=f.return}k.length!==0&&a.push({event:o,listeners:k})}var lg=/\r\n?/g,yv=/\u0000|\uFFFD/g;function ug(a){return(typeof a=="string"?a:""+a).replace(lg,`
|
|
94
|
+
`).replace(yv,"")}function $c(a,o,f){if(o=ug(o),ug(a)!==o&&f)throw Error(i(425))}function ud(){}var bv=null,Cv=null;function ml(a,o){return a==="textarea"||a==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Gc=typeof setTimeout=="function"?setTimeout:void 0,Wc=typeof clearTimeout=="function"?clearTimeout:void 0,xv=typeof Promise=="function"?Promise:void 0,cg=typeof queueMicrotask=="function"?queueMicrotask:typeof xv<"u"?function(a){return xv.resolve(null).then(a).catch(Sv)}:Gc;function Sv(a){setTimeout(function(){throw a})}function Ev(a,o){var f=o,m=0;do{var S=f.nextSibling;if(a.removeChild(f),S&&S.nodeType===8)if(f=S.data,f==="/$"){if(m===0){a.removeChild(S),li(o);return}m--}else f!=="$"&&f!=="$?"&&f!=="$!"||m++;f=S}while(f);li(o)}function Ga(a){for(;a!=null;a=a.nextSibling){var o=a.nodeType;if(o===1||o===3)break;if(o===8){if(o=a.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return a}function Xc(a){a=a.previousSibling;for(var o=0;a;){if(a.nodeType===8){var f=a.data;if(f==="$"||f==="$!"||f==="$?"){if(o===0)return a;o--}else f==="/$"&&o++}a=a.previousSibling}return null}var zo=Math.random().toString(36).slice(2),ui="__reactFiber$"+zo,Yc="__reactProps$"+zo,zi="__reactContainer$"+zo,wv="__reactEvents$"+zo,lC="__reactListeners$"+zo,uC="__reactHandles$"+zo;function Ho(a){var o=a[ui];if(o)return o;for(var f=a.parentNode;f;){if(o=f[zi]||f[ui]){if(f=o.alternate,o.child!==null||f!==null&&f.child!==null)for(a=Xc(a);a!==null;){if(f=a[ui])return f;a=Xc(a)}return o}a=f,f=a.parentNode}return null}function ao(a){return a=a[ui]||a[zi],!a||a.tag!==5&&a.tag!==6&&a.tag!==13&&a.tag!==3?null:a}function bu(a){if(a.tag===5||a.tag===6)return a.stateNode;throw Error(i(33))}function cd(a){return a[Yc]||null}var ht=[],Hi=-1;function In(a){return{current:a}}function st(a){0>Hi||(a.current=ht[Hi],ht[Hi]=null,Hi--)}function tn(a,o){Hi++,ht[Hi]=a.current,a.current=o}var ci={},Nr=In(ci),Ot=In(!1),aa=ci;function Wa(a,o){var f=a.type.contextTypes;if(!f)return ci;var m=a.stateNode;if(m&&m.__reactInternalMemoizedUnmaskedChildContext===o)return m.__reactInternalMemoizedMaskedChildContext;var S={},w;for(w in f)S[w]=o[w];return m&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=o,a.__reactInternalMemoizedMaskedChildContext=S),S}function vr(a){return a=a.childContextTypes,a!=null}function wa(){st(Ot),st(Nr)}function io(a,o,f){if(Nr.current!==ci)throw Error(i(168));tn(Nr,o),tn(Ot,f)}function Ts(a,o,f){var m=a.stateNode;if(o=o.childContextTypes,typeof m.getChildContext!="function")return f;m=m.getChildContext();for(var S in m)if(!(S in o))throw Error(i(108,ve(a)||"Unknown",S));return G({},f,m)}function gl(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||ci,aa=Nr.current,tn(Nr,a),tn(Ot,Ot.current),!0}function fg(a,o,f){var m=a.stateNode;if(!m)throw Error(i(169));f?(a=Ts(a,o,aa),m.__reactInternalMemoizedMergedChildContext=a,st(Ot),st(Nr),tn(Nr,a)):st(Ot),tn(Ot,f)}var Uo=null,Is=!1,Lr=!1;function fd(a){Uo===null?Uo=[a]:Uo.push(a)}function dg(a){Is=!0,fd(a)}function oo(){if(!Lr&&Uo!==null){Lr=!0;var a=0,o=Ut;try{var f=Uo;for(Ut=1;a<f.length;a++){var m=f[a];do m=m(!0);while(m!==null)}Uo=null,Is=!1}catch(S){throw Uo!==null&&(Uo=Uo.slice(a+1)),An(Cc,oo),S}finally{Ut=o,Lr=!1}}return null}var fi=[],Ns=0,di=null,yl=0,Ra=[],Ta=0,Ui=null,Ia=1,Pr="";function bl(a,o){fi[Ns++]=yl,fi[Ns++]=di,di=a,yl=o}function _s(a,o,f){Ra[Ta++]=Ia,Ra[Ta++]=Pr,Ra[Ta++]=Ui,Ui=a;var m=Ia;a=Pr;var S=32-ra(m)-1;m&=~(1<<S),f+=1;var w=32-ra(o)+S;if(30<w){var k=S-S%5;w=(m&(1<<k)-1).toString(32),m>>=k,S-=k,Ia=1<<32-ra(o)+S|f<<S|m,Pr=w+a}else Ia=1<<w|f<<S|m,Pr=a}function dd(a){a.return!==null&&(bl(a,1),_s(a,1,0))}function pd(a){for(;a===di;)di=fi[--Ns],fi[Ns]=null,yl=fi[--Ns],fi[Ns]=null;for(;a===Ui;)Ui=Ra[--Ta],Ra[Ta]=null,Pr=Ra[--Ta],Ra[Ta]=null,Ia=Ra[--Ta],Ra[Ta]=null}var Xa=null,Ya=null,Bn=!1,pi=null;function Rv(a,o){var f=xi(5,null,null,0);f.elementType="DELETED",f.stateNode=o,f.return=a,o=a.deletions,o===null?(a.deletions=[f],a.flags|=16):o.push(f)}function Tv(a,o){switch(a.tag){case 5:var f=a.type;return o=o.nodeType!==1||f.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(a.stateNode=o,Xa=a,Ya=Ga(o.firstChild),!0):!1;case 6:return o=a.pendingProps===""||o.nodeType!==3?null:o,o!==null?(a.stateNode=o,Xa=a,Ya=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(f=Ui!==null?{id:Ia,overflow:Pr}:null,a.memoizedState={dehydrated:o,treeContext:f,retryLane:1073741824},f=xi(18,null,null,0),f.stateNode=o,f.return=a,a.child=f,Xa=a,Ya=null,!0):!1;default:return!1}}function Iv(a){return(a.mode&1)!==0&&(a.flags&128)===0}function vd(a){if(Bn){var o=Ya;if(o){var f=o;if(!Tv(a,o)){if(Iv(a))throw Error(i(418));o=Ga(f.nextSibling);var m=Xa;o&&Tv(a,o)?Rv(m,f):(a.flags=a.flags&-4097|2,Bn=!1,Xa=a)}}else{if(Iv(a))throw Error(i(418));a.flags=a.flags&-4097|2,Bn=!1,Xa=a}}}function Nv(a){for(a=a.return;a!==null&&a.tag!==5&&a.tag!==3&&a.tag!==13;)a=a.return;Xa=a}function hd(a){if(a!==Xa)return!1;if(!Bn)return Nv(a),Bn=!0,!1;var o;if((o=a.tag!==3)&&!(o=a.tag!==5)&&(o=a.type,o=o!=="head"&&o!=="body"&&!ml(a.type,a.memoizedProps)),o&&(o=Ya)){if(Iv(a))throw pg(),Error(i(418));for(;o;)Rv(a,o),o=Ga(o.nextSibling)}if(Nv(a),a.tag===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(i(317));e:{for(a=a.nextSibling,o=0;a;){if(a.nodeType===8){var f=a.data;if(f==="/$"){if(o===0){Ya=Ga(a.nextSibling);break e}o--}else f!=="$"&&f!=="$!"&&f!=="$?"||o++}a=a.nextSibling}Ya=null}}else Ya=Xa?Ga(a.stateNode.nextSibling):null;return!0}function pg(){for(var a=Ya;a;)a=Ga(a.nextSibling)}function Cu(){Ya=Xa=null,Bn=!1}function hr(a){pi===null?pi=[a]:pi.push(a)}var cC=H.ReactCurrentBatchConfig;function Na(a,o){if(a&&a.defaultProps){o=G({},o),a=a.defaultProps;for(var f in a)o[f]===void 0&&(o[f]=a[f]);return o}return o}var xu=In(null),so=null,Su=null,Zc=null;function _v(){Zc=Su=so=null}function Ov(a){var o=xu.current;st(xu),a._currentValue=o}function Os(a,o,f){for(;a!==null;){var m=a.alternate;if((a.childLanes&o)!==o?(a.childLanes|=o,m!==null&&(m.childLanes|=o)):m!==null&&(m.childLanes&o)!==o&&(m.childLanes|=o),a===f)break;a=a.return}}function or(a,o){so=a,Zc=Su=null,a=a.dependencies,a!==null&&a.firstContext!==null&&(a.lanes&o&&(Aa=!0),a.firstContext=null)}function He(a){var o=a._currentValue;if(Zc!==a)if(a={context:a,memoizedValue:o,next:null},Su===null){if(so===null)throw Error(i(308));Su=a,so.dependencies={lanes:0,firstContext:a}}else Su=Su.next=a;return o}var Jr=null;function Za(a){Jr===null?Jr=[a]:Jr.push(a)}function vg(a,o,f,m){var S=o.interleaved;return S===null?(f.next=f,Za(o)):(f.next=S.next,S.next=f),o.interleaved=f,$o(a,m)}function $o(a,o){a.lanes|=o;var f=a.alternate;for(f!==null&&(f.lanes|=o),f=a,a=a.return;a!==null;)a.childLanes|=o,f=a.alternate,f!==null&&(f.childLanes|=o),f=a,a=a.return;return f.tag===3?f.stateNode:null}var As=!1;function Av(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hg(a,o){a=a.updateQueue,o.updateQueue===a&&(o.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects})}function kn(a,o){return{eventTime:a,lane:o,tag:0,payload:null,callback:null,next:null}}function js(a,o,f){var m=a.updateQueue;if(m===null)return null;if(m=m.shared,zt&2){var S=m.pending;return S===null?o.next=o:(o.next=S.next,S.next=o),m.pending=o,$o(a,f)}return S=m.interleaved,S===null?(o.next=o,Za(m)):(o.next=S.next,S.next=o),m.interleaved=o,$o(a,f)}function md(a,o,f){if(o=o.updateQueue,o!==null&&(o=o.shared,(f&4194240)!==0)){var m=o.lanes;m&=a.pendingLanes,f|=m,o.lanes=f,Tc(a,f)}}function mg(a,o){var f=a.updateQueue,m=a.alternate;if(m!==null&&(m=m.updateQueue,f===m)){var S=null,w=null;if(f=f.firstBaseUpdate,f!==null){do{var k={eventTime:f.eventTime,lane:f.lane,tag:f.tag,payload:f.payload,callback:f.callback,next:null};w===null?S=w=k:w=w.next=k,f=f.next}while(f!==null);w===null?S=w=o:w=w.next=o}else S=w=o;f={baseState:m.baseState,firstBaseUpdate:S,lastBaseUpdate:w,shared:m.shared,effects:m.effects},a.updateQueue=f;return}a=f.lastBaseUpdate,a===null?f.firstBaseUpdate=o:a.next=o,f.lastBaseUpdate=o}function Jc(a,o,f,m){var S=a.updateQueue;As=!1;var w=S.firstBaseUpdate,k=S.lastBaseUpdate,W=S.shared.pending;if(W!==null){S.shared.pending=null;var Q=W,pe=Q.next;Q.next=null,k===null?w=pe:k.next=pe,k=Q;var Me=a.alternate;Me!==null&&(Me=Me.updateQueue,W=Me.lastBaseUpdate,W!==k&&(W===null?Me.firstBaseUpdate=pe:W.next=pe,Me.lastBaseUpdate=Q))}if(w!==null){var Pe=S.baseState;k=0,Me=pe=Q=null,W=w;do{var De=W.lane,Ye=W.eventTime;if((m&De)===De){Me!==null&&(Me=Me.next={eventTime:Ye,lane:0,tag:W.tag,payload:W.payload,callback:W.callback,next:null});e:{var nt=a,ot=W;switch(De=o,Ye=f,ot.tag){case 1:if(nt=ot.payload,typeof nt=="function"){Pe=nt.call(Ye,Pe,De);break e}Pe=nt;break e;case 3:nt.flags=nt.flags&-65537|128;case 0:if(nt=ot.payload,De=typeof nt=="function"?nt.call(Ye,Pe,De):nt,De==null)break e;Pe=G({},Pe,De);break e;case 2:As=!0}}W.callback!==null&&W.lane!==0&&(a.flags|=64,De=S.effects,De===null?S.effects=[W]:De.push(W))}else Ye={eventTime:Ye,lane:De,tag:W.tag,payload:W.payload,callback:W.callback,next:null},Me===null?(pe=Me=Ye,Q=Pe):Me=Me.next=Ye,k|=De;if(W=W.next,W===null){if(W=S.shared.pending,W===null)break;De=W,W=De.next,De.next=null,S.lastBaseUpdate=De,S.shared.pending=null}}while(!0);if(Me===null&&(Q=Pe),S.baseState=Q,S.firstBaseUpdate=pe,S.lastBaseUpdate=Me,o=S.shared.interleaved,o!==null){S=o;do k|=S.lane,S=S.next;while(S!==o)}else w===null&&(S.shared.lanes=0);Al|=k,a.lanes=k,a.memoizedState=Pe}}function Eu(a,o,f){if(a=o.effects,o.effects=null,a!==null)for(o=0;o<a.length;o++){var m=a[o],S=m.callback;if(S!==null){if(m.callback=null,m=f,typeof S!="function")throw Error(i(191,S));S.call(m)}}}var Cl=new n.Component().refs;function jv(a,o,f,m){o=a.memoizedState,f=f(m,o),f=f==null?o:G({},o,f),a.memoizedState=f,a.lanes===0&&(a.updateQueue.baseState=f)}var gd={isMounted:function(a){return(a=a._reactInternals)?We(a)===a:!1},enqueueSetState:function(a,o,f){a=a._reactInternals;var m=Ar(),S=Yo(a),w=kn(m,S);w.payload=o,f!=null&&(w.callback=f),o=js(a,w,S),o!==null&&(Zn(o,a,S,m),md(o,a,S))},enqueueReplaceState:function(a,o,f){a=a._reactInternals;var m=Ar(),S=Yo(a),w=kn(m,S);w.tag=1,w.payload=o,f!=null&&(w.callback=f),o=js(a,w,S),o!==null&&(Zn(o,a,S,m),md(o,a,S))},enqueueForceUpdate:function(a,o){a=a._reactInternals;var f=Ar(),m=Yo(a),S=kn(f,m);S.tag=2,o!=null&&(S.callback=o),o=js(a,S,m),o!==null&&(Zn(o,a,m,f),md(o,a,m))}};function gg(a,o,f,m,S,w,k){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(m,w,k):o.prototype&&o.prototype.isPureReactComponent?!mu(f,m)||!mu(S,w):!0}function yg(a,o,f){var m=!1,S=ci,w=o.contextType;return typeof w=="object"&&w!==null?w=He(w):(S=vr(o)?aa:Nr.current,m=o.contextTypes,w=(m=m!=null)?Wa(a,S):ci),o=new o(f,w),a.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=gd,a.stateNode=o,o._reactInternals=a,m&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=S,a.__reactInternalMemoizedMaskedChildContext=w),o}function bg(a,o,f,m){a=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(f,m),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(f,m),o.state!==a&&gd.enqueueReplaceState(o,o.state,null)}function Dv(a,o,f,m){var S=a.stateNode;S.props=f,S.state=a.memoizedState,S.refs=Cl,Av(a);var w=o.contextType;typeof w=="object"&&w!==null?S.context=He(w):(w=vr(o)?aa:Nr.current,S.context=Wa(a,w)),S.state=a.memoizedState,w=o.getDerivedStateFromProps,typeof w=="function"&&(jv(a,o,w,f),S.state=a.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof S.getSnapshotBeforeUpdate=="function"||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(o=S.state,typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount(),o!==S.state&&gd.enqueueReplaceState(S,S.state,null),Jc(a,f,S,m),S.state=a.memoizedState),typeof S.componentDidMount=="function"&&(a.flags|=4194308)}function wu(a,o,f){if(a=f.ref,a!==null&&typeof a!="function"&&typeof a!="object"){if(f._owner){if(f=f._owner,f){if(f.tag!==1)throw Error(i(309));var m=f.stateNode}if(!m)throw Error(i(147,a));var S=m,w=""+a;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===w?o.ref:(o=function(k){var W=S.refs;W===Cl&&(W=S.refs={}),k===null?delete W[w]:W[w]=k},o._stringRef=w,o)}if(typeof a!="string")throw Error(i(284));if(!f._owner)throw Error(i(290,a))}return a}function qc(a,o){throw a=Object.prototype.toString.call(o),Error(i(31,a==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":a))}function Cg(a){var o=a._init;return o(a._payload)}function xg(a){function o(ae,ee){if(a){var se=ae.deletions;se===null?(ae.deletions=[ee],ae.flags|=16):se.push(ee)}}function f(ae,ee){if(!a)return null;for(;ee!==null;)o(ae,ee),ee=ee.sibling;return null}function m(ae,ee){for(ae=new Map;ee!==null;)ee.key!==null?ae.set(ee.key,ee):ae.set(ee.index,ee),ee=ee.sibling;return ae}function S(ae,ee){return ae=Bs(ae,ee),ae.index=0,ae.sibling=null,ae}function w(ae,ee,se){return ae.index=se,a?(se=ae.alternate,se!==null?(se=se.index,se<ee?(ae.flags|=2,ee):se):(ae.flags|=2,ee)):(ae.flags|=1048576,ee)}function k(ae){return a&&ae.alternate===null&&(ae.flags|=2),ae}function W(ae,ee,se,ze){return ee===null||ee.tag!==6?(ee=Qd(se,ae.mode,ze),ee.return=ae,ee):(ee=S(ee,se),ee.return=ae,ee)}function Q(ae,ee,se,ze){var lt=se.type;return lt===J?Me(ae,ee,se.props.children,ze,se.key):ee!==null&&(ee.elementType===lt||typeof lt=="object"&<!==null&<.$$typeof===je&&Cg(lt)===ee.type)?(ze=S(ee,se.props),ze.ref=wu(ae,ee,se),ze.return=ae,ze):(ze=Jd(se.type,se.key,se.props,null,ae.mode,ze),ze.ref=wu(ae,ee,se),ze.return=ae,ze)}function pe(ae,ee,se,ze){return ee===null||ee.tag!==4||ee.stateNode.containerInfo!==se.containerInfo||ee.stateNode.implementation!==se.implementation?(ee=gf(se,ae.mode,ze),ee.return=ae,ee):(ee=S(ee,se.children||[]),ee.return=ae,ee)}function Me(ae,ee,se,ze,lt){return ee===null||ee.tag!==7?(ee=Ml(se,ae.mode,ze,lt),ee.return=ae,ee):(ee=S(ee,se),ee.return=ae,ee)}function Pe(ae,ee,se){if(typeof ee=="string"&&ee!==""||typeof ee=="number")return ee=Qd(""+ee,ae.mode,se),ee.return=ae,ee;if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case z:return se=Jd(ee.type,ee.key,ee.props,null,ae.mode,se),se.ref=wu(ae,null,ee),se.return=ae,se;case U:return ee=gf(ee,ae.mode,se),ee.return=ae,ee;case je:var ze=ee._init;return Pe(ae,ze(ee._payload),se)}if(Vt(ee)||_e(ee))return ee=Ml(ee,ae.mode,se,null),ee.return=ae,ee;qc(ae,ee)}return null}function De(ae,ee,se,ze){var lt=ee!==null?ee.key:null;if(typeof se=="string"&&se!==""||typeof se=="number")return lt!==null?null:W(ae,ee,""+se,ze);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case z:return se.key===lt?Q(ae,ee,se,ze):null;case U:return se.key===lt?pe(ae,ee,se,ze):null;case je:return lt=se._init,De(ae,ee,lt(se._payload),ze)}if(Vt(se)||_e(se))return lt!==null?null:Me(ae,ee,se,ze,null);qc(ae,se)}return null}function Ye(ae,ee,se,ze,lt){if(typeof ze=="string"&&ze!==""||typeof ze=="number")return ae=ae.get(se)||null,W(ee,ae,""+ze,lt);if(typeof ze=="object"&&ze!==null){switch(ze.$$typeof){case z:return ae=ae.get(ze.key===null?se:ze.key)||null,Q(ee,ae,ze,lt);case U:return ae=ae.get(ze.key===null?se:ze.key)||null,pe(ee,ae,ze,lt);case je:var Ct=ze._init;return Ye(ae,ee,se,Ct(ze._payload),lt)}if(Vt(ze)||_e(ze))return ae=ae.get(se)||null,Me(ee,ae,ze,lt,null);qc(ee,ze)}return null}function nt(ae,ee,se,ze){for(var lt=null,Ct=null,rt=ee,St=ee=0,Sr=null;rt!==null&&St<se.length;St++){rt.index>St?(Sr=rt,rt=null):Sr=rt.sibling;var nn=De(ae,rt,se[St],ze);if(nn===null){rt===null&&(rt=Sr);break}a&&rt&&nn.alternate===null&&o(ae,rt),ee=w(nn,ee,St),Ct===null?lt=nn:Ct.sibling=nn,Ct=nn,rt=Sr}if(St===se.length)return f(ae,rt),Bn&&bl(ae,St),lt;if(rt===null){for(;St<se.length;St++)rt=Pe(ae,se[St],ze),rt!==null&&(ee=w(rt,ee,St),Ct===null?lt=rt:Ct.sibling=rt,Ct=rt);return Bn&&bl(ae,St),lt}for(rt=m(ae,rt);St<se.length;St++)Sr=Ye(rt,ae,St,se[St],ze),Sr!==null&&(a&&Sr.alternate!==null&&rt.delete(Sr.key===null?St:Sr.key),ee=w(Sr,ee,St),Ct===null?lt=Sr:Ct.sibling=Sr,Ct=Sr);return a&&rt.forEach(function(Zo){return o(ae,Zo)}),Bn&&bl(ae,St),lt}function ot(ae,ee,se,ze){var lt=_e(se);if(typeof lt!="function")throw Error(i(150));if(se=lt.call(se),se==null)throw Error(i(151));for(var Ct=lt=null,rt=ee,St=ee=0,Sr=null,nn=se.next();rt!==null&&!nn.done;St++,nn=se.next()){rt.index>St?(Sr=rt,rt=null):Sr=rt.sibling;var Zo=De(ae,rt,nn.value,ze);if(Zo===null){rt===null&&(rt=Sr);break}a&&rt&&Zo.alternate===null&&o(ae,rt),ee=w(Zo,ee,St),Ct===null?lt=Zo:Ct.sibling=Zo,Ct=Zo,rt=Sr}if(nn.done)return f(ae,rt),Bn&&bl(ae,St),lt;if(rt===null){for(;!nn.done;St++,nn=se.next())nn=Pe(ae,nn.value,ze),nn!==null&&(ee=w(nn,ee,St),Ct===null?lt=nn:Ct.sibling=nn,Ct=nn);return Bn&&bl(ae,St),lt}for(rt=m(ae,rt);!nn.done;St++,nn=se.next())nn=Ye(rt,ae,St,nn.value,ze),nn!==null&&(a&&nn.alternate!==null&&rt.delete(nn.key===null?St:nn.key),ee=w(nn,ee,St),Ct===null?lt=nn:Ct.sibling=nn,Ct=nn);return a&&rt.forEach(function(_C){return o(ae,_C)}),Bn&&bl(ae,St),lt}function fr(ae,ee,se,ze){if(typeof se=="object"&&se!==null&&se.type===J&&se.key===null&&(se=se.props.children),typeof se=="object"&&se!==null){switch(se.$$typeof){case z:e:{for(var lt=se.key,Ct=ee;Ct!==null;){if(Ct.key===lt){if(lt=se.type,lt===J){if(Ct.tag===7){f(ae,Ct.sibling),ee=S(Ct,se.props.children),ee.return=ae,ae=ee;break e}}else if(Ct.elementType===lt||typeof lt=="object"&<!==null&<.$$typeof===je&&Cg(lt)===Ct.type){f(ae,Ct.sibling),ee=S(Ct,se.props),ee.ref=wu(ae,Ct,se),ee.return=ae,ae=ee;break e}f(ae,Ct);break}else o(ae,Ct);Ct=Ct.sibling}se.type===J?(ee=Ml(se.props.children,ae.mode,ze,se.key),ee.return=ae,ae=ee):(ze=Jd(se.type,se.key,se.props,null,ae.mode,ze),ze.ref=wu(ae,ee,se),ze.return=ae,ae=ze)}return k(ae);case U:e:{for(Ct=se.key;ee!==null;){if(ee.key===Ct)if(ee.tag===4&&ee.stateNode.containerInfo===se.containerInfo&&ee.stateNode.implementation===se.implementation){f(ae,ee.sibling),ee=S(ee,se.children||[]),ee.return=ae,ae=ee;break e}else{f(ae,ee);break}else o(ae,ee);ee=ee.sibling}ee=gf(se,ae.mode,ze),ee.return=ae,ae=ee}return k(ae);case je:return Ct=se._init,fr(ae,ee,Ct(se._payload),ze)}if(Vt(se))return nt(ae,ee,se,ze);if(_e(se))return ot(ae,ee,se,ze);qc(ae,se)}return typeof se=="string"&&se!==""||typeof se=="number"?(se=""+se,ee!==null&&ee.tag===6?(f(ae,ee.sibling),ee=S(ee,se),ee.return=ae,ae=ee):(f(ae,ee),ee=Qd(se,ae.mode,ze),ee.return=ae,ae=ee),k(ae)):f(ae,ee)}return fr}var Ru=xg(!0),Sg=xg(!1),Qc={},lo=In(Qc),Tu=In(Qc),Kc=In(Qc);function Ds(a){if(a===Qc)throw Error(i(174));return a}function kv(a,o){switch(tn(Kc,o),tn(Tu,a),tn(lo,Qc),a=o.nodeType,a){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:Pn(null,"");break;default:a=a===8?o.parentNode:o,o=a.namespaceURI||null,a=a.tagName,o=Pn(o,a)}st(lo),tn(lo,o)}function Iu(){st(lo),st(Tu),st(Kc)}function yd(a){Ds(Kc.current);var o=Ds(lo.current),f=Pn(o,a.type);o!==f&&(tn(Tu,a),tn(lo,f))}function mt(a){Tu.current===a&&(st(lo),st(Tu))}var ut=In(0);function Qt(a){for(var o=a;o!==null;){if(o.tag===13){var f=o.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||f.data==="$?"||f.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if(o.flags&128)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var er=[];function hi(){for(var a=0;a<er.length;a++)er[a]._workInProgressVersionPrimary=null;er.length=0}var ef=H.ReactCurrentDispatcher,Mv=H.ReactCurrentBatchConfig,xl=0,Yn=null,sr=null,Ee=null,lr=!1,bt=!1,uo=0,Go=0;function tr(){throw Error(i(321))}function mi(a,o){if(o===null)return!1;for(var f=0;f<o.length&&f<a.length;f++)if(!Bi(a[f],o[f]))return!1;return!0}function Sl(a,o,f,m,S,w){if(xl=w,Yn=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,ef.current=a===null||a.memoizedState===null?fC:dC,a=f(m,S),bt){w=0;do{if(bt=!1,uo=0,25<=w)throw Error(i(301));w+=1,Ee=sr=null,o.updateQueue=null,ef.current=pC,a=f(m,S)}while(bt)}if(ef.current=jd,o=sr!==null&&sr.next!==null,xl=0,Ee=sr=Yn=null,lr=!1,o)throw Error(i(300));return a}function ks(){var a=uo!==0;return uo=0,a}function _a(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ee===null?Yn.memoizedState=Ee=a:Ee=Ee.next=a,Ee}function Oa(){if(sr===null){var a=Yn.alternate;a=a!==null?a.memoizedState:null}else a=sr.next;var o=Ee===null?Yn.memoizedState:Ee.next;if(o!==null)Ee=o,sr=a;else{if(a===null)throw Error(i(310));sr=a,a={memoizedState:sr.memoizedState,baseState:sr.baseState,baseQueue:sr.baseQueue,queue:sr.queue,next:null},Ee===null?Yn.memoizedState=Ee=a:Ee=Ee.next=a}return Ee}function El(a,o){return typeof o=="function"?o(a):o}function tf(a){var o=Oa(),f=o.queue;if(f===null)throw Error(i(311));f.lastRenderedReducer=a;var m=sr,S=m.baseQueue,w=f.pending;if(w!==null){if(S!==null){var k=S.next;S.next=w.next,w.next=k}m.baseQueue=S=w,f.pending=null}if(S!==null){w=S.next,m=m.baseState;var W=k=null,Q=null,pe=w;do{var Me=pe.lane;if((xl&Me)===Me)Q!==null&&(Q=Q.next={lane:0,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null}),m=pe.hasEagerState?pe.eagerState:a(m,pe.action);else{var Pe={lane:Me,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null};Q===null?(W=Q=Pe,k=m):Q=Q.next=Pe,Yn.lanes|=Me,Al|=Me}pe=pe.next}while(pe!==null&&pe!==w);Q===null?k=m:Q.next=W,Bi(m,o.memoizedState)||(Aa=!0),o.memoizedState=m,o.baseState=k,o.baseQueue=Q,f.lastRenderedState=m}if(a=f.interleaved,a!==null){S=a;do w=S.lane,Yn.lanes|=w,Al|=w,S=S.next;while(S!==a)}else S===null&&(f.lanes=0);return[o.memoizedState,f.dispatch]}function nf(a){var o=Oa(),f=o.queue;if(f===null)throw Error(i(311));f.lastRenderedReducer=a;var m=f.dispatch,S=f.pending,w=o.memoizedState;if(S!==null){f.pending=null;var k=S=S.next;do w=a(w,k.action),k=k.next;while(k!==S);Bi(w,o.memoizedState)||(Aa=!0),o.memoizedState=w,o.baseQueue===null&&(o.baseState=w),f.lastRenderedState=w}return[w,m]}function bd(){}function Cd(a,o){var f=Yn,m=Oa(),S=o(),w=!Bi(m.memoizedState,S);if(w&&(m.memoizedState=S,Aa=!0),m=m.queue,rf(Ed.bind(null,f,m,a),[a]),m.getSnapshot!==o||w||Ee!==null&&Ee.memoizedState.tag&1){if(f.flags|=2048,wl(9,Sd.bind(null,f,m,S,o),void 0,null),rr===null)throw Error(i(349));xl&30||xd(f,o,S)}return S}function xd(a,o,f){a.flags|=16384,a={getSnapshot:o,value:f},o=Yn.updateQueue,o===null?(o={lastEffect:null,stores:null},Yn.updateQueue=o,o.stores=[a]):(f=o.stores,f===null?o.stores=[a]:f.push(a))}function Sd(a,o,f,m){o.value=f,o.getSnapshot=m,wd(o)&&Rd(a)}function Ed(a,o,f){return f(function(){wd(o)&&Rd(a)})}function wd(a){var o=a.getSnapshot;a=a.value;try{var f=o();return!Bi(a,f)}catch{return!0}}function Rd(a){var o=$o(a,1);o!==null&&Zn(o,a,1,-1)}function Td(a){var o=_a();return typeof a=="function"&&(a=a()),o.memoizedState=o.baseState=a,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:El,lastRenderedState:a},o.queue=a,a=a.dispatch=Ad.bind(null,Yn,a),[o.memoizedState,a]}function wl(a,o,f,m){return a={tag:a,create:o,destroy:f,deps:m,next:null},o=Yn.updateQueue,o===null?(o={lastEffect:null,stores:null},Yn.updateQueue=o,o.lastEffect=a.next=a):(f=o.lastEffect,f===null?o.lastEffect=a.next=a:(m=f.next,f.next=a,a.next=m,o.lastEffect=a)),a}function Id(){return Oa().memoizedState}function Nu(a,o,f,m){var S=_a();Yn.flags|=a,S.memoizedState=wl(1|o,f,void 0,m===void 0?null:m)}function Rl(a,o,f,m){var S=Oa();m=m===void 0?null:m;var w=void 0;if(sr!==null){var k=sr.memoizedState;if(w=k.destroy,m!==null&&mi(m,k.deps)){S.memoizedState=wl(o,f,w,m);return}}Yn.flags|=a,S.memoizedState=wl(1|o,f,w,m)}function Tl(a,o){return Nu(8390656,8,a,o)}function rf(a,o){return Rl(2048,8,a,o)}function Nd(a,o){return Rl(4,2,a,o)}function _d(a,o){return Rl(4,4,a,o)}function Od(a,o){if(typeof o=="function")return a=a(),o(a),function(){o(null)};if(o!=null)return a=a(),o.current=a,function(){o.current=null}}function Lv(a,o,f){return f=f!=null?f.concat([a]):null,Rl(4,4,Od.bind(null,o,a),f)}function Il(){}function Pv(a,o){var f=Oa();o=o===void 0?null:o;var m=f.memoizedState;return m!==null&&o!==null&&mi(o,m[1])?m[0]:(f.memoizedState=[a,o],a)}function _u(a,o){var f=Oa();o=o===void 0?null:o;var m=f.memoizedState;return m!==null&&o!==null&&mi(o,m[1])?m[0]:(a=a(),f.memoizedState=[a,o],a)}function Ms(a,o,f){return xl&21?(Bi(f,o)||(f=ll(),Yn.lanes|=f,Al|=f,a.baseState=!0),o):(a.baseState&&(a.baseState=!1,Aa=!0),a.memoizedState=f)}function Ja(a,o){var f=Ut;Ut=f!==0&&4>f?f:4,a(!0);var m=Mv.transition;Mv.transition={};try{a(!1),o()}finally{Ut=f,Mv.transition=m}}function Eg(){return Oa().memoizedState}function Mn(a,o,f){var m=Yo(a);if(f={lane:m,action:f,hasEagerState:!1,eagerState:null,next:null},af(a))Ou(o,f);else if(f=vg(a,o,f,m),f!==null){var S=Ar();Zn(f,a,m,S),of(f,o,m)}}function Ad(a,o,f){var m=Yo(a),S={lane:m,action:f,hasEagerState:!1,eagerState:null,next:null};if(af(a))Ou(o,S);else{var w=a.alternate;if(a.lanes===0&&(w===null||w.lanes===0)&&(w=o.lastRenderedReducer,w!==null))try{var k=o.lastRenderedState,W=w(k,f);if(S.hasEagerState=!0,S.eagerState=W,Bi(W,k)){var Q=o.interleaved;Q===null?(S.next=S,Za(o)):(S.next=Q.next,Q.next=S),o.interleaved=S;return}}catch{}finally{}f=vg(a,o,S,m),f!==null&&(S=Ar(),Zn(f,a,m,S),of(f,o,m))}}function af(a){var o=a.alternate;return a===Yn||o!==null&&o===Yn}function Ou(a,o){bt=lr=!0;var f=a.pending;f===null?o.next=o:(o.next=f.next,f.next=o),a.pending=o}function of(a,o,f){if(f&4194240){var m=o.lanes;m&=a.pendingLanes,f|=m,o.lanes=f,Tc(a,f)}}var jd={readContext:He,useCallback:tr,useContext:tr,useEffect:tr,useImperativeHandle:tr,useInsertionEffect:tr,useLayoutEffect:tr,useMemo:tr,useReducer:tr,useRef:tr,useState:tr,useDebugValue:tr,useDeferredValue:tr,useTransition:tr,useMutableSource:tr,useSyncExternalStore:tr,useId:tr,unstable_isNewReconciler:!1},fC={readContext:He,useCallback:function(a,o){return _a().memoizedState=[a,o===void 0?null:o],a},useContext:He,useEffect:Tl,useImperativeHandle:function(a,o,f){return f=f!=null?f.concat([a]):null,Nu(4194308,4,Od.bind(null,o,a),f)},useLayoutEffect:function(a,o){return Nu(4194308,4,a,o)},useInsertionEffect:function(a,o){return Nu(4,2,a,o)},useMemo:function(a,o){var f=_a();return o=o===void 0?null:o,a=a(),f.memoizedState=[a,o],a},useReducer:function(a,o,f){var m=_a();return o=f!==void 0?f(o):o,m.memoizedState=m.baseState=o,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:o},m.queue=a,a=a.dispatch=Mn.bind(null,Yn,a),[m.memoizedState,a]},useRef:function(a){var o=_a();return a={current:a},o.memoizedState=a},useState:Td,useDebugValue:Il,useDeferredValue:function(a){return _a().memoizedState=a},useTransition:function(){var a=Td(!1),o=a[0];return a=Ja.bind(null,a[1]),_a().memoizedState=a,[o,a]},useMutableSource:function(){},useSyncExternalStore:function(a,o,f){var m=Yn,S=_a();if(Bn){if(f===void 0)throw Error(i(407));f=f()}else{if(f=o(),rr===null)throw Error(i(349));xl&30||xd(m,o,f)}S.memoizedState=f;var w={value:f,getSnapshot:o};return S.queue=w,Tl(Ed.bind(null,m,w,a),[a]),m.flags|=2048,wl(9,Sd.bind(null,m,w,f,o),void 0,null),f},useId:function(){var a=_a(),o=rr.identifierPrefix;if(Bn){var f=Pr,m=Ia;f=(m&~(1<<32-ra(m)-1)).toString(32)+f,o=":"+o+"R"+f,f=uo++,0<f&&(o+="H"+f.toString(32)),o+=":"}else f=Go++,o=":"+o+"r"+f.toString(32)+":";return a.memoizedState=o},unstable_isNewReconciler:!1},dC={readContext:He,useCallback:Pv,useContext:He,useEffect:rf,useImperativeHandle:Lv,useInsertionEffect:Nd,useLayoutEffect:_d,useMemo:_u,useReducer:tf,useRef:Id,useState:function(){return tf(El)},useDebugValue:Il,useDeferredValue:function(a){var o=Oa();return Ms(o,sr.memoizedState,a)},useTransition:function(){var a=tf(El)[0],o=Oa().memoizedState;return[a,o]},useMutableSource:bd,useSyncExternalStore:Cd,useId:Eg,unstable_isNewReconciler:!1},pC={readContext:He,useCallback:Pv,useContext:He,useEffect:rf,useImperativeHandle:Lv,useInsertionEffect:Nd,useLayoutEffect:_d,useMemo:_u,useReducer:nf,useRef:Id,useState:function(){return nf(El)},useDebugValue:Il,useDeferredValue:function(a){var o=Oa();return sr===null?o.memoizedState=a:Ms(o,sr.memoizedState,a)},useTransition:function(){var a=nf(El)[0],o=Oa().memoizedState;return[a,o]},useMutableSource:bd,useSyncExternalStore:Cd,useId:Eg,unstable_isNewReconciler:!1};function Ls(a,o){try{var f="",m=o;do f+=Ne(m),m=m.return;while(m);var S=f}catch(w){S=`
|
|
95
|
+
Error generating stack: `+w.message+`
|
|
96
|
+
`+w.stack}return{value:a,source:o,stack:S,digest:null}}function Fv(a,o,f){return{value:a,source:null,stack:f??null,digest:o??null}}function sf(a,o){try{console.error(o.value)}catch(f){setTimeout(function(){throw f})}}var wg=typeof WeakMap=="function"?WeakMap:Map;function Rg(a,o,f){f=kn(-1,f),f.tag=3,f.payload={element:null};var m=o.value;return f.callback=function(){$d||($d=!0,Xv=m),sf(a,o)},f}function Tg(a,o,f){f=kn(-1,f),f.tag=3;var m=a.type.getDerivedStateFromError;if(typeof m=="function"){var S=o.value;f.payload=function(){return m(S)},f.callback=function(){sf(a,o)}}var w=a.stateNode;return w!==null&&typeof w.componentDidCatch=="function"&&(f.callback=function(){sf(a,o),typeof m!="function"&&(bi===null?bi=new Set([this]):bi.add(this));var k=o.stack;this.componentDidCatch(o.value,{componentStack:k!==null?k:""})}),f}function lf(a,o,f){var m=a.pingCache;if(m===null){m=a.pingCache=new wg;var S=new Set;m.set(o,S)}else S=m.get(o),S===void 0&&(S=new Set,m.set(o,S));S.has(f)||(S.add(f),a=EC.bind(null,a,o,f),o.then(a,a))}function Ig(a){do{var o;if((o=a.tag===13)&&(o=a.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return a;a=a.return}while(a!==null);return null}function Vv(a,o,f,m,S){return a.mode&1?(a.flags|=65536,a.lanes=S,a):(a===o?a.flags|=65536:(a.flags|=128,f.flags|=131072,f.flags&=-52805,f.tag===1&&(f.alternate===null?f.tag=17:(o=kn(-1,1),o.tag=2,js(f,o,1))),f.lanes|=1),a)}var Ng=H.ReactCurrentOwner,Aa=!1;function ur(a,o,f,m){o.child=a===null?Sg(o,null,f,m):Ru(o,a.child,f,m)}function Au(a,o,f,m,S){f=f.render;var w=o.ref;return or(o,S),m=Sl(a,o,f,m,w,S),f=ks(),a!==null&&!Aa?(o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~S,cr(a,o,S)):(Bn&&f&&dd(o),o.flags|=1,ur(a,o,m,S),o.child)}function Ps(a,o,f,m,S){if(a===null){var w=f.type;return typeof w=="function"&&!Qv(w)&&w.defaultProps===void 0&&f.compare===null&&f.defaultProps===void 0?(o.tag=15,o.type=w,Dd(a,o,w,m,S)):(a=Jd(f.type,null,m,o,o.mode,S),a.ref=o.ref,a.return=o,o.child=a)}if(w=a.child,!(a.lanes&S)){var k=w.memoizedProps;if(f=f.compare,f=f!==null?f:mu,f(k,m)&&a.ref===o.ref)return cr(a,o,S)}return o.flags|=1,a=Bs(w,m),a.ref=o.ref,a.return=o,o.child=a}function Dd(a,o,f,m,S){if(a!==null){var w=a.memoizedProps;if(mu(w,m)&&a.ref===o.ref)if(Aa=!1,o.pendingProps=m=w,(a.lanes&S)!==0)a.flags&131072&&(Aa=!0);else return o.lanes=a.lanes,cr(a,o,S)}return Dt(a,o,f,m,S)}function ja(a,o,f){var m=o.pendingProps,S=m.children,w=a!==null?a.memoizedState:null;if(m.mode==="hidden")if(!(o.mode&1))o.memoizedState={baseLanes:0,cachePool:null,transitions:null},tn(zu,Da),Da|=f;else{if(!(f&1073741824))return a=w!==null?w.baseLanes|f:f,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:a,cachePool:null,transitions:null},o.updateQueue=null,tn(zu,Da),Da|=a,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},m=w!==null?w.baseLanes:f,tn(zu,Da),Da|=m}else w!==null?(m=w.baseLanes|f,o.memoizedState=null):m=f,tn(zu,Da),Da|=m;return ur(a,o,S,f),o.child}function Nl(a,o){var f=o.ref;(a===null&&f!==null||a!==null&&a.ref!==f)&&(o.flags|=512,o.flags|=2097152)}function Dt(a,o,f,m,S){var w=vr(f)?aa:Nr.current;return w=Wa(o,w),or(o,S),f=Sl(a,o,f,m,w,S),m=ks(),a!==null&&!Aa?(o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~S,cr(a,o,S)):(Bn&&m&&dd(o),o.flags|=1,ur(a,o,f,S),o.child)}function uf(a,o,f,m,S){if(vr(f)){var w=!0;gl(o)}else w=!1;if(or(o,S),o.stateNode===null)ff(a,o),yg(o,f,m),Dv(o,f,m,S),m=!0;else if(a===null){var k=o.stateNode,W=o.memoizedProps;k.props=W;var Q=k.context,pe=f.contextType;typeof pe=="object"&&pe!==null?pe=He(pe):(pe=vr(f)?aa:Nr.current,pe=Wa(o,pe));var Me=f.getDerivedStateFromProps,Pe=typeof Me=="function"||typeof k.getSnapshotBeforeUpdate=="function";Pe||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(W!==m||Q!==pe)&&bg(o,k,m,pe),As=!1;var De=o.memoizedState;k.state=De,Jc(o,m,k,S),Q=o.memoizedState,W!==m||De!==Q||Ot.current||As?(typeof Me=="function"&&(jv(o,f,Me,m),Q=o.memoizedState),(W=As||gg(o,f,W,m,De,Q,pe))?(Pe||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(o.flags|=4194308)):(typeof k.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=m,o.memoizedState=Q),k.props=m,k.state=Q,k.context=pe,m=W):(typeof k.componentDidMount=="function"&&(o.flags|=4194308),m=!1)}else{k=o.stateNode,hg(a,o),W=o.memoizedProps,pe=o.type===o.elementType?W:Na(o.type,W),k.props=pe,Pe=o.pendingProps,De=k.context,Q=f.contextType,typeof Q=="object"&&Q!==null?Q=He(Q):(Q=vr(f)?aa:Nr.current,Q=Wa(o,Q));var Ye=f.getDerivedStateFromProps;(Me=typeof Ye=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(W!==Pe||De!==Q)&&bg(o,k,m,Q),As=!1,De=o.memoizedState,k.state=De,Jc(o,m,k,S);var nt=o.memoizedState;W!==Pe||De!==nt||Ot.current||As?(typeof Ye=="function"&&(jv(o,f,Ye,m),nt=o.memoizedState),(pe=As||gg(o,f,pe,m,De,nt,Q)||!1)?(Me||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(m,nt,Q),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(m,nt,Q)),typeof k.componentDidUpdate=="function"&&(o.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof k.componentDidUpdate!="function"||W===a.memoizedProps&&De===a.memoizedState||(o.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||W===a.memoizedProps&&De===a.memoizedState||(o.flags|=1024),o.memoizedProps=m,o.memoizedState=nt),k.props=m,k.state=nt,k.context=Q,m=pe):(typeof k.componentDidUpdate!="function"||W===a.memoizedProps&&De===a.memoizedState||(o.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||W===a.memoizedProps&&De===a.memoizedState||(o.flags|=1024),m=!1)}return kd(a,o,f,m,w,S)}function kd(a,o,f,m,S,w){Nl(a,o);var k=(o.flags&128)!==0;if(!m&&!k)return S&&fg(o,f,!1),cr(a,o,w);m=o.stateNode,Ng.current=o;var W=k&&typeof f.getDerivedStateFromError!="function"?null:m.render();return o.flags|=1,a!==null&&k?(o.child=Ru(o,a.child,null,w),o.child=Ru(o,null,W,w)):ur(a,o,W,w),o.memoizedState=m.state,S&&fg(o,f,!0),o.child}function vC(a){var o=a.stateNode;o.pendingContext?io(a,o.pendingContext,o.pendingContext!==o.context):o.context&&io(a,o.context,!1),kv(a,o.containerInfo)}function _g(a,o,f,m,S){return Cu(),hr(S),o.flags|=256,ur(a,o,f,m),o.child}var cf={dehydrated:null,treeContext:null,retryLane:0};function _l(a){return{baseLanes:a,cachePool:null,transitions:null}}function Og(a,o,f){var m=o.pendingProps,S=ut.current,w=!1,k=(o.flags&128)!==0,W;if((W=k)||(W=a!==null&&a.memoizedState===null?!1:(S&2)!==0),W?(w=!0,o.flags&=-129):(a===null||a.memoizedState!==null)&&(S|=1),tn(ut,S&1),a===null)return vd(o),a=o.memoizedState,a!==null&&(a=a.dehydrated,a!==null)?(o.mode&1?a.data==="$!"?o.lanes=8:o.lanes=1073741824:o.lanes=1,null):(k=m.children,a=m.fallback,w?(m=o.mode,w=o.child,k={mode:"hidden",children:k},!(m&1)&&w!==null?(w.childLanes=0,w.pendingProps=k):w=qd(k,m,0,null),a=Ml(a,m,f,null),w.return=o,a.return=o,w.sibling=a,o.child=w,o.child.memoizedState=_l(f),o.memoizedState=cf,a):Md(o,k));if(S=a.memoizedState,S!==null&&(W=S.dehydrated,W!==null))return Bv(a,o,k,m,W,S,f);if(w){w=m.fallback,k=o.mode,S=a.child,W=S.sibling;var Q={mode:"hidden",children:m.children};return!(k&1)&&o.child!==S?(m=o.child,m.childLanes=0,m.pendingProps=Q,o.deletions=null):(m=Bs(S,Q),m.subtreeFlags=S.subtreeFlags&14680064),W!==null?w=Bs(W,w):(w=Ml(w,k,f,null),w.flags|=2),w.return=o,m.return=o,m.sibling=w,o.child=m,m=w,w=o.child,k=a.child.memoizedState,k=k===null?_l(f):{baseLanes:k.baseLanes|f,cachePool:null,transitions:k.transitions},w.memoizedState=k,w.childLanes=a.childLanes&~f,o.memoizedState=cf,m}return w=a.child,a=w.sibling,m=Bs(w,{mode:"visible",children:m.children}),!(o.mode&1)&&(m.lanes=f),m.return=o,m.sibling=null,a!==null&&(f=o.deletions,f===null?(o.deletions=[a],o.flags|=16):f.push(a)),o.child=m,o.memoizedState=null,m}function Md(a,o){return o=qd({mode:"visible",children:o},a.mode,0,null),o.return=a,a.child=o}function Ld(a,o,f,m){return m!==null&&hr(m),Ru(o,a.child,null,f),a=Md(o,o.pendingProps.children),a.flags|=2,o.memoizedState=null,a}function Bv(a,o,f,m,S,w,k){if(f)return o.flags&256?(o.flags&=-257,m=Fv(Error(i(422))),Ld(a,o,k,m)):o.memoizedState!==null?(o.child=a.child,o.flags|=128,null):(w=m.fallback,S=o.mode,m=qd({mode:"visible",children:m.children},S,0,null),w=Ml(w,S,k,null),w.flags|=2,m.return=o,w.return=o,m.sibling=w,o.child=m,o.mode&1&&Ru(o,a.child,null,k),o.child.memoizedState=_l(k),o.memoizedState=cf,w);if(!(o.mode&1))return Ld(a,o,k,null);if(S.data==="$!"){if(m=S.nextSibling&&S.nextSibling.dataset,m)var W=m.dgst;return m=W,w=Error(i(419)),m=Fv(w,m,void 0),Ld(a,o,k,m)}if(W=(k&a.childLanes)!==0,Aa||W){if(m=rr,m!==null){switch(k&-k){case 4:S=2;break;case 16:S=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:S=32;break;case 536870912:S=268435456;break;default:S=0}S=S&(m.suspendedLanes|k)?0:S,S!==0&&S!==w.retryLane&&(w.retryLane=S,$o(a,S),Zn(m,a,S,-1))}return mf(),m=Fv(Error(i(421))),Ld(a,o,k,m)}return S.data==="$?"?(o.flags|=128,o.child=a.child,o=qv.bind(null,a),S._reactRetry=o,null):(a=w.treeContext,Ya=Ga(S.nextSibling),Xa=o,Bn=!0,pi=null,a!==null&&(Ra[Ta++]=Ia,Ra[Ta++]=Pr,Ra[Ta++]=Ui,Ia=a.id,Pr=a.overflow,Ui=o),o=Md(o,m.children),o.flags|=4096,o)}function Ag(a,o,f){a.lanes|=o;var m=a.alternate;m!==null&&(m.lanes|=o),Os(a.return,o,f)}function Pd(a,o,f,m,S){var w=a.memoizedState;w===null?a.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:m,tail:f,tailMode:S}:(w.isBackwards=o,w.rendering=null,w.renderingStartTime=0,w.last=m,w.tail=f,w.tailMode=S)}function zv(a,o,f){var m=o.pendingProps,S=m.revealOrder,w=m.tail;if(ur(a,o,m.children,f),m=ut.current,m&2)m=m&1|2,o.flags|=128;else{if(a!==null&&a.flags&128)e:for(a=o.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&Ag(a,f,o);else if(a.tag===19)Ag(a,f,o);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break e;for(;a.sibling===null;){if(a.return===null||a.return===o)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}m&=1}if(tn(ut,m),!(o.mode&1))o.memoizedState=null;else switch(S){case"forwards":for(f=o.child,S=null;f!==null;)a=f.alternate,a!==null&&Qt(a)===null&&(S=f),f=f.sibling;f=S,f===null?(S=o.child,o.child=null):(S=f.sibling,f.sibling=null),Pd(o,!1,S,f,w);break;case"backwards":for(f=null,S=o.child,o.child=null;S!==null;){if(a=S.alternate,a!==null&&Qt(a)===null){o.child=S;break}a=S.sibling,S.sibling=f,f=S,S=a}Pd(o,!0,f,null,w);break;case"together":Pd(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function ff(a,o){!(o.mode&1)&&a!==null&&(a.alternate=null,o.alternate=null,o.flags|=2)}function cr(a,o,f){if(a!==null&&(o.dependencies=a.dependencies),Al|=o.lanes,!(f&o.childLanes))return null;if(a!==null&&o.child!==a.child)throw Error(i(153));if(o.child!==null){for(a=o.child,f=Bs(a,a.pendingProps),o.child=f,f.return=o;a.sibling!==null;)a=a.sibling,f=f.sibling=Bs(a,a.pendingProps),f.return=o;f.sibling=null}return o.child}function Wo(a,o,f){switch(o.tag){case 3:vC(o),Cu();break;case 5:yd(o);break;case 1:vr(o.type)&&gl(o);break;case 4:kv(o,o.stateNode.containerInfo);break;case 10:var m=o.type._context,S=o.memoizedProps.value;tn(xu,m._currentValue),m._currentValue=S;break;case 13:if(m=o.memoizedState,m!==null)return m.dehydrated!==null?(tn(ut,ut.current&1),o.flags|=128,null):f&o.child.childLanes?Og(a,o,f):(tn(ut,ut.current&1),a=cr(a,o,f),a!==null?a.sibling:null);tn(ut,ut.current&1);break;case 19:if(m=(f&o.childLanes)!==0,a.flags&128){if(m)return zv(a,o,f);o.flags|=128}if(S=o.memoizedState,S!==null&&(S.rendering=null,S.tail=null,S.lastEffect=null),tn(ut,ut.current),m)break;return null;case 22:case 23:return o.lanes=0,ja(a,o,f)}return cr(a,o,f)}var co,ju,Du,gi;co=function(a,o){for(var f=o.child;f!==null;){if(f.tag===5||f.tag===6)a.appendChild(f.stateNode);else if(f.tag!==4&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===o)break;for(;f.sibling===null;){if(f.return===null||f.return===o)return;f=f.return}f.sibling.return=f.return,f=f.sibling}},ju=function(){},Du=function(a,o,f,m){var S=a.memoizedProps;if(S!==m){a=o.stateNode,Ds(lo.current);var w=null;switch(f){case"input":S=It(a,S),m=It(a,m),w=[];break;case"select":S=G({},S,{value:void 0}),m=G({},m,{value:void 0}),w=[];break;case"textarea":S=Qn(a,S),m=Qn(a,m),w=[];break;default:typeof S.onClick!="function"&&typeof m.onClick=="function"&&(a.onclick=ud)}en(f,m);var k;f=null;for(pe in S)if(!m.hasOwnProperty(pe)&&S.hasOwnProperty(pe)&&S[pe]!=null)if(pe==="style"){var W=S[pe];for(k in W)W.hasOwnProperty(k)&&(f||(f={}),f[k]="")}else pe!=="dangerouslySetInnerHTML"&&pe!=="children"&&pe!=="suppressContentEditableWarning"&&pe!=="suppressHydrationWarning"&&pe!=="autoFocus"&&(l.hasOwnProperty(pe)?w||(w=[]):(w=w||[]).push(pe,null));for(pe in m){var Q=m[pe];if(W=S!=null?S[pe]:void 0,m.hasOwnProperty(pe)&&Q!==W&&(Q!=null||W!=null))if(pe==="style")if(W){for(k in W)!W.hasOwnProperty(k)||Q&&Q.hasOwnProperty(k)||(f||(f={}),f[k]="");for(k in Q)Q.hasOwnProperty(k)&&W[k]!==Q[k]&&(f||(f={}),f[k]=Q[k])}else f||(w||(w=[]),w.push(pe,f)),f=Q;else pe==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,W=W?W.__html:void 0,Q!=null&&W!==Q&&(w=w||[]).push(pe,Q)):pe==="children"?typeof Q!="string"&&typeof Q!="number"||(w=w||[]).push(pe,""+Q):pe!=="suppressContentEditableWarning"&&pe!=="suppressHydrationWarning"&&(l.hasOwnProperty(pe)?(Q!=null&&pe==="onScroll"&&Tn("scroll",a),w||W===Q||(w=[])):(w=w||[]).push(pe,Q))}f&&(w=w||[]).push("style",f);var pe=w;(o.updateQueue=pe)&&(o.flags|=4)}},gi=function(a,o,f,m){f!==m&&(o.flags|=4)};function nr(a,o){if(!Bn)switch(a.tailMode){case"hidden":o=a.tail;for(var f=null;o!==null;)o.alternate!==null&&(f=o),o=o.sibling;f===null?a.tail=null:f.sibling=null;break;case"collapsed":f=a.tail;for(var m=null;f!==null;)f.alternate!==null&&(m=f),f=f.sibling;m===null?o||a.tail===null?a.tail=null:a.tail.sibling=null:m.sibling=null}}function qr(a){var o=a.alternate!==null&&a.alternate.child===a.child,f=0,m=0;if(o)for(var S=a.child;S!==null;)f|=S.lanes|S.childLanes,m|=S.subtreeFlags&14680064,m|=S.flags&14680064,S.return=a,S=S.sibling;else for(S=a.child;S!==null;)f|=S.lanes|S.childLanes,m|=S.subtreeFlags,m|=S.flags,S.return=a,S=S.sibling;return a.subtreeFlags|=m,a.childLanes=f,o}function hC(a,o,f){var m=o.pendingProps;switch(pd(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qr(o),null;case 1:return vr(o.type)&&wa(),qr(o),null;case 3:return m=o.stateNode,Iu(),st(Ot),st(Nr),hi(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(a===null||a.child===null)&&(hd(o)?o.flags|=4:a===null||a.memoizedState.isDehydrated&&!(o.flags&256)||(o.flags|=1024,pi!==null&&(Yv(pi),pi=null))),ju(a,o),qr(o),null;case 5:mt(o);var S=Ds(Kc.current);if(f=o.type,a!==null&&o.stateNode!=null)Du(a,o,f,m,S),a.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!m){if(o.stateNode===null)throw Error(i(166));return qr(o),null}if(a=Ds(lo.current),hd(o)){m=o.stateNode,f=o.type;var w=o.memoizedProps;switch(m[ui]=o,m[Yc]=w,a=(o.mode&1)!==0,f){case"dialog":Tn("cancel",m),Tn("close",m);break;case"iframe":case"object":case"embed":Tn("load",m);break;case"video":case"audio":for(S=0;S<Vo.length;S++)Tn(Vo[S],m);break;case"source":Tn("error",m);break;case"img":case"image":case"link":Tn("error",m),Tn("load",m);break;case"details":Tn("toggle",m);break;case"input":pt(m,w),Tn("invalid",m);break;case"select":m._wrapperState={wasMultiple:!!w.multiple},Tn("invalid",m);break;case"textarea":Rr(m,w),Tn("invalid",m)}en(f,w),S=null;for(var k in w)if(w.hasOwnProperty(k)){var W=w[k];k==="children"?typeof W=="string"?m.textContent!==W&&(w.suppressHydrationWarning!==!0&&$c(m.textContent,W,a),S=["children",W]):typeof W=="number"&&m.textContent!==""+W&&(w.suppressHydrationWarning!==!0&&$c(m.textContent,W,a),S=["children",""+W]):l.hasOwnProperty(k)&&W!=null&&k==="onScroll"&&Tn("scroll",m)}switch(f){case"input":tt(m),sn(m,w,!0);break;case"textarea":tt(m),Tr(m);break;case"select":case"option":break;default:typeof w.onClick=="function"&&(m.onclick=ud)}m=S,o.updateQueue=m,m!==null&&(o.flags|=4)}else{k=S.nodeType===9?S:S.ownerDocument,a==="http://www.w3.org/1999/xhtml"&&(a=xt(f)),a==="http://www.w3.org/1999/xhtml"?f==="script"?(a=k.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild)):typeof m.is=="string"?a=k.createElement(f,{is:m.is}):(a=k.createElement(f),f==="select"&&(k=a,m.multiple?k.multiple=!0:m.size&&(k.size=m.size))):a=k.createElementNS(a,f),a[ui]=o,a[Yc]=m,co(a,o,!1,!1),o.stateNode=a;e:{switch(k=ir(f,m),f){case"dialog":Tn("cancel",a),Tn("close",a),S=m;break;case"iframe":case"object":case"embed":Tn("load",a),S=m;break;case"video":case"audio":for(S=0;S<Vo.length;S++)Tn(Vo[S],a);S=m;break;case"source":Tn("error",a),S=m;break;case"img":case"image":case"link":Tn("error",a),Tn("load",a),S=m;break;case"details":Tn("toggle",a),S=m;break;case"input":pt(a,m),S=It(a,m),Tn("invalid",a);break;case"option":S=m;break;case"select":a._wrapperState={wasMultiple:!!m.multiple},S=G({},m,{value:void 0}),Tn("invalid",a);break;case"textarea":Rr(a,m),S=Qn(a,m),Tn("invalid",a);break;default:S=m}en(f,S),W=S;for(w in W)if(W.hasOwnProperty(w)){var Q=W[w];w==="style"?Mt(a,Q):w==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,Q!=null&&Ba(a,Q)):w==="children"?typeof Q=="string"?(f!=="textarea"||Q!=="")&&za(a,Q):typeof Q=="number"&&za(a,""+Q):w!=="suppressContentEditableWarning"&&w!=="suppressHydrationWarning"&&w!=="autoFocus"&&(l.hasOwnProperty(w)?Q!=null&&w==="onScroll"&&Tn("scroll",a):Q!=null&&V(a,w,Q,k))}switch(f){case"input":tt(a),sn(a,m,!1);break;case"textarea":tt(a),Tr(a);break;case"option":m.value!=null&&a.setAttribute("value",""+we(m.value));break;case"select":a.multiple=!!m.multiple,w=m.value,w!=null?Cn(a,!!m.multiple,w,!1):m.defaultValue!=null&&Cn(a,!!m.multiple,m.defaultValue,!0);break;default:typeof S.onClick=="function"&&(a.onclick=ud)}switch(f){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break e;case"img":m=!0;break e;default:m=!1}}m&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return qr(o),null;case 6:if(a&&o.stateNode!=null)gi(a,o,a.memoizedProps,m);else{if(typeof m!="string"&&o.stateNode===null)throw Error(i(166));if(f=Ds(Kc.current),Ds(lo.current),hd(o)){if(m=o.stateNode,f=o.memoizedProps,m[ui]=o,(w=m.nodeValue!==f)&&(a=Xa,a!==null))switch(a.tag){case 3:$c(m.nodeValue,f,(a.mode&1)!==0);break;case 5:a.memoizedProps.suppressHydrationWarning!==!0&&$c(m.nodeValue,f,(a.mode&1)!==0)}w&&(o.flags|=4)}else m=(f.nodeType===9?f:f.ownerDocument).createTextNode(m),m[ui]=o,o.stateNode=m}return qr(o),null;case 13:if(st(ut),m=o.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(Bn&&Ya!==null&&o.mode&1&&!(o.flags&128))pg(),Cu(),o.flags|=98560,w=!1;else if(w=hd(o),m!==null&&m.dehydrated!==null){if(a===null){if(!w)throw Error(i(318));if(w=o.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error(i(317));w[ui]=o}else Cu(),!(o.flags&128)&&(o.memoizedState=null),o.flags|=4;qr(o),w=!1}else pi!==null&&(Yv(pi),pi=null),w=!0;if(!w)return o.flags&65536?o:null}return o.flags&128?(o.lanes=f,o):(m=m!==null,m!==(a!==null&&a.memoizedState!==null)&&m&&(o.child.flags|=8192,o.mode&1&&(a===null||ut.current&1?Cr===0&&(Cr=3):mf())),o.updateQueue!==null&&(o.flags|=4),qr(o),null);case 4:return Iu(),ju(a,o),a===null&&ro(o.stateNode.containerInfo),qr(o),null;case 10:return Ov(o.type._context),qr(o),null;case 17:return vr(o.type)&&wa(),qr(o),null;case 19:if(st(ut),w=o.memoizedState,w===null)return qr(o),null;if(m=(o.flags&128)!==0,k=w.rendering,k===null)if(m)nr(w,!1);else{if(Cr!==0||a!==null&&a.flags&128)for(a=o.child;a!==null;){if(k=Qt(a),k!==null){for(o.flags|=128,nr(w,!1),m=k.updateQueue,m!==null&&(o.updateQueue=m,o.flags|=4),o.subtreeFlags=0,m=f,f=o.child;f!==null;)w=f,a=m,w.flags&=14680066,k=w.alternate,k===null?(w.childLanes=0,w.lanes=a,w.child=null,w.subtreeFlags=0,w.memoizedProps=null,w.memoizedState=null,w.updateQueue=null,w.dependencies=null,w.stateNode=null):(w.childLanes=k.childLanes,w.lanes=k.lanes,w.child=k.child,w.subtreeFlags=0,w.deletions=null,w.memoizedProps=k.memoizedProps,w.memoizedState=k.memoizedState,w.updateQueue=k.updateQueue,w.type=k.type,a=k.dependencies,w.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),f=f.sibling;return tn(ut,ut.current&1|2),o.child}a=a.sibling}w.tail!==null&&Dn()>Uu&&(o.flags|=128,m=!0,nr(w,!1),o.lanes=4194304)}else{if(!m)if(a=Qt(k),a!==null){if(o.flags|=128,m=!0,f=a.updateQueue,f!==null&&(o.updateQueue=f,o.flags|=4),nr(w,!0),w.tail===null&&w.tailMode==="hidden"&&!k.alternate&&!Bn)return qr(o),null}else 2*Dn()-w.renderingStartTime>Uu&&f!==1073741824&&(o.flags|=128,m=!0,nr(w,!1),o.lanes=4194304);w.isBackwards?(k.sibling=o.child,o.child=k):(f=w.last,f!==null?f.sibling=k:o.child=k,w.last=k)}return w.tail!==null?(o=w.tail,w.rendering=o,w.tail=o.sibling,w.renderingStartTime=Dn(),o.sibling=null,f=ut.current,tn(ut,m?f&1|2:f&1),o):(qr(o),null);case 22:case 23:return Yd(),m=o.memoizedState!==null,a!==null&&a.memoizedState!==null!==m&&(o.flags|=8192),m&&o.mode&1?Da&1073741824&&(qr(o),o.subtreeFlags&6&&(o.flags|=8192)):qr(o),null;case 24:return null;case 25:return null}throw Error(i(156,o.tag))}function mC(a,o){switch(pd(o),o.tag){case 1:return vr(o.type)&&wa(),a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 3:return Iu(),st(Ot),st(Nr),hi(),a=o.flags,a&65536&&!(a&128)?(o.flags=a&-65537|128,o):null;case 5:return mt(o),null;case 13:if(st(ut),a=o.memoizedState,a!==null&&a.dehydrated!==null){if(o.alternate===null)throw Error(i(340));Cu()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 19:return st(ut),null;case 4:return Iu(),null;case 10:return Ov(o.type._context),null;case 22:case 23:return Yd(),null;case 24:return null;default:return null}}var ku=!1,Fr=!1,Fd=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function Mu(a,o){var f=a.ref;if(f!==null)if(typeof f=="function")try{f(null)}catch(m){ar(a,o,m)}else f.current=null}function Hv(a,o,f){try{f()}catch(m){ar(a,o,m)}}var Vd=!1;function gC(a,o){if(bv=cu,a=Km(),Fc(a)){if("selectionStart"in a)var f={start:a.selectionStart,end:a.selectionEnd};else e:{f=(f=a.ownerDocument)&&f.defaultView||window;var m=f.getSelection&&f.getSelection();if(m&&m.rangeCount!==0){f=m.anchorNode;var S=m.anchorOffset,w=m.focusNode;m=m.focusOffset;try{f.nodeType,w.nodeType}catch{f=null;break e}var k=0,W=-1,Q=-1,pe=0,Me=0,Pe=a,De=null;t:for(;;){for(var Ye;Pe!==f||S!==0&&Pe.nodeType!==3||(W=k+S),Pe!==w||m!==0&&Pe.nodeType!==3||(Q=k+m),Pe.nodeType===3&&(k+=Pe.nodeValue.length),(Ye=Pe.firstChild)!==null;)De=Pe,Pe=Ye;for(;;){if(Pe===a)break t;if(De===f&&++pe===S&&(W=k),De===w&&++Me===m&&(Q=k),(Ye=Pe.nextSibling)!==null)break;Pe=De,De=Pe.parentNode}Pe=Ye}f=W===-1||Q===-1?null:{start:W,end:Q}}else f=null}f=f||{start:0,end:0}}else f=null;for(Cv={focusedElem:a,selectionRange:f},cu=!1,Ke=o;Ke!==null;)if(o=Ke,a=o.child,(o.subtreeFlags&1028)!==0&&a!==null)a.return=o,Ke=a;else for(;Ke!==null;){o=Ke;try{var nt=o.alternate;if(o.flags&1024)switch(o.tag){case 0:case 11:case 15:break;case 1:if(nt!==null){var ot=nt.memoizedProps,fr=nt.memoizedState,ae=o.stateNode,ee=ae.getSnapshotBeforeUpdate(o.elementType===o.type?ot:Na(o.type,ot),fr);ae.__reactInternalSnapshotBeforeUpdate=ee}break;case 3:var se=o.stateNode.containerInfo;se.nodeType===1?se.textContent="":se.nodeType===9&&se.documentElement&&se.removeChild(se.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(ze){ar(o,o.return,ze)}if(a=o.sibling,a!==null){a.return=o.return,Ke=a;break}Ke=o.return}return nt=Vd,Vd=!1,nt}function Lu(a,o,f){var m=o.updateQueue;if(m=m!==null?m.lastEffect:null,m!==null){var S=m=m.next;do{if((S.tag&a)===a){var w=S.destroy;S.destroy=void 0,w!==void 0&&Hv(o,f,w)}S=S.next}while(S!==m)}}function Bd(a,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var f=o=o.next;do{if((f.tag&a)===a){var m=f.create;f.destroy=m()}f=f.next}while(f!==o)}}function zd(a){var o=a.ref;if(o!==null){var f=a.stateNode;switch(a.tag){case 5:a=f;break;default:a=f}typeof o=="function"?o(a):o.current=a}}function jg(a){var o=a.alternate;o!==null&&(a.alternate=null,jg(o)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(o=a.stateNode,o!==null&&(delete o[ui],delete o[Yc],delete o[wv],delete o[lC],delete o[uC])),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function Uv(a){return a.tag===5||a.tag===3||a.tag===4}function Dg(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||Uv(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function df(a,o,f){var m=a.tag;if(m===5||m===6)a=a.stateNode,o?f.nodeType===8?f.parentNode.insertBefore(a,o):f.insertBefore(a,o):(f.nodeType===8?(o=f.parentNode,o.insertBefore(a,f)):(o=f,o.appendChild(a)),f=f._reactRootContainer,f!=null||o.onclick!==null||(o.onclick=ud));else if(m!==4&&(a=a.child,a!==null))for(df(a,o,f),a=a.sibling;a!==null;)df(a,o,f),a=a.sibling}function Pu(a,o,f){var m=a.tag;if(m===5||m===6)a=a.stateNode,o?f.insertBefore(a,o):f.appendChild(a);else if(m!==4&&(a=a.child,a!==null))for(Pu(a,o,f),a=a.sibling;a!==null;)Pu(a,o,f),a=a.sibling}var Un=null,_r=!1;function ia(a,o,f){for(f=f.child;f!==null;)Fu(a,o,f),f=f.sibling}function Fu(a,o,f){if(Ca&&typeof Ca.onCommitFiberUnmount=="function")try{Ca.onCommitFiberUnmount(ms,f)}catch{}switch(f.tag){case 5:Fr||Mu(f,o);case 6:var m=Un,S=_r;Un=null,ia(a,o,f),Un=m,_r=S,Un!==null&&(_r?(a=Un,f=f.stateNode,a.nodeType===8?a.parentNode.removeChild(f):a.removeChild(f)):Un.removeChild(f.stateNode));break;case 18:Un!==null&&(_r?(a=Un,f=f.stateNode,a.nodeType===8?Ev(a.parentNode,f):a.nodeType===1&&Ev(a,f),li(a)):Ev(Un,f.stateNode));break;case 4:m=Un,S=_r,Un=f.stateNode.containerInfo,_r=!0,ia(a,o,f),Un=m,_r=S;break;case 0:case 11:case 14:case 15:if(!Fr&&(m=f.updateQueue,m!==null&&(m=m.lastEffect,m!==null))){S=m=m.next;do{var w=S,k=w.destroy;w=w.tag,k!==void 0&&(w&2||w&4)&&Hv(f,o,k),S=S.next}while(S!==m)}ia(a,o,f);break;case 1:if(!Fr&&(Mu(f,o),m=f.stateNode,typeof m.componentWillUnmount=="function"))try{m.props=f.memoizedProps,m.state=f.memoizedState,m.componentWillUnmount()}catch(W){ar(f,o,W)}ia(a,o,f);break;case 21:ia(a,o,f);break;case 22:f.mode&1?(Fr=(m=Fr)||f.memoizedState!==null,ia(a,o,f),Fr=m):ia(a,o,f);break;default:ia(a,o,f)}}function Vu(a){var o=a.updateQueue;if(o!==null){a.updateQueue=null;var f=a.stateNode;f===null&&(f=a.stateNode=new Fd),o.forEach(function(m){var S=wC.bind(null,a,m);f.has(m)||(f.add(m),m.then(S,S))})}}function Or(a,o){var f=o.deletions;if(f!==null)for(var m=0;m<f.length;m++){var S=f[m];try{var w=a,k=o,W=k;e:for(;W!==null;){switch(W.tag){case 5:Un=W.stateNode,_r=!1;break e;case 3:Un=W.stateNode.containerInfo,_r=!0;break e;case 4:Un=W.stateNode.containerInfo,_r=!0;break e}W=W.return}if(Un===null)throw Error(i(160));Fu(w,k,S),Un=null,_r=!1;var Q=S.alternate;Q!==null&&(Q.return=null),S.return=null}catch(pe){ar(S,o,pe)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)kg(o,a),o=o.sibling}function kg(a,o){var f=a.alternate,m=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:if(Or(o,a),fo(a),m&4){try{Lu(3,a,a.return),Bd(3,a)}catch(ot){ar(a,a.return,ot)}try{Lu(5,a,a.return)}catch(ot){ar(a,a.return,ot)}}break;case 1:Or(o,a),fo(a),m&512&&f!==null&&Mu(f,f.return);break;case 5:if(Or(o,a),fo(a),m&512&&f!==null&&Mu(f,f.return),a.flags&32){var S=a.stateNode;try{za(S,"")}catch(ot){ar(a,a.return,ot)}}if(m&4&&(S=a.stateNode,S!=null)){var w=a.memoizedProps,k=f!==null?f.memoizedProps:w,W=a.type,Q=a.updateQueue;if(a.updateQueue=null,Q!==null)try{W==="input"&&w.type==="radio"&&w.name!=null&&Kt(S,w),ir(W,k);var pe=ir(W,w);for(k=0;k<Q.length;k+=2){var Me=Q[k],Pe=Q[k+1];Me==="style"?Mt(S,Pe):Me==="dangerouslySetInnerHTML"?Ba(S,Pe):Me==="children"?za(S,Pe):V(S,Me,Pe,pe)}switch(W){case"input":on(S,w);break;case"textarea":$n(S,w);break;case"select":var De=S._wrapperState.wasMultiple;S._wrapperState.wasMultiple=!!w.multiple;var Ye=w.value;Ye!=null?Cn(S,!!w.multiple,Ye,!1):De!==!!w.multiple&&(w.defaultValue!=null?Cn(S,!!w.multiple,w.defaultValue,!0):Cn(S,!!w.multiple,w.multiple?[]:"",!1))}S[Yc]=w}catch(ot){ar(a,a.return,ot)}}break;case 6:if(Or(o,a),fo(a),m&4){if(a.stateNode===null)throw Error(i(162));S=a.stateNode,w=a.memoizedProps;try{S.nodeValue=w}catch(ot){ar(a,a.return,ot)}}break;case 3:if(Or(o,a),fo(a),m&4&&f!==null&&f.memoizedState.isDehydrated)try{li(o.containerInfo)}catch(ot){ar(a,a.return,ot)}break;case 4:Or(o,a),fo(a);break;case 13:Or(o,a),fo(a),S=a.child,S.flags&8192&&(w=S.memoizedState!==null,S.stateNode.isHidden=w,!w||S.alternate!==null&&S.alternate.memoizedState!==null||(Ud=Dn())),m&4&&Vu(a);break;case 22:if(Me=f!==null&&f.memoizedState!==null,a.mode&1?(Fr=(pe=Fr)||Me,Or(o,a),Fr=pe):Or(o,a),fo(a),m&8192){if(pe=a.memoizedState!==null,(a.stateNode.isHidden=pe)&&!Me&&a.mode&1)for(Ke=a,Me=a.child;Me!==null;){for(Pe=Ke=Me;Ke!==null;){switch(De=Ke,Ye=De.child,De.tag){case 0:case 11:case 14:case 15:Lu(4,De,De.return);break;case 1:Mu(De,De.return);var nt=De.stateNode;if(typeof nt.componentWillUnmount=="function"){m=De,f=De.return;try{o=m,nt.props=o.memoizedProps,nt.state=o.memoizedState,nt.componentWillUnmount()}catch(ot){ar(m,f,ot)}}break;case 5:Mu(De,De.return);break;case 22:if(De.memoizedState!==null){Mg(Pe);continue}}Ye!==null?(Ye.return=De,Ke=Ye):Mg(Pe)}Me=Me.sibling}e:for(Me=null,Pe=a;;){if(Pe.tag===5){if(Me===null){Me=Pe;try{S=Pe.stateNode,pe?(w=S.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none"):(W=Pe.stateNode,Q=Pe.memoizedProps.style,k=Q!=null&&Q.hasOwnProperty("display")?Q.display:null,W.style.display=dt("display",k))}catch(ot){ar(a,a.return,ot)}}}else if(Pe.tag===6){if(Me===null)try{Pe.stateNode.nodeValue=pe?"":Pe.memoizedProps}catch(ot){ar(a,a.return,ot)}}else if((Pe.tag!==22&&Pe.tag!==23||Pe.memoizedState===null||Pe===a)&&Pe.child!==null){Pe.child.return=Pe,Pe=Pe.child;continue}if(Pe===a)break e;for(;Pe.sibling===null;){if(Pe.return===null||Pe.return===a)break e;Me===Pe&&(Me=null),Pe=Pe.return}Me===Pe&&(Me=null),Pe.sibling.return=Pe.return,Pe=Pe.sibling}}break;case 19:Or(o,a),fo(a),m&4&&Vu(a);break;case 21:break;default:Or(o,a),fo(a)}}function fo(a){var o=a.flags;if(o&2){try{e:{for(var f=a.return;f!==null;){if(Uv(f)){var m=f;break e}f=f.return}throw Error(i(160))}switch(m.tag){case 5:var S=m.stateNode;m.flags&32&&(za(S,""),m.flags&=-33);var w=Dg(a);Pu(a,w,S);break;case 3:case 4:var k=m.stateNode.containerInfo,W=Dg(a);df(a,W,k);break;default:throw Error(i(161))}}catch(Q){ar(a,a.return,Q)}a.flags&=-3}o&4096&&(a.flags&=-4097)}function yC(a,o,f){Ke=a,$v(a)}function $v(a,o,f){for(var m=(a.mode&1)!==0;Ke!==null;){var S=Ke,w=S.child;if(S.tag===22&&m){var k=S.memoizedState!==null||ku;if(!k){var W=S.alternate,Q=W!==null&&W.memoizedState!==null||Fr;W=ku;var pe=Fr;if(ku=k,(Fr=Q)&&!pe)for(Ke=S;Ke!==null;)k=Ke,Q=k.child,k.tag===22&&k.memoizedState!==null?Gv(S):Q!==null?(Q.return=k,Ke=Q):Gv(S);for(;w!==null;)Ke=w,$v(w),w=w.sibling;Ke=S,ku=W,Fr=pe}Bu(a)}else S.subtreeFlags&8772&&w!==null?(w.return=S,Ke=w):Bu(a)}}function Bu(a){for(;Ke!==null;){var o=Ke;if(o.flags&8772){var f=o.alternate;try{if(o.flags&8772)switch(o.tag){case 0:case 11:case 15:Fr||Bd(5,o);break;case 1:var m=o.stateNode;if(o.flags&4&&!Fr)if(f===null)m.componentDidMount();else{var S=o.elementType===o.type?f.memoizedProps:Na(o.type,f.memoizedProps);m.componentDidUpdate(S,f.memoizedState,m.__reactInternalSnapshotBeforeUpdate)}var w=o.updateQueue;w!==null&&Eu(o,w,m);break;case 3:var k=o.updateQueue;if(k!==null){if(f=null,o.child!==null)switch(o.child.tag){case 5:f=o.child.stateNode;break;case 1:f=o.child.stateNode}Eu(o,k,f)}break;case 5:var W=o.stateNode;if(f===null&&o.flags&4){f=W;var Q=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":Q.autoFocus&&f.focus();break;case"img":Q.src&&(f.src=Q.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var pe=o.alternate;if(pe!==null){var Me=pe.memoizedState;if(Me!==null){var Pe=Me.dehydrated;Pe!==null&&li(Pe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}Fr||o.flags&512&&zd(o)}catch(De){ar(o,o.return,De)}}if(o===a){Ke=null;break}if(f=o.sibling,f!==null){f.return=o.return,Ke=f;break}Ke=o.return}}function Mg(a){for(;Ke!==null;){var o=Ke;if(o===a){Ke=null;break}var f=o.sibling;if(f!==null){f.return=o.return,Ke=f;break}Ke=o.return}}function Gv(a){for(;Ke!==null;){var o=Ke;try{switch(o.tag){case 0:case 11:case 15:var f=o.return;try{Bd(4,o)}catch(Q){ar(o,f,Q)}break;case 1:var m=o.stateNode;if(typeof m.componentDidMount=="function"){var S=o.return;try{m.componentDidMount()}catch(Q){ar(o,S,Q)}}var w=o.return;try{zd(o)}catch(Q){ar(o,w,Q)}break;case 5:var k=o.return;try{zd(o)}catch(Q){ar(o,k,Q)}}}catch(Q){ar(o,o.return,Q)}if(o===a){Ke=null;break}var W=o.sibling;if(W!==null){W.return=o.return,Ke=W;break}Ke=o.return}}var bC=Math.ceil,Ol=H.ReactCurrentDispatcher,Hd=H.ReactCurrentOwner,yi=H.ReactCurrentBatchConfig,zt=0,rr=null,zn=null,br=0,Da=0,zu=In(0),Cr=0,pf=null,Al=0,Hu=0,Wv=0,Fs=null,Qr=null,Ud=0,Uu=1/0,Xo=null,$d=!1,Xv=null,bi=null,$u=!1,Ci=null,Gd=0,vf=0,Wd=null,hf=-1,jl=0;function Ar(){return zt&6?Dn():hf!==-1?hf:hf=Dn()}function Yo(a){return a.mode&1?zt&2&&br!==0?br&-br:cC.transition!==null?(jl===0&&(jl=ll()),jl):(a=Ut,a!==0||(a=window.event,a=a===void 0?16:Oc(a.type)),a):1}function Zn(a,o,f,m){if(50<vf)throw vf=0,Wd=null,Error(i(185));ys(a,f,m),(!(zt&2)||a!==rr)&&(a===rr&&(!(zt&2)&&(Hu|=f),Cr===4&&po(a,br)),xr(a,m),f===1&&zt===0&&!(o.mode&1)&&(Uu=Dn()+500,Is&&oo()))}function xr(a,o){var f=a.callbackNode;gs(a,o);var m=eo(a,a===rr?br:0);if(m===0)f!==null&&jn(f),a.callbackNode=null,a.callbackPriority=0;else if(o=m&-m,a.callbackPriority!==o){if(f!=null&&jn(f),o===1)a.tag===0?dg(Gu.bind(null,a)):fd(Gu.bind(null,a)),cg(function(){!(zt&6)&&oo()}),f=null;else{switch(Ic(m)){case 1:f=Cc;break;case 4:f=Ki;break;case 16:f=Lt;break;case 536870912:f=Oo;break;default:f=Lt}f=Ug(f,Xd.bind(null,a))}a.callbackPriority=o,a.callbackNode=f}}function Xd(a,o){if(hf=-1,jl=0,zt&6)throw Error(i(327));var f=a.callbackNode;if(Wu()&&a.callbackNode!==f)return null;var m=eo(a,a===rr?br:0);if(m===0)return null;if(m&30||m&a.expiredLanes||o)o=Zd(a,m);else{o=m;var S=zt;zt|=2;var w=Pg();(rr!==a||br!==o)&&(Xo=null,Uu=Dn()+500,kl(a,o));do try{xC();break}catch(W){Lg(a,W)}while(!0);_v(),Ol.current=w,zt=S,zn!==null?o=0:(rr=null,br=0,o=Cr)}if(o!==0){if(o===2&&(S=to(a),S!==0&&(m=S,o=Dl(a,S))),o===1)throw f=pf,kl(a,0),po(a,m),xr(a,Dn()),f;if(o===6)po(a,m);else{if(S=a.current.alternate,!(m&30)&&!Zv(S)&&(o=Zd(a,m),o===2&&(w=to(a),w!==0&&(m=w,o=Dl(a,w))),o===1))throw f=pf,kl(a,0),po(a,m),xr(a,Dn()),f;switch(a.finishedWork=S,a.finishedLanes=m,o){case 0:case 1:throw Error(i(345));case 2:Vs(a,Qr,Xo);break;case 3:if(po(a,m),(m&130023424)===m&&(o=Ud+500-Dn(),10<o)){if(eo(a,0)!==0)break;if(S=a.suspendedLanes,(S&m)!==m){Ar(),a.pingedLanes|=a.suspendedLanes&S;break}a.timeoutHandle=Gc(Vs.bind(null,a,Qr,Xo),o);break}Vs(a,Qr,Xo);break;case 4:if(po(a,m),(m&4194240)===m)break;for(o=a.eventTimes,S=-1;0<m;){var k=31-ra(m);w=1<<k,k=o[k],k>S&&(S=k),m&=~w}if(m=S,m=Dn()-m,m=(120>m?120:480>m?480:1080>m?1080:1920>m?1920:3e3>m?3e3:4320>m?4320:1960*bC(m/1960))-m,10<m){a.timeoutHandle=Gc(Vs.bind(null,a,Qr,Xo),m);break}Vs(a,Qr,Xo);break;case 5:Vs(a,Qr,Xo);break;default:throw Error(i(329))}}}return xr(a,Dn()),a.callbackNode===f?Xd.bind(null,a):null}function Dl(a,o){var f=Fs;return a.current.memoizedState.isDehydrated&&(kl(a,o).flags|=256),a=Zd(a,o),a!==2&&(o=Qr,Qr=f,o!==null&&Yv(o)),a}function Yv(a){Qr===null?Qr=a:Qr.push.apply(Qr,a)}function Zv(a){for(var o=a;;){if(o.flags&16384){var f=o.updateQueue;if(f!==null&&(f=f.stores,f!==null))for(var m=0;m<f.length;m++){var S=f[m],w=S.getSnapshot;S=S.value;try{if(!Bi(w(),S))return!1}catch{return!1}}}if(f=o.child,o.subtreeFlags&16384&&f!==null)f.return=o,o=f;else{if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function po(a,o){for(o&=~Wv,o&=~Hu,a.suspendedLanes|=o,a.pingedLanes&=~o,a=a.expirationTimes;0<o;){var f=31-ra(o),m=1<<f;a[f]=-1,o&=~m}}function Gu(a){if(zt&6)throw Error(i(327));Wu();var o=eo(a,0);if(!(o&1))return xr(a,Dn()),null;var f=Zd(a,o);if(a.tag!==0&&f===2){var m=to(a);m!==0&&(o=m,f=Dl(a,m))}if(f===1)throw f=pf,kl(a,0),po(a,o),xr(a,Dn()),f;if(f===6)throw Error(i(345));return a.finishedWork=a.current.alternate,a.finishedLanes=o,Vs(a,Qr,Xo),xr(a,Dn()),null}function Jv(a,o){var f=zt;zt|=1;try{return a(o)}finally{zt=f,zt===0&&(Uu=Dn()+500,Is&&oo())}}function vo(a){Ci!==null&&Ci.tag===0&&!(zt&6)&&Wu();var o=zt;zt|=1;var f=yi.transition,m=Ut;try{if(yi.transition=null,Ut=1,a)return a()}finally{Ut=m,yi.transition=f,zt=o,!(zt&6)&&oo()}}function Yd(){Da=zu.current,st(zu)}function kl(a,o){a.finishedWork=null,a.finishedLanes=0;var f=a.timeoutHandle;if(f!==-1&&(a.timeoutHandle=-1,Wc(f)),zn!==null)for(f=zn.return;f!==null;){var m=f;switch(pd(m),m.tag){case 1:m=m.type.childContextTypes,m!=null&&wa();break;case 3:Iu(),st(Ot),st(Nr),hi();break;case 5:mt(m);break;case 4:Iu();break;case 13:st(ut);break;case 19:st(ut);break;case 10:Ov(m.type._context);break;case 22:case 23:Yd()}f=f.return}if(rr=a,zn=a=Bs(a.current,null),br=Da=o,Cr=0,pf=null,Wv=Hu=Al=0,Qr=Fs=null,Jr!==null){for(o=0;o<Jr.length;o++)if(f=Jr[o],m=f.interleaved,m!==null){f.interleaved=null;var S=m.next,w=f.pending;if(w!==null){var k=w.next;w.next=S,m.next=k}f.pending=m}Jr=null}return a}function Lg(a,o){do{var f=zn;try{if(_v(),ef.current=jd,lr){for(var m=Yn.memoizedState;m!==null;){var S=m.queue;S!==null&&(S.pending=null),m=m.next}lr=!1}if(xl=0,Ee=sr=Yn=null,bt=!1,uo=0,Hd.current=null,f===null||f.return===null){Cr=1,pf=o,zn=null;break}e:{var w=a,k=f.return,W=f,Q=o;if(o=br,W.flags|=32768,Q!==null&&typeof Q=="object"&&typeof Q.then=="function"){var pe=Q,Me=W,Pe=Me.tag;if(!(Me.mode&1)&&(Pe===0||Pe===11||Pe===15)){var De=Me.alternate;De?(Me.updateQueue=De.updateQueue,Me.memoizedState=De.memoizedState,Me.lanes=De.lanes):(Me.updateQueue=null,Me.memoizedState=null)}var Ye=Ig(k);if(Ye!==null){Ye.flags&=-257,Vv(Ye,k,W,w,o),Ye.mode&1&&lf(w,pe,o),o=Ye,Q=pe;var nt=o.updateQueue;if(nt===null){var ot=new Set;ot.add(Q),o.updateQueue=ot}else nt.add(Q);break e}else{if(!(o&1)){lf(w,pe,o),mf();break e}Q=Error(i(426))}}else if(Bn&&W.mode&1){var fr=Ig(k);if(fr!==null){!(fr.flags&65536)&&(fr.flags|=256),Vv(fr,k,W,w,o),hr(Ls(Q,W));break e}}w=Q=Ls(Q,W),Cr!==4&&(Cr=2),Fs===null?Fs=[w]:Fs.push(w),w=k;do{switch(w.tag){case 3:w.flags|=65536,o&=-o,w.lanes|=o;var ae=Rg(w,Q,o);mg(w,ae);break e;case 1:W=Q;var ee=w.type,se=w.stateNode;if(!(w.flags&128)&&(typeof ee.getDerivedStateFromError=="function"||se!==null&&typeof se.componentDidCatch=="function"&&(bi===null||!bi.has(se)))){w.flags|=65536,o&=-o,w.lanes|=o;var ze=Tg(w,W,o);mg(w,ze);break e}}w=w.return}while(w!==null)}Vg(f)}catch(lt){o=lt,zn===f&&f!==null&&(zn=f=f.return);continue}break}while(!0)}function Pg(){var a=Ol.current;return Ol.current=jd,a===null?jd:a}function mf(){(Cr===0||Cr===3||Cr===2)&&(Cr=4),rr===null||!(Al&268435455)&&!(Hu&268435455)||po(rr,br)}function Zd(a,o){var f=zt;zt|=2;var m=Pg();(rr!==a||br!==o)&&(Xo=null,kl(a,o));do try{CC();break}catch(S){Lg(a,S)}while(!0);if(_v(),zt=f,Ol.current=m,zn!==null)throw Error(i(261));return rr=null,br=0,Cr}function CC(){for(;zn!==null;)Fg(zn)}function xC(){for(;zn!==null&&!Yr();)Fg(zn)}function Fg(a){var o=Hg(a.alternate,a,Da);a.memoizedProps=a.pendingProps,o===null?Vg(a):zn=o,Hd.current=null}function Vg(a){var o=a;do{var f=o.alternate;if(a=o.return,o.flags&32768){if(f=mC(f,o),f!==null){f.flags&=32767,zn=f;return}if(a!==null)a.flags|=32768,a.subtreeFlags=0,a.deletions=null;else{Cr=6,zn=null;return}}else if(f=hC(f,o,Da),f!==null){zn=f;return}if(o=o.sibling,o!==null){zn=o;return}zn=o=a}while(o!==null);Cr===0&&(Cr=5)}function Vs(a,o,f){var m=Ut,S=yi.transition;try{yi.transition=null,Ut=1,SC(a,o,f,m)}finally{yi.transition=S,Ut=m}return null}function SC(a,o,f,m){do Wu();while(Ci!==null);if(zt&6)throw Error(i(327));f=a.finishedWork;var S=a.finishedLanes;if(f===null)return null;if(a.finishedWork=null,a.finishedLanes=0,f===a.current)throw Error(i(177));a.callbackNode=null,a.callbackPriority=0;var w=f.lanes|f.childLanes;if(Rc(a,w),a===rr&&(zn=rr=null,br=0),!(f.subtreeFlags&2064)&&!(f.flags&2064)||$u||($u=!0,Ug(Lt,function(){return Wu(),null})),w=(f.flags&15990)!==0,f.subtreeFlags&15990||w){w=yi.transition,yi.transition=null;var k=Ut;Ut=1;var W=zt;zt|=4,Hd.current=null,gC(a,f),kg(f,a),pl(Cv),cu=!!bv,Cv=bv=null,a.current=f,yC(f),Qi(),zt=W,Ut=k,yi.transition=w}else a.current=f;if($u&&($u=!1,Ci=a,Gd=S),w=a.pendingLanes,w===0&&(bi=null),xc(f.stateNode),xr(a,Dn()),o!==null)for(m=a.onRecoverableError,f=0;f<o.length;f++)S=o[f],m(S.value,{componentStack:S.stack,digest:S.digest});if($d)throw $d=!1,a=Xv,Xv=null,a;return Gd&1&&a.tag!==0&&Wu(),w=a.pendingLanes,w&1?a===Wd?vf++:(vf=0,Wd=a):vf=0,oo(),null}function Wu(){if(Ci!==null){var a=Ic(Gd),o=yi.transition,f=Ut;try{if(yi.transition=null,Ut=16>a?16:a,Ci===null)var m=!1;else{if(a=Ci,Ci=null,Gd=0,zt&6)throw Error(i(331));var S=zt;for(zt|=4,Ke=a.current;Ke!==null;){var w=Ke,k=w.child;if(Ke.flags&16){var W=w.deletions;if(W!==null){for(var Q=0;Q<W.length;Q++){var pe=W[Q];for(Ke=pe;Ke!==null;){var Me=Ke;switch(Me.tag){case 0:case 11:case 15:Lu(8,Me,w)}var Pe=Me.child;if(Pe!==null)Pe.return=Me,Ke=Pe;else for(;Ke!==null;){Me=Ke;var De=Me.sibling,Ye=Me.return;if(jg(Me),Me===pe){Ke=null;break}if(De!==null){De.return=Ye,Ke=De;break}Ke=Ye}}}var nt=w.alternate;if(nt!==null){var ot=nt.child;if(ot!==null){nt.child=null;do{var fr=ot.sibling;ot.sibling=null,ot=fr}while(ot!==null)}}Ke=w}}if(w.subtreeFlags&2064&&k!==null)k.return=w,Ke=k;else e:for(;Ke!==null;){if(w=Ke,w.flags&2048)switch(w.tag){case 0:case 11:case 15:Lu(9,w,w.return)}var ae=w.sibling;if(ae!==null){ae.return=w.return,Ke=ae;break e}Ke=w.return}}var ee=a.current;for(Ke=ee;Ke!==null;){k=Ke;var se=k.child;if(k.subtreeFlags&2064&&se!==null)se.return=k,Ke=se;else e:for(k=ee;Ke!==null;){if(W=Ke,W.flags&2048)try{switch(W.tag){case 0:case 11:case 15:Bd(9,W)}}catch(lt){ar(W,W.return,lt)}if(W===k){Ke=null;break e}var ze=W.sibling;if(ze!==null){ze.return=W.return,Ke=ze;break e}Ke=W.return}}if(zt=S,oo(),Ca&&typeof Ca.onPostCommitFiberRoot=="function")try{Ca.onPostCommitFiberRoot(ms,a)}catch{}m=!0}return m}finally{Ut=f,yi.transition=o}}return!1}function Bg(a,o,f){o=Ls(f,o),o=Rg(a,o,1),a=js(a,o,1),o=Ar(),a!==null&&(ys(a,1,o),xr(a,o))}function ar(a,o,f){if(a.tag===3)Bg(a,a,f);else for(;o!==null;){if(o.tag===3){Bg(o,a,f);break}else if(o.tag===1){var m=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(bi===null||!bi.has(m))){a=Ls(f,a),a=Tg(o,a,1),o=js(o,a,1),a=Ar(),o!==null&&(ys(o,1,a),xr(o,a));break}}o=o.return}}function EC(a,o,f){var m=a.pingCache;m!==null&&m.delete(o),o=Ar(),a.pingedLanes|=a.suspendedLanes&f,rr===a&&(br&f)===f&&(Cr===4||Cr===3&&(br&130023424)===br&&500>Dn()-Ud?kl(a,0):Wv|=f),xr(a,o)}function zg(a,o){o===0&&(a.mode&1?(o=ou,ou<<=1,!(ou&130023424)&&(ou=4194304)):o=1);var f=Ar();a=$o(a,o),a!==null&&(ys(a,o,f),xr(a,f))}function qv(a){var o=a.memoizedState,f=0;o!==null&&(f=o.retryLane),zg(a,f)}function wC(a,o){var f=0;switch(a.tag){case 13:var m=a.stateNode,S=a.memoizedState;S!==null&&(f=S.retryLane);break;case 19:m=a.stateNode;break;default:throw Error(i(314))}m!==null&&m.delete(o),zg(a,f)}var Hg;Hg=function(a,o,f){if(a!==null)if(a.memoizedProps!==o.pendingProps||Ot.current)Aa=!0;else{if(!(a.lanes&f)&&!(o.flags&128))return Aa=!1,Wo(a,o,f);Aa=!!(a.flags&131072)}else Aa=!1,Bn&&o.flags&1048576&&_s(o,yl,o.index);switch(o.lanes=0,o.tag){case 2:var m=o.type;ff(a,o),a=o.pendingProps;var S=Wa(o,Nr.current);or(o,f),S=Sl(null,o,m,a,S,f);var w=ks();return o.flags|=1,typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,vr(m)?(w=!0,gl(o)):w=!1,o.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,Av(o),S.updater=gd,o.stateNode=S,S._reactInternals=o,Dv(o,m,a,f),o=kd(null,o,m,!0,w,f)):(o.tag=0,Bn&&w&&dd(o),ur(null,o,S,f),o=o.child),o;case 16:m=o.elementType;e:{switch(ff(a,o),a=o.pendingProps,S=m._init,m=S(m._payload),o.type=m,S=o.tag=RC(m),a=Na(m,a),S){case 0:o=Dt(null,o,m,a,f);break e;case 1:o=uf(null,o,m,a,f);break e;case 11:o=Au(null,o,m,a,f);break e;case 14:o=Ps(null,o,m,Na(m.type,a),f);break e}throw Error(i(306,m,""))}return o;case 0:return m=o.type,S=o.pendingProps,S=o.elementType===m?S:Na(m,S),Dt(a,o,m,S,f);case 1:return m=o.type,S=o.pendingProps,S=o.elementType===m?S:Na(m,S),uf(a,o,m,S,f);case 3:e:{if(vC(o),a===null)throw Error(i(387));m=o.pendingProps,w=o.memoizedState,S=w.element,hg(a,o),Jc(o,m,null,f);var k=o.memoizedState;if(m=k.element,w.isDehydrated)if(w={element:m,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},o.updateQueue.baseState=w,o.memoizedState=w,o.flags&256){S=Ls(Error(i(423)),o),o=_g(a,o,m,f,S);break e}else if(m!==S){S=Ls(Error(i(424)),o),o=_g(a,o,m,f,S);break e}else for(Ya=Ga(o.stateNode.containerInfo.firstChild),Xa=o,Bn=!0,pi=null,f=Sg(o,null,m,f),o.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling;else{if(Cu(),m===S){o=cr(a,o,f);break e}ur(a,o,m,f)}o=o.child}return o;case 5:return yd(o),a===null&&vd(o),m=o.type,S=o.pendingProps,w=a!==null?a.memoizedProps:null,k=S.children,ml(m,S)?k=null:w!==null&&ml(m,w)&&(o.flags|=32),Nl(a,o),ur(a,o,k,f),o.child;case 6:return a===null&&vd(o),null;case 13:return Og(a,o,f);case 4:return kv(o,o.stateNode.containerInfo),m=o.pendingProps,a===null?o.child=Ru(o,null,m,f):ur(a,o,m,f),o.child;case 11:return m=o.type,S=o.pendingProps,S=o.elementType===m?S:Na(m,S),Au(a,o,m,S,f);case 7:return ur(a,o,o.pendingProps,f),o.child;case 8:return ur(a,o,o.pendingProps.children,f),o.child;case 12:return ur(a,o,o.pendingProps.children,f),o.child;case 10:e:{if(m=o.type._context,S=o.pendingProps,w=o.memoizedProps,k=S.value,tn(xu,m._currentValue),m._currentValue=k,w!==null)if(Bi(w.value,k)){if(w.children===S.children&&!Ot.current){o=cr(a,o,f);break e}}else for(w=o.child,w!==null&&(w.return=o);w!==null;){var W=w.dependencies;if(W!==null){k=w.child;for(var Q=W.firstContext;Q!==null;){if(Q.context===m){if(w.tag===1){Q=kn(-1,f&-f),Q.tag=2;var pe=w.updateQueue;if(pe!==null){pe=pe.shared;var Me=pe.pending;Me===null?Q.next=Q:(Q.next=Me.next,Me.next=Q),pe.pending=Q}}w.lanes|=f,Q=w.alternate,Q!==null&&(Q.lanes|=f),Os(w.return,f,o),W.lanes|=f;break}Q=Q.next}}else if(w.tag===10)k=w.type===o.type?null:w.child;else if(w.tag===18){if(k=w.return,k===null)throw Error(i(341));k.lanes|=f,W=k.alternate,W!==null&&(W.lanes|=f),Os(k,f,o),k=w.sibling}else k=w.child;if(k!==null)k.return=w;else for(k=w;k!==null;){if(k===o){k=null;break}if(w=k.sibling,w!==null){w.return=k.return,k=w;break}k=k.return}w=k}ur(a,o,S.children,f),o=o.child}return o;case 9:return S=o.type,m=o.pendingProps.children,or(o,f),S=He(S),m=m(S),o.flags|=1,ur(a,o,m,f),o.child;case 14:return m=o.type,S=Na(m,o.pendingProps),S=Na(m.type,S),Ps(a,o,m,S,f);case 15:return Dd(a,o,o.type,o.pendingProps,f);case 17:return m=o.type,S=o.pendingProps,S=o.elementType===m?S:Na(m,S),ff(a,o),o.tag=1,vr(m)?(a=!0,gl(o)):a=!1,or(o,f),yg(o,m,S),Dv(o,m,S,f),kd(null,o,m,!0,a,f);case 19:return zv(a,o,f);case 22:return ja(a,o,f)}throw Error(i(156,o.tag))};function Ug(a,o){return An(a,o)}function $g(a,o,f,m){this.tag=a,this.key=f,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xi(a,o,f,m){return new $g(a,o,f,m)}function Qv(a){return a=a.prototype,!(!a||!a.isReactComponent)}function RC(a){if(typeof a=="function")return Qv(a)?1:0;if(a!=null){if(a=a.$$typeof,a===fe)return 11;if(a===xe)return 14}return 2}function Bs(a,o){var f=a.alternate;return f===null?(f=xi(a.tag,o,a.key,a.mode),f.elementType=a.elementType,f.type=a.type,f.stateNode=a.stateNode,f.alternate=a,a.alternate=f):(f.pendingProps=o,f.type=a.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=a.flags&14680064,f.childLanes=a.childLanes,f.lanes=a.lanes,f.child=a.child,f.memoizedProps=a.memoizedProps,f.memoizedState=a.memoizedState,f.updateQueue=a.updateQueue,o=a.dependencies,f.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},f.sibling=a.sibling,f.index=a.index,f.ref=a.ref,f}function Jd(a,o,f,m,S,w){var k=2;if(m=a,typeof a=="function")Qv(a)&&(k=1);else if(typeof a=="string")k=5;else e:switch(a){case J:return Ml(f.children,S,w,o);case q:k=8,S|=8;break;case Re:return a=xi(12,f,o,S|2),a.elementType=Re,a.lanes=w,a;case Oe:return a=xi(13,f,o,S),a.elementType=Oe,a.lanes=w,a;case Te:return a=xi(19,f,o,S),a.elementType=Te,a.lanes=w,a;case Le:return qd(f,S,w,o);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case he:k=10;break e;case ge:k=9;break e;case fe:k=11;break e;case xe:k=14;break e;case je:k=16,m=null;break e}throw Error(i(130,a==null?a:typeof a,""))}return o=xi(k,f,o,S),o.elementType=a,o.type=m,o.lanes=w,o}function Ml(a,o,f,m){return a=xi(7,a,m,o),a.lanes=f,a}function qd(a,o,f,m){return a=xi(22,a,m,o),a.elementType=Le,a.lanes=f,a.stateNode={isHidden:!1},a}function Qd(a,o,f){return a=xi(6,a,null,o),a.lanes=f,a}function gf(a,o,f){return o=xi(4,a.children!==null?a.children:[],a.key,o),o.lanes=f,o.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},o}function yf(a,o,f,m,S){this.tag=o,this.containerInfo=a,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ul(0),this.expirationTimes=ul(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ul(0),this.identifierPrefix=m,this.onRecoverableError=S,this.mutableSourceEagerHydrationData=null}function Kv(a,o,f,m,S,w,k,W,Q){return a=new yf(a,o,f,W,Q),o===1?(o=1,w===!0&&(o|=8)):o=0,w=xi(3,null,null,o),a.current=w,w.stateNode=a,w.memoizedState={element:m,isDehydrated:f,cache:null,transitions:null,pendingSuspenseBoundaries:null},Av(w),a}function Gg(a,o,f){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:U,key:m==null?null:""+m,children:a,containerInfo:o,implementation:f}}function eh(a){if(!a)return ci;a=a._reactInternals;e:{if(We(a)!==a||a.tag!==1)throw Error(i(170));var o=a;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(vr(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(i(171))}if(a.tag===1){var f=a.type;if(vr(f))return Ts(a,f,o)}return o}function th(a,o,f,m,S,w,k,W,Q){return a=Kv(f,m,!0,a,S,w,k,W,Q),a.context=eh(null),f=a.current,m=Ar(),S=Yo(f),w=kn(m,S),w.callback=o??null,js(f,w,S),a.current.lanes=S,ys(a,S,m),xr(a,m),a}function Kd(a,o,f,m){var S=o.current,w=Ar(),k=Yo(S);return f=eh(f),o.context===null?o.context=f:o.pendingContext=f,o=kn(w,k),o.payload={element:a},m=m===void 0?null:m,m!==null&&(o.callback=m),a=js(S,o,k),a!==null&&(Zn(a,S,k,w),md(a,S,k)),k}function bf(a){if(a=a.current,!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function Wg(a,o){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var f=a.retryLane;a.retryLane=f!==0&&f<o?f:o}}function nh(a,o){Wg(a,o),(a=a.alternate)&&Wg(a,o)}function TC(){return null}var rh=typeof reportError=="function"?reportError:function(a){console.error(a)};function ep(a){this._internalRoot=a}Cf.prototype.render=ep.prototype.render=function(a){var o=this._internalRoot;if(o===null)throw Error(i(409));Kd(a,o,null,null)},Cf.prototype.unmount=ep.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var o=a.containerInfo;vo(function(){Kd(null,a,null,null)}),o[zi]=null}};function Cf(a){this._internalRoot=a}Cf.prototype.unstable_scheduleHydration=function(a){if(a){var o=Yt();a={blockedOn:null,target:a,priority:o};for(var f=0;f<Fn.length&&o!==0&&o<Fn[f].priority;f++);Fn.splice(f,0,a),f===0&&Fi(a)}};function zs(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function tp(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11&&(a.nodeType!==8||a.nodeValue!==" react-mount-point-unstable "))}function Xg(){}function IC(a,o,f,m,S){if(S){if(typeof m=="function"){var w=m;m=function(){var pe=bf(k);w.call(pe)}}var k=th(o,m,a,0,null,!1,!1,"",Xg);return a._reactRootContainer=k,a[zi]=k.current,ro(a.nodeType===8?a.parentNode:a),vo(),k}for(;S=a.lastChild;)a.removeChild(S);if(typeof m=="function"){var W=m;m=function(){var pe=bf(Q);W.call(pe)}}var Q=Kv(a,0,!1,null,null,!1,!1,"",Xg);return a._reactRootContainer=Q,a[zi]=Q.current,ro(a.nodeType===8?a.parentNode:a),vo(function(){Kd(o,Q,f,m)}),Q}function np(a,o,f,m,S){var w=f._reactRootContainer;if(w){var k=w;if(typeof S=="function"){var W=S;S=function(){var Q=bf(k);W.call(Q)}}Kd(o,k,a,S)}else k=IC(f,o,a,S,m);return bf(k)}su=function(a){switch(a.tag){case 3:var o=a.stateNode;if(o.current.memoizedState.isDehydrated){var f=Ao(o.pendingLanes);f!==0&&(Tc(o,f|1),xr(o,Dn()),!(zt&6)&&(Uu=Dn()+500,oo()))}break;case 13:vo(function(){var m=$o(a,1);if(m!==null){var S=Ar();Zn(m,a,1,S)}}),nh(a,1)}},bs=function(a){if(a.tag===13){var o=$o(a,134217728);if(o!==null){var f=Ar();Zn(o,a,134217728,f)}nh(a,134217728)}},Nc=function(a){if(a.tag===13){var o=Yo(a),f=$o(a,o);if(f!==null){var m=Ar();Zn(f,a,o,m)}nh(a,o)}},Yt=function(){return Ut},lu=function(a,o){var f=Ut;try{return Ut=a,o()}finally{Ut=f}},pn=function(a,o,f){switch(o){case"input":if(on(a,f),o=f.name,f.type==="radio"&&o!=null){for(f=a;f.parentNode;)f=f.parentNode;for(f=f.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<f.length;o++){var m=f[o];if(m!==a&&m.form===a.form){var S=cd(m);if(!S)throw Error(i(90));ft(m),on(m,S)}}}break;case"textarea":$n(a,f);break;case"select":o=f.value,o!=null&&Cn(a,!!f.multiple,o,!1)}},vs=Jv,al=vo;var NC={usingClientEntryPoint:!1,Events:[ao,bu,cd,ki,ai,Jv]},xf={findFiberByHostInstance:Ho,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Yg={bundleType:xf.bundleType,version:xf.version,rendererPackageName:xf.rendererPackageName,rendererConfig:xf.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:H.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){return a=vt(a),a===null?null:a.stateNode},findFiberByHostInstance:xf.findFiberByHostInstance||TC,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var rp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rp.isDisabled&&rp.supportsFiber)try{ms=rp.inject(Yg),Ca=rp}catch{}}return Ii.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=NC,Ii.createPortal=function(a,o){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!zs(o))throw Error(i(200));return Gg(a,o,null,f)},Ii.createRoot=function(a,o){if(!zs(a))throw Error(i(299));var f=!1,m="",S=rh;return o!=null&&(o.unstable_strictMode===!0&&(f=!0),o.identifierPrefix!==void 0&&(m=o.identifierPrefix),o.onRecoverableError!==void 0&&(S=o.onRecoverableError)),o=Kv(a,1,!1,null,null,f,!1,m,S),a[zi]=o.current,ro(a.nodeType===8?a.parentNode:a),new ep(o)},Ii.findDOMNode=function(a){if(a==null)return null;if(a.nodeType===1)return a;var o=a._reactInternals;if(o===void 0)throw typeof a.render=="function"?Error(i(188)):(a=Object.keys(a).join(","),Error(i(268,a)));return a=vt(o),a=a===null?null:a.stateNode,a},Ii.flushSync=function(a){return vo(a)},Ii.hydrate=function(a,o,f){if(!tp(o))throw Error(i(200));return np(null,a,o,!0,f)},Ii.hydrateRoot=function(a,o,f){if(!zs(a))throw Error(i(405));var m=f!=null&&f.hydratedSources||null,S=!1,w="",k=rh;if(f!=null&&(f.unstable_strictMode===!0&&(S=!0),f.identifierPrefix!==void 0&&(w=f.identifierPrefix),f.onRecoverableError!==void 0&&(k=f.onRecoverableError)),o=th(o,null,a,1,f??null,S,!1,w,k),a[zi]=o.current,ro(a),m)for(a=0;a<m.length;a++)f=m[a],S=f._getVersion,S=S(f._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[f,S]:o.mutableSourceEagerHydrationData.push(f,S);return new Cf(o)},Ii.render=function(a,o,f){if(!tp(o))throw Error(i(200));return np(null,a,o,!1,f)},Ii.unmountComponentAtNode=function(a){if(!tp(a))throw Error(i(40));return a._reactRootContainer?(vo(function(){np(null,null,a,!1,function(){a._reactRootContainer=null,a[zi]=null})}),!0):!1},Ii.unstable_batchedUpdates=Jv,Ii.unstable_renderSubtreeIntoContainer=function(a,o,f,m){if(!tp(f))throw Error(i(200));if(a==null||a._reactInternals===void 0)throw Error(i(38));return np(a,o,f,!1,m)},Ii.version="18.2.0-next-9e3b772b8-20220608",Ii}var Ni={},VN;function nz(){if(VN)return Ni;VN=1;var n={};/**
|
|
97
97
|
* @license React
|
|
98
98
|
* react-dom.development.js
|
|
99
99
|
*
|
|
@@ -101,13 +101,13 @@ Error generating stack: `+R.message+`
|
|
|
101
101
|
*
|
|
102
102
|
* This source code is licensed under the MIT license found in the
|
|
103
103
|
* LICENSE file in the root directory of this source tree.
|
|
104
|
-
*/return n.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 r=Qf(),i=YO(),u=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,l=!1;function d(e){l=e}function h(e){if(!l){for(var t=arguments.length,s=new Array(t>1?t-1:0),c=1;c<t;c++)s[c-1]=arguments[c];y("warn",e,s)}}function v(e){if(!l){for(var t=arguments.length,s=new Array(t>1?t-1:0),c=1;c<t;c++)s[c-1]=arguments[c];y("error",e,s)}}function y(e,t,s){{var c=u.ReactDebugCurrentFrame,p=c.getStackAddendum();p!==""&&(t+="%s",s=s.concat([p]));var g=s.map(function(E){return String(E)});g.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,g)}}var C=0,x=1,w=2,T=3,A=4,N=5,O=6,_=7,L=8,F=9,V=10,H=11,z=12,U=13,J=14,q=15,Re=16,he=17,ge=18,fe=19,Oe=21,Te=22,xe=23,je=24,Le=25,ne=!0,_e=!1,G=!1,Y=!1,re=!1,ye=!0,Se=!1,Ne=!1,le=!0,ve=!0,we=!0,Ve=new Set,et={},tt={};function ft(e,t){Ae(e,t),Ae(e+"Capture",t)}function Ae(e,t){et[e]&&v("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),et[e]=t;{var s=e.toLowerCase();tt[s]=e,e==="onDoubleClick"&&(tt.ondblclick=e)}for(var c=0;c<t.length;c++)Ve.add(t[c])}var It=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",pt=Object.prototype.hasOwnProperty;function Kt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,s=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s}}function on(e){try{return sn(e),!1}catch{return!0}}function sn(e){return""+e}function _n(e,t){if(on(e))return v("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Kt(e)),sn(e)}function Vt(e){if(on(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Kt(e)),sn(e)}function Cn(e,t){if(on(e))return v("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Kt(e)),sn(e)}function Qn(e,t){if(on(e))return v("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Kt(e)),sn(e)}function Rr(e){if(on(e))return v("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",Kt(e)),sn(e)}function $n(e){if(on(e))return v("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",Kt(e)),sn(e)}var Tr=0,xt=1,Pn=2,ln=3,Ba=4,za=5,Ha=6,Ge=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",dt=Ge+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Mt=new RegExp("^["+Ge+"]["+dt+"]*$"),un={},en={};function ir(e){return pt.call(en,e)?!0:pt.call(un,e)?!1:Mt.test(e)?(en[e]=!0,!0):(un[e]=!0,v("Invalid attribute name: `%s`",e),!1)}function Gn(e,t,s){return t!==null?t.type===Tr:s?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function Xr(e,t,s,c){if(s!==null&&s.type===Tr)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":{if(c)return!1;if(s!==null)return!s.acceptsBooleans;var p=e.toLowerCase().slice(0,5);return p!=="data-"&&p!=="aria-"}default:return!1}}function pn(e,t,s,c){if(t===null||typeof t>"u"||Xr(e,t,s,c))return!0;if(c)return!1;if(s!==null)switch(s.type){case ln:return!t;case Ba:return t===!1;case za:return isNaN(t);case Ha:return isNaN(t)||t<1}return!1}function Ir(e){return On.hasOwnProperty(e)?On[e]:null}function cn(e,t,s,c,p,g,E){this.acceptsBooleans=t===Pn||t===ln||t===Ba,this.attributeName=c,this.attributeNamespace=p,this.mustUseProperty=s,this.propertyName=e,this.type=t,this.sanitizeURL=g,this.removeEmptyString=E}var On={},ki=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];ki.forEach(function(e){On[e]=new cn(e,Tr,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0],s=e[1];On[t]=new cn(t,xt,!1,s,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){On[e]=new cn(e,Pn,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){On[e]=new cn(e,Pn,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){On[e]=new cn(e,ln,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){On[e]=new cn(e,ln,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){On[e]=new cn(e,Ba,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){On[e]=new cn(e,Ha,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){On[e]=new cn(e,za,!1,e.toLowerCase(),null,!1,!1)});var ai=/[\-\:]([a-z])/g,vs=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var t=e.replace(ai,vs);On[t]=new cn(t,xt,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(ai,vs);On[t]=new cn(t,xt,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ai,vs);On[t]=new cn(t,xt,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){On[e]=new cn(e,xt,!1,e.toLowerCase(),null,!1,!1)});var al="xlinkHref";On[al]=new cn("xlinkHref",xt,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){On[e]=new cn(e,xt,!1,e.toLowerCase(),null,!0,!0)});var il=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,hs=!1;function Mi(e){!hs&&il.test(e)&&(hs=!0,v("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}function Li(e,t,s,c){if(c.mustUseProperty){var p=c.propertyName;return e[p]}else{_n(s,t),c.sanitizeURL&&Mi(""+s);var g=c.attributeName,E=null;if(c.type===Ba){if(e.hasAttribute(g)){var I=e.getAttribute(g);return I===""?!0:pn(t,s,c,!1)?I:I===""+s?s:I}}else if(e.hasAttribute(g)){if(pn(t,s,c,!1))return e.getAttribute(g);if(c.type===ln)return s;E=e.getAttribute(g)}return pn(t,s,c,!1)?E===null?s:E:E===""+s?s:E}}function ii(e,t,s,c){{if(!ir(t))return;if(!e.hasAttribute(t))return s===void 0?void 0:null;var p=e.getAttribute(t);return _n(s,t),p===""+s?s:p}}function No(e,t,s,c){var p=Ir(t);if(!Gn(t,p,c)){if(pn(t,s,p,c)&&(s=null),c||p===null){if(ir(t)){var g=t;s===null?e.removeAttribute(g):(_n(s,t),e.setAttribute(g,""+s))}return}var E=p.mustUseProperty;if(E){var I=p.propertyName;if(s===null){var j=p.type;e[I]=j===ln?!1:""}else e[I]=s;return}var P=p.attributeName,B=p.attributeNamespace;if(s===null)e.removeAttribute(P);else{var te=p.type,K;te===ln||te===Ba&&s===!0?K="":(_n(s,P),K=""+s,p.sanitizeURL&&Mi(K.toString())),B?e.setAttributeNS(B,P,K):e.setAttribute(P,K)}}}var ga=Symbol.for("react.element"),ya=Symbol.for("react.portal"),Ua=Symbol.for("react.fragment"),_o=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),ke=Symbol.for("react.provider"),Ue=Symbol.for("react.context"),We=Symbol.for("react.forward_ref"),Bt=Symbol.for("react.suspense"),$t=Symbol.for("react.suspense_list"),kt=Symbol.for("react.memo"),vt=Symbol.for("react.lazy"),pr=Symbol.for("react.scope"),An=Symbol.for("react.debug_trace_mode"),jn=Symbol.for("react.offscreen"),Yr=Symbol.for("react.legacy_hidden"),Qi=Symbol.for("react.cache"),Dn=Symbol.for("react.tracing_marker"),ba=Symbol.iterator,Cc="@@iterator";function Ki(e){if(e===null||typeof e!="object")return null;var t=ba&&e[ba]||e[Cc];return typeof t=="function"?t:null}var Lt=Object.assign,ol=0,Oo,ms,Ca,xc,ra,Sc,Ec;function wc(){}wc.__reactDisabledLog=!0;function sl(){{if(ol===0){Oo=console.log,ms=console.info,Ca=console.warn,xc=console.error,ra=console.group,Sc=console.groupCollapsed,Ec=console.groupEnd;var e={configurable:!0,enumerable:!0,value:wc,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ol++}}function ou(){{if(ol--,ol===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Lt({},e,{value:Oo}),info:Lt({},e,{value:ms}),warn:Lt({},e,{value:Ca}),error:Lt({},e,{value:xc}),group:Lt({},e,{value:ra}),groupCollapsed:Lt({},e,{value:Sc}),groupEnd:Lt({},e,{value:Ec})})}ol<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ao=u.ReactCurrentDispatcher,eo;function oi(e,t,s){{if(eo===void 0)try{throw Error()}catch(p){var c=p.stack.trim().match(/\n( *(at )?)/);eo=c&&c[1]||""}return`
|
|
104
|
+
*/return n.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 r=Qf(),i=YO(),u=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,l=!1;function d(e){l=e}function h(e){if(!l){for(var t=arguments.length,s=new Array(t>1?t-1:0),c=1;c<t;c++)s[c-1]=arguments[c];y("warn",e,s)}}function v(e){if(!l){for(var t=arguments.length,s=new Array(t>1?t-1:0),c=1;c<t;c++)s[c-1]=arguments[c];y("error",e,s)}}function y(e,t,s){{var c=u.ReactDebugCurrentFrame,p=c.getStackAddendum();p!==""&&(t+="%s",s=s.concat([p]));var g=s.map(function(E){return String(E)});g.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,g)}}var C=0,x=1,R=2,T=3,A=4,N=5,O=6,_=7,L=8,F=9,V=10,H=11,z=12,U=13,J=14,q=15,Re=16,he=17,ge=18,fe=19,Oe=21,Te=22,xe=23,je=24,Le=25,ne=!0,_e=!1,G=!1,Y=!1,re=!1,ye=!0,Se=!1,Ne=!1,le=!0,ve=!0,we=!0,Ve=new Set,et={},tt={};function ft(e,t){Ae(e,t),Ae(e+"Capture",t)}function Ae(e,t){et[e]&&v("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),et[e]=t;{var s=e.toLowerCase();tt[s]=e,e==="onDoubleClick"&&(tt.ondblclick=e)}for(var c=0;c<t.length;c++)Ve.add(t[c])}var It=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",pt=Object.prototype.hasOwnProperty;function Kt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,s=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s}}function on(e){try{return sn(e),!1}catch{return!0}}function sn(e){return""+e}function _n(e,t){if(on(e))return v("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Kt(e)),sn(e)}function Vt(e){if(on(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Kt(e)),sn(e)}function Cn(e,t){if(on(e))return v("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Kt(e)),sn(e)}function Qn(e,t){if(on(e))return v("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Kt(e)),sn(e)}function Rr(e){if(on(e))return v("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",Kt(e)),sn(e)}function $n(e){if(on(e))return v("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",Kt(e)),sn(e)}var Tr=0,xt=1,Pn=2,ln=3,Ba=4,za=5,Ha=6,Ge=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",dt=Ge+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Mt=new RegExp("^["+Ge+"]["+dt+"]*$"),un={},en={};function ir(e){return pt.call(en,e)?!0:pt.call(un,e)?!1:Mt.test(e)?(en[e]=!0,!0):(un[e]=!0,v("Invalid attribute name: `%s`",e),!1)}function Gn(e,t,s){return t!==null?t.type===Tr:s?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function Xr(e,t,s,c){if(s!==null&&s.type===Tr)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":{if(c)return!1;if(s!==null)return!s.acceptsBooleans;var p=e.toLowerCase().slice(0,5);return p!=="data-"&&p!=="aria-"}default:return!1}}function pn(e,t,s,c){if(t===null||typeof t>"u"||Xr(e,t,s,c))return!0;if(c)return!1;if(s!==null)switch(s.type){case ln:return!t;case Ba:return t===!1;case za:return isNaN(t);case Ha:return isNaN(t)||t<1}return!1}function Ir(e){return On.hasOwnProperty(e)?On[e]:null}function cn(e,t,s,c,p,g,E){this.acceptsBooleans=t===Pn||t===ln||t===Ba,this.attributeName=c,this.attributeNamespace=p,this.mustUseProperty=s,this.propertyName=e,this.type=t,this.sanitizeURL=g,this.removeEmptyString=E}var On={},ki=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];ki.forEach(function(e){On[e]=new cn(e,Tr,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0],s=e[1];On[t]=new cn(t,xt,!1,s,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){On[e]=new cn(e,Pn,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){On[e]=new cn(e,Pn,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){On[e]=new cn(e,ln,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){On[e]=new cn(e,ln,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){On[e]=new cn(e,Ba,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){On[e]=new cn(e,Ha,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){On[e]=new cn(e,za,!1,e.toLowerCase(),null,!1,!1)});var ai=/[\-\:]([a-z])/g,vs=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var t=e.replace(ai,vs);On[t]=new cn(t,xt,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(ai,vs);On[t]=new cn(t,xt,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ai,vs);On[t]=new cn(t,xt,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){On[e]=new cn(e,xt,!1,e.toLowerCase(),null,!1,!1)});var al="xlinkHref";On[al]=new cn("xlinkHref",xt,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){On[e]=new cn(e,xt,!1,e.toLowerCase(),null,!0,!0)});var il=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,hs=!1;function Mi(e){!hs&&il.test(e)&&(hs=!0,v("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}function Li(e,t,s,c){if(c.mustUseProperty){var p=c.propertyName;return e[p]}else{_n(s,t),c.sanitizeURL&&Mi(""+s);var g=c.attributeName,E=null;if(c.type===Ba){if(e.hasAttribute(g)){var I=e.getAttribute(g);return I===""?!0:pn(t,s,c,!1)?I:I===""+s?s:I}}else if(e.hasAttribute(g)){if(pn(t,s,c,!1))return e.getAttribute(g);if(c.type===ln)return s;E=e.getAttribute(g)}return pn(t,s,c,!1)?E===null?s:E:E===""+s?s:E}}function ii(e,t,s,c){{if(!ir(t))return;if(!e.hasAttribute(t))return s===void 0?void 0:null;var p=e.getAttribute(t);return _n(s,t),p===""+s?s:p}}function No(e,t,s,c){var p=Ir(t);if(!Gn(t,p,c)){if(pn(t,s,p,c)&&(s=null),c||p===null){if(ir(t)){var g=t;s===null?e.removeAttribute(g):(_n(s,t),e.setAttribute(g,""+s))}return}var E=p.mustUseProperty;if(E){var I=p.propertyName;if(s===null){var j=p.type;e[I]=j===ln?!1:""}else e[I]=s;return}var P=p.attributeName,B=p.attributeNamespace;if(s===null)e.removeAttribute(P);else{var te=p.type,K;te===ln||te===Ba&&s===!0?K="":(_n(s,P),K=""+s,p.sanitizeURL&&Mi(K.toString())),B?e.setAttributeNS(B,P,K):e.setAttribute(P,K)}}}var ga=Symbol.for("react.element"),ya=Symbol.for("react.portal"),Ua=Symbol.for("react.fragment"),_o=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),ke=Symbol.for("react.provider"),Ue=Symbol.for("react.context"),We=Symbol.for("react.forward_ref"),Bt=Symbol.for("react.suspense"),$t=Symbol.for("react.suspense_list"),kt=Symbol.for("react.memo"),vt=Symbol.for("react.lazy"),pr=Symbol.for("react.scope"),An=Symbol.for("react.debug_trace_mode"),jn=Symbol.for("react.offscreen"),Yr=Symbol.for("react.legacy_hidden"),Qi=Symbol.for("react.cache"),Dn=Symbol.for("react.tracing_marker"),ba=Symbol.iterator,Cc="@@iterator";function Ki(e){if(e===null||typeof e!="object")return null;var t=ba&&e[ba]||e[Cc];return typeof t=="function"?t:null}var Lt=Object.assign,ol=0,Oo,ms,Ca,xc,ra,Sc,Ec;function wc(){}wc.__reactDisabledLog=!0;function sl(){{if(ol===0){Oo=console.log,ms=console.info,Ca=console.warn,xc=console.error,ra=console.group,Sc=console.groupCollapsed,Ec=console.groupEnd;var e={configurable:!0,enumerable:!0,value:wc,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ol++}}function ou(){{if(ol--,ol===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Lt({},e,{value:Oo}),info:Lt({},e,{value:ms}),warn:Lt({},e,{value:Ca}),error:Lt({},e,{value:xc}),group:Lt({},e,{value:ra}),groupCollapsed:Lt({},e,{value:Sc}),groupEnd:Lt({},e,{value:Ec})})}ol<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ao=u.ReactCurrentDispatcher,eo;function oi(e,t,s){{if(eo===void 0)try{throw Error()}catch(p){var c=p.stack.trim().match(/\n( *(at )?)/);eo=c&&c[1]||""}return`
|
|
105
105
|
`+eo+e}}var gs=!1,to;{var ll=typeof WeakMap=="function"?WeakMap:Map;to=new ll}function ul(e,t){if(!e||gs)return"";{var s=to.get(e);if(s!==void 0)return s}var c;gs=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var g;g=Ao.current,Ao.current=null,sl();try{if(t){var E=function(){throw Error()};if(Object.defineProperty(E.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(E,[])}catch(de){c=de}Reflect.construct(e,[],E)}else{try{E.call()}catch(de){c=de}e.call(E.prototype)}}else{try{throw Error()}catch(de){c=de}e()}}catch(de){if(de&&c&&typeof de.stack=="string"){for(var I=de.stack.split(`
|
|
106
106
|
`),j=c.stack.split(`
|
|
107
107
|
`),P=I.length-1,B=j.length-1;P>=1&&B>=0&&I[P]!==j[B];)B--;for(;P>=1&&B>=0;P--,B--)if(I[P]!==j[B]){if(P!==1||B!==1)do if(P--,B--,B<0||I[P]!==j[B]){var te=`
|
|
108
|
-
`+I[P].replace(" at new "," at ");return e.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",e.displayName)),typeof e=="function"&&to.set(e,te),te}while(P>=1&&B>=0);break}}}finally{gs=!1,Ao.current=g,ou(),Error.prepareStackTrace=p}var K=e?e.displayName||e.name:"",ce=K?oi(K):"";return typeof e=="function"&&to.set(e,ce),ce}function ys(e,t,s){return ul(e,!0)}function Rc(e,t,s){return ul(e,!1)}function Tc(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function Ut(e,t,s){if(e==null)return"";if(typeof e=="function")return ul(e,Tc(e));if(typeof e=="string")return oi(e);switch(e){case Bt:return oi("Suspense");case $t:return oi("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case We:return Rc(e.render);case kt:return Ut(e.type,t,s);case vt:{var c=e,p=c._payload,g=c._init;try{return Ut(g(p),t,s)}catch{}}}return""}function Ic(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case N:return oi(e.type);case Re:return oi("Lazy");case U:return oi("Suspense");case fe:return oi("SuspenseList");case C:case
|
|
108
|
+
`+I[P].replace(" at new "," at ");return e.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",e.displayName)),typeof e=="function"&&to.set(e,te),te}while(P>=1&&B>=0);break}}}finally{gs=!1,Ao.current=g,ou(),Error.prepareStackTrace=p}var K=e?e.displayName||e.name:"",ce=K?oi(K):"";return typeof e=="function"&&to.set(e,ce),ce}function ys(e,t,s){return ul(e,!0)}function Rc(e,t,s){return ul(e,!1)}function Tc(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function Ut(e,t,s){if(e==null)return"";if(typeof e=="function")return ul(e,Tc(e));if(typeof e=="string")return oi(e);switch(e){case Bt:return oi("Suspense");case $t:return oi("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case We:return Rc(e.render);case kt:return Ut(e.type,t,s);case vt:{var c=e,p=c._payload,g=c._init;try{return Ut(g(p),t,s)}catch{}}}return""}function Ic(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case N:return oi(e.type);case Re:return oi("Lazy");case U:return oi("Suspense");case fe:return oi("SuspenseList");case C:case R:case q:return Rc(e.type);case H:return Rc(e.type.render);case x:return ys(e.type);default:return""}}function su(e){try{var t="",s=e;do t+=Ic(s),s=s.return;while(s);return t}catch(c){return`
|
|
109
109
|
Error generating stack: `+c.message+`
|
|
110
|
-
`+c.stack}}function bs(e,t,s){var c=e.displayName;if(c)return c;var p=t.displayName||t.name||"";return p!==""?s+"("+p+")":s}function Nc(e){return e.displayName||"Context"}function Yt(e){if(e==null)return null;if(typeof e.tag=="number"&&v("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 Ua:return"Fragment";case ya:return"Portal";case Z:return"Profiler";case _o:return"StrictMode";case Bt:return"Suspense";case $t:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ue:var t=e;return Nc(t)+".Consumer";case ke:var s=e;return Nc(s._context)+".Provider";case We:return bs(e,e.render,"ForwardRef");case kt:var c=e.displayName||null;return c!==null?c:Yt(e.type)||"Memo";case vt:{var p=e,g=p._payload,E=p._init;try{return Yt(E(g))}catch{return null}}}return null}function lu(e,t,s){var c=t.displayName||t.name||"";return e.displayName||(c!==""?s+"("+c+")":s)}function cl(e){return e.displayName||"Context"}function Nt(e){var t=e.tag,s=e.type;switch(t){case je:return"Cache";case F:var c=s;return cl(c)+".Consumer";case V:var p=s;return cl(p._context)+".Provider";case ge:return"DehydratedFragment";case H:return lu(s,s.render,"ForwardRef");case _:return"Fragment";case N:return s;case A:return"Portal";case T:return"Root";case O:return"Text";case Re:return Yt(s);case L:return s===_o?"StrictMode":"Mode";case Te:return"Offscreen";case z:return"Profiler";case Oe:return"Scope";case U:return"Suspense";case fe:return"SuspenseList";case Le:return"TracingMarker";case x:case C:case he:case
|
|
110
|
+
`+c.stack}}function bs(e,t,s){var c=e.displayName;if(c)return c;var p=t.displayName||t.name||"";return p!==""?s+"("+p+")":s}function Nc(e){return e.displayName||"Context"}function Yt(e){if(e==null)return null;if(typeof e.tag=="number"&&v("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 Ua:return"Fragment";case ya:return"Portal";case Z:return"Profiler";case _o:return"StrictMode";case Bt:return"Suspense";case $t:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ue:var t=e;return Nc(t)+".Consumer";case ke:var s=e;return Nc(s._context)+".Provider";case We:return bs(e,e.render,"ForwardRef");case kt:var c=e.displayName||null;return c!==null?c:Yt(e.type)||"Memo";case vt:{var p=e,g=p._payload,E=p._init;try{return Yt(E(g))}catch{return null}}}return null}function lu(e,t,s){var c=t.displayName||t.name||"";return e.displayName||(c!==""?s+"("+c+")":s)}function cl(e){return e.displayName||"Context"}function Nt(e){var t=e.tag,s=e.type;switch(t){case je:return"Cache";case F:var c=s;return cl(c)+".Consumer";case V:var p=s;return cl(p._context)+".Provider";case ge:return"DehydratedFragment";case H:return lu(s,s.render,"ForwardRef");case _:return"Fragment";case N:return s;case A:return"Portal";case T:return"Root";case O:return"Text";case Re:return Yt(s);case L:return s===_o?"StrictMode":"Mode";case Te:return"Offscreen";case z:return"Profiler";case Oe:return"Scope";case U:return"Suspense";case fe:return"SuspenseList";case Le:return"TracingMarker";case x:case C:case he:case R:case J:case q:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;break}return null}var Pi=u.ReactDebugCurrentFrame,Wn=null,xa=!1;function si(){{if(Wn===null)return null;var e=Wn._debugOwner;if(e!==null&&typeof e<"u")return Nt(e)}return null}function Cs(){return Wn===null?"":su(Wn)}function Fn(){Pi.getCurrentStack=null,Wn=null,xa=!1}function Xn(e){Pi.getCurrentStack=e===null?null:Cs,Wn=e,xa=!1}function _c(){return Wn}function Mr(e){xa=e}function Sa(e){return""+e}function Fi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return $n(e),e;default:return""}}var uu={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function fl(e,t){uu[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||v("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||v("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function dl(e){var t=e.type,s=e.nodeName;return s&&s.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xs(e){return e._valueTracker}function li(e){e._valueTracker=null}function jo(e){var t="";return e&&(dl(e)?t=e.checked?"true":"false":t=e.value),t}function cu(e){var t=dl(e)?"checked":"value",s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);$n(e[t]);var c=""+e[t];if(!(e.hasOwnProperty(t)||typeof s>"u"||typeof s.get!="function"||typeof s.set!="function")){var p=s.get,g=s.set;Object.defineProperty(e,t,{configurable:!0,get:function(){return p.call(this)},set:function(I){$n(I),c=""+I,g.call(this,I)}}),Object.defineProperty(e,t,{enumerable:s.enumerable});var E={getValue:function(){return c},setValue:function(I){$n(I),c=""+I},stopTracking:function(){li(e),delete e[t]}};return E}}function Do(e){xs(e)||(e._valueTracker=cu(e))}function fu(e){if(!e)return!1;var t=xs(e);if(!t)return!0;var s=t.getValue(),c=jo(e);return c!==s?(t.setValue(c),!0):!1}function no(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var ko=!1,du=!1,Oc=!1,Vi=!1;function pu(e){var t=e.type==="checkbox"||e.type==="radio";return t?e.checked!=null:e.value!=null}function D(e,t){var s=e,c=t.checked,p=Lt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:c??s._wrapperState.initialChecked});return p}function X(e,t){fl("input",t),t.checked!==void 0&&t.defaultChecked!==void 0&&!du&&(v("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",si()||"A component",t.type),du=!0),t.value!==void 0&&t.defaultValue!==void 0&&!ko&&(v("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",si()||"A component",t.type),ko=!0);var s=e,c=t.defaultValue==null?"":t.defaultValue;s._wrapperState={initialChecked:t.checked!=null?t.checked:t.defaultChecked,initialValue:Fi(t.value!=null?t.value:c),controlled:pu(t)}}function ue(e,t){var s=e,c=t.checked;c!=null&&No(s,"checked",c,!1)}function me(e,t){var s=e;{var c=pu(t);!s._wrapperState.controlled&&c&&!Vi&&(v("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Vi=!0),s._wrapperState.controlled&&!c&&!Oc&&(v("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Oc=!0)}ue(e,t);var p=Fi(t.value),g=t.type;if(p!=null)g==="number"?(p===0&&s.value===""||s.value!=p)&&(s.value=Sa(p)):s.value!==Sa(p)&&(s.value=Sa(p));else if(g==="submit"||g==="reset"){s.removeAttribute("value");return}t.hasOwnProperty("value")?wt(s,t.type,p):t.hasOwnProperty("defaultValue")&&wt(s,t.type,Fi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(s.defaultChecked=!!t.defaultChecked)}function Be(e,t,s){var c=e;if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var p=t.type,g=p==="submit"||p==="reset";if(g&&(t.value===void 0||t.value===null))return;var E=Sa(c._wrapperState.initialValue);s||E!==c.value&&(c.value=E),c.defaultValue=E}var I=c.name;I!==""&&(c.name=""),c.defaultChecked=!c.defaultChecked,c.defaultChecked=!!c._wrapperState.initialChecked,I!==""&&(c.name=I)}function it(e,t){var s=e;me(s,t),Je(s,t)}function Je(e,t){var s=t.name;if(t.type==="radio"&&s!=null){for(var c=e;c.parentNode;)c=c.parentNode;_n(s,"name");for(var p=c.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),g=0;g<p.length;g++){var E=p[g];if(!(E===e||E.form!==e.form)){var I=fy(E);if(!I)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");fu(E),me(E,I)}}}}function wt(e,t,s){(t!=="number"||no(e.ownerDocument)!==e)&&(s==null?e.defaultValue=Sa(e._wrapperState.initialValue):e.defaultValue!==Sa(s)&&(e.defaultValue=Sa(s)))}var Pt=!1,fn=!1,vn=!1;function hn(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?r.Children.forEach(t.children,function(s){s!=null&&(typeof s=="string"||typeof s=="number"||fn||(fn=!0,v("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):t.dangerouslySetInnerHTML!=null&&(vn||(vn=!0,v("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),t.selected!=null&&!Pt&&(v("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Pt=!0)}function mn(e,t){t.value!=null&&e.setAttribute("value",Sa(Fi(t.value)))}var Vn=Array.isArray;function Zt(e){return Vn(e)}var Ss;Ss=!1;function vu(){var e=si();return e?`
|
|
111
111
|
|
|
112
112
|
Check the render method of \``+e+"`.":""}var Ac=["value","defaultValue"];function jc(e){{fl("select",e);for(var t=0;t<Ac.length;t++){var s=Ac[t];if(e[s]!=null){var c=Zt(e[s]);e.multiple&&!c?v("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",s,vu()):!e.multiple&&c&&v("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",s,vu())}}}}function Mo(e,t,s,c){var p=e.options;if(t){for(var g=s,E={},I=0;I<g.length;I++)E["$"+g[I]]=!0;for(var j=0;j<p.length;j++){var P=E.hasOwnProperty("$"+p[j].value);p[j].selected!==P&&(p[j].selected=P),P&&c&&(p[j].defaultSelected=!0)}}else{for(var B=Sa(Fi(s)),te=null,K=0;K<p.length;K++){if(p[K].value===B){p[K].selected=!0,c&&(p[K].defaultSelected=!0);return}te===null&&!p[K].disabled&&(te=p[K])}te!==null&&(te.selected=!0)}}function Dc(e,t){return Lt({},t,{value:void 0})}function kc(e,t){var s=e;jc(t),s._wrapperState={wasMultiple:!!t.multiple},t.value!==void 0&&t.defaultValue!==void 0&&!Ss&&(v("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Ss=!0)}function av(e,t){var s=e;s.multiple=!!t.multiple;var c=t.value;c!=null?Mo(s,!!t.multiple,c,!1):t.defaultValue!=null&&Mo(s,!!t.multiple,t.defaultValue,!0)}function Z0(e,t){var s=e,c=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!t.multiple;var p=t.value;p!=null?Mo(s,!!t.multiple,p,!1):c!==!!t.multiple&&(t.defaultValue!=null?Mo(s,!!t.multiple,t.defaultValue,!0):Mo(s,!!t.multiple,t.multiple?[]:"",!1))}function Lm(e,t){var s=e,c=t.value;c!=null&&Mo(s,!!t.multiple,c,!1)}var Pm=!1;function iv(e,t){var s=e;if(t.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var c=Lt({},t,{value:void 0,defaultValue:void 0,children:Sa(s._wrapperState.initialValue)});return c}function Fm(e,t){var s=e;fl("textarea",t),t.value!==void 0&&t.defaultValue!==void 0&&!Pm&&(v("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",si()||"A component"),Pm=!0);var c=t.value;if(c==null){var p=t.children,g=t.defaultValue;if(p!=null){v("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(g!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Zt(p)){if(p.length>1)throw new Error("<textarea> can only have at most one child.");p=p[0]}g=p}}g==null&&(g=""),c=g}s._wrapperState={initialValue:Fi(c)}}function Vm(e,t){var s=e,c=Fi(t.value),p=Fi(t.defaultValue);if(c!=null){var g=Sa(c);g!==s.value&&(s.value=g),t.defaultValue==null&&s.defaultValue!==g&&(s.defaultValue=g)}p!=null&&(s.defaultValue=Sa(p))}function ed(e,t){var s=e,c=s.textContent;c===s._wrapperState.initialValue&&c!==""&&c!==null&&(s.value=c)}function J0(e,t){Vm(e,t)}var Lo="http://www.w3.org/1999/xhtml",q0="http://www.w3.org/1998/Math/MathML",td="http://www.w3.org/2000/svg";function ov(e){switch(e){case"svg":return td;case"math":return q0;default:return Lo}}function sv(e,t){return e==null||e===Lo?ov(t):e===td&&t==="foreignObject"?Lo:e}var Q0=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,s,c,p){MSApp.execUnsafeLocalFunction(function(){return e(t,s,c,p)})}:e},nd,Bm=Q0(function(e,t){if(e.namespaceURI===td&&!("innerHTML"in e)){nd=nd||document.createElement("div"),nd.innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(var s=nd.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;s.firstChild;)e.appendChild(s.firstChild);return}e.innerHTML=t}),Ea=1,Po=3,Kn=8,$a=9,lv=11,Mc=function(e,t){if(t){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===Po){s.nodeValue=t;return}}e.textContent=t},zm={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},hu={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function Hm(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var Um=["Webkit","ms","Moz","O"];Object.keys(hu).forEach(function(e){Um.forEach(function(t){hu[Hm(t,e)]=hu[e]})});function Es(e,t,s){var c=t==null||typeof t=="boolean"||t==="";return c?"":!s&&typeof t=="number"&&t!==0&&!(hu.hasOwnProperty(e)&&hu[e])?t+"px":(Qn(t,e),(""+t).trim())}var K0=/([A-Z])/g,eC=/^ms-/;function tC(e){return e.replace(K0,"-$1").toLowerCase().replace(eC,"-ms-")}var uv=function(){};{var $m=/^(?:webkit|moz|o)[A-Z]/,Lc=/^-ms-/,Pc=/-(.)/g,Gm=/;\s*$/,Fo={},cv={},fv=!1,rd=!1,dv=function(e){return e.replace(Pc,function(t,s){return s.toUpperCase()})},Wm=function(e){Fo.hasOwnProperty(e)&&Fo[e]||(Fo[e]=!0,v("Unsupported style property %s. Did you mean %s?",e,dv(e.replace(Lc,"ms-"))))},Xm=function(e){Fo.hasOwnProperty(e)&&Fo[e]||(Fo[e]=!0,v("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))},Ym=function(e,t){cv.hasOwnProperty(t)&&cv[t]||(cv[t]=!0,v(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,t.replace(Gm,"")))},nC=function(e,t){fv||(fv=!0,v("`NaN` is an invalid value for the `%s` css style property.",e))},rC=function(e,t){rd||(rd=!0,v("`Infinity` is an invalid value for the `%s` css style property.",e))};uv=function(e,t){e.indexOf("-")>-1?Wm(e):$m.test(e)?Xm(e):Gm.test(t)&&Ym(e,t),typeof t=="number"&&(isNaN(t)?nC(e,t):isFinite(t)||rC(e,t))}}var aC=uv;function iC(e){{var t="",s="";for(var c in e)if(e.hasOwnProperty(c)){var p=e[c];if(p!=null){var g=c.indexOf("--")===0;t+=s+(g?c:tC(c))+":",t+=Es(c,p,g),s=";"}}return t||null}}function Zm(e,t){var s=e.style;for(var c in t)if(t.hasOwnProperty(c)){var p=c.indexOf("--")===0;p||aC(c,t[c]);var g=Es(c,t[c],p);c==="float"&&(c="cssFloat"),p?s.setProperty(c,g):s[c]=g}}function Bi(e){return e==null||typeof e=="boolean"||e===""}function mu(e){var t={};for(var s in e)for(var c=zm[s]||[s],p=0;p<c.length;p++)t[c[p]]=s;return t}function Jm(e,t){{if(!t)return;var s=mu(e),c=mu(t),p={};for(var g in s){var E=s[g],I=c[g];if(I&&E!==I){var j=E+","+I;if(p[j])continue;p[j]=!0,v("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",Bi(e[E])?"Removing":"Updating",E,I)}}}}var qm={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Qm=Lt({menuitem:!0},qm),Km="__html";function Fc(e,t){if(t){if(Qm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw new Error(e+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof t.dangerouslySetInnerHTML!="object"||!(Km in t.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!t.suppressContentEditableWarning&&t.contentEditable&&t.children!=null&&v("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),t.style!=null&&typeof t.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function pl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ad={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},vl={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},ws={},Vc=new RegExp("^(aria)-["+dt+"]*$"),pv=new RegExp("^(aria)[A-Z]["+dt+"]*$");function eg(e,t){{if(pt.call(ws,t)&&ws[t])return!0;if(pv.test(t)){var s="aria-"+t.slice(4).toLowerCase(),c=vl.hasOwnProperty(s)?s:null;if(c==null)return v("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),ws[t]=!0,!0;if(t!==c)return v("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,c),ws[t]=!0,!0}if(Vc.test(t)){var p=t.toLowerCase(),g=vl.hasOwnProperty(p)?p:null;if(g==null)return ws[t]=!0,!1;if(t!==g)return v("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,g),ws[t]=!0,!0}}return!0}function id(e,t){{var s=[];for(var c in t){var p=eg(e,c);p||s.push(c)}var g=s.map(function(E){return"`"+E+"`"}).join(", ");s.length===1?v("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",g,e):s.length>1&&v("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",g,e)}}function gu(e,t){pl(e,t)||id(e,t)}var od=!1;function tg(e,t){{if(e!=="input"&&e!=="textarea"&&e!=="select")return;t!=null&&t.value===null&&!od&&(od=!0,e==="select"&&t.multiple?v("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):v("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}}var Bc=function(){};{var Zr={},vv=/^on./,ng=/^on[^A-Z]/,rg=new RegExp("^(aria)-["+dt+"]*$"),ag=new RegExp("^(aria)[A-Z]["+dt+"]*$");Bc=function(e,t,s,c){if(pt.call(Zr,t)&&Zr[t])return!0;var p=t.toLowerCase();if(p==="onfocusin"||p==="onfocusout")return v("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Zr[t]=!0,!0;if(c!=null){var g=c.registrationNameDependencies,E=c.possibleRegistrationNames;if(g.hasOwnProperty(t))return!0;var I=E.hasOwnProperty(p)?E[p]:null;if(I!=null)return v("Invalid event handler property `%s`. Did you mean `%s`?",t,I),Zr[t]=!0,!0;if(vv.test(t))return v("Unknown event handler property `%s`. It will be ignored.",t),Zr[t]=!0,!0}else if(vv.test(t))return ng.test(t)&&v("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Zr[t]=!0,!0;if(rg.test(t)||ag.test(t))return!0;if(p==="innerhtml")return v("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Zr[t]=!0,!0;if(p==="aria")return v("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Zr[t]=!0,!0;if(p==="is"&&s!==null&&s!==void 0&&typeof s!="string")return v("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof s),Zr[t]=!0,!0;if(typeof s=="number"&&isNaN(s))return v("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Zr[t]=!0,!0;var j=Ir(t),P=j!==null&&j.type===Tr;if(ad.hasOwnProperty(p)){var B=ad[p];if(B!==t)return v("Invalid DOM property `%s`. Did you mean `%s`?",t,B),Zr[t]=!0,!0}else if(!P&&t!==p)return v("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,p),Zr[t]=!0,!0;return typeof s=="boolean"&&Xr(t,s,j,!1)?(s?v('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',s,t,t,s,t):v('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',s,t,t,s,t,t,t),Zr[t]=!0,!0):P?!0:Xr(t,s,j,!1)?(Zr[t]=!0,!1):((s==="false"||s==="true")&&j!==null&&j.type===ln&&(v("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",s,t,s==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,s),Zr[t]=!0),!0)}}var ig=function(e,t,s){{var c=[];for(var p in t){var g=Bc(e,p,t[p],s);g||c.push(p)}var E=c.map(function(I){return"`"+I+"`"}).join(", ");c.length===1?v("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",E,e):c.length>1&&v("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",E,e)}};function Rs(e,t,s){pl(e,t)||ig(e,t,s)}var sd=1,zc=2,Hc=4,oC=sd|zc|Hc,Vo=null;function sC(e){Vo!==null&&v("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Vo=e}function og(){Vo===null&&v("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Vo=null}function sg(e){return e===Vo}function Tn(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===Po?t.parentNode:t}var Uc=null,Bo=null,ro=null;function hv(e){var t=Zu(e);if(t){if(typeof Uc!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var s=t.stateNode;if(s){var c=fy(s);Uc(t.stateNode,t.type,c)}}}function mv(e){Uc=e}function yu(e){Bo?ro?ro.push(e):ro=[e]:Bo=e}function ld(){return Bo!==null||ro!==null}function hl(){if(Bo){var e=Bo,t=ro;if(Bo=null,ro=null,hv(e),t)for(var s=0;s<t.length;s++)hv(t[s])}}var gv=function(e,t){return e(t)},lg=function(){},yv=!1;function ug(){var e=ld();e&&(lg(),hl())}function $c(e,t,s){if(yv)return e(t,s);yv=!0;try{return gv(e,t,s)}finally{yv=!1,ug()}}function ud(e,t,s){gv=e,lg=s}function bv(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function Cv(e,t,s){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(s.disabled&&bv(t));default:return!1}}function ml(e,t){var s=e.stateNode;if(s===null)return null;var c=fy(s);if(c===null)return null;var p=c[t];if(Cv(t,e.type,c))return null;if(p&&typeof p!="function")throw new Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof p+"` type.");return p}var Gc=!1;if(It)try{var Wc={};Object.defineProperty(Wc,"passive",{get:function(){Gc=!0}}),window.addEventListener("test",Wc,Wc),window.removeEventListener("test",Wc,Wc)}catch{Gc=!1}function xv(e,t,s,c,p,g,E,I,j){var P=Array.prototype.slice.call(arguments,3);try{t.apply(s,P)}catch(B){this.onError(B)}}var cg=xv;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var Sv=document.createElement("react");cg=function(t,s,c,p,g,E,I,j,P){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var B=document.createEvent("Event"),te=!1,K=!0,ce=window.event,de=Object.getOwnPropertyDescriptor(window,"event");function be(){Sv.removeEventListener(Ce,gt,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=ce)}var qe=Array.prototype.slice.call(arguments,3);function gt(){te=!0,be(),s.apply(c,qe),K=!1}var ct,Wt=!1,Ht=!1;function ie(oe){if(ct=oe.error,Wt=!0,ct===null&&oe.colno===0&&oe.lineno===0&&(Ht=!0),oe.defaultPrevented&&ct!=null&&typeof ct=="object")try{ct._suppressLogging=!0}catch{}}var Ce="react-"+(t||"invokeguardedcallback");if(window.addEventListener("error",ie),Sv.addEventListener(Ce,gt,!1),B.initEvent(Ce,!1,!1),Sv.dispatchEvent(B),de&&Object.defineProperty(window,"event",de),te&&K&&(Wt?Ht&&(ct=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):ct=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(ct)),window.removeEventListener("error",ie),!te)return be(),xv.apply(this,arguments)}}var Ev=cg,Ga=!1,Xc=null,zo=!1,ui=null,Yc={onError:function(e){Ga=!0,Xc=e}};function zi(e,t,s,c,p,g,E,I,j){Ga=!1,Xc=null,Ev.apply(Yc,arguments)}function wv(e,t,s,c,p,g,E,I,j){if(zi.apply(this,arguments),Ga){var P=Ho();zo||(zo=!0,ui=P)}}function lC(){if(zo){var e=ui;throw zo=!1,ui=null,e}}function uC(){return Ga}function Ho(){if(Ga){var e=Xc;return Ga=!1,Xc=null,e}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function ao(e){return e._reactInternals}function bu(e){return e._reactInternals!==void 0}function cd(e,t){e._reactInternals=t}var ht=0,Hi=1,In=2,st=4,tn=16,ci=32,Nr=64,Ot=128,aa=256,Wa=512,vr=1024,wa=2048,io=4096,Ts=8192,gl=16384,fg=wa|st|Nr|Wa|vr|gl,Uo=32767,Is=32768,Lr=65536,fd=131072,dg=1048576,oo=2097152,fi=4194304,Ns=8388608,di=16777216,yl=33554432,Ra=st|vr|0,Ta=In|st|tn|ci|Wa|io|Ts,Ui=st|Nr|Wa|Ts,Ia=wa|tn,Pr=fi|Ns|oo,bl=u.ReactCurrentOwner;function _s(e){var t=e,s=e;if(e.alternate)for(;t.return;)t=t.return;else{var c=t;do t=c,(t.flags&(In|io))!==ht&&(s=t.return),c=t.return;while(c)}return t.tag===T?s:null}function dd(e){if(e.tag===U){var t=e.memoizedState;if(t===null){var s=e.alternate;s!==null&&(t=s.memoizedState)}if(t!==null)return t.dehydrated}return null}function pd(e){return e.tag===T?e.stateNode.containerInfo:null}function Xa(e){return _s(e)===e}function Ya(e){{var t=bl.current;if(t!==null&&t.tag===x){var s=t,c=s.stateNode;c._warnedAboutRefsInRender||v("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Nt(s)||"A component"),c._warnedAboutRefsInRender=!0}}var p=ao(e);return p?_s(p)===p:!1}function Bn(e){if(_s(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function pi(e){var t=e.alternate;if(!t){var s=_s(e);if(s===null)throw new Error("Unable to find node on an unmounted component.");return s!==e?null:e}for(var c=e,p=t;;){var g=c.return;if(g===null)break;var E=g.alternate;if(E===null){var I=g.return;if(I!==null){c=p=I;continue}break}if(g.child===E.child){for(var j=g.child;j;){if(j===c)return Bn(g),e;if(j===p)return Bn(g),t;j=j.sibling}throw new Error("Unable to find node on an unmounted component.")}if(c.return!==p.return)c=g,p=E;else{for(var P=!1,B=g.child;B;){if(B===c){P=!0,c=g,p=E;break}if(B===p){P=!0,p=g,c=E;break}B=B.sibling}if(!P){for(B=E.child;B;){if(B===c){P=!0,c=E,p=g;break}if(B===p){P=!0,p=E,c=g;break}B=B.sibling}if(!P)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(c.alternate!==p)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(c.tag!==T)throw new Error("Unable to find node on an unmounted component.");return c.stateNode.current===c?e:t}function Rv(e){var t=pi(e);return t!==null?Tv(t):null}function Tv(e){if(e.tag===N||e.tag===O)return e;for(var t=e.child;t!==null;){var s=Tv(t);if(s!==null)return s;t=t.sibling}return null}function Iv(e){var t=pi(e);return t!==null?vd(t):null}function vd(e){if(e.tag===N||e.tag===O)return e;for(var t=e.child;t!==null;){if(t.tag!==A){var s=vd(t);if(s!==null)return s}t=t.sibling}return null}var Nv=i.unstable_scheduleCallback,hd=i.unstable_cancelCallback,pg=i.unstable_shouldYield,Cu=i.unstable_requestPaint,hr=i.unstable_now,cC=i.unstable_getCurrentPriorityLevel,Na=i.unstable_ImmediatePriority,xu=i.unstable_UserBlockingPriority,so=i.unstable_NormalPriority,Su=i.unstable_LowPriority,Zc=i.unstable_IdlePriority,_v=i.unstable_yieldValue,Ov=i.unstable_setDisableYieldValue,Os=null,or=null,He=null,Jr=!1,Za=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function vg(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return v("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{le&&(e=Lt({},e,{getLaneLabelMap:md,injectProfilingHooks:js})),Os=t.inject(e),or=t}catch(s){v("React instrumentation encountered an error: %s.",s)}return!!t.checkDCE}function $o(e,t){if(or&&typeof or.onScheduleFiberRoot=="function")try{or.onScheduleFiberRoot(Os,e,t)}catch(s){Jr||(Jr=!0,v("React instrumentation encountered an error: %s",s))}}function As(e,t){if(or&&typeof or.onCommitFiberRoot=="function")try{var s=(e.current.flags&Ot)===Ot;if(ve){var c;switch(t){case cr:c=Na;break;case Wo:c=xu;break;case co:c=so;break;case ju:c=Zc;break;default:c=so;break}or.onCommitFiberRoot(Os,e,c,s)}}catch(p){Jr||(Jr=!0,v("React instrumentation encountered an error: %s",p))}}function Av(e){if(or&&typeof or.onPostCommitFiberRoot=="function")try{or.onPostCommitFiberRoot(Os,e)}catch(t){Jr||(Jr=!0,v("React instrumentation encountered an error: %s",t))}}function hg(e){if(or&&typeof or.onCommitFiberUnmount=="function")try{or.onCommitFiberUnmount(Os,e)}catch(t){Jr||(Jr=!0,v("React instrumentation encountered an error: %s",t))}}function kn(e){if(typeof _v=="function"&&(Ov(e),d(e)),or&&typeof or.setStrictMode=="function")try{or.setStrictMode(Os,e)}catch(t){Jr||(Jr=!0,v("React instrumentation encountered an error: %s",t))}}function js(e){He=e}function md(){{for(var e=new Map,t=1,s=0;s<sr;s++){var c=Eg(t);e.set(t,c),t*=2}return e}}function mg(e){He!==null&&typeof He.markCommitStarted=="function"&&He.markCommitStarted(e)}function Jc(){He!==null&&typeof He.markCommitStopped=="function"&&He.markCommitStopped()}function Eu(e){He!==null&&typeof He.markComponentRenderStarted=="function"&&He.markComponentRenderStarted(e)}function Cl(){He!==null&&typeof He.markComponentRenderStopped=="function"&&He.markComponentRenderStopped()}function jv(e){He!==null&&typeof He.markComponentPassiveEffectMountStarted=="function"&&He.markComponentPassiveEffectMountStarted(e)}function gd(){He!==null&&typeof He.markComponentPassiveEffectMountStopped=="function"&&He.markComponentPassiveEffectMountStopped()}function gg(e){He!==null&&typeof He.markComponentPassiveEffectUnmountStarted=="function"&&He.markComponentPassiveEffectUnmountStarted(e)}function yg(){He!==null&&typeof He.markComponentPassiveEffectUnmountStopped=="function"&&He.markComponentPassiveEffectUnmountStopped()}function bg(e){He!==null&&typeof He.markComponentLayoutEffectMountStarted=="function"&&He.markComponentLayoutEffectMountStarted(e)}function Dv(){He!==null&&typeof He.markComponentLayoutEffectMountStopped=="function"&&He.markComponentLayoutEffectMountStopped()}function wu(e){He!==null&&typeof He.markComponentLayoutEffectUnmountStarted=="function"&&He.markComponentLayoutEffectUnmountStarted(e)}function qc(){He!==null&&typeof He.markComponentLayoutEffectUnmountStopped=="function"&&He.markComponentLayoutEffectUnmountStopped()}function Cg(e,t,s){He!==null&&typeof He.markComponentErrored=="function"&&He.markComponentErrored(e,t,s)}function xg(e,t,s){He!==null&&typeof He.markComponentSuspended=="function"&&He.markComponentSuspended(e,t,s)}function Ru(e){He!==null&&typeof He.markLayoutEffectsStarted=="function"&&He.markLayoutEffectsStarted(e)}function Sg(){He!==null&&typeof He.markLayoutEffectsStopped=="function"&&He.markLayoutEffectsStopped()}function Qc(e){He!==null&&typeof He.markPassiveEffectsStarted=="function"&&He.markPassiveEffectsStarted(e)}function lo(){He!==null&&typeof He.markPassiveEffectsStopped=="function"&&He.markPassiveEffectsStopped()}function Tu(e){He!==null&&typeof He.markRenderStarted=="function"&&He.markRenderStarted(e)}function Kc(){He!==null&&typeof He.markRenderYielded=="function"&&He.markRenderYielded()}function Ds(){He!==null&&typeof He.markRenderStopped=="function"&&He.markRenderStopped()}function kv(e){He!==null&&typeof He.markRenderScheduled=="function"&&He.markRenderScheduled(e)}function Iu(e,t){He!==null&&typeof He.markForceUpdateScheduled=="function"&&He.markForceUpdateScheduled(e,t)}function yd(e,t){He!==null&&typeof He.markStateUpdateScheduled=="function"&&He.markStateUpdateScheduled(e,t)}var mt=0,ut=1,Qt=2,er=8,hi=16,ef=Math.clz32?Math.clz32:Yn,Mv=Math.log,xl=Math.LN2;function Yn(e){var t=e>>>0;return t===0?32:31-(Mv(t)/xl|0)|0}var sr=31,Ee=0,lr=0,bt=1,uo=2,Go=4,tr=8,mi=16,Sl=32,ks=4194240,_a=64,Oa=128,El=256,tf=512,nf=1024,bd=2048,Cd=4096,xd=8192,Sd=16384,Ed=32768,wd=65536,Rd=131072,Td=262144,wl=524288,Id=1048576,Nu=2097152,Rl=130023424,Tl=4194304,rf=8388608,Nd=16777216,_d=33554432,Od=67108864,Lv=Tl,Il=134217728,Pv=268435455,_u=268435456,Ms=536870912,Ja=1073741824;function Eg(e){{if(e&bt)return"Sync";if(e&uo)return"InputContinuousHydration";if(e&Go)return"InputContinuous";if(e&tr)return"DefaultHydration";if(e&mi)return"Default";if(e&Sl)return"TransitionHydration";if(e&ks)return"Transition";if(e&Rl)return"Retry";if(e&Il)return"SelectiveHydration";if(e&_u)return"IdleHydration";if(e&Ms)return"Idle";if(e&Ja)return"Offscreen"}}var Mn=-1,Ad=_a,af=Tl;function Ou(e){switch(ur(e)){case bt:return bt;case uo:return uo;case Go:return Go;case tr:return tr;case mi:return mi;case Sl:return Sl;case _a:case Oa:case El:case tf:case nf:case bd:case Cd:case xd:case Sd:case Ed:case wd:case Rd:case Td:case wl:case Id:case Nu:return e&ks;case Tl:case rf:case Nd:case _d:case Od:return e&Rl;case Il:return Il;case _u:return _u;case Ms:return Ms;case Ja:return Ja;default:return v("Should have found matching lanes. This is a bug in React."),e}}function of(e,t){var s=e.pendingLanes;if(s===Ee)return Ee;var c=Ee,p=e.suspendedLanes,g=e.pingedLanes,E=s&Pv;if(E!==Ee){var I=E&~p;if(I!==Ee)c=Ou(I);else{var j=E&g;j!==Ee&&(c=Ou(j))}}else{var P=s&~p;P!==Ee?c=Ou(P):g!==Ee&&(c=Ou(g))}if(c===Ee)return Ee;if(t!==Ee&&t!==c&&(t&p)===Ee){var B=ur(c),te=ur(t);if(B>=te||B===mi&&(te&ks)!==Ee)return t}(c&Go)!==Ee&&(c|=s&mi);var K=e.entangledLanes;if(K!==Ee)for(var ce=e.entanglements,de=c&K;de>0;){var be=Ps(de),qe=1<<be;c|=ce[be],de&=~qe}return c}function jd(e,t){for(var s=e.eventTimes,c=Mn;t>0;){var p=Ps(t),g=1<<p,E=s[p];E>c&&(c=E),t&=~g}return c}function fC(e,t){switch(e){case bt:case uo:case Go:return t+250;case tr:case mi:case Sl:case _a:case Oa:case El:case tf:case nf:case bd:case Cd:case xd:case Sd:case Ed:case wd:case Rd:case Td:case wl:case Id:case Nu:return t+5e3;case Tl:case rf:case Nd:case _d:case Od:return Mn;case Il:case _u:case Ms:case Ja:return Mn;default:return v("Should have found matching lanes. This is a bug in React."),Mn}}function dC(e,t){for(var s=e.pendingLanes,c=e.suspendedLanes,p=e.pingedLanes,g=e.expirationTimes,E=s;E>0;){var I=Ps(E),j=1<<I,P=g[I];P===Mn?((j&c)===Ee||(j&p)!==Ee)&&(g[I]=fC(j,t)):P<=t&&(e.expiredLanes|=j),E&=~j}}function pC(e){return Ou(e.pendingLanes)}function Ls(e){var t=e.pendingLanes&~Ja;return t!==Ee?t:t&Ja?Ja:Ee}function Fv(e){return(e&bt)!==Ee}function sf(e){return(e&Pv)!==Ee}function wg(e){return(e&Rl)===e}function Rg(e){var t=bt|Go|mi;return(e&t)===Ee}function Tg(e){return(e&ks)===e}function lf(e,t){var s=uo|Go|tr|mi;return(t&s)!==Ee}function Ig(e,t){return(t&e.expiredLanes)!==Ee}function Vv(e){return(e&ks)!==Ee}function Ng(){var e=Ad;return Ad<<=1,(Ad&ks)===Ee&&(Ad=_a),e}function Aa(){var e=af;return af<<=1,(af&Rl)===Ee&&(af=Tl),e}function ur(e){return e&-e}function Au(e){return ur(e)}function Ps(e){return 31-ef(e)}function Dd(e){return Ps(e)}function ja(e,t){return(e&t)!==Ee}function Nl(e,t){return(e&t)===t}function Dt(e,t){return e|t}function uf(e,t){return e&~t}function kd(e,t){return e&t}function vC(e){return e}function _g(e,t){return e!==lr&&e<t?e:t}function cf(e){for(var t=[],s=0;s<sr;s++)t.push(e);return t}function _l(e,t,s){e.pendingLanes|=t,t!==Ms&&(e.suspendedLanes=Ee,e.pingedLanes=Ee);var c=e.eventTimes,p=Dd(t);c[p]=s}function Og(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var s=e.expirationTimes,c=t;c>0;){var p=Ps(c),g=1<<p;s[p]=Mn,c&=~g}}function Md(e,t,s){e.pingedLanes|=e.suspendedLanes&t}function Ld(e,t){var s=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=Ee,e.pingedLanes=Ee,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t;for(var c=e.entanglements,p=e.eventTimes,g=e.expirationTimes,E=s;E>0;){var I=Ps(E),j=1<<I;c[I]=Ee,p[I]=Mn,g[I]=Mn,E&=~j}}function Bv(e,t){for(var s=e.entangledLanes|=t,c=e.entanglements,p=s;p;){var g=Ps(p),E=1<<g;E&t|c[g]&t&&(c[g]|=t),p&=~E}}function Ag(e,t){var s=ur(t),c;switch(s){case Go:c=uo;break;case mi:c=tr;break;case _a:case Oa:case El:case tf:case nf:case bd:case Cd:case xd:case Sd:case Ed:case wd:case Rd:case Td:case wl:case Id:case Nu:case Tl:case rf:case Nd:case _d:case Od:c=Sl;break;case Ms:c=_u;break;default:c=lr;break}return(c&(e.suspendedLanes|t))!==lr?lr:c}function Pd(e,t,s){if(Za)for(var c=e.pendingUpdatersLaneMap;s>0;){var p=Dd(s),g=1<<p,E=c[p];E.add(t),s&=~g}}function zv(e,t){if(Za)for(var s=e.pendingUpdatersLaneMap,c=e.memoizedUpdaters;t>0;){var p=Dd(t),g=1<<p,E=s[p];E.size>0&&(E.forEach(function(I){var j=I.alternate;(j===null||!c.has(j))&&c.add(I)}),E.clear()),t&=~g}}function ff(e,t){return null}var cr=bt,Wo=Go,co=mi,ju=Ms,Du=lr;function gi(){return Du}function nr(e){Du=e}function qr(e,t){var s=Du;try{return Du=e,t()}finally{Du=s}}function hC(e,t){return e!==0&&e<t?e:t}function mC(e,t){return e===0||e>t?e:t}function ku(e,t){return e!==0&&e<t}function Fr(e){var t=ur(e);return ku(cr,t)?ku(Wo,t)?sf(t)?co:ju:Wo:cr}function Fd(e){var t=e.current.memoizedState;return t.isDehydrated}var Ke;function Mu(e){Ke=e}function Hv(e){Ke(e)}var Vd;function gC(e){Vd=e}var Lu;function Bd(e){Lu=e}var zd;function jg(e){zd=e}var Uv;function Dg(e){Uv=e}var df=!1,Pu=[],Un=null,_r=null,ia=null,Fu=new Map,Vu=new Map,Or=[],kg=["mousedown","mouseup","touchcancel","touchend","touchstart","auxclick","dblclick","pointercancel","pointerdown","pointerup","dragend","dragstart","drop","compositionend","compositionstart","keydown","keypress","keyup","input","textInput","copy","cut","paste","click","change","contextmenu","reset","submit"];function fo(e){return kg.indexOf(e)>-1}function yC(e,t,s,c,p){return{blockedOn:e,domEventName:t,eventSystemFlags:s,nativeEvent:p,targetContainers:[c]}}function $v(e,t){switch(e){case"focusin":case"focusout":Un=null;break;case"dragenter":case"dragleave":_r=null;break;case"mouseover":case"mouseout":ia=null;break;case"pointerover":case"pointerout":{var s=t.pointerId;Fu.delete(s);break}case"gotpointercapture":case"lostpointercapture":{var c=t.pointerId;Vu.delete(c);break}}}function Bu(e,t,s,c,p,g){if(e===null||e.nativeEvent!==g){var E=yC(t,s,c,p,g);if(t!==null){var I=Zu(t);I!==null&&Vd(I)}return E}e.eventSystemFlags|=c;var j=e.targetContainers;return p!==null&&j.indexOf(p)===-1&&j.push(p),e}function Mg(e,t,s,c,p){switch(t){case"focusin":{var g=p;return Un=Bu(Un,e,t,s,c,g),!0}case"dragenter":{var E=p;return _r=Bu(_r,e,t,s,c,E),!0}case"mouseover":{var I=p;return ia=Bu(ia,e,t,s,c,I),!0}case"pointerover":{var j=p,P=j.pointerId;return Fu.set(P,Bu(Fu.get(P)||null,e,t,s,c,j)),!0}case"gotpointercapture":{var B=p,te=B.pointerId;return Vu.set(te,Bu(Vu.get(te)||null,e,t,s,c,B)),!0}}return!1}function Gv(e){var t=wf(e.target);if(t!==null){var s=_s(t);if(s!==null){var c=s.tag;if(c===U){var p=dd(s);if(p!==null){e.blockedOn=p,Uv(e.priority,function(){Lu(s)});return}}else if(c===T){var g=s.stateNode;if(Fd(g)){e.blockedOn=pd(s);return}}}}e.blockedOn=null}function bC(e){for(var t=zd(),s={blockedOn:null,target:e,priority:t},c=0;c<Or.length&&ku(t,Or[c].priority);c++);Or.splice(c,0,s),c===0&&Gv(s)}function Ol(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;t.length>0;){var s=t[0],c=Qr(e.domEventName,e.eventSystemFlags,s,e.nativeEvent);if(c===null){var p=e.nativeEvent,g=new p.constructor(p.type,p);sC(g),p.target.dispatchEvent(g),og()}else{var E=Zu(c);return E!==null&&Vd(E),e.blockedOn=c,!1}t.shift()}return!0}function Hd(e,t,s){Ol(e)&&s.delete(t)}function yi(){df=!1,Un!==null&&Ol(Un)&&(Un=null),_r!==null&&Ol(_r)&&(_r=null),ia!==null&&Ol(ia)&&(ia=null),Fu.forEach(Hd),Vu.forEach(Hd)}function zt(e,t){e.blockedOn===t&&(e.blockedOn=null,df||(df=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,yi)))}function rr(e){if(Pu.length>0){zt(Pu[0],e);for(var t=1;t<Pu.length;t++){var s=Pu[t];s.blockedOn===e&&(s.blockedOn=null)}}Un!==null&&zt(Un,e),_r!==null&&zt(_r,e),ia!==null&&zt(ia,e);var c=function(I){return zt(I,e)};Fu.forEach(c),Vu.forEach(c);for(var p=0;p<Or.length;p++){var g=Or[p];g.blockedOn===e&&(g.blockedOn=null)}for(;Or.length>0;){var E=Or[0];if(E.blockedOn!==null)break;Gv(E),E.blockedOn===null&&Or.shift()}}var zn=u.ReactCurrentBatchConfig,br=!0;function Da(e){br=!!e}function zu(){return br}function Cr(e,t,s){var c=Ud(t),p;switch(c){case cr:p=pf;break;case Wo:p=Al;break;case co:default:p=Hu;break}return p.bind(null,t,s,e)}function pf(e,t,s,c){var p=gi(),g=zn.transition;zn.transition=null;try{nr(cr),Hu(e,t,s,c)}finally{nr(p),zn.transition=g}}function Al(e,t,s,c){var p=gi(),g=zn.transition;zn.transition=null;try{nr(Wo),Hu(e,t,s,c)}finally{nr(p),zn.transition=g}}function Hu(e,t,s,c){br&&Wv(e,t,s,c)}function Wv(e,t,s,c){var p=Qr(e,t,s,c);if(p===null){LC(e,t,c,Fs,s),$v(e,c);return}if(Mg(p,e,t,s,c)){c.stopPropagation();return}if($v(e,c),t&Hc&&fo(e)){for(;p!==null;){var g=Zu(p);g!==null&&Hv(g);var E=Qr(e,t,s,c);if(E===null&&LC(e,t,c,Fs,s),E===p)break;p=E}p!==null&&c.stopPropagation();return}LC(e,t,c,null,s)}var Fs=null;function Qr(e,t,s,c){Fs=null;var p=Tn(c),g=wf(p);if(g!==null){var E=_s(g);if(E===null)g=null;else{var I=E.tag;if(I===U){var j=dd(E);if(j!==null)return j;g=null}else if(I===T){var P=E.stateNode;if(Fd(P))return pd(E);g=null}else E!==g&&(g=null)}}return Fs=g,null}function Ud(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return cr;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Wo;case"message":{var t=cC();switch(t){case Na:return cr;case xu:return Wo;case so:case Su:return co;case Zc:return ju;default:return co}}default:return co}}function Uu(e,t,s){return e.addEventListener(t,s,!1),s}function Xo(e,t,s){return e.addEventListener(t,s,!0),s}function $d(e,t,s,c){return e.addEventListener(t,s,{capture:!0,passive:c}),s}function Xv(e,t,s,c){return e.addEventListener(t,s,{passive:c}),s}var bi=null,$u=null,Ci=null;function Gd(e){return bi=e,$u=hf(),!0}function vf(){bi=null,$u=null,Ci=null}function Wd(){if(Ci)return Ci;var e,t=$u,s=t.length,c,p=hf(),g=p.length;for(e=0;e<s&&t[e]===p[e];e++);var E=s-e;for(c=1;c<=E&&t[s-c]===p[g-c];c++);var I=c>1?1-c:void 0;return Ci=p.slice(e,I),Ci}function hf(){return"value"in bi?bi.value:bi.textContent}function jl(e){var t,s=e.keyCode;return"charCode"in e?(t=e.charCode,t===0&&s===13&&(t=13)):t=s,t===10&&(t=13),t>=32||t===13?t:0}function Ar(){return!0}function Yo(){return!1}function Zn(e){function t(s,c,p,g,E){this._reactName=s,this._targetInst=p,this.type=c,this.nativeEvent=g,this.target=E,this.currentTarget=null;for(var I in e)if(e.hasOwnProperty(I)){var j=e[I];j?this[I]=j(g):this[I]=g[I]}var P=g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1;return P?this.isDefaultPrevented=Ar:this.isDefaultPrevented=Yo,this.isPropagationStopped=Yo,this}return Lt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Ar)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Ar)},persist:function(){},isPersistent:Ar}),t}var xr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xd=Zn(xr),Dl=Lt({},xr,{view:0,detail:0}),Yv=Zn(Dl),Zv,po,Gu;function Jv(e){e!==Gu&&(Gu&&e.type==="mousemove"?(Zv=e.screenX-Gu.screenX,po=e.screenY-Gu.screenY):(Zv=0,po=0),Gu=e)}var vo=Lt({},Dl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qv,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(Jv(e),Zv)},movementY:function(e){return"movementY"in e?e.movementY:po}}),Yd=Zn(vo),kl=Lt({},vo,{dataTransfer:0}),Lg=Zn(kl),Pg=Lt({},Dl,{relatedTarget:0}),mf=Zn(Pg),Zd=Lt({},xr,{animationName:0,elapsedTime:0,pseudoElement:0}),CC=Zn(Zd),xC=Lt({},xr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Fg=Zn(xC),Vg=Lt({},xr,{data:0}),Vs=Zn(Vg),SC=Vs,Wu={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Bg={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};function ar(e){if(e.key){var t=Wu[e.key]||e.key;if(t!=="Unidentified")return t}if(e.type==="keypress"){var s=jl(e);return s===13?"Enter":String.fromCharCode(s)}return e.type==="keydown"||e.type==="keyup"?Bg[e.keyCode]||"Unidentified":""}var EC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zg(e){var t=this,s=t.nativeEvent;if(s.getModifierState)return s.getModifierState(e);var c=EC[e];return c?!!s[c]:!1}function qv(e){return zg}var wC=Lt({},Dl,{key:ar,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qv,charCode:function(e){return e.type==="keypress"?jl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?jl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Hg=Zn(wC),Ug=Lt({},vo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$g=Zn(Ug),xi=Lt({},Dl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qv}),Qv=Zn(xi),RC=Lt({},xr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Bs=Zn(RC),Jd=Lt({},vo,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ml=Zn(Jd),qd=[9,13,27,32],Qd=229,gf=It&&"CompositionEvent"in window,yf=null;It&&"documentMode"in document&&(yf=document.documentMode);var Kv=It&&"TextEvent"in window&&!yf,Gg=It&&(!gf||yf&&yf>8&&yf<=11),eh=32,th=String.fromCharCode(eh);function Kd(){ft("onBeforeInput",["compositionend","keypress","textInput","paste"]),ft("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),ft("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),ft("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var bf=!1;function Wg(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function nh(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function TC(e,t){return e==="keydown"&&t.keyCode===Qd}function rh(e,t){switch(e){case"keyup":return qd.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==Qd;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ep(e){var t=e.detail;return typeof t=="object"&&"data"in t?t.data:null}function Cf(e){return e.locale==="ko"}var zs=!1;function tp(e,t,s,c,p){var g,E;if(gf?g=nh(t):zs?rh(t,c)&&(g="onCompositionEnd"):TC(t,c)&&(g="onCompositionStart"),!g)return null;Gg&&!Cf(c)&&(!zs&&g==="onCompositionStart"?zs=Gd(p):g==="onCompositionEnd"&&zs&&(E=Wd()));var I=Qg(s,g);if(I.length>0){var j=new Vs(g,t,null,c,p);if(e.push({event:j,listeners:I}),E)j.data=E;else{var P=ep(c);P!==null&&(j.data=P)}}}function Xg(e,t){switch(e){case"compositionend":return ep(t);case"keypress":var s=t.which;return s!==eh?null:(bf=!0,th);case"textInput":var c=t.data;return c===th&&bf?null:c;default:return null}}function IC(e,t){if(zs){if(e==="compositionend"||!gf&&rh(e,t)){var s=Wd();return vf(),zs=!1,s}return null}switch(e){case"paste":return null;case"keypress":if(!Wg(t)){if(t.char&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Gg&&!Cf(t)?null:t.data;default:return null}}function np(e,t,s,c,p){var g;if(Kv?g=Xg(t,c):g=IC(t,c),!g)return null;var E=Qg(s,"onBeforeInput");if(E.length>0){var I=new SC("onBeforeInput","beforeinput",null,c,p);e.push({event:I,listeners:E}),I.data=g}}function NC(e,t,s,c,p,g,E){tp(e,t,s,c,p),np(e,t,s,c,p)}var xf={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Yg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!xf[e.type]:t==="textarea"}/**
|
|
113
113
|
* Checks if an event is supported in the current execution environment.
|
|
@@ -121,7 +121,7 @@ Check the render method of \``+e+"`.":""}var Ac=["value","defaultValue"];functio
|
|
|
121
121
|
* @return {boolean} True if the event is supported.
|
|
122
122
|
* @internal
|
|
123
123
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
124
|
-
*/function rp(e){if(!It)return!1;var t="on"+e,s=t in document;if(!s){var c=document.createElement("div");c.setAttribute(t,"return;"),s=typeof c[t]=="function"}return s}function a(){ft("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function o(e,t,s,c){yu(c);var p=Qg(t,"onChange");if(p.length>0){var g=new Xd("onChange","change",null,s,c);e.push({event:g,listeners:p})}}var f=null,m=null;function S(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function R(e){var t=[];o(t,m,e,Tn(e)),$c(k,t)}function k(e){s1(e,0)}function W(e){var t=up(e);if(fu(t))return e}function Q(e,t){if(e==="change")return t}var pe=!1;It&&(pe=rp("input")&&(!document.documentMode||document.documentMode>9));function Me(e,t){f=e,m=t,f.attachEvent("onpropertychange",De)}function Pe(){f&&(f.detachEvent("onpropertychange",De),f=null,m=null)}function De(e){e.propertyName==="value"&&W(m)&&R(e)}function Ye(e,t,s){e==="focusin"?(Pe(),Me(t,s)):e==="focusout"&&Pe()}function nt(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return W(m)}function ot(e){var t=e.nodeName;return t&&t.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function fr(e,t){if(e==="click")return W(t)}function ae(e,t){if(e==="input"||e==="change")return W(t)}function ee(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||wt(e,"number",e.value)}function se(e,t,s,c,p,g,E){var I=s?up(s):window,j,P;if(S(I)?j=Q:Yg(I)?pe?j=ae:(j=nt,P=Ye):ot(I)&&(j=fr),j){var B=j(t,s);if(B){o(e,B,c,p);return}}P&&P(t,I,s),t==="focusout"&&ee(I)}function ze(){Ae("onMouseEnter",["mouseout","mouseover"]),Ae("onMouseLeave",["mouseout","mouseover"]),Ae("onPointerEnter",["pointerout","pointerover"]),Ae("onPointerLeave",["pointerout","pointerover"])}function lt(e,t,s,c,p,g,E){var I=t==="mouseover"||t==="pointerover",j=t==="mouseout"||t==="pointerout";if(I&&!sg(c)){var P=c.relatedTarget||c.fromElement;if(P&&(wf(P)||gh(P)))return}if(!(!j&&!I)){var B;if(p.window===p)B=p;else{var te=p.ownerDocument;te?B=te.defaultView||te.parentWindow:B=window}var K,ce;if(j){var de=c.relatedTarget||c.toElement;if(K=s,ce=de?wf(de):null,ce!==null){var be=_s(ce);(ce!==be||ce.tag!==N&&ce.tag!==O)&&(ce=null)}}else K=null,ce=s;if(K!==ce){var qe=Yd,gt="onMouseLeave",ct="onMouseEnter",Wt="mouse";(t==="pointerout"||t==="pointerover")&&(qe=$g,gt="onPointerLeave",ct="onPointerEnter",Wt="pointer");var Ht=K==null?B:up(K),ie=ce==null?B:up(ce),Ce=new qe(gt,Wt+"leave",K,c,p);Ce.target=Ht,Ce.relatedTarget=ie;var oe=null,Fe=wf(p);if(Fe===s){var Qe=new qe(ct,Wt+"enter",ce,c,p);Qe.target=ie,Qe.relatedTarget=Ht,oe=Qe}wM(e,Ce,oe,K,ce)}}}function Ct(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var rt=typeof Object.is=="function"?Object.is:Ct;function St(e,t){if(rt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var s=Object.keys(e),c=Object.keys(t);if(s.length!==c.length)return!1;for(var p=0;p<s.length;p++){var g=s[p];if(!pt.call(t,g)||!rt(e[g],t[g]))return!1}return!0}function Sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nn(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function Zo(e,t){for(var s=Sr(e),c=0,p=0;s;){if(s.nodeType===Po){if(p=c+s.textContent.length,c<=t&&p>=t)return{node:s,offset:t-c};c=p}s=Sr(nn(s))}}function _C(e){var t=e.ownerDocument,s=t&&t.defaultView||window,c=s.getSelection&&s.getSelection();if(!c||c.rangeCount===0)return null;var p=c.anchorNode,g=c.anchorOffset,E=c.focusNode,I=c.focusOffset;try{p.nodeType,E.nodeType}catch{return null}return aM(e,p,g,E,I)}function aM(e,t,s,c,p){var g=0,E=-1,I=-1,j=0,P=0,B=e,te=null;e:for(;;){for(var K=null;B===t&&(s===0||B.nodeType===Po)&&(E=g+s),B===c&&(p===0||B.nodeType===Po)&&(I=g+p),B.nodeType===Po&&(g+=B.nodeValue.length),(K=B.firstChild)!==null;)te=B,B=K;for(;;){if(B===e)break e;if(te===t&&++j===s&&(E=g),te===c&&++P===p&&(I=g),(K=B.nextSibling)!==null)break;B=te,te=B.parentNode}B=K}return E===-1||I===-1?null:{start:E,end:I}}function iM(e,t){var s=e.ownerDocument||document,c=s&&s.defaultView||window;if(c.getSelection){var p=c.getSelection(),g=e.textContent.length,E=Math.min(t.start,g),I=t.end===void 0?E:Math.min(t.end,g);if(!p.extend&&E>I){var j=I;I=E,E=j}var P=Zo(e,E),B=Zo(e,I);if(P&&B){if(p.rangeCount===1&&p.anchorNode===P.node&&p.anchorOffset===P.offset&&p.focusNode===B.node&&p.focusOffset===B.offset)return;var te=s.createRange();te.setStart(P.node,P.offset),p.removeAllRanges(),E>I?(p.addRange(te),p.extend(B.node,B.offset)):(te.setEnd(B.node,B.offset),p.addRange(te))}}}function ZR(e){return e&&e.nodeType===Po}function JR(e,t){return!e||!t?!1:e===t?!0:ZR(e)?!1:ZR(t)?JR(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}function oM(e){return e&&e.ownerDocument&&JR(e.ownerDocument.documentElement,e)}function sM(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function qR(){for(var e=window,t=no();t instanceof e.HTMLIFrameElement;){if(sM(t))e=t.contentWindow;else return t;t=no(e.document)}return t}function OC(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function lM(){var e=qR();return{focusedElem:e,selectionRange:OC(e)?cM(e):null}}function uM(e){var t=qR(),s=e.focusedElem,c=e.selectionRange;if(t!==s&&oM(s)){c!==null&&OC(s)&&fM(s,c);for(var p=[],g=s;g=g.parentNode;)g.nodeType===Ea&&p.push({element:g,left:g.scrollLeft,top:g.scrollTop});typeof s.focus=="function"&&s.focus();for(var E=0;E<p.length;E++){var I=p[E];I.element.scrollLeft=I.left,I.element.scrollTop=I.top}}}function cM(e){var t;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:t=_C(e),t||{start:0,end:0}}function fM(e,t){var s=t.start,c=t.end;c===void 0&&(c=s),"selectionStart"in e?(e.selectionStart=s,e.selectionEnd=Math.min(c,e.value.length)):iM(e,t)}var dM=It&&"documentMode"in document&&document.documentMode<=11;function pM(){ft("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var ap=null,AC=null,ah=null,jC=!1;function vM(e){if("selectionStart"in e&&OC(e))return{start:e.selectionStart,end:e.selectionEnd};var t=e.ownerDocument&&e.ownerDocument.defaultView||window,s=t.getSelection();return{anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}}function hM(e){return e.window===e?e.document:e.nodeType===$a?e:e.ownerDocument}function QR(e,t,s){var c=hM(s);if(!(jC||ap==null||ap!==no(c))){var p=vM(ap);if(!ah||!St(ah,p)){ah=p;var g=Qg(AC,"onSelect");if(g.length>0){var E=new Xd("onSelect","select",null,t,s);e.push({event:E,listeners:g}),E.target=ap}}}}function mM(e,t,s,c,p,g,E){var I=s?up(s):window;switch(t){case"focusin":(Yg(I)||I.contentEditable==="true")&&(ap=I,AC=s,ah=null);break;case"focusout":ap=null,AC=null,ah=null;break;case"mousedown":jC=!0;break;case"contextmenu":case"mouseup":case"dragend":jC=!1,QR(e,c,p);break;case"selectionchange":if(dM)break;case"keydown":case"keyup":QR(e,c,p)}}function Zg(e,t){var s={};return s[e.toLowerCase()]=t.toLowerCase(),s["Webkit"+e]="webkit"+t,s["Moz"+e]="moz"+t,s}var ip={animationend:Zg("Animation","AnimationEnd"),animationiteration:Zg("Animation","AnimationIteration"),animationstart:Zg("Animation","AnimationStart"),transitionend:Zg("Transition","TransitionEnd")},DC={},KR={};It&&(KR=document.createElement("div").style,"AnimationEvent"in window||(delete ip.animationend.animation,delete ip.animationiteration.animation,delete ip.animationstart.animation),"TransitionEvent"in window||delete ip.transitionend.transition);function Jg(e){if(DC[e])return DC[e];if(!ip[e])return e;var t=ip[e];for(var s in t)if(t.hasOwnProperty(s)&&s in KR)return DC[e]=t[s];return e}var e1=Jg("animationend"),t1=Jg("animationiteration"),n1=Jg("animationstart"),r1=Jg("transitionend"),a1=new Map,i1=["abort","auxClick","cancel","canPlay","canPlayThrough","click","close","contextMenu","copy","cut","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","gotPointerCapture","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","pointerCancel","pointerDown","pointerMove","pointerOut","pointerOver","pointerUp","progress","rateChange","reset","resize","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchStart","volumeChange","scroll","toggle","touchMove","waiting","wheel"];function Xu(e,t){a1.set(e,t),ft(t,[e])}function gM(){for(var e=0;e<i1.length;e++){var t=i1[e],s=t.toLowerCase(),c=t[0].toUpperCase()+t.slice(1);Xu(s,"on"+c)}Xu(e1,"onAnimationEnd"),Xu(t1,"onAnimationIteration"),Xu(n1,"onAnimationStart"),Xu("dblclick","onDoubleClick"),Xu("focusin","onFocus"),Xu("focusout","onBlur"),Xu(r1,"onTransitionEnd")}function yM(e,t,s,c,p,g,E){var I=a1.get(t);if(I!==void 0){var j=Xd,P=t;switch(t){case"keypress":if(jl(c)===0)return;case"keydown":case"keyup":j=Hg;break;case"focusin":P="focus",j=mf;break;case"focusout":P="blur",j=mf;break;case"beforeblur":case"afterblur":j=mf;break;case"click":if(c.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":j=Yd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=Lg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=Qv;break;case e1:case t1:case n1:j=CC;break;case r1:j=Bs;break;case"scroll":j=Yv;break;case"wheel":j=Ml;break;case"copy":case"cut":case"paste":j=Fg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=$g;break}var B=(g&Hc)!==0;{var te=!B&&t==="scroll",K=SM(s,I,c.type,B,te);if(K.length>0){var ce=new j(I,P,null,c,p);e.push({event:ce,listeners:K})}}}}gM(),ze(),a(),pM(),Kd();function bM(e,t,s,c,p,g,E){yM(e,t,s,c,p,g);var I=(g&oC)===0;I&&(lt(e,t,s,c,p),se(e,t,s,c,p),mM(e,t,s,c,p),NC(e,t,s,c,p))}var ih=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],kC=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(ih));function o1(e,t,s){var c=e.type||"unknown-event";e.currentTarget=s,wv(c,t,void 0,e),e.currentTarget=null}function CM(e,t,s){var c;if(s)for(var p=t.length-1;p>=0;p--){var g=t[p],E=g.instance,I=g.currentTarget,j=g.listener;if(E!==c&&e.isPropagationStopped())return;o1(e,j,I),c=E}else for(var P=0;P<t.length;P++){var B=t[P],te=B.instance,K=B.currentTarget,ce=B.listener;if(te!==c&&e.isPropagationStopped())return;o1(e,ce,K),c=te}}function s1(e,t){for(var s=(t&Hc)!==0,c=0;c<e.length;c++){var p=e[c],g=p.event,E=p.listeners;CM(g,E,s)}lC()}function xM(e,t,s,c,p){var g=Tn(s),E=[];bM(E,e,c,s,g,t),s1(E,t)}function Jn(e,t){kC.has(e)||v('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var s=!1,c=qL(t),p=RM(e,s);c.has(p)||(l1(t,e,zc,s),c.add(p))}function MC(e,t,s){kC.has(e)&&!t&&v('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var c=0;t&&(c|=Hc),l1(s,e,c,t)}var qg="_reactListening"+Math.random().toString(36).slice(2);function oh(e){if(!e[qg]){e[qg]=!0,Ve.forEach(function(s){s!=="selectionchange"&&(kC.has(s)||MC(s,!1,e),MC(s,!0,e))});var t=e.nodeType===$a?e:e.ownerDocument;t!==null&&(t[qg]||(t[qg]=!0,MC("selectionchange",!1,t)))}}function l1(e,t,s,c,p){var g=Cr(e,t,s),E=void 0;Gc&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(E=!0),e=e,c?E!==void 0?$d(e,t,g,E):Xo(e,t,g):E!==void 0?Xv(e,t,g,E):Uu(e,t,g)}function u1(e,t){return e===t||e.nodeType===Kn&&e.parentNode===t}function LC(e,t,s,c,p){var g=c;if(!(t&sd)&&!(t&zc)){var E=p;if(c!==null){var I=c;e:for(;;){if(I===null)return;var j=I.tag;if(j===T||j===A){var P=I.stateNode.containerInfo;if(u1(P,E))break;if(j===A)for(var B=I.return;B!==null;){var te=B.tag;if(te===T||te===A){var K=B.stateNode.containerInfo;if(u1(K,E))return}B=B.return}for(;P!==null;){var ce=wf(P);if(ce===null)return;var de=ce.tag;if(de===N||de===O){I=g=ce;continue e}P=P.parentNode}}I=I.return}}}$c(function(){return xM(e,t,s,g)})}function sh(e,t,s){return{instance:e,listener:t,currentTarget:s}}function SM(e,t,s,c,p,g){for(var E=t!==null?t+"Capture":null,I=c?E:t,j=[],P=e,B=null;P!==null;){var te=P,K=te.stateNode,ce=te.tag;if(ce===N&&K!==null&&(B=K,I!==null)){var de=ml(P,I);de!=null&&j.push(sh(P,de,B))}if(p)break;P=P.return}return j}function Qg(e,t){for(var s=t+"Capture",c=[],p=e;p!==null;){var g=p,E=g.stateNode,I=g.tag;if(I===N&&E!==null){var j=E,P=ml(p,s);P!=null&&c.unshift(sh(p,P,j));var B=ml(p,t);B!=null&&c.push(sh(p,B,j))}p=p.return}return c}function op(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==N);return e||null}function EM(e,t){for(var s=e,c=t,p=0,g=s;g;g=op(g))p++;for(var E=0,I=c;I;I=op(I))E++;for(;p-E>0;)s=op(s),p--;for(;E-p>0;)c=op(c),E--;for(var j=p;j--;){if(s===c||c!==null&&s===c.alternate)return s;s=op(s),c=op(c)}return null}function c1(e,t,s,c,p){for(var g=t._reactName,E=[],I=s;I!==null&&I!==c;){var j=I,P=j.alternate,B=j.stateNode,te=j.tag;if(P!==null&&P===c)break;if(te===N&&B!==null){var K=B;if(p){var ce=ml(I,g);ce!=null&&E.unshift(sh(I,ce,K))}else if(!p){var de=ml(I,g);de!=null&&E.push(sh(I,de,K))}}I=I.return}E.length!==0&&e.push({event:t,listeners:E})}function wM(e,t,s,c,p){var g=c&&p?EM(c,p):null;c!==null&&c1(e,t,c,g,!1),p!==null&&s!==null&&c1(e,s,p,g,!0)}function RM(e,t){return e+"__"+(t?"capture":"bubble")}var Si=!1,lh="dangerouslySetInnerHTML",Kg="suppressContentEditableWarning",Yu="suppressHydrationWarning",f1="autoFocus",Sf="children",Ef="style",ey="__html",PC,ty,uh,d1,ny,p1,v1;PC={dialog:!0,webview:!0},ty=function(e,t){gu(e,t),tg(e,t),Rs(e,t,{registrationNameDependencies:et,possibleRegistrationNames:tt})},p1=It&&!document.documentMode,uh=function(e,t,s){if(!Si){var c=ry(s),p=ry(t);p!==c&&(Si=!0,v("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(p),JSON.stringify(c)))}},d1=function(e){if(!Si){Si=!0;var t=[];e.forEach(function(s){t.push(s)}),v("Extra attributes from the server: %s",t)}},ny=function(e,t){t===!1?v("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):v("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},v1=function(e,t){var s=e.namespaceURI===Lo?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return s.innerHTML=t,s.innerHTML};var TM=/\r\n?/g,IM=/\u0000|\uFFFD/g;function ry(e){Rr(e);var t=typeof e=="string"?e:""+e;return t.replace(TM,`
|
|
124
|
+
*/function rp(e){if(!It)return!1;var t="on"+e,s=t in document;if(!s){var c=document.createElement("div");c.setAttribute(t,"return;"),s=typeof c[t]=="function"}return s}function a(){ft("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function o(e,t,s,c){yu(c);var p=Qg(t,"onChange");if(p.length>0){var g=new Xd("onChange","change",null,s,c);e.push({event:g,listeners:p})}}var f=null,m=null;function S(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function w(e){var t=[];o(t,m,e,Tn(e)),$c(k,t)}function k(e){s1(e,0)}function W(e){var t=up(e);if(fu(t))return e}function Q(e,t){if(e==="change")return t}var pe=!1;It&&(pe=rp("input")&&(!document.documentMode||document.documentMode>9));function Me(e,t){f=e,m=t,f.attachEvent("onpropertychange",De)}function Pe(){f&&(f.detachEvent("onpropertychange",De),f=null,m=null)}function De(e){e.propertyName==="value"&&W(m)&&w(e)}function Ye(e,t,s){e==="focusin"?(Pe(),Me(t,s)):e==="focusout"&&Pe()}function nt(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return W(m)}function ot(e){var t=e.nodeName;return t&&t.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function fr(e,t){if(e==="click")return W(t)}function ae(e,t){if(e==="input"||e==="change")return W(t)}function ee(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||wt(e,"number",e.value)}function se(e,t,s,c,p,g,E){var I=s?up(s):window,j,P;if(S(I)?j=Q:Yg(I)?pe?j=ae:(j=nt,P=Ye):ot(I)&&(j=fr),j){var B=j(t,s);if(B){o(e,B,c,p);return}}P&&P(t,I,s),t==="focusout"&&ee(I)}function ze(){Ae("onMouseEnter",["mouseout","mouseover"]),Ae("onMouseLeave",["mouseout","mouseover"]),Ae("onPointerEnter",["pointerout","pointerover"]),Ae("onPointerLeave",["pointerout","pointerover"])}function lt(e,t,s,c,p,g,E){var I=t==="mouseover"||t==="pointerover",j=t==="mouseout"||t==="pointerout";if(I&&!sg(c)){var P=c.relatedTarget||c.fromElement;if(P&&(wf(P)||gh(P)))return}if(!(!j&&!I)){var B;if(p.window===p)B=p;else{var te=p.ownerDocument;te?B=te.defaultView||te.parentWindow:B=window}var K,ce;if(j){var de=c.relatedTarget||c.toElement;if(K=s,ce=de?wf(de):null,ce!==null){var be=_s(ce);(ce!==be||ce.tag!==N&&ce.tag!==O)&&(ce=null)}}else K=null,ce=s;if(K!==ce){var qe=Yd,gt="onMouseLeave",ct="onMouseEnter",Wt="mouse";(t==="pointerout"||t==="pointerover")&&(qe=$g,gt="onPointerLeave",ct="onPointerEnter",Wt="pointer");var Ht=K==null?B:up(K),ie=ce==null?B:up(ce),Ce=new qe(gt,Wt+"leave",K,c,p);Ce.target=Ht,Ce.relatedTarget=ie;var oe=null,Fe=wf(p);if(Fe===s){var Qe=new qe(ct,Wt+"enter",ce,c,p);Qe.target=ie,Qe.relatedTarget=Ht,oe=Qe}wM(e,Ce,oe,K,ce)}}}function Ct(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var rt=typeof Object.is=="function"?Object.is:Ct;function St(e,t){if(rt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var s=Object.keys(e),c=Object.keys(t);if(s.length!==c.length)return!1;for(var p=0;p<s.length;p++){var g=s[p];if(!pt.call(t,g)||!rt(e[g],t[g]))return!1}return!0}function Sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nn(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function Zo(e,t){for(var s=Sr(e),c=0,p=0;s;){if(s.nodeType===Po){if(p=c+s.textContent.length,c<=t&&p>=t)return{node:s,offset:t-c};c=p}s=Sr(nn(s))}}function _C(e){var t=e.ownerDocument,s=t&&t.defaultView||window,c=s.getSelection&&s.getSelection();if(!c||c.rangeCount===0)return null;var p=c.anchorNode,g=c.anchorOffset,E=c.focusNode,I=c.focusOffset;try{p.nodeType,E.nodeType}catch{return null}return aM(e,p,g,E,I)}function aM(e,t,s,c,p){var g=0,E=-1,I=-1,j=0,P=0,B=e,te=null;e:for(;;){for(var K=null;B===t&&(s===0||B.nodeType===Po)&&(E=g+s),B===c&&(p===0||B.nodeType===Po)&&(I=g+p),B.nodeType===Po&&(g+=B.nodeValue.length),(K=B.firstChild)!==null;)te=B,B=K;for(;;){if(B===e)break e;if(te===t&&++j===s&&(E=g),te===c&&++P===p&&(I=g),(K=B.nextSibling)!==null)break;B=te,te=B.parentNode}B=K}return E===-1||I===-1?null:{start:E,end:I}}function iM(e,t){var s=e.ownerDocument||document,c=s&&s.defaultView||window;if(c.getSelection){var p=c.getSelection(),g=e.textContent.length,E=Math.min(t.start,g),I=t.end===void 0?E:Math.min(t.end,g);if(!p.extend&&E>I){var j=I;I=E,E=j}var P=Zo(e,E),B=Zo(e,I);if(P&&B){if(p.rangeCount===1&&p.anchorNode===P.node&&p.anchorOffset===P.offset&&p.focusNode===B.node&&p.focusOffset===B.offset)return;var te=s.createRange();te.setStart(P.node,P.offset),p.removeAllRanges(),E>I?(p.addRange(te),p.extend(B.node,B.offset)):(te.setEnd(B.node,B.offset),p.addRange(te))}}}function ZR(e){return e&&e.nodeType===Po}function JR(e,t){return!e||!t?!1:e===t?!0:ZR(e)?!1:ZR(t)?JR(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}function oM(e){return e&&e.ownerDocument&&JR(e.ownerDocument.documentElement,e)}function sM(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function qR(){for(var e=window,t=no();t instanceof e.HTMLIFrameElement;){if(sM(t))e=t.contentWindow;else return t;t=no(e.document)}return t}function OC(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function lM(){var e=qR();return{focusedElem:e,selectionRange:OC(e)?cM(e):null}}function uM(e){var t=qR(),s=e.focusedElem,c=e.selectionRange;if(t!==s&&oM(s)){c!==null&&OC(s)&&fM(s,c);for(var p=[],g=s;g=g.parentNode;)g.nodeType===Ea&&p.push({element:g,left:g.scrollLeft,top:g.scrollTop});typeof s.focus=="function"&&s.focus();for(var E=0;E<p.length;E++){var I=p[E];I.element.scrollLeft=I.left,I.element.scrollTop=I.top}}}function cM(e){var t;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:t=_C(e),t||{start:0,end:0}}function fM(e,t){var s=t.start,c=t.end;c===void 0&&(c=s),"selectionStart"in e?(e.selectionStart=s,e.selectionEnd=Math.min(c,e.value.length)):iM(e,t)}var dM=It&&"documentMode"in document&&document.documentMode<=11;function pM(){ft("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var ap=null,AC=null,ah=null,jC=!1;function vM(e){if("selectionStart"in e&&OC(e))return{start:e.selectionStart,end:e.selectionEnd};var t=e.ownerDocument&&e.ownerDocument.defaultView||window,s=t.getSelection();return{anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}}function hM(e){return e.window===e?e.document:e.nodeType===$a?e:e.ownerDocument}function QR(e,t,s){var c=hM(s);if(!(jC||ap==null||ap!==no(c))){var p=vM(ap);if(!ah||!St(ah,p)){ah=p;var g=Qg(AC,"onSelect");if(g.length>0){var E=new Xd("onSelect","select",null,t,s);e.push({event:E,listeners:g}),E.target=ap}}}}function mM(e,t,s,c,p,g,E){var I=s?up(s):window;switch(t){case"focusin":(Yg(I)||I.contentEditable==="true")&&(ap=I,AC=s,ah=null);break;case"focusout":ap=null,AC=null,ah=null;break;case"mousedown":jC=!0;break;case"contextmenu":case"mouseup":case"dragend":jC=!1,QR(e,c,p);break;case"selectionchange":if(dM)break;case"keydown":case"keyup":QR(e,c,p)}}function Zg(e,t){var s={};return s[e.toLowerCase()]=t.toLowerCase(),s["Webkit"+e]="webkit"+t,s["Moz"+e]="moz"+t,s}var ip={animationend:Zg("Animation","AnimationEnd"),animationiteration:Zg("Animation","AnimationIteration"),animationstart:Zg("Animation","AnimationStart"),transitionend:Zg("Transition","TransitionEnd")},DC={},KR={};It&&(KR=document.createElement("div").style,"AnimationEvent"in window||(delete ip.animationend.animation,delete ip.animationiteration.animation,delete ip.animationstart.animation),"TransitionEvent"in window||delete ip.transitionend.transition);function Jg(e){if(DC[e])return DC[e];if(!ip[e])return e;var t=ip[e];for(var s in t)if(t.hasOwnProperty(s)&&s in KR)return DC[e]=t[s];return e}var e1=Jg("animationend"),t1=Jg("animationiteration"),n1=Jg("animationstart"),r1=Jg("transitionend"),a1=new Map,i1=["abort","auxClick","cancel","canPlay","canPlayThrough","click","close","contextMenu","copy","cut","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","gotPointerCapture","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","pointerCancel","pointerDown","pointerMove","pointerOut","pointerOver","pointerUp","progress","rateChange","reset","resize","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchStart","volumeChange","scroll","toggle","touchMove","waiting","wheel"];function Xu(e,t){a1.set(e,t),ft(t,[e])}function gM(){for(var e=0;e<i1.length;e++){var t=i1[e],s=t.toLowerCase(),c=t[0].toUpperCase()+t.slice(1);Xu(s,"on"+c)}Xu(e1,"onAnimationEnd"),Xu(t1,"onAnimationIteration"),Xu(n1,"onAnimationStart"),Xu("dblclick","onDoubleClick"),Xu("focusin","onFocus"),Xu("focusout","onBlur"),Xu(r1,"onTransitionEnd")}function yM(e,t,s,c,p,g,E){var I=a1.get(t);if(I!==void 0){var j=Xd,P=t;switch(t){case"keypress":if(jl(c)===0)return;case"keydown":case"keyup":j=Hg;break;case"focusin":P="focus",j=mf;break;case"focusout":P="blur",j=mf;break;case"beforeblur":case"afterblur":j=mf;break;case"click":if(c.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":j=Yd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=Lg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=Qv;break;case e1:case t1:case n1:j=CC;break;case r1:j=Bs;break;case"scroll":j=Yv;break;case"wheel":j=Ml;break;case"copy":case"cut":case"paste":j=Fg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=$g;break}var B=(g&Hc)!==0;{var te=!B&&t==="scroll",K=SM(s,I,c.type,B,te);if(K.length>0){var ce=new j(I,P,null,c,p);e.push({event:ce,listeners:K})}}}}gM(),ze(),a(),pM(),Kd();function bM(e,t,s,c,p,g,E){yM(e,t,s,c,p,g);var I=(g&oC)===0;I&&(lt(e,t,s,c,p),se(e,t,s,c,p),mM(e,t,s,c,p),NC(e,t,s,c,p))}var ih=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],kC=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(ih));function o1(e,t,s){var c=e.type||"unknown-event";e.currentTarget=s,wv(c,t,void 0,e),e.currentTarget=null}function CM(e,t,s){var c;if(s)for(var p=t.length-1;p>=0;p--){var g=t[p],E=g.instance,I=g.currentTarget,j=g.listener;if(E!==c&&e.isPropagationStopped())return;o1(e,j,I),c=E}else for(var P=0;P<t.length;P++){var B=t[P],te=B.instance,K=B.currentTarget,ce=B.listener;if(te!==c&&e.isPropagationStopped())return;o1(e,ce,K),c=te}}function s1(e,t){for(var s=(t&Hc)!==0,c=0;c<e.length;c++){var p=e[c],g=p.event,E=p.listeners;CM(g,E,s)}lC()}function xM(e,t,s,c,p){var g=Tn(s),E=[];bM(E,e,c,s,g,t),s1(E,t)}function Jn(e,t){kC.has(e)||v('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var s=!1,c=qL(t),p=RM(e,s);c.has(p)||(l1(t,e,zc,s),c.add(p))}function MC(e,t,s){kC.has(e)&&!t&&v('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var c=0;t&&(c|=Hc),l1(s,e,c,t)}var qg="_reactListening"+Math.random().toString(36).slice(2);function oh(e){if(!e[qg]){e[qg]=!0,Ve.forEach(function(s){s!=="selectionchange"&&(kC.has(s)||MC(s,!1,e),MC(s,!0,e))});var t=e.nodeType===$a?e:e.ownerDocument;t!==null&&(t[qg]||(t[qg]=!0,MC("selectionchange",!1,t)))}}function l1(e,t,s,c,p){var g=Cr(e,t,s),E=void 0;Gc&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(E=!0),e=e,c?E!==void 0?$d(e,t,g,E):Xo(e,t,g):E!==void 0?Xv(e,t,g,E):Uu(e,t,g)}function u1(e,t){return e===t||e.nodeType===Kn&&e.parentNode===t}function LC(e,t,s,c,p){var g=c;if(!(t&sd)&&!(t&zc)){var E=p;if(c!==null){var I=c;e:for(;;){if(I===null)return;var j=I.tag;if(j===T||j===A){var P=I.stateNode.containerInfo;if(u1(P,E))break;if(j===A)for(var B=I.return;B!==null;){var te=B.tag;if(te===T||te===A){var K=B.stateNode.containerInfo;if(u1(K,E))return}B=B.return}for(;P!==null;){var ce=wf(P);if(ce===null)return;var de=ce.tag;if(de===N||de===O){I=g=ce;continue e}P=P.parentNode}}I=I.return}}}$c(function(){return xM(e,t,s,g)})}function sh(e,t,s){return{instance:e,listener:t,currentTarget:s}}function SM(e,t,s,c,p,g){for(var E=t!==null?t+"Capture":null,I=c?E:t,j=[],P=e,B=null;P!==null;){var te=P,K=te.stateNode,ce=te.tag;if(ce===N&&K!==null&&(B=K,I!==null)){var de=ml(P,I);de!=null&&j.push(sh(P,de,B))}if(p)break;P=P.return}return j}function Qg(e,t){for(var s=t+"Capture",c=[],p=e;p!==null;){var g=p,E=g.stateNode,I=g.tag;if(I===N&&E!==null){var j=E,P=ml(p,s);P!=null&&c.unshift(sh(p,P,j));var B=ml(p,t);B!=null&&c.push(sh(p,B,j))}p=p.return}return c}function op(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==N);return e||null}function EM(e,t){for(var s=e,c=t,p=0,g=s;g;g=op(g))p++;for(var E=0,I=c;I;I=op(I))E++;for(;p-E>0;)s=op(s),p--;for(;E-p>0;)c=op(c),E--;for(var j=p;j--;){if(s===c||c!==null&&s===c.alternate)return s;s=op(s),c=op(c)}return null}function c1(e,t,s,c,p){for(var g=t._reactName,E=[],I=s;I!==null&&I!==c;){var j=I,P=j.alternate,B=j.stateNode,te=j.tag;if(P!==null&&P===c)break;if(te===N&&B!==null){var K=B;if(p){var ce=ml(I,g);ce!=null&&E.unshift(sh(I,ce,K))}else if(!p){var de=ml(I,g);de!=null&&E.push(sh(I,de,K))}}I=I.return}E.length!==0&&e.push({event:t,listeners:E})}function wM(e,t,s,c,p){var g=c&&p?EM(c,p):null;c!==null&&c1(e,t,c,g,!1),p!==null&&s!==null&&c1(e,s,p,g,!0)}function RM(e,t){return e+"__"+(t?"capture":"bubble")}var Si=!1,lh="dangerouslySetInnerHTML",Kg="suppressContentEditableWarning",Yu="suppressHydrationWarning",f1="autoFocus",Sf="children",Ef="style",ey="__html",PC,ty,uh,d1,ny,p1,v1;PC={dialog:!0,webview:!0},ty=function(e,t){gu(e,t),tg(e,t),Rs(e,t,{registrationNameDependencies:et,possibleRegistrationNames:tt})},p1=It&&!document.documentMode,uh=function(e,t,s){if(!Si){var c=ry(s),p=ry(t);p!==c&&(Si=!0,v("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(p),JSON.stringify(c)))}},d1=function(e){if(!Si){Si=!0;var t=[];e.forEach(function(s){t.push(s)}),v("Extra attributes from the server: %s",t)}},ny=function(e,t){t===!1?v("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):v("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},v1=function(e,t){var s=e.namespaceURI===Lo?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return s.innerHTML=t,s.innerHTML};var TM=/\r\n?/g,IM=/\u0000|\uFFFD/g;function ry(e){Rr(e);var t=typeof e=="string"?e:""+e;return t.replace(TM,`
|
|
125
125
|
`).replace(IM,"")}function ay(e,t,s,c){var p=ry(t),g=ry(e);if(g!==p&&(c&&(Si||(Si=!0,v('Text content did not match. Server: "%s" Client: "%s"',g,p))),s&&ne))throw new Error("Text content does not match server-rendered HTML.")}function h1(e){return e.nodeType===$a?e:e.ownerDocument}function NM(){}function iy(e){e.onclick=NM}function _M(e,t,s,c,p){for(var g in c)if(c.hasOwnProperty(g)){var E=c[g];if(g===Ef)E&&Object.freeze(E),Zm(t,E);else if(g===lh){var I=E?E[ey]:void 0;I!=null&&Bm(t,I)}else if(g===Sf)if(typeof E=="string"){var j=e!=="textarea"||E!=="";j&&Mc(t,E)}else typeof E=="number"&&Mc(t,""+E);else g===Kg||g===Yu||g===f1||(et.hasOwnProperty(g)?E!=null&&(typeof E!="function"&&ny(g,E),g==="onScroll"&&Jn("scroll",t)):E!=null&&No(t,g,E,p))}}function OM(e,t,s,c){for(var p=0;p<t.length;p+=2){var g=t[p],E=t[p+1];g===Ef?Zm(e,E):g===lh?Bm(e,E):g===Sf?Mc(e,E):No(e,g,E,c)}}function AM(e,t,s,c){var p,g=h1(s),E,I=c;if(I===Lo&&(I=ov(e)),I===Lo){if(p=pl(e,t),!p&&e!==e.toLowerCase()&&v("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),e==="script"){var j=g.createElement("div");j.innerHTML="<script><\/script>";var P=j.firstChild;E=j.removeChild(P)}else if(typeof t.is=="string")E=g.createElement(e,{is:t.is});else if(E=g.createElement(e),e==="select"){var B=E;t.multiple?B.multiple=!0:t.size&&(B.size=t.size)}}else E=g.createElementNS(I,e);return I===Lo&&!p&&Object.prototype.toString.call(E)==="[object HTMLUnknownElement]"&&!pt.call(PC,e)&&(PC[e]=!0,v("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e)),E}function jM(e,t){return h1(t).createTextNode(e)}function DM(e,t,s,c){var p=pl(t,s);ty(t,s);var g;switch(t){case"dialog":Jn("cancel",e),Jn("close",e),g=s;break;case"iframe":case"object":case"embed":Jn("load",e),g=s;break;case"video":case"audio":for(var E=0;E<ih.length;E++)Jn(ih[E],e);g=s;break;case"source":Jn("error",e),g=s;break;case"img":case"image":case"link":Jn("error",e),Jn("load",e),g=s;break;case"details":Jn("toggle",e),g=s;break;case"input":X(e,s),g=D(e,s),Jn("invalid",e);break;case"option":hn(e,s),g=s;break;case"select":kc(e,s),g=Dc(e,s),Jn("invalid",e);break;case"textarea":Fm(e,s),g=iv(e,s),Jn("invalid",e);break;default:g=s}switch(Fc(t,g),_M(t,e,c,g,p),t){case"input":Do(e),Be(e,s,!1);break;case"textarea":Do(e),ed(e);break;case"option":mn(e,s);break;case"select":av(e,s);break;default:typeof g.onClick=="function"&&iy(e);break}}function kM(e,t,s,c,p){ty(t,c);var g=null,E,I;switch(t){case"input":E=D(e,s),I=D(e,c),g=[];break;case"select":E=Dc(e,s),I=Dc(e,c),g=[];break;case"textarea":E=iv(e,s),I=iv(e,c),g=[];break;default:E=s,I=c,typeof E.onClick!="function"&&typeof I.onClick=="function"&&iy(e);break}Fc(t,I);var j,P,B=null;for(j in E)if(!(I.hasOwnProperty(j)||!E.hasOwnProperty(j)||E[j]==null))if(j===Ef){var te=E[j];for(P in te)te.hasOwnProperty(P)&&(B||(B={}),B[P]="")}else j===lh||j===Sf||j===Kg||j===Yu||j===f1||(et.hasOwnProperty(j)?g||(g=[]):(g=g||[]).push(j,null));for(j in I){var K=I[j],ce=E!=null?E[j]:void 0;if(!(!I.hasOwnProperty(j)||K===ce||K==null&&ce==null))if(j===Ef)if(K&&Object.freeze(K),ce){for(P in ce)ce.hasOwnProperty(P)&&(!K||!K.hasOwnProperty(P))&&(B||(B={}),B[P]="");for(P in K)K.hasOwnProperty(P)&&ce[P]!==K[P]&&(B||(B={}),B[P]=K[P])}else B||(g||(g=[]),g.push(j,B)),B=K;else if(j===lh){var de=K?K[ey]:void 0,be=ce?ce[ey]:void 0;de!=null&&be!==de&&(g=g||[]).push(j,de)}else j===Sf?(typeof K=="string"||typeof K=="number")&&(g=g||[]).push(j,""+K):j===Kg||j===Yu||(et.hasOwnProperty(j)?(K!=null&&(typeof K!="function"&&ny(j,K),j==="onScroll"&&Jn("scroll",e)),!g&&ce!==K&&(g=[])):(g=g||[]).push(j,K))}return B&&(Jm(B,I[Ef]),(g=g||[]).push(Ef,B)),g}function MM(e,t,s,c,p){s==="input"&&p.type==="radio"&&p.name!=null&&ue(e,p);var g=pl(s,c),E=pl(s,p);switch(OM(e,t,g,E),s){case"input":me(e,p);break;case"textarea":Vm(e,p);break;case"select":Z0(e,p);break}}function LM(e){{var t=e.toLowerCase();return ad.hasOwnProperty(t)&&ad[t]||null}}function PM(e,t,s,c,p,g,E){var I,j;switch(I=pl(t,s),ty(t,s),t){case"dialog":Jn("cancel",e),Jn("close",e);break;case"iframe":case"object":case"embed":Jn("load",e);break;case"video":case"audio":for(var P=0;P<ih.length;P++)Jn(ih[P],e);break;case"source":Jn("error",e);break;case"img":case"image":case"link":Jn("error",e),Jn("load",e);break;case"details":Jn("toggle",e);break;case"input":X(e,s),Jn("invalid",e);break;case"option":hn(e,s);break;case"select":kc(e,s),Jn("invalid",e);break;case"textarea":Fm(e,s),Jn("invalid",e);break}Fc(t,s);{j=new Set;for(var B=e.attributes,te=0;te<B.length;te++){var K=B[te].name.toLowerCase();switch(K){case"value":break;case"checked":break;case"selected":break;default:j.add(B[te].name)}}}var ce=null;for(var de in s)if(s.hasOwnProperty(de)){var be=s[de];if(de===Sf)typeof be=="string"?e.textContent!==be&&(s[Yu]!==!0&&ay(e.textContent,be,g,E),ce=[Sf,be]):typeof be=="number"&&e.textContent!==""+be&&(s[Yu]!==!0&&ay(e.textContent,be,g,E),ce=[Sf,""+be]);else if(et.hasOwnProperty(de))be!=null&&(typeof be!="function"&&ny(de,be),de==="onScroll"&&Jn("scroll",e));else if(E&&typeof I=="boolean"){var qe=void 0,gt=I&&Se?null:Ir(de);if(s[Yu]!==!0){if(!(de===Kg||de===Yu||de==="value"||de==="checked"||de==="selected")){if(de===lh){var ct=e.innerHTML,Wt=be?be[ey]:void 0;if(Wt!=null){var Ht=v1(e,Wt);Ht!==ct&&uh(de,ct,Ht)}}else if(de===Ef){if(j.delete(de),p1){var ie=iC(be);qe=e.getAttribute("style"),ie!==qe&&uh(de,qe,ie)}}else if(I&&!Se)j.delete(de.toLowerCase()),qe=ii(e,de,be),be!==qe&&uh(de,qe,be);else if(!Gn(de,gt,I)&&!pn(de,be,gt,I)){var Ce=!1;if(gt!==null)j.delete(gt.attributeName),qe=Li(e,de,be,gt);else{var oe=c;if(oe===Lo&&(oe=ov(t)),oe===Lo)j.delete(de.toLowerCase());else{var Fe=LM(de);Fe!==null&&Fe!==de&&(Ce=!0,j.delete(Fe)),j.delete(de)}qe=ii(e,de,be)}var Qe=Se;!Qe&&be!==qe&&!Ce&&uh(de,qe,be)}}}}}switch(E&&j.size>0&&s[Yu]!==!0&&d1(j),t){case"input":Do(e),Be(e,s,!0);break;case"textarea":Do(e),ed(e);break;case"select":case"option":break;default:typeof s.onClick=="function"&&iy(e);break}return ce}function FM(e,t,s){var c=e.nodeValue!==t;return c}function FC(e,t){{if(Si)return;Si=!0,v("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function VC(e,t){{if(Si)return;Si=!0,v('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase())}}function BC(e,t,s){{if(Si)return;Si=!0,v("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function zC(e,t){{if(t===""||Si)return;Si=!0,v('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())}}function VM(e,t,s){switch(t){case"input":it(e,s);return;case"textarea":J0(e,s);return;case"select":Lm(e,s);return}}var ch=function(){},fh=function(){};{var BM=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],m1=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],zM=m1.concat(["button"]),HM=["dd","dt","li","option","optgroup","p","rp","rt"],g1={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};fh=function(e,t){var s=Lt({},e||g1),c={tag:t};return m1.indexOf(t)!==-1&&(s.aTagInScope=null,s.buttonTagInScope=null,s.nobrTagInScope=null),zM.indexOf(t)!==-1&&(s.pTagInButtonScope=null),BM.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(s.listItemTagAutoclosing=null,s.dlItemTagAutoclosing=null),s.current=c,t==="form"&&(s.formTag=c),t==="a"&&(s.aTagInScope=c),t==="button"&&(s.buttonTagInScope=c),t==="nobr"&&(s.nobrTagInScope=c),t==="p"&&(s.pTagInButtonScope=c),t==="li"&&(s.listItemTagAutoclosing=c),(t==="dd"||t==="dt")&&(s.dlItemTagAutoclosing=c),s};var UM=function(e,t){switch(t){case"select":return e==="option"||e==="optgroup"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return HM.indexOf(t)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null}return!0},$M=function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null},y1={};ch=function(e,t,s){s=s||g1;var c=s.current,p=c&&c.tag;t!=null&&(e!=null&&v("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var g=UM(e,p)?null:c,E=g?null:$M(e,s),I=g||E;if(I){var j=I.tag,P=!!g+"|"+e+"|"+j;if(!y1[P]){y1[P]=!0;var B=e,te="";if(e==="#text"?/\S/.test(t)?B="Text nodes":(B="Whitespace text nodes",te=" Make sure you don't have any extra whitespace between tags on each line of your source code."):B="<"+e+">",g){var K="";j==="table"&&e==="tr"&&(K+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),v("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",B,j,te,K)}else v("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",B,j)}}}}var oy="suppressHydrationWarning",sy="$",ly="/$",dh="$?",ph="$!",GM="style",HC=null,UC=null;function WM(e){var t,s,c=e.nodeType;switch(c){case $a:case lv:{t=c===$a?"#document":"#fragment";var p=e.documentElement;s=p?p.namespaceURI:sv(null,"");break}default:{var g=c===Kn?e.parentNode:e,E=g.namespaceURI||null;t=g.tagName,s=sv(E,t);break}}{var I=t.toLowerCase(),j=fh(null,I);return{namespace:s,ancestorInfo:j}}}function XM(e,t,s){{var c=e,p=sv(c.namespace,t),g=fh(c.ancestorInfo,t);return{namespace:p,ancestorInfo:g}}}function W8(e){return e}function YM(e){HC=zu(),UC=lM();var t=null;return Da(!1),t}function ZM(e){uM(UC),Da(HC),HC=null,UC=null}function JM(e,t,s,c,p){var g;{var E=c;if(ch(e,null,E.ancestorInfo),typeof t.children=="string"||typeof t.children=="number"){var I=""+t.children,j=fh(E.ancestorInfo,e);ch(null,I,j)}g=E.namespace}var P=AM(e,t,s,g);return mh(p,P),qC(P,t),P}function qM(e,t){e.appendChild(t)}function QM(e,t,s,c,p){switch(DM(e,t,s,c),t){case"button":case"input":case"select":case"textarea":return!!s.autoFocus;case"img":return!0;default:return!1}}function KM(e,t,s,c,p,g){{var E=g;if(typeof c.children!=typeof s.children&&(typeof c.children=="string"||typeof c.children=="number")){var I=""+c.children,j=fh(E.ancestorInfo,t);ch(null,I,j)}}return kM(e,t,s,c)}function $C(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function eL(e,t,s,c){{var p=s;ch(null,e,p.ancestorInfo)}var g=jM(e,t);return mh(c,g),g}function tL(){var e=window.event;return e===void 0?co:Ud(e.type)}var GC=typeof setTimeout=="function"?setTimeout:void 0,nL=typeof clearTimeout=="function"?clearTimeout:void 0,WC=-1,b1=typeof Promise=="function"?Promise:void 0,rL=typeof queueMicrotask=="function"?queueMicrotask:typeof b1<"u"?function(e){return b1.resolve(null).then(e).catch(aL)}:GC;function aL(e){setTimeout(function(){throw e})}function iL(e,t,s,c){switch(t){case"button":case"input":case"select":case"textarea":s.autoFocus&&e.focus();return;case"img":{s.src&&(e.src=s.src);return}}}function oL(e,t,s,c,p,g){MM(e,t,s,c,p),qC(e,p)}function C1(e){Mc(e,"")}function sL(e,t,s){e.nodeValue=s}function lL(e,t){e.appendChild(t)}function uL(e,t){var s;e.nodeType===Kn?(s=e.parentNode,s.insertBefore(t,e)):(s=e,s.appendChild(t));var c=e._reactRootContainer;c==null&&s.onclick===null&&iy(s)}function cL(e,t,s){e.insertBefore(t,s)}function fL(e,t,s){e.nodeType===Kn?e.parentNode.insertBefore(t,s):e.insertBefore(t,s)}function dL(e,t){e.removeChild(t)}function pL(e,t){e.nodeType===Kn?e.parentNode.removeChild(t):e.removeChild(t)}function XC(e,t){var s=t,c=0;do{var p=s.nextSibling;if(e.removeChild(s),p&&p.nodeType===Kn){var g=p.data;if(g===ly)if(c===0){e.removeChild(p),rr(t);return}else c--;else(g===sy||g===dh||g===ph)&&c++}s=p}while(s);rr(t)}function vL(e,t){e.nodeType===Kn?XC(e.parentNode,t):e.nodeType===Ea&&XC(e,t),rr(e)}function hL(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function mL(e){e.nodeValue=""}function gL(e,t){e=e;var s=t[GM],c=s!=null&&s.hasOwnProperty("display")?s.display:null;e.style.display=Es("display",c)}function yL(e,t){e.nodeValue=t}function bL(e){e.nodeType===Ea?e.textContent="":e.nodeType===$a&&e.documentElement&&e.removeChild(e.documentElement)}function CL(e,t,s){return e.nodeType!==Ea||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function xL(e,t){return t===""||e.nodeType!==Po?null:e}function SL(e){return e.nodeType!==Kn?null:e}function x1(e){return e.data===dh}function YC(e){return e.data===ph}function EL(e){var t=e.nextSibling&&e.nextSibling.dataset,s,c,p;return t&&(s=t.dgst,c=t.msg,p=t.stck),{message:c,digest:s,stack:p}}function wL(e,t){e._reactRetry=t}function uy(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===Ea||t===Po)break;if(t===Kn){var s=e.data;if(s===sy||s===ph||s===dh)break;if(s===ly)return null}}return e}function vh(e){return uy(e.nextSibling)}function RL(e){return uy(e.firstChild)}function TL(e){return uy(e.firstChild)}function IL(e){return uy(e.nextSibling)}function NL(e,t,s,c,p,g,E){mh(g,e),qC(e,s);var I;{var j=p;I=j.namespace}var P=(g.mode&ut)!==mt;return PM(e,t,s,I,c,P,E)}function _L(e,t,s,c){return mh(s,e),s.mode&ut,FM(e,t)}function OL(e,t){mh(t,e)}function AL(e){for(var t=e.nextSibling,s=0;t;){if(t.nodeType===Kn){var c=t.data;if(c===ly){if(s===0)return vh(t);s--}else(c===sy||c===ph||c===dh)&&s++}t=t.nextSibling}return null}function S1(e){for(var t=e.previousSibling,s=0;t;){if(t.nodeType===Kn){var c=t.data;if(c===sy||c===ph||c===dh){if(s===0)return t;s--}else c===ly&&s++}t=t.previousSibling}return null}function jL(e){rr(e)}function DL(e){rr(e)}function kL(e){return e!=="head"&&e!=="body"}function ML(e,t,s,c){var p=!0;ay(t.nodeValue,s,c,p)}function LL(e,t,s,c,p,g){if(t[oy]!==!0){var E=!0;ay(c.nodeValue,p,g,E)}}function PL(e,t){t.nodeType===Ea?FC(e,t):t.nodeType===Kn||VC(e,t)}function FL(e,t){{var s=e.parentNode;s!==null&&(t.nodeType===Ea?FC(s,t):t.nodeType===Kn||VC(s,t))}}function VL(e,t,s,c,p){(p||t[oy]!==!0)&&(c.nodeType===Ea?FC(s,c):c.nodeType===Kn||VC(s,c))}function BL(e,t,s){BC(e,t)}function zL(e,t){zC(e,t)}function HL(e,t,s){{var c=e.parentNode;c!==null&&BC(c,t)}}function UL(e,t){{var s=e.parentNode;s!==null&&zC(s,t)}}function $L(e,t,s,c,p,g){(g||t[oy]!==!0)&&BC(s,c)}function GL(e,t,s,c,p){(p||t[oy]!==!0)&&zC(s,c)}function WL(e){v("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function XL(e){oh(e)}var sp=Math.random().toString(36).slice(2),lp="__reactFiber$"+sp,ZC="__reactProps$"+sp,hh="__reactContainer$"+sp,JC="__reactEvents$"+sp,YL="__reactListeners$"+sp,ZL="__reactHandles$"+sp;function JL(e){delete e[lp],delete e[ZC],delete e[JC],delete e[YL],delete e[ZL]}function mh(e,t){t[lp]=e}function cy(e,t){t[hh]=e}function E1(e){e[hh]=null}function gh(e){return!!e[hh]}function wf(e){var t=e[lp];if(t)return t;for(var s=e.parentNode;s;){if(t=s[hh]||s[lp],t){var c=t.alternate;if(t.child!==null||c!==null&&c.child!==null)for(var p=S1(e);p!==null;){var g=p[lp];if(g)return g;p=S1(p)}return t}e=s,s=e.parentNode}return null}function Zu(e){var t=e[lp]||e[hh];return t&&(t.tag===N||t.tag===O||t.tag===U||t.tag===T)?t:null}function up(e){if(e.tag===N||e.tag===O)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function fy(e){return e[ZC]||null}function qC(e,t){e[ZC]=t}function qL(e){var t=e[JC];return t===void 0&&(t=e[JC]=new Set),t}var w1={},R1=u.ReactDebugCurrentFrame;function dy(e){if(e){var t=e._owner,s=Ut(e.type,e._source,t?t.type:null);R1.setExtraStackFrame(s)}else R1.setExtraStackFrame(null)}function Jo(e,t,s,c,p){{var g=Function.call.bind(pt);for(var E in e)if(g(e,E)){var I=void 0;try{if(typeof e[E]!="function"){var j=Error((c||"React class")+": "+s+" type `"+E+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[E]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw j.name="Invariant Violation",j}I=e[E](t,E,c,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(P){I=P}I&&!(I instanceof Error)&&(dy(p),v("%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,E,typeof I),dy(null)),I instanceof Error&&!(I.message in w1)&&(w1[I.message]=!0,dy(p),v("Failed %s type: %s",s,I.message),dy(null))}}}var QC=[],py;py=[];var Ll=-1;function Ju(e){return{current:e}}function ka(e,t){if(Ll<0){v("Unexpected pop.");return}t!==py[Ll]&&v("Unexpected Fiber popped."),e.current=QC[Ll],QC[Ll]=null,py[Ll]=null,Ll--}function Ma(e,t,s){Ll++,QC[Ll]=e.current,py[Ll]=s,e.current=t}var KC;KC={};var $i={};Object.freeze($i);var Pl=Ju($i),Hs=Ju(!1),ex=$i;function cp(e,t,s){return s&&Us(t)?ex:Pl.current}function T1(e,t,s){{var c=e.stateNode;c.__reactInternalMemoizedUnmaskedChildContext=t,c.__reactInternalMemoizedMaskedChildContext=s}}function fp(e,t){{var s=e.type,c=s.contextTypes;if(!c)return $i;var p=e.stateNode;if(p&&p.__reactInternalMemoizedUnmaskedChildContext===t)return p.__reactInternalMemoizedMaskedChildContext;var g={};for(var E in c)g[E]=t[E];{var I=Nt(e)||"Unknown";Jo(c,g,"context",I)}return p&&T1(e,t,g),g}}function vy(){return Hs.current}function Us(e){{var t=e.childContextTypes;return t!=null}}function hy(e){ka(Hs,e),ka(Pl,e)}function tx(e){ka(Hs,e),ka(Pl,e)}function I1(e,t,s){{if(Pl.current!==$i)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Ma(Pl,t,e),Ma(Hs,s,e)}}function N1(e,t,s){{var c=e.stateNode,p=t.childContextTypes;if(typeof c.getChildContext!="function"){{var g=Nt(e)||"Unknown";KC[g]||(KC[g]=!0,v("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",g,g))}return s}var E=c.getChildContext();for(var I in E)if(!(I in p))throw new Error((Nt(e)||"Unknown")+'.getChildContext(): key "'+I+'" is not defined in childContextTypes.');{var j=Nt(e)||"Unknown";Jo(p,E,"child context",j)}return Lt({},s,E)}}function my(e){{var t=e.stateNode,s=t&&t.__reactInternalMemoizedMergedChildContext||$i;return ex=Pl.current,Ma(Pl,s,e),Ma(Hs,Hs.current,e),!0}}function _1(e,t,s){{var c=e.stateNode;if(!c)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(s){var p=N1(e,t,ex);c.__reactInternalMemoizedMergedChildContext=p,ka(Hs,e),ka(Pl,e),Ma(Pl,p,e),Ma(Hs,s,e)}else ka(Hs,e),Ma(Hs,s,e)}}function QL(e){{if(!Xa(e)||e.tag!==x)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var t=e;do{switch(t.tag){case T:return t.stateNode.context;case x:{var s=t.type;if(Us(s))return t.stateNode.__reactInternalMemoizedMergedChildContext;break}}t=t.return}while(t!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var qu=0,gy=1,Fl=null,nx=!1,rx=!1;function O1(e){Fl===null?Fl=[e]:Fl.push(e)}function KL(e){nx=!0,O1(e)}function A1(){nx&&Qu()}function Qu(){if(!rx&&Fl!==null){rx=!0;var e=0,t=gi();try{var s=!0,c=Fl;for(nr(cr);e<c.length;e++){var p=c[e];do p=p(s);while(p!==null)}Fl=null,nx=!1}catch(g){throw Fl!==null&&(Fl=Fl.slice(e+1)),Nv(Na,Qu),g}finally{nr(t),rx=!1}}return null}var dp=[],pp=0,yy=null,by=0,ho=[],mo=0,Rf=null,Vl=1,Bl="";function eP(e){return If(),(e.flags&dg)!==ht}function tP(e){return If(),by}function nP(){var e=Bl,t=Vl,s=t&~rP(t);return s.toString(32)+e}function Tf(e,t){If(),dp[pp++]=by,dp[pp++]=yy,yy=e,by=t}function j1(e,t,s){If(),ho[mo++]=Vl,ho[mo++]=Bl,ho[mo++]=Rf,Rf=e;var c=Vl,p=Bl,g=Cy(c)-1,E=c&~(1<<g),I=s+1,j=Cy(t)+g;if(j>30){var P=g-g%5,B=(1<<P)-1,te=(E&B).toString(32),K=E>>P,ce=g-P,de=Cy(t)+ce,be=I<<ce,qe=be|K,gt=te+p;Vl=1<<de|qe,Bl=gt}else{var ct=I<<g,Wt=ct|E,Ht=p;Vl=1<<j|Wt,Bl=Ht}}function ax(e){If();var t=e.return;if(t!==null){var s=1,c=0;Tf(e,s),j1(e,s,c)}}function Cy(e){return 32-ef(e)}function rP(e){return 1<<Cy(e)-1}function ix(e){for(;e===yy;)yy=dp[--pp],dp[pp]=null,by=dp[--pp],dp[pp]=null;for(;e===Rf;)Rf=ho[--mo],ho[mo]=null,Bl=ho[--mo],ho[mo]=null,Vl=ho[--mo],ho[mo]=null}function aP(){return If(),Rf!==null?{id:Vl,overflow:Bl}:null}function iP(e,t){If(),ho[mo++]=Vl,ho[mo++]=Bl,ho[mo++]=Rf,Vl=t.id,Bl=t.overflow,Rf=e}function If(){sa()||v("Expected to be hydrating. This is a bug in React. Please file an issue.")}var oa=null,go=null,qo=!1,Nf=!1,Ku=null;function oP(){qo&&v("We should not be hydrating here. This is a bug in React. Please file a bug.")}function D1(){Nf=!0}function sP(){return Nf}function lP(e){var t=e.stateNode.containerInfo;return go=TL(t),oa=e,qo=!0,Ku=null,Nf=!1,!0}function uP(e,t,s){return go=IL(t),oa=e,qo=!0,Ku=null,Nf=!1,s!==null&&iP(e,s),!0}function k1(e,t){switch(e.tag){case T:{PL(e.stateNode.containerInfo,t);break}case N:{var s=(e.mode&ut)!==mt;VL(e.type,e.memoizedProps,e.stateNode,t,s);break}case U:{var c=e.memoizedState;c.dehydrated!==null&&FL(c.dehydrated,t);break}}}function M1(e,t){k1(e,t);var s=dB();s.stateNode=t,s.return=e;var c=e.deletions;c===null?(e.deletions=[s],e.flags|=tn):c.push(s)}function ox(e,t){{if(Nf)return;switch(e.tag){case T:{var s=e.stateNode.containerInfo;switch(t.tag){case N:var c=t.type;t.pendingProps,BL(s,c);break;case O:var p=t.pendingProps;zL(s,p);break}break}case N:{var g=e.type,E=e.memoizedProps,I=e.stateNode;switch(t.tag){case N:{var j=t.type,P=t.pendingProps,B=(e.mode&ut)!==mt;$L(g,E,I,j,P,B);break}case O:{var te=t.pendingProps,K=(e.mode&ut)!==mt;GL(g,E,I,te,K);break}}break}case U:{var ce=e.memoizedState,de=ce.dehydrated;if(de!==null)switch(t.tag){case N:var be=t.type;t.pendingProps,HL(de,be);break;case O:var qe=t.pendingProps;UL(de,qe);break}break}default:return}}}function L1(e,t){t.flags=t.flags&~io|In,ox(e,t)}function P1(e,t){switch(e.tag){case N:{var s=e.type;e.pendingProps;var c=CL(t,s);return c!==null?(e.stateNode=c,oa=e,go=RL(c),!0):!1}case O:{var p=e.pendingProps,g=xL(t,p);return g!==null?(e.stateNode=g,oa=e,go=null,!0):!1}case U:{var E=SL(t);if(E!==null){var I={dehydrated:E,treeContext:aP(),retryLane:Ja};e.memoizedState=I;var j=pB(E);return j.return=e,e.child=j,oa=e,go=null,!0}return!1}default:return!1}}function sx(e){return(e.mode&ut)!==mt&&(e.flags&Ot)===ht}function lx(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function ux(e){if(qo){var t=go;if(!t){sx(e)&&(ox(oa,e),lx()),L1(oa,e),qo=!1,oa=e;return}var s=t;if(!P1(e,t)){sx(e)&&(ox(oa,e),lx()),t=vh(s);var c=oa;if(!t||!P1(e,t)){L1(oa,e),qo=!1,oa=e;return}M1(c,s)}}}function cP(e,t,s){var c=e.stateNode,p=!Nf,g=NL(c,e.type,e.memoizedProps,t,s,e,p);return e.updateQueue=g,g!==null}function fP(e){var t=e.stateNode,s=e.memoizedProps,c=_L(t,s,e);if(c){var p=oa;if(p!==null)switch(p.tag){case T:{var g=p.stateNode.containerInfo,E=(p.mode&ut)!==mt;ML(g,t,s,E);break}case N:{var I=p.type,j=p.memoizedProps,P=p.stateNode,B=(p.mode&ut)!==mt;LL(I,j,P,t,s,B);break}}}return c}function dP(e){var t=e.memoizedState,s=t!==null?t.dehydrated:null;if(!s)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");OL(s,e)}function pP(e){var t=e.memoizedState,s=t!==null?t.dehydrated:null;if(!s)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return AL(s)}function F1(e){for(var t=e.return;t!==null&&t.tag!==N&&t.tag!==T&&t.tag!==U;)t=t.return;oa=t}function xy(e){if(e!==oa)return!1;if(!qo)return F1(e),qo=!0,!1;if(e.tag!==T&&(e.tag!==N||kL(e.type)&&!$C(e.type,e.memoizedProps))){var t=go;if(t)if(sx(e))V1(e),lx();else for(;t;)M1(e,t),t=vh(t)}return F1(e),e.tag===U?go=pP(e):go=oa?vh(e.stateNode):null,!0}function vP(){return qo&&go!==null}function V1(e){for(var t=go;t;)k1(e,t),t=vh(t)}function vp(){oa=null,go=null,qo=!1,Nf=!1}function B1(){Ku!==null&&(kI(Ku),Ku=null)}function sa(){return qo}function cx(e){Ku===null?Ku=[e]:Ku.push(e)}var hP=u.ReactCurrentBatchConfig,mP=null;function gP(){return hP.transition}var Qo={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var yP=function(e){for(var t=null,s=e;s!==null;)s.mode&er&&(t=s),s=s.return;return t},_f=function(e){var t=[];return e.forEach(function(s){t.push(s)}),t.sort().join(", ")},yh=[],bh=[],Ch=[],xh=[],Sh=[],Eh=[],Of=new Set;Qo.recordUnsafeLifecycleWarnings=function(e,t){Of.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&yh.push(e),e.mode&er&&typeof t.UNSAFE_componentWillMount=="function"&&bh.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Ch.push(e),e.mode&er&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&xh.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Sh.push(e),e.mode&er&&typeof t.UNSAFE_componentWillUpdate=="function"&&Eh.push(e))},Qo.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;yh.length>0&&(yh.forEach(function(K){e.add(Nt(K)||"Component"),Of.add(K.type)}),yh=[]);var t=new Set;bh.length>0&&(bh.forEach(function(K){t.add(Nt(K)||"Component"),Of.add(K.type)}),bh=[]);var s=new Set;Ch.length>0&&(Ch.forEach(function(K){s.add(Nt(K)||"Component"),Of.add(K.type)}),Ch=[]);var c=new Set;xh.length>0&&(xh.forEach(function(K){c.add(Nt(K)||"Component"),Of.add(K.type)}),xh=[]);var p=new Set;Sh.length>0&&(Sh.forEach(function(K){p.add(Nt(K)||"Component"),Of.add(K.type)}),Sh=[]);var g=new Set;if(Eh.length>0&&(Eh.forEach(function(K){g.add(Nt(K)||"Component"),Of.add(K.type)}),Eh=[]),t.size>0){var E=_f(t);v(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
126
126
|
|
|
127
127
|
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
@@ -188,7 +188,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
188
188
|
|
|
189
189
|
`+(""+P);console.error(te)}catch(K){setTimeout(function(){throw K})}}var ZP=typeof WeakMap=="function"?WeakMap:Map;function BT(e,t,s){var c=zl(Mn,s);c.tag=gx,c.payload={element:null};var p=t.value;return c.callback=function(){zV(p),gS(e,t)},c}function yS(e,t,s){var c=zl(Mn,s);c.tag=gx;var p=e.type.getDerivedStateFromError;if(typeof p=="function"){var g=t.value;c.payload=function(){return p(g)},c.callback=function(){qI(e),gS(e,t)}}var E=e.stateNode;return E!==null&&typeof E.componentDidCatch=="function"&&(c.callback=function(){qI(e),gS(e,t),typeof p!="function"&&VV(this);var j=t.value,P=t.stack;this.componentDidCatch(j,{componentStack:P!==null?P:""}),typeof p!="function"&&(ja(e.lanes,bt)||v("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Nt(e)||"Unknown"))}),c}function zT(e,t,s){var c=e.pingCache,p;if(c===null?(c=e.pingCache=new ZP,p=new Set,c.set(t,p)):(p=c.get(t),p===void 0&&(p=new Set,c.set(t,p))),!p.has(s)){p.add(s);var g=HV.bind(null,e,t,s);Za&&Jh(e,s),t.then(g,g)}}function JP(e,t,s,c){var p=e.updateQueue;if(p===null){var g=new Set;g.add(s),e.updateQueue=g}else p.add(s)}function qP(e,t){var s=e.tag;if((e.mode&ut)===mt&&(s===C||s===H||s===q)){var c=e.alternate;c?(e.updateQueue=c.updateQueue,e.memoizedState=c.memoizedState,e.lanes=c.lanes):(e.updateQueue=null,e.memoizedState=null)}}function HT(e){var t=e;do{if(t.tag===U&&MP(t))return t;t=t.return}while(t!==null);return null}function UT(e,t,s,c,p){if((e.mode&ut)===mt){if(e===t)e.flags|=Lr;else{if(e.flags|=Ot,s.flags|=fd,s.flags&=~(fg|Is),s.tag===x){var g=s.alternate;if(g===null)s.tag=he;else{var E=zl(Mn,bt);E.tag=Iy,ec(s,E,bt)}}s.lanes=Dt(s.lanes,bt)}return e}return e.flags|=Lr,e.lanes=p,e}function QP(e,t,s,c,p){if(s.flags|=Is,Za&&Jh(e,p),c!==null&&typeof c=="object"&&typeof c.then=="function"){var g=c;qP(s),sa()&&s.mode&ut&&D1();var E=HT(t);if(E!==null){E.flags&=~aa,UT(E,t,s,e,p),E.mode&ut&&zT(e,g,p),JP(E,e,g);return}else{if(!Fv(p)){zT(e,g,p),qS();return}var I=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");c=I}}else if(sa()&&s.mode&ut){D1();var j=HT(t);if(j!==null){(j.flags&Lr)===ht&&(j.flags|=aa),UT(j,t,s,e,p),cx(Df(c,s));return}}c=Df(c,s),AV(c);var P=t;do{switch(P.tag){case T:{var B=c;P.flags|=Lr;var te=Au(p);P.lanes=Dt(P.lanes,te);var K=BT(P,B,te);Cx(P,K);return}case x:var ce=c,de=P.type,be=P.stateNode;if((P.flags&Ot)===ht&&(typeof de.getDerivedStateFromError=="function"||be!==null&&typeof be.componentDidCatch=="function"&&!HI(be))){P.flags|=Lr;var qe=Au(p);P.lanes=Dt(P.lanes,qe);var gt=yS(P,ce,qe);Cx(P,gt);return}break}P=P.return}while(P!==null)}function KP(){return null}var Mh=u.ReactCurrentOwner,ns=!1,bS,Lh,CS,xS,SS,kf,ES,ab;bS={},Lh={},CS={},xS={},SS={},kf=!1,ES={},ab={};function qa(e,t,s,c){e===null?t.child=sT(t,null,s,c):t.child=gp(t,e.child,s,c)}function eF(e,t,s,c){t.child=gp(t,e.child,null,c),t.child=gp(t,null,s,c)}function $T(e,t,s,c,p){if(t.type!==t.elementType){var g=s.propTypes;g&&Jo(g,c,"prop",Yt(s))}var E=s.render,I=t.ref,j,P;mp(t,p),Eu(t);{if(Mh.current=t,Mr(!0),j=Ep(e,t,E,c,I,p),P=wp(),t.mode&er){kn(!0);try{j=Ep(e,t,E,c,I,p),P=wp()}finally{kn(!1)}}Mr(!1)}return Cl(),e!==null&&!ns?(dT(e,t,p),Hl(e,t,p)):(sa()&&P&&ax(t),t.flags|=Hi,qa(e,t,j,p),t.child)}function GT(e,t,s,c,p){if(e===null){var g=s.type;if(iB(g)&&s.compare===null&&s.defaultProps===void 0){var E=g;return E=jp(g),t.tag=q,t.type=E,TS(t,g),WT(e,t,E,c,p)}{var I=g.propTypes;I&&Jo(I,c,"prop",Yt(g))}var j=lE(s.type,null,c,t,t.mode,p);return j.ref=t.ref,j.return=t,t.child=j,j}{var P=s.type,B=P.propTypes;B&&Jo(B,c,"prop",Yt(P))}var te=e.child,K=jS(e,p);if(!K){var ce=te.memoizedProps,de=s.compare;if(de=de!==null?de:St,de(ce,c)&&e.ref===t.ref)return Hl(e,t,p)}t.flags|=Hi;var be=Vf(te,c);return be.ref=t.ref,be.return=t,t.child=be,be}function WT(e,t,s,c,p){if(t.type!==t.elementType){var g=t.elementType;if(g.$$typeof===vt){var E=g,I=E._payload,j=E._init;try{g=j(I)}catch{g=null}var P=g&&g.propTypes;P&&Jo(P,c,"prop",Yt(g))}}if(e!==null){var B=e.memoizedProps;if(St(B,c)&&e.ref===t.ref&&t.type===e.type)if(ns=!1,t.pendingProps=c=B,jS(e,p))(e.flags&fd)!==ht&&(ns=!0);else return t.lanes=e.lanes,Hl(e,t,p)}return wS(e,t,s,c,p)}function XT(e,t,s){var c=t.pendingProps,p=c.children,g=e!==null?e.memoizedState:null;if(c.mode==="hidden"||Y)if((t.mode&ut)===mt){var E={baseLanes:Ee,cachePool:null,transitions:null};t.memoizedState=E,gb(t,s)}else if(ja(s,Ja)){var te={baseLanes:Ee,cachePool:null,transitions:null};t.memoizedState=te;var K=g!==null?g.baseLanes:s;gb(t,K)}else{var I=null,j;if(g!==null){var P=g.baseLanes;j=Dt(P,s)}else j=s;t.lanes=t.childLanes=Ja;var B={baseLanes:j,cachePool:I,transitions:null};return t.memoizedState=B,t.updateQueue=null,gb(t,j),null}else{var ce;g!==null?(ce=Dt(g.baseLanes,s),t.memoizedState=null):ce=s,gb(t,ce)}return qa(e,t,p,s),t.child}function tF(e,t,s){var c=t.pendingProps;return qa(e,t,c,s),t.child}function nF(e,t,s){var c=t.pendingProps.children;return qa(e,t,c,s),t.child}function rF(e,t,s){{t.flags|=st;{var c=t.stateNode;c.effectDuration=0,c.passiveEffectDuration=0}}var p=t.pendingProps,g=p.children;return qa(e,t,g,s),t.child}function YT(e,t){var s=t.ref;(e===null&&s!==null||e!==null&&e.ref!==s)&&(t.flags|=Wa,t.flags|=oo)}function wS(e,t,s,c,p){if(t.type!==t.elementType){var g=s.propTypes;g&&Jo(g,c,"prop",Yt(s))}var E;{var I=cp(t,s,!0);E=fp(t,I)}var j,P;mp(t,p),Eu(t);{if(Mh.current=t,Mr(!0),j=Ep(e,t,s,c,E,p),P=wp(),t.mode&er){kn(!0);try{j=Ep(e,t,s,c,E,p),P=wp()}finally{kn(!1)}}Mr(!1)}return Cl(),e!==null&&!ns?(dT(e,t,p),Hl(e,t,p)):(sa()&&P&&ax(t),t.flags|=Hi,qa(e,t,j,p),t.child)}function ZT(e,t,s,c,p){{switch(CB(t)){case!1:{var g=t.stateNode,E=t.type,I=new E(t.memoizedProps,g.context),j=I.state;g.updater.enqueueSetState(g,j,null);break}case!0:{t.flags|=Ot,t.flags|=Lr;var P=new Error("Simulated error coming from DevTools"),B=Au(p);t.lanes=Dt(t.lanes,B);var te=yS(t,Df(P,t),B);Cx(t,te);break}}if(t.type!==t.elementType){var K=s.propTypes;K&&Jo(K,c,"prop",Yt(s))}}var ce;Us(s)?(ce=!0,my(t)):ce=!1,mp(t,p);var de=t.stateNode,be;de===null?(ob(e,t),nT(t,s,c),jx(t,s,c,p),be=!0):e===null?be=_P(t,s,c,p):be=OP(e,t,s,c,p);var qe=RS(e,t,s,be,ce,p);{var gt=t.stateNode;be&>.props!==c&&(kf||v("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Nt(t)||"a component"),kf=!0)}return qe}function RS(e,t,s,c,p,g){YT(e,t);var E=(t.flags&Ot)!==ht;if(!c&&!E)return p&&_1(t,s,!1),Hl(e,t,g);var I=t.stateNode;Mh.current=t;var j;if(E&&typeof s.getDerivedStateFromError!="function")j=null,VT();else{Eu(t);{if(Mr(!0),j=I.render(),t.mode&er){kn(!0);try{I.render()}finally{kn(!1)}}Mr(!1)}Cl()}return t.flags|=Hi,e!==null&&E?eF(e,t,j,g):qa(e,t,j,g),t.memoizedState=I.state,p&&_1(t,s,!0),t.child}function JT(e){var t=e.stateNode;t.pendingContext?I1(e,t.pendingContext,t.pendingContext!==t.context):t.context&&I1(e,t.context,!1),Fx(e,t.containerInfo)}function aF(e,t,s){if(JT(t),e===null)throw new Error("Should have a current fiber. This is a bug in React.");var c=t.pendingProps,p=t.memoizedState,g=p.element;Y1(e,t),Ay(t,c,null,s);var E=t.memoizedState;t.stateNode;var I=E.element;if(p.isDehydrated){var j={element:I,isDehydrated:!1,cache:E.cache,pendingSuspenseBoundaries:E.pendingSuspenseBoundaries,transitions:E.transitions},P=t.updateQueue;if(P.baseState=j,t.memoizedState=j,t.flags&aa){var B=Df(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),t);return qT(e,t,I,s,B)}else if(I!==g){var te=Df(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t);return qT(e,t,I,s,te)}else{lP(t);var K=sT(t,null,I,s);t.child=K;for(var ce=K;ce;)ce.flags=ce.flags&~In|io,ce=ce.sibling}}else{if(vp(),I===g)return Hl(e,t,s);qa(e,t,I,s)}return t.child}function qT(e,t,s,c,p){return vp(),cx(p),t.flags|=aa,qa(e,t,s,c),t.child}function iF(e,t,s){uT(t),e===null&&ux(t);var c=t.type,p=t.pendingProps,g=e!==null?e.memoizedProps:null,E=p.children,I=$C(c,p);return I?E=null:g!==null&&$C(c,g)&&(t.flags|=ci),YT(e,t),qa(e,t,E,s),t.child}function oF(e,t){return e===null&&ux(t),null}function sF(e,t,s,c){ob(e,t);var p=t.pendingProps,g=s,E=g._payload,I=g._init,j=I(E);t.type=j;var P=t.tag=oB(j),B=Ko(j,p),te;switch(P){case C:return TS(t,j),t.type=j=jp(j),te=wS(null,t,j,B,c),te;case x:return t.type=j=nE(j),te=ZT(null,t,j,B,c),te;case H:return t.type=j=rE(j),te=$T(null,t,j,B,c),te;case J:{if(t.type!==t.elementType){var K=j.propTypes;K&&Jo(K,B,"prop",Yt(j))}return te=GT(null,t,j,Ko(j.type,B),c),te}}var ce="";throw j!==null&&typeof j=="object"&&j.$$typeof===vt&&(ce=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+j+". "+("Lazy element type must resolve to a class or function."+ce))}function lF(e,t,s,c,p){ob(e,t),t.tag=x;var g;return Us(s)?(g=!0,my(t)):g=!1,mp(t,p),nT(t,s,c),jx(t,s,c,p),RS(null,t,s,!0,g,p)}function uF(e,t,s,c){ob(e,t);var p=t.pendingProps,g;{var E=cp(t,s,!1);g=fp(t,E)}mp(t,c);var I,j;Eu(t);{if(s.prototype&&typeof s.prototype.render=="function"){var P=Yt(s)||"Unknown";bS[P]||(v("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",P,P),bS[P]=!0)}t.mode&er&&Qo.recordLegacyContextWarning(t,null),Mr(!0),Mh.current=t,I=Ep(null,t,s,p,g,c),j=wp(),Mr(!1)}if(Cl(),t.flags|=Hi,typeof I=="object"&&I!==null&&typeof I.render=="function"&&I.$$typeof===void 0){var B=Yt(s)||"Unknown";Lh[B]||(v("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",B,B,B),Lh[B]=!0)}if(typeof I=="object"&&I!==null&&typeof I.render=="function"&&I.$$typeof===void 0){{var te=Yt(s)||"Unknown";Lh[te]||(v("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",te,te,te),Lh[te]=!0)}t.tag=x,t.memoizedState=null,t.updateQueue=null;var K=!1;return Us(s)?(K=!0,my(t)):K=!1,t.memoizedState=I.state!==null&&I.state!==void 0?I.state:null,bx(t),tT(t,I),jx(t,s,p,c),RS(null,t,s,!0,K,c)}else{if(t.tag=C,t.mode&er){kn(!0);try{I=Ep(null,t,s,p,g,c),j=wp()}finally{kn(!1)}}return sa()&&j&&ax(t),qa(null,t,I,c),TS(t,s),t.child}}function TS(e,t){{if(t&&t.childContextTypes&&v("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),e.ref!==null){var s="",c=si();c&&(s+=`
|
|
190
190
|
|
|
191
|
-
Check the render method of \``+c+"`.");var p=c||"",g=e._debugSource;g&&(p=g.fileName+":"+g.lineNumber),SS[p]||(SS[p]=!0,v("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",s))}if(typeof t.getDerivedStateFromProps=="function"){var E=Yt(t)||"Unknown";xS[E]||(v("%s: Function components do not support getDerivedStateFromProps.",E),xS[E]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var I=Yt(t)||"Unknown";CS[I]||(v("%s: Function components do not support contextType.",I),CS[I]=!0)}}}var IS={dehydrated:null,treeContext:null,retryLane:lr};function NS(e){return{baseLanes:e,cachePool:KP(),transitions:null}}function cF(e,t){var s=null;return{baseLanes:Dt(e.baseLanes,t),cachePool:s,transitions:e.transitions}}function fF(e,t,s,c){if(t!==null){var p=t.memoizedState;if(p===null)return!1}return zx(e,Ih)}function dF(e,t){return uf(e.childLanes,t)}function QT(e,t,s){var c=t.pendingProps;xB(t)&&(t.flags|=Ot);var p=es.current,g=!1,E=(t.flags&Ot)!==ht;if(E||fF(p,e)?(g=!0,t.flags&=~Ot):(e===null||e.memoizedState!==null)&&(p=kP(p,fT)),p=bp(p),nc(t,p),e===null){ux(t);var I=t.memoizedState;if(I!==null){var j=I.dehydrated;if(j!==null)return gF(t,j)}var P=c.children,B=c.fallback;if(g){var te=pF(t,P,B,s),K=t.child;return K.memoizedState=NS(s),t.memoizedState=IS,te}else return _S(t,P)}else{var ce=e.memoizedState;if(ce!==null){var de=ce.dehydrated;if(de!==null)return yF(e,t,E,c,de,ce,s)}if(g){var be=c.fallback,qe=c.children,gt=hF(e,t,qe,be,s),ct=t.child,Wt=e.child.memoizedState;return ct.memoizedState=Wt===null?NS(s):cF(Wt,s),ct.childLanes=dF(e,s),t.memoizedState=IS,gt}else{var Ht=c.children,ie=vF(e,t,Ht,s);return t.memoizedState=null,ie}}}function _S(e,t,s){var c=e.mode,p={mode:"visible",children:t},g=OS(p,c);return g.return=e,e.child=g,g}function pF(e,t,s,c){var p=e.mode,g=e.child,E={mode:"hidden",children:t},I,j;return(p&ut)===mt&&g!==null?(I=g,I.childLanes=Ee,I.pendingProps=E,e.mode&Qt&&(I.actualDuration=0,I.actualStartTime=-1,I.selfBaseDuration=0,I.treeBaseDuration=0),j=cc(s,p,c,null)):(I=OS(E,p),j=cc(s,p,c,null)),I.return=e,j.return=e,I.sibling=j,e.child=I,j}function OS(e,t,s){return KI(e,t,Ee,null)}function KT(e,t){return Vf(e,t)}function vF(e,t,s,c){var p=e.child,g=p.sibling,E=KT(p,{mode:"visible",children:s});if((t.mode&ut)===mt&&(E.lanes=c),E.return=t,E.sibling=null,g!==null){var I=t.deletions;I===null?(t.deletions=[g],t.flags|=tn):I.push(g)}return t.child=E,E}function hF(e,t,s,c,p){var g=t.mode,E=e.child,I=E.sibling,j={mode:"hidden",children:s},P;if((g&ut)===mt&&t.child!==E){var B=t.child;P=B,P.childLanes=Ee,P.pendingProps=j,t.mode&Qt&&(P.actualDuration=0,P.actualStartTime=-1,P.selfBaseDuration=E.selfBaseDuration,P.treeBaseDuration=E.treeBaseDuration),t.deletions=null}else P=KT(E,j),P.subtreeFlags=E.subtreeFlags⪻var te;return I!==null?te=Vf(I,c):(te=cc(c,g,p,null),te.flags|=In),te.return=t,P.return=t,P.sibling=te,t.child=P,te}function ib(e,t,s,c){c!==null&&cx(c),gp(t,e.child,null,s);var p=t.pendingProps,g=p.children,E=_S(t,g);return E.flags|=In,t.memoizedState=null,E}function mF(e,t,s,c,p){var g=t.mode,E={mode:"visible",children:s},I=OS(E,g),j=cc(c,g,p,null);return j.flags|=In,I.return=t,j.return=t,I.sibling=j,t.child=I,(t.mode&ut)!==mt&&gp(t,e.child,null,p),j}function gF(e,t,s){return(e.mode&ut)===mt?(v("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=bt):YC(t)?e.lanes=tr:e.lanes=Ja,null}function yF(e,t,s,c,p,g,E){if(s)if(t.flags&aa){t.flags&=~aa;var ie=mS(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return ib(e,t,E,ie)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=Ot,null;var Ce=c.children,oe=c.fallback,Fe=mF(e,t,Ce,oe,E),Qe=t.child;return Qe.memoizedState=NS(E),t.memoizedState=IS,Fe}else{if(oP(),(t.mode&ut)===mt)return ib(e,t,E,null);if(YC(p)){var I,j,P;{var B=EL(p);I=B.digest,j=B.message,P=B.stack}var te;j?te=new Error(j):te=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var K=mS(te,I,P);return ib(e,t,E,K)}var ce=ja(E,e.childLanes);if(ns||ce){var de=mb();if(de!==null){var be=Ag(de,E);if(be!==lr&&be!==g.retryLane){g.retryLane=be;var qe=Mn;Ei(e,be),Wr(de,e,be,qe)}}qS();var gt=mS(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return ib(e,t,E,gt)}else if(x1(p)){t.flags|=Ot,t.child=e.child;var ct=UV.bind(null,e);return wL(p,ct),null}else{uP(t,p,g.treeContext);var Wt=c.children,Ht=_S(t,Wt);return Ht.flags|=io,Ht}}}function eI(e,t,s){e.lanes=Dt(e.lanes,t);var c=e.alternate;c!==null&&(c.lanes=Dt(c.lanes,t)),hx(e.return,t,s)}function bF(e,t,s){for(var c=t;c!==null;){if(c.tag===U){var p=c.memoizedState;p!==null&&eI(c,s,e)}else if(c.tag===fe)eI(c,s,e);else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)return;for(;c.sibling===null;){if(c.return===null||c.return===e)return;c=c.return}c.sibling.return=c.return,c=c.sibling}}function CF(e){for(var t=e,s=null;t!==null;){var c=t.alternate;c!==null&&Fy(c)===null&&(s=t),t=t.sibling}return s}function xF(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!ES[e])if(ES[e]=!0,typeof e=="string")switch(e.toLowerCase()){case"together":case"forwards":case"backwards":{v('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{v('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break}default:v('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else v('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function SF(e,t){e!==void 0&&!ab[e]&&(e!=="collapsed"&&e!=="hidden"?(ab[e]=!0,v('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(ab[e]=!0,v('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function tI(e,t){{var s=Zt(e),c=!s&&typeof Ki(e)=="function";if(s||c){var p=s?"array":"iterable";return v("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",p,t,p),!1}}return!0}function EF(e,t){if((t==="forwards"||t==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(Zt(e)){for(var s=0;s<e.length;s++)if(!tI(e[s],s))return}else{var c=Ki(e);if(typeof c=="function"){var p=c.call(e);if(p)for(var g=p.next(),E=0;!g.done;g=p.next()){if(!tI(g.value,E))return;E++}}else v('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',t)}}function AS(e,t,s,c,p){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:c,tail:s,tailMode:p}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=c,g.tail=s,g.tailMode=p)}function nI(e,t,s){var c=t.pendingProps,p=c.revealOrder,g=c.tail,E=c.children;xF(p),SF(g,p),EF(E,p),qa(e,t,E,s);var I=es.current,j=zx(I,Ih);if(j)I=Hx(I,Ih),t.flags|=Ot;else{var P=e!==null&&(e.flags&Ot)!==ht;P&&bF(t,t.child,s),I=bp(I)}if(nc(t,I),(t.mode&ut)===mt)t.memoizedState=null;else switch(p){case"forwards":{var B=CF(t.child),te;B===null?(te=t.child,t.child=null):(te=B.sibling,B.sibling=null),AS(t,!1,te,B,g);break}case"backwards":{var K=null,ce=t.child;for(t.child=null;ce!==null;){var de=ce.alternate;if(de!==null&&Fy(de)===null){t.child=ce;break}var be=ce.sibling;ce.sibling=K,K=ce,ce=be}AS(t,!0,K,null,g);break}case"together":{AS(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function wF(e,t,s){Fx(t,t.stateNode.containerInfo);var c=t.pendingProps;return e===null?t.child=gp(t,null,c,s):qa(e,t,c,s),t.child}var rI=!1;function RF(e,t,s){var c=t.type,p=c._context,g=t.pendingProps,E=t.memoizedProps,I=g.value;{"value"in g||rI||(rI=!0,v("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var j=t.type.propTypes;j&&Jo(j,g,"prop","Context.Provider")}if($1(t,p,I),E!==null){var P=E.value;if(rt(P,I)){if(E.children===g.children&&!vy())return Hl(e,t,s)}else bP(t,p,s)}var B=g.children;return qa(e,t,B,s),t.child}var aI=!1;function TF(e,t,s){var c=t.type;c._context===void 0?c!==c.Consumer&&(aI||(aI=!0,v("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):c=c._context;var p=t.pendingProps,g=p.children;typeof g!="function"&&v("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),mp(t,s);var E=jr(c);Eu(t);var I;return Mh.current=t,Mr(!0),I=g(E),Mr(!1),Cl(),t.flags|=Hi,qa(e,t,I,s),t.child}function Ph(){ns=!0}function ob(e,t){(t.mode&ut)===mt&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=In)}function Hl(e,t,s){return e!==null&&(t.dependencies=e.dependencies),VT(),Zh(t.lanes),ja(s,t.childLanes)?(AP(e,t),t.child):null}function IF(e,t,s){{var c=t.return;if(c===null)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,s.index=t.index,s.sibling=t.sibling,s.return=t.return,s.ref=t.ref,t===c.child)c.child=s;else{var p=c.child;if(p===null)throw new Error("Expected parent to have a child.");for(;p.sibling!==t;)if(p=p.sibling,p===null)throw new Error("Expected to find the previous sibling.");p.sibling=s}var g=c.deletions;return g===null?(c.deletions=[e],c.flags|=tn):g.push(e),s.flags|=In,s}}function jS(e,t){var s=e.lanes;return!!ja(s,t)}function NF(e,t,s){switch(t.tag){case T:JT(t),t.stateNode,vp();break;case N:uT(t);break;case x:{var c=t.type;Us(c)&&my(t);break}case A:Fx(t,t.stateNode.containerInfo);break;case V:{var p=t.memoizedProps.value,g=t.type._context;$1(t,g,p);break}case z:{var E=ja(s,t.childLanes);E&&(t.flags|=st);{var I=t.stateNode;I.effectDuration=0,I.passiveEffectDuration=0}}break;case U:{var j=t.memoizedState;if(j!==null){if(j.dehydrated!==null)return nc(t,bp(es.current)),t.flags|=Ot,null;var P=t.child,B=P.childLanes;if(ja(s,B))return QT(e,t,s);nc(t,bp(es.current));var te=Hl(e,t,s);return te!==null?te.sibling:null}else nc(t,bp(es.current));break}case fe:{var K=(e.flags&Ot)!==ht,ce=ja(s,t.childLanes);if(K){if(ce)return nI(e,t,s);t.flags|=Ot}var de=t.memoizedState;if(de!==null&&(de.rendering=null,de.tail=null,de.lastEffect=null),nc(t,es.current),ce)break;return null}case Te:case xe:return t.lanes=Ee,XT(e,t,s)}return Hl(e,t,s)}function iI(e,t,s){if(t._debugNeedsRemount&&e!==null)return IF(e,t,lE(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(e!==null){var c=e.memoizedProps,p=t.pendingProps;if(c!==p||vy()||t.type!==e.type)ns=!0;else{var g=jS(e,s);if(!g&&(t.flags&Ot)===ht)return ns=!1,NF(e,t,s);(e.flags&fd)!==ht?ns=!0:ns=!1}}else if(ns=!1,sa()&&eP(t)){var E=t.index,I=tP();j1(t,I,E)}switch(t.lanes=Ee,t.tag){case w:return uF(e,t,t.type,s);case Re:{var j=t.elementType;return sF(e,t,j,s)}case C:{var P=t.type,B=t.pendingProps,te=t.elementType===P?B:Ko(P,B);return wS(e,t,P,te,s)}case x:{var K=t.type,ce=t.pendingProps,de=t.elementType===K?ce:Ko(K,ce);return ZT(e,t,K,de,s)}case T:return aF(e,t,s);case N:return iF(e,t,s);case O:return oF(e,t);case U:return QT(e,t,s);case A:return wF(e,t,s);case H:{var be=t.type,qe=t.pendingProps,gt=t.elementType===be?qe:Ko(be,qe);return $T(e,t,be,gt,s)}case _:return tF(e,t,s);case L:return nF(e,t,s);case z:return rF(e,t,s);case V:return RF(e,t,s);case F:return TF(e,t,s);case J:{var ct=t.type,Wt=t.pendingProps,Ht=Ko(ct,Wt);if(t.type!==t.elementType){var ie=ct.propTypes;ie&&Jo(ie,Ht,"prop",Yt(ct))}return Ht=Ko(ct.type,Ht),GT(e,t,ct,Ht,s)}case q:return WT(e,t,t.type,t.pendingProps,s);case he:{var Ce=t.type,oe=t.pendingProps,Fe=t.elementType===Ce?oe:Ko(Ce,oe);return lF(e,t,Ce,Fe,s)}case fe:return nI(e,t,s);case Oe:break;case Te:return XT(e,t,s)}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Rp(e){e.flags|=st}function oI(e){e.flags|=Wa,e.flags|=oo}var sI,DS,lI,uI;sI=function(e,t,s,c){for(var p=t.child;p!==null;){if(p.tag===N||p.tag===O)qM(e,p.stateNode);else if(p.tag!==A){if(p.child!==null){p.child.return=p,p=p.child;continue}}if(p===t)return;for(;p.sibling===null;){if(p.return===null||p.return===t)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},DS=function(e,t){},lI=function(e,t,s,c,p){var g=e.memoizedProps;if(g!==c){var E=t.stateNode,I=Vx(),j=KM(E,s,g,c,p,I);t.updateQueue=j,j&&Rp(t)}},uI=function(e,t,s,c){s!==c&&Rp(t)};function Fh(e,t){if(!sa())switch(e.tailMode){case"hidden":{for(var s=e.tail,c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?e.tail=null:c.sibling=null;break}case"collapsed":{for(var p=e.tail,g=null;p!==null;)p.alternate!==null&&(g=p),p=p.sibling;g===null?!t&&e.tail!==null?e.tail.sibling=null:e.tail=null:g.sibling=null;break}}}function ua(e){var t=e.alternate!==null&&e.alternate.child===e.child,s=Ee,c=ht;if(t){if((e.mode&Qt)!==mt){for(var j=e.selfBaseDuration,P=e.child;P!==null;)s=Dt(s,Dt(P.lanes,P.childLanes)),c|=P.subtreeFlags&Pr,c|=P.flags&Pr,j+=P.treeBaseDuration,P=P.sibling;e.treeBaseDuration=j}else for(var B=e.child;B!==null;)s=Dt(s,Dt(B.lanes,B.childLanes)),c|=B.subtreeFlags&Pr,c|=B.flags&Pr,B.return=e,B=B.sibling;e.subtreeFlags|=c}else{if((e.mode&Qt)!==mt){for(var p=e.actualDuration,g=e.selfBaseDuration,E=e.child;E!==null;)s=Dt(s,Dt(E.lanes,E.childLanes)),c|=E.subtreeFlags,c|=E.flags,p+=E.actualDuration,g+=E.treeBaseDuration,E=E.sibling;e.actualDuration=p,e.treeBaseDuration=g}else for(var I=e.child;I!==null;)s=Dt(s,Dt(I.lanes,I.childLanes)),c|=I.subtreeFlags,c|=I.flags,I.return=e,I=I.sibling;e.subtreeFlags|=c}return e.childLanes=s,t}function _F(e,t,s){if(vP()&&(t.mode&ut)!==mt&&(t.flags&Ot)===ht)return V1(t),vp(),t.flags|=aa|Is|Lr,!1;var c=xy(t);if(s!==null&&s.dehydrated!==null)if(e===null){if(!c)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(dP(t),ua(t),(t.mode&Qt)!==mt){var p=s!==null;if(p){var g=t.child;g!==null&&(t.treeBaseDuration-=g.treeBaseDuration)}}return!1}else{if(vp(),(t.flags&Ot)===ht&&(t.memoizedState=null),t.flags|=st,ua(t),(t.mode&Qt)!==mt){var E=s!==null;if(E){var I=t.child;I!==null&&(t.treeBaseDuration-=I.treeBaseDuration)}}return!1}else return B1(),!0}function cI(e,t,s){var c=t.pendingProps;switch(ix(t),t.tag){case w:case Re:case q:case C:case H:case _:case L:case z:case F:case J:return ua(t),null;case x:{var p=t.type;return Us(p)&&hy(t),ua(t),null}case T:{var g=t.stateNode;if(yp(t),tx(t),$x(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),e===null||e.child===null){var E=xy(t);if(E)Rp(t);else if(e!==null){var I=e.memoizedState;(!I.isDehydrated||(t.flags&aa)!==ht)&&(t.flags|=vr,B1())}}return DS(e,t),ua(t),null}case N:{Bx(t);var j=lT(),P=t.type;if(e!==null&&t.stateNode!=null)lI(e,t,P,c,j),e.ref!==t.ref&&oI(t);else{if(!c){if(t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return ua(t),null}var B=Vx(),te=xy(t);if(te)cP(t,j,B)&&Rp(t);else{var K=JM(P,c,j,B,t);sI(K,t,!1,!1),t.stateNode=K,QM(K,P,c,j)&&Rp(t)}t.ref!==null&&oI(t)}return ua(t),null}case O:{var ce=c;if(e&&t.stateNode!=null){var de=e.memoizedProps;uI(e,t,de,ce)}else{if(typeof ce!="string"&&t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var be=lT(),qe=Vx(),gt=xy(t);gt?fP(t)&&Rp(t):t.stateNode=eL(ce,be,qe,t)}return ua(t),null}case U:{Cp(t);var ct=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var Wt=_F(e,t,ct);if(!Wt)return t.flags&Lr?t:null}if((t.flags&Ot)!==ht)return t.lanes=s,(t.mode&Qt)!==mt&&hS(t),t;var Ht=ct!==null,ie=e!==null&&e.memoizedState!==null;if(Ht!==ie&&Ht){var Ce=t.child;if(Ce.flags|=Ts,(t.mode&ut)!==mt){var oe=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!re);oe||zx(es.current,fT)?OV():qS()}}var Fe=t.updateQueue;if(Fe!==null&&(t.flags|=st),ua(t),(t.mode&Qt)!==mt&&Ht){var Qe=t.child;Qe!==null&&(t.treeBaseDuration-=Qe.treeBaseDuration)}return null}case A:return yp(t),DS(e,t),e===null&&XL(t.stateNode.containerInfo),ua(t),null;case V:var Xe=t.type._context;return vx(Xe,t),ua(t),null;case he:{var Tt=t.type;return Us(Tt)&&hy(t),ua(t),null}case fe:{Cp(t);var jt=t.memoizedState;if(jt===null)return ua(t),null;var Sn=(t.flags&Ot)!==ht,rn=jt.rendering;if(rn===null)if(Sn)Fh(jt,!1);else{var Er=jV()&&(e===null||(e.flags&Ot)===ht);if(!Er)for(var an=t.child;an!==null;){var mr=Fy(an);if(mr!==null){Sn=!0,t.flags|=Ot,Fh(jt,!1);var Pa=mr.updateQueue;return Pa!==null&&(t.updateQueue=Pa,t.flags|=st),t.subtreeFlags=ht,jP(t,s),nc(t,Hx(es.current,Ih)),t.child}an=an.sibling}jt.tail!==null&&hr()>AI()&&(t.flags|=Ot,Sn=!0,Fh(jt,!1),t.lanes=Lv)}else{if(!Sn){var va=Fy(rn);if(va!==null){t.flags|=Ot,Sn=!0;var Wi=va.updateQueue;if(Wi!==null&&(t.updateQueue=Wi,t.flags|=st),Fh(jt,!0),jt.tail===null&&jt.tailMode==="hidden"&&!rn.alternate&&!sa())return ua(t),null}else hr()*2-jt.renderingStartTime>AI()&&s!==Ja&&(t.flags|=Ot,Sn=!0,Fh(jt,!1),t.lanes=Lv)}if(jt.isBackwards)rn.sibling=t.child,t.child=rn;else{var ei=jt.last;ei!==null?ei.sibling=rn:t.child=rn,jt.last=rn}}if(jt.tail!==null){var ti=jt.tail;jt.rendering=ti,jt.tail=ti.sibling,jt.renderingStartTime=hr(),ti.sibling=null;var Fa=es.current;return Sn?Fa=Hx(Fa,Ih):Fa=bp(Fa),nc(t,Fa),ti}return ua(t),null}case Oe:break;case Te:case xe:{JS(t);var Xl=t.memoizedState,Dp=Xl!==null;if(e!==null){var em=e.memoizedState,qs=em!==null;qs!==Dp&&!Y&&(t.flags|=Ts)}return!Dp||(t.mode&ut)===mt?ua(t):ja(Js,Ja)&&(ua(t),t.subtreeFlags&(In|st)&&(t.flags|=Ts)),null}case je:return null;case Le:return null}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function OF(e,t,s){switch(ix(t),t.tag){case x:{var c=t.type;Us(c)&&hy(t);var p=t.flags;return p&Lr?(t.flags=p&~Lr|Ot,(t.mode&Qt)!==mt&&hS(t),t):null}case T:{t.stateNode,yp(t),tx(t),$x();var g=t.flags;return(g&Lr)!==ht&&(g&Ot)===ht?(t.flags=g&~Lr|Ot,t):null}case N:return Bx(t),null;case U:{Cp(t);var E=t.memoizedState;if(E!==null&&E.dehydrated!==null){if(t.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");vp()}var I=t.flags;return I&Lr?(t.flags=I&~Lr|Ot,(t.mode&Qt)!==mt&&hS(t),t):null}case fe:return Cp(t),null;case A:return yp(t),null;case V:var j=t.type._context;return vx(j,t),null;case Te:case xe:return JS(t),null;case je:return null;default:return null}}function fI(e,t,s){switch(ix(t),t.tag){case x:{var c=t.type.childContextTypes;c!=null&&hy(t);break}case T:{t.stateNode,yp(t),tx(t),$x();break}case N:{Bx(t);break}case A:yp(t);break;case U:Cp(t);break;case fe:Cp(t);break;case V:var p=t.type._context;vx(p,t);break;case Te:case xe:JS(t);break}}var dI=null;dI=new Set;var sb=!1,ca=!1,AF=typeof WeakSet=="function"?WeakSet:Set,at=null,Tp=null,Ip=null;function jF(e){zi(null,function(){throw e}),Ho()}var DF=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&Qt)try{Ys(),t.componentWillUnmount()}finally{Xs(e)}else t.componentWillUnmount()};function pI(e,t){try{ic(Br,e)}catch(s){Hn(e,t,s)}}function kS(e,t,s){try{DF(e,s)}catch(c){Hn(e,t,c)}}function kF(e,t,s){try{s.componentDidMount()}catch(c){Hn(e,t,c)}}function vI(e,t){try{mI(e)}catch(s){Hn(e,t,s)}}function Np(e,t){var s=e.ref;if(s!==null)if(typeof s=="function"){var c;try{if(ve&&we&&e.mode&Qt)try{Ys(),c=s(null)}finally{Xs(e)}else c=s(null)}catch(p){Hn(e,t,p)}typeof c=="function"&&v("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Nt(e))}else s.current=null}function lb(e,t,s){try{s()}catch(c){Hn(e,t,c)}}var hI=!1;function MF(e,t){YM(e.containerInfo),at=t,LF();var s=hI;return hI=!1,s}function LF(){for(;at!==null;){var e=at,t=e.child;(e.subtreeFlags&Ra)!==ht&&t!==null?(t.return=e,at=t):PF()}}function PF(){for(;at!==null;){var e=at;Xn(e);try{FF(e)}catch(s){Hn(e,e.return,s)}Fn();var t=e.sibling;if(t!==null){t.return=e.return,at=t;return}at=e.return}}function FF(e){var t=e.alternate,s=e.flags;if((s&vr)!==ht){switch(Xn(e),e.tag){case C:case H:case q:break;case x:{if(t!==null){var c=t.memoizedProps,p=t.memoizedState,g=e.stateNode;e.type===e.elementType&&!kf&&(g.props!==e.memoizedProps&&v("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Nt(e)||"instance"),g.state!==e.memoizedState&&v("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Nt(e)||"instance"));var E=g.getSnapshotBeforeUpdate(e.elementType===e.type?c:Ko(e.type,c),p);{var I=dI;E===void 0&&!I.has(e.type)&&(I.add(e.type),v("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Nt(e)))}g.__reactInternalSnapshotBeforeUpdate=E}break}case T:{{var j=e.stateNode;bL(j.containerInfo)}break}case N:case O:case A:case he:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Fn()}}function rs(e,t,s){var c=t.updateQueue,p=c!==null?c.lastEffect:null;if(p!==null){var g=p.next,E=g;do{if((E.tag&e)===e){var I=E.destroy;E.destroy=void 0,I!==void 0&&((e&la)!==wi?gg(t):(e&Br)!==wi&&wu(t),(e&$s)!==wi&&qh(!0),lb(t,s,I),(e&$s)!==wi&&qh(!1),(e&la)!==wi?yg():(e&Br)!==wi&&qc())}E=E.next}while(E!==g)}}function ic(e,t){var s=t.updateQueue,c=s!==null?s.lastEffect:null;if(c!==null){var p=c.next,g=p;do{if((g.tag&e)===e){(e&la)!==wi?jv(t):(e&Br)!==wi&&bg(t);var E=g.create;(e&$s)!==wi&&qh(!0),g.destroy=E(),(e&$s)!==wi&&qh(!1),(e&la)!==wi?gd():(e&Br)!==wi&&Dv();{var I=g.destroy;if(I!==void 0&&typeof I!="function"){var j=void 0;(g.tag&Br)!==ht?j="useLayoutEffect":(g.tag&$s)!==ht?j="useInsertionEffect":j="useEffect";var P=void 0;I===null?P=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof I.then=="function"?P=`
|
|
191
|
+
Check the render method of \``+c+"`.");var p=c||"",g=e._debugSource;g&&(p=g.fileName+":"+g.lineNumber),SS[p]||(SS[p]=!0,v("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",s))}if(typeof t.getDerivedStateFromProps=="function"){var E=Yt(t)||"Unknown";xS[E]||(v("%s: Function components do not support getDerivedStateFromProps.",E),xS[E]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var I=Yt(t)||"Unknown";CS[I]||(v("%s: Function components do not support contextType.",I),CS[I]=!0)}}}var IS={dehydrated:null,treeContext:null,retryLane:lr};function NS(e){return{baseLanes:e,cachePool:KP(),transitions:null}}function cF(e,t){var s=null;return{baseLanes:Dt(e.baseLanes,t),cachePool:s,transitions:e.transitions}}function fF(e,t,s,c){if(t!==null){var p=t.memoizedState;if(p===null)return!1}return zx(e,Ih)}function dF(e,t){return uf(e.childLanes,t)}function QT(e,t,s){var c=t.pendingProps;xB(t)&&(t.flags|=Ot);var p=es.current,g=!1,E=(t.flags&Ot)!==ht;if(E||fF(p,e)?(g=!0,t.flags&=~Ot):(e===null||e.memoizedState!==null)&&(p=kP(p,fT)),p=bp(p),nc(t,p),e===null){ux(t);var I=t.memoizedState;if(I!==null){var j=I.dehydrated;if(j!==null)return gF(t,j)}var P=c.children,B=c.fallback;if(g){var te=pF(t,P,B,s),K=t.child;return K.memoizedState=NS(s),t.memoizedState=IS,te}else return _S(t,P)}else{var ce=e.memoizedState;if(ce!==null){var de=ce.dehydrated;if(de!==null)return yF(e,t,E,c,de,ce,s)}if(g){var be=c.fallback,qe=c.children,gt=hF(e,t,qe,be,s),ct=t.child,Wt=e.child.memoizedState;return ct.memoizedState=Wt===null?NS(s):cF(Wt,s),ct.childLanes=dF(e,s),t.memoizedState=IS,gt}else{var Ht=c.children,ie=vF(e,t,Ht,s);return t.memoizedState=null,ie}}}function _S(e,t,s){var c=e.mode,p={mode:"visible",children:t},g=OS(p,c);return g.return=e,e.child=g,g}function pF(e,t,s,c){var p=e.mode,g=e.child,E={mode:"hidden",children:t},I,j;return(p&ut)===mt&&g!==null?(I=g,I.childLanes=Ee,I.pendingProps=E,e.mode&Qt&&(I.actualDuration=0,I.actualStartTime=-1,I.selfBaseDuration=0,I.treeBaseDuration=0),j=cc(s,p,c,null)):(I=OS(E,p),j=cc(s,p,c,null)),I.return=e,j.return=e,I.sibling=j,e.child=I,j}function OS(e,t,s){return KI(e,t,Ee,null)}function KT(e,t){return Vf(e,t)}function vF(e,t,s,c){var p=e.child,g=p.sibling,E=KT(p,{mode:"visible",children:s});if((t.mode&ut)===mt&&(E.lanes=c),E.return=t,E.sibling=null,g!==null){var I=t.deletions;I===null?(t.deletions=[g],t.flags|=tn):I.push(g)}return t.child=E,E}function hF(e,t,s,c,p){var g=t.mode,E=e.child,I=E.sibling,j={mode:"hidden",children:s},P;if((g&ut)===mt&&t.child!==E){var B=t.child;P=B,P.childLanes=Ee,P.pendingProps=j,t.mode&Qt&&(P.actualDuration=0,P.actualStartTime=-1,P.selfBaseDuration=E.selfBaseDuration,P.treeBaseDuration=E.treeBaseDuration),t.deletions=null}else P=KT(E,j),P.subtreeFlags=E.subtreeFlags⪻var te;return I!==null?te=Vf(I,c):(te=cc(c,g,p,null),te.flags|=In),te.return=t,P.return=t,P.sibling=te,t.child=P,te}function ib(e,t,s,c){c!==null&&cx(c),gp(t,e.child,null,s);var p=t.pendingProps,g=p.children,E=_S(t,g);return E.flags|=In,t.memoizedState=null,E}function mF(e,t,s,c,p){var g=t.mode,E={mode:"visible",children:s},I=OS(E,g),j=cc(c,g,p,null);return j.flags|=In,I.return=t,j.return=t,I.sibling=j,t.child=I,(t.mode&ut)!==mt&&gp(t,e.child,null,p),j}function gF(e,t,s){return(e.mode&ut)===mt?(v("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=bt):YC(t)?e.lanes=tr:e.lanes=Ja,null}function yF(e,t,s,c,p,g,E){if(s)if(t.flags&aa){t.flags&=~aa;var ie=mS(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return ib(e,t,E,ie)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=Ot,null;var Ce=c.children,oe=c.fallback,Fe=mF(e,t,Ce,oe,E),Qe=t.child;return Qe.memoizedState=NS(E),t.memoizedState=IS,Fe}else{if(oP(),(t.mode&ut)===mt)return ib(e,t,E,null);if(YC(p)){var I,j,P;{var B=EL(p);I=B.digest,j=B.message,P=B.stack}var te;j?te=new Error(j):te=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var K=mS(te,I,P);return ib(e,t,E,K)}var ce=ja(E,e.childLanes);if(ns||ce){var de=mb();if(de!==null){var be=Ag(de,E);if(be!==lr&&be!==g.retryLane){g.retryLane=be;var qe=Mn;Ei(e,be),Wr(de,e,be,qe)}}qS();var gt=mS(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return ib(e,t,E,gt)}else if(x1(p)){t.flags|=Ot,t.child=e.child;var ct=UV.bind(null,e);return wL(p,ct),null}else{uP(t,p,g.treeContext);var Wt=c.children,Ht=_S(t,Wt);return Ht.flags|=io,Ht}}}function eI(e,t,s){e.lanes=Dt(e.lanes,t);var c=e.alternate;c!==null&&(c.lanes=Dt(c.lanes,t)),hx(e.return,t,s)}function bF(e,t,s){for(var c=t;c!==null;){if(c.tag===U){var p=c.memoizedState;p!==null&&eI(c,s,e)}else if(c.tag===fe)eI(c,s,e);else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)return;for(;c.sibling===null;){if(c.return===null||c.return===e)return;c=c.return}c.sibling.return=c.return,c=c.sibling}}function CF(e){for(var t=e,s=null;t!==null;){var c=t.alternate;c!==null&&Fy(c)===null&&(s=t),t=t.sibling}return s}function xF(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!ES[e])if(ES[e]=!0,typeof e=="string")switch(e.toLowerCase()){case"together":case"forwards":case"backwards":{v('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{v('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break}default:v('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else v('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function SF(e,t){e!==void 0&&!ab[e]&&(e!=="collapsed"&&e!=="hidden"?(ab[e]=!0,v('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(ab[e]=!0,v('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function tI(e,t){{var s=Zt(e),c=!s&&typeof Ki(e)=="function";if(s||c){var p=s?"array":"iterable";return v("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",p,t,p),!1}}return!0}function EF(e,t){if((t==="forwards"||t==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(Zt(e)){for(var s=0;s<e.length;s++)if(!tI(e[s],s))return}else{var c=Ki(e);if(typeof c=="function"){var p=c.call(e);if(p)for(var g=p.next(),E=0;!g.done;g=p.next()){if(!tI(g.value,E))return;E++}}else v('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',t)}}function AS(e,t,s,c,p){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:c,tail:s,tailMode:p}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=c,g.tail=s,g.tailMode=p)}function nI(e,t,s){var c=t.pendingProps,p=c.revealOrder,g=c.tail,E=c.children;xF(p),SF(g,p),EF(E,p),qa(e,t,E,s);var I=es.current,j=zx(I,Ih);if(j)I=Hx(I,Ih),t.flags|=Ot;else{var P=e!==null&&(e.flags&Ot)!==ht;P&&bF(t,t.child,s),I=bp(I)}if(nc(t,I),(t.mode&ut)===mt)t.memoizedState=null;else switch(p){case"forwards":{var B=CF(t.child),te;B===null?(te=t.child,t.child=null):(te=B.sibling,B.sibling=null),AS(t,!1,te,B,g);break}case"backwards":{var K=null,ce=t.child;for(t.child=null;ce!==null;){var de=ce.alternate;if(de!==null&&Fy(de)===null){t.child=ce;break}var be=ce.sibling;ce.sibling=K,K=ce,ce=be}AS(t,!0,K,null,g);break}case"together":{AS(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function wF(e,t,s){Fx(t,t.stateNode.containerInfo);var c=t.pendingProps;return e===null?t.child=gp(t,null,c,s):qa(e,t,c,s),t.child}var rI=!1;function RF(e,t,s){var c=t.type,p=c._context,g=t.pendingProps,E=t.memoizedProps,I=g.value;{"value"in g||rI||(rI=!0,v("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var j=t.type.propTypes;j&&Jo(j,g,"prop","Context.Provider")}if($1(t,p,I),E!==null){var P=E.value;if(rt(P,I)){if(E.children===g.children&&!vy())return Hl(e,t,s)}else bP(t,p,s)}var B=g.children;return qa(e,t,B,s),t.child}var aI=!1;function TF(e,t,s){var c=t.type;c._context===void 0?c!==c.Consumer&&(aI||(aI=!0,v("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):c=c._context;var p=t.pendingProps,g=p.children;typeof g!="function"&&v("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),mp(t,s);var E=jr(c);Eu(t);var I;return Mh.current=t,Mr(!0),I=g(E),Mr(!1),Cl(),t.flags|=Hi,qa(e,t,I,s),t.child}function Ph(){ns=!0}function ob(e,t){(t.mode&ut)===mt&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=In)}function Hl(e,t,s){return e!==null&&(t.dependencies=e.dependencies),VT(),Zh(t.lanes),ja(s,t.childLanes)?(AP(e,t),t.child):null}function IF(e,t,s){{var c=t.return;if(c===null)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,s.index=t.index,s.sibling=t.sibling,s.return=t.return,s.ref=t.ref,t===c.child)c.child=s;else{var p=c.child;if(p===null)throw new Error("Expected parent to have a child.");for(;p.sibling!==t;)if(p=p.sibling,p===null)throw new Error("Expected to find the previous sibling.");p.sibling=s}var g=c.deletions;return g===null?(c.deletions=[e],c.flags|=tn):g.push(e),s.flags|=In,s}}function jS(e,t){var s=e.lanes;return!!ja(s,t)}function NF(e,t,s){switch(t.tag){case T:JT(t),t.stateNode,vp();break;case N:uT(t);break;case x:{var c=t.type;Us(c)&&my(t);break}case A:Fx(t,t.stateNode.containerInfo);break;case V:{var p=t.memoizedProps.value,g=t.type._context;$1(t,g,p);break}case z:{var E=ja(s,t.childLanes);E&&(t.flags|=st);{var I=t.stateNode;I.effectDuration=0,I.passiveEffectDuration=0}}break;case U:{var j=t.memoizedState;if(j!==null){if(j.dehydrated!==null)return nc(t,bp(es.current)),t.flags|=Ot,null;var P=t.child,B=P.childLanes;if(ja(s,B))return QT(e,t,s);nc(t,bp(es.current));var te=Hl(e,t,s);return te!==null?te.sibling:null}else nc(t,bp(es.current));break}case fe:{var K=(e.flags&Ot)!==ht,ce=ja(s,t.childLanes);if(K){if(ce)return nI(e,t,s);t.flags|=Ot}var de=t.memoizedState;if(de!==null&&(de.rendering=null,de.tail=null,de.lastEffect=null),nc(t,es.current),ce)break;return null}case Te:case xe:return t.lanes=Ee,XT(e,t,s)}return Hl(e,t,s)}function iI(e,t,s){if(t._debugNeedsRemount&&e!==null)return IF(e,t,lE(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(e!==null){var c=e.memoizedProps,p=t.pendingProps;if(c!==p||vy()||t.type!==e.type)ns=!0;else{var g=jS(e,s);if(!g&&(t.flags&Ot)===ht)return ns=!1,NF(e,t,s);(e.flags&fd)!==ht?ns=!0:ns=!1}}else if(ns=!1,sa()&&eP(t)){var E=t.index,I=tP();j1(t,I,E)}switch(t.lanes=Ee,t.tag){case R:return uF(e,t,t.type,s);case Re:{var j=t.elementType;return sF(e,t,j,s)}case C:{var P=t.type,B=t.pendingProps,te=t.elementType===P?B:Ko(P,B);return wS(e,t,P,te,s)}case x:{var K=t.type,ce=t.pendingProps,de=t.elementType===K?ce:Ko(K,ce);return ZT(e,t,K,de,s)}case T:return aF(e,t,s);case N:return iF(e,t,s);case O:return oF(e,t);case U:return QT(e,t,s);case A:return wF(e,t,s);case H:{var be=t.type,qe=t.pendingProps,gt=t.elementType===be?qe:Ko(be,qe);return $T(e,t,be,gt,s)}case _:return tF(e,t,s);case L:return nF(e,t,s);case z:return rF(e,t,s);case V:return RF(e,t,s);case F:return TF(e,t,s);case J:{var ct=t.type,Wt=t.pendingProps,Ht=Ko(ct,Wt);if(t.type!==t.elementType){var ie=ct.propTypes;ie&&Jo(ie,Ht,"prop",Yt(ct))}return Ht=Ko(ct.type,Ht),GT(e,t,ct,Ht,s)}case q:return WT(e,t,t.type,t.pendingProps,s);case he:{var Ce=t.type,oe=t.pendingProps,Fe=t.elementType===Ce?oe:Ko(Ce,oe);return lF(e,t,Ce,Fe,s)}case fe:return nI(e,t,s);case Oe:break;case Te:return XT(e,t,s)}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Rp(e){e.flags|=st}function oI(e){e.flags|=Wa,e.flags|=oo}var sI,DS,lI,uI;sI=function(e,t,s,c){for(var p=t.child;p!==null;){if(p.tag===N||p.tag===O)qM(e,p.stateNode);else if(p.tag!==A){if(p.child!==null){p.child.return=p,p=p.child;continue}}if(p===t)return;for(;p.sibling===null;){if(p.return===null||p.return===t)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},DS=function(e,t){},lI=function(e,t,s,c,p){var g=e.memoizedProps;if(g!==c){var E=t.stateNode,I=Vx(),j=KM(E,s,g,c,p,I);t.updateQueue=j,j&&Rp(t)}},uI=function(e,t,s,c){s!==c&&Rp(t)};function Fh(e,t){if(!sa())switch(e.tailMode){case"hidden":{for(var s=e.tail,c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?e.tail=null:c.sibling=null;break}case"collapsed":{for(var p=e.tail,g=null;p!==null;)p.alternate!==null&&(g=p),p=p.sibling;g===null?!t&&e.tail!==null?e.tail.sibling=null:e.tail=null:g.sibling=null;break}}}function ua(e){var t=e.alternate!==null&&e.alternate.child===e.child,s=Ee,c=ht;if(t){if((e.mode&Qt)!==mt){for(var j=e.selfBaseDuration,P=e.child;P!==null;)s=Dt(s,Dt(P.lanes,P.childLanes)),c|=P.subtreeFlags&Pr,c|=P.flags&Pr,j+=P.treeBaseDuration,P=P.sibling;e.treeBaseDuration=j}else for(var B=e.child;B!==null;)s=Dt(s,Dt(B.lanes,B.childLanes)),c|=B.subtreeFlags&Pr,c|=B.flags&Pr,B.return=e,B=B.sibling;e.subtreeFlags|=c}else{if((e.mode&Qt)!==mt){for(var p=e.actualDuration,g=e.selfBaseDuration,E=e.child;E!==null;)s=Dt(s,Dt(E.lanes,E.childLanes)),c|=E.subtreeFlags,c|=E.flags,p+=E.actualDuration,g+=E.treeBaseDuration,E=E.sibling;e.actualDuration=p,e.treeBaseDuration=g}else for(var I=e.child;I!==null;)s=Dt(s,Dt(I.lanes,I.childLanes)),c|=I.subtreeFlags,c|=I.flags,I.return=e,I=I.sibling;e.subtreeFlags|=c}return e.childLanes=s,t}function _F(e,t,s){if(vP()&&(t.mode&ut)!==mt&&(t.flags&Ot)===ht)return V1(t),vp(),t.flags|=aa|Is|Lr,!1;var c=xy(t);if(s!==null&&s.dehydrated!==null)if(e===null){if(!c)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(dP(t),ua(t),(t.mode&Qt)!==mt){var p=s!==null;if(p){var g=t.child;g!==null&&(t.treeBaseDuration-=g.treeBaseDuration)}}return!1}else{if(vp(),(t.flags&Ot)===ht&&(t.memoizedState=null),t.flags|=st,ua(t),(t.mode&Qt)!==mt){var E=s!==null;if(E){var I=t.child;I!==null&&(t.treeBaseDuration-=I.treeBaseDuration)}}return!1}else return B1(),!0}function cI(e,t,s){var c=t.pendingProps;switch(ix(t),t.tag){case R:case Re:case q:case C:case H:case _:case L:case z:case F:case J:return ua(t),null;case x:{var p=t.type;return Us(p)&&hy(t),ua(t),null}case T:{var g=t.stateNode;if(yp(t),tx(t),$x(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),e===null||e.child===null){var E=xy(t);if(E)Rp(t);else if(e!==null){var I=e.memoizedState;(!I.isDehydrated||(t.flags&aa)!==ht)&&(t.flags|=vr,B1())}}return DS(e,t),ua(t),null}case N:{Bx(t);var j=lT(),P=t.type;if(e!==null&&t.stateNode!=null)lI(e,t,P,c,j),e.ref!==t.ref&&oI(t);else{if(!c){if(t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return ua(t),null}var B=Vx(),te=xy(t);if(te)cP(t,j,B)&&Rp(t);else{var K=JM(P,c,j,B,t);sI(K,t,!1,!1),t.stateNode=K,QM(K,P,c,j)&&Rp(t)}t.ref!==null&&oI(t)}return ua(t),null}case O:{var ce=c;if(e&&t.stateNode!=null){var de=e.memoizedProps;uI(e,t,de,ce)}else{if(typeof ce!="string"&&t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var be=lT(),qe=Vx(),gt=xy(t);gt?fP(t)&&Rp(t):t.stateNode=eL(ce,be,qe,t)}return ua(t),null}case U:{Cp(t);var ct=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var Wt=_F(e,t,ct);if(!Wt)return t.flags&Lr?t:null}if((t.flags&Ot)!==ht)return t.lanes=s,(t.mode&Qt)!==mt&&hS(t),t;var Ht=ct!==null,ie=e!==null&&e.memoizedState!==null;if(Ht!==ie&&Ht){var Ce=t.child;if(Ce.flags|=Ts,(t.mode&ut)!==mt){var oe=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!re);oe||zx(es.current,fT)?OV():qS()}}var Fe=t.updateQueue;if(Fe!==null&&(t.flags|=st),ua(t),(t.mode&Qt)!==mt&&Ht){var Qe=t.child;Qe!==null&&(t.treeBaseDuration-=Qe.treeBaseDuration)}return null}case A:return yp(t),DS(e,t),e===null&&XL(t.stateNode.containerInfo),ua(t),null;case V:var Xe=t.type._context;return vx(Xe,t),ua(t),null;case he:{var Tt=t.type;return Us(Tt)&&hy(t),ua(t),null}case fe:{Cp(t);var jt=t.memoizedState;if(jt===null)return ua(t),null;var Sn=(t.flags&Ot)!==ht,rn=jt.rendering;if(rn===null)if(Sn)Fh(jt,!1);else{var Er=jV()&&(e===null||(e.flags&Ot)===ht);if(!Er)for(var an=t.child;an!==null;){var mr=Fy(an);if(mr!==null){Sn=!0,t.flags|=Ot,Fh(jt,!1);var Pa=mr.updateQueue;return Pa!==null&&(t.updateQueue=Pa,t.flags|=st),t.subtreeFlags=ht,jP(t,s),nc(t,Hx(es.current,Ih)),t.child}an=an.sibling}jt.tail!==null&&hr()>AI()&&(t.flags|=Ot,Sn=!0,Fh(jt,!1),t.lanes=Lv)}else{if(!Sn){var va=Fy(rn);if(va!==null){t.flags|=Ot,Sn=!0;var Wi=va.updateQueue;if(Wi!==null&&(t.updateQueue=Wi,t.flags|=st),Fh(jt,!0),jt.tail===null&&jt.tailMode==="hidden"&&!rn.alternate&&!sa())return ua(t),null}else hr()*2-jt.renderingStartTime>AI()&&s!==Ja&&(t.flags|=Ot,Sn=!0,Fh(jt,!1),t.lanes=Lv)}if(jt.isBackwards)rn.sibling=t.child,t.child=rn;else{var ei=jt.last;ei!==null?ei.sibling=rn:t.child=rn,jt.last=rn}}if(jt.tail!==null){var ti=jt.tail;jt.rendering=ti,jt.tail=ti.sibling,jt.renderingStartTime=hr(),ti.sibling=null;var Fa=es.current;return Sn?Fa=Hx(Fa,Ih):Fa=bp(Fa),nc(t,Fa),ti}return ua(t),null}case Oe:break;case Te:case xe:{JS(t);var Xl=t.memoizedState,Dp=Xl!==null;if(e!==null){var em=e.memoizedState,qs=em!==null;qs!==Dp&&!Y&&(t.flags|=Ts)}return!Dp||(t.mode&ut)===mt?ua(t):ja(Js,Ja)&&(ua(t),t.subtreeFlags&(In|st)&&(t.flags|=Ts)),null}case je:return null;case Le:return null}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function OF(e,t,s){switch(ix(t),t.tag){case x:{var c=t.type;Us(c)&&hy(t);var p=t.flags;return p&Lr?(t.flags=p&~Lr|Ot,(t.mode&Qt)!==mt&&hS(t),t):null}case T:{t.stateNode,yp(t),tx(t),$x();var g=t.flags;return(g&Lr)!==ht&&(g&Ot)===ht?(t.flags=g&~Lr|Ot,t):null}case N:return Bx(t),null;case U:{Cp(t);var E=t.memoizedState;if(E!==null&&E.dehydrated!==null){if(t.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");vp()}var I=t.flags;return I&Lr?(t.flags=I&~Lr|Ot,(t.mode&Qt)!==mt&&hS(t),t):null}case fe:return Cp(t),null;case A:return yp(t),null;case V:var j=t.type._context;return vx(j,t),null;case Te:case xe:return JS(t),null;case je:return null;default:return null}}function fI(e,t,s){switch(ix(t),t.tag){case x:{var c=t.type.childContextTypes;c!=null&&hy(t);break}case T:{t.stateNode,yp(t),tx(t),$x();break}case N:{Bx(t);break}case A:yp(t);break;case U:Cp(t);break;case fe:Cp(t);break;case V:var p=t.type._context;vx(p,t);break;case Te:case xe:JS(t);break}}var dI=null;dI=new Set;var sb=!1,ca=!1,AF=typeof WeakSet=="function"?WeakSet:Set,at=null,Tp=null,Ip=null;function jF(e){zi(null,function(){throw e}),Ho()}var DF=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&Qt)try{Ys(),t.componentWillUnmount()}finally{Xs(e)}else t.componentWillUnmount()};function pI(e,t){try{ic(Br,e)}catch(s){Hn(e,t,s)}}function kS(e,t,s){try{DF(e,s)}catch(c){Hn(e,t,c)}}function kF(e,t,s){try{s.componentDidMount()}catch(c){Hn(e,t,c)}}function vI(e,t){try{mI(e)}catch(s){Hn(e,t,s)}}function Np(e,t){var s=e.ref;if(s!==null)if(typeof s=="function"){var c;try{if(ve&&we&&e.mode&Qt)try{Ys(),c=s(null)}finally{Xs(e)}else c=s(null)}catch(p){Hn(e,t,p)}typeof c=="function"&&v("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Nt(e))}else s.current=null}function lb(e,t,s){try{s()}catch(c){Hn(e,t,c)}}var hI=!1;function MF(e,t){YM(e.containerInfo),at=t,LF();var s=hI;return hI=!1,s}function LF(){for(;at!==null;){var e=at,t=e.child;(e.subtreeFlags&Ra)!==ht&&t!==null?(t.return=e,at=t):PF()}}function PF(){for(;at!==null;){var e=at;Xn(e);try{FF(e)}catch(s){Hn(e,e.return,s)}Fn();var t=e.sibling;if(t!==null){t.return=e.return,at=t;return}at=e.return}}function FF(e){var t=e.alternate,s=e.flags;if((s&vr)!==ht){switch(Xn(e),e.tag){case C:case H:case q:break;case x:{if(t!==null){var c=t.memoizedProps,p=t.memoizedState,g=e.stateNode;e.type===e.elementType&&!kf&&(g.props!==e.memoizedProps&&v("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Nt(e)||"instance"),g.state!==e.memoizedState&&v("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Nt(e)||"instance"));var E=g.getSnapshotBeforeUpdate(e.elementType===e.type?c:Ko(e.type,c),p);{var I=dI;E===void 0&&!I.has(e.type)&&(I.add(e.type),v("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Nt(e)))}g.__reactInternalSnapshotBeforeUpdate=E}break}case T:{{var j=e.stateNode;bL(j.containerInfo)}break}case N:case O:case A:case he:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Fn()}}function rs(e,t,s){var c=t.updateQueue,p=c!==null?c.lastEffect:null;if(p!==null){var g=p.next,E=g;do{if((E.tag&e)===e){var I=E.destroy;E.destroy=void 0,I!==void 0&&((e&la)!==wi?gg(t):(e&Br)!==wi&&wu(t),(e&$s)!==wi&&qh(!0),lb(t,s,I),(e&$s)!==wi&&qh(!1),(e&la)!==wi?yg():(e&Br)!==wi&&qc())}E=E.next}while(E!==g)}}function ic(e,t){var s=t.updateQueue,c=s!==null?s.lastEffect:null;if(c!==null){var p=c.next,g=p;do{if((g.tag&e)===e){(e&la)!==wi?jv(t):(e&Br)!==wi&&bg(t);var E=g.create;(e&$s)!==wi&&qh(!0),g.destroy=E(),(e&$s)!==wi&&qh(!1),(e&la)!==wi?gd():(e&Br)!==wi&&Dv();{var I=g.destroy;if(I!==void 0&&typeof I!="function"){var j=void 0;(g.tag&Br)!==ht?j="useLayoutEffect":(g.tag&$s)!==ht?j="useInsertionEffect":j="useEffect";var P=void 0;I===null?P=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof I.then=="function"?P=`
|
|
192
192
|
|
|
193
193
|
It looks like you wrote `+j+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
194
194
|
|
|
@@ -205,7 +205,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
205
205
|
|
|
206
206
|
Error message:
|
|
207
207
|
|
|
208
|
-
%s`,s)}function HV(e,t,s){var c=e.pingCache;c!==null&&c.delete(t);var p=Ka();Md(e,s),qV(e),Qa===e&&Nl($r,s)&&(Gr===zh||Gr===ub&&wg($r)&&hr()-HS<_I?Pf(e,Ee):fb=Dt(fb,s)),Ti(e,p)}function $I(e,t){t===lr&&(t=SV(e));var s=Ka(),c=Ei(e,t);c!==null&&(_l(c,t,s),Ti(c,s))}function UV(e){var t=e.memoizedState,s=lr;t!==null&&(s=t.retryLane),$I(e,s)}function $V(e,t){var s=lr,c;switch(e.tag){case U:c=e.stateNode;var p=e.memoizedState;p!==null&&(s=p.retryLane);break;case fe:c=e.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}c!==null&&c.delete(t),$I(e,s)}function GV(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:yV(e/1960)*1960}function WV(){if(Xh>CV)throw Xh=0,WS=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Op>xV&&(Op=0,vb=null,v("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function XV(){Qo.flushLegacyContextWarning(),Qo.flushPendingUnsafeLifecycleWarnings()}function GI(e,t){Xn(e),bb(e,di,dV),t&&bb(e,yl,pV),bb(e,di,cV),t&&bb(e,yl,fV),Fn()}function bb(e,t,s){for(var c=e,p=null;c!==null;){var g=c.subtreeFlags&t;c!==p&&c.child!==null&&g!==ht?c=c.child:((c.flags&t)!==ht&&s(c),c.sibling!==null?c=c.sibling:c=p=c.return)}}var Cb=null;function WI(e){{if((Gt&pa)!==Ur||!(e.mode&ut))return;var t=e.tag;if(t!==
|
|
208
|
+
%s`,s)}function HV(e,t,s){var c=e.pingCache;c!==null&&c.delete(t);var p=Ka();Md(e,s),qV(e),Qa===e&&Nl($r,s)&&(Gr===zh||Gr===ub&&wg($r)&&hr()-HS<_I?Pf(e,Ee):fb=Dt(fb,s)),Ti(e,p)}function $I(e,t){t===lr&&(t=SV(e));var s=Ka(),c=Ei(e,t);c!==null&&(_l(c,t,s),Ti(c,s))}function UV(e){var t=e.memoizedState,s=lr;t!==null&&(s=t.retryLane),$I(e,s)}function $V(e,t){var s=lr,c;switch(e.tag){case U:c=e.stateNode;var p=e.memoizedState;p!==null&&(s=p.retryLane);break;case fe:c=e.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}c!==null&&c.delete(t),$I(e,s)}function GV(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:yV(e/1960)*1960}function WV(){if(Xh>CV)throw Xh=0,WS=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Op>xV&&(Op=0,vb=null,v("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function XV(){Qo.flushLegacyContextWarning(),Qo.flushPendingUnsafeLifecycleWarnings()}function GI(e,t){Xn(e),bb(e,di,dV),t&&bb(e,yl,pV),bb(e,di,cV),t&&bb(e,yl,fV),Fn()}function bb(e,t,s){for(var c=e,p=null;c!==null;){var g=c.subtreeFlags&t;c!==p&&c.child!==null&&g!==ht?c=c.child:((c.flags&t)!==ht&&s(c),c.sibling!==null?c=c.sibling:c=p=c.return)}}var Cb=null;function WI(e){{if((Gt&pa)!==Ur||!(e.mode&ut))return;var t=e.tag;if(t!==R&&t!==T&&t!==x&&t!==C&&t!==H&&t!==J&&t!==q)return;var s=Nt(e)||"ReactComponent";if(Cb!==null){if(Cb.has(s))return;Cb.add(s)}else Cb=new Set([s]);var c=Wn;try{Xn(e),v("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{c?Xn(e):Fn()}}}var QS;{var YV=null;QS=function(e,t,s){var c=eN(YV,t);try{return iI(e,t,s)}catch(g){if(sP()||g!==null&&typeof g=="object"&&typeof g.then=="function")throw g;if(Ry(),pT(),fI(e,t),eN(t,c),t.mode&Qt&&dS(t),zi(null,iI,null,e,t,s),uC()){var p=Ho();typeof p=="object"&&p!==null&&p._suppressLogging&&typeof g=="object"&&g!==null&&!g._suppressLogging&&(g._suppressLogging=!0)}throw g}}}var XI=!1,KS;KS=new Set;function ZV(e){if(xa&&!HP())switch(e.tag){case C:case H:case q:{var t=dr&&Nt(dr)||"Unknown",s=t;if(!KS.has(s)){KS.add(s);var c=Nt(e)||"Unknown";v("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",c,t,t)}break}case x:{XI||(v("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),XI=!0);break}}}function Jh(e,t){if(Za){var s=e.memoizedUpdaters;s.forEach(function(c){Pd(e,c,t)})}}var eE={};function tE(e,t){{var s=os.current;return s!==null?(s.push(t),eE):Nv(e,t)}}function YI(e){if(e!==eE)return hd(e)}function ZI(){return os.current!==null}function JV(e){{if(e.mode&ut){if(!TI())return}else if(!gV()||Gt!==Ur||e.tag!==C&&e.tag!==H&&e.tag!==q)return;if(os.current===null){var t=Wn;try{Xn(e),v(`An update to %s inside a test was not wrapped in act(...).
|
|
209
209
|
|
|
210
210
|
When testing, code that causes React state updates should be wrapped into act(...):
|
|
211
211
|
|
|
@@ -223,29 +223,29 @@ act(() => {
|
|
|
223
223
|
});
|
|
224
224
|
/* assert on the output */
|
|
225
225
|
|
|
226
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function qh(e){jI=e}var xo=null,Ap=null,QV=function(e){xo=e};function jp(e){{if(xo===null)return e;var t=xo(e);return t===void 0?e:t.current}}function nE(e){return jp(e)}function rE(e){{if(xo===null)return e;var t=xo(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var s=jp(e.render);if(e.render!==s){var c={$$typeof:We,render:s};return e.displayName!==void 0&&(c.displayName=e.displayName),c}}return e}return t.current}}function JI(e,t){{if(xo===null)return!1;var s=e.elementType,c=t.type,p=!1,g=typeof c=="object"&&c!==null?c.$$typeof:null;switch(e.tag){case x:{typeof c=="function"&&(p=!0);break}case C:{(typeof c=="function"||g===vt)&&(p=!0);break}case H:{(g===We||g===vt)&&(p=!0);break}case J:case q:{(g===kt||g===vt)&&(p=!0);break}default:return!1}if(p){var E=xo(s);if(E!==void 0&&E===xo(c))return!0}return!1}}function qI(e){{if(xo===null||typeof WeakSet!="function")return;Ap===null&&(Ap=new WeakSet),Ap.add(e)}}var KV=function(e,t){{if(xo===null)return;var s=t.staleFamilies,c=t.updatedFamilies;Wl(),Gl(function(){aE(e.current,c,s)})}},eB=function(e,t){{if(e.context!==$i)return;Wl(),Gl(function(){Qh(t,e,null,null)})}};function aE(e,t,s){{var c=e.alternate,p=e.child,g=e.sibling,E=e.tag,I=e.type,j=null;switch(E){case C:case q:case x:j=I;break;case H:j=I.render;break}if(xo===null)throw new Error("Expected resolveFamily to be set during hot reload.");var P=!1,B=!1;if(j!==null){var te=xo(j);te!==void 0&&(s.has(te)?B=!0:t.has(te)&&(E===x?B=!0:P=!0))}if(Ap!==null&&(Ap.has(e)||c!==null&&Ap.has(c))&&(B=!0),B&&(e._debugNeedsRemount=!0),B||P){var K=Ei(e,bt);K!==null&&Wr(K,e,bt,Mn)}p!==null&&!B&&aE(p,t,s),g!==null&&aE(g,t,s)}}var tB=function(e,t){{var s=new Set,c=new Set(t.map(function(p){return p.current}));return iE(e.current,c,s),s}};function iE(e,t,s){{var c=e.child,p=e.sibling,g=e.tag,E=e.type,I=null;switch(g){case C:case q:case x:I=E;break;case H:I=E.render;break}var j=!1;I!==null&&t.has(I)&&(j=!0),j?nB(e,s):c!==null&&iE(c,t,s),p!==null&&iE(p,t,s)}}function nB(e,t){{var s=rB(e,t);if(s)return;for(var c=e;;){switch(c.tag){case N:t.add(c.stateNode);return;case A:t.add(c.stateNode.containerInfo);return;case T:t.add(c.stateNode.containerInfo);return}if(c.return===null)throw new Error("Expected to reach root first.");c=c.return}}}function rB(e,t){for(var s=e,c=!1;;){if(s.tag===N)c=!0,t.add(s.stateNode);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===e)return c;for(;s.sibling===null;){if(s.return===null||s.return===e)return c;s=s.return}s.sibling.return=s.return,s=s.sibling}return!1}var oE;{oE=!1;try{var QI=Object.preventExtensions({})}catch{oE=!0}}function aB(e,t,s,c){this.tag=e,this.key=s,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=c,this.flags=ht,this.subtreeFlags=ht,this.deletions=null,this.lanes=Ee,this.childLanes=Ee,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!oE&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Gi=function(e,t,s,c){return new aB(e,t,s,c)};function sE(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function iB(e){return typeof e=="function"&&!sE(e)&&e.defaultProps===void 0}function oB(e){if(typeof e=="function")return sE(e)?x:C;if(e!=null){var t=e.$$typeof;if(t===We)return H;if(t===kt)return J}return
|
|
226
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function qh(e){jI=e}var xo=null,Ap=null,QV=function(e){xo=e};function jp(e){{if(xo===null)return e;var t=xo(e);return t===void 0?e:t.current}}function nE(e){return jp(e)}function rE(e){{if(xo===null)return e;var t=xo(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var s=jp(e.render);if(e.render!==s){var c={$$typeof:We,render:s};return e.displayName!==void 0&&(c.displayName=e.displayName),c}}return e}return t.current}}function JI(e,t){{if(xo===null)return!1;var s=e.elementType,c=t.type,p=!1,g=typeof c=="object"&&c!==null?c.$$typeof:null;switch(e.tag){case x:{typeof c=="function"&&(p=!0);break}case C:{(typeof c=="function"||g===vt)&&(p=!0);break}case H:{(g===We||g===vt)&&(p=!0);break}case J:case q:{(g===kt||g===vt)&&(p=!0);break}default:return!1}if(p){var E=xo(s);if(E!==void 0&&E===xo(c))return!0}return!1}}function qI(e){{if(xo===null||typeof WeakSet!="function")return;Ap===null&&(Ap=new WeakSet),Ap.add(e)}}var KV=function(e,t){{if(xo===null)return;var s=t.staleFamilies,c=t.updatedFamilies;Wl(),Gl(function(){aE(e.current,c,s)})}},eB=function(e,t){{if(e.context!==$i)return;Wl(),Gl(function(){Qh(t,e,null,null)})}};function aE(e,t,s){{var c=e.alternate,p=e.child,g=e.sibling,E=e.tag,I=e.type,j=null;switch(E){case C:case q:case x:j=I;break;case H:j=I.render;break}if(xo===null)throw new Error("Expected resolveFamily to be set during hot reload.");var P=!1,B=!1;if(j!==null){var te=xo(j);te!==void 0&&(s.has(te)?B=!0:t.has(te)&&(E===x?B=!0:P=!0))}if(Ap!==null&&(Ap.has(e)||c!==null&&Ap.has(c))&&(B=!0),B&&(e._debugNeedsRemount=!0),B||P){var K=Ei(e,bt);K!==null&&Wr(K,e,bt,Mn)}p!==null&&!B&&aE(p,t,s),g!==null&&aE(g,t,s)}}var tB=function(e,t){{var s=new Set,c=new Set(t.map(function(p){return p.current}));return iE(e.current,c,s),s}};function iE(e,t,s){{var c=e.child,p=e.sibling,g=e.tag,E=e.type,I=null;switch(g){case C:case q:case x:I=E;break;case H:I=E.render;break}var j=!1;I!==null&&t.has(I)&&(j=!0),j?nB(e,s):c!==null&&iE(c,t,s),p!==null&&iE(p,t,s)}}function nB(e,t){{var s=rB(e,t);if(s)return;for(var c=e;;){switch(c.tag){case N:t.add(c.stateNode);return;case A:t.add(c.stateNode.containerInfo);return;case T:t.add(c.stateNode.containerInfo);return}if(c.return===null)throw new Error("Expected to reach root first.");c=c.return}}}function rB(e,t){for(var s=e,c=!1;;){if(s.tag===N)c=!0,t.add(s.stateNode);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===e)return c;for(;s.sibling===null;){if(s.return===null||s.return===e)return c;s=s.return}s.sibling.return=s.return,s=s.sibling}return!1}var oE;{oE=!1;try{var QI=Object.preventExtensions({})}catch{oE=!0}}function aB(e,t,s,c){this.tag=e,this.key=s,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=c,this.flags=ht,this.subtreeFlags=ht,this.deletions=null,this.lanes=Ee,this.childLanes=Ee,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!oE&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Gi=function(e,t,s,c){return new aB(e,t,s,c)};function sE(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function iB(e){return typeof e=="function"&&!sE(e)&&e.defaultProps===void 0}function oB(e){if(typeof e=="function")return sE(e)?x:C;if(e!=null){var t=e.$$typeof;if(t===We)return H;if(t===kt)return J}return R}function Vf(e,t){var s=e.alternate;s===null?(s=Gi(e.tag,t,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s._debugSource=e._debugSource,s._debugOwner=e._debugOwner,s._debugHookTypes=e._debugHookTypes,s.alternate=e,e.alternate=s):(s.pendingProps=t,s.type=e.type,s.flags=ht,s.subtreeFlags=ht,s.deletions=null,s.actualDuration=0,s.actualStartTime=-1),s.flags=e.flags&Pr,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue;var c=e.dependencies;switch(s.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s.selfBaseDuration=e.selfBaseDuration,s.treeBaseDuration=e.treeBaseDuration,s._debugNeedsRemount=e._debugNeedsRemount,s.tag){case R:case C:case q:s.type=jp(e.type);break;case x:s.type=nE(e.type);break;case H:s.type=rE(e.type);break}return s}function sB(e,t){e.flags&=Pr|In;var s=e.alternate;if(s===null)e.childLanes=Ee,e.lanes=t,e.child=null,e.subtreeFlags=ht,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0;else{e.childLanes=s.childLanes,e.lanes=s.lanes,e.child=s.child,e.subtreeFlags=ht,e.deletions=null,e.memoizedProps=s.memoizedProps,e.memoizedState=s.memoizedState,e.updateQueue=s.updateQueue,e.type=s.type;var c=s.dependencies;e.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},e.selfBaseDuration=s.selfBaseDuration,e.treeBaseDuration=s.treeBaseDuration}return e}function lB(e,t,s){var c;return e===gy?(c=ut,t===!0&&(c|=er,c|=hi)):c=mt,Za&&(c|=Qt),Gi(T,null,null,c)}function lE(e,t,s,c,p,g){var E=R,I=e;if(typeof e=="function")sE(e)?(E=x,I=nE(I)):I=jp(I);else if(typeof e=="string")E=N;else e:switch(e){case Ua:return cc(s.children,p,g,t);case _o:E=L,p|=er,(p&ut)!==mt&&(p|=hi);break;case Z:return uB(s,p,g,t);case Bt:return cB(s,p,g,t);case $t:return fB(s,p,g,t);case jn:return KI(s,p,g,t);case Yr:case pr:case Qi:case Dn:case An:default:{if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ke:E=V;break e;case Ue:E=F;break e;case We:E=H,I=rE(I);break e;case kt:E=J;break e;case vt:E=Re,I=null;break e}var j="";{(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(j+=" 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 P=c?Nt(c):null;P&&(j+=`
|
|
227
227
|
|
|
228
|
-
Check the render method of \``+P+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(e==null?e:typeof e)+"."+j))}}var B=Gi(E,s,t,p);return B.elementType=e,B.type=I,B.lanes=g,B._debugOwner=c,B}function uE(e,t,s){var c=null;c=e._owner;var p=e.type,g=e.key,E=e.props,I=lE(p,g,E,c,t,s);return I._debugSource=e._source,I._debugOwner=e._owner,I}function cc(e,t,s,c){var p=Gi(_,e,c,t);return p.lanes=s,p}function uB(e,t,s,c){typeof e.id!="string"&&v('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var p=Gi(z,e,c,t|Qt);return p.elementType=Z,p.lanes=s,p.stateNode={effectDuration:0,passiveEffectDuration:0},p}function cB(e,t,s,c){var p=Gi(U,e,c,t);return p.elementType=Bt,p.lanes=s,p}function fB(e,t,s,c){var p=Gi(fe,e,c,t);return p.elementType=$t,p.lanes=s,p}function KI(e,t,s,c){var p=Gi(Te,e,c,t);p.elementType=jn,p.lanes=s;var g={isHidden:!1};return p.stateNode=g,p}function cE(e,t,s){var c=Gi(O,e,null,t);return c.lanes=s,c}function dB(){var e=Gi(N,null,null,mt);return e.elementType="DELETED",e}function pB(e){var t=Gi(ge,null,null,mt);return t.stateNode=e,t}function fE(e,t,s){var c=e.children!==null?e.children:[],p=Gi(A,c,e.key,t);return p.lanes=s,p.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},p}function eN(e,t){return e===null&&(e=Gi(
|
|
228
|
+
Check the render method of \``+P+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(e==null?e:typeof e)+"."+j))}}var B=Gi(E,s,t,p);return B.elementType=e,B.type=I,B.lanes=g,B._debugOwner=c,B}function uE(e,t,s){var c=null;c=e._owner;var p=e.type,g=e.key,E=e.props,I=lE(p,g,E,c,t,s);return I._debugSource=e._source,I._debugOwner=e._owner,I}function cc(e,t,s,c){var p=Gi(_,e,c,t);return p.lanes=s,p}function uB(e,t,s,c){typeof e.id!="string"&&v('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var p=Gi(z,e,c,t|Qt);return p.elementType=Z,p.lanes=s,p.stateNode={effectDuration:0,passiveEffectDuration:0},p}function cB(e,t,s,c){var p=Gi(U,e,c,t);return p.elementType=Bt,p.lanes=s,p}function fB(e,t,s,c){var p=Gi(fe,e,c,t);return p.elementType=$t,p.lanes=s,p}function KI(e,t,s,c){var p=Gi(Te,e,c,t);p.elementType=jn,p.lanes=s;var g={isHidden:!1};return p.stateNode=g,p}function cE(e,t,s){var c=Gi(O,e,null,t);return c.lanes=s,c}function dB(){var e=Gi(N,null,null,mt);return e.elementType="DELETED",e}function pB(e){var t=Gi(ge,null,null,mt);return t.stateNode=e,t}function fE(e,t,s){var c=e.children!==null?e.children:[],p=Gi(A,c,e.key,t);return p.lanes=s,p.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},p}function eN(e,t){return e===null&&(e=Gi(R,null,null,mt)),e.tag=t.tag,e.key=t.key,e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.dependencies=t.dependencies,e.mode=t.mode,e.flags=t.flags,e.subtreeFlags=t.subtreeFlags,e.deletions=t.deletions,e.lanes=t.lanes,e.childLanes=t.childLanes,e.alternate=t.alternate,e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function vB(e,t,s,c,p){this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=WC,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=lr,this.eventTimes=cf(Ee),this.expirationTimes=cf(Mn),this.pendingLanes=Ee,this.suspendedLanes=Ee,this.pingedLanes=Ee,this.expiredLanes=Ee,this.mutableReadLanes=Ee,this.finishedLanes=Ee,this.entangledLanes=Ee,this.entanglements=cf(Ee),this.identifierPrefix=c,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var g=this.pendingUpdatersLaneMap=[],E=0;E<sr;E++)g.push(new Set)}switch(t){case gy:this._debugRootType=s?"hydrateRoot()":"createRoot()";break;case qu:this._debugRootType=s?"hydrate()":"render()";break}}function tN(e,t,s,c,p,g,E,I,j,P){var B=new vB(e,t,s,I,j),te=lB(t,g);B.current=te,te.stateNode=B;{var K={element:c,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null};te.memoizedState=K}return bx(te),B}var dE="18.2.0";function hB(e,t,s){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return Vt(c),{$$typeof:ya,key:c==null?null:""+c,children:e,containerInfo:t,implementation:s}}var pE,vE;pE=!1,vE={};function nN(e){if(!e)return $i;var t=ao(e),s=QL(t);if(t.tag===x){var c=t.type;if(Us(c))return N1(t,c,s)}return s}function mB(e,t){{var s=ao(e);if(s===void 0){if(typeof e.render=="function")throw new Error("Unable to find node on an unmounted component.");var c=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+c)}var p=Rv(s);if(p===null)return null;if(p.mode&er){var g=Nt(s)||"Component";if(!vE[g]){vE[g]=!0;var E=Wn;try{Xn(p),s.mode&er?v("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,g):v("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,g)}finally{E?Xn(E):Fn()}}}return p.stateNode}}function rN(e,t,s,c,p,g,E,I){var j=!1,P=null;return tN(e,t,j,P,s,c,p,g,E)}function aN(e,t,s,c,p,g,E,I,j,P){var B=!0,te=tN(s,c,B,e,p,g,E,I,j);te.context=nN(null);var K=te.current,ce=Ka(),de=lc(K),be=zl(ce,de);return be.callback=t??null,ec(K,be,de),EV(te,de,ce),te}function Qh(e,t,s,c){$o(t,e);var p=t.current,g=Ka(),E=lc(p);kv(E);var I=nN(s);t.context===null?t.context=I:t.pendingContext=I,xa&&Wn!==null&&!pE&&(pE=!0,v(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
229
229
|
|
|
230
230
|
Check the render method of %s.`,Nt(Wn)||"Unknown"));var j=zl(g,E);j.payload={element:e},c=c===void 0?null:c,c!==null&&(typeof c!="function"&&v("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",c),j.callback=c);var P=ec(p,j,E);return P!==null&&(Wr(P,p,E,g),Oy(P,p,E)),E}function xb(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case N:return t.child.stateNode;default:return t.child.stateNode}}function gB(e){switch(e.tag){case T:{var t=e.stateNode;if(Fd(t)){var s=pC(t);IV(t,s)}break}case U:{Gl(function(){var p=Ei(e,bt);if(p!==null){var g=Ka();Wr(p,e,bt,g)}});var c=bt;hE(e,c);break}}}function iN(e,t){var s=e.memoizedState;s!==null&&s.dehydrated!==null&&(s.retryLane=_g(s.retryLane,t))}function hE(e,t){iN(e,t);var s=e.alternate;s&&iN(s,t)}function yB(e){if(e.tag===U){var t=Il,s=Ei(e,t);if(s!==null){var c=Ka();Wr(s,e,t,c)}hE(e,t)}}function bB(e){if(e.tag===U){var t=lc(e),s=Ei(e,t);if(s!==null){var c=Ka();Wr(s,e,t,c)}hE(e,t)}}function oN(e){var t=Iv(e);return t===null?null:t.stateNode}var sN=function(e){return null};function CB(e){return sN(e)}var lN=function(e){return!1};function xB(e){return lN(e)}var uN=null,cN=null,fN=null,dN=null,pN=null,vN=null,hN=null,mN=null,gN=null;{var yN=function(e,t,s){var c=t[s],p=Zt(e)?e.slice():Lt({},e);return s+1===t.length?(Zt(p)?p.splice(c,1):delete p[c],p):(p[c]=yN(e[c],t,s+1),p)},bN=function(e,t){return yN(e,t,0)},CN=function(e,t,s,c){var p=t[c],g=Zt(e)?e.slice():Lt({},e);if(c+1===t.length){var E=s[c];g[E]=g[p],Zt(g)?g.splice(p,1):delete g[p]}else g[p]=CN(e[p],t,s,c+1);return g},xN=function(e,t,s){if(t.length!==s.length){h("copyWithRename() expects paths of the same length");return}else for(var c=0;c<s.length-1;c++)if(t[c]!==s[c]){h("copyWithRename() expects paths to be the same except for the deepest key");return}return CN(e,t,s,0)},SN=function(e,t,s,c){if(s>=t.length)return c;var p=t[s],g=Zt(e)?e.slice():Lt({},e);return g[p]=SN(e[p],t,s+1,c),g},EN=function(e,t,s){return SN(e,t,0,s)},mE=function(e,t){for(var s=e.memoizedState;s!==null&&t>0;)s=s.next,t--;return s};uN=function(e,t,s,c){var p=mE(e,t);if(p!==null){var g=EN(p.memoizedState,s,c);p.memoizedState=g,p.baseState=g,e.memoizedProps=Lt({},e.memoizedProps);var E=Ei(e,bt);E!==null&&Wr(E,e,bt,Mn)}},cN=function(e,t,s){var c=mE(e,t);if(c!==null){var p=bN(c.memoizedState,s);c.memoizedState=p,c.baseState=p,e.memoizedProps=Lt({},e.memoizedProps);var g=Ei(e,bt);g!==null&&Wr(g,e,bt,Mn)}},fN=function(e,t,s,c){var p=mE(e,t);if(p!==null){var g=xN(p.memoizedState,s,c);p.memoizedState=g,p.baseState=g,e.memoizedProps=Lt({},e.memoizedProps);var E=Ei(e,bt);E!==null&&Wr(E,e,bt,Mn)}},dN=function(e,t,s){e.pendingProps=EN(e.memoizedProps,t,s),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var c=Ei(e,bt);c!==null&&Wr(c,e,bt,Mn)},pN=function(e,t){e.pendingProps=bN(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var s=Ei(e,bt);s!==null&&Wr(s,e,bt,Mn)},vN=function(e,t,s){e.pendingProps=xN(e.memoizedProps,t,s),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var c=Ei(e,bt);c!==null&&Wr(c,e,bt,Mn)},hN=function(e){var t=Ei(e,bt);t!==null&&Wr(t,e,bt,Mn)},mN=function(e){sN=e},gN=function(e){lN=e}}function SB(e){var t=Rv(e);return t===null?null:t.stateNode}function EB(e){return null}function wB(){return Wn}function RB(e){var t=e.findFiberByHostInstance,s=u.ReactCurrentDispatcher;return vg({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:uN,overrideHookStateDeletePath:cN,overrideHookStateRenamePath:fN,overrideProps:dN,overridePropsDeletePath:pN,overridePropsRenamePath:vN,setErrorHandler:mN,setSuspenseHandler:gN,scheduleUpdate:hN,currentDispatcherRef:s,findHostInstanceByFiber:SB,findFiberByHostInstance:t||EB,findHostInstancesForRefresh:tB,scheduleRefresh:KV,scheduleRoot:eB,setRefreshHandler:QV,getCurrentFiber:wB,reconcilerVersion:dE})}var wN=typeof reportError=="function"?reportError:function(e){console.error(e)};function gE(e){this._internalRoot=e}Sb.prototype.render=gE.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?v("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):Eb(arguments[1])?v("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof arguments[1]<"u"&&v("You passed a second argument to root.render(...) but it only accepts one argument.");var s=t.containerInfo;if(s.nodeType!==Kn){var c=oN(t.current);c&&c.parentNode!==s&&v("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}Qh(e,t,null,null)},Sb.prototype.unmount=gE.prototype.unmount=function(){typeof arguments[0]=="function"&&v("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;LI()&&v("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Gl(function(){Qh(null,e,null,null)}),E1(t)}};function TB(e,t){if(!Eb(e))throw new Error("createRoot(...): Target container is not a DOM element.");RN(e);var s=!1,c=!1,p="",g=wN;t!=null&&(t.hydrate?h("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===ga&&v(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
231
231
|
|
|
232
232
|
let root = createRoot(domContainer);
|
|
233
233
|
root.render(<App />);`),t.unstable_strictMode===!0&&(s=!0),t.identifierPrefix!==void 0&&(p=t.identifierPrefix),t.onRecoverableError!==void 0&&(g=t.onRecoverableError),t.transitionCallbacks!==void 0&&t.transitionCallbacks);var E=rN(e,gy,null,s,c,p,g);cy(E.current,e);var I=e.nodeType===Kn?e.parentNode:e;return oh(I),new gE(E)}function Sb(e){this._internalRoot=e}function IB(e){e&&bC(e)}Sb.prototype.unstable_scheduleHydration=IB;function NB(e,t,s){if(!Eb(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");RN(e),t===void 0&&v("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var c=s??null,p=s!=null&&s.hydratedSources||null,g=!1,E=!1,I="",j=wN;s!=null&&(s.unstable_strictMode===!0&&(g=!0),s.identifierPrefix!==void 0&&(I=s.identifierPrefix),s.onRecoverableError!==void 0&&(j=s.onRecoverableError));var P=aN(t,null,e,gy,c,g,E,I,j);if(cy(P.current,e),oh(e),p)for(var B=0;B<p.length;B++){var te=p[B];LP(P,te)}return new Sb(P)}function Eb(e){return!!(e&&(e.nodeType===Ea||e.nodeType===$a||e.nodeType===lv||!ye))}function Kh(e){return!!(e&&(e.nodeType===Ea||e.nodeType===$a||e.nodeType===lv||e.nodeType===Kn&&e.nodeValue===" react-mount-point-unstable "))}function RN(e){e.nodeType===Ea&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&v("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),gh(e)&&(e._reactRootContainer?v("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):v("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var _B=u.ReactCurrentOwner,TN;TN=function(e){if(e._reactRootContainer&&e.nodeType!==Kn){var t=oN(e._reactRootContainer.current);t&&t.parentNode!==e&&v("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var s=!!e._reactRootContainer,c=yE(e),p=!!(c&&Zu(c));p&&!s&&v("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),e.nodeType===Ea&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&v("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function yE(e){return e?e.nodeType===$a?e.documentElement:e.firstChild:null}function IN(){}function OB(e,t,s,c,p){if(p){if(typeof c=="function"){var g=c;c=function(){var K=xb(E);g.call(K)}}var E=aN(t,c,e,qu,null,!1,!1,"",IN);e._reactRootContainer=E,cy(E.current,e);var I=e.nodeType===Kn?e.parentNode:e;return oh(I),Gl(),E}else{for(var j;j=e.lastChild;)e.removeChild(j);if(typeof c=="function"){var P=c;c=function(){var K=xb(B);P.call(K)}}var B=rN(e,qu,null,!1,!1,"",IN);e._reactRootContainer=B,cy(B.current,e);var te=e.nodeType===Kn?e.parentNode:e;return oh(te),Gl(function(){Qh(t,B,s,c)}),B}}function AB(e,t){e!==null&&typeof e!="function"&&v("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}function wb(e,t,s,c,p){TN(s),AB(p===void 0?null:p,"render");var g=s._reactRootContainer,E;if(!g)E=OB(s,t,e,p,c);else{if(E=g,typeof p=="function"){var I=p;p=function(){var j=xb(E);I.call(j)}}Qh(t,E,e,p)}return xb(E)}function jB(e){{var t=_B.current;if(t!==null&&t.stateNode!==null){var s=t.stateNode._warnedAboutRefsInRender;s||v("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Yt(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0}}return e==null?null:e.nodeType===Ea?e:mB(e,"findDOMNode")}function DB(e,t,s){if(v("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Kh(t))throw new Error("Target container is not a DOM element.");{var c=gh(t)&&t._reactRootContainer===void 0;c&&v("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return wb(null,e,t,!0,s)}function kB(e,t,s){if(v("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Kh(t))throw new Error("Target container is not a DOM element.");{var c=gh(t)&&t._reactRootContainer===void 0;c&&v("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return wb(null,e,t,!1,s)}function MB(e,t,s,c){if(v("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Kh(s))throw new Error("Target container is not a DOM element.");if(e==null||!bu(e))throw new Error("parentComponent must be a valid React Component");return wb(e,t,s,!1,c)}function LB(e){if(!Kh(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var t=gh(e)&&e._reactRootContainer===void 0;t&&v("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(e._reactRootContainer){{var s=yE(e),c=s&&!Zu(s);c&&v("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Gl(function(){wb(null,null,e,!1,function(){e._reactRootContainer=null,E1(e)})}),!0}else{{var p=yE(e),g=!!(p&&Zu(p)),E=e.nodeType===Ea&&Kh(e.parentNode)&&!!e.parentNode._reactRootContainer;g&&v("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",E?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}Mu(gB),gC(yB),Bd(bB),jg(gi),Dg(qr),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&v("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),mv(VM),ud(ZS,NV,Gl);function PB(e,t){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Eb(t))throw new Error("Target container is not a DOM element.");return hB(e,t,null,s)}function FB(e,t,s,c){return MB(e,t,s,c)}var bE={usingClientEntryPoint:!1,Events:[Zu,up,fy,yu,hl,ZS]};function VB(e,t){return bE.usingClientEntryPoint||v('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),TB(e,t)}function BB(e,t,s){return bE.usingClientEntryPoint||v('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),NB(e,t,s)}function zB(e){return LI()&&v("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),Gl(e)}var HB=RB({findFiberByHostInstance:wf,bundleType:1,version:dE,rendererPackageName:"react-dom"});if(!HB&&It&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var NN=window.location.protocol;/^(https?|file):$/.test(NN)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(NN==="file:"?`
|
|
234
|
-
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}Ni.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=bE,Ni.createPortal=PB,Ni.createRoot=VB,Ni.findDOMNode=jB,Ni.flushSync=zB,Ni.hydrate=DB,Ni.hydrateRoot=BB,Ni.render=kB,Ni.unmountComponentAtNode=LB,Ni.unstable_batchedUpdates=ZS,Ni.unstable_renderSubtreeIntoContainer=FB,Ni.version=dE,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),Ni}var ZO={};function JO(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(ZO.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(JO)}catch(n){console.error(n)}}}ZO.NODE_ENV==="production"?(JO(),tw.exports=tz()):tw.exports=nz();var Gw=tw.exports;const zf=qp(Gw);var rz={},rm=Gw;if(rz.NODE_ENV==="production")us.createRoot=rm.createRoot,us.hydrateRoot=rm.hydrateRoot;else{var Ib=rm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;us.createRoot=function(n,r){Ib.usingClientEntryPoint=!0;try{return rm.createRoot(n,r)}finally{Ib.usingClientEntryPoint=!1}},us.hydrateRoot=function(n,r,i){Ib.usingClientEntryPoint=!0;try{return rm.hydrateRoot(n,r,i)}finally{Ib.usingClientEntryPoint=!1}}}var wr={};function ha(n){return`Minified Redux error #${n}; visit https://redux.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}var az=typeof Symbol=="function"&&Symbol.observable||"@@observable",BN=az,EE=()=>Math.random().toString(36).substring(7).split("").join("."),iz={INIT:`@@redux/INIT${EE()}`,REPLACE:`@@redux/REPLACE${EE()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${EE()}`},Hf=iz;function Nm(n){if(typeof n!="object"||n===null)return!1;let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r||Object.getPrototypeOf(n)===null}function oz(n){if(n===void 0)return"undefined";if(n===null)return"null";const r=typeof n;switch(r){case"boolean":case"string":case"number":case"symbol":case"function":return r}if(Array.isArray(n))return"array";if(uz(n))return"date";if(lz(n))return"error";const i=sz(n);switch(i){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return i}return Object.prototype.toString.call(n).slice(8,-1).toLowerCase().replace(/\s/g,"")}function sz(n){return typeof n.constructor=="function"?n.constructor.name:null}function lz(n){return n instanceof Error||typeof n.message=="string"&&n.constructor&&typeof n.constructor.stackTraceLimit=="number"}function uz(n){return n instanceof Date?!0:typeof n.toDateString=="function"&&typeof n.getDate=="function"&&typeof n.setDate=="function"}function dc(n){let r=typeof n;return wr.NODE_ENV!=="production"&&(r=oz(n)),r}function qO(n,r,i){if(typeof n!="function")throw new Error(wr.NODE_ENV==="production"?ha(2):`Expected the root reducer to be a function. Instead, received: '${dc(n)}'`);if(typeof r=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(wr.NODE_ENV==="production"?ha(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof r=="function"&&typeof i>"u"&&(i=r,r=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(wr.NODE_ENV==="production"?ha(1):`Expected the enhancer to be a function. Instead, received: '${dc(i)}'`);return i(qO)(n,r)}let u=n,l=r,d=new Map,h=d,v=0,y=!1;function C(){h===d&&(h=new Map,d.forEach((_,L)=>{h.set(L,_)}))}function x(){if(y)throw new Error(wr.NODE_ENV==="production"?ha(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return l}function w(_){if(typeof _!="function")throw new Error(wr.NODE_ENV==="production"?ha(4):`Expected the listener to be a function. Instead, received: '${dc(_)}'`);if(y)throw new Error(wr.NODE_ENV==="production"?ha(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let L=!0;C();const F=v++;return h.set(F,_),function(){if(L){if(y)throw new Error(wr.NODE_ENV==="production"?ha(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");L=!1,C(),h.delete(F),d=null}}}function T(_){if(!Nm(_))throw new Error(wr.NODE_ENV==="production"?ha(7):`Actions must be plain objects. Instead, the actual type was: '${dc(_)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof _.type>"u")throw new Error(wr.NODE_ENV==="production"?ha(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof _.type!="string")throw new Error(wr.NODE_ENV==="production"?ha(17):`Action "type" property must be a string. Instead, the actual type was: '${dc(_.type)}'. Value was: '${_.type}' (stringified)`);if(y)throw new Error(wr.NODE_ENV==="production"?ha(9):"Reducers may not dispatch actions.");try{y=!0,l=u(l,_)}finally{y=!1}return(d=h).forEach(F=>{F()}),_}function A(_){if(typeof _!="function")throw new Error(wr.NODE_ENV==="production"?ha(10):`Expected the nextReducer to be a function. Instead, received: '${dc(_)}`);u=_,T({type:Hf.REPLACE})}function N(){const _=w;return{subscribe(L){if(typeof L!="object"||L===null)throw new Error(wr.NODE_ENV==="production"?ha(11):`Expected the observer to be an object. Instead, received: '${dc(L)}'`);function F(){const H=L;H.next&&H.next(x())}return F(),{unsubscribe:_(F)}},[BN](){return this}}}return T({type:Hf.INIT}),{dispatch:T,subscribe:w,getState:x,replaceReducer:A,[BN]:N}}function zN(n){typeof console<"u"&&typeof console.error=="function"&&console.error(n);try{throw new Error(n)}catch{}}function cz(n,r,i,u){const l=Object.keys(r),d=i&&i.type===Hf.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(l.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Nm(n))return`The ${d} has unexpected type of "${dc(n)}". Expected argument to be an object with the following keys: "${l.join('", "')}"`;const h=Object.keys(n).filter(v=>!r.hasOwnProperty(v)&&!u[v]);if(h.forEach(v=>{u[v]=!0}),!(i&&i.type===Hf.REPLACE)&&h.length>0)return`Unexpected ${h.length>1?"keys":"key"} "${h.join('", "')}" found in ${d}. Expected to find one of the known reducer keys instead: "${l.join('", "')}". Unexpected keys will be ignored.`}function fz(n){Object.keys(n).forEach(r=>{const i=n[r];if(typeof i(void 0,{type:Hf.INIT})>"u")throw new Error(wr.NODE_ENV==="production"?ha(12):`The slice reducer for key "${r}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof i(void 0,{type:Hf.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(wr.NODE_ENV==="production"?ha(13):`The slice reducer for key "${r}" returned undefined when probed with a random type. Don't try to handle '${Hf.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function dz(n){const r=Object.keys(n),i={};for(let h=0;h<r.length;h++){const v=r[h];wr.NODE_ENV!=="production"&&typeof n[v]>"u"&&zN(`No reducer provided for key "${v}"`),typeof n[v]=="function"&&(i[v]=n[v])}const u=Object.keys(i);let l;wr.NODE_ENV!=="production"&&(l={});let d;try{fz(i)}catch(h){d=h}return function(v={},y){if(d)throw d;if(wr.NODE_ENV!=="production"){const w=cz(v,i,y,l);w&&zN(w)}let C=!1;const x={};for(let w=0;w<u.length;w++){const T=u[w],A=i[T],N=v[T],O=A(N,y);if(typeof O>"u"){const _=y&&y.type;throw new Error(wr.NODE_ENV==="production"?ha(14):`When called with an action of type ${_?`"${String(_)}"`:"(unknown type)"}, the slice reducer for key "${T}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}x[T]=O,C=C||O!==N}return C=C||u.length!==Object.keys(v).length,C?x:v}}function i0(...n){return n.length===0?r=>r:n.length===1?n[0]:n.reduce((r,i)=>(...u)=>r(i(...u)))}function pz(...n){return r=>(i,u)=>{const l=r(i,u);let d=()=>{throw new Error(wr.NODE_ENV==="production"?ha(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const h={getState:l.getState,dispatch:(y,...C)=>d(y,...C)},v=n.map(y=>y(h));return d=i0(...v)(l.dispatch),{...l,dispatch:d}}}function QO(n){return Nm(n)&&"type"in n&&typeof n.type=="string"}var _m={},KO=Symbol.for("immer-nothing"),HN=Symbol.for("immer-draftable"),Yi=Symbol.for("immer-state"),vz=_m.NODE_ENV!=="production"?[function(n){return`The plugin for '${n}' has not been loaded into Immer. To enable the plugin, import and call \`enable${n}()\` when initializing your application.`},function(n){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${n}'`},"This object has been frozen and should not be mutated",function(n){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+n},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(n){return`'current' expects a draft, got: ${n}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(n){return`'original' expects a draft, got: ${n}`}]:[];function _i(n,...r){if(_m.NODE_ENV!=="production"){const i=vz[n],u=typeof i=="function"?i.apply(null,r):i;throw new Error(`[Immer] ${u}`)}throw new Error(`[Immer] minified error nr: ${n}. Full error at: https://bit.ly/3cXEKWf`)}var Up=Object.getPrototypeOf;function mc(n){return!!n&&!!n[Yi]}function tu(n){var r;return n?eA(n)||Array.isArray(n)||!!n[HN]||!!((r=n.constructor)!=null&&r[HN])||O0(n)||A0(n):!1}var hz=Object.prototype.constructor.toString();function eA(n){if(!n||typeof n!="object")return!1;const r=Up(n);if(r===null)return!0;const i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object?!0:typeof i=="function"&&Function.toString.call(i)===hz}function mm(n,r){_0(n)===0?Object.entries(n).forEach(([i,u])=>{r(i,u,n)}):n.forEach((i,u)=>r(u,i,n))}function _0(n){const r=n[Yi];return r?r.type_:Array.isArray(n)?1:O0(n)?2:A0(n)?3:0}function nw(n,r){return _0(n)===2?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function tA(n,r,i){const u=_0(n);u===2?n.set(r,i):u===3?n.add(i):n[r]=i}function mz(n,r){return n===r?n!==0||1/n===1/r:n!==n&&r!==r}function O0(n){return n instanceof Map}function A0(n){return n instanceof Set}function Bf(n){return n.copy_||n.base_}function rw(n,r){if(O0(n))return new Map(n);if(A0(n))return new Set(n);if(Array.isArray(n))return Array.prototype.slice.call(n);if(!r&&eA(n))return Up(n)?{...n}:Object.assign(Object.create(null),n);const i=Object.getOwnPropertyDescriptors(n);delete i[Yi];let u=Reflect.ownKeys(i);for(let l=0;l<u.length;l++){const d=u[l],h=i[d];h.writable===!1&&(h.writable=!0,h.configurable=!0),(h.get||h.set)&&(i[d]={configurable:!0,writable:!0,enumerable:h.enumerable,value:n[d]})}return Object.create(Up(n),i)}function Ww(n,r=!1){return j0(n)||mc(n)||!tu(n)||(_0(n)>1&&(n.set=n.add=n.clear=n.delete=gz),Object.freeze(n),r&&mm(n,(i,u)=>Ww(u,!0))),n}function gz(){_i(2)}function j0(n){return Object.isFrozen(n)}var yz={};function Wf(n){const r=yz[n];return r||_i(0,n),r}var gm;function nA(){return gm}function bz(n,r){return{drafts_:[],parent_:n,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function UN(n,r){r&&(Wf("Patches"),n.patches_=[],n.inversePatches_=[],n.patchListener_=r)}function aw(n){iw(n),n.drafts_.forEach(Cz),n.drafts_=null}function iw(n){n===gm&&(gm=n.parent_)}function $N(n){return gm=bz(gm,n)}function Cz(n){const r=n[Yi];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function GN(n,r){r.unfinalizedDrafts_=r.drafts_.length;const i=r.drafts_[0];return n!==void 0&&n!==i?(i[Yi].modified_&&(aw(r),_i(4)),tu(n)&&(n=o0(r,n),r.parent_||s0(r,n)),r.patches_&&Wf("Patches").generateReplacementPatches_(i[Yi].base_,n,r.patches_,r.inversePatches_)):n=o0(r,i,[]),aw(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),n!==KO?n:void 0}function o0(n,r,i){if(j0(r))return r;const u=r[Yi];if(!u)return mm(r,(l,d)=>WN(n,u,r,l,d,i)),r;if(u.scope_!==n)return r;if(!u.modified_)return s0(n,u.base_,!0),u.base_;if(!u.finalized_){u.finalized_=!0,u.scope_.unfinalizedDrafts_--;const l=u.copy_;let d=l,h=!1;u.type_===3&&(d=new Set(l),l.clear(),h=!0),mm(d,(v,y)=>WN(n,u,l,v,y,i,h)),s0(n,l,!1),i&&n.patches_&&Wf("Patches").generatePatches_(u,i,n.patches_,n.inversePatches_)}return u.copy_}function WN(n,r,i,u,l,d,h){if(_m.NODE_ENV!=="production"&&l===i&&_i(5),mc(l)){const v=d&&r&&r.type_!==3&&!nw(r.assigned_,u)?d.concat(u):void 0,y=o0(n,l,v);if(tA(i,u,y),mc(y))n.canAutoFreeze_=!1;else return}else h&&i.add(l);if(tu(l)&&!j0(l)){if(!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1)return;o0(n,l),(!r||!r.scope_.parent_)&&s0(n,l)}}function s0(n,r,i=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&Ww(r,i)}function xz(n,r){const i=Array.isArray(n),u={type_:i?1:0,scope_:r?r.scope_:nA(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:n,draft_:null,copy_:null,revoke_:null,isManual_:!1};let l=u,d=Xw;i&&(l=[u],d=ym);const{revoke:h,proxy:v}=Proxy.revocable(l,d);return u.draft_=v,u.revoke_=h,v}var Xw={get(n,r){if(r===Yi)return n;const i=Bf(n);if(!nw(i,r))return Sz(n,i,r);const u=i[r];return n.finalized_||!tu(u)?u:u===wE(n.base_,r)?(RE(n),n.copy_[r]=sw(u,n)):u},has(n,r){return r in Bf(n)},ownKeys(n){return Reflect.ownKeys(Bf(n))},set(n,r,i){const u=rA(Bf(n),r);if(u!=null&&u.set)return u.set.call(n.draft_,i),!0;if(!n.modified_){const l=wE(Bf(n),r),d=l==null?void 0:l[Yi];if(d&&d.base_===i)return n.copy_[r]=i,n.assigned_[r]=!1,!0;if(mz(i,l)&&(i!==void 0||nw(n.base_,r)))return!0;RE(n),ow(n)}return n.copy_[r]===i&&(i!==void 0||r in n.copy_)||Number.isNaN(i)&&Number.isNaN(n.copy_[r])||(n.copy_[r]=i,n.assigned_[r]=!0),!0},deleteProperty(n,r){return wE(n.base_,r)!==void 0||r in n.base_?(n.assigned_[r]=!1,RE(n),ow(n)):delete n.assigned_[r],n.copy_&&delete n.copy_[r],!0},getOwnPropertyDescriptor(n,r){const i=Bf(n),u=Reflect.getOwnPropertyDescriptor(i,r);return u&&{writable:!0,configurable:n.type_!==1||r!=="length",enumerable:u.enumerable,value:i[r]}},defineProperty(){_i(11)},getPrototypeOf(n){return Up(n.base_)},setPrototypeOf(){_i(12)}},ym={};mm(Xw,(n,r)=>{ym[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});ym.deleteProperty=function(n,r){return _m.NODE_ENV!=="production"&&isNaN(parseInt(r))&&_i(13),ym.set.call(this,n,r,void 0)};ym.set=function(n,r,i){return _m.NODE_ENV!=="production"&&r!=="length"&&isNaN(parseInt(r))&&_i(14),Xw.set.call(this,n[0],r,i,n[0])};function wE(n,r){const i=n[Yi];return(i?Bf(i):n)[r]}function Sz(n,r,i){var l;const u=rA(r,i);return u?"value"in u?u.value:(l=u.get)==null?void 0:l.call(n.draft_):void 0}function rA(n,r){if(!(r in n))return;let i=Up(n);for(;i;){const u=Object.getOwnPropertyDescriptor(i,r);if(u)return u;i=Up(i)}}function ow(n){n.modified_||(n.modified_=!0,n.parent_&&ow(n.parent_))}function RE(n){n.copy_||(n.copy_=rw(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var Ez=class{constructor(n){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(r,i,u)=>{if(typeof r=="function"&&typeof i!="function"){const d=i;i=r;const h=this;return function(y=d,...C){return h.produce(y,x=>i.call(this,x,...C))}}typeof i!="function"&&_i(6),u!==void 0&&typeof u!="function"&&_i(7);let l;if(tu(r)){const d=$N(this),h=sw(r,void 0);let v=!0;try{l=i(h),v=!1}finally{v?aw(d):iw(d)}return UN(d,u),GN(l,d)}else if(!r||typeof r!="object"){if(l=i(r),l===void 0&&(l=r),l===KO&&(l=void 0),this.autoFreeze_&&Ww(l,!0),u){const d=[],h=[];Wf("Patches").generateReplacementPatches_(r,l,d,h),u(d,h)}return l}else _i(1,r)},this.produceWithPatches=(r,i)=>{if(typeof r=="function")return(h,...v)=>this.produceWithPatches(h,y=>r(y,...v));let u,l;return[this.produce(r,i,(h,v)=>{u=h,l=v}),u,l]},typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze),typeof(n==null?void 0:n.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(n.useStrictShallowCopy)}createDraft(n){tu(n)||_i(8),mc(n)&&(n=aA(n));const r=$N(this),i=sw(n,void 0);return i[Yi].isManual_=!0,iw(r),i}finishDraft(n,r){const i=n&&n[Yi];(!i||!i.isManual_)&&_i(9);const{scope_:u}=i;return UN(u,r),GN(void 0,u)}setAutoFreeze(n){this.autoFreeze_=n}setUseStrictShallowCopy(n){this.useStrictShallowCopy_=n}applyPatches(n,r){let i;for(i=r.length-1;i>=0;i--){const l=r[i];if(l.path.length===0&&l.op==="replace"){n=l.value;break}}i>-1&&(r=r.slice(i+1));const u=Wf("Patches").applyPatches_;return mc(n)?u(n,r):this.produce(n,l=>u(l,r))}};function sw(n,r){const i=O0(n)?Wf("MapSet").proxyMap_(n,r):A0(n)?Wf("MapSet").proxySet_(n,r):xz(n,r);return(r?r.scope_:nA()).drafts_.push(i),i}function aA(n){return mc(n)||_i(10,n),iA(n)}function iA(n){if(!tu(n)||j0(n))return n;const r=n[Yi];let i;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,i=rw(n,r.scope_.immer_.useStrictShallowCopy_)}else i=rw(n,!0);return mm(i,(u,l)=>{tA(i,u,iA(l))}),r&&(r.finalized_=!1),i}var Zi=new Ez,So=Zi.produce;Zi.produceWithPatches.bind(Zi);Zi.setAutoFreeze.bind(Zi);Zi.setUseStrictShallowCopy.bind(Zi);Zi.applyPatches.bind(Zi);Zi.createDraft.bind(Zi);Zi.finishDraft.bind(Zi);var wz={},Rz=(n,r,i)=>{if(r.length===1&&r[0]===i){let u=!1;try{const l={};n(l)===l&&(u=!0)}catch{}if(u){let l;try{throw new Error}catch(d){({stack:l}=d)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
234
|
+
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}Ni.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=bE,Ni.createPortal=PB,Ni.createRoot=VB,Ni.findDOMNode=jB,Ni.flushSync=zB,Ni.hydrate=DB,Ni.hydrateRoot=BB,Ni.render=kB,Ni.unmountComponentAtNode=LB,Ni.unstable_batchedUpdates=ZS,Ni.unstable_renderSubtreeIntoContainer=FB,Ni.version=dE,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),Ni}var ZO={};function JO(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(ZO.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(JO)}catch(n){console.error(n)}}}ZO.NODE_ENV==="production"?(JO(),tw.exports=tz()):tw.exports=nz();var Gw=tw.exports;const zf=qp(Gw);var rz={},rm=Gw;if(rz.NODE_ENV==="production")us.createRoot=rm.createRoot,us.hydrateRoot=rm.hydrateRoot;else{var Ib=rm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;us.createRoot=function(n,r){Ib.usingClientEntryPoint=!0;try{return rm.createRoot(n,r)}finally{Ib.usingClientEntryPoint=!1}},us.hydrateRoot=function(n,r,i){Ib.usingClientEntryPoint=!0;try{return rm.hydrateRoot(n,r,i)}finally{Ib.usingClientEntryPoint=!1}}}var wr={};function ha(n){return`Minified Redux error #${n}; visit https://redux.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}var az=typeof Symbol=="function"&&Symbol.observable||"@@observable",BN=az,EE=()=>Math.random().toString(36).substring(7).split("").join("."),iz={INIT:`@@redux/INIT${EE()}`,REPLACE:`@@redux/REPLACE${EE()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${EE()}`},Hf=iz;function Nm(n){if(typeof n!="object"||n===null)return!1;let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r||Object.getPrototypeOf(n)===null}function oz(n){if(n===void 0)return"undefined";if(n===null)return"null";const r=typeof n;switch(r){case"boolean":case"string":case"number":case"symbol":case"function":return r}if(Array.isArray(n))return"array";if(uz(n))return"date";if(lz(n))return"error";const i=sz(n);switch(i){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return i}return Object.prototype.toString.call(n).slice(8,-1).toLowerCase().replace(/\s/g,"")}function sz(n){return typeof n.constructor=="function"?n.constructor.name:null}function lz(n){return n instanceof Error||typeof n.message=="string"&&n.constructor&&typeof n.constructor.stackTraceLimit=="number"}function uz(n){return n instanceof Date?!0:typeof n.toDateString=="function"&&typeof n.getDate=="function"&&typeof n.setDate=="function"}function dc(n){let r=typeof n;return wr.NODE_ENV!=="production"&&(r=oz(n)),r}function qO(n,r,i){if(typeof n!="function")throw new Error(wr.NODE_ENV==="production"?ha(2):`Expected the root reducer to be a function. Instead, received: '${dc(n)}'`);if(typeof r=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(wr.NODE_ENV==="production"?ha(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof r=="function"&&typeof i>"u"&&(i=r,r=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(wr.NODE_ENV==="production"?ha(1):`Expected the enhancer to be a function. Instead, received: '${dc(i)}'`);return i(qO)(n,r)}let u=n,l=r,d=new Map,h=d,v=0,y=!1;function C(){h===d&&(h=new Map,d.forEach((_,L)=>{h.set(L,_)}))}function x(){if(y)throw new Error(wr.NODE_ENV==="production"?ha(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return l}function R(_){if(typeof _!="function")throw new Error(wr.NODE_ENV==="production"?ha(4):`Expected the listener to be a function. Instead, received: '${dc(_)}'`);if(y)throw new Error(wr.NODE_ENV==="production"?ha(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let L=!0;C();const F=v++;return h.set(F,_),function(){if(L){if(y)throw new Error(wr.NODE_ENV==="production"?ha(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");L=!1,C(),h.delete(F),d=null}}}function T(_){if(!Nm(_))throw new Error(wr.NODE_ENV==="production"?ha(7):`Actions must be plain objects. Instead, the actual type was: '${dc(_)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof _.type>"u")throw new Error(wr.NODE_ENV==="production"?ha(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof _.type!="string")throw new Error(wr.NODE_ENV==="production"?ha(17):`Action "type" property must be a string. Instead, the actual type was: '${dc(_.type)}'. Value was: '${_.type}' (stringified)`);if(y)throw new Error(wr.NODE_ENV==="production"?ha(9):"Reducers may not dispatch actions.");try{y=!0,l=u(l,_)}finally{y=!1}return(d=h).forEach(F=>{F()}),_}function A(_){if(typeof _!="function")throw new Error(wr.NODE_ENV==="production"?ha(10):`Expected the nextReducer to be a function. Instead, received: '${dc(_)}`);u=_,T({type:Hf.REPLACE})}function N(){const _=R;return{subscribe(L){if(typeof L!="object"||L===null)throw new Error(wr.NODE_ENV==="production"?ha(11):`Expected the observer to be an object. Instead, received: '${dc(L)}'`);function F(){const H=L;H.next&&H.next(x())}return F(),{unsubscribe:_(F)}},[BN](){return this}}}return T({type:Hf.INIT}),{dispatch:T,subscribe:R,getState:x,replaceReducer:A,[BN]:N}}function zN(n){typeof console<"u"&&typeof console.error=="function"&&console.error(n);try{throw new Error(n)}catch{}}function cz(n,r,i,u){const l=Object.keys(r),d=i&&i.type===Hf.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(l.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Nm(n))return`The ${d} has unexpected type of "${dc(n)}". Expected argument to be an object with the following keys: "${l.join('", "')}"`;const h=Object.keys(n).filter(v=>!r.hasOwnProperty(v)&&!u[v]);if(h.forEach(v=>{u[v]=!0}),!(i&&i.type===Hf.REPLACE)&&h.length>0)return`Unexpected ${h.length>1?"keys":"key"} "${h.join('", "')}" found in ${d}. Expected to find one of the known reducer keys instead: "${l.join('", "')}". Unexpected keys will be ignored.`}function fz(n){Object.keys(n).forEach(r=>{const i=n[r];if(typeof i(void 0,{type:Hf.INIT})>"u")throw new Error(wr.NODE_ENV==="production"?ha(12):`The slice reducer for key "${r}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof i(void 0,{type:Hf.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(wr.NODE_ENV==="production"?ha(13):`The slice reducer for key "${r}" returned undefined when probed with a random type. Don't try to handle '${Hf.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function dz(n){const r=Object.keys(n),i={};for(let h=0;h<r.length;h++){const v=r[h];wr.NODE_ENV!=="production"&&typeof n[v]>"u"&&zN(`No reducer provided for key "${v}"`),typeof n[v]=="function"&&(i[v]=n[v])}const u=Object.keys(i);let l;wr.NODE_ENV!=="production"&&(l={});let d;try{fz(i)}catch(h){d=h}return function(v={},y){if(d)throw d;if(wr.NODE_ENV!=="production"){const R=cz(v,i,y,l);R&&zN(R)}let C=!1;const x={};for(let R=0;R<u.length;R++){const T=u[R],A=i[T],N=v[T],O=A(N,y);if(typeof O>"u"){const _=y&&y.type;throw new Error(wr.NODE_ENV==="production"?ha(14):`When called with an action of type ${_?`"${String(_)}"`:"(unknown type)"}, the slice reducer for key "${T}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}x[T]=O,C=C||O!==N}return C=C||u.length!==Object.keys(v).length,C?x:v}}function i0(...n){return n.length===0?r=>r:n.length===1?n[0]:n.reduce((r,i)=>(...u)=>r(i(...u)))}function pz(...n){return r=>(i,u)=>{const l=r(i,u);let d=()=>{throw new Error(wr.NODE_ENV==="production"?ha(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const h={getState:l.getState,dispatch:(y,...C)=>d(y,...C)},v=n.map(y=>y(h));return d=i0(...v)(l.dispatch),{...l,dispatch:d}}}function QO(n){return Nm(n)&&"type"in n&&typeof n.type=="string"}var _m={},KO=Symbol.for("immer-nothing"),HN=Symbol.for("immer-draftable"),Yi=Symbol.for("immer-state"),vz=_m.NODE_ENV!=="production"?[function(n){return`The plugin for '${n}' has not been loaded into Immer. To enable the plugin, import and call \`enable${n}()\` when initializing your application.`},function(n){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${n}'`},"This object has been frozen and should not be mutated",function(n){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+n},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(n){return`'current' expects a draft, got: ${n}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(n){return`'original' expects a draft, got: ${n}`}]:[];function _i(n,...r){if(_m.NODE_ENV!=="production"){const i=vz[n],u=typeof i=="function"?i.apply(null,r):i;throw new Error(`[Immer] ${u}`)}throw new Error(`[Immer] minified error nr: ${n}. Full error at: https://bit.ly/3cXEKWf`)}var Up=Object.getPrototypeOf;function mc(n){return!!n&&!!n[Yi]}function tu(n){var r;return n?eA(n)||Array.isArray(n)||!!n[HN]||!!((r=n.constructor)!=null&&r[HN])||O0(n)||A0(n):!1}var hz=Object.prototype.constructor.toString();function eA(n){if(!n||typeof n!="object")return!1;const r=Up(n);if(r===null)return!0;const i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object?!0:typeof i=="function"&&Function.toString.call(i)===hz}function mm(n,r){_0(n)===0?Object.entries(n).forEach(([i,u])=>{r(i,u,n)}):n.forEach((i,u)=>r(u,i,n))}function _0(n){const r=n[Yi];return r?r.type_:Array.isArray(n)?1:O0(n)?2:A0(n)?3:0}function nw(n,r){return _0(n)===2?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function tA(n,r,i){const u=_0(n);u===2?n.set(r,i):u===3?n.add(i):n[r]=i}function mz(n,r){return n===r?n!==0||1/n===1/r:n!==n&&r!==r}function O0(n){return n instanceof Map}function A0(n){return n instanceof Set}function Bf(n){return n.copy_||n.base_}function rw(n,r){if(O0(n))return new Map(n);if(A0(n))return new Set(n);if(Array.isArray(n))return Array.prototype.slice.call(n);if(!r&&eA(n))return Up(n)?{...n}:Object.assign(Object.create(null),n);const i=Object.getOwnPropertyDescriptors(n);delete i[Yi];let u=Reflect.ownKeys(i);for(let l=0;l<u.length;l++){const d=u[l],h=i[d];h.writable===!1&&(h.writable=!0,h.configurable=!0),(h.get||h.set)&&(i[d]={configurable:!0,writable:!0,enumerable:h.enumerable,value:n[d]})}return Object.create(Up(n),i)}function Ww(n,r=!1){return j0(n)||mc(n)||!tu(n)||(_0(n)>1&&(n.set=n.add=n.clear=n.delete=gz),Object.freeze(n),r&&mm(n,(i,u)=>Ww(u,!0))),n}function gz(){_i(2)}function j0(n){return Object.isFrozen(n)}var yz={};function Wf(n){const r=yz[n];return r||_i(0,n),r}var gm;function nA(){return gm}function bz(n,r){return{drafts_:[],parent_:n,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function UN(n,r){r&&(Wf("Patches"),n.patches_=[],n.inversePatches_=[],n.patchListener_=r)}function aw(n){iw(n),n.drafts_.forEach(Cz),n.drafts_=null}function iw(n){n===gm&&(gm=n.parent_)}function $N(n){return gm=bz(gm,n)}function Cz(n){const r=n[Yi];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function GN(n,r){r.unfinalizedDrafts_=r.drafts_.length;const i=r.drafts_[0];return n!==void 0&&n!==i?(i[Yi].modified_&&(aw(r),_i(4)),tu(n)&&(n=o0(r,n),r.parent_||s0(r,n)),r.patches_&&Wf("Patches").generateReplacementPatches_(i[Yi].base_,n,r.patches_,r.inversePatches_)):n=o0(r,i,[]),aw(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),n!==KO?n:void 0}function o0(n,r,i){if(j0(r))return r;const u=r[Yi];if(!u)return mm(r,(l,d)=>WN(n,u,r,l,d,i)),r;if(u.scope_!==n)return r;if(!u.modified_)return s0(n,u.base_,!0),u.base_;if(!u.finalized_){u.finalized_=!0,u.scope_.unfinalizedDrafts_--;const l=u.copy_;let d=l,h=!1;u.type_===3&&(d=new Set(l),l.clear(),h=!0),mm(d,(v,y)=>WN(n,u,l,v,y,i,h)),s0(n,l,!1),i&&n.patches_&&Wf("Patches").generatePatches_(u,i,n.patches_,n.inversePatches_)}return u.copy_}function WN(n,r,i,u,l,d,h){if(_m.NODE_ENV!=="production"&&l===i&&_i(5),mc(l)){const v=d&&r&&r.type_!==3&&!nw(r.assigned_,u)?d.concat(u):void 0,y=o0(n,l,v);if(tA(i,u,y),mc(y))n.canAutoFreeze_=!1;else return}else h&&i.add(l);if(tu(l)&&!j0(l)){if(!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1)return;o0(n,l),(!r||!r.scope_.parent_)&&s0(n,l)}}function s0(n,r,i=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&Ww(r,i)}function xz(n,r){const i=Array.isArray(n),u={type_:i?1:0,scope_:r?r.scope_:nA(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:n,draft_:null,copy_:null,revoke_:null,isManual_:!1};let l=u,d=Xw;i&&(l=[u],d=ym);const{revoke:h,proxy:v}=Proxy.revocable(l,d);return u.draft_=v,u.revoke_=h,v}var Xw={get(n,r){if(r===Yi)return n;const i=Bf(n);if(!nw(i,r))return Sz(n,i,r);const u=i[r];return n.finalized_||!tu(u)?u:u===wE(n.base_,r)?(RE(n),n.copy_[r]=sw(u,n)):u},has(n,r){return r in Bf(n)},ownKeys(n){return Reflect.ownKeys(Bf(n))},set(n,r,i){const u=rA(Bf(n),r);if(u!=null&&u.set)return u.set.call(n.draft_,i),!0;if(!n.modified_){const l=wE(Bf(n),r),d=l==null?void 0:l[Yi];if(d&&d.base_===i)return n.copy_[r]=i,n.assigned_[r]=!1,!0;if(mz(i,l)&&(i!==void 0||nw(n.base_,r)))return!0;RE(n),ow(n)}return n.copy_[r]===i&&(i!==void 0||r in n.copy_)||Number.isNaN(i)&&Number.isNaN(n.copy_[r])||(n.copy_[r]=i,n.assigned_[r]=!0),!0},deleteProperty(n,r){return wE(n.base_,r)!==void 0||r in n.base_?(n.assigned_[r]=!1,RE(n),ow(n)):delete n.assigned_[r],n.copy_&&delete n.copy_[r],!0},getOwnPropertyDescriptor(n,r){const i=Bf(n),u=Reflect.getOwnPropertyDescriptor(i,r);return u&&{writable:!0,configurable:n.type_!==1||r!=="length",enumerable:u.enumerable,value:i[r]}},defineProperty(){_i(11)},getPrototypeOf(n){return Up(n.base_)},setPrototypeOf(){_i(12)}},ym={};mm(Xw,(n,r)=>{ym[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});ym.deleteProperty=function(n,r){return _m.NODE_ENV!=="production"&&isNaN(parseInt(r))&&_i(13),ym.set.call(this,n,r,void 0)};ym.set=function(n,r,i){return _m.NODE_ENV!=="production"&&r!=="length"&&isNaN(parseInt(r))&&_i(14),Xw.set.call(this,n[0],r,i,n[0])};function wE(n,r){const i=n[Yi];return(i?Bf(i):n)[r]}function Sz(n,r,i){var l;const u=rA(r,i);return u?"value"in u?u.value:(l=u.get)==null?void 0:l.call(n.draft_):void 0}function rA(n,r){if(!(r in n))return;let i=Up(n);for(;i;){const u=Object.getOwnPropertyDescriptor(i,r);if(u)return u;i=Up(i)}}function ow(n){n.modified_||(n.modified_=!0,n.parent_&&ow(n.parent_))}function RE(n){n.copy_||(n.copy_=rw(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var Ez=class{constructor(n){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(r,i,u)=>{if(typeof r=="function"&&typeof i!="function"){const d=i;i=r;const h=this;return function(y=d,...C){return h.produce(y,x=>i.call(this,x,...C))}}typeof i!="function"&&_i(6),u!==void 0&&typeof u!="function"&&_i(7);let l;if(tu(r)){const d=$N(this),h=sw(r,void 0);let v=!0;try{l=i(h),v=!1}finally{v?aw(d):iw(d)}return UN(d,u),GN(l,d)}else if(!r||typeof r!="object"){if(l=i(r),l===void 0&&(l=r),l===KO&&(l=void 0),this.autoFreeze_&&Ww(l,!0),u){const d=[],h=[];Wf("Patches").generateReplacementPatches_(r,l,d,h),u(d,h)}return l}else _i(1,r)},this.produceWithPatches=(r,i)=>{if(typeof r=="function")return(h,...v)=>this.produceWithPatches(h,y=>r(y,...v));let u,l;return[this.produce(r,i,(h,v)=>{u=h,l=v}),u,l]},typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze),typeof(n==null?void 0:n.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(n.useStrictShallowCopy)}createDraft(n){tu(n)||_i(8),mc(n)&&(n=aA(n));const r=$N(this),i=sw(n,void 0);return i[Yi].isManual_=!0,iw(r),i}finishDraft(n,r){const i=n&&n[Yi];(!i||!i.isManual_)&&_i(9);const{scope_:u}=i;return UN(u,r),GN(void 0,u)}setAutoFreeze(n){this.autoFreeze_=n}setUseStrictShallowCopy(n){this.useStrictShallowCopy_=n}applyPatches(n,r){let i;for(i=r.length-1;i>=0;i--){const l=r[i];if(l.path.length===0&&l.op==="replace"){n=l.value;break}}i>-1&&(r=r.slice(i+1));const u=Wf("Patches").applyPatches_;return mc(n)?u(n,r):this.produce(n,l=>u(l,r))}};function sw(n,r){const i=O0(n)?Wf("MapSet").proxyMap_(n,r):A0(n)?Wf("MapSet").proxySet_(n,r):xz(n,r);return(r?r.scope_:nA()).drafts_.push(i),i}function aA(n){return mc(n)||_i(10,n),iA(n)}function iA(n){if(!tu(n)||j0(n))return n;const r=n[Yi];let i;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,i=rw(n,r.scope_.immer_.useStrictShallowCopy_)}else i=rw(n,!0);return mm(i,(u,l)=>{tA(i,u,iA(l))}),r&&(r.finalized_=!1),i}var Zi=new Ez,So=Zi.produce;Zi.produceWithPatches.bind(Zi);Zi.setAutoFreeze.bind(Zi);Zi.setUseStrictShallowCopy.bind(Zi);Zi.applyPatches.bind(Zi);Zi.createDraft.bind(Zi);Zi.finishDraft.bind(Zi);var wz={},Rz=(n,r,i)=>{if(r.length===1&&r[0]===i){let u=!1;try{const l={};n(l)===l&&(u=!0)}catch{}if(u){let l;try{throw new Error}catch(d){({stack:l}=d)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
235
235
|
\`createSelector([state => state.todos], todos => todos)\`
|
|
236
236
|
This could lead to inefficient memoization and unnecessary re-renders.
|
|
237
237
|
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:l})}}},Tz=(n,r,i)=>{const{memoize:u,memoizeOptions:l}=r,{inputSelectorResults:d,inputSelectorResultsCopy:h}=n,v=u(()=>({}),...l);if(!(v.apply(null,d)===v.apply(null,h))){let C;try{throw new Error}catch(x){({stack:C}=x)}console.warn(`An input selector returned a different result when passed same arguments.
|
|
238
238
|
This means your output selector will likely run more frequently than intended.
|
|
239
239
|
Avoid returning a new reference inside your input selector, e.g.
|
|
240
|
-
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:i,firstInputs:d,secondInputs:h,stack:C})}},Iz={inputStabilityCheck:"once",identityFunctionCheck:"once"};function Nz(n,r=`expected a function, instead received ${typeof n}`){if(typeof n!="function")throw new TypeError(r)}function _z(n,r=`expected an object, instead received ${typeof n}`){if(typeof n!="object")throw new TypeError(r)}function Oz(n,r="expected all items to be functions, instead received the following types: "){if(!n.every(i=>typeof i=="function")){const i=n.map(u=>typeof u=="function"?`function ${u.name||"unnamed"}()`:typeof u).join(", ");throw new TypeError(`${r}[${i}]`)}}var XN=n=>Array.isArray(n)?n:[n];function Az(n){const r=Array.isArray(n[0])?n[0]:n;return Oz(r,"createSelector expects all input-selectors to be functions, but received the following types: "),r}function YN(n,r){const i=[],{length:u}=n;for(let l=0;l<u;l++)i.push(n[l].apply(null,r));return i}var jz=(n,r)=>{const{identityFunctionCheck:i,inputStabilityCheck:u}={...Iz,...r};return{identityFunctionCheck:{shouldRun:i==="always"||i==="once"&&n,run:Rz},inputStabilityCheck:{shouldRun:u==="always"||u==="once"&&n,run:Tz}}},Dz=class{constructor(n){this.value=n}deref(){return this.value}},kz=typeof WeakRef<"u"?WeakRef:Dz,Mz=0,ZN=1;function Nb(){return{s:Mz,v:void 0,o:null,p:null}}function Yw(n,r={}){let i=Nb();const{resultEqualityCheck:u}=r;let l,d=0;function h(){var
|
|
240
|
+
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:i,firstInputs:d,secondInputs:h,stack:C})}},Iz={inputStabilityCheck:"once",identityFunctionCheck:"once"};function Nz(n,r=`expected a function, instead received ${typeof n}`){if(typeof n!="function")throw new TypeError(r)}function _z(n,r=`expected an object, instead received ${typeof n}`){if(typeof n!="object")throw new TypeError(r)}function Oz(n,r="expected all items to be functions, instead received the following types: "){if(!n.every(i=>typeof i=="function")){const i=n.map(u=>typeof u=="function"?`function ${u.name||"unnamed"}()`:typeof u).join(", ");throw new TypeError(`${r}[${i}]`)}}var XN=n=>Array.isArray(n)?n:[n];function Az(n){const r=Array.isArray(n[0])?n[0]:n;return Oz(r,"createSelector expects all input-selectors to be functions, but received the following types: "),r}function YN(n,r){const i=[],{length:u}=n;for(let l=0;l<u;l++)i.push(n[l].apply(null,r));return i}var jz=(n,r)=>{const{identityFunctionCheck:i,inputStabilityCheck:u}={...Iz,...r};return{identityFunctionCheck:{shouldRun:i==="always"||i==="once"&&n,run:Rz},inputStabilityCheck:{shouldRun:u==="always"||u==="once"&&n,run:Tz}}},Dz=class{constructor(n){this.value=n}deref(){return this.value}},kz=typeof WeakRef<"u"?WeakRef:Dz,Mz=0,ZN=1;function Nb(){return{s:Mz,v:void 0,o:null,p:null}}function Yw(n,r={}){let i=Nb();const{resultEqualityCheck:u}=r;let l,d=0;function h(){var R;let v=i;const{length:y}=arguments;for(let T=0,A=y;T<A;T++){const N=arguments[T];if(typeof N=="function"||typeof N=="object"&&N!==null){let O=v.o;O===null&&(v.o=O=new WeakMap);const _=O.get(N);_===void 0?(v=Nb(),O.set(N,v)):v=_}else{let O=v.p;O===null&&(v.p=O=new Map);const _=O.get(N);_===void 0?(v=Nb(),O.set(N,v)):v=_}}const C=v;let x;if(v.s===ZN?x=v.v:(x=n.apply(null,arguments),d++),C.s=ZN,u){const T=((R=l==null?void 0:l.deref)==null?void 0:R.call(l))??l;T!=null&&u(T,x)&&(x=T,d!==0&&d--),l=typeof x=="object"&&x!==null||typeof x=="function"?new kz(x):x}return C.v=x,x}return h.clearCache=()=>{i=Nb(),h.resetResultsCount()},h.resultsCount=()=>d,h.resetResultsCount=()=>{d=0},h}function oA(n,...r){const i=typeof n=="function"?{memoize:n,memoizeOptions:r}:n,u=(...l)=>{let d=0,h=0,v,y={},C=l.pop();typeof C=="object"&&(y=C,C=l.pop()),Nz(C,`createSelector expects an output function after the inputs, but received: [${typeof C}]`);const x={...i,...y},{memoize:R,memoizeOptions:T=[],argsMemoize:A=Yw,argsMemoizeOptions:N=[],devModeChecks:O={}}=x,_=XN(T),L=XN(N),F=Az(l),V=R(function(){return d++,C.apply(null,arguments)},..._);let H=!0;const z=A(function(){h++;const J=YN(F,arguments);if(v=V.apply(null,J),wz.NODE_ENV!=="production"){const{identityFunctionCheck:q,inputStabilityCheck:Re}=jz(H,O);if(q.shouldRun&&q.run(C,J,v),Re.shouldRun){const he=YN(F,arguments);Re.run({inputSelectorResults:J,inputSelectorResultsCopy:he},{memoize:R,memoizeOptions:_},arguments)}H&&(H=!1)}return v},...L);return Object.assign(z,{resultFunc:C,memoizedResultFunc:V,dependencies:F,dependencyRecomputations:()=>h,resetDependencyRecomputations:()=>{h=0},lastResult:()=>v,recomputations:()=>d,resetRecomputations:()=>{d=0},memoize:R,argsMemoize:A})};return Object.assign(u,{withTypes:()=>u}),u}var Lz=oA(Yw),Pz=Object.assign((n,r=Lz)=>{_z(n,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof n}`);const i=Object.keys(n),u=i.map(d=>n[d]);return r(u,(...d)=>d.reduce((h,v,y)=>(h[i[y]]=v,h),{}))},{withTypes:()=>Pz});function sA(n){return({dispatch:i,getState:u})=>l=>d=>typeof d=="function"?d(i,u,n):l(d)}var Fz=sA(),Vz=sA,Ft={},Bz=(...n)=>{const r=oA(...n),i=Object.assign((...u)=>{const l=r(...u),d=(h,...v)=>l(mc(h)?aA(h):h,...v);return Object.assign(d,l),d},{withTypes:()=>i});return i};Bz(Yw);var zz=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?i0:i0.apply(null,arguments)},lA=n=>n&&typeof n.match=="function";function Kl(n,r){function i(...u){if(r){let l=r(...u);if(!l)throw new Error(Ft.NODE_ENV==="production"?Rn(0):"prepareAction did not return an object");return{type:n,payload:l.payload,..."meta"in l&&{meta:l.meta},..."error"in l&&{error:l.error}}}return{type:n,payload:u[0]}}return i.toString=()=>`${n}`,i.type=n,i.match=u=>QO(u)&&u.type===n,i}function Hz(n){return typeof n=="function"&&"type"in n&&lA(n)}function Uz(n){const r=n?`${n}`.split("/"):[],i=r[r.length-1]||"actionCreator";return`Detected an action creator with type "${n||"unknown"}" being dispatched.
|
|
241
241
|
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${i}())\` instead of \`dispatch(${i})\`. This is necessary even if the action has no payload.`}function $z(n={}){if(Ft.NODE_ENV==="production")return()=>i=>u=>i(u);const{isActionCreator:r=Hz}=n;return()=>i=>u=>(r(u)&&console.warn(Uz(u.type)),i(u))}function uA(n,r){let i=0;return{measureTime(u){const l=Date.now();try{return u()}finally{const d=Date.now();i+=d-l}},warnIfExceeded(){i>n&&console.warn(`${r} took ${i}ms, which is more than the warning threshold of ${n}ms.
|
|
242
242
|
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
|
|
243
|
-
It is disabled in production builds, so you don't need to worry about that.`)}}}var cA=class fm extends Array{constructor(...r){super(...r),Object.setPrototypeOf(this,fm.prototype)}static get[Symbol.species](){return fm}concat(...r){return super.concat.apply(this,r)}prepend(...r){return r.length===1&&Array.isArray(r[0])?new fm(...r[0].concat(this)):new fm(...r.concat(this))}};function JN(n){return tu(n)?So(n,()=>{}):n}function qN(n,r,i){if(n.has(r)){let l=n.get(r);return i.update&&(l=i.update(l,r,n),n.set(r,l)),l}if(!i.insert)throw new Error(Ft.NODE_ENV==="production"?Rn(10):"No insert provided for key not already in map");const u=i.insert(r,n);return n.set(r,u),u}function Gz(n){return typeof n!="object"||n==null||Object.isFrozen(n)}function Wz(n,r,i){const u=fA(n,r,i);return{detectMutations(){return dA(n,r,u,i)}}}function fA(n,r=[],i,u="",l=new Set){const d={value:i};if(!n(i)&&!l.has(i)){l.add(i),d.children={};for(const h in i){const v=u?u+"."+h:h;r.length&&r.indexOf(v)!==-1||(d.children[h]=fA(n,r,i[h],v))}}return d}function dA(n,r=[],i,u,l=!1,d=""){const h=i?i.value:void 0,v=h===u;if(l&&!v&&!Number.isNaN(u))return{wasMutated:!0,path:d};if(n(h)||n(u))return{wasMutated:!1};const y={};for(let x in i.children)y[x]=!0;for(let x in u)y[x]=!0;const C=r.length>0;for(let x in y){const
|
|
243
|
+
It is disabled in production builds, so you don't need to worry about that.`)}}}var cA=class fm extends Array{constructor(...r){super(...r),Object.setPrototypeOf(this,fm.prototype)}static get[Symbol.species](){return fm}concat(...r){return super.concat.apply(this,r)}prepend(...r){return r.length===1&&Array.isArray(r[0])?new fm(...r[0].concat(this)):new fm(...r.concat(this))}};function JN(n){return tu(n)?So(n,()=>{}):n}function qN(n,r,i){if(n.has(r)){let l=n.get(r);return i.update&&(l=i.update(l,r,n),n.set(r,l)),l}if(!i.insert)throw new Error(Ft.NODE_ENV==="production"?Rn(10):"No insert provided for key not already in map");const u=i.insert(r,n);return n.set(r,u),u}function Gz(n){return typeof n!="object"||n==null||Object.isFrozen(n)}function Wz(n,r,i){const u=fA(n,r,i);return{detectMutations(){return dA(n,r,u,i)}}}function fA(n,r=[],i,u="",l=new Set){const d={value:i};if(!n(i)&&!l.has(i)){l.add(i),d.children={};for(const h in i){const v=u?u+"."+h:h;r.length&&r.indexOf(v)!==-1||(d.children[h]=fA(n,r,i[h],v))}}return d}function dA(n,r=[],i,u,l=!1,d=""){const h=i?i.value:void 0,v=h===u;if(l&&!v&&!Number.isNaN(u))return{wasMutated:!0,path:d};if(n(h)||n(u))return{wasMutated:!1};const y={};for(let x in i.children)y[x]=!0;for(let x in u)y[x]=!0;const C=r.length>0;for(let x in y){const R=d?d+"."+x:x;if(C&&r.some(N=>N instanceof RegExp?N.test(R):R===N))continue;const T=dA(n,r,i.children[x],u[x],v,R);if(T.wasMutated)return T}return{wasMutated:!1}}function Xz(n={}){if(Ft.NODE_ENV==="production")return()=>r=>i=>r(i);{let r=function(v,y,C,x){return JSON.stringify(v,i(y,x),C)},i=function(v,y){let C=[],x=[];return y||(y=function(R,T){return C[0]===T?"[Circular ~]":"[Circular ~."+x.slice(0,C.indexOf(T)).join(".")+"]"}),function(R,T){if(C.length>0){var A=C.indexOf(this);~A?C.splice(A+1):C.push(this),~A?x.splice(A,1/0,R):x.push(R),~C.indexOf(T)&&(T=y.call(this,R,T))}else C.push(T);return v==null?T:v.call(this,R,T)}},{isImmutable:u=Gz,ignoredPaths:l,warnAfter:d=32}=n;const h=Wz.bind(null,u,l);return({getState:v})=>{let y=v(),C=h(y),x;return R=>T=>{const A=uA(d,"ImmutableStateInvariantMiddleware");A.measureTime(()=>{if(y=v(),x=C.detectMutations(),C=h(y),x.wasMutated)throw new Error(Ft.NODE_ENV==="production"?Rn(19):`A state mutation was detected between dispatches, in the path '${x.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const N=R(T);return A.measureTime(()=>{if(y=v(),x=C.detectMutations(),C=h(y),x.wasMutated)throw new Error(Ft.NODE_ENV==="production"?Rn(20):`A state mutation was detected inside a dispatch, in the path: ${x.path||""}. Take a look at the reducer(s) handling the action ${r(T)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),A.warnIfExceeded(),N}}}}function pA(n){const r=typeof n;return n==null||r==="string"||r==="boolean"||r==="number"||Array.isArray(n)||Nm(n)}function lw(n,r="",i=pA,u,l=[],d){let h;if(!i(n))return{keyPath:r||"<root>",value:n};if(typeof n!="object"||n===null||d!=null&&d.has(n))return!1;const v=u!=null?u(n):Object.entries(n),y=l.length>0;for(const[C,x]of v){const R=r?r+"."+C:C;if(!(y&&l.some(A=>A instanceof RegExp?A.test(R):R===A))){if(!i(x))return{keyPath:R,value:x};if(typeof x=="object"&&(h=lw(x,R,i,u,l,d),h))return h}}return d&&vA(n)&&d.add(n),!1}function vA(n){if(!Object.isFrozen(n))return!1;for(const r of Object.values(n))if(!(typeof r!="object"||r===null)&&!vA(r))return!1;return!0}function Yz(n={}){if(Ft.NODE_ENV==="production")return()=>r=>i=>r(i);{const{isSerializable:r=pA,getEntries:i,ignoredActions:u=[],ignoredActionPaths:l=["meta.arg","meta.baseQueryMeta"],ignoredPaths:d=[],warnAfter:h=32,ignoreState:v=!1,ignoreActions:y=!1,disableCache:C=!1}=n,x=!C&&WeakSet?new WeakSet:void 0;return R=>T=>A=>{if(!QO(A))return T(A);const N=T(A),O=uA(h,"SerializableStateInvariantMiddleware");return!y&&!(u.length&&u.indexOf(A.type)!==-1)&&O.measureTime(()=>{const _=lw(A,"",r,i,l,x);if(_){const{keyPath:L,value:F}=_;console.error(`A non-serializable value was detected in an action, in the path: \`${L}\`. Value:`,F,`
|
|
244
244
|
Take a look at the logic that dispatched this action: `,A,`
|
|
245
245
|
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
|
|
246
|
-
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),v||(O.measureTime(()=>{const _=
|
|
246
|
+
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),v||(O.measureTime(()=>{const _=R.getState(),L=lw(_,"",r,i,d,x);if(L){const{keyPath:F,value:V}=L;console.error(`A non-serializable value was detected in the state, in the path: \`${F}\`. Value:`,V,`
|
|
247
247
|
Take a look at the reducer(s) handling this action type: ${A.type}.
|
|
248
|
-
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),O.warnIfExceeded()),N}}}function _b(n){return typeof n=="boolean"}var Zz=()=>function(r){const{thunk:i=!0,immutableCheck:u=!0,serializableCheck:l=!0,actionCreatorCheck:d=!0}=r??{};let h=new cA;if(i&&(_b(i)?h.push(Fz):h.push(Vz(i.extraArgument))),Ft.NODE_ENV!=="production"){if(u){let v={};_b(u)||(v=u),h.unshift(Xz(v))}if(l){let v={};_b(l)||(v=l),h.push(Yz(v))}if(d){let v={};_b(d)||(v=d),h.unshift($z(v))}}return h},Jz="RTK_autoBatch",hA=n=>r=>{setTimeout(r,n)},qz=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:hA(10),Qz=(n={type:"raf"})=>r=>(...i)=>{const u=r(...i);let l=!0,d=!1,h=!1;const v=new Set,y=n.type==="tick"?queueMicrotask:n.type==="raf"?qz:n.type==="callback"?n.queueNotification:hA(n.timeout),C=()=>{h=!1,d&&(d=!1,v.forEach(x=>x()))};return Object.assign({},u,{subscribe(x){const w=()=>l&&x(),T=u.subscribe(w);return v.add(x),()=>{T(),v.delete(x)}},dispatch(x){var w;try{return l=!((w=x==null?void 0:x.meta)!=null&&w[Jz]),d=!l,d&&(h||(h=!0,y(C))),u.dispatch(x)}finally{l=!0}}})},Kz=n=>function(i){const{autoBatch:u=!0}=i??{};let l=new cA(n);return u&&l.push(Qz(typeof u=="object"?u:void 0)),l},fc=Ft.NODE_ENV==="production";function Om(n){const r=Zz(),{reducer:i=void 0,middleware:u,devTools:l=!0,preloadedState:d=void 0,enhancers:h=void 0}=n||{};let v;if(typeof i=="function")v=i;else if(Nm(i))v=dz(i);else throw new Error(Ft.NODE_ENV==="production"?Rn(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(!fc&&u&&typeof u!="function")throw new Error(Ft.NODE_ENV==="production"?Rn(2):"`middleware` field must be a callback");let y;if(typeof u=="function"){if(y=u(r),!fc&&!Array.isArray(y))throw new Error(Ft.NODE_ENV==="production"?Rn(3):"when using a middleware builder function, an array of middleware must be returned")}else y=r();if(!fc&&y.some(N=>typeof N!="function"))throw new Error(Ft.NODE_ENV==="production"?Rn(4):"each middleware provided to configureStore must be a function");let C=i0;l&&(C=zz({trace:!fc,...typeof l=="object"&&l}));const x=pz(...y),w=Kz(x);if(!fc&&h&&typeof h!="function")throw new Error(Ft.NODE_ENV==="production"?Rn(5):"`enhancers` field must be a callback");let T=typeof h=="function"?h(w):w();if(!fc&&!Array.isArray(T))throw new Error(Ft.NODE_ENV==="production"?Rn(6):"`enhancers` callback must return an array");if(!fc&&T.some(N=>typeof N!="function"))throw new Error(Ft.NODE_ENV==="production"?Rn(7):"each enhancer provided to configureStore must be a function");!fc&&y.length&&!T.includes(x)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const A=C(...T);return qO(v,d,A)}function mA(n){const r={},i=[];let u;const l={addCase(d,h){if(Ft.NODE_ENV!=="production"){if(i.length>0)throw new Error(Ft.NODE_ENV==="production"?Rn(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(u)throw new Error(Ft.NODE_ENV==="production"?Rn(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const v=typeof d=="string"?d:d.type;if(!v)throw new Error(Ft.NODE_ENV==="production"?Rn(28):"`builder.addCase` cannot be called with an empty action type");if(v in r)throw new Error(Ft.NODE_ENV==="production"?Rn(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${v}'`);return r[v]=h,l},addMatcher(d,h){if(Ft.NODE_ENV!=="production"&&u)throw new Error(Ft.NODE_ENV==="production"?Rn(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return i.push({matcher:d,reducer:h}),l},addDefaultCase(d){if(Ft.NODE_ENV!=="production"&&u)throw new Error(Ft.NODE_ENV==="production"?Rn(31):"`builder.addDefaultCase` can only be called once");return u=d,l}};return n(l),[r,i,u]}function eH(n){return typeof n=="function"}function tH(n,r){if(Ft.NODE_ENV!=="production"&&typeof r=="object")throw new Error(Ft.NODE_ENV==="production"?Rn(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[i,u,l]=mA(r),d;if(eH(n))d=()=>JN(n());else{const v=JN(n);d=()=>v}function h(v=d(),y){let C=[i[y.type],...u.filter(({matcher:x})=>x(y)).map(({reducer:x})=>x)];return C.filter(x=>!!x).length===0&&(C=[l]),C.reduce((x,w)=>{if(w)if(mc(x)){const A=w(x,y);return A===void 0?x:A}else{if(tu(x))return So(x,T=>w(T,y));{const T=w(x,y);if(T===void 0){if(x===null)return x;throw new Error(Ft.NODE_ENV==="production"?Rn(9):"A case reducer on a non-draftable value must not return undefined")}return T}}return x},v)}return h.getInitialState=d,h}var nH="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",gA=(n=21)=>{let r="",i=n;for(;i--;)r+=nH[Math.random()*64|0];return r},rH=(n,r)=>lA(n)?n.match(r):n(r);function aH(...n){return r=>n.some(i=>rH(i,r))}var iH=["name","message","stack","code"],TE=class{constructor(n,r){CE(this,"_type");this.payload=n,this.meta=r}},QN=class{constructor(n,r){CE(this,"_type");this.payload=n,this.meta=r}},oH=n=>{if(typeof n=="object"&&n!==null){const r={};for(const i of iH)typeof n[i]=="string"&&(r[i]=n[i]);return r}return{message:String(n)}},Di=(()=>{function n(r,i,u){const l=Kl(r+"/fulfilled",(y,C,x,w)=>({payload:y,meta:{...w||{},arg:x,requestId:C,requestStatus:"fulfilled"}})),d=Kl(r+"/pending",(y,C,x)=>({payload:void 0,meta:{...x||{},arg:C,requestId:y,requestStatus:"pending"}})),h=Kl(r+"/rejected",(y,C,x,w,T)=>({payload:w,error:(u&&u.serializeError||oH)(y||"Rejected"),meta:{...T||{},arg:x,requestId:C,rejectedWithValue:!!w,requestStatus:"rejected",aborted:(y==null?void 0:y.name)==="AbortError",condition:(y==null?void 0:y.name)==="ConditionError"}}));function v(y){return(C,x,w)=>{const T=u!=null&&u.idGenerator?u.idGenerator(y):gA(),A=new AbortController;let N,O;function _(F){O=F,A.abort()}const L=async function(){var H,z;let F;try{let U=(H=u==null?void 0:u.condition)==null?void 0:H.call(u,y,{getState:x,extra:w});if(lH(U)&&(U=await U),U===!1||A.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const J=new Promise((q,Re)=>{N=()=>{Re({name:"AbortError",message:O||"Aborted"})},A.signal.addEventListener("abort",N)});C(d(T,y,(z=u==null?void 0:u.getPendingMeta)==null?void 0:z.call(u,{requestId:T,arg:y},{getState:x,extra:w}))),F=await Promise.race([J,Promise.resolve(i(y,{dispatch:C,getState:x,extra:w,requestId:T,signal:A.signal,abort:_,rejectWithValue:(q,Re)=>new TE(q,Re),fulfillWithValue:(q,Re)=>new QN(q,Re)})).then(q=>{if(q instanceof TE)throw q;return q instanceof QN?l(q.payload,T,y,q.meta):l(q,T,y)})])}catch(U){F=U instanceof TE?h(null,T,y,U.payload,U.meta):h(U,T,y)}finally{N&&A.signal.removeEventListener("abort",N)}return u&&!u.dispatchConditionRejection&&h.match(F)&&F.meta.condition||C(F),F}();return Object.assign(L,{abort:_,requestId:T,arg:y,unwrap(){return L.then(sH)}})}}return Object.assign(v,{pending:d,rejected:h,fulfilled:l,settled:aH(h,l),typePrefix:r})}return n.withTypes=()=>n,n})();function sH(n){if(n.meta&&n.meta.rejectedWithValue)throw n.payload;if(n.error)throw n.error;return n.payload}function lH(n){return n!==null&&typeof n=="object"&&typeof n.then=="function"}var uH=Symbol.for("rtk-slice-createasyncthunk");function cH(n,r){return`${n}/${r}`}function fH({creators:n}={}){var i;const r=(i=n==null?void 0:n.asyncThunk)==null?void 0:i[uH];return function(l){const{name:d,reducerPath:h=d}=l;if(!d)throw new Error(Ft.NODE_ENV==="production"?Rn(11):"`name` is a required option for createSlice");typeof process<"u"&&Ft.NODE_ENV==="development"&&l.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const v=(typeof l.reducers=="function"?l.reducers(pH()):l.reducers)||{},y=Object.keys(v),C={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},x={addCase(V,H){const z=typeof V=="string"?V:V.type;if(!z)throw new Error(Ft.NODE_ENV==="production"?Rn(12):"`context.addCase` cannot be called with an empty action type");if(z in C.sliceCaseReducersByType)throw new Error(Ft.NODE_ENV==="production"?Rn(13):"`context.addCase` cannot be called with two reducers for the same action type: "+z);return C.sliceCaseReducersByType[z]=H,x},addMatcher(V,H){return C.sliceMatchers.push({matcher:V,reducer:H}),x},exposeAction(V,H){return C.actionCreators[V]=H,x},exposeCaseReducer(V,H){return C.sliceCaseReducersByName[V]=H,x}};y.forEach(V=>{const H=v[V],z={reducerName:V,type:cH(d,V),createNotation:typeof l.reducers=="function"};hH(H)?gH(z,H,x,r):vH(z,H,x)});function w(){if(Ft.NODE_ENV!=="production"&&typeof l.extraReducers=="object")throw new Error(Ft.NODE_ENV==="production"?Rn(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[V={},H=[],z=void 0]=typeof l.extraReducers=="function"?mA(l.extraReducers):[l.extraReducers],U={...V,...C.sliceCaseReducersByType};return tH(l.initialState,J=>{for(let q in U)J.addCase(q,U[q]);for(let q of C.sliceMatchers)J.addMatcher(q.matcher,q.reducer);for(let q of H)J.addMatcher(q.matcher,q.reducer);z&&J.addDefaultCase(z)})}const T=V=>V,A=new Map;let N;function O(V,H){return N||(N=w()),N(V,H)}function _(){return N||(N=w()),N.getInitialState()}function L(V,H=!1){function z(J){let q=J[V];if(typeof q>"u"){if(H)q=_();else if(Ft.NODE_ENV!=="production")throw new Error(Ft.NODE_ENV==="production"?Rn(15):"selectSlice returned undefined for an uninjected slice reducer")}return q}function U(J=T){const q=qN(A,H,{insert:()=>new WeakMap});return qN(q,J,{insert:()=>{const Re={};for(const[he,ge]of Object.entries(l.selectors??{}))Re[he]=dH(ge,J,_,H);return Re}})}return{reducerPath:V,getSelectors:U,get selectors(){return U(z)},selectSlice:z}}const F={name:d,reducer:O,actions:C.actionCreators,caseReducers:C.sliceCaseReducersByName,getInitialState:_,...L(h),injectInto(V,{reducerPath:H,...z}={}){const U=H??h;return V.inject({reducerPath:U,reducer:O},z),{...F,...L(U,!0)}}};return F}}function dH(n,r,i,u){function l(d,...h){let v=r(d);if(typeof v>"u"){if(u)v=i();else if(Ft.NODE_ENV!=="production")throw new Error(Ft.NODE_ENV==="production"?Rn(16):"selectState returned undefined for an uninjected slice reducer")}return n(v,...h)}return l.unwrapped=n,l}var D0=fH();function pH(){function n(r,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:r,...i}}return n.withTypes=()=>n,{reducer(r){return Object.assign({[r.name](...i){return r(...i)}}[r.name],{_reducerDefinitionType:"reducer"})},preparedReducer(r,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:r,reducer:i}},asyncThunk:n}}function vH({type:n,reducerName:r,createNotation:i},u,l){let d,h;if("reducer"in u){if(i&&!mH(u))throw new Error(Ft.NODE_ENV==="production"?Rn(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");d=u.reducer,h=u.prepare}else d=u;l.addCase(n,d).exposeCaseReducer(r,d).exposeAction(r,h?Kl(n,h):Kl(n))}function hH(n){return n._reducerDefinitionType==="asyncThunk"}function mH(n){return n._reducerDefinitionType==="reducerWithPrepare"}function gH({type:n,reducerName:r},i,u,l){if(!l)throw new Error(Ft.NODE_ENV==="production"?Rn(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:d,fulfilled:h,pending:v,rejected:y,settled:C,options:x}=i,w=l(n,d,x);u.exposeAction(r,w),h&&u.addCase(w.fulfilled,h),v&&u.addCase(w.pending,v),y&&u.addCase(w.rejected,y),C&&u.addMatcher(w.settled,C),u.exposeCaseReducer(r,{fulfilled:h||Ob,pending:v||Ob,rejected:y||Ob,settled:C||Ob})}function Ob(){}var yH=(n,r)=>{if(typeof n!="function")throw new Error(Ft.NODE_ENV==="production"?Rn(32):`${r} is not a function`)},Zw="listenerMiddleware",bH=n=>{let{type:r,actionCreator:i,matcher:u,predicate:l,effect:d}=n;if(r)l=Kl(r).match;else if(i)r=i.type,l=i.match;else if(u)l=u;else if(!l)throw new Error(Ft.NODE_ENV==="production"?Rn(21):"Creating or removing a listener requires one of the known fields for matching an action");return yH(d,"options.listener"),{predicate:l,type:r,effect:d}},CH=Object.assign(n=>{const{type:r,predicate:i,effect:u}=bH(n);return{id:gA(),effect:u,type:r,predicate:i,pending:new Set,unsubscribe:()=>{throw new Error(Ft.NODE_ENV==="production"?Rn(22):"Unsubscribe not initialized")}}},{withTypes:()=>CH}),xH=Object.assign(Kl(`${Zw}/add`),{withTypes:()=>xH});Kl(`${Zw}/removeAll`);var SH=Object.assign(Kl(`${Zw}/remove`),{withTypes:()=>SH});function Rn(n){return`Minified Redux Toolkit error #${n}; visit https://redux-toolkit.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}var M=Qf();const kr=qp(M),l0=XB({__proto__:null,default:kr},[M]);var uw={exports:{}},IE={};/**
|
|
248
|
+
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),O.warnIfExceeded()),N}}}function _b(n){return typeof n=="boolean"}var Zz=()=>function(r){const{thunk:i=!0,immutableCheck:u=!0,serializableCheck:l=!0,actionCreatorCheck:d=!0}=r??{};let h=new cA;if(i&&(_b(i)?h.push(Fz):h.push(Vz(i.extraArgument))),Ft.NODE_ENV!=="production"){if(u){let v={};_b(u)||(v=u),h.unshift(Xz(v))}if(l){let v={};_b(l)||(v=l),h.push(Yz(v))}if(d){let v={};_b(d)||(v=d),h.unshift($z(v))}}return h},Jz="RTK_autoBatch",hA=n=>r=>{setTimeout(r,n)},qz=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:hA(10),Qz=(n={type:"raf"})=>r=>(...i)=>{const u=r(...i);let l=!0,d=!1,h=!1;const v=new Set,y=n.type==="tick"?queueMicrotask:n.type==="raf"?qz:n.type==="callback"?n.queueNotification:hA(n.timeout),C=()=>{h=!1,d&&(d=!1,v.forEach(x=>x()))};return Object.assign({},u,{subscribe(x){const R=()=>l&&x(),T=u.subscribe(R);return v.add(x),()=>{T(),v.delete(x)}},dispatch(x){var R;try{return l=!((R=x==null?void 0:x.meta)!=null&&R[Jz]),d=!l,d&&(h||(h=!0,y(C))),u.dispatch(x)}finally{l=!0}}})},Kz=n=>function(i){const{autoBatch:u=!0}=i??{};let l=new cA(n);return u&&l.push(Qz(typeof u=="object"?u:void 0)),l},fc=Ft.NODE_ENV==="production";function Om(n){const r=Zz(),{reducer:i=void 0,middleware:u,devTools:l=!0,preloadedState:d=void 0,enhancers:h=void 0}=n||{};let v;if(typeof i=="function")v=i;else if(Nm(i))v=dz(i);else throw new Error(Ft.NODE_ENV==="production"?Rn(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(!fc&&u&&typeof u!="function")throw new Error(Ft.NODE_ENV==="production"?Rn(2):"`middleware` field must be a callback");let y;if(typeof u=="function"){if(y=u(r),!fc&&!Array.isArray(y))throw new Error(Ft.NODE_ENV==="production"?Rn(3):"when using a middleware builder function, an array of middleware must be returned")}else y=r();if(!fc&&y.some(N=>typeof N!="function"))throw new Error(Ft.NODE_ENV==="production"?Rn(4):"each middleware provided to configureStore must be a function");let C=i0;l&&(C=zz({trace:!fc,...typeof l=="object"&&l}));const x=pz(...y),R=Kz(x);if(!fc&&h&&typeof h!="function")throw new Error(Ft.NODE_ENV==="production"?Rn(5):"`enhancers` field must be a callback");let T=typeof h=="function"?h(R):R();if(!fc&&!Array.isArray(T))throw new Error(Ft.NODE_ENV==="production"?Rn(6):"`enhancers` callback must return an array");if(!fc&&T.some(N=>typeof N!="function"))throw new Error(Ft.NODE_ENV==="production"?Rn(7):"each enhancer provided to configureStore must be a function");!fc&&y.length&&!T.includes(x)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const A=C(...T);return qO(v,d,A)}function mA(n){const r={},i=[];let u;const l={addCase(d,h){if(Ft.NODE_ENV!=="production"){if(i.length>0)throw new Error(Ft.NODE_ENV==="production"?Rn(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(u)throw new Error(Ft.NODE_ENV==="production"?Rn(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const v=typeof d=="string"?d:d.type;if(!v)throw new Error(Ft.NODE_ENV==="production"?Rn(28):"`builder.addCase` cannot be called with an empty action type");if(v in r)throw new Error(Ft.NODE_ENV==="production"?Rn(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${v}'`);return r[v]=h,l},addMatcher(d,h){if(Ft.NODE_ENV!=="production"&&u)throw new Error(Ft.NODE_ENV==="production"?Rn(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return i.push({matcher:d,reducer:h}),l},addDefaultCase(d){if(Ft.NODE_ENV!=="production"&&u)throw new Error(Ft.NODE_ENV==="production"?Rn(31):"`builder.addDefaultCase` can only be called once");return u=d,l}};return n(l),[r,i,u]}function eH(n){return typeof n=="function"}function tH(n,r){if(Ft.NODE_ENV!=="production"&&typeof r=="object")throw new Error(Ft.NODE_ENV==="production"?Rn(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[i,u,l]=mA(r),d;if(eH(n))d=()=>JN(n());else{const v=JN(n);d=()=>v}function h(v=d(),y){let C=[i[y.type],...u.filter(({matcher:x})=>x(y)).map(({reducer:x})=>x)];return C.filter(x=>!!x).length===0&&(C=[l]),C.reduce((x,R)=>{if(R)if(mc(x)){const A=R(x,y);return A===void 0?x:A}else{if(tu(x))return So(x,T=>R(T,y));{const T=R(x,y);if(T===void 0){if(x===null)return x;throw new Error(Ft.NODE_ENV==="production"?Rn(9):"A case reducer on a non-draftable value must not return undefined")}return T}}return x},v)}return h.getInitialState=d,h}var nH="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",gA=(n=21)=>{let r="",i=n;for(;i--;)r+=nH[Math.random()*64|0];return r},rH=(n,r)=>lA(n)?n.match(r):n(r);function aH(...n){return r=>n.some(i=>rH(i,r))}var iH=["name","message","stack","code"],TE=class{constructor(n,r){CE(this,"_type");this.payload=n,this.meta=r}},QN=class{constructor(n,r){CE(this,"_type");this.payload=n,this.meta=r}},oH=n=>{if(typeof n=="object"&&n!==null){const r={};for(const i of iH)typeof n[i]=="string"&&(r[i]=n[i]);return r}return{message:String(n)}},Di=(()=>{function n(r,i,u){const l=Kl(r+"/fulfilled",(y,C,x,R)=>({payload:y,meta:{...R||{},arg:x,requestId:C,requestStatus:"fulfilled"}})),d=Kl(r+"/pending",(y,C,x)=>({payload:void 0,meta:{...x||{},arg:C,requestId:y,requestStatus:"pending"}})),h=Kl(r+"/rejected",(y,C,x,R,T)=>({payload:R,error:(u&&u.serializeError||oH)(y||"Rejected"),meta:{...T||{},arg:x,requestId:C,rejectedWithValue:!!R,requestStatus:"rejected",aborted:(y==null?void 0:y.name)==="AbortError",condition:(y==null?void 0:y.name)==="ConditionError"}}));function v(y){return(C,x,R)=>{const T=u!=null&&u.idGenerator?u.idGenerator(y):gA(),A=new AbortController;let N,O;function _(F){O=F,A.abort()}const L=async function(){var H,z;let F;try{let U=(H=u==null?void 0:u.condition)==null?void 0:H.call(u,y,{getState:x,extra:R});if(lH(U)&&(U=await U),U===!1||A.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const J=new Promise((q,Re)=>{N=()=>{Re({name:"AbortError",message:O||"Aborted"})},A.signal.addEventListener("abort",N)});C(d(T,y,(z=u==null?void 0:u.getPendingMeta)==null?void 0:z.call(u,{requestId:T,arg:y},{getState:x,extra:R}))),F=await Promise.race([J,Promise.resolve(i(y,{dispatch:C,getState:x,extra:R,requestId:T,signal:A.signal,abort:_,rejectWithValue:(q,Re)=>new TE(q,Re),fulfillWithValue:(q,Re)=>new QN(q,Re)})).then(q=>{if(q instanceof TE)throw q;return q instanceof QN?l(q.payload,T,y,q.meta):l(q,T,y)})])}catch(U){F=U instanceof TE?h(null,T,y,U.payload,U.meta):h(U,T,y)}finally{N&&A.signal.removeEventListener("abort",N)}return u&&!u.dispatchConditionRejection&&h.match(F)&&F.meta.condition||C(F),F}();return Object.assign(L,{abort:_,requestId:T,arg:y,unwrap(){return L.then(sH)}})}}return Object.assign(v,{pending:d,rejected:h,fulfilled:l,settled:aH(h,l),typePrefix:r})}return n.withTypes=()=>n,n})();function sH(n){if(n.meta&&n.meta.rejectedWithValue)throw n.payload;if(n.error)throw n.error;return n.payload}function lH(n){return n!==null&&typeof n=="object"&&typeof n.then=="function"}var uH=Symbol.for("rtk-slice-createasyncthunk");function cH(n,r){return`${n}/${r}`}function fH({creators:n}={}){var i;const r=(i=n==null?void 0:n.asyncThunk)==null?void 0:i[uH];return function(l){const{name:d,reducerPath:h=d}=l;if(!d)throw new Error(Ft.NODE_ENV==="production"?Rn(11):"`name` is a required option for createSlice");typeof process<"u"&&Ft.NODE_ENV==="development"&&l.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const v=(typeof l.reducers=="function"?l.reducers(pH()):l.reducers)||{},y=Object.keys(v),C={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},x={addCase(V,H){const z=typeof V=="string"?V:V.type;if(!z)throw new Error(Ft.NODE_ENV==="production"?Rn(12):"`context.addCase` cannot be called with an empty action type");if(z in C.sliceCaseReducersByType)throw new Error(Ft.NODE_ENV==="production"?Rn(13):"`context.addCase` cannot be called with two reducers for the same action type: "+z);return C.sliceCaseReducersByType[z]=H,x},addMatcher(V,H){return C.sliceMatchers.push({matcher:V,reducer:H}),x},exposeAction(V,H){return C.actionCreators[V]=H,x},exposeCaseReducer(V,H){return C.sliceCaseReducersByName[V]=H,x}};y.forEach(V=>{const H=v[V],z={reducerName:V,type:cH(d,V),createNotation:typeof l.reducers=="function"};hH(H)?gH(z,H,x,r):vH(z,H,x)});function R(){if(Ft.NODE_ENV!=="production"&&typeof l.extraReducers=="object")throw new Error(Ft.NODE_ENV==="production"?Rn(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[V={},H=[],z=void 0]=typeof l.extraReducers=="function"?mA(l.extraReducers):[l.extraReducers],U={...V,...C.sliceCaseReducersByType};return tH(l.initialState,J=>{for(let q in U)J.addCase(q,U[q]);for(let q of C.sliceMatchers)J.addMatcher(q.matcher,q.reducer);for(let q of H)J.addMatcher(q.matcher,q.reducer);z&&J.addDefaultCase(z)})}const T=V=>V,A=new Map;let N;function O(V,H){return N||(N=R()),N(V,H)}function _(){return N||(N=R()),N.getInitialState()}function L(V,H=!1){function z(J){let q=J[V];if(typeof q>"u"){if(H)q=_();else if(Ft.NODE_ENV!=="production")throw new Error(Ft.NODE_ENV==="production"?Rn(15):"selectSlice returned undefined for an uninjected slice reducer")}return q}function U(J=T){const q=qN(A,H,{insert:()=>new WeakMap});return qN(q,J,{insert:()=>{const Re={};for(const[he,ge]of Object.entries(l.selectors??{}))Re[he]=dH(ge,J,_,H);return Re}})}return{reducerPath:V,getSelectors:U,get selectors(){return U(z)},selectSlice:z}}const F={name:d,reducer:O,actions:C.actionCreators,caseReducers:C.sliceCaseReducersByName,getInitialState:_,...L(h),injectInto(V,{reducerPath:H,...z}={}){const U=H??h;return V.inject({reducerPath:U,reducer:O},z),{...F,...L(U,!0)}}};return F}}function dH(n,r,i,u){function l(d,...h){let v=r(d);if(typeof v>"u"){if(u)v=i();else if(Ft.NODE_ENV!=="production")throw new Error(Ft.NODE_ENV==="production"?Rn(16):"selectState returned undefined for an uninjected slice reducer")}return n(v,...h)}return l.unwrapped=n,l}var D0=fH();function pH(){function n(r,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:r,...i}}return n.withTypes=()=>n,{reducer(r){return Object.assign({[r.name](...i){return r(...i)}}[r.name],{_reducerDefinitionType:"reducer"})},preparedReducer(r,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:r,reducer:i}},asyncThunk:n}}function vH({type:n,reducerName:r,createNotation:i},u,l){let d,h;if("reducer"in u){if(i&&!mH(u))throw new Error(Ft.NODE_ENV==="production"?Rn(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");d=u.reducer,h=u.prepare}else d=u;l.addCase(n,d).exposeCaseReducer(r,d).exposeAction(r,h?Kl(n,h):Kl(n))}function hH(n){return n._reducerDefinitionType==="asyncThunk"}function mH(n){return n._reducerDefinitionType==="reducerWithPrepare"}function gH({type:n,reducerName:r},i,u,l){if(!l)throw new Error(Ft.NODE_ENV==="production"?Rn(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:d,fulfilled:h,pending:v,rejected:y,settled:C,options:x}=i,R=l(n,d,x);u.exposeAction(r,R),h&&u.addCase(R.fulfilled,h),v&&u.addCase(R.pending,v),y&&u.addCase(R.rejected,y),C&&u.addMatcher(R.settled,C),u.exposeCaseReducer(r,{fulfilled:h||Ob,pending:v||Ob,rejected:y||Ob,settled:C||Ob})}function Ob(){}var yH=(n,r)=>{if(typeof n!="function")throw new Error(Ft.NODE_ENV==="production"?Rn(32):`${r} is not a function`)},Zw="listenerMiddleware",bH=n=>{let{type:r,actionCreator:i,matcher:u,predicate:l,effect:d}=n;if(r)l=Kl(r).match;else if(i)r=i.type,l=i.match;else if(u)l=u;else if(!l)throw new Error(Ft.NODE_ENV==="production"?Rn(21):"Creating or removing a listener requires one of the known fields for matching an action");return yH(d,"options.listener"),{predicate:l,type:r,effect:d}},CH=Object.assign(n=>{const{type:r,predicate:i,effect:u}=bH(n);return{id:gA(),effect:u,type:r,predicate:i,pending:new Set,unsubscribe:()=>{throw new Error(Ft.NODE_ENV==="production"?Rn(22):"Unsubscribe not initialized")}}},{withTypes:()=>CH}),xH=Object.assign(Kl(`${Zw}/add`),{withTypes:()=>xH});Kl(`${Zw}/removeAll`);var SH=Object.assign(Kl(`${Zw}/remove`),{withTypes:()=>SH});function Rn(n){return`Minified Redux Toolkit error #${n}; visit https://redux-toolkit.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}var M=Qf();const kr=qp(M),l0=XB({__proto__:null,default:kr},[M]);var uw={exports:{}},IE={};/**
|
|
249
249
|
* @license React
|
|
250
250
|
* use-sync-external-store-with-selector.production.min.js
|
|
251
251
|
*
|
|
@@ -253,7 +253,7 @@ Take a look at the reducer(s) handling this action type: ${A.type}.
|
|
|
253
253
|
*
|
|
254
254
|
* This source code is licensed under the MIT license found in the
|
|
255
255
|
* LICENSE file in the root directory of this source tree.
|
|
256
|
-
*/var KN;function EH(){if(KN)return IE;KN=1;var n=Qf();function r(y,C){return y===C&&(y!==0||1/y===1/C)||y!==y&&C!==C}var i=typeof Object.is=="function"?Object.is:r,u=n.useSyncExternalStore,l=n.useRef,d=n.useEffect,h=n.useMemo,v=n.useDebugValue;return IE.useSyncExternalStoreWithSelector=function(y,C,x,
|
|
256
|
+
*/var KN;function EH(){if(KN)return IE;KN=1;var n=Qf();function r(y,C){return y===C&&(y!==0||1/y===1/C)||y!==y&&C!==C}var i=typeof Object.is=="function"?Object.is:r,u=n.useSyncExternalStore,l=n.useRef,d=n.useEffect,h=n.useMemo,v=n.useDebugValue;return IE.useSyncExternalStoreWithSelector=function(y,C,x,R,T){var A=l(null);if(A.current===null){var N={hasValue:!1,value:null};A.current=N}else N=A.current;A=h(function(){function _(z){if(!L){if(L=!0,F=z,z=R(z),T!==void 0&&N.hasValue){var U=N.value;if(T(U,z))return V=U}return V=z}if(U=V,i(F,z))return U;var J=R(z);return T!==void 0&&T(U,J)?U:(F=z,V=J)}var L=!1,F,V,H=x===void 0?null:x;return[function(){return _(C())},H===null?void 0:function(){return _(H())}]},[C,x,R,T]);var O=u(y,A[0],A[1]);return d(function(){N.hasValue=!0,N.value=O},[O]),v(O),O},IE}var NE={},e_;function wH(){if(e_)return NE;e_=1;var n={};/**
|
|
257
257
|
* @license React
|
|
258
258
|
* use-sync-external-store-with-selector.development.js
|
|
259
259
|
*
|
|
@@ -261,49 +261,49 @@ Take a look at the reducer(s) handling this action type: ${A.type}.
|
|
|
261
261
|
*
|
|
262
262
|
* This source code is licensed under the MIT license found in the
|
|
263
263
|
* LICENSE file in the root directory of this source tree.
|
|
264
|
-
*/return n.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 r=Qf();function i(x,
|
|
264
|
+
*/return n.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 r=Qf();function i(x,R){return x===R&&(x!==0||1/x===1/R)||x!==x&&R!==R}var u=typeof Object.is=="function"?Object.is:i,l=r.useSyncExternalStore,d=r.useRef,h=r.useEffect,v=r.useMemo,y=r.useDebugValue;function C(x,R,T,A,N){var O=d(null),_;O.current===null?(_={hasValue:!1,value:null},O.current=_):_=O.current;var L=v(function(){var z=!1,U,J,q=function(fe){if(!z){z=!0,U=fe;var Oe=A(fe);if(N!==void 0&&_.hasValue){var Te=_.value;if(N(Te,Oe))return J=Te,Te}return J=Oe,Oe}var xe=U,je=J;if(u(xe,fe))return je;var Le=A(fe);return N!==void 0&&N(je,Le)?je:(U=fe,J=Le,Le)},Re=T===void 0?null:T,he=function(){return q(R())},ge=Re===null?void 0:function(){return q(Re())};return[he,ge]},[R,T,A,N]),F=L[0],V=L[1],H=l(x,F,V);return h(function(){_.hasValue=!0,_.value=H},[H]),y(H),H}NE.useSyncExternalStoreWithSelector=C,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),NE}var RH={};RH.NODE_ENV==="production"?uw.exports=EH():uw.exports=wH();var TH=uw.exports,cs={},Jt="default"in l0?kr:l0,t_=Symbol.for("react-redux-context"),n_=typeof globalThis<"u"?globalThis:{};function IH(){if(!Jt.createContext)return{};const n=n_[t_]??(n_[t_]=new Map);let r=n.get(Jt.createContext);return r||(r=Jt.createContext(null),cs.NODE_ENV!=="production"&&(r.displayName="ReactRedux"),n.set(Jt.createContext,r)),r}var nu=IH(),yA=()=>{throw new Error("uSES not initialized!")};function Jw(n=nu){return function(){const i=Jt.useContext(n);if(cs.NODE_ENV!=="production"&&!i)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return i}}var bA=Jw(),CA=yA,NH=n=>{CA=n},_H=(n,r)=>n===r;function OH(n=nu){const r=n===nu?bA:Jw(n),i=(u,l={})=>{const{equalityFn:d=_H,devModeChecks:h={}}=typeof l=="function"?{equalityFn:l}:l;if(cs.NODE_ENV!=="production"){if(!u)throw new Error("You must pass a selector to useSelector");if(typeof u!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof d!="function")throw new Error("You must pass a function as an equality function to useSelector")}const{store:v,subscription:y,getServerState:C,stabilityCheck:x,identityFunctionCheck:R}=r(),T=Jt.useRef(!0),A=Jt.useCallback({[u.name](O){const _=u(O);if(cs.NODE_ENV!=="production"){const{identityFunctionCheck:L,stabilityCheck:F}={stabilityCheck:x,identityFunctionCheck:R,...h};if(F==="always"||F==="once"&&T.current){const V=u(O);if(!d(_,V)){let H;try{throw new Error}catch(z){({stack:H}=z)}console.warn("Selector "+(u.name||"unknown")+` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
|
|
265
265
|
Selectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization`,{state:O,selected:_,selected2:V,stack:H})}}if((L==="always"||L==="once"&&T.current)&&_===O){let V;try{throw new Error}catch(H){({stack:V}=H)}console.warn("Selector "+(u.name||"unknown")+` returned the root state when called. This can lead to unnecessary rerenders.
|
|
266
|
-
Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,{stack:V})}T.current&&(T.current=!1)}return _}}[u.name],[u,x,h.stabilityCheck]),N=CA(y.addNestedSub,v.getState,C||v.getState,A,d);return Jt.useDebugValue(N),N};return Object.assign(i,{withTypes:()=>i}),i}var qn=OH(),AH=Symbol.for("react.element"),jH=Symbol.for("react.portal"),xA=Symbol.for("react.fragment"),SA=Symbol.for("react.strict_mode"),EA=Symbol.for("react.profiler"),wA=Symbol.for("react.provider"),qw=Symbol.for("react.context"),DH=Symbol.for("react.server_context"),Qw=Symbol.for("react.forward_ref"),RA=Symbol.for("react.suspense"),TA=Symbol.for("react.suspense_list"),k0=Symbol.for("react.memo"),IA=Symbol.for("react.lazy"),kH=Symbol.for("react.offscreen"),MH=Symbol.for("react.client.reference"),LH=Qw,PH=k0;function FH(n){return typeof n=="string"||typeof n=="function"||n===xA||n===EA||n===SA||n===RA||n===TA||n===kH||typeof n=="object"&&n!==null&&(n.$$typeof===IA||n.$$typeof===k0||n.$$typeof===wA||n.$$typeof===qw||n.$$typeof===Qw||n.$$typeof===MH||n.getModuleId!==void 0)}function NA(n){if(typeof n=="object"&&n!==null){const r=n.$$typeof;switch(r){case AH:{const i=n.type;switch(i){case xA:case EA:case SA:case RA:case TA:return i;default:{const u=i&&i.$$typeof;switch(u){case DH:case qw:case Qw:case IA:case k0:case wA:return u;default:return r}}}}case jH:return r}}}function VH(n){return NA(n)===qw}function BH(n){return NA(n)===k0}function Kw(n){typeof console<"u"&&typeof console.error=="function"&&console.error(n);try{throw new Error(n)}catch{}}function _E(n,r){if(n)(r==="mapStateToProps"||r==="mapDispatchToProps")&&(Object.prototype.hasOwnProperty.call(n,"dependsOnOwnProps")||Kw(`The selector for ${r} of connect did not specify a value for dependsOnOwnProps.`));else throw new Error(`Unexpected value for ${r} in connect.`)}function zH(n,r,i){_E(n,"mapStateToProps"),_E(r,"mapDispatchToProps"),_E(i,"mergeProps")}function HH(n,r,i,u,{areStatesEqual:l,areOwnPropsEqual:d,areStatePropsEqual:h}){let v=!1,y,C,x,
|
|
266
|
+
Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,{stack:V})}T.current&&(T.current=!1)}return _}}[u.name],[u,x,h.stabilityCheck]),N=CA(y.addNestedSub,v.getState,C||v.getState,A,d);return Jt.useDebugValue(N),N};return Object.assign(i,{withTypes:()=>i}),i}var qn=OH(),AH=Symbol.for("react.element"),jH=Symbol.for("react.portal"),xA=Symbol.for("react.fragment"),SA=Symbol.for("react.strict_mode"),EA=Symbol.for("react.profiler"),wA=Symbol.for("react.provider"),qw=Symbol.for("react.context"),DH=Symbol.for("react.server_context"),Qw=Symbol.for("react.forward_ref"),RA=Symbol.for("react.suspense"),TA=Symbol.for("react.suspense_list"),k0=Symbol.for("react.memo"),IA=Symbol.for("react.lazy"),kH=Symbol.for("react.offscreen"),MH=Symbol.for("react.client.reference"),LH=Qw,PH=k0;function FH(n){return typeof n=="string"||typeof n=="function"||n===xA||n===EA||n===SA||n===RA||n===TA||n===kH||typeof n=="object"&&n!==null&&(n.$$typeof===IA||n.$$typeof===k0||n.$$typeof===wA||n.$$typeof===qw||n.$$typeof===Qw||n.$$typeof===MH||n.getModuleId!==void 0)}function NA(n){if(typeof n=="object"&&n!==null){const r=n.$$typeof;switch(r){case AH:{const i=n.type;switch(i){case xA:case EA:case SA:case RA:case TA:return i;default:{const u=i&&i.$$typeof;switch(u){case DH:case qw:case Qw:case IA:case k0:case wA:return u;default:return r}}}}case jH:return r}}}function VH(n){return NA(n)===qw}function BH(n){return NA(n)===k0}function Kw(n){typeof console<"u"&&typeof console.error=="function"&&console.error(n);try{throw new Error(n)}catch{}}function _E(n,r){if(n)(r==="mapStateToProps"||r==="mapDispatchToProps")&&(Object.prototype.hasOwnProperty.call(n,"dependsOnOwnProps")||Kw(`The selector for ${r} of connect did not specify a value for dependsOnOwnProps.`));else throw new Error(`Unexpected value for ${r} in connect.`)}function zH(n,r,i){_E(n,"mapStateToProps"),_E(r,"mapDispatchToProps"),_E(i,"mergeProps")}function HH(n,r,i,u,{areStatesEqual:l,areOwnPropsEqual:d,areStatePropsEqual:h}){let v=!1,y,C,x,R,T;function A(F,V){return y=F,C=V,x=n(y,C),R=r(u,C),T=i(x,R,C),v=!0,T}function N(){return x=n(y,C),r.dependsOnOwnProps&&(R=r(u,C)),T=i(x,R,C),T}function O(){return n.dependsOnOwnProps&&(x=n(y,C)),r.dependsOnOwnProps&&(R=r(u,C)),T=i(x,R,C),T}function _(){const F=n(y,C),V=!h(F,x);return x=F,V&&(T=i(x,R,C)),T}function L(F,V){const H=!d(V,C),z=!l(F,y,V,C);return y=F,C=V,H&&z?N():H?O():z?_():T}return function(V,H){return v?L(V,H):A(V,H)}}function UH(n,{initMapStateToProps:r,initMapDispatchToProps:i,initMergeProps:u,...l}){const d=r(n,l),h=i(n,l),v=u(n,l);return cs.NODE_ENV!=="production"&&zH(d,h,v),HH(d,h,v,n,l)}function $H(n,r){const i={};for(const u in n){const l=n[u];typeof l=="function"&&(i[u]=(...d)=>r(l(...d)))}return i}function GH(n){if(typeof n!="object"||n===null)return!1;const r=Object.getPrototypeOf(n);if(r===null)return!0;let i=r;for(;Object.getPrototypeOf(i)!==null;)i=Object.getPrototypeOf(i);return r===i}function _A(n,r,i){GH(n)||Kw(`${i}() in ${r} must return a plain object. Instead received ${n}.`)}function cw(n){return function(i){const u=n(i);function l(){return u}return l.dependsOnOwnProps=!1,l}}function r_(n){return n.dependsOnOwnProps?!!n.dependsOnOwnProps:n.length!==1}function OA(n,r){return function(u,{displayName:l}){const d=function(v,y){return d.dependsOnOwnProps?d.mapToProps(v,y):d.mapToProps(v,void 0)};return d.dependsOnOwnProps=!0,d.mapToProps=function(v,y){d.mapToProps=n,d.dependsOnOwnProps=r_(n);let C=d(v,y);return typeof C=="function"&&(d.mapToProps=C,d.dependsOnOwnProps=r_(C),C=d(v,y)),cs.NODE_ENV!=="production"&&_A(C,l,r),C},d}}function eR(n,r){return(i,u)=>{throw new Error(`Invalid value of type ${typeof n} for ${r} argument when connecting component ${u.wrappedComponentName}.`)}}function WH(n){return n&&typeof n=="object"?cw(r=>$H(n,r)):n?typeof n=="function"?OA(n,"mapDispatchToProps"):eR(n,"mapDispatchToProps"):cw(r=>({dispatch:r}))}function XH(n){return n?typeof n=="function"?OA(n,"mapStateToProps"):eR(n,"mapStateToProps"):cw(()=>({}))}function YH(n,r,i){return{...i,...n,...r}}function ZH(n){return function(i,{displayName:u,areMergedPropsEqual:l}){let d=!1,h;return function(y,C,x){const R=n(y,C,x);return d?l(R,h)||(h=R):(d=!0,h=R,cs.NODE_ENV!=="production"&&_A(h,u,"mergeProps")),h}}}function JH(n){return n?typeof n=="function"?ZH(n):eR(n,"mergeProps"):()=>YH}function qH(n){n()}function QH(){let n=null,r=null;return{clear(){n=null,r=null},notify(){qH(()=>{let i=n;for(;i;)i.callback(),i=i.next})},get(){const i=[];let u=n;for(;u;)i.push(u),u=u.next;return i},subscribe(i){let u=!0;const l=r={callback:i,next:null,prev:r};return l.prev?l.prev.next=l:n=l,function(){!u||n===null||(u=!1,l.next?l.next.prev=l.prev:r=l.prev,l.prev?l.prev.next=l.next:n=l.next)}}}}var a_={notify(){},get:()=>[]};function AA(n,r){let i,u=a_,l=0,d=!1;function h(O){x();const _=u.subscribe(O);let L=!1;return()=>{L||(L=!0,_(),R())}}function v(){u.notify()}function y(){N.onStateChange&&N.onStateChange()}function C(){return d}function x(){l++,i||(i=r?r.addNestedSub(y):n.subscribe(y),u=QH())}function R(){l--,i&&l===0&&(i(),i=void 0,u.clear(),u=a_)}function T(){d||(d=!0,x())}function A(){d&&(d=!1,R())}const N={addNestedSub:h,notifyNestedSubs:v,handleChangeWrapper:y,isSubscribed:C,trySubscribe:T,tryUnsubscribe:A,getListeners:()=>u};return N}var KH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",u0=KH?Jt.useLayoutEffect:Jt.useEffect;function i_(n,r){return n===r?n!==0||r!==0||1/n===1/r:n!==n&&r!==r}function OE(n,r){if(i_(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;const i=Object.keys(n),u=Object.keys(r);if(i.length!==u.length)return!1;for(let l=0;l<i.length;l++)if(!Object.prototype.hasOwnProperty.call(r,i[l])||!i_(n[i[l]],r[i[l]]))return!1;return!0}var eU={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},tU={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},nU={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},jA={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},rU={[LH]:nU,[PH]:jA};function o_(n){return BH(n)?jA:rU[n.$$typeof]||eU}var aU=Object.defineProperty,iU=Object.getOwnPropertyNames,s_=Object.getOwnPropertySymbols,oU=Object.getOwnPropertyDescriptor,sU=Object.getPrototypeOf,l_=Object.prototype;function fw(n,r){if(typeof r!="string"){if(l_){const d=sU(r);d&&d!==l_&&fw(n,d)}let i=iU(r);s_&&(i=i.concat(s_(r)));const u=o_(n),l=o_(r);for(let d=0;d<i.length;++d){const h=i[d];if(!tU[h]&&!(l&&l[h])&&!(u&&u[h])){const v=oU(r,h);try{aU(n,h,v)}catch{}}}}return n}var DA=yA,lU=n=>{DA=n},uU=[null,null],cU=n=>{try{return JSON.stringify(n)}catch{return String(n)}};function fU(n,r,i){u0(()=>n(...r),i)}function dU(n,r,i,u,l,d){n.current=u,i.current=!1,l.current&&(l.current=null,d())}function pU(n,r,i,u,l,d,h,v,y,C,x){if(!n)return()=>{};let R=!1,T=null;const A=()=>{if(R||!v.current)return;const O=r.getState();let _,L;try{_=u(O,l.current)}catch(F){L=F,T=F}L||(T=null),_===d.current?h.current||C():(d.current=_,y.current=_,h.current=!0,x())};return i.onStateChange=A,i.trySubscribe(),A(),()=>{if(R=!0,i.tryUnsubscribe(),i.onStateChange=null,T)throw T}}function vU(n,r){return n===r}var u_=!1;function hU(n,r,i,{pure:u,areStatesEqual:l=vU,areOwnPropsEqual:d=OE,areStatePropsEqual:h=OE,areMergedPropsEqual:v=OE,forwardRef:y=!1,context:C=nu}={}){cs.NODE_ENV!=="production"&&u!==void 0&&!u_&&(u_=!0,Kw('The `pure` option has been removed. `connect` is now always a "pure/memoized" component'));const x=C,R=XH(n),T=WH(r),A=JH(i),N=!!n;return _=>{if(cs.NODE_ENV!=="production"&&!FH(_))throw new Error(`You must pass a component to the function returned by connect. Instead received ${cU(_)}`);const L=_.displayName||_.name||"Component",F=`Connect(${L})`,V={shouldHandleStateChanges:N,displayName:F,wrappedComponentName:L,WrappedComponent:_,initMapStateToProps:R,initMapDispatchToProps:T,initMergeProps:A,areStatesEqual:l,areStatePropsEqual:h,areOwnPropsEqual:d,areMergedPropsEqual:v};function H(J){const[q,Re,he]=Jt.useMemo(()=>{const{reactReduxForwardedRef:ft,...Ae}=J;return[J.context,ft,Ae]},[J]),ge=Jt.useMemo(()=>{let ft=x;if(q!=null&&q.Consumer&&cs.NODE_ENV!=="production"){if(!VH(Jt.createElement(q.Consumer,null)))throw new Error("You must pass a valid React context consumer as `props.context`");ft=q}return ft},[q,x]),fe=Jt.useContext(ge),Oe=!!J.store&&!!J.store.getState&&!!J.store.dispatch,Te=!!fe&&!!fe.store;if(cs.NODE_ENV!=="production"&&!Oe&&!Te)throw new Error(`Could not find "store" in the context of "${F}". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to ${F} in connect options.`);const xe=Oe?J.store:fe.store,je=Te?fe.getServerState:xe.getState,Le=Jt.useMemo(()=>UH(xe.dispatch,V),[xe]),[ne,_e]=Jt.useMemo(()=>{if(!N)return uU;const ft=AA(xe,Oe?void 0:fe.subscription),Ae=ft.notifyNestedSubs.bind(ft);return[ft,Ae]},[xe,Oe,fe]),G=Jt.useMemo(()=>Oe?fe:{...fe,subscription:ne},[Oe,fe,ne]),Y=Jt.useRef(),re=Jt.useRef(he),ye=Jt.useRef(),Se=Jt.useRef(!1);Jt.useRef(!1);const Ne=Jt.useRef(!1),le=Jt.useRef();u0(()=>(Ne.current=!0,()=>{Ne.current=!1}),[]);const ve=Jt.useMemo(()=>()=>ye.current&&he===re.current?ye.current:Le(xe.getState(),he),[xe,he]),we=Jt.useMemo(()=>Ae=>ne?pU(N,xe,ne,Le,re,Y,Se,Ne,ye,_e,Ae):()=>{},[ne]);fU(dU,[re,Y,Se,he,ye,_e]);let Ve;try{Ve=DA(we,ve,je?()=>Le(je(),he):ve)}catch(ft){throw le.current&&(ft.message+=`
|
|
267
267
|
The error may be correlated with this previous error:
|
|
268
268
|
${le.current.stack}
|
|
269
269
|
|
|
270
|
-
`),ft}u0(()=>{le.current=void 0,ye.current=void 0,Y.current=Ve});const et=Jt.useMemo(()=>Jt.createElement(_,{...Ve,ref:Re}),[Re,_,Ve]);return Jt.useMemo(()=>N?Jt.createElement(ge.Provider,{value:G},et):et,[ge,et,G])}const U=Jt.memo(H);if(U.WrappedComponent=_,U.displayName=H.displayName=F,y){const q=Jt.forwardRef(function(he,ge){return Jt.createElement(U,{...he,reactReduxForwardedRef:ge})});return q.displayName=F,q.WrappedComponent=_,fw(q,_)}return fw(U,_)}}var ds=hU;function mU({store:n,context:r,children:i,serverState:u,stabilityCheck:l="once",identityFunctionCheck:d="once"}){const h=Jt.useMemo(()=>{const C=AA(n);return{store:n,subscription:C,getServerState:u?()=>u:void 0,stabilityCheck:l,identityFunctionCheck:d}},[n,u,l,d]),v=Jt.useMemo(()=>n.getState(),[n]);u0(()=>{const{subscription:C}=h;return C.onStateChange=C.notifyNestedSubs,C.trySubscribe(),v!==n.getState()&&C.notifyNestedSubs(),()=>{C.tryUnsubscribe(),C.onStateChange=void 0}},[h,v]);const y=r||nu;return Jt.createElement(y.Provider,{value:h},i)}var Qp=mU;function kA(n=nu){const r=n===nu?bA:Jw(n),i=()=>{const{store:u}=r();return u};return Object.assign(i,{withTypes:()=>i}),i}var gU=kA();function yU(n=nu){const r=n===nu?gU:kA(n),i=()=>r().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var Io=yU();NH(TH.useSyncExternalStoreWithSelector);lU(M.useSyncExternalStore);const dw={user:{colors:["#ffc42d","#fea92c","#f98f30","#f07537"]},rp:{colors:["#48c0b9","#2e9da4","#207b8b","#1a5b6e"]}},AE={};function MA(n,r=3){let i=0;for(;n/Math.pow(1e3,i)>1e3;)i+=1;const u=n.toString().length,l=Math.pow(10,u-r);return(Math.round(n/l)*l/Math.pow(1e3,i)).toString()+["","K","M","B","T"][i]}async function bU(){return await(await fetch("https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Community?type=style&token=AAPK220079f462f24fda89c27fa210c3f887EJPCECuukKD8PnCIBqktgGTKZWPlVXWjRoSsZYGkOJ12QemGItZ4liRZkcUzYyme")).json()}async function CU(n){if(AE[n])return AE[n];const r=document.location,i=`${r.protocol}//${r.host}${r.pathname}`,l=await(await fetch(`${i}/${n}`)).json();return AE[n]=l,l}function xU(n){const r=[...n.creditLines.features.map(u=>u.properties.credits)],i=[...n.rpPoints.features.map(u=>u.properties.rpCredits),...n.userPoints.features.map(u=>u.properties.userCredits)];return{lines:f_(r),points:f_(i)}}function c_({activeOrg:n,basemapStyle:r,creditLevels:i,creditType:u,geoJSON:l,organizationType:d}){const h={},v=[];if(l&&i){const C=d==="user"?"rp":"user",x=l[`${d}Points`],w=l[`${C}Points`],T=`${d}Credits`,A=`${C}Credits`;h.organizations={type:"geojson",data:x};const N={user:[],rp:[]},O=[];i.points.forEach((L,F)=>{Object.keys(dw).forEach(V=>{N[V].push(L[1],dw[V].colors[F])}),O.push(L[1],5*(F+1))});const _=[];if(i.lines.forEach((L,F)=>{_.push(L[1],1*(F+1))}),v.push({id:"organizations",type:"circle",source:"organizations",paint:{"circle-radius":["interpolate",["linear"],["get",T],...O],"circle-color":["interpolate",["linear"],["get",T],...N[d]],"circle-opacity":n?["match",["id"],n.id,1,.3]:1,"circle-stroke-color":"#ffffff","circle-stroke-width":1}}),n&&u!=="allocated"){h.opp={type:"geojson",data:w};const L=["get",n.id.toString(),["get",`${A}Map`]];v.push({id:"opp",type:"circle",source:"opp",filter:["has",n.id.toString(),["get",`${A}Map`]],paint:{"circle-radius":["interpolate",["linear"],L,...O],"circle-color":["interpolate",["linear"],L,...N[C]],"circle-stroke-color":"#ffffff","circle-stroke-width":1}}),h.credits={type:"geojson",data:l.creditLines},v.push({id:"credits",type:"line",source:"credits",filter:["==",["get",`${d}_organization_id`],n.id],paint:{"line-color":"#444444","line-opacity":.4,"line-width":["interpolate",["linear"],["get","credits"],..._]}})}}const y=r||{version:8,sources:{},layers:[]};return{...y,sources:{...y.sources,...h},layers:[...y.layers.filter(C=>C.id!=="Marine waterbody/label/2x large"),...v]}}function SU(n,r,i,u,l=20){return[...Array(l+1).keys()].map(d=>d/l).map(d=>{let h=d*(i-n)+n,v=d*(u-r)+r+Math.abs(Math.sin(d*Math.PI)*(i-n)*.1);return[h,v]})}function EU(n,r,i){const u={};return n.features.forEach(d=>u[d.id]={type:d.type,geometry:d.geometry,id:d.id,properties:{name:d.properties.name,abbr:d.properties.abbr,userCredits:0,userCreditsMap:{},rpCredits:0,rpCreditsMap:{}}},{}),{creditLines:{type:"FeatureCollection",features:r.result.filter(d=>u[d.user_organization_id]!==void 0&&(i==="allocated"||u[d.rp_organization_id]!==void 0)).map(d=>{const h=u[d.user_organization_id],v=u[d.rp_organization_id];if(h.properties.userCredits+=d.credits,v&&(v.properties.rpCredits+=d.credits),h.properties.userCreditsMap[d.rp_organization_id]=(h.properties.userCreditsMap[d.rp_organization_id]||0)+d.credits,v&&(v.properties.rpCreditsMap[d.user_organization_id]=(v.properties.rpCreditsMap[d.user_organization_id]||0)+d.credits),i!=="allocated")return{type:"Feature",geometry:{type:"LineString",coordinates:SU(...u[d.user_organization_id].geometry.coordinates,...u[d.rp_organization_id].geometry.coordinates)},properties:d}}).filter(d=>d!==void 0)},userPoints:{type:"FeatureCollection",features:Object.values(u).filter(d=>d.properties.userCredits>0).sort((d,h)=>d.properties.userCredits>h.properties.userCredits?-1:1)},rpPoints:{type:"FeatureCollection",features:Object.values(u).filter(d=>d.properties.rpCredits>0).sort((d,h)=>d.properties.rpCredits>h.properties.rpCredits?-1:1)}}}function f_(n,r=[0,.3,.6,.9]){return r.map((i,u)=>{const l=wU(n,i),d=u===r.length-1?"+":"";return[`${MA(Math.round(l))}${d}`,l]})}function wU(n,r){n.sort((d,h)=>d-h);const i=(n.length-1)*r,u=Math.floor(i),l=i-u;return n[u+1]!==void 0?n[u]+l*(n[u+1]-n[u]):n[u]}const RU="_fullscreen_1iid9_6",TU="_map_1iid9_14",Ab={"allocations-map":"_allocations-map_1iid9_1",fullscreen:RU,map:TU},IU="_group_11k83_1",NU="_button_11k83_6",_U="_icon_11k83_16",jE={group:IU,button:NU,icon:_U};function d_({choices:n,disabledValues:r=[],label:i,value:u,setValue:l}){const d=[];return n.forEach(([h,v])=>d.push(b.jsx("input",{type:"radio",className:"btn-check",name:h,id:h,autoComplete:"off",checked:u===h,onChange:()=>l(h),disabled:r.includes(h)},h),b.jsxs("label",{className:`btn btn-outline-primary ${jE.button}`,htmlFor:h,disabled:r.includes(h),children:[u===h?b.jsx("i",{className:`bi bi-check ${jE.icon}`}):null," ",v]},`${h}-label`))),b.jsx("div",{className:"mb-2",children:b.jsx("div",{className:`btn-group ${jE.group}`,role:"group","aria-label":i,children:d})})}const OU="_controls_1be4t_1",AU={controls:OU};function jU({creditType:n,organizationType:r,setCreditType:i,setOrganizationType:u}){return b.jsxs("div",{className:AU.controls,children:[b.jsx("h2",{children:"ACCESS Allocations"}),b.jsx(d_,{choices:[["allocated","Allocations"],["exchanged","Exchanges"],["used","Usage"]],label:"Credit Type",value:n,setValue:i}),b.jsx(d_,{choices:[["user","By Research Institution"],["rp","By Resource Provider"]],disabledValues:n==="allocated"?["rp"]:[],label:"Organization Type",value:r,setValue:u})]})}const DU="_legend_odgg9_1",kU="_symbols_odgg9_17",MU="_symbol_odgg9_17",$b={legend:DU,symbols:kU,symbol:MU};function LU(n,r){const i=2*n+2;return b.jsx("svg",{viewBox:`0 0 ${i} ${i}`,xmlns:"http://www.w3.org/2000/svg",stroke:"white",strokeWidth:"1",height:i,width:i,children:b.jsx("circle",{fill:r,cx:n+1,cy:n+1,r:n})})}function PU({activeOrg:n,creditLevels:r,organizationType:i}){if(n||!r)return;const u=r.points.map((l,d)=>b.jsxs("div",{className:$b.symbol,children:[LU(5*(d+1),dw[i].colors[d]),b.jsx("br",{}),b.jsx("span",{className:"label",children:l[0]})]},l[0]));return b.jsxs("div",{className:$b.legend,children:[b.jsxs("h2",{className:"fs-6 mt-0 mb-0",children:["ACCESS Credits ",b.jsx("small",{children:"or credit equivalents"})]}),b.jsx("div",{className:$b.symbols,children:u})]})}const FU="_info_oxxoh_1",VU="_user_oxxoh_7",BU="_rp_oxxoh_10",zU="_credits_oxxoh_15",Gb={info:FU,user:VU,rp:BU,credits:zU};function p_(n,r,i){n.sort((l,d)=>d[1]-l[1]);const u=n.slice(0,3).map(l=>l[0]);return n.length>3&&(u[2]=`${n.length-2} other ${i}s`),u.reduce((l,d,h,v)=>[l,b.jsx("span",{className:`name ${Gb[r]}`,children:d},d),[""," and ",", "][v.length-h-1]],[])}function HU({activeOrg:n,creditType:r,organizationMap:i,organizationType:u}){if(!n||!i)return;const l=n.properties,d=l[`${u}Credits`],h=u==="rp"?"user":"rp",v=JSON.parse(l[`${u}CreditsMap`]),y={user:[],rp:[]};return y[u].push([l.name,d]),Object.keys(v).forEach(C=>y[h].push([i[C],v[C]])),b.jsx("div",{className:`${$b.legend} ${Gb.info}`,children:b.jsxs("p",{className:Gb[u],children:["Researchers at ",p_(y.user,"user","research institution")," ",r==="allocated"?"were ":"",r," ",b.jsxs("span",{className:Gb.credits,children:[MA(d)," ACCESS Credits"]}),r!=="allocated"?b.jsxs(b.Fragment,{children:[" ",r==="exchanged"?"for":"on"," resources at"," ",p_(y.rp,"rp","resource provider")]}):"","."]})})}function UU(){const n=M.useRef(null),r=M.useRef(null),[i,u]=M.useState(null),[l,d]=M.useState(null),[h,v]=M.useState(null),[y,C]=M.useState(!1),[x,w]=M.useState(null),[T,A]=M.useState(null),[N,O]=M.useState(null),[_,L]=M.useState("user"),[F,V]=M.useState("exchanged");return M.useEffect(()=>{(async()=>d(await bU()))()},[]),M.useEffect(()=>{(async H=>{const[z,U]=await Promise.all(["organizations",`credits_${H}`].map(CU));if(!N){const q={};z.features.forEach(Re=>q[Re.id.toString()]=Re.properties.name),O(q)}const J=EU(z,U,F);w(J),H==="exchanged"&&!h&&v(xU(J))})(F)},[F]),M.useEffect(()=>{T&&T.setStyle(c_({activeOrg:i,basemapStyle:l,creditLevels:h,creditType:F,geoJSON:x,organizationType:_}))},[i,x,T,_]),M.useEffect(()=>{T&&(T.on("mousemove","organizations",H=>u(H.features.length?H.features[0]:null)),T.on("mouseleave","organizations",()=>u(null)))},[T]),M.useEffect(()=>{T&&T.resize()},[y]),M.useEffect(()=>{F==="allocated"&&L("user")},[F]),M.useLayoutEffect(()=>A(new maplibregl.Map({container:r.current,style:c_({activeOrg:i,basemapStyle:l,creditLevels:h,creditType:F,geoJSON:x,organizationType:_}),center:[-111.01,38.88],zoom:3.4,hash:!0})),[]),M.useLayoutEffect(()=>n.current.addEventListener("keydown",H=>{H.key==="Escape"&&C(!1)}),[]),b.jsxs("section",{className:`${Ab["allocations-map"]} ${y?Ab.fullscreen:"border border-3 border-primary"}`,ref:n,children:[b.jsx("div",{className:Ab.map,ref:r}),b.jsx(jU,{creditType:F,fullscreen:y,organizationType:_,setCreditType:V,setFullscreen:C,setOrganizationType:L}),b.jsx(PU,{activeOrg:i,creditLevels:h,organizationType:_}),b.jsx(HU,{activeOrg:i,creditType:F,organizationMap:N,organizationType:_}),b.jsx("button",{title:`${y?"Exit":"Enter"} Fullscreen`,className:Ab.fullscreen,onClick:()=>C(!y),children:b.jsx("i",{className:`bi ${y?"bi-fullscreen-exit":"bi-arrows-fullscreen"}`,"aria-label":"Fullscreen"})})]})}const Yl="https://allocations.access-ci.org",Nn={creditAlertThreshold:1e3,resourceTypeIcons:{credit:"cash-coin",compute:"cpu-fill",storage:"hdd-fill",program:"person-square"},routes:{edit_request_action_path:(n,r)=>`/requests/${n}/actions/${r}/edit`,edit_request_path:n=>`/requests/${n}/edit`,how_to_path:()=>"/how-to",get_your_first_project_path:()=>`${Yl}/get-your-first-project`,project_types_path:()=>`${Yl}/project-types`,projects_path:()=>`${Yl}/projects`,projects_save_users_path:()=>"/projects/save_users",renew_request_path:n=>`${Yl}/requests/${n}/renew`,request_action_path:(n,r)=>`${Yl}/requests/${n}/actions/${r}`,request_actions_path:n=>`${Yl}/requests/${n}/actions`,request_path:n=>`${Yl}/requests/${n}`,resources_path:()=>`${Yl}/resources`,search_people_path:()=>`${Yl}/search/people`,usage_detail_path:(n,r)=>`/usage/${n}/${r}`},roleIcons:{PI:"person-fill-check","Co-PI":"person-fill-add","Allocation Manager":"person-fill-gear",User:"people-fill"}};function c0({color:n="primary",href:r,icon:i,onClick:u,target:l,title:d}){const h=b.jsx("i",{className:`bi bi-${i}`}),v={className:`btn btn-sm ms-1 text-${n}`,href:r,onClick:u,style:{"--bs-btn-padding-x":"0.1rem","--bs-btn-padding-y":"0.1rem","--bs-btn-line-height":"1"},target:l,title:d};return r?b.jsx("a",{...v,children:h}):b.jsx("button",{...v,children:h})}const Fp=(n,r,i="round")=>{const u=Math.pow(10,r||0);return Math[i](n*u)/u},$U=n=>new Date(`${n}T00:00:00`),GU={year:"numeric",month:"short",day:"numeric"},Vp=(n,r)=>$U(n).toLocaleString("en-us",r||GU),ni=(n,{abbreviate:r=!1,decimalPlaces:i=void 0}={})=>{if(r){let u=0;for(;Math.abs(n)/Math.pow(1e3,u)>=1e3;)u+=1;const l=["","K","M","B","T","Q"][u];return`${(n/Math.pow(1e3,u)).toLocaleString("en-US",{maximumSignificantDigits:3})}${l}`}return n.toLocaleString("en-US",{maximumFractionDigits:i,minimumFractionDigits:i})},tR=(n,r)=>{if(n.startDate&&n.endDate){const l=Vp(n.startDate,r),d=Vp(n.endDate,r);return`${n.allocationType}: ${l} to ${d}`}const i=Vp(n.entryDate,r),u=n.status=="Incomplete"?"Started":"Submitted";return`${n.allocationType}: ${u} ${i}`},gc=n=>b.jsx("i",{className:`bi bi-${n}`}),M0=n=>{const r=n.match(/^([^\(\)]+) (\(([^\)]+)\))?$/);return{full:n,short:r&&r[3]||null}},Uf=(n,{userGuide:r=!0}={})=>{const{full:i,short:u}=M0(n.name),l=u?b.jsx("abbr",{title:i,children:u}):i;return b.jsxs(b.Fragment,{children:[gc(Nn.resourceTypeIcons[n.icon])," ",l,!n.isCredit&&n.userGuideUrl&&r?b.jsx(c0,{icon:"book",href:n.userGuideUrl,target:"_blank",title:`${n.name} User Guide`}):null]})},v_=n=>{const r=M0(n.name);return r.short||r.full},f0=(n,r)=>n.isCredit>r.isCredit||n.isActive>r.isActive||v_(n)<v_(r)?-1:1,h_=(...n)=>{for(let r of n)if(r!=null)return r;return null},LA=(n,r="and",i=", ")=>n.reduce((u,l,d)=>b.jsxs(b.Fragment,{children:[u,n.length-1>d?i:` ${r} `,l]})),nR=n=>n?b.jsxs(b.Fragment,{children:[gc("check-circle")," Yes"]}):b.jsxs(b.Fragment,{children:[gc("x-circle")," No"]}),rR=n=>LA(n.users.filter(({role:r})=>["pi","co_pi","allocation_manager"].includes(r)).map(r=>`${r.firstName} ${r.lastName}`),"or"),m_=(n,r)=>r==1&&n.endsWith("s")?n.slice(0,-1):n,PA=n=>{let r=0,i=0;for(let u of n.resources)u.isBoolean||(r+=u.allocated*u.unitCost,i+=Math.min(u.used,u.allocated)*u.unitCost);return r>0?i/r:0},L0=[{role:"pi",name:"PI",xrasRole:"PI"},{role:"co_pi",name:"Co-PI",xrasRole:"CoPI"},{role:"allocation_manager",name:"Allocation Manager",xrasRole:"Allocation Manager"},{role:"user",name:"User",xrasRole:"User"}],FA={};for(let n of L0)FA[n.role]=n;const pw={};for(let{role:n,xrasRole:r}of L0)pw[n]=r;const vw=["info","success","secondary","warning","danger"],ea={error:"error",pending:"pending",success:"success"},d0=n=>n.endDate||n.startDate||(n.actions[0]||{}).entryDate,g_=n=>`${{pi:"01",co_pi:"02",allocation_manager:"03"}[n.role]||"04"} ${n.lastName}, ${n.firstName}`,WU=(n,{grantNumber:r,projectManager:i,requestMasterId:u,requests:l,title:d,users:h},v)=>{r=r||u,l.sort((x,w)=>d0(x)>d0(w)?-1:1);const y=l.find(x=>x.timeStatus=="current"),C=y?y.requestId:null;n.projects[r]={currentRequestId:C,grantNumber:r,isManager:i,requestsList:l.map(x=>{const{actions:w,allocationType:T,endDate:A,requestId:N,startDate:O,status:_}=x,L=w.map(({entryDate:F})=>F).sort()[0].split("T")[0];return XU(n,x,{entryDate:L,grantNumber:r}),{allocationType:T,endDate:A,entryDate:L,requestId:N,startDate:O,status:_}}),selectedRequestId:C||l[0].requestId,status:v,tab:"overview",title:d,users:h.map(({email:x,firstName:w,lastName:T,organization:A,resources:N,role:O,username:_})=>{const L=N.filter(U=>U.userAccountState=="active"&&U.unitType!="ACCESS Credits"),F=L.map(U=>U.xrasResourceId),V=L.filter(U=>U.resourceProviderState=="pending-active").map(U=>U.xrasResourceId),H=N.filter(U=>U.userAccountState!="active").map(U=>U.xrasResourceId),z={};for(let U of L)z[U.xrasResourceId]=U.resourceUsername;return{email:x,firstName:w,initialResourceIds:[...F],initialRole:O,lastName:T,organization:A,resourceAccountPendingIds:V,resourceAccountInactiveIds:H,resourceIds:F,resourceUsernames:z,role:O,username:_}}).sort((x,w)=>g_(x)<g_(w)?-1:1),usersNewRowIndex:0,usersStatus:null},n.projects[r].currentUser=n.projects[r].users.find(({username:x})=>x==n.username)},XU=(n,{actions:r,allocationType:i,allowedActions:u,endDate:l,requestId:d,requestType:h,resources:v,startDate:y,status:C,timeStatus:x},{entryDate:w,grantNumber:T})=>{v=v||[];const A={actions:r.map(({actionId:_,actionStatusType:L,actionType:F,allowedOperations:V,approvedStartDate:H,detailAvailable:z,entryDate:U,isRequest:J,requestedStartDate:q,resources:Re})=>({actionId:_,allowedOperations:V,detailAvailable:z,date:(U||H||q).split("T")[0],deleteStatus:null,isRequest:J,resources:Re.map(hw).sort(f0),showDeleteModal:!1,status:L,type:F})),allocationType:i,allowedActions:YU(u),endDate:l,entryDate:w,exchangeActionId:null,exchangeStatus:null,grantNumber:T,isMaximize:i=="Maximize",requestId:d,resources:v.map(hw).filter(_=>_.isCredit||_.allocated>0).sort(f0),resourcesReason:"",returnedForCorrections:!!r.find(_=>_.returnedForCorrections),returnedForCorrectionsNotes:r.map(_=>_.adminComments).join(","),showActionsModal:!1,showConfirmModal:!1,showResourcesModal:!1,startDate:y,status:C,timeStatus:x,type:h,usageDetail:null,usageDetailStatus:null,usesCredits:["Explore","Discover","Accelerate"].includes(i)};let N={};for(let _ of A.actions)if(["Exchange","Transfer"].includes(_.type)&&["Submitted","Under Review"].includes(_.status)){A.exchangeActionId=_.actionId;for(let L of _.resources)N[L.resourceId]=L;for(let L of A.resources)L.resourceId in N&&(L.requested+=N[L.resourceId].requested,delete N[L.resourceId]);A.resources.push(...Object.values(N).map(L=>({...L,isNew:!0})));break}const O=A.allowedActions.Exchange||A.allowedActions.Transfer;if(O){N={};for(let _ of O.resources)N[_.resourceId]=_;for(let _ of A.resources)_.resourceId in N&&(_.questions=N[_.resourceId].questions||[])}!A.usesCredits&&v.length&&A.resources.push({allocated:0,decimalPlaces:0,icon:"credit",isActive:!0,isBoolean:!1,isCredit:!0,isFake:!0,name:"Credit Equivalents",requested:0,requires:[],resourceId:0,unit:"Credit Equivalents",unitCost:1,used:0}),n.requests[d]=A},YU=n=>{const r={};for(let{actionType:i,allowedResources:u,opportunityId:l,opportunityName:d}of n){let h={name:i,resources:u.map(hw).sort(f0),opportunityId:l,opportunityName:d};i in r?(Array.isArray(r[i])||(r[i]=[r[i]]),r[i].push(h)):r[i]=h}return"Transfer"in r&&!("Exchange"in r)&&(r.Exchange=r.Transfer),r},y_=(n,r)=>n.relativeOrder<r.relativeOrder?-1:1,hw=({allocationState:n,amountAllocated:r,amountApproved:i,amountRequested:u,amountUsed:l,attributeSets:d,dependentResourceXrasIds:h,displayResourceName:v,endDate:y,exchangeRate:C,resourceRepositoryKey:x,resourceType:w,startDate:T,unitType:A,userGuideUrl:N,xrasResourceId:O})=>({allocated:Fp(h_(r,i)||0,0,"floor"),decimalPlaces:0,endDate:y,icon:A=="ACCESS Credits"?"credit":w.toLowerCase(),isActive:n=="active",isBoolean:A=="[Yes = 1, No = 0]",isCredit:A=="ACCESS Credits",isFake:!1,isUnderReview:!1,isNew:!1,name:v.trim(),questions:(d||[]).filter(({isActive:_})=>_).sort(y_).map(_=>({attributeSetId:_.attributeSetId,attributes:_.attributes.sort(y_).map(L=>({required:L.isRequired,resourceAttributeId:L.resourceAttributeId,label:L.attributeName})),fieldType:_.attributeSetRelationType,label:_.attributeSetName,resourceId:O,values:[]})),requested:Fp(h_(u,r)||0,0,"floor"),requires:h||[],resourceId:O,resourceRepositoryKey:x,startDate:T,type:w,unit:A,unitCost:A!="[Yes = 1, No = 0]"&&C?C:0,used:Fp(l||0,0,"ceil"),userGuideUrl:N}),VA=(n,r)=>(n=[...n].sort(),r=[...r].sort(),n.length===r.length&&n.every((i,u)=>i===r[u])),jb=(n,r)=>{const i=Kr(n,r);for(let u of i.actions)if(u.actionId==r.payload.actionId)return u},Qs=(n,r)=>n.projects[r.payload.grantNumber],Kr=(n,r)=>n.requests[r.payload.requestId],ZU=(n,r)=>Qs(n,r).users.find(({username:i})=>i==r.payload.username),mw=({allocated:n,isActive:r,isCredit:i})=>n>0&&r&&!i,b_=n=>n.hasChanges=n.isNew||n.role!=n.initialRole||!VA(n.resourceIds,n.initialResourceIds),BA=()=>document.querySelector("meta[name=csrf-token]").content,JU=async n=>{const r=new URLSearchParams({q:n});return(await(await fetch(`${Nn.routes.search_people_path()}?${r}`)).json()).map(({email:u,first_name:l,last_name:d,username:h,organization:v})=>({email:u,firstName:l,lastName:d,username:h,organization:v}))},Wb=Di("api/fetchProjectsList",async(n,{rejectWithValue:r})=>{const i=await fetch(`${Nn.routes.projects_path()}.json`);return i.status==200?{username:n,projectsList:(await i.json()).result}:r({})}),zA=Di("api/fetchProjectDetail",async({grantNumber:n},{rejectWithValue:r})=>r({grantNumber:n})),HA=Di("api/fetchRequestDetail",async({grantNumber:n,requestId:r},{rejectWithValue:i})=>i({grantNumber:n,requestId:r})),Xb=Di("api/fetchUsageDetail",async({grantNumber:n,requestId:r,resourceRepositoryKey:i},{rejectWithValue:u})=>{const l=await fetch(`${Nn.routes.usage_detail_path(n,i)}.json`);return l.status==200?{grantNumber:n,requestId:r,resourceRepositoryKey:i,usageDetail:(await l.json()).usage}:u({grantNumber:n,requestId:r,resourceRepositoryKey:i})}),Yb=Di("api/deleteAction",async({actionId:n,requestId:r},{getState:i,rejectWithValue:u})=>{const l=i().api.requests[r],d=l.actions.find(C=>C.actionId==n);if(!d||!d.allowedOperations||!d.allowedOperations.includes("Delete"))return u({actionId:n,requestId:r});const h=Nn.routes.request_action_path(l.requestId,d.actionId),v={_method:"delete",authenticity_token:BA()};return(await fetch(h,{body:Object.keys(v).map(C=>`${encodeURIComponent(C)}=${encodeURIComponent(v[C])}`).join("&"),headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},method:"POST"})).status==200?{actionId:n,requestId:r}:u({actionId:n,requestId:r})}),Zb=Di("api/saveResources",async({requestId:n},{getState:r,rejectWithValue:i})=>{const u=r().api.requests[n],l={},d={};for(let{allocated:C,isFake:x,questions:w,requested:T,resourceId:A}of u.resources)if(T!=C&&!x){l[A]={resource_id:A,requested:1,amount:T-C};for(let{attributes:N,values:O,fieldType:_}of w)if(O.length){let L=N[0].resourceAttributeId,F=["drop_down","single_sel","multi_sel"].includes(_),H={resource_attribute_id:_=="multi_sel"?O:F?O[0]:L};F||(H.attribute_value=O[0]),d[L]=H}}const h={authenticity_token:BA(),request_action:{action_type:u.allowedActions.Exchange.name,user_comments:u.resourcesReason,resource_attributes:d},requested_resources:l},v=u.exchangeActionId?Nn.routes.request_action_path(u.requestId,u.exchangeActionId):Nn.routes.request_actions_path(u.requestId),y=await fetch(`${v}.json`,{body:JSON.stringify(h),headers:{"Content-Type":"application/json"},method:u.exchangeActionId?"PUT":"POST"});if(y.status==200){const C=parseInt(y.url.split("/").pop(),10);return{requestId:n,exchangeActionId:C}}return i({requestId:n})}),Jb=Di("api/saveUsers",async({grantNumber:n},{getState:r,rejectWithValue:i})=>{const l=r().api.projects[n].users,d=l.filter(C=>!VA(C.resourceIds,C.initialResourceIds)||C.isNew).length==0?[]:l.map(C=>({username:C.username,resources:C.resourceIds})),h=l.filter(C=>C.role!=C.initialRole).map(C=>({username:C.username,role:pw[C.role],initialRole:pw[C.initialRole]})),v={grantNumber:n,resourceChanges:d,roleChanges:h,authenticity_token:document.querySelector("meta[name=csrf-token]").content};return(await fetch(Nn.routes.projects_save_users_path(),{method:"POST",body:JSON.stringify(v),headers:{"Content-Type":"application/json"}})).status==200?{grantNumber:n}:i({grantNumber:n})}),UA=D0({name:"api",initialState:{error:null,projectsList:[],projectListLoading:!1,projects:{},requests:{},username:null},reducers:{addResource:(n,r)=>{const{resourceId:i}=r.payload,u=Kr(n,r),l=u.allowedActions.Exchange;if(!l)return;const d={};for(let y of l.resources)d[y.resourceId]=y;const h=u.resources.map(y=>y.resourceId),v=[i,...d[i].requires||[]].filter(y=>y in d&&!h.includes(y));u.resources.push(...v.map(y=>({...d[y],allocated:0,isNew:!0,used:0,requested:0})))},addUser:(n,r)=>{const i=Qs(n,r),u=n.requests[i.currentRequestId],{user:l}=r.payload;i.users.map(({username:d})=>d).includes(l.username)||(i.users.push({...l,resourceIds:u.resources.filter(mw).map(d=>d.resourceId),role:"user",initialResourceIds:[],initialRole:"user",hasChanges:!0,isNew:!0}),i.usersNewRowIndex=i.users.length-1)},closeUsageDetailModal:(n,r)=>{const i=Kr(n,r);i.usageDetail=null,i.usageDetailStatus=null},resetResources:(n,r)=>{const i=Kr(n,r);i.resourcesReason="",i.resources=i.resources.filter(u=>u.isCredit||u.allocated).map(u=>({...u,requested:u.allocated}))},resetUsers:(n,r)=>{const i=Qs(n,r);i.users=i.users.filter(({isNew:u})=>!u).map(u=>({...u,resourceIds:[...u.initialResourceIds],role:u.initialRole,hasChanges:!1}))},setRequest:(n,r)=>{const i=Qs(n,r);i&&(i.selectedRequestId=r.payload.requestId,i.tab=="users"&&i.currentRequestId!=i.selectedRequestId&&(i.tab="overview"))},setResourceQuestionValues:(n,r)=>{const{attributeSetId:i,resourceId:u,values:l}=r.payload,d=Kr(n,r);for(let h of d.resources)if(h.resourceId==u){for(let v of h.questions)if(v.attributeSetId==i){v.values=l;break}break}},setResourceRequest:(n,r)=>{const{resourceId:i,requested:u}=r.payload,l=Kr(n,r);let d,h=0;for(let v of l.resources)v.resourceId==i&&(v.requested=u),v.isCredit?(d=v,h+=v.allocated*v.unitCost):h-=(v.requested-v.allocated)*v.unitCost;d&&(d.requested=Fp(h,d.decimalPlaces,"floor"))},setResourcesReason:(n,r)=>{const i=Kr(n,r);i.resourcesReason=r.payload.reason},setTab:(n,r)=>{const i=Qs(n,r);i&&(i.tab=r.payload.tab)},setUserRole:(n,r)=>{const i=ZU(n,r);i.role=r.payload.role,b_(i)},toggleActionsModal:(n,r)=>{const i=Kr(n,r);i.showActionsModal=!i.showActionsModal},toggleConfirmModal:(n,r)=>{const i=Kr(n,r);i.showConfirmModal=!i.showConfirmModal},toggleDeleteModal:(n,r)=>{const i=jb(n,r);i.showDeleteModal=!i.showDeleteModal},toggleResourcesModal:(n,r)=>{const i=Kr(n,r);i.showResourcesModal=!i.showResourcesModal},toggleUsersResources:(n,r)=>{const i=Qs(n,r),u=n.requests[i.currentRequestId],{username:l,resourceId:d,checked:h}=r.payload,v=l?[i.users.find(y=>y.username==l)]:i.users;for(let y of v){if(d){let C=y.resourceIds.indexOf(d);h&&C==-1?y.resourceIds.push(d):!h&&C>=0&&y.resourceIds.splice(C,1)}else y.resourceIds=h?u.resources.filter(mw).map(({resourceId:C})=>C):[];b_(y)}}},extraReducers:n=>{n.addCase(Wb.pending,r=>{r.projectListLoading=!0}).addCase(Wb.fulfilled,(r,i)=>{i.payload.projectsList.sort((u,l)=>d0(u.requests[0])>d0(l.requests[0])?-1:1),r.username=i.payload.username,r.projectsList=i.payload.projectsList.map(u=>{const{grantNumber:l,requestMasterId:d,requests:h,status:v,title:y}=u,x=u.requests.filter(w=>w.actions.filter(T=>T.returnedForCorrections).length>0).length>0?"Returned for Corrections":v||h&&(h.find(({timeStatus:w})=>w=="current")?"Active":h[0].timeStatus=="past"?"Inactive":h[0].status);return h&&WU(r,u,x),{grantNumber:l||d,status:x,title:y}}),r.projectListLoading=!1}).addCase(Wb.rejected,r=>{r.error="Failed to load project list.",r.projectListLoading=!1}).addCase(zA.rejected,(r,i)=>{const{grantNumber:u}=i.payload;r.projects[u]={error:"Failed to load project data."}}).addCase(HA.rejected,(r,i)=>{const{requestId:u}=i.payload;r.requests[u]={error:"Failed to load request data."}}).addCase(Xb.pending,(r,i)=>{const u=Kr(r,{payload:i.meta.arg});u.usageDetailStatus=ea.pending}).addCase(Xb.fulfilled,(r,i)=>{const u=Kr(r,i);u.usageDetail=i.payload.usageDetail,u.usageDetailStatus=ea.success}).addCase(Xb.rejected,(r,i)=>{const u=Kr(r,i);u.usageDetailStatus=ea.error}).addCase(Yb.pending,(r,i)=>{const u=jb(r,{payload:i.meta.arg});u.deleteStatus=ea.pending}).addCase(Yb.fulfilled,(r,i)=>{const u=Kr(r,i),l=jb(r,i);l.isRequest?(u.error="This request has been deleted.",l.allowedOperations=[]):u.actions=u.actions.filter(d=>d.actionId!=l.actionId),l.deleteStatus=ea.success,l.showDeleteModal=!1}).addCase(Yb.rejected,(r,i)=>{const u=jb(r,i);u.deleteStatus=ea.error}).addCase(Zb.pending,(r,i)=>{const u=Kr(r,{payload:i.meta.arg});u.exchangeStatus=ea.pending,u.showResourcesModal=!1}).addCase(Zb.fulfilled,(r,i)=>{const u=Kr(r,i);u.exchangeActionId=i.payload.exchangeActionId,u.exchangeStatus=ea.success}).addCase(Zb.rejected,(r,i)=>{const u=Kr(r,i);u.exchangeStatus=ea.error}).addCase(Jb.pending,(r,i)=>{const u=Qs(r,{payload:i.meta.arg});u.usersStatus=ea.pending}).addCase(Jb.fulfilled,(r,i)=>{const u=Qs(r,i);u.users=u.users.map(l=>({...l,initialResourceIds:[...l.resourceIds],initialRole:l.role,hasChanges:!1,isNew:!1})),u.usersStatus=ea.success}).addCase(Jb.rejected,(r,i)=>{const u=Qs(r,i);u.usersStatus=ea.error})}}),qU=n=>n.api.error,QU=n=>n.api.projectsList,KU=n=>n.api.projectListLoading,e$=(n,r)=>Qs(n.api,{payload:{grantNumber:r}}),t$=(n,r)=>Kr(n.api,{payload:{requestId:r}}),n$=n=>n.api.username,{addResource:r$,addUser:a$,closeUsageDetailModal:i$,hideAlert:J8,resetResources:o$,resetUsers:s$,setRequest:l$,setResourceQuestionValues:u$,setResourceRequest:c$,setResourcesReason:f$,setTab:d$,setUserRole:p$,toggleActionsModal:v$,toggleConfirmModal:h$,toggleDeleteModal:m$,toggleResourcesModal:g$,toggleUsersResources:y$}=UA.actions,b$=UA.reducer,C$=n=>{const r=qn(qU),i=qn(KU),u=qn(QU),l=Io();return M.useEffect(()=>{l(Wb(n))},[]),{error:r,loading:i,projects:u}},Ji=(n,r)=>{const i=qn(d=>e$(d,n)),u=qn(n$),l=Io();return M.useEffect(()=>{!i&&!r&&l(zA({grantNumber:n}))},[r]),{project:i,addUser:d=>l(a$({grantNumber:n,user:d})),resetUsers:()=>l(s$({grantNumber:n})),saveUsers:()=>l(Jb({grantNumber:n})),setRequest:d=>l(l$({grantNumber:n,requestId:d})),setTab:d=>l(d$({grantNumber:n,tab:d})),setUserRole:(d,h)=>l(p$({grantNumber:n,username:d,role:h})),statuses:ea,toggleUsersResources:(d,h,v)=>l(y$({grantNumber:n,username:h,resourceId:v,checked:d})),username:u}},ri=(n,r)=>{const i=qn(l=>t$(l,n)),u=Io();return M.useEffect(()=>{i||u(HA({grantNumber:r,requestId:n}))},[r,n]),{request:i,addResource:l=>u(r$({requestId:n,resourceId:l})),closeUsageDetailModal:()=>u(i$({requestId:n})),deleteAction:l=>u(Yb({actionId:l,requestId:n})),openUsageDetailModal:l=>u(Xb({grantNumber:i.grantNumber,requestId:n,resourceRepositoryKey:l})),resetResources:()=>u(o$({requestId:n})),saveResources:()=>u(Zb({requestId:n})),setResourceQuestionValues:(l,d,h)=>u(u$({requestId:n,resourceId:l,attributeSetId:d,values:h})),setResourceRequest:(l,d)=>u(c$({requestId:n,resourceId:l,requested:d})),setResourcesReason:l=>u(f$({requestId:n,reason:l})),statuses:ea,toggleActionsModal:()=>u(v$({requestId:n})),toggleConfirmModal:()=>u(h$({requestId:n})),toggleDeleteModal:l=>u(m$({requestId:n,actionId:l})),toggleResourcesModal:()=>u(g$({requestId:n}))}},na=({children:n,color:r})=>b.jsx("div",{className:`alert alert-${r} mt-3`,role:"alert",children:n}),x$="_project_qqnbz_1",S$="_expand_qqnbz_5",C_={project:x$,expand:S$},E$="_returnedForCorrectionsNotes_jujbd_1",w$={returnedForCorrectionsNotes:E$};var gw={exports:{}},yw={exports:{}},En={};/** @license React v16.13.1
|
|
270
|
+
`),ft}u0(()=>{le.current=void 0,ye.current=void 0,Y.current=Ve});const et=Jt.useMemo(()=>Jt.createElement(_,{...Ve,ref:Re}),[Re,_,Ve]);return Jt.useMemo(()=>N?Jt.createElement(ge.Provider,{value:G},et):et,[ge,et,G])}const U=Jt.memo(H);if(U.WrappedComponent=_,U.displayName=H.displayName=F,y){const q=Jt.forwardRef(function(he,ge){return Jt.createElement(U,{...he,reactReduxForwardedRef:ge})});return q.displayName=F,q.WrappedComponent=_,fw(q,_)}return fw(U,_)}}var ds=hU;function mU({store:n,context:r,children:i,serverState:u,stabilityCheck:l="once",identityFunctionCheck:d="once"}){const h=Jt.useMemo(()=>{const C=AA(n);return{store:n,subscription:C,getServerState:u?()=>u:void 0,stabilityCheck:l,identityFunctionCheck:d}},[n,u,l,d]),v=Jt.useMemo(()=>n.getState(),[n]);u0(()=>{const{subscription:C}=h;return C.onStateChange=C.notifyNestedSubs,C.trySubscribe(),v!==n.getState()&&C.notifyNestedSubs(),()=>{C.tryUnsubscribe(),C.onStateChange=void 0}},[h,v]);const y=r||nu;return Jt.createElement(y.Provider,{value:h},i)}var Qp=mU;function kA(n=nu){const r=n===nu?bA:Jw(n),i=()=>{const{store:u}=r();return u};return Object.assign(i,{withTypes:()=>i}),i}var gU=kA();function yU(n=nu){const r=n===nu?gU:kA(n),i=()=>r().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var Io=yU();NH(TH.useSyncExternalStoreWithSelector);lU(M.useSyncExternalStore);const dw={user:{colors:["#ffc42d","#fea92c","#f98f30","#f07537"]},rp:{colors:["#48c0b9","#2e9da4","#207b8b","#1a5b6e"]}},AE={};function MA(n,r=3){let i=0;for(;n/Math.pow(1e3,i)>1e3;)i+=1;const u=n.toString().length,l=Math.pow(10,u-r);return(Math.round(n/l)*l/Math.pow(1e3,i)).toString()+["","K","M","B","T"][i]}async function bU(){return await(await fetch("https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Community?type=style&token=AAPK220079f462f24fda89c27fa210c3f887EJPCECuukKD8PnCIBqktgGTKZWPlVXWjRoSsZYGkOJ12QemGItZ4liRZkcUzYyme")).json()}async function CU(n){if(AE[n])return AE[n];const r=document.location,i=`${r.protocol}//${r.host}${r.pathname}`,l=await(await fetch(`${i}/${n}`)).json();return AE[n]=l,l}function xU(n){const r=[...n.creditLines.features.map(u=>u.properties.credits)],i=[...n.rpPoints.features.map(u=>u.properties.rpCredits),...n.userPoints.features.map(u=>u.properties.userCredits)];return{lines:f_(r),points:f_(i)}}function c_({activeOrg:n,basemapStyle:r,creditLevels:i,creditType:u,geoJSON:l,organizationType:d}){const h={},v=[];if(l&&i){const C=d==="user"?"rp":"user",x=l[`${d}Points`],R=l[`${C}Points`],T=`${d}Credits`,A=`${C}Credits`;h.organizations={type:"geojson",data:x};const N={user:[],rp:[]},O=[];i.points.forEach((L,F)=>{Object.keys(dw).forEach(V=>{N[V].push(L[1],dw[V].colors[F])}),O.push(L[1],5*(F+1))});const _=[];if(i.lines.forEach((L,F)=>{_.push(L[1],1*(F+1))}),v.push({id:"organizations",type:"circle",source:"organizations",paint:{"circle-radius":["interpolate",["linear"],["get",T],...O],"circle-color":["interpolate",["linear"],["get",T],...N[d]],"circle-opacity":n?["match",["id"],n.id,1,.3]:1,"circle-stroke-color":"#ffffff","circle-stroke-width":1}}),n&&u!=="allocated"){h.opp={type:"geojson",data:R};const L=["get",n.id.toString(),["get",`${A}Map`]];v.push({id:"opp",type:"circle",source:"opp",filter:["has",n.id.toString(),["get",`${A}Map`]],paint:{"circle-radius":["interpolate",["linear"],L,...O],"circle-color":["interpolate",["linear"],L,...N[C]],"circle-stroke-color":"#ffffff","circle-stroke-width":1}}),h.credits={type:"geojson",data:l.creditLines},v.push({id:"credits",type:"line",source:"credits",filter:["==",["get",`${d}_organization_id`],n.id],paint:{"line-color":"#444444","line-opacity":.4,"line-width":["interpolate",["linear"],["get","credits"],..._]}})}}const y=r||{version:8,sources:{},layers:[]};return{...y,sources:{...y.sources,...h},layers:[...y.layers.filter(C=>C.id!=="Marine waterbody/label/2x large"),...v]}}function SU(n,r,i,u,l=20){return[...Array(l+1).keys()].map(d=>d/l).map(d=>{let h=d*(i-n)+n,v=d*(u-r)+r+Math.abs(Math.sin(d*Math.PI)*(i-n)*.1);return[h,v]})}function EU(n,r,i){const u={};return n.features.forEach(d=>u[d.id]={type:d.type,geometry:d.geometry,id:d.id,properties:{name:d.properties.name,abbr:d.properties.abbr,userCredits:0,userCreditsMap:{},rpCredits:0,rpCreditsMap:{}}},{}),{creditLines:{type:"FeatureCollection",features:r.result.filter(d=>u[d.user_organization_id]!==void 0&&(i==="allocated"||u[d.rp_organization_id]!==void 0)).map(d=>{const h=u[d.user_organization_id],v=u[d.rp_organization_id];if(h.properties.userCredits+=d.credits,v&&(v.properties.rpCredits+=d.credits),h.properties.userCreditsMap[d.rp_organization_id]=(h.properties.userCreditsMap[d.rp_organization_id]||0)+d.credits,v&&(v.properties.rpCreditsMap[d.user_organization_id]=(v.properties.rpCreditsMap[d.user_organization_id]||0)+d.credits),i!=="allocated")return{type:"Feature",geometry:{type:"LineString",coordinates:SU(...u[d.user_organization_id].geometry.coordinates,...u[d.rp_organization_id].geometry.coordinates)},properties:d}}).filter(d=>d!==void 0)},userPoints:{type:"FeatureCollection",features:Object.values(u).filter(d=>d.properties.userCredits>0).sort((d,h)=>d.properties.userCredits>h.properties.userCredits?-1:1)},rpPoints:{type:"FeatureCollection",features:Object.values(u).filter(d=>d.properties.rpCredits>0).sort((d,h)=>d.properties.rpCredits>h.properties.rpCredits?-1:1)}}}function f_(n,r=[0,.3,.6,.9]){return r.map((i,u)=>{const l=wU(n,i),d=u===r.length-1?"+":"";return[`${MA(Math.round(l))}${d}`,l]})}function wU(n,r){n.sort((d,h)=>d-h);const i=(n.length-1)*r,u=Math.floor(i),l=i-u;return n[u+1]!==void 0?n[u]+l*(n[u+1]-n[u]):n[u]}const RU="_fullscreen_1iid9_6",TU="_map_1iid9_14",Ab={"allocations-map":"_allocations-map_1iid9_1",fullscreen:RU,map:TU},IU="_group_11k83_1",NU="_button_11k83_6",_U="_icon_11k83_16",jE={group:IU,button:NU,icon:_U};function d_({choices:n,disabledValues:r=[],label:i,value:u,setValue:l}){const d=[];return n.forEach(([h,v])=>d.push(b.jsx("input",{type:"radio",className:"btn-check",name:h,id:h,autoComplete:"off",checked:u===h,onChange:()=>l(h),disabled:r.includes(h)},h),b.jsxs("label",{className:`btn btn-outline-primary ${jE.button}`,htmlFor:h,disabled:r.includes(h),children:[u===h?b.jsx("i",{className:`bi bi-check ${jE.icon}`}):null," ",v]},`${h}-label`))),b.jsx("div",{className:"mb-2",children:b.jsx("div",{className:`btn-group ${jE.group}`,role:"group","aria-label":i,children:d})})}const OU="_controls_1be4t_1",AU={controls:OU};function jU({creditType:n,organizationType:r,setCreditType:i,setOrganizationType:u}){return b.jsxs("div",{className:AU.controls,children:[b.jsx("h2",{children:"ACCESS Allocations"}),b.jsx(d_,{choices:[["allocated","Allocations"],["exchanged","Exchanges"],["used","Usage"]],label:"Credit Type",value:n,setValue:i}),b.jsx(d_,{choices:[["user","By Research Institution"],["rp","By Resource Provider"]],disabledValues:n==="allocated"?["rp"]:[],label:"Organization Type",value:r,setValue:u})]})}const DU="_legend_odgg9_1",kU="_symbols_odgg9_17",MU="_symbol_odgg9_17",$b={legend:DU,symbols:kU,symbol:MU};function LU(n,r){const i=2*n+2;return b.jsx("svg",{viewBox:`0 0 ${i} ${i}`,xmlns:"http://www.w3.org/2000/svg",stroke:"white",strokeWidth:"1",height:i,width:i,children:b.jsx("circle",{fill:r,cx:n+1,cy:n+1,r:n})})}function PU({activeOrg:n,creditLevels:r,organizationType:i}){if(n||!r)return;const u=r.points.map((l,d)=>b.jsxs("div",{className:$b.symbol,children:[LU(5*(d+1),dw[i].colors[d]),b.jsx("br",{}),b.jsx("span",{className:"label",children:l[0]})]},l[0]));return b.jsxs("div",{className:$b.legend,children:[b.jsxs("h2",{className:"fs-6 mt-0 mb-0",children:["ACCESS Credits ",b.jsx("small",{children:"or credit equivalents"})]}),b.jsx("div",{className:$b.symbols,children:u})]})}const FU="_info_oxxoh_1",VU="_user_oxxoh_7",BU="_rp_oxxoh_10",zU="_credits_oxxoh_15",Gb={info:FU,user:VU,rp:BU,credits:zU};function p_(n,r,i){n.sort((l,d)=>d[1]-l[1]);const u=n.slice(0,3).map(l=>l[0]);return n.length>3&&(u[2]=`${n.length-2} other ${i}s`),u.reduce((l,d,h,v)=>[l,b.jsx("span",{className:`name ${Gb[r]}`,children:d},d),[""," and ",", "][v.length-h-1]],[])}function HU({activeOrg:n,creditType:r,organizationMap:i,organizationType:u}){if(!n||!i)return;const l=n.properties,d=l[`${u}Credits`],h=u==="rp"?"user":"rp",v=JSON.parse(l[`${u}CreditsMap`]),y={user:[],rp:[]};return y[u].push([l.name,d]),Object.keys(v).forEach(C=>y[h].push([i[C],v[C]])),b.jsx("div",{className:`${$b.legend} ${Gb.info}`,children:b.jsxs("p",{className:Gb[u],children:["Researchers at ",p_(y.user,"user","research institution")," ",r==="allocated"?"were ":"",r," ",b.jsxs("span",{className:Gb.credits,children:[MA(d)," ACCESS Credits"]}),r!=="allocated"?b.jsxs(b.Fragment,{children:[" ",r==="exchanged"?"for":"on"," resources at"," ",p_(y.rp,"rp","resource provider")]}):"","."]})})}function UU(){const n=M.useRef(null),r=M.useRef(null),[i,u]=M.useState(null),[l,d]=M.useState(null),[h,v]=M.useState(null),[y,C]=M.useState(!1),[x,R]=M.useState(null),[T,A]=M.useState(null),[N,O]=M.useState(null),[_,L]=M.useState("user"),[F,V]=M.useState("exchanged");return M.useEffect(()=>{(async()=>d(await bU()))()},[]),M.useEffect(()=>{(async H=>{const[z,U]=await Promise.all(["organizations",`credits_${H}`].map(CU));if(!N){const q={};z.features.forEach(Re=>q[Re.id.toString()]=Re.properties.name),O(q)}const J=EU(z,U,F);R(J),H==="exchanged"&&!h&&v(xU(J))})(F)},[F]),M.useEffect(()=>{T&&T.setStyle(c_({activeOrg:i,basemapStyle:l,creditLevels:h,creditType:F,geoJSON:x,organizationType:_}))},[i,x,T,_]),M.useEffect(()=>{T&&(T.on("mousemove","organizations",H=>u(H.features.length?H.features[0]:null)),T.on("mouseleave","organizations",()=>u(null)))},[T]),M.useEffect(()=>{T&&T.resize()},[y]),M.useEffect(()=>{F==="allocated"&&L("user")},[F]),M.useLayoutEffect(()=>A(new maplibregl.Map({container:r.current,style:c_({activeOrg:i,basemapStyle:l,creditLevels:h,creditType:F,geoJSON:x,organizationType:_}),center:[-111.01,38.88],zoom:3.4,hash:!0})),[]),M.useLayoutEffect(()=>n.current.addEventListener("keydown",H=>{H.key==="Escape"&&C(!1)}),[]),b.jsxs("section",{className:`${Ab["allocations-map"]} ${y?Ab.fullscreen:"border border-3 border-primary"}`,ref:n,children:[b.jsx("div",{className:Ab.map,ref:r}),b.jsx(jU,{creditType:F,fullscreen:y,organizationType:_,setCreditType:V,setFullscreen:C,setOrganizationType:L}),b.jsx(PU,{activeOrg:i,creditLevels:h,organizationType:_}),b.jsx(HU,{activeOrg:i,creditType:F,organizationMap:N,organizationType:_}),b.jsx("button",{title:`${y?"Exit":"Enter"} Fullscreen`,className:Ab.fullscreen,onClick:()=>C(!y),children:b.jsx("i",{className:`bi ${y?"bi-fullscreen-exit":"bi-arrows-fullscreen"}`,"aria-label":"Fullscreen"})})]})}const Yl="https://allocations.access-ci.org",Nn={creditAlertThreshold:1e3,resourceTypeIcons:{credit:"cash-coin",compute:"cpu-fill",storage:"hdd-fill",program:"person-square"},routes:{edit_request_action_path:(n,r)=>`/requests/${n}/actions/${r}/edit`,edit_request_path:n=>`/requests/${n}/edit`,how_to_path:()=>"/how-to",get_your_first_project_path:()=>`${Yl}/get-your-first-project`,project_types_path:()=>`${Yl}/project-types`,projects_path:()=>`${Yl}/projects`,projects_save_users_path:()=>"/projects/save_users",renew_request_path:n=>`${Yl}/requests/${n}/renew`,request_action_path:(n,r)=>`${Yl}/requests/${n}/actions/${r}`,request_actions_path:n=>`${Yl}/requests/${n}/actions`,request_path:n=>`${Yl}/requests/${n}`,resources_path:()=>`${Yl}/resources`,search_people_path:()=>`${Yl}/search/people`,usage_detail_path:(n,r)=>`/usage/${n}/${r}`},roleIcons:{PI:"person-fill-check","Co-PI":"person-fill-add","Allocation Manager":"person-fill-gear",User:"people-fill"}};function c0({color:n="primary",href:r,icon:i,onClick:u,target:l,title:d}){const h=b.jsx("i",{className:`bi bi-${i}`}),v={className:`btn btn-sm ms-1 text-${n}`,href:r,onClick:u,style:{"--bs-btn-padding-x":"0.1rem","--bs-btn-padding-y":"0.1rem","--bs-btn-line-height":"1"},target:l,title:d};return r?b.jsx("a",{...v,children:h}):b.jsx("button",{...v,children:h})}const Fp=(n,r,i="round")=>{const u=Math.pow(10,r||0);return Math[i](n*u)/u},$U=n=>new Date(`${n}T00:00:00`),GU={year:"numeric",month:"short",day:"numeric"},Vp=(n,r)=>$U(n).toLocaleString("en-us",r||GU),ni=(n,{abbreviate:r=!1,decimalPlaces:i=void 0}={})=>{if(r){let u=0;for(;Math.abs(n)/Math.pow(1e3,u)>=1e3;)u+=1;const l=["","K","M","B","T","Q"][u];return`${(n/Math.pow(1e3,u)).toLocaleString("en-US",{maximumSignificantDigits:3})}${l}`}return n.toLocaleString("en-US",{maximumFractionDigits:i,minimumFractionDigits:i})},tR=(n,r)=>{if(n.startDate&&n.endDate){const l=Vp(n.startDate,r),d=Vp(n.endDate,r);return`${n.allocationType}: ${l} to ${d}`}const i=Vp(n.entryDate,r),u=n.status=="Incomplete"?"Started":"Submitted";return`${n.allocationType}: ${u} ${i}`},gc=n=>b.jsx("i",{className:`bi bi-${n}`}),M0=n=>{const r=n.match(/^([^\(\)]+) (\(([^\)]+)\))?$/);return{full:n,short:r&&r[3]||null}},Uf=(n,{userGuide:r=!0}={})=>{const{full:i,short:u}=M0(n.name),l=u?b.jsx("abbr",{title:i,children:u}):i;return b.jsxs(b.Fragment,{children:[gc(Nn.resourceTypeIcons[n.icon])," ",l,!n.isCredit&&n.userGuideUrl&&r?b.jsx(c0,{icon:"book",href:n.userGuideUrl,target:"_blank",title:`${n.name} User Guide`}):null]})},v_=n=>{const r=M0(n.name);return r.short||r.full},f0=(n,r)=>n.isCredit>r.isCredit||n.isActive>r.isActive||v_(n)<v_(r)?-1:1,h_=(...n)=>{for(let r of n)if(r!=null)return r;return null},LA=(n,r="and",i=", ")=>n.reduce((u,l,d)=>b.jsxs(b.Fragment,{children:[u,n.length-1>d?i:` ${r} `,l]})),nR=n=>n?b.jsxs(b.Fragment,{children:[gc("check-circle")," Yes"]}):b.jsxs(b.Fragment,{children:[gc("x-circle")," No"]}),rR=n=>LA(n.users.filter(({role:r})=>["pi","co_pi","allocation_manager"].includes(r)).map(r=>`${r.firstName} ${r.lastName}`),"or"),m_=(n,r)=>r==1&&n.endsWith("s")?n.slice(0,-1):n,PA=n=>{let r=0,i=0;for(let u of n.resources)u.isBoolean||(r+=u.allocated*u.unitCost,i+=Math.min(u.used,u.allocated)*u.unitCost);return r>0?i/r:0},L0=[{role:"pi",name:"PI",xrasRole:"PI"},{role:"co_pi",name:"Co-PI",xrasRole:"CoPI"},{role:"allocation_manager",name:"Allocation Manager",xrasRole:"Allocation Manager"},{role:"user",name:"User",xrasRole:"User"}],FA={};for(let n of L0)FA[n.role]=n;const pw={};for(let{role:n,xrasRole:r}of L0)pw[n]=r;const vw=["info","success","secondary","warning","danger"],ea={error:"error",pending:"pending",success:"success"},d0=n=>n.endDate||n.startDate||(n.actions[0]||{}).entryDate,g_=n=>`${{pi:"01",co_pi:"02",allocation_manager:"03"}[n.role]||"04"} ${n.lastName}, ${n.firstName}`,WU=(n,{grantNumber:r,projectManager:i,requestMasterId:u,requests:l,title:d,users:h},v)=>{r=r||u,l.sort((x,R)=>d0(x)>d0(R)?-1:1);const y=l.find(x=>x.timeStatus=="current"),C=y?y.requestId:null;n.projects[r]={currentRequestId:C,grantNumber:r,isManager:i,requestsList:l.map(x=>{const{actions:R,allocationType:T,endDate:A,requestId:N,startDate:O,status:_}=x,L=R.map(({entryDate:F})=>F).sort()[0].split("T")[0];return XU(n,x,{entryDate:L,grantNumber:r}),{allocationType:T,endDate:A,entryDate:L,requestId:N,startDate:O,status:_}}),selectedRequestId:C||l[0].requestId,status:v,tab:"overview",title:d,users:h.map(({email:x,firstName:R,lastName:T,organization:A,resources:N,role:O,username:_})=>{const L=N.filter(U=>U.userAccountState=="active"&&U.unitType!="ACCESS Credits"),F=L.map(U=>U.xrasResourceId),V=L.filter(U=>U.resourceProviderState=="pending-active").map(U=>U.xrasResourceId),H=N.filter(U=>U.userAccountState!="active").map(U=>U.xrasResourceId),z={};for(let U of L)z[U.xrasResourceId]=U.resourceUsername;return{email:x,firstName:R,initialResourceIds:[...F],initialRole:O,lastName:T,organization:A,resourceAccountPendingIds:V,resourceAccountInactiveIds:H,resourceIds:F,resourceUsernames:z,role:O,username:_}}).sort((x,R)=>g_(x)<g_(R)?-1:1),usersNewRowIndex:0,usersStatus:null},n.projects[r].currentUser=n.projects[r].users.find(({username:x})=>x==n.username)},XU=(n,{actions:r,allocationType:i,allowedActions:u,endDate:l,requestId:d,requestType:h,resources:v,startDate:y,status:C,timeStatus:x},{entryDate:R,grantNumber:T})=>{v=v||[];const A={actions:r.map(({actionId:_,actionStatusType:L,actionType:F,allowedOperations:V,approvedStartDate:H,detailAvailable:z,entryDate:U,isRequest:J,requestedStartDate:q,resources:Re})=>({actionId:_,allowedOperations:V,detailAvailable:z,date:(U||H||q).split("T")[0],deleteStatus:null,isRequest:J,resources:Re.map(hw).sort(f0),showDeleteModal:!1,status:L,type:F})),allocationType:i,allowedActions:YU(u),endDate:l,entryDate:R,exchangeActionId:null,exchangeStatus:null,grantNumber:T,isMaximize:i=="Maximize",requestId:d,resources:v.map(hw).filter(_=>_.isCredit||_.allocated>0).sort(f0),resourcesReason:"",returnedForCorrections:!!r.find(_=>_.returnedForCorrections),returnedForCorrectionsNotes:r.map(_=>_.adminComments).join(","),showActionsModal:!1,showConfirmModal:!1,showResourcesModal:!1,startDate:y,status:C,timeStatus:x,type:h,usageDetail:null,usageDetailStatus:null,usesCredits:["Explore","Discover","Accelerate"].includes(i)};let N={};for(let _ of A.actions)if(["Exchange","Transfer"].includes(_.type)&&["Submitted","Under Review"].includes(_.status)){A.exchangeActionId=_.actionId;for(let L of _.resources)N[L.resourceId]=L;for(let L of A.resources)L.resourceId in N&&(L.requested+=N[L.resourceId].requested,delete N[L.resourceId]);A.resources.push(...Object.values(N).map(L=>({...L,isNew:!0})));break}const O=A.allowedActions.Exchange||A.allowedActions.Transfer;if(O){N={};for(let _ of O.resources)N[_.resourceId]=_;for(let _ of A.resources)_.resourceId in N&&(_.questions=N[_.resourceId].questions||[])}!A.usesCredits&&v.length&&A.resources.push({allocated:0,decimalPlaces:0,icon:"credit",isActive:!0,isBoolean:!1,isCredit:!0,isFake:!0,name:"Credit Equivalents",requested:0,requires:[],resourceId:0,unit:"Credit Equivalents",unitCost:1,used:0}),n.requests[d]=A},YU=n=>{const r={};for(let{actionType:i,allowedResources:u,opportunityId:l,opportunityName:d}of n){let h={name:i,resources:u.map(hw).sort(f0),opportunityId:l,opportunityName:d};i in r?(Array.isArray(r[i])||(r[i]=[r[i]]),r[i].push(h)):r[i]=h}return"Transfer"in r&&!("Exchange"in r)&&(r.Exchange=r.Transfer),r},y_=(n,r)=>n.relativeOrder<r.relativeOrder?-1:1,hw=({allocationState:n,amountAllocated:r,amountApproved:i,amountRequested:u,amountUsed:l,attributeSets:d,dependentResourceXrasIds:h,displayResourceName:v,endDate:y,exchangeRate:C,resourceRepositoryKey:x,resourceType:R,startDate:T,unitType:A,userGuideUrl:N,xrasResourceId:O})=>({allocated:Fp(h_(r,i)||0,0,"floor"),decimalPlaces:0,endDate:y,icon:A=="ACCESS Credits"?"credit":R.toLowerCase(),isActive:n=="active",isBoolean:A=="[Yes = 1, No = 0]",isCredit:A=="ACCESS Credits",isFake:!1,isUnderReview:!1,isNew:!1,name:v.trim(),questions:(d||[]).filter(({isActive:_})=>_).sort(y_).map(_=>({attributeSetId:_.attributeSetId,attributes:_.attributes.sort(y_).map(L=>({required:L.isRequired,resourceAttributeId:L.resourceAttributeId,label:L.attributeName})),fieldType:_.attributeSetRelationType,label:_.attributeSetName,resourceId:O,values:[]})),requested:Fp(h_(u,r)||0,0,"floor"),requires:h||[],resourceId:O,resourceRepositoryKey:x,startDate:T,type:R,unit:A,unitCost:A!="[Yes = 1, No = 0]"&&C?C:0,used:Fp(l||0,0,"ceil"),userGuideUrl:N}),VA=(n,r)=>(n=[...n].sort(),r=[...r].sort(),n.length===r.length&&n.every((i,u)=>i===r[u])),jb=(n,r)=>{const i=Kr(n,r);for(let u of i.actions)if(u.actionId==r.payload.actionId)return u},Qs=(n,r)=>n.projects[r.payload.grantNumber],Kr=(n,r)=>n.requests[r.payload.requestId],ZU=(n,r)=>Qs(n,r).users.find(({username:i})=>i==r.payload.username),mw=({allocated:n,isActive:r,isCredit:i})=>n>0&&r&&!i,b_=n=>n.hasChanges=n.isNew||n.role!=n.initialRole||!VA(n.resourceIds,n.initialResourceIds),BA=()=>document.querySelector("meta[name=csrf-token]").content,JU=async n=>{const r=new URLSearchParams({q:n});return(await(await fetch(`${Nn.routes.search_people_path()}?${r}`)).json()).map(({email:u,first_name:l,last_name:d,username:h,organization:v})=>({email:u,firstName:l,lastName:d,username:h,organization:v}))},Wb=Di("api/fetchProjectsList",async(n,{rejectWithValue:r})=>{const i=await fetch(`${Nn.routes.projects_path()}.json`);return i.status==200?{username:n,projectsList:(await i.json()).result}:r({})}),zA=Di("api/fetchProjectDetail",async({grantNumber:n},{rejectWithValue:r})=>r({grantNumber:n})),HA=Di("api/fetchRequestDetail",async({grantNumber:n,requestId:r},{rejectWithValue:i})=>i({grantNumber:n,requestId:r})),Xb=Di("api/fetchUsageDetail",async({grantNumber:n,requestId:r,resourceRepositoryKey:i},{rejectWithValue:u})=>{const l=await fetch(`${Nn.routes.usage_detail_path(n,i)}.json`);return l.status==200?{grantNumber:n,requestId:r,resourceRepositoryKey:i,usageDetail:(await l.json()).usage}:u({grantNumber:n,requestId:r,resourceRepositoryKey:i})}),Yb=Di("api/deleteAction",async({actionId:n,requestId:r},{getState:i,rejectWithValue:u})=>{const l=i().api.requests[r],d=l.actions.find(C=>C.actionId==n);if(!d||!d.allowedOperations||!d.allowedOperations.includes("Delete"))return u({actionId:n,requestId:r});const h=Nn.routes.request_action_path(l.requestId,d.actionId),v={_method:"delete",authenticity_token:BA()};return(await fetch(h,{body:Object.keys(v).map(C=>`${encodeURIComponent(C)}=${encodeURIComponent(v[C])}`).join("&"),headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},method:"POST"})).status==200?{actionId:n,requestId:r}:u({actionId:n,requestId:r})}),Zb=Di("api/saveResources",async({requestId:n},{getState:r,rejectWithValue:i})=>{const u=r().api.requests[n],l={},d={};for(let{allocated:C,isFake:x,questions:R,requested:T,resourceId:A}of u.resources)if(T!=C&&!x){l[A]={resource_id:A,requested:1,amount:T-C};for(let{attributes:N,values:O,fieldType:_}of R)if(O.length){let L=N[0].resourceAttributeId,F=["drop_down","single_sel","multi_sel"].includes(_),H={resource_attribute_id:_=="multi_sel"?O:F?O[0]:L};F||(H.attribute_value=O[0]),d[L]=H}}const h={authenticity_token:BA(),request_action:{action_type:u.allowedActions.Exchange.name,user_comments:u.resourcesReason,resource_attributes:d},requested_resources:l},v=u.exchangeActionId?Nn.routes.request_action_path(u.requestId,u.exchangeActionId):Nn.routes.request_actions_path(u.requestId),y=await fetch(`${v}.json`,{body:JSON.stringify(h),headers:{"Content-Type":"application/json"},method:u.exchangeActionId?"PUT":"POST"});if(y.status==200){const C=parseInt(y.url.split("/").pop(),10);return{requestId:n,exchangeActionId:C}}return i({requestId:n})}),Jb=Di("api/saveUsers",async({grantNumber:n},{getState:r,rejectWithValue:i})=>{const l=r().api.projects[n].users,d=l.filter(C=>!VA(C.resourceIds,C.initialResourceIds)||C.isNew).length==0?[]:l.map(C=>({username:C.username,resources:C.resourceIds})),h=l.filter(C=>C.role!=C.initialRole).map(C=>({username:C.username,role:pw[C.role],initialRole:pw[C.initialRole]})),v={grantNumber:n,resourceChanges:d,roleChanges:h,authenticity_token:document.querySelector("meta[name=csrf-token]").content};return(await fetch(Nn.routes.projects_save_users_path(),{method:"POST",body:JSON.stringify(v),headers:{"Content-Type":"application/json"}})).status==200?{grantNumber:n}:i({grantNumber:n})}),UA=D0({name:"api",initialState:{error:null,projectsList:[],projectListLoading:!1,projects:{},requests:{},username:null},reducers:{addResource:(n,r)=>{const{resourceId:i}=r.payload,u=Kr(n,r),l=u.allowedActions.Exchange;if(!l)return;const d={};for(let y of l.resources)d[y.resourceId]=y;const h=u.resources.map(y=>y.resourceId),v=[i,...d[i].requires||[]].filter(y=>y in d&&!h.includes(y));u.resources.push(...v.map(y=>({...d[y],allocated:0,isNew:!0,used:0,requested:0})))},addUser:(n,r)=>{const i=Qs(n,r),u=n.requests[i.currentRequestId],{user:l}=r.payload;i.users.map(({username:d})=>d).includes(l.username)||(i.users.push({...l,resourceIds:u.resources.filter(mw).map(d=>d.resourceId),role:"user",initialResourceIds:[],initialRole:"user",hasChanges:!0,isNew:!0}),i.usersNewRowIndex=i.users.length-1)},closeUsageDetailModal:(n,r)=>{const i=Kr(n,r);i.usageDetail=null,i.usageDetailStatus=null},resetResources:(n,r)=>{const i=Kr(n,r);i.resourcesReason="",i.resources=i.resources.filter(u=>u.isCredit||u.allocated).map(u=>({...u,requested:u.allocated}))},resetUsers:(n,r)=>{const i=Qs(n,r);i.users=i.users.filter(({isNew:u})=>!u).map(u=>({...u,resourceIds:[...u.initialResourceIds],role:u.initialRole,hasChanges:!1}))},setRequest:(n,r)=>{const i=Qs(n,r);i&&(i.selectedRequestId=r.payload.requestId,i.tab=="users"&&i.currentRequestId!=i.selectedRequestId&&(i.tab="overview"))},setResourceQuestionValues:(n,r)=>{const{attributeSetId:i,resourceId:u,values:l}=r.payload,d=Kr(n,r);for(let h of d.resources)if(h.resourceId==u){for(let v of h.questions)if(v.attributeSetId==i){v.values=l;break}break}},setResourceRequest:(n,r)=>{const{resourceId:i,requested:u}=r.payload,l=Kr(n,r);let d,h=0;for(let v of l.resources)v.resourceId==i&&(v.requested=u),v.isCredit?(d=v,h+=v.allocated*v.unitCost):h-=(v.requested-v.allocated)*v.unitCost;d&&(d.requested=Fp(h,d.decimalPlaces,"floor"))},setResourcesReason:(n,r)=>{const i=Kr(n,r);i.resourcesReason=r.payload.reason},setTab:(n,r)=>{const i=Qs(n,r);i&&(i.tab=r.payload.tab)},setUserRole:(n,r)=>{const i=ZU(n,r);i.role=r.payload.role,b_(i)},toggleActionsModal:(n,r)=>{const i=Kr(n,r);i.showActionsModal=!i.showActionsModal},toggleConfirmModal:(n,r)=>{const i=Kr(n,r);i.showConfirmModal=!i.showConfirmModal},toggleDeleteModal:(n,r)=>{const i=jb(n,r);i.showDeleteModal=!i.showDeleteModal},toggleResourcesModal:(n,r)=>{const i=Kr(n,r);i.showResourcesModal=!i.showResourcesModal},toggleUsersResources:(n,r)=>{const i=Qs(n,r),u=n.requests[i.currentRequestId],{username:l,resourceId:d,checked:h}=r.payload,v=l?[i.users.find(y=>y.username==l)]:i.users;for(let y of v){if(d){let C=y.resourceIds.indexOf(d);h&&C==-1?y.resourceIds.push(d):!h&&C>=0&&y.resourceIds.splice(C,1)}else y.resourceIds=h?u.resources.filter(mw).map(({resourceId:C})=>C):[];b_(y)}}},extraReducers:n=>{n.addCase(Wb.pending,r=>{r.projectListLoading=!0}).addCase(Wb.fulfilled,(r,i)=>{i.payload.projectsList.sort((u,l)=>d0(u.requests[0])>d0(l.requests[0])?-1:1),r.username=i.payload.username,r.projectsList=i.payload.projectsList.map(u=>{const{grantNumber:l,requestMasterId:d,requests:h,status:v,title:y}=u,x=u.requests.filter(R=>R.actions.filter(T=>T.returnedForCorrections).length>0).length>0?"Returned for Corrections":v||h&&(h.find(({timeStatus:R})=>R=="current")?"Active":h[0].timeStatus=="past"?"Inactive":h[0].status);return h&&WU(r,u,x),{grantNumber:l||d,status:x,title:y}}),r.projectListLoading=!1}).addCase(Wb.rejected,r=>{r.error="Failed to load project list.",r.projectListLoading=!1}).addCase(zA.rejected,(r,i)=>{const{grantNumber:u}=i.payload;r.projects[u]={error:"Failed to load project data."}}).addCase(HA.rejected,(r,i)=>{const{requestId:u}=i.payload;r.requests[u]={error:"Failed to load request data."}}).addCase(Xb.pending,(r,i)=>{const u=Kr(r,{payload:i.meta.arg});u.usageDetailStatus=ea.pending}).addCase(Xb.fulfilled,(r,i)=>{const u=Kr(r,i);u.usageDetail=i.payload.usageDetail,u.usageDetailStatus=ea.success}).addCase(Xb.rejected,(r,i)=>{const u=Kr(r,i);u.usageDetailStatus=ea.error}).addCase(Yb.pending,(r,i)=>{const u=jb(r,{payload:i.meta.arg});u.deleteStatus=ea.pending}).addCase(Yb.fulfilled,(r,i)=>{const u=Kr(r,i),l=jb(r,i);l.isRequest?(u.error="This request has been deleted.",l.allowedOperations=[]):u.actions=u.actions.filter(d=>d.actionId!=l.actionId),l.deleteStatus=ea.success,l.showDeleteModal=!1}).addCase(Yb.rejected,(r,i)=>{const u=jb(r,i);u.deleteStatus=ea.error}).addCase(Zb.pending,(r,i)=>{const u=Kr(r,{payload:i.meta.arg});u.exchangeStatus=ea.pending,u.showResourcesModal=!1}).addCase(Zb.fulfilled,(r,i)=>{const u=Kr(r,i);u.exchangeActionId=i.payload.exchangeActionId,u.exchangeStatus=ea.success}).addCase(Zb.rejected,(r,i)=>{const u=Kr(r,i);u.exchangeStatus=ea.error}).addCase(Jb.pending,(r,i)=>{const u=Qs(r,{payload:i.meta.arg});u.usersStatus=ea.pending}).addCase(Jb.fulfilled,(r,i)=>{const u=Qs(r,i);u.users=u.users.map(l=>({...l,initialResourceIds:[...l.resourceIds],initialRole:l.role,hasChanges:!1,isNew:!1})),u.usersStatus=ea.success}).addCase(Jb.rejected,(r,i)=>{const u=Qs(r,i);u.usersStatus=ea.error})}}),qU=n=>n.api.error,QU=n=>n.api.projectsList,KU=n=>n.api.projectListLoading,e$=(n,r)=>Qs(n.api,{payload:{grantNumber:r}}),t$=(n,r)=>Kr(n.api,{payload:{requestId:r}}),n$=n=>n.api.username,{addResource:r$,addUser:a$,closeUsageDetailModal:i$,hideAlert:J8,resetResources:o$,resetUsers:s$,setRequest:l$,setResourceQuestionValues:u$,setResourceRequest:c$,setResourcesReason:f$,setTab:d$,setUserRole:p$,toggleActionsModal:v$,toggleConfirmModal:h$,toggleDeleteModal:m$,toggleResourcesModal:g$,toggleUsersResources:y$}=UA.actions,b$=UA.reducer,C$=n=>{const r=qn(qU),i=qn(KU),u=qn(QU),l=Io();return M.useEffect(()=>{l(Wb(n))},[]),{error:r,loading:i,projects:u}},Ji=(n,r)=>{const i=qn(d=>e$(d,n)),u=qn(n$),l=Io();return M.useEffect(()=>{!i&&!r&&l(zA({grantNumber:n}))},[r]),{project:i,addUser:d=>l(a$({grantNumber:n,user:d})),resetUsers:()=>l(s$({grantNumber:n})),saveUsers:()=>l(Jb({grantNumber:n})),setRequest:d=>l(l$({grantNumber:n,requestId:d})),setTab:d=>l(d$({grantNumber:n,tab:d})),setUserRole:(d,h)=>l(p$({grantNumber:n,username:d,role:h})),statuses:ea,toggleUsersResources:(d,h,v)=>l(y$({grantNumber:n,username:h,resourceId:v,checked:d})),username:u}},ri=(n,r)=>{const i=qn(l=>t$(l,n)),u=Io();return M.useEffect(()=>{i||u(HA({grantNumber:r,requestId:n}))},[r,n]),{request:i,addResource:l=>u(r$({requestId:n,resourceId:l})),closeUsageDetailModal:()=>u(i$({requestId:n})),deleteAction:l=>u(Yb({actionId:l,requestId:n})),openUsageDetailModal:l=>u(Xb({grantNumber:i.grantNumber,requestId:n,resourceRepositoryKey:l})),resetResources:()=>u(o$({requestId:n})),saveResources:()=>u(Zb({requestId:n})),setResourceQuestionValues:(l,d,h)=>u(u$({requestId:n,resourceId:l,attributeSetId:d,values:h})),setResourceRequest:(l,d)=>u(c$({requestId:n,resourceId:l,requested:d})),setResourcesReason:l=>u(f$({requestId:n,reason:l})),statuses:ea,toggleActionsModal:()=>u(v$({requestId:n})),toggleConfirmModal:()=>u(h$({requestId:n})),toggleDeleteModal:l=>u(m$({requestId:n,actionId:l})),toggleResourcesModal:()=>u(g$({requestId:n}))}},na=({children:n,color:r})=>b.jsx("div",{className:`alert alert-${r} mt-3`,role:"alert",children:n}),x$="_project_qqnbz_1",S$="_expand_qqnbz_5",C_={project:x$,expand:S$},E$="_returnedForCorrectionsNotes_jujbd_1",w$={returnedForCorrectionsNotes:E$};var gw={exports:{}},yw={exports:{}},En={};/** @license React v16.13.1
|
|
271
271
|
* react-is.production.min.js
|
|
272
272
|
*
|
|
273
273
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
274
274
|
*
|
|
275
275
|
* This source code is licensed under the MIT license found in the
|
|
276
276
|
* LICENSE file in the root directory of this source tree.
|
|
277
|
-
*/var x_;function R$(){if(x_)return En;x_=1;var n=typeof Symbol=="function"&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,u=n?Symbol.for("react.fragment"):60107,l=n?Symbol.for("react.strict_mode"):60108,d=n?Symbol.for("react.profiler"):60114,h=n?Symbol.for("react.provider"):60109,v=n?Symbol.for("react.context"):60110,y=n?Symbol.for("react.async_mode"):60111,C=n?Symbol.for("react.concurrent_mode"):60111,x=n?Symbol.for("react.forward_ref"):60112,
|
|
277
|
+
*/var x_;function R$(){if(x_)return En;x_=1;var n=typeof Symbol=="function"&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,u=n?Symbol.for("react.fragment"):60107,l=n?Symbol.for("react.strict_mode"):60108,d=n?Symbol.for("react.profiler"):60114,h=n?Symbol.for("react.provider"):60109,v=n?Symbol.for("react.context"):60110,y=n?Symbol.for("react.async_mode"):60111,C=n?Symbol.for("react.concurrent_mode"):60111,x=n?Symbol.for("react.forward_ref"):60112,R=n?Symbol.for("react.suspense"):60113,T=n?Symbol.for("react.suspense_list"):60120,A=n?Symbol.for("react.memo"):60115,N=n?Symbol.for("react.lazy"):60116,O=n?Symbol.for("react.block"):60121,_=n?Symbol.for("react.fundamental"):60117,L=n?Symbol.for("react.responder"):60118,F=n?Symbol.for("react.scope"):60119;function V(z){if(typeof z=="object"&&z!==null){var U=z.$$typeof;switch(U){case r:switch(z=z.type,z){case y:case C:case u:case d:case l:case R:return z;default:switch(z=z&&z.$$typeof,z){case v:case x:case N:case A:case h:return z;default:return U}}case i:return U}}}function H(z){return V(z)===C}return En.AsyncMode=y,En.ConcurrentMode=C,En.ContextConsumer=v,En.ContextProvider=h,En.Element=r,En.ForwardRef=x,En.Fragment=u,En.Lazy=N,En.Memo=A,En.Portal=i,En.Profiler=d,En.StrictMode=l,En.Suspense=R,En.isAsyncMode=function(z){return H(z)||V(z)===y},En.isConcurrentMode=H,En.isContextConsumer=function(z){return V(z)===v},En.isContextProvider=function(z){return V(z)===h},En.isElement=function(z){return typeof z=="object"&&z!==null&&z.$$typeof===r},En.isForwardRef=function(z){return V(z)===x},En.isFragment=function(z){return V(z)===u},En.isLazy=function(z){return V(z)===N},En.isMemo=function(z){return V(z)===A},En.isPortal=function(z){return V(z)===i},En.isProfiler=function(z){return V(z)===d},En.isStrictMode=function(z){return V(z)===l},En.isSuspense=function(z){return V(z)===R},En.isValidElementType=function(z){return typeof z=="string"||typeof z=="function"||z===u||z===C||z===d||z===l||z===R||z===T||typeof z=="object"&&z!==null&&(z.$$typeof===N||z.$$typeof===A||z.$$typeof===h||z.$$typeof===v||z.$$typeof===x||z.$$typeof===_||z.$$typeof===L||z.$$typeof===F||z.$$typeof===O)},En.typeOf=V,En}var wn={},S_;function T$(){if(S_)return wn;S_=1;var n={};/** @license React v16.13.1
|
|
278
278
|
* react-is.development.js
|
|
279
279
|
*
|
|
280
280
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
281
281
|
*
|
|
282
282
|
* This source code is licensed under the MIT license found in the
|
|
283
283
|
* LICENSE file in the root directory of this source tree.
|
|
284
|
-
*/return n.NODE_ENV!=="production"&&function(){var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103,u=r?Symbol.for("react.portal"):60106,l=r?Symbol.for("react.fragment"):60107,d=r?Symbol.for("react.strict_mode"):60108,h=r?Symbol.for("react.profiler"):60114,v=r?Symbol.for("react.provider"):60109,y=r?Symbol.for("react.context"):60110,C=r?Symbol.for("react.async_mode"):60111,x=r?Symbol.for("react.concurrent_mode"):60111,
|
|
284
|
+
*/return n.NODE_ENV!=="production"&&function(){var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103,u=r?Symbol.for("react.portal"):60106,l=r?Symbol.for("react.fragment"):60107,d=r?Symbol.for("react.strict_mode"):60108,h=r?Symbol.for("react.profiler"):60114,v=r?Symbol.for("react.provider"):60109,y=r?Symbol.for("react.context"):60110,C=r?Symbol.for("react.async_mode"):60111,x=r?Symbol.for("react.concurrent_mode"):60111,R=r?Symbol.for("react.forward_ref"):60112,T=r?Symbol.for("react.suspense"):60113,A=r?Symbol.for("react.suspense_list"):60120,N=r?Symbol.for("react.memo"):60115,O=r?Symbol.for("react.lazy"):60116,_=r?Symbol.for("react.block"):60121,L=r?Symbol.for("react.fundamental"):60117,F=r?Symbol.for("react.responder"):60118,V=r?Symbol.for("react.scope"):60119;function H(Ae){return typeof Ae=="string"||typeof Ae=="function"||Ae===l||Ae===x||Ae===h||Ae===d||Ae===T||Ae===A||typeof Ae=="object"&&Ae!==null&&(Ae.$$typeof===O||Ae.$$typeof===N||Ae.$$typeof===v||Ae.$$typeof===y||Ae.$$typeof===R||Ae.$$typeof===L||Ae.$$typeof===F||Ae.$$typeof===V||Ae.$$typeof===_)}function z(Ae){if(typeof Ae=="object"&&Ae!==null){var It=Ae.$$typeof;switch(It){case i:var pt=Ae.type;switch(pt){case C:case x:case l:case h:case d:case T:return pt;default:var Kt=pt&&pt.$$typeof;switch(Kt){case y:case R:case O:case N:case v:return Kt;default:return It}}case u:return It}}}var U=C,J=x,q=y,Re=v,he=i,ge=R,fe=l,Oe=O,Te=N,xe=u,je=h,Le=d,ne=T,_e=!1;function G(Ae){return _e||(_e=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Y(Ae)||z(Ae)===C}function Y(Ae){return z(Ae)===x}function re(Ae){return z(Ae)===y}function ye(Ae){return z(Ae)===v}function Se(Ae){return typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===i}function Ne(Ae){return z(Ae)===R}function le(Ae){return z(Ae)===l}function ve(Ae){return z(Ae)===O}function we(Ae){return z(Ae)===N}function Ve(Ae){return z(Ae)===u}function et(Ae){return z(Ae)===h}function tt(Ae){return z(Ae)===d}function ft(Ae){return z(Ae)===T}wn.AsyncMode=U,wn.ConcurrentMode=J,wn.ContextConsumer=q,wn.ContextProvider=Re,wn.Element=he,wn.ForwardRef=ge,wn.Fragment=fe,wn.Lazy=Oe,wn.Memo=Te,wn.Portal=xe,wn.Profiler=je,wn.StrictMode=Le,wn.Suspense=ne,wn.isAsyncMode=G,wn.isConcurrentMode=Y,wn.isContextConsumer=re,wn.isContextProvider=ye,wn.isElement=Se,wn.isForwardRef=Ne,wn.isFragment=le,wn.isLazy=ve,wn.isMemo=we,wn.isPortal=Ve,wn.isProfiler=et,wn.isStrictMode=tt,wn.isSuspense=ft,wn.isValidElementType=H,wn.typeOf=z}(),wn}var I$={};I$.NODE_ENV==="production"?yw.exports=R$():yw.exports=T$();var aR=yw.exports;/*
|
|
285
285
|
object-assign
|
|
286
286
|
(c) Sindre Sorhus
|
|
287
287
|
@license MIT
|
|
288
|
-
*/var DE,E_;function N$(){if(E_)return DE;E_=1;var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function u(d){if(d==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(d)}function l(){try{if(!Object.assign)return!1;var d=new String("abc");if(d[5]="de",Object.getOwnPropertyNames(d)[0]==="5")return!1;for(var h={},v=0;v<10;v++)h["_"+String.fromCharCode(v)]=v;var y=Object.getOwnPropertyNames(h).map(function(x){return h[x]});if(y.join("")!=="0123456789")return!1;var C={};return"abcdefghijklmnopqrst".split("").forEach(function(x){C[x]=x}),Object.keys(Object.assign({},C)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return DE=l()?Object.assign:function(d,h){for(var v,y=u(d),C,x=1;x<arguments.length;x++){v=Object(arguments[x]);for(var
|
|
289
|
-
Valid keys: `+JSON.stringify(Object.keys(Y),null," "));var Ae=ft(we,tt,Ne,le,ve+"."+tt,u);if(Ae)return Ae}return null}return L(re)}function xe(Y){switch(typeof Y){case"number":case"string":case"undefined":return!0;case"boolean":return!Y;case"object":if(Array.isArray(Y))return Y.every(xe);if(Y===null||y(Y))return!0;var re=T(Y);if(re){var ye=re.call(Y),Se;if(re!==Y.entries){for(;!(Se=ye.next()).done;)if(!xe(Se.value))return!1}else for(;!(Se=ye.next()).done;){var Ne=Se.value;if(Ne&&!xe(Ne[1]))return!1}}else return!1;return!0;default:return!1}}function je(Y,re){return Y==="symbol"?!0:re?re["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&re instanceof Symbol:!1}function Le(Y){var re=typeof Y;return Array.isArray(Y)?"array":Y instanceof RegExp?"object":je(re,Y)?"symbol":re}function ne(Y){if(typeof Y>"u"||Y===null)return""+Y;var re=Le(Y);if(re==="object"){if(Y instanceof Date)return"date";if(Y instanceof RegExp)return"regexp"}return re}function _e(Y){var re=ne(Y);switch(re){case"array":case"object":return"an "+re;case"boolean":case"date":case"regexp":return"a "+re;default:return re}}function G(Y){return!Y.constructor||!Y.constructor.name?A:Y.constructor.name}return N.checkPropTypes=d,N.resetWarningCache=d.resetWarningCache,N.PropTypes=N,N},PE}var FE,N_;function A$(){if(N_)return FE;N_=1;var n=iR();function r(){}function i(){}return i.resetWarningCache=r,FE=function(){function u(h,v,y,C,x,
|
|
288
|
+
*/var DE,E_;function N$(){if(E_)return DE;E_=1;var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function u(d){if(d==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(d)}function l(){try{if(!Object.assign)return!1;var d=new String("abc");if(d[5]="de",Object.getOwnPropertyNames(d)[0]==="5")return!1;for(var h={},v=0;v<10;v++)h["_"+String.fromCharCode(v)]=v;var y=Object.getOwnPropertyNames(h).map(function(x){return h[x]});if(y.join("")!=="0123456789")return!1;var C={};return"abcdefghijklmnopqrst".split("").forEach(function(x){C[x]=x}),Object.keys(Object.assign({},C)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return DE=l()?Object.assign:function(d,h){for(var v,y=u(d),C,x=1;x<arguments.length;x++){v=Object(arguments[x]);for(var R in v)r.call(v,R)&&(y[R]=v[R]);if(n){C=n(v);for(var T=0;T<C.length;T++)i.call(v,C[T])&&(y[C[T]]=v[C[T]])}}return y},DE}var kE,w_;function iR(){if(w_)return kE;w_=1;var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return kE=n,kE}var ME,R_;function $A(){return R_||(R_=1,ME=Function.call.bind(Object.prototype.hasOwnProperty)),ME}var LE,T_;function _$(){if(T_)return LE;T_=1;var n={},r=function(){};if(n.NODE_ENV!=="production"){var i=iR(),u={},l=$A();r=function(h){var v="Warning: "+h;typeof console<"u"&&console.error(v);try{throw new Error(v)}catch{}}}function d(h,v,y,C,x){if(n.NODE_ENV!=="production"){for(var R in h)if(l(h,R)){var T;try{if(typeof h[R]!="function"){var A=Error((C||"React class")+": "+y+" type `"+R+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof h[R]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw A.name="Invariant Violation",A}T=h[R](v,R,C,y,null,i)}catch(O){T=O}if(T&&!(T instanceof Error)&&r((C||"React class")+": type specification of "+y+" `"+R+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof T+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),T instanceof Error&&!(T.message in u)){u[T.message]=!0;var N=x?x():"";r("Failed "+y+" type: "+T.message+(N??""))}}}}return d.resetWarningCache=function(){n.NODE_ENV!=="production"&&(u={})},LE=d,LE}var PE,I_;function O$(){if(I_)return PE;I_=1;var n={},r=aR,i=N$(),u=iR(),l=$A(),d=_$(),h=function(){};n.NODE_ENV!=="production"&&(h=function(y){var C="Warning: "+y;typeof console<"u"&&console.error(C);try{throw new Error(C)}catch{}});function v(){return null}return PE=function(y,C){var x=typeof Symbol=="function"&&Symbol.iterator,R="@@iterator";function T(Y){var re=Y&&(x&&Y[x]||Y[R]);if(typeof re=="function")return re}var A="<<anonymous>>",N={array:F("array"),bigint:F("bigint"),bool:F("boolean"),func:F("function"),number:F("number"),object:F("object"),string:F("string"),symbol:F("symbol"),any:V(),arrayOf:H,element:z(),elementType:U(),instanceOf:J,node:ge(),objectOf:Re,oneOf:q,oneOfType:he,shape:Oe,exact:Te};function O(Y,re){return Y===re?Y!==0||1/Y===1/re:Y!==Y&&re!==re}function _(Y,re){this.message=Y,this.data=re&&typeof re=="object"?re:{},this.stack=""}_.prototype=Error.prototype;function L(Y){if(n.NODE_ENV!=="production")var re={},ye=0;function Se(le,ve,we,Ve,et,tt,ft){if(Ve=Ve||A,tt=tt||we,ft!==u){if(C){var Ae=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Ae.name="Invariant Violation",Ae}else if(n.NODE_ENV!=="production"&&typeof console<"u"){var It=Ve+":"+we;!re[It]&&ye<3&&(h("You are manually calling a React.PropTypes validation function for the `"+tt+"` prop on `"+Ve+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),re[It]=!0,ye++)}}return ve[we]==null?le?ve[we]===null?new _("The "+et+" `"+tt+"` is marked as required "+("in `"+Ve+"`, but its value is `null`.")):new _("The "+et+" `"+tt+"` is marked as required in "+("`"+Ve+"`, but its value is `undefined`.")):null:Y(ve,we,Ve,et,tt)}var Ne=Se.bind(null,!1);return Ne.isRequired=Se.bind(null,!0),Ne}function F(Y){function re(ye,Se,Ne,le,ve,we){var Ve=ye[Se],et=Le(Ve);if(et!==Y){var tt=ne(Ve);return new _("Invalid "+le+" `"+ve+"` of type "+("`"+tt+"` supplied to `"+Ne+"`, expected ")+("`"+Y+"`."),{expectedType:Y})}return null}return L(re)}function V(){return L(v)}function H(Y){function re(ye,Se,Ne,le,ve){if(typeof Y!="function")return new _("Property `"+ve+"` of component `"+Ne+"` has invalid PropType notation inside arrayOf.");var we=ye[Se];if(!Array.isArray(we)){var Ve=Le(we);return new _("Invalid "+le+" `"+ve+"` of type "+("`"+Ve+"` supplied to `"+Ne+"`, expected an array."))}for(var et=0;et<we.length;et++){var tt=Y(we,et,Ne,le,ve+"["+et+"]",u);if(tt instanceof Error)return tt}return null}return L(re)}function z(){function Y(re,ye,Se,Ne,le){var ve=re[ye];if(!y(ve)){var we=Le(ve);return new _("Invalid "+Ne+" `"+le+"` of type "+("`"+we+"` supplied to `"+Se+"`, expected a single ReactElement."))}return null}return L(Y)}function U(){function Y(re,ye,Se,Ne,le){var ve=re[ye];if(!r.isValidElementType(ve)){var we=Le(ve);return new _("Invalid "+Ne+" `"+le+"` of type "+("`"+we+"` supplied to `"+Se+"`, expected a single ReactElement type."))}return null}return L(Y)}function J(Y){function re(ye,Se,Ne,le,ve){if(!(ye[Se]instanceof Y)){var we=Y.name||A,Ve=G(ye[Se]);return new _("Invalid "+le+" `"+ve+"` of type "+("`"+Ve+"` supplied to `"+Ne+"`, expected ")+("instance of `"+we+"`."))}return null}return L(re)}function q(Y){if(!Array.isArray(Y))return n.NODE_ENV!=="production"&&(arguments.length>1?h("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):h("Invalid argument supplied to oneOf, expected an array.")),v;function re(ye,Se,Ne,le,ve){for(var we=ye[Se],Ve=0;Ve<Y.length;Ve++)if(O(we,Y[Ve]))return null;var et=JSON.stringify(Y,function(ft,Ae){var It=ne(Ae);return It==="symbol"?String(Ae):Ae});return new _("Invalid "+le+" `"+ve+"` of value `"+String(we)+"` "+("supplied to `"+Ne+"`, expected one of "+et+"."))}return L(re)}function Re(Y){function re(ye,Se,Ne,le,ve){if(typeof Y!="function")return new _("Property `"+ve+"` of component `"+Ne+"` has invalid PropType notation inside objectOf.");var we=ye[Se],Ve=Le(we);if(Ve!=="object")return new _("Invalid "+le+" `"+ve+"` of type "+("`"+Ve+"` supplied to `"+Ne+"`, expected an object."));for(var et in we)if(l(we,et)){var tt=Y(we,et,Ne,le,ve+"."+et,u);if(tt instanceof Error)return tt}return null}return L(re)}function he(Y){if(!Array.isArray(Y))return n.NODE_ENV!=="production"&&h("Invalid argument supplied to oneOfType, expected an instance of array."),v;for(var re=0;re<Y.length;re++){var ye=Y[re];if(typeof ye!="function")return h("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+_e(ye)+" at index "+re+"."),v}function Se(Ne,le,ve,we,Ve){for(var et=[],tt=0;tt<Y.length;tt++){var ft=Y[tt],Ae=ft(Ne,le,ve,we,Ve,u);if(Ae==null)return null;Ae.data&&l(Ae.data,"expectedType")&&et.push(Ae.data.expectedType)}var It=et.length>0?", expected one of type ["+et.join(", ")+"]":"";return new _("Invalid "+we+" `"+Ve+"` supplied to "+("`"+ve+"`"+It+"."))}return L(Se)}function ge(){function Y(re,ye,Se,Ne,le){return xe(re[ye])?null:new _("Invalid "+Ne+" `"+le+"` supplied to "+("`"+Se+"`, expected a ReactNode."))}return L(Y)}function fe(Y,re,ye,Se,Ne){return new _((Y||"React class")+": "+re+" type `"+ye+"."+Se+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Ne+"`.")}function Oe(Y){function re(ye,Se,Ne,le,ve){var we=ye[Se],Ve=Le(we);if(Ve!=="object")return new _("Invalid "+le+" `"+ve+"` of type `"+Ve+"` "+("supplied to `"+Ne+"`, expected `object`."));for(var et in Y){var tt=Y[et];if(typeof tt!="function")return fe(Ne,le,ve,et,ne(tt));var ft=tt(we,et,Ne,le,ve+"."+et,u);if(ft)return ft}return null}return L(re)}function Te(Y){function re(ye,Se,Ne,le,ve){var we=ye[Se],Ve=Le(we);if(Ve!=="object")return new _("Invalid "+le+" `"+ve+"` of type `"+Ve+"` "+("supplied to `"+Ne+"`, expected `object`."));var et=i({},ye[Se],Y);for(var tt in et){var ft=Y[tt];if(l(Y,tt)&&typeof ft!="function")return fe(Ne,le,ve,tt,ne(ft));if(!ft)return new _("Invalid "+le+" `"+ve+"` key `"+tt+"` supplied to `"+Ne+"`.\nBad object: "+JSON.stringify(ye[Se],null," ")+`
|
|
289
|
+
Valid keys: `+JSON.stringify(Object.keys(Y),null," "));var Ae=ft(we,tt,Ne,le,ve+"."+tt,u);if(Ae)return Ae}return null}return L(re)}function xe(Y){switch(typeof Y){case"number":case"string":case"undefined":return!0;case"boolean":return!Y;case"object":if(Array.isArray(Y))return Y.every(xe);if(Y===null||y(Y))return!0;var re=T(Y);if(re){var ye=re.call(Y),Se;if(re!==Y.entries){for(;!(Se=ye.next()).done;)if(!xe(Se.value))return!1}else for(;!(Se=ye.next()).done;){var Ne=Se.value;if(Ne&&!xe(Ne[1]))return!1}}else return!1;return!0;default:return!1}}function je(Y,re){return Y==="symbol"?!0:re?re["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&re instanceof Symbol:!1}function Le(Y){var re=typeof Y;return Array.isArray(Y)?"array":Y instanceof RegExp?"object":je(re,Y)?"symbol":re}function ne(Y){if(typeof Y>"u"||Y===null)return""+Y;var re=Le(Y);if(re==="object"){if(Y instanceof Date)return"date";if(Y instanceof RegExp)return"regexp"}return re}function _e(Y){var re=ne(Y);switch(re){case"array":case"object":return"an "+re;case"boolean":case"date":case"regexp":return"a "+re;default:return re}}function G(Y){return!Y.constructor||!Y.constructor.name?A:Y.constructor.name}return N.checkPropTypes=d,N.resetWarningCache=d.resetWarningCache,N.PropTypes=N,N},PE}var FE,N_;function A$(){if(N_)return FE;N_=1;var n=iR();function r(){}function i(){}return i.resetWarningCache=r,FE=function(){function u(h,v,y,C,x,R){if(R!==n){var T=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw T.name="Invariant Violation",T}}u.isRequired=u;function l(){return u}var d={array:u,bigint:u,bool:u,func:u,number:u,object:u,string:u,symbol:u,any:u,arrayOf:l,element:u,elementType:u,instanceOf:l,node:u,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:i,resetWarningCache:r};return d.PropTypes=d,d},FE}var j$={};if(j$.NODE_ENV!=="production"){var D$=aR,k$=!0;gw.exports=O$()(D$.isElement,k$)}else gw.exports=A$()();var M$=gw.exports;const _t=qp(M$);function GA(n,r,i){const u=M.useRef(n!==void 0),[l,d]=M.useState(r),h=n!==void 0,v=u.current;return u.current=h,!h&&v&&l!==r&&d(r),[h?n:l,M.useCallback((...y)=>{const[C,...x]=y;let R=i==null?void 0:i(C,...x);return d(C),R},[i])]}var WA={};const p0={prefix:String(Math.round(Math.random()*1e10)),current:0},XA=kr.createContext(p0),L$=kr.createContext(!1);let P$=!!(typeof window<"u"&&window.document&&window.document.createElement),VE=new WeakMap;function F$(n=!1){let r=M.useContext(XA),i=M.useRef(null);if(i.current===null&&!n){var u,l;let d=(l=kr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||l===void 0||(u=l.ReactCurrentOwner)===null||u===void 0?void 0:u.current;if(d){let h=VE.get(d);h==null?VE.set(d,{id:r.current,state:d.memoizedState}):d.memoizedState!==h.state&&(r.current=h.id,VE.delete(d))}i.current=++r.current}return i.current}function V$(n){let r=M.useContext(XA);r===p0&&!P$&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let i=F$(!!n),u=r===p0&&WA.NODE_ENV==="test"?"react-aria":`react-aria${r.prefix}`;return n||`${u}-${i}`}function B$(n){let r=kr.useId(),[i]=M.useState($$()),u=i||WA.NODE_ENV==="test"?"react-aria":`react-aria${p0.prefix}`;return n||`${u}-${r}`}const YA=typeof kr.useId=="function"?B$:V$;function z$(){return!1}function H$(){return!0}function U$(n){return()=>{}}function $$(){return typeof kr.useSyncExternalStore=="function"?kr.useSyncExternalStore(U$,z$,H$):M.useContext(L$)}const G$=M.createContext(null),Kp=G$,W$=M.createContext(null),Xf=(n,r=null)=>n!=null?String(n):r||null,ru=W$;function X$(n){const r=M.useRef(n);return M.useEffect(()=>{r.current=n},[n]),r}function gr(n){const r=X$(n);return M.useCallback(function(...i){return r.current&&r.current(...i)},[r])}const __=n=>!n||typeof n=="function"?n:r=>{n.current=r};function Y$(n,r){const i=__(n),u=__(r);return l=>{i&&i(l),u&&u(l)}}function ps(n,r){return M.useMemo(()=>Y$(n,r),[n,r])}function oR({children:n,in:r,onExited:i,mountOnEnter:u,unmountOnExit:l}){const d=M.useRef(null),h=M.useRef(r),v=gr(i);M.useEffect(()=>{r?h.current=!0:v(d.current)},[r,v]);const y=ps(d,n.ref),C=M.cloneElement(n,{ref:y});return r?C:l||!h.current&&u?null:C}const Z$=["active","eventKey","mountOnEnter","transition","unmountOnExit","role","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],J$=["activeKey","getControlledId","getControllerId"],q$=["as"];function bw(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}function ZA(n){let{active:r,eventKey:i,mountOnEnter:u,transition:l,unmountOnExit:d,role:h="tabpanel",onEnter:v,onEntering:y,onEntered:C,onExit:x,onExiting:R,onExited:T}=n,A=bw(n,Z$);const N=M.useContext(Kp);if(!N)return[Object.assign({},A,{role:h}),{eventKey:i,isActive:r,mountOnEnter:u,transition:l,unmountOnExit:d,onEnter:v,onEntering:y,onEntered:C,onExit:x,onExiting:R,onExited:T}];const{activeKey:O,getControlledId:_,getControllerId:L}=N,F=bw(N,J$),V=Xf(i);return[Object.assign({},A,{role:h,id:_(i),"aria-labelledby":L(i)}),{eventKey:i,isActive:r==null&&V!=null?Xf(O)===V:r,transition:l||F.transition,mountOnEnter:u??F.mountOnEnter,unmountOnExit:d??F.unmountOnExit,onEnter:v,onEntering:y,onEntered:C,onExit:x,onExiting:R,onExited:T}]}const JA=M.forwardRef((n,r)=>{let{as:i="div"}=n,u=bw(n,q$);const[l,{isActive:d,onEnter:h,onEntering:v,onEntered:y,onExit:C,onExiting:x,onExited:R,mountOnEnter:T,unmountOnExit:A,transition:N=oR}]=ZA(u);return b.jsx(Kp.Provider,{value:null,children:b.jsx(ru.Provider,{value:null,children:b.jsx(N,{in:d,onEnter:h,onEntering:v,onEntered:y,onExit:C,onExiting:x,onExited:R,mountOnEnter:T,unmountOnExit:A,children:b.jsx(i,Object.assign({},l,{ref:r,hidden:!d,"aria-hidden":!d}))})})})});JA.displayName="TabPanel";const qA=n=>{const{id:r,generateChildId:i,onSelect:u,activeKey:l,defaultActiveKey:d,transition:h,mountOnEnter:v,unmountOnExit:y,children:C}=n,[x,R]=GA(l,d,u),T=YA(r),A=M.useMemo(()=>i||((O,_)=>T?`${T}-${_}-${O}`:null),[T,i]),N=M.useMemo(()=>({onSelect:R,activeKey:x,transition:h,mountOnEnter:v||!1,unmountOnExit:y||!1,getControlledId:O=>A(O,"tabpane"),getControllerId:O=>A(O,"tab")}),[R,x,h,v,y,A]);return b.jsx(Kp.Provider,{value:N,children:b.jsx(ru.Provider,{value:R||null,children:C})})};qA.Panel=JA;const QA=qA;var KA={exports:{}};/*!
|
|
290
290
|
Copyright (c) 2018 Jed Watson.
|
|
291
291
|
Licensed under the MIT License (MIT), see
|
|
292
292
|
http://jedwatson.github.io/classnames
|
|
293
|
-
*/(function(n){(function(){var r={}.hasOwnProperty;function i(){for(var d="",h=0;h<arguments.length;h++){var v=arguments[h];v&&(d=l(d,u(v)))}return d}function u(d){if(typeof d=="string"||typeof d=="number")return d;if(typeof d!="object")return"";if(Array.isArray(d))return i.apply(null,d);if(d.toString!==Object.prototype.toString&&!d.toString.toString().includes("[native code]"))return d.toString();var h="";for(var v in d)r.call(d,v)&&d[v]&&(h=l(h,v));return h}function l(d,h){return h?d?d+" "+h:d+h:d}n.exports?(i.default=i,n.exports=i):window.classNames=i})()})(KA);var Q$=KA.exports;const qt=qp(Q$);function sR(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}function v0(n,r){return v0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,l){return u.__proto__=l,u},v0(n,r)}function K$(n,r){n.prototype=Object.create(r.prototype),n.prototype.constructor=n,v0(n,r)}const O_={disabled:!1};var ej={},e3=ej.NODE_ENV!=="production"?_t.oneOfType([_t.number,_t.shape({enter:_t.number,exit:_t.number,appear:_t.number}).isRequired]):null;ej.NODE_ENV!=="production"&&_t.oneOfType([_t.string,_t.shape({enter:_t.string,exit:_t.string,active:_t.string}),_t.shape({enter:_t.string,enterDone:_t.string,enterActive:_t.string,exit:_t.string,exitDone:_t.string,exitActive:_t.string})]);const tj=kr.createContext(null);var t3=function(r){return r.scrollTop},n3={},dm="unmounted",pc="exited",Jl="entering",vc="entered",h0="exiting",iu=function(n){K$(r,n);function r(u,l){var d;d=n.call(this,u,l)||this;var h=l,v=h&&!h.isMounting?u.enter:u.appear,y;return d.appearStatus=null,u.in?v?(y=pc,d.appearStatus=Jl):y=vc:u.unmountOnExit||u.mountOnEnter?y=dm:y=pc,d.state={status:y},d.nextCallback=null,d}r.getDerivedStateFromProps=function(l,d){var h=l.in;return h&&d.status===dm?{status:pc}:null};var i=r.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(l){var d=null;if(l!==this.props){var h=this.state.status;this.props.in?h!==Jl&&h!==vc&&(d=Jl):(h===Jl||h===vc)&&(d=h0)}this.updateStatus(!1,d)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var l=this.props.timeout,d,h,v;return d=h=v=l,l!=null&&typeof l!="number"&&(d=l.exit,h=l.enter,v=l.appear!==void 0?l.appear:h),{exit:d,enter:h,appear:v}},i.updateStatus=function(l,d){if(l===void 0&&(l=!1),d!==null)if(this.cancelNextCallback(),d===Jl){if(this.props.unmountOnExit||this.props.mountOnEnter){var h=this.props.nodeRef?this.props.nodeRef.current:zf.findDOMNode(this);h&&t3(h)}this.performEnter(l)}else this.performExit();else this.props.unmountOnExit&&this.state.status===pc&&this.setState({status:dm})},i.performEnter=function(l){var d=this,h=this.props.enter,v=this.context?this.context.isMounting:l,y=this.props.nodeRef?[v]:[zf.findDOMNode(this),v],C=y[0],x=y[1],w=this.getTimeouts(),T=v?w.appear:w.enter;if(!l&&!h||O_.disabled){this.safeSetState({status:vc},function(){d.props.onEntered(C)});return}this.props.onEnter(C,x),this.safeSetState({status:Jl},function(){d.props.onEntering(C,x),d.onTransitionEnd(T,function(){d.safeSetState({status:vc},function(){d.props.onEntered(C,x)})})})},i.performExit=function(){var l=this,d=this.props.exit,h=this.getTimeouts(),v=this.props.nodeRef?void 0:zf.findDOMNode(this);if(!d||O_.disabled){this.safeSetState({status:pc},function(){l.props.onExited(v)});return}this.props.onExit(v),this.safeSetState({status:h0},function(){l.props.onExiting(v),l.onTransitionEnd(h.exit,function(){l.safeSetState({status:pc},function(){l.props.onExited(v)})})})},i.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(l,d){d=this.setNextCallback(d),this.setState(l,d)},i.setNextCallback=function(l){var d=this,h=!0;return this.nextCallback=function(v){h&&(h=!1,d.nextCallback=null,l(v))},this.nextCallback.cancel=function(){h=!1},this.nextCallback},i.onTransitionEnd=function(l,d){this.setNextCallback(d);var h=this.props.nodeRef?this.props.nodeRef.current:zf.findDOMNode(this),v=l==null&&!this.props.addEndListener;if(!h||v){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var y=this.props.nodeRef?[this.nextCallback]:[h,this.nextCallback],C=y[0],x=y[1];this.props.addEndListener(C,x)}l!=null&&setTimeout(this.nextCallback,l)},i.render=function(){var l=this.state.status;if(l===dm)return null;var d=this.props,h=d.children;d.in,d.mountOnEnter,d.unmountOnExit,d.appear,d.enter,d.exit,d.timeout,d.addEndListener,d.onEnter,d.onEntering,d.onEntered,d.onExit,d.onExiting,d.onExited,d.nodeRef;var v=sR(d,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return kr.createElement(tj.Provider,{value:null},typeof h=="function"?h(l,v):kr.cloneElement(kr.Children.only(h),v))},r}(kr.Component);iu.contextType=tj;iu.propTypes=n3.NODE_ENV!=="production"?{nodeRef:_t.shape({current:typeof Element>"u"?_t.any:function(n,r,i,u,l,d){var h=n[r];return _t.instanceOf(h&&"ownerDocument"in h?h.ownerDocument.defaultView.Element:Element)(n,r,i,u,l,d)}}),children:_t.oneOfType([_t.func.isRequired,_t.element.isRequired]).isRequired,in:_t.bool,mountOnEnter:_t.bool,unmountOnExit:_t.bool,appear:_t.bool,enter:_t.bool,exit:_t.bool,timeout:function(r){var i=e3;r.addEndListener||(i=i.isRequired);for(var u=arguments.length,l=new Array(u>1?u-1:0),d=1;d<u;d++)l[d-1]=arguments[d];return i.apply(void 0,[r].concat(l))},addEndListener:_t.func,onEnter:_t.func,onEntering:_t.func,onEntered:_t.func,onExit:_t.func,onExiting:_t.func,onExited:_t.func}:{};function kp(){}iu.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:kp,onEntering:kp,onEntered:kp,onExit:kp,onExiting:kp,onExited:kp};iu.UNMOUNTED=dm;iu.EXITED=pc;iu.ENTERING=Jl;iu.ENTERED=vc;iu.EXITING=h0;const r3=iu;function ev(n){return n&&n.ownerDocument||document}function a3(n){var r=ev(n);return r&&r.defaultView||window}function i3(n,r){return a3(n).getComputedStyle(n,r)}var o3=/([A-Z])/g;function s3(n){return n.replace(o3,"-$1").toLowerCase()}var l3=/^ms-/;function Db(n){return s3(n).replace(l3,"-ms-")}var u3=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function c3(n){return!!(n&&u3.test(n))}function eu(n,r){var i="",u="";if(typeof r=="string")return n.style.getPropertyValue(Db(r))||i3(n).getPropertyValue(Db(r));Object.keys(r).forEach(function(l){var d=r[l];!d&&d!==0?n.style.removeProperty(Db(l)):c3(l)?u+=l+"("+d+") ":i+=Db(l)+": "+d+";"}),u&&(i+="transform: "+u+";"),n.style.cssText+=";"+i}const tv=!!(typeof window<"u"&&window.document&&window.document.createElement);var Cw=!1,xw=!1;try{var BE={get passive(){return Cw=!0},get once(){return xw=Cw=!0}};tv&&(window.addEventListener("test",BE,BE),window.removeEventListener("test",BE,!0))}catch{}function lR(n,r,i,u){if(u&&typeof u!="boolean"&&!xw){var l=u.once,d=u.capture,h=i;!xw&&l&&(h=i.__once||function v(y){this.removeEventListener(r,v,d),i.call(this,y)},i.__once=h),n.addEventListener(r,h,Cw?u:d)}n.addEventListener(r,i,u)}function Sw(n,r,i,u){var l=u&&typeof u!="boolean"?u.capture:u;n.removeEventListener(r,i,l),i.__once&&n.removeEventListener(r,i.__once,l)}function Ql(n,r,i,u){return lR(n,r,i,u),function(){Sw(n,r,i,u)}}function f3(n,r,i,u){if(i===void 0&&(i=!1),u===void 0&&(u=!0),n){var l=document.createEvent("HTMLEvents");l.initEvent(r,i,u),n.dispatchEvent(l)}}function d3(n){var r=eu(n,"transitionDuration")||"",i=r.indexOf("ms")===-1?1e3:1;return parseFloat(r)*i}function p3(n,r,i){i===void 0&&(i=5);var u=!1,l=setTimeout(function(){u||f3(n,"transitionend",!0)},r+i),d=Ql(n,"transitionend",function(){u=!0},{once:!0});return function(){clearTimeout(l),d()}}function nj(n,r,i,u){i==null&&(i=d3(n)||0);var l=p3(n,i,u),d=Ql(n,"transitionend",r);return function(){l(),d()}}function A_(n,r){const i=eu(n,r)||"",u=i.indexOf("ms")===-1?1e3:1;return parseFloat(i)*u}function rj(n,r){const i=A_(n,"transitionDuration"),u=A_(n,"transitionDelay"),l=nj(n,d=>{d.target===n&&(l(),r(d))},i+u)}function aj(n){n.offsetHeight}function m0(n){return n&&"setState"in n?zf.findDOMNode(n):n??null}const v3=kr.forwardRef(({onEnter:n,onEntering:r,onEntered:i,onExit:u,onExiting:l,onExited:d,addEndListener:h,children:v,childRef:y,...C},x)=>{const w=M.useRef(null),T=ps(w,y),A=U=>{T(m0(U))},N=U=>J=>{U&&w.current&&U(w.current,J)},O=M.useCallback(N(n),[n]),_=M.useCallback(N(r),[r]),L=M.useCallback(N(i),[i]),F=M.useCallback(N(u),[u]),V=M.useCallback(N(l),[l]),H=M.useCallback(N(d),[d]),z=M.useCallback(N(h),[h]);return b.jsx(r3,{ref:x,...C,onEnter:O,onEntered:L,onEntering:_,onExit:F,onExited:H,onExiting:V,addEndListener:z,nodeRef:w,children:typeof v=="function"?(U,J)=>v(U,{...J,ref:A}):kr.cloneElement(v,{ref:A})})}),ij=v3,h3={[Jl]:"show",[vc]:"show"},oj=M.forwardRef(({className:n,children:r,transitionClasses:i={},onEnter:u,...l},d)=>{const h={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...l},v=M.useCallback((y,C)=>{aj(y),u==null||u(y,C)},[u]);return b.jsx(ij,{ref:d,addEndListener:rj,...h,onEnter:v,childRef:r.ref,children:(y,C)=>M.cloneElement(r,{...C,className:qt("fade",n,r.props.className,h3[y],i[y])})})});oj.displayName="Fade";const $p=oj;function uR(n){return typeof n=="boolean"?n?$p:oR:n}const sj=({transition:n,...r})=>b.jsx(QA,{...r,transition:uR(n)});sj.displayName="TabContainer";const m3=sj,g3=["xxl","xl","lg","md","sm","xs"],y3="xs",lj=M.createContext({prefixes:{},breakpoints:g3,minBreakpoint:y3});function bn(n,r){const{prefixes:i}=M.useContext(lj);return n||i[r]||r}function P0(){const{dir:n}=M.useContext(lj);return n==="rtl"}const uj=M.forwardRef(({className:n,bsPrefix:r,as:i="div",...u},l)=>(r=bn(r,"tab-content"),b.jsx(i,{ref:l,className:qt(n,r),...u})));uj.displayName="TabContent";const cj=uj,fj=M.forwardRef(({bsPrefix:n,transition:r,...i},u)=>{const[{className:l,as:d="div",...h},{isActive:v,onEnter:y,onEntering:C,onEntered:x,onExit:w,onExiting:T,onExited:A,mountOnEnter:N,unmountOnExit:O,transition:_=$p}]=ZA({...i,transition:uR(r)}),L=bn(n,"tab-pane");return b.jsx(Kp.Provider,{value:null,children:b.jsx(ru.Provider,{value:null,children:b.jsx(_,{in:v,onEnter:y,onEntering:C,onEntered:x,onExit:w,onExiting:T,onExited:A,mountOnEnter:N,unmountOnExit:O,children:b.jsx(d,{...h,ref:u,className:qt(l,L,v&&"active")})})})})});fj.displayName="TabPane";const dj=fj,b3={eventKey:_t.oneOfType([_t.string,_t.number]),title:_t.node.isRequired,disabled:_t.bool,tabClassName:_t.string,tabAttrs:_t.object},pj=()=>{throw new Error("ReactBootstrap: The `Tab` component is not meant to be rendered! It's an abstract component that is only valid as a direct Child of the `Tabs` Component. For custom tabs components use TabPane and TabsContainer directly")};pj.propTypes=b3;const kb=Object.assign(pj,{Container:m3,Content:cj,Pane:dj});function Rt(){return Rt=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])}return n},Rt.apply(this,arguments)}var C3={},x3=function(n,r,i,u,l,d,h,v){if(C3.NODE_ENV!=="production"&&r===void 0)throw new Error("invariant requires an error message argument");if(!n){var y;if(r===void 0)y=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var C=[i,u,l,d,h,v],x=0;y=new Error(r.replace(/%s/g,function(){return C[x++]})),y.name="Invariant Violation"}throw y.framesToPop=1,y}},S3=x3;const j_=qp(S3);function D_(n){return"default"+n.charAt(0).toUpperCase()+n.substr(1)}function E3(n){var r=w3(n,"string");return typeof r=="symbol"?r:String(r)}function w3(n,r){if(typeof n!="object"||n===null)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var u=i.call(n,r||"default");if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}function vj(n,r,i){var u=M.useRef(n!==void 0),l=M.useState(r),d=l[0],h=l[1],v=n!==void 0,y=u.current;return u.current=v,!v&&y&&d!==r&&h(r),[v?n:d,M.useCallback(function(C){for(var x=arguments.length,w=new Array(x>1?x-1:0),T=1;T<x;T++)w[T-1]=arguments[T];i&&i.apply(void 0,[C].concat(w)),h(C)},[i])]}function F0(n,r){return Object.keys(r).reduce(function(i,u){var l,d=i,h=d[D_(u)],v=d[u],y=sR(d,[D_(u),u].map(E3)),C=r[u],x=vj(v,h,n[C]),w=x[0],T=x[1];return Rt({},y,(l={},l[u]=w,l[C]=T,l))},n)}var k_={exports:{}},Ew={exports:{}};(function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=i;function i(u){function l(h,v,y,C,x,w){var T=C||"<<anonymous>>",A=w||y;if(v[y]==null)return h?new Error("Required "+x+" `"+A+"` was not specified "+("in `"+T+"`.")):null;for(var N=arguments.length,O=Array(N>6?N-6:0),_=6;_<N;_++)O[_-6]=arguments[_];return u.apply(void 0,[v,y,T,x,A].concat(O))}var d=l.bind(null,!1);return d.isRequired=l.bind(null,!0),d}n.exports=r.default})(Ew,Ew.exports);var R3=Ew.exports;(function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=d;var i=R3,u=l(i);function l(h){return h&&h.__esModule?h:{default:h}}function d(){for(var h=arguments.length,v=Array(h),y=0;y<h;y++)v[y]=arguments[y];function C(){for(var x=arguments.length,w=Array(x),T=0;T<x;T++)w[T]=arguments[T];var A=null;return v.forEach(function(N){if(A==null){var O=N.apply(void 0,w);O!=null&&(A=O)}}),A}return(0,u.default)(C)}n.exports=r.default})(k_,k_.exports);var T3=Function.prototype.bind.call(Function.prototype.call,[].slice);function ql(n,r){return T3(n.querySelectorAll(r))}function hj(){const[,n]=M.useReducer(r=>!r,!1);return n}const mj=M.createContext(null);mj.displayName="NavContext";const cR=mj,I3="data-rr-ui-",N3="rrUi";function nv(n){return`${I3}${n}`}function _3(n){return`${N3}${n}`}const O3=["as","disabled"];function A3(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}function j3(n){return!n||n.trim()==="#"}function fR({tagName:n,disabled:r,href:i,target:u,rel:l,role:d,onClick:h,tabIndex:v=0,type:y}){n||(i!=null||u!=null||l!=null?n="a":n="button");const C={tagName:n};if(n==="button")return[{type:y||"button",disabled:r},C];const x=T=>{if((r||n==="a"&&j3(i))&&T.preventDefault(),r){T.stopPropagation();return}h==null||h(T)},w=T=>{T.key===" "&&(T.preventDefault(),x(T))};return n==="a"&&(i||(i="#"),r&&(i=void 0)),[{role:d??"button",disabled:void 0,tabIndex:r?void 0:v,href:i,target:n==="a"?u:void 0,"aria-disabled":r||void 0,rel:n==="a"?l:void 0,onClick:x,onKeyDown:w},C]}const dR=M.forwardRef((n,r)=>{let{as:i,disabled:u}=n,l=A3(n,O3);const[d,{tagName:h}]=fR(Object.assign({tagName:i,disabled:u},l));return b.jsx(h,Object.assign({},l,d,{ref:r}))});dR.displayName="Button";const D3=["as","active","eventKey"];function k3(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}function gj({key:n,onClick:r,active:i,id:u,role:l,disabled:d}){const h=M.useContext(ru),v=M.useContext(cR),y=M.useContext(Kp);let C=i;const x={role:l};if(v){!l&&v.role==="tablist"&&(x.role="tab");const w=v.getControllerId(n??null),T=v.getControlledId(n??null);x[nv("event-key")]=n,x.id=w||u,C=i==null&&n!=null?v.activeKey===n:i,(C||!(y!=null&&y.unmountOnExit)&&!(y!=null&&y.mountOnEnter))&&(x["aria-controls"]=T)}return x.role==="tab"&&(x["aria-selected"]=C,C||(x.tabIndex=-1),d&&(x.tabIndex=-1,x["aria-disabled"]=!0)),x.onClick=gr(w=>{d||(r==null||r(w),n!=null&&h&&!w.isPropagationStopped()&&h(n,w))}),[x,{isActive:C}]}const yj=M.forwardRef((n,r)=>{let{as:i=dR,active:u,eventKey:l}=n,d=k3(n,D3);const[h,v]=gj(Object.assign({key:Xf(l,d.href),active:u},d));return h[nv("active")]=v.isActive,b.jsx(i,Object.assign({},d,h,{ref:r}))});yj.displayName="NavItem";const M3=yj,L3=["as","onSelect","activeKey","role","onKeyDown"];function P3(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}const M_=()=>{},L_=nv("event-key"),bj=M.forwardRef((n,r)=>{let{as:i="div",onSelect:u,activeKey:l,role:d,onKeyDown:h}=n,v=P3(n,L3);const y=hj(),C=M.useRef(!1),x=M.useContext(ru),w=M.useContext(Kp);let T,A;w&&(d=d||"tablist",l=w.activeKey,T=w.getControlledId,A=w.getControllerId);const N=M.useRef(null),O=V=>{const H=N.current;if(!H)return null;const z=ql(H,`[${L_}]:not([aria-disabled=true])`),U=H.querySelector("[aria-selected=true]");if(!U||U!==document.activeElement)return null;const J=z.indexOf(U);if(J===-1)return null;let q=J+V;return q>=z.length&&(q=0),q<0&&(q=z.length-1),z[q]},_=(V,H)=>{V!=null&&(u==null||u(V,H),x==null||x(V,H))},L=V=>{if(h==null||h(V),!w)return;let H;switch(V.key){case"ArrowLeft":case"ArrowUp":H=O(-1);break;case"ArrowRight":case"ArrowDown":H=O(1);break;default:return}H&&(V.preventDefault(),_(H.dataset[_3("EventKey")]||null,V),C.current=!0,y())};M.useEffect(()=>{if(N.current&&C.current){const V=N.current.querySelector(`[${L_}][aria-selected=true]`);V==null||V.focus()}C.current=!1});const F=ps(r,N);return b.jsx(ru.Provider,{value:_,children:b.jsx(cR.Provider,{value:{role:d,activeKey:Xf(l),getControlledId:T||M_,getControllerId:A||M_},children:b.jsx(i,Object.assign({},v,{onKeyDown:L,ref:F,role:d}))})})});bj.displayName="Nav";const F3=Object.assign(bj,{Item:M3}),Cj=M.createContext(null);Cj.displayName="NavbarContext";const xj=Cj,Sj=M.createContext(null);Sj.displayName="CardHeaderContext";const V3=Sj,Ej=M.forwardRef(({className:n,bsPrefix:r,as:i="div",...u},l)=>(r=bn(r,"nav-item"),b.jsx(i,{ref:l,className:qt(n,r),...u})));Ej.displayName="NavItem";const wj=Ej;function g0(){return M.useState(null)}function B3(n,r,i,u=!1){const l=gr(i);M.useEffect(()=>{const d=typeof n=="function"?n():n;return d.addEventListener(r,l,u),()=>d.removeEventListener(r,l,u)},[n])}function pR(){const n=M.useRef(!0),r=M.useRef(()=>n.current);return M.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),r.current}function Rj(n){const r=M.useRef(null);return M.useEffect(()=>{r.current=n}),r.current}const z3=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",H3=typeof document<"u",y0=H3||z3?M.useLayoutEffect:M.useEffect,U3=["onKeyDown"];function $3(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}function G3(n){return!n||n.trim()==="#"}const Tj=M.forwardRef((n,r)=>{let{onKeyDown:i}=n,u=$3(n,U3);const[l]=fR(Object.assign({tagName:"a"},u)),d=gr(h=>{l.onKeyDown(h),i==null||i(h)});return G3(u.href)||u.role==="button"?b.jsx("a",Object.assign({ref:r},u,l,{onKeyDown:d})):b.jsx("a",Object.assign({ref:r},u,{onKeyDown:i}))});Tj.displayName="Anchor";const Ij=Tj,Nj=M.forwardRef(({bsPrefix:n,className:r,as:i=Ij,active:u,eventKey:l,disabled:d=!1,...h},v)=>{n=bn(n,"nav-link");const[y,C]=gj({key:Xf(l,h.href),active:u,disabled:d,...h});return b.jsx(i,{...h,...y,ref:v,disabled:d,className:qt(r,n,d&&"disabled",C.isActive&&"active")})});Nj.displayName="NavLink";const _j=Nj,Oj=M.forwardRef((n,r)=>{const{as:i="div",bsPrefix:u,variant:l,fill:d=!1,justify:h=!1,navbar:v,navbarScroll:y,className:C,activeKey:x,...w}=F0(n,{activeKey:"onSelect"}),T=bn(u,"nav");let A,N,O=!1;const _=M.useContext(xj),L=M.useContext(V3);return _?(A=_.bsPrefix,O=v??!0):L&&({cardHeaderBsPrefix:N}=L),b.jsx(F3,{as:i,ref:r,activeKey:x,className:qt(C,{[T]:!O,[`${A}-nav`]:O,[`${A}-nav-scroll`]:O&&y,[`${N}-${l}`]:!!N,[`${T}-${l}`]:!!l,[`${T}-fill`]:d,[`${T}-justified`]:h}),...w})});Oj.displayName="Nav";const W3=Object.assign(Oj,{Item:wj,Link:_j});function P_(n,r){let i=0;return M.Children.map(n,u=>M.isValidElement(u)?r(u,i++):u)}function X3(n,r){let i=0;M.Children.forEach(n,u=>{M.isValidElement(u)&&r(u,i++)})}function Y3(n){let r;return X3(n,i=>{r==null&&(r=i.props.eventKey)}),r}function Z3(n){const{title:r,eventKey:i,disabled:u,tabClassName:l,tabAttrs:d,id:h}=n.props;return r==null?null:b.jsx(wj,{as:"li",role:"presentation",children:b.jsx(_j,{as:"button",type:"button",eventKey:i,disabled:u,id:h,className:l,...d,children:r})})}const Aj=n=>{const{id:r,onSelect:i,transition:u,mountOnEnter:l=!1,unmountOnExit:d=!1,variant:h="tabs",children:v,activeKey:y=Y3(v),...C}=F0(n,{activeKey:"onSelect"});return b.jsxs(QA,{id:r,activeKey:y,onSelect:i,transition:uR(u),mountOnEnter:l,unmountOnExit:d,children:[b.jsx(W3,{...C,role:"tablist",as:"ul",variant:h,children:P_(v,Z3)}),b.jsx(cj,{children:P_(v,x=>{const w={...x.props};return delete w.title,delete w.disabled,delete w.tabClassName,delete w.tabAttrs,b.jsx(dj,{...w})})})]})};Aj.displayName="Tabs";const J3=Aj,q3=M.createContext(null),V0=q3;var F_=Object.prototype.hasOwnProperty;function V_(n,r,i){for(i of n.keys())if(pm(i,r))return i}function pm(n,r){var i,u,l;if(n===r)return!0;if(n&&r&&(i=n.constructor)===r.constructor){if(i===Date)return n.getTime()===r.getTime();if(i===RegExp)return n.toString()===r.toString();if(i===Array){if((u=n.length)===r.length)for(;u--&&pm(n[u],r[u]););return u===-1}if(i===Set){if(n.size!==r.size)return!1;for(u of n)if(l=u,l&&typeof l=="object"&&(l=V_(r,l),!l)||!r.has(l))return!1;return!0}if(i===Map){if(n.size!==r.size)return!1;for(u of n)if(l=u[0],l&&typeof l=="object"&&(l=V_(r,l),!l)||!pm(u[1],r.get(l)))return!1;return!0}if(i===ArrayBuffer)n=new Uint8Array(n),r=new Uint8Array(r);else if(i===DataView){if((u=n.byteLength)===r.byteLength)for(;u--&&n.getInt8(u)===r.getInt8(u););return u===-1}if(ArrayBuffer.isView(n)){if((u=n.byteLength)===r.byteLength)for(;u--&&n[u]===r[u];);return u===-1}if(!i||typeof n=="object"){u=0;for(i in n)if(F_.call(n,i)&&++u&&!F_.call(r,i)||!(i in r)||!pm(n[i],r[i]))return!1;return Object.keys(r).length===u}}return n!==n&&r!==r}function Q3(n){const r=pR();return[n[0],M.useCallback(i=>{if(r())return n[1](i)},[r,n[1]])]}var Oi="top",Ro="bottom",To="right",Ai="left",vR="auto",Am=[Oi,Ro,To,Ai],Gp="start",bm="end",K3="clippingParents",jj="viewport",am="popper",eG="reference",B_=Am.reduce(function(n,r){return n.concat([r+"-"+Gp,r+"-"+bm])},[]),Dj=[].concat(Am,[vR]).reduce(function(n,r){return n.concat([r,r+"-"+Gp,r+"-"+bm])},[]),tG="beforeRead",nG="read",rG="afterRead",aG="beforeMain",iG="main",oG="afterMain",sG="beforeWrite",lG="write",uG="afterWrite",cG=[tG,nG,rG,aG,iG,oG,sG,lG,uG];function el(n){return n.split("-")[0]}function qi(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var r=n.ownerDocument;return r&&r.defaultView||window}return n}function Yf(n){var r=qi(n).Element;return n instanceof r||n instanceof Element}function tl(n){var r=qi(n).HTMLElement;return n instanceof r||n instanceof HTMLElement}function hR(n){if(typeof ShadowRoot>"u")return!1;var r=qi(n).ShadowRoot;return n instanceof r||n instanceof ShadowRoot}var $f=Math.max,b0=Math.min,Wp=Math.round;function ww(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(r){return r.brand+"/"+r.version}).join(" "):navigator.userAgent}function kj(){return!/^((?!chrome|android).)*safari/i.test(ww())}function Xp(n,r,i){r===void 0&&(r=!1),i===void 0&&(i=!1);var u=n.getBoundingClientRect(),l=1,d=1;r&&tl(n)&&(l=n.offsetWidth>0&&Wp(u.width)/n.offsetWidth||1,d=n.offsetHeight>0&&Wp(u.height)/n.offsetHeight||1);var h=Yf(n)?qi(n):window,v=h.visualViewport,y=!kj()&&i,C=(u.left+(y&&v?v.offsetLeft:0))/l,x=(u.top+(y&&v?v.offsetTop:0))/d,w=u.width/l,T=u.height/d;return{width:w,height:T,top:x,right:C+w,bottom:x+T,left:C,x:C,y:x}}function mR(n){var r=Xp(n),i=n.offsetWidth,u=n.offsetHeight;return Math.abs(r.width-i)<=1&&(i=r.width),Math.abs(r.height-u)<=1&&(u=r.height),{x:n.offsetLeft,y:n.offsetTop,width:i,height:u}}function Mj(n,r){var i=r.getRootNode&&r.getRootNode();if(n.contains(r))return!0;if(i&&hR(i)){var u=r;do{if(u&&n.isSameNode(u))return!0;u=u.parentNode||u.host}while(u)}return!1}function yc(n){return n?(n.nodeName||"").toLowerCase():null}function au(n){return qi(n).getComputedStyle(n)}function fG(n){return["table","td","th"].indexOf(yc(n))>=0}function bc(n){return((Yf(n)?n.ownerDocument:n.document)||window.document).documentElement}function B0(n){return yc(n)==="html"?n:n.assignedSlot||n.parentNode||(hR(n)?n.host:null)||bc(n)}function z_(n){return!tl(n)||au(n).position==="fixed"?null:n.offsetParent}function dG(n){var r=/firefox/i.test(ww()),i=/Trident/i.test(ww());if(i&&tl(n)){var u=au(n);if(u.position==="fixed")return null}var l=B0(n);for(hR(l)&&(l=l.host);tl(l)&&["html","body"].indexOf(yc(l))<0;){var d=au(l);if(d.transform!=="none"||d.perspective!=="none"||d.contain==="paint"||["transform","perspective"].indexOf(d.willChange)!==-1||r&&d.willChange==="filter"||r&&d.filter&&d.filter!=="none")return l;l=l.parentNode}return null}function jm(n){for(var r=qi(n),i=z_(n);i&&fG(i)&&au(i).position==="static";)i=z_(i);return i&&(yc(i)==="html"||yc(i)==="body"&&au(i).position==="static")?r:i||dG(n)||r}function gR(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function vm(n,r,i){return $f(n,b0(r,i))}function pG(n,r,i){var u=vm(n,r,i);return u>i?i:u}function Lj(){return{top:0,right:0,bottom:0,left:0}}function Pj(n){return Object.assign({},Lj(),n)}function Fj(n,r){return r.reduce(function(i,u){return i[u]=n,i},{})}var vG=function(r,i){return r=typeof r=="function"?r(Object.assign({},i.rects,{placement:i.placement})):r,Pj(typeof r!="number"?r:Fj(r,Am))};function hG(n){var r,i=n.state,u=n.name,l=n.options,d=i.elements.arrow,h=i.modifiersData.popperOffsets,v=el(i.placement),y=gR(v),C=[Ai,To].indexOf(v)>=0,x=C?"height":"width";if(!(!d||!h)){var w=vG(l.padding,i),T=mR(d),A=y==="y"?Oi:Ai,N=y==="y"?Ro:To,O=i.rects.reference[x]+i.rects.reference[y]-h[y]-i.rects.popper[x],_=h[y]-i.rects.reference[y],L=jm(d),F=L?y==="y"?L.clientHeight||0:L.clientWidth||0:0,V=O/2-_/2,H=w[A],z=F-T[x]-w[N],U=F/2-T[x]/2+V,J=vm(H,U,z),q=y;i.modifiersData[u]=(r={},r[q]=J,r.centerOffset=J-U,r)}}function mG(n){var r=n.state,i=n.options,u=i.element,l=u===void 0?"[data-popper-arrow]":u;l!=null&&(typeof l=="string"&&(l=r.elements.popper.querySelector(l),!l)||Mj(r.elements.popper,l)&&(r.elements.arrow=l))}const gG={name:"arrow",enabled:!0,phase:"main",fn:hG,effect:mG,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Yp(n){return n.split("-")[1]}var yG={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bG(n,r){var i=n.x,u=n.y,l=r.devicePixelRatio||1;return{x:Wp(i*l)/l||0,y:Wp(u*l)/l||0}}function H_(n){var r,i=n.popper,u=n.popperRect,l=n.placement,d=n.variation,h=n.offsets,v=n.position,y=n.gpuAcceleration,C=n.adaptive,x=n.roundOffsets,w=n.isFixed,T=h.x,A=T===void 0?0:T,N=h.y,O=N===void 0?0:N,_=typeof x=="function"?x({x:A,y:O}):{x:A,y:O};A=_.x,O=_.y;var L=h.hasOwnProperty("x"),F=h.hasOwnProperty("y"),V=Ai,H=Oi,z=window;if(C){var U=jm(i),J="clientHeight",q="clientWidth";if(U===qi(i)&&(U=bc(i),au(U).position!=="static"&&v==="absolute"&&(J="scrollHeight",q="scrollWidth")),U=U,l===Oi||(l===Ai||l===To)&&d===bm){H=Ro;var Re=w&&U===z&&z.visualViewport?z.visualViewport.height:U[J];O-=Re-u.height,O*=y?1:-1}if(l===Ai||(l===Oi||l===Ro)&&d===bm){V=To;var he=w&&U===z&&z.visualViewport?z.visualViewport.width:U[q];A-=he-u.width,A*=y?1:-1}}var ge=Object.assign({position:v},C&&yG),fe=x===!0?bG({x:A,y:O},qi(i)):{x:A,y:O};if(A=fe.x,O=fe.y,y){var Oe;return Object.assign({},ge,(Oe={},Oe[H]=F?"0":"",Oe[V]=L?"0":"",Oe.transform=(z.devicePixelRatio||1)<=1?"translate("+A+"px, "+O+"px)":"translate3d("+A+"px, "+O+"px, 0)",Oe))}return Object.assign({},ge,(r={},r[H]=F?O+"px":"",r[V]=L?A+"px":"",r.transform="",r))}function CG(n){var r=n.state,i=n.options,u=i.gpuAcceleration,l=u===void 0?!0:u,d=i.adaptive,h=d===void 0?!0:d,v=i.roundOffsets,y=v===void 0?!0:v,C={placement:el(r.placement),variation:Yp(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:l,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,H_(Object.assign({},C,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:h,roundOffsets:y})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,H_(Object.assign({},C,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:y})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const xG={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:CG,data:{}};var Mb={passive:!0};function SG(n){var r=n.state,i=n.instance,u=n.options,l=u.scroll,d=l===void 0?!0:l,h=u.resize,v=h===void 0?!0:h,y=qi(r.elements.popper),C=[].concat(r.scrollParents.reference,r.scrollParents.popper);return d&&C.forEach(function(x){x.addEventListener("scroll",i.update,Mb)}),v&&y.addEventListener("resize",i.update,Mb),function(){d&&C.forEach(function(x){x.removeEventListener("scroll",i.update,Mb)}),v&&y.removeEventListener("resize",i.update,Mb)}}const EG={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:SG,data:{}};var wG={left:"right",right:"left",bottom:"top",top:"bottom"};function qb(n){return n.replace(/left|right|bottom|top/g,function(r){return wG[r]})}var RG={start:"end",end:"start"};function U_(n){return n.replace(/start|end/g,function(r){return RG[r]})}function yR(n){var r=qi(n),i=r.pageXOffset,u=r.pageYOffset;return{scrollLeft:i,scrollTop:u}}function bR(n){return Xp(bc(n)).left+yR(n).scrollLeft}function TG(n,r){var i=qi(n),u=bc(n),l=i.visualViewport,d=u.clientWidth,h=u.clientHeight,v=0,y=0;if(l){d=l.width,h=l.height;var C=kj();(C||!C&&r==="fixed")&&(v=l.offsetLeft,y=l.offsetTop)}return{width:d,height:h,x:v+bR(n),y}}function IG(n){var r,i=bc(n),u=yR(n),l=(r=n.ownerDocument)==null?void 0:r.body,d=$f(i.scrollWidth,i.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),h=$f(i.scrollHeight,i.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),v=-u.scrollLeft+bR(n),y=-u.scrollTop;return au(l||i).direction==="rtl"&&(v+=$f(i.clientWidth,l?l.clientWidth:0)-d),{width:d,height:h,x:v,y}}function CR(n){var r=au(n),i=r.overflow,u=r.overflowX,l=r.overflowY;return/auto|scroll|overlay|hidden/.test(i+l+u)}function Vj(n){return["html","body","#document"].indexOf(yc(n))>=0?n.ownerDocument.body:tl(n)&&CR(n)?n:Vj(B0(n))}function hm(n,r){var i;r===void 0&&(r=[]);var u=Vj(n),l=u===((i=n.ownerDocument)==null?void 0:i.body),d=qi(u),h=l?[d].concat(d.visualViewport||[],CR(u)?u:[]):u,v=r.concat(h);return l?v:v.concat(hm(B0(h)))}function Rw(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function NG(n,r){var i=Xp(n,!1,r==="fixed");return i.top=i.top+n.clientTop,i.left=i.left+n.clientLeft,i.bottom=i.top+n.clientHeight,i.right=i.left+n.clientWidth,i.width=n.clientWidth,i.height=n.clientHeight,i.x=i.left,i.y=i.top,i}function $_(n,r,i){return r===jj?Rw(TG(n,i)):Yf(r)?NG(r,i):Rw(IG(bc(n)))}function _G(n){var r=hm(B0(n)),i=["absolute","fixed"].indexOf(au(n).position)>=0,u=i&&tl(n)?jm(n):n;return Yf(u)?r.filter(function(l){return Yf(l)&&Mj(l,u)&&yc(l)!=="body"}):[]}function OG(n,r,i,u){var l=r==="clippingParents"?_G(n):[].concat(r),d=[].concat(l,[i]),h=d[0],v=d.reduce(function(y,C){var x=$_(n,C,u);return y.top=$f(x.top,y.top),y.right=b0(x.right,y.right),y.bottom=b0(x.bottom,y.bottom),y.left=$f(x.left,y.left),y},$_(n,h,u));return v.width=v.right-v.left,v.height=v.bottom-v.top,v.x=v.left,v.y=v.top,v}function Bj(n){var r=n.reference,i=n.element,u=n.placement,l=u?el(u):null,d=u?Yp(u):null,h=r.x+r.width/2-i.width/2,v=r.y+r.height/2-i.height/2,y;switch(l){case Oi:y={x:h,y:r.y-i.height};break;case Ro:y={x:h,y:r.y+r.height};break;case To:y={x:r.x+r.width,y:v};break;case Ai:y={x:r.x-i.width,y:v};break;default:y={x:r.x,y:r.y}}var C=l?gR(l):null;if(C!=null){var x=C==="y"?"height":"width";switch(d){case Gp:y[C]=y[C]-(r[x]/2-i[x]/2);break;case bm:y[C]=y[C]+(r[x]/2-i[x]/2);break}}return y}function Cm(n,r){r===void 0&&(r={});var i=r,u=i.placement,l=u===void 0?n.placement:u,d=i.strategy,h=d===void 0?n.strategy:d,v=i.boundary,y=v===void 0?K3:v,C=i.rootBoundary,x=C===void 0?jj:C,w=i.elementContext,T=w===void 0?am:w,A=i.altBoundary,N=A===void 0?!1:A,O=i.padding,_=O===void 0?0:O,L=Pj(typeof _!="number"?_:Fj(_,Am)),F=T===am?eG:am,V=n.rects.popper,H=n.elements[N?F:T],z=OG(Yf(H)?H:H.contextElement||bc(n.elements.popper),y,x,h),U=Xp(n.elements.reference),J=Bj({reference:U,element:V,strategy:"absolute",placement:l}),q=Rw(Object.assign({},V,J)),Re=T===am?q:U,he={top:z.top-Re.top+L.top,bottom:Re.bottom-z.bottom+L.bottom,left:z.left-Re.left+L.left,right:Re.right-z.right+L.right},ge=n.modifiersData.offset;if(T===am&&ge){var fe=ge[l];Object.keys(he).forEach(function(Oe){var Te=[To,Ro].indexOf(Oe)>=0?1:-1,xe=[Oi,Ro].indexOf(Oe)>=0?"y":"x";he[Oe]+=fe[xe]*Te})}return he}function AG(n,r){r===void 0&&(r={});var i=r,u=i.placement,l=i.boundary,d=i.rootBoundary,h=i.padding,v=i.flipVariations,y=i.allowedAutoPlacements,C=y===void 0?Dj:y,x=Yp(u),w=x?v?B_:B_.filter(function(N){return Yp(N)===x}):Am,T=w.filter(function(N){return C.indexOf(N)>=0});T.length===0&&(T=w);var A=T.reduce(function(N,O){return N[O]=Cm(n,{placement:O,boundary:l,rootBoundary:d,padding:h})[el(O)],N},{});return Object.keys(A).sort(function(N,O){return A[N]-A[O]})}function jG(n){if(el(n)===vR)return[];var r=qb(n);return[U_(n),r,U_(r)]}function DG(n){var r=n.state,i=n.options,u=n.name;if(!r.modifiersData[u]._skip){for(var l=i.mainAxis,d=l===void 0?!0:l,h=i.altAxis,v=h===void 0?!0:h,y=i.fallbackPlacements,C=i.padding,x=i.boundary,w=i.rootBoundary,T=i.altBoundary,A=i.flipVariations,N=A===void 0?!0:A,O=i.allowedAutoPlacements,_=r.options.placement,L=el(_),F=L===_,V=y||(F||!N?[qb(_)]:jG(_)),H=[_].concat(V).reduce(function(Se,Ne){return Se.concat(el(Ne)===vR?AG(r,{placement:Ne,boundary:x,rootBoundary:w,padding:C,flipVariations:N,allowedAutoPlacements:O}):Ne)},[]),z=r.rects.reference,U=r.rects.popper,J=new Map,q=!0,Re=H[0],he=0;he<H.length;he++){var ge=H[he],fe=el(ge),Oe=Yp(ge)===Gp,Te=[Oi,Ro].indexOf(fe)>=0,xe=Te?"width":"height",je=Cm(r,{placement:ge,boundary:x,rootBoundary:w,altBoundary:T,padding:C}),Le=Te?Oe?To:Ai:Oe?Ro:Oi;z[xe]>U[xe]&&(Le=qb(Le));var ne=qb(Le),_e=[];if(d&&_e.push(je[fe]<=0),v&&_e.push(je[Le]<=0,je[ne]<=0),_e.every(function(Se){return Se})){Re=ge,q=!1;break}J.set(ge,_e)}if(q)for(var G=N?3:1,Y=function(Ne){var le=H.find(function(ve){var we=J.get(ve);if(we)return we.slice(0,Ne).every(function(Ve){return Ve})});if(le)return Re=le,"break"},re=G;re>0;re--){var ye=Y(re);if(ye==="break")break}r.placement!==Re&&(r.modifiersData[u]._skip=!0,r.placement=Re,r.reset=!0)}}const kG={name:"flip",enabled:!0,phase:"main",fn:DG,requiresIfExists:["offset"],data:{_skip:!1}};function G_(n,r,i){return i===void 0&&(i={x:0,y:0}),{top:n.top-r.height-i.y,right:n.right-r.width+i.x,bottom:n.bottom-r.height+i.y,left:n.left-r.width-i.x}}function W_(n){return[Oi,To,Ro,Ai].some(function(r){return n[r]>=0})}function MG(n){var r=n.state,i=n.name,u=r.rects.reference,l=r.rects.popper,d=r.modifiersData.preventOverflow,h=Cm(r,{elementContext:"reference"}),v=Cm(r,{altBoundary:!0}),y=G_(h,u),C=G_(v,l,d),x=W_(y),w=W_(C);r.modifiersData[i]={referenceClippingOffsets:y,popperEscapeOffsets:C,isReferenceHidden:x,hasPopperEscaped:w},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":x,"data-popper-escaped":w})}const LG={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:MG};function PG(n,r,i){var u=el(n),l=[Ai,Oi].indexOf(u)>=0?-1:1,d=typeof i=="function"?i(Object.assign({},r,{placement:n})):i,h=d[0],v=d[1];return h=h||0,v=(v||0)*l,[Ai,To].indexOf(u)>=0?{x:v,y:h}:{x:h,y:v}}function FG(n){var r=n.state,i=n.options,u=n.name,l=i.offset,d=l===void 0?[0,0]:l,h=Dj.reduce(function(x,w){return x[w]=PG(w,r.rects,d),x},{}),v=h[r.placement],y=v.x,C=v.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=y,r.modifiersData.popperOffsets.y+=C),r.modifiersData[u]=h}const VG={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:FG};function BG(n){var r=n.state,i=n.name;r.modifiersData[i]=Bj({reference:r.rects.reference,element:r.rects.popper,strategy:"absolute",placement:r.placement})}const zG={name:"popperOffsets",enabled:!0,phase:"read",fn:BG,data:{}};function HG(n){return n==="x"?"y":"x"}function UG(n){var r=n.state,i=n.options,u=n.name,l=i.mainAxis,d=l===void 0?!0:l,h=i.altAxis,v=h===void 0?!1:h,y=i.boundary,C=i.rootBoundary,x=i.altBoundary,w=i.padding,T=i.tether,A=T===void 0?!0:T,N=i.tetherOffset,O=N===void 0?0:N,_=Cm(r,{boundary:y,rootBoundary:C,padding:w,altBoundary:x}),L=el(r.placement),F=Yp(r.placement),V=!F,H=gR(L),z=HG(H),U=r.modifiersData.popperOffsets,J=r.rects.reference,q=r.rects.popper,Re=typeof O=="function"?O(Object.assign({},r.rects,{placement:r.placement})):O,he=typeof Re=="number"?{mainAxis:Re,altAxis:Re}:Object.assign({mainAxis:0,altAxis:0},Re),ge=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,fe={x:0,y:0};if(U){if(d){var Oe,Te=H==="y"?Oi:Ai,xe=H==="y"?Ro:To,je=H==="y"?"height":"width",Le=U[H],ne=Le+_[Te],_e=Le-_[xe],G=A?-q[je]/2:0,Y=F===Gp?J[je]:q[je],re=F===Gp?-q[je]:-J[je],ye=r.elements.arrow,Se=A&&ye?mR(ye):{width:0,height:0},Ne=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:Lj(),le=Ne[Te],ve=Ne[xe],we=vm(0,J[je],Se[je]),Ve=V?J[je]/2-G-we-le-he.mainAxis:Y-we-le-he.mainAxis,et=V?-J[je]/2+G+we+ve+he.mainAxis:re+we+ve+he.mainAxis,tt=r.elements.arrow&&jm(r.elements.arrow),ft=tt?H==="y"?tt.clientTop||0:tt.clientLeft||0:0,Ae=(Oe=ge==null?void 0:ge[H])!=null?Oe:0,It=Le+Ve-Ae-ft,pt=Le+et-Ae,Kt=vm(A?b0(ne,It):ne,Le,A?$f(_e,pt):_e);U[H]=Kt,fe[H]=Kt-Le}if(v){var on,sn=H==="x"?Oi:Ai,_n=H==="x"?Ro:To,Vt=U[z],Cn=z==="y"?"height":"width",Qn=Vt+_[sn],Rr=Vt-_[_n],$n=[Oi,Ai].indexOf(L)!==-1,Tr=(on=ge==null?void 0:ge[z])!=null?on:0,xt=$n?Qn:Vt-J[Cn]-q[Cn]-Tr+he.altAxis,Pn=$n?Vt+J[Cn]+q[Cn]-Tr-he.altAxis:Rr,ln=A&&$n?pG(xt,Vt,Pn):vm(A?xt:Qn,Vt,A?Pn:Rr);U[z]=ln,fe[z]=ln-Vt}r.modifiersData[u]=fe}}const $G={name:"preventOverflow",enabled:!0,phase:"main",fn:UG,requiresIfExists:["offset"]};function GG(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function WG(n){return n===qi(n)||!tl(n)?yR(n):GG(n)}function XG(n){var r=n.getBoundingClientRect(),i=Wp(r.width)/n.offsetWidth||1,u=Wp(r.height)/n.offsetHeight||1;return i!==1||u!==1}function YG(n,r,i){i===void 0&&(i=!1);var u=tl(r),l=tl(r)&&XG(r),d=bc(r),h=Xp(n,l,i),v={scrollLeft:0,scrollTop:0},y={x:0,y:0};return(u||!u&&!i)&&((yc(r)!=="body"||CR(d))&&(v=WG(r)),tl(r)?(y=Xp(r,!0),y.x+=r.clientLeft,y.y+=r.clientTop):d&&(y.x=bR(d))),{x:h.left+v.scrollLeft-y.x,y:h.top+v.scrollTop-y.y,width:h.width,height:h.height}}function ZG(n){var r=new Map,i=new Set,u=[];n.forEach(function(d){r.set(d.name,d)});function l(d){i.add(d.name);var h=[].concat(d.requires||[],d.requiresIfExists||[]);h.forEach(function(v){if(!i.has(v)){var y=r.get(v);y&&l(y)}}),u.push(d)}return n.forEach(function(d){i.has(d.name)||l(d)}),u}function JG(n){var r=ZG(n);return cG.reduce(function(i,u){return i.concat(r.filter(function(l){return l.phase===u}))},[])}function qG(n){var r;return function(){return r||(r=new Promise(function(i){Promise.resolve().then(function(){r=void 0,i(n())})})),r}}function QG(n){var r=n.reduce(function(i,u){var l=i[u.name];return i[u.name]=l?Object.assign({},l,u,{options:Object.assign({},l.options,u.options),data:Object.assign({},l.data,u.data)}):u,i},{});return Object.keys(r).map(function(i){return r[i]})}var X_={placement:"bottom",modifiers:[],strategy:"absolute"};function Y_(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return!r.some(function(u){return!(u&&typeof u.getBoundingClientRect=="function")})}function KG(n){n===void 0&&(n={});var r=n,i=r.defaultModifiers,u=i===void 0?[]:i,l=r.defaultOptions,d=l===void 0?X_:l;return function(v,y,C){C===void 0&&(C=d);var x={placement:"bottom",orderedModifiers:[],options:Object.assign({},X_,d),modifiersData:{},elements:{reference:v,popper:y},attributes:{},styles:{}},w=[],T=!1,A={state:x,setOptions:function(L){var F=typeof L=="function"?L(x.options):L;O(),x.options=Object.assign({},d,x.options,F),x.scrollParents={reference:Yf(v)?hm(v):v.contextElement?hm(v.contextElement):[],popper:hm(y)};var V=JG(QG([].concat(u,x.options.modifiers)));return x.orderedModifiers=V.filter(function(H){return H.enabled}),N(),A.update()},forceUpdate:function(){if(!T){var L=x.elements,F=L.reference,V=L.popper;if(Y_(F,V)){x.rects={reference:YG(F,jm(V),x.options.strategy==="fixed"),popper:mR(V)},x.reset=!1,x.placement=x.options.placement,x.orderedModifiers.forEach(function(he){return x.modifiersData[he.name]=Object.assign({},he.data)});for(var H=0;H<x.orderedModifiers.length;H++){if(x.reset===!0){x.reset=!1,H=-1;continue}var z=x.orderedModifiers[H],U=z.fn,J=z.options,q=J===void 0?{}:J,Re=z.name;typeof U=="function"&&(x=U({state:x,options:q,name:Re,instance:A})||x)}}}},update:qG(function(){return new Promise(function(_){A.forceUpdate(),_(x)})}),destroy:function(){O(),T=!0}};if(!Y_(v,y))return A;A.setOptions(C).then(function(_){!T&&C.onFirstUpdate&&C.onFirstUpdate(_)});function N(){x.orderedModifiers.forEach(function(_){var L=_.name,F=_.options,V=F===void 0?{}:F,H=_.effect;if(typeof H=="function"){var z=H({state:x,name:L,instance:A,options:V}),U=function(){};w.push(z||U)}})}function O(){w.forEach(function(_){return _()}),w=[]}return A}}const e9=KG({defaultModifiers:[LG,zG,xG,EG,VG,kG,$G,gG]}),t9=["enabled","placement","strategy","modifiers"];function n9(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}const r9={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},a9={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:n})=>()=>{const{reference:r,popper:i}=n.elements;if("removeAttribute"in r){const u=(r.getAttribute("aria-describedby")||"").split(",").filter(l=>l.trim()!==i.id);u.length?r.setAttribute("aria-describedby",u.join(",")):r.removeAttribute("aria-describedby")}},fn:({state:n})=>{var r;const{popper:i,reference:u}=n.elements,l=(r=i.getAttribute("role"))==null?void 0:r.toLowerCase();if(i.id&&l==="tooltip"&&"setAttribute"in u){const d=u.getAttribute("aria-describedby");if(d&&d.split(",").indexOf(i.id)!==-1)return;u.setAttribute("aria-describedby",d?`${d},${i.id}`:i.id)}}},i9=[];function zj(n,r,i={}){let{enabled:u=!0,placement:l="bottom",strategy:d="absolute",modifiers:h=i9}=i,v=n9(i,t9);const y=M.useRef(h),C=M.useRef(),x=M.useCallback(()=>{var _;(_=C.current)==null||_.update()},[]),w=M.useCallback(()=>{var _;(_=C.current)==null||_.forceUpdate()},[]),[T,A]=Q3(M.useState({placement:l,update:x,forceUpdate:w,attributes:{},styles:{popper:{},arrow:{}}})),N=M.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:_})=>{const L={},F={};Object.keys(_.elements).forEach(V=>{L[V]=_.styles[V],F[V]=_.attributes[V]}),A({state:_,styles:L,attributes:F,update:x,forceUpdate:w,placement:_.placement})}}),[x,w,A]),O=M.useMemo(()=>(pm(y.current,h)||(y.current=h),y.current),[h]);return M.useEffect(()=>{!C.current||!u||C.current.setOptions({placement:l,strategy:d,modifiers:[...O,N,r9]})},[d,l,N,u,O]),M.useEffect(()=>{if(!(!u||n==null||r==null))return C.current=e9(n,r,Object.assign({},v,{placement:l,strategy:d,modifiers:[...O,a9,N]})),()=>{C.current!=null&&(C.current.destroy(),C.current=void 0,A(_=>Object.assign({},_,{attributes:{},styles:{popper:{}}})))}},[u,n,r]),T}function xm(n,r){if(n.contains)return n.contains(r);if(n.compareDocumentPosition)return n===r||!!(n.compareDocumentPosition(r)&16)}var o9={},s9=o9.NODE_ENV!=="production",Hj=function(){};if(s9){var l9=function(r,i){var u=arguments.length;i=new Array(u>1?u-1:0);for(var l=1;l<u;l++)i[l-1]=arguments[l];var d=0,h="Warning: "+r.replace(/%s/g,function(){return i[d++]});typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}};Hj=function(n,r,i){var u=arguments.length;i=new Array(u>2?u-2:0);for(var l=2;l<u;l++)i[l-2]=arguments[l];if(r===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");n||l9.apply(null,[r].concat(i))}}var u9=Hj;const xR=qp(u9),Z_=()=>{};function c9(n){return n.button===0}function f9(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}const Qb=n=>n&&("current"in n?n.current:n),J_={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Uj(n,r=Z_,{disabled:i,clickTrigger:u="click"}={}){const l=M.useRef(!1),d=M.useRef(!1),h=M.useCallback(C=>{const x=Qb(n);xR(!!x,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),l.current=!x||f9(C)||!c9(C)||!!xm(x,C.target)||d.current,d.current=!1},[n]),v=gr(C=>{const x=Qb(n);x&&xm(x,C.target)&&(d.current=!0)}),y=gr(C=>{l.current||r(C)});M.useEffect(()=>{var C,x;if(i||n==null)return;const w=ev(Qb(n)),T=w.defaultView||window;let A=(C=T.event)!=null?C:(x=T.parent)==null?void 0:x.event,N=null;J_[u]&&(N=Ql(w,J_[u],v,!0));const O=Ql(w,u,h,!0),_=Ql(w,u,F=>{if(F===A){A=void 0;return}y(F)});let L=[];return"ontouchstart"in w.documentElement&&(L=[].slice.call(w.body.children).map(F=>Ql(F,"mousemove",Z_))),()=>{N==null||N(),O(),_(),L.forEach(F=>F())}},[n,i,u,h,v,y])}function d9(n){const r={};return Array.isArray(n)?(n==null||n.forEach(i=>{r[i.name]=i}),r):n||r}function p9(n={}){return Array.isArray(n)?n:Object.keys(n).map(r=>(n[r].name=r,n[r]))}function $j({enabled:n,enableEvents:r,placement:i,flip:u,offset:l,fixed:d,containerPadding:h,arrowElement:v,popperConfig:y={}}){var C,x,w,T,A;const N=d9(y.modifiers);return Object.assign({},y,{placement:i,enabled:n,strategy:d?"fixed":y.strategy,modifiers:p9(Object.assign({},N,{eventListeners:{enabled:r,options:(C=N.eventListeners)==null?void 0:C.options},preventOverflow:Object.assign({},N.preventOverflow,{options:h?Object.assign({padding:h},(x=N.preventOverflow)==null?void 0:x.options):(w=N.preventOverflow)==null?void 0:w.options}),offset:{options:Object.assign({offset:l},(T=N.offset)==null?void 0:T.options)},arrow:Object.assign({},N.arrow,{enabled:!!v,options:Object.assign({},(A=N.arrow)==null?void 0:A.options,{element:v})}),flip:Object.assign({enabled:!!u},N.flip)}))})}const v9=["children"];function h9(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}const m9=()=>{};function Gj(n={}){const r=M.useContext(V0),[i,u]=g0(),l=M.useRef(!1),{flip:d,offset:h,rootCloseEvent:v,fixed:y=!1,placement:C,popperConfig:x={},enableEventListeners:w=!0,usePopper:T=!!r}=n,A=(r==null?void 0:r.show)==null?!!n.show:r.show;A&&!l.current&&(l.current=!0);const N=U=>{r==null||r.toggle(!1,U)},{placement:O,setMenu:_,menuElement:L,toggleElement:F}=r||{},V=zj(F,L,$j({placement:C||O||"bottom-start",enabled:T,enableEvents:w??A,offset:h,flip:d,fixed:y,arrowElement:i,popperConfig:x})),H=Object.assign({ref:_||m9,"aria-labelledby":F==null?void 0:F.id},V.attributes.popper,{style:V.styles.popper}),z={show:A,placement:O,hasShown:l.current,toggle:r==null?void 0:r.toggle,popper:T?V:null,arrowProps:T?Object.assign({ref:u},V.attributes.arrow,{style:V.styles.arrow}):{}};return Uj(L,N,{clickTrigger:v,disabled:!A}),[H,z]}const g9={usePopper:!0};function SR(n){let{children:r}=n,i=h9(n,v9);const[u,l]=Gj(i);return b.jsx(b.Fragment,{children:r(u,l)})}SR.displayName="DropdownMenu";SR.defaultProps=g9;const Wj=n=>{var r;return((r=n.getAttribute("role"))==null?void 0:r.toLowerCase())==="menu"},q_=()=>{};function Xj(){const n=YA(),{show:r=!1,toggle:i=q_,setToggle:u,menuElement:l}=M.useContext(V0)||{},d=M.useCallback(v=>{i(!r,v)},[r,i]),h={id:n,ref:u||q_,onClick:d,"aria-expanded":!!r};return l&&Wj(l)&&(h["aria-haspopup"]=!0),[h,{show:r,toggle:i}]}function Yj({children:n}){const[r,i]=Xj();return b.jsx(b.Fragment,{children:n(r,i)})}Yj.displayName="DropdownToggle";const y9=["eventKey","disabled","onClick","active","as"];function b9(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}function Zj({key:n,href:r,active:i,disabled:u,onClick:l}){const d=M.useContext(ru),h=M.useContext(cR),{activeKey:v}=h||{},y=Xf(n,r),C=i==null&&n!=null?Xf(v)===y:i;return[{onClick:gr(w=>{u||(l==null||l(w),d&&!w.isPropagationStopped()&&d(y,w))}),"aria-disabled":u||void 0,"aria-selected":C,[nv("dropdown-item")]:""},{isActive:C}]}const Jj=M.forwardRef((n,r)=>{let{eventKey:i,disabled:u,onClick:l,active:d,as:h=dR}=n,v=b9(n,y9);const[y]=Zj({key:i,href:v.href,disabled:u,onClick:l,active:d});return b.jsx(h,Object.assign({},v,{ref:r},y))});Jj.displayName="DropdownItem";const qj=M.createContext(tv?window:void 0);qj.Provider;function z0(){return M.useContext(qj)}function Q_(){const n=hj(),r=M.useRef(null),i=M.useCallback(u=>{r.current=u,n()},[n]);return[r,i]}function Dm({defaultShow:n,show:r,onSelect:i,onToggle:u,itemSelector:l=`* [${nv("dropdown-item")}]`,focusFirstItemOnShow:d,placement:h="bottom-start",children:v}){const y=z0(),[C,x]=GA(r,n,u),[w,T]=Q_(),A=w.current,[N,O]=Q_(),_=N.current,L=Rj(C),F=M.useRef(null),V=M.useRef(!1),H=M.useContext(ru),z=M.useCallback((ge,fe,Oe=fe==null?void 0:fe.type)=>{x(ge,{originalEvent:fe,source:Oe})},[x]),U=gr((ge,fe)=>{i==null||i(ge,fe),z(!1,fe,"select"),fe.isPropagationStopped()||H==null||H(ge,fe)}),J=M.useMemo(()=>({toggle:z,placement:h,show:C,menuElement:A,toggleElement:_,setMenu:T,setToggle:O}),[z,h,C,A,_,T,O]);A&&L&&!C&&(V.current=A.contains(A.ownerDocument.activeElement));const q=gr(()=>{_&&_.focus&&_.focus()}),Re=gr(()=>{const ge=F.current;let fe=d;if(fe==null&&(fe=w.current&&Wj(w.current)?"keyboard":!1),fe===!1||fe==="keyboard"&&!/^key.+$/.test(ge))return;const Oe=ql(w.current,l)[0];Oe&&Oe.focus&&Oe.focus()});M.useEffect(()=>{C?Re():V.current&&(V.current=!1,q())},[C,V,q,Re]),M.useEffect(()=>{F.current=null});const he=(ge,fe)=>{if(!w.current)return null;const Oe=ql(w.current,l);let Te=Oe.indexOf(ge)+fe;return Te=Math.max(0,Math.min(Te,Oe.length)),Oe[Te]};return B3(M.useCallback(()=>y.document,[y]),"keydown",ge=>{var fe,Oe;const{key:Te}=ge,xe=ge.target,je=(fe=w.current)==null?void 0:fe.contains(xe),Le=(Oe=N.current)==null?void 0:Oe.contains(xe);if(/input|textarea/i.test(xe.tagName)&&(Te===" "||Te!=="Escape"&&je||Te==="Escape"&&xe.type==="search")||!je&&!Le||Te==="Tab"&&(!w.current||!C))return;F.current=ge.type;const _e={originalEvent:ge,source:ge.type};switch(Te){case"ArrowUp":{const G=he(xe,-1);G&&G.focus&&G.focus(),ge.preventDefault();return}case"ArrowDown":if(ge.preventDefault(),!C)x(!0,_e);else{const G=he(xe,1);G&&G.focus&&G.focus()}return;case"Tab":lR(xe.ownerDocument,"keyup",G=>{var Y;(G.key==="Tab"&&!G.target||!((Y=w.current)!=null&&Y.contains(G.target)))&&x(!1,_e)},{once:!0});break;case"Escape":Te==="Escape"&&(ge.preventDefault(),ge.stopPropagation()),x(!1,_e);break}}),b.jsx(ru.Provider,{value:U,children:b.jsx(V0.Provider,{value:J,children:v})})}Dm.displayName="Dropdown";Dm.Menu=SR;Dm.Toggle=Yj;Dm.Item=Jj;const Qj=M.createContext({});Qj.displayName="DropdownContext";const Kj=Qj,eD=M.forwardRef(({className:n,bsPrefix:r,as:i="hr",role:u="separator",...l},d)=>(r=bn(r,"dropdown-divider"),b.jsx(i,{ref:d,className:qt(n,r),role:u,...l})));eD.displayName="DropdownDivider";const C9=eD,tD=M.forwardRef(({className:n,bsPrefix:r,as:i="div",role:u="heading",...l},d)=>(r=bn(r,"dropdown-header"),b.jsx(i,{ref:d,className:qt(n,r),role:u,...l})));tD.displayName="DropdownHeader";const x9=tD,nD=M.forwardRef(({bsPrefix:n,className:r,eventKey:i,disabled:u=!1,onClick:l,active:d,as:h=Ij,...v},y)=>{const C=bn(n,"dropdown-item"),[x,w]=Zj({key:i,href:v.href,disabled:u,onClick:l,active:d});return b.jsx(h,{...v,...x,ref:y,className:qt(r,C,w.isActive&&"active",u&&"disabled")})});nD.displayName="DropdownItem";const S9=nD,rD=M.forwardRef(({className:n,bsPrefix:r,as:i="span",...u},l)=>(r=bn(r,"dropdown-item-text"),b.jsx(i,{ref:l,className:qt(n,r),...u})));rD.displayName="DropdownItemText";const E9=rD,aD=M.createContext(null);aD.displayName="InputGroupContext";const iD=aD;var K_={};function oD(n,r){if(K_.NODE_ENV==="production")return n;const i=M.useCallback(u=>{u==null||!u.isReactComponent||(K_.NODE_ENV!=="production"?j_(!1,`${r} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`):j_(!1))},[r]);return ps(i,n)}var w9={};function sD(n,r,i){const u=i?"top-end":"top-start",l=i?"top-start":"top-end",d=i?"bottom-end":"bottom-start",h=i?"bottom-start":"bottom-end",v=i?"right-start":"left-start",y=i?"right-end":"left-end",C=i?"left-start":"right-start",x=i?"left-end":"right-end";let w=n?h:d;return r==="up"?w=n?l:u:r==="end"?w=n?x:C:r==="start"?w=n?y:v:r==="down-centered"?w="bottom":r==="up-centered"&&(w="top"),w}const lD=M.forwardRef(({bsPrefix:n,className:r,align:i,rootCloseEvent:u,flip:l=!0,show:d,renderOnMount:h,as:v="div",popperConfig:y,variant:C,...x},w)=>{let T=!1;const A=M.useContext(xj),N=bn(n,"dropdown-menu"),{align:O,drop:_,isRTL:L}=M.useContext(Kj);i=i||O;const F=M.useContext(iD),V=[];if(i)if(typeof i=="object"){const ge=Object.keys(i);if(w9.NODE_ENV!=="production"&&xR(ge.length===1,"There should only be 1 breakpoint when passing an object to `align`"),ge.length){const fe=ge[0],Oe=i[fe];T=Oe==="start",V.push(`${N}-${fe}-${Oe}`)}}else i==="end"&&(T=!0);const H=sD(T,_,L),[z,{hasShown:U,popper:J,show:q,toggle:Re}]=Gj({flip:l,rootCloseEvent:u,show:d,usePopper:!A&&V.length===0,offset:[0,2],popperConfig:y,placement:H});if(z.ref=ps(oD(w,"DropdownMenu"),z.ref),y0(()=>{q&&(J==null||J.update())},[q]),!U&&!h&&!F)return null;typeof v!="string"&&(z.show=q,z.close=()=>Re==null?void 0:Re(!1),z.align=i);let he=x.style;return J!=null&&J.placement&&(he={...x.style,...z.style},x["x-placement"]=J.placement),b.jsx(v,{...x,...z,style:he,...(V.length||A)&&{"data-bs-popper":"static"},className:qt(r,N,q&&"show",T&&`${N}-end`,C&&`${N}-${C}`,...V)})});lD.displayName="DropdownMenu";const R9=lD,uD=M.forwardRef(({as:n,bsPrefix:r,variant:i="primary",size:u,active:l=!1,disabled:d=!1,className:h,...v},y)=>{const C=bn(r,"btn"),[x,{tagName:w}]=fR({tagName:n,disabled:d,...v}),T=w;return b.jsx(T,{...x,...v,ref:y,disabled:d,className:qt(h,C,l&&"active",i&&`${C}-${i}`,u&&`${C}-${u}`,v.href&&d&&"disabled")})});uD.displayName="Button";const T9=uD,cD=M.forwardRef(({bsPrefix:n,split:r,className:i,childBsPrefix:u,as:l=T9,...d},h)=>{const v=bn(n,"dropdown-toggle"),y=M.useContext(V0);u!==void 0&&(d.bsPrefix=u);const[C]=Xj();return C.ref=ps(C.ref,oD(h,"DropdownToggle")),b.jsx(l,{className:qt(i,v,r&&`${v}-split`,(y==null?void 0:y.show)&&"show"),...C,...d})});cD.displayName="DropdownToggle";const I9=cD,fD=M.forwardRef((n,r)=>{const{bsPrefix:i,drop:u="down",show:l,className:d,align:h="start",onSelect:v,onToggle:y,focusFirstItemOnShow:C,as:x="div",navbar:w,autoClose:T=!0,...A}=F0(n,{show:"onToggle"}),N=M.useContext(iD),O=bn(i,"dropdown"),_=P0(),L=J=>T===!1?J==="click":T==="inside"?J!=="rootClose":T==="outside"?J!=="select":!0,F=gr((J,q)=>{var Re,he;!((Re=q.originalEvent)==null||(he=Re.target)==null)&&he.classList.contains("dropdown-toggle")&&q.source==="mousedown"||(q.originalEvent.currentTarget===document&&(q.source!=="keydown"||q.originalEvent.key==="Escape")&&(q.source="rootClose"),L(q.source)&&(y==null||y(J,q)))}),H=sD(h==="end",u,_),z=M.useMemo(()=>({align:h,drop:u,isRTL:_}),[h,u,_]),U={down:O,"down-centered":`${O}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return b.jsx(Kj.Provider,{value:z,children:b.jsx(Dm,{placement:H,show:l,onSelect:v,onToggle:F,focusFirstItemOnShow:C,itemSelector:`.${O}-item:not(.disabled):not(:disabled)`,children:N?A.children:b.jsx(x,{...A,ref:r,className:qt(d,l&&"show",U[u])})})})});fD.displayName="Dropdown";const Lb=Object.assign(fD,{Toggle:I9,Menu:R9,Item:S9,ItemText:E9,Divider:C9,Header:x9});var Pb;function eO(n){if((!Pb&&Pb!==0||n)&&tv){var r=document.createElement("div");r.style.position="absolute",r.style.top="-9999px",r.style.width="50px",r.style.height="50px",r.style.overflow="scroll",document.body.appendChild(r),Pb=r.offsetWidth-r.clientWidth,document.body.removeChild(r)}return Pb}function N9(n){const r=M.useRef(n);return r.current=n,r}function ER(n){const r=N9(n);M.useEffect(()=>()=>r.current(),[])}function zE(n){n===void 0&&(n=ev());try{var r=n.activeElement;return!r||!r.nodeName?null:r}catch{return n.body}}function _9(n=document){const r=n.defaultView;return Math.abs(r.innerWidth-n.documentElement.clientWidth)}const tO=nv("modal-open");class O9{constructor({ownerDocument:r,handleContainerOverflow:i=!0,isRTL:u=!1}={}){this.handleContainerOverflow=i,this.isRTL=u,this.modals=[],this.ownerDocument=r}getScrollbarWidth(){return _9(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(r){}removeModalAttributes(r){}setContainerStyle(r){const i={overflow:"hidden"},u=this.isRTL?"paddingLeft":"paddingRight",l=this.getElement();r.style={overflow:l.style.overflow,[u]:l.style[u]},r.scrollBarWidth&&(i[u]=`${parseInt(eu(l,u)||"0",10)+r.scrollBarWidth}px`),l.setAttribute(tO,""),eu(l,i)}reset(){[...this.modals].forEach(r=>this.remove(r))}removeContainerStyle(r){const i=this.getElement();i.removeAttribute(tO),Object.assign(i.style,r.style)}add(r){let i=this.modals.indexOf(r);return i!==-1||(i=this.modals.length,this.modals.push(r),this.setModalAttributes(r),i!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),i}remove(r){const i=this.modals.indexOf(r);i!==-1&&(this.modals.splice(i,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(r))}isTopModal(r){return!!this.modals.length&&this.modals[this.modals.length-1]===r}}const wR=O9,HE=(n,r)=>tv?n==null?(r||ev()).body:(typeof n=="function"&&(n=n()),n&&"current"in n&&(n=n.current),n&&("nodeType"in n||n.getBoundingClientRect)?n:null):null;function Tw(n,r){const i=z0(),[u,l]=M.useState(()=>HE(n,i==null?void 0:i.document));if(!u){const d=HE(n);d&&l(d)}return M.useEffect(()=>{r&&u&&r(u)},[r,u]),M.useEffect(()=>{const d=HE(n);d!==u&&l(d)},[n,u]),u}function A9({in:n,onTransition:r}){const i=M.useRef(null),u=M.useRef(!0),l=gr(r);return y0(()=>{if(!i.current)return;let d=!1;return l({in:n,element:i.current,initial:u.current,isStale:()=>d}),()=>{d=!0}},[n,l]),y0(()=>(u.current=!1,()=>{u.current=!0}),[]),i}function j9({children:n,in:r,onExited:i,onEntered:u,transition:l}){const[d,h]=M.useState(!r);r&&d&&h(!1);const v=A9({in:!!r,onTransition:C=>{const x=()=>{C.isStale()||(C.in?u==null||u(C.element,C.initial):(h(!0),i==null||i(C.element)))};Promise.resolve(l(C)).then(x,w=>{throw C.in||h(!0),w})}}),y=ps(v,n.ref);return d&&!r?null:M.cloneElement(n,{ref:y})}function Iw(n,r,i){return n?b.jsx(n,Object.assign({},i)):r?b.jsx(j9,Object.assign({},i,{transition:r})):b.jsx(oR,Object.assign({},i))}function dD(n){return n.code==="Escape"||n.keyCode===27}const D9=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function k9(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}let UE;function M9(n){return UE||(UE=new wR({ownerDocument:n==null?void 0:n.document})),UE}function L9(n){const r=z0(),i=n||M9(r),u=M.useRef({dialog:null,backdrop:null});return Object.assign(u.current,{add:()=>i.add(u.current),remove:()=>i.remove(u.current),isTopModal:()=>i.isTopModal(u.current),setDialogRef:M.useCallback(l=>{u.current.dialog=l},[]),setBackdropRef:M.useCallback(l=>{u.current.backdrop=l},[])})}const pD=M.forwardRef((n,r)=>{let{show:i=!1,role:u="dialog",className:l,style:d,children:h,backdrop:v=!0,keyboard:y=!0,onBackdropClick:C,onEscapeKeyDown:x,transition:w,runTransition:T,backdropTransition:A,runBackdropTransition:N,autoFocus:O=!0,enforceFocus:_=!0,restoreFocus:L=!0,restoreFocusOptions:F,renderDialog:V,renderBackdrop:H=pt=>b.jsx("div",Object.assign({},pt)),manager:z,container:U,onShow:J,onHide:q=()=>{},onExit:Re,onExited:he,onExiting:ge,onEnter:fe,onEntering:Oe,onEntered:Te}=n,xe=k9(n,D9);const je=z0(),Le=Tw(U),ne=L9(z),_e=pR(),G=Rj(i),[Y,re]=M.useState(!i),ye=M.useRef(null);M.useImperativeHandle(r,()=>ne,[ne]),tv&&!G&&i&&(ye.current=zE(je==null?void 0:je.document)),i&&Y&&re(!1);const Se=gr(()=>{if(ne.add(),et.current=Ql(document,"keydown",we),Ve.current=Ql(document,"focus",()=>setTimeout(le),!0),J&&J(),O){var pt,Kt;const on=zE((pt=(Kt=ne.dialog)==null?void 0:Kt.ownerDocument)!=null?pt:je==null?void 0:je.document);ne.dialog&&on&&!xm(ne.dialog,on)&&(ye.current=on,ne.dialog.focus())}}),Ne=gr(()=>{if(ne.remove(),et.current==null||et.current(),Ve.current==null||Ve.current(),L){var pt;(pt=ye.current)==null||pt.focus==null||pt.focus(F),ye.current=null}});M.useEffect(()=>{!i||!Le||Se()},[i,Le,Se]),M.useEffect(()=>{Y&&Ne()},[Y,Ne]),ER(()=>{Ne()});const le=gr(()=>{if(!_||!_e()||!ne.isTopModal())return;const pt=zE(je==null?void 0:je.document);ne.dialog&&pt&&!xm(ne.dialog,pt)&&ne.dialog.focus()}),ve=gr(pt=>{pt.target===pt.currentTarget&&(C==null||C(pt),v===!0&&q())}),we=gr(pt=>{y&&dD(pt)&&ne.isTopModal()&&(x==null||x(pt),pt.defaultPrevented||q())}),Ve=M.useRef(),et=M.useRef(),tt=(...pt)=>{re(!0),he==null||he(...pt)};if(!Le)return null;const ft=Object.assign({role:u,ref:ne.setDialogRef,"aria-modal":u==="dialog"?!0:void 0},xe,{style:d,className:l,tabIndex:-1});let Ae=V?V(ft):b.jsx("div",Object.assign({},ft,{children:M.cloneElement(h,{role:"document"})}));Ae=Iw(w,T,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!i,onExit:Re,onExiting:ge,onExited:tt,onEnter:fe,onEntering:Oe,onEntered:Te,children:Ae});let It=null;return v&&(It=H({ref:ne.setBackdropRef,onClick:ve}),It=Iw(A,N,{in:!!i,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:It})),b.jsx(b.Fragment,{children:zf.createPortal(b.jsxs(b.Fragment,{children:[It,Ae]}),Le)})});pD.displayName="Modal";const P9=Object.assign(pD,{Manager:wR});function Nw(n,r){return n.classList?!!r&&n.classList.contains(r):(" "+(n.className.baseVal||n.className)+" ").indexOf(" "+r+" ")!==-1}function F9(n,r){n.classList?n.classList.add(r):Nw(n,r)||(typeof n.className=="string"?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r))}function nO(n,r){return n.replace(new RegExp("(^|\\s)"+r+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function V9(n,r){n.classList?n.classList.remove(r):typeof n.className=="string"?n.className=nO(n.className,r):n.setAttribute("class",nO(n.className&&n.className.baseVal||"",r))}const Mp={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class B9 extends wR{adjustAndStore(r,i,u){const l=i.style[r];i.dataset[r]=l,eu(i,{[r]:`${parseFloat(eu(i,r))+u}px`})}restore(r,i){const u=i.dataset[r];u!==void 0&&(delete i.dataset[r],eu(i,{[r]:u}))}setContainerStyle(r){super.setContainerStyle(r);const i=this.getElement();if(F9(i,"modal-open"),!r.scrollBarWidth)return;const u=this.isRTL?"paddingLeft":"paddingRight",l=this.isRTL?"marginLeft":"marginRight";ql(i,Mp.FIXED_CONTENT).forEach(d=>this.adjustAndStore(u,d,r.scrollBarWidth)),ql(i,Mp.STICKY_CONTENT).forEach(d=>this.adjustAndStore(l,d,-r.scrollBarWidth)),ql(i,Mp.NAVBAR_TOGGLER).forEach(d=>this.adjustAndStore(l,d,r.scrollBarWidth))}removeContainerStyle(r){super.removeContainerStyle(r);const i=this.getElement();V9(i,"modal-open");const u=this.isRTL?"paddingLeft":"paddingRight",l=this.isRTL?"marginLeft":"marginRight";ql(i,Mp.FIXED_CONTENT).forEach(d=>this.restore(u,d)),ql(i,Mp.STICKY_CONTENT).forEach(d=>this.restore(l,d)),ql(i,Mp.NAVBAR_TOGGLER).forEach(d=>this.restore(l,d))}}let $E;function z9(n){return $E||($E=new B9(n)),$E}const vD=M.forwardRef(({className:n,bsPrefix:r,as:i="div",...u},l)=>(r=bn(r,"modal-body"),b.jsx(i,{ref:l,className:qt(n,r),...u})));vD.displayName="ModalBody";const H9=vD,U9=M.createContext({onHide(){}}),hD=U9,mD=M.forwardRef(({bsPrefix:n,className:r,contentClassName:i,centered:u,size:l,fullscreen:d,children:h,scrollable:v,...y},C)=>{n=bn(n,"modal");const x=`${n}-dialog`,w=typeof d=="string"?`${n}-fullscreen-${d}`:`${n}-fullscreen`;return b.jsx("div",{...y,ref:C,className:qt(x,r,l&&`${n}-${l}`,u&&`${x}-centered`,v&&`${x}-scrollable`,d&&w),children:b.jsx("div",{className:qt(`${n}-content`,i),children:h})})});mD.displayName="ModalDialog";const gD=mD,yD=M.forwardRef(({className:n,bsPrefix:r,as:i="div",...u},l)=>(r=bn(r,"modal-footer"),b.jsx(i,{ref:l,className:qt(n,r),...u})));yD.displayName="ModalFooter";const $9=yD,G9={"aria-label":_t.string,onClick:_t.func,variant:_t.oneOf(["white"])},RR=M.forwardRef(({className:n,variant:r,"aria-label":i="Close",...u},l)=>b.jsx("button",{ref:l,type:"button",className:qt("btn-close",r&&`btn-close-${r}`,n),"aria-label":i,...u}));RR.displayName="CloseButton";RR.propTypes=G9;const W9=RR,X9=M.forwardRef(({closeLabel:n="Close",closeVariant:r,closeButton:i=!1,onHide:u,children:l,...d},h)=>{const v=M.useContext(hD),y=gr(()=>{v==null||v.onHide(),u==null||u()});return b.jsxs("div",{ref:h,...d,children:[l,i&&b.jsx(W9,{"aria-label":n,variant:r,onClick:y})]})}),Y9=X9,bD=M.forwardRef(({bsPrefix:n,className:r,closeLabel:i="Close",closeButton:u=!1,...l},d)=>(n=bn(n,"modal-header"),b.jsx(Y9,{ref:d,...l,className:qt(r,n),closeLabel:i,closeButton:u})));bD.displayName="ModalHeader";const Z9=bD,J9=n=>M.forwardRef((r,i)=>b.jsx("div",{...r,ref:i,className:qt(r.className,n)})),q9=J9("h4"),CD=M.forwardRef(({className:n,bsPrefix:r,as:i=q9,...u},l)=>(r=bn(r,"modal-title"),b.jsx(i,{ref:l,className:qt(n,r),...u})));CD.displayName="ModalTitle";const Q9=CD;function K9(n){return b.jsx($p,{...n,timeout:null})}function e4(n){return b.jsx($p,{...n,timeout:null})}const xD=M.forwardRef(({bsPrefix:n,className:r,style:i,dialogClassName:u,contentClassName:l,children:d,dialogAs:h=gD,"data-bs-theme":v,"aria-labelledby":y,"aria-describedby":C,"aria-label":x,show:w=!1,animation:T=!0,backdrop:A=!0,keyboard:N=!0,onEscapeKeyDown:O,onShow:_,onHide:L,container:F,autoFocus:V=!0,enforceFocus:H=!0,restoreFocus:z=!0,restoreFocusOptions:U,onEntered:J,onExit:q,onExiting:Re,onEnter:he,onEntering:ge,onExited:fe,backdropClassName:Oe,manager:Te,...xe},je)=>{const[Le,ne]=M.useState({}),[_e,G]=M.useState(!1),Y=M.useRef(!1),re=M.useRef(!1),ye=M.useRef(null),[Se,Ne]=g0(),le=ps(je,Ne),ve=gr(L),we=P0();n=bn(n,"modal");const Ve=M.useMemo(()=>({onHide:ve}),[ve]);function et(){return Te||z9({isRTL:we})}function tt(xt){if(!tv)return;const Pn=et().getScrollbarWidth()>0,ln=xt.scrollHeight>ev(xt).documentElement.clientHeight;ne({paddingRight:Pn&&!ln?eO():void 0,paddingLeft:!Pn&&ln?eO():void 0})}const ft=gr(()=>{Se&&tt(Se.dialog)});ER(()=>{Sw(window,"resize",ft),ye.current==null||ye.current()});const Ae=()=>{Y.current=!0},It=xt=>{Y.current&&Se&&xt.target===Se.dialog&&(re.current=!0),Y.current=!1},pt=()=>{G(!0),ye.current=nj(Se.dialog,()=>{G(!1)})},Kt=xt=>{xt.target===xt.currentTarget&&pt()},on=xt=>{if(A==="static"){Kt(xt);return}if(re.current||xt.target!==xt.currentTarget){re.current=!1;return}L==null||L()},sn=xt=>{N?O==null||O(xt):(xt.preventDefault(),A==="static"&&pt())},_n=(xt,Pn)=>{xt&&tt(xt),he==null||he(xt,Pn)},Vt=xt=>{ye.current==null||ye.current(),q==null||q(xt)},Cn=(xt,Pn)=>{ge==null||ge(xt,Pn),lR(window,"resize",ft)},Qn=xt=>{xt&&(xt.style.display=""),fe==null||fe(xt),Sw(window,"resize",ft)},Rr=M.useCallback(xt=>b.jsx("div",{...xt,className:qt(`${n}-backdrop`,Oe,!T&&"show")}),[T,Oe,n]),$n={...i,...Le};$n.display="block";const Tr=xt=>b.jsx("div",{role:"dialog",...xt,style:$n,className:qt(r,n,_e&&`${n}-static`,!T&&"show"),onClick:A?on:void 0,onMouseUp:It,"data-bs-theme":v,"aria-label":x,"aria-labelledby":y,"aria-describedby":C,children:b.jsx(h,{...xe,onMouseDown:Ae,className:u,contentClassName:l,children:d})});return b.jsx(hD.Provider,{value:Ve,children:b.jsx(P9,{show:w,ref:le,backdrop:A,container:F,keyboard:!0,autoFocus:V,enforceFocus:H,restoreFocus:z,restoreFocusOptions:U,onEscapeKeyDown:sn,onShow:_,onHide:L,onEnter:_n,onEntering:Cn,onEntered:J,onExit:Vt,onExiting:Re,onExited:Qn,manager:et(),transition:T?K9:void 0,backdropTransition:T?e4:void 0,renderBackdrop:Rr,renderDialog:Tr})})});xD.displayName="Modal";const Ln=Object.assign(xD,{Body:H9,Header:Z9,Title:Q9,Footer:$9,Dialog:gD,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),t4=kr.forwardRef(({children:n,onClick:r},i)=>b.jsx("a",{className:"btn btn-secondary d-flex flex-column justify-content-center flex-grow-1",href:"",ref:i,onClick:u=>{u.preventDefault(),r(u)},children:b.jsx("span",{className:"dropdown-toggle",children:n})}));function n4({requestId:n,grantNumber:r}){const{request:i,toggleActionsModal:u}=ri(n,r),{project:l}=Ji(r||i.grantNumber);if(!i||!l||i.error||l.error)return;const d=Nn.routes.request_action_path(n,"new"),h=i.allowedActions.Renewal?Array.isArray(i.allowedActions.Renewal)?[...i.allowedActions.Renewal]:[i.allowedActions.Renewal]:[];h.sort((C,x)=>C.opportunityId<x.opportunityId?-1:1);const v=[{id:"extension",action:`${d}?action_type=Extension`,isEnabled:"Extension"in i.allowedActions,button:"Request an Extension",enabled:i.usesCredits?b.jsx("p",{children:"Need more time to use your current credits and allocations? You can extend your project's end date up to six months past your funding end date, or up to 12 months at a time for projects not supported by a funding award."}):b.jsx("p",{children:"Need more time to use your current allocations? A one-time extension can extend your project end date by up to six months."}),disabled:b.jsxs("p",{children:["Your project is not currently eligible for an extension of its end date.",i.usesCredits?b.jsxs(b.Fragment,{children:[" ","Extensions can be requested starting 90 days before your project's current end date."]}):null]})},{id:"supplement",action:`${d}?action_type=Supplement`,isEnabled:"Supplement"in i.allowedActions,button:"Request a Supplement",enabled:i.usesCredits?b.jsxs("p",{children:["Need more credits to complete your project? Great news! Your"," ",i.allocationType," project is eligible for a supplement of"," ",{Explore:"200,000",Discover:"750,000",Accelerate:"1,500,000"}[i.allocationType]," ","additional ACCESS credits."]}):b.jsxs("p",{children:["Need more units to complete your research? Great news! Your"," ",i.allocationType," project is eligible for a supplement of additional units."]}),disabled:b.jsxs("p",{children:["Your project is not currently eligible for a supplement of additional"," ",i.usesCredits?"ACCESS Credits":"units","."]})},{id:"renewal",action:h.map(C=>[C.opportunityName,`${Nn.routes.renew_request_path(n)}?opportunity_id=${C.opportunityId}`,"post"]),isEnabled:"Renewal"in i.allowedActions,button:"Request a Renewal",enabled:b.jsxs("p",{children:["Your ",i.allocationType," project can be renewed! The requirements for renewing your project depend on the"," ",b.jsx("a",{href:Nn.routes.project_types_path(),target:"_blank",children:"new project type you select"}),"."]}),disabled:b.jsxs("p",{children:["Your project is not currently eligible for renewal.",i.usesCredits&&b.jsxs(b.Fragment,{children:[" ","Renewals are available starting 30 days before the project's current end date."]}),i.isMaximize&&b.jsxs(b.Fragment,{children:[" ","You can submit a renewal request to the Maximize ACCESS opportunity closest to your project's current end date."]})]})},{id:"help",action:[["Learn How to Manage Allocations",Nn.routes.how_to_path(),"get"],["Open a Help Ticket","https://support.access-ci.org/open-a-ticket","get"]],isEnabled:!0,button:"Request Help",enabled:b.jsxs("p",{children:["Need to change something else about your project or expecting another option? Submit a help ticket that includes"," ",b.jsxs("em",{children:["grant number ",l.grantNumber]})," and a detailed description of the problem."]})}];v.sort((C,x)=>C.isEnabled<x.isEnabled?1:-1);const y=v.map(({id:C,action:x,isEnabled:w,button:T,enabled:A,disabled:N})=>b.jsxs("div",{className:"row",children:[b.jsx("div",{className:"col-sm-4 mb-2 d-grid",children:Array.isArray(x)&&x.length?b.jsxs(Lb,{className:"d-flex flex-column",children:[b.jsx(Lb.Toggle,{as:t4,children:T}),b.jsx(Lb.Menu,{children:x.map(([O,_,L])=>b.jsx(Lb.Item,{href:_,onClick:F=>{L!=="get"&&(F.preventDefault(),F.target.dataset.method=L,$&&$.rails&&$.rails.handleMethod($(F.target)))},children:O},_))})]}):b.jsx("a",{className:`btn btn-secondary d-flex flex-column justify-content-center ${w?"":"disabled"}`,href:w?x:"",children:b.jsx("span",{children:T})})}),b.jsx("div",{className:"col-sm-8 mb-2",children:w?A:N})]},C));return b.jsxs(Ln,{size:"lg",show:i.showActionsModal,onHide:u,children:[b.jsx(Ln.Header,{closeButton:!0,children:b.jsx(Ln.Title,{children:"Manage Your Project"})}),b.jsxs(Ln.Body,{children:[b.jsxs("p",{children:["Please select an action to manage your project"," ",b.jsxs("strong",{children:[l.grantNumber,": ",l.title]}),"."]}),y]})]})}function r4({requestId:n,grantNumber:r}){const{request:i,toggleActionsModal:u,toggleConfirmModal:l}=ri(n,r),{project:d}=Ji(r||i.grantNumber);if(!i||!d||i.error||d.error)return;const h=i.usesCredits?"credits":"units",v=(1-PA(i))*100;return b.jsxs(Ln,{size:"lg",show:i.showConfirmModal,onHide:l,scrollable:!0,children:[b.jsx(Ln.Header,{closeButton:!0,children:b.jsx(Ln.Title,{children:"Consider Requesting an Exchange"})}),b.jsx(Ln.Body,{children:b.jsxs("p",{children:[b.jsxs("strong",{children:[Math.round(v),"% of your allocation is unused."]})," ","Are you sure you want to request more ",h,"? You can exchange"," ",i.usesCredits?"credits for resources or ":""," one resource for another by changing the ",b.jsx("strong",{children:"balance"})," numbers in the table on the previous screen."]})}),b.jsx(Ln.Footer,{children:b.jsxs("div",{className:"d-flex",children:[b.jsx("button",{type:"button",className:"btn btn-primary me-2",onClick:l,children:"Return to Exchange"}),b.jsxs("button",{type:"button",className:"btn btn-secondary",onClick:()=>{l(),u()},children:["Request More ",h]})]})})]})}function a4({requestId:n,grantNumber:r,actionId:i}){const{deleteAction:u,request:l,toggleDeleteModal:d}=ri(n,r);if(!l||l.error)return;const h=l.actions.find(T=>T.actionId==i);if(!h)return;const{deleteStatus:v,isRequest:y}=h,C=v==ea.pending,x=v==ea.error,w=()=>d(i);return b.jsxs(Ln,{show:h.showDeleteModal,onHide:w,scrollable:!0,children:[b.jsx(Ln.Header,{closeButton:!0,children:b.jsx(Ln.Title,{children:"Confirm Deletion"})}),b.jsxs(Ln.Body,{children:[x&&b.jsxs(na,{color:"danger",children:["Deletion of the ",y?"request":"action"," failed."]}),b.jsxs("p",{children:["Are you sure you want to delete"," ",!y&&b.jsxs(b.Fragment,{children:["action"," ",b.jsxs("strong",{children:[h.type,": ",Vp(h.date)]})," ","on"," "]}),"request ",b.jsx("strong",{children:tR(l)}),"? Deletions cannot be undone."]})]}),b.jsx(Ln.Footer,{children:b.jsxs("div",{className:"d-flex",children:[b.jsx("button",{type:"button",className:"btn btn-primary me-2",onClick:w,disabled:C,children:"Cancel"}),b.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>u(i),disabled:C,children:C?"Deleting...":"Delete"})]})})]})}function SD({action:n,request:r,toggleDeleteModal:i}){const u=n.allowedOperations||[],l=[];u.includes("Edit")&&l.push(b.jsx(c0,{href:n.isRequest?Nn.routes.edit_request_path(r.requestId):Nn.routes.edit_request_action_path(r.requestId,n.actionId),icon:"pencil",title:"Edit action"},"edit")),u.includes("Delete")&&l.push(b.jsx(c0,{color:"danger",icon:"trash",onClick:()=>i(n.actionId),title:"Edit action"},"delete"));const d=`${n.type}: ${Vp(n.date)}`;return b.jsxs(b.Fragment,{children:[n.detailAvailable?b.jsx("a",{href:Nn.routes.request_action_path(r.requestId,n.actionId),children:d}):d,l]})}const i4="_grid_15z6r_1",o4="_important_15z6r_32",s4="_input_15z6r_36",l4="_edited_15z6r_40",u4="_disabled_15z6r_48",Bp={grid:i4,important:o4,input:s4,edited:l4,disabled:u4};function c4({column:n,row:r,style:i={}}){const u=n.format?n.format(r[n.key],r):r[n.key],l=["cell"];return n.class&&l.push(n.class),n.rowClass&&l.push(n.rowClass(r)),b.jsx("td",{className:l.join(" "),style:i,children:u})}const f4={text:c4};function Kf({columns:n,rows:r,classes:i,frozenColumns:u=0,minWidth:l,rowClasses:d=[],scrollBehavior:h="smooth",scrollRowIndex:v=0}){const y=M.useRef();M.useLayoutEffect(()=>{if(!y.current)return;const N=y.current.querySelector(`tbody tr:nth-child(${v+1})`);N&&N.scrollIntoView({behavior:h,block:"nearest",inline:"nearest"})},[v,h]);const C=[0];for(let N=0;N<u;N++)C[N+1]=C[N]+(n[N].width||100);const x=(N,O)=>N<u?{position:"sticky",left:`${C[N]}px`,minWidth:`${n[N].width||100}px`,width:`${n[N].width||100}px`,zIndex:O||1}:{},w=n.map((N,O)=>b.jsx("th",{className:N.headerClass||N.class||"",style:x(O,100),children:N.formatHeader?N.formatHeader(N.name,N):N.name},N.key)),T=r.map((N,O)=>{const _=n.map((L,F)=>{const V=f4[L.type||"text"];return b.jsx(V,{column:L,row:N,style:x(F)},L.key)});return b.jsx("tr",{className:d[O]||"",children:_},O)}),A={};return l&&(A.minWidth=l),b.jsx("div",{className:`${Bp.grid} ${i||""}`,ref:y,children:b.jsxs("table",{className:"table table-bordered",style:A,children:[b.jsx("thead",{children:b.jsx("tr",{children:w})}),b.jsx("tbody",{children:T})]})})}function Zp({status:n,title:r}){const i={Active:"primary",Approved:"primary",New:"secondary",Pending:"secondary","Under Review":"secondary","Returned for Corrections":"secondary"}[n]||"dark";return b.jsx("span",{className:`badge text-bg-${i} align-self-center`,title:r,children:n})}const d4=n=>b.jsx("span",{className:n<0?"text-danger":"",children:n===0?"":n.toLocaleString()});function p4({requestId:n,grantNumber:r}){const{request:i,toggleDeleteModal:u}=ri(n,r),{project:l,setRequest:d}=Ji(r||i.grantNumber);if(!i||!l)return;const h=l.requestsList;let v=0;for(;v<h.length&&h[v].requestId!==n;)v++;const y=h[v+1],C=h[v-1],x=(O,_)=>O?b.jsxs("button",{type:"button",className:"btn btn-light btn-sm",onClick:()=>d(O.requestId),children:[_=="prev"?b.jsx("i",{className:"bi bi-chevron-left"}):null,tR(O),_=="next"?b.jsx("i",{className:"bi bi-chevron-right"}):null]}):b.jsx("span",{}),w=new Set,T=[];for(let O of i.actions)for(let _ of O.resources)w.has(_.resourceId)||(w.add(_.resourceId),T.push(_));T.sort(f0);const A=[{key:"action",name:"Action Details",format:(O,_)=>b.jsx(SD,{action:_,request:i,toggleDeleteModal:u})},{key:"status",name:"Status",format:O=>b.jsx(Zp,{status:O})},...T.map(O=>({key:`resource${O.resourceId}`,name:O.name,icon:O.icon,class:"text-end",format:O.isBoolean?_=>_?nR(_):null:d4,formatHeader:(_,L)=>Uf(L,{userGuide:!1})}))],N=i.actions.map(O=>{const _={...O};for(let{resourceId:L}of T)_[`resource${L}`]=0;for(let{resourceId:L,approved:F,requested:V}of O.resources)_[`resource${L}`]=F||V||0;return _});return b.jsxs("div",{className:"history",children:[b.jsx(Kf,{columns:A,rows:N}),b.jsxs("div",{className:"buttons d-flex justify-content-between",children:[x(y,"prev"),x(C,"next")]})]})}function v4({requestId:n,grantNumber:r}){const{request:i,toggleDeleteModal:u}=ri(n,r);if(!i)return;const l=[{key:"type",name:"Action Details",format:(d,h)=>b.jsx(SD,{action:h,request:i,toggleDeleteModal:u})},{key:"status",name:"Status",format:d=>b.jsx(Zp,{status:d})}];if(i.actions&&i.actions.length)return b.jsx(Kf,{rows:i.actions,columns:l})}function im(...n){return n.filter(r=>r!=null).reduce((r,i)=>{if(typeof i!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return r===null?i:function(...l){r.apply(this,l),i.apply(this,l)}},null)}const h4={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function m4(n,r){const i=`offset${n[0].toUpperCase()}${n.slice(1)}`,u=r[i],l=h4[n];return u+parseInt(eu(r,l[0]),10)+parseInt(eu(r,l[1]),10)}const g4={[pc]:"collapse",[h0]:"collapsing",[Jl]:"collapsing",[vc]:"collapse show"},y4=kr.forwardRef(({onEnter:n,onEntering:r,onEntered:i,onExit:u,onExiting:l,className:d,children:h,dimension:v="height",in:y=!1,timeout:C=300,mountOnEnter:x=!1,unmountOnExit:w=!1,appear:T=!1,getDimensionValue:A=m4,...N},O)=>{const _=typeof v=="function"?v():v,L=M.useMemo(()=>im(U=>{U.style[_]="0"},n),[_,n]),F=M.useMemo(()=>im(U=>{const J=`scroll${_[0].toUpperCase()}${_.slice(1)}`;U.style[_]=`${U[J]}px`},r),[_,r]),V=M.useMemo(()=>im(U=>{U.style[_]=null},i),[_,i]),H=M.useMemo(()=>im(U=>{U.style[_]=`${A(_,U)}px`,aj(U)},u),[u,A,_]),z=M.useMemo(()=>im(U=>{U.style[_]=null},l),[_,l]);return b.jsx(ij,{ref:O,addEndListener:rj,...N,"aria-expanded":N.role?y:null,onEnter:L,onEntering:F,onEntered:V,onExit:H,onExiting:z,childRef:h.ref,in:y,timeout:C,mountOnEnter:x,unmountOnExit:w,appear:T,children:(U,J)=>kr.cloneElement(h,{...J,className:qt(d,h.props.className,g4[U],_==="width"&&"collapse-horizontal")})})}),b4=y4;function ED(n,r){return Array.isArray(n)?n.includes(r):n===r}const wD=M.createContext({});wD.displayName="AccordionContext";const H0=wD,RD=M.forwardRef(({as:n="div",bsPrefix:r,className:i,children:u,eventKey:l,...d},h)=>{const{activeEventKey:v}=M.useContext(H0);return r=bn(r,"accordion-collapse"),b.jsx(b4,{ref:h,in:ED(v,l),...d,className:qt(i,r),children:b.jsx(n,{children:M.Children.only(u)})})});RD.displayName="AccordionCollapse";const TD=RD,ID=M.createContext({eventKey:""});ID.displayName="AccordionItemContext";const TR=ID,ND=M.forwardRef(({as:n="div",bsPrefix:r,className:i,onEnter:u,onEntering:l,onEntered:d,onExit:h,onExiting:v,onExited:y,...C},x)=>{r=bn(r,"accordion-body");const{eventKey:w}=M.useContext(TR);return b.jsx(TD,{eventKey:w,onEnter:u,onEntering:l,onEntered:d,onExit:h,onExiting:v,onExited:y,children:b.jsx(n,{ref:x,...C,className:qt(i,r)})})});ND.displayName="AccordionBody";const C4=ND;function x4(n,r){const{activeEventKey:i,onSelect:u,alwaysOpen:l}=M.useContext(H0);return d=>{let h=n===i?null:n;l&&(Array.isArray(i)?i.includes(n)?h=i.filter(v=>v!==n):h=[...i,n]:h=[n]),u==null||u(h,d),r==null||r(d)}}const _D=M.forwardRef(({as:n="button",bsPrefix:r,className:i,onClick:u,...l},d)=>{r=bn(r,"accordion-button");const{eventKey:h}=M.useContext(TR),v=x4(h,u),{activeEventKey:y}=M.useContext(H0);return n==="button"&&(l.type="button"),b.jsx(n,{ref:d,onClick:v,...l,"aria-expanded":Array.isArray(y)?y.includes(h):h===y,className:qt(i,r,!ED(y,h)&&"collapsed")})});_D.displayName="AccordionButton";const OD=_D,AD=M.forwardRef(({as:n="h2",bsPrefix:r,className:i,children:u,onClick:l,...d},h)=>(r=bn(r,"accordion-header"),b.jsx(n,{ref:h,...d,className:qt(i,r),children:b.jsx(OD,{onClick:l,children:u})})));AD.displayName="AccordionHeader";const S4=AD,jD=M.forwardRef(({as:n="div",bsPrefix:r,className:i,eventKey:u,...l},d)=>{r=bn(r,"accordion-item");const h=M.useMemo(()=>({eventKey:u}),[u]);return b.jsx(TR.Provider,{value:h,children:b.jsx(n,{ref:d,...l,className:qt(i,r)})})});jD.displayName="AccordionItem";const E4=jD,DD=M.forwardRef((n,r)=>{const{as:i="div",activeKey:u,bsPrefix:l,className:d,onSelect:h,flush:v,alwaysOpen:y,...C}=F0(n,{activeKey:"onSelect"}),x=bn(l,"accordion"),w=M.useMemo(()=>({activeEventKey:u,onSelect:h,alwaysOpen:y}),[u,h,y]);return b.jsx(H0.Provider,{value:w,children:b.jsx(i,{ref:r,...C,className:qt(d,x,v&&`${x}-flush`)})})});DD.displayName="Accordion";const ss=Object.assign(DD,{Button:OD,Collapse:TD,Item:E4,Header:S4,Body:C4}),_w=2**31-1;function kD(n,r,i){const u=i-Date.now();n.current=u<=_w?setTimeout(r,u):setTimeout(()=>kD(n,r,i),_w)}function w4(){const n=pR(),r=M.useRef();return ER(()=>clearTimeout(r.current)),M.useMemo(()=>{const i=()=>clearTimeout(r.current);function u(l,d=0){n()&&(i(),d<=_w?r.current=setTimeout(l,d):kD(r,l,Date.now()+d))}return{set:u,clear:i,handleRef:r}},[])}const R4=()=>{};function T4(n,r,{disabled:i,clickTrigger:u}={}){const l=r||R4;Uj(n,l,{disabled:i,clickTrigger:u});const d=gr(h=>{dD(h)&&l(h)});M.useEffect(()=>{if(i||n==null)return;const h=ev(Qb(n));let v=(h.defaultView||window).event;const y=Ql(h,"keyup",C=>{if(C===v){v=void 0;return}d(C)});return()=>{y()}},[n,i,d])}const MD=M.forwardRef((n,r)=>{const{flip:i,offset:u,placement:l,containerPadding:d,popperConfig:h={},transition:v,runTransition:y}=n,[C,x]=g0(),[w,T]=g0(),A=ps(x,r),N=Tw(n.container),O=Tw(n.target),[_,L]=M.useState(!n.show),F=zj(O,C,$j({placement:l,enableEvents:!!n.show,containerPadding:d||5,flip:i,offset:u,arrowElement:w,popperConfig:h}));n.show&&_&&L(!1);const V=(...ge)=>{L(!0),n.onExited&&n.onExited(...ge)},H=n.show||!_;if(T4(C,n.onHide,{disabled:!n.rootClose||n.rootCloseDisabled,clickTrigger:n.rootCloseEvent}),!H)return null;const{onExit:z,onExiting:U,onEnter:J,onEntering:q,onEntered:Re}=n;let he=n.children(Object.assign({},F.attributes.popper,{style:F.styles.popper,ref:A}),{popper:F,placement:l,show:!!n.show,arrowProps:Object.assign({},F.attributes.arrow,{style:F.styles.arrow,ref:T})});return he=Iw(v,y,{in:!!n.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:he,onExit:z,onExiting:U,onExited:V,onEnter:J,onEntering:q,onEntered:Re}),N?zf.createPortal(he,N):null});MD.displayName="Overlay";const I4=MD,LD=M.forwardRef(({className:n,bsPrefix:r,as:i="div",...u},l)=>(r=bn(r,"popover-header"),b.jsx(i,{ref:l,className:qt(n,r),...u})));LD.displayName="PopoverHeader";const N4=LD,PD=M.forwardRef(({className:n,bsPrefix:r,as:i="div",...u},l)=>(r=bn(r,"popover-body"),b.jsx(i,{ref:l,className:qt(n,r),...u})));PD.displayName="PopoverBody";const FD=PD;function VD(n,r){let i=n;return n==="left"?i=r?"end":"start":n==="right"&&(i=r?"start":"end"),i}function BD(n="absolute"){return{position:n,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const _4=M.forwardRef(({bsPrefix:n,placement:r="right",className:i,style:u,children:l,body:d,arrowProps:h,hasDoneInitialMeasure:v,popper:y,show:C,...x},w)=>{const T=bn(n,"popover"),A=P0(),[N]=(r==null?void 0:r.split("-"))||[],O=VD(N,A);let _=u;return C&&!v&&(_={...u,...BD(y==null?void 0:y.strategy)}),b.jsxs("div",{ref:w,role:"tooltip",style:_,"x-placement":N,className:qt(i,T,N&&`bs-popover-${O}`),...x,children:[b.jsx("div",{className:"popover-arrow",...h}),d?b.jsx(FD,{children:l}):l]})}),O4=Object.assign(_4,{Header:N4,Body:FD,POPPER_OFFSET:[0,8]}),zD=M.forwardRef(({bsPrefix:n,placement:r="right",className:i,style:u,children:l,arrowProps:d,hasDoneInitialMeasure:h,popper:v,show:y,...C},x)=>{n=bn(n,"tooltip");const w=P0(),[T]=(r==null?void 0:r.split("-"))||[],A=VD(T,w);let N=u;return y&&!h&&(N={...u,...BD(v==null?void 0:v.strategy)}),b.jsxs("div",{ref:x,style:N,role:"tooltip","x-placement":T,className:qt(i,n,`bs-tooltip-${A}`),...C,children:[b.jsx("div",{className:"tooltip-arrow",...d}),b.jsx("div",{className:`${n}-inner`,children:l})]})});zD.displayName="Tooltip";const U0=Object.assign(zD,{TOOLTIP_OFFSET:[0,6]});function A4(n){const r=M.useRef(null),i=bn(void 0,"popover"),u=bn(void 0,"tooltip"),l=M.useMemo(()=>({name:"offset",options:{offset:()=>{if(n)return n;if(r.current){if(Nw(r.current,i))return O4.POPPER_OFFSET;if(Nw(r.current,u))return U0.TOOLTIP_OFFSET}return[0,0]}}}),[n,i,u]);return[r,[l]]}function j4(n,r){const{ref:i}=n,{ref:u}=r;n.ref=i.__wrapped||(i.__wrapped=l=>i(m0(l))),r.ref=u.__wrapped||(u.__wrapped=l=>u(m0(l)))}const HD=M.forwardRef(({children:n,transition:r=$p,popperConfig:i={},rootClose:u=!1,placement:l="top",show:d=!1,...h},v)=>{const y=M.useRef({}),[C,x]=M.useState(null),[w,T]=A4(h.offset),A=ps(v,w),N=r===!0?$p:r||void 0,O=gr(_=>{x(_),i==null||i.onFirstUpdate==null||i.onFirstUpdate(_)});return y0(()=>{C&&h.target&&(y.current.scheduleUpdate==null||y.current.scheduleUpdate())},[C,h.target]),M.useEffect(()=>{d||x(null)},[d]),b.jsx(I4,{...h,ref:A,popperConfig:{...i,modifiers:T.concat(i.modifiers||[]),onFirstUpdate:O},transition:N,rootClose:u,placement:l,show:d,children:(_,{arrowProps:L,popper:F,show:V})=>{var H,z;j4(_,L);const U=F==null?void 0:F.placement,J=Object.assign(y.current,{state:F==null?void 0:F.state,scheduleUpdate:F==null?void 0:F.update,placement:U,outOfBoundaries:(F==null||(H=F.state)==null||(z=H.modifiersData.hide)==null?void 0:z.isReferenceHidden)||!1,strategy:i.strategy}),q=!!C;return typeof n=="function"?n({..._,placement:U,show:V,...!r&&V&&{className:"show"},popper:J,arrowProps:L,hasDoneInitialMeasure:q}):M.cloneElement(n,{..._,placement:U,arrowProps:L,popper:J,hasDoneInitialMeasure:q,className:qt(n.props.className,!r&&V&&"show"),style:{...n.props.style,..._.style}})}})});HD.displayName="Overlay";const UD=HD;var D4={};function k4(n){return n&&typeof n=="object"?n:{show:n,hide:n}}function rO(n,r,i){const[u]=r,l=u.currentTarget,d=u.relatedTarget||u.nativeEvent[i];(!d||d!==l)&&!xm(l,d)&&n(...r)}_t.oneOf(["click","hover","focus"]);const M4=({trigger:n=["hover","focus"],overlay:r,children:i,popperConfig:u={},show:l,defaultShow:d=!1,onToggle:h,delay:v,placement:y,flip:C=y&&y.indexOf("auto")!==-1,...x})=>{const w=M.useRef(null),T=ps(w,i.ref),A=w4(),N=M.useRef(""),[O,_]=vj(l,d,h),L=k4(v),{onFocus:F,onBlur:V,onClick:H}=typeof i!="function"?M.Children.only(i).props:{},z=xe=>{T(m0(xe))},U=M.useCallback(()=>{if(A.clear(),N.current="show",!L.show){_(!0);return}A.set(()=>{N.current==="show"&&_(!0)},L.show)},[L.show,_,A]),J=M.useCallback(()=>{if(A.clear(),N.current="hide",!L.hide){_(!1);return}A.set(()=>{N.current==="hide"&&_(!1)},L.hide)},[L.hide,_,A]),q=M.useCallback((...xe)=>{U(),F==null||F(...xe)},[U,F]),Re=M.useCallback((...xe)=>{J(),V==null||V(...xe)},[J,V]),he=M.useCallback((...xe)=>{_(!O),H==null||H(...xe)},[H,_,O]),ge=M.useCallback((...xe)=>{rO(U,xe,"fromElement")},[U]),fe=M.useCallback((...xe)=>{rO(J,xe,"toElement")},[J]),Oe=n==null?[]:[].concat(n),Te={ref:z};return Oe.indexOf("click")!==-1&&(Te.onClick=he),Oe.indexOf("focus")!==-1&&(Te.onFocus=q,Te.onBlur=Re),Oe.indexOf("hover")!==-1&&(D4.NODE_ENV!=="production"&&xR(Oe.length>1,'[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'),Te.onMouseOver=ge,Te.onMouseOut=fe),b.jsxs(b.Fragment,{children:[typeof i=="function"?i(Te):M.cloneElement(i,Te),b.jsx(UD,{...x,show:O,onHide:J,flip:C,placement:y,popperConfig:u,target:w.current,children:r})]})},IR=M4;function L4({requestId:n,grantNumber:r}){const{request:i}=ri(n,r),{project:u}=Ji(r||i.grantNumber),{setTab:l}=Ji(r||i.grantNumber);if(!i||!u)return;let d;const h={};for(let T of u.users||[])for(let A of T.resourceIds)h[A]=h[A]||0,h[A]+=1;const v=(i.resources||[]).filter(T=>T.isCredit?(d=T,!1):T.allocated>0).map((T,A)=>({...T,userCount:h[T.resourceId]||0,color:vw[A%vw.length]})),y=d?d.allocated:0,C="Exchange"in i.allowedActions,x=i.exchangeActionId!==null,w=[{key:"name",name:"Resource",format:(T,A)=>Uf(A)},{key:"isActive",name:"Status",format:T=>b.jsx(Zp,{status:T?"Active":"Inactive"})},{key:"used",name:"Balance",class:"position-relative",format:(T,A)=>{if(A.isBoolean)return nR(A.allocated);const N=A.allocated-T,O=Math.max(N,0)*100/A.allocated;return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:`usage bg-${A.color}`,style:{width:`${Math.min(O,100)}%`}}),ni(N,{abbreviate:!0})," of"," ",ni(A.allocated,{abbreviate:!0})," ",A.unit," ","remaining (",Math.round(O),"%)"]})}},{key:"endDate",name:"End Date",format:T=>Vp(T)}];return u.isManager&&w.push({key:"userCount",name:"Users",class:"text-end",format:ni}),u.currentUser&&w.push({key:"resourceUsername",name:"My Username",format:(T,A)=>{const N=u.currentUser.resourceUsernames[A.resourceId];if(N)return N;if(u.currentUser.resourceAccountPendingIds.includes(A.resourceId))return b.jsx(Zp,{status:"Pending",title:"Creation of your account by the resource provider is pending."});if(u.currentUser.resourceIds.includes(A.resourceId)||!A.isActive)return b.jsx(b.Fragment,{children:"—"});if(u.isManager)return b.jsx("a",{href:"#",onClick:_=>{_.preventDefault(),l("users")},children:"Grant access"});const O=b.jsxs(U0,{children:["Please contact ",rR(u)," to request access to this resource."]});return b.jsx(IR,{overlay:O,children:b.jsx("a",{href:"#",onClick:_=>{_.preventDefault()},children:"Request access"})})}}),b.jsxs("div",{className:"overview",children:[C&&!x&&y>Nn.creditAlertThreshold?b.jsxs("button",{onClick:()=>l("resources"),className:"alert alert-info d-flex justify-content-between align-items-center w-100",children:[b.jsxs("span",{children:[b.jsxs("span",{className:"fs-3",children:[gc(Nn.resourceTypeIcons[d.icon])," ",ni(y)]})," ",d.unit," available"]}),b.jsxs("span",{className:"align-middle d-flex align-items-center",children:["Exchange credits for resources!"," ",b.jsx("span",{className:"fs-3",children:gc("chevron-right")})]})]}):null,v.length?b.jsx(Kf,{columns:w,rows:v}):null]})}const P4=[{key:"role",name:"Role",format:n=>b.jsxs(b.Fragment,{children:[gc(Nn.roleIcons[n])," ",n]})},{key:"users",name:"Users",format:n=>{const r=n.slice(0,3);return n.length>4&&(r[2]=`${ni(n.length-3)} others`),r.map((i,u)=>{const l=r.length-u;return`${i}${l>2?",":l==2&&r.length>1?" and":""}`}).join(" ")}}],F4=({requestId:n,grantNumber:r})=>{const{project:i}=Ji(r);if(!i)return;const u=L0.map(({role:l,name:d})=>({role:d,users:(i.users||[]).filter(h=>h.role===l).map(h=>`${h.firstName} ${h.lastName}`)})).filter(l=>l.users.length>0);return u.length?b.jsx(Kf,{rows:u,columns:P4}):null};function V4({requestId:n,grantNumber:r}){const{request:i}=ri(n,r),{project:u,username:l}=Ji(r||i.grantNumber);if(!(!i||!u||i.error||u.error)&&i)return b.jsxs("div",{className:"overview",children:[b.jsx(L4,{requestId:n,grantNumber:r}),u.isManager?b.jsxs("div",{className:"row",children:[b.jsx("div",{className:"col-lg-6",children:b.jsx(F4,{requestId:n,grantNumber:r})}),b.jsx("div",{className:"col-lg-6",children:b.jsx(v4,{requestId:n})})]}):null]})}function Zf(n){"@babel/helpers - typeof";return Zf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Zf(n)}function B4(n,r){if(Zf(n)!="object"||!n)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var u=i.call(n,r||"default");if(Zf(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}function $D(n){var r=B4(n,"string");return Zf(r)=="symbol"?r:String(r)}function Pp(n,r,i){return r=$D(r),r in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,n}function aO(n,r){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(n);r&&(u=u.filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable})),i.push.apply(i,u)}return i}function yt(n){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?aO(Object(i),!0).forEach(function(u){Pp(n,u,i[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):aO(Object(i)).forEach(function(u){Object.defineProperty(n,u,Object.getOwnPropertyDescriptor(i,u))})}return n}function z4(n){if(Array.isArray(n))return n}function H4(n,r){var i=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(i!=null){var u,l,d,h,v=[],y=!0,C=!1;try{if(d=(i=i.call(n)).next,r===0){if(Object(i)!==i)return;y=!1}else for(;!(y=(u=d.call(i)).done)&&(v.push(u.value),v.length!==r);y=!0);}catch(x){C=!0,l=x}finally{try{if(!y&&i.return!=null&&(h=i.return(),Object(h)!==h))return}finally{if(C)throw l}}return v}}function Ow(n,r){(r==null||r>n.length)&&(r=n.length);for(var i=0,u=new Array(r);i<r;i++)u[i]=n[i];return u}function GD(n,r){if(n){if(typeof n=="string")return Ow(n,r);var i=Object.prototype.toString.call(n).slice(8,-1);if(i==="Object"&&n.constructor&&(i=n.constructor.name),i==="Map"||i==="Set")return Array.from(n);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Ow(n,r)}}function U4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
294
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ta(n,r){return z4(n)||H4(n,r)||GD(n,r)||U4()}function rl(n,r){if(n==null)return{};var i=sR(n,r),u,l;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(l=0;l<d.length;l++)u=d[l],!(r.indexOf(u)>=0)&&Object.prototype.propertyIsEnumerable.call(n,u)&&(i[u]=n[u])}return i}var $4=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function WD(n){var r=n.defaultInputValue,i=r===void 0?"":r,u=n.defaultMenuIsOpen,l=u===void 0?!1:u,d=n.defaultValue,h=d===void 0?null:d,v=n.inputValue,y=n.menuIsOpen,C=n.onChange,x=n.onInputChange,
|
|
293
|
+
*/(function(n){(function(){var r={}.hasOwnProperty;function i(){for(var d="",h=0;h<arguments.length;h++){var v=arguments[h];v&&(d=l(d,u(v)))}return d}function u(d){if(typeof d=="string"||typeof d=="number")return d;if(typeof d!="object")return"";if(Array.isArray(d))return i.apply(null,d);if(d.toString!==Object.prototype.toString&&!d.toString.toString().includes("[native code]"))return d.toString();var h="";for(var v in d)r.call(d,v)&&d[v]&&(h=l(h,v));return h}function l(d,h){return h?d?d+" "+h:d+h:d}n.exports?(i.default=i,n.exports=i):window.classNames=i})()})(KA);var Q$=KA.exports;const qt=qp(Q$);function sR(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}function v0(n,r){return v0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,l){return u.__proto__=l,u},v0(n,r)}function K$(n,r){n.prototype=Object.create(r.prototype),n.prototype.constructor=n,v0(n,r)}const O_={disabled:!1};var ej={},e3=ej.NODE_ENV!=="production"?_t.oneOfType([_t.number,_t.shape({enter:_t.number,exit:_t.number,appear:_t.number}).isRequired]):null;ej.NODE_ENV!=="production"&&_t.oneOfType([_t.string,_t.shape({enter:_t.string,exit:_t.string,active:_t.string}),_t.shape({enter:_t.string,enterDone:_t.string,enterActive:_t.string,exit:_t.string,exitDone:_t.string,exitActive:_t.string})]);const tj=kr.createContext(null);var t3=function(r){return r.scrollTop},n3={},dm="unmounted",pc="exited",Jl="entering",vc="entered",h0="exiting",iu=function(n){K$(r,n);function r(u,l){var d;d=n.call(this,u,l)||this;var h=l,v=h&&!h.isMounting?u.enter:u.appear,y;return d.appearStatus=null,u.in?v?(y=pc,d.appearStatus=Jl):y=vc:u.unmountOnExit||u.mountOnEnter?y=dm:y=pc,d.state={status:y},d.nextCallback=null,d}r.getDerivedStateFromProps=function(l,d){var h=l.in;return h&&d.status===dm?{status:pc}:null};var i=r.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(l){var d=null;if(l!==this.props){var h=this.state.status;this.props.in?h!==Jl&&h!==vc&&(d=Jl):(h===Jl||h===vc)&&(d=h0)}this.updateStatus(!1,d)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var l=this.props.timeout,d,h,v;return d=h=v=l,l!=null&&typeof l!="number"&&(d=l.exit,h=l.enter,v=l.appear!==void 0?l.appear:h),{exit:d,enter:h,appear:v}},i.updateStatus=function(l,d){if(l===void 0&&(l=!1),d!==null)if(this.cancelNextCallback(),d===Jl){if(this.props.unmountOnExit||this.props.mountOnEnter){var h=this.props.nodeRef?this.props.nodeRef.current:zf.findDOMNode(this);h&&t3(h)}this.performEnter(l)}else this.performExit();else this.props.unmountOnExit&&this.state.status===pc&&this.setState({status:dm})},i.performEnter=function(l){var d=this,h=this.props.enter,v=this.context?this.context.isMounting:l,y=this.props.nodeRef?[v]:[zf.findDOMNode(this),v],C=y[0],x=y[1],R=this.getTimeouts(),T=v?R.appear:R.enter;if(!l&&!h||O_.disabled){this.safeSetState({status:vc},function(){d.props.onEntered(C)});return}this.props.onEnter(C,x),this.safeSetState({status:Jl},function(){d.props.onEntering(C,x),d.onTransitionEnd(T,function(){d.safeSetState({status:vc},function(){d.props.onEntered(C,x)})})})},i.performExit=function(){var l=this,d=this.props.exit,h=this.getTimeouts(),v=this.props.nodeRef?void 0:zf.findDOMNode(this);if(!d||O_.disabled){this.safeSetState({status:pc},function(){l.props.onExited(v)});return}this.props.onExit(v),this.safeSetState({status:h0},function(){l.props.onExiting(v),l.onTransitionEnd(h.exit,function(){l.safeSetState({status:pc},function(){l.props.onExited(v)})})})},i.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(l,d){d=this.setNextCallback(d),this.setState(l,d)},i.setNextCallback=function(l){var d=this,h=!0;return this.nextCallback=function(v){h&&(h=!1,d.nextCallback=null,l(v))},this.nextCallback.cancel=function(){h=!1},this.nextCallback},i.onTransitionEnd=function(l,d){this.setNextCallback(d);var h=this.props.nodeRef?this.props.nodeRef.current:zf.findDOMNode(this),v=l==null&&!this.props.addEndListener;if(!h||v){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var y=this.props.nodeRef?[this.nextCallback]:[h,this.nextCallback],C=y[0],x=y[1];this.props.addEndListener(C,x)}l!=null&&setTimeout(this.nextCallback,l)},i.render=function(){var l=this.state.status;if(l===dm)return null;var d=this.props,h=d.children;d.in,d.mountOnEnter,d.unmountOnExit,d.appear,d.enter,d.exit,d.timeout,d.addEndListener,d.onEnter,d.onEntering,d.onEntered,d.onExit,d.onExiting,d.onExited,d.nodeRef;var v=sR(d,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return kr.createElement(tj.Provider,{value:null},typeof h=="function"?h(l,v):kr.cloneElement(kr.Children.only(h),v))},r}(kr.Component);iu.contextType=tj;iu.propTypes=n3.NODE_ENV!=="production"?{nodeRef:_t.shape({current:typeof Element>"u"?_t.any:function(n,r,i,u,l,d){var h=n[r];return _t.instanceOf(h&&"ownerDocument"in h?h.ownerDocument.defaultView.Element:Element)(n,r,i,u,l,d)}}),children:_t.oneOfType([_t.func.isRequired,_t.element.isRequired]).isRequired,in:_t.bool,mountOnEnter:_t.bool,unmountOnExit:_t.bool,appear:_t.bool,enter:_t.bool,exit:_t.bool,timeout:function(r){var i=e3;r.addEndListener||(i=i.isRequired);for(var u=arguments.length,l=new Array(u>1?u-1:0),d=1;d<u;d++)l[d-1]=arguments[d];return i.apply(void 0,[r].concat(l))},addEndListener:_t.func,onEnter:_t.func,onEntering:_t.func,onEntered:_t.func,onExit:_t.func,onExiting:_t.func,onExited:_t.func}:{};function kp(){}iu.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:kp,onEntering:kp,onEntered:kp,onExit:kp,onExiting:kp,onExited:kp};iu.UNMOUNTED=dm;iu.EXITED=pc;iu.ENTERING=Jl;iu.ENTERED=vc;iu.EXITING=h0;const r3=iu;function ev(n){return n&&n.ownerDocument||document}function a3(n){var r=ev(n);return r&&r.defaultView||window}function i3(n,r){return a3(n).getComputedStyle(n,r)}var o3=/([A-Z])/g;function s3(n){return n.replace(o3,"-$1").toLowerCase()}var l3=/^ms-/;function Db(n){return s3(n).replace(l3,"-ms-")}var u3=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function c3(n){return!!(n&&u3.test(n))}function eu(n,r){var i="",u="";if(typeof r=="string")return n.style.getPropertyValue(Db(r))||i3(n).getPropertyValue(Db(r));Object.keys(r).forEach(function(l){var d=r[l];!d&&d!==0?n.style.removeProperty(Db(l)):c3(l)?u+=l+"("+d+") ":i+=Db(l)+": "+d+";"}),u&&(i+="transform: "+u+";"),n.style.cssText+=";"+i}const tv=!!(typeof window<"u"&&window.document&&window.document.createElement);var Cw=!1,xw=!1;try{var BE={get passive(){return Cw=!0},get once(){return xw=Cw=!0}};tv&&(window.addEventListener("test",BE,BE),window.removeEventListener("test",BE,!0))}catch{}function lR(n,r,i,u){if(u&&typeof u!="boolean"&&!xw){var l=u.once,d=u.capture,h=i;!xw&&l&&(h=i.__once||function v(y){this.removeEventListener(r,v,d),i.call(this,y)},i.__once=h),n.addEventListener(r,h,Cw?u:d)}n.addEventListener(r,i,u)}function Sw(n,r,i,u){var l=u&&typeof u!="boolean"?u.capture:u;n.removeEventListener(r,i,l),i.__once&&n.removeEventListener(r,i.__once,l)}function Ql(n,r,i,u){return lR(n,r,i,u),function(){Sw(n,r,i,u)}}function f3(n,r,i,u){if(i===void 0&&(i=!1),u===void 0&&(u=!0),n){var l=document.createEvent("HTMLEvents");l.initEvent(r,i,u),n.dispatchEvent(l)}}function d3(n){var r=eu(n,"transitionDuration")||"",i=r.indexOf("ms")===-1?1e3:1;return parseFloat(r)*i}function p3(n,r,i){i===void 0&&(i=5);var u=!1,l=setTimeout(function(){u||f3(n,"transitionend",!0)},r+i),d=Ql(n,"transitionend",function(){u=!0},{once:!0});return function(){clearTimeout(l),d()}}function nj(n,r,i,u){i==null&&(i=d3(n)||0);var l=p3(n,i,u),d=Ql(n,"transitionend",r);return function(){l(),d()}}function A_(n,r){const i=eu(n,r)||"",u=i.indexOf("ms")===-1?1e3:1;return parseFloat(i)*u}function rj(n,r){const i=A_(n,"transitionDuration"),u=A_(n,"transitionDelay"),l=nj(n,d=>{d.target===n&&(l(),r(d))},i+u)}function aj(n){n.offsetHeight}function m0(n){return n&&"setState"in n?zf.findDOMNode(n):n??null}const v3=kr.forwardRef(({onEnter:n,onEntering:r,onEntered:i,onExit:u,onExiting:l,onExited:d,addEndListener:h,children:v,childRef:y,...C},x)=>{const R=M.useRef(null),T=ps(R,y),A=U=>{T(m0(U))},N=U=>J=>{U&&R.current&&U(R.current,J)},O=M.useCallback(N(n),[n]),_=M.useCallback(N(r),[r]),L=M.useCallback(N(i),[i]),F=M.useCallback(N(u),[u]),V=M.useCallback(N(l),[l]),H=M.useCallback(N(d),[d]),z=M.useCallback(N(h),[h]);return b.jsx(r3,{ref:x,...C,onEnter:O,onEntered:L,onEntering:_,onExit:F,onExited:H,onExiting:V,addEndListener:z,nodeRef:R,children:typeof v=="function"?(U,J)=>v(U,{...J,ref:A}):kr.cloneElement(v,{ref:A})})}),ij=v3,h3={[Jl]:"show",[vc]:"show"},oj=M.forwardRef(({className:n,children:r,transitionClasses:i={},onEnter:u,...l},d)=>{const h={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...l},v=M.useCallback((y,C)=>{aj(y),u==null||u(y,C)},[u]);return b.jsx(ij,{ref:d,addEndListener:rj,...h,onEnter:v,childRef:r.ref,children:(y,C)=>M.cloneElement(r,{...C,className:qt("fade",n,r.props.className,h3[y],i[y])})})});oj.displayName="Fade";const $p=oj;function uR(n){return typeof n=="boolean"?n?$p:oR:n}const sj=({transition:n,...r})=>b.jsx(QA,{...r,transition:uR(n)});sj.displayName="TabContainer";const m3=sj,g3=["xxl","xl","lg","md","sm","xs"],y3="xs",lj=M.createContext({prefixes:{},breakpoints:g3,minBreakpoint:y3});function bn(n,r){const{prefixes:i}=M.useContext(lj);return n||i[r]||r}function P0(){const{dir:n}=M.useContext(lj);return n==="rtl"}const uj=M.forwardRef(({className:n,bsPrefix:r,as:i="div",...u},l)=>(r=bn(r,"tab-content"),b.jsx(i,{ref:l,className:qt(n,r),...u})));uj.displayName="TabContent";const cj=uj,fj=M.forwardRef(({bsPrefix:n,transition:r,...i},u)=>{const[{className:l,as:d="div",...h},{isActive:v,onEnter:y,onEntering:C,onEntered:x,onExit:R,onExiting:T,onExited:A,mountOnEnter:N,unmountOnExit:O,transition:_=$p}]=ZA({...i,transition:uR(r)}),L=bn(n,"tab-pane");return b.jsx(Kp.Provider,{value:null,children:b.jsx(ru.Provider,{value:null,children:b.jsx(_,{in:v,onEnter:y,onEntering:C,onEntered:x,onExit:R,onExiting:T,onExited:A,mountOnEnter:N,unmountOnExit:O,children:b.jsx(d,{...h,ref:u,className:qt(l,L,v&&"active")})})})})});fj.displayName="TabPane";const dj=fj,b3={eventKey:_t.oneOfType([_t.string,_t.number]),title:_t.node.isRequired,disabled:_t.bool,tabClassName:_t.string,tabAttrs:_t.object},pj=()=>{throw new Error("ReactBootstrap: The `Tab` component is not meant to be rendered! It's an abstract component that is only valid as a direct Child of the `Tabs` Component. For custom tabs components use TabPane and TabsContainer directly")};pj.propTypes=b3;const kb=Object.assign(pj,{Container:m3,Content:cj,Pane:dj});function Rt(){return Rt=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])}return n},Rt.apply(this,arguments)}var C3={},x3=function(n,r,i,u,l,d,h,v){if(C3.NODE_ENV!=="production"&&r===void 0)throw new Error("invariant requires an error message argument");if(!n){var y;if(r===void 0)y=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var C=[i,u,l,d,h,v],x=0;y=new Error(r.replace(/%s/g,function(){return C[x++]})),y.name="Invariant Violation"}throw y.framesToPop=1,y}},S3=x3;const j_=qp(S3);function D_(n){return"default"+n.charAt(0).toUpperCase()+n.substr(1)}function E3(n){var r=w3(n,"string");return typeof r=="symbol"?r:String(r)}function w3(n,r){if(typeof n!="object"||n===null)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var u=i.call(n,r||"default");if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}function vj(n,r,i){var u=M.useRef(n!==void 0),l=M.useState(r),d=l[0],h=l[1],v=n!==void 0,y=u.current;return u.current=v,!v&&y&&d!==r&&h(r),[v?n:d,M.useCallback(function(C){for(var x=arguments.length,R=new Array(x>1?x-1:0),T=1;T<x;T++)R[T-1]=arguments[T];i&&i.apply(void 0,[C].concat(R)),h(C)},[i])]}function F0(n,r){return Object.keys(r).reduce(function(i,u){var l,d=i,h=d[D_(u)],v=d[u],y=sR(d,[D_(u),u].map(E3)),C=r[u],x=vj(v,h,n[C]),R=x[0],T=x[1];return Rt({},y,(l={},l[u]=R,l[C]=T,l))},n)}var k_={exports:{}},Ew={exports:{}};(function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=i;function i(u){function l(h,v,y,C,x,R){var T=C||"<<anonymous>>",A=R||y;if(v[y]==null)return h?new Error("Required "+x+" `"+A+"` was not specified "+("in `"+T+"`.")):null;for(var N=arguments.length,O=Array(N>6?N-6:0),_=6;_<N;_++)O[_-6]=arguments[_];return u.apply(void 0,[v,y,T,x,A].concat(O))}var d=l.bind(null,!1);return d.isRequired=l.bind(null,!0),d}n.exports=r.default})(Ew,Ew.exports);var R3=Ew.exports;(function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=d;var i=R3,u=l(i);function l(h){return h&&h.__esModule?h:{default:h}}function d(){for(var h=arguments.length,v=Array(h),y=0;y<h;y++)v[y]=arguments[y];function C(){for(var x=arguments.length,R=Array(x),T=0;T<x;T++)R[T]=arguments[T];var A=null;return v.forEach(function(N){if(A==null){var O=N.apply(void 0,R);O!=null&&(A=O)}}),A}return(0,u.default)(C)}n.exports=r.default})(k_,k_.exports);var T3=Function.prototype.bind.call(Function.prototype.call,[].slice);function ql(n,r){return T3(n.querySelectorAll(r))}function hj(){const[,n]=M.useReducer(r=>!r,!1);return n}const mj=M.createContext(null);mj.displayName="NavContext";const cR=mj,I3="data-rr-ui-",N3="rrUi";function nv(n){return`${I3}${n}`}function _3(n){return`${N3}${n}`}const O3=["as","disabled"];function A3(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}function j3(n){return!n||n.trim()==="#"}function fR({tagName:n,disabled:r,href:i,target:u,rel:l,role:d,onClick:h,tabIndex:v=0,type:y}){n||(i!=null||u!=null||l!=null?n="a":n="button");const C={tagName:n};if(n==="button")return[{type:y||"button",disabled:r},C];const x=T=>{if((r||n==="a"&&j3(i))&&T.preventDefault(),r){T.stopPropagation();return}h==null||h(T)},R=T=>{T.key===" "&&(T.preventDefault(),x(T))};return n==="a"&&(i||(i="#"),r&&(i=void 0)),[{role:d??"button",disabled:void 0,tabIndex:r?void 0:v,href:i,target:n==="a"?u:void 0,"aria-disabled":r||void 0,rel:n==="a"?l:void 0,onClick:x,onKeyDown:R},C]}const dR=M.forwardRef((n,r)=>{let{as:i,disabled:u}=n,l=A3(n,O3);const[d,{tagName:h}]=fR(Object.assign({tagName:i,disabled:u},l));return b.jsx(h,Object.assign({},l,d,{ref:r}))});dR.displayName="Button";const D3=["as","active","eventKey"];function k3(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}function gj({key:n,onClick:r,active:i,id:u,role:l,disabled:d}){const h=M.useContext(ru),v=M.useContext(cR),y=M.useContext(Kp);let C=i;const x={role:l};if(v){!l&&v.role==="tablist"&&(x.role="tab");const R=v.getControllerId(n??null),T=v.getControlledId(n??null);x[nv("event-key")]=n,x.id=R||u,C=i==null&&n!=null?v.activeKey===n:i,(C||!(y!=null&&y.unmountOnExit)&&!(y!=null&&y.mountOnEnter))&&(x["aria-controls"]=T)}return x.role==="tab"&&(x["aria-selected"]=C,C||(x.tabIndex=-1),d&&(x.tabIndex=-1,x["aria-disabled"]=!0)),x.onClick=gr(R=>{d||(r==null||r(R),n!=null&&h&&!R.isPropagationStopped()&&h(n,R))}),[x,{isActive:C}]}const yj=M.forwardRef((n,r)=>{let{as:i=dR,active:u,eventKey:l}=n,d=k3(n,D3);const[h,v]=gj(Object.assign({key:Xf(l,d.href),active:u},d));return h[nv("active")]=v.isActive,b.jsx(i,Object.assign({},d,h,{ref:r}))});yj.displayName="NavItem";const M3=yj,L3=["as","onSelect","activeKey","role","onKeyDown"];function P3(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}const M_=()=>{},L_=nv("event-key"),bj=M.forwardRef((n,r)=>{let{as:i="div",onSelect:u,activeKey:l,role:d,onKeyDown:h}=n,v=P3(n,L3);const y=hj(),C=M.useRef(!1),x=M.useContext(ru),R=M.useContext(Kp);let T,A;R&&(d=d||"tablist",l=R.activeKey,T=R.getControlledId,A=R.getControllerId);const N=M.useRef(null),O=V=>{const H=N.current;if(!H)return null;const z=ql(H,`[${L_}]:not([aria-disabled=true])`),U=H.querySelector("[aria-selected=true]");if(!U||U!==document.activeElement)return null;const J=z.indexOf(U);if(J===-1)return null;let q=J+V;return q>=z.length&&(q=0),q<0&&(q=z.length-1),z[q]},_=(V,H)=>{V!=null&&(u==null||u(V,H),x==null||x(V,H))},L=V=>{if(h==null||h(V),!R)return;let H;switch(V.key){case"ArrowLeft":case"ArrowUp":H=O(-1);break;case"ArrowRight":case"ArrowDown":H=O(1);break;default:return}H&&(V.preventDefault(),_(H.dataset[_3("EventKey")]||null,V),C.current=!0,y())};M.useEffect(()=>{if(N.current&&C.current){const V=N.current.querySelector(`[${L_}][aria-selected=true]`);V==null||V.focus()}C.current=!1});const F=ps(r,N);return b.jsx(ru.Provider,{value:_,children:b.jsx(cR.Provider,{value:{role:d,activeKey:Xf(l),getControlledId:T||M_,getControllerId:A||M_},children:b.jsx(i,Object.assign({},v,{onKeyDown:L,ref:F,role:d}))})})});bj.displayName="Nav";const F3=Object.assign(bj,{Item:M3}),Cj=M.createContext(null);Cj.displayName="NavbarContext";const xj=Cj,Sj=M.createContext(null);Sj.displayName="CardHeaderContext";const V3=Sj,Ej=M.forwardRef(({className:n,bsPrefix:r,as:i="div",...u},l)=>(r=bn(r,"nav-item"),b.jsx(i,{ref:l,className:qt(n,r),...u})));Ej.displayName="NavItem";const wj=Ej;function g0(){return M.useState(null)}function B3(n,r,i,u=!1){const l=gr(i);M.useEffect(()=>{const d=typeof n=="function"?n():n;return d.addEventListener(r,l,u),()=>d.removeEventListener(r,l,u)},[n])}function pR(){const n=M.useRef(!0),r=M.useRef(()=>n.current);return M.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),r.current}function Rj(n){const r=M.useRef(null);return M.useEffect(()=>{r.current=n}),r.current}const z3=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",H3=typeof document<"u",y0=H3||z3?M.useLayoutEffect:M.useEffect,U3=["onKeyDown"];function $3(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}function G3(n){return!n||n.trim()==="#"}const Tj=M.forwardRef((n,r)=>{let{onKeyDown:i}=n,u=$3(n,U3);const[l]=fR(Object.assign({tagName:"a"},u)),d=gr(h=>{l.onKeyDown(h),i==null||i(h)});return G3(u.href)||u.role==="button"?b.jsx("a",Object.assign({ref:r},u,l,{onKeyDown:d})):b.jsx("a",Object.assign({ref:r},u,{onKeyDown:i}))});Tj.displayName="Anchor";const Ij=Tj,Nj=M.forwardRef(({bsPrefix:n,className:r,as:i=Ij,active:u,eventKey:l,disabled:d=!1,...h},v)=>{n=bn(n,"nav-link");const[y,C]=gj({key:Xf(l,h.href),active:u,disabled:d,...h});return b.jsx(i,{...h,...y,ref:v,disabled:d,className:qt(r,n,d&&"disabled",C.isActive&&"active")})});Nj.displayName="NavLink";const _j=Nj,Oj=M.forwardRef((n,r)=>{const{as:i="div",bsPrefix:u,variant:l,fill:d=!1,justify:h=!1,navbar:v,navbarScroll:y,className:C,activeKey:x,...R}=F0(n,{activeKey:"onSelect"}),T=bn(u,"nav");let A,N,O=!1;const _=M.useContext(xj),L=M.useContext(V3);return _?(A=_.bsPrefix,O=v??!0):L&&({cardHeaderBsPrefix:N}=L),b.jsx(F3,{as:i,ref:r,activeKey:x,className:qt(C,{[T]:!O,[`${A}-nav`]:O,[`${A}-nav-scroll`]:O&&y,[`${N}-${l}`]:!!N,[`${T}-${l}`]:!!l,[`${T}-fill`]:d,[`${T}-justified`]:h}),...R})});Oj.displayName="Nav";const W3=Object.assign(Oj,{Item:wj,Link:_j});function P_(n,r){let i=0;return M.Children.map(n,u=>M.isValidElement(u)?r(u,i++):u)}function X3(n,r){let i=0;M.Children.forEach(n,u=>{M.isValidElement(u)&&r(u,i++)})}function Y3(n){let r;return X3(n,i=>{r==null&&(r=i.props.eventKey)}),r}function Z3(n){const{title:r,eventKey:i,disabled:u,tabClassName:l,tabAttrs:d,id:h}=n.props;return r==null?null:b.jsx(wj,{as:"li",role:"presentation",children:b.jsx(_j,{as:"button",type:"button",eventKey:i,disabled:u,id:h,className:l,...d,children:r})})}const Aj=n=>{const{id:r,onSelect:i,transition:u,mountOnEnter:l=!1,unmountOnExit:d=!1,variant:h="tabs",children:v,activeKey:y=Y3(v),...C}=F0(n,{activeKey:"onSelect"});return b.jsxs(QA,{id:r,activeKey:y,onSelect:i,transition:uR(u),mountOnEnter:l,unmountOnExit:d,children:[b.jsx(W3,{...C,role:"tablist",as:"ul",variant:h,children:P_(v,Z3)}),b.jsx(cj,{children:P_(v,x=>{const R={...x.props};return delete R.title,delete R.disabled,delete R.tabClassName,delete R.tabAttrs,b.jsx(dj,{...R})})})]})};Aj.displayName="Tabs";const J3=Aj,q3=M.createContext(null),V0=q3;var F_=Object.prototype.hasOwnProperty;function V_(n,r,i){for(i of n.keys())if(pm(i,r))return i}function pm(n,r){var i,u,l;if(n===r)return!0;if(n&&r&&(i=n.constructor)===r.constructor){if(i===Date)return n.getTime()===r.getTime();if(i===RegExp)return n.toString()===r.toString();if(i===Array){if((u=n.length)===r.length)for(;u--&&pm(n[u],r[u]););return u===-1}if(i===Set){if(n.size!==r.size)return!1;for(u of n)if(l=u,l&&typeof l=="object"&&(l=V_(r,l),!l)||!r.has(l))return!1;return!0}if(i===Map){if(n.size!==r.size)return!1;for(u of n)if(l=u[0],l&&typeof l=="object"&&(l=V_(r,l),!l)||!pm(u[1],r.get(l)))return!1;return!0}if(i===ArrayBuffer)n=new Uint8Array(n),r=new Uint8Array(r);else if(i===DataView){if((u=n.byteLength)===r.byteLength)for(;u--&&n.getInt8(u)===r.getInt8(u););return u===-1}if(ArrayBuffer.isView(n)){if((u=n.byteLength)===r.byteLength)for(;u--&&n[u]===r[u];);return u===-1}if(!i||typeof n=="object"){u=0;for(i in n)if(F_.call(n,i)&&++u&&!F_.call(r,i)||!(i in r)||!pm(n[i],r[i]))return!1;return Object.keys(r).length===u}}return n!==n&&r!==r}function Q3(n){const r=pR();return[n[0],M.useCallback(i=>{if(r())return n[1](i)},[r,n[1]])]}var Oi="top",Ro="bottom",To="right",Ai="left",vR="auto",Am=[Oi,Ro,To,Ai],Gp="start",bm="end",K3="clippingParents",jj="viewport",am="popper",eG="reference",B_=Am.reduce(function(n,r){return n.concat([r+"-"+Gp,r+"-"+bm])},[]),Dj=[].concat(Am,[vR]).reduce(function(n,r){return n.concat([r,r+"-"+Gp,r+"-"+bm])},[]),tG="beforeRead",nG="read",rG="afterRead",aG="beforeMain",iG="main",oG="afterMain",sG="beforeWrite",lG="write",uG="afterWrite",cG=[tG,nG,rG,aG,iG,oG,sG,lG,uG];function el(n){return n.split("-")[0]}function qi(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var r=n.ownerDocument;return r&&r.defaultView||window}return n}function Yf(n){var r=qi(n).Element;return n instanceof r||n instanceof Element}function tl(n){var r=qi(n).HTMLElement;return n instanceof r||n instanceof HTMLElement}function hR(n){if(typeof ShadowRoot>"u")return!1;var r=qi(n).ShadowRoot;return n instanceof r||n instanceof ShadowRoot}var $f=Math.max,b0=Math.min,Wp=Math.round;function ww(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(r){return r.brand+"/"+r.version}).join(" "):navigator.userAgent}function kj(){return!/^((?!chrome|android).)*safari/i.test(ww())}function Xp(n,r,i){r===void 0&&(r=!1),i===void 0&&(i=!1);var u=n.getBoundingClientRect(),l=1,d=1;r&&tl(n)&&(l=n.offsetWidth>0&&Wp(u.width)/n.offsetWidth||1,d=n.offsetHeight>0&&Wp(u.height)/n.offsetHeight||1);var h=Yf(n)?qi(n):window,v=h.visualViewport,y=!kj()&&i,C=(u.left+(y&&v?v.offsetLeft:0))/l,x=(u.top+(y&&v?v.offsetTop:0))/d,R=u.width/l,T=u.height/d;return{width:R,height:T,top:x,right:C+R,bottom:x+T,left:C,x:C,y:x}}function mR(n){var r=Xp(n),i=n.offsetWidth,u=n.offsetHeight;return Math.abs(r.width-i)<=1&&(i=r.width),Math.abs(r.height-u)<=1&&(u=r.height),{x:n.offsetLeft,y:n.offsetTop,width:i,height:u}}function Mj(n,r){var i=r.getRootNode&&r.getRootNode();if(n.contains(r))return!0;if(i&&hR(i)){var u=r;do{if(u&&n.isSameNode(u))return!0;u=u.parentNode||u.host}while(u)}return!1}function yc(n){return n?(n.nodeName||"").toLowerCase():null}function au(n){return qi(n).getComputedStyle(n)}function fG(n){return["table","td","th"].indexOf(yc(n))>=0}function bc(n){return((Yf(n)?n.ownerDocument:n.document)||window.document).documentElement}function B0(n){return yc(n)==="html"?n:n.assignedSlot||n.parentNode||(hR(n)?n.host:null)||bc(n)}function z_(n){return!tl(n)||au(n).position==="fixed"?null:n.offsetParent}function dG(n){var r=/firefox/i.test(ww()),i=/Trident/i.test(ww());if(i&&tl(n)){var u=au(n);if(u.position==="fixed")return null}var l=B0(n);for(hR(l)&&(l=l.host);tl(l)&&["html","body"].indexOf(yc(l))<0;){var d=au(l);if(d.transform!=="none"||d.perspective!=="none"||d.contain==="paint"||["transform","perspective"].indexOf(d.willChange)!==-1||r&&d.willChange==="filter"||r&&d.filter&&d.filter!=="none")return l;l=l.parentNode}return null}function jm(n){for(var r=qi(n),i=z_(n);i&&fG(i)&&au(i).position==="static";)i=z_(i);return i&&(yc(i)==="html"||yc(i)==="body"&&au(i).position==="static")?r:i||dG(n)||r}function gR(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function vm(n,r,i){return $f(n,b0(r,i))}function pG(n,r,i){var u=vm(n,r,i);return u>i?i:u}function Lj(){return{top:0,right:0,bottom:0,left:0}}function Pj(n){return Object.assign({},Lj(),n)}function Fj(n,r){return r.reduce(function(i,u){return i[u]=n,i},{})}var vG=function(r,i){return r=typeof r=="function"?r(Object.assign({},i.rects,{placement:i.placement})):r,Pj(typeof r!="number"?r:Fj(r,Am))};function hG(n){var r,i=n.state,u=n.name,l=n.options,d=i.elements.arrow,h=i.modifiersData.popperOffsets,v=el(i.placement),y=gR(v),C=[Ai,To].indexOf(v)>=0,x=C?"height":"width";if(!(!d||!h)){var R=vG(l.padding,i),T=mR(d),A=y==="y"?Oi:Ai,N=y==="y"?Ro:To,O=i.rects.reference[x]+i.rects.reference[y]-h[y]-i.rects.popper[x],_=h[y]-i.rects.reference[y],L=jm(d),F=L?y==="y"?L.clientHeight||0:L.clientWidth||0:0,V=O/2-_/2,H=R[A],z=F-T[x]-R[N],U=F/2-T[x]/2+V,J=vm(H,U,z),q=y;i.modifiersData[u]=(r={},r[q]=J,r.centerOffset=J-U,r)}}function mG(n){var r=n.state,i=n.options,u=i.element,l=u===void 0?"[data-popper-arrow]":u;l!=null&&(typeof l=="string"&&(l=r.elements.popper.querySelector(l),!l)||Mj(r.elements.popper,l)&&(r.elements.arrow=l))}const gG={name:"arrow",enabled:!0,phase:"main",fn:hG,effect:mG,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Yp(n){return n.split("-")[1]}var yG={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bG(n,r){var i=n.x,u=n.y,l=r.devicePixelRatio||1;return{x:Wp(i*l)/l||0,y:Wp(u*l)/l||0}}function H_(n){var r,i=n.popper,u=n.popperRect,l=n.placement,d=n.variation,h=n.offsets,v=n.position,y=n.gpuAcceleration,C=n.adaptive,x=n.roundOffsets,R=n.isFixed,T=h.x,A=T===void 0?0:T,N=h.y,O=N===void 0?0:N,_=typeof x=="function"?x({x:A,y:O}):{x:A,y:O};A=_.x,O=_.y;var L=h.hasOwnProperty("x"),F=h.hasOwnProperty("y"),V=Ai,H=Oi,z=window;if(C){var U=jm(i),J="clientHeight",q="clientWidth";if(U===qi(i)&&(U=bc(i),au(U).position!=="static"&&v==="absolute"&&(J="scrollHeight",q="scrollWidth")),U=U,l===Oi||(l===Ai||l===To)&&d===bm){H=Ro;var Re=R&&U===z&&z.visualViewport?z.visualViewport.height:U[J];O-=Re-u.height,O*=y?1:-1}if(l===Ai||(l===Oi||l===Ro)&&d===bm){V=To;var he=R&&U===z&&z.visualViewport?z.visualViewport.width:U[q];A-=he-u.width,A*=y?1:-1}}var ge=Object.assign({position:v},C&&yG),fe=x===!0?bG({x:A,y:O},qi(i)):{x:A,y:O};if(A=fe.x,O=fe.y,y){var Oe;return Object.assign({},ge,(Oe={},Oe[H]=F?"0":"",Oe[V]=L?"0":"",Oe.transform=(z.devicePixelRatio||1)<=1?"translate("+A+"px, "+O+"px)":"translate3d("+A+"px, "+O+"px, 0)",Oe))}return Object.assign({},ge,(r={},r[H]=F?O+"px":"",r[V]=L?A+"px":"",r.transform="",r))}function CG(n){var r=n.state,i=n.options,u=i.gpuAcceleration,l=u===void 0?!0:u,d=i.adaptive,h=d===void 0?!0:d,v=i.roundOffsets,y=v===void 0?!0:v,C={placement:el(r.placement),variation:Yp(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:l,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,H_(Object.assign({},C,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:h,roundOffsets:y})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,H_(Object.assign({},C,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:y})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const xG={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:CG,data:{}};var Mb={passive:!0};function SG(n){var r=n.state,i=n.instance,u=n.options,l=u.scroll,d=l===void 0?!0:l,h=u.resize,v=h===void 0?!0:h,y=qi(r.elements.popper),C=[].concat(r.scrollParents.reference,r.scrollParents.popper);return d&&C.forEach(function(x){x.addEventListener("scroll",i.update,Mb)}),v&&y.addEventListener("resize",i.update,Mb),function(){d&&C.forEach(function(x){x.removeEventListener("scroll",i.update,Mb)}),v&&y.removeEventListener("resize",i.update,Mb)}}const EG={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:SG,data:{}};var wG={left:"right",right:"left",bottom:"top",top:"bottom"};function qb(n){return n.replace(/left|right|bottom|top/g,function(r){return wG[r]})}var RG={start:"end",end:"start"};function U_(n){return n.replace(/start|end/g,function(r){return RG[r]})}function yR(n){var r=qi(n),i=r.pageXOffset,u=r.pageYOffset;return{scrollLeft:i,scrollTop:u}}function bR(n){return Xp(bc(n)).left+yR(n).scrollLeft}function TG(n,r){var i=qi(n),u=bc(n),l=i.visualViewport,d=u.clientWidth,h=u.clientHeight,v=0,y=0;if(l){d=l.width,h=l.height;var C=kj();(C||!C&&r==="fixed")&&(v=l.offsetLeft,y=l.offsetTop)}return{width:d,height:h,x:v+bR(n),y}}function IG(n){var r,i=bc(n),u=yR(n),l=(r=n.ownerDocument)==null?void 0:r.body,d=$f(i.scrollWidth,i.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),h=$f(i.scrollHeight,i.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),v=-u.scrollLeft+bR(n),y=-u.scrollTop;return au(l||i).direction==="rtl"&&(v+=$f(i.clientWidth,l?l.clientWidth:0)-d),{width:d,height:h,x:v,y}}function CR(n){var r=au(n),i=r.overflow,u=r.overflowX,l=r.overflowY;return/auto|scroll|overlay|hidden/.test(i+l+u)}function Vj(n){return["html","body","#document"].indexOf(yc(n))>=0?n.ownerDocument.body:tl(n)&&CR(n)?n:Vj(B0(n))}function hm(n,r){var i;r===void 0&&(r=[]);var u=Vj(n),l=u===((i=n.ownerDocument)==null?void 0:i.body),d=qi(u),h=l?[d].concat(d.visualViewport||[],CR(u)?u:[]):u,v=r.concat(h);return l?v:v.concat(hm(B0(h)))}function Rw(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function NG(n,r){var i=Xp(n,!1,r==="fixed");return i.top=i.top+n.clientTop,i.left=i.left+n.clientLeft,i.bottom=i.top+n.clientHeight,i.right=i.left+n.clientWidth,i.width=n.clientWidth,i.height=n.clientHeight,i.x=i.left,i.y=i.top,i}function $_(n,r,i){return r===jj?Rw(TG(n,i)):Yf(r)?NG(r,i):Rw(IG(bc(n)))}function _G(n){var r=hm(B0(n)),i=["absolute","fixed"].indexOf(au(n).position)>=0,u=i&&tl(n)?jm(n):n;return Yf(u)?r.filter(function(l){return Yf(l)&&Mj(l,u)&&yc(l)!=="body"}):[]}function OG(n,r,i,u){var l=r==="clippingParents"?_G(n):[].concat(r),d=[].concat(l,[i]),h=d[0],v=d.reduce(function(y,C){var x=$_(n,C,u);return y.top=$f(x.top,y.top),y.right=b0(x.right,y.right),y.bottom=b0(x.bottom,y.bottom),y.left=$f(x.left,y.left),y},$_(n,h,u));return v.width=v.right-v.left,v.height=v.bottom-v.top,v.x=v.left,v.y=v.top,v}function Bj(n){var r=n.reference,i=n.element,u=n.placement,l=u?el(u):null,d=u?Yp(u):null,h=r.x+r.width/2-i.width/2,v=r.y+r.height/2-i.height/2,y;switch(l){case Oi:y={x:h,y:r.y-i.height};break;case Ro:y={x:h,y:r.y+r.height};break;case To:y={x:r.x+r.width,y:v};break;case Ai:y={x:r.x-i.width,y:v};break;default:y={x:r.x,y:r.y}}var C=l?gR(l):null;if(C!=null){var x=C==="y"?"height":"width";switch(d){case Gp:y[C]=y[C]-(r[x]/2-i[x]/2);break;case bm:y[C]=y[C]+(r[x]/2-i[x]/2);break}}return y}function Cm(n,r){r===void 0&&(r={});var i=r,u=i.placement,l=u===void 0?n.placement:u,d=i.strategy,h=d===void 0?n.strategy:d,v=i.boundary,y=v===void 0?K3:v,C=i.rootBoundary,x=C===void 0?jj:C,R=i.elementContext,T=R===void 0?am:R,A=i.altBoundary,N=A===void 0?!1:A,O=i.padding,_=O===void 0?0:O,L=Pj(typeof _!="number"?_:Fj(_,Am)),F=T===am?eG:am,V=n.rects.popper,H=n.elements[N?F:T],z=OG(Yf(H)?H:H.contextElement||bc(n.elements.popper),y,x,h),U=Xp(n.elements.reference),J=Bj({reference:U,element:V,strategy:"absolute",placement:l}),q=Rw(Object.assign({},V,J)),Re=T===am?q:U,he={top:z.top-Re.top+L.top,bottom:Re.bottom-z.bottom+L.bottom,left:z.left-Re.left+L.left,right:Re.right-z.right+L.right},ge=n.modifiersData.offset;if(T===am&&ge){var fe=ge[l];Object.keys(he).forEach(function(Oe){var Te=[To,Ro].indexOf(Oe)>=0?1:-1,xe=[Oi,Ro].indexOf(Oe)>=0?"y":"x";he[Oe]+=fe[xe]*Te})}return he}function AG(n,r){r===void 0&&(r={});var i=r,u=i.placement,l=i.boundary,d=i.rootBoundary,h=i.padding,v=i.flipVariations,y=i.allowedAutoPlacements,C=y===void 0?Dj:y,x=Yp(u),R=x?v?B_:B_.filter(function(N){return Yp(N)===x}):Am,T=R.filter(function(N){return C.indexOf(N)>=0});T.length===0&&(T=R);var A=T.reduce(function(N,O){return N[O]=Cm(n,{placement:O,boundary:l,rootBoundary:d,padding:h})[el(O)],N},{});return Object.keys(A).sort(function(N,O){return A[N]-A[O]})}function jG(n){if(el(n)===vR)return[];var r=qb(n);return[U_(n),r,U_(r)]}function DG(n){var r=n.state,i=n.options,u=n.name;if(!r.modifiersData[u]._skip){for(var l=i.mainAxis,d=l===void 0?!0:l,h=i.altAxis,v=h===void 0?!0:h,y=i.fallbackPlacements,C=i.padding,x=i.boundary,R=i.rootBoundary,T=i.altBoundary,A=i.flipVariations,N=A===void 0?!0:A,O=i.allowedAutoPlacements,_=r.options.placement,L=el(_),F=L===_,V=y||(F||!N?[qb(_)]:jG(_)),H=[_].concat(V).reduce(function(Se,Ne){return Se.concat(el(Ne)===vR?AG(r,{placement:Ne,boundary:x,rootBoundary:R,padding:C,flipVariations:N,allowedAutoPlacements:O}):Ne)},[]),z=r.rects.reference,U=r.rects.popper,J=new Map,q=!0,Re=H[0],he=0;he<H.length;he++){var ge=H[he],fe=el(ge),Oe=Yp(ge)===Gp,Te=[Oi,Ro].indexOf(fe)>=0,xe=Te?"width":"height",je=Cm(r,{placement:ge,boundary:x,rootBoundary:R,altBoundary:T,padding:C}),Le=Te?Oe?To:Ai:Oe?Ro:Oi;z[xe]>U[xe]&&(Le=qb(Le));var ne=qb(Le),_e=[];if(d&&_e.push(je[fe]<=0),v&&_e.push(je[Le]<=0,je[ne]<=0),_e.every(function(Se){return Se})){Re=ge,q=!1;break}J.set(ge,_e)}if(q)for(var G=N?3:1,Y=function(Ne){var le=H.find(function(ve){var we=J.get(ve);if(we)return we.slice(0,Ne).every(function(Ve){return Ve})});if(le)return Re=le,"break"},re=G;re>0;re--){var ye=Y(re);if(ye==="break")break}r.placement!==Re&&(r.modifiersData[u]._skip=!0,r.placement=Re,r.reset=!0)}}const kG={name:"flip",enabled:!0,phase:"main",fn:DG,requiresIfExists:["offset"],data:{_skip:!1}};function G_(n,r,i){return i===void 0&&(i={x:0,y:0}),{top:n.top-r.height-i.y,right:n.right-r.width+i.x,bottom:n.bottom-r.height+i.y,left:n.left-r.width-i.x}}function W_(n){return[Oi,To,Ro,Ai].some(function(r){return n[r]>=0})}function MG(n){var r=n.state,i=n.name,u=r.rects.reference,l=r.rects.popper,d=r.modifiersData.preventOverflow,h=Cm(r,{elementContext:"reference"}),v=Cm(r,{altBoundary:!0}),y=G_(h,u),C=G_(v,l,d),x=W_(y),R=W_(C);r.modifiersData[i]={referenceClippingOffsets:y,popperEscapeOffsets:C,isReferenceHidden:x,hasPopperEscaped:R},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":x,"data-popper-escaped":R})}const LG={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:MG};function PG(n,r,i){var u=el(n),l=[Ai,Oi].indexOf(u)>=0?-1:1,d=typeof i=="function"?i(Object.assign({},r,{placement:n})):i,h=d[0],v=d[1];return h=h||0,v=(v||0)*l,[Ai,To].indexOf(u)>=0?{x:v,y:h}:{x:h,y:v}}function FG(n){var r=n.state,i=n.options,u=n.name,l=i.offset,d=l===void 0?[0,0]:l,h=Dj.reduce(function(x,R){return x[R]=PG(R,r.rects,d),x},{}),v=h[r.placement],y=v.x,C=v.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=y,r.modifiersData.popperOffsets.y+=C),r.modifiersData[u]=h}const VG={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:FG};function BG(n){var r=n.state,i=n.name;r.modifiersData[i]=Bj({reference:r.rects.reference,element:r.rects.popper,strategy:"absolute",placement:r.placement})}const zG={name:"popperOffsets",enabled:!0,phase:"read",fn:BG,data:{}};function HG(n){return n==="x"?"y":"x"}function UG(n){var r=n.state,i=n.options,u=n.name,l=i.mainAxis,d=l===void 0?!0:l,h=i.altAxis,v=h===void 0?!1:h,y=i.boundary,C=i.rootBoundary,x=i.altBoundary,R=i.padding,T=i.tether,A=T===void 0?!0:T,N=i.tetherOffset,O=N===void 0?0:N,_=Cm(r,{boundary:y,rootBoundary:C,padding:R,altBoundary:x}),L=el(r.placement),F=Yp(r.placement),V=!F,H=gR(L),z=HG(H),U=r.modifiersData.popperOffsets,J=r.rects.reference,q=r.rects.popper,Re=typeof O=="function"?O(Object.assign({},r.rects,{placement:r.placement})):O,he=typeof Re=="number"?{mainAxis:Re,altAxis:Re}:Object.assign({mainAxis:0,altAxis:0},Re),ge=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,fe={x:0,y:0};if(U){if(d){var Oe,Te=H==="y"?Oi:Ai,xe=H==="y"?Ro:To,je=H==="y"?"height":"width",Le=U[H],ne=Le+_[Te],_e=Le-_[xe],G=A?-q[je]/2:0,Y=F===Gp?J[je]:q[je],re=F===Gp?-q[je]:-J[je],ye=r.elements.arrow,Se=A&&ye?mR(ye):{width:0,height:0},Ne=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:Lj(),le=Ne[Te],ve=Ne[xe],we=vm(0,J[je],Se[je]),Ve=V?J[je]/2-G-we-le-he.mainAxis:Y-we-le-he.mainAxis,et=V?-J[je]/2+G+we+ve+he.mainAxis:re+we+ve+he.mainAxis,tt=r.elements.arrow&&jm(r.elements.arrow),ft=tt?H==="y"?tt.clientTop||0:tt.clientLeft||0:0,Ae=(Oe=ge==null?void 0:ge[H])!=null?Oe:0,It=Le+Ve-Ae-ft,pt=Le+et-Ae,Kt=vm(A?b0(ne,It):ne,Le,A?$f(_e,pt):_e);U[H]=Kt,fe[H]=Kt-Le}if(v){var on,sn=H==="x"?Oi:Ai,_n=H==="x"?Ro:To,Vt=U[z],Cn=z==="y"?"height":"width",Qn=Vt+_[sn],Rr=Vt-_[_n],$n=[Oi,Ai].indexOf(L)!==-1,Tr=(on=ge==null?void 0:ge[z])!=null?on:0,xt=$n?Qn:Vt-J[Cn]-q[Cn]-Tr+he.altAxis,Pn=$n?Vt+J[Cn]+q[Cn]-Tr-he.altAxis:Rr,ln=A&&$n?pG(xt,Vt,Pn):vm(A?xt:Qn,Vt,A?Pn:Rr);U[z]=ln,fe[z]=ln-Vt}r.modifiersData[u]=fe}}const $G={name:"preventOverflow",enabled:!0,phase:"main",fn:UG,requiresIfExists:["offset"]};function GG(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function WG(n){return n===qi(n)||!tl(n)?yR(n):GG(n)}function XG(n){var r=n.getBoundingClientRect(),i=Wp(r.width)/n.offsetWidth||1,u=Wp(r.height)/n.offsetHeight||1;return i!==1||u!==1}function YG(n,r,i){i===void 0&&(i=!1);var u=tl(r),l=tl(r)&&XG(r),d=bc(r),h=Xp(n,l,i),v={scrollLeft:0,scrollTop:0},y={x:0,y:0};return(u||!u&&!i)&&((yc(r)!=="body"||CR(d))&&(v=WG(r)),tl(r)?(y=Xp(r,!0),y.x+=r.clientLeft,y.y+=r.clientTop):d&&(y.x=bR(d))),{x:h.left+v.scrollLeft-y.x,y:h.top+v.scrollTop-y.y,width:h.width,height:h.height}}function ZG(n){var r=new Map,i=new Set,u=[];n.forEach(function(d){r.set(d.name,d)});function l(d){i.add(d.name);var h=[].concat(d.requires||[],d.requiresIfExists||[]);h.forEach(function(v){if(!i.has(v)){var y=r.get(v);y&&l(y)}}),u.push(d)}return n.forEach(function(d){i.has(d.name)||l(d)}),u}function JG(n){var r=ZG(n);return cG.reduce(function(i,u){return i.concat(r.filter(function(l){return l.phase===u}))},[])}function qG(n){var r;return function(){return r||(r=new Promise(function(i){Promise.resolve().then(function(){r=void 0,i(n())})})),r}}function QG(n){var r=n.reduce(function(i,u){var l=i[u.name];return i[u.name]=l?Object.assign({},l,u,{options:Object.assign({},l.options,u.options),data:Object.assign({},l.data,u.data)}):u,i},{});return Object.keys(r).map(function(i){return r[i]})}var X_={placement:"bottom",modifiers:[],strategy:"absolute"};function Y_(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return!r.some(function(u){return!(u&&typeof u.getBoundingClientRect=="function")})}function KG(n){n===void 0&&(n={});var r=n,i=r.defaultModifiers,u=i===void 0?[]:i,l=r.defaultOptions,d=l===void 0?X_:l;return function(v,y,C){C===void 0&&(C=d);var x={placement:"bottom",orderedModifiers:[],options:Object.assign({},X_,d),modifiersData:{},elements:{reference:v,popper:y},attributes:{},styles:{}},R=[],T=!1,A={state:x,setOptions:function(L){var F=typeof L=="function"?L(x.options):L;O(),x.options=Object.assign({},d,x.options,F),x.scrollParents={reference:Yf(v)?hm(v):v.contextElement?hm(v.contextElement):[],popper:hm(y)};var V=JG(QG([].concat(u,x.options.modifiers)));return x.orderedModifiers=V.filter(function(H){return H.enabled}),N(),A.update()},forceUpdate:function(){if(!T){var L=x.elements,F=L.reference,V=L.popper;if(Y_(F,V)){x.rects={reference:YG(F,jm(V),x.options.strategy==="fixed"),popper:mR(V)},x.reset=!1,x.placement=x.options.placement,x.orderedModifiers.forEach(function(he){return x.modifiersData[he.name]=Object.assign({},he.data)});for(var H=0;H<x.orderedModifiers.length;H++){if(x.reset===!0){x.reset=!1,H=-1;continue}var z=x.orderedModifiers[H],U=z.fn,J=z.options,q=J===void 0?{}:J,Re=z.name;typeof U=="function"&&(x=U({state:x,options:q,name:Re,instance:A})||x)}}}},update:qG(function(){return new Promise(function(_){A.forceUpdate(),_(x)})}),destroy:function(){O(),T=!0}};if(!Y_(v,y))return A;A.setOptions(C).then(function(_){!T&&C.onFirstUpdate&&C.onFirstUpdate(_)});function N(){x.orderedModifiers.forEach(function(_){var L=_.name,F=_.options,V=F===void 0?{}:F,H=_.effect;if(typeof H=="function"){var z=H({state:x,name:L,instance:A,options:V}),U=function(){};R.push(z||U)}})}function O(){R.forEach(function(_){return _()}),R=[]}return A}}const e9=KG({defaultModifiers:[LG,zG,xG,EG,VG,kG,$G,gG]}),t9=["enabled","placement","strategy","modifiers"];function n9(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}const r9={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},a9={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:n})=>()=>{const{reference:r,popper:i}=n.elements;if("removeAttribute"in r){const u=(r.getAttribute("aria-describedby")||"").split(",").filter(l=>l.trim()!==i.id);u.length?r.setAttribute("aria-describedby",u.join(",")):r.removeAttribute("aria-describedby")}},fn:({state:n})=>{var r;const{popper:i,reference:u}=n.elements,l=(r=i.getAttribute("role"))==null?void 0:r.toLowerCase();if(i.id&&l==="tooltip"&&"setAttribute"in u){const d=u.getAttribute("aria-describedby");if(d&&d.split(",").indexOf(i.id)!==-1)return;u.setAttribute("aria-describedby",d?`${d},${i.id}`:i.id)}}},i9=[];function zj(n,r,i={}){let{enabled:u=!0,placement:l="bottom",strategy:d="absolute",modifiers:h=i9}=i,v=n9(i,t9);const y=M.useRef(h),C=M.useRef(),x=M.useCallback(()=>{var _;(_=C.current)==null||_.update()},[]),R=M.useCallback(()=>{var _;(_=C.current)==null||_.forceUpdate()},[]),[T,A]=Q3(M.useState({placement:l,update:x,forceUpdate:R,attributes:{},styles:{popper:{},arrow:{}}})),N=M.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:_})=>{const L={},F={};Object.keys(_.elements).forEach(V=>{L[V]=_.styles[V],F[V]=_.attributes[V]}),A({state:_,styles:L,attributes:F,update:x,forceUpdate:R,placement:_.placement})}}),[x,R,A]),O=M.useMemo(()=>(pm(y.current,h)||(y.current=h),y.current),[h]);return M.useEffect(()=>{!C.current||!u||C.current.setOptions({placement:l,strategy:d,modifiers:[...O,N,r9]})},[d,l,N,u,O]),M.useEffect(()=>{if(!(!u||n==null||r==null))return C.current=e9(n,r,Object.assign({},v,{placement:l,strategy:d,modifiers:[...O,a9,N]})),()=>{C.current!=null&&(C.current.destroy(),C.current=void 0,A(_=>Object.assign({},_,{attributes:{},styles:{popper:{}}})))}},[u,n,r]),T}function xm(n,r){if(n.contains)return n.contains(r);if(n.compareDocumentPosition)return n===r||!!(n.compareDocumentPosition(r)&16)}var o9={},s9=o9.NODE_ENV!=="production",Hj=function(){};if(s9){var l9=function(r,i){var u=arguments.length;i=new Array(u>1?u-1:0);for(var l=1;l<u;l++)i[l-1]=arguments[l];var d=0,h="Warning: "+r.replace(/%s/g,function(){return i[d++]});typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}};Hj=function(n,r,i){var u=arguments.length;i=new Array(u>2?u-2:0);for(var l=2;l<u;l++)i[l-2]=arguments[l];if(r===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");n||l9.apply(null,[r].concat(i))}}var u9=Hj;const xR=qp(u9),Z_=()=>{};function c9(n){return n.button===0}function f9(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}const Qb=n=>n&&("current"in n?n.current:n),J_={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Uj(n,r=Z_,{disabled:i,clickTrigger:u="click"}={}){const l=M.useRef(!1),d=M.useRef(!1),h=M.useCallback(C=>{const x=Qb(n);xR(!!x,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),l.current=!x||f9(C)||!c9(C)||!!xm(x,C.target)||d.current,d.current=!1},[n]),v=gr(C=>{const x=Qb(n);x&&xm(x,C.target)&&(d.current=!0)}),y=gr(C=>{l.current||r(C)});M.useEffect(()=>{var C,x;if(i||n==null)return;const R=ev(Qb(n)),T=R.defaultView||window;let A=(C=T.event)!=null?C:(x=T.parent)==null?void 0:x.event,N=null;J_[u]&&(N=Ql(R,J_[u],v,!0));const O=Ql(R,u,h,!0),_=Ql(R,u,F=>{if(F===A){A=void 0;return}y(F)});let L=[];return"ontouchstart"in R.documentElement&&(L=[].slice.call(R.body.children).map(F=>Ql(F,"mousemove",Z_))),()=>{N==null||N(),O(),_(),L.forEach(F=>F())}},[n,i,u,h,v,y])}function d9(n){const r={};return Array.isArray(n)?(n==null||n.forEach(i=>{r[i.name]=i}),r):n||r}function p9(n={}){return Array.isArray(n)?n:Object.keys(n).map(r=>(n[r].name=r,n[r]))}function $j({enabled:n,enableEvents:r,placement:i,flip:u,offset:l,fixed:d,containerPadding:h,arrowElement:v,popperConfig:y={}}){var C,x,R,T,A;const N=d9(y.modifiers);return Object.assign({},y,{placement:i,enabled:n,strategy:d?"fixed":y.strategy,modifiers:p9(Object.assign({},N,{eventListeners:{enabled:r,options:(C=N.eventListeners)==null?void 0:C.options},preventOverflow:Object.assign({},N.preventOverflow,{options:h?Object.assign({padding:h},(x=N.preventOverflow)==null?void 0:x.options):(R=N.preventOverflow)==null?void 0:R.options}),offset:{options:Object.assign({offset:l},(T=N.offset)==null?void 0:T.options)},arrow:Object.assign({},N.arrow,{enabled:!!v,options:Object.assign({},(A=N.arrow)==null?void 0:A.options,{element:v})}),flip:Object.assign({enabled:!!u},N.flip)}))})}const v9=["children"];function h9(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}const m9=()=>{};function Gj(n={}){const r=M.useContext(V0),[i,u]=g0(),l=M.useRef(!1),{flip:d,offset:h,rootCloseEvent:v,fixed:y=!1,placement:C,popperConfig:x={},enableEventListeners:R=!0,usePopper:T=!!r}=n,A=(r==null?void 0:r.show)==null?!!n.show:r.show;A&&!l.current&&(l.current=!0);const N=U=>{r==null||r.toggle(!1,U)},{placement:O,setMenu:_,menuElement:L,toggleElement:F}=r||{},V=zj(F,L,$j({placement:C||O||"bottom-start",enabled:T,enableEvents:R??A,offset:h,flip:d,fixed:y,arrowElement:i,popperConfig:x})),H=Object.assign({ref:_||m9,"aria-labelledby":F==null?void 0:F.id},V.attributes.popper,{style:V.styles.popper}),z={show:A,placement:O,hasShown:l.current,toggle:r==null?void 0:r.toggle,popper:T?V:null,arrowProps:T?Object.assign({ref:u},V.attributes.arrow,{style:V.styles.arrow}):{}};return Uj(L,N,{clickTrigger:v,disabled:!A}),[H,z]}const g9={usePopper:!0};function SR(n){let{children:r}=n,i=h9(n,v9);const[u,l]=Gj(i);return b.jsx(b.Fragment,{children:r(u,l)})}SR.displayName="DropdownMenu";SR.defaultProps=g9;const Wj=n=>{var r;return((r=n.getAttribute("role"))==null?void 0:r.toLowerCase())==="menu"},q_=()=>{};function Xj(){const n=YA(),{show:r=!1,toggle:i=q_,setToggle:u,menuElement:l}=M.useContext(V0)||{},d=M.useCallback(v=>{i(!r,v)},[r,i]),h={id:n,ref:u||q_,onClick:d,"aria-expanded":!!r};return l&&Wj(l)&&(h["aria-haspopup"]=!0),[h,{show:r,toggle:i}]}function Yj({children:n}){const[r,i]=Xj();return b.jsx(b.Fragment,{children:n(r,i)})}Yj.displayName="DropdownToggle";const y9=["eventKey","disabled","onClick","active","as"];function b9(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}function Zj({key:n,href:r,active:i,disabled:u,onClick:l}){const d=M.useContext(ru),h=M.useContext(cR),{activeKey:v}=h||{},y=Xf(n,r),C=i==null&&n!=null?Xf(v)===y:i;return[{onClick:gr(R=>{u||(l==null||l(R),d&&!R.isPropagationStopped()&&d(y,R))}),"aria-disabled":u||void 0,"aria-selected":C,[nv("dropdown-item")]:""},{isActive:C}]}const Jj=M.forwardRef((n,r)=>{let{eventKey:i,disabled:u,onClick:l,active:d,as:h=dR}=n,v=b9(n,y9);const[y]=Zj({key:i,href:v.href,disabled:u,onClick:l,active:d});return b.jsx(h,Object.assign({},v,{ref:r},y))});Jj.displayName="DropdownItem";const qj=M.createContext(tv?window:void 0);qj.Provider;function z0(){return M.useContext(qj)}function Q_(){const n=hj(),r=M.useRef(null),i=M.useCallback(u=>{r.current=u,n()},[n]);return[r,i]}function Dm({defaultShow:n,show:r,onSelect:i,onToggle:u,itemSelector:l=`* [${nv("dropdown-item")}]`,focusFirstItemOnShow:d,placement:h="bottom-start",children:v}){const y=z0(),[C,x]=GA(r,n,u),[R,T]=Q_(),A=R.current,[N,O]=Q_(),_=N.current,L=Rj(C),F=M.useRef(null),V=M.useRef(!1),H=M.useContext(ru),z=M.useCallback((ge,fe,Oe=fe==null?void 0:fe.type)=>{x(ge,{originalEvent:fe,source:Oe})},[x]),U=gr((ge,fe)=>{i==null||i(ge,fe),z(!1,fe,"select"),fe.isPropagationStopped()||H==null||H(ge,fe)}),J=M.useMemo(()=>({toggle:z,placement:h,show:C,menuElement:A,toggleElement:_,setMenu:T,setToggle:O}),[z,h,C,A,_,T,O]);A&&L&&!C&&(V.current=A.contains(A.ownerDocument.activeElement));const q=gr(()=>{_&&_.focus&&_.focus()}),Re=gr(()=>{const ge=F.current;let fe=d;if(fe==null&&(fe=R.current&&Wj(R.current)?"keyboard":!1),fe===!1||fe==="keyboard"&&!/^key.+$/.test(ge))return;const Oe=ql(R.current,l)[0];Oe&&Oe.focus&&Oe.focus()});M.useEffect(()=>{C?Re():V.current&&(V.current=!1,q())},[C,V,q,Re]),M.useEffect(()=>{F.current=null});const he=(ge,fe)=>{if(!R.current)return null;const Oe=ql(R.current,l);let Te=Oe.indexOf(ge)+fe;return Te=Math.max(0,Math.min(Te,Oe.length)),Oe[Te]};return B3(M.useCallback(()=>y.document,[y]),"keydown",ge=>{var fe,Oe;const{key:Te}=ge,xe=ge.target,je=(fe=R.current)==null?void 0:fe.contains(xe),Le=(Oe=N.current)==null?void 0:Oe.contains(xe);if(/input|textarea/i.test(xe.tagName)&&(Te===" "||Te!=="Escape"&&je||Te==="Escape"&&xe.type==="search")||!je&&!Le||Te==="Tab"&&(!R.current||!C))return;F.current=ge.type;const _e={originalEvent:ge,source:ge.type};switch(Te){case"ArrowUp":{const G=he(xe,-1);G&&G.focus&&G.focus(),ge.preventDefault();return}case"ArrowDown":if(ge.preventDefault(),!C)x(!0,_e);else{const G=he(xe,1);G&&G.focus&&G.focus()}return;case"Tab":lR(xe.ownerDocument,"keyup",G=>{var Y;(G.key==="Tab"&&!G.target||!((Y=R.current)!=null&&Y.contains(G.target)))&&x(!1,_e)},{once:!0});break;case"Escape":Te==="Escape"&&(ge.preventDefault(),ge.stopPropagation()),x(!1,_e);break}}),b.jsx(ru.Provider,{value:U,children:b.jsx(V0.Provider,{value:J,children:v})})}Dm.displayName="Dropdown";Dm.Menu=SR;Dm.Toggle=Yj;Dm.Item=Jj;const Qj=M.createContext({});Qj.displayName="DropdownContext";const Kj=Qj,eD=M.forwardRef(({className:n,bsPrefix:r,as:i="hr",role:u="separator",...l},d)=>(r=bn(r,"dropdown-divider"),b.jsx(i,{ref:d,className:qt(n,r),role:u,...l})));eD.displayName="DropdownDivider";const C9=eD,tD=M.forwardRef(({className:n,bsPrefix:r,as:i="div",role:u="heading",...l},d)=>(r=bn(r,"dropdown-header"),b.jsx(i,{ref:d,className:qt(n,r),role:u,...l})));tD.displayName="DropdownHeader";const x9=tD,nD=M.forwardRef(({bsPrefix:n,className:r,eventKey:i,disabled:u=!1,onClick:l,active:d,as:h=Ij,...v},y)=>{const C=bn(n,"dropdown-item"),[x,R]=Zj({key:i,href:v.href,disabled:u,onClick:l,active:d});return b.jsx(h,{...v,...x,ref:y,className:qt(r,C,R.isActive&&"active",u&&"disabled")})});nD.displayName="DropdownItem";const S9=nD,rD=M.forwardRef(({className:n,bsPrefix:r,as:i="span",...u},l)=>(r=bn(r,"dropdown-item-text"),b.jsx(i,{ref:l,className:qt(n,r),...u})));rD.displayName="DropdownItemText";const E9=rD,aD=M.createContext(null);aD.displayName="InputGroupContext";const iD=aD;var K_={};function oD(n,r){if(K_.NODE_ENV==="production")return n;const i=M.useCallback(u=>{u==null||!u.isReactComponent||(K_.NODE_ENV!=="production"?j_(!1,`${r} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`):j_(!1))},[r]);return ps(i,n)}var w9={};function sD(n,r,i){const u=i?"top-end":"top-start",l=i?"top-start":"top-end",d=i?"bottom-end":"bottom-start",h=i?"bottom-start":"bottom-end",v=i?"right-start":"left-start",y=i?"right-end":"left-end",C=i?"left-start":"right-start",x=i?"left-end":"right-end";let R=n?h:d;return r==="up"?R=n?l:u:r==="end"?R=n?x:C:r==="start"?R=n?y:v:r==="down-centered"?R="bottom":r==="up-centered"&&(R="top"),R}const lD=M.forwardRef(({bsPrefix:n,className:r,align:i,rootCloseEvent:u,flip:l=!0,show:d,renderOnMount:h,as:v="div",popperConfig:y,variant:C,...x},R)=>{let T=!1;const A=M.useContext(xj),N=bn(n,"dropdown-menu"),{align:O,drop:_,isRTL:L}=M.useContext(Kj);i=i||O;const F=M.useContext(iD),V=[];if(i)if(typeof i=="object"){const ge=Object.keys(i);if(w9.NODE_ENV!=="production"&&xR(ge.length===1,"There should only be 1 breakpoint when passing an object to `align`"),ge.length){const fe=ge[0],Oe=i[fe];T=Oe==="start",V.push(`${N}-${fe}-${Oe}`)}}else i==="end"&&(T=!0);const H=sD(T,_,L),[z,{hasShown:U,popper:J,show:q,toggle:Re}]=Gj({flip:l,rootCloseEvent:u,show:d,usePopper:!A&&V.length===0,offset:[0,2],popperConfig:y,placement:H});if(z.ref=ps(oD(R,"DropdownMenu"),z.ref),y0(()=>{q&&(J==null||J.update())},[q]),!U&&!h&&!F)return null;typeof v!="string"&&(z.show=q,z.close=()=>Re==null?void 0:Re(!1),z.align=i);let he=x.style;return J!=null&&J.placement&&(he={...x.style,...z.style},x["x-placement"]=J.placement),b.jsx(v,{...x,...z,style:he,...(V.length||A)&&{"data-bs-popper":"static"},className:qt(r,N,q&&"show",T&&`${N}-end`,C&&`${N}-${C}`,...V)})});lD.displayName="DropdownMenu";const R9=lD,uD=M.forwardRef(({as:n,bsPrefix:r,variant:i="primary",size:u,active:l=!1,disabled:d=!1,className:h,...v},y)=>{const C=bn(r,"btn"),[x,{tagName:R}]=fR({tagName:n,disabled:d,...v}),T=R;return b.jsx(T,{...x,...v,ref:y,disabled:d,className:qt(h,C,l&&"active",i&&`${C}-${i}`,u&&`${C}-${u}`,v.href&&d&&"disabled")})});uD.displayName="Button";const T9=uD,cD=M.forwardRef(({bsPrefix:n,split:r,className:i,childBsPrefix:u,as:l=T9,...d},h)=>{const v=bn(n,"dropdown-toggle"),y=M.useContext(V0);u!==void 0&&(d.bsPrefix=u);const[C]=Xj();return C.ref=ps(C.ref,oD(h,"DropdownToggle")),b.jsx(l,{className:qt(i,v,r&&`${v}-split`,(y==null?void 0:y.show)&&"show"),...C,...d})});cD.displayName="DropdownToggle";const I9=cD,fD=M.forwardRef((n,r)=>{const{bsPrefix:i,drop:u="down",show:l,className:d,align:h="start",onSelect:v,onToggle:y,focusFirstItemOnShow:C,as:x="div",navbar:R,autoClose:T=!0,...A}=F0(n,{show:"onToggle"}),N=M.useContext(iD),O=bn(i,"dropdown"),_=P0(),L=J=>T===!1?J==="click":T==="inside"?J!=="rootClose":T==="outside"?J!=="select":!0,F=gr((J,q)=>{var Re,he;!((Re=q.originalEvent)==null||(he=Re.target)==null)&&he.classList.contains("dropdown-toggle")&&q.source==="mousedown"||(q.originalEvent.currentTarget===document&&(q.source!=="keydown"||q.originalEvent.key==="Escape")&&(q.source="rootClose"),L(q.source)&&(y==null||y(J,q)))}),H=sD(h==="end",u,_),z=M.useMemo(()=>({align:h,drop:u,isRTL:_}),[h,u,_]),U={down:O,"down-centered":`${O}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return b.jsx(Kj.Provider,{value:z,children:b.jsx(Dm,{placement:H,show:l,onSelect:v,onToggle:F,focusFirstItemOnShow:C,itemSelector:`.${O}-item:not(.disabled):not(:disabled)`,children:N?A.children:b.jsx(x,{...A,ref:r,className:qt(d,l&&"show",U[u])})})})});fD.displayName="Dropdown";const Lb=Object.assign(fD,{Toggle:I9,Menu:R9,Item:S9,ItemText:E9,Divider:C9,Header:x9});var Pb;function eO(n){if((!Pb&&Pb!==0||n)&&tv){var r=document.createElement("div");r.style.position="absolute",r.style.top="-9999px",r.style.width="50px",r.style.height="50px",r.style.overflow="scroll",document.body.appendChild(r),Pb=r.offsetWidth-r.clientWidth,document.body.removeChild(r)}return Pb}function N9(n){const r=M.useRef(n);return r.current=n,r}function ER(n){const r=N9(n);M.useEffect(()=>()=>r.current(),[])}function zE(n){n===void 0&&(n=ev());try{var r=n.activeElement;return!r||!r.nodeName?null:r}catch{return n.body}}function _9(n=document){const r=n.defaultView;return Math.abs(r.innerWidth-n.documentElement.clientWidth)}const tO=nv("modal-open");class O9{constructor({ownerDocument:r,handleContainerOverflow:i=!0,isRTL:u=!1}={}){this.handleContainerOverflow=i,this.isRTL=u,this.modals=[],this.ownerDocument=r}getScrollbarWidth(){return _9(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(r){}removeModalAttributes(r){}setContainerStyle(r){const i={overflow:"hidden"},u=this.isRTL?"paddingLeft":"paddingRight",l=this.getElement();r.style={overflow:l.style.overflow,[u]:l.style[u]},r.scrollBarWidth&&(i[u]=`${parseInt(eu(l,u)||"0",10)+r.scrollBarWidth}px`),l.setAttribute(tO,""),eu(l,i)}reset(){[...this.modals].forEach(r=>this.remove(r))}removeContainerStyle(r){const i=this.getElement();i.removeAttribute(tO),Object.assign(i.style,r.style)}add(r){let i=this.modals.indexOf(r);return i!==-1||(i=this.modals.length,this.modals.push(r),this.setModalAttributes(r),i!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),i}remove(r){const i=this.modals.indexOf(r);i!==-1&&(this.modals.splice(i,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(r))}isTopModal(r){return!!this.modals.length&&this.modals[this.modals.length-1]===r}}const wR=O9,HE=(n,r)=>tv?n==null?(r||ev()).body:(typeof n=="function"&&(n=n()),n&&"current"in n&&(n=n.current),n&&("nodeType"in n||n.getBoundingClientRect)?n:null):null;function Tw(n,r){const i=z0(),[u,l]=M.useState(()=>HE(n,i==null?void 0:i.document));if(!u){const d=HE(n);d&&l(d)}return M.useEffect(()=>{r&&u&&r(u)},[r,u]),M.useEffect(()=>{const d=HE(n);d!==u&&l(d)},[n,u]),u}function A9({in:n,onTransition:r}){const i=M.useRef(null),u=M.useRef(!0),l=gr(r);return y0(()=>{if(!i.current)return;let d=!1;return l({in:n,element:i.current,initial:u.current,isStale:()=>d}),()=>{d=!0}},[n,l]),y0(()=>(u.current=!1,()=>{u.current=!0}),[]),i}function j9({children:n,in:r,onExited:i,onEntered:u,transition:l}){const[d,h]=M.useState(!r);r&&d&&h(!1);const v=A9({in:!!r,onTransition:C=>{const x=()=>{C.isStale()||(C.in?u==null||u(C.element,C.initial):(h(!0),i==null||i(C.element)))};Promise.resolve(l(C)).then(x,R=>{throw C.in||h(!0),R})}}),y=ps(v,n.ref);return d&&!r?null:M.cloneElement(n,{ref:y})}function Iw(n,r,i){return n?b.jsx(n,Object.assign({},i)):r?b.jsx(j9,Object.assign({},i,{transition:r})):b.jsx(oR,Object.assign({},i))}function dD(n){return n.code==="Escape"||n.keyCode===27}const D9=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function k9(n,r){if(n==null)return{};var i={},u=Object.keys(n),l,d;for(d=0;d<u.length;d++)l=u[d],!(r.indexOf(l)>=0)&&(i[l]=n[l]);return i}let UE;function M9(n){return UE||(UE=new wR({ownerDocument:n==null?void 0:n.document})),UE}function L9(n){const r=z0(),i=n||M9(r),u=M.useRef({dialog:null,backdrop:null});return Object.assign(u.current,{add:()=>i.add(u.current),remove:()=>i.remove(u.current),isTopModal:()=>i.isTopModal(u.current),setDialogRef:M.useCallback(l=>{u.current.dialog=l},[]),setBackdropRef:M.useCallback(l=>{u.current.backdrop=l},[])})}const pD=M.forwardRef((n,r)=>{let{show:i=!1,role:u="dialog",className:l,style:d,children:h,backdrop:v=!0,keyboard:y=!0,onBackdropClick:C,onEscapeKeyDown:x,transition:R,runTransition:T,backdropTransition:A,runBackdropTransition:N,autoFocus:O=!0,enforceFocus:_=!0,restoreFocus:L=!0,restoreFocusOptions:F,renderDialog:V,renderBackdrop:H=pt=>b.jsx("div",Object.assign({},pt)),manager:z,container:U,onShow:J,onHide:q=()=>{},onExit:Re,onExited:he,onExiting:ge,onEnter:fe,onEntering:Oe,onEntered:Te}=n,xe=k9(n,D9);const je=z0(),Le=Tw(U),ne=L9(z),_e=pR(),G=Rj(i),[Y,re]=M.useState(!i),ye=M.useRef(null);M.useImperativeHandle(r,()=>ne,[ne]),tv&&!G&&i&&(ye.current=zE(je==null?void 0:je.document)),i&&Y&&re(!1);const Se=gr(()=>{if(ne.add(),et.current=Ql(document,"keydown",we),Ve.current=Ql(document,"focus",()=>setTimeout(le),!0),J&&J(),O){var pt,Kt;const on=zE((pt=(Kt=ne.dialog)==null?void 0:Kt.ownerDocument)!=null?pt:je==null?void 0:je.document);ne.dialog&&on&&!xm(ne.dialog,on)&&(ye.current=on,ne.dialog.focus())}}),Ne=gr(()=>{if(ne.remove(),et.current==null||et.current(),Ve.current==null||Ve.current(),L){var pt;(pt=ye.current)==null||pt.focus==null||pt.focus(F),ye.current=null}});M.useEffect(()=>{!i||!Le||Se()},[i,Le,Se]),M.useEffect(()=>{Y&&Ne()},[Y,Ne]),ER(()=>{Ne()});const le=gr(()=>{if(!_||!_e()||!ne.isTopModal())return;const pt=zE(je==null?void 0:je.document);ne.dialog&&pt&&!xm(ne.dialog,pt)&&ne.dialog.focus()}),ve=gr(pt=>{pt.target===pt.currentTarget&&(C==null||C(pt),v===!0&&q())}),we=gr(pt=>{y&&dD(pt)&&ne.isTopModal()&&(x==null||x(pt),pt.defaultPrevented||q())}),Ve=M.useRef(),et=M.useRef(),tt=(...pt)=>{re(!0),he==null||he(...pt)};if(!Le)return null;const ft=Object.assign({role:u,ref:ne.setDialogRef,"aria-modal":u==="dialog"?!0:void 0},xe,{style:d,className:l,tabIndex:-1});let Ae=V?V(ft):b.jsx("div",Object.assign({},ft,{children:M.cloneElement(h,{role:"document"})}));Ae=Iw(R,T,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!i,onExit:Re,onExiting:ge,onExited:tt,onEnter:fe,onEntering:Oe,onEntered:Te,children:Ae});let It=null;return v&&(It=H({ref:ne.setBackdropRef,onClick:ve}),It=Iw(A,N,{in:!!i,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:It})),b.jsx(b.Fragment,{children:zf.createPortal(b.jsxs(b.Fragment,{children:[It,Ae]}),Le)})});pD.displayName="Modal";const P9=Object.assign(pD,{Manager:wR});function Nw(n,r){return n.classList?!!r&&n.classList.contains(r):(" "+(n.className.baseVal||n.className)+" ").indexOf(" "+r+" ")!==-1}function F9(n,r){n.classList?n.classList.add(r):Nw(n,r)||(typeof n.className=="string"?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r))}function nO(n,r){return n.replace(new RegExp("(^|\\s)"+r+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function V9(n,r){n.classList?n.classList.remove(r):typeof n.className=="string"?n.className=nO(n.className,r):n.setAttribute("class",nO(n.className&&n.className.baseVal||"",r))}const Mp={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class B9 extends wR{adjustAndStore(r,i,u){const l=i.style[r];i.dataset[r]=l,eu(i,{[r]:`${parseFloat(eu(i,r))+u}px`})}restore(r,i){const u=i.dataset[r];u!==void 0&&(delete i.dataset[r],eu(i,{[r]:u}))}setContainerStyle(r){super.setContainerStyle(r);const i=this.getElement();if(F9(i,"modal-open"),!r.scrollBarWidth)return;const u=this.isRTL?"paddingLeft":"paddingRight",l=this.isRTL?"marginLeft":"marginRight";ql(i,Mp.FIXED_CONTENT).forEach(d=>this.adjustAndStore(u,d,r.scrollBarWidth)),ql(i,Mp.STICKY_CONTENT).forEach(d=>this.adjustAndStore(l,d,-r.scrollBarWidth)),ql(i,Mp.NAVBAR_TOGGLER).forEach(d=>this.adjustAndStore(l,d,r.scrollBarWidth))}removeContainerStyle(r){super.removeContainerStyle(r);const i=this.getElement();V9(i,"modal-open");const u=this.isRTL?"paddingLeft":"paddingRight",l=this.isRTL?"marginLeft":"marginRight";ql(i,Mp.FIXED_CONTENT).forEach(d=>this.restore(u,d)),ql(i,Mp.STICKY_CONTENT).forEach(d=>this.restore(l,d)),ql(i,Mp.NAVBAR_TOGGLER).forEach(d=>this.restore(l,d))}}let $E;function z9(n){return $E||($E=new B9(n)),$E}const vD=M.forwardRef(({className:n,bsPrefix:r,as:i="div",...u},l)=>(r=bn(r,"modal-body"),b.jsx(i,{ref:l,className:qt(n,r),...u})));vD.displayName="ModalBody";const H9=vD,U9=M.createContext({onHide(){}}),hD=U9,mD=M.forwardRef(({bsPrefix:n,className:r,contentClassName:i,centered:u,size:l,fullscreen:d,children:h,scrollable:v,...y},C)=>{n=bn(n,"modal");const x=`${n}-dialog`,R=typeof d=="string"?`${n}-fullscreen-${d}`:`${n}-fullscreen`;return b.jsx("div",{...y,ref:C,className:qt(x,r,l&&`${n}-${l}`,u&&`${x}-centered`,v&&`${x}-scrollable`,d&&R),children:b.jsx("div",{className:qt(`${n}-content`,i),children:h})})});mD.displayName="ModalDialog";const gD=mD,yD=M.forwardRef(({className:n,bsPrefix:r,as:i="div",...u},l)=>(r=bn(r,"modal-footer"),b.jsx(i,{ref:l,className:qt(n,r),...u})));yD.displayName="ModalFooter";const $9=yD,G9={"aria-label":_t.string,onClick:_t.func,variant:_t.oneOf(["white"])},RR=M.forwardRef(({className:n,variant:r,"aria-label":i="Close",...u},l)=>b.jsx("button",{ref:l,type:"button",className:qt("btn-close",r&&`btn-close-${r}`,n),"aria-label":i,...u}));RR.displayName="CloseButton";RR.propTypes=G9;const W9=RR,X9=M.forwardRef(({closeLabel:n="Close",closeVariant:r,closeButton:i=!1,onHide:u,children:l,...d},h)=>{const v=M.useContext(hD),y=gr(()=>{v==null||v.onHide(),u==null||u()});return b.jsxs("div",{ref:h,...d,children:[l,i&&b.jsx(W9,{"aria-label":n,variant:r,onClick:y})]})}),Y9=X9,bD=M.forwardRef(({bsPrefix:n,className:r,closeLabel:i="Close",closeButton:u=!1,...l},d)=>(n=bn(n,"modal-header"),b.jsx(Y9,{ref:d,...l,className:qt(r,n),closeLabel:i,closeButton:u})));bD.displayName="ModalHeader";const Z9=bD,J9=n=>M.forwardRef((r,i)=>b.jsx("div",{...r,ref:i,className:qt(r.className,n)})),q9=J9("h4"),CD=M.forwardRef(({className:n,bsPrefix:r,as:i=q9,...u},l)=>(r=bn(r,"modal-title"),b.jsx(i,{ref:l,className:qt(n,r),...u})));CD.displayName="ModalTitle";const Q9=CD;function K9(n){return b.jsx($p,{...n,timeout:null})}function e4(n){return b.jsx($p,{...n,timeout:null})}const xD=M.forwardRef(({bsPrefix:n,className:r,style:i,dialogClassName:u,contentClassName:l,children:d,dialogAs:h=gD,"data-bs-theme":v,"aria-labelledby":y,"aria-describedby":C,"aria-label":x,show:R=!1,animation:T=!0,backdrop:A=!0,keyboard:N=!0,onEscapeKeyDown:O,onShow:_,onHide:L,container:F,autoFocus:V=!0,enforceFocus:H=!0,restoreFocus:z=!0,restoreFocusOptions:U,onEntered:J,onExit:q,onExiting:Re,onEnter:he,onEntering:ge,onExited:fe,backdropClassName:Oe,manager:Te,...xe},je)=>{const[Le,ne]=M.useState({}),[_e,G]=M.useState(!1),Y=M.useRef(!1),re=M.useRef(!1),ye=M.useRef(null),[Se,Ne]=g0(),le=ps(je,Ne),ve=gr(L),we=P0();n=bn(n,"modal");const Ve=M.useMemo(()=>({onHide:ve}),[ve]);function et(){return Te||z9({isRTL:we})}function tt(xt){if(!tv)return;const Pn=et().getScrollbarWidth()>0,ln=xt.scrollHeight>ev(xt).documentElement.clientHeight;ne({paddingRight:Pn&&!ln?eO():void 0,paddingLeft:!Pn&&ln?eO():void 0})}const ft=gr(()=>{Se&&tt(Se.dialog)});ER(()=>{Sw(window,"resize",ft),ye.current==null||ye.current()});const Ae=()=>{Y.current=!0},It=xt=>{Y.current&&Se&&xt.target===Se.dialog&&(re.current=!0),Y.current=!1},pt=()=>{G(!0),ye.current=nj(Se.dialog,()=>{G(!1)})},Kt=xt=>{xt.target===xt.currentTarget&&pt()},on=xt=>{if(A==="static"){Kt(xt);return}if(re.current||xt.target!==xt.currentTarget){re.current=!1;return}L==null||L()},sn=xt=>{N?O==null||O(xt):(xt.preventDefault(),A==="static"&&pt())},_n=(xt,Pn)=>{xt&&tt(xt),he==null||he(xt,Pn)},Vt=xt=>{ye.current==null||ye.current(),q==null||q(xt)},Cn=(xt,Pn)=>{ge==null||ge(xt,Pn),lR(window,"resize",ft)},Qn=xt=>{xt&&(xt.style.display=""),fe==null||fe(xt),Sw(window,"resize",ft)},Rr=M.useCallback(xt=>b.jsx("div",{...xt,className:qt(`${n}-backdrop`,Oe,!T&&"show")}),[T,Oe,n]),$n={...i,...Le};$n.display="block";const Tr=xt=>b.jsx("div",{role:"dialog",...xt,style:$n,className:qt(r,n,_e&&`${n}-static`,!T&&"show"),onClick:A?on:void 0,onMouseUp:It,"data-bs-theme":v,"aria-label":x,"aria-labelledby":y,"aria-describedby":C,children:b.jsx(h,{...xe,onMouseDown:Ae,className:u,contentClassName:l,children:d})});return b.jsx(hD.Provider,{value:Ve,children:b.jsx(P9,{show:R,ref:le,backdrop:A,container:F,keyboard:!0,autoFocus:V,enforceFocus:H,restoreFocus:z,restoreFocusOptions:U,onEscapeKeyDown:sn,onShow:_,onHide:L,onEnter:_n,onEntering:Cn,onEntered:J,onExit:Vt,onExiting:Re,onExited:Qn,manager:et(),transition:T?K9:void 0,backdropTransition:T?e4:void 0,renderBackdrop:Rr,renderDialog:Tr})})});xD.displayName="Modal";const Ln=Object.assign(xD,{Body:H9,Header:Z9,Title:Q9,Footer:$9,Dialog:gD,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),t4=kr.forwardRef(({children:n,onClick:r},i)=>b.jsx("a",{className:"btn btn-secondary d-flex flex-column justify-content-center flex-grow-1",href:"",ref:i,onClick:u=>{u.preventDefault(),r(u)},children:b.jsx("span",{className:"dropdown-toggle",children:n})}));function n4({requestId:n,grantNumber:r}){const{request:i,toggleActionsModal:u}=ri(n,r),{project:l}=Ji(r||i.grantNumber);if(!i||!l||i.error||l.error)return;const d=Nn.routes.request_action_path(n,"new"),h=i.allowedActions.Renewal?Array.isArray(i.allowedActions.Renewal)?[...i.allowedActions.Renewal]:[i.allowedActions.Renewal]:[];h.sort((C,x)=>C.opportunityId<x.opportunityId?-1:1);const v=[{id:"extension",action:`${d}?action_type=Extension`,isEnabled:"Extension"in i.allowedActions,button:"Request an Extension",enabled:i.usesCredits?b.jsx("p",{children:"Need more time to use your current credits and allocations? You can extend your project's end date up to six months past your funding end date, or up to 12 months at a time for projects not supported by a funding award."}):b.jsx("p",{children:"Need more time to use your current allocations? A one-time extension can extend your project end date by up to six months."}),disabled:b.jsxs("p",{children:["Your project is not currently eligible for an extension of its end date.",i.usesCredits?b.jsxs(b.Fragment,{children:[" ","Extensions can be requested starting 90 days before your project's current end date."]}):null]})},{id:"supplement",action:`${d}?action_type=Supplement`,isEnabled:"Supplement"in i.allowedActions,button:"Request a Supplement",enabled:i.usesCredits?b.jsxs("p",{children:["Need more credits to complete your project? Great news! Your"," ",i.allocationType," project is eligible for a supplement of"," ",{Explore:"200,000",Discover:"750,000",Accelerate:"1,500,000"}[i.allocationType]," ","additional ACCESS credits."]}):b.jsxs("p",{children:["Need more units to complete your research? Great news! Your"," ",i.allocationType," project is eligible for a supplement of additional units."]}),disabled:b.jsxs("p",{children:["Your project is not currently eligible for a supplement of additional"," ",i.usesCredits?"ACCESS Credits":"units","."]})},{id:"renewal",action:h.map(C=>[C.opportunityName,`${Nn.routes.renew_request_path(n)}?opportunity_id=${C.opportunityId}`,"post"]),isEnabled:"Renewal"in i.allowedActions,button:"Request a Renewal",enabled:b.jsxs("p",{children:["Your ",i.allocationType," project can be renewed! The requirements for renewing your project depend on the"," ",b.jsx("a",{href:Nn.routes.project_types_path(),target:"_blank",children:"new project type you select"}),"."]}),disabled:b.jsxs("p",{children:["Your project is not currently eligible for renewal.",i.usesCredits&&b.jsxs(b.Fragment,{children:[" ","Renewals are available starting 30 days before the project's current end date."]}),i.isMaximize&&b.jsxs(b.Fragment,{children:[" ","You can submit a renewal request to the Maximize ACCESS opportunity closest to your project's current end date."]})]})},{id:"help",action:[["Learn How to Manage Allocations",Nn.routes.how_to_path(),"get"],["Open a Help Ticket","https://support.access-ci.org/open-a-ticket","get"]],isEnabled:!0,button:"Request Help",enabled:b.jsxs("p",{children:["Need to change something else about your project or expecting another option? Submit a help ticket that includes"," ",b.jsxs("em",{children:["grant number ",l.grantNumber]})," and a detailed description of the problem."]})}];v.sort((C,x)=>C.isEnabled<x.isEnabled?1:-1);const y=v.map(({id:C,action:x,isEnabled:R,button:T,enabled:A,disabled:N})=>b.jsxs("div",{className:"row",children:[b.jsx("div",{className:"col-sm-4 mb-2 d-grid",children:Array.isArray(x)&&x.length?b.jsxs(Lb,{className:"d-flex flex-column",children:[b.jsx(Lb.Toggle,{as:t4,children:T}),b.jsx(Lb.Menu,{children:x.map(([O,_,L])=>b.jsx(Lb.Item,{href:_,onClick:F=>{L!=="get"&&(F.preventDefault(),F.target.dataset.method=L,$&&$.rails&&$.rails.handleMethod($(F.target)))},children:O},_))})]}):b.jsx("a",{className:`btn btn-secondary d-flex flex-column justify-content-center ${R?"":"disabled"}`,href:R?x:"",children:b.jsx("span",{children:T})})}),b.jsx("div",{className:"col-sm-8 mb-2",children:R?A:N})]},C));return b.jsxs(Ln,{size:"lg",show:i.showActionsModal,onHide:u,children:[b.jsx(Ln.Header,{closeButton:!0,children:b.jsx(Ln.Title,{children:"Manage Your Project"})}),b.jsxs(Ln.Body,{children:[b.jsxs("p",{children:["Please select an action to manage your project"," ",b.jsxs("strong",{children:[l.grantNumber,": ",l.title]}),"."]}),y]})]})}function r4({requestId:n,grantNumber:r}){const{request:i,toggleActionsModal:u,toggleConfirmModal:l}=ri(n,r),{project:d}=Ji(r||i.grantNumber);if(!i||!d||i.error||d.error)return;const h=i.usesCredits?"credits":"units",v=(1-PA(i))*100;return b.jsxs(Ln,{size:"lg",show:i.showConfirmModal,onHide:l,scrollable:!0,children:[b.jsx(Ln.Header,{closeButton:!0,children:b.jsx(Ln.Title,{children:"Consider Requesting an Exchange"})}),b.jsx(Ln.Body,{children:b.jsxs("p",{children:[b.jsxs("strong",{children:[Math.round(v),"% of your allocation is unused."]})," ","Are you sure you want to request more ",h,"? You can exchange"," ",i.usesCredits?"credits for resources or ":""," one resource for another by changing the ",b.jsx("strong",{children:"balance"})," numbers in the table on the previous screen."]})}),b.jsx(Ln.Footer,{children:b.jsxs("div",{className:"d-flex",children:[b.jsx("button",{type:"button",className:"btn btn-primary me-2",onClick:l,children:"Return to Exchange"}),b.jsxs("button",{type:"button",className:"btn btn-secondary",onClick:()=>{l(),u()},children:["Request More ",h]})]})})]})}function a4({requestId:n,grantNumber:r,actionId:i}){const{deleteAction:u,request:l,toggleDeleteModal:d}=ri(n,r);if(!l||l.error)return;const h=l.actions.find(T=>T.actionId==i);if(!h)return;const{deleteStatus:v,isRequest:y}=h,C=v==ea.pending,x=v==ea.error,R=()=>d(i);return b.jsxs(Ln,{show:h.showDeleteModal,onHide:R,scrollable:!0,children:[b.jsx(Ln.Header,{closeButton:!0,children:b.jsx(Ln.Title,{children:"Confirm Deletion"})}),b.jsxs(Ln.Body,{children:[x&&b.jsxs(na,{color:"danger",children:["Deletion of the ",y?"request":"action"," failed."]}),b.jsxs("p",{children:["Are you sure you want to delete"," ",!y&&b.jsxs(b.Fragment,{children:["action"," ",b.jsxs("strong",{children:[h.type,": ",Vp(h.date)]})," ","on"," "]}),"request ",b.jsx("strong",{children:tR(l)}),"? Deletions cannot be undone."]})]}),b.jsx(Ln.Footer,{children:b.jsxs("div",{className:"d-flex",children:[b.jsx("button",{type:"button",className:"btn btn-primary me-2",onClick:R,disabled:C,children:"Cancel"}),b.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>u(i),disabled:C,children:C?"Deleting...":"Delete"})]})})]})}function SD({action:n,request:r,toggleDeleteModal:i}){const u=n.allowedOperations||[],l=[];u.includes("Edit")&&l.push(b.jsx(c0,{href:n.isRequest?Nn.routes.edit_request_path(r.requestId):Nn.routes.edit_request_action_path(r.requestId,n.actionId),icon:"pencil",title:"Edit action"},"edit")),u.includes("Delete")&&l.push(b.jsx(c0,{color:"danger",icon:"trash",onClick:()=>i(n.actionId),title:"Edit action"},"delete"));const d=`${n.type}: ${Vp(n.date)}`;return b.jsxs(b.Fragment,{children:[n.detailAvailable?b.jsx("a",{href:Nn.routes.request_action_path(r.requestId,n.actionId),children:d}):d,l]})}const i4="_grid_15z6r_1",o4="_important_15z6r_32",s4="_input_15z6r_36",l4="_edited_15z6r_40",u4="_disabled_15z6r_48",Bp={grid:i4,important:o4,input:s4,edited:l4,disabled:u4};function c4({column:n,row:r,style:i={}}){const u=n.format?n.format(r[n.key],r):r[n.key],l=["cell"];return n.class&&l.push(n.class),n.rowClass&&l.push(n.rowClass(r)),b.jsx("td",{className:l.join(" "),style:i,children:u})}const f4={text:c4};function Kf({columns:n,rows:r,classes:i,frozenColumns:u=0,minWidth:l,rowClasses:d=[],scrollBehavior:h="smooth",scrollRowIndex:v=0}){const y=M.useRef();M.useLayoutEffect(()=>{if(!y.current)return;const N=y.current.querySelector(`tbody tr:nth-child(${v+1})`);N&&N.scrollIntoView({behavior:h,block:"nearest",inline:"nearest"})},[v,h]);const C=[0];for(let N=0;N<u;N++)C[N+1]=C[N]+(n[N].width||100);const x=(N,O)=>N<u?{position:"sticky",left:`${C[N]}px`,minWidth:`${n[N].width||100}px`,width:`${n[N].width||100}px`,zIndex:O||1}:{},R=n.map((N,O)=>b.jsx("th",{className:N.headerClass||N.class||"",style:x(O,100),children:N.formatHeader?N.formatHeader(N.name,N):N.name},N.key)),T=r.map((N,O)=>{const _=n.map((L,F)=>{const V=f4[L.type||"text"];return b.jsx(V,{column:L,row:N,style:x(F)},L.key)});return b.jsx("tr",{className:d[O]||"",children:_},O)}),A={};return l&&(A.minWidth=l),b.jsx("div",{className:`${Bp.grid} ${i||""}`,ref:y,children:b.jsxs("table",{className:"table table-bordered",style:A,children:[b.jsx("thead",{children:b.jsx("tr",{children:R})}),b.jsx("tbody",{children:T})]})})}function Zp({status:n,title:r}){const i={Active:"primary",Approved:"primary",New:"secondary",Pending:"secondary","Under Review":"secondary","Returned for Corrections":"secondary"}[n]||"dark";return b.jsx("span",{className:`badge text-bg-${i} align-self-center`,title:r,children:n})}const d4=n=>b.jsx("span",{className:n<0?"text-danger":"",children:n===0?"":n.toLocaleString()});function p4({requestId:n,grantNumber:r}){const{request:i,toggleDeleteModal:u}=ri(n,r),{project:l,setRequest:d}=Ji(r||i.grantNumber);if(!i||!l)return;const h=l.requestsList;let v=0;for(;v<h.length&&h[v].requestId!==n;)v++;const y=h[v+1],C=h[v-1],x=(O,_)=>O?b.jsxs("button",{type:"button",className:"btn btn-light btn-sm",onClick:()=>d(O.requestId),children:[_=="prev"?b.jsx("i",{className:"bi bi-chevron-left"}):null,tR(O),_=="next"?b.jsx("i",{className:"bi bi-chevron-right"}):null]}):b.jsx("span",{}),R=new Set,T=[];for(let O of i.actions)for(let _ of O.resources)R.has(_.resourceId)||(R.add(_.resourceId),T.push(_));T.sort(f0);const A=[{key:"action",name:"Action Details",format:(O,_)=>b.jsx(SD,{action:_,request:i,toggleDeleteModal:u})},{key:"status",name:"Status",format:O=>b.jsx(Zp,{status:O})},...T.map(O=>({key:`resource${O.resourceId}`,name:O.name,icon:O.icon,class:"text-end",format:O.isBoolean?_=>_?nR(_):null:d4,formatHeader:(_,L)=>Uf(L,{userGuide:!1})}))],N=i.actions.map(O=>{const _={...O};for(let{resourceId:L}of T)_[`resource${L}`]=0;for(let{resourceId:L,approved:F,requested:V}of O.resources)_[`resource${L}`]=F||V||0;return _});return b.jsxs("div",{className:"history",children:[b.jsx(Kf,{columns:A,rows:N}),b.jsxs("div",{className:"buttons d-flex justify-content-between",children:[x(y,"prev"),x(C,"next")]})]})}function v4({requestId:n,grantNumber:r}){const{request:i,toggleDeleteModal:u}=ri(n,r);if(!i)return;const l=[{key:"type",name:"Action Details",format:(d,h)=>b.jsx(SD,{action:h,request:i,toggleDeleteModal:u})},{key:"status",name:"Status",format:d=>b.jsx(Zp,{status:d})}];if(i.actions&&i.actions.length)return b.jsx(Kf,{rows:i.actions,columns:l})}function im(...n){return n.filter(r=>r!=null).reduce((r,i)=>{if(typeof i!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return r===null?i:function(...l){r.apply(this,l),i.apply(this,l)}},null)}const h4={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function m4(n,r){const i=`offset${n[0].toUpperCase()}${n.slice(1)}`,u=r[i],l=h4[n];return u+parseInt(eu(r,l[0]),10)+parseInt(eu(r,l[1]),10)}const g4={[pc]:"collapse",[h0]:"collapsing",[Jl]:"collapsing",[vc]:"collapse show"},y4=kr.forwardRef(({onEnter:n,onEntering:r,onEntered:i,onExit:u,onExiting:l,className:d,children:h,dimension:v="height",in:y=!1,timeout:C=300,mountOnEnter:x=!1,unmountOnExit:R=!1,appear:T=!1,getDimensionValue:A=m4,...N},O)=>{const _=typeof v=="function"?v():v,L=M.useMemo(()=>im(U=>{U.style[_]="0"},n),[_,n]),F=M.useMemo(()=>im(U=>{const J=`scroll${_[0].toUpperCase()}${_.slice(1)}`;U.style[_]=`${U[J]}px`},r),[_,r]),V=M.useMemo(()=>im(U=>{U.style[_]=null},i),[_,i]),H=M.useMemo(()=>im(U=>{U.style[_]=`${A(_,U)}px`,aj(U)},u),[u,A,_]),z=M.useMemo(()=>im(U=>{U.style[_]=null},l),[_,l]);return b.jsx(ij,{ref:O,addEndListener:rj,...N,"aria-expanded":N.role?y:null,onEnter:L,onEntering:F,onEntered:V,onExit:H,onExiting:z,childRef:h.ref,in:y,timeout:C,mountOnEnter:x,unmountOnExit:R,appear:T,children:(U,J)=>kr.cloneElement(h,{...J,className:qt(d,h.props.className,g4[U],_==="width"&&"collapse-horizontal")})})}),b4=y4;function ED(n,r){return Array.isArray(n)?n.includes(r):n===r}const wD=M.createContext({});wD.displayName="AccordionContext";const H0=wD,RD=M.forwardRef(({as:n="div",bsPrefix:r,className:i,children:u,eventKey:l,...d},h)=>{const{activeEventKey:v}=M.useContext(H0);return r=bn(r,"accordion-collapse"),b.jsx(b4,{ref:h,in:ED(v,l),...d,className:qt(i,r),children:b.jsx(n,{children:M.Children.only(u)})})});RD.displayName="AccordionCollapse";const TD=RD,ID=M.createContext({eventKey:""});ID.displayName="AccordionItemContext";const TR=ID,ND=M.forwardRef(({as:n="div",bsPrefix:r,className:i,onEnter:u,onEntering:l,onEntered:d,onExit:h,onExiting:v,onExited:y,...C},x)=>{r=bn(r,"accordion-body");const{eventKey:R}=M.useContext(TR);return b.jsx(TD,{eventKey:R,onEnter:u,onEntering:l,onEntered:d,onExit:h,onExiting:v,onExited:y,children:b.jsx(n,{ref:x,...C,className:qt(i,r)})})});ND.displayName="AccordionBody";const C4=ND;function x4(n,r){const{activeEventKey:i,onSelect:u,alwaysOpen:l}=M.useContext(H0);return d=>{let h=n===i?null:n;l&&(Array.isArray(i)?i.includes(n)?h=i.filter(v=>v!==n):h=[...i,n]:h=[n]),u==null||u(h,d),r==null||r(d)}}const _D=M.forwardRef(({as:n="button",bsPrefix:r,className:i,onClick:u,...l},d)=>{r=bn(r,"accordion-button");const{eventKey:h}=M.useContext(TR),v=x4(h,u),{activeEventKey:y}=M.useContext(H0);return n==="button"&&(l.type="button"),b.jsx(n,{ref:d,onClick:v,...l,"aria-expanded":Array.isArray(y)?y.includes(h):h===y,className:qt(i,r,!ED(y,h)&&"collapsed")})});_D.displayName="AccordionButton";const OD=_D,AD=M.forwardRef(({as:n="h2",bsPrefix:r,className:i,children:u,onClick:l,...d},h)=>(r=bn(r,"accordion-header"),b.jsx(n,{ref:h,...d,className:qt(i,r),children:b.jsx(OD,{onClick:l,children:u})})));AD.displayName="AccordionHeader";const S4=AD,jD=M.forwardRef(({as:n="div",bsPrefix:r,className:i,eventKey:u,...l},d)=>{r=bn(r,"accordion-item");const h=M.useMemo(()=>({eventKey:u}),[u]);return b.jsx(TR.Provider,{value:h,children:b.jsx(n,{ref:d,...l,className:qt(i,r)})})});jD.displayName="AccordionItem";const E4=jD,DD=M.forwardRef((n,r)=>{const{as:i="div",activeKey:u,bsPrefix:l,className:d,onSelect:h,flush:v,alwaysOpen:y,...C}=F0(n,{activeKey:"onSelect"}),x=bn(l,"accordion"),R=M.useMemo(()=>({activeEventKey:u,onSelect:h,alwaysOpen:y}),[u,h,y]);return b.jsx(H0.Provider,{value:R,children:b.jsx(i,{ref:r,...C,className:qt(d,x,v&&`${x}-flush`)})})});DD.displayName="Accordion";const ss=Object.assign(DD,{Button:OD,Collapse:TD,Item:E4,Header:S4,Body:C4}),_w=2**31-1;function kD(n,r,i){const u=i-Date.now();n.current=u<=_w?setTimeout(r,u):setTimeout(()=>kD(n,r,i),_w)}function w4(){const n=pR(),r=M.useRef();return ER(()=>clearTimeout(r.current)),M.useMemo(()=>{const i=()=>clearTimeout(r.current);function u(l,d=0){n()&&(i(),d<=_w?r.current=setTimeout(l,d):kD(r,l,Date.now()+d))}return{set:u,clear:i,handleRef:r}},[])}const R4=()=>{};function T4(n,r,{disabled:i,clickTrigger:u}={}){const l=r||R4;Uj(n,l,{disabled:i,clickTrigger:u});const d=gr(h=>{dD(h)&&l(h)});M.useEffect(()=>{if(i||n==null)return;const h=ev(Qb(n));let v=(h.defaultView||window).event;const y=Ql(h,"keyup",C=>{if(C===v){v=void 0;return}d(C)});return()=>{y()}},[n,i,d])}const MD=M.forwardRef((n,r)=>{const{flip:i,offset:u,placement:l,containerPadding:d,popperConfig:h={},transition:v,runTransition:y}=n,[C,x]=g0(),[R,T]=g0(),A=ps(x,r),N=Tw(n.container),O=Tw(n.target),[_,L]=M.useState(!n.show),F=zj(O,C,$j({placement:l,enableEvents:!!n.show,containerPadding:d||5,flip:i,offset:u,arrowElement:R,popperConfig:h}));n.show&&_&&L(!1);const V=(...ge)=>{L(!0),n.onExited&&n.onExited(...ge)},H=n.show||!_;if(T4(C,n.onHide,{disabled:!n.rootClose||n.rootCloseDisabled,clickTrigger:n.rootCloseEvent}),!H)return null;const{onExit:z,onExiting:U,onEnter:J,onEntering:q,onEntered:Re}=n;let he=n.children(Object.assign({},F.attributes.popper,{style:F.styles.popper,ref:A}),{popper:F,placement:l,show:!!n.show,arrowProps:Object.assign({},F.attributes.arrow,{style:F.styles.arrow,ref:T})});return he=Iw(v,y,{in:!!n.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:he,onExit:z,onExiting:U,onExited:V,onEnter:J,onEntering:q,onEntered:Re}),N?zf.createPortal(he,N):null});MD.displayName="Overlay";const I4=MD,LD=M.forwardRef(({className:n,bsPrefix:r,as:i="div",...u},l)=>(r=bn(r,"popover-header"),b.jsx(i,{ref:l,className:qt(n,r),...u})));LD.displayName="PopoverHeader";const N4=LD,PD=M.forwardRef(({className:n,bsPrefix:r,as:i="div",...u},l)=>(r=bn(r,"popover-body"),b.jsx(i,{ref:l,className:qt(n,r),...u})));PD.displayName="PopoverBody";const FD=PD;function VD(n,r){let i=n;return n==="left"?i=r?"end":"start":n==="right"&&(i=r?"start":"end"),i}function BD(n="absolute"){return{position:n,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const _4=M.forwardRef(({bsPrefix:n,placement:r="right",className:i,style:u,children:l,body:d,arrowProps:h,hasDoneInitialMeasure:v,popper:y,show:C,...x},R)=>{const T=bn(n,"popover"),A=P0(),[N]=(r==null?void 0:r.split("-"))||[],O=VD(N,A);let _=u;return C&&!v&&(_={...u,...BD(y==null?void 0:y.strategy)}),b.jsxs("div",{ref:R,role:"tooltip",style:_,"x-placement":N,className:qt(i,T,N&&`bs-popover-${O}`),...x,children:[b.jsx("div",{className:"popover-arrow",...h}),d?b.jsx(FD,{children:l}):l]})}),O4=Object.assign(_4,{Header:N4,Body:FD,POPPER_OFFSET:[0,8]}),zD=M.forwardRef(({bsPrefix:n,placement:r="right",className:i,style:u,children:l,arrowProps:d,hasDoneInitialMeasure:h,popper:v,show:y,...C},x)=>{n=bn(n,"tooltip");const R=P0(),[T]=(r==null?void 0:r.split("-"))||[],A=VD(T,R);let N=u;return y&&!h&&(N={...u,...BD(v==null?void 0:v.strategy)}),b.jsxs("div",{ref:x,style:N,role:"tooltip","x-placement":T,className:qt(i,n,`bs-tooltip-${A}`),...C,children:[b.jsx("div",{className:"tooltip-arrow",...d}),b.jsx("div",{className:`${n}-inner`,children:l})]})});zD.displayName="Tooltip";const U0=Object.assign(zD,{TOOLTIP_OFFSET:[0,6]});function A4(n){const r=M.useRef(null),i=bn(void 0,"popover"),u=bn(void 0,"tooltip"),l=M.useMemo(()=>({name:"offset",options:{offset:()=>{if(n)return n;if(r.current){if(Nw(r.current,i))return O4.POPPER_OFFSET;if(Nw(r.current,u))return U0.TOOLTIP_OFFSET}return[0,0]}}}),[n,i,u]);return[r,[l]]}function j4(n,r){const{ref:i}=n,{ref:u}=r;n.ref=i.__wrapped||(i.__wrapped=l=>i(m0(l))),r.ref=u.__wrapped||(u.__wrapped=l=>u(m0(l)))}const HD=M.forwardRef(({children:n,transition:r=$p,popperConfig:i={},rootClose:u=!1,placement:l="top",show:d=!1,...h},v)=>{const y=M.useRef({}),[C,x]=M.useState(null),[R,T]=A4(h.offset),A=ps(v,R),N=r===!0?$p:r||void 0,O=gr(_=>{x(_),i==null||i.onFirstUpdate==null||i.onFirstUpdate(_)});return y0(()=>{C&&h.target&&(y.current.scheduleUpdate==null||y.current.scheduleUpdate())},[C,h.target]),M.useEffect(()=>{d||x(null)},[d]),b.jsx(I4,{...h,ref:A,popperConfig:{...i,modifiers:T.concat(i.modifiers||[]),onFirstUpdate:O},transition:N,rootClose:u,placement:l,show:d,children:(_,{arrowProps:L,popper:F,show:V})=>{var H,z;j4(_,L);const U=F==null?void 0:F.placement,J=Object.assign(y.current,{state:F==null?void 0:F.state,scheduleUpdate:F==null?void 0:F.update,placement:U,outOfBoundaries:(F==null||(H=F.state)==null||(z=H.modifiersData.hide)==null?void 0:z.isReferenceHidden)||!1,strategy:i.strategy}),q=!!C;return typeof n=="function"?n({..._,placement:U,show:V,...!r&&V&&{className:"show"},popper:J,arrowProps:L,hasDoneInitialMeasure:q}):M.cloneElement(n,{..._,placement:U,arrowProps:L,popper:J,hasDoneInitialMeasure:q,className:qt(n.props.className,!r&&V&&"show"),style:{...n.props.style,..._.style}})}})});HD.displayName="Overlay";const UD=HD;var D4={};function k4(n){return n&&typeof n=="object"?n:{show:n,hide:n}}function rO(n,r,i){const[u]=r,l=u.currentTarget,d=u.relatedTarget||u.nativeEvent[i];(!d||d!==l)&&!xm(l,d)&&n(...r)}_t.oneOf(["click","hover","focus"]);const M4=({trigger:n=["hover","focus"],overlay:r,children:i,popperConfig:u={},show:l,defaultShow:d=!1,onToggle:h,delay:v,placement:y,flip:C=y&&y.indexOf("auto")!==-1,...x})=>{const R=M.useRef(null),T=ps(R,i.ref),A=w4(),N=M.useRef(""),[O,_]=vj(l,d,h),L=k4(v),{onFocus:F,onBlur:V,onClick:H}=typeof i!="function"?M.Children.only(i).props:{},z=xe=>{T(m0(xe))},U=M.useCallback(()=>{if(A.clear(),N.current="show",!L.show){_(!0);return}A.set(()=>{N.current==="show"&&_(!0)},L.show)},[L.show,_,A]),J=M.useCallback(()=>{if(A.clear(),N.current="hide",!L.hide){_(!1);return}A.set(()=>{N.current==="hide"&&_(!1)},L.hide)},[L.hide,_,A]),q=M.useCallback((...xe)=>{U(),F==null||F(...xe)},[U,F]),Re=M.useCallback((...xe)=>{J(),V==null||V(...xe)},[J,V]),he=M.useCallback((...xe)=>{_(!O),H==null||H(...xe)},[H,_,O]),ge=M.useCallback((...xe)=>{rO(U,xe,"fromElement")},[U]),fe=M.useCallback((...xe)=>{rO(J,xe,"toElement")},[J]),Oe=n==null?[]:[].concat(n),Te={ref:z};return Oe.indexOf("click")!==-1&&(Te.onClick=he),Oe.indexOf("focus")!==-1&&(Te.onFocus=q,Te.onBlur=Re),Oe.indexOf("hover")!==-1&&(D4.NODE_ENV!=="production"&&xR(Oe.length>1,'[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'),Te.onMouseOver=ge,Te.onMouseOut=fe),b.jsxs(b.Fragment,{children:[typeof i=="function"?i(Te):M.cloneElement(i,Te),b.jsx(UD,{...x,show:O,onHide:J,flip:C,placement:y,popperConfig:u,target:R.current,children:r})]})},IR=M4;function L4({requestId:n,grantNumber:r}){const{request:i}=ri(n,r),{project:u}=Ji(r||i.grantNumber),{setTab:l}=Ji(r||i.grantNumber);if(!i||!u)return;let d;const h={};for(let T of u.users||[])for(let A of T.resourceIds)h[A]=h[A]||0,h[A]+=1;const v=(i.resources||[]).filter(T=>T.isCredit?(d=T,!1):T.allocated>0).map((T,A)=>({...T,userCount:h[T.resourceId]||0,color:vw[A%vw.length]})),y=d?d.allocated:0,C="Exchange"in i.allowedActions,x=i.exchangeActionId!==null,R=[{key:"name",name:"Resource",format:(T,A)=>Uf(A)},{key:"isActive",name:"Status",format:T=>b.jsx(Zp,{status:T?"Active":"Inactive"})},{key:"used",name:"Balance",class:"position-relative",format:(T,A)=>{if(A.isBoolean)return nR(A.allocated);const N=A.allocated-T,O=Math.max(N,0)*100/A.allocated;return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:`usage bg-${A.color}`,style:{width:`${Math.min(O,100)}%`}}),ni(N,{abbreviate:!0})," of"," ",ni(A.allocated,{abbreviate:!0})," ",A.unit," ","remaining (",Math.round(O),"%)"]})}},{key:"endDate",name:"End Date",format:T=>Vp(T)}];return u.isManager&&R.push({key:"userCount",name:"Users",class:"text-end",format:ni}),u.currentUser&&R.push({key:"resourceUsername",name:"My Username",format:(T,A)=>{const N=u.currentUser.resourceUsernames[A.resourceId];if(N)return N;if(u.currentUser.resourceAccountPendingIds.includes(A.resourceId))return b.jsx(Zp,{status:"Pending",title:"Creation of your account by the resource provider is pending."});if(u.currentUser.resourceIds.includes(A.resourceId)||!A.isActive)return b.jsx(b.Fragment,{children:"—"});if(u.isManager)return b.jsx("a",{href:"#",onClick:_=>{_.preventDefault(),l("users")},children:"Grant access"});const O=b.jsxs(U0,{children:["Please contact ",rR(u)," to request access to this resource."]});return b.jsx(IR,{overlay:O,children:b.jsx("a",{href:"#",onClick:_=>{_.preventDefault()},children:"Request access"})})}}),b.jsxs("div",{className:"overview",children:[C&&!x&&y>Nn.creditAlertThreshold?b.jsxs("button",{onClick:()=>l("resources"),className:"alert alert-info d-flex justify-content-between align-items-center w-100",children:[b.jsxs("span",{children:[b.jsxs("span",{className:"fs-3",children:[gc(Nn.resourceTypeIcons[d.icon])," ",ni(y)]})," ",d.unit," available"]}),b.jsxs("span",{className:"align-middle d-flex align-items-center",children:["Exchange credits for resources!"," ",b.jsx("span",{className:"fs-3",children:gc("chevron-right")})]})]}):null,v.length?b.jsx(Kf,{columns:R,rows:v}):null]})}const P4=[{key:"role",name:"Role",format:n=>b.jsxs(b.Fragment,{children:[gc(Nn.roleIcons[n])," ",n]})},{key:"users",name:"Users",format:n=>{const r=n.slice(0,3);return n.length>4&&(r[2]=`${ni(n.length-3)} others`),r.map((i,u)=>{const l=r.length-u;return`${i}${l>2?",":l==2&&r.length>1?" and":""}`}).join(" ")}}],F4=({requestId:n,grantNumber:r})=>{const{project:i}=Ji(r);if(!i)return;const u=L0.map(({role:l,name:d})=>({role:d,users:(i.users||[]).filter(h=>h.role===l).map(h=>`${h.firstName} ${h.lastName}`)})).filter(l=>l.users.length>0);return u.length?b.jsx(Kf,{rows:u,columns:P4}):null};function V4({requestId:n,grantNumber:r}){const{request:i}=ri(n,r),{project:u,username:l}=Ji(r||i.grantNumber);if(!(!i||!u||i.error||u.error)&&i)return b.jsxs("div",{className:"overview",children:[b.jsx(L4,{requestId:n,grantNumber:r}),u.isManager?b.jsxs("div",{className:"row",children:[b.jsx("div",{className:"col-lg-6",children:b.jsx(F4,{requestId:n,grantNumber:r})}),b.jsx("div",{className:"col-lg-6",children:b.jsx(v4,{requestId:n})})]}):null]})}function Zf(n){"@babel/helpers - typeof";return Zf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Zf(n)}function B4(n,r){if(Zf(n)!="object"||!n)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var u=i.call(n,r||"default");if(Zf(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}function $D(n){var r=B4(n,"string");return Zf(r)=="symbol"?r:String(r)}function Pp(n,r,i){return r=$D(r),r in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,n}function aO(n,r){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(n);r&&(u=u.filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable})),i.push.apply(i,u)}return i}function yt(n){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?aO(Object(i),!0).forEach(function(u){Pp(n,u,i[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):aO(Object(i)).forEach(function(u){Object.defineProperty(n,u,Object.getOwnPropertyDescriptor(i,u))})}return n}function z4(n){if(Array.isArray(n))return n}function H4(n,r){var i=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(i!=null){var u,l,d,h,v=[],y=!0,C=!1;try{if(d=(i=i.call(n)).next,r===0){if(Object(i)!==i)return;y=!1}else for(;!(y=(u=d.call(i)).done)&&(v.push(u.value),v.length!==r);y=!0);}catch(x){C=!0,l=x}finally{try{if(!y&&i.return!=null&&(h=i.return(),Object(h)!==h))return}finally{if(C)throw l}}return v}}function Ow(n,r){(r==null||r>n.length)&&(r=n.length);for(var i=0,u=new Array(r);i<r;i++)u[i]=n[i];return u}function GD(n,r){if(n){if(typeof n=="string")return Ow(n,r);var i=Object.prototype.toString.call(n).slice(8,-1);if(i==="Object"&&n.constructor&&(i=n.constructor.name),i==="Map"||i==="Set")return Array.from(n);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Ow(n,r)}}function U4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
294
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ta(n,r){return z4(n)||H4(n,r)||GD(n,r)||U4()}function rl(n,r){if(n==null)return{};var i=sR(n,r),u,l;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(l=0;l<d.length;l++)u=d[l],!(r.indexOf(u)>=0)&&Object.prototype.propertyIsEnumerable.call(n,u)&&(i[u]=n[u])}return i}var $4=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function WD(n){var r=n.defaultInputValue,i=r===void 0?"":r,u=n.defaultMenuIsOpen,l=u===void 0?!1:u,d=n.defaultValue,h=d===void 0?null:d,v=n.inputValue,y=n.menuIsOpen,C=n.onChange,x=n.onInputChange,R=n.onMenuClose,T=n.onMenuOpen,A=n.value,N=rl(n,$4),O=M.useState(v!==void 0?v:i),_=ta(O,2),L=_[0],F=_[1],V=M.useState(y!==void 0?y:l),H=ta(V,2),z=H[0],U=H[1],J=M.useState(A!==void 0?A:h),q=ta(J,2),Re=q[0],he=q[1],ge=M.useCallback(function(ne,_e){typeof C=="function"&&C(ne,_e),he(ne)},[C]),fe=M.useCallback(function(ne,_e){var G;typeof x=="function"&&(G=x(ne,_e)),F(G!==void 0?G:ne)},[x]),Oe=M.useCallback(function(){typeof T=="function"&&T(),U(!0)},[T]),Te=M.useCallback(function(){typeof R=="function"&&R(),U(!1)},[R]),xe=v!==void 0?v:L,je=y!==void 0?y:z,Le=A!==void 0?A:Re;return yt(yt({},N),{},{inputValue:xe,menuIsOpen:je,onChange:ge,onInputChange:fe,onMenuClose:Te,onMenuOpen:Oe,value:Le})}function G4(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}function iO(n,r){for(var i=0;i<r.length;i++){var u=r[i];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(n,$D(u.key),u)}}function W4(n,r,i){return r&&iO(n.prototype,r),i&&iO(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n}function X4(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),r&&v0(n,r)}function C0(n){return C0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},C0(n)}function XD(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(XD=function(){return!!n})()}function Y4(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Z4(n,r){if(r&&(Zf(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Y4(n)}function J4(n){var r=XD();return function(){var u=C0(n),l;if(r){var d=C0(this).constructor;l=Reflect.construct(u,arguments,d)}else l=u.apply(this,arguments);return Z4(this,l)}}function q4(n){if(Array.isArray(n))return Ow(n)}function Q4(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function K4(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
295
295
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NR(n){return q4(n)||Q4(n)||GD(n)||K4()}var Fb={};function eW(n){if(n.sheet)return n.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===n)return document.styleSheets[r]}function tW(n){var r=document.createElement("style");return r.setAttribute("data-emotion",n.key),n.nonce!==void 0&&r.setAttribute("nonce",n.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var nW=function(){function n(i){var u=this;this._insertTag=function(l){var d;u.tags.length===0?u.insertionPoint?d=u.insertionPoint.nextSibling:u.prepend?d=u.container.firstChild:d=u.before:d=u.tags[u.tags.length-1].nextSibling,u.container.insertBefore(l,d),u.tags.push(l)},this.isSpeedy=i.speedy===void 0?Fb.NODE_ENV==="production":i.speedy,this.tags=[],this.ctr=0,this.nonce=i.nonce,this.key=i.key,this.container=i.container,this.prepend=i.prepend,this.insertionPoint=i.insertionPoint,this.before=null}var r=n.prototype;return r.hydrate=function(u){u.forEach(this._insertTag)},r.insert=function(u){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(tW(this));var l=this.tags[this.tags.length-1];if(Fb.NODE_ENV!=="production"){var d=u.charCodeAt(0)===64&&u.charCodeAt(1)===105;d&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
|
296
|
-
`+u+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!d}if(this.isSpeedy){var h=eW(l);try{h.insertRule(u,h.cssRules.length)}catch(v){Fb.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(u)&&console.error('There was a problem inserting the following rule: "'+u+'"',v)}}else l.appendChild(document.createTextNode(u));this.ctr++},r.flush=function(){this.tags.forEach(function(u){return u.parentNode&&u.parentNode.removeChild(u)}),this.tags=[],this.ctr=0,Fb.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},n}(),Va="-ms-",x0="-moz-",gn="-webkit-",_R="comm",OR="rule",AR="decl",rW="@import",YD="@keyframes",aW="@layer",iW=Math.abs,$0=String.fromCharCode,oW=Object.assign;function sW(n,r){return ma(n,0)^45?(((r<<2^ma(n,0))<<2^ma(n,1))<<2^ma(n,2))<<2^ma(n,3):0}function ZD(n){return n.trim()}function lW(n,r){return(n=r.exec(n))?n[0]:n}function yn(n,r,i){return n.replace(r,i)}function Aw(n,r){return n.indexOf(r)}function ma(n,r){return n.charCodeAt(r)|0}function Sm(n,r,i){return n.slice(r,i)}function Ks(n){return n.length}function jR(n){return n.length}function Vb(n,r){return r.push(n),n}function uW(n,r){return n.map(r).join("")}var G0=1,Jp=1,JD=0,ji=0,Dr=0,rv="";function W0(n,r,i,u,l,d,h){return{value:n,root:r,parent:i,type:u,props:l,children:d,line:G0,column:Jp,length:h,return:""}}function om(n,r){return oW(W0("",null,null,"",null,null,0),n,{length:-n.length},r)}function cW(){return Dr}function fW(){return Dr=ji>0?ma(rv,--ji):0,Jp--,Dr===10&&(Jp=1,G0--),Dr}function Xi(){return Dr=ji<JD?ma(rv,ji++):0,Jp++,Dr===10&&(Jp=1,G0++),Dr}function nl(){return ma(rv,ji)}function Kb(){return ji}function km(n,r){return Sm(rv,n,r)}function Em(n){switch(n){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function qD(n){return G0=Jp=1,JD=Ks(rv=n),ji=0,[]}function QD(n){return rv="",n}function e0(n){return ZD(km(ji-1,jw(n===91?n+2:n===40?n+1:n)))}function dW(n){for(;(Dr=nl())&&Dr<33;)Xi();return Em(n)>2||Em(Dr)>3?"":" "}function pW(n,r){for(;--r&&Xi()&&!(Dr<48||Dr>102||Dr>57&&Dr<65||Dr>70&&Dr<97););return km(n,Kb()+(r<6&&nl()==32&&Xi()==32))}function jw(n){for(;Xi();)switch(Dr){case n:return ji;case 34:case 39:n!==34&&n!==39&&jw(Dr);break;case 40:n===41&&jw(n);break;case 92:Xi();break}return ji}function vW(n,r){for(;Xi()&&n+Dr!==57;)if(n+Dr===84&&nl()===47)break;return"/*"+km(r,ji-1)+"*"+$0(n===47?n:Xi())}function hW(n){for(;!Em(nl());)Xi();return km(n,ji)}function mW(n){return QD(t0("",null,null,null,[""],n=qD(n),0,[0],n))}function t0(n,r,i,u,l,d,h,v,y){for(var C=0,x=0,w=h,T=0,A=0,N=0,O=1,_=1,L=1,F=0,V="",H=l,z=d,U=u,J=V;_;)switch(N=F,F=Xi()){case 40:if(N!=108&&ma(J,w-1)==58){Aw(J+=yn(e0(F),"&","&\f"),"&\f")!=-1&&(L=-1);break}case 34:case 39:case 91:J+=e0(F);break;case 9:case 10:case 13:case 32:J+=dW(N);break;case 92:J+=pW(Kb()-1,7);continue;case 47:switch(nl()){case 42:case 47:Vb(gW(vW(Xi(),Kb()),r,i),y);break;default:J+="/"}break;case 123*O:v[C++]=Ks(J)*L;case 125*O:case 59:case 0:switch(F){case 0:case 125:_=0;case 59+x:L==-1&&(J=yn(J,/\f/g,"")),A>0&&Ks(J)-w&&Vb(A>32?sO(J+";",u,i,w-1):sO(yn(J," ","")+";",u,i,w-2),y);break;case 59:J+=";";default:if(Vb(U=oO(J,r,i,C,x,l,v,V,H=[],z=[],w),d),F===123)if(x===0)t0(J,r,U,U,H,d,w,v,z);else switch(T===99&&ma(J,3)===110?100:T){case 100:case 108:case 109:case 115:t0(n,U,U,u&&Vb(oO(n,U,U,0,0,l,v,V,l,H=[],w),z),l,z,w,v,u?H:z);break;default:t0(J,U,U,U,[""],z,0,v,z)}}C=x=A=0,O=L=1,V=J="",w=h;break;case 58:w=1+Ks(J),A=N;default:if(O<1){if(F==123)--O;else if(F==125&&O++==0&&fW()==125)continue}switch(J+=$0(F),F*O){case 38:L=x>0?1:(J+="\f",-1);break;case 44:v[C++]=(Ks(J)-1)*L,L=1;break;case 64:nl()===45&&(J+=e0(Xi())),T=nl(),x=w=Ks(V=J+=hW(Kb())),F++;break;case 45:N===45&&Ks(J)==2&&(O=0)}}return d}function oO(n,r,i,u,l,d,h,v,y,C,x){for(var w=l-1,T=l===0?d:[""],A=jR(T),N=0,O=0,_=0;N<u;++N)for(var L=0,F=Sm(n,w+1,w=iW(O=h[N])),V=n;L<A;++L)(V=ZD(O>0?T[L]+" "+F:yn(F,/&\f/g,T[L])))&&(y[_++]=V);return W0(n,r,i,l===0?OR:v,y,C,x)}function gW(n,r,i){return W0(n,r,i,_R,$0(cW()),Sm(n,2,-2),0)}function sO(n,r,i,u){return W0(n,r,i,AR,Sm(n,0,u),Sm(n,u+1,-1),u)}function zp(n,r){for(var i="",u=jR(n),l=0;l<u;l++)i+=r(n[l],l,n,r)||"";return i}function yW(n,r,i,u){switch(n.type){case aW:if(n.children.length)break;case rW:case AR:return n.return=n.return||n.value;case _R:return"";case YD:return n.return=n.value+"{"+zp(n.children,u)+"}";case OR:n.value=n.props.join(",")}return Ks(i=zp(n.children,u))?n.return=n.value+"{"+i+"}":""}function bW(n){var r=jR(n);return function(i,u,l,d){for(var h="",v=0;v<r;v++)h+=n[v](i,u,l,d)||"";return h}}function CW(n){return function(r){r.root||(r=r.return)&&n(r)}}function xW(n){var r=Object.create(null);return function(i){return r[i]===void 0&&(r[i]=n(i)),r[i]}}var sm={},SW=function(r,i,u){for(var l=0,d=0;l=d,d=nl(),l===38&&d===12&&(i[u]=1),!Em(d);)Xi();return km(r,ji)},EW=function(r,i){var u=-1,l=44;do switch(Em(l)){case 0:l===38&&nl()===12&&(i[u]=1),r[u]+=SW(ji-1,i,u);break;case 2:r[u]+=e0(l);break;case 4:if(l===44){r[++u]=nl()===58?"&\f":"",i[u]=r[u].length;break}default:r[u]+=$0(l)}while(l=Xi());return r},wW=function(r,i){return QD(EW(qD(r),i))},lO=new WeakMap,RW=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var i=r.value,u=r.parent,l=r.column===u.column&&r.line===u.line;u.type!=="rule";)if(u=u.parent,!u)return;if(!(r.props.length===1&&i.charCodeAt(0)!==58&&!lO.get(u))&&!l){lO.set(r,!0);for(var d=[],h=wW(i,d),v=u.props,y=0,C=0;y<h.length;y++)for(var x=0;x<v.length;x++,C++)r.props[C]=d[y]?h[y].replace(/&\f/g,v[x]):v[x]+" "+h[y]}}},TW=function(r){if(r.type==="decl"){var i=r.value;i.charCodeAt(0)===108&&i.charCodeAt(2)===98&&(r.return="",r.value="")}},IW="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",NW=function(r){return r.type==="comm"&&r.children.indexOf(IW)>-1},_W=function(r){return function(i,u,l){if(!(i.type!=="rule"||r.compat)){var d=i.value.match(/(:first|:nth|:nth-last)-child/g);if(d){for(var h=!!i.parent,v=h?i.parent.children:l,y=v.length-1;y>=0;y--){var C=v[y];if(C.line<i.line)break;if(C.column<i.column){if(NW(C))return;break}}d.forEach(function(x){console.error('The pseudo class "'+x+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+x.split("-child")[0]+'-of-type".')})}}}},KD=function(r){return r.type.charCodeAt(1)===105&&r.type.charCodeAt(0)===64},OW=function(r,i){for(var u=r-1;u>=0;u--)if(!KD(i[u]))return!0;return!1},uO=function(r){r.type="",r.value="",r.return="",r.children="",r.props=""},AW=function(r,i,u){KD(r)&&(r.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),uO(r)):OW(i,u)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),uO(r)))};function ek(n,r){switch(sW(n,r)){case 5103:return gn+"print-"+n+n;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return gn+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return gn+n+x0+n+Va+n+n;case 6828:case 4268:return gn+n+Va+n+n;case 6165:return gn+n+Va+"flex-"+n+n;case 5187:return gn+n+yn(n,/(\w+).+(:[^]+)/,gn+"box-$1$2"+Va+"flex-$1$2")+n;case 5443:return gn+n+Va+"flex-item-"+yn(n,/flex-|-self/,"")+n;case 4675:return gn+n+Va+"flex-line-pack"+yn(n,/align-content|flex-|-self/,"")+n;case 5548:return gn+n+Va+yn(n,"shrink","negative")+n;case 5292:return gn+n+Va+yn(n,"basis","preferred-size")+n;case 6060:return gn+"box-"+yn(n,"-grow","")+gn+n+Va+yn(n,"grow","positive")+n;case 4554:return gn+yn(n,/([^-])(transform)/g,"$1"+gn+"$2")+n;case 6187:return yn(yn(yn(n,/(zoom-|grab)/,gn+"$1"),/(image-set)/,gn+"$1"),n,"")+n;case 5495:case 3959:return yn(n,/(image-set\([^]*)/,gn+"$1$`$1");case 4968:return yn(yn(n,/(.+:)(flex-)?(.*)/,gn+"box-pack:$3"+Va+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+gn+n+n;case 4095:case 3583:case 4068:case 2532:return yn(n,/(.+)-inline(.+)/,gn+"$1$2")+n;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ks(n)-1-r>6)switch(ma(n,r+1)){case 109:if(ma(n,r+4)!==45)break;case 102:return yn(n,/(.+:)(.+)-([^]+)/,"$1"+gn+"$2-$3$1"+x0+(ma(n,r+3)==108?"$3":"$2-$3"))+n;case 115:return~Aw(n,"stretch")?ek(yn(n,"stretch","fill-available"),r)+n:n}break;case 4949:if(ma(n,r+1)!==115)break;case 6444:switch(ma(n,Ks(n)-3-(~Aw(n,"!important")&&10))){case 107:return yn(n,":",":"+gn)+n;case 101:return yn(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+gn+(ma(n,14)===45?"inline-":"")+"box$3$1"+gn+"$2$3$1"+Va+"$2box$3")+n}break;case 5936:switch(ma(n,r+11)){case 114:return gn+n+Va+yn(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return gn+n+Va+yn(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return gn+n+Va+yn(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return gn+n+Va+n+n}return n}var jW=function(r,i,u,l){if(r.length>-1&&!r.return)switch(r.type){case AR:r.return=ek(r.value,r.length);break;case YD:return zp([om(r,{value:yn(r.value,"@","@"+gn)})],l);case OR:if(r.length)return uW(r.props,function(d){switch(lW(d,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return zp([om(r,{props:[yn(d,/:(read-\w+)/,":"+x0+"$1")]})],l);case"::placeholder":return zp([om(r,{props:[yn(d,/:(plac\w+)/,":"+gn+"input-$1")]}),om(r,{props:[yn(d,/:(plac\w+)/,":"+x0+"$1")]}),om(r,{props:[yn(d,/:(plac\w+)/,Va+"input-$1")]})],l)}return""})}},DW=[jW],kW=function(r){var i=r.key;if(sm.NODE_ENV!=="production"&&!i)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
297
|
-
If multiple caches share the same key they might "fight" for each other's style elements.`);if(i==="css"){var u=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(u,function(O){var _=O.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(O),O.setAttribute("data-s",""))})}var l=r.stylisPlugins||DW;if(sm.NODE_ENV!=="production"&&/[^a-z-]/.test(i))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+i+'" was passed');var d={},h,v=[];h=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(O){for(var _=O.getAttribute("data-emotion").split(" "),L=1;L<_.length;L++)d[_[L]]=!0;v.push(O)});var y,C=[RW,TW];sm.NODE_ENV!=="production"&&C.push(_W({get compat(){return N.compat}}),AW);{var x,
|
|
296
|
+
`+u+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!d}if(this.isSpeedy){var h=eW(l);try{h.insertRule(u,h.cssRules.length)}catch(v){Fb.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(u)&&console.error('There was a problem inserting the following rule: "'+u+'"',v)}}else l.appendChild(document.createTextNode(u));this.ctr++},r.flush=function(){this.tags.forEach(function(u){return u.parentNode&&u.parentNode.removeChild(u)}),this.tags=[],this.ctr=0,Fb.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},n}(),Va="-ms-",x0="-moz-",gn="-webkit-",_R="comm",OR="rule",AR="decl",rW="@import",YD="@keyframes",aW="@layer",iW=Math.abs,$0=String.fromCharCode,oW=Object.assign;function sW(n,r){return ma(n,0)^45?(((r<<2^ma(n,0))<<2^ma(n,1))<<2^ma(n,2))<<2^ma(n,3):0}function ZD(n){return n.trim()}function lW(n,r){return(n=r.exec(n))?n[0]:n}function yn(n,r,i){return n.replace(r,i)}function Aw(n,r){return n.indexOf(r)}function ma(n,r){return n.charCodeAt(r)|0}function Sm(n,r,i){return n.slice(r,i)}function Ks(n){return n.length}function jR(n){return n.length}function Vb(n,r){return r.push(n),n}function uW(n,r){return n.map(r).join("")}var G0=1,Jp=1,JD=0,ji=0,Dr=0,rv="";function W0(n,r,i,u,l,d,h){return{value:n,root:r,parent:i,type:u,props:l,children:d,line:G0,column:Jp,length:h,return:""}}function om(n,r){return oW(W0("",null,null,"",null,null,0),n,{length:-n.length},r)}function cW(){return Dr}function fW(){return Dr=ji>0?ma(rv,--ji):0,Jp--,Dr===10&&(Jp=1,G0--),Dr}function Xi(){return Dr=ji<JD?ma(rv,ji++):0,Jp++,Dr===10&&(Jp=1,G0++),Dr}function nl(){return ma(rv,ji)}function Kb(){return ji}function km(n,r){return Sm(rv,n,r)}function Em(n){switch(n){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function qD(n){return G0=Jp=1,JD=Ks(rv=n),ji=0,[]}function QD(n){return rv="",n}function e0(n){return ZD(km(ji-1,jw(n===91?n+2:n===40?n+1:n)))}function dW(n){for(;(Dr=nl())&&Dr<33;)Xi();return Em(n)>2||Em(Dr)>3?"":" "}function pW(n,r){for(;--r&&Xi()&&!(Dr<48||Dr>102||Dr>57&&Dr<65||Dr>70&&Dr<97););return km(n,Kb()+(r<6&&nl()==32&&Xi()==32))}function jw(n){for(;Xi();)switch(Dr){case n:return ji;case 34:case 39:n!==34&&n!==39&&jw(Dr);break;case 40:n===41&&jw(n);break;case 92:Xi();break}return ji}function vW(n,r){for(;Xi()&&n+Dr!==57;)if(n+Dr===84&&nl()===47)break;return"/*"+km(r,ji-1)+"*"+$0(n===47?n:Xi())}function hW(n){for(;!Em(nl());)Xi();return km(n,ji)}function mW(n){return QD(t0("",null,null,null,[""],n=qD(n),0,[0],n))}function t0(n,r,i,u,l,d,h,v,y){for(var C=0,x=0,R=h,T=0,A=0,N=0,O=1,_=1,L=1,F=0,V="",H=l,z=d,U=u,J=V;_;)switch(N=F,F=Xi()){case 40:if(N!=108&&ma(J,R-1)==58){Aw(J+=yn(e0(F),"&","&\f"),"&\f")!=-1&&(L=-1);break}case 34:case 39:case 91:J+=e0(F);break;case 9:case 10:case 13:case 32:J+=dW(N);break;case 92:J+=pW(Kb()-1,7);continue;case 47:switch(nl()){case 42:case 47:Vb(gW(vW(Xi(),Kb()),r,i),y);break;default:J+="/"}break;case 123*O:v[C++]=Ks(J)*L;case 125*O:case 59:case 0:switch(F){case 0:case 125:_=0;case 59+x:L==-1&&(J=yn(J,/\f/g,"")),A>0&&Ks(J)-R&&Vb(A>32?sO(J+";",u,i,R-1):sO(yn(J," ","")+";",u,i,R-2),y);break;case 59:J+=";";default:if(Vb(U=oO(J,r,i,C,x,l,v,V,H=[],z=[],R),d),F===123)if(x===0)t0(J,r,U,U,H,d,R,v,z);else switch(T===99&&ma(J,3)===110?100:T){case 100:case 108:case 109:case 115:t0(n,U,U,u&&Vb(oO(n,U,U,0,0,l,v,V,l,H=[],R),z),l,z,R,v,u?H:z);break;default:t0(J,U,U,U,[""],z,0,v,z)}}C=x=A=0,O=L=1,V=J="",R=h;break;case 58:R=1+Ks(J),A=N;default:if(O<1){if(F==123)--O;else if(F==125&&O++==0&&fW()==125)continue}switch(J+=$0(F),F*O){case 38:L=x>0?1:(J+="\f",-1);break;case 44:v[C++]=(Ks(J)-1)*L,L=1;break;case 64:nl()===45&&(J+=e0(Xi())),T=nl(),x=R=Ks(V=J+=hW(Kb())),F++;break;case 45:N===45&&Ks(J)==2&&(O=0)}}return d}function oO(n,r,i,u,l,d,h,v,y,C,x){for(var R=l-1,T=l===0?d:[""],A=jR(T),N=0,O=0,_=0;N<u;++N)for(var L=0,F=Sm(n,R+1,R=iW(O=h[N])),V=n;L<A;++L)(V=ZD(O>0?T[L]+" "+F:yn(F,/&\f/g,T[L])))&&(y[_++]=V);return W0(n,r,i,l===0?OR:v,y,C,x)}function gW(n,r,i){return W0(n,r,i,_R,$0(cW()),Sm(n,2,-2),0)}function sO(n,r,i,u){return W0(n,r,i,AR,Sm(n,0,u),Sm(n,u+1,-1),u)}function zp(n,r){for(var i="",u=jR(n),l=0;l<u;l++)i+=r(n[l],l,n,r)||"";return i}function yW(n,r,i,u){switch(n.type){case aW:if(n.children.length)break;case rW:case AR:return n.return=n.return||n.value;case _R:return"";case YD:return n.return=n.value+"{"+zp(n.children,u)+"}";case OR:n.value=n.props.join(",")}return Ks(i=zp(n.children,u))?n.return=n.value+"{"+i+"}":""}function bW(n){var r=jR(n);return function(i,u,l,d){for(var h="",v=0;v<r;v++)h+=n[v](i,u,l,d)||"";return h}}function CW(n){return function(r){r.root||(r=r.return)&&n(r)}}function xW(n){var r=Object.create(null);return function(i){return r[i]===void 0&&(r[i]=n(i)),r[i]}}var sm={},SW=function(r,i,u){for(var l=0,d=0;l=d,d=nl(),l===38&&d===12&&(i[u]=1),!Em(d);)Xi();return km(r,ji)},EW=function(r,i){var u=-1,l=44;do switch(Em(l)){case 0:l===38&&nl()===12&&(i[u]=1),r[u]+=SW(ji-1,i,u);break;case 2:r[u]+=e0(l);break;case 4:if(l===44){r[++u]=nl()===58?"&\f":"",i[u]=r[u].length;break}default:r[u]+=$0(l)}while(l=Xi());return r},wW=function(r,i){return QD(EW(qD(r),i))},lO=new WeakMap,RW=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var i=r.value,u=r.parent,l=r.column===u.column&&r.line===u.line;u.type!=="rule";)if(u=u.parent,!u)return;if(!(r.props.length===1&&i.charCodeAt(0)!==58&&!lO.get(u))&&!l){lO.set(r,!0);for(var d=[],h=wW(i,d),v=u.props,y=0,C=0;y<h.length;y++)for(var x=0;x<v.length;x++,C++)r.props[C]=d[y]?h[y].replace(/&\f/g,v[x]):v[x]+" "+h[y]}}},TW=function(r){if(r.type==="decl"){var i=r.value;i.charCodeAt(0)===108&&i.charCodeAt(2)===98&&(r.return="",r.value="")}},IW="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",NW=function(r){return r.type==="comm"&&r.children.indexOf(IW)>-1},_W=function(r){return function(i,u,l){if(!(i.type!=="rule"||r.compat)){var d=i.value.match(/(:first|:nth|:nth-last)-child/g);if(d){for(var h=!!i.parent,v=h?i.parent.children:l,y=v.length-1;y>=0;y--){var C=v[y];if(C.line<i.line)break;if(C.column<i.column){if(NW(C))return;break}}d.forEach(function(x){console.error('The pseudo class "'+x+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+x.split("-child")[0]+'-of-type".')})}}}},KD=function(r){return r.type.charCodeAt(1)===105&&r.type.charCodeAt(0)===64},OW=function(r,i){for(var u=r-1;u>=0;u--)if(!KD(i[u]))return!0;return!1},uO=function(r){r.type="",r.value="",r.return="",r.children="",r.props=""},AW=function(r,i,u){KD(r)&&(r.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),uO(r)):OW(i,u)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),uO(r)))};function ek(n,r){switch(sW(n,r)){case 5103:return gn+"print-"+n+n;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return gn+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return gn+n+x0+n+Va+n+n;case 6828:case 4268:return gn+n+Va+n+n;case 6165:return gn+n+Va+"flex-"+n+n;case 5187:return gn+n+yn(n,/(\w+).+(:[^]+)/,gn+"box-$1$2"+Va+"flex-$1$2")+n;case 5443:return gn+n+Va+"flex-item-"+yn(n,/flex-|-self/,"")+n;case 4675:return gn+n+Va+"flex-line-pack"+yn(n,/align-content|flex-|-self/,"")+n;case 5548:return gn+n+Va+yn(n,"shrink","negative")+n;case 5292:return gn+n+Va+yn(n,"basis","preferred-size")+n;case 6060:return gn+"box-"+yn(n,"-grow","")+gn+n+Va+yn(n,"grow","positive")+n;case 4554:return gn+yn(n,/([^-])(transform)/g,"$1"+gn+"$2")+n;case 6187:return yn(yn(yn(n,/(zoom-|grab)/,gn+"$1"),/(image-set)/,gn+"$1"),n,"")+n;case 5495:case 3959:return yn(n,/(image-set\([^]*)/,gn+"$1$`$1");case 4968:return yn(yn(n,/(.+:)(flex-)?(.*)/,gn+"box-pack:$3"+Va+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+gn+n+n;case 4095:case 3583:case 4068:case 2532:return yn(n,/(.+)-inline(.+)/,gn+"$1$2")+n;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ks(n)-1-r>6)switch(ma(n,r+1)){case 109:if(ma(n,r+4)!==45)break;case 102:return yn(n,/(.+:)(.+)-([^]+)/,"$1"+gn+"$2-$3$1"+x0+(ma(n,r+3)==108?"$3":"$2-$3"))+n;case 115:return~Aw(n,"stretch")?ek(yn(n,"stretch","fill-available"),r)+n:n}break;case 4949:if(ma(n,r+1)!==115)break;case 6444:switch(ma(n,Ks(n)-3-(~Aw(n,"!important")&&10))){case 107:return yn(n,":",":"+gn)+n;case 101:return yn(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+gn+(ma(n,14)===45?"inline-":"")+"box$3$1"+gn+"$2$3$1"+Va+"$2box$3")+n}break;case 5936:switch(ma(n,r+11)){case 114:return gn+n+Va+yn(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return gn+n+Va+yn(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return gn+n+Va+yn(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return gn+n+Va+n+n}return n}var jW=function(r,i,u,l){if(r.length>-1&&!r.return)switch(r.type){case AR:r.return=ek(r.value,r.length);break;case YD:return zp([om(r,{value:yn(r.value,"@","@"+gn)})],l);case OR:if(r.length)return uW(r.props,function(d){switch(lW(d,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return zp([om(r,{props:[yn(d,/:(read-\w+)/,":"+x0+"$1")]})],l);case"::placeholder":return zp([om(r,{props:[yn(d,/:(plac\w+)/,":"+gn+"input-$1")]}),om(r,{props:[yn(d,/:(plac\w+)/,":"+x0+"$1")]}),om(r,{props:[yn(d,/:(plac\w+)/,Va+"input-$1")]})],l)}return""})}},DW=[jW],kW=function(r){var i=r.key;if(sm.NODE_ENV!=="production"&&!i)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
297
|
+
If multiple caches share the same key they might "fight" for each other's style elements.`);if(i==="css"){var u=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(u,function(O){var _=O.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(O),O.setAttribute("data-s",""))})}var l=r.stylisPlugins||DW;if(sm.NODE_ENV!=="production"&&/[^a-z-]/.test(i))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+i+'" was passed');var d={},h,v=[];h=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(O){for(var _=O.getAttribute("data-emotion").split(" "),L=1;L<_.length;L++)d[_[L]]=!0;v.push(O)});var y,C=[RW,TW];sm.NODE_ENV!=="production"&&C.push(_W({get compat(){return N.compat}}),AW);{var x,R=[yW,sm.NODE_ENV!=="production"?function(O){O.root||(O.return?x.insert(O.return):O.value&&O.type!==_R&&x.insert(O.value+"{}"))}:CW(function(O){x.insert(O)})],T=bW(C.concat(l,R)),A=function(_){return zp(mW(_),T)};y=function(_,L,F,V){x=F,sm.NODE_ENV!=="production"&&L.map!==void 0&&(x={insert:function(z){F.insert(z+L.map)}}),A(_?_+"{"+L.styles+"}":L.styles),V&&(N.inserted[L.name]=!0)}}var N={key:i,sheet:new nW({key:i,container:h,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:d,registered:{},insert:y};return N.sheet.hydrate(v),N},tk=aR,MW={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},LW={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},nk={};nk[tk.ForwardRef]=MW;nk[tk.Memo]=LW;var PW=!0;function rk(n,r,i){var u="";return i.split(" ").forEach(function(l){n[l]!==void 0?r.push(n[l]+";"):u+=l+" "}),u}var DR=function(r,i,u){var l=r.key+"-"+i.name;(u===!1||PW===!1)&&r.registered[l]===void 0&&(r.registered[l]=i.styles)},kR=function(r,i,u){DR(r,i,u);var l=r.key+"-"+i.name;if(r.inserted[i.name]===void 0){var d=i;do r.insert(i===d?"."+l:"",d,r.sheet,!0),d=d.next;while(d!==void 0)}};function FW(n){for(var r=0,i,u=0,l=n.length;l>=4;++u,l-=4)i=n.charCodeAt(u)&255|(n.charCodeAt(++u)&255)<<8|(n.charCodeAt(++u)&255)<<16|(n.charCodeAt(++u)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,r=(i&65535)*1540483477+((i>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(l){case 3:r^=(n.charCodeAt(u+2)&255)<<16;case 2:r^=(n.charCodeAt(u+1)&255)<<8;case 1:r^=n.charCodeAt(u)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var VW={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},wo={},cO=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
298
298
|
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
299
299
|
You can read more about this here:
|
|
300
|
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,BW="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",zW=/[A-Z]|^ms/g,ak=/_EMO_([^_]+?)_([^]*?)_EMO_/g,MR=function(r){return r.charCodeAt(1)===45},fO=function(r){return r!=null&&typeof r!="boolean"},GE=xW(function(n){return MR(n)?n:n.replace(zW,"-$&").toLowerCase()}),S0=function(r,i){switch(r){case"animation":case"animationName":if(typeof i=="string")return i.replace(ak,function(u,l,d){return ls={name:l,styles:d,next:ls},l})}return VW[r]!==1&&!MR(r)&&typeof i=="number"&&i!==0?i+"px":i};if(wo.NODE_ENV!=="production"){var HW=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,UW=["normal","none","initial","inherit","unset"],$W=S0,GW=/^-ms-/,WW=/-(.)/g,dO={};S0=function(r,i){if(r==="content"&&(typeof i!="string"||UW.indexOf(i)===-1&&!HW.test(i)&&(i.charAt(0)!==i.charAt(i.length-1)||i.charAt(0)!=='"'&&i.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+i+"\"'`");var u=$W(r,i);return u!==""&&!MR(r)&&r.indexOf("-")!==-1&&dO[r]===void 0&&(dO[r]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+r.replace(GW,"ms-").replace(WW,function(l,d){return d.toUpperCase()})+"?")),u}}var ik="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function wm(n,r,i){if(i==null)return"";if(i.__emotion_styles!==void 0){if(wo.NODE_ENV!=="production"&&i.toString()==="NO_COMPONENT_SELECTOR")throw new Error(ik);return i}switch(typeof i){case"boolean":return"";case"object":{if(i.anim===1)return ls={name:i.name,styles:i.styles,next:ls},i.name;if(i.styles!==void 0){var u=i.next;if(u!==void 0)for(;u!==void 0;)ls={name:u.name,styles:u.styles,next:ls},u=u.next;var l=i.styles+";";return wo.NODE_ENV!=="production"&&i.map!==void 0&&(l+=i.map),l}return XW(n,r,i)}case"function":{if(n!==void 0){var d=ls,h=i(n);return ls=d,wm(n,r,h)}else wo.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(wo.NODE_ENV!=="production"){var v=[],y=i.replace(ak,function(x,
|
|
300
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,BW="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",zW=/[A-Z]|^ms/g,ak=/_EMO_([^_]+?)_([^]*?)_EMO_/g,MR=function(r){return r.charCodeAt(1)===45},fO=function(r){return r!=null&&typeof r!="boolean"},GE=xW(function(n){return MR(n)?n:n.replace(zW,"-$&").toLowerCase()}),S0=function(r,i){switch(r){case"animation":case"animationName":if(typeof i=="string")return i.replace(ak,function(u,l,d){return ls={name:l,styles:d,next:ls},l})}return VW[r]!==1&&!MR(r)&&typeof i=="number"&&i!==0?i+"px":i};if(wo.NODE_ENV!=="production"){var HW=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,UW=["normal","none","initial","inherit","unset"],$W=S0,GW=/^-ms-/,WW=/-(.)/g,dO={};S0=function(r,i){if(r==="content"&&(typeof i!="string"||UW.indexOf(i)===-1&&!HW.test(i)&&(i.charAt(0)!==i.charAt(i.length-1)||i.charAt(0)!=='"'&&i.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+i+"\"'`");var u=$W(r,i);return u!==""&&!MR(r)&&r.indexOf("-")!==-1&&dO[r]===void 0&&(dO[r]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+r.replace(GW,"ms-").replace(WW,function(l,d){return d.toUpperCase()})+"?")),u}}var ik="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function wm(n,r,i){if(i==null)return"";if(i.__emotion_styles!==void 0){if(wo.NODE_ENV!=="production"&&i.toString()==="NO_COMPONENT_SELECTOR")throw new Error(ik);return i}switch(typeof i){case"boolean":return"";case"object":{if(i.anim===1)return ls={name:i.name,styles:i.styles,next:ls},i.name;if(i.styles!==void 0){var u=i.next;if(u!==void 0)for(;u!==void 0;)ls={name:u.name,styles:u.styles,next:ls},u=u.next;var l=i.styles+";";return wo.NODE_ENV!=="production"&&i.map!==void 0&&(l+=i.map),l}return XW(n,r,i)}case"function":{if(n!==void 0){var d=ls,h=i(n);return ls=d,wm(n,r,h)}else wo.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(wo.NODE_ENV!=="production"){var v=[],y=i.replace(ak,function(x,R,T){var A="animation"+v.length;return v.push("const "+A+" = keyframes`"+T.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+A+"}"});v.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(v,["`"+y+"`"]).join(`
|
|
301
301
|
`)+`
|
|
302
302
|
|
|
303
303
|
You should wrap it with \`css\` like this:
|
|
304
304
|
|
|
305
|
-
`+("css`"+y+"`"))}break}if(r==null)return i;var C=r[i];return C!==void 0?C:i}function XW(n,r,i){var u="";if(Array.isArray(i))for(var l=0;l<i.length;l++)u+=wm(n,r,i[l])+";";else for(var d in i){var h=i[d];if(typeof h!="object")r!=null&&r[h]!==void 0?u+=d+"{"+r[h]+"}":fO(h)&&(u+=GE(d)+":"+S0(d,h)+";");else{if(d==="NO_COMPONENT_SELECTOR"&&wo.NODE_ENV!=="production")throw new Error(ik);if(Array.isArray(h)&&typeof h[0]=="string"&&(r==null||r[h[0]]===void 0))for(var v=0;v<h.length;v++)fO(h[v])&&(u+=GE(d)+":"+S0(d,h[v])+";");else{var y=wm(n,r,h);switch(d){case"animation":case"animationName":{u+=GE(d)+":"+y+";";break}default:wo.NODE_ENV!=="production"&&d==="undefined"&&console.error(BW),u+=d+"{"+y+"}"}}}}return u}var pO=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ok;wo.NODE_ENV!=="production"&&(ok=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var ls,Rm=function(r,i,u){if(r.length===1&&typeof r[0]=="object"&&r[0]!==null&&r[0].styles!==void 0)return r[0];var l=!0,d="";ls=void 0;var h=r[0];h==null||h.raw===void 0?(l=!1,d+=wm(u,i,h)):(wo.NODE_ENV!=="production"&&h[0]===void 0&&console.error(cO),d+=h[0]);for(var v=1;v<r.length;v++)d+=wm(u,i,r[v]),l&&(wo.NODE_ENV!=="production"&&h[v]===void 0&&console.error(cO),d+=h[v]);var y;wo.NODE_ENV!=="production"&&(d=d.replace(ok,function(T){return y=T,""})),pO.lastIndex=0;for(var C="",x;(x=pO.exec(d))!==null;)C+="-"+x[1];var
|
|
306
|
-
`),u=0;u<i.length;u++){var l=ZW(i[u]);if(l){if(JW.has(l))break;if(/^[A-Z]/.test(l))return qW(l)}}},Dw="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",kw="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",KW=function(r,i){if(Jf.NODE_ENV!=="production"&&typeof i.css=="string"&&i.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+i.css+"`");var u={};for(var l in i)LR.call(i,l)&&(u[l]=i[l]);if(u[Dw]=r,Jf.NODE_ENV!=="production"&&i.css&&(typeof i.css!="object"||typeof i.css.name!="string"||i.css.name.indexOf("-")===-1)){var d=QW(new Error().stack);d&&(u[kw]=d)}return u},e5=function(r){var i=r.cache,u=r.serialized,l=r.isStringTag;return DR(i,u,l),lk(function(){return kR(i,u,l)}),null},uk=FR(function(n,r,i){var u=n.css;typeof u=="string"&&r.registered[u]!==void 0&&(u=r.registered[u]);var l=n[Dw],d=[u],h="";typeof n.className=="string"?h=rk(r.registered,d,n.className):n.className!=null&&(h=n.className+" ");var v=Rm(d,void 0,M.useContext(X0));if(Jf.NODE_ENV!=="production"&&v.name.indexOf("-")===-1){var y=n[kw];y&&(v=Rm([v,"label:"+y+";"]))}h+=r.key+"-"+v.name;var C={};for(var x in n)LR.call(n,x)&&x!=="css"&&x!==Dw&&(Jf.NODE_ENV==="production"||x!==kw)&&(C[x]=n[x]);return C.ref=i,C.className=h,M.createElement(M.Fragment,null,M.createElement(e5,{cache:r,serialized:v,isStringTag:typeof l=="string"}),M.createElement(l,C))});Jf.NODE_ENV!=="production"&&(uk.displayName="EmotionCssPropInternal");var t5=uk,qf={},n5={name:"@emotion/react",version:"11.11.3",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.3","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.2","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},Et=function(r,i){var u=arguments;if(i==null||!LR.call(i,"css"))return M.createElement.apply(void 0,u);var l=u.length,d=new Array(l);d[0]=t5,d[1]=KW(r,i);for(var h=2;h<l;h++)d[h]=u[h];return M.createElement.apply(null,d)},mO=!1,r5=FR(function(n,r){qf.NODE_ENV!=="production"&&!mO&&(n.className||n.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),mO=!0);var i=n.styles,u=Rm([i],void 0,M.useContext(X0)),l=M.useRef();return vO(function(){var d=r.key+"-global",h=new r.sheet.constructor({key:d,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy}),v=!1,y=document.querySelector('style[data-emotion="'+d+" "+u.name+'"]');return r.sheet.tags.length&&(h.before=r.sheet.tags[0]),y!==null&&(v=!0,y.setAttribute("data-emotion",d),h.hydrate([y])),l.current=[h,v],function(){h.flush()}},[r]),vO(function(){var d=l.current,h=d[0],v=d[1];if(v){d[1]=!1;return}if(u.next!==void 0&&kR(r,u.next,!0),h.tags.length){var y=h.tags[h.tags.length-1].nextElementSibling;h.before=y,h.flush()}r.insert("",u,h,!1)},[r,u.name]),null});qf.NODE_ENV!=="production"&&(r5.displayName="EmotionGlobal");function VR(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Rm(r)}var a5=function(){var r=VR.apply(void 0,arguments),i="animation-"+r.name;return{name:i,styles:"@keyframes "+i+"{"+r.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},i5=function n(r){for(var i=r.length,u=0,l="";u<i;u++){var d=r[u];if(d!=null){var h=void 0;switch(typeof d){case"boolean":break;case"object":{if(Array.isArray(d))h=n(d);else{qf.NODE_ENV!=="production"&&d.styles!==void 0&&d.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),h="";for(var v in d)d[v]&&v&&(h&&(h+=" "),h+=v)}break}default:h=d}h&&(l&&(l+=" "),l+=h)}}return l};function o5(n,r,i){var u=[],l=rk(n,u,i);return u.length<2?i:l+r(u)}var s5=function(r){var i=r.cache,u=r.serializedArr;return lk(function(){for(var l=0;l<u.length;l++)kR(i,u[l],!1)}),null},l5=FR(function(n,r){var i=!1,u=[],l=function(){if(i&&qf.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var C=arguments.length,x=new Array(C),w=0;w<C;w++)x[w]=arguments[w];var T=Rm(x,r.registered);return u.push(T),DR(r,T,!1),r.key+"-"+T.name},d=function(){if(i&&qf.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var C=arguments.length,x=new Array(C),w=0;w<C;w++)x[w]=arguments[w];return o5(r.registered,l,i5(x))},h={css:l,cx:d,theme:M.useContext(X0)},v=n.children(h);return i=!0,M.createElement(M.Fragment,null,M.createElement(s5,{cache:r,serializedArr:u}),v)});qf.NODE_ENV!=="production"&&(l5.displayName="EmotionClassNames");if(qf.NODE_ENV!=="production"){var gO=!0,u5=typeof jest<"u"||typeof vi<"u";if(gO&&!u5){var yO=typeof globalThis<"u"?globalThis:gO?window:global,bO="__EMOTION_REACT_"+n5.version.split(".")[0]+"__";yO[bO]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),yO[bO]=!0}}function c5(n,r){return r||(r=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(r)}}))}const f5=Math.min,d5=Math.max,E0=Math.round,Bb=Math.floor,w0=n=>({x:n,y:n});function p5(n){return{...n,top:n.y,left:n.x,right:n.x+n.width,bottom:n.y+n.height}}function ck(n){return dk(n)?(n.nodeName||"").toLowerCase():"#document"}function fs(n){var r;return(n==null||(r=n.ownerDocument)==null?void 0:r.defaultView)||window}function fk(n){var r;return(r=(dk(n)?n.ownerDocument:n.document)||window.document)==null?void 0:r.documentElement}function dk(n){return n instanceof Node||n instanceof fs(n).Node}function Mw(n){return n instanceof Element||n instanceof fs(n).Element}function BR(n){return n instanceof HTMLElement||n instanceof fs(n).HTMLElement}function CO(n){return typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof fs(n).ShadowRoot}function pk(n){const{overflow:r,overflowX:i,overflowY:u,display:l}=zR(n);return/auto|scroll|overlay|hidden|clip/.test(r+u+i)&&!["inline","contents"].includes(l)}function v5(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function h5(n){return["html","body","#document"].includes(ck(n))}function zR(n){return fs(n).getComputedStyle(n)}function m5(n){if(ck(n)==="html")return n;const r=n.assignedSlot||n.parentNode||CO(n)&&n.host||fk(n);return CO(r)?r.host:r}function vk(n){const r=m5(n);return h5(r)?n.ownerDocument?n.ownerDocument.body:n.body:BR(r)&&pk(r)?r:vk(r)}function R0(n,r,i){var u;r===void 0&&(r=[]),i===void 0&&(i=!0);const l=vk(n),d=l===((u=n.ownerDocument)==null?void 0:u.body),h=fs(l);return d?r.concat(h,h.visualViewport||[],pk(l)?l:[],h.frameElement&&i?R0(h.frameElement):[]):r.concat(l,R0(l,[],i))}function g5(n){const r=zR(n);let i=parseFloat(r.width)||0,u=parseFloat(r.height)||0;const l=BR(n),d=l?n.offsetWidth:i,h=l?n.offsetHeight:u,v=E0(i)!==d||E0(u)!==h;return v&&(i=d,u=h),{width:i,height:u,$:v}}function HR(n){return Mw(n)?n:n.contextElement}function WE(n){const r=HR(n);if(!BR(r))return w0(1);const i=r.getBoundingClientRect(),{width:u,height:l,$:d}=g5(r);let h=(d?E0(i.width):i.width)/u,v=(d?E0(i.height):i.height)/l;return(!h||!Number.isFinite(h))&&(h=1),(!v||!Number.isFinite(v))&&(v=1),{x:h,y:v}}const y5=w0(0);function b5(n){const r=fs(n);return!v5()||!r.visualViewport?y5:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function C5(n,r,i){return r===void 0&&(r=!1),!i||r&&i!==fs(n)?!1:r}function xO(n,r,i,u){r===void 0&&(r=!1),i===void 0&&(i=!1);const l=n.getBoundingClientRect(),d=HR(n);let h=w0(1);r&&(u?Mw(u)&&(h=WE(u)):h=WE(n));const v=C5(d,i,u)?b5(d):w0(0);let y=(l.left+v.x)/h.x,C=(l.top+v.y)/h.y,x=l.width/h.x,w=l.height/h.y;if(d){const T=fs(d),A=u&&Mw(u)?fs(u):u;let N=T.frameElement;for(;N&&u&&A!==T;){const O=WE(N),_=N.getBoundingClientRect(),L=zR(N),F=_.left+(N.clientLeft+parseFloat(L.paddingLeft))*O.x,V=_.top+(N.clientTop+parseFloat(L.paddingTop))*O.y;y*=O.x,C*=O.y,x*=O.x,w*=O.y,y+=F,C+=V,N=fs(N).frameElement}}return p5({width:x,height:w,x:y,y:C})}function x5(n,r){let i=null,u;const l=fk(n);function d(){var v;clearTimeout(u),(v=i)==null||v.disconnect(),i=null}function h(v,y){v===void 0&&(v=!1),y===void 0&&(y=1),d();const{left:C,top:x,width:w,height:T}=n.getBoundingClientRect();if(v||r(),!w||!T)return;const A=Bb(x),N=Bb(l.clientWidth-(C+w)),O=Bb(l.clientHeight-(x+T)),_=Bb(C),F={rootMargin:-A+"px "+-N+"px "+-O+"px "+-_+"px",threshold:d5(0,f5(1,y))||1};let V=!0;function H(z){const U=z[0].intersectionRatio;if(U!==y){if(!V)return h();U?h(!1,U):u=setTimeout(()=>{h(!1,1e-7)},100)}V=!1}try{i=new IntersectionObserver(H,{...F,root:l.ownerDocument})}catch{i=new IntersectionObserver(H,F)}i.observe(n)}return h(!0),d}function S5(n,r,i,u){u===void 0&&(u={});const{ancestorScroll:l=!0,ancestorResize:d=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:v=typeof IntersectionObserver=="function",animationFrame:y=!1}=u,C=HR(n),x=l||d?[...C?R0(C):[],...R0(r)]:[];x.forEach(L=>{l&&L.addEventListener("scroll",i,{passive:!0}),d&&L.addEventListener("resize",i)});const w=C&&v?x5(C,i):null;let T=-1,A=null;h&&(A=new ResizeObserver(L=>{let[F]=L;F&&F.target===C&&A&&(A.unobserve(r),cancelAnimationFrame(T),T=requestAnimationFrame(()=>{var V;(V=A)==null||V.observe(r)})),i()}),C&&!y&&A.observe(C),A.observe(r));let N,O=y?xO(n):null;y&&_();function _(){const L=xO(n);O&&(L.x!==O.x||L.y!==O.y||L.width!==O.width||L.height!==O.height)&&i(),O=L,N=requestAnimationFrame(_)}return i(),()=>{var L;x.forEach(F=>{l&&F.removeEventListener("scroll",i),d&&F.removeEventListener("resize",i)}),w==null||w(),(L=A)==null||L.disconnect(),A=null,y&&cancelAnimationFrame(N)}}var Lw=M.useLayoutEffect,Pw={},E5=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],T0=function(){};function w5(n,r){return r?r[0]==="-"?n+r:n+"__"+r:n}function R5(n,r){for(var i=arguments.length,u=new Array(i>2?i-2:0),l=2;l<i;l++)u[l-2]=arguments[l];var d=[].concat(u);if(r&&n)for(var h in r)r.hasOwnProperty(h)&&r[h]&&d.push("".concat(w5(n,h)));return d.filter(function(v){return v}).map(function(v){return String(v).trim()}).join(" ")}var SO=function(r){return M5(r)?r.filter(Boolean):Zf(r)==="object"&&r!==null?[r]:[]},hk=function(r){r.className,r.clearValue,r.cx,r.getStyles,r.getClassNames,r.getValue,r.hasValue,r.isMulti,r.isRtl,r.options,r.selectOption,r.selectProps,r.setValue,r.theme;var i=rl(r,E5);return yt({},i)},yr=function(r,i,u){var l=r.cx,d=r.getStyles,h=r.getClassNames,v=r.className;return{css:d(i,r),className:l(u??{},h(i,r),v)}};function T5(n,r,i){if(i){var u=i(n,r);if(typeof u=="string")return u}return n}function Y0(n){return[document.documentElement,document.body,window].indexOf(n)>-1}function I5(n){return Y0(n)?window.innerHeight:n.clientHeight}function mk(n){return Y0(n)?window.pageYOffset:n.scrollTop}function I0(n,r){if(Y0(n)){window.scrollTo(0,r);return}n.scrollTop=r}function N5(n){var r=getComputedStyle(n),i=r.position==="absolute",u=/(auto|scroll)/;if(r.position==="fixed")return document.documentElement;for(var l=n;l=l.parentElement;)if(r=getComputedStyle(l),!(i&&r.position==="static")&&u.test(r.overflow+r.overflowY+r.overflowX))return l;return document.documentElement}function _5(n,r,i,u){return i*((n=n/u-1)*n*n+1)+r}function zb(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:T0,l=mk(n),d=r-l,h=10,v=0;function y(){v+=h;var C=_5(v,l,d,i);I0(n,C),v<i?window.requestAnimationFrame(y):u(n)}y()}function EO(n,r){var i=n.getBoundingClientRect(),u=r.getBoundingClientRect(),l=r.offsetHeight/3;u.bottom+l>i.bottom?I0(n,Math.min(r.offsetTop+r.clientHeight-n.offsetHeight+l,n.scrollHeight)):u.top-l<i.top&&I0(n,Math.max(r.offsetTop-l,0))}function O5(n){var r=n.getBoundingClientRect();return{bottom:r.bottom,height:r.height,left:r.left,right:r.right,top:r.top,width:r.width}}function wO(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function A5(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var gk=!1,j5={get passive(){return gk=!0}},Hb=typeof window<"u"?window:{};Hb.addEventListener&&Hb.removeEventListener&&(Hb.addEventListener("p",T0,j5),Hb.removeEventListener("p",T0,!1));var D5=gk;function k5(n){return n!=null}function M5(n){return Array.isArray(n)}function Ub(n,r,i){return n?r:i}var L5=function(r){for(var i=arguments.length,u=new Array(i>1?i-1:0),l=1;l<i;l++)u[l-1]=arguments[l];var d=Object.entries(r).filter(function(h){var v=ta(h,1),y=v[0];return!u.includes(y)});return d.reduce(function(h,v){var y=ta(v,2),C=y[0],x=y[1];return h[C]=x,h},{})},P5=["children","innerProps"],F5=["children","innerProps"];function V5(n){var r=n.maxHeight,i=n.menuEl,u=n.minHeight,l=n.placement,d=n.shouldScroll,h=n.isFixedPosition,v=n.controlHeight,y=N5(i),C={placement:"bottom",maxHeight:r};if(!i||!i.offsetParent)return C;var x=y.getBoundingClientRect(),w=x.height,T=i.getBoundingClientRect(),A=T.bottom,N=T.height,O=T.top,_=i.offsetParent.getBoundingClientRect(),L=_.top,F=h?window.innerHeight:I5(y),V=mk(y),H=parseInt(getComputedStyle(i).marginBottom,10),z=parseInt(getComputedStyle(i).marginTop,10),U=L-z,J=F-O,q=U+V,Re=w-V-O,he=A-F+V+H,ge=V+O-z,fe=160;switch(l){case"auto":case"bottom":if(J>=N)return{placement:"bottom",maxHeight:r};if(Re>=N&&!h)return d&&zb(y,he,fe),{placement:"bottom",maxHeight:r};if(!h&&Re>=u||h&&J>=u){d&&zb(y,he,fe);var Oe=h?J-H:Re-H;return{placement:"bottom",maxHeight:Oe}}if(l==="auto"||h){var Te=r,xe=h?U:q;return xe>=u&&(Te=Math.min(xe-H-v,r)),{placement:"top",maxHeight:Te}}if(l==="bottom")return d&&I0(y,he),{placement:"bottom",maxHeight:r};break;case"top":if(U>=N)return{placement:"top",maxHeight:r};if(q>=N&&!h)return d&&zb(y,ge,fe),{placement:"top",maxHeight:r};if(!h&&q>=u||h&&U>=u){var je=r;return(!h&&q>=u||h&&U>=u)&&(je=h?U-z:q-z),d&&zb(y,ge,fe),{placement:"top",maxHeight:je}}return{placement:"bottom",maxHeight:r};default:throw new Error('Invalid placement provided "'.concat(l,'".'))}return C}function B5(n){var r={bottom:"top",top:"bottom"};return n?r[n]:"bottom"}var yk=function(r){return r==="auto"?"bottom":r},z5=function(r,i){var u,l=r.placement,d=r.theme,h=d.borderRadius,v=d.spacing,y=d.colors;return yt((u={label:"menu"},Pp(u,B5(l),"100%"),Pp(u,"position","absolute"),Pp(u,"width","100%"),Pp(u,"zIndex",1),u),i?{}:{backgroundColor:y.neutral0,borderRadius:h,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:v.menuGutter,marginTop:v.menuGutter})},bk=M.createContext(null),H5=function(r){var i=r.children,u=r.minMenuHeight,l=r.maxMenuHeight,d=r.menuPlacement,h=r.menuPosition,v=r.menuShouldScrollIntoView,y=r.theme,C=M.useContext(bk)||{},x=C.setPortalPlacement,w=M.useRef(null),T=M.useState(l),A=ta(T,2),N=A[0],O=A[1],_=M.useState(null),L=ta(_,2),F=L[0],V=L[1],H=y.spacing.controlHeight;return Lw(function(){var z=w.current;if(z){var U=h==="fixed",J=v&&!U,q=V5({maxHeight:l,menuEl:z,minHeight:u,placement:d,shouldScroll:J,isFixedPosition:U,controlHeight:H});O(q.maxHeight),V(q.placement),x==null||x(q.placement)}},[l,d,h,v,u,x,H]),i({ref:w,placerProps:yt(yt({},r),{},{placement:F||yk(d),maxHeight:N})})},U5=function(r){var i=r.children,u=r.innerRef,l=r.innerProps;return Et("div",Rt({},yr(r,"menu",{menu:!0}),{ref:u},l),i)},$5=U5,G5=function(r,i){var u=r.maxHeight,l=r.theme.spacing.baseUnit;return yt({maxHeight:u,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},i?{}:{paddingBottom:l,paddingTop:l})},W5=function(r){var i=r.children,u=r.innerProps,l=r.innerRef,d=r.isMulti;return Et("div",Rt({},yr(r,"menuList",{"menu-list":!0,"menu-list--is-multi":d}),{ref:l},u),i)},Ck=function(r,i){var u=r.theme,l=u.spacing.baseUnit,d=u.colors;return yt({textAlign:"center"},i?{}:{color:d.neutral40,padding:"".concat(l*2,"px ").concat(l*3,"px")})},X5=Ck,Y5=Ck,Z5=function(r){var i=r.children,u=i===void 0?"No options":i,l=r.innerProps,d=rl(r,P5);return Et("div",Rt({},yr(yt(yt({},d),{},{children:u,innerProps:l}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),l),u)},J5=function(r){var i=r.children,u=i===void 0?"Loading...":i,l=r.innerProps,d=rl(r,F5);return Et("div",Rt({},yr(yt(yt({},d),{},{children:u,innerProps:l}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),l),u)},q5=function(r){var i=r.rect,u=r.offset,l=r.position;return{left:i.left,position:l,top:u,width:i.width,zIndex:1}},Q5=function(r){var i=r.appendTo,u=r.children,l=r.controlElement,d=r.innerProps,h=r.menuPlacement,v=r.menuPosition,y=M.useRef(null),C=M.useRef(null),x=M.useState(yk(h)),w=ta(x,2),T=w[0],A=w[1],N=M.useMemo(function(){return{setPortalPlacement:A}},[]),O=M.useState(null),_=ta(O,2),L=_[0],F=_[1],V=M.useCallback(function(){if(l){var J=O5(l),q=v==="fixed"?0:window.pageYOffset,Re=J[T]+q;(Re!==(L==null?void 0:L.offset)||J.left!==(L==null?void 0:L.rect.left)||J.width!==(L==null?void 0:L.rect.width))&&F({offset:Re,rect:J})}},[l,v,T,L==null?void 0:L.offset,L==null?void 0:L.rect.left,L==null?void 0:L.rect.width]);Lw(function(){V()},[V]);var H=M.useCallback(function(){typeof C.current=="function"&&(C.current(),C.current=null),l&&y.current&&(C.current=S5(l,y.current,V,{elementResize:"ResizeObserver"in window}))},[l,V]);Lw(function(){H()},[H]);var z=M.useCallback(function(J){y.current=J,H()},[H]);if(!i&&v!=="fixed"||!L)return null;var U=Et("div",Rt({ref:z},yr(yt(yt({},r),{},{offset:L.offset,position:v,rect:L.rect}),"menuPortal",{"menu-portal":!0}),d),u);return Et(bk.Provider,{value:N},i?Gw.createPortal(U,i):U)},K5=function(r){var i=r.isDisabled,u=r.isRtl;return{label:"container",direction:u?"rtl":void 0,pointerEvents:i?"none":void 0,position:"relative"}},eX=function(r){var i=r.children,u=r.innerProps,l=r.isDisabled,d=r.isRtl;return Et("div",Rt({},yr(r,"container",{"--is-disabled":l,"--is-rtl":d}),u),i)},tX=function(r,i){var u=r.theme.spacing,l=r.isMulti,d=r.hasValue,h=r.selectProps.controlShouldRenderValue;return yt({alignItems:"center",display:l&&d&&h?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},i?{}:{padding:"".concat(u.baseUnit/2,"px ").concat(u.baseUnit*2,"px")})},nX=function(r){var i=r.children,u=r.innerProps,l=r.isMulti,d=r.hasValue;return Et("div",Rt({},yr(r,"valueContainer",{"value-container":!0,"value-container--is-multi":l,"value-container--has-value":d}),u),i)},rX=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},aX=function(r){var i=r.children,u=r.innerProps;return Et("div",Rt({},yr(r,"indicatorsContainer",{indicators:!0}),u),i)},RO,iX=["size"],oX=["innerProps","isRtl","size"];function sX(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var lX=Pw.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:sX},xk=function(r){var i=r.size,u=rl(r,iX);return Et("svg",Rt({height:i,width:i,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:lX},u))},UR=function(r){return Et(xk,Rt({size:20},r),Et("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Sk=function(r){return Et(xk,Rt({size:20},r),Et("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Ek=function(r,i){var u=r.isFocused,l=r.theme,d=l.spacing.baseUnit,h=l.colors;return yt({label:"indicatorContainer",display:"flex",transition:"color 150ms"},i?{}:{color:u?h.neutral60:h.neutral20,padding:d*2,":hover":{color:u?h.neutral80:h.neutral40}})},uX=Ek,cX=function(r){var i=r.children,u=r.innerProps;return Et("div",Rt({},yr(r,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),u),i||Et(Sk,null))},fX=Ek,dX=function(r){var i=r.children,u=r.innerProps;return Et("div",Rt({},yr(r,"clearIndicator",{indicator:!0,"clear-indicator":!0}),u),i||Et(UR,null))},pX=function(r,i){var u=r.isDisabled,l=r.theme,d=l.spacing.baseUnit,h=l.colors;return yt({label:"indicatorSeparator",alignSelf:"stretch",width:1},i?{}:{backgroundColor:u?h.neutral10:h.neutral20,marginBottom:d*2,marginTop:d*2})},vX=function(r){var i=r.innerProps;return Et("span",Rt({},i,yr(r,"indicatorSeparator",{"indicator-separator":!0})))},hX=a5(RO||(RO=c5([`
|
|
305
|
+
`+("css`"+y+"`"))}break}if(r==null)return i;var C=r[i];return C!==void 0?C:i}function XW(n,r,i){var u="";if(Array.isArray(i))for(var l=0;l<i.length;l++)u+=wm(n,r,i[l])+";";else for(var d in i){var h=i[d];if(typeof h!="object")r!=null&&r[h]!==void 0?u+=d+"{"+r[h]+"}":fO(h)&&(u+=GE(d)+":"+S0(d,h)+";");else{if(d==="NO_COMPONENT_SELECTOR"&&wo.NODE_ENV!=="production")throw new Error(ik);if(Array.isArray(h)&&typeof h[0]=="string"&&(r==null||r[h[0]]===void 0))for(var v=0;v<h.length;v++)fO(h[v])&&(u+=GE(d)+":"+S0(d,h[v])+";");else{var y=wm(n,r,h);switch(d){case"animation":case"animationName":{u+=GE(d)+":"+y+";";break}default:wo.NODE_ENV!=="production"&&d==="undefined"&&console.error(BW),u+=d+"{"+y+"}"}}}}return u}var pO=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ok;wo.NODE_ENV!=="production"&&(ok=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var ls,Rm=function(r,i,u){if(r.length===1&&typeof r[0]=="object"&&r[0]!==null&&r[0].styles!==void 0)return r[0];var l=!0,d="";ls=void 0;var h=r[0];h==null||h.raw===void 0?(l=!1,d+=wm(u,i,h)):(wo.NODE_ENV!=="production"&&h[0]===void 0&&console.error(cO),d+=h[0]);for(var v=1;v<r.length;v++)d+=wm(u,i,r[v]),l&&(wo.NODE_ENV!=="production"&&h[v]===void 0&&console.error(cO),d+=h[v]);var y;wo.NODE_ENV!=="production"&&(d=d.replace(ok,function(T){return y=T,""})),pO.lastIndex=0;for(var C="",x;(x=pO.exec(d))!==null;)C+="-"+x[1];var R=FW(d)+C;return wo.NODE_ENV!=="production"?{name:R,styles:d,map:y,next:ls,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:R,styles:d,next:ls}},YW=function(r){return r()},sk=l0.useInsertionEffect?l0.useInsertionEffect:!1,lk=sk||YW,vO=sk||M.useLayoutEffect,Jf={},LR={}.hasOwnProperty,PR=M.createContext(typeof HTMLElement<"u"?kW({key:"css"}):null);Jf.NODE_ENV!=="production"&&(PR.displayName="EmotionCacheContext");PR.Provider;var FR=function(r){return M.forwardRef(function(i,u){var l=M.useContext(PR);return r(i,l,u)})},X0=M.createContext({});Jf.NODE_ENV!=="production"&&(X0.displayName="EmotionThemeContext");var hO=function(r){var i=r.split(".");return i[i.length-1]},ZW=function(r){var i=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(r);if(i||(i=/^([A-Za-z0-9$.]+)@/.exec(r),i))return hO(i[1])},JW=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),qW=function(r){return r.replace(/\$/g,"-")},QW=function(r){if(r)for(var i=r.split(`
|
|
306
|
+
`),u=0;u<i.length;u++){var l=ZW(i[u]);if(l){if(JW.has(l))break;if(/^[A-Z]/.test(l))return qW(l)}}},Dw="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",kw="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",KW=function(r,i){if(Jf.NODE_ENV!=="production"&&typeof i.css=="string"&&i.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+i.css+"`");var u={};for(var l in i)LR.call(i,l)&&(u[l]=i[l]);if(u[Dw]=r,Jf.NODE_ENV!=="production"&&i.css&&(typeof i.css!="object"||typeof i.css.name!="string"||i.css.name.indexOf("-")===-1)){var d=QW(new Error().stack);d&&(u[kw]=d)}return u},e5=function(r){var i=r.cache,u=r.serialized,l=r.isStringTag;return DR(i,u,l),lk(function(){return kR(i,u,l)}),null},uk=FR(function(n,r,i){var u=n.css;typeof u=="string"&&r.registered[u]!==void 0&&(u=r.registered[u]);var l=n[Dw],d=[u],h="";typeof n.className=="string"?h=rk(r.registered,d,n.className):n.className!=null&&(h=n.className+" ");var v=Rm(d,void 0,M.useContext(X0));if(Jf.NODE_ENV!=="production"&&v.name.indexOf("-")===-1){var y=n[kw];y&&(v=Rm([v,"label:"+y+";"]))}h+=r.key+"-"+v.name;var C={};for(var x in n)LR.call(n,x)&&x!=="css"&&x!==Dw&&(Jf.NODE_ENV==="production"||x!==kw)&&(C[x]=n[x]);return C.ref=i,C.className=h,M.createElement(M.Fragment,null,M.createElement(e5,{cache:r,serialized:v,isStringTag:typeof l=="string"}),M.createElement(l,C))});Jf.NODE_ENV!=="production"&&(uk.displayName="EmotionCssPropInternal");var t5=uk,qf={},n5={name:"@emotion/react",version:"11.11.3",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.3","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.2","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},Et=function(r,i){var u=arguments;if(i==null||!LR.call(i,"css"))return M.createElement.apply(void 0,u);var l=u.length,d=new Array(l);d[0]=t5,d[1]=KW(r,i);for(var h=2;h<l;h++)d[h]=u[h];return M.createElement.apply(null,d)},mO=!1,r5=FR(function(n,r){qf.NODE_ENV!=="production"&&!mO&&(n.className||n.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),mO=!0);var i=n.styles,u=Rm([i],void 0,M.useContext(X0)),l=M.useRef();return vO(function(){var d=r.key+"-global",h=new r.sheet.constructor({key:d,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy}),v=!1,y=document.querySelector('style[data-emotion="'+d+" "+u.name+'"]');return r.sheet.tags.length&&(h.before=r.sheet.tags[0]),y!==null&&(v=!0,y.setAttribute("data-emotion",d),h.hydrate([y])),l.current=[h,v],function(){h.flush()}},[r]),vO(function(){var d=l.current,h=d[0],v=d[1];if(v){d[1]=!1;return}if(u.next!==void 0&&kR(r,u.next,!0),h.tags.length){var y=h.tags[h.tags.length-1].nextElementSibling;h.before=y,h.flush()}r.insert("",u,h,!1)},[r,u.name]),null});qf.NODE_ENV!=="production"&&(r5.displayName="EmotionGlobal");function VR(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Rm(r)}var a5=function(){var r=VR.apply(void 0,arguments),i="animation-"+r.name;return{name:i,styles:"@keyframes "+i+"{"+r.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},i5=function n(r){for(var i=r.length,u=0,l="";u<i;u++){var d=r[u];if(d!=null){var h=void 0;switch(typeof d){case"boolean":break;case"object":{if(Array.isArray(d))h=n(d);else{qf.NODE_ENV!=="production"&&d.styles!==void 0&&d.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),h="";for(var v in d)d[v]&&v&&(h&&(h+=" "),h+=v)}break}default:h=d}h&&(l&&(l+=" "),l+=h)}}return l};function o5(n,r,i){var u=[],l=rk(n,u,i);return u.length<2?i:l+r(u)}var s5=function(r){var i=r.cache,u=r.serializedArr;return lk(function(){for(var l=0;l<u.length;l++)kR(i,u[l],!1)}),null},l5=FR(function(n,r){var i=!1,u=[],l=function(){if(i&&qf.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var C=arguments.length,x=new Array(C),R=0;R<C;R++)x[R]=arguments[R];var T=Rm(x,r.registered);return u.push(T),DR(r,T,!1),r.key+"-"+T.name},d=function(){if(i&&qf.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var C=arguments.length,x=new Array(C),R=0;R<C;R++)x[R]=arguments[R];return o5(r.registered,l,i5(x))},h={css:l,cx:d,theme:M.useContext(X0)},v=n.children(h);return i=!0,M.createElement(M.Fragment,null,M.createElement(s5,{cache:r,serializedArr:u}),v)});qf.NODE_ENV!=="production"&&(l5.displayName="EmotionClassNames");if(qf.NODE_ENV!=="production"){var gO=!0,u5=typeof jest<"u"||typeof vi<"u";if(gO&&!u5){var yO=typeof globalThis<"u"?globalThis:gO?window:global,bO="__EMOTION_REACT_"+n5.version.split(".")[0]+"__";yO[bO]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),yO[bO]=!0}}function c5(n,r){return r||(r=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(r)}}))}const f5=Math.min,d5=Math.max,E0=Math.round,Bb=Math.floor,w0=n=>({x:n,y:n});function p5(n){return{...n,top:n.y,left:n.x,right:n.x+n.width,bottom:n.y+n.height}}function ck(n){return dk(n)?(n.nodeName||"").toLowerCase():"#document"}function fs(n){var r;return(n==null||(r=n.ownerDocument)==null?void 0:r.defaultView)||window}function fk(n){var r;return(r=(dk(n)?n.ownerDocument:n.document)||window.document)==null?void 0:r.documentElement}function dk(n){return n instanceof Node||n instanceof fs(n).Node}function Mw(n){return n instanceof Element||n instanceof fs(n).Element}function BR(n){return n instanceof HTMLElement||n instanceof fs(n).HTMLElement}function CO(n){return typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof fs(n).ShadowRoot}function pk(n){const{overflow:r,overflowX:i,overflowY:u,display:l}=zR(n);return/auto|scroll|overlay|hidden|clip/.test(r+u+i)&&!["inline","contents"].includes(l)}function v5(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function h5(n){return["html","body","#document"].includes(ck(n))}function zR(n){return fs(n).getComputedStyle(n)}function m5(n){if(ck(n)==="html")return n;const r=n.assignedSlot||n.parentNode||CO(n)&&n.host||fk(n);return CO(r)?r.host:r}function vk(n){const r=m5(n);return h5(r)?n.ownerDocument?n.ownerDocument.body:n.body:BR(r)&&pk(r)?r:vk(r)}function R0(n,r,i){var u;r===void 0&&(r=[]),i===void 0&&(i=!0);const l=vk(n),d=l===((u=n.ownerDocument)==null?void 0:u.body),h=fs(l);return d?r.concat(h,h.visualViewport||[],pk(l)?l:[],h.frameElement&&i?R0(h.frameElement):[]):r.concat(l,R0(l,[],i))}function g5(n){const r=zR(n);let i=parseFloat(r.width)||0,u=parseFloat(r.height)||0;const l=BR(n),d=l?n.offsetWidth:i,h=l?n.offsetHeight:u,v=E0(i)!==d||E0(u)!==h;return v&&(i=d,u=h),{width:i,height:u,$:v}}function HR(n){return Mw(n)?n:n.contextElement}function WE(n){const r=HR(n);if(!BR(r))return w0(1);const i=r.getBoundingClientRect(),{width:u,height:l,$:d}=g5(r);let h=(d?E0(i.width):i.width)/u,v=(d?E0(i.height):i.height)/l;return(!h||!Number.isFinite(h))&&(h=1),(!v||!Number.isFinite(v))&&(v=1),{x:h,y:v}}const y5=w0(0);function b5(n){const r=fs(n);return!v5()||!r.visualViewport?y5:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function C5(n,r,i){return r===void 0&&(r=!1),!i||r&&i!==fs(n)?!1:r}function xO(n,r,i,u){r===void 0&&(r=!1),i===void 0&&(i=!1);const l=n.getBoundingClientRect(),d=HR(n);let h=w0(1);r&&(u?Mw(u)&&(h=WE(u)):h=WE(n));const v=C5(d,i,u)?b5(d):w0(0);let y=(l.left+v.x)/h.x,C=(l.top+v.y)/h.y,x=l.width/h.x,R=l.height/h.y;if(d){const T=fs(d),A=u&&Mw(u)?fs(u):u;let N=T.frameElement;for(;N&&u&&A!==T;){const O=WE(N),_=N.getBoundingClientRect(),L=zR(N),F=_.left+(N.clientLeft+parseFloat(L.paddingLeft))*O.x,V=_.top+(N.clientTop+parseFloat(L.paddingTop))*O.y;y*=O.x,C*=O.y,x*=O.x,R*=O.y,y+=F,C+=V,N=fs(N).frameElement}}return p5({width:x,height:R,x:y,y:C})}function x5(n,r){let i=null,u;const l=fk(n);function d(){var v;clearTimeout(u),(v=i)==null||v.disconnect(),i=null}function h(v,y){v===void 0&&(v=!1),y===void 0&&(y=1),d();const{left:C,top:x,width:R,height:T}=n.getBoundingClientRect();if(v||r(),!R||!T)return;const A=Bb(x),N=Bb(l.clientWidth-(C+R)),O=Bb(l.clientHeight-(x+T)),_=Bb(C),F={rootMargin:-A+"px "+-N+"px "+-O+"px "+-_+"px",threshold:d5(0,f5(1,y))||1};let V=!0;function H(z){const U=z[0].intersectionRatio;if(U!==y){if(!V)return h();U?h(!1,U):u=setTimeout(()=>{h(!1,1e-7)},100)}V=!1}try{i=new IntersectionObserver(H,{...F,root:l.ownerDocument})}catch{i=new IntersectionObserver(H,F)}i.observe(n)}return h(!0),d}function S5(n,r,i,u){u===void 0&&(u={});const{ancestorScroll:l=!0,ancestorResize:d=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:v=typeof IntersectionObserver=="function",animationFrame:y=!1}=u,C=HR(n),x=l||d?[...C?R0(C):[],...R0(r)]:[];x.forEach(L=>{l&&L.addEventListener("scroll",i,{passive:!0}),d&&L.addEventListener("resize",i)});const R=C&&v?x5(C,i):null;let T=-1,A=null;h&&(A=new ResizeObserver(L=>{let[F]=L;F&&F.target===C&&A&&(A.unobserve(r),cancelAnimationFrame(T),T=requestAnimationFrame(()=>{var V;(V=A)==null||V.observe(r)})),i()}),C&&!y&&A.observe(C),A.observe(r));let N,O=y?xO(n):null;y&&_();function _(){const L=xO(n);O&&(L.x!==O.x||L.y!==O.y||L.width!==O.width||L.height!==O.height)&&i(),O=L,N=requestAnimationFrame(_)}return i(),()=>{var L;x.forEach(F=>{l&&F.removeEventListener("scroll",i),d&&F.removeEventListener("resize",i)}),R==null||R(),(L=A)==null||L.disconnect(),A=null,y&&cancelAnimationFrame(N)}}var Lw=M.useLayoutEffect,Pw={},E5=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],T0=function(){};function w5(n,r){return r?r[0]==="-"?n+r:n+"__"+r:n}function R5(n,r){for(var i=arguments.length,u=new Array(i>2?i-2:0),l=2;l<i;l++)u[l-2]=arguments[l];var d=[].concat(u);if(r&&n)for(var h in r)r.hasOwnProperty(h)&&r[h]&&d.push("".concat(w5(n,h)));return d.filter(function(v){return v}).map(function(v){return String(v).trim()}).join(" ")}var SO=function(r){return M5(r)?r.filter(Boolean):Zf(r)==="object"&&r!==null?[r]:[]},hk=function(r){r.className,r.clearValue,r.cx,r.getStyles,r.getClassNames,r.getValue,r.hasValue,r.isMulti,r.isRtl,r.options,r.selectOption,r.selectProps,r.setValue,r.theme;var i=rl(r,E5);return yt({},i)},yr=function(r,i,u){var l=r.cx,d=r.getStyles,h=r.getClassNames,v=r.className;return{css:d(i,r),className:l(u??{},h(i,r),v)}};function T5(n,r,i){if(i){var u=i(n,r);if(typeof u=="string")return u}return n}function Y0(n){return[document.documentElement,document.body,window].indexOf(n)>-1}function I5(n){return Y0(n)?window.innerHeight:n.clientHeight}function mk(n){return Y0(n)?window.pageYOffset:n.scrollTop}function I0(n,r){if(Y0(n)){window.scrollTo(0,r);return}n.scrollTop=r}function N5(n){var r=getComputedStyle(n),i=r.position==="absolute",u=/(auto|scroll)/;if(r.position==="fixed")return document.documentElement;for(var l=n;l=l.parentElement;)if(r=getComputedStyle(l),!(i&&r.position==="static")&&u.test(r.overflow+r.overflowY+r.overflowX))return l;return document.documentElement}function _5(n,r,i,u){return i*((n=n/u-1)*n*n+1)+r}function zb(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:T0,l=mk(n),d=r-l,h=10,v=0;function y(){v+=h;var C=_5(v,l,d,i);I0(n,C),v<i?window.requestAnimationFrame(y):u(n)}y()}function EO(n,r){var i=n.getBoundingClientRect(),u=r.getBoundingClientRect(),l=r.offsetHeight/3;u.bottom+l>i.bottom?I0(n,Math.min(r.offsetTop+r.clientHeight-n.offsetHeight+l,n.scrollHeight)):u.top-l<i.top&&I0(n,Math.max(r.offsetTop-l,0))}function O5(n){var r=n.getBoundingClientRect();return{bottom:r.bottom,height:r.height,left:r.left,right:r.right,top:r.top,width:r.width}}function wO(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function A5(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var gk=!1,j5={get passive(){return gk=!0}},Hb=typeof window<"u"?window:{};Hb.addEventListener&&Hb.removeEventListener&&(Hb.addEventListener("p",T0,j5),Hb.removeEventListener("p",T0,!1));var D5=gk;function k5(n){return n!=null}function M5(n){return Array.isArray(n)}function Ub(n,r,i){return n?r:i}var L5=function(r){for(var i=arguments.length,u=new Array(i>1?i-1:0),l=1;l<i;l++)u[l-1]=arguments[l];var d=Object.entries(r).filter(function(h){var v=ta(h,1),y=v[0];return!u.includes(y)});return d.reduce(function(h,v){var y=ta(v,2),C=y[0],x=y[1];return h[C]=x,h},{})},P5=["children","innerProps"],F5=["children","innerProps"];function V5(n){var r=n.maxHeight,i=n.menuEl,u=n.minHeight,l=n.placement,d=n.shouldScroll,h=n.isFixedPosition,v=n.controlHeight,y=N5(i),C={placement:"bottom",maxHeight:r};if(!i||!i.offsetParent)return C;var x=y.getBoundingClientRect(),R=x.height,T=i.getBoundingClientRect(),A=T.bottom,N=T.height,O=T.top,_=i.offsetParent.getBoundingClientRect(),L=_.top,F=h?window.innerHeight:I5(y),V=mk(y),H=parseInt(getComputedStyle(i).marginBottom,10),z=parseInt(getComputedStyle(i).marginTop,10),U=L-z,J=F-O,q=U+V,Re=R-V-O,he=A-F+V+H,ge=V+O-z,fe=160;switch(l){case"auto":case"bottom":if(J>=N)return{placement:"bottom",maxHeight:r};if(Re>=N&&!h)return d&&zb(y,he,fe),{placement:"bottom",maxHeight:r};if(!h&&Re>=u||h&&J>=u){d&&zb(y,he,fe);var Oe=h?J-H:Re-H;return{placement:"bottom",maxHeight:Oe}}if(l==="auto"||h){var Te=r,xe=h?U:q;return xe>=u&&(Te=Math.min(xe-H-v,r)),{placement:"top",maxHeight:Te}}if(l==="bottom")return d&&I0(y,he),{placement:"bottom",maxHeight:r};break;case"top":if(U>=N)return{placement:"top",maxHeight:r};if(q>=N&&!h)return d&&zb(y,ge,fe),{placement:"top",maxHeight:r};if(!h&&q>=u||h&&U>=u){var je=r;return(!h&&q>=u||h&&U>=u)&&(je=h?U-z:q-z),d&&zb(y,ge,fe),{placement:"top",maxHeight:je}}return{placement:"bottom",maxHeight:r};default:throw new Error('Invalid placement provided "'.concat(l,'".'))}return C}function B5(n){var r={bottom:"top",top:"bottom"};return n?r[n]:"bottom"}var yk=function(r){return r==="auto"?"bottom":r},z5=function(r,i){var u,l=r.placement,d=r.theme,h=d.borderRadius,v=d.spacing,y=d.colors;return yt((u={label:"menu"},Pp(u,B5(l),"100%"),Pp(u,"position","absolute"),Pp(u,"width","100%"),Pp(u,"zIndex",1),u),i?{}:{backgroundColor:y.neutral0,borderRadius:h,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:v.menuGutter,marginTop:v.menuGutter})},bk=M.createContext(null),H5=function(r){var i=r.children,u=r.minMenuHeight,l=r.maxMenuHeight,d=r.menuPlacement,h=r.menuPosition,v=r.menuShouldScrollIntoView,y=r.theme,C=M.useContext(bk)||{},x=C.setPortalPlacement,R=M.useRef(null),T=M.useState(l),A=ta(T,2),N=A[0],O=A[1],_=M.useState(null),L=ta(_,2),F=L[0],V=L[1],H=y.spacing.controlHeight;return Lw(function(){var z=R.current;if(z){var U=h==="fixed",J=v&&!U,q=V5({maxHeight:l,menuEl:z,minHeight:u,placement:d,shouldScroll:J,isFixedPosition:U,controlHeight:H});O(q.maxHeight),V(q.placement),x==null||x(q.placement)}},[l,d,h,v,u,x,H]),i({ref:R,placerProps:yt(yt({},r),{},{placement:F||yk(d),maxHeight:N})})},U5=function(r){var i=r.children,u=r.innerRef,l=r.innerProps;return Et("div",Rt({},yr(r,"menu",{menu:!0}),{ref:u},l),i)},$5=U5,G5=function(r,i){var u=r.maxHeight,l=r.theme.spacing.baseUnit;return yt({maxHeight:u,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},i?{}:{paddingBottom:l,paddingTop:l})},W5=function(r){var i=r.children,u=r.innerProps,l=r.innerRef,d=r.isMulti;return Et("div",Rt({},yr(r,"menuList",{"menu-list":!0,"menu-list--is-multi":d}),{ref:l},u),i)},Ck=function(r,i){var u=r.theme,l=u.spacing.baseUnit,d=u.colors;return yt({textAlign:"center"},i?{}:{color:d.neutral40,padding:"".concat(l*2,"px ").concat(l*3,"px")})},X5=Ck,Y5=Ck,Z5=function(r){var i=r.children,u=i===void 0?"No options":i,l=r.innerProps,d=rl(r,P5);return Et("div",Rt({},yr(yt(yt({},d),{},{children:u,innerProps:l}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),l),u)},J5=function(r){var i=r.children,u=i===void 0?"Loading...":i,l=r.innerProps,d=rl(r,F5);return Et("div",Rt({},yr(yt(yt({},d),{},{children:u,innerProps:l}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),l),u)},q5=function(r){var i=r.rect,u=r.offset,l=r.position;return{left:i.left,position:l,top:u,width:i.width,zIndex:1}},Q5=function(r){var i=r.appendTo,u=r.children,l=r.controlElement,d=r.innerProps,h=r.menuPlacement,v=r.menuPosition,y=M.useRef(null),C=M.useRef(null),x=M.useState(yk(h)),R=ta(x,2),T=R[0],A=R[1],N=M.useMemo(function(){return{setPortalPlacement:A}},[]),O=M.useState(null),_=ta(O,2),L=_[0],F=_[1],V=M.useCallback(function(){if(l){var J=O5(l),q=v==="fixed"?0:window.pageYOffset,Re=J[T]+q;(Re!==(L==null?void 0:L.offset)||J.left!==(L==null?void 0:L.rect.left)||J.width!==(L==null?void 0:L.rect.width))&&F({offset:Re,rect:J})}},[l,v,T,L==null?void 0:L.offset,L==null?void 0:L.rect.left,L==null?void 0:L.rect.width]);Lw(function(){V()},[V]);var H=M.useCallback(function(){typeof C.current=="function"&&(C.current(),C.current=null),l&&y.current&&(C.current=S5(l,y.current,V,{elementResize:"ResizeObserver"in window}))},[l,V]);Lw(function(){H()},[H]);var z=M.useCallback(function(J){y.current=J,H()},[H]);if(!i&&v!=="fixed"||!L)return null;var U=Et("div",Rt({ref:z},yr(yt(yt({},r),{},{offset:L.offset,position:v,rect:L.rect}),"menuPortal",{"menu-portal":!0}),d),u);return Et(bk.Provider,{value:N},i?Gw.createPortal(U,i):U)},K5=function(r){var i=r.isDisabled,u=r.isRtl;return{label:"container",direction:u?"rtl":void 0,pointerEvents:i?"none":void 0,position:"relative"}},eX=function(r){var i=r.children,u=r.innerProps,l=r.isDisabled,d=r.isRtl;return Et("div",Rt({},yr(r,"container",{"--is-disabled":l,"--is-rtl":d}),u),i)},tX=function(r,i){var u=r.theme.spacing,l=r.isMulti,d=r.hasValue,h=r.selectProps.controlShouldRenderValue;return yt({alignItems:"center",display:l&&d&&h?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},i?{}:{padding:"".concat(u.baseUnit/2,"px ").concat(u.baseUnit*2,"px")})},nX=function(r){var i=r.children,u=r.innerProps,l=r.isMulti,d=r.hasValue;return Et("div",Rt({},yr(r,"valueContainer",{"value-container":!0,"value-container--is-multi":l,"value-container--has-value":d}),u),i)},rX=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},aX=function(r){var i=r.children,u=r.innerProps;return Et("div",Rt({},yr(r,"indicatorsContainer",{indicators:!0}),u),i)},RO,iX=["size"],oX=["innerProps","isRtl","size"];function sX(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var lX=Pw.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:sX},xk=function(r){var i=r.size,u=rl(r,iX);return Et("svg",Rt({height:i,width:i,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:lX},u))},UR=function(r){return Et(xk,Rt({size:20},r),Et("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Sk=function(r){return Et(xk,Rt({size:20},r),Et("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Ek=function(r,i){var u=r.isFocused,l=r.theme,d=l.spacing.baseUnit,h=l.colors;return yt({label:"indicatorContainer",display:"flex",transition:"color 150ms"},i?{}:{color:u?h.neutral60:h.neutral20,padding:d*2,":hover":{color:u?h.neutral80:h.neutral40}})},uX=Ek,cX=function(r){var i=r.children,u=r.innerProps;return Et("div",Rt({},yr(r,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),u),i||Et(Sk,null))},fX=Ek,dX=function(r){var i=r.children,u=r.innerProps;return Et("div",Rt({},yr(r,"clearIndicator",{indicator:!0,"clear-indicator":!0}),u),i||Et(UR,null))},pX=function(r,i){var u=r.isDisabled,l=r.theme,d=l.spacing.baseUnit,h=l.colors;return yt({label:"indicatorSeparator",alignSelf:"stretch",width:1},i?{}:{backgroundColor:u?h.neutral10:h.neutral20,marginBottom:d*2,marginTop:d*2})},vX=function(r){var i=r.innerProps;return Et("span",Rt({},i,yr(r,"indicatorSeparator",{"indicator-separator":!0})))},hX=a5(RO||(RO=c5([`
|
|
307
307
|
0%, 80%, 100% { opacity: 0; }
|
|
308
308
|
40% { opacity: 1; }
|
|
309
|
-
`]))),mX=function(r,i){var u=r.isFocused,l=r.size,d=r.theme,h=d.colors,v=d.spacing.baseUnit;return yt({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:l,lineHeight:1,marginRight:l,textAlign:"center",verticalAlign:"middle"},i?{}:{color:u?h.neutral60:h.neutral20,padding:v*2})},XE=function(r){var i=r.delay,u=r.offset;return Et("span",{css:VR({animation:"".concat(hX," 1s ease-in-out ").concat(i,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:u?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},Pw.NODE_ENV==="production"?"":";label:LoadingDot;",Pw.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},gX=function(r){var i=r.innerProps,u=r.isRtl,l=r.size,d=l===void 0?4:l,h=rl(r,oX);return Et("div",Rt({},yr(yt(yt({},h),{},{innerProps:i,isRtl:u,size:d}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),i),Et(XE,{delay:0,offset:u}),Et(XE,{delay:160,offset:!0}),Et(XE,{delay:320,offset:!u}))},yX=function(r,i){var u=r.isDisabled,l=r.isFocused,d=r.theme,h=d.colors,v=d.borderRadius,y=d.spacing;return yt({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:y.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},i?{}:{backgroundColor:u?h.neutral5:h.neutral0,borderColor:u?h.neutral10:l?h.primary:h.neutral20,borderRadius:v,borderStyle:"solid",borderWidth:1,boxShadow:l?"0 0 0 1px ".concat(h.primary):void 0,"&:hover":{borderColor:l?h.primary:h.neutral30}})},bX=function(r){var i=r.children,u=r.isDisabled,l=r.isFocused,d=r.innerRef,h=r.innerProps,v=r.menuIsOpen;return Et("div",Rt({ref:d},yr(r,"control",{control:!0,"control--is-disabled":u,"control--is-focused":l,"control--menu-is-open":v}),h,{"aria-disabled":u||void 0}),i)},CX=bX,xX=["data"],SX=function(r,i){var u=r.theme.spacing;return i?{}:{paddingBottom:u.baseUnit*2,paddingTop:u.baseUnit*2}},EX=function(r){var i=r.children,u=r.cx,l=r.getStyles,d=r.getClassNames,h=r.Heading,v=r.headingProps,y=r.innerProps,C=r.label,x=r.theme,w=r.selectProps;return Et("div",Rt({},yr(r,"group",{group:!0}),y),Et(h,Rt({},v,{selectProps:w,theme:x,getStyles:l,getClassNames:d,cx:u}),C),Et("div",null,i))},wX=function(r,i){var u=r.theme,l=u.colors,d=u.spacing;return yt({label:"group",cursor:"default",display:"block"},i?{}:{color:l.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:d.baseUnit*3,paddingRight:d.baseUnit*3,textTransform:"uppercase"})},RX=function(r){var i=hk(r);i.data;var u=rl(i,xX);return Et("div",Rt({},yr(r,"groupHeading",{"group-heading":!0}),u))},TX=EX,IX=["innerRef","isDisabled","isHidden","inputClassName"],NX=function(r,i){var u=r.isDisabled,l=r.value,d=r.theme,h=d.spacing,v=d.colors;return yt(yt({visibility:u?"hidden":"visible",transform:l?"translateZ(0)":""},_X),i?{}:{margin:h.baseUnit/2,paddingBottom:h.baseUnit/2,paddingTop:h.baseUnit/2,color:v.neutral80})},wk={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},_X={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":yt({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},wk)},OX=function(r){return yt({label:"input",color:"inherit",background:0,opacity:r?0:1,width:"100%"},wk)},AX=function(r){var i=r.cx,u=r.value,l=hk(r),d=l.innerRef,h=l.isDisabled,v=l.isHidden,y=l.inputClassName,C=rl(l,IX);return Et("div",Rt({},yr(r,"input",{"input-container":!0}),{"data-value":u||""}),Et("input",Rt({className:i({input:!0},y),ref:d,style:OX(v),disabled:h},C)))},jX=AX,DX=function(r,i){var u=r.theme,l=u.spacing,d=u.borderRadius,h=u.colors;return yt({label:"multiValue",display:"flex",minWidth:0},i?{}:{backgroundColor:h.neutral10,borderRadius:d/2,margin:l.baseUnit/2})},kX=function(r,i){var u=r.theme,l=u.borderRadius,d=u.colors,h=r.cropWithEllipsis;return yt({overflow:"hidden",textOverflow:h||h===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},i?{}:{borderRadius:l/2,color:d.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},MX=function(r,i){var u=r.theme,l=u.spacing,d=u.borderRadius,h=u.colors,v=r.isFocused;return yt({alignItems:"center",display:"flex"},i?{}:{borderRadius:d/2,backgroundColor:v?h.dangerLight:void 0,paddingLeft:l.baseUnit,paddingRight:l.baseUnit,":hover":{backgroundColor:h.dangerLight,color:h.danger}})},Rk=function(r){var i=r.children,u=r.innerProps;return Et("div",u,i)},LX=Rk,PX=Rk;function FX(n){var r=n.children,i=n.innerProps;return Et("div",Rt({role:"button"},i),r||Et(UR,{size:14}))}var VX=function(r){var i=r.children,u=r.components,l=r.data,d=r.innerProps,h=r.isDisabled,v=r.removeProps,y=r.selectProps,C=u.Container,x=u.Label,w=u.Remove;return Et(C,{data:l,innerProps:yt(yt({},yr(r,"multiValue",{"multi-value":!0,"multi-value--is-disabled":h})),d),selectProps:y},Et(x,{data:l,innerProps:yt({},yr(r,"multiValueLabel",{"multi-value__label":!0})),selectProps:y},i),Et(w,{data:l,innerProps:yt(yt({},yr(r,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(i||"option")},v),selectProps:y}))},BX=VX,zX=function(r,i){var u=r.isDisabled,l=r.isFocused,d=r.isSelected,h=r.theme,v=h.spacing,y=h.colors;return yt({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},i?{}:{backgroundColor:d?y.primary:l?y.primary25:"transparent",color:u?y.neutral20:d?y.neutral0:"inherit",padding:"".concat(v.baseUnit*2,"px ").concat(v.baseUnit*3,"px"),":active":{backgroundColor:u?void 0:d?y.primary:y.primary50}})},HX=function(r){var i=r.children,u=r.isDisabled,l=r.isFocused,d=r.isSelected,h=r.innerRef,v=r.innerProps;return Et("div",Rt({},yr(r,"option",{option:!0,"option--is-disabled":u,"option--is-focused":l,"option--is-selected":d}),{ref:h,"aria-disabled":u},v),i)},UX=HX,$X=function(r,i){var u=r.theme,l=u.spacing,d=u.colors;return yt({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},i?{}:{color:d.neutral50,marginLeft:l.baseUnit/2,marginRight:l.baseUnit/2})},GX=function(r){var i=r.children,u=r.innerProps;return Et("div",Rt({},yr(r,"placeholder",{placeholder:!0}),u),i)},WX=GX,XX=function(r,i){var u=r.isDisabled,l=r.theme,d=l.spacing,h=l.colors;return yt({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},i?{}:{color:u?h.neutral40:h.neutral80,marginLeft:d.baseUnit/2,marginRight:d.baseUnit/2})},YX=function(r){var i=r.children,u=r.isDisabled,l=r.innerProps;return Et("div",Rt({},yr(r,"singleValue",{"single-value":!0,"single-value--is-disabled":u}),l),i)},ZX=YX,JX={ClearIndicator:dX,Control:CX,DropdownIndicator:cX,DownChevron:Sk,CrossIcon:UR,Group:TX,GroupHeading:RX,IndicatorsContainer:aX,IndicatorSeparator:vX,Input:jX,LoadingIndicator:gX,Menu:$5,MenuList:W5,MenuPortal:Q5,LoadingMessage:J5,NoOptionsMessage:Z5,MultiValue:BX,MultiValueContainer:LX,MultiValueLabel:PX,MultiValueRemove:FX,Option:UX,Placeholder:WX,SelectContainer:eX,SingleValue:ZX,ValueContainer:nX},qX=function(r){return yt(yt({},JX),r.components)},TO=Number.isNaN||function(r){return typeof r=="number"&&r!==r};function QX(n,r){return!!(n===r||TO(n)&&TO(r))}function KX(n,r){if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!QX(n[i],r[i]))return!1;return!0}function eY(n,r){r===void 0&&(r=KX);var i=null;function u(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];if(i&&i.lastThis===this&&r(l,i.lastArgs))return i.lastResult;var h=n.apply(this,l);return i={lastResult:h,lastArgs:l,lastThis:this},h}return u.clear=function(){i=null},u}var Tm={};function tY(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var nY=Tm.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:tY},rY=function(r){return Et("span",Rt({css:nY},r))},IO=rY,aY={guidance:function(r){var i=r.isSearchable,u=r.isMulti,l=r.tabSelectsValue,d=r.context,h=r.isInitialFocus;switch(d){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(l?", press Tab to select the option and exit the menu":"",".");case"input":return h?"".concat(r["aria-label"]||"Select"," is focused ").concat(i?",type to refine list":"",", press Down to open the menu, ").concat(u?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(r){var i=r.action,u=r.label,l=u===void 0?"":u,d=r.labels,h=r.isDisabled;switch(i){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(l,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(d.length>1?"s":""," ").concat(d.join(","),", selected.");case"select-option":return h?"option ".concat(l," is disabled. Select another option."):"option ".concat(l,", selected.");default:return""}},onFocus:function(r){var i=r.context,u=r.focused,l=r.options,d=r.label,h=d===void 0?"":d,v=r.selectValue,y=r.isDisabled,C=r.isSelected,x=r.isAppleDevice,w=function(O,_){return O&&O.length?"".concat(O.indexOf(_)+1," of ").concat(O.length):""};if(i==="value"&&v)return"value ".concat(h," focused, ").concat(w(v,u),".");if(i==="menu"&&x){var T=y?" disabled":"",A="".concat(C?" selected":"").concat(T);return"".concat(h).concat(A,", ").concat(w(l,u),".")}return""},onFilter:function(r){var i=r.inputValue,u=r.resultsMessage;return"".concat(u).concat(i?" for search term "+i:"",".")}},iY=function(r){var i=r.ariaSelection,u=r.focusedOption,l=r.focusedValue,d=r.focusableOptions,h=r.isFocused,v=r.selectValue,y=r.selectProps,C=r.id,x=r.isAppleDevice,w=y.ariaLiveMessages,T=y.getOptionLabel,A=y.inputValue,N=y.isMulti,O=y.isOptionDisabled,_=y.isSearchable,L=y.menuIsOpen,F=y.options,V=y.screenReaderStatus,H=y.tabSelectsValue,z=y.isLoading,U=y["aria-label"],J=y["aria-live"],q=M.useMemo(function(){return yt(yt({},aY),w||{})},[w]),Re=M.useMemo(function(){var xe="";if(i&&q.onChange){var je=i.option,Le=i.options,ne=i.removedValue,_e=i.removedValues,G=i.value,Y=function(we){return Array.isArray(we)?null:we},re=ne||je||Y(G),ye=re?T(re):"",Se=Le||_e||void 0,Ne=Se?Se.map(T):[],le=yt({isDisabled:re&&O(re,v),label:ye,labels:Ne},i);xe=q.onChange(le)}return xe},[i,q,O,v,T]),he=M.useMemo(function(){var xe="",je=u||l,Le=!!(u&&v&&v.includes(u));if(je&&q.onFocus){var ne={focused:je,label:T(je),isDisabled:O(je,v),isSelected:Le,options:d,context:je===u?"menu":"value",selectValue:v,isAppleDevice:x};xe=q.onFocus(ne)}return xe},[u,l,T,O,q,d,v,x]),ge=M.useMemo(function(){var xe="";if(L&&F.length&&!z&&q.onFilter){var je=V({count:d.length});xe=q.onFilter({inputValue:A,resultsMessage:je})}return xe},[d,A,L,q,F,V,z]),fe=(i==null?void 0:i.action)==="initial-input-focus",Oe=M.useMemo(function(){var xe="";if(q.guidance){var je=l?"value":L?"menu":"input";xe=q.guidance({"aria-label":U,context:je,isDisabled:u&&O(u,v),isMulti:N,isSearchable:_,tabSelectsValue:H,isInitialFocus:fe})}return xe},[U,u,l,N,O,_,L,q,v,H,fe]),Te=Et(M.Fragment,null,Et("span",{id:"aria-selection"},Re),Et("span",{id:"aria-focused"},he),Et("span",{id:"aria-results"},ge),Et("span",{id:"aria-guidance"},Oe));return Et(M.Fragment,null,Et(IO,{id:C},fe&&Te),Et(IO,{"aria-live":J,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},h&&!fe&&Te))},oY=iY,Fw=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],sY=new RegExp("["+Fw.map(function(n){return n.letters}).join("")+"]","g"),Tk={};for(var YE=0;YE<Fw.length;YE++)for(var ZE=Fw[YE],JE=0;JE<ZE.letters.length;JE++)Tk[ZE.letters[JE]]=ZE.base;var Ik=function(r){return r.replace(sY,function(i){return Tk[i]})},lY=eY(Ik),NO=function(r){return r.replace(/^\s+|\s+$/g,"")},uY=function(r){return"".concat(r.label," ").concat(r.value)},cY=function(r){return function(i,u){if(i.data.__isNew__)return!0;var l=yt({ignoreCase:!0,ignoreAccents:!0,stringify:uY,trim:!0,matchFrom:"any"},r),d=l.ignoreCase,h=l.ignoreAccents,v=l.stringify,y=l.trim,C=l.matchFrom,x=y?NO(u):u,w=y?NO(v(i)):v(i);return d&&(x=x.toLowerCase(),w=w.toLowerCase()),h&&(x=lY(x),w=Ik(w)),C==="start"?w.substr(0,x.length)===x:w.indexOf(x)>-1}},fY=["innerRef"];function dY(n){var r=n.innerRef,i=rl(n,fY),u=L5(i,"onExited","in","enter","exit","appear");return Et("input",Rt({ref:r},u,{css:VR({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},Tm.NODE_ENV==="production"?"":";label:DummyInput;",Tm.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var pY=function(r){r.cancelable&&r.preventDefault(),r.stopPropagation()};function vY(n){var r=n.isEnabled,i=n.onBottomArrive,u=n.onBottomLeave,l=n.onTopArrive,d=n.onTopLeave,h=M.useRef(!1),v=M.useRef(!1),y=M.useRef(0),C=M.useRef(null),x=M.useCallback(function(_,L){if(C.current!==null){var F=C.current,V=F.scrollTop,H=F.scrollHeight,z=F.clientHeight,U=C.current,J=L>0,q=H-z-V,Re=!1;q>L&&h.current&&(u&&u(_),h.current=!1),J&&v.current&&(d&&d(_),v.current=!1),J&&L>q?(i&&!h.current&&i(_),U.scrollTop=H,Re=!0,h.current=!0):!J&&-L>V&&(l&&!v.current&&l(_),U.scrollTop=0,Re=!0,v.current=!0),Re&&pY(_)}},[i,u,l,d]),w=M.useCallback(function(_){x(_,_.deltaY)},[x]),T=M.useCallback(function(_){y.current=_.changedTouches[0].clientY},[]),A=M.useCallback(function(_){var L=y.current-_.changedTouches[0].clientY;x(_,L)},[x]),N=M.useCallback(function(_){if(_){var L=D5?{passive:!1}:!1;_.addEventListener("wheel",w,L),_.addEventListener("touchstart",T,L),_.addEventListener("touchmove",A,L)}},[A,T,w]),O=M.useCallback(function(_){_&&(_.removeEventListener("wheel",w,!1),_.removeEventListener("touchstart",T,!1),_.removeEventListener("touchmove",A,!1))},[A,T,w]);return M.useEffect(function(){if(r){var _=C.current;return N(_),function(){O(_)}}},[r,N,O]),function(_){C.current=_}}var _O=["boxSizing","height","overflow","paddingRight","position"],OO={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function AO(n){n.preventDefault()}function jO(n){n.stopPropagation()}function DO(){var n=this.scrollTop,r=this.scrollHeight,i=n+this.offsetHeight;n===0?this.scrollTop=1:i===r&&(this.scrollTop=n-1)}function kO(){return"ontouchstart"in window||navigator.maxTouchPoints}var MO=!!(typeof window<"u"&&window.document&&window.document.createElement),lm=0,Lp={capture:!1,passive:!1};function hY(n){var r=n.isEnabled,i=n.accountForScrollbars,u=i===void 0?!0:i,l=M.useRef({}),d=M.useRef(null),h=M.useCallback(function(y){if(MO){var C=document.body,x=C&&C.style;if(u&&_O.forEach(function(N){var O=x&&x[N];l.current[N]=O}),u&&lm<1){var w=parseInt(l.current.paddingRight,10)||0,T=document.body?document.body.clientWidth:0,A=window.innerWidth-T+w||0;Object.keys(OO).forEach(function(N){var O=OO[N];x&&(x[N]=O)}),x&&(x.paddingRight="".concat(A,"px"))}C&&kO()&&(C.addEventListener("touchmove",AO,Lp),y&&(y.addEventListener("touchstart",DO,Lp),y.addEventListener("touchmove",jO,Lp))),lm+=1}},[u]),v=M.useCallback(function(y){if(MO){var C=document.body,x=C&&C.style;lm=Math.max(lm-1,0),u&&lm<1&&_O.forEach(function(w){var T=l.current[w];x&&(x[w]=T)}),C&&kO()&&(C.removeEventListener("touchmove",AO,Lp),y&&(y.removeEventListener("touchstart",DO,Lp),y.removeEventListener("touchmove",jO,Lp)))}},[u]);return M.useEffect(function(){if(r){var y=d.current;return h(y),function(){v(y)}}},[r,h,v]),function(y){d.current=y}}function mY(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var gY=function(r){var i=r.target;return i.ownerDocument.activeElement&&i.ownerDocument.activeElement.blur()},yY=Tm.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:mY};function bY(n){var r=n.children,i=n.lockEnabled,u=n.captureEnabled,l=u===void 0?!0:u,d=n.onBottomArrive,h=n.onBottomLeave,v=n.onTopArrive,y=n.onTopLeave,C=vY({isEnabled:l,onBottomArrive:d,onBottomLeave:h,onTopArrive:v,onTopLeave:y}),x=hY({isEnabled:i}),w=function(A){C(A),x(A)};return Et(M.Fragment,null,i&&Et("div",{onClick:gY,css:yY}),r(w))}function CY(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var xY=Tm.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:CY},SY=function(r){var i=r.name,u=r.onFocus;return Et("input",{required:!0,name:i,tabIndex:-1,"aria-hidden":"true",onFocus:u,css:xY,value:"",onChange:function(){}})},EY=SY;function $R(n){var r;return typeof window<"u"&&window.navigator!=null?n.test(((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.platform)||window.navigator.platform):!1}function wY(){return $R(/^iPhone/i)}function Nk(){return $R(/^Mac/i)}function RY(){return $R(/^iPad/i)||Nk()&&navigator.maxTouchPoints>1}function TY(){return wY()||RY()}function IY(){return Nk()||TY()}var NY=function(r){return r.label},_Y=function(r){return r.label},OY=function(r){return r.value},AY=function(r){return!!r.isDisabled},jY={clearIndicator:fX,container:K5,control:yX,dropdownIndicator:uX,group:SX,groupHeading:wX,indicatorsContainer:rX,indicatorSeparator:pX,input:NX,loadingIndicator:mX,loadingMessage:Y5,menu:z5,menuList:G5,menuPortal:q5,multiValue:DX,multiValueLabel:kX,multiValueRemove:MX,noOptionsMessage:X5,option:zX,placeholder:$X,singleValue:XX,valueContainer:tX},DY={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},kY=4,_k=4,MY=38,LY=_k*2,PY={baseUnit:_k,controlHeight:MY,menuGutter:LY},qE={borderRadius:kY,colors:DY,spacing:PY},FY={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:wO(),captureMenuScroll:!wO(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:cY(),formatGroupLabel:NY,getOptionLabel:_Y,getOptionValue:OY,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:AY,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!A5(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(r){var i=r.count;return"".concat(i," result").concat(i!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function LO(n,r,i,u){var l=jk(n,r,i),d=Dk(n,r,i),h=Ak(n,r),v=N0(n,r);return{type:"option",data:r,isDisabled:l,isSelected:d,label:h,value:v,index:u}}function n0(n,r){return n.options.map(function(i,u){if("options"in i){var l=i.options.map(function(h,v){return LO(n,h,r,v)}).filter(function(h){return FO(n,h)});return l.length>0?{type:"group",data:i,options:l,index:u}:void 0}var d=LO(n,i,r,u);return FO(n,d)?d:void 0}).filter(k5)}function Ok(n){return n.reduce(function(r,i){return i.type==="group"?r.push.apply(r,NR(i.options.map(function(u){return u.data}))):r.push(i.data),r},[])}function PO(n,r){return n.reduce(function(i,u){return u.type==="group"?i.push.apply(i,NR(u.options.map(function(l){return{data:l.data,id:"".concat(r,"-").concat(u.index,"-").concat(l.index)}}))):i.push({data:u.data,id:"".concat(r,"-").concat(u.index)}),i},[])}function VY(n,r){return Ok(n0(n,r))}function FO(n,r){var i=n.inputValue,u=i===void 0?"":i,l=r.data,d=r.isSelected,h=r.label,v=r.value;return(!Mk(n)||!d)&&kk(n,{label:h,value:v,data:l},u)}function BY(n,r){var i=n.focusedValue,u=n.selectValue,l=u.indexOf(i);if(l>-1){var d=r.indexOf(i);if(d>-1)return i;if(l<r.length)return r[l]}return null}function zY(n,r){var i=n.focusedOption;return i&&r.indexOf(i)>-1?i:r[0]}var QE=function(r,i){var u,l=(u=r.find(function(d){return d.data===i}))===null||u===void 0?void 0:u.id;return l||null},Ak=function(r,i){return r.getOptionLabel(i)},N0=function(r,i){return r.getOptionValue(i)};function jk(n,r,i){return typeof n.isOptionDisabled=="function"?n.isOptionDisabled(r,i):!1}function Dk(n,r,i){if(i.indexOf(r)>-1)return!0;if(typeof n.isOptionSelected=="function")return n.isOptionSelected(r,i);var u=N0(n,r);return i.some(function(l){return N0(n,l)===u})}function kk(n,r,i){return n.filterOption?n.filterOption(r,i):!0}var Mk=function(r){var i=r.hideSelectedOptions,u=r.isMulti;return i===void 0?u:i},HY=1,GR=function(n){X4(i,n);var r=J4(i);function i(u){var l;if(G4(this,i),l=r.call(this,u),l.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},l.blockOptionHover=!1,l.isComposing=!1,l.commonProps=void 0,l.initialTouchX=0,l.initialTouchY=0,l.openAfterFocus=!1,l.scrollToFocusedOptionOnUpdate=!1,l.userIsDragging=void 0,l.isAppleDevice=IY(),l.controlRef=null,l.getControlRef=function(y){l.controlRef=y},l.focusedOptionRef=null,l.getFocusedOptionRef=function(y){l.focusedOptionRef=y},l.menuListRef=null,l.getMenuListRef=function(y){l.menuListRef=y},l.inputRef=null,l.getInputRef=function(y){l.inputRef=y},l.focus=l.focusInput,l.blur=l.blurInput,l.onChange=function(y,C){var x=l.props,w=x.onChange,T=x.name;C.name=T,l.ariaOnChange(y,C),w(y,C)},l.setValue=function(y,C,x){var w=l.props,T=w.closeMenuOnSelect,A=w.isMulti,N=w.inputValue;l.onInputChange("",{action:"set-value",prevInputValue:N}),T&&(l.setState({inputIsHiddenAfterUpdate:!A}),l.onMenuClose()),l.setState({clearFocusValueOnUpdate:!0}),l.onChange(y,{action:C,option:x})},l.selectOption=function(y){var C=l.props,x=C.blurInputOnSelect,w=C.isMulti,T=C.name,A=l.state.selectValue,N=w&&l.isOptionSelected(y,A),O=l.isOptionDisabled(y,A);if(N){var _=l.getOptionValue(y);l.setValue(A.filter(function(L){return l.getOptionValue(L)!==_}),"deselect-option",y)}else if(!O)w?l.setValue([].concat(NR(A),[y]),"select-option",y):l.setValue(y,"select-option");else{l.ariaOnChange(y,{action:"select-option",option:y,name:T});return}x&&l.blurInput()},l.removeValue=function(y){var C=l.props.isMulti,x=l.state.selectValue,w=l.getOptionValue(y),T=x.filter(function(N){return l.getOptionValue(N)!==w}),A=Ub(C,T,T[0]||null);l.onChange(A,{action:"remove-value",removedValue:y}),l.focusInput()},l.clearValue=function(){var y=l.state.selectValue;l.onChange(Ub(l.props.isMulti,[],null),{action:"clear",removedValues:y})},l.popValue=function(){var y=l.props.isMulti,C=l.state.selectValue,x=C[C.length-1],w=C.slice(0,C.length-1),T=Ub(y,w,w[0]||null);l.onChange(T,{action:"pop-value",removedValue:x})},l.getFocusedOptionId=function(y){return QE(l.state.focusableOptionsWithIds,y)},l.getFocusableOptionsWithIds=function(){return PO(n0(l.props,l.state.selectValue),l.getElementId("option"))},l.getValue=function(){return l.state.selectValue},l.cx=function(){for(var y=arguments.length,C=new Array(y),x=0;x<y;x++)C[x]=arguments[x];return R5.apply(void 0,[l.props.classNamePrefix].concat(C))},l.getOptionLabel=function(y){return Ak(l.props,y)},l.getOptionValue=function(y){return N0(l.props,y)},l.getStyles=function(y,C){var x=l.props.unstyled,w=jY[y](C,x);w.boxSizing="border-box";var T=l.props.styles[y];return T?T(w,C):w},l.getClassNames=function(y,C){var x,w;return(x=(w=l.props.classNames)[y])===null||x===void 0?void 0:x.call(w,C)},l.getElementId=function(y){return"".concat(l.state.instancePrefix,"-").concat(y)},l.getComponents=function(){return qX(l.props)},l.buildCategorizedOptions=function(){return n0(l.props,l.state.selectValue)},l.getCategorizedOptions=function(){return l.props.menuIsOpen?l.buildCategorizedOptions():[]},l.buildFocusableOptions=function(){return Ok(l.buildCategorizedOptions())},l.getFocusableOptions=function(){return l.props.menuIsOpen?l.buildFocusableOptions():[]},l.ariaOnChange=function(y,C){l.setState({ariaSelection:yt({value:y},C)})},l.onMenuMouseDown=function(y){y.button===0&&(y.stopPropagation(),y.preventDefault(),l.focusInput())},l.onMenuMouseMove=function(y){l.blockOptionHover=!1},l.onControlMouseDown=function(y){if(!y.defaultPrevented){var C=l.props.openMenuOnClick;l.state.isFocused?l.props.menuIsOpen?y.target.tagName!=="INPUT"&&y.target.tagName!=="TEXTAREA"&&l.onMenuClose():C&&l.openMenu("first"):(C&&(l.openAfterFocus=!0),l.focusInput()),y.target.tagName!=="INPUT"&&y.target.tagName!=="TEXTAREA"&&y.preventDefault()}},l.onDropdownIndicatorMouseDown=function(y){if(!(y&&y.type==="mousedown"&&y.button!==0)&&!l.props.isDisabled){var C=l.props,x=C.isMulti,w=C.menuIsOpen;l.focusInput(),w?(l.setState({inputIsHiddenAfterUpdate:!x}),l.onMenuClose()):l.openMenu("first"),y.preventDefault()}},l.onClearIndicatorMouseDown=function(y){y&&y.type==="mousedown"&&y.button!==0||(l.clearValue(),y.preventDefault(),l.openAfterFocus=!1,y.type==="touchend"?l.focusInput():setTimeout(function(){return l.focusInput()}))},l.onScroll=function(y){typeof l.props.closeMenuOnScroll=="boolean"?y.target instanceof HTMLElement&&Y0(y.target)&&l.props.onMenuClose():typeof l.props.closeMenuOnScroll=="function"&&l.props.closeMenuOnScroll(y)&&l.props.onMenuClose()},l.onCompositionStart=function(){l.isComposing=!0},l.onCompositionEnd=function(){l.isComposing=!1},l.onTouchStart=function(y){var C=y.touches,x=C&&C.item(0);x&&(l.initialTouchX=x.clientX,l.initialTouchY=x.clientY,l.userIsDragging=!1)},l.onTouchMove=function(y){var C=y.touches,x=C&&C.item(0);if(x){var w=Math.abs(x.clientX-l.initialTouchX),T=Math.abs(x.clientY-l.initialTouchY),A=5;l.userIsDragging=w>A||T>A}},l.onTouchEnd=function(y){l.userIsDragging||(l.controlRef&&!l.controlRef.contains(y.target)&&l.menuListRef&&!l.menuListRef.contains(y.target)&&l.blurInput(),l.initialTouchX=0,l.initialTouchY=0)},l.onControlTouchEnd=function(y){l.userIsDragging||l.onControlMouseDown(y)},l.onClearIndicatorTouchEnd=function(y){l.userIsDragging||l.onClearIndicatorMouseDown(y)},l.onDropdownIndicatorTouchEnd=function(y){l.userIsDragging||l.onDropdownIndicatorMouseDown(y)},l.handleInputChange=function(y){var C=l.props.inputValue,x=y.currentTarget.value;l.setState({inputIsHiddenAfterUpdate:!1}),l.onInputChange(x,{action:"input-change",prevInputValue:C}),l.props.menuIsOpen||l.onMenuOpen()},l.onInputFocus=function(y){l.props.onFocus&&l.props.onFocus(y),l.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(l.openAfterFocus||l.props.openMenuOnFocus)&&l.openMenu("first"),l.openAfterFocus=!1},l.onInputBlur=function(y){var C=l.props.inputValue;if(l.menuListRef&&l.menuListRef.contains(document.activeElement)){l.inputRef.focus();return}l.props.onBlur&&l.props.onBlur(y),l.onInputChange("",{action:"input-blur",prevInputValue:C}),l.onMenuClose(),l.setState({focusedValue:null,isFocused:!1})},l.onOptionHover=function(y){if(!(l.blockOptionHover||l.state.focusedOption===y)){var C=l.getFocusableOptions(),x=C.indexOf(y);l.setState({focusedOption:y,focusedOptionId:x>-1?l.getFocusedOptionId(y):null})}},l.shouldHideSelectedOptions=function(){return Mk(l.props)},l.onValueInputFocus=function(y){y.preventDefault(),y.stopPropagation(),l.focus()},l.onKeyDown=function(y){var C=l.props,x=C.isMulti,w=C.backspaceRemovesValue,T=C.escapeClearsValue,A=C.inputValue,N=C.isClearable,O=C.isDisabled,_=C.menuIsOpen,L=C.onKeyDown,F=C.tabSelectsValue,V=C.openMenuOnFocus,H=l.state,z=H.focusedOption,U=H.focusedValue,J=H.selectValue;if(!O&&!(typeof L=="function"&&(L(y),y.defaultPrevented))){switch(l.blockOptionHover=!0,y.key){case"ArrowLeft":if(!x||A)return;l.focusValue("previous");break;case"ArrowRight":if(!x||A)return;l.focusValue("next");break;case"Delete":case"Backspace":if(A)return;if(U)l.removeValue(U);else{if(!w)return;x?l.popValue():N&&l.clearValue()}break;case"Tab":if(l.isComposing||y.shiftKey||!_||!F||!z||V&&l.isOptionSelected(z,J))return;l.selectOption(z);break;case"Enter":if(y.keyCode===229)break;if(_){if(!z||l.isComposing)return;l.selectOption(z);break}return;case"Escape":_?(l.setState({inputIsHiddenAfterUpdate:!1}),l.onInputChange("",{action:"menu-close",prevInputValue:A}),l.onMenuClose()):N&&T&&l.clearValue();break;case" ":if(A)return;if(!_){l.openMenu("first");break}if(!z)return;l.selectOption(z);break;case"ArrowUp":_?l.focusOption("up"):l.openMenu("last");break;case"ArrowDown":_?l.focusOption("down"):l.openMenu("first");break;case"PageUp":if(!_)return;l.focusOption("pageup");break;case"PageDown":if(!_)return;l.focusOption("pagedown");break;case"Home":if(!_)return;l.focusOption("first");break;case"End":if(!_)return;l.focusOption("last");break;default:return}y.preventDefault()}},l.state.instancePrefix="react-select-"+(l.props.instanceId||++HY),l.state.selectValue=SO(u.value),u.menuIsOpen&&l.state.selectValue.length){var d=l.getFocusableOptionsWithIds(),h=l.buildFocusableOptions(),v=h.indexOf(l.state.selectValue[0]);l.state.focusableOptionsWithIds=d,l.state.focusedOption=h[v],l.state.focusedOptionId=QE(d,h[v])}return l}return W4(i,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&EO(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(l){var d=this.props,h=d.isDisabled,v=d.menuIsOpen,y=this.state.isFocused;(y&&!h&&l.isDisabled||y&&v&&!l.menuIsOpen)&&this.focusInput(),y&&h&&!l.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!y&&!h&&l.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(EO(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(l,d){this.props.onInputChange(l,d)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(l){var d=this,h=this.state,v=h.selectValue,y=h.isFocused,C=this.buildFocusableOptions(),x=l==="first"?0:C.length-1;if(!this.props.isMulti){var w=C.indexOf(v[0]);w>-1&&(x=w)}this.scrollToFocusedOptionOnUpdate=!(y&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:C[x],focusedOptionId:this.getFocusedOptionId(C[x])},function(){return d.onMenuOpen()})}},{key:"focusValue",value:function(l){var d=this.state,h=d.selectValue,v=d.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var y=h.indexOf(v);v||(y=-1);var C=h.length-1,x=-1;if(h.length){switch(l){case"previous":y===0?x=0:y===-1?x=C:x=y-1;break;case"next":y>-1&&y<C&&(x=y+1);break}this.setState({inputIsHidden:x!==-1,focusedValue:h[x]})}}}},{key:"focusOption",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",d=this.props.pageSize,h=this.state.focusedOption,v=this.getFocusableOptions();if(v.length){var y=0,C=v.indexOf(h);h||(C=-1),l==="up"?y=C>0?C-1:v.length-1:l==="down"?y=(C+1)%v.length:l==="pageup"?(y=C-d,y<0&&(y=0)):l==="pagedown"?(y=C+d,y>v.length-1&&(y=v.length-1)):l==="last"&&(y=v.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:v[y],focusedValue:null,focusedOptionId:this.getFocusedOptionId(v[y])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(qE):yt(yt({},qE),this.props.theme):qE}},{key:"getCommonProps",value:function(){var l=this.clearValue,d=this.cx,h=this.getStyles,v=this.getClassNames,y=this.getValue,C=this.selectOption,x=this.setValue,w=this.props,T=w.isMulti,A=w.isRtl,N=w.options,O=this.hasValue();return{clearValue:l,cx:d,getStyles:h,getClassNames:v,getValue:y,hasValue:O,isMulti:T,isRtl:A,options:N,selectOption:C,selectProps:w,setValue:x,theme:this.getTheme()}}},{key:"hasValue",value:function(){var l=this.state.selectValue;return l.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var l=this.props,d=l.isClearable,h=l.isMulti;return d===void 0?h:d}},{key:"isOptionDisabled",value:function(l,d){return jk(this.props,l,d)}},{key:"isOptionSelected",value:function(l,d){return Dk(this.props,l,d)}},{key:"filterOption",value:function(l,d){return kk(this.props,l,d)}},{key:"formatOptionLabel",value:function(l,d){if(typeof this.props.formatOptionLabel=="function"){var h=this.props.inputValue,v=this.state.selectValue;return this.props.formatOptionLabel(l,{context:d,inputValue:h,selectValue:v})}else return this.getOptionLabel(l)}},{key:"formatGroupLabel",value:function(l){return this.props.formatGroupLabel(l)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var l=this.props,d=l.isDisabled,h=l.isSearchable,v=l.inputId,y=l.inputValue,C=l.tabIndex,x=l.form,w=l.menuIsOpen,T=l.required,A=this.getComponents(),N=A.Input,O=this.state,_=O.inputIsHidden,L=O.ariaSelection,F=this.commonProps,V=v||this.getElementId("input"),H=yt(yt(yt({"aria-autocomplete":"list","aria-expanded":w,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":T,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},w&&{"aria-controls":this.getElementId("listbox")}),!h&&{"aria-readonly":!0}),this.hasValue()?(L==null?void 0:L.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return h?M.createElement(N,Rt({},F,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:V,innerRef:this.getInputRef,isDisabled:d,isHidden:_,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:C,form:x,type:"text",value:y},H)):M.createElement(dY,Rt({id:V,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:T0,onFocus:this.onInputFocus,disabled:d,tabIndex:C,inputMode:"none",form:x,value:""},H))}},{key:"renderPlaceholderOrValue",value:function(){var l=this,d=this.getComponents(),h=d.MultiValue,v=d.MultiValueContainer,y=d.MultiValueLabel,C=d.MultiValueRemove,x=d.SingleValue,w=d.Placeholder,T=this.commonProps,A=this.props,N=A.controlShouldRenderValue,O=A.isDisabled,_=A.isMulti,L=A.inputValue,F=A.placeholder,V=this.state,H=V.selectValue,z=V.focusedValue,U=V.isFocused;if(!this.hasValue()||!N)return L?null:M.createElement(w,Rt({},T,{key:"placeholder",isDisabled:O,isFocused:U,innerProps:{id:this.getElementId("placeholder")}}),F);if(_)return H.map(function(q,Re){var he=q===z,ge="".concat(l.getOptionLabel(q),"-").concat(l.getOptionValue(q));return M.createElement(h,Rt({},T,{components:{Container:v,Label:y,Remove:C},isFocused:he,isDisabled:O,key:ge,index:Re,removeProps:{onClick:function(){return l.removeValue(q)},onTouchEnd:function(){return l.removeValue(q)},onMouseDown:function(Oe){Oe.preventDefault()}},data:q}),l.formatOptionLabel(q,"value"))});if(L)return null;var J=H[0];return M.createElement(x,Rt({},T,{data:J,isDisabled:O}),this.formatOptionLabel(J,"value"))}},{key:"renderClearIndicator",value:function(){var l=this.getComponents(),d=l.ClearIndicator,h=this.commonProps,v=this.props,y=v.isDisabled,C=v.isLoading,x=this.state.isFocused;if(!this.isClearable()||!d||y||!this.hasValue()||C)return null;var w={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return M.createElement(d,Rt({},h,{innerProps:w,isFocused:x}))}},{key:"renderLoadingIndicator",value:function(){var l=this.getComponents(),d=l.LoadingIndicator,h=this.commonProps,v=this.props,y=v.isDisabled,C=v.isLoading,x=this.state.isFocused;if(!d||!C)return null;var w={"aria-hidden":"true"};return M.createElement(d,Rt({},h,{innerProps:w,isDisabled:y,isFocused:x}))}},{key:"renderIndicatorSeparator",value:function(){var l=this.getComponents(),d=l.DropdownIndicator,h=l.IndicatorSeparator;if(!d||!h)return null;var v=this.commonProps,y=this.props.isDisabled,C=this.state.isFocused;return M.createElement(h,Rt({},v,{isDisabled:y,isFocused:C}))}},{key:"renderDropdownIndicator",value:function(){var l=this.getComponents(),d=l.DropdownIndicator;if(!d)return null;var h=this.commonProps,v=this.props.isDisabled,y=this.state.isFocused,C={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return M.createElement(d,Rt({},h,{innerProps:C,isDisabled:v,isFocused:y}))}},{key:"renderMenu",value:function(){var l=this,d=this.getComponents(),h=d.Group,v=d.GroupHeading,y=d.Menu,C=d.MenuList,x=d.MenuPortal,w=d.LoadingMessage,T=d.NoOptionsMessage,A=d.Option,N=this.commonProps,O=this.state.focusedOption,_=this.props,L=_.captureMenuScroll,F=_.inputValue,V=_.isLoading,H=_.loadingMessage,z=_.minMenuHeight,U=_.maxMenuHeight,J=_.menuIsOpen,q=_.menuPlacement,Re=_.menuPosition,he=_.menuPortalTarget,ge=_.menuShouldBlockScroll,fe=_.menuShouldScrollIntoView,Oe=_.noOptionsMessage,Te=_.onMenuScrollToTop,xe=_.onMenuScrollToBottom;if(!J)return null;var je=function(ye,Se){var Ne=ye.type,le=ye.data,ve=ye.isDisabled,we=ye.isSelected,Ve=ye.label,et=ye.value,tt=O===le,ft=ve?void 0:function(){return l.onOptionHover(le)},Ae=ve?void 0:function(){return l.selectOption(le)},It="".concat(l.getElementId("option"),"-").concat(Se),pt={id:It,onClick:Ae,onMouseMove:ft,onMouseOver:ft,tabIndex:-1,role:"option","aria-selected":l.isAppleDevice?void 0:we};return M.createElement(A,Rt({},N,{innerProps:pt,data:le,isDisabled:ve,isSelected:we,key:It,label:Ve,type:Ne,value:et,isFocused:tt,innerRef:tt?l.getFocusedOptionRef:void 0}),l.formatOptionLabel(ye.data,"menu"))},Le;if(this.hasOptions())Le=this.getCategorizedOptions().map(function(re){if(re.type==="group"){var ye=re.data,Se=re.options,Ne=re.index,le="".concat(l.getElementId("group"),"-").concat(Ne),ve="".concat(le,"-heading");return M.createElement(h,Rt({},N,{key:le,data:ye,options:Se,Heading:v,headingProps:{id:ve,data:re.data},label:l.formatGroupLabel(re.data)}),re.options.map(function(we){return je(we,"".concat(Ne,"-").concat(we.index))}))}else if(re.type==="option")return je(re,"".concat(re.index))});else if(V){var ne=H({inputValue:F});if(ne===null)return null;Le=M.createElement(w,N,ne)}else{var _e=Oe({inputValue:F});if(_e===null)return null;Le=M.createElement(T,N,_e)}var G={minMenuHeight:z,maxMenuHeight:U,menuPlacement:q,menuPosition:Re,menuShouldScrollIntoView:fe},Y=M.createElement(H5,Rt({},N,G),function(re){var ye=re.ref,Se=re.placerProps,Ne=Se.placement,le=Se.maxHeight;return M.createElement(y,Rt({},N,G,{innerRef:ye,innerProps:{onMouseDown:l.onMenuMouseDown,onMouseMove:l.onMenuMouseMove},isLoading:V,placement:Ne}),M.createElement(bY,{captureEnabled:L,onTopArrive:Te,onBottomArrive:xe,lockEnabled:ge},function(ve){return M.createElement(C,Rt({},N,{innerRef:function(Ve){l.getMenuListRef(Ve),ve(Ve)},innerProps:{role:"listbox","aria-multiselectable":N.isMulti,id:l.getElementId("listbox")},isLoading:V,maxHeight:le,focusedOption:O}),Le)}))});return he||Re==="fixed"?M.createElement(x,Rt({},N,{appendTo:he,controlElement:this.controlRef,menuPlacement:q,menuPosition:Re}),Y):Y}},{key:"renderFormField",value:function(){var l=this,d=this.props,h=d.delimiter,v=d.isDisabled,y=d.isMulti,C=d.name,x=d.required,w=this.state.selectValue;if(x&&!this.hasValue()&&!v)return M.createElement(EY,{name:C,onFocus:this.onValueInputFocus});if(!(!C||v))if(y)if(h){var T=w.map(function(O){return l.getOptionValue(O)}).join(h);return M.createElement("input",{name:C,type:"hidden",value:T})}else{var A=w.length>0?w.map(function(O,_){return M.createElement("input",{key:"i-".concat(_),name:C,type:"hidden",value:l.getOptionValue(O)})}):M.createElement("input",{name:C,type:"hidden",value:""});return M.createElement("div",null,A)}else{var N=w[0]?this.getOptionValue(w[0]):"";return M.createElement("input",{name:C,type:"hidden",value:N})}}},{key:"renderLiveRegion",value:function(){var l=this.commonProps,d=this.state,h=d.ariaSelection,v=d.focusedOption,y=d.focusedValue,C=d.isFocused,x=d.selectValue,w=this.getFocusableOptions();return M.createElement(oY,Rt({},l,{id:this.getElementId("live-region"),ariaSelection:h,focusedOption:v,focusedValue:y,isFocused:C,selectValue:x,focusableOptions:w,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var l=this.getComponents(),d=l.Control,h=l.IndicatorsContainer,v=l.SelectContainer,y=l.ValueContainer,C=this.props,x=C.className,w=C.id,T=C.isDisabled,A=C.menuIsOpen,N=this.state.isFocused,O=this.commonProps=this.getCommonProps();return M.createElement(v,Rt({},O,{className:x,innerProps:{id:w,onKeyDown:this.onKeyDown},isDisabled:T,isFocused:N}),this.renderLiveRegion(),M.createElement(d,Rt({},O,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:T,isFocused:N,menuIsOpen:A}),M.createElement(y,Rt({},O,{isDisabled:T}),this.renderPlaceholderOrValue(),this.renderInput()),M.createElement(h,Rt({},O,{isDisabled:T}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(l,d){var h=d.prevProps,v=d.clearFocusValueOnUpdate,y=d.inputIsHiddenAfterUpdate,C=d.ariaSelection,x=d.isFocused,w=d.prevWasFocused,T=d.instancePrefix,A=l.options,N=l.value,O=l.menuIsOpen,_=l.inputValue,L=l.isMulti,F=SO(N),V={};if(h&&(N!==h.value||A!==h.options||O!==h.menuIsOpen||_!==h.inputValue)){var H=O?VY(l,F):[],z=O?PO(n0(l,F),"".concat(T,"-option")):[],U=v?BY(d,F):null,J=zY(d,H),q=QE(z,J);V={selectValue:F,focusedOption:J,focusedOptionId:q,focusableOptionsWithIds:z,focusedValue:U,clearFocusValueOnUpdate:!1}}var Re=y!=null&&l!==h?{inputIsHidden:y,inputIsHiddenAfterUpdate:void 0}:{},he=C,ge=x&&w;return x&&!ge&&(he={value:Ub(L,F,F[0]||null),options:F,action:"initial-input-focus"},ge=!w),(C==null?void 0:C.action)==="initial-input-focus"&&(he=null),yt(yt(yt({},V),Re),{},{prevProps:l,ariaSelection:he,prevWasFocused:ge})}}]),i}(M.Component);GR.defaultProps=FY;var UY=M.forwardRef(function(n,r){var i=WD(n);return M.createElement(GR,Rt({ref:r},i))}),WR=UY;function Hp({bg:n="dark",children:r,color:i="light",fontWeight:u="bold",icon:l="info-circle-fill",initial:d=!1,maxWidth:h="200px",padding:v="10px",placement:y,target:C,trigger:x="click",visible:w=!0}){const T=typeof d=="string"||d instanceof String,[A,N]=M.useState(T?localStorage.getItem(d)!="true":d),[O,_]=M.useState(!1);M.useEffect(()=>{setTimeout(()=>_(!0),100)},[]);const L=()=>{T&&localStorage.setItem(d,"true")},F=b.jsxs(U0,{style:{"--bs-tooltip-bg":`var(--bs-${n})`,"--bs-tooltip-color":`var(--bs-${i})`,"--bs-tooltip-max-width":h,"--bs-tooltip-padding-x":v,"--bs-tooltip-padding-y":v,fontWeight:u},children:[b.jsx("button",{"aria-label":"Close",onClick:()=>{L(),N(!1)},style:{background:"transparent",border:"0 none transparent",float:"right"},children:b.jsx("i",{className:"bi bi-x-lg"})}),r]});return C&&C.current?b.jsx(UD,{target:C.current,placement:y,show:A&&w&&O,children:F}):b.jsx(IR,{placement:y,onToggle:V=>{L(),N(V)},overlay:F,show:A&&w&&O,trigger:x,children:b.jsx("button",{className:"btn bnt-clear border-0",style:{backgroundColor:"transparent"},children:b.jsx("i",{className:`bi bi-${l}`})})})}const $Y="_items_c2dbg_1",GY="_item_c2dbg_1",WY="_details_c2dbg_14",XY="_text_c2dbg_20",YY="_number_c2dbg_35",ZY="_outer_c2dbg_50",JY="_inner_c2dbg_61",Zl={items:$Y,item:GY,details:WY,text:XY,number:YY,outer:ZY,inner:JY},um=(n,r)=>`${Math.cos(2*Math.PI*n)*r} ${Math.sin(2*Math.PI*n)*r}`;function qY({requestId:n,grantNumber:r,creditColorClass:i="gray-300",colorClasses:u=vw}){const{request:l}=ri(n,r);if(!l)return;let d=0,h;const v=[];for(let T of l.resources)T.isBoolean||(T.isCredit?h=T:v.push(T),d+=T.requested*T.unitCost);const y=[],C=[];let x=-.25;const w=[...v,h].map((T,A)=>{if(!T)return null;const N=A+1,_=T.requested*T.unitCost/d,L=T.requested-T.used,F=Math.max(0,L),V=T.isCredit?d/T.unitCost:T.requested,H=V==0?0:100*F/V,U=`var(--bs-${T.isCredit?i:u[A%u.length]})`;if(_>0){const J=x,q=x+_/2,Re=x+=_,he=_>.5?1:0,ge=[`M ${um(J,100)}`,`A 100 100 0 ${he} 1 ${um(Re,100)}`,`L ${um(Re,50)}`,`A 50 50 0 ${he} 0 ${um(J,50)}`].join(" "),[fe,Oe]=um(q,75).split(" ").map(Te=>parseFloat(Te));y.push(b.jsx("path",{d:ge,style:{fill:U}},T.resourceId)),C.push(b.jsx("circle",{cx:fe,cy:Oe,r:"8",fill:"black"},`${T.resourceId}-circle`),b.jsx("text",{x:fe-4,y:Oe+4,fill:"white",className:Zl.number,children:N},`${T.resourceId}-text`))}return T.isCredit&&C.push(b.jsx("foreignObject",{x:"-50",y:"-50",width:"100",height:"100",children:b.jsx("div",{className:Zl.text,children:b.jsxs("div",{children:[b.jsx("strong",{children:ni(F,{abbreviate:!0})}),T.unit," available"]})})},"center-text")),b.jsxs("li",{className:Zl.item,children:[b.jsx("span",{className:Zl.number,children:N}),b.jsx("span",{className:`${Zl.outer} ms-2 me-2`,style:{borderColor:U},children:b.jsx("span",{className:Zl.inner,style:{backgroundColor:U,width:`${H}%`}})}),b.jsxs("strong",{className:Zl.name,children:[Uf(T,{userGuide:!1}),": "]}),b.jsxs("span",{className:Zl.details,children:[ni(L,{abbreviate:!0})," ",T.isCredit?null:b.jsxs(b.Fragment,{children:["of ",ni(V,{abbreviate:!0})," "]}),T.unit," ",T.isCredit?"available":"remaining"," (",Math.round(H),"%)"]})]},T.resourceId)});return b.jsxs("div",{className:"row",children:[b.jsx("div",{className:"col-lg-3 mb-3 d-flex flex-row align-items-center justify-content-center",children:b.jsxs("svg",{version:"1.1",viewBox:"-100 -100 200 200",width:"200",height:"200",xmlns:"http://www.w3.org/2000/svg",children:[y,C]})}),b.jsx("div",{className:"col-lg-9 mb-3 d-flex flex-column justify-content-center",children:b.jsx("ul",{className:Zl.items,children:w})})]})}const VO=n=>n;function QY({classes:n,clean:r=VO,format:i=VO,label:u,setValue:l,style:d,value:h}){const v=i(h),[y,C]=M.useState(v);return M.useEffect(()=>{C(v)},[v]),b.jsx("input",{type:"text","aria-label":u,className:`form-control ${n}`,value:y,style:d,onChange:x=>C(x.target.value),onBlur:x=>{const w=r(x.target.value);C(i(w)),l(w)},onKeyDown:x=>{x.code=="Enter"&&(x.preventDefault(),x.target.blur())}})}function KY({requestId:n,grantNumber:r}){const{request:i,addResource:u,openUsageDetailModal:l,resetResources:d,setResourceRequest:h,setResourcesReason:v,statuses:y,toggleActionsModal:C,toggleConfirmModal:x,toggleResourcesModal:w}=ri(n,r),{project:T}=Ji(r||i&&i.grantNumber),A=M.useRef(null),N=M.useRef(null);if(!i||!T)return;const O="Exchange"in i.allowedActions,_="Renewal"in i.allowedActions,L="Supplement"in i.allowedActions,F=i.exchangeStatus==y.pending,V=i.exchangeStatus==y.success,H=i.exchangeStatus==y.error,z=i.exchangeActionId!==null,U=i.resources,J=i.resourcesReason,q={};for(let le of U)q[le.resourceId]=le;const Re=()=>{PA(i)>=.75?C():x()},he=[];for(let le of U){let ve=[];if(le.requested>0){for(let we of le.requires||[]){let Ve=q[we];if(Ve){if(Ve.requested>0){ve=[];break}ve.push(Ve)}}ve.length&&he.push(b.jsxs("span",{children:[Uf(le,{userGuide:!1})," requires"," ",LA(ve.map(we=>Uf(we,{userGuide:!1})),"or"),"."]},le.resourceId))}}const ge=he.length>0;let fe;V?fe=b.jsx(na,{color:"info",children:"Your exchange request has been submitted."}):z?fe=b.jsx(na,{color:"warning",children:"You have an exchange request under review. The information below reflects the pending exchange request."}):H?fe=b.jsx(na,{color:"danger",children:"Sorry, your exchange request could not be submitted. Please try again later."}):i.timeStatus=="current"&&!T.isManager?fe=b.jsxs(na,{color:"warning",children:["You do not have permission to manage resources for this project. Please contact ",rR(T)," to request a change."]}):ge&&(fe=b.jsxs(na,{color:"warning",children:[he," Please adjust your balance values."]}));const Oe=J.length>0;let Te=!1,xe=!1;for(let le of U)if(le.isNew&&(Te=!0),le.allocated!=le.requested&&(xe=!0),Te&&xe)break;const je=U.map(le=>le.resourceId),Le=O&&!V&&!z?i.allowedActions.Exchange.resources.filter(le=>!je.includes(le.resourceId)).map(le=>{const ve=M0(le.name),we=ve.short?`${ve.short} (${ve.full.replace(/ \([^(]+\)/,"")})`:ve.full;return{value:le.resourceId,label:we}}):[],ne=O?i.allowedActions.Exchange.resources.map(le=>le.resourceId):[];let _e;const G=[],Y=[];for(let le of U)le.isCredit?_e=le:(G.push(le),Y.push(!V&&!z&&(le.isNew||le.allocated!=le.requested)?Bp.edited:ne.includes(le.resourceId)?"":Bp.disabled));const re=`Add ${G.length?"another":"a"} resource to your exchange...`,ye=le=>le.requested-le.used,Se=(le,ve)=>{let we=Fp(Number(le.replace(/[^0-9-.]/g,""))+ve.used,ve.decimalPlaces);isNaN(we)&&(we=ve.allocated);const Ve=Math.min(ve.allocated,ve.used);return we<Ve?Ve:ve.unitCost*(we-ve.requested)>_e.requested?Fp(_e.requested/ve.unitCost,ve.decimalPlaces,"floor")+ve.requested:we},Ne=[{key:"name",name:"Resource",format:(le,ve)=>Uf(ve),width:Math.min(350,window.innerWidth*.3)},{key:"isActive",name:"Status",format:(le,ve)=>b.jsx(Zp,{status:le?"Active":ve.isNew?"New":"Inactive"}),width:100},{key:"unit",name:"Unit",width:150,format:(le,ve)=>ve.isBoolean?b.jsx(b.Fragment,{children:"—"}):b.jsx("abbr",{title:`1 ${m_(le,1)} = ${ni(ve.unitCost)} ${m_(_e.name,ve.unitCost)}`,children:le})},{key:"used",name:"Usage",class:"text-end",format:(le,ve)=>ve.isBoolean?b.jsx(b.Fragment,{children:"—"}):b.jsxs(b.Fragment,{children:[ni(le),(T.currentUser.resourceIds.includes(ve.resourceId)||T.currentUser.resourceAccountInactiveIds.includes(ve.resourceId))&&b.jsx(c0,{icon:"table",onClick:()=>l(ve.resourceRepositoryKey),target:"_blank",title:`${ve.name} Usage Details`})]})}];return O&&Ne.push({key:"requested",name:"Balance",class:"text-end",rowClass:le=>!V&&!z&&ne.includes(le.resourceId)?Bp.input:"",format:(le,ve)=>{const we=!V&&!z&&ne.includes(ve.resourceId);return ve.isBoolean?b.jsx("input",{className:"form-check-input",type:"checkbox",checked:le==1,disabled:!we,onChange:Ve=>h(ve.resourceId,Ve.target.checked?1:0)}):we?b.jsx(QY,{classes:"text-end w-100",clean:Ve=>Se(Ve,ve)-ve.used,format:ni,label:`Balance for ${ve.name}`,setValue:Ve=>{h(ve.resourceId,Ve+ve.used)},style:{padding:"0.1rem 0.5rem"},value:ye(ve)}):ni(ye(ve))},formatHeader:le=>b.jsxs(b.Fragment,{children:[le,!V&&!z?b.jsx(Hp,{bg:"secondary",color:"dark",initial:"myprojects.requestedAllocation",placement:"top-end",visible:T.tab=="resources",children:"You can increase or decrease the balance below to change your allocation on a resource. Enter the total amount you would like to have available once the exchange is complete."}):null]})}),b.jsxs("div",{className:"resources",children:[fe,U.length?b.jsx(qY,{requestId:n}):null,_e&&(O||_||L)?b.jsxs("h2",{className:"mb-1 mt-2 d-flex justify-content-between",children:[b.jsxs("span",{children:[gc(Nn.resourceTypeIcons.credit)," ",ni(_e.requested,_e)," ",_e.unit," available to exchange"]}),_||L?b.jsxs("button",{type:"button",className:"btn btn-sm btn-primary ms-2",onClick:Re,children:[gc(Nn.resourceTypeIcons.credit)," Request More"," ",i.usesCredits?"Credits":"Units"]}):null]}):null,G.length?b.jsx(Kf,{columns:Ne,rows:G,rowClasses:Y,classes:Le.length?"mb-0":"",frozenColumns:2,minWidth:"800px"}):b.jsx("div",{className:"card p-2 text-bg-light p-3",children:"This project does not have any resources."}),Le.length?b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"p-2",style:{backgroundColor:"var(--teal-200)",border:"1px solid #cccccc",marginTop:"-1px"},ref:A,children:b.jsx(WR,{classNames:{control:()=>"react-select mb-1"},options:Le,onChange:le=>u(le.value),placeholder:re,value:null,"aria-label":re})}),G.length?null:b.jsx(Hp,{bg:"secondary",color:"dark",visible:T.tab=="resources",initial:!0,target:A,children:"Ready to get started? Search for a resource to add it to your project."}),b.jsxs("p",{className:"text-black-50",style:{fontSize:"0.9rem"},children:["Need help choosing a resource? Visit our"," ",b.jsx("a",{href:Nn.routes.resources_path(),children:"Resource Catalog"}),"."]})]}):null,O&&!V&&!z?b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"mb-3",children:[b.jsx("label",{htmlFor:"resources-reason",className:"form-label required",children:"Please briefly explain how the requested resources and amounts will contribute to your research."}),b.jsx("textarea",{className:"form-control",id:"resources-reason",rows:"2",value:J,onChange:le=>v(le.target.value),style:{minHeight:"3rem"}})]}),b.jsxs("div",{className:"d-flex",children:[b.jsx("button",{type:"button",className:"btn btn-danger me-2",disabled:F||!xe&&!Oe&&!Te,onClick:d,children:"Reset Form"}),b.jsx("button",{ref:N,type:"button",className:"btn btn-secondary",disabled:F||!xe||!Oe||ge,onClick:w,children:F?"Submitting...":"Submit for Approval"})]}),xe&&!ge?b.jsx(Hp,{bg:"secondary",color:"dark",initial:"myprojects.submitExchange",maxWidth:"390px",placement:"right",target:N,visible:T.tab=="resources",children:"When you are finished adding resources, enter a justification for the requested resources above. Then you can submit your exchange for approval."}):null]}):null]})}function eZ({question:n,requestId:r,grantNumber:i}){const{request:u,setResourceQuestionValues:l}=ri(r,i),d=M.useId();if(!n||!u||u.error)return;const{attributeSetId:h,attributes:v,fieldType:y,label:C,resourceId:x,values:w}=n,T=v[0],A=T.required?"required":"",N=V=>l(x,h,V.target.value?[V.target.value]:[]),O=V=>{l(x,h,Array.from(V.target.options).filter(({selected:H})=>H).map(({value:H})=>parseInt(H,10)))},_=V=>{const H=parseInt(V.target.value,10),z=V.target.checked?[...w,H]:w.filter(U=>U!=H);l(x,h,z)},L=V=>{const H=parseInt(V.target.value);l(x,h,isNaN(H)?[]:[H])};let F;if(["calendar","integer_only","text"].includes(y)){const V={calendar:"date",integer_only:"number",text:"text"}[y];F=b.jsx("input",{className:"form-control",id:d,type:V,placeholder:T.label,required:T.required,value:w[0]||"",onChange:y=="integer_only"?L:N})}else if(y=="textarea")F=b.jsx("textarea",{className:"form-control",id:d,placeholder:T.label,required:T.required,value:w[0]||"",onChange:N});else if(y=="drop_down"||v.length>=10){const V=y=="multi_sel";F=b.jsxs("select",{id:d,className:"form-select",required:T.required,multiple:V,onChange:V?O:L,value:V?w:w[0]||"",children:[V?null:b.jsx("option",{}),v.map(H=>b.jsx("option",{value:H.resourceAttributeId,children:H.label},H.resourceAttributeId))]})}else F=b.jsx("div",{id:d,children:v.map(V=>{const H=`resource-attribute-${V.resourceAttributeId}`;return b.jsxs("div",{className:"form-check",children:[b.jsx("input",{className:"form-check-input",type:y=="single_sel"?"radio":"checkbox",id:H,value:V.resourceAttributeId,checked:w.includes(V.resourceAttributeId),onChange:y=="single_sel"?L:_}),b.jsx("label",{className:"form-check-label",htmlFor:H,children:V.label})]},V.resourceAttributeId)})});return b.jsxs("div",{className:"mb-3",children:[b.jsx("label",{htmlFor:d,className:`form-label ${A}`,children:C}),F]})}function tZ({requestId:n,grantNumber:r}){const{request:i,saveResources:u,toggleResourcesModal:l}=ri(n,r),{project:d}=Ji(r||i.grantNumber);if(!i||!d||i.error||d.error)return;const h=[],v=i.resources.filter(C=>C.allocated!=C.requested).map(C=>{const x=C.requested-C.allocated;return C.questions&&h.push(...C.questions),b.jsxs("li",{className:"list-group-item d-flex justify-content-between align-items-center mb-0",children:[C.name,b.jsx("span",{className:`badge bg-${x>0?"primary":"danger"} rounded-pill`,children:C.isBoolean?nR(C.requested):b.jsxs(b.Fragment,{children:[x>0?"+":"",ni(x,C)," ",C.unit]})})]},C.resourceId)}),y=h.some(({attributes:C,values:x})=>x.length==0&&C[0].required);return b.jsxs(Ln,{size:"lg",show:i.showResourcesModal,onHide:l,scrollable:!0,children:[b.jsx(Ln.Header,{closeButton:!0,children:b.jsx(Ln.Title,{children:"Complete Your Exchange"})}),b.jsxs(Ln.Body,{children:[b.jsx("p",{children:"Please review your exchange to make sure it includes all the resources you need. Once you submit it, you will not be able to request another exchange until this one has been processed by the resource providers."}),b.jsx("ul",{className:"list-group mb-3",children:v}),h.length?b.jsxs(b.Fragment,{children:[b.jsx("h2",{children:"Resource Questions"}),b.jsx("p",{children:"Some of the resources you selected have associated questions. Please answer the questions below."}),h.map(C=>b.jsx(eZ,{question:C,requestId:n,grantNumber:r},C.attributeSetId))]}):null]}),b.jsx(Ln.Footer,{children:b.jsxs("div",{className:"d-flex",children:[b.jsx("button",{type:"button",className:"btn btn-primary me-2",onClick:l,children:"Continue Editing"}),b.jsx("button",{type:"button",className:"btn btn-secondary",onClick:u,disabled:y,children:"Submit"})]})})]})}function Mm(){return b.jsx("div",{className:"spinner-border",role:"status",children:b.jsx("span",{className:"visually-hidden",children:"Loading..."})})}function Lk({user:n}){const r=`${n.lastName}, ${n.firstName}`;let i=r,u=[n.organization,n.email].filter(l=>l).join(", ");return u&&(i+=`: ${u}`),b.jsx("abbr",{title:i,children:r})}function nZ({requestId:n,grantNumber:r}){const{project:i}=Ji(r),{request:u,closeUsageDetailModal:l}=ri(n,r);if(!u||u.error||!i||i.error||!u.usageDetailStatus)return;let d,h="Usage";if(u.usageDetailStatus==ea.pending)d=b.jsx(Mm,{});else if(u.usageDetailStatus==ea.error)d=b.jsx(na,{color:"danger",children:"An error occurred while loading usage data."});else{const{projectTitle:v,resourceDisplayName:y,resourceRepositoryKey:C,users:x}=u.usageDetail,{full:w,short:T}=M0(y),A=u.resources.find(L=>L.resourceRepositoryKey==C),N=L=>ni(L,{decimalPlaces:A?A.decimalPlaces:void 0}),O={};for(let L of i.users)O[L.username]=L;h=b.jsxs(b.Fragment,{children:["Usage: ",T||w," for ",v]});const _=[{key:"name",name:"Name",format:(L,{lastName:F,firstName:V,portalUsername:H})=>{const z=O[H];return z?b.jsx(Lk,{user:z}):`${F}, ${V}`}},{key:"portalUsername",name:"Resource Username",format:L=>{const F=O[L],V=F?F.resourceUsernames[A.resourceId]:null;return V||b.jsx(b.Fragment,{children:"—"})}},{key:"role",name:"Role",format:L=>FA[L].name},{key:"lastWeek",name:"Last Week",class:"text-end",format:N},{key:"lastMonth",name:"Last Month",class:"text-end",format:N},{key:"lastQuarter",name:"Last 3 Months",class:"text-end",format:N},{key:"currentRequest",name:"Current Allocation",class:"text-end",format:N},{key:"total",name:"All Time",class:"text-end",format:N}];d=x.length?b.jsx(Kf,{rows:x,columns:_}):b.jsx(na,{color:"info",children:"There is no usage for this resource."})}return b.jsxs(Ln,{show:!0,size:"lg",onHide:l,scrollable:!0,children:[b.jsx(Ln.Header,{closeButton:!0,children:b.jsx(Ln.Title,{children:h})}),b.jsx(Ln.Body,{children:d})]})}var rZ=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function aZ(n){var r=n.defaultOptions,i=r===void 0?!1:r,u=n.cacheOptions,l=u===void 0?!1:u,d=n.loadOptions;n.options;var h=n.isLoading,v=h===void 0?!1:h,y=n.onInputChange,C=n.filterOption,x=C===void 0?null:C,w=rl(n,rZ),T=w.inputValue,A=M.useRef(void 0),N=M.useRef(!1),O=M.useState(Array.isArray(i)?i:void 0),_=ta(O,2),L=_[0],F=_[1],V=M.useState(typeof T<"u"?T:""),H=ta(V,2),z=H[0],U=H[1],J=M.useState(i===!0),q=ta(J,2),Re=q[0],he=q[1],ge=M.useState(void 0),fe=ta(ge,2),Oe=fe[0],Te=fe[1],xe=M.useState([]),je=ta(xe,2),Le=je[0],ne=je[1],_e=M.useState(!1),G=ta(_e,2),Y=G[0],re=G[1],ye=M.useState({}),Se=ta(ye,2),Ne=Se[0],le=Se[1],ve=M.useState(void 0),we=ta(ve,2),Ve=we[0],et=we[1],tt=M.useState(void 0),ft=ta(tt,2),Ae=ft[0],It=ft[1];l!==Ae&&(le({}),It(l)),i!==Ve&&(F(Array.isArray(i)?i:void 0),et(i)),M.useEffect(function(){return N.current=!0,function(){N.current=!1}},[]);var pt=M.useCallback(function(sn,_n){if(!d)return _n();var Vt=d(sn,_n);Vt&&typeof Vt.then=="function"&&Vt.then(_n,function(){return _n()})},[d]);M.useEffect(function(){i===!0&&pt(z,function(sn){N.current&&(F(sn||[]),he(!!A.current))})},[]);var Kt=M.useCallback(function(sn,_n){var Vt=T5(sn,_n,y);if(!Vt){A.current=void 0,U(""),Te(""),ne([]),he(!1),re(!1);return}if(l&&Ne[Vt])U(Vt),Te(Vt),ne(Ne[Vt]),he(!1),re(!1);else{var Cn=A.current={};U(Vt),he(!0),re(!Oe),pt(Vt,function(Qn){N&&Cn===A.current&&(A.current=void 0,he(!1),Te(Vt),ne(Qn||[]),re(!1),le(Qn?yt(yt({},Ne),{},Pp({},Vt,Qn)):Ne))})}},[l,pt,Oe,Ne,y]),on=Y?[]:z&&Oe?Le:L||[];return yt(yt({},w),{},{options:on,isLoading:Re||v,onInputChange:Kt,filterOption:x})}var iZ=M.forwardRef(function(n,r){var i=aZ(n),u=WD(i);return M.createElement(GR,Rt({ref:r},u))}),oZ=iZ;const BO=({description:n,disabled:r=!1,onChange:i,selectedLength:u,totalLength:l})=>{const d=M.useRef(),h=M.useId();let v=u==l,y=u>0&&!v;return M.useEffect(()=>{d.current&&(d.current.checked=v,d.current.indeterminate=y)},[v,y]),b.jsxs(b.Fragment,{children:[b.jsx("input",{className:"custom-checkbox form-check-input",disabled:r,id:h,onChange:C=>i(C.target.checked),ref:d,type:"checkbox"}),b.jsx("label",{className:"form-check-label",htmlFor:h,"aria-description":`${v?"Deselect":"Select"} ${n}`})]})};function sZ({grantNumber:n,requestId:r}){const{project:i,addUser:u,resetUsers:l,saveUsers:d,setTab:h,setUserRole:v,statuses:y,toggleUsersResources:C}=Ji(n),{request:x}=i?ri(r||i.currentRequestId,n):{request:null};if(!i||!i.currentRequestId||!x||i.error||x.error)return;const w=i.isManager,T="Exchange"in x.allowedActions,A=i.usersStatus==y.pending,N=i.usersStatus==y.success,O=i.usersStatus==y.error,_=i.users,L=x.resources.filter(mw),F=L.length==0,V=_.find(he=>he.hasChanges)!==void 0,H=_.find(he=>he.role!="pi")!==void 0;let z;N&&!V?z=b.jsx(na,{color:"info",children:"Your changes have been saved. Creation of user accounts can take some time. Users can check the status of their accounts on the Overview tab of the My Projects page."}):O?z=b.jsx(na,{color:"danger",children:"Sorry, your changes could not be saved. Please try again later."}):w?L.length?F&&(z=b.jsx(na,{color:"warning",children:"This project does not have any active resources."})):z=b.jsxs(na,{color:"warning",children:["This project does not have any resources."," ",T?b.jsx("a",{href:Nn.routes.request_action_path(x.requestId,"new?action_type=Exchange"),onClick:he=>{he.preventDefault(),h("resources")},children:"Exchange credits for resources."}):null," ","Additional users can be added after an exchange is approved."]}):z=b.jsxs(na,{color:"warning",children:["You do not have permission to manage users for this project. Please contact ",rR(i)," to request a change."]});const U=(he,ge)=>{let fe,Oe,Te,xe;if(ge.key=="all"){fe="all resources for all users",Oe=je=>C(je),Te=0;for(let je of _)Te+=je.resourceIds.length;xe=_.length*L.length}else fe=`all users for ${ge.name}`,Oe=je=>C(je,null,ge.key),Te=_.filter(({resourceIds:je})=>je.includes(ge.key)).length,xe=_.length;return b.jsxs(b.Fragment,{children:[ge.key=="all"?he:Uf(ge,{userGuide:!1}),b.jsx("br",{}),b.jsx(BO,{description:fe,disabled:ge.disabled,onChange:Oe,selectedLength:Te,totalLength:xe})]})},J=L0.map(({role:he,name:ge})=>b.jsx("option",{value:he,children:ge},he)),q=[{key:"name",name:"Name",width:200,format:(he,ge)=>b.jsx(Lk,{user:ge})},{key:"username",name:"ACCESS Username",width:100},{key:"role",name:"Role",width:100,format:(he,ge)=>b.jsx("select",{className:"form-select",value:he,onChange:fe=>v(ge.username,fe.target.value),disabled:!w||he=="pi"||he=="co_pi",style:{position:"absolute",left:0,top:0,bottom:0,right:0,borderWidth:0},children:J.filter(fe=>fe.key==he||!["pi","co_pi"].includes(fe.key))})}];L.length&&q.push({key:"all",name:"All Resources",class:`text-center ${Bp.important}`,disabled:!w||F,width:100,format:(he,ge)=>b.jsx(BO,{description:`all users for ${ge.name}`,disabled:!w||F,onChange:fe=>C(fe,ge.username),selectedLength:ge.resourceIds.length,totalLength:L.length}),formatHeader:U});for(let he of L)q.push({key:he.resourceId,name:he.name,class:"text-center",disabled:!w||!he.isActive,icon:he.icon,format:(ge,fe)=>b.jsx(b.Fragment,{children:b.jsx("input",{className:"form-check-input",disabled:!w||!he.isActive,onChange:Oe=>C(Oe.target.checked,fe.username,he.resourceId),type:"checkbox",checked:fe.resourceIds.includes(he.resourceId)})}),formatHeader:U});const Re=_.map(he=>he.hasChanges?Bp.edited:"");return b.jsxs(b.Fragment,{children:[z,b.jsx(Kf,{rows:_,columns:q,frozenColumns:L.length?4:3,classes:"mb-0",minWidth:"800px",rowClasses:Re,scrollRowIndex:i.usersNewRowIndex}),w&&L.length&&!F?b.jsx("div",{style:{marginTop:"-1px",position:"relative",zIndex:100},children:b.jsx(oZ,{classNames:{control:()=>"react-select"},loadOptions:async he=>(await JU(he)).map(fe=>({value:fe,label:`${fe.username} (${fe.firstName} ${fe.lastName}, ${fe.organization}${fe.email?`, ${fe.email}`:""})`})),onChange:he=>u(he.value),placeholder:"Add another user...",value:null,"aria-label":"Add another user"})}):null,w&&(L.length&&!F||H)?b.jsxs("div",{className:"d-flex mt-3",children:[b.jsx("button",{type:"button",className:"btn btn-danger me-2",disabled:A||!V,onClick:l,children:"Reset Form"}),b.jsx("button",{type:"button",className:"btn btn-secondary",disabled:A||!V,onClick:d,children:A?"Saving...":"Save Changes"})]}):null]})}function lZ({requestId:n,grantNumber:r}){const{request:i}=ri(n,r),{project:u,setRequest:l,setTab:d}=Ji(r||i.grantNumber);if(!i)return;if(i.error)return b.jsx(na,{color:"danger",children:i.error});const h=i.timeStatus||i.actions[0].status.toLowerCase(),v=i.actions.find(({showDeleteModal:C})=>C),y=[];return i.resources.length||y.push("resources"),n!=u.currentRequestId&&y.push("users"),b.jsxs("div",{className:"request",children:[i.returnedForCorrections?b.jsxs(na,{color:"warning",children:[b.jsx("p",{children:"Your request has been returned for corrections. These are the notes from the Allocations Team"}),b.jsx("div",{className:w$.returnedForCorrectionsNotes,children:i.returnedForCorrectionsNotes}),b.jsx("p",{className:"mt-3",children:"Please address these issues by clicking the Edit button to edit your request."})]}):"",i.timeStatus!="current"&&!i.returnedForCorrections?b.jsxs(na,{color:"warning",children:["You are viewing ","aeiou".includes(h[0])?"an":"a"," ",h," request."," ",y.length?`You cannot manage ${y.join(" or ")} for this request.`:""," ",u.currentRequestId?b.jsx("a",{href:Nn.routes.request_path(u.currentRequestId),onClick:C=>{C.preventDefault(),l(u.currentRequestId)},children:"Go to the current request."}):null]}):null,b.jsxs(J3,{activeKey:u.tab,onSelect:d,className:"mt-3 mb-3",children:[b.jsx(kb,{eventKey:"overview",title:"Overview",className:"mb-0",children:b.jsx(V4,{requestId:n,grantNumber:r})}),b.jsx(kb,{eventKey:"resources",title:i.usesCredits?"Credits + Resources":"Resources",disabled:y.includes("resources"),children:b.jsx(KY,{requestId:n})}),b.jsx(kb,{eventKey:"users",title:"Users + Roles",disabled:y.includes("users"),children:b.jsx(sZ,{grantNumber:r})}),b.jsx(kb,{eventKey:"history",title:"History",children:b.jsx(p4,{requestId:n})})]}),b.jsx(n4,{grantNumber:r,requestId:n}),b.jsx(r4,{grantNumber:r,requestId:n}),b.jsx(a4,{grantNumber:r,requestId:n,actionId:v?v.actionId:null}),b.jsx(tZ,{grantNumber:r,requestId:n}),b.jsx(nZ,{grantNumber:r,requestId:n})]})}function uZ({requestId:n,grantNumber:r}){const{request:i,toggleActionsModal:u,toggleDeleteModal:l}=ri(n,r);if(!i)return;const{actions:d,allowedActions:h}=i,v=[];h&&(("Extension"in h||"Renewal"in h)&&v.push(["Extend End Date",C=>{C.preventDefault(),u()},"calendar-plus"]),"Final Report"in h&&v.push(["Submit Final Report",`${Nn.routes.request_action_path(n,"new")}?action_type=Final+Report`,"file-earmark-check"]));const y=d.find(C=>C.isRequest);if(y){const C=y.allowedOperations||[];C.includes("Edit")&&v.push(["Edit",Nn.routes.edit_request_path(i.requestId),"pencil"]),C.includes("Delete")&&v.push(["Delete",x=>{x.preventDefault(),l(y.actionId)},"trash","danger"])}return v.map(([C,x,w,T])=>{const A=b.jsxs(b.Fragment,{children:[" ",w&&b.jsx("i",{className:`bi bi-${w} me-1`}),C]});return typeof x=="function"?b.jsx("button",{className:`btn btn-${T||"primary"} ms-2 text-nowrap`,onClick:x,children:A},C):b.jsx("a",{className:`btn btn-${T||"primary"} ms-2 text-nowrap`,href:x,children:A},C)})}function cZ({open:n=!1,grantNumber:r,title:i,status:u}){const[l,d]=M.useState(n),{project:h,setRequest:v}=Ji(r,!l&&i&&u&&!0),y=`project-${r}`;let C=null;if(l&&h)if(h.error)C=b.jsx(na,{color:"danger",children:h.error});else{let x;const w=h.requestsList.map(T=>(T.requestId==h.selectedRequestId&&(x=T),b.jsx("option",{value:T.requestId,children:tR(T)},T.requestId)));C=b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"d-flex",children:[b.jsx("select",{className:"form-select","aria-label":"Select a request to display",onChange:T=>v(parseInt(T.target.value,10)),value:h.selectedRequestId,disabled:w.length<2,children:w}),b.jsx(uZ,{requestId:h.selectedRequestId,grantNumber:r})]}),x?b.jsx(lZ,{...x,grantNumber:r}):null]})}return b.jsxs("div",{className:`${C_.project} card mb-3`,children:[b.jsxs("div",{className:`card-header d-flex justify-content-between ${l?"":"border-bottom-0"}`,children:[b.jsx("button",{"aria-expanded":l,"aria-controls":y,className:C_.expand,onClick:()=>d(!l),children:b.jsxs("h2",{className:"mb-1 mt-1 text-start",children:[b.jsx("i",{className:`bi bi-caret-${l?"down":"right"}-fill`})," ",/^[A-Z]/.test(r)?b.jsxs(b.Fragment,{children:[b.jsxs("span",{className:"grant-number",children:[r,":"]})," "]}):null,i||h.title]})}),b.jsx(Zp,{status:u||h.status})]}),b.jsx("div",{className:"card-body",id:y,hidden:!l||!h,children:C})]})}function fZ({username:n,openFirst:r=1}){const{error:i,loading:u,projects:l}=C$(n);return u?b.jsx(Mm,{}):i?b.jsxs(na,{color:"danger",children:[i," ",b.jsx("a",{href:"#",onClick:d=>{d.preventDefault(),window.location.reload()},children:"Reload the page"})," ","to try again."]}):l.length?l.map((d,h)=>b.jsx(cZ,{open:h<r,...d},d.grantNumber)):b.jsxs("div",{className:"pt-5 pb-5 text-bg-light border border-light-subtle",children:[b.jsx("p",{className:"fs-2 text-center mb-4",children:"You don't have any projects yet."}),b.jsxs("div",{className:"d-flex gap-2 justify-content-center",children:[b.jsxs("a",{className:"btn btn-primary w-25",href:Nn.routes.project_types_path(),children:[b.jsx("i",{className:"bi bi-boxes fs-1 d-block"})," Learn about Project Types"]}),b.jsxs("a",{className:"btn btn-secondary w-25",href:Nn.routes.get_your_first_project_path(),children:[b.jsx("i",{className:"bi bi-cpu fs-1 d-block"})," Learn How to Get Your"," ",b.jsx("br",{className:"d-none d-xxl-inline"})," First Project"]}),b.jsxs("a",{className:"btn btn-primary w-25",href:Nn.routes.how_to_path(),children:[b.jsx("i",{className:"bi bi-person-plus fs-1 d-block"})," Learn How to Join an Existing Project"]})]})]})}const Pk={apiUrl:null,listIsFiltered:!1,pages:1,projects:[],projectsLoaded:!1,filtersLoaded:!0,showPagination:!1,singleEntry:!1,filters:{org:"",allocationType:"",allFosToggled:!0,resource:"",requestNumber:""},pageData:{current_page:1,last_page:1},typeLists:{orgs:[],fosTypes:[],allocationTypes:[],resources:[]}},dZ=Di("projectsBrowser/initApp",async(n,{getState:r,dispatch:i})=>{const u=window.location.search,l=new URLSearchParams(u);l.has("_requestNumber")&&(i(Bw({name:"requestNumber",value:l.get("_requestNumber")})),i(Vk(!0))),await i(Vw()),await i(Gf()),i(pZ())}),pZ=Di("projectsBrowser/filterCleanup",async(n,{getState:r,dispatch:i})=>{const l=r().projectsBrowser.typeLists;i(Fk({...l,orgs:["-- ALL --"].concat(l.orgs)}))}),Vw=Di("projectsBrowser/getFilters",async(n,{getState:r,dispatch:i})=>{const l=`${r().projectsBrowser.apiUrl}?filters=1`,h=await(await fetch(l)).json();i(Fk(h.filters))}),Gf=Di("projectsBrowser/getProjects",async(n,{getState:r,dispatch:i})=>{const u=r().projectsBrowser,l=u.filters,d=u.typeLists,h=d.fosTypes.filter(x=>x.checked);let v=`${u.apiUrl}?page=${u.pageData.current_page}`;return l.requestNumber!=""?(v+=`&request_number=${l.requestNumber}`,i(HO(!0))):(i(HO(!1)),h.length!=d.fosTypes.length&&(v+=`&fos=${h.map(x=>x.fosTypeId).join(",")}`),l.org!=""&&l.org!="-- ALL --"&&(v+=`&org=${encodeURIComponent(l.org)}`),l.allocationType!=""&&(v+=`&allocation_type=${l.allocationType}`),l.resource!=""&&(v+=`&resources=${l.resource}`)),await(await fetch(v)).json()}),XR=D0({name:"projectsBrowser",initialState:Pk,reducers:{resetFilters:n=>{n.filters={org:"",allocationType:"",allFosToggled:!1,resource:"",requestNumber:""},XR.caseReducers.toggleAllFos(n)},setApiUrl:(n,{payload:r})=>{n.apiUrl=r},setShowPagination:(n,{payload:r})=>{n.showPagination=r},setTypeLists:(n,{payload:r})=>{n.typeLists=r},toggleAllFos:n=>{n.typeLists.fosTypes.forEach(r=>r.checked=!n.filters.allFosToggled),n.filters.allFosToggled=!n.filters.allFosToggled},toggleFos:(n,{payload:r})=>{n.typeLists.fosTypes.forEach(i=>{i.fosTypeId==r.fosTypeId&&(i.checked=!i.checked)}),n.typeLists.fosTypes.filter(i=>i.checked).length!=n.typeLists.fosTypes.length?n.filters.allFosToggled=!1:n.filters.allFosToggled=!0},toggleListFiltered:(n,{payload:r})=>{n.listIsFiltered=r},toggleSingleEntry:(n,{payload:r})=>{n.singleEntry=r},updateFilter:(n,{payload:r})=>{n.filters[r.name]=r.value},updatePageData:(n,{payload:r})=>{r.current_page&&(n.pageData.current_page=r.current_page),r.last_page&&(n.pageData.last_page=r.last_page)}},extraReducers:n=>{n.addCase(Gf.pending,r=>{r.projectsLoaded=!1}).addCase(Gf.fulfilled,(r,i)=>{const u=i.payload;r.projectsLoaded=!0,r.projects=u.projects,u.pages!=r.pageData.last_page&&(r.pageData.current_page=1),r.showPagination=!0,r.pageData.last_page=u.pages}).addCase(Gf.rejected,(r,i)=>{console.log(i.error)}).addCase(Vw.pending,r=>{r.filtersLoaded=!1}).addCase(Vw.fulfilled,r=>{r.filtersLoaded=!0})}}),{resetFilters:vZ,setApiUrl:q8,setShowPagination:zO,setTypeLists:Fk,toggleAllFos:hZ,toggleFos:mZ,toggleListFiltered:Vk,toggleSingleEntry:HO,updateFilter:Bw,updatePageData:zw}=XR.actions,gZ=n=>n.projectsBrowser.filters,yZ=n=>n.projectsBrowser.filtersLoaded,bZ=n=>n.projectsBrowser.listIsFiltered,CZ=n=>n.projectsBrowser.singleEntry,xZ=n=>n.projectsBrowser.projectsLoaded,SZ=n=>n.projectsBrowser.pageData,EZ=n=>n.projectsBrowser.projects,wZ=n=>n.projectsBrowser.filtersLoaded&&n.projectsBrowser.projectsLoaded&&n.projectsBrowser.pageData.last_page>1,RZ=n=>n.projectsBrowser.typeLists,TZ=XR.reducer;const IZ=()=>{const n=Io(),r=qn(gZ),i=qn(RZ),u=qn(bZ),l=i.orgs.map(O=>({label:O,value:O})),d=M.useRef(),[h,v]=M.useState(null),y={height:"200px",overflowX:"auto",padding:"2px"},C=O=>{n(Bw({name:O.target.name,value:O.target.value}))},x=()=>{window.scrollTo(0,0),T(!0),n(zO(!1)),n(zw({current_page:1})),n(Gf())},w=()=>{v(null),n(zO(!1)),n(zw({current_page:1})),n(vZ()),u&&(window.scrollTo(0,0),n(Gf()),T(!1))},T=O=>{n(Vk(O))},A=O=>{v(O),n(Bw({name:"org",value:O.value}))},N=()=>r.org==""&&r.allocationType==""&&r.allFosToggled&&r.resource==""&&r.requestNumber=="";return b.jsx("div",{className:"row sticky-top mb-2",children:b.jsxs("div",{className:"col",children:[b.jsx("h3",{className:"mb-2",children:"Filters"}),b.jsx("h5",{className:"mb-1",children:"Field of Science"}),b.jsxs("div",{className:"border mb-3",style:y,children:[b.jsxs("div",{className:"form-check",children:[b.jsx("input",{className:"form-check-input",type:"checkbox",value:"",id:"toggle_all",checked:r.allFosToggled,onChange:()=>{n(hZ())}}),b.jsx("label",{className:"form-check-label",htmlFor:"toggle_all",children:"(Toggle All)"})]}),i.fosTypes.map(O=>b.jsxs("div",{className:"form-check",children:[b.jsx("input",{className:"form-check-input",type:"checkbox",value:O.fosTypeId,id:`fos_${O.fosTypeId}`,checked:O.checked,onChange:()=>n(mZ(O))}),b.jsx("label",{className:"form-check-label",htmlFor:`fos_${O.fosTypeId}`,children:O.fosName})]},`fos_${O.fosTypeId}`))]}),b.jsx("h5",{id:"org_select_label",className:"mb-1",children:"Organization"}),b.jsx("div",{className:"mb-3",children:b.jsx(WR,{options:l,openMenuOnClick:!0,name:"org",inputId:"orgs_filter",ref:d,closeMenuOnSelect:!0,onChange:A,value:h,"aria-labelledby":"org_select_label"},"org_select")}),b.jsx("h5",{id:"project_type_label",className:"mb-1",children:b.jsx("abbr",{title:'A specific level of allocation; also referred to as "Opportunity"',children:"Project Type"})}),b.jsx("div",{className:"mb-3",children:b.jsxs("select",{name:"allocationType",id:"project_type_select",value:r.allocationType,className:"form-control","aria-labelledby":"project_type_label",onChange:O=>C(O),children:[b.jsx("option",{value:"",children:"-- All --"}),i.allocationTypes.map((O,_)=>b.jsx("option",{value:O,children:O},`allocation_type_${_}`))]})}),b.jsx("h5",{id:"resource_filter_label",className:"mb-1",children:"Resource"}),b.jsx("div",{className:"mb-3",children:b.jsxs("select",{name:"resource",id:"resource_select",value:r.resource,className:"form-control","aria-labelledby":"resource_filter_label",onChange:O=>C(O),children:[b.jsx("option",{value:"",children:"-- All --"}),i.resources.map((O,_)=>b.jsx("option",{value:O.resourceId,children:O.resourceName},`resource_${_}`))]})}),b.jsx("h5",{id:"request_number_label",className:"mb-1",children:"Request Number"}),b.jsx("div",{className:"mb-3",children:b.jsx("input",{type:"text",className:"form-control",value:r.requestNumber,name:"requestNumber",id:"requestNumber","aria-labelledby":"request_number_label",onChange:O=>C(O)})}),b.jsxs("div",{className:"mt-2",children:[b.jsx("button",{className:"btn btn-primary me-2",onClick:x,children:"Submit"}),b.jsx("button",{className:"btn btn-secondary",disabled:N(),onClick:w,children:"Reset"})]})]})})};const NZ=({project:n})=>{const r=n.resources,[i,u]=M.useState(!1),d=qn(CZ)?["0","1"]:[],h=w=>{let T=w.units?w.units:w.resourceUnits;const A=w.allocation?w.allocation:w.amount;if(T=="[Yes = 1, No = 0]"||T=="Yes / No")return A=="1.0"?"Yes":"No";{let N="0";return parseInt(A)&&(N=parseInt(A).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")),T=="ACCESS Credits"&&(T=b.jsx("span",{className:"tooltip-underline",title:"universal currency that can be exchanged for resource units",children:"ACCESS Credits"})),T=="Dollars"?`$${N}`:b.jsxs(b.Fragment,{children:[N," ",T]})}},v=()=>{const{origin:w,pathname:T}=window.location,A=`${w}${T}?_requestNumber=${n.requestNumber}`;navigator.clipboard.writeText(A),setTimeout(()=>u(!1),2e3)},y=()=>n.requestNumber&&n.requestNumber!=""?`(${n.requestNumber})`:b.jsx(b.Fragment,{}),C=b.jsx(U0,{id:"link-tooltip",children:"Link Copied!"}),x=()=>{if(y()){const w={background:"none",border:"none",color:"#fff",fontSize:"24px"};return b.jsx(IR,{placement:"left",trigger:"click",defaultShow:i,show:i,onToggle:()=>u(!i),overlay:C,children:b.jsx("button",{onClick:v,style:w,children:b.jsx("i",{className:"bi bi-link-45deg",children:b.jsx("div",{className:"d-none",children:"Direct link to project"})})})})}return b.jsx(b.Fragment,{})};return b.jsxs("div",{className:"card mb-4",children:[b.jsx("div",{className:"card-header bg-primary text-white",children:b.jsxs("div",{className:"d-flex justify-content-between",children:[b.jsxs("div",{children:[b.jsxs("span",{className:"fw-bold",children:[y()," ",n.requestTitle]})," ",b.jsx("br",{}),b.jsxs("span",{className:"fst-italic",children:[n.pi," ",b.jsxs("small",{children:[" (",n.piInstitution,") "]})]})]}),b.jsx("div",{children:x()})]})}),b.jsxs("div",{className:"card-body",children:[b.jsxs("div",{className:"row fw-bold border-bottom",children:[b.jsx("div",{className:"col",children:b.jsx("span",{className:"mb-1 pb-0",children:"Field of Science"})}),b.jsx("div",{className:"col",children:b.jsx("span",{className:"mb-1 pb-0 tooltip-underline",title:'A specific level of allocation; also referred to as "Opportunity"',children:"Project Type"})}),b.jsx("div",{className:"col",children:b.jsx("span",{className:"mb-1 pb-0",children:"Dates"})})]}),b.jsxs("div",{className:"row",children:[b.jsx("div",{className:"col",children:n.fos}),b.jsx("div",{className:"col",children:n.allocationType}),b.jsxs("div",{className:"col",children:[n.beginDate," to ",n.endDate]})]}),b.jsxs(ss,{defaultActiveKey:d,activeKey:d,flush:!0,className:"mt-3 mb-1",alwaysOpen:!0,children:[b.jsxs(ss.Item,{eventKey:"0",children:[b.jsx(ss.Header,{children:"Resources"}),b.jsx(ss.Body,{children:b.jsxs("table",{className:"table table-striped table-bordered mt-2 mb-0",children:[b.jsx("thead",{children:b.jsxs("tr",{children:[b.jsx("td",{children:b.jsx("span",{className:"m-0 p-0",children:"Resource"})}),b.jsx("td",{children:b.jsx("span",{className:"m-0 p-0 d-inline",children:"Allocation"})})]})}),b.jsx("tbody",{children:r.map((w,T)=>b.jsxs("tr",{children:[b.jsx("td",{children:w.resourceName}),b.jsx("td",{style:{whiteSpace:"nowrap"},children:h(w)})]},`resource_${n.requestId}_${T}`))})]})})]}),b.jsxs(ss.Item,{eventKey:"1",children:[b.jsx(ss.Header,{children:"Abstract"}),b.jsx(ss.Body,{children:b.jsx("div",{style:{whiteSpace:"pre-wrap",padding:"5px"},children:n.abstract})})]})]})]})]})},_Z=()=>{const n=qn(EZ);return n.length==0?b.jsx("div",{children:"No Projects Found"}):b.jsx("div",{children:n.map((r,i)=>b.jsx(NZ,{project:r},`project_${i}`))})};const UO=()=>{const n=Io(),r=qn(SZ),[i,u]=M.useState([]),[l,d]=M.useState("0"),h=Array.from({length:r.last_page},(N,O)=>O),v=10,y={width:"50px",textAlign:"center"};M.useEffect(()=>{w()},[r]);const C=N=>{const O=parseInt(N);n(zw({current_page:N})),n(Gf(O))},x=N=>(event.preventDefault(),d("0"),C(N),!1),w=()=>{const N=[];if(r.last_page>v)if(r.current_page>4){N.push(1),N.push("spacer");for(var O=1;O>0;O--)r.current_page-O>1&&N.push(r.current_page-O);N.push(["current",r.current_page]);for(var O=1;O<2;O++)r.current_page+O<=r.last_page&&N.push(r.current_page+O);r.last_page-r.current_page>1&&(N.push("spacer"),N.push(r.last_page))}else[1,2,3,4,5].forEach(_=>{_==r.current_page?N.push(["current",_]):N.push(_)}),N.push("spacer"),N.push(r.last_page);else for(var O=1;O<=r.last_page;O++)O==r.current_page?N.push(["current",O]):N.push(O);u(N)},T=N=>{let O="";return typeof N=="object"?[N,O]=N:O=N,N=="spacer"?b.jsx("li",{className:"page-item disabled",children:b.jsx("span",{className:"page-link",style:y,children:". . ."})}):N=="current"?b.jsx("li",{className:"page-item active","aria-current":"page",children:b.jsx("span",{className:"page-link",style:y,children:O})}):b.jsx("li",{className:"page-item",children:b.jsx("button",{className:"page-link",style:y,onClick:()=>C(N),children:O})})},A=()=>b.jsx("li",{className:"page-item",children:b.jsxs("select",{className:"page-link",style:{...y,height:"100%"},value:l,onChange:N=>x(N.target.value),children:[b.jsx("option",{value:"0",children:"Go To"}),h.map(N=>b.jsx("option",{value:N+1,children:N+1},`page_option_${N}`))]})});return b.jsx("div",{children:b.jsx("nav",{"aria-label":"Pages for the table",children:b.jsxs("ul",{className:"pagination",children:[b.jsx("li",{className:`page-item ${r.current_page==1?"disabled":""}`,children:b.jsx("button",{className:"page-link",style:{width:"50px",textAlign:"center"},onClick:()=>C(r.current_page-1),disabled:r.current_page==1,"aria-label":"Previous Page Button",children:"<"})}),i.map((N,O)=>b.jsx(kr.Fragment,{children:T(N)},`page_${O}`)),r.last_page>v?A():"",b.jsx("li",{className:`page-item ${r.current_page==r.last_page?"disabled":""}`,children:b.jsx("button",{className:"page-link",style:y,onClick:()=>C(r.current_page+1),disabled:r.current_page==r.last_page,"aria-label":"Next Page Button",children:">"})})]})})})},OZ=({api_url:n})=>{const r=Io(),i=qn(xZ),u=qn(yZ),l=qn(wZ),d=b.jsx("div",{className:"loadingDiv",children:"Loading ..."});return M.useEffect(()=>{r(dZ())},[]),b.jsx("div",{className:"container-fluid",children:b.jsxs("div",{className:"row",children:[b.jsx("div",{className:"col-sm-3",children:b.jsx(IZ,{})}),b.jsxs("div",{className:"col-sm-9",children:[b.jsx("div",{className:"row",children:b.jsx("div",{className:"col",children:l?b.jsx(UO,{}):""})}),b.jsx("div",{className:"row",id:"projectListRow",children:b.jsx("div",{className:"col",children:i&&u?b.jsx(_Z,{}):d})}),b.jsx("div",{className:"row",children:b.jsx("div",{className:"col",children:l?b.jsx(UO,{scroll:"projects_browser_app"}):""})})]})]})})},AZ=n=>n.publications_store.publication,jZ=n=>n.publications_store.publication.doi,DZ=n=>n.publications_store.publication_types,Bk=n=>n.publications_store.publication.authors,kZ=n=>n.publications_store.tag_categories,MZ=n=>n.publications_store.projects,LZ=n=>n.publications_store.publication.tags,PZ=n=>n.publications_store.errors,zk=n=>n.publications_store.data_loaded,Hk=n=>n.publications_store.show_saved,YR=n=>n.publications_store.saving,FZ=n=>n.publications_store.modal,Uk=n=>n.publications_store.form_valid,$k=n=>!YR(n)&&zk(n)&&Uk(n)&&Gk(n)&&n.publications_store.projects.filter(r=>r.selected).length>0,Gk=n=>{const r=Bk(n);return r.length==0?!1:r.filter(i=>i.first_name==""||i.last_name=="").length==0},Wk=n=>({type:"UPDATE_PUBLICATION",payload:n}),VZ=n=>({type:"UPDATE_FIELD",payload:n}),Hw=n=>({type:"CHANGE_PUB_TYPE",payload:n}),BZ=n=>({type:"SET_PUBLICATION",payload:n}),zZ=()=>({type:"ADD_AUTHOR"}),HZ=n=>({type:"UPDATE_AUTHOR",payload:n}),UZ=n=>({type:"TOGGLE_REQUEST",payload:n}),Im=n=>({type:"UPDATE_ERRORS",payload:n}),Xk=n=>({type:"HIDE_ERROR",payload:n}),$Z=n=>({type:"UPDATE_SELECTED_TAGS",payload:n}),GZ=n=>({type:"DELETE_AUTHOR",payload:n}),WZ=n=>({type:"DATA_LOADED",payload:n}),Yk=n=>({type:"UPDATE_SHOW_SAVED",payload:n}),XZ=()=>({type:"RESET_STATE"}),KE=n=>({type:"UPDATE_SAVING",payload:n}),YZ=n=>({type:"SET_FORM_VALID",payload:n}),Zk=n=>({type:"SET_GRANT_NUMBER",payload:n}),ZZ=n=>({type:"ADD_PROJECT",payload:n}),hc={routes:{}},JZ=(n,r,i)=>{let u=!0;const l=[];for(const h of r)n[h]||(u=!1,l.push(h));const d=n.authors||[];for(const h of d)for(const v of i)h[v]||(u=!1,l.includes(v)||l.push(v));return{formValid:u,missingFields:l}},qZ=n=>n.length>0?b.jsxs("div",{role:"alert",children:[b.jsx("p",{children:"Please provide the following information before submitting:"}),b.jsx("ul",{children:n.map(r=>b.jsx("li",{children:QZ(r)},r))})]}):null;function QZ(n){return n.split("_").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" ")}const KZ=()=>async(n,r)=>{const i=r().publications_store.publication.doi,u=encodeURIComponent(i).replaceAll(".","%2E"),l="Unable to retrieve publication. Double check your DOI, or continue entering information manually.";fetch(`/publications/lookup?doi=${u}`).then(d=>d.json()).then(d=>{if(d.title!=""){let h=r().publications_store.publication_types.find(v=>v.citation_style_type==d.type);n(Hw(h?h.publication_type:"Other")),n(BZ(d))}else n(Im(l))},d=>{n(Im(l))})},e6=()=>async(n,r)=>{const i=r().publications_store.grant_number,u=hc.routes.publications_find_project_path();await fetch(`${u}?grant_number=${i}`).then(l=>l.json()).then(l=>{n(ZZ(l)),n(Zk(""))},()=>{n(Im("Unable to find a project with this grant number."))})},Jk=()=>async n=>{const r=/^\/requests/.test(window.location.pathname)?hc.routes.publication_path("new.json"):window.location.href+".json";await fetch(r).then(i=>i.json()).then(i=>{n(WZ(i))})},qk=()=>async(n,r)=>{const i=r().publications_store,u=i.projects.filter(T=>T.selected),l=Object.keys(i.selected_tags).map(T=>i.selected_tags[T]).flat(),d={...i.publication},h=i.errors,{formValid:v,missingFields:y}=JZ(d,["title","publication_year","publication_month"],["first_name","last_name"]);if(!v){h.length>0&&Array.from(h).forEach(A=>{n(Xk(A.id))});const T=qZ(y);n(Im(T));return}const C={authenticity_token:document.getElementsByName("authenticity_token")[0].value,publication:d,authors:d.authors.map(T=>({...T,order:0})),tags:l,projects:u};let x,w;d.publication_id?(x=hc.routes.publication_path(d.publication_id),w="PATCH"):(x=hc.routes.publications_path(),w="POST"),n(KE(!0)),await fetch(x,{method:w,headers:{"Content-Type":"application/json"},body:JSON.stringify(C)}).then(T=>{i.redirect?window.location.href=hc.routes.publications_path():(d.publication_id||(n(XZ()),n(Jk())),n(Yk(!0)),n(KE(!1)))},()=>{n(KE(!1)),n(Im("There was an error saving this publication."))})},t6=({doi:n,updatePublication:r,doiLookup:i})=>b.jsx("div",{className:"row mb-3",children:b.jsxs("div",{className:"col",children:[b.jsx("label",{htmlFor:"doi",className:"form-label",children:"DOI"}),b.jsxs("div",{className:"input-group",children:[b.jsx("input",{type:"text",className:"form-control",id:"doi",name:"publication[doi]","aria-label":"DOI Input and Search box","aria-describedby":"doi_button",value:n,onChange:u=>r(u.target.value)}),b.jsx("button",{className:"btn btn-primary",type:"button",id:"doi_button",onClick:()=>i(),children:"Lookup Publication"})]})]})}),n6=n=>({doi:jZ(n)}),r6=n=>({updatePublication:r=>n(Wk({key:"doi",value:r})),doiLookup:()=>n(KZ())}),a6=ds(n6,r6)(t6),i6=({author:n,authorKey:r,updateAuthor:i,deleteAuthor:u})=>{const l=v=>{i({key:v.target.name,value:v.target.value,idx:r})},d=v=>b.jsx("td",{children:b.jsx("input",{type:"text",className:"form-control",name:v,id:v,value:n[v],onChange:y=>l(y)})},`field_${v}`),h=["first_name","last_name","affiliation"];return b.jsxs("tr",{children:[h.map(v=>d(v)),b.jsx("td",{children:r!==0&&b.jsx("button",{className:"btn btn-sm btn-danger",onClick:()=>u(r),children:b.jsx("i",{className:"bi bi-trash"})})})]})},o6=n=>({updateAuthor:r=>n(HZ(r)),deleteAuthor:r=>n(GZ(r))}),$O=ds(null,o6)(i6),s6=({authors:n,addAuthor:r,authors_exist:i})=>{const u=n.length===0,l=()=>i?"":b.jsx("div",{className:"alert alert-danger",children:"You must add at least one author and each author must have a first and last name"});return b.jsxs("div",{children:[l(),b.jsxs("table",{className:"table",children:[b.jsx("thead",{children:b.jsxs("tr",{children:[b.jsx("th",{children:"First Name"}),b.jsx("th",{children:"Last Name"}),b.jsx("th",{children:"Affiliation"}),b.jsx("th",{})]})}),b.jsxs("tbody",{children:[n.map((d,h)=>b.jsx($O,{author:d,authorKey:h},`author_${h}`)),u&&b.jsx($O,{author:r()})]})]}),b.jsx("button",{className:"btn btn-primary mt-3",onClick:()=>r(),children:"Add Author"})]})},l6=n=>({authors:Bk(n),authors_exist:Gk(n)}),u6=n=>({addAuthor:()=>n(zZ())}),c6=ds(l6,u6)(s6),f6=({category:n,publication_tags:r,updateSelectedTags:i,index:u})=>{const l=M.useRef(null),d=()=>{const v=r.filter(y=>y.label==n.label)[0];return v?v.options:[]},h=v=>{i({category:n.label,tags:v})};return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"fw-bold mb-1",children:n.label}),b.jsx("div",{className:"mb-3",children:b.jsx(WR,{classNames:{control:v=>v.isFocused?"custom-select-selected":"border-grey-300"},defaultValue:d(),options:n.options,isMulti:!0,openMenuOnClick:!0,name:`tags_${u}`,inputId:`tags_${u}`,ref:l,closeMenuOnSelect:!1,onChange:h})})]})},d6=n=>({updateSelectedTags:r=>n($Z(r))}),p6=n=>({publication_tags:LZ(n)}),v6=ds(p6,d6)(f6),h6=({projects:n,toggleProject:r})=>{const i=l=>`list-group-item list-group-item-action clickable ${l.selected?"list-group-item-success":""}`,u=()=>n.filter(l=>l.selected).length>0;return b.jsx("div",{className:"row",children:b.jsxs("div",{className:"col",children:[u()?"":b.jsx("div",{className:"alert alert-danger",children:"You must select at least one project"}),b.jsx("div",{className:"list-group",children:n.map((l,d)=>b.jsxs("div",{className:i(l),onClick:()=>r(d),children:[l.grant_number,": ",l.title]},`project_${l.grant_number}`))})]})})},m6=n=>({projects:MZ(n)}),g6=n=>({toggleProject:r=>n(UZ(r))}),y6=ds(m6,g6)(h6),b6=({grant_number:n,setGrantNumber:r,grantSearch:i})=>b.jsx("div",{className:"row",children:b.jsxs("div",{className:"col",children:["If your project isn't listed above, you can manually add it by entering the grant number below.",b.jsxs("div",{className:"input-group mt-1",children:[b.jsx("input",{type:"text",className:"form-control",value:n,onChange:u=>r(u.target.value),placeholder:"Enter a grant number"}),b.jsx("button",{className:"btn btn-primary",onClick:()=>i(),children:"Find Project"})]})]})}),C6=n=>({setGrantNumber:r=>n(Zk(r)),grantSearch:()=>n(e6())}),x6=n=>({grant_number:n.publications_store.grant_number}),S6=ds(x6,C6)(b6),E6=({publication:n,updateField:r,publication_types:i,changePubType:u,updatePublication:l,tag_categories:d,savePublication:h,modal:v,save_enabled:y,setFormValid:C,form_valid:x})=>{const w=F=>{F.target.value.trim()==""?C(!1):C(!0),l({key:"title",value:F.target.value})},T=()=>n.fields.map((F,V)=>b.jsx("div",{className:"row mb-3",children:b.jsxs("div",{className:"col",children:[b.jsx("label",{htmlFor:`field_${F.csl_field_name}`,className:"form-label",children:F.name}),b.jsx("input",{type:"text",className:"form-control",name:`field_${F.csl_field_name}`,id:`field_${F.csl_field_name}`,value:F.field_value,onChange:H=>r({index:V,value:H.target.value})})]})},`field_${F.csl_field_name}`)),A=()=>{const F=new Date().getFullYear()+2;let V=1980;const H=[];for(;V<=F;)H.push(V++);const z=["January","February","March","April","May","June","July","August","September","October","November","December"],U=b.jsx("i",{className:"bi bi-asterisk text-danger"});return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"row mb-3",children:b.jsxs("div",{className:"col",children:[b.jsxs("label",{className:"form-label",htmlFor:"publication_title",children:["Title ",U]}),b.jsx("input",{name:"publication_title",id:"publication_title",type:"text",className:`form-control ${x?"":"is-invalid"}`,value:n.title,onChange:J=>w(J)})]})}),b.jsx("div",{className:"row mb-3",children:b.jsxs("div",{className:"col",children:[b.jsx("label",{className:"form-label",htmlFor:"publication_year",children:"Year Published"}),b.jsx("select",{name:"publication_year",id:"publication_year",className:"form-control",value:n.publication_year,onChange:J=>{l({key:"publication_year",value:J.target.value})},children:H.map(J=>b.jsx("option",{value:J,children:J},`year_${J}`))})]})}),b.jsx("div",{className:"row mb-3",children:b.jsxs("div",{className:"col",children:[b.jsx("label",{className:"form-label",htmlFor:"publication_month",children:"Month Published"}),b.jsx("select",{name:"publication_month",id:"publication_month",className:"form-control",value:n.publication_month,onChange:J=>{l({key:"publication_month",value:J.target.value})},children:z.map((J,q)=>b.jsx("option",{value:q+1,children:J},`month_${q}`))})]})})]})},N=b.jsxs("div",{className:"card",children:[b.jsx("div",{className:"card-header",children:b.jsx("h2",{children:"Publication Information"})}),b.jsxs("div",{className:"card-body",children:[b.jsx("p",{className:"mb-2",children:'Enter information about this publication below. If you have a DOI, you may use the "Lookup Publication" button to attempt to find this information automatically.'}),b.jsx(a6,{}),b.jsx("div",{className:"row mb-3",children:b.jsxs("div",{className:"col",children:[b.jsx("label",{htmlFor:"publication_type",className:"form-label",children:"Publication Type"}),b.jsx("select",{name:"publication[publication_type]",id:"publication_type",className:"form-control",value:n.publication_type,onChange:F=>u(F.target.value),children:i.map(F=>b.jsx("option",{value:F.publication_type,children:F.publication_type},`pub_type_${F.type_id}`))})]})}),A(),T()]})]}),O=b.jsxs("div",{className:"card mt-3",children:[b.jsxs("div",{className:"card-header d-flex",children:[b.jsx("h2",{children:"Authors"}),b.jsxs(Hp,{children:[`Add authors by clicking the "Add Authors" button below and entering the author's details. You may also remove authors by clicking the `,b.jsx("i",{className:"bi bi-trash fw-bold text-danger"})," ","button"]})]}),b.jsx("div",{className:"card-body",children:b.jsx(c6,{})})]}),_=b.jsxs("div",{className:"card mt-3",children:[b.jsxs("div",{className:"card-header d-flex",children:[b.jsx("h2",{children:"Tags"}),b.jsx(Hp,{children:"Add related tags from the lists below. You may choose multiple tags per category."})]}),b.jsx("div",{className:"card-body",children:d.map((F,V)=>b.jsx(v6,{index:V,category:F},`tc_${V}`))})]}),L=b.jsxs("div",{className:"card mt-3",children:[b.jsxs("div",{className:"card-header d-flex",children:[b.jsx("h2",{children:"Associated Projects"}),b.jsx(Hp,{children:"Click/Tap each project that this publication is related to."})]}),b.jsxs("div",{className:"card-body",children:[b.jsx(y6,{}),b.jsx("hr",{}),b.jsx(S6,{})]})]});return b.jsxs(b.Fragment,{children:[N,O,_,L,v?null:b.jsx("p",{className:"mt-3",children:b.jsx("button",{onClick:()=>h(),className:"btn btn-success",disabled:!y,children:"Save Publication"})})]})},w6=n=>({publication:AZ(n),publication_types:DZ(n),tag_categories:kZ(n),saving:YR(n),modal:FZ(n),save_enabled:$k(n),form_valid:Uk(n)}),R6=n=>({updateField:r=>n(VZ(r)),changePubType:r=>n(Hw(r)),updatePublication:r=>n(Wk(r)),savePublication:()=>n(qk()),setFormValid:r=>n(YZ(r))}),T6=ds(w6,R6)(E6),I6=({errors:n,hideError:r})=>b.jsx(b.Fragment,{children:n.map(i=>b.jsxs("div",{className:"alert alert-danger alert-dismissible sticky-top",children:[i.message,b.jsx("button",{type:"button",className:"btn-close","aria-label":"Close",onClick:()=>r(i.id)})]},`err_${i.id}`))}),N6=n=>({errors:PZ(n)}),_6=n=>({hideError:r=>n(Xk(r))}),O6=ds(N6,_6)(I6),A6=({show_saved:n,updateShowSaved:r})=>{const i=b.jsxs("div",{className:"alert alert-success alert-dismissible sticky-top",children:["Publication Saved Successfully!",b.jsx("button",{type:"button",className:"btn-close","aria-label":"Close",onClick:()=>r(!1)})]});return n?i:b.jsx(b.Fragment,{})},j6=n=>({show_saved:Hk(n)}),D6=n=>({updateShowSaved:r=>n(Yk(r))}),k6=ds(j6,D6)(A6),M6=({getData:n,data_loaded:r})=>(M.useEffect(()=>{n()},[]),b.jsxs(b.Fragment,{children:[b.jsx(k6,{}),b.jsx(O6,{}),r?b.jsx(T6,{}):b.jsx(Mm,{})]})),L6=n=>({data_loaded:zk(n)}),P6=n=>({getData:()=>n(Jk())}),Qk=ds(L6,P6)(M6),F6=({saving:n,savePublication:r,showSaved:i,updatePublications:u,save_enabled:l})=>{const[d,h]=M.useState(!1);return M.useEffect(()=>{!n&&i&&u()},[n,i]),b.jsxs(b.Fragment,{children:[b.jsxs(Ln,{size:"xl",show:d,onHide:()=>h(!1),scrollable:!0,children:[b.jsx(Ln.Header,{closeButton:!0,children:b.jsx(Ln.Title,{children:"Add Publication"})}),b.jsx(Ln.Body,{children:b.jsx(Qk,{})}),b.jsx(Ln.Footer,{children:b.jsxs("div",{className:"d-flex",children:[b.jsx("button",{type:"button",className:"btn btn-danger me-2",onClick:()=>h(!1),children:"Cancel"}),b.jsx("button",{type:"button",className:"btn btn-primary",onClick:()=>{r(),h(!1)},children:"Save Publication"})]})})]}),b.jsx("button",{type:"button",className:"btn btn-primary",onClick:()=>h(!0),children:"Add a New Publication"})]})},V6=n=>({saving:YR(n),showSaved:Hk(n),save_enabled:$k(n)}),B6=n=>({savePublication:()=>n(qk())}),z6=ds(V6,B6)(F6),H6=({usernames:n=[],publication_ids:r=[]})=>{const[i,u]=M.useState(n),[l,d]=M.useState(r),[h,v]=M.useState([]),y=M.useRef(i),C=O=>{y.current=O,u(O)},x=async()=>{const _=await(await fetch(hc.routes.search_publications_path({usernames:i}))).json();v(_)};M.useEffect(()=>{x()},[i]),M.useEffect(()=>{addEventListener("requestAddRole",O=>C([...y.current,O.detail.username])),addEventListener("requestRemoveRole",O=>C(y.current.filter(_=>_!=O.detail.username)))},[]);let w=!1,T=!1;const A=h.map(O=>{const _=l.includes(O.publication_id);w=w||_,T=T||!_;const L=new Date(O.publication_year,O.publication_month-1);return b.jsxs("tr",{children:[b.jsx("td",{children:b.jsx("input",{type:"checkbox",name:"publication_ids[]",value:O.publication_id,checked:_,onChange:()=>d(_?l.filter(F=>F!=O.publication_id):[...l,O.publication_id])})}),b.jsx("td",{children:O.title}),b.jsx("td",{children:O.authors.map(F=>`${F.first_name} ${F.last_name}`).join(", ")}),b.jsx("td",{children:O.publication_type}),b.jsxs("td",{children:[L.toLocaleString("default",{month:"short"})," ",O.publication_year]})]},O.publication_id)}),N=`${T?"Select":"Deselect"} all`;return b.jsxs("div",{className:"publications-select",children:[b.jsxs("table",{className:"table",children:[b.jsx("thead",{children:b.jsxs("tr",{children:[b.jsx("th",{children:b.jsx("input",{type:"checkbox",value:"","aria-label":N,title:N,checked:w&&!T,onChange:()=>d(T?h.map(O=>O.publication_id):[]),ref:O=>{O&&(O.indeterminate=w&&T)}})}),b.jsx("th",{children:"Title"}),b.jsx("th",{children:"Authors"}),b.jsx("th",{children:"Type"}),b.jsx("th",{children:"Date"})]})}),b.jsx("tbody",{children:A})]}),b.jsx(z6,{updatePublications:x})]})},U6=()=>`${Math.random().toString(36).slice(2)}`,Uw=document.querySelector("#publications-react"),$6=Uw?Uw.dataset:{},GO={publication_types:[],tag_categories:[],publication:{},projects:[],errors:[],selected_tags:{},data_loaded:!1,saving:!1,show_saved:!1,redirect:$6.redirect||!1,modal:Uw==null,form_valid:!1,grant_number:""},G6=(n=GO,r)=>{const{type:i,payload:u}=r;switch(i){case"UPDATE_FIELD":return So(n,d=>(d.publication.fields[u.index].field_value=u.value,d));case"CHANGE_PUB_TYPE":return So(n,d=>{let h=d.publication_types.find(v=>v.publication_type==u).fields;return h.forEach(v=>{const y=d.publication.fields.find(C=>C.csl_field_name==v.csl_field_name);y&&(v.value=y.value)}),d.publication.publication_type=u,d.publication.fields=h,d});case"UPDATE_PUBLICATION":return{...n,publication:{...n.publication,[u.key]:u.value}};case"SET_PUBLICATION":return So(n,d=>(d.publication.fields.forEach(h=>{h.field_value=u[h.csl_field_name]}),Object.keys(d.publication).forEach(h=>{u[h]&&(d.publication[h]=u[h])}),d.form_valid=u.title.trim()!="",d));case"ADD_AUTHOR":{const l={portal_username:"",first_name:"",middle_name:"",last_name:"",prefix:"",suffix:"",initials:"",affiliation:"",hash:{}};return So(n,h=>{h.publication.authors.push(l)})}case"UPDATE_AUTHOR":return So(n,d=>{d.publication.authors[u.idx][u.key]=u.value});case"TOGGLE_TAG":return So(n,d=>{let h=d.tag_categories.find(v=>v.publication_tags_category_id==u.publication_tags_category_id);h.tags[u.idx].selected=!h.tags[u.idx].selected});case"TOGGLE_REQUEST":return So(n,d=>(d.projects[u].selected=!d.projects[u].selected,d));case"UPDATE_ERRORS":{const l={id:U6(),message:u};return{...n,errors:[...n.errors,l]}}case"HIDE_ERROR":{const l=n.errors.filter(d=>d.id!=u);return{...n,errors:l}}case"UPDATE_SELECTED_TAGS":return So(n,d=>{const h=u.tags.map(v=>v.value);return d.selected_tags[u.category]=h,d});case"DELETE_AUTHOR":return So(n,d=>(d.publication.authors.splice(u,1),d));case"DATA_LOADED":return So(n,d=>(d.publication=u.publication,d.form_valid=u.publication.title.trim()!="",d.publication.authors.forEach(h=>{h.affiliation||(h.affiliation="")}),d.publication_types=u.publication_types,d.tag_categories=u.tag_categories,d.projects=u.publication.projects,u.publication.tags.forEach(h=>d.selected_tags[h.label]=h.options.map(v=>v.value)),d.data_loaded=!0,d));case"UPDATE_SHOW_SAVED":return{...n,show_saved:u};case"UPDATE_SAVING":return{...n,saving:u};case"RESET_STATE":return GO;case"SET_FORM_VALID":return{...n,form_valid:u};case"SET_GRANT_NUMBER":return{...n,grant_number:u};case"ADD_PROJECT":return{...n,projects:[...n.projects,u]};default:return n}},W6={catalogs:{},filteredResources:[],filters:[],hasErrors:!1,onRamps:!1,resources:[],resourcesLoaded:!1,resourceSorting:{"NSF Capacity Resources":1,"NSF Innovative Testbeds":2,"Other NSF-funded Resources":3,"Services and Support":4}},r0=Di("resourceCatalog/getResources",async(n,{dispatch:r})=>{r(WO(!1));let i=[];n.catalogSources?i=n.catalogSources:i.push({...n,catalogLabel:"Default"}),n.onRamps&&i.push({apiUrl:"https://allocations.access-ci.org/resources.json",catalogLabel:"ACCESS",allowedCategories:[],allowedFilters:[],allowedResources:[],excludedCategories:["Resource Category"],excludedFilters:[],excludedResources:["ACCESS Credits"]});const u=await Promise.all(i.map(async l=>{const h=await(await fetch(l.apiUrl)).json();return{...l,data:h}}));r(J6({data:u,params:n})),r(WO(!0))});Di("resourceCatalog/getResources",async(n,{dispatch:r})=>{r(Q6(n)),r(eM())});const X6=n=>{const r=[],i=n.filter(u=>u.features.filter(l=>l.selected).length>0);return n.forEach(u=>{u.features.forEach(l=>{l.selected&&r.push(l.featureId)})}),i.map(u=>({...u,features:u.features.filter(l=>l.selected)}))},Y6=n=>{const r={},i={};let u={};return n.forEach(d=>{r[d.catalogLabel]={...d,resourceIds:[],selected:!1,catalogId:d.catalogLabel.replace(/[^(A-z)]/,"")},delete r[d.catalogLabel].data,d.data.forEach(h=>{if($w(d.allowedResources,d.excludedResources,h.resourceName)){const{categories:v,formattedResource:y}=Z6(d,h,u);i[h.resourceId]=y,r[d.catalogLabel].resourceIds.push(h.resourceId),u=v}})}),{resources:Object.keys(i).map(d=>i[d]),catalogs:r,categories:u}},$w=(n,r,i)=>!n&&!r||n&&n.length==0&&r&&r.length==0?!0:n&&n.length>0?n.find(u=>u==i):r&&r.length>0?!r.find(u=>u==i):!0,Z6=(n,r,i)=>{const u=[];let l="";r.featureCategories.filter(v=>v.categoryIsFilter).forEach(v=>{const y=v.categoryId;v.categoryName=="ACCESS Resource Grouping"?l=v.features[0].name:(!i[y]&&$w(n.allowedCategories,n.excludedCategories,v.categoryName)&&(i[y]={categoryId:y,categoryName:v.categoryName,categoryDescription:v.categoryDescription,features:{}}),v.features.forEach(C=>{const x={featureId:C.featureId,name:C.name,description:C.description,categoryId:y,selected:!1},w=$w(n.allowedFilters,n.excludedFilters,x.name);w&&u.push(x),i[y]&&w&&!i[y].features[C.featureId]&&(i[y].features[C.featureId]=x)}))});const d=u.map(v=>v.name).sort((v,y)=>v>y);return{formattedResource:{...r,resourceName:r.resourceName.trim(),features:d,featureIds:u.map(v=>v.featureId),sortCategory:l},categories:i}},Kk=D0({name:"resourceCatalog",initialState:W6,reducers:{handleResponse:(n,{payload:r})=>{const i=r.data,{resources:u,catalogs:l,categories:d}=Y6(i);n.catalogs=l,n.onRamps=r.params.onRamps;for(const h in d){const v=d[h],y=[];for(const C in v.features)y.push(v.features[C]);n.filters.push({...v,features:y.sort((C,x)=>C.name>x.name)})}n.filters=n.filters.sort((h,v)=>h.categoryName.localeCompare(v.categoryName)),n.resources=u.sort((h,v)=>h.resourceName.localeCompare(v.resourceName)).sort((h,v)=>n.resourceSorting[h.sortCategory]>n.resourceSorting[v.sortCategory]),n.filteredResources=[...n.resources],n.resourcesLoaded=!0},resetFilters:n=>{n.filters.forEach(r=>{r.features.forEach(i=>i.selected=!1)}),n.filteredResources=[...n.resources]},setResourcesLoaded:(n,{payload:r})=>{n.resourcesLoaded=r},toggleCatalog:(n,{payload:r})=>{const{catalog:i,selected:u}=r;n.catalogs[i.catalogLabel].selected=u},toggleFilter:(n,{payload:r})=>{if(r){const h=r,y=n.filters.find(C=>C.categoryId==h.categoryId).features.find(C=>C.featureId==h.featureId);y.selected=!y.selected}const i=X6(n.filters);let u=[];if(i.length>0){const h=i.map(v=>v.features.map(y=>y.featureId));n.resources.forEach(v=>{let y=0;h.forEach(C=>{let x=!1;v.featureIds.forEach(w=>{C.indexOf(w)>=0&&(x=!0)}),x&&(y+=1)}),y>=h.length&&u.push(v)})}else u=n.resources;const l=Object.keys(n.catalogs).map(h=>n.catalogs[h]),d=l.filter(h=>h.selected);if(d.length>0&&d.length<l.length){const h=d.map(v=>v.resourceIds).flat();u=u.filter(v=>h.indexOf(v.resourceId)>=0)}n.filteredResources=u}},extraReducers:n=>{n.addCase(r0.pending,r=>{}).addCase(r0.fulfilled,(r,i)=>{}).addCase(r0.rejected,(r,i)=>{r.hasErrors=!0,console.log(i.error)})}}),{handleResponse:J6,processData:Q8,resetFilters:q6,setResourcesLoaded:WO,toggleCatalog:Q6,toggleFilter:eM}=Kk.actions,tM=n=>n.resourceCatalog.catalogs,K6=n=>n.resourceCatalog.filters,e8=n=>n.resourceCatalog.hasErrors,t8=n=>n.resourceCatalog.resourcesLoaded,n8=n=>n.resourceCatalog.filteredResources,r8=Kk.reducer,a8="_access_1yrq0_2",i8="_resourceName_1yrq0_6",o8="_description_1yrq0_11",s8="_filterBar_1yrq0_15",l8="_cardBg_1yrq0_20",u8="_active_1yrq0_25",c8="_plainButton_1yrq0_30",f8="_btnSecondary_1yrq0_40",d8="_filtersHidden_1yrq0_51",p8="_filtersVisible_1yrq0_57",Eo={access:a8,resourceName:i8,description:o8,filterBar:s8,cardBg:l8,active:u8,plainButton:c8,btnSecondary:f8,filtersHidden:d8,filtersVisible:p8},v8=({resource:n})=>{const[r,i]=M.useState(!0),u=C=>{const x={"CPU Compute":"cpu-fill","GPU Compute":"gpu-card",Cloud:"cloud-fill","Commercial Cloud":"cloud-fill",Storage:"database-fill","Service / Other":"journal","Innovative / Novel Compute":"pc"};return x[C]?b.jsx("i",{title:C,className:`bi bi-${x[C]} me-2 `},`${n.resourceId}_${x[C]}`):""},l=()=>b.jsxs("span",{className:"float-end",children:[n.features.map(C=>u(C)),n.resourceType]}),d=C=>C.length==0?"":b.jsx(b.Fragment,{children:C.map((x,w)=>b.jsx("span",{className:"badge text-bg-secondary me-2",children:x},`feature_${n.resourceId}_${w}`))}),h=()=>{let C=n.resourceDescription;return C&&C!=""?(Eo.plainButton,b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"row",children:b.jsxs("div",{className:"col fw-bold",children:["About ",n.resourceName]})}),b.jsx("div",{className:"row mb-3",children:b.jsxs("div",{className:"col ",children:[b.jsx("div",{className:Eo.description,dangerouslySetInnerHTML:{__html:C}}),""]})})]})):""},v=()=>n.recommendedUse&&n.recommendedUse!=""?b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"row",children:b.jsx("div",{className:"col fw-bold",children:"Recommended Use"})}),b.jsx("div",{className:"row mb-3",children:b.jsx("div",{className:"col",children:b.jsx("div",{className:Eo.description,dangerouslySetInnerHTML:{__html:n.recommendedUse}})})})]}):"",y=()=>Eo.cardBg;return b.jsx(b.Fragment,{children:b.jsx("div",{className:"row",children:b.jsx("div",{className:"col",children:b.jsxs("div",{className:"card mb-3",children:[b.jsxs("div",{className:`card-header ${y()}`,children:[b.jsx("span",{className:"",children:n.resourceName}),l()]}),b.jsxs("div",{className:"card-body",children:[b.jsx("div",{className:"row mb-3",children:b.jsx("div",{className:"col",children:d(n.features)})}),v(),h()]}),b.jsx("div",{className:"card-footer",children:b.jsxs("a",{target:"_blank",href:n.userGuideUrl,className:"btn btn-info me-2 fw-bold",children:["System Info ",b.jsx("i",{className:"bi bi-box-arrow-up-right"})]})})]})})})})},h8=({filter:n})=>{const r=Io(),i=()=>{r(eM(n))};return b.jsx("div",{className:"row",children:b.jsx("div",{className:"col",children:b.jsxs("div",{className:"form-check",children:[b.jsx("label",{className:"form-check-label",htmlFor:`filter_${n.featureId}`,children:n.name}),b.jsx("input",{className:"form-check-input",type:"checkbox",value:n.featureId,id:`filter_${n.featureId}`,checked:n.selected,onChange:i})]})})})},m8=({category:n})=>b.jsx("div",{className:"row",children:b.jsxs("div",{className:"col",children:[b.jsx("div",{className:"fw-bold mb-1 mt-1",children:b.jsx("abbr",{title:n.categoryDescription,children:n.categoryName})}),n.features.map(r=>b.jsx(h8,{filter:r},r.featureId))]})}),g8=({onReset:n})=>{const r=Io(),i=qn(tM),u=qn(K6),l=u.filter(d=>d.features.filter(h=>h.selected).length>0);return Object.keys(i).map(d=>i[d]),b.jsxs(b.Fragment,{children:[u.map(d=>b.jsx(m8,{category:d},d.categoryId)),b.jsx("button",{className:"btn btn-warning mt-2 mb-2",onClick:()=>r(q6()),disabled:l.length==0,children:"Reset Filters"}),b.jsx("button",{className:"btn btn-outline-primary ms-3 mt-2 mb-2",onClick:n,children:"Close Menu"})]})},y8=()=>{const[n,r]=M.useState(!1),i=M.useRef(null),u=()=>{const l=i.current;n?(l.style.height="0px",l.classList.remove(Eo.filtersVisible),l.classList.add(Eo.filtersHidden)):(l.style.height=l.scrollHeight+"px",l.classList.remove(Eo.filtersHidden),l.classList.add(Eo.filtersVisible)),r(!n)};return b.jsx("div",{className:Eo.filterBar,children:b.jsx("div",{className:"row mb-2",children:b.jsx("div",{className:"col pt-2 pb-2",children:b.jsxs("div",{className:"p-1 pb-0 border-bottom bg-white shadow",children:[b.jsxs("button",{className:"btn btn-outline-primary mb-1 mt-1",type:"button",onClick:u,children:[b.jsx("i",{className:"bi bi-filter"})," Filters"]}),b.jsx("div",{className:`${Eo.filtersHidden} pe-2 ps-2`,id:"filtersList",ref:i,children:b.jsx(g8,{onReset:u})})]})})})})},b8=()=>{const n=qn(n8);return n.length==0?b.jsx("div",{className:"fw-bold",children:"No Resources Match Your Filters"}):b.jsx("div",{className:"card shadow",children:b.jsxs("div",{className:"card-body",children:[b.jsx(y8,{}),n.map(r=>b.jsx(v8,{resource:r},r.resourceId))]})})},C8=({baseUrl:n})=>b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"row",children:b.jsx("div",{className:"col d-flex",children:b.jsx("img",{alt:"Access Logo",style:{height:"75px"},src:`${n}/access_logo.png`})})}),b.jsx("div",{className:"row",children:b.jsx("div",{className:"col",children:b.jsx("h3",{className:"border-bottom",children:"NSF ACCESS Resources"})})}),b.jsx("div",{className:"row",children:b.jsxs("div",{className:"col",children:[b.jsx("h4",{children:"Discover the nationwide NSF cyberinfrastructure"}),b.jsx("p",{children:"Need advanced computing and storage options for your research or classroom? The ACCESS program has been established and funded by the U.S. National Science Foundation to help you - the nation's researchers and educators - to use some of the country's most advanced computing systems and services - at no cost to you."}),b.jsx("p",{children:"Thousands of researchers, instructors, and students from institutions large and small use ACCESS-integrated resources every year. With more than 30 resources from more than 15 resource providers, there's bound to be a resource for you, your lab, or your class."}),b.jsx("p",{children:"Explore the resource catalog below - filter the list to discover the resources that have the features or services to accelerate your activities. The System Info button will take you to the resource's documentation for all the details."}),b.jsx("p",{children:'Ready to begin? Click the "Get Your First Project" button and join the ACCESS community!'}),b.jsx("p",{children:b.jsxs("a",{href:"https://allocations.access-ci.org/get-your-first-project",target:"_blank",className:`btn btn-secondary fw-bold ${Eo.btnSecondary}`,children:["Get Your First Project ",b.jsx("i",{className:"bi bi-box-arrow-up-right"})]})}),b.jsxs("p",{children:["If you have feedback for ACCESS, please complete our",b.jsx("a",{target:"_blank",href:"https://docs.google.com/forms/d/e/1FAIpQLSdn-SXokNB_5s0r2SA_S9ZIZWZFlVPRD2OHepTH5HY2YND_zw/viewform",children:" Feedback Form"}),".",b.jsx("br",{}),"If you have questions, please",b.jsx("a",{target:"_blank",href:"https://support.access-ci.org/user/login?destination=/open-a-ticket",children:" open a help ticket"}),"."]})]})})]}),x8=({catalogSources:n=[],onRamps:r=!1,baseUrl:i})=>{const u=Io(),l=qn(t8),d=qn(e8),h=qn(tM),v=Object.keys(h).map(C=>h[C]);M.useEffect(()=>{u(r0({catalogSources:n,onRamps:r}))},[]);const y=()=>r&&v.length>1?b.jsx(b.Fragment,{children:v.filter(C=>C.catalogLabel!="ACCESS").map((C,x)=>b.jsx("div",{className:"row mb-3",children:b.jsxs("div",{className:"col",children:[b.jsxs("h4",{className:"border-bottom",children:["About ",C.catalogLabel]}),b.jsx("div",{dangerouslySetInnerHTML:{__html:C.description}})]})},`catalog_${x}`))}):"";return d?b.jsx("div",{className:"row",children:b.jsx("div",{className:"col text-center mt-2",children:b.jsx("h4",{children:"Unable to Load Resources"})})}):l?b.jsxs("div",{className:`container mt-3 ${Eo.access}`,children:[r?b.jsx(C8,{baseUrl:i}):"",y(),b.jsx("div",{className:"row",children:b.jsx("div",{className:"col",children:b.jsx(b8,{})})})]}):b.jsx(Mm,{})},S8={filters:[],resources:[],filteredResources:[],resourcesLoaded:!1,hasErrors:!1,resourceSorting:{"NSF Capacity Resources":1,"NSF Innovative Testbeds":2,"Other NSF-funded Resources":3,"Services and Support":4}},a0=Di("resourceCatalog/getResources",async(n,{dispatch:r})=>{const u=await(await fetch(n.apiUrl)).json();r(w8({data:u,params:n}))}),E8=n=>{const r=[],i=n.filter(u=>u.features.filter(l=>l.selected).length>0);return n.forEach(u=>{u.features.forEach(l=>{l.selected&&r.push(l.featureId)})}),i.map(u=>({...u,features:u.features.filter(l=>l.selected)}))},XO=(n,r,i)=>{if(n.length==0&&r.length==0)return!0;if(n.length>0)return n.find(u=>u==i);if(r.length>0)return!r.find(u=>u==i)},nM=D0({name:"resourceCatalog",initialState:S8,reducers:{handleResponse:(n,{payload:r})=>{const i=r.data,u=r.params.excludedCategories,l=r.params.excludedFilters,d=r.params.excludedResources,h=r.params.allowedCategories,v=r.params.allowedFilters,y=[],C={};i.filter(x=>!d.includes(x.resourceName)).forEach(x=>{const w=[];let T="";x.featureCategories.filter(N=>N.categoryIsFilter).forEach(N=>{const O=N.categoryId;N.categoryName=="ACCESS Resource Grouping"?T=N.features[0].name:(!C[O]&&XO(h,u,N.categoryName)&&(C[O]={categoryId:O,categoryName:N.categoryName,categoryDescription:N.categoryDescription,features:{}}),N.features.forEach(_=>{const L={featureId:_.featureId,name:_.name,description:_.description,categoryId:O,selected:!1},F=XO(v,l,L.name);F&&w.push(L),C[O]&&F&&!C[O].features[_.featureId]&&(C[O].features[_.featureId]=L)}))});const A={resourceName:x.resourceName,resourceId:x.resourceId,resourceType:x.resourceType,organization:x.organization,units:x.units,userGuideUrl:x.userGuideUrl,resourceDescription:x.resourceDescription,description:x.description,recommendedUse:x.recommendedUse,features:w.map(N=>N.name).sort((N,O)=>N>O),featureIds:w.map(N=>N.featureId),sortCategory:T};y.push(A)});for(const x in C){const w=C[x],T=[];for(const A in w.features)T.push(w.features[A]);n.filters.push({...w,features:T.sort((A,N)=>A.name>N.name)})}h.length>0?n.filters=n.filters.sort((x,w)=>h.indexOf(x.categoryName)>h.indexOf(w.categoryName)):n.filters=n.filters.sort((x,w)=>x.categoryName.localeCompare(w.categoryName)),n.resources=y.sort((x,w)=>x.resourceName.localeCompare(w.resourceName)).sort((x,w)=>n.resourceSorting[x.sortCategory]>n.resourceSorting[w.sortCategory]),n.filteredResources=[...n.resources],n.resourcesLoaded=!0},resetFilters:n=>{n.filters.forEach(r=>{r.features.forEach(i=>i.selected=!1)}),n.filteredResources=[...n.resources]},toggleFilter:(n,{payload:r})=>{const i=r,l=n.filters.find(h=>h.categoryId==i.categoryId).features.find(h=>h.featureId==i.featureId);l.selected=!l.selected;const d=E8(n.filters);if(d.length>0){const h=[],v=d.map(y=>y.features.map(C=>C.featureId));n.resources.forEach(y=>{let C=0;v.forEach(x=>{let w=!1;y.featureIds.forEach(T=>{x.indexOf(T)>=0&&(w=!0)}),w&&(C+=1)}),C>=v.length&&h.push(y)}),n.filteredResources=h}else n.filteredResources=[...n.resources]}},extraReducers:n=>{n.addCase(a0.pending,r=>{}).addCase(a0.fulfilled,(r,i)=>{}).addCase(a0.rejected,(r,i)=>{r.hasErrors=!0,console.log(i.error)})}}),{handleResponse:w8,processData:K8,resetFilters:R8,toggleFilter:T8}=nM.actions,I8=n=>n.resourceCatalog.hasErrors,N8=n=>n.resourceCatalog.resourcesLoaded,_8=n=>n.resourceCatalog.filters,O8=n=>n.resourceCatalog.filteredResources,A8=nM.reducer,j8=({resource:n})=>{const r=u=>u.length==0?"":b.jsx("ul",{children:u.map((l,d)=>b.jsx("li",{children:l},`feature_${n.resourceId}_${d}`))}),i=(u,l)=>l&&l!=""?b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"row",children:b.jsx("div",{className:"col fw-bold",children:u})}),b.jsx("div",{className:"row mb-3",children:b.jsx("div",{className:"col",dangerouslySetInnerHTML:{__html:l}})})]}):"";return b.jsxs(ss.Item,{eventKey:n.resourceId,children:[b.jsx(ss.Header,{children:n.resourceName}),b.jsxs(ss.Body,{children:[b.jsx("table",{className:"table",children:b.jsxs("tbody",{children:[b.jsxs("tr",{children:[b.jsx("td",{className:"fw-bold",children:"Resource Type:"}),b.jsx("td",{children:n.resourceType})]}),b.jsxs("tr",{children:[b.jsx("td",{className:"fw-bold",children:"Organization:"}),b.jsx("td",{children:n.organization})]}),b.jsxs("tr",{children:[b.jsx("td",{className:"fw-bold",children:"Units:"}),b.jsx("td",{children:n.units})]}),b.jsxs("tr",{children:[b.jsx("td",{className:"fw-bold",children:"User Guide:"}),b.jsx("td",{children:n.userGuideUrl==""?"":b.jsx("a",{href:n.userGuideUrl,target:"_blank",rel:"noreferrer",children:"Link to User Guide"})})]}),b.jsxs("tr",{children:[b.jsx("td",{className:"fw-bold",children:"Features Available:"}),b.jsx("td",{children:r(n.features)})]})]})}),i("Resource Description",n.resourceDescription),i("Allocations Description",n.description),i("Recommended Use",n.recommendedUse)]})]})},D8=()=>{const n=qn(O8);return n.length==0?b.jsx("div",{className:"fw-bold",children:"No Resources Match Your Filters"}):b.jsxs("div",{children:[b.jsx("h4",{className:"mb-0",children:"Resources"}),b.jsx(ss,{children:n.map(r=>b.jsx(j8,{resource:r},r.resourceId))})]})},k8=({filter:n})=>{const r=Io(),i=()=>{r(T8(n))};return b.jsx("div",{className:"row",children:b.jsx("div",{className:"col",children:b.jsxs("div",{className:"form-check",children:[b.jsx("label",{className:"form-check-label",htmlFor:`filter_${n.featureId}`,children:n.name}),b.jsx("input",{className:"form-check-input",type:"checkbox",value:n.featureId,id:`filter_${n.featureId}`,checked:n.selected,onChange:i})]})})})},M8=({category:n})=>b.jsx("div",{className:"row",children:b.jsxs("div",{className:"col",children:[b.jsx("div",{className:"fw-bold mb-1 mt-1",children:b.jsx("abbr",{title:n.categoryDescription,children:n.categoryName})}),n.features.map(r=>b.jsx(k8,{filter:r},r.featureId))]})}),L8=()=>{const n=Io(),r=qn(_8),i=r.filter(u=>u.features.filter(l=>l.selected).length>0);return b.jsxs("div",{children:[b.jsx("h4",{className:"mb-0",children:"Filters"}),r.map(u=>b.jsx(M8,{category:u},u.categoryId)),b.jsx("button",{className:"btn btn-warning mt-2 mb-2",onClick:()=>n(R8()),disabled:i.length==0,children:"Reset Filters"})]})},P8=({apiUrl:n,excludedCategories:r=[],excludedFilters:i=[],excludedResources:u=[],allowedCategories:l=[],allowedFilters:d=[]})=>{const h=Io(),v=qn(N8),y=qn(I8);return M.useEffect(()=>{h(a0({apiUrl:n,excludedCategories:r,excludedFilters:i,excludedResources:u,allowedCategories:l,allowedFilters:d}))},[]),y?b.jsx("div",{className:"row",children:b.jsx("div",{className:"col text-center mt-2",children:b.jsx("h4",{children:"Unable to Load Resources"})})}):v?b.jsx(b.Fragment,{children:b.jsxs("div",{className:"row mt-3",children:[b.jsx("div",{className:"col-sm-4",children:b.jsx(L8,{})}),b.jsx("div",{className:"col-sm-8",children:b.jsx(D8,{})})]})}):b.jsx(Mm,{})};function F8(n,{bootstrapFonts:r=!0,bootstrapVariables:i=!0,access:u=!1,baseUrl:l=null}={}){const d=n.attachShadow({mode:"open"}),h=document.createElement("div"),v=document.createElement("div"),y=document.createElement("div"),C=document.createElement("div"),x=document.createElement("link"),w=document.createElement("link"),T=document.createElement("link");return l=l??(typeof document>"u"?require("url").pathToFileURL(__filename).href:_N&&_N.src||new URL("xras-ui.cjs",document.baseURI).href).replace(/\/[^/]+$/,""),x.rel="stylesheet",x.href=`${l}/bootstrap.css`,w.rel="stylesheet",w.href=`${l}/xras-ui.css`,T.rel="stylesheet",T.href=`${l}/access.css`,y.appendChild(C),v.appendChild(y),h.appendChild(v),d.appendChild(x),d.appendChild(w),d.appendChild(T),d.appendChild(h),h.classList.add("bootstrap"),i&&v.classList.add("bootstrap-variables"),r&&(y.classList.add("bootstrap-fonts"),y.setAttribute("data-bs-theme","light")),C}function V8({target:n}){us.createRoot(n).render(b.jsx(UU,{}))}function B8({target:n,username:r,routes:i}){i&&(Nn.routes=i);const u=Om({reducer:{api:b$}});us.createRoot(n).render(b.jsx(Qp,{store:u,children:b.jsx(fZ,{username:r})}))}function z8({target:n,apiUrl:r}){const i=Om({reducer:{projectsBrowser:TZ},preloadedState:{projectsBrowser:{...Pk,apiUrl:r}}});us.createRoot(n).render(b.jsx(Qp,{store:i,children:b.jsx(OZ,{})}))}function rM(){return Om({reducer:{publications_store:G6}})}function H8({target:n,routes:r}){r&&(hc.routes=r),us.createRoot(n).render(b.jsx(Qp,{store:rM(),children:b.jsx(Qk,{})}))}function U8({target:n,routes:r}){r&&(hc.routes=r),us.createRoot(n).render(b.jsx(Qp,{store:rM(),children:b.jsx(H6,{...JSON.parse(n.dataset.publicationsSelectProps)})}))}function $8({target:n,catalogSources:r,onRamps:i,baseUrl:u}){const l=Om({reducer:{resourceCatalog:r8}});us.createRoot(n).render(b.jsx(Qp,{store:l,children:b.jsx(x8,{catalogSources:r,onRamps:i,baseUrl:u})}))}function G8({target:n,apiUrl:r,excludedCategories:i,excludedFilters:u,excludedResources:l,allowedCategories:d,allowedFilters:h}){const v=Om({reducer:{resourceCatalog:A8}});us.createRoot(n).render(b.jsx(Qp,{store:v,children:b.jsx(P8,{apiUrl:r,excludedCategories:i,excludedFilters:u,excludedResources:l,allowedCategories:d,allowedFilters:h})}))}exports.allocationsMap=V8;exports.onRampsResourceCatalog=$8;exports.projects=B8;exports.projectsBrowser=z8;exports.publications=H8;exports.publicationsSelect=U8;exports.resourceCatalog=G8;exports.shadowTarget=F8;
|
|
309
|
+
`]))),mX=function(r,i){var u=r.isFocused,l=r.size,d=r.theme,h=d.colors,v=d.spacing.baseUnit;return yt({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:l,lineHeight:1,marginRight:l,textAlign:"center",verticalAlign:"middle"},i?{}:{color:u?h.neutral60:h.neutral20,padding:v*2})},XE=function(r){var i=r.delay,u=r.offset;return Et("span",{css:VR({animation:"".concat(hX," 1s ease-in-out ").concat(i,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:u?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},Pw.NODE_ENV==="production"?"":";label:LoadingDot;",Pw.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},gX=function(r){var i=r.innerProps,u=r.isRtl,l=r.size,d=l===void 0?4:l,h=rl(r,oX);return Et("div",Rt({},yr(yt(yt({},h),{},{innerProps:i,isRtl:u,size:d}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),i),Et(XE,{delay:0,offset:u}),Et(XE,{delay:160,offset:!0}),Et(XE,{delay:320,offset:!u}))},yX=function(r,i){var u=r.isDisabled,l=r.isFocused,d=r.theme,h=d.colors,v=d.borderRadius,y=d.spacing;return yt({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:y.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},i?{}:{backgroundColor:u?h.neutral5:h.neutral0,borderColor:u?h.neutral10:l?h.primary:h.neutral20,borderRadius:v,borderStyle:"solid",borderWidth:1,boxShadow:l?"0 0 0 1px ".concat(h.primary):void 0,"&:hover":{borderColor:l?h.primary:h.neutral30}})},bX=function(r){var i=r.children,u=r.isDisabled,l=r.isFocused,d=r.innerRef,h=r.innerProps,v=r.menuIsOpen;return Et("div",Rt({ref:d},yr(r,"control",{control:!0,"control--is-disabled":u,"control--is-focused":l,"control--menu-is-open":v}),h,{"aria-disabled":u||void 0}),i)},CX=bX,xX=["data"],SX=function(r,i){var u=r.theme.spacing;return i?{}:{paddingBottom:u.baseUnit*2,paddingTop:u.baseUnit*2}},EX=function(r){var i=r.children,u=r.cx,l=r.getStyles,d=r.getClassNames,h=r.Heading,v=r.headingProps,y=r.innerProps,C=r.label,x=r.theme,R=r.selectProps;return Et("div",Rt({},yr(r,"group",{group:!0}),y),Et(h,Rt({},v,{selectProps:R,theme:x,getStyles:l,getClassNames:d,cx:u}),C),Et("div",null,i))},wX=function(r,i){var u=r.theme,l=u.colors,d=u.spacing;return yt({label:"group",cursor:"default",display:"block"},i?{}:{color:l.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:d.baseUnit*3,paddingRight:d.baseUnit*3,textTransform:"uppercase"})},RX=function(r){var i=hk(r);i.data;var u=rl(i,xX);return Et("div",Rt({},yr(r,"groupHeading",{"group-heading":!0}),u))},TX=EX,IX=["innerRef","isDisabled","isHidden","inputClassName"],NX=function(r,i){var u=r.isDisabled,l=r.value,d=r.theme,h=d.spacing,v=d.colors;return yt(yt({visibility:u?"hidden":"visible",transform:l?"translateZ(0)":""},_X),i?{}:{margin:h.baseUnit/2,paddingBottom:h.baseUnit/2,paddingTop:h.baseUnit/2,color:v.neutral80})},wk={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},_X={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":yt({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},wk)},OX=function(r){return yt({label:"input",color:"inherit",background:0,opacity:r?0:1,width:"100%"},wk)},AX=function(r){var i=r.cx,u=r.value,l=hk(r),d=l.innerRef,h=l.isDisabled,v=l.isHidden,y=l.inputClassName,C=rl(l,IX);return Et("div",Rt({},yr(r,"input",{"input-container":!0}),{"data-value":u||""}),Et("input",Rt({className:i({input:!0},y),ref:d,style:OX(v),disabled:h},C)))},jX=AX,DX=function(r,i){var u=r.theme,l=u.spacing,d=u.borderRadius,h=u.colors;return yt({label:"multiValue",display:"flex",minWidth:0},i?{}:{backgroundColor:h.neutral10,borderRadius:d/2,margin:l.baseUnit/2})},kX=function(r,i){var u=r.theme,l=u.borderRadius,d=u.colors,h=r.cropWithEllipsis;return yt({overflow:"hidden",textOverflow:h||h===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},i?{}:{borderRadius:l/2,color:d.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},MX=function(r,i){var u=r.theme,l=u.spacing,d=u.borderRadius,h=u.colors,v=r.isFocused;return yt({alignItems:"center",display:"flex"},i?{}:{borderRadius:d/2,backgroundColor:v?h.dangerLight:void 0,paddingLeft:l.baseUnit,paddingRight:l.baseUnit,":hover":{backgroundColor:h.dangerLight,color:h.danger}})},Rk=function(r){var i=r.children,u=r.innerProps;return Et("div",u,i)},LX=Rk,PX=Rk;function FX(n){var r=n.children,i=n.innerProps;return Et("div",Rt({role:"button"},i),r||Et(UR,{size:14}))}var VX=function(r){var i=r.children,u=r.components,l=r.data,d=r.innerProps,h=r.isDisabled,v=r.removeProps,y=r.selectProps,C=u.Container,x=u.Label,R=u.Remove;return Et(C,{data:l,innerProps:yt(yt({},yr(r,"multiValue",{"multi-value":!0,"multi-value--is-disabled":h})),d),selectProps:y},Et(x,{data:l,innerProps:yt({},yr(r,"multiValueLabel",{"multi-value__label":!0})),selectProps:y},i),Et(R,{data:l,innerProps:yt(yt({},yr(r,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(i||"option")},v),selectProps:y}))},BX=VX,zX=function(r,i){var u=r.isDisabled,l=r.isFocused,d=r.isSelected,h=r.theme,v=h.spacing,y=h.colors;return yt({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},i?{}:{backgroundColor:d?y.primary:l?y.primary25:"transparent",color:u?y.neutral20:d?y.neutral0:"inherit",padding:"".concat(v.baseUnit*2,"px ").concat(v.baseUnit*3,"px"),":active":{backgroundColor:u?void 0:d?y.primary:y.primary50}})},HX=function(r){var i=r.children,u=r.isDisabled,l=r.isFocused,d=r.isSelected,h=r.innerRef,v=r.innerProps;return Et("div",Rt({},yr(r,"option",{option:!0,"option--is-disabled":u,"option--is-focused":l,"option--is-selected":d}),{ref:h,"aria-disabled":u},v),i)},UX=HX,$X=function(r,i){var u=r.theme,l=u.spacing,d=u.colors;return yt({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},i?{}:{color:d.neutral50,marginLeft:l.baseUnit/2,marginRight:l.baseUnit/2})},GX=function(r){var i=r.children,u=r.innerProps;return Et("div",Rt({},yr(r,"placeholder",{placeholder:!0}),u),i)},WX=GX,XX=function(r,i){var u=r.isDisabled,l=r.theme,d=l.spacing,h=l.colors;return yt({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},i?{}:{color:u?h.neutral40:h.neutral80,marginLeft:d.baseUnit/2,marginRight:d.baseUnit/2})},YX=function(r){var i=r.children,u=r.isDisabled,l=r.innerProps;return Et("div",Rt({},yr(r,"singleValue",{"single-value":!0,"single-value--is-disabled":u}),l),i)},ZX=YX,JX={ClearIndicator:dX,Control:CX,DropdownIndicator:cX,DownChevron:Sk,CrossIcon:UR,Group:TX,GroupHeading:RX,IndicatorsContainer:aX,IndicatorSeparator:vX,Input:jX,LoadingIndicator:gX,Menu:$5,MenuList:W5,MenuPortal:Q5,LoadingMessage:J5,NoOptionsMessage:Z5,MultiValue:BX,MultiValueContainer:LX,MultiValueLabel:PX,MultiValueRemove:FX,Option:UX,Placeholder:WX,SelectContainer:eX,SingleValue:ZX,ValueContainer:nX},qX=function(r){return yt(yt({},JX),r.components)},TO=Number.isNaN||function(r){return typeof r=="number"&&r!==r};function QX(n,r){return!!(n===r||TO(n)&&TO(r))}function KX(n,r){if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!QX(n[i],r[i]))return!1;return!0}function eY(n,r){r===void 0&&(r=KX);var i=null;function u(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];if(i&&i.lastThis===this&&r(l,i.lastArgs))return i.lastResult;var h=n.apply(this,l);return i={lastResult:h,lastArgs:l,lastThis:this},h}return u.clear=function(){i=null},u}var Tm={};function tY(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var nY=Tm.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:tY},rY=function(r){return Et("span",Rt({css:nY},r))},IO=rY,aY={guidance:function(r){var i=r.isSearchable,u=r.isMulti,l=r.tabSelectsValue,d=r.context,h=r.isInitialFocus;switch(d){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(l?", press Tab to select the option and exit the menu":"",".");case"input":return h?"".concat(r["aria-label"]||"Select"," is focused ").concat(i?",type to refine list":"",", press Down to open the menu, ").concat(u?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(r){var i=r.action,u=r.label,l=u===void 0?"":u,d=r.labels,h=r.isDisabled;switch(i){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(l,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(d.length>1?"s":""," ").concat(d.join(","),", selected.");case"select-option":return h?"option ".concat(l," is disabled. Select another option."):"option ".concat(l,", selected.");default:return""}},onFocus:function(r){var i=r.context,u=r.focused,l=r.options,d=r.label,h=d===void 0?"":d,v=r.selectValue,y=r.isDisabled,C=r.isSelected,x=r.isAppleDevice,R=function(O,_){return O&&O.length?"".concat(O.indexOf(_)+1," of ").concat(O.length):""};if(i==="value"&&v)return"value ".concat(h," focused, ").concat(R(v,u),".");if(i==="menu"&&x){var T=y?" disabled":"",A="".concat(C?" selected":"").concat(T);return"".concat(h).concat(A,", ").concat(R(l,u),".")}return""},onFilter:function(r){var i=r.inputValue,u=r.resultsMessage;return"".concat(u).concat(i?" for search term "+i:"",".")}},iY=function(r){var i=r.ariaSelection,u=r.focusedOption,l=r.focusedValue,d=r.focusableOptions,h=r.isFocused,v=r.selectValue,y=r.selectProps,C=r.id,x=r.isAppleDevice,R=y.ariaLiveMessages,T=y.getOptionLabel,A=y.inputValue,N=y.isMulti,O=y.isOptionDisabled,_=y.isSearchable,L=y.menuIsOpen,F=y.options,V=y.screenReaderStatus,H=y.tabSelectsValue,z=y.isLoading,U=y["aria-label"],J=y["aria-live"],q=M.useMemo(function(){return yt(yt({},aY),R||{})},[R]),Re=M.useMemo(function(){var xe="";if(i&&q.onChange){var je=i.option,Le=i.options,ne=i.removedValue,_e=i.removedValues,G=i.value,Y=function(we){return Array.isArray(we)?null:we},re=ne||je||Y(G),ye=re?T(re):"",Se=Le||_e||void 0,Ne=Se?Se.map(T):[],le=yt({isDisabled:re&&O(re,v),label:ye,labels:Ne},i);xe=q.onChange(le)}return xe},[i,q,O,v,T]),he=M.useMemo(function(){var xe="",je=u||l,Le=!!(u&&v&&v.includes(u));if(je&&q.onFocus){var ne={focused:je,label:T(je),isDisabled:O(je,v),isSelected:Le,options:d,context:je===u?"menu":"value",selectValue:v,isAppleDevice:x};xe=q.onFocus(ne)}return xe},[u,l,T,O,q,d,v,x]),ge=M.useMemo(function(){var xe="";if(L&&F.length&&!z&&q.onFilter){var je=V({count:d.length});xe=q.onFilter({inputValue:A,resultsMessage:je})}return xe},[d,A,L,q,F,V,z]),fe=(i==null?void 0:i.action)==="initial-input-focus",Oe=M.useMemo(function(){var xe="";if(q.guidance){var je=l?"value":L?"menu":"input";xe=q.guidance({"aria-label":U,context:je,isDisabled:u&&O(u,v),isMulti:N,isSearchable:_,tabSelectsValue:H,isInitialFocus:fe})}return xe},[U,u,l,N,O,_,L,q,v,H,fe]),Te=Et(M.Fragment,null,Et("span",{id:"aria-selection"},Re),Et("span",{id:"aria-focused"},he),Et("span",{id:"aria-results"},ge),Et("span",{id:"aria-guidance"},Oe));return Et(M.Fragment,null,Et(IO,{id:C},fe&&Te),Et(IO,{"aria-live":J,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},h&&!fe&&Te))},oY=iY,Fw=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],sY=new RegExp("["+Fw.map(function(n){return n.letters}).join("")+"]","g"),Tk={};for(var YE=0;YE<Fw.length;YE++)for(var ZE=Fw[YE],JE=0;JE<ZE.letters.length;JE++)Tk[ZE.letters[JE]]=ZE.base;var Ik=function(r){return r.replace(sY,function(i){return Tk[i]})},lY=eY(Ik),NO=function(r){return r.replace(/^\s+|\s+$/g,"")},uY=function(r){return"".concat(r.label," ").concat(r.value)},cY=function(r){return function(i,u){if(i.data.__isNew__)return!0;var l=yt({ignoreCase:!0,ignoreAccents:!0,stringify:uY,trim:!0,matchFrom:"any"},r),d=l.ignoreCase,h=l.ignoreAccents,v=l.stringify,y=l.trim,C=l.matchFrom,x=y?NO(u):u,R=y?NO(v(i)):v(i);return d&&(x=x.toLowerCase(),R=R.toLowerCase()),h&&(x=lY(x),R=Ik(R)),C==="start"?R.substr(0,x.length)===x:R.indexOf(x)>-1}},fY=["innerRef"];function dY(n){var r=n.innerRef,i=rl(n,fY),u=L5(i,"onExited","in","enter","exit","appear");return Et("input",Rt({ref:r},u,{css:VR({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},Tm.NODE_ENV==="production"?"":";label:DummyInput;",Tm.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var pY=function(r){r.cancelable&&r.preventDefault(),r.stopPropagation()};function vY(n){var r=n.isEnabled,i=n.onBottomArrive,u=n.onBottomLeave,l=n.onTopArrive,d=n.onTopLeave,h=M.useRef(!1),v=M.useRef(!1),y=M.useRef(0),C=M.useRef(null),x=M.useCallback(function(_,L){if(C.current!==null){var F=C.current,V=F.scrollTop,H=F.scrollHeight,z=F.clientHeight,U=C.current,J=L>0,q=H-z-V,Re=!1;q>L&&h.current&&(u&&u(_),h.current=!1),J&&v.current&&(d&&d(_),v.current=!1),J&&L>q?(i&&!h.current&&i(_),U.scrollTop=H,Re=!0,h.current=!0):!J&&-L>V&&(l&&!v.current&&l(_),U.scrollTop=0,Re=!0,v.current=!0),Re&&pY(_)}},[i,u,l,d]),R=M.useCallback(function(_){x(_,_.deltaY)},[x]),T=M.useCallback(function(_){y.current=_.changedTouches[0].clientY},[]),A=M.useCallback(function(_){var L=y.current-_.changedTouches[0].clientY;x(_,L)},[x]),N=M.useCallback(function(_){if(_){var L=D5?{passive:!1}:!1;_.addEventListener("wheel",R,L),_.addEventListener("touchstart",T,L),_.addEventListener("touchmove",A,L)}},[A,T,R]),O=M.useCallback(function(_){_&&(_.removeEventListener("wheel",R,!1),_.removeEventListener("touchstart",T,!1),_.removeEventListener("touchmove",A,!1))},[A,T,R]);return M.useEffect(function(){if(r){var _=C.current;return N(_),function(){O(_)}}},[r,N,O]),function(_){C.current=_}}var _O=["boxSizing","height","overflow","paddingRight","position"],OO={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function AO(n){n.preventDefault()}function jO(n){n.stopPropagation()}function DO(){var n=this.scrollTop,r=this.scrollHeight,i=n+this.offsetHeight;n===0?this.scrollTop=1:i===r&&(this.scrollTop=n-1)}function kO(){return"ontouchstart"in window||navigator.maxTouchPoints}var MO=!!(typeof window<"u"&&window.document&&window.document.createElement),lm=0,Lp={capture:!1,passive:!1};function hY(n){var r=n.isEnabled,i=n.accountForScrollbars,u=i===void 0?!0:i,l=M.useRef({}),d=M.useRef(null),h=M.useCallback(function(y){if(MO){var C=document.body,x=C&&C.style;if(u&&_O.forEach(function(N){var O=x&&x[N];l.current[N]=O}),u&&lm<1){var R=parseInt(l.current.paddingRight,10)||0,T=document.body?document.body.clientWidth:0,A=window.innerWidth-T+R||0;Object.keys(OO).forEach(function(N){var O=OO[N];x&&(x[N]=O)}),x&&(x.paddingRight="".concat(A,"px"))}C&&kO()&&(C.addEventListener("touchmove",AO,Lp),y&&(y.addEventListener("touchstart",DO,Lp),y.addEventListener("touchmove",jO,Lp))),lm+=1}},[u]),v=M.useCallback(function(y){if(MO){var C=document.body,x=C&&C.style;lm=Math.max(lm-1,0),u&&lm<1&&_O.forEach(function(R){var T=l.current[R];x&&(x[R]=T)}),C&&kO()&&(C.removeEventListener("touchmove",AO,Lp),y&&(y.removeEventListener("touchstart",DO,Lp),y.removeEventListener("touchmove",jO,Lp)))}},[u]);return M.useEffect(function(){if(r){var y=d.current;return h(y),function(){v(y)}}},[r,h,v]),function(y){d.current=y}}function mY(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var gY=function(r){var i=r.target;return i.ownerDocument.activeElement&&i.ownerDocument.activeElement.blur()},yY=Tm.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:mY};function bY(n){var r=n.children,i=n.lockEnabled,u=n.captureEnabled,l=u===void 0?!0:u,d=n.onBottomArrive,h=n.onBottomLeave,v=n.onTopArrive,y=n.onTopLeave,C=vY({isEnabled:l,onBottomArrive:d,onBottomLeave:h,onTopArrive:v,onTopLeave:y}),x=hY({isEnabled:i}),R=function(A){C(A),x(A)};return Et(M.Fragment,null,i&&Et("div",{onClick:gY,css:yY}),r(R))}function CY(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var xY=Tm.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:CY},SY=function(r){var i=r.name,u=r.onFocus;return Et("input",{required:!0,name:i,tabIndex:-1,"aria-hidden":"true",onFocus:u,css:xY,value:"",onChange:function(){}})},EY=SY;function $R(n){var r;return typeof window<"u"&&window.navigator!=null?n.test(((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.platform)||window.navigator.platform):!1}function wY(){return $R(/^iPhone/i)}function Nk(){return $R(/^Mac/i)}function RY(){return $R(/^iPad/i)||Nk()&&navigator.maxTouchPoints>1}function TY(){return wY()||RY()}function IY(){return Nk()||TY()}var NY=function(r){return r.label},_Y=function(r){return r.label},OY=function(r){return r.value},AY=function(r){return!!r.isDisabled},jY={clearIndicator:fX,container:K5,control:yX,dropdownIndicator:uX,group:SX,groupHeading:wX,indicatorsContainer:rX,indicatorSeparator:pX,input:NX,loadingIndicator:mX,loadingMessage:Y5,menu:z5,menuList:G5,menuPortal:q5,multiValue:DX,multiValueLabel:kX,multiValueRemove:MX,noOptionsMessage:X5,option:zX,placeholder:$X,singleValue:XX,valueContainer:tX},DY={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},kY=4,_k=4,MY=38,LY=_k*2,PY={baseUnit:_k,controlHeight:MY,menuGutter:LY},qE={borderRadius:kY,colors:DY,spacing:PY},FY={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:wO(),captureMenuScroll:!wO(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:cY(),formatGroupLabel:NY,getOptionLabel:_Y,getOptionValue:OY,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:AY,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!A5(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(r){var i=r.count;return"".concat(i," result").concat(i!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function LO(n,r,i,u){var l=jk(n,r,i),d=Dk(n,r,i),h=Ak(n,r),v=N0(n,r);return{type:"option",data:r,isDisabled:l,isSelected:d,label:h,value:v,index:u}}function n0(n,r){return n.options.map(function(i,u){if("options"in i){var l=i.options.map(function(h,v){return LO(n,h,r,v)}).filter(function(h){return FO(n,h)});return l.length>0?{type:"group",data:i,options:l,index:u}:void 0}var d=LO(n,i,r,u);return FO(n,d)?d:void 0}).filter(k5)}function Ok(n){return n.reduce(function(r,i){return i.type==="group"?r.push.apply(r,NR(i.options.map(function(u){return u.data}))):r.push(i.data),r},[])}function PO(n,r){return n.reduce(function(i,u){return u.type==="group"?i.push.apply(i,NR(u.options.map(function(l){return{data:l.data,id:"".concat(r,"-").concat(u.index,"-").concat(l.index)}}))):i.push({data:u.data,id:"".concat(r,"-").concat(u.index)}),i},[])}function VY(n,r){return Ok(n0(n,r))}function FO(n,r){var i=n.inputValue,u=i===void 0?"":i,l=r.data,d=r.isSelected,h=r.label,v=r.value;return(!Mk(n)||!d)&&kk(n,{label:h,value:v,data:l},u)}function BY(n,r){var i=n.focusedValue,u=n.selectValue,l=u.indexOf(i);if(l>-1){var d=r.indexOf(i);if(d>-1)return i;if(l<r.length)return r[l]}return null}function zY(n,r){var i=n.focusedOption;return i&&r.indexOf(i)>-1?i:r[0]}var QE=function(r,i){var u,l=(u=r.find(function(d){return d.data===i}))===null||u===void 0?void 0:u.id;return l||null},Ak=function(r,i){return r.getOptionLabel(i)},N0=function(r,i){return r.getOptionValue(i)};function jk(n,r,i){return typeof n.isOptionDisabled=="function"?n.isOptionDisabled(r,i):!1}function Dk(n,r,i){if(i.indexOf(r)>-1)return!0;if(typeof n.isOptionSelected=="function")return n.isOptionSelected(r,i);var u=N0(n,r);return i.some(function(l){return N0(n,l)===u})}function kk(n,r,i){return n.filterOption?n.filterOption(r,i):!0}var Mk=function(r){var i=r.hideSelectedOptions,u=r.isMulti;return i===void 0?u:i},HY=1,GR=function(n){X4(i,n);var r=J4(i);function i(u){var l;if(G4(this,i),l=r.call(this,u),l.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},l.blockOptionHover=!1,l.isComposing=!1,l.commonProps=void 0,l.initialTouchX=0,l.initialTouchY=0,l.openAfterFocus=!1,l.scrollToFocusedOptionOnUpdate=!1,l.userIsDragging=void 0,l.isAppleDevice=IY(),l.controlRef=null,l.getControlRef=function(y){l.controlRef=y},l.focusedOptionRef=null,l.getFocusedOptionRef=function(y){l.focusedOptionRef=y},l.menuListRef=null,l.getMenuListRef=function(y){l.menuListRef=y},l.inputRef=null,l.getInputRef=function(y){l.inputRef=y},l.focus=l.focusInput,l.blur=l.blurInput,l.onChange=function(y,C){var x=l.props,R=x.onChange,T=x.name;C.name=T,l.ariaOnChange(y,C),R(y,C)},l.setValue=function(y,C,x){var R=l.props,T=R.closeMenuOnSelect,A=R.isMulti,N=R.inputValue;l.onInputChange("",{action:"set-value",prevInputValue:N}),T&&(l.setState({inputIsHiddenAfterUpdate:!A}),l.onMenuClose()),l.setState({clearFocusValueOnUpdate:!0}),l.onChange(y,{action:C,option:x})},l.selectOption=function(y){var C=l.props,x=C.blurInputOnSelect,R=C.isMulti,T=C.name,A=l.state.selectValue,N=R&&l.isOptionSelected(y,A),O=l.isOptionDisabled(y,A);if(N){var _=l.getOptionValue(y);l.setValue(A.filter(function(L){return l.getOptionValue(L)!==_}),"deselect-option",y)}else if(!O)R?l.setValue([].concat(NR(A),[y]),"select-option",y):l.setValue(y,"select-option");else{l.ariaOnChange(y,{action:"select-option",option:y,name:T});return}x&&l.blurInput()},l.removeValue=function(y){var C=l.props.isMulti,x=l.state.selectValue,R=l.getOptionValue(y),T=x.filter(function(N){return l.getOptionValue(N)!==R}),A=Ub(C,T,T[0]||null);l.onChange(A,{action:"remove-value",removedValue:y}),l.focusInput()},l.clearValue=function(){var y=l.state.selectValue;l.onChange(Ub(l.props.isMulti,[],null),{action:"clear",removedValues:y})},l.popValue=function(){var y=l.props.isMulti,C=l.state.selectValue,x=C[C.length-1],R=C.slice(0,C.length-1),T=Ub(y,R,R[0]||null);l.onChange(T,{action:"pop-value",removedValue:x})},l.getFocusedOptionId=function(y){return QE(l.state.focusableOptionsWithIds,y)},l.getFocusableOptionsWithIds=function(){return PO(n0(l.props,l.state.selectValue),l.getElementId("option"))},l.getValue=function(){return l.state.selectValue},l.cx=function(){for(var y=arguments.length,C=new Array(y),x=0;x<y;x++)C[x]=arguments[x];return R5.apply(void 0,[l.props.classNamePrefix].concat(C))},l.getOptionLabel=function(y){return Ak(l.props,y)},l.getOptionValue=function(y){return N0(l.props,y)},l.getStyles=function(y,C){var x=l.props.unstyled,R=jY[y](C,x);R.boxSizing="border-box";var T=l.props.styles[y];return T?T(R,C):R},l.getClassNames=function(y,C){var x,R;return(x=(R=l.props.classNames)[y])===null||x===void 0?void 0:x.call(R,C)},l.getElementId=function(y){return"".concat(l.state.instancePrefix,"-").concat(y)},l.getComponents=function(){return qX(l.props)},l.buildCategorizedOptions=function(){return n0(l.props,l.state.selectValue)},l.getCategorizedOptions=function(){return l.props.menuIsOpen?l.buildCategorizedOptions():[]},l.buildFocusableOptions=function(){return Ok(l.buildCategorizedOptions())},l.getFocusableOptions=function(){return l.props.menuIsOpen?l.buildFocusableOptions():[]},l.ariaOnChange=function(y,C){l.setState({ariaSelection:yt({value:y},C)})},l.onMenuMouseDown=function(y){y.button===0&&(y.stopPropagation(),y.preventDefault(),l.focusInput())},l.onMenuMouseMove=function(y){l.blockOptionHover=!1},l.onControlMouseDown=function(y){if(!y.defaultPrevented){var C=l.props.openMenuOnClick;l.state.isFocused?l.props.menuIsOpen?y.target.tagName!=="INPUT"&&y.target.tagName!=="TEXTAREA"&&l.onMenuClose():C&&l.openMenu("first"):(C&&(l.openAfterFocus=!0),l.focusInput()),y.target.tagName!=="INPUT"&&y.target.tagName!=="TEXTAREA"&&y.preventDefault()}},l.onDropdownIndicatorMouseDown=function(y){if(!(y&&y.type==="mousedown"&&y.button!==0)&&!l.props.isDisabled){var C=l.props,x=C.isMulti,R=C.menuIsOpen;l.focusInput(),R?(l.setState({inputIsHiddenAfterUpdate:!x}),l.onMenuClose()):l.openMenu("first"),y.preventDefault()}},l.onClearIndicatorMouseDown=function(y){y&&y.type==="mousedown"&&y.button!==0||(l.clearValue(),y.preventDefault(),l.openAfterFocus=!1,y.type==="touchend"?l.focusInput():setTimeout(function(){return l.focusInput()}))},l.onScroll=function(y){typeof l.props.closeMenuOnScroll=="boolean"?y.target instanceof HTMLElement&&Y0(y.target)&&l.props.onMenuClose():typeof l.props.closeMenuOnScroll=="function"&&l.props.closeMenuOnScroll(y)&&l.props.onMenuClose()},l.onCompositionStart=function(){l.isComposing=!0},l.onCompositionEnd=function(){l.isComposing=!1},l.onTouchStart=function(y){var C=y.touches,x=C&&C.item(0);x&&(l.initialTouchX=x.clientX,l.initialTouchY=x.clientY,l.userIsDragging=!1)},l.onTouchMove=function(y){var C=y.touches,x=C&&C.item(0);if(x){var R=Math.abs(x.clientX-l.initialTouchX),T=Math.abs(x.clientY-l.initialTouchY),A=5;l.userIsDragging=R>A||T>A}},l.onTouchEnd=function(y){l.userIsDragging||(l.controlRef&&!l.controlRef.contains(y.target)&&l.menuListRef&&!l.menuListRef.contains(y.target)&&l.blurInput(),l.initialTouchX=0,l.initialTouchY=0)},l.onControlTouchEnd=function(y){l.userIsDragging||l.onControlMouseDown(y)},l.onClearIndicatorTouchEnd=function(y){l.userIsDragging||l.onClearIndicatorMouseDown(y)},l.onDropdownIndicatorTouchEnd=function(y){l.userIsDragging||l.onDropdownIndicatorMouseDown(y)},l.handleInputChange=function(y){var C=l.props.inputValue,x=y.currentTarget.value;l.setState({inputIsHiddenAfterUpdate:!1}),l.onInputChange(x,{action:"input-change",prevInputValue:C}),l.props.menuIsOpen||l.onMenuOpen()},l.onInputFocus=function(y){l.props.onFocus&&l.props.onFocus(y),l.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(l.openAfterFocus||l.props.openMenuOnFocus)&&l.openMenu("first"),l.openAfterFocus=!1},l.onInputBlur=function(y){var C=l.props.inputValue;if(l.menuListRef&&l.menuListRef.contains(document.activeElement)){l.inputRef.focus();return}l.props.onBlur&&l.props.onBlur(y),l.onInputChange("",{action:"input-blur",prevInputValue:C}),l.onMenuClose(),l.setState({focusedValue:null,isFocused:!1})},l.onOptionHover=function(y){if(!(l.blockOptionHover||l.state.focusedOption===y)){var C=l.getFocusableOptions(),x=C.indexOf(y);l.setState({focusedOption:y,focusedOptionId:x>-1?l.getFocusedOptionId(y):null})}},l.shouldHideSelectedOptions=function(){return Mk(l.props)},l.onValueInputFocus=function(y){y.preventDefault(),y.stopPropagation(),l.focus()},l.onKeyDown=function(y){var C=l.props,x=C.isMulti,R=C.backspaceRemovesValue,T=C.escapeClearsValue,A=C.inputValue,N=C.isClearable,O=C.isDisabled,_=C.menuIsOpen,L=C.onKeyDown,F=C.tabSelectsValue,V=C.openMenuOnFocus,H=l.state,z=H.focusedOption,U=H.focusedValue,J=H.selectValue;if(!O&&!(typeof L=="function"&&(L(y),y.defaultPrevented))){switch(l.blockOptionHover=!0,y.key){case"ArrowLeft":if(!x||A)return;l.focusValue("previous");break;case"ArrowRight":if(!x||A)return;l.focusValue("next");break;case"Delete":case"Backspace":if(A)return;if(U)l.removeValue(U);else{if(!R)return;x?l.popValue():N&&l.clearValue()}break;case"Tab":if(l.isComposing||y.shiftKey||!_||!F||!z||V&&l.isOptionSelected(z,J))return;l.selectOption(z);break;case"Enter":if(y.keyCode===229)break;if(_){if(!z||l.isComposing)return;l.selectOption(z);break}return;case"Escape":_?(l.setState({inputIsHiddenAfterUpdate:!1}),l.onInputChange("",{action:"menu-close",prevInputValue:A}),l.onMenuClose()):N&&T&&l.clearValue();break;case" ":if(A)return;if(!_){l.openMenu("first");break}if(!z)return;l.selectOption(z);break;case"ArrowUp":_?l.focusOption("up"):l.openMenu("last");break;case"ArrowDown":_?l.focusOption("down"):l.openMenu("first");break;case"PageUp":if(!_)return;l.focusOption("pageup");break;case"PageDown":if(!_)return;l.focusOption("pagedown");break;case"Home":if(!_)return;l.focusOption("first");break;case"End":if(!_)return;l.focusOption("last");break;default:return}y.preventDefault()}},l.state.instancePrefix="react-select-"+(l.props.instanceId||++HY),l.state.selectValue=SO(u.value),u.menuIsOpen&&l.state.selectValue.length){var d=l.getFocusableOptionsWithIds(),h=l.buildFocusableOptions(),v=h.indexOf(l.state.selectValue[0]);l.state.focusableOptionsWithIds=d,l.state.focusedOption=h[v],l.state.focusedOptionId=QE(d,h[v])}return l}return W4(i,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&EO(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(l){var d=this.props,h=d.isDisabled,v=d.menuIsOpen,y=this.state.isFocused;(y&&!h&&l.isDisabled||y&&v&&!l.menuIsOpen)&&this.focusInput(),y&&h&&!l.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!y&&!h&&l.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(EO(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(l,d){this.props.onInputChange(l,d)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(l){var d=this,h=this.state,v=h.selectValue,y=h.isFocused,C=this.buildFocusableOptions(),x=l==="first"?0:C.length-1;if(!this.props.isMulti){var R=C.indexOf(v[0]);R>-1&&(x=R)}this.scrollToFocusedOptionOnUpdate=!(y&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:C[x],focusedOptionId:this.getFocusedOptionId(C[x])},function(){return d.onMenuOpen()})}},{key:"focusValue",value:function(l){var d=this.state,h=d.selectValue,v=d.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var y=h.indexOf(v);v||(y=-1);var C=h.length-1,x=-1;if(h.length){switch(l){case"previous":y===0?x=0:y===-1?x=C:x=y-1;break;case"next":y>-1&&y<C&&(x=y+1);break}this.setState({inputIsHidden:x!==-1,focusedValue:h[x]})}}}},{key:"focusOption",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",d=this.props.pageSize,h=this.state.focusedOption,v=this.getFocusableOptions();if(v.length){var y=0,C=v.indexOf(h);h||(C=-1),l==="up"?y=C>0?C-1:v.length-1:l==="down"?y=(C+1)%v.length:l==="pageup"?(y=C-d,y<0&&(y=0)):l==="pagedown"?(y=C+d,y>v.length-1&&(y=v.length-1)):l==="last"&&(y=v.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:v[y],focusedValue:null,focusedOptionId:this.getFocusedOptionId(v[y])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(qE):yt(yt({},qE),this.props.theme):qE}},{key:"getCommonProps",value:function(){var l=this.clearValue,d=this.cx,h=this.getStyles,v=this.getClassNames,y=this.getValue,C=this.selectOption,x=this.setValue,R=this.props,T=R.isMulti,A=R.isRtl,N=R.options,O=this.hasValue();return{clearValue:l,cx:d,getStyles:h,getClassNames:v,getValue:y,hasValue:O,isMulti:T,isRtl:A,options:N,selectOption:C,selectProps:R,setValue:x,theme:this.getTheme()}}},{key:"hasValue",value:function(){var l=this.state.selectValue;return l.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var l=this.props,d=l.isClearable,h=l.isMulti;return d===void 0?h:d}},{key:"isOptionDisabled",value:function(l,d){return jk(this.props,l,d)}},{key:"isOptionSelected",value:function(l,d){return Dk(this.props,l,d)}},{key:"filterOption",value:function(l,d){return kk(this.props,l,d)}},{key:"formatOptionLabel",value:function(l,d){if(typeof this.props.formatOptionLabel=="function"){var h=this.props.inputValue,v=this.state.selectValue;return this.props.formatOptionLabel(l,{context:d,inputValue:h,selectValue:v})}else return this.getOptionLabel(l)}},{key:"formatGroupLabel",value:function(l){return this.props.formatGroupLabel(l)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var l=this.props,d=l.isDisabled,h=l.isSearchable,v=l.inputId,y=l.inputValue,C=l.tabIndex,x=l.form,R=l.menuIsOpen,T=l.required,A=this.getComponents(),N=A.Input,O=this.state,_=O.inputIsHidden,L=O.ariaSelection,F=this.commonProps,V=v||this.getElementId("input"),H=yt(yt(yt({"aria-autocomplete":"list","aria-expanded":R,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":T,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},R&&{"aria-controls":this.getElementId("listbox")}),!h&&{"aria-readonly":!0}),this.hasValue()?(L==null?void 0:L.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return h?M.createElement(N,Rt({},F,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:V,innerRef:this.getInputRef,isDisabled:d,isHidden:_,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:C,form:x,type:"text",value:y},H)):M.createElement(dY,Rt({id:V,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:T0,onFocus:this.onInputFocus,disabled:d,tabIndex:C,inputMode:"none",form:x,value:""},H))}},{key:"renderPlaceholderOrValue",value:function(){var l=this,d=this.getComponents(),h=d.MultiValue,v=d.MultiValueContainer,y=d.MultiValueLabel,C=d.MultiValueRemove,x=d.SingleValue,R=d.Placeholder,T=this.commonProps,A=this.props,N=A.controlShouldRenderValue,O=A.isDisabled,_=A.isMulti,L=A.inputValue,F=A.placeholder,V=this.state,H=V.selectValue,z=V.focusedValue,U=V.isFocused;if(!this.hasValue()||!N)return L?null:M.createElement(R,Rt({},T,{key:"placeholder",isDisabled:O,isFocused:U,innerProps:{id:this.getElementId("placeholder")}}),F);if(_)return H.map(function(q,Re){var he=q===z,ge="".concat(l.getOptionLabel(q),"-").concat(l.getOptionValue(q));return M.createElement(h,Rt({},T,{components:{Container:v,Label:y,Remove:C},isFocused:he,isDisabled:O,key:ge,index:Re,removeProps:{onClick:function(){return l.removeValue(q)},onTouchEnd:function(){return l.removeValue(q)},onMouseDown:function(Oe){Oe.preventDefault()}},data:q}),l.formatOptionLabel(q,"value"))});if(L)return null;var J=H[0];return M.createElement(x,Rt({},T,{data:J,isDisabled:O}),this.formatOptionLabel(J,"value"))}},{key:"renderClearIndicator",value:function(){var l=this.getComponents(),d=l.ClearIndicator,h=this.commonProps,v=this.props,y=v.isDisabled,C=v.isLoading,x=this.state.isFocused;if(!this.isClearable()||!d||y||!this.hasValue()||C)return null;var R={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return M.createElement(d,Rt({},h,{innerProps:R,isFocused:x}))}},{key:"renderLoadingIndicator",value:function(){var l=this.getComponents(),d=l.LoadingIndicator,h=this.commonProps,v=this.props,y=v.isDisabled,C=v.isLoading,x=this.state.isFocused;if(!d||!C)return null;var R={"aria-hidden":"true"};return M.createElement(d,Rt({},h,{innerProps:R,isDisabled:y,isFocused:x}))}},{key:"renderIndicatorSeparator",value:function(){var l=this.getComponents(),d=l.DropdownIndicator,h=l.IndicatorSeparator;if(!d||!h)return null;var v=this.commonProps,y=this.props.isDisabled,C=this.state.isFocused;return M.createElement(h,Rt({},v,{isDisabled:y,isFocused:C}))}},{key:"renderDropdownIndicator",value:function(){var l=this.getComponents(),d=l.DropdownIndicator;if(!d)return null;var h=this.commonProps,v=this.props.isDisabled,y=this.state.isFocused,C={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return M.createElement(d,Rt({},h,{innerProps:C,isDisabled:v,isFocused:y}))}},{key:"renderMenu",value:function(){var l=this,d=this.getComponents(),h=d.Group,v=d.GroupHeading,y=d.Menu,C=d.MenuList,x=d.MenuPortal,R=d.LoadingMessage,T=d.NoOptionsMessage,A=d.Option,N=this.commonProps,O=this.state.focusedOption,_=this.props,L=_.captureMenuScroll,F=_.inputValue,V=_.isLoading,H=_.loadingMessage,z=_.minMenuHeight,U=_.maxMenuHeight,J=_.menuIsOpen,q=_.menuPlacement,Re=_.menuPosition,he=_.menuPortalTarget,ge=_.menuShouldBlockScroll,fe=_.menuShouldScrollIntoView,Oe=_.noOptionsMessage,Te=_.onMenuScrollToTop,xe=_.onMenuScrollToBottom;if(!J)return null;var je=function(ye,Se){var Ne=ye.type,le=ye.data,ve=ye.isDisabled,we=ye.isSelected,Ve=ye.label,et=ye.value,tt=O===le,ft=ve?void 0:function(){return l.onOptionHover(le)},Ae=ve?void 0:function(){return l.selectOption(le)},It="".concat(l.getElementId("option"),"-").concat(Se),pt={id:It,onClick:Ae,onMouseMove:ft,onMouseOver:ft,tabIndex:-1,role:"option","aria-selected":l.isAppleDevice?void 0:we};return M.createElement(A,Rt({},N,{innerProps:pt,data:le,isDisabled:ve,isSelected:we,key:It,label:Ve,type:Ne,value:et,isFocused:tt,innerRef:tt?l.getFocusedOptionRef:void 0}),l.formatOptionLabel(ye.data,"menu"))},Le;if(this.hasOptions())Le=this.getCategorizedOptions().map(function(re){if(re.type==="group"){var ye=re.data,Se=re.options,Ne=re.index,le="".concat(l.getElementId("group"),"-").concat(Ne),ve="".concat(le,"-heading");return M.createElement(h,Rt({},N,{key:le,data:ye,options:Se,Heading:v,headingProps:{id:ve,data:re.data},label:l.formatGroupLabel(re.data)}),re.options.map(function(we){return je(we,"".concat(Ne,"-").concat(we.index))}))}else if(re.type==="option")return je(re,"".concat(re.index))});else if(V){var ne=H({inputValue:F});if(ne===null)return null;Le=M.createElement(R,N,ne)}else{var _e=Oe({inputValue:F});if(_e===null)return null;Le=M.createElement(T,N,_e)}var G={minMenuHeight:z,maxMenuHeight:U,menuPlacement:q,menuPosition:Re,menuShouldScrollIntoView:fe},Y=M.createElement(H5,Rt({},N,G),function(re){var ye=re.ref,Se=re.placerProps,Ne=Se.placement,le=Se.maxHeight;return M.createElement(y,Rt({},N,G,{innerRef:ye,innerProps:{onMouseDown:l.onMenuMouseDown,onMouseMove:l.onMenuMouseMove},isLoading:V,placement:Ne}),M.createElement(bY,{captureEnabled:L,onTopArrive:Te,onBottomArrive:xe,lockEnabled:ge},function(ve){return M.createElement(C,Rt({},N,{innerRef:function(Ve){l.getMenuListRef(Ve),ve(Ve)},innerProps:{role:"listbox","aria-multiselectable":N.isMulti,id:l.getElementId("listbox")},isLoading:V,maxHeight:le,focusedOption:O}),Le)}))});return he||Re==="fixed"?M.createElement(x,Rt({},N,{appendTo:he,controlElement:this.controlRef,menuPlacement:q,menuPosition:Re}),Y):Y}},{key:"renderFormField",value:function(){var l=this,d=this.props,h=d.delimiter,v=d.isDisabled,y=d.isMulti,C=d.name,x=d.required,R=this.state.selectValue;if(x&&!this.hasValue()&&!v)return M.createElement(EY,{name:C,onFocus:this.onValueInputFocus});if(!(!C||v))if(y)if(h){var T=R.map(function(O){return l.getOptionValue(O)}).join(h);return M.createElement("input",{name:C,type:"hidden",value:T})}else{var A=R.length>0?R.map(function(O,_){return M.createElement("input",{key:"i-".concat(_),name:C,type:"hidden",value:l.getOptionValue(O)})}):M.createElement("input",{name:C,type:"hidden",value:""});return M.createElement("div",null,A)}else{var N=R[0]?this.getOptionValue(R[0]):"";return M.createElement("input",{name:C,type:"hidden",value:N})}}},{key:"renderLiveRegion",value:function(){var l=this.commonProps,d=this.state,h=d.ariaSelection,v=d.focusedOption,y=d.focusedValue,C=d.isFocused,x=d.selectValue,R=this.getFocusableOptions();return M.createElement(oY,Rt({},l,{id:this.getElementId("live-region"),ariaSelection:h,focusedOption:v,focusedValue:y,isFocused:C,selectValue:x,focusableOptions:R,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var l=this.getComponents(),d=l.Control,h=l.IndicatorsContainer,v=l.SelectContainer,y=l.ValueContainer,C=this.props,x=C.className,R=C.id,T=C.isDisabled,A=C.menuIsOpen,N=this.state.isFocused,O=this.commonProps=this.getCommonProps();return M.createElement(v,Rt({},O,{className:x,innerProps:{id:R,onKeyDown:this.onKeyDown},isDisabled:T,isFocused:N}),this.renderLiveRegion(),M.createElement(d,Rt({},O,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:T,isFocused:N,menuIsOpen:A}),M.createElement(y,Rt({},O,{isDisabled:T}),this.renderPlaceholderOrValue(),this.renderInput()),M.createElement(h,Rt({},O,{isDisabled:T}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(l,d){var h=d.prevProps,v=d.clearFocusValueOnUpdate,y=d.inputIsHiddenAfterUpdate,C=d.ariaSelection,x=d.isFocused,R=d.prevWasFocused,T=d.instancePrefix,A=l.options,N=l.value,O=l.menuIsOpen,_=l.inputValue,L=l.isMulti,F=SO(N),V={};if(h&&(N!==h.value||A!==h.options||O!==h.menuIsOpen||_!==h.inputValue)){var H=O?VY(l,F):[],z=O?PO(n0(l,F),"".concat(T,"-option")):[],U=v?BY(d,F):null,J=zY(d,H),q=QE(z,J);V={selectValue:F,focusedOption:J,focusedOptionId:q,focusableOptionsWithIds:z,focusedValue:U,clearFocusValueOnUpdate:!1}}var Re=y!=null&&l!==h?{inputIsHidden:y,inputIsHiddenAfterUpdate:void 0}:{},he=C,ge=x&&R;return x&&!ge&&(he={value:Ub(L,F,F[0]||null),options:F,action:"initial-input-focus"},ge=!R),(C==null?void 0:C.action)==="initial-input-focus"&&(he=null),yt(yt(yt({},V),Re),{},{prevProps:l,ariaSelection:he,prevWasFocused:ge})}}]),i}(M.Component);GR.defaultProps=FY;var UY=M.forwardRef(function(n,r){var i=WD(n);return M.createElement(GR,Rt({ref:r},i))}),WR=UY;function Hp({bg:n="dark",children:r,color:i="light",fontWeight:u="bold",icon:l="info-circle-fill",initial:d=!1,maxWidth:h="200px",padding:v="10px",placement:y,target:C,trigger:x="click",visible:R=!0}){const T=typeof d=="string"||d instanceof String,[A,N]=M.useState(T?localStorage.getItem(d)!="true":d),[O,_]=M.useState(!1);M.useEffect(()=>{setTimeout(()=>_(!0),100)},[]);const L=()=>{T&&localStorage.setItem(d,"true")},F=b.jsxs(U0,{style:{"--bs-tooltip-bg":`var(--bs-${n})`,"--bs-tooltip-color":`var(--bs-${i})`,"--bs-tooltip-max-width":h,"--bs-tooltip-padding-x":v,"--bs-tooltip-padding-y":v,fontWeight:u},children:[b.jsx("button",{"aria-label":"Close",onClick:()=>{L(),N(!1)},style:{background:"transparent",border:"0 none transparent",float:"right"},children:b.jsx("i",{className:"bi bi-x-lg"})}),r]});return C&&C.current?b.jsx(UD,{target:C.current,placement:y,show:A&&R&&O,children:F}):b.jsx(IR,{placement:y,onToggle:V=>{L(),N(V)},overlay:F,show:A&&R&&O,trigger:x,children:b.jsx("button",{className:"btn bnt-clear border-0",style:{backgroundColor:"transparent"},children:b.jsx("i",{className:`bi bi-${l}`})})})}const $Y="_items_c2dbg_1",GY="_item_c2dbg_1",WY="_details_c2dbg_14",XY="_text_c2dbg_20",YY="_number_c2dbg_35",ZY="_outer_c2dbg_50",JY="_inner_c2dbg_61",Zl={items:$Y,item:GY,details:WY,text:XY,number:YY,outer:ZY,inner:JY},um=(n,r)=>`${Math.cos(2*Math.PI*n)*r} ${Math.sin(2*Math.PI*n)*r}`;function qY({requestId:n,grantNumber:r,creditColorClass:i="gray-300",colorClasses:u=vw}){const{request:l}=ri(n,r);if(!l)return;let d=0,h;const v=[];for(let T of l.resources)T.isBoolean||(T.isCredit?h=T:v.push(T),d+=T.requested*T.unitCost);const y=[],C=[];let x=-.25;const R=[...v,h].map((T,A)=>{if(!T)return null;const N=A+1,_=T.requested*T.unitCost/d,L=T.requested-T.used,F=Math.max(0,L),V=T.isCredit?d/T.unitCost:T.requested,H=V==0?0:100*F/V,U=`var(--bs-${T.isCredit?i:u[A%u.length]})`;if(_>0){const J=x,q=x+_/2,Re=x+=_,he=_>.5?1:0,ge=[`M ${um(J,100)}`,`A 100 100 0 ${he} 1 ${um(Re,100)}`,`L ${um(Re,50)}`,`A 50 50 0 ${he} 0 ${um(J,50)}`].join(" "),[fe,Oe]=um(q,75).split(" ").map(Te=>parseFloat(Te));y.push(b.jsx("path",{d:ge,style:{fill:U}},T.resourceId)),C.push(b.jsx("circle",{cx:fe,cy:Oe,r:"8",fill:"black"},`${T.resourceId}-circle`),b.jsx("text",{x:fe-4,y:Oe+4,fill:"white",className:Zl.number,children:N},`${T.resourceId}-text`))}return T.isCredit&&C.push(b.jsx("foreignObject",{x:"-50",y:"-50",width:"100",height:"100",children:b.jsx("div",{className:Zl.text,children:b.jsxs("div",{children:[b.jsx("strong",{children:ni(F,{abbreviate:!0})}),T.unit," available"]})})},"center-text")),b.jsxs("li",{className:Zl.item,children:[b.jsx("span",{className:Zl.number,children:N}),b.jsx("span",{className:`${Zl.outer} ms-2 me-2`,style:{borderColor:U},children:b.jsx("span",{className:Zl.inner,style:{backgroundColor:U,width:`${H}%`}})}),b.jsxs("strong",{className:Zl.name,children:[Uf(T,{userGuide:!1}),": "]}),b.jsxs("span",{className:Zl.details,children:[ni(L,{abbreviate:!0})," ",T.isCredit?null:b.jsxs(b.Fragment,{children:["of ",ni(V,{abbreviate:!0})," "]}),T.unit," ",T.isCredit?"available":"remaining"," (",Math.round(H),"%)"]})]},T.resourceId)});return b.jsxs("div",{className:"row",children:[b.jsx("div",{className:"col-lg-3 mb-3 d-flex flex-row align-items-center justify-content-center",children:b.jsxs("svg",{version:"1.1",viewBox:"-100 -100 200 200",width:"200",height:"200",xmlns:"http://www.w3.org/2000/svg",children:[y,C]})}),b.jsx("div",{className:"col-lg-9 mb-3 d-flex flex-column justify-content-center",children:b.jsx("ul",{className:Zl.items,children:R})})]})}const VO=n=>n;function QY({classes:n,clean:r=VO,format:i=VO,label:u,setValue:l,style:d,value:h}){const v=i(h),[y,C]=M.useState(v);return M.useEffect(()=>{C(v)},[v]),b.jsx("input",{type:"text","aria-label":u,className:`form-control ${n}`,value:y,style:d,onChange:x=>C(x.target.value),onBlur:x=>{const R=r(x.target.value);C(i(R)),l(R)},onKeyDown:x=>{x.code=="Enter"&&(x.preventDefault(),x.target.blur())}})}function KY({requestId:n,grantNumber:r}){const{request:i,addResource:u,openUsageDetailModal:l,resetResources:d,setResourceRequest:h,setResourcesReason:v,statuses:y,toggleActionsModal:C,toggleConfirmModal:x,toggleResourcesModal:R}=ri(n,r),{project:T}=Ji(r||i&&i.grantNumber),A=M.useRef(null),N=M.useRef(null);if(!i||!T)return;const O="Exchange"in i.allowedActions,_="Renewal"in i.allowedActions,L="Supplement"in i.allowedActions,F=i.exchangeStatus==y.pending,V=i.exchangeStatus==y.success,H=i.exchangeStatus==y.error,z=i.exchangeActionId!==null,U=i.resources,J=i.resourcesReason,q={};for(let le of U)q[le.resourceId]=le;const Re=()=>{PA(i)>=.75?C():x()},he=[];for(let le of U){let ve=[];if(le.requested>0){for(let we of le.requires||[]){let Ve=q[we];if(Ve){if(Ve.requested>0){ve=[];break}ve.push(Ve)}}ve.length&&he.push(b.jsxs("span",{children:[Uf(le,{userGuide:!1})," requires"," ",LA(ve.map(we=>Uf(we,{userGuide:!1})),"or"),"."]},le.resourceId))}}const ge=he.length>0;let fe;V?fe=b.jsx(na,{color:"info",children:"Your exchange request has been submitted."}):z?fe=b.jsx(na,{color:"warning",children:"You have an exchange request under review. The information below reflects the pending exchange request."}):H?fe=b.jsx(na,{color:"danger",children:"Sorry, your exchange request could not be submitted. Please try again later."}):i.timeStatus=="current"&&!T.isManager?fe=b.jsxs(na,{color:"warning",children:["You do not have permission to manage resources for this project. Please contact ",rR(T)," to request a change."]}):ge&&(fe=b.jsxs(na,{color:"warning",children:[he," Please adjust your balance values."]}));const Oe=J.length>0;let Te=!1,xe=!1;for(let le of U)if(le.isNew&&(Te=!0),le.allocated!=le.requested&&(xe=!0),Te&&xe)break;const je=U.map(le=>le.resourceId),Le=O&&!V&&!z?i.allowedActions.Exchange.resources.filter(le=>!je.includes(le.resourceId)).map(le=>{const ve=M0(le.name),we=ve.short?`${ve.short} (${ve.full.replace(/ \([^(]+\)/,"")})`:ve.full;return{value:le.resourceId,label:we}}):[],ne=O?i.allowedActions.Exchange.resources.map(le=>le.resourceId):[];let _e;const G=[],Y=[];for(let le of U)le.isCredit?_e=le:(G.push(le),Y.push(!V&&!z&&(le.isNew||le.allocated!=le.requested)?Bp.edited:ne.includes(le.resourceId)?"":Bp.disabled));const re=`Add ${G.length?"another":"a"} resource to your exchange...`,ye=le=>le.requested-le.used,Se=(le,ve)=>{let we=Fp(Number(le.replace(/[^0-9-.]/g,""))+ve.used,ve.decimalPlaces);isNaN(we)&&(we=ve.allocated);const Ve=Math.min(ve.allocated,ve.used);return we<Ve?Ve:ve.unitCost*(we-ve.requested)>_e.requested?Fp(_e.requested/ve.unitCost,ve.decimalPlaces,"floor")+ve.requested:we},Ne=[{key:"name",name:"Resource",format:(le,ve)=>Uf(ve),width:Math.min(350,window.innerWidth*.3)},{key:"isActive",name:"Status",format:(le,ve)=>b.jsx(Zp,{status:le?"Active":ve.isNew?"New":"Inactive"}),width:100},{key:"unit",name:"Unit",width:150,format:(le,ve)=>ve.isBoolean?b.jsx(b.Fragment,{children:"—"}):b.jsx("abbr",{title:`1 ${m_(le,1)} = ${ni(ve.unitCost)} ${m_(_e.name,ve.unitCost)}`,children:le})},{key:"used",name:"Usage",class:"text-end",format:(le,ve)=>ve.isBoolean?b.jsx(b.Fragment,{children:"—"}):b.jsxs(b.Fragment,{children:[ni(le),(T.currentUser.resourceIds.includes(ve.resourceId)||T.currentUser.resourceAccountInactiveIds.includes(ve.resourceId))&&b.jsx(c0,{icon:"table",onClick:()=>l(ve.resourceRepositoryKey),target:"_blank",title:`${ve.name} Usage Details`})]})}];return O&&Ne.push({key:"requested",name:"Balance",class:"text-end",rowClass:le=>!V&&!z&&ne.includes(le.resourceId)?Bp.input:"",format:(le,ve)=>{const we=!V&&!z&&ne.includes(ve.resourceId);return ve.isBoolean?b.jsx("input",{className:"form-check-input",type:"checkbox",checked:le==1,disabled:!we,onChange:Ve=>h(ve.resourceId,Ve.target.checked?1:0)}):we?b.jsx(QY,{classes:"text-end w-100",clean:Ve=>Se(Ve,ve)-ve.used,format:ni,label:`Balance for ${ve.name}`,setValue:Ve=>{h(ve.resourceId,Ve+ve.used)},style:{padding:"0.1rem 0.5rem"},value:ye(ve)}):ni(ye(ve))},formatHeader:le=>b.jsxs(b.Fragment,{children:[le,!V&&!z?b.jsx(Hp,{bg:"secondary",color:"dark",initial:"myprojects.requestedAllocation",placement:"top-end",visible:T.tab=="resources",children:"You can increase or decrease the balance below to change your allocation on a resource. Enter the total amount you would like to have available once the exchange is complete."}):null]})}),b.jsxs("div",{className:"resources",children:[fe,U.length?b.jsx(qY,{requestId:n}):null,_e&&(O||_||L)?b.jsxs("h2",{className:"mb-1 mt-2 d-flex justify-content-between",children:[b.jsxs("span",{children:[gc(Nn.resourceTypeIcons.credit)," ",ni(_e.requested,_e)," ",_e.unit," available to exchange"]}),_||L?b.jsxs("button",{type:"button",className:"btn btn-sm btn-primary ms-2",onClick:Re,children:[gc(Nn.resourceTypeIcons.credit)," Request More"," ",i.usesCredits?"Credits":"Units"]}):null]}):null,G.length?b.jsx(Kf,{columns:Ne,rows:G,rowClasses:Y,classes:Le.length?"mb-0":"",frozenColumns:2,minWidth:"800px"}):b.jsx("div",{className:"card p-2 text-bg-light p-3",children:"This project does not have any resources."}),Le.length?b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"p-2",style:{backgroundColor:"var(--teal-200)",border:"1px solid #cccccc",marginTop:"-1px"},ref:A,children:b.jsx(WR,{classNames:{control:()=>"react-select mb-1"},options:Le,onChange:le=>u(le.value),placeholder:re,value:null,"aria-label":re})}),G.length?null:b.jsx(Hp,{bg:"secondary",color:"dark",visible:T.tab=="resources",initial:!0,target:A,children:"Ready to get started? Search for a resource to add it to your project."}),b.jsxs("p",{className:"text-black-50",style:{fontSize:"0.9rem"},children:["Need help choosing a resource? Visit our"," ",b.jsx("a",{href:Nn.routes.resources_path(),children:"Resource Catalog"}),"."]})]}):null,O&&!V&&!z?b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"mb-3",children:[b.jsx("label",{htmlFor:"resources-reason",className:"form-label required",children:"Please briefly explain how the requested resources and amounts will contribute to your research."}),b.jsx("textarea",{className:"form-control",id:"resources-reason",rows:"2",value:J,onChange:le=>v(le.target.value),style:{minHeight:"3rem"}})]}),b.jsxs("div",{className:"d-flex",children:[b.jsx("button",{type:"button",className:"btn btn-danger me-2",disabled:F||!xe&&!Oe&&!Te,onClick:d,children:"Reset Form"}),b.jsx("button",{ref:N,type:"button",className:"btn btn-secondary",disabled:F||!xe||!Oe||ge,onClick:R,children:F?"Submitting...":"Submit for Approval"})]}),xe&&!ge?b.jsx(Hp,{bg:"secondary",color:"dark",initial:"myprojects.submitExchange",maxWidth:"390px",placement:"right",target:N,visible:T.tab=="resources",children:"When you are finished adding resources, enter a justification for the requested resources above. Then you can submit your exchange for approval."}):null]}):null]})}function eZ({question:n,requestId:r,grantNumber:i}){const{request:u,setResourceQuestionValues:l}=ri(r,i),d=M.useId();if(!n||!u||u.error)return;const{attributeSetId:h,attributes:v,fieldType:y,label:C,resourceId:x,values:R}=n,T=v[0],A=T.required?"required":"",N=V=>l(x,h,V.target.value?[V.target.value]:[]),O=V=>{l(x,h,Array.from(V.target.options).filter(({selected:H})=>H).map(({value:H})=>parseInt(H,10)))},_=V=>{const H=parseInt(V.target.value,10),z=V.target.checked?[...R,H]:R.filter(U=>U!=H);l(x,h,z)},L=V=>{const H=parseInt(V.target.value);l(x,h,isNaN(H)?[]:[H])};let F;if(["calendar","integer_only","text"].includes(y)){const V={calendar:"date",integer_only:"number",text:"text"}[y];F=b.jsx("input",{className:"form-control",id:d,type:V,placeholder:T.label,required:T.required,value:R[0]||"",onChange:y=="integer_only"?L:N})}else if(y=="textarea")F=b.jsx("textarea",{className:"form-control",id:d,placeholder:T.label,required:T.required,value:R[0]||"",onChange:N});else if(y=="drop_down"||v.length>=10){const V=y=="multi_sel";F=b.jsxs("select",{id:d,className:"form-select",required:T.required,multiple:V,onChange:V?O:L,value:V?R:R[0]||"",children:[V?null:b.jsx("option",{}),v.map(H=>b.jsx("option",{value:H.resourceAttributeId,children:H.label},H.resourceAttributeId))]})}else F=b.jsx("div",{id:d,children:v.map(V=>{const H=`resource-attribute-${V.resourceAttributeId}`;return b.jsxs("div",{className:"form-check",children:[b.jsx("input",{className:"form-check-input",type:y=="single_sel"?"radio":"checkbox",id:H,value:V.resourceAttributeId,checked:R.includes(V.resourceAttributeId),onChange:y=="single_sel"?L:_}),b.jsx("label",{className:"form-check-label",htmlFor:H,children:V.label})]},V.resourceAttributeId)})});return b.jsxs("div",{className:"mb-3",children:[b.jsx("label",{htmlFor:d,className:`form-label ${A}`,children:C}),F]})}function tZ({requestId:n,grantNumber:r}){const{request:i,saveResources:u,toggleResourcesModal:l}=ri(n,r),{project:d}=Ji(r||i.grantNumber);if(!i||!d||i.error||d.error)return;const h=[],v=i.resources.filter(C=>C.allocated!=C.requested).map(C=>{const x=C.requested-C.allocated;return C.questions&&h.push(...C.questions),b.jsxs("li",{className:"list-group-item d-flex justify-content-between align-items-center mb-0",children:[C.name,b.jsx("span",{className:`badge bg-${x>0?"primary":"danger"} rounded-pill`,children:C.isBoolean?nR(C.requested):b.jsxs(b.Fragment,{children:[x>0?"+":"",ni(x,C)," ",C.unit]})})]},C.resourceId)}),y=h.some(({attributes:C,values:x})=>x.length==0&&C[0].required);return b.jsxs(Ln,{size:"lg",show:i.showResourcesModal,onHide:l,scrollable:!0,children:[b.jsx(Ln.Header,{closeButton:!0,children:b.jsx(Ln.Title,{children:"Complete Your Exchange"})}),b.jsxs(Ln.Body,{children:[b.jsx("p",{children:"Please review your exchange to make sure it includes all the resources you need. Once you submit it, you will not be able to request another exchange until this one has been processed by the resource providers."}),b.jsx("ul",{className:"list-group mb-3",children:v}),h.length?b.jsxs(b.Fragment,{children:[b.jsx("h2",{children:"Resource Questions"}),b.jsx("p",{children:"Some of the resources you selected have associated questions. Please answer the questions below."}),h.map(C=>b.jsx(eZ,{question:C,requestId:n,grantNumber:r},C.attributeSetId))]}):null]}),b.jsx(Ln.Footer,{children:b.jsxs("div",{className:"d-flex",children:[b.jsx("button",{type:"button",className:"btn btn-primary me-2",onClick:l,children:"Continue Editing"}),b.jsx("button",{type:"button",className:"btn btn-secondary",onClick:u,disabled:y,children:"Submit"})]})})]})}function Mm(){return b.jsx("div",{className:"spinner-border",role:"status",children:b.jsx("span",{className:"visually-hidden",children:"Loading..."})})}function Lk({user:n}){const r=`${n.lastName}, ${n.firstName}`;let i=r,u=[n.organization,n.email].filter(l=>l).join(", ");return u&&(i+=`: ${u}`),b.jsx("abbr",{title:i,children:r})}function nZ({requestId:n,grantNumber:r}){const{project:i}=Ji(r),{request:u,closeUsageDetailModal:l}=ri(n,r);if(!u||u.error||!i||i.error||!u.usageDetailStatus)return;let d,h="Usage";if(u.usageDetailStatus==ea.pending)d=b.jsx(Mm,{});else if(u.usageDetailStatus==ea.error)d=b.jsx(na,{color:"danger",children:"An error occurred while loading usage data."});else{const{projectTitle:v,resourceDisplayName:y,resourceRepositoryKey:C,users:x}=u.usageDetail,{full:R,short:T}=M0(y),A=u.resources.find(L=>L.resourceRepositoryKey==C),N=L=>ni(L,{decimalPlaces:A?A.decimalPlaces:void 0}),O={};for(let L of i.users)O[L.username]=L;h=b.jsxs(b.Fragment,{children:["Usage: ",T||R," for ",v]});const _=[{key:"name",name:"Name",format:(L,{lastName:F,firstName:V,portalUsername:H})=>{const z=O[H];return z?b.jsx(Lk,{user:z}):`${F}, ${V}`}},{key:"portalUsername",name:"Resource Username",format:L=>{const F=O[L],V=F?F.resourceUsernames[A.resourceId]:null;return V||b.jsx(b.Fragment,{children:"—"})}},{key:"role",name:"Role",format:L=>FA[L].name},{key:"lastWeek",name:"Last Week",class:"text-end",format:N},{key:"lastMonth",name:"Last Month",class:"text-end",format:N},{key:"lastQuarter",name:"Last 3 Months",class:"text-end",format:N},{key:"currentRequest",name:"Current Allocation",class:"text-end",format:N},{key:"total",name:"All Time",class:"text-end",format:N}];d=x.length?b.jsx(Kf,{rows:x,columns:_}):b.jsx(na,{color:"info",children:"There is no usage for this resource."})}return b.jsxs(Ln,{show:!0,size:"lg",onHide:l,scrollable:!0,children:[b.jsx(Ln.Header,{closeButton:!0,children:b.jsx(Ln.Title,{children:h})}),b.jsx(Ln.Body,{children:d})]})}var rZ=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function aZ(n){var r=n.defaultOptions,i=r===void 0?!1:r,u=n.cacheOptions,l=u===void 0?!1:u,d=n.loadOptions;n.options;var h=n.isLoading,v=h===void 0?!1:h,y=n.onInputChange,C=n.filterOption,x=C===void 0?null:C,R=rl(n,rZ),T=R.inputValue,A=M.useRef(void 0),N=M.useRef(!1),O=M.useState(Array.isArray(i)?i:void 0),_=ta(O,2),L=_[0],F=_[1],V=M.useState(typeof T<"u"?T:""),H=ta(V,2),z=H[0],U=H[1],J=M.useState(i===!0),q=ta(J,2),Re=q[0],he=q[1],ge=M.useState(void 0),fe=ta(ge,2),Oe=fe[0],Te=fe[1],xe=M.useState([]),je=ta(xe,2),Le=je[0],ne=je[1],_e=M.useState(!1),G=ta(_e,2),Y=G[0],re=G[1],ye=M.useState({}),Se=ta(ye,2),Ne=Se[0],le=Se[1],ve=M.useState(void 0),we=ta(ve,2),Ve=we[0],et=we[1],tt=M.useState(void 0),ft=ta(tt,2),Ae=ft[0],It=ft[1];l!==Ae&&(le({}),It(l)),i!==Ve&&(F(Array.isArray(i)?i:void 0),et(i)),M.useEffect(function(){return N.current=!0,function(){N.current=!1}},[]);var pt=M.useCallback(function(sn,_n){if(!d)return _n();var Vt=d(sn,_n);Vt&&typeof Vt.then=="function"&&Vt.then(_n,function(){return _n()})},[d]);M.useEffect(function(){i===!0&&pt(z,function(sn){N.current&&(F(sn||[]),he(!!A.current))})},[]);var Kt=M.useCallback(function(sn,_n){var Vt=T5(sn,_n,y);if(!Vt){A.current=void 0,U(""),Te(""),ne([]),he(!1),re(!1);return}if(l&&Ne[Vt])U(Vt),Te(Vt),ne(Ne[Vt]),he(!1),re(!1);else{var Cn=A.current={};U(Vt),he(!0),re(!Oe),pt(Vt,function(Qn){N&&Cn===A.current&&(A.current=void 0,he(!1),Te(Vt),ne(Qn||[]),re(!1),le(Qn?yt(yt({},Ne),{},Pp({},Vt,Qn)):Ne))})}},[l,pt,Oe,Ne,y]),on=Y?[]:z&&Oe?Le:L||[];return yt(yt({},R),{},{options:on,isLoading:Re||v,onInputChange:Kt,filterOption:x})}var iZ=M.forwardRef(function(n,r){var i=aZ(n),u=WD(i);return M.createElement(GR,Rt({ref:r},u))}),oZ=iZ;const BO=({description:n,disabled:r=!1,onChange:i,selectedLength:u,totalLength:l})=>{const d=M.useRef(),h=M.useId();let v=u==l,y=u>0&&!v;return M.useEffect(()=>{d.current&&(d.current.checked=v,d.current.indeterminate=y)},[v,y]),b.jsxs(b.Fragment,{children:[b.jsx("input",{className:"custom-checkbox form-check-input",disabled:r,id:h,onChange:C=>i(C.target.checked),ref:d,type:"checkbox"}),b.jsx("label",{className:"form-check-label",htmlFor:h,"aria-description":`${v?"Deselect":"Select"} ${n}`})]})};function sZ({grantNumber:n,requestId:r}){const{project:i,addUser:u,resetUsers:l,saveUsers:d,setTab:h,setUserRole:v,statuses:y,toggleUsersResources:C}=Ji(n),{request:x}=i?ri(r||i.currentRequestId,n):{request:null};if(!i||!i.currentRequestId||!x||i.error||x.error)return;const R=i.isManager,T="Exchange"in x.allowedActions,A=i.usersStatus==y.pending,N=i.usersStatus==y.success,O=i.usersStatus==y.error,_=i.users,L=x.resources.filter(mw),F=L.length==0,V=_.find(he=>he.hasChanges)!==void 0,H=_.find(he=>he.role!="pi")!==void 0;let z;N&&!V?z=b.jsx(na,{color:"info",children:"Your changes have been saved. Creation of user accounts can take some time. Users can check the status of their accounts on the Overview tab of the My Projects page."}):O?z=b.jsx(na,{color:"danger",children:"Sorry, your changes could not be saved. Please try again later."}):R?L.length?F&&(z=b.jsx(na,{color:"warning",children:"This project does not have any active resources."})):z=b.jsxs(na,{color:"warning",children:["This project does not have any resources."," ",T?b.jsx("a",{href:Nn.routes.request_action_path(x.requestId,"new?action_type=Exchange"),onClick:he=>{he.preventDefault(),h("resources")},children:"Exchange credits for resources."}):null," ","Additional users can be added after an exchange is approved."]}):z=b.jsxs(na,{color:"warning",children:["You do not have permission to manage users for this project. Please contact ",rR(i)," to request a change."]});const U=(he,ge)=>{let fe,Oe,Te,xe;if(ge.key=="all"){fe="all resources for all users",Oe=je=>C(je),Te=0;for(let je of _)Te+=je.resourceIds.length;xe=_.length*L.length}else fe=`all users for ${ge.name}`,Oe=je=>C(je,null,ge.key),Te=_.filter(({resourceIds:je})=>je.includes(ge.key)).length,xe=_.length;return b.jsxs(b.Fragment,{children:[ge.key=="all"?he:Uf(ge,{userGuide:!1}),b.jsx("br",{}),b.jsx(BO,{description:fe,disabled:ge.disabled,onChange:Oe,selectedLength:Te,totalLength:xe})]})},J=L0.map(({role:he,name:ge})=>b.jsx("option",{value:he,children:ge},he)),q=[{key:"name",name:"Name",width:200,format:(he,ge)=>b.jsx(Lk,{user:ge})},{key:"username",name:"ACCESS Username",width:100},{key:"role",name:"Role",width:100,format:(he,ge)=>b.jsx("select",{className:"form-select",value:he,onChange:fe=>v(ge.username,fe.target.value),disabled:!R||he=="pi"||he=="co_pi",style:{position:"absolute",left:0,top:0,bottom:0,right:0,borderWidth:0},children:J.filter(fe=>fe.key==he||!["pi","co_pi"].includes(fe.key))})}];L.length&&q.push({key:"all",name:"All Resources",class:`text-center ${Bp.important}`,disabled:!R||F,width:100,format:(he,ge)=>b.jsx(BO,{description:`all users for ${ge.name}`,disabled:!R||F,onChange:fe=>C(fe,ge.username),selectedLength:ge.resourceIds.length,totalLength:L.length}),formatHeader:U});for(let he of L)q.push({key:he.resourceId,name:he.name,class:"text-center",disabled:!R||!he.isActive,icon:he.icon,format:(ge,fe)=>b.jsx(b.Fragment,{children:b.jsx("input",{className:"form-check-input",disabled:!R||!he.isActive,onChange:Oe=>C(Oe.target.checked,fe.username,he.resourceId),type:"checkbox",checked:fe.resourceIds.includes(he.resourceId)})}),formatHeader:U});const Re=_.map(he=>he.hasChanges?Bp.edited:"");return b.jsxs(b.Fragment,{children:[z,b.jsx(Kf,{rows:_,columns:q,frozenColumns:L.length?4:3,classes:"mb-0",minWidth:"800px",rowClasses:Re,scrollRowIndex:i.usersNewRowIndex}),R&&L.length&&!F?b.jsx("div",{style:{marginTop:"-1px",position:"relative",zIndex:100},children:b.jsx(oZ,{classNames:{control:()=>"react-select"},loadOptions:async he=>(await JU(he)).map(fe=>({value:fe,label:`${fe.username} (${fe.firstName} ${fe.lastName}, ${fe.organization}${fe.email?`, ${fe.email}`:""})`})),onChange:he=>u(he.value),placeholder:"Add another user...",value:null,"aria-label":"Add another user"})}):null,R&&(L.length&&!F||H)?b.jsxs("div",{className:"d-flex mt-3",children:[b.jsx("button",{type:"button",className:"btn btn-danger me-2",disabled:A||!V,onClick:l,children:"Reset Form"}),b.jsx("button",{type:"button",className:"btn btn-secondary",disabled:A||!V,onClick:d,children:A?"Saving...":"Save Changes"})]}):null]})}function lZ({requestId:n,grantNumber:r}){const{request:i}=ri(n,r),{project:u,setRequest:l,setTab:d}=Ji(r||i.grantNumber);if(!i)return;if(i.error)return b.jsx(na,{color:"danger",children:i.error});const h=i.timeStatus||i.actions[0].status.toLowerCase(),v=i.actions.find(({showDeleteModal:C})=>C),y=[];return i.resources.length||y.push("resources"),n!=u.currentRequestId&&y.push("users"),b.jsxs("div",{className:"request",children:[i.returnedForCorrections?b.jsxs(na,{color:"warning",children:[b.jsx("p",{children:"Your request has been returned for corrections. These are the notes from the Allocations Team"}),b.jsx("div",{className:w$.returnedForCorrectionsNotes,children:i.returnedForCorrectionsNotes}),b.jsx("p",{className:"mt-3",children:"Please address these issues by clicking the Edit button to edit your request."})]}):"",i.timeStatus!="current"&&!i.returnedForCorrections?b.jsxs(na,{color:"warning",children:["You are viewing ","aeiou".includes(h[0])?"an":"a"," ",h," request."," ",y.length?`You cannot manage ${y.join(" or ")} for this request.`:""," ",u.currentRequestId?b.jsx("a",{href:Nn.routes.request_path(u.currentRequestId),onClick:C=>{C.preventDefault(),l(u.currentRequestId)},children:"Go to the current request."}):null]}):null,b.jsxs(J3,{activeKey:u.tab,onSelect:d,className:"mt-3 mb-3",children:[b.jsx(kb,{eventKey:"overview",title:"Overview",className:"mb-0",children:b.jsx(V4,{requestId:n,grantNumber:r})}),b.jsx(kb,{eventKey:"resources",title:i.usesCredits?"Credits + Resources":"Resources",disabled:y.includes("resources"),children:b.jsx(KY,{requestId:n})}),b.jsx(kb,{eventKey:"users",title:"Users + Roles",disabled:y.includes("users"),children:b.jsx(sZ,{grantNumber:r})}),b.jsx(kb,{eventKey:"history",title:"History",children:b.jsx(p4,{requestId:n})})]}),b.jsx(n4,{grantNumber:r,requestId:n}),b.jsx(r4,{grantNumber:r,requestId:n}),b.jsx(a4,{grantNumber:r,requestId:n,actionId:v?v.actionId:null}),b.jsx(tZ,{grantNumber:r,requestId:n}),b.jsx(nZ,{grantNumber:r,requestId:n})]})}function uZ({requestId:n,grantNumber:r}){const{request:i,toggleActionsModal:u,toggleDeleteModal:l}=ri(n,r);if(!i)return;const{actions:d,allowedActions:h}=i,v=[];h&&(("Extension"in h||"Renewal"in h)&&v.push(["Extend End Date",C=>{C.preventDefault(),u()},"calendar-plus"]),"Final Report"in h&&v.push(["Submit Final Report",`${Nn.routes.request_action_path(n,"new")}?action_type=Final+Report`,"file-earmark-check"]));const y=d.find(C=>C.isRequest);if(y){const C=y.allowedOperations||[];C.includes("Edit")&&v.push(["Edit",Nn.routes.edit_request_path(i.requestId),"pencil"]),C.includes("Delete")&&v.push(["Delete",x=>{x.preventDefault(),l(y.actionId)},"trash","danger"])}return v.map(([C,x,R,T])=>{const A=b.jsxs(b.Fragment,{children:[" ",R&&b.jsx("i",{className:`bi bi-${R} me-1`}),C]});return typeof x=="function"?b.jsx("button",{className:`btn btn-${T||"primary"} ms-2 text-nowrap`,onClick:x,children:A},C):b.jsx("a",{className:`btn btn-${T||"primary"} ms-2 text-nowrap`,href:x,children:A},C)})}function cZ({open:n=!1,grantNumber:r,title:i,status:u}){const[l,d]=M.useState(n),{project:h,setRequest:v}=Ji(r,!l&&i&&u&&!0),y=`project-${r}`;let C=null;if(l&&h)if(h.error)C=b.jsx(na,{color:"danger",children:h.error});else{let x;const R=h.requestsList.map(T=>(T.requestId==h.selectedRequestId&&(x=T),b.jsx("option",{value:T.requestId,children:tR(T)},T.requestId)));C=b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"d-flex",children:[b.jsx("select",{className:"form-select","aria-label":"Select a request to display",onChange:T=>v(parseInt(T.target.value,10)),value:h.selectedRequestId,disabled:R.length<2,children:R}),b.jsx(uZ,{requestId:h.selectedRequestId,grantNumber:r})]}),x?b.jsx(lZ,{...x,grantNumber:r}):null]})}return b.jsxs("div",{className:`${C_.project} card mb-3`,children:[b.jsxs("div",{className:`card-header d-flex justify-content-between ${l?"":"border-bottom-0"}`,children:[b.jsx("button",{"aria-expanded":l,"aria-controls":y,className:C_.expand,onClick:()=>d(!l),children:b.jsxs("h2",{className:"mb-1 mt-1 text-start",children:[b.jsx("i",{className:`bi bi-caret-${l?"down":"right"}-fill`})," ",/^[A-Z]/.test(r)?b.jsxs(b.Fragment,{children:[b.jsxs("span",{className:"grant-number",children:[r,":"]})," "]}):null,i||h.title]})}),b.jsx(Zp,{status:u||h.status})]}),b.jsx("div",{className:"card-body",id:y,hidden:!l||!h,children:C})]})}function fZ({username:n,openFirst:r=1}){const{error:i,loading:u,projects:l}=C$(n);return u?b.jsx(Mm,{}):i?b.jsxs(na,{color:"danger",children:[i," ",b.jsx("a",{href:"#",onClick:d=>{d.preventDefault(),window.location.reload()},children:"Reload the page"})," ","to try again."]}):l.length?l.map((d,h)=>b.jsx(cZ,{open:h<r,...d},d.grantNumber)):b.jsxs("div",{className:"pt-5 pb-5 text-bg-light border border-light-subtle",children:[b.jsx("p",{className:"fs-2 text-center mb-4",children:"You don't have any projects yet."}),b.jsxs("div",{className:"d-flex gap-2 justify-content-center",children:[b.jsxs("a",{className:"btn btn-primary w-25",href:Nn.routes.project_types_path(),children:[b.jsx("i",{className:"bi bi-boxes fs-1 d-block"})," Learn about Project Types"]}),b.jsxs("a",{className:"btn btn-secondary w-25",href:Nn.routes.get_your_first_project_path(),children:[b.jsx("i",{className:"bi bi-cpu fs-1 d-block"})," Learn How to Get Your"," ",b.jsx("br",{className:"d-none d-xxl-inline"})," First Project"]}),b.jsxs("a",{className:"btn btn-primary w-25",href:Nn.routes.how_to_path(),children:[b.jsx("i",{className:"bi bi-person-plus fs-1 d-block"})," Learn How to Join an Existing Project"]})]})]})}const Pk={apiUrl:null,listIsFiltered:!1,pages:1,projects:[],projectsLoaded:!1,filtersLoaded:!0,showPagination:!1,singleEntry:!1,filters:{org:"",allocationType:"",allFosToggled:!0,resource:"",requestNumber:""},pageData:{current_page:1,last_page:1},typeLists:{orgs:[],fosTypes:[],allocationTypes:[],resources:[]}},dZ=Di("projectsBrowser/initApp",async(n,{getState:r,dispatch:i})=>{const u=window.location.search,l=new URLSearchParams(u);l.has("_requestNumber")&&(i(Bw({name:"requestNumber",value:l.get("_requestNumber")})),i(Vk(!0))),await i(Vw()),await i(Gf()),i(pZ())}),pZ=Di("projectsBrowser/filterCleanup",async(n,{getState:r,dispatch:i})=>{const l=r().projectsBrowser.typeLists;i(Fk({...l,orgs:["-- ALL --"].concat(l.orgs)}))}),Vw=Di("projectsBrowser/getFilters",async(n,{getState:r,dispatch:i})=>{const l=`${r().projectsBrowser.apiUrl}?filters=1`,h=await(await fetch(l)).json();i(Fk(h.filters))}),Gf=Di("projectsBrowser/getProjects",async(n,{getState:r,dispatch:i})=>{const u=r().projectsBrowser,l=u.filters,d=u.typeLists,h=d.fosTypes.filter(x=>x.checked);let v=`${u.apiUrl}?page=${u.pageData.current_page}`;return l.requestNumber!=""?(v+=`&request_number=${l.requestNumber}`,i(HO(!0))):(i(HO(!1)),h.length!=d.fosTypes.length&&(v+=`&fos=${h.map(x=>x.fosTypeId).join(",")}`),l.org!=""&&l.org!="-- ALL --"&&(v+=`&org=${encodeURIComponent(l.org)}`),l.allocationType!=""&&(v+=`&allocation_type=${l.allocationType}`),l.resource!=""&&(v+=`&resources=${l.resource}`)),await(await fetch(v)).json()}),XR=D0({name:"projectsBrowser",initialState:Pk,reducers:{resetFilters:n=>{n.filters={org:"",allocationType:"",allFosToggled:!1,resource:"",requestNumber:""},XR.caseReducers.toggleAllFos(n)},setApiUrl:(n,{payload:r})=>{n.apiUrl=r},setShowPagination:(n,{payload:r})=>{n.showPagination=r},setTypeLists:(n,{payload:r})=>{n.typeLists=r},toggleAllFos:n=>{n.typeLists.fosTypes.forEach(r=>r.checked=!n.filters.allFosToggled),n.filters.allFosToggled=!n.filters.allFosToggled},toggleFos:(n,{payload:r})=>{n.typeLists.fosTypes.forEach(i=>{i.fosTypeId==r.fosTypeId&&(i.checked=!i.checked)}),n.typeLists.fosTypes.filter(i=>i.checked).length!=n.typeLists.fosTypes.length?n.filters.allFosToggled=!1:n.filters.allFosToggled=!0},toggleListFiltered:(n,{payload:r})=>{n.listIsFiltered=r},toggleSingleEntry:(n,{payload:r})=>{n.singleEntry=r},updateFilter:(n,{payload:r})=>{n.filters[r.name]=r.value},updatePageData:(n,{payload:r})=>{r.current_page&&(n.pageData.current_page=r.current_page),r.last_page&&(n.pageData.last_page=r.last_page)}},extraReducers:n=>{n.addCase(Gf.pending,r=>{r.projectsLoaded=!1}).addCase(Gf.fulfilled,(r,i)=>{const u=i.payload;r.projectsLoaded=!0,r.projects=u.projects,u.pages!=r.pageData.last_page&&(r.pageData.current_page=1),r.showPagination=!0,r.pageData.last_page=u.pages}).addCase(Gf.rejected,(r,i)=>{console.log(i.error)}).addCase(Vw.pending,r=>{r.filtersLoaded=!1}).addCase(Vw.fulfilled,r=>{r.filtersLoaded=!0})}}),{resetFilters:vZ,setApiUrl:q8,setShowPagination:zO,setTypeLists:Fk,toggleAllFos:hZ,toggleFos:mZ,toggleListFiltered:Vk,toggleSingleEntry:HO,updateFilter:Bw,updatePageData:zw}=XR.actions,gZ=n=>n.projectsBrowser.filters,yZ=n=>n.projectsBrowser.filtersLoaded,bZ=n=>n.projectsBrowser.listIsFiltered,CZ=n=>n.projectsBrowser.singleEntry,xZ=n=>n.projectsBrowser.projectsLoaded,SZ=n=>n.projectsBrowser.pageData,EZ=n=>n.projectsBrowser.projects,wZ=n=>n.projectsBrowser.filtersLoaded&&n.projectsBrowser.projectsLoaded&&n.projectsBrowser.pageData.last_page>1,RZ=n=>n.projectsBrowser.typeLists,TZ=XR.reducer;const IZ=()=>{const n=Io(),r=qn(gZ),i=qn(RZ),u=qn(bZ),l=i.orgs.map(O=>({label:O,value:O})),d=M.useRef(),[h,v]=M.useState(null),y={height:"200px",overflowX:"auto",padding:"2px"},C=O=>{n(Bw({name:O.target.name,value:O.target.value}))},x=()=>{window.scrollTo(0,0),T(!0),n(zO(!1)),n(zw({current_page:1})),n(Gf())},R=()=>{v(null),n(zO(!1)),n(zw({current_page:1})),n(vZ()),u&&(window.scrollTo(0,0),n(Gf()),T(!1))},T=O=>{n(Vk(O))},A=O=>{v(O),n(Bw({name:"org",value:O.value}))},N=()=>r.org==""&&r.allocationType==""&&r.allFosToggled&&r.resource==""&&r.requestNumber=="";return b.jsx("div",{className:"row sticky-top mb-2",children:b.jsxs("div",{className:"col",children:[b.jsx("h3",{className:"mb-2",children:"Filters"}),b.jsx("h5",{className:"mb-1",children:"Field of Science"}),b.jsxs("div",{className:"border mb-3",style:y,children:[b.jsxs("div",{className:"form-check",children:[b.jsx("input",{className:"form-check-input",type:"checkbox",value:"",id:"toggle_all",checked:r.allFosToggled,onChange:()=>{n(hZ())}}),b.jsx("label",{className:"form-check-label",htmlFor:"toggle_all",children:"(Toggle All)"})]}),i.fosTypes.map(O=>b.jsxs("div",{className:"form-check",children:[b.jsx("input",{className:"form-check-input",type:"checkbox",value:O.fosTypeId,id:`fos_${O.fosTypeId}`,checked:O.checked,onChange:()=>n(mZ(O))}),b.jsx("label",{className:"form-check-label",htmlFor:`fos_${O.fosTypeId}`,children:O.fosName})]},`fos_${O.fosTypeId}`))]}),b.jsx("h5",{id:"org_select_label",className:"mb-1",children:"Organization"}),b.jsx("div",{className:"mb-3",children:b.jsx(WR,{options:l,openMenuOnClick:!0,name:"org",inputId:"orgs_filter",ref:d,closeMenuOnSelect:!0,onChange:A,value:h,"aria-labelledby":"org_select_label"},"org_select")}),b.jsx("h5",{id:"project_type_label",className:"mb-1",children:b.jsx("abbr",{title:'A specific level of allocation; also referred to as "Opportunity"',children:"Project Type"})}),b.jsx("div",{className:"mb-3",children:b.jsxs("select",{name:"allocationType",id:"project_type_select",value:r.allocationType,className:"form-control","aria-labelledby":"project_type_label",onChange:O=>C(O),children:[b.jsx("option",{value:"",children:"-- All --"}),i.allocationTypes.map((O,_)=>b.jsx("option",{value:O,children:O},`allocation_type_${_}`))]})}),b.jsx("h5",{id:"resource_filter_label",className:"mb-1",children:"Resource"}),b.jsx("div",{className:"mb-3",children:b.jsxs("select",{name:"resource",id:"resource_select",value:r.resource,className:"form-control","aria-labelledby":"resource_filter_label",onChange:O=>C(O),children:[b.jsx("option",{value:"",children:"-- All --"}),i.resources.map((O,_)=>b.jsx("option",{value:O.resourceId,children:O.resourceName},`resource_${_}`))]})}),b.jsx("h5",{id:"request_number_label",className:"mb-1",children:"Request Number"}),b.jsx("div",{className:"mb-3",children:b.jsx("input",{type:"text",className:"form-control",value:r.requestNumber,name:"requestNumber",id:"requestNumber","aria-labelledby":"request_number_label",onChange:O=>C(O)})}),b.jsxs("div",{className:"mt-2",children:[b.jsx("button",{className:"btn btn-primary me-2",onClick:x,children:"Submit"}),b.jsx("button",{className:"btn btn-secondary",disabled:N(),onClick:R,children:"Reset"})]})]})})};const NZ=({project:n})=>{const r=n.resources,[i,u]=M.useState(!1),d=qn(CZ)?["0","1"]:[],h=A=>{let N=A.units?A.units:A.resourceUnits;const O=A.allocation?A.allocation:A.amount;if(N=="[Yes = 1, No = 0]"||N=="Yes / No")return O=="1.0"?"Yes":"No";{let _="0";return parseInt(O)&&(_=parseInt(O).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")),N=="ACCESS Credits"&&(N=b.jsx("span",{className:"tooltip-underline",title:"universal currency that can be exchanged for resource units",children:"ACCESS Credits"})),N=="Dollars"?`$${_}`:b.jsxs(b.Fragment,{children:[_," ",N]})}},v=()=>{const{origin:A,pathname:N}=window.location,O=`${A}${N}?_requestNumber=${n.requestNumber}`;navigator.clipboard.writeText(O),setTimeout(()=>u(!1),2e3)},y=()=>n.requestNumber&&n.requestNumber!=""?`(${n.requestNumber})`:b.jsx(b.Fragment,{}),C=b.jsx(U0,{id:"link-tooltip",children:"Link Copied!"}),x=()=>{if(y()){const A={background:"none",border:"none",color:"#fff",fontSize:"24px"};return b.jsx(IR,{placement:"left",trigger:"click",defaultShow:i,show:i,onToggle:()=>u(!i),overlay:C,children:b.jsx("button",{onClick:v,style:A,children:b.jsx("i",{className:"bi bi-link-45deg",children:b.jsx("div",{className:"d-none",children:"Direct link to project"})})})})}return b.jsx(b.Fragment,{})},R=()=>!n.coPis||n.coPis.length<=0?"":b.jsxs(b.Fragment,{children:[b.jsx("br",{}),b.jsxs("small",{className:"fst-italic",children:["CoPI(s): ",n.coPis.map(A=>`${A.name} (${A.organization})`).join(";")]})]}),T=()=>!n.beginDate||!n.endDate?"-":b.jsxs(b.Fragment,{children:[n.beginDate," to ",n.endDate]});return b.jsxs("div",{className:"card mb-4",children:[b.jsx("div",{className:"card-header bg-primary text-white",children:b.jsxs("div",{className:"d-flex justify-content-between",children:[b.jsxs("div",{children:[b.jsxs("span",{className:"fw-bold",children:[y()," ",n.requestTitle]})," ",b.jsx("br",{}),b.jsxs("span",{className:"fst-italic",children:[n.pi," ",b.jsxs("small",{children:[" (",n.piInstitution,") "]})]}),R()]}),b.jsx("div",{children:x()})]})}),b.jsxs("div",{className:"card-body",children:[b.jsxs("div",{className:"row fw-bold border-bottom",children:[b.jsx("div",{className:"col",children:b.jsx("span",{className:"mb-1 pb-0",children:"Field of Science"})}),b.jsx("div",{className:"col",children:b.jsx("span",{className:"mb-1 pb-0 tooltip-underline",title:'A specific level of allocation; also referred to as "Opportunity"',children:"Project Type"})}),b.jsx("div",{className:"col",children:b.jsx("span",{className:"mb-1 pb-0",children:"Dates"})})]}),b.jsxs("div",{className:"row",children:[b.jsx("div",{className:"col",children:n.fos}),b.jsx("div",{className:"col",children:n.allocationType}),b.jsx("div",{className:"col",children:T()})]}),b.jsxs(ss,{defaultActiveKey:d,activeKey:d,flush:!0,className:"mt-3 mb-1",alwaysOpen:!0,children:[b.jsxs(ss.Item,{eventKey:"0",children:[b.jsx(ss.Header,{children:"Resources"}),b.jsx(ss.Body,{children:b.jsxs("table",{className:"table table-striped table-bordered mt-2 mb-0",children:[b.jsx("thead",{children:b.jsxs("tr",{children:[b.jsx("td",{children:b.jsx("span",{className:"m-0 p-0",children:"Resource"})}),b.jsx("td",{children:b.jsx("span",{className:"m-0 p-0 d-inline",children:"Allocation"})})]})}),b.jsx("tbody",{children:r.map((A,N)=>b.jsxs("tr",{children:[b.jsx("td",{children:A.resourceName}),b.jsx("td",{style:{whiteSpace:"nowrap"},children:h(A)})]},`resource_${n.requestId}_${N}`))})]})})]}),b.jsxs(ss.Item,{eventKey:"1",children:[b.jsx(ss.Header,{children:"Abstract"}),b.jsx(ss.Body,{children:b.jsx("div",{style:{whiteSpace:"pre-wrap",padding:"5px"},children:n.abstract})})]})]})]})]})},_Z=()=>{const n=qn(EZ);return n.length==0?b.jsx("div",{children:"No Projects Found"}):b.jsx("div",{children:n.map((r,i)=>b.jsx(NZ,{project:r},`project_${i}`))})};const UO=()=>{const n=Io(),r=qn(SZ),[i,u]=M.useState([]),[l,d]=M.useState("0"),h=Array.from({length:r.last_page},(N,O)=>O),v=10,y={width:"50px",textAlign:"center"};M.useEffect(()=>{R()},[r]);const C=N=>{const O=parseInt(N);n(zw({current_page:N})),n(Gf(O))},x=N=>(event.preventDefault(),d("0"),C(N),!1),R=()=>{const N=[];if(r.last_page>v)if(r.current_page>4){N.push(1),N.push("spacer");for(var O=1;O>0;O--)r.current_page-O>1&&N.push(r.current_page-O);N.push(["current",r.current_page]);for(var O=1;O<2;O++)r.current_page+O<=r.last_page&&N.push(r.current_page+O);r.last_page-r.current_page>1&&(N.push("spacer"),N.push(r.last_page))}else[1,2,3,4,5].forEach(_=>{_==r.current_page?N.push(["current",_]):N.push(_)}),N.push("spacer"),N.push(r.last_page);else for(var O=1;O<=r.last_page;O++)O==r.current_page?N.push(["current",O]):N.push(O);u(N)},T=N=>{let O="";return typeof N=="object"?[N,O]=N:O=N,N=="spacer"?b.jsx("li",{className:"page-item disabled",children:b.jsx("span",{className:"page-link",style:y,children:". . ."})}):N=="current"?b.jsx("li",{className:"page-item active","aria-current":"page",children:b.jsx("span",{className:"page-link",style:y,children:O})}):b.jsx("li",{className:"page-item",children:b.jsx("button",{className:"page-link",style:y,onClick:()=>C(N),children:O})})},A=()=>b.jsx("li",{className:"page-item",children:b.jsxs("select",{className:"page-link",style:{...y,height:"100%"},value:l,onChange:N=>x(N.target.value),children:[b.jsx("option",{value:"0",children:"Go To"}),h.map(N=>b.jsx("option",{value:N+1,children:N+1},`page_option_${N}`))]})});return b.jsx("div",{children:b.jsx("nav",{"aria-label":"Pages for the table",children:b.jsxs("ul",{className:"pagination",children:[b.jsx("li",{className:`page-item ${r.current_page==1?"disabled":""}`,children:b.jsx("button",{className:"page-link",style:{width:"50px",textAlign:"center"},onClick:()=>C(r.current_page-1),disabled:r.current_page==1,"aria-label":"Previous Page Button",children:"<"})}),i.map((N,O)=>b.jsx(kr.Fragment,{children:T(N)},`page_${O}`)),r.last_page>v?A():"",b.jsx("li",{className:`page-item ${r.current_page==r.last_page?"disabled":""}`,children:b.jsx("button",{className:"page-link",style:y,onClick:()=>C(r.current_page+1),disabled:r.current_page==r.last_page,"aria-label":"Next Page Button",children:">"})})]})})})},OZ=({api_url:n})=>{const r=Io(),i=qn(xZ),u=qn(yZ),l=qn(wZ),d=b.jsx("div",{className:"loadingDiv",children:"Loading ..."});return M.useEffect(()=>{r(dZ())},[]),b.jsx("div",{className:"container-fluid",children:b.jsxs("div",{className:"row",children:[b.jsx("div",{className:"col-sm-3",children:b.jsx(IZ,{})}),b.jsxs("div",{className:"col-sm-9",children:[b.jsx("div",{className:"row",children:b.jsx("div",{className:"col",children:l?b.jsx(UO,{}):""})}),b.jsx("div",{className:"row",id:"projectListRow",children:b.jsx("div",{className:"col",children:i&&u?b.jsx(_Z,{}):d})}),b.jsx("div",{className:"row",children:b.jsx("div",{className:"col",children:l?b.jsx(UO,{scroll:"projects_browser_app"}):""})})]})]})})},AZ=n=>n.publications_store.publication,jZ=n=>n.publications_store.publication.doi,DZ=n=>n.publications_store.publication_types,Bk=n=>n.publications_store.publication.authors,kZ=n=>n.publications_store.tag_categories,MZ=n=>n.publications_store.projects,LZ=n=>n.publications_store.publication.tags,PZ=n=>n.publications_store.errors,zk=n=>n.publications_store.data_loaded,Hk=n=>n.publications_store.show_saved,YR=n=>n.publications_store.saving,FZ=n=>n.publications_store.modal,Uk=n=>n.publications_store.form_valid,$k=n=>!YR(n)&&zk(n)&&Uk(n)&&Gk(n)&&n.publications_store.projects.filter(r=>r.selected).length>0,Gk=n=>{const r=Bk(n);return r.length==0?!1:r.filter(i=>i.first_name==""||i.last_name=="").length==0},Wk=n=>({type:"UPDATE_PUBLICATION",payload:n}),VZ=n=>({type:"UPDATE_FIELD",payload:n}),Hw=n=>({type:"CHANGE_PUB_TYPE",payload:n}),BZ=n=>({type:"SET_PUBLICATION",payload:n}),zZ=()=>({type:"ADD_AUTHOR"}),HZ=n=>({type:"UPDATE_AUTHOR",payload:n}),UZ=n=>({type:"TOGGLE_REQUEST",payload:n}),Im=n=>({type:"UPDATE_ERRORS",payload:n}),Xk=n=>({type:"HIDE_ERROR",payload:n}),$Z=n=>({type:"UPDATE_SELECTED_TAGS",payload:n}),GZ=n=>({type:"DELETE_AUTHOR",payload:n}),WZ=n=>({type:"DATA_LOADED",payload:n}),Yk=n=>({type:"UPDATE_SHOW_SAVED",payload:n}),XZ=()=>({type:"RESET_STATE"}),KE=n=>({type:"UPDATE_SAVING",payload:n}),YZ=n=>({type:"SET_FORM_VALID",payload:n}),Zk=n=>({type:"SET_GRANT_NUMBER",payload:n}),ZZ=n=>({type:"ADD_PROJECT",payload:n}),hc={routes:{}},JZ=(n,r,i)=>{let u=!0;const l=[];for(const h of r)n[h]||(u=!1,l.push(h));const d=n.authors||[];for(const h of d)for(const v of i)h[v]||(u=!1,l.includes(v)||l.push(v));return{formValid:u,missingFields:l}},qZ=n=>n.length>0?b.jsxs("div",{role:"alert",children:[b.jsx("p",{children:"Please provide the following information before submitting:"}),b.jsx("ul",{children:n.map(r=>b.jsx("li",{children:QZ(r)},r))})]}):null;function QZ(n){return n.split("_").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" ")}const KZ=()=>async(n,r)=>{const i=r().publications_store.publication.doi,u=encodeURIComponent(i).replaceAll(".","%2E"),l="Unable to retrieve publication. Double check your DOI, or continue entering information manually.";fetch(`/publications/lookup?doi=${u}`).then(d=>d.json()).then(d=>{if(d.title!=""){let h=r().publications_store.publication_types.find(v=>v.citation_style_type==d.type);n(Hw(h?h.publication_type:"Other")),n(BZ(d))}else n(Im(l))},d=>{n(Im(l))})},e6=()=>async(n,r)=>{const i=r().publications_store.grant_number,u=hc.routes.publications_find_project_path();await fetch(`${u}?grant_number=${i}`).then(l=>l.json()).then(l=>{n(ZZ(l)),n(Zk(""))},()=>{n(Im("Unable to find a project with this grant number."))})},Jk=()=>async n=>{const r=/^\/requests/.test(window.location.pathname)?hc.routes.publication_path("new.json"):window.location.href+".json";await fetch(r).then(i=>i.json()).then(i=>{n(WZ(i))})},qk=()=>async(n,r)=>{const i=r().publications_store,u=i.projects.filter(T=>T.selected),l=Object.keys(i.selected_tags).map(T=>i.selected_tags[T]).flat(),d={...i.publication},h=i.errors,{formValid:v,missingFields:y}=JZ(d,["title","publication_year","publication_month"],["first_name","last_name"]);if(!v){h.length>0&&Array.from(h).forEach(A=>{n(Xk(A.id))});const T=qZ(y);n(Im(T));return}const C={authenticity_token:document.getElementsByName("authenticity_token")[0].value,publication:d,authors:d.authors.map(T=>({...T,order:0})),tags:l,projects:u};let x,R;d.publication_id?(x=hc.routes.publication_path(d.publication_id),R="PATCH"):(x=hc.routes.publications_path(),R="POST"),n(KE(!0)),await fetch(x,{method:R,headers:{"Content-Type":"application/json"},body:JSON.stringify(C)}).then(T=>{i.redirect?window.location.href=hc.routes.publications_path():(d.publication_id||(n(XZ()),n(Jk())),n(Yk(!0)),n(KE(!1)))},()=>{n(KE(!1)),n(Im("There was an error saving this publication."))})},t6=({doi:n,updatePublication:r,doiLookup:i})=>b.jsx("div",{className:"row mb-3",children:b.jsxs("div",{className:"col",children:[b.jsx("label",{htmlFor:"doi",className:"form-label",children:"DOI"}),b.jsxs("div",{className:"input-group",children:[b.jsx("input",{type:"text",className:"form-control",id:"doi",name:"publication[doi]","aria-label":"DOI Input and Search box","aria-describedby":"doi_button",value:n,onChange:u=>r(u.target.value)}),b.jsx("button",{className:"btn btn-primary",type:"button",id:"doi_button",onClick:()=>i(),children:"Lookup Publication"})]})]})}),n6=n=>({doi:jZ(n)}),r6=n=>({updatePublication:r=>n(Wk({key:"doi",value:r})),doiLookup:()=>n(KZ())}),a6=ds(n6,r6)(t6),i6=({author:n,authorKey:r,updateAuthor:i,deleteAuthor:u})=>{const l=v=>{i({key:v.target.name,value:v.target.value,idx:r})},d=v=>b.jsx("td",{children:b.jsx("input",{type:"text",className:"form-control",name:v,id:v,value:n[v],onChange:y=>l(y)})},`field_${v}`),h=["first_name","last_name","affiliation"];return b.jsxs("tr",{children:[h.map(v=>d(v)),b.jsx("td",{children:r!==0&&b.jsx("button",{className:"btn btn-sm btn-danger",onClick:()=>u(r),children:b.jsx("i",{className:"bi bi-trash"})})})]})},o6=n=>({updateAuthor:r=>n(HZ(r)),deleteAuthor:r=>n(GZ(r))}),$O=ds(null,o6)(i6),s6=({authors:n,addAuthor:r,authors_exist:i})=>{const u=n.length===0,l=()=>i?"":b.jsx("div",{className:"alert alert-danger",children:"You must add at least one author and each author must have a first and last name"});return b.jsxs("div",{children:[l(),b.jsxs("table",{className:"table",children:[b.jsx("thead",{children:b.jsxs("tr",{children:[b.jsx("th",{children:"First Name"}),b.jsx("th",{children:"Last Name"}),b.jsx("th",{children:"Affiliation"}),b.jsx("th",{})]})}),b.jsxs("tbody",{children:[n.map((d,h)=>b.jsx($O,{author:d,authorKey:h},`author_${h}`)),u&&b.jsx($O,{author:r()})]})]}),b.jsx("button",{className:"btn btn-primary mt-3",onClick:()=>r(),children:"Add Author"})]})},l6=n=>({authors:Bk(n),authors_exist:Gk(n)}),u6=n=>({addAuthor:()=>n(zZ())}),c6=ds(l6,u6)(s6),f6=({category:n,publication_tags:r,updateSelectedTags:i,index:u})=>{const l=M.useRef(null),d=()=>{const v=r.filter(y=>y.label==n.label)[0];return v?v.options:[]},h=v=>{i({category:n.label,tags:v})};return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"fw-bold mb-1",children:n.label}),b.jsx("div",{className:"mb-3",children:b.jsx(WR,{classNames:{control:v=>v.isFocused?"custom-select-selected":"border-grey-300"},defaultValue:d(),options:n.options,isMulti:!0,openMenuOnClick:!0,name:`tags_${u}`,inputId:`tags_${u}`,ref:l,closeMenuOnSelect:!1,onChange:h})})]})},d6=n=>({updateSelectedTags:r=>n($Z(r))}),p6=n=>({publication_tags:LZ(n)}),v6=ds(p6,d6)(f6),h6=({projects:n,toggleProject:r})=>{const i=l=>`list-group-item list-group-item-action clickable ${l.selected?"list-group-item-success":""}`,u=()=>n.filter(l=>l.selected).length>0;return b.jsx("div",{className:"row",children:b.jsxs("div",{className:"col",children:[u()?"":b.jsx("div",{className:"alert alert-danger",children:"You must select at least one project"}),b.jsx("div",{className:"list-group",children:n.map((l,d)=>b.jsxs("div",{className:i(l),onClick:()=>r(d),children:[l.grant_number,": ",l.title]},`project_${l.grant_number}`))})]})})},m6=n=>({projects:MZ(n)}),g6=n=>({toggleProject:r=>n(UZ(r))}),y6=ds(m6,g6)(h6),b6=({grant_number:n,setGrantNumber:r,grantSearch:i})=>b.jsx("div",{className:"row",children:b.jsxs("div",{className:"col",children:["If your project isn't listed above, you can manually add it by entering the grant number below.",b.jsxs("div",{className:"input-group mt-1",children:[b.jsx("input",{type:"text",className:"form-control",value:n,onChange:u=>r(u.target.value),placeholder:"Enter a grant number"}),b.jsx("button",{className:"btn btn-primary",onClick:()=>i(),children:"Find Project"})]})]})}),C6=n=>({setGrantNumber:r=>n(Zk(r)),grantSearch:()=>n(e6())}),x6=n=>({grant_number:n.publications_store.grant_number}),S6=ds(x6,C6)(b6),E6=({publication:n,updateField:r,publication_types:i,changePubType:u,updatePublication:l,tag_categories:d,savePublication:h,modal:v,save_enabled:y,setFormValid:C,form_valid:x})=>{const R=F=>{F.target.value.trim()==""?C(!1):C(!0),l({key:"title",value:F.target.value})},T=()=>n.fields.map((F,V)=>b.jsx("div",{className:"row mb-3",children:b.jsxs("div",{className:"col",children:[b.jsx("label",{htmlFor:`field_${F.csl_field_name}`,className:"form-label",children:F.name}),b.jsx("input",{type:"text",className:"form-control",name:`field_${F.csl_field_name}`,id:`field_${F.csl_field_name}`,value:F.field_value,onChange:H=>r({index:V,value:H.target.value})})]})},`field_${F.csl_field_name}`)),A=()=>{const F=new Date().getFullYear()+2;let V=1980;const H=[];for(;V<=F;)H.push(V++);const z=["January","February","March","April","May","June","July","August","September","October","November","December"],U=b.jsx("i",{className:"bi bi-asterisk text-danger"});return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"row mb-3",children:b.jsxs("div",{className:"col",children:[b.jsxs("label",{className:"form-label",htmlFor:"publication_title",children:["Title ",U]}),b.jsx("input",{name:"publication_title",id:"publication_title",type:"text",className:`form-control ${x?"":"is-invalid"}`,value:n.title,onChange:J=>R(J)})]})}),b.jsx("div",{className:"row mb-3",children:b.jsxs("div",{className:"col",children:[b.jsx("label",{className:"form-label",htmlFor:"publication_year",children:"Year Published"}),b.jsx("select",{name:"publication_year",id:"publication_year",className:"form-control",value:n.publication_year,onChange:J=>{l({key:"publication_year",value:J.target.value})},children:H.map(J=>b.jsx("option",{value:J,children:J},`year_${J}`))})]})}),b.jsx("div",{className:"row mb-3",children:b.jsxs("div",{className:"col",children:[b.jsx("label",{className:"form-label",htmlFor:"publication_month",children:"Month Published"}),b.jsx("select",{name:"publication_month",id:"publication_month",className:"form-control",value:n.publication_month,onChange:J=>{l({key:"publication_month",value:J.target.value})},children:z.map((J,q)=>b.jsx("option",{value:q+1,children:J},`month_${q}`))})]})})]})},N=b.jsxs("div",{className:"card",children:[b.jsx("div",{className:"card-header",children:b.jsx("h2",{children:"Publication Information"})}),b.jsxs("div",{className:"card-body",children:[b.jsx("p",{className:"mb-2",children:'Enter information about this publication below. If you have a DOI, you may use the "Lookup Publication" button to attempt to find this information automatically.'}),b.jsx(a6,{}),b.jsx("div",{className:"row mb-3",children:b.jsxs("div",{className:"col",children:[b.jsx("label",{htmlFor:"publication_type",className:"form-label",children:"Publication Type"}),b.jsx("select",{name:"publication[publication_type]",id:"publication_type",className:"form-control",value:n.publication_type,onChange:F=>u(F.target.value),children:i.map(F=>b.jsx("option",{value:F.publication_type,children:F.publication_type},`pub_type_${F.type_id}`))})]})}),A(),T()]})]}),O=b.jsxs("div",{className:"card mt-3",children:[b.jsxs("div",{className:"card-header d-flex",children:[b.jsx("h2",{children:"Authors"}),b.jsxs(Hp,{children:[`Add authors by clicking the "Add Authors" button below and entering the author's details. You may also remove authors by clicking the `,b.jsx("i",{className:"bi bi-trash fw-bold text-danger"})," ","button"]})]}),b.jsx("div",{className:"card-body",children:b.jsx(c6,{})})]}),_=b.jsxs("div",{className:"card mt-3",children:[b.jsxs("div",{className:"card-header d-flex",children:[b.jsx("h2",{children:"Tags"}),b.jsx(Hp,{children:"Add related tags from the lists below. You may choose multiple tags per category."})]}),b.jsx("div",{className:"card-body",children:d.map((F,V)=>b.jsx(v6,{index:V,category:F},`tc_${V}`))})]}),L=b.jsxs("div",{className:"card mt-3",children:[b.jsxs("div",{className:"card-header d-flex",children:[b.jsx("h2",{children:"Associated Projects"}),b.jsx(Hp,{children:"Click/Tap each project that this publication is related to."})]}),b.jsxs("div",{className:"card-body",children:[b.jsx(y6,{}),b.jsx("hr",{}),b.jsx(S6,{})]})]});return b.jsxs(b.Fragment,{children:[N,O,_,L,v?null:b.jsx("p",{className:"mt-3",children:b.jsx("button",{onClick:()=>h(),className:"btn btn-success",disabled:!y,children:"Save Publication"})})]})},w6=n=>({publication:AZ(n),publication_types:DZ(n),tag_categories:kZ(n),saving:YR(n),modal:FZ(n),save_enabled:$k(n),form_valid:Uk(n)}),R6=n=>({updateField:r=>n(VZ(r)),changePubType:r=>n(Hw(r)),updatePublication:r=>n(Wk(r)),savePublication:()=>n(qk()),setFormValid:r=>n(YZ(r))}),T6=ds(w6,R6)(E6),I6=({errors:n,hideError:r})=>b.jsx(b.Fragment,{children:n.map(i=>b.jsxs("div",{className:"alert alert-danger alert-dismissible sticky-top",children:[i.message,b.jsx("button",{type:"button",className:"btn-close","aria-label":"Close",onClick:()=>r(i.id)})]},`err_${i.id}`))}),N6=n=>({errors:PZ(n)}),_6=n=>({hideError:r=>n(Xk(r))}),O6=ds(N6,_6)(I6),A6=({show_saved:n,updateShowSaved:r})=>{const i=b.jsxs("div",{className:"alert alert-success alert-dismissible sticky-top",children:["Publication Saved Successfully!",b.jsx("button",{type:"button",className:"btn-close","aria-label":"Close",onClick:()=>r(!1)})]});return n?i:b.jsx(b.Fragment,{})},j6=n=>({show_saved:Hk(n)}),D6=n=>({updateShowSaved:r=>n(Yk(r))}),k6=ds(j6,D6)(A6),M6=({getData:n,data_loaded:r})=>(M.useEffect(()=>{n()},[]),b.jsxs(b.Fragment,{children:[b.jsx(k6,{}),b.jsx(O6,{}),r?b.jsx(T6,{}):b.jsx(Mm,{})]})),L6=n=>({data_loaded:zk(n)}),P6=n=>({getData:()=>n(Jk())}),Qk=ds(L6,P6)(M6),F6=({saving:n,savePublication:r,showSaved:i,updatePublications:u,save_enabled:l})=>{const[d,h]=M.useState(!1);return M.useEffect(()=>{!n&&i&&u()},[n,i]),b.jsxs(b.Fragment,{children:[b.jsxs(Ln,{size:"xl",show:d,onHide:()=>h(!1),scrollable:!0,children:[b.jsx(Ln.Header,{closeButton:!0,children:b.jsx(Ln.Title,{children:"Add Publication"})}),b.jsx(Ln.Body,{children:b.jsx(Qk,{})}),b.jsx(Ln.Footer,{children:b.jsxs("div",{className:"d-flex",children:[b.jsx("button",{type:"button",className:"btn btn-danger me-2",onClick:()=>h(!1),children:"Cancel"}),b.jsx("button",{type:"button",className:"btn btn-primary",onClick:()=>{r(),h(!1)},children:"Save Publication"})]})})]}),b.jsx("button",{type:"button",className:"btn btn-primary",onClick:()=>h(!0),children:"Add a New Publication"})]})},V6=n=>({saving:YR(n),showSaved:Hk(n),save_enabled:$k(n)}),B6=n=>({savePublication:()=>n(qk())}),z6=ds(V6,B6)(F6),H6=({usernames:n=[],publication_ids:r=[]})=>{const[i,u]=M.useState(n),[l,d]=M.useState(r),[h,v]=M.useState([]),y=M.useRef(i),C=O=>{y.current=O,u(O)},x=async()=>{const _=await(await fetch(hc.routes.search_publications_path({usernames:i}))).json();v(_)};M.useEffect(()=>{x()},[i]),M.useEffect(()=>{addEventListener("requestAddRole",O=>C([...y.current,O.detail.username])),addEventListener("requestRemoveRole",O=>C(y.current.filter(_=>_!=O.detail.username)))},[]);let R=!1,T=!1;const A=h.map(O=>{const _=l.includes(O.publication_id);R=R||_,T=T||!_;const L=new Date(O.publication_year,O.publication_month-1);return b.jsxs("tr",{children:[b.jsx("td",{children:b.jsx("input",{type:"checkbox",name:"publication_ids[]",value:O.publication_id,checked:_,onChange:()=>d(_?l.filter(F=>F!=O.publication_id):[...l,O.publication_id])})}),b.jsx("td",{children:O.title}),b.jsx("td",{children:O.authors.map(F=>`${F.first_name} ${F.last_name}`).join(", ")}),b.jsx("td",{children:O.publication_type}),b.jsxs("td",{children:[L.toLocaleString("default",{month:"short"})," ",O.publication_year]})]},O.publication_id)}),N=`${T?"Select":"Deselect"} all`;return b.jsxs("div",{className:"publications-select",children:[b.jsxs("table",{className:"table",children:[b.jsx("thead",{children:b.jsxs("tr",{children:[b.jsx("th",{children:b.jsx("input",{type:"checkbox",value:"","aria-label":N,title:N,checked:R&&!T,onChange:()=>d(T?h.map(O=>O.publication_id):[]),ref:O=>{O&&(O.indeterminate=R&&T)}})}),b.jsx("th",{children:"Title"}),b.jsx("th",{children:"Authors"}),b.jsx("th",{children:"Type"}),b.jsx("th",{children:"Date"})]})}),b.jsx("tbody",{children:A})]}),b.jsx(z6,{updatePublications:x})]})},U6=()=>`${Math.random().toString(36).slice(2)}`,Uw=document.querySelector("#publications-react"),$6=Uw?Uw.dataset:{},GO={publication_types:[],tag_categories:[],publication:{},projects:[],errors:[],selected_tags:{},data_loaded:!1,saving:!1,show_saved:!1,redirect:$6.redirect||!1,modal:Uw==null,form_valid:!1,grant_number:""},G6=(n=GO,r)=>{const{type:i,payload:u}=r;switch(i){case"UPDATE_FIELD":return So(n,d=>(d.publication.fields[u.index].field_value=u.value,d));case"CHANGE_PUB_TYPE":return So(n,d=>{let h=d.publication_types.find(v=>v.publication_type==u).fields;return h.forEach(v=>{const y=d.publication.fields.find(C=>C.csl_field_name==v.csl_field_name);y&&(v.value=y.value)}),d.publication.publication_type=u,d.publication.fields=h,d});case"UPDATE_PUBLICATION":return{...n,publication:{...n.publication,[u.key]:u.value}};case"SET_PUBLICATION":return So(n,d=>(d.publication.fields.forEach(h=>{h.field_value=u[h.csl_field_name]}),Object.keys(d.publication).forEach(h=>{u[h]&&(d.publication[h]=u[h])}),d.form_valid=u.title.trim()!="",d));case"ADD_AUTHOR":{const l={portal_username:"",first_name:"",middle_name:"",last_name:"",prefix:"",suffix:"",initials:"",affiliation:"",hash:{}};return So(n,h=>{h.publication.authors.push(l)})}case"UPDATE_AUTHOR":return So(n,d=>{d.publication.authors[u.idx][u.key]=u.value});case"TOGGLE_TAG":return So(n,d=>{let h=d.tag_categories.find(v=>v.publication_tags_category_id==u.publication_tags_category_id);h.tags[u.idx].selected=!h.tags[u.idx].selected});case"TOGGLE_REQUEST":return So(n,d=>(d.projects[u].selected=!d.projects[u].selected,d));case"UPDATE_ERRORS":{const l={id:U6(),message:u};return{...n,errors:[...n.errors,l]}}case"HIDE_ERROR":{const l=n.errors.filter(d=>d.id!=u);return{...n,errors:l}}case"UPDATE_SELECTED_TAGS":return So(n,d=>{const h=u.tags.map(v=>v.value);return d.selected_tags[u.category]=h,d});case"DELETE_AUTHOR":return So(n,d=>(d.publication.authors.splice(u,1),d));case"DATA_LOADED":return So(n,d=>(d.publication=u.publication,d.form_valid=u.publication.title.trim()!="",d.publication.authors.forEach(h=>{h.affiliation||(h.affiliation="")}),d.publication_types=u.publication_types,d.tag_categories=u.tag_categories,d.projects=u.publication.projects,u.publication.tags.forEach(h=>d.selected_tags[h.label]=h.options.map(v=>v.value)),d.data_loaded=!0,d));case"UPDATE_SHOW_SAVED":return{...n,show_saved:u};case"UPDATE_SAVING":return{...n,saving:u};case"RESET_STATE":return GO;case"SET_FORM_VALID":return{...n,form_valid:u};case"SET_GRANT_NUMBER":return{...n,grant_number:u};case"ADD_PROJECT":return{...n,projects:[...n.projects,u]};default:return n}},W6={catalogs:{},filteredResources:[],filters:[],hasErrors:!1,onRamps:!1,resources:[],resourcesLoaded:!1,resourceSorting:{"NSF Capacity Resources":1,"NSF Innovative Testbeds":2,"Other NSF-funded Resources":3,"Services and Support":4}},r0=Di("resourceCatalog/getResources",async(n,{dispatch:r})=>{r(WO(!1));let i=[];n.catalogSources?i=n.catalogSources:i.push({...n,catalogLabel:"Default"}),n.onRamps&&i.push({apiUrl:"https://allocations.access-ci.org/resources.json",catalogLabel:"ACCESS",allowedCategories:[],allowedFilters:[],allowedResources:[],excludedCategories:["Resource Category"],excludedFilters:[],excludedResources:["ACCESS Credits"]});const u=await Promise.all(i.map(async l=>{const h=await(await fetch(l.apiUrl)).json();return{...l,data:h}}));r(J6({data:u,params:n})),r(WO(!0))});Di("resourceCatalog/getResources",async(n,{dispatch:r})=>{r(Q6(n)),r(eM())});const X6=n=>{const r=[],i=n.filter(u=>u.features.filter(l=>l.selected).length>0);return n.forEach(u=>{u.features.forEach(l=>{l.selected&&r.push(l.featureId)})}),i.map(u=>({...u,features:u.features.filter(l=>l.selected)}))},Y6=n=>{const r={},i={};let u={};return n.forEach(d=>{r[d.catalogLabel]={...d,resourceIds:[],selected:!1,catalogId:d.catalogLabel.replace(/[^(A-z)]/,"")},delete r[d.catalogLabel].data,d.data.forEach(h=>{if($w(d.allowedResources,d.excludedResources,h.resourceName)){const{categories:v,formattedResource:y}=Z6(d,h,u);i[h.resourceId]=y,r[d.catalogLabel].resourceIds.push(h.resourceId),u=v}})}),{resources:Object.keys(i).map(d=>i[d]),catalogs:r,categories:u}},$w=(n,r,i)=>!n&&!r||n&&n.length==0&&r&&r.length==0?!0:n&&n.length>0?n.find(u=>u==i):r&&r.length>0?!r.find(u=>u==i):!0,Z6=(n,r,i)=>{const u=[];let l="";r.featureCategories.filter(v=>v.categoryIsFilter).forEach(v=>{const y=v.categoryId;v.categoryName=="ACCESS Resource Grouping"?l=v.features[0].name:(!i[y]&&$w(n.allowedCategories,n.excludedCategories,v.categoryName)&&(i[y]={categoryId:y,categoryName:v.categoryName,categoryDescription:v.categoryDescription,features:{}}),v.features.forEach(C=>{const x={featureId:C.featureId,name:C.name,description:C.description,categoryId:y,selected:!1},R=$w(n.allowedFilters,n.excludedFilters,x.name);R&&u.push(x),i[y]&&R&&!i[y].features[C.featureId]&&(i[y].features[C.featureId]=x)}))});const d=u.map(v=>v.name).sort((v,y)=>v>y);return{formattedResource:{...r,resourceName:r.resourceName.trim(),features:d,featureIds:u.map(v=>v.featureId),sortCategory:l},categories:i}},Kk=D0({name:"resourceCatalog",initialState:W6,reducers:{handleResponse:(n,{payload:r})=>{const i=r.data,{resources:u,catalogs:l,categories:d}=Y6(i);n.catalogs=l,n.onRamps=r.params.onRamps;for(const h in d){const v=d[h],y=[];for(const C in v.features)y.push(v.features[C]);n.filters.push({...v,features:y.sort((C,x)=>C.name>x.name)})}n.filters=n.filters.sort((h,v)=>h.categoryName.localeCompare(v.categoryName)),n.resources=u.sort((h,v)=>h.resourceName.localeCompare(v.resourceName)).sort((h,v)=>n.resourceSorting[h.sortCategory]>n.resourceSorting[v.sortCategory]),n.filteredResources=[...n.resources],n.resourcesLoaded=!0},resetFilters:n=>{n.filters.forEach(r=>{r.features.forEach(i=>i.selected=!1)}),n.filteredResources=[...n.resources]},setResourcesLoaded:(n,{payload:r})=>{n.resourcesLoaded=r},toggleCatalog:(n,{payload:r})=>{const{catalog:i,selected:u}=r;n.catalogs[i.catalogLabel].selected=u},toggleFilter:(n,{payload:r})=>{if(r){const h=r,y=n.filters.find(C=>C.categoryId==h.categoryId).features.find(C=>C.featureId==h.featureId);y.selected=!y.selected}const i=X6(n.filters);let u=[];if(i.length>0){const h=i.map(v=>v.features.map(y=>y.featureId));n.resources.forEach(v=>{let y=0;h.forEach(C=>{let x=!1;v.featureIds.forEach(R=>{C.indexOf(R)>=0&&(x=!0)}),x&&(y+=1)}),y>=h.length&&u.push(v)})}else u=n.resources;const l=Object.keys(n.catalogs).map(h=>n.catalogs[h]),d=l.filter(h=>h.selected);if(d.length>0&&d.length<l.length){const h=d.map(v=>v.resourceIds).flat();u=u.filter(v=>h.indexOf(v.resourceId)>=0)}n.filteredResources=u}},extraReducers:n=>{n.addCase(r0.pending,r=>{}).addCase(r0.fulfilled,(r,i)=>{}).addCase(r0.rejected,(r,i)=>{r.hasErrors=!0,console.log(i.error)})}}),{handleResponse:J6,processData:Q8,resetFilters:q6,setResourcesLoaded:WO,toggleCatalog:Q6,toggleFilter:eM}=Kk.actions,tM=n=>n.resourceCatalog.catalogs,K6=n=>n.resourceCatalog.filters,e8=n=>n.resourceCatalog.hasErrors,t8=n=>n.resourceCatalog.resourcesLoaded,n8=n=>n.resourceCatalog.filteredResources,r8=Kk.reducer,a8="_access_1yrq0_2",i8="_resourceName_1yrq0_6",o8="_description_1yrq0_11",s8="_filterBar_1yrq0_15",l8="_cardBg_1yrq0_20",u8="_active_1yrq0_25",c8="_plainButton_1yrq0_30",f8="_btnSecondary_1yrq0_40",d8="_filtersHidden_1yrq0_51",p8="_filtersVisible_1yrq0_57",Eo={access:a8,resourceName:i8,description:o8,filterBar:s8,cardBg:l8,active:u8,plainButton:c8,btnSecondary:f8,filtersHidden:d8,filtersVisible:p8},v8=({resource:n})=>{const[r,i]=M.useState(!0),u=C=>{const x={"CPU Compute":"cpu-fill","GPU Compute":"gpu-card",Cloud:"cloud-fill","Commercial Cloud":"cloud-fill",Storage:"database-fill","Service / Other":"journal","Innovative / Novel Compute":"pc"};return x[C]?b.jsx("i",{title:C,className:`bi bi-${x[C]} me-2 `},`${n.resourceId}_${x[C]}`):""},l=()=>b.jsxs("span",{className:"float-end",children:[n.features.map(C=>u(C)),n.resourceType]}),d=C=>C.length==0?"":b.jsx(b.Fragment,{children:C.map((x,R)=>b.jsx("span",{className:"badge text-bg-secondary me-2",children:x},`feature_${n.resourceId}_${R}`))}),h=()=>{let C=n.resourceDescription;return C&&C!=""?(Eo.plainButton,b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"row",children:b.jsxs("div",{className:"col fw-bold",children:["About ",n.resourceName]})}),b.jsx("div",{className:"row mb-3",children:b.jsxs("div",{className:"col ",children:[b.jsx("div",{className:Eo.description,dangerouslySetInnerHTML:{__html:C}}),""]})})]})):""},v=()=>n.recommendedUse&&n.recommendedUse!=""?b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"row",children:b.jsx("div",{className:"col fw-bold",children:"Recommended Use"})}),b.jsx("div",{className:"row mb-3",children:b.jsx("div",{className:"col",children:b.jsx("div",{className:Eo.description,dangerouslySetInnerHTML:{__html:n.recommendedUse}})})})]}):"",y=()=>Eo.cardBg;return b.jsx(b.Fragment,{children:b.jsx("div",{className:"row",children:b.jsx("div",{className:"col",children:b.jsxs("div",{className:"card mb-3",children:[b.jsxs("div",{className:`card-header ${y()}`,children:[b.jsx("span",{className:"",children:n.resourceName}),l()]}),b.jsxs("div",{className:"card-body",children:[b.jsx("div",{className:"row mb-3",children:b.jsx("div",{className:"col",children:d(n.features)})}),v(),h()]}),b.jsx("div",{className:"card-footer",children:b.jsxs("a",{target:"_blank",href:n.userGuideUrl,className:"btn btn-info me-2 fw-bold",children:["System Info ",b.jsx("i",{className:"bi bi-box-arrow-up-right"})]})})]})})})})},h8=({filter:n})=>{const r=Io(),i=()=>{r(eM(n))};return b.jsx("div",{className:"row",children:b.jsx("div",{className:"col",children:b.jsxs("div",{className:"form-check",children:[b.jsx("label",{className:"form-check-label",htmlFor:`filter_${n.featureId}`,children:n.name}),b.jsx("input",{className:"form-check-input",type:"checkbox",value:n.featureId,id:`filter_${n.featureId}`,checked:n.selected,onChange:i})]})})})},m8=({category:n})=>b.jsx("div",{className:"row",children:b.jsxs("div",{className:"col",children:[b.jsx("div",{className:"fw-bold mb-1 mt-1",children:b.jsx("abbr",{title:n.categoryDescription,children:n.categoryName})}),n.features.map(r=>b.jsx(h8,{filter:r},r.featureId))]})}),g8=({onReset:n})=>{const r=Io(),i=qn(tM),u=qn(K6),l=u.filter(d=>d.features.filter(h=>h.selected).length>0);return Object.keys(i).map(d=>i[d]),b.jsxs(b.Fragment,{children:[u.map(d=>b.jsx(m8,{category:d},d.categoryId)),b.jsx("button",{className:"btn btn-warning mt-2 mb-2",onClick:()=>r(q6()),disabled:l.length==0,children:"Reset Filters"}),b.jsx("button",{className:"btn btn-outline-primary ms-3 mt-2 mb-2",onClick:n,children:"Close Menu"})]})},y8=()=>{const[n,r]=M.useState(!1),i=M.useRef(null),u=()=>{const l=i.current;n?(l.style.height="0px",l.classList.remove(Eo.filtersVisible),l.classList.add(Eo.filtersHidden)):(l.style.height=l.scrollHeight+"px",l.classList.remove(Eo.filtersHidden),l.classList.add(Eo.filtersVisible)),r(!n)};return b.jsx("div",{className:Eo.filterBar,children:b.jsx("div",{className:"row mb-2",children:b.jsx("div",{className:"col pt-2 pb-2",children:b.jsxs("div",{className:"p-1 pb-0 border-bottom bg-white shadow",children:[b.jsxs("button",{className:"btn btn-outline-primary mb-1 mt-1",type:"button",onClick:u,children:[b.jsx("i",{className:"bi bi-filter"})," Filters"]}),b.jsx("div",{className:`${Eo.filtersHidden} pe-2 ps-2`,id:"filtersList",ref:i,children:b.jsx(g8,{onReset:u})})]})})})})},b8=()=>{const n=qn(n8);return n.length==0?b.jsx("div",{className:"fw-bold",children:"No Resources Match Your Filters"}):b.jsx("div",{className:"card shadow",children:b.jsxs("div",{className:"card-body",children:[b.jsx(y8,{}),n.map(r=>b.jsx(v8,{resource:r},r.resourceId))]})})},C8=({baseUrl:n})=>b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"row",children:b.jsx("div",{className:"col d-flex",children:b.jsx("img",{alt:"Access Logo",style:{height:"75px"},src:`${n}/access_logo.png`})})}),b.jsx("div",{className:"row",children:b.jsx("div",{className:"col",children:b.jsx("h3",{className:"border-bottom",children:"NSF ACCESS Resources"})})}),b.jsx("div",{className:"row",children:b.jsxs("div",{className:"col",children:[b.jsx("h4",{children:"Discover the nationwide NSF cyberinfrastructure"}),b.jsx("p",{children:"Need advanced computing and storage options for your research or classroom? The ACCESS program has been established and funded by the U.S. National Science Foundation to help you - the nation's researchers and educators - to use some of the country's most advanced computing systems and services - at no cost to you."}),b.jsx("p",{children:"Thousands of researchers, instructors, and students from institutions large and small use ACCESS-integrated resources every year. With more than 30 resources from more than 15 resource providers, there's bound to be a resource for you, your lab, or your class."}),b.jsx("p",{children:"Explore the resource catalog below - filter the list to discover the resources that have the features or services to accelerate your activities. The System Info button will take you to the resource's documentation for all the details."}),b.jsx("p",{children:'Ready to begin? Click the "Get Your First Project" button and join the ACCESS community!'}),b.jsx("p",{children:b.jsxs("a",{href:"https://allocations.access-ci.org/get-your-first-project",target:"_blank",className:`btn btn-secondary fw-bold ${Eo.btnSecondary}`,children:["Get Your First Project ",b.jsx("i",{className:"bi bi-box-arrow-up-right"})]})}),b.jsxs("p",{children:["If you have feedback for ACCESS, please complete our",b.jsx("a",{target:"_blank",href:"https://docs.google.com/forms/d/e/1FAIpQLSdn-SXokNB_5s0r2SA_S9ZIZWZFlVPRD2OHepTH5HY2YND_zw/viewform",children:" Feedback Form"}),".",b.jsx("br",{}),"If you have questions, please",b.jsx("a",{target:"_blank",href:"https://support.access-ci.org/user/login?destination=/open-a-ticket",children:" open a help ticket"}),"."]})]})})]}),x8=({catalogSources:n=[],onRamps:r=!1,baseUrl:i})=>{const u=Io(),l=qn(t8),d=qn(e8),h=qn(tM),v=Object.keys(h).map(C=>h[C]);M.useEffect(()=>{u(r0({catalogSources:n,onRamps:r}))},[]);const y=()=>r&&v.length>1?b.jsx(b.Fragment,{children:v.filter(C=>C.catalogLabel!="ACCESS").map((C,x)=>b.jsx("div",{className:"row mb-3",children:b.jsxs("div",{className:"col",children:[b.jsxs("h4",{className:"border-bottom",children:["About ",C.catalogLabel]}),b.jsx("div",{dangerouslySetInnerHTML:{__html:C.description}})]})},`catalog_${x}`))}):"";return d?b.jsx("div",{className:"row",children:b.jsx("div",{className:"col text-center mt-2",children:b.jsx("h4",{children:"Unable to Load Resources"})})}):l?b.jsxs("div",{className:`container mt-3 ${Eo.access}`,children:[r?b.jsx(C8,{baseUrl:i}):"",y(),b.jsx("div",{className:"row",children:b.jsx("div",{className:"col",children:b.jsx(b8,{})})})]}):b.jsx(Mm,{})},S8={filters:[],resources:[],filteredResources:[],resourcesLoaded:!1,hasErrors:!1,resourceSorting:{"NSF Capacity Resources":1,"NSF Innovative Testbeds":2,"Other NSF-funded Resources":3,"Services and Support":4}},a0=Di("resourceCatalog/getResources",async(n,{dispatch:r})=>{const u=await(await fetch(n.apiUrl)).json();r(w8({data:u,params:n}))}),E8=n=>{const r=[],i=n.filter(u=>u.features.filter(l=>l.selected).length>0);return n.forEach(u=>{u.features.forEach(l=>{l.selected&&r.push(l.featureId)})}),i.map(u=>({...u,features:u.features.filter(l=>l.selected)}))},XO=(n,r,i)=>{if(n.length==0&&r.length==0)return!0;if(n.length>0)return n.find(u=>u==i);if(r.length>0)return!r.find(u=>u==i)},nM=D0({name:"resourceCatalog",initialState:S8,reducers:{handleResponse:(n,{payload:r})=>{const i=r.data,u=r.params.excludedCategories,l=r.params.excludedFilters,d=r.params.excludedResources,h=r.params.allowedCategories,v=r.params.allowedFilters,y=[],C={};i.filter(x=>!d.includes(x.resourceName)).forEach(x=>{const R=[];let T="";x.featureCategories.filter(N=>N.categoryIsFilter).forEach(N=>{const O=N.categoryId;N.categoryName=="ACCESS Resource Grouping"?T=N.features[0].name:(!C[O]&&XO(h,u,N.categoryName)&&(C[O]={categoryId:O,categoryName:N.categoryName,categoryDescription:N.categoryDescription,features:{}}),N.features.forEach(_=>{const L={featureId:_.featureId,name:_.name,description:_.description,categoryId:O,selected:!1},F=XO(v,l,L.name);F&&R.push(L),C[O]&&F&&!C[O].features[_.featureId]&&(C[O].features[_.featureId]=L)}))});const A={resourceName:x.resourceName,resourceId:x.resourceId,resourceType:x.resourceType,organization:x.organization,units:x.units,userGuideUrl:x.userGuideUrl,resourceDescription:x.resourceDescription,description:x.description,recommendedUse:x.recommendedUse,features:R.map(N=>N.name).sort((N,O)=>N>O),featureIds:R.map(N=>N.featureId),sortCategory:T};y.push(A)});for(const x in C){const R=C[x],T=[];for(const A in R.features)T.push(R.features[A]);n.filters.push({...R,features:T.sort((A,N)=>A.name>N.name)})}h.length>0?n.filters=n.filters.sort((x,R)=>h.indexOf(x.categoryName)>h.indexOf(R.categoryName)):n.filters=n.filters.sort((x,R)=>x.categoryName.localeCompare(R.categoryName)),n.resources=y.sort((x,R)=>x.resourceName.localeCompare(R.resourceName)).sort((x,R)=>n.resourceSorting[x.sortCategory]>n.resourceSorting[R.sortCategory]),n.filteredResources=[...n.resources],n.resourcesLoaded=!0},resetFilters:n=>{n.filters.forEach(r=>{r.features.forEach(i=>i.selected=!1)}),n.filteredResources=[...n.resources]},toggleFilter:(n,{payload:r})=>{const i=r,l=n.filters.find(h=>h.categoryId==i.categoryId).features.find(h=>h.featureId==i.featureId);l.selected=!l.selected;const d=E8(n.filters);if(d.length>0){const h=[],v=d.map(y=>y.features.map(C=>C.featureId));n.resources.forEach(y=>{let C=0;v.forEach(x=>{let R=!1;y.featureIds.forEach(T=>{x.indexOf(T)>=0&&(R=!0)}),R&&(C+=1)}),C>=v.length&&h.push(y)}),n.filteredResources=h}else n.filteredResources=[...n.resources]}},extraReducers:n=>{n.addCase(a0.pending,r=>{}).addCase(a0.fulfilled,(r,i)=>{}).addCase(a0.rejected,(r,i)=>{r.hasErrors=!0,console.log(i.error)})}}),{handleResponse:w8,processData:K8,resetFilters:R8,toggleFilter:T8}=nM.actions,I8=n=>n.resourceCatalog.hasErrors,N8=n=>n.resourceCatalog.resourcesLoaded,_8=n=>n.resourceCatalog.filters,O8=n=>n.resourceCatalog.filteredResources,A8=nM.reducer,j8=({resource:n})=>{const r=u=>u.length==0?"":b.jsx("ul",{children:u.map((l,d)=>b.jsx("li",{children:l},`feature_${n.resourceId}_${d}`))}),i=(u,l)=>l&&l!=""?b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"row",children:b.jsx("div",{className:"col fw-bold",children:u})}),b.jsx("div",{className:"row mb-3",children:b.jsx("div",{className:"col",dangerouslySetInnerHTML:{__html:l}})})]}):"";return b.jsxs(ss.Item,{eventKey:n.resourceId,children:[b.jsx(ss.Header,{children:n.resourceName}),b.jsxs(ss.Body,{children:[b.jsx("table",{className:"table",children:b.jsxs("tbody",{children:[b.jsxs("tr",{children:[b.jsx("td",{className:"fw-bold",children:"Resource Type:"}),b.jsx("td",{children:n.resourceType})]}),b.jsxs("tr",{children:[b.jsx("td",{className:"fw-bold",children:"Organization:"}),b.jsx("td",{children:n.organization})]}),b.jsxs("tr",{children:[b.jsx("td",{className:"fw-bold",children:"Units:"}),b.jsx("td",{children:n.units})]}),b.jsxs("tr",{children:[b.jsx("td",{className:"fw-bold",children:"User Guide:"}),b.jsx("td",{children:n.userGuideUrl==""?"":b.jsx("a",{href:n.userGuideUrl,target:"_blank",rel:"noreferrer",children:"Link to User Guide"})})]}),b.jsxs("tr",{children:[b.jsx("td",{className:"fw-bold",children:"Features Available:"}),b.jsx("td",{children:r(n.features)})]})]})}),i("Resource Description",n.resourceDescription),i("Allocations Description",n.description),i("Recommended Use",n.recommendedUse)]})]})},D8=()=>{const n=qn(O8);return n.length==0?b.jsx("div",{className:"fw-bold",children:"No Resources Match Your Filters"}):b.jsxs("div",{children:[b.jsx("h4",{className:"mb-0",children:"Resources"}),b.jsx(ss,{children:n.map(r=>b.jsx(j8,{resource:r},r.resourceId))})]})},k8=({filter:n})=>{const r=Io(),i=()=>{r(T8(n))};return b.jsx("div",{className:"row",children:b.jsx("div",{className:"col",children:b.jsxs("div",{className:"form-check",children:[b.jsx("label",{className:"form-check-label",htmlFor:`filter_${n.featureId}`,children:n.name}),b.jsx("input",{className:"form-check-input",type:"checkbox",value:n.featureId,id:`filter_${n.featureId}`,checked:n.selected,onChange:i})]})})})},M8=({category:n})=>b.jsx("div",{className:"row",children:b.jsxs("div",{className:"col",children:[b.jsx("div",{className:"fw-bold mb-1 mt-1",children:b.jsx("abbr",{title:n.categoryDescription,children:n.categoryName})}),n.features.map(r=>b.jsx(k8,{filter:r},r.featureId))]})}),L8=()=>{const n=Io(),r=qn(_8),i=r.filter(u=>u.features.filter(l=>l.selected).length>0);return b.jsxs("div",{children:[b.jsx("h4",{className:"mb-0",children:"Filters"}),r.map(u=>b.jsx(M8,{category:u},u.categoryId)),b.jsx("button",{className:"btn btn-warning mt-2 mb-2",onClick:()=>n(R8()),disabled:i.length==0,children:"Reset Filters"})]})},P8=({apiUrl:n,excludedCategories:r=[],excludedFilters:i=[],excludedResources:u=[],allowedCategories:l=[],allowedFilters:d=[]})=>{const h=Io(),v=qn(N8),y=qn(I8);return M.useEffect(()=>{h(a0({apiUrl:n,excludedCategories:r,excludedFilters:i,excludedResources:u,allowedCategories:l,allowedFilters:d}))},[]),y?b.jsx("div",{className:"row",children:b.jsx("div",{className:"col text-center mt-2",children:b.jsx("h4",{children:"Unable to Load Resources"})})}):v?b.jsx(b.Fragment,{children:b.jsxs("div",{className:"row mt-3",children:[b.jsx("div",{className:"col-sm-4",children:b.jsx(L8,{})}),b.jsx("div",{className:"col-sm-8",children:b.jsx(D8,{})})]})}):b.jsx(Mm,{})};function F8(n,{bootstrapFonts:r=!0,bootstrapVariables:i=!0,access:u=!1,baseUrl:l=null}={}){const d=n.attachShadow({mode:"open"}),h=document.createElement("div"),v=document.createElement("div"),y=document.createElement("div"),C=document.createElement("div"),x=document.createElement("link"),R=document.createElement("link"),T=document.createElement("link");return l=l??(typeof document>"u"?require("url").pathToFileURL(__filename).href:_N&&_N.src||new URL("xras-ui.cjs",document.baseURI).href).replace(/\/[^/]+$/,""),x.rel="stylesheet",x.href=`${l}/bootstrap.css`,R.rel="stylesheet",R.href=`${l}/xras-ui.css`,T.rel="stylesheet",T.href=`${l}/access.css`,y.appendChild(C),v.appendChild(y),h.appendChild(v),d.appendChild(x),d.appendChild(R),d.appendChild(T),d.appendChild(h),h.classList.add("bootstrap"),i&&v.classList.add("bootstrap-variables"),r&&(y.classList.add("bootstrap-fonts"),y.setAttribute("data-bs-theme","light")),C}function V8({target:n}){us.createRoot(n).render(b.jsx(UU,{}))}function B8({target:n,username:r,routes:i}){i&&(Nn.routes=i);const u=Om({reducer:{api:b$}});us.createRoot(n).render(b.jsx(Qp,{store:u,children:b.jsx(fZ,{username:r})}))}function z8({target:n,apiUrl:r}){const i=Om({reducer:{projectsBrowser:TZ},preloadedState:{projectsBrowser:{...Pk,apiUrl:r}}});us.createRoot(n).render(b.jsx(Qp,{store:i,children:b.jsx(OZ,{})}))}function rM(){return Om({reducer:{publications_store:G6}})}function H8({target:n,routes:r}){r&&(hc.routes=r),us.createRoot(n).render(b.jsx(Qp,{store:rM(),children:b.jsx(Qk,{})}))}function U8({target:n,routes:r}){r&&(hc.routes=r),us.createRoot(n).render(b.jsx(Qp,{store:rM(),children:b.jsx(H6,{...JSON.parse(n.dataset.publicationsSelectProps)})}))}function $8({target:n,catalogSources:r,onRamps:i,baseUrl:u}){const l=Om({reducer:{resourceCatalog:r8}});us.createRoot(n).render(b.jsx(Qp,{store:l,children:b.jsx(x8,{catalogSources:r,onRamps:i,baseUrl:u})}))}function G8({target:n,apiUrl:r,excludedCategories:i,excludedFilters:u,excludedResources:l,allowedCategories:d,allowedFilters:h}){const v=Om({reducer:{resourceCatalog:A8}});us.createRoot(n).render(b.jsx(Qp,{store:v,children:b.jsx(P8,{apiUrl:r,excludedCategories:i,excludedFilters:u,excludedResources:l,allowedCategories:d,allowedFilters:h})}))}exports.allocationsMap=V8;exports.onRampsResourceCatalog=$8;exports.projects=B8;exports.projectsBrowser=z8;exports.publications=H8;exports.publicationsSelect=U8;exports.resourceCatalog=G8;exports.shadowTarget=F8;
|