@equinor/roma-framework 0.0.5-ALPHA → 0.0.5-ALPHA.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,392 +0,0 @@
1
- (function(Mr){typeof define=="function"&&define.amd?define(Mr):Mr()})(function(){var fp,lf,km,aF,Am,uf,xm,sF,hp,lF,Im,Om,Ws,cf,Ys,Co,H_,pp,Nm,iR,Ml,Dd,uF,Iu,cF,Ou,j_,Rs,Mm,Nu,_h,dF,Qs,z_,vp,fF,Yi,df,ff,Pm,Dm,hf,Lm,Um,hF;"use strict";var XO=(Mr,qi,Oo)=>{if(!qi.has(Mr))throw TypeError("Cannot "+Oo)};var Ae=(Mr,qi,Oo)=>(XO(Mr,qi,"read from private field"),Oo?Oo.call(Mr):qi.get(Mr)),On=(Mr,qi,Oo)=>{if(qi.has(Mr))throw TypeError("Cannot add the same private member more than once");qi instanceof WeakSet?qi.add(Mr):qi.set(Mr,Oo)},Yt=(Mr,qi,Oo,Ld)=>(XO(Mr,qi,"write to private field"),Ld?Ld.call(Mr,Oo):qi.set(Mr,Oo),Oo),rR=(Mr,qi,Oo,Ld)=>({set _(Ch){Yt(Mr,qi,Ch,Oo)},get _(){return Ae(Mr,qi,Ld)}}),fo=(Mr,qi,Oo)=>(XO(Mr,qi,"access private method"),Oo);var Mr=typeof document<"u"?document.currentScript:null;function qi(n,e){for(var t=0;t<e.length;t++){const r=e[t];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in n)){const l=Object.getOwnPropertyDescriptor(r,a);l&&Object.defineProperty(n,a,l.get?l:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}function Oo(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ld={exports:{}},Ch={},oR={exports:{}},En={};/**
2
- * @license React
3
- * react.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var JO;function W4(){if(JO)return En;JO=1;var n=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),E=Symbol.iterator;function S(H){return H===null||typeof H!="object"?null:(H=E&&H[E]||H["@@iterator"],typeof H=="function"?H:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,I={};function P(H,ne,xe){this.props=H,this.context=ne,this.refs=I,this.updater=xe||T}P.prototype.isReactComponent={},P.prototype.setState=function(H,ne){if(typeof H!="object"&&typeof H!="function"&&H!=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,H,ne,"setState")},P.prototype.forceUpdate=function(H){this.updater.enqueueForceUpdate(this,H,"forceUpdate")};function D(){}D.prototype=P.prototype;function L(H,ne,xe){this.props=H,this.context=ne,this.refs=I,this.updater=xe||T}var j=L.prototype=new D;j.constructor=L,A(j,P.prototype),j.isPureReactComponent=!0;var F=Array.isArray,V=Object.prototype.hasOwnProperty,Y={current:null},Z={key:!0,ref:!0,__self:!0,__source:!0};function Re(H,ne,xe){var ut,Ue={},It=null,Ft=null;if(ne!=null)for(ut in ne.ref!==void 0&&(Ft=ne.ref),ne.key!==void 0&&(It=""+ne.key),ne)V.call(ne,ut)&&!Z.hasOwnProperty(ut)&&(Ue[ut]=ne[ut]);var qt=arguments.length-2;if(qt===1)Ue.children=xe;else if(1<qt){for(var bt=Array(qt),_n=0;_n<qt;_n++)bt[_n]=arguments[_n+2];Ue.children=bt}if(H&&H.defaultProps)for(ut in qt=H.defaultProps,qt)Ue[ut]===void 0&&(Ue[ut]=qt[ut]);return{$$typeof:n,type:H,key:It,ref:Ft,props:Ue,_owner:Y.current}}function Ge(H,ne){return{$$typeof:n,type:H.type,key:ne,ref:H.ref,props:H.props,_owner:H._owner}}function at(H){return typeof H=="object"&&H!==null&&H.$$typeof===n}function Pe(H){var ne={"=":"=0",":":"=2"};return"$"+H.replace(/[=:]/g,function(xe){return ne[xe]})}var Be=/\/+/g;function te(H,ne){return typeof H=="object"&&H!==null&&H.key!=null?Pe(""+H.key):ne.toString(36)}function ee(H,ne,xe,ut,Ue){var It=typeof H;(It==="undefined"||It==="boolean")&&(H=null);var Ft=!1;if(H===null)Ft=!0;else switch(It){case"string":case"number":Ft=!0;break;case"object":switch(H.$$typeof){case n:case e:Ft=!0}}if(Ft)return Ft=H,Ue=Ue(Ft),H=ut===""?"."+te(Ft,0):ut,F(Ue)?(xe="",H!=null&&(xe=H.replace(Be,"$&/")+"/"),ee(Ue,ne,xe,"",function(_n){return _n})):Ue!=null&&(at(Ue)&&(Ue=Ge(Ue,xe+(!Ue.key||Ft&&Ft.key===Ue.key?"":(""+Ue.key).replace(Be,"$&/")+"/")+H)),ne.push(Ue)),1;if(Ft=0,ut=ut===""?".":ut+":",F(H))for(var qt=0;qt<H.length;qt++){It=H[qt];var bt=ut+te(It,qt);Ft+=ee(It,ne,xe,bt,Ue)}else if(bt=S(H),typeof bt=="function")for(H=bt.call(H),qt=0;!(It=H.next()).done;)It=It.value,bt=ut+te(It,qt++),Ft+=ee(It,ne,xe,bt,Ue);else if(It==="object")throw ne=String(H),Error("Objects are not valid as a React child (found: "+(ne==="[object Object]"?"object with keys {"+Object.keys(H).join(", ")+"}":ne)+"). If you meant to render a collection of children, use an array instead.");return Ft}function ye(H,ne,xe){if(H==null)return H;var ut=[],Ue=0;return ee(H,ut,"","",function(It){return ne.call(xe,It,Ue++)}),ut}function me(H){if(H._status===-1){var ne=H._result;ne=ne(),ne.then(function(xe){(H._status===0||H._status===-1)&&(H._status=1,H._result=xe)},function(xe){(H._status===0||H._status===-1)&&(H._status=2,H._result=xe)}),H._status===-1&&(H._status=0,H._result=ne)}if(H._status===1)return H._result.default;throw H._result}var he={current:null},G={transition:null},ge={ReactCurrentDispatcher:he,ReactCurrentBatchConfig:G,ReactCurrentOwner:Y};return En.Children={map:ye,forEach:function(H,ne,xe){ye(H,function(){ne.apply(this,arguments)},xe)},count:function(H){var ne=0;return ye(H,function(){ne++}),ne},toArray:function(H){return ye(H,function(ne){return ne})||[]},only:function(H){if(!at(H))throw Error("React.Children.only expected to receive a single React element child.");return H}},En.Component=P,En.Fragment=t,En.Profiler=a,En.PureComponent=L,En.StrictMode=r,En.Suspense=p,En.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ge,En.cloneElement=function(H,ne,xe){if(H==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+H+".");var ut=A({},H.props),Ue=H.key,It=H.ref,Ft=H._owner;if(ne!=null){if(ne.ref!==void 0&&(It=ne.ref,Ft=Y.current),ne.key!==void 0&&(Ue=""+ne.key),H.type&&H.type.defaultProps)var qt=H.type.defaultProps;for(bt in ne)V.call(ne,bt)&&!Z.hasOwnProperty(bt)&&(ut[bt]=ne[bt]===void 0&&qt!==void 0?qt[bt]:ne[bt])}var bt=arguments.length-2;if(bt===1)ut.children=xe;else if(1<bt){qt=Array(bt);for(var _n=0;_n<bt;_n++)qt[_n]=arguments[_n+2];ut.children=qt}return{$$typeof:n,type:H.type,key:Ue,ref:It,props:ut,_owner:Ft}},En.createContext=function(H){return H={$$typeof:u,_currentValue:H,_currentValue2:H,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},H.Provider={$$typeof:l,_context:H},H.Consumer=H},En.createElement=Re,En.createFactory=function(H){var ne=Re.bind(null,H);return ne.type=H,ne},En.createRef=function(){return{current:null}},En.forwardRef=function(H){return{$$typeof:f,render:H}},En.isValidElement=at,En.lazy=function(H){return{$$typeof:y,_payload:{_status:-1,_result:H},_init:me}},En.memo=function(H,ne){return{$$typeof:m,type:H,compare:ne===void 0?null:ne}},En.startTransition=function(H){var ne=G.transition;G.transition={};try{H()}finally{G.transition=ne}},En.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},En.useCallback=function(H,ne){return he.current.useCallback(H,ne)},En.useContext=function(H){return he.current.useContext(H)},En.useDebugValue=function(){},En.useDeferredValue=function(H){return he.current.useDeferredValue(H)},En.useEffect=function(H,ne){return he.current.useEffect(H,ne)},En.useId=function(){return he.current.useId()},En.useImperativeHandle=function(H,ne,xe){return he.current.useImperativeHandle(H,ne,xe)},En.useInsertionEffect=function(H,ne){return he.current.useInsertionEffect(H,ne)},En.useLayoutEffect=function(H,ne){return he.current.useLayoutEffect(H,ne)},En.useMemo=function(H,ne){return he.current.useMemo(H,ne)},En.useReducer=function(H,ne,xe){return he.current.useReducer(H,ne,xe)},En.useRef=function(H){return he.current.useRef(H)},En.useState=function(H){return he.current.useState(H)},En.useSyncExternalStore=function(H,ne,xe){return he.current.useSyncExternalStore(H,ne,xe)},En.useTransition=function(){return he.current.useTransition()},En.version="18.2.0",En}var Sy={exports:{}};/**
10
- * @license React
11
- * react.development.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */Sy.exports;var ZO;function Y4(){return ZO||(ZO=1,function(n,e){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t="18.2.0",r=Symbol.for("react.element"),a=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),m=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),P=Symbol.iterator,D="@@iterator";function L(O){if(O===null||typeof O!="object")return null;var q=P&&O[P]||O[D];return typeof q=="function"?q:null}var j={current:null},F={transition:null},V={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},Y={current:null},Z={},Re=null;function Ge(O){Re=O}Z.setExtraStackFrame=function(O){Re=O},Z.getCurrentStack=null,Z.getStackAddendum=function(){var O="";Re&&(O+=Re);var q=Z.getCurrentStack;return q&&(O+=q()||""),O};var at=!1,Pe=!1,Be=!1,te=!1,ee=!1,ye={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:F,ReactCurrentOwner:Y};ye.ReactDebugCurrentFrame=Z,ye.ReactCurrentActQueue=V;function me(O){{for(var q=arguments.length,de=new Array(q>1?q-1:0),_e=1;_e<q;_e++)de[_e-1]=arguments[_e];G("warn",O,de)}}function he(O){{for(var q=arguments.length,de=new Array(q>1?q-1:0),_e=1;_e<q;_e++)de[_e-1]=arguments[_e];G("error",O,de)}}function G(O,q,de){{var _e=ye.ReactDebugCurrentFrame,je=_e.getStackAddendum();je!==""&&(q+="%s",de=de.concat([je]));var Pt=de.map(function(Ze){return String(Ze)});Pt.unshift("Warning: "+q),Function.prototype.apply.call(console[O],console,Pt)}}var ge={};function H(O,q){{var de=O.constructor,_e=de&&(de.displayName||de.name)||"ReactClass",je=_e+"."+q;if(ge[je])return;he("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.",q,_e),ge[je]=!0}}var ne={isMounted:function(O){return!1},enqueueForceUpdate:function(O,q,de){H(O,"forceUpdate")},enqueueReplaceState:function(O,q,de,_e){H(O,"replaceState")},enqueueSetState:function(O,q,de,_e){H(O,"setState")}},xe=Object.assign,ut={};Object.freeze(ut);function Ue(O,q,de){this.props=O,this.context=q,this.refs=ut,this.updater=de||ne}Ue.prototype.isReactComponent={},Ue.prototype.setState=function(O,q){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,q,"setState")},Ue.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};{var It={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)."]},Ft=function(O,q){Object.defineProperty(Ue.prototype,O,{get:function(){me("%s(...) is deprecated in plain JavaScript React classes. %s",q[0],q[1])}})};for(var qt in It)It.hasOwnProperty(qt)&&Ft(qt,It[qt])}function bt(){}bt.prototype=Ue.prototype;function _n(O,q,de){this.props=O,this.context=q,this.refs=ut,this.updater=de||ne}var Xr=_n.prototype=new bt;Xr.constructor=_n,xe(Xr,Ue.prototype),Xr.isPureReactComponent=!0;function Xn(){var O={current:null};return Object.seal(O),O}var Eo=Array.isArray;function ur(O){return Eo(O)}function si(O){{var q=typeof Symbol=="function"&&Symbol.toStringTag,de=q&&O[Symbol.toStringTag]||O.constructor.name||"Object";return de}}function cr(O){try{return Hr(O),!1}catch{return!0}}function Hr(O){return""+O}function dr(O){if(cr(O))return he("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",si(O)),Hr(O)}function Ci(O,q,de){var _e=O.displayName;if(_e)return _e;var je=q.displayName||q.name||"";return je!==""?de+"("+je+")":de}function Di(O){return O.displayName||"Context"}function er(O){if(O==null)return null;if(typeof O.tag=="number"&&he("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof O=="function")return O.displayName||O.name||null;if(typeof O=="string")return O;switch(O){case l:return"Fragment";case a:return"Portal";case f:return"Profiler";case u:return"StrictMode";case E:return"Suspense";case S:return"SuspenseList"}if(typeof O=="object")switch(O.$$typeof){case m:var q=O;return Di(q)+".Consumer";case p:var de=O;return Di(de._context)+".Provider";case y:return Ci(O,O.render,"ForwardRef");case T:var _e=O.displayName||null;return _e!==null?_e:er(O.type)||"Memo";case A:{var je=O,Pt=je._payload,Ze=je._init;try{return er(Ze(Pt))}catch{return null}}}return null}var Ei=Object.prototype.hasOwnProperty,Qi={key:!0,ref:!0,__self:!0,__source:!0},wi,$o,li;li={};function bi(O){if(Ei.call(O,"ref")){var q=Object.getOwnPropertyDescriptor(O,"ref").get;if(q&&q.isReactWarning)return!1}return O.ref!==void 0}function or(O){if(Ei.call(O,"key")){var q=Object.getOwnPropertyDescriptor(O,"key").get;if(q&&q.isReactWarning)return!1}return O.key!==void 0}function Si(O,q){var de=function(){wi||(wi=!0,he("%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)",q))};de.isReactWarning=!0,Object.defineProperty(O,"key",{get:de,configurable:!0})}function Qa(O,q){var de=function(){$o||($o=!0,he("%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)",q))};de.isReactWarning=!0,Object.defineProperty(O,"ref",{get:de,configurable:!0})}function wo(O){if(typeof O.ref=="string"&&Y.current&&O.__self&&Y.current.stateNode!==O.__self){var q=er(Y.current.type);li[q]||(he('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',q,O.ref),li[q]=!0)}}var Ke=function(O,q,de,_e,je,Pt,Ze){var Ot={$$typeof:r,type:O,key:q,ref:de,props:Ze,_owner:Pt};return Ot._store={},Object.defineProperty(Ot._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ot,"_self",{configurable:!1,enumerable:!1,writable:!1,value:_e}),Object.defineProperty(Ot,"_source",{configurable:!1,enumerable:!1,writable:!1,value:je}),Object.freeze&&(Object.freeze(Ot.props),Object.freeze(Ot)),Ot};function gt(O,q,de){var _e,je={},Pt=null,Ze=null,Ot=null,un=null;if(q!=null){bi(q)&&(Ze=q.ref,wo(q)),or(q)&&(dr(q.key),Pt=""+q.key),Ot=q.__self===void 0?null:q.__self,un=q.__source===void 0?null:q.__source;for(_e in q)Ei.call(q,_e)&&!Qi.hasOwnProperty(_e)&&(je[_e]=q[_e])}var An=arguments.length-2;if(An===1)je.children=de;else if(An>1){for(var tr=Array(An),Gn=0;Gn<An;Gn++)tr[Gn]=arguments[Gn+2];Object.freeze&&Object.freeze(tr),je.children=tr}if(O&&O.defaultProps){var nr=O.defaultProps;for(_e in nr)je[_e]===void 0&&(je[_e]=nr[_e])}if(Pt||Ze){var lr=typeof O=="function"?O.displayName||O.name||"Unknown":O;Pt&&Si(je,lr),Ze&&Qa(je,lr)}return Ke(O,Pt,Ze,Ot,un,Y.current,je)}function Zt(O,q){var de=Ke(O.type,q,O.ref,O._self,O._source,O._owner,O.props);return de}function re(O,q,de){if(O==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+O+".");var _e,je=xe({},O.props),Pt=O.key,Ze=O.ref,Ot=O._self,un=O._source,An=O._owner;if(q!=null){bi(q)&&(Ze=q.ref,An=Y.current),or(q)&&(dr(q.key),Pt=""+q.key);var tr;O.type&&O.type.defaultProps&&(tr=O.type.defaultProps);for(_e in q)Ei.call(q,_e)&&!Qi.hasOwnProperty(_e)&&(q[_e]===void 0&&tr!==void 0?je[_e]=tr[_e]:je[_e]=q[_e])}var Gn=arguments.length-2;if(Gn===1)je.children=de;else if(Gn>1){for(var nr=Array(Gn),lr=0;lr<Gn;lr++)nr[lr]=arguments[lr+2];je.children=nr}return Ke(O.type,Pt,Ze,Ot,un,An,je)}function se(O){return typeof O=="object"&&O!==null&&O.$$typeof===r}var Te=".",Ve=":";function yt(O){var q=/[=:]/g,de={"=":"=0",":":"=2"},_e=O.replace(q,function(je){return de[je]});return"$"+_e}var et=!1,_t=/\/+/g;function We(O){return O.replace(_t,"$&/")}function qe(O,q){return typeof O=="object"&&O!==null&&O.key!=null?(dr(O.key),yt(""+O.key)):q.toString(36)}function sn(O,q,de,_e,je){var Pt=typeof O;(Pt==="undefined"||Pt==="boolean")&&(O=null);var Ze=!1;if(O===null)Ze=!0;else switch(Pt){case"string":case"number":Ze=!0;break;case"object":switch(O.$$typeof){case r:case a:Ze=!0}}if(Ze){var Ot=O,un=je(Ot),An=_e===""?Te+qe(Ot,0):_e;if(ur(un)){var tr="";An!=null&&(tr=We(An)+"/"),sn(un,q,tr,"",function(K_){return K_})}else un!=null&&(se(un)&&(un.key&&(!Ot||Ot.key!==un.key)&&dr(un.key),un=Zt(un,de+(un.key&&(!Ot||Ot.key!==un.key)?We(""+un.key)+"/":"")+An)),q.push(un));return 1}var Gn,nr,lr=0,Cn=_e===""?Te:_e+Ve;if(ur(O))for(var Ll=0;Ll<O.length;Ll++)Gn=O[Ll],nr=Cn+qe(Gn,Ll),lr+=sn(Gn,q,de,nr,je);else{var Tf=L(O);if(typeof Tf=="function"){var Cp=O;Tf===Cp.entries&&(et||me("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),et=!0);for(var V_=Tf.call(Cp),Is,Ep=0;!(Is=V_.next()).done;)Gn=Is.value,nr=Cn+qe(Gn,Ep++),lr+=sn(Gn,q,de,nr,je)}else if(Pt==="object"){var wp=String(O);throw new Error("Objects are not valid as a React child (found: "+(wp==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":wp)+"). If you meant to render a collection of children, use an array instead.")}}return lr}function Fn(O,q,de){if(O==null)return O;var _e=[],je=0;return sn(O,_e,"","",function(Pt){return q.call(de,Pt,je++)}),_e}function mn(O){var q=0;return Fn(O,function(){q++}),q}function Kn(O,q,de){Fn(O,function(){q.apply(this,arguments)},de)}function fr(O){return Fn(O,function(q){return q})||[]}function Xi(O){if(!se(O))throw new Error("React.Children.only expected to receive a single React element child.");return O}function bo(O){var q={$$typeof:m,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};q.Provider={$$typeof:p,_context:q};var de=!1,_e=!1,je=!1;{var Pt={$$typeof:m,_context:q};Object.defineProperties(Pt,{Provider:{get:function(){return _e||(_e=!0,he("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),q.Provider},set:function(Ze){q.Provider=Ze}},_currentValue:{get:function(){return q._currentValue},set:function(Ze){q._currentValue=Ze}},_currentValue2:{get:function(){return q._currentValue2},set:function(Ze){q._currentValue2=Ze}},_threadCount:{get:function(){return q._threadCount},set:function(Ze){q._threadCount=Ze}},Consumer:{get:function(){return de||(de=!0,he("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),q.Consumer}},displayName:{get:function(){return q.displayName},set:function(Ze){je||(me("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Ze),je=!0)}}}),q.Consumer=Pt}return q._currentRenderer=null,q._currentRenderer2=null,q}var Ti=-1,aa=0,kr=1,ui=2;function ci(O){if(O._status===Ti){var q=O._result,de=q();if(de.then(function(Pt){if(O._status===aa||O._status===Ti){var Ze=O;Ze._status=kr,Ze._result=Pt}},function(Pt){if(O._status===aa||O._status===Ti){var Ze=O;Ze._status=ui,Ze._result=Pt}}),O._status===Ti){var _e=O;_e._status=aa,_e._result=de}}if(O._status===kr){var je=O._result;return je===void 0&&he(`lazy: Expected the result of a dynamic import() call. Instead received: %s
18
-
19
- Your code should look like:
20
- const MyComponent = lazy(() => import('./MyComponent'))
21
-
22
- Did you accidentally put curly braces around the import?`,je),"default"in je||he(`lazy: Expected the result of a dynamic import() call. Instead received: %s
23
-
24
- Your code should look like:
25
- const MyComponent = lazy(() => import('./MyComponent'))`,je),je.default}else throw O._result}function Ji(O){var q={_status:Ti,_result:O},de={$$typeof:A,_payload:q,_init:ci};{var _e,je;Object.defineProperties(de,{defaultProps:{configurable:!0,get:function(){return _e},set:function(Pt){he("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."),_e=Pt,Object.defineProperty(de,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return je},set:function(Pt){he("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."),je=Pt,Object.defineProperty(de,"propTypes",{enumerable:!0})}}})}return de}function sa(O){O!=null&&O.$$typeof===T?he("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof O!="function"?he("forwardRef requires a render function but was given %s.",O===null?"null":typeof O):O.length!==0&&O.length!==2&&he("forwardRef render functions accept exactly two parameters: props and ref. %s",O.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),O!=null&&(O.defaultProps!=null||O.propTypes!=null)&&he("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var q={$$typeof:y,render:O};{var de;Object.defineProperty(q,"displayName",{enumerable:!1,configurable:!0,get:function(){return de},set:function(_e){de=_e,!O.name&&!O.displayName&&(O.displayName=_e)}})}return q}var B;B=Symbol.for("react.module.reference");function Ce(O){return!!(typeof O=="string"||typeof O=="function"||O===l||O===f||ee||O===u||O===E||O===S||te||O===I||at||Pe||Be||typeof O=="object"&&O!==null&&(O.$$typeof===A||O.$$typeof===T||O.$$typeof===p||O.$$typeof===m||O.$$typeof===y||O.$$typeof===B||O.getModuleId!==void 0))}function He(O,q){Ce(O)||he("memo: The first argument must be a component. Instead received: %s",O===null?"null":typeof O);var de={$$typeof:T,type:O,compare:q===void 0?null:q};{var _e;Object.defineProperty(de,"displayName",{enumerable:!1,configurable:!0,get:function(){return _e},set:function(je){_e=je,!O.name&&!O.displayName&&(O.displayName=je)}})}return de}function Qe(){var O=j.current;return O===null&&he(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
26
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
27
- 2. You might be breaking the Rules of Hooks
28
- 3. You might have more than one copy of React in the same app
29
- See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),O}function jt(O){var q=Qe();if(O._context!==void 0){var de=O._context;de.Consumer===O?he("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):de.Provider===O&&he("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return q.useContext(O)}function Rt(O){var q=Qe();return q.useState(O)}function $t(O,q,de){var _e=Qe();return _e.useReducer(O,q,de)}function St(O){var q=Qe();return q.useRef(O)}function jr(O,q){var de=Qe();return de.useEffect(O,q)}function ar(O,q){var de=Qe();return de.useInsertionEffect(O,q)}function sr(O,q){var de=Qe();return de.useLayoutEffect(O,q)}function Zi(O,q){var de=Qe();return de.useCallback(O,q)}function Xs(O,q){var de=Qe();return de.useMemo(O,q)}function pf(O,q,de){var _e=Qe();return _e.useImperativeHandle(O,q,de)}function Rn(O,q){{var de=Qe();return de.useDebugValue(O,q)}}function B_(){var O=Qe();return O.useTransition()}function ks(O){var q=Qe();return q.useDeferredValue(O)}function ln(){var O=Qe();return O.useId()}function Js(O,q,de){var _e=Qe();return _e.useSyncExternalStore(O,q,de)}var Mu=0,vf,Pu,la,mp,Ho,gp,yp;function Fm(){}Fm.__reactDisabledLog=!0;function mf(){{if(Mu===0){vf=console.log,Pu=console.info,la=console.warn,mp=console.error,Ho=console.group,gp=console.groupCollapsed,yp=console.groupEnd;var O={configurable:!0,enumerable:!0,value:Fm,writable:!0};Object.defineProperties(console,{info:O,log:O,warn:O,error:O,group:O,groupCollapsed:O,groupEnd:O})}Mu++}}function Du(){{if(Mu--,Mu===0){var O={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:xe({},O,{value:vf}),info:xe({},O,{value:Pu}),warn:xe({},O,{value:la}),error:xe({},O,{value:mp}),group:xe({},O,{value:Ho}),groupCollapsed:xe({},O,{value:gp}),groupEnd:xe({},O,{value:yp})})}Mu<0&&he("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var As=ye.ReactCurrentDispatcher,jo;function Lu(O,q,de){{if(jo===void 0)try{throw Error()}catch(je){var _e=je.stack.trim().match(/\n( *(at )?)/);jo=_e&&_e[1]||""}return`
30
- `+jo+O}}var Uu=!1,Fu;{var gf=typeof WeakMap=="function"?WeakMap:Map;Fu=new gf}function yf(O,q){if(!O||Uu)return"";{var de=Fu.get(O);if(de!==void 0)return de}var _e;Uu=!0;var je=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Pt;Pt=As.current,As.current=null,mf();try{if(q){var Ze=function(){throw Error()};if(Object.defineProperty(Ze.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ze,[])}catch(Cn){_e=Cn}Reflect.construct(O,[],Ze)}else{try{Ze.call()}catch(Cn){_e=Cn}O.call(Ze.prototype)}}else{try{throw Error()}catch(Cn){_e=Cn}O()}}catch(Cn){if(Cn&&_e&&typeof Cn.stack=="string"){for(var Ot=Cn.stack.split(`
31
- `),un=_e.stack.split(`
32
- `),An=Ot.length-1,tr=un.length-1;An>=1&&tr>=0&&Ot[An]!==un[tr];)tr--;for(;An>=1&&tr>=0;An--,tr--)if(Ot[An]!==un[tr]){if(An!==1||tr!==1)do if(An--,tr--,tr<0||Ot[An]!==un[tr]){var Gn=`
33
- `+Ot[An].replace(" at new "," at ");return O.displayName&&Gn.includes("<anonymous>")&&(Gn=Gn.replace("<anonymous>",O.displayName)),typeof O=="function"&&Fu.set(O,Gn),Gn}while(An>=1&&tr>=0);break}}}finally{Uu=!1,As.current=Pt,Du(),Error.prepareStackTrace=je}var nr=O?O.displayName||O.name:"",lr=nr?Lu(nr):"";return typeof O=="function"&&Fu.set(O,lr),lr}function Pl(O,q,de){return yf(O,!1)}function q_(O){var q=O.prototype;return!!(q&&q.isReactComponent)}function Zs(O,q,de){if(O==null)return"";if(typeof O=="function")return yf(O,q_(O));if(typeof O=="string")return Lu(O);switch(O){case E:return Lu("Suspense");case S:return Lu("SuspenseList")}if(typeof O=="object")switch(O.$$typeof){case y:return Pl(O.render);case T:return Zs(O.type,q,de);case A:{var _e=O,je=_e._payload,Pt=_e._init;try{return Zs(Pt(je),q,de)}catch{}}}return""}var Nn={},_f=ye.ReactDebugCurrentFrame;function Kc(O){if(O){var q=O._owner,de=Zs(O.type,O._source,q?q.type:null);_f.setExtraStackFrame(de)}else _f.setExtraStackFrame(null)}function Cf(O,q,de,_e,je){{var Pt=Function.call.bind(Ei);for(var Ze in O)if(Pt(O,Ze)){var Ot=void 0;try{if(typeof O[Ze]!="function"){var un=Error((_e||"React class")+": "+de+" type `"+Ze+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof O[Ze]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw un.name="Invariant Violation",un}Ot=O[Ze](q,Ze,_e,de,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(An){Ot=An}Ot&&!(Ot instanceof Error)&&(Kc(je),he("%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).",_e||"React class",de,Ze,typeof Ot),Kc(null)),Ot instanceof Error&&!(Ot.message in Nn)&&(Nn[Ot.message]=!0,Kc(je),he("Failed %s type: %s",de,Ot.message),Kc(null))}}}function kn(O){if(O){var q=O._owner,de=Zs(O.type,O._source,q?q.type:null);Ge(de)}else Ge(null)}var Ef;Ef=!1;function wf(){if(Y.current){var O=er(Y.current.type);if(O)return`
34
-
35
- Check the render method of \``+O+"`."}return""}function Vt(O){if(O!==void 0){var q=O.fileName.replace(/^.*[\\\/]/,""),de=O.lineNumber;return`
36
-
37
- Check your code at `+q+":"+de+"."}return""}function Gc(O){return O!=null?Vt(O.__source):""}var Ar={};function ua(O){var q=wf();if(!q){var de=typeof O=="string"?O:O.displayName||O.name;de&&(q=`
38
-
39
- Check the top-level render call using <`+de+">.")}return q}function zo(O,q){if(!(!O._store||O._store.validated||O.key!=null)){O._store.validated=!0;var de=ua(q);if(!Ar[de]){Ar[de]=!0;var _e="";O&&O._owner&&O._owner!==Y.current&&(_e=" It was passed a child from "+er(O._owner.type)+"."),kn(O),he('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',de,_e),kn(null)}}}function $u(O,q){if(typeof O=="object"){if(ur(O))for(var de=0;de<O.length;de++){var _e=O[de];se(_e)&&zo(_e,q)}else if(se(O))O._store&&(O._store.validated=!0);else if(O){var je=L(O);if(typeof je=="function"&&je!==O.entries)for(var Pt=je.call(O),Ze;!(Ze=Pt.next()).done;)se(Ze.value)&&zo(Ze.value,q)}}}function zr(O){{var q=O.type;if(q==null||typeof q=="string")return;var de;if(typeof q=="function")de=q.propTypes;else if(typeof q=="object"&&(q.$$typeof===y||q.$$typeof===T))de=q.propTypes;else return;if(de){var _e=er(q);Cf(de,O.props,"prop",_e,O)}else if(q.PropTypes!==void 0&&!Ef){Ef=!0;var je=er(q);he("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",je||"Unknown")}typeof q.getDefaultProps=="function"&&!q.getDefaultProps.isReactClassApproved&&he("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function $n(O){{for(var q=Object.keys(O.props),de=0;de<q.length;de++){var _e=q[de];if(_e!=="children"&&_e!=="key"){kn(O),he("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",_e),kn(null);break}}O.ref!==null&&(kn(O),he("Invalid attribute `ref` supplied to `React.Fragment`."),kn(null))}}function $m(O,q,de){var _e=Ce(O);if(!_e){var je="";(O===void 0||typeof O=="object"&&O!==null&&Object.keys(O).length===0)&&(je+=" 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 Pt=Gc(q);Pt?je+=Pt:je+=wf();var Ze;O===null?Ze="null":ur(O)?Ze="array":O!==void 0&&O.$$typeof===r?(Ze="<"+(er(O.type)||"Unknown")+" />",je=" Did you accidentally export a JSX literal instead of a component?"):Ze=typeof O,he("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ze,je)}var Ot=gt.apply(this,arguments);if(Ot==null)return Ot;if(_e)for(var un=2;un<arguments.length;un++)$u(arguments[un],O);return O===l?$n(Ot):zr(Ot),Ot}var ca=!1;function Li(O){var q=$m.bind(null,O);return q.type=O,ca||(ca=!0,me("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(q,"type",{enumerable:!1,get:function(){return me("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:O}),O}}),q}function el(O,q,de){for(var _e=re.apply(this,arguments),je=2;je<arguments.length;je++)$u(arguments[je],_e.type);return zr(_e),_e}function Hm(O,q){var de=F.transition;F.transition={};var _e=F.transition;F.transition._updatedFibers=new Set;try{O()}finally{if(F.transition=de,de===null&&_e._updatedFibers){var je=_e._updatedFibers.size;je>10&&me("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."),_e._updatedFibers.clear()}}}var Dl=!1,Hu=null;function jm(O){if(Hu===null)try{var q=("require"+Math.random()).slice(0,7),de=n&&n[q];Hu=de.call(n,"timers").setImmediate}catch{Hu=function(je){Dl===!1&&(Dl=!0,typeof MessageChannel>"u"&&he("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 Pt=new MessageChannel;Pt.port1.onmessage=je,Pt.port2.postMessage(void 0)}}return Hu(O)}var Xa=0,ju=!1;function zu(O){{var q=Xa;Xa++,V.current===null&&(V.current=[]);var de=V.isBatchingLegacy,_e;try{if(V.isBatchingLegacy=!0,_e=O(),!de&&V.didScheduleLegacyUpdate){var je=V.current;je!==null&&(V.didScheduleLegacyUpdate=!1,qu(je))}}catch(nr){throw Ja(q),nr}finally{V.isBatchingLegacy=de}if(_e!==null&&typeof _e=="object"&&typeof _e.then=="function"){var Pt=_e,Ze=!1,Ot={then:function(nr,lr){Ze=!0,Pt.then(function(Cn){Ja(q),Xa===0?bf(Cn,nr,lr):nr(Cn)},function(Cn){Ja(q),lr(Cn)})}};return!ju&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){Ze||(ju=!0,he("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 () => ...);"))}),Ot}else{var un=_e;if(Ja(q),Xa===0){var An=V.current;An!==null&&(qu(An),V.current=null);var tr={then:function(nr,lr){V.current===null?(V.current=[],bf(un,nr,lr)):nr(un)}};return tr}else{var Gn={then:function(nr,lr){nr(un)}};return Gn}}}}function Ja(O){O!==Xa-1&&he("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Xa=O}function bf(O,q,de){{var _e=V.current;if(_e!==null)try{qu(_e),jm(function(){_e.length===0?(V.current=null,q(O)):bf(O,q,de)})}catch(je){de(je)}else q(O)}}var Bu=!1;function qu(O){if(!Bu){Bu=!0;var q=0;try{for(;q<O.length;q++){var de=O[q];do de=de(!0);while(de!==null)}O.length=0}catch(_e){throw O=O.slice(q+1),_e}finally{Bu=!1}}}var Wc=$m,Sf=el,_p=Li,xs={map:Fn,forEach:Kn,count:mn,toArray:fr,only:Xi};e.Children=xs,e.Component=Ue,e.Fragment=l,e.Profiler=f,e.PureComponent=_n,e.StrictMode=u,e.Suspense=E,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ye,e.cloneElement=Sf,e.createContext=bo,e.createElement=Wc,e.createFactory=_p,e.createRef=Xn,e.forwardRef=sa,e.isValidElement=se,e.lazy=Ji,e.memo=He,e.startTransition=Hm,e.unstable_act=zu,e.useCallback=Zi,e.useContext=jt,e.useDebugValue=Rn,e.useDeferredValue=ks,e.useEffect=jr,e.useId=ln,e.useImperativeHandle=pf,e.useInsertionEffect=ar,e.useLayoutEffect=sr,e.useMemo=Xs,e.useReducer=$t,e.useRef=St,e.useState=Rt,e.useSyncExternalStore=Js,e.useTransition=B_,e.version=t,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(Sy,Sy.exports)),Sy.exports}process.env.NODE_ENV==="production"?oR.exports=W4():oR.exports=Y4();var U=oR.exports;const wc=Oo(U),aR=qi({__proto__:null,default:wc},[U]);/**
40
- * @license React
41
- * react-jsx-runtime.production.min.js
42
- *
43
- * Copyright (c) Facebook, Inc. and its affiliates.
44
- *
45
- * This source code is licensed under the MIT license found in the
46
- * LICENSE file in the root directory of this source tree.
47
- */var eN;function Q4(){if(eN)return Ch;eN=1;var n=U,e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(f,p,m){var y,E={},S=null,T=null;m!==void 0&&(S=""+m),p.key!==void 0&&(S=""+p.key),p.ref!==void 0&&(T=p.ref);for(y in p)r.call(p,y)&&!l.hasOwnProperty(y)&&(E[y]=p[y]);if(f&&f.defaultProps)for(y in p=f.defaultProps,p)E[y]===void 0&&(E[y]=p[y]);return{$$typeof:e,type:f,key:S,ref:T,props:E,_owner:a.current}}return Ch.Fragment=t,Ch.jsx=u,Ch.jsxs=u,Ch}var Ty={};/**
48
- * @license React
49
- * react-jsx-runtime.development.js
50
- *
51
- * Copyright (c) Facebook, Inc. and its affiliates.
52
- *
53
- * This source code is licensed under the MIT license found in the
54
- * LICENSE file in the root directory of this source tree.
55
- */var tN;function X4(){return tN||(tN=1,process.env.NODE_ENV!=="production"&&function(){var n=U,e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),A=Symbol.iterator,I="@@iterator";function P(B){if(B===null||typeof B!="object")return null;var Ce=A&&B[A]||B[I];return typeof Ce=="function"?Ce:null}var D=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function L(B){{for(var Ce=arguments.length,He=new Array(Ce>1?Ce-1:0),Qe=1;Qe<Ce;Qe++)He[Qe-1]=arguments[Qe];j("error",B,He)}}function j(B,Ce,He){{var Qe=D.ReactDebugCurrentFrame,jt=Qe.getStackAddendum();jt!==""&&(Ce+="%s",He=He.concat([jt]));var Rt=He.map(function($t){return String($t)});Rt.unshift("Warning: "+Ce),Function.prototype.apply.call(console[B],console,Rt)}}var F=!1,V=!1,Y=!1,Z=!1,Re=!1,Ge;Ge=Symbol.for("react.module.reference");function at(B){return!!(typeof B=="string"||typeof B=="function"||B===r||B===l||Re||B===a||B===m||B===y||Z||B===T||F||V||Y||typeof B=="object"&&B!==null&&(B.$$typeof===S||B.$$typeof===E||B.$$typeof===u||B.$$typeof===f||B.$$typeof===p||B.$$typeof===Ge||B.getModuleId!==void 0))}function Pe(B,Ce,He){var Qe=B.displayName;if(Qe)return Qe;var jt=Ce.displayName||Ce.name||"";return jt!==""?He+"("+jt+")":He}function Be(B){return B.displayName||"Context"}function te(B){if(B==null)return null;if(typeof B.tag=="number"&&L("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof B=="function")return B.displayName||B.name||null;if(typeof B=="string")return B;switch(B){case r:return"Fragment";case t:return"Portal";case l:return"Profiler";case a:return"StrictMode";case m:return"Suspense";case y:return"SuspenseList"}if(typeof B=="object")switch(B.$$typeof){case f:var Ce=B;return Be(Ce)+".Consumer";case u:var He=B;return Be(He._context)+".Provider";case p:return Pe(B,B.render,"ForwardRef");case E:var Qe=B.displayName||null;return Qe!==null?Qe:te(B.type)||"Memo";case S:{var jt=B,Rt=jt._payload,$t=jt._init;try{return te($t(Rt))}catch{return null}}}return null}var ee=Object.assign,ye=0,me,he,G,ge,H,ne,xe;function ut(){}ut.__reactDisabledLog=!0;function Ue(){{if(ye===0){me=console.log,he=console.info,G=console.warn,ge=console.error,H=console.group,ne=console.groupCollapsed,xe=console.groupEnd;var B={configurable:!0,enumerable:!0,value:ut,writable:!0};Object.defineProperties(console,{info:B,log:B,warn:B,error:B,group:B,groupCollapsed:B,groupEnd:B})}ye++}}function It(){{if(ye--,ye===0){var B={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ee({},B,{value:me}),info:ee({},B,{value:he}),warn:ee({},B,{value:G}),error:ee({},B,{value:ge}),group:ee({},B,{value:H}),groupCollapsed:ee({},B,{value:ne}),groupEnd:ee({},B,{value:xe})})}ye<0&&L("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ft=D.ReactCurrentDispatcher,qt;function bt(B,Ce,He){{if(qt===void 0)try{throw Error()}catch(jt){var Qe=jt.stack.trim().match(/\n( *(at )?)/);qt=Qe&&Qe[1]||""}return`
56
- `+qt+B}}var _n=!1,Xr;{var Xn=typeof WeakMap=="function"?WeakMap:Map;Xr=new Xn}function Eo(B,Ce){if(!B||_n)return"";{var He=Xr.get(B);if(He!==void 0)return He}var Qe;_n=!0;var jt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Rt;Rt=Ft.current,Ft.current=null,Ue();try{if(Ce){var $t=function(){throw Error()};if(Object.defineProperty($t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($t,[])}catch(Rn){Qe=Rn}Reflect.construct(B,[],$t)}else{try{$t.call()}catch(Rn){Qe=Rn}B.call($t.prototype)}}else{try{throw Error()}catch(Rn){Qe=Rn}B()}}catch(Rn){if(Rn&&Qe&&typeof Rn.stack=="string"){for(var St=Rn.stack.split(`
57
- `),jr=Qe.stack.split(`
58
- `),ar=St.length-1,sr=jr.length-1;ar>=1&&sr>=0&&St[ar]!==jr[sr];)sr--;for(;ar>=1&&sr>=0;ar--,sr--)if(St[ar]!==jr[sr]){if(ar!==1||sr!==1)do if(ar--,sr--,sr<0||St[ar]!==jr[sr]){var Zi=`
59
- `+St[ar].replace(" at new "," at ");return B.displayName&&Zi.includes("<anonymous>")&&(Zi=Zi.replace("<anonymous>",B.displayName)),typeof B=="function"&&Xr.set(B,Zi),Zi}while(ar>=1&&sr>=0);break}}}finally{_n=!1,Ft.current=Rt,It(),Error.prepareStackTrace=jt}var Xs=B?B.displayName||B.name:"",pf=Xs?bt(Xs):"";return typeof B=="function"&&Xr.set(B,pf),pf}function ur(B,Ce,He){return Eo(B,!1)}function si(B){var Ce=B.prototype;return!!(Ce&&Ce.isReactComponent)}function cr(B,Ce,He){if(B==null)return"";if(typeof B=="function")return Eo(B,si(B));if(typeof B=="string")return bt(B);switch(B){case m:return bt("Suspense");case y:return bt("SuspenseList")}if(typeof B=="object")switch(B.$$typeof){case p:return ur(B.render);case E:return cr(B.type,Ce,He);case S:{var Qe=B,jt=Qe._payload,Rt=Qe._init;try{return cr(Rt(jt),Ce,He)}catch{}}}return""}var Hr=Object.prototype.hasOwnProperty,dr={},Ci=D.ReactDebugCurrentFrame;function Di(B){if(B){var Ce=B._owner,He=cr(B.type,B._source,Ce?Ce.type:null);Ci.setExtraStackFrame(He)}else Ci.setExtraStackFrame(null)}function er(B,Ce,He,Qe,jt){{var Rt=Function.call.bind(Hr);for(var $t in B)if(Rt(B,$t)){var St=void 0;try{if(typeof B[$t]!="function"){var jr=Error((Qe||"React class")+": "+He+" type `"+$t+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof B[$t]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw jr.name="Invariant Violation",jr}St=B[$t](Ce,$t,Qe,He,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ar){St=ar}St&&!(St instanceof Error)&&(Di(jt),L("%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).",Qe||"React class",He,$t,typeof St),Di(null)),St instanceof Error&&!(St.message in dr)&&(dr[St.message]=!0,Di(jt),L("Failed %s type: %s",He,St.message),Di(null))}}}var Ei=Array.isArray;function Qi(B){return Ei(B)}function wi(B){{var Ce=typeof Symbol=="function"&&Symbol.toStringTag,He=Ce&&B[Symbol.toStringTag]||B.constructor.name||"Object";return He}}function $o(B){try{return li(B),!1}catch{return!0}}function li(B){return""+B}function bi(B){if($o(B))return L("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",wi(B)),li(B)}var or=D.ReactCurrentOwner,Si={key:!0,ref:!0,__self:!0,__source:!0},Qa,wo,Ke;Ke={};function gt(B){if(Hr.call(B,"ref")){var Ce=Object.getOwnPropertyDescriptor(B,"ref").get;if(Ce&&Ce.isReactWarning)return!1}return B.ref!==void 0}function Zt(B){if(Hr.call(B,"key")){var Ce=Object.getOwnPropertyDescriptor(B,"key").get;if(Ce&&Ce.isReactWarning)return!1}return B.key!==void 0}function re(B,Ce){if(typeof B.ref=="string"&&or.current&&Ce&&or.current.stateNode!==Ce){var He=te(or.current.type);Ke[He]||(L('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(or.current.type),B.ref),Ke[He]=!0)}}function se(B,Ce){{var He=function(){Qa||(Qa=!0,L("%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)",Ce))};He.isReactWarning=!0,Object.defineProperty(B,"key",{get:He,configurable:!0})}}function Te(B,Ce){{var He=function(){wo||(wo=!0,L("%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)",Ce))};He.isReactWarning=!0,Object.defineProperty(B,"ref",{get:He,configurable:!0})}}var Ve=function(B,Ce,He,Qe,jt,Rt,$t){var St={$$typeof:e,type:B,key:Ce,ref:He,props:$t,_owner:Rt};return St._store={},Object.defineProperty(St._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(St,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Qe}),Object.defineProperty(St,"_source",{configurable:!1,enumerable:!1,writable:!1,value:jt}),Object.freeze&&(Object.freeze(St.props),Object.freeze(St)),St};function yt(B,Ce,He,Qe,jt){{var Rt,$t={},St=null,jr=null;He!==void 0&&(bi(He),St=""+He),Zt(Ce)&&(bi(Ce.key),St=""+Ce.key),gt(Ce)&&(jr=Ce.ref,re(Ce,jt));for(Rt in Ce)Hr.call(Ce,Rt)&&!Si.hasOwnProperty(Rt)&&($t[Rt]=Ce[Rt]);if(B&&B.defaultProps){var ar=B.defaultProps;for(Rt in ar)$t[Rt]===void 0&&($t[Rt]=ar[Rt])}if(St||jr){var sr=typeof B=="function"?B.displayName||B.name||"Unknown":B;St&&se($t,sr),jr&&Te($t,sr)}return Ve(B,St,jr,jt,Qe,or.current,$t)}}var et=D.ReactCurrentOwner,_t=D.ReactDebugCurrentFrame;function We(B){if(B){var Ce=B._owner,He=cr(B.type,B._source,Ce?Ce.type:null);_t.setExtraStackFrame(He)}else _t.setExtraStackFrame(null)}var qe;qe=!1;function sn(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function Fn(){{if(et.current){var B=te(et.current.type);if(B)return`
60
-
61
- Check the render method of \``+B+"`."}return""}}function mn(B){{if(B!==void 0){var Ce=B.fileName.replace(/^.*[\\\/]/,""),He=B.lineNumber;return`
62
-
63
- Check your code at `+Ce+":"+He+"."}return""}}var Kn={};function fr(B){{var Ce=Fn();if(!Ce){var He=typeof B=="string"?B:B.displayName||B.name;He&&(Ce=`
64
-
65
- Check the top-level render call using <`+He+">.")}return Ce}}function Xi(B,Ce){{if(!B._store||B._store.validated||B.key!=null)return;B._store.validated=!0;var He=fr(Ce);if(Kn[He])return;Kn[He]=!0;var Qe="";B&&B._owner&&B._owner!==et.current&&(Qe=" It was passed a child from "+te(B._owner.type)+"."),We(B),L('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',He,Qe),We(null)}}function bo(B,Ce){{if(typeof B!="object")return;if(Qi(B))for(var He=0;He<B.length;He++){var Qe=B[He];sn(Qe)&&Xi(Qe,Ce)}else if(sn(B))B._store&&(B._store.validated=!0);else if(B){var jt=P(B);if(typeof jt=="function"&&jt!==B.entries)for(var Rt=jt.call(B),$t;!($t=Rt.next()).done;)sn($t.value)&&Xi($t.value,Ce)}}}function Ti(B){{var Ce=B.type;if(Ce==null||typeof Ce=="string")return;var He;if(typeof Ce=="function")He=Ce.propTypes;else if(typeof Ce=="object"&&(Ce.$$typeof===p||Ce.$$typeof===E))He=Ce.propTypes;else return;if(He){var Qe=te(Ce);er(He,B.props,"prop",Qe,B)}else if(Ce.PropTypes!==void 0&&!qe){qe=!0;var jt=te(Ce);L("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",jt||"Unknown")}typeof Ce.getDefaultProps=="function"&&!Ce.getDefaultProps.isReactClassApproved&&L("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function aa(B){{for(var Ce=Object.keys(B.props),He=0;He<Ce.length;He++){var Qe=Ce[He];if(Qe!=="children"&&Qe!=="key"){We(B),L("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Qe),We(null);break}}B.ref!==null&&(We(B),L("Invalid attribute `ref` supplied to `React.Fragment`."),We(null))}}function kr(B,Ce,He,Qe,jt,Rt){{var $t=at(B);if(!$t){var St="";(B===void 0||typeof B=="object"&&B!==null&&Object.keys(B).length===0)&&(St+=" 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 jr=mn(jt);jr?St+=jr:St+=Fn();var ar;B===null?ar="null":Qi(B)?ar="array":B!==void 0&&B.$$typeof===e?(ar="<"+(te(B.type)||"Unknown")+" />",St=" Did you accidentally export a JSX literal instead of a component?"):ar=typeof B,L("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ar,St)}var sr=yt(B,Ce,He,jt,Rt);if(sr==null)return sr;if($t){var Zi=Ce.children;if(Zi!==void 0)if(Qe)if(Qi(Zi)){for(var Xs=0;Xs<Zi.length;Xs++)bo(Zi[Xs],B);Object.freeze&&Object.freeze(Zi)}else L("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else bo(Zi,B)}return B===r?aa(sr):Ti(sr),sr}}function ui(B,Ce,He){return kr(B,Ce,He,!0)}function ci(B,Ce,He){return kr(B,Ce,He,!1)}var Ji=ci,sa=ui;Ty.Fragment=r,Ty.jsx=Ji,Ty.jsxs=sa}()),Ty}process.env.NODE_ENV==="production"?Ld.exports=Q4():Ld.exports=X4();var le=Ld.exports,Ry={},sR={exports:{}},Ha={},JC={exports:{}},lR={};/**
66
- * @license React
67
- * scheduler.production.min.js
68
- *
69
- * Copyright (c) Facebook, Inc. and its affiliates.
70
- *
71
- * This source code is licensed under the MIT license found in the
72
- * LICENSE file in the root directory of this source tree.
73
- */var nN;function J4(){return nN||(nN=1,function(n){function e(G,ge){var H=G.length;G.push(ge);e:for(;0<H;){var ne=H-1>>>1,xe=G[ne];if(0<a(xe,ge))G[ne]=ge,G[H]=xe,H=ne;else break e}}function t(G){return G.length===0?null:G[0]}function r(G){if(G.length===0)return null;var ge=G[0],H=G.pop();if(H!==ge){G[0]=H;e:for(var ne=0,xe=G.length,ut=xe>>>1;ne<ut;){var Ue=2*(ne+1)-1,It=G[Ue],Ft=Ue+1,qt=G[Ft];if(0>a(It,H))Ft<xe&&0>a(qt,It)?(G[ne]=qt,G[Ft]=H,ne=Ft):(G[ne]=It,G[Ue]=H,ne=Ue);else if(Ft<xe&&0>a(qt,H))G[ne]=qt,G[Ft]=H,ne=Ft;else break e}}return ge}function a(G,ge){var H=G.sortIndex-ge.sortIndex;return H!==0?H:G.id-ge.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;n.unstable_now=function(){return l.now()}}else{var u=Date,f=u.now();n.unstable_now=function(){return u.now()-f}}var p=[],m=[],y=1,E=null,S=3,T=!1,A=!1,I=!1,P=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function j(G){for(var ge=t(m);ge!==null;){if(ge.callback===null)r(m);else if(ge.startTime<=G)r(m),ge.sortIndex=ge.expirationTime,e(p,ge);else break;ge=t(m)}}function F(G){if(I=!1,j(G),!A)if(t(p)!==null)A=!0,me(V);else{var ge=t(m);ge!==null&&he(F,ge.startTime-G)}}function V(G,ge){A=!1,I&&(I=!1,D(Re),Re=-1),T=!0;var H=S;try{for(j(ge),E=t(p);E!==null&&(!(E.expirationTime>ge)||G&&!Pe());){var ne=E.callback;if(typeof ne=="function"){E.callback=null,S=E.priorityLevel;var xe=ne(E.expirationTime<=ge);ge=n.unstable_now(),typeof xe=="function"?E.callback=xe:E===t(p)&&r(p),j(ge)}else r(p);E=t(p)}if(E!==null)var ut=!0;else{var Ue=t(m);Ue!==null&&he(F,Ue.startTime-ge),ut=!1}return ut}finally{E=null,S=H,T=!1}}var Y=!1,Z=null,Re=-1,Ge=5,at=-1;function Pe(){return!(n.unstable_now()-at<Ge)}function Be(){if(Z!==null){var G=n.unstable_now();at=G;var ge=!0;try{ge=Z(!0,G)}finally{ge?te():(Y=!1,Z=null)}}else Y=!1}var te;if(typeof L=="function")te=function(){L(Be)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,ye=ee.port2;ee.port1.onmessage=Be,te=function(){ye.postMessage(null)}}else te=function(){P(Be,0)};function me(G){Z=G,Y||(Y=!0,te())}function he(G,ge){Re=P(function(){G(n.unstable_now())},ge)}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(G){G.callback=null},n.unstable_continueExecution=function(){A||T||(A=!0,me(V))},n.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ge=0<G?Math.floor(1e3/G):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_getFirstCallbackNode=function(){return t(p)},n.unstable_next=function(G){switch(S){case 1:case 2:case 3:var ge=3;break;default:ge=S}var H=S;S=ge;try{return G()}finally{S=H}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(G,ge){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var H=S;S=G;try{return ge()}finally{S=H}},n.unstable_scheduleCallback=function(G,ge,H){var ne=n.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?ne+H:ne):H=ne,G){case 1:var xe=-1;break;case 2:xe=250;break;case 5:xe=1073741823;break;case 4:xe=1e4;break;default:xe=5e3}return xe=H+xe,G={id:y++,callback:ge,priorityLevel:G,startTime:H,expirationTime:xe,sortIndex:-1},H>ne?(G.sortIndex=H,e(m,G),t(p)===null&&G===t(m)&&(I?(D(Re),Re=-1):I=!0,he(F,H-ne))):(G.sortIndex=xe,e(p,G),A||T||(A=!0,me(V))),G},n.unstable_shouldYield=Pe,n.unstable_wrapCallback=function(G){var ge=S;return function(){var H=S;S=ge;try{return G.apply(this,arguments)}finally{S=H}}}}(lR)),lR}var uR={};/**
74
- * @license React
75
- * scheduler.development.js
76
- *
77
- * Copyright (c) Facebook, Inc. and its affiliates.
78
- *
79
- * This source code is licensed under the MIT license found in the
80
- * LICENSE file in the root directory of this source tree.
81
- */var rN;function Z4(){return rN||(rN=1,function(n){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=!1,t=!1,r=5;function a(Ke,gt){var Zt=Ke.length;Ke.push(gt),f(Ke,gt,Zt)}function l(Ke){return Ke.length===0?null:Ke[0]}function u(Ke){if(Ke.length===0)return null;var gt=Ke[0],Zt=Ke.pop();return Zt!==gt&&(Ke[0]=Zt,p(Ke,Zt,0)),gt}function f(Ke,gt,Zt){for(var re=Zt;re>0;){var se=re-1>>>1,Te=Ke[se];if(m(Te,gt)>0)Ke[se]=gt,Ke[re]=Te,re=se;else return}}function p(Ke,gt,Zt){for(var re=Zt,se=Ke.length,Te=se>>>1;re<Te;){var Ve=(re+1)*2-1,yt=Ke[Ve],et=Ve+1,_t=Ke[et];if(m(yt,gt)<0)et<se&&m(_t,yt)<0?(Ke[re]=_t,Ke[et]=gt,re=et):(Ke[re]=yt,Ke[Ve]=gt,re=Ve);else if(et<se&&m(_t,gt)<0)Ke[re]=_t,Ke[et]=gt,re=et;else return}}function m(Ke,gt){var Zt=Ke.sortIndex-gt.sortIndex;return Zt!==0?Zt:Ke.id-gt.id}var y=1,E=2,S=3,T=4,A=5;function I(Ke,gt){}var P=typeof performance=="object"&&typeof performance.now=="function";if(P){var D=performance;n.unstable_now=function(){return D.now()}}else{var L=Date,j=L.now();n.unstable_now=function(){return L.now()-j}}var F=1073741823,V=-1,Y=250,Z=5e3,Re=1e4,Ge=F,at=[],Pe=[],Be=1,te=null,ee=S,ye=!1,me=!1,he=!1,G=typeof setTimeout=="function"?setTimeout:null,ge=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ne(Ke){for(var gt=l(Pe);gt!==null;){if(gt.callback===null)u(Pe);else if(gt.startTime<=Ke)u(Pe),gt.sortIndex=gt.expirationTime,a(at,gt);else return;gt=l(Pe)}}function xe(Ke){if(he=!1,ne(Ke),!me)if(l(at)!==null)me=!0,bi(ut);else{var gt=l(Pe);gt!==null&&or(xe,gt.startTime-Ke)}}function ut(Ke,gt){me=!1,he&&(he=!1,Si()),ye=!0;var Zt=ee;try{var re;if(!t)return Ue(Ke,gt)}finally{te=null,ee=Zt,ye=!1}}function Ue(Ke,gt){var Zt=gt;for(ne(Zt),te=l(at);te!==null&&!e&&!(te.expirationTime>Zt&&(!Ke||Di()));){var re=te.callback;if(typeof re=="function"){te.callback=null,ee=te.priorityLevel;var se=te.expirationTime<=Zt,Te=re(se);Zt=n.unstable_now(),typeof Te=="function"?te.callback=Te:te===l(at)&&u(at),ne(Zt)}else u(at);te=l(at)}if(te!==null)return!0;var Ve=l(Pe);return Ve!==null&&or(xe,Ve.startTime-Zt),!1}function It(Ke,gt){switch(Ke){case y:case E:case S:case T:case A:break;default:Ke=S}var Zt=ee;ee=Ke;try{return gt()}finally{ee=Zt}}function Ft(Ke){var gt;switch(ee){case y:case E:case S:gt=S;break;default:gt=ee;break}var Zt=ee;ee=gt;try{return Ke()}finally{ee=Zt}}function qt(Ke){var gt=ee;return function(){var Zt=ee;ee=gt;try{return Ke.apply(this,arguments)}finally{ee=Zt}}}function bt(Ke,gt,Zt){var re=n.unstable_now(),se;if(typeof Zt=="object"&&Zt!==null){var Te=Zt.delay;typeof Te=="number"&&Te>0?se=re+Te:se=re}else se=re;var Ve;switch(Ke){case y:Ve=V;break;case E:Ve=Y;break;case A:Ve=Ge;break;case T:Ve=Re;break;case S:default:Ve=Z;break}var yt=se+Ve,et={id:Be++,callback:gt,priorityLevel:Ke,startTime:se,expirationTime:yt,sortIndex:-1};return se>re?(et.sortIndex=se,a(Pe,et),l(at)===null&&et===l(Pe)&&(he?Si():he=!0,or(xe,se-re))):(et.sortIndex=yt,a(at,et),!me&&!ye&&(me=!0,bi(ut))),et}function _n(){}function Xr(){!me&&!ye&&(me=!0,bi(ut))}function Xn(){return l(at)}function Eo(Ke){Ke.callback=null}function ur(){return ee}var si=!1,cr=null,Hr=-1,dr=r,Ci=-1;function Di(){var Ke=n.unstable_now()-Ci;return!(Ke<dr)}function er(){}function Ei(Ke){if(Ke<0||Ke>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}Ke>0?dr=Math.floor(1e3/Ke):dr=r}var Qi=function(){if(cr!==null){var Ke=n.unstable_now();Ci=Ke;var gt=!0,Zt=!0;try{Zt=cr(gt,Ke)}finally{Zt?wi():(si=!1,cr=null)}}else si=!1},wi;if(typeof H=="function")wi=function(){H(Qi)};else if(typeof MessageChannel<"u"){var $o=new MessageChannel,li=$o.port2;$o.port1.onmessage=Qi,wi=function(){li.postMessage(null)}}else wi=function(){G(Qi,0)};function bi(Ke){cr=Ke,si||(si=!0,wi())}function or(Ke,gt){Hr=G(function(){Ke(n.unstable_now())},gt)}function Si(){ge(Hr),Hr=-1}var Qa=er,wo=null;n.unstable_IdlePriority=A,n.unstable_ImmediatePriority=y,n.unstable_LowPriority=T,n.unstable_NormalPriority=S,n.unstable_Profiling=wo,n.unstable_UserBlockingPriority=E,n.unstable_cancelCallback=Eo,n.unstable_continueExecution=Xr,n.unstable_forceFrameRate=Ei,n.unstable_getCurrentPriorityLevel=ur,n.unstable_getFirstCallbackNode=Xn,n.unstable_next=Ft,n.unstable_pauseExecution=_n,n.unstable_requestPaint=Qa,n.unstable_runWithPriority=It,n.unstable_scheduleCallback=bt,n.unstable_shouldYield=Di,n.unstable_wrapCallback=qt,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(uR)),uR}var iN;function oN(){return iN||(iN=1,process.env.NODE_ENV==="production"?JC.exports=J4():JC.exports=Z4()),JC.exports}/**
82
- * @license React
83
- * react-dom.production.min.js
84
- *
85
- * Copyright (c) Facebook, Inc. and its affiliates.
86
- *
87
- * This source code is licensed under the MIT license found in the
88
- * LICENSE file in the root directory of this source tree.
89
- */var aN;function ej(){if(aN)return Ha;aN=1;var n=U,e=oN();function t(s){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+s,v=1;v<arguments.length;v++)c+="&args[]="+encodeURIComponent(arguments[v]);return"Minified React error #"+s+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,a={};function l(s,c){u(s,c),u(s+"Capture",c)}function u(s,c){for(a[s]=c,s=0;s<c.length;s++)r.add(c[s])}var f=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,m=/^[: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]*$/,y={},E={};function S(s){return p.call(E,s)?!0:p.call(y,s)?!1:m.test(s)?E[s]=!0:(y[s]=!0,!1)}function T(s,c,v,_){if(v!==null&&v.type===0)return!1;switch(typeof c){case"function":case"symbol":return!0;case"boolean":return _?!1:v!==null?!v.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function A(s,c,v,_){if(c===null||typeof c>"u"||T(s,c,v,_))return!0;if(_)return!1;if(v!==null)switch(v.type){case 3:return!c;case 4:return c===!1;case 5:return isNaN(c);case 6:return isNaN(c)||1>c}return!1}function I(s,c,v,_,w,R,N){this.acceptsBooleans=c===2||c===3||c===4,this.attributeName=_,this.attributeNamespace=w,this.mustUseProperty=v,this.propertyName=s,this.type=c,this.sanitizeURL=R,this.removeEmptyString=N}var P={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){P[s]=new I(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var c=s[0];P[c]=new I(c,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){P[s]=new I(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){P[s]=new I(s,2,!1,s,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(s){P[s]=new I(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){P[s]=new I(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){P[s]=new I(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){P[s]=new I(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){P[s]=new I(s,5,!1,s.toLowerCase(),null,!1,!1)});var D=/[\-:]([a-z])/g;function L(s){return s[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(s){var c=s.replace(D,L);P[c]=new I(c,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var c=s.replace(D,L);P[c]=new I(c,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var c=s.replace(D,L);P[c]=new I(c,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){P[s]=new I(s,1,!1,s.toLowerCase(),null,!1,!1)}),P.xlinkHref=new I("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){P[s]=new I(s,1,!1,s.toLowerCase(),null,!0,!0)});function j(s,c,v,_){var w=P.hasOwnProperty(c)?P[c]:null;(w!==null?w.type!==0:_||!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(A(c,v,w,_)&&(v=null),_||w===null?S(c)&&(v===null?s.removeAttribute(c):s.setAttribute(c,""+v)):w.mustUseProperty?s[w.propertyName]=v===null?w.type===3?!1:"":v:(c=w.attributeName,_=w.attributeNamespace,v===null?s.removeAttribute(c):(w=w.type,v=w===3||w===4&&v===!0?"":""+v,_?s.setAttributeNS(_,c,v):s.setAttribute(c,v))))}var F=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,V=Symbol.for("react.element"),Y=Symbol.for("react.portal"),Z=Symbol.for("react.fragment"),Re=Symbol.for("react.strict_mode"),Ge=Symbol.for("react.profiler"),at=Symbol.for("react.provider"),Pe=Symbol.for("react.context"),Be=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),ye=Symbol.for("react.memo"),me=Symbol.for("react.lazy"),he=Symbol.for("react.offscreen"),G=Symbol.iterator;function ge(s){return s===null||typeof s!="object"?null:(s=G&&s[G]||s["@@iterator"],typeof s=="function"?s:null)}var H=Object.assign,ne;function xe(s){if(ne===void 0)try{throw Error()}catch(v){var c=v.stack.trim().match(/\n( *(at )?)/);ne=c&&c[1]||""}return`
90
- `+ne+s}var ut=!1;function Ue(s,c){if(!s||ut)return"";ut=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(c)if(c=function(){throw Error()},Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(pe){var _=pe}Reflect.construct(s,[],c)}else{try{c.call()}catch(pe){_=pe}s.call(c.prototype)}else{try{throw Error()}catch(pe){_=pe}s()}}catch(pe){if(pe&&_&&typeof pe.stack=="string"){for(var w=pe.stack.split(`
91
- `),R=_.stack.split(`
92
- `),N=w.length-1,z=R.length-1;1<=N&&0<=z&&w[N]!==R[z];)z--;for(;1<=N&&0<=z;N--,z--)if(w[N]!==R[z]){if(N!==1||z!==1)do if(N--,z--,0>z||w[N]!==R[z]){var K=`
93
- `+w[N].replace(" at new "," at ");return s.displayName&&K.includes("<anonymous>")&&(K=K.replace("<anonymous>",s.displayName)),K}while(1<=N&&0<=z);break}}}finally{ut=!1,Error.prepareStackTrace=v}return(s=s?s.displayName||s.name:"")?xe(s):""}function It(s){switch(s.tag){case 5:return xe(s.type);case 16:return xe("Lazy");case 13:return xe("Suspense");case 19:return xe("SuspenseList");case 0:case 2:case 15:return s=Ue(s.type,!1),s;case 11:return s=Ue(s.type.render,!1),s;case 1:return s=Ue(s.type,!0),s;default:return""}}function Ft(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case Z:return"Fragment";case Y:return"Portal";case Ge:return"Profiler";case Re:return"StrictMode";case te:return"Suspense";case ee:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case Pe:return(s.displayName||"Context")+".Consumer";case at:return(s._context.displayName||"Context")+".Provider";case Be:var c=s.render;return s=s.displayName,s||(s=c.displayName||c.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case ye:return c=s.displayName||null,c!==null?c:Ft(s.type)||"Memo";case me:c=s._payload,s=s._init;try{return Ft(s(c))}catch{}}return null}function qt(s){var c=s.type;switch(s.tag){case 24:return"Cache";case 9:return(c.displayName||"Context")+".Consumer";case 10:return(c._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=c.render,s=s.displayName||s.name||"",c.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ft(c);case 8:return c===Re?"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 c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c}return null}function bt(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function _n(s){var c=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function Xr(s){var c=_n(s)?"checked":"value",v=Object.getOwnPropertyDescriptor(s.constructor.prototype,c),_=""+s[c];if(!s.hasOwnProperty(c)&&typeof v<"u"&&typeof v.get=="function"&&typeof v.set=="function"){var w=v.get,R=v.set;return Object.defineProperty(s,c,{configurable:!0,get:function(){return w.call(this)},set:function(N){_=""+N,R.call(this,N)}}),Object.defineProperty(s,c,{enumerable:v.enumerable}),{getValue:function(){return _},setValue:function(N){_=""+N},stopTracking:function(){s._valueTracker=null,delete s[c]}}}}function Xn(s){s._valueTracker||(s._valueTracker=Xr(s))}function Eo(s){if(!s)return!1;var c=s._valueTracker;if(!c)return!0;var v=c.getValue(),_="";return s&&(_=_n(s)?s.checked?"true":"false":s.value),s=_,s!==v?(c.setValue(s),!0):!1}function ur(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function si(s,c){var v=c.checked;return H({},c,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:v??s._wrapperState.initialChecked})}function cr(s,c){var v=c.defaultValue==null?"":c.defaultValue,_=c.checked!=null?c.checked:c.defaultChecked;v=bt(c.value!=null?c.value:v),s._wrapperState={initialChecked:_,initialValue:v,controlled:c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null}}function Hr(s,c){c=c.checked,c!=null&&j(s,"checked",c,!1)}function dr(s,c){Hr(s,c);var v=bt(c.value),_=c.type;if(v!=null)_==="number"?(v===0&&s.value===""||s.value!=v)&&(s.value=""+v):s.value!==""+v&&(s.value=""+v);else if(_==="submit"||_==="reset"){s.removeAttribute("value");return}c.hasOwnProperty("value")?Di(s,c.type,v):c.hasOwnProperty("defaultValue")&&Di(s,c.type,bt(c.defaultValue)),c.checked==null&&c.defaultChecked!=null&&(s.defaultChecked=!!c.defaultChecked)}function Ci(s,c,v){if(c.hasOwnProperty("value")||c.hasOwnProperty("defaultValue")){var _=c.type;if(!(_!=="submit"&&_!=="reset"||c.value!==void 0&&c.value!==null))return;c=""+s._wrapperState.initialValue,v||c===s.value||(s.value=c),s.defaultValue=c}v=s.name,v!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,v!==""&&(s.name=v)}function Di(s,c,v){(c!=="number"||ur(s.ownerDocument)!==s)&&(v==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+v&&(s.defaultValue=""+v))}var er=Array.isArray;function Ei(s,c,v,_){if(s=s.options,c){c={};for(var w=0;w<v.length;w++)c["$"+v[w]]=!0;for(v=0;v<s.length;v++)w=c.hasOwnProperty("$"+s[v].value),s[v].selected!==w&&(s[v].selected=w),w&&_&&(s[v].defaultSelected=!0)}else{for(v=""+bt(v),c=null,w=0;w<s.length;w++){if(s[w].value===v){s[w].selected=!0,_&&(s[w].defaultSelected=!0);return}c!==null||s[w].disabled||(c=s[w])}c!==null&&(c.selected=!0)}}function Qi(s,c){if(c.dangerouslySetInnerHTML!=null)throw Error(t(91));return H({},c,{value:void 0,defaultValue:void 0,children:""+s._wrapperState.initialValue})}function wi(s,c){var v=c.value;if(v==null){if(v=c.children,c=c.defaultValue,v!=null){if(c!=null)throw Error(t(92));if(er(v)){if(1<v.length)throw Error(t(93));v=v[0]}c=v}c==null&&(c=""),v=c}s._wrapperState={initialValue:bt(v)}}function $o(s,c){var v=bt(c.value),_=bt(c.defaultValue);v!=null&&(v=""+v,v!==s.value&&(s.value=v),c.defaultValue==null&&s.defaultValue!==v&&(s.defaultValue=v)),_!=null&&(s.defaultValue=""+_)}function li(s){var c=s.textContent;c===s._wrapperState.initialValue&&c!==""&&c!==null&&(s.value=c)}function bi(s){switch(s){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 or(s,c){return s==null||s==="http://www.w3.org/1999/xhtml"?bi(c):s==="http://www.w3.org/2000/svg"&&c==="foreignObject"?"http://www.w3.org/1999/xhtml":s}var Si,Qa=function(s){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(c,v,_,w){MSApp.execUnsafeLocalFunction(function(){return s(c,v,_,w)})}:s}(function(s,c){if(s.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in s)s.innerHTML=c;else{for(Si=Si||document.createElement("div"),Si.innerHTML="<svg>"+c.valueOf().toString()+"</svg>",c=Si.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;c.firstChild;)s.appendChild(c.firstChild)}});function wo(s,c){if(c){var v=s.firstChild;if(v&&v===s.lastChild&&v.nodeType===3){v.nodeValue=c;return}}s.textContent=c}var Ke={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},gt=["Webkit","ms","Moz","O"];Object.keys(Ke).forEach(function(s){gt.forEach(function(c){c=c+s.charAt(0).toUpperCase()+s.substring(1),Ke[c]=Ke[s]})});function Zt(s,c,v){return c==null||typeof c=="boolean"||c===""?"":v||typeof c!="number"||c===0||Ke.hasOwnProperty(s)&&Ke[s]?(""+c).trim():c+"px"}function re(s,c){s=s.style;for(var v in c)if(c.hasOwnProperty(v)){var _=v.indexOf("--")===0,w=Zt(v,c[v],_);v==="float"&&(v="cssFloat"),_?s.setProperty(v,w):s[v]=w}}var se=H({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 Te(s,c){if(c){if(se[s]&&(c.children!=null||c.dangerouslySetInnerHTML!=null))throw Error(t(137,s));if(c.dangerouslySetInnerHTML!=null){if(c.children!=null)throw Error(t(60));if(typeof c.dangerouslySetInnerHTML!="object"||!("__html"in c.dangerouslySetInnerHTML))throw Error(t(61))}if(c.style!=null&&typeof c.style!="object")throw Error(t(62))}}function Ve(s,c){if(s.indexOf("-")===-1)return typeof c.is=="string";switch(s){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 yt=null;function et(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var _t=null,We=null,qe=null;function sn(s){if(s=Mp(s)){if(typeof _t!="function")throw Error(t(280));var c=s.stateNode;c&&(c=kt(c),_t(s.stateNode,s.type,c))}}function Fn(s){We?qe?qe.push(s):qe=[s]:We=s}function mn(){if(We){var s=We,c=qe;if(qe=We=null,sn(s),c)for(s=0;s<c.length;s++)sn(c[s])}}function Kn(s,c){return s(c)}function fr(){}var Xi=!1;function bo(s,c,v){if(Xi)return s(c,v);Xi=!0;try{return Kn(s,c,v)}finally{Xi=!1,(We!==null||qe!==null)&&(fr(),mn())}}function Ti(s,c){var v=s.stateNode;if(v===null)return null;var _=kt(v);if(_===null)return null;v=_[c];e:switch(c){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(_=!_.disabled)||(s=s.type,_=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!_;break e;default:s=!1}if(s)return null;if(v&&typeof v!="function")throw Error(t(231,c,typeof v));return v}var aa=!1;if(f)try{var kr={};Object.defineProperty(kr,"passive",{get:function(){aa=!0}}),window.addEventListener("test",kr,kr),window.removeEventListener("test",kr,kr)}catch{aa=!1}function ui(s,c,v,_,w,R,N,z,K){var pe=Array.prototype.slice.call(arguments,3);try{c.apply(v,pe)}catch(Me){this.onError(Me)}}var ci=!1,Ji=null,sa=!1,B=null,Ce={onError:function(s){ci=!0,Ji=s}};function He(s,c,v,_,w,R,N,z,K){ci=!1,Ji=null,ui.apply(Ce,arguments)}function Qe(s,c,v,_,w,R,N,z,K){if(He.apply(this,arguments),ci){if(ci){var pe=Ji;ci=!1,Ji=null}else throw Error(t(198));sa||(sa=!0,B=pe)}}function jt(s){var c=s,v=s;if(s.alternate)for(;c.return;)c=c.return;else{s=c;do c=s,c.flags&4098&&(v=c.return),s=c.return;while(s)}return c.tag===3?v:null}function Rt(s){if(s.tag===13){var c=s.memoizedState;if(c===null&&(s=s.alternate,s!==null&&(c=s.memoizedState)),c!==null)return c.dehydrated}return null}function $t(s){if(jt(s)!==s)throw Error(t(188))}function St(s){var c=s.alternate;if(!c){if(c=jt(s),c===null)throw Error(t(188));return c!==s?null:s}for(var v=s,_=c;;){var w=v.return;if(w===null)break;var R=w.alternate;if(R===null){if(_=w.return,_!==null){v=_;continue}break}if(w.child===R.child){for(R=w.child;R;){if(R===v)return $t(w),s;if(R===_)return $t(w),c;R=R.sibling}throw Error(t(188))}if(v.return!==_.return)v=w,_=R;else{for(var N=!1,z=w.child;z;){if(z===v){N=!0,v=w,_=R;break}if(z===_){N=!0,_=w,v=R;break}z=z.sibling}if(!N){for(z=R.child;z;){if(z===v){N=!0,v=R,_=w;break}if(z===_){N=!0,_=R,v=w;break}z=z.sibling}if(!N)throw Error(t(189))}}if(v.alternate!==_)throw Error(t(190))}if(v.tag!==3)throw Error(t(188));return v.stateNode.current===v?s:c}function jr(s){return s=St(s),s!==null?ar(s):null}function ar(s){if(s.tag===5||s.tag===6)return s;for(s=s.child;s!==null;){var c=ar(s);if(c!==null)return c;s=s.sibling}return null}var sr=e.unstable_scheduleCallback,Zi=e.unstable_cancelCallback,Xs=e.unstable_shouldYield,pf=e.unstable_requestPaint,Rn=e.unstable_now,B_=e.unstable_getCurrentPriorityLevel,ks=e.unstable_ImmediatePriority,ln=e.unstable_UserBlockingPriority,Js=e.unstable_NormalPriority,Mu=e.unstable_LowPriority,vf=e.unstable_IdlePriority,Pu=null,la=null;function mp(s){if(la&&typeof la.onCommitFiberRoot=="function")try{la.onCommitFiberRoot(Pu,s,void 0,(s.current.flags&128)===128)}catch{}}var Ho=Math.clz32?Math.clz32:Fm,gp=Math.log,yp=Math.LN2;function Fm(s){return s>>>=0,s===0?32:31-(gp(s)/yp|0)|0}var mf=64,Du=4194304;function As(s){switch(s&-s){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 s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function jo(s,c){var v=s.pendingLanes;if(v===0)return 0;var _=0,w=s.suspendedLanes,R=s.pingedLanes,N=v&268435455;if(N!==0){var z=N&~w;z!==0?_=As(z):(R&=N,R!==0&&(_=As(R)))}else N=v&~w,N!==0?_=As(N):R!==0&&(_=As(R));if(_===0)return 0;if(c!==0&&c!==_&&!(c&w)&&(w=_&-_,R=c&-c,w>=R||w===16&&(R&4194240)!==0))return c;if(_&4&&(_|=v&16),c=s.entangledLanes,c!==0)for(s=s.entanglements,c&=_;0<c;)v=31-Ho(c),w=1<<v,_|=s[v],c&=~w;return _}function Lu(s,c){switch(s){case 1:case 2:case 4:return c+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 c+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 Uu(s,c){for(var v=s.suspendedLanes,_=s.pingedLanes,w=s.expirationTimes,R=s.pendingLanes;0<R;){var N=31-Ho(R),z=1<<N,K=w[N];K===-1?(!(z&v)||z&_)&&(w[N]=Lu(z,c)):K<=c&&(s.expiredLanes|=z),R&=~z}}function Fu(s){return s=s.pendingLanes&-1073741825,s!==0?s:s&1073741824?1073741824:0}function gf(){var s=mf;return mf<<=1,!(mf&4194240)&&(mf=64),s}function yf(s){for(var c=[],v=0;31>v;v++)c.push(s);return c}function Pl(s,c,v){s.pendingLanes|=c,c!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,c=31-Ho(c),s[c]=v}function q_(s,c){var v=s.pendingLanes&~c;s.pendingLanes=c,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=c,s.mutableReadLanes&=c,s.entangledLanes&=c,c=s.entanglements;var _=s.eventTimes;for(s=s.expirationTimes;0<v;){var w=31-Ho(v),R=1<<w;c[w]=0,_[w]=-1,s[w]=-1,v&=~R}}function Zs(s,c){var v=s.entangledLanes|=c;for(s=s.entanglements;v;){var _=31-Ho(v),w=1<<_;w&c|s[_]&c&&(s[_]|=c),v&=~w}}var Nn=0;function _f(s){return s&=-s,1<s?4<s?s&268435455?16:536870912:4:1}var Kc,Cf,kn,Ef,wf,Vt=!1,Gc=[],Ar=null,ua=null,zo=null,$u=new Map,zr=new Map,$n=[],$m="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 ca(s,c){switch(s){case"focusin":case"focusout":Ar=null;break;case"dragenter":case"dragleave":ua=null;break;case"mouseover":case"mouseout":zo=null;break;case"pointerover":case"pointerout":$u.delete(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":zr.delete(c.pointerId)}}function Li(s,c,v,_,w,R){return s===null||s.nativeEvent!==R?(s={blockedOn:c,domEventName:v,eventSystemFlags:_,nativeEvent:R,targetContainers:[w]},c!==null&&(c=Mp(c),c!==null&&Cf(c)),s):(s.eventSystemFlags|=_,c=s.targetContainers,w!==null&&c.indexOf(w)===-1&&c.push(w),s)}function el(s,c,v,_,w){switch(c){case"focusin":return Ar=Li(Ar,s,c,v,_,w),!0;case"dragenter":return ua=Li(ua,s,c,v,_,w),!0;case"mouseover":return zo=Li(zo,s,c,v,_,w),!0;case"pointerover":var R=w.pointerId;return $u.set(R,Li($u.get(R)||null,s,c,v,_,w)),!0;case"gotpointercapture":return R=w.pointerId,zr.set(R,Li(zr.get(R)||null,s,c,v,_,w)),!0}return!1}function Hm(s){var c=es(s.target);if(c!==null){var v=jt(c);if(v!==null){if(c=v.tag,c===13){if(c=Rt(v),c!==null){s.blockedOn=c,wf(s.priority,function(){kn(v)});return}}else if(c===3&&v.stateNode.current.memoizedState.isDehydrated){s.blockedOn=v.tag===3?v.stateNode.containerInfo:null;return}}}s.blockedOn=null}function Dl(s){if(s.blockedOn!==null)return!1;for(var c=s.targetContainers;0<c.length;){var v=Sf(s.domEventName,s.eventSystemFlags,c[0],s.nativeEvent);if(v===null){v=s.nativeEvent;var _=new v.constructor(v.type,v);yt=_,v.target.dispatchEvent(_),yt=null}else return c=Mp(v),c!==null&&Cf(c),s.blockedOn=v,!1;c.shift()}return!0}function Hu(s,c,v){Dl(s)&&v.delete(c)}function jm(){Vt=!1,Ar!==null&&Dl(Ar)&&(Ar=null),ua!==null&&Dl(ua)&&(ua=null),zo!==null&&Dl(zo)&&(zo=null),$u.forEach(Hu),zr.forEach(Hu)}function Xa(s,c){s.blockedOn===c&&(s.blockedOn=null,Vt||(Vt=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,jm)))}function ju(s){function c(w){return Xa(w,s)}if(0<Gc.length){Xa(Gc[0],s);for(var v=1;v<Gc.length;v++){var _=Gc[v];_.blockedOn===s&&(_.blockedOn=null)}}for(Ar!==null&&Xa(Ar,s),ua!==null&&Xa(ua,s),zo!==null&&Xa(zo,s),$u.forEach(c),zr.forEach(c),v=0;v<$n.length;v++)_=$n[v],_.blockedOn===s&&(_.blockedOn=null);for(;0<$n.length&&(v=$n[0],v.blockedOn===null);)Hm(v),v.blockedOn===null&&$n.shift()}var zu=F.ReactCurrentBatchConfig,Ja=!0;function bf(s,c,v,_){var w=Nn,R=zu.transition;zu.transition=null;try{Nn=1,qu(s,c,v,_)}finally{Nn=w,zu.transition=R}}function Bu(s,c,v,_){var w=Nn,R=zu.transition;zu.transition=null;try{Nn=4,qu(s,c,v,_)}finally{Nn=w,zu.transition=R}}function qu(s,c,v,_){if(Ja){var w=Sf(s,c,v,_);if(w===null)Qm(s,c,_,Wc,v),ca(s,_);else if(el(w,s,c,v,_))_.stopPropagation();else if(ca(s,_),c&4&&-1<$m.indexOf(s)){for(;w!==null;){var R=Mp(w);if(R!==null&&Kc(R),R=Sf(s,c,v,_),R===null&&Qm(s,c,_,Wc,v),R===w)break;w=R}w!==null&&_.stopPropagation()}else Qm(s,c,_,null,v)}}var Wc=null;function Sf(s,c,v,_){if(Wc=null,s=et(_),s=es(s),s!==null)if(c=jt(s),c===null)s=null;else if(v=c.tag,v===13){if(s=Rt(c),s!==null)return s;s=null}else if(v===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;s=null}else c!==s&&(s=null);return Wc=s,null}function _p(s){switch(s){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(B_()){case ks:return 1;case ln:return 4;case Js:case Mu:return 16;case vf:return 536870912;default:return 16}default:return 16}}var xs=null,O=null,q=null;function de(){if(q)return q;var s,c=O,v=c.length,_,w="value"in xs?xs.value:xs.textContent,R=w.length;for(s=0;s<v&&c[s]===w[s];s++);var N=v-s;for(_=1;_<=N&&c[v-_]===w[R-_];_++);return q=w.slice(s,1<_?1-_:void 0)}function _e(s){var c=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&c===13&&(s=13)):s=c,s===10&&(s=13),32<=s||s===13?s:0}function je(){return!0}function Pt(){return!1}function Ze(s){function c(v,_,w,R,N){this._reactName=v,this._targetInst=w,this.type=_,this.nativeEvent=R,this.target=N,this.currentTarget=null;for(var z in s)s.hasOwnProperty(z)&&(v=s[z],this[z]=v?v(R):R[z]);return this.isDefaultPrevented=(R.defaultPrevented!=null?R.defaultPrevented:R.returnValue===!1)?je:Pt,this.isPropagationStopped=Pt,this}return H(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var v=this.nativeEvent;v&&(v.preventDefault?v.preventDefault():typeof v.returnValue!="unknown"&&(v.returnValue=!1),this.isDefaultPrevented=je)},stopPropagation:function(){var v=this.nativeEvent;v&&(v.stopPropagation?v.stopPropagation():typeof v.cancelBubble!="unknown"&&(v.cancelBubble=!0),this.isPropagationStopped=je)},persist:function(){},isPersistent:je}),c}var Ot={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=Ze(Ot),An=H({},Ot,{view:0,detail:0}),tr=Ze(An),Gn,nr,lr,Cn=H({},An,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Y_,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==lr&&(lr&&s.type==="mousemove"?(Gn=s.screenX-lr.screenX,nr=s.screenY-lr.screenY):nr=Gn=0,lr=s),Gn)},movementY:function(s){return"movementY"in s?s.movementY:nr}}),Ll=Ze(Cn),Tf=H({},Cn,{dataTransfer:0}),Cp=Ze(Tf),V_=H({},An,{relatedTarget:0}),Is=Ze(V_),Ep=H({},Ot,{animationName:0,elapsedTime:0,pseudoElement:0}),wp=Ze(Ep),K_=H({},Ot,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),RA=Ze(K_),kA=H({},Ot,{data:0}),G_=Ze(kA),W_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},yb={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"},_b={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cb(s){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(s):(s=_b[s])?!!c[s]:!1}function Y_(){return Cb}var Ul=H({},An,{key:function(s){if(s.key){var c=W_[s.key]||s.key;if(c!=="Unidentified")return c}return s.type==="keypress"?(s=_e(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?yb[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Y_,charCode:function(s){return s.type==="keypress"?_e(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?_e(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),AA=Ze(Ul),Q_=H({},Cn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zm=Ze(Q_),X_=H({},An,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Y_}),xA=Ze(X_),Bm=H({},Ot,{propertyName:0,elapsedTime:0,pseudoElement:0}),Eb=Ze(Bm),da=H({},Cn,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),Fl=Ze(da),di=[9,13,27,32],Os=f&&"CompositionEvent"in window,Yc=null;f&&"documentMode"in document&&(Yc=document.documentMode);var qm=f&&"TextEvent"in window&&!Yc,wb=f&&(!Os||Yc&&8<Yc&&11>=Yc),Rf=String.fromCharCode(32),bb=!1;function Sb(s,c){switch(s){case"keyup":return di.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vm(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var kf=!1;function IA(s,c){switch(s){case"compositionend":return Vm(c);case"keypress":return c.which!==32?null:(bb=!0,Rf);case"textInput":return s=c.data,s===Rf&&bb?null:s;default:return null}}function OA(s,c){if(kf)return s==="compositionend"||!Os&&Sb(s,c)?(s=de(),q=O=xs=null,kf=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return wb&&c.locale!=="ko"?null:c.data;default:return null}}var Tb={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 Rb(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c==="input"?!!Tb[s.type]:c==="textarea"}function kb(s,c,v,_){Fn(_),c=Ip(c,"onChange"),0<c.length&&(v=new un("onChange","change",null,v,_),s.push({event:v,listeners:c}))}var bp=null,Af=null;function xf(s){Ym(s,0)}function If(s){var c=Nf(s);if(Eo(c))return s}function Ab(s,c){if(s==="change")return c}var J_=!1;if(f){var Z_;if(f){var e0="oninput"in document;if(!e0){var xb=document.createElement("div");xb.setAttribute("oninput","return;"),e0=typeof xb.oninput=="function"}Z_=e0}else Z_=!1;J_=Z_&&(!document.documentMode||9<document.documentMode)}function Ib(){bp&&(bp.detachEvent("onpropertychange",Ob),Af=bp=null)}function Ob(s){if(s.propertyName==="value"&&If(Af)){var c=[];kb(c,Af,s,et(s)),bo(xf,c)}}function NA(s,c,v){s==="focusin"?(Ib(),bp=c,Af=v,bp.attachEvent("onpropertychange",Ob)):s==="focusout"&&Ib()}function MA(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return If(Af)}function PA(s,c){if(s==="click")return If(c)}function Nb(s,c){if(s==="input"||s==="change")return If(c)}function DA(s,c){return s===c&&(s!==0||1/s===1/c)||s!==s&&c!==c}var Za=typeof Object.is=="function"?Object.is:DA;function Sp(s,c){if(Za(s,c))return!0;if(typeof s!="object"||s===null||typeof c!="object"||c===null)return!1;var v=Object.keys(s),_=Object.keys(c);if(v.length!==_.length)return!1;for(_=0;_<v.length;_++){var w=v[_];if(!p.call(c,w)||!Za(s[w],c[w]))return!1}return!0}function Mb(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function Pb(s,c){var v=Mb(s);s=0;for(var _;v;){if(v.nodeType===3){if(_=s+v.textContent.length,s<=c&&_>=c)return{node:v,offset:c-s};s=_}e:{for(;v;){if(v.nextSibling){v=v.nextSibling;break e}v=v.parentNode}v=void 0}v=Mb(v)}}function Db(s,c){return s&&c?s===c?!0:s&&s.nodeType===3?!1:c&&c.nodeType===3?Db(s,c.parentNode):"contains"in s?s.contains(c):s.compareDocumentPosition?!!(s.compareDocumentPosition(c)&16):!1:!1}function Km(){for(var s=window,c=ur();c instanceof s.HTMLIFrameElement;){try{var v=typeof c.contentWindow.location.href=="string"}catch{v=!1}if(v)s=c.contentWindow;else break;c=ur(s.document)}return c}function $l(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c&&(c==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||c==="textarea"||s.contentEditable==="true")}function Gm(s){var c=Km(),v=s.focusedElem,_=s.selectionRange;if(c!==v&&v&&v.ownerDocument&&Db(v.ownerDocument.documentElement,v)){if(_!==null&&$l(v)){if(c=_.start,s=_.end,s===void 0&&(s=c),"selectionStart"in v)v.selectionStart=c,v.selectionEnd=Math.min(s,v.value.length);else if(s=(c=v.ownerDocument||document)&&c.defaultView||window,s.getSelection){s=s.getSelection();var w=v.textContent.length,R=Math.min(_.start,w);_=_.end===void 0?R:Math.min(_.end,w),!s.extend&&R>_&&(w=_,_=R,R=w),w=Pb(v,R);var N=Pb(v,_);w&&N&&(s.rangeCount!==1||s.anchorNode!==w.node||s.anchorOffset!==w.offset||s.focusNode!==N.node||s.focusOffset!==N.offset)&&(c=c.createRange(),c.setStart(w.node,w.offset),s.removeAllRanges(),R>_?(s.addRange(c),s.extend(N.node,N.offset)):(c.setEnd(N.node,N.offset),s.addRange(c)))}}for(c=[],s=v;s=s.parentNode;)s.nodeType===1&&c.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<c.length;v++)s=c[v],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var Lb=f&&"documentMode"in document&&11>=document.documentMode,Ns=null,t0=null,Tp=null,n0=!1;function Ub(s,c,v){var _=v.window===v?v.document:v.nodeType===9?v:v.ownerDocument;n0||Ns==null||Ns!==ur(_)||(_=Ns,"selectionStart"in _&&$l(_)?_={start:_.selectionStart,end:_.selectionEnd}:(_=(_.ownerDocument&&_.ownerDocument.defaultView||window).getSelection(),_={anchorNode:_.anchorNode,anchorOffset:_.anchorOffset,focusNode:_.focusNode,focusOffset:_.focusOffset}),Tp&&Sp(Tp,_)||(Tp=_,_=Ip(t0,"onSelect"),0<_.length&&(c=new un("onSelect","select",null,c,v),s.push({event:c,listeners:_}),c.target=Ns)))}function Wm(s,c){var v={};return v[s.toLowerCase()]=c.toLowerCase(),v["Webkit"+s]="webkit"+c,v["Moz"+s]="moz"+c,v}var Qc={animationend:Wm("Animation","AnimationEnd"),animationiteration:Wm("Animation","AnimationIteration"),animationstart:Wm("Animation","AnimationStart"),transitionend:Wm("Transition","TransitionEnd")},r0={},i0={};f&&(i0=document.createElement("div").style,"AnimationEvent"in window||(delete Qc.animationend.animation,delete Qc.animationiteration.animation,delete Qc.animationstart.animation),"TransitionEvent"in window||delete Qc.transitionend.transition);function Ui(s){if(r0[s])return r0[s];if(!Qc[s])return s;var c=Qc[s],v;for(v in c)if(c.hasOwnProperty(v)&&v in i0)return r0[s]=c[v];return s}var o0=Ui("animationend"),Fb=Ui("animationiteration"),$b=Ui("animationstart"),Hb=Ui("transitionend"),jb=new Map,zb="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 Hl(s,c){jb.set(s,c),l(c,[s])}for(var Rp=0;Rp<zb.length;Rp++){var Xc=zb[Rp],LA=Xc.toLowerCase(),kp=Xc[0].toUpperCase()+Xc.slice(1);Hl(LA,"on"+kp)}Hl(o0,"onAnimationEnd"),Hl(Fb,"onAnimationIteration"),Hl($b,"onAnimationStart"),Hl("dblclick","onDoubleClick"),Hl("focusin","onFocus"),Hl("focusout","onBlur"),Hl(Hb,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ap="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(" "),UA=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ap));function Bb(s,c,v){var _=s.type||"unknown-event";s.currentTarget=v,Qe(_,c,void 0,s),s.currentTarget=null}function Ym(s,c){c=(c&4)!==0;for(var v=0;v<s.length;v++){var _=s[v],w=_.event;_=_.listeners;e:{var R=void 0;if(c)for(var N=_.length-1;0<=N;N--){var z=_[N],K=z.instance,pe=z.currentTarget;if(z=z.listener,K!==R&&w.isPropagationStopped())break e;Bb(w,z,pe),R=K}else for(N=0;N<_.length;N++){if(z=_[N],K=z.instance,pe=z.currentTarget,z=z.listener,K!==R&&w.isPropagationStopped())break e;Bb(w,z,pe),R=K}}}if(sa)throw s=B,sa=!1,B=null,s}function rr(s,c){var v=c[f0];v===void 0&&(v=c[f0]=new Set);var _=s+"__bubble";v.has(_)||(qb(c,s,2,!1),v.add(_))}function Vu(s,c,v){var _=0;c&&(_|=4),qb(v,s,_,c)}var jl="_reactListening"+Math.random().toString(36).slice(2);function Of(s){if(!s[jl]){s[jl]=!0,r.forEach(function(v){v!=="selectionchange"&&(UA.has(v)||Vu(v,!1,s),Vu(v,!0,s))});var c=s.nodeType===9?s:s.ownerDocument;c===null||c[jl]||(c[jl]=!0,Vu("selectionchange",!1,c))}}function qb(s,c,v,_){switch(_p(c)){case 1:var w=bf;break;case 4:w=Bu;break;default:w=qu}v=w.bind(null,c,v,s),w=void 0,!aa||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(w=!0),_?w!==void 0?s.addEventListener(c,v,{capture:!0,passive:w}):s.addEventListener(c,v,!0):w!==void 0?s.addEventListener(c,v,{passive:w}):s.addEventListener(c,v,!1)}function Qm(s,c,v,_,w){var R=_;if(!(c&1)&&!(c&2)&&_!==null)e:for(;;){if(_===null)return;var N=_.tag;if(N===3||N===4){var z=_.stateNode.containerInfo;if(z===w||z.nodeType===8&&z.parentNode===w)break;if(N===4)for(N=_.return;N!==null;){var K=N.tag;if((K===3||K===4)&&(K=N.stateNode.containerInfo,K===w||K.nodeType===8&&K.parentNode===w))return;N=N.return}for(;z!==null;){if(N=es(z),N===null)return;if(K=N.tag,K===5||K===6){_=R=N;continue e}z=z.parentNode}}_=_.return}bo(function(){var pe=R,Me=et(v),De=[];e:{var Ne=jb.get(s);if(Ne!==void 0){var it=un,dt=s;switch(s){case"keypress":if(_e(v)===0)break e;case"keydown":case"keyup":it=AA;break;case"focusin":dt="focus",it=Is;break;case"focusout":dt="blur",it=Is;break;case"beforeblur":case"afterblur":it=Is;break;case"click":if(v.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":it=Ll;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":it=Cp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":it=xA;break;case o0:case Fb:case $b:it=wp;break;case Hb:it=Eb;break;case"scroll":it=tr;break;case"wheel":it=Fl;break;case"copy":case"cut":case"paste":it=RA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":it=zm}var mt=(c&4)!==0,Zr=!mt&&s==="scroll",ie=mt?Ne!==null?Ne+"Capture":null:Ne;mt=[];for(var X=pe,ue;X!==null;){ue=X;var ze=ue.stateNode;if(ue.tag===5&&ze!==null&&(ue=ze,ie!==null&&(ze=Ti(X,ie),ze!=null&&mt.push(xp(X,ze,ue)))),Zr)break;X=X.return}0<mt.length&&(Ne=new it(Ne,dt,null,v,Me),De.push({event:Ne,listeners:mt}))}}if(!(c&7)){e:{if(Ne=s==="mouseover"||s==="pointerover",it=s==="mouseout"||s==="pointerout",Ne&&v!==yt&&(dt=v.relatedTarget||v.fromElement)&&(es(dt)||dt[zl]))break e;if((it||Ne)&&(Ne=Me.window===Me?Me:(Ne=Me.ownerDocument)?Ne.defaultView||Ne.parentWindow:window,it?(dt=v.relatedTarget||v.toElement,it=pe,dt=dt?es(dt):null,dt!==null&&(Zr=jt(dt),dt!==Zr||dt.tag!==5&&dt.tag!==6)&&(dt=null)):(it=null,dt=pe),it!==dt)){if(mt=Ll,ze="onMouseLeave",ie="onMouseEnter",X="mouse",(s==="pointerout"||s==="pointerover")&&(mt=zm,ze="onPointerLeave",ie="onPointerEnter",X="pointer"),Zr=it==null?Ne:Nf(it),ue=dt==null?Ne:Nf(dt),Ne=new mt(ze,X+"leave",it,v,Me),Ne.target=Zr,Ne.relatedTarget=ue,ze=null,es(Me)===pe&&(mt=new mt(ie,X+"enter",dt,v,Me),mt.target=ue,mt.relatedTarget=Zr,ze=mt),Zr=ze,it&&dt)t:{for(mt=it,ie=dt,X=0,ue=mt;ue;ue=Jc(ue))X++;for(ue=0,ze=ie;ze;ze=Jc(ze))ue++;for(;0<X-ue;)mt=Jc(mt),X--;for(;0<ue-X;)ie=Jc(ie),ue--;for(;X--;){if(mt===ie||ie!==null&&mt===ie.alternate)break t;mt=Jc(mt),ie=Jc(ie)}mt=null}else mt=null;it!==null&&a0(De,Ne,it,mt,!1),dt!==null&&Zr!==null&&a0(De,Zr,dt,mt,!0)}}e:{if(Ne=pe?Nf(pe):window,it=Ne.nodeName&&Ne.nodeName.toLowerCase(),it==="select"||it==="input"&&Ne.type==="file")var Ct=Ab;else if(Rb(Ne))if(J_)Ct=Nb;else{Ct=MA;var ft=NA}else(it=Ne.nodeName)&&it.toLowerCase()==="input"&&(Ne.type==="checkbox"||Ne.type==="radio")&&(Ct=PA);if(Ct&&(Ct=Ct(s,pe))){kb(De,Ct,v,Me);break e}ft&&ft(s,Ne,pe),s==="focusout"&&(ft=Ne._wrapperState)&&ft.controlled&&Ne.type==="number"&&Di(Ne,"number",Ne.value)}switch(ft=pe?Nf(pe):window,s){case"focusin":(Rb(ft)||ft.contentEditable==="true")&&(Ns=ft,t0=pe,Tp=null);break;case"focusout":Tp=t0=Ns=null;break;case"mousedown":n0=!0;break;case"contextmenu":case"mouseup":case"dragend":n0=!1,Ub(De,v,Me);break;case"selectionchange":if(Lb)break;case"keydown":case"keyup":Ub(De,v,Me)}var Tt;if(Os)e:{switch(s){case"compositionstart":var Bt="onCompositionStart";break e;case"compositionend":Bt="onCompositionEnd";break e;case"compositionupdate":Bt="onCompositionUpdate";break e}Bt=void 0}else kf?Sb(s,v)&&(Bt="onCompositionEnd"):s==="keydown"&&v.keyCode===229&&(Bt="onCompositionStart");Bt&&(wb&&v.locale!=="ko"&&(kf||Bt!=="onCompositionStart"?Bt==="onCompositionEnd"&&kf&&(Tt=de()):(xs=Me,O="value"in xs?xs.value:xs.textContent,kf=!0)),ft=Ip(pe,Bt),0<ft.length&&(Bt=new G_(Bt,s,null,v,Me),De.push({event:Bt,listeners:ft}),Tt?Bt.data=Tt:(Tt=Vm(v),Tt!==null&&(Bt.data=Tt)))),(Tt=qm?IA(s,v):OA(s,v))&&(pe=Ip(pe,"onBeforeInput"),0<pe.length&&(Me=new G_("onBeforeInput","beforeinput",null,v,Me),De.push({event:Me,listeners:pe}),Me.data=Tt))}Ym(De,c)})}function xp(s,c,v){return{instance:s,listener:c,currentTarget:v}}function Ip(s,c){for(var v=c+"Capture",_=[];s!==null;){var w=s,R=w.stateNode;w.tag===5&&R!==null&&(w=R,R=Ti(s,v),R!=null&&_.unshift(xp(s,R,w)),R=Ti(s,c),R!=null&&_.push(xp(s,R,w))),s=s.return}return _}function Jc(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5);return s||null}function a0(s,c,v,_,w){for(var R=c._reactName,N=[];v!==null&&v!==_;){var z=v,K=z.alternate,pe=z.stateNode;if(K!==null&&K===_)break;z.tag===5&&pe!==null&&(z=pe,w?(K=Ti(v,R),K!=null&&N.unshift(xp(v,K,z))):w||(K=Ti(v,R),K!=null&&N.push(xp(v,K,z)))),v=v.return}N.length!==0&&s.push({event:c,listeners:N})}var s0=/\r\n?/g,FA=/\u0000|\uFFFD/g;function l0(s){return(typeof s=="string"?s:""+s).replace(s0,`
94
- `).replace(FA,"")}function Xm(s,c,v){if(c=l0(c),l0(s)!==c&&v)throw Error(t(425))}function Jm(){}var u0=null,Zc=null;function Op(s,c){return s==="textarea"||s==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var ed=typeof setTimeout=="function"?setTimeout:void 0,Vb=typeof clearTimeout=="function"?clearTimeout:void 0,c0=typeof Promise=="function"?Promise:void 0,d0=typeof queueMicrotask=="function"?queueMicrotask:typeof c0<"u"?function(s){return c0.resolve(null).then(s).catch($A)}:ed;function $A(s){setTimeout(function(){throw s})}function Ku(s,c){var v=c,_=0;do{var w=v.nextSibling;if(s.removeChild(v),w&&w.nodeType===8)if(v=w.data,v==="/$"){if(_===0){s.removeChild(w),ju(c);return}_--}else v!=="$"&&v!=="$?"&&v!=="$!"||_++;v=w}while(v);ju(c)}function Ms(s){for(;s!=null;s=s.nextSibling){var c=s.nodeType;if(c===1||c===3)break;if(c===8){if(c=s.data,c==="$"||c==="$!"||c==="$?")break;if(c==="/$")return null}}return s}function Np(s){s=s.previousSibling;for(var c=0;s;){if(s.nodeType===8){var v=s.data;if(v==="$"||v==="$!"||v==="$?"){if(c===0)return s;c--}else v==="/$"&&c++}s=s.previousSibling}return null}var Gu=Math.random().toString(36).slice(2),tl="__reactFiber$"+Gu,td="__reactProps$"+Gu,zl="__reactContainer$"+Gu,f0="__reactEvents$"+Gu,HA="__reactListeners$"+Gu,h0="__reactHandles$"+Gu;function es(s){var c=s[tl];if(c)return c;for(var v=s.parentNode;v;){if(c=v[zl]||v[tl]){if(v=c.alternate,c.child!==null||v!==null&&v.child!==null)for(s=Np(s);s!==null;){if(v=s[tl])return v;s=Np(s)}return c}s=v,v=s.parentNode}return null}function Mp(s){return s=s[tl]||s[zl],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function Nf(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(t(33))}function kt(s){return s[td]||null}var Wu=[],hr=-1;function en(s){return{current:s}}function Ln(s){0>hr||(s.current=Wu[hr],Wu[hr]=null,hr--)}function Hn(s,c){hr++,Wu[hr]=s.current,s.current=c}var nl={},zt=en(nl),Br=en(!1),fa=nl;function ts(s,c){var v=s.type.contextTypes;if(!v)return nl;var _=s.stateNode;if(_&&_.__reactInternalMemoizedUnmaskedChildContext===c)return _.__reactInternalMemoizedMaskedChildContext;var w={},R;for(R in v)w[R]=c[R];return _&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=c,s.__reactInternalMemoizedMaskedChildContext=w),w}function br(s){return s=s.childContextTypes,s!=null}function ns(){Ln(Br),Ln(zt)}function Yu(s,c,v){if(zt.current!==nl)throw Error(t(168));Hn(zt,c),Hn(Br,v)}function Pp(s,c,v){var _=s.stateNode;if(c=c.childContextTypes,typeof _.getChildContext!="function")return v;_=_.getChildContext();for(var w in _)if(!(w in c))throw Error(t(108,qt(s)||"Unknown",w));return H({},v,_)}function Zm(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||nl,fa=zt.current,Hn(zt,s),Hn(Br,Br.current),!0}function Kb(s,c,v){var _=s.stateNode;if(!_)throw Error(t(169));v?(s=Pp(s,c,fa),_.__reactInternalMemoizedMergedChildContext=s,Ln(Br),Ln(zt),Hn(zt,s)):Ln(Br),Hn(Br,v)}var xa=null,Fi=!1,Dp=!1;function p0(s){xa===null?xa=[s]:xa.push(s)}function v0(s){Fi=!0,p0(s)}function ha(){if(!Dp&&xa!==null){Dp=!0;var s=0,c=Nn;try{var v=xa;for(Nn=1;s<v.length;s++){var _=v[s];do _=_(!0);while(_!==null)}xa=null,Fi=!1}catch(w){throw xa!==null&&(xa=xa.slice(s+1)),sr(ks,ha),w}finally{Nn=c,Dp=!1}}return null}var Qu=[],pa=0,nd=null,Mf=0,va=[],So=0,rs=null,eo=1,Bl="";function Ia(s,c){Qu[pa++]=Mf,Qu[pa++]=nd,nd=s,Mf=c}function m0(s,c,v){va[So++]=eo,va[So++]=Bl,va[So++]=rs,rs=s;var _=eo;s=Bl;var w=32-Ho(_)-1;_&=~(1<<w),v+=1;var R=32-Ho(c)+w;if(30<R){var N=w-w%5;R=(_&(1<<N)-1).toString(32),_>>=N,w-=N,eo=1<<32-Ho(c)+w|v<<w|_,Bl=R+s}else eo=1<<R|v<<w|_,Bl=s}function eg(s){s.return!==null&&(Ia(s,1),m0(s,1,0))}function g0(s){for(;s===nd;)nd=Qu[--pa],Qu[pa]=null,Mf=Qu[--pa],Qu[pa]=null;for(;s===rs;)rs=va[--So],va[So]=null,Bl=va[--So],va[So]=null,eo=va[--So],va[So]=null}var Oa=null,ma=null,pr=!1,is=null;function y0(s,c){var v=cs(5,null,null,0);v.elementType="DELETED",v.stateNode=c,v.return=s,c=s.deletions,c===null?(s.deletions=[v],s.flags|=16):c.push(v)}function Gb(s,c){switch(s.tag){case 5:var v=s.type;return c=c.nodeType!==1||v.toLowerCase()!==c.nodeName.toLowerCase()?null:c,c!==null?(s.stateNode=c,Oa=s,ma=Ms(c.firstChild),!0):!1;case 6:return c=s.pendingProps===""||c.nodeType!==3?null:c,c!==null?(s.stateNode=c,Oa=s,ma=null,!0):!1;case 13:return c=c.nodeType!==8?null:c,c!==null?(v=rs!==null?{id:eo,overflow:Bl}:null,s.memoizedState={dehydrated:c,treeContext:v,retryLane:1073741824},v=cs(18,null,null,0),v.stateNode=c,v.return=s,s.child=v,Oa=s,ma=null,!0):!1;default:return!1}}function tg(s){return(s.mode&1)!==0&&(s.flags&128)===0}function ng(s){if(pr){var c=ma;if(c){var v=c;if(!Gb(s,c)){if(tg(s))throw Error(t(418));c=Ms(v.nextSibling);var _=Oa;c&&Gb(s,c)?y0(_,v):(s.flags=s.flags&-4097|2,pr=!1,Oa=s)}}else{if(tg(s))throw Error(t(418));s.flags=s.flags&-4097|2,pr=!1,Oa=s}}}function Wb(s){for(s=s.return;s!==null&&s.tag!==5&&s.tag!==3&&s.tag!==13;)s=s.return;Oa=s}function rg(s){if(s!==Oa)return!1;if(!pr)return Wb(s),pr=!0,!1;var c;if((c=s.tag!==3)&&!(c=s.tag!==5)&&(c=s.type,c=c!=="head"&&c!=="body"&&!Op(s.type,s.memoizedProps)),c&&(c=ma)){if(tg(s))throw Yb(),Error(t(418));for(;c;)y0(s,c),c=Ms(c.nextSibling)}if(Wb(s),s.tag===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(t(317));e:{for(s=s.nextSibling,c=0;s;){if(s.nodeType===8){var v=s.data;if(v==="/$"){if(c===0){ma=Ms(s.nextSibling);break e}c--}else v!=="$"&&v!=="$!"&&v!=="$?"||c++}s=s.nextSibling}ma=null}}else ma=Oa?Ms(s.stateNode.nextSibling):null;return!0}function Yb(){for(var s=ma;s;)s=Ms(s.nextSibling)}function xr(){ma=Oa=null,pr=!1}function _0(s){is===null?is=[s]:is.push(s)}var ig=F.ReactCurrentBatchConfig;function Na(s,c){if(s&&s.defaultProps){c=H({},c),s=s.defaultProps;for(var v in s)c[v]===void 0&&(c[v]=s[v]);return c}return c}var rl=en(null),og=null,Xu=null,C0=null;function E0(){C0=Xu=og=null}function Ju(s){var c=rl.current;Ln(rl),s._currentValue=c}function $i(s,c,v){for(;s!==null;){var _=s.alternate;if((s.childLanes&c)!==c?(s.childLanes|=c,_!==null&&(_.childLanes|=c)):_!==null&&(_.childLanes&c)!==c&&(_.childLanes|=c),s===v)break;s=s.return}}function Xe(s,c){og=s,C0=Xu=null,s=s.dependencies,s!==null&&s.firstContext!==null&&(s.lanes&c&&(fi=!0),s.firstContext=null)}function Jr(s){var c=s._currentValue;if(C0!==s)if(s={context:s,memoizedValue:c,next:null},Xu===null){if(og===null)throw Error(t(308));Xu=s,og.dependencies={lanes:0,firstContext:s}}else Xu=Xu.next=s;return c}var to=null;function w0(s){to===null?to=[s]:to.push(s)}function Qb(s,c,v,_){var w=c.interleaved;return w===null?(v.next=v,w0(c)):(v.next=w.next,w.next=v),c.interleaved=v,ql(s,_)}function ql(s,c){s.lanes|=c;var v=s.alternate;for(v!==null&&(v.lanes|=c),v=s,s=s.return;s!==null;)s.childLanes|=c,v=s.alternate,v!==null&&(v.childLanes|=c),v=s,s=s.return;return v.tag===3?v.stateNode:null}var Zu=!1;function b0(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ri(s,c){s=s.updateQueue,c.updateQueue===s&&(c.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function Vl(s,c){return{eventTime:s,lane:c,tag:0,payload:null,callback:null,next:null}}function ec(s,c,v){var _=s.updateQueue;if(_===null)return null;if(_=_.shared,gn&2){var w=_.pending;return w===null?c.next=c:(c.next=w.next,w.next=c),_.pending=c,ql(s,v)}return w=_.interleaved,w===null?(c.next=c,w0(_)):(c.next=w.next,w.next=c),_.interleaved=c,ql(s,v)}function ag(s,c,v){if(c=c.updateQueue,c!==null&&(c=c.shared,(v&4194240)!==0)){var _=c.lanes;_&=s.pendingLanes,v|=_,c.lanes=v,Zs(s,v)}}function S0(s,c){var v=s.updateQueue,_=s.alternate;if(_!==null&&(_=_.updateQueue,v===_)){var w=null,R=null;if(v=v.firstBaseUpdate,v!==null){do{var N={eventTime:v.eventTime,lane:v.lane,tag:v.tag,payload:v.payload,callback:v.callback,next:null};R===null?w=R=N:R=R.next=N,v=v.next}while(v!==null);R===null?w=R=c:R=R.next=c}else w=R=c;v={baseState:_.baseState,firstBaseUpdate:w,lastBaseUpdate:R,shared:_.shared,effects:_.effects},s.updateQueue=v;return}s=v.lastBaseUpdate,s===null?v.firstBaseUpdate=c:s.next=c,v.lastBaseUpdate=c}function tc(s,c,v,_){var w=s.updateQueue;Zu=!1;var R=w.firstBaseUpdate,N=w.lastBaseUpdate,z=w.shared.pending;if(z!==null){w.shared.pending=null;var K=z,pe=K.next;K.next=null,N===null?R=pe:N.next=pe,N=K;var Me=s.alternate;Me!==null&&(Me=Me.updateQueue,z=Me.lastBaseUpdate,z!==N&&(z===null?Me.firstBaseUpdate=pe:z.next=pe,Me.lastBaseUpdate=K))}if(R!==null){var De=w.baseState;N=0,Me=pe=K=null,z=R;do{var Ne=z.lane,it=z.eventTime;if((_&Ne)===Ne){Me!==null&&(Me=Me.next={eventTime:it,lane:0,tag:z.tag,payload:z.payload,callback:z.callback,next:null});e:{var dt=s,mt=z;switch(Ne=c,it=v,mt.tag){case 1:if(dt=mt.payload,typeof dt=="function"){De=dt.call(it,De,Ne);break e}De=dt;break e;case 3:dt.flags=dt.flags&-65537|128;case 0:if(dt=mt.payload,Ne=typeof dt=="function"?dt.call(it,De,Ne):dt,Ne==null)break e;De=H({},De,Ne);break e;case 2:Zu=!0}}z.callback!==null&&z.lane!==0&&(s.flags|=64,Ne=w.effects,Ne===null?w.effects=[z]:Ne.push(z))}else it={eventTime:it,lane:Ne,tag:z.tag,payload:z.payload,callback:z.callback,next:null},Me===null?(pe=Me=it,K=De):Me=Me.next=it,N|=Ne;if(z=z.next,z===null){if(z=w.shared.pending,z===null)break;Ne=z,z=Ne.next,Ne.next=null,w.lastBaseUpdate=Ne,w.shared.pending=null}}while(1);if(Me===null&&(K=De),w.baseState=K,w.firstBaseUpdate=pe,w.lastBaseUpdate=Me,c=w.shared.interleaved,c!==null){w=c;do N|=w.lane,w=w.next;while(w!==c)}else R===null&&(w.shared.lanes=0);Yl|=N,s.lanes=N,s.memoizedState=De}}function rd(s,c,v){if(s=c.effects,c.effects=null,s!==null)for(c=0;c<s.length;c++){var _=s[c],w=_.callback;if(w!==null){if(_.callback=null,_=v,typeof w!="function")throw Error(t(191,w));w.call(_)}}}var Xb=new n.Component().refs;function T0(s,c,v,_){c=s.memoizedState,v=v(_,c),v=v==null?c:H({},c,v),s.memoizedState=v,s.lanes===0&&(s.updateQueue.baseState=v)}var sg={isMounted:function(s){return(s=s._reactInternals)?jt(s)===s:!1},enqueueSetState:function(s,c,v){s=s._reactInternals;var _=Ao(),w=hi(s),R=Vl(_,w);R.payload=c,v!=null&&(R.callback=v),c=ec(s,R,w),c!==null&&(xo(c,s,w,_),ag(c,s,w))},enqueueReplaceState:function(s,c,v){s=s._reactInternals;var _=Ao(),w=hi(s),R=Vl(_,w);R.tag=1,R.payload=c,v!=null&&(R.callback=v),c=ec(s,R,w),c!==null&&(xo(c,s,w,_),ag(c,s,w))},enqueueForceUpdate:function(s,c){s=s._reactInternals;var v=Ao(),_=hi(s),w=Vl(v,_);w.tag=2,c!=null&&(w.callback=c),c=ec(s,w,_),c!==null&&(xo(c,s,_,v),ag(c,s,_))}};function Jb(s,c,v,_,w,R,N){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(_,R,N):c.prototype&&c.prototype.isPureReactComponent?!Sp(v,_)||!Sp(w,R):!0}function Zb(s,c,v){var _=!1,w=nl,R=c.contextType;return typeof R=="object"&&R!==null?R=Jr(R):(w=br(c)?fa:zt.current,_=c.contextTypes,R=(_=_!=null)?ts(s,w):nl),c=new c(v,R),s.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=sg,s.stateNode=c,c._reactInternals=s,_&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=w,s.__reactInternalMemoizedMaskedChildContext=R),c}function eS(s,c,v,_){s=c.state,typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(v,_),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(v,_),c.state!==s&&sg.enqueueReplaceState(c,c.state,null)}function lg(s,c,v,_){var w=s.stateNode;w.props=v,w.state=s.memoizedState,w.refs=Xb,b0(s);var R=c.contextType;typeof R=="object"&&R!==null?w.context=Jr(R):(R=br(c)?fa:zt.current,w.context=ts(s,R)),w.state=s.memoizedState,R=c.getDerivedStateFromProps,typeof R=="function"&&(T0(s,c,R,v),w.state=s.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof w.getSnapshotBeforeUpdate=="function"||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(c=w.state,typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount(),c!==w.state&&sg.enqueueReplaceState(w,w.state,null),tc(s,v,w,_),w.state=s.memoizedState),typeof w.componentDidMount=="function"&&(s.flags|=4194308)}function Pf(s,c,v){if(s=v.ref,s!==null&&typeof s!="function"&&typeof s!="object"){if(v._owner){if(v=v._owner,v){if(v.tag!==1)throw Error(t(309));var _=v.stateNode}if(!_)throw Error(t(147,s));var w=_,R=""+s;return c!==null&&c.ref!==null&&typeof c.ref=="function"&&c.ref._stringRef===R?c.ref:(c=function(N){var z=w.refs;z===Xb&&(z=w.refs={}),N===null?delete z[R]:z[R]=N},c._stringRef=R,c)}if(typeof s!="string")throw Error(t(284));if(!v._owner)throw Error(t(290,s))}return s}function ug(s,c){throw s=Object.prototype.toString.call(c),Error(t(31,s==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":s))}function tS(s){var c=s._init;return c(s._payload)}function nS(s){function c(ie,X){if(s){var ue=ie.deletions;ue===null?(ie.deletions=[X],ie.flags|=16):ue.push(X)}}function v(ie,X){if(!s)return null;for(;X!==null;)c(ie,X),X=X.sibling;return null}function _(ie,X){for(ie=new Map;X!==null;)X.key!==null?ie.set(X.key,X):ie.set(X.index,X),X=X.sibling;return ie}function w(ie,X){return ie=uc(ie,X),ie.index=0,ie.sibling=null,ie}function R(ie,X,ue){return ie.index=ue,s?(ue=ie.alternate,ue!==null?(ue=ue.index,ue<X?(ie.flags|=2,X):ue):(ie.flags|=2,X)):(ie.flags|=1048576,X)}function N(ie){return s&&ie.alternate===null&&(ie.flags|=2),ie}function z(ie,X,ue,ze){return X===null||X.tag!==6?(X=ev(ue,ie.mode,ze),X.return=ie,X):(X=w(X,ue),X.return=ie,X)}function K(ie,X,ue,ze){var Ct=ue.type;return Ct===Z?Me(ie,X,ue.props.children,ze,ue.key):X!==null&&(X.elementType===Ct||typeof Ct=="object"&&Ct!==null&&Ct.$$typeof===me&&tS(Ct)===X.type)?(ze=w(X,ue.props),ze.ref=Pf(ie,X,ue),ze.return=ie,ze):(ze=jg(ue.type,ue.key,ue.props,null,ie.mode,ze),ze.ref=Pf(ie,X,ue),ze.return=ie,ze)}function pe(ie,X,ue,ze){return X===null||X.tag!==4||X.stateNode.containerInfo!==ue.containerInfo||X.stateNode.implementation!==ue.implementation?(X=wd(ue,ie.mode,ze),X.return=ie,X):(X=w(X,ue.children||[]),X.return=ie,X)}function Me(ie,X,ue,ze,Ct){return X===null||X.tag!==7?(X=Ed(ue,ie.mode,ze,Ct),X.return=ie,X):(X=w(X,ue),X.return=ie,X)}function De(ie,X,ue){if(typeof X=="string"&&X!==""||typeof X=="number")return X=ev(""+X,ie.mode,ue),X.return=ie,X;if(typeof X=="object"&&X!==null){switch(X.$$typeof){case V:return ue=jg(X.type,X.key,X.props,null,ie.mode,ue),ue.ref=Pf(ie,null,X),ue.return=ie,ue;case Y:return X=wd(X,ie.mode,ue),X.return=ie,X;case me:var ze=X._init;return De(ie,ze(X._payload),ue)}if(er(X)||ge(X))return X=Ed(X,ie.mode,ue,null),X.return=ie,X;ug(ie,X)}return null}function Ne(ie,X,ue,ze){var Ct=X!==null?X.key:null;if(typeof ue=="string"&&ue!==""||typeof ue=="number")return Ct!==null?null:z(ie,X,""+ue,ze);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case V:return ue.key===Ct?K(ie,X,ue,ze):null;case Y:return ue.key===Ct?pe(ie,X,ue,ze):null;case me:return Ct=ue._init,Ne(ie,X,Ct(ue._payload),ze)}if(er(ue)||ge(ue))return Ct!==null?null:Me(ie,X,ue,ze,null);ug(ie,ue)}return null}function it(ie,X,ue,ze,Ct){if(typeof ze=="string"&&ze!==""||typeof ze=="number")return ie=ie.get(ue)||null,z(X,ie,""+ze,Ct);if(typeof ze=="object"&&ze!==null){switch(ze.$$typeof){case V:return ie=ie.get(ze.key===null?ue:ze.key)||null,K(X,ie,ze,Ct);case Y:return ie=ie.get(ze.key===null?ue:ze.key)||null,pe(X,ie,ze,Ct);case me:var ft=ze._init;return it(ie,X,ue,ft(ze._payload),Ct)}if(er(ze)||ge(ze))return ie=ie.get(ue)||null,Me(X,ie,ze,Ct,null);ug(X,ze)}return null}function dt(ie,X,ue,ze){for(var Ct=null,ft=null,Tt=X,Bt=X=0,zi=null;Tt!==null&&Bt<ue.length;Bt++){Tt.index>Bt?(zi=Tt,Tt=null):zi=Tt.sibling;var In=Ne(ie,Tt,ue[Bt],ze);if(In===null){Tt===null&&(Tt=zi);break}s&&Tt&&In.alternate===null&&c(ie,Tt),X=R(In,X,Bt),ft===null?Ct=In:ft.sibling=In,ft=In,Tt=zi}if(Bt===ue.length)return v(ie,Tt),pr&&Ia(ie,Bt),Ct;if(Tt===null){for(;Bt<ue.length;Bt++)Tt=De(ie,ue[Bt],ze),Tt!==null&&(X=R(Tt,X,Bt),ft===null?Ct=Tt:ft.sibling=Tt,ft=Tt);return pr&&Ia(ie,Bt),Ct}for(Tt=_(ie,Tt);Bt<ue.length;Bt++)zi=it(Tt,ie,Bt,ue[Bt],ze),zi!==null&&(s&&zi.alternate!==null&&Tt.delete(zi.key===null?Bt:zi.key),X=R(zi,X,Bt),ft===null?Ct=zi:ft.sibling=zi,ft=zi);return s&&Tt.forEach(function(cc){return c(ie,cc)}),pr&&Ia(ie,Bt),Ct}function mt(ie,X,ue,ze){var Ct=ge(ue);if(typeof Ct!="function")throw Error(t(150));if(ue=Ct.call(ue),ue==null)throw Error(t(151));for(var ft=Ct=null,Tt=X,Bt=X=0,zi=null,In=ue.next();Tt!==null&&!In.done;Bt++,In=ue.next()){Tt.index>Bt?(zi=Tt,Tt=null):zi=Tt.sibling;var cc=Ne(ie,Tt,In.value,ze);if(cc===null){Tt===null&&(Tt=zi);break}s&&Tt&&cc.alternate===null&&c(ie,Tt),X=R(cc,X,Bt),ft===null?Ct=cc:ft.sibling=cc,ft=cc,Tt=zi}if(In.done)return v(ie,Tt),pr&&Ia(ie,Bt),Ct;if(Tt===null){for(;!In.done;Bt++,In=ue.next())In=De(ie,In.value,ze),In!==null&&(X=R(In,X,Bt),ft===null?Ct=In:ft.sibling=In,ft=In);return pr&&Ia(ie,Bt),Ct}for(Tt=_(ie,Tt);!In.done;Bt++,In=ue.next())In=it(Tt,ie,Bt,In.value,ze),In!==null&&(s&&In.alternate!==null&&Tt.delete(In.key===null?Bt:In.key),X=R(In,X,Bt),ft===null?Ct=In:ft.sibling=In,ft=In);return s&&Tt.forEach(function(ax){return c(ie,ax)}),pr&&Ia(ie,Bt),Ct}function Zr(ie,X,ue,ze){if(typeof ue=="object"&&ue!==null&&ue.type===Z&&ue.key===null&&(ue=ue.props.children),typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case V:e:{for(var Ct=ue.key,ft=X;ft!==null;){if(ft.key===Ct){if(Ct=ue.type,Ct===Z){if(ft.tag===7){v(ie,ft.sibling),X=w(ft,ue.props.children),X.return=ie,ie=X;break e}}else if(ft.elementType===Ct||typeof Ct=="object"&&Ct!==null&&Ct.$$typeof===me&&tS(Ct)===ft.type){v(ie,ft.sibling),X=w(ft,ue.props),X.ref=Pf(ie,ft,ue),X.return=ie,ie=X;break e}v(ie,ft);break}else c(ie,ft);ft=ft.sibling}ue.type===Z?(X=Ed(ue.props.children,ie.mode,ze,ue.key),X.return=ie,ie=X):(ze=jg(ue.type,ue.key,ue.props,null,ie.mode,ze),ze.ref=Pf(ie,X,ue),ze.return=ie,ie=ze)}return N(ie);case Y:e:{for(ft=ue.key;X!==null;){if(X.key===ft)if(X.tag===4&&X.stateNode.containerInfo===ue.containerInfo&&X.stateNode.implementation===ue.implementation){v(ie,X.sibling),X=w(X,ue.children||[]),X.return=ie,ie=X;break e}else{v(ie,X);break}else c(ie,X);X=X.sibling}X=wd(ue,ie.mode,ze),X.return=ie,ie=X}return N(ie);case me:return ft=ue._init,Zr(ie,X,ft(ue._payload),ze)}if(er(ue))return dt(ie,X,ue,ze);if(ge(ue))return mt(ie,X,ue,ze);ug(ie,ue)}return typeof ue=="string"&&ue!==""||typeof ue=="number"?(ue=""+ue,X!==null&&X.tag===6?(v(ie,X.sibling),X=w(X,ue),X.return=ie,ie=X):(v(ie,X),X=ev(ue,ie.mode,ze),X.return=ie,ie=X),N(ie)):v(ie,X)}return Zr}var Df=nS(!0),rS=nS(!1),Lp={},Ps=en(Lp),Up=en(Lp),Lf=en(Lp);function id(s){if(s===Lp)throw Error(t(174));return s}function R0(s,c){switch(Hn(Lf,c),Hn(Up,s),Hn(Ps,Lp),s=c.nodeType,s){case 9:case 11:c=(c=c.documentElement)?c.namespaceURI:or(null,"");break;default:s=s===8?c.parentNode:c,c=s.namespaceURI||null,s=s.tagName,c=or(c,s)}Ln(Ps),Hn(Ps,c)}function nc(){Ln(Ps),Ln(Up),Ln(Lf)}function Nt(s){id(Lf.current);var c=id(Ps.current),v=or(c,s.type);c!==v&&(Hn(Up,s),Hn(Ps,v))}function cn(s){Up.current===s&&(Ln(Ps),Ln(Up))}var Dt=en(0);function Ir(s){for(var c=s;c!==null;){if(c.tag===13){var v=c.memoizedState;if(v!==null&&(v=v.dehydrated,v===null||v.data==="$?"||v.data==="$!"))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if(c.flags&128)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}var os=[];function cg(){for(var s=0;s<os.length;s++)os[s]._workInProgressVersionPrimary=null;os.length=0}var dg=F.ReactCurrentDispatcher,k0=F.ReactCurrentBatchConfig,od=0,vr=null,Se=null,bn=null,Lt=!1,il=!1,Ma=0,ad=0;function mr(){throw Error(t(321))}function sd(s,c){if(c===null)return!1;for(var v=0;v<c.length&&v<s.length;v++)if(!Za(s[v],c[v]))return!1;return!0}function rc(s,c,v,_,w,R){if(od=R,vr=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,dg.current=s===null||s.memoizedState===null?zA:BA,s=v(_,w),il){R=0;do{if(il=!1,Ma=0,25<=R)throw Error(t(301));R+=1,bn=Se=null,c.updateQueue=null,dg.current=x0,s=v(_,w)}while(il)}if(dg.current=kg,c=Se!==null&&Se.next!==null,od=0,bn=Se=vr=null,Lt=!1,c)throw Error(t(300));return s}function ld(){var s=Ma!==0;return Ma=0,s}function as(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return bn===null?vr.memoizedState=bn=s:bn=bn.next=s,bn}function ga(){if(Se===null){var s=vr.alternate;s=s!==null?s.memoizedState:null}else s=Se.next;var c=bn===null?vr.memoizedState:bn.next;if(c!==null)bn=c,Se=s;else{if(s===null)throw Error(t(310));Se=s,s={memoizedState:Se.memoizedState,baseState:Se.baseState,baseQueue:Se.baseQueue,queue:Se.queue,next:null},bn===null?vr.memoizedState=bn=s:bn=bn.next=s}return bn}function ud(s,c){return typeof c=="function"?c(s):c}function Fp(s){var c=ga(),v=c.queue;if(v===null)throw Error(t(311));v.lastRenderedReducer=s;var _=Se,w=_.baseQueue,R=v.pending;if(R!==null){if(w!==null){var N=w.next;w.next=R.next,R.next=N}_.baseQueue=w=R,v.pending=null}if(w!==null){R=w.next,_=_.baseState;var z=N=null,K=null,pe=R;do{var Me=pe.lane;if((od&Me)===Me)K!==null&&(K=K.next={lane:0,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null}),_=pe.hasEagerState?pe.eagerState:s(_,pe.action);else{var De={lane:Me,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null};K===null?(z=K=De,N=_):K=K.next=De,vr.lanes|=Me,Yl|=Me}pe=pe.next}while(pe!==null&&pe!==R);K===null?N=_:K.next=z,Za(_,c.memoizedState)||(fi=!0),c.memoizedState=_,c.baseState=N,c.baseQueue=K,v.lastRenderedState=_}if(s=v.interleaved,s!==null){w=s;do R=w.lane,vr.lanes|=R,Yl|=R,w=w.next;while(w!==s)}else w===null&&(v.lanes=0);return[c.memoizedState,v.dispatch]}function $p(s){var c=ga(),v=c.queue;if(v===null)throw Error(t(311));v.lastRenderedReducer=s;var _=v.dispatch,w=v.pending,R=c.memoizedState;if(w!==null){v.pending=null;var N=w=w.next;do R=s(R,N.action),N=N.next;while(N!==w);Za(R,c.memoizedState)||(fi=!0),c.memoizedState=R,c.baseQueue===null&&(c.baseState=R),v.lastRenderedState=R}return[R,_]}function fg(){}function hg(s,c){var v=vr,_=ga(),w=c(),R=!Za(_.memoizedState,w);if(R&&(_.memoizedState=w,fi=!0),_=_.queue,Hp(mg.bind(null,v,_,s),[s]),_.getSnapshot!==c||R||bn!==null&&bn.memoizedState.tag&1){if(v.flags|=2048,cd(9,vg.bind(null,v,_,w,c),void 0,null),Or===null)throw Error(t(349));od&30||pg(v,c,w)}return w}function pg(s,c,v){s.flags|=16384,s={getSnapshot:c,value:v},c=vr.updateQueue,c===null?(c={lastEffect:null,stores:null},vr.updateQueue=c,c.stores=[s]):(v=c.stores,v===null?c.stores=[s]:v.push(s))}function vg(s,c,v,_){c.value=v,c.getSnapshot=_,gg(c)&&yg(s)}function mg(s,c,v){return v(function(){gg(c)&&yg(s)})}function gg(s){var c=s.getSnapshot;s=s.value;try{var v=c();return!Za(s,v)}catch{return!0}}function yg(s){var c=ql(s,1);c!==null&&xo(c,s,1,-1)}function _g(s){var c=as();return typeof s=="function"&&(s=s()),c.memoizedState=c.baseState=s,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ud,lastRenderedState:s},c.queue=s,s=s.dispatch=Rg.bind(null,vr,s),[c.memoizedState,s]}function cd(s,c,v,_){return s={tag:s,create:c,destroy:v,deps:_,next:null},c=vr.updateQueue,c===null?(c={lastEffect:null,stores:null},vr.updateQueue=c,c.lastEffect=s.next=s):(v=c.lastEffect,v===null?c.lastEffect=s.next=s:(_=v.next,v.next=s,s.next=_,c.lastEffect=s)),s}function Cg(){return ga().memoizedState}function dd(s,c,v,_){var w=as();vr.flags|=s,w.memoizedState=cd(1|c,v,void 0,_===void 0?null:_)}function Kl(s,c,v,_){var w=ga();_=_===void 0?null:_;var R=void 0;if(Se!==null){var N=Se.memoizedState;if(R=N.destroy,_!==null&&sd(_,N.deps)){w.memoizedState=cd(c,v,R,_);return}}vr.flags|=s,w.memoizedState=cd(1|c,v,R,_)}function Eg(s,c){return dd(8390656,8,s,c)}function Hp(s,c){return Kl(2048,8,s,c)}function wg(s,c){return Kl(4,2,s,c)}function bg(s,c){return Kl(4,4,s,c)}function A0(s,c){if(typeof c=="function")return s=s(),c(s),function(){c(null)};if(c!=null)return s=s(),c.current=s,function(){c.current=null}}function Uf(s,c,v){return v=v!=null?v.concat([s]):null,Kl(4,4,A0.bind(null,c,s),v)}function Sg(){}function Ff(s,c){var v=ga();c=c===void 0?null:c;var _=v.memoizedState;return _!==null&&c!==null&&sd(c,_[1])?_[0]:(v.memoizedState=[s,c],s)}function ic(s,c){var v=ga();c=c===void 0?null:c;var _=v.memoizedState;return _!==null&&c!==null&&sd(c,_[1])?_[0]:(s=s(),v.memoizedState=[s,c],s)}function ya(s,c,v){return od&21?(Za(v,c)||(v=gf(),vr.lanes|=v,Yl|=v,s.baseState=!0),c):(s.baseState&&(s.baseState=!1,fi=!0),s.memoizedState=v)}function jA(s,c){var v=Nn;Nn=v!==0&&4>v?v:4,s(!0);var _=k0.transition;k0.transition={};try{s(!1),c()}finally{Nn=v,k0.transition=_}}function ir(){return ga().memoizedState}function Tg(s,c,v){var _=hi(s);if(v={lane:_,action:v,hasEagerState:!1,eagerState:null,next:null},$f(s))jp(c,v);else if(v=Qb(s,c,v,_),v!==null){var w=Ao();xo(v,s,_,w),iS(v,c,_)}}function Rg(s,c,v){var _=hi(s),w={lane:_,action:v,hasEagerState:!1,eagerState:null,next:null};if($f(s))jp(c,w);else{var R=s.alternate;if(s.lanes===0&&(R===null||R.lanes===0)&&(R=c.lastRenderedReducer,R!==null))try{var N=c.lastRenderedState,z=R(N,v);if(w.hasEagerState=!0,w.eagerState=z,Za(z,N)){var K=c.interleaved;K===null?(w.next=w,w0(c)):(w.next=K.next,K.next=w),c.interleaved=w;return}}catch{}finally{}v=Qb(s,c,w,_),v!==null&&(w=Ao(),xo(v,s,_,w),iS(v,c,_))}}function $f(s){var c=s.alternate;return s===vr||c!==null&&c===vr}function jp(s,c){il=Lt=!0;var v=s.pending;v===null?c.next=c:(c.next=v.next,v.next=c),s.pending=c}function iS(s,c,v){if(v&4194240){var _=c.lanes;_&=s.pendingLanes,v|=_,c.lanes=v,Zs(s,v)}}var kg={readContext:Jr,useCallback:mr,useContext:mr,useEffect:mr,useImperativeHandle:mr,useInsertionEffect:mr,useLayoutEffect:mr,useMemo:mr,useReducer:mr,useRef:mr,useState:mr,useDebugValue:mr,useDeferredValue:mr,useTransition:mr,useMutableSource:mr,useSyncExternalStore:mr,useId:mr,unstable_isNewReconciler:!1},zA={readContext:Jr,useCallback:function(s,c){return as().memoizedState=[s,c===void 0?null:c],s},useContext:Jr,useEffect:Eg,useImperativeHandle:function(s,c,v){return v=v!=null?v.concat([s]):null,dd(4194308,4,A0.bind(null,c,s),v)},useLayoutEffect:function(s,c){return dd(4194308,4,s,c)},useInsertionEffect:function(s,c){return dd(4,2,s,c)},useMemo:function(s,c){var v=as();return c=c===void 0?null:c,s=s(),v.memoizedState=[s,c],s},useReducer:function(s,c,v){var _=as();return c=v!==void 0?v(c):c,_.memoizedState=_.baseState=c,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:c},_.queue=s,s=s.dispatch=Tg.bind(null,vr,s),[_.memoizedState,s]},useRef:function(s){var c=as();return s={current:s},c.memoizedState=s},useState:_g,useDebugValue:Sg,useDeferredValue:function(s){return as().memoizedState=s},useTransition:function(){var s=_g(!1),c=s[0];return s=jA.bind(null,s[1]),as().memoizedState=s,[c,s]},useMutableSource:function(){},useSyncExternalStore:function(s,c,v){var _=vr,w=as();if(pr){if(v===void 0)throw Error(t(407));v=v()}else{if(v=c(),Or===null)throw Error(t(349));od&30||pg(_,c,v)}w.memoizedState=v;var R={value:v,getSnapshot:c};return w.queue=R,Eg(mg.bind(null,_,R,s),[s]),_.flags|=2048,cd(9,vg.bind(null,_,R,v,c),void 0,null),v},useId:function(){var s=as(),c=Or.identifierPrefix;if(pr){var v=Bl,_=eo;v=(_&~(1<<32-Ho(_)-1)).toString(32)+v,c=":"+c+"R"+v,v=Ma++,0<v&&(c+="H"+v.toString(32)),c+=":"}else v=ad++,c=":"+c+"r"+v.toString(32)+":";return s.memoizedState=c},unstable_isNewReconciler:!1},BA={readContext:Jr,useCallback:Ff,useContext:Jr,useEffect:Hp,useImperativeHandle:Uf,useInsertionEffect:wg,useLayoutEffect:bg,useMemo:ic,useReducer:Fp,useRef:Cg,useState:function(){return Fp(ud)},useDebugValue:Sg,useDeferredValue:function(s){var c=ga();return ya(c,Se.memoizedState,s)},useTransition:function(){var s=Fp(ud)[0],c=ga().memoizedState;return[s,c]},useMutableSource:fg,useSyncExternalStore:hg,useId:ir,unstable_isNewReconciler:!1},x0={readContext:Jr,useCallback:Ff,useContext:Jr,useEffect:Hp,useImperativeHandle:Uf,useInsertionEffect:wg,useLayoutEffect:bg,useMemo:ic,useReducer:$p,useRef:Cg,useState:function(){return $p(ud)},useDebugValue:Sg,useDeferredValue:function(s){var c=ga();return Se===null?c.memoizedState=s:ya(c,Se.memoizedState,s)},useTransition:function(){var s=$p(ud)[0],c=ga().memoizedState;return[s,c]},useMutableSource:fg,useSyncExternalStore:hg,useId:ir,unstable_isNewReconciler:!1};function Hf(s,c){try{var v="",_=c;do v+=It(_),_=_.return;while(_);var w=v}catch(R){w=`
95
- Error generating stack: `+R.message+`
96
- `+R.stack}return{value:s,source:c,stack:w,digest:null}}function zp(s,c,v){return{value:s,source:null,stack:v??null,digest:c??null}}function Ag(s,c){try{console.error(c.value)}catch(v){setTimeout(function(){throw v})}}var qA=typeof WeakMap=="function"?WeakMap:Map;function oS(s,c,v){v=Vl(-1,v),v.tag=3,v.payload={element:null};var _=c.value;return v.callback=function(){Dg||(Dg=!0,md=_),Ag(s,c)},v}function Bp(s,c,v){v=Vl(-1,v),v.tag=3;var _=s.type.getDerivedStateFromError;if(typeof _=="function"){var w=c.value;v.payload=function(){return _(w)},v.callback=function(){Ag(s,c)}}var R=s.stateNode;return R!==null&&typeof R.componentDidCatch=="function"&&(v.callback=function(){Ag(s,c),typeof _!="function"&&(sl===null?sl=new Set([this]):sl.add(this));var N=c.stack;this.componentDidCatch(c.value,{componentStack:N!==null?N:""})}),v}function aS(s,c,v){var _=s.pingCache;if(_===null){_=s.pingCache=new qA;var w=new Set;_.set(c,w)}else w=_.get(c),w===void 0&&(w=new Set,_.set(c,w));w.has(v)||(w.add(v),s=XA.bind(null,s,c,v),c.then(s,s))}function I0(s){do{var c;if((c=s.tag===13)&&(c=s.memoizedState,c=c!==null?c.dehydrated!==null:!0),c)return s;s=s.return}while(s!==null);return null}function O0(s,c,v,_,w){return s.mode&1?(s.flags|=65536,s.lanes=w,s):(s===c?s.flags|=65536:(s.flags|=128,v.flags|=131072,v.flags&=-52805,v.tag===1&&(v.alternate===null?v.tag=17:(c=Vl(-1,1),c.tag=2,ec(v,c,1))),v.lanes|=1),s)}var VA=F.ReactCurrentOwner,fi=!1;function ki(s,c,v,_){c.child=s===null?rS(c,null,v,_):Df(c,s.child,v,_)}function oc(s,c,v,_,w){v=v.render;var R=c.ref;return Xe(c,w),_=rc(s,c,v,_,R,w),v=ld(),s!==null&&!fi?(c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~w,no(s,c,w)):(pr&&v&&eg(c),c.flags|=1,ki(s,c,_,w),c.child)}function xg(s,c,v,_,w){if(s===null){var R=v.type;return typeof R=="function"&&!Q0(R)&&R.defaultProps===void 0&&v.compare===null&&v.defaultProps===void 0?(c.tag=15,c.type=R,_a(s,c,R,_,w)):(s=jg(v.type,null,_,c,c.mode,w),s.ref=c.ref,s.return=c,c.child=s)}if(R=s.child,!(s.lanes&w)){var N=R.memoizedProps;if(v=v.compare,v=v!==null?v:Sp,v(N,_)&&s.ref===c.ref)return no(s,c,w)}return c.flags|=1,s=uc(R,_),s.ref=c.ref,s.return=c,c.child=s}function _a(s,c,v,_,w){if(s!==null){var R=s.memoizedProps;if(Sp(R,_)&&s.ref===c.ref)if(fi=!1,c.pendingProps=_=R,(s.lanes&w)!==0)s.flags&131072&&(fi=!0);else return c.lanes=s.lanes,no(s,c,w)}return jf(s,c,v,_,w)}function fd(s,c,v){var _=c.pendingProps,w=_.children,R=s!==null?s.memoizedState:null;if(_.mode==="hidden")if(!(c.mode&1))c.memoizedState={baseLanes:0,cachePool:null,transitions:null},Hn(Gf,Pa),Pa|=v;else{if(!(v&1073741824))return s=R!==null?R.baseLanes|v:v,c.lanes=c.childLanes=1073741824,c.memoizedState={baseLanes:s,cachePool:null,transitions:null},c.updateQueue=null,Hn(Gf,Pa),Pa|=s,null;c.memoizedState={baseLanes:0,cachePool:null,transitions:null},_=R!==null?R.baseLanes:v,Hn(Gf,Pa),Pa|=_}else R!==null?(_=R.baseLanes|v,c.memoizedState=null):_=v,Hn(Gf,Pa),Pa|=_;return ki(s,c,w,v),c.child}function tn(s,c){var v=c.ref;(s===null&&v!==null||s!==null&&s.ref!==v)&&(c.flags|=512,c.flags|=2097152)}function jf(s,c,v,_,w){var R=br(v)?fa:zt.current;return R=ts(c,R),Xe(c,w),v=rc(s,c,v,_,R,w),_=ld(),s!==null&&!fi?(c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~w,no(s,c,w)):(pr&&_&&eg(c),c.flags|=1,ki(s,c,v,w),c.child)}function N0(s,c,v,_,w){if(br(v)){var R=!0;Zm(c)}else R=!1;if(Xe(c,w),c.stateNode===null)To(s,c),Zb(c,v,_),lg(c,v,_,w),_=!0;else if(s===null){var N=c.stateNode,z=c.memoizedProps;N.props=z;var K=N.context,pe=v.contextType;typeof pe=="object"&&pe!==null?pe=Jr(pe):(pe=br(v)?fa:zt.current,pe=ts(c,pe));var Me=v.getDerivedStateFromProps,De=typeof Me=="function"||typeof N.getSnapshotBeforeUpdate=="function";De||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(z!==_||K!==pe)&&eS(c,N,_,pe),Zu=!1;var Ne=c.memoizedState;N.state=Ne,tc(c,_,N,w),K=c.memoizedState,z!==_||Ne!==K||Br.current||Zu?(typeof Me=="function"&&(T0(c,v,Me,_),K=c.memoizedState),(z=Zu||Jb(c,v,z,_,Ne,K,pe))?(De||typeof N.UNSAFE_componentWillMount!="function"&&typeof N.componentWillMount!="function"||(typeof N.componentWillMount=="function"&&N.componentWillMount(),typeof N.UNSAFE_componentWillMount=="function"&&N.UNSAFE_componentWillMount()),typeof N.componentDidMount=="function"&&(c.flags|=4194308)):(typeof N.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=_,c.memoizedState=K),N.props=_,N.state=K,N.context=pe,_=z):(typeof N.componentDidMount=="function"&&(c.flags|=4194308),_=!1)}else{N=c.stateNode,Ri(s,c),z=c.memoizedProps,pe=c.type===c.elementType?z:Na(c.type,z),N.props=pe,De=c.pendingProps,Ne=N.context,K=v.contextType,typeof K=="object"&&K!==null?K=Jr(K):(K=br(v)?fa:zt.current,K=ts(c,K));var it=v.getDerivedStateFromProps;(Me=typeof it=="function"||typeof N.getSnapshotBeforeUpdate=="function")||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(z!==De||Ne!==K)&&eS(c,N,_,K),Zu=!1,Ne=c.memoizedState,N.state=Ne,tc(c,_,N,w);var dt=c.memoizedState;z!==De||Ne!==dt||Br.current||Zu?(typeof it=="function"&&(T0(c,v,it,_),dt=c.memoizedState),(pe=Zu||Jb(c,v,pe,_,Ne,dt,K)||!1)?(Me||typeof N.UNSAFE_componentWillUpdate!="function"&&typeof N.componentWillUpdate!="function"||(typeof N.componentWillUpdate=="function"&&N.componentWillUpdate(_,dt,K),typeof N.UNSAFE_componentWillUpdate=="function"&&N.UNSAFE_componentWillUpdate(_,dt,K)),typeof N.componentDidUpdate=="function"&&(c.flags|=4),typeof N.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof N.componentDidUpdate!="function"||z===s.memoizedProps&&Ne===s.memoizedState||(c.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||z===s.memoizedProps&&Ne===s.memoizedState||(c.flags|=1024),c.memoizedProps=_,c.memoizedState=dt),N.props=_,N.state=dt,N.context=K,_=pe):(typeof N.componentDidUpdate!="function"||z===s.memoizedProps&&Ne===s.memoizedState||(c.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||z===s.memoizedProps&&Ne===s.memoizedState||(c.flags|=1024),_=!1)}return sS(s,c,v,_,R,w)}function sS(s,c,v,_,w,R){tn(s,c);var N=(c.flags&128)!==0;if(!_&&!N)return w&&Kb(c,v,!1),no(s,c,R);_=c.stateNode,VA.current=c;var z=N&&typeof v.getDerivedStateFromError!="function"?null:_.render();return c.flags|=1,s!==null&&N?(c.child=Df(c,s.child,null,R),c.child=Df(c,null,z,R)):ki(s,c,z,R),c.memoizedState=_.state,w&&Kb(c,v,!0),c.child}function lS(s){var c=s.stateNode;c.pendingContext?Yu(s,c.pendingContext,c.pendingContext!==c.context):c.context&&Yu(s,c.context,!1),R0(s,c.containerInfo)}function Ig(s,c,v,_,w){return xr(),_0(w),c.flags|=256,ki(s,c,v,_),c.child}var hd={dehydrated:null,treeContext:null,retryLane:0};function M0(s){return{baseLanes:s,cachePool:null,transitions:null}}function P0(s,c,v){var _=c.pendingProps,w=Dt.current,R=!1,N=(c.flags&128)!==0,z;if((z=N)||(z=s!==null&&s.memoizedState===null?!1:(w&2)!==0),z?(R=!0,c.flags&=-129):(s===null||s.memoizedState!==null)&&(w|=1),Hn(Dt,w&1),s===null)return ng(c),s=c.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?(c.mode&1?s.data==="$!"?c.lanes=8:c.lanes=1073741824:c.lanes=1,null):(N=_.children,s=_.fallback,R?(_=c.mode,R=c.child,N={mode:"hidden",children:N},!(_&1)&&R!==null?(R.childLanes=0,R.pendingProps=N):R=Zp(N,_,0,null),s=Ed(s,_,v,null),R.return=c,s.return=c,R.sibling=s,c.child=R,c.child.memoizedState=M0(v),c.memoizedState=hd,s):D0(c,N));if(w=s.memoizedState,w!==null&&(z=w.dehydrated,z!==null))return KA(s,c,N,_,z,w,v);if(R){R=_.fallback,N=c.mode,w=s.child,z=w.sibling;var K={mode:"hidden",children:_.children};return!(N&1)&&c.child!==w?(_=c.child,_.childLanes=0,_.pendingProps=K,c.deletions=null):(_=uc(w,K),_.subtreeFlags=w.subtreeFlags&14680064),z!==null?R=uc(z,R):(R=Ed(R,N,v,null),R.flags|=2),R.return=c,_.return=c,_.sibling=R,c.child=_,_=R,R=c.child,N=s.child.memoizedState,N=N===null?M0(v):{baseLanes:N.baseLanes|v,cachePool:null,transitions:N.transitions},R.memoizedState=N,R.childLanes=s.childLanes&~v,c.memoizedState=hd,_}return R=s.child,s=R.sibling,_=uc(R,{mode:"visible",children:_.children}),!(c.mode&1)&&(_.lanes=v),_.return=c,_.sibling=null,s!==null&&(v=c.deletions,v===null?(c.deletions=[s],c.flags|=16):v.push(s)),c.child=_,c.memoizedState=null,_}function D0(s,c){return c=Zp({mode:"visible",children:c},s.mode,0,null),c.return=s,s.child=c}function zf(s,c,v,_){return _!==null&&_0(_),Df(c,s.child,null,v),s=D0(c,c.pendingProps.children),s.flags|=2,c.memoizedState=null,s}function KA(s,c,v,_,w,R,N){if(v)return c.flags&256?(c.flags&=-257,_=zp(Error(t(422))),zf(s,c,N,_)):c.memoizedState!==null?(c.child=s.child,c.flags|=128,null):(R=_.fallback,w=c.mode,_=Zp({mode:"visible",children:_.children},w,0,null),R=Ed(R,w,N,null),R.flags|=2,_.return=c,R.return=c,_.sibling=R,c.child=_,c.mode&1&&Df(c,s.child,null,N),c.child.memoizedState=M0(N),c.memoizedState=hd,R);if(!(c.mode&1))return zf(s,c,N,null);if(w.data==="$!"){if(_=w.nextSibling&&w.nextSibling.dataset,_)var z=_.dgst;return _=z,R=Error(t(419)),_=zp(R,_,void 0),zf(s,c,N,_)}if(z=(N&s.childLanes)!==0,fi||z){if(_=Or,_!==null){switch(N&-N){case 4:w=2;break;case 16:w=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:w=32;break;case 536870912:w=268435456;break;default:w=0}w=w&(_.suspendedLanes|N)?0:w,w!==0&&w!==R.retryLane&&(R.retryLane=w,ql(s,w),xo(_,s,w,-1))}return G0(),_=zp(Error(t(421))),zf(s,c,N,_)}return w.data==="$?"?(c.flags|=128,c.child=s.child,c=JA.bind(null,s),w._reactRetry=c,null):(s=R.treeContext,ma=Ms(w.nextSibling),Oa=c,pr=!0,is=null,s!==null&&(va[So++]=eo,va[So++]=Bl,va[So++]=rs,eo=s.id,Bl=s.overflow,rs=c),c=D0(c,_.children),c.flags|=4096,c)}function L0(s,c,v){s.lanes|=c;var _=s.alternate;_!==null&&(_.lanes|=c),$i(s.return,c,v)}function Og(s,c,v,_,w){var R=s.memoizedState;R===null?s.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:_,tail:v,tailMode:w}:(R.isBackwards=c,R.rendering=null,R.renderingStartTime=0,R.last=_,R.tail=v,R.tailMode=w)}function U0(s,c,v){var _=c.pendingProps,w=_.revealOrder,R=_.tail;if(ki(s,c,_.children,v),_=Dt.current,_&2)_=_&1|2,c.flags|=128;else{if(s!==null&&s.flags&128)e:for(s=c.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&L0(s,v,c);else if(s.tag===19)L0(s,v,c);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===c)break e;for(;s.sibling===null;){if(s.return===null||s.return===c)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}_&=1}if(Hn(Dt,_),!(c.mode&1))c.memoizedState=null;else switch(w){case"forwards":for(v=c.child,w=null;v!==null;)s=v.alternate,s!==null&&Ir(s)===null&&(w=v),v=v.sibling;v=w,v===null?(w=c.child,c.child=null):(w=v.sibling,v.sibling=null),Og(c,!1,w,v,R);break;case"backwards":for(v=null,w=c.child,c.child=null;w!==null;){if(s=w.alternate,s!==null&&Ir(s)===null){c.child=w;break}s=w.sibling,w.sibling=v,v=w,w=s}Og(c,!0,v,null,R);break;case"together":Og(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function To(s,c){!(c.mode&1)&&s!==null&&(s.alternate=null,c.alternate=null,c.flags|=2)}function no(s,c,v){if(s!==null&&(c.dependencies=s.dependencies),Yl|=c.lanes,!(v&c.childLanes))return null;if(s!==null&&c.child!==s.child)throw Error(t(153));if(c.child!==null){for(s=c.child,v=uc(s,s.pendingProps),c.child=v,v.return=c;s.sibling!==null;)s=s.sibling,v=v.sibling=uc(s,s.pendingProps),v.return=c;v.sibling=null}return c.child}function Gl(s,c,v){switch(c.tag){case 3:lS(c),xr();break;case 5:Nt(c);break;case 1:br(c.type)&&Zm(c);break;case 4:R0(c,c.stateNode.containerInfo);break;case 10:var _=c.type._context,w=c.memoizedProps.value;Hn(rl,_._currentValue),_._currentValue=w;break;case 13:if(_=c.memoizedState,_!==null)return _.dehydrated!==null?(Hn(Dt,Dt.current&1),c.flags|=128,null):v&c.child.childLanes?P0(s,c,v):(Hn(Dt,Dt.current&1),s=no(s,c,v),s!==null?s.sibling:null);Hn(Dt,Dt.current&1);break;case 19:if(_=(v&c.childLanes)!==0,s.flags&128){if(_)return U0(s,c,v);c.flags|=128}if(w=c.memoizedState,w!==null&&(w.rendering=null,w.tail=null,w.lastEffect=null),Hn(Dt,Dt.current),_)break;return null;case 22:case 23:return c.lanes=0,fd(s,c,v)}return no(s,c,v)}var qp,pd,ss,Ai;qp=function(s,c){for(var v=c.child;v!==null;){if(v.tag===5||v.tag===6)s.appendChild(v.stateNode);else if(v.tag!==4&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===c)break;for(;v.sibling===null;){if(v.return===null||v.return===c)return;v=v.return}v.sibling.return=v.return,v=v.sibling}},pd=function(){},ss=function(s,c,v,_){var w=s.memoizedProps;if(w!==_){s=c.stateNode,id(Ps.current);var R=null;switch(v){case"input":w=si(s,w),_=si(s,_),R=[];break;case"select":w=H({},w,{value:void 0}),_=H({},_,{value:void 0}),R=[];break;case"textarea":w=Qi(s,w),_=Qi(s,_),R=[];break;default:typeof w.onClick!="function"&&typeof _.onClick=="function"&&(s.onclick=Jm)}Te(v,_);var N;v=null;for(pe in w)if(!_.hasOwnProperty(pe)&&w.hasOwnProperty(pe)&&w[pe]!=null)if(pe==="style"){var z=w[pe];for(N in z)z.hasOwnProperty(N)&&(v||(v={}),v[N]="")}else pe!=="dangerouslySetInnerHTML"&&pe!=="children"&&pe!=="suppressContentEditableWarning"&&pe!=="suppressHydrationWarning"&&pe!=="autoFocus"&&(a.hasOwnProperty(pe)?R||(R=[]):(R=R||[]).push(pe,null));for(pe in _){var K=_[pe];if(z=w!=null?w[pe]:void 0,_.hasOwnProperty(pe)&&K!==z&&(K!=null||z!=null))if(pe==="style")if(z){for(N in z)!z.hasOwnProperty(N)||K&&K.hasOwnProperty(N)||(v||(v={}),v[N]="");for(N in K)K.hasOwnProperty(N)&&z[N]!==K[N]&&(v||(v={}),v[N]=K[N])}else v||(R||(R=[]),R.push(pe,v)),v=K;else pe==="dangerouslySetInnerHTML"?(K=K?K.__html:void 0,z=z?z.__html:void 0,K!=null&&z!==K&&(R=R||[]).push(pe,K)):pe==="children"?typeof K!="string"&&typeof K!="number"||(R=R||[]).push(pe,""+K):pe!=="suppressContentEditableWarning"&&pe!=="suppressHydrationWarning"&&(a.hasOwnProperty(pe)?(K!=null&&pe==="onScroll"&&rr("scroll",s),R||z===K||(R=[])):(R=R||[]).push(pe,K))}v&&(R=R||[]).push("style",v);var pe=R;(c.updateQueue=pe)&&(c.flags|=4)}},Ai=function(s,c,v,_){v!==_&&(c.flags|=4)};function Vp(s,c){if(!pr)switch(s.tailMode){case"hidden":c=s.tail;for(var v=null;c!==null;)c.alternate!==null&&(v=c),c=c.sibling;v===null?s.tail=null:v.sibling=null;break;case"collapsed":v=s.tail;for(var _=null;v!==null;)v.alternate!==null&&(_=v),v=v.sibling;_===null?c||s.tail===null?s.tail=null:s.tail.sibling=null:_.sibling=null}}function Ro(s){var c=s.alternate!==null&&s.alternate.child===s.child,v=0,_=0;if(c)for(var w=s.child;w!==null;)v|=w.lanes|w.childLanes,_|=w.subtreeFlags&14680064,_|=w.flags&14680064,w.return=s,w=w.sibling;else for(w=s.child;w!==null;)v|=w.lanes|w.childLanes,_|=w.subtreeFlags,_|=w.flags,w.return=s,w=w.sibling;return s.subtreeFlags|=_,s.childLanes=v,c}function GA(s,c,v){var _=c.pendingProps;switch(g0(c),c.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ro(c),null;case 1:return br(c.type)&&ns(),Ro(c),null;case 3:return _=c.stateNode,nc(),Ln(Br),Ln(zt),cg(),_.pendingContext&&(_.context=_.pendingContext,_.pendingContext=null),(s===null||s.child===null)&&(rg(c)?c.flags|=4:s===null||s.memoizedState.isDehydrated&&!(c.flags&256)||(c.flags|=1024,is!==null&&(Jp(is),is=null))),pd(s,c),Ro(c),null;case 5:cn(c);var w=id(Lf.current);if(v=c.type,s!==null&&c.stateNode!=null)ss(s,c,v,_,w),s.ref!==c.ref&&(c.flags|=512,c.flags|=2097152);else{if(!_){if(c.stateNode===null)throw Error(t(166));return Ro(c),null}if(s=id(Ps.current),rg(c)){_=c.stateNode,v=c.type;var R=c.memoizedProps;switch(_[tl]=c,_[td]=R,s=(c.mode&1)!==0,v){case"dialog":rr("cancel",_),rr("close",_);break;case"iframe":case"object":case"embed":rr("load",_);break;case"video":case"audio":for(w=0;w<Ap.length;w++)rr(Ap[w],_);break;case"source":rr("error",_);break;case"img":case"image":case"link":rr("error",_),rr("load",_);break;case"details":rr("toggle",_);break;case"input":cr(_,R),rr("invalid",_);break;case"select":_._wrapperState={wasMultiple:!!R.multiple},rr("invalid",_);break;case"textarea":wi(_,R),rr("invalid",_)}Te(v,R),w=null;for(var N in R)if(R.hasOwnProperty(N)){var z=R[N];N==="children"?typeof z=="string"?_.textContent!==z&&(R.suppressHydrationWarning!==!0&&Xm(_.textContent,z,s),w=["children",z]):typeof z=="number"&&_.textContent!==""+z&&(R.suppressHydrationWarning!==!0&&Xm(_.textContent,z,s),w=["children",""+z]):a.hasOwnProperty(N)&&z!=null&&N==="onScroll"&&rr("scroll",_)}switch(v){case"input":Xn(_),Ci(_,R,!0);break;case"textarea":Xn(_),li(_);break;case"select":case"option":break;default:typeof R.onClick=="function"&&(_.onclick=Jm)}_=w,c.updateQueue=_,_!==null&&(c.flags|=4)}else{N=w.nodeType===9?w:w.ownerDocument,s==="http://www.w3.org/1999/xhtml"&&(s=bi(v)),s==="http://www.w3.org/1999/xhtml"?v==="script"?(s=N.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild)):typeof _.is=="string"?s=N.createElement(v,{is:_.is}):(s=N.createElement(v),v==="select"&&(N=s,_.multiple?N.multiple=!0:_.size&&(N.size=_.size))):s=N.createElementNS(s,v),s[tl]=c,s[td]=_,qp(s,c,!1,!1),c.stateNode=s;e:{switch(N=Ve(v,_),v){case"dialog":rr("cancel",s),rr("close",s),w=_;break;case"iframe":case"object":case"embed":rr("load",s),w=_;break;case"video":case"audio":for(w=0;w<Ap.length;w++)rr(Ap[w],s);w=_;break;case"source":rr("error",s),w=_;break;case"img":case"image":case"link":rr("error",s),rr("load",s),w=_;break;case"details":rr("toggle",s),w=_;break;case"input":cr(s,_),w=si(s,_),rr("invalid",s);break;case"option":w=_;break;case"select":s._wrapperState={wasMultiple:!!_.multiple},w=H({},_,{value:void 0}),rr("invalid",s);break;case"textarea":wi(s,_),w=Qi(s,_),rr("invalid",s);break;default:w=_}Te(v,w),z=w;for(R in z)if(z.hasOwnProperty(R)){var K=z[R];R==="style"?re(s,K):R==="dangerouslySetInnerHTML"?(K=K?K.__html:void 0,K!=null&&Qa(s,K)):R==="children"?typeof K=="string"?(v!=="textarea"||K!=="")&&wo(s,K):typeof K=="number"&&wo(s,""+K):R!=="suppressContentEditableWarning"&&R!=="suppressHydrationWarning"&&R!=="autoFocus"&&(a.hasOwnProperty(R)?K!=null&&R==="onScroll"&&rr("scroll",s):K!=null&&j(s,R,K,N))}switch(v){case"input":Xn(s),Ci(s,_,!1);break;case"textarea":Xn(s),li(s);break;case"option":_.value!=null&&s.setAttribute("value",""+bt(_.value));break;case"select":s.multiple=!!_.multiple,R=_.value,R!=null?Ei(s,!!_.multiple,R,!1):_.defaultValue!=null&&Ei(s,!!_.multiple,_.defaultValue,!0);break;default:typeof w.onClick=="function"&&(s.onclick=Jm)}switch(v){case"button":case"input":case"select":case"textarea":_=!!_.autoFocus;break e;case"img":_=!0;break e;default:_=!1}}_&&(c.flags|=4)}c.ref!==null&&(c.flags|=512,c.flags|=2097152)}return Ro(c),null;case 6:if(s&&c.stateNode!=null)Ai(s,c,s.memoizedProps,_);else{if(typeof _!="string"&&c.stateNode===null)throw Error(t(166));if(v=id(Lf.current),id(Ps.current),rg(c)){if(_=c.stateNode,v=c.memoizedProps,_[tl]=c,(R=_.nodeValue!==v)&&(s=Oa,s!==null))switch(s.tag){case 3:Xm(_.nodeValue,v,(s.mode&1)!==0);break;case 5:s.memoizedProps.suppressHydrationWarning!==!0&&Xm(_.nodeValue,v,(s.mode&1)!==0)}R&&(c.flags|=4)}else _=(v.nodeType===9?v:v.ownerDocument).createTextNode(_),_[tl]=c,c.stateNode=_}return Ro(c),null;case 13:if(Ln(Dt),_=c.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(pr&&ma!==null&&c.mode&1&&!(c.flags&128))Yb(),xr(),c.flags|=98560,R=!1;else if(R=rg(c),_!==null&&_.dehydrated!==null){if(s===null){if(!R)throw Error(t(318));if(R=c.memoizedState,R=R!==null?R.dehydrated:null,!R)throw Error(t(317));R[tl]=c}else xr(),!(c.flags&128)&&(c.memoizedState=null),c.flags|=4;Ro(c),R=!1}else is!==null&&(Jp(is),is=null),R=!0;if(!R)return c.flags&65536?c:null}return c.flags&128?(c.lanes=v,c):(_=_!==null,_!==(s!==null&&s.memoizedState!==null)&&_&&(c.child.flags|=8192,c.mode&1&&(s===null||Dt.current&1?Ii===0&&(Ii=3):G0())),c.updateQueue!==null&&(c.flags|=4),Ro(c),null);case 4:return nc(),pd(s,c),s===null&&Of(c.stateNode.containerInfo),Ro(c),null;case 10:return Ju(c.type._context),Ro(c),null;case 17:return br(c.type)&&ns(),Ro(c),null;case 19:if(Ln(Dt),R=c.memoizedState,R===null)return Ro(c),null;if(_=(c.flags&128)!==0,N=R.rendering,N===null)if(_)Vp(R,!1);else{if(Ii!==0||s!==null&&s.flags&128)for(s=c.child;s!==null;){if(N=Ir(s),N!==null){for(c.flags|=128,Vp(R,!1),_=N.updateQueue,_!==null&&(c.updateQueue=_,c.flags|=4),c.subtreeFlags=0,_=v,v=c.child;v!==null;)R=v,s=_,R.flags&=14680066,N=R.alternate,N===null?(R.childLanes=0,R.lanes=s,R.child=null,R.subtreeFlags=0,R.memoizedProps=null,R.memoizedState=null,R.updateQueue=null,R.dependencies=null,R.stateNode=null):(R.childLanes=N.childLanes,R.lanes=N.lanes,R.child=N.child,R.subtreeFlags=0,R.deletions=null,R.memoizedProps=N.memoizedProps,R.memoizedState=N.memoizedState,R.updateQueue=N.updateQueue,R.type=N.type,s=N.dependencies,R.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),v=v.sibling;return Hn(Dt,Dt.current&1|2),c.child}s=s.sibling}R.tail!==null&&Rn()>Yf&&(c.flags|=128,_=!0,Vp(R,!1),c.lanes=4194304)}else{if(!_)if(s=Ir(N),s!==null){if(c.flags|=128,_=!0,v=s.updateQueue,v!==null&&(c.updateQueue=v,c.flags|=4),Vp(R,!0),R.tail===null&&R.tailMode==="hidden"&&!N.alternate&&!pr)return Ro(c),null}else 2*Rn()-R.renderingStartTime>Yf&&v!==1073741824&&(c.flags|=128,_=!0,Vp(R,!1),c.lanes=4194304);R.isBackwards?(N.sibling=c.child,c.child=N):(v=R.last,v!==null?v.sibling=N:c.child=N,R.last=N)}return R.tail!==null?(c=R.tail,R.rendering=c,R.tail=c.sibling,R.renderingStartTime=Rn(),c.sibling=null,v=Dt.current,Hn(Dt,_?v&1|2:v&1),c):(Ro(c),null);case 22:case 23:return K0(),_=c.memoizedState!==null,s!==null&&s.memoizedState!==null!==_&&(c.flags|=8192),_&&c.mode&1?Pa&1073741824&&(Ro(c),c.subtreeFlags&6&&(c.flags|=8192)):Ro(c),null;case 24:return null;case 25:return null}throw Error(t(156,c.tag))}function F0(s,c){switch(g0(c),c.tag){case 1:return br(c.type)&&ns(),s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 3:return nc(),Ln(Br),Ln(zt),cg(),s=c.flags,s&65536&&!(s&128)?(c.flags=s&-65537|128,c):null;case 5:return cn(c),null;case 13:if(Ln(Dt),s=c.memoizedState,s!==null&&s.dehydrated!==null){if(c.alternate===null)throw Error(t(340));xr()}return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 19:return Ln(Dt),null;case 4:return nc(),null;case 10:return Ju(c.type._context),null;case 22:case 23:return K0(),null;case 24:return null;default:return null}}var Kp=!1,xi=!1,uS=typeof WeakSet=="function"?WeakSet:Set,ct=null;function Bf(s,c){var v=s.ref;if(v!==null)if(typeof v=="function")try{v(null)}catch(_){Vr(s,c,_)}else v.current=null}function Gp(s,c,v){try{v()}catch(_){Vr(s,c,_)}}var cS=!1;function dS(s,c){if(u0=Ja,s=Km(),$l(s)){if("selectionStart"in s)var v={start:s.selectionStart,end:s.selectionEnd};else e:{v=(v=s.ownerDocument)&&v.defaultView||window;var _=v.getSelection&&v.getSelection();if(_&&_.rangeCount!==0){v=_.anchorNode;var w=_.anchorOffset,R=_.focusNode;_=_.focusOffset;try{v.nodeType,R.nodeType}catch{v=null;break e}var N=0,z=-1,K=-1,pe=0,Me=0,De=s,Ne=null;t:for(;;){for(var it;De!==v||w!==0&&De.nodeType!==3||(z=N+w),De!==R||_!==0&&De.nodeType!==3||(K=N+_),De.nodeType===3&&(N+=De.nodeValue.length),(it=De.firstChild)!==null;)Ne=De,De=it;for(;;){if(De===s)break t;if(Ne===v&&++pe===w&&(z=N),Ne===R&&++Me===_&&(K=N),(it=De.nextSibling)!==null)break;De=Ne,Ne=De.parentNode}De=it}v=z===-1||K===-1?null:{start:z,end:K}}else v=null}v=v||{start:0,end:0}}else v=null;for(Zc={focusedElem:s,selectionRange:v},Ja=!1,ct=c;ct!==null;)if(c=ct,s=c.child,(c.subtreeFlags&1028)!==0&&s!==null)s.return=c,ct=s;else for(;ct!==null;){c=ct;try{var dt=c.alternate;if(c.flags&1024)switch(c.tag){case 0:case 11:case 15:break;case 1:if(dt!==null){var mt=dt.memoizedProps,Zr=dt.memoizedState,ie=c.stateNode,X=ie.getSnapshotBeforeUpdate(c.elementType===c.type?mt:Na(c.type,mt),Zr);ie.__reactInternalSnapshotBeforeUpdate=X}break;case 3:var ue=c.stateNode.containerInfo;ue.nodeType===1?ue.textContent="":ue.nodeType===9&&ue.documentElement&&ue.removeChild(ue.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(t(163))}}catch(ze){Vr(c,c.return,ze)}if(s=c.sibling,s!==null){s.return=c.return,ct=s;break}ct=c.return}return dt=cS,cS=!1,dt}function Wp(s,c,v){var _=c.updateQueue;if(_=_!==null?_.lastEffect:null,_!==null){var w=_=_.next;do{if((w.tag&s)===s){var R=w.destroy;w.destroy=void 0,R!==void 0&&Gp(c,v,R)}w=w.next}while(w!==_)}}function Yp(s,c){if(c=c.updateQueue,c=c!==null?c.lastEffect:null,c!==null){var v=c=c.next;do{if((v.tag&s)===s){var _=v.create;v.destroy=_()}v=v.next}while(v!==c)}}function $0(s){var c=s.ref;if(c!==null){var v=s.stateNode;switch(s.tag){case 5:s=v;break;default:s=v}typeof c=="function"?c(s):c.current=s}}function H0(s){var c=s.alternate;c!==null&&(s.alternate=null,H0(c)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(c=s.stateNode,c!==null&&(delete c[tl],delete c[td],delete c[f0],delete c[HA],delete c[h0])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function fS(s){return s.tag===5||s.tag===3||s.tag===4}function Ng(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||fS(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function qf(s,c,v){var _=s.tag;if(_===5||_===6)s=s.stateNode,c?v.nodeType===8?v.parentNode.insertBefore(s,c):v.insertBefore(s,c):(v.nodeType===8?(c=v.parentNode,c.insertBefore(s,v)):(c=v,c.appendChild(s)),v=v._reactRootContainer,v!=null||c.onclick!==null||(c.onclick=Jm));else if(_!==4&&(s=s.child,s!==null))for(qf(s,c,v),s=s.sibling;s!==null;)qf(s,c,v),s=s.sibling}function ol(s,c,v){var _=s.tag;if(_===5||_===6)s=s.stateNode,c?v.insertBefore(s,c):v.appendChild(s);else if(_!==4&&(s=s.child,s!==null))for(ol(s,c,v),s=s.sibling;s!==null;)ol(s,c,v),s=s.sibling}var Sr=null,Hi=!1;function ls(s,c,v){for(v=v.child;v!==null;)Vf(s,c,v),v=v.sibling}function Vf(s,c,v){if(la&&typeof la.onCommitFiberUnmount=="function")try{la.onCommitFiberUnmount(Pu,v)}catch{}switch(v.tag){case 5:xi||Bf(v,c);case 6:var _=Sr,w=Hi;Sr=null,ls(s,c,v),Sr=_,Hi=w,Sr!==null&&(Hi?(s=Sr,v=v.stateNode,s.nodeType===8?s.parentNode.removeChild(v):s.removeChild(v)):Sr.removeChild(v.stateNode));break;case 18:Sr!==null&&(Hi?(s=Sr,v=v.stateNode,s.nodeType===8?Ku(s.parentNode,v):s.nodeType===1&&Ku(s,v),ju(s)):Ku(Sr,v.stateNode));break;case 4:_=Sr,w=Hi,Sr=v.stateNode.containerInfo,Hi=!0,ls(s,c,v),Sr=_,Hi=w;break;case 0:case 11:case 14:case 15:if(!xi&&(_=v.updateQueue,_!==null&&(_=_.lastEffect,_!==null))){w=_=_.next;do{var R=w,N=R.destroy;R=R.tag,N!==void 0&&(R&2||R&4)&&Gp(v,c,N),w=w.next}while(w!==_)}ls(s,c,v);break;case 1:if(!xi&&(Bf(v,c),_=v.stateNode,typeof _.componentWillUnmount=="function"))try{_.props=v.memoizedProps,_.state=v.memoizedState,_.componentWillUnmount()}catch(z){Vr(v,c,z)}ls(s,c,v);break;case 21:ls(s,c,v);break;case 22:v.mode&1?(xi=(_=xi)||v.memoizedState!==null,ls(s,c,v),xi=_):ls(s,c,v);break;default:ls(s,c,v)}}function Wl(s){var c=s.updateQueue;if(c!==null){s.updateQueue=null;var v=s.stateNode;v===null&&(v=s.stateNode=new uS),c.forEach(function(_){var w=ZA.bind(null,s,_);v.has(_)||(v.add(_),_.then(w,w))})}}function Ds(s,c){var v=c.deletions;if(v!==null)for(var _=0;_<v.length;_++){var w=v[_];try{var R=s,N=c,z=N;e:for(;z!==null;){switch(z.tag){case 5:Sr=z.stateNode,Hi=!1;break e;case 3:Sr=z.stateNode.containerInfo,Hi=!0;break e;case 4:Sr=z.stateNode.containerInfo,Hi=!0;break e}z=z.return}if(Sr===null)throw Error(t(160));Vf(R,N,w),Sr=null,Hi=!1;var K=w.alternate;K!==null&&(K.return=null),w.return=null}catch(pe){Vr(w,c,pe)}}if(c.subtreeFlags&12854)for(c=c.child;c!==null;)hS(c,s),c=c.sibling}function hS(s,c){var v=s.alternate,_=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(Ds(c,s),al(s),_&4){try{Wp(3,s,s.return),Yp(3,s)}catch(mt){Vr(s,s.return,mt)}try{Wp(5,s,s.return)}catch(mt){Vr(s,s.return,mt)}}break;case 1:Ds(c,s),al(s),_&512&&v!==null&&Bf(v,v.return);break;case 5:if(Ds(c,s),al(s),_&512&&v!==null&&Bf(v,v.return),s.flags&32){var w=s.stateNode;try{wo(w,"")}catch(mt){Vr(s,s.return,mt)}}if(_&4&&(w=s.stateNode,w!=null)){var R=s.memoizedProps,N=v!==null?v.memoizedProps:R,z=s.type,K=s.updateQueue;if(s.updateQueue=null,K!==null)try{z==="input"&&R.type==="radio"&&R.name!=null&&Hr(w,R),Ve(z,N);var pe=Ve(z,R);for(N=0;N<K.length;N+=2){var Me=K[N],De=K[N+1];Me==="style"?re(w,De):Me==="dangerouslySetInnerHTML"?Qa(w,De):Me==="children"?wo(w,De):j(w,Me,De,pe)}switch(z){case"input":dr(w,R);break;case"textarea":$o(w,R);break;case"select":var Ne=w._wrapperState.wasMultiple;w._wrapperState.wasMultiple=!!R.multiple;var it=R.value;it!=null?Ei(w,!!R.multiple,it,!1):Ne!==!!R.multiple&&(R.defaultValue!=null?Ei(w,!!R.multiple,R.defaultValue,!0):Ei(w,!!R.multiple,R.multiple?[]:"",!1))}w[td]=R}catch(mt){Vr(s,s.return,mt)}}break;case 6:if(Ds(c,s),al(s),_&4){if(s.stateNode===null)throw Error(t(162));w=s.stateNode,R=s.memoizedProps;try{w.nodeValue=R}catch(mt){Vr(s,s.return,mt)}}break;case 3:if(Ds(c,s),al(s),_&4&&v!==null&&v.memoizedState.isDehydrated)try{ju(c.containerInfo)}catch(mt){Vr(s,s.return,mt)}break;case 4:Ds(c,s),al(s);break;case 13:Ds(c,s),al(s),w=s.child,w.flags&8192&&(R=w.memoizedState!==null,w.stateNode.isHidden=R,!R||w.alternate!==null&&w.alternate.memoizedState!==null||(B0=Rn())),_&4&&Wl(s);break;case 22:if(Me=v!==null&&v.memoizedState!==null,s.mode&1?(xi=(pe=xi)||Me,Ds(c,s),xi=pe):Ds(c,s),al(s),_&8192){if(pe=s.memoizedState!==null,(s.stateNode.isHidden=pe)&&!Me&&s.mode&1)for(ct=s,Me=s.child;Me!==null;){for(De=ct=Me;ct!==null;){switch(Ne=ct,it=Ne.child,Ne.tag){case 0:case 11:case 14:case 15:Wp(4,Ne,Ne.return);break;case 1:Bf(Ne,Ne.return);var dt=Ne.stateNode;if(typeof dt.componentWillUnmount=="function"){_=Ne,v=Ne.return;try{c=_,dt.props=c.memoizedProps,dt.state=c.memoizedState,dt.componentWillUnmount()}catch(mt){Vr(_,v,mt)}}break;case 5:Bf(Ne,Ne.return);break;case 22:if(Ne.memoizedState!==null){j0(De);continue}}it!==null?(it.return=Ne,ct=it):j0(De)}Me=Me.sibling}e:for(Me=null,De=s;;){if(De.tag===5){if(Me===null){Me=De;try{w=De.stateNode,pe?(R=w.style,typeof R.setProperty=="function"?R.setProperty("display","none","important"):R.display="none"):(z=De.stateNode,K=De.memoizedProps.style,N=K!=null&&K.hasOwnProperty("display")?K.display:null,z.style.display=Zt("display",N))}catch(mt){Vr(s,s.return,mt)}}}else if(De.tag===6){if(Me===null)try{De.stateNode.nodeValue=pe?"":De.memoizedProps}catch(mt){Vr(s,s.return,mt)}}else if((De.tag!==22&&De.tag!==23||De.memoizedState===null||De===s)&&De.child!==null){De.child.return=De,De=De.child;continue}if(De===s)break e;for(;De.sibling===null;){if(De.return===null||De.return===s)break e;Me===De&&(Me=null),De=De.return}Me===De&&(Me=null),De.sibling.return=De.return,De=De.sibling}}break;case 19:Ds(c,s),al(s),_&4&&Wl(s);break;case 21:break;default:Ds(c,s),al(s)}}function al(s){var c=s.flags;if(c&2){try{e:{for(var v=s.return;v!==null;){if(fS(v)){var _=v;break e}v=v.return}throw Error(t(160))}switch(_.tag){case 5:var w=_.stateNode;_.flags&32&&(wo(w,""),_.flags&=-33);var R=Ng(s);ol(s,R,w);break;case 3:case 4:var N=_.stateNode.containerInfo,z=Ng(s);qf(s,z,N);break;default:throw Error(t(161))}}catch(K){Vr(s,s.return,K)}s.flags&=-3}c&4096&&(s.flags&=-4097)}function pS(s,c,v){ct=s,Kf(s)}function Kf(s,c,v){for(var _=(s.mode&1)!==0;ct!==null;){var w=ct,R=w.child;if(w.tag===22&&_){var N=w.memoizedState!==null||Kp;if(!N){var z=w.alternate,K=z!==null&&z.memoizedState!==null||xi;z=Kp;var pe=xi;if(Kp=N,(xi=K)&&!pe)for(ct=w;ct!==null;)N=ct,K=N.child,N.tag===22&&N.memoizedState!==null?mS(w):K!==null?(K.return=N,ct=K):mS(w);for(;R!==null;)ct=R,Kf(R),R=R.sibling;ct=w,Kp=z,xi=pe}vS(s)}else w.subtreeFlags&8772&&R!==null?(R.return=w,ct=R):vS(s)}}function vS(s){for(;ct!==null;){var c=ct;if(c.flags&8772){var v=c.alternate;try{if(c.flags&8772)switch(c.tag){case 0:case 11:case 15:xi||Yp(5,c);break;case 1:var _=c.stateNode;if(c.flags&4&&!xi)if(v===null)_.componentDidMount();else{var w=c.elementType===c.type?v.memoizedProps:Na(c.type,v.memoizedProps);_.componentDidUpdate(w,v.memoizedState,_.__reactInternalSnapshotBeforeUpdate)}var R=c.updateQueue;R!==null&&rd(c,R,_);break;case 3:var N=c.updateQueue;if(N!==null){if(v=null,c.child!==null)switch(c.child.tag){case 5:v=c.child.stateNode;break;case 1:v=c.child.stateNode}rd(c,N,v)}break;case 5:var z=c.stateNode;if(v===null&&c.flags&4){v=z;var K=c.memoizedProps;switch(c.type){case"button":case"input":case"select":case"textarea":K.autoFocus&&v.focus();break;case"img":K.src&&(v.src=K.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(c.memoizedState===null){var pe=c.alternate;if(pe!==null){var Me=pe.memoizedState;if(Me!==null){var De=Me.dehydrated;De!==null&&ju(De)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(t(163))}xi||c.flags&512&&$0(c)}catch(Ne){Vr(c,c.return,Ne)}}if(c===s){ct=null;break}if(v=c.sibling,v!==null){v.return=c.return,ct=v;break}ct=c.return}}function j0(s){for(;ct!==null;){var c=ct;if(c===s){ct=null;break}var v=c.sibling;if(v!==null){v.return=c.return,ct=v;break}ct=c.return}}function mS(s){for(;ct!==null;){var c=ct;try{switch(c.tag){case 0:case 11:case 15:var v=c.return;try{Yp(4,c)}catch(K){Vr(c,v,K)}break;case 1:var _=c.stateNode;if(typeof _.componentDidMount=="function"){var w=c.return;try{_.componentDidMount()}catch(K){Vr(c,w,K)}}var R=c.return;try{$0(c)}catch(K){Vr(c,R,K)}break;case 5:var N=c.return;try{$0(c)}catch(K){Vr(c,N,K)}}}catch(K){Vr(c,c.return,K)}if(c===s){ct=null;break}var z=c.sibling;if(z!==null){z.return=c.return,ct=z;break}ct=c.return}}var Mg=Math.ceil,Qp=F.ReactCurrentDispatcher,z0=F.ReactCurrentOwner,ko=F.ReactCurrentBatchConfig,gn=0,Or=null,qr=null,ji=0,Pa=0,Gf=en(0),Ii=0,Xp=null,Yl=0,Pg=0,Wf=0,vd=null,Bo=null,B0=0,Yf=1/0,Ql=null,Dg=!1,md=null,sl=null,ac=!1,sc=null,Lg=0,Qf=0,Ug=null,gd=-1,yd=0;function Ao(){return gn&6?Rn():gd!==-1?gd:gd=Rn()}function hi(s){return s.mode&1?gn&2&&ji!==0?ji&-ji:ig.transition!==null?(yd===0&&(yd=gf()),yd):(s=Nn,s!==0||(s=window.event,s=s===void 0?16:_p(s.type)),s):1}function xo(s,c,v,_){if(50<Qf)throw Qf=0,Ug=null,Error(t(185));Pl(s,v,_),(!(gn&2)||s!==Or)&&(s===Or&&(!(gn&2)&&(Pg|=v),Ii===4&&us(s,ji)),Io(s,_),v===1&&gn===0&&!(c.mode&1)&&(Yf=Rn()+500,Fi&&ha()))}function Io(s,c){var v=s.callbackNode;Uu(s,c);var _=jo(s,s===Or?ji:0);if(_===0)v!==null&&Zi(v),s.callbackNode=null,s.callbackPriority=0;else if(c=_&-_,s.callbackPriority!==c){if(v!=null&&Zi(v),c===1)s.tag===0?v0(gS.bind(null,s)):p0(gS.bind(null,s)),d0(function(){!(gn&6)&&ha()}),v=null;else{switch(_f(_)){case 1:v=ks;break;case 4:v=ln;break;case 16:v=Js;break;case 536870912:v=vf;break;default:v=Js}v=Y0(v,Xf.bind(null,s))}s.callbackPriority=c,s.callbackNode=v}}function Xf(s,c){if(gd=-1,yd=0,gn&6)throw Error(t(327));var v=s.callbackNode;if(Zf()&&s.callbackNode!==v)return null;var _=jo(s,s===Or?ji:0);if(_===0)return null;if(_&30||_&s.expiredLanes||c)c=$g(s,_);else{c=_;var w=gn;gn|=2;var R=Fg();(Or!==s||ji!==c)&&(Ql=null,Yf=Rn()+500,_d(s,c));do try{YA();break}catch(z){yS(s,z)}while(1);E0(),Qp.current=R,gn=w,qr!==null?c=0:(Or=null,ji=0,c=Ii)}if(c!==0){if(c===2&&(w=Fu(s),w!==0&&(_=w,c=q0(s,w))),c===1)throw v=Xp,_d(s,0),us(s,_),Io(s,Rn()),v;if(c===6)us(s,_);else{if(w=s.current.alternate,!(_&30)&&!V0(w)&&(c=$g(s,_),c===2&&(R=Fu(s),R!==0&&(_=R,c=q0(s,R))),c===1))throw v=Xp,_d(s,0),us(s,_),Io(s,Rn()),v;switch(s.finishedWork=w,s.finishedLanes=_,c){case 0:case 1:throw Error(t(345));case 2:Cd(s,Bo,Ql);break;case 3:if(us(s,_),(_&130023424)===_&&(c=B0+500-Rn(),10<c)){if(jo(s,0)!==0)break;if(w=s.suspendedLanes,(w&_)!==_){Ao(),s.pingedLanes|=s.suspendedLanes&w;break}s.timeoutHandle=ed(Cd.bind(null,s,Bo,Ql),c);break}Cd(s,Bo,Ql);break;case 4:if(us(s,_),(_&4194240)===_)break;for(c=s.eventTimes,w=-1;0<_;){var N=31-Ho(_);R=1<<N,N=c[N],N>w&&(w=N),_&=~R}if(_=w,_=Rn()-_,_=(120>_?120:480>_?480:1080>_?1080:1920>_?1920:3e3>_?3e3:4320>_?4320:1960*Mg(_/1960))-_,10<_){s.timeoutHandle=ed(Cd.bind(null,s,Bo,Ql),_);break}Cd(s,Bo,Ql);break;case 5:Cd(s,Bo,Ql);break;default:throw Error(t(329))}}}return Io(s,Rn()),s.callbackNode===v?Xf.bind(null,s):null}function q0(s,c){var v=vd;return s.current.memoizedState.isDehydrated&&(_d(s,c).flags|=256),s=$g(s,c),s!==2&&(c=Bo,Bo=v,c!==null&&Jp(c)),s}function Jp(s){Bo===null?Bo=s:Bo.push.apply(Bo,s)}function V0(s){for(var c=s;;){if(c.flags&16384){var v=c.updateQueue;if(v!==null&&(v=v.stores,v!==null))for(var _=0;_<v.length;_++){var w=v[_],R=w.getSnapshot;w=w.value;try{if(!Za(R(),w))return!1}catch{return!1}}}if(v=c.child,c.subtreeFlags&16384&&v!==null)v.return=c,c=v;else{if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function us(s,c){for(c&=~Wf,c&=~Pg,s.suspendedLanes|=c,s.pingedLanes&=~c,s=s.expirationTimes;0<c;){var v=31-Ho(c),_=1<<v;s[v]=-1,c&=~_}}function gS(s){if(gn&6)throw Error(t(327));Zf();var c=jo(s,0);if(!(c&1))return Io(s,Rn()),null;var v=$g(s,c);if(s.tag!==0&&v===2){var _=Fu(s);_!==0&&(c=_,v=q0(s,_))}if(v===1)throw v=Xp,_d(s,0),us(s,c),Io(s,Rn()),v;if(v===6)throw Error(t(345));return s.finishedWork=s.current.alternate,s.finishedLanes=c,Cd(s,Bo,Ql),Io(s,Rn()),null}function Jf(s,c){var v=gn;gn|=1;try{return s(c)}finally{gn=v,gn===0&&(Yf=Rn()+500,Fi&&ha())}}function lc(s){sc!==null&&sc.tag===0&&!(gn&6)&&Zf();var c=gn;gn|=1;var v=ko.transition,_=Nn;try{if(ko.transition=null,Nn=1,s)return s()}finally{Nn=_,ko.transition=v,gn=c,!(gn&6)&&ha()}}function K0(){Pa=Gf.current,Ln(Gf)}function _d(s,c){s.finishedWork=null,s.finishedLanes=0;var v=s.timeoutHandle;if(v!==-1&&(s.timeoutHandle=-1,Vb(v)),qr!==null)for(v=qr.return;v!==null;){var _=v;switch(g0(_),_.tag){case 1:_=_.type.childContextTypes,_!=null&&ns();break;case 3:nc(),Ln(Br),Ln(zt),cg();break;case 5:cn(_);break;case 4:nc();break;case 13:Ln(Dt);break;case 19:Ln(Dt);break;case 10:Ju(_.type._context);break;case 22:case 23:K0()}v=v.return}if(Or=s,qr=s=uc(s.current,null),ji=Pa=c,Ii=0,Xp=null,Wf=Pg=Yl=0,Bo=vd=null,to!==null){for(c=0;c<to.length;c++)if(v=to[c],_=v.interleaved,_!==null){v.interleaved=null;var w=_.next,R=v.pending;if(R!==null){var N=R.next;R.next=w,_.next=N}v.pending=_}to=null}return s}function yS(s,c){do{var v=qr;try{if(E0(),dg.current=kg,Lt){for(var _=vr.memoizedState;_!==null;){var w=_.queue;w!==null&&(w.pending=null),_=_.next}Lt=!1}if(od=0,bn=Se=vr=null,il=!1,Ma=0,z0.current=null,v===null||v.return===null){Ii=1,Xp=c,qr=null;break}e:{var R=s,N=v.return,z=v,K=c;if(c=ji,z.flags|=32768,K!==null&&typeof K=="object"&&typeof K.then=="function"){var pe=K,Me=z,De=Me.tag;if(!(Me.mode&1)&&(De===0||De===11||De===15)){var Ne=Me.alternate;Ne?(Me.updateQueue=Ne.updateQueue,Me.memoizedState=Ne.memoizedState,Me.lanes=Ne.lanes):(Me.updateQueue=null,Me.memoizedState=null)}var it=I0(N);if(it!==null){it.flags&=-257,O0(it,N,z,R,c),it.mode&1&&aS(R,pe,c),c=it,K=pe;var dt=c.updateQueue;if(dt===null){var mt=new Set;mt.add(K),c.updateQueue=mt}else dt.add(K);break e}else{if(!(c&1)){aS(R,pe,c),G0();break e}K=Error(t(426))}}else if(pr&&z.mode&1){var Zr=I0(N);if(Zr!==null){!(Zr.flags&65536)&&(Zr.flags|=256),O0(Zr,N,z,R,c),_0(Hf(K,z));break e}}R=K=Hf(K,z),Ii!==4&&(Ii=2),vd===null?vd=[R]:vd.push(R),R=N;do{switch(R.tag){case 3:R.flags|=65536,c&=-c,R.lanes|=c;var ie=oS(R,K,c);S0(R,ie);break e;case 1:z=K;var X=R.type,ue=R.stateNode;if(!(R.flags&128)&&(typeof X.getDerivedStateFromError=="function"||ue!==null&&typeof ue.componentDidCatch=="function"&&(sl===null||!sl.has(ue)))){R.flags|=65536,c&=-c,R.lanes|=c;var ze=Bp(R,z,c);S0(R,ze);break e}}R=R.return}while(R!==null)}W0(v)}catch(Ct){c=Ct,qr===v&&v!==null&&(qr=v=v.return);continue}break}while(1)}function Fg(){var s=Qp.current;return Qp.current=kg,s===null?kg:s}function G0(){(Ii===0||Ii===3||Ii===2)&&(Ii=4),Or===null||!(Yl&268435455)&&!(Pg&268435455)||us(Or,ji)}function $g(s,c){var v=gn;gn|=2;var _=Fg();(Or!==s||ji!==c)&&(Ql=null,_d(s,c));do try{WA();break}catch(w){yS(s,w)}while(1);if(E0(),gn=v,Qp.current=_,qr!==null)throw Error(t(261));return Or=null,ji=0,Ii}function WA(){for(;qr!==null;)_S(qr)}function YA(){for(;qr!==null&&!Xs();)_S(qr)}function _S(s){var c=ES(s.alternate,s,Pa);s.memoizedProps=s.pendingProps,c===null?W0(s):qr=c,z0.current=null}function W0(s){var c=s;do{var v=c.alternate;if(s=c.return,c.flags&32768){if(v=F0(v,c),v!==null){v.flags&=32767,qr=v;return}if(s!==null)s.flags|=32768,s.subtreeFlags=0,s.deletions=null;else{Ii=6,qr=null;return}}else if(v=GA(v,c,Pa),v!==null){qr=v;return}if(c=c.sibling,c!==null){qr=c;return}qr=c=s}while(c!==null);Ii===0&&(Ii=5)}function Cd(s,c,v){var _=Nn,w=ko.transition;try{ko.transition=null,Nn=1,QA(s,c,v,_)}finally{ko.transition=w,Nn=_}return null}function QA(s,c,v,_){do Zf();while(sc!==null);if(gn&6)throw Error(t(327));v=s.finishedWork;var w=s.finishedLanes;if(v===null)return null;if(s.finishedWork=null,s.finishedLanes=0,v===s.current)throw Error(t(177));s.callbackNode=null,s.callbackPriority=0;var R=v.lanes|v.childLanes;if(q_(s,R),s===Or&&(qr=Or=null,ji=0),!(v.subtreeFlags&2064)&&!(v.flags&2064)||ac||(ac=!0,Y0(Js,function(){return Zf(),null})),R=(v.flags&15990)!==0,v.subtreeFlags&15990||R){R=ko.transition,ko.transition=null;var N=Nn;Nn=1;var z=gn;gn|=4,z0.current=null,dS(s,v),hS(v,s),Gm(Zc),Ja=!!u0,Zc=u0=null,s.current=v,pS(v),pf(),gn=z,Nn=N,ko.transition=R}else s.current=v;if(ac&&(ac=!1,sc=s,Lg=w),R=s.pendingLanes,R===0&&(sl=null),mp(v.stateNode),Io(s,Rn()),c!==null)for(_=s.onRecoverableError,v=0;v<c.length;v++)w=c[v],_(w.value,{componentStack:w.stack,digest:w.digest});if(Dg)throw Dg=!1,s=md,md=null,s;return Lg&1&&s.tag!==0&&Zf(),R=s.pendingLanes,R&1?s===Ug?Qf++:(Qf=0,Ug=s):Qf=0,ha(),null}function Zf(){if(sc!==null){var s=_f(Lg),c=ko.transition,v=Nn;try{if(ko.transition=null,Nn=16>s?16:s,sc===null)var _=!1;else{if(s=sc,sc=null,Lg=0,gn&6)throw Error(t(331));var w=gn;for(gn|=4,ct=s.current;ct!==null;){var R=ct,N=R.child;if(ct.flags&16){var z=R.deletions;if(z!==null){for(var K=0;K<z.length;K++){var pe=z[K];for(ct=pe;ct!==null;){var Me=ct;switch(Me.tag){case 0:case 11:case 15:Wp(8,Me,R)}var De=Me.child;if(De!==null)De.return=Me,ct=De;else for(;ct!==null;){Me=ct;var Ne=Me.sibling,it=Me.return;if(H0(Me),Me===pe){ct=null;break}if(Ne!==null){Ne.return=it,ct=Ne;break}ct=it}}}var dt=R.alternate;if(dt!==null){var mt=dt.child;if(mt!==null){dt.child=null;do{var Zr=mt.sibling;mt.sibling=null,mt=Zr}while(mt!==null)}}ct=R}}if(R.subtreeFlags&2064&&N!==null)N.return=R,ct=N;else e:for(;ct!==null;){if(R=ct,R.flags&2048)switch(R.tag){case 0:case 11:case 15:Wp(9,R,R.return)}var ie=R.sibling;if(ie!==null){ie.return=R.return,ct=ie;break e}ct=R.return}}var X=s.current;for(ct=X;ct!==null;){N=ct;var ue=N.child;if(N.subtreeFlags&2064&&ue!==null)ue.return=N,ct=ue;else e:for(N=X;ct!==null;){if(z=ct,z.flags&2048)try{switch(z.tag){case 0:case 11:case 15:Yp(9,z)}}catch(Ct){Vr(z,z.return,Ct)}if(z===N){ct=null;break e}var ze=z.sibling;if(ze!==null){ze.return=z.return,ct=ze;break e}ct=z.return}}if(gn=w,ha(),la&&typeof la.onPostCommitFiberRoot=="function")try{la.onPostCommitFiberRoot(Pu,s)}catch{}_=!0}return _}finally{Nn=v,ko.transition=c}}return!1}function CS(s,c,v){c=Hf(v,c),c=oS(s,c,1),s=ec(s,c,1),c=Ao(),s!==null&&(Pl(s,1,c),Io(s,c))}function Vr(s,c,v){if(s.tag===3)CS(s,s,v);else for(;c!==null;){if(c.tag===3){CS(c,s,v);break}else if(c.tag===1){var _=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof _.componentDidCatch=="function"&&(sl===null||!sl.has(_))){s=Hf(v,s),s=Bp(c,s,1),c=ec(c,s,1),s=Ao(),c!==null&&(Pl(c,1,s),Io(c,s));break}}c=c.return}}function XA(s,c,v){var _=s.pingCache;_!==null&&_.delete(c),c=Ao(),s.pingedLanes|=s.suspendedLanes&v,Or===s&&(ji&v)===v&&(Ii===4||Ii===3&&(ji&130023424)===ji&&500>Rn()-B0?_d(s,0):Wf|=v),Io(s,c)}function Hg(s,c){c===0&&(s.mode&1?(c=Du,Du<<=1,!(Du&130023424)&&(Du=4194304)):c=1);var v=Ao();s=ql(s,c),s!==null&&(Pl(s,c,v),Io(s,v))}function JA(s){var c=s.memoizedState,v=0;c!==null&&(v=c.retryLane),Hg(s,v)}function ZA(s,c){var v=0;switch(s.tag){case 13:var _=s.stateNode,w=s.memoizedState;w!==null&&(v=w.retryLane);break;case 19:_=s.stateNode;break;default:throw Error(t(314))}_!==null&&_.delete(c),Hg(s,v)}var ES;ES=function(s,c,v){if(s!==null)if(s.memoizedProps!==c.pendingProps||Br.current)fi=!0;else{if(!(s.lanes&v)&&!(c.flags&128))return fi=!1,Gl(s,c,v);fi=!!(s.flags&131072)}else fi=!1,pr&&c.flags&1048576&&m0(c,Mf,c.index);switch(c.lanes=0,c.tag){case 2:var _=c.type;To(s,c),s=c.pendingProps;var w=ts(c,zt.current);Xe(c,v),w=rc(null,c,_,s,w,v);var R=ld();return c.flags|=1,typeof w=="object"&&w!==null&&typeof w.render=="function"&&w.$$typeof===void 0?(c.tag=1,c.memoizedState=null,c.updateQueue=null,br(_)?(R=!0,Zm(c)):R=!1,c.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,b0(c),w.updater=sg,c.stateNode=w,w._reactInternals=c,lg(c,_,s,v),c=sS(null,c,_,!0,R,v)):(c.tag=0,pr&&R&&eg(c),ki(null,c,w,v),c=c.child),c;case 16:_=c.elementType;e:{switch(To(s,c),s=c.pendingProps,w=_._init,_=w(_._payload),c.type=_,w=c.tag=tx(_),s=Na(_,s),w){case 0:c=jf(null,c,_,s,v);break e;case 1:c=N0(null,c,_,s,v);break e;case 11:c=oc(null,c,_,s,v);break e;case 14:c=xg(null,c,_,Na(_.type,s),v);break e}throw Error(t(306,_,""))}return c;case 0:return _=c.type,w=c.pendingProps,w=c.elementType===_?w:Na(_,w),jf(s,c,_,w,v);case 1:return _=c.type,w=c.pendingProps,w=c.elementType===_?w:Na(_,w),N0(s,c,_,w,v);case 3:e:{if(lS(c),s===null)throw Error(t(387));_=c.pendingProps,R=c.memoizedState,w=R.element,Ri(s,c),tc(c,_,null,v);var N=c.memoizedState;if(_=N.element,R.isDehydrated)if(R={element:_,isDehydrated:!1,cache:N.cache,pendingSuspenseBoundaries:N.pendingSuspenseBoundaries,transitions:N.transitions},c.updateQueue.baseState=R,c.memoizedState=R,c.flags&256){w=Hf(Error(t(423)),c),c=Ig(s,c,_,v,w);break e}else if(_!==w){w=Hf(Error(t(424)),c),c=Ig(s,c,_,v,w);break e}else for(ma=Ms(c.stateNode.containerInfo.firstChild),Oa=c,pr=!0,is=null,v=rS(c,null,_,v),c.child=v;v;)v.flags=v.flags&-3|4096,v=v.sibling;else{if(xr(),_===w){c=no(s,c,v);break e}ki(s,c,_,v)}c=c.child}return c;case 5:return Nt(c),s===null&&ng(c),_=c.type,w=c.pendingProps,R=s!==null?s.memoizedProps:null,N=w.children,Op(_,w)?N=null:R!==null&&Op(_,R)&&(c.flags|=32),tn(s,c),ki(s,c,N,v),c.child;case 6:return s===null&&ng(c),null;case 13:return P0(s,c,v);case 4:return R0(c,c.stateNode.containerInfo),_=c.pendingProps,s===null?c.child=Df(c,null,_,v):ki(s,c,_,v),c.child;case 11:return _=c.type,w=c.pendingProps,w=c.elementType===_?w:Na(_,w),oc(s,c,_,w,v);case 7:return ki(s,c,c.pendingProps,v),c.child;case 8:return ki(s,c,c.pendingProps.children,v),c.child;case 12:return ki(s,c,c.pendingProps.children,v),c.child;case 10:e:{if(_=c.type._context,w=c.pendingProps,R=c.memoizedProps,N=w.value,Hn(rl,_._currentValue),_._currentValue=N,R!==null)if(Za(R.value,N)){if(R.children===w.children&&!Br.current){c=no(s,c,v);break e}}else for(R=c.child,R!==null&&(R.return=c);R!==null;){var z=R.dependencies;if(z!==null){N=R.child;for(var K=z.firstContext;K!==null;){if(K.context===_){if(R.tag===1){K=Vl(-1,v&-v),K.tag=2;var pe=R.updateQueue;if(pe!==null){pe=pe.shared;var Me=pe.pending;Me===null?K.next=K:(K.next=Me.next,Me.next=K),pe.pending=K}}R.lanes|=v,K=R.alternate,K!==null&&(K.lanes|=v),$i(R.return,v,c),z.lanes|=v;break}K=K.next}}else if(R.tag===10)N=R.type===c.type?null:R.child;else if(R.tag===18){if(N=R.return,N===null)throw Error(t(341));N.lanes|=v,z=N.alternate,z!==null&&(z.lanes|=v),$i(N,v,c),N=R.sibling}else N=R.child;if(N!==null)N.return=R;else for(N=R;N!==null;){if(N===c){N=null;break}if(R=N.sibling,R!==null){R.return=N.return,N=R;break}N=N.return}R=N}ki(s,c,w.children,v),c=c.child}return c;case 9:return w=c.type,_=c.pendingProps.children,Xe(c,v),w=Jr(w),_=_(w),c.flags|=1,ki(s,c,_,v),c.child;case 14:return _=c.type,w=Na(_,c.pendingProps),w=Na(_.type,w),xg(s,c,_,w,v);case 15:return _a(s,c,c.type,c.pendingProps,v);case 17:return _=c.type,w=c.pendingProps,w=c.elementType===_?w:Na(_,w),To(s,c),c.tag=1,br(_)?(s=!0,Zm(c)):s=!1,Xe(c,v),Zb(c,_,w),lg(c,_,w,v),sS(null,c,_,!0,s,v);case 19:return U0(s,c,v);case 22:return fd(s,c,v)}throw Error(t(156,c.tag))};function Y0(s,c){return sr(s,c)}function ex(s,c,v,_){this.tag=s,this.key=v,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=_,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function cs(s,c,v,_){return new ex(s,c,v,_)}function Q0(s){return s=s.prototype,!(!s||!s.isReactComponent)}function tx(s){if(typeof s=="function")return Q0(s)?1:0;if(s!=null){if(s=s.$$typeof,s===Be)return 11;if(s===ye)return 14}return 2}function uc(s,c){var v=s.alternate;return v===null?(v=cs(s.tag,c,s.key,s.mode),v.elementType=s.elementType,v.type=s.type,v.stateNode=s.stateNode,v.alternate=s,s.alternate=v):(v.pendingProps=c,v.type=s.type,v.flags=0,v.subtreeFlags=0,v.deletions=null),v.flags=s.flags&14680064,v.childLanes=s.childLanes,v.lanes=s.lanes,v.child=s.child,v.memoizedProps=s.memoizedProps,v.memoizedState=s.memoizedState,v.updateQueue=s.updateQueue,c=s.dependencies,v.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},v.sibling=s.sibling,v.index=s.index,v.ref=s.ref,v}function jg(s,c,v,_,w,R){var N=2;if(_=s,typeof s=="function")Q0(s)&&(N=1);else if(typeof s=="string")N=5;else e:switch(s){case Z:return Ed(v.children,w,R,c);case Re:N=8,w|=8;break;case Ge:return s=cs(12,v,c,w|2),s.elementType=Ge,s.lanes=R,s;case te:return s=cs(13,v,c,w),s.elementType=te,s.lanes=R,s;case ee:return s=cs(19,v,c,w),s.elementType=ee,s.lanes=R,s;case he:return Zp(v,w,R,c);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case at:N=10;break e;case Pe:N=9;break e;case Be:N=11;break e;case ye:N=14;break e;case me:N=16,_=null;break e}throw Error(t(130,s==null?s:typeof s,""))}return c=cs(N,v,c,w),c.elementType=s,c.type=_,c.lanes=R,c}function Ed(s,c,v,_){return s=cs(7,s,_,c),s.lanes=v,s}function Zp(s,c,v,_){return s=cs(22,s,_,c),s.elementType=he,s.lanes=v,s.stateNode={isHidden:!1},s}function ev(s,c,v){return s=cs(6,s,null,c),s.lanes=v,s}function wd(s,c,v){return c=cs(4,s.children!==null?s.children:[],s.key,c),c.lanes=v,c.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},c}function nx(s,c,v,_,w){this.tag=c,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=yf(0),this.expirationTimes=yf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yf(0),this.identifierPrefix=_,this.onRecoverableError=w,this.mutableSourceEagerHydrationData=null}function zg(s,c,v,_,w,R,N,z,K){return s=new nx(s,c,v,z,K),c===1?(c=1,R===!0&&(c|=8)):c=0,R=cs(3,null,null,c),s.current=R,R.stateNode=s,R.memoizedState={element:_,isDehydrated:v,cache:null,transitions:null,pendingSuspenseBoundaries:null},b0(R),s}function wS(s,c,v){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Y,key:_==null?null:""+_,children:s,containerInfo:c,implementation:v}}function X0(s){if(!s)return nl;s=s._reactInternals;e:{if(jt(s)!==s||s.tag!==1)throw Error(t(170));var c=s;do{switch(c.tag){case 3:c=c.stateNode.context;break e;case 1:if(br(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break e}}c=c.return}while(c!==null);throw Error(t(171))}if(s.tag===1){var v=s.type;if(br(v))return Pp(s,v,c)}return c}function bS(s,c,v,_,w,R,N,z,K){return s=zg(v,_,!0,s,w,R,N,z,K),s.context=X0(null),v=s.current,_=Ao(),w=hi(v),R=Vl(_,w),R.callback=c??null,ec(v,R,w),s.current.lanes=w,Pl(s,w,_),Io(s,_),s}function tv(s,c,v,_){var w=c.current,R=Ao(),N=hi(w);return v=X0(v),c.context===null?c.context=v:c.pendingContext=v,c=Vl(R,N),c.payload={element:s},_=_===void 0?null:_,_!==null&&(c.callback=_),s=ec(w,c,N),s!==null&&(xo(s,w,N,R),ag(s,w,N)),N}function Bg(s){if(s=s.current,!s.child)return null;switch(s.child.tag){case 5:return s.child.stateNode;default:return s.child.stateNode}}function SS(s,c){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var v=s.retryLane;s.retryLane=v!==0&&v<c?v:c}}function J0(s,c){SS(s,c),(s=s.alternate)&&SS(s,c)}function TS(){return null}var Z0=typeof reportError=="function"?reportError:function(s){console.error(s)};function qg(s){this._internalRoot=s}Xl.prototype.render=qg.prototype.render=function(s){var c=this._internalRoot;if(c===null)throw Error(t(409));tv(s,c,null,null)},Xl.prototype.unmount=qg.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var c=s.containerInfo;lc(function(){tv(null,s,null,null)}),c[zl]=null}};function Xl(s){this._internalRoot=s}Xl.prototype.unstable_scheduleHydration=function(s){if(s){var c=Ef();s={blockedOn:null,target:s,priority:c};for(var v=0;v<$n.length&&c!==0&&c<$n[v].priority;v++);$n.splice(v,0,s),v===0&&Hm(s)}};function eC(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function Vg(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function RS(){}function rx(s,c,v,_,w){if(w){if(typeof _=="function"){var R=_;_=function(){var pe=Bg(N);R.call(pe)}}var N=bS(c,_,s,0,null,!1,!1,"",RS);return s._reactRootContainer=N,s[zl]=N.current,Of(s.nodeType===8?s.parentNode:s),lc(),N}for(;w=s.lastChild;)s.removeChild(w);if(typeof _=="function"){var z=_;_=function(){var pe=Bg(K);z.call(pe)}}var K=zg(s,0,!1,null,null,!1,!1,"",RS);return s._reactRootContainer=K,s[zl]=K.current,Of(s.nodeType===8?s.parentNode:s),lc(function(){tv(c,K,v,_)}),K}function Kg(s,c,v,_,w){var R=v._reactRootContainer;if(R){var N=R;if(typeof w=="function"){var z=w;w=function(){var K=Bg(N);z.call(K)}}tv(c,N,s,w)}else N=rx(v,c,s,w,_);return Bg(N)}Kc=function(s){switch(s.tag){case 3:var c=s.stateNode;if(c.current.memoizedState.isDehydrated){var v=As(c.pendingLanes);v!==0&&(Zs(c,v|1),Io(c,Rn()),!(gn&6)&&(Yf=Rn()+500,ha()))}break;case 13:lc(function(){var _=ql(s,1);if(_!==null){var w=Ao();xo(_,s,1,w)}}),J0(s,1)}},Cf=function(s){if(s.tag===13){var c=ql(s,134217728);if(c!==null){var v=Ao();xo(c,s,134217728,v)}J0(s,134217728)}},kn=function(s){if(s.tag===13){var c=hi(s),v=ql(s,c);if(v!==null){var _=Ao();xo(v,s,c,_)}J0(s,c)}},Ef=function(){return Nn},wf=function(s,c){var v=Nn;try{return Nn=s,c()}finally{Nn=v}},_t=function(s,c,v){switch(c){case"input":if(dr(s,v),c=v.name,v.type==="radio"&&c!=null){for(v=s;v.parentNode;)v=v.parentNode;for(v=v.querySelectorAll("input[name="+JSON.stringify(""+c)+'][type="radio"]'),c=0;c<v.length;c++){var _=v[c];if(_!==s&&_.form===s.form){var w=kt(_);if(!w)throw Error(t(90));Eo(_),dr(_,w)}}}break;case"textarea":$o(s,v);break;case"select":c=v.value,c!=null&&Ei(s,!!v.multiple,c,!1)}},Kn=Jf,fr=lc;var ix={usingClientEntryPoint:!1,Events:[Mp,Nf,kt,Fn,mn,Jf]},eh={findFiberByHostInstance:es,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ox={bundleType:eh.bundleType,version:eh.version,rendererPackageName:eh.rendererPackageName,rendererConfig:eh.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:F.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=jr(s),s===null?null:s.stateNode},findFiberByHostInstance:eh.findFiberByHostInstance||TS,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 Gg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gg.isDisabled&&Gg.supportsFiber)try{Pu=Gg.inject(ox),la=Gg}catch{}}return Ha.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ix,Ha.createPortal=function(s,c){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!eC(c))throw Error(t(200));return wS(s,c,null,v)},Ha.createRoot=function(s,c){if(!eC(s))throw Error(t(299));var v=!1,_="",w=Z0;return c!=null&&(c.unstable_strictMode===!0&&(v=!0),c.identifierPrefix!==void 0&&(_=c.identifierPrefix),c.onRecoverableError!==void 0&&(w=c.onRecoverableError)),c=zg(s,1,!1,null,null,v,!1,_,w),s[zl]=c.current,Of(s.nodeType===8?s.parentNode:s),new qg(c)},Ha.findDOMNode=function(s){if(s==null)return null;if(s.nodeType===1)return s;var c=s._reactInternals;if(c===void 0)throw typeof s.render=="function"?Error(t(188)):(s=Object.keys(s).join(","),Error(t(268,s)));return s=jr(c),s=s===null?null:s.stateNode,s},Ha.flushSync=function(s){return lc(s)},Ha.hydrate=function(s,c,v){if(!Vg(c))throw Error(t(200));return Kg(null,s,c,!0,v)},Ha.hydrateRoot=function(s,c,v){if(!eC(s))throw Error(t(405));var _=v!=null&&v.hydratedSources||null,w=!1,R="",N=Z0;if(v!=null&&(v.unstable_strictMode===!0&&(w=!0),v.identifierPrefix!==void 0&&(R=v.identifierPrefix),v.onRecoverableError!==void 0&&(N=v.onRecoverableError)),c=bS(c,null,s,1,v??null,w,!1,R,N),s[zl]=c.current,Of(s),_)for(s=0;s<_.length;s++)v=_[s],w=v._getVersion,w=w(v._source),c.mutableSourceEagerHydrationData==null?c.mutableSourceEagerHydrationData=[v,w]:c.mutableSourceEagerHydrationData.push(v,w);return new Xl(c)},Ha.render=function(s,c,v){if(!Vg(c))throw Error(t(200));return Kg(null,s,c,!1,v)},Ha.unmountComponentAtNode=function(s){if(!Vg(s))throw Error(t(40));return s._reactRootContainer?(lc(function(){Kg(null,null,s,!1,function(){s._reactRootContainer=null,s[zl]=null})}),!0):!1},Ha.unstable_batchedUpdates=Jf,Ha.unstable_renderSubtreeIntoContainer=function(s,c,v,_){if(!Vg(v))throw Error(t(200));if(s==null||s._reactInternals===void 0)throw Error(t(38));return Kg(s,c,v,!1,_)},Ha.version="18.2.0-next-9e3b772b8-20220608",Ha}var ja={};/**
97
- * @license React
98
- * react-dom.development.js
99
- *
100
- * Copyright (c) Facebook, Inc. and its affiliates.
101
- *
102
- * This source code is licensed under the MIT license found in the
103
- * LICENSE file in the root directory of this source tree.
104
- */var sN;function tj(){return sN||(sN=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n=U,e=oN(),t=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,r=!1;function a(i){r=i}function l(i){if(!r){for(var o=arguments.length,d=new Array(o>1?o-1:0),h=1;h<o;h++)d[h-1]=arguments[h];f("warn",i,d)}}function u(i){if(!r){for(var o=arguments.length,d=new Array(o>1?o-1:0),h=1;h<o;h++)d[h-1]=arguments[h];f("error",i,d)}}function f(i,o,d){{var h=t.ReactDebugCurrentFrame,g=h.getStackAddendum();g!==""&&(o+="%s",d=d.concat([g]));var C=d.map(function(b){return String(b)});C.unshift("Warning: "+o),Function.prototype.apply.call(console[i],console,C)}}var p=0,m=1,y=2,E=3,S=4,T=5,A=6,I=7,P=8,D=9,L=10,j=11,F=12,V=13,Y=14,Z=15,Re=16,Ge=17,at=18,Pe=19,Be=21,te=22,ee=23,ye=24,me=25,he=!0,G=!1,ge=!1,H=!1,ne=!1,xe=!0,ut=!1,Ue=!1,It=!0,Ft=!0,qt=!0,bt=new Set,_n={},Xr={};function Xn(i,o){Eo(i,o),Eo(i+"Capture",o)}function Eo(i,o){_n[i]&&u("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",i),_n[i]=o;{var d=i.toLowerCase();Xr[d]=i,i==="onDoubleClick"&&(Xr.ondblclick=i)}for(var h=0;h<o.length;h++)bt.add(o[h])}var ur=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",si=Object.prototype.hasOwnProperty;function cr(i){{var o=typeof Symbol=="function"&&Symbol.toStringTag,d=o&&i[Symbol.toStringTag]||i.constructor.name||"Object";return d}}function Hr(i){try{return dr(i),!1}catch{return!0}}function dr(i){return""+i}function Ci(i,o){if(Hr(i))return u("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",o,cr(i)),dr(i)}function Di(i){if(Hr(i))return u("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",cr(i)),dr(i)}function er(i,o){if(Hr(i))return u("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",o,cr(i)),dr(i)}function Ei(i,o){if(Hr(i))return u("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",o,cr(i)),dr(i)}function Qi(i){if(Hr(i))return u("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",cr(i)),dr(i)}function wi(i){if(Hr(i))return u("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.",cr(i)),dr(i)}var $o=0,li=1,bi=2,or=3,Si=4,Qa=5,wo=6,Ke=":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",gt=Ke+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Zt=new RegExp("^["+Ke+"]["+gt+"]*$"),re={},se={};function Te(i){return si.call(se,i)?!0:si.call(re,i)?!1:Zt.test(i)?(se[i]=!0,!0):(re[i]=!0,u("Invalid attribute name: `%s`",i),!1)}function Ve(i,o,d){return o!==null?o.type===$o:d?!1:i.length>2&&(i[0]==="o"||i[0]==="O")&&(i[1]==="n"||i[1]==="N")}function yt(i,o,d,h){if(d!==null&&d.type===$o)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":{if(h)return!1;if(d!==null)return!d.acceptsBooleans;var g=i.toLowerCase().slice(0,5);return g!=="data-"&&g!=="aria-"}default:return!1}}function et(i,o,d,h){if(o===null||typeof o>"u"||yt(i,o,d,h))return!0;if(h)return!1;if(d!==null)switch(d.type){case or:return!o;case Si:return o===!1;case Qa:return isNaN(o);case wo:return isNaN(o)||o<1}return!1}function _t(i){return qe.hasOwnProperty(i)?qe[i]:null}function We(i,o,d,h,g,C,b){this.acceptsBooleans=o===bi||o===or||o===Si,this.attributeName=h,this.attributeNamespace=g,this.mustUseProperty=d,this.propertyName=i,this.type=o,this.sanitizeURL=C,this.removeEmptyString=b}var qe={},sn=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];sn.forEach(function(i){qe[i]=new We(i,$o,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var o=i[0],d=i[1];qe[o]=new We(o,li,!1,d,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){qe[i]=new We(i,bi,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){qe[i]=new We(i,bi,!1,i,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(i){qe[i]=new We(i,or,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){qe[i]=new We(i,or,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){qe[i]=new We(i,Si,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){qe[i]=new We(i,wo,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){qe[i]=new We(i,Qa,!1,i.toLowerCase(),null,!1,!1)});var Fn=/[\-\:]([a-z])/g,mn=function(i){return i[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(i){var o=i.replace(Fn,mn);qe[o]=new We(o,li,!1,i,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(i){var o=i.replace(Fn,mn);qe[o]=new We(o,li,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var o=i.replace(Fn,mn);qe[o]=new We(o,li,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){qe[i]=new We(i,li,!1,i.toLowerCase(),null,!1,!1)});var Kn="xlinkHref";qe[Kn]=new We("xlinkHref",li,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){qe[i]=new We(i,li,!1,i.toLowerCase(),null,!0,!0)});var fr=/^[\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,Xi=!1;function bo(i){!Xi&&fr.test(i)&&(Xi=!0,u("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(i)))}function Ti(i,o,d,h){if(h.mustUseProperty){var g=h.propertyName;return i[g]}else{Ci(d,o),h.sanitizeURL&&bo(""+d);var C=h.attributeName,b=null;if(h.type===Si){if(i.hasAttribute(C)){var k=i.getAttribute(C);return k===""?!0:et(o,d,h,!1)?k:k===""+d?d:k}}else if(i.hasAttribute(C)){if(et(o,d,h,!1))return i.getAttribute(C);if(h.type===or)return d;b=i.getAttribute(C)}return et(o,d,h,!1)?b===null?d:b:b===""+d?d:b}}function aa(i,o,d,h){{if(!Te(o))return;if(!i.hasAttribute(o))return d===void 0?void 0:null;var g=i.getAttribute(o);return Ci(d,o),g===""+d?d:g}}function kr(i,o,d,h){var g=_t(o);if(!Ve(o,g,h)){if(et(o,d,g,h)&&(d=null),h||g===null){if(Te(o)){var C=o;d===null?i.removeAttribute(C):(Ci(d,o),i.setAttribute(C,""+d))}return}var b=g.mustUseProperty;if(b){var k=g.propertyName;if(d===null){var x=g.type;i[k]=x===or?!1:""}else i[k]=d;return}var M=g.attributeName,$=g.attributeNamespace;if(d===null)i.removeAttribute(M);else{var J=g.type,Q;J===or||J===Si&&d===!0?Q="":(Ci(d,M),Q=""+d,g.sanitizeURL&&bo(Q.toString())),$?i.setAttributeNS($,M,Q):i.setAttribute(M,Q)}}}var ui=Symbol.for("react.element"),ci=Symbol.for("react.portal"),Ji=Symbol.for("react.fragment"),sa=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),Ce=Symbol.for("react.provider"),He=Symbol.for("react.context"),Qe=Symbol.for("react.forward_ref"),jt=Symbol.for("react.suspense"),Rt=Symbol.for("react.suspense_list"),$t=Symbol.for("react.memo"),St=Symbol.for("react.lazy"),jr=Symbol.for("react.scope"),ar=Symbol.for("react.debug_trace_mode"),sr=Symbol.for("react.offscreen"),Zi=Symbol.for("react.legacy_hidden"),Xs=Symbol.for("react.cache"),pf=Symbol.for("react.tracing_marker"),Rn=Symbol.iterator,B_="@@iterator";function ks(i){if(i===null||typeof i!="object")return null;var o=Rn&&i[Rn]||i[B_];return typeof o=="function"?o:null}var ln=Object.assign,Js=0,Mu,vf,Pu,la,mp,Ho,gp;function yp(){}yp.__reactDisabledLog=!0;function Fm(){{if(Js===0){Mu=console.log,vf=console.info,Pu=console.warn,la=console.error,mp=console.group,Ho=console.groupCollapsed,gp=console.groupEnd;var i={configurable:!0,enumerable:!0,value:yp,writable:!0};Object.defineProperties(console,{info:i,log:i,warn:i,error:i,group:i,groupCollapsed:i,groupEnd:i})}Js++}}function mf(){{if(Js--,Js===0){var i={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ln({},i,{value:Mu}),info:ln({},i,{value:vf}),warn:ln({},i,{value:Pu}),error:ln({},i,{value:la}),group:ln({},i,{value:mp}),groupCollapsed:ln({},i,{value:Ho}),groupEnd:ln({},i,{value:gp})})}Js<0&&u("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Du=t.ReactCurrentDispatcher,As;function jo(i,o,d){{if(As===void 0)try{throw Error()}catch(g){var h=g.stack.trim().match(/\n( *(at )?)/);As=h&&h[1]||""}return`
105
- `+As+i}}var Lu=!1,Uu;{var Fu=typeof WeakMap=="function"?WeakMap:Map;Uu=new Fu}function gf(i,o){if(!i||Lu)return"";{var d=Uu.get(i);if(d!==void 0)return d}var h;Lu=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var C;C=Du.current,Du.current=null,Fm();try{if(o){var b=function(){throw Error()};if(Object.defineProperty(b.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(b,[])}catch(fe){h=fe}Reflect.construct(i,[],b)}else{try{b.call()}catch(fe){h=fe}i.call(b.prototype)}}else{try{throw Error()}catch(fe){h=fe}i()}}catch(fe){if(fe&&h&&typeof fe.stack=="string"){for(var k=fe.stack.split(`
106
- `),x=h.stack.split(`
107
- `),M=k.length-1,$=x.length-1;M>=1&&$>=0&&k[M]!==x[$];)$--;for(;M>=1&&$>=0;M--,$--)if(k[M]!==x[$]){if(M!==1||$!==1)do if(M--,$--,$<0||k[M]!==x[$]){var J=`
108
- `+k[M].replace(" at new "," at ");return i.displayName&&J.includes("<anonymous>")&&(J=J.replace("<anonymous>",i.displayName)),typeof i=="function"&&Uu.set(i,J),J}while(M>=1&&$>=0);break}}}finally{Lu=!1,Du.current=C,mf(),Error.prepareStackTrace=g}var Q=i?i.displayName||i.name:"",ce=Q?jo(Q):"";return typeof i=="function"&&Uu.set(i,ce),ce}function yf(i,o,d){return gf(i,!0)}function Pl(i,o,d){return gf(i,!1)}function q_(i){var o=i.prototype;return!!(o&&o.isReactComponent)}function Zs(i,o,d){if(i==null)return"";if(typeof i=="function")return gf(i,q_(i));if(typeof i=="string")return jo(i);switch(i){case jt:return jo("Suspense");case Rt:return jo("SuspenseList")}if(typeof i=="object")switch(i.$$typeof){case Qe:return Pl(i.render);case $t:return Zs(i.type,o,d);case St:{var h=i,g=h._payload,C=h._init;try{return Zs(C(g),o,d)}catch{}}}return""}function Nn(i){switch(i._debugOwner&&i._debugOwner.type,i._debugSource,i.tag){case T:return jo(i.type);case Re:return jo("Lazy");case V:return jo("Suspense");case Pe:return jo("SuspenseList");case p:case y:case Z:return Pl(i.type);case j:return Pl(i.type.render);case m:return yf(i.type);default:return""}}function _f(i){try{var o="",d=i;do o+=Nn(d),d=d.return;while(d);return o}catch(h){return`
109
- Error generating stack: `+h.message+`
110
- `+h.stack}}function Kc(i,o,d){var h=i.displayName;if(h)return h;var g=o.displayName||o.name||"";return g!==""?d+"("+g+")":d}function Cf(i){return i.displayName||"Context"}function kn(i){if(i==null)return null;if(typeof i.tag=="number"&&u("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case Ji:return"Fragment";case ci:return"Portal";case B:return"Profiler";case sa:return"StrictMode";case jt:return"Suspense";case Rt:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case He:var o=i;return Cf(o)+".Consumer";case Ce:var d=i;return Cf(d._context)+".Provider";case Qe:return Kc(i,i.render,"ForwardRef");case $t:var h=i.displayName||null;return h!==null?h:kn(i.type)||"Memo";case St:{var g=i,C=g._payload,b=g._init;try{return kn(b(C))}catch{return null}}}return null}function Ef(i,o,d){var h=o.displayName||o.name||"";return i.displayName||(h!==""?d+"("+h+")":d)}function wf(i){return i.displayName||"Context"}function Vt(i){var o=i.tag,d=i.type;switch(o){case ye:return"Cache";case D:var h=d;return wf(h)+".Consumer";case L:var g=d;return wf(g._context)+".Provider";case at:return"DehydratedFragment";case j:return Ef(d,d.render,"ForwardRef");case I:return"Fragment";case T:return d;case S:return"Portal";case E:return"Root";case A:return"Text";case Re:return kn(d);case P:return d===sa?"StrictMode":"Mode";case te:return"Offscreen";case F:return"Profiler";case Be:return"Scope";case V:return"Suspense";case Pe:return"SuspenseList";case me:return"TracingMarker";case m:case p:case Ge:case y:case Y:case Z:if(typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;break}return null}var Gc=t.ReactDebugCurrentFrame,Ar=null,ua=!1;function zo(){{if(Ar===null)return null;var i=Ar._debugOwner;if(i!==null&&typeof i<"u")return Vt(i)}return null}function $u(){return Ar===null?"":_f(Ar)}function zr(){Gc.getCurrentStack=null,Ar=null,ua=!1}function $n(i){Gc.getCurrentStack=i===null?null:$u,Ar=i,ua=!1}function $m(){return Ar}function ca(i){ua=i}function Li(i){return""+i}function el(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return wi(i),i;default:return""}}var Hm={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Dl(i,o){Hm[o.type]||o.onChange||o.onInput||o.readOnly||o.disabled||o.value==null||u("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`."),o.onChange||o.readOnly||o.disabled||o.checked==null||u("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 Hu(i){var o=i.type,d=i.nodeName;return d&&d.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function jm(i){return i._valueTracker}function Xa(i){i._valueTracker=null}function ju(i){var o="";return i&&(Hu(i)?o=i.checked?"true":"false":o=i.value),o}function zu(i){var o=Hu(i)?"checked":"value",d=Object.getOwnPropertyDescriptor(i.constructor.prototype,o);wi(i[o]);var h=""+i[o];if(!(i.hasOwnProperty(o)||typeof d>"u"||typeof d.get!="function"||typeof d.set!="function")){var g=d.get,C=d.set;Object.defineProperty(i,o,{configurable:!0,get:function(){return g.call(this)},set:function(k){wi(k),h=""+k,C.call(this,k)}}),Object.defineProperty(i,o,{enumerable:d.enumerable});var b={getValue:function(){return h},setValue:function(k){wi(k),h=""+k},stopTracking:function(){Xa(i),delete i[o]}};return b}}function Ja(i){jm(i)||(i._valueTracker=zu(i))}function bf(i){if(!i)return!1;var o=jm(i);if(!o)return!0;var d=o.getValue(),h=ju(i);return h!==d?(o.setValue(h),!0):!1}function Bu(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var qu=!1,Wc=!1,Sf=!1,_p=!1;function xs(i){var o=i.type==="checkbox"||i.type==="radio";return o?i.checked!=null:i.value!=null}function O(i,o){var d=i,h=o.checked,g=ln({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:h??d._wrapperState.initialChecked});return g}function q(i,o){Dl("input",o),o.checked!==void 0&&o.defaultChecked!==void 0&&!Wc&&(u("%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",zo()||"A component",o.type),Wc=!0),o.value!==void 0&&o.defaultValue!==void 0&&!qu&&(u("%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",zo()||"A component",o.type),qu=!0);var d=i,h=o.defaultValue==null?"":o.defaultValue;d._wrapperState={initialChecked:o.checked!=null?o.checked:o.defaultChecked,initialValue:el(o.value!=null?o.value:h),controlled:xs(o)}}function de(i,o){var d=i,h=o.checked;h!=null&&kr(d,"checked",h,!1)}function _e(i,o){var d=i;{var h=xs(o);!d._wrapperState.controlled&&h&&!_p&&(u("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"),_p=!0),d._wrapperState.controlled&&!h&&!Sf&&(u("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"),Sf=!0)}de(i,o);var g=el(o.value),C=o.type;if(g!=null)C==="number"?(g===0&&d.value===""||d.value!=g)&&(d.value=Li(g)):d.value!==Li(g)&&(d.value=Li(g));else if(C==="submit"||C==="reset"){d.removeAttribute("value");return}o.hasOwnProperty("value")?Ot(d,o.type,g):o.hasOwnProperty("defaultValue")&&Ot(d,o.type,el(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(d.defaultChecked=!!o.defaultChecked)}function je(i,o,d){var h=i;if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var g=o.type,C=g==="submit"||g==="reset";if(C&&(o.value===void 0||o.value===null))return;var b=Li(h._wrapperState.initialValue);d||b!==h.value&&(h.value=b),h.defaultValue=b}var k=h.name;k!==""&&(h.name=""),h.defaultChecked=!h.defaultChecked,h.defaultChecked=!!h._wrapperState.initialChecked,k!==""&&(h.name=k)}function Pt(i,o){var d=i;_e(d,o),Ze(d,o)}function Ze(i,o){var d=o.name;if(o.type==="radio"&&d!=null){for(var h=i;h.parentNode;)h=h.parentNode;Ci(d,"name");for(var g=h.querySelectorAll("input[name="+JSON.stringify(""+d)+'][type="radio"]'),C=0;C<g.length;C++){var b=g[C];if(!(b===i||b.form!==i.form)){var k=BS(b);if(!k)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");bf(b),_e(b,k)}}}}function Ot(i,o,d){(o!=="number"||Bu(i.ownerDocument)!==i)&&(d==null?i.defaultValue=Li(i._wrapperState.initialValue):i.defaultValue!==Li(d)&&(i.defaultValue=Li(d)))}var un=!1,An=!1,tr=!1;function Gn(i,o){o.value==null&&(typeof o.children=="object"&&o.children!==null?n.Children.forEach(o.children,function(d){d!=null&&(typeof d=="string"||typeof d=="number"||An||(An=!0,u("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):o.dangerouslySetInnerHTML!=null&&(tr||(tr=!0,u("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),o.selected!=null&&!un&&(u("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),un=!0)}function nr(i,o){o.value!=null&&i.setAttribute("value",Li(el(o.value)))}var lr=Array.isArray;function Cn(i){return lr(i)}var Ll;Ll=!1;function Tf(){var i=zo();return i?`
111
-
112
- Check the render method of \``+i+"`.":""}var Cp=["value","defaultValue"];function V_(i){{Dl("select",i);for(var o=0;o<Cp.length;o++){var d=Cp[o];if(i[d]!=null){var h=Cn(i[d]);i.multiple&&!h?u("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",d,Tf()):!i.multiple&&h&&u("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",d,Tf())}}}}function Is(i,o,d,h){var g=i.options;if(o){for(var C=d,b={},k=0;k<C.length;k++)b["$"+C[k]]=!0;for(var x=0;x<g.length;x++){var M=b.hasOwnProperty("$"+g[x].value);g[x].selected!==M&&(g[x].selected=M),M&&h&&(g[x].defaultSelected=!0)}}else{for(var $=Li(el(d)),J=null,Q=0;Q<g.length;Q++){if(g[Q].value===$){g[Q].selected=!0,h&&(g[Q].defaultSelected=!0);return}J===null&&!g[Q].disabled&&(J=g[Q])}J!==null&&(J.selected=!0)}}function Ep(i,o){return ln({},o,{value:void 0})}function wp(i,o){var d=i;V_(o),d._wrapperState={wasMultiple:!!o.multiple},o.value!==void 0&&o.defaultValue!==void 0&&!Ll&&(u("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"),Ll=!0)}function K_(i,o){var d=i;d.multiple=!!o.multiple;var h=o.value;h!=null?Is(d,!!o.multiple,h,!1):o.defaultValue!=null&&Is(d,!!o.multiple,o.defaultValue,!0)}function RA(i,o){var d=i,h=d._wrapperState.wasMultiple;d._wrapperState.wasMultiple=!!o.multiple;var g=o.value;g!=null?Is(d,!!o.multiple,g,!1):h!==!!o.multiple&&(o.defaultValue!=null?Is(d,!!o.multiple,o.defaultValue,!0):Is(d,!!o.multiple,o.multiple?[]:"",!1))}function kA(i,o){var d=i,h=o.value;h!=null&&Is(d,!!o.multiple,h,!1)}var G_=!1;function W_(i,o){var d=i;if(o.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var h=ln({},o,{value:void 0,defaultValue:void 0,children:Li(d._wrapperState.initialValue)});return h}function yb(i,o){var d=i;Dl("textarea",o),o.value!==void 0&&o.defaultValue!==void 0&&!G_&&(u("%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",zo()||"A component"),G_=!0);var h=o.value;if(h==null){var g=o.children,C=o.defaultValue;if(g!=null){u("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(C!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Cn(g)){if(g.length>1)throw new Error("<textarea> can only have at most one child.");g=g[0]}C=g}}C==null&&(C=""),h=C}d._wrapperState={initialValue:el(h)}}function _b(i,o){var d=i,h=el(o.value),g=el(o.defaultValue);if(h!=null){var C=Li(h);C!==d.value&&(d.value=C),o.defaultValue==null&&d.defaultValue!==C&&(d.defaultValue=C)}g!=null&&(d.defaultValue=Li(g))}function Cb(i,o){var d=i,h=d.textContent;h===d._wrapperState.initialValue&&h!==""&&h!==null&&(d.value=h)}function Y_(i,o){_b(i,o)}var Ul="http://www.w3.org/1999/xhtml",AA="http://www.w3.org/1998/Math/MathML",Q_="http://www.w3.org/2000/svg";function zm(i){switch(i){case"svg":return Q_;case"math":return AA;default:return Ul}}function X_(i,o){return i==null||i===Ul?zm(o):i===Q_&&o==="foreignObject"?Ul:i}var xA=function(i){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,d,h,g){MSApp.execUnsafeLocalFunction(function(){return i(o,d,h,g)})}:i},Bm,Eb=xA(function(i,o){if(i.namespaceURI===Q_&&!("innerHTML"in i)){Bm=Bm||document.createElement("div"),Bm.innerHTML="<svg>"+o.valueOf().toString()+"</svg>";for(var d=Bm.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;d.firstChild;)i.appendChild(d.firstChild);return}i.innerHTML=o}),da=1,Fl=3,di=8,Os=9,Yc=11,qm=function(i,o){if(o){var d=i.firstChild;if(d&&d===i.lastChild&&d.nodeType===Fl){d.nodeValue=o;return}}i.textContent=o},wb={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"]},Rf={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 bb(i,o){return i+o.charAt(0).toUpperCase()+o.substring(1)}var Sb=["Webkit","ms","Moz","O"];Object.keys(Rf).forEach(function(i){Sb.forEach(function(o){Rf[bb(o,i)]=Rf[i]})});function Vm(i,o,d){var h=o==null||typeof o=="boolean"||o==="";return h?"":!d&&typeof o=="number"&&o!==0&&!(Rf.hasOwnProperty(i)&&Rf[i])?o+"px":(Ei(o,i),(""+o).trim())}var kf=/([A-Z])/g,IA=/^ms-/;function OA(i){return i.replace(kf,"-$1").toLowerCase().replace(IA,"-ms-")}var Tb=function(){};{var Rb=/^(?:webkit|moz|o)[A-Z]/,kb=/^-ms-/,bp=/-(.)/g,Af=/;\s*$/,xf={},If={},Ab=!1,J_=!1,Z_=function(i){return i.replace(bp,function(o,d){return d.toUpperCase()})},e0=function(i){xf.hasOwnProperty(i)&&xf[i]||(xf[i]=!0,u("Unsupported style property %s. Did you mean %s?",i,Z_(i.replace(kb,"ms-"))))},xb=function(i){xf.hasOwnProperty(i)&&xf[i]||(xf[i]=!0,u("Unsupported vendor-prefixed style property %s. Did you mean %s?",i,i.charAt(0).toUpperCase()+i.slice(1)))},Ib=function(i,o){If.hasOwnProperty(o)&&If[o]||(If[o]=!0,u(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,i,o.replace(Af,"")))},Ob=function(i,o){Ab||(Ab=!0,u("`NaN` is an invalid value for the `%s` css style property.",i))},NA=function(i,o){J_||(J_=!0,u("`Infinity` is an invalid value for the `%s` css style property.",i))};Tb=function(i,o){i.indexOf("-")>-1?e0(i):Rb.test(i)?xb(i):Af.test(o)&&Ib(i,o),typeof o=="number"&&(isNaN(o)?Ob(i,o):isFinite(o)||NA(i,o))}}var MA=Tb;function PA(i){{var o="",d="";for(var h in i)if(i.hasOwnProperty(h)){var g=i[h];if(g!=null){var C=h.indexOf("--")===0;o+=d+(C?h:OA(h))+":",o+=Vm(h,g,C),d=";"}}return o||null}}function Nb(i,o){var d=i.style;for(var h in o)if(o.hasOwnProperty(h)){var g=h.indexOf("--")===0;g||MA(h,o[h]);var C=Vm(h,o[h],g);h==="float"&&(h="cssFloat"),g?d.setProperty(h,C):d[h]=C}}function DA(i){return i==null||typeof i=="boolean"||i===""}function Za(i){var o={};for(var d in i)for(var h=wb[d]||[d],g=0;g<h.length;g++)o[h[g]]=d;return o}function Sp(i,o){{if(!o)return;var d=Za(i),h=Za(o),g={};for(var C in d){var b=d[C],k=h[C];if(k&&b!==k){var x=b+","+k;if(g[x])continue;g[x]=!0,u("%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.",DA(i[b])?"Removing":"Updating",b,k)}}}}var Mb={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},Pb=ln({menuitem:!0},Mb),Db="__html";function Km(i,o){if(o){if(Pb[i]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw new Error(i+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof o.dangerouslySetInnerHTML!="object"||!(Db in o.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(!o.suppressContentEditableWarning&&o.contentEditable&&o.children!=null&&u("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."),o.style!=null&&typeof o.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 $l(i,o){if(i.indexOf("-")===-1)return typeof o.is=="string";switch(i){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 Gm={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"},Lb={"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},Ns={},t0=new RegExp("^(aria)-["+gt+"]*$"),Tp=new RegExp("^(aria)[A-Z]["+gt+"]*$");function n0(i,o){{if(si.call(Ns,o)&&Ns[o])return!0;if(Tp.test(o)){var d="aria-"+o.slice(4).toLowerCase(),h=Lb.hasOwnProperty(d)?d:null;if(h==null)return u("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",o),Ns[o]=!0,!0;if(o!==h)return u("Invalid ARIA attribute `%s`. Did you mean `%s`?",o,h),Ns[o]=!0,!0}if(t0.test(o)){var g=o.toLowerCase(),C=Lb.hasOwnProperty(g)?g:null;if(C==null)return Ns[o]=!0,!1;if(o!==C)return u("Unknown ARIA attribute `%s`. Did you mean `%s`?",o,C),Ns[o]=!0,!0}}return!0}function Ub(i,o){{var d=[];for(var h in o){var g=n0(i,h);g||d.push(h)}var C=d.map(function(b){return"`"+b+"`"}).join(", ");d.length===1?u("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",C,i):d.length>1&&u("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",C,i)}}function Wm(i,o){$l(i,o)||Ub(i,o)}var Qc=!1;function r0(i,o){{if(i!=="input"&&i!=="textarea"&&i!=="select")return;o!=null&&o.value===null&&!Qc&&(Qc=!0,i==="select"&&o.multiple?u("`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.",i):u("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",i))}}var i0=function(){};{var Ui={},o0=/^on./,Fb=/^on[^A-Z]/,$b=new RegExp("^(aria)-["+gt+"]*$"),Hb=new RegExp("^(aria)[A-Z]["+gt+"]*$");i0=function(i,o,d,h){if(si.call(Ui,o)&&Ui[o])return!0;var g=o.toLowerCase();if(g==="onfocusin"||g==="onfocusout")return u("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."),Ui[o]=!0,!0;if(h!=null){var C=h.registrationNameDependencies,b=h.possibleRegistrationNames;if(C.hasOwnProperty(o))return!0;var k=b.hasOwnProperty(g)?b[g]:null;if(k!=null)return u("Invalid event handler property `%s`. Did you mean `%s`?",o,k),Ui[o]=!0,!0;if(o0.test(o))return u("Unknown event handler property `%s`. It will be ignored.",o),Ui[o]=!0,!0}else if(o0.test(o))return Fb.test(o)&&u("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",o),Ui[o]=!0,!0;if($b.test(o)||Hb.test(o))return!0;if(g==="innerhtml")return u("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Ui[o]=!0,!0;if(g==="aria")return u("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Ui[o]=!0,!0;if(g==="is"&&d!==null&&d!==void 0&&typeof d!="string")return u("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof d),Ui[o]=!0,!0;if(typeof d=="number"&&isNaN(d))return u("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",o),Ui[o]=!0,!0;var x=_t(o),M=x!==null&&x.type===$o;if(Gm.hasOwnProperty(g)){var $=Gm[g];if($!==o)return u("Invalid DOM property `%s`. Did you mean `%s`?",o,$),Ui[o]=!0,!0}else if(!M&&o!==g)return u("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.",o,g),Ui[o]=!0,!0;return typeof d=="boolean"&&yt(o,d,x,!1)?(d?u('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()}.',d,o,o,d,o):u('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.',d,o,o,d,o,o,o),Ui[o]=!0,!0):M?!0:yt(o,d,x,!1)?(Ui[o]=!0,!1):((d==="false"||d==="true")&&x!==null&&x.type===or&&(u("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",d,o,d==="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".',o,d),Ui[o]=!0),!0)}}var jb=function(i,o,d){{var h=[];for(var g in o){var C=i0(i,g,o[g],d);C||h.push(g)}var b=h.map(function(k){return"`"+k+"`"}).join(", ");h.length===1?u("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 ",b,i):h.length>1&&u("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 ",b,i)}};function zb(i,o,d){$l(i,o)||jb(i,o,d)}var Hl=1,Rp=2,Xc=4,LA=Hl|Rp|Xc,kp=null;function Ap(i){kp!==null&&u("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),kp=i}function UA(){kp===null&&u("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),kp=null}function Bb(i){return i===kp}function Ym(i){var o=i.target||i.srcElement||window;return o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===Fl?o.parentNode:o}var rr=null,Vu=null,jl=null;function Of(i){var o=rh(i);if(o){if(typeof rr!="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 d=o.stateNode;if(d){var h=BS(d);rr(o.stateNode,o.type,h)}}}function qb(i){rr=i}function Qm(i){Vu?jl?jl.push(i):jl=[i]:Vu=i}function xp(){return Vu!==null||jl!==null}function Ip(){if(Vu){var i=Vu,o=jl;if(Vu=null,jl=null,Of(i),o)for(var d=0;d<o.length;d++)Of(o[d])}}var Jc=function(i,o){return i(o)},a0=function(){},s0=!1;function FA(){var i=xp();i&&(a0(),Ip())}function l0(i,o,d){if(s0)return i(o,d);s0=!0;try{return Jc(i,o,d)}finally{s0=!1,FA()}}function Xm(i,o,d){Jc=i,a0=d}function Jm(i){return i==="button"||i==="input"||i==="select"||i==="textarea"}function u0(i,o,d){switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(d.disabled&&Jm(o));default:return!1}}function Zc(i,o){var d=i.stateNode;if(d===null)return null;var h=BS(d);if(h===null)return null;var g=h[o];if(u0(o,i.type,h))return null;if(g&&typeof g!="function")throw new Error("Expected `"+o+"` listener to be a function, instead got a value of `"+typeof g+"` type.");return g}var Op=!1;if(ur)try{var ed={};Object.defineProperty(ed,"passive",{get:function(){Op=!0}}),window.addEventListener("test",ed,ed),window.removeEventListener("test",ed,ed)}catch{Op=!1}function Vb(i,o,d,h,g,C,b,k,x){var M=Array.prototype.slice.call(arguments,3);try{o.apply(d,M)}catch($){this.onError($)}}var c0=Vb;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var d0=document.createElement("react");c0=function(o,d,h,g,C,b,k,x,M){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 $=document.createEvent("Event"),J=!1,Q=!0,ce=window.event,fe=Object.getOwnPropertyDescriptor(window,"event");function we(){d0.removeEventListener(be,At,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=ce)}var st=Array.prototype.slice.call(arguments,3);function At(){J=!0,we(),d.apply(h,st),Q=!1}var wt,Tn=!1,yn=!1;function oe(ae){if(wt=ae.error,Tn=!0,wt===null&&ae.colno===0&&ae.lineno===0&&(yn=!0),ae.defaultPrevented&&wt!=null&&typeof wt=="object")try{wt._suppressLogging=!0}catch{}}var be="react-"+(o||"invokeguardedcallback");if(window.addEventListener("error",oe),d0.addEventListener(be,At,!1),$.initEvent(be,!1,!1),d0.dispatchEvent($),fe&&Object.defineProperty(window,"event",fe),J&&Q&&(Tn?yn&&(wt=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.")):wt=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(wt)),window.removeEventListener("error",oe),!J)return we(),Vb.apply(this,arguments)}}var $A=c0,Ku=!1,Ms=null,Np=!1,Gu=null,tl={onError:function(i){Ku=!0,Ms=i}};function td(i,o,d,h,g,C,b,k,x){Ku=!1,Ms=null,$A.apply(tl,arguments)}function zl(i,o,d,h,g,C,b,k,x){if(td.apply(this,arguments),Ku){var M=h0();Np||(Np=!0,Gu=M)}}function f0(){if(Np){var i=Gu;throw Np=!1,Gu=null,i}}function HA(){return Ku}function h0(){if(Ku){var i=Ms;return Ku=!1,Ms=null,i}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 es(i){return i._reactInternals}function Mp(i){return i._reactInternals!==void 0}function Nf(i,o){i._reactInternals=o}var kt=0,Wu=1,hr=2,en=4,Ln=16,Hn=32,nl=64,zt=128,Br=256,fa=512,ts=1024,br=2048,ns=4096,Yu=8192,Pp=16384,Zm=br|en|nl|fa|ts|Pp,Kb=32767,xa=32768,Fi=65536,Dp=131072,p0=1048576,v0=2097152,ha=4194304,Qu=8388608,pa=16777216,nd=33554432,Mf=en|ts|0,va=hr|en|Ln|Hn|fa|ns|Yu,So=en|nl|fa|Yu,rs=br|Ln,eo=ha|Qu|v0,Bl=t.ReactCurrentOwner;function Ia(i){var o=i,d=i;if(i.alternate)for(;o.return;)o=o.return;else{var h=o;do o=h,(o.flags&(hr|ns))!==kt&&(d=o.return),h=o.return;while(h)}return o.tag===E?d:null}function m0(i){if(i.tag===V){var o=i.memoizedState;if(o===null){var d=i.alternate;d!==null&&(o=d.memoizedState)}if(o!==null)return o.dehydrated}return null}function eg(i){return i.tag===E?i.stateNode.containerInfo:null}function g0(i){return Ia(i)===i}function Oa(i){{var o=Bl.current;if(o!==null&&o.tag===m){var d=o,h=d.stateNode;h._warnedAboutRefsInRender||u("%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.",Vt(d)||"A component"),h._warnedAboutRefsInRender=!0}}var g=es(i);return g?Ia(g)===g:!1}function ma(i){if(Ia(i)!==i)throw new Error("Unable to find node on an unmounted component.")}function pr(i){var o=i.alternate;if(!o){var d=Ia(i);if(d===null)throw new Error("Unable to find node on an unmounted component.");return d!==i?null:i}for(var h=i,g=o;;){var C=h.return;if(C===null)break;var b=C.alternate;if(b===null){var k=C.return;if(k!==null){h=g=k;continue}break}if(C.child===b.child){for(var x=C.child;x;){if(x===h)return ma(C),i;if(x===g)return ma(C),o;x=x.sibling}throw new Error("Unable to find node on an unmounted component.")}if(h.return!==g.return)h=C,g=b;else{for(var M=!1,$=C.child;$;){if($===h){M=!0,h=C,g=b;break}if($===g){M=!0,g=C,h=b;break}$=$.sibling}if(!M){for($=b.child;$;){if($===h){M=!0,h=b,g=C;break}if($===g){M=!0,g=b,h=C;break}$=$.sibling}if(!M)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(h.alternate!==g)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(h.tag!==E)throw new Error("Unable to find node on an unmounted component.");return h.stateNode.current===h?i:o}function is(i){var o=pr(i);return o!==null?y0(o):null}function y0(i){if(i.tag===T||i.tag===A)return i;for(var o=i.child;o!==null;){var d=y0(o);if(d!==null)return d;o=o.sibling}return null}function Gb(i){var o=pr(i);return o!==null?tg(o):null}function tg(i){if(i.tag===T||i.tag===A)return i;for(var o=i.child;o!==null;){if(o.tag!==S){var d=tg(o);if(d!==null)return d}o=o.sibling}return null}var ng=e.unstable_scheduleCallback,Wb=e.unstable_cancelCallback,rg=e.unstable_shouldYield,Yb=e.unstable_requestPaint,xr=e.unstable_now,_0=e.unstable_getCurrentPriorityLevel,ig=e.unstable_ImmediatePriority,Na=e.unstable_UserBlockingPriority,rl=e.unstable_NormalPriority,og=e.unstable_LowPriority,Xu=e.unstable_IdlePriority,C0=e.unstable_yieldValue,E0=e.unstable_setDisableYieldValue,Ju=null,$i=null,Xe=null,Jr=!1,to=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function w0(i){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var o=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(o.isDisabled)return!0;if(!o.supportsFiber)return u("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{It&&(i=ln({},i,{getLaneLabelMap:ec,injectProfilingHooks:Vl})),Ju=o.inject(i),$i=o}catch(d){u("React instrumentation encountered an error: %s.",d)}return!!o.checkDCE}function Qb(i,o){if($i&&typeof $i.onScheduleFiberRoot=="function")try{$i.onScheduleFiberRoot(Ju,i,o)}catch(d){Jr||(Jr=!0,u("React instrumentation encountered an error: %s",d))}}function ql(i,o){if($i&&typeof $i.onCommitFiberRoot=="function")try{var d=(i.current.flags&zt)===zt;if(Ft){var h;switch(o){case To:h=ig;break;case no:h=Na;break;case Gl:h=rl;break;case qp:h=Xu;break;default:h=rl;break}$i.onCommitFiberRoot(Ju,i,h,d)}}catch(g){Jr||(Jr=!0,u("React instrumentation encountered an error: %s",g))}}function Zu(i){if($i&&typeof $i.onPostCommitFiberRoot=="function")try{$i.onPostCommitFiberRoot(Ju,i)}catch(o){Jr||(Jr=!0,u("React instrumentation encountered an error: %s",o))}}function b0(i){if($i&&typeof $i.onCommitFiberUnmount=="function")try{$i.onCommitFiberUnmount(Ju,i)}catch(o){Jr||(Jr=!0,u("React instrumentation encountered an error: %s",o))}}function Ri(i){if(typeof C0=="function"&&(E0(i),a(i)),$i&&typeof $i.setStrictMode=="function")try{$i.setStrictMode(Ju,i)}catch(o){Jr||(Jr=!0,u("React instrumentation encountered an error: %s",o))}}function Vl(i){Xe=i}function ec(){{for(var i=new Map,o=1,d=0;d<vr;d++){var h=jA(o);i.set(o,h),o*=2}return i}}function ag(i){Xe!==null&&typeof Xe.markCommitStarted=="function"&&Xe.markCommitStarted(i)}function S0(){Xe!==null&&typeof Xe.markCommitStopped=="function"&&Xe.markCommitStopped()}function tc(i){Xe!==null&&typeof Xe.markComponentRenderStarted=="function"&&Xe.markComponentRenderStarted(i)}function rd(){Xe!==null&&typeof Xe.markComponentRenderStopped=="function"&&Xe.markComponentRenderStopped()}function Xb(i){Xe!==null&&typeof Xe.markComponentPassiveEffectMountStarted=="function"&&Xe.markComponentPassiveEffectMountStarted(i)}function T0(){Xe!==null&&typeof Xe.markComponentPassiveEffectMountStopped=="function"&&Xe.markComponentPassiveEffectMountStopped()}function sg(i){Xe!==null&&typeof Xe.markComponentPassiveEffectUnmountStarted=="function"&&Xe.markComponentPassiveEffectUnmountStarted(i)}function Jb(){Xe!==null&&typeof Xe.markComponentPassiveEffectUnmountStopped=="function"&&Xe.markComponentPassiveEffectUnmountStopped()}function Zb(i){Xe!==null&&typeof Xe.markComponentLayoutEffectMountStarted=="function"&&Xe.markComponentLayoutEffectMountStarted(i)}function eS(){Xe!==null&&typeof Xe.markComponentLayoutEffectMountStopped=="function"&&Xe.markComponentLayoutEffectMountStopped()}function lg(i){Xe!==null&&typeof Xe.markComponentLayoutEffectUnmountStarted=="function"&&Xe.markComponentLayoutEffectUnmountStarted(i)}function Pf(){Xe!==null&&typeof Xe.markComponentLayoutEffectUnmountStopped=="function"&&Xe.markComponentLayoutEffectUnmountStopped()}function ug(i,o,d){Xe!==null&&typeof Xe.markComponentErrored=="function"&&Xe.markComponentErrored(i,o,d)}function tS(i,o,d){Xe!==null&&typeof Xe.markComponentSuspended=="function"&&Xe.markComponentSuspended(i,o,d)}function nS(i){Xe!==null&&typeof Xe.markLayoutEffectsStarted=="function"&&Xe.markLayoutEffectsStarted(i)}function Df(){Xe!==null&&typeof Xe.markLayoutEffectsStopped=="function"&&Xe.markLayoutEffectsStopped()}function rS(i){Xe!==null&&typeof Xe.markPassiveEffectsStarted=="function"&&Xe.markPassiveEffectsStarted(i)}function Lp(){Xe!==null&&typeof Xe.markPassiveEffectsStopped=="function"&&Xe.markPassiveEffectsStopped()}function Ps(i){Xe!==null&&typeof Xe.markRenderStarted=="function"&&Xe.markRenderStarted(i)}function Up(){Xe!==null&&typeof Xe.markRenderYielded=="function"&&Xe.markRenderYielded()}function Lf(){Xe!==null&&typeof Xe.markRenderStopped=="function"&&Xe.markRenderStopped()}function id(i){Xe!==null&&typeof Xe.markRenderScheduled=="function"&&Xe.markRenderScheduled(i)}function R0(i,o){Xe!==null&&typeof Xe.markForceUpdateScheduled=="function"&&Xe.markForceUpdateScheduled(i,o)}function nc(i,o){Xe!==null&&typeof Xe.markStateUpdateScheduled=="function"&&Xe.markStateUpdateScheduled(i,o)}var Nt=0,cn=1,Dt=2,Ir=8,os=16,cg=Math.clz32?Math.clz32:od,dg=Math.log,k0=Math.LN2;function od(i){var o=i>>>0;return o===0?32:31-(dg(o)/k0|0)|0}var vr=31,Se=0,bn=0,Lt=1,il=2,Ma=4,ad=8,mr=16,sd=32,rc=4194240,ld=64,as=128,ga=256,ud=512,Fp=1024,$p=2048,fg=4096,hg=8192,pg=16384,vg=32768,mg=65536,gg=131072,yg=262144,_g=524288,cd=1048576,Cg=2097152,dd=130023424,Kl=4194304,Eg=8388608,Hp=16777216,wg=33554432,bg=67108864,A0=Kl,Uf=134217728,Sg=268435455,Ff=268435456,ic=536870912,ya=1073741824;function jA(i){{if(i&Lt)return"Sync";if(i&il)return"InputContinuousHydration";if(i&Ma)return"InputContinuous";if(i&ad)return"DefaultHydration";if(i&mr)return"Default";if(i&sd)return"TransitionHydration";if(i&rc)return"Transition";if(i&dd)return"Retry";if(i&Uf)return"SelectiveHydration";if(i&Ff)return"IdleHydration";if(i&ic)return"Idle";if(i&ya)return"Offscreen"}}var ir=-1,Tg=ld,Rg=Kl;function $f(i){switch(fi(i)){case Lt:return Lt;case il:return il;case Ma:return Ma;case ad:return ad;case mr:return mr;case sd:return sd;case ld:case as:case ga:case ud:case Fp:case $p:case fg:case hg:case pg:case vg:case mg:case gg:case yg:case _g:case cd:case Cg:return i&rc;case Kl:case Eg:case Hp:case wg:case bg:return i&dd;case Uf:return Uf;case Ff:return Ff;case ic:return ic;case ya:return ya;default:return u("Should have found matching lanes. This is a bug in React."),i}}function jp(i,o){var d=i.pendingLanes;if(d===Se)return Se;var h=Se,g=i.suspendedLanes,C=i.pingedLanes,b=d&Sg;if(b!==Se){var k=b&~g;if(k!==Se)h=$f(k);else{var x=b&C;x!==Se&&(h=$f(x))}}else{var M=d&~g;M!==Se?h=$f(M):C!==Se&&(h=$f(C))}if(h===Se)return Se;if(o!==Se&&o!==h&&(o&g)===Se){var $=fi(h),J=fi(o);if($>=J||$===mr&&(J&rc)!==Se)return o}(h&Ma)!==Se&&(h|=d&mr);var Q=i.entangledLanes;if(Q!==Se)for(var ce=i.entanglements,fe=h&Q;fe>0;){var we=oc(fe),st=1<<we;h|=ce[we],fe&=~st}return h}function iS(i,o){for(var d=i.eventTimes,h=ir;o>0;){var g=oc(o),C=1<<g,b=d[g];b>h&&(h=b),o&=~C}return h}function kg(i,o){switch(i){case Lt:case il:case Ma:return o+250;case ad:case mr:case sd:case ld:case as:case ga:case ud:case Fp:case $p:case fg:case hg:case pg:case vg:case mg:case gg:case yg:case _g:case cd:case Cg:return o+5e3;case Kl:case Eg:case Hp:case wg:case bg:return ir;case Uf:case Ff:case ic:case ya:return ir;default:return u("Should have found matching lanes. This is a bug in React."),ir}}function zA(i,o){for(var d=i.pendingLanes,h=i.suspendedLanes,g=i.pingedLanes,C=i.expirationTimes,b=d;b>0;){var k=oc(b),x=1<<k,M=C[k];M===ir?((x&h)===Se||(x&g)!==Se)&&(C[k]=kg(x,o)):M<=o&&(i.expiredLanes|=x),b&=~x}}function BA(i){return $f(i.pendingLanes)}function x0(i){var o=i.pendingLanes&~ya;return o!==Se?o:o&ya?ya:Se}function Hf(i){return(i&Lt)!==Se}function zp(i){return(i&Sg)!==Se}function Ag(i){return(i&dd)===i}function qA(i){var o=Lt|Ma|mr;return(i&o)===Se}function oS(i){return(i&rc)===i}function Bp(i,o){var d=il|Ma|ad|mr;return(o&d)!==Se}function aS(i,o){return(o&i.expiredLanes)!==Se}function I0(i){return(i&rc)!==Se}function O0(){var i=Tg;return Tg<<=1,(Tg&rc)===Se&&(Tg=ld),i}function VA(){var i=Rg;return Rg<<=1,(Rg&dd)===Se&&(Rg=Kl),i}function fi(i){return i&-i}function ki(i){return fi(i)}function oc(i){return 31-cg(i)}function xg(i){return oc(i)}function _a(i,o){return(i&o)!==Se}function fd(i,o){return(i&o)===o}function tn(i,o){return i|o}function jf(i,o){return i&~o}function N0(i,o){return i&o}function sS(i){return i}function lS(i,o){return i!==bn&&i<o?i:o}function Ig(i){for(var o=[],d=0;d<vr;d++)o.push(i);return o}function hd(i,o,d){i.pendingLanes|=o,o!==ic&&(i.suspendedLanes=Se,i.pingedLanes=Se);var h=i.eventTimes,g=xg(o);h[g]=d}function M0(i,o){i.suspendedLanes|=o,i.pingedLanes&=~o;for(var d=i.expirationTimes,h=o;h>0;){var g=oc(h),C=1<<g;d[g]=ir,h&=~C}}function P0(i,o,d){i.pingedLanes|=i.suspendedLanes&o}function D0(i,o){var d=i.pendingLanes&~o;i.pendingLanes=o,i.suspendedLanes=Se,i.pingedLanes=Se,i.expiredLanes&=o,i.mutableReadLanes&=o,i.entangledLanes&=o;for(var h=i.entanglements,g=i.eventTimes,C=i.expirationTimes,b=d;b>0;){var k=oc(b),x=1<<k;h[k]=Se,g[k]=ir,C[k]=ir,b&=~x}}function zf(i,o){for(var d=i.entangledLanes|=o,h=i.entanglements,g=d;g;){var C=oc(g),b=1<<C;b&o|h[C]&o&&(h[C]|=o),g&=~b}}function KA(i,o){var d=fi(o),h;switch(d){case Ma:h=il;break;case mr:h=ad;break;case ld:case as:case ga:case ud:case Fp:case $p:case fg:case hg:case pg:case vg:case mg:case gg:case yg:case _g:case cd:case Cg:case Kl:case Eg:case Hp:case wg:case bg:h=sd;break;case ic:h=Ff;break;default:h=bn;break}return(h&(i.suspendedLanes|o))!==bn?bn:h}function L0(i,o,d){if(to)for(var h=i.pendingUpdatersLaneMap;d>0;){var g=xg(d),C=1<<g,b=h[g];b.add(o),d&=~C}}function Og(i,o){if(to)for(var d=i.pendingUpdatersLaneMap,h=i.memoizedUpdaters;o>0;){var g=xg(o),C=1<<g,b=d[g];b.size>0&&(b.forEach(function(k){var x=k.alternate;(x===null||!h.has(x))&&h.add(k)}),b.clear()),o&=~C}}function U0(i,o){return null}var To=Lt,no=Ma,Gl=mr,qp=ic,pd=bn;function ss(){return pd}function Ai(i){pd=i}function Vp(i,o){var d=pd;try{return pd=i,o()}finally{pd=d}}function Ro(i,o){return i!==0&&i<o?i:o}function GA(i,o){return i===0||i>o?i:o}function F0(i,o){return i!==0&&i<o}function Kp(i){var o=fi(i);return F0(To,o)?F0(no,o)?zp(o)?Gl:qp:no:To}function xi(i){var o=i.current.memoizedState;return o.isDehydrated}var uS;function ct(i){uS=i}function Bf(i){uS(i)}var Gp;function cS(i){Gp=i}var dS;function Wp(i){dS=i}var Yp;function $0(i){Yp=i}var H0;function fS(i){H0=i}var Ng=!1,qf=[],ol=null,Sr=null,Hi=null,ls=new Map,Vf=new Map,Wl=[],Ds=["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 hS(i){return Ds.indexOf(i)>-1}function al(i,o,d,h,g){return{blockedOn:i,domEventName:o,eventSystemFlags:d,nativeEvent:g,targetContainers:[h]}}function pS(i,o){switch(i){case"focusin":case"focusout":ol=null;break;case"dragenter":case"dragleave":Sr=null;break;case"mouseover":case"mouseout":Hi=null;break;case"pointerover":case"pointerout":{var d=o.pointerId;ls.delete(d);break}case"gotpointercapture":case"lostpointercapture":{var h=o.pointerId;Vf.delete(h);break}}}function Kf(i,o,d,h,g,C){if(i===null||i.nativeEvent!==C){var b=al(o,d,h,g,C);if(o!==null){var k=rh(o);k!==null&&Gp(k)}return b}i.eventSystemFlags|=h;var x=i.targetContainers;return g!==null&&x.indexOf(g)===-1&&x.push(g),i}function vS(i,o,d,h,g){switch(o){case"focusin":{var C=g;return ol=Kf(ol,i,o,d,h,C),!0}case"dragenter":{var b=g;return Sr=Kf(Sr,i,o,d,h,b),!0}case"mouseover":{var k=g;return Hi=Kf(Hi,i,o,d,h,k),!0}case"pointerover":{var x=g,M=x.pointerId;return ls.set(M,Kf(ls.get(M)||null,i,o,d,h,x)),!0}case"gotpointercapture":{var $=g,J=$.pointerId;return Vf.set(J,Kf(Vf.get(J)||null,i,o,d,h,$)),!0}}return!1}function j0(i){var o=iv(i.target);if(o!==null){var d=Ia(o);if(d!==null){var h=d.tag;if(h===V){var g=m0(d);if(g!==null){i.blockedOn=g,H0(i.priority,function(){dS(d)});return}}else if(h===E){var C=d.stateNode;if(xi(C)){i.blockedOn=eg(d);return}}}}i.blockedOn=null}function mS(i){for(var o=Yp(),d={blockedOn:null,target:i,priority:o},h=0;h<Wl.length&&F0(o,Wl[h].priority);h++);Wl.splice(h,0,d),h===0&&j0(d)}function Mg(i){if(i.blockedOn!==null)return!1;for(var o=i.targetContainers;o.length>0;){var d=o[0],h=vd(i.domEventName,i.eventSystemFlags,d,i.nativeEvent);if(h===null){var g=i.nativeEvent,C=new g.constructor(g.type,g);Ap(C),g.target.dispatchEvent(C),UA()}else{var b=rh(h);return b!==null&&Gp(b),i.blockedOn=h,!1}o.shift()}return!0}function Qp(i,o,d){Mg(i)&&d.delete(o)}function z0(){Ng=!1,ol!==null&&Mg(ol)&&(ol=null),Sr!==null&&Mg(Sr)&&(Sr=null),Hi!==null&&Mg(Hi)&&(Hi=null),ls.forEach(Qp),Vf.forEach(Qp)}function ko(i,o){i.blockedOn===o&&(i.blockedOn=null,Ng||(Ng=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,z0)))}function gn(i){if(qf.length>0){ko(qf[0],i);for(var o=1;o<qf.length;o++){var d=qf[o];d.blockedOn===i&&(d.blockedOn=null)}}ol!==null&&ko(ol,i),Sr!==null&&ko(Sr,i),Hi!==null&&ko(Hi,i);var h=function(k){return ko(k,i)};ls.forEach(h),Vf.forEach(h);for(var g=0;g<Wl.length;g++){var C=Wl[g];C.blockedOn===i&&(C.blockedOn=null)}for(;Wl.length>0;){var b=Wl[0];if(b.blockedOn!==null)break;j0(b),b.blockedOn===null&&Wl.shift()}}var Or=t.ReactCurrentBatchConfig,qr=!0;function ji(i){qr=!!i}function Pa(){return qr}function Gf(i,o,d){var h=Bo(o),g;switch(h){case To:g=Ii;break;case no:g=Xp;break;case Gl:default:g=Yl;break}return g.bind(null,o,d,i)}function Ii(i,o,d,h){var g=ss(),C=Or.transition;Or.transition=null;try{Ai(To),Yl(i,o,d,h)}finally{Ai(g),Or.transition=C}}function Xp(i,o,d,h){var g=ss(),C=Or.transition;Or.transition=null;try{Ai(no),Yl(i,o,d,h)}finally{Ai(g),Or.transition=C}}function Yl(i,o,d,h){qr&&Pg(i,o,d,h)}function Pg(i,o,d,h){var g=vd(i,o,d,h);if(g===null){hx(i,o,h,Wf,d),pS(i,h);return}if(vS(g,i,o,d,h)){h.stopPropagation();return}if(pS(i,h),o&Xc&&hS(i)){for(;g!==null;){var C=rh(g);C!==null&&Bf(C);var b=vd(i,o,d,h);if(b===null&&hx(i,o,h,Wf,d),b===g)break;g=b}g!==null&&h.stopPropagation();return}hx(i,o,h,null,d)}var Wf=null;function vd(i,o,d,h){Wf=null;var g=Ym(h),C=iv(g);if(C!==null){var b=Ia(C);if(b===null)C=null;else{var k=b.tag;if(k===V){var x=m0(b);if(x!==null)return x;C=null}else if(k===E){var M=b.stateNode;if(xi(M))return eg(b);C=null}else b!==C&&(C=null)}}return Wf=C,null}function Bo(i){switch(i){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 To;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 no;case"message":{var o=_0();switch(o){case ig:return To;case Na:return no;case rl:case og:return Gl;case Xu:return qp;default:return Gl}}default:return Gl}}function B0(i,o,d){return i.addEventListener(o,d,!1),d}function Yf(i,o,d){return i.addEventListener(o,d,!0),d}function Ql(i,o,d,h){return i.addEventListener(o,d,{capture:!0,passive:h}),d}function Dg(i,o,d,h){return i.addEventListener(o,d,{passive:h}),d}var md=null,sl=null,ac=null;function sc(i){return md=i,sl=Ug(),!0}function Lg(){md=null,sl=null,ac=null}function Qf(){if(ac)return ac;var i,o=sl,d=o.length,h,g=Ug(),C=g.length;for(i=0;i<d&&o[i]===g[i];i++);var b=d-i;for(h=1;h<=b&&o[d-h]===g[C-h];h++);var k=h>1?1-h:void 0;return ac=g.slice(i,k),ac}function Ug(){return"value"in md?md.value:md.textContent}function gd(i){var o,d=i.keyCode;return"charCode"in i?(o=i.charCode,o===0&&d===13&&(o=13)):o=d,o===10&&(o=13),o>=32||o===13?o:0}function yd(){return!0}function Ao(){return!1}function hi(i){function o(d,h,g,C,b){this._reactName=d,this._targetInst=g,this.type=h,this.nativeEvent=C,this.target=b,this.currentTarget=null;for(var k in i)if(i.hasOwnProperty(k)){var x=i[k];x?this[k]=x(C):this[k]=C[k]}var M=C.defaultPrevented!=null?C.defaultPrevented:C.returnValue===!1;return M?this.isDefaultPrevented=yd:this.isDefaultPrevented=Ao,this.isPropagationStopped=Ao,this}return ln(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=yd)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=yd)},persist:function(){},isPersistent:yd}),o}var xo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Io=hi(xo),Xf=ln({},xo,{view:0,detail:0}),q0=hi(Xf),Jp,V0,us;function gS(i){i!==us&&(us&&i.type==="mousemove"?(Jp=i.screenX-us.screenX,V0=i.screenY-us.screenY):(Jp=0,V0=0),us=i)}var Jf=ln({},Xf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hg,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(gS(i),Jp)},movementY:function(i){return"movementY"in i?i.movementY:V0}}),lc=hi(Jf),K0=ln({},Jf,{dataTransfer:0}),_d=hi(K0),yS=ln({},Xf,{relatedTarget:0}),Fg=hi(yS),G0=ln({},xo,{animationName:0,elapsedTime:0,pseudoElement:0}),$g=hi(G0),WA=ln({},xo,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),YA=hi(WA),_S=ln({},xo,{data:0}),W0=hi(_S),Cd=W0,QA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zf={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 CS(i){if(i.key){var o=QA[i.key]||i.key;if(o!=="Unidentified")return o}if(i.type==="keypress"){var d=gd(i);return d===13?"Enter":String.fromCharCode(d)}return i.type==="keydown"||i.type==="keyup"?Zf[i.keyCode]||"Unidentified":""}var Vr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function XA(i){var o=this,d=o.nativeEvent;if(d.getModifierState)return d.getModifierState(i);var h=Vr[i];return h?!!d[h]:!1}function Hg(i){return XA}var JA=ln({},Xf,{key:CS,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hg,charCode:function(i){return i.type==="keypress"?gd(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?gd(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),ZA=hi(JA),ES=ln({},Jf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Y0=hi(ES),ex=ln({},Xf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hg}),cs=hi(ex),Q0=ln({},xo,{propertyName:0,elapsedTime:0,pseudoElement:0}),tx=hi(Q0),uc=ln({},Jf,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),jg=hi(uc),Ed=[9,13,27,32],Zp=229,ev=ur&&"CompositionEvent"in window,wd=null;ur&&"documentMode"in document&&(wd=document.documentMode);var nx=ur&&"TextEvent"in window&&!wd,zg=ur&&(!ev||wd&&wd>8&&wd<=11),wS=32,X0=String.fromCharCode(wS);function bS(){Xn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Xn("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),Xn("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),Xn("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var tv=!1;function Bg(i){return(i.ctrlKey||i.altKey||i.metaKey)&&!(i.ctrlKey&&i.altKey)}function SS(i){switch(i){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function J0(i,o){return i==="keydown"&&o.keyCode===Zp}function TS(i,o){switch(i){case"keyup":return Ed.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==Zp;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Z0(i){var o=i.detail;return typeof o=="object"&&"data"in o?o.data:null}function qg(i){return i.locale==="ko"}var Xl=!1;function eC(i,o,d,h,g){var C,b;if(ev?C=SS(o):Xl?TS(o,h)&&(C="onCompositionEnd"):J0(o,h)&&(C="onCompositionStart"),!C)return null;zg&&!qg(h)&&(!Xl&&C==="onCompositionStart"?Xl=sc(g):C==="onCompositionEnd"&&Xl&&(b=Qf()));var k=IS(d,C);if(k.length>0){var x=new W0(C,o,null,h,g);if(i.push({event:x,listeners:k}),b)x.data=b;else{var M=Z0(h);M!==null&&(x.data=M)}}}function Vg(i,o){switch(i){case"compositionend":return Z0(o);case"keypress":var d=o.which;return d!==wS?null:(tv=!0,X0);case"textInput":var h=o.data;return h===X0&&tv?null:h;default:return null}}function RS(i,o){if(Xl){if(i==="compositionend"||!ev&&TS(i,o)){var d=Qf();return Lg(),Xl=!1,d}return null}switch(i){case"paste":return null;case"keypress":if(!Bg(o)){if(o.char&&o.char.length>1)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return zg&&!qg(o)?null:o.data;default:return null}}function rx(i,o,d,h,g){var C;if(nx?C=Vg(o,h):C=RS(o,h),!C)return null;var b=IS(d,"onBeforeInput");if(b.length>0){var k=new Cd("onBeforeInput","beforeinput",null,h,g);i.push({event:k,listeners:b}),k.data=C}}function Kg(i,o,d,h,g,C,b){eC(i,o,d,h,g),rx(i,o,d,h,g)}var ix={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 eh(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o==="input"?!!ix[i.type]:o==="textarea"}/**
113
- * Checks if an event is supported in the current execution environment.
114
- *
115
- * NOTE: This will not work correctly for non-generic events such as `change`,
116
- * `reset`, `load`, `error`, and `select`.
117
- *
118
- * Borrows from Modernizr.
119
- *
120
- * @param {string} eventNameSuffix Event name, e.g. "click".
121
- * @return {boolean} True if the event is supported.
122
- * @internal
123
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
124
- */function ox(i){if(!ur)return!1;var o="on"+i,d=o in document;if(!d){var h=document.createElement("div");h.setAttribute(o,"return;"),d=typeof h[o]=="function"}return d}function Gg(){Xn("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function s(i,o,d,h){Qm(h);var g=IS(o,"onChange");if(g.length>0){var C=new Io("onChange","change",null,d,h);i.push({event:C,listeners:g})}}var c=null,v=null;function _(i){var o=i.nodeName&&i.nodeName.toLowerCase();return o==="select"||o==="input"&&i.type==="file"}function w(i){var o=[];s(o,v,i,Ym(i)),l0(R,o)}function R(i){RF(i,0)}function N(i){var o=Zg(i);if(bf(o))return i}function z(i,o){if(i==="change")return o}var K=!1;ur&&(K=ox("input")&&(!document.documentMode||document.documentMode>9));function pe(i,o){c=i,v=o,c.attachEvent("onpropertychange",De)}function Me(){c&&(c.detachEvent("onpropertychange",De),c=null,v=null)}function De(i){i.propertyName==="value"&&N(v)&&w(i)}function Ne(i,o,d){i==="focusin"?(Me(),pe(o,d)):i==="focusout"&&Me()}function it(i,o){if(i==="selectionchange"||i==="keyup"||i==="keydown")return N(v)}function dt(i){var o=i.nodeName;return o&&o.toLowerCase()==="input"&&(i.type==="checkbox"||i.type==="radio")}function mt(i,o){if(i==="click")return N(o)}function Zr(i,o){if(i==="input"||i==="change")return N(o)}function ie(i){var o=i._wrapperState;!o||!o.controlled||i.type!=="number"||Ot(i,"number",i.value)}function X(i,o,d,h,g,C,b){var k=d?Zg(d):window,x,M;if(_(k)?x=z:eh(k)?K?x=Zr:(x=it,M=Ne):dt(k)&&(x=mt),x){var $=x(o,d);if($){s(i,$,h,g);return}}M&&M(o,k,d),o==="focusout"&&ie(k)}function ue(){Eo("onMouseEnter",["mouseout","mouseover"]),Eo("onMouseLeave",["mouseout","mouseover"]),Eo("onPointerEnter",["pointerout","pointerover"]),Eo("onPointerLeave",["pointerout","pointerover"])}function ze(i,o,d,h,g,C,b){var k=o==="mouseover"||o==="pointerover",x=o==="mouseout"||o==="pointerout";if(k&&!Bb(h)){var M=h.relatedTarget||h.fromElement;if(M&&(iv(M)||pC(M)))return}if(!(!x&&!k)){var $;if(g.window===g)$=g;else{var J=g.ownerDocument;J?$=J.defaultView||J.parentWindow:$=window}var Q,ce;if(x){var fe=h.relatedTarget||h.toElement;if(Q=d,ce=fe?iv(fe):null,ce!==null){var we=Ia(ce);(ce!==we||ce.tag!==T&&ce.tag!==A)&&(ce=null)}}else Q=null,ce=d;if(Q!==ce){var st=lc,At="onMouseLeave",wt="onMouseEnter",Tn="mouse";(o==="pointerout"||o==="pointerover")&&(st=Y0,At="onPointerLeave",wt="onPointerEnter",Tn="pointer");var yn=Q==null?$:Zg(Q),oe=ce==null?$:Zg(ce),be=new st(At,Tn+"leave",Q,h,g);be.target=yn,be.relatedTarget=oe;var ae=null,Le=iv(g);if(Le===d){var lt=new st(wt,Tn+"enter",ce,h,g);lt.target=oe,lt.relatedTarget=yn,ae=lt}GZ(i,be,ae,Q,ce)}}}function Ct(i,o){return i===o&&(i!==0||1/i===1/o)||i!==i&&o!==o}var ft=typeof Object.is=="function"?Object.is:Ct;function Tt(i,o){if(ft(i,o))return!0;if(typeof i!="object"||i===null||typeof o!="object"||o===null)return!1;var d=Object.keys(i),h=Object.keys(o);if(d.length!==h.length)return!1;for(var g=0;g<d.length;g++){var C=d[g];if(!si.call(o,C)||!ft(i[C],o[C]))return!1}return!0}function Bt(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function zi(i){for(;i;){if(i.nextSibling)return i.nextSibling;i=i.parentNode}}function In(i,o){for(var d=Bt(i),h=0,g=0;d;){if(d.nodeType===Fl){if(g=h+d.textContent.length,h<=o&&g>=o)return{node:d,offset:o-h};h=g}d=Bt(zi(d))}}function cc(i){var o=i.ownerDocument,d=o&&o.defaultView||window,h=d.getSelection&&d.getSelection();if(!h||h.rangeCount===0)return null;var g=h.anchorNode,C=h.anchorOffset,b=h.focusNode,k=h.focusOffset;try{g.nodeType,b.nodeType}catch{return null}return ax(i,g,C,b,k)}function ax(i,o,d,h,g){var C=0,b=-1,k=-1,x=0,M=0,$=i,J=null;e:for(;;){for(var Q=null;$===o&&(d===0||$.nodeType===Fl)&&(b=C+d),$===h&&(g===0||$.nodeType===Fl)&&(k=C+g),$.nodeType===Fl&&(C+=$.nodeValue.length),(Q=$.firstChild)!==null;)J=$,$=Q;for(;;){if($===i)break e;if(J===o&&++x===d&&(b=C),J===h&&++M===g&&(k=C),(Q=$.nextSibling)!==null)break;$=J,J=$.parentNode}$=Q}return b===-1||k===-1?null:{start:b,end:k}}function AZ(i,o){var d=i.ownerDocument||document,h=d&&d.defaultView||window;if(h.getSelection){var g=h.getSelection(),C=i.textContent.length,b=Math.min(o.start,C),k=o.end===void 0?b:Math.min(o.end,C);if(!g.extend&&b>k){var x=k;k=b,b=x}var M=In(i,b),$=In(i,k);if(M&&$){if(g.rangeCount===1&&g.anchorNode===M.node&&g.anchorOffset===M.offset&&g.focusNode===$.node&&g.focusOffset===$.offset)return;var J=d.createRange();J.setStart(M.node,M.offset),g.removeAllRanges(),b>k?(g.addRange(J),g.extend($.node,$.offset)):(J.setEnd($.node,$.offset),g.addRange(J))}}}function pF(i){return i&&i.nodeType===Fl}function vF(i,o){return!i||!o?!1:i===o?!0:pF(i)?!1:pF(o)?vF(i,o.parentNode):"contains"in i?i.contains(o):i.compareDocumentPosition?!!(i.compareDocumentPosition(o)&16):!1}function xZ(i){return i&&i.ownerDocument&&vF(i.ownerDocument.documentElement,i)}function IZ(i){try{return typeof i.contentWindow.location.href=="string"}catch{return!1}}function mF(){for(var i=window,o=Bu();o instanceof i.HTMLIFrameElement;){if(IZ(o))i=o.contentWindow;else return o;o=Bu(i.document)}return o}function sx(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o&&(o==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||o==="textarea"||i.contentEditable==="true")}function OZ(){var i=mF();return{focusedElem:i,selectionRange:sx(i)?MZ(i):null}}function NZ(i){var o=mF(),d=i.focusedElem,h=i.selectionRange;if(o!==d&&xZ(d)){h!==null&&sx(d)&&PZ(d,h);for(var g=[],C=d;C=C.parentNode;)C.nodeType===da&&g.push({element:C,left:C.scrollLeft,top:C.scrollTop});typeof d.focus=="function"&&d.focus();for(var b=0;b<g.length;b++){var k=g[b];k.element.scrollLeft=k.left,k.element.scrollTop=k.top}}}function MZ(i){var o;return"selectionStart"in i?o={start:i.selectionStart,end:i.selectionEnd}:o=cc(i),o||{start:0,end:0}}function PZ(i,o){var d=o.start,h=o.end;h===void 0&&(h=d),"selectionStart"in i?(i.selectionStart=d,i.selectionEnd=Math.min(h,i.value.length)):AZ(i,o)}var DZ=ur&&"documentMode"in document&&document.documentMode<=11;function LZ(){Xn("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Wg=null,lx=null,tC=null,ux=!1;function UZ(i){if("selectionStart"in i&&sx(i))return{start:i.selectionStart,end:i.selectionEnd};var o=i.ownerDocument&&i.ownerDocument.defaultView||window,d=o.getSelection();return{anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}}function FZ(i){return i.window===i?i.document:i.nodeType===Os?i:i.ownerDocument}function gF(i,o,d){var h=FZ(d);if(!(ux||Wg==null||Wg!==Bu(h))){var g=UZ(Wg);if(!tC||!Tt(tC,g)){tC=g;var C=IS(lx,"onSelect");if(C.length>0){var b=new Io("onSelect","select",null,o,d);i.push({event:b,listeners:C}),b.target=Wg}}}}function $Z(i,o,d,h,g,C,b){var k=d?Zg(d):window;switch(o){case"focusin":(eh(k)||k.contentEditable==="true")&&(Wg=k,lx=d,tC=null);break;case"focusout":Wg=null,lx=null,tC=null;break;case"mousedown":ux=!0;break;case"contextmenu":case"mouseup":case"dragend":ux=!1,gF(i,h,g);break;case"selectionchange":if(DZ)break;case"keydown":case"keyup":gF(i,h,g)}}function kS(i,o){var d={};return d[i.toLowerCase()]=o.toLowerCase(),d["Webkit"+i]="webkit"+o,d["Moz"+i]="moz"+o,d}var Yg={animationend:kS("Animation","AnimationEnd"),animationiteration:kS("Animation","AnimationIteration"),animationstart:kS("Animation","AnimationStart"),transitionend:kS("Transition","TransitionEnd")},cx={},yF={};ur&&(yF=document.createElement("div").style,"AnimationEvent"in window||(delete Yg.animationend.animation,delete Yg.animationiteration.animation,delete Yg.animationstart.animation),"TransitionEvent"in window||delete Yg.transitionend.transition);function AS(i){if(cx[i])return cx[i];if(!Yg[i])return i;var o=Yg[i];for(var d in o)if(o.hasOwnProperty(d)&&d in yF)return cx[i]=o[d];return i}var _F=AS("animationend"),CF=AS("animationiteration"),EF=AS("animationstart"),wF=AS("transitionend"),bF=new Map,SF=["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 th(i,o){bF.set(i,o),Xn(o,[i])}function HZ(){for(var i=0;i<SF.length;i++){var o=SF[i],d=o.toLowerCase(),h=o[0].toUpperCase()+o.slice(1);th(d,"on"+h)}th(_F,"onAnimationEnd"),th(CF,"onAnimationIteration"),th(EF,"onAnimationStart"),th("dblclick","onDoubleClick"),th("focusin","onFocus"),th("focusout","onBlur"),th(wF,"onTransitionEnd")}function jZ(i,o,d,h,g,C,b){var k=bF.get(o);if(k!==void 0){var x=Io,M=o;switch(o){case"keypress":if(gd(h)===0)return;case"keydown":case"keyup":x=ZA;break;case"focusin":M="focus",x=Fg;break;case"focusout":M="blur",x=Fg;break;case"beforeblur":case"afterblur":x=Fg;break;case"click":if(h.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":x=lc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=_d;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=cs;break;case _F:case CF:case EF:x=$g;break;case wF:x=tx;break;case"scroll":x=q0;break;case"wheel":x=jg;break;case"copy":case"cut":case"paste":x=YA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=Y0;break}var $=(C&Xc)!==0;{var J=!$&&o==="scroll",Q=VZ(d,k,h.type,$,J);if(Q.length>0){var ce=new x(k,M,null,h,g);i.push({event:ce,listeners:Q})}}}}HZ(),ue(),Gg(),LZ(),bS();function zZ(i,o,d,h,g,C,b){jZ(i,o,d,h,g,C);var k=(C&LA)===0;k&&(ze(i,o,d,h,g),X(i,o,d,h,g),$Z(i,o,d,h,g),Kg(i,o,d,h,g))}var nC=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],dx=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(nC));function TF(i,o,d){var h=i.type||"unknown-event";i.currentTarget=d,zl(h,o,void 0,i),i.currentTarget=null}function BZ(i,o,d){var h;if(d)for(var g=o.length-1;g>=0;g--){var C=o[g],b=C.instance,k=C.currentTarget,x=C.listener;if(b!==h&&i.isPropagationStopped())return;TF(i,x,k),h=b}else for(var M=0;M<o.length;M++){var $=o[M],J=$.instance,Q=$.currentTarget,ce=$.listener;if(J!==h&&i.isPropagationStopped())return;TF(i,ce,Q),h=J}}function RF(i,o){for(var d=(o&Xc)!==0,h=0;h<i.length;h++){var g=i[h],C=g.event,b=g.listeners;BZ(C,b,d)}f0()}function qZ(i,o,d,h,g){var C=Ym(d),b=[];zZ(b,i,h,d,C,o),RF(b,o)}function Nr(i,o){dx.has(i)||u('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',i);var d=!1,h=Cte(o),g=WZ(i,d);h.has(g)||(kF(o,i,Rp,d),h.add(g))}function fx(i,o,d){dx.has(i)&&!o&&u('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',i);var h=0;o&&(h|=Xc),kF(d,i,h,o)}var xS="_reactListening"+Math.random().toString(36).slice(2);function rC(i){if(!i[xS]){i[xS]=!0,bt.forEach(function(d){d!=="selectionchange"&&(dx.has(d)||fx(d,!1,i),fx(d,!0,i))});var o=i.nodeType===Os?i:i.ownerDocument;o!==null&&(o[xS]||(o[xS]=!0,fx("selectionchange",!1,o)))}}function kF(i,o,d,h,g){var C=Gf(i,o,d),b=void 0;Op&&(o==="touchstart"||o==="touchmove"||o==="wheel")&&(b=!0),i=i,h?b!==void 0?Ql(i,o,C,b):Yf(i,o,C):b!==void 0?Dg(i,o,C,b):B0(i,o,C)}function AF(i,o){return i===o||i.nodeType===di&&i.parentNode===o}function hx(i,o,d,h,g){var C=h;if(!(o&Hl)&&!(o&Rp)){var b=g;if(h!==null){var k=h;e:for(;;){if(k===null)return;var x=k.tag;if(x===E||x===S){var M=k.stateNode.containerInfo;if(AF(M,b))break;if(x===S)for(var $=k.return;$!==null;){var J=$.tag;if(J===E||J===S){var Q=$.stateNode.containerInfo;if(AF(Q,b))return}$=$.return}for(;M!==null;){var ce=iv(M);if(ce===null)return;var fe=ce.tag;if(fe===T||fe===A){k=C=ce;continue e}M=M.parentNode}}k=k.return}}}l0(function(){return qZ(i,o,d,C)})}function iC(i,o,d){return{instance:i,listener:o,currentTarget:d}}function VZ(i,o,d,h,g,C){for(var b=o!==null?o+"Capture":null,k=h?b:o,x=[],M=i,$=null;M!==null;){var J=M,Q=J.stateNode,ce=J.tag;if(ce===T&&Q!==null&&($=Q,k!==null)){var fe=Zc(M,k);fe!=null&&x.push(iC(M,fe,$))}if(g)break;M=M.return}return x}function IS(i,o){for(var d=o+"Capture",h=[],g=i;g!==null;){var C=g,b=C.stateNode,k=C.tag;if(k===T&&b!==null){var x=b,M=Zc(g,d);M!=null&&h.unshift(iC(g,M,x));var $=Zc(g,o);$!=null&&h.push(iC(g,$,x))}g=g.return}return h}function Qg(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==T);return i||null}function KZ(i,o){for(var d=i,h=o,g=0,C=d;C;C=Qg(C))g++;for(var b=0,k=h;k;k=Qg(k))b++;for(;g-b>0;)d=Qg(d),g--;for(;b-g>0;)h=Qg(h),b--;for(var x=g;x--;){if(d===h||h!==null&&d===h.alternate)return d;d=Qg(d),h=Qg(h)}return null}function xF(i,o,d,h,g){for(var C=o._reactName,b=[],k=d;k!==null&&k!==h;){var x=k,M=x.alternate,$=x.stateNode,J=x.tag;if(M!==null&&M===h)break;if(J===T&&$!==null){var Q=$;if(g){var ce=Zc(k,C);ce!=null&&b.unshift(iC(k,ce,Q))}else if(!g){var fe=Zc(k,C);fe!=null&&b.push(iC(k,fe,Q))}}k=k.return}b.length!==0&&i.push({event:o,listeners:b})}function GZ(i,o,d,h,g){var C=h&&g?KZ(h,g):null;h!==null&&xF(i,o,h,C,!1),g!==null&&d!==null&&xF(i,d,g,C,!0)}function WZ(i,o){return i+"__"+(o?"capture":"bubble")}var ds=!1,oC="dangerouslySetInnerHTML",OS="suppressContentEditableWarning",nh="suppressHydrationWarning",IF="autoFocus",nv="children",rv="style",NS="__html",px,MS,aC,OF,PS,NF,MF;px={dialog:!0,webview:!0},MS=function(i,o){Wm(i,o),r0(i,o),zb(i,o,{registrationNameDependencies:_n,possibleRegistrationNames:Xr})},NF=ur&&!document.documentMode,aC=function(i,o,d){if(!ds){var h=DS(d),g=DS(o);g!==h&&(ds=!0,u("Prop `%s` did not match. Server: %s Client: %s",i,JSON.stringify(g),JSON.stringify(h)))}},OF=function(i){if(!ds){ds=!0;var o=[];i.forEach(function(d){o.push(d)}),u("Extra attributes from the server: %s",o)}},PS=function(i,o){o===!1?u("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.",i,i,i):u("Expected `%s` listener to be a function, instead got a value of `%s` type.",i,typeof o)},MF=function(i,o){var d=i.namespaceURI===Ul?i.ownerDocument.createElement(i.tagName):i.ownerDocument.createElementNS(i.namespaceURI,i.tagName);return d.innerHTML=o,d.innerHTML};var YZ=/\r\n?/g,QZ=/\u0000|\uFFFD/g;function DS(i){Qi(i);var o=typeof i=="string"?i:""+i;return o.replace(YZ,`
125
- `).replace(QZ,"")}function LS(i,o,d,h){var g=DS(o),C=DS(i);if(C!==g&&(h&&(ds||(ds=!0,u('Text content did not match. Server: "%s" Client: "%s"',C,g))),d&&he))throw new Error("Text content does not match server-rendered HTML.")}function PF(i){return i.nodeType===Os?i:i.ownerDocument}function XZ(){}function US(i){i.onclick=XZ}function JZ(i,o,d,h,g){for(var C in h)if(h.hasOwnProperty(C)){var b=h[C];if(C===rv)b&&Object.freeze(b),Nb(o,b);else if(C===oC){var k=b?b[NS]:void 0;k!=null&&Eb(o,k)}else if(C===nv)if(typeof b=="string"){var x=i!=="textarea"||b!=="";x&&qm(o,b)}else typeof b=="number"&&qm(o,""+b);else C===OS||C===nh||C===IF||(_n.hasOwnProperty(C)?b!=null&&(typeof b!="function"&&PS(C,b),C==="onScroll"&&Nr("scroll",o)):b!=null&&kr(o,C,b,g))}}function ZZ(i,o,d,h){for(var g=0;g<o.length;g+=2){var C=o[g],b=o[g+1];C===rv?Nb(i,b):C===oC?Eb(i,b):C===nv?qm(i,b):kr(i,C,b,h)}}function eee(i,o,d,h){var g,C=PF(d),b,k=h;if(k===Ul&&(k=zm(i)),k===Ul){if(g=$l(i,o),!g&&i!==i.toLowerCase()&&u("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",i),i==="script"){var x=C.createElement("div");x.innerHTML="<script><\/script>";var M=x.firstChild;b=x.removeChild(M)}else if(typeof o.is=="string")b=C.createElement(i,{is:o.is});else if(b=C.createElement(i),i==="select"){var $=b;o.multiple?$.multiple=!0:o.size&&($.size=o.size)}}else b=C.createElementNS(k,i);return k===Ul&&!g&&Object.prototype.toString.call(b)==="[object HTMLUnknownElement]"&&!si.call(px,i)&&(px[i]=!0,u("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",i)),b}function tee(i,o){return PF(o).createTextNode(i)}function nee(i,o,d,h){var g=$l(o,d);MS(o,d);var C;switch(o){case"dialog":Nr("cancel",i),Nr("close",i),C=d;break;case"iframe":case"object":case"embed":Nr("load",i),C=d;break;case"video":case"audio":for(var b=0;b<nC.length;b++)Nr(nC[b],i);C=d;break;case"source":Nr("error",i),C=d;break;case"img":case"image":case"link":Nr("error",i),Nr("load",i),C=d;break;case"details":Nr("toggle",i),C=d;break;case"input":q(i,d),C=O(i,d),Nr("invalid",i);break;case"option":Gn(i,d),C=d;break;case"select":wp(i,d),C=Ep(i,d),Nr("invalid",i);break;case"textarea":yb(i,d),C=W_(i,d),Nr("invalid",i);break;default:C=d}switch(Km(o,C),JZ(o,i,h,C,g),o){case"input":Ja(i),je(i,d,!1);break;case"textarea":Ja(i),Cb(i);break;case"option":nr(i,d);break;case"select":K_(i,d);break;default:typeof C.onClick=="function"&&US(i);break}}function ree(i,o,d,h,g){MS(o,h);var C=null,b,k;switch(o){case"input":b=O(i,d),k=O(i,h),C=[];break;case"select":b=Ep(i,d),k=Ep(i,h),C=[];break;case"textarea":b=W_(i,d),k=W_(i,h),C=[];break;default:b=d,k=h,typeof b.onClick!="function"&&typeof k.onClick=="function"&&US(i);break}Km(o,k);var x,M,$=null;for(x in b)if(!(k.hasOwnProperty(x)||!b.hasOwnProperty(x)||b[x]==null))if(x===rv){var J=b[x];for(M in J)J.hasOwnProperty(M)&&($||($={}),$[M]="")}else x===oC||x===nv||x===OS||x===nh||x===IF||(_n.hasOwnProperty(x)?C||(C=[]):(C=C||[]).push(x,null));for(x in k){var Q=k[x],ce=b!=null?b[x]:void 0;if(!(!k.hasOwnProperty(x)||Q===ce||Q==null&&ce==null))if(x===rv)if(Q&&Object.freeze(Q),ce){for(M in ce)ce.hasOwnProperty(M)&&(!Q||!Q.hasOwnProperty(M))&&($||($={}),$[M]="");for(M in Q)Q.hasOwnProperty(M)&&ce[M]!==Q[M]&&($||($={}),$[M]=Q[M])}else $||(C||(C=[]),C.push(x,$)),$=Q;else if(x===oC){var fe=Q?Q[NS]:void 0,we=ce?ce[NS]:void 0;fe!=null&&we!==fe&&(C=C||[]).push(x,fe)}else x===nv?(typeof Q=="string"||typeof Q=="number")&&(C=C||[]).push(x,""+Q):x===OS||x===nh||(_n.hasOwnProperty(x)?(Q!=null&&(typeof Q!="function"&&PS(x,Q),x==="onScroll"&&Nr("scroll",i)),!C&&ce!==Q&&(C=[])):(C=C||[]).push(x,Q))}return $&&(Sp($,k[rv]),(C=C||[]).push(rv,$)),C}function iee(i,o,d,h,g){d==="input"&&g.type==="radio"&&g.name!=null&&de(i,g);var C=$l(d,h),b=$l(d,g);switch(ZZ(i,o,C,b),d){case"input":_e(i,g);break;case"textarea":_b(i,g);break;case"select":RA(i,g);break}}function oee(i){{var o=i.toLowerCase();return Gm.hasOwnProperty(o)&&Gm[o]||null}}function aee(i,o,d,h,g,C,b){var k,x;switch(k=$l(o,d),MS(o,d),o){case"dialog":Nr("cancel",i),Nr("close",i);break;case"iframe":case"object":case"embed":Nr("load",i);break;case"video":case"audio":for(var M=0;M<nC.length;M++)Nr(nC[M],i);break;case"source":Nr("error",i);break;case"img":case"image":case"link":Nr("error",i),Nr("load",i);break;case"details":Nr("toggle",i);break;case"input":q(i,d),Nr("invalid",i);break;case"option":Gn(i,d);break;case"select":wp(i,d),Nr("invalid",i);break;case"textarea":yb(i,d),Nr("invalid",i);break}Km(o,d);{x=new Set;for(var $=i.attributes,J=0;J<$.length;J++){var Q=$[J].name.toLowerCase();switch(Q){case"value":break;case"checked":break;case"selected":break;default:x.add($[J].name)}}}var ce=null;for(var fe in d)if(d.hasOwnProperty(fe)){var we=d[fe];if(fe===nv)typeof we=="string"?i.textContent!==we&&(d[nh]!==!0&&LS(i.textContent,we,C,b),ce=[nv,we]):typeof we=="number"&&i.textContent!==""+we&&(d[nh]!==!0&&LS(i.textContent,we,C,b),ce=[nv,""+we]);else if(_n.hasOwnProperty(fe))we!=null&&(typeof we!="function"&&PS(fe,we),fe==="onScroll"&&Nr("scroll",i));else if(b&&typeof k=="boolean"){var st=void 0,At=k&&ut?null:_t(fe);if(d[nh]!==!0){if(!(fe===OS||fe===nh||fe==="value"||fe==="checked"||fe==="selected")){if(fe===oC){var wt=i.innerHTML,Tn=we?we[NS]:void 0;if(Tn!=null){var yn=MF(i,Tn);yn!==wt&&aC(fe,wt,yn)}}else if(fe===rv){if(x.delete(fe),NF){var oe=PA(we);st=i.getAttribute("style"),oe!==st&&aC(fe,st,oe)}}else if(k&&!ut)x.delete(fe.toLowerCase()),st=aa(i,fe,we),we!==st&&aC(fe,st,we);else if(!Ve(fe,At,k)&&!et(fe,we,At,k)){var be=!1;if(At!==null)x.delete(At.attributeName),st=Ti(i,fe,we,At);else{var ae=h;if(ae===Ul&&(ae=zm(o)),ae===Ul)x.delete(fe.toLowerCase());else{var Le=oee(fe);Le!==null&&Le!==fe&&(be=!0,x.delete(Le)),x.delete(fe)}st=aa(i,fe,we)}var lt=ut;!lt&&we!==st&&!be&&aC(fe,st,we)}}}}}switch(b&&x.size>0&&d[nh]!==!0&&OF(x),o){case"input":Ja(i),je(i,d,!0);break;case"textarea":Ja(i),Cb(i);break;case"select":case"option":break;default:typeof d.onClick=="function"&&US(i);break}return ce}function see(i,o,d){var h=i.nodeValue!==o;return h}function vx(i,o){{if(ds)return;ds=!0,u("Did not expect server HTML to contain a <%s> in <%s>.",o.nodeName.toLowerCase(),i.nodeName.toLowerCase())}}function mx(i,o){{if(ds)return;ds=!0,u('Did not expect server HTML to contain the text node "%s" in <%s>.',o.nodeValue,i.nodeName.toLowerCase())}}function gx(i,o,d){{if(ds)return;ds=!0,u("Expected server HTML to contain a matching <%s> in <%s>.",o,i.nodeName.toLowerCase())}}function yx(i,o){{if(o===""||ds)return;ds=!0,u('Expected server HTML to contain a matching text node for "%s" in <%s>.',o,i.nodeName.toLowerCase())}}function lee(i,o,d){switch(o){case"input":Pt(i,d);return;case"textarea":Y_(i,d);return;case"select":kA(i,d);return}}var sC=function(){},lC=function(){};{var uee=["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"],DF=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],cee=DF.concat(["button"]),dee=["dd","dt","li","option","optgroup","p","rp","rt"],LF={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};lC=function(i,o){var d=ln({},i||LF),h={tag:o};return DF.indexOf(o)!==-1&&(d.aTagInScope=null,d.buttonTagInScope=null,d.nobrTagInScope=null),cee.indexOf(o)!==-1&&(d.pTagInButtonScope=null),uee.indexOf(o)!==-1&&o!=="address"&&o!=="div"&&o!=="p"&&(d.listItemTagAutoclosing=null,d.dlItemTagAutoclosing=null),d.current=h,o==="form"&&(d.formTag=h),o==="a"&&(d.aTagInScope=h),o==="button"&&(d.buttonTagInScope=h),o==="nobr"&&(d.nobrTagInScope=h),o==="p"&&(d.pTagInButtonScope=h),o==="li"&&(d.listItemTagAutoclosing=h),(o==="dd"||o==="dt")&&(d.dlItemTagAutoclosing=h),d};var fee=function(i,o){switch(o){case"select":return i==="option"||i==="optgroup"||i==="#text";case"optgroup":return i==="option"||i==="#text";case"option":return i==="#text";case"tr":return i==="th"||i==="td"||i==="style"||i==="script"||i==="template";case"tbody":case"thead":case"tfoot":return i==="tr"||i==="style"||i==="script"||i==="template";case"colgroup":return i==="col"||i==="template";case"table":return i==="caption"||i==="colgroup"||i==="tbody"||i==="tfoot"||i==="thead"||i==="style"||i==="script"||i==="template";case"head":return i==="base"||i==="basefont"||i==="bgsound"||i==="link"||i==="meta"||i==="title"||i==="noscript"||i==="noframes"||i==="style"||i==="script"||i==="template";case"html":return i==="head"||i==="body"||i==="frameset";case"frameset":return i==="frame";case"#document":return i==="html"}switch(i){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return o!=="h1"&&o!=="h2"&&o!=="h3"&&o!=="h4"&&o!=="h5"&&o!=="h6";case"rp":case"rt":return dee.indexOf(o)===-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 o==null}return!0},hee=function(i,o){switch(i){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 o.pTagInButtonScope;case"form":return o.formTag||o.pTagInButtonScope;case"li":return o.listItemTagAutoclosing;case"dd":case"dt":return o.dlItemTagAutoclosing;case"button":return o.buttonTagInScope;case"a":return o.aTagInScope;case"nobr":return o.nobrTagInScope}return null},UF={};sC=function(i,o,d){d=d||LF;var h=d.current,g=h&&h.tag;o!=null&&(i!=null&&u("validateDOMNesting: when childText is passed, childTag should be null"),i="#text");var C=fee(i,g)?null:h,b=C?null:hee(i,d),k=C||b;if(k){var x=k.tag,M=!!C+"|"+i+"|"+x;if(!UF[M]){UF[M]=!0;var $=i,J="";if(i==="#text"?/\S/.test(o)?$="Text nodes":($="Whitespace text nodes",J=" Make sure you don't have any extra whitespace between tags on each line of your source code."):$="<"+i+">",C){var Q="";x==="table"&&i==="tr"&&(Q+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),u("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",$,x,J,Q)}else u("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",$,x)}}}}var FS="suppressHydrationWarning",$S="$",HS="/$",uC="$?",cC="$!",pee="style",_x=null,Cx=null;function vee(i){var o,d,h=i.nodeType;switch(h){case Os:case Yc:{o=h===Os?"#document":"#fragment";var g=i.documentElement;d=g?g.namespaceURI:X_(null,"");break}default:{var C=h===di?i.parentNode:i,b=C.namespaceURI||null;o=C.tagName,d=X_(b,o);break}}{var k=o.toLowerCase(),x=lC(null,k);return{namespace:d,ancestorInfo:x}}}function mee(i,o,d){{var h=i,g=X_(h.namespace,o),C=lC(h.ancestorInfo,o);return{namespace:g,ancestorInfo:C}}}function Mae(i){return i}function gee(i){_x=Pa(),Cx=OZ();var o=null;return ji(!1),o}function yee(i){NZ(Cx),ji(_x),_x=null,Cx=null}function _ee(i,o,d,h,g){var C;{var b=h;if(sC(i,null,b.ancestorInfo),typeof o.children=="string"||typeof o.children=="number"){var k=""+o.children,x=lC(b.ancestorInfo,i);sC(null,k,x)}C=b.namespace}var M=eee(i,o,d,C);return hC(g,M),Ax(M,o),M}function Cee(i,o){i.appendChild(o)}function Eee(i,o,d,h,g){switch(nee(i,o,d,h),o){case"button":case"input":case"select":case"textarea":return!!d.autoFocus;case"img":return!0;default:return!1}}function wee(i,o,d,h,g,C){{var b=C;if(typeof h.children!=typeof d.children&&(typeof h.children=="string"||typeof h.children=="number")){var k=""+h.children,x=lC(b.ancestorInfo,o);sC(null,k,x)}}return ree(i,o,d,h)}function Ex(i,o){return i==="textarea"||i==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}function bee(i,o,d,h){{var g=d;sC(null,i,g.ancestorInfo)}var C=tee(i,o);return hC(h,C),C}function See(){var i=window.event;return i===void 0?Gl:Bo(i.type)}var wx=typeof setTimeout=="function"?setTimeout:void 0,Tee=typeof clearTimeout=="function"?clearTimeout:void 0,bx=-1,FF=typeof Promise=="function"?Promise:void 0,Ree=typeof queueMicrotask=="function"?queueMicrotask:typeof FF<"u"?function(i){return FF.resolve(null).then(i).catch(kee)}:wx;function kee(i){setTimeout(function(){throw i})}function Aee(i,o,d,h){switch(o){case"button":case"input":case"select":case"textarea":d.autoFocus&&i.focus();return;case"img":{d.src&&(i.src=d.src);return}}}function xee(i,o,d,h,g,C){iee(i,o,d,h,g),Ax(i,g)}function $F(i){qm(i,"")}function Iee(i,o,d){i.nodeValue=d}function Oee(i,o){i.appendChild(o)}function Nee(i,o){var d;i.nodeType===di?(d=i.parentNode,d.insertBefore(o,i)):(d=i,d.appendChild(o));var h=i._reactRootContainer;h==null&&d.onclick===null&&US(d)}function Mee(i,o,d){i.insertBefore(o,d)}function Pee(i,o,d){i.nodeType===di?i.parentNode.insertBefore(o,d):i.insertBefore(o,d)}function Dee(i,o){i.removeChild(o)}function Lee(i,o){i.nodeType===di?i.parentNode.removeChild(o):i.removeChild(o)}function Sx(i,o){var d=o,h=0;do{var g=d.nextSibling;if(i.removeChild(d),g&&g.nodeType===di){var C=g.data;if(C===HS)if(h===0){i.removeChild(g),gn(o);return}else h--;else(C===$S||C===uC||C===cC)&&h++}d=g}while(d);gn(o)}function Uee(i,o){i.nodeType===di?Sx(i.parentNode,o):i.nodeType===da&&Sx(i,o),gn(i)}function Fee(i){i=i;var o=i.style;typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"}function $ee(i){i.nodeValue=""}function Hee(i,o){i=i;var d=o[pee],h=d!=null&&d.hasOwnProperty("display")?d.display:null;i.style.display=Vm("display",h)}function jee(i,o){i.nodeValue=o}function zee(i){i.nodeType===da?i.textContent="":i.nodeType===Os&&i.documentElement&&i.removeChild(i.documentElement)}function Bee(i,o,d){return i.nodeType!==da||o.toLowerCase()!==i.nodeName.toLowerCase()?null:i}function qee(i,o){return o===""||i.nodeType!==Fl?null:i}function Vee(i){return i.nodeType!==di?null:i}function HF(i){return i.data===uC}function Tx(i){return i.data===cC}function Kee(i){var o=i.nextSibling&&i.nextSibling.dataset,d,h,g;return o&&(d=o.dgst,h=o.msg,g=o.stck),{message:h,digest:d,stack:g}}function Gee(i,o){i._reactRetry=o}function jS(i){for(;i!=null;i=i.nextSibling){var o=i.nodeType;if(o===da||o===Fl)break;if(o===di){var d=i.data;if(d===$S||d===cC||d===uC)break;if(d===HS)return null}}return i}function dC(i){return jS(i.nextSibling)}function Wee(i){return jS(i.firstChild)}function Yee(i){return jS(i.firstChild)}function Qee(i){return jS(i.nextSibling)}function Xee(i,o,d,h,g,C,b){hC(C,i),Ax(i,d);var k;{var x=g;k=x.namespace}var M=(C.mode&cn)!==Nt;return aee(i,o,d,k,h,M,b)}function Jee(i,o,d,h){return hC(d,i),d.mode&cn,see(i,o)}function Zee(i,o){hC(o,i)}function ete(i){for(var o=i.nextSibling,d=0;o;){if(o.nodeType===di){var h=o.data;if(h===HS){if(d===0)return dC(o);d--}else(h===$S||h===cC||h===uC)&&d++}o=o.nextSibling}return null}function jF(i){for(var o=i.previousSibling,d=0;o;){if(o.nodeType===di){var h=o.data;if(h===$S||h===cC||h===uC){if(d===0)return o;d--}else h===HS&&d++}o=o.previousSibling}return null}function tte(i){gn(i)}function nte(i){gn(i)}function rte(i){return i!=="head"&&i!=="body"}function ite(i,o,d,h){var g=!0;LS(o.nodeValue,d,h,g)}function ote(i,o,d,h,g,C){if(o[FS]!==!0){var b=!0;LS(h.nodeValue,g,C,b)}}function ate(i,o){o.nodeType===da?vx(i,o):o.nodeType===di||mx(i,o)}function ste(i,o){{var d=i.parentNode;d!==null&&(o.nodeType===da?vx(d,o):o.nodeType===di||mx(d,o))}}function lte(i,o,d,h,g){(g||o[FS]!==!0)&&(h.nodeType===da?vx(d,h):h.nodeType===di||mx(d,h))}function ute(i,o,d){gx(i,o)}function cte(i,o){yx(i,o)}function dte(i,o,d){{var h=i.parentNode;h!==null&&gx(h,o)}}function fte(i,o){{var d=i.parentNode;d!==null&&yx(d,o)}}function hte(i,o,d,h,g,C){(C||o[FS]!==!0)&&gx(d,h)}function pte(i,o,d,h,g){(g||o[FS]!==!0)&&yx(d,h)}function vte(i){u("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",i.nodeName.toLowerCase())}function mte(i){rC(i)}var Xg=Math.random().toString(36).slice(2),Jg="__reactFiber$"+Xg,Rx="__reactProps$"+Xg,fC="__reactContainer$"+Xg,kx="__reactEvents$"+Xg,gte="__reactListeners$"+Xg,yte="__reactHandles$"+Xg;function _te(i){delete i[Jg],delete i[Rx],delete i[kx],delete i[gte],delete i[yte]}function hC(i,o){o[Jg]=i}function zS(i,o){o[fC]=i}function zF(i){i[fC]=null}function pC(i){return!!i[fC]}function iv(i){var o=i[Jg];if(o)return o;for(var d=i.parentNode;d;){if(o=d[fC]||d[Jg],o){var h=o.alternate;if(o.child!==null||h!==null&&h.child!==null)for(var g=jF(i);g!==null;){var C=g[Jg];if(C)return C;g=jF(g)}return o}i=d,d=i.parentNode}return null}function rh(i){var o=i[Jg]||i[fC];return o&&(o.tag===T||o.tag===A||o.tag===V||o.tag===E)?o:null}function Zg(i){if(i.tag===T||i.tag===A)return i.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function BS(i){return i[Rx]||null}function Ax(i,o){i[Rx]=o}function Cte(i){var o=i[kx];return o===void 0&&(o=i[kx]=new Set),o}var BF={},qF=t.ReactDebugCurrentFrame;function qS(i){if(i){var o=i._owner,d=Zs(i.type,i._source,o?o.type:null);qF.setExtraStackFrame(d)}else qF.setExtraStackFrame(null)}function Jl(i,o,d,h,g){{var C=Function.call.bind(si);for(var b in i)if(C(i,b)){var k=void 0;try{if(typeof i[b]!="function"){var x=Error((h||"React class")+": "+d+" type `"+b+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[b]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw x.name="Invariant Violation",x}k=i[b](o,b,h,d,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(M){k=M}k&&!(k instanceof Error)&&(qS(g),u("%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).",h||"React class",d,b,typeof k),qS(null)),k instanceof Error&&!(k.message in BF)&&(BF[k.message]=!0,qS(g),u("Failed %s type: %s",d,k.message),qS(null))}}}var xx=[],VS;VS=[];var bd=-1;function ih(i){return{current:i}}function Ca(i,o){if(bd<0){u("Unexpected pop.");return}o!==VS[bd]&&u("Unexpected Fiber popped."),i.current=xx[bd],xx[bd]=null,VS[bd]=null,bd--}function Ea(i,o,d){bd++,xx[bd]=i.current,VS[bd]=d,i.current=o}var Ix;Ix={};var Ls={};Object.freeze(Ls);var Sd=ih(Ls),dc=ih(!1),Ox=Ls;function ey(i,o,d){return d&&fc(o)?Ox:Sd.current}function VF(i,o,d){{var h=i.stateNode;h.__reactInternalMemoizedUnmaskedChildContext=o,h.__reactInternalMemoizedMaskedChildContext=d}}function ty(i,o){{var d=i.type,h=d.contextTypes;if(!h)return Ls;var g=i.stateNode;if(g&&g.__reactInternalMemoizedUnmaskedChildContext===o)return g.__reactInternalMemoizedMaskedChildContext;var C={};for(var b in h)C[b]=o[b];{var k=Vt(i)||"Unknown";Jl(h,C,"context",k)}return g&&VF(i,o,C),C}}function KS(){return dc.current}function fc(i){{var o=i.childContextTypes;return o!=null}}function GS(i){Ca(dc,i),Ca(Sd,i)}function Nx(i){Ca(dc,i),Ca(Sd,i)}function KF(i,o,d){{if(Sd.current!==Ls)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Ea(Sd,o,i),Ea(dc,d,i)}}function GF(i,o,d){{var h=i.stateNode,g=o.childContextTypes;if(typeof h.getChildContext!="function"){{var C=Vt(i)||"Unknown";Ix[C]||(Ix[C]=!0,u("%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.",C,C))}return d}var b=h.getChildContext();for(var k in b)if(!(k in g))throw new Error((Vt(i)||"Unknown")+'.getChildContext(): key "'+k+'" is not defined in childContextTypes.');{var x=Vt(i)||"Unknown";Jl(g,b,"child context",x)}return ln({},d,b)}}function WS(i){{var o=i.stateNode,d=o&&o.__reactInternalMemoizedMergedChildContext||Ls;return Ox=Sd.current,Ea(Sd,d,i),Ea(dc,dc.current,i),!0}}function WF(i,o,d){{var h=i.stateNode;if(!h)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(d){var g=GF(i,o,Ox);h.__reactInternalMemoizedMergedChildContext=g,Ca(dc,i),Ca(Sd,i),Ea(Sd,g,i),Ea(dc,d,i)}else Ca(dc,i),Ea(dc,d,i)}}function Ete(i){{if(!g0(i)||i.tag!==m)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 o=i;do{switch(o.tag){case E:return o.stateNode.context;case m:{var d=o.type;if(fc(d))return o.stateNode.__reactInternalMemoizedMergedChildContext;break}}o=o.return}while(o!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var oh=0,YS=1,Td=null,Mx=!1,Px=!1;function YF(i){Td===null?Td=[i]:Td.push(i)}function wte(i){Mx=!0,YF(i)}function QF(){Mx&&ah()}function ah(){if(!Px&&Td!==null){Px=!0;var i=0,o=ss();try{var d=!0,h=Td;for(Ai(To);i<h.length;i++){var g=h[i];do g=g(d);while(g!==null)}Td=null,Mx=!1}catch(C){throw Td!==null&&(Td=Td.slice(i+1)),ng(ig,ah),C}finally{Ai(o),Px=!1}}return null}var ny=[],ry=0,QS=null,XS=0,ll=[],ul=0,ov=null,Rd=1,kd="";function bte(i){return sv(),(i.flags&p0)!==kt}function Ste(i){return sv(),XS}function Tte(){var i=kd,o=Rd,d=o&~Rte(o);return d.toString(32)+i}function av(i,o){sv(),ny[ry++]=XS,ny[ry++]=QS,QS=i,XS=o}function XF(i,o,d){sv(),ll[ul++]=Rd,ll[ul++]=kd,ll[ul++]=ov,ov=i;var h=Rd,g=kd,C=JS(h)-1,b=h&~(1<<C),k=d+1,x=JS(o)+C;if(x>30){var M=C-C%5,$=(1<<M)-1,J=(b&$).toString(32),Q=b>>M,ce=C-M,fe=JS(o)+ce,we=k<<ce,st=we|Q,At=J+g;Rd=1<<fe|st,kd=At}else{var wt=k<<C,Tn=wt|b,yn=g;Rd=1<<x|Tn,kd=yn}}function Dx(i){sv();var o=i.return;if(o!==null){var d=1,h=0;av(i,d),XF(i,d,h)}}function JS(i){return 32-cg(i)}function Rte(i){return 1<<JS(i)-1}function Lx(i){for(;i===QS;)QS=ny[--ry],ny[ry]=null,XS=ny[--ry],ny[ry]=null;for(;i===ov;)ov=ll[--ul],ll[ul]=null,kd=ll[--ul],ll[ul]=null,Rd=ll[--ul],ll[ul]=null}function kte(){return sv(),ov!==null?{id:Rd,overflow:kd}:null}function Ate(i,o){sv(),ll[ul++]=Rd,ll[ul++]=kd,ll[ul++]=ov,Rd=o.id,kd=o.overflow,ov=i}function sv(){Vo()||u("Expected to be hydrating. This is a bug in React. Please file an issue.")}var qo=null,cl=null,Zl=!1,lv=!1,sh=null;function xte(){Zl&&u("We should not be hydrating here. This is a bug in React. Please file a bug.")}function JF(){lv=!0}function Ite(){return lv}function Ote(i){var o=i.stateNode.containerInfo;return cl=Yee(o),qo=i,Zl=!0,sh=null,lv=!1,!0}function Nte(i,o,d){return cl=Qee(o),qo=i,Zl=!0,sh=null,lv=!1,d!==null&&Ate(i,d),!0}function ZF(i,o){switch(i.tag){case E:{ate(i.stateNode.containerInfo,o);break}case T:{var d=(i.mode&cn)!==Nt;lte(i.type,i.memoizedProps,i.stateNode,o,d);break}case V:{var h=i.memoizedState;h.dehydrated!==null&&ste(h.dehydrated,o);break}}}function e$(i,o){ZF(i,o);var d=Die();d.stateNode=o,d.return=i;var h=i.deletions;h===null?(i.deletions=[d],i.flags|=Ln):h.push(d)}function Ux(i,o){{if(lv)return;switch(i.tag){case E:{var d=i.stateNode.containerInfo;switch(o.tag){case T:var h=o.type;o.pendingProps,ute(d,h);break;case A:var g=o.pendingProps;cte(d,g);break}break}case T:{var C=i.type,b=i.memoizedProps,k=i.stateNode;switch(o.tag){case T:{var x=o.type,M=o.pendingProps,$=(i.mode&cn)!==Nt;hte(C,b,k,x,M,$);break}case A:{var J=o.pendingProps,Q=(i.mode&cn)!==Nt;pte(C,b,k,J,Q);break}}break}case V:{var ce=i.memoizedState,fe=ce.dehydrated;if(fe!==null)switch(o.tag){case T:var we=o.type;o.pendingProps,dte(fe,we);break;case A:var st=o.pendingProps;fte(fe,st);break}break}default:return}}}function t$(i,o){o.flags=o.flags&~ns|hr,Ux(i,o)}function n$(i,o){switch(i.tag){case T:{var d=i.type;i.pendingProps;var h=Bee(o,d);return h!==null?(i.stateNode=h,qo=i,cl=Wee(h),!0):!1}case A:{var g=i.pendingProps,C=qee(o,g);return C!==null?(i.stateNode=C,qo=i,cl=null,!0):!1}case V:{var b=Vee(o);if(b!==null){var k={dehydrated:b,treeContext:kte(),retryLane:ya};i.memoizedState=k;var x=Lie(b);return x.return=i,i.child=x,qo=i,cl=null,!0}return!1}default:return!1}}function Fx(i){return(i.mode&cn)!==Nt&&(i.flags&zt)===kt}function $x(i){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function Hx(i){if(Zl){var o=cl;if(!o){Fx(i)&&(Ux(qo,i),$x()),t$(qo,i),Zl=!1,qo=i;return}var d=o;if(!n$(i,o)){Fx(i)&&(Ux(qo,i),$x()),o=dC(d);var h=qo;if(!o||!n$(i,o)){t$(qo,i),Zl=!1,qo=i;return}e$(h,d)}}}function Mte(i,o,d){var h=i.stateNode,g=!lv,C=Xee(h,i.type,i.memoizedProps,o,d,i,g);return i.updateQueue=C,C!==null}function Pte(i){var o=i.stateNode,d=i.memoizedProps,h=Jee(o,d,i);if(h){var g=qo;if(g!==null)switch(g.tag){case E:{var C=g.stateNode.containerInfo,b=(g.mode&cn)!==Nt;ite(C,o,d,b);break}case T:{var k=g.type,x=g.memoizedProps,M=g.stateNode,$=(g.mode&cn)!==Nt;ote(k,x,M,o,d,$);break}}}return h}function Dte(i){var o=i.memoizedState,d=o!==null?o.dehydrated:null;if(!d)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Zee(d,i)}function Lte(i){var o=i.memoizedState,d=o!==null?o.dehydrated:null;if(!d)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 ete(d)}function r$(i){for(var o=i.return;o!==null&&o.tag!==T&&o.tag!==E&&o.tag!==V;)o=o.return;qo=o}function ZS(i){if(i!==qo)return!1;if(!Zl)return r$(i),Zl=!0,!1;if(i.tag!==E&&(i.tag!==T||rte(i.type)&&!Ex(i.type,i.memoizedProps))){var o=cl;if(o)if(Fx(i))i$(i),$x();else for(;o;)e$(i,o),o=dC(o)}return r$(i),i.tag===V?cl=Lte(i):cl=qo?dC(i.stateNode):null,!0}function Ute(){return Zl&&cl!==null}function i$(i){for(var o=cl;o;)ZF(i,o),o=dC(o)}function iy(){qo=null,cl=null,Zl=!1,lv=!1}function o$(){sh!==null&&(ZH(sh),sh=null)}function Vo(){return Zl}function jx(i){sh===null?sh=[i]:sh.push(i)}var Fte=t.ReactCurrentBatchConfig,$te=null;function Hte(){return Fte.transition}var eu={recordUnsafeLifecycleWarnings:function(i,o){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(i,o){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var jte=function(i){for(var o=null,d=i;d!==null;)d.mode&Ir&&(o=d),d=d.return;return o},uv=function(i){var o=[];return i.forEach(function(d){o.push(d)}),o.sort().join(", ")},vC=[],mC=[],gC=[],yC=[],_C=[],CC=[],cv=new Set;eu.recordUnsafeLifecycleWarnings=function(i,o){cv.has(i.type)||(typeof o.componentWillMount=="function"&&o.componentWillMount.__suppressDeprecationWarning!==!0&&vC.push(i),i.mode&Ir&&typeof o.UNSAFE_componentWillMount=="function"&&mC.push(i),typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&gC.push(i),i.mode&Ir&&typeof o.UNSAFE_componentWillReceiveProps=="function"&&yC.push(i),typeof o.componentWillUpdate=="function"&&o.componentWillUpdate.__suppressDeprecationWarning!==!0&&_C.push(i),i.mode&Ir&&typeof o.UNSAFE_componentWillUpdate=="function"&&CC.push(i))},eu.flushPendingUnsafeLifecycleWarnings=function(){var i=new Set;vC.length>0&&(vC.forEach(function(Q){i.add(Vt(Q)||"Component"),cv.add(Q.type)}),vC=[]);var o=new Set;mC.length>0&&(mC.forEach(function(Q){o.add(Vt(Q)||"Component"),cv.add(Q.type)}),mC=[]);var d=new Set;gC.length>0&&(gC.forEach(function(Q){d.add(Vt(Q)||"Component"),cv.add(Q.type)}),gC=[]);var h=new Set;yC.length>0&&(yC.forEach(function(Q){h.add(Vt(Q)||"Component"),cv.add(Q.type)}),yC=[]);var g=new Set;_C.length>0&&(_C.forEach(function(Q){g.add(Vt(Q)||"Component"),cv.add(Q.type)}),_C=[]);var C=new Set;if(CC.length>0&&(CC.forEach(function(Q){C.add(Vt(Q)||"Component"),cv.add(Q.type)}),CC=[]),o.size>0){var b=uv(o);u(`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
-
127
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
128
-
129
- Please update the following components: %s`,b)}if(h.size>0){var k=uv(h);u(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
130
-
131
- * Move data fetching code or side effects to componentDidUpdate.
132
- * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
133
-
134
- Please update the following components: %s`,k)}if(C.size>0){var x=uv(C);u(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
135
-
136
- * Move data fetching code or side effects to componentDidUpdate.
137
-
138
- Please update the following components: %s`,x)}if(i.size>0){var M=uv(i);l(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
139
-
140
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
141
- * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
142
-
143
- Please update the following components: %s`,M)}if(d.size>0){var $=uv(d);l(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
144
-
145
- * Move data fetching code or side effects to componentDidUpdate.
146
- * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
147
- * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
148
-
149
- Please update the following components: %s`,$)}if(g.size>0){var J=uv(g);l(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
150
-
151
- * Move data fetching code or side effects to componentDidUpdate.
152
- * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
153
-
154
- Please update the following components: %s`,J)}};var eT=new Map,a$=new Set;eu.recordLegacyContextWarning=function(i,o){var d=jte(i);if(d===null){u("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");return}if(!a$.has(i.type)){var h=eT.get(d);(i.type.contextTypes!=null||i.type.childContextTypes!=null||o!==null&&typeof o.getChildContext=="function")&&(h===void 0&&(h=[],eT.set(d,h)),h.push(i))}},eu.flushLegacyContextWarning=function(){eT.forEach(function(i,o){if(i.length!==0){var d=i[0],h=new Set;i.forEach(function(C){h.add(Vt(C)||"Component"),a$.add(C.type)});var g=uv(h);try{$n(d),u(`Legacy context API has been detected within a strict-mode tree.
155
-
156
- The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
157
-
158
- Please update the following components: %s
159
-
160
- Learn more about this warning here: https://reactjs.org/link/legacy-context`,g)}finally{zr()}}})},eu.discardPendingWarnings=function(){vC=[],mC=[],gC=[],yC=[],_C=[],CC=[],eT=new Map}}function tu(i,o){if(i&&i.defaultProps){var d=ln({},o),h=i.defaultProps;for(var g in h)d[g]===void 0&&(d[g]=h[g]);return d}return o}var zx=ih(null),Bx;Bx={};var tT=null,oy=null,qx=null,nT=!1;function rT(){tT=null,oy=null,qx=null,nT=!1}function s$(){nT=!0}function l$(){nT=!1}function u$(i,o,d){Ea(zx,o._currentValue,i),o._currentValue=d,o._currentRenderer!==void 0&&o._currentRenderer!==null&&o._currentRenderer!==Bx&&u("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),o._currentRenderer=Bx}function Vx(i,o){var d=zx.current;Ca(zx,o),i._currentValue=d}function Kx(i,o,d){for(var h=i;h!==null;){var g=h.alternate;if(fd(h.childLanes,o)?g!==null&&!fd(g.childLanes,o)&&(g.childLanes=tn(g.childLanes,o)):(h.childLanes=tn(h.childLanes,o),g!==null&&(g.childLanes=tn(g.childLanes,o))),h===d)break;h=h.return}h!==d&&u("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function zte(i,o,d){Bte(i,o,d)}function Bte(i,o,d){var h=i.child;for(h!==null&&(h.return=i);h!==null;){var g=void 0,C=h.dependencies;if(C!==null){g=h.child;for(var b=C.firstContext;b!==null;){if(b.context===o){if(h.tag===m){var k=ki(d),x=Ad(ir,k);x.tag=oT;var M=h.updateQueue;if(M!==null){var $=M.shared,J=$.pending;J===null?x.next=x:(x.next=J.next,J.next=x),$.pending=x}}h.lanes=tn(h.lanes,d);var Q=h.alternate;Q!==null&&(Q.lanes=tn(Q.lanes,d)),Kx(h.return,d,i),C.lanes=tn(C.lanes,d);break}b=b.next}}else if(h.tag===L)g=h.type===i.type?null:h.child;else if(h.tag===at){var ce=h.return;if(ce===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");ce.lanes=tn(ce.lanes,d);var fe=ce.alternate;fe!==null&&(fe.lanes=tn(fe.lanes,d)),Kx(ce,d,i),g=h.sibling}else g=h.child;if(g!==null)g.return=h;else for(g=h;g!==null;){if(g===i){g=null;break}var we=g.sibling;if(we!==null){we.return=g.return,g=we;break}g=g.return}h=g}}function ay(i,o){tT=i,oy=null,qx=null;var d=i.dependencies;if(d!==null){var h=d.firstContext;h!==null&&(_a(d.lanes,o)&&PC(),d.firstContext=null)}}function Bi(i){nT&&u("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var o=i._currentValue;if(qx!==i){var d={context:i,memoizedValue:o,next:null};if(oy===null){if(tT===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");oy=d,tT.dependencies={lanes:Se,firstContext:d}}else oy=oy.next=d}return o}var dv=null;function Gx(i){dv===null?dv=[i]:dv.push(i)}function qte(){if(dv!==null){for(var i=0;i<dv.length;i++){var o=dv[i],d=o.interleaved;if(d!==null){o.interleaved=null;var h=d.next,g=o.pending;if(g!==null){var C=g.next;g.next=h,d.next=C}o.pending=d}}dv=null}}function c$(i,o,d,h){var g=o.interleaved;return g===null?(d.next=d,Gx(o)):(d.next=g.next,g.next=d),o.interleaved=d,iT(i,h)}function Vte(i,o,d,h){var g=o.interleaved;g===null?(d.next=d,Gx(o)):(d.next=g.next,g.next=d),o.interleaved=d}function Kte(i,o,d,h){var g=o.interleaved;return g===null?(d.next=d,Gx(o)):(d.next=g.next,g.next=d),o.interleaved=d,iT(i,h)}function fs(i,o){return iT(i,o)}var Gte=iT;function iT(i,o){i.lanes=tn(i.lanes,o);var d=i.alternate;d!==null&&(d.lanes=tn(d.lanes,o)),d===null&&(i.flags&(hr|ns))!==kt&&d4(i);for(var h=i,g=i.return;g!==null;)g.childLanes=tn(g.childLanes,o),d=g.alternate,d!==null?d.childLanes=tn(d.childLanes,o):(g.flags&(hr|ns))!==kt&&d4(i),h=g,g=g.return;if(h.tag===E){var C=h.stateNode;return C}else return null}var d$=0,f$=1,oT=2,Wx=3,aT=!1,Yx,sT;Yx=!1,sT=null;function Qx(i){var o={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:Se},effects:null};i.updateQueue=o}function h$(i,o){var d=o.updateQueue,h=i.updateQueue;if(d===h){var g={baseState:h.baseState,firstBaseUpdate:h.firstBaseUpdate,lastBaseUpdate:h.lastBaseUpdate,shared:h.shared,effects:h.effects};o.updateQueue=g}}function Ad(i,o){var d={eventTime:i,lane:o,tag:d$,payload:null,callback:null,next:null};return d}function lh(i,o,d){var h=i.updateQueue;if(h===null)return null;var g=h.shared;if(sT===g&&!Yx&&(u("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),Yx=!0),Gre()){var C=g.pending;return C===null?o.next=o:(o.next=C.next,C.next=o),g.pending=o,Gte(i,d)}else return Kte(i,g,o,d)}function lT(i,o,d){var h=o.updateQueue;if(h!==null){var g=h.shared;if(I0(d)){var C=g.lanes;C=N0(C,i.pendingLanes);var b=tn(C,d);g.lanes=b,zf(i,b)}}}function Xx(i,o){var d=i.updateQueue,h=i.alternate;if(h!==null){var g=h.updateQueue;if(d===g){var C=null,b=null,k=d.firstBaseUpdate;if(k!==null){var x=k;do{var M={eventTime:x.eventTime,lane:x.lane,tag:x.tag,payload:x.payload,callback:x.callback,next:null};b===null?C=b=M:(b.next=M,b=M),x=x.next}while(x!==null);b===null?C=b=o:(b.next=o,b=o)}else C=b=o;d={baseState:g.baseState,firstBaseUpdate:C,lastBaseUpdate:b,shared:g.shared,effects:g.effects},i.updateQueue=d;return}}var $=d.lastBaseUpdate;$===null?d.firstBaseUpdate=o:$.next=o,d.lastBaseUpdate=o}function Wte(i,o,d,h,g,C){switch(d.tag){case f$:{var b=d.payload;if(typeof b=="function"){s$();var k=b.call(C,h,g);{if(i.mode&Ir){Ri(!0);try{b.call(C,h,g)}finally{Ri(!1)}}l$()}return k}return b}case Wx:i.flags=i.flags&~Fi|zt;case d$:{var x=d.payload,M;if(typeof x=="function"){s$(),M=x.call(C,h,g);{if(i.mode&Ir){Ri(!0);try{x.call(C,h,g)}finally{Ri(!1)}}l$()}}else M=x;return M==null?h:ln({},h,M)}case oT:return aT=!0,h}return h}function uT(i,o,d,h){var g=i.updateQueue;aT=!1,sT=g.shared;var C=g.firstBaseUpdate,b=g.lastBaseUpdate,k=g.shared.pending;if(k!==null){g.shared.pending=null;var x=k,M=x.next;x.next=null,b===null?C=M:b.next=M,b=x;var $=i.alternate;if($!==null){var J=$.updateQueue,Q=J.lastBaseUpdate;Q!==b&&(Q===null?J.firstBaseUpdate=M:Q.next=M,J.lastBaseUpdate=x)}}if(C!==null){var ce=g.baseState,fe=Se,we=null,st=null,At=null,wt=C;do{var Tn=wt.lane,yn=wt.eventTime;if(fd(h,Tn)){if(At!==null){var be={eventTime:yn,lane:bn,tag:wt.tag,payload:wt.payload,callback:wt.callback,next:null};At=At.next=be}ce=Wte(i,g,wt,ce,o,d);var ae=wt.callback;if(ae!==null&&wt.lane!==bn){i.flags|=nl;var Le=g.effects;Le===null?g.effects=[wt]:Le.push(wt)}}else{var oe={eventTime:yn,lane:Tn,tag:wt.tag,payload:wt.payload,callback:wt.callback,next:null};At===null?(st=At=oe,we=ce):At=At.next=oe,fe=tn(fe,Tn)}if(wt=wt.next,wt===null){if(k=g.shared.pending,k===null)break;var lt=k,tt=lt.next;lt.next=null,wt=tt,g.lastBaseUpdate=lt,g.shared.pending=null}}while(!0);At===null&&(we=ce),g.baseState=we,g.firstBaseUpdate=st,g.lastBaseUpdate=At;var Ht=g.shared.interleaved;if(Ht!==null){var Wt=Ht;do fe=tn(fe,Wt.lane),Wt=Wt.next;while(Wt!==Ht)}else C===null&&(g.shared.lanes=Se);KC(fe),i.lanes=fe,i.memoizedState=ce}sT=null}function Yte(i,o){if(typeof i!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+i));i.call(o)}function p$(){aT=!1}function cT(){return aT}function v$(i,o,d){var h=o.effects;if(o.effects=null,h!==null)for(var g=0;g<h.length;g++){var C=h[g],b=C.callback;b!==null&&(C.callback=null,Yte(b,d))}}var Jx={},m$=new n.Component().refs,Zx,eI,tI,nI,rI,g$,dT,iI,oI,aI;{Zx=new Set,eI=new Set,tI=new Set,nI=new Set,iI=new Set,rI=new Set,oI=new Set,aI=new Set;var y$=new Set;dT=function(i,o){if(!(i===null||typeof i=="function")){var d=o+"_"+i;y$.has(d)||(y$.add(d),u("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",o,i))}},g$=function(i,o){if(o===void 0){var d=kn(i)||"Component";rI.has(d)||(rI.add(d),u("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",d))}},Object.defineProperty(Jx,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(Jx)}function sI(i,o,d,h){var g=i.memoizedState,C=d(h,g);{if(i.mode&Ir){Ri(!0);try{C=d(h,g)}finally{Ri(!1)}}g$(o,C)}var b=C==null?g:ln({},g,C);if(i.memoizedState=b,i.lanes===Se){var k=i.updateQueue;k.baseState=b}}var lI={isMounted:Oa,enqueueSetState:function(i,o,d){var h=es(i),g=Ua(),C=mh(h),b=Ad(g,C);b.payload=o,d!=null&&(dT(d,"setState"),b.callback=d);var k=lh(h,b,C);k!==null&&(co(k,h,C,g),lT(k,h,C)),nc(h,C)},enqueueReplaceState:function(i,o,d){var h=es(i),g=Ua(),C=mh(h),b=Ad(g,C);b.tag=f$,b.payload=o,d!=null&&(dT(d,"replaceState"),b.callback=d);var k=lh(h,b,C);k!==null&&(co(k,h,C,g),lT(k,h,C)),nc(h,C)},enqueueForceUpdate:function(i,o){var d=es(i),h=Ua(),g=mh(d),C=Ad(h,g);C.tag=oT,o!=null&&(dT(o,"forceUpdate"),C.callback=o);var b=lh(d,C,g);b!==null&&(co(b,d,g,h),lT(b,d,g)),R0(d,g)}};function _$(i,o,d,h,g,C,b){var k=i.stateNode;if(typeof k.shouldComponentUpdate=="function"){var x=k.shouldComponentUpdate(h,C,b);{if(i.mode&Ir){Ri(!0);try{x=k.shouldComponentUpdate(h,C,b)}finally{Ri(!1)}}x===void 0&&u("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",kn(o)||"Component")}return x}return o.prototype&&o.prototype.isPureReactComponent?!Tt(d,h)||!Tt(g,C):!0}function Qte(i,o,d){var h=i.stateNode;{var g=kn(o)||"Component",C=h.render;C||(o.prototype&&typeof o.prototype.render=="function"?u("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",g):u("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",g)),h.getInitialState&&!h.getInitialState.isReactClassApproved&&!h.state&&u("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",g),h.getDefaultProps&&!h.getDefaultProps.isReactClassApproved&&u("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",g),h.propTypes&&u("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",g),h.contextType&&u("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",g),h.contextTypes&&u("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",g),o.contextType&&o.contextTypes&&!oI.has(o)&&(oI.add(o),u("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",g)),typeof h.componentShouldUpdate=="function"&&u("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",g),o.prototype&&o.prototype.isPureReactComponent&&typeof h.shouldComponentUpdate<"u"&&u("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",kn(o)||"A pure component"),typeof h.componentDidUnmount=="function"&&u("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",g),typeof h.componentDidReceiveProps=="function"&&u("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",g),typeof h.componentWillRecieveProps=="function"&&u("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",g),typeof h.UNSAFE_componentWillRecieveProps=="function"&&u("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",g);var b=h.props!==d;h.props!==void 0&&b&&u("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",g,g),h.defaultProps&&u("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",g,g),typeof h.getSnapshotBeforeUpdate=="function"&&typeof h.componentDidUpdate!="function"&&!tI.has(o)&&(tI.add(o),u("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",kn(o))),typeof h.getDerivedStateFromProps=="function"&&u("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",g),typeof h.getDerivedStateFromError=="function"&&u("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",g),typeof o.getSnapshotBeforeUpdate=="function"&&u("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",g);var k=h.state;k&&(typeof k!="object"||Cn(k))&&u("%s.state: must be set to an object or null",g),typeof h.getChildContext=="function"&&typeof o.childContextTypes!="object"&&u("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",g)}}function C$(i,o){o.updater=lI,i.stateNode=o,Nf(o,i),o._reactInternalInstance=Jx}function E$(i,o,d){var h=!1,g=Ls,C=Ls,b=o.contextType;if("contextType"in o){var k=b===null||b!==void 0&&b.$$typeof===He&&b._context===void 0;if(!k&&!aI.has(o)){aI.add(o);var x="";b===void 0?x=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof b!="object"?x=" However, it is set to a "+typeof b+".":b.$$typeof===Ce?x=" Did you accidentally pass the Context.Provider instead?":b._context!==void 0?x=" Did you accidentally pass the Context.Consumer instead?":x=" However, it is set to an object with keys {"+Object.keys(b).join(", ")+"}.",u("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",kn(o)||"Component",x)}}if(typeof b=="object"&&b!==null)C=Bi(b);else{g=ey(i,o,!0);var M=o.contextTypes;h=M!=null,C=h?ty(i,g):Ls}var $=new o(d,C);if(i.mode&Ir){Ri(!0);try{$=new o(d,C)}finally{Ri(!1)}}var J=i.memoizedState=$.state!==null&&$.state!==void 0?$.state:null;C$(i,$);{if(typeof o.getDerivedStateFromProps=="function"&&J===null){var Q=kn(o)||"Component";eI.has(Q)||(eI.add(Q),u("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",Q,$.state===null?"null":"undefined",Q))}if(typeof o.getDerivedStateFromProps=="function"||typeof $.getSnapshotBeforeUpdate=="function"){var ce=null,fe=null,we=null;if(typeof $.componentWillMount=="function"&&$.componentWillMount.__suppressDeprecationWarning!==!0?ce="componentWillMount":typeof $.UNSAFE_componentWillMount=="function"&&(ce="UNSAFE_componentWillMount"),typeof $.componentWillReceiveProps=="function"&&$.componentWillReceiveProps.__suppressDeprecationWarning!==!0?fe="componentWillReceiveProps":typeof $.UNSAFE_componentWillReceiveProps=="function"&&(fe="UNSAFE_componentWillReceiveProps"),typeof $.componentWillUpdate=="function"&&$.componentWillUpdate.__suppressDeprecationWarning!==!0?we="componentWillUpdate":typeof $.UNSAFE_componentWillUpdate=="function"&&(we="UNSAFE_componentWillUpdate"),ce!==null||fe!==null||we!==null){var st=kn(o)||"Component",At=typeof o.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";nI.has(st)||(nI.add(st),u(`Unsafe legacy lifecycles will not be called for components using new component APIs.
161
-
162
- %s uses %s but also contains the following legacy lifecycles:%s%s%s
163
-
164
- The above lifecycles should be removed. Learn more about this warning here:
165
- https://reactjs.org/link/unsafe-component-lifecycles`,st,At,ce!==null?`
166
- `+ce:"",fe!==null?`
167
- `+fe:"",we!==null?`
168
- `+we:""))}}}return h&&VF(i,g,C),$}function Xte(i,o){var d=o.state;typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),d!==o.state&&(u("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Vt(i)||"Component"),lI.enqueueReplaceState(o,o.state,null))}function w$(i,o,d,h){var g=o.state;if(typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(d,h),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(d,h),o.state!==g){{var C=Vt(i)||"Component";Zx.has(C)||(Zx.add(C),u("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",C))}lI.enqueueReplaceState(o,o.state,null)}}function uI(i,o,d,h){Qte(i,o,d);var g=i.stateNode;g.props=d,g.state=i.memoizedState,g.refs=m$,Qx(i);var C=o.contextType;if(typeof C=="object"&&C!==null)g.context=Bi(C);else{var b=ey(i,o,!0);g.context=ty(i,b)}{if(g.state===d){var k=kn(o)||"Component";iI.has(k)||(iI.add(k),u("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",k))}i.mode&Ir&&eu.recordLegacyContextWarning(i,g),eu.recordUnsafeLifecycleWarnings(i,g)}g.state=i.memoizedState;var x=o.getDerivedStateFromProps;if(typeof x=="function"&&(sI(i,o,x,d),g.state=i.memoizedState),typeof o.getDerivedStateFromProps!="function"&&typeof g.getSnapshotBeforeUpdate!="function"&&(typeof g.UNSAFE_componentWillMount=="function"||typeof g.componentWillMount=="function")&&(Xte(i,g),uT(i,d,g,h),g.state=i.memoizedState),typeof g.componentDidMount=="function"){var M=en;M|=ha,(i.mode&os)!==Nt&&(M|=pa),i.flags|=M}}function Jte(i,o,d,h){var g=i.stateNode,C=i.memoizedProps;g.props=C;var b=g.context,k=o.contextType,x=Ls;if(typeof k=="object"&&k!==null)x=Bi(k);else{var M=ey(i,o,!0);x=ty(i,M)}var $=o.getDerivedStateFromProps,J=typeof $=="function"||typeof g.getSnapshotBeforeUpdate=="function";!J&&(typeof g.UNSAFE_componentWillReceiveProps=="function"||typeof g.componentWillReceiveProps=="function")&&(C!==d||b!==x)&&w$(i,g,d,x),p$();var Q=i.memoizedState,ce=g.state=Q;if(uT(i,d,g,h),ce=i.memoizedState,C===d&&Q===ce&&!KS()&&!cT()){if(typeof g.componentDidMount=="function"){var fe=en;fe|=ha,(i.mode&os)!==Nt&&(fe|=pa),i.flags|=fe}return!1}typeof $=="function"&&(sI(i,o,$,d),ce=i.memoizedState);var we=cT()||_$(i,o,C,d,Q,ce,x);if(we){if(!J&&(typeof g.UNSAFE_componentWillMount=="function"||typeof g.componentWillMount=="function")&&(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"){var st=en;st|=ha,(i.mode&os)!==Nt&&(st|=pa),i.flags|=st}}else{if(typeof g.componentDidMount=="function"){var At=en;At|=ha,(i.mode&os)!==Nt&&(At|=pa),i.flags|=At}i.memoizedProps=d,i.memoizedState=ce}return g.props=d,g.state=ce,g.context=x,we}function Zte(i,o,d,h,g){var C=o.stateNode;h$(i,o);var b=o.memoizedProps,k=o.type===o.elementType?b:tu(o.type,b);C.props=k;var x=o.pendingProps,M=C.context,$=d.contextType,J=Ls;if(typeof $=="object"&&$!==null)J=Bi($);else{var Q=ey(o,d,!0);J=ty(o,Q)}var ce=d.getDerivedStateFromProps,fe=typeof ce=="function"||typeof C.getSnapshotBeforeUpdate=="function";!fe&&(typeof C.UNSAFE_componentWillReceiveProps=="function"||typeof C.componentWillReceiveProps=="function")&&(b!==x||M!==J)&&w$(o,C,h,J),p$();var we=o.memoizedState,st=C.state=we;if(uT(o,h,C,g),st=o.memoizedState,b===x&&we===st&&!KS()&&!cT()&&!ge)return typeof C.componentDidUpdate=="function"&&(b!==i.memoizedProps||we!==i.memoizedState)&&(o.flags|=en),typeof C.getSnapshotBeforeUpdate=="function"&&(b!==i.memoizedProps||we!==i.memoizedState)&&(o.flags|=ts),!1;typeof ce=="function"&&(sI(o,d,ce,h),st=o.memoizedState);var At=cT()||_$(o,d,k,h,we,st,J)||ge;return At?(!fe&&(typeof C.UNSAFE_componentWillUpdate=="function"||typeof C.componentWillUpdate=="function")&&(typeof C.componentWillUpdate=="function"&&C.componentWillUpdate(h,st,J),typeof C.UNSAFE_componentWillUpdate=="function"&&C.UNSAFE_componentWillUpdate(h,st,J)),typeof C.componentDidUpdate=="function"&&(o.flags|=en),typeof C.getSnapshotBeforeUpdate=="function"&&(o.flags|=ts)):(typeof C.componentDidUpdate=="function"&&(b!==i.memoizedProps||we!==i.memoizedState)&&(o.flags|=en),typeof C.getSnapshotBeforeUpdate=="function"&&(b!==i.memoizedProps||we!==i.memoizedState)&&(o.flags|=ts),o.memoizedProps=h,o.memoizedState=st),C.props=h,C.state=st,C.context=J,At}var cI,dI,fI,hI,pI,b$=function(i,o){};cI=!1,dI=!1,fI={},hI={},pI={},b$=function(i,o){if(!(i===null||typeof i!="object")&&!(!i._store||i._store.validated||i.key!=null)){if(typeof i._store!="object")throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");i._store.validated=!0;var d=Vt(o)||"Component";hI[d]||(hI[d]=!0,u('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function EC(i,o,d){var h=d.ref;if(h!==null&&typeof h!="function"&&typeof h!="object"){if((i.mode&Ir||Ue)&&!(d._owner&&d._self&&d._owner.stateNode!==d._self)){var g=Vt(i)||"Component";fI[g]||(u('A string ref, "%s", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',h),fI[g]=!0)}if(d._owner){var C=d._owner,b;if(C){var k=C;if(k.tag!==m)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");b=k.stateNode}if(!b)throw new Error("Missing owner for string ref "+h+". This error is likely caused by a bug in React. Please file an issue.");var x=b;er(h,"ref");var M=""+h;if(o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===M)return o.ref;var $=function(J){var Q=x.refs;Q===m$&&(Q=x.refs={}),J===null?delete Q[M]:Q[M]=J};return $._stringRef=M,$}else{if(typeof h!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!d._owner)throw new Error("Element ref was specified as a string ("+h+`) but no owner was set. This could happen for one of the following reasons:
169
- 1. You may be adding a ref to a function component
170
- 2. You may be adding a ref to a component that was not created inside a component's render method
171
- 3. You have multiple copies of React loaded
172
- See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return h}function fT(i,o){var d=Object.prototype.toString.call(o);throw new Error("Objects are not valid as a React child (found: "+(d==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":d)+"). If you meant to render a collection of children, use an array instead.")}function hT(i){{var o=Vt(i)||"Component";if(pI[o])return;pI[o]=!0,u("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function S$(i){var o=i._payload,d=i._init;return d(o)}function T$(i){function o(oe,be){if(i){var ae=oe.deletions;ae===null?(oe.deletions=[be],oe.flags|=Ln):ae.push(be)}}function d(oe,be){if(!i)return null;for(var ae=be;ae!==null;)o(oe,ae),ae=ae.sibling;return null}function h(oe,be){for(var ae=new Map,Le=be;Le!==null;)Le.key!==null?ae.set(Le.key,Le):ae.set(Le.index,Le),Le=Le.sibling;return ae}function g(oe,be){var ae=_v(oe,be);return ae.index=0,ae.sibling=null,ae}function C(oe,be,ae){if(oe.index=ae,!i)return oe.flags|=p0,be;var Le=oe.alternate;if(Le!==null){var lt=Le.index;return lt<be?(oe.flags|=hr,be):lt}else return oe.flags|=hr,be}function b(oe){return i&&oe.alternate===null&&(oe.flags|=hr),oe}function k(oe,be,ae,Le){if(be===null||be.tag!==A){var lt=jO(ae,oe.mode,Le);return lt.return=oe,lt}else{var tt=g(be,ae);return tt.return=oe,tt}}function x(oe,be,ae,Le){var lt=ae.type;if(lt===Ji)return $(oe,be,ae.props.children,Le,ae.key);if(be!==null&&(be.elementType===lt||v4(be,ae)||typeof lt=="object"&&lt!==null&&lt.$$typeof===St&&S$(lt)===be.type)){var tt=g(be,ae.props);return tt.ref=EC(oe,be,ae),tt.return=oe,tt._debugSource=ae._source,tt._debugOwner=ae._owner,tt}var Ht=HO(ae,oe.mode,Le);return Ht.ref=EC(oe,be,ae),Ht.return=oe,Ht}function M(oe,be,ae,Le){if(be===null||be.tag!==S||be.stateNode.containerInfo!==ae.containerInfo||be.stateNode.implementation!==ae.implementation){var lt=zO(ae,oe.mode,Le);return lt.return=oe,lt}else{var tt=g(be,ae.children||[]);return tt.return=oe,tt}}function $(oe,be,ae,Le,lt){if(be===null||be.tag!==I){var tt=yh(ae,oe.mode,Le,lt);return tt.return=oe,tt}else{var Ht=g(be,ae);return Ht.return=oe,Ht}}function J(oe,be,ae){if(typeof be=="string"&&be!==""||typeof be=="number"){var Le=jO(""+be,oe.mode,ae);return Le.return=oe,Le}if(typeof be=="object"&&be!==null){switch(be.$$typeof){case ui:{var lt=HO(be,oe.mode,ae);return lt.ref=EC(oe,null,be),lt.return=oe,lt}case ci:{var tt=zO(be,oe.mode,ae);return tt.return=oe,tt}case St:{var Ht=be._payload,Wt=be._init;return J(oe,Wt(Ht),ae)}}if(Cn(be)||ks(be)){var Zn=yh(be,oe.mode,ae,null);return Zn.return=oe,Zn}fT(oe,be)}return typeof be=="function"&&hT(oe),null}function Q(oe,be,ae,Le){var lt=be!==null?be.key:null;if(typeof ae=="string"&&ae!==""||typeof ae=="number")return lt!==null?null:k(oe,be,""+ae,Le);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case ui:return ae.key===lt?x(oe,be,ae,Le):null;case ci:return ae.key===lt?M(oe,be,ae,Le):null;case St:{var tt=ae._payload,Ht=ae._init;return Q(oe,be,Ht(tt),Le)}}if(Cn(ae)||ks(ae))return lt!==null?null:$(oe,be,ae,Le,null);fT(oe,ae)}return typeof ae=="function"&&hT(oe),null}function ce(oe,be,ae,Le,lt){if(typeof Le=="string"&&Le!==""||typeof Le=="number"){var tt=oe.get(ae)||null;return k(be,tt,""+Le,lt)}if(typeof Le=="object"&&Le!==null){switch(Le.$$typeof){case ui:{var Ht=oe.get(Le.key===null?ae:Le.key)||null;return x(be,Ht,Le,lt)}case ci:{var Wt=oe.get(Le.key===null?ae:Le.key)||null;return M(be,Wt,Le,lt)}case St:var Zn=Le._payload,Mn=Le._init;return ce(oe,be,ae,Mn(Zn),lt)}if(Cn(Le)||ks(Le)){var Oi=oe.get(ae)||null;return $(be,Oi,Le,lt,null)}fT(be,Le)}return typeof Le=="function"&&hT(be),null}function fe(oe,be,ae){{if(typeof oe!="object"||oe===null)return be;switch(oe.$$typeof){case ui:case ci:b$(oe,ae);var Le=oe.key;if(typeof Le!="string")break;if(be===null){be=new Set,be.add(Le);break}if(!be.has(Le)){be.add(Le);break}u("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",Le);break;case St:var lt=oe._payload,tt=oe._init;fe(tt(lt),be,ae);break}}return be}function we(oe,be,ae,Le){for(var lt=null,tt=0;tt<ae.length;tt++){var Ht=ae[tt];lt=fe(Ht,lt,oe)}for(var Wt=null,Zn=null,Mn=be,Oi=0,Pn=0,pi=null;Mn!==null&&Pn<ae.length;Pn++){Mn.index>Pn?(pi=Mn,Mn=null):pi=Mn.sibling;var ba=Q(oe,Mn,ae[Pn],Le);if(ba===null){Mn===null&&(Mn=pi);break}i&&Mn&&ba.alternate===null&&o(oe,Mn),Oi=C(ba,Oi,Pn),Zn===null?Wt=ba:Zn.sibling=ba,Zn=ba,Mn=pi}if(Pn===ae.length){if(d(oe,Mn),Vo()){var Jo=Pn;av(oe,Jo)}return Wt}if(Mn===null){for(;Pn<ae.length;Pn++){var Fs=J(oe,ae[Pn],Le);Fs!==null&&(Oi=C(Fs,Oi,Pn),Zn===null?Wt=Fs:Zn.sibling=Fs,Zn=Fs)}if(Vo()){var Fa=Pn;av(oe,Fa)}return Wt}for(var $a=h(oe,Mn);Pn<ae.length;Pn++){var Sa=ce($a,oe,Pn,ae[Pn],Le);Sa!==null&&(i&&Sa.alternate!==null&&$a.delete(Sa.key===null?Pn:Sa.key),Oi=C(Sa,Oi,Pn),Zn===null?Wt=Sa:Zn.sibling=Sa,Zn=Sa)}if(i&&$a.forEach(function(by){return o(oe,by)}),Vo()){var Pd=Pn;av(oe,Pd)}return Wt}function st(oe,be,ae,Le){var lt=ks(ae);if(typeof lt!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&ae[Symbol.toStringTag]==="Generator"&&(dI||u("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),dI=!0),ae.entries===lt&&(cI||u("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),cI=!0);var tt=lt.call(ae);if(tt)for(var Ht=null,Wt=tt.next();!Wt.done;Wt=tt.next()){var Zn=Wt.value;Ht=fe(Zn,Ht,oe)}}var Mn=lt.call(ae);if(Mn==null)throw new Error("An iterable object provided no iterator.");for(var Oi=null,Pn=null,pi=be,ba=0,Jo=0,Fs=null,Fa=Mn.next();pi!==null&&!Fa.done;Jo++,Fa=Mn.next()){pi.index>Jo?(Fs=pi,pi=null):Fs=pi.sibling;var $a=Q(oe,pi,Fa.value,Le);if($a===null){pi===null&&(pi=Fs);break}i&&pi&&$a.alternate===null&&o(oe,pi),ba=C($a,ba,Jo),Pn===null?Oi=$a:Pn.sibling=$a,Pn=$a,pi=Fs}if(Fa.done){if(d(oe,pi),Vo()){var Sa=Jo;av(oe,Sa)}return Oi}if(pi===null){for(;!Fa.done;Jo++,Fa=Mn.next()){var Pd=J(oe,Fa.value,Le);Pd!==null&&(ba=C(Pd,ba,Jo),Pn===null?Oi=Pd:Pn.sibling=Pd,Pn=Pd)}if(Vo()){var by=Jo;av(oe,by)}return Oi}for(var XC=h(oe,pi);!Fa.done;Jo++,Fa=Mn.next()){var Cc=ce(XC,oe,Jo,Fa.value,Le);Cc!==null&&(i&&Cc.alternate!==null&&XC.delete(Cc.key===null?Jo:Cc.key),ba=C(Cc,ba,Jo),Pn===null?Oi=Cc:Pn.sibling=Cc,Pn=Cc)}if(i&&XC.forEach(function(hoe){return o(oe,hoe)}),Vo()){var foe=Jo;av(oe,foe)}return Oi}function At(oe,be,ae,Le){if(be!==null&&be.tag===A){d(oe,be.sibling);var lt=g(be,ae);return lt.return=oe,lt}d(oe,be);var tt=jO(ae,oe.mode,Le);return tt.return=oe,tt}function wt(oe,be,ae,Le){for(var lt=ae.key,tt=be;tt!==null;){if(tt.key===lt){var Ht=ae.type;if(Ht===Ji){if(tt.tag===I){d(oe,tt.sibling);var Wt=g(tt,ae.props.children);return Wt.return=oe,Wt._debugSource=ae._source,Wt._debugOwner=ae._owner,Wt}}else if(tt.elementType===Ht||v4(tt,ae)||typeof Ht=="object"&&Ht!==null&&Ht.$$typeof===St&&S$(Ht)===tt.type){d(oe,tt.sibling);var Zn=g(tt,ae.props);return Zn.ref=EC(oe,tt,ae),Zn.return=oe,Zn._debugSource=ae._source,Zn._debugOwner=ae._owner,Zn}d(oe,tt);break}else o(oe,tt);tt=tt.sibling}if(ae.type===Ji){var Mn=yh(ae.props.children,oe.mode,Le,ae.key);return Mn.return=oe,Mn}else{var Oi=HO(ae,oe.mode,Le);return Oi.ref=EC(oe,be,ae),Oi.return=oe,Oi}}function Tn(oe,be,ae,Le){for(var lt=ae.key,tt=be;tt!==null;){if(tt.key===lt)if(tt.tag===S&&tt.stateNode.containerInfo===ae.containerInfo&&tt.stateNode.implementation===ae.implementation){d(oe,tt.sibling);var Ht=g(tt,ae.children||[]);return Ht.return=oe,Ht}else{d(oe,tt);break}else o(oe,tt);tt=tt.sibling}var Wt=zO(ae,oe.mode,Le);return Wt.return=oe,Wt}function yn(oe,be,ae,Le){var lt=typeof ae=="object"&&ae!==null&&ae.type===Ji&&ae.key===null;if(lt&&(ae=ae.props.children),typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case ui:return b(wt(oe,be,ae,Le));case ci:return b(Tn(oe,be,ae,Le));case St:var tt=ae._payload,Ht=ae._init;return yn(oe,be,Ht(tt),Le)}if(Cn(ae))return we(oe,be,ae,Le);if(ks(ae))return st(oe,be,ae,Le);fT(oe,ae)}return typeof ae=="string"&&ae!==""||typeof ae=="number"?b(At(oe,be,""+ae,Le)):(typeof ae=="function"&&hT(oe),d(oe,be))}return yn}var sy=T$(!0),R$=T$(!1);function ene(i,o){if(i!==null&&o.child!==i.child)throw new Error("Resuming work not yet implemented.");if(o.child!==null){var d=o.child,h=_v(d,d.pendingProps);for(o.child=h,h.return=o;d.sibling!==null;)d=d.sibling,h=h.sibling=_v(d,d.pendingProps),h.return=o;h.sibling=null}}function tne(i,o){for(var d=i.child;d!==null;)Iie(d,o),d=d.sibling}var wC={},uh=ih(wC),bC=ih(wC),pT=ih(wC);function vT(i){if(i===wC)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return i}function k$(){var i=vT(pT.current);return i}function vI(i,o){Ea(pT,o,i),Ea(bC,i,i),Ea(uh,wC,i);var d=vee(o);Ca(uh,i),Ea(uh,d,i)}function ly(i){Ca(uh,i),Ca(bC,i),Ca(pT,i)}function mI(){var i=vT(uh.current);return i}function A$(i){vT(pT.current);var o=vT(uh.current),d=mee(o,i.type);o!==d&&(Ea(bC,i,i),Ea(uh,d,i))}function gI(i){bC.current===i&&(Ca(uh,i),Ca(bC,i))}var nne=0,x$=1,I$=1,SC=2,nu=ih(nne);function yI(i,o){return(i&o)!==0}function uy(i){return i&x$}function _I(i,o){return i&x$|o}function rne(i,o){return i|o}function ch(i,o){Ea(nu,o,i)}function cy(i){Ca(nu,i)}function ine(i,o){var d=i.memoizedState;return d!==null?d.dehydrated!==null:(i.memoizedProps,!0)}function mT(i){for(var o=i;o!==null;){if(o.tag===V){var d=o.memoizedState;if(d!==null){var h=d.dehydrated;if(h===null||HF(h)||Tx(h))return o}}else if(o.tag===Pe&&o.memoizedProps.revealOrder!==void 0){var g=(o.flags&zt)!==kt;if(g)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)return null;for(;o.sibling===null;){if(o.return===null||o.return===i)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var hs=0,ro=1,hc=2,io=4,Ko=8,CI=[];function EI(){for(var i=0;i<CI.length;i++){var o=CI[i];o._workInProgressVersionPrimary=null}CI.length=0}function one(i,o){var d=o._getVersion,h=d(o._source);i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[o,h]:i.mutableSourceEagerHydrationData.push(o,h)}var ot=t.ReactCurrentDispatcher,TC=t.ReactCurrentBatchConfig,wI,dy;wI=new Set;var fv=Se,Jn=null,oo=null,ao=null,gT=!1,RC=!1,kC=0,ane=0,sne=25,ke=null,dl=null,dh=-1,bI=!1;function jn(){{var i=ke;dl===null?dl=[i]:dl.push(i)}}function Je(){{var i=ke;dl!==null&&(dh++,dl[dh]!==i&&lne(i))}}function fy(i){i!=null&&!Cn(i)&&u("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",ke,typeof i)}function lne(i){{var o=Vt(Jn);if(!wI.has(o)&&(wI.add(o),dl!==null)){for(var d="",h=30,g=0;g<=dh;g++){for(var C=dl[g],b=g===dh?i:C,k=g+1+". "+C;k.length<h;)k+=" ";k+=b+`
173
- `,d+=k}u(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
174
-
175
- Previous render Next render
176
- ------------------------------------------------------
177
- %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
178
- `,o,d)}}}function wa(){throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
179
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
180
- 2. You might be breaking the Rules of Hooks
181
- 3. You might have more than one copy of React in the same app
182
- See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function SI(i,o){if(bI)return!1;if(o===null)return u("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",ke),!1;i.length!==o.length&&u(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
183
-
184
- Previous: %s
185
- Incoming: %s`,ke,"["+o.join(", ")+"]","["+i.join(", ")+"]");for(var d=0;d<o.length&&d<i.length;d++)if(!ft(i[d],o[d]))return!1;return!0}function hy(i,o,d,h,g,C){fv=C,Jn=o,dl=i!==null?i._debugHookTypes:null,dh=-1,bI=i!==null&&i.type!==o.type,o.memoizedState=null,o.updateQueue=null,o.lanes=Se,i!==null&&i.memoizedState!==null?ot.current=J$:dl!==null?ot.current=X$:ot.current=Q$;var b=d(h,g);if(RC){var k=0;do{if(RC=!1,kC=0,k>=sne)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");k+=1,bI=!1,oo=null,ao=null,o.updateQueue=null,dh=-1,ot.current=Z$,b=d(h,g)}while(RC)}ot.current=IT,o._debugHookTypes=dl;var x=oo!==null&&oo.next!==null;if(fv=Se,Jn=null,oo=null,ao=null,ke=null,dl=null,dh=-1,i!==null&&(i.flags&eo)!==(o.flags&eo)&&(i.mode&cn)!==Nt&&u("Internal React error: Expected static flag was missing. Please notify the React team."),gT=!1,x)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return b}function py(){var i=kC!==0;return kC=0,i}function O$(i,o,d){o.updateQueue=i.updateQueue,(o.mode&os)!==Nt?o.flags&=~(nd|pa|br|en):o.flags&=~(br|en),i.lanes=jf(i.lanes,d)}function N$(){if(ot.current=IT,gT){for(var i=Jn.memoizedState;i!==null;){var o=i.queue;o!==null&&(o.pending=null),i=i.next}gT=!1}fv=Se,Jn=null,oo=null,ao=null,dl=null,dh=-1,ke=null,V$=!1,RC=!1,kC=0}function pc(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ao===null?Jn.memoizedState=ao=i:ao=ao.next=i,ao}function fl(){var i;if(oo===null){var o=Jn.alternate;o!==null?i=o.memoizedState:i=null}else i=oo.next;var d;if(ao===null?d=Jn.memoizedState:d=ao.next,d!==null)ao=d,d=ao.next,oo=i;else{if(i===null)throw new Error("Rendered more hooks than during the previous render.");oo=i;var h={memoizedState:oo.memoizedState,baseState:oo.baseState,baseQueue:oo.baseQueue,queue:oo.queue,next:null};ao===null?Jn.memoizedState=ao=h:ao=ao.next=h}return ao}function M$(){return{lastEffect:null,stores:null}}function TI(i,o){return typeof o=="function"?o(i):o}function RI(i,o,d){var h=pc(),g;d!==void 0?g=d(o):g=o,h.memoizedState=h.baseState=g;var C={pending:null,interleaved:null,lanes:Se,dispatch:null,lastRenderedReducer:i,lastRenderedState:g};h.queue=C;var b=C.dispatch=fne.bind(null,Jn,C);return[h.memoizedState,b]}function kI(i,o,d){var h=fl(),g=h.queue;if(g===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");g.lastRenderedReducer=i;var C=oo,b=C.baseQueue,k=g.pending;if(k!==null){if(b!==null){var x=b.next,M=k.next;b.next=M,k.next=x}C.baseQueue!==b&&u("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),C.baseQueue=b=k,g.pending=null}if(b!==null){var $=b.next,J=C.baseState,Q=null,ce=null,fe=null,we=$;do{var st=we.lane;if(fd(fv,st)){if(fe!==null){var wt={lane:bn,action:we.action,hasEagerState:we.hasEagerState,eagerState:we.eagerState,next:null};fe=fe.next=wt}if(we.hasEagerState)J=we.eagerState;else{var Tn=we.action;J=i(J,Tn)}}else{var At={lane:st,action:we.action,hasEagerState:we.hasEagerState,eagerState:we.eagerState,next:null};fe===null?(ce=fe=At,Q=J):fe=fe.next=At,Jn.lanes=tn(Jn.lanes,st),KC(st)}we=we.next}while(we!==null&&we!==$);fe===null?Q=J:fe.next=ce,ft(J,h.memoizedState)||PC(),h.memoizedState=J,h.baseState=Q,h.baseQueue=fe,g.lastRenderedState=J}var yn=g.interleaved;if(yn!==null){var oe=yn;do{var be=oe.lane;Jn.lanes=tn(Jn.lanes,be),KC(be),oe=oe.next}while(oe!==yn)}else b===null&&(g.lanes=Se);var ae=g.dispatch;return[h.memoizedState,ae]}function AI(i,o,d){var h=fl(),g=h.queue;if(g===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");g.lastRenderedReducer=i;var C=g.dispatch,b=g.pending,k=h.memoizedState;if(b!==null){g.pending=null;var x=b.next,M=x;do{var $=M.action;k=i(k,$),M=M.next}while(M!==x);ft(k,h.memoizedState)||PC(),h.memoizedState=k,h.baseQueue===null&&(h.baseState=k),g.lastRenderedState=k}return[k,C]}function Pae(i,o,d){}function Dae(i,o,d){}function xI(i,o,d){var h=Jn,g=pc(),C,b=Vo();if(b){if(d===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");C=d(),dy||C!==d()&&(u("The result of getServerSnapshot should be cached to avoid an infinite loop"),dy=!0)}else{if(C=o(),!dy){var k=o();ft(C,k)||(u("The result of getSnapshot should be cached to avoid an infinite loop"),dy=!0)}var x=WT();if(x===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Bp(x,fv)||P$(h,o,C)}g.memoizedState=C;var M={value:C,getSnapshot:o};return g.queue=M,wT(L$.bind(null,h,M,i),[i]),h.flags|=br,AC(ro|Ko,D$.bind(null,h,M,C,o),void 0,null),C}function yT(i,o,d){var h=Jn,g=fl(),C=o();if(!dy){var b=o();ft(C,b)||(u("The result of getSnapshot should be cached to avoid an infinite loop"),dy=!0)}var k=g.memoizedState,x=!ft(k,C);x&&(g.memoizedState=C,PC());var M=g.queue;if(IC(L$.bind(null,h,M,i),[i]),M.getSnapshot!==o||x||ao!==null&&ao.memoizedState.tag&ro){h.flags|=br,AC(ro|Ko,D$.bind(null,h,M,C,o),void 0,null);var $=WT();if($===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Bp($,fv)||P$(h,o,C)}return C}function P$(i,o,d){i.flags|=Pp;var h={getSnapshot:o,value:d},g=Jn.updateQueue;if(g===null)g=M$(),Jn.updateQueue=g,g.stores=[h];else{var C=g.stores;C===null?g.stores=[h]:C.push(h)}}function D$(i,o,d,h){o.value=d,o.getSnapshot=h,U$(o)&&F$(i)}function L$(i,o,d){var h=function(){U$(o)&&F$(i)};return d(h)}function U$(i){var o=i.getSnapshot,d=i.value;try{var h=o();return!ft(d,h)}catch{return!0}}function F$(i){var o=fs(i,Lt);o!==null&&co(o,i,Lt,ir)}function _T(i){var o=pc();typeof i=="function"&&(i=i()),o.memoizedState=o.baseState=i;var d={pending:null,interleaved:null,lanes:Se,dispatch:null,lastRenderedReducer:TI,lastRenderedState:i};o.queue=d;var h=d.dispatch=hne.bind(null,Jn,d);return[o.memoizedState,h]}function II(i){return kI(TI)}function OI(i){return AI(TI)}function AC(i,o,d,h){var g={tag:i,create:o,destroy:d,deps:h,next:null},C=Jn.updateQueue;if(C===null)C=M$(),Jn.updateQueue=C,C.lastEffect=g.next=g;else{var b=C.lastEffect;if(b===null)C.lastEffect=g.next=g;else{var k=b.next;b.next=g,g.next=k,C.lastEffect=g}}return g}function NI(i){var o=pc();{var d={current:i};return o.memoizedState=d,d}}function CT(i){var o=fl();return o.memoizedState}function xC(i,o,d,h){var g=pc(),C=h===void 0?null:h;Jn.flags|=i,g.memoizedState=AC(ro|o,d,void 0,C)}function ET(i,o,d,h){var g=fl(),C=h===void 0?null:h,b=void 0;if(oo!==null){var k=oo.memoizedState;if(b=k.destroy,C!==null){var x=k.deps;if(SI(C,x)){g.memoizedState=AC(o,d,b,C);return}}}Jn.flags|=i,g.memoizedState=AC(ro|o,d,b,C)}function wT(i,o){return(Jn.mode&os)!==Nt?xC(nd|br|Qu,Ko,i,o):xC(br|Qu,Ko,i,o)}function IC(i,o){return ET(br,Ko,i,o)}function MI(i,o){return xC(en,hc,i,o)}function bT(i,o){return ET(en,hc,i,o)}function PI(i,o){var d=en;return d|=ha,(Jn.mode&os)!==Nt&&(d|=pa),xC(d,io,i,o)}function ST(i,o){return ET(en,io,i,o)}function $$(i,o){if(typeof o=="function"){var d=o,h=i();return d(h),function(){d(null)}}else if(o!=null){var g=o;g.hasOwnProperty("current")||u("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(g).join(", ")+"}");var C=i();return g.current=C,function(){g.current=null}}}function DI(i,o,d){typeof o!="function"&&u("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",o!==null?typeof o:"null");var h=d!=null?d.concat([i]):null,g=en;return g|=ha,(Jn.mode&os)!==Nt&&(g|=pa),xC(g,io,$$.bind(null,o,i),h)}function TT(i,o,d){typeof o!="function"&&u("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",o!==null?typeof o:"null");var h=d!=null?d.concat([i]):null;return ET(en,io,$$.bind(null,o,i),h)}function une(i,o){}var RT=une;function LI(i,o){var d=pc(),h=o===void 0?null:o;return d.memoizedState=[i,h],i}function kT(i,o){var d=fl(),h=o===void 0?null:o,g=d.memoizedState;if(g!==null&&h!==null){var C=g[1];if(SI(h,C))return g[0]}return d.memoizedState=[i,h],i}function UI(i,o){var d=pc(),h=o===void 0?null:o,g=i();return d.memoizedState=[g,h],g}function AT(i,o){var d=fl(),h=o===void 0?null:o,g=d.memoizedState;if(g!==null&&h!==null){var C=g[1];if(SI(h,C))return g[0]}var b=i();return d.memoizedState=[b,h],b}function FI(i){var o=pc();return o.memoizedState=i,i}function H$(i){var o=fl(),d=oo,h=d.memoizedState;return z$(o,h,i)}function j$(i){var o=fl();if(oo===null)return o.memoizedState=i,i;var d=oo.memoizedState;return z$(o,d,i)}function z$(i,o,d){var h=!qA(fv);if(h){if(!ft(d,o)){var g=O0();Jn.lanes=tn(Jn.lanes,g),KC(g),i.baseState=!0}return o}else return i.baseState&&(i.baseState=!1,PC()),i.memoizedState=d,d}function cne(i,o,d){var h=ss();Ai(Ro(h,no)),i(!0);var g=TC.transition;TC.transition={};var C=TC.transition;TC.transition._updatedFibers=new Set;try{i(!1),o()}finally{if(Ai(h),TC.transition=g,g===null&&C._updatedFibers){var b=C._updatedFibers.size;b>10&&l("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),C._updatedFibers.clear()}}}function $I(){var i=_T(!1),o=i[0],d=i[1],h=cne.bind(null,d),g=pc();return g.memoizedState=h,[o,h]}function B$(){var i=II(),o=i[0],d=fl(),h=d.memoizedState;return[o,h]}function q$(){var i=OI(),o=i[0],d=fl(),h=d.memoizedState;return[o,h]}var V$=!1;function dne(){return V$}function HI(){var i=pc(),o=WT(),d=o.identifierPrefix,h;if(Vo()){var g=Tte();h=":"+d+"R"+g;var C=kC++;C>0&&(h+="H"+C.toString(32)),h+=":"}else{var b=ane++;h=":"+d+"r"+b.toString(32)+":"}return i.memoizedState=h,h}function xT(){var i=fl(),o=i.memoizedState;return o}function fne(i,o,d){typeof arguments[3]=="function"&&u("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var h=mh(i),g={lane:h,action:d,hasEagerState:!1,eagerState:null,next:null};if(K$(i))G$(o,g);else{var C=c$(i,o,g,h);if(C!==null){var b=Ua();co(C,i,h,b),W$(C,o,h)}}Y$(i,h)}function hne(i,o,d){typeof arguments[3]=="function"&&u("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var h=mh(i),g={lane:h,action:d,hasEagerState:!1,eagerState:null,next:null};if(K$(i))G$(o,g);else{var C=i.alternate;if(i.lanes===Se&&(C===null||C.lanes===Se)){var b=o.lastRenderedReducer;if(b!==null){var k;k=ot.current,ot.current=ru;try{var x=o.lastRenderedState,M=b(x,d);if(g.hasEagerState=!0,g.eagerState=M,ft(M,x)){Vte(i,o,g,h);return}}catch{}finally{ot.current=k}}}var $=c$(i,o,g,h);if($!==null){var J=Ua();co($,i,h,J),W$($,o,h)}}Y$(i,h)}function K$(i){var o=i.alternate;return i===Jn||o!==null&&o===Jn}function G$(i,o){RC=gT=!0;var d=i.pending;d===null?o.next=o:(o.next=d.next,d.next=o),i.pending=o}function W$(i,o,d){if(I0(d)){var h=o.lanes;h=N0(h,i.pendingLanes);var g=tn(h,d);o.lanes=g,zf(i,g)}}function Y$(i,o,d){nc(i,o)}var IT={readContext:Bi,useCallback:wa,useContext:wa,useEffect:wa,useImperativeHandle:wa,useInsertionEffect:wa,useLayoutEffect:wa,useMemo:wa,useReducer:wa,useRef:wa,useState:wa,useDebugValue:wa,useDeferredValue:wa,useTransition:wa,useMutableSource:wa,useSyncExternalStore:wa,useId:wa,unstable_isNewReconciler:G},Q$=null,X$=null,J$=null,Z$=null,vc=null,ru=null,OT=null;{var jI=function(){u("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},Kt=function(){u("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};Q$={readContext:function(i){return Bi(i)},useCallback:function(i,o){return ke="useCallback",jn(),fy(o),LI(i,o)},useContext:function(i){return ke="useContext",jn(),Bi(i)},useEffect:function(i,o){return ke="useEffect",jn(),fy(o),wT(i,o)},useImperativeHandle:function(i,o,d){return ke="useImperativeHandle",jn(),fy(d),DI(i,o,d)},useInsertionEffect:function(i,o){return ke="useInsertionEffect",jn(),fy(o),MI(i,o)},useLayoutEffect:function(i,o){return ke="useLayoutEffect",jn(),fy(o),PI(i,o)},useMemo:function(i,o){ke="useMemo",jn(),fy(o);var d=ot.current;ot.current=vc;try{return UI(i,o)}finally{ot.current=d}},useReducer:function(i,o,d){ke="useReducer",jn();var h=ot.current;ot.current=vc;try{return RI(i,o,d)}finally{ot.current=h}},useRef:function(i){return ke="useRef",jn(),NI(i)},useState:function(i){ke="useState",jn();var o=ot.current;ot.current=vc;try{return _T(i)}finally{ot.current=o}},useDebugValue:function(i,o){return ke="useDebugValue",jn(),void 0},useDeferredValue:function(i){return ke="useDeferredValue",jn(),FI(i)},useTransition:function(){return ke="useTransition",jn(),$I()},useMutableSource:function(i,o,d){return ke="useMutableSource",jn(),void 0},useSyncExternalStore:function(i,o,d){return ke="useSyncExternalStore",jn(),xI(i,o,d)},useId:function(){return ke="useId",jn(),HI()},unstable_isNewReconciler:G},X$={readContext:function(i){return Bi(i)},useCallback:function(i,o){return ke="useCallback",Je(),LI(i,o)},useContext:function(i){return ke="useContext",Je(),Bi(i)},useEffect:function(i,o){return ke="useEffect",Je(),wT(i,o)},useImperativeHandle:function(i,o,d){return ke="useImperativeHandle",Je(),DI(i,o,d)},useInsertionEffect:function(i,o){return ke="useInsertionEffect",Je(),MI(i,o)},useLayoutEffect:function(i,o){return ke="useLayoutEffect",Je(),PI(i,o)},useMemo:function(i,o){ke="useMemo",Je();var d=ot.current;ot.current=vc;try{return UI(i,o)}finally{ot.current=d}},useReducer:function(i,o,d){ke="useReducer",Je();var h=ot.current;ot.current=vc;try{return RI(i,o,d)}finally{ot.current=h}},useRef:function(i){return ke="useRef",Je(),NI(i)},useState:function(i){ke="useState",Je();var o=ot.current;ot.current=vc;try{return _T(i)}finally{ot.current=o}},useDebugValue:function(i,o){return ke="useDebugValue",Je(),void 0},useDeferredValue:function(i){return ke="useDeferredValue",Je(),FI(i)},useTransition:function(){return ke="useTransition",Je(),$I()},useMutableSource:function(i,o,d){return ke="useMutableSource",Je(),void 0},useSyncExternalStore:function(i,o,d){return ke="useSyncExternalStore",Je(),xI(i,o,d)},useId:function(){return ke="useId",Je(),HI()},unstable_isNewReconciler:G},J$={readContext:function(i){return Bi(i)},useCallback:function(i,o){return ke="useCallback",Je(),kT(i,o)},useContext:function(i){return ke="useContext",Je(),Bi(i)},useEffect:function(i,o){return ke="useEffect",Je(),IC(i,o)},useImperativeHandle:function(i,o,d){return ke="useImperativeHandle",Je(),TT(i,o,d)},useInsertionEffect:function(i,o){return ke="useInsertionEffect",Je(),bT(i,o)},useLayoutEffect:function(i,o){return ke="useLayoutEffect",Je(),ST(i,o)},useMemo:function(i,o){ke="useMemo",Je();var d=ot.current;ot.current=ru;try{return AT(i,o)}finally{ot.current=d}},useReducer:function(i,o,d){ke="useReducer",Je();var h=ot.current;ot.current=ru;try{return kI(i,o,d)}finally{ot.current=h}},useRef:function(i){return ke="useRef",Je(),CT()},useState:function(i){ke="useState",Je();var o=ot.current;ot.current=ru;try{return II(i)}finally{ot.current=o}},useDebugValue:function(i,o){return ke="useDebugValue",Je(),RT()},useDeferredValue:function(i){return ke="useDeferredValue",Je(),H$(i)},useTransition:function(){return ke="useTransition",Je(),B$()},useMutableSource:function(i,o,d){return ke="useMutableSource",Je(),void 0},useSyncExternalStore:function(i,o,d){return ke="useSyncExternalStore",Je(),yT(i,o)},useId:function(){return ke="useId",Je(),xT()},unstable_isNewReconciler:G},Z$={readContext:function(i){return Bi(i)},useCallback:function(i,o){return ke="useCallback",Je(),kT(i,o)},useContext:function(i){return ke="useContext",Je(),Bi(i)},useEffect:function(i,o){return ke="useEffect",Je(),IC(i,o)},useImperativeHandle:function(i,o,d){return ke="useImperativeHandle",Je(),TT(i,o,d)},useInsertionEffect:function(i,o){return ke="useInsertionEffect",Je(),bT(i,o)},useLayoutEffect:function(i,o){return ke="useLayoutEffect",Je(),ST(i,o)},useMemo:function(i,o){ke="useMemo",Je();var d=ot.current;ot.current=OT;try{return AT(i,o)}finally{ot.current=d}},useReducer:function(i,o,d){ke="useReducer",Je();var h=ot.current;ot.current=OT;try{return AI(i,o,d)}finally{ot.current=h}},useRef:function(i){return ke="useRef",Je(),CT()},useState:function(i){ke="useState",Je();var o=ot.current;ot.current=OT;try{return OI(i)}finally{ot.current=o}},useDebugValue:function(i,o){return ke="useDebugValue",Je(),RT()},useDeferredValue:function(i){return ke="useDeferredValue",Je(),j$(i)},useTransition:function(){return ke="useTransition",Je(),q$()},useMutableSource:function(i,o,d){return ke="useMutableSource",Je(),void 0},useSyncExternalStore:function(i,o,d){return ke="useSyncExternalStore",Je(),yT(i,o)},useId:function(){return ke="useId",Je(),xT()},unstable_isNewReconciler:G},vc={readContext:function(i){return jI(),Bi(i)},useCallback:function(i,o){return ke="useCallback",Kt(),jn(),LI(i,o)},useContext:function(i){return ke="useContext",Kt(),jn(),Bi(i)},useEffect:function(i,o){return ke="useEffect",Kt(),jn(),wT(i,o)},useImperativeHandle:function(i,o,d){return ke="useImperativeHandle",Kt(),jn(),DI(i,o,d)},useInsertionEffect:function(i,o){return ke="useInsertionEffect",Kt(),jn(),MI(i,o)},useLayoutEffect:function(i,o){return ke="useLayoutEffect",Kt(),jn(),PI(i,o)},useMemo:function(i,o){ke="useMemo",Kt(),jn();var d=ot.current;ot.current=vc;try{return UI(i,o)}finally{ot.current=d}},useReducer:function(i,o,d){ke="useReducer",Kt(),jn();var h=ot.current;ot.current=vc;try{return RI(i,o,d)}finally{ot.current=h}},useRef:function(i){return ke="useRef",Kt(),jn(),NI(i)},useState:function(i){ke="useState",Kt(),jn();var o=ot.current;ot.current=vc;try{return _T(i)}finally{ot.current=o}},useDebugValue:function(i,o){return ke="useDebugValue",Kt(),jn(),void 0},useDeferredValue:function(i){return ke="useDeferredValue",Kt(),jn(),FI(i)},useTransition:function(){return ke="useTransition",Kt(),jn(),$I()},useMutableSource:function(i,o,d){return ke="useMutableSource",Kt(),jn(),void 0},useSyncExternalStore:function(i,o,d){return ke="useSyncExternalStore",Kt(),jn(),xI(i,o,d)},useId:function(){return ke="useId",Kt(),jn(),HI()},unstable_isNewReconciler:G},ru={readContext:function(i){return jI(),Bi(i)},useCallback:function(i,o){return ke="useCallback",Kt(),Je(),kT(i,o)},useContext:function(i){return ke="useContext",Kt(),Je(),Bi(i)},useEffect:function(i,o){return ke="useEffect",Kt(),Je(),IC(i,o)},useImperativeHandle:function(i,o,d){return ke="useImperativeHandle",Kt(),Je(),TT(i,o,d)},useInsertionEffect:function(i,o){return ke="useInsertionEffect",Kt(),Je(),bT(i,o)},useLayoutEffect:function(i,o){return ke="useLayoutEffect",Kt(),Je(),ST(i,o)},useMemo:function(i,o){ke="useMemo",Kt(),Je();var d=ot.current;ot.current=ru;try{return AT(i,o)}finally{ot.current=d}},useReducer:function(i,o,d){ke="useReducer",Kt(),Je();var h=ot.current;ot.current=ru;try{return kI(i,o,d)}finally{ot.current=h}},useRef:function(i){return ke="useRef",Kt(),Je(),CT()},useState:function(i){ke="useState",Kt(),Je();var o=ot.current;ot.current=ru;try{return II(i)}finally{ot.current=o}},useDebugValue:function(i,o){return ke="useDebugValue",Kt(),Je(),RT()},useDeferredValue:function(i){return ke="useDeferredValue",Kt(),Je(),H$(i)},useTransition:function(){return ke="useTransition",Kt(),Je(),B$()},useMutableSource:function(i,o,d){return ke="useMutableSource",Kt(),Je(),void 0},useSyncExternalStore:function(i,o,d){return ke="useSyncExternalStore",Kt(),Je(),yT(i,o)},useId:function(){return ke="useId",Kt(),Je(),xT()},unstable_isNewReconciler:G},OT={readContext:function(i){return jI(),Bi(i)},useCallback:function(i,o){return ke="useCallback",Kt(),Je(),kT(i,o)},useContext:function(i){return ke="useContext",Kt(),Je(),Bi(i)},useEffect:function(i,o){return ke="useEffect",Kt(),Je(),IC(i,o)},useImperativeHandle:function(i,o,d){return ke="useImperativeHandle",Kt(),Je(),TT(i,o,d)},useInsertionEffect:function(i,o){return ke="useInsertionEffect",Kt(),Je(),bT(i,o)},useLayoutEffect:function(i,o){return ke="useLayoutEffect",Kt(),Je(),ST(i,o)},useMemo:function(i,o){ke="useMemo",Kt(),Je();var d=ot.current;ot.current=ru;try{return AT(i,o)}finally{ot.current=d}},useReducer:function(i,o,d){ke="useReducer",Kt(),Je();var h=ot.current;ot.current=ru;try{return AI(i,o,d)}finally{ot.current=h}},useRef:function(i){return ke="useRef",Kt(),Je(),CT()},useState:function(i){ke="useState",Kt(),Je();var o=ot.current;ot.current=ru;try{return OI(i)}finally{ot.current=o}},useDebugValue:function(i,o){return ke="useDebugValue",Kt(),Je(),RT()},useDeferredValue:function(i){return ke="useDeferredValue",Kt(),Je(),j$(i)},useTransition:function(){return ke="useTransition",Kt(),Je(),q$()},useMutableSource:function(i,o,d){return ke="useMutableSource",Kt(),Je(),void 0},useSyncExternalStore:function(i,o,d){return ke="useSyncExternalStore",Kt(),Je(),yT(i,o)},useId:function(){return ke="useId",Kt(),Je(),xT()},unstable_isNewReconciler:G}}var fh=e.unstable_now,eH=0,NT=-1,OC=-1,MT=-1,zI=!1,PT=!1;function tH(){return zI}function pne(){PT=!0}function vne(){zI=!1,PT=!1}function mne(){zI=PT,PT=!1}function nH(){return eH}function rH(){eH=fh()}function BI(i){OC=fh(),i.actualStartTime<0&&(i.actualStartTime=fh())}function iH(i){OC=-1}function DT(i,o){if(OC>=0){var d=fh()-OC;i.actualDuration+=d,o&&(i.selfBaseDuration=d),OC=-1}}function mc(i){if(NT>=0){var o=fh()-NT;NT=-1;for(var d=i.return;d!==null;){switch(d.tag){case E:var h=d.stateNode;h.effectDuration+=o;return;case F:var g=d.stateNode;g.effectDuration+=o;return}d=d.return}}}function qI(i){if(MT>=0){var o=fh()-MT;MT=-1;for(var d=i.return;d!==null;){switch(d.tag){case E:var h=d.stateNode;h!==null&&(h.passiveEffectDuration+=o);return;case F:var g=d.stateNode;g!==null&&(g.passiveEffectDuration+=o);return}d=d.return}}}function gc(){NT=fh()}function VI(){MT=fh()}function KI(i){for(var o=i.child;o;)i.actualDuration+=o.actualDuration,o=o.sibling}function hv(i,o){return{value:i,source:o,stack:_f(o),digest:null}}function GI(i,o,d){return{value:i,source:null,stack:d??null,digest:o??null}}function gne(i,o){return!0}function WI(i,o){try{var d=gne(i,o);if(d===!1)return;var h=o.value,g=o.source,C=o.stack,b=C!==null?C:"";if(h!=null&&h._suppressLogging){if(i.tag===m)return;console.error(h)}var k=g?Vt(g):null,x=k?"The above error occurred in the <"+k+"> component:":"The above error occurred in one of your React components:",M;if(i.tag===E)M=`Consider adding an error boundary to your tree to customize error handling behavior.
186
- Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var $=Vt(i)||"Anonymous";M="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+$+".")}var J=x+`
187
- `+b+`
188
-
189
- `+(""+M);console.error(J)}catch(Q){setTimeout(function(){throw Q})}}var yne=typeof WeakMap=="function"?WeakMap:Map;function oH(i,o,d){var h=Ad(ir,d);h.tag=Wx,h.payload={element:null};var g=o.value;return h.callback=function(){cie(g),WI(i,o)},h}function YI(i,o,d){var h=Ad(ir,d);h.tag=Wx;var g=i.type.getDerivedStateFromError;if(typeof g=="function"){var C=o.value;h.payload=function(){return g(C)},h.callback=function(){m4(i),WI(i,o)}}var b=i.stateNode;return b!==null&&typeof b.componentDidCatch=="function"&&(h.callback=function(){m4(i),WI(i,o),typeof g!="function"&&lie(this);var x=o.value,M=o.stack;this.componentDidCatch(x,{componentStack:M!==null?M:""}),typeof g!="function"&&(_a(i.lanes,Lt)||u("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Vt(i)||"Unknown"))}),h}function aH(i,o,d){var h=i.pingCache,g;if(h===null?(h=i.pingCache=new yne,g=new Set,h.set(o,g)):(g=h.get(o),g===void 0&&(g=new Set,h.set(o,g))),!g.has(d)){g.add(d);var C=die.bind(null,i,o,d);to&&GC(i,d),o.then(C,C)}}function _ne(i,o,d,h){var g=i.updateQueue;if(g===null){var C=new Set;C.add(d),i.updateQueue=C}else g.add(d)}function Cne(i,o){var d=i.tag;if((i.mode&cn)===Nt&&(d===p||d===j||d===Z)){var h=i.alternate;h?(i.updateQueue=h.updateQueue,i.memoizedState=h.memoizedState,i.lanes=h.lanes):(i.updateQueue=null,i.memoizedState=null)}}function sH(i){var o=i;do{if(o.tag===V&&ine(o))return o;o=o.return}while(o!==null);return null}function lH(i,o,d,h,g){if((i.mode&cn)===Nt){if(i===o)i.flags|=Fi;else{if(i.flags|=zt,d.flags|=Dp,d.flags&=~(Zm|xa),d.tag===m){var C=d.alternate;if(C===null)d.tag=Ge;else{var b=Ad(ir,Lt);b.tag=oT,lh(d,b,Lt)}}d.lanes=tn(d.lanes,Lt)}return i}return i.flags|=Fi,i.lanes=g,i}function Ene(i,o,d,h,g){if(d.flags|=xa,to&&GC(i,g),h!==null&&typeof h=="object"&&typeof h.then=="function"){var C=h;Cne(d),Vo()&&d.mode&cn&&JF();var b=sH(o);if(b!==null){b.flags&=~Br,lH(b,o,d,i,g),b.mode&cn&&aH(i,C,g),_ne(b,i,C);return}else{if(!Hf(g)){aH(i,C,g),AO();return}var k=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.");h=k}}else if(Vo()&&d.mode&cn){JF();var x=sH(o);if(x!==null){(x.flags&Fi)===kt&&(x.flags|=Br),lH(x,o,d,i,g),jx(hv(h,d));return}}h=hv(h,d),eie(h);var M=o;do{switch(M.tag){case E:{var $=h;M.flags|=Fi;var J=ki(g);M.lanes=tn(M.lanes,J);var Q=oH(M,$,J);Xx(M,Q);return}case m:var ce=h,fe=M.type,we=M.stateNode;if((M.flags&zt)===kt&&(typeof fe.getDerivedStateFromError=="function"||we!==null&&typeof we.componentDidCatch=="function"&&!s4(we))){M.flags|=Fi;var st=ki(g);M.lanes=tn(M.lanes,st);var At=YI(M,ce,st);Xx(M,At);return}break}M=M.return}while(M!==null)}function wne(){return null}var NC=t.ReactCurrentOwner,iu=!1,QI,MC,XI,JI,ZI,pv,eO,LT;QI={},MC={},XI={},JI={},ZI={},pv=!1,eO={},LT={};function Da(i,o,d,h){i===null?o.child=R$(o,null,d,h):o.child=sy(o,i.child,d,h)}function bne(i,o,d,h){o.child=sy(o,i.child,null,h),o.child=sy(o,null,d,h)}function uH(i,o,d,h,g){if(o.type!==o.elementType){var C=d.propTypes;C&&Jl(C,h,"prop",kn(d))}var b=d.render,k=o.ref,x,M;ay(o,g),tc(o);{if(NC.current=o,ca(!0),x=hy(i,o,b,h,k,g),M=py(),o.mode&Ir){Ri(!0);try{x=hy(i,o,b,h,k,g),M=py()}finally{Ri(!1)}}ca(!1)}return rd(),i!==null&&!iu?(O$(i,o,g),xd(i,o,g)):(Vo()&&M&&Dx(o),o.flags|=Wu,Da(i,o,x,g),o.child)}function cH(i,o,d,h,g){if(i===null){var C=d.type;if(Aie(C)&&d.compare===null&&d.defaultProps===void 0){var b=C;return b=wy(C),o.tag=Z,o.type=b,rO(o,C),dH(i,o,b,h,g)}{var k=C.propTypes;k&&Jl(k,h,"prop",kn(C))}var x=$O(d.type,null,h,o,o.mode,g);return x.ref=o.ref,x.return=o,o.child=x,x}{var M=d.type,$=M.propTypes;$&&Jl($,h,"prop",kn(M))}var J=i.child,Q=uO(i,g);if(!Q){var ce=J.memoizedProps,fe=d.compare;if(fe=fe!==null?fe:Tt,fe(ce,h)&&i.ref===o.ref)return xd(i,o,g)}o.flags|=Wu;var we=_v(J,h);return we.ref=o.ref,we.return=o,o.child=we,we}function dH(i,o,d,h,g){if(o.type!==o.elementType){var C=o.elementType;if(C.$$typeof===St){var b=C,k=b._payload,x=b._init;try{C=x(k)}catch{C=null}var M=C&&C.propTypes;M&&Jl(M,h,"prop",kn(C))}}if(i!==null){var $=i.memoizedProps;if(Tt($,h)&&i.ref===o.ref&&o.type===i.type)if(iu=!1,o.pendingProps=h=$,uO(i,g))(i.flags&Dp)!==kt&&(iu=!0);else return o.lanes=i.lanes,xd(i,o,g)}return tO(i,o,d,h,g)}function fH(i,o,d){var h=o.pendingProps,g=h.children,C=i!==null?i.memoizedState:null;if(h.mode==="hidden"||H)if((o.mode&cn)===Nt){var b={baseLanes:Se,cachePool:null,transitions:null};o.memoizedState=b,YT(o,d)}else if(_a(d,ya)){var J={baseLanes:Se,cachePool:null,transitions:null};o.memoizedState=J;var Q=C!==null?C.baseLanes:d;YT(o,Q)}else{var k=null,x;if(C!==null){var M=C.baseLanes;x=tn(M,d)}else x=d;o.lanes=o.childLanes=ya;var $={baseLanes:x,cachePool:k,transitions:null};return o.memoizedState=$,o.updateQueue=null,YT(o,x),null}else{var ce;C!==null?(ce=tn(C.baseLanes,d),o.memoizedState=null):ce=d,YT(o,ce)}return Da(i,o,g,d),o.child}function Sne(i,o,d){var h=o.pendingProps;return Da(i,o,h,d),o.child}function Tne(i,o,d){var h=o.pendingProps.children;return Da(i,o,h,d),o.child}function Rne(i,o,d){{o.flags|=en;{var h=o.stateNode;h.effectDuration=0,h.passiveEffectDuration=0}}var g=o.pendingProps,C=g.children;return Da(i,o,C,d),o.child}function hH(i,o){var d=o.ref;(i===null&&d!==null||i!==null&&i.ref!==d)&&(o.flags|=fa,o.flags|=v0)}function tO(i,o,d,h,g){if(o.type!==o.elementType){var C=d.propTypes;C&&Jl(C,h,"prop",kn(d))}var b;{var k=ey(o,d,!0);b=ty(o,k)}var x,M;ay(o,g),tc(o);{if(NC.current=o,ca(!0),x=hy(i,o,d,h,b,g),M=py(),o.mode&Ir){Ri(!0);try{x=hy(i,o,d,h,b,g),M=py()}finally{Ri(!1)}}ca(!1)}return rd(),i!==null&&!iu?(O$(i,o,g),xd(i,o,g)):(Vo()&&M&&Dx(o),o.flags|=Wu,Da(i,o,x,g),o.child)}function pH(i,o,d,h,g){{switch(Bie(o)){case!1:{var C=o.stateNode,b=o.type,k=new b(o.memoizedProps,C.context),x=k.state;C.updater.enqueueSetState(C,x,null);break}case!0:{o.flags|=zt,o.flags|=Fi;var M=new Error("Simulated error coming from DevTools"),$=ki(g);o.lanes=tn(o.lanes,$);var J=YI(o,hv(M,o),$);Xx(o,J);break}}if(o.type!==o.elementType){var Q=d.propTypes;Q&&Jl(Q,h,"prop",kn(d))}}var ce;fc(d)?(ce=!0,WS(o)):ce=!1,ay(o,g);var fe=o.stateNode,we;fe===null?(FT(i,o),E$(o,d,h),uI(o,d,h,g),we=!0):i===null?we=Jte(o,d,h,g):we=Zte(i,o,d,h,g);var st=nO(i,o,d,we,ce,g);{var At=o.stateNode;we&&At.props!==h&&(pv||u("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Vt(o)||"a component"),pv=!0)}return st}function nO(i,o,d,h,g,C){hH(i,o);var b=(o.flags&zt)!==kt;if(!h&&!b)return g&&WF(o,d,!1),xd(i,o,C);var k=o.stateNode;NC.current=o;var x;if(b&&typeof d.getDerivedStateFromError!="function")x=null,iH();else{tc(o);{if(ca(!0),x=k.render(),o.mode&Ir){Ri(!0);try{k.render()}finally{Ri(!1)}}ca(!1)}rd()}return o.flags|=Wu,i!==null&&b?bne(i,o,x,C):Da(i,o,x,C),o.memoizedState=k.state,g&&WF(o,d,!0),o.child}function vH(i){var o=i.stateNode;o.pendingContext?KF(i,o.pendingContext,o.pendingContext!==o.context):o.context&&KF(i,o.context,!1),vI(i,o.containerInfo)}function kne(i,o,d){if(vH(o),i===null)throw new Error("Should have a current fiber. This is a bug in React.");var h=o.pendingProps,g=o.memoizedState,C=g.element;h$(i,o),uT(o,h,null,d);var b=o.memoizedState;o.stateNode;var k=b.element;if(g.isDehydrated){var x={element:k,isDehydrated:!1,cache:b.cache,pendingSuspenseBoundaries:b.pendingSuspenseBoundaries,transitions:b.transitions},M=o.updateQueue;if(M.baseState=x,o.memoizedState=x,o.flags&Br){var $=hv(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."),o);return mH(i,o,k,d,$)}else if(k!==C){var J=hv(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),o);return mH(i,o,k,d,J)}else{Ote(o);var Q=R$(o,null,k,d);o.child=Q;for(var ce=Q;ce;)ce.flags=ce.flags&~hr|ns,ce=ce.sibling}}else{if(iy(),k===C)return xd(i,o,d);Da(i,o,k,d)}return o.child}function mH(i,o,d,h,g){return iy(),jx(g),o.flags|=Br,Da(i,o,d,h),o.child}function Ane(i,o,d){A$(o),i===null&&Hx(o);var h=o.type,g=o.pendingProps,C=i!==null?i.memoizedProps:null,b=g.children,k=Ex(h,g);return k?b=null:C!==null&&Ex(h,C)&&(o.flags|=Hn),hH(i,o),Da(i,o,b,d),o.child}function xne(i,o){return i===null&&Hx(o),null}function Ine(i,o,d,h){FT(i,o);var g=o.pendingProps,C=d,b=C._payload,k=C._init,x=k(b);o.type=x;var M=o.tag=xie(x),$=tu(x,g),J;switch(M){case p:return rO(o,x),o.type=x=wy(x),J=tO(null,o,x,$,h),J;case m:return o.type=x=MO(x),J=pH(null,o,x,$,h),J;case j:return o.type=x=PO(x),J=uH(null,o,x,$,h),J;case Y:{if(o.type!==o.elementType){var Q=x.propTypes;Q&&Jl(Q,$,"prop",kn(x))}return J=cH(null,o,x,tu(x.type,$),h),J}}var ce="";throw x!==null&&typeof x=="object"&&x.$$typeof===St&&(ce=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+x+". "+("Lazy element type must resolve to a class or function."+ce))}function One(i,o,d,h,g){FT(i,o),o.tag=m;var C;return fc(d)?(C=!0,WS(o)):C=!1,ay(o,g),E$(o,d,h),uI(o,d,h,g),nO(null,o,d,!0,C,g)}function Nne(i,o,d,h){FT(i,o);var g=o.pendingProps,C;{var b=ey(o,d,!1);C=ty(o,b)}ay(o,h);var k,x;tc(o);{if(d.prototype&&typeof d.prototype.render=="function"){var M=kn(d)||"Unknown";QI[M]||(u("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.",M,M),QI[M]=!0)}o.mode&Ir&&eu.recordLegacyContextWarning(o,null),ca(!0),NC.current=o,k=hy(null,o,d,g,C,h),x=py(),ca(!1)}if(rd(),o.flags|=Wu,typeof k=="object"&&k!==null&&typeof k.render=="function"&&k.$$typeof===void 0){var $=kn(d)||"Unknown";MC[$]||(u("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.",$,$,$),MC[$]=!0)}if(typeof k=="object"&&k!==null&&typeof k.render=="function"&&k.$$typeof===void 0){{var J=kn(d)||"Unknown";MC[J]||(u("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.",J,J,J),MC[J]=!0)}o.tag=m,o.memoizedState=null,o.updateQueue=null;var Q=!1;return fc(d)?(Q=!0,WS(o)):Q=!1,o.memoizedState=k.state!==null&&k.state!==void 0?k.state:null,Qx(o),C$(o,k),uI(o,d,g,h),nO(null,o,d,!0,Q,h)}else{if(o.tag=p,o.mode&Ir){Ri(!0);try{k=hy(null,o,d,g,C,h),x=py()}finally{Ri(!1)}}return Vo()&&x&&Dx(o),Da(null,o,k,h),rO(o,d),o.child}}function rO(i,o){{if(o&&o.childContextTypes&&u("%s(...): childContextTypes cannot be defined on a function component.",o.displayName||o.name||"Component"),i.ref!==null){var d="",h=zo();h&&(d+=`
190
-
191
- Check the render method of \``+h+"`.");var g=h||"",C=i._debugSource;C&&(g=C.fileName+":"+C.lineNumber),ZI[g]||(ZI[g]=!0,u("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",d))}if(typeof o.getDerivedStateFromProps=="function"){var b=kn(o)||"Unknown";JI[b]||(u("%s: Function components do not support getDerivedStateFromProps.",b),JI[b]=!0)}if(typeof o.contextType=="object"&&o.contextType!==null){var k=kn(o)||"Unknown";XI[k]||(u("%s: Function components do not support contextType.",k),XI[k]=!0)}}}var iO={dehydrated:null,treeContext:null,retryLane:bn};function oO(i){return{baseLanes:i,cachePool:wne(),transitions:null}}function Mne(i,o){var d=null;return{baseLanes:tn(i.baseLanes,o),cachePool:d,transitions:i.transitions}}function Pne(i,o,d,h){if(o!==null){var g=o.memoizedState;if(g===null)return!1}return yI(i,SC)}function Dne(i,o){return jf(i.childLanes,o)}function gH(i,o,d){var h=o.pendingProps;qie(o)&&(o.flags|=zt);var g=nu.current,C=!1,b=(o.flags&zt)!==kt;if(b||Pne(g,i)?(C=!0,o.flags&=~zt):(i===null||i.memoizedState!==null)&&(g=rne(g,I$)),g=uy(g),ch(o,g),i===null){Hx(o);var k=o.memoizedState;if(k!==null){var x=k.dehydrated;if(x!==null)return Hne(o,x)}var M=h.children,$=h.fallback;if(C){var J=Lne(o,M,$,d),Q=o.child;return Q.memoizedState=oO(d),o.memoizedState=iO,J}else return aO(o,M)}else{var ce=i.memoizedState;if(ce!==null){var fe=ce.dehydrated;if(fe!==null)return jne(i,o,b,h,fe,ce,d)}if(C){var we=h.fallback,st=h.children,At=Fne(i,o,st,we,d),wt=o.child,Tn=i.child.memoizedState;return wt.memoizedState=Tn===null?oO(d):Mne(Tn,d),wt.childLanes=Dne(i,d),o.memoizedState=iO,At}else{var yn=h.children,oe=Une(i,o,yn,d);return o.memoizedState=null,oe}}}function aO(i,o,d){var h=i.mode,g={mode:"visible",children:o},C=sO(g,h);return C.return=i,i.child=C,C}function Lne(i,o,d,h){var g=i.mode,C=i.child,b={mode:"hidden",children:o},k,x;return(g&cn)===Nt&&C!==null?(k=C,k.childLanes=Se,k.pendingProps=b,i.mode&Dt&&(k.actualDuration=0,k.actualStartTime=-1,k.selfBaseDuration=0,k.treeBaseDuration=0),x=yh(d,g,h,null)):(k=sO(b,g),x=yh(d,g,h,null)),k.return=i,x.return=i,k.sibling=x,i.child=k,x}function sO(i,o,d){return y4(i,o,Se,null)}function yH(i,o){return _v(i,o)}function Une(i,o,d,h){var g=i.child,C=g.sibling,b=yH(g,{mode:"visible",children:d});if((o.mode&cn)===Nt&&(b.lanes=h),b.return=o,b.sibling=null,C!==null){var k=o.deletions;k===null?(o.deletions=[C],o.flags|=Ln):k.push(C)}return o.child=b,b}function Fne(i,o,d,h,g){var C=o.mode,b=i.child,k=b.sibling,x={mode:"hidden",children:d},M;if((C&cn)===Nt&&o.child!==b){var $=o.child;M=$,M.childLanes=Se,M.pendingProps=x,o.mode&Dt&&(M.actualDuration=0,M.actualStartTime=-1,M.selfBaseDuration=b.selfBaseDuration,M.treeBaseDuration=b.treeBaseDuration),o.deletions=null}else M=yH(b,x),M.subtreeFlags=b.subtreeFlags&eo;var J;return k!==null?J=_v(k,h):(J=yh(h,C,g,null),J.flags|=hr),J.return=o,M.return=o,M.sibling=J,o.child=M,J}function UT(i,o,d,h){h!==null&&jx(h),sy(o,i.child,null,d);var g=o.pendingProps,C=g.children,b=aO(o,C);return b.flags|=hr,o.memoizedState=null,b}function $ne(i,o,d,h,g){var C=o.mode,b={mode:"visible",children:d},k=sO(b,C),x=yh(h,C,g,null);return x.flags|=hr,k.return=o,x.return=o,k.sibling=x,o.child=k,(o.mode&cn)!==Nt&&sy(o,i.child,null,g),x}function Hne(i,o,d){return(i.mode&cn)===Nt?(u("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."),i.lanes=Lt):Tx(o)?i.lanes=ad:i.lanes=ya,null}function jne(i,o,d,h,g,C,b){if(d)if(o.flags&Br){o.flags&=~Br;var oe=GI(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return UT(i,o,b,oe)}else{if(o.memoizedState!==null)return o.child=i.child,o.flags|=zt,null;var be=h.children,ae=h.fallback,Le=$ne(i,o,be,ae,b),lt=o.child;return lt.memoizedState=oO(b),o.memoizedState=iO,Le}else{if(xte(),(o.mode&cn)===Nt)return UT(i,o,b,null);if(Tx(g)){var k,x,M;{var $=Kee(g);k=$.digest,x=$.message,M=$.stack}var J;x?J=new Error(x):J=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var Q=GI(J,k,M);return UT(i,o,b,Q)}var ce=_a(b,i.childLanes);if(iu||ce){var fe=WT();if(fe!==null){var we=KA(fe,b);if(we!==bn&&we!==C.retryLane){C.retryLane=we;var st=ir;fs(i,we),co(fe,i,we,st)}}AO();var At=GI(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 UT(i,o,b,At)}else if(HF(g)){o.flags|=zt,o.child=i.child;var wt=fie.bind(null,i);return Gee(g,wt),null}else{Nte(o,g,C.treeContext);var Tn=h.children,yn=aO(o,Tn);return yn.flags|=ns,yn}}}function _H(i,o,d){i.lanes=tn(i.lanes,o);var h=i.alternate;h!==null&&(h.lanes=tn(h.lanes,o)),Kx(i.return,o,d)}function zne(i,o,d){for(var h=o;h!==null;){if(h.tag===V){var g=h.memoizedState;g!==null&&_H(h,d,i)}else if(h.tag===Pe)_H(h,d,i);else if(h.child!==null){h.child.return=h,h=h.child;continue}if(h===i)return;for(;h.sibling===null;){if(h.return===null||h.return===i)return;h=h.return}h.sibling.return=h.return,h=h.sibling}}function Bne(i){for(var o=i,d=null;o!==null;){var h=o.alternate;h!==null&&mT(h)===null&&(d=o),o=o.sibling}return d}function qne(i){if(i!==void 0&&i!=="forwards"&&i!=="backwards"&&i!=="together"&&!eO[i])if(eO[i]=!0,typeof i=="string")switch(i.toLowerCase()){case"together":case"forwards":case"backwards":{u('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',i,i.toLowerCase());break}case"forward":case"backward":{u('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',i,i.toLowerCase());break}default:u('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',i);break}else u('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',i)}function Vne(i,o){i!==void 0&&!LT[i]&&(i!=="collapsed"&&i!=="hidden"?(LT[i]=!0,u('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',i)):o!=="forwards"&&o!=="backwards"&&(LT[i]=!0,u('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',i)))}function CH(i,o){{var d=Cn(i),h=!d&&typeof ks(i)=="function";if(d||h){var g=d?"array":"iterable";return u("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>",g,o,g),!1}}return!0}function Kne(i,o){if((o==="forwards"||o==="backwards")&&i!==void 0&&i!==null&&i!==!1)if(Cn(i)){for(var d=0;d<i.length;d++)if(!CH(i[d],d))return}else{var h=ks(i);if(typeof h=="function"){var g=h.call(i);if(g)for(var C=g.next(),b=0;!C.done;C=g.next()){if(!CH(C.value,b))return;b++}}else u('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?',o)}}function lO(i,o,d,h,g){var C=i.memoizedState;C===null?i.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:h,tail:d,tailMode:g}:(C.isBackwards=o,C.rendering=null,C.renderingStartTime=0,C.last=h,C.tail=d,C.tailMode=g)}function EH(i,o,d){var h=o.pendingProps,g=h.revealOrder,C=h.tail,b=h.children;qne(g),Vne(C,g),Kne(b,g),Da(i,o,b,d);var k=nu.current,x=yI(k,SC);if(x)k=_I(k,SC),o.flags|=zt;else{var M=i!==null&&(i.flags&zt)!==kt;M&&zne(o,o.child,d),k=uy(k)}if(ch(o,k),(o.mode&cn)===Nt)o.memoizedState=null;else switch(g){case"forwards":{var $=Bne(o.child),J;$===null?(J=o.child,o.child=null):(J=$.sibling,$.sibling=null),lO(o,!1,J,$,C);break}case"backwards":{var Q=null,ce=o.child;for(o.child=null;ce!==null;){var fe=ce.alternate;if(fe!==null&&mT(fe)===null){o.child=ce;break}var we=ce.sibling;ce.sibling=Q,Q=ce,ce=we}lO(o,!0,Q,null,C);break}case"together":{lO(o,!1,null,null,void 0);break}default:o.memoizedState=null}return o.child}function Gne(i,o,d){vI(o,o.stateNode.containerInfo);var h=o.pendingProps;return i===null?o.child=sy(o,null,h,d):Da(i,o,h,d),o.child}var wH=!1;function Wne(i,o,d){var h=o.type,g=h._context,C=o.pendingProps,b=o.memoizedProps,k=C.value;{"value"in C||wH||(wH=!0,u("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var x=o.type.propTypes;x&&Jl(x,C,"prop","Context.Provider")}if(u$(o,g,k),b!==null){var M=b.value;if(ft(M,k)){if(b.children===C.children&&!KS())return xd(i,o,d)}else zte(o,g,d)}var $=C.children;return Da(i,o,$,d),o.child}var bH=!1;function Yne(i,o,d){var h=o.type;h._context===void 0?h!==h.Consumer&&(bH||(bH=!0,u("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):h=h._context;var g=o.pendingProps,C=g.children;typeof C!="function"&&u("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."),ay(o,d);var b=Bi(h);tc(o);var k;return NC.current=o,ca(!0),k=C(b),ca(!1),rd(),o.flags|=Wu,Da(i,o,k,d),o.child}function PC(){iu=!0}function FT(i,o){(o.mode&cn)===Nt&&i!==null&&(i.alternate=null,o.alternate=null,o.flags|=hr)}function xd(i,o,d){return i!==null&&(o.dependencies=i.dependencies),iH(),KC(o.lanes),_a(d,o.childLanes)?(ene(i,o),o.child):null}function Qne(i,o,d){{var h=o.return;if(h===null)throw new Error("Cannot swap the root fiber.");if(i.alternate=null,o.alternate=null,d.index=o.index,d.sibling=o.sibling,d.return=o.return,d.ref=o.ref,o===h.child)h.child=d;else{var g=h.child;if(g===null)throw new Error("Expected parent to have a child.");for(;g.sibling!==o;)if(g=g.sibling,g===null)throw new Error("Expected to find the previous sibling.");g.sibling=d}var C=h.deletions;return C===null?(h.deletions=[i],h.flags|=Ln):C.push(i),d.flags|=hr,d}}function uO(i,o){var d=i.lanes;return!!_a(d,o)}function Xne(i,o,d){switch(o.tag){case E:vH(o),o.stateNode,iy();break;case T:A$(o);break;case m:{var h=o.type;fc(h)&&WS(o);break}case S:vI(o,o.stateNode.containerInfo);break;case L:{var g=o.memoizedProps.value,C=o.type._context;u$(o,C,g);break}case F:{var b=_a(d,o.childLanes);b&&(o.flags|=en);{var k=o.stateNode;k.effectDuration=0,k.passiveEffectDuration=0}}break;case V:{var x=o.memoizedState;if(x!==null){if(x.dehydrated!==null)return ch(o,uy(nu.current)),o.flags|=zt,null;var M=o.child,$=M.childLanes;if(_a(d,$))return gH(i,o,d);ch(o,uy(nu.current));var J=xd(i,o,d);return J!==null?J.sibling:null}else ch(o,uy(nu.current));break}case Pe:{var Q=(i.flags&zt)!==kt,ce=_a(d,o.childLanes);if(Q){if(ce)return EH(i,o,d);o.flags|=zt}var fe=o.memoizedState;if(fe!==null&&(fe.rendering=null,fe.tail=null,fe.lastEffect=null),ch(o,nu.current),ce)break;return null}case te:case ee:return o.lanes=Se,fH(i,o,d)}return xd(i,o,d)}function SH(i,o,d){if(o._debugNeedsRemount&&i!==null)return Qne(i,o,$O(o.type,o.key,o.pendingProps,o._debugOwner||null,o.mode,o.lanes));if(i!==null){var h=i.memoizedProps,g=o.pendingProps;if(h!==g||KS()||o.type!==i.type)iu=!0;else{var C=uO(i,d);if(!C&&(o.flags&zt)===kt)return iu=!1,Xne(i,o,d);(i.flags&Dp)!==kt?iu=!0:iu=!1}}else if(iu=!1,Vo()&&bte(o)){var b=o.index,k=Ste();XF(o,k,b)}switch(o.lanes=Se,o.tag){case y:return Nne(i,o,o.type,d);case Re:{var x=o.elementType;return Ine(i,o,x,d)}case p:{var M=o.type,$=o.pendingProps,J=o.elementType===M?$:tu(M,$);return tO(i,o,M,J,d)}case m:{var Q=o.type,ce=o.pendingProps,fe=o.elementType===Q?ce:tu(Q,ce);return pH(i,o,Q,fe,d)}case E:return kne(i,o,d);case T:return Ane(i,o,d);case A:return xne(i,o);case V:return gH(i,o,d);case S:return Gne(i,o,d);case j:{var we=o.type,st=o.pendingProps,At=o.elementType===we?st:tu(we,st);return uH(i,o,we,At,d)}case I:return Sne(i,o,d);case P:return Tne(i,o,d);case F:return Rne(i,o,d);case L:return Wne(i,o,d);case D:return Yne(i,o,d);case Y:{var wt=o.type,Tn=o.pendingProps,yn=tu(wt,Tn);if(o.type!==o.elementType){var oe=wt.propTypes;oe&&Jl(oe,yn,"prop",kn(wt))}return yn=tu(wt.type,yn),cH(i,o,wt,yn,d)}case Z:return dH(i,o,o.type,o.pendingProps,d);case Ge:{var be=o.type,ae=o.pendingProps,Le=o.elementType===be?ae:tu(be,ae);return One(i,o,be,Le,d)}case Pe:return EH(i,o,d);case Be:break;case te:return fH(i,o,d)}throw new Error("Unknown unit of work tag ("+o.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function vy(i){i.flags|=en}function TH(i){i.flags|=fa,i.flags|=v0}var RH,cO,kH,AH;RH=function(i,o,d,h){for(var g=o.child;g!==null;){if(g.tag===T||g.tag===A)Cee(i,g.stateNode);else if(g.tag!==S){if(g.child!==null){g.child.return=g,g=g.child;continue}}if(g===o)return;for(;g.sibling===null;){if(g.return===null||g.return===o)return;g=g.return}g.sibling.return=g.return,g=g.sibling}},cO=function(i,o){},kH=function(i,o,d,h,g){var C=i.memoizedProps;if(C!==h){var b=o.stateNode,k=mI(),x=wee(b,d,C,h,g,k);o.updateQueue=x,x&&vy(o)}},AH=function(i,o,d,h){d!==h&&vy(o)};function DC(i,o){if(!Vo())switch(i.tailMode){case"hidden":{for(var d=i.tail,h=null;d!==null;)d.alternate!==null&&(h=d),d=d.sibling;h===null?i.tail=null:h.sibling=null;break}case"collapsed":{for(var g=i.tail,C=null;g!==null;)g.alternate!==null&&(C=g),g=g.sibling;C===null?!o&&i.tail!==null?i.tail.sibling=null:i.tail=null:C.sibling=null;break}}}function Go(i){var o=i.alternate!==null&&i.alternate.child===i.child,d=Se,h=kt;if(o){if((i.mode&Dt)!==Nt){for(var x=i.selfBaseDuration,M=i.child;M!==null;)d=tn(d,tn(M.lanes,M.childLanes)),h|=M.subtreeFlags&eo,h|=M.flags&eo,x+=M.treeBaseDuration,M=M.sibling;i.treeBaseDuration=x}else for(var $=i.child;$!==null;)d=tn(d,tn($.lanes,$.childLanes)),h|=$.subtreeFlags&eo,h|=$.flags&eo,$.return=i,$=$.sibling;i.subtreeFlags|=h}else{if((i.mode&Dt)!==Nt){for(var g=i.actualDuration,C=i.selfBaseDuration,b=i.child;b!==null;)d=tn(d,tn(b.lanes,b.childLanes)),h|=b.subtreeFlags,h|=b.flags,g+=b.actualDuration,C+=b.treeBaseDuration,b=b.sibling;i.actualDuration=g,i.treeBaseDuration=C}else for(var k=i.child;k!==null;)d=tn(d,tn(k.lanes,k.childLanes)),h|=k.subtreeFlags,h|=k.flags,k.return=i,k=k.sibling;i.subtreeFlags|=h}return i.childLanes=d,o}function Jne(i,o,d){if(Ute()&&(o.mode&cn)!==Nt&&(o.flags&zt)===kt)return i$(o),iy(),o.flags|=Br|xa|Fi,!1;var h=ZS(o);if(d!==null&&d.dehydrated!==null)if(i===null){if(!h)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(Dte(o),Go(o),(o.mode&Dt)!==Nt){var g=d!==null;if(g){var C=o.child;C!==null&&(o.treeBaseDuration-=C.treeBaseDuration)}}return!1}else{if(iy(),(o.flags&zt)===kt&&(o.memoizedState=null),o.flags|=en,Go(o),(o.mode&Dt)!==Nt){var b=d!==null;if(b){var k=o.child;k!==null&&(o.treeBaseDuration-=k.treeBaseDuration)}}return!1}else return o$(),!0}function xH(i,o,d){var h=o.pendingProps;switch(Lx(o),o.tag){case y:case Re:case Z:case p:case j:case I:case P:case F:case D:case Y:return Go(o),null;case m:{var g=o.type;return fc(g)&&GS(o),Go(o),null}case E:{var C=o.stateNode;if(ly(o),Nx(o),EI(),C.pendingContext&&(C.context=C.pendingContext,C.pendingContext=null),i===null||i.child===null){var b=ZS(o);if(b)vy(o);else if(i!==null){var k=i.memoizedState;(!k.isDehydrated||(o.flags&Br)!==kt)&&(o.flags|=ts,o$())}}return cO(i,o),Go(o),null}case T:{gI(o);var x=k$(),M=o.type;if(i!==null&&o.stateNode!=null)kH(i,o,M,h,x),i.ref!==o.ref&&TH(o);else{if(!h){if(o.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 Go(o),null}var $=mI(),J=ZS(o);if(J)Mte(o,x,$)&&vy(o);else{var Q=_ee(M,h,x,$,o);RH(Q,o,!1,!1),o.stateNode=Q,Eee(Q,M,h,x)&&vy(o)}o.ref!==null&&TH(o)}return Go(o),null}case A:{var ce=h;if(i&&o.stateNode!=null){var fe=i.memoizedProps;AH(i,o,fe,ce)}else{if(typeof ce!="string"&&o.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 we=k$(),st=mI(),At=ZS(o);At?Pte(o)&&vy(o):o.stateNode=bee(ce,we,st,o)}return Go(o),null}case V:{cy(o);var wt=o.memoizedState;if(i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){var Tn=Jne(i,o,wt);if(!Tn)return o.flags&Fi?o:null}if((o.flags&zt)!==kt)return o.lanes=d,(o.mode&Dt)!==Nt&&KI(o),o;var yn=wt!==null,oe=i!==null&&i.memoizedState!==null;if(yn!==oe&&yn){var be=o.child;if(be.flags|=Yu,(o.mode&cn)!==Nt){var ae=i===null&&(o.memoizedProps.unstable_avoidThisFallback!==!0||!ne);ae||yI(nu.current,I$)?Zre():AO()}}var Le=o.updateQueue;if(Le!==null&&(o.flags|=en),Go(o),(o.mode&Dt)!==Nt&&yn){var lt=o.child;lt!==null&&(o.treeBaseDuration-=lt.treeBaseDuration)}return null}case S:return ly(o),cO(i,o),i===null&&mte(o.stateNode.containerInfo),Go(o),null;case L:var tt=o.type._context;return Vx(tt,o),Go(o),null;case Ge:{var Ht=o.type;return fc(Ht)&&GS(o),Go(o),null}case Pe:{cy(o);var Wt=o.memoizedState;if(Wt===null)return Go(o),null;var Zn=(o.flags&zt)!==kt,Mn=Wt.rendering;if(Mn===null)if(Zn)DC(Wt,!1);else{var Oi=tie()&&(i===null||(i.flags&zt)===kt);if(!Oi)for(var Pn=o.child;Pn!==null;){var pi=mT(Pn);if(pi!==null){Zn=!0,o.flags|=zt,DC(Wt,!1);var ba=pi.updateQueue;return ba!==null&&(o.updateQueue=ba,o.flags|=en),o.subtreeFlags=kt,tne(o,d),ch(o,_I(nu.current,SC)),o.child}Pn=Pn.sibling}Wt.tail!==null&&xr()>QH()&&(o.flags|=zt,Zn=!0,DC(Wt,!1),o.lanes=A0)}else{if(!Zn){var Jo=mT(Mn);if(Jo!==null){o.flags|=zt,Zn=!0;var Fs=Jo.updateQueue;if(Fs!==null&&(o.updateQueue=Fs,o.flags|=en),DC(Wt,!0),Wt.tail===null&&Wt.tailMode==="hidden"&&!Mn.alternate&&!Vo())return Go(o),null}else xr()*2-Wt.renderingStartTime>QH()&&d!==ya&&(o.flags|=zt,Zn=!0,DC(Wt,!1),o.lanes=A0)}if(Wt.isBackwards)Mn.sibling=o.child,o.child=Mn;else{var Fa=Wt.last;Fa!==null?Fa.sibling=Mn:o.child=Mn,Wt.last=Mn}}if(Wt.tail!==null){var $a=Wt.tail;Wt.rendering=$a,Wt.tail=$a.sibling,Wt.renderingStartTime=xr(),$a.sibling=null;var Sa=nu.current;return Zn?Sa=_I(Sa,SC):Sa=uy(Sa),ch(o,Sa),$a}return Go(o),null}case Be:break;case te:case ee:{kO(o);var Pd=o.memoizedState,by=Pd!==null;if(i!==null){var XC=i.memoizedState,Cc=XC!==null;Cc!==by&&!H&&(o.flags|=Yu)}return!by||(o.mode&cn)===Nt?Go(o):_a(_c,ya)&&(Go(o),o.subtreeFlags&(hr|en)&&(o.flags|=Yu)),null}case ye:return null;case me:return null}throw new Error("Unknown unit of work tag ("+o.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Zne(i,o,d){switch(Lx(o),o.tag){case m:{var h=o.type;fc(h)&&GS(o);var g=o.flags;return g&Fi?(o.flags=g&~Fi|zt,(o.mode&Dt)!==Nt&&KI(o),o):null}case E:{o.stateNode,ly(o),Nx(o),EI();var C=o.flags;return(C&Fi)!==kt&&(C&zt)===kt?(o.flags=C&~Fi|zt,o):null}case T:return gI(o),null;case V:{cy(o);var b=o.memoizedState;if(b!==null&&b.dehydrated!==null){if(o.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");iy()}var k=o.flags;return k&Fi?(o.flags=k&~Fi|zt,(o.mode&Dt)!==Nt&&KI(o),o):null}case Pe:return cy(o),null;case S:return ly(o),null;case L:var x=o.type._context;return Vx(x,o),null;case te:case ee:return kO(o),null;case ye:return null;default:return null}}function IH(i,o,d){switch(Lx(o),o.tag){case m:{var h=o.type.childContextTypes;h!=null&&GS(o);break}case E:{o.stateNode,ly(o),Nx(o),EI();break}case T:{gI(o);break}case S:ly(o);break;case V:cy(o);break;case Pe:cy(o);break;case L:var g=o.type._context;Vx(g,o);break;case te:case ee:kO(o);break}}var OH=null;OH=new Set;var $T=!1,Wo=!1,ere=typeof WeakSet=="function"?WeakSet:Set,ht=null,my=null,gy=null;function tre(i){td(null,function(){throw i}),h0()}var nre=function(i,o){if(o.props=i.memoizedProps,o.state=i.memoizedState,i.mode&Dt)try{gc(),o.componentWillUnmount()}finally{mc(i)}else o.componentWillUnmount()};function NH(i,o){try{hh(io,i)}catch(d){gr(i,o,d)}}function dO(i,o,d){try{nre(i,d)}catch(h){gr(i,o,h)}}function rre(i,o,d){try{d.componentDidMount()}catch(h){gr(i,o,h)}}function MH(i,o){try{DH(i)}catch(d){gr(i,o,d)}}function yy(i,o){var d=i.ref;if(d!==null)if(typeof d=="function"){var h;try{if(Ft&&qt&&i.mode&Dt)try{gc(),h=d(null)}finally{mc(i)}else h=d(null)}catch(g){gr(i,o,g)}typeof h=="function"&&u("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Vt(i))}else d.current=null}function HT(i,o,d){try{d()}catch(h){gr(i,o,h)}}var PH=!1;function ire(i,o){gee(i.containerInfo),ht=o,ore();var d=PH;return PH=!1,d}function ore(){for(;ht!==null;){var i=ht,o=i.child;(i.subtreeFlags&Mf)!==kt&&o!==null?(o.return=i,ht=o):are()}}function are(){for(;ht!==null;){var i=ht;$n(i);try{sre(i)}catch(d){gr(i,i.return,d)}zr();var o=i.sibling;if(o!==null){o.return=i.return,ht=o;return}ht=i.return}}function sre(i){var o=i.alternate,d=i.flags;if((d&ts)!==kt){switch($n(i),i.tag){case p:case j:case Z:break;case m:{if(o!==null){var h=o.memoizedProps,g=o.memoizedState,C=i.stateNode;i.type===i.elementType&&!pv&&(C.props!==i.memoizedProps&&u("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.",Vt(i)||"instance"),C.state!==i.memoizedState&&u("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.",Vt(i)||"instance"));var b=C.getSnapshotBeforeUpdate(i.elementType===i.type?h:tu(i.type,h),g);{var k=OH;b===void 0&&!k.has(i.type)&&(k.add(i.type),u("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Vt(i)))}C.__reactInternalSnapshotBeforeUpdate=b}break}case E:{{var x=i.stateNode;zee(x.containerInfo)}break}case T:case A:case S:case Ge: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.")}zr()}}function ou(i,o,d){var h=o.updateQueue,g=h!==null?h.lastEffect:null;if(g!==null){var C=g.next,b=C;do{if((b.tag&i)===i){var k=b.destroy;b.destroy=void 0,k!==void 0&&((i&Ko)!==hs?sg(o):(i&io)!==hs&&lg(o),(i&hc)!==hs&&WC(!0),HT(o,d,k),(i&hc)!==hs&&WC(!1),(i&Ko)!==hs?Jb():(i&io)!==hs&&Pf())}b=b.next}while(b!==C)}}function hh(i,o){var d=o.updateQueue,h=d!==null?d.lastEffect:null;if(h!==null){var g=h.next,C=g;do{if((C.tag&i)===i){(i&Ko)!==hs?Xb(o):(i&io)!==hs&&Zb(o);var b=C.create;(i&hc)!==hs&&WC(!0),C.destroy=b(),(i&hc)!==hs&&WC(!1),(i&Ko)!==hs?T0():(i&io)!==hs&&eS();{var k=C.destroy;if(k!==void 0&&typeof k!="function"){var x=void 0;(C.tag&io)!==kt?x="useLayoutEffect":(C.tag&hc)!==kt?x="useInsertionEffect":x="useEffect";var M=void 0;k===null?M=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof k.then=="function"?M=`
192
-
193
- It looks like you wrote `+x+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
194
-
195
- `+x+`(() => {
196
- async function fetchData() {
197
- // You can await here
198
- const response = await MyAPI.getData(someId);
199
- // ...
200
- }
201
- fetchData();
202
- }, [someId]); // Or [] if effect doesn't need props or state
203
-
204
- Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:M=" You returned: "+k,u("%s must not return anything besides a function, which is used for clean-up.%s",x,M)}}}C=C.next}while(C!==g)}}function lre(i,o){if((o.flags&en)!==kt)switch(o.tag){case F:{var d=o.stateNode.passiveEffectDuration,h=o.memoizedProps,g=h.id,C=h.onPostCommit,b=nH(),k=o.alternate===null?"mount":"update";tH()&&(k="nested-update"),typeof C=="function"&&C(g,k,d,b);var x=o.return;e:for(;x!==null;){switch(x.tag){case E:var M=x.stateNode;M.passiveEffectDuration+=d;break e;case F:var $=x.stateNode;$.passiveEffectDuration+=d;break e}x=x.return}break}}}function ure(i,o,d,h){if((d.flags&So)!==kt)switch(d.tag){case p:case j:case Z:{if(!Wo)if(d.mode&Dt)try{gc(),hh(io|ro,d)}finally{mc(d)}else hh(io|ro,d);break}case m:{var g=d.stateNode;if(d.flags&en&&!Wo)if(o===null)if(d.type===d.elementType&&!pv&&(g.props!==d.memoizedProps&&u("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Vt(d)||"instance"),g.state!==d.memoizedState&&u("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Vt(d)||"instance")),d.mode&Dt)try{gc(),g.componentDidMount()}finally{mc(d)}else g.componentDidMount();else{var C=d.elementType===d.type?o.memoizedProps:tu(d.type,o.memoizedProps),b=o.memoizedState;if(d.type===d.elementType&&!pv&&(g.props!==d.memoizedProps&&u("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Vt(d)||"instance"),g.state!==d.memoizedState&&u("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Vt(d)||"instance")),d.mode&Dt)try{gc(),g.componentDidUpdate(C,b,g.__reactInternalSnapshotBeforeUpdate)}finally{mc(d)}else g.componentDidUpdate(C,b,g.__reactInternalSnapshotBeforeUpdate)}var k=d.updateQueue;k!==null&&(d.type===d.elementType&&!pv&&(g.props!==d.memoizedProps&&u("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Vt(d)||"instance"),g.state!==d.memoizedState&&u("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Vt(d)||"instance")),v$(d,k,g));break}case E:{var x=d.updateQueue;if(x!==null){var M=null;if(d.child!==null)switch(d.child.tag){case T:M=d.child.stateNode;break;case m:M=d.child.stateNode;break}v$(d,x,M)}break}case T:{var $=d.stateNode;if(o===null&&d.flags&en){var J=d.type,Q=d.memoizedProps;Aee($,J,Q)}break}case A:break;case S:break;case F:{{var ce=d.memoizedProps,fe=ce.onCommit,we=ce.onRender,st=d.stateNode.effectDuration,At=nH(),wt=o===null?"mount":"update";tH()&&(wt="nested-update"),typeof we=="function"&&we(d.memoizedProps.id,wt,d.actualDuration,d.treeBaseDuration,d.actualStartTime,At);{typeof fe=="function"&&fe(d.memoizedProps.id,wt,st,At),aie(d);var Tn=d.return;e:for(;Tn!==null;){switch(Tn.tag){case E:var yn=Tn.stateNode;yn.effectDuration+=st;break e;case F:var oe=Tn.stateNode;oe.effectDuration+=st;break e}Tn=Tn.return}}}break}case V:{gre(i,d);break}case Pe:case Ge:case Be:case te:case ee:case me: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.")}Wo||d.flags&fa&&DH(d)}function cre(i){switch(i.tag){case p:case j:case Z:{if(i.mode&Dt)try{gc(),NH(i,i.return)}finally{mc(i)}else NH(i,i.return);break}case m:{var o=i.stateNode;typeof o.componentDidMount=="function"&&rre(i,i.return,o),MH(i,i.return);break}case T:{MH(i,i.return);break}}}function dre(i,o){for(var d=null,h=i;;){if(h.tag===T){if(d===null){d=h;try{var g=h.stateNode;o?Fee(g):Hee(h.stateNode,h.memoizedProps)}catch(b){gr(i,i.return,b)}}}else if(h.tag===A){if(d===null)try{var C=h.stateNode;o?$ee(C):jee(C,h.memoizedProps)}catch(b){gr(i,i.return,b)}}else if(!((h.tag===te||h.tag===ee)&&h.memoizedState!==null&&h!==i)){if(h.child!==null){h.child.return=h,h=h.child;continue}}if(h===i)return;for(;h.sibling===null;){if(h.return===null||h.return===i)return;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}function DH(i){var o=i.ref;if(o!==null){var d=i.stateNode,h;switch(i.tag){case T:h=d;break;default:h=d}if(typeof o=="function"){var g;if(i.mode&Dt)try{gc(),g=o(h)}finally{mc(i)}else g=o(h);typeof g=="function"&&u("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Vt(i))}else o.hasOwnProperty("current")||u("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Vt(i)),o.current=h}}function fre(i){var o=i.alternate;o!==null&&(o.return=null),i.return=null}function LH(i){var o=i.alternate;o!==null&&(i.alternate=null,LH(o));{if(i.child=null,i.deletions=null,i.sibling=null,i.tag===T){var d=i.stateNode;d!==null&&_te(d)}i.stateNode=null,i._debugOwner=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}}function hre(i){for(var o=i.return;o!==null;){if(UH(o))return o;o=o.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function UH(i){return i.tag===T||i.tag===E||i.tag===S}function FH(i){var o=i;e:for(;;){for(;o.sibling===null;){if(o.return===null||UH(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==T&&o.tag!==A&&o.tag!==at;){if(o.flags&hr||o.child===null||o.tag===S)continue e;o.child.return=o,o=o.child}if(!(o.flags&hr))return o.stateNode}}function pre(i){var o=hre(i);switch(o.tag){case T:{var d=o.stateNode;o.flags&Hn&&($F(d),o.flags&=~Hn);var h=FH(i);hO(i,h,d);break}case E:case S:{var g=o.stateNode.containerInfo,C=FH(i);fO(i,C,g);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function fO(i,o,d){var h=i.tag,g=h===T||h===A;if(g){var C=i.stateNode;o?Pee(d,C,o):Nee(d,C)}else if(h!==S){var b=i.child;if(b!==null){fO(b,o,d);for(var k=b.sibling;k!==null;)fO(k,o,d),k=k.sibling}}}function hO(i,o,d){var h=i.tag,g=h===T||h===A;if(g){var C=i.stateNode;o?Mee(d,C,o):Oee(d,C)}else if(h!==S){var b=i.child;if(b!==null){hO(b,o,d);for(var k=b.sibling;k!==null;)hO(k,o,d),k=k.sibling}}}var Yo=null,au=!1;function vre(i,o,d){{var h=o;e:for(;h!==null;){switch(h.tag){case T:{Yo=h.stateNode,au=!1;break e}case E:{Yo=h.stateNode.containerInfo,au=!0;break e}case S:{Yo=h.stateNode.containerInfo,au=!0;break e}}h=h.return}if(Yo===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");$H(i,o,d),Yo=null,au=!1}fre(d)}function ph(i,o,d){for(var h=d.child;h!==null;)$H(i,o,h),h=h.sibling}function $H(i,o,d){switch(b0(d),d.tag){case T:Wo||yy(d,o);case A:{{var h=Yo,g=au;Yo=null,ph(i,o,d),Yo=h,au=g,Yo!==null&&(au?Lee(Yo,d.stateNode):Dee(Yo,d.stateNode))}return}case at:{Yo!==null&&(au?Uee(Yo,d.stateNode):Sx(Yo,d.stateNode));return}case S:{{var C=Yo,b=au;Yo=d.stateNode.containerInfo,au=!0,ph(i,o,d),Yo=C,au=b}return}case p:case j:case Y:case Z:{if(!Wo){var k=d.updateQueue;if(k!==null){var x=k.lastEffect;if(x!==null){var M=x.next,$=M;do{var J=$,Q=J.destroy,ce=J.tag;Q!==void 0&&((ce&hc)!==hs?HT(d,o,Q):(ce&io)!==hs&&(lg(d),d.mode&Dt?(gc(),HT(d,o,Q),mc(d)):HT(d,o,Q),Pf())),$=$.next}while($!==M)}}}ph(i,o,d);return}case m:{if(!Wo){yy(d,o);var fe=d.stateNode;typeof fe.componentWillUnmount=="function"&&dO(d,o,fe)}ph(i,o,d);return}case Be:{ph(i,o,d);return}case te:{if(d.mode&cn){var we=Wo;Wo=we||d.memoizedState!==null,ph(i,o,d),Wo=we}else ph(i,o,d);break}default:{ph(i,o,d);return}}}function mre(i){i.memoizedState}function gre(i,o){var d=o.memoizedState;if(d===null){var h=o.alternate;if(h!==null){var g=h.memoizedState;if(g!==null){var C=g.dehydrated;C!==null&&nte(C)}}}}function HH(i){var o=i.updateQueue;if(o!==null){i.updateQueue=null;var d=i.stateNode;d===null&&(d=i.stateNode=new ere),o.forEach(function(h){var g=hie.bind(null,i,h);if(!d.has(h)){if(d.add(h),to)if(my!==null&&gy!==null)GC(gy,my);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");h.then(g,g)}})}}function yre(i,o,d){my=d,gy=i,$n(o),jH(o,i),$n(o),my=null,gy=null}function su(i,o,d){var h=o.deletions;if(h!==null)for(var g=0;g<h.length;g++){var C=h[g];try{vre(i,o,C)}catch(x){gr(C,o,x)}}var b=$m();if(o.subtreeFlags&va)for(var k=o.child;k!==null;)$n(k),jH(k,i),k=k.sibling;$n(b)}function jH(i,o,d){var h=i.alternate,g=i.flags;switch(i.tag){case p:case j:case Y:case Z:{if(su(o,i),yc(i),g&en){try{ou(hc|ro,i,i.return),hh(hc|ro,i)}catch(Ht){gr(i,i.return,Ht)}if(i.mode&Dt){try{gc(),ou(io|ro,i,i.return)}catch(Ht){gr(i,i.return,Ht)}mc(i)}else try{ou(io|ro,i,i.return)}catch(Ht){gr(i,i.return,Ht)}}return}case m:{su(o,i),yc(i),g&fa&&h!==null&&yy(h,h.return);return}case T:{su(o,i),yc(i),g&fa&&h!==null&&yy(h,h.return);{if(i.flags&Hn){var C=i.stateNode;try{$F(C)}catch(Ht){gr(i,i.return,Ht)}}if(g&en){var b=i.stateNode;if(b!=null){var k=i.memoizedProps,x=h!==null?h.memoizedProps:k,M=i.type,$=i.updateQueue;if(i.updateQueue=null,$!==null)try{xee(b,$,M,x,k,i)}catch(Ht){gr(i,i.return,Ht)}}}}return}case A:{if(su(o,i),yc(i),g&en){if(i.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var J=i.stateNode,Q=i.memoizedProps,ce=h!==null?h.memoizedProps:Q;try{Iee(J,ce,Q)}catch(Ht){gr(i,i.return,Ht)}}return}case E:{if(su(o,i),yc(i),g&en&&h!==null){var fe=h.memoizedState;if(fe.isDehydrated)try{tte(o.containerInfo)}catch(Ht){gr(i,i.return,Ht)}}return}case S:{su(o,i),yc(i);return}case V:{su(o,i),yc(i);var we=i.child;if(we.flags&Yu){var st=we.stateNode,At=we.memoizedState,wt=At!==null;if(st.isHidden=wt,wt){var Tn=we.alternate!==null&&we.alternate.memoizedState!==null;Tn||Jre()}}if(g&en){try{mre(i)}catch(Ht){gr(i,i.return,Ht)}HH(i)}return}case te:{var yn=h!==null&&h.memoizedState!==null;if(i.mode&cn){var oe=Wo;Wo=oe||yn,su(o,i),Wo=oe}else su(o,i);if(yc(i),g&Yu){var be=i.stateNode,ae=i.memoizedState,Le=ae!==null,lt=i;if(be.isHidden=Le,Le&&!yn&&(lt.mode&cn)!==Nt){ht=lt;for(var tt=lt.child;tt!==null;)ht=tt,Cre(tt),tt=tt.sibling}dre(lt,Le)}return}case Pe:{su(o,i),yc(i),g&en&&HH(i);return}case Be:return;default:{su(o,i),yc(i);return}}}function yc(i){var o=i.flags;if(o&hr){try{pre(i)}catch(d){gr(i,i.return,d)}i.flags&=~hr}o&ns&&(i.flags&=~ns)}function _re(i,o,d){my=d,gy=o,ht=i,zH(i,o,d),my=null,gy=null}function zH(i,o,d){for(var h=(i.mode&cn)!==Nt;ht!==null;){var g=ht,C=g.child;if(g.tag===te&&h){var b=g.memoizedState!==null,k=b||$T;if(k){pO(i,o,d);continue}else{var x=g.alternate,M=x!==null&&x.memoizedState!==null,$=M||Wo,J=$T,Q=Wo;$T=k,Wo=$,Wo&&!Q&&(ht=g,Ere(g));for(var ce=C;ce!==null;)ht=ce,zH(ce,o,d),ce=ce.sibling;ht=g,$T=J,Wo=Q,pO(i,o,d);continue}}(g.subtreeFlags&So)!==kt&&C!==null?(C.return=g,ht=C):pO(i,o,d)}}function pO(i,o,d){for(;ht!==null;){var h=ht;if((h.flags&So)!==kt){var g=h.alternate;$n(h);try{ure(o,g,h,d)}catch(b){gr(h,h.return,b)}zr()}if(h===i){ht=null;return}var C=h.sibling;if(C!==null){C.return=h.return,ht=C;return}ht=h.return}}function Cre(i){for(;ht!==null;){var o=ht,d=o.child;switch(o.tag){case p:case j:case Y:case Z:{if(o.mode&Dt)try{gc(),ou(io,o,o.return)}finally{mc(o)}else ou(io,o,o.return);break}case m:{yy(o,o.return);var h=o.stateNode;typeof h.componentWillUnmount=="function"&&dO(o,o.return,h);break}case T:{yy(o,o.return);break}case te:{var g=o.memoizedState!==null;if(g){BH(i);continue}break}}d!==null?(d.return=o,ht=d):BH(i)}}function BH(i){for(;ht!==null;){var o=ht;if(o===i){ht=null;return}var d=o.sibling;if(d!==null){d.return=o.return,ht=d;return}ht=o.return}}function Ere(i){for(;ht!==null;){var o=ht,d=o.child;if(o.tag===te){var h=o.memoizedState!==null;if(h){qH(i);continue}}d!==null?(d.return=o,ht=d):qH(i)}}function qH(i){for(;ht!==null;){var o=ht;$n(o);try{cre(o)}catch(h){gr(o,o.return,h)}if(zr(),o===i){ht=null;return}var d=o.sibling;if(d!==null){d.return=o.return,ht=d;return}ht=o.return}}function wre(i,o,d,h){ht=o,bre(o,i,d,h)}function bre(i,o,d,h){for(;ht!==null;){var g=ht,C=g.child;(g.subtreeFlags&rs)!==kt&&C!==null?(C.return=g,ht=C):Sre(i,o,d,h)}}function Sre(i,o,d,h){for(;ht!==null;){var g=ht;if((g.flags&br)!==kt){$n(g);try{Tre(o,g,d,h)}catch(b){gr(g,g.return,b)}zr()}if(g===i){ht=null;return}var C=g.sibling;if(C!==null){C.return=g.return,ht=C;return}ht=g.return}}function Tre(i,o,d,h){switch(o.tag){case p:case j:case Z:{if(o.mode&Dt){VI();try{hh(Ko|ro,o)}finally{qI(o)}}else hh(Ko|ro,o);break}}}function Rre(i){ht=i,kre()}function kre(){for(;ht!==null;){var i=ht,o=i.child;if((ht.flags&Ln)!==kt){var d=i.deletions;if(d!==null){for(var h=0;h<d.length;h++){var g=d[h];ht=g,Ire(g,i)}{var C=i.alternate;if(C!==null){var b=C.child;if(b!==null){C.child=null;do{var k=b.sibling;b.sibling=null,b=k}while(b!==null)}}}ht=i}}(i.subtreeFlags&rs)!==kt&&o!==null?(o.return=i,ht=o):Are()}}function Are(){for(;ht!==null;){var i=ht;(i.flags&br)!==kt&&($n(i),xre(i),zr());var o=i.sibling;if(o!==null){o.return=i.return,ht=o;return}ht=i.return}}function xre(i){switch(i.tag){case p:case j:case Z:{i.mode&Dt?(VI(),ou(Ko|ro,i,i.return),qI(i)):ou(Ko|ro,i,i.return);break}}}function Ire(i,o){for(;ht!==null;){var d=ht;$n(d),Nre(d,o),zr();var h=d.child;h!==null?(h.return=d,ht=h):Ore(i)}}function Ore(i){for(;ht!==null;){var o=ht,d=o.sibling,h=o.return;if(LH(o),o===i){ht=null;return}if(d!==null){d.return=h,ht=d;return}ht=h}}function Nre(i,o){switch(i.tag){case p:case j:case Z:{i.mode&Dt?(VI(),ou(Ko,i,o),qI(i)):ou(Ko,i,o);break}}}function Mre(i){switch(i.tag){case p:case j:case Z:{try{hh(io|ro,i)}catch(d){gr(i,i.return,d)}break}case m:{var o=i.stateNode;try{o.componentDidMount()}catch(d){gr(i,i.return,d)}break}}}function Pre(i){switch(i.tag){case p:case j:case Z:{try{hh(Ko|ro,i)}catch(o){gr(i,i.return,o)}break}}}function Dre(i){switch(i.tag){case p:case j:case Z:{try{ou(io|ro,i,i.return)}catch(d){gr(i,i.return,d)}break}case m:{var o=i.stateNode;typeof o.componentWillUnmount=="function"&&dO(i,i.return,o);break}}}function Lre(i){switch(i.tag){case p:case j:case Z:try{ou(Ko|ro,i,i.return)}catch(o){gr(i,i.return,o)}}}if(typeof Symbol=="function"&&Symbol.for){var LC=Symbol.for;LC("selector.component"),LC("selector.has_pseudo_class"),LC("selector.role"),LC("selector.test_id"),LC("selector.text")}var Ure=[];function Fre(){Ure.forEach(function(i){return i()})}var $re=t.ReactCurrentActQueue;function Hre(i){{var o=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,d=typeof jest<"u";return d&&o!==!1}}function VH(){{var i=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!i&&$re.current!==null&&u("The current testing environment is not configured to support act(...)"),i}}var jre=Math.ceil,vO=t.ReactCurrentDispatcher,mO=t.ReactCurrentOwner,Qo=t.ReactCurrentBatchConfig,lu=t.ReactCurrentActQueue,so=0,KH=1,Xo=2,hl=4,Id=0,UC=1,vv=2,jT=3,FC=4,GH=5,gO=6,Sn=so,La=null,ei=null,lo=Se,_c=Se,yO=ih(Se),uo=Id,$C=null,zT=Se,HC=Se,BT=Se,jC=null,ps=null,_O=0,WH=500,YH=1/0,zre=500,Od=null;function zC(){YH=xr()+zre}function QH(){return YH}var qT=!1,CO=null,_y=null,mv=!1,vh=null,BC=Se,EO=[],wO=null,Bre=50,qC=0,bO=null,SO=!1,VT=!1,qre=50,Cy=0,KT=null,VC=ir,GT=Se,XH=!1;function WT(){return La}function Ua(){return(Sn&(Xo|hl))!==so?xr():(VC!==ir||(VC=xr()),VC)}function mh(i){var o=i.mode;if((o&cn)===Nt)return Lt;if((Sn&Xo)!==so&&lo!==Se)return ki(lo);var d=Hte()!==$te;if(d){if(Qo.transition!==null){var h=Qo.transition;h._updatedFibers||(h._updatedFibers=new Set),h._updatedFibers.add(i)}return GT===bn&&(GT=O0()),GT}var g=ss();if(g!==bn)return g;var C=See();return C}function Vre(i){var o=i.mode;return(o&cn)===Nt?Lt:VA()}function co(i,o,d,h){vie(),XH&&u("useInsertionEffect must not schedule updates."),SO&&(VT=!0),hd(i,d,h),(Sn&Xo)!==Se&&i===La?yie(o):(to&&L0(i,o,d),_ie(o),i===La&&((Sn&Xo)===so&&(HC=tn(HC,d)),uo===FC&&gh(i,lo)),vs(i,h),d===Lt&&Sn===so&&(o.mode&cn)===Nt&&!lu.isBatchingLegacy&&(zC(),QF()))}function Kre(i,o,d){var h=i.current;h.lanes=o,hd(i,o,d),vs(i,d)}function Gre(i){return(Sn&Xo)!==so}function vs(i,o){var d=i.callbackNode;zA(i,o);var h=jp(i,i===La?lo:Se);if(h===Se){d!==null&&h4(d),i.callbackNode=null,i.callbackPriority=bn;return}var g=fi(h),C=i.callbackPriority;if(C===g&&!(lu.current!==null&&d!==OO)){d==null&&C!==Lt&&u("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}d!=null&&h4(d);var b;if(g===Lt)i.tag===oh?(lu.isBatchingLegacy!==null&&(lu.didScheduleLegacyUpdate=!0),wte(e4.bind(null,i))):YF(e4.bind(null,i)),lu.current!==null?lu.current.push(ah):Ree(function(){(Sn&(Xo|hl))===so&&ah()}),b=null;else{var k;switch(Kp(h)){case To:k=ig;break;case no:k=Na;break;case Gl:k=rl;break;case qp:k=Xu;break;default:k=rl;break}b=NO(k,JH.bind(null,i))}i.callbackPriority=g,i.callbackNode=b}function JH(i,o){if(vne(),VC=ir,GT=Se,(Sn&(Xo|hl))!==so)throw new Error("Should not already be working.");var d=i.callbackNode,h=Md();if(h&&i.callbackNode!==d)return null;var g=jp(i,i===La?lo:Se);if(g===Se)return null;var C=!Bp(i,g)&&!aS(i,g)&&!o,b=C?rie(i,g):QT(i,g);if(b!==Id){if(b===vv){var k=x0(i);k!==Se&&(g=k,b=TO(i,k))}if(b===UC){var x=$C;throw gv(i,Se),gh(i,g),vs(i,xr()),x}if(b===gO)gh(i,g);else{var M=!Bp(i,g),$=i.current.alternate;if(M&&!Yre($)){if(b=QT(i,g),b===vv){var J=x0(i);J!==Se&&(g=J,b=TO(i,J))}if(b===UC){var Q=$C;throw gv(i,Se),gh(i,g),vs(i,xr()),Q}}i.finishedWork=$,i.finishedLanes=g,Wre(i,b,g)}}return vs(i,xr()),i.callbackNode===d?JH.bind(null,i):null}function TO(i,o){var d=jC;if(xi(i)){var h=gv(i,o);h.flags|=Br,vte(i.containerInfo)}var g=QT(i,o);if(g!==vv){var C=ps;ps=d,C!==null&&ZH(C)}return g}function ZH(i){ps===null?ps=i:ps.push.apply(ps,i)}function Wre(i,o,d){switch(o){case Id:case UC:throw new Error("Root did not complete. This is a bug in React.");case vv:{yv(i,ps,Od);break}case jT:{if(gh(i,d),Ag(d)&&!p4()){var h=_O+WH-xr();if(h>10){var g=jp(i,Se);if(g!==Se)break;var C=i.suspendedLanes;if(!fd(C,d)){Ua(),P0(i,C);break}i.timeoutHandle=wx(yv.bind(null,i,ps,Od),h);break}}yv(i,ps,Od);break}case FC:{if(gh(i,d),oS(d))break;if(!p4()){var b=iS(i,d),k=b,x=xr()-k,M=pie(x)-x;if(M>10){i.timeoutHandle=wx(yv.bind(null,i,ps,Od),M);break}}yv(i,ps,Od);break}case GH:{yv(i,ps,Od);break}default:throw new Error("Unknown root exit status.")}}function Yre(i){for(var o=i;;){if(o.flags&Pp){var d=o.updateQueue;if(d!==null){var h=d.stores;if(h!==null)for(var g=0;g<h.length;g++){var C=h[g],b=C.getSnapshot,k=C.value;try{if(!ft(b(),k))return!1}catch{return!1}}}}var x=o.child;if(o.subtreeFlags&Pp&&x!==null){x.return=o,o=x;continue}if(o===i)return!0;for(;o.sibling===null;){if(o.return===null||o.return===i)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}return!0}function gh(i,o){o=jf(o,BT),o=jf(o,HC),M0(i,o)}function e4(i){if(mne(),(Sn&(Xo|hl))!==so)throw new Error("Should not already be working.");Md();var o=jp(i,Se);if(!_a(o,Lt))return vs(i,xr()),null;var d=QT(i,o);if(i.tag!==oh&&d===vv){var h=x0(i);h!==Se&&(o=h,d=TO(i,h))}if(d===UC){var g=$C;throw gv(i,Se),gh(i,o),vs(i,xr()),g}if(d===gO)throw new Error("Root did not complete. This is a bug in React.");var C=i.current.alternate;return i.finishedWork=C,i.finishedLanes=o,yv(i,ps,Od),vs(i,xr()),null}function Qre(i,o){o!==Se&&(zf(i,tn(o,Lt)),vs(i,xr()),(Sn&(Xo|hl))===so&&(zC(),ah()))}function RO(i,o){var d=Sn;Sn|=KH;try{return i(o)}finally{Sn=d,Sn===so&&!lu.isBatchingLegacy&&(zC(),QF())}}function Xre(i,o,d,h,g){var C=ss(),b=Qo.transition;try{return Qo.transition=null,Ai(To),i(o,d,h,g)}finally{Ai(C),Qo.transition=b,Sn===so&&zC()}}function Nd(i){vh!==null&&vh.tag===oh&&(Sn&(Xo|hl))===so&&Md();var o=Sn;Sn|=KH;var d=Qo.transition,h=ss();try{return Qo.transition=null,Ai(To),i?i():void 0}finally{Ai(h),Qo.transition=d,Sn=o,(Sn&(Xo|hl))===so&&ah()}}function t4(){return(Sn&(Xo|hl))!==so}function YT(i,o){Ea(yO,_c,i),_c=tn(_c,o)}function kO(i){_c=yO.current,Ca(yO,i)}function gv(i,o){i.finishedWork=null,i.finishedLanes=Se;var d=i.timeoutHandle;if(d!==bx&&(i.timeoutHandle=bx,Tee(d)),ei!==null)for(var h=ei.return;h!==null;){var g=h.alternate;IH(g,h),h=h.return}La=i;var C=_v(i.current,null);return ei=C,lo=_c=o,uo=Id,$C=null,zT=Se,HC=Se,BT=Se,jC=null,ps=null,qte(),eu.discardPendingWarnings(),C}function n4(i,o){do{var d=ei;try{if(rT(),N$(),zr(),mO.current=null,d===null||d.return===null){uo=UC,$C=o,ei=null;return}if(Ft&&d.mode&Dt&&DT(d,!0),It)if(rd(),o!==null&&typeof o=="object"&&typeof o.then=="function"){var h=o;tS(d,h,lo)}else ug(d,o,lo);Ene(i,d.return,d,o,lo),a4(d)}catch(g){o=g,ei===d&&d!==null?(d=d.return,ei=d):d=ei;continue}return}while(!0)}function r4(){var i=vO.current;return vO.current=IT,i===null?IT:i}function i4(i){vO.current=i}function Jre(){_O=xr()}function KC(i){zT=tn(i,zT)}function Zre(){uo===Id&&(uo=jT)}function AO(){(uo===Id||uo===jT||uo===vv)&&(uo=FC),La!==null&&(zp(zT)||zp(HC))&&gh(La,lo)}function eie(i){uo!==FC&&(uo=vv),jC===null?jC=[i]:jC.push(i)}function tie(){return uo===Id}function QT(i,o){var d=Sn;Sn|=Xo;var h=r4();if(La!==i||lo!==o){if(to){var g=i.memoizedUpdaters;g.size>0&&(GC(i,lo),g.clear()),Og(i,o)}Od=U0(),gv(i,o)}Ps(o);do try{nie();break}catch(C){n4(i,C)}while(!0);if(rT(),Sn=d,i4(h),ei!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return Lf(),La=null,lo=Se,uo}function nie(){for(;ei!==null;)o4(ei)}function rie(i,o){var d=Sn;Sn|=Xo;var h=r4();if(La!==i||lo!==o){if(to){var g=i.memoizedUpdaters;g.size>0&&(GC(i,lo),g.clear()),Og(i,o)}Od=U0(),zC(),gv(i,o)}Ps(o);do try{iie();break}catch(C){n4(i,C)}while(!0);return rT(),i4(h),Sn=d,ei!==null?(Up(),Id):(Lf(),La=null,lo=Se,uo)}function iie(){for(;ei!==null&&!rg();)o4(ei)}function o4(i){var o=i.alternate;$n(i);var d;(i.mode&Dt)!==Nt?(BI(i),d=xO(o,i,_c),DT(i,!0)):d=xO(o,i,_c),zr(),i.memoizedProps=i.pendingProps,d===null?a4(i):ei=d,mO.current=null}function a4(i){var o=i;do{var d=o.alternate,h=o.return;if((o.flags&xa)===kt){$n(o);var g=void 0;if((o.mode&Dt)===Nt?g=xH(d,o,_c):(BI(o),g=xH(d,o,_c),DT(o,!1)),zr(),g!==null){ei=g;return}}else{var C=Zne(d,o);if(C!==null){C.flags&=Kb,ei=C;return}if((o.mode&Dt)!==Nt){DT(o,!1);for(var b=o.actualDuration,k=o.child;k!==null;)b+=k.actualDuration,k=k.sibling;o.actualDuration=b}if(h!==null)h.flags|=xa,h.subtreeFlags=kt,h.deletions=null;else{uo=gO,ei=null;return}}var x=o.sibling;if(x!==null){ei=x;return}o=h,ei=o}while(o!==null);uo===Id&&(uo=GH)}function yv(i,o,d){var h=ss(),g=Qo.transition;try{Qo.transition=null,Ai(To),oie(i,o,d,h)}finally{Qo.transition=g,Ai(h)}return null}function oie(i,o,d,h){do Md();while(vh!==null);if(mie(),(Sn&(Xo|hl))!==so)throw new Error("Should not already be working.");var g=i.finishedWork,C=i.finishedLanes;if(ag(C),g===null)return S0(),null;if(C===Se&&u("root.finishedLanes should not be empty during a commit. This is a bug in React."),i.finishedWork=null,i.finishedLanes=Se,g===i.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");i.callbackNode=null,i.callbackPriority=bn;var b=tn(g.lanes,g.childLanes);D0(i,b),i===La&&(La=null,ei=null,lo=Se),((g.subtreeFlags&rs)!==kt||(g.flags&rs)!==kt)&&(mv||(mv=!0,wO=d,NO(rl,function(){return Md(),null})));var k=(g.subtreeFlags&(Mf|va|So|rs))!==kt,x=(g.flags&(Mf|va|So|rs))!==kt;if(k||x){var M=Qo.transition;Qo.transition=null;var $=ss();Ai(To);var J=Sn;Sn|=hl,mO.current=null,ire(i,g),rH(),yre(i,g,C),yee(i.containerInfo),i.current=g,nS(C),_re(g,i,C),Df(),Yb(),Sn=J,Ai($),Qo.transition=M}else i.current=g,rH();var Q=mv;if(mv?(mv=!1,vh=i,BC=C):(Cy=0,KT=null),b=i.pendingLanes,b===Se&&(_y=null),Q||c4(i.current,!1),ql(g.stateNode,h),to&&i.memoizedUpdaters.clear(),Fre(),vs(i,xr()),o!==null)for(var ce=i.onRecoverableError,fe=0;fe<o.length;fe++){var we=o[fe],st=we.stack,At=we.digest;ce(we.value,{componentStack:st,digest:At})}if(qT){qT=!1;var wt=CO;throw CO=null,wt}return _a(BC,Lt)&&i.tag!==oh&&Md(),b=i.pendingLanes,_a(b,Lt)?(pne(),i===bO?qC++:(qC=0,bO=i)):qC=0,ah(),S0(),null}function Md(){if(vh!==null){var i=Kp(BC),o=GA(Gl,i),d=Qo.transition,h=ss();try{return Qo.transition=null,Ai(o),sie()}finally{Ai(h),Qo.transition=d}}return!1}function aie(i){EO.push(i),mv||(mv=!0,NO(rl,function(){return Md(),null}))}function sie(){if(vh===null)return!1;var i=wO;wO=null;var o=vh,d=BC;if(vh=null,BC=Se,(Sn&(Xo|hl))!==so)throw new Error("Cannot flush passive effects while already rendering.");SO=!0,VT=!1,rS(d);var h=Sn;Sn|=hl,Rre(o.current),wre(o,o.current,d,i);{var g=EO;EO=[];for(var C=0;C<g.length;C++){var b=g[C];lre(o,b)}}Lp(),c4(o.current,!0),Sn=h,ah(),VT?o===KT?Cy++:(Cy=0,KT=o):Cy=0,SO=!1,VT=!1,Zu(o);{var k=o.current.stateNode;k.effectDuration=0,k.passiveEffectDuration=0}return!0}function s4(i){return _y!==null&&_y.has(i)}function lie(i){_y===null?_y=new Set([i]):_y.add(i)}function uie(i){qT||(qT=!0,CO=i)}var cie=uie;function l4(i,o,d){var h=hv(d,o),g=oH(i,h,Lt),C=lh(i,g,Lt),b=Ua();C!==null&&(hd(C,Lt,b),vs(C,b))}function gr(i,o,d){if(tre(d),WC(!1),i.tag===E){l4(i,i,d);return}var h=null;for(h=o;h!==null;){if(h.tag===E){l4(h,i,d);return}else if(h.tag===m){var g=h.type,C=h.stateNode;if(typeof g.getDerivedStateFromError=="function"||typeof C.componentDidCatch=="function"&&!s4(C)){var b=hv(d,i),k=YI(h,b,Lt),x=lh(h,k,Lt),M=Ua();x!==null&&(hd(x,Lt,M),vs(x,M));return}}h=h.return}u(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
205
-
206
- Error message:
207
-
208
- %s`,d)}function die(i,o,d){var h=i.pingCache;h!==null&&h.delete(o);var g=Ua();P0(i,d),Cie(i),La===i&&fd(lo,d)&&(uo===FC||uo===jT&&Ag(lo)&&xr()-_O<WH?gv(i,Se):BT=tn(BT,d)),vs(i,g)}function u4(i,o){o===bn&&(o=Vre(i));var d=Ua(),h=fs(i,o);h!==null&&(hd(h,o,d),vs(h,d))}function fie(i){var o=i.memoizedState,d=bn;o!==null&&(d=o.retryLane),u4(i,d)}function hie(i,o){var d=bn,h;switch(i.tag){case V:h=i.stateNode;var g=i.memoizedState;g!==null&&(d=g.retryLane);break;case Pe:h=i.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}h!==null&&h.delete(o),u4(i,d)}function pie(i){return i<120?120:i<480?480:i<1080?1080:i<1920?1920:i<3e3?3e3:i<4320?4320:jre(i/1960)*1960}function vie(){if(qC>Bre)throw qC=0,bO=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.");Cy>qre&&(Cy=0,KT=null,u("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 mie(){eu.flushLegacyContextWarning(),eu.flushPendingUnsafeLifecycleWarnings()}function c4(i,o){$n(i),XT(i,pa,Dre),o&&XT(i,nd,Lre),XT(i,pa,Mre),o&&XT(i,nd,Pre),zr()}function XT(i,o,d){for(var h=i,g=null;h!==null;){var C=h.subtreeFlags&o;h!==g&&h.child!==null&&C!==kt?h=h.child:((h.flags&o)!==kt&&d(h),h.sibling!==null?h=h.sibling:h=g=h.return)}}var JT=null;function d4(i){{if((Sn&Xo)!==so||!(i.mode&cn))return;var o=i.tag;if(o!==y&&o!==E&&o!==m&&o!==p&&o!==j&&o!==Y&&o!==Z)return;var d=Vt(i)||"ReactComponent";if(JT!==null){if(JT.has(d))return;JT.add(d)}else JT=new Set([d]);var h=Ar;try{$n(i),u("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{h?$n(i):zr()}}}var xO;{var gie=null;xO=function(i,o,d){var h=_4(gie,o);try{return SH(i,o,d)}catch(C){if(Ite()||C!==null&&typeof C=="object"&&typeof C.then=="function")throw C;if(rT(),N$(),IH(i,o),_4(o,h),o.mode&Dt&&BI(o),td(null,SH,null,i,o,d),HA()){var g=h0();typeof g=="object"&&g!==null&&g._suppressLogging&&typeof C=="object"&&C!==null&&!C._suppressLogging&&(C._suppressLogging=!0)}throw C}}}var f4=!1,IO;IO=new Set;function yie(i){if(ua&&!dne())switch(i.tag){case p:case j:case Z:{var o=ei&&Vt(ei)||"Unknown",d=o;if(!IO.has(d)){IO.add(d);var h=Vt(i)||"Unknown";u("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",h,o,o)}break}case m:{f4||(u("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),f4=!0);break}}}function GC(i,o){if(to){var d=i.memoizedUpdaters;d.forEach(function(h){L0(i,h,o)})}}var OO={};function NO(i,o){{var d=lu.current;return d!==null?(d.push(o),OO):ng(i,o)}}function h4(i){if(i!==OO)return Wb(i)}function p4(){return lu.current!==null}function _ie(i){{if(i.mode&cn){if(!VH())return}else if(!Hre()||Sn!==so||i.tag!==p&&i.tag!==j&&i.tag!==Z)return;if(lu.current===null){var o=Ar;try{$n(i),u(`An update to %s inside a test was not wrapped in act(...).
209
-
210
- When testing, code that causes React state updates should be wrapped into act(...):
211
-
212
- act(() => {
213
- /* fire events that update state */
214
- });
215
- /* assert on the output */
216
-
217
- 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`,Vt(i))}finally{o?$n(i):zr()}}}}function Cie(i){i.tag!==oh&&VH()&&lu.current===null&&u(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
218
-
219
- When testing, code that resolves suspended data should be wrapped into act(...):
220
-
221
- act(() => {
222
- /* finish loading suspended data */
223
- });
224
- /* assert on the output */
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 WC(i){XH=i}var pl=null,Ey=null,Eie=function(i){pl=i};function wy(i){{if(pl===null)return i;var o=pl(i);return o===void 0?i:o.current}}function MO(i){return wy(i)}function PO(i){{if(pl===null)return i;var o=pl(i);if(o===void 0){if(i!=null&&typeof i.render=="function"){var d=wy(i.render);if(i.render!==d){var h={$$typeof:Qe,render:d};return i.displayName!==void 0&&(h.displayName=i.displayName),h}}return i}return o.current}}function v4(i,o){{if(pl===null)return!1;var d=i.elementType,h=o.type,g=!1,C=typeof h=="object"&&h!==null?h.$$typeof:null;switch(i.tag){case m:{typeof h=="function"&&(g=!0);break}case p:{(typeof h=="function"||C===St)&&(g=!0);break}case j:{(C===Qe||C===St)&&(g=!0);break}case Y:case Z:{(C===$t||C===St)&&(g=!0);break}default:return!1}if(g){var b=pl(d);if(b!==void 0&&b===pl(h))return!0}return!1}}function m4(i){{if(pl===null||typeof WeakSet!="function")return;Ey===null&&(Ey=new WeakSet),Ey.add(i)}}var wie=function(i,o){{if(pl===null)return;var d=o.staleFamilies,h=o.updatedFamilies;Md(),Nd(function(){DO(i.current,h,d)})}},bie=function(i,o){{if(i.context!==Ls)return;Md(),Nd(function(){YC(o,i,null,null)})}};function DO(i,o,d){{var h=i.alternate,g=i.child,C=i.sibling,b=i.tag,k=i.type,x=null;switch(b){case p:case Z:case m:x=k;break;case j:x=k.render;break}if(pl===null)throw new Error("Expected resolveFamily to be set during hot reload.");var M=!1,$=!1;if(x!==null){var J=pl(x);J!==void 0&&(d.has(J)?$=!0:o.has(J)&&(b===m?$=!0:M=!0))}if(Ey!==null&&(Ey.has(i)||h!==null&&Ey.has(h))&&($=!0),$&&(i._debugNeedsRemount=!0),$||M){var Q=fs(i,Lt);Q!==null&&co(Q,i,Lt,ir)}g!==null&&!$&&DO(g,o,d),C!==null&&DO(C,o,d)}}var Sie=function(i,o){{var d=new Set,h=new Set(o.map(function(g){return g.current}));return LO(i.current,h,d),d}};function LO(i,o,d){{var h=i.child,g=i.sibling,C=i.tag,b=i.type,k=null;switch(C){case p:case Z:case m:k=b;break;case j:k=b.render;break}var x=!1;k!==null&&o.has(k)&&(x=!0),x?Tie(i,d):h!==null&&LO(h,o,d),g!==null&&LO(g,o,d)}}function Tie(i,o){{var d=Rie(i,o);if(d)return;for(var h=i;;){switch(h.tag){case T:o.add(h.stateNode);return;case S:o.add(h.stateNode.containerInfo);return;case E:o.add(h.stateNode.containerInfo);return}if(h.return===null)throw new Error("Expected to reach root first.");h=h.return}}}function Rie(i,o){for(var d=i,h=!1;;){if(d.tag===T)h=!0,o.add(d.stateNode);else if(d.child!==null){d.child.return=d,d=d.child;continue}if(d===i)return h;for(;d.sibling===null;){if(d.return===null||d.return===i)return h;d=d.return}d.sibling.return=d.return,d=d.sibling}return!1}var UO;{UO=!1;try{var g4=Object.preventExtensions({})}catch{UO=!0}}function kie(i,o,d,h){this.tag=i,this.key=d,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=o,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=h,this.flags=kt,this.subtreeFlags=kt,this.deletions=null,this.lanes=Se,this.childLanes=Se,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,!UO&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Us=function(i,o,d,h){return new kie(i,o,d,h)};function FO(i){var o=i.prototype;return!!(o&&o.isReactComponent)}function Aie(i){return typeof i=="function"&&!FO(i)&&i.defaultProps===void 0}function xie(i){if(typeof i=="function")return FO(i)?m:p;if(i!=null){var o=i.$$typeof;if(o===Qe)return j;if(o===$t)return Y}return y}function _v(i,o){var d=i.alternate;d===null?(d=Us(i.tag,o,i.key,i.mode),d.elementType=i.elementType,d.type=i.type,d.stateNode=i.stateNode,d._debugSource=i._debugSource,d._debugOwner=i._debugOwner,d._debugHookTypes=i._debugHookTypes,d.alternate=i,i.alternate=d):(d.pendingProps=o,d.type=i.type,d.flags=kt,d.subtreeFlags=kt,d.deletions=null,d.actualDuration=0,d.actualStartTime=-1),d.flags=i.flags&eo,d.childLanes=i.childLanes,d.lanes=i.lanes,d.child=i.child,d.memoizedProps=i.memoizedProps,d.memoizedState=i.memoizedState,d.updateQueue=i.updateQueue;var h=i.dependencies;switch(d.dependencies=h===null?null:{lanes:h.lanes,firstContext:h.firstContext},d.sibling=i.sibling,d.index=i.index,d.ref=i.ref,d.selfBaseDuration=i.selfBaseDuration,d.treeBaseDuration=i.treeBaseDuration,d._debugNeedsRemount=i._debugNeedsRemount,d.tag){case y:case p:case Z:d.type=wy(i.type);break;case m:d.type=MO(i.type);break;case j:d.type=PO(i.type);break}return d}function Iie(i,o){i.flags&=eo|hr;var d=i.alternate;if(d===null)i.childLanes=Se,i.lanes=o,i.child=null,i.subtreeFlags=kt,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null,i.selfBaseDuration=0,i.treeBaseDuration=0;else{i.childLanes=d.childLanes,i.lanes=d.lanes,i.child=d.child,i.subtreeFlags=kt,i.deletions=null,i.memoizedProps=d.memoizedProps,i.memoizedState=d.memoizedState,i.updateQueue=d.updateQueue,i.type=d.type;var h=d.dependencies;i.dependencies=h===null?null:{lanes:h.lanes,firstContext:h.firstContext},i.selfBaseDuration=d.selfBaseDuration,i.treeBaseDuration=d.treeBaseDuration}return i}function Oie(i,o,d){var h;return i===YS?(h=cn,o===!0&&(h|=Ir,h|=os)):h=Nt,to&&(h|=Dt),Us(E,null,null,h)}function $O(i,o,d,h,g,C){var b=y,k=i;if(typeof i=="function")FO(i)?(b=m,k=MO(k)):k=wy(k);else if(typeof i=="string")b=T;else e:switch(i){case Ji:return yh(d.children,g,C,o);case sa:b=P,g|=Ir,(g&cn)!==Nt&&(g|=os);break;case B:return Nie(d,g,C,o);case jt:return Mie(d,g,C,o);case Rt:return Pie(d,g,C,o);case sr:return y4(d,g,C,o);case Zi:case jr:case Xs:case pf:case ar:default:{if(typeof i=="object"&&i!==null)switch(i.$$typeof){case Ce:b=L;break e;case He:b=D;break e;case Qe:b=j,k=PO(k);break e;case $t:b=Y;break e;case St:b=Re,k=null;break e}var x="";{(i===void 0||typeof i=="object"&&i!==null&&Object.keys(i).length===0)&&(x+=" 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 M=h?Vt(h):null;M&&(x+=`
227
-
228
- Check the render method of \``+M+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(i==null?i:typeof i)+"."+x))}}var $=Us(b,d,o,g);return $.elementType=i,$.type=k,$.lanes=C,$._debugOwner=h,$}function HO(i,o,d){var h=null;h=i._owner;var g=i.type,C=i.key,b=i.props,k=$O(g,C,b,h,o,d);return k._debugSource=i._source,k._debugOwner=i._owner,k}function yh(i,o,d,h){var g=Us(I,i,h,o);return g.lanes=d,g}function Nie(i,o,d,h){typeof i.id!="string"&&u('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof i.id);var g=Us(F,i,h,o|Dt);return g.elementType=B,g.lanes=d,g.stateNode={effectDuration:0,passiveEffectDuration:0},g}function Mie(i,o,d,h){var g=Us(V,i,h,o);return g.elementType=jt,g.lanes=d,g}function Pie(i,o,d,h){var g=Us(Pe,i,h,o);return g.elementType=Rt,g.lanes=d,g}function y4(i,o,d,h){var g=Us(te,i,h,o);g.elementType=sr,g.lanes=d;var C={isHidden:!1};return g.stateNode=C,g}function jO(i,o,d){var h=Us(A,i,null,o);return h.lanes=d,h}function Die(){var i=Us(T,null,null,Nt);return i.elementType="DELETED",i}function Lie(i){var o=Us(at,null,null,Nt);return o.stateNode=i,o}function zO(i,o,d){var h=i.children!==null?i.children:[],g=Us(S,h,i.key,o);return g.lanes=d,g.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},g}function _4(i,o){return i===null&&(i=Us(y,null,null,Nt)),i.tag=o.tag,i.key=o.key,i.elementType=o.elementType,i.type=o.type,i.stateNode=o.stateNode,i.return=o.return,i.child=o.child,i.sibling=o.sibling,i.index=o.index,i.ref=o.ref,i.pendingProps=o.pendingProps,i.memoizedProps=o.memoizedProps,i.updateQueue=o.updateQueue,i.memoizedState=o.memoizedState,i.dependencies=o.dependencies,i.mode=o.mode,i.flags=o.flags,i.subtreeFlags=o.subtreeFlags,i.deletions=o.deletions,i.lanes=o.lanes,i.childLanes=o.childLanes,i.alternate=o.alternate,i.actualDuration=o.actualDuration,i.actualStartTime=o.actualStartTime,i.selfBaseDuration=o.selfBaseDuration,i.treeBaseDuration=o.treeBaseDuration,i._debugSource=o._debugSource,i._debugOwner=o._debugOwner,i._debugNeedsRemount=o._debugNeedsRemount,i._debugHookTypes=o._debugHookTypes,i}function Uie(i,o,d,h,g){this.tag=o,this.containerInfo=i,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=bx,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=bn,this.eventTimes=Ig(Se),this.expirationTimes=Ig(ir),this.pendingLanes=Se,this.suspendedLanes=Se,this.pingedLanes=Se,this.expiredLanes=Se,this.mutableReadLanes=Se,this.finishedLanes=Se,this.entangledLanes=Se,this.entanglements=Ig(Se),this.identifierPrefix=h,this.onRecoverableError=g,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var C=this.pendingUpdatersLaneMap=[],b=0;b<vr;b++)C.push(new Set)}switch(o){case YS:this._debugRootType=d?"hydrateRoot()":"createRoot()";break;case oh:this._debugRootType=d?"hydrate()":"render()";break}}function C4(i,o,d,h,g,C,b,k,x,M){var $=new Uie(i,o,d,k,x),J=Oie(o,C);$.current=J,J.stateNode=$;{var Q={element:h,isDehydrated:d,cache:null,transitions:null,pendingSuspenseBoundaries:null};J.memoizedState=Q}return Qx(J),$}var BO="18.2.0";function Fie(i,o,d){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return Di(h),{$$typeof:ci,key:h==null?null:""+h,children:i,containerInfo:o,implementation:d}}var qO,VO;qO=!1,VO={};function E4(i){if(!i)return Ls;var o=es(i),d=Ete(o);if(o.tag===m){var h=o.type;if(fc(h))return GF(o,h,d)}return d}function $ie(i,o){{var d=es(i);if(d===void 0){if(typeof i.render=="function")throw new Error("Unable to find node on an unmounted component.");var h=Object.keys(i).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+h)}var g=is(d);if(g===null)return null;if(g.mode&Ir){var C=Vt(d)||"Component";if(!VO[C]){VO[C]=!0;var b=Ar;try{$n(g),d.mode&Ir?u("%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",o,o,C):u("%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",o,o,C)}finally{b?$n(b):zr()}}}return g.stateNode}}function w4(i,o,d,h,g,C,b,k){var x=!1,M=null;return C4(i,o,x,M,d,h,g,C,b)}function b4(i,o,d,h,g,C,b,k,x,M){var $=!0,J=C4(d,h,$,i,g,C,b,k,x);J.context=E4(null);var Q=J.current,ce=Ua(),fe=mh(Q),we=Ad(ce,fe);return we.callback=o??null,lh(Q,we,fe),Kre(J,fe,ce),J}function YC(i,o,d,h){Qb(o,i);var g=o.current,C=Ua(),b=mh(g);id(b);var k=E4(d);o.context===null?o.context=k:o.pendingContext=k,ua&&Ar!==null&&!qO&&(qO=!0,u(`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
-
230
- Check the render method of %s.`,Vt(Ar)||"Unknown"));var x=Ad(C,b);x.payload={element:i},h=h===void 0?null:h,h!==null&&(typeof h!="function"&&u("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",h),x.callback=h);var M=lh(g,x,b);return M!==null&&(co(M,g,b,C),lT(M,g,b)),b}function ZT(i){var o=i.current;if(!o.child)return null;switch(o.child.tag){case T:return o.child.stateNode;default:return o.child.stateNode}}function Hie(i){switch(i.tag){case E:{var o=i.stateNode;if(xi(o)){var d=BA(o);Qre(o,d)}break}case V:{Nd(function(){var g=fs(i,Lt);if(g!==null){var C=Ua();co(g,i,Lt,C)}});var h=Lt;KO(i,h);break}}}function S4(i,o){var d=i.memoizedState;d!==null&&d.dehydrated!==null&&(d.retryLane=lS(d.retryLane,o))}function KO(i,o){S4(i,o);var d=i.alternate;d&&S4(d,o)}function jie(i){if(i.tag===V){var o=Uf,d=fs(i,o);if(d!==null){var h=Ua();co(d,i,o,h)}KO(i,o)}}function zie(i){if(i.tag===V){var o=mh(i),d=fs(i,o);if(d!==null){var h=Ua();co(d,i,o,h)}KO(i,o)}}function T4(i){var o=Gb(i);return o===null?null:o.stateNode}var R4=function(i){return null};function Bie(i){return R4(i)}var k4=function(i){return!1};function qie(i){return k4(i)}var A4=null,x4=null,I4=null,O4=null,N4=null,M4=null,P4=null,D4=null,L4=null;{var U4=function(i,o,d){var h=o[d],g=Cn(i)?i.slice():ln({},i);return d+1===o.length?(Cn(g)?g.splice(h,1):delete g[h],g):(g[h]=U4(i[h],o,d+1),g)},F4=function(i,o){return U4(i,o,0)},$4=function(i,o,d,h){var g=o[h],C=Cn(i)?i.slice():ln({},i);if(h+1===o.length){var b=d[h];C[b]=C[g],Cn(C)?C.splice(g,1):delete C[g]}else C[g]=$4(i[g],o,d,h+1);return C},H4=function(i,o,d){if(o.length!==d.length){l("copyWithRename() expects paths of the same length");return}else for(var h=0;h<d.length-1;h++)if(o[h]!==d[h]){l("copyWithRename() expects paths to be the same except for the deepest key");return}return $4(i,o,d,0)},j4=function(i,o,d,h){if(d>=o.length)return h;var g=o[d],C=Cn(i)?i.slice():ln({},i);return C[g]=j4(i[g],o,d+1,h),C},z4=function(i,o,d){return j4(i,o,0,d)},GO=function(i,o){for(var d=i.memoizedState;d!==null&&o>0;)d=d.next,o--;return d};A4=function(i,o,d,h){var g=GO(i,o);if(g!==null){var C=z4(g.memoizedState,d,h);g.memoizedState=C,g.baseState=C,i.memoizedProps=ln({},i.memoizedProps);var b=fs(i,Lt);b!==null&&co(b,i,Lt,ir)}},x4=function(i,o,d){var h=GO(i,o);if(h!==null){var g=F4(h.memoizedState,d);h.memoizedState=g,h.baseState=g,i.memoizedProps=ln({},i.memoizedProps);var C=fs(i,Lt);C!==null&&co(C,i,Lt,ir)}},I4=function(i,o,d,h){var g=GO(i,o);if(g!==null){var C=H4(g.memoizedState,d,h);g.memoizedState=C,g.baseState=C,i.memoizedProps=ln({},i.memoizedProps);var b=fs(i,Lt);b!==null&&co(b,i,Lt,ir)}},O4=function(i,o,d){i.pendingProps=z4(i.memoizedProps,o,d),i.alternate&&(i.alternate.pendingProps=i.pendingProps);var h=fs(i,Lt);h!==null&&co(h,i,Lt,ir)},N4=function(i,o){i.pendingProps=F4(i.memoizedProps,o),i.alternate&&(i.alternate.pendingProps=i.pendingProps);var d=fs(i,Lt);d!==null&&co(d,i,Lt,ir)},M4=function(i,o,d){i.pendingProps=H4(i.memoizedProps,o,d),i.alternate&&(i.alternate.pendingProps=i.pendingProps);var h=fs(i,Lt);h!==null&&co(h,i,Lt,ir)},P4=function(i){var o=fs(i,Lt);o!==null&&co(o,i,Lt,ir)},D4=function(i){R4=i},L4=function(i){k4=i}}function Vie(i){var o=is(i);return o===null?null:o.stateNode}function Kie(i){return null}function Gie(){return Ar}function Wie(i){var o=i.findFiberByHostInstance,d=t.ReactCurrentDispatcher;return w0({bundleType:i.bundleType,version:i.version,rendererPackageName:i.rendererPackageName,rendererConfig:i.rendererConfig,overrideHookState:A4,overrideHookStateDeletePath:x4,overrideHookStateRenamePath:I4,overrideProps:O4,overridePropsDeletePath:N4,overridePropsRenamePath:M4,setErrorHandler:D4,setSuspenseHandler:L4,scheduleUpdate:P4,currentDispatcherRef:d,findHostInstanceByFiber:Vie,findFiberByHostInstance:o||Kie,findHostInstancesForRefresh:Sie,scheduleRefresh:wie,scheduleRoot:bie,setRefreshHandler:Eie,getCurrentFiber:Gie,reconcilerVersion:BO})}var B4=typeof reportError=="function"?reportError:function(i){console.error(i)};function WO(i){this._internalRoot=i}eR.prototype.render=WO.prototype.render=function(i){var o=this._internalRoot;if(o===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?u("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):tR(arguments[1])?u("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"&&u("You passed a second argument to root.render(...) but it only accepts one argument.");var d=o.containerInfo;if(d.nodeType!==di){var h=T4(o.current);h&&h.parentNode!==d&&u("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.")}}YC(i,o,null,null)},eR.prototype.unmount=WO.prototype.unmount=function(){typeof arguments[0]=="function"&&u("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var i=this._internalRoot;if(i!==null){this._internalRoot=null;var o=i.containerInfo;t4()&&u("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."),Nd(function(){YC(null,i,null,null)}),zF(o)}};function Yie(i,o){if(!tR(i))throw new Error("createRoot(...): Target container is not a DOM element.");q4(i);var d=!1,h=!1,g="",C=B4;o!=null&&(o.hydrate?l("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof o=="object"&&o!==null&&o.$$typeof===ui&&u(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
231
-
232
- let root = createRoot(domContainer);
233
- root.render(<App />);`),o.unstable_strictMode===!0&&(d=!0),o.identifierPrefix!==void 0&&(g=o.identifierPrefix),o.onRecoverableError!==void 0&&(C=o.onRecoverableError),o.transitionCallbacks!==void 0&&o.transitionCallbacks);var b=w4(i,YS,null,d,h,g,C);zS(b.current,i);var k=i.nodeType===di?i.parentNode:i;return rC(k),new WO(b)}function eR(i){this._internalRoot=i}function Qie(i){i&&mS(i)}eR.prototype.unstable_scheduleHydration=Qie;function Xie(i,o,d){if(!tR(i))throw new Error("hydrateRoot(...): Target container is not a DOM element.");q4(i),o===void 0&&u("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var h=d??null,g=d!=null&&d.hydratedSources||null,C=!1,b=!1,k="",x=B4;d!=null&&(d.unstable_strictMode===!0&&(C=!0),d.identifierPrefix!==void 0&&(k=d.identifierPrefix),d.onRecoverableError!==void 0&&(x=d.onRecoverableError));var M=b4(o,null,i,YS,h,C,b,k,x);if(zS(M.current,i),rC(i),g)for(var $=0;$<g.length;$++){var J=g[$];one(M,J)}return new eR(M)}function tR(i){return!!(i&&(i.nodeType===da||i.nodeType===Os||i.nodeType===Yc||!xe))}function QC(i){return!!(i&&(i.nodeType===da||i.nodeType===Os||i.nodeType===Yc||i.nodeType===di&&i.nodeValue===" react-mount-point-unstable "))}function q4(i){i.nodeType===da&&i.tagName&&i.tagName.toUpperCase()==="BODY"&&u("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."),pC(i)&&(i._reactRootContainer?u("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):u("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 Jie=t.ReactCurrentOwner,V4;V4=function(i){if(i._reactRootContainer&&i.nodeType!==di){var o=T4(i._reactRootContainer.current);o&&o.parentNode!==i&&u("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 d=!!i._reactRootContainer,h=YO(i),g=!!(h&&rh(h));g&&!d&&u("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."),i.nodeType===da&&i.tagName&&i.tagName.toUpperCase()==="BODY"&&u("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 YO(i){return i?i.nodeType===Os?i.documentElement:i.firstChild:null}function K4(){}function Zie(i,o,d,h,g){if(g){if(typeof h=="function"){var C=h;h=function(){var Q=ZT(b);C.call(Q)}}var b=b4(o,h,i,oh,null,!1,!1,"",K4);i._reactRootContainer=b,zS(b.current,i);var k=i.nodeType===di?i.parentNode:i;return rC(k),Nd(),b}else{for(var x;x=i.lastChild;)i.removeChild(x);if(typeof h=="function"){var M=h;h=function(){var Q=ZT($);M.call(Q)}}var $=w4(i,oh,null,!1,!1,"",K4);i._reactRootContainer=$,zS($.current,i);var J=i.nodeType===di?i.parentNode:i;return rC(J),Nd(function(){YC(o,$,d,h)}),$}}function eoe(i,o){i!==null&&typeof i!="function"&&u("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",o,i)}function nR(i,o,d,h,g){V4(d),eoe(g===void 0?null:g,"render");var C=d._reactRootContainer,b;if(!C)b=Zie(d,o,i,g,h);else{if(b=C,typeof g=="function"){var k=g;g=function(){var x=ZT(b);k.call(x)}}YC(o,b,i,g)}return ZT(b)}function toe(i){{var o=Jie.current;if(o!==null&&o.stateNode!==null){var d=o.stateNode._warnedAboutRefsInRender;d||u("%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.",kn(o.type)||"A component"),o.stateNode._warnedAboutRefsInRender=!0}}return i==null?null:i.nodeType===da?i:$ie(i,"findDOMNode")}function noe(i,o,d){if(u("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"),!QC(o))throw new Error("Target container is not a DOM element.");{var h=pC(o)&&o._reactRootContainer===void 0;h&&u("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 nR(null,i,o,!0,d)}function roe(i,o,d){if(u("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"),!QC(o))throw new Error("Target container is not a DOM element.");{var h=pC(o)&&o._reactRootContainer===void 0;h&&u("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 nR(null,i,o,!1,d)}function ioe(i,o,d,h){if(u("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"),!QC(d))throw new Error("Target container is not a DOM element.");if(i==null||!Mp(i))throw new Error("parentComponent must be a valid React Component");return nR(i,o,d,!1,h)}function ooe(i){if(!QC(i))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var o=pC(i)&&i._reactRootContainer===void 0;o&&u("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(i._reactRootContainer){{var d=YO(i),h=d&&!rh(d);h&&u("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Nd(function(){nR(null,null,i,!1,function(){i._reactRootContainer=null,zF(i)})}),!0}else{{var g=YO(i),C=!!(g&&rh(g)),b=i.nodeType===da&&QC(i.parentNode)&&!!i.parentNode._reactRootContainer;C&&u("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",b?"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}}ct(Hie),cS(jie),Wp(zie),$0(ss),fS(Vp),(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")&&u("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"),qb(lee),Xm(RO,Xre,Nd);function aoe(i,o){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!tR(o))throw new Error("Target container is not a DOM element.");return Fie(i,o,null,d)}function soe(i,o,d,h){return ioe(i,o,d,h)}var QO={usingClientEntryPoint:!1,Events:[rh,Zg,BS,Qm,Ip,RO]};function loe(i,o){return QO.usingClientEntryPoint||u('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),Yie(i,o)}function uoe(i,o,d){return QO.usingClientEntryPoint||u('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),Xie(i,o,d)}function coe(i){return t4()&&u("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."),Nd(i)}var doe=Wie({findFiberByHostInstance:iv,bundleType:1,version:BO,rendererPackageName:"react-dom"});if(!doe&&ur&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var G4=window.location.protocol;/^(https?|file):$/.test(G4)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(G4==="file:"?`
234
- You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}ja.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=QO,ja.createPortal=aoe,ja.createRoot=loe,ja.findDOMNode=toe,ja.flushSync=coe,ja.hydrate=noe,ja.hydrateRoot=uoe,ja.render=roe,ja.unmountComponentAtNode=ooe,ja.unstable_batchedUpdates=RO,ja.unstable_renderSubtreeIntoContainer=soe,ja.version=BO,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),ja}function lN(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(lN)}catch(n){console.error(n)}}}process.env.NODE_ENV==="production"?(lN(),sR.exports=ej()):sR.exports=tj();var cR=sR.exports,ky=cR;if(process.env.NODE_ENV==="production")Ry.createRoot=ky.createRoot,Ry.hydrateRoot=ky.hydrateRoot;else{var ZC=ky.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Ry.createRoot=function(n,e){ZC.usingClientEntryPoint=!0;try{return ky.createRoot(n,e)}finally{ZC.usingClientEntryPoint=!1}},Ry.hydrateRoot=function(n,e,t){ZC.usingClientEntryPoint=!0;try{return ky.hydrateRoot(n,e,t)}finally{ZC.usingClientEntryPoint=!1}}}var dR={exports:{}};const nj="2.0.0",uN=256,rj=Number.MAX_SAFE_INTEGER||9007199254740991,ij=16,oj=uN-6;var eE={MAX_LENGTH:uN,MAX_SAFE_COMPONENT_LENGTH:ij,MAX_SAFE_BUILD_LENGTH:oj,MAX_SAFE_INTEGER:rj,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:nj,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},tE=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{};(function(n,e){const{MAX_SAFE_COMPONENT_LENGTH:t,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:a}=eE,l=tE;e=n.exports={};const u=e.re=[],f=e.safeRe=[],p=e.src=[],m=e.t={};let y=0;const E="[a-zA-Z0-9-]",S=[["\\s",1],["\\d",a],[E,r]],T=I=>{for(const[P,D]of S)I=I.split(`${P}*`).join(`${P}{0,${D}}`).split(`${P}+`).join(`${P}{1,${D}}`);return I},A=(I,P,D)=>{const L=T(P),j=y++;l(I,j,P),m[I]=j,p[j]=P,u[j]=new RegExp(P,D?"g":void 0),f[j]=new RegExp(L,D?"g":void 0)};A("NUMERICIDENTIFIER","0|[1-9]\\d*"),A("NUMERICIDENTIFIERLOOSE","\\d+"),A("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${E}*`),A("MAINVERSION",`(${p[m.NUMERICIDENTIFIER]})\\.(${p[m.NUMERICIDENTIFIER]})\\.(${p[m.NUMERICIDENTIFIER]})`),A("MAINVERSIONLOOSE",`(${p[m.NUMERICIDENTIFIERLOOSE]})\\.(${p[m.NUMERICIDENTIFIERLOOSE]})\\.(${p[m.NUMERICIDENTIFIERLOOSE]})`),A("PRERELEASEIDENTIFIER",`(?:${p[m.NUMERICIDENTIFIER]}|${p[m.NONNUMERICIDENTIFIER]})`),A("PRERELEASEIDENTIFIERLOOSE",`(?:${p[m.NUMERICIDENTIFIERLOOSE]}|${p[m.NONNUMERICIDENTIFIER]})`),A("PRERELEASE",`(?:-(${p[m.PRERELEASEIDENTIFIER]}(?:\\.${p[m.PRERELEASEIDENTIFIER]})*))`),A("PRERELEASELOOSE",`(?:-?(${p[m.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${p[m.PRERELEASEIDENTIFIERLOOSE]})*))`),A("BUILDIDENTIFIER",`${E}+`),A("BUILD",`(?:\\+(${p[m.BUILDIDENTIFIER]}(?:\\.${p[m.BUILDIDENTIFIER]})*))`),A("FULLPLAIN",`v?${p[m.MAINVERSION]}${p[m.PRERELEASE]}?${p[m.BUILD]}?`),A("FULL",`^${p[m.FULLPLAIN]}$`),A("LOOSEPLAIN",`[v=\\s]*${p[m.MAINVERSIONLOOSE]}${p[m.PRERELEASELOOSE]}?${p[m.BUILD]}?`),A("LOOSE",`^${p[m.LOOSEPLAIN]}$`),A("GTLT","((?:<|>)?=?)"),A("XRANGEIDENTIFIERLOOSE",`${p[m.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),A("XRANGEIDENTIFIER",`${p[m.NUMERICIDENTIFIER]}|x|X|\\*`),A("XRANGEPLAIN",`[v=\\s]*(${p[m.XRANGEIDENTIFIER]})(?:\\.(${p[m.XRANGEIDENTIFIER]})(?:\\.(${p[m.XRANGEIDENTIFIER]})(?:${p[m.PRERELEASE]})?${p[m.BUILD]}?)?)?`),A("XRANGEPLAINLOOSE",`[v=\\s]*(${p[m.XRANGEIDENTIFIERLOOSE]})(?:\\.(${p[m.XRANGEIDENTIFIERLOOSE]})(?:\\.(${p[m.XRANGEIDENTIFIERLOOSE]})(?:${p[m.PRERELEASELOOSE]})?${p[m.BUILD]}?)?)?`),A("XRANGE",`^${p[m.GTLT]}\\s*${p[m.XRANGEPLAIN]}$`),A("XRANGELOOSE",`^${p[m.GTLT]}\\s*${p[m.XRANGEPLAINLOOSE]}$`),A("COERCE",`(^|[^\\d])(\\d{1,${t}})(?:\\.(\\d{1,${t}}))?(?:\\.(\\d{1,${t}}))?(?:$|[^\\d])`),A("COERCERTL",p[m.COERCE],!0),A("LONETILDE","(?:~>?)"),A("TILDETRIM",`(\\s*)${p[m.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",A("TILDE",`^${p[m.LONETILDE]}${p[m.XRANGEPLAIN]}$`),A("TILDELOOSE",`^${p[m.LONETILDE]}${p[m.XRANGEPLAINLOOSE]}$`),A("LONECARET","(?:\\^)"),A("CARETTRIM",`(\\s*)${p[m.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",A("CARET",`^${p[m.LONECARET]}${p[m.XRANGEPLAIN]}$`),A("CARETLOOSE",`^${p[m.LONECARET]}${p[m.XRANGEPLAINLOOSE]}$`),A("COMPARATORLOOSE",`^${p[m.GTLT]}\\s*(${p[m.LOOSEPLAIN]})$|^$`),A("COMPARATOR",`^${p[m.GTLT]}\\s*(${p[m.FULLPLAIN]})$|^$`),A("COMPARATORTRIM",`(\\s*)${p[m.GTLT]}\\s*(${p[m.LOOSEPLAIN]}|${p[m.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",A("HYPHENRANGE",`^\\s*(${p[m.XRANGEPLAIN]})\\s+-\\s+(${p[m.XRANGEPLAIN]})\\s*$`),A("HYPHENRANGELOOSE",`^\\s*(${p[m.XRANGEPLAINLOOSE]})\\s+-\\s+(${p[m.XRANGEPLAINLOOSE]})\\s*$`),A("STAR","(<|>)?=?\\s*\\*"),A("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),A("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(dR,dR.exports);var Ay=dR.exports;const aj=Object.freeze({loose:!0}),sj=Object.freeze({});var fR=n=>n?typeof n!="object"?aj:n:sj;const cN=/^[0-9]+$/,dN=(n,e)=>{const t=cN.test(n),r=cN.test(e);return t&&r&&(n=+n,e=+e),n===e?0:t&&!r?-1:r&&!t?1:n<e?-1:1};var fN={compareIdentifiers:dN,rcompareIdentifiers:(n,e)=>dN(e,n)};const nE=tE,{MAX_LENGTH:hN,MAX_SAFE_INTEGER:rE}=eE,{safeRe:pN,t:vN}=Ay,lj=fR,{compareIdentifiers:Cv}=fN;var Ta=class Ec{constructor(e,t){if(t=lj(t),e instanceof Ec){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>hN)throw new TypeError(`version is longer than ${hN} characters`);nE("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?pN[vN.LOOSE]:pN[vN.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>rE||this.major<0)throw new TypeError("Invalid major version");if(this.minor>rE||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>rE||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(a=>{if(/^[0-9]+$/.test(a)){const l=+a;if(l>=0&&l<rE)return l}return a}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(nE("SemVer.compare",this.version,this.options,e),!(e instanceof Ec)){if(typeof e=="string"&&e===this.version)return 0;e=new Ec(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof Ec||(e=new Ec(e,this.options)),Cv(this.major,e.major)||Cv(this.minor,e.minor)||Cv(this.patch,e.patch)}comparePre(e){if(e instanceof Ec||(e=new Ec(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],a=e.prerelease[t];if(nE("prerelease compare",t,r,a),r===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(r===void 0)return-1;if(r===a)continue;return Cv(r,a)}while(++t)}compareBuild(e){e instanceof Ec||(e=new Ec(e,this.options));let t=0;do{const r=this.build[t],a=e.build[t];if(nE("prerelease compare",t,r,a),r===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(r===void 0)return-1;if(r===a)continue;return Cv(r,a)}while(++t)}inc(e,t,r){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const a=Number(r)?1:0;if(!t&&r===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[a];else{let l=this.prerelease.length;for(;--l>=0;)typeof this.prerelease[l]=="number"&&(this.prerelease[l]++,l=-2);if(l===-1){if(t===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(a)}}if(t){let l=[t,a];r===!1&&(l=[t]),Cv(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=l):this.prerelease=l}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};const mN=Ta;var Ev=(n,e,t=!1)=>{if(n instanceof mN)return n;try{return new mN(n,e)}catch(r){if(!t)return null;throw r}};const uj=Ev;var cj=(n,e)=>{const t=uj(n,e);return t?t.version:null};const dj=Ev;var fj=(n,e)=>{const t=dj(n.trim().replace(/^[=v]+/,""),e);return t?t.version:null};const gN=Ta;var hj=(n,e,t,r,a)=>{typeof t=="string"&&(a=r,r=t,t=void 0);try{return new gN(n instanceof gN?n.version:n,t).inc(e,r,a).version}catch{return null}};const yN=Ev;var pj=(n,e)=>{const t=yN(n,null,!0),r=yN(e,null,!0),a=t.compare(r);if(a===0)return null;const l=a>0,u=l?t:r,f=l?r:t,p=!!u.prerelease.length;if(!!f.prerelease.length&&!p)return!f.patch&&!f.minor?"major":u.patch?"patch":u.minor?"minor":"major";const y=p?"pre":"";return t.major!==r.major?y+"major":t.minor!==r.minor?y+"minor":t.patch!==r.patch?y+"patch":"prerelease"};const vj=Ta;var mj=(n,e)=>new vj(n,e).major;const gj=Ta;var yj=(n,e)=>new gj(n,e).minor;const _j=Ta;var Cj=(n,e)=>new _j(n,e).patch;const Ej=Ev;var wj=(n,e)=>{const t=Ej(n,e);return t&&t.prerelease.length?t.prerelease:null};const _N=Ta;var vl=(n,e,t)=>new _N(n,t).compare(new _N(e,t));const bj=vl;var Sj=(n,e,t)=>bj(e,n,t);const Tj=vl;var Rj=(n,e)=>Tj(n,e,!0);const CN=Ta;var hR=(n,e,t)=>{const r=new CN(n,t),a=new CN(e,t);return r.compare(a)||r.compareBuild(a)};const kj=hR;var Aj=(n,e)=>n.sort((t,r)=>kj(t,r,e));const xj=hR;var Ij=(n,e)=>n.sort((t,r)=>xj(r,t,e));const Oj=vl;var iE=(n,e,t)=>Oj(n,e,t)>0;const Nj=vl;var pR=(n,e,t)=>Nj(n,e,t)<0;const Mj=vl;var EN=(n,e,t)=>Mj(n,e,t)===0;const Pj=vl;var wN=(n,e,t)=>Pj(n,e,t)!==0;const Dj=vl;var vR=(n,e,t)=>Dj(n,e,t)>=0;const Lj=vl;var mR=(n,e,t)=>Lj(n,e,t)<=0;const Uj=EN,Fj=wN,$j=iE,Hj=vR,jj=pR,zj=mR;var bN=(n,e,t,r)=>{switch(e){case"===":return typeof n=="object"&&(n=n.version),typeof t=="object"&&(t=t.version),n===t;case"!==":return typeof n=="object"&&(n=n.version),typeof t=="object"&&(t=t.version),n!==t;case"":case"=":case"==":return Uj(n,t,r);case"!=":return Fj(n,t,r);case">":return $j(n,t,r);case">=":return Hj(n,t,r);case"<":return jj(n,t,r);case"<=":return zj(n,t,r);default:throw new TypeError(`Invalid operator: ${e}`)}};const Bj=Ta,qj=Ev,{safeRe:oE,t:aE}=Ay;var Vj=(n,e)=>{if(n instanceof Bj)return n;if(typeof n=="number"&&(n=String(n)),typeof n!="string")return null;e=e||{};let t=null;if(!e.rtl)t=n.match(oE[aE.COERCE]);else{let r;for(;(r=oE[aE.COERCERTL].exec(n))&&(!t||t.index+t[0].length!==n.length);)(!t||r.index+r[0].length!==t.index+t[0].length)&&(t=r),oE[aE.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;oE[aE.COERCERTL].lastIndex=-1}return t===null?null:qj(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,e)},gR,SN;function Kj(){return SN||(SN=1,gR=function(n){n.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}),gR}var Gj=Un;Un.Node=Eh,Un.create=Un;function Un(n){var e=this;if(e instanceof Un||(e=new Un),e.tail=null,e.head=null,e.length=0,n&&typeof n.forEach=="function")n.forEach(function(a){e.push(a)});else if(arguments.length>0)for(var t=0,r=arguments.length;t<r;t++)e.push(arguments[t]);return e}Un.prototype.removeNode=function(n){if(n.list!==this)throw new Error("removing node which does not belong to this list");var e=n.next,t=n.prev;return e&&(e.prev=t),t&&(t.next=e),n===this.head&&(this.head=e),n===this.tail&&(this.tail=t),n.list.length--,n.next=null,n.prev=null,n.list=null,e},Un.prototype.unshiftNode=function(n){if(n!==this.head){n.list&&n.list.removeNode(n);var e=this.head;n.list=this,n.next=e,e&&(e.prev=n),this.head=n,this.tail||(this.tail=n),this.length++}},Un.prototype.pushNode=function(n){if(n!==this.tail){n.list&&n.list.removeNode(n);var e=this.tail;n.list=this,n.prev=e,e&&(e.next=n),this.tail=n,this.head||(this.head=n),this.length++}},Un.prototype.push=function(){for(var n=0,e=arguments.length;n<e;n++)Yj(this,arguments[n]);return this.length},Un.prototype.unshift=function(){for(var n=0,e=arguments.length;n<e;n++)Qj(this,arguments[n]);return this.length},Un.prototype.pop=function(){if(this.tail){var n=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,n}},Un.prototype.shift=function(){if(this.head){var n=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,n}},Un.prototype.forEach=function(n,e){e=e||this;for(var t=this.head,r=0;t!==null;r++)n.call(e,t.value,r,this),t=t.next},Un.prototype.forEachReverse=function(n,e){e=e||this;for(var t=this.tail,r=this.length-1;t!==null;r--)n.call(e,t.value,r,this),t=t.prev},Un.prototype.get=function(n){for(var e=0,t=this.head;t!==null&&e<n;e++)t=t.next;if(e===n&&t!==null)return t.value},Un.prototype.getReverse=function(n){for(var e=0,t=this.tail;t!==null&&e<n;e++)t=t.prev;if(e===n&&t!==null)return t.value},Un.prototype.map=function(n,e){e=e||this;for(var t=new Un,r=this.head;r!==null;)t.push(n.call(e,r.value,this)),r=r.next;return t},Un.prototype.mapReverse=function(n,e){e=e||this;for(var t=new Un,r=this.tail;r!==null;)t.push(n.call(e,r.value,this)),r=r.prev;return t},Un.prototype.reduce=function(n,e){var t,r=this.head;if(arguments.length>1)t=e;else if(this.head)r=this.head.next,t=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=0;r!==null;a++)t=n(t,r.value,a),r=r.next;return t},Un.prototype.reduceReverse=function(n,e){var t,r=this.tail;if(arguments.length>1)t=e;else if(this.tail)r=this.tail.prev,t=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=this.length-1;r!==null;a--)t=n(t,r.value,a),r=r.prev;return t},Un.prototype.toArray=function(){for(var n=new Array(this.length),e=0,t=this.head;t!==null;e++)n[e]=t.value,t=t.next;return n},Un.prototype.toArrayReverse=function(){for(var n=new Array(this.length),e=0,t=this.tail;t!==null;e++)n[e]=t.value,t=t.prev;return n},Un.prototype.slice=function(n,e){e=e||this.length,e<0&&(e+=this.length),n=n||0,n<0&&(n+=this.length);var t=new Un;if(e<n||e<0)return t;n<0&&(n=0),e>this.length&&(e=this.length);for(var r=0,a=this.head;a!==null&&r<n;r++)a=a.next;for(;a!==null&&r<e;r++,a=a.next)t.push(a.value);return t},Un.prototype.sliceReverse=function(n,e){e=e||this.length,e<0&&(e+=this.length),n=n||0,n<0&&(n+=this.length);var t=new Un;if(e<n||e<0)return t;n<0&&(n=0),e>this.length&&(e=this.length);for(var r=this.length,a=this.tail;a!==null&&r>e;r--)a=a.prev;for(;a!==null&&r>n;r--,a=a.prev)t.push(a.value);return t},Un.prototype.splice=function(n,e,...t){n>this.length&&(n=this.length-1),n<0&&(n=this.length+n);for(var r=0,a=this.head;a!==null&&r<n;r++)a=a.next;for(var l=[],r=0;a&&r<e;r++)l.push(a.value),a=this.removeNode(a);a===null&&(a=this.tail),a!==this.head&&a!==this.tail&&(a=a.prev);for(var r=0;r<t.length;r++)a=Wj(this,a,t[r]);return l},Un.prototype.reverse=function(){for(var n=this.head,e=this.tail,t=n;t!==null;t=t.prev){var r=t.prev;t.prev=t.next,t.next=r}return this.head=e,this.tail=n,this};function Wj(n,e,t){var r=e===n.head?new Eh(t,null,e,n):new Eh(t,e,e.next,n);return r.next===null&&(n.tail=r),r.prev===null&&(n.head=r),n.length++,r}function Yj(n,e){n.tail=new Eh(e,n.tail,null,n),n.head||(n.head=n.tail),n.length++}function Qj(n,e){n.head=new Eh(e,null,n.head,n),n.tail||(n.tail=n.head),n.length++}function Eh(n,e,t,r){if(!(this instanceof Eh))return new Eh(n,e,t,r);this.list=r,this.value=n,e?(e.next=this,this.prev=e):this.prev=null,t?(t.prev=this,this.next=t):this.next=null}try{Kj()(Un)}catch{}const Xj=Gj,wh=Symbol("max"),bc=Symbol("length"),wv=Symbol("lengthCalculator"),xy=Symbol("allowStale"),bh=Symbol("maxAge"),Sc=Symbol("dispose"),TN=Symbol("noDisposeOnSet"),ho=Symbol("lruList"),ml=Symbol("cache"),RN=Symbol("updateAgeOnGet"),yR=()=>1;class Jj{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");this[wh]=e.max||1/0;const t=e.length||yR;if(this[wv]=typeof t!="function"?yR:t,this[xy]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[bh]=e.maxAge||0,this[Sc]=e.dispose,this[TN]=e.noDisposeOnSet||!1,this[RN]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[wh]=e||1/0,Iy(this)}get max(){return this[wh]}set allowStale(e){this[xy]=!!e}get allowStale(){return this[xy]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[bh]=e,Iy(this)}get maxAge(){return this[bh]}set lengthCalculator(e){typeof e!="function"&&(e=yR),e!==this[wv]&&(this[wv]=e,this[bc]=0,this[ho].forEach(t=>{t.length=this[wv](t.value,t.key),this[bc]+=t.length})),Iy(this)}get lengthCalculator(){return this[wv]}get length(){return this[bc]}get itemCount(){return this[ho].length}rforEach(e,t){t=t||this;for(let r=this[ho].tail;r!==null;){const a=r.prev;kN(this,e,r,t),r=a}}forEach(e,t){t=t||this;for(let r=this[ho].head;r!==null;){const a=r.next;kN(this,e,r,t),r=a}}keys(){return this[ho].toArray().map(e=>e.key)}values(){return this[ho].toArray().map(e=>e.value)}reset(){this[Sc]&&this[ho]&&this[ho].length&&this[ho].forEach(e=>this[Sc](e.key,e.value)),this[ml]=new Map,this[ho]=new Xj,this[bc]=0}dump(){return this[ho].map(e=>sE(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[ho]}set(e,t,r){if(r=r||this[bh],r&&typeof r!="number")throw new TypeError("maxAge must be a number");const a=r?Date.now():0,l=this[wv](t,e);if(this[ml].has(e)){if(l>this[wh])return bv(this,this[ml].get(e)),!1;const p=this[ml].get(e).value;return this[Sc]&&(this[TN]||this[Sc](e,p.value)),p.now=a,p.maxAge=r,p.value=t,this[bc]+=l-p.length,p.length=l,this.get(e),Iy(this),!0}const u=new Zj(e,t,l,a,r);return u.length>this[wh]?(this[Sc]&&this[Sc](e,t),!1):(this[bc]+=u.length,this[ho].unshift(u),this[ml].set(e,this[ho].head),Iy(this),!0)}has(e){if(!this[ml].has(e))return!1;const t=this[ml].get(e).value;return!sE(this,t)}get(e){return _R(this,e,!0)}peek(e){return _R(this,e,!1)}pop(){const e=this[ho].tail;return e?(bv(this,e),e.value):null}del(e){bv(this,this[ml].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const a=e[r],l=a.e||0;if(l===0)this.set(a.k,a.v);else{const u=l-t;u>0&&this.set(a.k,a.v,u)}}}prune(){this[ml].forEach((e,t)=>_R(this,t,!1))}}const _R=(n,e,t)=>{const r=n[ml].get(e);if(r){const a=r.value;if(sE(n,a)){if(bv(n,r),!n[xy])return}else t&&(n[RN]&&(r.value.now=Date.now()),n[ho].unshiftNode(r));return a.value}},sE=(n,e)=>{if(!e||!e.maxAge&&!n[bh])return!1;const t=Date.now()-e.now;return e.maxAge?t>e.maxAge:n[bh]&&t>n[bh]},Iy=n=>{if(n[bc]>n[wh])for(let e=n[ho].tail;n[bc]>n[wh]&&e!==null;){const t=e.prev;bv(n,e),e=t}},bv=(n,e)=>{if(e){const t=e.value;n[Sc]&&n[Sc](t.key,t.value),n[bc]-=t.length,n[ml].delete(t.key),n[ho].removeNode(e)}};class Zj{constructor(e,t,r,a,l){this.key=e,this.value=t,this.length=r,this.now=a,this.maxAge=l||0}}const kN=(n,e,t,r)=>{let a=t.value;sE(n,a)&&(bv(n,t),n[xy]||(a=void 0)),a&&e.call(r,a.value,a.key,n)};var e3=Jj,CR,AN;function gl(){if(AN)return CR;AN=1;class n{constructor(ee,ye){if(ye=r(ye),ee instanceof n)return ee.loose===!!ye.loose&&ee.includePrerelease===!!ye.includePrerelease?ee:new n(ee.raw,ye);if(ee instanceof a)return this.raw=ee.value,this.set=[[ee]],this.format(),this;if(this.options=ye,this.loose=!!ye.loose,this.includePrerelease=!!ye.includePrerelease,this.raw=ee.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(me=>this.parseRange(me.trim())).filter(me=>me.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const me=this.set[0];if(this.set=this.set.filter(he=>!A(he[0])),this.set.length===0)this.set=[me];else if(this.set.length>1){for(const he of this.set)if(he.length===1&&I(he[0])){this.set=[he];break}}}this.format()}format(){return this.range=this.set.map(ee=>ee.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(ee){const me=((this.options.includePrerelease&&S)|(this.options.loose&&T))+":"+ee,he=t.get(me);if(he)return he;const G=this.options.loose,ge=G?f[p.HYPHENRANGELOOSE]:f[p.HYPHENRANGE];ee=ee.replace(ge,Pe(this.options.includePrerelease)),l("hyphen replace",ee),ee=ee.replace(f[p.COMPARATORTRIM],m),l("comparator trim",ee),ee=ee.replace(f[p.TILDETRIM],y),l("tilde trim",ee),ee=ee.replace(f[p.CARETTRIM],E),l("caret trim",ee);let H=ee.split(" ").map(Ue=>D(Ue,this.options)).join(" ").split(/\s+/).map(Ue=>at(Ue,this.options));G&&(H=H.filter(Ue=>(l("loose invalid filter",Ue,this.options),!!Ue.match(f[p.COMPARATORLOOSE])))),l("range list",H);const ne=new Map,xe=H.map(Ue=>new a(Ue,this.options));for(const Ue of xe){if(A(Ue))return[Ue];ne.set(Ue.value,Ue)}ne.size>1&&ne.has("")&&ne.delete("");const ut=[...ne.values()];return t.set(me,ut),ut}intersects(ee,ye){if(!(ee instanceof n))throw new TypeError("a Range is required");return this.set.some(me=>P(me,ye)&&ee.set.some(he=>P(he,ye)&&me.every(G=>he.every(ge=>G.intersects(ge,ye)))))}test(ee){if(!ee)return!1;if(typeof ee=="string")try{ee=new u(ee,this.options)}catch{return!1}for(let ye=0;ye<this.set.length;ye++)if(Be(this.set[ye],ee,this.options))return!0;return!1}}CR=n;const e=e3,t=new e({max:1e3}),r=fR,a=lE(),l=tE,u=Ta,{safeRe:f,t:p,comparatorTrimReplace:m,tildeTrimReplace:y,caretTrimReplace:E}=Ay,{FLAG_INCLUDE_PRERELEASE:S,FLAG_LOOSE:T}=eE,A=te=>te.value==="<0.0.0-0",I=te=>te.value==="",P=(te,ee)=>{let ye=!0;const me=te.slice();let he=me.pop();for(;ye&&me.length;)ye=me.every(G=>he.intersects(G,ee)),he=me.pop();return ye},D=(te,ee)=>(l("comp",te,ee),te=V(te,ee),l("caret",te),te=j(te,ee),l("tildes",te),te=Z(te,ee),l("xrange",te),te=Ge(te,ee),l("stars",te),te),L=te=>!te||te.toLowerCase()==="x"||te==="*",j=(te,ee)=>te.trim().split(/\s+/).map(ye=>F(ye,ee)).join(" "),F=(te,ee)=>{const ye=ee.loose?f[p.TILDELOOSE]:f[p.TILDE];return te.replace(ye,(me,he,G,ge,H)=>{l("tilde",te,me,he,G,ge,H);let ne;return L(he)?ne="":L(G)?ne=`>=${he}.0.0 <${+he+1}.0.0-0`:L(ge)?ne=`>=${he}.${G}.0 <${he}.${+G+1}.0-0`:H?(l("replaceTilde pr",H),ne=`>=${he}.${G}.${ge}-${H} <${he}.${+G+1}.0-0`):ne=`>=${he}.${G}.${ge} <${he}.${+G+1}.0-0`,l("tilde return",ne),ne})},V=(te,ee)=>te.trim().split(/\s+/).map(ye=>Y(ye,ee)).join(" "),Y=(te,ee)=>{l("caret",te,ee);const ye=ee.loose?f[p.CARETLOOSE]:f[p.CARET],me=ee.includePrerelease?"-0":"";return te.replace(ye,(he,G,ge,H,ne)=>{l("caret",te,he,G,ge,H,ne);let xe;return L(G)?xe="":L(ge)?xe=`>=${G}.0.0${me} <${+G+1}.0.0-0`:L(H)?G==="0"?xe=`>=${G}.${ge}.0${me} <${G}.${+ge+1}.0-0`:xe=`>=${G}.${ge}.0${me} <${+G+1}.0.0-0`:ne?(l("replaceCaret pr",ne),G==="0"?ge==="0"?xe=`>=${G}.${ge}.${H}-${ne} <${G}.${ge}.${+H+1}-0`:xe=`>=${G}.${ge}.${H}-${ne} <${G}.${+ge+1}.0-0`:xe=`>=${G}.${ge}.${H}-${ne} <${+G+1}.0.0-0`):(l("no pr"),G==="0"?ge==="0"?xe=`>=${G}.${ge}.${H}${me} <${G}.${ge}.${+H+1}-0`:xe=`>=${G}.${ge}.${H}${me} <${G}.${+ge+1}.0-0`:xe=`>=${G}.${ge}.${H} <${+G+1}.0.0-0`),l("caret return",xe),xe})},Z=(te,ee)=>(l("replaceXRanges",te,ee),te.split(/\s+/).map(ye=>Re(ye,ee)).join(" ")),Re=(te,ee)=>{te=te.trim();const ye=ee.loose?f[p.XRANGELOOSE]:f[p.XRANGE];return te.replace(ye,(me,he,G,ge,H,ne)=>{l("xRange",te,me,he,G,ge,H,ne);const xe=L(G),ut=xe||L(ge),Ue=ut||L(H),It=Ue;return he==="="&&It&&(he=""),ne=ee.includePrerelease?"-0":"",xe?he===">"||he==="<"?me="<0.0.0-0":me="*":he&&It?(ut&&(ge=0),H=0,he===">"?(he=">=",ut?(G=+G+1,ge=0,H=0):(ge=+ge+1,H=0)):he==="<="&&(he="<",ut?G=+G+1:ge=+ge+1),he==="<"&&(ne="-0"),me=`${he+G}.${ge}.${H}${ne}`):ut?me=`>=${G}.0.0${ne} <${+G+1}.0.0-0`:Ue&&(me=`>=${G}.${ge}.0${ne} <${G}.${+ge+1}.0-0`),l("xRange return",me),me})},Ge=(te,ee)=>(l("replaceStars",te,ee),te.trim().replace(f[p.STAR],"")),at=(te,ee)=>(l("replaceGTE0",te,ee),te.trim().replace(f[ee.includePrerelease?p.GTE0PRE:p.GTE0],"")),Pe=te=>(ee,ye,me,he,G,ge,H,ne,xe,ut,Ue,It,Ft)=>(L(me)?ye="":L(he)?ye=`>=${me}.0.0${te?"-0":""}`:L(G)?ye=`>=${me}.${he}.0${te?"-0":""}`:ge?ye=`>=${ye}`:ye=`>=${ye}${te?"-0":""}`,L(xe)?ne="":L(ut)?ne=`<${+xe+1}.0.0-0`:L(Ue)?ne=`<${xe}.${+ut+1}.0-0`:It?ne=`<=${xe}.${ut}.${Ue}-${It}`:te?ne=`<${xe}.${ut}.${+Ue+1}-0`:ne=`<=${ne}`,`${ye} ${ne}`.trim()),Be=(te,ee,ye)=>{for(let me=0;me<te.length;me++)if(!te[me].test(ee))return!1;if(ee.prerelease.length&&!ye.includePrerelease){for(let me=0;me<te.length;me++)if(l(te[me].semver),te[me].semver!==a.ANY&&te[me].semver.prerelease.length>0){const he=te[me].semver;if(he.major===ee.major&&he.minor===ee.minor&&he.patch===ee.patch)return!0}return!1}return!0};return CR}var ER,xN;function lE(){if(xN)return ER;xN=1;const n=Symbol("SemVer ANY");class e{static get ANY(){return n}constructor(y,E){if(E=t(E),y instanceof e){if(y.loose===!!E.loose)return y;y=y.value}y=y.trim().split(/\s+/).join(" "),u("comparator",y,E),this.options=E,this.loose=!!E.loose,this.parse(y),this.semver===n?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(y){const E=this.options.loose?r[a.COMPARATORLOOSE]:r[a.COMPARATOR],S=y.match(E);if(!S)throw new TypeError(`Invalid comparator: ${y}`);this.operator=S[1]!==void 0?S[1]:"",this.operator==="="&&(this.operator=""),S[2]?this.semver=new f(S[2],this.options.loose):this.semver=n}toString(){return this.value}test(y){if(u("Comparator.test",y,this.options.loose),this.semver===n||y===n)return!0;if(typeof y=="string")try{y=new f(y,this.options)}catch{return!1}return l(y,this.operator,this.semver,this.options)}intersects(y,E){if(!(y instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new p(y.value,E).test(this.value):y.operator===""?y.value===""?!0:new p(this.value,E).test(y.semver):(E=t(E),E.includePrerelease&&(this.value==="<0.0.0-0"||y.value==="<0.0.0-0")||!E.includePrerelease&&(this.value.startsWith("<0.0.0")||y.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&y.operator.startsWith(">")||this.operator.startsWith("<")&&y.operator.startsWith("<")||this.semver.version===y.semver.version&&this.operator.includes("=")&&y.operator.includes("=")||l(this.semver,"<",y.semver,E)&&this.operator.startsWith(">")&&y.operator.startsWith("<")||l(this.semver,">",y.semver,E)&&this.operator.startsWith("<")&&y.operator.startsWith(">")))}}ER=e;const t=fR,{safeRe:r,t:a}=Ay,l=bN,u=tE,f=Ta,p=gl();return ER}const t3=gl();var uE=(n,e,t)=>{try{e=new t3(e,t)}catch{return!1}return e.test(n)};const n3=gl();var r3=(n,e)=>new n3(n,e).set.map(t=>t.map(r=>r.value).join(" ").trim().split(" "));const i3=Ta,o3=gl();var a3=(n,e,t)=>{let r=null,a=null,l=null;try{l=new o3(e,t)}catch{return null}return n.forEach(u=>{l.test(u)&&(!r||a.compare(u)===-1)&&(r=u,a=new i3(r,t))}),r};const s3=Ta,l3=gl();var u3=(n,e,t)=>{let r=null,a=null,l=null;try{l=new l3(e,t)}catch{return null}return n.forEach(u=>{l.test(u)&&(!r||a.compare(u)===1)&&(r=u,a=new s3(r,t))}),r};const wR=Ta,c3=gl(),IN=iE;var d3=(n,e)=>{n=new c3(n,e);let t=new wR("0.0.0");if(n.test(t)||(t=new wR("0.0.0-0"),n.test(t)))return t;t=null;for(let r=0;r<n.set.length;++r){const a=n.set[r];let l=null;a.forEach(u=>{const f=new wR(u.semver.version);switch(u.operator){case">":f.prerelease.length===0?f.patch++:f.prerelease.push(0),f.raw=f.format();case"":case">=":(!l||IN(f,l))&&(l=f);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${u.operator}`)}}),l&&(!t||IN(t,l))&&(t=l)}return t&&n.test(t)?t:null};const f3=gl();var h3=(n,e)=>{try{return new f3(n,e).range||"*"}catch{return null}};const p3=Ta,ON=lE(),{ANY:v3}=ON,m3=gl(),g3=uE,NN=iE,MN=pR,y3=mR,_3=vR;var bR=(n,e,t,r)=>{n=new p3(n,r),e=new m3(e,r);let a,l,u,f,p;switch(t){case">":a=NN,l=y3,u=MN,f=">",p=">=";break;case"<":a=MN,l=_3,u=NN,f="<",p="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(g3(n,e,r))return!1;for(let m=0;m<e.set.length;++m){const y=e.set[m];let E=null,S=null;if(y.forEach(T=>{T.semver===v3&&(T=new ON(">=0.0.0")),E=E||T,S=S||T,a(T.semver,E.semver,r)?E=T:u(T.semver,S.semver,r)&&(S=T)}),E.operator===f||E.operator===p||(!S.operator||S.operator===f)&&l(n,S.semver))return!1;if(S.operator===p&&u(n,S.semver))return!1}return!0};const C3=bR;var E3=(n,e,t)=>C3(n,e,">",t);const w3=bR;var b3=(n,e,t)=>w3(n,e,"<",t);const PN=gl();var S3=(n,e,t)=>(n=new PN(n,t),e=new PN(e,t),n.intersects(e,t));const T3=uE,R3=vl;var k3=(n,e,t)=>{const r=[];let a=null,l=null;const u=n.sort((y,E)=>R3(y,E,t));for(const y of u)T3(y,e,t)?(l=y,a||(a=y)):(l&&r.push([a,l]),l=null,a=null);a&&r.push([a,null]);const f=[];for(const[y,E]of r)y===E?f.push(y):!E&&y===u[0]?f.push("*"):E?y===u[0]?f.push(`<=${E}`):f.push(`${y} - ${E}`):f.push(`>=${y}`);const p=f.join(" || "),m=typeof e.raw=="string"?e.raw:String(e);return p.length<m.length?p:e};const DN=gl(),SR=lE(),{ANY:TR}=SR,Oy=uE,RR=vl,A3=(n,e,t={})=>{if(n===e)return!0;n=new DN(n,t),e=new DN(e,t);let r=!1;e:for(const a of n.set){for(const l of e.set){const u=I3(a,l,t);if(r=r||u!==null,u)continue e}if(r)return!1}return!0},x3=[new SR(">=0.0.0-0")],LN=[new SR(">=0.0.0")],I3=(n,e,t)=>{if(n===e)return!0;if(n.length===1&&n[0].semver===TR){if(e.length===1&&e[0].semver===TR)return!0;t.includePrerelease?n=x3:n=LN}if(e.length===1&&e[0].semver===TR){if(t.includePrerelease)return!0;e=LN}const r=new Set;let a,l;for(const T of n)T.operator===">"||T.operator===">="?a=UN(a,T,t):T.operator==="<"||T.operator==="<="?l=FN(l,T,t):r.add(T.semver);if(r.size>1)return null;let u;if(a&&l){if(u=RR(a.semver,l.semver,t),u>0)return null;if(u===0&&(a.operator!==">="||l.operator!=="<="))return null}for(const T of r){if(a&&!Oy(T,String(a),t)||l&&!Oy(T,String(l),t))return null;for(const A of e)if(!Oy(T,String(A),t))return!1;return!0}let f,p,m,y,E=l&&!t.includePrerelease&&l.semver.prerelease.length?l.semver:!1,S=a&&!t.includePrerelease&&a.semver.prerelease.length?a.semver:!1;E&&E.prerelease.length===1&&l.operator==="<"&&E.prerelease[0]===0&&(E=!1);for(const T of e){if(y=y||T.operator===">"||T.operator===">=",m=m||T.operator==="<"||T.operator==="<=",a){if(S&&T.semver.prerelease&&T.semver.prerelease.length&&T.semver.major===S.major&&T.semver.minor===S.minor&&T.semver.patch===S.patch&&(S=!1),T.operator===">"||T.operator===">="){if(f=UN(a,T,t),f===T&&f!==a)return!1}else if(a.operator===">="&&!Oy(a.semver,String(T),t))return!1}if(l){if(E&&T.semver.prerelease&&T.semver.prerelease.length&&T.semver.major===E.major&&T.semver.minor===E.minor&&T.semver.patch===E.patch&&(E=!1),T.operator==="<"||T.operator==="<="){if(p=FN(l,T,t),p===T&&p!==l)return!1}else if(l.operator==="<="&&!Oy(l.semver,String(T),t))return!1}if(!T.operator&&(l||a)&&u!==0)return!1}return!(a&&m&&!l&&u!==0||l&&y&&!a&&u!==0||S||E)},UN=(n,e,t)=>{if(!n)return e;const r=RR(n.semver,e.semver,t);return r>0?n:r<0||e.operator===">"&&n.operator===">="?e:n},FN=(n,e,t)=>{if(!n)return e;const r=RR(n.semver,e.semver,t);return r<0?n:r>0||e.operator==="<"&&n.operator==="<="?e:n};var O3=A3;const kR=Ay,$N=eE,N3=Ta,HN=fN,M3=Ev,P3=cj,D3=fj,L3=hj,U3=pj,F3=mj,$3=yj,H3=Cj,j3=wj,z3=vl,B3=Sj,q3=Rj,V3=hR,K3=Aj,G3=Ij,W3=iE,Y3=pR,Q3=EN,X3=wN,J3=vR,Z3=mR,ez=bN,tz=Vj,nz=lE(),rz=gl();var jN={parse:M3,valid:P3,clean:D3,inc:L3,diff:U3,major:F3,minor:$3,patch:H3,prerelease:j3,compare:z3,rcompare:B3,compareLoose:q3,compareBuild:V3,sort:K3,rsort:G3,gt:W3,lt:Y3,eq:Q3,neq:X3,gte:J3,lte:Z3,cmp:ez,coerce:tz,Comparator:nz,Range:rz,satisfies:uE,toComparators:r3,maxSatisfying:a3,minSatisfying:u3,minVersion:d3,validRange:h3,outside:bR,gtr:E3,ltr:b3,intersects:S3,simplifyRange:k3,subset:O3,SemVer:N3,re:kR.re,src:kR.src,tokens:kR.t,SEMVER_SPEC_VERSION:$N.SEMVER_SPEC_VERSION,RELEASE_TYPES:$N.RELEASE_TYPES,compareIdentifiers:HN.compareIdentifiers,rcompareIdentifiers:HN.rcompareIdentifiers};class Ny extends jN.SemVer{satisfies(e){return jN.satisfies(this,e)}}let iz=class{constructor(e){this.domain=e,this.level=process.env.NODE_ENV==="development"?3:1}_createMessage(e){return[`%c FUSION FRAMEWORK %c ${this.domain} %c %s`,"background: rgb(179, 13, 47); color: white; padding: 1px;","background: rgb(244, 244, 244); color: rgb(36, 55, 70); padding: 1px;","background: none; color: inherit",...e.reduce((t,r)=>[...t,r,`
235
- `],[])]}debug(...e){this.level>3&&console.debug(...this._createMessage(e))}info(...e){this.level>2&&console.info(...this._createMessage(e))}warn(...e){this.level>1&&console.warn(...this._createMessage(e))}error(...e){this.level>0&&console.error(...this._createMessage(e))}};class zN extends iz{formatModuleName(e){return`📦\x1B[1;32m${(typeof e=="string"?e:e.name).replace(/([A-Z])/g," $1").toUpperCase()}\x1B[0m`}}globalThis&&globalThis.__classPrivateFieldSet,globalThis&&globalThis.__classPrivateFieldGet;var AR=function(n,e){return AR=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])},AR(n,e)};function uu(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");AR(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var vi=function(){return vi=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++){t=arguments[r];for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e},vi.apply(this,arguments)};function BN(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(n,r[a])&&(t[r[a]]=n[r[a]]);return t}function oz(n,e,t,r){function a(l){return l instanceof t?l:new t(function(u){u(l)})}return new(t||(t=Promise))(function(l,u){function f(y){try{m(r.next(y))}catch(E){u(E)}}function p(y){try{m(r.throw(y))}catch(E){u(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})}function qN(n,e){var t={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},r,a,l,u;return u={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function f(m){return function(y){return p([m,y])}}function p(m){if(r)throw new TypeError("Generator is already executing.");for(;u&&(u=0,m[0]&&(t=0)),t;)try{if(r=1,a&&(l=m[0]&2?a.return:m[0]?a.throw||((l=a.return)&&l.call(a),0):a.next)&&!(l=l.call(a,m[1])).done)return l;switch(a=0,l&&(m=[m[0]&2,l.value]),m[0]){case 0:case 1:l=m;break;case 4:return t.label++,{value:m[1],done:!1};case 5:t.label++,a=m[1],m=[0];continue;case 7:m=t.ops.pop(),t.trys.pop();continue;default:if(l=t.trys,!(l=l.length>0&&l[l.length-1])&&(m[0]===6||m[0]===2)){t=0;continue}if(m[0]===3&&(!l||m[1]>l[0]&&m[1]<l[3])){t.label=m[1];break}if(m[0]===6&&t.label<l[1]){t.label=l[1],l=m;break}if(l&&t.label<l[2]){t.label=l[2],t.ops.push(m);break}l[2]&&t.ops.pop(),t.trys.pop();continue}m=e.call(n,t)}catch(y){m=[6,y],a=0}finally{r=l=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}}function Sh(n){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function cu(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),a,l=[],u;try{for(;(e===void 0||e-- >0)&&!(a=r.next()).done;)l.push(a.value)}catch(f){u={error:f}}finally{try{a&&!a.done&&(t=r.return)&&t.call(r)}finally{if(u)throw u.error}}return l}function No(n,e,t){if(t||arguments.length===2)for(var r=0,a=e.length,l;r<a;r++)(l||!(r in e))&&(l||(l=Array.prototype.slice.call(e,0,r)),l[r]=e[r]);return n.concat(l||Array.prototype.slice.call(e))}function Sv(n){return this instanceof Sv?(this.v=n,this):new Sv(n)}function az(n,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t.apply(n,e||[]),a,l=[];return a={},u("next"),u("throw"),u("return"),a[Symbol.asyncIterator]=function(){return this},a;function u(S){r[S]&&(a[S]=function(T){return new Promise(function(A,I){l.push([S,T,A,I])>1||f(S,T)})})}function f(S,T){try{p(r[S](T))}catch(A){E(l[0][3],A)}}function p(S){S.value instanceof Sv?Promise.resolve(S.value.v).then(m,y):E(l[0][2],S)}function m(S){f("next",S)}function y(S){f("throw",S)}function E(S,T){S(T),l.shift(),l.length&&f(l[0][0],l[0][1])}}function sz(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=n[Symbol.asyncIterator],t;return e?e.call(n):(n=typeof Sh=="function"?Sh(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(l){t[l]=n[l]&&function(u){return new Promise(function(f,p){u=n[l](u),a(f,p,u.done,u.value)})}}function a(l,u,f,p){Promise.resolve(p).then(function(m){l({value:m,done:f})},u)}}typeof SuppressedError=="function"&&SuppressedError;function Kr(n){return typeof n=="function"}function cE(n){var e=function(r){Error.call(r),r.stack=new Error().stack},t=n(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var xR=cE(function(n){return function(t){n(this),this.message=t?t.length+` errors occurred during unsubscription:
236
- `+t.map(function(r,a){return a+1+") "+r.toString()}).join(`
237
- `):"",this.name="UnsubscriptionError",this.errors=t}});function dE(n,e){if(n){var t=n.indexOf(e);0<=t&&n.splice(t,1)}}var Mo=function(){function n(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){var e,t,r,a,l;if(!this.closed){this.closed=!0;var u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var f=Sh(u),p=f.next();!p.done;p=f.next()){var m=p.value;m.remove(this)}}catch(I){e={error:I}}finally{try{p&&!p.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}else u.remove(this);var y=this.initialTeardown;if(Kr(y))try{y()}catch(I){l=I instanceof xR?I.errors:[I]}var E=this._finalizers;if(E){this._finalizers=null;try{for(var S=Sh(E),T=S.next();!T.done;T=S.next()){var A=T.value;try{GN(A)}catch(I){l=l??[],I instanceof xR?l=No(No([],cu(l)),cu(I.errors)):l.push(I)}}}catch(I){r={error:I}}finally{try{T&&!T.done&&(a=S.return)&&a.call(S)}finally{if(r)throw r.error}}}if(l)throw new xR(l)}},n.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)GN(e);else{if(e instanceof n){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},n.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},n.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},n.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&dE(t,e)},n.prototype.remove=function(e){var t=this._finalizers;t&&dE(t,e),e instanceof n&&e._removeParent(this)},n.EMPTY=function(){var e=new n;return e.closed=!0,e}(),n}(),VN=Mo.EMPTY;function KN(n){return n instanceof Mo||n&&"closed"in n&&Kr(n.remove)&&Kr(n.add)&&Kr(n.unsubscribe)}function GN(n){Kr(n)?n():n.unsubscribe()}var WN={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},IR={setTimeout:function(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var a=IR.delegate;return a!=null&&a.setTimeout?a.setTimeout.apply(a,No([n,e],cu(t))):setTimeout.apply(void 0,No([n,e],cu(t)))},clearTimeout:function(n){var e=IR.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(n)},delegate:void 0};function YN(n){IR.setTimeout(function(){throw n})}function fE(){}function hE(n){n()}var OR=function(n){uu(e,n);function e(t){var r=n.call(this)||this;return r.isStopped=!1,t?(r.destination=t,KN(t)&&t.add(r)):r.destination=dz,r}return e.create=function(t,r,a){return new Tv(t,r,a)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Mo),lz=Function.prototype.bind;function NR(n,e){return lz.call(n,e)}var uz=function(){function n(e){this.partialObserver=e}return n.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(r){pE(r)}},n.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(r){pE(r)}else pE(e)},n.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){pE(t)}},n}(),Tv=function(n){uu(e,n);function e(t,r,a){var l=n.call(this)||this,u;if(Kr(t)||!t)u={next:t??void 0,error:r??void 0,complete:a??void 0};else{var f;l&&WN.useDeprecatedNextContext?(f=Object.create(t),f.unsubscribe=function(){return l.unsubscribe()},u={next:t.next&&NR(t.next,f),error:t.error&&NR(t.error,f),complete:t.complete&&NR(t.complete,f)}):u=t}return l.destination=new uz(u),l}return e}(OR);function pE(n){YN(n)}function cz(n){throw n}var dz={closed:!0,next:fE,error:cz,complete:fE},MR=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Tc(n){return n}function fz(n){return n.length===0?Tc:n.length===1?n[0]:function(t){return n.reduce(function(r,a){return a(r)},t)}}var vn=function(){function n(e){e&&(this._subscribe=e)}return n.prototype.lift=function(e){var t=new n;return t.source=this,t.operator=e,t},n.prototype.subscribe=function(e,t,r){var a=this,l=pz(e)?e:new Tv(e,t,r);return hE(function(){var u=a,f=u.operator,p=u.source;l.add(f?f.call(l,p):p?a._subscribe(l):a._trySubscribe(l))}),l},n.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},n.prototype.forEach=function(e,t){var r=this;return t=QN(t),new t(function(a,l){var u=new Tv({next:function(f){try{e(f)}catch(p){l(p),u.unsubscribe()}},error:l,complete:a});r.subscribe(u)})},n.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},n.prototype[MR]=function(){return this},n.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return fz(e)(this)},n.prototype.toPromise=function(e){var t=this;return e=QN(e),new e(function(r,a){var l;t.subscribe(function(u){return l=u},function(u){return a(u)},function(){return r(l)})})},n.create=function(e){return new n(e)},n}();function QN(n){var e;return(e=n??WN.Promise)!==null&&e!==void 0?e:Promise}function hz(n){return n&&Kr(n.next)&&Kr(n.error)&&Kr(n.complete)}function pz(n){return n&&n instanceof OR||hz(n)&&KN(n)}function vz(n){return Kr(n==null?void 0:n.lift)}function ti(n){return function(e){if(vz(e))return e.lift(function(t){try{return n(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Gr(n,e,t,r,a){return new mz(n,e,t,r,a)}var mz=function(n){uu(e,n);function e(t,r,a,l,u,f){var p=n.call(this,t)||this;return p.onFinalize=u,p.shouldUnsubscribe=f,p._next=r?function(m){try{r(m)}catch(y){t.error(y)}}:n.prototype._next,p._error=l?function(m){try{l(m)}catch(y){t.error(y)}finally{this.unsubscribe()}}:n.prototype._error,p._complete=a?function(){try{a()}catch(m){t.error(m)}finally{this.unsubscribe()}}:n.prototype._complete,p}return e.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;n.prototype.unsubscribe.call(this),!r&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},e}(OR),gz=cE(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),po=function(n){uu(e,n);function e(){var t=n.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype.lift=function(t){var r=new XN(this,this);return r.operator=t,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new gz},e.prototype.next=function(t){var r=this;hE(function(){var a,l;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var u=Sh(r.currentObservers),f=u.next();!f.done;f=u.next()){var p=f.value;p.next(t)}}catch(m){a={error:m}}finally{try{f&&!f.done&&(l=u.return)&&l.call(u)}finally{if(a)throw a.error}}}})},e.prototype.error=function(t){var r=this;hE(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var a=r.observers;a.length;)a.shift().error(t)}})},e.prototype.complete=function(){var t=this;hE(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var r=t.observers;r.length;)r.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(t){return this._throwIfClosed(),n.prototype._trySubscribe.call(this,t)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var r=this,a=this,l=a.hasError,u=a.isStopped,f=a.observers;return l||u?VN:(this.currentObservers=null,f.push(t),new Mo(function(){r.currentObservers=null,dE(f,t)}))},e.prototype._checkFinalizedStatuses=function(t){var r=this,a=r.hasError,l=r.thrownError,u=r.isStopped;a?t.error(l):u&&t.complete()},e.prototype.asObservable=function(){var t=new vn;return t.source=this,t},e.create=function(t,r){return new XN(t,r)},e}(vn),XN=function(n){uu(e,n);function e(t,r){var a=n.call(this)||this;return a.destination=t,a.source=r,a}return e.prototype.next=function(t){var r,a;(a=(r=this.destination)===null||r===void 0?void 0:r.next)===null||a===void 0||a.call(r,t)},e.prototype.error=function(t){var r,a;(a=(r=this.destination)===null||r===void 0?void 0:r.error)===null||a===void 0||a.call(r,t)},e.prototype.complete=function(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)},e.prototype._subscribe=function(t){var r,a;return(a=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&a!==void 0?a:VN},e}(po),My=function(n){uu(e,n);function e(t){var r=n.call(this)||this;return r._value=t,r}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(t){var r=n.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},e.prototype.getValue=function(){var t=this,r=t.hasError,a=t.thrownError,l=t._value;if(r)throw a;return this._throwIfClosed(),l},e.prototype.next=function(t){n.prototype.next.call(this,this._value=t)},e}(po),PR={now:function(){return(PR.delegate||Date).now()},delegate:void 0},vE=function(n){uu(e,n);function e(t,r,a){t===void 0&&(t=1/0),r===void 0&&(r=1/0),a===void 0&&(a=PR);var l=n.call(this)||this;return l._bufferSize=t,l._windowTime=r,l._timestampProvider=a,l._buffer=[],l._infiniteTimeWindow=!0,l._infiniteTimeWindow=r===1/0,l._bufferSize=Math.max(1,t),l._windowTime=Math.max(1,r),l}return e.prototype.next=function(t){var r=this,a=r.isStopped,l=r._buffer,u=r._infiniteTimeWindow,f=r._timestampProvider,p=r._windowTime;a||(l.push(t),!u&&l.push(f.now()+p)),this._trimBuffer(),n.prototype.next.call(this,t)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(t),a=this,l=a._infiniteTimeWindow,u=a._buffer,f=u.slice(),p=0;p<f.length&&!t.closed;p+=l?1:2)t.next(f[p]);return this._checkFinalizedStatuses(t),r},e.prototype._trimBuffer=function(){var t=this,r=t._bufferSize,a=t._timestampProvider,l=t._buffer,u=t._infiniteTimeWindow,f=(u?1:2)*r;if(r<1/0&&f<l.length&&l.splice(0,l.length-f),!u){for(var p=a.now(),m=0,y=1;y<l.length&&l[y]<=p;y+=2)m=y;m&&l.splice(0,m+1)}},e}(po),yz=function(n){uu(e,n);function e(t,r){return n.call(this)||this}return e.prototype.schedule=function(t,r){return this},e}(Mo),mE={setInterval:function(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var a=mE.delegate;return a!=null&&a.setInterval?a.setInterval.apply(a,No([n,e],cu(t))):setInterval.apply(void 0,No([n,e],cu(t)))},clearInterval:function(n){var e=mE.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(n)},delegate:void 0},_z=function(n){uu(e,n);function e(t,r){var a=n.call(this,t,r)||this;return a.scheduler=t,a.work=r,a.pending=!1,a}return e.prototype.schedule=function(t,r){var a;if(r===void 0&&(r=0),this.closed)return this;this.state=t;var l=this.id,u=this.scheduler;return l!=null&&(this.id=this.recycleAsyncId(u,l,r)),this.pending=!0,this.delay=r,this.id=(a=this.id)!==null&&a!==void 0?a:this.requestAsyncId(u,this.id,r),this},e.prototype.requestAsyncId=function(t,r,a){return a===void 0&&(a=0),mE.setInterval(t.flush.bind(t,this),a)},e.prototype.recycleAsyncId=function(t,r,a){if(a===void 0&&(a=0),a!=null&&this.delay===a&&this.pending===!1)return r;r!=null&&mE.clearInterval(r)},e.prototype.execute=function(t,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var a=this._execute(t,r);if(a)return a;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,r){var a=!1,l;try{this.work(t)}catch(u){a=!0,l=u||new Error("Scheduled action threw falsy error")}if(a)return this.unsubscribe(),l},e.prototype.unsubscribe=function(){if(!this.closed){var t=this,r=t.id,a=t.scheduler,l=a.actions;this.work=this.state=this.scheduler=null,this.pending=!1,dE(l,this),r!=null&&(this.id=this.recycleAsyncId(a,r,null)),this.delay=null,n.prototype.unsubscribe.call(this)}},e}(yz),JN=function(){function n(e,t){t===void 0&&(t=n.now),this.schedulerActionCtor=e,this.now=t}return n.prototype.schedule=function(e,t,r){return t===void 0&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},n.now=PR.now,n}(),Cz=function(n){uu(e,n);function e(t,r){r===void 0&&(r=JN.now);var a=n.call(this,t,r)||this;return a.actions=[],a._active=!1,a}return e.prototype.flush=function(t){var r=this.actions;if(this._active){r.push(t);return}var a;this._active=!0;do if(a=t.execute(t.state,t.delay))break;while(t=r.shift());if(this._active=!1,a){for(;t=r.shift();)t.unsubscribe();throw a}},e}(JN),gE=new Cz(_z),Ez=gE,Ni=new vn(function(n){return n.complete()});function ZN(n){return n&&Kr(n.schedule)}function eM(n){return n[n.length-1]}function tM(n){return Kr(eM(n))?n.pop():void 0}function DR(n){return ZN(eM(n))?n.pop():void 0}var nM=function(n){return n&&typeof n.length=="number"&&typeof n!="function"};function rM(n){return Kr(n==null?void 0:n.then)}function iM(n){return Kr(n[MR])}function oM(n){return Symbol.asyncIterator&&Kr(n==null?void 0:n[Symbol.asyncIterator])}function aM(n){return new TypeError("You provided "+(n!==null&&typeof n=="object"?"an invalid object":"'"+n+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function wz(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var sM=wz();function lM(n){return Kr(n==null?void 0:n[sM])}function uM(n){return az(this,arguments,function(){var t,r,a,l;return qN(this,function(u){switch(u.label){case 0:t=n.getReader(),u.label=1;case 1:u.trys.push([1,,9,10]),u.label=2;case 2:return[4,Sv(t.read())];case 3:return r=u.sent(),a=r.value,l=r.done,l?[4,Sv(void 0)]:[3,5];case 4:return[2,u.sent()];case 5:return[4,Sv(a)];case 6:return[4,u.sent()];case 7:return u.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function cM(n){return Kr(n==null?void 0:n.getReader)}function ms(n){if(n instanceof vn)return n;if(n!=null){if(iM(n))return bz(n);if(nM(n))return Sz(n);if(rM(n))return Tz(n);if(oM(n))return dM(n);if(lM(n))return Rz(n);if(cM(n))return kz(n)}throw aM(n)}function bz(n){return new vn(function(e){var t=n[MR]();if(Kr(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Sz(n){return new vn(function(e){for(var t=0;t<n.length&&!e.closed;t++)e.next(n[t]);e.complete()})}function Tz(n){return new vn(function(e){n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,YN)})}function Rz(n){return new vn(function(e){var t,r;try{for(var a=Sh(n),l=a.next();!l.done;l=a.next()){var u=l.value;if(e.next(u),e.closed)return}}catch(f){t={error:f}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}e.complete()})}function dM(n){return new vn(function(e){Az(n,e).catch(function(t){return e.error(t)})})}function kz(n){return dM(uM(n))}function Az(n,e){var t,r,a,l;return oz(this,void 0,void 0,function(){var u,f;return qN(this,function(p){switch(p.label){case 0:p.trys.push([0,5,6,11]),t=sz(n),p.label=1;case 1:return[4,t.next()];case 2:if(r=p.sent(),!!r.done)return[3,4];if(u=r.value,e.next(u),e.closed)return[2];p.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return f=p.sent(),a={error:f},[3,11];case 6:return p.trys.push([6,,9,10]),r&&!r.done&&(l=t.return)?[4,l.call(t)]:[3,8];case 7:p.sent(),p.label=8;case 8:return[3,10];case 9:if(a)throw a.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function du(n,e,t,r,a){r===void 0&&(r=0),a===void 0&&(a=!1);var l=e.schedule(function(){t(),a?n.add(this.schedule(null,r)):this.unsubscribe()},r);if(n.add(l),!a)return l}function yE(n,e){return e===void 0&&(e=0),ti(function(t,r){t.subscribe(Gr(r,function(a){return du(r,n,function(){return r.next(a)},e)},function(){return du(r,n,function(){return r.complete()},e)},function(a){return du(r,n,function(){return r.error(a)},e)}))})}function fM(n,e){return e===void 0&&(e=0),ti(function(t,r){r.add(n.schedule(function(){return t.subscribe(r)},e))})}function xz(n,e){return ms(n).pipe(fM(e),yE(e))}function Iz(n,e){return ms(n).pipe(fM(e),yE(e))}function Oz(n,e){return new vn(function(t){var r=0;return e.schedule(function(){r===n.length?t.complete():(t.next(n[r++]),t.closed||this.schedule())})})}function Nz(n,e){return new vn(function(t){var r;return du(t,e,function(){r=n[sM](),du(t,e,function(){var a,l,u;try{a=r.next(),l=a.value,u=a.done}catch(f){t.error(f);return}u?t.complete():t.next(l)},0,!0)}),function(){return Kr(r==null?void 0:r.return)&&r.return()}})}function hM(n,e){if(!n)throw new Error("Iterable cannot be null");return new vn(function(t){du(t,e,function(){var r=n[Symbol.asyncIterator]();du(t,e,function(){r.next().then(function(a){a.done?t.complete():t.next(a.value)})},0,!0)})})}function Mz(n,e){return hM(uM(n),e)}function Pz(n,e){if(n!=null){if(iM(n))return xz(n,e);if(nM(n))return Oz(n,e);if(rM(n))return Iz(n,e);if(oM(n))return hM(n,e);if(lM(n))return Nz(n,e);if(cM(n))return Mz(n,e)}throw aM(n)}function Pr(n,e){return e?Pz(n,e):ms(n)}function gs(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=DR(n);return Pr(n,t)}function pM(n,e){var t=Kr(n)?n:function(){return n},r=function(a){return a.error(t())};return new vn(e?function(a){return e.schedule(r,0,a)}:r)}var Py=cE(function(n){return function(){n(this),this.name="EmptyError",this.message="no elements in sequence"}});function Zo(n,e){var t=typeof e=="object";return new Promise(function(r,a){var l=!1,u;n.subscribe({next:function(f){u=f,l=!0},error:a,complete:function(){l?r(u):t?r(e.defaultValue):a(new Py)}})})}function Po(n,e){var t=typeof e=="object";return new Promise(function(r,a){var l=new Tv({next:function(u){r(u),l.unsubscribe()},error:a,complete:function(){t?r(e.defaultValue):a(new Py)}});n.subscribe(l)})}function vM(n){return n instanceof Date&&!isNaN(n)}var Dz=cE(function(n){return function(t){t===void 0&&(t=null),n(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}});function Lz(n,e){var t=vM(n)?{first:n}:typeof n=="number"?{each:n}:n,r=t.first,a=t.each,l=t.with,u=l===void 0?Uz:l,f=t.scheduler,p=f===void 0?e??gE:f,m=t.meta,y=m===void 0?null:m;if(r==null&&a==null)throw new TypeError("No timeout provided.");return ti(function(E,S){var T,A,I=null,P=0,D=function(L){A=du(S,p,function(){try{T.unsubscribe(),ms(u({meta:y,lastValue:I,seen:P})).subscribe(S)}catch(j){S.error(j)}},L)};T=E.subscribe(Gr(S,function(L){A==null||A.unsubscribe(),P++,S.next(I=L),a>0&&D(a)},void 0,void 0,function(){A!=null&&A.closed||A==null||A.unsubscribe(),I=null})),!P&&D(r!=null?typeof r=="number"?r:+r-p.now():a)})}function Uz(n){throw new Dz(n)}function dn(n,e){return ti(function(t,r){var a=0;t.subscribe(Gr(r,function(l){r.next(n.call(e,l,a++))}))})}var Fz=Array.isArray;function $z(n,e){return Fz(e)?n.apply(void 0,No([],cu(e))):n(e)}function Hz(n){return dn(function(e){return $z(n,e)})}var jz=Array.isArray,zz=Object.getPrototypeOf,Bz=Object.prototype,qz=Object.keys;function Vz(n){if(n.length===1){var e=n[0];if(jz(e))return{args:e,keys:null};if(Kz(e)){var t=qz(e);return{args:t.map(function(r){return e[r]}),keys:t}}}return{args:n,keys:null}}function Kz(n){return n&&typeof n=="object"&&zz(n)===Bz}function Gz(n,e){return n.reduce(function(t,r,a){return t[r]=e[a],t},{})}function Wz(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=DR(n),r=tM(n),a=Vz(n),l=a.args,u=a.keys;if(l.length===0)return Pr([],t);var f=new vn(Yz(l,t,u?function(p){return Gz(u,p)}:Tc));return r?f.pipe(Hz(r)):f}function Yz(n,e,t){return t===void 0&&(t=Tc),function(r){mM(e,function(){for(var a=n.length,l=new Array(a),u=a,f=a,p=function(y){mM(e,function(){var E=Pr(n[y],e),S=!1;E.subscribe(Gr(r,function(T){l[y]=T,S||(S=!0,f--),f||r.next(t(l.slice()))},function(){--u||r.complete()}))},r)},m=0;m<a;m++)p(m)},r)}}function mM(n,e,t){n?du(t,n,e):e()}function gM(n,e,t,r,a,l,u,f){var p=[],m=0,y=0,E=!1,S=function(){E&&!p.length&&!m&&e.complete()},T=function(I){return m<r?A(I):p.push(I)},A=function(I){l&&e.next(I),m++;var P=!1;ms(t(I,y++)).subscribe(Gr(e,function(D){a==null||a(D),l?T(D):e.next(D)},function(){P=!0},void 0,function(){if(P)try{m--;for(var D=function(){var L=p.shift();u?du(e,u,function(){return A(L)}):A(L)};p.length&&m<r;)D();S()}catch(L){e.error(L)}}))};return n.subscribe(Gr(e,T,function(){E=!0,S()})),function(){f==null||f()}}function za(n,e,t){return t===void 0&&(t=1/0),Kr(e)?za(function(r,a){return dn(function(l,u){return e(r,l,a,u)})(ms(n(r,a)))},t):(typeof e=="number"&&(t=e),ti(function(r,a){return gM(r,a,n,t)}))}function Qz(n){return n===void 0&&(n=1/0),za(Tc,n)}function Xz(){return Qz(1)}function LR(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return Xz()(Pr(n,DR(n)))}function UR(n,e,t){n===void 0&&(n=0),t===void 0&&(t=Ez);var r=-1;return e!=null&&(ZN(e)?t=e:r=e),new vn(function(a){var l=vM(n)?+n-t.now():n;l<0&&(l=0);var u=0;return t.schedule(function(){a.closed||(a.next(u++),0<=r?this.schedule(void 0,r):a.complete())},l)})}function fn(n,e){return ti(function(t,r){var a=0;t.subscribe(Gr(r,function(l){return n.call(e,l,a++)&&r.next(l)}))})}function Tr(n){return ti(function(e,t){var r=null,a=!1,l;r=e.subscribe(Gr(t,void 0,void 0,function(u){l=ms(n(u,Tr(n)(e))),r?(r.unsubscribe(),r=null,l.subscribe(t)):a=!0})),a&&(r.unsubscribe(),r=null,l.subscribe(t))})}function Jz(n,e,t,r,a){return function(l,u){var f=t,p=e,m=0;l.subscribe(Gr(u,function(y){var E=m++;p=f?n(p,y,E):(f=!0,y),r&&u.next(p)},a&&function(){f&&u.next(p),u.complete()}))}}function FR(n,e){return Kr(e)?za(n,e,1):za(n,1)}function yM(n){return ti(function(e,t){var r=!1;e.subscribe(Gr(t,function(a){r=!0,t.next(a)},function(){r||t.next(n),t.complete()}))})}function Zz(n){return n<=0?function(){return Ni}:ti(function(e,t){var r=0;e.subscribe(Gr(t,function(a){++r<=n&&(t.next(a),n<=r&&t.complete())}))})}function _M(n,e){return e===void 0&&(e=Tc),n=n??eB,ti(function(t,r){var a,l=!0;t.subscribe(Gr(r,function(u){var f=e(u);(l||!n(a,f))&&(l=!1,a=f,r.next(u))}))})}function eB(n,e){return n===e}function CM(n){return n===void 0&&(n=tB),ti(function(e,t){var r=!1;e.subscribe(Gr(t,function(a){r=!0,t.next(a)},function(){return r?t.complete():t.error(n())}))})}function tB(){return new Py}function Dy(n){return ti(function(e,t){try{e.subscribe(t)}finally{t.add(n)}})}function nB(n,e){var t=arguments.length>=2;return function(r){return r.pipe(n?fn(function(a,l){return n(a,l,r)}):Tc,Zz(1),t?yM(e):CM(function(){return new Py}))}}function rB(n){return n<=0?function(){return Ni}:ti(function(e,t){var r=[];e.subscribe(Gr(t,function(a){r.push(a),n<r.length&&r.shift()},function(){var a,l;try{for(var u=Sh(r),f=u.next();!f.done;f=u.next()){var p=f.value;t.next(p)}}catch(m){a={error:m}}finally{try{f&&!f.done&&(l=u.return)&&l.call(u)}finally{if(a)throw a.error}}t.complete()},void 0,function(){r=null}))})}function $R(n,e){var t=arguments.length>=2;return function(r){return r.pipe(n?fn(function(a,l){return n(a,l,r)}):Tc,rB(1),t?yM(e):CM(function(){return new Py}))}}function iB(n,e,t){return t===void 0&&(t=1/0),ti(function(r,a){var l=e;return gM(r,a,function(u,f){return n(l,u,f)},t,function(u){l=u},!1,void 0,function(){return l=null})})}function HR(){return ti(function(n,e){var t,r=!1;n.subscribe(Gr(e,function(a){var l=t;t=a,r&&e.next([l,a]),r=!0}))})}function EM(n,e){return ti(Jz(n,e,arguments.length>=2,!0))}function jR(n){n===void 0&&(n={});var e=n.connector,t=e===void 0?function(){return new po}:e,r=n.resetOnError,a=r===void 0?!0:r,l=n.resetOnComplete,u=l===void 0?!0:l,f=n.resetOnRefCountZero,p=f===void 0?!0:f;return function(m){var y,E,S,T=0,A=!1,I=!1,P=function(){E==null||E.unsubscribe(),E=void 0},D=function(){P(),y=S=void 0,A=I=!1},L=function(){var j=y;D(),j==null||j.unsubscribe()};return ti(function(j,F){T++,!I&&!A&&P();var V=S=S??t();F.add(function(){T--,T===0&&!I&&!A&&(E=zR(L,p))}),V.subscribe(F),!y&&T>0&&(y=new Tv({next:function(Y){return V.next(Y)},error:function(Y){I=!0,P(),E=zR(D,a,Y),V.error(Y)},complete:function(){A=!0,P(),E=zR(D,u),V.complete()}}),ms(j).subscribe(y))})(m)}}function zR(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];if(e===!0){n();return}if(e!==!1){var a=new Tv({next:function(){a.unsubscribe(),n()}});return ms(e.apply(void 0,No([],cu(t)))).subscribe(a)}}function BR(n,e,t){var r,a,l,u,f=!1;return n&&typeof n=="object"?(r=n.bufferSize,u=r===void 0?1/0:r,a=n.windowTime,e=a===void 0?1/0:a,l=n.refCount,f=l===void 0?!1:l,t=n.scheduler):u=n??1/0,jR({connector:function(){return new vE(u,e,t)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:f})}function oB(n){return fn(function(e,t){return n<=t})}function Wr(n,e){return ti(function(t,r){var a=null,l=0,u=!1,f=function(){return u&&!a&&r.complete()};t.subscribe(Gr(r,function(p){a==null||a.unsubscribe();var m=0,y=l++;ms(n(p,y)).subscribe(a=Gr(r,function(E){return r.next(e?e(p,E,y,m++):E)},function(){a=null,f()}))},function(){u=!0,f()}))})}function wM(n){return ti(function(e,t){ms(n).subscribe(Gr(t,function(){return t.complete()},fE)),!t.closed&&e.subscribe(t)})}function _E(n,e){return e===void 0&&(e=!1),ti(function(t,r){var a=0;t.subscribe(Gr(r,function(l){var u=n(l,a++);(u||e)&&r.next(l),!u&&r.complete()}))})}function Rv(n,e,t){var r=Kr(n)||e||t?{next:n,error:e,complete:t}:n;return r?ti(function(a,l){var u;(u=r.subscribe)===null||u===void 0||u.call(r);var f=!0;a.subscribe(Gr(l,function(p){var m;(m=r.next)===null||m===void 0||m.call(r,p),l.next(p)},function(){var p;f=!1,(p=r.complete)===null||p===void 0||p.call(r),l.complete()},function(p){var m;f=!1,(m=r.error)===null||m===void 0||m.call(r,p),l.error(p)},function(){var p,m;f&&((p=r.unsubscribe)===null||p===void 0||p.call(r)),(m=r.finalize)===null||m===void 0||m.call(r)}))}):Tc}function kv(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=tM(n);return ti(function(r,a){for(var l=n.length,u=new Array(l),f=n.map(function(){return!1}),p=!1,m=function(E){ms(n[E]).subscribe(Gr(a,function(S){u[E]=S,!p&&!f[E]&&(f[E]=!0,(p=f.every(Tc))&&(f=null))},fE))},y=0;y<l;y++)m(y);r.subscribe(Gr(a,function(E){if(p){var S=No([E],cu(u));a.next(t?t.apply(void 0,No([],cu(S))):S)}}))})}globalThis&&globalThis.__awaiter,globalThis&&globalThis.__classPrivateFieldGet;var CE=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},bM=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!a:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(n,t):a?a.value=t:e.set(n,t),t},EE,Av;class SM{get version(){return CE(this,EE,"f")}constructor(e){EE.set(this,void 0),Av.set(this,void 0);const{version:t}=e;bM(this,EE,new Ny(t),"f"),bM(this,Av,new Mo,"f")}_addTeardown(e){return CE(this,Av,"f").add(e),()=>CE(this,Av,"f").remove(e)}dispose(){CE(this,Av,"f").unsubscribe()}}EE=new WeakMap,Av=new WeakMap;var Rc=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(u){u(l)})}return new(t||(t=Promise))(function(l,u){function f(y){try{m(r.next(y))}catch(E){u(E)}}function p(y){try{m(r.throw(y))}catch(E){u(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};class aB extends Error{constructor(){super("It was too slow"),this.name="RequiredModuleTimeoutError"}}class sB{constructor(e){this.logger=new zN("ModulesConfigurator"),this._configs=[],this._afterConfiguration=[],this._afterInit=[],this._modules=new Set(e)}get modules(){return[...this._modules]}configure(...e){e.forEach(t=>this.addConfig(t))}addConfig(e){const{module:t,afterConfig:r,afterInit:a,configure:l}=e;this._modules.add(t),l&&this._configs.push((u,f)=>l(u[t.name],f)),r&&this._afterConfiguration.push(u=>r(u[t.name])),a&&this._afterInit.push(u=>a(u[t.name]))}onConfigured(e){this._afterConfiguration.push(e)}onInitialized(e){this._afterInit.push(e)}initialize(e){return Rc(this,void 0,void 0,function*(){const t=yield this._configure(e),r=yield this._initialize(t,e);return yield this._postInitialize(r,e),Object.seal(Object.assign({},r,{dispose:()=>this.dispose(r)}))})}_configure(e){return Rc(this,void 0,void 0,function*(){const t=yield this._createConfig(e);return yield Promise.all(this._configs.map(r=>Promise.resolve(r(t,e)))),yield this._postConfigure(t),t})}_createConfig(e){const{modules:t,logger:r,_afterConfiguration:a,_afterInit:l}=this,u=Pr(t).pipe(za(f=>Rc(this,void 0,void 0,function*(){var p;r.debug(`🛠 creating configurator ${r.formatModuleName(f)}`);try{const m=yield(p=f.configure)===null||p===void 0?void 0:p.call(f,e);return r.debug(`🛠 created configurator for ${r.formatModuleName(f)}`,m),{[f.name]:m}}catch(m){throw r.error(`🛠 Failed to created configurator for ${r.formatModuleName(f)}`,m),m}})),EM((f,p)=>Object.assign(f,p),{onAfterConfiguration(f){a.push(f)},onAfterInit(f){l.push(f)}}));return Zo(u)}_postConfigure(e){return Rc(this,void 0,void 0,function*(){const{modules:t,logger:r,_afterConfiguration:a}=this;if(yield Promise.allSettled(t.filter(l=>!!l.postConfigure).map(l=>Rc(this,void 0,void 0,function*(){var u;try{yield(u=l.postConfigure)===null||u===void 0?void 0:u.call(l,e),r.debug(`🏗📌 post configured ${r.formatModuleName(l)}`,l)}catch{r.warn(`🏗📌 post configure failed ${r.formatModuleName(l)}`)}}))),a.length)try{r.debug(`🏗📌 post configure hooks [${a.length}]`),yield Promise.allSettled(a.map(l=>Promise.resolve(l(e)))),r.debug("🏗📌 post configure hooks complete")}catch(l){r.warn("🏗📌 post configure hook failed",l)}})}_initialize(e,t){return Rc(this,void 0,void 0,function*(){const{modules:r,logger:a}=this,l=r.map(y=>y.name),u=new My({}),f=y=>l.includes(y),p=(y,E=60)=>{if(!l.includes(y))throw a.error(`🚀⌛️ Cannot not require ${a.formatModuleName(String(y))} since module is not defined!`),Error(`cannot not require [${String(y)}] since module is not defined!`);return u.value[y]?(a.debug(`🚀⌛️ ${a.formatModuleName(String(y))} is initiated, skipping queue`),Promise.resolve(u.value[y])):(a.debug(`🚀⌛️ Awaiting init ${a.formatModuleName(String(y))}, timeout ${E}s`),Po(u.pipe(fn(S=>!!S[y]),dn(S=>S[y]),Lz({each:E*1e3,with:()=>pM(()=>new aB)}))))};Pr(r).pipe(za(y=>{const E=y.name;return a.debug(`🚀 initializing ${a.formatModuleName(y)}`),Pr(Promise.resolve(y.initialize({ref:t,config:e[E],requireInstance:p,hasModule:f}))).pipe(dn(S=>{var T;if(!(S instanceof SM)&&!(S.version instanceof Ny)){a.debug("🤷 module does not extends the [BaseModuleProvider] or exposes [SemanticVersion]");try{S.version=y.version instanceof Ny?y.version:new Ny((T=y.version)!==null&&T!==void 0?T:"0.0.0-unknown")}catch{a.error("🚨 failed to set module version")}}return a.debug(`🚀 initialized ${a.formatModuleName(y)}`),[E,S]}))})).subscribe({next:([y,E])=>{u.next(Object.assign(u.value,{[y]:E}))},complete:()=>u.complete()});const m=yield Zo(u);return Object.seal(m),m})}_postInitialize(e,t){return Rc(this,void 0,void 0,function*(){const{modules:r,logger:a,_afterInit:l}=this,u=Pr(r).pipe(fn(f=>!!f.postInitialize),Rv(f=>a.debug(`🚀📌 post initializing moule ${a.formatModuleName(f)}`)),za(f=>Pr(f.postInitialize({ref:t,modules:e,instance:e[f.name]})).pipe(Rv(()=>{a.debug(`🚀📌 post initialized moule ${a.formatModuleName(f)}`)}),Tr(p=>(a.warn(`🚀📌 post initialize failed moule ${a.formatModuleName(f)}`,p),Ni)))));if(yield Zo(u),l.length)try{a.debug(`🚀📌 post configure hooks [${l.length}]`),yield Promise.allSettled(l.map(f=>Promise.resolve(f(e)))),a.debug("🚀📌 post configure hooks complete")}catch(f){a.warn("🚀📌 post configure hook failed",f)}a.debug(`🎉 Modules initialized ${r.map(a.formatModuleName)}`,e),a.info("🟢 Modules initialized")})}dispose(e,t){return Rc(this,void 0,void 0,function*(){const{modules:r}=this;yield Promise.allSettled(r.filter(a=>!!a.dispose).map(a=>Rc(this,void 0,void 0,function*(){var l;yield(l=a.dispose)===null||l===void 0?void 0:l.call(a,{ref:t,modules:e,instance:e[a.name]})})))})}}var xv=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!a:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(n,t):a?a.value=t:e.set(n,t),t},Th=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},wE,bE,Ly,SE,Uy,qR;class lB{constructor(e,t){this.__type=e,wE.set(this,void 0),bE.set(this,void 0),Ly.set(this,!1),SE.set(this,void 0),Uy.set(this,void 0),qR.set(this,Date.now()),xv(this,wE,t.detail,"f"),xv(this,bE,t.source,"f"),xv(this,SE,!!t.cancelable,"f"),xv(this,Uy,t.canBubble===void 0?!0:t.canBubble,"f")}get bubbles(){return Th(this,Uy,"f")&&!Th(this,Ly,"f")}get created(){return Th(this,qR,"f")}get cancelable(){return Th(this,SE,"f")}get canceled(){return Th(this,Ly,"f")}get detail(){return Th(this,wE,"f")}get source(){return Th(this,bE,"f")}get type(){return this.__type}preventDefault(){this.cancelable&&xv(this,Ly,!0,"f")}stopPropagation(){xv(this,Uy,!1,"f")}}wE=new WeakMap,bE=new WeakMap,Ly=new WeakMap,SE=new WeakMap,Uy=new WeakMap,qR=new WeakMap;var uB=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(u){u(l)})}return new(t||(t=Promise))(function(l,u){function f(y){try{m(r.next(y))}catch(E){u(E)}}function p(y){try{m(r.throw(y))}catch(E){u(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};class cB{constructor({onDispatch:e,onBubble:t}){this.__onDispatch=e,this.__onBubble=t}dispatch(e,t){var r,a;return uB(this,void 0,void 0,function*(){try{yield(r=this.__onDispatch)===null||r===void 0?void 0:r.call(this,e)}catch(u){throw u}const l=e;if(!l.dispatcher)l.dispatcher=this;else if(l.dispatcher===this)throw Error("loop detected");for(const u of t)e.cancelable?e.canceled||(yield Promise.resolve(u(e))):u(e);if(e.bubbles)try{yield(a=this.__onBubble)===null||a===void 0?void 0:a.call(this,e)}catch(u){throw u}})}}var TM=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(u){u(l)})}return new(t||(t=Promise))(function(l,u){function f(y){try{m(r.next(y))}catch(E){u(E)}}function p(y){try{m(r.throw(y))}catch(E){u(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};class dB extends vn{get event$(){return this.__event$.asObservable()}get closed(){return this.__event$.closed}constructor(e){super(t=>{this.__event$.subscribe(t)}),this.__listeners=[],this.__event$=new po,this.__dispatcher=new cB({onDispatch:e.onDispatch,onBubble:e.onBubble})}addEventListener(e,t){if(this.closed)throw Error("Cannot listen to events when provider is closed!");const r={type:e,handler:t};return this.__listeners.push(r),()=>{const a=this.__listeners.indexOf(r);0<=a&&this.__listeners.splice(a,1)}}dispatchEvent(e,t){return TM(this,void 0,void 0,function*(){if(typeof e=="string"){if(!t)throw Error("invalid arguments, missing [FrameworkEventInit]");return this._dispatchEvent(new lB(e,t))}else return this._dispatchEvent(e)})}_dispatchEvent(e){return TM(this,void 0,void 0,function*(){if(this.closed)throw Error("Cannot dispatch events when provider is closed!");this.__event$.next(e);try{const t=this.__listeners.filter(r=>r.type===e.type).map(({handler:r})=>r);yield this.__dispatcher.dispatch(e,t)}catch(t){throw t}return e})}dispose(){this.__listeners=[],this.__event$.complete()}}var RM=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(u){u(l)})}return new(t||(t=Promise))(function(l,u){function f(y){try{m(r.next(y))}catch(E){u(E)}}function p(y){try{m(r.throw(y))}catch(E){u(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};const fB={name:"event",configure:n=>{const e={},t=n==null?void 0:n.event;return t&&(e.onBubble=r=>RM(void 0,void 0,void 0,function*(){yield t.dispatchEvent(r)})),e},initialize:({config:n})=>new dB(n),postInitialize:({instance:n,modules:e})=>RM(void 0,void 0,void 0,function*(){n.dispatchEvent("onModulesLoaded",{detail:e,source:n})}),dispose({instance:n}){n.dispose()}};class kM{constructor(){this._operators={}}add(e,t){if(Object.keys(this._operators).includes(e))throw Error(`Operator [${e}] already defined`);return this.set(e,t)}set(e,t){return this._operators[e]=t,this}get(e){return this._operators[e]}process(e){return Object.values(this._operators).length?Pr(Object.values(this._operators)).pipe(iB((r,a)=>Promise.resolve(a(r)).then(l=>l??r),e,1),$R()):gs(e)}}const hB=(n,e)=>t=>{const r=new Headers(t.headers);return r.append(n,e),Object.assign(Object.assign({},t),{headers:r})};class AM extends kM{setHeader(e,t){const r=hB(e,t);return this.set("header-"+e,r)}}class pB extends kM{}class vB{get clients(){return Object.assign({},this._clients)}constructor(e){this._clients={},this.defaultHttpRequestHandler=new AM,this.defaultHttpClientCtor=e}hasClient(e){return Object.keys(this._clients).includes(e)}configureClient(e,t){const r=typeof t=="string"?l=>l.uri=String(t):t,a=typeof r=="function"?{onCreate:r}:r;return this._clients[e]=Object.assign(Object.assign({},this._clients[e]),a),this}}class mB extends Error{constructor(e){super(e)}}const gB=n=>new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(n);class yB{get defaultHttpRequestHandler(){return this.config.defaultHttpRequestHandler}constructor(e){this.config=e}hasClient(e){return Object.keys(this.config.clients).includes(e)}createClient(e){const t=this._resolveConfig(e),{baseUri:r,defaultScopes:a=[],onCreate:l,ctor:u=this.config.defaultHttpClientCtor,requestHandler:f=this.defaultHttpRequestHandler}=t,p={requestHandler:f},m=new u(r||"",p);return Object.assign(m,{defaultScopes:a}),l&&l(m),m}createCustomClient(e){return this.createClient(e)}_resolveConfig(e){if(typeof e=="string"){const t=this.config.clients[e];if(!t&&gB(e))return{baseUri:e};if(!t)throw new mB(`No registered http client for key [${e}]`);return t}return e}}function _B(n,e){e===void 0&&(e={});var t=e.selector,r=BN(e,["selector"]);return new vn(function(a){var l=new AbortController,u=l.signal,f=!0,p=r.signal;if(p)if(p.aborted)l.abort();else{var m=function(){u.aborted||l.abort()};p.addEventListener("abort",m),a.add(function(){return p.removeEventListener("abort",m)})}var y=vi(vi({},r),{signal:u}),E=function(S){f=!1,a.error(S)};return fetch(n,y).then(function(S){t?ms(t(S)).subscribe(Gr(a,void 0,function(){f=!1,a.complete()},E)):(f=!1,a.next(S),a.complete())}).catch(E),function(){f&&l.abort()}})}const CB=n=>{if(!n.ok)throw new Error("network response was not OK");if(n.status===204)return Promise.resolve();try{return n.json()}catch{throw Error("failed to parse response")}},EB=n=>{if(!n.ok)throw new Error("network response was not OK");if(n.status===204)throw new Error("no content");try{return n.blob()}catch{throw Error("failed to parse response")}};class VR extends Error{constructor(e,t,r){super(e,r),this.message=e,this.response=t}}var xM=globalThis&&globalThis.__rest||function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(n,r[a])&&(t[r[a]]=n[r[a]]);return t};class wB{get request$(){return this._request$.asObservable()}get response$(){return this._response$.asObservable()}constructor(e,t){var r,a;this.uri=e,this._request$=new po,this._response$=new po,this._abort$=new po,this.requestHandler=(r=t==null?void 0:t.requestHandler)!==null&&r!==void 0?r:new AM,this.responseHandler=(a=t==null?void 0:t.responseHandler)!==null&&a!==void 0?a:new pB,this._init()}_init(){}fetch$(e,t){return this._fetch$(e,t)}fetch(e,t){return Po(this.fetch$(e,t))}fetchAsync(e,t){return this.fetch(e,t)}json$(e,t){var r;const a=typeof(t==null?void 0:t.body)=="object"?JSON.stringify(t==null?void 0:t.body):t==null?void 0:t.body,l=(r=t==null?void 0:t.selector)!==null&&r!==void 0?r:CB,u=new Headers(t==null?void 0:t.headers);return u.append("Accept","application/json"),u.append("Content-Type","application/json"),this.fetch$(e,Object.assign(Object.assign({},t),{body:a,selector:l,headers:u}))}json(e,t){return Po(this.json$(e,t))}blob$(e,t){var r;const a=(r=t==null?void 0:t.selector)!==null&&r!==void 0?r:EB;return this.fetch$(e,Object.assign(Object.assign({},t),{selector:a}))}blob(e,t){return Po(this.blob$(e,t))}jsonAsync(e,t){return this.json(e,t)}execute(e,t,r){return this[e](t,r)}abort(){this._abort$.next()}_fetch$(e,t){const r=t||{},{selector:a}=r,l=xM(r,["selector"]);return gs(Object.assign(Object.assign({},l),{uri:this._resolveUrl(e)})).pipe(Wr(f=>this._prepareRequest(f)),Rv(f=>this._request$.next(f)),Wr(f=>{var{uri:p,path:m}=f,y=xM(f,["uri","path"]);return _B(p,y)}),Wr(f=>this._prepareResponse(f)),Rv(f=>this._response$.next(f)),Wr(f=>{if(a)try{return a(f)}catch(p){throw new VR("failed to execute response selector",f,{cause:p})}return gs(f)}),wM(this._abort$))}_prepareRequest(e){return this.requestHandler.process(e)}_prepareResponse(e){return this.responseHandler.process(e)}_resolveUrl(e){const t=this.uri||window.location.origin;return new URL(e,t).href}}class bB extends wB{constructor(){super(...arguments),this.defaultScopes=[]}fetch$(e,t){const r=Object.assign(t||{},{scopes:this.defaultScopes.concat((t==null?void 0:t.scopes)||[])});return super._fetch$(e,r)}}var IM=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(u){u(l)})}return new(t||(t=Promise))(function(l,u){function f(y){try{m(r.next(y))}catch(E){u(E)}}function p(y){try{m(r.throw(y))}catch(E){u(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};const KR={name:"http",configure:()=>new vB(bB),initialize:({config:n,hasModule:e,requireInstance:t})=>IM(void 0,void 0,void 0,function*(){const r=new yB(n);if(e("auth")){const a=yield t("auth");r.defaultHttpRequestHandler.set("MSAL",l=>IM(void 0,void 0,void 0,function*(){const{scopes:u=[]}=l;if(u.length){const f=yield a.acquireToken({scopes:u});if(f){const p=new Headers(l.headers);return p.set("Authorization",`Bearer ${f.accessToken}`),Object.assign(Object.assign({},l),{headers:p})}}}))}return r})},SB=n=>({module:KR,configure:n}),OM=(n,e)=>({module:KR,configure:t=>{t.configureClient(n,e)}}),GR="default";class TB{constructor(){this._configs={},this.requiresAuth=!0}get defaultConfig(){return this._configs[GR]}getClientConfig(e){return this._configs[e]}configureClient(e,t){return this._configs[e]=t,this}configureDefault(e){if(this._configs[GR])throw Error("Default AuthClient already provided");this.configureClient(GR,e)}}/*! @azure/msal-browser v2.38.2 2023-08-24 *//*! *****************************************************************************
238
- Copyright (c) Microsoft Corporation.
239
-
240
- Permission to use, copy, modify, and/or distribute this software for any
241
- purpose with or without fee is hereby granted.
242
-
243
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
244
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
245
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
246
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
247
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
248
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
249
- PERFORMANCE OF THIS SOFTWARE.
250
- ***************************************************************************** */var WR=function(n,e){return WR=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])},WR(n,e)};function Do(n,e){WR(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var vt=function(){return vt=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++){t=arguments[r];for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e},vt.apply(this,arguments)};function NM(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(n,r[a])&&(t[r[a]]=n[r[a]]);return t}function Ie(n,e,t,r){function a(l){return l instanceof t?l:new t(function(u){u(l)})}return new(t||(t=Promise))(function(l,u){function f(y){try{m(r.next(y))}catch(E){u(E)}}function p(y){try{m(r.throw(y))}catch(E){u(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})}function Oe(n,e){var t={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},r,a,l,u;return u={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function f(m){return function(y){return p([m,y])}}function p(m){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,a&&(l=m[0]&2?a.return:m[0]?a.throw||((l=a.return)&&l.call(a),0):a.next)&&!(l=l.call(a,m[1])).done)return l;switch(a=0,l&&(m=[m[0]&2,l.value]),m[0]){case 0:case 1:l=m;break;case 4:return t.label++,{value:m[1],done:!1};case 5:t.label++,a=m[1],m=[0];continue;case 7:m=t.ops.pop(),t.trys.pop();continue;default:if(l=t.trys,!(l=l.length>0&&l[l.length-1])&&(m[0]===6||m[0]===2)){t=0;continue}if(m[0]===3&&(!l||m[1]>l[0]&&m[1]<l[3])){t.label=m[1];break}if(m[0]===6&&t.label<l[1]){t.label=l[1],l=m;break}if(l&&t.label<l[2]){t.label=l[2],t.ops.push(m);break}l[2]&&t.ops.pop(),t.trys.pop();continue}m=e.call(n,t)}catch(y){m=[6,y],a=0}finally{r=l=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}}function RB(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),a,l=[],u;try{for(;(e===void 0||e-- >0)&&!(a=r.next()).done;)l.push(a.value)}catch(f){u={error:f}}finally{try{a&&!a.done&&(t=r.return)&&t.call(r)}finally{if(u)throw u.error}}return l}function YR(){for(var n=[],e=0;e<arguments.length;e++)n=n.concat(RB(arguments[e]));return n}/*! @azure/msal-common v13.3.0 2023-08-24 *//*! *****************************************************************************
251
- Copyright (c) Microsoft Corporation.
252
-
253
- Permission to use, copy, modify, and/or distribute this software for any
254
- purpose with or without fee is hereby granted.
255
-
256
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
257
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
258
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
259
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
260
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
261
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
262
- PERFORMANCE OF THIS SOFTWARE.
263
- ***************************************************************************** */var QR=function(n,e){return QR=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])},QR(n,e)};function Ba(n,e){QR(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var zn=function(){return zn=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++){t=arguments[r];for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e},zn.apply(this,arguments)};function Qt(n,e,t,r){function a(l){return l instanceof t?l:new t(function(u){u(l)})}return new(t||(t=Promise))(function(l,u){function f(y){try{m(r.next(y))}catch(E){u(E)}}function p(y){try{m(r.throw(y))}catch(E){u(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})}function Xt(n,e){var t={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},r,a,l,u;return u={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function f(m){return function(y){return p([m,y])}}function p(m){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,a&&(l=m[0]&2?a.return:m[0]?a.throw||((l=a.return)&&l.call(a),0):a.next)&&!(l=l.call(a,m[1])).done)return l;switch(a=0,l&&(m=[m[0]&2,l.value]),m[0]){case 0:case 1:l=m;break;case 4:return t.label++,{value:m[1],done:!1};case 5:t.label++,a=m[1],m=[0];continue;case 7:m=t.ops.pop(),t.trys.pop();continue;default:if(l=t.trys,!(l=l.length>0&&l[l.length-1])&&(m[0]===6||m[0]===2)){t=0;continue}if(m[0]===3&&(!l||m[1]>l[0]&&m[1]<l[3])){t.label=m[1];break}if(m[0]===6&&t.label<l[1]){t.label=l[1],l=m;break}if(l&&t.label<l[2]){t.label=l[2],t.ops.push(m);break}l[2]&&t.ops.pop(),t.trys.pop();continue}m=e.call(n,t)}catch(y){m=[6,y],a=0}finally{r=l=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}}function TE(){for(var n=0,e=0,t=arguments.length;e<t;e++)n+=arguments[e].length;for(var r=Array(n),a=0,e=0;e<t;e++)for(var l=arguments[e],u=0,f=l.length;u<f;u++,a++)r[a]=l[u];return r}/*! @azure/msal-common v13.3.0 2023-08-24 */var W={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",DSTS:"dstsv2",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",CIAM_AUTH_URL:".ciamlogin.com",AAD_TENANT_DOMAIN_SUFFIX:".onmicrosoft.com",RESOURCE_DELIM:"|",NO_ACCOUNT:"NO_ACCOUNT",CLAIMS:"claims",CONSUMER_UTID:"9188040d-6c67-4c5b-b112-36a304b66dad",OPENID_SCOPE:"openid",PROFILE_SCOPE:"profile",OFFLINE_ACCESS_SCOPE:"offline_access",EMAIL_SCOPE:"email",CODE_RESPONSE_TYPE:"code",CODE_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",FRAGMENT_RESPONSE_MODE:"fragment",S256_CODE_CHALLENGE_METHOD:"S256",URL_FORM_CONTENT_TYPE:"application/x-www-form-urlencoded;charset=utf-8",AUTHORIZATION_PENDING:"authorization_pending",NOT_DEFINED:"not_defined",EMPTY_STRING:"",NOT_APPLICABLE:"N/A",FORWARD_SLASH:"/",IMDS_ENDPOINT:"http://169.254.169.254/metadata/instance/compute/location",IMDS_VERSION:"2020-06-01",IMDS_TIMEOUT:2e3,AZURE_REGION_AUTO_DISCOVER_FLAG:"TryAutoDetect",REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:"login.microsoft.com",REGIONAL_AUTH_NON_MSI_QUERY_STRING:"allowestsrnonmsi=true",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],TOKEN_RESPONSE_TYPE:"token",ID_TOKEN_RESPONSE_TYPE:"id_token",SHR_NONCE_VALIDITY:240,INVALID_INSTANCE:"invalid_instance"},Fy=[W.OPENID_SCOPE,W.PROFILE_SCOPE,W.OFFLINE_ACCESS_SCOPE],MM=TE(Fy,[W.EMAIL_SCOPE]),ys;(function(n){n.CONTENT_TYPE="Content-Type",n.RETRY_AFTER="Retry-After",n.CCS_HEADER="X-AnchorMailbox",n.WWWAuthenticate="WWW-Authenticate",n.AuthenticationInfo="Authentication-Info",n.X_MS_REQUEST_ID="x-ms-request-id",n.X_MS_HTTP_VERSION="x-ms-httpver"})(ys||(ys={}));var Vi;(function(n){n.ID_TOKEN="idtoken",n.CLIENT_INFO="client.info",n.ADAL_ID_TOKEN="adal.idtoken",n.ERROR="error",n.ERROR_DESC="error.description",n.ACTIVE_ACCOUNT="active-account",n.ACTIVE_ACCOUNT_FILTERS="active-account-filters"})(Vi||(Vi={}));var Rh;(function(n){n.COMMON="common",n.ORGANIZATIONS="organizations",n.CONSUMERS="consumers"})(Rh||(Rh={}));var nn;(function(n){n.CLIENT_ID="client_id",n.REDIRECT_URI="redirect_uri",n.RESPONSE_TYPE="response_type",n.RESPONSE_MODE="response_mode",n.GRANT_TYPE="grant_type",n.CLAIMS="claims",n.SCOPE="scope",n.ERROR="error",n.ERROR_DESCRIPTION="error_description",n.ACCESS_TOKEN="access_token",n.ID_TOKEN="id_token",n.REFRESH_TOKEN="refresh_token",n.EXPIRES_IN="expires_in",n.STATE="state",n.NONCE="nonce",n.PROMPT="prompt",n.SESSION_STATE="session_state",n.CLIENT_INFO="client_info",n.CODE="code",n.CODE_CHALLENGE="code_challenge",n.CODE_CHALLENGE_METHOD="code_challenge_method",n.CODE_VERIFIER="code_verifier",n.CLIENT_REQUEST_ID="client-request-id",n.X_CLIENT_SKU="x-client-SKU",n.X_CLIENT_VER="x-client-VER",n.X_CLIENT_OS="x-client-OS",n.X_CLIENT_CPU="x-client-CPU",n.X_CLIENT_CURR_TELEM="x-client-current-telemetry",n.X_CLIENT_LAST_TELEM="x-client-last-telemetry",n.X_MS_LIB_CAPABILITY="x-ms-lib-capability",n.X_APP_NAME="x-app-name",n.X_APP_VER="x-app-ver",n.POST_LOGOUT_URI="post_logout_redirect_uri",n.ID_TOKEN_HINT="id_token_hint",n.DEVICE_CODE="device_code",n.CLIENT_SECRET="client_secret",n.CLIENT_ASSERTION="client_assertion",n.CLIENT_ASSERTION_TYPE="client_assertion_type",n.TOKEN_TYPE="token_type",n.REQ_CNF="req_cnf",n.OBO_ASSERTION="assertion",n.REQUESTED_TOKEN_USE="requested_token_use",n.ON_BEHALF_OF="on_behalf_of",n.FOCI="foci",n.CCS_HEADER="X-AnchorMailbox",n.RETURN_SPA_CODE="return_spa_code",n.NATIVE_BROKER="nativebroker",n.LOGOUT_HINT="logout_hint"})(nn||(nn={}));var Iv;(function(n){n.ACCESS_TOKEN="access_token",n.XMS_CC="xms_cc"})(Iv||(Iv={}));var ea={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},$y;(function(n){n.ACCOUNT="account",n.SID="sid",n.LOGIN_HINT="login_hint",n.ID_TOKEN="id_token",n.DOMAIN_HINT="domain_hint",n.ORGANIZATIONS="organizations",n.CONSUMERS="consumers",n.ACCOUNT_ID="accountIdentifier",n.HOMEACCOUNT_ID="homeAccountIdentifier"})($y||($y={}));var PM={PLAIN:"plain",S256:"S256"},RE;(function(n){n.QUERY="query",n.FRAGMENT="fragment",n.FORM_POST="form_post"})(RE||(RE={}));var kE;(function(n){n.IMPLICIT_GRANT="implicit",n.AUTHORIZATION_CODE_GRANT="authorization_code",n.CLIENT_CREDENTIALS_GRANT="client_credentials",n.RESOURCE_OWNER_PASSWORD_GRANT="password",n.REFRESH_TOKEN_GRANT="refresh_token",n.DEVICE_CODE_GRANT="device_code",n.JWT_BEARER="urn:ietf:params:oauth:grant-type:jwt-bearer"})(kE||(kE={}));var kc;(function(n){n.MSSTS_ACCOUNT_TYPE="MSSTS",n.ADFS_ACCOUNT_TYPE="ADFS",n.MSAV1_ACCOUNT_TYPE="MSA",n.GENERIC_ACCOUNT_TYPE="Generic"})(kc||(kc={}));var Ki;(function(n){n.CACHE_KEY_SEPARATOR="-",n.CLIENT_INFO_SEPARATOR="."})(Ki||(Ki={}));var xt;(function(n){n.ID_TOKEN="IdToken",n.ACCESS_TOKEN="AccessToken",n.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",n.REFRESH_TOKEN="RefreshToken"})(xt||(xt={}));var Ac;(function(n){n[n.ADFS=1001]="ADFS",n[n.MSA=1002]="MSA",n[n.MSSTS=1003]="MSSTS",n[n.GENERIC=1004]="GENERIC",n[n.ACCESS_TOKEN=2001]="ACCESS_TOKEN",n[n.REFRESH_TOKEN=2002]="REFRESH_TOKEN",n[n.ID_TOKEN=2003]="ID_TOKEN",n[n.APP_METADATA=3001]="APP_METADATA",n[n.UNDEFINED=9999]="UNDEFINED"})(Ac||(Ac={}));var XR="appmetadata",kB="client_info",Hy="1",jy={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:3600*24},$s;(function(n){n.CONFIG="config",n.CACHE="cache",n.NETWORK="network",n.HARDCODED_VALUES="hardcoded_values"})($s||($s={}));var Lo={SCHEMA_VERSION:5,MAX_CUR_HEADER_BYTES:80,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"},Wn;(function(n){n.BEARER="Bearer",n.POP="pop",n.SSH="ssh-cert"})(Wn||(Wn={}));var zy={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},DM={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},AE;(function(n){n.username="username",n.password="password"})(AE||(AE={}));var Ov;(function(n){n[n.httpSuccess=200]="httpSuccess",n[n.httpBadRequest=400]="httpBadRequest"})(Ov||(Ov={}));var Ud;(function(n){n.FAILED_AUTO_DETECTION="1",n.INTERNAL_CACHE="2",n.ENVIRONMENT_VARIABLE="3",n.IMDS="4"})(Ud||(Ud={}));var By;(function(n){n.CONFIGURED_MATCHES_DETECTED="1",n.CONFIGURED_NO_AUTO_DETECTION="2",n.CONFIGURED_NOT_DETECTED="3",n.AUTO_DETECTION_REQUESTED_SUCCESSFUL="4",n.AUTO_DETECTION_REQUESTED_FAILED="5"})(By||(By={}));var Fd;(function(n){n.NO_CACHE_HIT="0",n.FORCE_REFRESH="1",n.NO_CACHED_ACCESS_TOKEN="2",n.CACHED_ACCESS_TOKEN_EXPIRED="3",n.REFRESH_CACHED_ACCESS_TOKEN="4",n.CLAIMS_REQUESTED_CACHE_SKIPPED="5"})(Fd||(Fd={}));var JR;(function(n){n.Jwt="JWT",n.Jwk="JWK",n.Pop="pop"})(JR||(JR={}));/*! @azure/msal-common v13.3.0 2023-08-24 */var xE={unexpectedError:{code:"unexpected_error",desc:"Unexpected error in authentication."},postRequestFailed:{code:"post_request_failed",desc:"Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details."}},Et=function(n){Ba(e,n);function e(t,r,a){var l=this,u=r?t+": "+r:t;return l=n.call(this,u)||this,Object.setPrototypeOf(l,e.prototype),l.errorCode=t||W.EMPTY_STRING,l.errorMessage=r||W.EMPTY_STRING,l.subError=a||W.EMPTY_STRING,l.name="AuthError",l}return e.prototype.setCorrelationId=function(t){this.correlationId=t},e.createUnexpectedError=function(t){return new e(xE.unexpectedError.code,xE.unexpectedError.desc+": "+t)},e.createPostRequestFailed=function(t){return new e(xE.postRequestFailed.code,xE.postRequestFailed.desc+": "+t)},e}(Error);/*! @azure/msal-common v13.3.0 2023-08-24 */var IE={createNewGuid:function(){var n="Crypto interface - createNewGuid() has not been implemented";throw Et.createUnexpectedError(n)},base64Decode:function(){var n="Crypto interface - base64Decode() has not been implemented";throw Et.createUnexpectedError(n)},base64Encode:function(){var n="Crypto interface - base64Encode() has not been implemented";throw Et.createUnexpectedError(n)},generatePkceCodes:function(){return Qt(this,void 0,void 0,function(){var n;return Xt(this,function(e){throw n="Crypto interface - generatePkceCodes() has not been implemented",Et.createUnexpectedError(n)})})},getPublicKeyThumbprint:function(){return Qt(this,void 0,void 0,function(){var n;return Xt(this,function(e){throw n="Crypto interface - getPublicKeyThumbprint() has not been implemented",Et.createUnexpectedError(n)})})},removeTokenBindingKey:function(){return Qt(this,void 0,void 0,function(){var n;return Xt(this,function(e){throw n="Crypto interface - removeTokenBindingKey() has not been implemented",Et.createUnexpectedError(n)})})},clearKeystore:function(){return Qt(this,void 0,void 0,function(){var n;return Xt(this,function(e){throw n="Crypto interface - clearKeystore() has not been implemented",Et.createUnexpectedError(n)})})},signJwt:function(){return Qt(this,void 0,void 0,function(){var n;return Xt(this,function(e){throw n="Crypto interface - signJwt() has not been implemented",Et.createUnexpectedError(n)})})},hashString:function(){return Qt(this,void 0,void 0,function(){var n;return Xt(this,function(e){throw n="Crypto interface - hashString() has not been implemented",Et.createUnexpectedError(n)})})}};/*! @azure/msal-common v13.3.0 2023-08-24 */var $e={clientInfoDecodingError:{code:"client_info_decoding_error",desc:"The client info could not be parsed/decoded correctly. Please review the trace to determine the root cause."},clientInfoEmptyError:{code:"client_info_empty_error",desc:"The client info was empty. Please review the trace to determine the root cause."},tokenParsingError:{code:"token_parsing_error",desc:"Token cannot be parsed. Please review stack trace to determine root cause."},nullOrEmptyToken:{code:"null_or_empty_token",desc:"The token is null or empty. Please review the trace to determine the root cause."},endpointResolutionError:{code:"endpoints_resolution_error",desc:"Error: could not resolve endpoints. Please check network and try again."},networkError:{code:"network_error",desc:"Network request failed. Please check network trace to determine root cause."},unableToGetOpenidConfigError:{code:"openid_config_error",desc:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints."},hashNotDeserialized:{code:"hash_not_deserialized",desc:"The hash parameters could not be deserialized. Please review the trace to determine the root cause."},blankGuidGenerated:{code:"blank_guid_generated",desc:"The guid generated was blank. Please review the trace to determine the root cause."},invalidStateError:{code:"invalid_state",desc:"State was not the expected format. Please check the logs to determine whether the request was sent using ProtocolUtils.setRequestState()."},stateMismatchError:{code:"state_mismatch",desc:"State mismatch error. Please check your network. Continued requests may cause cache overflow."},stateNotFoundError:{code:"state_not_found",desc:"State not found"},nonceMismatchError:{code:"nonce_mismatch",desc:"Nonce mismatch error. This may be caused by a race condition in concurrent requests."},nonceNotFoundError:{code:"nonce_not_found",desc:"nonce not found"},authTimeNotFoundError:{code:"auth_time_not_found",desc:"Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information."},maxAgeTranspiredError:{code:"max_age_transpired",desc:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication."},noTokensFoundError:{code:"no_tokens_found",desc:"No tokens were found for the given scopes, and no authorization code was passed to acquireToken. You must retrieve an authorization code before making a call to acquireToken()."},multipleMatchingTokens:{code:"multiple_matching_tokens",desc:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account."},multipleMatchingAccounts:{code:"multiple_matching_accounts",desc:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account"},multipleMatchingAppMetadata:{code:"multiple_matching_appMetadata",desc:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata"},tokenRequestCannotBeMade:{code:"request_cannot_be_made",desc:"Token request cannot be made without authorization code or refresh token."},appendEmptyScopeError:{code:"cannot_append_empty_scope",desc:"Cannot append null or empty scope to ScopeSet. Please check the stack trace for more info."},removeEmptyScopeError:{code:"cannot_remove_empty_scope",desc:"Cannot remove null or empty scope from ScopeSet. Please check the stack trace for more info."},appendScopeSetError:{code:"cannot_append_scopeset",desc:"Cannot append ScopeSet due to error."},emptyInputScopeSetError:{code:"empty_input_scopeset",desc:"Empty input ScopeSet cannot be processed."},DeviceCodePollingCancelled:{code:"device_code_polling_cancelled",desc:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true."},DeviceCodeExpired:{code:"device_code_expired",desc:"Device code is expired."},DeviceCodeUnknownError:{code:"device_code_unknown_error",desc:"Device code stopped polling for unknown reasons."},NoAccountInSilentRequest:{code:"no_account_in_silent_request",desc:"Please pass an account object, silent flow is not supported without account information"},invalidCacheRecord:{code:"invalid_cache_record",desc:"Cache record object was null or undefined."},invalidCacheEnvironment:{code:"invalid_cache_environment",desc:"Invalid environment when attempting to create cache entry"},noAccountFound:{code:"no_account_found",desc:"No account found in cache for given key."},CachePluginError:{code:"no cache plugin set on CacheManager",desc:"ICachePlugin needs to be set before using readFromStorage or writeFromStorage"},noCryptoObj:{code:"no_crypto_object",desc:"No crypto object detected. This is required for the following operation: "},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},unexpectedAccountType:{code:"unexpected_account_type",desc:"Unexpected account type."},unexpectedCredentialType:{code:"unexpected_credential_type",desc:"Unexpected credential type."},invalidAssertion:{code:"invalid_assertion",desc:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515"},invalidClientCredential:{code:"invalid_client_credential",desc:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential"},tokenRefreshRequired:{code:"token_refresh_required",desc:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired."},userTimeoutReached:{code:"user_timeout_reached",desc:"User defined timeout for device code polling reached"},tokenClaimsRequired:{code:"token_claims_cnf_required_for_signedjwt",desc:"Cannot generate a POP jwt if the token_claims are not populated"},noAuthorizationCodeFromServer:{code:"authorization_code_missing_from_server_response",desc:"Server response does not contain an authorization code to proceed"},noAzureRegionDetected:{code:"no_azure_region_detected",desc:"No azure region was detected and no fallback was made available"},accessTokenEntityNullError:{code:"access_token_entity_null",desc:"Access token entity is null, please check logs and cache to ensure a valid access token is present."},bindingKeyNotRemovedError:{code:"binding_key_not_removed",desc:"Could not remove the credential's binding key from storage."},logoutNotSupported:{code:"end_session_endpoint_not_supported",desc:"Provided authority does not support logout."},keyIdMissing:{code:"key_id_missing",desc:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key."},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},userCanceledError:{code:"user_canceled",desc:"User canceled the flow."}},nt=function(n){Ba(e,n);function e(t,r){var a=n.call(this,t,r)||this;return a.name="ClientAuthError",Object.setPrototypeOf(a,e.prototype),a}return e.createClientInfoDecodingError=function(t){return new e($e.clientInfoDecodingError.code,$e.clientInfoDecodingError.desc+" Failed with error: "+t)},e.createClientInfoEmptyError=function(){return new e($e.clientInfoEmptyError.code,""+$e.clientInfoEmptyError.desc)},e.createTokenParsingError=function(t){return new e($e.tokenParsingError.code,$e.tokenParsingError.desc+" Failed with error: "+t)},e.createTokenNullOrEmptyError=function(t){return new e($e.nullOrEmptyToken.code,$e.nullOrEmptyToken.desc+" Raw Token Value: "+t)},e.createEndpointDiscoveryIncompleteError=function(t){return new e($e.endpointResolutionError.code,$e.endpointResolutionError.desc+" Detail: "+t)},e.createNetworkError=function(t,r){return new e($e.networkError.code,$e.networkError.desc+" | Fetch client threw: "+r+" | Attempted to reach: "+t.split("?")[0])},e.createUnableToGetOpenidConfigError=function(t){return new e($e.unableToGetOpenidConfigError.code,$e.unableToGetOpenidConfigError.desc+" Attempted to retrieve endpoints from: "+t)},e.createHashNotDeserializedError=function(t){return new e($e.hashNotDeserialized.code,$e.hashNotDeserialized.desc+" Given Object: "+t)},e.createInvalidStateError=function(t,r){return new e($e.invalidStateError.code,$e.invalidStateError.desc+" Invalid State: "+t+", Root Err: "+r)},e.createStateMismatchError=function(){return new e($e.stateMismatchError.code,$e.stateMismatchError.desc)},e.createStateNotFoundError=function(t){return new e($e.stateNotFoundError.code,$e.stateNotFoundError.desc+": "+t)},e.createNonceMismatchError=function(){return new e($e.nonceMismatchError.code,$e.nonceMismatchError.desc)},e.createAuthTimeNotFoundError=function(){return new e($e.authTimeNotFoundError.code,$e.authTimeNotFoundError.desc)},e.createMaxAgeTranspiredError=function(){return new e($e.maxAgeTranspiredError.code,$e.maxAgeTranspiredError.desc)},e.createNonceNotFoundError=function(t){return new e($e.nonceNotFoundError.code,$e.nonceNotFoundError.desc+": "+t)},e.createMultipleMatchingTokensInCacheError=function(){return new e($e.multipleMatchingTokens.code,$e.multipleMatchingTokens.desc+".")},e.createMultipleMatchingAccountsInCacheError=function(){return new e($e.multipleMatchingAccounts.code,$e.multipleMatchingAccounts.desc)},e.createMultipleMatchingAppMetadataInCacheError=function(){return new e($e.multipleMatchingAppMetadata.code,$e.multipleMatchingAppMetadata.desc)},e.createTokenRequestCannotBeMadeError=function(){return new e($e.tokenRequestCannotBeMade.code,$e.tokenRequestCannotBeMade.desc)},e.createAppendEmptyScopeToSetError=function(t){return new e($e.appendEmptyScopeError.code,$e.appendEmptyScopeError.desc+" Given Scope: "+t)},e.createRemoveEmptyScopeFromSetError=function(t){return new e($e.removeEmptyScopeError.code,$e.removeEmptyScopeError.desc+" Given Scope: "+t)},e.createAppendScopeSetError=function(t){return new e($e.appendScopeSetError.code,$e.appendScopeSetError.desc+" Detail Error: "+t)},e.createEmptyInputScopeSetError=function(){return new e($e.emptyInputScopeSetError.code,""+$e.emptyInputScopeSetError.desc)},e.createDeviceCodeCancelledError=function(){return new e($e.DeviceCodePollingCancelled.code,""+$e.DeviceCodePollingCancelled.desc)},e.createDeviceCodeExpiredError=function(){return new e($e.DeviceCodeExpired.code,""+$e.DeviceCodeExpired.desc)},e.createDeviceCodeUnknownError=function(){return new e($e.DeviceCodeUnknownError.code,""+$e.DeviceCodeUnknownError.desc)},e.createNoAccountInSilentRequestError=function(){return new e($e.NoAccountInSilentRequest.code,""+$e.NoAccountInSilentRequest.desc)},e.createNullOrUndefinedCacheRecord=function(){return new e($e.invalidCacheRecord.code,$e.invalidCacheRecord.desc)},e.createInvalidCacheEnvironmentError=function(){return new e($e.invalidCacheEnvironment.code,$e.invalidCacheEnvironment.desc)},e.createNoAccountFoundError=function(){return new e($e.noAccountFound.code,$e.noAccountFound.desc)},e.createCachePluginError=function(){return new e($e.CachePluginError.code,""+$e.CachePluginError.desc)},e.createNoCryptoObjectError=function(t){return new e($e.noCryptoObj.code,""+$e.noCryptoObj.desc+t)},e.createInvalidCacheTypeError=function(){return new e($e.invalidCacheType.code,""+$e.invalidCacheType.desc)},e.createUnexpectedAccountTypeError=function(){return new e($e.unexpectedAccountType.code,""+$e.unexpectedAccountType.desc)},e.createUnexpectedCredentialTypeError=function(){return new e($e.unexpectedCredentialType.code,""+$e.unexpectedCredentialType.desc)},e.createInvalidAssertionError=function(){return new e($e.invalidAssertion.code,""+$e.invalidAssertion.desc)},e.createInvalidCredentialError=function(){return new e($e.invalidClientCredential.code,""+$e.invalidClientCredential.desc)},e.createRefreshRequiredError=function(){return new e($e.tokenRefreshRequired.code,$e.tokenRefreshRequired.desc)},e.createUserTimeoutReachedError=function(){return new e($e.userTimeoutReached.code,$e.userTimeoutReached.desc)},e.createTokenClaimsRequiredError=function(){return new e($e.tokenClaimsRequired.code,$e.tokenClaimsRequired.desc)},e.createNoAuthCodeInServerResponseError=function(){return new e($e.noAuthorizationCodeFromServer.code,$e.noAuthorizationCodeFromServer.desc)},e.createBindingKeyNotRemovedError=function(){return new e($e.bindingKeyNotRemovedError.code,$e.bindingKeyNotRemovedError.desc)},e.createLogoutNotSupportedError=function(){return new e($e.logoutNotSupported.code,$e.logoutNotSupported.desc)},e.createKeyIdMissingError=function(){return new e($e.keyIdMissing.code,$e.keyIdMissing.desc)},e.createNoNetworkConnectivityError=function(){return new e($e.noNetworkConnectivity.code,$e.noNetworkConnectivity.desc)},e.createUserCanceledError=function(){return new e($e.userCanceledError.code,$e.userCanceledError.desc)},e}(Et);/*! @azure/msal-common v13.3.0 2023-08-24 */var rt=function(){function n(){}return n.decodeAuthToken=function(e){if(n.isEmpty(e))throw nt.createTokenNullOrEmptyError(e);var t=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/,r=t.exec(e);if(!r||r.length<4)throw nt.createTokenParsingError("Given token is malformed: "+JSON.stringify(e));var a={header:r[1],JWSPayload:r[2],JWSSig:r[3]};return a},n.isEmpty=function(e){return typeof e>"u"||!e||e.length===0},n.isEmptyObj=function(e){if(e&&!n.isEmpty(e))try{var t=JSON.parse(e);return Object.keys(t).length===0}catch{}return!0},n.startsWith=function(e,t){return e.indexOf(t)===0},n.endsWith=function(e,t){return e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length},n.queryStringToObject=function(e){var t={},r=e.split("&"),a=function(l){return decodeURIComponent(l.replace(/\+/g," "))};return r.forEach(function(l){if(l.trim()){var u=l.split(/=(.+)/g,2),f=u[0],p=u[1];f&&p&&(t[a(f)]=a(p))}}),t},n.trimArrayEntries=function(e){return e.map(function(t){return t.trim()})},n.removeEmptyStringsFromArray=function(e){return e.filter(function(t){return!n.isEmpty(t)})},n.jsonParseHelper=function(e){try{return JSON.parse(e)}catch{return null}},n.matchPattern=function(e,t){var r=new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?"));return r.test(t)},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var ni;(function(n){n[n.Error=0]="Error",n[n.Warning=1]="Warning",n[n.Info=2]="Info",n[n.Verbose=3]="Verbose",n[n.Trace=4]="Trace"})(ni||(ni={}));var OE=function(){function n(e,t,r){this.level=ni.Info;var a=function(){},l=e||n.createDefaultLoggerOptions();this.localCallback=l.loggerCallback||a,this.piiLoggingEnabled=l.piiLoggingEnabled||!1,this.level=typeof l.logLevel=="number"?l.logLevel:ni.Info,this.correlationId=l.correlationId||W.EMPTY_STRING,this.packageName=t||W.EMPTY_STRING,this.packageVersion=r||W.EMPTY_STRING}return n.createDefaultLoggerOptions=function(){return{loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:ni.Info}},n.prototype.clone=function(e,t,r){return new n({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:r||this.correlationId},e,t)},n.prototype.logMessage=function(e,t){if(!(t.logLevel>this.level||!this.piiLoggingEnabled&&t.containsPii)){var r=new Date().toUTCString(),a;rt.isEmpty(t.correlationId)?rt.isEmpty(this.correlationId)?a="["+r+"]":a="["+r+"] : ["+this.correlationId+"]":a="["+r+"] : ["+t.correlationId+"]";var l=a+" : "+this.packageName+"@"+this.packageVersion+" : "+ni[t.logLevel]+" - "+e;this.executeCallback(t.logLevel,l,t.containsPii||!1)}},n.prototype.executeCallback=function(e,t,r){this.localCallback&&this.localCallback(e,t,r)},n.prototype.error=function(e,t){this.logMessage(e,{logLevel:ni.Error,containsPii:!1,correlationId:t||W.EMPTY_STRING})},n.prototype.errorPii=function(e,t){this.logMessage(e,{logLevel:ni.Error,containsPii:!0,correlationId:t||W.EMPTY_STRING})},n.prototype.warning=function(e,t){this.logMessage(e,{logLevel:ni.Warning,containsPii:!1,correlationId:t||W.EMPTY_STRING})},n.prototype.warningPii=function(e,t){this.logMessage(e,{logLevel:ni.Warning,containsPii:!0,correlationId:t||W.EMPTY_STRING})},n.prototype.info=function(e,t){this.logMessage(e,{logLevel:ni.Info,containsPii:!1,correlationId:t||W.EMPTY_STRING})},n.prototype.infoPii=function(e,t){this.logMessage(e,{logLevel:ni.Info,containsPii:!0,correlationId:t||W.EMPTY_STRING})},n.prototype.verbose=function(e,t){this.logMessage(e,{logLevel:ni.Verbose,containsPii:!1,correlationId:t||W.EMPTY_STRING})},n.prototype.verbosePii=function(e,t){this.logMessage(e,{logLevel:ni.Verbose,containsPii:!0,correlationId:t||W.EMPTY_STRING})},n.prototype.trace=function(e,t){this.logMessage(e,{logLevel:ni.Trace,containsPii:!1,correlationId:t||W.EMPTY_STRING})},n.prototype.tracePii=function(e,t){this.logMessage(e,{logLevel:ni.Trace,containsPii:!0,correlationId:t||W.EMPTY_STRING})},n.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var LM="@azure/msal-common",ZR="13.3.0";/*! @azure/msal-common v13.3.0 2023-08-24 */var qy;(function(n){n[n.None=0]="None",n.AzurePublic="https://login.microsoftonline.com",n.AzurePpe="https://login.windows-ppe.net",n.AzureChina="https://login.chinacloudapi.cn",n.AzureGermany="https://login.microsoftonline.de",n.AzureUsGovernment="https://login.microsoftonline.us"})(qy||(qy={}));/*! @azure/msal-common v13.3.0 2023-08-24 */var Jt={redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},claimsRequestParsingError:{code:"claims_request_parsing_error",desc:"Could not parse the given claims request object."},authorityUriInsecure:{code:"authority_uri_insecure",desc:"Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options"},urlParseError:{code:"url_parse_error",desc:"URL could not be parsed into appropriate segments."},urlEmptyError:{code:"empty_url_error",desc:"URL was empty or null."},emptyScopesError:{code:"empty_input_scopes_error",desc:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token."},nonArrayScopesError:{code:"nonarray_input_scopes_error",desc:"Scopes cannot be passed as non-array."},clientIdSingleScopeError:{code:"clientid_input_scopes_error",desc:"Client ID can only be provided as a single scope."},invalidPrompt:{code:"invalid_prompt_value",desc:"Supported prompt values are 'login', 'select_account', 'consent', 'create', 'none' and 'no_session'. Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest"},invalidClaimsRequest:{code:"invalid_claims",desc:"Given claims parameter must be a stringified JSON object."},tokenRequestEmptyError:{code:"token_request_empty",desc:"Token request was empty and not found in cache."},logoutRequestEmptyError:{code:"logout_request_empty",desc:"The logout request was null or undefined."},invalidCodeChallengeMethod:{code:"invalid_code_challenge_method",desc:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".'},invalidCodeChallengeParams:{code:"pkce_params_missing",desc:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request"},invalidCloudDiscoveryMetadata:{code:"invalid_cloud_discovery_metadata",desc:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields"},invalidAuthorityMetadata:{code:"invalid_authority_metadata",desc:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields."},untrustedAuthority:{code:"untrusted_authority",desc:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter."},invalidAzureCloudInstance:{code:"invalid_azure_cloud_instance",desc:"Invalid AzureCloudInstance provided. Please refer MSAL JS docs: aks.ms/msaljs/azure_cloud_instance for valid values"},missingSshJwk:{code:"missing_ssh_jwk",desc:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme."},missingSshKid:{code:"missing_ssh_kid",desc:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme."},missingNonceAuthenticationHeader:{code:"missing_nonce_authentication_header",desc:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce."},invalidAuthenticationHeader:{code:"invalid_authentication_header",desc:"Invalid authentication header provided"},authorityMismatch:{code:"authority_mismatch",desc:"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority."}},yr=function(n){Ba(e,n);function e(t,r){var a=n.call(this,t,r)||this;return a.name="ClientConfigurationError",Object.setPrototypeOf(a,e.prototype),a}return e.createRedirectUriEmptyError=function(){return new e(Jt.redirectUriNotSet.code,Jt.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(Jt.postLogoutUriNotSet.code,Jt.postLogoutUriNotSet.desc)},e.createClaimsRequestParsingError=function(t){return new e(Jt.claimsRequestParsingError.code,Jt.claimsRequestParsingError.desc+" Given value: "+t)},e.createInsecureAuthorityUriError=function(t){return new e(Jt.authorityUriInsecure.code,Jt.authorityUriInsecure.desc+" Given URI: "+t)},e.createUrlParseError=function(t){return new e(Jt.urlParseError.code,Jt.urlParseError.desc+" Given Error: "+t)},e.createUrlEmptyError=function(){return new e(Jt.urlEmptyError.code,Jt.urlEmptyError.desc)},e.createEmptyScopesArrayError=function(){return new e(Jt.emptyScopesError.code,""+Jt.emptyScopesError.desc)},e.createClientIdSingleScopeError=function(t){return new e(Jt.clientIdSingleScopeError.code,Jt.clientIdSingleScopeError.desc+" Given Scopes: "+t)},e.createInvalidPromptError=function(t){return new e(Jt.invalidPrompt.code,Jt.invalidPrompt.desc+" Given value: "+t)},e.createInvalidClaimsRequestError=function(){return new e(Jt.invalidClaimsRequest.code,Jt.invalidClaimsRequest.desc)},e.createEmptyLogoutRequestError=function(){return new e(Jt.logoutRequestEmptyError.code,Jt.logoutRequestEmptyError.desc)},e.createEmptyTokenRequestError=function(){return new e(Jt.tokenRequestEmptyError.code,Jt.tokenRequestEmptyError.desc)},e.createInvalidCodeChallengeMethodError=function(){return new e(Jt.invalidCodeChallengeMethod.code,Jt.invalidCodeChallengeMethod.desc)},e.createInvalidCodeChallengeParamsError=function(){return new e(Jt.invalidCodeChallengeParams.code,Jt.invalidCodeChallengeParams.desc)},e.createInvalidCloudDiscoveryMetadataError=function(){return new e(Jt.invalidCloudDiscoveryMetadata.code,Jt.invalidCloudDiscoveryMetadata.desc)},e.createInvalidAuthorityMetadataError=function(){return new e(Jt.invalidAuthorityMetadata.code,Jt.invalidAuthorityMetadata.desc)},e.createUntrustedAuthorityError=function(){return new e(Jt.untrustedAuthority.code,Jt.untrustedAuthority.desc)},e.createInvalidAzureCloudInstanceError=function(){return new e(Jt.invalidAzureCloudInstance.code,Jt.invalidAzureCloudInstance.desc)},e.createMissingSshJwkError=function(){return new e(Jt.missingSshJwk.code,Jt.missingSshJwk.desc)},e.createMissingSshKidError=function(){return new e(Jt.missingSshKid.code,Jt.missingSshKid.desc)},e.createMissingNonceAuthenticationHeadersError=function(){return new e(Jt.missingNonceAuthenticationHeader.code,Jt.missingNonceAuthenticationHeader.desc)},e.createInvalidAuthenticationHeaderError=function(t,r){return new e(Jt.invalidAuthenticationHeader.code,Jt.invalidAuthenticationHeader.desc+". Invalid header: "+t+". Details: "+r)},e.createAuthorityMismatchError=function(){return new e(Jt.authorityMismatch.code,Jt.authorityMismatch.desc)},e}(nt);/*! @azure/msal-common v13.3.0 2023-08-24 */var ta=function(){function n(e){var t=this,r=e?rt.trimArrayEntries(TE(e)):[],a=r?rt.removeEmptyStringsFromArray(r):[];this.validateInputScopes(a),this.scopes=new Set,a.forEach(function(l){return t.scopes.add(l)})}return n.fromString=function(e){var t=e||W.EMPTY_STRING,r=t.split(" ");return new n(r)},n.createSearchScopes=function(e){var t=new n(e);return t.containsOnlyOIDCScopes()?t.removeScope(W.OFFLINE_ACCESS_SCOPE):t.removeOIDCScopes(),t},n.prototype.validateInputScopes=function(e){if(!e||e.length<1)throw yr.createEmptyScopesArrayError()},n.prototype.containsScope=function(e){var t=this.printScopesLowerCase().split(" "),r=new n(t);return rt.isEmpty(e)?!1:r.scopes.has(e.toLowerCase())},n.prototype.containsScopeSet=function(e){var t=this;return!e||e.scopes.size<=0?!1:this.scopes.size>=e.scopes.size&&e.asArray().every(function(r){return t.containsScope(r)})},n.prototype.containsOnlyOIDCScopes=function(){var e=this,t=0;return MM.forEach(function(r){e.containsScope(r)&&(t+=1)}),this.scopes.size===t},n.prototype.appendScope=function(e){rt.isEmpty(e)||this.scopes.add(e.trim())},n.prototype.appendScopes=function(e){var t=this;try{e.forEach(function(r){return t.appendScope(r)})}catch(r){throw nt.createAppendScopeSetError(r)}},n.prototype.removeScope=function(e){if(rt.isEmpty(e))throw nt.createRemoveEmptyScopeFromSetError(e);this.scopes.delete(e.trim())},n.prototype.removeOIDCScopes=function(){var e=this;MM.forEach(function(t){e.scopes.delete(t)})},n.prototype.unionScopeSets=function(e){if(!e)throw nt.createEmptyInputScopeSetError();var t=new Set;return e.scopes.forEach(function(r){return t.add(r.toLowerCase())}),this.scopes.forEach(function(r){return t.add(r.toLowerCase())}),t},n.prototype.intersectingScopeSets=function(e){if(!e)throw nt.createEmptyInputScopeSetError();e.containsOnlyOIDCScopes()||e.removeOIDCScopes();var t=this.unionScopeSets(e),r=e.getScopeCount(),a=this.getScopeCount(),l=t.size;return l<a+r},n.prototype.getScopeCount=function(){return this.scopes.size},n.prototype.asArray=function(){var e=[];return this.scopes.forEach(function(t){return e.push(t)}),e},n.prototype.printScopes=function(){if(this.scopes){var e=this.asArray();return e.join(" ")}return W.EMPTY_STRING},n.prototype.printScopesLowerCase=function(){return this.printScopes().toLowerCase()},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */function NE(n,e){if(rt.isEmpty(n))throw nt.createClientInfoEmptyError();try{var t=e.base64Decode(n);return JSON.parse(t)}catch(r){throw nt.createClientInfoDecodingError(r.message)}}function Nv(n){if(rt.isEmpty(n))throw nt.createClientInfoDecodingError("Home account ID was empty.");var e=n.split(Ki.CLIENT_INFO_SEPARATOR,2);return{uid:e[0],utid:e.length<2?W.EMPTY_STRING:e[1]}}/*! @azure/msal-common v13.3.0 2023-08-24 */var Ra;(function(n){n[n.Default=0]="Default",n[n.Adfs=1]="Adfs",n[n.Dsts=2]="Dsts",n[n.Ciam=3]="Ciam"})(Ra||(Ra={}));/*! @azure/msal-common v13.3.0 2023-08-24 */var Uo=function(){function n(){}return n.prototype.generateAccountId=function(){var e=[this.homeAccountId,this.environment];return e.join(Ki.CACHE_KEY_SEPARATOR).toLowerCase()},n.prototype.generateAccountKey=function(){return n.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})},n.prototype.generateType=function(){switch(this.authorityType){case kc.ADFS_ACCOUNT_TYPE:return Ac.ADFS;case kc.MSAV1_ACCOUNT_TYPE:return Ac.MSA;case kc.MSSTS_ACCOUNT_TYPE:return Ac.MSSTS;case kc.GENERIC_ACCOUNT_TYPE:return Ac.GENERIC;default:throw nt.createUnexpectedAccountTypeError()}},n.prototype.getAccountInfo=function(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,idTokenClaims:this.idTokenClaims,nativeAccountId:this.nativeAccountId}},n.generateAccountCacheKey=function(e){var t=[e.homeAccountId,e.environment||W.EMPTY_STRING,e.tenantId||W.EMPTY_STRING];return t.join(Ki.CACHE_KEY_SEPARATOR).toLowerCase()},n.createAccount=function(e,t,r,a,l,u,f,p){var m,y,E,S,T,A,I=new n;I.authorityType=kc.MSSTS_ACCOUNT_TYPE,I.clientInfo=e,I.homeAccountId=t,I.nativeAccountId=p;var P=f||a&&a.getPreferredCache();if(!P)throw nt.createInvalidCacheEnvironmentError();if(I.environment=P,I.realm=((m=r==null?void 0:r.claims)===null||m===void 0?void 0:m.tid)||W.EMPTY_STRING,r){I.idTokenClaims=r.claims,I.localAccountId=((y=r==null?void 0:r.claims)===null||y===void 0?void 0:y.oid)||((E=r==null?void 0:r.claims)===null||E===void 0?void 0:E.sub)||W.EMPTY_STRING;var D=(S=r==null?void 0:r.claims)===null||S===void 0?void 0:S.preferred_username,L=!((T=r==null?void 0:r.claims)===null||T===void 0)&&T.emails?r.claims.emails[0]:null;I.username=D||L||W.EMPTY_STRING,I.name=(A=r==null?void 0:r.claims)===null||A===void 0?void 0:A.name}return I.cloudGraphHostName=l,I.msGraphHost=u,I},n.createGenericAccount=function(e,t,r,a,l,u){var f,p,m,y,E=new n;E.authorityType=r&&r.authorityType===Ra.Adfs?kc.ADFS_ACCOUNT_TYPE:kc.GENERIC_ACCOUNT_TYPE,E.homeAccountId=e,E.realm=W.EMPTY_STRING;var S=u||r&&r.getPreferredCache();if(!S)throw nt.createInvalidCacheEnvironmentError();return t&&(E.localAccountId=((f=t==null?void 0:t.claims)===null||f===void 0?void 0:f.oid)||((p=t==null?void 0:t.claims)===null||p===void 0?void 0:p.sub)||W.EMPTY_STRING,E.username=((m=t==null?void 0:t.claims)===null||m===void 0?void 0:m.upn)||W.EMPTY_STRING,E.name=((y=t==null?void 0:t.claims)===null||y===void 0?void 0:y.name)||W.EMPTY_STRING,E.idTokenClaims=t==null?void 0:t.claims),E.environment=S,E.cloudGraphHostName=a,E.msGraphHost=l,E},n.generateHomeAccountId=function(e,t,r,a,l){var u,f=!((u=l==null?void 0:l.claims)===null||u===void 0)&&u.sub?l.claims.sub:W.EMPTY_STRING;if(t===Ra.Adfs||t===Ra.Dsts)return f;if(e)try{var p=NE(e,a);if(!rt.isEmpty(p.uid)&&!rt.isEmpty(p.utid))return""+p.uid+Ki.CLIENT_INFO_SEPARATOR+p.utid}catch{}return r.verbose("No client info in response"),f},n.isAccountEntity=function(e){return e?e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType"):!1},n.accountInfoIsEqual=function(e,t,r){if(!e||!t)return!1;var a=!0;if(r){var l=e.idTokenClaims||{},u=t.idTokenClaims||{};a=l.iat===u.iat&&l.nonce===u.nonce}return e.homeAccountId===t.homeAccountId&&e.localAccountId===t.localAccountId&&e.username===t.username&&e.tenantId===t.tenantId&&e.environment===t.environment&&e.nativeAccountId===t.nativeAccountId&&a},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var fu=function(){function n(e,t){if(rt.isEmpty(e))throw nt.createTokenNullOrEmptyError(e);this.rawToken=e,this.claims=n.extractTokenClaims(e,t)}return n.extractTokenClaims=function(e,t){var r=rt.decodeAuthToken(e);try{var a=r.JWSPayload,l=t.base64Decode(a);return JSON.parse(l)}catch(u){throw nt.createTokenParsingError(u)}},n.checkMaxAge=function(e,t){var r=3e5;if(t===0||Date.now()-r>e+t)throw nt.createMaxAgeTranspiredError()},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var qa=function(){function n(e,t,r){this.clientId=e,this.cryptoImpl=t,this.commonLogger=r.clone(LM,ZR)}return n.prototype.getAllAccounts=function(){var e=this,t=this.getAccountKeys();if(t.length<1)return[];var r=t.reduce(function(l,u){var f=e.getAccount(u);return f&&l.push(f),l},[]);if(r.length<1)return[];var a=r.map(function(l){return e.getAccountInfoFromEntity(l)});return a},n.prototype.getAccountInfoFilteredBy=function(e){var t=this.getAccountsFilteredBy(e);return t.length>0?this.getAccountInfoFromEntity(t[0]):null},n.prototype.getAccountInfoFromEntity=function(e){var t=e.getAccountInfo(),r=this.getIdToken(t);return r&&(t.idToken=r.secret,t.idTokenClaims=new fu(r.secret,this.cryptoImpl).claims),t},n.prototype.saveCacheRecord=function(e){return Qt(this,void 0,void 0,function(){return Xt(this,function(t){switch(t.label){case 0:if(!e)throw nt.createNullOrUndefinedCacheRecord();return e.account&&this.setAccount(e.account),e.idToken&&this.setIdTokenCredential(e.idToken),e.accessToken?[4,this.saveAccessToken(e.accessToken)]:[3,2];case 1:t.sent(),t.label=2;case 2:return e.refreshToken&&this.setRefreshTokenCredential(e.refreshToken),e.appMetadata&&this.setAppMetadata(e.appMetadata),[2]}})})},n.prototype.saveAccessToken=function(e){return Qt(this,void 0,void 0,function(){var t,r,a,l,u=this;return Xt(this,function(f){switch(f.label){case 0:return t={clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash},r=this.getTokenKeys(),a=ta.fromString(e.target),l=[],r.accessToken.forEach(function(p){if(u.accessTokenKeyMatchesFilter(p,t,!1)){var m=u.getAccessTokenCredential(p);if(m&&u.credentialMatchesFilter(m,t)){var y=ta.fromString(m.target);y.intersectingScopeSets(a)&&l.push(u.removeAccessToken(p))}}}),[4,Promise.all(l)];case 1:return f.sent(),this.setAccessTokenCredential(e),[2]}})})},n.prototype.getAccountsFilteredBy=function(e){var t=this,r=this.getAccountKeys(),a=[];return r.forEach(function(l){if(t.isAccountKey(l,e.homeAccountId,e.realm)){var u=t.getAccount(l);u&&(e.homeAccountId&&!t.matchHomeAccountId(u,e.homeAccountId)||e.localAccountId&&!t.matchLocalAccountId(u,e.localAccountId)||e.username&&!t.matchUsername(u,e.username)||e.environment&&!t.matchEnvironment(u,e.environment)||e.realm&&!t.matchRealm(u,e.realm)||e.nativeAccountId&&!t.matchNativeAccountId(u,e.nativeAccountId)||a.push(u))}}),a},n.prototype.isAccountKey=function(e,t,r){return!(e.split(Ki.CACHE_KEY_SEPARATOR).length<3||t&&!e.toLowerCase().includes(t.toLowerCase())||r&&!e.toLowerCase().includes(r.toLowerCase()))},n.prototype.isCredentialKey=function(e){if(e.split(Ki.CACHE_KEY_SEPARATOR).length<6)return!1;var t=e.toLowerCase();if(t.indexOf(xt.ID_TOKEN.toLowerCase())===-1&&t.indexOf(xt.ACCESS_TOKEN.toLowerCase())===-1&&t.indexOf(xt.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())===-1&&t.indexOf(xt.REFRESH_TOKEN.toLowerCase())===-1)return!1;if(t.indexOf(xt.REFRESH_TOKEN.toLowerCase())>-1){var r=""+xt.REFRESH_TOKEN+Ki.CACHE_KEY_SEPARATOR+this.clientId+Ki.CACHE_KEY_SEPARATOR,a=""+xt.REFRESH_TOKEN+Ki.CACHE_KEY_SEPARATOR+Hy+Ki.CACHE_KEY_SEPARATOR;if(t.indexOf(r.toLowerCase())===-1&&t.indexOf(a.toLowerCase())===-1)return!1}else if(t.indexOf(this.clientId.toLowerCase())===-1)return!1;return!0},n.prototype.credentialMatchesFilter=function(e,t){return!(t.clientId&&!this.matchClientId(e,t.clientId)||t.userAssertionHash&&!this.matchUserAssertionHash(e,t.userAssertionHash)||typeof t.homeAccountId=="string"&&!this.matchHomeAccountId(e,t.homeAccountId)||t.environment&&!this.matchEnvironment(e,t.environment)||t.realm&&!this.matchRealm(e,t.realm)||t.credentialType&&!this.matchCredentialType(e,t.credentialType)||t.familyId&&!this.matchFamilyId(e,t.familyId)||t.target&&!this.matchTarget(e,t.target)||(t.requestedClaimsHash||e.requestedClaimsHash)&&e.requestedClaimsHash!==t.requestedClaimsHash||e.credentialType===xt.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(t.tokenType&&!this.matchTokenType(e,t.tokenType)||t.tokenType===Wn.SSH&&t.keyId&&!this.matchKeyId(e,t.keyId)))},n.prototype.getAppMetadataFilteredBy=function(e){return this.getAppMetadataFilteredByInternal(e.environment,e.clientId)},n.prototype.getAppMetadataFilteredByInternal=function(e,t){var r=this,a=this.getKeys(),l={};return a.forEach(function(u){if(r.isAppMetadata(u)){var f=r.getAppMetadata(u);f&&(e&&!r.matchEnvironment(f,e)||t&&!r.matchClientId(f,t)||(l[u]=f))}}),l},n.prototype.getAuthorityMetadataByAlias=function(e){var t=this,r=this.getAuthorityMetadataKeys(),a=null;return r.forEach(function(l){if(!(!t.isAuthorityMetadata(l)||l.indexOf(t.clientId)===-1)){var u=t.getAuthorityMetadata(l);u&&u.aliases.indexOf(e)!==-1&&(a=u)}}),a},n.prototype.removeAllAccounts=function(){return Qt(this,void 0,void 0,function(){var e,t,r=this;return Xt(this,function(a){switch(a.label){case 0:return e=this.getAccountKeys(),t=[],e.forEach(function(l){t.push(r.removeAccount(l))}),[4,Promise.all(t)];case 1:return a.sent(),[2]}})})},n.prototype.removeAccount=function(e){return Qt(this,void 0,void 0,function(){var t;return Xt(this,function(r){switch(r.label){case 0:if(t=this.getAccount(e),!t)throw nt.createNoAccountFoundError();return[4,this.removeAccountContext(t)];case 1:return r.sent(),this.removeItem(e),[2]}})})},n.prototype.removeAccountContext=function(e){return Qt(this,void 0,void 0,function(){var t,r,a,l=this;return Xt(this,function(u){switch(u.label){case 0:return t=this.getTokenKeys(),r=e.generateAccountId(),a=[],t.idToken.forEach(function(f){f.indexOf(r)===0&&l.removeIdToken(f)}),t.accessToken.forEach(function(f){f.indexOf(r)===0&&a.push(l.removeAccessToken(f))}),t.refreshToken.forEach(function(f){f.indexOf(r)===0&&l.removeRefreshToken(f)}),[4,Promise.all(a)];case 1:return u.sent(),[2]}})})},n.prototype.removeAccessToken=function(e){return Qt(this,void 0,void 0,function(){var t,r,a;return Xt(this,function(l){switch(l.label){case 0:if(t=this.getAccessTokenCredential(e),!t)return[2];if(t.credentialType.toLowerCase()!==xt.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())return[3,4];if(t.tokenType!==Wn.POP)return[3,4];if(r=t,a=r.keyId,!a)return[3,4];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,this.cryptoImpl.removeTokenBindingKey(a)];case 2:return l.sent(),[3,4];case 3:throw l.sent(),nt.createBindingKeyNotRemovedError();case 4:return[2,this.removeItem(e)]}})})},n.prototype.removeAppMetadata=function(){var e=this,t=this.getKeys();return t.forEach(function(r){e.isAppMetadata(r)&&e.removeItem(r)}),!0},n.prototype.readCacheRecord=function(e,t,r){var a=this.getTokenKeys(),l=this.readAccountFromCache(e),u=this.getIdToken(e,a),f=this.getAccessToken(e,t,a),p=this.getRefreshToken(e,!1,a),m=this.readAppMetadataFromCache(r);return l&&u&&(l.idTokenClaims=new fu(u.secret,this.cryptoImpl).claims),{account:l,idToken:u,accessToken:f,refreshToken:p,appMetadata:m}},n.prototype.readAccountFromCache=function(e){var t=Uo.generateAccountCacheKey(e);return this.getAccount(t)},n.prototype.getIdToken=function(e,t){this.commonLogger.trace("CacheManager - getIdToken called");var r={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:xt.ID_TOKEN,clientId:this.clientId,realm:e.tenantId},a=this.getIdTokensByFilter(r,t),l=a.length;if(l<1)return this.commonLogger.info("CacheManager:getIdToken - No token found"),null;if(l>1)throw nt.createMultipleMatchingTokensInCacheError();return this.commonLogger.info("CacheManager:getIdToken - Returning id token"),a[0]},n.prototype.getIdTokensByFilter=function(e,t){var r=this,a=t&&t.idToken||this.getTokenKeys().idToken,l=[];return a.forEach(function(u){if(r.idTokenKeyMatchesFilter(u,zn({clientId:r.clientId},e))){var f=r.getIdTokenCredential(u);f&&r.credentialMatchesFilter(f,e)&&l.push(f)}}),l},n.prototype.idTokenKeyMatchesFilter=function(e,t){var r=e.toLowerCase();return!(t.clientId&&r.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&r.indexOf(t.homeAccountId.toLowerCase())===-1)},n.prototype.removeIdToken=function(e){this.removeItem(e)},n.prototype.removeRefreshToken=function(e){this.removeItem(e)},n.prototype.getAccessToken=function(e,t,r){var a=this;this.commonLogger.trace("CacheManager - getAccessToken called");var l=ta.createSearchScopes(t.scopes),u=t.authenticationScheme||Wn.BEARER,f=u&&u.toLowerCase()!==Wn.BEARER.toLowerCase()?xt.ACCESS_TOKEN_WITH_AUTH_SCHEME:xt.ACCESS_TOKEN,p={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:f,clientId:this.clientId,realm:e.tenantId,target:l,tokenType:u,keyId:t.sshKid,requestedClaimsHash:t.requestedClaimsHash},m=r&&r.accessToken||this.getTokenKeys().accessToken,y=[];m.forEach(function(S){if(a.accessTokenKeyMatchesFilter(S,p,!0)){var T=a.getAccessTokenCredential(S);T&&a.credentialMatchesFilter(T,p)&&y.push(T)}});var E=y.length;if(E<1)return this.commonLogger.info("CacheManager:getAccessToken - No token found"),null;if(E>1)throw nt.createMultipleMatchingTokensInCacheError();return this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),y[0]},n.prototype.accessTokenKeyMatchesFilter=function(e,t,r){var a=e.toLowerCase();if(t.clientId&&a.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&a.indexOf(t.homeAccountId.toLowerCase())===-1||t.realm&&a.indexOf(t.realm.toLowerCase())===-1||t.requestedClaimsHash&&a.indexOf(t.requestedClaimsHash.toLowerCase())===-1)return!1;if(t.target)for(var l=t.target.asArray(),u=0;u<l.length;u++){if(r&&!a.includes(l[u].toLowerCase()))return!1;if(!r&&a.includes(l[u].toLowerCase()))return!0}return!0},n.prototype.getAccessTokensByFilter=function(e){var t=this,r=this.getTokenKeys(),a=[];return r.accessToken.forEach(function(l){if(t.accessTokenKeyMatchesFilter(l,e,!0)){var u=t.getAccessTokenCredential(l);u&&t.credentialMatchesFilter(u,e)&&a.push(u)}}),a},n.prototype.getRefreshToken=function(e,t,r){var a=this;this.commonLogger.trace("CacheManager - getRefreshToken called");var l=t?Hy:void 0,u={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:xt.REFRESH_TOKEN,clientId:this.clientId,familyId:l},f=r&&r.refreshToken||this.getTokenKeys().refreshToken,p=[];f.forEach(function(y){if(a.refreshTokenKeyMatchesFilter(y,u)){var E=a.getRefreshTokenCredential(y);E&&a.credentialMatchesFilter(E,u)&&p.push(E)}});var m=p.length;return m<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),p[0])},n.prototype.refreshTokenKeyMatchesFilter=function(e,t){var r=e.toLowerCase();return!(t.familyId&&r.indexOf(t.familyId.toLowerCase())===-1||!t.familyId&&t.clientId&&r.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&r.indexOf(t.homeAccountId.toLowerCase())===-1)},n.prototype.readAppMetadataFromCache=function(e){var t={environment:e,clientId:this.clientId},r=this.getAppMetadataFilteredBy(t),a=Object.keys(r).map(function(u){return r[u]}),l=a.length;if(l<1)return null;if(l>1)throw nt.createMultipleMatchingAppMetadataInCacheError();return a[0]},n.prototype.isAppMetadataFOCI=function(e){var t=this.readAppMetadataFromCache(e);return!!(t&&t.familyId===Hy)},n.prototype.matchHomeAccountId=function(e,t){return typeof e.homeAccountId=="string"&&t===e.homeAccountId},n.prototype.matchLocalAccountId=function(e,t){return typeof e.localAccountId=="string"&&t===e.localAccountId},n.prototype.matchUsername=function(e,t){return typeof e.username=="string"&&t.toLowerCase()===e.username.toLowerCase()},n.prototype.matchUserAssertionHash=function(e,t){return!!(e.userAssertionHash&&t===e.userAssertionHash)},n.prototype.matchEnvironment=function(e,t){var r=this.getAuthorityMetadataByAlias(t);return!!(r&&r.aliases.indexOf(e.environment)>-1)},n.prototype.matchCredentialType=function(e,t){return e.credentialType&&t.toLowerCase()===e.credentialType.toLowerCase()},n.prototype.matchClientId=function(e,t){return!!(e.clientId&&t===e.clientId)},n.prototype.matchFamilyId=function(e,t){return!!(e.familyId&&t===e.familyId)},n.prototype.matchRealm=function(e,t){return!!(e.realm&&t===e.realm)},n.prototype.matchNativeAccountId=function(e,t){return!!(e.nativeAccountId&&t===e.nativeAccountId)},n.prototype.matchTarget=function(e,t){var r=e.credentialType!==xt.ACCESS_TOKEN&&e.credentialType!==xt.ACCESS_TOKEN_WITH_AUTH_SCHEME;if(r||!e.target)return!1;var a=ta.fromString(e.target);return a.containsScopeSet(t)},n.prototype.matchTokenType=function(e,t){return!!(e.tokenType&&e.tokenType===t)},n.prototype.matchKeyId=function(e,t){return!!(e.keyId&&e.keyId===t)},n.prototype.isAppMetadata=function(e){return e.indexOf(XR)!==-1},n.prototype.isAuthorityMetadata=function(e){return e.indexOf(jy.CACHE_KEY)!==-1},n.prototype.generateAuthorityMetadataCacheKey=function(e){return jy.CACHE_KEY+"-"+this.clientId+"-"+e},n.toObject=function(e,t){for(var r in t)e[r]=t[r];return e},n}(),AB=function(n){Ba(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.setAccount=function(){var t="Storage interface - setAccount() has not been implemented for the cacheStorage interface.";throw Et.createUnexpectedError(t)},e.prototype.getAccount=function(){var t="Storage interface - getAccount() has not been implemented for the cacheStorage interface.";throw Et.createUnexpectedError(t)},e.prototype.setIdTokenCredential=function(){var t="Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.";throw Et.createUnexpectedError(t)},e.prototype.getIdTokenCredential=function(){var t="Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.";throw Et.createUnexpectedError(t)},e.prototype.setAccessTokenCredential=function(){var t="Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw Et.createUnexpectedError(t)},e.prototype.getAccessTokenCredential=function(){var t="Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw Et.createUnexpectedError(t)},e.prototype.setRefreshTokenCredential=function(){var t="Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw Et.createUnexpectedError(t)},e.prototype.getRefreshTokenCredential=function(){var t="Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw Et.createUnexpectedError(t)},e.prototype.setAppMetadata=function(){var t="Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.";throw Et.createUnexpectedError(t)},e.prototype.getAppMetadata=function(){var t="Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.";throw Et.createUnexpectedError(t)},e.prototype.setServerTelemetry=function(){var t="Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.";throw Et.createUnexpectedError(t)},e.prototype.getServerTelemetry=function(){var t="Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.";throw Et.createUnexpectedError(t)},e.prototype.setAuthorityMetadata=function(){var t="Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw Et.createUnexpectedError(t)},e.prototype.getAuthorityMetadata=function(){var t="Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw Et.createUnexpectedError(t)},e.prototype.getAuthorityMetadataKeys=function(){var t="Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.";throw Et.createUnexpectedError(t)},e.prototype.setThrottlingCache=function(){var t="Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.";throw Et.createUnexpectedError(t)},e.prototype.getThrottlingCache=function(){var t="Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.";throw Et.createUnexpectedError(t)},e.prototype.removeItem=function(){var t="Storage interface - removeItem() has not been implemented for the cacheStorage interface.";throw Et.createUnexpectedError(t)},e.prototype.containsKey=function(){var t="Storage interface - containsKey() has not been implemented for the cacheStorage interface.";throw Et.createUnexpectedError(t)},e.prototype.getKeys=function(){var t="Storage interface - getKeys() has not been implemented for the cacheStorage interface.";throw Et.createUnexpectedError(t)},e.prototype.getAccountKeys=function(){var t="Storage interface - getAccountKeys() has not been implemented for the cacheStorage interface.";throw Et.createUnexpectedError(t)},e.prototype.getTokenKeys=function(){var t="Storage interface - getTokenKeys() has not been implemented for the cacheStorage interface.";throw Et.createUnexpectedError(t)},e.prototype.clear=function(){return Qt(this,void 0,void 0,function(){var t;return Xt(this,function(r){throw t="Storage interface - clear() has not been implemented for the cacheStorage interface.",Et.createUnexpectedError(t)})})},e.prototype.updateCredentialCacheKey=function(){var t="Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.";throw Et.createUnexpectedError(t)},e}(qa);/*! @azure/msal-common v13.3.0 2023-08-24 */var xB=300,UM={tokenRenewalOffsetSeconds:xB,preventCorsPreflight:!1},IB={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:ni.Info,correlationId:W.EMPTY_STRING},OB={claimsBasedCachingEnabled:!0},NB={sendGetRequestAsync:function(){return Qt(this,void 0,void 0,function(){var n;return Xt(this,function(e){throw n="Network interface - sendGetRequestAsync() has not been implemented",Et.createUnexpectedError(n)})})},sendPostRequestAsync:function(){return Qt(this,void 0,void 0,function(){var n;return Xt(this,function(e){throw n="Network interface - sendPostRequestAsync() has not been implemented",Et.createUnexpectedError(n)})})}},MB={sku:W.SKU,version:ZR,cpu:W.EMPTY_STRING,os:W.EMPTY_STRING},PB={clientSecret:W.EMPTY_STRING,clientAssertion:void 0},DB={azureCloudInstance:qy.None,tenant:""+W.DEFAULT_COMMON_TENANT},LB={application:{appName:"",appVersion:""}};function UB(n){var e=n.authOptions,t=n.systemOptions,r=n.loggerOptions,a=n.cacheOptions,l=n.storageInterface,u=n.networkInterface,f=n.cryptoInterface,p=n.clientCredentials,m=n.libraryInfo,y=n.telemetry,E=n.serverTelemetryManager,S=n.persistencePlugin,T=n.serializableCache,A=zn(zn({},IB),r);return{authOptions:FB(e),systemOptions:zn(zn({},UM),t),loggerOptions:A,cacheOptions:zn(zn({},OB),a),storageInterface:l||new AB(e.clientId,IE,new OE(A)),networkInterface:u||NB,cryptoInterface:f||IE,clientCredentials:p||PB,libraryInfo:zn(zn({},MB),m),telemetry:zn(zn({},LB),y),serverTelemetryManager:E||null,persistencePlugin:S||null,serializableCache:T||null}}function FB(n){return zn({clientCapabilities:[],azureCloudOptions:DB,skipAuthorityMetadataCache:!1},n)}/*! @azure/msal-common v13.3.0 2023-08-24 */var kh=function(n){Ba(e,n);function e(t,r,a){var l=n.call(this,t,r,a)||this;return l.name="ServerError",Object.setPrototypeOf(l,e.prototype),l}return e}(Et);/*! @azure/msal-common v13.3.0 2023-08-24 */var ME=function(){function n(){}return n.generateThrottlingStorageKey=function(e){return zy.THROTTLING_PREFIX+"."+JSON.stringify(e)},n.preProcess=function(e,t){var r,a=n.generateThrottlingStorageKey(t),l=e.getThrottlingCache(a);if(l){if(l.throttleTime<Date.now()){e.removeItem(a);return}throw new kh(((r=l.errorCodes)===null||r===void 0?void 0:r.join(" "))||W.EMPTY_STRING,l.errorMessage,l.subError)}},n.postProcess=function(e,t,r){if(n.checkResponseStatus(r)||n.checkResponseForRetryAfter(r)){var a={throttleTime:n.calculateThrottleTime(parseInt(r.headers[ys.RETRY_AFTER])),error:r.body.error,errorCodes:r.body.error_codes,errorMessage:r.body.error_description,subError:r.body.suberror};e.setThrottlingCache(n.generateThrottlingStorageKey(t),a)}},n.checkResponseStatus=function(e){return e.status===429||e.status>=500&&e.status<600},n.checkResponseForRetryAfter=function(e){return e.headers?e.headers.hasOwnProperty(ys.RETRY_AFTER)&&(e.status<200||e.status>=300):!1},n.calculateThrottleTime=function(e){var t=e<=0?0:e,r=Date.now()/1e3;return Math.floor(Math.min(r+(t||zy.DEFAULT_THROTTLE_TIME_SECONDS),r+zy.DEFAULT_MAX_THROTTLE_TIME_SECONDS)*1e3)},n.removeThrottle=function(e,t,r,a){var l={clientId:t,authority:r.authority,scopes:r.scopes,homeAccountIdentifier:a,claims:r.claims,authenticationScheme:r.authenticationScheme,resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,sshKid:r.sshKid},u=this.generateThrottlingStorageKey(l);e.removeItem(u)},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var $B=function(){function n(e,t){this.networkClient=e,this.cacheManager=t}return n.prototype.sendPostRequest=function(e,t,r){return Qt(this,void 0,void 0,function(){var a,l;return Xt(this,function(u){switch(u.label){case 0:ME.preProcess(this.cacheManager,e),u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this.networkClient.sendPostRequestAsync(t,r)];case 2:return a=u.sent(),[3,4];case 3:throw l=u.sent(),l instanceof Et?l:nt.createNetworkError(t,l);case 4:return ME.postProcess(this.cacheManager,e,a),[2,a]}})})},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var _s;(function(n){n.HOME_ACCOUNT_ID="home_account_id",n.UPN="UPN"})(_s||(_s={}));/*! @azure/msal-common v13.3.0 2023-08-24 */var Ah=function(){function n(){}return n.validateRedirectUri=function(e){if(rt.isEmpty(e))throw yr.createRedirectUriEmptyError()},n.validatePrompt=function(e){var t=[];for(var r in ea)t.push(ea[r]);if(t.indexOf(e)<0)throw yr.createInvalidPromptError(e)},n.validateClaims=function(e){try{JSON.parse(e)}catch{throw yr.createInvalidClaimsRequestError()}},n.validateCodeChallengeParams=function(e,t){if(rt.isEmpty(e)||rt.isEmpty(t))throw yr.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(t)},n.validateCodeChallengeMethod=function(e){if([PM.PLAIN,PM.S256].indexOf(e)<0)throw yr.createInvalidCodeChallengeMethodError()},n.sanitizeEQParams=function(e,t){return e?(t.forEach(function(r,a){e[a]&&delete e[a]}),Object.fromEntries(Object.entries(e).filter(function(r){var a=r[1];return a!==""}))):{}},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Vy=function(){function n(){this.parameters=new Map}return n.prototype.addResponseTypeCode=function(){this.parameters.set(nn.RESPONSE_TYPE,encodeURIComponent(W.CODE_RESPONSE_TYPE))},n.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(nn.RESPONSE_TYPE,encodeURIComponent(W.TOKEN_RESPONSE_TYPE+" "+W.ID_TOKEN_RESPONSE_TYPE))},n.prototype.addResponseMode=function(e){this.parameters.set(nn.RESPONSE_MODE,encodeURIComponent(e||RE.QUERY))},n.prototype.addNativeBroker=function(){this.parameters.set(nn.NATIVE_BROKER,encodeURIComponent("1"))},n.prototype.addScopes=function(e,t){t===void 0&&(t=!0);var r=t?TE(e||[],Fy):e||[],a=new ta(r);this.parameters.set(nn.SCOPE,encodeURIComponent(a.printScopes()))},n.prototype.addClientId=function(e){this.parameters.set(nn.CLIENT_ID,encodeURIComponent(e))},n.prototype.addRedirectUri=function(e){Ah.validateRedirectUri(e),this.parameters.set(nn.REDIRECT_URI,encodeURIComponent(e))},n.prototype.addPostLogoutRedirectUri=function(e){Ah.validateRedirectUri(e),this.parameters.set(nn.POST_LOGOUT_URI,encodeURIComponent(e))},n.prototype.addIdTokenHint=function(e){this.parameters.set(nn.ID_TOKEN_HINT,encodeURIComponent(e))},n.prototype.addDomainHint=function(e){this.parameters.set($y.DOMAIN_HINT,encodeURIComponent(e))},n.prototype.addLoginHint=function(e){this.parameters.set($y.LOGIN_HINT,encodeURIComponent(e))},n.prototype.addCcsUpn=function(e){this.parameters.set(ys.CCS_HEADER,encodeURIComponent("UPN:"+e))},n.prototype.addCcsOid=function(e){this.parameters.set(ys.CCS_HEADER,encodeURIComponent("Oid:"+e.uid+"@"+e.utid))},n.prototype.addSid=function(e){this.parameters.set($y.SID,encodeURIComponent(e))},n.prototype.addClaims=function(e,t){var r=this.addClientCapabilitiesToClaims(e,t);Ah.validateClaims(r),this.parameters.set(nn.CLAIMS,encodeURIComponent(r))},n.prototype.addCorrelationId=function(e){this.parameters.set(nn.CLIENT_REQUEST_ID,encodeURIComponent(e))},n.prototype.addLibraryInfo=function(e){this.parameters.set(nn.X_CLIENT_SKU,e.sku),this.parameters.set(nn.X_CLIENT_VER,e.version),e.os&&this.parameters.set(nn.X_CLIENT_OS,e.os),e.cpu&&this.parameters.set(nn.X_CLIENT_CPU,e.cpu)},n.prototype.addApplicationTelemetry=function(e){e!=null&&e.appName&&this.parameters.set(nn.X_APP_NAME,e.appName),e!=null&&e.appVersion&&this.parameters.set(nn.X_APP_VER,e.appVersion)},n.prototype.addPrompt=function(e){Ah.validatePrompt(e),this.parameters.set(""+nn.PROMPT,encodeURIComponent(e))},n.prototype.addState=function(e){rt.isEmpty(e)||this.parameters.set(nn.STATE,encodeURIComponent(e))},n.prototype.addNonce=function(e){this.parameters.set(nn.NONCE,encodeURIComponent(e))},n.prototype.addCodeChallengeParams=function(e,t){if(Ah.validateCodeChallengeParams(e,t),e&&t)this.parameters.set(nn.CODE_CHALLENGE,encodeURIComponent(e)),this.parameters.set(nn.CODE_CHALLENGE_METHOD,encodeURIComponent(t));else throw yr.createInvalidCodeChallengeParamsError()},n.prototype.addAuthorizationCode=function(e){this.parameters.set(nn.CODE,encodeURIComponent(e))},n.prototype.addDeviceCode=function(e){this.parameters.set(nn.DEVICE_CODE,encodeURIComponent(e))},n.prototype.addRefreshToken=function(e){this.parameters.set(nn.REFRESH_TOKEN,encodeURIComponent(e))},n.prototype.addCodeVerifier=function(e){this.parameters.set(nn.CODE_VERIFIER,encodeURIComponent(e))},n.prototype.addClientSecret=function(e){this.parameters.set(nn.CLIENT_SECRET,encodeURIComponent(e))},n.prototype.addClientAssertion=function(e){rt.isEmpty(e)||this.parameters.set(nn.CLIENT_ASSERTION,encodeURIComponent(e))},n.prototype.addClientAssertionType=function(e){rt.isEmpty(e)||this.parameters.set(nn.CLIENT_ASSERTION_TYPE,encodeURIComponent(e))},n.prototype.addOboAssertion=function(e){this.parameters.set(nn.OBO_ASSERTION,encodeURIComponent(e))},n.prototype.addRequestTokenUse=function(e){this.parameters.set(nn.REQUESTED_TOKEN_USE,encodeURIComponent(e))},n.prototype.addGrantType=function(e){this.parameters.set(nn.GRANT_TYPE,encodeURIComponent(e))},n.prototype.addClientInfo=function(){this.parameters.set(kB,"1")},n.prototype.addExtraQueryParameters=function(e){var t=this,r=Ah.sanitizeEQParams(e,this.parameters);Object.keys(r).forEach(function(a){t.parameters.set(a,e[a])})},n.prototype.addClientCapabilitiesToClaims=function(e,t){var r;if(!e)r={};else try{r=JSON.parse(e)}catch{throw yr.createInvalidClaimsRequestError()}return t&&t.length>0&&(r.hasOwnProperty(Iv.ACCESS_TOKEN)||(r[Iv.ACCESS_TOKEN]={}),r[Iv.ACCESS_TOKEN][Iv.XMS_CC]={values:t}),JSON.stringify(r)},n.prototype.addUsername=function(e){this.parameters.set(AE.username,encodeURIComponent(e))},n.prototype.addPassword=function(e){this.parameters.set(AE.password,encodeURIComponent(e))},n.prototype.addPopToken=function(e){rt.isEmpty(e)||(this.parameters.set(nn.TOKEN_TYPE,Wn.POP),this.parameters.set(nn.REQ_CNF,encodeURIComponent(e)))},n.prototype.addSshJwk=function(e){rt.isEmpty(e)||(this.parameters.set(nn.TOKEN_TYPE,Wn.SSH),this.parameters.set(nn.REQ_CNF,encodeURIComponent(e)))},n.prototype.addServerTelemetry=function(e){this.parameters.set(nn.X_CLIENT_CURR_TELEM,e.generateCurrentRequestHeaderValue()),this.parameters.set(nn.X_CLIENT_LAST_TELEM,e.generateLastRequestHeaderValue())},n.prototype.addThrottling=function(){this.parameters.set(nn.X_MS_LIB_CAPABILITY,zy.X_MS_LIB_CAPABILITY_VALUE)},n.prototype.addLogoutHint=function(e){this.parameters.set(nn.LOGOUT_HINT,encodeURIComponent(e))},n.prototype.createQueryString=function(){var e=new Array;return this.parameters.forEach(function(t,r){e.push(r+"="+t)}),e.join("&")},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var e1=function(){function n(e,t){this.config=UB(e),this.logger=new OE(this.config.loggerOptions,LM,ZR),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new $B(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=t}return n.prototype.createTokenRequestHeaders=function(e){var t={};if(t[ys.CONTENT_TYPE]=W.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case _s.HOME_ACCOUNT_ID:try{var r=Nv(e.credential);t[ys.CCS_HEADER]="Oid:"+r.uid+"@"+r.utid}catch(a){this.logger.verbose("Could not parse home account ID for CCS Header: "+a)}break;case _s.UPN:t[ys.CCS_HEADER]="UPN: "+e.credential;break}return t},n.prototype.executePostToTokenEndpoint=function(e,t,r,a){return Qt(this,void 0,void 0,function(){var l;return Xt(this,function(u){switch(u.label){case 0:return[4,this.networkManager.sendPostRequest(a,e,{body:t,headers:r})];case 1:return l=u.sent(),this.config.serverTelemetryManager&&l.status<500&&l.status!==429&&this.config.serverTelemetryManager.clearTelemetryCache(),[2,l]}})})},n.prototype.updateAuthority=function(e){if(!e.discoveryComplete())throw nt.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=e},n.prototype.createTokenQueryParameters=function(e){var t=new Vy;return e.tokenQueryParameters&&t.addExtraQueryParameters(e.tokenQueryParameters),t.createQueryString()},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var t1=function(){function n(){}return n.prototype.generateAccountId=function(){return n.generateAccountIdForCacheKey(this.homeAccountId,this.environment)},n.prototype.generateCredentialId=function(){return n.generateCredentialIdForCacheKey(this.credentialType,this.clientId,this.realm,this.familyId)},n.prototype.generateTarget=function(){return n.generateTargetForCacheKey(this.target)},n.prototype.generateCredentialKey=function(){return n.generateCredentialCacheKey(this.homeAccountId,this.environment,this.credentialType,this.clientId,this.realm,this.target,this.familyId,this.tokenType,this.requestedClaimsHash)},n.prototype.generateType=function(){switch(this.credentialType){case xt.ID_TOKEN:return Ac.ID_TOKEN;case xt.ACCESS_TOKEN:case xt.ACCESS_TOKEN_WITH_AUTH_SCHEME:return Ac.ACCESS_TOKEN;case xt.REFRESH_TOKEN:return Ac.REFRESH_TOKEN;default:throw nt.createUnexpectedCredentialTypeError()}},n.generateCredentialCacheKey=function(e,t,r,a,l,u,f,p,m){var y=[this.generateAccountIdForCacheKey(e,t),this.generateCredentialIdForCacheKey(r,a,l,f),this.generateTargetForCacheKey(u),this.generateClaimsHashForCacheKey(m),this.generateSchemeForCacheKey(p)];return y.join(Ki.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateAccountIdForCacheKey=function(e,t){var r=[e,t];return r.join(Ki.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateCredentialIdForCacheKey=function(e,t,r,a){var l=e===xt.REFRESH_TOKEN&&a||t,u=[e,l,r||W.EMPTY_STRING];return u.join(Ki.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateTargetForCacheKey=function(e){return(e||W.EMPTY_STRING).toLowerCase()},n.generateClaimsHashForCacheKey=function(e){return(e||W.EMPTY_STRING).toLowerCase()},n.generateSchemeForCacheKey=function(e){return e&&e.toLowerCase()!==Wn.BEARER.toLowerCase()?e.toLowerCase():W.EMPTY_STRING},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var xh=function(n){Ba(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.createIdTokenEntity=function(t,r,a,l,u){var f=new e;return f.credentialType=xt.ID_TOKEN,f.homeAccountId=t,f.environment=r,f.clientId=l,f.secret=a,f.realm=u,f},e.isIdTokenEntity=function(t){return t?t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("realm")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.credentialType===xt.ID_TOKEN:!1},e}(t1);/*! @azure/msal-common v13.3.0 2023-08-24 */var Hs=function(){function n(){}return n.nowSeconds=function(){return Math.round(new Date().getTime()/1e3)},n.isTokenExpired=function(e,t){var r=Number(e)||0,a=n.nowSeconds()+t;return a>r},n.wasClockTurnedBack=function(e){var t=Number(e);return t>n.nowSeconds()},n.delay=function(e,t){return new Promise(function(r){return setTimeout(function(){return r(t)},e)})},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Ih=function(n){Ba(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.createAccessTokenEntity=function(t,r,a,l,u,f,p,m,y,E,S,T,A,I,P){var D,L,j=new e;j.homeAccountId=t,j.credentialType=xt.ACCESS_TOKEN,j.secret=a;var F=Hs.nowSeconds();if(j.cachedAt=F.toString(),j.expiresOn=p.toString(),j.extendedExpiresOn=m.toString(),E&&(j.refreshOn=E.toString()),j.environment=r,j.clientId=l,j.realm=u,j.target=f,j.userAssertionHash=T,j.tokenType=rt.isEmpty(S)?Wn.BEARER:S,I&&(j.requestedClaims=I,j.requestedClaimsHash=P),((D=j.tokenType)===null||D===void 0?void 0:D.toLowerCase())!==Wn.BEARER.toLowerCase())switch(j.credentialType=xt.ACCESS_TOKEN_WITH_AUTH_SCHEME,j.tokenType){case Wn.POP:var V=fu.extractTokenClaims(a,y);if(!(!((L=V==null?void 0:V.cnf)===null||L===void 0)&&L.kid))throw nt.createTokenClaimsRequiredError();j.keyId=V.cnf.kid;break;case Wn.SSH:j.keyId=A}return j},e.isAccessTokenEntity=function(t){return t?t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("realm")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.hasOwnProperty("target")&&(t.credentialType===xt.ACCESS_TOKEN||t.credentialType===xt.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1},e}(t1);/*! @azure/msal-common v13.3.0 2023-08-24 */var Mv=function(n){Ba(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.createRefreshTokenEntity=function(t,r,a,l,u,f){var p=new e;return p.clientId=l,p.credentialType=xt.REFRESH_TOKEN,p.environment=r,p.homeAccountId=t,p.secret=a,p.userAssertionHash=f,u&&(p.familyId=u),p},e.isRefreshTokenEntity=function(t){return t?t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.credentialType===xt.REFRESH_TOKEN:!1},e}(t1);/*! @azure/msal-common v13.3.0 2023-08-24 */var FM=["interaction_required","consent_required","login_required"],HB=["message_only","additional_action","basic_action","user_password_expired","consent_required"],Pv={noTokensFoundError:{code:"no_tokens_found",desc:"No refresh token found in the cache. Please sign-in."},native_account_unavailable:{code:"native_account_unavailable",desc:"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API."}},yl=function(n){Ba(e,n);function e(t,r,a,l,u,f,p){var m=n.call(this,t,r,a)||this;return Object.setPrototypeOf(m,e.prototype),m.timestamp=l||W.EMPTY_STRING,m.traceId=u||W.EMPTY_STRING,m.correlationId=f||W.EMPTY_STRING,m.claims=p||W.EMPTY_STRING,m.name="InteractionRequiredAuthError",m}return e.isInteractionRequiredError=function(t,r,a){var l=!!t&&FM.indexOf(t)>-1,u=!!a&&HB.indexOf(a)>-1,f=!!r&&FM.some(function(p){return r.indexOf(p)>-1});return l||f||u},e.createNoTokensFoundError=function(){return new e(Pv.noTokensFoundError.code,Pv.noTokensFoundError.desc)},e.createNativeAccountUnavailableError=function(){return new e(Pv.native_account_unavailable.code,Pv.native_account_unavailable.desc)},e}(Et);/*! @azure/msal-common v13.3.0 2023-08-24 */var Ky=function(){function n(e,t,r,a,l){this.account=e||null,this.idToken=t||null,this.accessToken=r||null,this.refreshToken=a||null,this.appMetadata=l||null}return n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var xc=function(){function n(){}return n.setRequestState=function(e,t,r){var a=n.generateLibraryState(e,r);return rt.isEmpty(t)?a:""+a+W.RESOURCE_DELIM+t},n.generateLibraryState=function(e,t){if(!e)throw nt.createNoCryptoObjectError("generateLibraryState");var r={id:e.createNewGuid()};t&&(r.meta=t);var a=JSON.stringify(r);return e.base64Encode(a)},n.parseRequestState=function(e,t){if(!e)throw nt.createNoCryptoObjectError("parseRequestState");if(rt.isEmpty(t))throw nt.createInvalidStateError(t,"Null, undefined or empty state");try{var r=t.split(W.RESOURCE_DELIM),a=r[0],l=r.length>1?r.slice(1).join(W.RESOURCE_DELIM):W.EMPTY_STRING,u=e.base64Decode(a),f=JSON.parse(u);return{userRequestState:rt.isEmpty(l)?W.EMPTY_STRING:l,libraryState:f}}catch(p){throw nt.createInvalidStateError(t,p)}},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var xn=function(){function n(e){if(this._urlString=e,rt.isEmpty(this._urlString))throw yr.createUrlEmptyError();rt.isEmpty(this.getHash())&&(this._urlString=n.canonicalizeUri(e))}return Object.defineProperty(n.prototype,"urlString",{get:function(){return this._urlString},enumerable:!1,configurable:!0}),n.canonicalizeUri=function(e){if(e){var t=e.toLowerCase();return rt.endsWith(t,"?")?t=t.slice(0,-1):rt.endsWith(t,"?/")&&(t=t.slice(0,-2)),rt.endsWith(t,"/")||(t+="/"),t}return e},n.prototype.validateAsUri=function(){var e;try{e=this.getUrlComponents()}catch(t){throw yr.createUrlParseError(t)}if(!e.HostNameAndPort||!e.PathSegments)throw yr.createUrlParseError("Given url string: "+this.urlString);if(!e.Protocol||e.Protocol.toLowerCase()!=="https:")throw yr.createInsecureAuthorityUriError(this.urlString)},n.appendQueryString=function(e,t){return rt.isEmpty(t)?e:e.indexOf("?")<0?e+"?"+t:e+"&"+t},n.removeHashFromUrl=function(e){return n.canonicalizeUri(e.split("#")[0])},n.prototype.replaceTenantPath=function(e){var t=this.getUrlComponents(),r=t.PathSegments;return e&&r.length!==0&&(r[0]===Rh.COMMON||r[0]===Rh.ORGANIZATIONS)&&(r[0]=e),n.constructAuthorityUriFromObject(t)},n.prototype.getHash=function(){return n.parseHash(this.urlString)},n.prototype.getUrlComponents=function(){var e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),t=this.urlString.match(e);if(!t)throw yr.createUrlParseError("Given url string: "+this.urlString);var r={Protocol:t[1],HostNameAndPort:t[4],AbsolutePath:t[5],QueryString:t[7]},a=r.AbsolutePath.split("/");return a=a.filter(function(l){return l&&l.length>0}),r.PathSegments=a,!rt.isEmpty(r.QueryString)&&r.QueryString.endsWith("/")&&(r.QueryString=r.QueryString.substring(0,r.QueryString.length-1)),r},n.getDomainFromUrl=function(e){var t=RegExp("^([^:/?#]+://)?([^/?#]*)"),r=e.match(t);if(!r)throw yr.createUrlParseError("Given url string: "+e);return r[2]},n.getAbsoluteUrl=function(e,t){if(e[0]===W.FORWARD_SLASH){var r=new n(t),a=r.getUrlComponents();return a.Protocol+"//"+a.HostNameAndPort+e}return e},n.parseHash=function(e){var t=e.indexOf("#"),r=e.indexOf("#/");return r>-1?e.substring(r+2):t>-1?e.substring(t+1):W.EMPTY_STRING},n.parseQueryString=function(e){var t=e.indexOf("?"),r=e.indexOf("/?");return r>-1?e.substring(r+2):t>-1?e.substring(t+1):W.EMPTY_STRING},n.constructAuthorityUriFromObject=function(e){return new n(e.Protocol+"//"+e.HostNameAndPort+"/"+e.PathSegments.join("/"))},n.getDeserializedHash=function(e){if(rt.isEmpty(e))return{};var t=n.parseHash(e),r=rt.queryStringToObject(rt.isEmpty(t)?e:t);if(!r)throw nt.createHashNotDeserializedError(JSON.stringify(r));return r},n.getDeserializedQueryString=function(e){if(rt.isEmpty(e))return{};var t=n.parseQueryString(e),r=rt.queryStringToObject(rt.isEmpty(t)?e:t);if(!r)throw nt.createHashNotDeserializedError(JSON.stringify(r));return r},n.hashContainsKnownProperties=function(e){if(rt.isEmpty(e)||e.indexOf("=")<0)return!1;var t=n.getDeserializedHash(e);return!!(t.code||t.error_description||t.error||t.state)},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Ee;(function(n){n.AcquireTokenByCode="acquireTokenByCode",n.AcquireTokenByRefreshToken="acquireTokenByRefreshToken",n.AcquireTokenSilent="acquireTokenSilent",n.AcquireTokenSilentAsync="acquireTokenSilentAsync",n.AcquireTokenPopup="acquireTokenPopup",n.CryptoOptsGetPublicKeyThumbprint="cryptoOptsGetPublicKeyThumbprint",n.CryptoOptsSignJwt="cryptoOptsSignJwt",n.SilentCacheClientAcquireToken="silentCacheClientAcquireToken",n.SilentIframeClientAcquireToken="silentIframeClientAcquireToken",n.SilentRefreshClientAcquireToken="silentRefreshClientAcquireToken",n.SsoSilent="ssoSilent",n.StandardInteractionClientGetDiscoveredAuthority="standardInteractionClientGetDiscoveredAuthority",n.FetchAccountIdWithNativeBroker="fetchAccountIdWithNativeBroker",n.NativeInteractionClientAcquireToken="nativeInteractionClientAcquireToken",n.BaseClientCreateTokenRequestHeaders="baseClientCreateTokenRequestHeaders",n.BrokerHandhshake="brokerHandshake",n.AcquireTokenByRefreshTokenInBroker="acquireTokenByRefreshTokenInBroker",n.AcquireTokenByBroker="acquireTokenByBroker",n.RefreshTokenClientExecuteTokenRequest="refreshTokenClientExecuteTokenRequest",n.RefreshTokenClientAcquireToken="refreshTokenClientAcquireToken",n.RefreshTokenClientAcquireTokenWithCachedRefreshToken="refreshTokenClientAcquireTokenWithCachedRefreshToken",n.RefreshTokenClientAcquireTokenByRefreshToken="refreshTokenClientAcquireTokenByRefreshToken",n.RefreshTokenClientCreateTokenRequestBody="refreshTokenClientCreateTokenRequestBody",n.AcquireTokenFromCache="acquireTokenFromCache",n.AcquireTokenBySilentIframe="acquireTokenBySilentIframe",n.InitializeBaseRequest="initializeBaseRequest",n.InitializeSilentRequest="initializeSilentRequest",n.InitializeClientApplication="initializeClientApplication",n.SilentIframeClientTokenHelper="silentIframeClientTokenHelper",n.SilentHandlerInitiateAuthRequest="silentHandlerInitiateAuthRequest",n.SilentHandlerMonitorIframeForHash="silentHandlerMonitorIframeForHash",n.SilentHandlerLoadFrame="silentHandlerLoadFrame",n.StandardInteractionClientCreateAuthCodeClient="standardInteractionClientCreateAuthCodeClient",n.StandardInteractionClientGetClientConfiguration="standardInteractionClientGetClientConfiguration",n.StandardInteractionClientInitializeAuthorizationRequest="standardInteractionClientInitializeAuthorizationRequest",n.StandardInteractionClientInitializeAuthorizationCodeRequest="standardInteractionClientInitializeAuthorizationCodeRequest",n.GetAuthCodeUrl="getAuthCodeUrl",n.HandleCodeResponseFromServer="handleCodeResponseFromServer",n.HandleCodeResponseFromHash="handleCodeResponseFromHash",n.UpdateTokenEndpointAuthority="updateTokenEndpointAuthority",n.AuthClientAcquireToken="authClientAcquireToken",n.AuthClientExecuteTokenRequest="authClientExecuteTokenRequest",n.AuthClientCreateTokenRequestBody="authClientCreateTokenRequestBody",n.AuthClientCreateQueryString="authClientCreateQueryString",n.PopTokenGenerateCnf="popTokenGenerateCnf",n.PopTokenGenerateKid="popTokenGenerateKid",n.HandleServerTokenResponse="handleServerTokenResponse",n.AuthorityFactoryCreateDiscoveredInstance="authorityFactoryCreateDiscoveredInstance",n.AuthorityResolveEndpointsAsync="authorityResolveEndpointsAsync",n.AuthorityGetCloudDiscoveryMetadataFromNetwork="authorityGetCloudDiscoveryMetadataFromNetwork",n.AuthorityUpdateCloudDiscoveryMetadata="authorityUpdateCloudDiscoveryMetadata",n.AuthorityGetEndpointMetadataFromNetwork="authorityGetEndpointMetadataFromNetwork",n.AuthorityUpdateEndpointMetadata="authorityUpdateEndpointMetadata",n.AuthorityUpdateMetadataWithRegionalInformation="authorityUpdateMetadataWithRegionalInformation",n.RegionDiscoveryDetectRegion="regionDiscoveryDetectRegion",n.RegionDiscoveryGetRegionFromIMDS="regionDiscoveryGetRegionFromIMDS",n.RegionDiscoveryGetCurrentVersion="regionDiscoveryGetCurrentVersion",n.AcquireTokenByCodeAsync="acquireTokenByCodeAsync",n.GetEndpointMetadataFromNetwork="getEndpointMetadataFromNetwork",n.GetCloudDiscoveryMetadataFromNetworkMeasurement="getCloudDiscoveryMetadataFromNetworkMeasurement",n.HandleRedirectPromiseMeasurement="handleRedirectPromiseMeasurement",n.UpdateCloudDiscoveryMetadataMeasurement="updateCloudDiscoveryMetadataMeasurement",n.UsernamePasswordClientAcquireToken="usernamePasswordClientAcquireToken",n.NativeMessageHandlerHandshake="nativeMessageHandlerHandshake",n.ClearTokensAndKeysWithClaims="clearTokensAndKeysWithClaims"})(Ee||(Ee={}));var PE;(function(n){n[n.NotStarted=0]="NotStarted",n[n.InProgress=1]="InProgress",n[n.Completed=2]="Completed"})(PE||(PE={}));var jB=new Set(["accessTokenSize","durationMs","idTokenSize","matsSilentStatus","matsHttpStatus","refreshTokenSize","queuedTimeMs","startTimeMs","status"]);/*! @azure/msal-common v13.3.0 2023-08-24 */var n1;(function(n){n.SW="sw",n.UHW="uhw"})(n1||(n1={}));var Dv=function(){function n(e,t){this.cryptoUtils=e,this.performanceClient=t}return n.prototype.generateCnf=function(e){var t,r;return Qt(this,void 0,void 0,function(){var a,l,u;return Xt(this,function(f){switch(f.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(Ee.PopTokenGenerateCnf,e.correlationId),(r=this.performanceClient)===null||r===void 0||r.setPreQueueTime(Ee.PopTokenGenerateKid,e.correlationId),[4,this.generateKid(e)];case 1:return a=f.sent(),l=this.cryptoUtils.base64Encode(JSON.stringify(a)),u={kid:a.kid,reqCnfString:l},[4,this.cryptoUtils.hashString(l)];case 2:return[2,(u.reqCnfHash=f.sent(),u)]}})})},n.prototype.generateKid=function(e){var t;return Qt(this,void 0,void 0,function(){var r;return Xt(this,function(a){switch(a.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(Ee.PopTokenGenerateKid,e.correlationId),[4,this.cryptoUtils.getPublicKeyThumbprint(e)];case 1:return r=a.sent(),[2,{kid:r,xms_ksl:n1.SW}]}})})},n.prototype.signPopToken=function(e,t,r){return Qt(this,void 0,void 0,function(){return Xt(this,function(a){return[2,this.signPayload(e,t,r)]})})},n.prototype.signPayload=function(e,t,r,a){return Qt(this,void 0,void 0,function(){var l,u,f,p,m,y;return Xt(this,function(E){switch(E.label){case 0:return l=r.resourceRequestMethod,u=r.resourceRequestUri,f=r.shrClaims,p=r.shrNonce,m=u?new xn(u):void 0,y=m==null?void 0:m.getUrlComponents(),[4,this.cryptoUtils.signJwt(zn({at:e,ts:Hs.nowSeconds(),m:l==null?void 0:l.toUpperCase(),u:y==null?void 0:y.HostNameAndPort,nonce:p||this.cryptoUtils.createNewGuid(),p:y==null?void 0:y.AbsolutePath,q:y!=null&&y.QueryString?[[],y.QueryString]:void 0,client_claims:f||void 0},a),t,r.correlationId)];case 1:return[2,E.sent()]}})})},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var r1=function(){function n(){}return n.prototype.generateAppMetadataKey=function(){return n.generateAppMetadataCacheKey(this.environment,this.clientId)},n.generateAppMetadataCacheKey=function(e,t){var r=[XR,e,t];return r.join(Ki.CACHE_KEY_SEPARATOR).toLowerCase()},n.createAppMetadataEntity=function(e,t,r){var a=new n;return a.clientId=e,a.environment=t,r&&(a.familyId=r),a},n.isAppMetadataEntity=function(e,t){return t?e.indexOf(XR)===0&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("environment"):!1},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var zB=function(){function n(e,t){this.cache=e,this.hasChanged=t}return Object.defineProperty(n.prototype,"cacheHasChanged",{get:function(){return this.hasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tokenCache",{get:function(){return this.cache},enumerable:!1,configurable:!0}),n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var DE=function(){function n(e,t,r,a,l,u,f){this.clientId=e,this.cacheStorage=t,this.cryptoObj=r,this.logger=a,this.serializableCache=l,this.persistencePlugin=u,this.performanceClient=f}return n.prototype.validateServerAuthorizationCodeResponse=function(e,t,r){if(!e.state||!t)throw e.state?nt.createStateNotFoundError("Cached State"):nt.createStateNotFoundError("Server State");if(decodeURIComponent(e.state)!==decodeURIComponent(t))throw nt.createStateMismatchError();if(e.error||e.error_description||e.suberror)throw yl.isInteractionRequiredError(e.error,e.error_description,e.suberror)?new yl(e.error||W.EMPTY_STRING,e.error_description,e.suberror,e.timestamp||W.EMPTY_STRING,e.trace_id||W.EMPTY_STRING,e.correlation_id||W.EMPTY_STRING,e.claims||W.EMPTY_STRING):new kh(e.error||W.EMPTY_STRING,e.error_description,e.suberror);e.client_info&&NE(e.client_info,r)},n.prototype.validateTokenResponse=function(e){if(e.error||e.error_description||e.suberror){if(yl.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new yl(e.error,e.error_description,e.suberror,e.timestamp||W.EMPTY_STRING,e.trace_id||W.EMPTY_STRING,e.correlation_id||W.EMPTY_STRING,e.claims||W.EMPTY_STRING);var t=e.error_codes+" - ["+e.timestamp+"]: "+e.error_description+" - Correlation ID: "+e.correlation_id+" - Trace ID: "+e.trace_id;throw new kh(e.error,t,e.suberror)}},n.prototype.handleServerTokenResponse=function(e,t,r,a,l,u,f,p,m){var y;return Qt(this,void 0,void 0,function(){var E,S,T,A,I,P,D;return Xt(this,function(L){switch(L.label){case 0:if((y=this.performanceClient)===null||y===void 0||y.addQueueMeasurement(Ee.HandleServerTokenResponse,e.correlation_id),e.id_token){if(E=new fu(e.id_token||W.EMPTY_STRING,this.cryptoObj),l&&!rt.isEmpty(l.nonce)&&E.claims.nonce!==l.nonce)throw nt.createNonceMismatchError();if(a.maxAge||a.maxAge===0){if(S=E.claims.auth_time,!S)throw nt.createAuthTimeNotFoundError();fu.checkMaxAge(S,a.maxAge)}}this.homeAccountIdentifier=Uo.generateHomeAccountId(e.client_info||W.EMPTY_STRING,t.authorityType,this.logger,this.cryptoObj,E),l&&l.state&&(T=xc.parseRequestState(this.cryptoObj,l.state)),e.key_id=e.key_id||a.sshKid||void 0,A=this.generateCacheRecord(e,t,r,a,E,u,l),L.label=1;case 1:return L.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),I=new zB(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(I)]):[3,3];case 2:L.sent(),L.label=3;case 3:return f&&!p&&A.account&&(P=A.account.generateAccountKey(),D=this.cacheStorage.getAccount(P),!D)?(this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),[2,n.generateAuthenticationResult(this.cryptoObj,t,A,!1,a,E,T,void 0,m)]):[4,this.cacheStorage.saveCacheRecord(A)];case 4:return L.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&I?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(I)]):[3,7];case 6:L.sent(),L.label=7;case 7:return[7];case 8:return[2,n.generateAuthenticationResult(this.cryptoObj,t,A,!1,a,E,T,e,m)]}})})},n.prototype.generateCacheRecord=function(e,t,r,a,l,u,f){var p=t.getPreferredCache();if(rt.isEmpty(p))throw nt.createInvalidCacheEnvironmentError();var m,y;!rt.isEmpty(e.id_token)&&l&&(m=xh.createIdTokenEntity(this.homeAccountIdentifier,p,e.id_token||W.EMPTY_STRING,this.clientId,l.claims.tid||W.EMPTY_STRING),y=this.generateAccountEntity(e,l,t,f));var E=null;if(!rt.isEmpty(e.access_token)){var S=e.scope?ta.fromString(e.scope):new ta(a.scopes||[]),T=(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,A=(typeof e.ext_expires_in=="string"?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,I=(typeof e.refresh_in=="string"?parseInt(e.refresh_in,10):e.refresh_in)||void 0,P=r+T,D=P+A,L=I&&I>0?r+I:void 0;E=Ih.createAccessTokenEntity(this.homeAccountIdentifier,p,e.access_token||W.EMPTY_STRING,this.clientId,l?l.claims.tid||W.EMPTY_STRING:t.tenant,S.printScopes(),P,D,this.cryptoObj,L,e.token_type,u,e.key_id,a.claims,a.requestedClaimsHash)}var j=null;rt.isEmpty(e.refresh_token)||(j=Mv.createRefreshTokenEntity(this.homeAccountIdentifier,p,e.refresh_token||W.EMPTY_STRING,this.clientId,e.foci,u));var F=null;return rt.isEmpty(e.foci)||(F=r1.createAppMetadataEntity(this.clientId,p,e.foci)),new Ky(y,m,E,j,F)},n.prototype.generateAccountEntity=function(e,t,r,a){var l=r.authorityType,u=a?a.cloud_graph_host_name:W.EMPTY_STRING,f=a?a.msgraph_host:W.EMPTY_STRING;if(l===Ra.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),Uo.createGenericAccount(this.homeAccountIdentifier,t,r,u,f);if(rt.isEmpty(e.client_info)&&r.protocolMode==="AAD")throw nt.createClientInfoEmptyError();return e.client_info?Uo.createAccount(e.client_info,this.homeAccountIdentifier,t,r,u,f):Uo.createGenericAccount(this.homeAccountIdentifier,t,r,u,f)},n.generateAuthenticationResult=function(e,t,r,a,l,u,f,p,m){var y,E,S;return Qt(this,void 0,void 0,function(){var T,A,I,P,D,L,j,F,V,Y,Z;return Xt(this,function(Re){switch(Re.label){case 0:if(T=W.EMPTY_STRING,A=[],I=null,D=W.EMPTY_STRING,!r.accessToken)return[3,4];if(r.accessToken.tokenType!==Wn.POP)return[3,2];if(L=new Dv(e),j=r.accessToken,F=j.secret,V=j.keyId,!V)throw nt.createKeyIdMissingError();return[4,L.signPopToken(F,V,l)];case 1:return T=Re.sent(),[3,3];case 2:T=r.accessToken.secret,Re.label=3;case 3:A=ta.fromString(r.accessToken.target).asArray(),I=new Date(Number(r.accessToken.expiresOn)*1e3),P=new Date(Number(r.accessToken.extendedExpiresOn)*1e3),Re.label=4;case 4:return r.appMetadata&&(D=r.appMetadata.familyId===Hy?Hy:W.EMPTY_STRING),Y=(u==null?void 0:u.claims.oid)||(u==null?void 0:u.claims.sub)||W.EMPTY_STRING,Z=(u==null?void 0:u.claims.tid)||W.EMPTY_STRING,p!=null&&p.spa_accountid&&r.account&&(r.account.nativeAccountId=p==null?void 0:p.spa_accountid),[2,{authority:t.canonicalAuthority,uniqueId:Y,tenantId:Z,scopes:A,account:r.account?r.account.getAccountInfo():null,idToken:u?u.rawToken:W.EMPTY_STRING,idTokenClaims:u?u.claims:{},accessToken:T,fromCache:a,expiresOn:I,correlationId:l.correlationId,requestId:m||W.EMPTY_STRING,extExpiresOn:P,familyId:D,tokenType:((y=r.accessToken)===null||y===void 0?void 0:y.tokenType)||W.EMPTY_STRING,state:f?f.userRequestState:W.EMPTY_STRING,cloudGraphHostName:((E=r.account)===null||E===void 0?void 0:E.cloudGraphHostName)||W.EMPTY_STRING,msGraphHost:((S=r.account)===null||S===void 0?void 0:S.msGraphHost)||W.EMPTY_STRING,code:p==null?void 0:p.spa_code,fromNativeBroker:!1}]}})})},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var $M=function(n){Ba(e,n);function e(t,r){var a=n.call(this,t,r)||this;return a.includeRedirectUri=!0,a}return e.prototype.getAuthCodeUrl=function(t){var r,a;return Qt(this,void 0,void 0,function(){var l;return Xt(this,function(u){switch(u.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(Ee.GetAuthCodeUrl,t.correlationId),(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(Ee.AuthClientCreateQueryString,t.correlationId),[4,this.createAuthCodeUrlQueryString(t)];case 1:return l=u.sent(),[2,xn.appendQueryString(this.authority.authorizationEndpoint,l)]}})})},e.prototype.acquireToken=function(t,r){var a,l,u,f,p,m;return Qt(this,void 0,void 0,function(){var y,E,S,T,A,I,P=this;return Xt(this,function(D){switch(D.label){case 0:if(!t||!t.code)throw nt.createTokenRequestCannotBeMadeError();return(a=this.performanceClient)===null||a===void 0||a.addQueueMeasurement(Ee.AuthClientAcquireToken,t.correlationId),y=(l=this.performanceClient)===null||l===void 0?void 0:l.startMeasurement("AuthCodeClientAcquireToken",t.correlationId),this.logger.info("in acquireToken call in auth-code client"),E=Hs.nowSeconds(),(u=this.performanceClient)===null||u===void 0||u.setPreQueueTime(Ee.AuthClientExecuteTokenRequest,t.correlationId),[4,this.executeTokenRequest(this.authority,t)];case 1:return S=D.sent(),T=(f=S.headers)===null||f===void 0?void 0:f[ys.X_MS_REQUEST_ID],A=(p=S.headers)===null||p===void 0?void 0:p[ys.X_MS_HTTP_VERSION],A&&(y==null||y.addStaticFields({httpVerAuthority:A})),I=new DE(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient),I.validateTokenResponse(S.body),(m=this.performanceClient)===null||m===void 0||m.setPreQueueTime(Ee.HandleServerTokenResponse,t.correlationId),[2,I.handleServerTokenResponse(S.body,this.authority,E,t,r,void 0,void 0,void 0,T).then(function(L){return y==null||y.endMeasurement({success:!0}),L}).catch(function(L){throw P.logger.verbose("Error in fetching token in ACC",t.correlationId),y==null||y.endMeasurement({errorCode:L.errorCode,subErrorCode:L.subError,success:!1}),L})]}})})},e.prototype.handleFragmentResponse=function(t,r){var a=new DE(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),l=new xn(t),u=xn.getDeserializedHash(l.getHash());if(a.validateServerAuthorizationCodeResponse(u,r,this.cryptoUtils),!u.code)throw nt.createNoAuthCodeInServerResponseError();return zn(zn({},u),{code:u.code})},e.prototype.getLogoutUri=function(t){if(!t)throw yr.createEmptyLogoutRequestError();var r=this.createLogoutUrlQueryString(t);return xn.appendQueryString(this.authority.endSessionEndpoint,r)},e.prototype.executeTokenRequest=function(t,r){var a,l;return Qt(this,void 0,void 0,function(){var u,f,p,m,y,E,S;return Xt(this,function(T){switch(T.label){case 0:return(a=this.performanceClient)===null||a===void 0||a.addQueueMeasurement(Ee.AuthClientExecuteTokenRequest,r.correlationId),(l=this.performanceClient)===null||l===void 0||l.setPreQueueTime(Ee.AuthClientCreateTokenRequestBody,r.correlationId),u=this.createTokenQueryParameters(r),f=xn.appendQueryString(t.tokenEndpoint,u),[4,this.createTokenRequestBody(r)];case 1:if(p=T.sent(),m=void 0,r.clientInfo)try{y=NE(r.clientInfo,this.cryptoUtils),m={credential:""+y.uid+Ki.CLIENT_INFO_SEPARATOR+y.utid,type:_s.HOME_ACCOUNT_ID}}catch(A){this.logger.verbose("Could not parse client info for CCS Header: "+A)}return E=this.createTokenRequestHeaders(m||r.ccsCredential),S={clientId:this.config.authOptions.clientId,authority:t.canonicalAuthority,scopes:r.scopes,claims:r.claims,authenticationScheme:r.authenticationScheme,resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,sshKid:r.sshKid},[2,this.executePostToTokenEndpoint(f,p,E,S)]}})})},e.prototype.createTokenRequestBody=function(t){var r,a;return Qt(this,void 0,void 0,function(){var l,u,f,p,m,y,E,E,S;return Xt(this,function(T){switch(T.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(Ee.AuthClientCreateTokenRequestBody,t.correlationId),l=new Vy,l.addClientId(this.config.authOptions.clientId),this.includeRedirectUri?l.addRedirectUri(t.redirectUri):Ah.validateRedirectUri(t.redirectUri),l.addScopes(t.scopes),l.addAuthorizationCode(t.code),l.addLibraryInfo(this.config.libraryInfo),l.addApplicationTelemetry(this.config.telemetry.application),l.addThrottling(),this.serverTelemetryManager&&l.addServerTelemetry(this.serverTelemetryManager),t.codeVerifier&&l.addCodeVerifier(t.codeVerifier),this.config.clientCredentials.clientSecret&&l.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(u=this.config.clientCredentials.clientAssertion,l.addClientAssertion(u.assertion),l.addClientAssertionType(u.assertionType)),l.addGrantType(kE.AUTHORIZATION_CODE_GRANT),l.addClientInfo(),t.authenticationScheme!==Wn.POP?[3,2]:(f=new Dv(this.cryptoUtils,this.performanceClient),(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(Ee.PopTokenGenerateCnf,t.correlationId),[4,f.generateCnf(t)]);case 1:return p=T.sent(),l.addPopToken(p.reqCnfString),[3,3];case 2:if(t.authenticationScheme===Wn.SSH)if(t.sshJwk)l.addSshJwk(t.sshJwk);else throw yr.createMissingSshJwkError();T.label=3;case 3:if(m=t.correlationId||this.config.cryptoInterface.createNewGuid(),l.addCorrelationId(m),(!rt.isEmptyObj(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&l.addClaims(t.claims,this.config.authOptions.clientCapabilities),y=void 0,t.clientInfo)try{E=NE(t.clientInfo,this.cryptoUtils),y={credential:""+E.uid+Ki.CLIENT_INFO_SEPARATOR+E.utid,type:_s.HOME_ACCOUNT_ID}}catch(A){this.logger.verbose("Could not parse client info for CCS Header: "+A)}else y=t.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&y)switch(y.type){case _s.HOME_ACCOUNT_ID:try{E=Nv(y.credential),l.addCcsOid(E)}catch(A){this.logger.verbose("Could not parse home account ID for CCS Header: "+A)}break;case _s.UPN:l.addCcsUpn(y.credential);break}return t.tokenBodyParameters&&l.addExtraQueryParameters(t.tokenBodyParameters),t.enableSpaAuthorizationCode&&(!t.tokenBodyParameters||!t.tokenBodyParameters[nn.RETURN_SPA_CODE])&&l.addExtraQueryParameters((S={},S[nn.RETURN_SPA_CODE]="1",S)),[2,l.createQueryString()]}})})},e.prototype.createAuthCodeUrlQueryString=function(t){var r;return Qt(this,void 0,void 0,function(){var a,l,u,f,p,m,m,m,y,E;return Xt(this,function(S){switch(S.label){case 0:if((r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(Ee.AuthClientCreateQueryString,t.correlationId),a=new Vy,a.addClientId(this.config.authOptions.clientId),l=TE(t.scopes||[],t.extraScopesToConsent||[]),a.addScopes(l),a.addRedirectUri(t.redirectUri),u=t.correlationId||this.config.cryptoInterface.createNewGuid(),a.addCorrelationId(u),a.addResponseMode(t.responseMode),a.addResponseTypeCode(),a.addLibraryInfo(this.config.libraryInfo),a.addApplicationTelemetry(this.config.telemetry.application),a.addClientInfo(),t.codeChallenge&&t.codeChallengeMethod&&a.addCodeChallengeParams(t.codeChallenge,t.codeChallengeMethod),t.prompt&&a.addPrompt(t.prompt),t.domainHint&&a.addDomainHint(t.domainHint),t.prompt!==ea.SELECT_ACCOUNT)if(t.sid&&t.prompt===ea.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),a.addSid(t.sid);else if(t.account){if(f=this.extractAccountSid(t.account),p=this.extractLoginHint(t.account),p){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),a.addLoginHint(p);try{m=Nv(t.account.homeAccountId),a.addCcsOid(m)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(f&&t.prompt===ea.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),a.addSid(f);try{m=Nv(t.account.homeAccountId),a.addCcsOid(m)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(t.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),a.addLoginHint(t.loginHint),a.addCcsUpn(t.loginHint);else if(t.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),a.addLoginHint(t.account.username);try{m=Nv(t.account.homeAccountId),a.addCcsOid(m)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else t.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),a.addLoginHint(t.loginHint),a.addCcsUpn(t.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");return t.nonce&&a.addNonce(t.nonce),t.state&&a.addState(t.state),(!rt.isEmpty(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&a.addClaims(t.claims,this.config.authOptions.clientCapabilities),t.extraQueryParameters&&a.addExtraQueryParameters(t.extraQueryParameters),t.nativeBroker?(a.addNativeBroker(),t.authenticationScheme!==Wn.POP?[3,2]:(y=new Dv(this.cryptoUtils),[4,y.generateCnf(t)])):[3,2];case 1:E=S.sent(),a.addPopToken(E.reqCnfString),S.label=2;case 2:return[2,a.createQueryString()]}})})},e.prototype.createLogoutUrlQueryString=function(t){var r=new Vy;return t.postLogoutRedirectUri&&r.addPostLogoutRedirectUri(t.postLogoutRedirectUri),t.correlationId&&r.addCorrelationId(t.correlationId),t.idTokenHint&&r.addIdTokenHint(t.idTokenHint),t.state&&r.addState(t.state),t.logoutHint&&r.addLogoutHint(t.logoutHint),t.extraQueryParameters&&r.addExtraQueryParameters(t.extraQueryParameters),r.createQueryString()},e.prototype.extractAccountSid=function(t){var r;return((r=t.idTokenClaims)===null||r===void 0?void 0:r.sid)||null},e.prototype.extractLoginHint=function(t){var r;return((r=t.idTokenClaims)===null||r===void 0?void 0:r.login_hint)||null},e}(e1);/*! @azure/msal-common v13.3.0 2023-08-24 */var HM=function(n){Ba(e,n);function e(t,r){return n.call(this,t,r)||this}return e.prototype.acquireToken=function(t){var r,a,l,u,f,p,m;return Qt(this,void 0,void 0,function(){var y,E,S,T,A,I,P=this;return Xt(this,function(D){switch(D.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(Ee.RefreshTokenClientAcquireToken,t.correlationId),y=(a=this.performanceClient)===null||a===void 0?void 0:a.startMeasurement(Ee.RefreshTokenClientAcquireToken,t.correlationId),this.logger.verbose("RefreshTokenClientAcquireToken called",t.correlationId),E=Hs.nowSeconds(),(l=this.performanceClient)===null||l===void 0||l.setPreQueueTime(Ee.RefreshTokenClientExecuteTokenRequest,t.correlationId),[4,this.executeTokenRequest(t,this.authority)];case 1:return S=D.sent(),T=(u=S.headers)===null||u===void 0?void 0:u[ys.X_MS_HTTP_VERSION],y==null||y.addStaticFields({refreshTokenSize:((f=S.body.refresh_token)===null||f===void 0?void 0:f.length)||0}),T&&(y==null||y.addStaticFields({httpVerToken:T})),A=(p=S.headers)===null||p===void 0?void 0:p[ys.X_MS_REQUEST_ID],I=new DE(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin),I.validateTokenResponse(S.body),(m=this.performanceClient)===null||m===void 0||m.setPreQueueTime(Ee.HandleServerTokenResponse,t.correlationId),[2,I.handleServerTokenResponse(S.body,this.authority,E,t,void 0,void 0,!0,t.forceCache,A).then(function(L){return y==null||y.endMeasurement({success:!0}),L}).catch(function(L){throw P.logger.verbose("Error in fetching refresh token",t.correlationId),y==null||y.endMeasurement({errorCode:L.errorCode,subErrorCode:L.subError,success:!1}),L})]}})})},e.prototype.acquireTokenByRefreshToken=function(t){var r,a,l,u;return Qt(this,void 0,void 0,function(){var f,p,m;return Xt(this,function(y){if(!t)throw yr.createEmptyTokenRequestError();if((r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(Ee.RefreshTokenClientAcquireTokenByRefreshToken,t.correlationId),!t.account)throw nt.createNoAccountInSilentRequestError();if(f=this.cacheManager.isAppMetadataFOCI(t.account.environment),f)try{return(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(Ee.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),[2,this.acquireTokenWithCachedRefreshToken(t,!0)]}catch(E){if(p=E instanceof yl&&E.errorCode===Pv.noTokensFoundError.code,m=E instanceof kh&&E.errorCode===DM.INVALID_GRANT_ERROR&&E.subError===DM.CLIENT_MISMATCH_ERROR,p||m)return(l=this.performanceClient)===null||l===void 0||l.setPreQueueTime(Ee.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),[2,this.acquireTokenWithCachedRefreshToken(t,!1)];throw E}return(u=this.performanceClient)===null||u===void 0||u.setPreQueueTime(Ee.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),[2,this.acquireTokenWithCachedRefreshToken(t,!1)]})})},e.prototype.acquireTokenWithCachedRefreshToken=function(t,r){var a,l,u;return Qt(this,void 0,void 0,function(){var f,p,m;return Xt(this,function(y){if((a=this.performanceClient)===null||a===void 0||a.addQueueMeasurement(Ee.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),f=(l=this.performanceClient)===null||l===void 0?void 0:l.startMeasurement(Ee.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called",t.correlationId),p=this.cacheManager.getRefreshToken(t.account,r),!p)throw f==null||f.discardMeasurement(),yl.createNoTokensFoundError();return f==null||f.endMeasurement({success:!0}),m=zn(zn({},t),{refreshToken:p.secret,authenticationScheme:t.authenticationScheme||Wn.BEARER,ccsCredential:{credential:t.account.homeAccountId,type:_s.HOME_ACCOUNT_ID}}),(u=this.performanceClient)===null||u===void 0||u.setPreQueueTime(Ee.RefreshTokenClientAcquireToken,t.correlationId),[2,this.acquireToken(m)]})})},e.prototype.executeTokenRequest=function(t,r){var a,l,u;return Qt(this,void 0,void 0,function(){var f,p,m,y,E,S;return Xt(this,function(T){switch(T.label){case 0:return(a=this.performanceClient)===null||a===void 0||a.addQueueMeasurement(Ee.RefreshTokenClientExecuteTokenRequest,t.correlationId),f=(l=this.performanceClient)===null||l===void 0?void 0:l.startMeasurement(Ee.RefreshTokenClientExecuteTokenRequest,t.correlationId),(u=this.performanceClient)===null||u===void 0||u.setPreQueueTime(Ee.RefreshTokenClientCreateTokenRequestBody,t.correlationId),p=this.createTokenQueryParameters(t),m=xn.appendQueryString(r.tokenEndpoint,p),[4,this.createTokenRequestBody(t)];case 1:return y=T.sent(),E=this.createTokenRequestHeaders(t.ccsCredential),S={clientId:this.config.authOptions.clientId,authority:r.canonicalAuthority,scopes:t.scopes,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid},[2,this.executePostToTokenEndpoint(m,y,E,S).then(function(A){return f==null||f.endMeasurement({success:!0}),A}).catch(function(A){throw f==null||f.endMeasurement({success:!1}),A})]}})})},e.prototype.createTokenRequestBody=function(t){var r,a,l;return Qt(this,void 0,void 0,function(){var u,f,p,m,y,E,S;return Xt(this,function(T){switch(T.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(Ee.RefreshTokenClientCreateTokenRequestBody,t.correlationId),u=t.correlationId,f=(a=this.performanceClient)===null||a===void 0?void 0:a.startMeasurement(Ee.BaseClientCreateTokenRequestHeaders,u),p=new Vy,p.addClientId(this.config.authOptions.clientId),p.addScopes(t.scopes),p.addGrantType(kE.REFRESH_TOKEN_GRANT),p.addClientInfo(),p.addLibraryInfo(this.config.libraryInfo),p.addApplicationTelemetry(this.config.telemetry.application),p.addThrottling(),this.serverTelemetryManager&&p.addServerTelemetry(this.serverTelemetryManager),p.addCorrelationId(u),p.addRefreshToken(t.refreshToken),this.config.clientCredentials.clientSecret&&p.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(m=this.config.clientCredentials.clientAssertion,p.addClientAssertion(m.assertion),p.addClientAssertionType(m.assertionType)),t.authenticationScheme!==Wn.POP?[3,2]:(y=new Dv(this.cryptoUtils,this.performanceClient),(l=this.performanceClient)===null||l===void 0||l.setPreQueueTime(Ee.PopTokenGenerateCnf,t.correlationId),[4,y.generateCnf(t)]);case 1:return E=T.sent(),p.addPopToken(E.reqCnfString),[3,3];case 2:if(t.authenticationScheme===Wn.SSH)if(t.sshJwk)p.addSshJwk(t.sshJwk);else throw f==null||f.endMeasurement({success:!1}),yr.createMissingSshJwkError();T.label=3;case 3:if((!rt.isEmptyObj(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&p.addClaims(t.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&t.ccsCredential)switch(t.ccsCredential.type){case _s.HOME_ACCOUNT_ID:try{S=Nv(t.ccsCredential.credential),p.addCcsOid(S)}catch(A){this.logger.verbose("Could not parse home account ID for CCS Header: "+A)}break;case _s.UPN:p.addCcsUpn(t.ccsCredential.credential);break}return f==null||f.endMeasurement({success:!0}),[2,p.createQueryString()]}})})},e}(e1);/*! @azure/msal-common v13.3.0 2023-08-24 */var BB=function(n){Ba(e,n);function e(t,r){return n.call(this,t,r)||this}return e.prototype.acquireToken=function(t){return Qt(this,void 0,void 0,function(){var r,a;return Xt(this,function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),[4,this.acquireCachedToken(t)];case 1:return[2,l.sent()];case 2:if(r=l.sent(),r instanceof nt&&r.errorCode===$e.tokenRefreshRequired.code)return a=new HM(this.config,this.performanceClient),[2,a.acquireTokenByRefreshToken(t)];throw r;case 3:return[2]}})})},e.prototype.acquireCachedToken=function(t){var r,a,l,u,f;return Qt(this,void 0,void 0,function(){var p,m;return Xt(this,function(y){switch(y.label){case 0:if(!t)throw yr.createEmptyTokenRequestError();if(t.forceRefresh)throw(r=this.serverTelemetryManager)===null||r===void 0||r.setCacheOutcome(Fd.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),nt.createRefreshRequiredError();if(!this.config.cacheOptions.claimsBasedCachingEnabled&&!rt.isEmptyObj(t.claims))throw(a=this.serverTelemetryManager)===null||a===void 0||a.setCacheOutcome(Fd.CLAIMS_REQUESTED_CACHE_SKIPPED),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because claims-based caching is disabled and claims were requested."),nt.createRefreshRequiredError();if(!t.account)throw nt.createNoAccountInSilentRequestError();if(p=t.authority||this.authority.getPreferredCache(),m=this.cacheManager.readCacheRecord(t.account,t,p),m.accessToken){if(Hs.wasClockTurnedBack(m.accessToken.cachedAt)||Hs.isTokenExpired(m.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw(u=this.serverTelemetryManager)===null||u===void 0||u.setCacheOutcome(Fd.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),nt.createRefreshRequiredError();if(m.accessToken.refreshOn&&Hs.isTokenExpired(m.accessToken.refreshOn,0))throw(f=this.serverTelemetryManager)===null||f===void 0||f.setCacheOutcome(Fd.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),nt.createRefreshRequiredError()}else throw(l=this.serverTelemetryManager)===null||l===void 0||l.setCacheOutcome(Fd.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),nt.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(m,t)];case 1:return[2,y.sent()]}})})},e.prototype.generateResultFromCacheRecord=function(t,r){return Qt(this,void 0,void 0,function(){var a,l;return Xt(this,function(u){switch(u.label){case 0:if(t.idToken&&(a=new fu(t.idToken.secret,this.config.cryptoInterface)),r.maxAge||r.maxAge===0){if(l=a==null?void 0:a.claims.auth_time,!l)throw nt.createAuthTimeNotFoundError();fu.checkMaxAge(l,r.maxAge)}return[4,DE.generateAuthenticationResult(this.cryptoUtils,this.authority,t,!0,r,a)];case 1:return[2,u.sent()]}})})},e}(e1);/*! @azure/msal-common v13.3.0 2023-08-24 */function qB(n){return n.hasOwnProperty("authorization_endpoint")&&n.hasOwnProperty("token_endpoint")&&n.hasOwnProperty("issuer")&&n.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v13.3.0 2023-08-24 */var jM={endpointMetadata:{"https://login.microsoftonline.com/common/":{token_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/common/":{token_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/common/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/common/":{token_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/consumers/":{token_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/consumers/":{token_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/consumers/":{token_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/organizations/":{token_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/organizations/":{token_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/organizations/":{token_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"}},instanceDiscoveryMetadata:{"https://login.microsoftonline.com/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/common/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/consumers/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/organizations/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]}}},zM=jM.endpointMetadata,BM=jM.instanceDiscoveryMetadata;/*! @azure/msal-common v13.3.0 2023-08-24 */var Gy;(function(n){n.AAD="AAD",n.OIDC="OIDC"})(Gy||(Gy={}));/*! @azure/msal-common v13.3.0 2023-08-24 */var i1=function(){function n(){this.expiresAt=Hs.nowSeconds()+jy.REFRESH_TIME_SECONDS}return n.prototype.updateCloudDiscoveryMetadata=function(e,t){this.aliases=e.aliases,this.preferred_cache=e.preferred_cache,this.preferred_network=e.preferred_network,this.aliasesFromNetwork=t},n.prototype.updateEndpointMetadata=function(e,t){this.authorization_endpoint=e.authorization_endpoint,this.token_endpoint=e.token_endpoint,this.end_session_endpoint=e.end_session_endpoint,this.issuer=e.issuer,this.endpointsFromNetwork=t,this.jwks_uri=e.jwks_uri},n.prototype.updateCanonicalAuthority=function(e){this.canonical_authority=e},n.prototype.resetExpiresAt=function(){this.expiresAt=Hs.nowSeconds()+jy.REFRESH_TIME_SECONDS},n.prototype.isExpired=function(){return this.expiresAt<=Hs.nowSeconds()},n.isAuthorityMetadataEntity=function(e,t){return t?e.indexOf(jy.CACHE_KEY)===0&&t.hasOwnProperty("aliases")&&t.hasOwnProperty("preferred_cache")&&t.hasOwnProperty("preferred_network")&&t.hasOwnProperty("canonical_authority")&&t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("aliasesFromNetwork")&&t.hasOwnProperty("endpointsFromNetwork")&&t.hasOwnProperty("expiresAt")&&t.hasOwnProperty("jwks_uri"):!1},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */function VB(n){return n.hasOwnProperty("tenant_discovery_endpoint")&&n.hasOwnProperty("metadata")}/*! @azure/msal-common v13.3.0 2023-08-24 */function KB(n){return n.hasOwnProperty("error")&&n.hasOwnProperty("error_description")}/*! @azure/msal-common v13.3.0 2023-08-24 */var GB=function(){function n(e,t,r){this.networkInterface=e,this.performanceClient=t,this.correlationId=r}return n.prototype.detectRegion=function(e,t){var r,a,l,u;return Qt(this,void 0,void 0,function(){var f,p,m,y,E;return Xt(this,function(S){switch(S.label){case 0:if((r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(Ee.RegionDiscoveryDetectRegion,this.correlationId),f=e,f)return[3,8];p=n.IMDS_OPTIONS,S.label=1;case 1:return S.trys.push([1,6,,7]),(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(Ee.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(W.IMDS_VERSION,p)];case 2:return m=S.sent(),m.status===Ov.httpSuccess&&(f=m.body,t.region_source=Ud.IMDS),m.status!==Ov.httpBadRequest?[3,5]:((l=this.performanceClient)===null||l===void 0||l.setPreQueueTime(Ee.RegionDiscoveryGetCurrentVersion,this.correlationId),[4,this.getCurrentVersion(p)]);case 3:return y=S.sent(),y?((u=this.performanceClient)===null||u===void 0||u.setPreQueueTime(Ee.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(y,p)]):(t.region_source=Ud.FAILED_AUTO_DETECTION,[2,null]);case 4:E=S.sent(),E.status===Ov.httpSuccess&&(f=E.body,t.region_source=Ud.IMDS),S.label=5;case 5:return[3,7];case 6:return S.sent(),t.region_source=Ud.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:t.region_source=Ud.ENVIRONMENT_VARIABLE,S.label=9;case 9:return f||(t.region_source=Ud.FAILED_AUTO_DETECTION),[2,f||null]}})})},n.prototype.getRegionFromIMDS=function(e,t){var r;return Qt(this,void 0,void 0,function(){return Xt(this,function(a){return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(Ee.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[2,this.networkInterface.sendGetRequestAsync(W.IMDS_ENDPOINT+"?api-version="+e+"&format=text",t,W.IMDS_TIMEOUT)]})})},n.prototype.getCurrentVersion=function(e){var t;return Qt(this,void 0,void 0,function(){var r;return Xt(this,function(a){switch(a.label){case 0:(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(Ee.RegionDiscoveryGetCurrentVersion,this.correlationId),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(W.IMDS_ENDPOINT+"?format=json",e)];case 2:return r=a.sent(),r.status===Ov.httpBadRequest&&r.body&&r.body["newest-versions"]&&r.body["newest-versions"].length>0?[2,r.body["newest-versions"][0]]:[2,null];case 3:return a.sent(),[2,null];case 4:return[2]}})})},n.IMDS_OPTIONS={headers:{Metadata:"true"}},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Wy=function(){function n(e,t,r,a,l,u,f){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=t,this.cacheManager=r,this.authorityOptions=a,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=l,this.performanceClient=u,this.correlationId=f,this.regionDiscovery=new GB(t,this.performanceClient,this.correlationId)}return n.prototype.getAuthorityType=function(e){if(e.HostNameAndPort.endsWith(W.CIAM_AUTH_URL))return Ra.Ciam;var t=e.PathSegments;if(t.length)switch(t[0].toLowerCase()){case W.ADFS:return Ra.Adfs;case W.DSTS:return Ra.Dsts}return Ra.Default},Object.defineProperty(n.prototype,"authorityType",{get:function(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"protocolMode",{get:function(){return this.authorityOptions.protocolMode},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"options",{get:function(){return this.authorityOptions},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"canonicalAuthority",{get:function(){return this._canonicalAuthority.urlString},set:function(e){this._canonicalAuthority=new xn(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"canonicalAuthorityUrlComponents",{get:function(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hostnameAndPort",{get:function(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tenant",{get:function(){return this.canonicalAuthorityUrlComponents.PathSegments[0]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"authorizationEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw nt.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tokenEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw nt.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"deviceCodeEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw nt.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw nt.createLogoutNotSupportedError();return this.replacePath(this.metadata.end_session_endpoint)}else throw nt.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw nt.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"jwksUri",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw nt.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),n.prototype.canReplaceTenant=function(e){return e.PathSegments.length===1&&!n.reservedTenantDomains.has(e.PathSegments[0])&&this.getAuthorityType(e)===Ra.Default&&this.protocolMode===Gy.AAD},n.prototype.replaceTenant=function(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)},n.prototype.replacePath=function(e){var t=this,r=e,a=new xn(this.metadata.canonical_authority),l=a.getUrlComponents(),u=l.PathSegments,f=this.canonicalAuthorityUrlComponents.PathSegments;return f.forEach(function(p,m){var y=u[m];if(m===0&&t.canReplaceTenant(l)){var E=new xn(t.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];y!==E&&(t.logger.verbose("Replacing tenant domain name "+y+" with id "+E),y=E)}p!==y&&(r=r.replace("/"+y+"/","/"+p+"/"))}),this.replaceTenant(r)},Object.defineProperty(n.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===Ra.Adfs||this.authorityType===Ra.Dsts||this.protocolMode===Gy.OIDC?this.canonicalAuthority+".well-known/openid-configuration":this.canonicalAuthority+"v2.0/.well-known/openid-configuration"},enumerable:!1,configurable:!0}),n.prototype.discoveryComplete=function(){return!!this.metadata},n.prototype.resolveEndpointsAsync=function(){var e,t,r;return Qt(this,void 0,void 0,function(){var a,l,u,f;return Xt(this,function(p){switch(p.label){case 0:return(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(Ee.AuthorityResolveEndpointsAsync,this.correlationId),a=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort),a||(a=new i1,a.updateCanonicalAuthority(this.canonicalAuthority)),(t=this.performanceClient)===null||t===void 0||t.setPreQueueTime(Ee.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),[4,this.updateCloudDiscoveryMetadata(a)];case 1:return l=p.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,a.preferred_network),(r=this.performanceClient)===null||r===void 0||r.setPreQueueTime(Ee.AuthorityUpdateEndpointMetadata,this.correlationId),[4,this.updateEndpointMetadata(a)];case 2:return u=p.sent(),l!==$s.CACHE&&u!==$s.CACHE&&(a.resetExpiresAt(),a.updateCanonicalAuthority(this.canonicalAuthority)),f=this.cacheManager.generateAuthorityMetadataCacheKey(a.preferred_cache),this.cacheManager.setAuthorityMetadata(f,a),this.metadata=a,[2]}})})},n.prototype.updateEndpointMetadata=function(e){var t,r,a,l,u,f;return Qt(this,void 0,void 0,function(){var p,m;return Xt(this,function(y){switch(y.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(Ee.AuthorityUpdateEndpointMetadata,this.correlationId),p=this.getEndpointMetadataFromConfig(),p?(e.updateEndpointMetadata(p,!1),[2,$s.CONFIG]):this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!e.isExpired()?[2,$s.CACHE]:((r=this.performanceClient)===null||r===void 0||r.setPreQueueTime(Ee.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),[4,this.getEndpointMetadataFromNetwork()]);case 1:return p=y.sent(),p?!((a=this.authorityOptions.azureRegionConfiguration)===null||a===void 0)&&a.azureRegion?((l=this.performanceClient)===null||l===void 0||l.setPreQueueTime(Ee.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(p)]):[3,3]:[3,4];case 2:p=y.sent(),y.label=3;case 3:return e.updateEndpointMetadata(p,!0),[2,$s.NETWORK];case 4:return m=this.getEndpointMetadataFromHardcodedValues(),m&&!this.authorityOptions.skipAuthorityMetadataCache?!((u=this.authorityOptions.azureRegionConfiguration)===null||u===void 0)&&u.azureRegion?((f=this.performanceClient)===null||f===void 0||f.setPreQueueTime(Ee.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(m)]):[3,6]:[3,7];case 5:m=y.sent(),y.label=6;case 6:return e.updateEndpointMetadata(m,!1),[2,$s.HARDCODED_VALUES];case 7:throw nt.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},n.prototype.isAuthoritySameType=function(e){var t=new xn(e.canonical_authority),r=t.getUrlComponents().PathSegments;return r.length===this.canonicalAuthorityUrlComponents.PathSegments.length},n.prototype.getEndpointMetadataFromConfig=function(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw yr.createInvalidAuthorityMetadataError()}return null},n.prototype.getEndpointMetadataFromNetwork=function(){var e;return Qt(this,void 0,void 0,function(){var t,r;return Xt(this,function(a){switch(a.label){case 0:(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(Ee.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),t={},a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint,t)];case 2:return r=a.sent(),[2,qB(r.body)?r.body:null];case 3:return a.sent(),[2,null];case 4:return[2]}})})},n.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in zM?zM[this.canonicalAuthority]:null},n.prototype.updateMetadataWithRegionalInformation=function(e){var t,r,a,l;return Qt(this,void 0,void 0,function(){var u,f;return Xt(this,function(p){switch(p.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(Ee.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),u=(r=this.authorityOptions.azureRegionConfiguration)===null||r===void 0?void 0:r.azureRegion,u?u!==W.AZURE_REGION_AUTO_DISCOVER_FLAG?(this.regionDiscoveryMetadata.region_outcome=By.CONFIGURED_NO_AUTO_DETECTION,this.regionDiscoveryMetadata.region_used=u,[2,n.replaceWithRegionalInformation(e,u)]):((a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(Ee.RegionDiscoveryDetectRegion,this.correlationId),[4,this.regionDiscovery.detectRegion((l=this.authorityOptions.azureRegionConfiguration)===null||l===void 0?void 0:l.environmentRegion,this.regionDiscoveryMetadata)]):[3,2];case 1:if(f=p.sent(),f)return this.regionDiscoveryMetadata.region_outcome=By.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=f,[2,n.replaceWithRegionalInformation(e,f)];this.regionDiscoveryMetadata.region_outcome=By.AUTO_DETECTION_REQUESTED_FAILED,p.label=2;case 2:return[2,e]}})})},n.prototype.updateCloudDiscoveryMetadata=function(e){var t,r;return Qt(this,void 0,void 0,function(){var a,l,u;return Xt(this,function(f){switch(f.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(Ee.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),this.logger.verbose("Attempting to get cloud discovery metadata in the config"),this.logger.verbosePii("Known Authorities: "+(this.authorityOptions.knownAuthorities||W.NOT_APPLICABLE)),this.logger.verbosePii("Authority Metadata: "+(this.authorityOptions.authorityMetadata||W.NOT_APPLICABLE)),this.logger.verbosePii("Canonical Authority: "+(e.canonical_authority||W.NOT_APPLICABLE)),a=this.getCloudDiscoveryMetadataFromConfig(),a?(this.logger.verbose("Found cloud discovery metadata in the config."),e.updateCloudDiscoveryMetadata(a,!1),[2,$s.CONFIG]):(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the cache."),l=e.isExpired(),this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!l?(this.logger.verbose("Found metadata in the cache."),[2,$s.CACHE]):(l&&this.logger.verbose("The metadata entity is expired."),this.logger.verbose("Did not find cloud discovery metadata in the cache... Attempting to get cloud discovery metadata from the network."),(r=this.performanceClient)===null||r===void 0||r.setPreQueueTime(Ee.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),[4,this.getCloudDiscoveryMetadataFromNetwork()]));case 1:if(a=f.sent(),a)return this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()"),e.updateCloudDiscoveryMetadata(a,!0),[2,$s.NETWORK];if(this.logger.verbose("Did not find cloud discovery metadata from the network... Attempting to get cloud discovery metadata from hardcoded values."),u=this.getCloudDiscoveryMetadataFromHarcodedValues(),u&&!this.options.skipAuthorityMetadataCache)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),e.updateCloudDiscoveryMetadata(u,!1),[2,$s.HARDCODED_VALUES];throw this.logger.error("Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error."),yr.createUntrustedAuthorityError()}})})},n.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityType===Ra.Ciam)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),n.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");try{this.logger.verbose("Attempting to parse the cloud discovery metadata.");var e=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),t=n.getCloudDiscoveryMetadataFromNetworkResponse(e.metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),t)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),t;this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}catch{throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),yr.createInvalidCloudDiscoveryMetadataError()}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),n.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null},n.prototype.getCloudDiscoveryMetadataFromNetwork=function(){var e;return Qt(this,void 0,void 0,function(){var t,r,a,l,u,f,p,m;return Xt(this,function(y){switch(y.label){case 0:(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(Ee.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),t=""+W.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",r={},a=null,y.label=1;case 1:return y.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(t,r)];case 2:if(l=y.sent(),u=void 0,f=void 0,VB(l.body))u=l.body,f=u.metadata,this.logger.verbosePii("tenant_discovery_endpoint is: "+u.tenant_discovery_endpoint);else if(KB(l.body)){if(this.logger.warning("A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: "+l.status),u=l.body,u.error===W.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),[2,null];this.logger.warning("The CloudInstanceDiscoveryErrorResponse error is "+u.error),this.logger.warning("The CloudInstanceDiscoveryErrorResponse error description is "+u.error_description),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),f=[]}else return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),[2,null];return this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),a=n.getCloudDiscoveryMetadataFromNetworkResponse(f,this.hostnameAndPort),[3,4];case 3:return p=y.sent(),p instanceof Et?this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
264
- Error: `+p.errorCode+`
265
- Error Description: `+p.errorMessage):(m=p,this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
266
- Error: `+m.name+`
267
- Error Description: `+m.message)),[2,null];case 4:return a||(this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),this.logger.verbose("Creating custom Authority for custom domain scenario."),a=n.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,a]}})})},n.prototype.getCloudDiscoveryMetadataFromHarcodedValues=function(){return this.canonicalAuthority in BM?BM[this.canonicalAuthority]:null},n.prototype.isInKnownAuthorities=function(){var e=this,t=this.authorityOptions.knownAuthorities.filter(function(r){return xn.getDomainFromUrl(r).toLowerCase()===e.hostnameAndPort});return t.length>0},n.generateAuthority=function(e,t){var r;if(t&&t.azureCloudInstance!==qy.None){var a=t.tenant?t.tenant:W.DEFAULT_COMMON_TENANT;r=t.azureCloudInstance+"/"+a+"/"}return r||e},n.createCloudDiscoveryMetadataFromHost=function(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}},n.getCloudDiscoveryMetadataFromNetworkResponse=function(e,t){for(var r=0;r<e.length;r++){var a=e[r];if(a.aliases.indexOf(t)>-1)return a}return null},n.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw nt.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},n.prototype.isAlias=function(e){return this.metadata.aliases.indexOf(e)>-1},n.isPublicCloudAuthority=function(e){return W.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0},n.buildRegionalAuthorityString=function(e,t,r){var a=new xn(e);a.validateAsUri();var l=a.getUrlComponents(),u=t+"."+l.HostNameAndPort;this.isPublicCloudAuthority(l.HostNameAndPort)&&(u=t+"."+W.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var f=xn.constructAuthorityUriFromObject(zn(zn({},a.getUrlComponents()),{HostNameAndPort:u})).urlString;return r?f+"?"+r:f},n.replaceWithRegionalInformation=function(e,t){return e.authorization_endpoint=n.buildRegionalAuthorityString(e.authorization_endpoint,t),e.token_endpoint=n.buildRegionalAuthorityString(e.token_endpoint,t,W.REGIONAL_AUTH_NON_MSI_QUERY_STRING),e.end_session_endpoint&&(e.end_session_endpoint=n.buildRegionalAuthorityString(e.end_session_endpoint,t)),e},n.transformCIAMAuthority=function(e){var t=e.endsWith(W.FORWARD_SLASH)?e:""+e+W.FORWARD_SLASH,r=new xn(e),a=r.getUrlComponents();if(a.PathSegments.length===0&&a.HostNameAndPort.endsWith(W.CIAM_AUTH_URL)){var l=a.HostNameAndPort.split(".")[0];t=""+t+l+W.AAD_TENANT_DOMAIN_SUFFIX}return t},n.reservedTenantDomains=new Set(["{tenant}","{tenantid}",Rh.COMMON,Rh.CONSUMERS,Rh.ORGANIZATIONS]),n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var LE=function(){function n(){}return n.createDiscoveredInstance=function(e,t,r,a,l,u,f){return Qt(this,void 0,void 0,function(){var p,m,y;return Xt(this,function(E){switch(E.label){case 0:u==null||u.addQueueMeasurement(Ee.AuthorityFactoryCreateDiscoveredInstance,f),p=Wy.transformCIAMAuthority(e),m=n.createInstance(p,t,r,a,l,u,f),E.label=1;case 1:return E.trys.push([1,3,,4]),u==null||u.setPreQueueTime(Ee.AuthorityResolveEndpointsAsync,f),[4,m.resolveEndpointsAsync()];case 2:return E.sent(),[2,m];case 3:throw y=E.sent(),nt.createEndpointDiscoveryIncompleteError(y);case 4:return[2]}})})},n.createInstance=function(e,t,r,a,l,u,f){if(rt.isEmpty(e))throw yr.createUrlEmptyError();return new Wy(e,t,r,a,l,u,f)},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var UE=function(){function n(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return n.isServerTelemetryEntity=function(e,t){var r=e.indexOf(Lo.CACHE_KEY)===0,a=!0;return t&&(a=t.hasOwnProperty("failedRequests")&&t.hasOwnProperty("errors")&&t.hasOwnProperty("cacheHits")),r&&a},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var qM=function(){function n(){}return n.isThrottlingEntity=function(e,t){var r=!1;e&&(r=e.indexOf(zy.THROTTLING_PREFIX)===0);var a=!0;return t&&(a=t.hasOwnProperty("throttleTime")),r&&a},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var WB={sendGetRequestAsync:function(){var n="Network interface - sendGetRequestAsync() has not been implemented for the Network interface.";return Promise.reject(Et.createUnexpectedError(n))},sendPostRequestAsync:function(){var n="Network interface - sendPostRequestAsync() has not been implemented for the Network interface.";return Promise.reject(Et.createUnexpectedError(n))}};/*! @azure/msal-common v13.3.0 2023-08-24 */var FE={missingKidError:{code:"missing_kid_error",desc:"The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided."},missingAlgError:{code:"missing_alg_error",desc:"The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided."}},VM=function(n){Ba(e,n);function e(t,r){var a=n.call(this,t,r)||this;return a.name="JoseHeaderError",Object.setPrototypeOf(a,e.prototype),a}return e.createMissingKidError=function(){return new e(FE.missingKidError.code,FE.missingKidError.desc)},e.createMissingAlgError=function(){return new e(FE.missingAlgError.code,FE.missingAlgError.desc)},e}(Et);/*! @azure/msal-common v13.3.0 2023-08-24 */var YB=function(){function n(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}return n.getShrHeaderString=function(e){if(!e.kid)throw VM.createMissingKidError();if(!e.alg)throw VM.createMissingAlgError();var t=new n({typ:e.typ||JR.Pop,kid:e.kid,alg:e.alg});return JSON.stringify(t)},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var QB=function(){function n(e,t){this.cacheOutcome=Fd.NO_CACHE_HIT,this.cacheManager=t,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||W.EMPTY_STRING,this.wrapperVer=e.wrapperVer||W.EMPTY_STRING,this.telemetryCacheKey=Lo.CACHE_KEY+Ki.CACHE_KEY_SEPARATOR+e.clientId}return n.prototype.generateCurrentRequestHeaderValue=function(){var e=""+this.apiId+Lo.VALUE_SEPARATOR+this.cacheOutcome,t=[this.wrapperSKU,this.wrapperVer].join(Lo.VALUE_SEPARATOR),r=this.getRegionDiscoveryFields(),a=[e,r].join(Lo.VALUE_SEPARATOR);return[Lo.SCHEMA_VERSION,a,t].join(Lo.CATEGORY_SEPARATOR)},n.prototype.generateLastRequestHeaderValue=function(){var e=this.getLastRequests(),t=n.maxErrorsToSend(e),r=e.failedRequests.slice(0,2*t).join(Lo.VALUE_SEPARATOR),a=e.errors.slice(0,t).join(Lo.VALUE_SEPARATOR),l=e.errors.length,u=t<l?Lo.OVERFLOW_TRUE:Lo.OVERFLOW_FALSE,f=[l,u].join(Lo.VALUE_SEPARATOR);return[Lo.SCHEMA_VERSION,e.cacheHits,r,a,f].join(Lo.CATEGORY_SEPARATOR)},n.prototype.cacheFailedRequest=function(e){var t=this.getLastRequests();t.errors.length>=Lo.MAX_CACHED_ERRORS&&(t.failedRequests.shift(),t.failedRequests.shift(),t.errors.shift()),t.failedRequests.push(this.apiId,this.correlationId),rt.isEmpty(e.subError)?rt.isEmpty(e.errorCode)?e&&e.toString()?t.errors.push(e.toString()):t.errors.push(Lo.UNKNOWN_ERROR):t.errors.push(e.errorCode):t.errors.push(e.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t)},n.prototype.incrementCacheHits=function(){var e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e),e.cacheHits},n.prototype.getLastRequests=function(){var e=new UE,t=this.cacheManager.getServerTelemetry(this.telemetryCacheKey);return t||e},n.prototype.clearTelemetryCache=function(){var e=this.getLastRequests(),t=n.maxErrorsToSend(e),r=e.errors.length;if(t===r)this.cacheManager.removeItem(this.telemetryCacheKey);else{var a=new UE;a.failedRequests=e.failedRequests.slice(t*2),a.errors=e.errors.slice(t),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,a)}},n.maxErrorsToSend=function(e){var t,r=0,a=0,l=e.errors.length;for(t=0;t<l;t++){var u=e.failedRequests[2*t]||W.EMPTY_STRING,f=e.failedRequests[2*t+1]||W.EMPTY_STRING,p=e.errors[t]||W.EMPTY_STRING;if(a+=u.toString().length+f.toString().length+p.length+3,a<Lo.MAX_LAST_HEADER_BYTES)r+=1;else break}return r},n.prototype.getRegionDiscoveryFields=function(){var e=[];return e.push(this.regionUsed||W.EMPTY_STRING),e.push(this.regionSource||W.EMPTY_STRING),e.push(this.regionOutcome||W.EMPTY_STRING),e.join(",")},n.prototype.updateRegionDiscoveryMetadata=function(e){this.regionUsed=e.region_used,this.regionSource=e.region_source,this.regionOutcome=e.region_outcome},n.prototype.setCacheOutcome=function(e){this.cacheOutcome=e},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var KM=function(){function n(e,t,r,a,l,u){this.authority=t,this.libraryName=a,this.libraryVersion=l,this.applicationTelemetry=u,this.clientId=e,this.logger=r,this.callbacks=new Map,this.eventsByCorrelationId=new Map,this.queueMeasurements=new Map,this.preQueueTimeByCorrelationId=new Map}return n.prototype.startPerformanceMeasurement=function(e,t){return{}},n.prototype.startPerformanceMeasuremeant=function(e,t){return{}},n.prototype.getIntFields=function(){return jB},n.prototype.getPreQueueTime=function(e,t){var r=this.preQueueTimeByCorrelationId.get(t);if(r){if(r.name!==e){this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue time found for "+e+", unable to add queue measurement");return}}else{this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue times found for correlationId: "+t+", unable to add queue measurement");return}return r.time},n.prototype.calculateQueuedTime=function(e,t){return e<1?(this.logger.trace("PerformanceClient: preQueueTime should be a positive integer and not "+e),0):t<1?(this.logger.trace("PerformanceClient: currentTime should be a positive integer and not "+t),0):t<e?(this.logger.trace("PerformanceClient: currentTime is less than preQueueTime, check how time is being retrieved"),0):t-e},n.prototype.addQueueMeasurement=function(e,t,r,a){if(!t){this.logger.trace("PerformanceClient.addQueueMeasurement: correlationId not provided for "+e+", cannot add queue measurement");return}if(r===0)this.logger.trace("PerformanceClient.addQueueMeasurement: queue time provided for "+e+" is "+r);else if(!r){this.logger.trace("PerformanceClient.addQueueMeasurement: no queue time provided for "+e);return}var l={eventName:e,queueTime:r,manuallyCompleted:a},u=this.queueMeasurements.get(t);if(u)u.push(l),this.queueMeasurements.set(t,u);else{this.logger.trace("PerformanceClient.addQueueMeasurement: adding correlationId "+t+" to queue measurements");var f=[l];this.queueMeasurements.set(t,f)}this.preQueueTimeByCorrelationId.delete(t)},n.prototype.startMeasurement=function(e,t){var r=this,a,l,u=t||this.generateId();t||this.logger.info("PerformanceClient: No correlation id provided for "+e+", generating",u),this.logger.trace("PerformanceClient: Performance measurement started for "+e,u);var f=this.startPerformanceMeasuremeant(e,u);f.startMeasurement();var p={eventId:this.generateId(),status:PE.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,clientId:this.clientId,name:e,startTimeMs:Date.now(),correlationId:u,appName:(a=this.applicationTelemetry)===null||a===void 0?void 0:a.appName,appVersion:(l=this.applicationTelemetry)===null||l===void 0?void 0:l.appVersion};return this.cacheEventByCorrelationId(p),{endMeasurement:function(m){return r.endMeasurement(zn(zn({},p),m),f)},discardMeasurement:function(){return r.discardMeasurements(p.correlationId)},addStaticFields:function(m){return r.addStaticFields(m,p.correlationId)},increment:function(m){return r.increment(m,p.correlationId)},measurement:f,event:p}},n.prototype.endMeasurement=function(e,t){var r=this,a,l,u=this.eventsByCorrelationId.get(e.correlationId);if(!u)return this.logger.trace("PerformanceClient: Measurement not found for "+e.eventId,e.correlationId),null;var f=e.eventId===u.eventId,p={totalQueueTime:0,totalQueueCount:0,manuallyCompletedCount:0};f?(p=this.getQueueInfo(e.correlationId),this.discardCache(u.correlationId)):(a=u.incompleteSubMeasurements)===null||a===void 0||a.delete(e.eventId),t==null||t.endMeasurement();var m=t==null?void 0:t.flushMeasurement();if(!m)return this.logger.trace("PerformanceClient: Performance measurement not taken",u.correlationId),null;if(this.logger.trace("PerformanceClient: Performance measurement ended for "+e.name+": "+m+" ms",e.correlationId),!f)return u[e.name+"DurationMs"]=Math.floor(m),zn({},u);var y=zn(zn({},u),e),E=0;return(l=y.incompleteSubMeasurements)===null||l===void 0||l.forEach(function(S){r.logger.trace("PerformanceClient: Incomplete submeasurement "+S.name+" found for "+e.name,y.correlationId),E++}),y.incompleteSubMeasurements=void 0,y=zn(zn({},y),{durationMs:Math.round(m),queuedTimeMs:p.totalQueueTime,queuedCount:p.totalQueueCount,queuedManuallyCompletedCount:p.manuallyCompletedCount,status:PE.Completed,incompleteSubsCount:E}),this.truncateIntegralFields(y,this.getIntFields()),this.emitEvents([y],e.correlationId),y},n.prototype.addStaticFields=function(e,t){this.logger.trace("PerformanceClient: Updating static fields");var r=this.eventsByCorrelationId.get(t);r?this.eventsByCorrelationId.set(t,zn(zn({},r),e)):this.logger.trace("PerformanceClient: Event not found for",t)},n.prototype.increment=function(e,t){this.logger.trace("PerformanceClient: Updating counters");var r=this.eventsByCorrelationId.get(t);if(r)for(var a in e)r.hasOwnProperty(a)||(r[a]=0),r[a]+=e[a];else this.logger.trace("PerformanceClient: Event not found for",t)},n.prototype.cacheEventByCorrelationId=function(e){var t=this.eventsByCorrelationId.get(e.correlationId);t?(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" added/updated",e.correlationId),t.incompleteSubMeasurements=t.incompleteSubMeasurements||new Map,t.incompleteSubMeasurements.set(e.eventId,{name:e.name,startTimeMs:e.startTimeMs})):(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" started",e.correlationId),this.eventsByCorrelationId.set(e.correlationId,zn({},e)))},n.prototype.getQueueInfo=function(e){var t=this.queueMeasurements.get(e);t||this.logger.trace("PerformanceClient: no queue measurements found for for correlationId: "+e);var r=0,a=0,l=0;return t==null||t.forEach(function(u){r+=u.queueTime,a++,l+=u.manuallyCompleted?1:0}),{totalQueueTime:r,totalQueueCount:a,manuallyCompletedCount:l}},n.prototype.discardMeasurements=function(e){this.logger.trace("PerformanceClient: Performance measurements discarded",e),this.eventsByCorrelationId.delete(e)},n.prototype.discardCache=function(e){this.discardMeasurements(e),this.logger.trace("PerformanceClient: QueueMeasurements discarded",e),this.queueMeasurements.delete(e),this.logger.trace("PerformanceClient: Pre-queue times discarded",e),this.preQueueTimeByCorrelationId.delete(e)},n.prototype.addPerformanceCallback=function(e){var t=this.generateId();return this.callbacks.set(t,e),this.logger.verbose("PerformanceClient: Performance callback registered with id: "+t),t},n.prototype.removePerformanceCallback=function(e){var t=this.callbacks.delete(e);return t?this.logger.verbose("PerformanceClient: Performance callback "+e+" removed."):this.logger.verbose("PerformanceClient: Performance callback "+e+" not removed."),t},n.prototype.emitEvents=function(e,t){var r=this;this.logger.verbose("PerformanceClient: Emitting performance events",t),this.callbacks.forEach(function(a,l){r.logger.trace("PerformanceClient: Emitting event to callback "+l,t),a.apply(null,[e])})},n.prototype.truncateIntegralFields=function(e,t){t.forEach(function(r){r in e&&typeof e[r]=="number"&&(e[r]=Math.floor(e[r]))})},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var GM=function(){function n(){}return n.prototype.startMeasurement=function(){},n.prototype.endMeasurement=function(){},n.prototype.flushMeasurement=function(){return null},n}(),XB=function(n){Ba(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.generateId=function(){return"callback-id"},e.prototype.startPerformanceMeasuremeant=function(){return new GM},e.prototype.startPerformanceMeasurement=function(){return new GM},e.prototype.calculateQueuedTime=function(t,r){return 0},e.prototype.addQueueMeasurement=function(t,r,a){},e.prototype.setPreQueueTime=function(t,r){},e}(KM);/*! @azure/msal-browser v2.38.2 2023-08-24 */var Fe={pkceNotGenerated:{code:"pkce_not_created",desc:"The PKCE code challenge and verifier could not be generated."},cryptoDoesNotExist:{code:"crypto_nonexistent",desc:"The crypto object or function is not available."},httpMethodNotImplementedError:{code:"http_method_not_implemented",desc:"The HTTP method given has not been implemented in this library."},emptyNavigateUriError:{code:"empty_navigate_uri",desc:"Navigation URI is empty. Please check stack trace for more info."},hashEmptyError:{code:"hash_empty_error",desc:"Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. For more visit: aka.ms/msaljs/browser-errors."},hashDoesNotContainStateError:{code:"no_state_in_hash",desc:"Hash does not contain state. Please verify that the request originated from msal."},hashDoesNotContainKnownPropertiesError:{code:"hash_does_not_contain_known_properties",desc:"Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. For more visit: aka.ms/msaljs/browser-errors."},unableToParseStateError:{code:"unable_to_parse_state",desc:"Unable to parse state. Please verify that the request originated from msal."},stateInteractionTypeMismatchError:{code:"state_interaction_type_mismatch",desc:"Hash contains state but the interaction type does not match the caller."},interactionInProgress:{code:"interaction_in_progress",desc:"Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API. For more visit: aka.ms/msaljs/browser-errors."},popupWindowError:{code:"popup_window_error",desc:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser."},emptyWindowError:{code:"empty_window_error",desc:"window.open returned null or undefined window object."},userCancelledError:{code:"user_cancelled",desc:"User cancelled the flow."},monitorPopupTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in popup failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},monitorIframeTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},redirectInIframeError:{code:"redirect_in_iframe",desc:"Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs."},blockTokenRequestsInHiddenIframeError:{code:"block_iframe_reload",desc:"Request was blocked inside an iframe because MSAL detected an authentication response. For more visit: aka.ms/msaljs/browser-errors"},blockAcquireTokenInPopupsError:{code:"block_nested_popups",desc:"Request was blocked inside a popup because MSAL detected it was running in a popup."},iframeClosedPrematurelyError:{code:"iframe_closed_prematurely",desc:"The iframe being monitored was closed prematurely."},silentLogoutUnsupportedError:{code:"silent_logout_unsupported",desc:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead."},noAccountError:{code:"no_account_error",desc:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request."},silentPromptValueError:{code:"silent_prompt_value_error",desc:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'."},noTokenRequestCacheError:{code:"no_token_request_cache_error",desc:"No token request found in cache."},unableToParseTokenRequestCacheError:{code:"unable_to_parse_token_request_cache_error",desc:"The cached token request could not be parsed."},noCachedAuthorityError:{code:"no_cached_authority_error",desc:"No cached authority found."},authRequestNotSet:{code:"auth_request_not_set_error",desc:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler"},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},notInBrowserEnvironment:{code:"non_browser_environment",desc:"Login and token requests are not supported in non-browser environments."},databaseNotOpen:{code:"database_not_open",desc:"Database is not open!"},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},postRequestFailed:{code:"post_request_failed",desc:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'"},getRequestFailed:{code:"get_request_failed",desc:"Network request failed. Please check the network trace to determine root cause."},failedToParseNetworkResponse:{code:"failed_to_parse_response",desc:"Failed to parse network response. Check network trace."},unableToLoadTokenError:{code:"unable_to_load_token",desc:"Error loading token to cache."},signingKeyNotFoundInStorage:{code:"crypto_key_not_found",desc:"Cryptographic Key or Keypair not found in browser storage."},authCodeRequired:{code:"auth_code_required",desc:"An authorization code must be provided (as the `code` property on the request) to this flow."},authCodeOrNativeAccountRequired:{code:"auth_code_or_nativeAccountId_required",desc:"An authorization code or nativeAccountId must be provided to this flow."},spaCodeAndNativeAccountPresent:{code:"spa_code_and_nativeAccountId_present",desc:"Request cannot contain both spa code and native account id."},databaseUnavailable:{code:"database_unavailable",desc:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts."},unableToAcquireTokenFromNativePlatform:{code:"unable_to_acquire_token_from_native_platform",desc:"Unable to acquire token from native platform. For a list of possible reasons visit aka.ms/msaljs/browser-errors."},nativeHandshakeTimeout:{code:"native_handshake_timeout",desc:"Timed out while attempting to establish connection to browser extension"},nativeExtensionNotInstalled:{code:"native_extension_not_installed",desc:"Native extension is not installed. If you think this is a mistake call the initialize function."},nativeConnectionNotEstablished:{code:"native_connection_not_established",desc:"Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). For more please visit aka.ms/msaljs/browser-errors."},nativeBrokerCalledBeforeInitialize:{code:"native_broker_called_before_initialize",desc:"You must call and await the initialize function before attempting to call any other MSAL API when native brokering is enabled. For more please visit aka.ms/msaljs/browser-errors."},nativePromptNotSupported:{code:"native_prompt_not_supported",desc:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow."}},Ye=function(n){Do(e,n);function e(t,r){var a=n.call(this,t,r)||this;return Object.setPrototypeOf(a,e.prototype),a.name="BrowserAuthError",a}return e.createPkceNotGeneratedError=function(t){return new e(Fe.pkceNotGenerated.code,Fe.pkceNotGenerated.desc+" Detail:"+t)},e.createCryptoNotAvailableError=function(t){return new e(Fe.cryptoDoesNotExist.code,Fe.cryptoDoesNotExist.desc+" Detail:"+t)},e.createHttpMethodNotImplementedError=function(t){return new e(Fe.httpMethodNotImplementedError.code,Fe.httpMethodNotImplementedError.desc+" Given Method: "+t)},e.createEmptyNavigationUriError=function(){return new e(Fe.emptyNavigateUriError.code,Fe.emptyNavigateUriError.desc)},e.createEmptyHashError=function(t){return new e(Fe.hashEmptyError.code,Fe.hashEmptyError.desc+" Given Url: "+t)},e.createHashDoesNotContainStateError=function(){return new e(Fe.hashDoesNotContainStateError.code,Fe.hashDoesNotContainStateError.desc)},e.createHashDoesNotContainKnownPropertiesError=function(){return new e(Fe.hashDoesNotContainKnownPropertiesError.code,Fe.hashDoesNotContainKnownPropertiesError.desc)},e.createUnableToParseStateError=function(){return new e(Fe.unableToParseStateError.code,Fe.unableToParseStateError.desc)},e.createStateInteractionTypeMismatchError=function(){return new e(Fe.stateInteractionTypeMismatchError.code,Fe.stateInteractionTypeMismatchError.desc)},e.createInteractionInProgressError=function(){return new e(Fe.interactionInProgress.code,Fe.interactionInProgress.desc)},e.createPopupWindowError=function(t){var r=Fe.popupWindowError.desc;return r=rt.isEmpty(t)?r:r+" Details: "+t,new e(Fe.popupWindowError.code,r)},e.createEmptyWindowCreatedError=function(){return new e(Fe.emptyWindowError.code,Fe.emptyWindowError.desc)},e.createUserCancelledError=function(){return new e(Fe.userCancelledError.code,Fe.userCancelledError.desc)},e.createMonitorPopupTimeoutError=function(){return new e(Fe.monitorPopupTimeoutError.code,Fe.monitorPopupTimeoutError.desc)},e.createMonitorIframeTimeoutError=function(){return new e(Fe.monitorIframeTimeoutError.code,Fe.monitorIframeTimeoutError.desc)},e.createRedirectInIframeError=function(t){return new e(Fe.redirectInIframeError.code,Fe.redirectInIframeError.desc+" (window.parent !== window) => "+t)},e.createBlockReloadInHiddenIframeError=function(){return new e(Fe.blockTokenRequestsInHiddenIframeError.code,Fe.blockTokenRequestsInHiddenIframeError.desc)},e.createBlockAcquireTokenInPopupsError=function(){return new e(Fe.blockAcquireTokenInPopupsError.code,Fe.blockAcquireTokenInPopupsError.desc)},e.createIframeClosedPrematurelyError=function(){return new e(Fe.iframeClosedPrematurelyError.code,Fe.iframeClosedPrematurelyError.desc)},e.createSilentLogoutUnsupportedError=function(){return new e(Fe.silentLogoutUnsupportedError.code,Fe.silentLogoutUnsupportedError.desc)},e.createNoAccountError=function(){return new e(Fe.noAccountError.code,Fe.noAccountError.desc)},e.createSilentPromptValueError=function(t){return new e(Fe.silentPromptValueError.code,Fe.silentPromptValueError.desc+" Given value: "+t)},e.createUnableToParseTokenRequestCacheError=function(){return new e(Fe.unableToParseTokenRequestCacheError.code,Fe.unableToParseTokenRequestCacheError.desc)},e.createNoTokenRequestCacheError=function(){return new e(Fe.noTokenRequestCacheError.code,Fe.noTokenRequestCacheError.desc)},e.createAuthRequestNotSetError=function(){return new e(Fe.authRequestNotSet.code,Fe.authRequestNotSet.desc)},e.createNoCachedAuthorityError=function(){return new e(Fe.noCachedAuthorityError.code,Fe.noCachedAuthorityError.desc)},e.createInvalidCacheTypeError=function(){return new e(Fe.invalidCacheType.code,""+Fe.invalidCacheType.desc)},e.createNonBrowserEnvironmentError=function(){return new e(Fe.notInBrowserEnvironment.code,Fe.notInBrowserEnvironment.desc)},e.createDatabaseNotOpenError=function(){return new e(Fe.databaseNotOpen.code,Fe.databaseNotOpen.desc)},e.createNoNetworkConnectivityError=function(){return new e(Fe.noNetworkConnectivity.code,Fe.noNetworkConnectivity.desc)},e.createPostRequestFailedError=function(t,r){return new e(Fe.postRequestFailed.code,Fe.postRequestFailed.desc+" | Network client threw: "+t+" | Attempted to reach: "+r.split("?")[0])},e.createGetRequestFailedError=function(t,r){return new e(Fe.getRequestFailed.code,Fe.getRequestFailed.desc+" | Network client threw: "+t+" | Attempted to reach: "+r.split("?")[0])},e.createFailedToParseNetworkResponseError=function(t){return new e(Fe.failedToParseNetworkResponse.code,Fe.failedToParseNetworkResponse.desc+" | Attempted to reach: "+t.split("?")[0])},e.createUnableToLoadTokenError=function(t){return new e(Fe.unableToLoadTokenError.code,Fe.unableToLoadTokenError.desc+" | "+t)},e.createSigningKeyNotFoundInStorageError=function(t){return new e(Fe.signingKeyNotFoundInStorage.code,Fe.signingKeyNotFoundInStorage.desc+" | No match found for KeyId: "+t)},e.createAuthCodeRequiredError=function(){return new e(Fe.authCodeRequired.code,Fe.authCodeRequired.desc)},e.createAuthCodeOrNativeAccountIdRequiredError=function(){return new e(Fe.authCodeOrNativeAccountRequired.code,Fe.authCodeOrNativeAccountRequired.desc)},e.createSpaCodeAndNativeAccountIdPresentError=function(){return new e(Fe.spaCodeAndNativeAccountPresent.code,Fe.spaCodeAndNativeAccountPresent.desc)},e.createDatabaseUnavailableError=function(){return new e(Fe.databaseUnavailable.code,Fe.databaseUnavailable.desc)},e.createUnableToAcquireTokenFromNativePlatformError=function(){return new e(Fe.unableToAcquireTokenFromNativePlatform.code,Fe.unableToAcquireTokenFromNativePlatform.desc)},e.createNativeHandshakeTimeoutError=function(){return new e(Fe.nativeHandshakeTimeout.code,Fe.nativeHandshakeTimeout.desc)},e.createNativeExtensionNotInstalledError=function(){return new e(Fe.nativeExtensionNotInstalled.code,Fe.nativeExtensionNotInstalled.desc)},e.createNativeConnectionNotEstablishedError=function(){return new e(Fe.nativeConnectionNotEstablished.code,Fe.nativeConnectionNotEstablished.desc)},e.createNativeBrokerCalledBeforeInitialize=function(){return new e(Fe.nativeBrokerCalledBeforeInitialize.code,Fe.nativeBrokerCalledBeforeInitialize.desc)},e.createNativePromptParameterNotSupportedError=function(){return new e(Fe.nativePromptNotSupported.code,Fe.nativePromptNotSupported.desc)},e}(Et);/*! @azure/msal-browser v2.38.2 2023-08-24 */var _l={INTERACTION_IN_PROGRESS_VALUE:"interaction_in_progress",INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",DEFAULT_POLL_INTERVAL_MS:30,MSAL_SKU:"msal.js.browser"},Yy={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},Ic;(function(n){n.HandshakeRequest="Handshake",n.HandshakeResponse="HandshakeResponse",n.GetToken="GetToken",n.Response="Response"})(Ic||(Ic={}));var Mi;(function(n){n.LocalStorage="localStorage",n.SessionStorage="sessionStorage",n.MemoryStorage="memoryStorage"})(Mi||(Mi={}));var hu;(function(n){n.GET="GET",n.POST="POST"})(hu||(hu={}));var Dn;(function(n){n.AUTHORITY="authority",n.ACQUIRE_TOKEN_ACCOUNT="acquireToken.account",n.SESSION_STATE="session.state",n.REQUEST_STATE="request.state",n.NONCE_IDTOKEN="nonce.id_token",n.ORIGIN_URI="request.origin",n.RENEW_STATUS="token.renew.status",n.URL_HASH="urlHash",n.REQUEST_PARAMS="request.params",n.SCOPES="scopes",n.INTERACTION_STATUS_KEY="interaction.status",n.CCS_CREDENTIAL="ccs.credential",n.CORRELATION_ID="request.correlationId",n.NATIVE_REQUEST="request.native",n.REDIRECT_CONTEXT="request.redirect.context"})(Dn||(Dn={}));var pu;(function(n){n.ACCOUNT_KEYS="msal.account.keys",n.TOKEN_KEYS="msal.token.keys"})(pu||(pu={}));var Lv;(function(n){n.WRAPPER_SKU="wrapper.sku",n.WRAPPER_VER="wrapper.version"})(Lv||(Lv={}));var _r;(function(n){n[n.acquireTokenRedirect=861]="acquireTokenRedirect",n[n.acquireTokenPopup=862]="acquireTokenPopup",n[n.ssoSilent=863]="ssoSilent",n[n.acquireTokenSilent_authCode=864]="acquireTokenSilent_authCode",n[n.handleRedirectPromise=865]="handleRedirectPromise",n[n.acquireTokenByCode=866]="acquireTokenByCode",n[n.acquireTokenSilent_silentFlow=61]="acquireTokenSilent_silentFlow",n[n.logout=961]="logout",n[n.logoutPopup=962]="logoutPopup"})(_r||(_r={}));var pt;(function(n){n.Redirect="redirect",n.Popup="popup",n.Silent="silent",n.None="none"})(pt||(pt={}));var WM;(function(n){n.Startup="startup",n.Login="login",n.Logout="logout",n.AcquireToken="acquireToken",n.SsoSilent="ssoSilent",n.HandleRedirect="handleRedirect",n.None="none"})(WM||(WM={}));var YM={scopes:Fy},Uv="jwk",QM;(function(n){n.React="@azure/msal-react",n.Angular="@azure/msal-angular"})(QM||(QM={}));var o1="msal.db",JB=1,ZB=o1+".keys",Va;(function(n){n[n.Default=0]="Default",n[n.AccessToken=1]="AccessToken",n[n.AccessTokenAndRefreshToken=2]="AccessTokenAndRefreshToken",n[n.RefreshToken=3]="RefreshToken",n[n.RefreshTokenAndNetwork=4]="RefreshTokenAndNetwork",n[n.Skip=5]="Skip"})(Va||(Va={}));/*! @azure/msal-browser v2.38.2 2023-08-24 */var Ka={redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},storageNotSupportedError:{code:"storage_not_supported",desc:"Given storage configuration option was not supported."},noRedirectCallbacksSet:{code:"no_redirect_callbacks",desc:"No redirect callbacks have been set. Please call setRedirectCallbacks() with the appropriate function arguments before continuing. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics."},invalidCallbackObject:{code:"invalid_callback_object",desc:"The object passed for the callback was invalid. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics."},stubPcaInstanceCalled:{code:"stubbed_public_client_application_called",desc:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors"},inMemRedirectUnavailable:{code:"in_mem_redirect_unavailable",desc:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."},entropyNotProvided:{code:"entropy_not_provided",desc:"The available browser crypto interface requires entropy set via system.cryptoOptions.entropy configuration option."}},$E=function(n){Do(e,n);function e(t,r){var a=n.call(this,t,r)||this;return a.name="BrowserConfigurationAuthError",Object.setPrototypeOf(a,e.prototype),a}return e.createRedirectUriEmptyError=function(){return new e(Ka.redirectUriNotSet.code,Ka.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(Ka.postLogoutUriNotSet.code,Ka.postLogoutUriNotSet.desc)},e.createStorageNotSupportedError=function(t){return new e(Ka.storageNotSupportedError.code,Ka.storageNotSupportedError.desc+" Given Location: "+t)},e.createRedirectCallbacksNotSetError=function(){return new e(Ka.noRedirectCallbacksSet.code,Ka.noRedirectCallbacksSet.desc)},e.createStubPcaInstanceCalledError=function(){return new e(Ka.stubPcaInstanceCalled.code,Ka.stubPcaInstanceCalled.desc)},e.createInMemoryRedirectUnavailableError=function(){return new e(Ka.inMemRedirectUnavailable.code,Ka.inMemRedirectUnavailable.desc)},e.createEntropyNotProvided=function(){return new e(Ka.entropyNotProvided.code,Ka.entropyNotProvided.desc)},e}(Et);/*! @azure/msal-browser v2.38.2 2023-08-24 */var XM=function(){function n(e){this.validateWindowStorage(e),this.windowStorage=window[e]}return n.prototype.validateWindowStorage=function(e){if(e!==Mi.LocalStorage&&e!==Mi.SessionStorage)throw $E.createStorageNotSupportedError(e);var t=!!window[e];if(!t)throw $E.createStorageNotSupportedError(e)},n.prototype.getItem=function(e){return this.windowStorage.getItem(e)},n.prototype.setItem=function(e,t){this.windowStorage.setItem(e,t)},n.prototype.removeItem=function(e){this.windowStorage.removeItem(e)},n.prototype.getKeys=function(){return Object.keys(this.windowStorage)},n.prototype.containsKey=function(e){return this.windowStorage.hasOwnProperty(e)},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var a1=function(){function n(){this.cache=new Map}return n.prototype.getItem=function(e){return this.cache.get(e)||null},n.prototype.setItem=function(e,t){this.cache.set(e,t)},n.prototype.removeItem=function(e){this.cache.delete(e)},n.prototype.getKeys=function(){var e=[];return this.cache.forEach(function(t,r){e.push(r)}),e},n.prototype.containsKey=function(e){return this.cache.has(e)},n.prototype.clear=function(){this.cache.clear()},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var JM=function(){function n(){}return n.extractBrowserRequestState=function(e,t){if(rt.isEmpty(t))return null;try{var r=xc.parseRequestState(e,t);return r.libraryState.meta}catch(a){throw nt.createInvalidStateError(t,a)}},n.parseServerResponseFromHash=function(e){if(!e)return{};var t=new xn(e);return xn.getDeserializedHash(t.getHash())},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var s1=function(n){Do(e,n);function e(t,r,a,l){var u=n.call(this,t,a,l)||this;return u.COOKIE_LIFE_MULTIPLIER=24*60*60*1e3,u.cacheConfig=r,u.logger=l,u.internalStorage=new a1,u.browserStorage=u.setupBrowserStorage(u.cacheConfig.cacheLocation),u.temporaryCacheStorage=u.setupTemporaryCacheStorage(u.cacheConfig.temporaryCacheLocation,u.cacheConfig.cacheLocation),r.cacheMigrationEnabled&&(u.migrateCacheEntries(),u.createKeyMaps()),u}return e.prototype.setupBrowserStorage=function(t){switch(t){case Mi.LocalStorage:case Mi.SessionStorage:try{return new XM(t)}catch(r){this.logger.verbose(r);break}}return this.cacheConfig.cacheLocation=Mi.MemoryStorage,new a1},e.prototype.setupTemporaryCacheStorage=function(t,r){switch(r){case Mi.LocalStorage:case Mi.SessionStorage:try{return new XM(t||Mi.SessionStorage)}catch(a){return this.logger.verbose(a),this.internalStorage}case Mi.MemoryStorage:default:return this.internalStorage}},e.prototype.migrateCacheEntries=function(){var t=this,r=W.CACHE_PREFIX+"."+Vi.ID_TOKEN,a=W.CACHE_PREFIX+"."+Vi.CLIENT_INFO,l=W.CACHE_PREFIX+"."+Vi.ERROR,u=W.CACHE_PREFIX+"."+Vi.ERROR_DESC,f=this.browserStorage.getItem(r),p=this.browserStorage.getItem(a),m=this.browserStorage.getItem(l),y=this.browserStorage.getItem(u),E=[f,p,m,y],S=[Vi.ID_TOKEN,Vi.CLIENT_INFO,Vi.ERROR,Vi.ERROR_DESC];S.forEach(function(T,A){return t.migrateCacheEntry(T,E[A])})},e.prototype.migrateCacheEntry=function(t,r){r&&this.setTemporaryCache(t,r,!0)},e.prototype.createKeyMaps=function(){var t=this;this.logger.trace("BrowserCacheManager - createKeyMaps called.");var r=this.getItem(pu.ACCOUNT_KEYS),a=this.getItem(pu.TOKEN_KEYS+"."+this.clientId);if(r&&a){this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration.");return}var l=this.browserStorage.getKeys();l.forEach(function(u){if(t.isCredentialKey(u)){var f=t.getItem(u);if(f){var p=t.validateAndParseJson(f);if(p&&p.hasOwnProperty("credentialType"))switch(p.credentialType){case xt.ID_TOKEN:if(xh.isIdTokenEntity(p)){t.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - idToken with key: "+u+" found, saving key to token key map");var m=qa.toObject(new xh,p),y=t.updateCredentialCacheKey(u,m);t.addTokenKey(y,xt.ID_TOKEN);return}else t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed idToken validation on key: "+u);break;case xt.ACCESS_TOKEN:case xt.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(Ih.isAccessTokenEntity(p)){t.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - accessToken with key: "+u+" found, saving key to token key map");var E=qa.toObject(new Ih,p),y=t.updateCredentialCacheKey(u,E);t.addTokenKey(y,xt.ACCESS_TOKEN);return}else t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed accessToken validation on key: "+u);break;case xt.REFRESH_TOKEN:if(Mv.isRefreshTokenEntity(p)){t.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - refreshToken with key: "+u+" found, saving key to token key map");var S=qa.toObject(new Mv,p),y=t.updateCredentialCacheKey(u,S);t.addTokenKey(y,xt.REFRESH_TOKEN);return}else t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: "+u);break}}}if(t.isAccountKey(u)){var f=t.getItem(u);if(f){var T=t.validateAndParseJson(f);T&&Uo.isAccountEntity(T)&&(t.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - account with key: "+u+" found, saving key to account key map"),t.addAccountKeyToMap(u))}}})},e.prototype.validateAndParseJson=function(t){try{var r=JSON.parse(t);return r&&typeof r=="object"?r:null}catch{return null}},e.prototype.getItem=function(t){return this.browserStorage.getItem(t)},e.prototype.setItem=function(t,r){this.browserStorage.setItem(t,r)},e.prototype.getAccount=function(t){this.logger.trace("BrowserCacheManager.getAccount called");var r=this.getItem(t);if(!r)return this.removeAccountKeyFromMap(t),null;var a=this.validateAndParseJson(r);return!a||!Uo.isAccountEntity(a)?(this.removeAccountKeyFromMap(t),null):qa.toObject(new Uo,a)},e.prototype.setAccount=function(t){this.logger.trace("BrowserCacheManager.setAccount called");var r=t.generateAccountKey();this.setItem(r,JSON.stringify(t)),this.addAccountKeyToMap(r)},e.prototype.getAccountKeys=function(){this.logger.trace("BrowserCacheManager.getAccountKeys called");var t=this.getItem(pu.ACCOUNT_KEYS);return t?JSON.parse(t):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])},e.prototype.addAccountKeyToMap=function(t){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii("BrowserCacheManager.addAccountKeyToMap called with key: "+t);var r=this.getAccountKeys();r.indexOf(t)===-1?(r.push(t),this.setItem(pu.ACCOUNT_KEYS,JSON.stringify(r)),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")},e.prototype.removeAccountKeyFromMap=function(t){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii("BrowserCacheManager.removeAccountKeyFromMap called with key: "+t);var r=this.getAccountKeys(),a=r.indexOf(t);a>-1?(r.splice(a,1),this.setItem(pu.ACCOUNT_KEYS,JSON.stringify(r)),this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")):this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map")},e.prototype.removeAccount=function(t){return Ie(this,void 0,void 0,function(){return Oe(this,function(r){return n.prototype.removeAccount.call(this,t),this.removeAccountKeyFromMap(t),[2]})})},e.prototype.removeIdToken=function(t){n.prototype.removeIdToken.call(this,t),this.removeTokenKey(t,xt.ID_TOKEN)},e.prototype.removeAccessToken=function(t){return Ie(this,void 0,void 0,function(){return Oe(this,function(r){return n.prototype.removeAccessToken.call(this,t),this.removeTokenKey(t,xt.ACCESS_TOKEN),[2]})})},e.prototype.removeRefreshToken=function(t){n.prototype.removeRefreshToken.call(this,t),this.removeTokenKey(t,xt.REFRESH_TOKEN)},e.prototype.getTokenKeys=function(){this.logger.trace("BrowserCacheManager.getTokenKeys called");var t=this.getItem(pu.TOKEN_KEYS+"."+this.clientId);if(t){var r=this.validateAndParseJson(t);if(r&&r.hasOwnProperty("idToken")&&r.hasOwnProperty("accessToken")&&r.hasOwnProperty("refreshToken"))return r;this.logger.error("BrowserCacheManager.getTokenKeys - Token keys found but in an unknown format. Returning empty key map.")}else this.logger.verbose("BrowserCacheManager.getTokenKeys - No token keys found");return{idToken:[],accessToken:[],refreshToken:[]}},e.prototype.addTokenKey=function(t,r){this.logger.trace("BrowserCacheManager addTokenKey called");var a=this.getTokenKeys();switch(r){case xt.ID_TOKEN:a.idToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),a.idToken.push(t));break;case xt.ACCESS_TOKEN:a.accessToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),a.accessToken.push(t));break;case xt.REFRESH_TOKEN:a.refreshToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),a.refreshToken.push(t));break;default:this.logger.error("BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: "+r),nt.createUnexpectedCredentialTypeError()}this.setItem(pu.TOKEN_KEYS+"."+this.clientId,JSON.stringify(a))},e.prototype.removeTokenKey=function(t,r){this.logger.trace("BrowserCacheManager removeTokenKey called");var a=this.getTokenKeys();switch(r){case xt.ID_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: "+t+" from map");var l=a.idToken.indexOf(t);l>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),a.idToken.splice(l,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case xt.ACCESS_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: "+t+" from map");var u=a.accessToken.indexOf(t);u>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),a.accessToken.splice(u,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case xt.REFRESH_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: "+t+" from map");var f=a.refreshToken.indexOf(t);f>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),a.refreshToken.splice(f,1)):this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");break;default:this.logger.error("BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: "+r),nt.createUnexpectedCredentialTypeError()}this.setItem(pu.TOKEN_KEYS+"."+this.clientId,JSON.stringify(a))},e.prototype.getIdTokenCredential=function(t){var r=this.getItem(t);if(!r)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(t,xt.ID_TOKEN),null;var a=this.validateAndParseJson(r);return!a||!xh.isIdTokenEntity(a)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(t,xt.ID_TOKEN),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),qa.toObject(new xh,a))},e.prototype.setIdTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var r=t.generateCredentialKey();this.setItem(r,JSON.stringify(t)),this.addTokenKey(r,xt.ID_TOKEN)},e.prototype.getAccessTokenCredential=function(t){var r=this.getItem(t);if(!r)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(t,xt.ACCESS_TOKEN),null;var a=this.validateAndParseJson(r);return!a||!Ih.isAccessTokenEntity(a)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(t,xt.ACCESS_TOKEN),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),qa.toObject(new Ih,a))},e.prototype.setAccessTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var r=t.generateCredentialKey();this.setItem(r,JSON.stringify(t)),this.addTokenKey(r,xt.ACCESS_TOKEN)},e.prototype.getRefreshTokenCredential=function(t){var r=this.getItem(t);if(!r)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(t,xt.REFRESH_TOKEN),null;var a=this.validateAndParseJson(r);return!a||!Mv.isRefreshTokenEntity(a)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(t,xt.REFRESH_TOKEN),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),qa.toObject(new Mv,a))},e.prototype.setRefreshTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var r=t.generateCredentialKey();this.setItem(r,JSON.stringify(t)),this.addTokenKey(r,xt.REFRESH_TOKEN)},e.prototype.getAppMetadata=function(t){var r=this.getItem(t);if(!r)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;var a=this.validateAndParseJson(r);return!a||!r1.isAppMetadataEntity(t,a)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),qa.toObject(new r1,a))},e.prototype.setAppMetadata=function(t){this.logger.trace("BrowserCacheManager.setAppMetadata called");var r=t.generateAppMetadataKey();this.setItem(r,JSON.stringify(t))},e.prototype.getServerTelemetry=function(t){var r=this.getItem(t);if(!r)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;var a=this.validateAndParseJson(r);return!a||!UE.isServerTelemetryEntity(t,a)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),qa.toObject(new UE,a))},e.prototype.setServerTelemetry=function(t,r){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(t,JSON.stringify(r))},e.prototype.getAuthorityMetadata=function(t){var r=this.internalStorage.getItem(t);if(!r)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;var a=this.validateAndParseJson(r);return a&&i1.isAuthorityMetadataEntity(t,a)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),qa.toObject(new i1,a)):null},e.prototype.getAuthorityMetadataKeys=function(){var t=this,r=this.internalStorage.getKeys();return r.filter(function(a){return t.isAuthorityMetadata(a)})},e.prototype.setWrapperMetadata=function(t,r){this.internalStorage.setItem(Lv.WRAPPER_SKU,t),this.internalStorage.setItem(Lv.WRAPPER_VER,r)},e.prototype.getWrapperMetadata=function(){var t=this.internalStorage.getItem(Lv.WRAPPER_SKU)||W.EMPTY_STRING,r=this.internalStorage.getItem(Lv.WRAPPER_VER)||W.EMPTY_STRING;return[t,r]},e.prototype.setAuthorityMetadata=function(t,r){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(t,JSON.stringify(r))},e.prototype.getActiveAccount=function(){var t=this.generateCacheKey(Vi.ACTIVE_ACCOUNT_FILTERS),r=this.getItem(t);if(!r){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");var a=this.generateCacheKey(Vi.ACTIVE_ACCOUNT),l=this.getItem(a);if(!l)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;var u=this.getAccountInfoByFilter({localAccountId:l})[0]||null;return u?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(u),u):null}var f=this.validateAndParseJson(r);return f?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoByFilter({homeAccountId:f.homeAccountId,localAccountId:f.localAccountId})[0]||null):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)},e.prototype.setActiveAccount=function(t){var r=this.generateCacheKey(Vi.ACTIVE_ACCOUNT_FILTERS),a=this.generateCacheKey(Vi.ACTIVE_ACCOUNT);if(t){this.logger.verbose("setActiveAccount: Active account set");var l={homeAccountId:t.homeAccountId,localAccountId:t.localAccountId};this.browserStorage.setItem(r,JSON.stringify(l)),this.browserStorage.setItem(a,t.localAccountId)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(r),this.browserStorage.removeItem(a)},e.prototype.getAccountInfoByFilter=function(t){var r=this.getAllAccounts();return this.logger.trace("BrowserCacheManager.getAccountInfoByFilter: total "+r.length+" accounts found"),r.filter(function(a){return!(t.username&&t.username.toLowerCase()!==a.username.toLowerCase()||t.homeAccountId&&t.homeAccountId!==a.homeAccountId||t.localAccountId&&t.localAccountId!==a.localAccountId||t.tenantId&&t.tenantId!==a.tenantId||t.environment&&t.environment!==a.environment)})},e.prototype.getAccountInfoByHints=function(t,r){var a=this.getAllAccounts().filter(function(l){if(r){var u=l.idTokenClaims&&l.idTokenClaims.sid;return r===u}return t?t===l.username:!1});if(a.length===1)return a[0];if(a.length>1)throw nt.createMultipleMatchingAccountsInCacheError();return null},e.prototype.getThrottlingCache=function(t){var r=this.getItem(t);if(!r)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;var a=this.validateAndParseJson(r);return!a||!qM.isThrottlingEntity(t,a)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),qa.toObject(new qM,a))},e.prototype.setThrottlingCache=function(t,r){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(t,JSON.stringify(r))},e.prototype.getTemporaryCache=function(t,r){var a=r?this.generateCacheKey(t):t;if(this.cacheConfig.storeAuthStateInCookie){var l=this.getItemCookie(a);if(l)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),l}var u=this.temporaryCacheStorage.getItem(a);if(!u){if(this.cacheConfig.cacheLocation===Mi.LocalStorage){var f=this.browserStorage.getItem(a);if(f)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),f}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),u},e.prototype.setTemporaryCache=function(t,r,a){var l=a?this.generateCacheKey(t):t;this.temporaryCacheStorage.setItem(l,r),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(l,r))},e.prototype.removeItem=function(t){this.browserStorage.removeItem(t),this.temporaryCacheStorage.removeItem(t),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(t))},e.prototype.containsKey=function(t){return this.browserStorage.containsKey(t)||this.temporaryCacheStorage.containsKey(t)},e.prototype.getKeys=function(){return YR(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},e.prototype.clear=function(){return Ie(this,void 0,void 0,function(){var t=this;return Oe(this,function(r){switch(r.label){case 0:return[4,this.removeAllAccounts()];case 1:return r.sent(),this.removeAppMetadata(),this.getKeys().forEach(function(a){(t.browserStorage.containsKey(a)||t.temporaryCacheStorage.containsKey(a))&&(a.indexOf(W.CACHE_PREFIX)!==-1||a.indexOf(t.clientId)!==-1)&&t.removeItem(a)}),this.internalStorage.clear(),[2]}})})},e.prototype.clearTokensAndKeysWithClaims=function(){return Ie(this,void 0,void 0,function(){var t,r,a=this;return Oe(this,function(l){switch(l.label){case 0:return this.logger.trace("BrowserCacheManager.clearTokensAndKeysWithClaims called"),t=this.getTokenKeys(),r=[],t.accessToken.forEach(function(u){var f=a.getAccessTokenCredential(u);f!=null&&f.requestedClaimsHash&&u.includes(f.requestedClaimsHash.toLowerCase())&&r.push(a.removeAccessToken(u))}),[4,Promise.all(r)];case 1:return l.sent(),r.length>0&&this.logger.warning(r.length+" access tokens with claims in the cache keys have been removed from the cache."),[2]}})})},e.prototype.setItemCookie=function(t,r,a){var l=encodeURIComponent(t)+"="+encodeURIComponent(r)+";path=/;SameSite=Lax;";if(a){var u=this.getCookieExpirationTime(a);l+="expires="+u+";"}this.cacheConfig.secureCookies&&(l+="Secure;"),document.cookie=l},e.prototype.getItemCookie=function(t){for(var r=encodeURIComponent(t)+"=",a=document.cookie.split(";"),l=0;l<a.length;l++){for(var u=a[l];u.charAt(0)===" ";)u=u.substring(1);if(u.indexOf(r)===0)return decodeURIComponent(u.substring(r.length,u.length))}return W.EMPTY_STRING},e.prototype.clearMsalCookies=function(){var t=this,r=W.CACHE_PREFIX+"."+this.clientId,a=document.cookie.split(";");a.forEach(function(l){for(;l.charAt(0)===" ";)l=l.substring(1);if(l.indexOf(r)===0){var u=l.split("=")[0];t.clearItemCookie(u)}})},e.prototype.clearItemCookie=function(t){this.setItemCookie(t,W.EMPTY_STRING,-1)},e.prototype.getCookieExpirationTime=function(t){var r=new Date,a=new Date(r.getTime()+t*this.COOKIE_LIFE_MULTIPLIER);return a.toUTCString()},e.prototype.getCache=function(){return this.browserStorage},e.prototype.setCache=function(){},e.prototype.generateCacheKey=function(t){var r=this.validateAndParseJson(t);return r?JSON.stringify(t):rt.startsWith(t,W.CACHE_PREFIX)||rt.startsWith(t,Vi.ADAL_ID_TOKEN)?t:W.CACHE_PREFIX+"."+this.clientId+"."+t},e.prototype.generateAuthorityKey=function(t){var r=xc.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(Dn.AUTHORITY+"."+r)},e.prototype.generateNonceKey=function(t){var r=xc.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(Dn.NONCE_IDTOKEN+"."+r)},e.prototype.generateStateKey=function(t){var r=xc.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(Dn.REQUEST_STATE+"."+r)},e.prototype.getCachedAuthority=function(t){var r=this.generateStateKey(t),a=this.getTemporaryCache(r);if(!a)return null;var l=this.generateAuthorityKey(a);return this.getTemporaryCache(l)},e.prototype.updateCacheEntries=function(t,r,a,l,u){this.logger.trace("BrowserCacheManager.updateCacheEntries called");var f=this.generateStateKey(t);this.setTemporaryCache(f,t,!1);var p=this.generateNonceKey(t);this.setTemporaryCache(p,r,!1);var m=this.generateAuthorityKey(t);if(this.setTemporaryCache(m,a,!1),u){var y={credential:u.homeAccountId,type:_s.HOME_ACCOUNT_ID};this.setTemporaryCache(Dn.CCS_CREDENTIAL,JSON.stringify(y),!0)}else if(!rt.isEmpty(l)){var y={credential:l,type:_s.UPN};this.setTemporaryCache(Dn.CCS_CREDENTIAL,JSON.stringify(y),!0)}},e.prototype.resetRequestCache=function(t){var r=this;this.logger.trace("BrowserCacheManager.resetRequestCache called"),rt.isEmpty(t)||this.getKeys().forEach(function(a){a.indexOf(t)!==-1&&r.removeItem(a)}),t&&(this.removeItem(this.generateStateKey(t)),this.removeItem(this.generateNonceKey(t)),this.removeItem(this.generateAuthorityKey(t))),this.removeItem(this.generateCacheKey(Dn.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(Dn.ORIGIN_URI)),this.removeItem(this.generateCacheKey(Dn.URL_HASH)),this.removeItem(this.generateCacheKey(Dn.CORRELATION_ID)),this.removeItem(this.generateCacheKey(Dn.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(Dn.NATIVE_REQUEST)),this.setInteractionInProgress(!1)},e.prototype.cleanRequestByState=function(t){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),t){var r=this.generateStateKey(t),a=this.temporaryCacheStorage.getItem(r);this.logger.infoPii("BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: "+a),this.resetRequestCache(a||W.EMPTY_STRING)}this.clearMsalCookies()},e.prototype.cleanRequestByInteractionType=function(t){var r=this;this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.getKeys().forEach(function(a){if(a.indexOf(Dn.REQUEST_STATE)!==-1){var l=r.temporaryCacheStorage.getItem(a);if(l){var u=JM.extractBrowserRequestState(r.cryptoImpl,l);u&&u.interactionType===t&&(r.logger.infoPii("BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: "+l),r.resetRequestCache(l))}}}),this.clearMsalCookies(),this.setInteractionInProgress(!1)},e.prototype.cacheCodeRequest=function(t,r){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");var a=r.base64Encode(JSON.stringify(t));this.setTemporaryCache(Dn.REQUEST_PARAMS,a,!0)},e.prototype.getCachedRequest=function(t,r){this.logger.trace("BrowserCacheManager.getCachedRequest called");var a=this.getTemporaryCache(Dn.REQUEST_PARAMS,!0);if(!a)throw Ye.createNoTokenRequestCacheError();var l=this.validateAndParseJson(r.base64Decode(a));if(!l)throw Ye.createUnableToParseTokenRequestCacheError();if(this.removeItem(this.generateCacheKey(Dn.REQUEST_PARAMS)),rt.isEmpty(l.authority)){var u=this.generateAuthorityKey(t),f=this.getTemporaryCache(u);if(!f)throw Ye.createNoCachedAuthorityError();l.authority=f}return l},e.prototype.getCachedNativeRequest=function(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");var t=this.getTemporaryCache(Dn.NATIVE_REQUEST,!0);if(!t)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;var r=this.validateAndParseJson(t);return r||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)},e.prototype.isInteractionInProgress=function(t){var r=this.getInteractionInProgress();return t?r===this.clientId:!!r},e.prototype.getInteractionInProgress=function(){var t=W.CACHE_PREFIX+"."+Dn.INTERACTION_STATUS_KEY;return this.getTemporaryCache(t,!1)},e.prototype.setInteractionInProgress=function(t){var r=W.CACHE_PREFIX+"."+Dn.INTERACTION_STATUS_KEY;if(t){if(this.getInteractionInProgress())throw Ye.createInteractionInProgressError();this.setTemporaryCache(r,this.clientId,!1)}else!t&&this.getInteractionInProgress()===this.clientId&&this.removeItem(r)},e.prototype.getLegacyLoginHint=function(){var t=this.getTemporaryCache(Vi.ADAL_ID_TOKEN);t&&(this.browserStorage.removeItem(Vi.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));var r=this.getTemporaryCache(Vi.ID_TOKEN,!0);r&&(this.removeItem(this.generateCacheKey(Vi.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));var a=r||t;if(a){var l=new fu(a,this.cryptoImpl);if(l.claims&&l.claims.preferred_username)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),l.claims.preferred_username;if(l.claims&&l.claims.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),l.claims.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null},e.prototype.updateCredentialCacheKey=function(t,r){var a=r.generateCredentialKey();if(t!==a){var l=this.getItem(t);if(l)return this.removeItem(t),this.setItem(a,l),this.logger.verbose("Updated an outdated "+r.credentialType+" cache key"),a;this.logger.error("Attempted to update an outdated "+r.credentialType+" cache key but no item matching the outdated key was found in storage")}return t},e.prototype.getRedirectRequestContext=function(){return this.getTemporaryCache(Dn.REDIRECT_CONTEXT,!0)},e.prototype.setRedirectRequestContext=function(t){this.setTemporaryCache(Dn.REDIRECT_CONTEXT,t,!0)},e}(qa),e5=function(n,e){var t={cacheLocation:Mi.MemoryStorage,temporaryCacheLocation:Mi.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};return new s1(n,t,IE,e)};/*! @azure/msal-browser v2.38.2 2023-08-24 */var l1="@azure/msal-browser",Qy="2.38.2";/*! @azure/msal-browser v2.38.2 2023-08-24 */var t5=function(){function n(){}return n.prototype.sendGetRequestAsync=function(e,t){return Ie(this,void 0,void 0,function(){var r,a,l;return Oe(this,function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),[4,fetch(e,{method:hu.GET,headers:this.getFetchHeaders(t)})];case 1:return r=u.sent(),[3,3];case 2:throw a=u.sent(),window.navigator.onLine?Ye.createGetRequestFailedError(a,e):Ye.createNoNetworkConnectivityError();case 3:return u.trys.push([3,5,,6]),l={headers:this.getHeaderDict(r.headers)},[4,r.json()];case 4:return[2,(l.body=u.sent(),l.status=r.status,l)];case 5:throw u.sent(),Ye.createFailedToParseNetworkResponseError(e);case 6:return[2]}})})},n.prototype.sendPostRequestAsync=function(e,t){return Ie(this,void 0,void 0,function(){var r,a,l,u;return Oe(this,function(f){switch(f.label){case 0:r=t&&t.body||W.EMPTY_STRING,f.label=1;case 1:return f.trys.push([1,3,,4]),[4,fetch(e,{method:hu.POST,headers:this.getFetchHeaders(t),body:r})];case 2:return a=f.sent(),[3,4];case 3:throw l=f.sent(),window.navigator.onLine?Ye.createPostRequestFailedError(l,e):Ye.createNoNetworkConnectivityError();case 4:return f.trys.push([4,6,,7]),u={headers:this.getHeaderDict(a.headers)},[4,a.json()];case 5:return[2,(u.body=f.sent(),u.status=a.status,u)];case 6:throw f.sent(),Ye.createFailedToParseNetworkResponseError(e);case 7:return[2]}})})},n.prototype.getFetchHeaders=function(e){var t=new Headers;if(!(e&&e.headers))return t;var r=e.headers;return Object.keys(r).forEach(function(a){t.append(a,r[a])}),t},n.prototype.getHeaderDict=function(e){var t={};return e.forEach(function(r,a){t[a]=r}),t},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var n5=function(){function n(){}return n.prototype.sendGetRequestAsync=function(e,t){return Ie(this,void 0,void 0,function(){return Oe(this,function(r){return[2,this.sendRequestAsync(e,hu.GET,t)]})})},n.prototype.sendPostRequestAsync=function(e,t){return Ie(this,void 0,void 0,function(){return Oe(this,function(r){return[2,this.sendRequestAsync(e,hu.POST,t)]})})},n.prototype.sendRequestAsync=function(e,t,r){var a=this;return new Promise(function(l,u){var f=new XMLHttpRequest;if(f.open(t,e,!0),a.setXhrHeaders(f,r),f.onload=function(){(f.status<200||f.status>=300)&&(t===hu.POST?u(Ye.createPostRequestFailedError("Failed with status "+f.status,e)):u(Ye.createGetRequestFailedError("Failed with status "+f.status,e)));try{var p=JSON.parse(f.responseText),m={headers:a.getHeaderDict(f),body:p,status:f.status};l(m)}catch{u(Ye.createFailedToParseNetworkResponseError(e))}},f.onerror=function(){window.navigator.onLine?t===hu.POST?u(Ye.createPostRequestFailedError("Failed with status "+f.status,e)):u(Ye.createGetRequestFailedError("Failed with status "+f.status,e)):u(Ye.createNoNetworkConnectivityError())},t===hu.POST&&r&&r.body)f.send(r.body);else if(t===hu.GET)f.send();else throw Ye.createHttpMethodNotImplementedError(t)})},n.prototype.setXhrHeaders=function(e,t){if(t&&t.headers){var r=t.headers;Object.keys(r).forEach(function(a){e.setRequestHeader(a,r[a])})}},n.prototype.getHeaderDict=function(e){var t=e.getAllResponseHeaders(),r=t.trim().split(/[\r\n]+/),a={};return r.forEach(function(l){var u=l.split(": "),f=u.shift(),p=u.join(": ");f&&p&&(a[f]=p)}),a},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var ri=function(){function n(){}return n.clearHash=function(e){e.location.hash=W.EMPTY_STRING,typeof e.history.replaceState=="function"&&e.history.replaceState(null,W.EMPTY_STRING,""+e.location.origin+e.location.pathname+e.location.search)},n.replaceHash=function(e){var t=e.split("#");t.shift(),window.location.hash=t.length>0?t.join("#"):W.EMPTY_STRING},n.isInIframe=function(){return window.parent!==window},n.isInPopup=function(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&typeof window.name=="string"&&window.name.indexOf(_l.POPUP_NAME_PREFIX+".")===0},n.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},n.getHomepage=function(){var e=new xn(window.location.href),t=e.getUrlComponents();return t.Protocol+"//"+t.HostNameAndPort+"/"},n.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new t5:new n5},n.blockReloadInHiddenIframes=function(){var e=xn.hashContainsKnownProperties(window.location.hash);if(e&&n.isInIframe())throw Ye.createBlockReloadInHiddenIframeError()},n.blockRedirectInIframe=function(e,t){var r=n.isInIframe();if(e===pt.Redirect&&r&&!t)throw Ye.createRedirectInIframeError(r)},n.blockAcquireTokenInPopups=function(){if(n.isInPopup())throw Ye.createBlockAcquireTokenInPopupsError()},n.blockNonBrowserEnvironment=function(e){if(!e)throw Ye.createNonBrowserEnvironmentError()},n.blockNativeBrokerCalledBeforeInitialized=function(e,t){if(e&&!t)throw Ye.createNativeBrokerCalledBeforeInitialize()},n.detectIEOrEdge=function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),r=e.indexOf("Trident/"),a=e.indexOf("Edge/"),l=t>0||r>0,u=a>0;return l||u},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var ZM=function(){function n(e,t,r,a,l,u,f,p,m){this.config=e,this.browserStorage=t,this.browserCrypto=r,this.networkClient=this.config.system.networkClient,this.eventHandler=l,this.navigationClient=u,this.nativeMessageHandler=p,this.correlationId=m||this.browserCrypto.createNewGuid(),this.logger=a.clone(_l.MSAL_SKU,Qy,this.correlationId),this.performanceClient=f}return n.prototype.clearCacheOnLogout=function(e){return Ie(this,void 0,void 0,function(){return Oe(this,function(t){switch(t.label){case 0:if(!e)return[3,5];Uo.accountInfoIsEqual(e,this.browserStorage.getActiveAccount(),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null)),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.browserStorage.removeAccount(Uo.generateAccountCacheKey(e))];case 2:return t.sent(),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request."),[3,4];case 3:return t.sent(),this.logger.error("Account provided in logout request was not found. Local cache unchanged."),[3,4];case 4:return[3,9];case 5:return t.trys.push([5,8,,9]),this.logger.verbose("No account provided in logout request, clearing all cache items.",this.correlationId),[4,this.browserStorage.clear()];case 6:return t.sent(),[4,this.browserCrypto.clearKeystore()];case 7:return t.sent(),[3,9];case 8:return t.sent(),this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged."),[3,9];case 9:return[2]}})})},n.prototype.initializeBaseRequest=function(e,t){return Ie(this,void 0,void 0,function(){var r,a,l,u;return Oe(this,function(f){switch(f.label){case 0:return this.performanceClient.addQueueMeasurement(Ee.InitializeBaseRequest,e.correlationId),this.logger.verbose("Initializing BaseAuthRequest"),r=e.authority||this.config.auth.authority,t?[4,this.validateRequestAuthority(r,t)]:[3,2];case 1:f.sent(),f.label=2;case 2:if(a=YR(e&&e.scopes||[]),l=vt(vt({},e),{correlationId:this.correlationId,authority:r,scopes:a}),!l.authenticationScheme)l.authenticationScheme=Wn.BEARER,this.logger.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(l.authenticationScheme===Wn.SSH){if(!e.sshJwk)throw yr.createMissingSshJwkError();if(!e.sshKid)throw yr.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+l.authenticationScheme+'" as configured in Auth request')}return this.config.cache.claimsBasedCachingEnabled&&e.claims&&!rt.isEmptyObj(e.claims)?(u=l,[4,this.browserCrypto.hashString(e.claims)]):[3,4];case 3:u.requestedClaimsHash=f.sent(),f.label=4;case 4:return[2,l]}})})},n.prototype.getRedirectUri=function(e){this.logger.verbose("getRedirectUri called");var t=e||this.config.auth.redirectUri||ri.getCurrentUri();return xn.getAbsoluteUrl(t,ri.getCurrentUri())},n.prototype.validateRequestAuthority=function(e,t){return Ie(this,void 0,void 0,function(){var r;return Oe(this,function(a){switch(a.label){case 0:return[4,this.getDiscoveredAuthority(e)];case 1:if(r=a.sent(),!r.isAlias(t.environment))throw yr.createAuthorityMismatchError();return[2]}})})},n.prototype.initializeServerTelemetryManager=function(e,t){this.logger.verbose("initializeServerTelemetryManager called");var r={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:e,forceRefresh:t||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new QB(r,this.browserStorage)},n.prototype.getDiscoveredAuthority=function(e){return Ie(this,void 0,void 0,function(){var t;return Oe(this,function(r){switch(r.label){case 0:return this.logger.verbose("getDiscoveredAuthority called"),t={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata},e?(this.logger.verbose("Creating discovered authority with request authority"),[4,LE.createDiscoveredInstance(e,this.config.system.networkClient,this.browserStorage,t,this.logger)]):[3,2];case 1:return[2,r.sent()];case 2:return this.logger.verbose("Creating discovered authority with configured authority"),[4,LE.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,t,this.logger)];case 3:return[2,r.sent()]}})})},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Fv=function(n){Do(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.initializeAuthorizationCodeRequest=function(t){return Ie(this,void 0,void 0,function(){var r,a;return Oe(this,function(l){switch(l.label){case 0:return this.performanceClient.addQueueMeasurement(Ee.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),this.logger.verbose("initializeAuthorizationRequest called",t.correlationId),[4,this.browserCrypto.generatePkceCodes()];case 1:return r=l.sent(),a=vt(vt({},t),{redirectUri:t.redirectUri,code:W.EMPTY_STRING,codeVerifier:r.verifier}),t.codeChallenge=r.challenge,t.codeChallengeMethod=W.S256_CODE_CHALLENGE_METHOD,[2,a]}})})},e.prototype.initializeLogoutRequest=function(t){this.logger.verbose("initializeLogoutRequest called",t==null?void 0:t.correlationId);var r=vt({correlationId:this.correlationId||this.browserCrypto.createNewGuid()},t);if(t)if(t.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(t.account){var a=this.getLogoutHintFromIdTokenClaims(t.account);a&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),r.logoutHint=a)}else this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");else this.logger.verbose("logoutHint will not be set since no logout request was configured");return!t||t.postLogoutRedirectUri!==null?t&&t.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",r.correlationId),r.postLogoutRedirectUri=xn.getAbsoluteUrl(t.postLogoutRedirectUri,ri.getCurrentUri())):this.config.auth.postLogoutRedirectUri===null?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",r.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",r.correlationId),r.postLogoutRedirectUri=xn.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,ri.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",r.correlationId),r.postLogoutRedirectUri=xn.getAbsoluteUrl(ri.getCurrentUri(),ri.getCurrentUri())):this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",r.correlationId),r},e.prototype.getLogoutHintFromIdTokenClaims=function(t){var r=t.idTokenClaims;if(r){if(r.login_hint)return r.login_hint;this.logger.verbose("The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request")}else this.logger.verbose("The provided account does not contain ID Token Claims, logoutHint will not be added to logout request");return null},e.prototype.createAuthCodeClient=function(t,r,a){return Ie(this,void 0,void 0,function(){var l;return Oe(this,function(u){switch(u.label){case 0:return this.performanceClient.addQueueMeasurement(Ee.StandardInteractionClientCreateAuthCodeClient,this.correlationId),this.performanceClient.setPreQueueTime(Ee.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,r,a)];case 1:return l=u.sent(),[2,new $M(l,this.performanceClient)]}})})},e.prototype.getClientConfiguration=function(t,r,a){return Ie(this,void 0,void 0,function(){var l,u;return Oe(this,function(f){switch(f.label){case 0:return this.performanceClient.addQueueMeasurement(Ee.StandardInteractionClientGetClientConfiguration,this.correlationId),this.logger.verbose("getClientConfiguration called",this.correlationId),this.performanceClient.setPreQueueTime(Ee.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),[4,this.getDiscoveredAuthority(r,a)];case 1:return l=f.sent(),u=this.config.system.loggerOptions,[2,{authOptions:{clientId:this.config.auth.clientId,authority:l,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:u.loggerCallback,piiLoggingEnabled:u.piiLoggingEnabled,logLevel:u.logLevel,correlationId:this.correlationId},cacheOptions:{claimsBasedCachingEnabled:this.config.cache.claimsBasedCachingEnabled},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:t,libraryInfo:{sku:_l.MSAL_SKU,version:Qy,cpu:W.EMPTY_STRING,os:W.EMPTY_STRING},telemetry:this.config.telemetry}]}})})},e.prototype.validateAndExtractStateFromHash=function(t,r,a){if(this.logger.verbose("validateAndExtractStateFromHash called",a),!t.state)throw Ye.createHashDoesNotContainStateError();var l=JM.extractBrowserRequestState(this.browserCrypto,t.state);if(!l)throw Ye.createUnableToParseStateError();if(l.interactionType!==r)throw Ye.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",a),t.state},e.prototype.getDiscoveredAuthority=function(t,r){var a;return Ie(this,void 0,void 0,function(){var l,u,f,p;return Oe(this,function(m){switch(m.label){case 0:return this.performanceClient.addQueueMeasurement(Ee.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),this.logger.verbose("getDiscoveredAuthority called",this.correlationId),l=(a=this.performanceClient)===null||a===void 0?void 0:a.startMeasurement(Ee.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),u={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},f=t||this.config.auth.authority,p=Wy.generateAuthority(f,r||this.config.auth.azureCloudOptions),this.logger.verbose("Creating discovered authority with configured authority",this.correlationId),this.performanceClient.setPreQueueTime(Ee.AuthorityFactoryCreateDiscoveredInstance,this.correlationId),[4,LE.createDiscoveredInstance(p,this.config.system.networkClient,this.browserStorage,u,this.logger,this.performanceClient,this.correlationId).then(function(y){return l.endMeasurement({success:!0}),y}).catch(function(y){throw l.endMeasurement({errorCode:y.errorCode,subErrorCode:y.subError,success:!1}),y})];case 1:return[2,m.sent()]}})})},e.prototype.initializeAuthorizationRequest=function(t,r){return Ie(this,void 0,void 0,function(){var a,l,u,f,p,m,y;return Oe(this,function(E){switch(E.label){case 0:return this.performanceClient.addQueueMeasurement(Ee.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId),this.logger.verbose("initializeAuthorizationRequest called",this.correlationId),a=this.getRedirectUri(t.redirectUri),l={interactionType:r},u=xc.setRequestState(this.browserCrypto,t&&t.state||W.EMPTY_STRING,l),this.performanceClient.setPreQueueTime(Ee.InitializeBaseRequest,this.correlationId),p=[{}],[4,this.initializeBaseRequest(t)];case 1:return f=vt.apply(void 0,[vt.apply(void 0,p.concat([E.sent()])),{redirectUri:a,state:u,nonce:t.nonce||this.browserCrypto.createNewGuid(),responseMode:RE.FRAGMENT}]),m=t.account||this.browserStorage.getActiveAccount(),m&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii("Setting validated request account: "+m.homeAccountId,this.correlationId),f.account=m),rt.isEmpty(f.loginHint)&&!m&&(y=this.browserStorage.getLegacyLoginHint(),y&&(f.loginHint=y)),[2,f]}})})},e}(ZM);/*! @azure/msal-browser v2.38.2 2023-08-24 */var u1=function(){function n(e,t,r,a,l){this.authModule=e,this.browserStorage=t,this.authCodeRequest=r,this.logger=a,this.performanceClient=l}return n.prototype.handleCodeResponseFromHash=function(e,t,r,a){return Ie(this,void 0,void 0,function(){var l,u,f;return Oe(this,function(p){if(this.performanceClient.addQueueMeasurement(Ee.HandleCodeResponseFromHash,this.authCodeRequest.correlationId),this.logger.verbose("InteractionHandler.handleCodeResponse called"),rt.isEmpty(e))throw Ye.createEmptyHashError(e);if(l=this.browserStorage.generateStateKey(t),u=this.browserStorage.getTemporaryCache(l),!u)throw nt.createStateNotFoundError("Cached State");try{f=this.authModule.handleFragmentResponse(e,u)}catch(m){throw m instanceof kh&&m.subError===Fe.userCancelledError.code?Ye.createUserCancelledError():m}return this.performanceClient.setPreQueueTime(Ee.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),[2,this.handleCodeResponseFromServer(f,t,r,a)]})})},n.prototype.handleCodeResponseFromServer=function(e,t,r,a,l){return l===void 0&&(l=!0),Ie(this,void 0,void 0,function(){var u,f,p,m,y,E;return Oe(this,function(S){switch(S.label){case 0:if(this.performanceClient.addQueueMeasurement(Ee.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),u=this.browserStorage.generateStateKey(t),f=this.browserStorage.getTemporaryCache(u),!f)throw nt.createStateNotFoundError("Cached State");return p=this.browserStorage.generateNonceKey(f),m=this.browserStorage.getTemporaryCache(p),this.authCodeRequest.code=e.code,e.cloud_instance_host_name?(this.performanceClient.setPreQueueTime(Ee.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),[4,this.updateTokenEndpointAuthority(e.cloud_instance_host_name,r,a)]):[3,2];case 1:S.sent(),S.label=2;case 2:return l&&(e.nonce=m||void 0),e.state=f,e.client_info?this.authCodeRequest.clientInfo=e.client_info:(y=this.checkCcsCredentials(),y&&(this.authCodeRequest.ccsCredential=y)),this.performanceClient.setPreQueueTime(Ee.AuthClientAcquireToken,this.authCodeRequest.correlationId),[4,this.authModule.acquireToken(this.authCodeRequest,e)];case 3:return E=S.sent(),this.browserStorage.cleanRequestByState(t),[2,E]}})})},n.prototype.updateTokenEndpointAuthority=function(e,t,r){return Ie(this,void 0,void 0,function(){var a,l;return Oe(this,function(u){switch(u.label){case 0:return this.performanceClient.addQueueMeasurement(Ee.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),a="https://"+e+"/"+t.tenant+"/",[4,LE.createDiscoveredInstance(a,r,this.browserStorage,t.options,this.logger,this.performanceClient,this.authCodeRequest.correlationId)];case 1:return l=u.sent(),this.authModule.updateAuthority(l),[2]}})})},n.prototype.checkCcsCredentials=function(){var e=this.browserStorage.getTemporaryCache(Dn.CCS_CREDENTIAL,!0);if(e)try{return JSON.parse(e)}catch{this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii("Cache credential could not be parsed: "+e)}return null},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var eP=function(n){Do(e,n);function e(t,r,a,l,u,f){var p=n.call(this,t,r,a,l,f)||this;return p.browserCrypto=u,p}return e.prototype.initiateAuthRequest=function(t,r){return Ie(this,void 0,void 0,function(){var a,l;return Oe(this,function(u){switch(u.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),rt.isEmpty(t)?[3,7]:(r.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(Dn.ORIGIN_URI,r.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(Dn.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+t),a={apiId:_r.acquireTokenRedirect,timeout:r.redirectTimeout,noHistory:!1},typeof r.onRedirectNavigate!="function"?[3,4]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),l=r.onRedirectNavigate(t),l===!1?[3,2]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,r.navigationClient.navigateExternal(t,a)])));case 1:return u.sent(),[2];case 2:return this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation"),[2];case 3:return[3,6];case 4:return this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),[4,r.navigationClient.navigateExternal(t,a)];case 5:return u.sent(),[2];case 6:return[3,8];case 7:throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),Ye.createEmptyNavigationUriError();case 8:return[2]}})})},e.prototype.handleCodeResponseFromHash=function(t,r,a,l){return Ie(this,void 0,void 0,function(){var u,f,p,m,y,E,S;return Oe(this,function(T){switch(T.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),rt.isEmpty(t))throw Ye.createEmptyHashError(t);if(this.browserStorage.setInteractionInProgress(!1),u=this.browserStorage.generateStateKey(r),f=this.browserStorage.getTemporaryCache(u),!f)throw nt.createStateNotFoundError("Cached State");try{p=this.authModule.handleFragmentResponse(t,f)}catch(A){throw A instanceof kh&&A.subError===Fe.userCancelledError.code?Ye.createUserCancelledError():A}return m=this.browserStorage.generateNonceKey(f),y=this.browserStorage.getTemporaryCache(m),this.authCodeRequest.code=p.code,p.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(p.cloud_instance_host_name,a,l)]:[3,2];case 1:T.sent(),T.label=2;case 2:return p.nonce=y||void 0,p.state=f,p.client_info?this.authCodeRequest.clientInfo=p.client_info:(E=this.checkCcsCredentials(),E&&(this.authCodeRequest.ccsCredential=E)),[4,this.authModule.acquireToken(this.authCodeRequest,p)];case 3:return S=T.sent(),this.browserStorage.cleanRequestByState(r),[2,S]}})})},e}(u1);/*! @azure/msal-browser v2.38.2 2023-08-24 */var Gt;(function(n){n.INITIALIZE_START="msal:initializeStart",n.INITIALIZE_END="msal:initializeEnd",n.ACCOUNT_ADDED="msal:accountAdded",n.ACCOUNT_REMOVED="msal:accountRemoved",n.LOGIN_START="msal:loginStart",n.LOGIN_SUCCESS="msal:loginSuccess",n.LOGIN_FAILURE="msal:loginFailure",n.ACQUIRE_TOKEN_START="msal:acquireTokenStart",n.ACQUIRE_TOKEN_SUCCESS="msal:acquireTokenSuccess",n.ACQUIRE_TOKEN_FAILURE="msal:acquireTokenFailure",n.ACQUIRE_TOKEN_NETWORK_START="msal:acquireTokenFromNetworkStart",n.SSO_SILENT_START="msal:ssoSilentStart",n.SSO_SILENT_SUCCESS="msal:ssoSilentSuccess",n.SSO_SILENT_FAILURE="msal:ssoSilentFailure",n.ACQUIRE_TOKEN_BY_CODE_START="msal:acquireTokenByCodeStart",n.ACQUIRE_TOKEN_BY_CODE_SUCCESS="msal:acquireTokenByCodeSuccess",n.ACQUIRE_TOKEN_BY_CODE_FAILURE="msal:acquireTokenByCodeFailure",n.HANDLE_REDIRECT_START="msal:handleRedirectStart",n.HANDLE_REDIRECT_END="msal:handleRedirectEnd",n.POPUP_OPENED="msal:popupOpened",n.LOGOUT_START="msal:logoutStart",n.LOGOUT_SUCCESS="msal:logoutSuccess",n.LOGOUT_FAILURE="msal:logoutFailure",n.LOGOUT_END="msal:logoutEnd",n.RESTORE_FROM_BFCACHE="msal:restoreFromBFCache"})(Gt||(Gt={}));/*! @azure/msal-browser v2.38.2 2023-08-24 */var $d;(function(n){n.USER_INTERACTION_REQUIRED="USER_INTERACTION_REQUIRED",n.USER_CANCEL="USER_CANCEL",n.NO_NETWORK="NO_NETWORK",n.TRANSIENT_ERROR="TRANSIENT_ERROR",n.PERSISTENT_ERROR="PERSISTENT_ERROR",n.DISABLED="DISABLED",n.ACCOUNT_UNAVAILABLE="ACCOUNT_UNAVAILABLE"})($d||($d={}));var Xy={extensionError:{code:"ContentError"},userSwitch:{code:"user_switch",desc:"User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again."},tokensNotFoundInCache:{code:"tokens_not_found_in_internal_memory_cache",desc:"Tokens not cached in MSAL JS internal memory, please make the WAM request"}},vu=function(n){Do(e,n);function e(t,r,a){var l=n.call(this,t,r)||this;return Object.setPrototypeOf(l,e.prototype),l.name="NativeAuthError",l.ext=a,l}return e.prototype.isFatal=function(){if(this.ext&&this.ext.status&&(this.ext.status===$d.PERSISTENT_ERROR||this.ext.status===$d.DISABLED))return!0;switch(this.errorCode){case Xy.extensionError.code:return!0;default:return!1}},e.createError=function(t,r,a){if(a&&a.status)switch(a.status){case $d.ACCOUNT_UNAVAILABLE:return yl.createNativeAccountUnavailableError();case $d.USER_INTERACTION_REQUIRED:return new yl(t,r);case $d.USER_CANCEL:return Ye.createUserCancelledError();case $d.NO_NETWORK:return Ye.createNoNetworkConnectivityError()}return new e(t,r,a)},e.createUserSwitchError=function(){return new e(Xy.userSwitch.code,Xy.userSwitch.desc)},e.createTokensNotFoundInCacheError=function(){return new e(Xy.tokensNotFoundInCache.code,Xy.tokensNotFoundInCache.desc)},e}(Et);/*! @azure/msal-browser v2.38.2 2023-08-24 */var tP=function(n){Do(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.acquireToken=function(t){return Ie(this,void 0,void 0,function(){var r,a,l,u,f;return Oe(this,function(p){switch(p.label){case 0:return r=this.performanceClient.startMeasurement(Ee.SilentCacheClientAcquireToken,t.correlationId),a=this.initializeServerTelemetryManager(_r.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(a,t.authority,t.azureCloudOptions)];case 1:l=p.sent(),this.logger.verbose("Silent auth client created"),p.label=2;case 2:return p.trys.push([2,4,,5]),[4,l.acquireCachedToken(t)];case 3:return u=p.sent(),r.endMeasurement({success:!0,fromCache:!0}),[2,u];case 4:throw f=p.sent(),f instanceof Ye&&f.errorCode===Fe.signingKeyNotFoundInStorage.code&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),r.endMeasurement({errorCode:f instanceof Et&&f.errorCode||void 0,subErrorCode:f instanceof Et&&f.subError||void 0,success:!1}),f;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(Ye.createSilentLogoutUnsupportedError())},e.prototype.createSilentFlowClient=function(t,r,a){return Ie(this,void 0,void 0,function(){var l;return Oe(this,function(u){switch(u.label){case 0:return this.performanceClient.setPreQueueTime(Ee.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,r,a)];case 1:return l=u.sent(),[2,new BB(l,this.performanceClient)]}})})},e.prototype.initializeSilentRequest=function(t,r){return Ie(this,void 0,void 0,function(){var a;return Oe(this,function(l){switch(l.label){case 0:return this.performanceClient.addQueueMeasurement(Ee.InitializeSilentRequest,this.correlationId),this.performanceClient.setPreQueueTime(Ee.InitializeBaseRequest,this.correlationId),a=[vt({},t)],[4,this.initializeBaseRequest(t,r)];case 1:return[2,vt.apply(void 0,[vt.apply(void 0,a.concat([l.sent()])),{account:r,forceRefresh:t.forceRefresh||!1}])]}})})},e}(Fv);/*! @azure/msal-browser v2.38.2 2023-08-24 */var $v=function(n){Do(e,n);function e(t,r,a,l,u,f,p,m,y,E,S,T){var A=n.call(this,t,r,a,l,u,f,m,y,T)||this;return A.apiId=p,A.accountId=E,A.nativeMessageHandler=y,A.nativeStorageManager=S,A.silentCacheClient=new tP(t,A.nativeStorageManager,a,l,u,f,m,y,T),A}return e.prototype.acquireToken=function(t){return Ie(this,void 0,void 0,function(){var r,a,l,u,f,p,m;return Oe(this,function(y){switch(y.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),r=this.performanceClient.startMeasurement(Ee.NativeInteractionClientAcquireToken,t.correlationId),a=Hs.nowSeconds(),[4,this.initializeNativeRequest(t)];case 1:l=y.sent(),y.label=2;case 2:return y.trys.push([2,4,,5]),[4,this.acquireTokensFromCache(this.accountId,l)];case 3:return u=y.sent(),r.endMeasurement({success:!0,isNativeBroker:!1,fromCache:!0}),[2,u];case 4:return y.sent(),this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"),[3,5];case 5:return f={method:Ic.GetToken,request:l},[4,this.nativeMessageHandler.sendMessage(f)];case 6:return p=y.sent(),m=this.validateNativeResponse(p),[2,this.handleNativeResponse(m,l,a).then(function(E){return r.endMeasurement({success:!0,isNativeBroker:!0,requestId:E.requestId}),E}).catch(function(E){throw r.endMeasurement({success:!1,errorCode:E.errorCode,subErrorCode:E.subError,isNativeBroker:!0}),E})]}})})},e.prototype.createSilentCacheRequest=function(t,r){return{authority:t.authority,correlationId:this.correlationId,scopes:ta.fromString(t.scope).asArray(),account:r,forceRefresh:!1}},e.prototype.acquireTokensFromCache=function(t,r){return Ie(this,void 0,void 0,function(){var a,l,u,f;return Oe(this,function(p){switch(p.label){case 0:if(!t)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),nt.createNoAccountFoundError();if(a=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:t}),!a)throw nt.createNoAccountFoundError();p.label=1;case 1:return p.trys.push([1,3,,4]),l=this.createSilentCacheRequest(r,a),[4,this.silentCacheClient.acquireToken(l)];case 2:return u=p.sent(),[2,u];case 3:throw f=p.sent(),f;case 4:return[2]}})})},e.prototype.acquireTokenRedirect=function(t){return Ie(this,void 0,void 0,function(){var r,a,l,u,f,p;return Oe(this,function(m){switch(m.label){case 0:return this.logger.trace("NativeInteractionClient - acquireTokenRedirect called."),[4,this.initializeNativeRequest(t)];case 1:r=m.sent(),a={method:Ic.GetToken,request:r},m.label=2;case 2:return m.trys.push([2,4,,5]),[4,this.nativeMessageHandler.sendMessage(a)];case 3:return l=m.sent(),this.validateNativeResponse(l),[3,5];case 4:if(u=m.sent(),u instanceof vu&&u.isFatal())throw u;return[3,5];case 5:return this.browserStorage.setTemporaryCache(Dn.NATIVE_REQUEST,JSON.stringify(r),!0),f={apiId:_r.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},p=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(t.redirectUri),[4,this.navigationClient.navigateExternal(p,f)];case 6:return m.sent(),[2]}})})},e.prototype.handleRedirectPromise=function(){return Ie(this,void 0,void 0,function(){var t,r,a,l,u,f,p,m;return Oe(this,function(y){switch(y.label){case 0:if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(t=this.browserStorage.getCachedNativeRequest(),!t)return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),[2,null];r=t.prompt,a=NM(t,["prompt"]),r&&this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(Dn.NATIVE_REQUEST)),l={method:Ic.GetToken,request:a},u=Hs.nowSeconds(),y.label=1;case 1:return y.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(l)];case 2:return f=y.sent(),this.validateNativeResponse(f),p=this.handleNativeResponse(f,a,u),this.browserStorage.setInteractionInProgress(!1),[2,p];case 3:throw m=y.sent(),this.browserStorage.setInteractionInProgress(!1),m;case 4:return[2]}})})},e.prototype.logout=function(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")},e.prototype.handleNativeResponse=function(t,r,a){return Ie(this,void 0,void 0,function(){var l,u,f,p,m,y;return Oe(this,function(E){switch(E.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),t.account.id!==r.accountId)throw vu.createUserSwitchError();return[4,this.getDiscoveredAuthority(r.authority)];case 1:return l=E.sent(),u=l.getPreferredCache(),f=this.createIdTokenObj(t),p=this.createHomeAccountIdentifier(t,f),m=this.createAccountEntity(t,p,f,u),[4,this.generateAuthenticationResult(t,r,f,m,l.canonicalAuthority,a)];case 2:return y=E.sent(),this.cacheAccount(m),this.cacheNativeTokens(t,r,p,m,f,y.accessToken,y.tenantId,a),[2,y]}})})},e.prototype.createIdTokenObj=function(t){return new fu(t.id_token||W.EMPTY_STRING,this.browserCrypto)},e.prototype.createHomeAccountIdentifier=function(t,r){var a=Uo.generateHomeAccountId(t.client_info||W.EMPTY_STRING,Ra.Default,this.logger,this.browserCrypto,r);return a},e.prototype.createAccountEntity=function(t,r,a,l){return Uo.createAccount(t.client_info,r,a,void 0,void 0,void 0,l,t.account.id)},e.prototype.generateScopes=function(t,r){return t.scope?ta.fromString(t.scope):ta.fromString(r.scope)},e.prototype.generatePopAccessToken=function(t,r){return Ie(this,void 0,void 0,function(){var a,l;return Oe(this,function(u){switch(u.label){case 0:if(r.tokenType!==Wn.POP)return[3,2];if(t.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),[2,t.shr];if(a=new Dv(this.browserCrypto),l={resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,shrNonce:r.shrNonce},!r.keyId)throw nt.createKeyIdMissingError();return[4,a.signPopToken(t.access_token,r.keyId,l)];case 1:return[2,u.sent()];case 2:return[2,t.access_token]}})})},e.prototype.generateAuthenticationResult=function(t,r,a,l,u,f){return Ie(this,void 0,void 0,function(){var p,m,y,E,S,T,A,I;return Oe(this,function(P){switch(P.label){case 0:return p=this.addTelemetryFromNativeResponse(t),m=t.scope?ta.fromString(t.scope):ta.fromString(r.scope),y=t.account.properties||{},E=y.UID||a.claims.oid||a.claims.sub||W.EMPTY_STRING,S=y.TenantId||a.claims.tid||W.EMPTY_STRING,[4,this.generatePopAccessToken(t,r)];case 1:return T=P.sent(),A=r.tokenType===Wn.POP?Wn.POP:Wn.BEARER,I={authority:u,uniqueId:E,tenantId:S,scopes:m.asArray(),account:l.getAccountInfo(),idToken:t.id_token,idTokenClaims:a.claims,accessToken:T,fromCache:p?this.isResponseFromCache(p):!1,expiresOn:new Date(Number(f+t.expires_in)*1e3),tokenType:A,correlationId:this.correlationId,state:t.state,fromNativeBroker:!0},[2,I]}})})},e.prototype.cacheAccount=function(t){var r=this;this.browserStorage.setAccount(t),this.browserStorage.removeAccountContext(t).catch(function(a){r.logger.error("Error occurred while removing account context from browser storage. "+a)})},e.prototype.cacheNativeTokens=function(t,r,a,l,u,f,p,m){var y=xh.createIdTokenEntity(a,r.authority,t.id_token||W.EMPTY_STRING,r.clientId,u.claims.tid||W.EMPTY_STRING),E=r.tokenType===Wn.POP?W.SHR_NONCE_VALIDITY:(typeof t.expires_in=="string"?parseInt(t.expires_in,10):t.expires_in)||0,S=m+E,T=this.generateScopes(t,r),A=Ih.createAccessTokenEntity(a,r.authority,f,r.clientId,u?u.claims.tid||W.EMPTY_STRING:p,T.printScopes(),S,0,this.browserCrypto),I=new Ky(l,y,A);this.nativeStorageManager.saveCacheRecord(I)},e.prototype.addTelemetryFromNativeResponse=function(t){var r=this.getMATSFromResponse(t);return r?(this.performanceClient.addStaticFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:r.broker_version,matsAccountJoinOnStart:r.account_join_on_start,matsAccountJoinOnEnd:r.account_join_on_end,matsDeviceJoin:r.device_join,matsPromptBehavior:r.prompt_behavior,matsApiErrorCode:r.api_error_code,matsUiVisible:r.ui_visible,matsSilentCode:r.silent_code,matsSilentBiSubCode:r.silent_bi_sub_code,matsSilentMessage:r.silent_message,matsSilentStatus:r.silent_status,matsHttpStatus:r.http_status,matsHttpEventCount:r.http_event_count},this.correlationId),r):null},e.prototype.validateNativeResponse=function(t){if(t.hasOwnProperty("access_token")&&t.hasOwnProperty("id_token")&&t.hasOwnProperty("client_info")&&t.hasOwnProperty("account")&&t.hasOwnProperty("scope")&&t.hasOwnProperty("expires_in"))return t;throw vu.createUnexpectedError("Response missing expected properties.")},e.prototype.getMATSFromResponse=function(t){if(t.properties.MATS)try{return JSON.parse(t.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null},e.prototype.isResponseFromCache=function(t){return typeof t.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!t.is_cached},e.prototype.initializeNativeRequest=function(t){return Ie(this,void 0,void 0,function(){var r,a,l,u,f,p,m,y,E,S,T=this;return Oe(this,function(A){switch(A.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),r=t.authority||this.config.auth.authority,t.account?[4,this.validateRequestAuthority(r,t.account)]:[3,2];case 1:A.sent(),A.label=2;case 2:return a=new xn(r),a.validateAsUri(),l=t.scopes,u=NM(t,["scopes"]),f=new ta(l||[]),f.appendScopes(Fy),p=function(){switch(T.apiId){case _r.ssoSilent:case _r.acquireTokenSilent_silentFlow:return T.logger.trace("initializeNativeRequest: silent request sets prompt to none"),ea.NONE}if(!t.prompt){T.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(t.prompt){case ea.NONE:case ea.CONSENT:case ea.LOGIN:return T.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),t.prompt;default:throw T.logger.trace("initializeNativeRequest: prompt = "+t.prompt+" is not compatible with native flow"),Ye.createNativePromptParameterNotSupportedError()}},m=vt(vt({},u),{accountId:this.accountId,clientId:this.config.auth.clientId,authority:a.urlString,scope:f.printScopes(),redirectUri:this.getRedirectUri(t.redirectUri),prompt:p(),correlationId:this.correlationId,tokenType:t.authenticationScheme,windowTitleSubstring:document.title,extraParameters:vt(vt(vt({},t.extraQueryParameters),t.tokenQueryParameters),{telemetry:Yy.MATS_TELEMETRY}),extendedExpiryToken:!1}),t.authenticationScheme!==Wn.POP?[3,4]:(y={resourceRequestUri:t.resourceRequestUri,resourceRequestMethod:t.resourceRequestMethod,shrClaims:t.shrClaims,shrNonce:t.shrNonce},E=new Dv(this.browserCrypto),[4,E.generateCnf(y)]);case 3:S=A.sent(),m.reqCnf=S.reqCnfString,m.keyId=S.kid,A.label=4;case 4:return[2,m]}})})},e}(ZM);/*! @azure/msal-browser v2.38.2 2023-08-24 */var Oh=function(){function n(e,t,r,a){this.logger=e,this.handshakeTimeoutMs=t,this.extensionId=a,this.resolvers=new Map,this.handshakeResolvers=new Map,this.responseId=0,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=r,this.handshakeEvent=r.startMeasurement(Ee.NativeMessageHandlerHandshake)}return n.prototype.sendMessage=function(e){return Ie(this,void 0,void 0,function(){var t,r=this;return Oe(this,function(a){return this.logger.trace("NativeMessageHandler - sendMessage called."),t={channel:Yy.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:e},this.logger.trace("NativeMessageHandler - Sending request to browser extension"),this.logger.tracePii("NativeMessageHandler - Sending request to browser extension: "+JSON.stringify(t)),this.messageChannel.port1.postMessage(t),[2,new Promise(function(l,u){r.resolvers.set(t.responseId,{resolve:l,reject:u})})]})})},n.createProvider=function(e,t,r){return Ie(this,void 0,void 0,function(){var a,l;return Oe(this,function(u){switch(u.label){case 0:e.trace("NativeMessageHandler - createProvider called."),u.label=1;case 1:return u.trys.push([1,3,,5]),a=new n(e,t,r,Yy.PREFERRED_EXTENSION_ID),[4,a.sendHandshakeRequest()];case 2:return u.sent(),[2,a];case 3:return u.sent(),l=new n(e,t,r),[4,l.sendHandshakeRequest()];case 4:return u.sent(),[2,l];case 5:return[2]}})})},n.prototype.sendHandshakeRequest=function(){return Ie(this,void 0,void 0,function(){var e,t=this;return Oe(this,function(r){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),e={channel:Yy.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:{method:Ic.HandshakeRequest}},this.handshakeEvent.addStaticFields({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=function(a){t.onChannelMessage(a)},window.postMessage(e,window.origin,[this.messageChannel.port2]),[2,new Promise(function(a,l){t.handshakeResolvers.set(e.responseId,{resolve:a,reject:l}),t.timeoutId=window.setTimeout(function(){window.removeEventListener("message",t.windowListener,!1),t.messageChannel.port1.close(),t.messageChannel.port2.close(),t.handshakeEvent.endMeasurement({extensionHandshakeTimedOut:!0,success:!1}),l(Ye.createNativeHandshakeTimeoutError()),t.handshakeResolvers.delete(e.responseId)},t.handshakeTimeoutMs)})]})})},n.prototype.onWindowMessage=function(e){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source===window){var t=e.data;if(!(!t.channel||t.channel!==Yy.CHANNEL_ID)&&!(t.extensionId&&t.extensionId!==this.extensionId)&&t.body.method===Ic.HandshakeRequest){this.logger.verbose(t.extensionId?"Extension with id: "+t.extensionId+" not installed":"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1);var r=this.handshakeResolvers.get(t.responseId);r&&(this.handshakeEvent.endMeasurement({success:!1,extensionInstalled:!1}),r.reject(Ye.createNativeExtensionNotInstalledError()))}}},n.prototype.onChannelMessage=function(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");var t=e.data,r=this.resolvers.get(t.responseId),a=this.handshakeResolvers.get(t.responseId);try{var l=t.body.method;if(l===Ic.Response){if(!r)return;var u=t.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii("NativeMessageHandler - Received response from browser extension: "+JSON.stringify(u)),u.status!=="Success")r.reject(vu.createError(u.code,u.description,u.ext));else if(u.result)u.result.code&&u.result.description?r.reject(vu.createError(u.result.code,u.result.description,u.result.ext)):r.resolve(u.result);else throw Et.createUnexpectedError("Event does not contain result.");this.resolvers.delete(t.responseId)}else if(l===Ic.HandshakeResponse){if(!a)return;clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=t.extensionId,this.extensionVersion=t.body.version,this.logger.verbose("NativeMessageHandler - Received HandshakeResponse from extension: "+this.extensionId),this.handshakeEvent.endMeasurement({extensionInstalled:!0,success:!0}),a.resolve(),this.handshakeResolvers.delete(t.responseId)}}catch(f){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii("Error parsing response from WAM Extension: "+f.toString()),this.logger.errorPii("Unable to parse "+e),r?r.reject(f):a&&a.reject(f)}},n.prototype.getExtensionId=function(){return this.extensionId},n.prototype.getExtensionVersion=function(){return this.extensionVersion},n.isNativeAvailable=function(e,t,r,a){if(t.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return t.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!r)return t.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(a)switch(a){case Wn.BEARER:case Wn.POP:return t.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return t.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var r5=function(n){Do(e,n);function e(t,r,a,l,u,f,p,m,y,E){var S=n.call(this,t,r,a,l,u,f,p,y,E)||this;return S.nativeStorage=m,S}return e.prototype.acquireToken=function(t){return Ie(this,void 0,void 0,function(){var r,a,l,u,f,p,m,y,E,S=this;return Oe(this,function(T){switch(T.label){case 0:return this.performanceClient.setPreQueueTime(Ee.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,pt.Redirect)];case 1:r=T.sent(),this.browserStorage.updateCacheEntries(r.state,r.nonce,r.authority,r.loginHint||W.EMPTY_STRING,r.account||null),a=this.initializeServerTelemetryManager(_r.acquireTokenRedirect),l=function(A){A.persisted&&(S.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),S.browserStorage.cleanRequestByState(r.state),S.eventHandler.emitEvent(Gt.RESTORE_FROM_BFCACHE,pt.Redirect))},T.label=2;case 2:return T.trys.push([2,7,,8]),this.performanceClient.setPreQueueTime(Ee.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),[4,this.initializeAuthorizationCodeRequest(r)];case 3:return u=T.sent(),this.performanceClient.setPreQueueTime(Ee.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(a,r.authority,r.azureCloudOptions)];case 4:return f=T.sent(),this.logger.verbose("Auth code client created"),p=new eP(f,this.browserStorage,u,this.logger,this.browserCrypto,this.performanceClient),[4,f.getAuthCodeUrl(vt(vt({},r),{nativeBroker:Oh.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme)}))];case 5:return m=T.sent(),y=this.getRedirectStartPage(t.redirectStartPage),this.logger.verbosePii("Redirect start page: "+y),window.addEventListener("pageshow",l),[4,p.initiateAuthRequest(m,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:y,onRedirectNavigate:t.onRedirectNavigate})];case 6:return[2,T.sent()];case 7:throw E=T.sent(),E instanceof Et&&E.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",l),a.cacheFailedRequest(E),this.browserStorage.cleanRequestByState(r.state),E;case 8:return[2]}})})},e.prototype.handleRedirectPromise=function(t){return Ie(this,void 0,void 0,function(){var r,a,l,u,f,p,m,y,E,S,T,A;return Oe(this,function(I){switch(I.label){case 0:r=this.initializeServerTelemetryManager(_r.handleRedirectPromise),I.label=1;case 1:if(I.trys.push([1,10,,11]),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(a=this.getRedirectResponseHash(t||window.location.hash),!a)return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(pt.Redirect),[2,null];l=void 0;try{u=xn.getDeserializedHash(a),l=this.validateAndExtractStateFromHash(u,pt.Redirect),this.logger.verbose("State extracted from hash")}catch(P){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+P),this.browserStorage.cleanRequestByInteractionType(pt.Redirect),[2,null]}return f=this.browserStorage.getTemporaryCache(Dn.ORIGIN_URI,!0)||W.EMPTY_STRING,p=xn.removeHashFromUrl(f),m=xn.removeHashFromUrl(window.location.href),p===m&&this.config.auth.navigateToLoginRequestUrl?(this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(a,l,r)]):[3,3];case 2:return y=I.sent(),f.indexOf("#")>-1&&ri.replaceHash(f),[2,y];case 3:return this.config.auth.navigateToLoginRequestUrl?[3,4]:(this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"),[2,this.handleHash(a,l,r)]);case 4:return!ri.isInIframe()||this.config.system.allowRedirectInIframe?(this.browserStorage.setTemporaryCache(Dn.URL_HASH,a,!0),E={apiId:_r.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},S=!0,!f||f==="null"?(T=ri.getHomepage(),this.browserStorage.setTemporaryCache(Dn.ORIGIN_URI,T,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(T,E)]):[3,6]):[3,9];case 5:return S=I.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+f),[4,this.navigationClient.navigateInternal(f,E)];case 7:S=I.sent(),I.label=8;case 8:if(!S)return[2,this.handleHash(a,l,r)];I.label=9;case 9:return[2,null];case 10:throw A=I.sent(),A instanceof Et&&A.setCorrelationId(this.correlationId),r.cacheFailedRequest(A),this.browserStorage.cleanRequestByInteractionType(pt.Redirect),A;case 11:return[2]}})})},e.prototype.getRedirectResponseHash=function(t){this.logger.verbose("getRedirectResponseHash called");var r=xn.hashContainsKnownProperties(t);if(r)return ri.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),t;var a=this.browserStorage.getTemporaryCache(Dn.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(Dn.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),a},e.prototype.handleHash=function(t,r,a){return Ie(this,void 0,void 0,function(){var l,u,f,p,m,y,E,S=this;return Oe(this,function(T){switch(T.label){case 0:if(l=this.browserStorage.getCachedRequest(r,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),u=xn.getDeserializedHash(t),u.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw Ye.createNativeConnectionNotEstablishedError();return f=new $v(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,_r.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,u.accountId,this.nativeStorage,l.correlationId),p=xc.parseRequestState(this.browserCrypto,r).userRequestState,[2,f.acquireToken(vt(vt({},l),{state:p,prompt:void 0})).finally(function(){S.browserStorage.cleanRequestByState(r)})]}if(m=this.browserStorage.getCachedAuthority(r),!m)throw Ye.createNoCachedAuthorityError();return this.performanceClient.setPreQueueTime(Ee.StandardInteractionClientCreateAuthCodeClient,l.correlationId),[4,this.createAuthCodeClient(a,m)];case 1:return y=T.sent(),this.logger.verbose("Auth code client created"),ME.removeThrottle(this.browserStorage,this.config.auth.clientId,l),E=new eP(y,this.browserStorage,l,this.logger,this.browserCrypto,this.performanceClient),[4,E.handleCodeResponseFromHash(t,r,y.authority,this.networkClient)];case 2:return[2,T.sent()]}})})},e.prototype.logout=function(t){return Ie(this,void 0,void 0,function(){var r,a,l,u,f,p,m;return Oe(this,function(y){switch(y.label){case 0:this.logger.verbose("logoutRedirect called"),r=this.initializeLogoutRequest(t),a=this.initializeServerTelemetryManager(_r.logout),y.label=1;case 1:return y.trys.push([1,10,,11]),this.eventHandler.emitEvent(Gt.LOGOUT_START,pt.Redirect,t),[4,this.clearCacheOnLogout(r.account)];case 2:return y.sent(),l={apiId:_r.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},this.performanceClient.setPreQueueTime(Ee.StandardInteractionClientCreateAuthCodeClient,r.correlationId),[4,this.createAuthCodeClient(a,t&&t.authority)];case 3:return u=y.sent(),this.logger.verbose("Auth code client created"),f=u.getLogoutUri(r),this.eventHandler.emitEvent(Gt.LOGOUT_SUCCESS,pt.Redirect,r),t&&typeof t.onRedirectNavigate=="function"?(p=t.onRedirectNavigate(f),p===!1?[3,5]:(this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(f,l)])):[3,7];case 4:return y.sent(),[2];case 5:this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),y.label=6;case 6:return[3,9];case 7:return this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(f,l)];case 8:return y.sent(),[2];case 9:return[3,11];case 10:throw m=y.sent(),m instanceof Et&&m.setCorrelationId(this.correlationId),a.cacheFailedRequest(m),this.eventHandler.emitEvent(Gt.LOGOUT_FAILURE,pt.Redirect,null,m),this.eventHandler.emitEvent(Gt.LOGOUT_END,pt.Redirect),m;case 11:return this.eventHandler.emitEvent(Gt.LOGOUT_END,pt.Redirect),[2]}})})},e.prototype.getRedirectStartPage=function(t){var r=t||window.location.href;return xn.getAbsoluteUrl(r,ri.getCurrentUri())},e}(Fv);/*! @azure/msal-browser v2.38.2 2023-08-24 */var i5=function(n){Do(e,n);function e(t,r,a,l,u,f,p,m,y,E){var S=n.call(this,t,r,a,l,u,f,p,y,E)||this;return S.unloadWindow=S.unloadWindow.bind(S),S.nativeStorage=m,S}return e.prototype.acquireToken=function(t){try{var r=this.generatePopupName(t.scopes||Fy,t.authority||this.config.auth.authority),a=t.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(t,r,a);this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");var l=this.openSizedPopup("about:blank",r,a);return this.acquireTokenPopupAsync(t,r,a,l)}catch(u){return Promise.reject(u)}},e.prototype.logout=function(t){try{this.logger.verbose("logoutPopup called");var r=this.initializeLogoutRequest(t),a=this.generateLogoutPopupName(r),l=t&&t.authority,u=t&&t.mainWindowRedirectUri,f=(t==null?void 0:t.popupWindowAttributes)||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(r,a,f,l,void 0,u);this.logger.verbose("asyncPopup set to false, opening popup");var p=this.openSizedPopup("about:blank",a,f);return this.logoutPopupAsync(r,a,f,l,p,u)}catch(m){return Promise.reject(m)}},e.prototype.acquireTokenPopupAsync=function(t,r,a,l){return Ie(this,void 0,void 0,function(){var u,f,p,m,y,E,S,T,A,I,P,D,L,j,F,V,Y,Z=this;return Oe(this,function(Re){switch(Re.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),u=this.initializeServerTelemetryManager(_r.acquireTokenPopup),this.performanceClient.setPreQueueTime(Ee.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,pt.Popup)];case 1:f=Re.sent(),this.browserStorage.updateCacheEntries(f.state,f.nonce,f.authority,f.loginHint||W.EMPTY_STRING,f.account||null),Re.label=2;case 2:return Re.trys.push([2,8,,9]),this.performanceClient.setPreQueueTime(Ee.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),[4,this.initializeAuthorizationCodeRequest(f)];case 3:return p=Re.sent(),this.performanceClient.setPreQueueTime(Ee.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(u,f.authority,f.azureCloudOptions)];case 4:return m=Re.sent(),this.logger.verbose("Auth code client created"),y=Oh.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme),E=void 0,y&&(E=this.performanceClient.startMeasurement(Ee.FetchAccountIdWithNativeBroker,t.correlationId)),[4,m.getAuthCodeUrl(vt(vt({},f),{nativeBroker:y}))];case 5:return S=Re.sent(),T=new u1(m,this.browserStorage,p,this.logger,this.performanceClient),A={popup:l,popupName:r,popupWindowAttributes:a},I=this.initiateAuthRequest(S,A),this.eventHandler.emitEvent(Gt.POPUP_OPENED,pt.Popup,{popupWindow:I},null),[4,this.monitorPopupForHash(I)];case 6:if(P=Re.sent(),D=xn.getDeserializedHash(P),L=this.validateAndExtractStateFromHash(D,pt.Popup,f.correlationId),ME.removeThrottle(this.browserStorage,this.config.auth.clientId,p),D.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),E&&E.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw Ye.createNativeConnectionNotEstablishedError();return j=new $v(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,_r.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,D.accountId,this.nativeStorage,f.correlationId),F=xc.parseRequestState(this.browserCrypto,L).userRequestState,[2,j.acquireToken(vt(vt({},f),{state:F,prompt:void 0})).finally(function(){Z.browserStorage.cleanRequestByState(L)})]}return[4,T.handleCodeResponseFromHash(P,L,m.authority,this.networkClient)];case 7:return V=Re.sent(),[2,V];case 8:throw Y=Re.sent(),l&&l.close(),Y instanceof Et&&Y.setCorrelationId(this.correlationId),u.cacheFailedRequest(Y),this.browserStorage.cleanRequestByState(f.state),Y;case 9:return[2]}})})},e.prototype.logoutPopupAsync=function(t,r,a,l,u,f){return Ie(this,void 0,void 0,function(){var p,m,y,E,S,T,A;return Oe(this,function(I){switch(I.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(Gt.LOGOUT_START,pt.Popup,t),p=this.initializeServerTelemetryManager(_r.logoutPopup),I.label=1;case 1:return I.trys.push([1,5,,6]),[4,this.clearCacheOnLogout(t.account)];case 2:return I.sent(),this.performanceClient.setPreQueueTime(Ee.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(p,l)];case 3:return m=I.sent(),this.logger.verbose("Auth code client created"),y=m.getLogoutUri(t),this.eventHandler.emitEvent(Gt.LOGOUT_SUCCESS,pt.Popup,t),E=this.openPopup(y,{popupName:r,popupWindowAttributes:a,popup:u}),this.eventHandler.emitEvent(Gt.POPUP_OPENED,pt.Popup,{popupWindow:E},null),[4,this.waitForLogoutPopup(E)];case 4:return I.sent(),f?(S={apiId:_r.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},T=xn.getAbsoluteUrl(f,ri.getCurrentUri()),this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii("Redirecting main window to: "+T),this.navigationClient.navigateInternal(T,S)):this.logger.verbose("No main window navigation requested"),[3,6];case 5:throw A=I.sent(),u&&u.close(),A instanceof Et&&A.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(Gt.LOGOUT_FAILURE,pt.Popup,null,A),this.eventHandler.emitEvent(Gt.LOGOUT_END,pt.Popup),p.cacheFailedRequest(A),A;case 6:return this.eventHandler.emitEvent(Gt.LOGOUT_END,pt.Popup),[2]}})})},e.prototype.initiateAuthRequest=function(t,r){if(rt.isEmpty(t))throw this.logger.error("Navigate url is empty"),Ye.createEmptyNavigationUriError();return this.logger.infoPii("Navigate to: "+t),this.openPopup(t,r)},e.prototype.monitorPopupForHash=function(t){var r=this;return new Promise(function(a,l){var u=r.config.system.windowHashTimeout/r.config.system.pollIntervalMilliseconds,f=0;r.logger.verbose("PopupHandler.monitorPopupForHash - polling started");var p=setInterval(function(){if(t.closed){r.logger.error("PopupHandler.monitorPopupForHash - window closed"),r.cleanPopup(),clearInterval(p),l(Ye.createUserCancelledError());return}var m=W.EMPTY_STRING,y=W.EMPTY_STRING;try{m=t.location.href,y=t.location.hash}catch{}rt.isEmpty(m)||m==="about:blank"||(r.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),f++,y?(r.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"),clearInterval(p),r.cleanPopup(t),xn.hashContainsKnownProperties(y)?(r.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."),a(y)):(r.logger.error("PopupHandler.monitorPopupForHash - found hash in url but it does not contain known properties. Check that your router is not changing the hash prematurely."),r.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: "+y),l(Ye.createHashDoesNotContainKnownPropertiesError()))):f>u&&(r.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(p),l(Ye.createMonitorPopupTimeoutError())))},r.config.system.pollIntervalMilliseconds)})},e.prototype.waitForLogoutPopup=function(t){var r=this;return new Promise(function(a){r.logger.verbose("PopupHandler.waitForLogoutPopup - polling started");var l=setInterval(function(){t.closed&&(r.logger.error("PopupHandler.waitForLogoutPopup - window closed"),r.cleanPopup(),clearInterval(l),a());var u=W.EMPTY_STRING;try{u=t.location.href}catch{}rt.isEmpty(u)||u==="about:blank"||(r.logger.verbose("PopupHandler.waitForLogoutPopup - popup window is on same origin as caller, closing."),clearInterval(l),r.cleanPopup(t),a())},r.config.system.pollIntervalMilliseconds)})},e.prototype.openPopup=function(t,r){try{var a=void 0;if(r.popup?(a=r.popup,this.logger.verbosePii("Navigating popup window to: "+t),a.location.assign(t)):typeof r.popup>"u"&&(this.logger.verbosePii("Opening popup window to: "+t),a=this.openSizedPopup(t,r.popupName,r.popupWindowAttributes)),!a)throw Ye.createEmptyWindowCreatedError();return a.focus&&a.focus(),this.currentWindow=a,window.addEventListener("beforeunload",this.unloadWindow),a}catch(l){throw this.logger.error("error opening popup "+l.message),this.browserStorage.setInteractionInProgress(!1),Ye.createPopupWindowError(l.toString())}},e.prototype.openSizedPopup=function(t,r,a){var l,u,f,p,m=window.screenLeft?window.screenLeft:window.screenX,y=window.screenTop?window.screenTop:window.screenY,E=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,S=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,T=(l=a.popupSize)===null||l===void 0?void 0:l.width,A=(u=a.popupSize)===null||u===void 0?void 0:u.height,I=(f=a.popupPosition)===null||f===void 0?void 0:f.top,P=(p=a.popupPosition)===null||p===void 0?void 0:p.left;return(!T||T<0||T>E)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),T=_l.POPUP_WIDTH),(!A||A<0||A>S)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),A=_l.POPUP_HEIGHT),(!I||I<0||I>S)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),I=Math.max(0,S/2-_l.POPUP_HEIGHT/2+y)),(!P||P<0||P>E)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),P=Math.max(0,E/2-_l.POPUP_WIDTH/2+m)),window.open(t,r,"width="+T+", height="+A+", top="+I+", left="+P+", scrollbars=yes")},e.prototype.unloadWindow=function(t){this.browserStorage.cleanRequestByInteractionType(pt.Popup),this.currentWindow&&this.currentWindow.close(),t.preventDefault()},e.prototype.cleanPopup=function(t){t&&t.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)},e.prototype.generatePopupName=function(t,r){return _l.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+t.join("-")+"."+r+"."+this.correlationId},e.prototype.generateLogoutPopupName=function(t){var r=t.account&&t.account.homeAccountId;return _l.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+r+"."+this.correlationId},e}(Fv);/*! @azure/msal-browser v2.38.2 2023-08-24 */var o5=function(){function n(){}return n.prototype.navigateInternal=function(e,t){return n.defaultNavigateWindow(e,t)},n.prototype.navigateExternal=function(e,t){return n.defaultNavigateWindow(e,t)},n.defaultNavigateWindow=function(e,t){return t.noHistory?window.location.replace(e):window.location.assign(e),new Promise(function(r){setTimeout(function(){r(!0)},t.timeout)})},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var a5=6e4,c1=6e3,s5=3e4,l5=2e3;function u5(n,e){var t=n.auth,r=n.cache,a=n.system,l=n.telemetry,u={clientId:W.EMPTY_STRING,authority:""+W.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:W.EMPTY_STRING,authorityMetadata:W.EMPTY_STRING,redirectUri:W.EMPTY_STRING,postLogoutRedirectUri:W.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:Gy.AAD,azureCloudOptions:{azureCloudInstance:qy.None,tenant:W.EMPTY_STRING},skipAuthorityMetadataCache:!1},f={cacheLocation:Mi.SessionStorage,temporaryCacheLocation:Mi.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!!(r&&r.cacheLocation===Mi.LocalStorage),claimsBasedCachingEnabled:!0},p={loggerCallback:function(){},logLevel:ni.Info,piiLoggingEnabled:!1},m=vt(vt({},UM),{loggerOptions:p,networkClient:e?ri.getBrowserNetworkClient():WB,navigationClient:new o5,loadFrameTimeout:0,windowHashTimeout:(a==null?void 0:a.loadFrameTimeout)||a5,iframeHashTimeout:(a==null?void 0:a.loadFrameTimeout)||c1,navigateFrameWait:e&&ri.detectIEOrEdge()?500:0,redirectNavigationTimeout:s5,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(a==null?void 0:a.nativeBrokerHandshakeTimeout)||l5,pollIntervalMilliseconds:_l.DEFAULT_POLL_INTERVAL_MS,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),y=vt(vt({},a),{loggerOptions:(a==null?void 0:a.loggerOptions)||p}),E={application:{appName:W.EMPTY_STRING,appVersion:W.EMPTY_STRING}},S={auth:vt(vt({},u),t),cache:vt(vt({},f),r),system:vt(vt({},m),y),telemetry:vt(vt({},E),l)};return S}/*! @azure/msal-browser v2.38.2 2023-08-24 */var nP=function(n){Do(e,n);function e(t,r,a,l,u,f){var p=n.call(this,t,r,a,l,f)||this;return p.navigateFrameWait=u.navigateFrameWait,p.pollIntervalMilliseconds=u.pollIntervalMilliseconds,p}return e.prototype.initiateAuthRequest=function(t){return Ie(this,void 0,void 0,function(){return Oe(this,function(r){switch(r.label){case 0:if(this.performanceClient.addQueueMeasurement(Ee.SilentHandlerInitiateAuthRequest,this.authCodeRequest.correlationId),rt.isEmpty(t))throw this.logger.info("Navigate url is empty"),Ye.createEmptyNavigationUriError();return this.navigateFrameWait?(this.performanceClient.setPreQueueTime(Ee.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),[4,this.loadFrame(t)]):[3,2];case 1:return[2,r.sent()];case 2:return[2,this.loadFrameSync(t)]}})})},e.prototype.monitorIframeForHash=function(t,r){var a=this;return this.performanceClient.addQueueMeasurement(Ee.SilentHandlerMonitorIframeForHash,this.authCodeRequest.correlationId),new Promise(function(l,u){r<c1&&a.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+r+"ms) than the default ("+c1+"ms). This may result in timeouts.");var f=window.performance.now(),p=f+r,m=setInterval(function(){if(window.performance.now()>p){a.removeHiddenIframe(t),clearInterval(m),u(Ye.createMonitorIframeTimeoutError());return}var y=W.EMPTY_STRING,E=t.contentWindow;try{y=E?E.location.href:W.EMPTY_STRING}catch{}if(!rt.isEmpty(y)){var S=E?E.location.hash:W.EMPTY_STRING;if(xn.hashContainsKnownProperties(S)){a.removeHiddenIframe(t),clearInterval(m),l(S);return}}},a.pollIntervalMilliseconds)})},e.prototype.loadFrame=function(t){var r=this;return this.performanceClient.addQueueMeasurement(Ee.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),new Promise(function(a,l){var u=r.createHiddenIframe();setTimeout(function(){if(!u){l("Unable to load iframe");return}u.src=t,a(u)},r.navigateFrameWait)})},e.prototype.loadFrameSync=function(t){var r=this.createHiddenIframe();return r.src=t,r},e.prototype.createHiddenIframe=function(){var t=document.createElement("iframe");return t.style.visibility="hidden",t.style.position="absolute",t.style.width=t.style.height="0",t.style.border="0",t.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.getElementsByTagName("body")[0].appendChild(t),t},e.prototype.removeHiddenIframe=function(t){document.body===t.parentNode&&document.body.removeChild(t)},e}(u1);/*! @azure/msal-browser v2.38.2 2023-08-24 */var c5=function(n){Do(e,n);function e(t,r,a,l,u,f,p,m,y,E,S){var T=n.call(this,t,r,a,l,u,f,m,E,S)||this;return T.apiId=p,T.nativeStorage=y,T}return e.prototype.acquireToken=function(t){return Ie(this,void 0,void 0,function(){var r,a,l,u,f;return Oe(this,function(p){switch(p.label){case 0:if(this.performanceClient.addQueueMeasurement(Ee.SilentIframeClientAcquireToken,t.correlationId),this.logger.verbose("acquireTokenByIframe called"),r=this.performanceClient.startMeasurement(Ee.SilentIframeClientAcquireToken,t.correlationId),rt.isEmpty(t.loginHint)&&rt.isEmpty(t.sid)&&(!t.account||rt.isEmpty(t.account.username))&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),t.prompt&&t.prompt!==ea.NONE&&t.prompt!==ea.NO_SESSION)throw r.endMeasurement({success:!1}),Ye.createSilentPromptValueError(t.prompt);return this.performanceClient.setPreQueueTime(Ee.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(vt(vt({},t),{prompt:t.prompt||ea.NONE}),pt.Silent)];case 1:a=p.sent(),this.browserStorage.updateCacheEntries(a.state,a.nonce,a.authority,a.loginHint||W.EMPTY_STRING,a.account||null),l=this.initializeServerTelemetryManager(this.apiId),p.label=2;case 2:return p.trys.push([2,5,,6]),this.performanceClient.setPreQueueTime(Ee.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(l,a.authority,a.azureCloudOptions)];case 3:return u=p.sent(),this.logger.verbose("Auth code client created"),this.performanceClient.setPreQueueTime(Ee.SilentIframeClientTokenHelper,t.correlationId),[4,this.silentTokenHelper(u,a).then(function(m){return r.endMeasurement({success:!0,fromCache:!1,requestId:m.requestId}),m})];case 4:return[2,p.sent()];case 5:throw f=p.sent(),f instanceof Et&&f.setCorrelationId(this.correlationId),l.cacheFailedRequest(f),this.browserStorage.cleanRequestByState(a.state),r.endMeasurement({errorCode:f instanceof Et&&f.errorCode||void 0,subErrorCode:f instanceof Et&&f.subError||void 0,success:!1}),f;case 6:return[2]}})})},e.prototype.logout=function(){return Promise.reject(Ye.createSilentLogoutUnsupportedError())},e.prototype.silentTokenHelper=function(t,r){return Ie(this,void 0,void 0,function(){var a,l,u,f,p,m,y,E,S,T=this;return Oe(this,function(A){switch(A.label){case 0:return this.performanceClient.addQueueMeasurement(Ee.SilentIframeClientTokenHelper,r.correlationId),this.performanceClient.setPreQueueTime(Ee.StandardInteractionClientInitializeAuthorizationCodeRequest,r.correlationId),[4,this.initializeAuthorizationCodeRequest(r)];case 1:return a=A.sent(),this.performanceClient.setPreQueueTime(Ee.GetAuthCodeUrl,r.correlationId),[4,t.getAuthCodeUrl(vt(vt({},r),{nativeBroker:Oh.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,r.authenticationScheme)}))];case 2:return l=A.sent(),u=new nP(t,this.browserStorage,a,this.logger,this.config.system,this.performanceClient),this.performanceClient.setPreQueueTime(Ee.SilentHandlerInitiateAuthRequest,r.correlationId),[4,u.initiateAuthRequest(l)];case 3:return f=A.sent(),this.performanceClient.setPreQueueTime(Ee.SilentHandlerMonitorIframeForHash,r.correlationId),[4,u.monitorIframeForHash(f,this.config.system.iframeHashTimeout)];case 4:if(p=A.sent(),m=xn.getDeserializedHash(p),y=this.validateAndExtractStateFromHash(m,pt.Silent,a.correlationId),m.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw Ye.createNativeConnectionNotEstablishedError();return E=new $v(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,m.accountId,this.browserStorage,this.correlationId),S=xc.parseRequestState(this.browserCrypto,y).userRequestState,[2,E.acquireToken(vt(vt({},r),{state:S,prompt:r.prompt||ea.NONE})).finally(function(){T.browserStorage.cleanRequestByState(y)})]}return this.performanceClient.setPreQueueTime(Ee.HandleCodeResponseFromHash,r.correlationId),[2,u.handleCodeResponseFromHash(p,y,t.authority,this.networkClient)]}})})},e}(Fv);/*! @azure/msal-browser v2.38.2 2023-08-24 */var d5=function(n){Do(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.acquireToken=function(t){return Ie(this,void 0,void 0,function(){var r,a,l,u,f,p=this;return Oe(this,function(m){switch(m.label){case 0:return this.performanceClient.addQueueMeasurement(Ee.SilentRefreshClientAcquireToken,t.correlationId),this.performanceClient.setPreQueueTime(Ee.InitializeBaseRequest,t.correlationId),a=[vt({},t)],[4,this.initializeBaseRequest(t,t.account)];case 1:return r=vt.apply(void 0,a.concat([m.sent()])),l=this.performanceClient.startMeasurement(Ee.SilentRefreshClientAcquireToken,r.correlationId),u=this.initializeServerTelemetryManager(_r.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(u,r.authority,r.azureCloudOptions)];case 2:return f=m.sent(),this.logger.verbose("Refresh token client created"),this.performanceClient.setPreQueueTime(Ee.RefreshTokenClientAcquireTokenByRefreshToken,t.correlationId),[2,f.acquireTokenByRefreshToken(r).then(function(y){return l.endMeasurement({success:!0,fromCache:y.fromCache,requestId:y.requestId}),y}).catch(function(y){throw y instanceof Et&&y.setCorrelationId(p.correlationId),u.cacheFailedRequest(y),l.endMeasurement({errorCode:y.errorCode,subErrorCode:y.subError,success:!1}),y})]}})})},e.prototype.logout=function(){return Promise.reject(Ye.createSilentLogoutUnsupportedError())},e.prototype.createRefreshTokenClient=function(t,r,a){return Ie(this,void 0,void 0,function(){var l;return Oe(this,function(u){switch(u.label){case 0:return this.performanceClient.setPreQueueTime(Ee.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,r,a)];case 1:return l=u.sent(),[2,new HM(l,this.performanceClient)]}})})},e}(Fv);/*! @azure/msal-browser v2.38.2 2023-08-24 */var f5=function(){function n(e,t){this.eventCallbacks=new Map,this.logger=e,this.browserCrypto=t,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return n.prototype.addEventCallback=function(e){if(typeof window<"u"){var t=this.browserCrypto.createNewGuid();return this.eventCallbacks.set(t,e),this.logger.verbose("Event callback registered with id: "+t),t}return null},n.prototype.removeEventCallback=function(e){this.eventCallbacks.delete(e),this.logger.verbose("Event callback "+e+" removed.")},n.prototype.enableAccountStorageEvents=function(){typeof window>"u"||(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))},n.prototype.disableAccountStorageEvents=function(){typeof window>"u"||(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))},n.prototype.emitEvent=function(e,t,r,a){var l=this;if(typeof window<"u"){var u={eventType:e,interactionType:t||null,payload:r||null,error:a||null,timestamp:Date.now()};this.logger.info("Emitting event: "+e),this.eventCallbacks.forEach(function(f,p){l.logger.verbose("Emitting event to callback "+p+": "+e),f.apply(null,[u])})}},n.prototype.handleAccountCacheChange=function(e){try{var t=e.newValue||e.oldValue;if(!t)return;var r=JSON.parse(t);if(typeof r!="object"||!Uo.isAccountEntity(r))return;var a=qa.toObject(new Uo,r),l=a.getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(Gt.ACCOUNT_ADDED,void 0,l)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(Gt.ACCOUNT_REMOVED,void 0,l))}catch{return}},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var na=function(){function n(){}return n.decimalToHex=function(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var rP=function(){function n(e){this.cryptoObj=e}return n.prototype.generateGuid=function(){try{var e=new Uint8Array(16);return this.cryptoObj.getRandomValues(e),e[6]|=64,e[6]&=79,e[8]|=128,e[8]&=191,na.decimalToHex(e[0])+na.decimalToHex(e[1])+na.decimalToHex(e[2])+na.decimalToHex(e[3])+"-"+na.decimalToHex(e[4])+na.decimalToHex(e[5])+"-"+na.decimalToHex(e[6])+na.decimalToHex(e[7])+"-"+na.decimalToHex(e[8])+na.decimalToHex(e[9])+"-"+na.decimalToHex(e[10])+na.decimalToHex(e[11])+na.decimalToHex(e[12])+na.decimalToHex(e[13])+na.decimalToHex(e[14])+na.decimalToHex(e[15])}catch{for(var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",r="0123456789abcdef",a=0,l=W.EMPTY_STRING,u=0;u<36;u++)t[u]!=="-"&&t[u]!=="4"&&(a=Math.random()*16|0),t[u]==="x"?l+=r[a]:t[u]==="y"?(a&=3,a|=8,l+=r[a]):l+=t[u];return l}},n.prototype.isGuid=function(e){var t=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;return t.test(e)},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Oc=function(){function n(){}return n.stringToUtf8Arr=function(e){for(var t,r=0,a=e.length,l=0;l<a;l++)t=e.charCodeAt(l),r+=t<128?1:t<2048?2:t<65536?3:t<2097152?4:t<67108864?5:6;for(var u=new Uint8Array(r),f=0,p=0;f<r;p++)t=e.charCodeAt(p),t<128?u[f++]=t:t<2048?(u[f++]=192+(t>>>6),u[f++]=128+(t&63)):t<65536?(u[f++]=224+(t>>>12),u[f++]=128+(t>>>6&63),u[f++]=128+(t&63)):t<2097152?(u[f++]=240+(t>>>18),u[f++]=128+(t>>>12&63),u[f++]=128+(t>>>6&63),u[f++]=128+(t&63)):t<67108864?(u[f++]=248+(t>>>24),u[f++]=128+(t>>>18&63),u[f++]=128+(t>>>12&63),u[f++]=128+(t>>>6&63),u[f++]=128+(t&63)):(u[f++]=252+(t>>>30),u[f++]=128+(t>>>24&63),u[f++]=128+(t>>>18&63),u[f++]=128+(t>>>12&63),u[f++]=128+(t>>>6&63),u[f++]=128+(t&63));return u},n.stringToArrayBuffer=function(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),a=0;a<e.length;a++)r[a]=e.charCodeAt(a);return t},n.utf8ArrToString=function(e){for(var t=W.EMPTY_STRING,r=void 0,a=e.length,l=0;l<a;l++)r=e[l],t+=String.fromCharCode(r>251&&r<254&&l+5<a?(r-252)*1073741824+(e[++l]-128<<24)+(e[++l]-128<<18)+(e[++l]-128<<12)+(e[++l]-128<<6)+e[++l]-128:r>247&&r<252&&l+4<a?(r-248<<24)+(e[++l]-128<<18)+(e[++l]-128<<12)+(e[++l]-128<<6)+e[++l]-128:r>239&&r<248&&l+3<a?(r-240<<18)+(e[++l]-128<<12)+(e[++l]-128<<6)+e[++l]-128:r>223&&r<240&&l+2<a?(r-224<<12)+(e[++l]-128<<6)+e[++l]-128:r>191&&r<224&&l+1<a?(r-192<<6)+e[++l]-128:r);return t},n.getSortedObjectString=function(e){return JSON.stringify(e,Object.keys(e).sort())},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var iP=function(){function n(){}return n.prototype.urlEncode=function(e){return encodeURIComponent(this.encode(e).replace(/=/g,W.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_"))},n.prototype.urlEncodeArr=function(e){return this.base64EncArr(e).replace(/=/g,W.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_")},n.prototype.encode=function(e){var t=Oc.stringToUtf8Arr(e);return this.base64EncArr(t)},n.prototype.base64EncArr=function(e){for(var t=(3-e.length%3)%3,r=W.EMPTY_STRING,a=void 0,l=e.length,u=0,f=0;f<l;f++)a=f%3,u|=e[f]<<(16>>>a&24),(a===2||e.length-f===1)&&(r+=String.fromCharCode(this.uint6ToB64(u>>>18&63),this.uint6ToB64(u>>>12&63),this.uint6ToB64(u>>>6&63),this.uint6ToB64(u&63)),u=0);return t===0?r:r.substring(0,r.length-t)+(t===1?"=":"==")},n.prototype.uint6ToB64=function(e){return e<26?e+65:e<52?e+71:e<62?e-4:e===62?43:e===63?47:65},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var h5=function(){function n(){}return n.prototype.decode=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("Invalid base64 string")}var r=this.base64DecToArr(t);return Oc.utf8ArrToString(r)},n.prototype.base64DecToArr=function(e,t){for(var r=e.replace(/[^A-Za-z0-9\+\/]/g,W.EMPTY_STRING),a=r.length,l=t?Math.ceil((a*3+1>>>2)/t)*t:a*3+1>>>2,u=new Uint8Array(l),f=void 0,p=void 0,m=0,y=0,E=0;E<a;E++)if(p=E&3,m|=this.b64ToUint6(r.charCodeAt(E))<<18-6*p,p===3||a-E===1){for(f=0;f<3&&y<l;f++,y++)u[y]=m>>>(16>>>f&24)&255;m=0}return u},n.prototype.b64ToUint6=function(e){return e>64&&e<91?e-65:e>96&&e<123?e-71:e>47&&e<58?e+4:e===43?62:e===47?63:0},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var p5=32,v5=function(){function n(e){this.base64Encode=new iP,this.cryptoObj=e}return n.prototype.generateCodes=function(){return Ie(this,void 0,void 0,function(){var e,t;return Oe(this,function(r){switch(r.label){case 0:return e=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(e)];case 1:return t=r.sent(),[2,{verifier:e,challenge:t}]}})})},n.prototype.generateCodeVerifier=function(){try{var e=new Uint8Array(p5);this.cryptoObj.getRandomValues(e);var t=this.base64Encode.urlEncodeArr(e);return t}catch(r){throw Ye.createPkceNotGeneratedError(r)}},n.prototype.generateCodeChallengeFromVerifier=function(e){return Ie(this,void 0,void 0,function(){var t,r;return Oe(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(e)];case 1:return t=a.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(t))];case 2:throw r=a.sent(),Ye.createPkceNotGeneratedError(r);case 3:return[2]}})})},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var m5=function(){function n(){}return n.prototype.getRandomValues=function(e){return window.crypto.getRandomValues(e)},n.prototype.generateKey=function(e,t,r){return Ie(this,void 0,void 0,function(){return Oe(this,function(a){return[2,window.crypto.subtle.generateKey(e,t,r)]})})},n.prototype.exportKey=function(e){return Ie(this,void 0,void 0,function(){return Oe(this,function(t){return[2,window.crypto.subtle.exportKey(Uv,e)]})})},n.prototype.importKey=function(e,t,r,a){return Ie(this,void 0,void 0,function(){return Oe(this,function(l){return[2,window.crypto.subtle.importKey(Uv,e,t,r,a)]})})},n.prototype.sign=function(e,t,r){return Ie(this,void 0,void 0,function(){return Oe(this,function(a){return[2,window.crypto.subtle.sign(e,t,r)]})})},n.prototype.digest=function(e,t){return Ie(this,void 0,void 0,function(){return Oe(this,function(r){return[2,window.crypto.subtle.digest(e,t)]})})},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var g5=function(){function n(){}return n.prototype.initPrng=function(e){return window.msrCrypto.initPrng(YR(e))},n.prototype.getRandomValues=function(e){return window.msrCrypto.getRandomValues(e)},n.prototype.generateKey=function(e,t,r){return Ie(this,void 0,void 0,function(){return Oe(this,function(a){return[2,window.msrCrypto.subtle.generateKey(e,t,r)]})})},n.prototype.exportKey=function(e){return Ie(this,void 0,void 0,function(){return Oe(this,function(t){return[2,window.msrCrypto.subtle.exportKey(Uv,e)]})})},n.prototype.importKey=function(e,t,r,a){return Ie(this,void 0,void 0,function(){return Oe(this,function(l){return[2,window.msrCrypto.subtle.importKey(Uv,e,t,r,a)]})})},n.prototype.sign=function(e,t,r){return Ie(this,void 0,void 0,function(){return Oe(this,function(a){return[2,window.msrCrypto.subtle.sign(e,t,r)]})})},n.prototype.digest=function(e,t){return Ie(this,void 0,void 0,function(){return Oe(this,function(r){return[2,window.msrCrypto.subtle.digest(e,t)]})})},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var y5=function(){function n(){}return n.prototype.getRandomValues=function(e){return window.msCrypto.getRandomValues(e)},n.prototype.generateKey=function(e,t,r){return Ie(this,void 0,void 0,function(){return Oe(this,function(a){return[2,new Promise(function(l,u){var f=window.msCrypto.subtle.generateKey(e,t,r);f.addEventListener("complete",function(p){l(p.target.result)}),f.addEventListener("error",function(p){u(p)})})]})})},n.prototype.exportKey=function(e){return Ie(this,void 0,void 0,function(){return Oe(this,function(t){return[2,new Promise(function(r,a){var l=window.msCrypto.subtle.exportKey(Uv,e);l.addEventListener("complete",function(u){var f=u.target.result,p=Oc.utf8ArrToString(new Uint8Array(f)).replace(/\r/g,W.EMPTY_STRING).replace(/\n/g,W.EMPTY_STRING).replace(/\t/g,W.EMPTY_STRING).split(" ").join(W.EMPTY_STRING).replace("\0",W.EMPTY_STRING);try{r(JSON.parse(p))}catch(m){a(m)}}),l.addEventListener("error",function(u){a(u)})})]})})},n.prototype.importKey=function(e,t,r,a){return Ie(this,void 0,void 0,function(){var l,u;return Oe(this,function(f){return l=Oc.getSortedObjectString(e),u=Oc.stringToArrayBuffer(l),[2,new Promise(function(p,m){var y=window.msCrypto.subtle.importKey(Uv,u,t,r,a);y.addEventListener("complete",function(E){p(E.target.result)}),y.addEventListener("error",function(E){m(E)})})]})})},n.prototype.sign=function(e,t,r){return Ie(this,void 0,void 0,function(){return Oe(this,function(a){return[2,new Promise(function(l,u){var f=window.msCrypto.subtle.sign(e,t,r);f.addEventListener("complete",function(p){l(p.target.result)}),f.addEventListener("error",function(p){u(p)})})]})})},n.prototype.digest=function(e,t){return Ie(this,void 0,void 0,function(){return Oe(this,function(r){return[2,new Promise(function(a,l){var u=window.msCrypto.subtle.digest(e,t.buffer);u.addEventListener("complete",function(f){a(f.target.result)}),u.addEventListener("error",function(f){l(f)})})]})})},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var _5="RSASSA-PKCS1-v1_5",oP="SHA-256",C5=2048,E5=new Uint8Array([1,0,1]),aP=function(){function n(e,t){var r,a;if(this.logger=e,this.cryptoOptions=t,this.hasBrowserCrypto())this.logger.verbose("BrowserCrypto: modern crypto interface available"),this.subtleCrypto=new m5;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new y5;else if(this.hasMsrCrypto()&&(!((r=this.cryptoOptions)===null||r===void 0)&&r.useMsrCrypto))this.logger.verbose("BrowserCrypto: MSR crypto interface available"),this.subtleCrypto=new g5;else throw this.hasMsrCrypto()&&this.logger.info("BrowserCrypto: MSR Crypto interface available but system.cryptoOptions.useMsrCrypto not enabled"),this.logger.error("BrowserCrypto: No crypto interfaces available."),Ye.createCryptoNotAvailableError("Browser crypto, msCrypto, or msrCrypto interfaces not available.");if(this.subtleCrypto.initPrng){if(this.logger.verbose("BrowserCrypto: Interface requires entropy"),!(!((a=this.cryptoOptions)===null||a===void 0)&&a.entropy))throw this.logger.error("BrowserCrypto: Interface requires entropy but none provided."),$E.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:_5,hash:oP,modulusLength:C5,publicExponent:E5}}return n.prototype.hasIECrypto=function(){return"msCrypto"in window},n.prototype.hasBrowserCrypto=function(){return"crypto"in window},n.prototype.hasMsrCrypto=function(){return"msrCrypto"in window},n.prototype.sha256Digest=function(e){return Ie(this,void 0,void 0,function(){var t;return Oe(this,function(r){return t=Oc.stringToUtf8Arr(e),[2,this.subtleCrypto.digest({name:oP},t)]})})},n.prototype.getRandomValues=function(e){return this.subtleCrypto.getRandomValues(e)},n.prototype.generateKeyPair=function(e,t){return Ie(this,void 0,void 0,function(){return Oe(this,function(r){return[2,this.subtleCrypto.generateKey(this.keygenAlgorithmOptions,e,t)]})})},n.prototype.exportJwk=function(e){return Ie(this,void 0,void 0,function(){return Oe(this,function(t){return[2,this.subtleCrypto.exportKey(e)]})})},n.prototype.importJwk=function(e,t,r){return Ie(this,void 0,void 0,function(){return Oe(this,function(a){return[2,this.subtleCrypto.importKey(e,this.keygenAlgorithmOptions,t,r)]})})},n.prototype.sign=function(e,t){return Ie(this,void 0,void 0,function(){return Oe(this,function(r){return[2,this.subtleCrypto.sign(this.keygenAlgorithmOptions,e,t)]})})},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var w5=function(){function n(){this.dbName=o1,this.version=JB,this.tableName=ZB,this.dbOpen=!1}return n.prototype.open=function(){return Ie(this,void 0,void 0,function(){var e=this;return Oe(this,function(t){return[2,new Promise(function(r,a){var l=window.indexedDB.open(e.dbName,e.version);l.addEventListener("upgradeneeded",function(u){var f=u;f.target.result.createObjectStore(e.tableName)}),l.addEventListener("success",function(u){var f=u;e.db=f.target.result,e.dbOpen=!0,r()}),l.addEventListener("error",function(){return a(Ye.createDatabaseUnavailableError())})})]})})},n.prototype.closeConnection=function(){var e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)},n.prototype.validateDbIsOpen=function(){return Ie(this,void 0,void 0,function(){return Oe(this,function(e){switch(e.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:return[2,e.sent()];case 2:return[2]}})})},n.prototype.getItem=function(e){return Ie(this,void 0,void 0,function(){var t=this;return Oe(this,function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise(function(a,l){if(!t.db)return l(Ye.createDatabaseNotOpenError());var u=t.db.transaction([t.tableName],"readonly"),f=u.objectStore(t.tableName),p=f.get(e);p.addEventListener("success",function(m){var y=m;t.closeConnection(),a(y.target.result)}),p.addEventListener("error",function(m){t.closeConnection(),l(m)})})]}})})},n.prototype.setItem=function(e,t){return Ie(this,void 0,void 0,function(){var r=this;return Oe(this,function(a){switch(a.label){case 0:return[4,this.validateDbIsOpen()];case 1:return a.sent(),[2,new Promise(function(l,u){if(!r.db)return u(Ye.createDatabaseNotOpenError());var f=r.db.transaction([r.tableName],"readwrite"),p=f.objectStore(r.tableName),m=p.put(t,e);m.addEventListener("success",function(){r.closeConnection(),l()}),m.addEventListener("error",function(y){r.closeConnection(),u(y)})})]}})})},n.prototype.removeItem=function(e){return Ie(this,void 0,void 0,function(){var t=this;return Oe(this,function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise(function(a,l){if(!t.db)return l(Ye.createDatabaseNotOpenError());var u=t.db.transaction([t.tableName],"readwrite"),f=u.objectStore(t.tableName),p=f.delete(e);p.addEventListener("success",function(){t.closeConnection(),a()}),p.addEventListener("error",function(m){t.closeConnection(),l(m)})})]}})})},n.prototype.getKeys=function(){return Ie(this,void 0,void 0,function(){var e=this;return Oe(this,function(t){switch(t.label){case 0:return[4,this.validateDbIsOpen()];case 1:return t.sent(),[2,new Promise(function(r,a){if(!e.db)return a(Ye.createDatabaseNotOpenError());var l=e.db.transaction([e.tableName],"readonly"),u=l.objectStore(e.tableName),f=u.getAllKeys();f.addEventListener("success",function(p){var m=p;e.closeConnection(),r(m.target.result)}),f.addEventListener("error",function(p){e.closeConnection(),a(p)})})]}})})},n.prototype.containsKey=function(e){return Ie(this,void 0,void 0,function(){var t=this;return Oe(this,function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise(function(a,l){if(!t.db)return l(Ye.createDatabaseNotOpenError());var u=t.db.transaction([t.tableName],"readonly"),f=u.objectStore(t.tableName),p=f.count(e);p.addEventListener("success",function(m){var y=m;t.closeConnection(),a(y.target.result===1)}),p.addEventListener("error",function(m){t.closeConnection(),l(m)})})]}})})},n.prototype.deleteDatabase=function(){return Ie(this,void 0,void 0,function(){return Oe(this,function(e){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise(function(t,r){var a=window.indexedDB.deleteDatabase(o1);a.addEventListener("success",function(){return t(!0)}),a.addEventListener("blocked",function(){return t(!0)}),a.addEventListener("error",function(){return r(!1)})})]})})},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var sP=function(){function n(e,t){this.inMemoryCache=new a1,this.indexedDBCache=new w5,this.logger=e,this.storeName=t}return n.prototype.handleDatabaseAccessError=function(e){if(e instanceof Ye&&e.errorCode===Fe.databaseUnavailable.code)this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.");else throw e},n.prototype.getItem=function(e){return Ie(this,void 0,void 0,function(){var t,r;return Oe(this,function(a){switch(a.label){case 0:if(t=this.inMemoryCache.getItem(e),t)return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.getItem(e)];case 2:return[2,a.sent()];case 3:return r=a.sent(),this.handleDatabaseAccessError(r),[3,4];case 4:return[2,t]}})})},n.prototype.setItem=function(e,t){return Ie(this,void 0,void 0,function(){var r;return Oe(this,function(a){switch(a.label){case 0:this.inMemoryCache.setItem(e,t),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.indexedDBCache.setItem(e,t)];case 2:return a.sent(),[3,4];case 3:return r=a.sent(),this.handleDatabaseAccessError(r),[3,4];case 4:return[2]}})})},n.prototype.removeItem=function(e){return Ie(this,void 0,void 0,function(){var t;return Oe(this,function(r){switch(r.label){case 0:this.inMemoryCache.removeItem(e),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.indexedDBCache.removeItem(e)];case 2:return r.sent(),[3,4];case 3:return t=r.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2]}})})},n.prototype.getKeys=function(){return Ie(this,void 0,void 0,function(){var e,t;return Oe(this,function(r){switch(r.label){case 0:if(e=this.inMemoryCache.getKeys(),e.length!==0)return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),this.logger.verbose("In-memory cache is empty, now querying persistent storage."),[4,this.indexedDBCache.getKeys()];case 2:return[2,r.sent()];case 3:return t=r.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2,e]}})})},n.prototype.containsKey=function(e){return Ie(this,void 0,void 0,function(){var t,r;return Oe(this,function(a){switch(a.label){case 0:if(t=this.inMemoryCache.containsKey(e),t)return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.containsKey(e)];case 2:return[2,a.sent()];case 3:return r=a.sent(),this.handleDatabaseAccessError(r),[3,4];case 4:return[2,t]}})})},n.prototype.clearInMemory=function(){this.logger.verbose("Deleting in-memory keystore "+this.storeName),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore "+this.storeName+" deleted")},n.prototype.clearPersistent=function(){return Ie(this,void 0,void 0,function(){var e,t;return Oe(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),this.logger.verbose("Deleting persistent keystore"),[4,this.indexedDBCache.deleteDatabase()];case 1:return e=r.sent(),e&&this.logger.verbose("Persistent keystore deleted"),[2,e];case 2:return t=r.sent(),this.handleDatabaseAccessError(t),[2,!1];case 3:return[2]}})})},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var HE;(function(n){n.asymmetricKeys="asymmetricKeys",n.symmetricKeys="symmetricKeys"})(HE||(HE={}));var b5=function(){function n(e){this.logger=e,this.asymmetricKeys=new sP(this.logger,HE.asymmetricKeys),this.symmetricKeys=new sP(this.logger,HE.symmetricKeys)}return n.prototype.clear=function(){return Ie(this,void 0,void 0,function(){var e;return Oe(this,function(t){switch(t.label){case 0:this.asymmetricKeys.clearInMemory(),this.symmetricKeys.clearInMemory(),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.asymmetricKeys.clearPersistent()];case 2:return t.sent(),[2,!0];case 3:return e=t.sent(),e instanceof Error?this.logger.error("Clearing keystore failed with error: "+e.message):this.logger.error("Clearing keystore failed with unknown error"),[2,!1];case 4:return[2]}})})},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var S5=function(){function n(e,t,r){this.logger=e,this.browserCrypto=new aP(this.logger,r),this.b64Encode=new iP,this.b64Decode=new h5,this.guidGenerator=new rP(this.browserCrypto),this.pkceGenerator=new v5(this.browserCrypto),this.cache=new b5(this.logger),this.performanceClient=t}return n.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},n.prototype.base64Encode=function(e){return this.b64Encode.encode(e)},n.prototype.base64Decode=function(e){return this.b64Decode.decode(e)},n.prototype.generatePkceCodes=function(){return Ie(this,void 0,void 0,function(){return Oe(this,function(e){return[2,this.pkceGenerator.generateCodes()]})})},n.prototype.getPublicKeyThumbprint=function(e){var t;return Ie(this,void 0,void 0,function(){var r,a,l,u,f,p,m,y;return Oe(this,function(E){switch(E.label){case 0:return r=(t=this.performanceClient)===null||t===void 0?void 0:t.startMeasurement(Ee.CryptoOptsGetPublicKeyThumbprint,e.correlationId),[4,this.browserCrypto.generateKeyPair(n.EXTRACTABLE,n.POP_KEY_USAGES)];case 1:return a=E.sent(),[4,this.browserCrypto.exportJwk(a.publicKey)];case 2:return l=E.sent(),u={e:l.e,kty:l.kty,n:l.n},f=Oc.getSortedObjectString(u),[4,this.hashString(f)];case 3:return p=E.sent(),[4,this.browserCrypto.exportJwk(a.privateKey)];case 4:return m=E.sent(),[4,this.browserCrypto.importJwk(m,!1,["sign"])];case 5:return y=E.sent(),[4,this.cache.asymmetricKeys.setItem(p,{privateKey:y,publicKey:a.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri})];case 6:return E.sent(),r&&r.endMeasurement({success:!0}),[2,p]}})})},n.prototype.removeTokenBindingKey=function(e){return Ie(this,void 0,void 0,function(){var t;return Oe(this,function(r){switch(r.label){case 0:return[4,this.cache.asymmetricKeys.removeItem(e)];case 1:return r.sent(),[4,this.cache.asymmetricKeys.containsKey(e)];case 2:return t=r.sent(),[2,!t]}})})},n.prototype.clearKeystore=function(){return Ie(this,void 0,void 0,function(){return Oe(this,function(e){switch(e.label){case 0:return[4,this.cache.clear()];case 1:return[2,e.sent()]}})})},n.prototype.signJwt=function(e,t,r){var a;return Ie(this,void 0,void 0,function(){var l,u,f,p,m,y,E,S,T,A,I,P,D;return Oe(this,function(L){switch(L.label){case 0:return l=(a=this.performanceClient)===null||a===void 0?void 0:a.startMeasurement(Ee.CryptoOptsSignJwt,r),[4,this.cache.asymmetricKeys.getItem(t)];case 1:if(u=L.sent(),!u)throw Ye.createSigningKeyNotFoundInStorageError(t);return[4,this.browserCrypto.exportJwk(u.publicKey)];case 2:return f=L.sent(),p=Oc.getSortedObjectString(f),m=this.b64Encode.urlEncode(JSON.stringify({kid:t})),y=YB.getShrHeaderString({kid:m,alg:f.alg}),E=this.b64Encode.urlEncode(y),e.cnf={jwk:JSON.parse(p)},S=this.b64Encode.urlEncode(JSON.stringify(e)),T=E+"."+S,A=Oc.stringToArrayBuffer(T),[4,this.browserCrypto.sign(u.privateKey,A)];case 3:return I=L.sent(),P=this.b64Encode.urlEncodeArr(new Uint8Array(I)),D=T+"."+P,l&&l.endMeasurement({success:!0}),[2,D]}})})},n.prototype.hashString=function(e){return Ie(this,void 0,void 0,function(){var t,r;return Oe(this,function(a){switch(a.label){case 0:return[4,this.browserCrypto.sha256Digest(e)];case 1:return t=a.sent(),r=new Uint8Array(t),[2,this.b64Encode.urlEncodeArr(r)]}})})},n.POP_KEY_USAGES=["sign","verify"],n.EXTRACTABLE=!0,n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var lP=function(){function n(e,t){this.correlationId=t,this.measureName=n.makeMeasureName(e,t),this.startMark=n.makeStartMark(e,t),this.endMark=n.makeEndMark(e,t)}return n.makeMeasureName=function(e,t){return"msal.measure."+e+"."+t},n.makeStartMark=function(e,t){return"msal.start."+e+"."+t},n.makeEndMark=function(e,t){return"msal.end."+e+"."+t},n.supportsBrowserPerformance=function(){return typeof window<"u"&&typeof window.performance<"u"&&typeof window.performance.mark=="function"&&typeof window.performance.measure=="function"&&typeof window.performance.clearMarks=="function"&&typeof window.performance.clearMeasures=="function"&&typeof window.performance.getEntriesByName=="function"},n.flushMeasurements=function(e,t){if(n.supportsBrowserPerformance())try{t.forEach(function(r){var a=n.makeMeasureName(r.name,e),l=window.performance.getEntriesByName(a,"measure");l.length>0&&(window.performance.clearMeasures(a),window.performance.clearMarks(n.makeStartMark(a,e)),window.performance.clearMarks(n.makeEndMark(a,e)))})}catch{}},n.prototype.startMeasurement=function(){if(n.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch{}},n.prototype.endMeasurement=function(){if(n.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch{}},n.prototype.flushMeasurement=function(){if(n.supportsBrowserPerformance())try{var e=window.performance.getEntriesByName(this.measureName,"measure");if(e.length>0){var t=e[0].duration;return window.performance.clearMeasures(this.measureName),window.performance.clearMarks(this.startMark),window.performance.clearMarks(this.endMark),t}}catch{}return null},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var T5=function(n){Do(e,n);function e(t,r,a,l,u,f,p){var m=n.call(this,t,r,a,l,u,f)||this;return m.browserCrypto=new aP(m.logger,p),m.guidGenerator=new rP(m.browserCrypto),m}return e.prototype.startPerformanceMeasuremeant=function(t,r){return new lP(t,r)},e.prototype.generateId=function(){return this.guidGenerator.generateGuid()},e.prototype.getPageVisibility=function(){var t;return((t=document.visibilityState)===null||t===void 0?void 0:t.toString())||null},e.prototype.deleteIncompleteSubMeasurements=function(t){var r=this.eventsByCorrelationId.get(t.event.correlationId),a=r&&r.eventId===t.event.eventId,l=[];a&&(r!=null&&r.incompleteSubMeasurements)&&r.incompleteSubMeasurements.forEach(function(u){l.push(vt({},u))}),l.length>0&&lP.flushMeasurements(t.event.correlationId,l)},e.prototype.supportsBrowserPerformanceNow=function(){return typeof window<"u"&&typeof window.performance<"u"&&typeof window.performance.now=="function"},e.prototype.startMeasurement=function(t,r){var a=this,l=this.getPageVisibility(),u=n.prototype.startMeasurement.call(this,t,r);return vt(vt({},u),{endMeasurement:function(f){var p=u.endMeasurement(vt({startPageVisibility:l,endPageVisibility:a.getPageVisibility()},f));return a.deleteIncompleteSubMeasurements(u),p},discardMeasurement:function(){u.discardMeasurement(),a.deleteIncompleteSubMeasurements(u),u.measurement.flushMeasurement()}})},e.prototype.setPreQueueTime=function(t,r){if(!this.supportsBrowserPerformanceNow()){this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to set telemetry queue time for "+t);return}if(!r){this.logger.trace("BrowserPerformanceClient: correlationId for "+t+" not provided, unable to set telemetry queue time");return}var a=this.preQueueTimeByCorrelationId.get(r);a&&(this.logger.trace("BrowserPerformanceClient: Incomplete pre-queue "+a.name+" found",r),this.addQueueMeasurement(a.name,r,void 0,!0)),this.preQueueTimeByCorrelationId.set(r,{name:t,time:window.performance.now()})},e.prototype.addQueueMeasurement=function(t,r,a,l){if(!this.supportsBrowserPerformanceNow()){this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to add queue measurement for "+t);return}if(!r){this.logger.trace("BrowserPerformanceClient: correlationId for "+t+" not provided, unable to add queue measurement");return}var u=n.prototype.getPreQueueTime.call(this,t,r);if(u){var f=window.performance.now(),p=a||n.prototype.calculateQueuedTime.call(this,u,f);return n.prototype.addQueueMeasurement.call(this,t,r,p,l)}},e}(KM);/*! @azure/msal-browser v2.38.2 2023-08-24 */var R5=function(){function n(e,t,r,a){this.isBrowserEnvironment=typeof window<"u",this.config=e,this.storage=t,this.logger=r,this.cryptoObj=a}return n.prototype.loadExternalTokens=function(e,t,r){if(this.logger.info("TokenCache - loadExternalTokens called"),!t.id_token)throw Ye.createUnableToLoadTokenError("Please ensure server response includes id token.");var a=new fu(t.id_token,this.cryptoObj),l,u;if(e.account){var f=this.loadAccount(a,e.account.environment,void 0,void 0,e.account.homeAccountId);l=new Ky(f,this.loadIdToken(a,f.homeAccountId,e.account.environment,e.account.tenantId),this.loadAccessToken(e,t,f.homeAccountId,e.account.environment,e.account.tenantId,r),this.loadRefreshToken(e,t,f.homeAccountId,e.account.environment))}else if(e.authority){var p=Wy.generateAuthority(e.authority,e.azureCloudOptions),m={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache};if(u=new Wy(p,this.config.system.networkClient,this.storage,m,this.logger),r.clientInfo){this.logger.trace("TokenCache - homeAccountId from options");var f=this.loadAccount(a,u.hostnameAndPort,r.clientInfo,u.authorityType);l=new Ky(f,this.loadIdToken(a,f.homeAccountId,u.hostnameAndPort,u.tenant),this.loadAccessToken(e,t,f.homeAccountId,u.hostnameAndPort,u.tenant,r),this.loadRefreshToken(e,t,f.homeAccountId,u.hostnameAndPort))}else if(t.client_info){this.logger.trace("TokenCache - homeAccountId from response");var f=this.loadAccount(a,u.hostnameAndPort,t.client_info,u.authorityType);l=new Ky(f,this.loadIdToken(a,f.homeAccountId,u.hostnameAndPort,u.tenant),this.loadAccessToken(e,t,f.homeAccountId,u.hostnameAndPort,u.tenant,r),this.loadRefreshToken(e,t,f.homeAccountId,u.hostnameAndPort))}else throw Ye.createUnableToLoadTokenError("Please provide clientInfo in the response or options.")}else throw Ye.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");return this.generateAuthenticationResult(e,a,l,u)},n.prototype.loadAccount=function(e,t,r,a,l){var u;if(l?u=l:a!==void 0&&r&&(u=Uo.generateHomeAccountId(r,a,this.logger,this.cryptoObj,e)),!u)throw Ye.createUnableToLoadTokenError("Unexpected missing homeAccountId");var f=r?Uo.createAccount(r,u,e,void 0,void 0,void 0,t):Uo.createGenericAccount(u,e,void 0,void 0,void 0,t);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading account"),this.storage.setAccount(f),f;throw Ye.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},n.prototype.loadIdToken=function(e,t,r,a){var l=xh.createIdTokenEntity(t,r,e.rawToken,this.config.auth.clientId,a);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading id token"),this.storage.setIdTokenCredential(l),l;throw Ye.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},n.prototype.loadAccessToken=function(e,t,r,a,l,u){if(!t.access_token)return this.logger.verbose("TokenCache - No access token provided for caching"),null;if(!t.expires_in)throw Ye.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!u.extendedExpiresOn)throw Ye.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var f=new ta(e.scopes).printScopes(),p=u.expiresOn||t.expires_in+new Date().getTime()/1e3,m=u.extendedExpiresOn,y=Ih.createAccessTokenEntity(r,a,t.access_token,this.config.auth.clientId,l,f,p,m,this.cryptoObj);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(y),y;throw Ye.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},n.prototype.loadRefreshToken=function(e,t,r,a){if(!t.refresh_token)return this.logger.verbose("TokenCache - No refresh token provided for caching"),null;var l=Mv.createRefreshTokenEntity(r,a,t.refresh_token,this.config.auth.clientId);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading refresh token"),this.storage.setRefreshTokenCredential(l),l;throw Ye.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},n.prototype.generateAuthenticationResult=function(e,t,r,a){var l,u,f,p=W.EMPTY_STRING,m=[],y=null,E;r!=null&&r.accessToken&&(p=r.accessToken.secret,m=ta.fromString(r.accessToken.target).asArray(),y=new Date(Number(r.accessToken.expiresOn)*1e3),E=new Date(Number(r.accessToken.extendedExpiresOn)*1e3));var S=(t==null?void 0:t.claims.oid)||(t==null?void 0:t.claims.sub)||W.EMPTY_STRING,T=(t==null?void 0:t.claims.tid)||W.EMPTY_STRING;return{authority:a?a.canonicalAuthority:W.EMPTY_STRING,uniqueId:S,tenantId:T,scopes:m,account:r!=null&&r.account?r.account.getAccountInfo():null,idToken:t?t.rawToken:W.EMPTY_STRING,idTokenClaims:t?t.claims:{},accessToken:p,fromCache:!0,expiresOn:y,correlationId:e.correlationId||W.EMPTY_STRING,requestId:W.EMPTY_STRING,extExpiresOn:E,familyId:W.EMPTY_STRING,tokenType:((l=r==null?void 0:r.accessToken)===null||l===void 0?void 0:l.tokenType)||W.EMPTY_STRING,state:W.EMPTY_STRING,cloudGraphHostName:((u=r==null?void 0:r.account)===null||u===void 0?void 0:u.cloudGraphHostName)||W.EMPTY_STRING,msGraphHost:((f=r==null?void 0:r.account)===null||f===void 0?void 0:f.msGraphHost)||W.EMPTY_STRING,code:void 0,fromNativeBroker:!1}},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var k5=function(n){Do(e,n);function e(t){var r=n.call(this,t)||this;return r.includeRedirectUri=!1,r}return e}($M);/*! @azure/msal-browser v2.38.2 2023-08-24 */var A5=function(n){Do(e,n);function e(t,r,a,l,u,f,p,m,y,E){var S=n.call(this,t,r,a,l,u,f,m,y,E)||this;return S.apiId=p,S}return e.prototype.acquireToken=function(t){return Ie(this,void 0,void 0,function(){var r,a,l,u,f,p,m;return Oe(this,function(y){switch(y.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!t.code)throw Ye.createAuthCodeRequiredError();return this.performanceClient.setPreQueueTime(Ee.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,pt.Silent)];case 1:r=y.sent(),this.browserStorage.updateCacheEntries(r.state,r.nonce,r.authority,r.loginHint||W.EMPTY_STRING,r.account||null),a=this.initializeServerTelemetryManager(this.apiId),y.label=2;case 2:return y.trys.push([2,4,,5]),l=vt(vt({},r),{code:t.code}),this.performanceClient.setPreQueueTime(Ee.StandardInteractionClientGetClientConfiguration,t.correlationId),[4,this.getClientConfiguration(a,r.authority)];case 3:return u=y.sent(),f=new k5(u),this.logger.verbose("Auth code client created"),p=new nP(f,this.browserStorage,l,this.logger,this.config.system,this.performanceClient),[2,p.handleCodeResponseFromServer({code:t.code,msgraph_host:t.msGraphHost,cloud_graph_host_name:t.cloudGraphHostName,cloud_instance_host_name:t.cloudInstanceHostName},r.state,f.authority,this.networkClient,!1)];case 4:throw m=y.sent(),m instanceof Et&&m.setCorrelationId(this.correlationId),a.cacheFailedRequest(m),this.browserStorage.cleanRequestByState(r.state),m;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(Ye.createSilentLogoutUnsupportedError())},e}(Fv);/*! @azure/msal-browser v2.38.2 2023-08-24 */var x5=function(){function n(e){this.isBrowserEnvironment=typeof window<"u",this.config=u5(e,this.isBrowserEnvironment),this.initialized=!1,this.logger=new OE(this.config.system.loggerOptions,l1,Qy),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.isBrowserEnvironment?new T5(this.config.auth.clientId,this.config.auth.authority,this.logger,l1,Qy,this.config.telemetry.application,this.config.system.cryptoOptions):new XB(this.config.auth.clientId,this.config.auth.authority,this.logger,l1,Qy,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new S5(this.logger,this.performanceClient,this.config.system.cryptoOptions):IE,this.eventHandler=new f5(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new s1(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):e5(this.config.auth.clientId,this.logger);var t={cacheLocation:Mi.MemoryStorage,temporaryCacheLocation:Mi.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};this.nativeInternalStorage=new s1(this.config.auth.clientId,t,this.browserCrypto,this.logger),this.tokenCache=new R5(this.config,this.browserStorage,this.logger,this.browserCrypto),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this)}return n.prototype.initialize=function(){return Ie(this,void 0,void 0,function(){var e,t,r,a,l;return Oe(this,function(u){switch(u.label){case 0:if(this.logger.trace("initialize called"),this.initialized)return this.logger.info("initialize has already been called, exiting early."),[2];if(e=this.config.system.allowNativeBroker,t=this.performanceClient.startMeasurement(Ee.InitializeClientApplication),this.eventHandler.emitEvent(Gt.INITIALIZE_START),!e)return[3,4];u.label=1;case 1:return u.trys.push([1,3,,4]),r=this,[4,Oh.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)];case 2:return r.nativeExtensionProvider=u.sent(),[3,4];case 3:return a=u.sent(),this.logger.verbose(a),[3,4];case 4:return this.config.cache.claimsBasedCachingEnabled?[3,6]:(this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims"),l=this.performanceClient.startMeasurement(Ee.ClearTokensAndKeysWithClaims),[4,this.browserStorage.clearTokensAndKeysWithClaims()]);case 5:u.sent(),l.endMeasurement({success:!0}),u.label=6;case 6:return this.initialized=!0,this.eventHandler.emitEvent(Gt.INITIALIZE_END),t.endMeasurement({allowNativeBroker:e,success:!0}),[2]}})})},n.prototype.handleRedirectPromise=function(e){return Ie(this,void 0,void 0,function(){var t,r,a,l,u,f,p,m,y=this;return Oe(this,function(E){return this.logger.verbose("handleRedirectPromise called"),ri.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),t=this.getAllAccounts(),this.isBrowserEnvironment?(r=e||W.EMPTY_STRING,a=this.redirectResponse.get(r),typeof a>"u"?(this.eventHandler.emitEvent(Gt.HANDLE_REDIRECT_START,pt.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),l=this.browserStorage.getCachedNativeRequest(),u=void 0,l&&Oh.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),f=new $v(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,_r.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,l.accountId,this.nativeInternalStorage,l.correlationId),u=f.handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),p=this.browserStorage.getTemporaryCache(Dn.CORRELATION_ID,!0)||W.EMPTY_STRING,m=this.createRedirectClient(p),u=m.handleRedirectPromise(e)),a=u.then(function(S){if(S){var T=t.length<y.getAllAccounts().length;T?(y.eventHandler.emitEvent(Gt.LOGIN_SUCCESS,pt.Redirect,S),y.logger.verbose("handleRedirectResponse returned result, login success")):(y.eventHandler.emitEvent(Gt.ACQUIRE_TOKEN_SUCCESS,pt.Redirect,S),y.logger.verbose("handleRedirectResponse returned result, acquire token success"))}return y.eventHandler.emitEvent(Gt.HANDLE_REDIRECT_END,pt.Redirect),S}).catch(function(S){throw t.length>0?y.eventHandler.emitEvent(Gt.ACQUIRE_TOKEN_FAILURE,pt.Redirect,null,S):y.eventHandler.emitEvent(Gt.LOGIN_FAILURE,pt.Redirect,null,S),y.eventHandler.emitEvent(Gt.HANDLE_REDIRECT_END,pt.Redirect),S}),this.redirectResponse.set(r,a)):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),[2,a]):(this.logger.verbose("handleRedirectPromise returns null, not browser environment"),[2,null])})})},n.prototype.acquireTokenRedirect=function(e){return Ie(this,void 0,void 0,function(){var t,r,a,l,u,f=this;return Oe(this,function(p){return t=this.getRequestCorrelationId(e),this.logger.verbose("acquireTokenRedirect called",t),this.preflightBrowserEnvironmentCheck(pt.Redirect),r=this.getAllAccounts().length>0,r?this.eventHandler.emitEvent(Gt.ACQUIRE_TOKEN_START,pt.Redirect,e):this.eventHandler.emitEvent(Gt.LOGIN_START,pt.Redirect,e),this.nativeExtensionProvider&&this.canUseNative(e)?(l=new $v(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,_r.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),a=l.acquireTokenRedirect(e).catch(function(m){if(m instanceof vu&&m.isFatal()){f.nativeExtensionProvider=void 0;var y=f.createRedirectClient(e.correlationId);return y.acquireToken(e)}else if(m instanceof yl){f.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");var y=f.createRedirectClient(e.correlationId);return y.acquireToken(e)}throw f.browserStorage.setInteractionInProgress(!1),m})):(u=this.createRedirectClient(e.correlationId),a=u.acquireToken(e)),[2,a.catch(function(m){throw r?f.eventHandler.emitEvent(Gt.ACQUIRE_TOKEN_FAILURE,pt.Redirect,null,m):f.eventHandler.emitEvent(Gt.LOGIN_FAILURE,pt.Redirect,null,m),m})]})})},n.prototype.acquireTokenPopup=function(e){var t=this,r=this.getRequestCorrelationId(e),a=this.performanceClient.startMeasurement(Ee.AcquireTokenPopup,r);try{this.logger.verbose("acquireTokenPopup called",r),this.preflightBrowserEnvironmentCheck(pt.Popup)}catch(p){return Promise.reject(p)}var l=this.getAllAccounts();l.length>0?this.eventHandler.emitEvent(Gt.ACQUIRE_TOKEN_START,pt.Popup,e):this.eventHandler.emitEvent(Gt.LOGIN_START,pt.Popup,e);var u;if(this.canUseNative(e))u=this.acquireTokenNative(e,_r.acquireTokenPopup).then(function(p){return t.browserStorage.setInteractionInProgress(!1),a.endMeasurement({success:!0,isNativeBroker:!0,requestId:p.requestId}),p}).catch(function(p){if(p instanceof vu&&p.isFatal()){t.nativeExtensionProvider=void 0;var m=t.createPopupClient(e.correlationId);return m.acquireToken(e)}else if(p instanceof yl){t.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");var m=t.createPopupClient(e.correlationId);return m.acquireToken(e)}throw t.browserStorage.setInteractionInProgress(!1),p});else{var f=this.createPopupClient(e.correlationId);u=f.acquireToken(e)}return u.then(function(p){var m=l.length<t.getAllAccounts().length;return m?t.eventHandler.emitEvent(Gt.LOGIN_SUCCESS,pt.Popup,p):t.eventHandler.emitEvent(Gt.ACQUIRE_TOKEN_SUCCESS,pt.Popup,p),a.addStaticFields({accessTokenSize:p.accessToken.length,idTokenSize:p.idToken.length}),a.endMeasurement({success:!0,requestId:p.requestId}),p}).catch(function(p){return l.length>0?t.eventHandler.emitEvent(Gt.ACQUIRE_TOKEN_FAILURE,pt.Popup,null,p):t.eventHandler.emitEvent(Gt.LOGIN_FAILURE,pt.Popup,null,p),a.endMeasurement({errorCode:p.errorCode,subErrorCode:p.subError,success:!1}),Promise.reject(p)})},n.prototype.trackPageVisibilityWithMeasurement=function(){var e=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;e&&(this.logger.info("Perf: Visibility change detected in ",e.event.name),e.increment({visibilityChangeCount:1}))},n.prototype.ssoSilent=function(e){var t;return Ie(this,void 0,void 0,function(){var r,a,l,u,f=this;return Oe(this,function(p){return r=this.getRequestCorrelationId(e),a=vt(vt({},e),{prompt:e.prompt,correlationId:r}),this.preflightBrowserEnvironmentCheck(pt.Silent),this.ssoSilentMeasurement=this.performanceClient.startMeasurement(Ee.SsoSilent,r),(t=this.ssoSilentMeasurement)===null||t===void 0||t.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",r),this.eventHandler.emitEvent(Gt.SSO_SILENT_START,pt.Silent,a),this.canUseNative(a)?l=this.acquireTokenNative(a,_r.ssoSilent).catch(function(m){if(m instanceof vu&&m.isFatal()){f.nativeExtensionProvider=void 0;var y=f.createSilentIframeClient(a.correlationId);return y.acquireToken(a)}throw m}):(u=this.createSilentIframeClient(a.correlationId),l=u.acquireToken(a)),[2,l.then(function(m){var y,E;return f.eventHandler.emitEvent(Gt.SSO_SILENT_SUCCESS,pt.Silent,m),(y=f.ssoSilentMeasurement)===null||y===void 0||y.addStaticFields({accessTokenSize:m.accessToken.length,idTokenSize:m.idToken.length}),(E=f.ssoSilentMeasurement)===null||E===void 0||E.endMeasurement({success:!0,isNativeBroker:m.fromNativeBroker,requestId:m.requestId}),m}).catch(function(m){var y;throw f.eventHandler.emitEvent(Gt.SSO_SILENT_FAILURE,pt.Silent,null,m),(y=f.ssoSilentMeasurement)===null||y===void 0||y.endMeasurement({errorCode:m.errorCode,subErrorCode:m.subError,success:!1}),m}).finally(function(){document.removeEventListener("visibilitychange",f.trackPageVisibilityWithMeasurement)})]})})},n.prototype.acquireTokenByCode=function(e){return Ie(this,void 0,void 0,function(){var t,r,a,l,u=this;return Oe(this,function(f){t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(pt.Silent),this.logger.trace("acquireTokenByCode called",t),this.eventHandler.emitEvent(Gt.ACQUIRE_TOKEN_BY_CODE_START,pt.Silent,e),r=this.performanceClient.startMeasurement(Ee.AcquireTokenByCode,e.correlationId);try{if(e.code&&e.nativeAccountId)throw Ye.createSpaCodeAndNativeAccountIdPresentError();if(e.code)return a=e.code,l=this.hybridAuthCodeResponses.get(a),l?(this.logger.verbose("Existing acquireTokenByCode request found",e.correlationId),r.discardMeasurement()):(this.logger.verbose("Initiating new acquireTokenByCode request",t),l=this.acquireTokenByCodeAsync(vt(vt({},e),{correlationId:t})).then(function(p){return u.eventHandler.emitEvent(Gt.ACQUIRE_TOKEN_BY_CODE_SUCCESS,pt.Silent,p),u.hybridAuthCodeResponses.delete(a),r.addStaticFields({accessTokenSize:p.accessToken.length,idTokenSize:p.idToken.length}),r.endMeasurement({success:!0,isNativeBroker:p.fromNativeBroker,requestId:p.requestId}),p}).catch(function(p){throw u.hybridAuthCodeResponses.delete(a),u.eventHandler.emitEvent(Gt.ACQUIRE_TOKEN_BY_CODE_FAILURE,pt.Silent,null,p),r.endMeasurement({errorCode:p.errorCode,subErrorCode:p.subError,success:!1}),p}),this.hybridAuthCodeResponses.set(a,l)),[2,l];if(e.nativeAccountId){if(this.canUseNative(e,e.nativeAccountId))return[2,this.acquireTokenNative(e,_r.acquireTokenByCode,e.nativeAccountId).catch(function(p){throw p instanceof vu&&p.isFatal()&&(u.nativeExtensionProvider=void 0),p})];throw Ye.createUnableToAcquireTokenFromNativePlatformError()}else throw Ye.createAuthCodeOrNativeAccountIdRequiredError()}catch(p){throw this.eventHandler.emitEvent(Gt.ACQUIRE_TOKEN_BY_CODE_FAILURE,pt.Silent,null,p),r.endMeasurement({errorCode:p instanceof Et&&p.errorCode||void 0,subErrorCode:p instanceof Et&&p.subError||void 0,success:!1}),p}return[2]})})},n.prototype.acquireTokenByCodeAsync=function(e){var t;return Ie(this,void 0,void 0,function(){var r,a,l=this;return Oe(this,function(u){switch(u.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(Ee.AcquireTokenByCodeAsync,e.correlationId),(t=this.acquireTokenByCodeAsyncMeasurement)===null||t===void 0||t.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),r=this.createSilentAuthCodeClient(e.correlationId),[4,r.acquireToken(e).then(function(f){var p;return(p=l.acquireTokenByCodeAsyncMeasurement)===null||p===void 0||p.endMeasurement({success:!0,fromCache:f.fromCache,isNativeBroker:f.fromNativeBroker,requestId:f.requestId}),f}).catch(function(f){var p;throw(p=l.acquireTokenByCodeAsyncMeasurement)===null||p===void 0||p.endMeasurement({errorCode:f.errorCode,subErrorCode:f.subError,success:!1}),f}).finally(function(){document.removeEventListener("visibilitychange",l.trackPageVisibilityWithMeasurement)})];case 1:return a=u.sent(),[2,a]}})})},n.prototype.acquireTokenFromCache=function(e,t,r){return Ie(this,void 0,void 0,function(){return Oe(this,function(a){switch(this.performanceClient.addQueueMeasurement(Ee.AcquireTokenFromCache,t.correlationId),r.cacheLookupPolicy){case Va.Default:case Va.AccessToken:case Va.AccessTokenAndRefreshToken:return[2,e.acquireToken(t)];default:throw nt.createRefreshRequiredError()}return[2]})})},n.prototype.acquireTokenByRefreshToken=function(e,t){return Ie(this,void 0,void 0,function(){var r;return Oe(this,function(a){switch(this.performanceClient.addQueueMeasurement(Ee.AcquireTokenByRefreshToken,e.correlationId),t.cacheLookupPolicy){case Va.Default:case Va.AccessTokenAndRefreshToken:case Va.RefreshToken:case Va.RefreshTokenAndNetwork:return r=this.createSilentRefreshClient(e.correlationId),this.performanceClient.setPreQueueTime(Ee.SilentRefreshClientAcquireToken,e.correlationId),[2,r.acquireToken(e)];default:throw nt.createRefreshRequiredError()}return[2]})})},n.prototype.acquireTokenBySilentIframe=function(e){return Ie(this,void 0,void 0,function(){var t;return Oe(this,function(r){return this.performanceClient.addQueueMeasurement(Ee.AcquireTokenBySilentIframe,e.correlationId),t=this.createSilentIframeClient(e.correlationId),this.performanceClient.setPreQueueTime(Ee.SilentIframeClientAcquireToken,e.correlationId),[2,t.acquireToken(e)]})})},n.prototype.logout=function(e){return Ie(this,void 0,void 0,function(){var t;return Oe(this,function(r){return t=this.getRequestCorrelationId(e),this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",t),[2,this.logoutRedirect(vt({correlationId:t},e))]})})},n.prototype.logoutRedirect=function(e){return Ie(this,void 0,void 0,function(){var t,r;return Oe(this,function(a){return t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(pt.Redirect),r=this.createRedirectClient(t),[2,r.logout(e)]})})},n.prototype.logoutPopup=function(e){try{var t=this.getRequestCorrelationId(e);this.preflightBrowserEnvironmentCheck(pt.Popup);var r=this.createPopupClient(t);return r.logout(e)}catch(a){return Promise.reject(a)}},n.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},n.prototype.getAccountByUsername=function(e){if(this.logger.trace("getAccountByUsername called"),!e)return this.logger.warning("getAccountByUsername: No username provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({username:e});return t?(this.logger.verbose("getAccountByUsername: Account matching username found, returning"),this.logger.verbosePii("getAccountByUsername: Returning signed-in accounts matching username: "+e),t):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)},n.prototype.getAccountByHomeId=function(e){if(this.logger.trace("getAccountByHomeId called"),!e)return this.logger.warning("getAccountByHomeId: No homeAccountId provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({homeAccountId:e});return t?(this.logger.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),this.logger.verbosePii("getAccountByHomeId: Returning signed-in accounts matching homeAccountId: "+e),t):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)},n.prototype.getAccountByLocalId=function(e){if(this.logger.trace("getAccountByLocalId called"),!e)return this.logger.warning("getAccountByLocalId: No localAccountId provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({localAccountId:e});return t?(this.logger.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),this.logger.verbosePii("getAccountByLocalId: Returning signed-in accounts matching localAccountId: "+e),t):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)},n.prototype.setActiveAccount=function(e){this.browserStorage.setActiveAccount(e)},n.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},n.prototype.preflightBrowserEnvironmentCheck=function(e,t){if(t===void 0&&(t=!0),this.logger.verbose("preflightBrowserEnvironmentCheck started"),ri.blockNonBrowserEnvironment(this.isBrowserEnvironment),ri.blockRedirectInIframe(e,this.config.system.allowRedirectInIframe),ri.blockReloadInHiddenIframes(),ri.blockAcquireTokenInPopups(),ri.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e===pt.Redirect&&this.config.cache.cacheLocation===Mi.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw $E.createInMemoryRedirectUnavailableError();(e===pt.Redirect||e===pt.Popup)&&this.preflightInteractiveRequest(t)},n.prototype.preflightInteractiveRequest=function(e){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),ri.blockReloadInHiddenIframes(),e&&this.browserStorage.setInteractionInProgress(!0)},n.prototype.acquireTokenNative=function(e,t,r){return Ie(this,void 0,void 0,function(){var a;return Oe(this,function(l){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw Ye.createNativeConnectionNotEstablishedError();return a=new $v(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,t,this.performanceClient,this.nativeExtensionProvider,r||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),[2,a.acquireToken(e)]})})},n.prototype.canUseNative=function(e,t){if(this.logger.trace("canUseNative called"),!Oh.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(e.prompt)switch(e.prompt){case ea.NONE:case ea.CONSENT:case ea.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace("canUseNative: prompt = "+e.prompt+" is not compatible with native flow, returning false"),!1}return!t&&!this.getNativeAccountId(e)?(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),!1):!0},n.prototype.getNativeAccountId=function(e){var t=e.account||this.browserStorage.getAccountInfoByHints(e.loginHint,e.sid)||this.getActiveAccount();return t&&t.nativeAccountId||""},n.prototype.createPopupClient=function(e){return new i5(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},n.prototype.createRedirectClient=function(e){return new r5(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},n.prototype.createSilentIframeClient=function(e){return new c5(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,_r.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},n.prototype.createSilentCacheClient=function(e){return new tP(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},n.prototype.createSilentRefreshClient=function(e){return new d5(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},n.prototype.createSilentAuthCodeClient=function(e){return new A5(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,_r.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,e)},n.prototype.addEventCallback=function(e){return this.eventHandler.addEventCallback(e)},n.prototype.removeEventCallback=function(e){this.eventHandler.removeEventCallback(e)},n.prototype.addPerformanceCallback=function(e){return this.performanceClient.addPerformanceCallback(e)},n.prototype.removePerformanceCallback=function(e){return this.performanceClient.removePerformanceCallback(e)},n.prototype.enableAccountStorageEvents=function(){this.eventHandler.enableAccountStorageEvents()},n.prototype.disableAccountStorageEvents=function(){this.eventHandler.disableAccountStorageEvents()},n.prototype.getTokenCache=function(){return this.tokenCache},n.prototype.getLogger=function(){return this.logger},n.prototype.setLogger=function(e){this.logger=e},n.prototype.initializeWrapperLibrary=function(e,t){this.browserStorage.setWrapperMetadata(e,t)},n.prototype.setNavigationClient=function(e){this.navigationClient=e},n.prototype.getConfiguration=function(){return this.config},n.prototype.getRequestCorrelationId=function(e){return e!=null&&e.correlationId?e.correlationId:this.isBrowserEnvironment?this.browserCrypto.createNewGuid():W.EMPTY_STRING},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var I5=function(n){Do(e,n);function e(t){var r=n.call(this,t)||this;return r.astsAsyncMeasurement=void 0,r.activeSilentTokenRequests=new Map,r.trackPageVisibility=r.trackPageVisibility.bind(r),r}return e.prototype.loginRedirect=function(t){return Ie(this,void 0,void 0,function(){var r;return Oe(this,function(a){return r=this.getRequestCorrelationId(t),this.logger.verbose("loginRedirect called",r),[2,this.acquireTokenRedirect(vt({correlationId:r},t||YM))]})})},e.prototype.loginPopup=function(t){var r=this.getRequestCorrelationId(t);return this.logger.verbose("loginPopup called",r),this.acquireTokenPopup(vt({correlationId:r},t||YM))},e.prototype.acquireTokenSilent=function(t){return Ie(this,void 0,void 0,function(){var r,a,l,u,f,p,m,y=this;return Oe(this,function(E){if(r=this.getRequestCorrelationId(t),a=this.performanceClient.startMeasurement(Ee.AcquireTokenSilent,r),a.addStaticFields({cacheLookupPolicy:t.cacheLookupPolicy}),this.preflightBrowserEnvironmentCheck(pt.Silent),this.logger.verbose("acquireTokenSilent called",r),l=t.account||this.getActiveAccount(),!l)throw Ye.createNoAccountError();return u={clientId:this.config.auth.clientId,authority:t.authority||W.EMPTY_STRING,scopes:t.scopes,homeAccountIdentifier:l.homeAccountId,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid},f=JSON.stringify(u),p=this.activeSilentTokenRequests.get(f),typeof p>"u"?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",r),this.performanceClient.setPreQueueTime(Ee.AcquireTokenSilentAsync,r),m=this.acquireTokenSilentAsync(vt(vt({},t),{correlationId:r}),l).then(function(S){return y.activeSilentTokenRequests.delete(f),a.addStaticFields({accessTokenSize:S.accessToken.length,idTokenSize:S.idToken.length}),a.endMeasurement({success:!0,fromCache:S.fromCache,isNativeBroker:S.fromNativeBroker,cacheLookupPolicy:t.cacheLookupPolicy,requestId:S.requestId}),S}).catch(function(S){throw y.activeSilentTokenRequests.delete(f),a.endMeasurement({errorCode:S.errorCode,subErrorCode:S.subError,success:!1}),S}),this.activeSilentTokenRequests.set(f,m),[2,m]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",r),a.discardMeasurement(),[2,p])})})},e.prototype.trackPageVisibility=function(){this.astsAsyncMeasurement&&(this.logger.info("Perf: Visibility change detected"),this.astsAsyncMeasurement.increment({visibilityChangeCount:1}))},e.prototype.acquireTokenSilentAsync=function(t,r){var a;return Ie(this,void 0,void 0,function(){var l,u,f,p,m,y=this;return Oe(this,function(E){switch(E.label){case 0:return this.performanceClient.addQueueMeasurement(Ee.AcquireTokenSilentAsync,t.correlationId),this.eventHandler.emitEvent(Gt.ACQUIRE_TOKEN_START,pt.Silent,t),this.astsAsyncMeasurement=this.performanceClient.startMeasurement(Ee.AcquireTokenSilentAsync,t.correlationId),(a=this.astsAsyncMeasurement)===null||a===void 0||a.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibility),Oh.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,t.authenticationScheme)&&r.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),u=vt(vt({},t),{account:r}),l=this.acquireTokenNative(u,_r.acquireTokenSilent_silentFlow).catch(function(S){return Ie(y,void 0,void 0,function(){var T;return Oe(this,function(A){if(S instanceof vu&&S.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,T=this.createSilentIframeClient(t.correlationId),[2,T.acquireToken(t)];throw S})})}),[3,3]):[3,1];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),f=this.createSilentCacheClient(t.correlationId),this.performanceClient.setPreQueueTime(Ee.InitializeSilentRequest,t.correlationId),[4,f.initializeSilentRequest(t,r)];case 2:p=E.sent(),m=vt(vt({},t),{cacheLookupPolicy:t.cacheLookupPolicy||Va.Default}),this.performanceClient.setPreQueueTime(Ee.AcquireTokenFromCache,p.correlationId),l=this.acquireTokenFromCache(f,p,m).catch(function(S){if(m.cacheLookupPolicy===Va.AccessToken)throw S;return ri.blockReloadInHiddenIframes(),y.eventHandler.emitEvent(Gt.ACQUIRE_TOKEN_NETWORK_START,pt.Silent,p),y.performanceClient.setPreQueueTime(Ee.AcquireTokenByRefreshToken,p.correlationId),y.acquireTokenByRefreshToken(p,m).catch(function(T){var A=T instanceof kh,I=T instanceof yl,P=T.errorCode===Pv.noTokensFoundError.code,D=T.errorCode===_l.INVALID_GRANT_ERROR;if((!A||!D||I||m.cacheLookupPolicy===Va.AccessTokenAndRefreshToken||m.cacheLookupPolicy===Va.RefreshToken)&&m.cacheLookupPolicy!==Va.Skip&&!P)throw T;return y.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",t.correlationId),y.performanceClient.setPreQueueTime(Ee.AcquireTokenBySilentIframe,p.correlationId),y.acquireTokenBySilentIframe(p)})}),E.label=3;case 3:return[2,l.then(function(S){var T;return y.eventHandler.emitEvent(Gt.ACQUIRE_TOKEN_SUCCESS,pt.Silent,S),(T=y.astsAsyncMeasurement)===null||T===void 0||T.endMeasurement({success:!0,fromCache:S.fromCache,isNativeBroker:S.fromNativeBroker,requestId:S.requestId}),S}).catch(function(S){var T;throw y.eventHandler.emitEvent(Gt.ACQUIRE_TOKEN_FAILURE,pt.Silent,null,S),(T=y.astsAsyncMeasurement)===null||T===void 0||T.endMeasurement({errorCode:S.errorCode,subErrorCode:S.subError,success:!1}),S}).finally(function(){document.removeEventListener("visibilitychange",y.trackPageVisibility)})]}})})},e}(x5);const uP="redirect";var cP=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(u){u(l)})}return new(t||(t=Promise))(function(l,u){function f(y){try{m(r.next(y))}catch(E){u(E)}}function p(y){try{m(r.throw(y))}catch(E){u(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};class O5 extends I5{get account(){return this.getAllAccounts().find(r=>{var a;return((a=r.idTokenClaims)===null||a===void 0?void 0:a.aud)===this.clientId})}get hasValidClaims(){var e;const t=(e=this.account)===null||e===void 0?void 0:e.idTokenClaims;if(t){const r=Math.ceil(Date.now()/1e3);return t.exp>r}return!1}get clientId(){var e;return(e=this.config.auth)===null||e===void 0?void 0:e.clientId}get requestOrigin(){return this.browserStorage.getTemporaryCache("request.origin",!0)}constructor(e,t){super(t),this.tenantId=e}login(e,t=uP,r=!0){var a;return cP(this,void 0,void 0,function*(){const l=(e==null?void 0:e.loginHint)||((a=this.account)===null||a===void 0?void 0:a.username),u=(e==null?void 0:e.scopes)||[],f=Object.assign(Object.assign({},e),{loginHint:l,scopes:u});if(l&&r){this.logger.verbose("Attempting to login in silently");try{return yield this.ssoSilent(f)}catch{this.logger.verbose("Silent login attempt failed")}}switch(this.logger.verbose(`Attempting to login in by [${t}]`),t){case"popup":return this.loginPopup(f);case"redirect":return this.loginRedirect(f)}})}acquireToken(e={scopes:[]},t=uP,r=!0){return cP(this,void 0,void 0,function*(){const a=yield this.account;if(r&&a){this.logger.verbose("Attempting to acquire token in silently");try{return yield this.acquireTokenSilent(Object.assign({account:a},e))}catch{this.logger.info("Expected to navigate away from the current page but timeout occurred.")}}switch(this.logger.verbose(`Attempting to acquire token by [${t}]`),t){case"popup":return this.acquireTokenPopup(e);case"redirect":return this.acquireTokenRedirect(e)}})}}const N5=(n,e=window.location.origin)=>{n=n.match(/^http[s]?/)?n:e+n;const{origin:t,pathname:r}=new URL(n);return t+r.replace(/([^:]\/)\/+/g,"$1")},M5=(n,e,t,r,a)=>{const l=Object.assign({clientId:e,redirectUri:N5(t||""),navigateToLoginRequestUrl:!1,authority:`https://login.microsoftonline.com/${n}`},r==null?void 0:r.auth),u=Object.assign({cacheLocation:"localStorage"},r==null?void 0:r.cache),f=r==null?void 0:r.system;return new(a||O5)(n,{auth:l,cache:u,system:f})};class dP extends OE{constructor(e){super({logLevel:e,loggerCallback:(...t)=>this.loggerCallback(...t)}),this.getLogType=t=>{switch(t){case ni.Error:return"error";case ni.Warning:return"warn";case ni.Info:return"info";case ni.Verbose:default:return"debug"}}}loggerCallback(e,t,r){console[this.getLogType(e)]("%c FUSION::MSAL %c %s","border: 1px solid;","border: none;",t)}}var d1=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(u){u(l)})}return new(t||(t=Promise))(function(l,u){function f(y){try{m(r.next(y))}catch(E){u(E)}}function p(y){try{m(r.throw(y))}catch(E){u(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};const P5="default";class D5{get defaultClient(){return this.getClient(P5)}get defaultAccount(){return this.defaultClient.account}get defaultConfig(){return this._config.defaultConfig}constructor(e){this._config=e,this._clients={}}getClient(e){return this._clients[e]||(this._clients[e]=this.createClient(e)),this._clients[e]}createClient(e){const t=e?this._config.getClientConfig(e):this._config.defaultConfig;if(!t)throw Error("Could not find any config");const r=M5(t.tenantId,t.clientId,t.redirectUri,t.config);return r.setLogger(new dP(0)),r}handleRedirect(){return d1(this,void 0,void 0,function*(){const{redirectUri:e}=this.defaultConfig||{};if(window.location.pathname===e){const t=this.defaultClient,r=t.getLogger(),{requestOrigin:a}=t;yield t.handleRedirectPromise(),a===e?(r.warning(`detected callback loop from url ${e}, redirecting to root`),window.location.replace("/")):window.location.replace(a||"/")}return null})}acquireToken(e){return this.defaultClient.acquireToken(e)}acquireAccessToken(e){return d1(this,void 0,void 0,function*(){const t=yield this.acquireToken(e);return t?t.accessToken:void 0})}login(){return d1(this,void 0,void 0,function*(){yield this.defaultClient.login()})}}var L5=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(u){u(l)})}return new(t||(t=Promise))(function(l,u){function f(y){try{m(r.next(y))}catch(E){u(E)}}function p(y){try{m(r.throw(y))}catch(E){u(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};const fP={name:"auth",configure:n=>{var e;const t=new TB;return!((e=n==null?void 0:n.auth)===null||e===void 0)&&e.defaultConfig&&t.configureDefault(n.auth.defaultConfig),t},initialize:({config:n})=>L5(void 0,void 0,void 0,function*(){const e=new D5(n);return n.requiresAuth&&(yield e.handleRedirect(),e.defaultAccount||(yield e.login())),e})},U5=(n,e)=>({module:fP,configure:t=>{t.configureDefault(n),(e==null?void 0:e.requiresAuth)!==void 0&&(t.requiresAuth=e==null?void 0:e.requiresAuth);const{clients:r}=e??{};r&&Object.entries(r).forEach(([a,l])=>t.configureClient(a,l))}});var f1=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(u){u(l)})}return new(t||(t=Promise))(function(l,u){function f(y){try{m(r.next(y))}catch(E){u(E)}}function p(y){try{m(r.throw(y))}catch(E){u(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};const F5=n=>{var e;return{id:n.id,isChildType:n.isChildType,parentTypeIds:(e=n.parentTypeIds)!==null&&e!==void 0?e:[]}},h1=n=>{var e,t,r,a;return{id:n.id,externalId:(e=n.externalId)!==null&&e!==void 0?e:void 0,isActive:n.isActive,isDeleted:n.isDeleted,created:new Date(n.created),source:(t=n.source)!==null&&t!==void 0?t:void 0,title:(r=n.title)!==null&&r!==void 0?r:void 0,type:F5(n.type),value:(a=n.value)!==null&&a!==void 0?a:{}}},$5=n=>f1(void 0,void 0,void 0,function*(){const e=yield n.json();return h1(e)}),H5=n=>f1(void 0,void 0,void 0,function*(){return(yield n.json()).map(h1)}),j5=n=>f1(void 0,void 0,void 0,function*(){return(yield n.json()).map(h1)});var z5=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!a:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(n,t):a?a.value=t:e.set(n,t),t},B5=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},jE;class q5{constructor(e,t={}){this.config=t,jE.set(this,void 0),z5(this,jE,e,"f")}requireInstance(e){return B5(this,jE,"f").requireInstance(e)}setContextType(e){this.config.contextType=e}setContextFilter(e){this.config.contextFilter=e}connectParentContext(e){this.config.connectParentContext=e}setContextParameterFn(e){this.config.contextParameterFn=e}setValidateContext(e){this.config.validateContext=e}setResolveContext(e){this.config.resolveContext=e}setResolveInitialContext(e){this.config.resolveInitialContext=e}setContextClient(e,t=1*60*1e3){this.config.client={get:typeof e.get=="function"?{key:({id:r})=>r,client:{fn:e.get},expire:t}:e.get,query:typeof e.query=="function"?{key:r=>JSON.stringify(r),client:{fn:e.query},expire:t}:e.query},e.related&&(this.config.client.related=typeof e.related=="function"?{key:r=>JSON.stringify(r),client:{fn:e.related},expire:t}:e.related)}}jE=new WeakMap;const V5=/^(?:(?:[0-9a-fA-F]){8}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){12})$/,K5=n=>n.replace(/^\/+/,"").split("/").shift(),G5=n=>!!n.match(V5),W5=(n,e)=>t=>{const{extract:r=K5,validate:a=G5}=e??{},l=r(t);if(!l)return Ni;if(a(l))return n.contextClient.resolveContext(l);throw Error(`Failed to validate context [${l}] from path [${t}]`)},Y5=({ref:n})=>{const e=n==null?void 0:n.context;if(!e)throw Error(["resolveContextFromNavigation","ref does not support context!"].join(`
268
- `));return e.currentContext?gs(e.currentContext):Ni},Q5=n=>({ref:e,modules:t})=>{const{context:r,navigation:a}=t,l=W5(r,n==null?void 0:n.path);return LR(a?l(a.path.pathname):Ni,Y5({ref:e,modules:t})).pipe(nB())};var zE=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(u){u(l)})}return new(t||(t=Promise))(function(l,u){function f(y){try{m(r.next(y))}catch(E){u(E)}}function p(y){try{m(r.throw(y))}catch(E){u(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})},hP=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},BE;class X5{constructor(){this.defaultExpireTime=1*60*1e3,BE.set(this,[])}addConfigBuilder(e){hP(this,BE,"f").push(e)}_getServiceProvider(e){var t;return zE(this,void 0,void 0,function*(){if(e.hasModule("services"))return e.requireInstance("services");{const r=(t=e.ref)===null||t===void 0?void 0:t.services;if(r)return r;throw Error("no service services provider configures [ServicesModule]")}})}createConfig(e){var t,r;return zE(this,void 0,void 0,function*(){const a=yield hP(this,BE,"f").reduce((l,u)=>zE(this,void 0,void 0,function*(){const f=new q5(e,yield l);return yield Promise.resolve(u(f)),Object.assign(l,f.config)}),Promise.resolve({}));return(t=a.resolveInitialContext)!==null&&t!==void 0||(a.resolveInitialContext=Q5()),(r=a.client)!==null&&r!==void 0||(a.client=yield(()=>zE(this,void 0,void 0,function*(){const u=yield(yield this._getServiceProvider(e)).createContextClient("json$");return{get:{client:{fn:f=>u.get("v1",f,{selector:$5})},key:({id:f})=>f,expire:this.defaultExpireTime},query:{client:{fn:f=>u.query("v1",{query:f},{selector:H5})},key:f=>JSON.stringify(f),expire:this.defaultExpireTime},related:{client:{fn:f=>u.related("v1",{id:f.item.id,query:{filter:f.filter}},{selector:j5})},key:f=>JSON.stringify(f),expire:this.defaultExpireTime}}}))()),a})}}BE=new WeakMap;var J5=function n(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,a,l;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(a=r;a--!==0;)if(!n(e[a],t[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(l=Object.keys(e),r=l.length,r!==Object.keys(t).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,l[a]))return!1;for(a=r;a--!==0;){var u=l[a];if(!n(e[u],t[u]))return!1}return!0}return e!==e&&t!==t};const Z5=Oo(J5);var pP;(function(n){n.IDLE="idle",n.ACTIVE="active",n.FAILED="failed",n.CANCELED="canceled"})(pP||(pP={}));const e6=n=>e=>e.pipe(FR(n)),t6=n=>e=>e.pipe(za(n)),n6=n=>e=>e.pipe(Wr(n)),r6=n=>n.pipe(dn(e=>e.value));let qE;const i6=new Uint8Array(16);function o6(){if(!qE&&(qE=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!qE))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return qE(i6)}const a6=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function s6(n){return typeof n=="string"&&a6.test(n)}const Fo=[];for(let n=0;n<256;++n)Fo.push((n+256).toString(16).slice(1));function vP(n,e=0){return Fo[n[e+0]]+Fo[n[e+1]]+Fo[n[e+2]]+Fo[n[e+3]]+"-"+Fo[n[e+4]]+Fo[n[e+5]]+"-"+Fo[n[e+6]]+Fo[n[e+7]]+"-"+Fo[n[e+8]]+Fo[n[e+9]]+"-"+Fo[n[e+10]]+Fo[n[e+11]]+Fo[n[e+12]]+Fo[n[e+13]]+Fo[n[e+14]]+Fo[n[e+15]]}function l6(n){if(!s6(n))throw TypeError("Invalid UUID");let e;const t=new Uint8Array(16);return t[0]=(e=parseInt(n.slice(0,8),16))>>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=e&255,t[4]=(e=parseInt(n.slice(9,13),16))>>>8,t[5]=e&255,t[6]=(e=parseInt(n.slice(14,18),16))>>>8,t[7]=e&255,t[8]=(e=parseInt(n.slice(19,23),16))>>>8,t[9]=e&255,t[10]=(e=parseInt(n.slice(24,36),16))/1099511627776&255,t[11]=e/4294967296&255,t[12]=e>>>24&255,t[13]=e>>>16&255,t[14]=e>>>8&255,t[15]=e&255,t}function u6(n){n=unescape(encodeURIComponent(n));const e=[];for(let t=0;t<n.length;++t)e.push(n.charCodeAt(t));return e}const c6="6ba7b810-9dad-11d1-80b4-00c04fd430c8",d6="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function f6(n,e,t){function r(a,l,u,f){var p;if(typeof a=="string"&&(a=u6(a)),typeof l=="string"&&(l=l6(l)),((p=l)===null||p===void 0?void 0:p.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let m=new Uint8Array(16+a.length);if(m.set(l),m.set(a,l.length),m=t(m),m[6]=m[6]&15|e,m[8]=m[8]&63|128,u){f=f||0;for(let y=0;y<16;++y)u[f+y]=m[y];return u}return vP(m)}try{r.name=n}catch{}return r.DNS=c6,r.URL=d6,r}const mP={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Hv(n,e,t){if(mP.randomUUID&&!e&&!n)return mP.randomUUID();n=n||{};const r=n.random||(n.rng||o6)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){t=t||0;for(let a=0;a<16;++a)e[t+a]=r[a];return e}return vP(r)}function h6(n,e,t,r){switch(n){case 0:return e&t^~e&r;case 1:return e^t^r;case 2:return e&t^e&r^t&r;case 3:return e^t^r}}function p1(n,e){return n<<e|n>>>32-e}function p6(n){const e=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof n=="string"){const u=unescape(encodeURIComponent(n));n=[];for(let f=0;f<u.length;++f)n.push(u.charCodeAt(f))}else Array.isArray(n)||(n=Array.prototype.slice.call(n));n.push(128);const r=n.length/4+2,a=Math.ceil(r/16),l=new Array(a);for(let u=0;u<a;++u){const f=new Uint32Array(16);for(let p=0;p<16;++p)f[p]=n[u*64+p*4]<<24|n[u*64+p*4+1]<<16|n[u*64+p*4+2]<<8|n[u*64+p*4+3];l[u]=f}l[a-1][14]=(n.length-1)*8/Math.pow(2,32),l[a-1][14]=Math.floor(l[a-1][14]),l[a-1][15]=(n.length-1)*8&4294967295;for(let u=0;u<a;++u){const f=new Uint32Array(80);for(let T=0;T<16;++T)f[T]=l[u][T];for(let T=16;T<80;++T)f[T]=p1(f[T-3]^f[T-8]^f[T-14]^f[T-16],1);let p=t[0],m=t[1],y=t[2],E=t[3],S=t[4];for(let T=0;T<80;++T){const A=Math.floor(T/20),I=p1(p,5)+h6(A,m,y,E)+S+e[A]+f[T]>>>0;S=E,E=y,y=p1(m,30)>>>0,m=p,p=I}t[0]=t[0]+p>>>0,t[1]=t[1]+m>>>0,t[2]=t[2]+y>>>0,t[3]=t[3]+E>>>0,t[4]=t[4]+S>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,t[0]&255,t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,t[1]&255,t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,t[2]&255,t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,t[3]&255,t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,t[4]&255]}const v1=f6("v5",80,p6);let m1=class extends Error{constructor(e,t){super(t.message,{cause:t.cause}),this.type=e,this.name="QueryClientError",this.request=t.request}};function Gi(n){for(var e=arguments.length,t=Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];if(process.env.NODE_ENV!=="production"){var a=S6[n],l=a?typeof a=="function"?a.apply(null,t):a:"unknown error nr: "+n;throw Error("[Immer] "+l)}throw Error("[Immer] minified error nr: "+n+(t.length?" "+t.map(function(u){return"'"+u+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Hd(n){return!!n&&!!n[Bn]}function Cl(n){var e;return!!n&&(function(t){if(!t||typeof t!="object")return!1;var r=Object.getPrototypeOf(t);if(r===null)return!0;var a=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===T6}(n)||Array.isArray(n)||!!n[TP]||!!(!((e=n.constructor)===null||e===void 0)&&e[TP])||y1(n)||_1(n))}function jv(n){return Hd(n)||Gi(23,n),n[Bn].t}function zv(n,e,t){t===void 0&&(t=!1),Bv(n)===0?(t?Object.keys:x1)(n).forEach(function(r){t&&typeof r=="symbol"||e(r,n[r],n)}):n.forEach(function(r,a){return e(a,r,n)})}function Bv(n){var e=n[Bn];return e?e.i>3?e.i-4:e.i:Array.isArray(n)?1:y1(n)?2:_1(n)?3:0}function g1(n,e){return Bv(n)===2?n.has(e):Object.prototype.hasOwnProperty.call(n,e)}function v6(n,e){return Bv(n)===2?n.get(e):n[e]}function gP(n,e,t){var r=Bv(n);r===2?n.set(e,t):r===3?n.add(t):n[e]=t}function m6(n,e){return n===e?n!==0||1/n==1/e:n!=n&&e!=e}function y1(n){return w6&&n instanceof Map}function _1(n){return b6&&n instanceof Set}function vo(n){return n.o||n.t}function C1(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var e=R6(n);delete e[Bn];for(var t=x1(e),r=0;r<t.length;r++){var a=t[r],l=e[a];l.writable===!1&&(l.writable=!0,l.configurable=!0),(l.get||l.set)&&(e[a]={configurable:!0,writable:!0,enumerable:l.enumerable,value:n[a]})}return Object.create(Object.getPrototypeOf(n),e)}function E1(n,e){return e===void 0&&(e=!1),w1(n)||Hd(n)||!Cl(n)||(Bv(n)>1&&(n.set=n.add=n.clear=n.delete=g6),Object.freeze(n),e&&zv(n,function(t,r){return E1(r,!0)},!0)),n}function g6(){Gi(2)}function w1(n){return n==null||typeof n!="object"||Object.isFrozen(n)}function mu(n){var e=I1[n];return e||Gi(18,n),e}function y6(n,e){I1[n]||(I1[n]=e)}function VE(){return process.env.NODE_ENV==="production"||qv||Gi(0),qv}function b1(n,e){e&&(mu("Patches"),n.u=[],n.s=[],n.v=e)}function KE(n){S1(n),n.p.forEach(_6),n.p=null}function S1(n){n===qv&&(qv=n.l)}function yP(n){return qv={p:[],l:qv,h:n,m:!0,_:0}}function _6(n){var e=n[Bn];e.i===0||e.i===1?e.j():e.g=!0}function T1(n,e){e._=e.p.length;var t=e.p[0],r=n!==void 0&&n!==t;return e.h.O||mu("ES5").S(e,n,r),r?(t[Bn].P&&(KE(e),Gi(4)),Cl(n)&&(n=GE(e,n),e.l||WE(e,n)),e.u&&mu("Patches").M(t[Bn].t,n,e.u,e.s)):n=GE(e,t,[]),KE(e),e.u&&e.v(e.u,e.s),n!==SP?n:void 0}function GE(n,e,t){if(w1(e))return e;var r=e[Bn];if(!r)return zv(e,function(f,p){return _P(n,r,e,f,p,t)},!0),e;if(r.A!==n)return e;if(!r.P)return WE(n,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var a=r.i===4||r.i===5?r.o=C1(r.k):r.o,l=a,u=!1;r.i===3&&(l=new Set(a),a.clear(),u=!0),zv(l,function(f,p){return _P(n,r,a,f,p,t,u)}),WE(n,a,!1),t&&n.u&&mu("Patches").N(r,t,n.u,n.s)}return r.o}function _P(n,e,t,r,a,l,u){if(process.env.NODE_ENV!=="production"&&a===t&&Gi(5),Hd(a)){var f=GE(n,a,l&&e&&e.i!==3&&!g1(e.R,r)?l.concat(r):void 0);if(gP(t,r,f),!Hd(f))return;n.m=!1}else u&&t.add(a);if(Cl(a)&&!w1(a)){if(!n.h.D&&n._<1)return;GE(n,a),e&&e.A.l||WE(n,a)}}function WE(n,e,t){t===void 0&&(t=!1),!n.l&&n.h.D&&n.m&&E1(e,t)}function R1(n,e){var t=n[Bn];return(t?vo(t):n)[e]}function CP(n,e){if(e in n)for(var t=Object.getPrototypeOf(n);t;){var r=Object.getOwnPropertyDescriptor(t,e);if(r)return r;t=Object.getPrototypeOf(t)}}function Nc(n){n.P||(n.P=!0,n.l&&Nc(n.l))}function k1(n){n.o||(n.o=C1(n.t))}function Jy(n,e,t){var r=y1(e)?mu("MapSet").F(e,t):_1(e)?mu("MapSet").T(e,t):n.O?function(a,l){var u=Array.isArray(a),f={i:u?1:0,A:l?l.A:VE(),P:!1,I:!1,R:{},l,t:a,k:null,o:null,j:null,C:!1},p=f,m=O1;u&&(p=[f],m=Zy);var y=Proxy.revocable(p,m),E=y.revoke,S=y.proxy;return f.k=S,f.j=E,S}(e,t):mu("ES5").J(e,t);return(t?t.A:VE()).p.push(r),r}function C6(n){return Hd(n)||Gi(22,n),function e(t){if(!Cl(t))return t;var r,a=t[Bn],l=Bv(t);if(a){if(!a.P&&(a.i<4||!mu("ES5").K(a)))return a.t;a.I=!0,r=EP(t,l),a.I=!1}else r=EP(t,l);return zv(r,function(u,f){a&&v6(a.t,u)===f||gP(r,u,e(f))}),l===3?new Set(r):r}(n)}function EP(n,e){switch(e){case 2:return new Map(n);case 3:return Array.from(n)}return C1(n)}function E6(){function n(f,p){function m(){this.constructor=f}a(f,p),f.prototype=(m.prototype=p.prototype,new m)}function e(f){f.o||(f.R=new Map,f.o=new Map(f.t))}function t(f){f.o||(f.o=new Set,f.t.forEach(function(p){if(Cl(p)){var m=Jy(f.A.h,p,f);f.p.set(p,m),f.o.add(m)}else f.o.add(p)}))}function r(f){f.g&&Gi(3,JSON.stringify(vo(f)))}var a=function(f,p){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,y){m.__proto__=y}||function(m,y){for(var E in y)y.hasOwnProperty(E)&&(m[E]=y[E])})(f,p)},l=function(){function f(m,y){return this[Bn]={i:2,l:y,A:y?y.A:VE(),P:!1,I:!1,o:void 0,R:void 0,t:m,k:this,C:!1,g:!1},this}n(f,Map);var p=f.prototype;return Object.defineProperty(p,"size",{get:function(){return vo(this[Bn]).size}}),p.has=function(m){return vo(this[Bn]).has(m)},p.set=function(m,y){var E=this[Bn];return r(E),vo(E).has(m)&&vo(E).get(m)===y||(e(E),Nc(E),E.R.set(m,!0),E.o.set(m,y),E.R.set(m,!0)),this},p.delete=function(m){if(!this.has(m))return!1;var y=this[Bn];return r(y),e(y),Nc(y),y.t.has(m)?y.R.set(m,!1):y.R.delete(m),y.o.delete(m),!0},p.clear=function(){var m=this[Bn];r(m),vo(m).size&&(e(m),Nc(m),m.R=new Map,zv(m.t,function(y){m.R.set(y,!1)}),m.o.clear())},p.forEach=function(m,y){var E=this;vo(this[Bn]).forEach(function(S,T){m.call(y,E.get(T),T,E)})},p.get=function(m){var y=this[Bn];r(y);var E=vo(y).get(m);if(y.I||!Cl(E)||E!==y.t.get(m))return E;var S=Jy(y.A.h,E,y);return e(y),y.o.set(m,S),S},p.keys=function(){return vo(this[Bn]).keys()},p.values=function(){var m,y=this,E=this.keys();return(m={})[YE]=function(){return y.values()},m.next=function(){var S=E.next();return S.done?S:{done:!1,value:y.get(S.value)}},m},p.entries=function(){var m,y=this,E=this.keys();return(m={})[YE]=function(){return y.entries()},m.next=function(){var S=E.next();if(S.done)return S;var T=y.get(S.value);return{done:!1,value:[S.value,T]}},m},p[YE]=function(){return this.entries()},f}(),u=function(){function f(m,y){return this[Bn]={i:3,l:y,A:y?y.A:VE(),P:!1,I:!1,o:void 0,t:m,k:this,p:new Map,g:!1,C:!1},this}n(f,Set);var p=f.prototype;return Object.defineProperty(p,"size",{get:function(){return vo(this[Bn]).size}}),p.has=function(m){var y=this[Bn];return r(y),y.o?!!y.o.has(m)||!(!y.p.has(m)||!y.o.has(y.p.get(m))):y.t.has(m)},p.add=function(m){var y=this[Bn];return r(y),this.has(m)||(t(y),Nc(y),y.o.add(m)),this},p.delete=function(m){if(!this.has(m))return!1;var y=this[Bn];return r(y),t(y),Nc(y),y.o.delete(m)||!!y.p.has(m)&&y.o.delete(y.p.get(m))},p.clear=function(){var m=this[Bn];r(m),vo(m).size&&(t(m),Nc(m),m.o.clear())},p.values=function(){var m=this[Bn];return r(m),t(m),m.o.values()},p.entries=function(){var m=this[Bn];return r(m),t(m),m.o.entries()},p.keys=function(){return this.values()},p[YE]=function(){return this.values()},p.forEach=function(m,y){for(var E=this.values(),S=E.next();!S.done;)m.call(y,S.value,S.value,this),S=E.next()},f}();y6("MapSet",{F:function(f,p){return new l(f,p)},T:function(f,p){return new u(f,p)}})}function hae(n){return n}var wP,qv,A1=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",w6=typeof Map<"u",b6=typeof Set<"u",bP=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",SP=A1?Symbol.for("immer-nothing"):((wP={})["immer-nothing"]=!0,wP),TP=A1?Symbol.for("immer-draftable"):"__$immer_draftable",Bn=A1?Symbol.for("immer-state"):"__$immer_state",YE=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",S6={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3: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},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(n){return"Cannot apply patch, path doesn't resolve: "+n},16:'Sets cannot have "replace" patches.',17:function(n){return"Unsupported patch operation: "+n},18: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."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21: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+"'"},22:function(n){return"'current' expects a draft, got: "+n},23:function(n){return"'original' expects a draft, got: "+n},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},T6=""+Object.prototype.constructor,x1=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,R6=Object.getOwnPropertyDescriptors||function(n){var e={};return x1(n).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(n,t)}),e},I1={},O1={get:function(n,e){if(e===Bn)return n;var t=vo(n);if(!g1(t,e))return function(a,l,u){var f,p=CP(l,u);return p?"value"in p?p.value:(f=p.get)===null||f===void 0?void 0:f.call(a.k):void 0}(n,t,e);var r=t[e];return n.I||!Cl(r)?r:r===R1(n.t,e)?(k1(n),n.o[e]=Jy(n.A.h,r,n)):r},has:function(n,e){return e in vo(n)},ownKeys:function(n){return Reflect.ownKeys(vo(n))},set:function(n,e,t){var r=CP(vo(n),e);if(r!=null&&r.set)return r.set.call(n.k,t),!0;if(!n.P){var a=R1(vo(n),e),l=a==null?void 0:a[Bn];if(l&&l.t===t)return n.o[e]=t,n.R[e]=!1,!0;if(m6(t,a)&&(t!==void 0||g1(n.t,e)))return!0;k1(n),Nc(n)}return n.o[e]===t&&(t!==void 0||e in n.o)||Number.isNaN(t)&&Number.isNaN(n.o[e])||(n.o[e]=t,n.R[e]=!0),!0},deleteProperty:function(n,e){return R1(n.t,e)!==void 0||e in n.t?(n.R[e]=!1,k1(n),Nc(n)):delete n.R[e],n.o&&delete n.o[e],!0},getOwnPropertyDescriptor:function(n,e){var t=vo(n),r=Reflect.getOwnPropertyDescriptor(t,e);return r&&{writable:!0,configurable:n.i!==1||e!=="length",enumerable:r.enumerable,value:t[e]}},defineProperty:function(){Gi(11)},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){Gi(12)}},Zy={};zv(O1,function(n,e){Zy[n]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Zy.deleteProperty=function(n,e){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(e))&&Gi(13),Zy.set.call(this,n,e,void 0)},Zy.set=function(n,e,t){return process.env.NODE_ENV!=="production"&&e!=="length"&&isNaN(parseInt(e))&&Gi(14),O1.set.call(this,n[0],e,t,n[0])};var k6=function(){function n(t){var r=this;this.O=bP,this.D=!0,this.produce=function(a,l,u){if(typeof a=="function"&&typeof l!="function"){var f=l;l=a;var p=r;return function(I){var P=this;I===void 0&&(I=f);for(var D=arguments.length,L=Array(D>1?D-1:0),j=1;j<D;j++)L[j-1]=arguments[j];return p.produce(I,function(F){var V;return(V=l).call.apply(V,[P,F].concat(L))})}}var m;if(typeof l!="function"&&Gi(6),u!==void 0&&typeof u!="function"&&Gi(7),Cl(a)){var y=yP(r),E=Jy(r,a,void 0),S=!0;try{m=l(E),S=!1}finally{S?KE(y):S1(y)}return typeof Promise<"u"&&m instanceof Promise?m.then(function(I){return b1(y,u),T1(I,y)},function(I){throw KE(y),I}):(b1(y,u),T1(m,y))}if(!a||typeof a!="object"){if((m=l(a))===void 0&&(m=a),m===SP&&(m=void 0),r.D&&E1(m,!0),u){var T=[],A=[];mu("Patches").M(a,m,T,A),u(T,A)}return m}Gi(21,a)},this.produceWithPatches=function(a,l){if(typeof a=="function")return function(m){for(var y=arguments.length,E=Array(y>1?y-1:0),S=1;S<y;S++)E[S-1]=arguments[S];return r.produceWithPatches(m,function(T){return a.apply(void 0,[T].concat(E))})};var u,f,p=r.produce(a,l,function(m,y){u=m,f=y});return typeof Promise<"u"&&p instanceof Promise?p.then(function(m){return[m,u,f]}):[p,u,f]},typeof(t==null?void 0:t.useProxies)=="boolean"&&this.setUseProxies(t.useProxies),typeof(t==null?void 0:t.autoFreeze)=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var e=n.prototype;return e.createDraft=function(t){Cl(t)||Gi(8),Hd(t)&&(t=C6(t));var r=yP(this),a=Jy(this,t,void 0);return a[Bn].C=!0,S1(r),a},e.finishDraft=function(t,r){var a=t&&t[Bn];process.env.NODE_ENV!=="production"&&(a&&a.C||Gi(9),a.I&&Gi(10));var l=a.A;return b1(l,r),T1(void 0,l)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!bP&&Gi(20),this.O=t},e.applyPatches=function(t,r){var a;for(a=r.length-1;a>=0;a--){var l=r[a];if(l.path.length===0&&l.op==="replace"){t=l.value;break}}a>-1&&(r=r.slice(a+1));var u=mu("Patches").$;return Hd(t)?u(t,r):this.produce(t,function(f){return u(f,r)})},n}(),Cs=new k6,RP=Cs.produce;Cs.produceWithPatches.bind(Cs),Cs.setAutoFreeze.bind(Cs),Cs.setUseProxies.bind(Cs),Cs.applyPatches.bind(Cs),Cs.createDraft.bind(Cs),Cs.finishDraft.bind(Cs);const QE=(...n)=>fn(e=>n.includes(e.type));var ra=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},A6=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!a:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(n,t):a?a.value=t:e.set(n,t),t},gu,El;class Nh extends vn{get action$(){return ra(this,gu,"f").asObservable()}get value(){return ra(this,El,"f").value}get closed(){return ra(this,El,"f").closed||ra(this,gu,"f").closed}constructor(e,t){super(a=>ra(this,El,"f").subscribe(a)),gu.set(this,new po),El.set(this,void 0);const r="getInitialState"in e?e.getInitialState():t;A6(this,El,new My(r),"f"),ra(this,gu,"f").pipe(EM(e,r),_M()).subscribe(ra(this,El,"f")),this.reset=()=>ra(this,El,"f").next(r)}next(e){ra(this,gu,"f").next(e)}addEffect(e,t){const r=typeof e=="string"?this.action$.pipe(QE(e)):this.action$,a=t||e;return r.pipe(za(l=>Pr(new Promise((u,f)=>{try{u(a(l,this.value))}catch(p){f(p)}})).pipe(Tr(u=>(console.warn("unhandled effect",u),Ni)))),fn(l=>!!l),yE(gE)).subscribe(ra(this,gu,"f"))}addEpic(e){return this.addFlow(e)}addFlow(e){const t=e(this.action$,this);if(!t)throw new TypeError(`addEpic: one of the provided effects "${e.name||"<anonymous>"}" does not return a stream. Double check you're not missing a return statement!`);return t.pipe(Tr(r=>(console.trace("unhandled exception, epic closed!",r),Ni)),yE(gE)).subscribe(ra(this,gu,"f"))}unsubscribe(){ra(this,gu,"f").unsubscribe(),ra(this,El,"f").unsubscribe()}complete(){ra(this,gu,"f").complete(),ra(this,El,"f").complete()}asObservable(){return ra(this,El,"f").asObservable()}}gu=new WeakMap,El=new WeakMap;function wn(n,e){function t(...r){if(e){const a=e(...r);if(!a)throw new Error("prepareAction did not return an object");return Object.assign(Object.assign({type:n,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:n,payload:r[0]}}return t.toString=()=>`${n}`,t.type=n,t.match=r=>r.type===n,t}const XE="::",N1=n=>new RegExp(`${XE}\\${n}$`),kP=n=>n.type.replace(N1("\\w+$"),"");function JE(n,e,t,r){const a=wn([n,"request"].join(XE),e);return t&&Object.assign(a,{success:wn([n,"success"].join(XE),t)}),r&&Object.assign(a,{failure:wn([n,"failure"].join(XE),r)}),a}const x6=n=>!!n.type.match(/::request$/),I6=n=>!!n.type.match(N1("success")),O6=n=>!!n.type.match(N1("failure")),N6=n=>I6(n)||O6(n);function AP(n){return Cl(n)?RP(n,()=>{}):n}function M6(n){return typeof n=="function"}function Mh(n,e){const[t,r,a]=P6(e);let l;if(M6(n))l=()=>AP(n());else{const f=AP(n);l=()=>f}function u(f=l(),p){let m=[t[p.type],...r.filter(({matcher:y})=>y(p)).map(({reducer:y})=>y)];return m.filter(y=>!!y).length===0&&(m=[a]),m.reduce((y,E)=>{if(E)if(Hd(y)){const T=E(y,p);return T===void 0?y:T}else{if(Cl(y))return RP(y,S=>E(S,p));{const S=E(y,p);if(S===void 0){if(y===null)return y;throw Error("A case reducer on a non-draftable value must not return undefined")}return S}}return y},f)}return u.getInitialState=l,u}function P6(n){const e={},t=[];let r;const a={addCase(l,u){if(process.env.NODE_ENV!=="production"){if(t.length>0)throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const f=typeof l=="string"?l:l.type;if(f in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[f]=u,a},addMatcher(l,u){if(process.env.NODE_ENV!=="production"&&r)throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return t.push({matcher:l,reducer:u}),a},addDefaultCase(l){if(process.env.NODE_ENV!=="production"&&r)throw new Error("`builder.addDefaultCase` can only be called once");return r=l,a}};return n(a),[e,t,r]}const mo=(()=>({request:wn("client/request",(e,t)=>{var r,a,l;return t??(t={}),(r=t.transaction)!==null&&r!==void 0||(t.transaction=Hv()),(a=t.created)!==null&&a!==void 0||(t.created=Date.now()),(l=t.task)!==null&&l!==void 0||(t.task=new vE),{payload:e,meta:t}}),retry:wn("client/retry",e=>({payload:e})),success:wn("client/success",(e,t)=>({payload:e,meta:t})),cancel:wn("client/cancel",e=>({payload:e})),failure:wn("client/failure",(e,t)=>({payload:e,meta:t})),error:wn("client/error",(e,t)=>({payload:e,meta:t}))}))(),xP=n=>e=>e.pipe(fn(mo.request.match),za(t=>{const{meta:r}=t,{transaction:a}=r,l=new AbortController,{signal:u}=l;return new vn(f=>{f.add(e.pipe(fn(mo.cancel.match)).subscribe(p=>{p.payload.transaction===a&&(u.aborted||l.abort(),f.complete())})),f.add(Pr(n(t,u)).subscribe({next:p=>f.next(p),error:p=>f.next(mo.error(p,{request:t})),complete:()=>f.complete()}))})})),D6=n=>(n=Object.assign({},{count:0,delay:0},n),(e,t)=>e.pipe(xP(r=>e.pipe(fn(mo.failure.match),fn(a=>a.meta.request===r),kv(t),Wr(([a,l])=>{var u,f;const{transaction:p}=r.meta,m=l[p];if(!m)return Ni;const y=(f=(u=m.retry)===null||u===void 0?void 0:u.length)!==null&&f!==void 0?f:0,E=Object.assign({},n,r.meta.retry);if(y>=E.count)throw E.count?Error("maximum retries executed!",{cause:a.payload}):a.payload;return(typeof E.delay=="function"?Pr(E.delay(a.payload.cause)).pipe(Tr(T=>{throw Error("failed to resolve delay",{cause:T})})):UR(E.delay)).pipe(dn(()=>mo.retry(r)))}))))),L6=n=>e=>e.pipe(xP((t,r)=>Pr(n(t.payload,r)).pipe(dn(a=>mo.success(a,{request:t})),Tr(a=>gs(mo.failure(Error(`failed to execute request for transaction ${t.meta.transaction}`,{cause:a}),{request:t})))))),U6=n=>n.pipe(fn(mo.retry.match),dn(e=>e.payload)),IP=()=>fn(n=>n.status==="complete"),F6=(n={})=>Mh(n,e=>e.addCase(mo.request,(t,r)=>{const{transaction:a,task:l,ref:u,created:f}=r.meta;t[a]={transaction:a,task:l,ref:u,created:f}}).addCase(mo.success,(t,r)=>{const{request:a}=r.meta,{transaction:l,ref:u}=a.meta,f=t[l];if(f){const p={status:"complete",transaction:l,ref:u,value:r.payload,args:a.payload,created:f.created,completed:Date.now()};f.task.next(p),f.task.complete()}delete t[l]}).addCase(mo.retry,(t,r)=>{var a;const{transaction:l}=r.payload.meta,u=t[l];u&&((a=u.retry)!==null&&a!==void 0||(u.retry=[]),u.retry.push(Date.now()))}).addCase(mo.cancel,(t,r)=>{const{transaction:a,reason:l}=r.payload;if(t[a]){const u=Object.assign({},jv(t[a]));u.task.error(new m1("abort",{request:u,message:l??"request was canceled"})),delete t[a]}}).addCase(mo.failure,(t,r)=>{var a;const{payload:l,meta:u}=r,{transaction:f}=u.request.meta,p=t[f];p&&((a=p.errors)!==null&&a!==void 0||(p.errors=[]),p.errors.push(l))}).addCase(mo.error,(t,r)=>{const{payload:a,meta:l}=r,{transaction:u}=l.request.meta;if(t[u]){const f=Object.assign({},jv(t[u]));f.task.error(new m1("error",{request:f,message:`failed to process task [${u}]`,cause:a.cause})),delete t[u]}}));var $6=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(u){u(l)})}return new(t||(t=Promise))(function(l,u){function f(y){try{m(r.next(y))}catch(E){u(E)}}function p(y){try{m(r.throw(y))}catch(E){u(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})},ii=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},OP=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!a:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(n,t):a?a.value=t:e.set(n,t),t},mi,Ph;let NP=class extends vn{get closed(){return ii(this,mi,"f").closed}get state$(){return ii(this,mi,"f")}get action$(){return ii(this,mi,"f").action$}get success$(){return this.action$.pipe(fn(mo.success.match),dn(({payload:e})=>e))}get error$(){return this.action$.pipe(QE("client/error"),kv(ii(this,mi,"f")),dn(([e,t])=>{const{payload:r,meta:a}=e,{transaction:l}=a.request.meta,u=t[e.meta.request.meta.transaction];return new m1("error",{request:u,message:`failed to process task [${l}]`,cause:r})}))}constructor(e,t){super(l=>ii(this,mi,"f").subscribe(l)),mi.set(this,void 0),Ph.set(this,void 0);const r={};OP(this,mi,new Nh(F6(r)),"f"),OP(this,Ph,new Mo(()=>ii(this,mi,"f").complete()),"f"),ii(this,Ph,"f").add(ii(this,mi,"f").addFlow(L6(e))),ii(this,Ph,"f").add(ii(this,mi,"f").addFlow(U6));const a=Object.assign({count:0,delay:0},t==null?void 0:t.retry);ii(this,Ph,"f").add(ii(this,mi,"f").addFlow(D6(a)))}next(e,t){const{ref:r,retry:a,task:l}=t??{},u=mo.request(e,{ref:r,retry:a,task:l});return ii(this,mi,"f").next(u),u.meta}nextAsync(e,t){return $6(this,void 0,void 0,function*(){return Po(this.next(e,t).task.pipe(IP()))})}getTaskByTransaction(e){const t=ii(this,mi,"f").value[e];return t==null?void 0:t.task}getTaskByRef(e){const t=Object.values(ii(this,mi,"f").value).find(r=>r.ref===e);return t==null?void 0:t.task}cancelTaskByRef(e,t){const r=Object.values(ii(this,mi,"f").value).find(a=>a.ref===e);r!=null&&r.ref&&this.cancel(r.transaction,t)}cancel(e,t){if(e)ii(this,mi,"f").value[e]&&(t??(t=`[${e}]: transaction canceled`),ii(this,mi,"f").next(mo.cancel({transaction:e,reason:t})));else for(const r of Object.keys(ii(this,mi,"f").value))this.cancel(r,"all transactions canceled")}on(e,t){return ii(this,mi,"f").addEffect(mo[e].type,r=>{t(r,this)})}complete(){ii(this,Ph,"f").unsubscribe()}asObservable(){return ii(this,mi,"f").asObservable()}};mi=new WeakMap,Ph=new WeakMap;function H6(){return{set:wn("cache/set",(n,e)=>({payload:{key:n,entry:e}})),remove:wn("cache/remove",n=>({payload:n})),invalidate:wn("cache/invalidate",n=>({payload:n})),trim:wn("cache/trim",n=>({payload:n}))}}const Vv=H6(),j6=(n,e)=>{var t,r;return((t=e.updated)!==null&&t!==void 0?t:0)-((r=n.updated)!==null&&r!==void 0?r:0)};function z6(n,e={}){return Mh(e,t=>t.addCase(n.set,(r,a)=>{var l;const{key:u,entry:f}=a.payload,p=r[u];if(p)p.updated=Date.now(),(l=p.updates)!==null&&l!==void 0||(p.updates=0),p.updates++;else{const m=Date.now();r[u]=Object.assign(Object.assign({},f),{created:m,updated:m})}}).addCase(n.remove,(r,a)=>{delete r[a.payload]}).addCase(n.invalidate,(r,a)=>{const l=r[a.payload];l&&delete l.updated}).addCase(n.trim,(r,a)=>{var l,u;const{payload:f}=a,p=(l=f.sort)!==null&&l!==void 0?l:j6,m=Object.keys(r),y=Object.entries(r).filter(([E,S])=>!f.validate||f.validate(S)).sort((E,S)=>p(E[1],S[1])).slice(0,(u=f.size)!==null&&u!==void 0?u:Number.MAX_SAFE_INTEGER).map(([E])=>E);if(m.length!==y.length)for(const E of m){const S=y.indexOf(E);S!==-1?y.splice(S,1):delete r[E]}}))}var wl=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},B6=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!a:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(n,t):a?a.value=t:e.set(n,t),t},Ga;let MP=class{get state(){return wl(this,Ga,"f").value}get state$(){return wl(this,Ga,"f").asObservable()}constructor(e){Ga.set(this,void 0);const{trimming:t,initial:r}=e??{};B6(this,Ga,new Nh(z6(Vv,r)),"f"),t&&wl(this,Ga,"f").addEffect("cache/set",()=>wl(this,Ga,"f").next(Vv.trim(t)))}setItem(...e){wl(this,Ga,"f").next(Vv.set(...e))}getItem(e){return wl(this,Ga,"f").value[e]}removeItem(e){wl(this,Ga,"f").next(Vv.remove(e))}invalidate(e){wl(this,Ga,"f").next(Vv.invalidate(e))}trim(e){wl(this,Ga,"f").next(Vv.trim(e))}reset(){wl(this,Ga,"f").reset()}complete(){wl(this,Ga,"f").complete()}};Ga=new WeakMap;var Cr=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},Kv=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!a:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(n,t):a?a.value=t:e.set(n,t),t},q6=globalThis&&globalThis.__rest||function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(n,r[a])&&(t[r[a]]=n[r[a]]);return t},Dh,yu,jd,Gv,e_,t_,ZE,M1;const V6=(n=0)=>e=>{var t;return((t=e.updated)!==null&&t!==void 0?t:0)+n>Date.now()},K6=n=>{if(typeof n=="function")return n;switch(n){case"concat":return e6;case"merge":return t6;case"switch":default:return n6}};let ew=class{get client(){return Cr(this,yu,"f")}get cache(){return Cr(this,jd,"f")}constructor(e){var t;Dh.set(this,new Mo),yu.set(this,void 0),jd.set(this,void 0),Gv.set(this,new po),e_.set(this,{}),t_.set(this,void 0),ZE.set(this,void 0),M1.set(this,Hv()),Kv(this,t_,a=>v1(e.key(a),Cr(this,M1,"f")),"f"),Kv(this,ZE,(t=e==null?void 0:e.validate)!==null&&t!==void 0?t:V6(e==null?void 0:e.expire),"f"),e.client instanceof NP?Kv(this,yu,e.client,"f"):(Kv(this,yu,new NP(e.client.fn,e.client.options),"f"),Cr(this,Dh,"f").add(()=>Cr(this,yu,"f").complete())),e.cache instanceof MP?Kv(this,jd,e.cache,"f"):(Kv(this,jd,new MP(e.cache||{}),"f"),Cr(this,Dh,"f").add(()=>Cr(this,jd,"f").complete()));const r=K6(e.queueOperator);Cr(this,Dh,"f").add(()=>Cr(this,Gv,"f").complete()),Cr(this,Dh,"f").add(Cr(this,Gv,"f").pipe(r(a=>{const{args:l,options:u}=a;return new vn(f=>{const{task:p,transaction:m}=Cr(this,yu,"f").next(l,u);f.add(p.pipe(Tr(()=>Ni)).subscribe(f)),f.add(()=>{setTimeout(()=>Cr(this,yu,"f").cancel(m))})})}),IP(),_E(()=>!Cr(this,yu,"f").closed)).subscribe(a=>{const{args:l,value:u,transaction:f,ref:p}=a,m=p??Cr(this,t_,"f").call(this,l);Cr(this,jd,"f").setItem(m,{value:u,args:l,transaction:f})}))}next(e,t){Cr(this,Gv,"f").next({args:e,options:t})}query(e,t){return this._query(e,t)}queryAsync(e,t){const r=t||{},{awaitResolve:a}=r,l=q6(r,["awaitResolve"]);return(a?Zo:Po)(this._query(e,l))}complete(){Cr(this,Dh,"f").unsubscribe()}_query(e,t){var r;const a=Cr(this,t_,"f").call(this,e),l=(r=Cr(this,e_,"f")[a])!==null&&r!==void 0?r:this._createTask(a,e,t);return t!=null&&t.signal&&t.signal.addEventListener("abort",()=>{Cr(this,yu,"f").cancelTaskByRef(a,"abort signal triggered by caller")}),l}_createTask(e,t,r){const a=new po,l=new vn(u=>{var f;Cr(this,e_,"f")[e]=l,a.subscribe(u);const p=Cr(this,jd,"f").getItem(e);p&&a.next(Object.assign(Object.assign({},p),{status:"cache"}));const m=((f=r==null?void 0:r.cache)===null||f===void 0?void 0:f.validate)||Cr(this,ZE,"f");p&&m(p,t)?a.complete():Cr(this,Gv,"f").next({args:t,options:{ref:e,task:a,retry:r==null?void 0:r.retry}})}).pipe(Dy(()=>{delete Cr(this,e_,"f")[e]}),BR());return l}};Dh=new WeakMap,yu=new WeakMap,jd=new WeakMap,Gv=new WeakMap,e_=new WeakMap,t_=new WeakMap,ZE=new WeakMap,M1=new WeakMap,ew.extractQueryValue=r6;var zd=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},PP=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!a:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(n,t):a?a.value=t:e.set(n,t),t},n_,Mc;class G6 extends vn{get currentContext(){return zd(this,Mc,"f").value}get currentContext$(){return zd(this,Mc,"f").asObservable()}get client(){return zd(this,n_,"f")}constructor(e){super(t=>zd(this,Mc,"f").subscribe(t)),n_.set(this,void 0),Mc.set(this,void 0),PP(this,n_,new ew(e),"f"),PP(this,Mc,new My(void 0),"f")}setCurrentContext(e){typeof e=="string"?this.resolveContext(e).pipe(Tr(()=>Ni)).subscribe(t=>this.setCurrentContext(t)):Z5(e,zd(this,Mc,"f").value)||zd(this,Mc,"f").next(e)}resolveContext(e){return zd(this,n_,"f").query({id:e}).pipe(dn(t=>t.value),Tr(t=>{throw t.cause?t.cause:t}))}resolveContextAsync(e,t){return(t!=null&&t.awaitResolve?Zo:Po)(this.resolveContext(e))}dispose(){zd(this,Mc,"f").complete()}}n_=new WeakMap,Mc=new WeakMap;var r_=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(u){u(l)})}return new(t||(t=Promise))(function(l,u){function f(y){try{m(r.next(y))}catch(E){u(E)}}function p(y){try{m(r.throw(y))}catch(E){u(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})},qn=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},Lh=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!a:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(n,t):a?a.value=t:e.set(n,t),t},Pc,tw,i_,bl,Uh,Fh,o_,nw,rw;class W6{get contextClient(){return qn(this,Pc,"f")}get queryClient(){return qn(this,tw,"f")}get currentContext$(){return qn(this,Pc,"f").currentContext$}get currentContext(){return qn(this,Pc,"f").currentContext}set currentContext(e){if(console.warn("@deprecated","ContextProvider.currentContext","use setCurrentContextById|setCurrentContext|clearCurrentContext"),e===void 0)throw Error("not allowed to set current context as undefined undefined!");this.setCurrentContextAsync(e)}constructor(e){var t,r,a;Pc.set(this,void 0),tw.set(this,void 0),i_.set(this,void 0),bl.set(this,void 0),Uh.set(this,new Mo),Fh.set(this,void 0),o_.set(this,void 0),nw.set(this,void 0),rw.set(this,new po);const{config:l,event:u}=e;e.parentContext&&console.warn("@deprecated","parentContext as arg is deprecated, use ContextProvider.connectParentContext"),Lh(this,bl,u,"f"),l.resolveContext&&(this.resolveContext=(t=l.resolveContext)===null||t===void 0?void 0:t.bind(this)),l.validateContext&&(this.validateContext=(r=l.validateContext)===null||r===void 0?void 0:r.bind(this)),Lh(this,Fh,l.contextType,"f"),Lh(this,o_,l.contextFilter,"f"),Lh(this,Pc,new G6(l.client.get),"f"),Lh(this,tw,new ew(l.client.query),"f"),l.client.related&&Lh(this,i_,new ew(l.client.related),"f"),Lh(this,nw,(a=l.contextParameterFn)!==null&&a!==void 0?a:f=>({search:f.search,filter:{type:f.type}}),"f"),qn(this,bl,"f")&&(qn(this,Uh,"f").add(this.currentContext$.pipe(HR()).subscribe(([f,p])=>{var m;(m=qn(this,bl,"f"))===null||m===void 0||m.dispatchEvent("onCurrentContextChanged",{source:this,canBubble:!0,detail:{previous:f,next:p}})})),qn(this,Uh,"f").add(qn(this,bl,"f").addEventListener("onCurrentContextChanged",f=>{f.source!==this&&f.detail.next!==void 0&&this.setCurrentContext(f.detail.next)}))),qn(this,Uh,"f").add(qn(this,rw,"f").pipe(Wr(f=>f),Rv(f=>console.debug("ContextProvider::#contextQueue",f))).subscribe(f=>qn(this,Pc,"f").setCurrentContext(f??null)))}connectParentContext(e,t){const a=e.currentContext$.pipe(fn(l=>l!==void 0),fn((l,u)=>{var f;return t!=null&&t.skipFirst&&u<=1?(console.debug("ContextProvider::connectParentContext","skipping first item",l),!1):((f=this.currentContext)===null||f===void 0?void 0:f.id)!==(l==null?void 0:l.id)}),Wr(l=>r_(this,void 0,void 0,function*(){var u;if(l){const f=yield(u=qn(this,bl,"f"))===null||u===void 0?void 0:u.dispatchEvent("onParentContextChanged",{source:this,detail:l,cancelable:!0});return{next:l,canceled:f==null?void 0:f.canceled}}return{next:l}})),fn(l=>!l.canceled),Wr(({next:l})=>this.setCurrentContext(l,{validate:!0,resolve:!0}).pipe(Tr(u=>(console.warn("ContextProvider::onParentContextChanged","setCurrentContext",u),Ni)))),Tr(l=>(console.warn("ContextProvider::onParentContextChanged","unhandled exception",l),Ni))).subscribe();return qn(this,Uh,"f").add(a),a}setCurrentContextById(e){return new vn(t=>{try{qn(this,Pc,"f").resolveContext(e).pipe(fn(r=>!!r),Wr(r=>this.setCurrentContext(r))).subscribe(t)}catch(r){t.error(r)}})}setCurrentContextByIdAsync(e){return Zo(this.setCurrentContextById(e))}setCurrentContext(e,t){const r=new po,a=new po,l=this._setCurrentContext(e,t).pipe(Rv(u=>a.next(u)),wM(r),Dy(()=>a.complete()),Tr(u=>(a.error(u),Ni)));return qn(this,rw,"f").next(l),a.pipe(Dy(()=>r.next(!0)))}_setCurrentContext(e,t){return new vn(r=>{var a;if(e===this.currentContext)return r.next(e),r.complete();if(e&&(t!=null&&t.validate)&&!this.validateContext(e)){if(!t.resolve)return(a=qn(this,bl,"f"))===null||a===void 0||a.dispatchEvent("onSetContextValidationFailed",{source:this,detail:{context:e}}),r.error(Error("failed to validate provided context"));if(t.resolve)return gs(e).pipe(Wr(l=>r_(this,void 0,void 0,function*(){var u;const f=yield(u=qn(this,bl,"f"))===null||u===void 0?void 0:u.dispatchEvent("onSetContextResolve",{source:this,cancelable:!0,detail:{context:l}});if(f!=null&&f.canceled)throw Error("resolving of context was canceled");return l})),Wr(l=>this.resolveContext(l).pipe(dn(u=>({context:l,resolved:u})))),Wr(({context:l,resolved:u})=>r_(this,void 0,void 0,function*(){var f;const p=yield(f=qn(this,bl,"f"))===null||f===void 0?void 0:f.dispatchEvent("onSetContextResolved",{source:this,cancelable:!0,detail:{context:l,resolved:u}});if(p!=null&&p.canceled)throw Error("resolving of context was canceled");return u})),Wr(l=>this._setCurrentContext(l))).subscribe(r)}return gs(e).pipe(Wr(l=>r_(this,void 0,void 0,function*(){var u;const f=yield(u=qn(this,bl,"f"))===null||u===void 0?void 0:u.dispatchEvent("onCurrentContextChange",{source:this,canBubble:!0,cancelable:!0,detail:{context:l}});if(f!=null&&f.canceled)throw Error("change of context was aborted");return l}))).subscribe(l=>{r.next(l),r.complete()})})}setCurrentContextAsync(e,t){return r_(this,void 0,void 0,function*(){return Zo(this.setCurrentContext(e,t))})}queryContext(e){const t=this.queryClient.query(qn(this,nw,"f").call(this,{search:e,type:qn(this,Fh,"f")})).pipe(dn(r=>r.value));return qn(this,o_,"f")?t.pipe(dn(qn(this,o_,"f"))):t}queryContextAsync(e){return Zo(this.queryContext(e))}validateContext(e){return qn(this,Fh,"f")?qn(this,Fh,"f").map(t=>t.toLowerCase()).includes(e.type.id.toLowerCase()):!0}resolveContext(e){return this.relatedContexts({item:e,filter:{type:qn(this,Fh,"f")}}).pipe(dn(t=>t.filter(r=>this.validateContext(r))),dn(t=>{const r=t.shift();if(!r)throw Error("failed to resolve context");return t.length&&console.warn("ContextProvider::relatedContext","multiple items found 🤣",t),r}))}resolveContextAsync(e){return Zo(this.resolveContext(e))}relatedContexts(e){return qn(this,i_,"f")?qn(this,i_,"f").query(e).pipe(dn(({value:t})=>t),Tr(t=>{throw t.cause?t.cause:t})):pM(()=>Error("ContextProvider::relatedContexts - no client defined for resolving related context"))}relatedContextsAsync(e){return Zo(this.relatedContexts(e))}clearCurrentContext(){this.setCurrentContext(null)}dispose(){qn(this,Uh,"f").unsubscribe(),qn(this,Pc,"f").dispose()}}Pc=new WeakMap,tw=new WeakMap,i_=new WeakMap,bl=new WeakMap,Uh=new WeakMap,Fh=new WeakMap,o_=new WeakMap,nw=new WeakMap,rw=new WeakMap;var Y6=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(u){u(l)})}return new(t||(t=Promise))(function(l,u){function f(y){try{m(r.next(y))}catch(E){u(E)}}function p(y){try{m(r.throw(y))}catch(E){u(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};const DP={name:"context",configure:()=>new X5,initialize:function(n){var e;return Y6(this,void 0,void 0,function*(){const t=yield n.config.createConfig(n),r=n.hasModule("event")?yield n.requireInstance("event"):void 0,a=(e=n.ref)===null||e===void 0?void 0:e.context,l=new W6({config:t,event:r,parentContext:a}),u=new Mo(()=>l.dispose());return this.postInitialize=f=>new vn(p=>{const m=t.resolveInitialContext?Pr(t.resolveInitialContext(f)).pipe(fn(y=>!!y),Wr(y=>f.modules.context.setCurrentContext(y,{validate:!0,resolve:!0}))):Ni;p.add(m.pipe(Tr(y=>(console.warn("ContextModule.postInitialize","failed to resolve initial context",y),Ni))).subscribe({next:y=>{console.debug("ContextModule.postInitialize",`initial context was resolved to [${y?y.id:"none"}]`,y)},complete:()=>{t.connectParentContext!==!1&&a&&l.connectParentContext(a),p.complete()}}))}),this.dispose=()=>u.unsubscribe(),l})}},Q6=(n,e)=>{n.addConfig({module:DP,configure:t=>{e&&t.addConfigBuilder(e)}})};var LP=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(u){u(l)})}return new(t||(t=Promise))(function(l,u){function f(y){try{m(r.next(y))}catch(E){u(E)}}function p(y){try{m(r.throw(y))}catch(E){u(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};class X6{constructor(e){this.clientKey=e.clientKey,this.endpoint=e.endpoint,this.clientCtor=e.clientCtor}createHttpClientClient(e){return LP(this,void 0,void 0,function*(){if(!this.clientKey)throw Error("no http client for service discovery is provided!");return e.createClient(this.clientKey)})}createClient(e){return LP(this,void 0,void 0,function*(){if(!this.endpoint)throw Error("no endpoint defined!");return new this.clientCtor({http:e,endpoint:this.endpoint})})}}var P1=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(u){u(l)})}return new(t||(t=Promise))(function(l,u){function f(y){try{m(r.next(y))}catch(E){u(E)}}function p(y){try{m(r.throw(y))}catch(E){u(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};class J6{constructor(e,t){this._client=e,this._http=t}get environment(){return this._client.environment}resolveServices(){return this._client.fetchEnvironment()}resolveService(e){return P1(this,void 0,void 0,function*(){return this._client.resolveService(e)})}createClient(e,t){return P1(this,void 0,void 0,function*(){const r=yield this.resolveService(e);if(!r)throw Error(`Could not load configuration of service [${e}]`);return this._http.createClient(Object.assign(Object.assign({},t),{baseUri:r.uri,defaultScopes:r.defaultScopes}))})}configureClient(e,t){return P1(this,void 0,void 0,function*(){const{key:r,alias:a}=typeof e=="string"?{key:e,alias:e}:e,{uri:l,defaultScopes:u}=yield this.resolveService(r);t.addConfig(OM(a,{baseUri:l,defaultScopes:u}))})}}var UP;(function(n){n.IDLE="idle",n.ACTIVE="active",n.FAILED="failed",n.CANCELED="canceled"})(UP||(UP={}));const Z6=n=>e=>e.pipe(FR(n)),eq=n=>e=>e.pipe(za(n)),tq=n=>e=>e.pipe(Wr(n)),nq=n=>n.pipe(dn(e=>e.value));let D1=class extends Error{constructor(e,t){super(t.message,{cause:t.cause}),this.type=e,this.name="QueryClientError",this.request=t.request}};const go=(()=>({request:wn("client/request",(e,t)=>{var r,a,l;return t??(t={}),(r=t.transaction)!==null&&r!==void 0||(t.transaction=Hv()),(a=t.created)!==null&&a!==void 0||(t.created=Date.now()),(l=t.task)!==null&&l!==void 0||(t.task=new vE),{payload:e,meta:t}}),retry:wn("client/retry",e=>({payload:e})),success:wn("client/success",(e,t)=>({payload:e,meta:t})),cancel:wn("client/cancel",e=>({payload:e})),failure:wn("client/failure",(e,t)=>({payload:e,meta:t})),error:wn("client/error",(e,t)=>({payload:e,meta:t}))}))(),FP=n=>e=>e.pipe(fn(go.request.match),za(t=>{const{meta:r}=t,{transaction:a}=r,l=new AbortController,{signal:u}=l;return new vn(f=>{f.add(e.pipe(fn(go.cancel.match)).subscribe(p=>{p.payload.transaction===a&&(u.aborted||l.abort(),f.complete())})),f.add(Pr(n(t,u)).subscribe({next:p=>f.next(p),error:p=>f.next(go.error(p,{request:t})),complete:()=>f.complete()}))})})),rq=n=>(n=Object.assign({},{count:0,delay:0},n),(e,t)=>e.pipe(FP(r=>e.pipe(fn(go.failure.match),fn(a=>a.meta.request===r),kv(t),Wr(([a,l])=>{var u,f;const{transaction:p}=r.meta,m=l[p];if(!m)return Ni;const y=(f=(u=m.retry)===null||u===void 0?void 0:u.length)!==null&&f!==void 0?f:0,E=Object.assign({},n,r.meta.retry);if(y>=E.count)throw E.count?Error("maximum retries executed!",{cause:a.payload}):a.payload;return(typeof E.delay=="function"?Pr(E.delay(a.payload.cause)).pipe(Tr(T=>{throw Error("failed to resolve delay",{cause:T})})):UR(E.delay)).pipe(dn(()=>go.retry(r)))}))))),iq=n=>e=>e.pipe(FP((t,r)=>Pr(n(t.payload,r)).pipe(dn(a=>go.success(a,{request:t})),Tr(a=>gs(go.failure(Error(`failed to execute request for transaction ${t.meta.transaction}`,{cause:a}),{request:t})))))),oq=n=>n.pipe(fn(go.retry.match),dn(e=>e.payload)),$P=()=>fn(n=>n.status==="complete"),aq=(n={})=>Mh(n,e=>e.addCase(go.request,(t,r)=>{const{transaction:a,task:l,ref:u,created:f}=r.meta;t[a]={transaction:a,task:l,ref:u,created:f}}).addCase(go.success,(t,r)=>{const{request:a}=r.meta,{transaction:l,ref:u}=a.meta,f=t[l];if(f){const p={status:"complete",transaction:l,ref:u,value:r.payload,args:a.payload,created:f.created,completed:Date.now()};f.task.next(p),f.task.complete()}delete t[l]}).addCase(go.retry,(t,r)=>{var a;const{transaction:l}=r.payload.meta,u=t[l];u&&((a=u.retry)!==null&&a!==void 0||(u.retry=[]),u.retry.push(Date.now()))}).addCase(go.cancel,(t,r)=>{const{transaction:a,reason:l}=r.payload;if(t[a]){const u=Object.assign({},jv(t[a]));u.task.error(new D1("abort",{request:u,message:l??"request was canceled"})),delete t[a]}}).addCase(go.failure,(t,r)=>{var a;const{payload:l,meta:u}=r,{transaction:f}=u.request.meta,p=t[f];p&&((a=p.errors)!==null&&a!==void 0||(p.errors=[]),p.errors.push(l))}).addCase(go.error,(t,r)=>{const{payload:a,meta:l}=r,{transaction:u}=l.request.meta;if(t[u]){const f=Object.assign({},jv(t[u]));f.task.error(new D1("error",{request:f,message:`failed to process task [${u}]`,cause:a.cause})),delete t[u]}}));var sq=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(u){u(l)})}return new(t||(t=Promise))(function(l,u){function f(y){try{m(r.next(y))}catch(E){u(E)}}function p(y){try{m(r.throw(y))}catch(E){u(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})},oi=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},HP=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!a:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(n,t):a?a.value=t:e.set(n,t),t},gi,$h;let jP=class extends vn{get closed(){return oi(this,gi,"f").closed}get state$(){return oi(this,gi,"f")}get action$(){return oi(this,gi,"f").action$}get success$(){return this.action$.pipe(fn(go.success.match),dn(({payload:e})=>e))}get error$(){return this.action$.pipe(QE("client/error"),kv(oi(this,gi,"f")),dn(([e,t])=>{const{payload:r,meta:a}=e,{transaction:l}=a.request.meta,u=t[e.meta.request.meta.transaction];return new D1("error",{request:u,message:`failed to process task [${l}]`,cause:r})}))}constructor(e,t){super(l=>oi(this,gi,"f").subscribe(l)),gi.set(this,void 0),$h.set(this,void 0);const r={};HP(this,gi,new Nh(aq(r)),"f"),HP(this,$h,new Mo(()=>oi(this,gi,"f").complete()),"f"),oi(this,$h,"f").add(oi(this,gi,"f").addFlow(iq(e))),oi(this,$h,"f").add(oi(this,gi,"f").addFlow(oq));const a=Object.assign({count:0,delay:0},t==null?void 0:t.retry);oi(this,$h,"f").add(oi(this,gi,"f").addFlow(rq(a)))}next(e,t){const{ref:r,retry:a,task:l}=t??{},u=go.request(e,{ref:r,retry:a,task:l});return oi(this,gi,"f").next(u),u.meta}nextAsync(e,t){return sq(this,void 0,void 0,function*(){return Po(this.next(e,t).task.pipe($P()))})}getTaskByTransaction(e){const t=oi(this,gi,"f").value[e];return t==null?void 0:t.task}getTaskByRef(e){const t=Object.values(oi(this,gi,"f").value).find(r=>r.ref===e);return t==null?void 0:t.task}cancelTaskByRef(e,t){const r=Object.values(oi(this,gi,"f").value).find(a=>a.ref===e);r!=null&&r.ref&&this.cancel(r.transaction,t)}cancel(e,t){if(e)oi(this,gi,"f").value[e]&&(t??(t=`[${e}]: transaction canceled`),oi(this,gi,"f").next(go.cancel({transaction:e,reason:t})));else for(const r of Object.keys(oi(this,gi,"f").value))this.cancel(r,"all transactions canceled")}on(e,t){return oi(this,gi,"f").addEffect(go[e].type,r=>{t(r,this)})}complete(){oi(this,$h,"f").unsubscribe()}asObservable(){return oi(this,gi,"f").asObservable()}};gi=new WeakMap,$h=new WeakMap;function lq(){return{set:wn("cache/set",(n,e)=>({payload:{key:n,entry:e}})),remove:wn("cache/remove",n=>({payload:n})),invalidate:wn("cache/invalidate",n=>({payload:n})),trim:wn("cache/trim",n=>({payload:n}))}}const Wv=lq(),uq=(n,e)=>{var t,r;return((t=e.updated)!==null&&t!==void 0?t:0)-((r=n.updated)!==null&&r!==void 0?r:0)};function cq(n,e={}){return Mh(e,t=>t.addCase(n.set,(r,a)=>{var l;const{key:u,entry:f}=a.payload,p=r[u];if(p)p.updated=Date.now(),(l=p.updates)!==null&&l!==void 0||(p.updates=0),p.updates++;else{const m=Date.now();r[u]=Object.assign(Object.assign({},f),{created:m,updated:m})}}).addCase(n.remove,(r,a)=>{delete r[a.payload]}).addCase(n.invalidate,(r,a)=>{const l=r[a.payload];l&&delete l.updated}).addCase(n.trim,(r,a)=>{var l,u;const{payload:f}=a,p=(l=f.sort)!==null&&l!==void 0?l:uq,m=Object.keys(r),y=Object.entries(r).filter(([E,S])=>!f.validate||f.validate(S)).sort((E,S)=>p(E[1],S[1])).slice(0,(u=f.size)!==null&&u!==void 0?u:Number.MAX_SAFE_INTEGER).map(([E])=>E);if(m.length!==y.length)for(const E of m){const S=y.indexOf(E);S!==-1?y.splice(S,1):delete r[E]}}))}var Sl=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},dq=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!a:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(n,t):a?a.value=t:e.set(n,t),t},Wa;let zP=class{get state(){return Sl(this,Wa,"f").value}get state$(){return Sl(this,Wa,"f").asObservable()}constructor(e){Wa.set(this,void 0);const{trimming:t,initial:r}=e??{};dq(this,Wa,new Nh(cq(Wv,r)),"f"),t&&Sl(this,Wa,"f").addEffect("cache/set",()=>Sl(this,Wa,"f").next(Wv.trim(t)))}setItem(...e){Sl(this,Wa,"f").next(Wv.set(...e))}getItem(e){return Sl(this,Wa,"f").value[e]}removeItem(e){Sl(this,Wa,"f").next(Wv.remove(e))}invalidate(e){Sl(this,Wa,"f").next(Wv.invalidate(e))}trim(e){Sl(this,Wa,"f").next(Wv.trim(e))}reset(){Sl(this,Wa,"f").reset()}complete(){Sl(this,Wa,"f").complete()}};Wa=new WeakMap;var Er=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},Yv=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!a:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(n,t):a?a.value=t:e.set(n,t),t},fq=globalThis&&globalThis.__rest||function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(n,r[a])&&(t[r[a]]=n[r[a]]);return t},Hh,_u,Bd,Qv,a_,s_,iw,L1;const hq=(n=0)=>e=>{var t;return((t=e.updated)!==null&&t!==void 0?t:0)+n>Date.now()},pq=n=>{if(typeof n=="function")return n;switch(n){case"concat":return Z6;case"merge":return eq;case"switch":default:return tq}};let U1=class{get client(){return Er(this,_u,"f")}get cache(){return Er(this,Bd,"f")}constructor(e){var t;Hh.set(this,new Mo),_u.set(this,void 0),Bd.set(this,void 0),Qv.set(this,new po),a_.set(this,{}),s_.set(this,void 0),iw.set(this,void 0),L1.set(this,Hv()),Yv(this,s_,a=>v1(e.key(a),Er(this,L1,"f")),"f"),Yv(this,iw,(t=e==null?void 0:e.validate)!==null&&t!==void 0?t:hq(e==null?void 0:e.expire),"f"),e.client instanceof jP?Yv(this,_u,e.client,"f"):(Yv(this,_u,new jP(e.client.fn,e.client.options),"f"),Er(this,Hh,"f").add(()=>Er(this,_u,"f").complete())),e.cache instanceof zP?Yv(this,Bd,e.cache,"f"):(Yv(this,Bd,new zP(e.cache||{}),"f"),Er(this,Hh,"f").add(()=>Er(this,Bd,"f").complete()));const r=pq(e.queueOperator);Er(this,Hh,"f").add(()=>Er(this,Qv,"f").complete()),Er(this,Hh,"f").add(Er(this,Qv,"f").pipe(r(a=>{const{args:l,options:u}=a;return new vn(f=>{const{task:p,transaction:m}=Er(this,_u,"f").next(l,u);f.add(p.pipe(Tr(()=>Ni)).subscribe(f)),f.add(()=>{setTimeout(()=>Er(this,_u,"f").cancel(m))})})}),$P(),_E(()=>!Er(this,_u,"f").closed)).subscribe(a=>{const{args:l,value:u,transaction:f,ref:p}=a,m=p??Er(this,s_,"f").call(this,l);Er(this,Bd,"f").setItem(m,{value:u,args:l,transaction:f})}))}next(e,t){Er(this,Qv,"f").next({args:e,options:t})}query(e,t){return this._query(e,t)}queryAsync(e,t){const r=t||{},{awaitResolve:a}=r,l=fq(r,["awaitResolve"]);return(a?Zo:Po)(this._query(e,l))}complete(){Er(this,Hh,"f").unsubscribe()}_query(e,t){var r;const a=Er(this,s_,"f").call(this,e),l=(r=Er(this,a_,"f")[a])!==null&&r!==void 0?r:this._createTask(a,e,t);return t!=null&&t.signal&&t.signal.addEventListener("abort",()=>{Er(this,_u,"f").cancelTaskByRef(a,"abort signal triggered by caller")}),l}_createTask(e,t,r){const a=new po,l=new vn(u=>{var f;Er(this,a_,"f")[e]=l,a.subscribe(u);const p=Er(this,Bd,"f").getItem(e);p&&a.next(Object.assign(Object.assign({},p),{status:"cache"}));const m=((f=r==null?void 0:r.cache)===null||f===void 0?void 0:f.validate)||Er(this,iw,"f");p&&m(p,t)?a.complete():Er(this,Qv,"f").next({args:t,options:{ref:e,task:a,retry:r==null?void 0:r.retry}})}).pipe(Dy(()=>{delete Er(this,a_,"f")[e]}),BR());return l}};Hh=new WeakMap,_u=new WeakMap,Bd=new WeakMap,Qv=new WeakMap,a_=new WeakMap,s_=new WeakMap,iw=new WeakMap,L1=new WeakMap,U1.extractQueryValue=nq;var F1=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(u){u(l)})}return new(t||(t=Promise))(function(l,u){function f(y){try{m(r.next(y))}catch(E){u(E)}}function p(y){try{m(r.throw(y))}catch(E){u(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})},BP=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},vq=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!a:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(n,t):a?a.value=t:e.set(n,t),t},l_;const qP="services";class mq{get environment(){var e;const t=(e=BP(this,l_,"f").cache.getItem(qP))===null||e===void 0?void 0:e.value;if(!t)throw Error("no cached environment found");return t}constructor({http:e,endpoint:t}){l_.set(this,void 0),this.http=e,this.endpoint=t,vq(this,l_,new U1({client:{fn:()=>e.fetch$(t,{selector:this.selector.bind(this)})},key:()=>qP,expire:5*60*1e3}),"f")}fetchEnvironment(){return F1(this,void 0,void 0,function*(){return Po(U1.extractQueryValue(BP(this,l_,"f").query(void 0,{cache:{suppressInvalid:!0}})))})}selector(e){return F1(this,void 0,void 0,function*(){const t=yield e.json(),r=t.services.reduce((a,l)=>{var u;return Object.assign(a,{[l.key]:{clientId:t.clientId,uri:l.uri,defaultScopes:(u=l.defaultScopes)!==null&&u!==void 0?u:[t.clientId+"/.default"]}})},{});return Object.assign(Object.assign({},t),{services:r})})}resolveService(e){return F1(this,void 0,void 0,function*(){try{const{services:t}=yield this.fetchEnvironment();return t[e]}catch(t){throw console.error(t),t}})}}l_=new WeakMap;const gq="serviceDiscovery";var yq=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(u){u(l)})}return new(t||(t=Promise))(function(l,u){function f(y){try{m(r.next(y))}catch(E){u(E)}}function p(y){try{m(r.throw(y))}catch(E){u(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};const _q={name:gq,configure:()=>new X6({clientCtor:mq,clientKey:"service_discovery",endpoint:"/_discovery/environments/current"}),initialize:({config:n,requireInstance:e})=>yq(void 0,void 0,void 0,function*(){const t=yield e("http"),r=yield n.createHttpClientClient(t),a=yield n.createClient(r);return new J6(a,t)})};class Cq{}var js;(function(n){n.v1="1.0",n.v2="2.0"})(js||(js={}));class Es extends Error{constructor(e,t){super(`unsupported version ${e}`,{cause:t}),this.version=e}}const Eq=(n,e)=>{var t;const r=(t=js[n])!==null&&t!==void 0?t:n;switch(r){case js.v2:throw new Es(n);case js.v1:default:{const{id:a}=e,l=new URLSearchParams;return l.append("api-version",r),`/contexts/${a}/?${String(l)}`}}},wq=(n,e,t)=>[Eq(n,e),t],bq=(n,e,t="json")=>(r,a)=>n[t](...wq(e,r,a));var Sq=["eq","ne","gt","ge","lt","le"],ow=["and","or","not"],Tq=["any","all"],Rq=["startswith","endswith","contains"],kq=["expand","levels","select","skip","top","count","orderby","filter"],VP=/\((.*)\)/,KP=/(?!indexof)\((\w+)\)/,GP;(function(n){n.sum="sum",n.min="min",n.max="max",n.average="average",n.countdistinct="countdistinct"})(GP||(GP={}));var Dc="";function WP(n){var e=n===void 0?{}:n,t=e.select,r=e.search,a=e.skiptoken,l=e.format,u=e.top,f=e.skip,p=e.filter,m=e.transform,y=e.orderBy,E=e.key,S=e.count,T=e.expand,A=e.action,I=e.func,P="",D=[],L={};if(E!=null&&(P+="(".concat(Cu(E,D),")")),(p||typeof S=="object")&&(L.$filter=u_(typeof S=="object"?S:p,D)),m&&(L.$apply=YP(m)),T&&(L.$expand=aw(T)),y&&(L.$orderby=H1(y)),S&&(typeof S=="boolean"?L.$count=!0:P+="/$count"),typeof u=="number"&&(L.$top=u),typeof f=="number"&&(L.$skip=f),A&&(P+="/".concat(A)),I){if(typeof I=="string")P+="/".concat(I);else if(typeof I=="object"){var j=Object.keys(I)[0],F=Cu(I[j],D);P+="/".concat(j),F!==""&&(P+="(".concat(F,")"))}}return D.length>0&&Object.assign(L,D.reduce(function(V,Y){var Z;return Object.assign(V,(Z={},Z["@".concat(Y.name)]=Cu(Y.value),Z))},{})),Nq(P,vi({$select:t,$search:r,$skiptoken:a,$format:l},L))}function $1(n,e,t){return t===void 0&&(t=[]),"".concat(n," eq ").concat(Cu(e,t))}function u_(n,e,t){return n===void 0&&(n={}),e===void 0&&(e=[]),t===void 0&&(t=""),(Array.isArray(n)?n:[n]).reduce(function(l,u){if(u){var f=r(u,e,t);f&&l.push(f)}return l},[]).join(" and ");function r(l,u,f){l===void 0&&(l={}),u===void 0&&(u=[]),f===void 0&&(f="");var p="";if(typeof l=="string")p=l;else if(l&&typeof l=="object"){var m=Object.keys(l).reduce(function(y,E){var S=l[E];if(S===void 0)return y;var T="";if(f?E===Dc?T=f:KP.test(E)?T=E.replace(KP,function(L,j){return j.trim()===Dc?"(".concat(f,")"):"(".concat(f,"/").concat(j.trim(),")")}):VP.test(E)?T=E.replace(VP,function(L,j){return j.trim()===Dc?"(".concat(f,")"):"(".concat(f,"/").concat(j.trim(),")")}):T="".concat(f,"/").concat(E):T=E,E===Dc&&Array.isArray(S))return y.concat(S.map(function(L){return $1(T,L)}));if(["number","string","boolean"].indexOf(typeof S)!==-1||S instanceof Date||S===null)y.push($1(T,S,u));else if(Array.isArray(S)){var A=E,I=S.map(function(L){return u_(L,u,f)}).filter(function(L){return L}).map(function(L){return ow.indexOf(A)!==-1?"(".concat(L,")"):L});I.length&&(ow.indexOf(A)!==-1?I.length&&(A==="not"?y.push(QP(I)):y.push("(".concat(I.join(" ".concat(A," ")),")"))):y.push(I.join(" ".concat(A," "))))}else if(ow.indexOf(T)!==-1){var P=T,I=Object.keys(S).map(function(j){var F;return r((F={},F[j]=S[j],F))});I.length&&(P==="not"?y.push(QP(I)):y.push("(".concat(I.join(" ".concat(P," ")),")")))}else if(typeof S=="object")if("type"in S)y.push($1(T,S,u));else{var D=Object.keys(S);D.forEach(function(L){if(S[L]!==void 0)if(Sq.indexOf(L)!==-1)y.push("".concat(T," ").concat(L," ").concat(Cu(S[L],u)));else if(ow.indexOf(L)!==-1)Array.isArray(S[L])?y.push(S[L].map(function(Y){return"("+r(Y,u,T)+")"}).join(" ".concat(L," "))):y.push("("+r(S[L],u,T)+")");else if(Tq.indexOf(L)!==-1){var j=a(E.toLowerCase(),S[L],L,T);j&&y.push(j)}else if(L==="has")y.push("".concat(T," ").concat(L," ").concat(Cu(S[L],u)));else if(L==="in"){var F=Array.isArray(S[L])?S[L]:S[L].value.map(function(Y){return{type:S[L].type,value:Y}});y.push(T+" in ("+F.map(function(Y){return Cu(Y,u)}).join(",")+")")}else if(Rq.indexOf(L)!==-1)y.push("".concat(L,"(").concat(T,",").concat(Cu(S[L],u),")"));else{var V=r(S,u,T);V&&y.push(V)}})}else throw new Error("Unexpected value type: ".concat(S));return y},[]);p=m.join(" and ")}return p}function a(l,u,f,p){var m="";if(typeof u=="string"||u instanceof String)m=Aq(l,u,f,p);else if(u){var y=Array.isArray(u)?u.reduce(function(S,T){return T.hasOwnProperty(Dc)?(S.hasOwnProperty(Dc)||(S[Dc]=[]),S[Dc].push(T[Dc]),S):vi(vi({},S),T)},{}):u,E=r(y,e,l);m="".concat(p,"/").concat(f,"(").concat(E?"".concat(l,":").concat(E):"",")")}return m}}function Aq(n,e,t,r){var a="",l=t=="all"?"ne":"eq";return a="".concat(r,"/").concat(t,"(").concat(n,": ").concat(n," ").concat(l," '").concat(e,"')"),a}function xq(n){return n=n.replace(/%/g,"%25"),n=n.replace(/\+/g,"%2B"),n=n.replace(/\//g,"%2F"),n=n.replace(/\?/g,"%3F"),n=n.replace(/#/g,"%23"),n=n.replace(/&/g,"%26"),n=n.replace(/'/g,"''"),n}function Cu(n,e){if(typeof n=="string")return"'".concat(xq(n),"'");if(n instanceof Date)return n.toISOString();if(typeof n=="number")return n;if(Array.isArray(n))return"[".concat(n.map(function(t){return Cu(t)}).join(","),"]");if(n===null)return n;if(typeof n=="object")switch(n.type){case"raw":case"guid":return n.value;case"duration":return"duration'".concat(n.value,"'");case"binary":return"binary'".concat(n.value,"'");case"alias":return Array.isArray(e)&&e.push(n),"@".concat(n.name);case"json":return escape(JSON.stringify(n.value));case"decimal":return"".concat(n.value,"M");default:return Object.entries(n).filter(function(t){var r=t[1];return r!==void 0}).map(function(t){var r=t[0],a=t[1];return"".concat(r,"=").concat(Cu(a,e))}).join(",")}return n}function aw(n){if(typeof n=="number")return n;if(typeof n=="string")return n.indexOf("/")===-1?n:n.split("/").reverse().reduce(function(t,r,a,l){return a===0?"$expand=".concat(r):a===l.length-1?"".concat(r,"(").concat(t,")"):"$expand=".concat(r,"(").concat(t,")")},"");if(Array.isArray(n))return"".concat(n.map(function(t){return aw(t)}).join(","));if(typeof n=="object"){var e=Object.keys(n);return e.some(function(t){return kq.indexOf(t.toLowerCase())!==-1})?e.map(function(t){var r;switch(t){case"filter":r=u_(n[t]);break;case"orderBy":r=H1(n[t]);break;case"levels":case"count":case"skip":case"top":r="".concat(n[t]);break;default:r=aw(n[t])}return"$".concat(t.toLowerCase(),"=").concat(r)}).join(";"):e.map(function(t){var r=aw(n[t]);return r?"".concat(t,"(").concat(r,")"):t}).join(",")}return""}function YP(n){var e=Array.isArray(n)?n:[n],t=e.reduce(function(r,a){var l=a.aggregate,u=a.filter,f=a.groupBy,p=BN(a,["aggregate","filter","groupBy"]),m=Object.keys(p);if(m.length)throw new Error("Unsupported transform(s): ".concat(m));if(l&&r.push("aggregate(".concat(Iq(l),")")),u){var y=u_(u);y&&r.push("filter(".concat(u_(y),")"))}return f&&r.push("groupby(".concat(Oq(f),")")),r},[]);return t.join("/")||void 0}function Iq(n){var e=Array.isArray(n)?n:[n];return e.map(function(t){return typeof t=="string"?t:Object.keys(t).map(function(r){var a=t[r];if(!a.with&&a.as)return"".concat(r," as ").concat(a.as);if(!a.with)throw new Error("'with' property required for '".concat(r,"'"));if(!a.as)throw new Error("'as' property required for '".concat(r,"'"));return"".concat(r," with ").concat(a.with," as ").concat(a.as)})}).join(",")}function Oq(n){if(!n.properties)throw new Error("'properties' property required for groupBy");var e="(".concat(n.properties.join(","),")");return n.transform&&(e+=",".concat(YP(n.transform))),e}function H1(n,e){return e===void 0&&(e=""),Array.isArray(n)?n.map(function(t){return Array.isArray(t)&&t.length===2&&["asc","desc"].indexOf(t[1])!==-1?t.join(" "):t}).map(function(t){return"".concat(e).concat(String(t))}).join(","):typeof n=="object"?Object.entries(n).map(function(t){var r=t[0],a=t[1];return H1(a,"".concat(r,"/"))}).map(function(t){return"".concat(e).concat(t)}).join(","):"".concat(e).concat(String(n))}function Nq(n,e){var t=Object.getOwnPropertyNames(e).filter(function(r){return e[r]!==void 0&&e[r]!==""}).map(function(r){return"".concat(r,"=").concat(e[r])});return t.length?"".concat(n,"?").concat(t.join("&")):n}function QP(n){return"not(".concat(n.join(" and "),")")}const Mq=n=>Object.keys(n).reduce((e,t)=>{var r;switch(t){case"type":return!((r=n[t])===null||r===void 0)&&r.length?Object.assign(Object.assign({},e),{[t]:{in:n[t]}}):e;default:return Object.assign(Object.assign({},e),{[t]:n[t]})}},{}),Pq=n=>Object.entries(n).filter(([e,t])=>!!t).reduce((e,[t,r])=>{switch(t){case"filter":return Object.assign(Object.assign({},e),{[t]:Mq(r)});default:return Object.assign(Object.assign({},e),{[t]:n[t]})}},{}),Dq=n=>typeof n=="string"?n:WP(Pq(n)),Lq=(n,e)=>{var t;const r=(t=js[n])!==null&&t!==void 0?t:n;switch(r){case js.v2:throw new Es(n);case js.v1:default:{const{query:a,includeDeleted:l}=e,u=new URLSearchParams(Dq(a));return u.append("api-version",r),l&&u.append("includeDeleted","true"),`/contexts/?${String(u)}`}}},Uq=(n,e,t)=>[Lq(n,e),t],Fq=(n,e,t="json")=>(r,a)=>n[t](...Uq(e,r,a)),$q=n=>Object.keys(n).reduce((e,t)=>{var r;switch(t){case"type":return!((r=n[t])===null||r===void 0)&&r.length?Object.assign(Object.assign({},e),{[t]:{in:n[t]}}):e;default:return Object.assign(Object.assign({},e),{[t]:n[t]})}},{}),Hq=n=>Object.entries(n).filter(([e,t])=>!!t).reduce((e,[t,r])=>{switch(t){case"filter":return Object.assign(Object.assign({},e),{[t]:$q(r)});default:return Object.assign(Object.assign({},e),{[t]:n[t]})}},{}),jq=n=>typeof n=="string"?n:WP(Hq(n)),zq=(n,e)=>{var t;const r=(t=js[n])!==null&&t!==void 0?t:n;switch(r){case js.v2:throw new Es(n);case js.v1:default:{const{id:a,query:l}=e,u=new URLSearchParams(jq(l||""));return u.append("api-version",r),`/contexts/${a}/relations?${String(u)}`}}},Bq=(n,e,t)=>[zq(n,e),t],qq=(n,e,t="json")=>(r,a)=>n[t](...Bq(e,r,a));class Vq{get Version(){return js}constructor(e,t){this._client=e,this._method=t}get(e,...t){return bq(this._client,e,this._method)(...t)}query(e,...t){return Fq(this._client,e,this._method)(...t)}related(e,...t){return qq(this._client,e,this._method)(...t)}}const Kq=(n,e)=>{switch(n){case"v1":{const{id:t}=e,r=new URLSearchParams;return r.append("api-version","1.0"),`/bookmarks/${t}/?${String(r)}`}default:{const{id:t}=e,r=new URLSearchParams;return r.append("api-version",n),`/bookmarks/${t}/?${String(r)}`}}},Gq=(n,e,t)=>{const r=Kq(n,e),a=Object.assign({},{method:"Delete"},t);return[r,a]},Wq=(n,e,t="fetch")=>(r,a)=>n[t](...Gq(e,r,a)),Yq=(n,e)=>{switch(n){case"v1":{const{id:t}=e,r=new URLSearchParams;return r.append("api-version","1.0"),`/bookmarks/${t}/?${String(r)}`}default:{const{id:t}=e,r=new URLSearchParams;return r.append("api-version",n),`/bookmarks/${t}/?${String(r)}`}}},Qq=(n,e,t)=>[Yq(n,e),t],Xq=(n,e,t="json")=>(r,a)=>n[t](...Qq(e,r,a)),Jq=(n,e)=>{switch(n){case"v1":default:{const t=new URLSearchParams;return t.append("api-version",n),`/bookmarks?${String(t)}`}}},Zq=(n,e,t)=>{const r=Jq(n),a=new Headers;a.append("content-type","application/json");const l=Object.assign({},{method:"post",body:JSON.stringify(e),headers:a},t);return[r,l]},eV=(n,e,t="json")=>(r,a)=>n[t](...Zq(e,r,a)),tV=(n,e)=>{switch(n){case"v1":default:{const t=new URLSearchParams;return t.append("api-version",n),`/bookmarks/${e.id}?${String(t)}`}}},nV=(n,e,t)=>{const r=tV(n,e),a=new Headers;a.append("content-type","application/json");const l=Object.assign({},{method:"patch",body:JSON.stringify(e),headers:a},t);return[r,l]},rV=(n,e,t="json")=>(r,a)=>n[t](...nV(e,r,a)),iV=n=>{switch(n){case"v1":default:{const e=new URLSearchParams;return e.append("api-version",n),`persons/me/bookmarks/?${String(e)}`}}},oV=(n,e)=>[iV(n),e],aV=(n,e,t="json")=>r=>n[t](...oV(e,r)),sV=(n,e)=>{switch(n){case"v1":default:{const t=new URLSearchParams;return t.append("api-version",n),`/persons/me/bookmarks/favourites?${String(t)}`}}},lV=(n,e,t)=>{const r=sV(n),a=new Headers;a.append("content-type","application/json");const l=Object.assign({},{method:"post",body:JSON.stringify(e),headers:a},t);return[r,l]},uV=(n,e,t="json")=>(r,a)=>n[t](...lV(e,r,a)),cV=(n,e)=>{switch(n){case"v1":default:{const{bookmarkId:t}=e,r=new URLSearchParams;return r.append("api-version","1.0"),`/persons/me/bookmarks/favourites/${t}/?${String(r)}`}}},dV=(n,e,t)=>{const r=cV(n,e),a=Object.assign({},{method:"Delete"},t);return[r,a]},fV=(n,e,t="fetch")=>(r,a)=>n[t](...dV(e,r,a)),hV=(n,e)=>{switch(n){case"v1":default:{const{bookmarkId:t}=e,r=new URLSearchParams;return r.append("api-version",n),`/persons/me/bookmarks/favourites/${t}?${String(r)}`}}},pV=(n,e,t)=>{const r=hV(n,e),a=new Headers;a.append("content-type","application/json");const l=Object.assign({},{method:"head",headers:a},t);return[r,l]},vV=(n,e,t="json")=>(r,a)=>n[t](...pV(e,r,a));class mV{constructor(e,t){this._client=e,this._method=t}get(e,...t){return Xq(this._client,e,this._method)(...t)}getAll(e){return aV(this._client,e,this._method)()}post(e,...t){return eV(this._client,e,this._method)(...t)}patch(e,...t){return rV(this._client,e,this._method)(...t)}delete(e,...t){return Wq(this._client,e,this._method)(...t)}addFavorite(e,...t){return uV(this._client,e,this._method)(...t)}removeFavorite(e,...t){return fV(this._client,e,this._method)(...t)}verifyFavorite(e,...t){return vV(this._client,e,this._method)(...t)}}const gV=mV,yV=(n,e)=>{var t;const r=(t=Dr[n])!==null&&t!==void 0?t:n;switch(r){case Dr.v2:throw new Es(n);case Dr.v1:default:{const{id:a}=e,l=new URLSearchParams;return l.append("api-version",r),`/notification/${a}/?${String(l)}`}}},_V=(n,e,t)=>[yV(n,e),t],CV=(n,e,t="json")=>(r,a)=>n[t](..._V(e,r,a)),EV=(n,e)=>{var t;const r=(t=Dr[n])!==null&&t!==void 0?t:n;switch(r){case Dr.v2:throw new Es(n);case Dr.v1:default:{const{userId:a}=e,l=new URLSearchParams;return l.append("api-version",r),`/person/${a}/notifications/?${String(l)}`}}},wV=(n,e,t)=>{const r=EV(n,e),a=new Headers;a.append("content-type","application/json");const l=Object.assign({},{method:"post",body:JSON.stringify(e),headers:a},t);return[r,l]},bV=(n,e,t="json")=>(r,a)=>n[t](...wV(e,r,a)),SV=(n,e)=>{var t;const r=(t=Dr[n])!==null&&t!==void 0?t:n;switch(r){case Dr.v2:throw new Es(n);case Dr.v1:default:{const{id:a}=e,l=new URLSearchParams;return l.append("api-version",r),`/notification/${a}/?${String(l)}`}}},TV=(n,e,t)=>{const r=SV(n,e),a=new Headers;a.append("content-type","application/json");const l=Object.assign({},{method:"patch",body:JSON.stringify(e),headers:a},t);return[r,l]},RV=(n,e,t="json")=>(r,a)=>n[t](...TV(e,r,a)),kV=(n,e)=>{var t;const r=(t=Dr[n])!==null&&t!==void 0?t:n;switch(r){case Dr.v2:throw new Es(n);case Dr.v1:default:{const{userId:a}=e,l=new URLSearchParams;return l.append("api-version",r),`/person/${a}/notifications/?${String(l)}`}}},AV=(n,e,t)=>[kV(n,e),t],xV=(n,e,t="json")=>(r,a)=>n[t](...AV(e,r,a)),IV=(n,e)=>{var t;const r=(t=Dr[n])!==null&&t!==void 0?t:n;switch(r){case Dr.v2:throw new Es(n);case Dr.v1:default:{const{id:a}=e,l=new URLSearchParams;return l.append("api-version",r),`/notification/${a}/?${String(l)}`}}},OV=(n,e,t)=>{const r=IV(n,e),a=new Headers;a.append("content-type","application/json");const l=Object.assign({},{method:"delete",headers:a},t);return[r,l]},NV=(n,e,t="json")=>(r,a)=>n[t](...OV(e,r,a));var Dr;(function(n){n.v1="1.0",n.v2="2.0"})(Dr||(Dr={}));const MV=(n,e)=>{var t;const r=(t=Dr[n])!==null&&t!==void 0?t:n;switch(r){case Dr.v2:throw new Es(n);case Dr.v1:default:{const{userId:a}=e,l=new URLSearchParams;return l.append("api-version",r),`/person/${a}/notifications/settings/?${String(l)}`}}},PV=(n,e,t)=>{const r=MV(n,e),a=new Headers;a.append("content-type","application/json");const l=Object.assign({},{method:"put",body:JSON.stringify(e),headers:a},t);return[r,l]},DV=(n,e,t="json")=>(r,a)=>n[t](...PV(e,r,a)),LV=(n,e)=>{var t;const r=(t=Dr[n])!==null&&t!==void 0?t:n;switch(r){case Dr.v2:throw new Es(n);case Dr.v1:default:{const{userId:a}=e,l=new URLSearchParams;return l.append("api-version",r),`/person/${a}/notifications/settings/?${String(l)}`}}},UV=(n,e,t)=>[LV(n,e),t],FV=(n,e,t="json")=>(r,a)=>n[t](...UV(e,r,a));class $V{get Version(){return Dr}constructor(e,t){this._client=e,this._method=t}getAll(e,...t){return xV(this._client,e,this._method)(...t)}getById(e,...t){return CV(this._client,e,this._method)(...t)}setSeenByUser(e,...t){return RV(this._client,e,this._method)(...t)}create(e,...t){return bV(this._client,e,this._method)(...t)}delete(e,...t){return NV(this._client,e,this._method)(...t)}getSettings(e,...t){return FV(this._client,e,this._method)(...t)}updateSettings(e,...t){return DV(this._client,e,this._method)(...t)}}var Lc;(function(n){n.v2="2.0",n.v4="4.0"})(Lc||(Lc={}));const HV=(n,e)=>{var t;const r=(t=Lc[n])!==null&&t!==void 0?t:n;switch(r){case Lc.v4:{const{azureId:a,expand:l}=e,u=new URLSearchParams;return u.append("api-version",r),l&&u.append("$expand",l.join(",")),`/persons/${a}?${String(u)}`}default:throw new Es(n)}},jV=(n,e,t)=>[HV(n,e),t],zV=(n,e,t="json")=>(r,a)=>n[t](...jV(e,r,a)),BV=(n,e)=>{var t;const r=(t=Lc[n])!==null&&t!==void 0?t:n;switch(r){case Lc.v2:{const{search:a}=e,l=new URLSearchParams;return l.append("api-version",r),l.append("$search",a),`/persons?${String(l)}`}default:throw new Es(n)}},qV=(n,e,t)=>[BV(n,e),t],VV=(n,e,t="json")=>(r,a)=>n[t](...qV(e,r,a)),KV=(n,e)=>{var t;const r=(t=Lc[n])!==null&&t!==void 0?t:n;switch(r){case Lc.v2:{const{azureId:a}=e,l=new URLSearchParams;return l.append("api-version",r),`/persons/${a}/photo?${String(l)}`}default:throw new Es(n)}},GV=(n,e,t)=>[KV(n,e),t],WV=(n,e,t="blob")=>(r,a)=>n[t](...GV(e,r,a));class YV{get Version(){return Lc}constructor(e){this._client=e}get(e,t,r,a){return zV(this._client,e,t)(r,a)}query(e,t,r,a){return VV(this._client,e,t)(r,a)}photo(e,t,r,a){return WV(this._client,e,t)(r,a)}}var c_=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(u){u(l)})}return new(t||(t=Promise))(function(l,u){function f(y){try{m(r.next(y))}catch(E){u(E)}}function p(y){try{m(r.throw(y))}catch(E){u(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};class QV extends Error{constructor(e,t,r){super(e,r),this.response=t,this.name="ApiProviderError"}}const sw=n=>c_(void 0,void 0,void 0,function*(){var e;if(!n.ok){const{headers:t,status:r,statusText:a,type:l,url:u,bodyUsed:f}=n,p=(e=t.get("content-type"))===null||e===void 0?void 0:e.match(/application\/(\w*)?[+]?json/),m=!f&&(yield p?n.json():n.text());throw new QV("failed to execute request, response was not ok",{headers:t,status:r,statusText:a,type:l,url:u,data:m})}});class XV{constructor({createClient:e}){this._createClientFn=e}createNotificationClient(e){return c_(this,void 0,void 0,function*(){const t=yield this._createClientFn("notification");return t.responseHandler.add("validate_api_request",sw),new $V(t,e)})}createBookmarksClient(e){return c_(this,void 0,void 0,function*(){const t=yield this._createClientFn("bookmarks");return t.responseHandler.add("validate_api_request",sw),new gV(t,e)})}createContextClient(e){return c_(this,void 0,void 0,function*(){const t=yield this._createClientFn("context");return t.responseHandler.add("validate_api_request",sw),new Vq(t,e)})}createPeopleClient(){return c_(this,void 0,void 0,function*(){const e=yield this._createClientFn("people");return e.responseHandler.add("validate_api_request",sw),new YV(e)})}}var XP=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(u){u(l)})}return new(t||(t=Promise))(function(l,u){function f(y){try{m(r.next(y))}catch(E){u(E)}}function p(y){try{m(r.throw(y))}catch(E){u(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};const JV="services",ZV=(n,e)=>t=>XP(void 0,void 0,void 0,function*(){if(n.hasClient(t))return n.createClient(t);if(e)return e.createClient(t);throw Error(`failed to create http client for service ${t}`)}),e8={name:JV,configure:()=>new Cq,initialize:({ref:n,config:e,requireInstance:t,hasModule:r})=>XP(void 0,void 0,void 0,function*(){if(!e.createClient){const a=yield t("http"),l=r("serviceDiscovery")?yield t("serviceDiscovery"):n==null?void 0:n.serviceDiscovery;e.createClient=ZV(a,l)}if(!e.createClient)throw Error("missing configuration for creating API client");return new XV(e)})};class t8 extends sB{constructor(){super([fB,fP,KR,_q,e8,DP]),this.logger=new zN("FrameworkConfigurator")}configureHttp(...e){this.addConfig(SB(...e))}configureHttpClient(...e){this.addConfig(OM(...e))}configureMsal(...e){this.addConfig(U5(...e))}configureServiceDiscovery(e){this.configureHttpClient("service_discovery",e.client)}}var n8=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(u){u(l)})}return new(t||(t=Promise))(function(l,u){function f(y){try{m(r.next(y))}catch(E){u(E)}}function p(y){try{m(r.throw(y))}catch(E){u(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};const r8=(n,e)=>n8(void 0,void 0,void 0,function*(){const t=yield n.initialize(e),r={modules:t};return window.Fusion=r,t.event.dispatchEvent("onFrameworkLoaded",{detail:r}),r}),JP=U.createContext(null),i8=JP.Provider,o8=U.createContext({});globalThis&&globalThis.__awaiter,globalThis&&globalThis.__rest;const a8=o8.Provider;var s8=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(u){u(l)})}return new(t||(t=Promise))(function(l,u){function f(y){try{m(r.next(y))}catch(E){u(E)}}function p(y){try{m(r.throw(y))}catch(E){u(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};const l8=n=>U.lazy(()=>s8(void 0,void 0,void 0,function*(){const e=new t8;yield n(e);const t=yield r8(e);return{default:({children:r})=>le.jsx(i8,{value:t,children:le.jsx(a8,{value:t.modules,children:r})})}})),d_=()=>{let n=U.useContext(JP);return n||console.warn("could not locate fusion in context!"),n??(n=window.Fusion),n||console.error("Could not load framework, might not be initiated?"),n},u8=n=>{const{configure:e,fallback:t,children:r}=n,a=U.useMemo(()=>l8(e),[e]);return le.jsx(U.Suspense,{fallback:t,children:le.jsx(a,{children:r})})};var c8=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!a:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(n,t):a?a.value=t:e.set(n,t),t},d8=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},lw;class f8{constructor(e,t={}){this.config=t,lw.set(this,void 0),c8(this,lw,e,"f")}requireInstance(e){return d8(this,lw,"f").requireInstance(e)}setAppClient(e,t=1*60*1e3){this.config.client={getAppManifest:typeof e.getAppManifest=="function"?{key:({appKey:r})=>r,client:{fn:e.getAppManifest},expire:t}:e.getAppManifest,getAppManifests:typeof e.getAppManifests=="function"?{key:()=>"app_manifests",client:{fn:e.getAppManifests},expire:t}:e.getAppManifests,getAppConfig:typeof e.getAppConfig=="function"?{key:r=>JSON.stringify(r),client:{fn:e.getAppConfig},expire:t}:e.getAppConfig}}}lw=new WeakMap;var ZP;(function(n){n.IDLE="idle",n.ACTIVE="active",n.FAILED="failed",n.CANCELED="canceled"})(ZP||(ZP={}));const h8=n=>e=>e.pipe(FR(n)),p8=n=>e=>e.pipe(za(n)),v8=n=>e=>e.pipe(Wr(n)),m8=n=>n.pipe(dn(e=>e.value));class j1 extends Error{constructor(e,t){super(t.message,{cause:t.cause}),this.type=e,this.name="QueryClientError",this.request=t.request}}const yo=(()=>({request:wn("client/request",(e,t)=>{var r,a,l;return t??(t={}),(r=t.transaction)!==null&&r!==void 0||(t.transaction=Hv()),(a=t.created)!==null&&a!==void 0||(t.created=Date.now()),(l=t.task)!==null&&l!==void 0||(t.task=new vE),{payload:e,meta:t}}),retry:wn("client/retry",e=>({payload:e})),success:wn("client/success",(e,t)=>({payload:e,meta:t})),cancel:wn("client/cancel",e=>({payload:e})),failure:wn("client/failure",(e,t)=>({payload:e,meta:t})),error:wn("client/error",(e,t)=>({payload:e,meta:t}))}))(),eD=n=>e=>e.pipe(fn(yo.request.match),za(t=>{const{meta:r}=t,{transaction:a}=r,l=new AbortController,{signal:u}=l;return new vn(f=>{f.add(e.pipe(fn(yo.cancel.match)).subscribe(p=>{p.payload.transaction===a&&(u.aborted||l.abort(),f.complete())})),f.add(Pr(n(t,u)).subscribe({next:p=>f.next(p),error:p=>f.next(yo.error(p,{request:t})),complete:()=>f.complete()}))})})),g8=n=>(n=Object.assign({},{count:0,delay:0},n),(e,t)=>e.pipe(eD(r=>e.pipe(fn(yo.failure.match),fn(a=>a.meta.request===r),kv(t),Wr(([a,l])=>{var u,f;const{transaction:p}=r.meta,m=l[p];if(!m)return Ni;const y=(f=(u=m.retry)===null||u===void 0?void 0:u.length)!==null&&f!==void 0?f:0,E=Object.assign({},n,r.meta.retry);if(y>=E.count)throw E.count?Error("maximum retries executed!",{cause:a.payload}):a.payload;return(typeof E.delay=="function"?Pr(E.delay(a.payload.cause)).pipe(Tr(T=>{throw Error("failed to resolve delay",{cause:T})})):UR(E.delay)).pipe(dn(()=>yo.retry(r)))}))))),y8=n=>e=>e.pipe(eD((t,r)=>Pr(n(t.payload,r)).pipe(dn(a=>yo.success(a,{request:t})),Tr(a=>gs(yo.failure(Error(`failed to execute request for transaction ${t.meta.transaction}`,{cause:a}),{request:t})))))),_8=n=>n.pipe(fn(yo.retry.match),dn(e=>e.payload)),tD=()=>fn(n=>n.status==="complete"),C8=(n={})=>Mh(n,e=>e.addCase(yo.request,(t,r)=>{const{transaction:a,task:l,ref:u,created:f}=r.meta;t[a]={transaction:a,task:l,ref:u,created:f}}).addCase(yo.success,(t,r)=>{const{request:a}=r.meta,{transaction:l,ref:u}=a.meta,f=t[l];if(f){const p={status:"complete",transaction:l,ref:u,value:r.payload,args:a.payload,created:f.created,completed:Date.now()};f.task.next(p),f.task.complete()}delete t[l]}).addCase(yo.retry,(t,r)=>{var a;const{transaction:l}=r.payload.meta,u=t[l];u&&((a=u.retry)!==null&&a!==void 0||(u.retry=[]),u.retry.push(Date.now()))}).addCase(yo.cancel,(t,r)=>{const{transaction:a,reason:l}=r.payload;if(t[a]){const u=Object.assign({},jv(t[a]));u.task.error(new j1("abort",{request:u,message:l??"request was canceled"})),delete t[a]}}).addCase(yo.failure,(t,r)=>{var a;const{payload:l,meta:u}=r,{transaction:f}=u.request.meta,p=t[f];p&&((a=p.errors)!==null&&a!==void 0||(p.errors=[]),p.errors.push(l))}).addCase(yo.error,(t,r)=>{const{payload:a,meta:l}=r,{transaction:u}=l.request.meta;if(t[u]){const f=Object.assign({},jv(t[u]));f.task.error(new j1("error",{request:f,message:`failed to process task [${u}]`,cause:a.cause})),delete t[u]}}));var E8=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(u){u(l)})}return new(t||(t=Promise))(function(l,u){function f(y){try{m(r.next(y))}catch(E){u(E)}}function p(y){try{m(r.throw(y))}catch(E){u(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})},ai=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},nD=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!a:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(n,t):a?a.value=t:e.set(n,t),t},yi,jh;let rD=class extends vn{get closed(){return ai(this,yi,"f").closed}get state$(){return ai(this,yi,"f")}get action$(){return ai(this,yi,"f").action$}get success$(){return this.action$.pipe(fn(yo.success.match),dn(({payload:e})=>e))}get error$(){return this.action$.pipe(QE("client/error"),kv(ai(this,yi,"f")),dn(([e,t])=>{const{payload:r,meta:a}=e,{transaction:l}=a.request.meta,u=t[e.meta.request.meta.transaction];return new j1("error",{request:u,message:`failed to process task [${l}]`,cause:r})}))}constructor(e,t){super(l=>ai(this,yi,"f").subscribe(l)),yi.set(this,void 0),jh.set(this,void 0);const r={};nD(this,yi,new Nh(C8(r)),"f"),nD(this,jh,new Mo(()=>ai(this,yi,"f").complete()),"f"),ai(this,jh,"f").add(ai(this,yi,"f").addFlow(y8(e))),ai(this,jh,"f").add(ai(this,yi,"f").addFlow(_8));const a=Object.assign({count:0,delay:0},t==null?void 0:t.retry);ai(this,jh,"f").add(ai(this,yi,"f").addFlow(g8(a)))}next(e,t){const{ref:r,retry:a,task:l}=t??{},u=yo.request(e,{ref:r,retry:a,task:l});return ai(this,yi,"f").next(u),u.meta}nextAsync(e,t){return E8(this,void 0,void 0,function*(){return Po(this.next(e,t).task.pipe(tD()))})}getTaskByTransaction(e){const t=ai(this,yi,"f").value[e];return t==null?void 0:t.task}getTaskByRef(e){const t=Object.values(ai(this,yi,"f").value).find(r=>r.ref===e);return t==null?void 0:t.task}cancelTaskByRef(e,t){const r=Object.values(ai(this,yi,"f").value).find(a=>a.ref===e);r!=null&&r.ref&&this.cancel(r.transaction,t)}cancel(e,t){if(e)ai(this,yi,"f").value[e]&&(t??(t=`[${e}]: transaction canceled`),ai(this,yi,"f").next(yo.cancel({transaction:e,reason:t})));else for(const r of Object.keys(ai(this,yi,"f").value))this.cancel(r,"all transactions canceled")}on(e,t){return ai(this,yi,"f").addEffect(yo[e].type,r=>{t(r,this)})}complete(){ai(this,jh,"f").unsubscribe()}asObservable(){return ai(this,yi,"f").asObservable()}};yi=new WeakMap,jh=new WeakMap;function w8(){return{set:wn("cache/set",(n,e)=>({payload:{key:n,entry:e}})),remove:wn("cache/remove",n=>({payload:n})),invalidate:wn("cache/invalidate",n=>({payload:n})),trim:wn("cache/trim",n=>({payload:n}))}}const Xv=w8(),b8=(n,e)=>{var t,r;return((t=e.updated)!==null&&t!==void 0?t:0)-((r=n.updated)!==null&&r!==void 0?r:0)};function S8(n,e={}){return Mh(e,t=>t.addCase(n.set,(r,a)=>{var l;const{key:u,entry:f}=a.payload,p=r[u];if(p)p.updated=Date.now(),(l=p.updates)!==null&&l!==void 0||(p.updates=0),p.updates++;else{const m=Date.now();r[u]=Object.assign(Object.assign({},f),{created:m,updated:m})}}).addCase(n.remove,(r,a)=>{delete r[a.payload]}).addCase(n.invalidate,(r,a)=>{const l=r[a.payload];l&&delete l.updated}).addCase(n.trim,(r,a)=>{var l,u;const{payload:f}=a,p=(l=f.sort)!==null&&l!==void 0?l:b8,m=Object.keys(r),y=Object.entries(r).filter(([E,S])=>!f.validate||f.validate(S)).sort((E,S)=>p(E[1],S[1])).slice(0,(u=f.size)!==null&&u!==void 0?u:Number.MAX_SAFE_INTEGER).map(([E])=>E);if(m.length!==y.length)for(const E of m){const S=y.indexOf(E);S!==-1?y.splice(S,1):delete r[E]}}))}var Tl=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},T8=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!a:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(n,t):a?a.value=t:e.set(n,t),t},Ya;let iD=class{get state(){return Tl(this,Ya,"f").value}get state$(){return Tl(this,Ya,"f").asObservable()}constructor(e){Ya.set(this,void 0);const{trimming:t,initial:r}=e??{};T8(this,Ya,new Nh(S8(Xv,r)),"f"),t&&Tl(this,Ya,"f").addEffect("cache/set",()=>Tl(this,Ya,"f").next(Xv.trim(t)))}setItem(...e){Tl(this,Ya,"f").next(Xv.set(...e))}getItem(e){return Tl(this,Ya,"f").value[e]}removeItem(e){Tl(this,Ya,"f").next(Xv.remove(e))}invalidate(e){Tl(this,Ya,"f").next(Xv.invalidate(e))}trim(e){Tl(this,Ya,"f").next(Xv.trim(e))}reset(){Tl(this,Ya,"f").reset()}complete(){Tl(this,Ya,"f").complete()}};Ya=new WeakMap;var wr=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},Jv=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!a:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(n,t):a?a.value=t:e.set(n,t),t},R8=globalThis&&globalThis.__rest||function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(n,r[a])&&(t[r[a]]=n[r[a]]);return t},zh,Eu,qd,Zv,f_,h_,uw,z1;const k8=(n=0)=>e=>{var t;return((t=e.updated)!==null&&t!==void 0?t:0)+n>Date.now()},A8=n=>{if(typeof n=="function")return n;switch(n){case"concat":return h8;case"merge":return p8;case"switch":default:return v8}};let Bh=class{get client(){return wr(this,Eu,"f")}get cache(){return wr(this,qd,"f")}constructor(e){var t;zh.set(this,new Mo),Eu.set(this,void 0),qd.set(this,void 0),Zv.set(this,new po),f_.set(this,{}),h_.set(this,void 0),uw.set(this,void 0),z1.set(this,Hv()),Jv(this,h_,a=>v1(e.key(a),wr(this,z1,"f")),"f"),Jv(this,uw,(t=e==null?void 0:e.validate)!==null&&t!==void 0?t:k8(e==null?void 0:e.expire),"f"),e.client instanceof rD?Jv(this,Eu,e.client,"f"):(Jv(this,Eu,new rD(e.client.fn,e.client.options),"f"),wr(this,zh,"f").add(()=>wr(this,Eu,"f").complete())),e.cache instanceof iD?Jv(this,qd,e.cache,"f"):(Jv(this,qd,new iD(e.cache||{}),"f"),wr(this,zh,"f").add(()=>wr(this,qd,"f").complete()));const r=A8(e.queueOperator);wr(this,zh,"f").add(()=>wr(this,Zv,"f").complete()),wr(this,zh,"f").add(wr(this,Zv,"f").pipe(r(a=>{const{args:l,options:u}=a;return new vn(f=>{const{task:p,transaction:m}=wr(this,Eu,"f").next(l,u);f.add(p.pipe(Tr(()=>Ni)).subscribe(f)),f.add(()=>{setTimeout(()=>wr(this,Eu,"f").cancel(m))})})}),tD(),_E(()=>!wr(this,Eu,"f").closed)).subscribe(a=>{const{args:l,value:u,transaction:f,ref:p}=a,m=p??wr(this,h_,"f").call(this,l);wr(this,qd,"f").setItem(m,{value:u,args:l,transaction:f})}))}next(e,t){wr(this,Zv,"f").next({args:e,options:t})}query(e,t){return this._query(e,t)}queryAsync(e,t){const r=t||{},{awaitResolve:a}=r,l=R8(r,["awaitResolve"]);return(a?Zo:Po)(this._query(e,l))}complete(){wr(this,zh,"f").unsubscribe()}_query(e,t){var r;const a=wr(this,h_,"f").call(this,e),l=(r=wr(this,f_,"f")[a])!==null&&r!==void 0?r:this._createTask(a,e,t);return t!=null&&t.signal&&t.signal.addEventListener("abort",()=>{wr(this,Eu,"f").cancelTaskByRef(a,"abort signal triggered by caller")}),l}_createTask(e,t,r){const a=new po,l=new vn(u=>{var f;wr(this,f_,"f")[e]=l,a.subscribe(u);const p=wr(this,qd,"f").getItem(e);p&&a.next(Object.assign(Object.assign({},p),{status:"cache"}));const m=((f=r==null?void 0:r.cache)===null||f===void 0?void 0:f.validate)||wr(this,uw,"f");p&&m(p,t)?a.complete():wr(this,Zv,"f").next({args:t,options:{ref:e,task:a,retry:r==null?void 0:r.retry}})}).pipe(Dy(()=>{delete wr(this,f_,"f")[e]}),BR());return l}};zh=new WeakMap,Eu=new WeakMap,qd=new WeakMap,Zv=new WeakMap,f_=new WeakMap,h_=new WeakMap,uw=new WeakMap,z1=new WeakMap,Bh.extractQueryValue=m8;const Yn=(()=>({setManifest:wn("set_manifest",(n,e)=>({payload:n,meta:{created:Date.now(),update:e}})),fetchManifest:JE("fetch_manifest",(n,e)=>({payload:n,meta:{update:e}}),n=>({payload:n}),n=>({payload:n})),setConfig:wn("set_config",n=>({payload:n})),fetchConfig:JE("fetch_config",n=>({payload:n}),n=>({payload:n}),n=>({payload:n})),setModule:wn("set_module",n=>({payload:n})),importApp:JE("import_app",n=>({payload:n}),n=>({payload:n}),n=>({payload:n})),setInstance:wn("set_instance",n=>({payload:n})),initialize:JE("initialize_app",()=>({payload:null}),()=>({payload:null}),n=>({payload:n}))}))();E6();const x8=n=>Mh(Object.assign(Object.assign({},n),{status:new Set}),e=>e.addCase(Yn.setManifest,(t,r)=>{r.meta.update?t.manifest=Object.assign(Object.assign({},t.manifest),r.payload):t.manifest=r.payload}).addCase(Yn.setConfig,(t,r)=>{t.config=r.payload}).addCase(Yn.setModule,(t,r)=>{t.modules=r.payload}).addCase(Yn.setInstance,(t,r)=>{t.instance=r.payload}).addMatcher(x6,(t,r)=>{t.status.add(kP(r))}).addMatcher(N6,(t,r)=>{t.status.delete(kP(r))})),I8=n=>e=>e.pipe(fn(Yn.fetchManifest.match),Wr(t=>{const{payload:r,meta:{update:a}}=t,l=Pr(n.getAppManifest(r)).pipe(fn(u=>!!u),jR());return LR(l.pipe(dn(u=>Yn.setManifest(u,a))),l.pipe($R(),dn(u=>Yn.fetchManifest.success(u)))).pipe(Tr(u=>gs(Yn.fetchManifest.failure(u))))})),O8=n=>e=>e.pipe(fn(Yn.fetchConfig.match),Wr(({payload:t})=>{const r=Pr(n.getAppConfig(t)).pipe(fn(a=>!!a),jR());return LR(r.pipe(dn(a=>Yn.setConfig(a))),r.pipe($R(),dn(a=>Yn.fetchConfig.success(a)))).pipe(Tr(a=>gs(Yn.fetchConfig.failure(a))))})),N8=()=>n=>n.pipe(fn(Yn.importApp.match),Wr(({payload:e})=>Pr(import(e)).pipe(dn(Yn.importApp.success),Tr(t=>gs(Yn.importApp.failure(t)))))),M8=(n,e)=>{const t=x8(n),r=new Nh(t);return r.addFlow(I8(e)),r.addFlow(O8(e)),r.addFlow(N8()),r};var P8=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(u){u(l)})}return new(t||(t=Promise))(function(l,u){function f(y){try{m(r.next(y))}catch(E){u(E)}}function p(y){try{m(r.throw(y))}catch(E){u(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})},an=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},D8=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!a:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(n,t):a?a.value=t:e.set(n,t),t},B1,rn,oD;function p_(){return fn(n=>n!=null)}let L8=class{get manifest$(){return an(this,rn,"f").pipe(dn(({manifest:e})=>e),p_())}get config$(){return an(this,rn,"f").pipe(dn(({config:e})=>e),p_())}get modules$(){return an(this,rn,"f").pipe(dn(({modules:e})=>e),p_())}get instance$(){return an(this,rn,"f").pipe(dn(({instance:e})=>e),p_())}get state(){return an(this,rn,"f").value}get appKey(){return an(this,rn,"f").value.appKey}get manifest(){return this.state.manifest}get manifestAsync(){return Po(this.manifest$)}get config(){return this.state.config}get configAsync(){return Po(this.config$)}get instance(){return an(this,rn,"f").value.instance}constructor(e,t){B1.add(this),rn.set(this,void 0),D8(this,rn,M8(e,t.provider),"f");const{appKey:r}=e,{event:a}=t;a&&an(this,B1,"m",oD).call(this,a);const l=new Mo;a&&(l.add(()=>{a.dispatchEvent("onAppDispose",{detail:{appKey:r}})}),l.add(a.addEventListener("onAppModulesLoaded",u=>{u.detail.appKey===r&&an(this,rn,"f").next(Yn.setInstance(u.detail.modules))}))),this.dispose=()=>{l==null||l.unsubscribe(),an(this,rn,"f").value.instance&&an(this,rn,"f").value.instance.dispose(),an(this,rn,"f").complete()}}initialize(){return new vn(e=>{an(this,rn,"f").next(Yn.initialize()),e.add(Wz([this.getManifest(),this.getAppModule(),this.getConfig()]).subscribe({next:([t,r,a])=>e.next({manifest:t,script:r,config:a}),error:t=>{e.error(t),an(this,rn,"f").next(Yn.initialize.failure(t))},complete:()=>{an(this,rn,"f").next(Yn.initialize.success()),e.complete()}}))})}loadConfig(){an(this,rn,"f").next(Yn.fetchConfig(this.appKey))}loadManifest(e){an(this,rn,"f").next(Yn.fetchManifest(this.appKey,e))}updateManifest(e,t){an(this,rn,"f").next(Yn.setManifest(e,!t))}loadAppModule(e=!0){return P8(this,void 0,void 0,function*(){const t=yield this.getManifestAsync(e);an(this,rn,"f").next(Yn.importApp(t.entry))})}getConfig(e=!1){return new vn(t=>{if(an(this,rn,"f").value.config&&(t.next(an(this,rn,"f").value.config),!e))return t.complete();t.add(an(this,rn,"f").addEffect("set_config",({payload:r})=>{t.next(r)})),t.add(an(this,rn,"f").addEffect("fetch_config::success",({payload:r})=>{t.next(r),t.complete()})),t.add(an(this,rn,"f").addEffect("fetch_config::failure",({payload:r})=>{t.error(Error("failed to load application config",{cause:r}))})),this.loadConfig()})}getConfigAsync(e=!0){return(e?Po:Zo)(this.getConfig(!e))}getManifest(e=!1){return new vn(t=>{if(an(this,rn,"f").value.manifest&&(t.next(an(this,rn,"f").value.manifest),!e))return t.complete();t.add(an(this,rn,"f").addEffect("set_manifest",({payload:r})=>{t.next(r)})),t.add(an(this,rn,"f").addEffect("fetch_manifest::success",({payload:r})=>{t.next(r),t.complete()})),t.add(an(this,rn,"f").addEffect("fetch_manifest::failure",({payload:r})=>{t.error(Error("failed to load application manifest",{cause:r}))})),this.loadManifest()})}getManifestAsync(e=!0){return(e?Po:Zo)(this.getManifest(!e))}getAppModule(e=!1){return new vn(t=>{if(an(this,rn,"f").value.modules&&(t.next(an(this,rn,"f").value.modules),!e))return t.complete();t.add(an(this,rn,"f").addEffect("set_module",({payload:r})=>{t.next(r)})),t.add(an(this,rn,"f").addEffect("import_app::success",({payload:r})=>{t.next(r),t.complete()})),t.add(an(this,rn,"f").addEffect("import_app::failure",({payload:r})=>{t.error(Error("failed to load application modules from script",{cause:r}))})),t.add(this.getManifest().subscribe(r=>gs(an(this,rn,"f").next(Yn.importApp(r.entry)))))})}getAppModuleAsync(e=!0){return(e?Po:Zo)(this.getAppModule(!e))}};rn=new WeakMap,B1=new WeakSet,oD=function(e){const{appKey:t}=this;an(this,rn,"f").addEffect(Yn.fetchManifest.success.type,r=>{e.dispatchEvent("onAppManifestLoaded",{detail:{appKey:t,manifest:r.payload},source:this})}),an(this,rn,"f").addEffect(Yn.fetchConfig.success.type,r=>{e.dispatchEvent("onAppConfigLoaded",{detail:{appKey:t,manifest:r.payload},source:this})}),an(this,rn,"f").addEffect(Yn.importApp.success.type,r=>{e.dispatchEvent("onAppScriptLoaded",{detail:{appKey:t,manifest:r.payload},source:this})}),an(this,rn,"f").addEffect(Yn.initialize.type,()=>{e.dispatchEvent("onAppInitialize",{detail:{appKey:t},source:this})}),an(this,rn,"f").addEffect(Yn.initialize.success.type,()=>{e.dispatchEvent("onAppInitialized",{detail:{appKey:t},source:this})}),an(this,rn,"f").addEffect(Yn.initialize.failure.type,({payload:r})=>{e.dispatchEvent("onAppInitializeFailed",{detail:{appKey:t,error:r},source:this})})};class qh extends Error{static fromHttpResponse(e,t){switch(e.status){case 401:return new qh("unauthorized","failed to load application manifest, request not authorized",t);case 404:return new qh("not_found","application manifest not found",t)}return new qh("unknown",`failed to load application manifest, status code ${e.status}`,t)}constructor(e,t,r){super(t,r),this.type=e}}class Vh extends Error{static fromHttpResponse(e,t){switch(e.status){case 401:return new Vh("unauthorized","failed to load application config, request not authorized",t);case 404:return new Vh("not_found","application config not found",t)}return new Vh("unknown",`failed to load application config, status code ${e.status}`,t)}constructor(e,t,r){super(t,r),this.type=e}}var ia=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},cw=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!a:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(n,t):a?a.value=t:e.set(n,t),t},v_,m_,Vd,Kd,dw;class U8{static compareAppManifest(e,t){return JSON.stringify(e)===JSON.stringify(t)}get current(){return ia(this,Vd,"f").value}get current$(){return ia(this,Vd,"f").pipe(_M((e,t)=>e&&t?e.appKey===t.appKey:e===t))}constructor(e){v_.set(this,void 0),m_.set(this,void 0),Vd.set(this,void 0),Kd.set(this,new Mo),dw.set(this,void 0);const{event:t,config:r}=e;cw(this,dw,t,"f"),cw(this,Vd,new My(void 0),"f"),this.appClient=new Bh(r.client.getAppManifest),cw(this,v_,new Bh(r.client.getAppManifests),"f"),cw(this,m_,new Bh(r.client.getAppConfig),"f"),ia(this,Kd,"f").add(()=>this.appClient.complete()),ia(this,Kd,"f").add(()=>ia(this,v_,"f").complete()),ia(this,Kd,"f").add(()=>ia(this,m_,"f").complete()),ia(this,Kd,"f").add(this.current$.pipe(HR(),_E(()=>!!t)).subscribe(([a,l])=>{t==null||t.dispatchEvent("onCurrentAppChanged",{source:this,detail:{previous:a,next:l}})})),ia(this,Kd,"f").add(ia(this,Vd,"f").pipe(HR(),dn(([a])=>a),p_()).subscribe(a=>a.dispose()))}getAppManifest(e){return Bh.extractQueryValue(this.appClient.query({appKey:e}).pipe(Tr(t=>{const{cause:r}=t;throw r instanceof qh?r:r instanceof VR?qh.fromHttpResponse(r.response,{cause:r}):new qh("unknown","failed to load manifest",{cause:r})})))}getAllAppManifests(){return Bh.extractQueryValue(ia(this,v_,"f").query())}getAppConfig(e,t){return Bh.extractQueryValue(ia(this,m_,"f").query({appKey:e,tag:t}).pipe(Tr(r=>{const{cause:a}=r;throw a instanceof Vh?a:a instanceof VR?Vh.fromHttpResponse(a.response,{cause:a}):new Vh("unknown","failed to load config",{cause:a})})))}setCurrentApp(e){const t=typeof e=="string"?this.createApp({appKey:e}):e;ia(this,Vd,"f").next(t)}clearCurrentApp(){ia(this,Vd,"f").next(null)}createApp(e){return console.warn(),new L8(e,{provider:this,event:ia(this,dw,"f")})}dispose(){ia(this,Kd,"f").unsubscribe()}}v_=new WeakMap,m_=new WeakMap,Vd=new WeakMap,Kd=new WeakMap,dw=new WeakMap;var F8=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(u){u(l)})}return new(t||(t=Promise))(function(l,u){function f(y){try{m(r.next(y))}catch(E){u(E)}}function p(y){try{m(r.throw(y))}catch(E){u(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};const q1="app",$8={name:q1,configure:()=>new H8,initialize:n=>F8(void 0,void 0,void 0,function*(){const e=yield n.config.createConfig(n),t=yield n.requireInstance("event").catch(()=>{});return new U8({config:e,event:t})}),dispose:n=>{n.instance.dispose()}};var fw=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(u){u(l)})}return new(t||(t=Promise))(function(l,u){function f(y){try{m(r.next(y))}catch(E){u(E)}}function p(y){try{m(r.throw(y))}catch(E){u(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})},aD=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},hw;class H8{constructor(){this.defaultExpireTime=1*60*1e3,hw.set(this,[])}addConfigBuilder(e){aD(this,hw,"f").push(e)}_createHttpClient(e){return fw(this,void 0,void 0,function*(){const t=yield e.requireInstance("http");if(t.hasClient(q1))return t.createClient(q1);{const r=yield e.requireInstance("serviceDiscovery");try{return yield r.createClient("app")}catch{return yield r.createClient("portal")}}})}createConfig(e){var t;return fw(this,void 0,void 0,function*(){const r=yield aD(this,hw,"f").reduce((a,l)=>fw(this,void 0,void 0,function*(){const u=new f8(e,yield a);return yield Promise.resolve(l(u)),Object.assign(a,u.config)}),Promise.resolve({}));return(t=r.client)!==null&&t!==void 0||(r.client=yield(()=>fw(this,void 0,void 0,function*(){const a=yield this._createHttpClient(e);return{getAppManifest:{client:{fn:({appKey:l})=>a.json$(`/api/apps/${l}`)},key:({appKey:l})=>l,expire:this.defaultExpireTime},getAppManifests:{client:{fn:()=>a.json$("/api/apps")},key:()=>"manifests",expire:this.defaultExpireTime},getAppConfig:{client:{fn:({appKey:l,tag:u})=>a.json$(`/api/apps/${l}/config${u?`?tag=${u}`:""}`)},key:l=>JSON.stringify(l),expire:this.defaultExpireTime}}}))()),r})}}hw=new WeakMap;const j8=(n,e)=>{n.addConfig({module:$8,configure:t=>{e&&t.addConfigBuilder(e)}})};class z8{}/**
269
- * @remix-run/router v1.8.0
270
- *
271
- * Copyright (c) Remix Software Inc.
272
- *
273
- * This source code is licensed under the MIT license found in the
274
- * LICENSE.md file in the root directory of this source tree.
275
- *
276
- * @license MIT
277
- */function Lr(){return Lr=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Lr.apply(this,arguments)}var Ur;(function(n){n.Pop="POP",n.Push="PUSH",n.Replace="REPLACE"})(Ur||(Ur={}));const sD="popstate";function B8(n){n===void 0&&(n={});let{initialEntries:e=["/"],initialIndex:t,v5Compat:r=!1}=n,a;a=e.map((T,A)=>y(T,typeof T=="string"?null:T.state,A===0?"default":void 0));let l=p(t??a.length-1),u=Ur.Pop,f=null;function p(T){return Math.min(Math.max(T,0),a.length-1)}function m(){return a[l]}function y(T,A,I){A===void 0&&(A=null);let P=Kh(a?m().pathname:"/",T,A,I);return oa(P.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(T)),P}function E(T){return typeof T=="string"?T:wu(T)}return{get index(){return l},get action(){return u},get location(){return m()},createHref:E,createURL(T){return new URL(E(T),"http://localhost")},encodeLocation(T){let A=typeof T=="string"?Rl(T):T;return{pathname:A.pathname||"",search:A.search||"",hash:A.hash||""}},push(T,A){u=Ur.Push;let I=y(T,A);l+=1,a.splice(l,a.length,I),r&&f&&f({action:u,location:I,delta:1})},replace(T,A){u=Ur.Replace;let I=y(T,A);a[l]=I,r&&f&&f({action:u,location:I,delta:0})},go(T){u=Ur.Pop;let A=p(l+T),I=a[A];l=A,f&&f({action:u,location:I,delta:T})},listen(T){return f=T,()=>{f=null}}}}function q8(n){n===void 0&&(n={});function e(r,a){let{pathname:l,search:u,hash:f}=r.location;return Kh("",{pathname:l,search:u,hash:f},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function t(r,a){return typeof a=="string"?a:wu(a)}return uD(e,t,null,n)}function V8(n){n===void 0&&(n={});function e(a,l){let{pathname:u="/",search:f="",hash:p=""}=Rl(a.location.hash.substr(1));return!u.startsWith("/")&&!u.startsWith(".")&&(u="/"+u),Kh("",{pathname:u,search:f,hash:p},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function t(a,l){let u=a.document.querySelector("base"),f="";if(u&&u.getAttribute("href")){let p=a.location.href,m=p.indexOf("#");f=m===-1?p:p.slice(0,m)}return f+"#"+(typeof l=="string"?l:wu(l))}function r(a,l){oa(a.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(l)+")")}return uD(e,t,r,n)}function Ut(n,e){if(n===!1||n===null||typeof n>"u")throw new Error(e)}function oa(n,e){if(!n){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function K8(){return Math.random().toString(36).substr(2,8)}function lD(n,e){return{usr:n.state,key:n.key,idx:e}}function Kh(n,e,t,r){return t===void 0&&(t=null),Lr({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof e=="string"?Rl(e):e,{state:t,key:e&&e.key||r||K8()})}function wu(n){let{pathname:e="/",search:t="",hash:r=""}=n;return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Rl(n){let e={};if(n){let t=n.indexOf("#");t>=0&&(e.hash=n.substr(t),n=n.substr(0,t));let r=n.indexOf("?");r>=0&&(e.search=n.substr(r),n=n.substr(0,r)),n&&(e.pathname=n)}return e}function uD(n,e,t,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:l=!1}=r,u=a.history,f=Ur.Pop,p=null,m=y();m==null&&(m=0,u.replaceState(Lr({},u.state,{idx:m}),""));function y(){return(u.state||{idx:null}).idx}function E(){f=Ur.Pop;let P=y(),D=P==null?null:P-m;m=P,p&&p({action:f,location:I.location,delta:D})}function S(P,D){f=Ur.Push;let L=Kh(I.location,P,D);t&&t(L,P),m=y()+1;let j=lD(L,m),F=I.createHref(L);try{u.pushState(j,"",F)}catch(V){if(V instanceof DOMException&&V.name==="DataCloneError")throw V;a.location.assign(F)}l&&p&&p({action:f,location:I.location,delta:1})}function T(P,D){f=Ur.Replace;let L=Kh(I.location,P,D);t&&t(L,P),m=y();let j=lD(L,m),F=I.createHref(L);u.replaceState(j,"",F),l&&p&&p({action:f,location:I.location,delta:0})}function A(P){let D=a.location.origin!=="null"?a.location.origin:a.location.href,L=typeof P=="string"?P:wu(P);return Ut(D,"No window.location.(origin|href) available to create URL for href: "+L),new URL(L,D)}let I={get action(){return f},get location(){return n(a,u)},listen(P){if(p)throw new Error("A history only accepts one active listener");return a.addEventListener(sD,E),p=P,()=>{a.removeEventListener(sD,E),p=null}},createHref(P){return e(a,P)},createURL:A,encodeLocation(P){let D=A(P);return{pathname:D.pathname,search:D.search,hash:D.hash}},push:S,replace:T,go(P){return u.go(P)}};return I}var _i;(function(n){n.data="data",n.deferred="deferred",n.redirect="redirect",n.error="error"})(_i||(_i={}));const G8=new Set(["lazy","caseSensitive","path","id","index","children"]);function W8(n){return n.index===!0}function V1(n,e,t,r){return t===void 0&&(t=[]),r===void 0&&(r={}),n.map((a,l)=>{let u=[...t,l],f=typeof a.id=="string"?a.id:u.join("-");if(Ut(a.index!==!0||!a.children,"Cannot specify children on an index route"),Ut(!r[f],'Found a route id collision on id "'+f+`". Route id's must be globally unique within Data Router usages`),W8(a)){let p=Lr({},a,e(a),{id:f});return r[f]=p,p}else{let p=Lr({},a,e(a),{id:f,children:void 0});return r[f]=p,a.children&&(p.children=V1(a.children,e,u,r)),p}})}function em(n,e,t){t===void 0&&(t="/");let r=typeof e=="string"?Rl(e):e,a=Gd(r.pathname||"/",t);if(a==null)return null;let l=cD(n);Y8(l);let u=null;for(let f=0;u==null&&f<l.length;++f)u=iK(l[f],sK(a));return u}function cD(n,e,t,r){e===void 0&&(e=[]),t===void 0&&(t=[]),r===void 0&&(r="");let a=(l,u,f)=>{let p={relativePath:f===void 0?l.path||"":f,caseSensitive:l.caseSensitive===!0,childrenIndex:u,route:l};p.relativePath.startsWith("/")&&(Ut(p.relativePath.startsWith(r),'Absolute route path "'+p.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),p.relativePath=p.relativePath.slice(r.length));let m=bu([r,p.relativePath]),y=t.concat(p);l.children&&l.children.length>0&&(Ut(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+m+'".')),cD(l.children,e,y,m)),!(l.path==null&&!l.index)&&e.push({path:m,score:nK(m,l.index),routesMeta:y})};return n.forEach((l,u)=>{var f;if(l.path===""||!((f=l.path)!=null&&f.includes("?")))a(l,u);else for(let p of dD(l.path))a(l,u,p)}),e}function dD(n){let e=n.split("/");if(e.length===0)return[];let[t,...r]=e,a=t.endsWith("?"),l=t.replace(/\?$/,"");if(r.length===0)return a?[l,""]:[l];let u=dD(r.join("/")),f=[];return f.push(...u.map(p=>p===""?l:[l,p].join("/"))),a&&f.push(...u),f.map(p=>n.startsWith("/")&&p===""?"/":p)}function Y8(n){n.sort((e,t)=>e.score!==t.score?t.score-e.score:rK(e.routesMeta.map(r=>r.childrenIndex),t.routesMeta.map(r=>r.childrenIndex)))}const Q8=/^:\w+$/,X8=3,J8=2,Z8=1,eK=10,tK=-2,fD=n=>n==="*";function nK(n,e){let t=n.split("/"),r=t.length;return t.some(fD)&&(r+=tK),e&&(r+=J8),t.filter(a=>!fD(a)).reduce((a,l)=>a+(Q8.test(l)?X8:l===""?Z8:eK),r)}function rK(n,e){return n.length===e.length&&n.slice(0,-1).every((r,a)=>r===e[a])?n[n.length-1]-e[e.length-1]:0}function iK(n,e){let{routesMeta:t}=n,r={},a="/",l=[];for(let u=0;u<t.length;++u){let f=t[u],p=u===t.length-1,m=a==="/"?e:e.slice(a.length)||"/",y=oK({path:f.relativePath,caseSensitive:f.caseSensitive,end:p},m);if(!y)return null;Object.assign(r,y.params);let E=f.route;l.push({params:r,pathname:bu([a,y.pathname]),pathnameBase:dK(bu([a,y.pathnameBase])),route:E}),y.pathnameBase!=="/"&&(a=bu([a,y.pathnameBase]))}return l}function oK(n,e){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[t,r]=aK(n.path,n.caseSensitive,n.end),a=e.match(t);if(!a)return null;let l=a[0],u=l.replace(/(.)\/+$/,"$1"),f=a.slice(1);return{params:r.reduce((m,y,E)=>{if(y==="*"){let S=f[E]||"";u=l.slice(0,l.length-S.length).replace(/(.)\/+$/,"$1")}return m[y]=lK(f[E]||"",y),m},{}),pathname:l,pathnameBase:u,pattern:n}}function aK(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!0),oa(n==="*"||!n.endsWith("*")||n.endsWith("/*"),'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".'));let r=[],a="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(u,f)=>(r.push(f),"/([^\\/]+)"));return n.endsWith("*")?(r.push("*"),a+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?a+="\\/*$":n!==""&&n!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),r]}function sK(n){try{return decodeURI(n)}catch(e){return oa(!1,'The URL path "'+n+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),n}}function lK(n,e){try{return decodeURIComponent(n)}catch(t){return oa(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+n+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+t+").")),n}}function Gd(n,e){if(e==="/")return n;if(!n.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,r=n.charAt(t);return r&&r!=="/"?null:n.slice(t)||"/"}function uK(n,e){e===void 0&&(e="/");let{pathname:t,search:r="",hash:a=""}=typeof n=="string"?Rl(n):n;return{pathname:t?t.startsWith("/")?t:cK(t,e):e,search:fK(r),hash:hK(a)}}function cK(n,e){let t=e.replace(/\/+$/,"").split("/");return n.split("/").forEach(a=>{a===".."?t.length>1&&t.pop():a!=="."&&t.push(a)}),t.length>1?t.join("/"):"/"}function K1(n,e,t,r){return"Cannot include a '"+n+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+t+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function pw(n){return n.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function G1(n,e,t,r){r===void 0&&(r=!1);let a;typeof n=="string"?a=Rl(n):(a=Lr({},n),Ut(!a.pathname||!a.pathname.includes("?"),K1("?","pathname","search",a)),Ut(!a.pathname||!a.pathname.includes("#"),K1("#","pathname","hash",a)),Ut(!a.search||!a.search.includes("#"),K1("#","search","hash",a)));let l=n===""||a.pathname==="",u=l?"/":a.pathname,f;if(r||u==null)f=t;else{let E=e.length-1;if(u.startsWith("..")){let S=u.split("/");for(;S[0]==="..";)S.shift(),E-=1;a.pathname=S.join("/")}f=E>=0?e[E]:"/"}let p=uK(a,f),m=u&&u!=="/"&&u.endsWith("/"),y=(l||u===".")&&t.endsWith("/");return!p.pathname.endsWith("/")&&(m||y)&&(p.pathname+="/"),p}const bu=n=>n.join("/").replace(/\/\/+/g,"/"),dK=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),fK=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,hK=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;class hD{constructor(e,t,r,a){a===void 0&&(a=!1),this.status=e,this.statusText=t||"",this.internal=a,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function pD(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}const vD=["post","put","patch","delete"],pK=new Set(vD),vK=["get",...vD],mK=new Set(vK),gK=new Set([301,302,303,307,308]),yK=new Set([307,308]),W1={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},_K={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},g_={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},mD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,CK=n=>({hasErrorBoundary:!!n.hasErrorBoundary});function EK(n){const e=n.window?n.window:typeof window<"u"?window:void 0,t=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u",r=!t;Ut(n.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(n.mapRouteProperties)a=n.mapRouteProperties;else if(n.detectErrorBoundary){let re=n.detectErrorBoundary;a=se=>({hasErrorBoundary:re(se)})}else a=CK;let l={},u=V1(n.routes,a,void 0,l),f,p=n.basename||"/",m=Lr({v7_normalizeFormMethod:!1,v7_prependBasename:!1},n.future),y=null,E=new Set,S=null,T=null,A=null,I=n.hydrationData!=null,P=em(u,n.history.location,p),D=null;if(P==null){let re=zs(404,{pathname:n.history.location.pathname}),{matches:se,route:Te}=TD(u);P=se,D={[Te.id]:re}}let L=!P.some(re=>re.route.lazy)&&(!P.some(re=>re.route.loader)||n.hydrationData!=null),j,F={historyAction:n.history.action,location:n.history.location,matches:P,initialized:L,navigation:W1,restoreScrollPosition:n.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:n.hydrationData&&n.hydrationData.loaderData||{},actionData:n.hydrationData&&n.hydrationData.actionData||null,errors:n.hydrationData&&n.hydrationData.errors||D,fetchers:new Map,blockers:new Map},V=Ur.Pop,Y=!1,Z,Re=!1,Ge=!1,at=[],Pe=[],Be=new Map,te=0,ee=-1,ye=new Map,me=new Set,he=new Map,G=new Map,ge=new Map,H=!1;function ne(){return y=n.history.listen(re=>{let{action:se,location:Te,delta:Ve}=re;if(H){H=!1;return}oa(ge.size===0||Ve!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let yt=or({currentLocation:F.location,nextLocation:Te,historyAction:se});if(yt&&Ve!=null){H=!0,n.history.go(Ve*-1),bi(yt,{state:"blocked",location:Te,proceed(){bi(yt,{state:"proceeding",proceed:void 0,reset:void 0,location:Te}),n.history.go(Ve)},reset(){let et=new Map(F.blockers);et.set(yt,g_),Ue({blockers:et})}});return}return bt(se,Te)}),F.initialized||bt(Ur.Pop,F.location),j}function xe(){y&&y(),E.clear(),Z&&Z.abort(),F.fetchers.forEach((re,se)=>Di(se)),F.blockers.forEach((re,se)=>li(se))}function ut(re){return E.add(re),()=>E.delete(re)}function Ue(re){F=Lr({},F,re),E.forEach(se=>se(F))}function It(re,se){var Te,Ve;let yt=F.actionData!=null&&F.navigation.formMethod!=null&&kl(F.navigation.formMethod)&&F.navigation.state==="loading"&&((Te=re.state)==null?void 0:Te._isRedirect)!==!0,et;se.actionData?Object.keys(se.actionData).length>0?et=se.actionData:et=null:yt?et=F.actionData:et=null;let _t=se.loaderData?SD(F.loaderData,se.loaderData,se.matches||[],se.errors):F.loaderData,We=F.blockers;We.size>0&&(We=new Map(We),We.forEach((sn,Fn)=>We.set(Fn,g_)));let qe=Y===!0||F.navigation.formMethod!=null&&kl(F.navigation.formMethod)&&((Ve=re.state)==null?void 0:Ve._isRedirect)!==!0;f&&(u=f,f=void 0),Re||V===Ur.Pop||(V===Ur.Push?n.history.push(re,re.state):V===Ur.Replace&&n.history.replace(re,re.state)),Ue(Lr({},se,{actionData:et,loaderData:_t,historyAction:V,location:re,initialized:!0,navigation:W1,revalidation:"idle",restoreScrollPosition:gt(re,se.matches||F.matches),preventScrollReset:qe,blockers:We})),V=Ur.Pop,Y=!1,Re=!1,Ge=!1,at=[],Pe=[]}async function Ft(re,se){if(typeof re=="number"){n.history.go(re);return}let Te=Y1(F.location,F.matches,p,m.v7_prependBasename,re,se==null?void 0:se.fromRouteId,se==null?void 0:se.relative),{path:Ve,submission:yt,error:et}=gD(m.v7_normalizeFormMethod,!1,Te,se),_t=F.location,We=Kh(F.location,Ve,se&&se.state);We=Lr({},We,n.history.encodeLocation(We));let qe=se&&se.replace!=null?se.replace:void 0,sn=Ur.Push;qe===!0?sn=Ur.Replace:qe===!1||yt!=null&&kl(yt.formMethod)&&yt.formAction===F.location.pathname+F.location.search&&(sn=Ur.Replace);let Fn=se&&"preventScrollReset"in se?se.preventScrollReset===!0:void 0,mn=or({currentLocation:_t,nextLocation:We,historyAction:sn});if(mn){bi(mn,{state:"blocked",location:We,proceed(){bi(mn,{state:"proceeding",proceed:void 0,reset:void 0,location:We}),Ft(re,se)},reset(){let Kn=new Map(F.blockers);Kn.set(mn,g_),Ue({blockers:Kn})}});return}return await bt(sn,We,{submission:yt,pendingError:et,preventScrollReset:Fn,replace:se&&se.replace})}function qt(){if(dr(),Ue({revalidation:"loading"}),F.navigation.state!=="submitting"){if(F.navigation.state==="idle"){bt(F.historyAction,F.location,{startUninterruptedRevalidation:!0});return}bt(V||F.historyAction,F.navigation.location,{overrideNavigation:F.navigation})}}async function bt(re,se,Te){Z&&Z.abort(),Z=null,V=re,Re=(Te&&Te.startUninterruptedRevalidation)===!0,Ke(F.location,F.matches),Y=(Te&&Te.preventScrollReset)===!0;let Ve=f||u,yt=Te&&Te.overrideNavigation,et=em(Ve,se,p);if(!et){let Kn=zs(404,{pathname:se.pathname}),{matches:fr,route:Xi}=TD(Ve);Si(),It(se,{matches:fr,loaderData:{},errors:{[Xi.id]:Kn}});return}if(F.initialized&&!Ge&&RK(F.location,se)&&!(Te&&Te.submission&&kl(Te.submission.formMethod))){It(se,{matches:et});return}Z=new AbortController;let _t=__(n.history,se,Z.signal,Te&&Te.submission),We,qe;if(Te&&Te.pendingError)qe={[tm(et).route.id]:Te.pendingError};else if(Te&&Te.submission&&kl(Te.submission.formMethod)){let Kn=await _n(_t,se,Te.submission,et,{replace:Te.replace});if(Kn.shortCircuited)return;We=Kn.pendingActionData,qe=Kn.pendingActionError,yt=vw(se,Te.submission),_t=new Request(_t.url,{signal:_t.signal})}let{shortCircuited:sn,loaderData:Fn,errors:mn}=await Xr(_t,se,et,yt,Te&&Te.submission,Te&&Te.fetcherSubmission,Te&&Te.replace,We,qe);sn||(Z=null,It(se,Lr({matches:et},We?{actionData:We}:{},{loaderData:Fn,errors:mn})))}async function _n(re,se,Te,Ve,yt){yt===void 0&&(yt={}),dr();let et=OK(se,Te);Ue({navigation:et});let _t,We=J1(Ve,se);if(!We.route.action&&!We.route.lazy)_t={type:_i.error,error:zs(405,{method:re.method,pathname:se.pathname,routeId:We.route.id})};else if(_t=await y_("action",re,We,Ve,l,a,p),re.signal.aborted)return{shortCircuited:!0};if(nm(_t)){let qe;return yt&&yt.replace!=null?qe=yt.replace:qe=_t.location===F.location.pathname+F.location.search,await cr(F,_t,{submission:Te,replace:qe}),{shortCircuited:!0}}if(C_(_t)){let qe=tm(Ve,We.route.id);return(yt&&yt.replace)!==!0&&(V=Ur.Push),{pendingActionData:{},pendingActionError:{[qe.route.id]:_t.error}}}if(Gh(_t))throw zs(400,{type:"defer-action"});return{pendingActionData:{[We.route.id]:_t.data}}}async function Xr(re,se,Te,Ve,yt,et,_t,We,qe){let sn=Ve||vw(se,yt),Fn=yt||et||ID(sn),mn=f||u,[Kn,fr]=yD(n.history,F,Te,Fn,se,Ge,at,Pe,he,me,mn,p,We,qe);if(Si(Ce=>!(Te&&Te.some(He=>He.route.id===Ce))||Kn&&Kn.some(He=>He.route.id===Ce)),ee=++te,Kn.length===0&&fr.length===0){let Ce=Qi();return It(se,Lr({matches:Te,loaderData:{},errors:qe||null},We?{actionData:We}:{},Ce?{fetchers:new Map(F.fetchers)}:{})),{shortCircuited:!0}}if(!Re){fr.forEach(He=>{let Qe=F.fetchers.get(He.key),jt=E_(void 0,Qe?Qe.data:void 0);F.fetchers.set(He.key,jt)});let Ce=We||F.actionData;Ue(Lr({navigation:sn},Ce?Object.keys(Ce).length===0?{actionData:null}:{actionData:Ce}:{},fr.length>0?{fetchers:new Map(F.fetchers)}:{}))}fr.forEach(Ce=>{Be.has(Ce.key)&&er(Ce.key),Ce.controller&&Be.set(Ce.key,Ce.controller)});let Xi=()=>fr.forEach(Ce=>er(Ce.key));Z&&Z.signal.addEventListener("abort",Xi);let{results:bo,loaderResults:Ti,fetcherResults:aa}=await Hr(F.matches,Te,Kn,fr,re);if(re.signal.aborted)return{shortCircuited:!0};Z&&Z.signal.removeEventListener("abort",Xi),fr.forEach(Ce=>Be.delete(Ce.key));let kr=RD(bo);if(kr){if(kr.idx>=Kn.length){let Ce=fr[kr.idx-Kn.length].key;me.add(Ce)}return await cr(F,kr.result,{replace:_t}),{shortCircuited:!0}}let{loaderData:ui,errors:ci}=bD(F,Te,Kn,Ti,qe,fr,aa,G);G.forEach((Ce,He)=>{Ce.subscribe(Qe=>{(Qe||Ce.done)&&G.delete(He)})});let Ji=Qi(),sa=wi(ee),B=Ji||sa||fr.length>0;return Lr({loaderData:ui,errors:ci},B?{fetchers:new Map(F.fetchers)}:{})}function Xn(re){return F.fetchers.get(re)||_K}function Eo(re,se,Te,Ve){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Be.has(re)&&er(re);let yt=f||u,et=Y1(F.location,F.matches,p,m.v7_prependBasename,Te,se,Ve==null?void 0:Ve.relative),_t=em(yt,et,p);if(!_t){Ci(re,se,zs(404,{pathname:et}));return}let{path:We,submission:qe,error:sn}=gD(m.v7_normalizeFormMethod,!0,et,Ve);if(sn){Ci(re,se,sn);return}let Fn=J1(_t,We);if(Y=(Ve&&Ve.preventScrollReset)===!0,qe&&kl(qe.formMethod)){ur(re,se,We,Fn,_t,qe);return}he.set(re,{routeId:se,path:We}),si(re,se,We,Fn,_t,qe)}async function ur(re,se,Te,Ve,yt,et){if(dr(),he.delete(re),!Ve.route.action&&!Ve.route.lazy){let Rt=zs(405,{method:et.formMethod,pathname:Te,routeId:se});Ci(re,se,Rt);return}let _t=F.fetchers.get(re),We=NK(et,_t);F.fetchers.set(re,We),Ue({fetchers:new Map(F.fetchers)});let qe=new AbortController,sn=__(n.history,Te,qe.signal,et);Be.set(re,qe);let Fn=te,mn=await y_("action",sn,Ve,yt,l,a,p);if(sn.signal.aborted){Be.get(re)===qe&&Be.delete(re);return}if(nm(mn))if(Be.delete(re),ee>Fn){let Rt=rm(void 0);F.fetchers.set(re,Rt),Ue({fetchers:new Map(F.fetchers)});return}else{me.add(re);let Rt=E_(et);return F.fetchers.set(re,Rt),Ue({fetchers:new Map(F.fetchers)}),cr(F,mn,{submission:et,isFetchActionRedirect:!0})}if(C_(mn)){Ci(re,se,mn.error);return}if(Gh(mn))throw zs(400,{type:"defer-action"});let Kn=F.navigation.location||F.location,fr=__(n.history,Kn,qe.signal),Xi=f||u,bo=F.navigation.state!=="idle"?em(Xi,F.navigation.location,p):F.matches;Ut(bo,"Didn't find any matches after fetcher action");let Ti=++te;ye.set(re,Ti);let aa=E_(et,mn.data);F.fetchers.set(re,aa);let[kr,ui]=yD(n.history,F,bo,et,Kn,Ge,at,Pe,he,me,Xi,p,{[Ve.route.id]:mn.data},void 0);ui.filter(Rt=>Rt.key!==re).forEach(Rt=>{let $t=Rt.key,St=F.fetchers.get($t),jr=E_(void 0,St?St.data:void 0);F.fetchers.set($t,jr),Be.has($t)&&er($t),Rt.controller&&Be.set($t,Rt.controller)}),Ue({fetchers:new Map(F.fetchers)});let ci=()=>ui.forEach(Rt=>er(Rt.key));qe.signal.addEventListener("abort",ci);let{results:Ji,loaderResults:sa,fetcherResults:B}=await Hr(F.matches,bo,kr,ui,fr);if(qe.signal.aborted)return;qe.signal.removeEventListener("abort",ci),ye.delete(re),Be.delete(re),ui.forEach(Rt=>Be.delete(Rt.key));let Ce=RD(Ji);if(Ce){if(Ce.idx>=kr.length){let Rt=ui[Ce.idx-kr.length].key;me.add(Rt)}return cr(F,Ce.result)}let{loaderData:He,errors:Qe}=bD(F,F.matches,kr,sa,void 0,ui,B,G);if(F.fetchers.has(re)){let Rt=rm(mn.data);F.fetchers.set(re,Rt)}let jt=wi(Ti);F.navigation.state==="loading"&&Ti>ee?(Ut(V,"Expected pending action"),Z&&Z.abort(),It(F.navigation.location,{matches:bo,loaderData:He,errors:Qe,fetchers:new Map(F.fetchers)})):(Ue(Lr({errors:Qe,loaderData:SD(F.loaderData,He,bo,Qe)},jt||ui.length>0?{fetchers:new Map(F.fetchers)}:{})),Ge=!1)}async function si(re,se,Te,Ve,yt,et){let _t=F.fetchers.get(re),We=E_(et,_t?_t.data:void 0);F.fetchers.set(re,We),Ue({fetchers:new Map(F.fetchers)});let qe=new AbortController,sn=__(n.history,Te,qe.signal);Be.set(re,qe);let Fn=te,mn=await y_("loader",sn,Ve,yt,l,a,p);if(Gh(mn)&&(mn=await xD(mn,sn.signal,!0)||mn),Be.get(re)===qe&&Be.delete(re),sn.signal.aborted)return;if(nm(mn))if(ee>Fn){let fr=rm(void 0);F.fetchers.set(re,fr),Ue({fetchers:new Map(F.fetchers)});return}else{me.add(re),await cr(F,mn);return}if(C_(mn)){let fr=tm(F.matches,se);F.fetchers.delete(re),Ue({fetchers:new Map(F.fetchers),errors:{[fr.route.id]:mn.error}});return}Ut(!Gh(mn),"Unhandled fetcher deferred data");let Kn=rm(mn.data);F.fetchers.set(re,Kn),Ue({fetchers:new Map(F.fetchers)})}async function cr(re,se,Te){let{submission:Ve,replace:yt,isFetchActionRedirect:et}=Te===void 0?{}:Te;se.revalidate&&(Ge=!0);let _t=Kh(re.location,se.location,Lr({_isRedirect:!0},et?{_isFetchActionRedirect:!0}:{}));if(Ut(_t,"Expected a location on the redirect navigation"),t){let sn=!1;if(se.reloadDocument)sn=!0;else if(mD.test(se.location)){const Fn=n.history.createURL(se.location);sn=Fn.origin!==e.location.origin||Gd(Fn.pathname,p)==null}if(sn){yt?e.location.replace(se.location):e.location.assign(se.location);return}}Z=null;let We=yt===!0?Ur.Replace:Ur.Push,qe=Ve||ID(re.navigation);if(yK.has(se.status)&&qe&&kl(qe.formMethod))await bt(We,_t,{submission:Lr({},qe,{formAction:se.location}),preventScrollReset:Y});else if(et)await bt(We,_t,{overrideNavigation:vw(_t),fetcherSubmission:qe,preventScrollReset:Y});else{let sn=vw(_t,qe);await bt(We,_t,{overrideNavigation:sn,preventScrollReset:Y})}}async function Hr(re,se,Te,Ve,yt){let et=await Promise.all([...Te.map(qe=>y_("loader",yt,qe,se,l,a,p)),...Ve.map(qe=>qe.matches&&qe.match&&qe.controller?y_("loader",__(n.history,qe.path,qe.controller.signal),qe.match,qe.matches,l,a,p):{type:_i.error,error:zs(404,{pathname:qe.path})})]),_t=et.slice(0,Te.length),We=et.slice(Te.length);return await Promise.all([AD(re,Te,_t,_t.map(()=>yt.signal),!1,F.loaderData),AD(re,Ve.map(qe=>qe.match),We,Ve.map(qe=>qe.controller?qe.controller.signal:null),!0)]),{results:et,loaderResults:_t,fetcherResults:We}}function dr(){Ge=!0,at.push(...Si()),he.forEach((re,se)=>{Be.has(se)&&(Pe.push(se),er(se))})}function Ci(re,se,Te){let Ve=tm(F.matches,se);Di(re),Ue({errors:{[Ve.route.id]:Te},fetchers:new Map(F.fetchers)})}function Di(re){let se=F.fetchers.get(re);Be.has(re)&&!(se&&se.state==="loading"&&ye.has(re))&&er(re),he.delete(re),ye.delete(re),me.delete(re),F.fetchers.delete(re)}function er(re){let se=Be.get(re);Ut(se,"Expected fetch controller: "+re),se.abort(),Be.delete(re)}function Ei(re){for(let se of re){let Te=Xn(se),Ve=rm(Te.data);F.fetchers.set(se,Ve)}}function Qi(){let re=[],se=!1;for(let Te of me){let Ve=F.fetchers.get(Te);Ut(Ve,"Expected fetcher: "+Te),Ve.state==="loading"&&(me.delete(Te),re.push(Te),se=!0)}return Ei(re),se}function wi(re){let se=[];for(let[Te,Ve]of ye)if(Ve<re){let yt=F.fetchers.get(Te);Ut(yt,"Expected fetcher: "+Te),yt.state==="loading"&&(er(Te),ye.delete(Te),se.push(Te))}return Ei(se),se.length>0}function $o(re,se){let Te=F.blockers.get(re)||g_;return ge.get(re)!==se&&ge.set(re,se),Te}function li(re){F.blockers.delete(re),ge.delete(re)}function bi(re,se){let Te=F.blockers.get(re)||g_;Ut(Te.state==="unblocked"&&se.state==="blocked"||Te.state==="blocked"&&se.state==="blocked"||Te.state==="blocked"&&se.state==="proceeding"||Te.state==="blocked"&&se.state==="unblocked"||Te.state==="proceeding"&&se.state==="unblocked","Invalid blocker state transition: "+Te.state+" -> "+se.state);let Ve=new Map(F.blockers);Ve.set(re,se),Ue({blockers:Ve})}function or(re){let{currentLocation:se,nextLocation:Te,historyAction:Ve}=re;if(ge.size===0)return;ge.size>1&&oa(!1,"A router only supports one blocker at a time");let yt=Array.from(ge.entries()),[et,_t]=yt[yt.length-1],We=F.blockers.get(et);if(!(We&&We.state==="proceeding")&&_t({currentLocation:se,nextLocation:Te,historyAction:Ve}))return et}function Si(re){let se=[];return G.forEach((Te,Ve)=>{(!re||re(Ve))&&(Te.cancel(),se.push(Ve),G.delete(Ve))}),se}function Qa(re,se,Te){if(S=re,A=se,T=Te||null,!I&&F.navigation===W1){I=!0;let Ve=gt(F.location,F.matches);Ve!=null&&Ue({restoreScrollPosition:Ve})}return()=>{S=null,A=null,T=null}}function wo(re,se){return T&&T(re,se.map(Ve=>IK(Ve,F.loaderData)))||re.key}function Ke(re,se){if(S&&A){let Te=wo(re,se);S[Te]=A()}}function gt(re,se){if(S){let Te=wo(re,se),Ve=S[Te];if(typeof Ve=="number")return Ve}return null}function Zt(re){l={},f=V1(re,a,void 0,l)}return j={get basename(){return p},get state(){return F},get routes(){return u},initialize:ne,subscribe:ut,enableScrollRestoration:Qa,navigate:Ft,fetch:Eo,revalidate:qt,createHref:re=>n.history.createHref(re),encodeLocation:re=>n.history.encodeLocation(re),getFetcher:Xn,deleteFetcher:Di,dispose:xe,getBlocker:$o,deleteBlocker:li,_internalFetchControllers:Be,_internalActiveDeferreds:G,_internalSetRoutes:Zt},j}function wK(n){return n!=null&&("formData"in n&&n.formData!=null||"body"in n&&n.body!==void 0)}function Y1(n,e,t,r,a,l,u){let f,p;if(l!=null&&u!=="path"){f=[];for(let y of e)if(f.push(y),y.route.id===l){p=y;break}}else f=e,p=e[e.length-1];let m=G1(a||".",pw(f).map(y=>y.pathnameBase),Gd(n.pathname,t)||n.pathname,u==="path");return a==null&&(m.search=n.search,m.hash=n.hash),(a==null||a===""||a===".")&&p&&p.route.index&&!X1(m.search)&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),r&&t!=="/"&&(m.pathname=m.pathname==="/"?t:bu([t,m.pathname])),wu(m)}function gD(n,e,t,r){if(!r||!wK(r))return{path:t};if(r.formMethod&&!xK(r.formMethod))return{path:t,error:zs(405,{method:r.formMethod})};let a=()=>({path:t,error:zs(400,{type:"invalid-body"})}),l=r.formMethod||"get",u=n?l.toUpperCase():l.toLowerCase(),f=kD(t);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!kl(u))return a();let S=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((T,A)=>{let[I,P]=A;return""+T+I+"="+P+`
278
- `},""):String(r.body);return{path:t,submission:{formMethod:u,formAction:f,formEncType:r.formEncType,formData:void 0,json:void 0,text:S}}}else if(r.formEncType==="application/json"){if(!kl(u))return a();try{let S=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:t,submission:{formMethod:u,formAction:f,formEncType:r.formEncType,formData:void 0,json:S,text:void 0}}}catch{return a()}}}Ut(typeof FormData=="function","FormData is not available in this environment");let p,m;if(r.formData)p=Q1(r.formData),m=r.formData;else if(r.body instanceof FormData)p=Q1(r.body),m=r.body;else if(r.body instanceof URLSearchParams)p=r.body,m=wD(p);else if(r.body==null)p=new URLSearchParams,m=new FormData;else try{p=new URLSearchParams(r.body),m=wD(p)}catch{return a()}let y={formMethod:u,formAction:f,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:m,json:void 0,text:void 0};if(kl(y.formMethod))return{path:t,submission:y};let E=Rl(t);return e&&E.search&&X1(E.search)&&p.append("index",""),E.search="?"+p,{path:wu(E),submission:y}}function bK(n,e){let t=n;if(e){let r=n.findIndex(a=>a.route.id===e);r>=0&&(t=n.slice(0,r))}return t}function yD(n,e,t,r,a,l,u,f,p,m,y,E,S,T){let A=T?Object.values(T)[0]:S?Object.values(S)[0]:void 0,I=n.createURL(e.location),P=n.createURL(a),D=T?Object.keys(T)[0]:void 0,j=bK(t,D).filter((V,Y)=>{if(V.route.lazy)return!0;if(V.route.loader==null)return!1;if(SK(e.loaderData,e.matches[Y],V)||u.some(Ge=>Ge===V.route.id))return!0;let Z=e.matches[Y],Re=V;return CD(V,Lr({currentUrl:I,currentParams:Z.params,nextUrl:P,nextParams:Re.params},r,{actionResult:A,defaultShouldRevalidate:l||I.pathname+I.search===P.pathname+P.search||I.search!==P.search||_D(Z,Re)}))}),F=[];return p.forEach((V,Y)=>{if(!t.some(Pe=>Pe.route.id===V.routeId))return;let Z=em(y,V.path,E);if(!Z){F.push({key:Y,routeId:V.routeId,path:V.path,matches:null,match:null,controller:null});return}let Re=e.fetchers.get(Y),Ge=J1(Z,V.path),at=!1;m.has(Y)?at=!1:f.includes(Y)?at=!0:Re&&Re.state!=="idle"&&Re.data===void 0?at=l:at=CD(Ge,Lr({currentUrl:I,currentParams:e.matches[e.matches.length-1].params,nextUrl:P,nextParams:t[t.length-1].params},r,{actionResult:A,defaultShouldRevalidate:l})),at&&F.push({key:Y,routeId:V.routeId,path:V.path,matches:Z,match:Ge,controller:new AbortController})}),[j,F]}function SK(n,e,t){let r=!e||t.route.id!==e.route.id,a=n[t.route.id]===void 0;return r||a}function _D(n,e){let t=n.route.path;return n.pathname!==e.pathname||t!=null&&t.endsWith("*")&&n.params["*"]!==e.params["*"]}function CD(n,e){if(n.route.shouldRevalidate){let t=n.route.shouldRevalidate(e);if(typeof t=="boolean")return t}return e.defaultShouldRevalidate}async function ED(n,e,t){if(!n.lazy)return;let r=await n.lazy();if(!n.lazy)return;let a=t[n.id];Ut(a,"No route found in manifest");let l={};for(let u in r){let p=a[u]!==void 0&&u!=="hasErrorBoundary";oa(!p,'Route "'+a.id+'" has a static property "'+u+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+u+'" will be ignored.')),!p&&!G8.has(u)&&(l[u]=r[u])}Object.assign(a,l),Object.assign(a,Lr({},e(a),{lazy:void 0}))}async function y_(n,e,t,r,a,l,u,f){f===void 0&&(f={});let p,m,y,E=A=>{let I,P=new Promise((D,L)=>I=L);return y=()=>I(),e.signal.addEventListener("abort",y),Promise.race([A({request:e,params:t.params,context:f.requestContext}),P])};try{let A=t.route[n];if(t.route.lazy)if(A)m=(await Promise.all([E(A),ED(t.route,l,a)]))[0];else if(await ED(t.route,l,a),A=t.route[n],A)m=await E(A);else if(n==="action"){let I=new URL(e.url),P=I.pathname+I.search;throw zs(405,{method:e.method,pathname:P,routeId:t.route.id})}else return{type:_i.data,data:void 0};else if(A)m=await E(A);else{let I=new URL(e.url),P=I.pathname+I.search;throw zs(404,{pathname:P})}Ut(m!==void 0,"You defined "+(n==="action"?"an action":"a loader")+" for route "+('"'+t.route.id+"\" but didn't return anything from your `"+n+"` ")+"function. Please return a value or `null`.")}catch(A){p=_i.error,m=A}finally{y&&e.signal.removeEventListener("abort",y)}if(AK(m)){let A=m.status;if(gK.has(A)){let D=m.headers.get("Location");if(Ut(D,"Redirects returned/thrown from loaders/actions must have a Location header"),!mD.test(D))D=Y1(new URL(e.url),r.slice(0,r.indexOf(t)+1),u,!0,D);else if(!f.isStaticRequest){let L=new URL(e.url),j=D.startsWith("//")?new URL(L.protocol+D):new URL(D),F=Gd(j.pathname,u)!=null;j.origin===L.origin&&F&&(D=j.pathname+j.search+j.hash)}if(f.isStaticRequest)throw m.headers.set("Location",D),m;return{type:_i.redirect,status:A,location:D,revalidate:m.headers.get("X-Remix-Revalidate")!==null,reloadDocument:m.headers.get("X-Remix-Reload-Document")!==null}}if(f.isRouteRequest)throw{type:p===_i.error?_i.error:_i.data,response:m};let I,P=m.headers.get("Content-Type");return P&&/\bapplication\/json\b/.test(P)?I=await m.json():I=await m.text(),p===_i.error?{type:p,error:new hD(A,m.statusText,I),headers:m.headers}:{type:_i.data,data:I,statusCode:m.status,headers:m.headers}}if(p===_i.error)return{type:p,error:m};if(kK(m)){var S,T;return{type:_i.deferred,deferredData:m,statusCode:(S=m.init)==null?void 0:S.status,headers:((T=m.init)==null?void 0:T.headers)&&new Headers(m.init.headers)}}return{type:_i.data,data:m}}function __(n,e,t,r){let a=n.createURL(kD(e)).toString(),l={signal:t};if(r&&kl(r.formMethod)){let{formMethod:u,formEncType:f}=r;l.method=u.toUpperCase(),f==="application/json"?(l.headers=new Headers({"Content-Type":f}),l.body=JSON.stringify(r.json)):f==="text/plain"?l.body=r.text:f==="application/x-www-form-urlencoded"&&r.formData?l.body=Q1(r.formData):l.body=r.formData}return new Request(a,l)}function Q1(n){let e=new URLSearchParams;for(let[t,r]of n.entries())e.append(t,typeof r=="string"?r:r.name);return e}function wD(n){let e=new FormData;for(let[t,r]of n.entries())e.append(t,r);return e}function TK(n,e,t,r,a){let l={},u=null,f,p=!1,m={};return t.forEach((y,E)=>{let S=e[E].route.id;if(Ut(!nm(y),"Cannot handle redirect results in processLoaderData"),C_(y)){let T=tm(n,S),A=y.error;r&&(A=Object.values(r)[0],r=void 0),u=u||{},u[T.route.id]==null&&(u[T.route.id]=A),l[S]=void 0,p||(p=!0,f=pD(y.error)?y.error.status:500),y.headers&&(m[S]=y.headers)}else Gh(y)?(a.set(S,y.deferredData),l[S]=y.deferredData.data):l[S]=y.data,y.statusCode!=null&&y.statusCode!==200&&!p&&(f=y.statusCode),y.headers&&(m[S]=y.headers)}),r&&(u=r,l[Object.keys(r)[0]]=void 0),{loaderData:l,errors:u,statusCode:f||200,loaderHeaders:m}}function bD(n,e,t,r,a,l,u,f){let{loaderData:p,errors:m}=TK(e,t,r,a,f);for(let y=0;y<l.length;y++){let{key:E,match:S,controller:T}=l[y];Ut(u!==void 0&&u[y]!==void 0,"Did not find corresponding fetcher result");let A=u[y];if(!(T&&T.signal.aborted))if(C_(A)){let I=tm(n.matches,S==null?void 0:S.route.id);m&&m[I.route.id]||(m=Lr({},m,{[I.route.id]:A.error})),n.fetchers.delete(E)}else if(nm(A))Ut(!1,"Unhandled fetcher revalidation redirect");else if(Gh(A))Ut(!1,"Unhandled fetcher deferred data");else{let I=rm(A.data);n.fetchers.set(E,I)}}return{loaderData:p,errors:m}}function SD(n,e,t,r){let a=Lr({},e);for(let l of t){let u=l.route.id;if(e.hasOwnProperty(u)?e[u]!==void 0&&(a[u]=e[u]):n[u]!==void 0&&l.route.loader&&(a[u]=n[u]),r&&r.hasOwnProperty(u))break}return a}function tm(n,e){return(e?n.slice(0,n.findIndex(r=>r.route.id===e)+1):[...n]).reverse().find(r=>r.route.hasErrorBoundary===!0)||n[0]}function TD(n){let e=n.find(t=>t.index||!t.path||t.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function zs(n,e){let{pathname:t,routeId:r,method:a,type:l}=e===void 0?{}:e,u="Unknown Server Error",f="Unknown @remix-run/router error";return n===400?(u="Bad Request",a&&t&&r?f="You made a "+a+' request to "'+t+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":l==="defer-action"?f="defer() is not supported in actions":l==="invalid-body"&&(f="Unable to encode submission body")):n===403?(u="Forbidden",f='Route "'+r+'" does not match URL "'+t+'"'):n===404?(u="Not Found",f='No route matches URL "'+t+'"'):n===405&&(u="Method Not Allowed",a&&t&&r?f="You made a "+a.toUpperCase()+' request to "'+t+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":a&&(f='Invalid request method "'+a.toUpperCase()+'"')),new hD(n||500,u,new Error(f),!0)}function RD(n){for(let e=n.length-1;e>=0;e--){let t=n[e];if(nm(t))return{result:t,idx:e}}}function kD(n){let e=typeof n=="string"?Rl(n):n;return wu(Lr({},e,{hash:""}))}function RK(n,e){return n.pathname!==e.pathname||n.search!==e.search?!1:n.hash===""?e.hash!=="":n.hash===e.hash?!0:e.hash!==""}function Gh(n){return n.type===_i.deferred}function C_(n){return n.type===_i.error}function nm(n){return(n&&n.type)===_i.redirect}function kK(n){let e=n;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function AK(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.headers=="object"&&typeof n.body<"u"}function xK(n){return mK.has(n.toLowerCase())}function kl(n){return pK.has(n.toLowerCase())}async function AD(n,e,t,r,a,l){for(let u=0;u<t.length;u++){let f=t[u],p=e[u];if(!p)continue;let m=n.find(E=>E.route.id===p.route.id),y=m!=null&&!_D(m,p)&&(l&&l[p.route.id])!==void 0;if(Gh(f)&&(a||y)){let E=r[u];Ut(E,"Expected an AbortSignal for revalidating fetcher deferred result"),await xD(f,E,a).then(S=>{S&&(t[u]=S||t[u])})}}}async function xD(n,e,t){if(t===void 0&&(t=!1),!await n.deferredData.resolveData(e)){if(t)try{return{type:_i.data,data:n.deferredData.unwrappedData}}catch(a){return{type:_i.error,error:a}}return{type:_i.data,data:n.deferredData.data}}}function X1(n){return new URLSearchParams(n).getAll("index").some(e=>e==="")}function IK(n,e){let{route:t,pathname:r,params:a}=n;return{id:t.id,pathname:r,params:a,data:e[t.id],handle:t.handle}}function J1(n,e){let t=typeof e=="string"?Rl(e).search:e.search;if(n[n.length-1].route.index&&X1(t||""))return n[n.length-1];let r=pw(n);return r[r.length-1]}function ID(n){let{formMethod:e,formAction:t,formEncType:r,text:a,formData:l,json:u}=n;if(!(!e||!t||!r)){if(a!=null)return{formMethod:e,formAction:t,formEncType:r,formData:void 0,json:void 0,text:a};if(l!=null)return{formMethod:e,formAction:t,formEncType:r,formData:l,json:void 0,text:void 0};if(u!==void 0)return{formMethod:e,formAction:t,formEncType:r,formData:void 0,json:u,text:void 0}}}function vw(n,e){return e?{state:"loading",location:n,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function OK(n,e){return{state:"submitting",location:n,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function E_(n,e){return n?{state:"loading",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:e," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}function NK(n,e){return{state:"submitting",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:e?e.data:void 0," _hasFetcherDoneAnything ":!0}}function rm(n){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n," _hasFetcherDoneAnything ":!0}}const MK=n=>{switch(n){case"hash":return V8({v5Compat:!0});case"memory":return B8({v5Compat:!0});case"browser":default:return q8({v5Compat:!0})}};var Fr=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},mw=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!a:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(n,t):a?a.value=t:e.set(n,t),t},Bs,gw,Z1,yw,Su,Wh;class PK extends vn{get basename(){return Fr(this,gw,"f")}get origin(){return Fr(this,Z1,"f")}get state(){return Fr(this,Su,"f").asObservable()}get value(){return Fr(this,Su,"f").value}get location(){return this.value.location}get action(){return this.value.action}constructor(e){super(a=>Fr(this,Su,"f").subscribe(a)),Bs.set(this,void 0),gw.set(this,void 0),Z1.set(this,window.location.origin),yw.set(this,new Mo),Su.set(this,void 0),Wh.set(this,void 0);const{basename:t,history:r}=e;mw(this,Wh,e.logger||console,"f"),mw(this,gw,t,"f"),mw(this,Bs,r,"f"),mw(this,Su,new My({action:Fr(this,Bs,"f").action,location:Fr(this,Bs,"f").location,delta:null}),"f"),Fr(this,yw,"f").add(Fr(this,Bs,"f").listen(a=>{a.location.key!==Fr(this,Su,"f").value.location.key&&(Fr(this,Wh,"f").debug("Navigator::constructor","history changed",a,Fr(this,Su,"f").value),Fr(this,Su,"f").next(a))}))}encodeLocation(e){return Fr(this,Bs,"f").encodeLocation(e)}listen(e){Fr(this,Wh,"f").debug("Navigator::listen",e);const t=Fr(this,Su,"f").pipe(oB(1)).subscribe(r=>{Fr(this,Wh,"f").debug("Navigator::listen[onchange]"),e(r)});return()=>(Fr(this,Wh,"f").debug("Navigator::listen[unsubscribe]"),t.unsubscribe())}createHref(e){return Fr(this,Bs,"f").createHref(e)}go(e){Fr(this,Bs,"f").go(e)}push(e,t){return Fr(this,Bs,"f").push(e,t)}replace(e,t){return Fr(this,Bs,"f").replace(e,t)}createURL(e){return Fr(this,Bs,"f").createURL(e)}dispose(){Fr(this,yw,"f").unsubscribe()}}Bs=new WeakMap,gw=new WeakMap,Z1=new WeakMap,yw=new WeakMap,Su=new WeakMap,Wh=new WeakMap;var qs=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},OD=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!a:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(n,t):a?a.value=t:e.set(n,t),t},Al,Yh;const ND=n=>n.replace(/\/+/g,"/");class DK extends SM{get state$(){return qs(this,Al,"f").pipe(fn(e=>qs(this,Yh,"f")?e.location.pathname.startsWith(qs(this,Yh,"f")):!0),dn(({action:e,location:t})=>({action:e,location:this._localizePath(t)})))}get navigator(){return qs(this,Al,"f")}get path(){return this._localizePath(this.navigator.location)}constructor(e){super(e),Al.set(this,void 0),Yh.set(this,void 0);const{basename:t,history:r}=e.config;if(OD(this,Yh,t,"f"),!r)throw Error("no history provided!");OD(this,Al,new PK({basename:t,history:r}),"f"),this._addTeardown(()=>qs(this,Al,"f").dispose())}createRouter(e){const t=qs(this,Al,"f");console.debug("NavigationProvider::createRouter",e);const r=EK({basename:t.basename,history:t,routes:e,future:{v7_prependBasename:!0}});return r.initialize(),r}createHref(e){return qs(this,Al,"f").createHref(this._createToPath(e??this.path))}createURL(e){return qs(this,Al,"f").createURL(this._createToPath(e??this.path))}push(e,t){return qs(this,Al,"f").push(this._createToPath(e),t)}replace(e,t){return qs(this,Al,"f").replace(this._createToPath(e),t)}_localizePath(e){var t;const{pathname:r,search:a,hash:l}=e;return{pathname:ND(r.replace((t=qs(this,Yh,"f"))!==null&&t!==void 0?t:"","")),search:a,hash:l}}_createToPath(e){const{pathname:t,search:r,hash:a}=typeof e=="string"?{pathname:e,search:void 0,hash:void 0}:e;return{pathname:ND([qs(this,Yh,"f"),t==="/"?void 0:t].filter(l=>!!l).join("/")),search:r,hash:a}}}Al=new WeakMap,Yh=new WeakMap;const MD="3.0.5",LK="navigation",UK={version:new Ny(MD),name:LK,configure:n=>{const e=new z8;return n&&(e.history=n.navigation.navigator),e},initialize:({config:n})=>{var e;return(e=n.history)!==null&&e!==void 0||(n.history=MK()),new DK({version:MD,config:n})},dispose({instance:n}){n.dispose()}},FK=(n,e)=>{const t=typeof e=="string"?{configure:r=>{r.basename=e}}:e;n.addConfig(Object.assign({module:UK},t))},$K=async n=>{n.logger.level=2,n.configureServiceDiscovery({client:{baseUri:typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Mr&&Mr.src||new URL("roma-framework.umd.js",document.baseURI).href,defaultScopes:["83c0f0fa-eff6-4199-87a0-c25f28ca4bb3/.default"]}}),n.configureMsal({tenantId:"3aa4a235-b6e2-48d5-9195-7fcf05b459b0",clientId:"340d41e6-6293-4276-a623-4c7f1d1b0650",redirectUri:"/authentication/login-callback"},{requiresAuth:!0}),j8(n),FK(n),Q6(n),n.onConfigured(()=>{console.log("framework config done")}),n.onInitialized(async e=>{e.auth.defaultClient.setLogger(new dP(4)),window.sessionStorage.clear(),e.event.subscribe(t=>console.log(`🔔🌍 [${t.type}]`,t.detail,t))})};function Uc(n){"@babel/helpers - typeof";return Uc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uc(n)}function HK(n,e){if(Uc(n)!=="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(Uc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function jK(n){var e=HK(n,"string");return Uc(e)==="symbol"?e:String(e)}function ek(n,e,t){return e=jK(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function PD(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function ve(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?PD(Object(t),!0).forEach(function(r){ek(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):PD(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function zK(n,e){if(n==null)return{};var t={},r=Object.keys(n),a,l;for(l=0;l<r.length;l++)a=r[l],!(e.indexOf(a)>=0)&&(t[a]=n[a]);return t}function Vn(n,e){if(n==null)return{};var t=zK(n,e),r,a;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);for(a=0;a<l.length;a++)r=l[a],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function BK(n){var e=Object.create(null);return function(t){return e[t]===void 0&&(e[t]=n(t)),e[t]}}var qK=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,VK=BK(function(n){return qK.test(n)||n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)<91}),Rr="-ms-",w_="-moz-",Qn="-webkit-",DD="comm",_w="rule",tk="decl",KK="@import",LD="@keyframes",GK="@layer",WK=Math.abs,nk=String.fromCharCode,rk=Object.assign;function YK(n,e){return _o(n,0)^45?(((e<<2^_o(n,0))<<2^_o(n,1))<<2^_o(n,2))<<2^_o(n,3):0}function UD(n){return n.trim()}function Fc(n,e){return(n=e.exec(n))?n[0]:n}function hn(n,e,t){return n.replace(e,t)}function Cw(n,e){return n.indexOf(e)}function _o(n,e){return n.charCodeAt(e)|0}function im(n,e,t){return n.slice(e,t)}function Tu(n){return n.length}function FD(n){return n.length}function b_(n,e){return e.push(n),n}function QK(n,e){return n.map(e).join("")}function $D(n,e){return n.filter(function(t){return!Fc(t,e)})}var Ew=1,om=1,HD=0,Vs=0,Pi=0,am="";function ww(n,e,t,r,a,l,u,f){return{value:n,root:e,parent:t,type:r,props:a,children:l,line:Ew,column:om,length:u,return:"",siblings:f}}function Wd(n,e){return rk(ww("",null,null,"",null,null,0,n.siblings),n,{length:-n.length},e)}function sm(n){for(;n.root;)n=Wd(n.root,{children:[n]});b_(n,n.siblings)}function XK(){return Pi}function JK(){return Pi=Vs>0?_o(am,--Vs):0,om--,Pi===10&&(om=1,Ew--),Pi}function xl(){return Pi=Vs<HD?_o(am,Vs++):0,om++,Pi===10&&(om=1,Ew++),Pi}function Qh(){return _o(am,Vs)}function bw(){return Vs}function Sw(n,e){return im(am,n,e)}function ik(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 ZK(n){return Ew=om=1,HD=Tu(am=n),Vs=0,[]}function eG(n){return am="",n}function ok(n){return UD(Sw(Vs-1,ak(n===91?n+2:n===40?n+1:n)))}function tG(n){for(;(Pi=Qh())&&Pi<33;)xl();return ik(n)>2||ik(Pi)>3?"":" "}function nG(n,e){for(;--e&&xl()&&!(Pi<48||Pi>102||Pi>57&&Pi<65||Pi>70&&Pi<97););return Sw(n,bw()+(e<6&&Qh()==32&&xl()==32))}function ak(n){for(;xl();)switch(Pi){case n:return Vs;case 34:case 39:n!==34&&n!==39&&ak(Pi);break;case 40:n===41&&ak(n);break;case 92:xl();break}return Vs}function rG(n,e){for(;xl()&&n+Pi!==47+10;)if(n+Pi===42+42&&Qh()===47)break;return"/*"+Sw(e,Vs-1)+"*"+nk(n===47?n:xl())}function iG(n){for(;!ik(Qh());)xl();return Sw(n,Vs)}function oG(n){return eG(Tw("",null,null,null,[""],n=ZK(n),0,[0],n))}function Tw(n,e,t,r,a,l,u,f,p){for(var m=0,y=0,E=u,S=0,T=0,A=0,I=1,P=1,D=1,L=0,j="",F=a,V=l,Y=r,Z=j;P;)switch(A=L,L=xl()){case 40:if(A!=108&&_o(Z,E-1)==58){Cw(Z+=hn(ok(L),"&","&\f"),"&\f")!=-1&&(D=-1);break}case 34:case 39:case 91:Z+=ok(L);break;case 9:case 10:case 13:case 32:Z+=tG(A);break;case 92:Z+=nG(bw()-1,7);continue;case 47:switch(Qh()){case 42:case 47:b_(aG(rG(xl(),bw()),e,t,p),p);break;default:Z+="/"}break;case 123*I:f[m++]=Tu(Z)*D;case 125*I:case 59:case 0:switch(L){case 0:case 125:P=0;case 59+y:D==-1&&(Z=hn(Z,/\f/g,"")),T>0&&Tu(Z)-E&&b_(T>32?zD(Z+";",r,t,E-1,p):zD(hn(Z," ","")+";",r,t,E-2,p),p);break;case 59:Z+=";";default:if(b_(Y=jD(Z,e,t,m,y,a,f,j,F=[],V=[],E,l),l),L===123)if(y===0)Tw(Z,e,Y,Y,F,l,E,f,V);else switch(S===99&&_o(Z,3)===110?100:S){case 100:case 108:case 109:case 115:Tw(n,Y,Y,r&&b_(jD(n,Y,Y,0,0,a,f,j,a,F=[],E,V),V),a,V,E,f,r?F:V);break;default:Tw(Z,Y,Y,Y,[""],V,0,f,V)}}m=y=T=0,I=D=1,j=Z="",E=u;break;case 58:E=1+Tu(Z),T=A;default:if(I<1){if(L==123)--I;else if(L==125&&I++==0&&JK()==125)continue}switch(Z+=nk(L),L*I){case 38:D=y>0?1:(Z+="\f",-1);break;case 44:f[m++]=(Tu(Z)-1)*D,D=1;break;case 64:Qh()===45&&(Z+=ok(xl())),S=Qh(),y=E=Tu(j=Z+=iG(bw())),L++;break;case 45:A===45&&Tu(Z)==2&&(I=0)}}return l}function jD(n,e,t,r,a,l,u,f,p,m,y,E){for(var S=a-1,T=a===0?l:[""],A=FD(T),I=0,P=0,D=0;I<r;++I)for(var L=0,j=im(n,S+1,S=WK(P=u[I])),F=n;L<A;++L)(F=UD(P>0?T[L]+" "+j:hn(j,/&\f/g,T[L])))&&(p[D++]=F);return ww(n,e,t,a===0?_w:f,p,m,y,E)}function aG(n,e,t,r){return ww(n,e,t,DD,nk(XK()),im(n,2,-2),0,r)}function zD(n,e,t,r,a){return ww(n,e,t,tk,im(n,0,r),im(n,r+1,-1),r,a)}function BD(n,e,t){switch(YK(n,e)){case 5103:return Qn+"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 Qn+n+n;case 4789:return w_+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return Qn+n+w_+n+Rr+n+n;case 5936:switch(_o(n,e+11)){case 114:return Qn+n+Rr+hn(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return Qn+n+Rr+hn(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return Qn+n+Rr+hn(n,/[svh]\w+-[tblr]{2}/,"lr")+n}case 6828:case 4268:case 2903:return Qn+n+Rr+n+n;case 6165:return Qn+n+Rr+"flex-"+n+n;case 5187:return Qn+n+hn(n,/(\w+).+(:[^]+)/,Qn+"box-$1$2"+Rr+"flex-$1$2")+n;case 5443:return Qn+n+Rr+"flex-item-"+hn(n,/flex-|-self/g,"")+(Fc(n,/flex-|baseline/)?"":Rr+"grid-row-"+hn(n,/flex-|-self/g,""))+n;case 4675:return Qn+n+Rr+"flex-line-pack"+hn(n,/align-content|flex-|-self/g,"")+n;case 5548:return Qn+n+Rr+hn(n,"shrink","negative")+n;case 5292:return Qn+n+Rr+hn(n,"basis","preferred-size")+n;case 6060:return Qn+"box-"+hn(n,"-grow","")+Qn+n+Rr+hn(n,"grow","positive")+n;case 4554:return Qn+hn(n,/([^-])(transform)/g,"$1"+Qn+"$2")+n;case 6187:return hn(hn(hn(n,/(zoom-|grab)/,Qn+"$1"),/(image-set)/,Qn+"$1"),n,"")+n;case 5495:case 3959:return hn(n,/(image-set\([^]*)/,Qn+"$1$`$1");case 4968:return hn(hn(n,/(.+:)(flex-)?(.*)/,Qn+"box-pack:$3"+Rr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Qn+n+n;case 4200:if(!Fc(n,/flex-|baseline/))return Rr+"grid-column-align"+im(n,e)+n;break;case 2592:case 3360:return Rr+hn(n,"template-","")+n;case 4384:case 3616:return t&&t.some(function(r,a){return e=a,Fc(r.props,/grid-\w+-end/)})?~Cw(n+(t=t[e].value),"span")?n:Rr+hn(n,"-start","")+n+Rr+"grid-row-span:"+(~Cw(t,"span")?Fc(t,/\d+/):+Fc(t,/\d+/)-+Fc(n,/\d+/))+";":Rr+hn(n,"-start","")+n;case 4896:case 4128:return t&&t.some(function(r){return Fc(r.props,/grid-\w+-start/)})?n:Rr+hn(hn(n,"-end","-span"),"span ","")+n;case 4095:case 3583:case 4068:case 2532:return hn(n,/(.+)-inline(.+)/,Qn+"$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(Tu(n)-1-e>6)switch(_o(n,e+1)){case 109:if(_o(n,e+4)!==45)break;case 102:return hn(n,/(.+:)(.+)-([^]+)/,"$1"+Qn+"$2-$3$1"+w_+(_o(n,e+3)==108?"$3":"$2-$3"))+n;case 115:return~Cw(n,"stretch")?BD(hn(n,"stretch","fill-available"),e,t)+n:n}break;case 5152:case 5920:return hn(n,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,a,l,u,f,p,m){return Rr+a+":"+l+m+(u?Rr+a+"-span:"+(f?p:+p-+l)+m:"")+n});case 4949:if(_o(n,e+6)===121)return hn(n,":",":"+Qn)+n;break;case 6444:switch(_o(n,_o(n,14)===45?18:11)){case 120:return hn(n,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Qn+(_o(n,14)===45?"inline-":"")+"box$3$1"+Qn+"$2$3$1"+Rr+"$2box$3")+n;case 100:return hn(n,":",":"+Rr)+n}break;case 5719:case 2647:case 2135:case 3927:case 2391:return hn(n,"scroll-","scroll-snap-")+n}return n}function Rw(n,e){for(var t="",r=0;r<n.length;r++)t+=e(n[r],r,n,e)||"";return t}function sG(n,e,t,r){switch(n.type){case GK:if(n.children.length)break;case KK:case tk:return n.return=n.return||n.value;case DD:return"";case LD:return n.return=n.value+"{"+Rw(n.children,r)+"}";case _w:if(!Tu(n.value=n.props.join(",")))return""}return Tu(t=Rw(n.children,r))?n.return=n.value+"{"+t+"}":""}function lG(n){var e=FD(n);return function(t,r,a,l){for(var u="",f=0;f<e;f++)u+=n[f](t,r,a,l)||"";return u}}function uG(n){return function(e){e.root||(e=e.return)&&n(e)}}function cG(n,e,t,r){if(n.length>-1&&!n.return)switch(n.type){case tk:n.return=BD(n.value,n.length,t);return;case LD:return Rw([Wd(n,{value:hn(n.value,"@","@"+Qn)})],r);case _w:if(n.length)return QK(t=n.props,function(a){switch(Fc(a,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":sm(Wd(n,{props:[hn(a,/:(read-\w+)/,":"+w_+"$1")]})),sm(Wd(n,{props:[a]})),rk(n,{props:$D(t,r)});break;case"::placeholder":sm(Wd(n,{props:[hn(a,/:(plac\w+)/,":"+Qn+"input-$1")]})),sm(Wd(n,{props:[hn(a,/:(plac\w+)/,":"+w_+"$1")]})),sm(Wd(n,{props:[hn(a,/:(plac\w+)/,Rr+"input-$1")]})),sm(Wd(n,{props:[a]})),rk(n,{props:$D(t,r)});break}return""})}}var dG={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},Xh=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",sk=typeof window<"u"&&"HTMLElement"in window,fG=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),qD=/invalid hook call/i,kw=new Set,hG=function(n,e){if(process.env.NODE_ENV!=="production"){var t=e?' with the id of "'.concat(e,'"'):"",r="The component ".concat(n).concat(t,` has been created dynamically.
279
- `)+`You may see this warning because you've called styled inside another component.
280
- To resolve this only create new StyledComponents outside of any render method and function component.`,a=console.error;try{var l=!0;console.error=function(u){for(var f=[],p=1;p<arguments.length;p++)f[p-1]=arguments[p];qD.test(u)?(l=!1,kw.delete(r)):a.apply(void 0,No([u],f,!1))},U.useRef(),l&&!kw.has(r)&&(console.warn(r),kw.add(r))}catch(u){qD.test(u.message)&&kw.delete(r)}finally{console.error=a}}},Aw=Object.freeze([]),lm=Object.freeze({});function pG(n,e,t){return t===void 0&&(t=lm),n.theme!==t.theme&&n.theme||e||t.theme}var lk=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),vG=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,mG=/(^-|-$)/g;function VD(n){return n.replace(vG,"-").replace(mG,"")}var gG=/(a)(d)/gi,KD=function(n){return String.fromCharCode(n+(n>25?39:97))};function uk(n){var e,t="";for(e=Math.abs(n);e>52;e=e/52|0)t=KD(e%52)+t;return(KD(e%52)+t).replace(gG,"$1-$2")}var ck,Jh=function(n,e){for(var t=e.length;t;)n=33*n^e.charCodeAt(--t);return n},GD=function(n){return Jh(5381,n)};function WD(n){return uk(GD(n)>>>0)}function YD(n){return process.env.NODE_ENV!=="production"&&typeof n=="string"&&n||n.displayName||n.name||"Component"}function dk(n){return typeof n=="string"&&(process.env.NODE_ENV==="production"||n.charAt(0)===n.charAt(0).toLowerCase())}var QD=typeof Symbol=="function"&&Symbol.for,XD=QD?Symbol.for("react.memo"):60115,yG=QD?Symbol.for("react.forward_ref"):60112,_G={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},CG={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},JD={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},EG=((ck={})[yG]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ck[XD]=JD,ck);function ZD(n){return("type"in(e=n)&&e.type.$$typeof)===XD?JD:"$$typeof"in n?EG[n.$$typeof]:_G;var e}var wG=Object.defineProperty,bG=Object.getOwnPropertyNames,e2=Object.getOwnPropertySymbols,SG=Object.getOwnPropertyDescriptor,TG=Object.getPrototypeOf,t2=Object.prototype;function n2(n,e,t){if(typeof e!="string"){if(t2){var r=TG(e);r&&r!==t2&&n2(n,r,t)}var a=bG(e);e2&&(a=a.concat(e2(e)));for(var l=ZD(n),u=ZD(e),f=0;f<a.length;++f){var p=a[f];if(!(p in CG||t&&t[p]||u&&p in u||l&&p in l)){var m=SG(e,p);try{wG(n,p,m)}catch{}}}}return n}function Zh(n){return typeof n=="function"}function fk(n){return typeof n=="object"&&"styledComponentId"in n}function ep(n,e){return n&&e?"".concat(n," ").concat(e):n||e||""}function hk(n,e){if(n.length===0)return"";for(var t=n[0],r=1;r<n.length;r++)t+=e?e+n[r]:n[r];return t}function um(n){return n!==null&&typeof n=="object"&&n.constructor.name===Object.name&&!("props"in n&&n.$$typeof)}function pk(n,e,t){if(t===void 0&&(t=!1),!t&&!um(n)&&!Array.isArray(n))return e;if(Array.isArray(e))for(var r=0;r<e.length;r++)n[r]=pk(n[r],e[r]);else if(um(e))for(var r in e)n[r]=pk(n[r],e[r]);return n}function vk(n,e){Object.defineProperty(n,"toString",{value:e})}var RG=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
281
-
282
- `,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
283
-
284
- - Are you trying to reuse it across renders?
285
- - Are you accidentally calling collectStyles twice?
286
-
287
- `,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
288
-
289
- `,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
290
-
291
- - Does this error occur on the client and is your target falsy?
292
- - Does this error occur on the server and is the sheet falsy?
293
-
294
- `,5:`The clone method cannot be used on the client!
295
-
296
- - Are you running in a client-like environment on the server?
297
- - Are you trying to run SSR on the client?
298
-
299
- `,6:`Trying to insert a new style tag, but the given Node is unmounted!
300
-
301
- - Are you using a custom target that isn't mounted?
302
- - Does your document not have a valid head element?
303
- - Have you accidentally removed a style tag manually?
304
-
305
- `,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object.
306
-
307
- `,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
308
-
309
- `,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
310
-
311
- `,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
312
-
313
- `,14:`ThemeProvider: "theme" prop is required.
314
-
315
- `,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s.
316
- You may only create up to 1,073,741,824 components. If you're creating components dynamically,
317
- as for instance in your render method then you may be running into this limitation.
318
-
319
- `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
320
- Has styled-components' style tag been unmounted or altered by another script?
321
- `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function kG(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];for(var t=n[0],r=[],a=1,l=n.length;a<l;a+=1)r.push(n[a]);return r.forEach(function(u){t=t.replace(/%[a-z]/,u)}),t}function $c(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(n," for more information.").concat(e.length>0?" Args: ".concat(e.join(", ")):"")):new Error(kG.apply(void 0,No([RG[n]],e,!1)).trim())}var AG=function(){function n(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return n.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},n.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,a=r.length,l=a;e>=l;)if((l<<=1)<0)throw $c(16,"".concat(e));this.groupSizes=new Uint32Array(l),this.groupSizes.set(r),this.length=l;for(var u=a;u<l;u++)this.groupSizes[u]=0}for(var f=this.indexOfGroup(e+1),p=(u=0,t.length);u<p;u++)this.tag.insertRule(f,t[u])&&(this.groupSizes[e]++,f++)},n.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),a=r+t;this.groupSizes[e]=0;for(var l=r;l<a;l++)this.tag.deleteRule(r)}},n.prototype.getGroup=function(e){var t="";if(e>=this.length||this.groupSizes[e]===0)return t;for(var r=this.groupSizes[e],a=this.indexOfGroup(e),l=a+r,u=a;u<l;u++)t+="".concat(this.tag.getRule(u)).concat(`/*!sc*/
322
- `);return t},n}(),xw=new Map,Iw=new Map,mk=1,Ow=function(n){if(xw.has(n))return xw.get(n);for(;Iw.has(mk);)mk++;var e=mk++;if(process.env.NODE_ENV!=="production"&&((0|e)<0||e>1073741824))throw $c(16,"".concat(e));return xw.set(n,e),Iw.set(e,n),e},xG=function(n,e){xw.set(n,e),Iw.set(e,n)},IG="style[".concat(Xh,"][").concat("data-styled-version",'="').concat("6.0.8",'"]'),OG=new RegExp("^".concat(Xh,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),NG=function(n,e,t){for(var r,a=t.split(","),l=0,u=a.length;l<u;l++)(r=a[l])&&n.registerName(e,r)},MG=function(n,e){for(var t,r=((t=e.textContent)!==null&&t!==void 0?t:"").split(`/*!sc*/
323
- `),a=[],l=0,u=r.length;l<u;l++){var f=r[l].trim();if(f){var p=f.match(OG);if(p){var m=0|parseInt(p[1],10),y=p[2];m!==0&&(xG(y,m),NG(n,y,p[3]),n.getTag().insertRules(m,a)),a.length=0}else a.push(f)}}};function PG(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var r2=function(n){var e=document.head,t=n||e,r=document.createElement("style"),a=function(f){var p=Array.from(f.querySelectorAll("style[".concat(Xh,"]")));return p[p.length-1]}(t),l=a!==void 0?a.nextSibling:null;r.setAttribute(Xh,"active"),r.setAttribute("data-styled-version","6.0.8");var u=PG();return u&&r.setAttribute("nonce",u),t.insertBefore(r,l),r},DG=function(){function n(e){this.element=r2(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(t){if(t.sheet)return t.sheet;for(var r=document.styleSheets,a=0,l=r.length;a<l;a++){var u=r[a];if(u.ownerNode===t)return u}throw $c(17)}(this.element),this.length=0}return n.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch{return!1}},n.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},n.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},n}(),LG=function(){function n(e){this.element=r2(e),this.nodes=this.element.childNodes,this.length=0}return n.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},n.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},n.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},n}(),UG=function(){function n(e){this.rules=[],this.length=0}return n.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},n.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},n.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},n}(),i2=sk,FG={isServer:!sk,useCSSOMInjection:!fG},o2=function(){function n(e,t,r){e===void 0&&(e=lm),t===void 0&&(t={});var a=this;this.options=vi(vi({},FG),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&sk&&i2&&(i2=!1,function(l){for(var u=document.querySelectorAll(IG),f=0,p=u.length;f<p;f++){var m=u[f];m&&m.getAttribute(Xh)!=="active"&&(MG(l,m),m.parentNode&&m.parentNode.removeChild(m))}}(this)),vk(this,function(){return function(l){for(var u=l.getTag(),f=u.length,p="",m=function(E){var S=function(D){return Iw.get(D)}(E);if(S===void 0)return"continue";var T=l.names.get(S),A=u.getGroup(E);if(T===void 0||A.length===0)return"continue";var I="".concat(Xh,".g").concat(E,'[id="').concat(S,'"]'),P="";T!==void 0&&T.forEach(function(D){D.length>0&&(P+="".concat(D,","))}),p+="".concat(A).concat(I,'{content:"').concat(P,'"}').concat(`/*!sc*/
324
- `)},y=0;y<f;y++)m(y);return p}(a)})}return n.registerId=function(e){return Ow(e)},n.prototype.reconstructWithOptions=function(e,t){return t===void 0&&(t=!0),new n(vi(vi({},this.options),e),this.gs,t&&this.names||void 0)},n.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},n.prototype.getTag=function(){return this.tag||(this.tag=(e=function(t){var r=t.useCSSOMInjection,a=t.target;return t.isServer?new UG(a):r?new DG(a):new LG(a)}(this.options),new AG(e)));var e},n.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},n.prototype.registerName=function(e,t){if(Ow(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},n.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(Ow(e),r)},n.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},n.prototype.clearRules=function(e){this.getTag().clearGroup(Ow(e)),this.clearNames(e)},n.prototype.clearTag=function(){this.tag=void 0},n}(),$G=/&/g,HG=/^\s*\/\/.*$/gm;function a2(n,e){return n.map(function(t){return t.type==="rule"&&(t.value="".concat(e," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(e," ")),t.props=t.props.map(function(r){return"".concat(e," ").concat(r)})),Array.isArray(t.children)&&t.type!=="@keyframes"&&(t.children=a2(t.children,e)),t})}function jG(n){var e,t,r,a=n===void 0?lm:n,l=a.options,u=l===void 0?lm:l,f=a.plugins,p=f===void 0?Aw:f,m=function(S,T,A){return A===t||A.startsWith(t)&&A.endsWith(t)&&A.replaceAll(t,"").length>0?".".concat(e):S},y=p.slice();y.push(function(S){S.type===_w&&S.value.includes("&")&&(S.props[0]=S.props[0].replace($G,t).replace(r,m))}),u.prefix&&y.push(cG),y.push(sG);var E=function(S,T,A,I){T===void 0&&(T=""),A===void 0&&(A=""),I===void 0&&(I="&"),e=I,t=T,r=new RegExp("\\".concat(t,"\\b"),"g");var P=S.replace(HG,""),D=oG(A||T?"".concat(A," ").concat(T," { ").concat(P," }"):P);u.namespace&&(D=a2(D,u.namespace));var L=[];return Rw(D,lG(y.concat(uG(function(j){return L.push(j)})))),L};return E.hash=p.length?p.reduce(function(S,T){return T.name||$c(15),Jh(S,T.name)},5381).toString():"",E}var zG=new o2,gk=jG(),s2=wc.createContext({shouldForwardProp:void 0,styleSheet:zG,stylis:gk});s2.Consumer,wc.createContext(void 0);function l2(){return U.useContext(s2)}var yk=function(){function n(e,t){var r=this;this.inject=function(a,l){l===void 0&&(l=gk);var u=r.name+l.hash;a.hasNameForId(r.id,u)||a.insertRules(r.id,u,l(r.rules,u,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,vk(this,function(){throw $c(12,String(r.name))})}return n.prototype.getName=function(e){return e===void 0&&(e=gk),this.name+e.hash},n}(),BG=function(n){return n>="A"&&n<="Z"};function u2(n){for(var e="",t=0;t<n.length;t++){var r=n[t];if(t===1&&r==="-"&&n[0]==="-")return n;BG(r)?e+="-"+r.toLowerCase():e+=r}return e.startsWith("ms-")?"-"+e:e}var c2=function(n){return n==null||n===!1||n===""},d2=function(n){var e,t,r=[];for(var a in n){var l=n[a];n.hasOwnProperty(a)&&!c2(l)&&(Array.isArray(l)&&l.isCss||Zh(l)?r.push("".concat(u2(a),":"),l,";"):um(l)?r.push.apply(r,No(No(["".concat(a," {")],d2(l),!1),["}"],!1)):r.push("".concat(u2(a),": ").concat((e=a,(t=l)==null||typeof t=="boolean"||t===""?"":typeof t!="number"||t===0||e in dG||e.startsWith("--")?String(t).trim():"".concat(t,"px")),";")))}return r};function tp(n,e,t,r){if(c2(n))return[];if(fk(n))return[".".concat(n.styledComponentId)];if(Zh(n)){if(!Zh(l=n)||l.prototype&&l.prototype.isReactComponent||!e)return[n];var a=n(e);return process.env.NODE_ENV==="production"||typeof a!="object"||Array.isArray(a)||a instanceof yk||um(a)||a===null||console.error("".concat(YD(n)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),tp(a,e,t,r)}var l;return n instanceof yk?t?(n.inject(t,r),[n.getName(r)]):[n]:um(n)?d2(n):Array.isArray(n)?Array.prototype.concat.apply(Aw,n.map(function(u){return tp(u,e,t,r)})):[n.toString()]}function qG(n){for(var e=0;e<n.length;e+=1){var t=n[e];if(Zh(t)&&!fk(t))return!1}return!0}var VG=GD("6.0.8"),KG=function(){function n(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&qG(e),this.componentId=t,this.baseHash=Jh(VG,t),this.baseStyle=r,o2.registerId(t)}return n.prototype.generateAndInjectStyles=function(e,t,r){var a=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))a=ep(a,this.staticRulesId);else{var l=hk(tp(this.rules,e,t,r)),u=uk(Jh(this.baseHash,l)>>>0);if(!t.hasNameForId(this.componentId,u)){var f=r(l,".".concat(u),void 0,this.componentId);t.insertRules(this.componentId,u,f)}a=ep(a,u),this.staticRulesId=u}else{for(var p=Jh(this.baseHash,r.hash),m="",y=0;y<this.rules.length;y++){var E=this.rules[y];if(typeof E=="string")m+=E,process.env.NODE_ENV!=="production"&&(p=Jh(p,E));else if(E){var S=hk(tp(E,e,t,r));p=Jh(p,S+y),m+=S}}if(m){var T=uk(p>>>0);t.hasNameForId(this.componentId,T)||t.insertRules(this.componentId,T,r(m,".".concat(T),void 0,this.componentId)),a=ep(a,T)}}return a},n}(),Nw=wc.createContext(void 0);Nw.Consumer;function Mw(n){var e=wc.useContext(Nw),t=U.useMemo(function(){return function(r,a){if(!r)throw $c(14);if(Zh(r)){var l=r(a);if(process.env.NODE_ENV!=="production"&&(l===null||Array.isArray(l)||typeof l!="object"))throw $c(7);return l}if(Array.isArray(r)||typeof r!="object")throw $c(8);return a?vi(vi({},a),r):r}(n.theme,e)},[n.theme,e]);return n.children?wc.createElement(Nw.Provider,{value:t},n.children):null}var _k={},f2=new Set;function GG(n,e,t){var r=fk(n),a=n,l=!dk(n),u=e.attrs,f=u===void 0?Aw:u,p=e.componentId,m=p===void 0?function(F,V){var Y=typeof F!="string"?"sc":VD(F);_k[Y]=(_k[Y]||0)+1;var Z="".concat(Y,"-").concat(WD("6.0.8"+Y+_k[Y]));return V?"".concat(V,"-").concat(Z):Z}(e.displayName,e.parentComponentId):p,y=e.displayName,E=y===void 0?function(F){return dk(F)?"styled.".concat(F):"Styled(".concat(YD(F),")")}(n):y,S=e.displayName&&e.componentId?"".concat(VD(e.displayName),"-").concat(e.componentId):e.componentId||m,T=r&&a.attrs?a.attrs.concat(f).filter(Boolean):f,A=e.shouldForwardProp;if(r&&a.shouldForwardProp){var I=a.shouldForwardProp;if(e.shouldForwardProp){var P=e.shouldForwardProp;A=function(F,V){return I(F,V)&&P(F,V)}}else A=I}var D=new KG(t,S,r?a.componentStyle:void 0);function L(F,V){return function(Y,Z,Re){var Ge=Y.attrs,at=Y.componentStyle,Pe=Y.defaultProps,Be=Y.foldedComponentIds,te=Y.styledComponentId,ee=Y.target,ye=wc.useContext(Nw),me=l2(),he=Y.shouldForwardProp||me.shouldForwardProp;process.env.NODE_ENV!=="production"&&U.useDebugValue(te);var G=function(Ue,It,Ft){for(var qt,bt=vi(vi({},It),{className:void 0,theme:Ft}),_n=0;_n<Ue.length;_n+=1){var Xr=Zh(qt=Ue[_n])?qt(bt):qt;for(var Xn in Xr)bt[Xn]=Xn==="className"?ep(bt[Xn],Xr[Xn]):Xn==="style"?vi(vi({},bt[Xn]),Xr[Xn]):Xr[Xn]}return It.className&&(bt.className=ep(bt.className,It.className)),bt}(Ge,Z,pG(Z,ye,Pe)||lm),ge=G.as||ee,H={};for(var ne in G)G[ne]===void 0||ne[0]==="$"||ne==="as"||ne==="theme"||(ne==="forwardedAs"?H.as=G.forwardedAs:he&&!he(ne,ge)||(H[ne]=G[ne],he||process.env.NODE_ENV!=="development"||VK(ne)||f2.has(ne)||!lk.has(ge)||(f2.add(ne),console.warn('styled-components: it looks like an unknown prop "'.concat(ne,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var xe=function(Ue,It){var Ft=l2(),qt=Ue.generateAndInjectStyles(It,Ft.styleSheet,Ft.stylis);return process.env.NODE_ENV!=="production"&&U.useDebugValue(qt),qt}(at,G);process.env.NODE_ENV!=="production"&&Y.warnTooManyClasses&&Y.warnTooManyClasses(xe);var ut=ep(Be,te);return xe&&(ut+=" "+xe),G.className&&(ut+=" "+G.className),H[dk(ge)&&!lk.has(ge)?"class":"className"]=ut,H.ref=Re,U.createElement(ge,H)}(j,F,V)}process.env.NODE_ENV!=="production"&&(L.displayName=E);var j=wc.forwardRef(L);return j.attrs=T,j.componentStyle=D,j.shouldForwardProp=A,process.env.NODE_ENV!=="production"&&(j.displayName=E),j.foldedComponentIds=r?ep(a.foldedComponentIds,a.styledComponentId):"",j.styledComponentId=S,j.target=r?a.target:n,Object.defineProperty(j,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(F){this._foldedDefaultProps=r?function(V){for(var Y=[],Z=1;Z<arguments.length;Z++)Y[Z-1]=arguments[Z];for(var Re=0,Ge=Y;Re<Ge.length;Re++)pk(V,Ge[Re],!0);return V}({},a.defaultProps,F):F}}),process.env.NODE_ENV!=="production"&&(hG(E,S),j.warnTooManyClasses=function(F,V){var Y={},Z=!1;return function(Re){if(!Z&&(Y[Re]=!0,Object.keys(Y).length>=200)){var Ge=V?' with the id of "'.concat(V,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(F).concat(Ge,`.
325
- `)+`Consider using the attrs method, together with a style object for frequently changed styles.
326
- Example:
327
- const Component = styled.div.attrs(props => ({
328
- style: {
329
- background: props.background,
330
- },
331
- }))\`width: 100%;\`
332
-
333
- <Component />`),Z=!0,Y={}}}}(E,S)),vk(j,function(){return".".concat(j.styledComponentId)}),l&&n2(j,n,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),j}function h2(n,e){for(var t=[n[0]],r=0,a=e.length;r<a;r+=1)t.push(e[r],n[r+1]);return t}var p2=function(n){return Object.assign(n,{isCss:!0})};function pn(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(Zh(n)||um(n)){var r=n;return p2(tp(h2(Aw,No([r],e,!0))))}var a=n;return e.length===0&&a.length===1&&typeof a[0]=="string"?tp(a):p2(tp(h2(a,e)))}function Ck(n,e,t){if(t===void 0&&(t=lm),!e)throw $c(1,e);var r=function(a){for(var l=[],u=1;u<arguments.length;u++)l[u-1]=arguments[u];return n(e,t,pn.apply(void 0,No([a],l,!1)))};return r.attrs=function(a){return Ck(n,e,vi(vi({},t),{attrs:Array.prototype.concat(t.attrs,a).filter(Boolean)}))},r.withConfig=function(a){return Ck(n,e,vi(vi({},t),a))},r}var v2=function(n){return Ck(GG,n)},Mt=v2;lk.forEach(function(n){Mt[n]=v2(n)});function m2(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=hk(pn.apply(void 0,No([n],e,!1))),a=WD(r);return new yk(a,r)}process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
334
- Perhaps you're looking to import 'styled-components/native'?
335
- Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Pw="__sc-".concat(Xh,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Pw]||(window[Pw]=0),window[Pw]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
336
-
337
- See https://s-c.sh/2BAXzed for more info.`),window[Pw]+=1);var WG={jumbo__base:"88px",default__base:"48px",default__input:"56px",compact__standard:"32px",compact__input:"44px"},YG={text:{static_icons__default:{hex:"#3d3d3d",hsla:"hsla(0, 0%, 23.9%, 1)",rgba:"var(--eds_text__static_icons__default, rgba(61, 61, 61, 1))"},static_icons__secondary:{hex:"#565656",hsla:"hsla(0, 0%, 33.7%, 1)",rgba:"var(--eds_text__static_icons__secondary, rgba(86, 86, 86, 1))"},static_icons__tertiary:{hex:"#6f6f6f",hsla:"hsla(0, 0%, 43.5%, 1)",rgba:"var(--eds_text__static_icons__tertiary, rgba(111, 111, 111, 1))"},static_icons__primary_white:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_text__static_icons__primary_white, rgba(255, 255, 255, 1))"}},ui:{background__default:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_ui_background__default, rgba(255, 255, 255, 1))"},background__semitransparent:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"var(--eds_ui_background__semitransparent, rgba(255, 255, 255, 0.2))"},background__light:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"var(--eds_ui_background__light, rgba(247, 247, 247, 1))"},background__scrim:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.4)",rgba:"var(--eds_ui_background__scrim, rgba(0, 0, 0, 0.4))"},background__overlay:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.8)",rgba:"var(--eds_ui_background__overlay, rgba(0, 0, 0, 0.8))"},background__medium:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"var(--eds_ui_background__medium, rgba(220, 220, 220, 1))"},background__info:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_ui_background__info, rgba(213, 234, 244, 1))"},background__warning:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"var(--eds_ui_background__warning, rgba(255, 231, 214, 1))"},background__danger:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"var(--eds_ui_background__danger, rgba(255, 193, 193, 1))"}},infographic:{substitute__purple_berry:{hex:"#8c1159",hsla:"hsla(325, 78.3%, 30.8%, 1)",rgba:"var(--eds_infographic_substitute__purple_berry, rgba(140, 17, 89, 1))"},substitute__pink_rose:{hex:"#e24973",hsla:"hsla(344, 72.5%, 58.6%, 1)",rgba:"var(--eds_infographic_substitute__pink_rose, rgba(226, 73, 115, 1))"},substitute__pink_salmon:{hex:"#ff92a8",hsla:"hsla(348, 100%, 78.6%, 1)",rgba:"var(--eds_infographic_substitute__pink_salmon, rgba(255, 146, 168, 1))"},substitute__green_cucumber:{hex:"#005f57",hsla:"hsla(175, 100%, 18.6%, 1)",rgba:"var(--eds_infographic_substitute__green_cucumber, rgba(0, 95, 87, 1))"},substitute__green_succulent:{hex:"#00977b",hsla:"hsla(169, 100%, 29.6%, 1)",rgba:"var(--eds_infographic_substitute__green_succulent, rgba(0, 151, 123, 1))"},substitute__green_mint:{hex:"#40d38f",hsla:"hsla(152, 62.6%, 53.9%, 1)",rgba:"var(--eds_infographic_substitute__green_mint, rgba(64, 211, 143, 1))"},substitute__blue_ocean:{hex:"#004088",hsla:"hsla(212, 100%, 26.7%, 1)",rgba:"var(--eds_infographic_substitute__blue_ocean, rgba(0, 64, 136, 1))"},substitute__blue_overcast:{hex:"#0084c4",hsla:"hsla(200, 100%, 38.4%, 1)",rgba:"var(--eds_infographic_substitute__blue_overcast, rgba(0, 132, 196, 1))"},substitute__blue_sky:{hex:"#52c0ff",hsla:"hsla(202, 100%, 66.1%, 1)",rgba:"var(--eds_infographic_substitute__blue_sky, rgba(82, 192, 255, 1))"},primary__moss_green_100:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"var(--eds_infographic_primary__moss_green_100, rgba(0, 112, 121, 1))"},primary__moss_green_55:{hex:"#73b1b5",hsla:"hsla(184, 30.8%, 58%, 1)",rgba:"var(--eds_infographic_primary__moss_green_55, rgba(115, 177, 181, 1))"},primary__moss_green_34:{hex:"#a8ced1",hsla:"hsla(184, 30.8%, 73.9%, 1)",rgba:"var(--eds_infographic_primary__moss_green_34, rgba(168, 206, 209, 1))"},primary__moss_green_21:{hex:"#c9e0e2",hsla:"hsla(185, 30.1%, 83.7%, 1)",rgba:"var(--eds_infographic_primary__moss_green_21, rgba(201, 224, 226, 1))"},primary__moss_green_13:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"var(--eds_infographic_primary__moss_green_13, rgba(222, 237, 238, 1))"},primary__energy_red_100:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"var(--eds_infographic_primary__energy_red_100, rgba(235, 0, 55, 1))"},primary__energy_red_55:{hex:"#ff7d98",hsla:"hsla(348, 100%, 74.5%, 1)",rgba:"var(--eds_infographic_primary__energy_red_55, rgba(255, 125, 152, 1))"},primary__energy_red_34:{hex:"#ffaebf",hsla:"hsla(347, 100%, 84.1%, 1)",rgba:"var(--eds_infographic_primary__energy_red_34, rgba(255, 174, 191, 1))"},primary__energy_red_21:{hex:"#ffcdd7",hsla:"hsla(348, 100%, 90.2%, 1)",rgba:"var(--eds_infographic_primary__energy_red_21, rgba(255, 205, 215, 1))"},primary__energy_red_13:{hex:"#ffe0e7",hsla:"hsla(346, 100%, 93.9%, 1)",rgba:"var(--eds_infographic_primary__energy_red_13, rgba(255, 224, 231, 1))"},primary__weathered_red:{hex:"#7d0023",hsla:"hsla(343, 100%, 24.5%, 1)",rgba:"var(--eds_infographic_primary__weathered_red, rgba(125, 0, 35, 1))"},primary__slate_blue:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"var(--eds_infographic_primary__slate_blue, rgba(36, 55, 70, 1))"},primary__spruce_wood:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"var(--eds_infographic_primary__spruce_wood, rgba(255, 231, 214, 1))"},primary__mist_blue:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_infographic_primary__mist_blue, rgba(213, 234, 244, 1))"},primary__lichen_green:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_infographic_primary__lichen_green, rgba(230, 250, 236, 1))"}},logo:{fill_positive:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"var(--eds_logo__fill_positive, rgba(235, 0, 55, 1))"},fill_negative:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_logo__fill_negative, rgba(255, 255, 255, 1))"}},interactive:{primary__selected_highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_interactive_primary__selected_highlight, rgba(230, 250, 236, 1))"},primary__selected_hover:{hex:"#c3f3d2",hsla:"hsla(139, 66.7%, 85.9%, 1)",rgba:"var(--eds_interactive_primary__selected_hover, rgba(195, 243, 210, 1))"},primary__resting:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"var(--eds_interactive_primary__resting, rgba(0, 112, 121, 1))"},primary__hover:{hex:"#004f55",hsla:"hsla(184, 100%, 16.7%, 1)",rgba:"var(--eds_interactive_primary__hover, rgba(0, 79, 85, 1))"},primary__hover_alt:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"var(--eds_interactive_primary__hover_alt, rgba(222, 237, 238, 1))"},secondary__highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_interactive_secondary__highlight, rgba(213, 234, 244, 1))"},secondary__resting:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"var(--eds_interactive_secondary__resting, rgba(36, 55, 70, 1))"},secondary__link_hover:{hex:"#17242f",hsla:"hsla(208, 34.3%, 13.7%, 1)",rgba:"var(--eds_interactive_secondary__link_hover, rgba(23, 36, 47, 1))"},danger__highlight:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"var(--eds_interactive_danger__highlight, rgba(255, 193, 193, 1))"},danger__resting:{hex:"#eb0000",hsla:"hsla(0, 100%, 46.1%, 1)",rgba:"var(--eds_interactive_danger__resting, rgba(235, 0, 0, 1))"},danger__hover:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"var(--eds_interactive_danger__hover, rgba(179, 13, 47, 1))"},danger__text:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"var(--eds_interactive_danger__text, rgba(179, 13, 47, 1))"},warning__highlight:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"var(--eds_interactive_warning__highlight, rgba(255, 231, 214, 1))"},warning__resting:{hex:"#ff9200",hsla:"hsla(34, 100%, 50%, 1)",rgba:"var(--eds_interactive_warning__resting, rgba(255, 146, 0, 1))"},warning__hover:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"var(--eds_interactive_warning__hover, rgba(173, 98, 0, 1))"},warning__text:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"var(--eds_interactive_warning__text, rgba(173, 98, 0, 1))"},success__highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_interactive_success__highlight, rgba(230, 250, 236, 1))"},success__resting:{hex:"#4bb748",hsla:"hsla(118, 43.5%, 50%, 1)",rgba:"var(--eds_interactive_success__resting, rgba(75, 183, 72, 1))"},success__hover:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"var(--eds_interactive_success__hover, rgba(53, 129, 50, 1))"},success__text:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"var(--eds_interactive_success__text, rgba(53, 129, 50, 1))"},table__cell__fill_resting:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_interactive_table__cell__fill_resting, rgba(255, 255, 255, 1))"},table__cell__fill_hover:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"var(--eds_interactive_table__cell__fill_hover, rgba(234, 234, 234, 1))"},table__cell__fill_activated:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_interactive_table__cell__fill_activated, rgba(230, 250, 236, 1))"},table__header__fill_activated:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"var(--eds_interactive_table__header__fill_activated, rgba(234, 234, 234, 1))"},table__header__fill_hover:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"var(--eds_interactive_table__header__fill_hover, rgba(220, 220, 220, 1))"},table__header__fill_resting:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"var(--eds_interactive_table__header__fill_resting, rgba(247, 247, 247, 1))"},disabled__text:{hex:"#bebebe",hsla:"hsla(0, 0%, 74.5%, 1)",rgba:"var(--eds_interactive__disabled__text, rgba(190, 190, 190, 1))"},text_highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_interactive__text_highlight, rgba(213, 234, 244, 1))"},focus:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"var(--eds_interactive__focus, rgba(0, 112, 121, 1))"},disabled__border:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"var(--eds_interactive__disabled__border, rgba(220, 220, 220, 1))"},disabled__fill:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"var(--eds_interactive__disabled__fill, rgba(234, 234, 234, 1))"},link_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_interactive__link_on_interactive_colors, rgba(255, 255, 255, 1))"},icon_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_interactive__icon_on_interactive_colors, rgba(255, 255, 255, 1))"},link_in_snackbars:{hex:"#97cace",hsla:"hsla(184, 35.9%, 70%, 1)",rgba:"var(--eds_interactive__link_in_snackbars, rgba(151, 202, 206, 1))"},pressed_overlay_dark:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.2)",rgba:"var(--eds_interactive__pressed_overlay_dark, rgba(0, 0, 0, 0.2))"},pressed_overlay_light:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"var(--eds_interactive__pressed_overlay_light, rgba(255, 255, 255, 0.2))"}}},QG={raised:"0 1px 5px rgba(0, 0, 0, 0.2),0 3px 4px rgba(0, 0, 0, 0.12),0 2px 4px rgba(0, 0, 0, 0.14)",none:"0 0 1px rgba(0, 0, 0, 0.14)",overlay:"0 1px 10px rgba(0, 0, 0, 0.2),0 4px 5px rgba(0, 0, 0, 0.12),0 2px 4px rgba(0, 0, 0, 0.14)",sticky:"0 4px 5px rgba(0, 0, 0, 0.2),0 3px 14px rgba(0, 0, 0, 0.12),0 8px 10px rgba(0, 0, 0, 0.14)",temporary_nav:"0 7px 8px rgba(0, 0, 0, 0.2),0 5px 22px rgba(0, 0, 0, 0.12),0 12px 17px rgba(0, 0, 0, 0.14)",above_scrim:"0 11px 15px rgba(0, 0, 0, 0.2),0 9px 46px rgba(0, 0, 0, 0.12),0 24px 38px rgba(0, 0, 0, 0.14)"},XG={_modes:{compact:{pressed_dark_overlay:{blendMode:"pass_through",pressedColor:"transparent"},focused:{style:"dashed",color:"rgba(0, 112, 121, 1)",width:"2px"},pressed_light_overlay:{blendMode:"pass_through",pressedColor:"rgba(255, 255, 255, 1)"}}},pressed_dark_overlay:{blendMode:"darken",pressedColor:"rgba(0, 0, 0, 0.2)"},focused:{style:"dashed",color:"rgba(0, 112, 121, 1)",width:"2px"},pressed_light_overlay:{blendMode:"pass_through",pressedColor:"rgba(255, 255, 255, 0.2)"}},JG={_modes:{compact:{rounded:{minHeight:"24px",minWidth:"80px",borderRadius:"100px"},button:{minHeight:"24px",minWidth:"112px",borderRadius:"4px"},toggle:{minHeight:"24px",minWidth:"112px",borderRadius:"4px"},corners:{minHeight:"24px",minWidth:"112px",borderRadius:"4px"},icon_button:{minHeight:"32px",minWidth:"32px",borderRadius:"100px"},straight:{minHeight:"24px",minWidth:"112px",borderRadius:""},toggle_rounded_border:{minHeight:"24px",minWidth:"2px",borderRadius:""},toggle_straight_border:{minHeight:"24px",minWidth:"2px",borderRadius:""},circle:{minHeight:"24px",minWidth:"24px",borderRadius:"100px"}}},toggle_straight_border:{minHeight:"36px",minWidth:"4px",borderRadius:""},toggle_rounded_border:{minHeight:"36px",minWidth:"4px",borderRadius:""},circle:{minHeight:"40px",minWidth:"40px",borderRadius:"100px"},rounded:{minHeight:"40px",minWidth:"80px",borderRadius:"100px"},button:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},toggle:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},corners:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},icon_button:{minHeight:"40px",minWidth:"40px",borderRadius:"100px"},field:{minHeight:"56px",minWidth:"294px",borderRadius:""},straight:{minHeight:"36px",minWidth:"112px",borderRadius:""},caret:{minHeight:"8px",minWidth:"6px",borderRadius:""}},ZG={heading:{h1_bold:{color:"var(--eds_heading__h1_bold_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:700,lineHeight:"1.250em",textAlign:"left"},h1:{color:"var(--eds_heading__h1_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},h2:{color:"var(--eds_heading__h2_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.750rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},h3:{color:"var(--eds_heading__h3_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.500rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},h4:{color:"var(--eds_heading__h4_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.250rem",fontWeight:400,lineHeight:"1.600em",textAlign:"left"},h5:{color:"var(--eds_heading__h5_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.125rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.333em",textAlign:"left"},h6:{color:"var(--eds_heading__h6_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.500em",textAlign:"left"}},navigation:{menu_title:{color:"var(--eds_navigation__menu_title_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},menu_tabs:{color:"var(--eds_navigation__menu_tabs_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},label:{color:"var(--eds_navigation__label_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},drawer_active:{color:"var(--eds_navigation__drawer_active_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,letterSpacing:"0.006em",lineHeight:"1.000em",textAlign:"left"},drawer_inactive:{color:"var(--eds_navigation__drawer_inactive_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},button:{color:"var(--eds_navigation__button_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},breadcrumb:{color:"var(--eds_navigation__breadcrumb_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},breadcrumb_hover:{color:"var(--eds_navigation__breadcrumb_hover_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textDecoration:"underline",textAlign:"left"},menu_title_hover:{color:"var(--eds_navigation__menu_title_hover_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"}},input:{label:{color:"var(--eds_input__label_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},text:{color:"var(--eds_input__text_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.025em",lineHeight:"1.500em",textAlign:"left"},text_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"var(--eds_input__text_monospaced_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.063em",lineHeight:"1.500em",textAlign:"left"},helper:{color:"var(--eds_input__helper_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.333em",textAlign:"left"}},paragraph:{body_short_italic:{color:"var(--eds_paragraph__body_short_italic_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",fontStyle:"italic",textAlign:"left"},caption:{color:"var(--eds_paragraph__caption_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},meta:{color:"var(--eds_paragraph__meta_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.625rem",fontWeight:500,lineHeight:"1.600em",textAlign:"left"},body_short:{color:"var(--eds_paragraph__body_short_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},body_short_bold_italic:{color:"var(--eds_paragraph__body_short_bold_italic_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.250em",fontStyle:"italic",textAlign:"left"},body_short_bold:{color:"var(--eds_paragraph__body_short_bold_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.250em",textAlign:"left"},body_short_link:{color:"var(--eds_paragraph__body_short_link_color, rgba(0, 112, 121, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",textDecoration:"underline",textAlign:"left"},overline:{color:"var(--eds_paragraph__overline_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.625rem",fontWeight:500,letterSpacing:"0.069em",lineHeight:"1.600em",textTransform:"uppercase",textAlign:"left"},ingress:{color:"var(--eds_paragraph__ingress_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.125rem",fontWeight:400,lineHeight:"1.333em",textAlign:"left"},body_long:{color:"var(--eds_paragraph__body_long_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",textAlign:"left"},body_long_link:{color:"var(--eds_paragraph__body_long_link_color, rgba(0, 112, 121, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",textDecoration:"underline",textAlign:"left"},body_long_italic:{color:"var(--eds_paragraph__body_long_italic_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",fontStyle:"italic",textAlign:"left"},body_long_bold:{color:"var(--eds_paragraph__body_long_bold_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.500em",textAlign:"left"},body_long_bold_italic:{color:"var(--eds_paragraph__body_long_bold_italic_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.500em",fontStyle:"italic",textAlign:"left"}},table:{cell_header:{color:"var(--eds_table__cell_header_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.429em",textAlign:"left"},cell_text:{color:"var(--eds_table__cell_text_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textAlign:"left"},cell_text_bold:{color:"var(--eds_table__cell_text_bold_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.429em",textAlign:"left"},cell_text_link:{color:"var(--eds_table__cell_text_link_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textDecoration:"underline",textAlign:"left"},cell_numeric_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"var(--eds_table__cell_numeric_monospaced_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textAlign:"left"}},_modes:{compact:{table:{cell_header:{color:"var(--eds_table__cell_header_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.143em",textAlign:"left"},cell_text:{color:"var(--eds_table__cell_text_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},cell_text_bold:{color:"var(--eds_table__cell_text_bold_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.143em",textAlign:"left"},cell_text_link:{color:"var(--eds_table__cell_text_link_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textDecoration:"underline",textAlign:"left"},cell_numeric_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"var(--eds_table__cell_numeric_monospaced_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"}}}},ui:{tooltip:{color:"var(--eds_ui__tooltip_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},snackbar:{color:"var(--eds_ui__snackbar_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},accordion_header:{color:"var(--eds_ui__accordion_header_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,lineHeight:"1.500em",textAlign:"left"},chip__badge:{color:"var(--eds_ui__chip__badge_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},chart:{color:"var(--eds_ui__chart_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"}}},eW={comfortable:{xxx_large:"48px",xx_large:"40px",x_large:"32px",large:"24px",medium:"16px",medium_small:"12px",small:"8px",x_small:"4px",xx_small:"2px"}},on={clickbounds:WG,colors:YG,elevation:QG,interactions:XG,shape:JG,typography:ZG,spacings:eW},Ek=on.typography.navigation.button,wk=on.colors.interactive,tW=wk.disabled__text.rgba,nW=wk.disabled__border.rgba,rW=wk.disabled__fill.rgba,g2=on.spacings.comfortable.medium,y2=on.shape,_2=y2.button,C2=_2.minHeight,E2=_2.borderRadius,w2=y2._modes.compact.button.minHeight,b2=on.interactions.focused,S2=on.clickbounds,T2=S2.default__base,R2=S2.compact__standard,Dw={background:"transparent",height:"var(--eds_button__height, ".concat(C2,")"),typography:ve(ve({},Ek),{},{textAlign:"center",fontSize:"var(--eds_button__font_size, ".concat(Ek.fontSize,")")}),border:{type:"border",width:"var(--eds_button__border_width, 1px)",color:"transparent",radius:"var(--eds_button__radius, ".concat(E2,")"),style:"solid"},spacings:{top:"var(--eds_button__padding_y, 0)",bottom:"var(--eds_button__padding_y, 0)",left:"var(--eds_button__padding_x, ".concat(g2,")"),right:"var(--eds_button__padding_x, ".concat(g2,")")},clickbound:{height:T2,width:"100%",offset:{top:"".concat((parseInt(T2)-parseInt(C2))/2+1,"px"),left:"0"}},entities:{icon:{height:"var(--eds_button__icon__size, 24px)",width:"var(--eds_button__icon__size, 24px)"}},states:{hover:{border:{type:"border",width:"1px",color:"transparent",radius:"var(--eds_button__radius, ".concat(E2,")"),style:"solid"}},focus:{outline:{type:"outline",offset:"3px",style:"dashed",color:b2.color,width:b2.width}},disabled:{background:rW,border:{type:"border",width:"1px",color:nW,style:"solid"},typography:ve(ve({},Ek),{},{color:tW,textAlign:"center"})}},modes:{compact:{height:"var(--eds_button__height_compact, ".concat(w2,")"),spacings:{top:"var(--eds_button__padding_y_compact, 0)",bottom:"var(--eds_button__padding_y_compact, 0)"},clickbound:{height:R2,width:"100%",offset:{top:"".concat((parseInt(R2)-parseInt(w2))/2+1,"px"),left:"0"}}}}};function Yr(n){return n!=null&&Uc(n)==="object"&&n["@@functional/placeholder"]===!0}function np(n){return function e(t){return arguments.length===0||Yr(t)?e:n.apply(this,arguments)}}function rp(n){return function e(t,r){switch(arguments.length){case 0:return e;case 1:return Yr(t)?e:np(function(a){return n(t,a)});default:return Yr(t)&&Yr(r)?e:Yr(t)?np(function(a){return n(a,r)}):Yr(r)?np(function(a){return n(t,a)}):n(t,r)}}}function k2(n){return function e(t,r,a){switch(arguments.length){case 0:return e;case 1:return Yr(t)?e:rp(function(l,u){return n(t,l,u)});case 2:return Yr(t)&&Yr(r)?e:Yr(t)?rp(function(l,u){return n(l,r,u)}):Yr(r)?rp(function(l,u){return n(t,l,u)}):np(function(l){return n(t,r,l)});default:return Yr(t)&&Yr(r)&&Yr(a)?e:Yr(t)&&Yr(r)?rp(function(l,u){return n(l,u,a)}):Yr(t)&&Yr(a)?rp(function(l,u){return n(l,r,u)}):Yr(r)&&Yr(a)?rp(function(l,u){return n(t,l,u)}):Yr(t)?np(function(l){return n(l,r,a)}):Yr(r)?np(function(l){return n(t,l,a)}):Yr(a)?np(function(l){return n(t,r,l)}):n(t,r,a)}}}function A2(n){return Object.prototype.toString.call(n)==="[object Object]"}function Lw(n,e){return Object.prototype.hasOwnProperty.call(e,n)}var iW=k2(function(e,t,r){var a={},l;t=t||{},r=r||{};for(l in t)Lw(l,t)&&(a[l]=Lw(l,r)?e(l,t[l],r[l]):t[l]);for(l in r)Lw(l,r)&&!Lw(l,a)&&(a[l]=r[l]);return a}),oW=k2(function n(e,t,r){return iW(function(a,l,u){return A2(l)&&A2(u)?n(e,l,u):e(a,l,u)},t,r)}),aW=rp(function(e,t){return oW(function(r,a,l){return l},e,t)}),ka=aW,x2=on.colors,sW=x2.text.static_icons__primary_white.rgba,cm=x2.interactive,I2=cm.primary__resting.rgba,lW=cm.primary__hover.rgba,O2=cm.secondary__resting.rgba,N2=cm.secondary__link_hover.rgba,M2=cm.danger__resting.rgba,P2=cm.danger__hover.rgba,uW=on.shape.button.borderRadius,Uw=ka(Dw,{background:I2,typography:{color:sW},border:{type:"border",style:"solid",width:"1px",color:I2,radius:"var(--eds_button__radius, ".concat(uW,")")},states:{hover:{background:lW}}}),D2=ka(Uw,{background:O2,border:{color:O2},states:{hover:{background:N2,border:{color:N2}}}}),L2=ka(Uw,{background:M2,border:{color:M2},states:{hover:{background:P2,border:{color:P2}}}}),Hc=on.colors.interactive,U2=Hc.primary__resting.rgba,F2=Hc.primary__hover.rgba,cW=Hc.primary__hover_alt.rgba,$2=Hc.secondary__resting.rgba,H2=Hc.secondary__link_hover.rgba,dW=Hc.secondary__highlight.rgba,j2=Hc.danger__resting.rgba,z2=Hc.danger__hover.rgba,fW=Hc.danger__highlight.rgba,hW=on.shape.button.borderRadius,bk=ka(Dw,{typography:{color:U2},border:{type:"border",style:"solid",width:"1px",color:U2,radius:"var(--eds_button__radius, ".concat(hW,")")},states:{hover:{typography:{color:F2},background:cW,border:{style:"solid",type:"border",width:"1px",color:F2}},disabled:{background:"transparent"}}}),pW=ka(bk,{typography:{color:$2},border:{color:$2},states:{hover:{background:dW,typography:{color:H2},border:{color:H2}}}}),vW=ka(bk,{typography:{color:j2},border:{color:j2},states:{hover:{background:fW,typography:{color:z2},border:{color:z2}}}}),jc=on.colors.interactive,mW=jc.primary__resting.rgba,gW=jc.primary__hover.rgba,yW=jc.primary__hover_alt.rgba,_W=jc.secondary__resting.rgba,CW=jc.secondary__link_hover.rgba,EW=jc.secondary__highlight.rgba,wW=jc.danger__resting.rgba,bW=jc.danger__hover.rgba,SW=jc.danger__highlight.rgba,Sk=ka(Dw,{typography:{color:mW},states:{hover:{background:yW,typography:{color:gW}},disabled:{background:"transparent",border:{color:"transparent"}}}}),TW=ka(Sk,{typography:{color:_W},states:{hover:{background:EW,typography:{color:CW}}}}),RW=ka(Sk,{typography:{color:wW},states:{hover:{background:SW,typography:{color:bW}}}}),Yd=on.colors.interactive,kW=Yd.primary__resting.rgba,AW=Yd.primary__hover_alt.rgba,xW=Yd.secondary__resting.rgba,IW=Yd.secondary__link_hover.rgba,OW=Yd.secondary__highlight.rgba,NW=Yd.danger__resting.rgba,MW=Yd.danger__hover.rgba,PW=Yd.danger__highlight.rgba,B2=on.clickbounds,q2=B2.default__base,V2=B2.compact__standard,dm=on.shape,DW=on.interactions.focused.width,Tk=ka(Dw,{height:dm.icon_button.minHeight,width:dm.icon_button.minWidth,typography:{color:kW},border:{width:"0px",radius:"50%"},background:"transparent",spacings:{left:"0",right:"0"},clickbound:{width:q2,offset:{top:"0",left:"".concat((parseInt(q2)-parseInt(dm.icon_button.minWidth))/2,"px")}},states:{hover:{background:AW,border:{width:"0px",radius:"50%"}},disabled:{background:"transparent",border:{color:"transparent"}},focus:{outline:{offset:"-".concat(parseInt(DW),"px")}}},modes:{compact:{height:dm._modes.compact.icon_button.minHeight,width:dm._modes.compact.icon_button.minWidth,clickbound:{width:V2,offset:{top:"0",left:"".concat((parseInt(V2)-parseInt(dm._modes.compact.icon_button.minWidth))/2,"px")}}}}}),LW=ka(Tk,{typography:{color:xW},states:{hover:{background:OW,typography:{color:IW}}}}),UW=ka(Tk,{typography:{color:NW},states:{hover:{background:PW,typography:{color:MW}}}}),K2=on.clickbounds,G2=K2.default__base,W2=K2.compact__standard,S_=on.shape,Rk={height:S_.icon_button.minHeight,width:S_.icon_button.minWidth,border:{width:"0px",radius:"50%"},spacings:{left:"0",right:"0"},clickbound:{width:G2,offset:{top:"0",left:"".concat((parseInt(G2)-parseInt("40px"))/2,"px")}},states:{hover:{border:{width:"0px",radius:"50%"}}},modes:{compact:{height:S_._modes.compact.icon_button.minHeight,width:S_._modes.compact.icon_button.minWidth,clickbound:{width:W2,offset:{top:"0",left:"".concat((parseInt(W2)-parseInt(S_._modes.compact.icon_button.minWidth))/2,"px")}}}}},FW=ka(Uw,Rk),$W=ka(D2,Rk),HW=ka(L2,Rk),kk={primary:{contained:Uw,outlined:bk,ghost:Sk,ghost_icon:Tk,contained_icon:FW},secondary:{contained:D2,outlined:pW,ghost:TW,ghost_icon:LW,contained_icon:$W},danger:{contained:L2,outlined:vW,ghost:RW,ghost_icon:UW,contained_icon:HW}},Y2=function(e,t){U.useEffect(function(){var r=function(l){var u=l.key;switch(u){case e:t(l);break}};return document.addEventListener("keydown",r,!0),function(){document.removeEventListener("keydown",r,!0)}},[e,t])};function jW(n){if(Array.isArray(n))return n}function zW(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r,a,l,u,f=[],p=!0,m=!1;try{if(l=(t=t.call(n)).next,e===0){if(Object(t)!==t)return;p=!1}else for(;!(p=(r=l.call(t)).done)&&(f.push(r.value),f.length!==e);p=!0);}catch(y){m=!0,a=y}finally{try{if(!p&&t.return!=null&&(u=t.return(),Object(u)!==u))return}finally{if(m)throw a}}return f}}function Ak(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function Q2(n,e){if(n){if(typeof n=="string")return Ak(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ak(n,e)}}function BW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
338
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zc(n,e){return jW(n)||zW(n,e)||Q2(n,e)||BW()}var qW=function(e,t){var r=U.useState(e),a=zc(r,2),l=a[0],u=a[1],f=e||l;return U.useEffect(function(){l==null&&u("eds-".concat(t?t+"-":"").concat(Math.round(Math.random()*1e5)))},[l,t]),f},VW=typeof window<"u"?U.useLayoutEffect:U.useEffect,X2=function(e){var t=U.useState(null),r=zc(t,2),a=r[0],l=r[1];return U.useEffect(function(){e&&a===null&&l(!!e.closest("dialog"))},[e]),a};function Qr(n){return n!=null&&Uc(n)==="object"&&n["@@functional/placeholder"]===!0}function ip(n){return function e(t){return arguments.length===0||Qr(t)?e:n.apply(this,arguments)}}function op(n){return function e(t,r){switch(arguments.length){case 0:return e;case 1:return Qr(t)?e:ip(function(a){return n(t,a)});default:return Qr(t)&&Qr(r)?e:Qr(t)?ip(function(a){return n(a,r)}):Qr(r)?ip(function(a){return n(t,a)}):n(t,r)}}}function J2(n){return function e(t,r,a){switch(arguments.length){case 0:return e;case 1:return Qr(t)?e:op(function(l,u){return n(t,l,u)});case 2:return Qr(t)&&Qr(r)?e:Qr(t)?op(function(l,u){return n(l,r,u)}):Qr(r)?op(function(l,u){return n(t,l,u)}):ip(function(l){return n(t,r,l)});default:return Qr(t)&&Qr(r)&&Qr(a)?e:Qr(t)&&Qr(r)?op(function(l,u){return n(l,u,a)}):Qr(t)&&Qr(a)?op(function(l,u){return n(l,r,u)}):Qr(r)&&Qr(a)?op(function(l,u){return n(t,l,u)}):Qr(t)?ip(function(l){return n(l,r,a)}):Qr(r)?ip(function(l){return n(t,l,a)}):Qr(a)?ip(function(l){return n(t,r,l)}):n(t,r,a)}}}function Z2(n){return Object.prototype.toString.call(n)==="[object Object]"}function Fw(n,e){return Object.prototype.hasOwnProperty.call(e,n)}var KW=J2(function(e,t,r){var a={},l;t=t||{},r=r||{};for(l in t)Fw(l,t)&&(a[l]=Fw(l,r)?e(l,t[l],r[l]):t[l]);for(l in r)Fw(l,r)&&!Fw(l,a)&&(a[l]=r[l]);return a}),GW=J2(function n(e,t,r){return KW(function(a,l,u){return Z2(l)&&Z2(u)?n(e,l,u):e(a,l,u)},t,r)}),WW=op(function(e,t){return GW(function(r,a,l){return l},e,t)}),YW=WW,$w=function(e,t){return U.useCallback(function(){var r=e.density;return r==="compact"?YW(t,t.modes.compact):t},[e,t])},T_=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(a){return t.forEach(function(l){typeof l=="function"?l(a):l&&Uc(l)==="object"&&(l.current=a)})}},fm=function(e){if(e){var t=e.width,r=t===void 0?"":t,a=e.style,l=a===void 0?"":a,u=e.color,f=u===void 0?"":u;return r?"".concat(r," ").concat(l," ").concat(f):null}},Il=function(e){var t,r,a,l;if(!e)return pn({});switch(e.type){case"border":return pn({border:fm(e),borderRadius:e.radius});case"bordergroup":return pn({borderBottom:fm(e.bottom),borderTop:fm(e.top),borderLeft:fm(e.left),borderRight:fm(e.right),borderBottomLeftRadius:e==null||(t=e.left)===null||t===void 0?void 0:t.radius,borderTopLeftRadius:e==null||(r=e.left)===null||r===void 0?void 0:r.radius,borderBottomRightRadius:e==null||(a=e.right)===null||a===void 0?void 0:a.radius,borderTopRightRadius:e==null||(l=e.right)===null||l===void 0?void 0:l.radius});default:return pn({})}},QW=on.colors.interactive.focus.rgba,Bc=function(e){var t=e.color,r=t===void 0?QW:t,a=e.style,l=a===void 0?"dashed":a,u=e.width,f=u===void 0?"2px":u,p=e.offset,m=p===void 0?"0px":p,y=e.type,E={color:r,style:l,width:f,offset:m,type:y};return pn({outline:fm(E),outlineOffset:E.offset})},hm=function(e,t){if(!e)return"";var r=`
339
- margin: 0;
340
- color: `.concat(e.color,`;
341
- font-family: `).concat(e.fontFamily,`;
342
- font-size: `).concat(e.fontSize,`;
343
- font-weight: `).concat(e.fontWeight,`;
344
- line-height: `).concat(e.lineHeight,`;
345
- `);return e.fontStyle&&(r+=`
346
- font-style: `.concat(e.fontStyle,";")),e.letterSpacing&&(r+=`
347
- letter-spacing: `.concat(e.letterSpacing,";")),e.textTransform&&(r+=`
348
- text-transform: `.concat(e.textTransform,";")),e.textDecoration&&(r+=`
349
- text-decoration: `.concat(e.textDecoration,";")),e.textAlign&&(r+=`
350
- text-align: `.concat(e.textAlign,";")),e.fontFeature&&(r+=`
351
- font-feature-settings: `.concat(e.fontFeature,";")),t&&(r+=`
352
- cursor: pointer;`),r},pm=function(e){var t=e.left,r=e.right,a=e.top,l=e.bottom;return pn({paddingLeft:t,paddingTop:a,paddingRight:r,paddingBottom:l})},XW=Mt.span.withConfig({displayName:"InnerFullWidth__FullWidthCenterContent",componentId:"sc-qeawkb-0"})(["text-align:center;flex:1;"]),JW=Mt.span.withConfig({displayName:"InnerFullWidth__FullWidthInner",componentId:"sc-qeawkb-1"})(["height:100%;display:flex;align-items:center;> :is(svg,img){margin-top:var(--eds_button__margin_y,inherit);margin-bottom:var(--eds_button__margin_y,inherit);}> :is(svg,img):first-child{margin-right:var(--eds_button__fullwidth__icon__margin_x,8px);}> :is(svg,img):last-child{margin-left:var(--eds_button__fullwidth__icon__margin_x,8px);}> :is(svg,img):only-child{margin-left:auto;margin-right:auto;}> span:first-child{margin-left:var(--eds_button__fullwidth__margin_x,32px);}> span:last-child{margin-right:var(--eds_button__fullwidth__margin_x,32px);}> span:only-child{margin-right:0;margin-left:0;}"]),ZW=U.forwardRef(function(e,t){var r=e.children,a=U.Children.map(r,function(l){return Uc(l)!=="object"?le.jsx(XW,{children:l}):l});return le.jsx(JW,{ref:t,children:a})}),e9={density:"comfortable"},t9=U.createContext(e9),Hw=function(){return U.useContext(t9)},n9=["color","variant","children","disabled","href","tabIndex","fullWidth"],xk=function(e,t){switch(t){case"ghost":return e.ghost;case"ghost_icon":return e.ghost_icon;case"outlined":return e.outlined;case"contained_icon":return e.contained_icon;case"contained":default:return e.contained}},r9=function(e,t){switch(t){case"danger":return xk(kk.danger,e);case"secondary":return xk(kk.secondary,e);case"primary":default:return xk(kk.primary,e)}},i9=Mt.span.withConfig({displayName:"Button__Inner",componentId:"sc-1hs0myn-0"})(["display:grid;grid-gap:var(--eds_button__gap,8px);grid-auto-flow:column;align-items:center;height:100%;justify-content:center;& > :is(svg,img){margin-top:var(--eds_button__icon__margin_y,0);margin-bottom:var(--eds_button__icon__margin_y,0);}"]),o9=Mt.button.withConfig({displayName:"Button__ButtonBase",componentId:"sc-1hs0myn-1"})(function(n){var e,t,r,a=n.theme,l=a.states,u=a.clickbound,f=l.focus,p=l.hover,m=l.disabled;return pn(["box-sizing:border-box;margin:0;padding:0;text-decoration:none;position:relative;cursor:pointer;display:inline-block;background:",";height:",";width:",";svg{justify-self:center;}"," "," "," &::before{position:absolute;top:0;left:0;width:auto;min-height:auto;content:'';}&::after{position:absolute;top:-",";left:-",";width:",";height:",";content:'';}@media (hover:hover) and (pointer:fine){&:hover{background:",";color:",";",";}}&:focus{outline:none;}&[data-focus-visible-added]:focus{","}&:focus-visible{","}&::-moz-focus-inner{border:0;}&:disabled,&[aria-disabled='true']{cursor:not-allowed;background:",";",";",";@media (hover:hover) and (pointer:fine){&:hover{background:",";}}}"],a.background,a.height,a.width,pm(a.spacings),Il(a.border),hm(a.typography),u==null||(e=u.offset)===null||e===void 0?void 0:e.top,u==null||(t=u.offset)===null||t===void 0?void 0:t.left,u==null?void 0:u.width,u==null?void 0:u.height,p.background,(r=p.typography)===null||r===void 0?void 0:r.color,Il(p==null?void 0:p.border),Bc(f.outline),Bc(f.outline),m.background,Il(m.border),hm(m.typography),m.background)}),eL=U.forwardRef(function(e,t){var r=e.color,a=r===void 0?"primary":r,l=e.variant,u=l===void 0?"contained":l,f=e.children,p=e.disabled,m=p===void 0?!1:p,y=e.href,E=e.tabIndex,S=E===void 0?0:E,T=e.fullWidth,A=T===void 0?!1:T,I=Vn(e,n9),P=Hw(),D=P.density,L=$w({density:D},r9(u,a)),j=y&&!m?"a":I.as?I.as:"button",F=y||I.as?void 0:"button";S=m?-1:S;var V=ve({ref:t,as:j,href:y,type:F,disabled:m,tabIndex:S},I);return le.jsx(Mw,{theme:L,children:le.jsx(o9,ve(ve({},V),{},{children:A?le.jsx(ZW,{children:f}):le.jsx(i9,{children:f})}))})}),a9=on.shape.corners.borderRadius,s9={border:{type:"border",radius:a9}},l9=["children","vertical"],u9=s9.border,Qd=u9.radius,c9=Mt.div.withConfig({displayName:"ButtonGroup__ButtonGroupBase",componentId:"sc-1fn8jon-0"})(["display:inline-flex;> *{border-radius:0;@media (hover:hover) and (pointer:fine){&:hover{border-radius:0;}}}",""],function(n){var e=n.$vertical;return pn(e?["flex-direction:column;> :first-child{border-top-left-radius:",";border-top-right-radius:",";}> :last-child{border-bottom-left-radius:",";border-bottom-right-radius:",";}> :not(:last-child){border-bottom:none;}"]:["> :first-child{border-top-left-radius:",";border-bottom-left-radius:",";}> :last-child{border-top-right-radius:",";border-bottom-right-radius:",";}> :not(:last-child){border-right:none;}"],Qd,Qd,Qd,Qd)}),tL=U.forwardRef(function(e,t){var r=e.children,a=e.vertical,l=Vn(e,l9),u=ve({ref:t,$vertical:a},l);return le.jsx(c9,ve(ve({role:"group"},u),{},{children:r}))});function d9(n){if(Array.isArray(n))return Ak(n)}function f9(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function h9(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
353
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nL(n){return d9(n)||f9(n)||Q2(n)||h9()}var rL=on.colors,p9=rL.text.static_icons__primary_white.rgba,v9=rL.ui.background__overlay.rgba,m9=on.typography.ui,iL=on.spacings.comfortable,g9=iL.x_large,R_=iL.small,y9=on.shape.corners.borderRadius,qc={typography:ve(ve({},m9.tooltip),{},{color:p9}),background:v9,border:{type:"border",radius:y9},entities:{tooltip:{height:g9},arrow:{width:"6px",height:R_,spacings:{bottom:"-6px",top:"-6px",left:"-6px",right:"-6px"}}},spacings:{left:R_,right:R_,top:R_,bottom:R_}};const Xd=Math.min,ws=Math.max,jw=Math.round,zw=Math.floor,Jd=n=>({x:n,y:n}),_9={left:"right",right:"left",bottom:"top",top:"bottom"},C9={start:"end",end:"start"};function Ik(n,e,t){return ws(n,Xd(e,t))}function vm(n,e){return typeof n=="function"?n(e):n}function Zd(n){return n.split("-")[0]}function mm(n){return n.split("-")[1]}function oL(n){return n==="x"?"y":"x"}function Ok(n){return n==="y"?"height":"width"}function k_(n){return["top","bottom"].includes(Zd(n))?"y":"x"}function Nk(n){return oL(k_(n))}function E9(n,e,t){t===void 0&&(t=!1);const r=mm(n),a=Nk(n),l=Ok(a);let u=a==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[l]>e.floating[l]&&(u=Bw(u)),[u,Bw(u)]}function w9(n){const e=Bw(n);return[Mk(n),e,Mk(e)]}function Mk(n){return n.replace(/start|end/g,e=>C9[e])}function b9(n,e,t){const r=["left","right"],a=["right","left"],l=["top","bottom"],u=["bottom","top"];switch(n){case"top":case"bottom":return t?e?a:r:e?r:a;case"left":case"right":return e?l:u;default:return[]}}function S9(n,e,t,r){const a=mm(n);let l=b9(Zd(n),t==="start",r);return a&&(l=l.map(u=>u+"-"+a),e&&(l=l.concat(l.map(Mk)))),l}function Bw(n){return n.replace(/left|right|bottom|top/g,e=>_9[e])}function T9(n){return{top:0,right:0,bottom:0,left:0,...n}}function aL(n){return typeof n!="number"?T9(n):{top:n,right:n,bottom:n,left:n}}function qw(n){return{...n,top:n.y,left:n.x,right:n.x+n.width,bottom:n.y+n.height}}function ef(n){return sL(n)?(n.nodeName||"").toLowerCase():"#document"}function bs(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function Vc(n){var e;return(e=(sL(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function sL(n){return n instanceof Node||n instanceof bs(n).Node}function $r(n){return n instanceof Element||n instanceof bs(n).Element}function Ks(n){return n instanceof HTMLElement||n instanceof bs(n).HTMLElement}function Pk(n){return typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof bs(n).ShadowRoot}function A_(n){const{overflow:e,overflowX:t,overflowY:r,display:a}=Ss(n);return/auto|scroll|overlay|hidden|clip/.test(e+r+t)&&!["inline","contents"].includes(a)}function R9(n){return["table","td","th"].includes(ef(n))}function Dk(n){const e=Lk(),t=Ss(n);return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(t.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(t.contain||"").includes(r))}function k9(n){let e=ap(n);for(;Ks(e)&&!x_(e);){if(Dk(e))return e;e=ap(e)}return null}function Lk(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function x_(n){return["html","body","#document"].includes(ef(n))}function Ss(n){return bs(n).getComputedStyle(n)}function Vw(n){return $r(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function ap(n){if(ef(n)==="html")return n;const e=n.assignedSlot||n.parentNode||Pk(n)&&n.host||Vc(n);return Pk(e)?e.host:e}function lL(n){const e=ap(n);return x_(e)?n.ownerDocument?n.ownerDocument.body:n.body:Ks(e)&&A_(e)?e:lL(e)}function tf(n,e){var t;e===void 0&&(e=[]);const r=lL(n),a=r===((t=n.ownerDocument)==null?void 0:t.body),l=bs(r);return a?e.concat(l,l.visualViewport||[],A_(r)?r:[],l.frameElement?tf(l.frameElement):[]):e.concat(r,tf(r))}function uL(n){let e=n.activeElement;for(;((t=e)==null||(r=t.shadowRoot)==null?void 0:r.activeElement)!=null;){var t,r;e=e.shadowRoot.activeElement}return e}function gm(n,e){if(!n||!e)return!1;const t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&Pk(t)){let r=e;for(;r;){if(n===r)return!0;r=r.parentNode||r.host}}return!1}function A9(){const n=navigator.userAgentData;return n!=null&&n.platform?n.platform:navigator.platform}function x9(){const n=navigator.userAgentData;return n&&Array.isArray(n.brands)?n.brands.map(e=>{let{brand:t,version:r}=e;return t+"/"+r}).join(" "):navigator.userAgent}function I9(n){if(n.mozInputSource===0&&n.isTrusted)return!0;const e=/Android/i;return(e.test(A9())||e.test(x9()))&&n.pointerType?n.type==="click"&&n.buttons===1:n.detail===0&&!n.pointerType}function O9(n){return n.width===0&&n.height===0||n.width===1&&n.height===1&&n.pressure===0&&n.detail===0&&n.pointerType!=="mouse"||n.width<1&&n.height<1&&n.pressure===0&&n.detail===0}function N9(){return/apple/i.test(navigator.vendor)}function cL(n,e){const t=["mouse","pen"];return e||t.push("",void 0),t.includes(n)}function M9(n){return"nativeEvent"in n}function P9(n){return n.matches("html,body")}function Ru(n){return(n==null?void 0:n.ownerDocument)||document}function Kw(n,e){if(e==null)return!1;if("composedPath"in n)return n.composedPath().includes(e);const t=n;return t.target!=null&&e.contains(t.target)}function D9(n){return"composedPath"in n?n.composedPath()[0]:n.target}function dL(n,e,t){let{reference:r,floating:a}=n;const l=k_(e),u=Nk(e),f=Ok(u),p=Zd(e),m=l==="y",y=r.x+r.width/2-a.width/2,E=r.y+r.height/2-a.height/2,S=r[f]/2-a[f]/2;let T;switch(p){case"top":T={x:y,y:r.y-a.height};break;case"bottom":T={x:y,y:r.y+r.height};break;case"right":T={x:r.x+r.width,y:E};break;case"left":T={x:r.x-a.width,y:E};break;default:T={x:r.x,y:r.y}}switch(mm(e)){case"start":T[u]-=S*(t&&m?-1:1);break;case"end":T[u]+=S*(t&&m?-1:1);break}return T}const L9=async(n,e,t)=>{const{placement:r="bottom",strategy:a="absolute",middleware:l=[],platform:u}=t,f=l.filter(Boolean),p=await(u.isRTL==null?void 0:u.isRTL(e));let m=await u.getElementRects({reference:n,floating:e,strategy:a}),{x:y,y:E}=dL(m,r,p),S=r,T={},A=0;for(let I=0;I<f.length;I++){const{name:P,fn:D}=f[I],{x:L,y:j,data:F,reset:V}=await D({x:y,y:E,initialPlacement:r,placement:S,strategy:a,middlewareData:T,rects:m,platform:u,elements:{reference:n,floating:e}});if(y=L??y,E=j??E,T={...T,[P]:{...T[P],...F}},V&&A<=50){A++,typeof V=="object"&&(V.placement&&(S=V.placement),V.rects&&(m=V.rects===!0?await u.getElementRects({reference:n,floating:e,strategy:a}):V.rects),{x:y,y:E}=dL(m,S,p)),I=-1;continue}}return{x:y,y:E,placement:S,strategy:a,middlewareData:T}};async function Uk(n,e){var t;e===void 0&&(e={});const{x:r,y:a,platform:l,rects:u,elements:f,strategy:p}=n,{boundary:m="clippingAncestors",rootBoundary:y="viewport",elementContext:E="floating",altBoundary:S=!1,padding:T=0}=vm(e,n),A=aL(T),P=f[S?E==="floating"?"reference":"floating":E],D=qw(await l.getClippingRect({element:(t=await(l.isElement==null?void 0:l.isElement(P)))==null||t?P:P.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:m,rootBoundary:y,strategy:p})),L=E==="floating"?{...u.floating,x:r,y:a}:u.reference,j=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),F=await(l.isElement==null?void 0:l.isElement(j))?await(l.getScale==null?void 0:l.getScale(j))||{x:1,y:1}:{x:1,y:1},V=qw(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:L,offsetParent:j,strategy:p}):L);return{top:(D.top-V.top+A.top)/F.y,bottom:(V.bottom-D.bottom+A.bottom)/F.y,left:(D.left-V.left+A.left)/F.x,right:(V.right-D.right+A.right)/F.x}}const fL=n=>({name:"arrow",options:n,async fn(e){const{x:t,y:r,placement:a,rects:l,platform:u,elements:f}=e,{element:p,padding:m=0}=vm(n,e)||{};if(p==null)return{};const y=aL(m),E={x:t,y:r},S=Nk(a),T=Ok(S),A=await u.getDimensions(p),I=S==="y",P=I?"top":"left",D=I?"bottom":"right",L=I?"clientHeight":"clientWidth",j=l.reference[T]+l.reference[S]-E[S]-l.floating[T],F=E[S]-l.reference[S],V=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p));let Y=V?V[L]:0;(!Y||!await(u.isElement==null?void 0:u.isElement(V)))&&(Y=f.floating[L]||l.floating[T]);const Z=j/2-F/2,Re=Y/2-A[T]/2-1,Ge=Xd(y[P],Re),at=Xd(y[D],Re),Pe=Ge,Be=Y-A[T]-at,te=Y/2-A[T]/2+Z,ee=Ik(Pe,te,Be),me=mm(a)!=null&&te!=ee&&l.reference[T]/2-(te<Pe?Ge:at)-A[T]/2<0?te<Pe?Pe-te:Be-te:0;return{[S]:E[S]-me,data:{[S]:ee,centerOffset:te-ee+me}}}}),hL=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(e){var t;const{placement:r,middlewareData:a,rects:l,initialPlacement:u,platform:f,elements:p}=e,{mainAxis:m=!0,crossAxis:y=!0,fallbackPlacements:E,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:A=!0,...I}=vm(n,e),P=Zd(r),D=Zd(u)===u,L=await(f.isRTL==null?void 0:f.isRTL(p.floating)),j=E||(D||!A?[Bw(u)]:w9(u));!E&&T!=="none"&&j.push(...S9(u,A,T,L));const F=[u,...j],V=await Uk(e,I),Y=[];let Z=((t=a.flip)==null?void 0:t.overflows)||[];if(m&&Y.push(V[P]),y){const Pe=E9(r,l,L);Y.push(V[Pe[0]],V[Pe[1]])}if(Z=[...Z,{placement:r,overflows:Y}],!Y.every(Pe=>Pe<=0)){var Re,Ge;const Pe=(((Re=a.flip)==null?void 0:Re.index)||0)+1,Be=F[Pe];if(Be)return{data:{index:Pe,overflows:Z},reset:{placement:Be}};let te=(Ge=Z.filter(ee=>ee.overflows[0]<=0).sort((ee,ye)=>ee.overflows[1]-ye.overflows[1])[0])==null?void 0:Ge.placement;if(!te)switch(S){case"bestFit":{var at;const ee=(at=Z.map(ye=>[ye.placement,ye.overflows.filter(me=>me>0).reduce((me,he)=>me+he,0)]).sort((ye,me)=>ye[1]-me[1])[0])==null?void 0:at[0];ee&&(te=ee);break}case"initialPlacement":te=u;break}if(r!==te)return{reset:{placement:te}}}return{}}}};async function U9(n,e){const{placement:t,platform:r,elements:a}=n,l=await(r.isRTL==null?void 0:r.isRTL(a.floating)),u=Zd(t),f=mm(t),p=k_(t)==="y",m=["left","top"].includes(u)?-1:1,y=l&&p?-1:1,E=vm(e,n);let{mainAxis:S,crossAxis:T,alignmentAxis:A}=typeof E=="number"?{mainAxis:E,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...E};return f&&typeof A=="number"&&(T=f==="end"?A*-1:A),p?{x:T*y,y:S*m}:{x:S*m,y:T*y}}const pL=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(e){const{x:t,y:r}=e,a=await U9(e,n);return{x:t+a.x,y:r+a.y,data:a}}}},vL=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(e){const{x:t,y:r,placement:a}=e,{mainAxis:l=!0,crossAxis:u=!1,limiter:f={fn:P=>{let{x:D,y:L}=P;return{x:D,y:L}}},...p}=vm(n,e),m={x:t,y:r},y=await Uk(e,p),E=k_(Zd(a)),S=oL(E);let T=m[S],A=m[E];if(l){const P=S==="y"?"top":"left",D=S==="y"?"bottom":"right",L=T+y[P],j=T-y[D];T=Ik(L,T,j)}if(u){const P=E==="y"?"top":"left",D=E==="y"?"bottom":"right",L=A+y[P],j=A-y[D];A=Ik(L,A,j)}const I=f.fn({...e,[S]:T,[E]:A});return{...I,data:{x:I.x-t,y:I.y-r}}}}},F9=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(e){const{placement:t,rects:r,platform:a,elements:l}=e,{apply:u=()=>{},...f}=vm(n,e),p=await Uk(e,f),m=Zd(t),y=mm(t),E=k_(t)==="y",{width:S,height:T}=r.floating;let A,I;m==="top"||m==="bottom"?(A=m,I=y===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(I=m,A=y==="end"?"top":"bottom");const P=T-p[A],D=S-p[I],L=!e.middlewareData.shift;let j=P,F=D;if(E){const Y=S-p.left-p.right;F=y||L?Xd(D,Y):Y}else{const Y=T-p.top-p.bottom;j=y||L?Xd(P,Y):Y}if(L&&!y){const Y=ws(p.left,0),Z=ws(p.right,0),Re=ws(p.top,0),Ge=ws(p.bottom,0);E?F=S-2*(Y!==0||Z!==0?Y+Z:ws(p.left,p.right)):j=T-2*(Re!==0||Ge!==0?Re+Ge:ws(p.top,p.bottom))}await u({...e,availableWidth:F,availableHeight:j});const V=await a.getDimensions(l.floating);return S!==V.width||T!==V.height?{reset:{rects:!0}}:{}}}};function mL(n){const e=Ss(n);let t=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const a=Ks(n),l=a?n.offsetWidth:t,u=a?n.offsetHeight:r,f=jw(t)!==l||jw(r)!==u;return f&&(t=l,r=u),{width:t,height:r,$:f}}function Fk(n){return $r(n)?n:n.contextElement}function ym(n){const e=Fk(n);if(!Ks(e))return Jd(1);const t=e.getBoundingClientRect(),{width:r,height:a,$:l}=mL(e);let u=(l?jw(t.width):t.width)/r,f=(l?jw(t.height):t.height)/a;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const $9=Jd(0);function gL(n){const e=bs(n);return!Lk()||!e.visualViewport?$9:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function H9(n,e,t){return e===void 0&&(e=!1),!t||e&&t!==bs(n)?!1:e}function sp(n,e,t,r){e===void 0&&(e=!1),t===void 0&&(t=!1);const a=n.getBoundingClientRect(),l=Fk(n);let u=Jd(1);e&&(r?$r(r)&&(u=ym(r)):u=ym(n));const f=H9(l,t,r)?gL(l):Jd(0);let p=(a.left+f.x)/u.x,m=(a.top+f.y)/u.y,y=a.width/u.x,E=a.height/u.y;if(l){const S=bs(l),T=r&&$r(r)?bs(r):r;let A=S.frameElement;for(;A&&r&&T!==S;){const I=ym(A),P=A.getBoundingClientRect(),D=Ss(A),L=P.left+(A.clientLeft+parseFloat(D.paddingLeft))*I.x,j=P.top+(A.clientTop+parseFloat(D.paddingTop))*I.y;p*=I.x,m*=I.y,y*=I.x,E*=I.y,p+=L,m+=j,A=bs(A).frameElement}}return qw({width:y,height:E,x:p,y:m})}function j9(n){let{rect:e,offsetParent:t,strategy:r}=n;const a=Ks(t),l=Vc(t);if(t===l)return e;let u={scrollLeft:0,scrollTop:0},f=Jd(1);const p=Jd(0);if((a||!a&&r!=="fixed")&&((ef(t)!=="body"||A_(l))&&(u=Vw(t)),Ks(t))){const m=sp(t);f=ym(t),p.x=m.x+t.clientLeft,p.y=m.y+t.clientTop}return{width:e.width*f.x,height:e.height*f.y,x:e.x*f.x-u.scrollLeft*f.x+p.x,y:e.y*f.y-u.scrollTop*f.y+p.y}}function z9(n){return Array.from(n.getClientRects())}function yL(n){return sp(Vc(n)).left+Vw(n).scrollLeft}function B9(n){const e=Vc(n),t=Vw(n),r=n.ownerDocument.body,a=ws(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),l=ws(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let u=-t.scrollLeft+yL(n);const f=-t.scrollTop;return Ss(r).direction==="rtl"&&(u+=ws(e.clientWidth,r.clientWidth)-a),{width:a,height:l,x:u,y:f}}function q9(n,e){const t=bs(n),r=Vc(n),a=t.visualViewport;let l=r.clientWidth,u=r.clientHeight,f=0,p=0;if(a){l=a.width,u=a.height;const m=Lk();(!m||m&&e==="fixed")&&(f=a.offsetLeft,p=a.offsetTop)}return{width:l,height:u,x:f,y:p}}function V9(n,e){const t=sp(n,!0,e==="fixed"),r=t.top+n.clientTop,a=t.left+n.clientLeft,l=Ks(n)?ym(n):Jd(1),u=n.clientWidth*l.x,f=n.clientHeight*l.y,p=a*l.x,m=r*l.y;return{width:u,height:f,x:p,y:m}}function _L(n,e,t){let r;if(e==="viewport")r=q9(n,t);else if(e==="document")r=B9(Vc(n));else if($r(e))r=V9(e,t);else{const a=gL(n);r={...e,x:e.x-a.x,y:e.y-a.y}}return qw(r)}function CL(n,e){const t=ap(n);return t===e||!$r(t)||x_(t)?!1:Ss(t).position==="fixed"||CL(t,e)}function K9(n,e){const t=e.get(n);if(t)return t;let r=tf(n).filter(f=>$r(f)&&ef(f)!=="body"),a=null;const l=Ss(n).position==="fixed";let u=l?ap(n):n;for(;$r(u)&&!x_(u);){const f=Ss(u),p=Dk(u);!p&&f.position==="fixed"&&(a=null),(l?!p&&!a:!p&&f.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||A_(u)&&!p&&CL(n,u))?r=r.filter(y=>y!==u):a=f,u=ap(u)}return e.set(n,r),r}function G9(n){let{element:e,boundary:t,rootBoundary:r,strategy:a}=n;const u=[...t==="clippingAncestors"?K9(e,this._c):[].concat(t),r],f=u[0],p=u.reduce((m,y)=>{const E=_L(e,y,a);return m.top=ws(E.top,m.top),m.right=Xd(E.right,m.right),m.bottom=Xd(E.bottom,m.bottom),m.left=ws(E.left,m.left),m},_L(e,f,a));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function W9(n){return mL(n)}function Y9(n,e,t){const r=Ks(e),a=Vc(e),l=t==="fixed",u=sp(n,!0,l,e);let f={scrollLeft:0,scrollTop:0};const p=Jd(0);if(r||!r&&!l)if((ef(e)!=="body"||A_(a))&&(f=Vw(e)),r){const m=sp(e,!0,l,e);p.x=m.x+e.clientLeft,p.y=m.y+e.clientTop}else a&&(p.x=yL(a));return{x:u.left+f.scrollLeft-p.x,y:u.top+f.scrollTop-p.y,width:u.width,height:u.height}}function EL(n,e){return!Ks(n)||Ss(n).position==="fixed"?null:e?e(n):n.offsetParent}function wL(n,e){const t=bs(n);if(!Ks(n))return t;let r=EL(n,e);for(;r&&R9(r)&&Ss(r).position==="static";)r=EL(r,e);return r&&(ef(r)==="html"||ef(r)==="body"&&Ss(r).position==="static"&&!Dk(r))?t:r||k9(n)||t}const Q9=async function(n){let{reference:e,floating:t,strategy:r}=n;const a=this.getOffsetParent||wL,l=this.getDimensions;return{reference:Y9(e,await a(t),r),floating:{x:0,y:0,...await l(t)}}};function X9(n){return Ss(n).direction==="rtl"}const J9={convertOffsetParentRelativeRectToViewportRelativeRect:j9,getDocumentElement:Vc,getClippingRect:G9,getOffsetParent:wL,getElementRects:Q9,getClientRects:z9,getDimensions:W9,getScale:ym,isElement:$r,isRTL:X9};function Z9(n,e){let t=null,r;const a=Vc(n);function l(){clearTimeout(r),t&&t.disconnect(),t=null}function u(f,p){f===void 0&&(f=!1),p===void 0&&(p=1),l();const{left:m,top:y,width:E,height:S}=n.getBoundingClientRect();if(f||e(),!E||!S)return;const T=zw(y),A=zw(a.clientWidth-(m+E)),I=zw(a.clientHeight-(y+S)),P=zw(m),L={rootMargin:-T+"px "+-A+"px "+-I+"px "+-P+"px",threshold:ws(0,Xd(1,p))||1};let j=!0;function F(V){const Y=V[0].intersectionRatio;if(Y!==p){if(!j)return u();Y?u(!1,Y):r=setTimeout(()=>{u(!1,1e-7)},100)}j=!1}try{t=new IntersectionObserver(F,{...L,root:a.ownerDocument})}catch{t=new IntersectionObserver(F,L)}t.observe(n)}return u(!0),l}function bL(n,e,t,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:p=!1}=r,m=Fk(n),y=a||l?[...m?tf(m):[],...tf(e)]:[];y.forEach(D=>{a&&D.addEventListener("scroll",t,{passive:!0}),l&&D.addEventListener("resize",t)});const E=m&&f?Z9(m,t):null;let S=-1,T=null;u&&(T=new ResizeObserver(D=>{let[L]=D;L&&L.target===m&&T&&(T.unobserve(e),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{T&&T.observe(e)})),t()}),m&&!p&&T.observe(m),T.observe(e));let A,I=p?sp(n):null;p&&P();function P(){const D=sp(n);I&&(D.x!==I.x||D.y!==I.y||D.width!==I.width||D.height!==I.height)&&t(),I=D,A=requestAnimationFrame(P)}return t(),()=>{y.forEach(D=>{a&&D.removeEventListener("scroll",t),l&&D.removeEventListener("resize",t)}),E&&E(),T&&T.disconnect(),T=null,p&&cancelAnimationFrame(A)}}const e7=(n,e,t)=>{const r=new Map,a={platform:J9,...t},l={...a.platform,_c:r};return L9(n,e,{...a,platform:l})},t7=n=>{function e(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:n,fn(t){const{element:r,padding:a}=typeof n=="function"?n(t):n;return r&&e(r)?r.current!=null?fL({element:r.current,padding:a}).fn(t):{}:r?fL({element:r,padding:a}).fn(t):{}}}};var Gw=typeof document<"u"?U.useLayoutEffect:U.useEffect;function Ww(n,e){if(n===e)return!0;if(typeof n!=typeof e)return!1;if(typeof n=="function"&&n.toString()===e.toString())return!0;let t,r,a;if(n&&e&&typeof n=="object"){if(Array.isArray(n)){if(t=n.length,t!=e.length)return!1;for(r=t;r--!==0;)if(!Ww(n[r],e[r]))return!1;return!0}if(a=Object.keys(n),t=a.length,t!==Object.keys(e).length)return!1;for(r=t;r--!==0;)if(!{}.hasOwnProperty.call(e,a[r]))return!1;for(r=t;r--!==0;){const l=a[r];if(!(l==="_owner"&&n.$$typeof)&&!Ww(n[l],e[l]))return!1}return!0}return n!==n&&e!==e}function SL(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function TL(n,e){const t=SL(n);return Math.round(e*t)/t}function RL(n){const e=U.useRef(n);return Gw(()=>{e.current=n}),e}function n7(n){n===void 0&&(n={});const{placement:e="bottom",strategy:t="absolute",middleware:r=[],platform:a,elements:{reference:l,floating:u}={},transform:f=!0,whileElementsMounted:p,open:m}=n,[y,E]=U.useState({x:0,y:0,strategy:t,placement:e,middlewareData:{},isPositioned:!1}),[S,T]=U.useState(r);Ww(S,r)||T(r);const[A,I]=U.useState(null),[P,D]=U.useState(null),L=U.useCallback(me=>{me!=Y.current&&(Y.current=me,I(me))},[I]),j=U.useCallback(me=>{me!==Z.current&&(Z.current=me,D(me))},[D]),F=l||A,V=u||P,Y=U.useRef(null),Z=U.useRef(null),Re=U.useRef(y),Ge=RL(p),at=RL(a),Pe=U.useCallback(()=>{if(!Y.current||!Z.current)return;const me={placement:e,strategy:t,middleware:S};at.current&&(me.platform=at.current),e7(Y.current,Z.current,me).then(he=>{const G={...he,isPositioned:!0};Be.current&&!Ww(Re.current,G)&&(Re.current=G,cR.flushSync(()=>{E(G)}))})},[S,e,t,at]);Gw(()=>{m===!1&&Re.current.isPositioned&&(Re.current.isPositioned=!1,E(me=>({...me,isPositioned:!1})))},[m]);const Be=U.useRef(!1);Gw(()=>(Be.current=!0,()=>{Be.current=!1}),[]),Gw(()=>{if(F&&(Y.current=F),V&&(Z.current=V),F&&V){if(Ge.current)return Ge.current(F,V,Pe);Pe()}},[F,V,Pe,Ge]);const te=U.useMemo(()=>({reference:Y,floating:Z,setReference:L,setFloating:j}),[L,j]),ee=U.useMemo(()=>({reference:F,floating:V}),[F,V]),ye=U.useMemo(()=>{const me={position:t,left:0,top:0};if(!ee.floating)return me;const he=TL(ee.floating,y.x),G=TL(ee.floating,y.y);return f?{...me,transform:"translate("+he+"px, "+G+"px)",...SL(ee.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:he,top:G}},[t,f,ee.floating,y.x,y.y]);return U.useMemo(()=>({...y,update:Pe,refs:te,elements:ee,floatingStyles:ye}),[y,Pe,te,ee,ye])}/*!
354
- * tabbable 6.2.0
355
- * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
356
- */var r7=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],$k=r7.join(","),kL=typeof Element>"u",I_=kL?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Yw=!kL&&Element.prototype.getRootNode?function(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}:function(n){return n==null?void 0:n.ownerDocument},Qw=function n(e,t){var r;t===void 0&&(t=!0);var a=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),l=a===""||a==="true",u=l||t&&e&&n(e.parentNode);return u},i7=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},o7=function(e,t,r){if(Qw(e))return[];var a=Array.prototype.slice.apply(e.querySelectorAll($k));return t&&I_.call(e,$k)&&a.unshift(e),a=a.filter(r),a},a7=function n(e,t,r){for(var a=[],l=Array.from(e);l.length;){var u=l.shift();if(!Qw(u,!1))if(u.tagName==="SLOT"){var f=u.assignedElements(),p=f.length?f:u.children,m=n(p,!0,r);r.flatten?a.push.apply(a,m):a.push({scopeParent:u,candidates:m})}else{var y=I_.call(u,$k);y&&r.filter(u)&&(t||!e.includes(u))&&a.push(u);var E=u.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(u),S=!Qw(E,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(u));if(E&&S){var T=n(E===!0?u.children:E.children,!0,r);r.flatten?a.push.apply(a,T):a.push({scopeParent:u,candidates:T})}else l.unshift.apply(l,u.children)}}return a},AL=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},xL=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||i7(e))&&!AL(e)?0:e.tabIndex},s7=function(e,t){var r=xL(e);return r<0&&t&&!AL(e)?0:r},l7=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},IL=function(e){return e.tagName==="INPUT"},u7=function(e){return IL(e)&&e.type==="hidden"},c7=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},d7=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},f7=function(e){if(!e.name)return!0;var t=e.form||Yw(e),r=function(f){return t.querySelectorAll('input[type="radio"][name="'+f+'"]')},a;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")a=r(window.CSS.escape(e.name));else try{a=r(e.name)}catch(u){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",u.message),!1}var l=d7(a,e.form);return!l||l===e},h7=function(e){return IL(e)&&e.type==="radio"},p7=function(e){return h7(e)&&!f7(e)},v7=function(e){var t,r=e&&Yw(e),a=(t=r)===null||t===void 0?void 0:t.host,l=!1;if(r&&r!==e){var u,f,p;for(l=!!((u=a)!==null&&u!==void 0&&(f=u.ownerDocument)!==null&&f!==void 0&&f.contains(a)||e!=null&&(p=e.ownerDocument)!==null&&p!==void 0&&p.contains(e));!l&&a;){var m,y,E;r=Yw(a),a=(m=r)===null||m===void 0?void 0:m.host,l=!!((y=a)!==null&&y!==void 0&&(E=y.ownerDocument)!==null&&E!==void 0&&E.contains(a))}}return l},OL=function(e){var t=e.getBoundingClientRect(),r=t.width,a=t.height;return r===0&&a===0},m7=function(e,t){var r=t.displayCheck,a=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var l=I_.call(e,"details>summary:first-of-type"),u=l?e.parentElement:e;if(I_.call(u,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof a=="function"){for(var f=e;e;){var p=e.parentElement,m=Yw(e);if(p&&!p.shadowRoot&&a(p)===!0)return OL(e);e.assignedSlot?e=e.assignedSlot:!p&&m!==e.ownerDocument?e=m.host:e=p}e=f}if(v7(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return OL(e);return!1},g7=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var r=0;r<t.children.length;r++){var a=t.children.item(r);if(a.tagName==="LEGEND")return I_.call(t,"fieldset[disabled] *")?!0:!a.contains(e)}return!0}t=t.parentElement}return!1},y7=function(e,t){return!(t.disabled||Qw(t)||u7(t)||m7(t,e)||c7(t)||g7(t))},NL=function(e,t){return!(p7(t)||xL(t)<0||!y7(e,t))},_7=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},C7=function n(e){var t=[],r=[];return e.forEach(function(a,l){var u=!!a.scopeParent,f=u?a.scopeParent:a,p=s7(f,u),m=u?n(a.candidates):f;p===0?u?t.push.apply(t,m):t.push(f):r.push({documentOrder:l,tabIndex:p,item:a,isScope:u,content:m})}),r.sort(l7).reduce(function(a,l){return l.isScope?a.push.apply(a,l.content):a.push(l.content),a},[]).concat(t)},ML=function(e,t){t=t||{};var r;return t.getShadowRoot?r=a7([e],t.includeContainer,{filter:NL.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:_7}):r=o7(e,t.includeContainer,NL.bind(null,t)),C7(r)},nf=typeof document<"u"?U.useLayoutEffect:U.useEffect;function Hk(){return Hk=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Hk.apply(this,arguments)}let jk=!1,E7=0;const PL=()=>"floating-ui-"+E7++;function w7(){const[n,e]=U.useState(()=>jk?PL():void 0);return nf(()=>{n==null&&e(PL())},[]),U.useEffect(()=>{jk||(jk=!0)},[]),n}const zk=aR["useId".toString()]||w7;function b7(){const n=new Map;return{emit(e,t){var r;(r=n.get(e))==null||r.forEach(a=>a(t))},on(e,t){n.set(e,[...n.get(e)||[],t])},off(e,t){var r;n.set(e,((r=n.get(e))==null?void 0:r.filter(a=>a!==t))||[])}}}const S7=U.createContext(null),T7=U.createContext(null),DL=()=>{var n;return((n=U.useContext(S7))==null?void 0:n.id)||null},Bk=()=>U.useContext(T7);function O_(n){return"data-floating-ui-"+n}function LL(n){const e=U.useRef(n);return nf(()=>{e.current=n}),e}const UL=O_("safe-polygon");function qk(n,e,t){return t&&!cL(t)?0:typeof n=="number"?n:n==null?void 0:n[e]}function R7(n,e){e===void 0&&(e={});const{open:t,onOpenChange:r,dataRef:a,events:l,elements:{domReference:u,floating:f},refs:p}=n,{enabled:m=!0,delay:y=0,handleClose:E=null,mouseOnly:S=!1,restMs:T=0,move:A=!0}=e,I=Bk(),P=DL(),D=LL(E),L=LL(y),j=U.useRef(),F=U.useRef(),V=U.useRef(),Y=U.useRef(),Z=U.useRef(!0),Re=U.useRef(!1),Ge=U.useRef(()=>{}),at=U.useCallback(()=>{var ee;const ye=(ee=a.current.openEvent)==null?void 0:ee.type;return(ye==null?void 0:ye.includes("mouse"))&&ye!=="mousedown"},[a]);U.useEffect(()=>{if(!m)return;function ee(){clearTimeout(F.current),clearTimeout(Y.current),Z.current=!0}return l.on("dismiss",ee),()=>{l.off("dismiss",ee)}},[m,l]),U.useEffect(()=>{if(!m||!D.current||!t)return;function ee(me){at()&&r(!1,me)}const ye=Ru(f).documentElement;return ye.addEventListener("mouseleave",ee),()=>{ye.removeEventListener("mouseleave",ee)}},[f,t,r,m,D,a,at]);const Pe=U.useCallback(function(ee,ye){ye===void 0&&(ye=!0);const me=qk(L.current,"close",j.current);me&&!V.current?(clearTimeout(F.current),F.current=setTimeout(()=>r(!1,ee),me)):ye&&(clearTimeout(F.current),r(!1,ee))},[L,r]),Be=U.useCallback(()=>{Ge.current(),V.current=void 0},[]),te=U.useCallback(()=>{if(Re.current){const ee=Ru(p.floating.current).body;ee.style.pointerEvents="",ee.removeAttribute(UL),Re.current=!1}},[p]);return U.useEffect(()=>{if(!m)return;function ee(){return a.current.openEvent?["click","mousedown"].includes(a.current.openEvent.type):!1}function ye(G){if(clearTimeout(F.current),Z.current=!1,S&&!cL(j.current)||T>0&&qk(L.current,"open")===0)return;const ge=qk(L.current,"open",j.current);ge?F.current=setTimeout(()=>{r(!0,G)},ge):r(!0,G)}function me(G){if(ee())return;Ge.current();const ge=Ru(f);if(clearTimeout(Y.current),D.current){t||clearTimeout(F.current),V.current=D.current({...n,tree:I,x:G.clientX,y:G.clientY,onClose(){te(),Be(),Pe(G)}});const ne=V.current;ge.addEventListener("mousemove",ne),Ge.current=()=>{ge.removeEventListener("mousemove",ne)};return}(j.current==="touch"?!gm(f,G.relatedTarget):!0)&&Pe(G)}function he(G){ee()||D.current==null||D.current({...n,tree:I,x:G.clientX,y:G.clientY,onClose(){te(),Be(),Pe(G)}})(G)}if($r(u)){const G=u;return t&&G.addEventListener("mouseleave",he),f==null||f.addEventListener("mouseleave",he),A&&G.addEventListener("mousemove",ye,{once:!0}),G.addEventListener("mouseenter",ye),G.addEventListener("mouseleave",me),()=>{t&&G.removeEventListener("mouseleave",he),f==null||f.removeEventListener("mouseleave",he),A&&G.removeEventListener("mousemove",ye),G.removeEventListener("mouseenter",ye),G.removeEventListener("mouseleave",me)}}},[u,f,m,n,S,T,A,Pe,Be,te,r,t,I,L,D,a]),nf(()=>{var ee;if(m&&t&&(ee=D.current)!=null&&ee.__options.blockPointerEvents&&at()){const he=Ru(f).body;if(he.setAttribute(UL,""),he.style.pointerEvents="none",Re.current=!0,$r(u)&&f){var ye,me;const G=u,ge=I==null||(ye=I.nodesRef.current.find(H=>H.id===P))==null||(me=ye.context)==null?void 0:me.elements.floating;return ge&&(ge.style.pointerEvents=""),G.style.pointerEvents="auto",f.style.pointerEvents="auto",()=>{G.style.pointerEvents="",f.style.pointerEvents=""}}}},[m,t,P,f,u,I,D,a,at]),nf(()=>{t||(j.current=void 0,Be(),te())},[t,Be,te]),U.useEffect(()=>()=>{Be(),clearTimeout(F.current),clearTimeout(Y.current),te()},[m,u,Be,te]),U.useMemo(()=>{if(!m)return{};function ee(ye){j.current=ye.pointerType}return{reference:{onPointerDown:ee,onPointerEnter:ee,onMouseMove(ye){t||T===0||(clearTimeout(Y.current),Y.current=setTimeout(()=>{Z.current||r(!0,ye.nativeEvent)},T))}},floating:{onMouseEnter(){clearTimeout(F.current)},onMouseLeave(ye){l.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),Pe(ye.nativeEvent,!1)}}}},[l,m,T,t,r,Pe])}function Vk(n,e){let t=n.filter(a=>{var l;return a.parentId===e&&((l=a.context)==null?void 0:l.open)}),r=t;for(;r.length;)r=n.filter(a=>{var l;return(l=r)==null?void 0:l.some(u=>{var f;return a.parentId===u.id&&((f=a.context)==null?void 0:f.open)})}),t=t.concat(r);return t}const FL=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function $L(n,e){const t=ML(n,FL());e==="prev"&&t.reverse();const r=t.indexOf(uL(Ru(n)));return t.slice(r+1)[0]}function k7(){return $L(document.body,"next")}function A7(){return $L(document.body,"prev")}function Kk(n,e){const t=e||n.currentTarget,r=n.relatedTarget;return!r||!gm(t,r)}function x7(n){ML(n,FL()).forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")})}function I7(n){n.querySelectorAll("[data-tabindex]").forEach(t=>{const r=t.dataset.tabindex;delete t.dataset.tabindex,r?t.setAttribute("tabindex",r):t.removeAttribute("tabindex")})}const HL={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let O7;function jL(n){n.key==="Tab"&&(n.target,clearTimeout(O7))}const zL=U.forwardRef(function(e,t){const[r,a]=U.useState();nf(()=>(N9()&&a("button"),document.addEventListener("keydown",jL),()=>{document.removeEventListener("keydown",jL)}),[]);const l={ref:t,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[O_("focus-guard")]:"",style:HL};return U.createElement("span",Hk({},e,l))}),BL=U.createContext(null);function N7(n){let{id:e,root:t}=n===void 0?{}:n;const[r,a]=U.useState(null),l=zk(),u=M7(),f=U.useMemo(()=>({id:e,root:t,portalContext:u,uniqueId:l}),[e,t,u,l]),p=U.useRef();return nf(()=>()=>{r==null||r.remove()},[r,f]),nf(()=>{if(p.current===f)return;p.current=f;const{id:m,root:y,portalContext:E,uniqueId:S}=f,T=m?document.getElementById(m):null,A=O_("portal");if(T){const I=document.createElement("div");I.id=S,I.setAttribute(A,""),T.appendChild(I),a(I)}else{let I=y||(E==null?void 0:E.portalNode);I&&!$r(I)&&(I=I.current),I=I||document.body;let P=null;m&&(P=document.createElement("div"),P.id=m,I.appendChild(P));const D=document.createElement("div");D.id=S,D.setAttribute(A,""),I=P||I,I.appendChild(D),a(D)}},[f]),r}function qL(n){let{children:e,id:t,root:r=null,preserveTabOrder:a=!0}=n;const l=N7({id:t,root:r}),[u,f]=U.useState(null),p=U.useRef(null),m=U.useRef(null),y=U.useRef(null),E=U.useRef(null),S=!!u&&!u.modal&&u.open&&a&&!!(r||l);return U.useEffect(()=>{if(!l||!a||u!=null&&u.modal)return;function T(A){l&&Kk(A)&&(A.type==="focusin"?I7:x7)(l)}return l.addEventListener("focusin",T,!0),l.addEventListener("focusout",T,!0),()=>{l.removeEventListener("focusin",T,!0),l.removeEventListener("focusout",T,!0)}},[l,a,u==null?void 0:u.modal]),U.createElement(BL.Provider,{value:U.useMemo(()=>({preserveTabOrder:a,beforeOutsideRef:p,afterOutsideRef:m,beforeInsideRef:y,afterInsideRef:E,portalNode:l,setFocusManagerState:f}),[a,l])},S&&l&&U.createElement(zL,{"data-type":"outside",ref:p,onFocus:T=>{if(Kk(T,l)){var A;(A=y.current)==null||A.focus()}else{const I=A7()||(u==null?void 0:u.refs.domReference.current);I==null||I.focus()}}}),S&&l&&U.createElement("span",{"aria-owns":l.id,style:HL}),l&&cR.createPortal(e,l),S&&l&&U.createElement(zL,{"data-type":"outside",ref:m,onFocus:T=>{if(Kk(T,l)){var A;(A=E.current)==null||A.focus()}else{const I=k7()||(u==null?void 0:u.refs.domReference.current);I==null||I.focus(),u!=null&&u.closeOnFocusOut&&(u==null||u.onOpenChange(!1,T.nativeEvent))}}}))}const M7=()=>U.useContext(BL),P7=aR["useInsertionEffect".toString()]||(n=>n());function Xw(n){const e=U.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return P7(()=>{e.current=n}),U.useCallback(function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return e.current==null?void 0:e.current(...r)},[])}const D7={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},L7={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},U7=n=>{var e,t;return{escapeKeyBubbles:typeof n=="boolean"?n:(e=n==null?void 0:n.escapeKey)!=null?e:!1,outsidePressBubbles:typeof n=="boolean"?n:(t=n==null?void 0:n.outsidePress)!=null?t:!0}};function VL(n,e){e===void 0&&(e={});const{open:t,onOpenChange:r,events:a,nodeId:l,elements:{reference:u,domReference:f,floating:p},dataRef:m}=n,{enabled:y=!0,escapeKey:E=!0,outsidePress:S=!0,outsidePressEvent:T="pointerdown",referencePress:A=!1,referencePressEvent:I="pointerdown",ancestorScroll:P=!1,bubbles:D}=e,L=Bk(),j=DL()!=null,F=Xw(typeof S=="function"?S:()=>!1),V=typeof S=="function"?F:S,Y=U.useRef(!1),{escapeKeyBubbles:Z,outsidePressBubbles:Re}=U7(D),Ge=Xw(Pe=>{if(!t||!y||!E||Pe.key!=="Escape")return;const Be=L?Vk(L.nodesRef.current,l):[];if(!Z&&(Pe.stopPropagation(),Be.length>0)){let te=!0;if(Be.forEach(ee=>{var ye;if((ye=ee.context)!=null&&ye.open&&!ee.context.dataRef.current.__escapeKeyBubbles){te=!1;return}}),!te)return}a.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),r(!1,M9(Pe)?Pe.nativeEvent:Pe)}),at=Xw(Pe=>{const Be=Y.current;if(Y.current=!1,Be||typeof V=="function"&&!V(Pe))return;const te=D9(Pe),ee="["+O_("inert")+"]",ye=Ru(p).querySelectorAll(ee);let me=$r(te)?te:null;for(;me&&!x_(me);){const ge=ap(me);if(ge===Ru(p).body||!$r(ge))break;me=ge}if(ye.length&&$r(te)&&!P9(te)&&!gm(te,p)&&Array.from(ye).every(ge=>!gm(me,ge)))return;if(Ks(te)&&p){const ge=te.clientWidth>0&&te.scrollWidth>te.clientWidth,H=te.clientHeight>0&&te.scrollHeight>te.clientHeight;let ne=H&&Pe.offsetX>te.clientWidth;if(H&&Ss(te).direction==="rtl"&&(ne=Pe.offsetX<=te.offsetWidth-te.clientWidth),ne||ge&&Pe.offsetY>te.clientHeight)return}const he=L&&Vk(L.nodesRef.current,l).some(ge=>{var H;return Kw(Pe,(H=ge.context)==null?void 0:H.elements.floating)});if(Kw(Pe,p)||Kw(Pe,f)||he)return;const G=L?Vk(L.nodesRef.current,l):[];if(G.length>0){let ge=!0;if(G.forEach(H=>{var ne;if((ne=H.context)!=null&&ne.open&&!H.context.dataRef.current.__outsidePressBubbles){ge=!1;return}}),!ge)return}a.emit("dismiss",{type:"outsidePress",data:{returnFocus:j?{preventScroll:!0}:I9(Pe)||O9(Pe)}}),r(!1,Pe)});return U.useEffect(()=>{if(!t||!y)return;m.current.__escapeKeyBubbles=Z,m.current.__outsidePressBubbles=Re;function Pe(ee){r(!1,ee)}const Be=Ru(p);E&&Be.addEventListener("keydown",Ge),V&&Be.addEventListener(T,at);let te=[];return P&&($r(f)&&(te=tf(f)),$r(p)&&(te=te.concat(tf(p))),!$r(u)&&u&&u.contextElement&&(te=te.concat(tf(u.contextElement)))),te=te.filter(ee=>{var ye;return ee!==((ye=Be.defaultView)==null?void 0:ye.visualViewport)}),te.forEach(ee=>{ee.addEventListener("scroll",Pe,{passive:!0})}),()=>{E&&Be.removeEventListener("keydown",Ge),V&&Be.removeEventListener(T,at),te.forEach(ee=>{ee.removeEventListener("scroll",Pe)})}},[m,p,f,u,E,V,T,t,r,P,y,Z,Re,Ge,at]),U.useEffect(()=>{Y.current=!1},[V,T]),U.useMemo(()=>y?{reference:{onKeyDown:Ge,[D7[I]]:Pe=>{A&&(a.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),r(!1,Pe.nativeEvent))}},floating:{onKeyDown:Ge,[L7[T]]:()=>{Y.current=!0}}}:{},[y,a,A,T,I,r,Ge])}let Gk;process.env.NODE_ENV!=="production"&&(Gk=new Set);function KL(n){var e;n===void 0&&(n={});const{open:t=!1,onOpenChange:r,nodeId:a}=n;if(process.env.NODE_ENV!=="production"){var l;const Z="Floating UI: Cannot pass a virtual element to the `elements.reference` option, as it must be a real DOM element. Use `refs.setPositionReference` instead.";if((l=n.elements)!=null&&l.reference&&!$r(n.elements.reference)){var u;if(!((u=Gk)!=null&&u.has(Z))){var f;(f=Gk)==null||f.add(Z),console.error(Z)}}}const[p,m]=U.useState(null),y=((e=n.elements)==null?void 0:e.reference)||p,E=n7(n),S=Bk(),T=Xw((Z,Re)=>{Z&&(I.current.openEvent=Re),r==null||r(Z,Re)}),A=U.useRef(null),I=U.useRef({}),P=U.useState(()=>b7())[0],D=zk(),L=U.useCallback(Z=>{const Re=$r(Z)?{getBoundingClientRect:()=>Z.getBoundingClientRect(),contextElement:Z}:Z;E.refs.setReference(Re)},[E.refs]),j=U.useCallback(Z=>{($r(Z)||Z===null)&&(A.current=Z,m(Z)),($r(E.refs.reference.current)||E.refs.reference.current===null||Z!==null&&!$r(Z))&&E.refs.setReference(Z)},[E.refs]),F=U.useMemo(()=>({...E.refs,setReference:j,setPositionReference:L,domReference:A}),[E.refs,j,L]),V=U.useMemo(()=>({...E.elements,domReference:y}),[E.elements,y]),Y=U.useMemo(()=>({...E,refs:F,elements:V,dataRef:I,nodeId:a,floatingId:D,events:P,open:t,onOpenChange:T}),[E,a,D,P,t,T,F,V]);return nf(()=>{const Z=S==null?void 0:S.nodesRef.current.find(Re=>Re.id===a);Z&&(Z.context=Y)}),U.useMemo(()=>({...E,context:Y,refs:F,elements:V}),[E,F,V,Y])}function F7(n,e){e===void 0&&(e={});const{open:t,onOpenChange:r,dataRef:a,events:l,refs:u,elements:{floating:f,domReference:p}}=n,{enabled:m=!0,keyboardOnly:y=!0}=e,E=U.useRef(""),S=U.useRef(!1),T=U.useRef();return U.useEffect(()=>{if(!m)return;const I=Ru(f).defaultView||window;function P(){!t&&Ks(p)&&p===uL(Ru(p))&&(S.current=!0)}return I.addEventListener("blur",P),()=>{I.removeEventListener("blur",P)}},[f,p,t,m]),U.useEffect(()=>{if(!m)return;function A(I){(I.type==="referencePress"||I.type==="escapeKey")&&(S.current=!0)}return l.on("dismiss",A),()=>{l.off("dismiss",A)}},[l,m]),U.useEffect(()=>()=>{clearTimeout(T.current)},[]),U.useMemo(()=>m?{reference:{onPointerDown(A){let{pointerType:I}=A;E.current=I,S.current=!!(I&&y)},onMouseLeave(){S.current=!1},onFocus(A){var I;S.current||A.type==="focus"&&((I=a.current.openEvent)==null?void 0:I.type)==="mousedown"&&Kw(a.current.openEvent,p)||r(!0,A.nativeEvent)},onBlur(A){S.current=!1;const I=A.relatedTarget,P=$r(I)&&I.hasAttribute(O_("focus-guard"))&&I.getAttribute("data-type")==="outside";T.current=setTimeout(()=>{gm(u.floating.current,I)||gm(p,I)||P||r(!1,A.nativeEvent)})}}}:{},[m,y,p,u,a,r])}function Wk(n,e,t){const r=new Map;return{...t==="floating"&&{tabIndex:-1},...n,...e.map(a=>a?a[t]:null).concat(n).reduce((a,l)=>(l&&Object.entries(l).forEach(u=>{let[f,p]=u;if(f.indexOf("on")===0){if(r.has(f)||r.set(f,[]),typeof p=="function"){var m;(m=r.get(f))==null||m.push(p),a[f]=function(){for(var y,E=arguments.length,S=new Array(E),T=0;T<E;T++)S[T]=arguments[T];return(y=r.get(f))==null?void 0:y.map(A=>A(...S)).find(A=>A!==void 0)}}}else a[f]=p}),a),{})}}function GL(n){n===void 0&&(n=[]);const e=n,t=U.useCallback(l=>Wk(l,n,"reference"),e),r=U.useCallback(l=>Wk(l,n,"floating"),e),a=U.useCallback(l=>Wk(l,n,"item"),n.map(l=>l==null?void 0:l.item));return U.useMemo(()=>({getReferenceProps:t,getFloatingProps:r,getItemProps:a}),[t,r,a])}function $7(n,e){e===void 0&&(e={});const{open:t,floatingId:r}=n,{enabled:a=!0,role:l="dialog"}=e,u=zk();return U.useMemo(()=>{const f={id:r,role:l};return a?l==="tooltip"?{reference:{"aria-describedby":t?r:void 0},floating:f}:{reference:{"aria-expanded":t?"true":"false","aria-haspopup":l==="alertdialog"?"dialog":l,"aria-controls":t?r:void 0,...l==="listbox"&&{role:"combobox"},...l==="menu"&&{id:u}},floating:{...f,...l==="menu"&&{"aria-labelledby":u}}}:{}},[a,l,t,r,u])}var H7=["title","placement","children","style","enterDelay"],j7=Mt.div.withConfig({displayName:"Tooltip__StyledTooltip",componentId:"sc-m2im2p-0"})([""," "," "," background:",";z-index:1500;white-space:nowrap;&::before{content:'; Has tooltip: ';clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;}"],hm(qc.typography),pm(qc.spacings),Il(qc.border),qc.background),z7=Mt.div.withConfig({displayName:"Tooltip__ArrowWrapper",componentId:"sc-m2im2p-1"})(["position:absolute;width:",";height:",";z-index:-1;"],qc.entities.arrow.width,qc.entities.arrow.height),B7=Mt.svg.withConfig({displayName:"Tooltip__TooltipArrow",componentId:"sc-m2im2p-2"})(["width:",";height:",";position:absolute;fill:",";"],qc.entities.arrow.width,qc.entities.arrow.height,qc.background),N_=U.forwardRef(function(e,t){var r=e.title,a=e.placement,l=a===void 0?"bottom":a,u=e.children,f=e.style,p=e.enterDelay,m=p===void 0?100:p,y=Vn(e,H7),E=U.useRef(null),S=U.useState(!1),T=zc(S,2),A=T[0],I=T[1],P=r!=="",D=KL({placement:l,open:A,onOpenChange:I,middleware:[pL(14),hL(),vL({padding:8}),t7({element:E})],whileElementsMounted:bL}),L=D.x,j=D.y,F=D.refs,V=D.strategy,Y=D.context,Z=D.middlewareData.arrow,Re=Z===void 0?{}:Z,Ge=Re.x,at=Re.y,Pe=D.placement,Be=U.useMemo(function(){return T_(F.setReference,u==null?void 0:u.ref)},[F.setReference,u==null?void 0:u.ref]),te=U.useMemo(function(){return T_(F.setFloating,t)},[F.setFloating,t]),ee=GL([R7(Y,{delay:{open:m}}),F7(Y),$7(Y,{role:"tooltip"}),VL(Y)]),ye=ee.getReferenceProps,me=ee.getFloatingProps;U.useEffect(function(){var H={top:"bottom",right:"left",bottom:"top",left:"right"}[Pe.split("-")[0]],ne="none";switch(H){case"right":ne="rotateY(180deg)";break;case"left":ne="none";break;case"top":ne="rotate(90deg)";break;case"bottom":ne="rotate(-90deg)";break}if(E.current){var xe;Object.assign(E.current.style,(xe={left:Ge!=null?"".concat(Ge,"px"):"",top:at!=null?"".concat(at,"px"):"",right:"",bottom:""},ek(xe,H,"-6px"),ek(xe,"transform",ne),xe))}});var he=U.cloneElement(u,ve({},ye(ve({ref:Be},u.props)))),G=X2(F.domReference.current),ge=le.jsxs(j7,ve(ve(ve({},y),me({ref:te,style:ve(ve({},f),{},{position:V,top:j||0,left:L||0})})),{},{children:[r,le.jsx(z7,{ref:E,children:le.jsx(B7,{className:"arrowSvg",children:le.jsx("path",{d:"M0.504838 4.86885C-0.168399 4.48524 -0.168399 3.51476 0.504838 3.13115L6 8.59227e-08L6 8L0.504838 4.86885Z"})})})]}));return le.jsxs(le.Fragment,{children:[G?le.jsx(le.Fragment,{children:P&&A&&ge}):le.jsx(qL,{id:"eds-tooltip-container",children:P&&A&&ge}),he]})}),q7=["children","multiple","selectedIndexes","onChange"],V7=U.forwardRef(function(e,t){var r=e.children,a=e.multiple,l=e.selectedIndexes,u=e.onChange,f=Vn(e,q7),p=U.useState(l||[]),m=zc(p,2),y=m[0],E=m[1];U.useEffect(function(){Array.isArray(l)&&E(l)},[l]);function S(A,I,P){var D=A;if(U.isValidElement(A)&&A.type===eL){var L={"aria-pressed":I?!0:void 0,variant:I?"contained":"outlined",onClick:function(F){var V,Y;(V=D.props)===null||V===void 0||(Y=V.onClick)===null||Y===void 0||Y.call(V,F);var Z=[P];a&&(Z=y.includes(P)?y.filter(function(Re){return Re!==P}):[].concat(nL(y),[P])),E(Z),u&&u(Z)}};return U.cloneElement(A,L)}}var T=U.Children.map(r,function(A,I){var P=y.includes(I),D=A;if(U.isValidElement(A)&&A.type===N_){var L=U.Children.map(D.props.children,function(j){return S(j,P,I)});return U.cloneElement(D,null,L[0])}else return S(D,P,I)});return le.jsx(tL,ve(ve({ref:t},f),{},{children:T}))}),rf=eL;rf.Group=tL,rf.Toggle=V7,rf.Group.displayName="Button.Group",rf.Toggle.displayName="Button.Toggle";function K7(n){if(n==null)throw new TypeError("Cannot destructure "+n)}function Yk(){return Yk=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Yk.apply(this,arguments)}var Qk={},WL=0,G7=function(e){Qk=ve(ve({},Qk),e)},W7=function(e){return WL+=1,{icon:Qk[e],count:WL}},Y7=["size","color","name","rotation","title","data"],Q7=Mt.svg.attrs(function(n){var e=n.$height,t=n.$width,r=n.fill;return{name:null,xmlns:"http://www.w3.org/2000/svg",height:"".concat(e,"px"),width:"".concat(t,"px"),fill:r}}).withConfig({displayName:"Icon__StyledSvg",componentId:"sc-6evbi1-0"})(["transform:",";"],function(n){var e=n.$rotation;return e?"rotate(".concat(e,"deg)"):"none"}),X7=Mt.path.attrs(function(n){var e=n.$height,t=n.$size;return{size:null,fillRule:"evenodd",clipRule:"evenodd",transform:t/e!==1?"scale(".concat(t/e,")"):null}}).withConfig({displayName:"Icon__StyledPath",componentId:"sc-6evbi1-1"})([""]),J7=function(e){return{icon:e,count:Math.floor(Math.random()*1e3)}},Z7=function(e,t,r){var a=t?J7(t):W7(e),l=a.icon,u=a.count;if(r<24){var f;l=((f=l.sizes)===null||f===void 0?void 0:f.small)||l}return{icon:l,count:u}},eY=U.forwardRef(function(e,t){var r=e.size,a=e.color,l=a===void 0?"currentColor":a,u=e.name,f=e.rotation,p=e.title,m=e.data,y=Vn(e,Y7),E=Z7(u,m,r),S=E.icon,T=E.count;if(typeof S>"u")throw Error('Icon "'.concat(u,'" not found. Have you added it using Icon.add() or using data props?'));var A=r||parseInt(S.width),I=r||parseInt(S.height),P={$height:A,$width:I,fill:l,viewBox:"0 0 ".concat(I," ").concat(A),$rotation:f,name:u,"aria-hidden":!0},D={d:S.svgPathData,$height:S.height?parseInt(S.height):r,$size:r||parseInt(S.height)},L="";return p&&(L="".concat(S.prefix,"-").concat(S.name,"-").concat(T),P=ve(ve({},P),{},{title:p,role:"img","aria-hidden":void 0,"aria-labelledby":L})),le.jsxs(Q7,ve(ve(ve({},P),y),{},{ref:t,children:[p&&le.jsx("title",{id:L,children:p}),le.jsx(X7,ve({"data-testid":"eds-icon-path"},D))]}))}),Gs=eY;Gs.add=G7;var tY={name:"business",prefix:"eds",height:"24",width:"24",svgPathData:"M12 7h10v14H2V3h10v4ZM4 19h2v-2H4v2Zm2-4H4v-2h2v2Zm-2-4h2V9H4v2Zm2-4H4V5h2v2Zm2 12h2v-2H8v2Zm2-4H8v-2h2v2Zm-2-4h2V9H8v2Zm2-4H8V5h2v2Zm10 12V9h-8v2h2v2h-2v2h2v2h-2v2h8Zm-2-8h-2v2h2v-2Zm-2 4h2v2h-2v-2Z"},nY={name:"home",prefix:"eds",height:"24",width:"24",svgPathData:"M5 12.5H2l10-9 10 9h-3v8h-6v-6h-2v6H5v-8Zm12-1.81-5-4.5-5 4.5v7.81h2v-6h6v6h2v-7.81Z"},rY={name:"expand",prefix:"eds",height:"24",width:"24",svgPathData:"M9.563 12 4 6.645 5.713 5 13 12l-7.287 7L4 17.355 9.563 12Zm7 0L11 6.645 12.713 5 20 12l-7.287 7L11 17.355 16.563 12Z"},iY={name:"chevron_down",prefix:"eds",height:"24",width:"24",svgPathData:"m7.41 8.295 4.59 4.58 4.59-4.58L18 9.705l-6 6-6-6 1.41-1.41Z",sizes:{small:{name:"chevron_down_small",prefix:"eds",height:"18",width:"18",svgPathData:"M5.175 6 9 9.709 12.825 6 14 7.142 9 12 4 7.142 5.175 6Z"}}},oY={name:"chevron_up",prefix:"eds",height:"24",width:"24",svgPathData:"m7.41 15.705 4.59-4.58 4.59 4.58 1.41-1.41-6-6-6 6 1.41 1.41Z",sizes:{small:{name:"chevron_up_small",prefix:"eds",height:"18",width:"18",svgPathData:"m5.174 12.002 3.825-3.709 3.825 3.709 1.175-1.142-5-4.859-5 4.859 1.175 1.142Z"}}},aY={name:"arrow_drop_down",prefix:"eds",height:"24",width:"24",svgPathData:"m7 9.5 5 5 5-5H7Z",sizes:{small:{name:"arrow_drop_down_small",prefix:"eds",height:"18",width:"18",svgPathData:"m4 6.5 5 5 5-5H4Z"}}},sY={name:"collapse",prefix:"eds",height:"24",width:"24",svgPathData:"M7.437 12 13 17.355 11.287 19 4 12l7.287-7L13 6.645 7.437 12Zm7 0L20 17.355 18.287 19 11 12l7.288-7L20 6.645 14.437 12Z"},lY={name:"accessible",prefix:"eds",height:"24",width:"24",svgPathData:"M14 4c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2Zm-2 3c2.83 0 5.89-.3 8.5-1l.5 2c-1.86.5-4 .83-6 1v13h-2v-6h-2v6H9V9c-2-.17-4.14-.5-6-1l.5-2c2.61.7 5.67 1 8.5 1Z",sizes:{small:{name:"accessible_small",prefix:"eds",height:"18",width:"18",svgPathData:"M10.5 3c0 .825-.675 1.5-1.5 1.5S7.5 3.825 7.5 3 8.175 1.5 9 1.5s1.5.675 1.5 1.5ZM9 5.25c2.123 0 4.418-.225 6.375-.75L15.75 6c-1.395.375-3 .622-4.5.75v9.75h-1.5V12h-1.5v4.5h-1.5V6.75c-1.5-.128-3.105-.375-4.5-.75l.375-1.5c1.957.525 4.253.75 6.375.75Z"}}},Jw=on.colors.ui,uY=Jw.background__default.rgba,cY=Jw.background__info.rgba,dY=Jw.background__warning.rgba,fY=Jw.background__danger.rgba,Zw=on.spacings.comfortable.medium,hY=on.shape.corners.borderRadius,lp={background:uY,border:{type:"border",radius:hY},spacings:{left:Zw,bottom:Zw,right:Zw,top:Zw}},pY={background:cY},vY={background:fY},mY={background:dY};const gY=Object.freeze(Object.defineProperty({__proto__:null,danger:vY,info:pY,primary:lp,warning:mY},Symbol.toStringTag,{value:"Module"}));var yY=on.elevation,_Y=on.colors.ui.background__default.rgba,CY={background:_Y},EY=["elevation"],wY=Mt.div.withConfig({displayName:"Paper__StyledPaper",componentId:"sc-6ncnv9-0"})(["background:",";box-shadow:",";"],CY.background,function(n){var e=n.$elevation;return e}),Xk=U.forwardRef(function(e,t){var r,a=e.elevation,l=a===void 0?"none":a,u=Vn(e,EY),f=ve(ve({},u),{},{$elevation:(r=yY[l])!==null&&r!==void 0?r:"none"});return le.jsx(wY,ve(ve({},f),{},{ref:t}))}),bY=["children","variant","elevation"],SY=lp,TY=Mt(Xk).withConfig({displayName:"Card__StyledCard",componentId:"sc-bjucjn-0"})(["width:100%;position:relative;background-color:",";box-sizing:border-box;display:flex;flex-direction:column;grid-gap:16px;",";"],function(n){var e=n.$background;return e},Il(SY.border)),RY=U.forwardRef(function(e,t){var r=e.children,a=e.variant,l=a===void 0?"default":a,u=e.elevation,f=u===void 0?"none":u,p=Vn(e,bY),m=l==="default"?"primary":l,y=gY[m],E=ve({ref:t,$background:y.background},p);return le.jsx(TY,ve(ve({elevation:f},E),{},{children:r}))}),Jk=on.typography,kY=on.colors,AY=on.interactions.focused.width,xY=Jk.heading,IY=Jk.paragraph,up=kY.interactive,OY=up.primary__resting.rgba,NY=up.secondary__resting.rgba,MY=up.danger__resting.rgba,PY=up.warning__resting.rgba,DY=up.success__resting.rgba,LY=up.disabled__text.rgba,UY=up.focus.rgba,YL={primary:OY,secondary:NY,danger:MY,warning:PY,success:DY,disabled:LY},QL=ve(ve({},xY),IY),XL={states:{focus:{outline:{width:AY,color:UY,style:"dashed",type:"outline",offset:"2px"}}}},FY=["variant","children","bold","italic","link","lines","color","group","token","as"],$Y=function(e,t){if(t)return"a";switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return e;case"caption":case"overline":case"ingress":case"meta":case"body_short":case"body_long":default:return"p"}},HY=function(e,t){return!t&&QL[e]?QL[e]:Jk[t][e]},jY=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return typeof YL[e]>"u"?e:YL[e]},zY=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return"".concat(e).concat(t?"_bold":"").concat(r?"_italic":"").concat(a?"_link":"")},BY=Mt.p.withConfig({displayName:"Typography__StyledTypography",componentId:"sc-179guof-0"})([""," "," "," ",""],function(n){var e=n.$typography,t=n.$link;return hm(e,t)},function(n){var e=n.$color;return pn({color:jY(e)})},function(n){var e=n.$lines;return e>0&&pn(["&{display:-webkit-box;-webkit-line-clamp:",";-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;}"],e)},function(n){var e=n.$link;return e&&pn(["&:focus{outline:none;}&[data-focus-visible-added]:focus{","}&:focus-visible{","}"],Bc(XL.states.focus.outline),Bc(XL.states.focus.outline))}),cp=U.forwardRef(function(e,t){var r=e.variant,a=r===void 0?"body_short":r,l=e.children,u=e.bold,f=e.italic,p=e.link,m=e.lines,y=e.color,E=e.group,S=e.token,T=e.as,A=Vn(e,FY),I=T||$Y(a,p),P=zY(a,u,f,p),D=HY(P,E);if(typeof D>"u")throw new Error('Typography variant not found for variant "'.concat(P,'" ("').concat(a,'") & group "').concat(E||"",'"'));return le.jsx(BY,ve(ve({as:I,$typography:ve(ve({},D),S),$link:p,$lines:m,ref:t,$color:y},A),{},{children:l}))}),qY=["children","alignRight","meta"],eb=lp.spacings,VY=Mt.div.withConfig({displayName:"CardActions__StyledCardActions",componentId:"sc-1d5vskp-0"})(["display:grid;grid-gap:8px;grid-auto-flow:column;align-items:center;justify-content:",";padding:0 "," 0 ",";margin-top:auto;&:first-child{padding-top:",";}&:last-child{padding-bottom:",";}"],function(n){var e=n.$justifyContent;return e},eb.right,eb.left,eb.top,eb.bottom),KY=U.forwardRef(function(e,t){var r=e.children,a=e.alignRight,l=a===void 0?!1:a,u=e.meta,f=u===void 0?"":u,p=Vn(e,qY),m=l?"flex-end":"flex-start",y=ve({ref:t,$justifyContent:m},p);return le.jsxs(VY,ve(ve({},y),{},{children:[r,f!==""&&le.jsx(cp,{variant:"caption",children:f})]}))}),GY=["children"],Zk=lp.spacings,WY=Mt.div.withConfig({displayName:"CardContent__StyledCardContent",componentId:"sc-esm4ym-0"})(["display:grid;padding:0 "," 0 ",";&:last-child{padding-bottom:",";}"],Zk.right,Zk.left,Zk.bottom),YY=U.forwardRef(function(e,t){var r=e.children,a=Vn(e,GY);return le.jsx(WY,ve(ve({ref:t},a),{},{children:r}))}),QY=["children","fullWidth"],of=lp.spacings,af=lp.border,XY=Mt.div.withConfig({displayName:"CardMedia__StyledCardMedia",componentId:"sc-kr8q9c-0"})(["display:flex;width:auto;",""],function(n){var e=n.$fullWidth;return e?pn(["> *{width:100%;}&:first-child{img{border-top-right-radius:",";border-top-left-radius:",";}}&:last-child{img{border-bottom-right-radius:",";border-bottom-left-radius:",";}}"],af.type==="border"&&af.radius,af.type==="border"&&af.radius,af.type==="border"&&af.radius,af.type==="border"&&af.radius):pn(["padding:0 "," 0 ",";&:first-child{padding:"," "," 0 ",";}&:last-child{padding:0 "," "," ",";}> *{width:100%;}"],of.right,of.left,of.top,of.right,of.left,of.right,of.bottom,of.left)}),JY=U.forwardRef(function(e,t){var r=e.children,a=e.fullWidth,l=a===void 0?!1:a,u=Vn(e,QY),f=ve(ve({},u),{},{ref:t,$fullWidth:l});return le.jsx(XY,ve(ve({},f),{},{children:r}))}),ZY=["children"],M_=lp.spacings,eQ=Mt.div.withConfig({displayName:"CardHeader__StyledCardHeader",componentId:"sc-15k8edh-0"})(["display:flex;justify-content:space-between;align-items:center;padding:0 "," 0 ",";> :not(:first-child){margin-left:",";}&:first-child{padding-top:",";}&:last-child{padding-bottom:",";}"],M_.right,M_.left,M_.left,M_.top,M_.bottom),tQ=U.forwardRef(function(e,t){var r=e.children,a=Vn(e,ZY),l=ve(ve({},a),{},{ref:t});return le.jsx(eQ,ve(ve({},l),{},{children:r}))}),nQ=["children"],rQ=Mt.div.withConfig({displayName:"CardHeaderTitle__StyledCardHeaderTitle",componentId:"sc-11m80r3-0"})(["display:grid;flex-grow:2;grid-auto-columns:auto;"]),iQ=U.forwardRef(function(e,t){var r=e.children,a=Vn(e,nQ),l=ve(ve({},a),{},{ref:t});return le.jsx(rQ,ve(ve({},l),{},{children:r}))}),Ts=RY;Ts.Actions=KY,Ts.Content=YY,Ts.Header=tQ,Ts.Media=JY,Ts.HeaderTitle=iQ,Ts.Actions.displayName="Card.Actions",Ts.Content.displayName="Card.Content",Ts.Header.displayName="Card.Header",Ts.Media.displayName="Card.Media",Ts.HeaderTitle.displayName="Card.HeaderTitle";var JL=on.colors,tb=on.spacings.comfortable,oQ=on.typography.navigation,aQ={height:"64px",background:JL.ui.background__default.rgba,typography:oQ.menu_title,spacings:{left:tb.large,right:tb.large,top:tb.small,bottom:tb.small},border:{type:"bordergroup",bottom:{style:"solid",color:JL.ui.background__light.rgba,width:"2px"}},modes:{compact:{}}},sQ=["children","elevation","sticky"],lQ=Mt(Xk).withConfig({displayName:"TopBar__StyledTopBar",componentId:"sc-1yj236q-0"})(function(n){var e=n.theme,t=n.$sticky;return pn(["height:",";background:",";box-sizing:border-box;display:grid;grid-column-gap:",";grid-template-columns:auto 1fr auto;grid-template-areas:'left center right';align-items:center;"," ",";"," ",""],e.height,e.background,e.spacings.left,Il(e.border),pm(e.spacings),hm(e.typography),t&&pn(["position:sticky;top:0;z-index:1100;"]))}),uQ=U.forwardRef(function(e,t){var r=e.children,a=e.elevation,l=a===void 0?"none":a,u=e.sticky,f=u===void 0?!0:u,p=Vn(e,sQ),m=Hw(),y=m.density,E=$w({density:y},aQ),S=ve(ve({},p),{},{ref:t});return le.jsx(Mw,{theme:E,children:le.jsx(lQ,ve(ve({forwardedAs:"header",elevation:l,$sticky:f},S),{},{children:r}))})}),cQ=["children"],dQ=Mt.div.withConfig({displayName:"Actions__StyledActions",componentId:"sc-1251ang-0"})(["grid-area:right;text-align:right;align-items:center;display:flex;"]),fQ=U.forwardRef(function(e,t){var r=e.children,a=Vn(e,cQ);return le.jsx(dQ,ve(ve({ref:t},a),{},{children:r}))}),hQ=["children"],pQ=Mt.div.withConfig({displayName:"Header__StyledHeader",componentId:"sc-1fpllve-0"})(["grid-area:left;display:grid;grid-template-columns:auto auto;grid-gap:12px;align-items:center;"]),vQ=U.forwardRef(function(e,t){var r=e.children,a=Vn(e,hQ);return le.jsx(pQ,ve(ve({ref:t},a),{},{children:r}))}),mQ=["children"],gQ=Mt.div.withConfig({displayName:"CustomContent__StyledCustomContent",componentId:"sc-d0e83a-0"})(["grid-area:center;"]),yQ=U.forwardRef(function(e,t){var r=e.children,a=Vn(e,mQ);return le.jsx(gQ,ve(ve({ref:t},a),{},{children:r}))}),ku=uQ;ku.Actions=fQ,ku.Header=vQ,ku.CustomContent=yQ,ku.Actions.displayName="Topbar.Actions",ku.Header.displayName="Topbar.Header",ku.CustomContent.displayName="Topbar.CustomContent";var eA=on.colors.ui,_Q=eA.background__default.rgba,CQ=eA.background__light.rgba,EQ=eA.background__medium.rgba,ZL=on.spacings.comfortable,eU=ZL.small,tU=ZL.medium,nU={lighter:{background:_Q},light:{background:CQ},mediumColor:{background:EQ}},wQ={spacings:{top:eU,bottom:eU}},bQ={spacings:{top:tU,bottom:tU}};const rU=Object.freeze(Object.defineProperty({__proto__:null,divider:nU,medium:bQ,small:wQ},Symbol.toStringTag,{value:"Module"}));var SQ=["color","variant","size"],TQ=nU,RQ=Mt.hr.withConfig({displayName:"Divider__StyledDivider",componentId:"sc-1d8osde-0"})(function(n){var e=n.$backgroundColor,t=n.$marginTop,r=n.$marginBottom,a=n.$dividerHeight;return pn(["border:none;background-color:",";margin-top:",";margin-bottom:calc("," - ","px);height:","px;"],e,t,r,a,a)}),tA=U.forwardRef(function(e,t){var r=e.color,a=r===void 0?"medium":r,l=e.variant,u=l===void 0?"medium":l,f=e.size,p=f===void 0?"1":f,m=Vn(e,SQ),y=a==="medium"?"mediumColor":a,E=ve({$backgroundColor:TQ[y].background,$marginTop:rU[u].spacings.top,$marginBottom:rU[u].spacings.bottom,$dividerHeight:parseInt(p)},m);return le.jsx(RQ,ve(ve({},E),{},{ref:t}))}),kQ=on.colors.logo.fill_positive.rgba,AQ={background:kQ},xQ=["variant","value","size"],_m=m2(["0%{opacity:1;}20%{opacity:0.8;}40%{opacity:0.6;}60%{opacity:0.4;}80%{opacity:0.2;}100%{opacity:0.05;}"]),IQ=m2(["0%{opacity:0;}10%{opacity:0.05;}20%{opacity:0.2;}40%{opacity:0.4;}60%{opacity:0.6;}80%{opacity:0.8;}100%{opacity:1;}"]),OQ=Mt.svg.withConfig({displayName:"StarProgress__Svg",componentId:"sc-c0byj9-0"})(["fill:",";",""],AQ.background,function(n){var e=n.$variant,t=n.$progress;return e==="indeterminate"?pn(["path{&:nth-child(1){animation:"," 1.3s linear infinite;}&:nth-child(2){animation:"," 1.3s linear 0.3s infinite;}&:nth-child(3){animation:"," 1.3s linear 0.4s infinite;}&:nth-child(4){animation:"," 1.3s linear 0.6s infinite;}&:nth-child(5){animation:"," 1.3s linear 0.8s infinite;}&:nth-child(6){animation:"," 1.3s linear 1s infinite;}}"],_m,_m,_m,_m,_m,_m):pn(["path{animation:"," 1.3s linear;&:nth-child(6){animation-play-state:",";}&:nth-child(5){animation-play-state:",";}&:nth-child(4){animation-play-state:",";}&:nth-child(3){animation-play-state:",";}&:nth-child(2){animation-play-state:",";}&:nth-child(1){animation-play-state:",";}}"],IQ,t>90?"running":"paused",t>80?"running":"paused",t>60?"running":"paused",t>40?"running":"paused",t>20?"running":"paused",t<=20?"running":"paused")}),NQ=U.forwardRef(function(e,t){var r=e.variant,a=r===void 0?"indeterminate":r,l=e.value,u=l===void 0?null:l,f=e.size,p=f===void 0?48:f,m=Vn(e,xQ),y=Math.round(u),E=p*1.2,S=p,T=ve(ve({},m),{},{ref:t,$variant:a,$progress:y});return a==="determinate"&&u!==void 0&&(T["aria-valuenow"]=y,T["aria-valuemin"]=0,T["aria-valuemax"]=100),le.jsxs(OQ,ve(ve({},T),{},{role:"progressbar",width:S,height:E,viewBox:"0 0 40 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet",children:[le.jsx("path",{d:"M32.756 34.6798L29.482 36.5817C29.4139 36.6219 29.3295 36.6227 29.2606 36.5829L25.9476 34.7151C25.7975 34.6306 25.7967 34.4149 25.9456 34.3284L29.2397 32.4256C29.3077 32.3858 29.3914 32.3858 29.4603 32.4248L32.754 34.2931C32.9033 34.3784 32.9041 34.5929 32.756 34.6798Z"}),le.jsx("path",{d:"M25.9596 45.4706L22.6655 43.5867C22.5966 43.5469 22.554 43.4744 22.554 43.396V41.4289V39.5922C22.5519 39.4204 22.7381 39.3109 22.8878 39.397L26.1819 41.2981C26.25 41.3379 26.2926 41.4104 26.2934 41.4896V43.4268V45.2762C26.2947 45.4472 26.1085 45.5559 25.9596 45.4706Z"}),le.jsx("path",{d:"M12.3022 47.7037V44.9795V42.6544C12.3022 42.5495 12.3576 42.4515 12.4482 42.3986L14.1262 41.4062L16.8143 39.8188C17.0119 39.7019 17.2617 39.8442 17.2625 40.0739L17.2633 42.7627V45.1456C17.2633 45.251 17.2079 45.3486 17.1165 45.4015L12.7496 47.9587C12.552 48.0748 12.3031 47.9325 12.3022 47.7037Z"}),le.jsx("path",{d:"M0.221343 34.2106L6.76939 30.4056C6.90636 30.326 7.07449 30.3256 7.21227 30.4023L13.8378 34.1401C14.138 34.3095 14.14 34.7413 13.8415 34.9131L7.25492 38.7182C7.11795 38.7977 6.94941 38.7985 6.81204 38.7206L0.225854 34.9836C-0.0734986 34.8139 -0.075549 34.3833 0.221343 34.2106Z"}),le.jsx("path",{d:"M6.03876 9.125L16.9237 15.5151C17.1513 15.6484 17.2903 15.8912 17.2903 16.1549V28.8331C17.2903 29.4076 16.665 29.7647 16.1704 29.4728L5.28546 23.0264C5.05869 22.8919 4.92008 22.6479 4.9209 22.3855V9.76307C4.92254 9.1902 5.54503 8.83467 6.03876 9.125Z"}),le.jsx("path",{d:"M39.6262 1.07261V11.7603V19.3368C39.627 19.7178 39.4265 20.0709 39.0988 20.2644L31.4145 24.8195L23.3545 29.5964C22.6385 30.0192 21.7339 29.5029 21.7339 28.6717V10.3259C21.7339 9.94495 21.9356 9.5927 22.2641 9.39955L38.008 0.149533C38.7232 -0.270381 39.6241 0.24385 39.6262 1.07261Z"})]}))}),iU={focusedIndex:-1,initialFocus:null,onClose:null},oU=U.createContext(iU),MQ=function(e){var t=e.children,r=U.useState(iU),a=zc(r,2),l=a[0],u=a[1],f=l.focusedIndex,p=l.initialFocus,m=l.onClose,y=function(I){u(function(P){return ve(ve({},P),{},{focusedIndex:I})})},E=function(I){u(function(P){return ve(ve({},P),{},{initialFocus:I})})},S=function(I){var P=function(){y(-1),E(null),I()};u(function(D){return ve(ve({},D),{},{onClose:P})})},T={setFocusedIndex:y,focusedIndex:f,setInitialFocus:E,initialFocus:p,setOnClose:S,onClose:m};return le.jsx(oU.Provider,{value:T,children:t})},nA=function(){return U.useContext(oU)},rA=on.colors,PQ=rA.ui.background__default.rgba,Cm=rA.interactive,DQ=Cm.primary__selected_highlight.rgba,LQ=Cm.primary__resting.rgba,UQ=Cm.focus.rgba,FQ=Cm.disabled__fill.rgba,$Q=Cm.disabled__text.rgba,HQ=Cm.table__header__fill_hover.rgba,jQ=rA.text.static_icons__default.rgba,iA=on.spacings.comfortable,aU=iA.medium,Em=iA.large,wm=iA.small,oA=on.typography.navigation.menu_title,bm={background:PQ,spacings:{top:wm,bottom:wm,left:"0px",right:"0px"},border:{type:"border",radius:"4px"},typography:ve(ve({},oA),{},{color:jQ}),entities:{icon:{states:{disabled:{typography:{color:FQ}}}},item:{spacings:{left:Em,right:Em,top:aU,bottom:aU},states:{active:{typography:ve(ve({},oA),{},{color:LQ}),background:DQ},focus:{outline:{color:UQ,style:"dashed",type:"outline",width:"2px",offset:"2px"}},hover:{background:HQ},disabled:{typography:ve(ve({},oA),{},{color:$Q})}}},title:{spacings:{left:Em,right:Em,top:wm,bottom:wm}}},modes:{compact:{entities:{item:{spacings:{left:Em,right:Em,top:wm,bottom:wm}}}}}},zQ=["children","disabled","active","index","as","onClick","closeMenuOnClick"],BQ=bm.typography,sU=bm.entities,nb=sU.item.states,lU=nb.active,qQ=nb.focus,VQ=nb.hover,KQ=nb.disabled,GQ=sU.icon,WQ=Mt.button.attrs(function(n){var e=n.$isFocused;return{role:"menuitem",tabIndex:e?-1:0}}).withConfig({displayName:"MenuItem__Item",componentId:"sc-1g9fpbe-0"})(["border:0;background-color:transparent;width:auto;position:relative;z-index:2;text-decoration:none;"," "," "," ",""],hm(BQ),function(n){var e=n.theme;return pm(e.entities.item.spacings)},function(n){var e=n.$active;return e&&pn(["background:",";*{color:",";}"],lU.background,lU.typography.color)},function(n){var e=n.disabled;return e?pn(["*{color:",";}svg{fill:",";}&:focus{outline:none;}@media (hover:hover) and (pointer:fine){&:hover{cursor:not-allowed;}}"],KQ.typography.color,GQ.states.disabled.typography.color):pn(["@media (hover:hover) and (pointer:fine){&:hover{z-index:1;cursor:pointer;background:",";}}&:focus{z-index:3;","}"],VQ.background,Bc(qQ.outline))}),YQ=Mt.div.withConfig({displayName:"MenuItem__Content",componentId:"sc-1g9fpbe-1"})(["width:auto;display:grid;grid-gap:16px;grid-auto-flow:column;grid-auto-columns:max-content auto max-content;align-items:center;"]),rb=U.forwardRef(function(e,t){var r=e.children,a=e.disabled,l=e.active,u=e.index,f=u===void 0?0:u,p=e.as,m=p===void 0?"button":p,y=e.onClick,E=e.closeMenuOnClick,S=E===void 0?!0:E,T=Vn(e,zQ),A=nA(),I=A.focusedIndex,P=A.setFocusedIndex,D=A.onClose,L=function(Y){I!==Y&&P(Y)},j=f===I,F=ve(ve({},T),{},{as:m,disabled:a,$isFocused:j});return le.jsx(WQ,ve(ve({},F),{},{$active:l,ref:T_(t,function(V){j&&requestAnimationFrame(function(){V!==null&&V.focus()})}),onFocus:function(){return L(f)},onClick:function(Y){y&&(y(Y),D!==null&&S&&D(Y))},children:le.jsx(YQ,{children:r})}))});rb.displayName="MenuItem";var QQ=Mt.div.attrs(function(){return{tabIndex:0}}).withConfig({displayName:"MenuSection__Header",componentId:"sc-gfcbvg-0"})([""," &:focus{outline:none;}"],pm(bm.entities.title.spacings)),uU=U.memo(function(e){var t=e.children,r=e.title,a=e.index;return le.jsxs(le.Fragment,{children:[a!==0&&le.jsx("div",{children:le.jsx(tA,{variant:"small"})}),r&&le.jsx(QQ,{children:le.jsx(cp,{group:"navigation",variant:"label",children:r})}),t]})}),XQ=["addCloseMenuOnClickIndex","children"],JQ=Mt.div.withConfig({displayName:"MenuList__List",componentId:"sc-104rzof-0"})(["position:relative;list-style:none;display:flex;flex-direction:column;margin:0;"," li:first-child{z-index:3;}"],pm(bm.spacings));function cU(n){return!!(U.isValidElement(n)&&!n.props.disabled&&n.type===rb)}function ZQ(n){return!!(U.isValidElement(n)&&n.type===rb&&n.props.closeMenuOnClick!==!1)}var eX=U.forwardRef(function(e,t){var r=e.addCloseMenuOnClickIndex,a=e.children,l=Vn(e,XQ),u=nA(),f=u.focusedIndex,p=u.setFocusedIndex,m=u.initialFocus,y=-1,E=U.useMemo(function(){return[]},[]),S=U.useMemo(function(){return U.Children.map(a,function(D){if(!D)return D;if(D.type===uU){y++;var L=y,j=U.Children.map(D.props.children,function(F){return y++,cU(F)&&E.push(y),U.cloneElement(F,{index:y})});return U.cloneElement(D,{index:L},j)}else return y++,cU(D)&&E.push(y),ZQ(D)&&r(y),U.cloneElement(D,{index:y})})},[a,E,y,r]),T=E[0],A=E[E.length-1];U.useEffect(function(){m==="first"&&p(T),m==="last"&&p(A)},[m,T,A]);var I=function(L,j){var F=L==="down"?1:-1,V=E.indexOf(f),Y=E[V+F],Z=typeof Y>"u"?j:Y;p(Z)},P=function(L){var j=L.key;L.stopPropagation(),j==="ArrowDown"&&(L.preventDefault(),I("down",T)),j==="ArrowUp"&&(L.preventDefault(),I("up",A))};return le.jsx(JQ,ve(ve({onKeyDown:P,role:"menu"},l),{},{ref:t,children:S}))}),tX=["children","anchorEl","onClose","open"],nX=["anchorEl","open","placement","matchAnchorWidth","onClose","style","className"],rX=bm.border,iX=Mt(Xk).withConfig({displayName:"Menu__MenuPaper",componentId:"sc-1vlnqcj-0"})(["position:absolute;z-index:1400;width:fit-content;min-width:fit-content;",";",";"],Il(rX),function(n){var e=n.open;return pn({display:e?"block":"none"})}),oX=U.forwardRef(function(e,t){var r=e.children,a=e.anchorEl,l=e.onClose,u=e.open,f=Vn(e,tX),p=nA(),m=p.setOnClose,y=p.onClose,E=p.setInitialFocus,S=p.focusedIndex,T=U.useMemo(function(){return[]},[]);U.useEffect(function(){y===null&&l&&m(l)},[y,l,m]),U.useEffect(function(){var I=function(D){var L=D.key;switch((L==="ArrowDown"||L==="ArrowUp")&&(D.preventDefault(),D.stopPropagation(),a.dispatchEvent(new Event("click",{bubbles:!0}))),L){case"Enter":case"ArrowDown":E("first");break;case"ArrowUp":E("last");break}};return a&&a.addEventListener("keydown",I),function(){a&&a.removeEventListener("keydown",I)}},[a]),Y2("Escape",function(){u&&y!==null&&(y(),a.focus())}),Y2("Enter",function(){u&&y!==null&&T.includes(S)&&setTimeout(function(){window.document.contains(a)&&a.focus()},0)});var A=function(P){T.indexOf(P)<0&&T.push(P)};return le.jsx(eX,ve(ve({addCloseMenuOnClickIndex:A},f),{},{ref:t,children:r}))}),aX=U.forwardRef(function(e,t){var r=e.anchorEl,a=e.open,l=e.placement,u=l===void 0?"bottom":l,f=e.matchAnchorWidth,p=f===void 0?!1:f,m=e.onClose,y=e.style,E=e.className,S=Vn(e,nX),T=Hw(),A=T.density,I=$w({density:A},bm),P=[pL(4),hL(),vL({padding:8})];p&&(P=[].concat(nL(P),[F9({apply:function(me){var he=me.rects,G=me.elements;Object.assign(G.floating.style,{width:"".concat(he.reference.width,"px")})}})]));var D=KL({elements:{reference:r},placement:u,open:a,onOpenChange:m,middleware:P}),L=D.x,j=D.y,F=D.refs,V=D.update,Y=D.strategy,Z=D.context,Re=U.useMemo(function(){return T_(F.setFloating,t)},[F.setFloating,t]);VW(function(){if(F.reference.current&&F.floating.current&&a)return bL(F.reference.current,F.floating.current,V)},[F.reference,F.floating,V,a]);var Ge=GL([VL(Z,{escapeKey:!1})]),at=Ge.getFloatingProps,Pe={open:a,className:E},Be=ve(ve({},S),{},{onClose:m,anchorEl:r,open:a}),te=X2(r),ee=le.jsx(Mw,{theme:I,children:le.jsx(iX,ve(ve(ve({elevation:"raised"},Pe),at({ref:Re,style:ve(ve({},y),{},{position:Y,top:j||0,left:L||0})})),{},{children:le.jsx(MQ,{children:le.jsx(oX,ve(ve({},Be),{},{ref:t}))})}))});return le.jsx(le.Fragment,{children:te?ee:le.jsx(qL,{id:"eds-menu-container",children:ee})})}),Au=aX;Au.Item=rb,Au.Section=uU,Au.Item.displayName="Menu.Item",Au.Section.displayName="Menu.Section";var aA=on.colors,sA=aA.ui,dU=sA.background__light.rgba,sX=sA.background__medium.rgba,lX=sA.background__default.rgba,P_=aA.interactive,uX=P_.focus.rgba,cX=P_.primary__resting.rgba,dX=P_.primary__selected_highlight.rgba,fX=P_.disabled__fill.rgba,hX=P_.disabled__text.rgba,fU=aA.text,hU=fU.static_icons__default.rgba,pX=fU.static_icons__primary_white.rgba,lA=on.spacings.comfortable,pU=lA.medium,ib=lA.large,vU=lA.small,sf={background:lX,minWidth:"72px",maxWidth:"256px",spacings:{top:ib,bottom:ib},border:{type:"bordergroup",right:{color:dU,width:"2px",style:"solid"}},entities:{actionButton:{typography:{color:pX},spacings:{top:pU,bottom:pU,right:ib,left:ib}},sidebarItem:{minHeight:"48px",spacings:{top:"0",bottom:"0"},typography:{color:hU},border:{type:"bordergroup",bottom:{color:dU,width:"2px",style:"solid"}},states:{active:{background:dX,typography:{color:cX}},hover:{background:sX},focus:{outline:{color:uX,style:"dashed",type:"outline",width:"2px",offset:"-2px"}},disabled:{background:fX,typography:{color:hX}}}},toggleOpen:{spacings:{top:vU,bottom:vU},typography:{color:hU}}},modes:{compact:{entities:{}}}},mU={isOpen:!1,onToggle:null},gU=U.createContext(mU),vX=function(e){var t=e.children,r=U.useState(mU),a=zc(r,2),l=a[0],u=a[1],f=l.isOpen,p=l.onToggle,m=U.useCallback(function(S){u(function(T){return ve(ve({},T),{},{isOpen:S})}),p==null||p(S)},[p]),y=function(T){u(function(A){return ve(ve({},A),{},{onToggle:T})})},E={setIsOpen:m,setOnToggle:y,onToggle:p,isOpen:f};return le.jsx(gU.Provider,{value:E,children:t})},Sm=function(){return U.useContext(gU)},mX=["onToggle","open","children"],gX=["onToggle","open","children"],yX=U.forwardRef(function(e,t){var r=e.onToggle,a=e.open,l=a===void 0?!1:a,u=e.children,f=Vn(e,mX),p=Sm(),m=p.isOpen,y=p.setIsOpen,E=p.onToggle,S=p.setOnToggle;return U.useEffect(function(){E===null&&r&&S(r)},[E,r,S]),U.useEffect(function(){y(l)},[l]),le.jsx(_X,ve(ve({},f),{},{open:m,ref:t,children:u}))}),_X=Mt.div.withConfig({displayName:"SideBar__GridContainer",componentId:"sc-a84pkc-0"})(function(n){var e=n.theme,t=n.open;return pn(["box-sizing:content-box;"," display:grid;grid-template-rows:1fr auto;height:100%;grid-template-areas:'content' 'footer';background-color:",";overflow:auto;width:",";min-width:",";",""],Il(e.border),e.background,t?e.maxWidth:e.minWidth,t?e.maxWidth:e.minWidth,!t&&pn(["scrollbar-width:none;&::-webkit-scrollbar{display:none;}"]))}),yU=U.forwardRef(function(n,e){var t=n.onToggle,r=n.open,a=r===void 0?!1:r,l=n.children,u=Vn(n,gX),f=Hw(),p=f.density,m=$w({density:p},sf),y=ve({onToggle:t,open:a,children:l},u);return le.jsx(Mw,{theme:m,children:le.jsx(vX,{children:le.jsx(yX,ve(ve({},y),{},{ref:e}))})})});yU.displayName="SideBar";var CX=["icon","label","active","onClick","as"],_U=sf.entities.sidebarItem,EX=_U.typography.color,wX=_U.states.active.typography.color,CU=Mt.a.withConfig({displayName:"SidebarLink__Container",componentId:"sc-gbehcj-0"})(function(n){var e=n.theme,t=n.$active,r=e.minWidth,a=e.entities.sidebarItem,l=a.minHeight,u=a.border,f=a.states,p=f.active.background,m=f.hover.background,y=f.focus,E=f.disabled,S=E.background,T=E.typography.color;return pn(["background-color:",";display:grid;grid-template-columns:"," 1fr;width:100%;padding:0;place-items:center;border:0;"," text-decoration:none;min-height:",";&:hover{cursor:pointer;background-color:",";}&:disabled{background-color:",";color:",";cursor:not-allowed;& > p{color:",";}& > svg{fill:",";}}&:focus-visible{",";}"],t?p:"transparent",r,Il(u),l,t?p:m,S,T,T,T,Bc(y.outline))}),bX=Mt(cp).withConfig({displayName:"SidebarLink__ItemText",componentId:"sc-gbehcj-1"})(function(n){var e=n.theme,t=n.$active,r=e.entities.sidebarItem,a=r.typography.color,l=r.states.active.typography.color;return pn(["justify-self:start;color:",";&::first-letter{text-transform:capitalize;}"],t?l:a)}),SX=Mt(N_).withConfig({displayName:"SidebarLink__Tooltip",componentId:"sc-gbehcj-2"})(["text-transform:capitalize;"]),EU=U.forwardRef(function(e,t){var r=e.icon,a=e.label,l=e.active,u=e.onClick,f=e.as,p=f===void 0?"a":f,m=Vn(e,CX),y=Sm(),E=y.isOpen,S=function(){return l?wX:EX};return E?le.jsxs(CU,ve(ve({as:p,tabIndex:0,$active:l,onClick:u,ref:t},m),{},{children:[r&&le.jsx(Gs,{data:r,color:S()}),le.jsx(bX,{variant:"cell_text",group:"table",$active:l,children:a})]})):le.jsx(SX,{title:a,placement:"right",children:le.jsx(CU,ve(ve({tabIndex:0,as:p,$active:l,onClick:u,ref:t},m),{},{children:r&&le.jsx(Gs,{data:r,color:S()})}))})});EU.displayName="SidebarLink";var TX=["children"],RX=Mt.div.withConfig({displayName:"SideBarContent__StyledSideBarContent",componentId:"sc-kq9ra8-0"})(function(){return pn(["grid-area:content;"])}),kX=U.forwardRef(function(e,t){var r=e.children,a=Vn(e,TX),l=ve({ref:t},a);return le.jsx(RX,ve(ve({},l),{},{children:r}))}),AX=["children"],xX=Mt.div.withConfig({displayName:"SideBarFooter__StyledSideBarFooter",componentId:"sc-1hsu72u-0"})(function(){return pn(["grid-area:footer;"])}),IX=U.forwardRef(function(e,t){var r=e.children,a=Vn(e,AX),l=ve({ref:t},a);return le.jsx(xX,ve(ve({},l),{},{children:r}))}),OX=sf.entities.toggleOpen.typography.color,NX=Mt.div.withConfig({displayName:"SideBarToggle__ToggleContainer",componentId:"sc-1w5e44y-0"})(function(n){var e=n.theme,t=e.minWidth,r=e.entities.toggleOpen.spacings,a=r.top,l=r.bottom;return pn(["width:",";display:grid;place-items:center;margin-block-start:",";margin-block-end:",";"],t,a,l)}),MX=U.forwardRef(function(e,t){var r=Yk({},(K7(e),e)),a=ve(ve({},r),{},{ref:t}),l=Sm(),u=l.isOpen,f=l.setIsOpen;return le.jsx(NX,ve(ve({open:u},a),{},{children:le.jsx(N_,{title:u?"Collapse":"Expand",placement:"right",children:le.jsx(rf,{variant:"ghost_icon",onClick:function(){return f(!u)},"aria-label":u?"Collapse":"Expand",children:le.jsx(Gs,{size:24,data:u?sY:rY,color:OX})})})}))}),PX=["label","icon","style","className"],wU=sf.entities.actionButton.typography.color,bU=Mt.div.withConfig({displayName:"SideBarButton__MenuButtonContainer",componentId:"sc-15xlkyo-0"})(function(n){var e=n.open,t=n.theme,r=t.entities.actionButton.spacings,a=r.right,l=r.left,u=r.top,f=r.bottom;return pn(["display:",";grid-template-columns:"," 1fr ",";justify-content:center;align-items:center;margin-block-start:",";margin-block-end:",";box-sizing:border-box;"],e?"grid":"flex",l,a,u,f)}),DX=Mt(rf).withConfig({displayName:"SideBarButton__ExtendedButton",componentId:"sc-15xlkyo-1"})(function(){return pn(["height:40px;grid-column:2;width:fit-content;"])}),LX=U.forwardRef(function(e,t){var r=e.label,a=e.icon,l=e.style,u=e.className,f=Vn(e,PX),p=ve(ve({},f),{},{ref:t}),m={style:l,className:u},y=Sm(),E=y.isOpen;return E?le.jsx(bU,ve(ve({open:E},m),{},{children:le.jsxs(DX,ve(ve({open:!0,variant:"contained"},p),{},{children:[le.jsx(Gs,{data:a,color:wU})," ",r]}))})):le.jsx(N_,{title:r,placement:"right",children:le.jsx(bU,ve(ve({open:E},m),{},{children:le.jsx(rf,ve(ve({variant:"contained_icon"},p),{},{children:le.jsx(Gs,{data:a,color:wU})}))}))})}),UX=["icon","label","isExpanded","id","active","toggleExpand","onClick","children","disabled"],SU=sf.minWidth,ob=sf.entities.sidebarItem,uA=ob.minHeight,TU=ob.border,FX=ob.typography.color,ab=ob.states,RU=ab.active,cA=RU.background,$X=RU.typography.color,kU=ab.hover.background,AU=ab.focus,xU=ab.disabled,HX=xU.background,jX=xU.typography.color,IU=Mt.div.withConfig({displayName:"SideBarAccordion__MenuItem",componentId:"sc-1ekwnbi-0"})(function(n){var e=n.$isExpanded;return pn(["display:grid;grid-template-columns:1fr;place-items:center;text-decoration:none;min-height:",";",";&:hover{cursor:pointer;background-color:",";}&:focus-visible{",";}"],uA,!e&&Il(TU),e?"none":kU,Bc(AU.outline))}),OU=Mt.h2.withConfig({displayName:"SideBarAccordion__AccordionHeader",componentId:"sc-1ekwnbi-1"})(function(n){var e=n.$active;return pn(["margin:0;width:100%;min-height:",";background-color:",";&:hover{cursor:pointer;background-color:",";}"],uA,e?cA:"none",e?cA:kU)}),NU=Mt.button.withConfig({displayName:"SideBarAccordion__Button",componentId:"sc-1ekwnbi-2"})(function(n){var e=n.$active;return pn(["width:100%;min-height:",";padding:0;border:none;background-color:",";cursor:pointer;display:grid;place-items:center;&:focus-visible{",";}&:disabled{background-color:",";cursor:auto;}"],uA,e?cA:"transparent",Bc(AU.outline),HX)}),zX=Mt(NU).withConfig({displayName:"SideBarAccordion__OpenSidebarButton",componentId:"sc-1ekwnbi-3"})(["grid-template-columns:"," 1fr 48px;"],SU),BX=Mt(NU).withConfig({displayName:"SideBarAccordion__ClosedSidebarButton",componentId:"sc-1ekwnbi-4"})(["grid-template-columns:",";position:relative;overflow:hidden;"],SU),qX=Mt(Gs).withConfig({displayName:"SideBarAccordion__AccordionIcon",componentId:"sc-1ekwnbi-5"})(["position:absolute;bottom:-10px;right:-10px;transform:rotate(-45deg);"]),VX=Mt.div.withConfig({displayName:"SideBarAccordion__Panel",componentId:"sc-1ekwnbi-6"})(["width:100%;",""],Il(TU)),KX=Mt(cp).withConfig({displayName:"SideBarAccordion__ItemText",componentId:"sc-1ekwnbi-7"})(function(n){var e=n.$textColor;return pn(["justify-self:start;color:",";&::first-letter{text-transform:capitalize;}"],e)}),GX=Mt(N_).withConfig({displayName:"SideBarAccordion__Tooltip",componentId:"sc-1ekwnbi-8"})(["text-transform:capitalize;"]),MU=U.forwardRef(function(e,t){var r=e.icon,a=e.label,l=e.isExpanded,u=e.id,f=e.active,p=e.toggleExpand,m=e.onClick,y=e.children,E=e.disabled,S=Vn(e,UX),T=qW(u,"accordion"),A=U.useState(!1),I=zc(A,2),P=I[0],D=I[1],L=U.useState(l),j=zc(L,2),F=j[0],V=j[1],Y=U.useState(null),Z=zc(Y,2),Re=Z[0],Ge=Z[1],at=Sm(),Pe=at.isOpen,Be=p!==void 0?l:F,te=U.useMemo(function(){if(f!==void 0)return f;var H=!1;return U.Children.forEach(y,function(ne){var xe=ne;xe.props.active&&(H=!0)}),Pe?!Be&&H:H},[f,y,Be,Pe]),ee=U.useMemo(function(){return T_(Ge,t)},[t]),ye=function(){D(!1)},me=function(){p===void 0?V(!F):p(),m&&m()},he=function(){D(!P),m&&m()},G=function(){return te?$X:E?jX:FX};if(Pe)return le.jsxs(IU,{$isExpanded:Be,children:[le.jsx(OU,{$active:te,children:le.jsxs(zX,ve(ve({ref:t,id:"header_".concat(T),"aria-expanded":Be,"aria-controls":"panel_".concat(T),onClick:me,disabled:E},S),{},{children:[r&&le.jsx(Gs,{data:r,color:G()}),le.jsx(KX,{variant:"cell_text",group:"table",$textColor:G(),children:a}),le.jsx(Gs,{data:Be?oY:iY,size:24,color:G()})]}))}),Be&&le.jsx(VX,{id:"panel_".concat(T),role:"region","aria-labelledby":"header_".concat(T),children:y})]});var ge=P?"":a;return le.jsxs(le.Fragment,{children:[le.jsx(GX,{title:ge,placement:"right",children:le.jsx(IU,{$isExpanded:Be,children:le.jsx(OU,{$active:te,children:le.jsxs(BX,ve(ve({ref:ee,id:"anchor-default","aria-haspopup":"true","aria-expanded":P,"aria-controls":"menu-default",onClick:he,disabled:E},S),{},{children:[r&&le.jsx(Gs,{data:r,color:G()}),le.jsx(qX,{data:aY,size:24,color:G()})]}))})})}),le.jsx(Au,{open:P,placement:"right-start",onClose:ye,anchorEl:Re,children:U.Children.map(y,function(H){var ne=H;return le.jsx(Au.Item,ve(ve({},H.props),{},{children:ne.props.label}))})})]})});MU.displayName="SidebarAccordion";var WX=["label","active","onClick","as"],YX=sf.minWidth,dA=sf.entities.sidebarItem,QX=dA.minHeight,XX=dA.typography.color,fA=dA.states,PU=fA.active,DU=PU.background,JX=PU.typography.color,ZX=fA.focus,eJ=fA.hover.background,tJ=Mt.a.withConfig({displayName:"SideBarAccordionItem__Container",componentId:"sc-1aeo1e1-0"})(function(n){var e=n.$active;return pn(["display:grid;grid-template-columns:"," 1fr;justify-items:stretch;background-color:",";cursor:pointer;text-decoration:none;border:0;width:100%;padding:0;&:hover{background-color:",";}&:focus-visible{",";}"],YX,e?DU:"transparent",e?DU:eJ,Bc(ZX.outline))}),nJ=Mt.div.withConfig({displayName:"SideBarAccordionItem__TextWrapper",componentId:"sc-1aeo1e1-1"})(["min-height:",";grid-column:2;justify-self:start;display:flex;align-items:center;width:100%;"],QX),rJ=Mt(cp).withConfig({displayName:"SideBarAccordionItem__Text",componentId:"sc-1aeo1e1-2"})(function(n){var e=n.$active;return pn(["color:",";width:100%;&::first-letter{text-transform:capitalize;}"],e?JX:XX)}),LU=U.forwardRef(function(e,t){var r=e.label,a=e.active,l=e.onClick,u=e.as,f=u===void 0?"a":u,p=Vn(e,WX),m=Sm(),y=m.isOpen;return y?le.jsx(tJ,ve(ve({as:f,tabIndex:0,$active:a,onClick:l,ref:t},p),{},{children:le.jsx(nJ,{children:le.jsx(rJ,{variant:"cell_text",group:"table",$active:a,children:r})})})):null});LU.displayName="SideBarAccordionItem";var Wi=yU;Wi.Link=EU,Wi.Content=kX,Wi.Footer=IX,Wi.Toggle=MX,Wi.Button=LX,Wi.Accordion=MU,Wi.AccordionItem=LU,Wi.Link.displayName="SideBar.Link",Wi.Content.displayName="SideBar.Content",Wi.Footer.displayName="SideBar.Footer",Wi.Toggle.displayName="SideBar.Toggle",Wi.Button.displayName="SideBar.Button",Wi.Accordion.displayName="SideBar.Accordion",Wi.AccordionItem.displayName="SideBar.AccordionItem";const sb=({children:n,text:e})=>le.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"80%",height:"80vh",overflow:"hidden",flexDirection:"column"},children:[le.jsx(NQ,{size:96*2,variant:"indeterminate",children:n}),le.jsx(cp,{variant:"h4",children:e})]});/**
357
- * React Router v6.15.0
358
- *
359
- * Copyright (c) Remix Software Inc.
360
- *
361
- * This source code is licensed under the MIT license found in the
362
- * LICENSE.md file in the root directory of this source tree.
363
- *
364
- * @license MIT
365
- */function lb(){return lb=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},lb.apply(this,arguments)}const Tm=U.createContext(null);process.env.NODE_ENV!=="production"&&(Tm.displayName="DataRouter");const ub=U.createContext(null);process.env.NODE_ENV!=="production"&&(ub.displayName="DataRouterState");const iJ=U.createContext(null);process.env.NODE_ENV!=="production"&&(iJ.displayName="Await");const xu=U.createContext(null);process.env.NODE_ENV!=="production"&&(xu.displayName="Navigation");const D_=U.createContext(null);process.env.NODE_ENV!=="production"&&(D_.displayName="Location");const Ol=U.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(Ol.displayName="Route");const hA=U.createContext(null);process.env.NODE_ENV!=="production"&&(hA.displayName="RouteError");function oJ(n,e){let{relative:t}=e===void 0?{}:e;L_()||(process.env.NODE_ENV!=="production"?Ut(!1,"useHref() may be used only in the context of a <Router> component."):Ut(!1));let{basename:r,navigator:a}=U.useContext(xu),{hash:l,pathname:u,search:f}=cb(n,{relative:t}),p=u;return r!=="/"&&(p=u==="/"?r:bu([r,u])),a.createHref({pathname:p,search:f,hash:l})}function L_(){return U.useContext(D_)!=null}function Rm(){return L_()||(process.env.NODE_ENV!=="production"?Ut(!1,"useLocation() may be used only in the context of a <Router> component."):Ut(!1)),U.useContext(D_).location}const UU="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function FU(n){U.useContext(xu).static||U.useLayoutEffect(n)}function aJ(){let{isDataRoute:n}=U.useContext(Ol);return n?wJ():sJ()}function sJ(){L_()||(process.env.NODE_ENV!=="production"?Ut(!1,"useNavigate() may be used only in the context of a <Router> component."):Ut(!1));let n=U.useContext(Tm),{basename:e,navigator:t}=U.useContext(xu),{matches:r}=U.useContext(Ol),{pathname:a}=Rm(),l=JSON.stringify(pw(r).map(p=>p.pathnameBase)),u=U.useRef(!1);return FU(()=>{u.current=!0}),U.useCallback(function(p,m){if(m===void 0&&(m={}),process.env.NODE_ENV!=="production"&&oa(u.current,UU),!u.current)return;if(typeof p=="number"){t.go(p);return}let y=G1(p,JSON.parse(l),a,m.relative==="path");n==null&&e!=="/"&&(y.pathname=y.pathname==="/"?e:bu([e,y.pathname])),(m.replace?t.replace:t.push)(y,m.state,m)},[e,t,l,a,n])}const lJ=U.createContext(null);function uJ(n){let e=U.useContext(Ol).outlet;return e&&U.createElement(lJ.Provider,{value:n},e)}function cJ(){let{matches:n}=U.useContext(Ol),e=n[n.length-1];return e?e.params:{}}function cb(n,e){let{relative:t}=e===void 0?{}:e,{matches:r}=U.useContext(Ol),{pathname:a}=Rm(),l=JSON.stringify(pw(r).map(u=>u.pathnameBase));return U.useMemo(()=>G1(n,JSON.parse(l),a,t==="path"),[n,l,a,t])}function dJ(n,e,t){L_()||(process.env.NODE_ENV!=="production"?Ut(!1,"useRoutes() may be used only in the context of a <Router> component."):Ut(!1));let{navigator:r}=U.useContext(xu),{matches:a}=U.useContext(Ol),l=a[a.length-1],u=l?l.params:{},f=l?l.pathname:"/",p=l?l.pathnameBase:"/",m=l&&l.route;if(process.env.NODE_ENV!=="production"){let D=m&&m.path||"";bJ(f,!m||D.endsWith("*"),"You rendered descendant <Routes> (or called `useRoutes()`) at "+('"'+f+'" (under <Route path="'+D+'">) but the ')+`parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
366
-
367
- `+('Please change the parent <Route path="'+D+'"> to <Route ')+('path="'+(D==="/"?"*":D+"/*")+'">.'))}let y=Rm(),E;if(e){var S;let D=typeof e=="string"?Rl(e):e;p==="/"||(S=D.pathname)!=null&&S.startsWith(p)||(process.env.NODE_ENV!=="production"?Ut(!1,"When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was "+('matched by all parent routes. The current pathname base is "'+p+'" ')+('but pathname "'+D.pathname+'" was given in the `location` prop.')):Ut(!1)),E=D}else E=y;let T=E.pathname||"/",A=p==="/"?T:T.slice(p.length)||"/",I=em(n,{pathname:A});process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&oa(m||I!=null,'No routes matched location "'+E.pathname+E.search+E.hash+'" '),process.env.NODE_ENV!=="production"&&oa(I==null||I[I.length-1].route.element!==void 0||I[I.length-1].route.Component!==void 0,'Matched leaf route at location "'+E.pathname+E.search+E.hash+'" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));let P=mJ(I&&I.map(D=>Object.assign({},D,{params:Object.assign({},u,D.params),pathname:bu([p,r.encodeLocation?r.encodeLocation(D.pathname).pathname:D.pathname]),pathnameBase:D.pathnameBase==="/"?p:bu([p,r.encodeLocation?r.encodeLocation(D.pathnameBase).pathname:D.pathnameBase])})),a,t);return e&&P?U.createElement(D_.Provider,{value:{location:lb({pathname:"/",search:"",hash:"",state:null,key:"default"},E),navigationType:Ur.Pop}},P):P}function fJ(){let n=EJ(),e=pD(n)?n.status+" "+n.statusText:n instanceof Error?n.message:JSON.stringify(n),t=n instanceof Error?n.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},l={padding:"2px 4px",backgroundColor:r},u=null;return process.env.NODE_ENV!=="production"&&(console.error("Error handled by React Router default ErrorBoundary:",n),u=U.createElement(U.Fragment,null,U.createElement("p",null,"💿 Hey developer 👋"),U.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",U.createElement("code",{style:l},"ErrorBoundary")," or"," ",U.createElement("code",{style:l},"errorElement")," prop on your route."))),U.createElement(U.Fragment,null,U.createElement("h2",null,"Unexpected Application Error!"),U.createElement("h3",{style:{fontStyle:"italic"}},e),t?U.createElement("pre",{style:a},t):null,u)}const hJ=U.createElement(fJ,null);class pJ extends U.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?U.createElement(Ol.Provider,{value:this.props.routeContext},U.createElement(hA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function vJ(n){let{routeContext:e,match:t,children:r}=n,a=U.useContext(Tm);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),U.createElement(Ol.Provider,{value:e},r)}function mJ(n,e,t){var r;if(e===void 0&&(e=[]),t===void 0&&(t=null),n==null){var a;if((a=t)!=null&&a.errors)n=t.matches;else return null}let l=n,u=(r=t)==null?void 0:r.errors;if(u!=null){let f=l.findIndex(p=>p.route.id&&(u==null?void 0:u[p.route.id]));f>=0||(process.env.NODE_ENV!=="production"?Ut(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(u).join(",")):Ut(!1)),l=l.slice(0,Math.min(l.length,f+1))}return l.reduceRight((f,p,m)=>{let y=p.route.id?u==null?void 0:u[p.route.id]:null,E=null;t&&(E=p.route.errorElement||hJ);let S=e.concat(l.slice(0,m+1)),T=()=>{let A;return y?A=E:p.route.Component?A=U.createElement(p.route.Component,null):p.route.element?A=p.route.element:A=f,U.createElement(vJ,{match:p,routeContext:{outlet:f,matches:S,isDataRoute:t!=null},children:A})};return t&&(p.route.ErrorBoundary||p.route.errorElement||m===0)?U.createElement(pJ,{location:t.location,revalidation:t.revalidation,component:E,error:y,children:T(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):T()},null)}var $U=function(n){return n.UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n}($U||{}),U_=function(n){return n.UseBlocker="useBlocker",n.UseLoaderData="useLoaderData",n.UseActionData="useActionData",n.UseRouteError="useRouteError",n.UseNavigation="useNavigation",n.UseRouteLoaderData="useRouteLoaderData",n.UseMatches="useMatches",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n.UseRouteId="useRouteId",n}(U_||{});function pA(n){return n+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function gJ(n){let e=U.useContext(Tm);return e||(process.env.NODE_ENV!=="production"?Ut(!1,pA(n)):Ut(!1)),e}function yJ(n){let e=U.useContext(ub);return e||(process.env.NODE_ENV!=="production"?Ut(!1,pA(n)):Ut(!1)),e}function _J(n){let e=U.useContext(Ol);return e||(process.env.NODE_ENV!=="production"?Ut(!1,pA(n)):Ut(!1)),e}function vA(n){let e=_J(n),t=e.matches[e.matches.length-1];return t.route.id||(process.env.NODE_ENV!=="production"?Ut(!1,n+' can only be used on routes that contain a unique "id"'):Ut(!1)),t.route.id}function CJ(){return vA(U_.UseRouteId)}function EJ(){var n;let e=U.useContext(hA),t=yJ(U_.UseRouteError),r=vA(U_.UseRouteError);return e||((n=t.errors)==null?void 0:n[r])}function wJ(){let{router:n}=gJ($U.UseNavigateStable),e=vA(U_.UseNavigateStable),t=U.useRef(!1);return FU(()=>{t.current=!0}),U.useCallback(function(a,l){l===void 0&&(l={}),process.env.NODE_ENV!=="production"&&oa(t.current,UU),t.current&&(typeof a=="number"?n.navigate(a):n.navigate(a,lb({fromRouteId:e},l)))},[n,e])}const HU={};function bJ(n,e,t){!e&&!HU[n]&&(HU[n]=!0,process.env.NODE_ENV!=="production"&&oa(!1,t))}const jU=aR["startTransition"];function SJ(n){let{fallbackElement:e,router:t,future:r}=n,[a,l]=U.useState(t.state),{v7_startTransition:u}=r||{},f=U.useCallback(E=>{u&&jU?jU(()=>l(E)):l(E)},[l,u]);U.useLayoutEffect(()=>t.subscribe(f),[t,f]);let p=U.useMemo(()=>({createHref:t.createHref,encodeLocation:t.encodeLocation,go:E=>t.navigate(E),push:(E,S,T)=>t.navigate(E,{state:S,preventScrollReset:T==null?void 0:T.preventScrollReset}),replace:(E,S,T)=>t.navigate(E,{replace:!0,state:S,preventScrollReset:T==null?void 0:T.preventScrollReset})}),[t]),m=t.basename||"/",y=U.useMemo(()=>({router:t,navigator:p,static:!1,basename:m}),[t,p,m]);return U.createElement(U.Fragment,null,U.createElement(Tm.Provider,{value:y},U.createElement(ub.Provider,{value:a},U.createElement(kJ,{basename:m,location:a.location,navigationType:a.historyAction,navigator:p},a.initialized?U.createElement(TJ,{routes:t.routes,state:a}):e))),null)}function TJ(n){let{routes:e,state:t}=n;return dJ(e,void 0,t)}function RJ(n){return uJ(n.context)}function kJ(n){let{basename:e="/",children:t=null,location:r,navigationType:a=Ur.Pop,navigator:l,static:u=!1}=n;L_()&&(process.env.NODE_ENV!=="production"?Ut(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):Ut(!1));let f=e.replace(/^\/*/,"/"),p=U.useMemo(()=>({basename:f,navigator:l,static:u}),[f,l,u]);typeof r=="string"&&(r=Rl(r));let{pathname:m="/",search:y="",hash:E="",state:S=null,key:T="default"}=r,A=U.useMemo(()=>{let I=Gd(m,f);return I==null?null:{location:{pathname:I,search:y,hash:E,state:S,key:T},navigationType:a}},[f,m,y,E,S,T,a]);return process.env.NODE_ENV!=="production"&&oa(A!=null,'<Router basename="'+f+'"> is not able to match the URL '+('"'+m+y+E+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),A==null?null:U.createElement(xu.Provider,{value:p},U.createElement(D_.Provider,{children:t,value:A}))}new Promise(()=>{});/**
368
- * React Router DOM v6.15.0
369
- *
370
- * Copyright (c) Remix Software Inc.
371
- *
372
- * This source code is licensed under the MIT license found in the
373
- * LICENSE.md file in the root directory of this source tree.
374
- *
375
- * @license MIT
376
- */function dp(){return dp=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},dp.apply(this,arguments)}function mA(n,e){if(n==null)return{};var t={},r=Object.keys(n),a,l;for(l=0;l<r.length;l++)a=r[l],!(e.indexOf(a)>=0)&&(t[a]=n[a]);return t}const db="get",fb="application/x-www-form-urlencoded";function hb(n){return n!=null&&typeof n.tagName=="string"}function AJ(n){return hb(n)&&n.tagName.toLowerCase()==="button"}function xJ(n){return hb(n)&&n.tagName.toLowerCase()==="form"}function IJ(n){return hb(n)&&n.tagName.toLowerCase()==="input"}function OJ(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function NJ(n,e){return n.button===0&&(!e||e==="_self")&&!OJ(n)}let pb=null;function MJ(){if(pb===null)try{new FormData(document.createElement("form"),0),pb=!1}catch{pb=!0}return pb}const PJ=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function gA(n){return n!=null&&!PJ.has(n)?(process.env.NODE_ENV!=="production"&&oa(!1,'"'+n+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+fb+'"')),null):n}function DJ(n,e){let t,r,a,l,u;if(xJ(n)){let f=n.getAttribute("action");r=f?Gd(f,e):null,t=n.getAttribute("method")||db,a=gA(n.getAttribute("enctype"))||fb,l=new FormData(n)}else if(AJ(n)||IJ(n)&&(n.type==="submit"||n.type==="image")){let f=n.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=n.getAttribute("formaction")||f.getAttribute("action");if(r=p?Gd(p,e):null,t=n.getAttribute("formmethod")||f.getAttribute("method")||db,a=gA(n.getAttribute("formenctype"))||gA(f.getAttribute("enctype"))||fb,l=new FormData(f,n),!MJ()){let{name:m,type:y,value:E}=n;if(y==="image"){let S=m?m+".":"";l.append(S+"x","0"),l.append(S+"y","0")}else m&&l.append(m,E)}}else{if(hb(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');t=db,r=null,a=fb,u=n}return l&&a==="text/plain"&&(u=l,l=void 0),{action:r,method:t.toLowerCase(),encType:a,formData:l,body:u}}const LJ=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],UJ=["aria-current","caseSensitive","className","end","style","to","children"],FJ=["reloadDocument","replace","state","method","action","onSubmit","submit","relative","preventScrollReset"];process.env.NODE_ENV;const $J=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",HJ=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yA=U.forwardRef(function(e,t){let{onClick:r,relative:a,reloadDocument:l,replace:u,state:f,target:p,to:m,preventScrollReset:y}=e,E=mA(e,LJ),{basename:S}=U.useContext(xu),T,A=!1;if(typeof m=="string"&&HJ.test(m)&&(T=m,$J))try{let L=new URL(window.location.href),j=m.startsWith("//")?new URL(L.protocol+m):new URL(m),F=Gd(j.pathname,S);j.origin===L.origin&&F!=null?m=F+j.search+j.hash:A=!0}catch{process.env.NODE_ENV!=="production"&&oa(!1,'<Link to="'+m+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let I=oJ(m,{relative:a}),P=VJ(m,{replace:u,state:f,target:p,preventScrollReset:y,relative:a});function D(L){r&&r(L),L.defaultPrevented||P(L)}return U.createElement("a",dp({},E,{href:T||I,onClick:A||l?r:D,ref:t,target:p}))});process.env.NODE_ENV!=="production"&&(yA.displayName="Link");const jJ=U.forwardRef(function(e,t){let{"aria-current":r="page",caseSensitive:a=!1,className:l="",end:u=!1,style:f,to:p,children:m}=e,y=mA(e,UJ),E=cb(p,{relative:y.relative}),S=Rm(),T=U.useContext(ub),{navigator:A}=U.useContext(xu),I=A.encodeLocation?A.encodeLocation(E).pathname:E.pathname,P=S.pathname,D=T&&T.navigation&&T.navigation.location?T.navigation.location.pathname:null;a||(P=P.toLowerCase(),D=D?D.toLowerCase():null,I=I.toLowerCase());let L=P===I||!u&&P.startsWith(I)&&P.charAt(I.length)==="/",j=D!=null&&(D===I||!u&&D.startsWith(I)&&D.charAt(I.length)==="/"),F=L?r:void 0,V;typeof l=="function"?V=l({isActive:L,isPending:j}):V=[l,L?"active":null,j?"pending":null].filter(Boolean).join(" ");let Y=typeof f=="function"?f({isActive:L,isPending:j}):f;return U.createElement(yA,dp({},y,{"aria-current":F,className:V,ref:t,style:Y,to:p}),typeof m=="function"?m({isActive:L,isPending:j}):m)});process.env.NODE_ENV!=="production"&&(jJ.displayName="NavLink");const zJ=U.forwardRef((n,e)=>{let t=GJ();return U.createElement(zU,dp({},n,{submit:t,ref:e}))});process.env.NODE_ENV!=="production"&&(zJ.displayName="Form");const zU=U.forwardRef((n,e)=>{let{reloadDocument:t,replace:r,state:a,method:l=db,action:u,onSubmit:f,submit:p,relative:m,preventScrollReset:y}=n,E=mA(n,FJ),S=l.toLowerCase()==="get"?"get":"post",T=WJ(u,{relative:m}),A=I=>{if(f&&f(I),I.defaultPrevented)return;I.preventDefault();let P=I.nativeEvent.submitter,D=(P==null?void 0:P.getAttribute("formmethod"))||l;p(P||I.currentTarget,{method:D,replace:r,state:a,relative:m,preventScrollReset:y})};return U.createElement("form",dp({ref:e,method:S,action:T,onSubmit:t?f:A},E))});process.env.NODE_ENV!=="production"&&(zU.displayName="FormImpl"),process.env.NODE_ENV;var _A;(function(n){n.UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher"})(_A||(_A={}));var BU;(function(n){n.UseFetchers="useFetchers",n.UseScrollRestoration="useScrollRestoration"})(BU||(BU={}));function BJ(n){return n+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function qJ(n){let e=U.useContext(Tm);return e||(process.env.NODE_ENV!=="production"?Ut(!1,BJ(n)):Ut(!1)),e}function VJ(n,e){let{target:t,replace:r,state:a,preventScrollReset:l,relative:u}=e===void 0?{}:e,f=aJ(),p=Rm(),m=cb(n,{relative:u});return U.useCallback(y=>{if(NJ(y,t)){y.preventDefault();let E=r!==void 0?r:wu(p)===wu(m);f(n,{replace:E,state:a,preventScrollReset:l,relative:u})}},[p,f,m,r,a,t,n,l,u])}function KJ(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}function GJ(){let{router:n}=qJ(_A.UseSubmit),{basename:e}=U.useContext(xu),t=CJ();return U.useCallback(function(r,a){a===void 0&&(a={}),KJ();let{action:l,method:u,encType:f,formData:p,body:m}=DJ(r,e);n.navigate(a.action||l,{preventScrollReset:a.preventScrollReset,formData:p,body:m,formMethod:a.method||u,formEncType:a.encType||f,replace:a.replace,state:a.state,fromRouteId:t})},[n,e,t])}function WJ(n,e){let{relative:t}=e===void 0?{}:e,{basename:r}=U.useContext(xu),a=U.useContext(Ol);a||(process.env.NODE_ENV!=="production"?Ut(!1,"useFormAction must be used inside a RouteContext"):Ut(!1));let[l]=a.matches.slice(-1),u=dp({},cb(n||".",{relative:t})),f=Rm();if(n==null&&(u.search=f.search,l.route.index)){let p=new URLSearchParams(u.search);p.delete("index"),u.search=p.toString()?"?"+p.toString():""}return(!n||n===".")&&l.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(u.pathname=u.pathname==="/"?r:bu([r,u.pathname])),wu(u)}const CA=({error:n})=>le.jsxs(Ts,{variant:"warning",style:{width:800},children:[le.jsx(Ts.Header,{children:le.jsx(cp,{variant:"h4",color:"warning",children:n.message})}),le.jsx(Ts.Content,{children:le.jsx("pre",{style:{whiteSpace:"pre-wrap"},children:n.stack??"Error"})})]}),YJ=(n,e,t)=>{U.useLayoutEffect(()=>{const r=n.subscribe(e);return r.add(t),()=>r.unsubscribe()},[n,e])};function qU(n,e){const[t,r]=U.useState(()=>e!=null&&e.initial?"value"in n?n.value:e.initial:void 0),[a,l]=U.useState(null),[u,f]=U.useState(!1);U.useLayoutEffect(()=>{l(null),f(!1),r("value"in n?n.value:void 0)},[r,l,f,n]);const p=U.useMemo(()=>({next:r,error:l,complete:()=>f(!0)}),[r,l,f]);return YJ(n,p,e==null?void 0:e.teardown),{value:t,error:a,complete:u}}const VU=()=>{const n=d_().modules.app;if(!n)throw Error("Current framework does not have AppModule configured");const e=U.useMemo(()=>n.current$,[n]),{value:t,error:r}=qU(e);return{currentApp:t,setCurrentApp:U.useMemo(()=>n.setCurrentApp.bind(n),[n]),clearCurrentApp:U.useMemo(()=>n.clearCurrentApp.bind(n),[n]),error:r}},QJ=()=>{const n=d_().modules.app;if(!n)throw Error("Current framework does not have AppModule configured");return n},KU=n=>{const e=QJ(),{value:t,complete:r}=qU(U.useMemo(()=>e.getAllAppManifests(),[e]));return{apps:U.useMemo(()=>t&&!(n!=null&&n.includeHidden)?t.filter(l=>!l.hide):t,[n,t]),isLoading:!r}};var vb=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},mb=typeof window>"u"||"Deno"in window;function Nl(){}function XJ(n,e){return typeof n=="function"?n(e):n}function JJ(n){return typeof n=="number"&&n>=0&&n!==1/0}function ZJ(n,e){return Math.max(n+(e||0)-Date.now(),0)}function GU(n,e){const{type:t="all",exact:r,fetchStatus:a,predicate:l,queryKey:u,stale:f}=n;if(u){if(r){if(e.queryHash!==EA(u,e.options))return!1}else if(!$_(e.queryKey,u))return!1}if(t!=="all"){const p=e.isActive();if(t==="active"&&!p||t==="inactive"&&p)return!1}return!(typeof f=="boolean"&&e.isStale()!==f||typeof a<"u"&&a!==e.state.fetchStatus||l&&!l(e))}function WU(n,e){const{exact:t,status:r,predicate:a,mutationKey:l}=n;if(l){if(!e.options.mutationKey)return!1;if(t){if(F_(e.options.mutationKey)!==F_(l))return!1}else if(!$_(e.options.mutationKey,l))return!1}return!(r&&e.state.status!==r||a&&!a(e))}function EA(n,e){return((e==null?void 0:e.queryKeyHashFn)||F_)(n)}function F_(n){return JSON.stringify(n,(e,t)=>wA(t)?Object.keys(t).sort().reduce((r,a)=>(r[a]=t[a],r),{}):t)}function $_(n,e){return n===e?!0:typeof n!=typeof e?!1:n&&e&&typeof n=="object"&&typeof e=="object"?!Object.keys(e).some(t=>!$_(n[t],e[t])):!1}function YU(n,e){if(n===e)return n;const t=QU(n)&&QU(e);if(t||wA(n)&&wA(e)){const r=t?n.length:Object.keys(n).length,a=t?e:Object.keys(e),l=a.length,u=t?[]:{};let f=0;for(let p=0;p<l;p++){const m=t?p:a[p];u[m]=YU(n[m],e[m]),u[m]===n[m]&&f++}return r===l&&f===r?n:u}return e}function QU(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function wA(n){if(!XU(n))return!1;const e=n.constructor;if(typeof e>"u")return!0;const t=e.prototype;return!(!XU(t)||!t.hasOwnProperty("isPrototypeOf"))}function XU(n){return Object.prototype.toString.call(n)==="[object Object]"}function JU(n){return new Promise(e=>{setTimeout(e,n)})}function ZU(n){JU(0).then(n)}function eZ(n,e,t){return typeof t.structuralSharing=="function"?t.structuralSharing(n,e):t.structuralSharing!==!1?YU(n,e):e}function tZ(n,e,t=0){const r=[...n,e];return t&&r.length>t?r.slice(1):r}function nZ(n,e,t=0){const r=[e,...n];return t&&r.length>t?r.slice(0,-1):r}var rZ=(aF=class extends vb{constructor(){super();On(this,fp,void 0);On(this,lf,void 0);On(this,km,void 0);Yt(this,km,e=>{if(!mb&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){Ae(this,lf)||this.setEventListener(Ae(this,km))}onUnsubscribe(){var e;this.hasListeners()||((e=Ae(this,lf))==null||e.call(this),Yt(this,lf,void 0))}setEventListener(e){var t;Yt(this,km,e),(t=Ae(this,lf))==null||t.call(this),Yt(this,lf,e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(e){Ae(this,fp)!==e&&(Yt(this,fp,e),this.onFocus())}onFocus(){this.listeners.forEach(e=>{e()})}isFocused(){var e;return typeof Ae(this,fp)=="boolean"?Ae(this,fp):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},fp=new WeakMap,lf=new WeakMap,km=new WeakMap,aF),bA=new rZ,iZ=(sF=class extends vb{constructor(){super();On(this,Am,!0);On(this,uf,void 0);On(this,xm,void 0);Yt(this,xm,e=>{if(!mb&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}})}onSubscribe(){Ae(this,uf)||this.setEventListener(Ae(this,xm))}onUnsubscribe(){var e;this.hasListeners()||((e=Ae(this,uf))==null||e.call(this),Yt(this,uf,void 0))}setEventListener(e){var t;Yt(this,xm,e),(t=Ae(this,uf))==null||t.call(this),Yt(this,uf,e(this.setOnline.bind(this)))}setOnline(e){Ae(this,Am)!==e&&(Yt(this,Am,e),this.listeners.forEach(r=>{r(e)}))}isOnline(){return Ae(this,Am)}},Am=new WeakMap,uf=new WeakMap,xm=new WeakMap,sF),gb=new iZ;function oZ(n){return Math.min(1e3*2**n,3e4)}function SA(n){return(n??"online")==="online"?gb.isOnline():!0}var eF=class{constructor(n){this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function TA(n){return n instanceof eF}function tF(n){let e=!1,t=0,r=!1,a,l,u;const f=new Promise((P,D)=>{l=P,u=D}),p=P=>{var D;r||(T(new eF(P)),(D=n.abort)==null||D.call(n))},m=()=>{e=!0},y=()=>{e=!1},E=()=>!bA.isFocused()||n.networkMode!=="always"&&!gb.isOnline(),S=P=>{var D;r||(r=!0,(D=n.onSuccess)==null||D.call(n,P),a==null||a(),l(P))},T=P=>{var D;r||(r=!0,(D=n.onError)==null||D.call(n,P),a==null||a(),u(P))},A=()=>new Promise(P=>{var D;a=L=>{const j=r||!E();return j&&P(L),j},(D=n.onPause)==null||D.call(n)}).then(()=>{var P;a=void 0,r||(P=n.onContinue)==null||P.call(n)}),I=()=>{if(r)return;let P;try{P=n.fn()}catch(D){P=Promise.reject(D)}Promise.resolve(P).then(S).catch(D=>{var Y;if(r)return;const L=n.retry??(mb?0:3),j=n.retryDelay??oZ,F=typeof j=="function"?j(t,D):j,V=L===!0||typeof L=="number"&&t<L||typeof L=="function"&&L(t,D);if(e||!V){T(D);return}t++,(Y=n.onFail)==null||Y.call(n,t,D),JU(F).then(()=>{if(E())return A()}).then(()=>{e?T(D):I()})})};return SA(n.networkMode)?I():A().then(I),{promise:f,cancel:p,continue:()=>(a==null?void 0:a())?f:Promise.resolve(),cancelRetry:m,continueRetry:y}}function aZ(){let n=[],e=0,t=y=>{y()},r=y=>{y()};const a=y=>{let E;e++;try{E=y()}finally{e--,e||f()}return E},l=y=>{e?n.push(y):ZU(()=>{t(y)})},u=y=>(...E)=>{l(()=>{y(...E)})},f=()=>{const y=n;n=[],y.length&&ZU(()=>{r(()=>{y.forEach(E=>{t(E)})})})};return{batch:a,batchCalls:u,schedule:l,setNotifyFunction:y=>{t=y},setBatchNotifyFunction:y=>{r=y}}}var Aa=aZ(),nF=(lF=class{constructor(){On(this,hp,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),JJ(this.gcTime)&&Yt(this,hp,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(mb?1/0:5*60*1e3))}clearGcTimeout(){Ae(this,hp)&&(clearTimeout(Ae(this,hp)),Yt(this,hp,void 0))}},hp=new WeakMap,lF),sZ=(uF=class extends nF{constructor(e){super();On(this,Nm);On(this,Ml);On(this,Im,void 0);On(this,Om,void 0);On(this,Ws,void 0);On(this,cf,void 0);On(this,Ys,void 0);On(this,Co,void 0);On(this,H_,void 0);On(this,pp,void 0);Yt(this,pp,!1),Yt(this,H_,e.defaultOptions),fo(this,Nm,iR).call(this,e.options),Yt(this,Co,[]),Yt(this,Ws,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,Yt(this,Im,e.state||lZ(this.options)),this.state=Ae(this,Im),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!Ae(this,Co).length&&this.state.fetchStatus==="idle"&&Ae(this,Ws).remove(this)}setData(e,t){const r=eZ(this.state.data,e,this.options);return fo(this,Ml,Dd).call(this,{data:r,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),r}setState(e,t){fo(this,Ml,Dd).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var r;const t=Ae(this,cf);return(r=Ae(this,Ys))==null||r.cancel(e),t?t.then(Nl).catch(Nl):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Ae(this,Im))}isActive(){return Ae(this,Co).some(e=>e.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||Ae(this,Co).some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!ZJ(this.state.dataUpdatedAt,e)}onFocus(){var t;const e=Ae(this,Co).find(r=>r.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(t=Ae(this,Ys))==null||t.continue()}onOnline(){var t;const e=Ae(this,Co).find(r=>r.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(t=Ae(this,Ys))==null||t.continue()}addObserver(e){Ae(this,Co).includes(e)||(Ae(this,Co).push(e),this.clearGcTimeout(),Ae(this,Ws).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){Ae(this,Co).includes(e)&&(Yt(this,Co,Ae(this,Co).filter(t=>t!==e)),Ae(this,Co).length||(Ae(this,Ys)&&(Ae(this,pp)?Ae(this,Ys).cancel({revert:!0}):Ae(this,Ys).cancelRetry()),this.scheduleGc()),Ae(this,Ws).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return Ae(this,Co).length}invalidate(){this.state.isInvalidated||fo(this,Ml,Dd).call(this,{type:"invalidate"})}fetch(e,t){var m,y,E,S;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(t!=null&&t.cancelRefetch))this.cancel({silent:!0});else if(Ae(this,cf))return(m=Ae(this,Ys))==null||m.continueRetry(),Ae(this,cf)}if(e&&fo(this,Nm,iR).call(this,e),!this.options.queryFn){const T=Ae(this,Co).find(A=>A.options.queryFn);T&&fo(this,Nm,iR).call(this,T.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,a={queryKey:this.queryKey,meta:this.meta},l=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(Yt(this,pp,!0),r.signal)})};l(a);const u=()=>this.options.queryFn?(Yt(this,pp,!1),this.options.persister?this.options.persister(this.options.queryFn,a,this):this.options.queryFn(a)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),f={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};l(f),(y=this.options.behavior)==null||y.onFetch(f,this),Yt(this,Om,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((E=f.fetchOptions)==null?void 0:E.meta))&&fo(this,Ml,Dd).call(this,{type:"fetch",meta:(S=f.fetchOptions)==null?void 0:S.meta});const p=T=>{var A,I,P,D;TA(T)&&T.silent||fo(this,Ml,Dd).call(this,{type:"error",error:T}),TA(T)||((I=(A=Ae(this,Ws).config).onError)==null||I.call(A,T,this),(D=(P=Ae(this,Ws).config).onSettled)==null||D.call(P,this.state.data,T,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Yt(this,Ys,tF({fn:f.fetchFn,abort:r.abort.bind(r),onSuccess:T=>{var A,I,P,D;if(typeof T>"u"){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),p(new Error(`${this.queryHash} data is undefined`));return}this.setData(T),(I=(A=Ae(this,Ws).config).onSuccess)==null||I.call(A,T,this),(D=(P=Ae(this,Ws).config).onSettled)==null||D.call(P,T,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:p,onFail:(T,A)=>{fo(this,Ml,Dd).call(this,{type:"failed",failureCount:T,error:A})},onPause:()=>{fo(this,Ml,Dd).call(this,{type:"pause"})},onContinue:()=>{fo(this,Ml,Dd).call(this,{type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode})),Yt(this,cf,Ae(this,Ys).promise),Ae(this,cf)}},Im=new WeakMap,Om=new WeakMap,Ws=new WeakMap,cf=new WeakMap,Ys=new WeakMap,Co=new WeakMap,H_=new WeakMap,pp=new WeakMap,Nm=new WeakSet,iR=function(e){this.options={...Ae(this,H_),...e},this.updateGcTime(this.options.gcTime)},Ml=new WeakSet,Dd=function(e){const t=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:e.meta??null,fetchStatus:SA(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=e.error;return TA(a)&&a.revert&&Ae(this,Om)?{...Ae(this,Om),fetchStatus:"idle"}:{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),Aa.batch(()=>{Ae(this,Co).forEach(r=>{r.onQueryUpdate()}),Ae(this,Ws).notify({query:this,type:"updated",action:e})})},uF);function lZ(n){const e=typeof n.initialData=="function"?n.initialData():n.initialData,t=typeof e<"u",r=t?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:t?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:t?"success":"pending",fetchStatus:"idle"}}var uZ=(cF=class extends vb{constructor(e={}){super();On(this,Iu,void 0);this.config=e,Yt(this,Iu,new Map)}build(e,t,r){const a=t.queryKey,l=t.queryHash??EA(a,t);let u=this.get(l);return u||(u=new sZ({cache:this,queryKey:a,queryHash:l,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(a)}),this.add(u)),u}add(e){Ae(this,Iu).has(e.queryHash)||(Ae(this,Iu).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=Ae(this,Iu).get(e.queryHash);t&&(e.destroy(),t===e&&Ae(this,Iu).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Aa.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return Ae(this,Iu).get(e)}getAll(){return[...Ae(this,Iu).values()]}find(e){const t={exact:!0,...e};return this.getAll().find(r=>GU(t,r))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(r=>GU(e,r)):t}notify(e){Aa.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Aa.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Aa.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Iu=new WeakMap,cF),cZ=(dF=class extends nF{constructor(e){super();On(this,Nu);On(this,Ou,void 0);On(this,j_,void 0);On(this,Rs,void 0);On(this,Mm,void 0);this.mutationId=e.mutationId,Yt(this,j_,e.defaultOptions),Yt(this,Rs,e.mutationCache),Yt(this,Ou,[]),this.state=e.state||dZ(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...Ae(this,j_),...e},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){Ae(this,Ou).includes(e)||(Ae(this,Ou).push(e),this.clearGcTimeout(),Ae(this,Rs).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){Yt(this,Ou,Ae(this,Ou).filter(t=>t!==e)),this.scheduleGc(),Ae(this,Rs).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){Ae(this,Ou).length||(this.state.status==="pending"?this.scheduleGc():Ae(this,Rs).remove(this))}continue(){var e;return((e=Ae(this,Mm))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var a,l,u,f,p,m,y,E,S,T,A,I,P,D,L,j,F,V,Y,Z;const t=()=>(Yt(this,Mm,tF({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(Re,Ge)=>{fo(this,Nu,_h).call(this,{type:"failed",failureCount:Re,error:Ge})},onPause:()=>{fo(this,Nu,_h).call(this,{type:"pause"})},onContinue:()=>{fo(this,Nu,_h).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),Ae(this,Mm).promise),r=this.state.status==="pending";try{if(!r){fo(this,Nu,_h).call(this,{type:"pending",variables:e}),await((l=(a=Ae(this,Rs).config).onMutate)==null?void 0:l.call(a,e,this));const Ge=await((f=(u=this.options).onMutate)==null?void 0:f.call(u,e));Ge!==this.state.context&&fo(this,Nu,_h).call(this,{type:"pending",context:Ge,variables:e})}const Re=await t();return await((m=(p=Ae(this,Rs).config).onSuccess)==null?void 0:m.call(p,Re,e,this.state.context,this)),await((E=(y=this.options).onSuccess)==null?void 0:E.call(y,Re,e,this.state.context)),await((T=(S=Ae(this,Rs).config).onSettled)==null?void 0:T.call(S,Re,null,this.state.variables,this.state.context,this)),await((I=(A=this.options).onSettled)==null?void 0:I.call(A,Re,null,e,this.state.context)),fo(this,Nu,_h).call(this,{type:"success",data:Re}),Re}catch(Re){try{throw await((D=(P=Ae(this,Rs).config).onError)==null?void 0:D.call(P,Re,e,this.state.context,this)),await((j=(L=this.options).onError)==null?void 0:j.call(L,Re,e,this.state.context)),await((V=(F=Ae(this,Rs).config).onSettled)==null?void 0:V.call(F,void 0,Re,this.state.variables,this.state.context,this)),await((Z=(Y=this.options).onSettled)==null?void 0:Z.call(Y,void 0,Re,e,this.state.context)),Re}finally{fo(this,Nu,_h).call(this,{type:"error",error:Re})}}}},Ou=new WeakMap,j_=new WeakMap,Rs=new WeakMap,Mm=new WeakMap,Nu=new WeakSet,_h=function(e){const t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!SA(this.options.networkMode),status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Aa.batch(()=>{Ae(this,Ou).forEach(r=>{r.onMutationUpdate(e)}),Ae(this,Rs).notify({mutation:this,type:"updated",action:e})})},dF);function dZ(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var fZ=(fF=class extends vb{constructor(e={}){super();On(this,Qs,void 0);On(this,z_,void 0);On(this,vp,void 0);this.config=e,Yt(this,Qs,[]),Yt(this,z_,0)}build(e,t,r){const a=new cZ({mutationCache:this,mutationId:++rR(this,z_)._,options:e.defaultMutationOptions(t),state:r});return this.add(a),a}add(e){Ae(this,Qs).push(e),this.notify({type:"added",mutation:e})}remove(e){Yt(this,Qs,Ae(this,Qs).filter(t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){Aa.batch(()=>{Ae(this,Qs).forEach(e=>{this.remove(e)})})}getAll(){return Ae(this,Qs)}find(e){const t={exact:!0,...e};return Ae(this,Qs).find(r=>WU(t,r))}findAll(e={}){return Ae(this,Qs).filter(t=>WU(e,t))}notify(e){Aa.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){return Yt(this,vp,(Ae(this,vp)??Promise.resolve()).then(()=>{const e=Ae(this,Qs).filter(t=>t.state.isPaused);return Aa.batch(()=>e.reduce((t,r)=>t.then(()=>r.continue().catch(Nl)),Promise.resolve()))}).then(()=>{Yt(this,vp,void 0)})),Ae(this,vp)}},Qs=new WeakMap,z_=new WeakMap,vp=new WeakMap,fF);function hZ(n){return{onFetch:(e,t)=>{const r=async()=>{var A,I,P,D,L;const a=e.options,l=(P=(I=(A=e.fetchOptions)==null?void 0:A.meta)==null?void 0:I.fetchMore)==null?void 0:P.direction,u=((D=e.state.data)==null?void 0:D.pages)||[],f=((L=e.state.data)==null?void 0:L.pageParams)||[],p={pages:[],pageParams:[]};let m=!1;const y=j=>{Object.defineProperty(j,"signal",{enumerable:!0,get:()=>(e.signal.aborted?m=!0:e.signal.addEventListener("abort",()=>{m=!0}),e.signal)})},E=e.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${e.options.queryHash}'`))),S=async(j,F,V)=>{if(m)return Promise.reject();if(F==null&&j.pages.length)return Promise.resolve(j);const Y={queryKey:e.queryKey,pageParam:F,direction:V?"backward":"forward",meta:e.options.meta};y(Y);const Z=await E(Y),{maxPages:Re}=e.options,Ge=V?nZ:tZ;return{pages:Ge(j.pages,Z,Re),pageParams:Ge(j.pageParams,F,Re)}};let T;if(l&&u.length){const j=l==="backward",F=j?pZ:rF,V={pages:u,pageParams:f},Y=F(a,V);T=await S(V,Y,j)}else{T=await S(p,f[0]??a.initialPageParam);const j=n??u.length;for(let F=1;F<j;F++){const V=rF(a,T);T=await S(T,V)}}return T};e.options.persister?e.fetchFn=()=>{var a,l;return(l=(a=e.options).persister)==null?void 0:l.call(a,r,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},t)}:e.fetchFn=r}}}function rF(n,{pages:e,pageParams:t}){const r=e.length-1;return n.getNextPageParam(e[r],e,t[r],t)}function pZ(n,{pages:e,pageParams:t}){var r;return(r=n.getPreviousPageParam)==null?void 0:r.call(n,e[0],e,t[0],t)}var vZ=(hF=class{constructor(n={}){On(this,Yi,void 0);On(this,df,void 0);On(this,ff,void 0);On(this,Pm,void 0);On(this,Dm,void 0);On(this,hf,void 0);On(this,Lm,void 0);On(this,Um,void 0);Yt(this,Yi,n.queryCache||new uZ),Yt(this,df,n.mutationCache||new fZ),Yt(this,ff,n.defaultOptions||{}),Yt(this,Pm,new Map),Yt(this,Dm,new Map),Yt(this,hf,0)}mount(){rR(this,hf)._++,Ae(this,hf)===1&&(Yt(this,Lm,bA.subscribe(()=>{bA.isFocused()&&(this.resumePausedMutations(),Ae(this,Yi).onFocus())})),Yt(this,Um,gb.subscribe(()=>{gb.isOnline()&&(this.resumePausedMutations(),Ae(this,Yi).onOnline())})))}unmount(){var n,e;rR(this,hf)._--,Ae(this,hf)===0&&((n=Ae(this,Lm))==null||n.call(this),Yt(this,Lm,void 0),(e=Ae(this,Um))==null||e.call(this),Yt(this,Um,void 0))}isFetching(n){return Ae(this,Yi).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return Ae(this,df).findAll({...n,status:"pending"}).length}getQueryData(n){var e;return(e=Ae(this,Yi).find({queryKey:n}))==null?void 0:e.state.data}ensureQueryData(n){const e=this.getQueryData(n.queryKey);return e?Promise.resolve(e):this.fetchQuery(n)}getQueriesData(n){return this.getQueryCache().findAll(n).map(({queryKey:e,state:t})=>{const r=t.data;return[e,r]})}setQueryData(n,e,t){const r=Ae(this,Yi).find({queryKey:n}),a=r==null?void 0:r.state.data,l=XJ(e,a);if(typeof l>"u")return;const u=this.defaultQueryOptions({queryKey:n});return Ae(this,Yi).build(this,u).setData(l,{...t,manual:!0})}setQueriesData(n,e,t){return Aa.batch(()=>this.getQueryCache().findAll(n).map(({queryKey:r})=>[r,this.setQueryData(r,e,t)]))}getQueryState(n){var e;return(e=Ae(this,Yi).find({queryKey:n}))==null?void 0:e.state}removeQueries(n){const e=Ae(this,Yi);Aa.batch(()=>{e.findAll(n).forEach(t=>{e.remove(t)})})}resetQueries(n,e){const t=Ae(this,Yi),r={type:"active",...n};return Aa.batch(()=>(t.findAll(n).forEach(a=>{a.reset()}),this.refetchQueries(r,e)))}cancelQueries(n={},e={}){const t={revert:!0,...e},r=Aa.batch(()=>Ae(this,Yi).findAll(n).map(a=>a.cancel(t)));return Promise.all(r).then(Nl).catch(Nl)}invalidateQueries(n={},e={}){return Aa.batch(()=>{if(Ae(this,Yi).findAll(n).forEach(r=>{r.invalidate()}),n.refetchType==="none")return Promise.resolve();const t={...n,type:n.refetchType??n.type??"active"};return this.refetchQueries(t,e)})}refetchQueries(n={},e){const t={...e,cancelRefetch:(e==null?void 0:e.cancelRefetch)??!0},r=Aa.batch(()=>Ae(this,Yi).findAll(n).filter(a=>!a.isDisabled()).map(a=>{let l=a.fetch(void 0,t);return t.throwOnError||(l=l.catch(Nl)),a.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(r).then(Nl)}fetchQuery(n){const e=this.defaultQueryOptions(n);typeof e.retry>"u"&&(e.retry=!1);const t=Ae(this,Yi).build(this,e);return t.isStaleByTime(e.staleTime)?t.fetch(e):Promise.resolve(t.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(Nl).catch(Nl)}fetchInfiniteQuery(n){return n.behavior=hZ(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(Nl).catch(Nl)}resumePausedMutations(){return Ae(this,df).resumePausedMutations()}getQueryCache(){return Ae(this,Yi)}getMutationCache(){return Ae(this,df)}getDefaultOptions(){return Ae(this,ff)}setDefaultOptions(n){Yt(this,ff,n)}setQueryDefaults(n,e){Ae(this,Pm).set(F_(n),{queryKey:n,defaultOptions:e})}getQueryDefaults(n){const e=[...Ae(this,Pm).values()];let t={};return e.forEach(r=>{$_(n,r.queryKey)&&(t={...t,...r.defaultOptions})}),t}setMutationDefaults(n,e){Ae(this,Dm).set(F_(n),{mutationKey:n,defaultOptions:e})}getMutationDefaults(n){const e=[...Ae(this,Dm).values()];let t={};return e.forEach(r=>{$_(n,r.mutationKey)&&(t={...t,...r.defaultOptions})}),t}defaultQueryOptions(n){if(n!=null&&n._defaulted)return n;const e={...Ae(this,ff).queries,...(n==null?void 0:n.queryKey)&&this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return e.queryHash||(e.queryHash=EA(e.queryKey,e)),typeof e.refetchOnReconnect>"u"&&(e.refetchOnReconnect=e.networkMode!=="always"),typeof e.throwOnError>"u"&&(e.throwOnError=!!e.suspense),typeof e.networkMode>"u"&&e.persister&&(e.networkMode="offlineFirst"),e}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...Ae(this,ff).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){Ae(this,Yi).clear(),Ae(this,df).clear()}},Yi=new WeakMap,df=new WeakMap,ff=new WeakMap,Pm=new WeakMap,Dm=new WeakMap,hf=new WeakMap,Lm=new WeakMap,Um=new WeakMap,hF),iF=U.createContext(void 0),mZ=n=>{const e=U.useContext(iF);if(n)return n;if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},gZ=({client:n,children:e})=>(U.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),U.createElement(iF.Provider,{value:n},e));function yZ(n,e){const t={appKey:n.key,manifest:n,config:{environment:"development",endpoints:{}}},r=e.modules.app.createApp(t),a=r.initialize();return{appModule:r,appModuleScript:a}}function _Z({app:n,kind:e}){const t=mZ();e=e??"widget";const{setCurrentApp:r,clearCurrentApp:a}=VU(),l=d_(),[u,f]=U.useState(null),[p,m]=U.useState(!1),y=(T,A)=>{l.modules.event.dispatchEvent(T,new CustomEvent(T,A))};function E(T){const{appModule:A,appModuleScript:I}=yZ(n,l),[P]=window.location.pathname.match(/\/?apps\/[a-z|-]+(\/)?/g)??[""];return Zo(I).then(D=>{const L=D.script;(L.renderApp??L.default)(T,{query:t,fusion:l,env:{manifest:n,config:{environment:"development",endpoints:{}},basename:P,props:{}}}),e==="app"&&r(n.key)}),A}U.useEffect(()=>{var P;if(f(null),!n){y("onAppInitializeFailed",{detail:"App not found"}),f(new Error("Selected application does not exist"));return}m(!0);const T=document.createElement("div");T.style.height="30%",(P=S.current)==null||P.appendChild(T);const A=E(T);m(!1);const I=S.current;return()=>{try{I==null||I.removeChild(T)}catch{}A.dispose(),a()}},[n]);const S=U.useRef(null);return le.jsxs("div",{ref:S,children:[p&&le.jsx(sb,{text:`Loading ${e==="app"?"application":"widget"}`}),u&&le.jsx(CA,{error:u})]})}const CZ=()=>{const{appKey:n}=cJ(),{apps:e}=KU({includeHidden:!0}),t=U.useMemo(()=>e==null?void 0:e.find(r=>r.key===n),[n,e]);return e?t?le.jsx(_Z,{app:t,kind:"app"}):le.jsx(CA,{error:new Error("App not found")}):le.jsx(sb,{text:"Loading apps..."})},EZ={Title:Mt.div`
377
- display: flex;
378
- align-items: center;
379
- gap: 0.75rem;
380
- font-size: 1rem;
381
- font-weight: 500;
382
- margin-left: 1.5rem;
383
- `},wZ=()=>{const{currentApp:n}=VU(),{event:e}=d_().modules,[t,r]=U.useState(!1),a=U.useRef(null),[l,u]=U.useState(localStorage.getItem("roma__density")??"comfortable"),f=p=>{localStorage.setItem("roma__density",p),u(p);const m=new CustomEvent("onDensityChanged",{detail:p});e.dispatchEvent("onDensityChanged",m)};return le.jsxs(ku,{id:"cli-top-bar",sticky:!1,style:{padding:0,height:48},children:[le.jsx(ku.Header,{children:le.jsxs(EZ.Title,{children:[le.jsx(Gs,{data:tY}),le.jsx("span",{children:"Roma"})]})}),le.jsxs(ku.CustomContent,{children:["Dev Portal: ",(n==null?void 0:n.appKey)??""]}),le.jsxs(ku.Actions,{children:[le.jsx(rf,{onClick:()=>r(!0),ref:a,variant:"ghost_icon",children:le.jsx(Gs,{data:lY})}),le.jsx(Au,{onClose:()=>r(!1),anchorEl:a.current,open:t,children:le.jsxs(Au.Section,{title:"Density",children:[le.jsx(Au.Item,{active:l==="comfortable",onClick:()=>f("comfortable"),children:"Comfortable"}),le.jsx(Au.Item,{active:l==="compact",onClick:()=>f("compact"),children:"Compact"})]})})]})]})},bZ=({setOpen:n})=>le.jsxs(Wi,{onToggle:e=>n(e),children:[le.jsxs(Wi.Content,{children:[le.jsx(Wi.Toggle,{}),le.jsx(tA,{size:"2",color:"light",style:{marginBlockEnd:0}}),le.jsx(Wi.Link,{as:yA,label:"Home",icon:nY,to:"/",children:"Home"})]}),le.jsx(Wi.Footer,{children:le.jsx(tA,{size:"2",color:"light",style:{marginBlockEnd:0}})})]}),oF={NavigationContainer:Mt.div`
384
- display: grid;
385
- grid-template-columns: ${n=>n.open?"286px 1fr 448px":"86px 1fr 448px"};
386
- grid-column-gap: 24px;
387
- `,RootContainer:Mt.div`
388
- display: grid;
389
- grid-template-columns: 1fr;
390
- grid-template-rows: 48px 1fr;
391
- height: calc(100vh);
392
- `},SZ=()=>{const[n,e]=U.useState(!1),{isLoading:t}=KU();return t?le.jsx(sb,{text:"Loading apps..."}):le.jsxs(oF.RootContainer,{children:[le.jsx(wZ,{}),le.jsxs(oF.NavigationContainer,{open:n,children:[le.jsx(bZ,{setOpen:e}),le.jsx("div",{style:{paddingTop:"32px"},children:le.jsx(RJ,{})})]})]})},TZ=[{path:"/",element:le.jsx(SZ,{}),children:[{path:"apps/:appKey/*",element:le.jsx(CZ,{})},{path:"*",element:le.jsx(CA,{error:new Error("404: Page not found")})}]}];function RZ(){const{navigation:n}=d_().modules,[e]=U.useState(()=>n.createRouter(TZ)),t=new vZ;return le.jsx(gZ,{client:t,children:le.jsx(SJ,{router:e,fallbackElement:le.jsx("p",{children:"Invalid route."})})})}const kZ=document.getElementById("root");Ry.createRoot(kZ).render(le.jsx(wc.StrictMode,{children:le.jsx(u8,{configure:$K,fallback:le.jsx(sb,{text:"Starting Roma Workbench..."}),children:le.jsx(RZ,{})})}))});